@nebula.js/sn-table 3.3.1 → 3.3.2
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/dist/sn-table.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/sn-table v3.3.
|
|
2
|
+
* @nebula.js/sn-table v3.3.2
|
|
3
3
|
* Copyright (c) 2024 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
@@ -27,7 +27,7 @@ e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.le
|
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
28
|
*/function pn(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var fn=new Set,mn={};function hn(e,t){gn(e,t),gn(e+"Capture",t)}function gn(e,t){for(mn[e]=t,e=0;e<t.length;e++)fn.add(t[e])}var bn=!("undefined"==typeof window||void 0===window.document||void 0===window.document.createElement),vn=Object.prototype.hasOwnProperty,yn=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,xn={},Sn={};function En(e,t,n,r,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=o,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}var wn={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){wn[e]=new En(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];wn[t]=new En(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){wn[e]=new En(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){wn[e]=new En(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){wn[e]=new En(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){wn[e]=new En(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){wn[e]=new En(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){wn[e]=new En(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){wn[e]=new En(e,5,!1,e.toLowerCase(),null,!1,!1)}));var Cn=/[\-:]([a-z])/g;function Rn(e){return e[1].toUpperCase()}function kn(e,t,n,r){var o=wn.hasOwnProperty(t)?wn[t]:null;(null!==o?0!==o.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null==t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,o,r)&&(n=null),r||null===o?function(e){return!!vn.call(Sn,e)||!vn.call(xn,e)&&(yn.test(e)?Sn[e]=!0:(xn[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):o.mustUseProperty?e[o.propertyName]=null===n?3!==o.type&&"":n:(t=o.attributeName,r=o.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(o=o.type)||4===o&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(Cn,Rn);wn[t]=new En(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(Cn,Rn);wn[t]=new En(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(Cn,Rn);wn[t]=new En(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){wn[e]=new En(e,1,!1,e.toLowerCase(),null,!1,!1)})),wn.xlinkHref=new En("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){wn[e]=new En(e,1,!1,e.toLowerCase(),null,!0,!0)}));var An=cn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pn=Symbol.for("react.element"),Ln=Symbol.for("react.portal"),In=Symbol.for("react.fragment"),Mn=Symbol.for("react.strict_mode"),Dn=Symbol.for("react.profiler"),Tn=Symbol.for("react.provider"),_n=Symbol.for("react.context"),On=Symbol.for("react.forward_ref"),Nn=Symbol.for("react.suspense"),qn=Symbol.for("react.suspense_list"),zn=Symbol.for("react.memo"),Fn=Symbol.for("react.lazy"),jn=Symbol.for("react.offscreen"),$n=Symbol.iterator;function Hn(e){return null===e||"object"!=typeof e?null:"function"==typeof(e=$n&&e[$n]||e["@@iterator"])?e:null}var Bn,Wn=Object.assign;function Un(e){if(void 0===Bn)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Bn=t&&t[1]||""}return"\n"+Bn+e}var Vn=!1;function Gn(e,t){if(!e||Vn)return"";Vn=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"==typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&"string"==typeof t.stack){for(var o=t.stack.split("\n"),i=r.stack.split("\n"),a=o.length-1,l=i.length-1;1<=a&&0<=l&&o[a]!==i[l];)l--;for(;1<=a&&0<=l;a--,l--)if(o[a]!==i[l]){if(1!==a||1!==l)do{if(a--,0>--l||o[a]!==i[l]){var s="\n"+o[a].replace(" at new "," at ");return e.displayName&&s.includes("<anonymous>")&&(s=s.replace("<anonymous>",e.displayName)),s}}while(1<=a&&0<=l);break}}}finally{Vn=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?Un(e):""}function Yn(e){switch(e.tag){case 5:return Un(e.type);case 16:return Un("Lazy");case 13:return Un("Suspense");case 19:return Un("SuspenseList");case 0:case 2:case 15:return e=Gn(e.type,!1);case 11:return e=Gn(e.type.render,!1);case 1:return e=Gn(e.type,!0);default:return""}}function Kn(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case In:return"Fragment";case Ln:return"Portal";case Dn:return"Profiler";case Mn:return"StrictMode";case Nn:return"Suspense";case qn:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case _n:return(e.displayName||"Context")+".Consumer";case Tn:return(e._context.displayName||"Context")+".Provider";case On:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case zn:return null!==(t=e.displayName||null)?t:Kn(e.type)||"Memo";case Fn:t=e._payload,e=e._init;try{return Kn(e(t))}catch(e){}}return null}function Xn(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Kn(t);case 8:return t===Mn?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t}return null}function Jn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function Qn(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function Zn(e){e._valueTracker||(e._valueTracker=function(e){var t=Qn(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var o=n.get,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){r=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function er(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Qn(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function tr(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function nr(e,t){var n=t.checked;return Wn({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function rr(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=Jn(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function or(e,t){null!=(t=t.checked)&&kn(e,"checked",t,!1)}function ir(e,t){or(e,t);var n=Jn(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?lr(e,t.type,n):t.hasOwnProperty("defaultValue")&&lr(e,t.type,Jn(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function ar(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function lr(e,t,n){"number"===t&&tr(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var sr=Array.isArray;function ur(e,t,n,r){if(e=e.options,t){t={};for(var o=0;o<n.length;o++)t["$"+n[o]]=!0;for(n=0;n<e.length;n++)o=t.hasOwnProperty("$"+e[n].value),e[n].selected!==o&&(e[n].selected=o),o&&r&&(e[n].defaultSelected=!0)}else{for(n=""+Jn(n),t=null,o=0;o<e.length;o++){if(e[o].value===n)return e[o].selected=!0,void(r&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function cr(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(pn(91));return Wn({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function dr(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(pn(92));if(sr(n)){if(1<n.length)throw Error(pn(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:Jn(n)}}function pr(e,t){var n=Jn(t.value),r=Jn(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function fr(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function mr(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hr(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?mr(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var gr,br,vr=(br=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((gr=gr||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=gr.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return br(e,t)}))}:br);function yr(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var xr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sr=["Webkit","ms","Moz","O"];function Er(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||xr.hasOwnProperty(e)&&xr[e]?(""+t).trim():t+"px"}function wr(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),o=Er(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}Object.keys(xr).forEach((function(e){Sr.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),xr[t]=xr[e]}))}));var Cr=Wn({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Rr(e,t){if(t){if(Cr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(pn(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(pn(60));if("object"!=typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(pn(61))}if(null!=t.style&&"object"!=typeof t.style)throw Error(pn(62))}}function kr(e,t){if(-1===e.indexOf("-"))return"string"==typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ar=null;function Pr(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Lr=null,Ir=null,Mr=null;function Dr(e){if(e=kl(e)){if("function"!=typeof Lr)throw Error(pn(280));var t=e.stateNode;t&&(t=Pl(t),Lr(e.stateNode,e.type,t))}}function Tr(e){Ir?Mr?Mr.push(e):Mr=[e]:Ir=e}function _r(){if(Ir){var e=Ir,t=Mr;if(Mr=Ir=null,Dr(e),t)for(e=0;e<t.length;e++)Dr(t[e])}}function Or(e,t){return e(t)}function Nr(){}var qr=!1;function zr(e,t,n){if(qr)return e(t,n);qr=!0;try{return Or(e,t,n)}finally{qr=!1,(null!==Ir||null!==Mr)&&(Nr(),_r())}}function Fr(e,t){var n=e.stateNode;if(null===n)return null;var r=Pl(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!=typeof n)throw Error(pn(231,t,typeof n));return n}var jr=!1;if(bn)try{var $r={};Object.defineProperty($r,"passive",{get:function(){jr=!0}}),window.addEventListener("test",$r,$r),window.removeEventListener("test",$r,$r)}catch(br){jr=!1}function Hr(e,t,n,r,o,i,a,l,s){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(e){this.onError(e)}}var Br=!1,Wr=null,Ur=!1,Vr=null,Gr={onError:function(e){Br=!0,Wr=e}};function Yr(e,t,n,r,o,i,a,l,s){Br=!1,Wr=null,Hr.apply(Gr,arguments)}function Kr(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{!!(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function Xr(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function Jr(e){if(Kr(e)!==e)throw Error(pn(188))}function Qr(e){return e=function(e){var t=e.alternate;if(!t){if(null===(t=Kr(e)))throw Error(pn(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(r=o.return)){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return Jr(o),e;if(i===r)return Jr(o),t;i=i.sibling}throw Error(pn(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,l=o.child;l;){if(l===n){a=!0,n=o,r=i;break}if(l===r){a=!0,r=o,n=i;break}l=l.sibling}if(!a){for(l=i.child;l;){if(l===n){a=!0,n=i,r=o;break}if(l===r){a=!0,r=i,n=o;break}l=l.sibling}if(!a)throw Error(pn(189))}}if(n.alternate!==r)throw Error(pn(190))}if(3!==n.tag)throw Error(pn(188));return n.stateNode.current===n?e:t}(e),null!==e?Zr(e):null}function Zr(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Zr(e);if(null!==t)return t;e=e.sibling}return null}var eo=dn.unstable_scheduleCallback,to=dn.unstable_cancelCallback,no=dn.unstable_shouldYield,ro=dn.unstable_requestPaint,oo=dn.unstable_now,io=dn.unstable_getCurrentPriorityLevel,ao=dn.unstable_ImmediatePriority,lo=dn.unstable_UserBlockingPriority,so=dn.unstable_NormalPriority,uo=dn.unstable_LowPriority,co=dn.unstable_IdlePriority,po=null,fo=null;var mo=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(ho(e)/go|0)|0},ho=Math.log,go=Math.LN2;var bo=64,vo=4194304;function yo(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function xo(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=268435455&n;if(0!==a){var l=a&~o;0!==l?r=yo(l):0!==(i&=a)&&(r=yo(i))}else 0!==(a=n&~o)?r=yo(a):0!==i&&(r=yo(i));if(0===r)return 0;if(0!==t&&t!==r&&!(t&o)&&((o=r&-r)>=(i=t&-t)||16===o&&4194240&i))return t;if(4&r&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)o=1<<(n=31-mo(t)),r|=e[n],t&=~o;return r}function So(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Eo(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function wo(){var e=bo;return!(4194240&(bo<<=1))&&(bo=64),e}function Co(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ro(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-mo(t)]=n}function ko(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-mo(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var Ao=0;function Po(e){return 1<(e&=-e)?4<e?268435455&e?16:536870912:4:1}var Lo,Io,Mo,Do,To,_o=!1,Oo=[],No=null,qo=null,zo=null,Fo=new Map,jo=new Map,$o=[],Ho="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Bo(e,t){switch(e){case"focusin":case"focusout":No=null;break;case"dragenter":case"dragleave":qo=null;break;case"mouseover":case"mouseout":zo=null;break;case"pointerover":case"pointerout":Fo.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":jo.delete(t.pointerId)}}function Wo(e,t,n,r,o,i){return null===e||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},null!==t&&(null!==(t=kl(t))&&Io(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==o&&-1===t.indexOf(o)&&t.push(o),e)}function Uo(e){var t=Rl(e.target);if(null!==t){var n=Kr(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=Xr(n)))return e.blockedOn=t,void To(e.priority,(function(){Mo(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Vo(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=ri(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=kl(n))&&Io(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Ar=r,n.target.dispatchEvent(r),Ar=null,t.shift()}return!0}function Go(e,t,n){Vo(e)&&n.delete(t)}function Yo(){_o=!1,null!==No&&Vo(No)&&(No=null),null!==qo&&Vo(qo)&&(qo=null),null!==zo&&Vo(zo)&&(zo=null),Fo.forEach(Go),jo.forEach(Go)}function Ko(e,t){e.blockedOn===t&&(e.blockedOn=null,_o||(_o=!0,dn.unstable_scheduleCallback(dn.unstable_NormalPriority,Yo)))}function Xo(e){function t(t){return Ko(t,e)}if(0<Oo.length){Ko(Oo[0],e);for(var n=1;n<Oo.length;n++){var r=Oo[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==No&&Ko(No,e),null!==qo&&Ko(qo,e),null!==zo&&Ko(zo,e),Fo.forEach(t),jo.forEach(t),n=0;n<$o.length;n++)(r=$o[n]).blockedOn===e&&(r.blockedOn=null);for(;0<$o.length&&null===(n=$o[0]).blockedOn;)Uo(n),null===n.blockedOn&&$o.shift()}var Jo=An.ReactCurrentBatchConfig,Qo=!0;function Zo(e,t,n,r){var o=Ao,i=Jo.transition;Jo.transition=null;try{Ao=1,ti(e,t,n,r)}finally{Ao=o,Jo.transition=i}}function ei(e,t,n,r){var o=Ao,i=Jo.transition;Jo.transition=null;try{Ao=4,ti(e,t,n,r)}finally{Ao=o,Jo.transition=i}}function ti(e,t,n,r){if(Qo){var o=ri(e,t,n,r);if(null===o)Ja(e,t,r,ni,n),Bo(e,r);else if(function(e,t,n,r,o){switch(t){case"focusin":return No=Wo(No,e,t,n,r,o),!0;case"dragenter":return qo=Wo(qo,e,t,n,r,o),!0;case"mouseover":return zo=Wo(zo,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return Fo.set(i,Wo(Fo.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,jo.set(i,Wo(jo.get(i)||null,e,t,n,r,o)),!0}return!1}(o,e,t,n,r))r.stopPropagation();else if(Bo(e,r),4&t&&-1<Ho.indexOf(e)){for(;null!==o;){var i=kl(o);if(null!==i&&Lo(i),null===(i=ri(e,t,n,r))&&Ja(e,t,r,ni,n),i===o)break;o=i}null!==o&&r.stopPropagation()}else Ja(e,t,r,null,n)}}var ni=null;function ri(e,t,n,r){if(ni=null,null!==(e=Rl(e=Pr(r))))if(null===(t=Kr(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=Xr(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return ni=e,null}function oi(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(io()){case ao:return 1;case lo:return 4;case so:case uo:return 16;case co:return 536870912;default:return 16}default:return 16}}var ii=null,ai=null,li=null;function si(){if(li)return li;var e,t,n=ai,r=n.length,o="value"in ii?ii.value:ii.textContent,i=o.length;for(e=0;e<r&&n[e]===o[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===o[i-t];t++);return li=o.slice(e,1<t?1-t:void 0)}function ui(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function ci(){return!0}function di(){return!1}function pi(e){function t(t,n,r,o,i){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=o,this.target=i,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(o):o[a]);return this.isDefaultPrevented=(null!=o.defaultPrevented?o.defaultPrevented:!1===o.returnValue)?ci:di,this.isPropagationStopped=di,this}return Wn(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ci)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ci)},persist:function(){},isPersistent:ci}),t}var fi,mi,hi,gi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},bi=pi(gi),vi=Wn({},gi,{view:0,detail:0}),yi=pi(vi),xi=Wn({},vi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Di,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==hi&&(hi&&"mousemove"===e.type?(fi=e.screenX-hi.screenX,mi=e.screenY-hi.screenY):mi=fi=0,hi=e),fi)},movementY:function(e){return"movementY"in e?e.movementY:mi}}),Si=pi(xi),Ei=pi(Wn({},xi,{dataTransfer:0})),wi=pi(Wn({},vi,{relatedTarget:0})),Ci=pi(Wn({},gi,{animationName:0,elapsedTime:0,pseudoElement:0})),Ri=Wn({},gi,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ki=pi(Ri),Ai=pi(Wn({},gi,{data:0})),Pi={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Li={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Ii={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Mi(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Ii[e])&&!!t[e]}function Di(){return Mi}var Ti=Wn({},vi,{key:function(e){if(e.key){var t=Pi[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=ui(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?Li[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Di,charCode:function(e){return"keypress"===e.type?ui(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?ui(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),_i=pi(Ti),Oi=pi(Wn({},xi,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Ni=pi(Wn({},vi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Di})),qi=pi(Wn({},gi,{propertyName:0,elapsedTime:0,pseudoElement:0})),zi=Wn({},xi,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Fi=pi(zi),ji=[9,13,27,32],$i=bn&&"CompositionEvent"in window,Hi=null;bn&&"documentMode"in document&&(Hi=document.documentMode);var Bi=bn&&"TextEvent"in window&&!Hi,Wi=bn&&(!$i||Hi&&8<Hi&&11>=Hi),Ui=String.fromCharCode(32),Vi=!1;function Gi(e,t){switch(e){case"keyup":return-1!==ji.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Yi(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Ki=!1;var Xi={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ji(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!Xi[e.type]:"textarea"===t}function Qi(e,t,n,r){Tr(r),0<(t=Za(t,"onChange")).length&&(n=new bi("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Zi=null,ea=null;function ta(e){Ua(e,0)}function na(e){if(er(Al(e)))return e}function ra(e,t){if("change"===e)return t}var oa=!1;if(bn){var ia;if(bn){var aa="oninput"in document;if(!aa){var la=document.createElement("div");la.setAttribute("oninput","return;"),aa="function"==typeof la.oninput}ia=aa}else ia=!1;oa=ia&&(!document.documentMode||9<document.documentMode)}function sa(){Zi&&(Zi.detachEvent("onpropertychange",ua),ea=Zi=null)}function ua(e){if("value"===e.propertyName&&na(ea)){var t=[];Qi(t,ea,e,Pr(e)),zr(ta,t)}}function ca(e,t,n){"focusin"===e?(sa(),ea=n,(Zi=t).attachEvent("onpropertychange",ua)):"focusout"===e&&sa()}function da(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return na(ea)}function pa(e,t){if("click"===e)return na(t)}function fa(e,t){if("input"===e||"change"===e)return na(t)}var ma="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t};function ha(e,t){if(ma(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var o=n[r];if(!vn.call(t,o)||!ma(e[o],t[o]))return!1}return!0}function ga(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function ba(e,t){var n,r=ga(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=ga(r)}}function va(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?va(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function ya(){for(var e=window,t=tr();t instanceof e.HTMLIFrameElement;){try{var n="string"==typeof t.contentWindow.location.href}catch(e){n=!1}if(!n)break;t=tr((e=t.contentWindow).document)}return t}function xa(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function Sa(e){var t=ya(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&va(n.ownerDocument.documentElement,n)){if(null!==r&&xa(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var o=n.textContent.length,i=Math.min(r.start,o);r=void 0===r.end?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=ba(n,i);var a=ba(n,r);o&&a&&(1!==e.rangeCount||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"==typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Ea=bn&&"documentMode"in document&&11>=document.documentMode,wa=null,Ca=null,Ra=null,ka=!1;function Aa(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ka||null==wa||wa!==tr(r)||("selectionStart"in(r=wa)&&xa(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Ra&&ha(Ra,r)||(Ra=r,0<(r=Za(Ca,"onSelect")).length&&(t=new bi("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=wa)))}function Pa(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var La={animationend:Pa("Animation","AnimationEnd"),animationiteration:Pa("Animation","AnimationIteration"),animationstart:Pa("Animation","AnimationStart"),transitionend:Pa("Transition","TransitionEnd")},Ia={},Ma={};function Da(e){if(Ia[e])return Ia[e];if(!La[e])return e;var t,n=La[e];for(t in n)if(n.hasOwnProperty(t)&&t in Ma)return Ia[e]=n[t];return e}bn&&(Ma=document.createElement("div").style,"AnimationEvent"in window||(delete La.animationend.animation,delete La.animationiteration.animation,delete La.animationstart.animation),"TransitionEvent"in window||delete La.transitionend.transition);var Ta=Da("animationend"),_a=Da("animationiteration"),Oa=Da("animationstart"),Na=Da("transitionend"),qa=new Map,za="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Fa(e,t){qa.set(e,t),hn(t,[e])}for(var ja=0;ja<za.length;ja++){var $a=za[ja];Fa($a.toLowerCase(),"on"+($a[0].toUpperCase()+$a.slice(1)))}Fa(Ta,"onAnimationEnd"),Fa(_a,"onAnimationIteration"),Fa(Oa,"onAnimationStart"),Fa("dblclick","onDoubleClick"),Fa("focusin","onFocus"),Fa("focusout","onBlur"),Fa(Na,"onTransitionEnd"),gn("onMouseEnter",["mouseout","mouseover"]),gn("onMouseLeave",["mouseout","mouseover"]),gn("onPointerEnter",["pointerout","pointerover"]),gn("onPointerLeave",["pointerout","pointerover"]),hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),hn("onBeforeInput",["compositionend","keypress","textInput","paste"]),hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Ha="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Ba=new Set("cancel close invalid load scroll toggle".split(" ").concat(Ha));function Wa(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,o,i,a,l,s){if(Yr.apply(this,arguments),Br){if(!Br)throw Error(pn(198));var u=Wr;Br=!1,Wr=null,Ur||(Ur=!0,Vr=u)}}(r,t,void 0,e),e.currentTarget=null}function Ua(e,t){t=!!(4&t);for(var n=0;n<e.length;n++){var r=e[n],o=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var l=r[a],s=l.instance,u=l.currentTarget;if(l=l.listener,s!==i&&o.isPropagationStopped())break e;Wa(o,l,u),i=s}else for(a=0;a<r.length;a++){if(s=(l=r[a]).instance,u=l.currentTarget,l=l.listener,s!==i&&o.isPropagationStopped())break e;Wa(o,l,u),i=s}}}if(Ur)throw e=Vr,Ur=!1,Vr=null,e}function Va(e,t){var n=t[El];void 0===n&&(n=t[El]=new Set);var r=e+"__bubble";n.has(r)||(Xa(t,e,2,!1),n.add(r))}function Ga(e,t,n){var r=0;t&&(r|=4),Xa(n,e,r,t)}var Ya="_reactListening"+Math.random().toString(36).slice(2);function Ka(e){if(!e[Ya]){e[Ya]=!0,fn.forEach((function(t){"selectionchange"!==t&&(Ba.has(t)||Ga(t,!1,e),Ga(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ya]||(t[Ya]=!0,Ga("selectionchange",!1,t))}}function Xa(e,t,n,r){switch(oi(t)){case 1:var o=Zo;break;case 4:o=ei;break;default:o=ti}n=o.bind(null,t,n,e),o=void 0,!jr||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(o=!0),r?void 0!==o?e.addEventListener(t,n,{capture:!0,passive:o}):e.addEventListener(t,n,!0):void 0!==o?e.addEventListener(t,n,{passive:o}):e.addEventListener(t,n,!1)}function Ja(e,t,n,r,o){var i=r;if(!(1&t||2&t||null===r))e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var l=r.stateNode.containerInfo;if(l===o||8===l.nodeType&&l.parentNode===o)break;if(4===a)for(a=r.return;null!==a;){var s=a.tag;if((3===s||4===s)&&((s=a.stateNode.containerInfo)===o||8===s.nodeType&&s.parentNode===o))return;a=a.return}for(;null!==l;){if(null===(a=Rl(l)))return;if(5===(s=a.tag)||6===s){r=i=a;continue e}l=l.parentNode}}r=r.return}zr((function(){var r=i,o=Pr(n),a=[];e:{var l=qa.get(e);if(void 0!==l){var s=bi,u=e;switch(e){case"keypress":if(0===ui(n))break e;case"keydown":case"keyup":s=_i;break;case"focusin":u="focus",s=wi;break;case"focusout":u="blur",s=wi;break;case"beforeblur":case"afterblur":s=wi;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":s=Si;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":s=Ei;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":s=Ni;break;case Ta:case _a:case Oa:s=Ci;break;case Na:s=qi;break;case"scroll":s=yi;break;case"wheel":s=Fi;break;case"copy":case"cut":case"paste":s=ki;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":s=Oi}var c=!!(4&t),d=!c&&"scroll"===e,p=c?null!==l?l+"Capture":null:l;c=[];for(var f,m=r;null!==m;){var h=(f=m).stateNode;if(5===f.tag&&null!==h&&(f=h,null!==p&&(null!=(h=Fr(m,p))&&c.push(Qa(m,h,f)))),d)break;m=m.return}0<c.length&&(l=new s(l,u,null,n,o),a.push({event:l,listeners:c}))}}if(!(7&t)){if(s="mouseout"===e||"pointerout"===e,(!(l="mouseover"===e||"pointerover"===e)||n===Ar||!(u=n.relatedTarget||n.fromElement)||!Rl(u)&&!u[Sl])&&(s||l)&&(l=o.window===o?o:(l=o.ownerDocument)?l.defaultView||l.parentWindow:window,s?(s=r,null!==(u=(u=n.relatedTarget||n.toElement)?Rl(u):null)&&(u!==(d=Kr(u))||5!==u.tag&&6!==u.tag)&&(u=null)):(s=null,u=r),s!==u)){if(c=Si,h="onMouseLeave",p="onMouseEnter",m="mouse","pointerout"!==e&&"pointerover"!==e||(c=Oi,h="onPointerLeave",p="onPointerEnter",m="pointer"),d=null==s?l:Al(s),f=null==u?l:Al(u),(l=new c(h,m+"leave",s,n,o)).target=d,l.relatedTarget=f,h=null,Rl(o)===r&&((c=new c(p,m+"enter",u,n,o)).target=f,c.relatedTarget=d,h=c),d=h,s&&u)e:{for(p=u,m=0,f=c=s;f;f=el(f))m++;for(f=0,h=p;h;h=el(h))f++;for(;0<m-f;)c=el(c),m--;for(;0<f-m;)p=el(p),f--;for(;m--;){if(c===p||null!==p&&c===p.alternate)break e;c=el(c),p=el(p)}c=null}else c=null;null!==s&&tl(a,l,s,c,!1),null!==u&&null!==d&&tl(a,d,u,c,!0)}if("select"===(s=(l=r?Al(r):window).nodeName&&l.nodeName.toLowerCase())||"input"===s&&"file"===l.type)var g=ra;else if(Ji(l))if(oa)g=fa;else{g=da;var b=ca}else(s=l.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===l.type||"radio"===l.type)&&(g=pa);switch(g&&(g=g(e,r))?Qi(a,g,n,o):(b&&b(e,l,r),"focusout"===e&&(b=l._wrapperState)&&b.controlled&&"number"===l.type&&lr(l,"number",l.value)),b=r?Al(r):window,e){case"focusin":(Ji(b)||"true"===b.contentEditable)&&(wa=b,Ca=r,Ra=null);break;case"focusout":Ra=Ca=wa=null;break;case"mousedown":ka=!0;break;case"contextmenu":case"mouseup":case"dragend":ka=!1,Aa(a,n,o);break;case"selectionchange":if(Ea)break;case"keydown":case"keyup":Aa(a,n,o)}var v;if($i)e:{switch(e){case"compositionstart":var y="onCompositionStart";break e;case"compositionend":y="onCompositionEnd";break e;case"compositionupdate":y="onCompositionUpdate";break e}y=void 0}else Ki?Gi(e,n)&&(y="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(y="onCompositionStart");y&&(Wi&&"ko"!==n.locale&&(Ki||"onCompositionStart"!==y?"onCompositionEnd"===y&&Ki&&(v=si()):(ai="value"in(ii=o)?ii.value:ii.textContent,Ki=!0)),0<(b=Za(r,y)).length&&(y=new Ai(y,e,null,n,o),a.push({event:y,listeners:b}),v?y.data=v:null!==(v=Yi(n))&&(y.data=v))),(v=Bi?function(e,t){switch(e){case"compositionend":return Yi(t);case"keypress":return 32!==t.which?null:(Vi=!0,Ui);case"textInput":return(e=t.data)===Ui&&Vi?null:e;default:return null}}(e,n):function(e,t){if(Ki)return"compositionend"===e||!$i&&Gi(e,t)?(e=si(),li=ai=ii=null,Ki=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Wi&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Za(r,"onBeforeInput")).length&&(o=new Ai("onBeforeInput","beforeinput",null,n,o),a.push({event:o,listeners:r}),o.data=v))}Ua(a,t)}))}function Qa(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Za(e,t){for(var n=t+"Capture",r=[];null!==e;){var o=e,i=o.stateNode;5===o.tag&&null!==i&&(o=i,null!=(i=Fr(e,n))&&r.unshift(Qa(e,i,o)),null!=(i=Fr(e,t))&&r.push(Qa(e,i,o))),e=e.return}return r}function el(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function tl(e,t,n,r,o){for(var i=t._reactName,a=[];null!==n&&n!==r;){var l=n,s=l.alternate,u=l.stateNode;if(null!==s&&s===r)break;5===l.tag&&null!==u&&(l=u,o?null!=(s=Fr(n,i))&&a.unshift(Qa(n,s,l)):o||null!=(s=Fr(n,i))&&a.push(Qa(n,s,l))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var nl=/\r\n?/g,rl=/\u0000|\uFFFD/g;function ol(e){return("string"==typeof e?e:""+e).replace(nl,"\n").replace(rl,"")}function il(e,t,n){if(t=ol(t),ol(e)!==t&&n)throw Error(pn(425))}function al(){}var ll=null,sl=null;function ul(e,t){return"textarea"===e||"noscript"===e||"string"==typeof t.children||"number"==typeof t.children||"object"==typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var cl="function"==typeof setTimeout?setTimeout:void 0,dl="function"==typeof clearTimeout?clearTimeout:void 0,pl="function"==typeof Promise?Promise:void 0,fl="function"==typeof queueMicrotask?queueMicrotask:void 0!==pl?function(e){return pl.resolve(null).then(e).catch(ml)}:cl;function ml(e){setTimeout((function(){throw e}))}function hl(e,t){var n=t,r=0;do{var o=n.nextSibling;if(e.removeChild(n),o&&8===o.nodeType)if("/$"===(n=o.data)){if(0===r)return e.removeChild(o),void Xo(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=o}while(n);Xo(t)}function gl(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function bl(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var vl=Math.random().toString(36).slice(2),yl="__reactFiber$"+vl,xl="__reactProps$"+vl,Sl="__reactContainer$"+vl,El="__reactEvents$"+vl,wl="__reactListeners$"+vl,Cl="__reactHandles$"+vl;function Rl(e){var t=e[yl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Sl]||n[yl]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=bl(e);null!==e;){if(n=e[yl])return n;e=bl(e)}return t}n=(e=n).parentNode}return null}function kl(e){return!(e=e[yl]||e[Sl])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Al(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(pn(33))}function Pl(e){return e[xl]||null}var Ll=[],Il=-1;function Ml(e){return{current:e}}function Dl(e){0>Il||(e.current=Ll[Il],Ll[Il]=null,Il--)}function Tl(e,t){Il++,Ll[Il]=e.current,e.current=t}var _l={},Ol=Ml(_l),Nl=Ml(!1),ql=_l;function zl(e,t){var n=e.type.contextTypes;if(!n)return _l;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in n)i[o]=t[o];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Fl(e){return null!=(e=e.childContextTypes)}function jl(){Dl(Nl),Dl(Ol)}function $l(e,t,n){if(Ol.current!==_l)throw Error(pn(168));Tl(Ol,t),Tl(Nl,n)}function Hl(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())if(!(o in t))throw Error(pn(108,Xn(e)||"Unknown",o));return Wn({},n,r)}function Bl(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||_l,ql=Ol.current,Tl(Ol,e),Tl(Nl,Nl.current),!0}function Wl(e,t,n){var r=e.stateNode;if(!r)throw Error(pn(169));n?(e=Hl(e,t,ql),r.__reactInternalMemoizedMergedChildContext=e,Dl(Nl),Dl(Ol),Tl(Ol,e)):Dl(Nl),Tl(Nl,n)}var Ul=null,Vl=!1,Gl=!1;function Yl(e){null===Ul?Ul=[e]:Ul.push(e)}function Kl(){if(!Gl&&null!==Ul){Gl=!0;var e=0,t=Ao;try{var n=Ul;for(Ao=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Ul=null,Vl=!1}catch(t){throw null!==Ul&&(Ul=Ul.slice(e+1)),eo(ao,Kl),t}finally{Ao=t,Gl=!1}}return null}var Xl=[],Jl=0,Ql=null,Zl=0,es=[],ts=0,ns=null,rs=1,os="";function is(e,t){Xl[Jl++]=Zl,Xl[Jl++]=Ql,Ql=e,Zl=t}function as(e,t,n){es[ts++]=rs,es[ts++]=os,es[ts++]=ns,ns=e;var r=rs;e=os;var o=32-mo(r)-1;r&=~(1<<o),n+=1;var i=32-mo(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,rs=1<<32-mo(t)+o|n<<o|r,os=i+e}else rs=1<<i|n<<o|r,os=e}function ls(e){null!==e.return&&(is(e,1),as(e,1,0))}function ss(e){for(;e===Ql;)Ql=Xl[--Jl],Xl[Jl]=null,Zl=Xl[--Jl],Xl[Jl]=null;for(;e===ns;)ns=es[--ts],es[ts]=null,os=es[--ts],es[ts]=null,rs=es[--ts],es[ts]=null}var us=null,cs=null,ds=!1,ps=null;function fs(e,t){var n=zp(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function ms(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,us=e,cs=gl(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,us=e,cs=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==ns?{id:rs,overflow:os}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=zp(18,null,null,0)).stateNode=t,n.return=e,e.child=n,us=e,cs=null,!0);default:return!1}}function hs(e){return!(!(1&e.mode)||128&e.flags)}function gs(e){if(ds){var t=cs;if(t){var n=t;if(!ms(e,t)){if(hs(e))throw Error(pn(418));t=gl(n.nextSibling);var r=us;t&&ms(e,t)?fs(r,n):(e.flags=-4097&e.flags|2,ds=!1,us=e)}}else{if(hs(e))throw Error(pn(418));e.flags=-4097&e.flags|2,ds=!1,us=e}}}function bs(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;us=e}function vs(e){if(e!==us)return!1;if(!ds)return bs(e),ds=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ul(e.type,e.memoizedProps)),t&&(t=cs)){if(hs(e))throw ys(),Error(pn(418));for(;t;)fs(e,t),t=gl(t.nextSibling)}if(bs(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(pn(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){cs=gl(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}cs=null}}else cs=us?gl(e.stateNode.nextSibling):null;return!0}function ys(){for(var e=cs;e;)e=gl(e.nextSibling)}function xs(){cs=us=null,ds=!1}function Ss(e){null===ps?ps=[e]:ps.push(e)}var Es=An.ReactCurrentBatchConfig;function ws(e,t){if(e&&e.defaultProps){for(var n in t=Wn({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var Cs=Ml(null),Rs=null,ks=null,As=null;function Ps(){As=ks=Rs=null}function Ls(e){var t=Cs.current;Dl(Cs),e._currentValue=t}function Is(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Ms(e,t){Rs=e,As=ks=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(!!(e.lanes&t)&&(kc=!0),e.firstContext=null)}function Ds(e){var t=e._currentValue;if(As!==e)if(e={context:e,memoizedValue:t,next:null},null===ks){if(null===Rs)throw Error(pn(308));ks=e,Rs.dependencies={lanes:0,firstContext:e}}else ks=ks.next=e;return t}var Ts=null;function _s(e){null===Ts?Ts=[e]:Ts.push(e)}function Os(e,t,n,r){var o=t.interleaved;return null===o?(n.next=n,_s(t)):(n.next=o.next,o.next=n),t.interleaved=n,Ns(e,r)}function Ns(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var qs=!1;function zs(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Fs(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function js(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function $s(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,2&Od){var o=r.pending;return null===o?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Ns(e,n)}return null===(o=r.interleaved)?(t.next=t,_s(r)):(t.next=o.next,o.next=t),r.interleaved=t,Ns(e,n)}function Hs(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ko(e,n)}}function Bs(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var o=null,i=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===i?o=i=a:i=i.next=a,n=n.next}while(null!==n);null===i?o=i=t:i=i.next=t}else o=i=t;return n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ws(e,t,n,r){var o=e.updateQueue;qs=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,l=o.shared.pending;if(null!==l){o.shared.pending=null;var s=l,u=s.next;s.next=null,null===a?i=u:a.next=u,a=s;var c=e.alternate;null!==c&&((l=(c=c.updateQueue).lastBaseUpdate)!==a&&(null===l?c.firstBaseUpdate=u:l.next=u,c.lastBaseUpdate=s))}if(null!==i){var d=o.baseState;for(a=0,c=u=s=null,l=i;;){var p=l.lane,f=l.eventTime;if((r&p)===p){null!==c&&(c=c.next={eventTime:f,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});e:{var m=e,h=l;switch(p=t,f=n,h.tag){case 1:if("function"==typeof(m=h.payload)){d=m.call(f,d,p);break e}d=m;break e;case 3:m.flags=-65537&m.flags|128;case 0:if(null==(p="function"==typeof(m=h.payload)?m.call(f,d,p):m))break e;d=Wn({},d,p);break e;case 2:qs=!0}}null!==l.callback&&0!==l.lane&&(e.flags|=64,null===(p=o.effects)?o.effects=[l]:p.push(l))}else f={eventTime:f,lane:p,tag:l.tag,payload:l.payload,callback:l.callback,next:null},null===c?(u=c=f,s=d):c=c.next=f,a|=p;if(null===(l=l.next)){if(null===(l=o.shared.pending))break;l=(p=l).next,p.next=null,o.lastBaseUpdate=p,o.shared.pending=null}}if(null===c&&(s=d),o.baseState=s,o.firstBaseUpdate=u,o.lastBaseUpdate=c,null!==(t=o.shared.interleaved)){o=t;do{a|=o.lane,o=o.next}while(o!==t)}else null===i&&(o.shared.lanes=0);Bd|=a,e.lanes=a,e.memoizedState=d}}function Us(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],o=r.callback;if(null!==o){if(r.callback=null,r=n,"function"!=typeof o)throw Error(pn(191,o));o.call(r)}}}var Vs=(new cn.Component).refs;function Gs(e,t,n,r){n=null==(n=n(r,t=e.memoizedState))?t:Wn({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Ys={isMounted:function(e){return!!(e=e._reactInternals)&&Kr(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=lp(),o=sp(e),i=js(r,o);i.payload=t,null!=n&&(i.callback=n),null!==(t=$s(e,i,o))&&(up(t,e,o,r),Hs(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=lp(),o=sp(e),i=js(r,o);i.tag=1,i.payload=t,null!=n&&(i.callback=n),null!==(t=$s(e,i,o))&&(up(t,e,o,r),Hs(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=lp(),r=sp(e),o=js(n,r);o.tag=2,null!=t&&(o.callback=t),null!==(t=$s(e,o,r))&&(up(t,e,r,n),Hs(t,e,r))}};function Ks(e,t,n,r,o,i,a){return"function"==typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!ha(n,r)||!ha(o,i))}function Xs(e,t,n){var r=!1,o=_l,i=t.contextType;return"object"==typeof i&&null!==i?i=Ds(i):(o=Fl(t)?ql:Ol.current,i=(r=null!=(r=t.contextTypes))?zl(e,o):_l),t=new t(n,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Ys,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function Js(e,t,n,r){e=t.state,"function"==typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"==typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Ys.enqueueReplaceState(t,t.state,null)}function Qs(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs=Vs,zs(e);var i=t.contextType;"object"==typeof i&&null!==i?o.context=Ds(i):(i=Fl(t)?ql:Ol.current,o.context=zl(e,i)),o.state=e.memoizedState,"function"==typeof(i=t.getDerivedStateFromProps)&&(Gs(e,t,i,n),o.state=e.memoizedState),"function"==typeof t.getDerivedStateFromProps||"function"==typeof o.getSnapshotBeforeUpdate||"function"!=typeof o.UNSAFE_componentWillMount&&"function"!=typeof o.componentWillMount||(t=o.state,"function"==typeof o.componentWillMount&&o.componentWillMount(),"function"==typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&Ys.enqueueReplaceState(o,o.state,null),Ws(e,n,o,r),o.state=e.memoizedState),"function"==typeof o.componentDidMount&&(e.flags|=4194308)}function Zs(e,t,n){if(null!==(e=n.ref)&&"function"!=typeof e&&"object"!=typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(pn(309));var r=n.stateNode}if(!r)throw Error(pn(147,e));var o=r,i=""+e;return null!==t&&null!==t.ref&&"function"==typeof t.ref&&t.ref._stringRef===i?t.ref:(t=function(e){var t=o.refs;t===Vs&&(t=o.refs={}),null===e?delete t[i]:t[i]=e},t._stringRef=i,t)}if("string"!=typeof e)throw Error(pn(284));if(!n._owner)throw Error(pn(290,e))}return e}function eu(e,t){throw e=Object.prototype.toString.call(t),Error(pn(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function tu(e){return(0,e._init)(e._payload)}function nu(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=jp(e,t)).index=0,e.sibling=null,e}function i(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function a(t){return e&&null===t.alternate&&(t.flags|=2),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Wp(n,e.mode,r)).return=e,t):((t=o(t,n)).return=e,t)}function s(e,t,n,r){var i=n.type;return i===In?c(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===i||"object"==typeof i&&null!==i&&i.$$typeof===Fn&&tu(i)===t.type)?((r=o(t,n.props)).ref=Zs(e,t,n),r.return=e,r):((r=$p(n.type,n.key,n.props,null,e.mode,r)).ref=Zs(e,t,n),r.return=e,r)}function u(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Up(n,e.mode,r)).return=e,t):((t=o(t,n.children||[])).return=e,t)}function c(e,t,n,r,i){return null===t||7!==t.tag?((t=Hp(n,e.mode,r,i)).return=e,t):((t=o(t,n)).return=e,t)}function d(e,t,n){if("string"==typeof t&&""!==t||"number"==typeof t)return(t=Wp(""+t,e.mode,n)).return=e,t;if("object"==typeof t&&null!==t){switch(t.$$typeof){case Pn:return(n=$p(t.type,t.key,t.props,null,e.mode,n)).ref=Zs(e,null,t),n.return=e,n;case Ln:return(t=Up(t,e.mode,n)).return=e,t;case Fn:return d(e,(0,t._init)(t._payload),n)}if(sr(t)||Hn(t))return(t=Hp(t,e.mode,n,null)).return=e,t;eu(e,t)}return null}function p(e,t,n,r){var o=null!==t?t.key:null;if("string"==typeof n&&""!==n||"number"==typeof n)return null!==o?null:l(e,t,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Pn:return n.key===o?s(e,t,n,r):null;case Ln:return n.key===o?u(e,t,n,r):null;case Fn:return p(e,t,(o=n._init)(n._payload),r)}if(sr(n)||Hn(n))return null!==o?null:c(e,t,n,r,null);eu(e,n)}return null}function f(e,t,n,r,o){if("string"==typeof r&&""!==r||"number"==typeof r)return l(t,e=e.get(n)||null,""+r,o);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Pn:return s(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Ln:return u(t,e=e.get(null===r.key?n:r.key)||null,r,o);case Fn:return f(e,t,n,(0,r._init)(r._payload),o)}if(sr(r)||Hn(r))return c(t,e=e.get(n)||null,r,o,null);eu(t,r)}return null}function m(o,a,l,s){for(var u=null,c=null,m=a,h=a=0,g=null;null!==m&&h<l.length;h++){m.index>h?(g=m,m=null):g=m.sibling;var b=p(o,m,l[h],s);if(null===b){null===m&&(m=g);break}e&&m&&null===b.alternate&&t(o,m),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b,m=g}if(h===l.length)return n(o,m),ds&&is(o,h),u;if(null===m){for(;h<l.length;h++)null!==(m=d(o,l[h],s))&&(a=i(m,a,h),null===c?u=m:c.sibling=m,c=m);return ds&&is(o,h),u}for(m=r(o,m);h<l.length;h++)null!==(g=f(m,o,h,l[h],s))&&(e&&null!==g.alternate&&m.delete(null===g.key?h:g.key),a=i(g,a,h),null===c?u=g:c.sibling=g,c=g);return e&&m.forEach((function(e){return t(o,e)})),ds&&is(o,h),u}function h(o,a,l,s){var u=Hn(l);if("function"!=typeof u)throw Error(pn(150));if(null==(l=u.call(l)))throw Error(pn(151));for(var c=u=null,m=a,h=a=0,g=null,b=l.next();null!==m&&!b.done;h++,b=l.next()){m.index>h?(g=m,m=null):g=m.sibling;var v=p(o,m,b.value,s);if(null===v){null===m&&(m=g);break}e&&m&&null===v.alternate&&t(o,m),a=i(v,a,h),null===c?u=v:c.sibling=v,c=v,m=g}if(b.done)return n(o,m),ds&&is(o,h),u;if(null===m){for(;!b.done;h++,b=l.next())null!==(b=d(o,b.value,s))&&(a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return ds&&is(o,h),u}for(m=r(o,m);!b.done;h++,b=l.next())null!==(b=f(m,o,h,b.value,s))&&(e&&null!==b.alternate&&m.delete(null===b.key?h:b.key),a=i(b,a,h),null===c?u=b:c.sibling=b,c=b);return e&&m.forEach((function(e){return t(o,e)})),ds&&is(o,h),u}return function e(r,i,l,s){if("object"==typeof l&&null!==l&&l.type===In&&null===l.key&&(l=l.props.children),"object"==typeof l&&null!==l){switch(l.$$typeof){case Pn:e:{for(var u=l.key,c=i;null!==c;){if(c.key===u){if((u=l.type)===In){if(7===c.tag){n(r,c.sibling),(i=o(c,l.props.children)).return=r,r=i;break e}}else if(c.elementType===u||"object"==typeof u&&null!==u&&u.$$typeof===Fn&&tu(u)===c.type){n(r,c.sibling),(i=o(c,l.props)).ref=Zs(r,c,l),i.return=r,r=i;break e}n(r,c);break}t(r,c),c=c.sibling}l.type===In?((i=Hp(l.props.children,r.mode,s,l.key)).return=r,r=i):((s=$p(l.type,l.key,l.props,null,r.mode,s)).ref=Zs(r,i,l),s.return=r,r=s)}return a(r);case Ln:e:{for(c=l.key;null!==i;){if(i.key===c){if(4===i.tag&&i.stateNode.containerInfo===l.containerInfo&&i.stateNode.implementation===l.implementation){n(r,i.sibling),(i=o(i,l.children||[])).return=r,r=i;break e}n(r,i);break}t(r,i),i=i.sibling}(i=Up(l,r.mode,s)).return=r,r=i}return a(r);case Fn:return e(r,i,(c=l._init)(l._payload),s)}if(sr(l))return m(r,i,l,s);if(Hn(l))return h(r,i,l,s);eu(r,l)}return"string"==typeof l&&""!==l||"number"==typeof l?(l=""+l,null!==i&&6===i.tag?(n(r,i.sibling),(i=o(i,l)).return=r,r=i):(n(r,i),(i=Wp(l,r.mode,s)).return=r,r=i),a(r)):n(r,i)}}var ru=nu(!0),ou=nu(!1),iu={},au=Ml(iu),lu=Ml(iu),su=Ml(iu);function uu(e){if(e===iu)throw Error(pn(174));return e}function cu(e,t){switch(Tl(su,t),Tl(lu,e),Tl(au,iu),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:hr(null,"");break;default:t=hr(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Dl(au),Tl(au,t)}function du(){Dl(au),Dl(lu),Dl(su)}function pu(e){uu(su.current);var t=uu(au.current),n=hr(t,e.type);t!==n&&(Tl(lu,e),Tl(au,n))}function fu(e){lu.current===e&&(Dl(au),Dl(lu))}var mu=Ml(0);function hu(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(128&t.flags)return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var gu=[];function bu(){for(var e=0;e<gu.length;e++)gu[e]._workInProgressVersionPrimary=null;gu.length=0}var vu=An.ReactCurrentDispatcher,yu=An.ReactCurrentBatchConfig,xu=0,Su=null,Eu=null,wu=null,Cu=!1,Ru=!1,ku=0,Au=0;function Pu(){throw Error(pn(321))}function Lu(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!ma(e[n],t[n]))return!1;return!0}function Iu(e,t,n,r,o,i){if(xu=i,Su=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,vu.current=null===e||null===e.memoizedState?fc:mc,e=n(r,o),Ru){i=0;do{if(Ru=!1,ku=0,25<=i)throw Error(pn(301));i+=1,wu=Eu=null,t.updateQueue=null,vu.current=hc,e=n(r,o)}while(Ru)}if(vu.current=pc,t=null!==Eu&&null!==Eu.next,xu=0,wu=Eu=Su=null,Cu=!1,t)throw Error(pn(300));return e}function Mu(){var e=0!==ku;return ku=0,e}function Du(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===wu?Su.memoizedState=wu=e:wu=wu.next=e,wu}function Tu(){if(null===Eu){var e=Su.alternate;e=null!==e?e.memoizedState:null}else e=Eu.next;var t=null===wu?Su.memoizedState:wu.next;if(null!==t)wu=t,Eu=e;else{if(null===e)throw Error(pn(310));e={memoizedState:(Eu=e).memoizedState,baseState:Eu.baseState,baseQueue:Eu.baseQueue,queue:Eu.queue,next:null},null===wu?Su.memoizedState=wu=e:wu=wu.next=e}return wu}function _u(e,t){return"function"==typeof t?t(e):t}function Ou(e){var t=Tu(),n=t.queue;if(null===n)throw Error(pn(311));n.lastRenderedReducer=e;var r=Eu,o=r.baseQueue,i=n.pending;if(null!==i){if(null!==o){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(null!==o){i=o.next,r=r.baseState;var l=a=null,s=null,u=i;do{var c=u.lane;if((xu&c)===c)null!==s&&(s=s.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),r=u.hasEagerState?u.eagerState:e(r,u.action);else{var d={lane:c,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};null===s?(l=s=d,a=r):s=s.next=d,Su.lanes|=c,Bd|=c}u=u.next}while(null!==u&&u!==i);null===s?a=r:s.next=l,ma(r,t.memoizedState)||(kc=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=s,n.lastRenderedState=r}if(null!==(e=n.interleaved)){o=e;do{i=o.lane,Su.lanes|=i,Bd|=i,o=o.next}while(o!==e)}else null===o&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Nu(e){var t=Tu(),n=t.queue;if(null===n)throw Error(pn(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(null!==o){n.pending=null;var a=o=o.next;do{i=e(i,a.action),a=a.next}while(a!==o);ma(i,t.memoizedState)||(kc=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function qu(){}function zu(e,t){var n=Su,r=Tu(),o=t(),i=!ma(r.memoizedState,o);if(i&&(r.memoizedState=o,kc=!0),r=r.queue,Xu($u.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||null!==wu&&1&wu.memoizedState.tag){if(n.flags|=2048,Uu(9,ju.bind(null,n,r,o,t),void 0,null),null===Nd)throw Error(pn(349));30&xu||Fu(n,t,o)}return o}function Fu(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Su.updateQueue)?(t={lastEffect:null,stores:null},Su.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function ju(e,t,n,r){t.value=n,t.getSnapshot=r,Hu(t)&&Bu(e)}function $u(e,t,n){return n((function(){Hu(t)&&Bu(e)}))}function Hu(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!ma(e,n)}catch(e){return!0}}function Bu(e){var t=Ns(e,1);null!==t&&up(t,e,1,-1)}function Wu(e){var t=Du();return"function"==typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_u,lastRenderedState:e},t.queue=e,e=e.dispatch=sc.bind(null,Su,e),[t.memoizedState,e]}function Uu(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=Su.updateQueue)?(t={lastEffect:null,stores:null},Su.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Vu(){return Tu().memoizedState}function Gu(e,t,n,r){var o=Du();Su.flags|=e,o.memoizedState=Uu(1|t,n,void 0,void 0===r?null:r)}function Yu(e,t,n,r){var o=Tu();r=void 0===r?null:r;var i=void 0;if(null!==Eu){var a=Eu.memoizedState;if(i=a.destroy,null!==r&&Lu(r,a.deps))return void(o.memoizedState=Uu(t,n,i,r))}Su.flags|=e,o.memoizedState=Uu(1|t,n,i,r)}function Ku(e,t){return Gu(8390656,8,e,t)}function Xu(e,t){return Yu(2048,8,e,t)}function Ju(e,t){return Yu(4,2,e,t)}function Qu(e,t){return Yu(4,4,e,t)}function Zu(e,t){return"function"==typeof t?(e=e(),t(e),function(){t(null)}):null!=t?(e=e(),t.current=e,function(){t.current=null}):void 0}function ec(e,t,n){return n=null!=n?n.concat([e]):null,Yu(4,4,Zu.bind(null,t,e),n)}function tc(){}function nc(e,t){var n=Tu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Lu(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function rc(e,t){var n=Tu();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&Lu(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function oc(e,t,n){return 21&xu?(ma(n,t)||(n=wo(),Su.lanes|=n,Bd|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,kc=!0),e.memoizedState=n)}function ic(e,t){var n=Ao;Ao=0!==n&&4>n?n:4,e(!0);var r=yu.transition;yu.transition={};try{e(!1),t()}finally{Ao=n,yu.transition=r}}function ac(){return Tu().memoizedState}function lc(e,t,n){var r=sp(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},uc(e))cc(t,n);else if(null!==(n=Os(e,t,n,r))){up(n,e,r,lp()),dc(n,t,r)}}function sc(e,t,n){var r=sp(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(uc(e))cc(t,o);else{var i=e.alternate;if(0===e.lanes&&(null===i||0===i.lanes)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,l=i(a,n);if(o.hasEagerState=!0,o.eagerState=l,ma(l,a)){var s=t.interleaved;return null===s?(o.next=o,_s(t)):(o.next=s.next,s.next=o),void(t.interleaved=o)}}catch(e){}null!==(n=Os(e,t,o,r))&&(up(n,e,r,o=lp()),dc(n,t,r))}}function uc(e){var t=e.alternate;return e===Su||null!==t&&t===Su}function cc(e,t){Ru=Cu=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(4194240&n){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,ko(e,n)}}var pc={readContext:Ds,useCallback:Pu,useContext:Pu,useEffect:Pu,useImperativeHandle:Pu,useInsertionEffect:Pu,useLayoutEffect:Pu,useMemo:Pu,useReducer:Pu,useRef:Pu,useState:Pu,useDebugValue:Pu,useDeferredValue:Pu,useTransition:Pu,useMutableSource:Pu,useSyncExternalStore:Pu,useId:Pu,unstable_isNewReconciler:!1},fc={readContext:Ds,useCallback:function(e,t){return Du().memoizedState=[e,void 0===t?null:t],e},useContext:Ds,useEffect:Ku,useImperativeHandle:function(e,t,n){return n=null!=n?n.concat([e]):null,Gu(4194308,4,Zu.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Gu(4194308,4,e,t)},useInsertionEffect:function(e,t){return Gu(4,2,e,t)},useMemo:function(e,t){var n=Du();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Du();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=lc.bind(null,Su,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},Du().memoizedState=e},useState:Wu,useDebugValue:tc,useDeferredValue:function(e){return Du().memoizedState=e},useTransition:function(){var e=Wu(!1),t=e[0];return e=ic.bind(null,e[1]),Du().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Su,o=Du();if(ds){if(void 0===n)throw Error(pn(407));n=n()}else{if(n=t(),null===Nd)throw Error(pn(349));30&xu||Fu(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,Ku($u.bind(null,r,i,e),[e]),r.flags|=2048,Uu(9,ju.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Du(),t=Nd.identifierPrefix;if(ds){var n=os;t=":"+t+"R"+(n=(rs&~(1<<32-mo(rs)-1)).toString(32)+n),0<(n=ku++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=Au++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},mc={readContext:Ds,useCallback:nc,useContext:Ds,useEffect:Xu,useImperativeHandle:ec,useInsertionEffect:Ju,useLayoutEffect:Qu,useMemo:rc,useReducer:Ou,useRef:Vu,useState:function(){return Ou(_u)},useDebugValue:tc,useDeferredValue:function(e){return oc(Tu(),Eu.memoizedState,e)},useTransition:function(){return[Ou(_u)[0],Tu().memoizedState]},useMutableSource:qu,useSyncExternalStore:zu,useId:ac,unstable_isNewReconciler:!1},hc={readContext:Ds,useCallback:nc,useContext:Ds,useEffect:Xu,useImperativeHandle:ec,useInsertionEffect:Ju,useLayoutEffect:Qu,useMemo:rc,useReducer:Nu,useRef:Vu,useState:function(){return Nu(_u)},useDebugValue:tc,useDeferredValue:function(e){var t=Tu();return null===Eu?t.memoizedState=e:oc(t,Eu.memoizedState,e)},useTransition:function(){return[Nu(_u)[0],Tu().memoizedState]},useMutableSource:qu,useSyncExternalStore:zu,useId:ac,unstable_isNewReconciler:!1};function gc(e,t){try{var n="",r=t;do{n+=Yn(r),r=r.return}while(r);var o=n}catch(e){o="\nError generating stack: "+e.message+"\n"+e.stack}return{value:e,source:t,stack:o,digest:null}}function bc(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function vc(e,t){try{console.error(t.value)}catch(e){setTimeout((function(){throw e}))}}var yc="function"==typeof WeakMap?WeakMap:Map;function xc(e,t,n){(n=js(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Jd||(Jd=!0,Qd=r),vc(0,t)},n}function Sc(e,t,n){(n=js(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"==typeof r){var o=t.value;n.payload=function(){return r(o)},n.callback=function(){vc(0,t)}}var i=e.stateNode;return null!==i&&"function"==typeof i.componentDidCatch&&(n.callback=function(){vc(0,t),"function"!=typeof r&&(null===Zd?Zd=new Set([this]):Zd.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function Ec(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new yc;var o=new Set;r.set(t,o)}else void 0===(o=r.get(t))&&(o=new Set,r.set(t,o));o.has(n)||(o.add(n),e=Dp.bind(null,e,t,n),t.then(e,e))}function wc(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function Cc(e,t,n,r,o){return 1&e.mode?(e.flags|=65536,e.lanes=o,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=js(-1,1)).tag=2,$s(n,t,1))),n.lanes|=1),e)}var Rc=An.ReactCurrentOwner,kc=!1;function Ac(e,t,n,r){t.child=null===e?ou(t,null,n,r):ru(t,e.child,n,r)}function Pc(e,t,n,r,o){n=n.render;var i=t.ref;return Ms(t,o),r=Iu(e,t,n,r,i,o),n=Mu(),null===e||kc?(ds&&n&&ls(t),t.flags|=1,Ac(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jc(e,t,o))}function Lc(e,t,n,r,o){if(null===e){var i=n.type;return"function"!=typeof i||Fp(i)||void 0!==i.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=$p(n.type,null,r,t,t.mode,o)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=i,Ic(e,t,i,r,o))}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if((n=null!==(n=n.compare)?n:ha)(a,r)&&e.ref===t.ref)return Jc(e,t,o)}return t.flags|=1,(e=jp(i,r)).ref=t.ref,e.return=t,t.child=e}function Ic(e,t,n,r,o){if(null!==e){var i=e.memoizedProps;if(ha(i,r)&&e.ref===t.ref){if(kc=!1,t.pendingProps=r=i,!(e.lanes&o))return t.lanes=e.lanes,Jc(e,t,o);131072&e.flags&&(kc=!0)}}return Tc(e,t,n,r,o)}function Mc(e,t,n){var r=t.pendingProps,o=r.children,i=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(1&t.mode){if(!(1073741824&n))return e=null!==i?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Tl(jd,Fd),Fd|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==i?i.baseLanes:n,Tl(jd,Fd),Fd|=r}else t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Tl(jd,Fd),Fd|=n;else null!==i?(r=i.baseLanes|n,t.memoizedState=null):r=n,Tl(jd,Fd),Fd|=r;return Ac(e,t,o,n),t.child}function Dc(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Tc(e,t,n,r,o){var i=Fl(n)?ql:Ol.current;return i=zl(t,i),Ms(t,o),n=Iu(e,t,n,r,i,o),r=Mu(),null===e||kc?(ds&&r&&ls(t),t.flags|=1,Ac(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Jc(e,t,o))}function _c(e,t,n,r,o){if(Fl(n)){var i=!0;Bl(t)}else i=!1;if(Ms(t,o),null===t.stateNode)Xc(e,t),Xs(t,n,r),Qs(t,n,r,o),r=!0;else if(null===e){var a=t.stateNode,l=t.memoizedProps;a.props=l;var s=a.context,u=n.contextType;"object"==typeof u&&null!==u?u=Ds(u):u=zl(t,u=Fl(n)?ql:Ol.current);var c=n.getDerivedStateFromProps,d="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;d||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==r||s!==u)&&Js(t,a,r,u),qs=!1;var p=t.memoizedState;a.state=p,Ws(t,r,a,o),s=t.memoizedState,l!==r||p!==s||Nl.current||qs?("function"==typeof c&&(Gs(t,n,c,r),s=t.memoizedState),(l=qs||Ks(t,n,l,r,p,s,u))?(d||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(t.flags|=4194308)):("function"==typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=s),a.props=r,a.state=s,a.context=u,r=l):("function"==typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Fs(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ws(t.type,l),a.props=u,d=t.pendingProps,p=a.context,"object"==typeof(s=n.contextType)&&null!==s?s=Ds(s):s=zl(t,s=Fl(n)?ql:Ol.current);var f=n.getDerivedStateFromProps;(c="function"==typeof f||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(l!==d||p!==s)&&Js(t,a,r,s),qs=!1,p=t.memoizedState,a.state=p,Ws(t,r,a,o);var m=t.memoizedState;l!==d||p!==m||Nl.current||qs?("function"==typeof f&&(Gs(t,n,f,r),m=t.memoizedState),(u=qs||Ks(t,n,u,r,p,m,s)||!1)?(c||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,m,s),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,m,s)),"function"==typeof a.componentDidUpdate&&(t.flags|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=s,r=u):("function"!=typeof a.componentDidUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),"function"!=typeof a.getSnapshotBeforeUpdate||l===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return Oc(e,t,n,r,i,o)}function Oc(e,t,n,r,o,i){Dc(e,t);var a=!!(128&t.flags);if(!r&&!a)return o&&Wl(t,n,!1),Jc(e,t,i);r=t.stateNode,Rc.current=t;var l=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=ru(t,e.child,null,i),t.child=ru(t,null,l,i)):Ac(e,t,l,i),t.memoizedState=r.state,o&&Wl(t,n,!0),t.child}function Nc(e){var t=e.stateNode;t.pendingContext?$l(0,t.pendingContext,t.pendingContext!==t.context):t.context&&$l(0,t.context,!1),cu(e,t.containerInfo)}function qc(e,t,n,r,o){return xs(),Ss(o),t.flags|=256,Ac(e,t,n,r),t.child}var zc,Fc,jc,$c,Hc={dehydrated:null,treeContext:null,retryLane:0};function Bc(e){return{baseLanes:e,cachePool:null,transitions:null}}function Wc(e,t,n){var r,o=t.pendingProps,i=mu.current,a=!1,l=!!(128&t.flags);if((r=l)||(r=(null===e||null!==e.memoizedState)&&!!(2&i)),r?(a=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(i|=1),Tl(mu,1&i),null===e)return gs(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(1&t.mode?"$!"===e.data?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(l=o.children,e=o.fallback,a?(o=t.mode,a=t.child,l={mode:"hidden",children:l},1&o||null===a?a=Bp(l,o,0,null):(a.childLanes=0,a.pendingProps=l),e=Hp(e,o,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=Bc(n),t.memoizedState=Hc,e):Uc(t,l));if(null!==(i=e.memoizedState)&&null!==(r=i.dehydrated))return function(e,t,n,r,o,i,a){if(n)return 256&t.flags?(t.flags&=-257,Vc(e,t,a,r=bc(Error(pn(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=Bp({mode:"visible",children:r.children},o,0,null),(i=Hp(i,o,a,null)).flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,1&t.mode&&ru(t,e.child,null,a),t.child.memoizedState=Bc(a),t.memoizedState=Hc,i);if(!(1&t.mode))return Vc(e,t,a,null);if("$!"===o.data){if(r=o.nextSibling&&o.nextSibling.dataset)var l=r.dgst;return r=l,Vc(e,t,a,r=bc(i=Error(pn(419)),r,void 0))}if(l=!!(a&e.childLanes),kc||l){if(null!==(r=Nd)){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}0!==(o=o&(r.suspendedLanes|a)?0:o)&&o!==i.retryLane&&(i.retryLane=o,Ns(e,o),up(r,e,o,-1))}return Ep(),Vc(e,t,a,r=bc(Error(pn(421))))}return"$?"===o.data?(t.flags|=128,t.child=e.child,t=_p.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,cs=gl(o.nextSibling),us=t,ds=!0,ps=null,null!==e&&(es[ts++]=rs,es[ts++]=os,es[ts++]=ns,rs=e.id,os=e.overflow,ns=t),t=Uc(t,r.children),t.flags|=4096,t)}(e,t,l,o,r,i,n);if(a){a=o.fallback,l=t.mode,r=(i=e.child).sibling;var s={mode:"hidden",children:o.children};return 1&l||t.child===i?(o=jp(i,s)).subtreeFlags=14680064&i.subtreeFlags:((o=t.child).childLanes=0,o.pendingProps=s,t.deletions=null),null!==r?a=jp(r,a):(a=Hp(a,l,n,null)).flags|=2,a.return=t,o.return=t,o.sibling=a,t.child=o,o=a,a=t.child,l=null===(l=e.child.memoizedState)?Bc(n):{baseLanes:l.baseLanes|n,cachePool:null,transitions:l.transitions},a.memoizedState=l,a.childLanes=e.childLanes&~n,t.memoizedState=Hc,o}return e=(a=e.child).sibling,o=jp(a,{mode:"visible",children:o.children}),!(1&t.mode)&&(o.lanes=n),o.return=t,o.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=o,t.memoizedState=null,o}function Uc(e,t){return(t=Bp({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function Vc(e,t,n,r){return null!==r&&Ss(r),ru(t,e.child,null,n),(e=Uc(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Gc(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Is(e.return,t,n)}function Yc(e,t,n,r,o){var i=e.memoizedState;null===i?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function Kc(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(Ac(e,t,r.children,n),2&(r=mu.current))r=1&r|2,t.flags|=128;else{if(null!==e&&128&e.flags)e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Gc(e,n,t);else if(19===e.tag)Gc(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Tl(mu,r),1&t.mode)switch(o){case"forwards":for(n=t.child,o=null;null!==n;)null!==(e=n.alternate)&&null===hu(e)&&(o=n),n=n.sibling;null===(n=o)?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),Yc(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===hu(e)){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}Yc(t,!0,n,null,i);break;case"together":Yc(t,!1,null,null,void 0);break;default:t.memoizedState=null}else t.memoizedState=null;return t.child}function Xc(e,t){!(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Jc(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Bd|=t.lanes,!(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(pn(153));if(null!==t.child){for(n=jp(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=jp(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Qc(e,t){if(!ds)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Zc(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=14680064&o.subtreeFlags,r|=14680064&o.flags,o.return=e,o=o.sibling;else for(o=e.child;null!==o;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,o.return=e,o=o.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function ed(e,t,n){var r=t.pendingProps;switch(ss(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Zc(t),null;case 1:case 17:return Fl(t.type)&&jl(),Zc(t),null;case 3:return r=t.stateNode,du(),Dl(Nl),Dl(Ol),bu(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(vs(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&!(256&t.flags)||(t.flags|=1024,null!==ps&&(fp(ps),ps=null))),Fc(e,t),Zc(t),null;case 5:fu(t);var o=uu(su.current);if(n=t.type,null!==e&&null!=t.stateNode)jc(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(pn(166));return Zc(t),null}if(e=uu(au.current),vs(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[yl]=t,r[xl]=i,e=!!(1&t.mode),n){case"dialog":Va("cancel",r),Va("close",r);break;case"iframe":case"object":case"embed":Va("load",r);break;case"video":case"audio":for(o=0;o<Ha.length;o++)Va(Ha[o],r);break;case"source":Va("error",r);break;case"img":case"image":case"link":Va("error",r),Va("load",r);break;case"details":Va("toggle",r);break;case"input":rr(r,i),Va("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},Va("invalid",r);break;case"textarea":dr(r,i),Va("invalid",r)}for(var a in Rr(n,i),o=null,i)if(i.hasOwnProperty(a)){var l=i[a];"children"===a?"string"==typeof l?r.textContent!==l&&(!0!==i.suppressHydrationWarning&&il(r.textContent,l,e),o=["children",l]):"number"==typeof l&&r.textContent!==""+l&&(!0!==i.suppressHydrationWarning&&il(r.textContent,l,e),o=["children",""+l]):mn.hasOwnProperty(a)&&null!=l&&"onScroll"===a&&Va("scroll",r)}switch(n){case"input":Zn(r),ar(r,i,!0);break;case"textarea":Zn(r),fr(r);break;case"select":case"option":break;default:"function"==typeof i.onClick&&(r.onclick=al)}r=o,t.updateQueue=r,null!==r&&(t.flags|=4)}else{a=9===o.nodeType?o:o.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=mr(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=a.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"==typeof r.is?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),"select"===n&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[yl]=t,e[xl]=r,zc(e,t,!1,!1),t.stateNode=e;e:{switch(a=kr(n,r),n){case"dialog":Va("cancel",e),Va("close",e),o=r;break;case"iframe":case"object":case"embed":Va("load",e),o=r;break;case"video":case"audio":for(o=0;o<Ha.length;o++)Va(Ha[o],e);o=r;break;case"source":Va("error",e),o=r;break;case"img":case"image":case"link":Va("error",e),Va("load",e),o=r;break;case"details":Va("toggle",e),o=r;break;case"input":rr(e,r),o=nr(e,r),Va("invalid",e);break;case"option":default:o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Wn({},r,{value:void 0}),Va("invalid",e);break;case"textarea":dr(e,r),o=cr(e,r),Va("invalid",e)}for(i in Rr(n,o),l=o)if(l.hasOwnProperty(i)){var s=l[i];"style"===i?wr(e,s):"dangerouslySetInnerHTML"===i?null!=(s=s?s.__html:void 0)&&vr(e,s):"children"===i?"string"==typeof s?("textarea"!==n||""!==s)&&yr(e,s):"number"==typeof s&&yr(e,""+s):"suppressContentEditableWarning"!==i&&"suppressHydrationWarning"!==i&&"autoFocus"!==i&&(mn.hasOwnProperty(i)?null!=s&&"onScroll"===i&&Va("scroll",e):null!=s&&kn(e,i,s,a))}switch(n){case"input":Zn(e),ar(e,r,!1);break;case"textarea":Zn(e),fr(e);break;case"option":null!=r.value&&e.setAttribute("value",""+Jn(r.value));break;case"select":e.multiple=!!r.multiple,null!=(i=r.value)?ur(e,!!r.multiple,i,!1):null!=r.defaultValue&&ur(e,!!r.multiple,r.defaultValue,!0);break;default:"function"==typeof o.onClick&&(e.onclick=al)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Zc(t),null;case 6:if(e&&null!=t.stateNode)$c(e,t,e.memoizedProps,r);else{if("string"!=typeof r&&null===t.stateNode)throw Error(pn(166));if(n=uu(su.current),uu(au.current),vs(t)){if(r=t.stateNode,n=t.memoizedProps,r[yl]=t,(i=r.nodeValue!==n)&&null!==(e=us))switch(e.tag){case 3:il(r.nodeValue,n,!!(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&il(r.nodeValue,n,!!(1&e.mode))}i&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[yl]=t,t.stateNode=r}return Zc(t),null;case 13:if(Dl(mu),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(ds&&null!==cs&&1&t.mode&&!(128&t.flags))ys(),xs(),t.flags|=98560,i=!1;else if(i=vs(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(pn(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(pn(317));i[yl]=t}else xs(),!(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Zc(t),i=!1}else null!==ps&&(fp(ps),ps=null),i=!0;if(!i)return 65536&t.flags?t:null}return 128&t.flags?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,1&t.mode&&(null===e||1&mu.current?0===$d&&($d=3):Ep())),null!==t.updateQueue&&(t.flags|=4),Zc(t),null);case 4:return du(),Fc(e,t),null===e&&Ka(t.stateNode.containerInfo),Zc(t),null;case 10:return Ls(t.type._context),Zc(t),null;case 19:if(Dl(mu),null===(i=t.memoizedState))return Zc(t),null;if(r=!!(128&t.flags),null===(a=i.rendering))if(r)Qc(i,!1);else{if(0!==$d||null!==e&&128&e.flags)for(e=t.child;null!==e;){if(null!==(a=hu(e))){for(t.flags|=128,Qc(i,!1),null!==(r=a.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(i=n).flags&=14680066,null===(a=i.alternate)?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Tl(mu,1&mu.current|2),t.child}e=e.sibling}null!==i.tail&&oo()>Kd&&(t.flags|=128,r=!0,Qc(i,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=hu(a))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Qc(i,!0),null===i.tail&&"hidden"===i.tailMode&&!a.alternate&&!ds)return Zc(t),null}else 2*oo()-i.renderingStartTime>Kd&&1073741824!==n&&(t.flags|=128,r=!0,Qc(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(null!==(n=i.last)?n.sibling=a:t.child=a,i.last=a)}return null!==i.tail?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=oo(),t.sibling=null,n=mu.current,Tl(mu,r?1&n|2:1&n),t):(Zc(t),null);case 22:case 23:return vp(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&1&t.mode?!!(1073741824&Fd)&&(Zc(t),6&t.subtreeFlags&&(t.flags|=8192)):Zc(t),null;case 24:case 25:return null}throw Error(pn(156,t.tag))}function td(e,t){switch(ss(t),t.tag){case 1:return Fl(t.type)&&jl(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return du(),Dl(Nl),Dl(Ol),bu(),65536&(e=t.flags)&&!(128&e)?(t.flags=-65537&e|128,t):null;case 5:return fu(t),null;case 13:if(Dl(mu),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(pn(340));xs()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Dl(mu),null;case 4:return du(),null;case 10:return Ls(t.type._context),null;case 22:case 23:return vp(),null;default:return null}}zc=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Fc=function(){},jc=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,uu(au.current);var i,a=null;switch(n){case"input":o=nr(e,o),r=nr(e,r),a=[];break;case"select":o=Wn({},o,{value:void 0}),r=Wn({},r,{value:void 0}),a=[];break;case"textarea":o=cr(e,o),r=cr(e,r),a=[];break;default:"function"!=typeof o.onClick&&"function"==typeof r.onClick&&(e.onclick=al)}for(u in Rr(n,r),n=null,o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&null!=o[u])if("style"===u){var l=o[u];for(i in l)l.hasOwnProperty(i)&&(n||(n={}),n[i]="")}else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(mn.hasOwnProperty(u)?a||(a=[]):(a=a||[]).push(u,null));for(u in r){var s=r[u];if(l=null!=o?o[u]:void 0,r.hasOwnProperty(u)&&s!==l&&(null!=s||null!=l))if("style"===u)if(l){for(i in l)!l.hasOwnProperty(i)||s&&s.hasOwnProperty(i)||(n||(n={}),n[i]="");for(i in s)s.hasOwnProperty(i)&&l[i]!==s[i]&&(n||(n={}),n[i]=s[i])}else n||(a||(a=[]),a.push(u,n)),n=s;else"dangerouslySetInnerHTML"===u?(s=s?s.__html:void 0,l=l?l.__html:void 0,null!=s&&l!==s&&(a=a||[]).push(u,s)):"children"===u?"string"!=typeof s&&"number"!=typeof s||(a=a||[]).push(u,""+s):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(mn.hasOwnProperty(u)?(null!=s&&"onScroll"===u&&Va("scroll",e),a||l===s||(a=[])):(a=a||[]).push(u,s))}n&&(a=a||[]).push("style",n);var u=a;(t.updateQueue=u)&&(t.flags|=4)}},$c=function(e,t,n,r){n!==r&&(t.flags|=4)};var nd=!1,rd=!1,od="function"==typeof WeakSet?WeakSet:Set,id=null;function ad(e,t){var n=e.ref;if(null!==n)if("function"==typeof n)try{n(null)}catch(n){Mp(e,t,n)}else n.current=null}function ld(e,t,n){try{n()}catch(n){Mp(e,t,n)}}var sd=!1;function ud(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var o=r=r.next;do{if((o.tag&e)===e){var i=o.destroy;o.destroy=void 0,void 0!==i&&ld(t,n,i)}o=o.next}while(o!==r)}}function cd(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function dd(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"==typeof t?t(e):t.current=e}}function pd(e){var t=e.alternate;null!==t&&(e.alternate=null,pd(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[yl],delete t[xl],delete t[El],delete t[wl],delete t[Cl])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function fd(e){return 5===e.tag||3===e.tag||4===e.tag}function md(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||fd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function hd(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!=(n=n._reactRootContainer)||null!==t.onclick||(t.onclick=al));else if(4!==r&&null!==(e=e.child))for(hd(e,t,n),e=e.sibling;null!==e;)hd(e,t,n),e=e.sibling}function gd(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(gd(e,t,n),e=e.sibling;null!==e;)gd(e,t,n),e=e.sibling}var bd=null,vd=!1;function yd(e,t,n){for(n=n.child;null!==n;)xd(e,t,n),n=n.sibling}function xd(e,t,n){if(fo&&"function"==typeof fo.onCommitFiberUnmount)try{fo.onCommitFiberUnmount(po,n)}catch(e){}switch(n.tag){case 5:rd||ad(n,t);case 6:var r=bd,o=vd;bd=null,yd(e,t,n),vd=o,null!==(bd=r)&&(vd?(e=bd,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):bd.removeChild(n.stateNode));break;case 18:null!==bd&&(vd?(e=bd,n=n.stateNode,8===e.nodeType?hl(e.parentNode,n):1===e.nodeType&&hl(e,n),Xo(e)):hl(bd,n.stateNode));break;case 4:r=bd,o=vd,bd=n.stateNode.containerInfo,vd=!0,yd(e,t,n),bd=r,vd=o;break;case 0:case 11:case 14:case 15:if(!rd&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,void 0!==a&&(2&i||4&i)&&ld(n,t,a),o=o.next}while(o!==r)}yd(e,t,n);break;case 1:if(!rd&&(ad(n,t),"function"==typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Mp(n,t,e)}yd(e,t,n);break;case 21:yd(e,t,n);break;case 22:1&n.mode?(rd=(r=rd)||null!==n.memoizedState,yd(e,t,n),rd=r):yd(e,t,n);break;default:yd(e,t,n)}}function Sd(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new od),t.forEach((function(t){var r=Op.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function Ed(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,l=a;e:for(;null!==l;){switch(l.tag){case 5:bd=l.stateNode,vd=!1;break e;case 3:case 4:bd=l.stateNode.containerInfo,vd=!0;break e}l=l.return}if(null===bd)throw Error(pn(160));xd(i,a,o),bd=null,vd=!1;var s=o.alternate;null!==s&&(s.return=null),o.return=null}catch(e){Mp(o,t,e)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)wd(t,e),t=t.sibling}function wd(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Ed(t,e),Cd(e),4&r){try{ud(3,e,e.return),cd(3,e)}catch(t){Mp(e,e.return,t)}try{ud(5,e,e.return)}catch(t){Mp(e,e.return,t)}}break;case 1:Ed(t,e),Cd(e),512&r&&null!==n&&ad(n,n.return);break;case 5:if(Ed(t,e),Cd(e),512&r&&null!==n&&ad(n,n.return),32&e.flags){var o=e.stateNode;try{yr(o,"")}catch(t){Mp(e,e.return,t)}}if(4&r&&null!=(o=e.stateNode)){var i=e.memoizedProps,a=null!==n?n.memoizedProps:i,l=e.type,s=e.updateQueue;if(e.updateQueue=null,null!==s)try{"input"===l&&"radio"===i.type&&null!=i.name&&or(o,i),kr(l,a);var u=kr(l,i);for(a=0;a<s.length;a+=2){var c=s[a],d=s[a+1];"style"===c?wr(o,d):"dangerouslySetInnerHTML"===c?vr(o,d):"children"===c?yr(o,d):kn(o,c,d,u)}switch(l){case"input":ir(o,i);break;case"textarea":pr(o,i);break;case"select":var p=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;null!=f?ur(o,!!i.multiple,f,!1):p!==!!i.multiple&&(null!=i.defaultValue?ur(o,!!i.multiple,i.defaultValue,!0):ur(o,!!i.multiple,i.multiple?[]:"",!1))}o[xl]=i}catch(t){Mp(e,e.return,t)}}break;case 6:if(Ed(t,e),Cd(e),4&r){if(null===e.stateNode)throw Error(pn(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(t){Mp(e,e.return,t)}}break;case 3:if(Ed(t,e),Cd(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Xo(t.containerInfo)}catch(t){Mp(e,e.return,t)}break;case 4:default:Ed(t,e),Cd(e);break;case 13:Ed(t,e),Cd(e),8192&(o=e.child).flags&&(i=null!==o.memoizedState,o.stateNode.isHidden=i,!i||null!==o.alternate&&null!==o.alternate.memoizedState||(Yd=oo())),4&r&&Sd(e);break;case 22:if(c=null!==n&&null!==n.memoizedState,1&e.mode?(rd=(u=rd)||c,Ed(t,e),rd=u):Ed(t,e),Cd(e),8192&r){if(u=null!==e.memoizedState,(e.stateNode.isHidden=u)&&!c&&1&e.mode)for(id=e,c=e.child;null!==c;){for(d=id=c;null!==id;){switch(f=(p=id).child,p.tag){case 0:case 11:case 14:case 15:ud(4,p,p.return);break;case 1:ad(p,p.return);var m=p.stateNode;if("function"==typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(e){Mp(r,n,e)}}break;case 5:ad(p,p.return);break;case 22:if(null!==p.memoizedState){Pd(d);continue}}null!==f?(f.return=p,id=f):Pd(d)}c=c.sibling}e:for(c=null,d=e;;){if(5===d.tag){if(null===c){c=d;try{o=d.stateNode,u?"function"==typeof(i=o.style).setProperty?i.setProperty("display","none","important"):i.display="none":(l=d.stateNode,a=null!=(s=d.memoizedProps.style)&&s.hasOwnProperty("display")?s.display:null,l.style.display=Er("display",a))}catch(t){Mp(e,e.return,t)}}}else if(6===d.tag){if(null===c)try{d.stateNode.nodeValue=u?"":d.memoizedProps}catch(t){Mp(e,e.return,t)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;c===d&&(c=null),d=d.return}c===d&&(c=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ed(t,e),Cd(e),4&r&&Sd(e);case 21:}}function Cd(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(fd(n)){var r=n;break e}n=n.return}throw Error(pn(160))}switch(r.tag){case 5:var o=r.stateNode;32&r.flags&&(yr(o,""),r.flags&=-33),gd(e,md(e),o);break;case 3:case 4:var i=r.stateNode.containerInfo;hd(e,md(e),i);break;default:throw Error(pn(161))}}catch(t){Mp(e,e.return,t)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function Rd(e,t,n){id=e,kd(e)}function kd(e,t,n){for(var r=!!(1&e.mode);null!==id;){var o=id,i=o.child;if(22===o.tag&&r){var a=null!==o.memoizedState||nd;if(!a){var l=o.alternate,s=null!==l&&null!==l.memoizedState||rd;l=nd;var u=rd;if(nd=a,(rd=s)&&!u)for(id=o;null!==id;)s=(a=id).child,22===a.tag&&null!==a.memoizedState?Ld(o):null!==s?(s.return=a,id=s):Ld(o);for(;null!==i;)id=i,kd(i),i=i.sibling;id=o,nd=l,rd=u}Ad(e)}else 8772&o.subtreeFlags&&null!==i?(i.return=o,id=i):Ad(e)}}function Ad(e){for(;null!==id;){var t=id;if(8772&t.flags){var n=t.alternate;try{if(8772&t.flags)switch(t.tag){case 0:case 11:case 15:rd||cd(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!rd)if(null===n)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:ws(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;null!==i&&Us(t,i,r);break;case 3:var a=t.updateQueue;if(null!==a){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}Us(t,a,n)}break;case 5:var l=t.stateNode;if(null===n&&4&t.flags){n=l;var s=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":s.autoFocus&&n.focus();break;case"img":s.src&&(n.src=s.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var u=t.alternate;if(null!==u){var c=u.memoizedState;if(null!==c){var d=c.dehydrated;null!==d&&Xo(d)}}}break;default:throw Error(pn(163))}rd||512&t.flags&&dd(t)}catch(e){Mp(t,t.return,e)}}if(t===e){id=null;break}if(null!==(n=t.sibling)){n.return=t.return,id=n;break}id=t.return}}function Pd(e){for(;null!==id;){var t=id;if(t===e){id=null;break}var n=t.sibling;if(null!==n){n.return=t.return,id=n;break}id=t.return}}function Ld(e){for(;null!==id;){var t=id;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{cd(4,t)}catch(e){Mp(t,n,e)}break;case 1:var r=t.stateNode;if("function"==typeof r.componentDidMount){var o=t.return;try{r.componentDidMount()}catch(e){Mp(t,o,e)}}var i=t.return;try{dd(t)}catch(e){Mp(t,i,e)}break;case 5:var a=t.return;try{dd(t)}catch(e){Mp(t,a,e)}}}catch(e){Mp(t,t.return,e)}if(t===e){id=null;break}var l=t.sibling;if(null!==l){l.return=t.return,id=l;break}id=t.return}}var Id,Md=Math.ceil,Dd=An.ReactCurrentDispatcher,Td=An.ReactCurrentOwner,_d=An.ReactCurrentBatchConfig,Od=0,Nd=null,qd=null,zd=0,Fd=0,jd=Ml(0),$d=0,Hd=null,Bd=0,Wd=0,Ud=0,Vd=null,Gd=null,Yd=0,Kd=1/0,Xd=null,Jd=!1,Qd=null,Zd=null,ep=!1,tp=null,np=0,rp=0,op=null,ip=-1,ap=0;function lp(){return 6&Od?oo():-1!==ip?ip:ip=oo()}function sp(e){return 1&e.mode?2&Od&&0!==zd?zd&-zd:null!==Es.transition?(0===ap&&(ap=wo()),ap):0!==(e=Ao)?e:e=void 0===(e=window.event)?16:oi(e.type):1}function up(e,t,n,r){if(50<rp)throw rp=0,op=null,Error(pn(185));Ro(e,n,r),2&Od&&e===Nd||(e===Nd&&(!(2&Od)&&(Wd|=n),4===$d&&mp(e,zd)),cp(e,r),1===n&&0===Od&&!(1&t.mode)&&(Kd=oo()+500,Vl&&Kl()))}function cp(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-mo(i),l=1<<a,s=o[a];-1===s?l&n&&!(l&r)||(o[a]=So(l,t)):s<=t&&(e.expiredLanes|=l),i&=~l}}(e,t);var r=xo(e,e===Nd?zd:0);if(0===r)null!==n&&to(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&to(n),1===t)0===e.tag?function(e){Vl=!0,Yl(e)}(hp.bind(null,e)):Yl(hp.bind(null,e)),fl((function(){!(6&Od)&&Kl()})),n=null;else{switch(Po(r)){case 1:n=ao;break;case 4:n=lo;break;case 16:default:n=so;break;case 536870912:n=co}n=Np(n,dp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function dp(e,t){if(ip=-1,ap=0,6&Od)throw Error(pn(327));var n=e.callbackNode;if(Lp()&&e.callbackNode!==n)return null;var r=xo(e,e===Nd?zd:0);if(0===r)return null;if(30&r||r&e.expiredLanes||t)t=wp(e,r);else{t=r;var o=Od;Od|=2;var i=Sp();for(Nd===e&&zd===t||(Xd=null,Kd=oo()+500,yp(e,t));;)try{Rp();break}catch(t){xp(e,t)}Ps(),Dd.current=i,Od=o,null!==qd?t=0:(Nd=null,zd=0,t=$d)}if(0!==t){if(2===t&&(0!==(o=Eo(e))&&(r=o,t=pp(e,o))),1===t)throw n=Hd,yp(e,0),mp(e,r),cp(e,oo()),n;if(6===t)mp(e,r);else{if(o=e.current.alternate,!(30&r||function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var o=n[r],i=o.getSnapshot;o=o.value;try{if(!ma(i(),o))return!1}catch(e){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(o)||(t=wp(e,r),2===t&&(i=Eo(e),0!==i&&(r=i,t=pp(e,i))),1!==t)))throw n=Hd,yp(e,0),mp(e,r),cp(e,oo()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error(pn(345));case 2:case 5:Pp(e,Gd,Xd);break;case 3:if(mp(e,r),(130023424&r)===r&&10<(t=Yd+500-oo())){if(0!==xo(e,0))break;if(((o=e.suspendedLanes)&r)!==r){lp(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=cl(Pp.bind(null,e,Gd,Xd),t);break}Pp(e,Gd,Xd);break;case 4:if(mp(e,r),(4194240&r)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-mo(r);i=1<<a,(a=t[a])>o&&(o=a),r&=~i}if(r=o,10<(r=(120>(r=oo()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Md(r/1960))-r)){e.timeoutHandle=cl(Pp.bind(null,e,Gd,Xd),r);break}Pp(e,Gd,Xd);break;default:throw Error(pn(329))}}}return cp(e,oo()),e.callbackNode===n?dp.bind(null,e):null}function pp(e,t){var n=Vd;return e.current.memoizedState.isDehydrated&&(yp(e,t).flags|=256),2!==(e=wp(e,t))&&(t=Gd,Gd=n,null!==t&&fp(t)),e}function fp(e){null===Gd?Gd=e:Gd.push.apply(Gd,e)}function mp(e,t){for(t&=~Ud,t&=~Wd,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-mo(t),r=1<<n;e[n]=-1,t&=~r}}function hp(e){if(6&Od)throw Error(pn(327));Lp();var t=xo(e,0);if(!(1&t))return cp(e,oo()),null;var n=wp(e,t);if(0!==e.tag&&2===n){var r=Eo(e);0!==r&&(t=r,n=pp(e,r))}if(1===n)throw n=Hd,yp(e,0),mp(e,t),cp(e,oo()),n;if(6===n)throw Error(pn(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Pp(e,Gd,Xd),cp(e,oo()),null}function gp(e,t){var n=Od;Od|=1;try{return e(t)}finally{0===(Od=n)&&(Kd=oo()+500,Vl&&Kl())}}function bp(e){null!==tp&&0===tp.tag&&!(6&Od)&&Lp();var t=Od;Od|=1;var n=_d.transition,r=Ao;try{if(_d.transition=null,Ao=1,e)return e()}finally{Ao=r,_d.transition=n,!(6&(Od=t))&&Kl()}}function vp(){Fd=jd.current,Dl(jd)}function yp(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,dl(n)),null!==qd)for(n=qd.return;null!==n;){var r=n;switch(ss(r),r.tag){case 1:null!=(r=r.type.childContextTypes)&&jl();break;case 3:du(),Dl(Nl),Dl(Ol),bu();break;case 5:fu(r);break;case 4:du();break;case 13:case 19:Dl(mu);break;case 10:Ls(r.type._context);break;case 22:case 23:vp()}n=n.return}if(Nd=e,qd=e=jp(e.current,null),zd=Fd=t,$d=0,Hd=null,Ud=Wd=Bd=0,Gd=Vd=null,null!==Ts){for(t=0;t<Ts.length;t++)if(null!==(r=(n=Ts[t]).interleaved)){n.interleaved=null;var o=r.next,i=n.pending;if(null!==i){var a=i.next;i.next=o,r.next=a}n.pending=r}Ts=null}return e}function xp(e,t){for(;;){var n=qd;try{if(Ps(),vu.current=pc,Cu){for(var r=Su.memoizedState;null!==r;){var o=r.queue;null!==o&&(o.pending=null),r=r.next}Cu=!1}if(xu=0,wu=Eu=Su=null,Ru=!1,ku=0,Td.current=null,null===n||null===n.return){$d=1,Hd=t,qd=null;break}e:{var i=e,a=n.return,l=n,s=t;if(t=zd,l.flags|=32768,null!==s&&"object"==typeof s&&"function"==typeof s.then){var u=s,c=l,d=c.tag;if(!(1&c.mode||0!==d&&11!==d&&15!==d)){var p=c.alternate;p?(c.updateQueue=p.updateQueue,c.memoizedState=p.memoizedState,c.lanes=p.lanes):(c.updateQueue=null,c.memoizedState=null)}var f=wc(a);if(null!==f){f.flags&=-257,Cc(f,a,l,0,t),1&f.mode&&Ec(i,u,t),s=u;var m=(t=f).updateQueue;if(null===m){var h=new Set;h.add(s),t.updateQueue=h}else m.add(s);break e}if(!(1&t)){Ec(i,u,t),Ep();break e}s=Error(pn(426))}else if(ds&&1&l.mode){var g=wc(a);if(null!==g){!(65536&g.flags)&&(g.flags|=256),Cc(g,a,l,0,t),Ss(gc(s,l));break e}}i=s=gc(s,l),4!==$d&&($d=2),null===Vd?Vd=[i]:Vd.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t,Bs(i,xc(0,s,t));break e;case 1:l=s;var b=i.type,v=i.stateNode;if(!(128&i.flags||"function"!=typeof b.getDerivedStateFromError&&(null===v||"function"!=typeof v.componentDidCatch||null!==Zd&&Zd.has(v)))){i.flags|=65536,t&=-t,i.lanes|=t,Bs(i,Sc(i,l,t));break e}}i=i.return}while(null!==i)}Ap(n)}catch(e){t=e,qd===n&&null!==n&&(qd=n=n.return);continue}break}}function Sp(){var e=Dd.current;return Dd.current=pc,null===e?pc:e}function Ep(){0!==$d&&3!==$d&&2!==$d||($d=4),null===Nd||!(268435455&Bd)&&!(268435455&Wd)||mp(Nd,zd)}function wp(e,t){var n=Od;Od|=2;var r=Sp();for(Nd===e&&zd===t||(Xd=null,yp(e,t));;)try{Cp();break}catch(t){xp(e,t)}if(Ps(),Od=n,Dd.current=r,null!==qd)throw Error(pn(261));return Nd=null,zd=0,$d}function Cp(){for(;null!==qd;)kp(qd)}function Rp(){for(;null!==qd&&!no();)kp(qd)}function kp(e){var t=Id(e.alternate,e,Fd);e.memoizedProps=e.pendingProps,null===t?Ap(e):qd=t,Td.current=null}function Ap(e){var t=e;do{var n=t.alternate;if(e=t.return,32768&t.flags){if(null!==(n=td(n,t)))return n.flags&=32767,void(qd=n);if(null===e)return $d=6,void(qd=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}else if(null!==(n=ed(n,t,Fd)))return void(qd=n);if(null!==(t=t.sibling))return void(qd=t);qd=t=e}while(null!==t);0===$d&&($d=5)}function Pp(e,t,n){var r=Ao,o=_d.transition;try{_d.transition=null,Ao=1,function(e,t,n,r){do{Lp()}while(null!==tp);if(6&Od)throw Error(pn(327));n=e.finishedWork;var o=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(pn(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var o=31-mo(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}(e,i),e===Nd&&(qd=Nd=null,zd=0),!(2064&n.subtreeFlags)&&!(2064&n.flags)||ep||(ep=!0,Np(so,(function(){return Lp(),null}))),i=!!(15990&n.flags),!!(15990&n.subtreeFlags)||i){i=_d.transition,_d.transition=null;var a=Ao;Ao=1;var l=Od;Od|=4,Td.current=null,function(e,t){if(ll=Qo,xa(e=ya())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var o=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch(e){n=null;break e}var a=0,l=-1,s=-1,u=0,c=0,d=e,p=null;t:for(;;){for(var f;d!==n||0!==o&&3!==d.nodeType||(l=a+o),d!==i||0!==r&&3!==d.nodeType||(s=a+r),3===d.nodeType&&(a+=d.nodeValue.length),null!==(f=d.firstChild);)p=d,d=f;for(;;){if(d===e)break t;if(p===n&&++u===o&&(l=a),p===i&&++c===r&&(s=a),null!==(f=d.nextSibling))break;p=(d=p).parentNode}d=f}n=-1===l||-1===s?null:{start:l,end:s}}else n=null}n=n||{start:0,end:0}}else n=null;for(sl={focusedElem:e,selectionRange:n},Qo=!1,id=t;null!==id;)if(e=(t=id).child,1028&t.subtreeFlags&&null!==e)e.return=t,id=e;else for(;null!==id;){t=id;try{var m=t.alternate;if(1024&t.flags)switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var h=m.memoizedProps,g=m.memoizedState,b=t.stateNode,v=b.getSnapshotBeforeUpdate(t.elementType===t.type?h:ws(t.type,h),g);b.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var y=t.stateNode.containerInfo;1===y.nodeType?y.textContent="":9===y.nodeType&&y.documentElement&&y.removeChild(y.documentElement);break;default:throw Error(pn(163))}}catch(e){Mp(t,t.return,e)}if(null!==(e=t.sibling)){e.return=t.return,id=e;break}id=t.return}m=sd,sd=!1}(e,n),wd(n,e),Sa(sl),Qo=!!ll,sl=ll=null,e.current=n,Rd(n),ro(),Od=l,Ao=a,_d.transition=i}else e.current=n;if(ep&&(ep=!1,tp=e,np=o),i=e.pendingLanes,0===i&&(Zd=null),function(e){if(fo&&"function"==typeof fo.onCommitFiberRoot)try{fo.onCommitFiberRoot(po,e,void 0,!(128&~e.current.flags))}catch(e){}}(n.stateNode),cp(e,oo()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)o=t[n],r(o.value,{componentStack:o.stack,digest:o.digest});if(Jd)throw Jd=!1,e=Qd,Qd=null,e;!!(1&np)&&0!==e.tag&&Lp(),i=e.pendingLanes,1&i?e===op?rp++:(rp=0,op=e):rp=0,Kl()}(e,t,n,r)}finally{_d.transition=o,Ao=r}return null}function Lp(){if(null!==tp){var e=Po(np),t=_d.transition,n=Ao;try{if(_d.transition=null,Ao=16>e?16:e,null===tp)var r=!1;else{if(e=tp,tp=null,np=0,6&Od)throw Error(pn(331));var o=Od;for(Od|=4,id=e.current;null!==id;){var i=id,a=i.child;if(16&id.flags){var l=i.deletions;if(null!==l){for(var s=0;s<l.length;s++){var u=l[s];for(id=u;null!==id;){var c=id;switch(c.tag){case 0:case 11:case 15:ud(8,c,i)}var d=c.child;if(null!==d)d.return=c,id=d;else for(;null!==id;){var p=(c=id).sibling,f=c.return;if(pd(c),c===u){id=null;break}if(null!==p){p.return=f,id=p;break}id=f}}}var m=i.alternate;if(null!==m){var h=m.child;if(null!==h){m.child=null;do{var g=h.sibling;h.sibling=null,h=g}while(null!==h)}}id=i}}if(2064&i.subtreeFlags&&null!==a)a.return=i,id=a;else e:for(;null!==id;){if(2048&(i=id).flags)switch(i.tag){case 0:case 11:case 15:ud(9,i,i.return)}var b=i.sibling;if(null!==b){b.return=i.return,id=b;break e}id=i.return}}var v=e.current;for(id=v;null!==id;){var y=(a=id).child;if(2064&a.subtreeFlags&&null!==y)y.return=a,id=y;else e:for(a=v;null!==id;){if(2048&(l=id).flags)try{switch(l.tag){case 0:case 11:case 15:cd(9,l)}}catch(e){Mp(l,l.return,e)}if(l===a){id=null;break e}var x=l.sibling;if(null!==x){x.return=l.return,id=x;break e}id=l.return}}if(Od=o,Kl(),fo&&"function"==typeof fo.onPostCommitFiberRoot)try{fo.onPostCommitFiberRoot(po,e)}catch(e){}r=!0}return r}finally{Ao=n,_d.transition=t}}return!1}function Ip(e,t,n){e=$s(e,t=xc(0,t=gc(n,t),1),1),t=lp(),null!==e&&(Ro(e,1,t),cp(e,t))}function Mp(e,t,n){if(3===e.tag)Ip(e,e,n);else for(;null!==t;){if(3===t.tag){Ip(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"==typeof t.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Zd||!Zd.has(r))){t=$s(t,e=Sc(t,e=gc(n,e),1),1),e=lp(),null!==t&&(Ro(t,1,e),cp(t,e));break}}t=t.return}}function Dp(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=lp(),e.pingedLanes|=e.suspendedLanes&n,Nd===e&&(zd&n)===n&&(4===$d||3===$d&&(130023424&zd)===zd&&500>oo()-Yd?yp(e,0):Ud|=n),cp(e,t)}function Tp(e,t){0===t&&(1&e.mode?(t=vo,!(130023424&(vo<<=1))&&(vo=4194304)):t=1);var n=lp();null!==(e=Ns(e,t))&&(Ro(e,t,n),cp(e,n))}function _p(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Tp(e,n)}function Op(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,o=e.memoizedState;null!==o&&(n=o.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(pn(314))}null!==r&&r.delete(t),Tp(e,n)}function Np(e,t){return eo(e,t)}function qp(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function zp(e,t,n,r){return new qp(e,t,n,r)}function Fp(e){return!(!(e=e.prototype)||!e.isReactComponent)}function jp(e,t){var n=e.alternate;return null===n?((n=zp(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function $p(e,t,n,r,o,i){var a=2;if(r=e,"function"==typeof e)Fp(e)&&(a=1);else if("string"==typeof e)a=5;else e:switch(e){case In:return Hp(n.children,o,i,t);case Mn:a=8,o|=8;break;case Dn:return(e=zp(12,n,t,2|o)).elementType=Dn,e.lanes=i,e;case Nn:return(e=zp(13,n,t,o)).elementType=Nn,e.lanes=i,e;case qn:return(e=zp(19,n,t,o)).elementType=qn,e.lanes=i,e;case jn:return Bp(n,o,i,t);default:if("object"==typeof e&&null!==e)switch(e.$$typeof){case Tn:a=10;break e;case _n:a=9;break e;case On:a=11;break e;case zn:a=14;break e;case Fn:a=16,r=null;break e}throw Error(pn(130,null==e?e:typeof e,""))}return(t=zp(a,n,t,o)).elementType=e,t.type=r,t.lanes=i,t}function Hp(e,t,n,r){return(e=zp(7,e,r,t)).lanes=n,e}function Bp(e,t,n,r){return(e=zp(22,e,r,t)).elementType=jn,e.lanes=n,e.stateNode={isHidden:!1},e}function Wp(e,t,n){return(e=zp(6,e,null,t)).lanes=n,e}function Up(e,t,n){return(t=zp(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Vp(e,t,n,r,o){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Co(0),this.expirationTimes=Co(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Co(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Gp(e,t,n,r,o,i,a,l,s){return e=new Vp(e,t,n,l,s),1===t?(t=1,!0===i&&(t|=8)):t=0,i=zp(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},zs(i),e}function Yp(e){if(!e)return _l;e:{if(Kr(e=e._reactInternals)!==e||1!==e.tag)throw Error(pn(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Fl(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(pn(171))}if(1===e.tag){var n=e.type;if(Fl(n))return Hl(e,n,t)}return t}function Kp(e,t,n,r,o,i,a,l,s){return(e=Gp(n,r,!0,e,0,i,0,l,s)).context=Yp(null),n=e.current,(i=js(r=lp(),o=sp(n))).callback=null!=t?t:null,$s(n,i,o),e.current.lanes=o,Ro(e,o,r),cp(e,r),e}function Xp(e,t,n,r){var o=t.current,i=lp(),a=sp(o);return n=Yp(n),null===t.context?t.context=n:t.pendingContext=n,(t=js(i,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=$s(o,t,a))&&(up(e,o,a,i),Hs(e,o,a)),a}function Jp(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Qp(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Zp(e,t){Qp(e,t),(e=e.alternate)&&Qp(e,t)}Id=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Nl.current)kc=!0;else{if(!(e.lanes&n||128&t.flags))return kc=!1,function(e,t,n){switch(t.tag){case 3:Nc(t),xs();break;case 5:pu(t);break;case 1:Fl(t.type)&&Bl(t);break;case 4:cu(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;Tl(Cs,r._currentValue),r._currentValue=o;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(Tl(mu,1&mu.current),t.flags|=128,null):n&t.child.childLanes?Wc(e,t,n):(Tl(mu,1&mu.current),null!==(e=Jc(e,t,n))?e.sibling:null);Tl(mu,1&mu.current);break;case 19:if(r=!!(n&t.childLanes),128&e.flags){if(r)return Kc(e,t,n);t.flags|=128}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null,o.lastEffect=null),Tl(mu,mu.current),r)break;return null;case 22:case 23:return t.lanes=0,Mc(e,t,n)}return Jc(e,t,n)}(e,t,n);kc=!!(131072&e.flags)}else kc=!1,ds&&1048576&t.flags&&as(t,Zl,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Xc(e,t),e=t.pendingProps;var o=zl(t,Ol.current);Ms(t,n),o=Iu(null,t,r,e,o,n);var i=Mu();return t.flags|=1,"object"==typeof o&&null!==o&&"function"==typeof o.render&&void 0===o.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Fl(r)?(i=!0,Bl(t)):i=!1,t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,zs(t),o.updater=Ys,t.stateNode=o,o._reactInternals=t,Qs(t,r,e,n),t=Oc(null,t,r,!0,i,n)):(t.tag=0,ds&&i&&ls(t),Ac(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Xc(e,t),e=t.pendingProps,r=(o=r._init)(r._payload),t.type=r,o=t.tag=function(e){if("function"==typeof e)return Fp(e)?1:0;if(null!=e){if((e=e.$$typeof)===On)return 11;if(e===zn)return 14}return 2}(r),e=ws(r,e),o){case 0:t=Tc(null,t,r,e,n);break e;case 1:t=_c(null,t,r,e,n);break e;case 11:t=Pc(null,t,r,e,n);break e;case 14:t=Lc(null,t,r,ws(r.type,e),n);break e}throw Error(pn(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,Tc(e,t,r,o=t.elementType===r?o:ws(r,o),n);case 1:return r=t.type,o=t.pendingProps,_c(e,t,r,o=t.elementType===r?o:ws(r,o),n);case 3:e:{if(Nc(t),null===e)throw Error(pn(387));r=t.pendingProps,o=(i=t.memoizedState).element,Fs(e,t),Ws(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated){if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,256&t.flags){t=qc(e,t,r,n,o=gc(Error(pn(423)),t));break e}if(r!==o){t=qc(e,t,r,n,o=gc(Error(pn(424)),t));break e}for(cs=gl(t.stateNode.containerInfo.firstChild),us=t,ds=!0,ps=null,n=ou(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(xs(),r===o){t=Jc(e,t,n);break e}Ac(e,t,r,n)}t=t.child}return t;case 5:return pu(t),null===e&&gs(t),r=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,a=o.children,ul(r,o)?a=null:null!==i&&ul(r,i)&&(t.flags|=32),Dc(e,t),Ac(e,t,a,n),t.child;case 6:return null===e&&gs(t),null;case 13:return Wc(e,t,n);case 4:return cu(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=ru(t,null,r,n):Ac(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,Pc(e,t,r,o=t.elementType===r?o:ws(r,o),n);case 7:return Ac(e,t,t.pendingProps,n),t.child;case 8:case 12:return Ac(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,Tl(Cs,r._currentValue),r._currentValue=a,null!==i)if(ma(i.value,a)){if(i.children===o.children&&!Nl.current){t=Jc(e,t,n);break e}}else for(null!==(i=t.child)&&(i.return=t);null!==i;){var l=i.dependencies;if(null!==l){a=i.child;for(var s=l.firstContext;null!==s;){if(s.context===r){if(1===i.tag){(s=js(-1,n&-n)).tag=2;var u=i.updateQueue;if(null!==u){var c=(u=u.shared).pending;null===c?s.next=s:(s.next=c.next,c.next=s),u.pending=s}}i.lanes|=n,null!==(s=i.alternate)&&(s.lanes|=n),Is(i.return,n,t),l.lanes|=n;break}s=s.next}}else if(10===i.tag)a=i.type===t.type?null:i.child;else if(18===i.tag){if(null===(a=i.return))throw Error(pn(341));a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Is(a,n,t),a=i.sibling}else a=i.child;if(null!==a)a.return=i;else for(a=i;null!==a;){if(a===t){a=null;break}if(null!==(i=a.sibling)){i.return=a.return,a=i;break}a=a.return}i=a}Ac(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,Ms(t,n),r=r(o=Ds(o)),t.flags|=1,Ac(e,t,r,n),t.child;case 14:return o=ws(r=t.type,t.pendingProps),Lc(e,t,r,o=ws(r.type,o),n);case 15:return Ic(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:ws(r,o),Xc(e,t),t.tag=1,Fl(r)?(e=!0,Bl(t)):e=!1,Ms(t,n),Xs(t,r,o),Qs(t,r,o,n),Oc(null,t,r,!0,e,n);case 19:return Kc(e,t,n);case 22:return Mc(e,t,n)}throw Error(pn(156,t.tag))};var ef="function"==typeof reportError?reportError:function(e){console.error(e)};function tf(e){this._internalRoot=e}function nf(e){this._internalRoot=e}function rf(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function of(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function af(){}function lf(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if("function"==typeof o){var l=o;o=function(){var e=Jp(a);l.call(e)}}Xp(t,a,e,o)}else a=function(e,t,n,r,o){if(o){if("function"==typeof r){var i=r;r=function(){var e=Jp(a);i.call(e)}}var a=Kp(t,r,e,0,null,!1,0,"",af);return e._reactRootContainer=a,e[Sl]=a.current,Ka(8===e.nodeType?e.parentNode:e),bp(),a}for(;o=e.lastChild;)e.removeChild(o);if("function"==typeof r){var l=r;r=function(){var e=Jp(s);l.call(e)}}var s=Gp(e,0,!1,null,0,!1,0,"",af);return e._reactRootContainer=s,e[Sl]=s.current,Ka(8===e.nodeType?e.parentNode:e),bp((function(){Xp(t,s,n,r)})),s}(n,t,e,o,r);return Jp(a)}nf.prototype.render=tf.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(pn(409));Xp(e,t,null,null)},nf.prototype.unmount=tf.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;bp((function(){Xp(null,e,null,null)})),t[Sl]=null}},nf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Do();e={blockedOn:null,target:e,priority:t};for(var n=0;n<$o.length&&0!==t&&t<$o[n].priority;n++);$o.splice(n,0,e),0===n&&Uo(e)}},Lo=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=yo(t.pendingLanes);0!==n&&(ko(t,1|n),cp(t,oo()),!(6&Od)&&(Kd=oo()+500,Kl()))}break;case 13:bp((function(){var t=Ns(e,1);if(null!==t){var n=lp();up(t,e,1,n)}})),Zp(e,1)}},Io=function(e){if(13===e.tag){var t=Ns(e,134217728);if(null!==t)up(t,e,134217728,lp());Zp(e,134217728)}},Mo=function(e){if(13===e.tag){var t=sp(e),n=Ns(e,t);if(null!==n)up(n,e,t,lp());Zp(e,t)}},Do=function(){return Ao},To=function(e,t){var n=Ao;try{return Ao=e,t()}finally{Ao=n}},Lr=function(e,t,n){switch(t){case"input":if(ir(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var o=Pl(r);if(!o)throw Error(pn(90));er(r),ir(r,o)}}}break;case"textarea":pr(e,n);break;case"select":null!=(t=n.value)&&ur(e,!!n.multiple,t,!1)}},Or=gp,Nr=bp;var sf={usingClientEntryPoint:!1,Events:[kl,Al,Pl,Tr,_r,gp]},uf={findFiberByHostInstance:Rl,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},cf={bundleType:uf.bundleType,version:uf.version,rendererPackageName:uf.rendererPackageName,rendererConfig:uf.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:An.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Qr(e))?null:e.stateNode},findFiberByHostInstance:uf.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var df=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!df.isDisabled&&df.supportsFiber)try{po=df.inject(cf),fo=df}catch(br){}}an.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sf,an.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!rf(t))throw Error(pn(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Ln,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},an.createRoot=function(e,t){if(!rf(e))throw Error(pn(299));var n=!1,r="",o=ef;return null!=t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(o=t.onRecoverableError)),t=Gp(e,1,!1,null,0,n,0,r,o),e[Sl]=t.current,Ka(8===e.nodeType?e.parentNode:e),new tf(t)},an.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"==typeof e.render)throw Error(pn(188));throw e=Object.keys(e).join(","),Error(pn(268,e))}return e=null===(e=Qr(t))?null:e.stateNode},an.flushSync=function(e){return bp(e)},an.hydrate=function(e,t,n){if(!of(t))throw Error(pn(200));return lf(null,e,t,!0,n)},an.hydrateRoot=function(e,t,n){if(!rf(e))throw Error(pn(405));var r=null!=n&&n.hydratedSources||null,o=!1,i="",a=ef;if(null!=n&&(!0===n.unstable_strictMode&&(o=!0),void 0!==n.identifierPrefix&&(i=n.identifierPrefix),void 0!==n.onRecoverableError&&(a=n.onRecoverableError)),t=Kp(t,null,e,1,null!=n?n:null,o,0,i,a),e[Sl]=t.current,Ka(e),r)for(e=0;e<r.length;e++)o=(o=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,o]:t.mutableSourceEagerHydrationData.push(n,o);return new nf(t)},an.render=function(e,t,n){if(!of(t))throw Error(pn(200));return lf(null,e,t,!1,n)},an.unmountComponentAtNode=function(e){if(!of(e))throw Error(pn(40));return!!e._reactRootContainer&&(bp((function(){lf(null,null,e,!1,(function(){e._reactRootContainer=null,e[Sl]=null}))})),!0)},an.unstable_batchedUpdates=gp,an.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!of(n))throw Error(pn(200));if(null==e||void 0===e._reactInternals)throw Error(pn(38));return lf(e,t,n,!1,r)},an.version="18.2.0-next-9e3b772b8-20220608",function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),on.exports=an;var pf,ff=on.exports,mf=ht(ff),hf=ff;function gf(e,t){const[n,r]=Qt.useState(t);n.some(((e,n)=>e!==t[n]))&&(r(t),e())}pf=hf.createRoot,hf.hydrateRoot;var bf={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_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_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 vf=({translator:e})=>(Qt.useMemo((()=>function(e){if(e&&e.get&&e.add){const t="NebulaTableUtils.MenuGroupLabel.Sorting";if(e.get(t)!==t)return;Object.keys(bf).forEach((t=>{e.add(bf[t])}))}}(e)),[e]),e);var yf=Object.prototype.hasOwnProperty,xf=Object.prototype.toString,Sf=Object.defineProperty,Ef=Object.getOwnPropertyDescriptor,wf=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===xf.call(e)},Cf=function(e){if(!e||"[object Object]"!==xf.call(e))return!1;var t,n=yf.call(e,"constructor"),r=e.constructor&&e.constructor.prototype&&yf.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!r)return!1;for(t in e);return void 0===t||yf.call(e,t)},Rf=function(e,t){Sf&&"__proto__"===t.name?Sf(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},kf=function(e,t){if("__proto__"===t){if(!yf.call(e,t))return;if(Ef)return Ef(e,t).value}return e[t]};function Af(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Pf(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function Lf(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}((function e(){var t,n,r,o,i,a,l=arguments[0],s=1,u=arguments.length,c=!1;for("boolean"==typeof l&&(c=l,l=arguments[1]||{},s=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});s<u;++s)if(null!=(t=arguments[s]))for(n in t)r=kf(l,n),l!==(o=kf(t,n))&&(c&&o&&(Cf(o)||(i=wf(o)))?(i?(i=!1,a=r&&wf(r)?r:[]):a=r&&Cf(r)?r:{},Rf(l,{name:n,newValue:e(c,a,o)})):void 0!==o&&Rf(l,{name:n,newValue:o}));return l}));var If=1/.7,Mf="\\s*([+-]?\\d+)\\s*",Df="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Tf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",_f=/^#([0-9a-f]{3,8})$/,Of=new RegExp(`^rgb\\(${Mf},${Mf},${Mf}\\)$`),Nf=new RegExp(`^rgb\\(${Tf},${Tf},${Tf}\\)$`),qf=new RegExp(`^rgba\\(${Mf},${Mf},${Mf},${Df}\\)$`),zf=new RegExp(`^rgba\\(${Tf},${Tf},${Tf},${Df}\\)$`),Ff=new RegExp(`^hsl\\(${Df},${Tf},${Tf}\\)$`),jf=new RegExp(`^hsla\\(${Df},${Tf},${Tf},${Df}\\)$`),$f={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 Hf(){return this.rgb().formatHex()}function Bf(){return this.rgb().formatRgb()}function Wf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=_f.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Uf(t):3===n?new Kf(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Vf(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Vf(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=Of.exec(e))?new Kf(t[1],t[2],t[3],1):(t=Nf.exec(e))?new Kf(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=qf.exec(e))?Vf(t[1],t[2],t[3],t[4]):(t=zf.exec(e))?Vf(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Ff.exec(e))?tm(t[1],t[2]/100,t[3]/100,1):(t=jf.exec(e))?tm(t[1],t[2]/100,t[3]/100,t[4]):$f.hasOwnProperty(e)?Uf($f[e]):"transparent"===e?new Kf(NaN,NaN,NaN,0):null}function Uf(e){return new Kf(e>>16&255,e>>8&255,255&e,1)}function Vf(e,t,n,r){return r<=0&&(e=t=n=NaN),new Kf(e,t,n,r)}function Gf(e){return e instanceof Lf||(e=Wf(e)),e?new Kf((e=e.rgb()).r,e.g,e.b,e.opacity):new Kf}function Yf(e,t,n,r){return 1===arguments.length?Gf(e):new Kf(e,t,n,null==r?1:r)}function Kf(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Xf(){return`#${em(this.r)}${em(this.g)}${em(this.b)}`}function Jf(){const e=Qf(this.opacity);return`${1===e?"rgb(":"rgba("}${Zf(this.r)}, ${Zf(this.g)}, ${Zf(this.b)}${1===e?")":`, ${e})`}`}function Qf(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Zf(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function em(e){return((e=Zf(e))<16?"0":"")+e.toString(16)}function tm(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new rm(e,t,n,r)}function nm(e){if(e instanceof rm)return new rm(e.h,e.s,e.l,e.opacity);if(e instanceof Lf||(e=Wf(e)),!e)return new rm;if(e instanceof rm)return e;var t=(e=e.rgb()).r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,l=i-o,s=(i+o)/2;return l?(a=t===i?(n-r)/l+6*(n<r):n===i?(r-t)/l+2:(t-n)/l+4,l/=s<.5?i+o:2-i-o,a*=60):l=s>0&&s<1?0:a,new rm(a,l,s,e.opacity)}function rm(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function om(e){return(e=(e||0)%360)<0?e+360:e}function im(e){return Math.max(0,Math.min(1,e||0))}function am(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}Af(Lf,Wf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hf,formatHex:Hf,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return nm(this).formatHsl()},formatRgb:Bf,toString:Bf}),Af(Kf,Yf,Pf(Lf,{brighter(e){return e=null==e?If:Math.pow(If,e),new Kf(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new Kf(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Kf(Zf(this.r),Zf(this.g),Zf(this.b),Qf(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:Xf,formatHex:Xf,formatHex8:function(){return`#${em(this.r)}${em(this.g)}${em(this.b)}${em(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Jf,toString:Jf})),Af(rm,(function(e,t,n,r){return 1===arguments.length?nm(e):new rm(e,t,n,null==r?1:r)}),Pf(Lf,{brighter(e){return e=null==e?If:Math.pow(If,e),new rm(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new rm(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,o=2*n-r;return new Kf(am(e>=240?e-240:e+120,o,r),am(e,o,r),am(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new rm(om(this.h),im(this.s),im(this.l),Qf(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=Qf(this.opacity);return`${1===e?"hsl(":"hsla("}${om(this.h)}, ${100*im(this.s)}%, ${100*im(this.l)}%${1===e?")":`, ${e})`}`}}));const lm=Math.PI/180,sm=180/Math.PI,um=4/29,cm=6/29,dm=3*cm*cm;function pm(e){if(e instanceof fm)return new fm(e.l,e.a,e.b,e.opacity);if(e instanceof vm)return ym(e);e instanceof Kf||(e=Gf(e));var t,n,r=bm(e.r),o=bm(e.g),i=bm(e.b),a=mm((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=mm((.4360747*r+.3850649*o+.1430804*i)/.96422),n=mm((.0139322*r+.0971045*o+.7141733*i)/.82521)),new fm(116*a-16,500*(t-a),200*(a-n),e.opacity)}function fm(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function mm(e){return e>.008856451679035631?Math.pow(e,1/3):e/dm+um}function hm(e){return e>cm?e*e*e:dm*(e-um)}function gm(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function bm(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vm(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function ym(e){if(isNaN(e.h))return new fm(e.l,0,0,e.opacity);var t=e.h*lm;return new fm(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}Af(fm,(function(e,t,n,r){return 1===arguments.length?pm(e):new fm(e,t,n,null==r?1:r)}),Pf(Lf,{brighter(e){return new fm(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new fm(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 Kf(gm(3.1338561*(t=.96422*hm(t))-1.6168667*(e=1*hm(e))-.4906146*(n=.82521*hm(n))),gm(-.9787684*t+1.9161415*e+.033454*n),gm(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),Af(vm,(function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof vm)return new vm(e.h,e.c,e.l,e.opacity);if(e instanceof fm||(e=pm(e)),0===e.a&&0===e.b)return new vm(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*sm;return new vm(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new vm(e,t,n,null==r?1:r)}),Pf(Lf,{brighter(e){return new vm(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new vm(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return ym(this).rgb()}}));var xm=e=>()=>e;function Sm(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):xm(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1==(e=+e)?Sm: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):xm(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=Yf(e)).r,(t=Yf(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Sm(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=o(t),e.b=i(t),e.opacity=a(t),e+""}}return r.gamma=e,r}(1);var Em,wm=["__proto__","constructor"];function Cm(e,t,n){if(void 0!==e&&void 0!==t){var r=t.split("."),o=r[r.length-1];if(!wm.some((function(e){return r.includes(e)}))){for(var i=e,a=0;a<r.length-1;++a){var l=r[a];void 0===i[l]&&(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}}}function Rm(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 km(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Pm)):void 0===t&&(t=Am);for(var n,r,o,i,a,l=new Mm(e),s=[l];n=s.pop();)if((o=t(n.data))&&(a=(o=Array.from(o)).length))for(n.children=o,i=a-1;i>=0;--i)s.push(r=o[i]=new Mm(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(Im)}function Am(e){return e.children}function Pm(e){return Array.isArray(e)?e[1]:null}function Lm(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function Im(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function Mm(e){this.data=e,this.depth=this.height=0,this.parent=null}Mm.prototype=km.prototype={constructor:Mm,count:function(){return this.eachAfter(Rm)},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,o,i=this,a=[i],l=[],s=-1;i=a.pop();)if(l.push(i),n=i.children)for(r=0,o=n.length;r<o;++r)a.push(n[r]);for(;i=l.pop();)e.call(t,i,++s,this);return this},eachBefore:function(e,t){for(var n,r,o=this,i=[o],a=-1;o=i.pop();)if(e.call(t,o,++a,this),n=o.children)for(r=n.length-1;r>=0;--r)i.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,o=r&&r.length;--o>=0;)n+=r[o].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(),o=null;for(e=n.pop(),t=r.pop();e===t;)o=e,e=n.pop(),t=r.pop();return o}(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var o=r.length;e!==n;)r.splice(o,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 km(this).eachBefore(Lm)},[Symbol.iterator]:function*(){var e,t,n,r,o=this,i=[o];do{for(e=i.reverse(),i=[];o=e.pop();)if(yield o,t=o.children)for(n=0,r=t.length;n<r;++n)i.push(t[n])}while(i.length)}},Em=function(e){
|
|
29
29
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
30
|
-
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Em({exports:{}});var Dm={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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,o=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===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&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=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.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,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,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 o=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}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=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(i,"(").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 w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function D(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){D(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);D(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const T=k,_=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(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=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(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=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var U="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)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:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(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 Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(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=i(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 oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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!E.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,n){if(1===e){var r=oe(t,0);t.splice(r,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 o=t.layout.qHyperCube.qDimensionInfo.length,i=[{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===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var u=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Le(r))return _e({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(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 Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),_e({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function _e(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:o,dimensionAndFieldList:e}),Be(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):_(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ue(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(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)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"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:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="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},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(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 l(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 l(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)?l(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 l(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 s(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 o=e.indexOf(t[r]);if(n>o)return!1;n=o}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(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=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===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=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,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function A(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 L=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},I=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},D=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}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".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)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(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 A(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)?A(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=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=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=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=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 W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=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,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?D():C,k=s.defaultMeasure,A=void 0===k?T():k;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),L(g,t,r),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:P}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[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,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,o),Y(t,l))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 i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.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}}},Q={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 Z={scatterplot:Q,"sn-scatter-plot":Q,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,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.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,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),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},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.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 l}const ie={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 o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[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,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.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=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.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 s=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,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,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}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Pe="measures",Le="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Ae,arrayName:Pe,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Le,arrayName:Pe,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",De="measures",Te="qHyperCubeDef.qDimensions",_e="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:je,arrayName:De,itemPath:Fe}),Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:_e,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:De,itemPath:Fe}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:_e,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),r.default})()}(Dm);var Tm=ht(Dm.exports);const _m="12px",Om="nebula-table-utils-head-menu-button";let Nm=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}({});const qm="nebula-table-utils-column-adjuster",zm=`${qm}-border`;let Fm=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),jm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const $m="qHyperCubeDef.qDimensions",Hm="dimensions",Bm="qDef.representation",Wm="tableRepresentation",Um=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Fm.PixelsDefault:-1})(n,e,t)));return o},Vm=({propertyTree:e,hyperCubePath:t})=>{const n=Tm.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=Um(o,i,r);return Cm(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),Tm.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Tm.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Tm.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Tm.quarantineArrayProp({properties:e,arrayPath:$m,itemPath:Bm,arrayName:Hm,quarantineName:Wm})})(n.properties),n};const Gm=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth=-1===e?{type:jm.FitToContent}:{type:jm.Pixels,pixels:e}}return i},Ym=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=Tm.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});Tm.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Tm.unquarantineArrayProp({properties:e,arrayPath:$m,itemPath:Bm,arrayName:Hm,quarantineName:Wm})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Gm(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>Gm(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Cm(a,"qProperty.qHyperCubeDef.qDimensions",d),Cm(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Cm(a,"qProperty.totals.show",!1),Cm(a,"qProperty.usePagination",!0)),Tm.conditionalShow.unquarantine(a.qProperty),a};var Km={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Xm(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Jm(e,t){let 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}function Qm(e){return e>0?0:1}function Zm(e){return e.translator.get("Visualizations.Descriptions.Column")}function eh(e){return{measures:{min:Qm,max:1e3,description:()=>Zm(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Xm(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Jm(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Qm,max:1e3,description:()=>Zm(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Xm(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Jm(o,r)}}}}var th={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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,o=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===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&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=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.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,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,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 o=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}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=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(i,"(").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 w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function D(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){D(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);D(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const T=k,_=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(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=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(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=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var U="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)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:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(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 Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(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=i(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 oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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!E.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,n){if(1===e){var r=oe(t,0);t.splice(r,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 o=t.layout.qHyperCube.qDimensionInfo.length,i=[{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===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var u=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Le(r))return _e({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),_e({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function _e(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:o,dimensionAndFieldList:e}),Be(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):_(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ue(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(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)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"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:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(th);var nh=ht(th);const rh={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},oh={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},ih=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!nh.hasActiveModifiers({measures:[e],properties:t.properties})||nh.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},ah={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:jm.Auto,translation:"Common.Auto"},{value:jm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:jm.Pixels,translation:"Object.Table.Column.Pixels"},{value:jm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:jm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===jm.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Fm.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===jm.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Fm.PercentageMax,e.qDef.columnWidth.percentage))}}},lh={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...rh,...ah},sh={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},uh=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:ih(e)}),ch=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:sh},presentation:{type:"items",translation:"properties.presentation",items:{...lh,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?oh:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:uh(e)},presentation:{type:"items",translation:"properties.presentation",items:lh}}}}}),dh={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},ph=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},fh={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}},mh=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[dh,ph(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...fh}}),hh={uses:"sorting"},gh={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},bh=e=>({type:"items",component:"accordion",items:{data:ch(e),sorting:hh,addOns:gh,settings:mh(e)}});function vh(e){return{definition:bh(e),exploration:Km,data:eh(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Ym({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Vm({propertyTree:e,hyperCubePath:t})}}const yh=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const xh=(t,n)=>e.useMemo((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(t,n)),[t,n]);let Sh;const Eh=new Uint8Array(16);function wh(){if(!Sh&&(Sh="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sh(Eh)}const Ch=[];for(let e=0;e<256;++e)Ch.push((e+256).toString(16).slice(1));var Rh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kh(e,t,n){if(Rh.randomUUID&&!t&&!e)return Rh.randomUUID();const r=(e=e||{}).random||(e.rng||wh)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Ch[e[t+0]]+Ch[e[t+1]]+Ch[e[t+2]]+Ch[e[t+3]]+"-"+Ch[e[t+4]]+Ch[e[t+5]]+"-"+Ch[e[t+6]]+Ch[e[t+7]]+"-"+Ch[e[t+8]]+Ch[e[t+9]]+"-"+Ch[e[t+10]]+Ch[e[t+11]]+Ch[e[t+12]]+Ch[e[t+13]]+Ch[e[t+14]]+Ch[e[t+15]]}(r)}const Ah=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:kh()};function Ph(e){return Ph="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},Ph(e)}function Lh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ih(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,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function Mh(e,t,n){return t&&Ih(e.prototype,t),n&&Ih(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Th(e)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_h(e,t)}function Oh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Th(e);if(t){var o=Th(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function qh(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,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zh(e,t)}(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.")}()}function zh(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}var Fh={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:jh(e),value:jh(t),useEqualSign:n}}(n,o,i))}})),t}};function jh(e){try{return decodeURIComponent(e)}catch(t){return e}}function $h(e){if(!(this instanceof $h))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},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:function(){return Fh.fromSearchString(t.search)}}})}function Hh(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}$h.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},$h.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=Hh((t=e[r]).key),t.value?n+="=".concat(Hh(t.value)):n+=t.useEqualSign?"=":"";return n};var Bh,Wh=function(){function e(t){Lh(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return Mh(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(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}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Uh=function(){function e(){Lh(this,e)}return Mh(e,[{key:"decode",value:function(e){for(var t,n="",r=new Wh(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Vh=function(e){return e>=0&&e<=1114111},Gh=function(e){return e.match(/[\s]/)},Yh=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!Gh(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return Vh(a)?String.fromCharCode(a):"�"}}]),n}(Uh),Kh=function(){function e(t,n){Lh(this,e),this._key=t,this._value=n}return Mh(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var 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}}]),e}(),Xh=function(){function e(){Lh(this,e)}return Mh(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Kh.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Kh.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Kh.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Jh=function(){function e(){Lh(this,e),this.clear()}return Mh(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Xh);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Qh=function(){var e,t,n,r=[],o=[],i=new Jh;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Zh=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Qh.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Qh.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&Vh(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&Vh(r)?String.fromCharCode(r):null}}]),n}(Uh),eg=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),Vh(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(Uh),tg=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Bh=document.createElement("div"));var ng=Array.prototype.indexOf,rg=[",",".","_"," "],og={default:[",",".","-","_"," "]},ig={width:["%"],height:["%"]},ag={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},lg={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ag.image,"background-color":ag.color,"border-color":ag.color,"border-image":ag.image,color:ag.color,icon:ag.image,"list-style-image":ag.image,"outline-color":ag.color},sg={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ug(e,t,n){var r;if(t){if(ng)return ng.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 cg(e){if(null==e)return"";var t,n=document.createTextNode(e);return Bh.appendChild(n),t=Bh.innerHTML,Bh.removeChild(n),t}function dg(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=fg(e).toLowerCase(),t=fg(t),ug(e,sg.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<sg.attr_val;i++)if(t.toLowerCase().match(sg.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=ig[e])||(r=og.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ug(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function pg(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=fg(e).toLowerCase(),t=fg(t),ug(e,sg.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<sg.css_val.length;r++)if(t.toLowerCase().indexOf(sg.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=lg[e])||(o=ag.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ug(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function fg(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Zh,new eg,new Yh];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var mg=[],hg=0;hg<255;hg++)mg[hg]=hg>=48&&hg<=57||hg>=65&&hg<=90||hg>=97&&hg<=122?null:hg.toString(16);var gg=function(e){return cg(e.unsafe)},bg=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=pg(t,n[t],!0),i+=pg(t,n[t],!0),o[t]=r[t]);return e.map?o:i},vg=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=dg(i,t[i],!0),o+=dg(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function yg(e,t){throw new Error(t)}var xg={canonicalize:fg,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Ph(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))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?gg(e):"css"===e.context?(null!=e.map&&"object"!==Ph(e.map)&&yg(this,"Invalid parameter type"),bg(e)):"attr"===e.context?(null!=e.map&&"object"!==Ph(e.map)&&yg(this,"Invalid parameter type"),vg(e)):void yg(this,"Invalid parameter type")},encodeForAttr:dg,encodeForAttr2:function(e){return dg("nonsens",e,!0)},encodeForCSS:pg,encodeForHref:function(e){fg(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new $h(e),n=$h.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+$h.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=rg),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ug(o,t)>=0||null==mg[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:cg,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=fg(t).toLowerCase():yg(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?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=qh(null!==(t=tg.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Sg=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},Eg=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let wg=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Cg=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Rg=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&xg.isSafeDataURL(t)?{type:wg.Image,url:t,text:e,imageSize:n,resolvedImagePosition:Eg(r)}:{type:wg.Text,url:void 0,text:e},kg=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Cg.Attribute||null==n?void 0:n.urlLabel},Ag=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:wg.Link,url:xg.encodeForHref(t),text:e}}catch(t){return{type:wg.Text,url:void 0,text:e}}},Pg=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return wg.Link;case"image":return wg.Image;default:return wg.Text}})(t)){case wg.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=Sg(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return Rg({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return Rg({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=Sg(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Rg({text:n,url:t,imageSize:o,imagePosition:i})}return{type:wg.Text,url:void 0,text:e.qText}})(e,t,o,i);case wg.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===Cg.Attribute){const r=kg(n,e,t),o=e.qText||r||"";return Ag({text:o,url:r})}if(o===Cg.Dimension){const n=kg(r,e,t)||e.qText;return Ag({text:n,url:e.qText})}return{type:wg.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:wg.Text,url:void 0,text:e.qText}}},Lg=e=>!Number.isNaN(+e),Ig=e=>!(!e.qNum&&0!==e.qNum||!Lg(e.qNum)),Mg=1e4;function Dg(e,t){return[...t].reverse().find((t=>t*e<=Mg))||Math.floor(Mg/e)}function Tg(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _g(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Og(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return Lg(null==n?void 0:n.qNum)}function Ng(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const qg=(e,t)=>"auto"!==t?t:Ig(e)?"right":"left";const zg=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:w,qLibraryId:C}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:C,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:w,selectionColIdx:g,isActivelySorted:c,id:Ah(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:_g(e,s,n,r),...!s&&{isTotalNumeric:Og(e,r)},...Ng(v,d,s),representation:p}}(e,t,n,l[t])))};const Fg=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},jg=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Fg(e,t)};var $g={exports:{}},Hg={},Bg=Qt,Wg=Symbol.for("react.element"),Ug=Symbol.for("react.fragment"),Vg=Object.prototype.hasOwnProperty,Gg=Bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yg={key:!0,ref:!0,__self:!0,__source:!0};function Kg(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Vg.call(t,r)&&!Yg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Wg,type:e,key:i,ref:a,props:o,_owner:Gg.current}}Hg.Fragment=Ug,Hg.jsx=Kg,Hg.jsxs=Kg,$g.exports=Hg;var Xg=$g.exports;function Jg(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 Qg=Object.freeze({__proto__:null,default:Jg}),Zg="$$material";function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}function tb(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var nb=function(){return nb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nb.apply(this,arguments)};function rb(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ob=ht((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),ib="-ms-",ab="-moz-",lb="-webkit-",sb="comm",ub="rule",cb="decl",db="@media",pb="@import",fb="@supports",mb="@keyframes",hb="@layer",gb=Math.abs,bb=String.fromCharCode,vb=Object.assign;function yb(e){return e.trim()}function xb(e,t){return(e=t.exec(e))?e[0]:e}function Sb(e,t,n){return e.replace(t,n)}function Eb(e,t,n){return e.indexOf(t,n)}function wb(e,t){return 0|e.charCodeAt(t)}function Cb(e,t,n){return e.slice(t,n)}function Rb(e){return e.length}function kb(e){return e.length}function Ab(e,t){return t.push(e),e}function Pb(e,t){return e.filter((function(e){return!xb(e,t)}))}var Lb=1,Ib=1,Mb=0,Db=0,Tb=0,_b="";function Ob(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Lb,column:Ib,length:a,return:"",siblings:l}}function Nb(e,t){return vb(Ob("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function qb(e){for(;e.root;)e=Nb(e.root,{children:[e]});Ab(e,e.siblings)}function zb(){return Tb=Db>0?wb(_b,--Db):0,Ib--,10===Tb&&(Ib=1,Lb--),Tb}function Fb(){return Tb=Db<Mb?wb(_b,Db++):0,Ib++,10===Tb&&(Ib=1,Lb++),Tb}function jb(){return wb(_b,Db)}function $b(){return Db}function Hb(e,t){return Cb(_b,e,t)}function Bb(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 Wb(e){return yb(Hb(Db-1,Gb(91===e?e+2:40===e?e+1:e)))}function Ub(e){for(;(Tb=jb())&&Tb<33;)Fb();return Bb(e)>2||Bb(Tb)>3?"":" "}function Vb(e,t){for(;--t&&Fb()&&!(Tb<48||Tb>102||Tb>57&&Tb<65||Tb>70&&Tb<97););return Hb(e,$b()+(t<6&&32==jb()&&32==Fb()))}function Gb(e){for(;Fb();)switch(Tb){case e:return Db;case 34:case 39:34!==e&&39!==e&&Gb(Tb);break;case 40:41===e&&Gb(e);break;case 92:Fb()}return Db}function Yb(e,t){for(;Fb()&&e+Tb!==57&&(e+Tb!==84||47!==jb()););return"/*"+Hb(t,Db-1)+"*"+bb(47===e?e:Fb())}function Kb(e){for(;!Bb(jb());)Fb();return Hb(e,Db)}function Xb(e){return function(e){return _b="",e}(Jb("",null,null,null,[""],e=function(e){return Lb=Ib=1,Mb=Rb(_b=e),Db=0,[]}(e),0,[0],e))}function Jb(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,w=y;g;)switch(m=v,v=Fb()){case 40:if(108!=m&&58==wb(w,d-1)){-1!=Eb(w+=Sb(Wb(v),"&","&\f"),"&\f",gb(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=Wb(v);break;case 9:case 10:case 13:case 32:w+=Ub(m);break;case 92:w+=Vb($b()-1,7);continue;case 47:switch(jb()){case 42:case 47:Ab(Zb(Yb(Fb(),$b()),t,n,s),s);break;default:w+="/"}break;case 123*h:l[u++]=Rb(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Sb(w,/\f/g,"")),f>0&&Rb(w)-d&&Ab(f>32?ev(w+";",r,n,d-1,s):ev(Sb(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Ab(E=Qb(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Jb(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===wb(w,3)?100:p){case 100:case 108:case 109:case 115:Jb(e,E,E,r&&Ab(Qb(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Jb(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+Rb(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==zb())continue;switch(w+=bb(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Rb(w)-1)*b,b=1;break;case 64:45===jb()&&(w+=Wb(Fb())),p=jb(),c=d=Rb(y=w+=Kb($b())),v++;break;case 45:45===m&&2==Rb(w)&&(h=0)}}return i}function Qb(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=kb(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=Cb(e,p+1,p=gb(g=a[h])),x=e;v<m;++v)(x=yb(g>0?f[v]+" "+y:Sb(y,/&\f/g,f[v])))&&(s[b++]=x);return Ob(e,t,n,0===o?ub:l,s,u,c,d)}function Zb(e,t,n,r){return Ob(e,t,n,sb,bb(Tb),Cb(e,2,-2),0,r)}function ev(e,t,n,r,o){return Ob(e,t,n,cb,Cb(e,0,r),Cb(e,r+1,-1),r,o)}function tv(e,t,n){switch(function(e,t){return 45^wb(e,0)?(((t<<2^wb(e,0))<<2^wb(e,1))<<2^wb(e,2))<<2^wb(e,3):0}(e,t)){case 5103:return lb+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lb+e+e;case 4789:return ab+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lb+e+ab+e+ib+e+e;case 5936:switch(wb(e,t+11)){case 114:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return lb+e+ib+e+e;case 6165:return lb+e+ib+"flex-"+e+e;case 5187:return lb+e+Sb(e,/(\w+).+(:[^]+)/,lb+"box-$1$2"+ib+"flex-$1$2")+e;case 5443:return lb+e+ib+"flex-item-"+Sb(e,/flex-|-self/g,"")+(xb(e,/flex-|baseline/)?"":ib+"grid-row-"+Sb(e,/flex-|-self/g,""))+e;case 4675:return lb+e+ib+"flex-line-pack"+Sb(e,/align-content|flex-|-self/g,"")+e;case 5548:return lb+e+ib+Sb(e,"shrink","negative")+e;case 5292:return lb+e+ib+Sb(e,"basis","preferred-size")+e;case 6060:return lb+"box-"+Sb(e,"-grow","")+lb+e+ib+Sb(e,"grow","positive")+e;case 4554:return lb+Sb(e,/([^-])(transform)/g,"$1"+lb+"$2")+e;case 6187:return Sb(Sb(Sb(e,/(zoom-|grab)/,lb+"$1"),/(image-set)/,lb+"$1"),e,"")+e;case 5495:case 3959:return Sb(e,/(image-set\([^]*)/,lb+"$1$`$1");case 4968:return Sb(Sb(e,/(.+:)(flex-)?(.*)/,lb+"box-pack:$3"+ib+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lb+e+e;case 4200:if(!xb(e,/flex-|baseline/))return ib+"grid-column-align"+Cb(e,t)+e;break;case 2592:case 3360:return ib+Sb(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,xb(e.props,/grid-\w+-end/)}))?~Eb(e+(n=n[t].value),"span",0)?e:ib+Sb(e,"-start","")+e+ib+"grid-row-span:"+(~Eb(n,"span",0)?xb(n,/\d+/):+xb(n,/\d+/)-+xb(e,/\d+/))+";":ib+Sb(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return xb(e.props,/grid-\w+-start/)}))?e:ib+Sb(Sb(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Sb(e,/(.+)-inline(.+)/,lb+"$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(Rb(e)-1-t>6)switch(wb(e,t+1)){case 109:if(45!==wb(e,t+4))break;case 102:return Sb(e,/(.+:)(.+)-([^]+)/,"$1"+lb+"$2-$3$1"+ab+(108==wb(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Eb(e,"stretch",0)?tv(Sb(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Sb(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return ib+n+":"+r+l+(o?ib+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===wb(e,t+6))return Sb(e,":",":"+lb)+e;break;case 6444:switch(wb(e,45===wb(e,14)?18:11)){case 120:return Sb(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+lb+(45===wb(e,14)?"inline-":"")+"box$3$1"+lb+"$2$3$1"+ib+"$2box$3")+e;case 100:return Sb(e,":",":"+ib)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Sb(e,"scroll-","scroll-snap-")+e}return e}function nv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function rv(e,t,n,r){switch(e.type){case hb:if(e.children.length)break;case pb:case cb:return e.return=e.return||e.value;case sb:return"";case mb:return e.return=e.value+"{"+nv(e.children,r)+"}";case ub:if(!Rb(e.value=e.props.join(",")))return""}return Rb(n=nv(e.children,r))?e.return=e.value+"{"+n+"}":""}function ov(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cb:return void(e.return=tv(e.value,e.length,n));case mb:return nv([Nb(e,{value:Sb(e.value,"@","@"+lb)})],r);case ub:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(xb(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":qb(Nb(e,{props:[Sb(t,/:(read-\w+)/,":"+ab+"$1")]})),qb(Nb(e,{props:[t]})),vb(e,{props:Pb(n,r)});break;case"::placeholder":qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,":"+lb+"input-$1")]})),qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,":"+ab+"$1")]})),qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,ib+"input-$1")]})),qb(Nb(e,{props:[t]})),vb(e,{props:Pb(n,r)})}return""}))}}var iv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},av="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",lv="active",sv="data-styled-version",uv="6.1.8",cv="/*!sc*/\n",dv="undefined"!=typeof window&&"HTMLElement"in window,pv=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)),fv={},mv=Object.freeze([]),hv=Object.freeze({});function gv(e,t,n){return void 0===n&&(n=hv),e.theme!==n.theme&&e.theme||t||n.theme}var bv=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),vv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yv=/(^-|-$)/g;function xv(e){return e.replace(vv,"-").replace(yv,"")}var Sv=/(a)(d)/gi,Ev=52,wv=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cv(e){var t,n="";for(t=Math.abs(e);t>Ev;t=t/Ev|0)n=wv(t%Ev)+n;return(wv(t%Ev)+n).replace(Sv,"$1-$2")}var Rv,kv=5381,Av=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pv=function(e){return Av(kv,e)};function Lv(e){return Cv(Pv(e)>>>0)}function Iv(e){return"string"==typeof e&&!0}var Mv="function"==typeof Symbol&&Symbol.for,Dv=Mv?Symbol.for("react.memo"):60115,Tv=Mv?Symbol.for("react.forward_ref"):60112,_v={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ov={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qv=((Rv={})[Tv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rv[Dv]=Nv,Rv);function zv(e){return("type"in(t=e)&&t.type.$$typeof)===Dv?Nv:"$$typeof"in e?qv[e.$$typeof]:_v;var t}var Fv=Object.defineProperty,jv=Object.getOwnPropertyNames,$v=Object.getOwnPropertySymbols,Hv=Object.getOwnPropertyDescriptor,Bv=Object.getPrototypeOf,Wv=Object.prototype;function Uv(e,t,n){if("string"!=typeof t){if(Wv){var r=Bv(t);r&&r!==Wv&&Uv(e,r,n)}var o=jv(t);$v&&(o=o.concat($v(t)));for(var i=zv(e),a=zv(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ov||n&&n[s]||a&&s in a||i&&s in i)){var u=Hv(t,s);try{Fv(e,s,u)}catch(e){}}}}return e}function Vv(e){return"function"==typeof e}function Gv(e){return"object"==typeof e&&"styledComponentId"in e}function Yv(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Kv(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Xv(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Jv(e,t,n){if(void 0===n&&(n=!1),!n&&!Xv(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Jv(e[r],t[r]);else if(Xv(t))for(var r in t)e[r]=Jv(e[r],t[r]);return e}function Qv(e,t){Object.defineProperty(e,"toString",{value:t})}function Zv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 ey=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Zv(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(cv);return t},e}(),ty=new Map,ny=new Map,ry=1,oy=function(e){if(ty.has(e))return ty.get(e);for(;ny.has(ry);)ry++;var t=ry++;return ty.set(e,t),ny.set(t,e),t},iy=function(e,t){ry=t+1,ty.set(e,t),ny.set(t,e)},ay="style[".concat(av,"][").concat(sv,'="').concat(uv,'"]'),ly=new RegExp("^".concat(av,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sy=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},uy=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(cv),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(ly);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(iy(c,u),sy(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var cy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(av,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(av,lv),r.setAttribute(sv,uv);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},dy=function(){function e(e){this.element=cy(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Zv(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}(),py=function(){function e(e){this.element=cy(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),fy=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(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}(),my=dv,hy={isServer:!dv,useCSSOMInjection:!pv},gy=function(){function e(e,t,n){void 0===e&&(e=hv),void 0===t&&(t={});var r=this;this.options=nb(nb({},hy),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&dv&&my&&(my=!1,function(e){for(var t=document.querySelectorAll(ay),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(av)!==lv&&(uy(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Qv(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ny.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(av,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(cv)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return oy(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(nb(nb({},this.options),t),this.gs,n&&this.names||void 0)},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,n=e.target;return e.isServer?new fy(n):t?new dy(n):new py(n)}(this.options),new ey(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(oy(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(oy(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(oy(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),by=/&/g,vy=/^\s*\/\/.*$/gm;function yy(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=yy(e.children,t)),e}))}function xy(e){var t,n,r,o=void 0===e?hv:e,i=o.options,a=void 0===i?hv:i,l=o.plugins,s=void 0===l?mv:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===ub&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(by,n).replace(r,u))})),a.prefix&&c.push(ov),c.push(rv);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(vy,""),u=Xb(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=yy(u,a.namespace));var d,p=[];return nv(u,function(e){var t=kb(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Zv(15),Av(e,t.name)}),kv).toString():"",d}var Sy=new gy,Ey=xy(),wy=Zt.createContext({shouldForwardProp:void 0,styleSheet:Sy,stylis:Ey});wy.Consumer;var Cy=Zt.createContext(void 0);function Ry(){return Qt.useContext(wy)}function ky(e){var t=Qt.useState(e.stylisPlugins),n=t[0],r=t[1],o=Ry().styleSheet,i=Qt.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=Qt.useMemo((function(){return xy({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);Qt.useEffect((function(){ob(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=Qt.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return Zt.createElement(wy.Provider,{value:l},Zt.createElement(Cy.Provider,{value:a},e.children))}var Ay=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ey);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qv(this,(function(){throw Zv(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ey),this.name+e.hash},e}(),Py=function(e){return e>="A"&&e<="Z"};function Ly(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Py(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Iy=function(e){return null==e||!1===e||""===e},My=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Iy(i)&&(Array.isArray(i)&&i.isCss||Vv(i)?r.push("".concat(Ly(o),":"),i,";"):Xv(i)?r.push.apply(r,rb(rb(["".concat(o," {")],My(i),!1),["}"],!1)):r.push("".concat(Ly(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in iv||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Dy(e,t,n,r){return Iy(e)?[]:Gv(e)?[".".concat(e.styledComponentId)]:Vv(e)?!Vv(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Dy(e(t),t,n,r):e instanceof Ay?n?(e.inject(n,r),[e.getName(r)]):[e]:Xv(e)?My(e):Array.isArray(e)?Array.prototype.concat.apply(mv,e.map((function(e){return Dy(e,t,n,r)}))):[e.toString()];var o}function Ty(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vv(n)&&!Gv(n))return!1}return!0}var _y=Pv(uv),Oy=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ty(e),this.componentId=t,this.baseHash=Av(_y,t),this.baseStyle=n,gy.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Yv(r,this.staticRulesId);else{var o=Kv(Dy(this.rules,e,t,n)),i=Cv(Av(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Yv(r,i),this.staticRulesId=i}else{for(var l=Av(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Kv(Dy(c,e,t,n));l=Av(l,d+u),s+=d}}if(s){var p=Cv(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Yv(r,p)}}return r},e}(),Ny=Zt.createContext(void 0);Ny.Consumer;var qy={};new Set;function zy(e,t,n){var r=Gv(e),o=e,i=!Iv(e),a=t.attrs,l=void 0===a?mv:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":xv(e);qy[n]=(qy[n]||0)+1;var r="".concat(n,"-").concat(Lv(uv+n+qy[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Iv(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(xv(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Oy(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Zt.useContext(Ny),c=Ry(),d=e.shouldForwardProp||c.shouldForwardProp,p=gv(t,u,i)||hv,f=function(e,t,n){for(var r,o=nb(nb({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Vv(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Yv(o[l],a[l]):"style"===l?nb(nb({},o[l]),a[l]):a[l]}return t.className&&(o.className=Yv(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=Ry();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=Yv(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Iv(m)&&!bv.has(m)?"class":"className"]=v,h.ref=n,Qt.createElement(m,h)}(y,e,t)}v.displayName=d;var y=Zt.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Yv(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Jv(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Qv(y,(function(){return".".concat(y.styledComponentId)})),i&&Uv(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Fy(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var jy=function(e){return Object.assign(e,{isCss:!0})};function $y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vv(e)||Xv(e))return jy(Dy(Fy(mv,rb([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Dy(r):jy(Dy(Fy(r,t)))}function Hy(e,t,n){if(void 0===n&&(n=hv),!t)throw Zv(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,$y.apply(void 0,rb([r],o,!1)))};return r.attrs=function(r){return Hy(e,t,nb(nb({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Hy(e,t,nb(nb({},n),r))},r}var By=function(e){return Hy(zy,e)},Wy=By;bv.forEach((function(e){Wy[e]=By(e)}));var Uy=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ty(e),gy.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Kv(Dy(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&gy.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Vy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$y.apply(void 0,rb([e],t,!1)),o="sc-global-".concat(Lv(JSON.stringify(r))),i=new Uy(r,o),a=function(e){var t=Ry(),n=Zt.useContext(Ny),r=Zt.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,fv,n,o);else{var l=nb(nb({},t),{theme:gv(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Zt.memo(a)}function Gy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Kv($y.apply(void 0,rb([e],t,!1))),o=Lv(r);return new Ay(o,r)}var Yy={exports:{}};function Ky(){}function Xy(){}Xy.resetWarningCache=Ky;Yy.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){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:Xy,resetWarningCache:Ky};return n.PropTypes=n,n}();var Jy=ht(Yy.exports);function Qy(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}Qy.propTypes={children:Jy.node,injectFirst:Jy.bool};const Zy=Vy((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}));var ex=Zy;
|
|
30
|
+
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,u,c,d,p=e.length,f=e.search(/[0-9\-\+#]/),m=f>0?e.substring(0,f):"",h=e.split("").reverse().join(""),g=h.search(/[0-9\-\+#]/),b=p-g,v=e.substring(b,b+1),y=b+("."===v||","===v?1:0),x=g>0?e.substring(y,p):"";if(n=(t="-"===(e=e.substring(f,y)).charAt(0)?-t:+t)<0?t=-t:0,o=(r=e.match(/[^\d\-\+#]/g))&&r[r.length-1]||".",i=r&&r[1]&&r[0]||",",e=e.split(o),t=+(t=t.toFixed(e[1]&&e[1].length))+"",l=e[1]&&e[1].lastIndexOf("0"),(!(u=t.split("."))[1]||u[1]&&u[1].length<=l)&&(t=(+t).toFixed(l+1)),c=e[0].split(i),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],s=c[1]&&c[c.length-1].length){for(h="",b=(d=t[0]).length%s,p=d.length,y=0;y<p;y++)h+=d.charAt(y),!((y-b+1)%s)&&y<p-s&&(h+=i);t[0]=h}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),m+(n?"-":"")+r+x}},Em({exports:{}});var Dm={exports:{}};!function(e,t){self,e.exports=(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}},645:(e,t)=>{(()=>{var e={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var i=n[t]={exports:{}};return e[t](i,i.exports,r),i.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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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,o=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===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&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=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.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,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,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 o=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}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=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(i,"(").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 w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function D(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){D(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);D(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const T=k,_=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(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=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(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=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var U="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)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:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(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 Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(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=i(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 oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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!E.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,n){if(1===e){var r=oe(t,0);t.splice(r,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 o=t.layout.qHyperCube.qDimensionInfo.length,i=[{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===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var u=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Le(r))return _e({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.lastReloadTime;return i(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 Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),_e({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function _e(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:o,dimensionAndFieldList:e}),Be(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):_(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ue(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(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)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"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:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),t.default=o.default,Object.defineProperty(t,"__esModule",{value:!0})})()}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.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),o=Math.floor(n/62);return o>0?t(o)+r:r}function o(e){return o="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},o(e)}n.d(r,{default:()=>He});const i={getValue:function(e,t,n){if(null==e||null==t)return n;for(var r=t.split("."),o=e,i=0;i<r.length;++i){var a=r[i];if(""!==a){if(void 0===o[a]||null===o[a])return n;o=o[a]}}return o},setValue:function(e,t,n){if(null!=e&&null!=t){for(var r=t.split("."),o=r[r.length-1],i=e,a=0;a<r.length-1;++a){var l=r[a];void 0!==i[l]&&null!==i[l]||(i[l]=Number.isNaN(+r[a+1])?{}:[]),i=i[l]}void 0!==n?i[o]=n:delete i[o]}},isEmpty:function(e){return 0===Object.keys(e).length&&e.constructor===Object},isAtomicValue:function(e){return/boolean|number|string/.test(o(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 l(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 l(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)?l(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 l(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 s(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 o=e.indexOf(t[r]);if(n>o)return!1;n=o}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(645),f=n.n(p);const m=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.dimensions).push.apply(t,a(r.qDimensions));var l,s=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qDimensions");s&&(l=o.excludedDimensions).push.apply(l,a(s))},h=function(e){var t,n=e.exportFormat,r=e.qHyperCubeDef,o=n.data[0];(t=o.measures).push.apply(t,s(r.qMeasures));var a,l=i.getValue(r,"qLayoutExclude.qHyperCubeDef.qMeasures");l&&(a=o.excludedMeasures).push.apply(a,s(l))},g=function(e){var t=e.exportFormat,n=e.qHyperCubeDef,r=t.data[0];n.qInterColumnSortOrder||(n.qInterColumnSortOrder=[]),r.interColumnSortOrder=n.qInterColumnSortOrder.concat();var o=i.getValue(n,"qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder");o&&d.isOrderedSubset(o,r.interColumnSortOrder)&&(r.interColumnSortOrder=o.concat())},b=function(e){var t=e.exportFormat,n=e.properties;Object.keys(n).forEach((function(e){t.properties[e]=n[e]}))},v=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===i.getValue(e,t)&&i.setValue(e,t,e.qLayoutExclude.changed[t].from)}))}(n),delete n.qLayoutExclude.changed),n.qLayoutExclude.quarantine&&!i.isEmpty(n.qLayoutExclude.quarantine)||delete n.qLayoutExclude},y=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,o,a=i.getValue(e,t);if(!i.isAtomicValue(a))try{if((o=(o=(r=JSON.stringify(a)).match(/:\{/g))?o.length:0)>2)return;a=JSON.parse(r)}catch(e){return}i.getValue(e,"qLayoutExclude.quarantine")||i.setValue(e,"qLayoutExclude.quarantine",{});var l=i.getValue(e,"qLayoutExclude.quarantine");l[n]||(l[n]={}),l[n][t]=a}var S=n(229),E=n.n(S);function w(e,t){var n=E()(!0,{},t,e);return i.getValue(n,"qOtherTotalSpec.qOtherCounted")||i.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),i.getValue(n,"qOtherTotalSpec.qOtherLimit")||i.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function C(e,t){return E()(!0,{},t,e)}function R(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var k=Math.pow(2,53)-1;function A(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 L=function(e,t,n){var r="masterobject"===i.getValue(t,"properties.qInfo.qType")?"masterobject":i.getValue(n,"qInfo.qType");i.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},I=function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},M=function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},D=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}}},T=function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},_=function(e){var t,n=e.exportFormat,r=e.maxDimensions,o=e.minDimensions,i=e.newHyperCubeDef,a=e.defaultDimension,l=n.data[0];for(t=0;t<l.dimensions.length;++t){var s=w(l.dimensions[t],a);i.qDimensions.length<r?i.qDimensions.push(s):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(s)}for(t=0;t<l.excludedDimensions.length;++t){var u=w(l.excludedDimensions[t],a);i.qDimensions.length<o?i.qDimensions.push(u):i.qLayoutExclude.qHyperCubeDef.qDimensions.push(u)}},O=function(e){var t,n=e.exportFormat,r=e.maxMeasures,o=e.minMeasures,i=e.newHyperCubeDef,a=e.defaultMeasure,l=n.data[0];for(t=0;t<l.measures.length;++t){var s=C(l.measures[t],a);i.qMeasures.length<r?i.qMeasures.push(s):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(s)}for(t=0;t<l.excludedMeasures.length;++t){var u=C(l.excludedMeasures[t],a);i.qMeasures.length<o?i.qMeasures.push(u):i.qLayoutExclude.qHyperCubeDef.qMeasures.push(u)}},N=function(e){var t=e.exportFormat,n=e.dataDefinition,r=void 0===n?{}:n,o=t.data[0],i=r.dimensions||{max:0},a=r.measures||{max:0},l=R(a.max,o.dimensions.length,k),s=R(a.min,o.dimensions.length,0);return{maxDimensions:R(i.max,l,k),minDimensions:R(i.min,s,0),maxMeasures:l,minMeasures:s}},q=function(e){var t=e.exportFormat,n=e.newHyperCubeDef,r=t.data[0],o=n.qDimensions.length+n.qMeasures.length;n.qInterColumnSortOrder=r.interColumnSortOrder.concat();var i=n.qInterColumnSortOrder.length;if(i!==o)for(n.qLayoutExclude&&(n.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=r.interColumnSortOrder.concat());i!==o;)i<o?(d.indexAdded(n.qInterColumnSortOrder,i),++i):(--i,d.indexRemoved(n.qInterColumnSortOrder,i))},z=function(e){var t=e.exportFormat,n=e.initialProperties,r=e.hypercubePath,o={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(t.properties).forEach((function(e){"qLayoutExclude"===e?t.properties[e].quarantine&&(o.qLayoutExclude.quarantine=E()(!0,{},t.properties[e].quarantine)):"qHyperCubeDef"===e&&r?i.setValue(o,"".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)?o[e]=t.properties[e]:o.qLayoutExclude.disabled[e]=t.properties[e]})),null===(o=E()(!0,{},n,o)).components&&(o.components=[]),o},F=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=t.data[0];return a.dimensions.length>n&&n>0||a.measures.length>o&&o>0||a.excludedDimensions.length>0&&a.dimensions.length+a.excludedDimensions.length>r||a.excludedMeasures.length>0&&a.measures.length+a.excludedMeasures.length>i||!o&&a.measures.length>0||!n&&a.dimensions.length>0},j=function(e){var t=e.exportFormat,n=e.maxDimensions,r=e.minDimensions,o=e.maxMeasures,i=e.minMeasures,a=e.newHyperCubeDef,l=t.data[0];a.qLayoutExclude||(a.qLayoutExclude={}),a.qLayoutExclude.qHyperCubeDef||(a.qLayoutExclude.qHyperCubeDef={}),(l.dimensions.length>n&&n>0||l.excludedDimensions&&l.excludedDimensions.length&&l.dimensions.length+l.excludedDimensions.length>r)&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(l.measures.length>o&&o>0||l.excludedMeasures&&l.excludedMeasures.length&&l.measures.length+l.excludedMeasures.length>i)&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!o&&l.measures.length&&(a.qLayoutExclude.qHyperCubeDef.qMeasures||(a.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!n&&l.dimensions.length&&(a.qLayoutExclude.qHyperCubeDef.qDimensions||(a.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},$=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.dimensions&&"function"==typeof r.dimensions.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=function(e){if(Array.isArray(e))return A(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 A(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)?A(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=[],l.forEach((function(e){a.qDimensions.push(e),r.dimensions.added(e,n)}))}},H=function(e){var t,n=e.newProperties,r=e.dataDefinition,o=e.hypercubePath;if(r.measures&&"function"==typeof r.measures.added){var a=i.getValue(n,o||"").qHyperCubeDef,l=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=[],l.forEach((function(e){a.qMeasures.push(e),r.measures.added(e,n)}))}},B=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 W(e,t){var n=i.getValue(e,"qLayoutExclude.quarantine",{})[t];return!!n&&(Object.keys(n).forEach((function(t){i.setValue(e,t,n[t])})),delete e.qLayoutExclude.quarantine[t],!0)}const U={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=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,l=i.getValue(a,n||""),s=l.qHyperCubeDef;return s.qInterColumnSortOrder||(s.qInterColumnSortOrder=[]),m({exportFormat:o,qHyperCubeDef:s}),h({exportFormat:o,qHyperCubeDef:s}),g({exportFormat:o,qHyperCubeDef:s}),delete s.qLayoutExclude,b({exportFormat:o,properties:a}),n&&(o.properties.qHyperCubeDef=s,delete l.qHyperCubeDef),v({exportFormat:o,properties:a}),r||y(o.properties.qHyperCubeDef.qMeasures),Array.isArray(o.properties.filters)&&(x(o.properties,"filters","storedFilters"),delete o.properties.filters),o.properties.qHyperCubeDef.qContextSetExpression&&(x(o.properties,"qHyperCubeDef.qContextSetExpression","storedFilters"),o.properties.qHyperCubeDef.qContextSetExpression=""),o.properties.qHyperCubeDef.qDynamicScript&&o.properties.qHyperCubeDef.qDynamicScript.length&&(x(o.properties,"qHyperCubeDef.qDynamicScript","dynamicScript"),o.properties.qHyperCubeDef.qDynamicScript=[]),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=void 0===n?{}:n,o=e.dataDefinition,a=void 0===o?{}:o,l=e.defaultPropertyValues,s=void 0===l?{}:l,u=e.hypercubePath,c=e.extension,d=e.supportedFilters,p=void 0===d||d,f=e.isHCModifierSupported,m=void 0===f||f,h={qChildren:[]},g=z({exportFormat:t,initialProperties:r,hypercubePath:u}),b=i.getValue(r,u||"").qHyperCubeDef,v=i.getValue(g,u||"").qHyperCubeDef,y=N({exportFormat:t,dataDefinition:a}),x=y.maxDimensions,S=y.minDimensions,E=y.maxMeasures,w=y.minMeasures,C=s.defaultDimension,R=void 0===C?D():C,k=s.defaultMeasure,A=void 0===k?T():k;v.qDimensions.length=0,v.qMeasures.length=0,F({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w})&&j({exportFormat:t,maxDimensions:x,minDimensions:S,maxMeasures:E,minMeasures:w,newHyperCubeDef:v}),_({exportFormat:t,maxDimensions:x,minDimensions:S,newHyperCubeDef:v,defaultDimension:R}),O({exportFormat:t,maxMeasures:E,minMeasures:w,newHyperCubeDef:v,defaultMeasure:A}),$({newProperties:g,dataDefinition:a,hypercubePath:u}),H({newProperties:g,dataDefinition:a,hypercubePath:u}),q({exportFormat:t,newHyperCubeDef:v}),I("qMaxStackedCells",b,v),I("qNoOfLeftDims",b,v),M("qInitialDataFetch",b,v,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),M("qMode",b,v,"S"),M("qReductionMode",b,v,"N"),M("qSortbyYValue",b,v),M("qIndentMode",b,v),M("qShowTotalsAbove",b,v),L(g,t,r),h.qProperty=g;var P=i.getValue(c||{},"support.modifiers");return B({measures:v.qMeasures,modifierTypes:P}),p&&W(h.qProperty,"storedFilters"),"S"===v.qMode&&m&&W(h.qProperty,"dynamicScript"),h}};var V={cellBackgroundColor:!0,cellForegroundColor:!0,colorByAlternative:!0,colorByExpression:!0,tooltip:!0,urlLabel:!0,url:!0};function G(e,t,n,r){t=t||[];var o=c(e,r,n),i=c(t,r,n);if(-1!==o&&-1===i){var a=e.splice(o,1);t.push(a[0])}return t}function Y(e,t){return e.length!==t}const K={create:function(e,t){if(!e||!V[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,o){n=n||"qAttributeExpressions",o=o||"id";for(var i=0;i<e.length;i++){var a=e[i][n],l=t.length;if(G(a,t,r,o),Y(t,l))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 i.getValue(e,"qHyperCubeDef.qDimensions.length",0)},getNumMeasures:function(e){return i.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}}},Q={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 Z={scatterplot:Q,"sn-scatter-plot":Q,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,o=e.excludedDimensions,a=e.measures,l=e.label;te(r,o);var s=r[r.length-1];if(s){var u=n?i.getValue(t,"color.byDimDef"):i.getValue(t,"color.byMeasureDef"),c=i.getValue(t,"color.formatting.qNumFormat"),p=i.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,o=e.isDimension,i=e.qNumFormat,a=e.isCustomFormatted;t.label=n||r.label,o?t.qDef=r.key:(t.qExpression=r.key,i&&(t.qNumFormat=i,t.isCustomFormatted=a)),t.matchMeasure=r.activeMeasureIndex,t.label&&"="===t.label.charAt(0)&&(t.labelExpRef="color.altLabel")}({attributeExpression:f,label:l,item:u,isDimension:n,qNumFormat:c,isCustomFormatted:p});break;case"libraryItem":!function(e){var t=e.attributeExpression,n=e.measures,r=e.item,o=e.qNumFormat,i=e.isCustomFormatted;e.isDimension||(t.matchMeasure=d.findIndexByPropertyValue(n,"qLibraryId",r.key),o&&(t.qNumFormat=o,t.isCustomFormatted=i)),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},s.qAttributeDimensions.push(f)):s.qAttributeExpressions.push(f)}}}function oe(e,t,n,r){var o,i,a,l={};switch(e){case"dimension":n.qLibraryId?(l.type="dimension",l.name=n.qLibraryId,l.id=n.qLibraryId):(l.type="field",t?(l.name=n.label||n.qDef,l.id=n.qDef):(l.name=n.qDef.qFieldDefs[0],l.label=(a=n.qDef).qLabelExpression?a.qLabelExpression:a.qFieldLabels&&a.qFieldLabels[0]?a.qFieldLabels[0]:a.qFieldDefs[0]));break;case"measure":o=function(e,t){return t?e.qLibraryId:f().measureBase.getLibraryId(e)}(n,t),o?(l.type="measure",l.name=o,l.id=o,i=function(e,t){return f().hasActiveModifiers({measures:[e]})&&t?e.qDef.qDef:void 0}(n,r),i&&(l.expression=i)):(l.type="expression",t?(l.name=n.label||n.qExpression,l.id=n.qExpression):(l.name=n.qDef.qDef,l.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 l}const ie={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 o=n?"expression":t.type,i=e.color,a=i.mode,l=X.getItemLabel(t);switch(ne(e,l||""),o){case"field":a="byDimension",i.byDimDef={label:t.label||X.wrapFieldName(t.name),key:X.wrapFieldName(t.name),type:"expression",activeDimensionIndex:t.activeDimensionIndex};break;case"expression":a="byMeasure",i.byMeasureDef={label:n||l,key:n||t.name,type:"expression",activeMeasureIndex:t.activeMeasureIndex};break;case"dimension":a="byDimension",i.byDimDef={label:t.name,key:t.id,type:"libraryItem",activeDimensionIndex:t.activeDimensionIndex};break;case"measure":a="byMeasure",i.byMeasureDef={label:t.name,key:t.id,expression:t.expression,type:"libraryItem",activeMeasureIndex:t.activeMeasureIndex},i.formatting&&ie.useMasterNumberFormat(i.formatting)}r||(i.auto=!1,i.mode=a)}function le(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byDimDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeDimensionIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"color.byDimDef");r.activeDimensionIndex=Math.min(r.activeDimensionIndex,n.length-1);var o=oe("dimension",!1,n[r.activeDimensionIndex]);o.activeDimensionIndex=r.activeDimensionIndex,ae(e,o)}(e,t);else if(function(e){return!e||!e.key}(a)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=n[function(e,t,n){var r=i.getValue(t,"visualization"),o=n.split("."),a=Number(o[1]),l=i.getValue(t,"layers.".concat(a,".type"));return 2===e.length&&"map"===r&&"point"===l}(n,e,t)?0:n.length-1],o=K.IDMAP.COLOR_BY_ALTERNATIVE,a=d.findItemByPropertyValue(r.qAttributeDimensions,"id",o);return ae(e,oe("dimension",!!a,a||r)),!!a}(e,t))return;re({properties:e,isDimension:!0,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byDimDef.label")})}const se=function(e,t,n){i.setValue(e,t,n),i.isAtomicValue(n)&&function(e,t,n){var r=e.qLayoutExclude;r&&(r.changed||(r.changed={}),r.changed[t]={from:i.getValue(e,t),to:n})}(e,t,n)},ue=function(e,t){var n={primary:!0};if(e){var r=(Z[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,o=e.dimensions;return!(t[r]&&!n&&("byDimension"!==r&&"byMeasure"!==r||!o.length))},de=function(e,t){var n,r=i.getValue(e,"color.mode"),o=i.getValue(e,"color.auto"),a=i.getValue(e,"".concat(t,"qDimensions"),[]),l=i.getValue(e,"".concat(t,"qMeasures"),[]),s=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);o?te(a,s):!(n={auto:o,colorMode:r,dimensions:a}).auto&&"byDimension"===n.colorMode&&n.dimensions.length>0?le(e,t):function(e){var t=e.auto,n=e.colorMode,r=e.dimensions,o=e.measures,a=e.properties,l=i.getValue(a,"visualization");return!(t||"byMeasure"!==n||!r.length||"map"!==l&&!o.length)}({auto:o,colorMode:r,dimensions:a,measures:l,properties:e})?function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]),a=i.getValue(e,"color.byMeasureDef");if(a&&ne(e,a.label),function(e){return!!(e&&e.activeMeasureIndex>-1)}(a))!function(e,t){var n=i.getValue(e,"".concat(t,"qMeasures"),[]),r=i.getValue(e,"color.byMeasureDef");if(r.activeMeasureIndex=Math.min(r.activeMeasureIndex,n.length-1),r.activeMeasureIndex>-1){var o=oe("measure",!1,n[r.activeMeasureIndex],!0);o.activeMeasureIndex=r.activeMeasureIndex,ae(e,o)}}(e,t);else if(function(e,t){return(!e||!e.key)&&t.length>0}(a,r)&&function(e,t){var n=i.getValue(e,"".concat(t,"qDimensions"),[]),r=i.getValue(e,"".concat(t,"qMeasures"),[]),o=n[n.length-1],a=K.IDMAP.COLOR_BY_ALTERNATIVE,l=d.findItemByPropertyValue(o.qAttributeExpressions,"id",a);return ae(e,oe("measure",!!l,l||r[0])),!!l}(e,t))return;re({properties:e,isDimension:!1,dimensions:n,excludedDimensions:o,measures:r,label:i.getValue(e,"color.byMeasureDef.label")})}(e,t):function(e,t){var n=i.getValue(e,"color.mode"),r=i.getValue(e,"".concat(t,"qDimensions"),[]),o=i.getValue(e,"".concat(t,"qMeasures"),[]),a=i.getValue(e,"".concat(t,"qLayoutExclude.qHyperCubeDef.qDimensions"),[]);"byMultiple"===n&&o.length<2&&i.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=i.getValue(n,"qHyperCubeDef.qMeasures",[]),o=i.getValue(n,"color.mode","");return!t&&"byExpression"===o&&r.length>0},me=function(e){var t=i.getValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",[]),n=i.getValue(e,"color.colorExpression","");t.splice(0,0,{qExpression:n,id:"colorByExpression"}),i.setValue(e,"qHyperCubeDef.qMeasures.0.qAttributeExpressions",t)},he=function(e){i.setValue(e,"color.mode","primary"),i.setValue(e,"color.auto",!0)},ge=function(e){var t=i.getValue(e,"qHyperCubeDef.qDimensions",[]),n=i.getValue(e,"color.persistent",!1);return t.length>1&&!n},be={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=U.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),i=o.data[0],a=i.dimensions.concat(i.excludedDimensions),l=i.measures.concat(i.excludedMeasures),s=K.IDMAP,u=s.COLOR_BY_ALTERNATIVE,c=s.COLOR_BY_EXPRESSION;return K.moveByIdFromGroup(a,[],"qAttributeDimensions",u),K.moveByIdFromGroup(a,[],"qAttributeExpressions",u),K.moveByIdFromGroup(l,[],"qAttributeExpressions",c),o},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,a=e.hypercubePath,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=U.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:a,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty,p=i.getValue(d,"visualization"),f=i.getValue(d,"qHyperCubeDef.qDimensions",[]),m=i.getValue(d,"color.mode",""),h=i.getValue(d,"color.auto",""),g=ue(d,p),b=ce({canColorBy:g,autoColor:h,colorMode:m,dimensions:f});return g[m]?fe({shouldUpdateColorBy:b,properties:d})&&me(d):he(d),b&&de(d,"qHyperCubeDef."),ge(d)&&se(d,"color.persistent",!0),pe(f),c}};var ve=["bar","marker","line"];const ye=function(e){var t=e.initialProperties,n=e.properties;t.measureAxis&&void 0===t.measureAxis.autoMinMax?W(n,"unsupportedAutoMinMax")||E()(n.measureAxis,t.measureAxis):W(n,"supportedAutoMinMax")||E()(n.measureAxis,t.measureAxis)},xe=function(e){var t,n=e.exportFormat,r=e.initialProperties,o=e.properties,i=e.measureType,a=o.qHyperCubeDef,l=o.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 s=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,o=n.axis;t[o]||(t[o]={axis:o,type:{line:0,marker:0,bar:0,total:0}}),ve.includes(r)&&t[o].type[r]++,t[o].type.total++}})),t}(a);s.length?(i&&(t=s.filter((function(e){return e.type[i]>0})).sort((function(e,t){return t.type[i]-e.type[i]}))),t&&t.length||(t=s.sort((function(e,t){return t.type.total-e.type.total}))),t&&t[0]&&E()(l,n.properties.measureAxes[t[0].axis])):E()(l,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}}},Ee={exportProperties:function(e){var t=e.propertyTree,n=e.hypercubePath,r=e.viewDataMode,o=e.supportedAutoMinMax,i=void 0===o||o,a=be.exportProperties({propertyTree:t,hypercubePath:n,viewDataMode:r}),l=a.properties;return i?(x(l,"measureAxis.min","supportedAutoMinMax"),x(l,"measureAxis.max","supportedAutoMinMax")):(x(l,"measureAxis.min","unsupportedAutoMinMax"),x(l,"measureAxis.max","unsupportedAutoMinMax")),a},importProperties:function(e){var t=e.exportFormat,n=e.initialProperties,r=e.dataDefinition,o=e.defaultPropertyValues,i=e.hypercubePath,a=e.measureType,l=e.extension,s=e.supportedFilters,u=e.isHCModifierSupported,c=be.importProperties({exportFormat:t,initialProperties:n,dataDefinition:r,defaultPropertyValues:o,hypercubePath:i,extension:l,supportedFilters:s,isHCModifierSupported:u}),d=c.qProperty;return ye({initialProperties:n,properties:d}),xe({exportFormat:t,initialProperties:n,properties:d,measureType:a}),Se(d.qHyperCubeDef),d.qHyperCubeDef.qColumnOrder=[],d.qHyperCubeDef.columnOrder=[],c}};function we(e,t,n){return"qLayoutExclude.quarantine.".concat(e,".").concat(t,".").concat(n)}function Ce(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,a);if(void 0!==l){var s=i.getValue(o,"qDef.cId");s||(s=i.generateId(),i.setValue(o,"qDef.cId",s));var u=we(n,r,s);i.setValue(t,u,l),i.setValue(o,a,void 0)}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}function Re(e){var t=e.properties,n=e.arrayPath,r=e.quarantineName,o=e.arrayName,a=e.itemPath;i.getValue(t,n,[]).forEach((function(e){return function(e){var t=e.properties,n=e.quarantineName,r=e.arrayName,o=e.item,a=e.itemPath,l=i.getValue(o,"qDef.cId");if(l){var s=we(n,r,l),u=i.getValue(t,s);void 0!==u&&(i.setValue(o,a,u),i.setValue(t,s,void 0))}}({properties:t,quarantineName:r,arrayName:o,item:e,itemPath:a})}))}var ke="qHyperCubeDef.qMeasures",Ae="conditionalColoring",Pe="measures",Le="qDef.conditionalColoring";const Ie={quarantine:function(e){Ce({properties:e,arrayPath:ke,quarantineName:Ae,arrayName:Pe,itemPath:Le})},unquarantine:function(e){Re({properties:e,arrayPath:ke,itemPath:Le,arrayName:Pe,quarantineName:Ae})}};var Me="qHyperCubeDef.qMeasures",De="measures",Te="qHyperCubeDef.qDimensions",_e="dimensions",Oe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",Ne="alternativeMeasures",qe="qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qDimensions",ze="alternativeDimensions",Fe="qCalcCondition",je="conditionalShowHide";const $e={quarantine:function(e){Ce({properties:e,arrayPath:Me,quarantineName:je,arrayName:De,itemPath:Fe}),Ce({properties:e,arrayPath:Te,quarantineName:je,arrayName:_e,itemPath:Fe})},unquarantine:function(e){Re({properties:e,arrayPath:Me,quarantineName:je,arrayName:De,itemPath:Fe}),Re({properties:e,arrayPath:Te,quarantineName:je,arrayName:_e,itemPath:Fe})},quarantineAlternative:function(e){Ce({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Ce({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})},unquarantineAlternative:function(e){Re({properties:e,arrayPath:Oe,quarantineName:je,arrayName:Ne,itemPath:Fe}),Re({properties:e,arrayPath:qe,quarantineName:je,arrayName:ze,itemPath:Fe})}},He={hypercube:U,colorChart:be,axisChart:Ee,quarantineProperty:x,unquarantineProperty:W,quarantineArrayProp:Ce,unquarantineArrayProp:Re,conditionalColoring:Ie,conditionalShow:$e}})(),r.default})()}(Dm);var Tm=ht(Dm.exports);const _m="12px",Om="nebula-table-utils-head-menu-button";let Nm=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}({});const qm="nebula-table-utils-column-adjuster",zm=`${qm}-border`;let Fm=function(e){return e[e.PixelsMin=30]="PixelsMin",e[e.PixelsMinTable=120]="PixelsMinTable",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.AutoMin=80]="AutoMin",e}({}),jm=function(e){return e.Auto="auto",e.FitToContent="fitToContent",e.Pixels="pixels",e.Percentage="percentage",e}({});const $m="qHyperCubeDef.qDimensions",Hm="dimensions",Bm="qDef.representation",Wm="tableRepresentation",Um=(e,t,n)=>{const r=e.length+t.length,o=((null==n?void 0:n.length)===r?n:Array.from(Array(r).keys())).map((n=>((e,t,n)=>{var r;const o=t.length,i=e<o?t[e]:n[e-o],{columnWidth:a}=i.qDef;return"pixels"===(null==a?void 0:a.type)?null!==(r=a.pixels)&&void 0!==r?r:Fm.PixelsDefault:-1})(n,e,t)));return o},Vm=({propertyTree:e,hyperCubePath:t})=>{const n=Tm.hypercube.exportProperties({propertyTree:e,hyperCubePath:t}),{qHyperCubeDef:{qColumnOrder:r,qDimensions:o,qMeasures:i}}=n.properties,a=Um(o,i,r);return Cm(n,"properties.qHyperCubeDef",{...n.properties.qHyperCubeDef,columnWidths:a}),Tm.quarantineProperty(n.properties,"qHyperCubeDef.columnWidths","straightTableColumnWidths"),Tm.quarantineProperty(n.properties,"qHyperCubeDef.qColumnOrder","straightTableColumnOrder"),Tm.quarantineProperty(n.properties,"qHyperCubeDef.columnOrder","straightTableColumnOrder"),(e=>{Tm.quarantineArrayProp({properties:e,arrayPath:$m,itemPath:Bm,arrayName:Hm,quarantineName:Wm})})(n.properties),n};const Gm=(e,t,n,r)=>{let o=t;r&&(o=t-r);const i=JSON.parse(JSON.stringify(e[o]));if(Array.isArray(n)&&n.length>0){const e=n[t];i.qDef.columnWidth="number"==typeof e&&e>0?{type:jm.Pixels,pixels:e}:{type:jm.FitToContent}}return i},Ym=({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o,viewDataMode:i})=>{const a=Tm.hypercube.importProperties({exportFormat:e,initialProperties:t,dataDefinition:{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}},defaultPropertyValues:o,hypercubePath:r,extension:n});Tm.unquarantineProperty(a.qProperty,"straightTableColumnOrder"),(e=>{Tm.unquarantineArrayProp({properties:e,arrayPath:$m,itemPath:Bm,arrayName:Hm,quarantineName:Wm})})(a.qProperty);const{qHyperCubeDef:{qDimensions:l,qMeasures:s,qColumnOrder:u,columnWidths:c}}=a.qProperty,{dimensions:d,measures:p}=((e,t,n,r)=>{const o=e.length,i=o+t.length,a=(null==n?void 0:n.length)===i?n:Array.from(Array(i).keys());return{dimensions:a.filter((e=>e<o)).map((t=>Gm(e,t,r))),measures:a.filter((e=>e>=o)).map((e=>Gm(t,e,r,o)))}})(l,s,u,c);return Array.isArray(c)&&c.length>0&&(Cm(a,"qProperty.qHyperCubeDef.qDimensions",d),Cm(a,"qProperty.qHyperCubeDef.qMeasures",p)),i&&(Cm(a,"qProperty.totals.show",!1),Cm(a,"qProperty.usePagination",!0)),Tm.conditionalShow.unquarantine(a.qProperty),a};var Km={component:"items",items:{columnHandler:{component:"column-handler",search:!0,selectAll:!1}},classification:{tags:["exploration"],exclusive:!0}};function Xm(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function Jm(e,t){let 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}function Qm(e){return e>0?0:1}function Zm(e){return e.translator.get("Visualizations.Descriptions.Column")}function eh(e){return{measures:{min:Qm,max:1e3,description:()=>Zm(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;Xm(r,n.getDimensions().length+n.getMeasures().length-1)},remove(e,t,n,r){const{qColumnOrder:o}=n.hcProperties;Jm(o,(n.hcProperties.qDimensions?n.hcProperties.qDimensions.length:0)+r)}},dimensions:{min:Qm,max:1e3,description:()=>Zm(e),add(e,t,n){const{qColumnOrder:r}=n.hcProperties;return Xm(r,n.getDimensions().length-1),e},remove(e,t,n,r){if(null!=e&&e.isAlternative)return;const{qColumnOrder:o}=n.hcProperties;Jm(o,r)}}}}var th={};!function(e){(()=>{var t={229:e=>{var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,i=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,o=t.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(r in e);return void 0===r||t.call(e,r)},l=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(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(o)return o(e,n).value}return e[n]};e.exports=function e(){var t,n,r,o,u,c,d=arguments[0],p=1,f=arguments.length,m=!1;for("boolean"==typeof d&&(m=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!==(o=s(t,n))&&(m&&o&&(a(o)||(u=i(o)))?(u?(u=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},l(d,{name:n,newValue:e(m,c,o)})):void 0!==o&&l(d,{name:n,newValue:o}));return d}}},n={};function r(e){var o=n[e];if(void 0!==o)return o.exports;var i=n[e]={exports:{}};return t[e](i,i.exports,r),i.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 o={};(()=>{r.r(o),r.d(o,{default:()=>Me});var e=r(229),t=r.n(e);const n=function(e,t,n){if(!t)return!1;var r,o=t.split("."),i=o[o.length-1],a=e;for(r=0;r<o.length-1;++r)void 0===a[o[r]]&&(a[o[r]]=Number.isNaN(+o[r+1])?{}:[]),a=a[o[r]];if(void 0!==n){var l=a[i];return a[i]=n,{updated:n,previous:l}}return delete a[i],!1},i=function(e,t,n){var r,o=t.split("."),i=e;if(void 0===i)return n;for(r=0;r<o.length;++r){if(void 0===i[o[r]])return n;i=i[o[r]]}return i},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 l="".concat(" ","(").concat(" "),s="".concat(" ",")").concat(" ");function u(e){return l+e+s}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,o=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===o)return r;if(r.qDerivedFieldData)for(var i=0;i<r.qDerivedFieldData.qDerivedFieldLists.length;++i)for(var a=r.qDerivedFieldData.qDerivedFieldLists[i],l=0;l<a.qFieldDefs.length;++l){var s=a.qFieldDefs[l];if(s.qName===o)return s}}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 m(){return"[$(=Replace(GetObjectField(".concat(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,"),']',']]'))]")}function h(e,t){var n=e.crossAllDimensions;return 2===t&&n?"Above(Total ":"Above("}function g(e){return void 0===e?")":", 0, ".concat(e,")")}function b(e){return"Replace(Replace(".concat(e,",'''',''''''),'$','$''&''')")}function v(e,t){return e?"".concat(t,'={">=$(=Min(').concat(t,"))<=$(=Max(").concat(t,'))"}'):"".concat(t,'={"=Only({1}').concat(t,")>='$(=").concat(b("MinString(".concat(t,")")),")' and Only({1}").concat(t,")<='$(=").concat(b("MaxString(".concat(t,")")),")'\"}")}function y(e){var t=e.modifier,n=void 0===t?{}:t,r=e.dimensions,o=e.dimensionAndFieldList,i=e.funcComp,a=void 0===i?"Sum":i,l=e.valueComp,s=void 0===l?"0":l;if(!n.showExcludedValues)return"";if(r&&1===r.length){var u=v(c(r[0],o),m(0));return"".concat(a,"({1<").concat(u,">}").concat(s,")")}if(r&&2===r.length){var d=c(r[0],o),p=c(r[1],o),f=m(0),h=m(1),g=v(d,f),b=v(p,h);return"".concat(a,"({1<").concat(g,",").concat(b,">}").concat(s,")")}return"".concat(a,"({1}").concat(s,")")}function x(e){return"".concat(e,"(")}function S(e){var t=e.properties,n=e.layout;return i(t,"qHyperCubeDef.qDimensions",i(n,"qHyperCube.qDimensionInfo",[])).length}const E={isFullRange:d,getNumDimensions:S,getExpressionWithExcludedComp:function(e){var t=e.expression,n=e.modifier,r=e.dimensions,o=e.dimensionAndFieldList,i=e.treatMissingAsNull,a=u(f(t));if(!n.showExcludedValues)return a;var l=y({modifier:n,dimensions:r,dimensionAndFieldList:o}),s=i?"":", 0";if(r&&1===r.length){var c=m(0);return"If(Count(".concat(c,") > 0, ").concat(a," + ").concat(l).concat(s,")")}if(r&&2===r.length){var d=m(0),p=m(1);return"If(Count(".concat(d,") * Count(").concat(p,") > 0, ").concat(a," + ").concat(l).concat(s,")")}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:h,getAboveCompSuffix:g,getAboveComp:function(e,t,n,r){return h(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:y,needDimension:function(e){var t=e.modifier,n=e.properties,r=e.layout,o=function(e){return void 0===e.primaryDimension?e.accumulationDimension:e.primaryDimension}(t);return 0===o&&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=m(t);if(!n.qSortByExpression&&!n.qSortByNumeric&&!n.qSortByAscii)return r;var o=["Descending","Ascending"],i=n.qSortByNumeric?"(Numeric, ".concat(o[(n.qSortByNumeric+1)/2],")"):"",a=n.qSortByAscii?"(Text, ".concat(o[(n.qSortByAscii+1)/2],")"):"";return n.qSortByNumeric&&n.qSortByAscii?"(".concat(r,", ").concat(i,", ").concat(a,")"):n.qSortByNumeric?"(".concat(r,", ").concat(i,")"):n.qSortByAscii?"(".concat(r,", ").concat(a,")"):r},simplifyExpression:f,extractInputExpression:function(e){var t=e.outputExpression;if(e.modifier){var n=t.indexOf(l);if(-1!==n){var r=t.indexOf(s);if(-1!==r)return t.substring(n+l.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,o=void 0===r?1:r,i=e.maxDimensions,a=void 0===i?2:i;if(!t&&!n)return!0;var l=S({properties:t,layout:n});return l>=o&&l<=a},getExpressionWithMarkers:u,canExtract:function(e){var t=e.indexOf(l),n=e.indexOf(s);return t>-1&&n>-1&&t<n},getDimDefWithWrapper:m,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 o=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}));o&&t!==o.qDef.qLabel&&(r=o.qLibraryId||o.qDef.base.qLibraryId?"[".concat(o.qDef.qLabel,"]"):o.qDef.base.qDef);var i=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(i,"(").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 w(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){return C="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},C(e)}var R=t().bind(null,!0),k={},A=Array.isArray;function P(e){return null!=e&&!Array.isArray(e)&&"object"===C(e)}function L(e){return void 0===e}function I(e,t){return"function"==typeof e[t]||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function M(e,t){var n,r=t.substring(1).split("/").slice(0,-1);return r.forEach((function(t,o){if(o!==r.length){n=+t;var i=Number.isNaN(n)?{}:[];e[n||t]=L(e[n||t])?i:e[t],e=e[n||t]}})),e}function D(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){D(e[r],t[r])||(n=!1)})),n);if(A(e)&&A(t)){if(e.length!==t.length)return!1;for(var r=0,o=e.length;r<o;r+=1)if(!D(e[r],t[r]))return!1;return!0}return e===t}k.generate=function(e,t,n){n=n||"";var r=[];return Object.keys(t).forEach((function(o){var i=function(e){return e?R({},{val:e}).val:e}(t[o]),a=e[o],l="".concat(n,"/").concat(o);D(i,a)||I(t,o)||(L(a)?r.push({op:"add",path:l,value:i}):P(i)&&P(a)?r=r.concat(k.generate(a,i,l)):A(i)&&A(a)?r=r.concat(function(e,t,n){var r=[],o=e.slice(),i=-1;function a(e,t,n){if(e[n]&&L(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(var r=0,o=e.length;r<o;r+=1)if(e[r]&&e[r].qInfo.qId===t)return r;return-1}if(D(t,o))return r;if(!L(t[0])&&L(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(var l=o.length-1;l>=0;l-=1)-1===(i=a(t,o[l].qInfo&&o[l].qInfo.qId,l))?(r.push({op:"remove",path:"".concat(n,"/").concat(l)}),o.splice(l,1)):r=r.concat(k.generate(o[l],t[i],"".concat(n,"/").concat(l)));for(var s=0,u=t.length;s<u;s+=1)-1===(i=a(o,t[s].qInfo&&t[s].qInfo.qId))?(r.push({op:"add",path:"".concat(n,"/").concat(s),value:t[s]}),o.splice(s,0,t[s])):i!==s&&(r.push({op:"move",path:"".concat(n,"/").concat(s),from:"".concat(n,"/").concat(i)}),o.splice(s,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:"".concat(n,"/").concat(o),value:i}))})),Object.keys(e).forEach((function(o){L(t[o])&&!I(e,o)&&r.push({op:"remove",path:"".concat(n,"/").concat(o)})})),r},k.apply=function(e,t){t.forEach((function(t){var n,r,o=M(e,t.path),i=t.path.split("/").splice(-1)[0],a=i&&Number.isNaN(+i)?o[i]:o[+i]||o,l=t.from?t.from.split("/").splice(-1)[0]:null;if("/"===t.path&&(o=null,a=e),"add"===t.op||"replace"===t.op)if(A(o))"-"===i&&(i=o.length),o.splice(+i,"add"===t.op?0:1,t.value);else if(A(a)&&A(t.value)){var s,u=t.value.slice();a.length=0,(s=a).push.apply(s,function(e){if(Array.isArray(e))return w(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 w(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)?w(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&&!I(n,e)&&delete n[e]})),R(a,t.value);else{if(!o)throw new Error("Patchee is not an object we can patch");o[i]=t.value}else if("move"===t.op){var c=M(e,t.from);A(o)?o.splice(+i,0,c.splice(+l,1)[0]):(o[i]=c[l],delete c[l])}else"remove"===t.op&&(A(o)?o.splice(+i,1):delete o[i])}))},k.clone=function(e){return R({},e)},k.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},k.updateObject=function(e,t){Object.keys(e).length?k.apply(e,k.generate(e,t)):R(e,t)};const T=k,_=function(e,n,r){if(!e)return Promise.resolve();var o=T.generate(n,r);return t()(!0,n,r),o&&o.length?(o=o.map((function(e){return{qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}})),e.applyPatches(o,!0)):Promise.resolve()};var O="accumulation";function N(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===O)return n[r]}function q(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===O)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var z={type:"accumulation",disabled:!1,accumulationDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullAccumulation:!1,steps:6,outputExpression:""};const F={translationKey:"properties.modifier.accumulation",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getNumStepComp(n,s),p=E.getAboveComp(n,s,c,d),f=E.getRangeComp("RangeSum",p);if(E.needDimension({modifier:n,properties:r,layout:o})){var m=E.getDimComp(u,1),h=E.getDimComp(u,0),g=E.getAggrComp(f,m,h);f=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,valueComp:g}):g}return f},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,z)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(q(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(q(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(q(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(q(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=N(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=N(t,e);return n&&!n.fullAccumulation}},showExcludedValues:{refFn:function(t){return"".concat(q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(O))return!1;var i=N(t,e);return i&&!i.disabled}};return n}};var j="movingAverage";function $(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===j)return n[r]}function H(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===j)return r;return-1}(e,t);return n>-1?"".concat(t,".").concat(n):t}var B={type:"movingAverage",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,fullRange:!1,steps:6,outputExpression:"",nullSuppression:!1};const W={translationKey:"properties.modifier.movingAverage",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t,n=e.expression,r=e.modifier,o=e.properties,a=e.layout,l=e.numDimensions,s=e.dimensionAndFieldList;if(!r)return n;var u=l;void 0===u&&(u=E.getNumDimensions({properties:o,layout:a}));var c=i(o,"qHyperCubeDef.qDimensions",[]),d=r.showExcludedValues&&r.nullSuppression,p=E.getExpressionWithExcludedComp({expression:n,modifier:r,dimensions:c,dimensionAndFieldList:s,treatMissingAsNull:d}),f=E.getNumStepComp(r,u),m=E.getAboveComp(r,u,p,f);if(r.nullSuppression)t=E.getRangeComp("RangeAvg",m);else{var h=E.getRangeComp("RangeSum",m),g=function(e,t){var n=E.getRowNoComp(e,t);if(!E.isFullRange(e)){var r=e.steps,o="number"!=typeof r||Number.isNaN(r)?6:r;return"RangeMin(".concat(o,", ").concat(n,")")}return n}(r,u);t="".concat(h," / ").concat(g)}var b=t;if(E.needDimension({modifier:r,properties:o,layout:a})){var v=E.getDimComp(c,1),y=E.getDimComp(c,0),x=E.getAggrComp(b,v,y);b=r.showExcludedValues?E.getExcludedComp({modifier:r,dimensions:c,dimensionAndFieldList:s,funcComp:"Only",valueComp:x}):x}return b},extractInputExpression:E.extractInputExpression,initModifier:function(e){E.initModifier(e,B)},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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(H(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(H(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(H(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(H(t,e),".steps")},type:"integer",translation:t.rangeSteps||"properties.modifier.range.steps",schemaIgnore:!0,defaultValue:6,change:function(t){var n=$(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=$(t,e);return n&&!n.fullRange}},showExcludedValues:{refFn:function(t){return"".concat(H(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0},nullSuppression:{refFn:function(t){return"".concat(H(t,e),".nullSuppression")},type:"boolean",translation:t.showNull||"properties.dimensions.showNull",schemaIgnore:!0,defaultValue:!1,inverted:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(j))return!1;var i=$(t,e);return i&&!i.disabled}};return n}};var U="timeSeriesDecomposition";function V(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===U)return n[r]}function G(e,t){var n=function(e,t){var n=i(e,t);if(!n)return-1;for(var r=0;r<n.length;r++)if(n[r].type===U)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:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties;return n?E.generateTSDExpression(n,t,r):t},extractInputExpression:E.extractInputExpression,initModifier:function(e,t){E.initModifier(e,Y),""===e.decomposition&&t&&(e.decomposition=E.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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{decomposition:{refFn:function(t){return"".concat(G(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(G(t,e),".steps")},type:"integer",translation:t.modifierTimeSeriesDecompositionPeriods||"properties.modifier.timeSeriesDecomposition.periods",schemaIgnore:!0,defaultValue:2,change:function(t,n){var r=V(t,e);if(r){var o=r.steps;r.steps="number"!=typeof o||Number.isNaN(o)?2:Math.abs(o),n.properties.qHyperCubeDef.qMeasures=n.properties.qHyperCubeDef.qMeasures.map((function(e){return e.qDef.modifiers.map((function(e){return"timeSeriesDecomposition"===e.type?e.steps=o:e.steps=e.steps,e})),e}))}},show:function(t){var n=V(t,e);return n&&!n.fullRange}}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(U))return!1;var i=V(t,e);return i&&!i.disabled}};return n}};var X="difference";function J(e,t){var n=i(e,t);if(n)for(var r=0;r<n.length;r++)if(n[r].type===X)return n[r]}function Q(e,t){var n=function(e,t){var n=i(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 Z={type:"difference",disabled:!1,primaryDimension:0,crossAllDimensions:!1,showExcludedValues:!0,outputExpression:""};const ee={translationKey:"properties.modifier.difference",needDimension:E.needDimension,isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=E.getAboveComp(n,s,c),p="".concat(c," - ").concat(d);if(E.needDimension({modifier:n,properties:r,layout:o})){var f=E.getDimComp(u,1),m=E.getDimComp(u,0),h=E.getAggrComp(p,f,m);p=n.showExcludedValues?E.getExcludedComp({modifier:n,dimensions:u,dimensionAndFieldList:l,funcComp:"Only",valueComp:h}):h}return p},initModifier:function(e){Object.keys(Z).forEach((function(t){void 0===e[t]&&(e[t]=Z[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!E.isApplicable({properties:t.properties})}},settings:{type:"items",items:{primaryDimension:{refFn:function(t){return"".concat(Q(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(Q(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(Q(t,e),".showExcludedValues")},type:"boolean",translation:t.showExcludedValues||"properties.modifier.showExcludedValues",schemaIgnore:!0,defaultValue:!0}},show:function(e,t){return E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(X))return!1;var i=J(t,e);return i&&!i.disabled}};return n}};var te="normalization";function ne(e,t){var n=i(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=i(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 oe(e,t){for(var n=0;n<e.length;n++)if(e[n].value===t)return n;return-1}var ie={type:"normalization",disabled:!1,primaryDimension:0,outputExpression:"",dimensionalScope:2,selectionScope:2};function ae(e){return 2===e?"{1}":""}function le(e,t,n){return 1===e?"{$<".concat(E.getFieldWithWrapper(t),"={'").concat(n,"'}>}"):""}function se(e,t){return 0===e&&t>1||2===e?"Total":""}function ue(e,t,n){return 0===e&&t>1?"<".concat(E.getDimDefWithWrapper(n),">"):""}const ce={translationKey:"properties.modifier.normalization",needDimension:function(){return!0},isApplicable:function(e){var t=e.properties,n=e.layout;return E.isApplicable({properties:t,layout:n,minDimensions:1,maxDimensions:2})},extractInputExpression:E.extractInputExpression,generateExpression:function(e){var t=e.expression,n=e.modifier,r=e.properties,o=e.layout,a=e.numDimensions,l=e.dimensionAndFieldList;if(!n)return t;var s=a;void 0===s&&(s=E.getNumDimensions({properties:r,layout:o}));var u=i(r,"qHyperCubeDef.qDimensions",[]),c=E.getExpressionWithExcludedComp({expression:t,modifier:n,dimensions:u,dimensionAndFieldList:l}),d=n.selectionScope,p=n.dimensionalScope;return function(e,t,n,r,o,i,a){var l=ae(t),s=le(t,n,r),u=""===l&&""===s?"":l||s,c=se(o,i),d=ue(o,i,a),p=function(e){for(var t=[],n=0;n<e;n++)t[n]=E.getDimDefWithWrapper(n);return t.join(", ")}(i);return"".concat(e,"/ Sum(").concat(u," ").concat(c).concat(d," Aggr(").concat(u," ").concat(e,", ").concat(p,"))")}(c,d,n.field,n.value,p,s,n.primaryDimension)},initModifier:function(e){Object.keys(ie).forEach((function(t){void 0===e[t]&&(e[t]=ie[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!E.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,n){if(1===e){var r=oe(t,0);t.splice(r,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 o=t.layout.qHyperCube.qDimensionInfo.length,i=[{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===o?"respectAllDimensions":"respectDimension"),tooltipTranslation:n.dimensionalScopeAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"respectAllDimensions":"respectDimension",".tooltip")},{value:2,translation:n.dimensionalScopeDisregardAllDimensions||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension"),tooltipTranslation:n.dimensionalScopeDisregardAllDimensionsTooltip||"properties.modifier.dimensionalScope.".concat(2===o?"disregardAllDimensions":"disregardDimension",".tooltip")}];return i=function(e,t,n){if(e<2){var r=oe(t,0);t.splice(r,1)}return t}(o,i),i=function(e,t,n){if(0===e){var r=oe(t,1);t.splice(r,1)}return t}(ne(e,r).selectionScope,i),i}(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 E.isApplicable({properties:t.properties})}}},show:function(t,n,r){var o=r.ext.support.modifiers;if(!Array.isArray(o)||-1===o.indexOf(te))return!1;var i=ne(t,e);return i&&!i.disabled}};return n},getDisregardSelectionComp:ae,getFieldSelectionComp:le,getTotalComp:se,getSelectedDimComp:ue};var de="qDef.base",pe="qDef.qDef",fe="qDef.base.qDef",me="qLibraryId",he="qDef.base.qLibraryId";const ge={getExpression:function(e){var t=i(e,fe);return void 0!==t?t:i(e,pe)},getExpressionRef:function(e){return void 0!==i(e,fe)?fe:pe},getLibraryIdRef:function(e){return i(e,he)?he:me},getLibraryId:function(e){return i(e,he)||i(e,me)},getLabelRef:function(e){return i(e,de)?"qDef.base.qLabel":"qDef.qLabel"},getLabelExpressionRef:function(e){return i(e,de)?"qDef.base.qLabelExpression":"qDef.qLabelExpression"}};var be="qDef.qDef",ve="qDef.base.qDef",ye="qLibraryId",xe="qDef.base.qLibraryId",Se="qDef.qLabel",Ee="qDef.qLabelExpression",we="qDef.base.qLabel",Ce="qDef.base.qLabelExpression",Re="qDef.qAggrFunc",ke="qDef.base.qAggrFunc",Ae={initBase:function(e,t){(t||Ae.isValid(e))&&(n(e,ve,i(e,be)),n(e,xe,i(e,ye)),n(e,we,i(e,Se)),n(e,Ce,i(e,Ee)))},restoreBase:function(e){Ae.isValid(e)&&(n(e,be,i(e,ve)),n(e,ye,i(e,xe)),n(e,Se,i(e,we)),n(e,Ee,i(e,Ce)),i(e,Re)&&i(e,ke)&&n(e,Re,i(e,ke)),delete e.qDef.base)},isValid:function(e){var t=i(e,ve),n=i(e,xe);return void 0!==t||void 0!==n}};const Pe=Ae;function Le(e){return Le="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},Le(e)}var Ie={accumulation:F,movingAverage:W,difference:ee,normalization:ce,timeSeriesDecomposition:K};const Me={modifiers:Ie,apply:Te,applyModifiers:_e,cleanUpMeasure:Oe,destroy:function(e){e&&De[e.id]&&De[e.id].masterItemSubscriber&&(De[e.id].masterItemSubscriber&&De[e.id].masterItemSubscriber.unsubscribe(),delete De[e.id])},hasActiveModifiers:Ne,getActiveModifier:qe,initBase:Pe.initBase,isSupportedModifiers:function(e){return Array.isArray(e)&&e.some((function(e){return Ie[e]}))},isApplicableSupportedModifiers:function(e){var t=e.modifierTypes,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return Ie[e]&&Ie[e].isApplicable({properties:n,layout:r})}))},measureBase:ge,limitedSorting:function(e){var t=e.measures,n=e.properties,r=e.layout,o=!1,i=!1;return t.forEach((function(e){var t=je(e);Ge({modifiers:t,properties:n,layout:r})&&(o=!0,i=i||Qe({modifiers:t,properties:n,layout:r}))})),o&&!i},ifEnableTotalsFunction:ze};var De={};function Te(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.model,r=e.properties,o=e.isSnapshot,a=void 0!==o&&o,l=e.masterItem,s=!1;De[n.id]=De[n.id]||{isFirstTime:!0};var u=De[n.id].isFirstTime;if(De[n.id].isFirstTime=!1,r&&"object"===Le(r))return _e({model:n,properties:r});var c=n?n.layout:void 0,d=i(c,"qSelectionInfo.qInSelections");if(a||d)return Promise.resolve(s);var p=i(c,"qHyperCube.qMeasureInfo"),f=De[n.id].lastReloadTime;if(De[n.id].lastReloadTime=i(n,"app.layout.qLastReloadTime"),Ne({measures:p,layout:c})){var m=function(e){var t=e.measures,n=e.layout,r=e.model,o=e.lastReloadTime;return i(r,"app.layout.qLastReloadTime")!==o&&function(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ve({measure:e,properties:n,layout:r})}))}({measures:t,layout:n})}({measures:p,layout:c,model:n,lastReloadTime:f});return m||function(e){var t=e.measures,n=e.layout,r=e.masterItem,o=e.isFirstTime;return!!Array.isArray(t)&&(o||r||t.some((function(e){return function(e){var t=e.measure,n=e.layout;return Ge({modifiers:je(t),layout:n})?!t.base:!!t.base}({measure:e,layout:n})})))}({measures:p,layout:c,masterItem:l,isFirstTime:u})?n.getEffectiveProperties().then((function(e){var r=t()(!0,{},e);He(r);var o=Ze(r);return Ye({model:n}).then((function(t){return Ke({libraryIds:o,model:n}).then((function(o){return m&&function(e){var t=e.properties;Fe(t).forEach((function(e){return function(e){var t=e.measure;if(Ve({measure:t,properties:e.properties})){var n=0,r=t.qDef.modifiers;Array.isArray(r)&&r.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(n++,"object"!==Le(Ie[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=Ie[e.type].extractInputExpression({outputExpression:t.qDef.qDef,modifier:e});void 0!==r&&We(t)&&E.simplifyExpression(t.qDef.base.qDef)!==E.simplifyExpression(r)&&(t.qDef.base.qDef=r)}}))}}({measure:e,properties:t})}))}({properties:r}),_e({model:n,oldProperties:e,properties:r,runUpdateIfChange:!0,masterItem:l,libraryItemsProps:o,dimensionAndFieldList:t})}))}))})):Promise.resolve(s)}return function(e){return!!Array.isArray(e)&&e.some((function(e){return"object"===Le(e.base)}))}(p)?n.getEffectiveProperties().then((function(e){return function(e){var n=e.model,r=e.properties,o=Ze(r);return et({model:n,libraryIds:o}).then((function(){var e=t()(!0,{},r);return Fe(r).forEach((function(e){return Oe(e)})),Je({oldProperties:e,newProperties:r,model:n})}))}({model:n,properties:e})})):Promise.resolve(s)}function _e(e){var n=e.model,r=e.oldProperties,o=e.properties,a=e.measures,l=e.runUpdateIfChange,s=void 0!==l&&l,u=e.masterItem,c=e.libraryItemsProps,d=e.dimensionAndFieldList;void 0===r&&(r=s?t()(!0,{},o):o),He(o);var p=Ze(o);return et({model:n,libraryIds:p,masterItem:u}).then((function(){return function(e){var n=e.measures,r=e.properties,o=e.model,a=e.libraryItemsProps,l=e.dimensionAndFieldList;if(n||(n=Fe(r)),!n.length)return Promise.resolve();if(!Ne({measures:n,properties:r}))return n.forEach((function(e){return Oe(e)})),Promise.resolve();var s=a?void 0:Ze(r);return Ye({model:o,dimensionAndFieldList:l}).then((function(e){return Ke({libraryIds:s,model:o,libraryItemsProps:a}).then((function(o){n.forEach((function(n){Ge({modifiers:n.qDef.modifiers,properties:r})?(function(e){var n=e.measure,r=e.properties,o=e.libraryItemsProps,a=e.dimensionAndFieldList,l=0;Pe.isValid(n)||Pe.initBase(n,!0);var s=n.qDef,u=s.modifiers,c=s.base;Array.isArray(u)&&u.forEach((function(e){if("object"===Le(e)&&!e.disabled){if(l++,"object"!==Le(Ie[e.type]))throw new Error('Modifier "'.concat(e.type,'" is not available'));if(l>1)throw new Error("More than 1 modifier on a measure! (not yet supported)");Ie[e.type].initModifier(e,n);var s=n.qLibraryId||c&&c.qLibraryId;s?function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList,a=e.libraryItemsProps[e.libraryId],l=a.qMeasure.qDef,s=""===l?l:Ie[r.type].generateExpression({expression:l,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=s,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:s,properties:r,libraryItemsProps:o,dimensionAndFieldList:a}):function(e){var n=e.measure,r=e.modifier,o=e.properties,i=e.dimensionAndFieldList;"function"==typeof Ie[r.type].updateModifier&&Ie[r.type].updateModifier(r,o.qHyperCubeDef);var a=ge.getExpression(n),l=""===a?a:Ie[r.type].generateExpression({expression:a,modifier:r,properties:o,dimensionAndFieldList:i});r.outputExpression=l,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=i(e,"qDef.qAggrFunc");"Expr"!==t||ze(e)?"None"!==t?delete e.qDef.base.qAggrFunc:"None"===t&&ze(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:o,dimensionAndFieldList:e}),Be(n)):Oe(n)}))}))}))}({measures:a,properties:o,model:n,libraryItemsProps:c,dimensionAndFieldList:d}).then((function(){return s?Je({oldProperties:r,newProperties:o,model:n}):Promise.resolve(!1)}))}))}function Oe(e){!function(e){var t=je(e);return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&!Ie[e.type]}))}(e)?Pe.restoreBase(e):delete e.qDef.base,e.qDef.coloring&&delete e.qDef.coloring,Be(e)}function Ne(e){var t=e.measures,n=e.properties,r=e.layout;return!!Array.isArray(t)&&t.some((function(e){return Ge({modifiers:je(e),properties:n,layout:r})}))}function qe(e){var t=je(e);if(Array.isArray(t))for(var n=0;n<t.length;n++){var r=t[n];if(Ie[r.type]&&!r.disabled)return r}}function ze(e){var t=qe(e);return!t||Ie[t.type].enableTotalsFunction(e)}function Fe(e){return i(e,"qHyperCubeDef.qMeasures",[]).concat(i(e,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures",[]))}function je(e){return e.modifiers||e.qDef&&e.qDef.modifiers}function $e(e){return i(e,"outputExpression.qValueExpression.qExpr")||i(e,"outputExpression")}function He(e){Fe(e).forEach((function(e){return function(e){var n=qe(e);n&&(void 0!==n.outputExpression&&$e(n)!==e.qDef.qDef?delete e.qDef.base:!Pe.isValid(e)&&n.base&&(e.qDef.base=t()(!0,{},n.base)))}(e)}))}function Be(e){var t=je(e);Array.isArray(t)&&t.forEach((function(t){"object"===Le(t)&&(t.disabled||!Ie[t.type]&&$e(t)!==e.qDef.qDef)&&(t.disabled=!0,delete t.base)}))}function We(e){return e.base||e.qDef&&e.qDef.base}function Ue(e){var t=We(e);return e.qLibraryId||t&&t.qLibraryId}function Ve(e){var t=e.measure,n=e.properties,r=e.layout;return!Ue(t)&&Ge({modifiers:je(t),properties:n,layout:r})}function Ge(e){var t=e.modifiers,n=e.properties,r=e.layout,o={};return Array.isArray(t)&&t.some((function(e){return!("object"!==Le(e)||e.disabled||!Ie[e.type])&&(void 0===o[e.type]&&(o[e.type]=Ie[e.type].isApplicable({properties:n,layout:r})),o[e.type])}))}function Ye(e){var t=e.model,n=e.dimensionAndFieldList;if(n)return Promise.resolve(n);var r=[],o={},i=t.app.getDimensionList().then((function(e){o.dimensionList=e}));r.push(i);var a=t.app.getFieldList().then((function(e){o.fieldList=e}));return r.push(a),Promise.all(r).then((function(){return o}))}function Ke(e){var t=e.libraryIds,n=e.model,r=e.libraryItemsProps;if(r)return Promise.resolve(r);var o=t.measureLibraryIds,i=t.dimensionLibraryIds,a={},l=[];return o.forEach((function(e){var t=n.app.getMeasure(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),i.forEach((function(e){var t=n.app.getDimension(e).then((function(t){return t.getProperties().then((function(t){a[e]=t}))}));l.push(t)})),Promise.all(l).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,o=JSON.stringify(i(t,"qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qMeasures"),Xe)||JSON.stringify(i(t,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe)!==JSON.stringify(i(n,"qHyperCubeDef.qLayoutExclude.qHyperCubeDef.qMeasures"),Xe);return o?function(e){var t=e.model,n=e.oldProperties,r=e.newProperties,o=t.layout;return o&&!o.qHasSoftPatches&&!o.qExtendsId&&i(o,"qMeta.privileges",[]).indexOf("update")>-1?t.setProperties(r):_(t,n,r)}({model:r,oldProperties:t,newProperties:n}).then((function(){return o})):Promise.resolve(o)}function Qe(e){var t=e.modifiers,n=e.properties,r=e.layout;return Array.isArray(t)&&t.some((function(e){return"object"===Le(e)&&!e.disabled&&Ie[e.type]&&Ie[e.type].needDimension({modifier:e,properties:n,layout:r})}))}function Ze(e){var t=Fe(e),n=[],r=[],o=!1;return t.forEach((function(t){var r=je(t);if(Ge({modifiers:r,properties:e})){var i=Ue(t);i&&n.push(i),o=o||Qe({modifiers:r,properties:e})}})),i(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)?(De[t.id].masterItemSubscriber=De[t.id].masterItemSubscriber||function(e){var t=e.model,n=e.callback,r={},o={},a={},l={dimension:["qDim.qFieldDefs"],measure:["qMeasure.qDef","qMeasure.qLabel","qMeasure.qLabelExpression","qMeasure.coloring","qMeasure.qNumFormat","qMeasure.isCustomFormatted"]};function s(e){var t={},n=i(e,"qInfo.qType");return n&&l[n]&&l[n].forEach((function(n){t[n]=i(e,n)})),JSON.stringify(t)}function u(e){var t=e.qInfo.qId;if(r[t]){var o=s(e);r[t].properties!==o&&(r[t].properties=o,"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:s(t.layout)}}))}return{subscribe:function(e){var n=e.measureLibraryIds,i=e.dimensionLibraryIds,l=[];return function(e){var t=e.dimensionLibraryIds;o={},e.measureLibraryIds.forEach((function(e){o[e]=!0})),a={},t.forEach((function(e){a[e]=!0}))}({measureLibraryIds:n,dimensionLibraryIds:i}),Object.keys(r).forEach((function(e){o[e]||a[e]||(r[e].listener.dispose(),delete r[e])})),t.app&&(Object.keys(o).forEach((function(e){o[e]&&!r[e]&&l.push(c(e,"getMeasure"))})),Object.keys(a).forEach((function(e){a[e]&&!r[e]&&l.push(c(e,"getDimension"))}))),Promise.all(l)},unsubscribe:function(){Object.keys(r).forEach((function(e){r[e].listener.dispose()})),r={}}}}({model:t,callback:function(e){return Te({model:t,masterItem:e}).then((function(){return t.app.clearUndoBuffer()}))}}),De[t.id].masterItemSubscriber.subscribe(n)):Promise.resolve()}})(),e.default=o.default,Object.defineProperty(e,"__esModule",{value:!0})})()}(th);var nh=ht(th);const rh={textAlignAuto:{ref:"qDef.textAlign.auto",type:"boolean",component:"switch",translation:"Common.Text.TextAlignment",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},textAlign:{ref:"qDef.textAlign.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:e=>void 0!==e.qDef.textAlign&&!e.qDef.textAlign.auto}},oh={representationType:{ref:"qDef.representation.type",type:"string",component:"dropdown",translation:"Object.Table.Representation",options:[{value:"text",translation:"Object.Table.Representation.Text"},{value:"url",translation:"Object.Table.Representation.Link"}],defaultValue:"text"},representationUrlPosition:{uses:"dimensionRepresentationItems.representationUrlPosition"},representationUrlLabel:{uses:"dimensionRepresentationItems.representationUrlLabel"},representationLinkUrl:{uses:"dimensionRepresentationItems.representationLinkUrl"}},ih=e=>{var t,n,r,o;return{type:"items",grouped:!0,items:{totalsAggrGroup:{type:"items",items:{totalsAggrFunc:{type:"string",component:"dropdown",ref:"qDef.qAggrFunc",translation:"Object.Table.AggrFunc",options:(e,t)=>(!nh.hasActiveModifiers({measures:[e],properties:t.properties})||nh.ifEnableTotalsFunction(e)?[{value:"Expr",translation:"Common.Auto"}]:[]).concat([{value:"Avg",translation:"Object.Table.AggrFunc.Avg"},{value:"Count",translation:"Object.Table.AggrFunc.Count"},{value:"Max",translation:"Object.Table.AggrFunc.Max"},{value:"Min",translation:"Object.Table.AggrFunc.Min"},{value:"Sum",translation:"Object.Table.AggrFunc.Sum"},{value:"None",translation:"Object.Table.AggrFunc.None"}]),defaultValue:null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals")?"None":"Expr"}}}},show:!(null!=e&&null!==(r=e.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&null!==(o=r.isUnsupportedFeature)&&void 0!==o&&o.call(r,"totals"))}},ah={type:{type:"string",component:"dropdown",ref:"qDef.columnWidth.type",translation:"Object.Table.Column.Width",options:[{value:jm.Auto,translation:"Common.Auto"},{value:jm.FitToContent,translation:"Object.Table.Column.FitToContent"},{value:jm.Pixels,translation:"Object.Table.Column.Pixels"},{value:jm.Percentage,translation:"Object.Table.Column.Percentage"}],defaultValue:jm.Auto},sizePixels:{ref:"qDef.columnWidth.pixels",translation:"Object.Table.Column.Pixels",type:"number",expression:"optional",defaultValue:200,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===jm.Pixels},change(e){e.qDef.columnWidth.pixels=void 0===e.qDef.columnWidth.pixels?e.qDef.columnWidth.pixels:Math.max(1,Math.min(Fm.PixelsMax,e.qDef.columnWidth.pixels))}},sizePercentage:{ref:"qDef.columnWidth.percentage",translation:"Object.Table.Column.Percentage",type:"number",expression:"optional",defaultValue:20,show:e=>{var t;return(null===(t=e.qDef.columnWidth)||void 0===t?void 0:t.type)===jm.Percentage},change(e){e.qDef.columnWidth.percentage=void 0===e.qDef.columnWidth.percentage?e.qDef.columnWidth.percentage:Math.max(1,Math.min(Fm.PercentageMax,e.qDef.columnWidth.percentage))}}},lh={autoSort:{ref:"qDef.autoSort",type:"boolean",defaultValue:!0,show:!1},visibilityCondition:{type:"string",component:"expression",ref:"qCalcCondition.qCond",expression:"optional",expressionType:"ValueExpr",translation:"Object.Table.Columns.VisibilityCondition",defaultValue:{qv:""},tid:"visibilityCondition",isExpression:e=>"string"==typeof e&&e.trim().length>0},tableCellColoring:{component:"attribute-expression-reference",defaultValue:[],ref:"qAttributeExpressions",items:[{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.BackgroundExpression",defaultValue:"",id:"cellBackgroundColor",tid:"tableColorBgByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",translation:"Object.Table.Measure.ForegroundExpression",defaultValue:"",id:"cellForegroundColor",tid:"tableColorByExpression"},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"urlLabel",tid:"URLLabelByExpression",show:!1},{component:"expression",ref:"qExpression",expressionType:"measure",defaultValue:"",id:"url",tid:"URLByExpression",show:!1}]},...rh,...ah},sh={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},nullSuppression:{type:"boolean",ref:"qNullSuppression",defaultValue:!1,translation:"properties.dimensions.showNull",inverted:!0},createMasterItemButton:{},divider:{uses:"divider"},dimensionLimits:{uses:"dimensions.items.dimensionLimits"},showOthers:{uses:"dimensions.items.others"}},uh=e=>({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},numberFormatting:{uses:"measures.items.numberFormatting"},createMasterItemButton:{},divider:{uses:"divider"},totalsAggr:ih(e)}),ch=e=>({type:"items",translation:"Common.Data",component:"data-assets-panel",items:{dimensions:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qDimensions",items:{field:{type:"items",translation:"Common.Field",items:sh},presentation:{type:"items",translation:"properties.presentation",items:{...lh,...e.flags.isEnabled("CLIENT_IM_5715_LINKS")?oh:void 0}}}},measures:{type:"array",component:"expandable-items",ref:"qHyperCubeDef.qMeasures",items:{field:{type:"items",translation:"Common.Field",items:uh(e)},presentation:{type:"items",translation:"properties.presentation",items:lh}}}}}),dh={type:"items",items:[{component:"styling-panel",chartTitle:"Object.StraightTable",subtitle:"LayerStyleEditor.component.styling",translation:"LayerStyleEditor.component.styling",ref:"components",useGeneral:!0,defaultValue:[],items:{headerSection:{translation:"properties.Header",component:"panel-section",items:{headerFontItem:{component:"items",ref:"components",key:"theme",items:{headerFontWrapper:{component:"inline-wrapper",items:{headerFontSize:{component:"integer",ref:"header.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.header.fontSize=e.header.fontSize?Math.max(5,Math.min(300,Math.floor(e.header.fontSize))):e.header.fontSize}},headerFontColor:{show:!0,ref:"header.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.header)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},contentSection:{component:"panel-section",translation:"properties.Content",items:{contentFontItem:{component:"items",ref:"components",key:"theme",items:{contentFontWrapper:{component:"inline-wrapper",items:{contentFontSize:{component:"integer",ref:"content.fontSize",translation:"properties.fontSize",width:9,min:5,max:300,defaultValue(e,t,n){var r,o;const i=n.theme.current();return parseInt(null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.fontSize)&&void 0!==r?r:i.fontSize,10)},change(e){e.content.fontSize=e.content.fontSize?Math.max(5,Math.min(300,Math.floor(e.content.fontSize))):e.content.fontSize}},contentFontColor:{ref:"content.fontColor",type:"object",component:"color-picker",defaultValue(e,t,n){var r,o;const i=n.theme.current();return{color:null!==(r=null===(o=i.object)||void 0===o||null===(o=o.straightTableV2)||void 0===o||null===(o=o.content)||void 0===o?void 0:o.color)&&void 0!==r?r:i.color}},dualOutput:!0}}}}}}},hoverEffectSection:{translation:"properties.RowHover",component:"panel-section",items:{hoverEffectItem:{component:"items",ref:"components",key:"theme",items:{hoverEffectSwitch:{ref:"content.hoverEffect",translation:"ThemeStyleEditor.style.hoverEffect",type:"boolean",component:"switch",options:[{value:!0,translation:"properties.on"},{value:!1,translation:"properties.off"}],defaultValue:!1},hoverEffectColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverColor",translation:"ThemeStyleEditor.style.hoverStyle",type:"object",component:"color-picker",dualOutput:!0},hoverEffectFontColorItem:{show(e){var t;return null==e||null===(t=e.content)||void 0===t?void 0:t.hoverEffect},ref:"content.hoverFontColor",translation:"ThemeStyleEditor.style.hoverFontStyle",type:"object",component:"color-picker",dualOutput:!0}}}}}}}]},ph=e=>{var t,n;return{type:"items",items:[{ref:"totals.show",type:"boolean",translation:"properties.totals",component:"switch",options:[{value:!0,translation:"Common.Auto"},{value:!1,translation:"Common.Custom"}],defaultValue:!0},{ref:"totals.position",translation:"Common.Position",type:"string",component:"dropdown",options:[{value:"noTotals",translation:"Common.None"},{value:"top",translation:"Common.Top"},{value:"bottom",translation:"Common.Bottom"}],defaultValue:"noTotals",show:e=>!e.totals.show},{ref:"totals.label",translation:"properties.totals.label",type:"string",expression:"optional",defaultValue:()=>e.translator.get("Object.Table.Totals")}],show:!(null!=e&&null!==(t=e.anything)&&void 0!==t&&null!==(t=t.sense)&&void 0!==t&&null!==(n=t.isUnsupportedFeature)&&void 0!==n&&n.call(t,"totals"))}},fh={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}},mh=e=>({uses:"settings",items:{presentation:{grouped:!0,type:"items",translation:"properties.presentation",items:[dh,ph(e),{ref:"usePagination",translation:"properties.usePagination",type:"boolean",component:"checkbox",defaultValue:!1}]},...fh}}),hh={uses:"sorting"},gh={type:"items",component:"expandable-items",translation:"properties.addons",items:{dataHandling:{uses:"dataHandling",items:{calcCond:{uses:"calcCond"}}}}},bh=e=>({type:"items",component:"accordion",items:{data:ch(e),sorting:hh,addOns:gh,settings:mh(e)}});function vh(e){return{definition:bh(e),exploration:Km,data:eh(e),support:{export:!0,exportData:!0,snapshot:!0,viewData:!1,exploration:!0,cssScaling:!0},importProperties(e,t,n,r){const o={defaultDimension:n.getDefaultDimensionProperties(),defaultMeasure:n.getDefaultMeasureProperties()};return Ym({exportFormat:e,initialProperties:t,extension:n,hypercubePath:r,defaultPropertyValues:o})},exportProperties:(e,t)=>Vm({propertyTree:e,hyperCubePath:t})}}const yh=async e=>{var t;const n=null===(t=e.querySelector(".sn-table-cell-text"))||void 0===t?void 0:t.textContent;try{n&&await navigator.clipboard.writeText(String(n))}catch(e){console.log(e)}};const xh=(t,n)=>e.useMemo((()=>((e,t)=>(n,{isDim:r,colIdx:o})=>{const i=r?o:o-e.qDimensionInfo.length,a=`/qHyperCubeDef/${r?"qDimensions":"qMeasures"}/${i}/qDef/columnWidth`,l=e[r?"qDimensionInfo":"qMeasureInfo"][i].columnWidth,s=l?{qPath:a,qOp:"Replace",qValue:JSON.stringify({...l,...n})}:{qPath:a,qOp:"Add",qValue:JSON.stringify(n)};null==t||t.applyPatches([s],!0)})(t,n)),[t,n]);let Sh;const Eh=new Uint8Array(16);function wh(){if(!Sh&&(Sh="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Sh))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Sh(Eh)}const Ch=[];for(let e=0;e<256;++e)Ch.push((e+256).toString(16).slice(1));var Rh={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function kh(e,t,n){if(Rh.randomUUID&&!t&&!e)return Rh.randomUUID();const r=(e=e||{}).random||(e.rng||wh)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=r[e];return t}return function(e,t=0){return Ch[e[t+0]]+Ch[e[t+1]]+Ch[e[t+2]]+Ch[e[t+3]]+"-"+Ch[e[t+4]]+Ch[e[t+5]]+"-"+Ch[e[t+6]]+Ch[e[t+7]]+"-"+Ch[e[t+8]]+Ch[e[t+9]]+"-"+Ch[e[t+10]]+Ch[e[t+11]]+Ch[e[t+12]]+Ch[e[t+13]]+Ch[e[t+14]]+Ch[e[t+15]]}(r)}const Ah=({qLibraryId:e,cId:t})=>{var n,r,o,i;return null!==(n=null!=e?e:t)&&void 0!==n?n:null!==(r=null===(o=crypto)||void 0===o||null===(i=o.randomUUID)||void 0===i?void 0:i.call(o))&&void 0!==r?r:kh()};function Ph(e){return Ph="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},Ph(e)}function Lh(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ih(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,(o=r.key,i=void 0,"symbol"==typeof(i=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"))?i:String(i)),r)}var o,i}function Mh(e,t,n){return t&&Ih(e.prototype,t),n&&Ih(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Dh(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_h(e,t)}function Th(e){return Th=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Th(e)}function _h(e,t){return _h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},_h(e,t)}function Oh(e,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function Nh(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=Th(e);if(t){var o=Th(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return Oh(this,n)}}function qh(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,o,i,a,l=[],s=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){u=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return l}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return zh(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return zh(e,t)}(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.")}()}function zh(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}var Fh={fromSearchString:function(e){if(!e)return[];"?"===e[0]&&(e=e.substr(1));var t=[];return e.split("&").forEach((function(e){if(e){var n,r=e.indexOf("="),o="",i=!1;-1===r?n=e:(n=e.slice(0,r),o=e.slice(r+1),i=!0),t.push(function(e,t,n){return{key:jh(e),value:jh(t),useEqualSign:n}}(n,o,i))}})),t}};function jh(e){try{return decodeURIComponent(e)}catch(t){return e}}function $h(e){if(!(this instanceof $h))throw new Error("Url needs to be called with the new keyword");if(!e)throw new Error("Url needs a string to operate on");var t=function(e){var t={authorityAndPath:"",search:"",hash:""},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:function(){return Fh.fromSearchString(t.search)}}})}function Hh(e){return encodeURIComponent(e).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}$h.encodeAuthorityAndPath=function(e){return encodeURI(e).replace(/%5B/gi,"[").replace(/%5D/gi,"]").replace(/%25/gi,"%")},$h.encodeSearchParams=function(e){for(var t,n="",r=0;r<e.length;r++)n+=0===r?"?":"&",n+=Hh((t=e[r]).key),t.value?n+="=".concat(Hh(t.value)):n+=t.useEqualSign?"=":"";return n};var Bh,Wh=function(){function e(t){Lh(this,e),this._input=t,this._pushback=null,this._temp=null,this._index=0,this._mark=0}return Mh(e,[{key:"_hasNext",value:function(){return null!=this._input&&(0!==this._input.length&&this._index<this._input.length)}},{key:"pushback",value:function(e){this._pushback=e}},{key:"index",value:function(){return this._index}},{key:"hasNext",value:function(){return null!=this._pushback||this._hasNext()}},{key:"next",value:function(){if(null!=this._pushback){var e=this._pushback;return this._pushback=null,e}return this._hasNext()?this._input.charAt(this._index++):null}},{key:"nextHex",value:function(){var e=this.next();return null==e?null:e.match(/[0-9A-Fa-f]/)?e:null}},{key:"peek",value:function(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}},{key:"mark",value:function(){this._temp=this._pushback,this._mark=this._index}},{key:"reset",value:function(){this._pushback=this._temp,this._index=this._mark}},{key:"remainder",value:function(){var e=this._input.substr(this._index);return null!=this._pushback&&(e=this._pushback+e),e}}]),e}(),Uh=function(){function e(){Lh(this,e)}return Mh(e,[{key:"decode",value:function(e){for(var t,n="",r=new Wh(e);r.hasNext();)n+=null!=(t=this.decodeCharacter(r))?t:r.next();return n}},{key:"decodeCharacter",value:function(e){return e.next()}}]),e}(),Vh=function(e){return e>=0&&e<=1114111},Gh=function(e){return e.match(/[\s]/)},Yh=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o=e.next();if(null==o||"\\"!==o)return e.reset(),null;var i=e.next();if(null==i)return e.reset(),null;switch(i){case"\r":e.peek("\n")&&e.next();case"\n":case"\f":case"\0":return this.decodeCharacter(e)}if("NaN"===parseInt(i,16))return i;for(t=i,n=0;n<5&&(null!=(r=e.next())&&!Gh(r));n++){if("NaN"===parseInt(r,16)){e.pushback(r);break}t+=r}var a=parseInt(t,16);return Vh(a)?String.fromCharCode(a):"�"}}]),n}(Uh),Kh=function(){function e(t,n){Lh(this,e),this._key=t,this._value=n}return Mh(e,[{key:"getKey",value:function(){return this._key}},{key:"getValue",value:function(){return this._value}},{key:"equals",value:function(t){return t instanceof e&&(this._key===t._key&&this._value===t._value)}}],[{key:"newInstanceIfNeeded",value:function(){var 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}}]),e}(),Xh=function(){function e(){Lh(this,e)}return Mh(e,[{key:"setValue",value:function(e){this._nextMap=null,this._value=e}},{key:"getNextNode",value:function(e){return this._nextMap?this._nextMap[e]:null}},{key:"put",value:function(t,n,r){var o,i;if(t.length===n)return i=this._value,this.setValue(r),i;var a=t.charAt(n);return this._nextMap?(o=this._nextMap[a])||(o=new e,this._nextMap[a]=o):(this._nextMap={},o=new e,this._nextMap[a]=o),o.put(t,n+1,r)}},{key:"get",value:function(e,t){if(e.length<=t)return this._value;var n=this.getNextNode(e.charAt(t));return n?n.get(e,t+1):null}},{key:"getLongestMatch",value:function(e,t){if(e.length<=t)return Kh.newInstanceIfNeeded(e,this._value);var n=this.getNextNode(e.charAt(t));if(!n)return Kh.newInstanceIfNeeded(e,t,this._value);var r=n.getLongestMatch(e,t+1);return r||Kh.newInstanceIfNeeded(e,t,this._value)}}]),e}(),Jh=function(){function e(){Lh(this,e),this.clear()}return Mh(e,[{key:"getLongestMatch",value:function(e){return this.root&&e?this.root.getLongestMatch(e,0):null}},{key:"getMaxKeyLength",value:function(){return this.maxKeyLen}},{key:"clear",value:function(){this.root=null,this.maxKeyLen=0,this.size=0}},{key:"put",value:function(e,t){this.root||(this.root=new Xh);var n=this.root.put(e,0,t);return n||(e.length>this.maxKeyLen&&(this.maxKeyLen=e.length),this.size++,null)}}]),e}(),Qh=function(){var e,t,n,r=[],o=[],i=new Jh;for(e in r["""]="34",r["&"]="38",r["<"]="60",r[">"]="62",r[" "]="160",r["¡"]="161",r["¢"]="162",r["£"]="163",r["¤"]="164",r["¥"]="165",r["¦"]="166",r["§"]="167",r["¨"]="168",r["©"]="169",r["ª"]="170",r["«"]="171",r["¬"]="172",r["­"]="173",r["®"]="174",r["¯"]="175",r["°"]="176",r["±"]="177",r["²"]="178",r["³"]="179",r["´"]="180",r["µ"]="181",r["¶"]="182",r["·"]="183",r["¸"]="184",r["¹"]="185",r["º"]="186",r["»"]="187",r["¼"]="188",r["½"]="189",r["¾"]="190",r["¿"]="191",r["À"]="192",r["Á"]="193",r["Â"]="194",r["Ã"]="195",r["Ä"]="196",r["Å"]="197",r["Æ"]="198",r["Ç"]="199",r["È"]="200",r["É"]="201",r["Ê"]="202",r["Ë"]="203",r["Ì"]="204",r["Í"]="205",r["Î"]="206",r["Ï"]="207",r["Ð"]="208",r["Ñ"]="209",r["Ò"]="210",r["Ó"]="211",r["Ô"]="212",r["Õ"]="213",r["Ö"]="214",r["×"]="215",r["Ø"]="216",r["Ù"]="217",r["Ú"]="218",r["Û"]="219",r["Ü"]="220",r["Ý"]="221",r["Þ"]="222",r["ß"]="223",r["à"]="224",r["á"]="225",r["â"]="226",r["ã"]="227",r["ä"]="228",r["å"]="229",r["æ"]="230",r["ç"]="231",r["è"]="232",r["é"]="233",r["ê"]="234",r["ë"]="235",r["ì"]="236",r["í"]="237",r["î"]="238",r["ï"]="239",r["ð"]="240",r["ñ"]="241",r["ò"]="242",r["ó"]="243",r["ô"]="244",r["õ"]="245",r["ö"]="246",r["÷"]="247",r["ø"]="248",r["ù"]="249",r["ú"]="250",r["û"]="251",r["ü"]="252",r["ý"]="253",r["þ"]="254",r["ÿ"]="255",r["&OElig"]="338",r["&oelig"]="339",r["&Scaron"]="352",r["&scaron"]="353",r["&Yuml"]="376",r["&fnof"]="402",r["&circ"]="710",r["&tilde"]="732",r["&Alpha"]="913",r["&Beta"]="914",r["&Gamma"]="915",r["&Delta"]="916",r["&Epsilon"]="917",r["&Zeta"]="918",r["&Eta"]="919",r["&Theta"]="920",r["&Iota"]="921",r["&Kappa"]="922",r["&Lambda"]="923",r["&Mu"]="924",r["&Nu"]="925",r["&Xi"]="926",r["&Omicron"]="927",r["&Pi"]="928",r["&Rho"]="929",r["&Sigma"]="931",r["&Tau"]="932",r["&Upsilon"]="933",r["&Phi"]="934",r["&Chi"]="935",r["&Psi"]="936",r["&Omega"]="937",r["&alpha"]="945",r["&beta"]="946",r["&gamma"]="947",r["&delta"]="948",r["&epsilon"]="949",r["&zeta"]="950",r["&eta"]="951",r["&theta"]="952",r["&iota"]="953",r["&kappa"]="954",r["&lambda"]="955",r["&mu"]="956",r["&nu"]="957",r["&xi"]="958",r["&omicron"]="959",r["&pi"]="960",r["&rho"]="961",r["&sigmaf"]="962",r["&sigma"]="963",r["&tau"]="964",r["&upsilon"]="965",r["&phi"]="966",r["&chi"]="967",r["&psi"]="968",r["&omega"]="969",r["&thetasym"]="977",r["&upsih"]="978",r["&piv"]="982",r["&ensp"]="8194",r["&emsp"]="8195",r["&thinsp"]="8201",r["&zwnj"]="8204",r["&zwj"]="8205",r["&lrm"]="8206",r["&rlm"]="8207",r["&ndash"]="8211",r["&mdash"]="8212",r["&lsquo"]="8216",r["&rsquo"]="8217",r["&sbquo"]="8218",r["&ldquo"]="8220",r["&rdquo"]="8221",r["&bdquo"]="8222",r["&dagger"]="8224",r["&Dagger"]="8225",r["&bull"]="8226",r["&hellip"]="8230",r["&permil"]="8240",r["&prime"]="8242",r["&Prime"]="8243",r["&lsaquo"]="8249",r["&rsaquo"]="8250",r["&oline"]="8254",r["&frasl"]="8260",r["&euro"]="8364",r["&image"]="8365",r["&weierp"]="8472",r["&real"]="8476",r["&trade"]="8482",r["&alefsym"]="8501",r["&larr"]="8592",r["&uarr"]="8593",r["&rarr"]="8594",r["&darr"]="8595",r["&harr"]="8596",r["&crarr"]="8629",r["&lArr"]="8656",r["&uArr"]="8657",r["&rArr"]="8658",r["&dArr"]="8659",r["&hArr"]="8660",r["&forall"]="8704",r["&part"]="8706",r["&exist"]="8707",r["&empty"]="8709",r["&nabla"]="8711",r["&isin"]="8712",r["¬in"]="8713",r["&ni"]="8715",r["&prod"]="8719",r["&sum"]="8721",r["&minus"]="8722",r["&lowast"]="8727",r["&radic"]="8730",r["&prop"]="8733",r["&infin"]="8734",r["&ang"]="8736",r["&and"]="8743",r["&or"]="8744",r["&cap"]="8745",r["&cup"]="8746",r["&int"]="8747",r["&there4"]="8756",r["&sim"]="8764",r["&cong"]="8773",r["&asymp"]="8776",r["&ne"]="8800",r["&equiv"]="8801",r["&le"]="8804",r["&ge"]="8805",r["&sub"]="8834",r["&sup"]="8835",r["&nsub"]="8836",r["&sube"]="8838",r["&supe"]="8839",r["&oplus"]="8853",r["&otimes"]="8855",r["&perp"]="8869",r["&sdot"]="8901",r["&lceil"]="8968",r["&rceil"]="8969",r["&lfloor"]="8970",r["&rfloor"]="8971",r["&lang"]="9001",r["&rang"]="9002",r["&loz"]="9674",r["&spades"]="9824",r["&clubs"]="9827",r["&hearts"]="9829",r["&diams"]="9830",r)"function"!=typeof r[e]&&r.hasOwnProperty(e)&&(o[r[e]]=e);for(t in o)"function"!=typeof o[t]&&o.hasOwnProperty(t)&&(n=o[t].toLowerCase().substr(1),i.put(n,String.fromCharCode(t)));return i}(),Zh=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){var t;e.mark();var n=e.next();if(null==n||"&"!==n)return e.reset(),null;var r=e.next();if(null==r)return e.reset(),null;if("#"===r){if(null!=(t=this._getNumericEntity(e)))return t}else if(r.match(/[A-Za-z]/)&&(e.pushback(r),null!=(t=this._getNamedEntity(e))))return t;return e.reset(),null}},{key:"_getNamedEntity",value:function(e){var t,n,r,o="";for(t=Math.min(e.remainder().length,Qh.getMaxKeyLength()),r=0;r<t;r++)o+=e.next().toLowerCase();var i=Qh.getLongestMatch(o);if(null==i)return null;for(e.reset(),e.next(),t=i.getKey().length,n=0;n<t;n++)e.next();return e.peek(";")&&e.next(),i.getValue()}},{key:"_getNumericEntity",value:function(e){var t=e.peek();return null==t?null:"x"===t||"X"===t?(e.next(),this._parseHex(e)):this._parseNumber(e)}},{key:"_parseHex",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,16))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,16);return!Number.isNaN(+r)&&Vh(r)?String.fromCharCode(r):null}},{key:"_parseNumber",value:function(e){for(var t,n="";e.hasNext();){if(t=e.peek(),Number.isNaN(+parseInt(t,10))){if(";"===t){e.next();break}break}n+=t,e.next()}var r=parseInt(n,10);return!Number.isNaN(+r)&&Vh(r)?String.fromCharCode(r):null}}]),n}(Uh),eg=function(e){Dh(n,e);var t=Nh(n);function n(){return Lh(this,n),t.apply(this,arguments)}return Mh(n,[{key:"decodeCharacter",value:function(e){e.mark();var t,n,r,o,i=e.next();if(null==i)return e.reset(),null;if("%"!==i)return e.reset(),null;for(t="",n=0;n<2;n++)null!=(r=e.nextHex())&&(t+=r);return 2===t.length&&(o=parseInt(t,16),Vh(o))?String.fromCharCode(o):(e.reset(),null)}}]),n}(Uh),tg=/^data:(?<!\s)\s*(image\/[\w+-.]+)(?<!\s)\s*(;.*?){0,1}(?<!\s)\s*,(.*)/i;"undefined"!=typeof document&&(Bh=document.createElement("div"));var ng=Array.prototype.indexOf,rg=[",",".","_"," "],og={default:[",",".","-","_"," "]},ig={width:["%"],height:["%"]},ag={default:["-"," ","%"],color:["#"," ","(",")"],image:["(",")",":","/","?","&","-",".",'"',"="," "]},lg={background:["(",")",":","%","/","?","&","-"," ",".",'"',"=","#"],"background-image":ag.image,"background-color":ag.color,"border-color":ag.color,"border-image":ag.image,color:ag.color,icon:ag.image,"list-style-image":ag.image,"outline-color":ag.color},sg={attr_name:["on[a-z]{1,}","style","href","src"],attr_val:["javascript:"],css_key:["behavior","-moz-behavior","-ms-behavior"],css_val:["expression"]};function ug(e,t,n){var r;if(t){if(ng)return ng.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 cg(e){if(null==e)return"";var t,n=document.createTextNode(e);return Bh.appendChild(n),t=Bh.innerHTML,Bh.removeChild(n),t}function dg(e,t,n){var r,o,i,a,l,s,u,c,d;if(e=fg(e).toLowerCase(),t=fg(t),ug(e,sg.attr_name)>=0)throw new Error("Unsafe attribute name used: ".concat(e));for(i=0;i<sg.attr_val;i++)if(t.toLowerCase().match(sg.attr_val[i]))throw new Error("Unsafe attribute value used: ".concat(t));if((r=ig[e])||(r=og.default),o="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z\-0-9]/))throw new Error("Invalid attribute name specified");o+=l}o+='="'}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ug(u,r)<0?(d=c.toString(16),o+="&#x".concat(d,";")):o+=u;return n||(o+='"'),o}function pg(e,t,n){var r,o,i,a,l,s,u,c,d,p;if(e=fg(e).toLowerCase(),t=fg(t),ug(e,sg.css_key)>=0)throw new Error("Unsafe property name used: ".concat(e));for(r=0;r<sg.css_val.length;r++)if(t.toLowerCase().indexOf(sg.css_val[r])>=0)throw new Error("Unsafe property value used: ".concat(t));if((o=lg[e])||(o=ag.default),i="",!n){for(a=0;a<e.length;a++){if(!(l=e.charAt(a)).match(/[a-zA-Z-]/))throw new Error("Invalid Property Name specified");i+=l}i+=": "}for(s=0;s<t.length;s++)u=t.charAt(s),c=t.charCodeAt(s),!u.match(/[a-zA-Z0-9]/)&&ug(u,o)<0?(d=c.toString(16),p="000000".substr(d.length),i+="\\".concat(p).concat(d)):i+=u;return i}function fg(e,t){var n,r,o,i,a=!1;if(null===e)return null;n=e,r=e,o=0;for(var l=[new Zh,new eg,new Yh];!a;){r=n;for(var s=0;s<l.length;s++)(i=l[s].decode(n))!==n&&(o++,n=i);r!==n||(a=!0)}if(t&&o>1)throw new Error("Attack Detected - Multiple/Double Encodings used in input");return n}for(var mg=[],hg=0;hg<255;hg++)mg[hg]=hg>=48&&hg<=57||hg>=65&&hg<=90||hg>=97&&hg<=122?null:hg.toString(16);var gg=function(e){return cg(e.unsafe)},bg=function(e){var t,n=[],r=[],o={},i="";for(t in e.map?n=e.map:n[e.name]=e.unsafe,n)"function"!=typeof n[t]&&n.hasOwnProperty(t)&&(r[t]=pg(t,n[t],!0),i+=pg(t,n[t],!0),o[t]=r[t]);return e.map?o:i},vg=function(e){var t=[],n=[],r={},o="";for(var i in e.map?t=e.map:t[e.name]=e.unsafe,t)"function"!=typeof t[i]&&t.hasOwnProperty(i)&&(n[i]=dg(i,t[i],!0),o+=dg(i,t[i],!0),r[i]=n[i]);return e.map?r:o};function yg(e,t){throw new Error(t)}var xg={canonicalize:fg,encode:function(){var e={context:"html",unsafe:null,name:null,map:null,setter:null,strict:!0};return 1===arguments.length&&"object"===Ph(arguments[0])?function(){for(var e,t,n,r=arguments[0]||{},o=1,i=arguments.length;o<i;o++)if(null!=(e=arguments[o]))for(t in e)if(e.hasOwnProperty(t)){if(r===(n=e[t]))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?gg(e):"css"===e.context?(null!=e.map&&"object"!==Ph(e.map)&&yg(this,"Invalid parameter type"),bg(e)):"attr"===e.context?(null!=e.map&&"object"!==Ph(e.map)&&yg(this,"Invalid parameter type"),vg(e)):void yg(this,"Invalid parameter type")},encodeForAttr:dg,encodeForAttr2:function(e){return dg("nonsens",e,!0)},encodeForCSS:pg,encodeForHref:function(e){fg(e),0!==e.search("[a-zA-Z0-9]+:")&&(e="http://".concat(e));var t=new $h(e),n=$h.encodeAuthorityAndPath(decodeURI(t.authorityAndPath)),r=t.searchParams,o=(e=n+$h.encodeSearchParams(r)+t.hash).toLowerCase();if(-1!==o.indexOf("javascript:"))throw new Error("Attack Detected - Javascript in input");if(-1!==o.indexOf("data:"))throw new Error("Attack Detected - data in input");return e},encodeForJS:function(e,t){var n,r,o,i,a,l;for(t||(t=rg),l="",n=0;n<e.length;n++)o=e.charAt(n),i=e.charCodeAt(n),ug(o,t)>=0||null==mg[i]?l+=o:(r=i.toString(16),i<256?(a="00".substr(r.length),l+="\\x".concat(a).concat(r.toUpperCase())):(a="0000".substr(r.length),l+="\\u".concat(a).concat(r.toUpperCase())));return l},encodeForHTML:cg,encodeForURL:function(e,t){var n="";return t&&(t.match(/^[A-Za-z\-0-9]{1,}$/)?n+=fg(t).toLowerCase():yg(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?'"':""},isSafeDataURL:function(e,t){var n=null!=t?t:{},r=n.maxByteSizeSvg,o=void 0===r?5e5:r,i=n.maxByteSizeImage,a=void 0===i?5e6:i,l=function(e){var t,n=qh(null!==(t=tg.exec(e.trim()))&&void 0!==t?t:[],4),r=n[1];return{encoding:n[2],data:n[3],mimeType:null==r?void 0:r.toLocaleLowerCase()}}(e),s=l.mimeType,u=l.encoding,c=l.data;if(!c)return!0;var d=function(e,t,n){var r={type:e};if(null!=t&&t.includes(";base64"))try{return new Blob([atob(n)],r).size}catch(e){return new Blob([n],r).size}return"image/svg+xml"===e?new Blob([n],r).size:0}(s,u,c);return"image/svg+xml"===s?d<=o:d<=a}};const Sg=(e,t)=>{var n;const r=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps;return null==r||null===(n=r.qValues)||void 0===n?void 0:n[e]},Eg=e=>{switch(e){case"topLeft":default:return{horizontal:"flex-start",vertical:"flex-start"};case"centerLeft":return{horizontal:"center",vertical:"flex-start"};case"bottomLeft":return{horizontal:"flex-end",vertical:"flex-start"};case"topCenter":return{horizontal:"flex-start",vertical:"center"};case"centerCenter":return{horizontal:"center",vertical:"center"};case"bottomCenter":return{horizontal:"flex-end",vertical:"center"};case"topRight":return{horizontal:"flex-start",vertical:"flex-end"};case"centerRight":return{horizontal:"center",vertical:"flex-end"};case"bottomRight":return{horizontal:"flex-end",vertical:"flex-end"}}};let wg=function(e){return e.Text="text",e.Link="link",e.Image="image",e}({}),Cg=function(e){return e.Attribute="attribute",e.Dimension="dimension",e}({});const Rg=({text:e,url:t,imageSize:n,imagePosition:r})=>r&&t&&!t.toLowerCase().includes("javascript:")&&xg.isSafeDataURL(t)?{type:wg.Image,url:t,text:e,imageSize:n,resolvedImagePosition:Eg(r)}:{type:wg.Text,url:void 0,text:e},kg=(e,t,n)=>{var r;const o=Array.isArray(t.qAttrExps)?t.qAttrExps[0]:t.qAttrExps,i=null==o||null===(r=o.qValues)||void 0===r?void 0:r[e];if(i){const e=Number.isNaN(+i.qNum)?void 0:`${i.qNum}`;return i.qText||e}return(null==n?void 0:n.urlPosition)===Cg.Attribute||null==n?void 0:n.urlLabel},Ag=({text:e,url:t})=>{try{if(!t)throw Error("Invalid url");return{type:wg.Link,url:xg.encodeForHref(t),text:e}}catch(t){return{type:wg.Text,url:void 0,text:e}}},Pg=(e,t,n,r,o,i)=>{switch((e=>{switch(null==e?void 0:e.type){case"url":return wg.Link;case"image":return wg.Image;default:return wg.Text}})(t)){case wg.Image:return((e,t,n,r)=>{const{imageSize:o,imagePosition:i,imageSetting:a,imageLabel:l}=null!=t?t:{};if("url"===a){var s;const t=e.qText,r=null===(s=Sg(null!=n?n:-1,e))||void 0===s?void 0:s.qText;return Rg({text:t,url:r,imageSize:o,imagePosition:i})}if("label"===a){var u,c;const t=e.qText;if(-1===r||void 0===r)return Rg({text:l||t||"",url:t,imageSize:o,imagePosition:i});const n=null!==(u=null===(c=Sg(r,e))||void 0===c?void 0:c.qText)&&void 0!==u?u:e.qText;return Rg({text:n,url:t,imageSize:o,imagePosition:i})}return{type:wg.Text,url:void 0,text:e.qText}})(e,t,o,i);case wg.Link:return((e,t,n,r)=>{const{urlPosition:o}=null!=t?t:{};if(o===Cg.Attribute){const r=kg(n,e,t),o=e.qText||r||"";return Ag({text:o,url:r})}if(o===Cg.Dimension){const n=kg(r,e,t)||e.qText;return Ag({text:n,url:e.qText})}return{type:wg.Text,url:void 0,text:e.qText}})(e,t,n,r);default:return{type:wg.Text,url:void 0,text:e.qText}}},Lg=e=>!Number.isNaN(+e),Ig=e=>!(!e.qNum&&0!==e.qNum||!Lg(e.qNum)),Mg=1e4;function Dg(e,t){return[...t].reverse().find((t=>t*e<=Mg))||Math.floor(Mg/e)}function Tg(e,t){var n,r;if(null!==(n=t.viewState)&&void 0!==n&&n.skipTotals)return{atTop:!1,atBottom:!1};const[o,i,a,l,s]=[e.qHyperCube.qDimensionInfo.length>0,e.qHyperCube.qMeasureInfo.length>0,e.qHyperCube.qGrandTotalRow.length>0,null===(r=e.totals)||void 0===r?void 0:r.show,e.totals.position];if(a&&(o&&i||!l&&!o)){if(l||"top"===s)return{atTop:!0,atBottom:!1};if(!l&&"bottom"===s)return{atTop:!1,atBottom:!0}}return{atTop:!1,atBottom:!1}}function _g(e,t,n,r){var o,i,a;return t?0===n&&null!==(a=e.totals.label)&&void 0!==a?a:"":null!==(o=null===(i=e.qHyperCube.qGrandTotalRow[r])||void 0===i?void 0:i.qText)&&void 0!==o?o:""}function Og(e,t){const n=e.qHyperCube.qGrandTotalRow[t];return Lg(null==n?void 0:n.qNum)}function Ng(e,t,n){return e&&!e.auto?{headTextAlign:e.align,totalsTextAlign:e.align,bodyTextAlign:e.align}:{headTextAlign:"N"===t||void 0===t?"right":"left",totalsTextAlign:n?"left":"right",bodyTextAlign:"auto"}}const qg=(e,t)=>"auto"!==t?t:Ig(e)?"right":"left";const zg=e=>{const{qHyperCube:{qColumnOrder:t,qDimensionInfo:n,qMeasureInfo:r}}=e,o=n.length+r.length,i=(null==t?void 0:t.length)===o?t:Array.from(Array(o).keys()),{visibleColumnsOrder:a,visibleColumnIndexes:l}=((e,t,n)=>{const r=t.length,o=[];let i=0,a=0;return{visibleColumnsOrder:e.filter((e=>{const l=e<r,{qError:s}=l?t[e]:n[e-r],u=7005===(null==s?void 0:s.qErrorCode);return u?l?i++:a++:o[e]=l?e-i:e-r-a,!u})),visibleColumnIndexes:o}})(i,n,r);return a.map(((t,n)=>function(e,t,n,r){const{qDimensionInfo:o,qMeasureInfo:i,qEffectiveInterColumnSortOrder:a}=e.qHyperCube,l=o.length,s=t<l,u=s?o[t]:i[t-l],c=t===a[0];let d,p,f=0,m="",h=!1,g=-1;if(s){const e=u;f=e.qGroupPos,m=e.qGroupFieldDefs[f],h=e.qLocked,g=r,({qDimensionType:d,representation:p}=e)}const{qFallbackTitle:b,textAlign:v,qAttrExprInfo:y,qSortIndicator:x,qReverseSort:S,qApprMaxGlyphCount:E,columnWidth:w,qLibraryId:C}=u;return{isDim:s,isLocked:h,fieldId:m,colIdx:t,qLibraryId:C,pageColIdx:n,qApprMaxGlyphCount:E,qReverseSort:S,columnWidth:w,selectionColIdx:g,isActivelySorted:c,id:Ah(u),label:b,qAttrExprInfoIDs:y.map((e=>e.id)),sortDirection:x&&"N"!==x?x:"A",totalInfo:_g(e,s,n,r),...!s&&{isTotalNumeric:Og(e,r)},...Ng(v,d,s),representation:p}}(e,t,n,l[t])))};const Fg=(e,t)=>{var n;return!!(e.snapshotData||null!==(n=t.viewState)&&void 0!==n&&n.visibleHeight)},jg=(e,t)=>{var n;return void 0!==(null===(n=t.viewState)||void 0===n?void 0:n.usePagination)?t.viewState.usePagination:!1!==e.usePagination||Fg(e,t)};var $g={exports:{}},Hg={},Bg=Qt,Wg=Symbol.for("react.element"),Ug=Symbol.for("react.fragment"),Vg=Object.prototype.hasOwnProperty,Gg=Bg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Yg={key:!0,ref:!0,__self:!0,__source:!0};function Kg(e,t,n){var r,o={},i=null,a=null;for(r in void 0!==n&&(i=""+n),void 0!==t.key&&(i=""+t.key),void 0!==t.ref&&(a=t.ref),t)Vg.call(t,r)&&!Yg.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:Wg,type:e,key:i,ref:a,props:o,_owner:Gg.current}}Hg.Fragment=Ug,Hg.jsx=Kg,Hg.jsxs=Kg,$g.exports=Hg;var Xg=$g.exports;function Jg(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 Qg=Object.freeze({__proto__:null,default:Jg}),Zg="$$material";function eb(){return eb=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eb.apply(this,arguments)}function tb(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var nb=function(){return nb=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},nb.apply(this,arguments)};function rb(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var ob=ht((function(e,t,n,r){var o=n?n.call(r,e,t):void 0;if(void 0!==o)return!!o;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var i=Object.keys(e),a=Object.keys(t);if(i.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<i.length;s++){var u=i[s];if(!l(u))return!1;var c=e[u],d=t[u];if(!1===(o=n?n.call(r,c,d,u):void 0)||void 0===o&&c!==d)return!1}return!0})),ib="-ms-",ab="-moz-",lb="-webkit-",sb="comm",ub="rule",cb="decl",db="@media",pb="@import",fb="@supports",mb="@keyframes",hb="@layer",gb=Math.abs,bb=String.fromCharCode,vb=Object.assign;function yb(e){return e.trim()}function xb(e,t){return(e=t.exec(e))?e[0]:e}function Sb(e,t,n){return e.replace(t,n)}function Eb(e,t,n){return e.indexOf(t,n)}function wb(e,t){return 0|e.charCodeAt(t)}function Cb(e,t,n){return e.slice(t,n)}function Rb(e){return e.length}function kb(e){return e.length}function Ab(e,t){return t.push(e),e}function Pb(e,t){return e.filter((function(e){return!xb(e,t)}))}var Lb=1,Ib=1,Mb=0,Db=0,Tb=0,_b="";function Ob(e,t,n,r,o,i,a,l){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Lb,column:Ib,length:a,return:"",siblings:l}}function Nb(e,t){return vb(Ob("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function qb(e){for(;e.root;)e=Nb(e.root,{children:[e]});Ab(e,e.siblings)}function zb(){return Tb=Db>0?wb(_b,--Db):0,Ib--,10===Tb&&(Ib=1,Lb--),Tb}function Fb(){return Tb=Db<Mb?wb(_b,Db++):0,Ib++,10===Tb&&(Ib=1,Lb++),Tb}function jb(){return wb(_b,Db)}function $b(){return Db}function Hb(e,t){return Cb(_b,e,t)}function Bb(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 Wb(e){return yb(Hb(Db-1,Gb(91===e?e+2:40===e?e+1:e)))}function Ub(e){for(;(Tb=jb())&&Tb<33;)Fb();return Bb(e)>2||Bb(Tb)>3?"":" "}function Vb(e,t){for(;--t&&Fb()&&!(Tb<48||Tb>102||Tb>57&&Tb<65||Tb>70&&Tb<97););return Hb(e,$b()+(t<6&&32==jb()&&32==Fb()))}function Gb(e){for(;Fb();)switch(Tb){case e:return Db;case 34:case 39:34!==e&&39!==e&&Gb(Tb);break;case 40:41===e&&Gb(e);break;case 92:Fb()}return Db}function Yb(e,t){for(;Fb()&&e+Tb!==57&&(e+Tb!==84||47!==jb()););return"/*"+Hb(t,Db-1)+"*"+bb(47===e?e:Fb())}function Kb(e){for(;!Bb(jb());)Fb();return Hb(e,Db)}function Xb(e){return function(e){return _b="",e}(Jb("",null,null,null,[""],e=function(e){return Lb=Ib=1,Mb=Rb(_b=e),Db=0,[]}(e),0,[0],e))}function Jb(e,t,n,r,o,i,a,l,s){for(var u=0,c=0,d=a,p=0,f=0,m=0,h=1,g=1,b=1,v=0,y="",x=o,S=i,E=r,w=y;g;)switch(m=v,v=Fb()){case 40:if(108!=m&&58==wb(w,d-1)){-1!=Eb(w+=Sb(Wb(v),"&","&\f"),"&\f",gb(u?l[u-1]:0))&&(b=-1);break}case 34:case 39:case 91:w+=Wb(v);break;case 9:case 10:case 13:case 32:w+=Ub(m);break;case 92:w+=Vb($b()-1,7);continue;case 47:switch(jb()){case 42:case 47:Ab(Zb(Yb(Fb(),$b()),t,n,s),s);break;default:w+="/"}break;case 123*h:l[u++]=Rb(w)*b;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+c:-1==b&&(w=Sb(w,/\f/g,"")),f>0&&Rb(w)-d&&Ab(f>32?ev(w+";",r,n,d-1,s):ev(Sb(w," ","")+";",r,n,d-2,s),s);break;case 59:w+=";";default:if(Ab(E=Qb(w,t,n,u,c,o,l,y,x=[],S=[],d,i),i),123===v)if(0===c)Jb(w,t,E,E,x,i,d,l,S);else switch(99===p&&110===wb(w,3)?100:p){case 100:case 108:case 109:case 115:Jb(e,E,E,r&&Ab(Qb(e,E,E,0,0,o,l,y,o,x=[],d,S),S),o,S,d,l,r?x:S);break;default:Jb(w,E,E,E,[""],S,0,l,S)}}u=c=f=0,h=b=1,y=w="",d=a;break;case 58:d=1+Rb(w),f=m;default:if(h<1)if(123==v)--h;else if(125==v&&0==h++&&125==zb())continue;switch(w+=bb(v),v*h){case 38:b=c>0?1:(w+="\f",-1);break;case 44:l[u++]=(Rb(w)-1)*b,b=1;break;case 64:45===jb()&&(w+=Wb(Fb())),p=jb(),c=d=Rb(y=w+=Kb($b())),v++;break;case 45:45===m&&2==Rb(w)&&(h=0)}}return i}function Qb(e,t,n,r,o,i,a,l,s,u,c,d){for(var p=o-1,f=0===o?i:[""],m=kb(f),h=0,g=0,b=0;h<r;++h)for(var v=0,y=Cb(e,p+1,p=gb(g=a[h])),x=e;v<m;++v)(x=yb(g>0?f[v]+" "+y:Sb(y,/&\f/g,f[v])))&&(s[b++]=x);return Ob(e,t,n,0===o?ub:l,s,u,c,d)}function Zb(e,t,n,r){return Ob(e,t,n,sb,bb(Tb),Cb(e,2,-2),0,r)}function ev(e,t,n,r,o){return Ob(e,t,n,cb,Cb(e,0,r),Cb(e,r+1,-1),r,o)}function tv(e,t,n){switch(function(e,t){return 45^wb(e,0)?(((t<<2^wb(e,0))<<2^wb(e,1))<<2^wb(e,2))<<2^wb(e,3):0}(e,t)){case 5103:return lb+"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 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return lb+e+e;case 4789:return ab+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return lb+e+ab+e+ib+e+e;case 5936:switch(wb(e,t+11)){case 114:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return lb+e+ib+Sb(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return lb+e+ib+e+e;case 6165:return lb+e+ib+"flex-"+e+e;case 5187:return lb+e+Sb(e,/(\w+).+(:[^]+)/,lb+"box-$1$2"+ib+"flex-$1$2")+e;case 5443:return lb+e+ib+"flex-item-"+Sb(e,/flex-|-self/g,"")+(xb(e,/flex-|baseline/)?"":ib+"grid-row-"+Sb(e,/flex-|-self/g,""))+e;case 4675:return lb+e+ib+"flex-line-pack"+Sb(e,/align-content|flex-|-self/g,"")+e;case 5548:return lb+e+ib+Sb(e,"shrink","negative")+e;case 5292:return lb+e+ib+Sb(e,"basis","preferred-size")+e;case 6060:return lb+"box-"+Sb(e,"-grow","")+lb+e+ib+Sb(e,"grow","positive")+e;case 4554:return lb+Sb(e,/([^-])(transform)/g,"$1"+lb+"$2")+e;case 6187:return Sb(Sb(Sb(e,/(zoom-|grab)/,lb+"$1"),/(image-set)/,lb+"$1"),e,"")+e;case 5495:case 3959:return Sb(e,/(image-set\([^]*)/,lb+"$1$`$1");case 4968:return Sb(Sb(e,/(.+:)(flex-)?(.*)/,lb+"box-pack:$3"+ib+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+lb+e+e;case 4200:if(!xb(e,/flex-|baseline/))return ib+"grid-column-align"+Cb(e,t)+e;break;case 2592:case 3360:return ib+Sb(e,"template-","")+e;case 4384:case 3616:return n&&n.some((function(e,n){return t=n,xb(e.props,/grid-\w+-end/)}))?~Eb(e+(n=n[t].value),"span",0)?e:ib+Sb(e,"-start","")+e+ib+"grid-row-span:"+(~Eb(n,"span",0)?xb(n,/\d+/):+xb(n,/\d+/)-+xb(e,/\d+/))+";":ib+Sb(e,"-start","")+e;case 4896:case 4128:return n&&n.some((function(e){return xb(e.props,/grid-\w+-start/)}))?e:ib+Sb(Sb(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Sb(e,/(.+)-inline(.+)/,lb+"$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(Rb(e)-1-t>6)switch(wb(e,t+1)){case 109:if(45!==wb(e,t+4))break;case 102:return Sb(e,/(.+:)(.+)-([^]+)/,"$1"+lb+"$2-$3$1"+ab+(108==wb(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Eb(e,"stretch",0)?tv(Sb(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Sb(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,(function(t,n,r,o,i,a,l){return ib+n+":"+r+l+(o?ib+n+"-span:"+(i?a:+a-+r)+l:"")+e}));case 4949:if(121===wb(e,t+6))return Sb(e,":",":"+lb)+e;break;case 6444:switch(wb(e,45===wb(e,14)?18:11)){case 120:return Sb(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+lb+(45===wb(e,14)?"inline-":"")+"box$3$1"+lb+"$2$3$1"+ib+"$2box$3")+e;case 100:return Sb(e,":",":"+ib)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Sb(e,"scroll-","scroll-snap-")+e}return e}function nv(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function rv(e,t,n,r){switch(e.type){case hb:if(e.children.length)break;case pb:case cb:return e.return=e.return||e.value;case sb:return"";case mb:return e.return=e.value+"{"+nv(e.children,r)+"}";case ub:if(!Rb(e.value=e.props.join(",")))return""}return Rb(n=nv(e.children,r))?e.return=e.value+"{"+n+"}":""}function ov(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case cb:return void(e.return=tv(e.value,e.length,n));case mb:return nv([Nb(e,{value:Sb(e.value,"@","@"+lb)})],r);case ub:if(e.length)return function(e,t){return e.map(t).join("")}(n=e.props,(function(t){switch(xb(t,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":qb(Nb(e,{props:[Sb(t,/:(read-\w+)/,":"+ab+"$1")]})),qb(Nb(e,{props:[t]})),vb(e,{props:Pb(n,r)});break;case"::placeholder":qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,":"+lb+"input-$1")]})),qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,":"+ab+"$1")]})),qb(Nb(e,{props:[Sb(t,/:(plac\w+)/,ib+"input-$1")]})),qb(Nb(e,{props:[t]})),vb(e,{props:Pb(n,r)})}return""}))}}var iv={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},av="undefined"!=typeof process&&void 0!==process.env&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",lv="active",sv="data-styled-version",uv="6.1.8",cv="/*!sc*/\n",dv="undefined"!=typeof window&&"HTMLElement"in window,pv=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)),fv={},mv=Object.freeze([]),hv=Object.freeze({});function gv(e,t,n){return void 0===n&&(n=hv),e.theme!==n.theme&&e.theme||t||n.theme}var bv=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","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","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),vv=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,yv=/(^-|-$)/g;function xv(e){return e.replace(vv,"-").replace(yv,"")}var Sv=/(a)(d)/gi,Ev=52,wv=function(e){return String.fromCharCode(e+(e>25?39:97))};function Cv(e){var t,n="";for(t=Math.abs(e);t>Ev;t=t/Ev|0)n=wv(t%Ev)+n;return(wv(t%Ev)+n).replace(Sv,"$1-$2")}var Rv,kv=5381,Av=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Pv=function(e){return Av(kv,e)};function Lv(e){return Cv(Pv(e)>>>0)}function Iv(e){return"string"==typeof e&&!0}var Mv="function"==typeof Symbol&&Symbol.for,Dv=Mv?Symbol.for("react.memo"):60115,Tv=Mv?Symbol.for("react.forward_ref"):60112,_v={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Ov={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Nv={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},qv=((Rv={})[Tv]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Rv[Dv]=Nv,Rv);function zv(e){return("type"in(t=e)&&t.type.$$typeof)===Dv?Nv:"$$typeof"in e?qv[e.$$typeof]:_v;var t}var Fv=Object.defineProperty,jv=Object.getOwnPropertyNames,$v=Object.getOwnPropertySymbols,Hv=Object.getOwnPropertyDescriptor,Bv=Object.getPrototypeOf,Wv=Object.prototype;function Uv(e,t,n){if("string"!=typeof t){if(Wv){var r=Bv(t);r&&r!==Wv&&Uv(e,r,n)}var o=jv(t);$v&&(o=o.concat($v(t)));for(var i=zv(e),a=zv(t),l=0;l<o.length;++l){var s=o[l];if(!(s in Ov||n&&n[s]||a&&s in a||i&&s in i)){var u=Hv(t,s);try{Fv(e,s,u)}catch(e){}}}}return e}function Vv(e){return"function"==typeof e}function Gv(e){return"object"==typeof e&&"styledComponentId"in e}function Yv(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Kv(e,t){if(0===e.length)return"";for(var n=e[0],r=1;r<e.length;r++)n+=t?t+e[r]:e[r];return n}function Xv(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function Jv(e,t,n){if(void 0===n&&(n=!1),!n&&!Xv(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=Jv(e[r],t[r]);else if(Xv(t))for(var r in t)e[r]=Jv(e[r],t[r]);return e}function Qv(e,t){Object.defineProperty(e,"toString",{value:t})}function Zv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];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 ey=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,r=n.length,o=r;e>=o;)if((o<<=1)<0)throw Zv(16,"".concat(e));this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var i=r;i<o;i++)this.groupSizes[i]=0}for(var a=this.indexOfGroup(e+1),l=(i=0,t.length);i<l;i++)this.tag.insertRule(a,t[i])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),r=n+t;this.groupSizes[e]=0;for(var o=n;o<r;o++)this.tag.deleteRule(n)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],r=this.indexOfGroup(e),o=r+n,i=r;i<o;i++)t+="".concat(this.tag.getRule(i)).concat(cv);return t},e}(),ty=new Map,ny=new Map,ry=1,oy=function(e){if(ty.has(e))return ty.get(e);for(;ny.has(ry);)ry++;var t=ry++;return ty.set(e,t),ny.set(t,e),t},iy=function(e,t){ry=t+1,ty.set(e,t),ny.set(t,e)},ay="style[".concat(av,"][").concat(sv,'="').concat(uv,'"]'),ly=new RegExp("^".concat(av,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),sy=function(e,t,n){for(var r,o=n.split(","),i=0,a=o.length;i<a;i++)(r=o[i])&&e.registerName(t,r)},uy=function(e,t){for(var n,r=(null!==(n=t.textContent)&&void 0!==n?n:"").split(cv),o=[],i=0,a=r.length;i<a;i++){var l=r[i].trim();if(l){var s=l.match(ly);if(s){var u=0|parseInt(s[1],10),c=s[2];0!==u&&(iy(c,u),sy(e,c,s[3]),e.getTag().insertRules(u,o)),o.length=0}else o.push(l)}}};var cy=function(e){var t=document.head,n=e||t,r=document.createElement("style"),o=function(e){var t=Array.from(e.querySelectorAll("style[".concat(av,"]")));return t[t.length-1]}(n),i=void 0!==o?o.nextSibling:null;r.setAttribute(av,lv),r.setAttribute(sv,uv);var a="undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null;return a&&r.setAttribute("nonce",a),n.insertBefore(r,i),r},dy=function(){function e(e){this.element=cy(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,r=t.length;n<r;n++){var o=t[n];if(o.ownerNode===e)return o}throw Zv(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}(),py=function(){function e(e){this.element=cy(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,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}(),fy=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(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}(),my=dv,hy={isServer:!dv,useCSSOMInjection:!pv},gy=function(){function e(e,t,n){void 0===e&&(e=hv),void 0===t&&(t={});var r=this;this.options=nb(nb({},hy),e),this.gs=t,this.names=new Map(n),this.server=!!e.isServer,!this.server&&dv&&my&&(my=!1,function(e){for(var t=document.querySelectorAll(ay),n=0,r=t.length;n<r;n++){var o=t[n];o&&o.getAttribute(av)!==lv&&(uy(e,o),o.parentNode&&o.parentNode.removeChild(o))}}(this)),Qv(this,(function(){return function(e){for(var t=e.getTag(),n=t.length,r="",o=function(n){var o=function(e){return ny.get(e)}(n);if(void 0===o)return"continue";var i=e.names.get(o),a=t.getGroup(n);if(void 0===i||0===a.length)return"continue";var l="".concat(av,".g").concat(n,'[id="').concat(o,'"]'),s="";void 0!==i&&i.forEach((function(e){e.length>0&&(s+="".concat(e,","))})),r+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(cv)},i=0;i<n;i++)o(i);return r}(r)}))}return e.registerId=function(e){return oy(e)},e.prototype.reconstructWithOptions=function(t,n){return void 0===n&&(n=!0),new e(nb(nb({},this.options),t),this.gs,n&&this.names||void 0)},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,n=e.target;return e.isServer?new fy(n):t?new dy(n):new py(n)}(this.options),new ey(e)));var e},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(oy(e),this.names.has(e))this.names.get(e).add(t);else{var n=new Set;n.add(t),this.names.set(e,n)}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(oy(e),n)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(oy(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),by=/&/g,vy=/^\s*\/\/.*$/gm;function yy(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=yy(e.children,t)),e}))}function xy(e){var t,n,r,o=void 0===e?hv:e,i=o.options,a=void 0===i?hv:i,l=o.plugins,s=void 0===l?mv:l,u=function(e,r,o){return o.startsWith(n)&&o.endsWith(n)&&o.replaceAll(n,"").length>0?".".concat(t):e},c=s.slice();c.push((function(e){e.type===ub&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(by,n).replace(r,u))})),a.prefix&&c.push(ov),c.push(rv);var d=function(e,o,i,l){void 0===o&&(o=""),void 0===i&&(i=""),void 0===l&&(l="&"),t=l,n=o,r=new RegExp("\\".concat(n,"\\b"),"g");var s=e.replace(vy,""),u=Xb(i||o?"".concat(i," ").concat(o," { ").concat(s," }"):s);a.namespace&&(u=yy(u,a.namespace));var d,p=[];return nv(u,function(e){var t=kb(e);return function(n,r,o,i){for(var a="",l=0;l<t;l++)a+=e[l](n,r,o,i)||"";return a}}(c.concat((d=function(e){return p.push(e)},function(e){e.root||(e=e.return)&&d(e)})))),p};return d.hash=s.length?s.reduce((function(e,t){return t.name||Zv(15),Av(e,t.name)}),kv).toString():"",d}var Sy=new gy,Ey=xy(),wy=Zt.createContext({shouldForwardProp:void 0,styleSheet:Sy,stylis:Ey});wy.Consumer;var Cy=Zt.createContext(void 0);function Ry(){return Qt.useContext(wy)}function ky(e){var t=Qt.useState(e.stylisPlugins),n=t[0],r=t[1],o=Ry().styleSheet,i=Qt.useMemo((function(){var t=o;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t}),[e.disableCSSOMInjection,e.sheet,e.target,o]),a=Qt.useMemo((function(){return xy({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:n})}),[e.enableVendorPrefixes,e.namespace,n]);Qt.useEffect((function(){ob(n,e.stylisPlugins)||r(e.stylisPlugins)}),[e.stylisPlugins]);var l=Qt.useMemo((function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:i,stylis:a}}),[e.shouldForwardProp,i,a]);return Zt.createElement(wy.Provider,{value:l},Zt.createElement(Cy.Provider,{value:a},e.children))}var Ay=function(){function e(e,t){var n=this;this.inject=function(e,t){void 0===t&&(t=Ey);var r=n.name+t.hash;e.hasNameForId(n.id,r)||e.insertRules(n.id,r,t(n.rules,r,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Qv(this,(function(){throw Zv(12,String(n.name))}))}return e.prototype.getName=function(e){return void 0===e&&(e=Ey),this.name+e.hash},e}(),Py=function(e){return e>="A"&&e<="Z"};function Ly(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(1===n&&"-"===r&&"-"===e[0])return e;Py(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Iy=function(e){return null==e||!1===e||""===e},My=function(e){var t,n,r=[];for(var o in e){var i=e[o];e.hasOwnProperty(o)&&!Iy(i)&&(Array.isArray(i)&&i.isCss||Vv(i)?r.push("".concat(Ly(o),":"),i,";"):Xv(i)?r.push.apply(r,rb(rb(["".concat(o," {")],My(i),!1),["}"],!1)):r.push("".concat(Ly(o),": ").concat((t=o,null==(n=i)||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||t in iv||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function Dy(e,t,n,r){return Iy(e)?[]:Gv(e)?[".".concat(e.styledComponentId)]:Vv(e)?!Vv(o=e)||o.prototype&&o.prototype.isReactComponent||!t?[e]:Dy(e(t),t,n,r):e instanceof Ay?n?(e.inject(n,r),[e.getName(r)]):[e]:Xv(e)?My(e):Array.isArray(e)?Array.prototype.concat.apply(mv,e.map((function(e){return Dy(e,t,n,r)}))):[e.toString()];var o}function Ty(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Vv(n)&&!Gv(n))return!1}return!0}var _y=Pv(uv),Oy=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===n||n.isStatic)&&Ty(e),this.componentId=t,this.baseHash=Av(_y,t),this.baseStyle=n,gy.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,n){var r=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))r=Yv(r,this.staticRulesId);else{var o=Kv(Dy(this.rules,e,t,n)),i=Cv(Av(this.baseHash,o)>>>0);if(!t.hasNameForId(this.componentId,i)){var a=n(o,".".concat(i),void 0,this.componentId);t.insertRules(this.componentId,i,a)}r=Yv(r,i),this.staticRulesId=i}else{for(var l=Av(this.baseHash,n.hash),s="",u=0;u<this.rules.length;u++){var c=this.rules[u];if("string"==typeof c)s+=c;else if(c){var d=Kv(Dy(c,e,t,n));l=Av(l,d+u),s+=d}}if(s){var p=Cv(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,n(s,".".concat(p),void 0,this.componentId)),r=Yv(r,p)}}return r},e}(),Ny=Zt.createContext(void 0);Ny.Consumer;var qy={};new Set;function zy(e,t,n){var r=Gv(e),o=e,i=!Iv(e),a=t.attrs,l=void 0===a?mv:a,s=t.componentId,u=void 0===s?function(e,t){var n="string"!=typeof e?"sc":xv(e);qy[n]=(qy[n]||0)+1;var r="".concat(n,"-").concat(Lv(uv+n+qy[n]));return t?"".concat(t,"-").concat(r):r}(t.displayName,t.parentComponentId):s,c=t.displayName,d=void 0===c?function(e){return Iv(e)?"styled.".concat(e):"Styled(".concat(function(e){return e.displayName||e.name||"Component"}(e),")")}(e):c,p=t.displayName&&t.componentId?"".concat(xv(t.displayName),"-").concat(t.componentId):t.componentId||u,f=r&&o.attrs?o.attrs.concat(l).filter(Boolean):l,m=t.shouldForwardProp;if(r&&o.shouldForwardProp){var h=o.shouldForwardProp;if(t.shouldForwardProp){var g=t.shouldForwardProp;m=function(e,t){return h(e,t)&&g(e,t)}}else m=h}var b=new Oy(n,p,r?o.componentStyle:void 0);function v(e,t){return function(e,t,n){var r=e.attrs,o=e.componentStyle,i=e.defaultProps,a=e.foldedComponentIds,l=e.styledComponentId,s=e.target,u=Zt.useContext(Ny),c=Ry(),d=e.shouldForwardProp||c.shouldForwardProp,p=gv(t,u,i)||hv,f=function(e,t,n){for(var r,o=nb(nb({},t),{className:void 0,theme:n}),i=0;i<e.length;i+=1){var a=Vv(r=e[i])?r(o):r;for(var l in a)o[l]="className"===l?Yv(o[l],a[l]):"style"===l?nb(nb({},o[l]),a[l]):a[l]}return t.className&&(o.className=Yv(o.className,t.className)),o}(r,t,p),m=f.as||s,h={};for(var g in f)void 0===f[g]||"$"===g[0]||"as"===g||"theme"===g&&f.theme===p||("forwardedAs"===g?h.as=f.forwardedAs:d&&!d(g,m)||(h[g]=f[g]));var b=function(e,t){var n=Ry();return e.generateAndInjectStyles(t,n.styleSheet,n.stylis)}(o,f),v=Yv(a,l);return b&&(v+=" "+b),f.className&&(v+=" "+f.className),h[Iv(m)&&!bv.has(m)?"class":"className"]=v,h.ref=n,Qt.createElement(m,h)}(y,e,t)}v.displayName=d;var y=Zt.forwardRef(v);return y.attrs=f,y.componentStyle=b,y.displayName=d,y.shouldForwardProp=m,y.foldedComponentIds=r?Yv(o.foldedComponentIds,o.styledComponentId):"",y.styledComponentId=p,y.target=r?o.target:e,Object.defineProperty(y,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=r?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=0,o=t;r<o.length;r++)Jv(e,o[r],!0);return e}({},o.defaultProps,e):e}}),Qv(y,(function(){return".".concat(y.styledComponentId)})),i&&Uv(y,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),y}function Fy(e,t){for(var n=[e[0]],r=0,o=t.length;r<o;r+=1)n.push(t[r],e[r+1]);return n}var jy=function(e){return Object.assign(e,{isCss:!0})};function $y(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Vv(e)||Xv(e))return jy(Dy(Fy(mv,rb([e],t,!0))));var r=e;return 0===t.length&&1===r.length&&"string"==typeof r[0]?Dy(r):jy(Dy(Fy(r,t)))}function Hy(e,t,n){if(void 0===n&&(n=hv),!t)throw Zv(1,t);var r=function(r){for(var o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];return e(t,n,$y.apply(void 0,rb([r],o,!1)))};return r.attrs=function(r){return Hy(e,t,nb(nb({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return Hy(e,t,nb(nb({},n),r))},r}var By=function(e){return Hy(zy,e)},Wy=By;bv.forEach((function(e){Wy[e]=By(e)}));var Uy=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ty(e),gy.registerId(this.componentId+1)}return e.prototype.createStyles=function(e,t,n,r){var o=r(Kv(Dy(this.rules,t,n,r)),""),i=this.componentId+e;n.insertRules(i,i,o)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,n,r){e>2&&gy.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,r)},e}();function Vy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=$y.apply(void 0,rb([e],t,!1)),o="sc-global-".concat(Lv(JSON.stringify(r))),i=new Uy(r,o),a=function(e){var t=Ry(),n=Zt.useContext(Ny),r=Zt.useRef(t.styleSheet.allocateGSInstance(o)).current;return t.styleSheet.server&&function(e,t,n,r,o){if(i.isStatic)i.renderStyles(e,fv,n,o);else{var l=nb(nb({},t),{theme:gv(t,r,a.defaultProps)});i.renderStyles(e,l,n,o)}}(r,e,t.styleSheet,n,t.stylis),null};return Zt.memo(a)}function Gy(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Kv($y.apply(void 0,rb([e],t,!1))),o=Lv(r);return new Ay(o,r)}var Yy={exports:{}};function Ky(){}function Xy(){}Xy.resetWarningCache=Ky;Yy.exports=function(){function e(e,t,n,r,o,i){if("SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"!==i){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:Xy,resetWarningCache:Ky};return n.PropTypes=n,n}();var Jy=ht(Yy.exports);function Qy(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}Qy.propTypes={children:Jy.node,injectFirst:Jy.bool};const Zy=Vy((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}));var ex=Zy;
|
|
31
31
|
/**
|
|
32
32
|
* @mui/styled-engine-sc v6.0.0-alpha.18
|
|
33
33
|
*
|
|
@@ -209,4 +209,4 @@ function AL(e,t){let n;return n=t?Wy(e).withConfig({displayName:t.label,shouldFo
|
|
|
209
209
|
animation-iteration-count: infinite;
|
|
210
210
|
animation-delay: 200ms;
|
|
211
211
|
}
|
|
212
|
-
`),vD.rippleVisible,RD,550,(({theme:e})=>e.transitions.easing.easeInOut),vD.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vD.child,vD.childLeaving,kD,550,(({theme:e})=>e.transitions.easing.easeInOut),vD.childPulsate,AD,(({theme:e})=>e.transitions.easing.easeInOut)),ID=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=CL(n,yD),[l,s]=Qt.useState([]),u=Qt.useRef(0),c=Qt.useRef(null);Qt.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Qt.useRef(!1),p=Qt.useRef(0),f=Qt.useRef(null),m=Qt.useRef(null);Qt.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Qt.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xg.jsx(LD,{classes:{ripple:CS(o.ripple,vD.ripple),rippleVisible:CS(o.rippleVisible,vD.rippleVisible),ripplePulsate:CS(o.ripplePulsate,vD.ripplePulsate),child:CS(o.child,vD.child),childLeaving:CS(o.childLeaving,vD.childLeaving),childPulsate:CS(o.childPulsate,vD.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Qt.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=Qt.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=Qt.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Qt.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Xg.jsx(PD,wL({className:CS(vD.root,o.root,i),ref:m},a,{children:Xg.jsx(vR,{component:null,exit:!0,children:l})}))}));var MD=ID;function DD(e){return kM("MuiButtonBase",e)}var TD=AM("MuiButtonBase",["root","disabled","focusVisible"]);const _D=["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"],OD=eD("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"},[`&.${TD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ND=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:L,type:I}=n,M=CL(n,_D),D=Qt.useRef(null),T=Qt.useRef(null),_=dM(T,L),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:z}=SM(),[F,j]=Qt.useState(!1);s&&F&&j(!1),Qt.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[$,H]=Qt.useState(!1);Qt.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function W(e,t,n=c){return cM((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}Qt.useEffect((()=>{F&&d&&!u&&$&&T.current.pulsate()}),[u,d,F,$]);const U=W("start",S),V=W("stop",h),G=W("stop",g),Y=W("stop",w),K=W("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),X=W("start",k),J=W("stop",C),Q=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=cM((e=>{D.current||(D.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Qt.useRef(!1),re=cM((e=>{d&&!ne.current&&F&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=cM((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(M.href||M.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(M.href||M.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=dM(t,z,D),se=wL({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=AE({root:["root",t&&"disabled",n&&"focusVisible"]},DD,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xg.jsxs(OD,wL({as:ie,className:CS(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:U,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:s?-1:A,type:I},ae,M,{children:[i,B?Xg.jsx(MD,wL({ref:_,center:o},P)):null]}))}));var qD=ND;function zD(e){return kM("MuiTypography",e)}AM("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FD=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jD=eD("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${nM(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wL({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}))),$D={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},HD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},BD=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiTypography"}),r=(e=>HD[e]||e)(n.color),o=NI(wL({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=$D}=o,f=CL(o,FD),m=wL({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||$D[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return AE({root:["root",i,"inherit"!==e.align&&`align${nM(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},zD,a)})(m);return Xg.jsx(jD,wL({as:h,ref:t,ownerState:m,className:CS(g.root,a)},f))}));var WD=BD;const UD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VD(e){const t=[],n=[];return Array.from(e.querySelectorAll(UD)).forEach(((e,r)=>{const o=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!==o&&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===o?t.push(e):n.push({documentOrder:r,tabIndex:o,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 GD(){return!0}function YD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=VD,isEnabled:a=GD,open:l}=e,s=Qt.useRef(!1),u=Qt.useRef(null),c=Qt.useRef(null),d=Qt.useRef(null),p=Qt.useRef(null),f=Qt.useRef(!1),m=Qt.useRef(null),h=pE(t.ref,m),g=Qt.useRef(null);Qt.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Qt.useEffect((()=>{if(!l||!m.current)return;const e=sE(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Qt.useEffect((()=>{if(!l||!m.current)return;const e=sE(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),Qt.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xg.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const KD=Qt.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Qt.useState(null),l=pE(Qt.isValidElement(n)?n.ref:null,t);if(tE((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),tE((()=>{if(i&&!o)return cE(t,i),()=>{cE(t,null)}}),[t,i,o]),o){if(Qt.isValidElement(n)){const e={ref:l};return Qt.cloneElement(n,e)}return Xg.jsx(Qt.Fragment,{children:n})}return Xg.jsx(Qt.Fragment,{children:i?ff.createPortal(n,i):i})}));function XD(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function JD(e){return parseInt(uE(e).getComputedStyle(e).paddingRight,10)||0}function QD(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.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&&XD(e,o)}))}function ZD(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function eT(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=sE(e);return t.body===e?uE(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=kE(sE(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${JD(r)+e}px`;const t=sE(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${JD(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=sE(r).body;else{const t=r.parentElement,n=uE(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 tT=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&&XD(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);QD(t,e.mount,e.modalRef,r,!0);const o=ZD(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ZD(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=eT(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ZD(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&XD(e.modalRef,t),QD(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&XD(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tT,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Qt.useRef({}),f=Qt.useRef(null),m=Qt.useRef(null),h=pE(m,d),[g,b]=Qt.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=dE((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||sE(f.current).body;o.add(x(),e),m.current&&S()})),w=Qt.useCallback((()=>o.isTopModal(x())),[o]),C=dE((e=>{f.current=e,e&&(c&&w()?S():m.current&&XD(m.current,y))})),R=Qt.useCallback((()=>{o.remove(x(),y)}),[y,o]);Qt.useEffect((()=>()=>{R()}),[R]),Qt.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=mD(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=eb({},n,t);return eb({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>eb({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:aE((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:aE((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:C,isTopModal:w,exited:g,hasTransition:v}}const rT=["onChange","maxRows","minRows","style","value"];function oT(e){return parseInt(e,10)||0}const iT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function aT(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const lT=Qt.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=tb(e,rT),{current:s}=Qt.useRef(null!=a),u=Qt.useRef(null),c=pE(t,u),d=Qt.useRef(null),p=Qt.useRef(0),[f,m]=Qt.useState({outerHeightStyle:0}),h=Qt.useCallback((()=>{const t=u.current,n=uE(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=oT(n.paddingBottom)+oT(n.paddingTop),s=oT(n.borderBottomWidth)+oT(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=Qt.useCallback((()=>{const e=h();aT(e)||m((t=>g(t,e)))}),[h]);tE((()=>{const e=()=>{p.current=0,(()=>{const e=h();aT(e)||ff.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=lE(e),n=u.current,r=uE(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),tE((()=>{b()})),Qt.useEffect((()=>{p.current=0}),[a]);return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx("textarea",eb({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:eb({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Xg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:eb({},iT,i,{paddingTop:0,paddingBottom:0})})]})}));function sT({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)),{})}var uT=Qt.createContext(void 0);function cT(){return Qt.useContext(uT)}function dT(e){return Xg.jsx(TI,wL({},e,{defaultTheme:YM,themeId:EL}))}function pT(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function fT(e,t=!1){return e&&(pT(e.value)&&""!==e.value||t&&pT(e.defaultValue)&&""!==e.defaultValue)}function mT(e){return kM("MuiInputBase",e)}var hT=AM("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const gT=["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"],bT=(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${nM(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vT=(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]},yT=eD("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bT})((({theme:e,ownerState:t})=>wL({},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",[`&.${hT.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&wL({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xT=eD("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=wL({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return wL({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] + .${hT.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${hT.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"})})),ST=Xg.jsx(dT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ET=Qt.forwardRef((function(e,t){var n;const r=XM({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:A,onKeyUp:P,placeholder:L,readOnly:I,renderSuffix:M,rows:D,slotProps:T={},slots:_={},startAdornment:O,type:N="text",value:q}=r,z=CL(r,gT),F=null!=b.value?b.value:q,{current:j}=Qt.useRef(null!=F),$=Qt.useRef(),H=Qt.useCallback((e=>{}),[]),B=dM($,v,b.ref,H),[W,U]=Qt.useState(!1),V=cT(),G=sT({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=V?V.focused:W,Qt.useEffect((()=>{!V&&d&&W&&(U(!1),w&&w())}),[V,d,W,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Qt.useCallback((e=>{fT(e)?Y&&Y():K&&K()}),[Y,K]);iM((()=>{j&&X({value:F})}),[F,X,j]);Qt.useEffect((()=>{X($.current)}),[]);let J=g,Q=b;S&&"input"===J&&(Q=wL(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:y,minRows:x},Q),J=lT);Qt.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=wL({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:V,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return AE({root:["root",`color${nM(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${nM(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},mT,t)})(Z),te=_.root||s.Root||yT,ne=T.root||u.root||{},re=_.input||s.Input||xT;return Q=wL({},Q,null!=(n=T.input)?n:u.input),Xg.jsxs(Qt.Fragment,{children:[!p&&ST,Xg.jsxs(te,wL({},ne,!fD(te)&&{ownerState:wL({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},z,{className:CS(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[O,Xg.jsx(uT.Provider,{value:null,children:Xg.jsx(re,wL({ownerState:Z,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:L,readOnly:I,required:G.required,rows:D,value:F,onKeyDown:A,onKeyUp:P,type:N},Q,!fD(re)&&{as:J,ownerState:wL({},Z,Q.ownerState)},{ref:B,className:CS(ee.input,Q.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),V&&V.onBlur?V.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(SL(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(k&&k(e),b.onFocus&&b.onFocus(e),V&&V.onFocus?V.onFocus(e):U(!0))}}))}),f,M?M(wL({},G,{startAdornment:O})):null]}))]})}));var wT=ET;function CT(e){return kM("MuiInput",e)}var RT=wL({},hT,AM("MuiInput",["root","underline","input"]));function kT(e){return kM("MuiOutlinedInput",e)}var AT=wL({},hT,AM("MuiOutlinedInput",["root","notchedOutline","input"]));function PT(e){return kM("MuiFilledInput",e)}var LT=wL({},hT,AM("MuiFilledInput",["root","underline","input"])),IT=function(e,t){function n(n,r){return Xg.jsx(aD,wL({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=aD.muiName,Qt.memo(Qt.forwardRef(n))}(Xg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const MT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DT={entering:{opacity:1},entered:{opacity:1}},TT=Qt.forwardRef((function(e,t){const n=KM(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=pR}=e,v=CL(e,MT),y=Qt.useRef(null),x=dM(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{lD(e);const r=sD({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(m),k=S((e=>{const t=sD({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),A=S(f);return Xg.jsx(b,wL({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:A,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>Qt.cloneElement(a,wL({style:wL({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},DT[e],h,a.props.style),ref:x},t))}))}));var _T=TT;function OT(e){return kM("MuiBackdrop",e)}AM("MuiBackdrop",["root","invisible"]);const NT=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qT=eD("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wL({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"}))),zT=Qt.forwardRef((function(e,t){var n,r,o;const i=XM({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=_T,transitionDuration:g}=i,b=CL(i,NT),v=wL({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return AE({root:["root",n&&"invisible"]},OT,t)})(v),x=null!=(n=f.root)?n:c.root;return Xg.jsx(h,wL({in:p,timeout:g},b,{children:Xg.jsx(qT,wL({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:CS(y.root,l,null==x?void 0:x.className),ownerState:wL({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var FT=zT;var jT=AM("MuiBox",["root"]);const $T=GM(),HT=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=AL("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(kI);return Qt.forwardRef((function(e,a){const l=DI(n),s=NI(e),{className:u,component:c="div"}=s,d=tb(s,qI);return Xg.jsx(i,eb({as:c,ref:a,className:CS(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:EL,defaultTheme:$T,defaultClassName:jT.root,generateClassName:CM.generate});var BT=HT;function WT(e){return kM("MuiButton",e)}var UT=AM("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var VT=Qt.createContext({});var GT=Qt.createContext(void 0);const YT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KT=e=>wL({},"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}}),XT=eD(qD,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nM(n.color)}`],t[`size${nM(n.size)}`],t[`${n.variant}Size${nM(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wL({},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":wL({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:QI(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})`:QI(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})`:QI(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:i,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":wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${UT.focusVisible}`]:wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${UT.disabled}`]:wL({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 ${QI(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:o,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"},[`&.${UT.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${UT.disabled}`]:{boxShadow:"none"}})),JT=eD("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nM(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},KT(e)))),QT=eD("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nM(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},KT(e)))),ZT=Qt.forwardRef((function(e,t){const n=Qt.useContext(VT),r=Qt.useContext(GT),o=XM({props:EM(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=CL(o,YT),x=wL({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return wL({},a,AE({root:["root",i,`${i}${nM(t)}`,`size${nM(o)}`,`${i}Size${nM(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nM(o)}`],endIcon:["endIcon",`iconSize${nM(o)}`]},WT,a))})(x),E=g&&Xg.jsx(JT,{className:S.startIcon,ownerState:x,children:g}),w=p&&Xg.jsx(QT,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return Xg.jsxs(XT,wL({ownerState:x,className:CS(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:CS(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,w]}))}));var e_=ZT;function t_(e){return kM("MuiModal",e)}AM("MuiModal",["root","hidden","backdrop"]);const n_=["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"],r_=eD("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})=>wL({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),o_=eD(FT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),i_=Qt.forwardRef((function(e,t){var n,r,o,i,a,l;const s=XM({name:"MuiModal",props:e}),{BackdropComponent:u=o_,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:A,slotProps:P,slots:L}=s,I=CL(s,n_),M=wL({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:D,getBackdropProps:T,getTransitionProps:_,portalRef:O,isTopModal:N,exited:q,hasTransition:z}=nT(wL({},M,{rootRef:t})),F=wL({},M,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return AE({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},t_,r)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==L?void 0:L.root)?r:g.Root)?n:r_,B=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,V=bD({elementType:H,externalSlotProps:W,externalForwardedProps:I,getSlotProps:D,additionalProps:{ref:t,as:h},ownerState:F,className:CS(d,null==W?void 0:W.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),G=bD({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>T(wL({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:CS(null==U?void 0:U.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:F});return R||A||z&&!q?Xg.jsx(KD,{ref:O,container:m,disablePortal:S,children:Xg.jsxs(H,wL({},V,{children:[!C&&u?Xg.jsx(B,wL({},G)):null,Xg.jsx(YD,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:A,children:Qt.cloneElement(f,$)})]}))}):null}));var a_=i_;function l_(e){return kM("MuiDivider",e)}var s_=AM("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const u_=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],c_=eD("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})=>wL({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)`:QI(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})=>wL({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wL({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),d_=eD("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wL({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)`}))),p_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=CL(n,u_),m=wL({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return AE({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},l_,r)})(m);return Xg.jsx(c_,wL({as:a,className:CS(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Xg.jsx(d_,{className:h.wrapper,ownerState:m,children:o}):null}))}));p_.muiSkipListHighlight=!0;var f_=p_;const m_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h_=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bT(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=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)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return wL({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:i}},[`&.${LT.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${LT.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${LT.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${LT.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})`:o}`,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(.${LT.disabled}, .${LT.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${LT.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&wL({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}))})),g_=eD(xT,{name:"MuiFilledInput",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>wL({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}))),b_=Qt.forwardRef((function(e,t){var n,r,o,i;const a=XM({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=CL(a,m_),g=wL({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return wL({},t,AE({root:["root",!n&&"underline"],input:["input"]},PT,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?tM(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:h_,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:g_;return Xg.jsx(wT,wL({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));b_.muiName="Input";var v_=b_;const y_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x_(e){return`scale(${e}, ${e**2})`}const S_={entering:{opacity:1,transform:x_(1)},entered:{opacity:1,transform:"none"}},E_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),w_=Qt.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=pR}=e,g=CL(e,y_),b=Qt.useRef(),v=Qt.useRef(),y=KM(),x=Qt.useRef(null),S=dM(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{lD(e);const{duration:n,delay:r,easing:o}=sD({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:E_?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),A=E((e=>{const{duration:t,delay:n,easing:r}=sD({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:E_?o:.666*o,delay:E_?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=x_(.75),c&&c(e)})),P=E(d);return Qt.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Xg.jsx(h,wL({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:A,onExited:P,onExiting:k,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Qt.cloneElement(o,wL({style:wL({opacity:0,transform:x_(.75),visibility:"exited"!==e||a?void 0:"hidden"},S_[e],f,o.props.style),ref:S},t))}))}));w_.muiSupportAuto=!0;var C_=w_;const R_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],k_=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bT(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})`),wL({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"},[`&.${RT.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${RT.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(.${RT.disabled}, .${RT.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${RT.disabled}:before`]:{borderBottomStyle:"dotted"}})})),A_=eD(xT,{name:"MuiInput",slot:"Input",overridesResolver:vT})({}),P_=Qt.forwardRef((function(e,t){var n,r,o,i;const a=XM({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=CL(a,R_),b=(e=>{const{classes:t,disableUnderline:n}=e;return wL({},t,AE({root:["root",!n&&"underline"],input:["input"]},CT,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?tM(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:k_,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:A_;return Xg.jsx(wT,wL({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));P_.muiName="Input";var L_=P_;function I_(e){return kM("MuiLink",e)}var M_=AM("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const D_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var T_=({theme:e,ownerState:t})=>{const n=(e=>D_[e]||e)(t.color),r=OL(e,`palette.${n}`,!1)||t.color,o=OL(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:QI(r,.4)};const __=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],O_=eD(WD,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${nM(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>wL({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&wL({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:T_({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"},[`&.${M_.focusVisible}`]:{outline:"auto"}}))),N_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=CL(n,__),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=SM(),[b,v]=Qt.useState(!1),y=dM(t,g),x=wL({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return AE({root:["root",`underline${nM(o)}`,"button"===n&&"button",r&&"focusVisible"]},I_,t)})(x);return Xg.jsx(O_,wL({color:o,className:CS(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(D_).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var q_=N_;var z_=Qt.createContext({});function F_(e){return kM("MuiList",e)}AM("MuiList",["root","padding","dense","subheader"]);const j_=["children","className","component","dense","disablePadding","subheader"],$_=eD("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})=>wL({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var H_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=CL(n,j_),c=Qt.useMemo((()=>({dense:a})),[a]),d=wL({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return AE({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},F_,t)})(d);return Xg.jsx(z_.Provider,{value:c,children:Xg.jsxs($_,wL({as:i,className:CS(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function B_(e){return kM("MuiListItemIcon",e)}var W_=AM("MuiListItemIcon",["root","alignItemsFlexStart"]);const U_=["className"],V_=eD("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})=>wL({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var G_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=CL(n,U_),i=wL({},n,{alignItems:Qt.useContext(z_).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return AE({root:["root","flex-start"===t&&"alignItemsFlexStart"]},B_,n)})(i);return Xg.jsx(V_,wL({className:CS(a.root,r),ownerState:i,ref:t},o))}));var Y_=AM("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const K_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function X_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function J_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Q_(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 Z_(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Q_(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var eO=Qt.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=CL(e,K_),p=Qt.useRef(null),f=Qt.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iM((()=>{r&&p.current.focus()}),[r]),Qt.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(rM(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=dM(p,t);let h=-1;Qt.Children.forEach(i,((e,t)=>{Qt.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Qt.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Qt.cloneElement(e,t)}return e}));return Xg.jsx(H_,wL({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=rM(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Z_(t,r,s,l,X_);else if("ArrowUp"===n)e.preventDefault(),Z_(t,r,s,l,J_);else if("Home"===n)e.preventDefault(),Z_(t,null,s,l,X_);else if("End"===n)e.preventDefault(),Z_(t,null,s,l,J_);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Q_(r,o);o.previousKeyMatched&&(s||Z_(t,r,!1,l,X_,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function tO(e){return kM("MuiPopover",e)}AM("MuiPopover",["root","paper"]);const nO=["onEntering"],rO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],oO=["slotProps"];function iO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function aO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function lO(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function sO(e){return"function"==typeof e?e():e}const uO=eD(a_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cO=eD(pD,{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});var dO=Qt.forwardRef((function(e,t){var n,r,o;const i=XM({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=C_,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=CL(i.TransitionProps,nO),k=CL(i,rO),A=null!=(n=null==y?void 0:y.paper)?n:b,P=Qt.useRef(),L=dM(P,A.ref),I=wL({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),M=(e=>{const{classes:t}=e;return AE({root:["root"],paper:["paper"]},tO,t)})(I),D=Qt.useCallback((()=>{if("anchorPosition"===c)return u;const e=sO(l),t=(e&&1===e.nodeType?e:rM(P.current).body).getBoundingClientRect();return{top:t.top+iO(t,s.vertical),left:t.left+aO(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=Qt.useCallback((e=>({vertical:iO(e,x.vertical),horizontal:aO(e,x.horizontal)})),[x.horizontal,x.vertical]),_=Qt.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:lO(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=oM(sO(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:lO(n)}}),[l,c,D,T,h]),[O,N]=Qt.useState(g),q=Qt.useCallback((()=>{const e=P.current;if(!e)return;const 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)}),[_]);Qt.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Qt.useEffect((()=>{g&&q()})),Qt.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Qt.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=oM(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const F=f||(l?rM(sO(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:uO,$=null!=(o=null==v?void 0:v.paper)?o:cO,H=bD({elementType:$,externalSlotProps:wL({},A,{style:O?A.style:wL({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:I,className:CS(M.paper,null==A?void 0:A.className)}),B=bD({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:I,className:CS(M.root,p)}),{slotProps:W}=B,U=CL(B,oO);return Xg.jsx(j,wL({},U,!fD(j)&&{slotProps:W,disableScrollLock:C},{children:Xg.jsx(S,wL({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:z},R,{children:Xg.jsx($,wL({},H,{children:d}))}))}))}));function pO(e){return kM("MuiMenu",e)}AM("MuiMenu",["root","paper","list"]);const fO=["onEntering"],mO=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],hO={vertical:"top",horizontal:"right"},gO={vertical:"top",horizontal:"left"},bO=eD(dO,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vO=eD(cO,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yO=eD(eO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var xO=Qt.forwardRef((function(e,t){var n,r;const o=XM({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=CL(o.TransitionProps,fO),x=CL(o,mO),S=KM(),E="rtl"===S.direction,w=wL({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return AE({root:["root"],paper:["paper"],list:["list"]},pO,t)})(w),R=i&&!s&&d,k=Qt.useRef(null);let A=-1;Qt.Children.map(a,((e,t)=>{Qt.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const P=null!=(n=b.paper)?n:vO,L=null!=(r=v.paper)?r:p,I=bD({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,l]}),M=bD({elementType:P,externalSlotProps:L,ownerState:w,className:C.paper});return Xg.jsx(bO,wL({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?hO:gO,slots:{paper:P,root:b.root},slotProps:{root:I,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:wL({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:Xg.jsx(yO,wL({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:CS(C.list,u.className),children:a}))}))}));function SO(e){return kM("MuiMenuItem",e)}var EO=AM("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const wO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CO=eD(qD,{shouldForwardProp:e=>JM(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})=>wL({},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"}},[`&.${EO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:QI(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${EO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:QI(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${EO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:QI(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})`:QI(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${EO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${EO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${s_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${s_.inset}`]:{marginLeft:52},[`& .${Y_.root}`]:{marginTop:0,marginBottom:0},[`& .${Y_.inset}`]:{paddingLeft:36},[`& .${W_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wL({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${W_.root} svg`]:{fontSize:"1.25rem"}}))));var RO=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=CL(n,wO),f=Qt.useContext(z_),m=Qt.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Qt.useRef(null);iM((()=>{r&&h.current&&h.current.focus()}),[r]);const g=wL({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wL({},a,AE({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SO,a))})(n),v=dM(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xg.jsx(z_.Provider,{value:m,children:Xg.jsx(CO,wL({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:CS(b.focusVisible,s),className:CS(b.root,d)},p,{ownerState:g,classes:b}))})}));function kO(e){return kM("MuiNativeSelect",e)}var AO=AM("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const PO=["className","disabled","error","IconComponent","inputRef","variant"],LO=({ownerState:e,theme:t})=>wL({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":wL({},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"},[`&.${AO.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}}),IO=eD("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:JM,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${AO.multiple}`]:t.multiple}]}})(LO),MO=({ownerState:e,theme:t})=>wL({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AO.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),DO=eD("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nM(n.variant)}`],n.open&&t.iconOpen]}})(MO),TO=Qt.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=CL(e,PO),u=wL({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return AE({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nM(n)}`,i&&"iconOpen",r&&"disabled"]},kO,t)})(u);return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx(IO,wL({ownerState:u,className:CS(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Xg.jsx(DO,{as:i,ownerState:u,className:c.icon})]})}));var _O,OO=TO;const NO=["children","classes","className","label","notched"],qO=eD("fieldset",{shouldForwardProp:JM})({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%"}),zO=eD("legend",{shouldForwardProp:JM})((({ownerState:e,theme:t})=>wL({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&&wL({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 FO=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jO=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:bT})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return wL({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${AT.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${AT.focused} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${AT.error} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${AT.disabled} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&wL({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),$O=eD((function(e){const{className:t,label:n,notched:r}=e,o=CL(e,NO),i=null!=n&&""!==n,a=wL({},e,{notched:r,withLabel:i});return Xg.jsx(qO,wL({"aria-hidden":!0,className:t,ownerState:a},o,{children:Xg.jsx(zO,{ownerState:a,children:i?Xg.jsx("span",{children:n}):_O||(_O=Xg.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}})),HO=eD(xT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>wL({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}))),BO=Qt.forwardRef((function(e,t){var n,r,o,i,a;const l=XM({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=CL(l,FO),b=(e=>{const{classes:t}=e;return wL({},t,AE({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kT,t))})(l),v=cT(),y=sT({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=wL({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:jO,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:HO;return Xg.jsx(wT,wL({slots:{root:S,input:E},renderSuffix:e=>Xg.jsx($O,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Xg.jsxs(Qt.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:wL({},b,{notchedOutline:null})}))}));BO.muiName="Input";var WO=BO;function UO(e){return kM("MuiSelect",e)}var VO,GO=AM("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const YO=["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"],KO=eD("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${GO.select}`]:t.select},{[`&.${GO.select}`]:t[n.variant]},{[`&.${GO.error}`]:t.error},{[`&.${GO.multiple}`]:t.multiple}]}})(LO,{[`&.${GO.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XO=eD("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nM(n.variant)}`],n.open&&t.iconOpen]}})(MO),JO=eD("input",{shouldForwardProp:e=>QM(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 QO(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ZO(e){return null==e||"string"==typeof e&&!e.trim()}const eN=Qt.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:A,SelectDisplayProps:P={},tabIndex:L,value:I,variant:M="standard"}=e,D=CL(e,YO),[T,_]=uM({controlled:I,default:c,name:"Select"}),[O,N]=uM({controlled:R,default:u,name:"Select"}),q=Qt.useRef(null),z=Qt.useRef(null),[F,j]=Qt.useState(null),{current:$}=Qt.useRef(null!=R),[H,B]=Qt.useState(),W=dM(t,h),U=Qt.useCallback((e=>{z.current=e,e&&j(e)}),[]),V=null==F?void 0:F.parentNode;Qt.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:q.current,value:T})),[T]),Qt.useEffect((()=>{u&&O&&F&&!$&&(B(a?null:V.clientWidth),z.current.focus())}),[F,a]),Qt.useEffect((()=>{i&&z.current.focus()}),[i]),Qt.useEffect((()=>{if(!g)return;const e=rM(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?C&&C(t):E&&E(t),$||(B(a?null:V.clientWidth),N(e))},Y=Qt.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.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),T!==n&&(_(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||G(!1,t)}},X=null!==F&&O;let J,Q;delete D["aria-invalid"];const Z=[];let ee=!1;(fT({value:T})||p)&&(A?J=A(T):ee=!0);const te=Y.map((e=>{if(!Qt.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(SL(2));t=T.some((t=>QO(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=QO(T,e.props.value),t&&ee&&(Q=e.props.children);return Qt.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(J=v?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):Q);let ne,re=H;!a&&$&&F&&(re=V.clientWidth),ne=void 0!==L?L:d?null:0;const oe=P.id||(y?`mui-component-select-${y}`:void 0),ie=wL({},e,{variant:M,value:T,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return AE({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nM(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},UO,t)})(ie),le=wL({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),se=sM();return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx(KO,wL({ref:U,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),G(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),x(e))},onFocus:w},P,{ownerState:ie,className:CS(P.className,ae.select,s),id:oe,children:ZO(J)?VO||(VO=Xg.jsx("span",{className:"notranslate",children:""})):J})),Xg.jsx(JO,wL({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},D)),Xg.jsx(XO,{as:m,className:ae.icon,ownerState:ie}),Xg.jsx(xO,wL({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:wL({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:se},b.MenuListProps),slotProps:wL({},b.slotProps,{paper:wL({},le,{style:wL({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var tN=eN;const nN=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rN=["root"],oN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>JM(e)&&"variant"!==e,slot:"Root"},iN=eD(L_,oN)(""),aN=eD(WO,oN)(""),lN=eD(v_,oN)(""),sN=Qt.forwardRef((function(e,t){const n=XM({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=IT,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=CL(n,nN),R=b?OO:tN,k=sT({props:n,muiFormControl:cT(),states:["variant","error"]}),A=k.variant||w,P=wL({},n,{variant:A,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),I=CL(L,rN),M=d||{standard:Xg.jsx(iN,{ownerState:P}),outlined:Xg.jsx(aN,{label:f,ownerState:P}),filled:Xg.jsx(lN,{ownerState:P})}[A],D=dM(t,M.ref);return Xg.jsx(Qt.Fragment,{children:Qt.cloneElement(M,wL({inputComponent:R,inputProps:wL({children:o,error:k.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:wL({id:c},E)},p,{classes:p?tM(I,p.classes):I},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:D,className:CS(M.props.className,a,L.root)},!d&&{variant:A},C))})}));sN.muiName="Select";var uN=sN,cN=(e={})=>Zt.createElement(lL,{...e},Zt.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Zt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Zt.createElement("rect",{stroke:WP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const dN={MuiAccordion:{styleOverrides:{root:{backgroundColor:WP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:WP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zt.createElement(oL,{"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 ${WP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,borderRadius:KP,backgroundColor:WP.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 ${WP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:WP.WHITE,color:WP.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:KP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:WP.GREYSCALE_0_15,backgroundColor:WP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:WP.GREEN_PALE},"&:active":{backgroundColor:WP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:WP.BLUE_PALE},"&:active":{backgroundColor:WP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.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:KP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:WP.GREYSCALE_0_15,backgroundColor:WP.GREYSCALE_100_60,"&:active":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:WP.PURPLE,"&.Mui-focusVisible":{borderColor:WP.PURPLE,boxShadow:`0 0 0 3px ${QI(WP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:WP.GREEN,"&.Mui-focusVisible":{borderColor:WP.GREEN,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:WP.BLUE,"&.Mui-focusVisible":{borderColor:WP.BLUE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:WP.ORANGE,"&.Mui-focusVisible":{borderColor:WP.ORANGE,boxShadow:`0 0 0 3px ${QI(WP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:WP.RED,"&.Mui-focusVisible":{borderColor:WP.RED,boxShadow:`0 0 0 3px ${QI(WP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:WP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:WP.PURPLE_PALE},"&:active":{backgroundColor:WP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:WP.PURPLE_PALE,boxShadow:`0 0 0 3px ${QI(WP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:WP.GREEN_PALE},"&:active":{backgroundColor:WP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:WP.BLUE_PALE},"&:active":{backgroundColor:WP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:WP.ORANGE_PALE},"&:active":{backgroundColor:WP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:WP.ORANGE_PALE,boxShadow:`0 0 0 3px ${QI(WP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:WP.RED_PALE},"&:active":{backgroundColor:WP.RED_DARK},"&.Mui-focusVisible":{borderColor:WP.RED_PALE,boxShadow:`0 0 0 3px ${QI(WP.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:WP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:WP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:KP,boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zt.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:UP,borderRadius:KP,color:WP.TEXT_PRIMARY,backgroundColor:WP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:WP.GREYSCALE_0_05,color:WP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:WP.GREEN,borderColor:WP.GREEN},"&.MuiChip-outlinedInfo":{color:WP.BLUE,borderColor:WP.BLUE},"&.MuiChip-outlinedWarning":{color:WP.ORANGE,borderColor:WP.ORANGE},"&.MuiChip-outlinedError":{color:WP.RED,borderColor:WP.RED}},outlined:{border:`solid 1px ${WP.GREYSCALE_0_15}`,backgroundColor:WP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:KP,boxShadow:"none",backgroundColor:WP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:WP.GREEN,borderColor:WP.GREEN},outlinedSecondary:{color:WP.BLUE,borderColor:WP.BLUE},label:{fontFamily:eL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zt.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zt.createElement(oL,{"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:KP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:KP,fontSize:VP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:WP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${WP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:WP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:WP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:WP.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:KP,border:`solid 1px ${WP.GREYSCALE_0_15}`,color:WP.GREYSCALE_0_60,marginRight:0,width:YP,height:YP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${WP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:KP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:WP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:VP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:UP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:WP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:WP.GREYSCALE_25,fontSize:UP,fontFamily:eL.FONT_FAMILY,fontWeight:QP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:WP.TEXT_PRIMARY},"&.Mui-error":{color:WP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:WP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:JP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:WP.TEXT_SECONDARY,content:"'(required)'",fontWeight:JP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:VP,lineHeight:"16px",backgroundColor:WP.WHITE,borderRadius:KP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.GREYSCALE_0_05}`,borderColor:WP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.RED}`,boxShadow:`0px 0px 0px 1px ${WP.RED}, inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.GREYSCALE_0_10}`,borderColor:WP.GREYSCALE_0_10,backgroundColor:WP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:WP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:WP.GREYSCALE_0_15,borderRadius:KP,boxShadow:`inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zt.createElement(oL,{...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:WP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:WP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&:active":{backgroundColor:WP.GREYSCALE_0_10},"&:focus":{backgroundColor:WP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${WP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:WP.GREYSCALE_0_30,"&:hover":{backgroundColor:WP.GREYSCALE_0_0,borderColor:WP.GREYSCALE_0_15},"& ~svg":{color:WP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${WP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:KP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:WP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:VP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:UP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:UP,fontWeight:QP,color:WP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:QP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${WP.GREYSCALE_0_15}, 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zt.createElement(cL,null),checkedIcon:Zt.createElement(dL,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:WP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:WP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:WP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zt.createElement(cN,null),checkedIcon:Zt.createElement(sL,null),indeterminateIcon:Zt.createElement(uL,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:KP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:WP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:WP.GREYSCALE_0_55,color:WP.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:WP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:WP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:WP.GREYSCALE_0_55,"&:hover":{color:WP.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:WP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:WP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:VP,color:WP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:QP},secondary:{fontSize:UP,color:WP.GREYSCALE_45,fontWeight:JP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:VP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&:active":{backgroundColor:WP.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:VP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:WP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:UP,borderBottom:`solid 1px ${WP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:VP,color:WP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:WP.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:WP.RED}}},"&.Mui-focusVisible":{backgroundColor:WP.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:WP.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:WP.GREEN,height:"24px","&.Mui-disabled":{color:WP.GREYSCALE_0_15}},rail:{backgroundColor:WP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${WP.GREYSCALE_0_05}`,borderRadius:KP,boxShadow:`inset 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${WP.GREYSCALE_0_05}`,borderRadius:KP},thumb:{height:"16px",width:"16px",borderRadius:KP,backgroundColor:WP.WHITE,boxShadow:`0px 1px 2px 0px ${WP.GREYSCALE_0_15}, 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`,"&:hover":{borderRadius:KP,boxShadow:`0 2px 4px 0 ${WP.GREYSCALE_0_30}, 0 0 0 1px ${WP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${WP.GREYSCALE_0_15}, 0 0 0 1px ${WP.GREYSCALE_0_06}, 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${WP.GREYSCALE_0_15}, 0 0 0 1px ${WP.GREYSCALE_0_06}, 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:WP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:WP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:WP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:WP.GREYSCALE_0_15},markLabel:{color:WP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:WP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:WP.WHITE,color:WP.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:WP.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:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:WP.GREYSCALE_0_15,borderRadius:KP},thumb:{height:"16px",width:"16px",borderRadius:KP,backgroundColor:WP.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:VP,fontWeight:QP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${WP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,backgroundColor:WP.GREYSCALE_0_03,borderRadius:KP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:WP.GREYSCALE_25,"&.Mui-selected":{color:WP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:VP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${WP.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${WP.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${WP.GREYSCALE_85}`,borderRight:`1px solid ${WP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:QP,backgroundColor:WP.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:WP.GREYSCALE_98,borderBottom:`1px solid ${WP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${WP.GREYSCALE_85}`,borderTop:`1px solid ${WP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:WP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:WP.GREYSCALE_0_05,"&:hover":{backgroundColor:WP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:WP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zt.createElement(pL,{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 ${WP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:VP,borderRadius:KP,padding:"7px 16px",border:`1px solid ${WP.GREYSCALE_0_15}`,backgroundColor:WP.GREYSCALE_100_60,color:WP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:WP.GREYSCALE_0_10,border:`1px solid ${WP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:WP.GREYSCALE_0_03,border:`1px solid ${WP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:WP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`,border:`1px solid ${WP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:WP.GREYSCALE_25,backgroundColor:WP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:WP.GREYSCALE_0_10,border:`1px solid ${WP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:UP,height:24,width:24,padding:7},sizeLarge:{fontSize:GP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:VP,borderRadius:KP}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:WP.GREYSCALE_20},tooltip:{backgroundColor:WP.GREYSCALE_20,fontSize:UP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var pN=e=>dN;const fN={mode:"light",primary:{light:WP.GREEN_PALE,main:WP.GREEN,dark:WP.GREEN_DARK,contrastText:WP.WHITE},secondary:{light:WP.BLUE_PALE,main:WP.BLUE,dark:WP.BLUE_DARK,contrastText:WP.WHITE},error:{light:WP.RED_PALE,main:WP.RED,dark:WP.RED_DARK,contrastText:WP.WHITE},warning:{light:WP.ORANGE_PALE,main:WP.ORANGE,dark:WP.ORANGE_DARK,contrastText:WP.WHITE},success:{light:WP.GREEN_PALE,main:WP.GREEN,dark:WP.GREEN_DARK,contrastText:WP.WHITE},info:{light:WP.BLUE_PALE,main:WP.BLUE,dark:WP.BLUE_DARK,contrastText:WP.WHITE},text:{primary:WP.TEXT_PRIMARY,secondary:WP.TEXT_SECONDARY,disabled:WP.GREYSCALE_0_30},action:{hover:WP.GREYSCALE_0_03,hoverOpacity:.05,selected:WP.GREYSCALE_0_05,focus:WP.MISC_FOCUS_BORDER},amethyst:{main:WP.PURPLE,light:WP.PURPLE_PALE,dark:WP.PURPLE_DARK,contrastText:WP.WHITE},background:{paper:WP.WHITE,default:WP.GREYSCALE_95},divider:WP.GREYSCALE_0_15},mN=e=>({components:pN(),palette:fN,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:VP,fontWeightLight:XP,fontWeightRegular:JP,fontWeightMedium:QP,fontWeightBold:ZP,htmlFontSize:VP,fontFamily:eL.FONT_FAMILY,button:{fontWeight:QP,fontSize:VP,textTransform:"none"},body1:{fontSize:GP,lineHeight:"24px"},body2:{fontSize:VP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:YP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:GP,fontWeight:QP,lineHeight:"16px"},h6:{fontSize:VP,fontWeight:QP,lineHeight:"16px"},caption:{color:WP.TEXT_SECONDARY},subtitle1:{fontSize:VP,color:WP.TEXT_SECONDARY},subtitle2:{fontSize:UP,color:WP.TEXT_SECONDARY}},shape:{borderRadius:KP}}),hN={...BP,MISC_FOCUS_BORDER:WP.MISC_FOCUS_BORDER},gN=mN().palette,bN={TEXT:gN.text.primary,DISABLED:gN.text.disabled,HOVER:gN.action.hover,WHITE:hN.GREYSCALE_100,BORDER_LIGHT:hN.GREYSCALE_90,BORDER_MEDIUM:hN.GREYSCALE_85,BORDER_HEAVY:hN.GREYSCALE_50,DARK_MODE_TEXT:hN.GREYSCALE_95,DARK_MODE_BORDER:hN.GREYSCALE_95,DARK_MODE_DISABLED:hN.GREYSCALE_70,DARK_MODE_BACKGROUND:hN.GREYSCALE_20},vN=(e,t)=>{const n=Q(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},yN=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,xN=e=>{const t=yN.exec(e);if(t){const[,e,n,r,o]=t;return C(+n,+r,+o,+e/255)}return C(e)},SN=e=>{const t=xN(e);return Number.isNaN(t.r)?null:t.toString()},EN=e=>{if(void 0===e)return;const t=xN(e);return t.opacity=1,t.toString()},wN=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},CN=e=>{e.stopPropagation(),e.preventDefault()},RN=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},kN=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),AN=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?AN(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},PN=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?PN(t):t},LN=e=>!e.enabled||e.active,IN=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${qm}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},MN=({focusType:e,cell:t})=>{if(t)switch(e){case EC.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case EC.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case EC.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case EC.ADD_TAB:t.setAttribute("tabIndex","0");break;case EC.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},DN=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case SC.DOWN:a<o-1-r.bottom&&a++;break;case SC.UP:a>r.top&&a--;break;case SC.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case SC.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=RN(t,a);return MN({focusType:o,cell:l}),r(a),l},TN=(e,t)=>{let n=kN(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):PC;n=n||RN(e,PC),MN({cell:n,focusType:EC.FOCUS}),t(r)},_N=(e,t,n,r)=>{var o;(MN({focusType:EC.REMOVE_TAB,cell:kN(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):MN({focusType:EC.ADD_TAB,cell:RN(t,e)})},ON=e=>e.ctrlKey||e.metaKey,NN=e=>e.shiftKey&&ON(e),qN=e=>[SC.LEFT,SC.RIGHT,SC.UP,SC.DOWN].includes(e),zN=e=>e.shiftKey&&qN(e.key),FN=(e,t=!1)=>e.key===SC.ESC&&!t||(e.key===SC.LEFT||e.key===SC.RIGHT)&&NN(e),jN=(e,t,n)=>{if(n)return EC.FOCUS;const r=t.key===SC.UP&&1===e[0],o=t.key===SC.LEFT&&1===e[0]&&0===e[1];return r||o?EC.FOCUS_BUTTON:EC.FOCUS},$N=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=jN(d,e,u);f===EC.FOCUS&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget});const m=DN({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==SC.UP&&e.key!==SC.DOWN||(e.key===SC.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===SC.UP&&0!==n.pageRowIdx||t.key===SC.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:xC.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},HN=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))CN(e),wN(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},BN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=yC.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?yC.EXCLUDED:void 0!==r[e.qElemNumber]?yC.SELECTED:yC.POSSIBLE),i},WN=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},UN=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),WN(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},VN=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&zN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&zN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===SC.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),WN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},GN=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},YN=(e,t)=>{var n;switch(t.type){case xC.SELECT:return UN(e,t.payload);case xC.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case xC.SELECT_MOUSE_UP:return((e,t)=>GN(e.isSelectMultiValues||e.firstCell!==t.cell?e:UN(e,t)))(e,t.payload);case xC.SELECT_MULTI_ADD:return VN(e,t.payload);case xC.SELECT_MULTI_END:return GN(e);case xC.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case xC.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case xC.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},KN=4/3,XN={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},JN=e=>parseInt(e,10)*KN+8+1,QN=e=>!!e&&(null!==e.color||e.index>-1);function ZN(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eq=e=>te(e)?bN.WHITE:bN.TEXT,tq=(e,t)=>e?{borderBottomColor:bN.DARK_MODE_BORDER,borderRightColor:bN.DARK_MODE_BORDER,borderLeftColor:bN.DARK_MODE_BORDER,borderTopColor:bN.DARK_MODE_BORDER}:{borderLeftColor:bN.BORDER_MEDIUM,borderRightColor:bN.BORDER_MEDIUM,borderTopColor:bN.BORDER_HEAVY,borderBottomColor:t?bN.BORDER_HEAVY:bN.BORDER_LIGHT},nq=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},rq=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:QN(null==n?void 0:n.fontColor)?ZN(bN.TEXT,t,null==n?void 0:n.fontColor):i||bN.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...tq(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function oq(e,t,n,r){var o,i;const a=null===(o=nq(e))||void 0===o?void 0:o.header,l=rq("header",t,a,n);var s,u;(l.background=t.background.isTransparent?bN.WHITE:EN(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=vN(null!==(s=l.background)&&void 0!==s?s:bN.WHITE,XN.hover),l.activeBackground=vN(null!==(u=l.background)&&void 0!==u?u:bN.WHITE,XN.active));return l.color=null!==(i=l.color)&&void 0!==i?i:te(l.background)?bN.DARK_MODE_TEXT:bN.TEXT,l}function iq(e,t,n,r){var o;const i=null===(o=nq(e))||void 0===o?void 0:o.content,a=rq("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return JN(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=QN(u)||!!d,f=QN(s)||!!c,m=p||f;let h;h=QN(s)?ZN(bN.HOVER,t,s):c||(p?"":bN.HOVER);const g=m?ZN(eq(h),t,QN(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function aq(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&SN(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=eq(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const lq=(e,t,n,r,o)=>{const i=Qt.useMemo((()=>{const i=n.totalsPosition.atTop,a=iq(e,t,n.rows.length,r),l=oq(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=nq(e))||void 0===r?void 0:r.content,i=rq("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=oq(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},sq=new Map;const uq=Qt.createContext({}),cq=function(e){const t=Qt.createContext([()=>{},new Set]);return sq.set(e,t),({children:n,value:r})=>{const o=Qt.useRef(r),i=Qt.useRef(new Set);Qt.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=Qt.useCallback((()=>o.current),[o]),l=Qt.useMemo((()=>[a,i.current]),[a]);return Xg.jsx(e.Provider,{value:r,children:Xg.jsx(t.Provider,{value:l,children:n})})}}(uq),dq={rows:[],columns:[],totalsPosition:{}},pq=({app:e,children:t,tableData:n=dq,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S})=>{const E=Qt.useMemo((()=>({isNewHeadCellMenuEnabled:x,isLinksEnabled:S})),[x,S]),[w,C]=Qt.useState(0),[R,k]=Qt.useState(o||AC),[A,P]=((e,t)=>{const[n,r]=Qt.useReducer(YN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[L,I]=Qt.useState(-1),M=lq(i,u,n,d,E),[D,T,_,O]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=rn({...r,fontWeight:FP},{maxNbrLinesOfText:3}).measureText,s=rn({...o,fontWeight:FP},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=rn(r,{maxNbrLinesOfText:3}),c=Qt.useMemo((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=Qt.useState(0),[f,m]=Qt.useState((()=>HP(e,n,c,i)));gf((()=>{m(HP(e,n-d,c,i))}),[e,n,d,c]);const h=Qt.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,M,x),N=Qt.useMemo((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:M,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,M,v,y]);return Xg.jsx(cq,{value:{headRowHeight:w,setHeadRowHeight:C,focusedCellCoord:R,setFocusedCellCoord:k,selectionState:A,selectionDispatch:P,hoverIndex:L,setHoverIndex:I,columnWidths:D,setColumnWidths:T,baseProps:N,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:O,featureFlags:E},children:t})};function fq(e,t){const n=function(e){return sq.get(e)}(e),[r,o]=Qt.useContext(n),[,i]=Qt.useReducer((e=>e+1),0),a=Qt.useRef(t),l=Qt.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=Qt.useMemo((()=>t(s)),[s,t]);return Qt.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),Qt.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function mq(e){var t;const n=_P();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),_w({...n,direction:e})}const hq=eD(BT,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${zm}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${zm}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),gq=eD(BT)({position:"absolute",height:"100%",width:"3px"}),bq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Qt.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Fm.PixelsMin:Fm.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:jm.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{CN(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},x=e=>{CN(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===Nm.LEFT||e.key===Nm.RIGHT){CN(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Nm.LEFT?t-n:t+n;h(r)}else e.key===Nm.SPACE||e.key===Nm.ENTER?(CN(e),s(e),g()):e.key===Nm.ESC&&(CN(e),s(e),h(d.initWidth))}:void 0;return Zt.createElement(hq,{className:qm,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:jm.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":qm},Zt.createElement(gq,{className:zm}))};function vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),xq=Qt.forwardRef(yq);function Sq(){return Sq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sq.apply(this,arguments)}const Eq=eD(BT,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),wq=eD(xq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Cq=eD(xO)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Rq=eD(f_)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kq=eD(RO)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Aq=eD(RO,{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")}))),Pq=eD("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Lq=eD("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Iq=eD(WD)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Mq=eD(G_)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Dq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),_q=Qt.forwardRef(Tq);let Oq={};const Nq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Qt.useState(!1),p=Qt.useRef(null),f=Qt.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Zt.createElement(Zt.Fragment,null,Zt.createElement(Aq,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Oq={}),null!=a&&a.length&&(d(!0),Oq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Zt.createElement(Pq,null),Zt.createElement(Lq,null,Zt.createElement(Mq,null,Zt.createElement(o,null)),Zt.createElement(Iq,{variant:"body2"},r)),null!=a&&a.length?Zt.createElement(_q,null):null),(null==a?void 0:a.length)&&Zt.createElement(zq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Oq,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},qq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Zt.createElement(kq,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Zt.createElement(Nq,Sq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),zq=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Zt.createElement(Cq,Sq({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[qq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Zt.createElement(Rq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,Fq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},jq=(e,t)=>e.some((e=>t[e]>0));function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Bq=Qt.forwardRef(Hq);function Wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),Vq=Qt.forwardRef(Uq);function Gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Kq=Qt.forwardRef(Yq);function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Qq=Qt.forwardRef(Jq);function Zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ez=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),tz=Qt.forwardRef(ez);function nz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),oz=Qt.forwardRef(rz);function iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const az=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),lz=Qt.forwardRef(az);function sz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),cz=Qt.forwardRef(uz);function dz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),fz=Qt.forwardRef(pz);function mz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),gz=Qt.forwardRef(hz);let bz=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const vz=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[bz.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:Bq,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:Qq,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[bz.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:tz,enabled:!0}]}]),n[bz.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:gz,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:oz,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:fz,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:lz,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:cz,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:Vq,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[bz.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:Kq,enabled:!0}]}]),p},yz=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=vf({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Qt.useState(null),[o,i]=Qt.useState(Fq);return Qt.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Qt.useCallback((()=>i(Fq)),[]),updateSelectionActionsEnabledStatus:Qt.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:jq(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:jq(["qSelected"],n.qStateCounts),canSelectPossible:jq(["qOption"],n.qStateCounts),canSelectAlternative:jq(["qAlternative"],n.qStateCounts),canSelectExcluded:jq(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Qt.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);Qt.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=Qt.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Zt.createElement(Eq,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&Zt.createElement(wq,{height:_m,className:Om,"data-testid":Om,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Zt.createElement(xq,null)),Zt.createElement(zq,{open:e,anchorEl:n.current,onClose:w,menuGroups:vz({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},xz=e=>e.isDark?{background:e.color,borderColor:bN.DARK_MODE_BORDER,color:bN.DARK_MODE_TEXT,disabledColor:bN.DARK_MODE_DISABLED,iconColor:bN.DARK_MODE_TEXT}:{background:e.color,borderColor:bN.BORDER_MEDIUM,color:bN.TEXT,disabledColor:bN.DISABLED},Sz=eD(BT,{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}`}))),Ez=eD(uN,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),wz=eD(e_,{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)}))),Cz=eD(WD)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Rz=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Qt.useMemo((()=>xz(r.background)),[r]);if(!n.active)return null;const a=o?Zt.createElement(Sz,{footerStyle:i},e):null;return t?mf.createPortal(e,t):a},kz={},Az=Qt.createContext(kz),Pz=()=>Qt.useContext(Az),Lz=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=Qt.useMemo((()=>xz(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=vf({translator:d}),x=Qt.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return Zt.createElement(Az.Provider,{value:x},e)};let Iz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Mz=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}({});function Dz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),_z=Qt.forwardRef(Tz);function Oz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),qz=Qt.forwardRef(Nz);function zz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),jz=Qt.forwardRef(Fz),$z={FirstPage:qz,PreviousPage:_z,NextPage:_q,LastPage:jz,FirstPageRTL:jz,PreviousPageRTL:_q,NextPageRTL:_z,LastPageRTL:qz},Hz=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Pz(),u=$z[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Bz=()=>{const{pageInfo:e,width:t}=Pz(),n=0===e.page,{IconComponent:r,styledProps:o}=Hz({type:Iz.FirstPage,disabledCondition:n,pageNumber:0});return t<=Mz.FirstPage?null:Zt.createElement(wz,o,Zt.createElement(r,{height:_m}))},Wz=(e,t,n=!1)=>{n&&e.key===Nm.TAB&&!e.shiftKey&&(CN(e),wN(e.target,t,!1))},Uz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Pz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Hz({type:Iz.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Wz(e,t,r):null;return o<=Mz.LastPage?null:Zt.createElement(wz,Sq({},l,{onKeyDown:s}),Zt.createElement(a,{height:_m}))},Vz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Pz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Hz({type:Iz.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Mz.FirstPage&&o>Mz.LastPage)&&t.enabled?e=>Wz(e,t,r):null;return Zt.createElement(wz,Sq({},l,{onKeyDown:s}),Zt.createElement(a,{height:_m}))},Gz=()=>{const{pageInfo:e}=Pz(),t=0===e.page,{IconComponent:n,styledProps:r}=Hz({type:Iz.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Zt.createElement(wz,r,Zt.createElement(n,{height:_m}))},Yz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=Pz(),{page:o,rowsPerPage:i}=n;if(t<=Mz.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Zt.createElement(Cz,{variant:"caption"},a)},Kz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Pz(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return Zt.createElement(Zt.Fragment,null,Zt.createElement(Cz,{variant:"caption",id:d},u,":"),Zt.createElement(Ez,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},Xz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=Pz();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Mz.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Zt.createElement(Zt.Fragment,null,t.rowsPerPageOptions.map((e=>Zt.createElement("option",{key:e,value:e},e))));return Zt.createElement(Kz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Jz=1e3,Qz="…",Zz=({totalPages:e,page:t})=>{const n=Math.min(e,Jz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Jz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Zt.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Zt.createElement("option",{key:"startMoreOptions",value:Qz,disabled:!0},Qz)),o<e-1&&a.push(Zt.createElement("option",{key:"endMoreOptions",value:Qz,disabled:!0},Qz)),Zt.createElement(Zt.Fragment,null,a)},eF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=Pz(),{page:o}=e;if(t<=Mz.SelectPage)return null;const i=Zt.createElement(Zz,{totalPages:n,page:o});return Zt.createElement(Kz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},tF=e=>Zt.createElement(Lz,e,Zt.createElement(Xz,null),Zt.createElement(eF,null),Zt.createElement(Yz,null),Zt.createElement(Bz,null),Zt.createElement(Gz,null),Zt.createElement(Vz,null),Zt.createElement(Uz,null));var nF=Qt.memo(tF);const rF=e=>Zt.createElement(Rz,e,Zt.createElement(nF,e)),oF=mC(Ak,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),iF=mC(Ak,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),aF=mC(Ak)({overflow:"hidden",textOverflow:"ellipsis"});function lF(e,t){const n=Qt.useRef(!1);Qt.useEffect((()=>{n.current?e():n.current=!0}),t)}const sF=(e,t,n)=>{Qt.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},uF=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===SC.DOWN||n===SC.UP){const t=e=>n===SC.DOWN?AN(e):PN(e);CN(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},cF=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void CN(e);if(FN(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case SC.LEFT:case SC.RIGHT:CN(e),e.key===SC.RIGHT&&s&&!a?TN(t,r):(a&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?EC.FOCUS:EC.FOCUS_BUTTON}));break;case SC.DOWN:CN(e),MN({focusType:EC.REMOVE_TAB,cell:kN(t)}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:EC.FOCUS});break;case!a&&SC.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(CN(e),TN(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget);break;case a&&SC.ENTER:case a&&SC.SPACE:i&&i(e)}},dF=e=>{const{layout:t,rect:n,theme:r}=fq(uq,(e=>e.baseProps)),o=r.name(),[i,a]=Qt.useState(0),[l,s]=Qt.useState(0);return Qt.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},pF=mC("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fF=mC(hP,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),mF=mC(QA,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),hF=()=>Xg.jsxs(Xg.Fragment,{children:[Xg.jsx(pF,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Xg.jsx(pF,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),gF=e=>e.stopPropagation(),bF=({href:e,text:t,interactions:n,color:r})=>Zt.createElement(q_,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:gF,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),vF=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Xg.jsx(iF,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||zP,10),c=Xg.jsx(iF,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Xg.jsx(aF,{minHeight:u*qP,maxHeight:u*qP*i,children:c})},yF=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=fq(uq,(e=>e.featureFlags)),{interactions:a,viewService:l}=fq(uq,(e=>e.baseProps)),s=fq(uq,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===wg.Link&&i&&!s&&(u=Xg.jsx(bF,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Xg.jsx(vF,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},xF=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{Qt.useEffect((()=>{const i=()=>{t({type:xC.RESET})},a=()=>{t({type:xC.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},SF=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:xC.SELECT_MULTI_END});n({type:xC.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:xC.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:xC.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),EF=mC(iP,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),wF=mC(PP,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),CF=mC(dP,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...jP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),RF=mC(dP,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...jP,...e,fontWeight:FP,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function kF(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=fq(uq,(e=>BN(n,e.selectionState))),l=fq(uq,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=SF(i,n,l,o),d=function(e,t){let n={};switch(t){case yC.SELECTED:n=NP.SELECTED;break;case yC.POSSIBLE:n=NP.POSSIBLE;break;case yC.EXCLUDED:n={background:`${NP.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:yC.EXCLUDED}}return{...e,...n}}(r,a);return Xg.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function AF(e,t){let n=(r=CF,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Xg.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=kF(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=Qt.useMemo((()=>aq(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Xg.jsx(e,{...t,styling:i})}}(n)),n}const PF=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=fq(uq,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=fq(uq,(e=>e.baseProps)),s=fq(uq,(e=>e.headRowHeight)),u=fq(uq,(e=>e.setFocusedCellCoord)),c=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Xg.jsx(PP,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Xg.jsx(RF,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)CN(e);else if(!FN(e))switch(e.key){case SC.LEFT:case SC.RIGHT:case SC.UP:case SC.DOWN:{CN(e);const i=jN(n,e,o);i===EC.FOCUS&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case SC.TAB:HN({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget);break;case SC.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{_N(p,r,u,i)},children:Xg.jsx(vF,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var LF=Qt.memo(PF);const IF=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=fq(uq,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=fq(uq,(e=>e.baseProps)),g=fq(uq,(e=>e.setFocusedCellCoord)),b=fq(uq,(e=>e.selectionDispatch)),v=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,x=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),S=Qt.useMemo((()=>JSON.parse(x).map((e=>{const t=e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e));return AF(t,y)}))),[x,y]),E=!(null===(r=nq(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return xF({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Xg.jsxs(EF,{lastRowBottomBorder:m,children:[l.atTop?Xg.jsx(LF,{}):void 0,o.map(((e,t)=>Xg.jsx(wF,{hoverColors:f,hover:E,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=S[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,x=aq({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Xg.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void CN(e);const p=null==c?void 0:c.isModal();if(!FN(e,p))switch(e.key){case SC.UP:case SC.DOWN:case SC.LEFT:case SC.RIGHT:CN(e),$N({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case SC.SPACE:CN(e),n.isSelectable&&o&&r({type:xC.SELECT,payload:{cell:n,evt:e,announce:a}});break;case SC.ENTER:CN(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case SC.ESC:CN(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case SC.TAB:HN({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===SC.SHIFT&&t({type:xC.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;_N([l,a],t,n,r)})(d,u,g,c,l),children:Xg.jsx(yF,{cell:d,style:x})},i)}))},`row-${t}`))),l.atBottom?Xg.jsx(LF,{}):void 0]})};var MF=Qt.memo(IF);const DF=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=fq(uq,(e=>e.baseProps)),l=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=fq(uq,(e=>e.columnWidths)),u=fq(uq,(e=>e.setColumnWidths));if(!a.active)return null;return Xg.jsx(bq,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function TF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _F=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),OF=Qt.forwardRef(_F);function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qF=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),zF=Qt.forwardRef(qF);function FF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jF=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"}),Zt.createElement("use",{fillRule:"evenodd"})),$F=Qt.forwardRef(jF),HF=mC("div")({position:"absolute",left:0,bottom:0}),BF=mC(zk,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:zP},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),WF=mC("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),UF=mC(Ak,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),VF=mC("div")({display:"flex",alignSelf:"flex-end"}),GF=mC(Ak)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),YF=mC(Ak,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),KF=mC(zk,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),XF=mC(Jk)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),JF=mC(UA)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),QF=mC("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ZF=mC(fA)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));mC("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const ej=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Xg.jsx(OF,{height:zP}):Xg.jsx(zF,{height:zP}),o=t?Xg.jsx(GF,{className:`aligned-${n}`,children:Xg.jsx($F,{height:zP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function tj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),rj=Qt.forwardRef(nj);function oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ij=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),aj=Qt.forwardRef(ij);function lj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"})),uj=Qt.forwardRef(sj);function cj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),pj=Qt.forwardRef(dj);function fj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),hj=Qt.forwardRef(mj);function gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),vj=Qt.forwardRef(bj);function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Sj=Qt.forwardRef(xj);function Ej(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ej(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Cj=Qt.forwardRef(wj);function Rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Aj=Qt.forwardRef(kj),Pj=new Map,Lj={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Ij=(e,t)=>e.some((e=>t[e]>0));function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),Tj=Qt.forwardRef(Dj);let _j={};const Oj=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=Qt.useState(!1),u=Qt.useRef(null);return Xg.jsxs(Xg.Fragment,{children:[Xg.jsxs(JF,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),_j={}),null!=a&&a.length&&(s(!0),_j[r]=s)},disabled:!i,autoFocus:e,onKeyDown:uF,children:[Xg.jsxs(QF,{children:[Xg.jsx(ZF,{children:o}),Xg.jsx(nk,{variant:"body2",children:r})]}),null!=a&&a.length?Xg.jsx(Tj,{}):null]},t),(null==a?void 0:a.length)&&Xg.jsx(zj,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=_j,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},Nj=({menuGroup:e})=>e.map((e=>Xg.jsx(Oj,{...e},e.id))),qj=({itemGroups:e})=>e.map(((t,n)=>[Nj({menuGroup:t}),n<e.length-1?Xg.jsx(XF,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),zj=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Xg.jsx(jA,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:qj({itemGroups:r})}):null,Fj=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=fq(uq,(e=>e.baseProps)),p=Qt.useRef(null),f=Qt.useRef(null),[m,h]=Qt.useState(!1),[g,b]=Qt.useState(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=((e,t)=>{const{app:n,layout:r}=fq(uq,(e=>e.baseProps)),[o,i]=Qt.useState(null),[a,l]=Qt.useState(Lj);return Qt.useEffect((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;Pj.get(e)?i(Pj.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),Pj.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:Qt.useCallback((()=>l(Lj)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:Ij(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Ij(["qSelected"],n.qStateCounts),canSelectPossible:Ij(["qOption"],n.qStateCounts),canSelectAlternative:Ij(["qAlternative"],n.qStateCounts),canSelectExcluded:Ij(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),E=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),w=Qt.useCallback((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),C=Qt.useMemo((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),w()},icon:Xg.jsx(pj,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Xg.jsx(Aj,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Xg.jsx(hj,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Xg.jsx(Cj,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Xg.jsx(vj,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Xg.jsx(Sj,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Xg.jsx(rj,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{CN(e),h(!1),IN(p)},icon:Xg.jsx(aj,{}),enabled:!0}]]),[n,c.select,l,y,w,v]);Qt.useEffect((()=>{m||x()}),[m,x]);const R=d.qInfo.qId,k=`sn-table-head-menu-button-${a}-${R}`,A=`sn-table-head-menu-${a}-${R}`;return C.length?Xg.jsxs(YF,{rightAligned:"right"===i,children:[Xg.jsx(KF,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:k,"aria-controls":m?A:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();S(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:E,children:Xg.jsx(uj,{height:zP})}),Xg.jsx("div",{ref:f}),Xg.jsx(zj,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:C,buttonId:k,menuId:A})]}):null},jj=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=fq(uq,(e=>e.baseProps)),h=fq(uq,(e=>0===e.focusedCellCoord[0])),g=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=Qt.useRef(null),v=Qt.useRef(null),{startIcon:y,endIcon:x,lockIcon:S}=ej(t),E=n&&LN(s)?0:-1,w={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Xg.jsxs(UF,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Xg.jsx(VF,{children:S}),Xg.jsxs(BF,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Xg.jsx(WF,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${w[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Xg.jsxs(Xg.Fragment,{children:[Xg.jsx(yz,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:uF,menuAvailabilityFlags:{[bz.SORTING]:!0,[bz.SEARCHING]:!0,[bz.SELECTIONS]:!0,[bz.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:IN},shouldShowMenuIcon:!g||l}),Xg.jsx(HF,{ref:v}),Xg.jsx(HF,{ref:b})]}):Xg.jsx(Fj,{column:t,tabIndex:E}))]})},$j=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=rn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:FP}),i=Qt.useCallback((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},Hj=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=Qt.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=Qt.useState(!1);return gf((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(qm)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},Bj=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},Wj=mC(dP,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...jP,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),Uj=mC("div")({display:"flex",alignItems:"center"}),Vj=mC("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:zP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Gj=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=fq(uq,(e=>e.baseProps)),{columns:c}=fq(uq,(e=>e.tableData)),d=fq(uq,(e=>e.columnWidths)),p=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=fq(uq,(e=>e.setFocusedCellCoord)),m=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=fq(uq,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=Hj({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=$j({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),w=e.isActivelySorted?wC[e.sortDirection]:void 0,C=t===n-1,R=[0,e.pageColIdx],k={width:d[t]-(C?8:9),zIndex:c.length-t},{startIcon:A,endIcon:P}=ej(e),L=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,I=S(),M=Bj(m,I.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Xg.jsxs(Wj,{headerStyle:r.head,style:k,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":w,tabIndex:L,title:o.passive?e.label:void 0,onKeyDown:e=>cF({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):MN({focusType:EC.FOCUS_BUTTON,cell:RN(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Xg.jsx(jj,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Xg.jsxs(Uj,{children:[M("right")&&Xg.jsx(Vj,{align:e.headTextAlign,children:A}),Xg.jsx(vF,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),M("left")&&Xg.jsx(Vj,{align:e.headTextAlign,children:P})]}):Xg.jsx(vF,{fontSize:r.head.fontSize,children:e.label})}),Xg.jsx(DF,{column:e,isLastColumn:C,setIsAdjustingWidth:x})]},e.id)},Yj=()=>{var e;const{columns:t}=fq(uq,(e=>e.tableData)),{styling:n,viewService:r}=fq(uq,(e=>e.baseProps)),o=fq(uq,(e=>e.setHeadRowHeight)),i=fq(uq,(e=>e.columnWidths)),a=Qt.useRef(null);return Qt.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Xg.jsx(SP,{children:Xg.jsx(PP,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Xg.jsx(Gj,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var Kj=Qt.memo(Yj);const Xj=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=fq(uq,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:C,rect:R}=fq(uq,(e=>e.baseProps)),k=fq(uq,(e=>e.focusedCellCoord)),A=fq(uq,(e=>e.setFocusedCellCoord)),P=fq(uq,(e=>e.setYScrollbarWidth)),L=fq(uq,(e=>e.showRightBorder)),I=fq(uq,(e=>e.selectionDispatch)),M=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),T=Qt.useRef(!1),_=Qt.useRef(null),O=Qt.useRef(null),{yScrollbarWidth:N}=dF(_),q=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=Fg(C,w),F=z&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,j=z&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,$=Qt.useCallback((()=>{T.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),H=Qt.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),B=Qt.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{Qt.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(O,T,v),sF(_,i,w),(()=>{const{rootElement:e,keyboard:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.focusedCellCoord)),r=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));gf((()=>{let o=r||n[0]>0?EC.FOCUS:EC.FOCUS_BUTTON;o=t.active?o:EC.BLUR;const i=t.active?RN(e,n):kN(e);MN({focusType:o,cell:i})}),[t.active,e,r])})(),Qt.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=F,e.scrollTop=j)}),[r,d,F,j]),lF((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{MN({focusType:EC.REMOVE_TAB,cell:kN(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?AC:PC;if(LN(i)){const e=n.current?EC.FOCUS:EC.ADD_TAB;n.current=!1;const o=RN(t,c);if(MN({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:k,rootElement:b,shouldRefocus:T,setFocusedCellCoord:A,isSelectionMode:M,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:D})}),[m.length,d,c,s,D]),lF((()=>{P(N)}),[N]),lF((()=>{I({type:xC.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Xg.jsxs(oF,{ref:O,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(NN(e)){CN(e);const a=Math.ceil(t/r)-1;e.key===SC.RIGHT&&n<a?(i(),o(n+1)):e.key===SC.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===SC.ESC&&a.enabled&&!l){var s;CN(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else qN(e.key)&&CN(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:H,setShouldRefocus:$,keyboard:v,isSelectionMode:M})},"data-testid":"sn-table",children:[Xg.jsx(hF,{}),Xg.jsx(fF,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Xg.jsxs(mF,{styling:E,showRightBorder:L,stickyHeader:!0,"aria-label":q,children:[Xg.jsx(Kj,{}),Xg.jsx(MF,{...e,setShouldRefocus:$,tableWrapperRef:O})]})}),Xg.jsx(rF,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:M})]})};var Jj=Qt.memo(Xj);function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}function Zj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e$(e,t){return e$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e$(e,t)}function t$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e$(e,t)}var n$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||n$(r)&&n$(o)))return!1;var r,o;return!0}function o$(e,t){var n;void 0===t&&(t=r$);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function i$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var a$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function l$(e){cancelAnimationFrame(e.id)}function s$(e,t){var n=a$();var r={id:requestAnimationFrame((function o(){a$()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var u$=-1;function c$(e){if(void 0===e&&(e=!1),-1===u$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),u$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u$}var d$=null;function p$(e){if(void 0===e&&(e=!1),null===d$||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"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d$="positive-descending":(t.scrollLeft=1,d$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d$}return d$}var f$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function m$(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Zj(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Zj(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=o$((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=o$((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=o$((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(p$()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"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&&l$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=s$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}t$(t,e),t.getDerivedStateFromProps=function(e,t){return h$(e,t),g(e),null};var b=t.prototype;return b.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)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=c$();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.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()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(p$()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l$(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?f$:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var P=R;P<=k;P++)for(var L=E;L<=w;L++)A.push(Qt.createElement(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,L)}));var I=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return Qt.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Qj({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},Qt.createElement(u||c||"div",{children:A,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(Qt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var h$=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},g$=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},b$=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},v$=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},y$=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?x$(e,t,n,i,0,r):S$(e,t,n,Math.max(0,i),r)},x$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=v$(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},S$=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&v$(e,t,r,n).offset<o;)r+=a,a*=2;return x$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},E$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=v$(e,t,n,i),u="column"===e?b$(t,i):g$(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},w$=m$({getColumnOffset:function(e,t,n){return v$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return y$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=v$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=v$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:g$,getEstimatedTotalWidth:b$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return E$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return E$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return v$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return y$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=v$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=v$("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,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),C$=function(e,t){return e};function R$(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Zj(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Zj(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=o$((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=o$((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,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=o$((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(p$()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-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,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-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&&l$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=s$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}t$(t,e),t.getDerivedStateFromProps=function(e,t){return k$(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?c$():0:s.scrollHeight>s.clientHeight?c$():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(p$()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l$(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?C$:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Qt.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return Qt.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Qj({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Qt.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._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],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(Qt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var k$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},A$=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},P$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=A$(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},L$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&A$(e,n,t).offset<r;)n+=i,i*=2;return P$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},I$=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},M$=R$({getItemOffset:function(e,t,n){return A$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:I$,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=A$(e,t,o),p=I$(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?P$(e,t,o,0,n):L$(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=A$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=A$(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 D$(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 T$=["style"],_$=["style"];function O$(e,t){var n=e.style,r=i$(e,T$),o=t.style,i=i$(t,_$);return!D$(n,o)&&!D$(r,i)}const N$=({style:e})=>Xg.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var q$=Zt.memo(N$,O$);const z$=()=>{},F$=e=>e.preventDefault();const j$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=fq(uq,(e=>e.hoverIndex===t)),c=fq(uq,(e=>e.setHoverIndex)),{interactions:d}=fq(uq,(e=>e.baseProps)),p=fq(uq,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.selectionDispatch)),r="object"==typeof e,o=fq(uq,(t=>r?BN(e,t.selectionState):yC.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=SF(F$,e,n,z$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?aq(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===yC.SELECTED?{...s,...NP.SELECTED}:r===yC.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${NP.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Xg.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.representation.text:void 0,...o,children:Xg.jsx(yF,{cell:f,style:r,virtualizedCell:!0})})}return Xg.jsx(q$,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var $$=Zt.memo(j$,O$);const H$=e=>{const t=Qt.useRef(e);return t.current=e,t},B$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,W$=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},U$=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},V$=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=Ig(e);p[o]={...e,align:qg(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:Pg(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=p[o].representation.text)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},G$=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=Qt.useRef([]),p=H$(u),f=Qt.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return V$(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=Qt.useState((()=>f(null!=r?r:[])));gf((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=Qt.useRef(new Set),r=Qt.useRef(new Set),o=Qt.useRef(new Set),i=H$(e),a=H$(t),l=Qt.useMemo((()=>({enqueue:e=>{const t=B$(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(B$(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=Qt.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(U$(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=Qt.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(W$(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return Qt.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},Y$=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=Qt.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=fq(uq,(e=>e.baseProps)),[y,x]=Qt.useState(n||24),{measureText:S,estimateLineCount:E}=rn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:jP.fontSize,10)*KN,C=8e6/o-8-1,R=Math.max(0,Math.min(p,Math.round(C/w))),k=Qt.useCallback(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(R,E({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,R,l,E,f,m]),A=Qt.useCallback(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=k(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[k,c]),P=Qt.useCallback((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),L=Qt.useCallback((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),I=H$(A),M=Qt.useCallback((()=>{const e=new Map(g.current.measuredCells);L(),e.forEach((([e,t,n,r])=>{I.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[L,c,I]);gf((()=>{L()}),[b,r]),gf((()=>{M()}),[S,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:A,getRowHeight:P,rowMeta:g,estimatedRowHeight:y,maxLineCount:R,resizeVisibleCells:e=>{if(!u)return;L();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&A(null!==(t=e.representation.text)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:M,resetRowMeta:L}};var K$;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(K$||(K$={}));const X$={enabled:!1},J$=()=>{},Q$={current:null};const Z$=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=Qt.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},eH=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},tH={overflow:"hidden",willChange:"auto"},nH=Qt.forwardRef(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=fq(uq,(e=>e.baseProps)),g=fq(uq,(e=>e.columnWidths)),b=fq(uq,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),x=Qt.useRef(null),S=Qt.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),E=!(null===(r=nq(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:w,verticalScrollDirection:C,horizontalScrollDirection:R}=(()=>{const e=Qt.useRef(0),t=Qt.useRef(0),n=Qt.useRef(K$.None),r=Qt.useRef(K$.None);return{scrollHandler:Qt.useCallback((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=K$.Down:o<t.current?n.current=K$.Up:n.current=K$.None,i>e.current?r.current=K$.Right:i<e.current?r.current=K$.Left:r.current=K$.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:k,visibleRowCount:A,visibleColumnCount:P}=Z$(p,l,o,g,u),{setCellSize:L,getRowHeight:I,rowMeta:M,estimatedRowHeight:D,maxLineCount:T,resizeVisibleCells:_}=Y$({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:x,rowCount:k,gridState:S,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:O,loadRows:N,loadColumns:q}=G$({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:k,visibleRowCount:A,visibleColumnCount:P,columns:i,setCellSize:L,gridState:S}),z=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>Qt.useCallback((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===K$.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===K$.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===K$.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===K$.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:N,loadColumns:q,verticalScrollDirection:C,horizontalScrollDirection:R,rowCount:k,pageInfo:l,gridState:S,viewService:h}),F=Qt.useMemo((()=>({rowsInPage:O,columns:i,bodyStyle:s,isHoverEnabled:E,maxLineCount:T})),[O,i,s,E,T]),j=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,k,D);return Qt.useLayoutEffect((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[k,d,a]),Qt.useLayoutEffect((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===M.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){const{selectionsAPI:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.selectionDispatch));Qt.useEffect((()=>{n({type:xC.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),xF({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:J$,keyboard:X$,tableWrapperRef:Q$})}(O),gf((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),Qt.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:j)-j,i=Math.round(o*e);var l,s,u;(M.current.lastScrollToRatio=e,1===M.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:k-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),_(O)}})),[a,j,M,k,_,O]),Xg.jsx(w$,{"data-key":"body",ref:x,innerRef:a,style:tH,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:j,rowCount:k,rowHeight:I,estimatedRowHeight:D,width:o.width,itemData:F,onItemsRendered:z,onScroll:w,itemKey:eH,className:"sn-table-body",children:$$})}));var rH=Qt.memo(nH);const oH=({width:e,height:t,children:n})=>Xg.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),iH=mC("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),aH=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=fq(uq,(e=>e.baseProps)),p=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=fq(uq,(e=>e.showRightBorder)),m=fq(uq,(e=>e.columnWidths)),h=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=Hj({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,w="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:C,allIconsDisabled:R}=$j({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:k,endIcon:A}=ej(S),P=C();a.current[e]=P;const L=Bj(h,P.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Xg.jsxs(iH,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:w,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Xg.jsx(jj,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:C,children:h?Xg.jsxs(Uj,{children:[L("right")&&Xg.jsx(Vj,{align:S.headTextAlign,children:k}),Xg.jsx(vF,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),L("left")&&Xg.jsx(Vj,{align:S.headTextAlign,children:A})]}):Xg.jsx(vF,{wordBreak:!0,lines:3,children:S.label})}),Xg.jsx(DF,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},lH=(e,t,n,r,o)=>{Qt.useLayoutEffect((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},sH={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},uH=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=fq(uq,(e=>e.baseProps)),d=fq(uq,(e=>e.columnWidths));return lH(n,u,o,d,c.name()),Xg.jsx(M$,{ref:n,layout:"horizontal",style:sH,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:aH})};var cH=Qt.memo(uH);const dH=Zt.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=fq(uq,(e=>e.baseProps));return Xg.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),pH=({children:e,rect:t})=>Xg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),fH=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=fq(uq,(e=>e.baseProps)),i=fq(uq,(e=>e.showRightBorder)),a=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Xg.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:FP},children:Xg.jsx(vF,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},mH=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=fq(uq,(e=>e.baseProps)),c=fq(uq,(e=>e.columnWidths));return lH(n,l,r,c,u.name()),Xg.jsx(M$,{ref:n,layout:"horizontal",style:sH,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:fH})};var hH=Qt.memo(mH);const gH=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=fq(uq,(e=>e.baseProps)),c=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=Y$({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:FP,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=Y$({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:FP,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,Lg(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=jP.fontSize})=>Math.max(24,JN(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},bH=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=fq(uq,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=fq(uq,(e=>e.baseProps)),d=fq(uq,(e=>e.columnWidths)),p=fq(uq,(e=>e.setYScrollbarWidth)),f=Qt.useRef(null),m=Qt.useRef(null),h=Qt.useRef(null),g=Qt.useRef(null),b=Qt.useRef(),{xScrollbarWidth:v,yScrollbarWidth:y}=dF(f),x=Qt.useMemo((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),S=Qt.useRef([]),{headerRowHeight:E,totalsRowHeight:w,bodyRowHeight:C,headerAndTotalsHeight:R,resizeAllHeaderCells:k,resizeAllTotalCells:A}=gH({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:S.current}),P=Qt.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),L=Qt.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(P,v,y)),[P,v,y]),{rowCount:I}=Z$(a,n,L,d,C),[M,D]=Qt.useState(I*C+R),T=d.reduce(((e,t)=>e+t),0),_=((e,t,n,r)=>Qt.useCallback((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),O=Qt.useCallback(((e,t=!1)=>{const n=e+R;(M<L.height&&n>L.height||t)&&D(n)}),[M,R,L.height]),N=Qt.useCallback((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),k(),A()}),[f,k,A]);Qt.useLayoutEffect((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const q=l.name();Qt.useLayoutEffect((()=>{f.current&&(f.current.scrollTop=0)}),[n,I,q]),lF((()=>{p(y)}),[y]);const z=Xg.jsx(hH,{rect:L,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:w});return Xg.jsx(dH,{ref:f,width:P.width,height:P.height,onScroll:_,children:Xg.jsx(oH,{width:T,height:M,children:Xg.jsxs(pH,{rect:L,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Xg.jsx(cH,{headerStyle:s.head,rect:L,pageInfo:n,columns:o,forwardRef:m,rowHeight:E,columResizeHandler:N,allColumnsIconVisibilityStatusRef:S}),r.atTop?z:null,Xg.jsx(rH,{ref:g,innerForwardRef:b,bodyStyle:x,rect:L,pageInfo:n,columns:o,rowHeight:C,headerAndTotalsHeight:R,syncHeight:O}),r.atBottom?z:null]})})})};var vH=Qt.memo(bH);const yH=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=fq(uq,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=fq(uq,(e=>e.tableData)),c=fq(uq,(e=>e.pageInfo)),d=fq(uq,(e=>e.setPage));return Xg.jsxs(oF,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Xg.jsx(vH,{pageInfo:c}),Xg.jsx(rF,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var xH=Qt.memo(yH);var SH,EH={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(SH||(SH={}));const wH=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(EH).forEach((t=>{e.add(EH[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===SH.FIRST?(u=s,r=SH.SECOND):(u=l,r=SH.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),CH={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},RH=({isNewHeadCellMenuEnabled:t,app:n,model:r,rootElement:o,layout:i,interactions:a,translator:l,selectionsAPI:s,theme:u,changeSortOrder:c,keyboard:d,rect:p,embed:f,reactRoot:m,applyColumnWidths:h,isFontLoaded:g,viewService:b,isLinksEnabled:v})=>{const{direction:y,footerContainer:x}=e.useOptions(),S=Fg(i,b),E=jg(i,b),w=wH(o,l),C=S?{page:b.page||CH.page,rowsPerPage:b.rowsPerPage||CH.rowsPerPage,rowsPerPageOptions:CH.rowsPerPageOptions}:CH,[R,k]=e.useState(C),[A]=e.usePromise((async()=>E?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>Mg)return r({...n,rowsPerPage:Dg(c,u),page:0}),null;const h=d>10,g=Tg(t,o),b=zg(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:qg(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:Ig(e[o]),representation:Pg(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(r,i,R,k,b):null),[i,R,r,a,E]);e.useEffect((()=>{!!(E&&m&&r&&(i.snapshotData||n)&&i&&A&&c&&u&&s&&g&&f)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=mq(o);null==t||t.render(Xg.jsx(ky,{stylisPlugins:"rtl"===o?[kC]:void 0,children:Xg.jsx(gC,{theme:x,children:Xg.jsx(pq,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Xg.jsx(Jj,{...y,direction:o})})})}))}({app:n,model:r,rootElement:o,layout:i,tableData:A,direction:y,pageInfo:R,setPageInfo:k,interactions:a,translator:l,selectionsAPI:s,theme:u,changeSortOrder:c,keyboard:d,rect:p,footerContainer:x,announce:w,embed:f,applyColumnWidths:h,viewService:b,isNewHeadCellMenuEnabled:t,isLinksEnabled:v},m)}),[n,r,m,A,a,y,u.name(),d.active,w,c,h,E,i,s,f,o,R,k,l,p,x,g,t,v])};const kH=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min($P,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},AH=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,isNewHeadCellMenuEnabled:b,isLinksEnabled:v})=>{const y=!jg(n,g),x=e.useMemo((()=>function(e,t,n){const r=Tg(e,n),o=zg(e),i=e.qHyperCube.qSize.qcy,a=Math.min($P,i),l=i>$P&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:S,setPage:E}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min($P,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/$P);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,y),{initialDataPages:w,isLoading:C}=kH({model:r,layout:n,page:S.page,shouldRender:y});e.useEffect((()=>{var e;y&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{y&&r&&c&&w&&!C&&h&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S}=e,E=mq("ltr");t.render(Xg.jsx(Zt.StrictMode,{children:Xg.jsx(gC,{theme:E,children:Xg.jsx(pq,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S,children:Xg.jsx(xH,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:x,applyColumnWidths:m,setPage:E,pageInfo:S,initialDataPages:w,viewService:g,isNewHeadCellMenuEnabled:b,isLinksEnabled:v},f)}),[t,n,r,o,i.name(),a.active,l,s,u,c,y,d,p,f,x,m,E,S,C,w,h,b,v])},PH={version:JSON.stringify("3.3.1"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function LH(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const IH=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},MH=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const DH=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||CH.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},TH=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=Tg(e,t);if(jg(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=LH(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:DH(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=IH(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(MH(m,h,g)?d:d+1)+c;let v=p+c;const y=IH(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(MH(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:DH(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},_H=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),OH=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:PH},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Ym,exportProperties:Vm,exploration:Km},ext:vh(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>pf(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:ne(o,t,n,r)})),[o.name(),t,n,r])})(r,_H,OH),v=t.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),y=t.flags.isEnabled("CLIENT_IM_5715_LINKS"),x=((t,n,r)=>e.useMemo((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,n,r)),[t.qDimensionInfo.length,n,r]))(i.qHyperCube,l,v),S=xh(i.qHyperCube,l),E=((t,n)=>{const{fontSize:r,fontFamily:o}=oq(n,t,!1),{fontSize:i,fontFamily:a}=iq(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{yh(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=TH(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>TH(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),AH({isNewHeadCellMenuEnabled:v,isLinksEnabled:y,app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:x,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:S,isFontLoaded:E,viewService:h}),RH({isNewHeadCellMenuEnabled:v,isLinksEnabled:y,app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:x,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:S,isFontLoaded:E,viewService:h})}}}}));
|
|
212
|
+
`),vD.rippleVisible,RD,550,(({theme:e})=>e.transitions.easing.easeInOut),vD.ripplePulsate,(({theme:e})=>e.transitions.duration.shorter),vD.child,vD.childLeaving,kD,550,(({theme:e})=>e.transitions.easing.easeInOut),vD.childPulsate,AD,(({theme:e})=>e.transitions.easing.easeInOut)),ID=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=CL(n,yD),[l,s]=Qt.useState([]),u=Qt.useRef(0),c=Qt.useRef(null);Qt.useEffect((()=>{c.current&&(c.current(),c.current=null)}),[l]);const d=Qt.useRef(!1),p=Qt.useRef(0),f=Qt.useRef(null),m=Qt.useRef(null);Qt.useEffect((()=>()=>{p.current&&clearTimeout(p.current)}),[]);const h=Qt.useCallback((e=>{const{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e;s((e=>[...e,Xg.jsx(LD,{classes:{ripple:CS(o.ripple,vD.ripple),rippleVisible:CS(o.rippleVisible,vD.rippleVisible),ripplePulsate:CS(o.ripplePulsate,vD.ripplePulsate),child:CS(o.child,vD.child),childLeaving:CS(o.childLeaving,vD.childLeaving),childPulsate:CS(o.childPulsate,vD.childPulsate)},timeout:550,pulsate:t,rippleX:n,rippleY:r,rippleSize:i},u.current)])),u.current+=1,c.current=a}),[o]),g=Qt.useCallback(((e={},t={},n=(()=>{}))=>{const{pulsate:o=!1,center:i=r||t.pulsate,fakeElement:a=!1}=t;if("mousedown"===(null==e?void 0:e.type)&&d.current)return void(d.current=!1);"touchstart"===(null==e?void 0:e.type)&&(d.current=!0);const l=a?null:m.current,s=l?l.getBoundingClientRect():{width:0,height:0,left:0,top:0};let u,c,g;if(i||void 0===e||0===e.clientX&&0===e.clientY||!e.clientX&&!e.touches)u=Math.round(s.width/2),c=Math.round(s.height/2);else{const{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;u=Math.round(t-s.left),c=Math.round(n-s.top)}if(i)g=Math.sqrt((2*s.width**2+s.height**2)/3),g%2==0&&(g+=1);else{const e=2*Math.max(Math.abs((l?l.clientWidth:0)-u),u)+2,t=2*Math.max(Math.abs((l?l.clientHeight:0)-c),c)+2;g=Math.sqrt(e**2+t**2)}null!=e&&e.touches?null===f.current&&(f.current=()=>{h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})},p.current=setTimeout((()=>{f.current&&(f.current(),f.current=null)}),80)):h({pulsate:o,rippleX:u,rippleY:c,rippleSize:g,cb:n})}),[r,h]),b=Qt.useCallback((()=>{g({},{pulsate:!0})}),[g]),v=Qt.useCallback(((e,t)=>{if(clearTimeout(p.current),"touchend"===(null==e?void 0:e.type)&&f.current)return f.current(),f.current=null,void(p.current=setTimeout((()=>{v(e,t)})));f.current=null,s((e=>e.length>0?e.slice(1):e)),c.current=t}),[]);return Qt.useImperativeHandle(t,(()=>({pulsate:b,start:g,stop:v})),[b,g,v]),Xg.jsx(PD,wL({className:CS(vD.root,o.root,i),ref:m},a,{children:Xg.jsx(vR,{component:null,exit:!0,children:l})}))}));var MD=ID;function DD(e){return kM("MuiButtonBase",e)}var TD=AM("MuiButtonBase",["root","disabled","focusVisible"]);const _D=["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"],OD=eD("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"},[`&.${TD.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ND=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:l="button",disabled:s=!1,disableRipple:u=!1,disableTouchRipple:c=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:h,onDragLeave:g,onFocus:b,onFocusVisible:v,onKeyDown:y,onKeyUp:x,onMouseDown:S,onMouseLeave:E,onMouseUp:w,onTouchEnd:C,onTouchMove:R,onTouchStart:k,tabIndex:A=0,TouchRippleProps:P,touchRippleRef:L,type:I}=n,M=CL(n,_D),D=Qt.useRef(null),T=Qt.useRef(null),_=dM(T,L),{isFocusVisibleRef:O,onFocus:N,onBlur:q,ref:z}=SM(),[F,j]=Qt.useState(!1);s&&F&&j(!1),Qt.useImperativeHandle(r,(()=>({focusVisible:()=>{j(!0),D.current.focus()}})),[]);const[$,H]=Qt.useState(!1);Qt.useEffect((()=>{H(!0)}),[]);const B=$&&!u&&!s;function W(e,t,n=c){return cM((r=>{t&&t(r);return!n&&T.current&&T.current[e](r),!0}))}Qt.useEffect((()=>{F&&d&&!u&&$&&T.current.pulsate()}),[u,d,F,$]);const U=W("start",S),V=W("stop",h),G=W("stop",g),Y=W("stop",w),K=W("stop",(e=>{F&&e.preventDefault(),E&&E(e)})),X=W("start",k),J=W("stop",C),Q=W("stop",R),Z=W("stop",(e=>{q(e),!1===O.current&&j(!1),f&&f(e)}),!1),ee=cM((e=>{D.current||(D.current=e.currentTarget),N(e),!0===O.current&&(j(!0),v&&v(e)),b&&b(e)})),te=()=>{const e=D.current;return l&&"button"!==l&&!("A"===e.tagName&&e.href)},ne=Qt.useRef(!1),re=cM((e=>{d&&!ne.current&&F&&T.current&&" "===e.key&&(ne.current=!0,T.current.stop(e,(()=>{T.current.start(e)}))),e.target===e.currentTarget&&te()&&" "===e.key&&e.preventDefault(),y&&y(e),e.target===e.currentTarget&&te()&&"Enter"===e.key&&!s&&(e.preventDefault(),m&&m(e))})),oe=cM((e=>{d&&" "===e.key&&T.current&&F&&!e.defaultPrevented&&(ne.current=!1,T.current.stop(e,(()=>{T.current.pulsate(e)}))),x&&x(e),m&&e.target===e.currentTarget&&te()&&" "===e.key&&!e.defaultPrevented&&m(e)}));let ie=l;"button"===ie&&(M.href||M.to)&&(ie=p);const ae={};"button"===ie?(ae.type=void 0===I?"button":I,ae.disabled=s):(M.href||M.to||(ae.role="button"),s&&(ae["aria-disabled"]=s));const le=dM(t,z,D),se=wL({},n,{centerRipple:o,component:l,disabled:s,disableRipple:u,disableTouchRipple:c,focusRipple:d,tabIndex:A,focusVisible:F}),ue=(e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=AE({root:["root",t&&"disabled",n&&"focusVisible"]},DD,o);return n&&r&&(i.root+=` ${r}`),i})(se);return Xg.jsxs(OD,wL({as:ie,className:CS(ue.root,a),ownerState:se,onBlur:Z,onClick:m,onContextMenu:V,onFocus:ee,onKeyDown:re,onKeyUp:oe,onMouseDown:U,onMouseLeave:K,onMouseUp:Y,onDragLeave:G,onTouchEnd:J,onTouchMove:Q,onTouchStart:X,ref:le,tabIndex:s?-1:A,type:I},ae,M,{children:[i,B?Xg.jsx(MD,wL({ref:_,center:o},P)):null]}))}));var qD=ND;function zD(e){return kM("MuiTypography",e)}AM("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const FD=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],jD=eD("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${nM(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})((({theme:e,ownerState:t})=>wL({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}))),$D={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},HD={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},BD=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiTypography"}),r=(e=>HD[e]||e)(n.color),o=NI(wL({},n,{color:r})),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:u=!1,paragraph:c=!1,variant:d="body1",variantMapping:p=$D}=o,f=CL(o,FD),m=wL({},o,{align:i,color:r,className:a,component:l,gutterBottom:s,noWrap:u,paragraph:c,variant:d,variantMapping:p}),h=l||(c?"p":p[d]||$D[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return AE({root:["root",i,"inherit"!==e.align&&`align${nM(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},zD,a)})(m);return Xg.jsx(jD,wL({as:h,ref:t,ownerState:m,className:CS(g.root,a)},f))}));var WD=BD;const UD=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function VD(e){const t=[],n=[];return Array.from(e.querySelectorAll(UD)).forEach(((e,r)=>{const o=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!==o&&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===o?t.push(e):n.push({documentOrder:r,tabIndex:o,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 GD(){return!0}function YD(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=VD,isEnabled:a=GD,open:l}=e,s=Qt.useRef(!1),u=Qt.useRef(null),c=Qt.useRef(null),d=Qt.useRef(null),p=Qt.useRef(null),f=Qt.useRef(!1),m=Qt.useRef(null),h=pE(t.ref,m),g=Qt.useRef(null);Qt.useEffect((()=>{l&&m.current&&(f.current=!n)}),[n,l]),Qt.useEffect((()=>{if(!l||!m.current)return;const e=sE(m.current);return m.current.contains(e.activeElement)||(m.current.hasAttribute("tabIndex")||m.current.setAttribute("tabIndex","-1"),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}}),[l]),Qt.useEffect((()=>{if(!l||!m.current)return;const e=sE(m.current),t=t=>{g.current=t,!r&&a()&&"Tab"===t.key&&e.activeElement===m.current&&t.shiftKey&&(s.current=!0,c.current&&c.current.focus())},n=()=>{const t=m.current;if(null===t)return;if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(t.contains(e.activeElement))return;if(r&&e.activeElement!==u.current&&e.activeElement!==c.current)return;if(e.activeElement!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let n=[];if(e.activeElement!==u.current&&e.activeElement!==c.current||(n=i(m.current)),n.length>0){var o,l;const e=Boolean((null==(o=g.current)?void 0:o.shiftKey)&&"Tab"===(null==(l=g.current)?void 0:l.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 o=setInterval((()=>{e.activeElement&&"BODY"===e.activeElement.tagName&&n()}),50);return()=>{clearInterval(o),e.removeEventListener("focusin",n),e.removeEventListener("keydown",t,!0)}}),[n,r,o,a,l,i]);const b=e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0};return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),Qt.cloneElement(t,{ref:h,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),Xg.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelEnd"})]})}const KD=Qt.forwardRef((function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=Qt.useState(null),l=pE(Qt.isValidElement(n)?n.ref:null,t);if(tE((()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)}),[r,o]),tE((()=>{if(i&&!o)return cE(t,i),()=>{cE(t,null)}}),[t,i,o]),o){if(Qt.isValidElement(n)){const e={ref:l};return Qt.cloneElement(n,e)}return Xg.jsx(Qt.Fragment,{children:n})}return Xg.jsx(Qt.Fragment,{children:i?ff.createPortal(n,i):i})}));function XD(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function JD(e){return parseInt(uE(e).getComputedStyle(e).paddingRight,10)||0}function QD(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,(e=>{const t=-1===i.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&&XD(e,o)}))}function ZD(e,t){let n=-1;return e.some(((e,r)=>!!t(e)&&(n=r,!0))),n}function eT(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=sE(e);return t.body===e?uE(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=kE(sE(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${JD(r)+e}px`;const t=sE(r).querySelectorAll(".mui-fixed");[].forEach.call(t,(t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${JD(t)+e}px`}))}let e;if(r.parentNode instanceof DocumentFragment)e=sE(r).body;else{const t=r.parentElement,n=uE(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 tT=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&&XD(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);QD(t,e.mount,e.modalRef,r,!0);const o=ZD(this.containers,(e=>e.container===t));return-1!==o?(this.containers[o].modals.push(e),n):(this.containers.push({modals:[e],container:t,restore:null,hiddenSiblings:r}),n)}mount(e,t){const n=ZD(this.containers,(t=>-1!==t.modals.indexOf(e))),r=this.containers[n];r.restore||(r.restore=eT(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=ZD(this.containers,(t=>-1!==t.modals.indexOf(e))),o=this.containers[r];if(o.modals.splice(o.modals.indexOf(e),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),e.modalRef&&XD(e.modalRef,t),QD(o.container,e.mount,e.modalRef,o.hiddenSiblings,!1),this.containers.splice(r,1);else{const e=o.modals[o.modals.length-1];e.modalRef&&XD(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function nT(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=tT,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:s,onClose:u,open:c,rootRef:d}=e,p=Qt.useRef({}),f=Qt.useRef(null),m=Qt.useRef(null),h=pE(m,d),[g,b]=Qt.useState(!c),v=function(e){return!!e&&e.props.hasOwnProperty("in")}(s);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const x=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(x(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},E=dE((()=>{const e=function(e){return"function"==typeof e?e():e}(t)||sE(f.current).body;o.add(x(),e),m.current&&S()})),w=Qt.useCallback((()=>o.isTopModal(x())),[o]),C=dE((e=>{f.current=e,e&&(c&&w()?S():m.current&&XD(m.current,y))})),R=Qt.useCallback((()=>{o.remove(x(),y)}),[y,o]);Qt.useEffect((()=>()=>{R()}),[R]),Qt.useEffect((()=>{c?E():v&&i||R()}),[c,R,v,i,E]);const k=e=>t=>{var r;null==(r=e.onKeyDown)||r.call(e,t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),u&&u(t,"escapeKeyDown")))},A=e=>t=>{var n;null==(n=e.onClick)||n.call(e,t),t.target===t.currentTarget&&u&&u(t,"backdropClick")};return{getRootProps:(t={})=>{const n=mD(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r=eb({},n,t);return eb({role:"presentation"},r,{onKeyDown:k(r),ref:h})},getBackdropProps:(e={})=>eb({"aria-hidden":!0},e,{onClick:A(e),open:c}),getTransitionProps:()=>({onEnter:aE((()=>{b(!1),a&&a()}),null==s?void 0:s.props.onEnter),onExited:aE((()=>{b(!0),l&&l(),i&&R()}),null==s?void 0:s.props.onExited)}),rootRef:h,portalRef:C,isTopModal:w,exited:g,hasTransition:v}}const rT=["onChange","maxRows","minRows","style","value"];function oT(e){return parseInt(e,10)||0}const iT={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function aT(e){return null==e||0===Object.keys(e).length||0===e.outerHeightStyle&&!e.overflow}const lT=Qt.forwardRef((function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,l=tb(e,rT),{current:s}=Qt.useRef(null!=a),u=Qt.useRef(null),c=pE(t,u),d=Qt.useRef(null),p=Qt.useRef(0),[f,m]=Qt.useState({outerHeightStyle:0}),h=Qt.useCallback((()=>{const t=u.current,n=uE(t).getComputedStyle(t);if("0px"===n.width)return{outerHeightStyle:0};const i=d.current;i.style.width=n.width,i.value=t.value||e.placeholder||"x","\n"===i.value.slice(-1)&&(i.value+=" ");const a=n.boxSizing,l=oT(n.paddingBottom)+oT(n.paddingTop),s=oT(n.borderBottomWidth)+oT(n.borderTopWidth),c=i.scrollHeight;i.value="x";const p=i.scrollHeight;let f=c;o&&(f=Math.max(Number(o)*p,f)),r&&(f=Math.min(Number(r)*p,f)),f=Math.max(f,p);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflow:Math.abs(f-c)<=1}}),[r,o,e.placeholder]),g=(e,t)=>{const{outerHeightStyle:n,overflow:r}=t;return p.current<20&&(n>0&&Math.abs((e.outerHeightStyle||0)-n)>1||e.overflow!==r)?(p.current+=1,{overflow:r,outerHeightStyle:n}):e},b=Qt.useCallback((()=>{const e=h();aT(e)||m((t=>g(t,e)))}),[h]);tE((()=>{const e=()=>{p.current=0,(()=>{const e=h();aT(e)||ff.flushSync((()=>{m((t=>g(t,e)))}))})()};const t=lE(e),n=u.current,r=uE(n);let o;return r.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(o=new ResizeObserver(e),o.observe(n)),()=>{t.clear(),cancelAnimationFrame(undefined),r.removeEventListener("resize",t),o&&o.disconnect()}}),[h]),tE((()=>{b()})),Qt.useEffect((()=>{p.current=0}),[a]);return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx("textarea",eb({value:a,onChange:e=>{p.current=0,s||b(),n&&n(e)},ref:c,rows:o,style:eb({height:f.outerHeightStyle,overflow:f.overflow?"hidden":void 0},i)},l)),Xg.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:eb({},iT,i,{paddingTop:0,paddingBottom:0})})]})}));function sT({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)),{})}var uT=Qt.createContext(void 0);function cT(){return Qt.useContext(uT)}function dT(e){return Xg.jsx(TI,wL({},e,{defaultTheme:YM,themeId:EL}))}function pT(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function fT(e,t=!1){return e&&(pT(e.value)&&""!==e.value||t&&pT(e.defaultValue)&&""!==e.defaultValue)}function mT(e){return kM("MuiInputBase",e)}var hT=AM("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);const gT=["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"],bT=(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${nM(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},vT=(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]},yT=eD("div",{name:"MuiInputBase",slot:"Root",overridesResolver:bT})((({theme:e,ownerState:t})=>wL({},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",[`&.${hT.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&wL({padding:"4px 0 5px"},"small"===t.size&&{paddingTop:1}),t.fullWidth&&{width:"100%"}))),xT=eD("input",{name:"MuiInputBase",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode,r=wL({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return wL({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] + .${hT.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${hT.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"})})),ST=Xg.jsx(dT,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),ET=Qt.forwardRef((function(e,t){var n;const r=XM({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:l,components:s={},componentsProps:u={},defaultValue:c,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:h,inputComponent:g="input",inputProps:b={},inputRef:v,maxRows:y,minRows:x,multiline:S=!1,name:E,onBlur:w,onChange:C,onClick:R,onFocus:k,onKeyDown:A,onKeyUp:P,placeholder:L,readOnly:I,renderSuffix:M,rows:D,slotProps:T={},slots:_={},startAdornment:O,type:N="text",value:q}=r,z=CL(r,gT),F=null!=b.value?b.value:q,{current:j}=Qt.useRef(null!=F),$=Qt.useRef(),H=Qt.useCallback((e=>{}),[]),B=dM($,v,b.ref,H),[W,U]=Qt.useState(!1),V=cT(),G=sT({props:r,muiFormControl:V,states:["color","disabled","error","hiddenLabel","size","required","filled"]});G.focused=V?V.focused:W,Qt.useEffect((()=>{!V&&d&&W&&(U(!1),w&&w())}),[V,d,W,w]);const Y=V&&V.onFilled,K=V&&V.onEmpty,X=Qt.useCallback((e=>{fT(e)?Y&&Y():K&&K()}),[Y,K]);iM((()=>{j&&X({value:F})}),[F,X,j]);Qt.useEffect((()=>{X($.current)}),[]);let J=g,Q=b;S&&"input"===J&&(Q=wL(D?{type:void 0,minRows:D,maxRows:D}:{type:void 0,maxRows:y,minRows:x},Q),J=lT);Qt.useEffect((()=>{V&&V.setAdornedStart(Boolean(O))}),[V,O]);const Z=wL({},r,{color:G.color||"primary",disabled:G.disabled,endAdornment:f,error:G.error,focused:G.focused,formControl:V,fullWidth:m,hiddenLabel:G.hiddenLabel,multiline:S,size:G.size,startAdornment:O,type:N}),ee=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:u,multiline:c,readOnly:d,size:p,startAdornment:f,type:m}=e;return AE({root:["root",`color${nM(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${nM(p)}`,c&&"multiline",f&&"adornedStart",i&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===m&&"inputTypeSearch",c&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},mT,t)})(Z),te=_.root||s.Root||yT,ne=T.root||u.root||{},re=_.input||s.Input||xT;return Q=wL({},Q,null!=(n=T.input)?n:u.input),Xg.jsxs(Qt.Fragment,{children:[!p&&ST,Xg.jsxs(te,wL({},ne,!fD(te)&&{ownerState:wL({},Z,ne.ownerState)},{ref:t,onClick:e=>{$.current&&e.currentTarget===e.target&&$.current.focus(),R&&R(e)}},z,{className:CS(ee.root,ne.className,l,I&&"MuiInputBase-readOnly"),children:[O,Xg.jsx(uT.Provider,{value:null,children:Xg.jsx(re,wL({ownerState:Z,"aria-invalid":G.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:c,disabled:G.disabled,id:h,onAnimationStart:e=>{X("mui-auto-fill-cancel"===e.animationName?$.current:{value:"x"})},name:E,placeholder:L,readOnly:I,required:G.required,rows:D,value:F,onKeyDown:A,onKeyUp:P,type:N},Q,!fD(re)&&{as:J,ownerState:wL({},Z,Q.ownerState)},{ref:B,className:CS(ee.input,Q.className,I&&"MuiInputBase-readOnly"),onBlur:e=>{w&&w(e),b.onBlur&&b.onBlur(e),V&&V.onBlur?V.onBlur(e):U(!1)},onChange:(e,...t)=>{if(!j){const t=e.target||$.current;if(null==t)throw new Error(SL(1));X({value:t.value})}b.onChange&&b.onChange(e,...t),C&&C(e,...t)},onFocus:e=>{G.disabled?e.stopPropagation():(k&&k(e),b.onFocus&&b.onFocus(e),V&&V.onFocus?V.onFocus(e):U(!0))}}))}),f,M?M(wL({},G,{startAdornment:O})):null]}))]})}));var wT=ET;function CT(e){return kM("MuiInput",e)}var RT=wL({},hT,AM("MuiInput",["root","underline","input"]));function kT(e){return kM("MuiOutlinedInput",e)}var AT=wL({},hT,AM("MuiOutlinedInput",["root","notchedOutline","input"]));function PT(e){return kM("MuiFilledInput",e)}var LT=wL({},hT,AM("MuiFilledInput",["root","underline","input"])),IT=function(e,t){function n(n,r){return Xg.jsx(aD,wL({"data-testid":`${t}Icon`,ref:r},n,{children:e}))}return n.muiName=aD.muiName,Qt.memo(Qt.forwardRef(n))}(Xg.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");const MT=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],DT={entering:{opacity:1},entered:{opacity:1}},TT=Qt.forwardRef((function(e,t){const n=KM(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:u,onEntered:c,onEntering:d,onExit:p,onExited:f,onExiting:m,style:h,timeout:g=r,TransitionComponent:b=pR}=e,v=CL(e,MT),y=Qt.useRef(null),x=dM(y,a.ref,t),S=e=>t=>{if(e){const n=y.current;void 0===t?e(n):e(n,t)}},E=S(d),w=S(((e,t)=>{lD(e);const r=sD({style:h,timeout:g,easing:l},{mode:"enter"});e.style.webkitTransition=n.transitions.create("opacity",r),e.style.transition=n.transitions.create("opacity",r),u&&u(e,t)})),C=S(c),R=S(m),k=S((e=>{const t=sD({style:h,timeout:g,easing:l},{mode:"exit"});e.style.webkitTransition=n.transitions.create("opacity",t),e.style.transition=n.transitions.create("opacity",t),p&&p(e)})),A=S(f);return Xg.jsx(b,wL({appear:i,in:s,nodeRef:y,onEnter:w,onEntered:C,onEntering:E,onExit:k,onExited:A,onExiting:R,addEndListener:e=>{o&&o(y.current,e)},timeout:g},v,{children:(e,t)=>Qt.cloneElement(a,wL({style:wL({opacity:0,visibility:"exited"!==e||s?void 0:"hidden"},DT[e],h,a.props.style),ref:x},t))}))}));var _T=TT;function OT(e){return kM("MuiBackdrop",e)}AM("MuiBackdrop",["root","invisible"]);const NT=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],qT=eD("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})((({ownerState:e})=>wL({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"}))),zT=Qt.forwardRef((function(e,t){var n,r,o;const i=XM({props:e,name:"MuiBackdrop"}),{children:a,className:l,component:s="div",components:u={},componentsProps:c={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:h=_T,transitionDuration:g}=i,b=CL(i,NT),v=wL({},i,{component:s,invisible:d}),y=(e=>{const{classes:t,invisible:n}=e;return AE({root:["root",n&&"invisible"]},OT,t)})(v),x=null!=(n=f.root)?n:c.root;return Xg.jsx(h,wL({in:p,timeout:g},b,{children:Xg.jsx(qT,wL({"aria-hidden":!0},x,{as:null!=(r=null!=(o=m.root)?o:u.Root)?r:s,className:CS(y.root,l,null==x?void 0:x.className),ownerState:wL({},v,null==x?void 0:x.ownerState),classes:y,ref:t,children:a}))}))}));var FT=zT;var jT=AM("MuiBox",["root"]);const $T=GM(),HT=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=AL("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(kI);return Qt.forwardRef((function(e,a){const l=DI(n),s=NI(e),{className:u,component:c="div"}=s,d=tb(s,qI);return Xg.jsx(i,eb({as:c,ref:a,className:CS(u,o?o(r):r),theme:t&&l[t]||l},d))}))}({themeId:EL,defaultTheme:$T,defaultClassName:jT.root,generateClassName:CM.generate});var BT=HT;function WT(e){return kM("MuiButton",e)}var UT=AM("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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);var VT=Qt.createContext({});var GT=Qt.createContext(void 0);const YT=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],KT=e=>wL({},"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}}),XT=eD(qD,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${nM(n.color)}`],t[`size${nM(n.size)}`],t[`${n.variant}Size${nM(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})((({theme:e,ownerState:t})=>{var n,r;const o="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],i="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return wL({},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":wL({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:QI(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})`:QI(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})`:QI(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:i,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":wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${UT.focusVisible}`]:wL({},"contained"===t.variant&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${UT.disabled}`]:wL({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 ${QI(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:o,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"},[`&.${UT.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${UT.disabled}`]:{boxShadow:"none"}})),JT=eD("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${nM(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:8,marginLeft:-4},"small"===e.size&&{marginLeft:-2},KT(e)))),QT=eD("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${nM(n.size)}`]]}})((({ownerState:e})=>wL({display:"inherit",marginRight:-4,marginLeft:8},"small"===e.size&&{marginRight:-2},KT(e)))),ZT=Qt.forwardRef((function(e,t){const n=Qt.useContext(VT),r=Qt.useContext(GT),o=XM({props:EM(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:u=!1,disableElevation:c=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:m=!1,size:h="medium",startIcon:g,type:b,variant:v="text"}=o,y=CL(o,YT),x=wL({},o,{color:a,component:l,disabled:u,disableElevation:c,disableFocusRipple:d,fullWidth:m,size:h,type:b,variant:v}),S=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,classes:a}=e;return wL({},a,AE({root:["root",i,`${i}${nM(t)}`,`size${nM(o)}`,`${i}Size${nM(o)}`,"inherit"===t&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${nM(o)}`],endIcon:["endIcon",`iconSize${nM(o)}`]},WT,a))})(x),E=g&&Xg.jsx(JT,{className:S.startIcon,ownerState:x,children:g}),w=p&&Xg.jsx(QT,{className:S.endIcon,ownerState:x,children:p}),C=r||"";return Xg.jsxs(XT,wL({ownerState:x,className:CS(n.className,S.root,s,C),component:l,disabled:u,focusRipple:!d,focusVisibleClassName:CS(S.focusVisible,f),ref:t,type:b},y,{classes:S,children:[E,i,w]}))}));var e_=ZT;function t_(e){return kM("MuiModal",e)}AM("MuiModal",["root","hidden","backdrop"]);const n_=["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"],r_=eD("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})=>wL({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"}))),o_=eD(FT,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),i_=Qt.forwardRef((function(e,t){var n,r,o,i,a,l;const s=XM({name:"MuiModal",props:e}),{BackdropComponent:u=o_,BackdropProps:c,className:d,closeAfterTransition:p=!1,children:f,container:m,component:h,components:g={},componentsProps:b={},disableAutoFocus:v=!1,disableEnforceFocus:y=!1,disableEscapeKeyDown:x=!1,disablePortal:S=!1,disableRestoreFocus:E=!1,disableScrollLock:w=!1,hideBackdrop:C=!1,keepMounted:R=!1,onBackdropClick:k,open:A,slotProps:P,slots:L}=s,I=CL(s,n_),M=wL({},s,{closeAfterTransition:p,disableAutoFocus:v,disableEnforceFocus:y,disableEscapeKeyDown:x,disablePortal:S,disableRestoreFocus:E,disableScrollLock:w,hideBackdrop:C,keepMounted:R}),{getRootProps:D,getBackdropProps:T,getTransitionProps:_,portalRef:O,isTopModal:N,exited:q,hasTransition:z}=nT(wL({},M,{rootRef:t})),F=wL({},M,{exited:q}),j=(e=>{const{open:t,exited:n,classes:r}=e;return AE({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},t_,r)})(F),$={};if(void 0===f.props.tabIndex&&($.tabIndex="-1"),z){const{onEnter:e,onExited:t}=_();$.onEnter=e,$.onExited=t}const H=null!=(n=null!=(r=null==L?void 0:L.root)?r:g.Root)?n:r_,B=null!=(o=null!=(i=null==L?void 0:L.backdrop)?i:g.Backdrop)?o:u,W=null!=(a=null==P?void 0:P.root)?a:b.root,U=null!=(l=null==P?void 0:P.backdrop)?l:b.backdrop,V=bD({elementType:H,externalSlotProps:W,externalForwardedProps:I,getSlotProps:D,additionalProps:{ref:t,as:h},ownerState:F,className:CS(d,null==W?void 0:W.className,null==j?void 0:j.root,!F.open&&F.exited&&(null==j?void 0:j.hidden))}),G=bD({elementType:B,externalSlotProps:U,additionalProps:c,getSlotProps:e=>T(wL({},e,{onClick:t=>{k&&k(t),null!=e&&e.onClick&&e.onClick(t)}})),className:CS(null==U?void 0:U.className,null==c?void 0:c.className,null==j?void 0:j.backdrop),ownerState:F});return R||A||z&&!q?Xg.jsx(KD,{ref:O,container:m,disablePortal:S,children:Xg.jsxs(H,wL({},V,{children:[!C&&u?Xg.jsx(B,wL({},G)):null,Xg.jsx(YD,{disableEnforceFocus:y,disableAutoFocus:v,disableRestoreFocus:E,isEnabled:N,open:A,children:Qt.cloneElement(f,$)})]}))}):null}));var a_=i_;function l_(e){return kM("MuiDivider",e)}var s_=AM("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);const u_=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],c_=eD("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})=>wL({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)`:QI(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})=>wL({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"!==t.orientation&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}})),(({theme:e,ownerState:t})=>wL({},t.children&&"vertical"===t.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}})),(({ownerState:e})=>wL({},"right"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===e.textAlign&&"vertical"!==e.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}}))),d_=eD("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})((({theme:e,ownerState:t})=>wL({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)`}))),p_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,component:a=(o?"div":"hr"),flexItem:l=!1,light:s=!1,orientation:u="horizontal",role:c=("hr"!==a?"separator":void 0),textAlign:d="center",variant:p="fullWidth"}=n,f=CL(n,u_),m=wL({},n,{absolute:r,component:a,flexItem:l,light:s,orientation:u,role:c,textAlign:d,variant:p}),h=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return AE({root:["root",t&&"absolute",s,i&&"light","vertical"===a&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===a&&"withChildrenVertical","right"===l&&"vertical"!==a&&"textAlignRight","left"===l&&"vertical"!==a&&"textAlignLeft"],wrapper:["wrapper","vertical"===a&&"wrapperVertical"]},l_,r)})(m);return Xg.jsx(c_,wL({as:a,className:CS(h.root,i),role:c,ref:t,ownerState:m},f,{children:o?Xg.jsx(d_,{className:h.wrapper,ownerState:m,children:o}):null}))}));p_.muiSkipListHighlight=!0;var f_=p_;const m_=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],h_=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bT(e,t),!n.disableUnderline&&t.underline]}})((({theme:e,ownerState:t})=>{var n;const r="light"===e.palette.mode,o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=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)",l=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return wL({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,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:i}},[`&.${LT.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${LT.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:l}},!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"},[`&.${LT.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${LT.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})`:o}`,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(.${LT.disabled}, .${LT.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${LT.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&wL({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}))})),g_=eD(xT,{name:"MuiFilledInput",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>wL({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}))),b_=Qt.forwardRef((function(e,t){var n,r,o,i;const a=XM({props:e,name:"MuiFilledInput"}),{components:l={},componentsProps:s,fullWidth:u=!1,inputComponent:c="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,h=CL(a,m_),g=wL({},a,{fullWidth:u,inputComponent:c,multiline:d,type:m}),b=(e=>{const{classes:t,disableUnderline:n}=e;return wL({},t,AE({root:["root",!n&&"underline"],input:["input"]},PT,t))})(a),v={root:{ownerState:g},input:{ownerState:g}},y=(null!=p?p:s)?tM(v,null!=p?p:s):v,x=null!=(n=null!=(r=f.root)?r:l.Root)?n:h_,S=null!=(o=null!=(i=f.input)?i:l.Input)?o:g_;return Xg.jsx(wT,wL({slots:{root:x,input:S},componentsProps:y,fullWidth:u,inputComponent:c,multiline:d,ref:t,type:m},h,{classes:b}))}));b_.muiName="Input";var v_=b_;const y_=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function x_(e){return`scale(${e}, ${e**2})`}const S_={entering:{opacity:1,transform:x_(1)},entered:{opacity:1,transform:"none"}},E_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),w_=Qt.forwardRef((function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:u,onExit:c,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:h=pR}=e,g=CL(e,y_),b=Qt.useRef(),v=Qt.useRef(),y=KM(),x=Qt.useRef(null),S=dM(x,o.ref,t),E=e=>t=>{if(e){const n=x.current;void 0===t?e(n):e(n,t)}},w=E(u),C=E(((e,t)=>{lD(e);const{duration:n,delay:r,easing:o}=sD({style:f,timeout:m,easing:i},{mode:"enter"});let a;"auto"===m?(a=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:E_?a:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)})),R=E(s),k=E(p),A=E((e=>{const{duration:t,delay:n,easing:r}=sD({style:f,timeout:m,easing:i},{mode:"exit"});let o;"auto"===m?(o=y.transitions.getAutoHeightDuration(e.clientHeight),v.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:E_?o:.666*o,delay:E_?n:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=x_(.75),c&&c(e)})),P=E(d);return Qt.useEffect((()=>()=>{clearTimeout(b.current)}),[]),Xg.jsx(h,wL({appear:r,in:a,nodeRef:x,onEnter:C,onEntered:R,onEntering:w,onExit:A,onExited:P,onExiting:k,addEndListener:e=>{"auto"===m&&(b.current=setTimeout(e,v.current||0)),n&&n(x.current,e)},timeout:"auto"===m?null:m},g,{children:(e,t)=>Qt.cloneElement(o,wL({style:wL({opacity:0,transform:x_(.75),visibility:"exited"!==e||a?void 0:"hidden"},S_[e],f,o.props.style),ref:S},t))}))}));w_.muiSupportAuto=!0;var C_=w_;const R_=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],k_=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...bT(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})`),wL({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"},[`&.${RT.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${RT.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(.${RT.disabled}, .${RT.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${RT.disabled}:before`]:{borderBottomStyle:"dotted"}})})),A_=eD(xT,{name:"MuiInput",slot:"Input",overridesResolver:vT})({}),P_=Qt.forwardRef((function(e,t){var n,r,o,i;const a=XM({props:e,name:"MuiInput"}),{disableUnderline:l,components:s={},componentsProps:u,fullWidth:c=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:h="text"}=a,g=CL(a,R_),b=(e=>{const{classes:t,disableUnderline:n}=e;return wL({},t,AE({root:["root",!n&&"underline"],input:["input"]},CT,t))})(a),v={root:{ownerState:{disableUnderline:l}}},y=(null!=f?f:u)?tM(null!=f?f:u,v):v,x=null!=(n=null!=(r=m.root)?r:s.Root)?n:k_,S=null!=(o=null!=(i=m.input)?i:s.Input)?o:A_;return Xg.jsx(wT,wL({slots:{root:x,input:S},slotProps:y,fullWidth:c,inputComponent:d,multiline:p,ref:t,type:h},g,{classes:b}))}));P_.muiName="Input";var L_=P_;function I_(e){return kM("MuiLink",e)}var M_=AM("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);const D_={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var T_=({theme:e,ownerState:t})=>{const n=(e=>D_[e]||e)(t.color),r=OL(e,`palette.${n}`,!1)||t.color,o=OL(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:QI(r,.4)};const __=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],O_=eD(WD,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`underline${nM(n.underline)}`],"button"===n.component&&t.button]}})((({theme:e,ownerState:t})=>wL({},"none"===t.underline&&{textDecoration:"none"},"hover"===t.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===t.underline&&wL({textDecoration:"underline"},"inherit"!==t.color&&{textDecorationColor:T_({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"},[`&.${M_.focusVisible}`]:{outline:"auto"}}))),N_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiLink"}),{className:r,color:o="primary",component:i="a",onBlur:a,onFocus:l,TypographyClasses:s,underline:u="always",variant:c="inherit",sx:d}=n,p=CL(n,__),{isFocusVisibleRef:f,onBlur:m,onFocus:h,ref:g}=SM(),[b,v]=Qt.useState(!1),y=dM(t,g),x=wL({},n,{color:o,component:i,focusVisible:b,underline:u,variant:c}),S=(e=>{const{classes:t,component:n,focusVisible:r,underline:o}=e;return AE({root:["root",`underline${nM(o)}`,"button"===n&&"button",r&&"focusVisible"]},I_,t)})(x);return Xg.jsx(O_,wL({color:o,className:CS(S.root,r),classes:s,component:i,onBlur:e=>{m(e),!1===f.current&&v(!1),a&&a(e)},onFocus:e=>{h(e),!0===f.current&&v(!0),l&&l(e)},ref:y,ownerState:x,variant:c,sx:[...Object.keys(D_).includes(o)?[]:[{color:o}],...Array.isArray(d)?d:[d]]},p))}));var q_=N_;var z_=Qt.createContext({});function F_(e){return kM("MuiList",e)}AM("MuiList",["root","padding","dense","subheader"]);const j_=["children","className","component","dense","disablePadding","subheader"],$_=eD("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})=>wL({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})));var H_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s}=n,u=CL(n,j_),c=Qt.useMemo((()=>({dense:a})),[a]),d=wL({},n,{component:i,dense:a,disablePadding:l}),p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return AE({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},F_,t)})(d);return Xg.jsx(z_.Provider,{value:c,children:Xg.jsxs($_,wL({as:i,className:CS(p.root,o),ref:t,ownerState:d},u,{children:[s,r]}))})}));function B_(e){return kM("MuiListItemIcon",e)}var W_=AM("MuiListItemIcon",["root","alignItemsFlexStart"]);const U_=["className"],V_=eD("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})=>wL({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===t.alignItems&&{marginTop:8})));var G_=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiListItemIcon"}),{className:r}=n,o=CL(n,U_),i=wL({},n,{alignItems:Qt.useContext(z_).alignItems}),a=(e=>{const{alignItems:t,classes:n}=e;return AE({root:["root","flex-start"===t&&"alignItemsFlexStart"]},B_,n)})(i);return Xg.jsx(V_,wL({className:CS(a.root,r),ownerState:i,ref:t},o))}));var Y_=AM("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);const K_=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function X_(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function J_(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Q_(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 Z_(e,t,n,r,o,i){let a=!1,l=o(e,t,!!t&&n);for(;l;){if(l===e.firstChild){if(a)return!1;a=!0}const t=!r&&(l.disabled||"true"===l.getAttribute("aria-disabled"));if(l.hasAttribute("tabindex")&&Q_(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}var eO=Qt.forwardRef((function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:u,variant:c="selectedMenu"}=e,d=CL(e,K_),p=Qt.useRef(null),f=Qt.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});iM((()=>{r&&p.current.focus()}),[r]),Qt.useImperativeHandle(n,(()=>({adjustStyleForScrollbar:(e,t)=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${function(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}(rM(e))}px`;p.current.style["rtl"===t.direction?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}})),[]);const m=dM(p,t);let h=-1;Qt.Children.forEach(i,((e,t)=>{Qt.isValidElement(e)?(e.props.disabled||("selectedMenu"===c&&e.props.selected||-1===h)&&(h=t),h===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(h+=1,h>=i.length&&(h=-1))):h===t&&(h+=1,h>=i.length&&(h=-1))}));const g=Qt.Children.map(i,((e,t)=>{if(t===h){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===c&&(t.tabIndex=0),Qt.cloneElement(e,t)}return e}));return Xg.jsx(H_,wL({role:"menu",ref:m,className:a,onKeyDown:e=>{const t=p.current,n=e.key,r=rM(t).activeElement;if("ArrowDown"===n)e.preventDefault(),Z_(t,r,s,l,X_);else if("ArrowUp"===n)e.preventDefault(),Z_(t,r,s,l,J_);else if("Home"===n)e.preventDefault(),Z_(t,null,s,l,X_);else if("End"===n)e.preventDefault(),Z_(t,null,s,l,J_);else if(1===n.length){const o=f.current,i=n.toLowerCase(),a=performance.now();o.keys.length>0&&(a-o.lastTime>500?(o.keys=[],o.repeating=!0,o.previousKeyMatched=!0):o.repeating&&i!==o.keys[0]&&(o.repeating=!1)),o.lastTime=a,o.keys.push(i);const s=r&&!o.repeating&&Q_(r,o);o.previousKeyMatched&&(s||Z_(t,r,!1,l,X_,o))?e.preventDefault():o.previousKeyMatched=!1}u&&u(e)},tabIndex:r?0:-1},d,{children:g}))}));function tO(e){return kM("MuiPopover",e)}AM("MuiPopover",["root","paper"]);const nO=["onEntering"],rO=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],oO=["slotProps"];function iO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function aO(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function lO(e){return[e.horizontal,e.vertical].map((e=>"number"==typeof e?`${e}px`:e)).join(" ")}function sO(e){return"function"==typeof e?e():e}const uO=eD(a_,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),cO=eD(pD,{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});var dO=Qt.forwardRef((function(e,t){var n,r,o;const i=XM({props:e,name:"MuiPopover"}),{action:a,anchorEl:l,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:c="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:h=16,open:g,PaperProps:b={},slots:v,slotProps:y,transformOrigin:x={vertical:"top",horizontal:"left"},TransitionComponent:S=C_,transitionDuration:E="auto",TransitionProps:{onEntering:w}={},disableScrollLock:C=!1}=i,R=CL(i.TransitionProps,nO),k=CL(i,rO),A=null!=(n=null==y?void 0:y.paper)?n:b,P=Qt.useRef(),L=dM(P,A.ref),I=wL({},i,{anchorOrigin:s,anchorReference:c,elevation:m,marginThreshold:h,externalPaperSlotProps:A,transformOrigin:x,TransitionComponent:S,transitionDuration:E,TransitionProps:R}),M=(e=>{const{classes:t}=e;return AE({root:["root"],paper:["paper"]},tO,t)})(I),D=Qt.useCallback((()=>{if("anchorPosition"===c)return u;const e=sO(l),t=(e&&1===e.nodeType?e:rM(P.current).body).getBoundingClientRect();return{top:t.top+iO(t,s.vertical),left:t.left+aO(t,s.horizontal)}}),[l,s.horizontal,s.vertical,u,c]),T=Qt.useCallback((e=>({vertical:iO(e,x.vertical),horizontal:aO(e,x.horizontal)})),[x.horizontal,x.vertical]),_=Qt.useCallback((e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if("none"===c)return{top:null,left:null,transformOrigin:lO(n)};const r=D();let o=r.top-n.vertical,i=r.left-n.horizontal;const a=o+t.height,s=i+t.width,u=oM(sO(l)),d=u.innerHeight-h,p=u.innerWidth-h;if(null!==h&&o<h){const e=o-h;o-=e,n.vertical+=e}else if(null!==h&&a>d){const e=a-d;o-=e,n.vertical+=e}if(null!==h&&i<h){const e=i-h;i-=e,n.horizontal+=e}else if(s>p){const e=s-p;i-=e,n.horizontal+=e}return{top:`${Math.round(o)}px`,left:`${Math.round(i)}px`,transformOrigin:lO(n)}}),[l,c,D,T,h]),[O,N]=Qt.useState(g),q=Qt.useCallback((()=>{const e=P.current;if(!e)return;const 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)}),[_]);Qt.useEffect((()=>(C&&window.addEventListener("scroll",q),()=>window.removeEventListener("scroll",q))),[l,C,q]);Qt.useEffect((()=>{g&&q()})),Qt.useImperativeHandle(a,(()=>g?{updatePosition:()=>{q()}}:null),[g,q]),Qt.useEffect((()=>{if(!g)return;const e=function(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout((()=>{e.apply(this,r)}),t)}return r.clear=()=>{clearTimeout(n)},r}((()=>{q()})),t=oM(l);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}}),[l,g,q]);let z=E;"auto"!==E||S.muiSupportAuto||(z=void 0);const F=f||(l?rM(sO(l)).body:void 0),j=null!=(r=null==v?void 0:v.root)?r:uO,$=null!=(o=null==v?void 0:v.paper)?o:cO,H=bD({elementType:$,externalSlotProps:wL({},A,{style:O?A.style:wL({},A.style,{opacity:0})}),additionalProps:{elevation:m,ref:L},ownerState:I,className:CS(M.paper,null==A?void 0:A.className)}),B=bD({elementType:j,externalSlotProps:(null==y?void 0:y.root)||{},externalForwardedProps:k,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:F,open:g},ownerState:I,className:CS(M.root,p)}),{slotProps:W}=B,U=CL(B,oO);return Xg.jsx(j,wL({},U,!fD(j)&&{slotProps:W,disableScrollLock:C},{children:Xg.jsx(S,wL({appear:!0,in:g,onEntering:(e,t)=>{w&&w(e,t),q()},onExited:()=>{N(!1)},timeout:z},R,{children:Xg.jsx($,wL({},H,{children:d}))}))}))}));function pO(e){return kM("MuiMenu",e)}AM("MuiMenu",["root","paper","list"]);const fO=["onEntering"],mO=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],hO={vertical:"top",horizontal:"right"},gO={vertical:"top",horizontal:"left"},bO=eD(dO,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),vO=eD(cO,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),yO=eD(eO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0});var xO=Qt.forwardRef((function(e,t){var n,r;const o=XM({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:s=!1,MenuListProps:u={},onClose:c,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:h}={},variant:g="selectedMenu",slots:b={},slotProps:v={}}=o,y=CL(o.TransitionProps,fO),x=CL(o,mO),S=KM(),E="rtl"===S.direction,w=wL({},o,{autoFocus:i,disableAutoFocusItem:s,MenuListProps:u,onEntering:h,PaperProps:p,transitionDuration:m,TransitionProps:y,variant:g}),C=(e=>{const{classes:t}=e;return AE({root:["root"],paper:["paper"],list:["list"]},pO,t)})(w),R=i&&!s&&d,k=Qt.useRef(null);let A=-1;Qt.Children.map(a,((e,t)=>{Qt.isValidElement(e)&&(e.props.disabled||("selectedMenu"===g&&e.props.selected||-1===A)&&(A=t))}));const P=null!=(n=b.paper)?n:vO,L=null!=(r=v.paper)?r:p,I=bD({elementType:b.root,externalSlotProps:v.root,ownerState:w,className:[C.root,l]}),M=bD({elementType:P,externalSlotProps:L,ownerState:w,className:C.paper});return Xg.jsx(bO,wL({onClose:c,anchorOrigin:{vertical:"bottom",horizontal:E?"right":"left"},transformOrigin:E?hO:gO,slots:{paper:P,root:b.root},slotProps:{root:I,paper:M},open:d,ref:t,transitionDuration:m,TransitionProps:wL({onEntering:(e,t)=>{k.current&&k.current.adjustStyleForScrollbar(e,S),h&&h(e,t)}},y),ownerState:w},x,{classes:f,children:Xg.jsx(yO,wL({onKeyDown:e=>{"Tab"===e.key&&(e.preventDefault(),c&&c(e,"tabKeyDown"))},actions:k,autoFocus:i&&(-1===A||s),autoFocusItem:R,variant:g},u,{className:CS(C.list,u.className),children:a}))}))}));function SO(e){return kM("MuiMenuItem",e)}var EO=AM("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);const wO=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],CO=eD(qD,{shouldForwardProp:e=>JM(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})=>wL({},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"}},[`&.${EO.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:QI(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${EO.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:QI(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${EO.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:QI(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})`:QI(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${EO.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${EO.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${s_.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${s_.inset}`]:{marginLeft:52},[`& .${Y_.root}`]:{marginTop:0,marginBottom:0},[`& .${Y_.inset}`]:{paddingLeft:36},[`& .${W_.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&wL({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${W_.root} svg`]:{fontSize:"1.25rem"}}))));var RO=Qt.forwardRef((function(e,t){const n=XM({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:u="menuitem",tabIndex:c,className:d}=n,p=CL(n,wO),f=Qt.useContext(z_),m=Qt.useMemo((()=>({dense:i||f.dense||!1,disableGutters:l})),[f.dense,i,l]),h=Qt.useRef(null);iM((()=>{r&&h.current&&h.current.focus()}),[r]);const g=wL({},n,{dense:m.dense,divider:a,disableGutters:l}),b=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e;return wL({},a,AE({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},SO,a))})(n),v=dM(h,t);let y;return n.disabled||(y=void 0!==c?c:-1),Xg.jsx(z_.Provider,{value:m,children:Xg.jsx(CO,wL({ref:v,role:u,tabIndex:y,component:o,focusVisibleClassName:CS(b.focusVisible,s),className:CS(b.root,d)},p,{ownerState:g,classes:b}))})}));function kO(e){return kM("MuiNativeSelect",e)}var AO=AM("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const PO=["className","disabled","error","IconComponent","inputRef","variant"],LO=({ownerState:e,theme:t})=>wL({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":wL({},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"},[`&.${AO.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}}),IO=eD("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:JM,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${AO.multiple}`]:t.multiple}]}})(LO),MO=({ownerState:e,theme:t})=>wL({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${AO.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},"filled"===e.variant&&{right:7},"outlined"===e.variant&&{right:7}),DO=eD("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nM(n.variant)}`],n.open&&t.iconOpen]}})(MO),TO=Qt.forwardRef((function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:l="standard"}=e,s=CL(e,PO),u=wL({},e,{disabled:r,variant:l,error:o}),c=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return AE({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nM(n)}`,i&&"iconOpen",r&&"disabled"]},kO,t)})(u);return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx(IO,wL({ownerState:u,className:CS(c.select,n),disabled:r,ref:a||t},s)),e.multiple?null:Xg.jsx(DO,{as:i,ownerState:u,className:c.icon})]})}));var _O,OO=TO;const NO=["children","classes","className","label","notched"],qO=eD("fieldset",{shouldForwardProp:JM})({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%"}),zO=eD("legend",{shouldForwardProp:JM})((({ownerState:e,theme:t})=>wL({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&&wL({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 FO=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],jO=eD(yT,{shouldForwardProp:e=>JM(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:bT})((({theme:e,ownerState:t})=>{const n="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return wL({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${AT.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${AT.focused} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${AT.error} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${AT.disabled} .${AT.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&wL({padding:"16.5px 14px"},"small"===t.size&&{padding:"8.5px 14px"}))})),$O=eD((function(e){const{className:t,label:n,notched:r}=e,o=CL(e,NO),i=null!=n&&""!==n,a=wL({},e,{notched:r,withLabel:i});return Xg.jsx(qO,wL({"aria-hidden":!0,className:t,ownerState:a},o,{children:Xg.jsx(zO,{ownerState:a,children:i?Xg.jsx("span",{children:n}):_O||(_O=Xg.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}})),HO=eD(xT,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:vT})((({theme:e,ownerState:t})=>wL({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}))),BO=Qt.forwardRef((function(e,t){var n,r,o,i,a;const l=XM({props:e,name:"MuiOutlinedInput"}),{components:s={},fullWidth:u=!1,inputComponent:c="input",label:d,multiline:p=!1,notched:f,slots:m={},type:h="text"}=l,g=CL(l,FO),b=(e=>{const{classes:t}=e;return wL({},t,AE({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kT,t))})(l),v=cT(),y=sT({props:l,muiFormControl:v,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x=wL({},l,{color:y.color||"primary",disabled:y.disabled,error:y.error,focused:y.focused,formControl:v,fullWidth:u,hiddenLabel:y.hiddenLabel,multiline:p,size:y.size,type:h}),S=null!=(n=null!=(r=m.root)?r:s.Root)?n:jO,E=null!=(o=null!=(i=m.input)?i:s.Input)?o:HO;return Xg.jsx(wT,wL({slots:{root:S,input:E},renderSuffix:e=>Xg.jsx($O,{ownerState:x,className:b.notchedOutline,label:null!=d&&""!==d&&y.required?a||(a=Xg.jsxs(Qt.Fragment,{children:[d," ","*"]})):d,notched:void 0!==f?f:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:u,inputComponent:c,multiline:p,ref:t,type:h},g,{classes:wL({},b,{notchedOutline:null})}))}));BO.muiName="Input";var WO=BO;function UO(e){return kM("MuiSelect",e)}var VO,GO=AM("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);const YO=["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"],KO=eD("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${GO.select}`]:t.select},{[`&.${GO.select}`]:t[n.variant]},{[`&.${GO.error}`]:t.error},{[`&.${GO.multiple}`]:t.multiple}]}})(LO,{[`&.${GO.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),XO=eD("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${nM(n.variant)}`],n.open&&t.iconOpen]}})(MO),JO=eD("input",{shouldForwardProp:e=>QM(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 QO(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}function ZO(e){return null==e||"string"==typeof e&&!e.trim()}const eN=Qt.forwardRef((function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:l,className:s,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:h,labelId:g,MenuProps:b={},multiple:v,name:y,onBlur:x,onChange:S,onClose:E,onFocus:w,onOpen:C,open:R,readOnly:k,renderValue:A,SelectDisplayProps:P={},tabIndex:L,value:I,variant:M="standard"}=e,D=CL(e,YO),[T,_]=uM({controlled:I,default:c,name:"Select"}),[O,N]=uM({controlled:R,default:u,name:"Select"}),q=Qt.useRef(null),z=Qt.useRef(null),[F,j]=Qt.useState(null),{current:$}=Qt.useRef(null!=R),[H,B]=Qt.useState(),W=dM(t,h),U=Qt.useCallback((e=>{z.current=e,e&&j(e)}),[]),V=null==F?void 0:F.parentNode;Qt.useImperativeHandle(W,(()=>({focus:()=>{z.current.focus()},node:q.current,value:T})),[T]),Qt.useEffect((()=>{u&&O&&F&&!$&&(B(a?null:V.clientWidth),z.current.focus())}),[F,a]),Qt.useEffect((()=>{i&&z.current.focus()}),[i]),Qt.useEffect((()=>{if(!g)return;const e=rM(z.current).getElementById(g);if(e){const t=()=>{getSelection().isCollapsed&&z.current.focus()};return e.addEventListener("click",t),()=>{e.removeEventListener("click",t)}}}),[g]);const G=(e,t)=>{e?C&&C(t):E&&E(t),$||(B(a?null:V.clientWidth),N(e))},Y=Qt.Children.toArray(l),K=e=>t=>{let n;if(t.currentTarget.hasAttribute("tabindex")){if(v){n=Array.isArray(T)?T.slice():[];const t=T.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),T!==n&&(_(n),S)){const r=t.nativeEvent||t,o=new r.constructor(r.type,r);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:y}}),S(o,e)}v||G(!1,t)}},X=null!==F&&O;let J,Q;delete D["aria-invalid"];const Z=[];let ee=!1;(fT({value:T})||p)&&(A?J=A(T):ee=!0);const te=Y.map((e=>{if(!Qt.isValidElement(e))return null;let t;if(v){if(!Array.isArray(T))throw new Error(SL(2));t=T.some((t=>QO(t,e.props.value))),t&&ee&&Z.push(e.props.children)}else t=QO(T,e.props.value),t&&ee&&(Q=e.props.children);return Qt.cloneElement(e,{"aria-selected":t?"true":"false",onClick:K(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})}));ee&&(J=v?0===Z.length?null:Z.reduce(((e,t,n)=>(e.push(t),n<Z.length-1&&e.push(", "),e)),[]):Q);let ne,re=H;!a&&$&&F&&(re=V.clientWidth),ne=void 0!==L?L:d?null:0;const oe=P.id||(y?`mui-component-select-${y}`:void 0),ie=wL({},e,{variant:M,value:T,open:X,error:f}),ae=(e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e;return AE({select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${nM(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]},UO,t)})(ie),le=wL({},b.PaperProps,null==(n=b.slotProps)?void 0:n.paper),se=sM();return Xg.jsxs(Qt.Fragment,{children:[Xg.jsx(KO,wL({ref:U,tabIndex:ne,role:"combobox","aria-controls":se,"aria-disabled":d?"true":void 0,"aria-expanded":X?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[g,oe].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:e=>{if(!k){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(e.key)&&(e.preventDefault(),G(!0,e))}},onMouseDown:d||k?null:e=>{0===e.button&&(e.preventDefault(),z.current.focus(),G(!0,e))},onBlur:e=>{!X&&x&&(Object.defineProperty(e,"target",{writable:!0,value:{value:T,name:y}}),x(e))},onFocus:w},P,{ownerState:ie,className:CS(P.className,ae.select,s),id:oe,children:ZO(J)?VO||(VO=Xg.jsx("span",{className:"notranslate",children:""})):J})),Xg.jsx(JO,wL({"aria-invalid":f,value:Array.isArray(T)?T.join(","):T,name:y,ref:q,"aria-hidden":!0,onChange:e=>{const t=Y.find((t=>t.props.value===e.target.value));void 0!==t&&(_(t.props.value),S&&S(e,t))},tabIndex:-1,disabled:d,className:ae.nativeInput,autoFocus:i,ownerState:ie},D)),Xg.jsx(XO,{as:m,className:ae.icon,ownerState:ie}),Xg.jsx(xO,wL({id:`menu-${y||""}`,anchorEl:V,open:X,onClose:e=>{G(!1,e)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},b,{MenuListProps:wL({"aria-labelledby":g,role:"listbox","aria-multiselectable":v?"true":void 0,disableListWrap:!0,id:se},b.MenuListProps),slotProps:wL({},b.slotProps,{paper:wL({},le,{style:wL({minWidth:re},null!=le?le.style:null)})}),children:te}))]})}));var tN=eN;const nN=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],rN=["root"],oN={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>JM(e)&&"variant"!==e,slot:"Root"},iN=eD(L_,oN)(""),aN=eD(WO,oN)(""),lN=eD(v_,oN)(""),sN=Qt.forwardRef((function(e,t){const n=XM({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:l=!1,displayEmpty:s=!1,IconComponent:u=IT,id:c,input:d,inputProps:p,label:f,labelId:m,MenuProps:h,multiple:g=!1,native:b=!1,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:E,variant:w="outlined"}=n,C=CL(n,nN),R=b?OO:tN,k=sT({props:n,muiFormControl:cT(),states:["variant","error"]}),A=k.variant||w,P=wL({},n,{variant:A,classes:i}),L=(e=>{const{classes:t}=e;return t})(P),I=CL(L,rN),M=d||{standard:Xg.jsx(iN,{ownerState:P}),outlined:Xg.jsx(aN,{label:f,ownerState:P}),filled:Xg.jsx(lN,{ownerState:P})}[A],D=dM(t,M.ref);return Xg.jsx(Qt.Fragment,{children:Qt.cloneElement(M,wL({inputComponent:R,inputProps:wL({children:o,error:k.error,IconComponent:u,variant:A,type:void 0,multiple:g},b?{id:c}:{autoWidth:r,defaultOpen:l,displayEmpty:s,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:x,renderValue:S,SelectDisplayProps:wL({id:c},E)},p,{classes:p?tM(I,p.classes):I},d?d.props.inputProps:{})},g&&b&&"outlined"===A?{notched:!0}:{},{ref:D,className:CS(M.props.className,a,L.root)},!d&&{variant:A},C))})}));sN.muiName="Select";var uN=sN,cN=(e={})=>Zt.createElement(lL,{...e},Zt.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},Zt.createElement("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},Zt.createElement("rect",{stroke:WP.GREYSCALE_0_42,fill:"currentColor",x:"0.5",y:"0.5",width:"15",height:"15",rx:"3"}))));const dN={MuiAccordion:{styleOverrides:{root:{backgroundColor:WP.GREYSCALE_98,"&:before":{backgroundColor:"unset"},"&.Mui-expanded":{margin:"0px"}}}},MuiAccordionDetails:{styleOverrides:{root:{backgroundColor:WP.WHITE}}},MuiAccordionSummary:{defaultProps:{expandIcon:Zt.createElement(oL,{"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 ${WP.GREYSCALE_0_15}`,"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,borderRadius:KP,backgroundColor:WP.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 ${WP.GREYSCALE_0_15}`},colorPrimary:{backgroundColor:WP.WHITE,color:WP.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:KP},text:{padding:"8px 16px","&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}},outlined:{padding:"7px 16px",borderColor:WP.GREYSCALE_0_15,backgroundColor:WP.GREYSCALE_100_60,"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`}},contained:{padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"}},groupedContainedPrimary:{"&:hover":{backgroundColor:WP.GREEN_PALE},"&:active":{backgroundColor:WP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},groupedContainedSecondary:{"&:hover":{backgroundColor:WP.BLUE_PALE},"&:active":{backgroundColor:WP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.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:KP,"& > i:only-child, & > svg:only-child":{marginLeft:"-9px",marginRight:"-9px"}},text:{padding:"8px 16px","&:active":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}},outlined:({ownerState:e})=>({padding:"7px 16px",borderColor:WP.GREYSCALE_0_15,backgroundColor:WP.GREYSCALE_100_60,"&:active":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`},..."amethyst"===e.color&&{borderColor:WP.PURPLE,"&.Mui-focusVisible":{borderColor:WP.PURPLE,boxShadow:`0 0 0 3px ${QI(WP.PURPLE_PALE,.5)}`}}}),outlinedPrimary:{borderColor:WP.GREEN,"&.Mui-focusVisible":{borderColor:WP.GREEN,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},outlinedSecondary:{borderColor:WP.BLUE,"&.Mui-focusVisible":{borderColor:WP.BLUE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},outlinedWarning:{borderColor:WP.ORANGE,"&.Mui-focusVisible":{borderColor:WP.ORANGE,boxShadow:`0 0 0 3px ${QI(WP.ORANGE_PALE,.5)}`}},outlinedError:{borderColor:WP.RED,"&.Mui-focusVisible":{borderColor:WP.RED,boxShadow:`0 0 0 3px ${QI(WP.RED_PALE,.5)}`}},contained:({ownerState:e})=>({color:WP.WHITE,padding:"8px 16px",boxShadow:"none","&:hover":{boxShadow:"none"},"&:active":{boxShadow:"none"},..."amethyst"===e.color&&{"&:hover":{backgroundColor:WP.PURPLE_PALE},"&:active":{backgroundColor:WP.PURPLE_DARK},"&.Mui-focusVisible":{borderColor:WP.PURPLE_PALE,boxShadow:`0 0 0 3px ${QI(WP.PURPLE_PALE,.5)}`}}}),containedPrimary:{"&:hover":{backgroundColor:WP.GREEN_PALE},"&:active":{backgroundColor:WP.GREEN_DARK},"&.Mui-focusVisible":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},containedSecondary:{"&:hover":{backgroundColor:WP.BLUE_PALE},"&:active":{backgroundColor:WP.BLUE_DARK},"&.Mui-focusVisible":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},containedWarning:{"&:hover":{backgroundColor:WP.ORANGE_PALE},"&:active":{backgroundColor:WP.ORANGE_DARK},"&.Mui-focusVisible":{borderColor:WP.ORANGE_PALE,boxShadow:`0 0 0 3px ${QI(WP.ORANGE_PALE,.5)}`}},containedError:{"&:hover":{backgroundColor:WP.RED_PALE},"&:active":{backgroundColor:WP.RED_DARK},"&.Mui-focusVisible":{borderColor:WP.RED_PALE,boxShadow:`0 0 0 3px ${QI(WP.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:WP.GREYSCALE_0_03,"&.MuiCardActionArea-focusHighlight":{opacity:0}},"&:active":{backgroundColor:WP.GREYSCALE_95,boxShadow:"none"},"&.Mui-focusVisible":{borderRadius:KP,boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,"&.MuiCardActionArea-focusHighlight":{opacity:0}}}}},MuiChip:{defaultProps:{deleteIcon:Zt.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",width:12,height:12}),variant:"outlined"},styleOverrides:{root:{height:"24px",fontSize:UP,borderRadius:KP,color:WP.TEXT_PRIMARY,backgroundColor:WP.GREYSCALE_100_15,"&.sprout-focus-visible":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{backgroundColor:WP.GREYSCALE_0_05,color:WP.GREYSCALE_0_30,border:"none",opacity:1},"&.MuiChip-outlinedSuccess":{color:WP.GREEN,borderColor:WP.GREEN},"&.MuiChip-outlinedInfo":{color:WP.BLUE,borderColor:WP.BLUE},"&.MuiChip-outlinedWarning":{color:WP.ORANGE,borderColor:WP.ORANGE},"&.MuiChip-outlinedError":{color:WP.RED,borderColor:WP.RED}},outlined:{border:`solid 1px ${WP.GREYSCALE_0_15}`,backgroundColor:WP.GREYSCALE_100_15,".MuiChip-clickable&:active ":{boxSizing:"border-box",borderRadius:KP,boxShadow:"none",backgroundColor:WP.GREYSCALE_0_10},"&.MuiChip-deleteIconSmall":{height:13,color:"inherit"}},outlinedPrimary:{color:WP.GREEN,borderColor:WP.GREEN},outlinedSecondary:{color:WP.BLUE,borderColor:WP.BLUE},label:{fontFamily:eL.FONT_FAMILY,lineHeight:"16px"}}},MuiAutocomplete:{defaultProps:{clearIcon:Zt.createElement(aL,{"aria-hidden":"true",viewBox:"0 0 16 16",height:12,width:12}),popupIcon:Zt.createElement(oL,{"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:KP},listbox:{padding:"0","& .MuiAutocomplete-option":{height:"32px",minHeight:"32px"}},option:{borderRadius:KP,fontSize:VP,height:"32px",padding:"6px 16px",minHeight:"32px","&.MuiAutocomplete-option.Mui-focused":{backgroundColor:WP.GREYSCALE_0_03,"&.Mui-focusVisible":{border:`solid 2px ${WP.MISC_FOCUS_BORDER}`,padding:"4px 14px"}},'&.MuiAutocomplete-option[aria-selected="true"]':{backgroundColor:WP.GREYSCALE_0_05,"&.Mui-focused":{backgroundColor:WP.GREYSCALE_0_05},"&.Mui-focusVisible":{backgroundColor:WP.GREYSCALE_0_05}}},endAdornment:{top:"auto",bottom:"4px",right:"4px !important",position:"absolute"},popupIndicator:{borderRadius:KP,border:`solid 1px ${WP.GREYSCALE_0_15}`,color:WP.GREYSCALE_0_60,marginRight:0,width:YP,height:YP},paper:{marginTop:"4px",boxShadow:`0px 2px 4px 0px ${WP.GREYSCALE_0_15}`},clearIndicator:{borderRadius:KP,marginRight:"4px"},popupIndicatorOpen:{backgroundColor:WP.GREYSCALE_0_10}}},MuiFormControlLabel:{styleOverrides:{root:{marginLeft:"-10px"},label:{fontSize:VP}}},MuiFormHelperText:{styleOverrides:{root:{fontSize:UP,lineHeight:"16px",margin:"4px 0 0 0","&.Mui-error":{color:WP.RED}},contained:{marginLeft:0,marginRight:0}}},MuiFormLabel:{styleOverrides:{root:{color:WP.GREYSCALE_25,fontSize:UP,fontFamily:eL.FONT_FAMILY,fontWeight:QP,fontStretch:"normal",fontStyle:"normal",letterSpacing:"normal",lineHeight:1,"&.Mui-focused":{color:WP.TEXT_PRIMARY},"&.Mui-error":{color:WP.TEXT_SECONDARY},"&[optional=true]":{"&:after":{color:WP.TEXT_SECONDARY,content:"'(optional)'",fontWeight:JP,marginLeft:"4px"}}},asterisk:{visibility:"collapse",display:"inline-flex","&::after":{visibility:"visible",color:WP.TEXT_SECONDARY,content:"'(required)'",fontWeight:JP,marginLeft:"4px"}}}},MuiOutlinedInput:{defaultProps:{notched:!1},styleOverrides:{root:{fontSize:VP,lineHeight:"16px",backgroundColor:WP.WHITE,borderRadius:KP,"&:not(.Mui-focused):not(.Mui-error):not(.Mui-disabled):hover .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.GREYSCALE_0_05}`,borderColor:WP.GREYSCALE_0_30},"&.Mui-focused:not(.Mui-error) .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.MISC_FOCUS_BORDER}`,boxShadow:`0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}, inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},"&.Mui-focused.Mui-error .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.RED}`,boxShadow:`0px 0px 0px 1px ${WP.RED}, inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},"&.Mui-disabled":{backgroundColor:"transparent"},"&.Mui-disabled .MuiOutlinedInput-notchedOutline":{border:`solid 1px ${WP.GREYSCALE_0_10}`,borderColor:WP.GREYSCALE_0_10,backgroundColor:WP.GREYSCALE_0_05}},adornedStart:{paddingLeft:0},adornedEnd:{paddingRight:0},input:{color:WP.TEXT_PRIMARY,padding:"6px 12px","&.Mui-disabled":{opacity:.45}},inputSizeSmall:{padding:"0px 12px"},notchedOutline:{borderColor:WP.GREYSCALE_0_15,borderRadius:KP,boxShadow:`inset 0 2px 0 0 ${WP.GREYSCALE_0_05}`},multiline:{padding:"0"}}},MuiSelect:{defaultProps:{IconComponent:e=>Zt.createElement(oL,{...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:WP.TEXT_SECONDARY},"& ~svg":{position:"absolute",right:"12px",top:"unset",cursor:"pointer"},"&[aria-expanded=true]":{backgroundColor:WP.GREYSCALE_0_05},"& ~fieldset":{boxShadow:"none !important",border:"none !important",backgroundColor:"unset !important"},"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&:active":{backgroundColor:WP.GREYSCALE_0_10},"&:focus":{backgroundColor:WP.GREYSCALE_0_03,borderRadius:"3px !important",border:`solid 1px ${WP.MISC_FOCUS_BORDER}`,boxShadow:`inset 0px 0px 0px 1px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{opacity:"unset",color:WP.GREYSCALE_0_30,"&:hover":{backgroundColor:WP.GREYSCALE_0_0,borderColor:WP.GREYSCALE_0_15},"& ~svg":{color:WP.GREYSCALE_0_30}}},outlined:{border:`solid 1px ${WP.GREYSCALE_0_15}`},nativeInput:{height:"42px"}}},MuiIconButton:{styleOverrides:{root:{borderRadius:KP}}},MuiInput:{styleOverrides:{root:{"&.Mui-focused":{borderColor:WP.MISC_FOCUS_BORDER,boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`}}}},MuiInputAdornment:{styleOverrides:{root:{padding:"4px 8px",color:WP.GREYSCALE_55},positionStart:{marginRight:0},positionEnd:{marginLeft:0}}},MuiInputBase:{styleOverrides:{root:{fieldset:{boxShadow:"none"}},input:{fontSize:VP,padding:"8px 12px",lineHeight:"16px","&.MuiInputBase-inputAdornedStart":{paddingLeft:0},"&.MuiInputBase-inputAdornedEnd":{paddingRight:0}},sizeSmall:{height:"24px",input:{fontSize:UP,paddingLeft:"8px"}}}},MuiInputLabel:{defaultProps:{shrink:!0},styleOverrides:{outlined:{fontSize:UP,fontWeight:QP,color:WP.GREYSCALE_25,"&.MuiInputLabel-shrink":{transform:"translate(0px, -16px)",fontWeight:QP}}}},MuiPopover:{styleOverrides:{paper:{minWidth:"160px",top:"60px",marginTop:"5px","&ul":{padding:"0px"},boxShadow:`0px 4px 10px ${WP.GREYSCALE_0_15}, 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`}}},MuiRadio:{defaultProps:{size:"small",icon:Zt.createElement(cL,null),checkedIcon:Zt.createElement(dL,null)},styleOverrides:{root:{"&:hover":{backgroundColor:"unset"},fill:WP.GREYSCALE_100_60,stroke:"black","&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:"50%",boxShadow:`0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-checked":{"&.MuiRadio-colorPrimary":{"&.sprout-focus-visible i":{borderColor:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},"&.MuiRadio-colorSecondary":{"&.sprout-focus-visible i":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},"&.Mui-disabled":{color:WP.GREYSCALE_0_20}},"&.Mui-disabled":{fill:WP.GREYSCALE_0_20,stroke:"none"}}}},MuiCheckbox:{defaultProps:{size:"small",icon:Zt.createElement(cN,null),checkedIcon:Zt.createElement(sL,null),indeterminateIcon:Zt.createElement(uL,null)},styleOverrides:{root:{borderWidth:1,"&:hover":{backgroundColor:"unset"},"&.sprout-focus-visible":{borderColor:"transparent",boxShadow:"none"},"&.sprout-focus-visible i":{borderRadius:KP,boxShadow:" 0px 0px 0px 2px #FFFFFF, 0px 0px 0px 4px #177FE6"},"&:not(.Mui-disabled)":{"&:not(.Mui-checked)":{"&:not(.MuiCheckbox-indeterminate)":{color:WP.GREYSCALE_100_60,"&:hover":{g:{rect:{stroke:WP.GREYSCALE_0_55,color:WP.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:WP.GREYSCALE_0_15,g:{rect:{stroke:"none"}}}}},colorPrimary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{"&:hover":{color:WP.GREEN_DARK}}}},colorSecondary:{"&.MuiCheckbox-root":{"&:not(.Mui-disabled)":{color:WP.GREYSCALE_0_55,"&:hover":{color:WP.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:WP.MISC_FOCUS_BORDER}},MuiListItemIcon:{styleOverrides:{root:{color:WP.GREYSCALE_25,minWidth:"16px",marginRight:"16px"}}},MuiListItemText:{styleOverrides:{root:{fontSize:"12px"},primary:{fontSize:VP,color:WP.TEXT_PRIMARY,lineHeight:"16px",fontWeight:QP},secondary:{fontSize:UP,color:WP.GREYSCALE_45,fontWeight:JP,lineHeight:"16px"}}},MuiListItem:{styleOverrides:{root:{fontSize:VP,minHeight:"32px"},gutters:{paddingLeft:"12px",paddingRight:"12px"},button:{"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&:active":{backgroundColor:WP.GREYSCALE_0_05}}}},MuiListItemButton:{styleOverrides:{root:{fontSize:VP,height:"32px"}}},MuiListSubheader:{styleOverrides:{root:{'&[role="option"]':{color:WP.TEXT_PRIMARY,lineHeight:1.33,padding:"4px 12px",fontWeight:600,fontSize:UP,borderBottom:`solid 1px ${WP.GREYSCALE_0_15}`,pointerEvents:"none"}}}},MuiList:{styleOverrides:{padding:{paddingTop:"0px",paddingBottom:"0px"}}},MuiMenuItem:{styleOverrides:{root:{fontSize:VP,color:WP.GREYSCALE_25,height:"32px",'[class*="MuiListItemIcon-root"]':{minWidth:"16px"},"&:hover":{backgroundColor:WP.GREYSCALE_0_03},"&.Mui-selected":{backgroundColor:"unset","&:hover":{backgroundColor:WP.GREYSCALE_0_10},"&.Mui-focusVisible":{backgroundColor:WP.GREYSCALE_0_10},"&:not(.Mui-disabled)":{"&::after":{content:"url('data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%228px%22%20height%3D%227px%22%20viewBox%3D%220%200%208%207%22%20version%3D%221.1%22%20%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%20aria-labelledby%3D%22Tick%22%3E%20%20%3Cg%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%3Cg%20transform%3D%22translate%280.000000%2C%20-1.000000%29%22%3E%20%20%20%20%20%20%3Cpath%20d%3D%22M7.51662484%2C1.29325%20C7.12545778%2C0.90225%206.49218732%2C0.90225%206.10202068%2C1.29325%20L2.73658335%2C4.65725%20L1.90722914%2C3.82925%20C1.5170625%2C3.43825%200.883792042%2C3.43825%200.492624979%2C3.82925%20C0.102458344%2C4.21925%200.102458344%2C4.85225%200.492624979%2C5.24325%20L2.02928127%2C6.77825%20C2.4194479%2C7.16925%203.05271836%2C7.16925%203.44388542%2C6.77825%20L7.51662484%2C2.70725%20C7.9077919%2C2.31725%207.9077919%2C1.68425%207.51662484%2C1.29325%22%3E%3C%2Fpath%3E%20%20%20%20%3C%2Fg%3E%20%20%3C%2Fg%3E%3C%2Fsvg%3E')",fontFamily:"LUI icons",position:"absolute",fontSize:"10px",right:"10px",color:WP.RED}}},"&.Mui-focusVisible":{backgroundColor:WP.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:WP.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:WP.GREEN,height:"24px","&.Mui-disabled":{color:WP.GREYSCALE_0_15}},rail:{backgroundColor:WP.GREYSCALE_0_05,height:"4px",opacity:"1",border:`solid 1px ${WP.GREYSCALE_0_05}`,borderRadius:KP,boxShadow:`inset 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`},track:{height:"4px",backgroundColor:"currentColor",opacity:"1",border:`solid 1px ${WP.GREYSCALE_0_05}`,borderRadius:KP},thumb:{height:"16px",width:"16px",borderRadius:KP,backgroundColor:WP.WHITE,boxShadow:`0px 1px 2px 0px ${WP.GREYSCALE_0_15}, 0px 0px 0px 1px ${WP.GREYSCALE_0_05}`,"&:hover":{borderRadius:KP,boxShadow:`0 2px 4px 0 ${WP.GREYSCALE_0_30}, 0 0 0 1px ${WP.GREYSCALE_0_06}`},"&:focus":{boxShadow:`0 1px 2px 0 ${WP.GREYSCALE_0_15}, 0 0 0 1px ${WP.GREYSCALE_0_06}, 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-focusVisible":{boxShadow:`0 1px 2px 0 ${WP.GREYSCALE_0_15}, 0 0 0 1px ${WP.GREYSCALE_0_06}, 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`},"&.Mui-disabled":{width:"16px",height:"16px",marginTop:"-5px",marginLeft:"-8px",backgroundColor:WP.GREYSCALE_90},"& .custom-bar":{height:"8px",width:"1px",backgroundColor:WP.GREYSCALE_0_30,marginLeft:1,marginRight:1}},mark:{width:"1px",height:"4px",margin:"16px 0px 0px 0px",backgroundColor:WP.GREYSCALE_0_15},markActive:{opacity:1,backgroundColor:WP.GREYSCALE_0_15},markLabel:{color:WP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"},markLabelActive:{color:WP.TEXT_SECONDARY,transform:"translateX(-50%)",top:"35px"}}},MuiSnackbar:{defaultProps:{anchorOrigin:{vertical:"bottom",horizontal:"center"}}},MuiSnackbarContent:{styleOverrides:{root:{backgroundColor:WP.WHITE,color:WP.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:WP.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:WP.GREEN_PALE,boxShadow:`0 0 0 3px ${QI(WP.GREEN_PALE,.5)}`}},colorSecondary:{"&.sprout-focus-visible + .MuiSwitch-track":{borderColor:WP.BLUE_PALE,boxShadow:`0 0 0 3px ${QI(WP.BLUE_PALE,.5)}`}},track:{opacity:1,backgroundColor:WP.GREYSCALE_0_15,borderRadius:KP},thumb:{height:"16px",width:"16px",borderRadius:KP,backgroundColor:WP.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:VP,fontWeight:QP,textTransform:"none",minWidth:"auto",boxSizing:"border-box",paddingBottom:"12px","&:hover":{borderBottom:`2px solid ${WP.GREYSCALE_80}`,paddingBottom:"10px"},"&.sprout-focus-visible":{boxShadow:`inset 0 0 0 2px ${WP.MISC_FOCUS_BORDER}`,backgroundColor:WP.GREYSCALE_0_03,borderRadius:KP},"&.Mui-disabled":{opacity:.3}},textColorPrimary:{color:WP.GREYSCALE_25,"&.Mui-selected":{color:WP.GREYSCALE_25}},textColorInherit:{opacity:"unset"},labelIcon:{minWidth:"40px",minHeight:"48px"}}},MuiTabs:{defaultProps:{indicatorColor:"primary",textColor:"primary"},styleOverrides:{root:{fontSize:VP,fontWeight:"bold"},scroller:{height:"100%"},flexContainer:{height:"100%",marginLeft:2,marginRight:2},indicator:{height:2},vertical:{borderRight:`1px solid ${WP.GREYSCALE_0_15}`,"& .MuiTab-root":{"&:hover":{borderBottomColor:"transparent",boxShadow:`2px 0px 0px ${WP.GREYSCALE_80}`}}}}},MuiTableCell:{styleOverrides:{root:{padding:"0px 8px 0px 16px",borderBottom:`1px solid ${WP.GREYSCALE_85}`,borderRight:`1px solid ${WP.GREYSCALE_85}`,height:"39px"},head:{height:"41px",fontWeight:QP,backgroundColor:WP.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:WP.GREYSCALE_98,borderBottom:`1px solid ${WP.GREYSCALE_85}`}}},MuiTableContainer:{styleOverrides:{root:{borderBottom:`1px solid ${WP.GREYSCALE_85}`,borderTop:`1px solid ${WP.GREYSCALE_85}`}}},MuiTableHead:{styleOverrides:{root:{backgroundColor:WP.GREYSCALE_98}}},MuiTableRow:{styleOverrides:{root:{"&.Mui-selected":{backgroundColor:WP.GREYSCALE_0_05,"&:hover":{backgroundColor:WP.GREYSCALE_0_03}},"&&:hover":{backgroundColor:WP.GREYSCALE_0_03}}}},MuiTableSortLabel:{defaultProps:{IconComponent:({className:e})=>Zt.createElement(pL,{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 ${WP.GREYSCALE_85}`}}},MuiToggleButton:{styleOverrides:{root:{height:32,lineHeight:"16px",width:32,fontSize:VP,borderRadius:KP,padding:"7px 16px",border:`1px solid ${WP.GREYSCALE_0_15}`,backgroundColor:WP.GREYSCALE_100_60,color:WP.GREYSCALE_25,zIndex:1,"&:active":{backgroundColor:WP.GREYSCALE_0_10,border:`1px solid ${WP.GREYSCALE_0_30}`},"&:hover":{backgroundColor:WP.GREYSCALE_0_03,border:`1px solid ${WP.GREYSCALE_0_30}`},"&.sprout-focus-visible":{backgroundColor:WP.GREYSCALE_0_03,boxShadow:`0 0 0 1px ${WP.MISC_FOCUS_BORDER}`,border:`1px solid ${WP.MISC_FOCUS_BORDER}`,zIndex:2},"&.Mui-selected":{color:WP.GREYSCALE_25,backgroundColor:WP.GREYSCALE_0_10,zIndex:2,"&:hover":{backgroundColor:WP.GREYSCALE_0_10,border:`1px solid ${WP.GREYSCALE_0_15}`}}},sizeSmall:{fontSize:UP,height:24,width:24,padding:7},sizeLarge:{fontSize:GP,height:40,width:40,lineHeight:"20px"}}},MuiToggleButtonGroup:{styleOverrides:{root:{height:"32px",lineHeight:"16px",fontSize:VP,borderRadius:KP}}},MuiToolbar:{defaultProps:{disableGutters:!0},styleOverrides:{root:{display:"flex",flex:1,padding:"0 16px"},dense:{minHeight:"46px",padding:"0 8px"}}},MuiTooltip:{defaultProps:{arrow:!0},styleOverrides:{arrow:{color:WP.GREYSCALE_20},tooltip:{backgroundColor:WP.GREYSCALE_20,fontSize:UP,lineHeight:"16px"},popper:{whiteSpace:"pre-line"}}}};var pN=e=>dN;const fN={mode:"light",primary:{light:WP.GREEN_PALE,main:WP.GREEN,dark:WP.GREEN_DARK,contrastText:WP.WHITE},secondary:{light:WP.BLUE_PALE,main:WP.BLUE,dark:WP.BLUE_DARK,contrastText:WP.WHITE},error:{light:WP.RED_PALE,main:WP.RED,dark:WP.RED_DARK,contrastText:WP.WHITE},warning:{light:WP.ORANGE_PALE,main:WP.ORANGE,dark:WP.ORANGE_DARK,contrastText:WP.WHITE},success:{light:WP.GREEN_PALE,main:WP.GREEN,dark:WP.GREEN_DARK,contrastText:WP.WHITE},info:{light:WP.BLUE_PALE,main:WP.BLUE,dark:WP.BLUE_DARK,contrastText:WP.WHITE},text:{primary:WP.TEXT_PRIMARY,secondary:WP.TEXT_SECONDARY,disabled:WP.GREYSCALE_0_30},action:{hover:WP.GREYSCALE_0_03,hoverOpacity:.05,selected:WP.GREYSCALE_0_05,focus:WP.MISC_FOCUS_BORDER},amethyst:{main:WP.PURPLE,light:WP.PURPLE_PALE,dark:WP.PURPLE_DARK,contrastText:WP.WHITE},background:{paper:WP.WHITE,default:WP.GREYSCALE_95},divider:WP.GREYSCALE_0_15},mN=e=>({components:pN(),palette:fN,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:VP,fontWeightLight:XP,fontWeightRegular:JP,fontWeightMedium:QP,fontWeightBold:ZP,htmlFontSize:VP,fontFamily:eL.FONT_FAMILY,button:{fontWeight:QP,fontSize:VP,textTransform:"none"},body1:{fontSize:GP,lineHeight:"24px"},body2:{fontSize:VP,lineHeight:"20px"},h1:{fontSize:32,lineHeight:"32px"},h2:{fontSize:28,lineHeight:"32px"},h3:{fontSize:YP,lineHeight:"24px"},h4:{fontSize:20,lineHeight:"24px"},h5:{fontSize:GP,fontWeight:QP,lineHeight:"16px"},h6:{fontSize:VP,fontWeight:QP,lineHeight:"16px"},caption:{color:WP.TEXT_SECONDARY},subtitle1:{fontSize:VP,color:WP.TEXT_SECONDARY},subtitle2:{fontSize:UP,color:WP.TEXT_SECONDARY}},shape:{borderRadius:KP}}),hN={...BP,MISC_FOCUS_BORDER:WP.MISC_FOCUS_BORDER},gN=mN().palette,bN={TEXT:gN.text.primary,DISABLED:gN.text.disabled,HOVER:gN.action.hover,WHITE:hN.GREYSCALE_100,BORDER_LIGHT:hN.GREYSCALE_90,BORDER_MEDIUM:hN.GREYSCALE_85,BORDER_HEAVY:hN.GREYSCALE_50,DARK_MODE_TEXT:hN.GREYSCALE_95,DARK_MODE_BORDER:hN.GREYSCALE_95,DARK_MODE_DISABLED:hN.GREYSCALE_70,DARK_MODE_BACKGROUND:hN.GREYSCALE_20},vN=(e,t)=>{const n=Q(e),r=n.l<70;return 0===n.opacity?(n.opacity=t.opacity,n.toString()):r?n.brighter(t.brighter).toString():n.darker(t.darker).toString()},yN=/^argb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i,xN=e=>{const t=yN.exec(e);if(t){const[,e,n,r,o]=t;return C(+n,+r,+o,+e/255)}return C(e)},SN=e=>{const t=xN(e);return Number.isNaN(t.r)?null:t.toString()},EN=e=>{if(void 0===e)return;const t=xN(e);return t.opacity=1,t.toString()},wN=(e,t,n)=>{var r,o,i,a;const l=null!==(r=null===(o=e.closest(".qv-object-wrapper"))||void 0===o||null===(o=o.querySelector(".sel-toolbar-confirm"))||void 0===o?void 0:o.parentElement)&&void 0!==r?r:null===(i=document.querySelector("#qv-selection-toolbar-popover .sel-toolbar-confirm"))||void 0===i?void 0:i.parentElement;l?l.focus():null===(a=t.focusSelection)||void 0===a||a.call(t,n)},CN=e=>{e.stopPropagation(),e.preventDefault()},RN=(e,t)=>{var n;return null===(n=e.getElementsByClassName("sn-table-row")[t[0]])||void 0===n?void 0:n.getElementsByClassName("sn-table-cell")[t[1]]},kN=e=>e.querySelector("td[tabindex='0'], th[tabindex='0']"),AN=e=>{const t=e.nextElementSibling;var n;return t?"HR"===t.tagName?AN(t):t:null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n[0]},PN=e=>{const t=e.previousElementSibling;if(!t){var n,r;const t=null===(n=e.parentElement)||void 0===n||null===(n=n.children)||void 0===n?void 0:n.length;return null===(r=e.parentElement)||void 0===r||null===(r=r.children)||void 0===r?void 0:r[t-1]}return"HR"===t.tagName?PN(t):t},LN=e=>!e.enabled||e.active,IN=e=>{setTimeout((()=>{var t;const n=null===(t=e.current)||void 0===t||null===(t=t.closest(".sn-table-cell"))||void 0===t?void 0:t.querySelector(`.${qm}`);null==n||n.setAttribute("tabIndex","0"),null==n||n.focus()}),0)},MN=({focusType:e,cell:t})=>{if(t)switch(e){case EC.FOCUS:t.focus(),t.setAttribute("tabIndex","0");break;case EC.FOCUS_BUTTON:const e=t.querySelector(".sn-table-head-label");null==e||e.focus();break;case EC.BLUR:t.blur(),t.setAttribute("tabIndex","-1");break;case EC.ADD_TAB:t.setAttribute("tabIndex","0");break;case EC.REMOVE_TAB:t.setAttribute("tabIndex","-1")}},DN=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:o,allowedRows:i})=>{const a=((e,t,n,r={top:0,bottom:0})=>{const o=t.getElementsByClassName("sn-table-row").length,i=t.getElementsByClassName("sn-table-head-cell").length;let[a,l]=n;switch(e.key){case SC.DOWN:a<o-1-r.bottom&&a++;break;case SC.UP:a>r.top&&a--;break;case SC.RIGHT:if(r.top>0)break;l<i-1?l++:a<o-1&&(a++,l=0);break;case SC.LEFT:if(r.top>0)break;l>0?l--:a>0&&(a--,l=i-1)}return[a,l]})(e,t,n,i),l=RN(t,a);return MN({focusType:o,cell:l}),r(a),l},TN=(e,t)=>{let n=kN(e);const r=n?((e,t)=>{const n=e.getElementsByClassName("sn-table-head-cell").length,r=e.getElementsByClassName("sn-table-cell");let o=0;for(let e=0;e<r.length;e++)if(r[e]===t){o=e;break}return[Math.ceil(o/n),o%n]})(e,n):PC;n=n||RN(e,PC),MN({cell:n,focusType:EC.FOCUS}),t(r)},_N=(e,t,n,r)=>{var o;(MN({focusType:EC.REMOVE_TAB,cell:kN(t)}),n(e),r.enabled&&!r.active)?null===(o=r.focus)||void 0===o||o.call(r):MN({focusType:EC.ADD_TAB,cell:RN(t,e)})},ON=e=>e.ctrlKey||e.metaKey,NN=e=>e.shiftKey&&ON(e),qN=e=>[SC.LEFT,SC.RIGHT,SC.UP,SC.DOWN].includes(e),zN=e=>e.shiftKey&&qN(e.key),FN=(e,t=!1)=>e.key===SC.ESC&&!t||(e.key===SC.LEFT||e.key===SC.RIGHT)&&NN(e),jN=(e,t,n)=>{if(n)return EC.FOCUS;const r=t.key===SC.UP&&1===e[0],o=t.key===SC.LEFT&&1===e[0]&&0===e[1];return r||o?EC.FOCUS_BUTTON:EC.FOCUS},$N=({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:l,isSelectionMode:s,isNewHeadCellMenuEnabled:u})=>{const c=l.atTop?2:1,d=[n.pageRowIdx+c,n.pageColIdx],p={top:s?c:0,bottom:s&&l.atBottom?1:0},f=jN(d,e,u);f===EC.FOCUS&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget});const m=DN({evt:e,rootElement:t,cellCoord:d,setFocusedCellCoord:i,focusType:f,allowedRows:p});e.key!==SC.UP&&e.key!==SC.DOWN||(e.key===SC.UP&&((e,t)=>{const n=t.getElementsByClassName("sn-table-container")[0];if(null==n||!n.scrollTo)return;const[r,o]=e;if(r<2)n.scrollTo({top:0,behavior:"auto"});else{var i;const e=t.getElementsByClassName("sn-table-head-cell")[0],a=null===(i=t.getElementsByClassName("sn-table-row")[r])||void 0===i?void 0:i.getElementsByClassName("sn-table-cell")[o];if(!a||!e)return;if(a.offsetTop-e.offsetHeight<n.scrollTop){const t=n.scrollTop-a.offsetHeight-e.offsetHeight;n.scrollTo({top:Math.max(0,t),behavior:"auto"})}}})([n.pageRowIdx,n.pageColIdx],t),((e,t,n)=>t.shiftKey&&(t.key===SC.UP&&0!==n.pageRowIdx||t.key===SC.DOWN&&!n.isLastRow)&&e&&n.isSelectable)(o,e,n)?r({type:xC.SELECT_MULTI_ADD,payload:{cell:n,evt:e,announce:a}}):((e,t,n=!1)=>{n&&t&&e(t.classList.contains("selected")?{keys:["SNTable.SelectionLabel.SelectedValue"]}:{keys:["SNTable.SelectionLabel.NotSelectedValue"]})})(a,m,s))},HN=({evt:e,rootElement:t,setFocusedCellCoord:n,keyboard:r,isSelectionMode:o,paginationNeeded:i,isNewHeadCellMenuEnabled:a})=>{if((null==r?void 0:r.enabled)&&o&&(e.shiftKey||!e.shiftKey&&!i))CN(e),wN(e.currentTarget,r,e.shiftKey);else if(e.shiftKey&&!a){n([0,t.querySelectorAll(".sn-table-head-cell").length-1])}},BN=(e,t)=>{const{colIdx:n,rows:r,api:o}=t;let i=yC.INACTIVE;return null!=o&&o.isModal()&&(i=n!==e.selectionColIdx?yC.EXCLUDED:void 0!==r[e.qElemNumber]?yC.SELECTED:yC.POSSIBLE),i},WN=(e,t,n)=>{const r=Object.keys(n).length,o=r>=Object.keys(t).length;if(r){e({keys:[o?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.DeselectedValue",1===r?"SNTable.SelectionLabel.OneSelectedValue":["SNTable.SelectionLabel.SelectedValues",r.toString()]]})}else e({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]})},UN=(e,t)=>{const{api:n,rows:r,colIdx:o}=e,{cell:i,announce:a,evt:l}=t;let s={};if(-1===o)null==n||n.begin(["/qHyperCubeDef"]);else{if(o!==i.selectionColIdx)return e;s={...r}}return s=((e,t,n)=>{const{qElemNumber:r,rowIdx:o}=t;return n.ctrlKey||n.metaKey?{[r]:o}:(void 0!==e[r]?delete e[r]:e[r]=o,{...e})})(s,i,l),WN(a,r,s),Object.keys(s).length?(null==n||n.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(s),[i.selectionColIdx]]}),{...e,rows:s,colIdx:i.selectionColIdx}):(null==n||n.cancel(),{...e,rows:s,colIdx:-1})},VN=(e,t)=>{var n;const{api:r,rows:o,colIdx:i,pageRows:a,firstCell:l}=e,{cell:s,announce:u,evt:c}=t;let d={};return l||"key"in c&&zN(c)?(-1===i?null==r||r.begin(["/qHyperCubeDef"]):d={...o},d=((e,t,n,r,o)=>{const i={...t};if("key"in r&&zN(r)){i[n.qElemNumber]=n.rowIdx;const t=r.key===SC.DOWN?1:-1;return i[e[n.pageRowIdx+t][n.pageColIdx].qElemNumber]=n.rowIdx+t,i}if(!o)return t;const a=Math.min(o.pageRowIdx,n.pageRowIdx),l=Math.max(o.pageRowIdx,n.pageRowIdx);for(let t=a;t<=l;t++){const n=e[t][o.pageColIdx];i[n.qElemNumber]=n.rowIdx}return i})(a,d,s,c,l),WN(u,o,d),{...e,rows:d,colIdx:null!==(n=null==l?void 0:l.selectionColIdx)&&void 0!==n?n:s.selectionColIdx,isSelectMultiValues:!0}):e},GN=e=>{const{api:t,rows:n,colIdx:r,isSelectMultiValues:o,mouseupOutsideCallback:i}=e;return i&&document.removeEventListener("mouseup",i),o&&(null==t||t.select({method:"selectHyperCubeCells",params:["/qHyperCubeDef",Object.values(n),[r]]})),{...e,isSelectMultiValues:!1,firstCell:void 0,mouseupOutsideCallback:void 0}},YN=(e,t)=>{var n;switch(t.type){case xC.SELECT:return UN(e,t.payload);case xC.SELECT_MOUSE_DOWN:return((e,{cell:t,mouseupOutsideCallback:n})=>!n||-1!==e.colIdx&&e.colIdx!==t.selectionColIdx?e:(document.addEventListener("mouseup",n),{...e,firstCell:t,mouseupOutsideCallback:n}))(e,t.payload);case xC.SELECT_MOUSE_UP:return((e,t)=>GN(e.isSelectMultiValues||e.firstCell!==t.cell?e:UN(e,t)))(e,t.payload);case xC.SELECT_MULTI_ADD:return VN(e,t.payload);case xC.SELECT_MULTI_END:return GN(e);case xC.RESET:return null!==(n=e.api)&&void 0!==n&&n.isModal()?e:{...e,rows:{},colIdx:-1};case xC.CLEAR:return Object.keys(e.rows).length?{...e,rows:{}}:e;case xC.UPDATE_PAGE_ROWS:return{...e,pageRows:t.payload.pageRows};default:throw new Error("reducer called with invalid action type")}},KN=4/3,XN={hover:{darker:.15,brighter:.3,opacity:.03},active:{darker:.3,brighter:.5,opacity:.05}},JN=e=>parseInt(e,10)*KN+8+1,QN=e=>!!e&&(null!==e.color||e.index>-1);function ZN(e,t,n={}){const r=t.getColorPickerColor(n);return r&&"none"!==r?r:e}const eq=e=>te(e)?bN.WHITE:bN.TEXT,tq=(e,t)=>e?{borderBottomColor:bN.DARK_MODE_BORDER,borderRightColor:bN.DARK_MODE_BORDER,borderLeftColor:bN.DARK_MODE_BORDER,borderTopColor:bN.DARK_MODE_BORDER}:{borderLeftColor:bN.BORDER_MEDIUM,borderRightColor:bN.BORDER_MEDIUM,borderTopColor:bN.BORDER_HEAVY,borderBottomColor:t?bN.BORDER_HEAVY:bN.BORDER_LIGHT},nq=e=>{var t;return null===(t=e.components)||void 0===t?void 0:t.find((e=>"theme"===e.key))},rq=(e,t,n,r=!1)=>{const o=t.getStyle("object",`straightTableV2.${e}`,"fontFamily"),i=t.getStyle("object",`straightTableV2.${e}`,"color"),a=t.getStyle("object",`straightTableV2.${e}`,"fontSize"),l={fontFamily:o,color:QN(null==n?void 0:n.fontColor)?ZN(bN.TEXT,t,null==n?void 0:n.fontColor):i||bN.TEXT,fontSize:(null==n?void 0:n.fontSize)&&`${n.fontSize}px`||a,padding:n&&"padding"in n?null==n?void 0:n.padding:void 0,...tq(t.background.isDark,r)};return Object.keys(l).forEach((e=>{const t=e;null==l[t]&&delete l[t]})),l};function oq(e,t,n,r){var o,i;const a=null===(o=nq(e))||void 0===o?void 0:o.header,l=rq("header",t,a,n);var s,u;(l.background=t.background.isTransparent?bN.WHITE:EN(t.background.color),null!=r&&r.isNewHeadCellMenuEnabled)&&(l.hoverBackground=vN(null!==(s=l.background)&&void 0!==s?s:bN.WHITE,XN.hover),l.activeBackground=vN(null!==(u=l.background)&&void 0!==u?u:bN.WHITE,XN.active));return l.color=null!==(i=l.color)&&void 0!==i?i:te(l.background)?bN.DARK_MODE_TEXT:bN.TEXT,l}function iq(e,t,n,r){var o;const i=null===(o=nq(e))||void 0===o?void 0:o.content,a=rq("content",t,i);a.background=t.background.color;const l=((e,t,n)=>{if(e&&t&&n)return JN(e)*(t+2)<n.clientHeight-40?"1px":"0px";return"0px"})(null==a?void 0:a.fontSize,n,r),s=null==i?void 0:i.hoverColor,u=null==i?void 0:i.hoverFontColor,c=t.getStyle("object","","straightTableV2.content.hover.backgroundColor"),d=t.getStyle("object","","straightTableV2.content.hover.color"),p=QN(u)||!!d,f=QN(s)||!!c,m=p||f;let h;h=QN(s)?ZN(bN.HOVER,t,s):c||(p?"":bN.HOVER);const g=m?ZN(eq(h),t,QN(u)?u:d):"";return{...a,lastRowBottomBorder:l,hoverColors:{background:h,color:g}}}function aq(e,t,n){var r;const o={};return null==t||null===(r=t.qValues)||void 0===r||r.forEach(((e,t)=>{const r=e.qText&&SN(e.qText);r&&"none"!==r&&(o[n[t]]=r)})),o.cellBackgroundColor&&!o.cellForegroundColor&&(o.cellForegroundColor=eq(o.cellBackgroundColor)),{...e,...o,color:o.cellForegroundColor||e.color,background:o.cellBackgroundColor||e.background}}const lq=(e,t,n,r,o)=>{const i=Qt.useMemo((()=>{const i=n.totalsPosition.atTop,a=iq(e,t,n.rows.length,r),l=oq(e,t,!i,o),s=function(e,t,n){var r;const o=null===(r=nq(e))||void 0===r?void 0:r.content,i=rq("content",t,o),{borderBottomColor:a,borderTopColor:l,background:s}=oq(e,t,n);return{...i,borderBottomColor:a,background:s,borderTopColor:l}}(e,t,i);return{body:a,head:l,totals:s}}),[e,t.name(),n,r]);return i},sq=new Map;const uq=Qt.createContext({}),cq=function(e){const t=Qt.createContext([()=>{},new Set]);return sq.set(e,t),({children:n,value:r})=>{const o=Qt.useRef(r),i=Qt.useRef(new Set);Qt.useEffect((()=>{o.current=r,i.current.forEach((e=>{e(r)}))}),[r]);const a=Qt.useCallback((()=>o.current),[o]),l=Qt.useMemo((()=>[a,i.current]),[a]);return Xg.jsx(e.Provider,{value:r,children:Xg.jsx(t.Provider,{value:l,children:n})})}}(uq),dq={rows:[],columns:[],totalsPosition:{}},pq=({app:e,children:t,tableData:n=dq,selectionsAPI:r,cellCoordMock:o,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,setPage:h,pageInfo:g,initialDataPages:b,rect:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S})=>{const E=Qt.useMemo((()=>({isNewHeadCellMenuEnabled:x,isLinksEnabled:S})),[x,S]),[w,C]=Qt.useState(0),[R,k]=Qt.useState(o||AC),[A,P]=((e,t)=>{const[n,r]=Qt.useReducer(YN,{pageRows:e,rows:{},colIdx:-1,api:t,isSelectMultiValues:!1});return[n,r]})(n.rows,r),[L,I]=Qt.useState(-1),M=lq(i,u,n,d,E),[D,T,_,O]=((e,t,n,{head:r,body:o},i)=>{const a=t.atBottom||t.atTop,l=rn({...r,fontWeight:FP},{maxNbrLinesOfText:3}).measureText,s=rn({...o,fontWeight:FP},{maxNbrLinesOfText:3}).measureText,{estimateWidth:u}=rn(r,{maxNbrLinesOfText:3}),c=Qt.useMemo((()=>(e,t,n,r,o)=>{let c=25;return c+=28,r&&(c+=24),o&&(c+=20),i||(c=r?99:71),Math.max(l(e)+c,a?s(t)+24+1:0,u(n))}),[u,l,s,a,i]),[d,p]=Qt.useState(0),[f,m]=Qt.useState((()=>HP(e,n,c,i)));gf((()=>{m(HP(e,n-d,c,i))}),[e,n,d,c]);const h=Qt.useMemo((()=>((e,t,n)=>!!(e&&e.length>0)&&e.reduce(((e,t)=>e+t))+t<n)(f,d,n)),[f,d,n]);return[f,m,p,h]})(n.columns,n.totalsPosition,v.width,M,x),N=Qt.useMemo((()=>({app:e,selectionsAPI:r,layout:i,model:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,styling:M,rect:v,viewService:y})),[e,r,i,a,l,s,u.name(),c.active,d,p,f,m,M,v,y]);return Xg.jsx(cq,{value:{headRowHeight:w,setHeadRowHeight:C,focusedCellCoord:R,setFocusedCellCoord:k,selectionState:A,selectionDispatch:P,hoverIndex:L,setHoverIndex:I,columnWidths:D,setColumnWidths:T,baseProps:N,tableData:n,setYScrollbarWidth:_,setPage:h,pageInfo:g,initialDataPages:b,showRightBorder:O,featureFlags:E},children:t})};function fq(e,t){const n=function(e){return sq.get(e)}(e),[r,o]=Qt.useContext(n),[,i]=Qt.useReducer((e=>e+1),0),a=Qt.useRef(t),l=Qt.useRef(),s=r();if(void 0===s)throw new Error("You must call useContextSelector inside a valid context.");const u=Qt.useMemo((()=>t(s)),[s,t]);return Qt.useEffect((()=>{a.current=t,l.current=u}),[s,u,t]),Qt.useEffect((()=>{const e=e=>{(a.current&&a.current(e))!==l.current&&i()};return o.add(e),()=>{o.delete(e)}}),[o]),u}function mq(e){var t;const n=_P();return null!=n&&null!==(t=n.components)&&void 0!==t&&null!==(t=t.MuiTable)&&void 0!==t&&t.styleOverrides&&(n.components.MuiTable.styleOverrides.root={}),_w({...n,direction:e})}const hq=eD(BT,{shouldForwardProp:e=>"isLastColumn"!==e&&"hoverColor"!==e})((({isLastColumn:e,hoverColor:t})=>({pointerEvents:"auto",touchAction:"none",display:"flex",position:"absolute",height:"100%",top:0,cursor:"col-resize",width:(e?4:9)+"px",justifyContent:e?"flex-end":"center",marginLeft:"-4px","&:hover:not(:focus, :active)":{[`& .${zm}`]:{background:t||"#D9D9D9","@media (hover: none)":{background:"none"}}},"&:focus-visible, &:active":{outline:"none",[`& .${zm}`]:{background:"#177fe6",borderLeft:"1px solid #fff",borderRight:e?void 0:"1px solid #fff"}}}))),gq=eD(BT)({position:"absolute",height:"100%",width:"3px"}),bq=({columnWidth:e,keyValue:t,isLastColumn:n,isPivot:r,isNewHeadCellMenuEnabled:o,hoverColor:i,updateWidthCallback:a,confirmWidthCallback:l,handleBlur:s,setIsAdjustingWidth:u,isLeftColumn:c})=>{const d=Qt.useMemo((()=>({initWidth:e,columnWidth:e,initX:0})),[e]),p=r||o?Fm.PixelsMin:Fm.PixelsMinTable,f=n?0:1,m={left:r&&!c?d.columnWidth-f:"100%"},h=e=>{const t=Math.max(d.initWidth+e,p);d.columnWidth=t,a(t)},g=()=>{if(d.columnWidth!==d.initWidth){const e={type:jm.Pixels,pixels:d.columnWidth};l(e)}else null==u||u(!1)},b=e=>{const t=e.clientX-d.initX;h(t)},v=e=>{CN(e),document.removeEventListener("mousemove",b),document.removeEventListener("mouseup",v),g()},y=e=>{const t=e.touches[0].clientX-d.initX;h(t)},x=e=>{CN(e),document.removeEventListener("touchmove",y),document.removeEventListener("touchend",x),g()},S=!r&&s?e=>{if(e.key===Nm.LEFT||e.key===Nm.RIGHT){CN(e);const t=d.columnWidth-d.initWidth,n=5,r=e.key===Nm.LEFT?t-n:t+n;h(r)}else e.key===Nm.SPACE||e.key===Nm.ENTER?(CN(e),s(e),g()):e.key===Nm.ESC&&(CN(e),s(e),h(d.initWidth))}:void 0;return Zt.createElement(hq,{className:qm,isLastColumn:n,hoverColor:i,style:m,key:t,onMouseDown:e=>{e.stopPropagation(),document.addEventListener("mousemove",b),document.addEventListener("mouseup",v),null==u||u(!0),d.initX=e.clientX},onDoubleClick:()=>l({type:jm.FitToContent}),onTouchStart:e=>{1===e.touches.length&&(e.stopPropagation(),document.addEventListener("touchmove",y),document.addEventListener("touchend",x),null==u||u(!0),d.initX=e.touches[0].clientX)},onKeyDown:S,onBlur:s,"data-testid":qm},Zt.createElement(gq,{className:zm}))};function vq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const yq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){vq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M15 4H1V2h14zm0 10H1v-2h14zm0-5H1V7h14z"})),xq=Qt.forwardRef(yq);function Sq(){return Sq=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Sq.apply(this,arguments)}const Eq=eD(BT,{shouldForwardProp:e=>"rightAligned"!==e&&"shouldShowMenuIcon"!==e})((({rightAligned:e,shouldShowMenuIcon:t})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:24,display:t?"flex":"none",fontWeight:"bold",width:"100%",alignItems:"center",justifyContent:"center"}))),wq=eD(xq,{shouldForwardProp:e=>"isInteractionsActive"!==e})((({isInteractionsActive:e})=>({minWidth:"unset",position:"relative",cursor:e?"pointer":"default"}))),Cq=eD(xO)((({theme:e})=>({".MuiList-root":{padding:e.spacing(.5,0)}}))),Rq=eD(f_)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),kq=eD(RO)((({theme:e})=>({fontSize:"12px",height:24,fontWeight:"bold",padding:`${e.spacing(.25,2)} !important`,marginBottom:e.spacing(.5)}))),Aq=eD(RO,{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")}))),Pq=eD("div")((({theme:e})=>({position:"absolute",width:e.spacing(.5),height:16,left:0,top:"50%",transform:"TranslateY(-50%)",borderRadius:"0 2px 2px 0",background:"#01873d"}))),Lq=eD("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),Iq=eD(WD)((()=>({fontFamily:'"Source Sans Pro", HelveticaNeue, "Helvetica Neue", Helvetica, Arial, sans-serif',fontSize:"14px"}))),Mq=eD(G_)((({theme:e})=>({width:16,minWidth:"unset !important",marginRight:e.spacing(1.5),lineHeight:0})));function Dq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),_q=Qt.forwardRef(Tq);let Oq={};const Nq=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a,isSubMenu:l,isActive:s,handleHeadCellMenuKeyDown:u})=>{const[c,d]=Qt.useState(!1),p=Qt.useRef(null),f=Qt.useCallback((e=>{e.stopPropagation(),d(!1)}),[d]);return Zt.createElement(Zt.Fragment,null,Zt.createElement(Aq,{ref:a?p:null,key:t,"data-testid":`menu-item-${t}`,className:"nebula-table-utils-head-menu-item",onClick:async e=>{"keyup"!==e.type&&(n&&(await n(e),Oq={}),null!=a&&a.length&&(d(!0),Oq[r]=d))},disabled:!i,autoFocus:e,isSubMenu:!!l,isActive:!!s,onKeyDown:u},s&&Zt.createElement(Pq,null),Zt.createElement(Lq,null,Zt.createElement(Mq,null,Zt.createElement(o,null)),Zt.createElement(Iq,{variant:"body2"},r)),null!=a&&a.length?Zt.createElement(_q,null):null),(null==a?void 0:a.length)&&Zt.createElement(zq,{isSubMenu:!0,open:c,anchorEl:p.current,onClose:f,menuGroups:(m=a,h=Oq,m.map((e=>e.map((e=>{var t;return{...e.groupHeading?{groupHeading:e.groupHeading}:{},items:null===(t=e.items)||void 0===t?void 0:t.map((({onClick:e,...t})=>({...t,...e?{onClick:async t=>{Object.entries(h).map((([,e])=>e(!1))),await e(t)}}:{}})))}}))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},handleHeadCellMenuKeyDown:u}));var m,h},qq=({menuGroup:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map((e=>{var r;return[[e.groupHeading&&Zt.createElement(kq,{disabled:!0,style:{opacity:1}},e.groupHeading),null===(r=e.items)||void 0===r?void 0:r.map((e=>Zt.createElement(Nq,Sq({key:e.id},e,{isSubMenu:t,handleHeadCellMenuKeyDown:n}))))].filter(Boolean)]})),zq=({anchorEl:e,open:t,onClose:n,ariaLabel:r,menuGroups:o,transformOrigin:i,anchorOrigin:a,isSubMenu:l,handleHeadCellMenuKeyDown:s})=>o.length?Zt.createElement(Cq,Sq({className:"nebula-table-utils-head-menu",open:t,anchorEl:e,onClose:n,"aria-labelledby":r},a?{anchorOrigin:a}:{},i?{transformOrigin:i}:{}),(({itemGroups:e,isSubMenu:t,handleHeadCellMenuKeyDown:n})=>e.map(((r,o)=>[qq({menuGroup:r,isSubMenu:t,handleHeadCellMenuKeyDown:n}),o<e.length-1?Zt.createElement(Rq,{"data-testid":"group-divider",variant:"middle",key:"divider"}):void 0])))({itemGroups:o,isSubMenu:l,handleHeadCellMenuKeyDown:s})):null,Fq={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},jq=(e,t)=>e.some((e=>t[e]>0));function $q(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Hq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){$q(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Bq=Qt.forwardRef(Hq);function Wq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Uq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Wq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),Vq=Qt.forwardRef(Uq);function Gq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Yq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Gq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Kq=Qt.forwardRef(Yq);function Xq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Jq=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Xq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Qq=Qt.forwardRef(Jq);function Zq(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ez=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Zq(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),tz=Qt.forwardRef(ez);function nz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const rz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){nz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),oz=Qt.forwardRef(rz);function iz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const az=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){iz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),lz=Qt.forwardRef(az);function sz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const uz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){sz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),cz=Qt.forwardRef(uz);function dz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const pz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){dz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),fz=Qt.forwardRef(pz);function mz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const hz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){mz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),gz=Qt.forwardRef(hz);let bz=function(e){return e.SORTING="sorting",e.SEARCHING="searching",e.SELECTIONS="selections",e.ADJUST_HEADER_SIZE="adjustHeaderSize",e}({});const vz=({headerData:e,translator:t,menuAvailabilityFlags:n,setOpen:r,sortFromMenu:o,changeActivelySortedHeader:i,interactions:a,embedListbox:l,fieldInstance:s,selectionActionsEnabledStatus:u,anchorRef:c,setFocusOnColumnAdjuster:d})=>{const p=[];if(n[bz.SORTING]&&p.push([{groupHeading:t.get("NebulaTableUtils.MenuGroupLabel.Sorting"),items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortAscending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"A")),r(!1),await(null==i?void 0:i(e))},icon:Bq,enabled:!!e.isActivelySorted||"D"===e.sortDirection,isActive:e.isActivelySorted&&"A"===e.sortDirection,autoFocus:e.isActivelySorted?"A"===e.sortDirection:"D"===e.sortDirection},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SortDescending"),onClick:async t=>{t.stopPropagation(),await(null==o?void 0:o(t,"D")),r(!1),await(null==i?void 0:i(e))},icon:Qq,enabled:!!e.isActivelySorted||"A"===e.sortDirection,isActive:e.isActivelySorted&&"D"===e.sortDirection,autoFocus:e.isActivelySorted?"D"===e.sortDirection:"A"===e.sortDirection}]}]),e.isDim&&null!=a&&a.select){const e=[];n[bz.SEARCHING]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Search"),onClick:e=>{e.stopPropagation(),r(!1),l()},icon:tz,enabled:!0}]}]),n[bz.SELECTIONS]&&e.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.Selections"),icon:gz,enabled:!0,subMenus:[[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAll"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAll())},icon:oz,enabled:u.canSelectAll},{id:2,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectPossible"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectPossible())},icon:fz,enabled:u.canSelectPossible},{id:3,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectAlternative"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectAlternative())},icon:lz,enabled:u.canSelectAlternative},{id:4,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.SelectExcluded"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.selectExcluded())},icon:cz,enabled:u.canSelectExcluded}]}],[{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.ClearSelections"),onClick:async e=>{e.stopPropagation(),r(!1),await(null==s?void 0:s.clear())},icon:Vq,enabled:u.canClearSelections}]}]]}]}]),e.length>0&&p.push(...e)}return n[bz.ADJUST_HEADER_SIZE]&&p.push([{items:[{id:1,itemTitle:t.get("NebulaTableUtils.MenuItemLabel.AdjustColumnSize"),onClick:e=>{e.stopPropagation(),e.preventDefault(),r(!1),null==d||d(c)},icon:Kq,enabled:!0}]}]),p},yz=({open:e,setOpen:t,anchorRef:n,headerData:r,translator:o,interactions:i,handleHeadCellMenuKeyDown:a,menuAvailabilityFlags:l,shouldShowMenuIcon:s=!0,sortRelatedArgs:u,searchRelatedArgs:c,selectionRelatedArgs:d,adjustHeaderSizeRelatedArgs:p})=>{var f;const m=vf({translator:o}),{headTextAlign:h,qLibraryId:g,fieldId:b}=r,{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=(({headerData:e,app:t})=>{const[n,r]=Qt.useState(null),[o,i]=Qt.useState(Fq);return Qt.useEffect((()=>{t&&t.getField&&e&&e.isDim&&t.getField(e.fieldId).then(r).catch(console.error)}),[t,e]),{fieldInstance:n,selectionActionsEnabledStatus:o,resetSelectionActionsEnabledStatus:Qt.useCallback((()=>i(Fq)),[]),updateSelectionActionsEnabledStatus:Qt.useCallback((t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&i({canSelectAll:jq(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:jq(["qSelected"],n.qStateCounts),canSelectPossible:jq(["qOption"],n.qStateCounts),canSelectAlternative:jq(["qAlternative"],n.qStateCounts),canSelectExcluded:jq(["qAlternative","qExcluded"],n.qStateCounts)})}),[e.label,i])}})({headerData:r,app:null==d?void 0:d.app}),E=Qt.useCallback((()=>{const e=g?{qLibraryId:g,type:"dimension"}:b;if(null!=c&&c.embed&&c.listboxRef){const{embed:t,listboxRef:n}=c;t.__DO_NOT_USE__.popover(n.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"}})}}),[c,b,g]);Qt.useEffect((()=>{e||(x(),null!=d&&d.model&&d.model.getLayout().then((e=>{S(e)})).catch((e=>console.error(e))))}),[e,x,S,null==d?void 0:d.model]);const w=Qt.useCallback((e=>{e.stopPropagation(),t(!1)}),[t]);return i.active?Zt.createElement(Eq,{rightAligned:"right"===h,shouldShowMenuIcon:s},s&&Zt.createElement(wq,{height:_m,className:Om,"data-testid":Om,"aria-controls":e?"nebula-table-utils-head-menu":void 0,"aria-expanded":e?"true":void 0,"aria-haspopup":"true",isInteractionsActive:null!==(f=i.active)&&void 0!==f&&f},Zt.createElement(xq,null)),Zt.createElement(zq,{open:e,anchorEl:n.current,onClose:w,menuGroups:vz({headerData:r,translator:m,menuAvailabilityFlags:l,setOpen:t,...u,embedListbox:E,interactions:i,fieldInstance:v,selectionActionsEnabledStatus:y,anchorRef:n,setFocusOnColumnAdjuster:null==p?void 0:p.setFocusOnColumnAdjuster}),ariaLabel:"nebula-table-utils-head-menu-button",handleHeadCellMenuKeyDown:a})):null},xz=e=>e.isDark?{background:e.color,borderColor:bN.DARK_MODE_BORDER,color:bN.DARK_MODE_TEXT,disabledColor:bN.DARK_MODE_DISABLED,iconColor:bN.DARK_MODE_TEXT}:{background:e.color,borderColor:bN.BORDER_MEDIUM,color:bN.TEXT,disabledColor:bN.DISABLED},Sz=eD(BT,{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}`}))),Ez=eD(uN,{shouldForwardProp:e=>"footerStyle"!==e})((({footerStyle:e,theme:t})=>({background:"inherit",marginRight:t.spacing(1),color:e.color,"& .MuiNativeSelect-icon, .MuiNativeSelect-select":{color:e.iconColor}}))),wz=eD(e_,{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)}))),Cz=eD(WD)((({theme:e})=>({color:"inherit",margin:e.spacing(0,1,0,1)}))),Rz=({children:e,footerContainer:t,interactions:n,theme:r,paginationNeeded:o=!0})=>{const i=Qt.useMemo((()=>xz(r.background)),[r]);if(!n.active)return null;const a=o?Zt.createElement(Sz,{footerStyle:i},e):null;return t?mf.createPortal(e,t):a},kz={},Az=Qt.createContext(kz),Pz=()=>Qt.useContext(Az),Lz=({children:e,direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:d,theme:p,interactions:f,rect:m,layout:h})=>{const g=(e=>!e.enabled||e.active)(c)?0:-1,b=Qt.useMemo((()=>xz(p.background)),[p]),v=o?o.getBoundingClientRect().width:m.width,y=vf({translator:d}),x=Qt.useMemo((()=>({direction:t,pageInfo:n,handleChangeRowsPerPage:r,footerContainer:o,isSelectionMode:i,handleChangePage:a,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:c,translator:y,theme:p,interactions:f,rect:m,layout:h,footerStyle:b,tabIndex:g,width:v})),[t,n,r,o,i,a,l,s,u,c,y,p,f,m,h,b,g,v]);return Zt.createElement(Az.Provider,{value:x},e)};let Iz=function(e){return e.FirstPage="FirstPage",e.LastPage="LastPage",e.NextPage="NextPage",e.PreviousPage="PreviousPage",e}({}),Mz=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}({});function Dz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Tz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Dz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m7 8 4.5 4.5L10 14 4 8l6-6 1.5 1.5z"})),_z=Qt.forwardRef(Tz);function Oz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Nz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Oz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m12 2 1.5 1.5L9 8l4.5 4.5L12 14 6 8zM4 2v12H2V2z"})),qz=Qt.forwardRef(Nz);function zz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Fz=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){zz(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"m3.5 2 6 6-6 6L2 12.5 6.5 8 2 3.5zM14 2v12h-2V2z"})),jz=Qt.forwardRef(Fz),$z={FirstPage:qz,PreviousPage:_z,NextPage:_q,LastPage:jz,FirstPageRTL:jz,PreviousPageRTL:_q,NextPageRTL:_z,LastPageRTL:qz},Hz=({disabledCondition:e,pageNumber:t,type:n})=>{const{direction:r,footerStyle:o,handleChangePage:i,translator:a,interactions:l,tabIndex:s}=Pz(),u=$z[`${n}${"rtl"===r?"RTL":""}`];return{styledProps:{footerStyle:o,disabledCondition:e,size:"small","data-testid":"pagination-action-icon-button","aria-disabled":e,"aria-label":a.get(`NebulaTableUtils.Pagination.${n}`),title:l.passive?a.get(`NebulaTableUtils.Pagination.${n}`):void 0,tabIndex:s,onClick:e?null:()=>i(t)},IconComponent:u}},Bz=()=>{const{pageInfo:e,width:t}=Pz(),n=0===e.page,{IconComponent:r,styledProps:o}=Hz({type:Iz.FirstPage,disabledCondition:n,pageNumber:0});return t<=Mz.FirstPage?null:Zt.createElement(wz,o,Zt.createElement(r,{height:_m}))},Wz=(e,t,n=!1)=>{n&&e.key===Nm.TAB&&!e.shiftKey&&(CN(e),wN(e.target,t,!1))},Uz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Pz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Hz({type:Iz.LastPage,disabledCondition:i,pageNumber:n-1}),s=t.enabled?e=>Wz(e,t,r):null;return o<=Mz.LastPage?null:Zt.createElement(wz,Sq({},l,{onKeyDown:s}),Zt.createElement(a,{height:_m}))},Vz=()=>{const{pageInfo:e,keyboard:t,totalPages:n,isSelectionMode:r,width:o}=Pz(),i=e.page>=n-1,{IconComponent:a,styledProps:l}=Hz({type:Iz.NextPage,disabledCondition:i,pageNumber:e.page+1}),s=!(o>Mz.FirstPage&&o>Mz.LastPage)&&t.enabled?e=>Wz(e,t,r):null;return Zt.createElement(wz,Sq({},l,{onKeyDown:s}),Zt.createElement(a,{height:_m}))},Gz=()=>{const{pageInfo:e}=Pz(),t=0===e.page,{IconComponent:n,styledProps:r}=Hz({type:Iz.PreviousPage,disabledCondition:t,pageNumber:e.page-1});return Zt.createElement(wz,r,Zt.createElement(n,{height:_m}))},Yz=()=>{const{translator:e,width:t,pageInfo:n,totalRowCount:r}=Pz(),{page:o,rowsPerPage:i}=n;if(t<=Mz.DisplayedRowsLabel)return null;const a=e.get("NebulaTableUtils.Pagination.DisplayedRowsLabel",[`${o*i+1} - ${Math.min((o+1)*i,r)}`,r.toString()]);return Zt.createElement(Cz,{variant:"caption"},a)},Kz=({name:e,value:t,options:n,handleChange:r})=>{const{layout:o,footerStyle:i,translator:a,tabIndex:l}=Pz(),s=o.qInfo.qId,u=a.get(`NebulaTableUtils.Pagination.${e}`),c=`${e}-dropdown`,d=`${c}-label-${s}`,p={tabIndex:l,id:`${c}-${s}`,"data-testid":c,"aria-labelledby":d};return Zt.createElement(Zt.Fragment,null,Zt.createElement(Cz,{variant:"caption",id:d},u,":"),Zt.createElement(Ez,{footerStyle:i,size:"small",native:!0,value:t,onChange:r,inputProps:p},n))},Xz=()=>{var e;const{pageInfo:t,isSelectionMode:n,totalColumnCount:r,width:o,handleChangeRowsPerPage:i}=Pz();if(!(!(null===(e=t.rowsPerPageOptions)||void 0===e||!e.length)&&!n&&o>Mz.RowsPerPage&&r<=100)||void 0===t.rowsPerPageOptions)return null;const a=Zt.createElement(Zt.Fragment,null,t.rowsPerPageOptions.map((e=>Zt.createElement("option",{key:e,value:e},e))));return Zt.createElement(Kz,{name:"RowsPerPage",value:t.rowsPerPage,options:a,handleChange:e=>{null==i||i(+e.target.value)}})},Jz=1e3,Qz="…",Zz=({totalPages:e,page:t})=>{const n=Math.min(e,Jz),r=n<e&&t>500,o=r?Math.min(500+t,e):n,i=r?Math.max(0,o-Jz):0,a=Array.from(Array(n).keys()).map((e=>{const t=e+i;return Zt.createElement("option",{key:t,value:t},t+1)}));return i>0&&a.unshift(Zt.createElement("option",{key:"startMoreOptions",value:Qz,disabled:!0},Qz)),o<e-1&&a.push(Zt.createElement("option",{key:"endMoreOptions",value:Qz,disabled:!0},Qz)),Zt.createElement(Zt.Fragment,null,a)},eF=()=>{const{pageInfo:e,width:t,totalPages:n,handleChangePage:r}=Pz(),{page:o}=e;if(t<=Mz.SelectPage)return null;const i=Zt.createElement(Zz,{totalPages:n,page:o});return Zt.createElement(Kz,{name:"SelectPage",value:o,options:i,handleChange:e=>r(+e.target.value)})},tF=e=>Zt.createElement(Lz,e,Zt.createElement(Xz,null),Zt.createElement(eF,null),Zt.createElement(Yz,null),Zt.createElement(Bz,null),Zt.createElement(Gz,null),Zt.createElement(Vz,null),Zt.createElement(Uz,null));var nF=Qt.memo(tF);const rF=e=>Zt.createElement(Rz,e,Zt.createElement(nF,e)),oF=mC(Ak,{shouldForwardProp:e=>"background"!==e})((({background:e})=>({height:"100%",background:e.tableColorFromTheme}))),iF=mC(Ak,{shouldForwardProp:e=>"isNewHeadCellMenuEnabled"!==e&&"lines"!==e&&"allIconsDisabled"!==e&&"wordBreak"!==e&&"headCell"!==e&&"isPagination"!==e&&"virtualizedCell"!==e})((({isNewHeadCellMenuEnabled:e,lines:t,wordBreak:n,allIconsDisabled:r=!1,headCell:o=!1,isPagination:i=!1,virtualizedCell:a=!1})=>({lineHeight:"calc(4/3)",fontSize:"inherit",...(e?o||a:n||1===t)&&{height:"100%",textOverflow:"ellipsis",overflow:"hidden",wordBreak:e&&o&&i?"break-word":"break-all",display:"-webkit-box",WebkitLineClamp:t,WebkitBoxOrient:"vertical",...e&&{whiteSpace:r||a?"normal":"nowrap"}}}))),aF=mC(Ak)({overflow:"hidden",textOverflow:"ellipsis"});function lF(e,t){const n=Qt.useRef(!1);Qt.useEffect((()=>{n.current?e():n.current=!0}),t)}const sF=(e,t,n)=>{Qt.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{if(0===e.deltaX)return;e.stopPropagation();const r=n.scrollWidth-n.offsetWidth;let{scrollLeft:o}=n,i=o+e.deltaX;t&&(i=r+i),r>0&&(i<0||i>r+1)&&(e.preventDefault(),o=t?Math.min(0,Math.min(r,i)):Math.max(0,Math.min(r,i)))})(e,"rtl"===t,r),i=e=>{var t;n.scrollLeft=(null===(t=e.currentTarget)||void 0===t?void 0:t.scrollLeft)||0};return r.addEventListener("wheel",o),r.addEventListener("scroll",i),()=>{r.removeEventListener("wheel",o),r.removeEventListener("scroll",i)}}),[e,t,n])},uF=e=>{var t;const{key:n,currentTarget:r}=e,o=null!==(t=document.activeElement)&&void 0!==t?t:r;if(n===SC.DOWN||n===SC.UP){const t=e=>n===SC.DOWN?AN(e):PN(e);CN(e);let r=t(o);for(;r;){if("true"!==r.ariaDisabled){r.focus();break}r=t(r)}}},cF=({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,isInteractionEnabled:o,handleOpenMenu:i,isNewHeadCellMenuEnabled:a})=>{var l;if(!o)return void CN(e);if(FN(e))return;const s=!(null!==(l=e.currentTarget.closest(".sn-table-cell"))&&void 0!==l&&l.nextSibling);switch(e.key){case SC.LEFT:case SC.RIGHT:CN(e),e.key===SC.RIGHT&&s&&!a?TN(t,r):(a&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:a?EC.FOCUS:EC.FOCUS_BUTTON}));break;case SC.DOWN:CN(e),MN({focusType:EC.REMOVE_TAB,cell:kN(t)}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:EC.FOCUS});break;case!a&&SC.TAB:((e,t,n,r,o)=>{const i=e.currentTarget.classList.contains("sn-table-head-label");i&&e.shiftKey&&n[1]>0?r([n[0],n[1]-1]):i||e.shiftKey||(o?(CN(e),TN(t,r)):r([n[0],n[1]+1]))})(e,t,n,r,s);break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget);break;case a&&SC.ENTER:case a&&SC.SPACE:i&&i(e)}},dF=e=>{const{layout:t,rect:n,theme:r}=fq(uq,(e=>e.baseProps)),o=r.name(),[i,a]=Qt.useState(0),[l,s]=Qt.useState(0);return Qt.useLayoutEffect((()=>{if(e.current){var t;const{offsetWidth:n=0,offsetHeight:r=0,clientWidth:o=0,clientHeight:i=0}=null!==(t=e.current)&&void 0!==t?t:{},l=r-i;s(n-o),a(l)}}),[e,t,n,o]),{xScrollbarWidth:i,yScrollbarWidth:l}},pF=mC("div")({clip:"rect(0 0 0 0)",clipPath:"inset(50%)",height:"1px",overflow:"hidden",position:"absolute",whiteSpace:"nowrap",width:"1px"}),fF=mC(hP,{shouldForwardProp:e=>"fullHeight"!==e&&"interactions"!==e})((({fullHeight:e,interactions:t})=>({height:e?"100%":"calc(100% - 41px)",overflow:t.active?"auto":"hidden",border:"none"}))),mF=mC(QA,{shouldForwardProp:e=>"showRightBorder"!==e&&"styling"!==e})((({showRightBorder:e,styling:t})=>({tableLayout:"fixed",width:"min-content",borderRight:e?`1px solid ${t.body.borderRightColor}`:void 0}))),hF=()=>Xg.jsxs(Xg.Fragment,{children:[Xg.jsx(pF,{className:"sn-table-announcer-1","aria-live":"polite","aria-atomic":"true"}),Xg.jsx(pF,{className:"sn-table-announcer-2","aria-live":"polite","aria-atomic":"true"})]}),gF=e=>e.stopPropagation(),bF=({href:e,text:t,interactions:n,color:r})=>Zt.createElement(q_,{href:e,rel:"noreferrer",target:"_blank",underline:"hover",title:t,onClick:gF,style:{pointerEvents:n.active?"auto":"none",color:null!=r?r:void 0,opacity:n.active&&n.passive||r?void 0:.4}},t),vF=({children:e,fontSize:t="",wordBreak:n=!1,isPagination:r=!1,virtualizedCell:o=!1,lines:i=3,headCell:a=!1,allIconsDisabled:l=!1})=>{const s=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));if(s&&a)return Xg.jsx(iF,{component:"span",className:"sn-table-cell-text",lines:i,isPagination:r,isNewHeadCellMenuEnabled:!0,headCell:!0,allIconsDisabled:l,children:e});const u=parseInt(t||zP,10),c=Xg.jsx(iF,{component:"span",className:"sn-table-cell-text",wordBreak:n,lines:i,...s&&{virtualizedCell:o,allIconsDisabled:l},children:e});return n?c:Xg.jsx(aF,{minHeight:u*qP,maxHeight:u*qP*i,children:c})},yF=({cell:e,style:t,virtualizedCell:n})=>{var r;const{isNewHeadCellMenuEnabled:o,isLinksEnabled:i}=fq(uq,(e=>e.featureFlags)),{interactions:a,viewService:l}=fq(uq,(e=>e.baseProps)),s=fq(uq,(e=>{var t;return null===(t=e.selectionState.api)||void 0===t?void 0:t.isActive()}));let u=e.representation.text;return e.representation.type===wg.Link&&i&&!s&&(u=Xg.jsx(bF,{href:e.representation.url,text:e.representation.text,interactions:a,color:t.cellForegroundColor})),Xg.jsx(vF,{wordBreak:!e.isNumeric,fontSize:t.fontSize,lines:null===(r=l.viewState)||void 0===r?void 0:r.maxLineCount,...o&&{virtualizedCell:n},children:u})},xF=({selectionsAPI:e,selectionDispatch:t,setShouldRefocus:n,keyboard:r,tableWrapperRef:o})=>{Qt.useEffect((()=>{const i=()=>{t({type:xC.RESET})},a=()=>{t({type:xC.CLEAR})},l=()=>{var e;if(null!==(e=o.current)&&void 0!==e&&e.contains(document.activeElement))n();else if(r.enabled){var t;null===(t=r.blur)||void 0===t||t.call(r,!0)}i()};return null==e||e.on("deactivated",i),null==e||e.on("canceled",i),null==e||e.on("confirmed",l),null==e||e.on("cleared",a),()=>{null==e||e.removeListener("deactivated",i),null==e||e.removeListener("canceled",i),null==e||e.removeListener("confirmed",l),null==e||e.removeListener("cleared",a)}}),[e,r,t,n,o])},SF=(e,t,n,r)=>({handleMouseDown:r=>{null==e||e(r);const o=r.target;if(t.isSelectable&&"A"!==o.tagName){const e=()=>n({type:xC.SELECT_MULTI_END});n({type:xC.SELECT_MOUSE_DOWN,payload:{cell:t,mouseupOutsideCallback:e}})}},handleMouseOver:e=>{1===e.buttons&&n({type:xC.SELECT_MULTI_ADD,payload:{cell:t,evt:e,announce:r}})},handleMouseUp:e=>{0===e.button&&n({type:xC.SELECT_MOUSE_UP,payload:{cell:t,evt:e,announce:r}})}}),EF=mC(iP,{shouldForwardProp:e=>"lastRowBottomBorder"!==e})((({lastRowBottomBorder:e})=>({"& tr:last-child":{"& td, th":{borderBottomWidth:e}}}))),wF=mC(PP,{shouldForwardProp:e=>"hoverColors"!==e&&"hover"!==e})((({hover:e,hoverColors:t})=>({"&&:hover":{background:"none"},...e&&{"&&:hover":{"& td:not(.selected), th:not(.selected)":t}}}))),CF=mC(dP,{shouldForwardProp:e=>"cellStyle"!==e})((({cellStyle:e,theme:t})=>({...jP,...e,padding:t.spacing(.5,1.5),verticalAlign:"top"}))),RF=mC(dP,{shouldForwardProp:e=>"atTop"!==e&&"headRowHeight"!==e&&"totalsStyle"!==e})((({totalsStyle:e,atTop:t,headRowHeight:n,theme:r})=>({...jP,...e,fontWeight:FP,position:"sticky",padding:r.spacing(.5,1.5),borderWidth:t?"0px 1px 1px 0px":"1px 1px 1px 0px",top:t&&n,bottom:!t&&0,verticalAlign:t?"bottom":"top"})));function kF(e){return t=>{const{cell:n,styling:r,announce:o,onMouseDown:i}=t,a=fq(uq,(e=>BN(n,e.selectionState))),l=fq(uq,(e=>e.selectionDispatch)),{handleMouseDown:s,handleMouseOver:u,handleMouseUp:c}=SF(i,n,l,o),d=function(e,t){let n={};switch(t){case yC.SELECTED:n=NP.SELECTED;break;case yC.POSSIBLE:n=NP.POSSIBLE;break;case yC.EXCLUDED:n={background:`${NP.EXCLUDED_BACKGROUND}, ${e.background}`,selectedCellClass:yC.EXCLUDED}}return{...e,...n}}(r,a);return Xg.jsx(e,{...t,styling:d,onMouseUp:c,onMouseDown:s,onMouseOver:u})}}function AF(e,t){let n=(r=CF,e=>{const{styling:{selectedCellClass:t,...n},component:o,align:i,children:a,scope:l,tabIndex:s,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,title:m}=e;return Xg.jsx(r,{cellStyle:n,component:o,scope:l,align:i,tabIndex:s,className:`sn-table-cell ${t||""}`,title:m,onKeyDown:u,onMouseDown:c,onKeyUp:d,onMouseUp:p,onMouseOver:f,children:a})});var r;return t&&(n=kF(n)),e&&(n=function(e){return t=>{const{cell:n,column:r,styling:o}=t,i=Qt.useMemo((()=>aq(o,n.qAttrExps,r.qAttrExprInfoIDs)),[o,n.qAttrExps,r.qAttrExprInfoIDs]);return Xg.jsx(e,{...t,styling:i})}}(n)),n}const PF=()=>{const{columns:e,totalsPosition:{atTop:t},rows:n}=fq(uq,(e=>e.tableData)),{rootElement:r,selectionsAPI:o,keyboard:i,styling:a,interactions:l}=fq(uq,(e=>e.baseProps)),s=fq(uq,(e=>e.headRowHeight)),u=fq(uq,(e=>e.setFocusedCellCoord)),c=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));return Xg.jsx(PP,{className:"sn-table-row sn-table-totals-row",children:e.map(((e,d)=>{const p=[t?1:n.length+1,d],f=t&&0===d&&!i.enabled?0:-1;return Xg.jsx(RF,{totalsStyle:a.totals,headRowHeight:s,atTop:t,align:e.totalsTextAlign,className:"sn-table-cell",tabIndex:c?-1:f,title:l.passive?e.totalInfo:void 0,onKeyDown:e=>{((e,t,n,r,o,i=!1)=>{if(i)CN(e);else if(!FN(e))switch(e.key){case SC.LEFT:case SC.RIGHT:case SC.UP:case SC.DOWN:{CN(e);const i=jN(n,e,o);i===EC.FOCUS&&MN({focusType:EC.REMOVE_TAB,cell:e.currentTarget}),DN({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,focusType:i});break}case SC.TAB:HN({evt:e,rootElement:t,setFocusedCellCoord:r,isNewHeadCellMenuEnabled:o});break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget);break;case SC.SPACE:e.preventDefault()}})(e,r,p,u,c,null==o?void 0:o.isModal())},onMouseDown:()=>{_N(p,r,u,i)},children:Xg.jsx(vF,{wordBreak:!e.isTotalNumeric,fontSize:a.totals.fontSize,children:e.totalInfo})},e.id)}))})};var LF=Qt.memo(PF);const IF=({setShouldRefocus:e,tableWrapperRef:t,announce:n})=>{var r;const{rows:o,columns:i,paginationNeeded:a,totalsPosition:l}=fq(uq,(e=>e.tableData)),{selectionsAPI:s,rootElement:u,keyboard:c,layout:d,interactions:p,styling:{body:{hoverColors:f,lastRowBottomBorder:m,...h}}}=fq(uq,(e=>e.baseProps)),g=fq(uq,(e=>e.setFocusedCellCoord)),b=fq(uq,(e=>e.selectionDispatch)),v=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),y=!!p.active&&!!p.select,x=JSON.stringify(i.map((e=>e.qAttrExprInfoIDs))),S=Qt.useMemo((()=>JSON.parse(x).map((e=>{const t=e.some((e=>"cellBackgroundColor"===e||"cellForegroundColor"===e));return AF(t,y)}))),[x,y]),E=!(null===(r=nq(d))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect);return xF({keyboard:c,selectionDispatch:b,selectionsAPI:s,setShouldRefocus:e,tableWrapperRef:t}),Xg.jsxs(EF,{lastRowBottomBorder:m,children:[l.atTop?Xg.jsx(LF,{}):void 0,o.map(((e,t)=>Xg.jsx(wF,{hoverColors:f,hover:E,tabIndex:-1,className:"sn-table-row sn-table-data-row",rowindex:t,children:i.map(((r,o)=>{const{id:i}=r,d=e[o],f=S[o],m=v||0!==t||0!==o||l.atTop||c.enabled?-1:0,x=aq({},d.qAttrExps,r.qAttrExprInfoIDs);return f&&Xg.jsx(f,{scope:0===o?"row":void 0,component:0===o?"th":void 0,cell:d,column:r,align:d.align,styling:h,tabIndex:m,announce:n,title:p.passive?d.representation.text:void 0,onKeyDown:e=>{(({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,keyboard:l,paginationNeeded:s,totalsPosition:u,selectionsAPI:c,isNewHeadCellMenuEnabled:d})=>{if(e.currentTarget.classList.contains("excluded"))return void CN(e);const p=null==c?void 0:c.isModal();if(!FN(e,p))switch(e.key){case SC.UP:case SC.DOWN:case SC.LEFT:case SC.RIGHT:CN(e),$N({evt:e,rootElement:t,cell:n,selectionDispatch:r,isSelectionsEnabled:o,setFocusedCellCoord:i,announce:a,totalsPosition:u,isSelectionMode:p,isNewHeadCellMenuEnabled:d});break;case SC.SPACE:CN(e),n.isSelectable&&o&&r({type:xC.SELECT,payload:{cell:n,evt:e,announce:a}});break;case SC.ENTER:CN(e),p&&(null==c||c.confirm(),a({keys:["SNTable.SelectionLabel.SelectionsConfirmed"]}));break;case SC.ESC:CN(e),null==c||c.cancel(),a({keys:["SNTable.SelectionLabel.ExitedSelectionMode"]});break;case SC.TAB:HN({evt:e,rootElement:t,setFocusedCellCoord:i,keyboard:l,isSelectionMode:p,paginationNeeded:s,isNewHeadCellMenuEnabled:d});break;case SC.C:CN(e),ON(e)&&yh(e.currentTarget)}})({evt:e,rootElement:u,selectionsAPI:s,cell:d,selectionDispatch:b,isSelectionsEnabled:y,setFocusedCellCoord:g,announce:n,keyboard:c,paginationNeeded:a,totalsPosition:l,isNewHeadCellMenuEnabled:v})},onKeyUp:e=>((e,t)=>{e.key===SC.SHIFT&&t({type:xC.SELECT_MULTI_END})})(e,b),onMouseDown:()=>((e,t,n,r,o)=>{const{pageRowIdx:i,pageColIdx:a}=e,l=o.atTop?i+2:i+1;_N([l,a],t,n,r)})(d,u,g,c,l),children:Xg.jsx(yF,{cell:d,style:x})},i)}))},`row-${t}`))),l.atBottom?Xg.jsx(LF,{}):void 0]})};var MF=Qt.memo(IF);const DF=({column:e,isLastColumn:t,onColumnResize:n,setIsAdjustingWidth:r})=>{const{pageColIdx:o}=e,{applyColumnWidths:i,interactions:a}=fq(uq,(e=>e.baseProps)),l=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),s=fq(uq,(e=>e.columnWidths)),u=fq(uq,(e=>e.setColumnWidths));if(!a.active)return null;return Xg.jsx(bq,{columnWidth:s[o],isLastColumn:t,keyValue:`adjuster-${o}`,isNewHeadCellMenuEnabled:l,updateWidthCallback:e=>{null==n||n();const t=[...s];t[o]=e,u(t)},confirmWidthCallback:t=>{i(t,e)},handleBlur:e=>((e,t)=>{var n;e.setAttribute("tabIndex","-1");const r=e.closest(".sn-table-cell");let o=null;var i;t?(o=r,null===(i=o)||void 0===i||i.setAttribute("tabIndex","0")):o=null==r?void 0:r.querySelector(".sn-table-head-menu-button"),null===(n=o)||void 0===n||n.focus()})(e.currentTarget,l),setIsAdjustingWidth:r})};function TF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _F=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){TF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),OF=Qt.forwardRef(_F);function NF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const qF=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){NF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),zF=Qt.forwardRef(qF);function FF(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const jF=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){FF(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"}),Zt.createElement("use",{fillRule:"evenodd"})),$F=Qt.forwardRef(jF),HF=mC("div")({position:"absolute",left:0,bottom:0}),BF=mC(zk,{shouldForwardProp:e=>!["isActivelySorted","textAlign","disabled","isNewHeadCellMenuEnabled"].includes(e)})((({isActivelySorted:e,textAlign:t,disabled:n,theme:r,isNewHeadCellMenuEnabled:o})=>({textAlign:t,height:"auto",...!o&&{maxWidth:"100%"},fontSize:"inherit",fontFamily:"inherit",padding:r.spacing(.5,1),color:"inherit",alignItems:"flex-end",cursor:n?"auto":"pointer",justifySelf:t,alignSelf:"center","&&:focus, &&:hover":{...o&&{background:"transparent",boxShadow:"none"},"& svg":{...!o&&{opacity:e?1:.5}}},"& svg":{opacity:e?1:0,fontSize:zP},"& .Mui-disabled":{color:"inherit"},"& .MuiButton-endIcon, .MuiButton-startIcon":{marginBottom:"2px",visibility:n?"hidden":"visible"}}))),WF=mC("span")({border:0,clip:"rect(0 0 0 0)",height:1,margin:-1,overflow:"hidden",padding:0,position:"absolute",top:20,width:1}),UF=mC(Ak,{shouldForwardProp:e=>"isLocked"!==e&&"isNewHeadCellMenuEnabled"!==e&&"shouldShowMenuIcon"!==e&&"shouldShowLockIcon"!==e})((({theme:e,isLocked:t,isNewHeadCellMenuEnabled:n,shouldShowMenuIcon:r,shouldShowLockIcon:o})=>{const i=r?"24px":"";let a="",l="",s=null;return n?(a=o?`20px 2fr ${i}`:`1fr ${i}`,l=o?`${i} 2fr 20px`:`${i} 1fr`,s=o):(a=t?"20px 2fr 24px":"1fr 24px",l=t?"24px 2fr 20px":"24px 1fr",s=t),{width:"100%",display:"grid",flexDirection:"inherit",gridAutoFlow:"dense",gap:e.spacing(.5),fontSize:"inherit",fontFamily:"inherit",...n&&{alignItems:"end",overflow:"hidden"},"&&:hover, &&:focus-within":{"& .sn-table-head-menu-button":{opacity:1}},"& > div:last-child":{alignSelf:"flex-end"},"&.aligned-left":{gridTemplateColumns:a},"&.aligned-center":{gridTemplateColumns:"24px 2fr 24px","& > div:first-child":{gridColumn:1},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:3}},"&.aligned-right":{gridTemplateColumns:l,"& > div:first-child":{gridColumn:s?3:"unset"},"& .sn-table-head-label":{gridColumn:2},"& > div:last-child":{gridColumn:1}}}})),VF=mC("div")({display:"flex",alignSelf:"flex-end"}),GF=mC(Ak)({display:"flex",alignItems:"center",width:"20px",height:"24px",flexShrink:0,flexDirection:"inherit","&.aligned-right":{justifyContent:"flex-start"},"&.aligned-center, &.aligned-left":{justifyContent:"flex-end"}}),YF=mC(Ak,{shouldForwardProp:e=>"isVisible"!==e&&"rightAligned"!==e})((({rightAligned:e})=>({...e?{marginRight:"auto"}:{marginLeft:"auto"},height:"24px",display:"flex"}))),KF=mC(zk,{shouldForwardProp:e=>"isVisible"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isVisible:e,isNewHeadCellMenuEnabled:t})=>({opacity:e?1:0,...!t&&{"&:focus":{opacity:1}}}))),XF=mC(Jk)((({theme:e})=>({"&.MuiDivider-root":{margin:e.spacing(.5)}}))),JF=mC(UA)((({theme:e})=>({borderRadius:"4px",margin:e.spacing(0,.5),padding:e.spacing(1,1.5),display:"flex",justifyContent:"space-between","&&:focus":{boxShadow:"rgb(23, 127, 230) 0px 0px 0px 2px"}}))),QF=mC("div")((()=>({display:"flex",justifyContent:"space-between",alignItems:"center"}))),ZF=mC(fA)((({theme:e})=>({marginRight:e.spacing(1.5),lineHeight:0})));mC("div")((({theme:e})=>({height:"350px",boxSizing:"border-box",background:e.palette.common.white})));const ej=({sortDirection:e,isLocked:t,headTextAlign:n})=>{const r="A"===e?Xg.jsx(OF,{height:zP}):Xg.jsx(zF,{height:zP}),o=t?Xg.jsx(GF,{className:`aligned-${n}`,children:Xg.jsx($F,{height:zP,"data-testid":"head-cell-lock-icon"})}):void 0;return"right"===n?{startIcon:r,lockIcon:o}:{endIcon:r,lockIcon:o}};function tj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const nj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){tj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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 0m0-7v3a.5.5 0 0 1-1 0v-3a.5.5 0 0 1 1 0m-1-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 0M9.166 6.166c1.555-1.555 4.113-1.555 5.668 0s1.555 4.113 0 5.668-4.113 1.555-5.668 0-1.555-4.063 0-5.668m4.966 1.555a.56.56 0 0 0 0-.803.56.56 0 0 0-.803 0l-1.304 1.305-1.304-1.305a.522.522 0 0 0-.803 0 .524.524 0 0 0 0 .803l1.305 1.304-1.305 1.304c-.25.2-.25.552 0 .803.251.25.602.25.803 0l1.304-1.304 1.304 1.304c.2.25.552.25.803 0 .2-.201.25-.602 0-.803l-1.304-1.304z"})),rj=Qt.forwardRef(nj);function oj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ij=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){oj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),aj=Qt.forwardRef(ij);function lj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const sj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){lj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M2 6.5h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1m5.5 0h1a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1h-1a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1"})),uj=Qt.forwardRef(sj);function cj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const dj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){cj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),pj=Qt.forwardRef(dj);function fj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const mj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){fj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),hj=Qt.forwardRef(mj);function gj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const bj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){gj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),vj=Qt.forwardRef(bj);function yj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const xj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){yj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Sj=Qt.forwardRef(xj);function Ej(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const wj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Ej(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Cj=Qt.forwardRef(wj);function Rj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const kj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Rj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("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"})),Aj=Qt.forwardRef(kj),Pj=new Map,Lj={canSelectAll:!1,canClearSelections:!1,canSelectPossible:!1,canSelectAlternative:!1,canSelectExcluded:!1},Ij=(e,t)=>e.some((e=>t[e]>0));function Mj(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Dj=(e,t)=>Zt.createElement("svg",function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){Mj(e,t,n[t])}))}return e}({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",height:"16px",fill:"currentColor","aria-hidden":"true",role:"img",ref:t},e),Zt.createElement("path",{d:"M8.5 8 4 3.5 5.5 2l6 6-6 6L4 12.5z"})),Tj=Qt.forwardRef(Dj);let _j={};const Oj=({autoFocus:e,id:t,onClick:n,itemTitle:r,icon:o,enabled:i,subMenus:a})=>{const[l,s]=Qt.useState(!1),u=Qt.useRef(null);return Xg.jsxs(Xg.Fragment,{children:[Xg.jsxs(JF,{ref:a?u:null,"data-testid":`menu-item-${t}`,className:"sn-table-head-menu-item",onClick:e=>{n&&(n(e),_j={}),null!=a&&a.length&&(s(!0),_j[r]=s)},disabled:!i,autoFocus:e,onKeyDown:uF,children:[Xg.jsxs(QF,{children:[Xg.jsx(ZF,{children:o}),Xg.jsx(nk,{variant:"body2",children:r})]}),null!=a&&a.length?Xg.jsx(Tj,{}):null]},t),(null==a?void 0:a.length)&&Xg.jsx(zj,{anchorEl:u.current,open:l,onClose:()=>s(!1),menuGroups:(c=a,d=_j,c.map((e=>e.map((({onClick:e,...t})=>({...t,...e?{onClick:t=>{Object.entries(d).map((([,e])=>e(!1))),e(t)}}:{}})))))),transformOrigin:{horizontal:"left",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"}})]});var c,d},Nj=({menuGroup:e})=>e.map((e=>Xg.jsx(Oj,{...e},e.id))),qj=({itemGroups:e})=>e.map(((t,n)=>[Nj({menuGroup:t}),n<e.length-1?Xg.jsx(XF,{"data-testid":"group-divider",variant:"middle"},"divider"):void 0])),zj=({anchorEl:e,open:t,onClose:n,menuGroups:r,transformOrigin:o,anchorOrigin:i,buttonId:a,menuId:l})=>r.length?Xg.jsx(jA,{className:"sn-table-head-menu",id:l,open:t,anchorEl:e,onClose:n,"aria-labelledby":a,...i?{anchorOrigin:i}:{},...o?{transformOrigin:o}:{},children:qj({itemGroups:r})}):null,Fj=({column:e,tabIndex:t})=>{const{isDim:n,qLibraryId:r,fieldId:o,headTextAlign:i,pageColIdx:a}=e,{translator:l,embed:s,model:u,interactions:c,layout:d}=fq(uq,(e=>e.baseProps)),p=Qt.useRef(null),f=Qt.useRef(null),[m,h]=Qt.useState(!1),[g,b]=Qt.useState(!1),{fieldInstance:v,selectionActionsEnabledStatus:y,resetSelectionActionsEnabledStatus:x,updateSelectionActionsEnabledStatus:S}=((e,t)=>{const{app:n,layout:r}=fq(uq,(e=>e.baseProps)),[o,i]=Qt.useState(null),[a,l]=Qt.useState(Lj);return Qt.useEffect((()=>{if(!(n&&n.getField&&e&&e.isDim&&t))return;const{qLibraryId:o,fieldId:a}=e;if(o){const e=`${n.id}-${o}`;Pj.get(e)?i(Pj.get(e)):n.createSessionObject(((e,t="$")=>({qInfo:{qType:"tableListbox"},qListObjectDef:{qLibraryId:e,qStateName:t}}))(o,r.qStateName)).then((t=>{const n={selectAll:()=>t.selectListObjectAll("/qListObjectDef"),clear:()=>t.clearSelections("/qListObjectDef").then((e=>e)),selectPossible:()=>t.selectListObjectPossible("/qListObjectDef"),selectAlternative:()=>t.selectListObjectAlternative("/qListObjectDef"),selectExcluded:()=>t.selectListObjectExcluded("/qListObjectDef")};i(n),Pj.set(e,n)}))}else n.getField(a,r.qStateName).then(i)}),[n,e,r.qStateName,t]),{fieldInstance:o,selectionActionsEnabledStatus:a,resetSelectionActionsEnabledStatus:Qt.useCallback((()=>l(Lj)),[]),updateSelectionActionsEnabledStatus:t=>{const n=t.qHyperCube.qDimensionInfo.find((t=>t.qFallbackTitle===e.label));n&&l({canSelectAll:Ij(["qOption","qAlternative","qExcluded","qDeselected"],n.qStateCounts),canClearSelections:Ij(["qSelected"],n.qStateCounts),canSelectPossible:Ij(["qOption"],n.qStateCounts),canSelectAlternative:Ij(["qAlternative"],n.qStateCounts),canSelectExcluded:Ij(["qAlternative","qExcluded"],n.qStateCounts)})}}})(e,m),E=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),w=Qt.useCallback((()=>{const e=r?{qLibraryId:r,type:"dimension"}:o;s.__DO_NOT_USE__.popover(f.current,e,{anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},stateName:d.qStateName}),s.on("fieldPopoverClose",(()=>{b(!1)}))}),[s,o,r,d.qStateName]),C=Qt.useMemo((()=>[...n&&c.select?[[{id:1,itemTitle:l.get("SNTable.MenuItem.Search"),onClick:e=>{e.stopPropagation(),h(!1),b(!0),w()},icon:Xg.jsx(pj,{}),enabled:!0}],[{id:1,itemTitle:l.get("SNTable.MenuItem.Selections"),icon:Xg.jsx(Aj,{}),enabled:!0,subMenus:[[{id:1,itemTitle:l.get("SNTable.MenuItem.SelectAll"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAll())},icon:Xg.jsx(hj,{}),enabled:y.canSelectAll},{id:2,itemTitle:l.get("SNTable.MenuItem.SelectPossible"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectPossible())},icon:Xg.jsx(Cj,{}),enabled:y.canSelectPossible},{id:3,itemTitle:l.get("SNTable.MenuItem.SelectAlternative"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectAlternative())},icon:Xg.jsx(vj,{}),enabled:y.canSelectAlternative},{id:4,itemTitle:l.get("SNTable.MenuItem.SelectExcluded"),onClick:async()=>{h(!1),await(null==v?void 0:v.selectExcluded())},icon:Xg.jsx(Sj,{}),enabled:y.canSelectExcluded}],[{id:1,itemTitle:l.get("SNTable.MenuItem.ClearSelections"),onClick:async()=>{h(!1),await(null==v?void 0:v.clear())},icon:Xg.jsx(rj,{}),enabled:y.canClearSelections}]]}]]:[],[{id:1,itemTitle:l.get("SNTable.MenuItem.AdjustColumnSize"),onClick:e=>{CN(e),h(!1),IN(p)},icon:Xg.jsx(aj,{}),enabled:!0}]]),[n,c.select,l,y,w,v]);Qt.useEffect((()=>{m||x()}),[m,x]);const R=d.qInfo.qId,k=`sn-table-head-menu-button-${a}-${R}`,A=`sn-table-head-menu-${a}-${R}`;return C.length?Xg.jsxs(YF,{rightAligned:"right"===i,children:[Xg.jsx(KF,{isVisible:g||m,ref:p,size:"small",tabIndex:t,className:"sn-table-head-menu-button",id:k,"aria-controls":m?A:void 0,"aria-expanded":m?"true":void 0,"aria-haspopup":"true",onClick:async()=>{if(!m&&u){const e=await u.getLayout();S(e)}h(!m)},"aria-label":l.get("SNTable.Accessibility.ColumnOptions"),isNewHeadCellMenuEnabled:E,children:Xg.jsx(uj,{height:zP})}),Xg.jsx("div",{ref:f}),Xg.jsx(zj,{open:m,anchorEl:p.current,onClose:()=>h(!1),menuGroups:C,buttonId:k,menuId:A})]}):null},jj=({children:e,column:t,isInteractionEnabled:n,open:r,setOpen:o,getHeadCellsIconsVisibilityStatus:i})=>{const{shouldShowLockIcon:a,shouldShowMenuIcon:l}=i(),{keyboard:s,translator:u,changeSortOrder:c,interactions:d,embed:p,app:f,model:m}=fq(uq,(e=>e.baseProps)),h=fq(uq,(e=>0===e.focusedCellCoord[0])),g=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),b=Qt.useRef(null),v=Qt.useRef(null),{startIcon:y,endIcon:x,lockIcon:S}=ej(t),E=n&&LN(s)?0:-1,w={A:u.get("SNTable.Accessibility.Ascending"),D:u.get("SNTable.Accessibility.Descending")};return Xg.jsxs(UF,{isLocked:Boolean(S),className:`aligned-${t.headTextAlign}`,isNewHeadCellMenuEnabled:g,...g&&{shouldShowMenuIcon:l,shouldShowLockIcon:a},children:[(g?a:S)&&Xg.jsx(VF,{children:S}),Xg.jsxs(BF,{className:"sn-table-head-label",isActivelySorted:t.isActivelySorted,textAlign:t.headTextAlign,color:"inherit",size:"small",...!g&&{startIcon:y,endIcon:x},tabIndex:g?-1:E,disabled:!n,onClick:g?()=>{}:()=>n&&c(t),isNewHeadCellMenuEnabled:g,children:[e,h&&Xg.jsx(WF,{"data-testid":`VHL-for-col-${t.pageColIdx}`,children:`${w[t.sortDirection]} ${u.get("SNTable.SortLabel.PressSpaceToSort")}`})]}),n&&(g?Xg.jsxs(Xg.Fragment,{children:[Xg.jsx(yz,{headerData:t,translator:u,anchorRef:b,handleHeadCellMenuKeyDown:uF,menuAvailabilityFlags:{[bz.SORTING]:!0,[bz.SEARCHING]:!0,[bz.SELECTIONS]:!0,[bz.ADJUST_HEADER_SIZE]:!0},open:r,setOpen:o,interactions:d,sortRelatedArgs:{sortFromMenu:(e,n)=>(e.stopPropagation(),c(t,n))},searchRelatedArgs:{embed:p,listboxRef:v},selectionRelatedArgs:{app:f,model:m},adjustHeaderSizeRelatedArgs:{setFocusOnColumnAdjuster:IN},shouldShowMenuIcon:!g||l}),Xg.jsx(HF,{ref:v}),Xg.jsx(HF,{ref:b})]}):Xg.jsx(Fj,{column:t,tabIndex:E}))]})},$j=({styling:e,column:t,columnWidths:n,isNewHeadCellMenuEnabled:r})=>{const{measureText:o}=rn({fontSize:e.head.fontSize,fontFamily:e.head.fontFamily,fontWeight:FP}),i=Qt.useCallback((()=>{var e;if(!r)return{shouldShowMenuIcon:!0,shouldShowSortIcon:!0,shouldShowLockIcon:!0};let i=!1,a=!1,l=!1;const s=t.isLocked,u=t.isActivelySorted,c=(null!==(e=n[t.colIdx])&&void 0!==e?e:n[t.pageColIdx])-25,d=s?24:0,p=u?20:0;let f=o(t.label);return s&&f+d<=c&&(l=!0,f+=d,u&&f+p<=c&&(a=!0,f+=p)),!s&&u&&f+p<=c&&(a=!0,f+=p),f+28<=c&&(i=!0,f+=28),{shouldShowMenuIcon:i,shouldShowSortIcon:a,shouldShowLockIcon:l}}),[r,t.colIdx,t.pageColIdx,t.isLocked,t.label,t.isActivelySorted,n,o]);return{getHeadCellsIconsVisibilityStatus:i,allIconsDisabled:Object.values(i()).every((e=>!1===e))}},Hj=({isInteractionEnabled:e,columnsData:t})=>{const[n,r]=Qt.useState(!1),{isAdjustingWidth:o,setIsAdjustingWidth:i}=(e=>{const[t,n]=Qt.useState(!1);return gf((()=>{n(!1)}),e),{isAdjustingWidth:t,setIsAdjustingWidth:n}})([t]);return{open:n,setOpen:r,handleOpenMenu:t=>e&&!(e=>{var t;return null===(t=e.target)||void 0===t||null===(t=t.getAttribute("class"))||void 0===t?void 0:t.includes(qm)})(t)&&!o&&r(!0),setIsAdjustingWidth:i}},Bj=(e,t,n,r)=>{const o=e&&t&&n;return e=>o&&e===r},Wj=mC(dP,{shouldForwardProp:e=>"headerStyle"!==e&&"isNewHeadCellMenuEnabled"!==e&&"interactions"!==e&&"hoverBackground"!==e&&"background"!==e})((({headerStyle:e,isNewHeadCellMenuEnabled:t,interactions:n,hoverBackground:r,background:o})=>({...jP,...e,...t&&{cursor:"pointer",background:o},pointer:"cursor",verticalAlign:"bottom","&&:focus-visible":{...!t&&{boxShadow:"none"},...t&&{background:n.active?r:o}},...t&&{"&&:hover":{background:n.active?r:o}}}))),Uj=mC("div")({display:"flex",alignItems:"center"}),Vj=mC("span",{shouldForwardProp:e=>"align"!==e})((({align:e})=>({minWidth:zP,display:"flex",paddingBottom:"2px",alignSelf:"end",..."right"===e?{paddingRight:"8px"}:{paddingLeft:"8px"}}))),Gj=({column:e,columnIndex:t,columnsLength:n})=>{const{styling:r,interactions:o,rootElement:i,keyboard:a,styling:{head:{activeBackground:l,background:s,hoverBackground:u}}}=fq(uq,(e=>e.baseProps)),{columns:c}=fq(uq,(e=>e.tableData)),d=fq(uq,(e=>e.columnWidths)),p=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=fq(uq,(e=>e.setFocusedCellCoord)),m=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),h=fq(uq,(({focusedCellCoord:[e,n]})=>0===e&&n===t)),g=!!o.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=Hj({isInteractionEnabled:g,columnsData:c}),{getHeadCellsIconsVisibilityStatus:S,allIconsDisabled:E}=$j({styling:r,column:e,columnWidths:d,isNewHeadCellMenuEnabled:m}),w=e.isActivelySorted?wC[e.sortDirection]:void 0,C=t===n-1,R=[0,e.pageColIdx],k={width:d[t]-(C?8:9),zIndex:c.length-t},{startIcon:A,endIcon:P}=ej(e),L=!!m&&0===e.colIdx&&!a.enabled&&h&&g?0:-1,I=S(),M=Bj(m,I.shouldShowSortIcon,e.isActivelySorted,e.headTextAlign);return Xg.jsxs(Wj,{headerStyle:r.head,style:k,align:e.headTextAlign,className:"sn-table-head-cell sn-table-cell","aria-sort":w,tabIndex:L,title:o.passive?e.label:void 0,onKeyDown:e=>cF({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,isInteractionEnabled:g,handleOpenMenu:y,isNewHeadCellMenuEnabled:m}),onMouseDown:e=>(({evt:e,rootElement:t,cellCoord:n,setFocusedCellCoord:r,keyboard:o,isInteractionEnabled:i})=>{var a;e.preventDefault(),i&&(r(n),o.enabled&&!o.active?null===(a=o.focus)||void 0===a||a.call(o):MN({focusType:EC.FOCUS_BUTTON,cell:RN(t,n)}))})({evt:e,rootElement:i,cellCoord:R,setFocusedCellCoord:f,keyboard:a,isInteractionEnabled:g}),isNewHeadCellMenuEnabled:m,background:b?l:s,hoverBackground:u,interactions:o,onClick:y,children:[Xg.jsx(jj,{column:e,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:S,children:m?Xg.jsxs(Uj,{children:[M("right")&&Xg.jsx(Vj,{align:e.headTextAlign,children:A}),Xg.jsx(vF,{allIconsDisabled:E,isPagination:!0,headCell:!0,children:e.label}),M("left")&&Xg.jsx(Vj,{align:e.headTextAlign,children:P})]}):Xg.jsx(vF,{fontSize:r.head.fontSize,children:e.label})}),Xg.jsx(DF,{column:e,isLastColumn:C,setIsAdjustingWidth:x})]},e.id)},Yj=()=>{var e;const{columns:t}=fq(uq,(e=>e.tableData)),{styling:n,viewService:r}=fq(uq,(e=>e.baseProps)),o=fq(uq,(e=>e.setHeadRowHeight)),i=fq(uq,(e=>e.columnWidths)),a=Qt.useRef(null);return Qt.useEffect((()=>{a.current&&o(a.current.clientHeight)}),[n.head.fontSize,i,o]),null!==(e=r.viewState)&&void 0!==e&&e.skipHeader?null:Xg.jsx(SP,{children:Xg.jsx(PP,{ref:a,className:"sn-table-row sn-table-head-row",children:t.map(((e,n)=>Xg.jsx(Gj,{column:e,columnIndex:n,columnsLength:t.length},e.id)))})})};var Kj=Qt.memo(Yj);const Xj=e=>{var t,n;const{pageInfo:r,setPageInfo:o,direction:i,footerContainer:a,announce:l}=e,{page:s,rowsPerPage:u}=r,{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:f,rows:m,columns:h,totalsPosition:g}=fq(uq,(e=>e.tableData)),{rootElement:b,keyboard:v,translator:y,theme:x,interactions:S,styling:E,viewService:w,layout:C,rect:R}=fq(uq,(e=>e.baseProps)),k=fq(uq,(e=>e.focusedCellCoord)),A=fq(uq,(e=>e.setFocusedCellCoord)),P=fq(uq,(e=>e.setYScrollbarWidth)),L=fq(uq,(e=>e.showRightBorder)),I=fq(uq,(e=>e.selectionDispatch)),M=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),D=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),T=Qt.useRef(!1),_=Qt.useRef(null),O=Qt.useRef(null),{yScrollbarWidth:N}=dF(_),q=`${y.get("SNTable.Accessibility.RowsAndColumns",[String(m.length+1),String(h.length)])} ${y.get("SNTable.Accessibility.NavigationInstructions")}`,z=Fg(C,w),F=z&&null!==(t=w.scrollLeft)&&void 0!==t?t:0,j=z&&null!==(n=w.rowPartialHeight)&&void 0!==n?n:0,$=Qt.useCallback((()=>{T.current=b.getElementsByTagName("table")[0].contains(document.activeElement)}),[b]),H=Qt.useCallback((e=>{o({...r,page:e}),l({keys:[["SNTable.Pagination.PageStatusReport",(e+1).toString(),p.toString()]],politeness:"assertive"})}),[r,o,p,l]),B=Qt.useCallback((e=>{o({...r,page:0,rowsPerPage:e}),l({keys:[["SNTable.Pagination.RowsPerPageChange",e.toString()]],politeness:"assertive"})}),[l,r,o]);return((e,t,n)=>{Qt.useEffect((()=>{const r=e.current;if(!r)return;const o=e=>((e,t,n)=>{const r=e.currentTarget,o=e.relatedTarget,i=!(null==r||!r.contains(o)),a=null==o?void 0:o.closest(".sn-table-head-menu");if(n.enabled&&!i&&!a&&!t.current&&r){var l;const e=r.querySelector(".sn-table-announcer-1"),t=r.querySelector(".sn-table-announcer-2");e&&t&&(e.innerHTML="",t.innerHTML=""),null===(l=n.blur)||void 0===l||l.call(n,!1)}})(e,t,n);return r.addEventListener("focusout",o),()=>{r.removeEventListener("focusout",o)}}),[e,t,n])})(O,T,v),sF(_,i,w),(()=>{const{rootElement:e,keyboard:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.focusedCellCoord)),r=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled));gf((()=>{let o=r||n[0]>0?EC.FOCUS:EC.FOCUS_BUTTON;o=t.active?o:EC.BLUR;const i=t.active?RN(e,n):kN(e);MN({focusType:o,cell:i})}),[t.active,e,r])})(),Qt.useEffect((()=>{const e=_.current;e&&(e.scrollLeft=F,e.scrollTop=j)}),[r,d,F,j]),lF((()=>{(({focusedCellCoord:e,rootElement:t,shouldRefocus:n,isSelectionMode:r,setFocusedCellCoord:o,keyboard:i,announce:a,totalsPosition:l,isNewHeadCellMenuEnabled:s})=>{MN({focusType:EC.REMOVE_TAB,cell:kN(t)});const u=[l.atTop?2:1,e[1]],c=r?u:s?AC:PC;if(LN(i)){const e=n.current?EC.FOCUS:EC.ADD_TAB;n.current=!1;const o=RN(t,c);if(MN({focusType:e,cell:o}),r){var d;const e=null==o||null===(d=o.classList)||void 0===d?void 0:d.contains("selected");a({keys:[`${null==o?void 0:o.textContent},`,e?"SNTable.SelectionLabel.SelectedValue":"SNTable.SelectionLabel.NotSelectedValue"]})}}o(c)})({focusedCellCoord:k,rootElement:b,shouldRefocus:T,setFocusedCellCoord:A,isSelectionMode:M,keyboard:v,announce:l,totalsPosition:g,isNewHeadCellMenuEnabled:D})}),[m.length,d,c,s,D]),lF((()=>{P(N)}),[N]),lF((()=>{I({type:xC.UPDATE_PAGE_ROWS,payload:{pageRows:m}})}),[m]),Xg.jsxs(oF,{ref:O,background:x.background,dir:i,onKeyDown:e=>{(({evt:e,totalRowCount:t,page:n,rowsPerPage:r,handleChangePage:o,setShouldRefocus:i,keyboard:a,isSelectionMode:l})=>{if(NN(e)){CN(e);const a=Math.ceil(t/r)-1;e.key===SC.RIGHT&&n<a?(i(),o(n+1)):e.key===SC.LEFT&&n>0&&(i(),o(n-1))}else if(e.key===SC.ESC&&a.enabled&&!l){var s;CN(e),null===(s=a.blur)||void 0===s||s.call(a,!0)}else qN(e.key)&&CN(e)})({evt:e,totalRowCount:d,page:s,rowsPerPage:u,handleChangePage:H,setShouldRefocus:$,keyboard:v,isSelectionMode:M})},"data-testid":"sn-table",children:[Xg.jsx(hF,{}),Xg.jsx(fF,{ref:_,className:"sn-table-container",fullHeight:a||!S.active||!f,interactions:S,tabIndex:-1,role:"application","data-testid":"table-container",children:Xg.jsxs(mF,{styling:E,showRightBorder:L,stickyHeader:!0,"aria-label":q,children:[Xg.jsx(Kj,{}),Xg.jsx(MF,{...e,setShouldRefocus:$,tableWrapperRef:O})]})}),Xg.jsx(rF,{footerContainer:a,pageInfo:r,paginationNeeded:f,theme:x,totalRowCount:d,totalColumnCount:c,totalPages:p,keyboard:v,translator:y,interactions:S,rect:R,layout:C,handleChangePage:H,handleChangeRowsPerPage:B,isSelectionMode:M})]})};var Jj=Qt.memo(Xj);function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}function Zj(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e$(e,t){return e$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e$(e,t)}function t$(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e$(e,t)}var n$=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r$(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(r=e[n],o=t[n],!(r===o||n$(r)&&n$(o)))return!1;var r,o;return!0}function o$(e,t){var n;void 0===t&&(t=r$);var r,o=[],i=!1;return function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return i&&n===this&&t(a,o)||(r=e.apply(this,a),i=!0,n=this,o=a),r}}function i$(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}var a$="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function l$(e){cancelAnimationFrame(e.id)}function s$(e,t){var n=a$();var r={id:requestAnimationFrame((function o(){a$()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var u$=-1;function c$(e){if(void 0===e&&(e=!1),-1===u$||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),u$=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return u$}var d$=null;function p$(e){if(void 0===e&&(e=!1),null===d$||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"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?d$="positive-descending":(t.scrollLeft=1,d$=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),d$}return d$}var f$=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function m$(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,u=e.getOffsetForRowAndAlignment,c=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,m=e.initInstanceProps,h=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=m(r.props,Zj(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Zj(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=o$((function(e,t,n,o,i,a,l,s){return r.props.onItemsRendered({overscanColumnStartIndex:e,overscanColumnStopIndex:t,overscanRowStartIndex:n,overscanRowStopIndex:o,visibleColumnStartIndex:i,visibleColumnStopIndex:a,visibleRowStartIndex:l,visibleRowStopIndex:s})})),r._callOnScroll=void 0,r._callOnScroll=o$((function(e,t,n,o,i){return r.props.onScroll({horizontalScrollDirection:n,scrollLeft:e,scrollTop:t,verticalScrollDirection:o,scrollUpdateWasRequested:i})})),r._getItemStyle=void 0,r._getItemStyle=function(e,t){var o,a=r.props,l=a.columnWidth,s=a.direction,u=a.rowHeight,p=r._getItemStyleCache(h&&l,h&&s,h&&u),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var m=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:m,right:g?m:void 0,top:d(r.props,e,r._instanceProps),height:c(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=o$((function(e,t,n){return{}})),r._onScroll=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.clientWidth,i=t.scrollLeft,a=t.scrollTop,l=t.scrollHeight,s=t.scrollWidth;r.setState((function(e){if(e.scrollLeft===i&&e.scrollTop===a)return null;var t=r.props.direction,u=i;if("rtl"===t)switch(p$()){case"negative":u=-i;break;case"positive-descending":u=s-o-i}u=Math.max(0,Math.min(u,s-o));var c=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"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&&l$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=s$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1)}))},r}t$(t,e),t.getDerivedStateFromProps=function(e,t){return h$(e,t),g(e),null};var b=t.prototype;return b.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)},b.scrollToItem=function(e){var t=e.align,n=void 0===t?"auto":t,r=e.columnIndex,o=e.rowIndex,i=this.props,c=i.columnCount,d=i.height,p=i.rowCount,f=i.width,m=this.state,h=m.scrollLeft,g=m.scrollTop,b=c$();void 0!==r&&(r=Math.max(0,Math.min(r,c-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var v=a(this.props,this._instanceProps),y=l(this.props,this._instanceProps)>f?b:0,x=v>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,h,this._instanceProps,x):h,scrollTop:void 0!==o?u(this.props,o,n,g,this._instanceProps,y):g})},b.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()},b.componentDidUpdate=function(){var e=this.props.direction,t=this.state,n=t.scrollLeft,r=t.scrollTop;if(t.scrollUpdateWasRequested&&null!=this._outerRef){var o=this._outerRef;if("rtl"===e)switch(p$()){case"negative":o.scrollLeft=-n;break;case"positive-ascending":o.scrollLeft=n;break;default:var i=o.clientWidth,a=o.scrollWidth;o.scrollLeft=a-i-n}else o.scrollLeft=Math.max(0,n);o.scrollTop=Math.max(0,r)}this._callPropsCallbacks()},b.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l$(this._resetIsScrollingTimeoutId)},b.render=function(){var e=this.props,t=e.children,n=e.className,r=e.columnCount,o=e.direction,i=e.height,s=e.innerRef,u=e.innerElementType,c=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?f$:p,m=e.outerElementType,h=e.outerTagName,g=e.rowCount,b=e.style,v=e.useIsScrolling,y=e.width,x=this.state.isScrolling,S=this._getHorizontalRangeToRender(),E=S[0],w=S[1],C=this._getVerticalRangeToRender(),R=C[0],k=C[1],A=[];if(r>0&&g)for(var P=R;P<=k;P++)for(var L=E;L<=w;L++)A.push(Qt.createElement(t,{columnIndex:L,data:d,isScrolling:v?x:void 0,key:f({columnIndex:L,data:d,rowIndex:P}),rowIndex:P,style:this._getItemStyle(P,L)}));var I=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return Qt.createElement(m||h||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:Qj({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},Qt.createElement(u||c||"div",{children:A,ref:s,style:{height:I,pointerEvents:x?"none":void 0,width:M}}))},b._callPropsCallbacks=function(){var e=this.props,t=e.columnCount,n=e.onItemsRendered,r=e.onScroll,o=e.rowCount;if("function"==typeof n&&t>0&&o>0){var i=this._getHorizontalRangeToRender(),a=i[0],l=i[1],s=i[2],u=i[3],c=this._getVerticalRangeToRender(),d=c[0],p=c[1],f=c[2],m=c[3];this._callOnItemsRendered(a,l,d,p,s,u,f,m)}if("function"==typeof r){var h=this.state,g=h.horizontalScrollDirection,b=h.scrollLeft,v=h.scrollTop,y=h.scrollUpdateWasRequested,x=h.verticalScrollDirection;this._callOnScroll(b,v,g,x,y)}},b._getHorizontalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanColumnCount,i=e.overscanColumnsCount,a=e.overscanCount,l=e.rowCount,s=this.state,u=s.horizontalScrollDirection,c=s.isScrolling,d=s.scrollLeft,p=n||i||a||1;if(0===t||0===l)return[0,0,0,0];var f=r(this.props,d,this._instanceProps),m=o(this.props,f,d,this._instanceProps),h=c&&"backward"!==u?1:Math.max(1,p),g=c&&"forward"!==u?1:Math.max(1,p);return[Math.max(0,f-h),Math.max(0,Math.min(t-1,m+g)),f,m]},b._getVerticalRangeToRender=function(){var e=this.props,t=e.columnCount,n=e.overscanCount,r=e.overscanRowCount,o=e.overscanRowsCount,i=e.rowCount,a=this.state,l=a.isScrolling,s=a.verticalScrollDirection,u=a.scrollTop,c=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,u,this._instanceProps),m=f(this.props,d,u,this._instanceProps),h=l&&"backward"!==s?1:Math.max(1,c),g=l&&"forward"!==s?1:Math.max(1,c);return[Math.max(0,d-h),Math.max(0,Math.min(i-1,m+g)),d,m]},t}(Qt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var h$=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},g$=function(e,t){var n=e.rowCount,r=t.rowMetadataMap,o=t.estimatedRowHeight,i=t.lastMeasuredRowIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},b$=function(e,t){var n=e.columnCount,r=t.columnMetadataMap,o=t.estimatedColumnWidth,i=t.lastMeasuredColumnIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},v$=function(e,t,n,r){var o,i,a;if("column"===e?(o=r.columnMetadataMap,i=t.columnWidth,a=r.lastMeasuredColumnIndex):(o=r.rowMetadataMap,i=t.rowHeight,a=r.lastMeasuredRowIndex),n>a){var l=0;if(a>=0){var s=o[a];l=s.offset+s.size}for(var u=a+1;u<=n;u++){var c=i(u);o[u]={offset:l,size:c},l+=c}"column"===e?r.lastMeasuredColumnIndex=n:r.lastMeasuredRowIndex=n}return o[n]},y$=function(e,t,n,r){var o,i;return"column"===e?(o=n.columnMetadataMap,i=n.lastMeasuredColumnIndex):(o=n.rowMetadataMap,i=n.lastMeasuredRowIndex),(i>0?o[i].offset:0)>=r?x$(e,t,n,i,0,r):S$(e,t,n,Math.max(0,i),r)},x$=function(e,t,n,r,o,i){for(;o<=r;){var a=o+Math.floor((r-o)/2),l=v$(e,t,a,n).offset;if(l===i)return a;l<i?o=a+1:l>i&&(r=a-1)}return o>0?o-1:0},S$=function(e,t,n,r,o){for(var i="column"===e?t.columnCount:t.rowCount,a=1;r<i&&v$(e,t,r,n).offset<o;)r+=a,a*=2;return x$(e,t,n,Math.min(r,i-1),Math.floor(r/2),o)},E$=function(e,t,n,r,o,i,a){var l="column"===e?t.width:t.height,s=v$(e,t,n,i),u="column"===e?b$(t,i):g$(t,i),c=Math.max(0,Math.min(u-l,s.offset)),d=Math.max(0,s.offset-l+a+s.size);switch("smart"===r&&(r=o>=d-l&&o<=c+l?"auto":"center"),r){case"start":return c;case"end":return d;case"center":return Math.round(d+(c-d)/2);default:return o>=d&&o<=c?o:d>c||o<d?d:c}},w$=m$({getColumnOffset:function(e,t,n){return v$("column",e,t,n).offset},getColumnStartIndexForOffset:function(e,t,n){return y$("column",e,n,t)},getColumnStopIndexForStartIndex:function(e,t,n,r){for(var o=e.columnCount,i=e.width,a=v$("column",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=v$("column",e,u,r).size;return u},getColumnWidth:function(e,t,n){return n.columnMetadataMap[t].size},getEstimatedTotalHeight:g$,getEstimatedTotalWidth:b$,getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){return E$("column",e,t,n,r,o,i)},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){return E$("row",e,t,n,r,o,i)},getRowOffset:function(e,t,n){return v$("row",e,t,n).offset},getRowHeight:function(e,t,n){return n.rowMetadataMap[t].size},getRowStartIndexForOffset:function(e,t,n){return y$("row",e,n,t)},getRowStopIndexForStartIndex:function(e,t,n,r){for(var o=e.rowCount,i=e.height,a=v$("row",e,t,r),l=n+i,s=a.offset+a.size,u=t;u<o-1&&s<l;)u++,s+=v$("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,o=e.rowIndex,i=e.shouldForceUpdate,a=void 0===i||i;"number"==typeof n&&(r.lastMeasuredColumnIndex=Math.min(r.lastMeasuredColumnIndex,n-1)),"number"==typeof o&&(r.lastMeasuredRowIndex=Math.min(r.lastMeasuredRowIndex,o-1)),t._getItemStyleCache(-1),a&&t.forceUpdate()},r},shouldResetStyleCacheOnItemSizeChange:!1,validateProps:function(e){e.columnWidth,e.rowHeight}}),C$=function(e,t){return e};function R$(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,u=e.shouldResetStyleCacheOnItemSizeChange,c=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,Zj(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Zj(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=o$((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=o$((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,l=i.itemSize,s=i.layout,c=r._getItemStyleCache(u&&l,u&&s,u&&a);if(c.hasOwnProperty(e))t=c[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?d:0;c[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=o$((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(p$()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-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,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-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&&l$(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=s$(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}t$(t,e),t.getDerivedStateFromProps=function(e,t){return k$(e,t),c(e),null};var d=t.prototype;return d.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)},d.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?c$():0:s.scrollHeight>s.clientHeight?c$():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},d.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},d.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(p$()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},d.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&l$(this._resetIsScrollingTimeoutId)},d.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,u=e.itemCount,c=e.itemData,d=e.itemKey,p=void 0===d?C$:d,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,v=e.width,y=this.state.isScrolling,x="horizontal"===o||"horizontal"===f,S=x?this._onScrollHorizontal:this._onScrollVertical,E=this._getRangeToRender(),w=E[0],C=E[1],R=[];if(u>0)for(var k=w;k<=C;k++)R.push(Qt.createElement(t,{data:c,key:p(k,c),index:k,isScrolling:b?y:void 0,style:this._getItemStyle(k)}));var A=r(this.props,this._instanceProps);return Qt.createElement(m||h||"div",{className:n,onScroll:S,ref:this._outerRefSetter,style:Qj({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},Qt.createElement(l||s||"div",{children:R,ref:a,style:{height:x?"100%":A,pointerEvents:y?"none":void 0,width:x?A:"100%"}}))},d._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],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},d._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var u=a(this.props,s,this._instanceProps),c=l(this.props,u,s,this._instanceProps),d=o&&"backward"!==i?1:Math.max(1,n),p=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,u-d),Math.max(0,Math.min(t-1,c+p)),u,c]},t}(Qt.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var k$=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},A$=function(e,t,n){var r=e.itemSize,o=n.itemMetadataMap,i=n.lastMeasuredIndex;if(t>i){var a=0;if(i>=0){var l=o[i];a=l.offset+l.size}for(var s=i+1;s<=t;s++){var u=r(s);o[s]={offset:a,size:u},a+=u}n.lastMeasuredIndex=t}return o[t]},P$=function(e,t,n,r,o){for(;r<=n;){var i=r+Math.floor((n-r)/2),a=A$(e,i,t).offset;if(a===o)return i;a<o?r=i+1:a>o&&(n=i-1)}return r>0?r-1:0},L$=function(e,t,n,r){for(var o=e.itemCount,i=1;n<o&&A$(e,n,t).offset<r;)n+=i,i*=2;return P$(e,t,Math.min(n,o-1),Math.floor(n/2),r)},I$=function(e,t){var n=e.itemCount,r=t.itemMetadataMap,o=t.estimatedItemSize,i=t.lastMeasuredIndex,a=0;if(i>=n&&(i=n-1),i>=0){var l=r[i];a=l.offset+l.size}return a+(n-i-1)*o},M$=R$({getItemOffset:function(e,t,n){return A$(e,t,n).offset},getItemSize:function(e,t,n){return n.itemMetadataMap[t].size},getEstimatedTotalSize:I$,getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.layout,u=e.width,c="horizontal"===a||"horizontal"===s?u:l,d=A$(e,t,o),p=I$(e,o),f=Math.max(0,Math.min(p-c,d.offset)),m=Math.max(0,d.offset-c+d.size+i);switch("smart"===n&&(n=r>=m-c&&r<=f+c?"auto":"center"),n){case"start":return f;case"end":return m;case"center":return Math.round(m+(f-m)/2);default:return r>=m&&r<=f?r:r<m?m:f}},getStartIndexForOffset:function(e,t,n){return function(e,t,n){var r=t.itemMetadataMap,o=t.lastMeasuredIndex;return(o>0?r[o].offset:0)>=n?P$(e,t,o,0,n):L$(e,t,Math.max(0,o),n)}(e,n,t)},getStopIndexForStartIndex:function(e,t,n,r){for(var o=e.direction,i=e.height,a=e.itemCount,l=e.layout,s=e.width,u="horizontal"===o||"horizontal"===l?s:i,c=A$(e,t,r),d=n+u,p=c.offset+c.size,f=t;f<a-1&&p<d;)f++,p+=A$(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 D$(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 T$=["style"],_$=["style"];function O$(e,t){var n=e.style,r=i$(e,T$),o=t.style,i=i$(t,_$);return!D$(n,o)&&!D$(r,i)}const N$=({style:e})=>Xg.jsx("div",{className:"sn-table-cell",style:{...e,borderWidth:"0px 1px 1px 0px",boxSizing:"border-box"}});var q$=Zt.memo(N$,O$);const z$=()=>{},F$=e=>e.preventDefault();const j$=({columnIndex:e,rowIndex:t,style:n,data:r})=>{var o;const{rowsInPage:i,columns:a,bodyStyle:l,isHoverEnabled:s}=r,u=fq(uq,(e=>e.hoverIndex===t)),c=fq(uq,(e=>e.setHoverIndex)),{interactions:d}=fq(uq,(e=>e.baseProps)),p=fq(uq,(e=>e.showRightBorder)),f=null===(o=i[t])||void 0===o?void 0:o[e],{handleMouseDown:m,handleMouseOver:h,handleMouseUp:g,cellSelectionState:b}=function(e){const{interactions:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.selectionDispatch)),r="object"==typeof e,o=fq(uq,(t=>r?BN(e,t.selectionState):yC.INACTIVE)),i=t.active&&t.select;if(r&&i){const{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i}=SF(F$,e,n,z$);return{handleMouseDown:t,handleMouseOver:r,handleMouseUp:i,cellSelectionState:o}}return{cellSelectionState:o}}(f);if("object"==typeof f){const r=((e,t,n,r,o)=>{const{hoverColors:i,lastRowBottomBorder:a,...l}=o,s=t.qAttrExprInfoIDs.length?aq(l,e.qAttrExps,t.qAttrExprInfoIDs):l;return r===yC.SELECTED?{...s,...NP.SELECTED}:r===yC.EXCLUDED?{...s,color:n?null==i?void 0:i.color:s.color,background:`${NP.EXCLUDED_BACKGROUND}, ${n?null==i?void 0:i.background:s.background}`}:n?{...s,...i}:s})(f,a[e],s&&u,b,l),o={rowindex:t,columnindex:e};return Xg.jsx("div",{className:`sn-table-cell ${b}`,style:{...n,...r,display:"flex",alignItems:"start",borderWidth:"0px",borderBottomWidth:f.isLastRow?"0px":"1px",borderRightWidth:f.isLastColumn&&!p?"0px":"1px",borderStyle:"solid",justifyContent:f.align,padding:"4px 12px",boxSizing:"border-box",cursor:"default"},onMouseDown:m,onMouseUp:g,onMouseOver:h,onMouseEnter:s?()=>c(t):void 0,onMouseLeave:s?()=>c(-1):void 0,title:d.passive?f.representation.text:void 0,...o,children:Xg.jsx(yF,{cell:f,style:r,virtualizedCell:!0})})}return Xg.jsx(q$,{style:{...n,...l,borderWidth:"0px 1px 1px 0px",borderStyle:"solid",boxSizing:"border-box"}})};var $$=Zt.memo(j$,O$);const H$=e=>{const t=Qt.useRef(e);return t.current=e,t},B$=({qLeft:e,qTop:t,qWidth:n,qHeight:r})=>`${e}-${t}-${n}-${r}`,W$=(e,t,n,r,o)=>{const i=e[n];if(!i)return!0;for(let e=t;e<t+r;e++){const t=i[e];if((null==t?void 0:t.rowIdx)!==o)return!0}return!1},U$=(e,t,n,r)=>{const o=e.slice(n,r);return 0===o.length||o.some((e=>!(null!=e&&e[t])))},V$=(e,t,n,r,o,i)=>{e.forEach((e=>{e.qMatrix.forEach(((a,l)=>{const s=e.qArea.qTop-t.page*t.rowsPerPage,{row:u,pageRowIdx:c}=((e,t,n,r,o,i,a,l)=>{var s;const{qSize:u}=a.qHyperCube,c=r.qTop+n,d=o+n,p=null!==(s=e[d])&&void 0!==s?s:[];return t.forEach(((e,t)=>{var n;const o=t+r.qLeft,{colIdx:a,isDim:s,isLocked:f,bodyTextAlign:m,selectionColIdx:h,qAttrExprInfoIDs:g,representation:b}=i[o],v=Ig(e);p[o]={...e,align:qg(e,m),rowIdx:c,colIdx:a,isSelectable:s&&!f,pageRowIdx:d,pageColIdx:o,selectionColIdx:h,isLastRow:c===u.qcy-1,isLastColumn:o===u.qcx-1,isNumeric:v,representation:Pg(e,b,g.findIndex((e=>"url"===e)),g.findIndex((e=>"urlLabel"===e)))},l(null!==(n=p[o].representation.text)&&void 0!==n?n:"",d,o,v)})),{row:p,pageRowIdx:d}})(n,a,l,e.qArea,s,r,o,i);n[c]=u}))}))},G$=({layout:e,model:t,theme:n,initialDataPages:r,pageInfo:o,rowCount:i,visibleRowCount:a,visibleColumnCount:l,columns:s,setCellSize:u,gridState:c})=>{const d=Qt.useRef([]),p=H$(u),f=Qt.useCallback(((t,n)=>{const r=Array.isArray(n)?n.slice(0,i):(e=>Array(e).fill(void 0))(i);return V$(t,o,r,s,e,p.current),d.current=r,r}),[i,o,s,e,p]),[m,h]=Qt.useState((()=>f(null!=r?r:[])));gf((()=>{h(f(null!=r?r:[]))}),[r]);const g=((e,t)=>{const n=Qt.useRef(new Set),r=Qt.useRef(new Set),o=Qt.useRef(new Set),i=H$(e),a=H$(t),l=Qt.useMemo((()=>({enqueue:e=>{const t=B$(e);o.current.has(t)||(n.current.add(e),o.current.add(t),1===n.current.size&&setTimeout((async()=>{const e=Array.from(n.current.values());if(0!==e.length){n.current.clear(),r.current.add(e);try{const t=(e=>{const t=[];return e.forEach((e=>{if(t.length>0){const n=t[t.length-1];((e,t)=>e.qTop+e.qHeight===t.qTop&&e.qLeft===t.qLeft&&e.qWidth===t.qWidth)(n,e)?n.qHeight+=e.qHeight:((e,t)=>e.qLeft+e.qWidth===t.qLeft&&e.qTop===t.qTop&&e.qHeight===t.qHeight)(n,e)?n.qWidth+=e.qWidth:t.push({...e})}else t.push({...e})})),t})(e),n=await i.current(t);r.current.has(e)&&a.current(n)}catch(t){e.forEach((e=>{o.current.delete(B$(e))}))}finally{r.current.delete(e)}}}),75))},clear:()=>{n.current.clear(),r.current.clear(),o.current.clear()}})),[i,a]);return l})((e=>t.getHyperCubeData("/qHyperCubeDef",e)),(e=>h((t=>f(e,t))))),b=Qt.useCallback(((e,t,n,r)=>{for(let o=e;o<e+n;o++)if(U$(d.current,o,t,r)){const e={qLeft:o,qTop:t,qHeight:r,qWidth:1};g.enqueue(e)}}),[d,g]),v=Qt.useCallback(((e,t,n,r)=>{for(let i=t;i<t+r;i++){const t=Math.max(0,i-o.page*o.rowsPerPage);if(W$(d.current,e,t,n,i)){const t={qLeft:e,qTop:i,qHeight:1,qWidth:n};g.enqueue(t)}}}),[d,g,o]),y=n.name();return Qt.useEffect((()=>{const{qcx:t,qcy:n}=e.qHyperCube.qSize,r=c.current.overscanRowStartIndex,i=c.current.overscanColumnStartIndex,s=r+o.page*o.rowsPerPage,u=t-i,d=o.rowsPerPage-r,p=Math.min(100,u,t,l+5),f=Math.min(100,d,n,a+25);return v(i,s,p,f),()=>{g.clear()}}),[e,a,l,o,g,v,c,y]),{rowsInPage:m,loadRows:v,loadColumns:b}},Y$=({style:e,columnWidths:t,rowHeight:n,pageInfo:r,rowCount:o,gridRef:i,lineRef:a,columns:l,fontWeight:s,gridState:u,isSnapshot:c,viewService:d,maxNbrLines:p=3,allColumnsIconVisibilityStatus:f,isNewHeadCellMenuEnabled:m=!1})=>{var h;const g=Qt.useRef({lastScrollToRatio:0,resetAfterRowIndex:0,heights:[],totalHeight:0,count:0,measuredCells:new Map}),{layout:b,rect:v}=fq(uq,(e=>e.baseProps)),[y,x]=Qt.useState(n||24),{measureText:S,estimateLineCount:E}=rn({...e,fontWeight:s}),w=parseInt(null!==(h=e.fontSize)&&void 0!==h?h:jP.fontSize,10)*KN,C=8e6/o-8-1,R=Math.max(0,Math.min(p,Math.round(C/w))),k=Qt.useCallback(((e,n,r)=>{const o=l?(({isNewHeadCellMenuEnabled:e,width:t,column:n,columnIconsVisibilityStatus:r})=>{let o=0;if(!e)return o=t-71,o-=n.isLocked?24:0,Math.max(0,o);let i=0,a=0,l=0;if(r){const{shouldShowLockIcon:e,shouldShowSortIcon:t,shouldShowMenuIcon:n}=r,o=4;i=e?20+o:0,a=t?20:0,l=n?o+24:0}return o=t-25-i-a-l,Math.max(0,o)})({isNewHeadCellMenuEnabled:m,width:t[n],column:l[n],columnIconsVisibilityStatus:null==f?void 0:f[n]}):(e=>Math.max(0,e-24-1))(t[n]),i=Math.min(R,E({text:e.trim(),maxWidth:o,isNumeric:r}));return Math.max(1,i)*w+8+1}),[t,w,R,l,E,f,m]),A=Qt.useCallback(((e,t,n,r=!1,o=!1)=>{const i=`${t}-${n}`;if(g.current.measuredCells.has(i))return;g.current.measuredCells.set(i,[e,t,n,r]);const a=k(e,n,r),l=g.current.heights[t],s=a-l;s>0?(g.current.totalHeight+=s,g.current.heights[t]=a):void 0===l&&(g.current.count+=1,g.current.totalHeight+=a,g.current.heights[t]=a),o||c||x(g.current.totalHeight/g.current.count)}),[k,c]),P=Qt.useCallback((e=>{var t;return null!==(t=g.current.heights[e])&&void 0!==t?t:y}),[g,y]),L=Qt.useCallback((()=>{g.current.lastScrollToRatio=0,g.current.resetAfterRowIndex=0,g.current.heights=[],g.current.totalHeight=0,g.current.count=0,g.current.measuredCells.clear()}),[g]),I=H$(A),M=Qt.useCallback((()=>{const e=new Map(g.current.measuredCells);L(),e.forEach((([e,t,n,r])=>{I.current(e,t,n,r,!0)})),c||x(g.current.totalHeight/g.current.count)}),[L,c,I]);gf((()=>{L()}),[b,r]),gf((()=>{M()}),[S,v.width]);return null!=i&&i.current?i.current.resetAfterRowIndex(g.current.resetAfterRowIndex,!1):null!=a&&a.current&&a.current.resetAfterIndex(g.current.resetAfterRowIndex,!1),d.estimatedRowHeight=y,{setCellSize:A,getRowHeight:P,rowMeta:g,estimatedRowHeight:y,maxLineCount:R,resizeVisibleCells:e=>{if(!u)return;L();const{overscanRowStartIndex:t,overscanRowStopIndex:n}=u.current,r=Math.min(n,b.qHyperCube.qSize.qcy-1);for(let n=t;n<=r;n++){var o;const t=null!==(o=e[n])&&void 0!==o?o:{};Object.values(t).forEach((e=>{var t;"object"==typeof e&&A(null!==(t=e.representation.text)&&void 0!==t?t:"",n,e.pageColIdx,e.isNumeric)}))}},resizeAllCells:M,resetRowMeta:L}};var K$;!function(e){e.Left="Left",e.Right="Right",e.Up="Up",e.Down="Down",e.None="None"}(K$||(K$={}));const X$={enabled:!1},J$=()=>{},Q$={current:null};const Z$=(e,t,n,r,o)=>{const i=Math.min(t.rowsPerPage,e.qHyperCube.qSize.qcy-t.page*t.rowsPerPage),a=Math.min(i,Math.ceil(n.height/o)),l=Qt.useMemo((()=>r.reduce(((e,t)=>e.width<n.width?{width:e.width+t,count:e.count+1}:e),{count:0,width:0})),[n,r]).count;return{rowCount:i,visibleRowCount:a,visibleColumnCount:l}},eH=({columnIndex:e,data:t,rowIndex:n})=>{var r;const o=null===(r=t.rowsInPage[n])||void 0===r?void 0:r[e];return`${null==o?void 0:o.qElemNumber}-${null==o?void 0:o.qText}-${n}-${e}`},tH={overflow:"hidden",willChange:"auto"},nH=Qt.forwardRef(((e,t)=>{var n,r;const{rect:o,columns:i,innerForwardRef:a,pageInfo:l,bodyStyle:s,rowHeight:u,headerAndTotalsHeight:c,syncHeight:d}=e,{layout:p,model:f,theme:m,viewService:h}=fq(uq,(e=>e.baseProps)),g=fq(uq,(e=>e.columnWidths)),b=fq(uq,(e=>e.initialDataPages)),v=null===(n=h.viewState)||void 0===n?void 0:n.maxLineCount,y=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),x=Qt.useRef(null),S=Qt.useRef({overscanColumnStartIndex:0,overscanRowStartIndex:0,overscanColumnStopIndex:0,overscanRowStopIndex:0}),E=!(null===(r=nq(p))||void 0===r||null===(r=r.content)||void 0===r||!r.hoverEffect),{scrollHandler:w,verticalScrollDirection:C,horizontalScrollDirection:R}=(()=>{const e=Qt.useRef(0),t=Qt.useRef(0),n=Qt.useRef(K$.None),r=Qt.useRef(K$.None);return{scrollHandler:Qt.useCallback((({scrollTop:o,scrollLeft:i})=>{o>t.current?n.current=K$.Down:o<t.current?n.current=K$.Up:n.current=K$.None,i>e.current?r.current=K$.Right:i<e.current?r.current=K$.Left:r.current=K$.None,t.current=o,e.current=i}),[t,e,n,r]),verticalScrollDirection:n,horizontalScrollDirection:r}})(),{rowCount:k,visibleRowCount:A,visibleColumnCount:P}=Z$(p,l,o,g,u),{setCellSize:L,getRowHeight:I,rowMeta:M,estimatedRowHeight:D,maxLineCount:T,resizeVisibleCells:_}=Y$({pageInfo:l,style:s,rowHeight:u,columnWidths:g,gridRef:x,rowCount:k,gridState:S,isSnapshot:!!p.snapshotData,viewService:h,maxNbrLines:v,isNewHeadCellMenuEnabled:y}),{rowsInPage:O,loadRows:N,loadColumns:q}=G$({layout:p,model:f,theme:m,initialDataPages:b,pageInfo:l,rowCount:k,visibleRowCount:A,visibleColumnCount:P,columns:i,setCellSize:L,gridState:S}),z=(({layout:e,loadRows:t,loadColumns:n,verticalScrollDirection:r,horizontalScrollDirection:o,rowCount:i,pageInfo:a,gridState:l,viewService:s})=>Qt.useCallback((({overscanColumnStartIndex:u,overscanColumnStopIndex:c,overscanRowStartIndex:d,overscanRowStopIndex:p,visibleColumnStartIndex:f,visibleColumnStopIndex:m,visibleRowStartIndex:h,visibleRowStopIndex:g})=>{if(l.current.overscanColumnStartIndex=u,l.current.overscanColumnStopIndex=c,l.current.overscanRowStartIndex=d,l.current.overscanRowStopIndex=p,d>i)return;const b=u,v=d+a.page*a.rowsPerPage,y=c-u+1,x=p-d+1;if(s.visibleLeft=f,s.visibleWidth=m-f+1,s.visibleTop=h+a.page*a.rowsPerPage,s.visibleHeight=g-h+1,s.page=a.page,s.rowsPerPage=a.rowsPerPage,r.current===K$.Down){const e=x+25;t(b,v,y,d+e>i?i-d:e)}else if(r.current===K$.Up){const e=x+25,n=a.page*a.rowsPerPage,r=Math.max(n,v-25);t(b,r,y,e)}if(o.current===K$.Right){const t=e.qHyperCube.qSize.qcx-b,r=y+5,o=Math.min(t,r);n(b,v,o,x)}else if(o.current===K$.Left){const t=Math.max(0,b-5),r=Math.min(e.qHyperCube.qSize.qcx,y+5);n(t,v,r,x)}}),[l,i,a.page,a.rowsPerPage,s,r,o,t,e.qHyperCube.qSize.qcx,n]))({layout:p,loadRows:N,loadColumns:q,verticalScrollDirection:C,horizontalScrollDirection:R,rowCount:k,pageInfo:l,gridState:S,viewService:h}),F=Qt.useMemo((()=>({rowsInPage:O,columns:i,bodyStyle:s,isHoverEnabled:E,maxLineCount:T})),[O,i,s,E,T]),j=((e,t,n,r)=>{let{height:o}=e;return o-=t,n*r<o&&(o=Math.min(n*r,o)),o})(o,c,k,D);return Qt.useLayoutEffect((()=>{var e,t;d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!0)}),[k,d,a]),Qt.useLayoutEffect((()=>{var e,t,n;(d(null!==(e=null===(t=a.current)||void 0===t?void 0:t.clientHeight)&&void 0!==e?e:0,!1),1===M.current.lastScrollToRatio)&&(null===(n=x.current)||void 0===n||n.scrollToItem({rowIndex:k-1,align:"start"}))})),function(e){const{selectionsAPI:t}=fq(uq,(e=>e.baseProps)),n=fq(uq,(e=>e.selectionDispatch));Qt.useEffect((()=>{n({type:xC.UPDATE_PAGE_ROWS,payload:{pageRows:e}})}),[n,e]),xF({selectionsAPI:t,selectionDispatch:n,setShouldRefocus:J$,keyboard:X$,tableWrapperRef:Q$})}(O),gf((()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1})}),[p,l,m.name(),o.width,g]),Qt.useImperativeHandle(t,(()=>({interpolatedScrollTo:(e,t)=>{var n,r;const o=(null!==(n=null===(r=a.current)||void 0===r?void 0:r.clientHeight)&&void 0!==n?n:j)-j,i=Math.round(o*e);var l,s,u;(M.current.lastScrollToRatio=e,1===M.current.lastScrollToRatio)?(null===(l=x.current)||void 0===l||l.scrollToItem({rowIndex:k-1,align:"start"}),null===(s=x.current)||void 0===s||s.scrollTo({scrollLeft:t})):null===(u=x.current)||void 0===u||u.scrollTo({scrollTop:i,scrollLeft:t})},resizeCells:()=>{var e;null===(e=x.current)||void 0===e||e.resetAfterIndices({columnIndex:0,rowIndex:0,shouldForceUpdate:!1}),_(O)}})),[a,j,M,k,_,O]),Xg.jsx(w$,{"data-key":"body",ref:x,innerRef:a,style:tH,columnCount:p.qHyperCube.qSize.qcx,columnWidth:e=>g[e],height:j,rowCount:k,rowHeight:I,estimatedRowHeight:D,width:o.width,itemData:F,onItemsRendered:z,onScroll:w,itemKey:eH,className:"sn-table-body",children:$$})}));var rH=Qt.memo(nH);const oH=({width:e,height:t,children:n})=>Xg.jsx("div",{"data-key":"full-size-container",style:{display:"block",width:e,height:t},children:n}),iH=mC("div",{shouldForwardProp:e=>"interactions"!==e&&"hoverBackground"!==e&&"background"!==e&&"applicableStyle"!==e&&"isNewHeadCellMenuEnabled"!==e})((({isNewHeadCellMenuEnabled:e,interactions:t,hoverBackground:n,background:r,applicableStyle:o})=>({...o,...e&&{background:r},"&&:hover":{...e&&{background:t.active?n:r}}}))),aH=({index:e,style:t,data:n})=>{const{columns:r,headerStyle:{...o},columResizeHandler:i,allColumnsIconVisibilityStatusRef:a}=n,{styling:l,interactions:s,styling:{head:{activeBackground:u,background:c,hoverBackground:d}}}=fq(uq,(e=>e.baseProps)),p=fq(uq,(e=>{var t;return null===(t=e.baseProps.selectionsAPI)||void 0===t?void 0:t.isModal()})),f=fq(uq,(e=>e.showRightBorder)),m=fq(uq,(e=>e.columnWidths)),h=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),g=!!s.active&&!p,{open:b,setOpen:v,handleOpenMenu:y,setIsAdjustingWidth:x}=Hj({isInteractionEnabled:g,columnsData:r}),S=r[e],E=r.length-1===e,w="right"===S.headTextAlign?"row-reverse":"row",{getHeadCellsIconsVisibilityStatus:C,allIconsDisabled:R}=$j({styling:l,column:S,columnWidths:m,isNewHeadCellMenuEnabled:h}),{startIcon:k,endIcon:A}=ej(S),P=C();a.current[e]=P;const L=Bj(h,P.shouldShowSortIcon,S.isActivelySorted,S.headTextAlign);return Xg.jsxs(iH,{className:"sn-table-cell",title:s.passive?S.label:void 0,onClick:y,applicableStyle:o,style:{...t,cursor:h?"pointer":"default",display:"flex",alignItems:"flex-end",borderStyle:"solid",borderWidth:E&&!f?"0px 0px 1px 0px":"0px 1px 1px 0px",padding:"4px",justifyContent:S.headTextAlign,boxSizing:"border-box",zIndex:r.length-e,flexDirection:w,userSelect:"none"},interactions:s,hoverBackground:d,background:b?u:c,isNewHeadCellMenuEnabled:h,children:[Xg.jsx(jj,{column:S,isInteractionEnabled:g,open:b,setOpen:v,getHeadCellsIconsVisibilityStatus:C,children:h?Xg.jsxs(Uj,{children:[L("right")&&Xg.jsx(Vj,{align:S.headTextAlign,children:k}),Xg.jsx(vF,{allIconsDisabled:R,headCell:!0,virtualizedCell:!0,children:S.label}),L("left")&&Xg.jsx(Vj,{align:S.headTextAlign,children:A})]}):Xg.jsx(vF,{wordBreak:!0,lines:3,children:S.label})}),Xg.jsx(DF,{column:S,isLastColumn:E,onColumnResize:i,setIsAdjustingWidth:x})]})},lH=(e,t,n,r,o)=>{Qt.useLayoutEffect((()=>{var t;null==e||null===(t=e.current)||void 0===t||t.resetAfterIndex(0,!0)}),[t,n,e,r,o])},sH={overflow:"hidden",boxSizing:"border-box",willChange:"auto"},uH=e=>{const{rect:t,forwardRef:n,columns:r,pageInfo:o,headerStyle:i,rowHeight:a,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s}=e,{layout:u,theme:c}=fq(uq,(e=>e.baseProps)),d=fq(uq,(e=>e.columnWidths));return lH(n,u,o,d,c.name()),Xg.jsx(M$,{ref:n,layout:"horizontal",style:sH,itemCount:u.qHyperCube.qSize.qcx,itemSize:e=>d[e],height:a,width:t.width,itemData:{columns:r,headerStyle:i,columResizeHandler:l,allColumnsIconVisibilityStatusRef:s},children:aH})};var cH=Qt.memo(uH);const dH=Zt.forwardRef(((e,t)=>{const{children:n,width:r,height:o,onScroll:i}=e,{interactions:a}=fq(uq,(e=>e.baseProps));return Xg.jsx("div",{"data-testid":"scrollable-container",ref:t,style:{overflow:a.active?"auto":"hidden",width:r,height:o},onScroll:i,children:n})})),pH=({children:e,rect:t})=>Xg.jsx("div",{"data-testid":"sticky-container",style:{position:"sticky",top:"0px",left:"0px",width:t.width,height:t.height},children:e}),fH=({index:e,style:t,data:n})=>{const{layout:r,interactions:o}=fq(uq,(e=>e.baseProps)),i=fq(uq,(e=>e.showRightBorder)),a=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),{totalsStyle:{hoverColors:l,...s},columns:u,totals:c}=n,d=u[e].totalInfo,{totalsTextAlign:p,isTotalNumeric:f}=u[e],m=r.qHyperCube.qSize.qcx-1===e;return Xg.jsx("div",{className:"sn-table-cell",title:o.passive?d:void 0,style:{...t,...s,display:"flex",alignItems:c.atTop?"end":"start",borderStyle:"solid",borderLeftWidth:"0px",borderRightWidth:m&&!i?"0px":"1px",borderTopWidth:c.atBottom?"1px":"0px",borderBottomWidth:c.atTop?"1px":"0px",padding:"4px 12px",justifyContent:p,boxSizing:"border-box",cursor:"default",fontWeight:FP},children:Xg.jsx(vF,{wordBreak:!f,lines:3,...a&&{virtualizedCell:!0},children:d})})},mH=e=>{const{rect:t,forwardRef:n,pageInfo:r,totals:o,rowHeight:i,columns:a}=e,{layout:l,styling:s,theme:u}=fq(uq,(e=>e.baseProps)),c=fq(uq,(e=>e.columnWidths));return lH(n,l,r,c,u.name()),Xg.jsx(M$,{ref:n,layout:"horizontal",style:sH,itemCount:l.qHyperCube.qSize.qcx,itemSize:e=>c[e],height:i,width:t.width,itemData:{totalsStyle:s.totals,columns:a,totals:o},children:fH})};var hH=Qt.memo(mH);const gH=({columns:e,columnWidths:t,pageInfo:n,headerRef:r,totalsRef:o,totalsPosition:i,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s})=>{const{styling:u}=fq(uq,(e=>e.baseProps)),c=fq(uq,(e=>e.featureFlags.isNewHeadCellMenuEnabled)),d=Y$({style:u.head,columnWidths:t,lineRef:r,rowCount:1,pageInfo:n,fontWeight:FP,columns:e,isSnapshot:a,viewService:l,allColumnsIconVisibilityStatus:s,isNewHeadCellMenuEnabled:c}),p=Y$({style:u.totals,columnWidths:t,lineRef:o,rowCount:1,pageInfo:n,fontWeight:FP,isSnapshot:a,viewService:l,isNewHeadCellMenuEnabled:c});e.forEach(((e,t)=>{d.setCellSize(e.label,0,t),p.setCellSize(e.totalInfo,0,t,Lg(e.totalInfo))}));const f=d.getRowHeight(0)+8,m=p.getRowHeight(0);return{headerRowHeight:f,totalsRowHeight:m,bodyRowHeight:a?l.estimatedRowHeight:(({fontSize:e=jP.fontSize})=>Math.max(24,JN(e)))(u.body),headerAndTotalsHeight:i.atTop||i.atBottom?f+m:f,resizeAllHeaderCells:d.resizeAllCells,resizeAllTotalCells:p.resizeAllCells}},bH=e=>{var t;const{pageInfo:n}=e,{totalsPosition:r,columns:o,paginationNeeded:i}=fq(uq,(e=>e.tableData)),{layout:a,theme:l,styling:s,rect:u,viewService:c}=fq(uq,(e=>e.baseProps)),d=fq(uq,(e=>e.columnWidths)),p=fq(uq,(e=>e.setYScrollbarWidth)),f=Qt.useRef(null),m=Qt.useRef(null),h=Qt.useRef(null),g=Qt.useRef(null),b=Qt.useRef(),{xScrollbarWidth:v,yScrollbarWidth:y}=dF(f),x=Qt.useMemo((()=>{var e;return{...s.body,background:null!==(e=l.background.color)&&void 0!==e?e:"transparent"}}),[l.background.color,s]),S=Qt.useRef([]),{headerRowHeight:E,totalsRowHeight:w,bodyRowHeight:C,headerAndTotalsHeight:R,resizeAllHeaderCells:k,resizeAllTotalCells:A}=gH({columns:o,columnWidths:d,pageInfo:n,totalsPosition:r,headerRef:m,totalsRef:h,isSnapshot:!!a.snapshotData,viewService:c,allColumnsIconVisibilityStatus:S.current}),P=Qt.useMemo((()=>((e,t)=>{const n=e.height-(t?41:0);return{width:e.width,height:n}})(u,i)),[u,i]),L=Qt.useMemo((()=>((e,t,n)=>({width:e.width-n,height:e.height-t}))(P,v,y)),[P,v,y]),{rowCount:I}=Z$(a,n,L,d,C),[M,D]=Qt.useState(I*C+R),T=d.reduce(((e,t)=>e+t),0),_=((e,t,n,r)=>Qt.useCallback((o=>{var i,a,l;const{scrollHeight:s,clientHeight:u,scrollTop:c,scrollLeft:d}=o.currentTarget,p=Math.max(0,Math.min(1,c/(s-u)));r.scrollTopRatio=p,r.scrollLeft=d,null===(i=n.current)||void 0===i||i.interpolatedScrollTo(Number.isNaN(p)?0:p,d),null===(a=e.current)||void 0===a||a.scrollTo(d),null===(l=t.current)||void 0===l||l.scrollTo(d)}),[r,n,e,t]))(m,h,g,c),O=Qt.useCallback(((e,t=!1)=>{const n=e+R;(M<L.height&&n>L.height||t)&&D(n)}),[M,R,L.height]),N=Qt.useCallback((()=>{var e;f.current&&(f.current.scrollTop=0),null===(e=g.current)||void 0===e||e.resizeCells(),k(),A()}),[f,k,A]);Qt.useLayoutEffect((()=>{f.current&&(f.current.scrollLeft=0,f.current.scrollTop=0)}),[o.length]);const q=l.name();Qt.useLayoutEffect((()=>{f.current&&(f.current.scrollTop=0)}),[n,I,q]),lF((()=>{p(y)}),[y]);const z=Xg.jsx(hH,{rect:L,pageInfo:n,columns:o,forwardRef:h,totals:r,rowHeight:w});return Xg.jsx(dH,{ref:f,width:P.width,height:P.height,onScroll:_,children:Xg.jsx(oH,{width:T,height:M,children:Xg.jsxs(pH,{rect:L,children:[null!==(t=c.viewState)&&void 0!==t&&t.skipHeader?null:Xg.jsx(cH,{headerStyle:s.head,rect:L,pageInfo:n,columns:o,forwardRef:m,rowHeight:E,columResizeHandler:N,allColumnsIconVisibilityStatusRef:S}),r.atTop?z:null,Xg.jsx(rH,{ref:g,innerForwardRef:b,bodyStyle:x,rect:L,pageInfo:n,columns:o,rowHeight:C,headerAndTotalsHeight:R,syncHeight:O}),r.atBottom?z:null]})})})};var vH=Qt.memo(bH);const yH=()=>{const{theme:e,keyboard:t,translator:n,interactions:r,rect:o,layout:i}=fq(uq,(e=>e.baseProps)),{paginationNeeded:a,totalRowCount:l,totalColumnCount:s,totalPages:u}=fq(uq,(e=>e.tableData)),c=fq(uq,(e=>e.pageInfo)),d=fq(uq,(e=>e.setPage));return Xg.jsxs(oF,{"data-testid":"sn-table",background:e.background,dir:"ltr",children:[Xg.jsx(vH,{pageInfo:c}),Xg.jsx(rF,{paginationNeeded:a,handleChangePage:e=>d(e),pageInfo:c,totalRowCount:l,totalColumnCount:s,totalPages:u,keyboard:t,translator:n,theme:e,interactions:r,rect:o,layout:i})]})};var xH=Qt.memo(yH);var SH,EH={SNTable_Accessibility_Ascending:{id:"SNTable.Accessibility.Ascending",locale:{"de-DE":"Aufsteigend","en-US":"Ascending","es-ES":"Ascendente","fr-FR":"Croissant","it-IT":"Crescente","ja-JP":"昇順","ko-KR":"오름차순","nl-NL":"Oplopend","pl-PL":"Rosnąco","pt-BR":"Crescente","ru-RU":"По возрастанию","sv-SE":"Stigande","tr-TR":"Artan","zh-CN":"升序","zh-TW":"遞增"}},SNTable_Accessibility_ColumnOptions:{id:"SNTable.Accessibility.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":"欄選項"}},SNTable_Accessibility_Descending:{id:"SNTable.Accessibility.Descending",locale:{"de-DE":"Absteigend","en-US":"Descending","es-ES":"Descendente","fr-FR":"Décroissant","it-IT":"Decrescente","ja-JP":"降順","ko-KR":"내림차순","nl-NL":"Aflopend","pl-PL":"Malejąco","pt-BR":"Decrescente","ru-RU":"По убыванию","sv-SE":"Fallande","tr-TR":"Azalan","zh-CN":"降序","zh-TW":"遞減"}},SNTable_Accessibility_NavigationInstructions:{id:"SNTable.Accessibility.NavigationInstructions",locale:{"de-DE":"Verwenden Sie die Pfeiltasten, um in den Tabellenzellen zu navigieren, und die Tabulatortaste, um zu den Paginierungssteuerungen zu wechseln. Alle Angaben zur Tastaturnavigation finden Sie in der Dokumentation.","en-US":"Use arrow keys to navigate in table cells and tab to move to pagination controls. For the full range of keyboard navigation, see the documentation.","es-ES":"Use las teclas de flecha para navegar en las celdas de la tabla y la pestaña para moverse a los controles de paginación. Para conocer la gama completa de navegación con teclado, consulte la documentación.","fr-FR":"Utilisez les touches fléchées pour parcourir les cellules du tableau et la tabulation pour accéder aux commandes de pagination. Pour connaître la gamme complète des commandes de navigation au clavier, voir la documentation.","it-IT":"Utilizzare i tasti freccia per navigare nelle celle della tabella e il tasto TAB per passare ai controlli di paginazione. Per informazioni complete sulla navigazione da tastiera, vedere la documentazione.","ja-JP":"矢印キーで表のセル内を移動し、タブ キーでページネーション コントロールに移動します。キーボード ナビゲーションの全範囲については、ドキュメントをご覧ください。","ko-KR":"화살표 키를 사용하여 테이블 셀을 탐색하고 탭을 사용하여 페이지 매김 컨트롤로 이동합니다. 전체 키보드 탐색 범위는 설명서를 참조하십시오.","nl-NL":"Gebruik de pijltjestoetsen om te navigeren in tabelcellen en de Tab-toets om naar besturingselementen voor paginering te gaan. Raadpleeg de documentatie voor een volledig overzicht van de toetsenbordnavigatie.","pl-PL":"Użyj klawiszy strzałek do poruszania się po komórkach tabeli oraz tabulatora do poruszania się po elementach sterujących stronami. Pełne informacje o nawigacji przy użyciu klawiatury zawiera dokumentacja.","pt-BR":"Use as setas para navegar nas células da tabela e Tab para mover para os controles de paginação. Para toda a gama de navegação do teclado, consulte a documentação.","ru-RU":"Используйте клавиши со стрелками для перемещения по ячейкам таблицы и клавишу табуляции для перехода к элементам управления разбивки на страницы. Полный перечень возможностей навигации с помощью клавиатуры см. в документации.","sv-SE":"Använd piltangenterna för att navigera i tabellcellerna och tabbtangenten för att flytta till pagineringskontrollerna. Se dokumentationen för komplett information om tangentbordsnavigering.","tr-TR":"Tablo hücrelerinde gezinmek için ok tuşlarını, sayfalandırma kontrollerine geçmek için sekmeyi kullanın. Tam kapsamlı klavye gezintisi için belgelere bakın.","zh-CN":"使用箭头键在表格单元格中导航,使用 tab 键移动到分页控件。有关键盘导航的完整范围,请参阅文档。","zh-TW":"使用方向鍵以在表格儲存格中導覽,並使用 Tab 以前往分頁控制。如需完整的鍵盤導覽,請參閱文件。"}},SNTable_Accessibility_RowsAndColumns:{id:"SNTable.Accessibility.RowsAndColumns",locale:{"de-DE":"Es werden {0} Zeilen und {1} Spalten angezeigt.","en-US":"Showing {0} rows and {1} columns.","es-ES":"Mostrando {0} filas y {1} columnas.","fr-FR":"Affichage de {0} lignes et de {1} colonnes.","it-IT":"Visualizzazione di {0} righe e {1} colonne.","ja-JP":"{0} 行 {1} 列を表示しています。","ko-KR":"{0}개의 행과 {1}개의 열을 표시합니다.","nl-NL":"{0} rijen en {1} kolommen worden getoond.","pl-PL":"Wyświetlane wiersze: {0} i kolumny: {1}.","pt-BR":"Mostrando {0} linhas e {1} colunas.","ru-RU":"Показаны строки ({0}) и столбцы ({1}).","sv-SE":"Visar {0} rader och {1} kolumner.","tr-TR":"{0} satır ve {1} sütun gösteriliyor.","zh-CN":"正在显示 {0} 行,{1} 列。","zh-TW":"顯示 {0} 列和 {1} 欄。"}},SNTable_MenuItem_AdjustColumnSize:{id:"SNTable.MenuItem.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":"調整欄大小"}},SNTable_MenuItem_ClearSelections:{id:"SNTable.MenuItem.ClearSelections",locale:{"de-DE":"Auswahl 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":"Selecties 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":"清除選項"}},SNTable_MenuItem_Search:{id:"SNTable.MenuItem.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":"搜尋"}},SNTable_MenuItem_SelectAll:{id:"SNTable.MenuItem.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":"全選"}},SNTable_MenuItem_SelectAlternative:{id:"SNTable.MenuItem.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":"選取替代選項"}},SNTable_MenuItem_SelectExcluded:{id:"SNTable.MenuItem.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":"選取排除值"}},SNTable_MenuItem_SelectPossible:{id:"SNTable.MenuItem.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":"選取可能值"}},SNTable_MenuItem_Selections:{id:"SNTable.MenuItem.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":"選項"}},SNTable_MenuItem_SortAscending:{id:"SNTable.MenuItem.SortAscending",locale:{"de-DE":"Sortierung in aufsteigender Reihenfolge","en-US":"Sort ascending","es-ES":"Orden ascendente","fr-FR":"Tri 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":"以遞增方式排序"}},SNTable_MenuItem_SortDescending:{id:"SNTable.MenuItem.SortDescending",locale:{"de-DE":"Sortierung in absteigender Reihenfolge","en-US":"Sort descending","es-ES":"Orden descendente","fr-FR":"Tri 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":"以遞減方式排序"}},SNTable_Pagination_DisplayedRowsLabel:{id:"SNTable.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":"{1}의 {0}","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}"}},SNTable_Pagination_FirstPage:{id:"SNTable.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":"移至第一頁"}},SNTable_Pagination_LastPage:{id:"SNTable.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":"移至最後一頁"}},SNTable_Pagination_NextPage:{id:"SNTable.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":"移至下一頁"}},SNTable_Pagination_PageStatusReport:{id:"SNTable.Pagination.PageStatusReport",locale:{"de-DE":"Die Seite wurde geändert. Seite {0} von {1} wird angezeigt.","en-US":"Page has changed. Showing page {0} of {1}.","es-ES":"La página ha cambiado. Mostrando página {0} de {1}.","fr-FR":"La page a changé. Affichage de la page {0} sur {1}.","it-IT":"La pagina è cambiata. Visualizzazione pagina {0} di {1}.","ja-JP":"ページが変更されました。{1} ページ中の {0} ページ目を表示しています。","ko-KR":"페이지가 변경되었습니다. {1}의 {0} 페이지를 보여 줍니다.","nl-NL":"Pagina is gewijzigd. Pagina {0} van {1} wordt weergeven.","pl-PL":"Strona się zmieniła Wyświetlanie strony {0} z {1}.","pt-BR":"A página mudou. Mostrando página {0} de {1}.","ru-RU":"Страница изменилась. Показана страница {0} из {1}.","sv-SE":"Sidan har ändrats. Visar sida {0} av {1}.","tr-TR":"Sayfa değişti. Sayfa {0} / {1} gösteriliyor.","zh-CN":"页面已更改。显示页面 {0} / {1}。","zh-TW":"頁面已變更。顯示第 {0} 頁,共 {1} 頁。"}},SNTable_Pagination_PreviousPage:{id:"SNTable.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":"移至上一頁"}},SNTable_Pagination_RowsPerPage:{id:"SNTable.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":"每頁列數"}},SNTable_Pagination_RowsPerPageChange:{id:"SNTable.Pagination.RowsPerPageChange",locale:{"de-DE":"Zeilen pro Seite wurden in {0} geändert. Jetzt wird die erste Seite angezeigt.","en-US":"Rows per page has changed to {0}. Now showing the first page.","es-ES":"El número de filas por página ha cambiado a {0}. Mostrando ahora la primera página.","fr-FR":"Le nombre de lignes par page a été remplacé par {0}. Affichage en cours de la première page.","it-IT":"Le righe per pagina sono cambiate a {0}. Viene ora mostrata la prima pagina.","ja-JP":"ページあたりの行数が {0} に変更されました。現在、最初のページを表示しています。","ko-KR":"페이지당 행 수가 {0}(으)로 변경되었습니다. 이제 첫 페이지를 보여 줍니다.","nl-NL":"Aantal rijen per pagina is gewijzigd naar {0}. De eerste pagina wordt nu weergegeven.","pl-PL":"Liczba wierszy na stronę została zmieniona na {0}. Wyświetlana jest pierwsza strona.","pt-BR":"Linhas por página mudou para {0}. Agora mostrando a primeira página.","ru-RU":"Количество строк на странице изменилось на {0}. Теперь отображается первая страница.","sv-SE":"Rader per sida har ändrats till {0}. Nu visas första sidan.","tr-TR":"Sayfa başına satır sayısı {0} olarak değiştirildi. Şimdi ilk sayfa gösteriliyor.","zh-CN":"每页行数已更改为 {0}。现在显示第一页。","zh-TW":"每頁列數已變更為 {0}。現在顯示第一頁。"}},SNTable_Pagination_SelectPage:{id:"SNTable.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":"選取頁面"}},SNTable_SelectionLabel_DeselectedValue:{id:"SNTable.SelectionLabel.DeselectedValue",locale:{"de-DE":"Die Werteauswahl ist aufgehoben.","en-US":"Value is deselected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur est désélectionnée.","it-IT":"Il valore è deselezionato.","ja-JP":"値が選択解除されました。","ko-KR":"값이 선택 취소되었습니다.","nl-NL":"Selectie van waarde opgeheven.","pl-PL":"Wartość nie jest zaznaczona.","pt-BR":"O valor está desmarcado.","ru-RU":"Выбор значения отменен.","sv-SE":"Val av värde har tagits bort.","tr-TR":"Değer seçimi iptal edildi.","zh-CN":"值已取消选择。","zh-TW":"值已取消選取。"}},SNTable_SelectionLabel_ExitedSelectionMode:{id:"SNTable.SelectionLabel.ExitedSelectionMode",locale:{"de-DE":"Die Werteauswahl ist aufgehoben. Auswahlmodus beendet.","en-US":"Value is deselected. Exited selection mode.","es-ES":"El valor no está seleccionado. Salió del modo de selección.","fr-FR":"La valeur est désélectionnée. Mode de sélection désactivé.","it-IT":"Il valore è deselezionato. Uscita dalla modalità selezione.","ja-JP":"値が選択解除されました。選択モードを終了しました。","ko-KR":"값이 선택 취소되었습니다. 선택 모드를 종료했습니다.","nl-NL":"Selectie van waarde opgeheven. Selectiemodus afgesloten.","pl-PL":"Wartość nie jest zaznaczona. Zakończono tryb wyboru.","pt-BR":"O valor está desmarcado. Modo de seleção encerrado.","ru-RU":"Выбор значения отменен. Выполнен выход из режима выборки.","sv-SE":"Val av värde har tagits bort. Lämnade urvalsläge.","tr-TR":"Değer seçimi iptal edildi. Seçim modundan çıkıldı.","zh-CN":"值已取消选择。已退出选择模式。","zh-TW":"值已取消選取。輸入的選取模式。"}},SNTable_SelectionLabel_NotSelectedValue:{id:"SNTable.SelectionLabel.NotSelectedValue",locale:{"de-DE":"Wert ist nicht ausgewählt.","en-US":"Value is not selected.","es-ES":"El valor no está seleccionado.","fr-FR":"La valeur n'est pas sélectionnée.","it-IT":"Il valore non è selezionato.","ja-JP":"値が選択されていません。","ko-KR":"값이 선택되지 않았습니다.","nl-NL":"Waarde is niet geselecteerd.","pl-PL":"Wartość nie jest wybrana.","pt-BR":"O valor não está selecionado.","ru-RU":"Значение не выбрано.","sv-SE":"Värdet är inte valt.","tr-TR":"Değer seçilmedi.","zh-CN":"未选择值。","zh-TW":"未選取值。"}},SNTable_SelectionLabel_OneSelectedValue:{id:"SNTable.SelectionLabel.OneSelectedValue",locale:{"de-DE":"Aktuell ist ein Wert ausgewählt.","en-US":"Currently there is one selected value.","es-ES":"Actualmente hay un valor seleccionado.","fr-FR":"Actuellement, une valeur est sélectionnée.","it-IT":"Attualmente è presente un solo valore selezionato.","ja-JP":"現在、値が 1 つ選択されています。","ko-KR":"현재 하나의 값이 선택되었습니다.","nl-NL":"Er is momenteel één waarde geselecteerd.","pl-PL":"Aktualnie jest jedna wybrana wartość.","pt-BR":"Atualmente, há um valor selecionado.","ru-RU":"В настоящее время выбрано одно значение.","sv-SE":"Just nu är ett värde valt.","tr-TR":"Şu anda seçili bir değer var.","zh-CN":"当前有一个已选择的值。","zh-TW":"目前有一個選取的值。"}},SNTable_SelectionLabel_SelectedValue:{id:"SNTable.SelectionLabel.SelectedValue",locale:{"de-DE":"Wert ist ausgewählt.","en-US":"Value is selected.","es-ES":"El valor está seleccionado.","fr-FR":"La valeur est sélectionnée.","it-IT":"Il valore è selezionato.","ja-JP":"値が選択されました。","ko-KR":"값이 선택되었습니다.","nl-NL":"Waarde is geselecteerd.","pl-PL":"Wartość jest wybrana.","pt-BR":"O valor está selecionado.","ru-RU":"Значение выбрано.","sv-SE":"Värdet är valt.","tr-TR":"Değer seçildi.","zh-CN":"已选择值。","zh-TW":"已選取值。"}},SNTable_SelectionLabel_SelectedValues:{id:"SNTable.SelectionLabel.SelectedValues",locale:{"de-DE":"Aktuell sind {0} Werte ausgewählt.","en-US":"Currently there are {0} selected values.","es-ES":"Actualmente hay {0} valores seleccionados.","fr-FR":"Actuellement, {0} valeurs sont sélectionnées.","it-IT":"Attualmente sono presenti {0} valori selezionati.","ja-JP":"現在、値が {0} つ選択されています。","ko-KR":"현재 {0}개의 값이 선택되었습니다.","nl-NL":"Er zijn momenteel {0} geselecteerde waarden.","pl-PL":"Liczba aktualnie wybranych wartości: {0}.","pt-BR":"Atualmente, há {0} valores selecionados.","ru-RU":"В настоящее время выбраны значения: {0}.","sv-SE":"Just nu är {0} värden valda.","tr-TR":"Şu anda seçili {0} değer var.","zh-CN":"当前有 {0} 个已选择的值。","zh-TW":"目前有 {0} 個選取的值。"}},SNTable_SelectionLabel_SelectionsConfirmed:{id:"SNTable.SelectionLabel.SelectionsConfirmed",locale:{"de-DE":"Auswahl bestätigt.","en-US":"Selections confirmed.","es-ES":"Confirmadas las selecciones.","fr-FR":"Sélections confirmées.","it-IT":"Selezioni confermate.","ja-JP":"選択が確定されました。","ko-KR":"선택 내용이 확인되었습니다.","nl-NL":"Selecties bevestigd.","pl-PL":"Potwierdzono wybory.","pt-BR":"Seleções confirmadas.","ru-RU":"Выборки подтверждены.","sv-SE":"Valen har bekräftats.","tr-TR":"Seçimler onaylandı.","zh-CN":"选择已确认。","zh-TW":"選項已確認。"}},SNTable_SelectionLabel_selected:{id:"SNTable.SelectionLabel.selected",locale:{"de-DE":"Ausgewählt","en-US":"Selected","es-ES":"Seleccionado","fr-FR":"Sélectionné","it-IT":"Selezionato","ja-JP":"選択済み","ko-KR":"선택됨","nl-NL":"Geselecteerd","pl-PL":"Wybrane","pt-BR":"Selecionado","ru-RU":"Выбрано","sv-SE":"Urval","tr-TR":"Seçildi","zh-CN":"已选择","zh-TW":"已選取"}},SNTable_SortLabel_PressSpaceToSort:{id:"SNTable.SortLabel.PressSpaceToSort",locale:{"de-DE":"Drücken Sie die Leertaste, um nach dieser Spalte zu sortieren","en-US":"Press space to sort on this column","es-ES":"Pulse la barra espaciadora para ordenar en esta columna.","fr-FR":"Appuyez sur Espace pour trier en fonction de cette colonne.","it-IT":"Premere la barra spaziatrice per ordinare questa colonna","ja-JP":"スペース キーを押して、この列をソートします","ko-KR":"이 열을 정렬하려면 스페이스바를 누르십시오.","nl-NL":"Druk op de spatiebalk om sorteren in deze kolom in te schakelen","pl-PL":"Naciśnij spację, aby posortować według tej kolumny","pt-BR":"Pressione espaço para classificar por esta coluna","ru-RU":"Нажмите пробел, чтобы отсортировать по этому столбцу","sv-SE":"Tryck på Blanksteg om du vill sortera efter den här kolumnen","tr-TR":"Bu sütunda sıralama yapmak için boşluk tuşuna basın.","zh-CN":"按下空格键以在该列上排序。","zh-TW":"在此欄按下空格鍵以進行排序"}},SNTable_SortLabel_SortedAscending:{id:"SNTable.SortLabel.SortedAscending",locale:{"de-DE":"In aufsteigender Reihenfolge sortiert.","en-US":"Sorted in ascending order.","es-ES":"Ordenado por orden ascendente.","fr-FR":"Tri dans l'ordre croissant.","it-IT":"Ordinato in ordine crescente.","ja-JP":"昇順で並べ替えられます。","ko-KR":"오름차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in oplopende volgorde.","pl-PL":"Posortowane rosnąco.","pt-BR":"Classificado em ordem crescente.","ru-RU":"Сортировка в порядке возрастания.","sv-SE":"Sorterat i stigande ordning.","tr-TR":"Artan düzende sıralanmıştır.","zh-CN":"已按升序排列。","zh-TW":"已依遞增順序排序。"}},SNTable_SortLabel_SortedDescending:{id:"SNTable.SortLabel.SortedDescending",locale:{"de-DE":"In absteigender Reihenfolge sortiert.","en-US":"Sorted in descending order.","es-ES":"Ordenado por orden descendente.","fr-FR":"Tri dans l'ordre décroissant.","it-IT":"Ordinato in ordine decrescente.","ja-JP":"降順で並べ替えられます。","ko-KR":"내림차순으로 정렬되었습니다.","nl-NL":"Gesorteerd in aflopende volgorde.","pl-PL":"Posortowane malejąco.","pt-BR":"Classificado em ordem decrescente.","ru-RU":"Сортировка в порядке убывания.","sv-SE":"Sorterat i fallande ordning.","tr-TR":"Azalan düzende sıralanmıştır.","zh-CN":"已按降序排列。","zh-TW":"已依遞減順序排序。"}}};!function(e){e.FIRST="first-announcer-element",e.SECOND="second-announcer-element"}(SH||(SH={}));const wH=(t,n)=>e.useMemo((()=>(function(e){if(e&&e.get&&e.add){const t="SNTable.Accessibility.RowsAndColumns";if(e.get(t)!==t)return;Object.keys(EH).forEach((t=>{e.add(EH[t])}))}}(n),()=>((e,t,n)=>{let r=n||null;return({keys:n,shouldBeAtomic:o=!0,politeness:i="polite"})=>{const a=n.map((e=>{if(Array.isArray(e)){const[n,...r]=e;return t.get(n,r)}return t.get(e)})).join(" "),l=e.querySelector(".sn-table-announcer-1"),s=e.querySelector(".sn-table-announcer-2");let u;r===SH.FIRST?(u=s,r=SH.SECOND):(u=l,r=SH.FIRST),u.innerHTML=u.innerHTML.endsWith(" ")?a:`${a} `,u.setAttribute("aria-atomic",o.toString()),u.setAttribute("aria-live",i)}})(t,n))),[t,n.language()]),CH={page:0,rowsPerPage:100,rowsPerPageOptions:[10,25,100]},RH=({isNewHeadCellMenuEnabled:t,app:n,model:r,rootElement:o,layout:i,interactions:a,translator:l,selectionsAPI:s,theme:u,changeSortOrder:c,keyboard:d,rect:p,embed:f,reactRoot:m,applyColumnWidths:h,isFontLoaded:g,viewService:b,isLinksEnabled:v})=>{const{direction:y,footerContainer:x}=e.useOptions(),S=Fg(i,b),E=jg(i,b),w=wH(o,l),C=S?{page:b.page||CH.page,rowsPerPage:b.rowsPerPage||CH.rowsPerPage,rowsPerPageOptions:CH.rowsPerPageOptions}:CH,[R,k]=e.useState(C),[A]=e.usePromise((async()=>E?async function(e,t,n,r,o){var i,a;const{page:l,rowsPerPage:s,rowsPerPageOptions:u}=n,c=t.qHyperCube.qSize.qcx,d=t.qHyperCube.qSize.qcy,p=Math.ceil(d/s),f=null!==(i=o.visibleTop)&&void 0!==i?i:l*s,m=null!==(a=o.visibleHeight)&&void 0!==a?a:Math.min(s,d-f);if(l>0&&f>=d)return r({...n,page:0}),null;if(m*c>Mg)return r({...n,rowsPerPage:Dg(c,u),page:0}),null;const h=d>10,g=Tg(t,o),b=zg(t),v=!!t.snapshotData,y=v?t.qHyperCube.qDataPages:await e.getHyperCubeData("/qHyperCubeDef",[{qTop:f,qLeft:0,qHeight:m,qWidth:c}]);o&&!v&&(o.qTop=f,o.qHeight=m,o.rowsPerPage=n.rowsPerPage,o.page=n.page);const x=(null==y?void 0:y[0].qMatrix.map(((e,t)=>{const n=[];return b.forEach(((r,o)=>{n[o]={...e[o],align:qg(e[o],r.bodyTextAlign),rowIdx:t+f,colIdx:r.colIdx,pageRowIdx:t,pageColIdx:o,selectionColIdx:r.selectionColIdx,isSelectable:r.isDim&&!r.isLocked,isLastRow:t===m-1,isNumeric:Ig(e[o]),representation:Pg(e[o],r.representation,r.qAttrExprInfoIDs.findIndex((e=>"url"===e)),r.qAttrExprInfoIDs.findIndex((e=>"urlLabel"===e)))}})),n})))||[];return{totalColumnCount:c,totalRowCount:d,totalPages:p,paginationNeeded:h,totalsPosition:g,columns:b,rows:x}}(r,i,R,k,b):null),[i,R,r,a,E]);e.useEffect((()=>{!!(E&&m&&r&&(i.snapshotData||n)&&i&&A&&c&&u&&s&&g&&f)&&function(e,t){const{app:n,model:r,direction:o,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,tableData:h,rect:g,viewService:b,isLinksEnabled:v,...y}=e,x=mq(o);null==t||t.render(Xg.jsx(ky,{stylisPlugins:"rtl"===o?[kC]:void 0,children:Xg.jsx(gC,{theme:x,children:Xg.jsx(pq,{app:n,model:r,tableData:h,selectionsAPI:i,layout:a,translator:l,interactions:s,theme:u,keyboard:c,rootElement:d,embed:p,changeSortOrder:f,applyColumnWidths:m,rect:g,viewService:b,isNewHeadCellMenuEnabled:y.isNewHeadCellMenuEnabled,isLinksEnabled:v,children:Xg.jsx(Jj,{...y,direction:o})})})}))}({app:n,model:r,rootElement:o,layout:i,tableData:A,direction:y,pageInfo:R,setPageInfo:k,interactions:a,translator:l,selectionsAPI:s,theme:u,changeSortOrder:c,keyboard:d,rect:p,footerContainer:x,announce:w,embed:f,applyColumnWidths:h,viewService:b,isNewHeadCellMenuEnabled:t,isLinksEnabled:v},m)}),[n,r,m,A,a,y,u.name(),d.active,w,c,h,E,i,s,f,o,R,k,l,p,x,g,t,v])};const kH=({model:t,layout:n,shouldRender:r,page:o})=>{const[i]=e.usePromise((async()=>{if(r&&t)return(async(e,t,n)=>{let{qDataPages:r}=t.qHyperCube;if(0!==n||void 0===r||0===r.length){const o=n*Math.min($P,t.qHyperCube.qSize.qcy);r=await e.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:o,qWidth:50,qHeight:100}])}return{initialDataPages:r,derivedFrom:{layout:t,page:n}}})(t,n,o)}),[t,n,o]),a=(null==i?void 0:i.derivedFrom.layout)!==n||(null==i?void 0:i.derivedFrom.page)!==o;return{initialDataPages:null==i?void 0:i.initialDataPages,isLoading:a}},AH=({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,changeSortOrder:c,rootElement:d,embed:p,reactRoot:f,applyColumnWidths:m,isFontLoaded:h,viewService:g,isNewHeadCellMenuEnabled:b,isLinksEnabled:v})=>{const y=!jg(n,g),x=e.useMemo((()=>function(e,t,n){const r=Tg(e,n),o=zg(e),i=e.qHyperCube.qSize.qcy,a=Math.min($P,i),l=i>$P&&!!t.active;return{totalsPosition:r,columns:o,rows:[],totalRowCount:i,totalColumnCount:e.qHyperCube.qSize.qcx,totalPages:Math.ceil(i/a),paginationNeeded:l}}(n,s,g)),[n,s,g]),{pageInfo:S,setPage:E}=((t,n)=>{const[r,o]=e.useState(0),i=Math.min($P,t.qHyperCube.qSize.qcy),a=e.useMemo((()=>({page:r,rowsPerPage:i,rowsPerPageOptions:[]})),[i,r]);if(n){const e=Math.floor(t.qHyperCube.qSize.qcy/$P);e<r&&o(e)}return{pageInfo:a,setPage:o}})(n,y),{initialDataPages:w,isLoading:C}=kH({model:r,layout:n,page:S.page,shouldRender:y});e.useEffect((()=>{var e;y&&a.active&&(null===(e=a.blur)||void 0===e||e.call(a,!1))}),[a.active]),e.useEffect((()=>{y&&r&&c&&w&&!C&&h&&function(e,t){const{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rect:c,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S}=e,E=mq("ltr");t.render(Xg.jsx(Zt.StrictMode,{children:Xg.jsx(gC,{theme:E,children:Xg.jsx(pq,{app:n,selectionsAPI:r,layout:o,model:i,translator:a,interactions:l,theme:s,keyboard:u,rootElement:d,embed:p,changeSortOrder:f,tableData:m,applyColumnWidths:h,rect:c,setPage:g,pageInfo:b,initialDataPages:v,viewService:y,isNewHeadCellMenuEnabled:x,isLinksEnabled:S,children:Xg.jsx(xH,{})})})}))}({app:t,layout:n,model:r,rect:o,theme:i,keyboard:a,translator:l,interactions:s,selectionsAPI:u,rootElement:d,embed:p,changeSortOrder:c,tableData:x,applyColumnWidths:m,setPage:E,pageInfo:S,initialDataPages:w,viewService:g,isNewHeadCellMenuEnabled:b,isLinksEnabled:v},f)}),[t,n,r,o,i.name(),a.active,l,s,u,c,y,d,p,f,x,m,E,S,C,w,h,b,v])},PH={version:JSON.stringify("3.3.2"),qHyperCubeDef:{qDimensions:[],qMeasures:[],qColumnOrder:[],qInitialDataFetch:[{qWidth:50,qHeight:100}]},showTitles:!0,enableChartExploration:!1,title:"",subtitle:"",footnote:"",totals:{show:!0,position:"noTotals",label:"Totals"},usePagination:!1,components:[]};function LH(e,t){const n=e.getElementsByClassName("sn-table-container")[0];if(!n)return{};const r=(null==n?void 0:n.getBoundingClientRect())||{},o=e.getElementsByClassName("sn-table-head-row")[0],i=(null==o?void 0:o.getBoundingClientRect())||{height:0},a=e.getElementsByClassName("sn-table-totals-row")[0],l=(null==a?void 0:a.getBoundingClientRect())||{height:0},s=e.getElementsByClassName("sn-table-data-row"),u={top:r.y+i.height+(t.atTop?l.height:0),bottom:r.y+r.height-(t.atBottom?l.height:0)},c=((e,t)=>{if(!e)return-1;for(let n=0;n<e.length;n++)if(e[n].getBoundingClientRect().bottom>t.top)return n;return-1})(s,u),d=((e,t)=>{if(!e)return-1;for(let n=e.length-1;n>-1;n--){const r=e[n].getBoundingClientRect();if(t.bottom>r.top)return n}return-1})(s,u),p=((e,t,n)=>{if(!e||0===e.length||n<0)return 0;const r=e[n].getBoundingClientRect();return Math.max(t.top-r.top,0)})(s,u,c);return{visibleRowStartIndex:c,visibleRowEndIndex:d,rowPartialHeight:p}}const IH=(e,t)=>{if(t)for(let n=0;n<t.length;n++){const r=t[n].getAttribute("rowindex");if(r&&parseInt(r,10)===e)return t[n]}},MH=(e,t,n)=>{if(!e)return!1;const r=e.y+e.height/2;return r>=t&&r<=n};const DH=(e,t,n,r)=>{var o;if(e<0)return 0;const i=n.qHyperCube.qSize.qcy,a=r.rowsPerPage||CH.rowsPerPage,l=null!==(o=r.viewState)&&void 0!==o&&o.isMultiPage?0:3;return Math.min(i,a,e-t+1+l)},TH=(e,t,n)=>{if(t.viewState&&!t.viewState.isMultiPage)return t.viewState;const r=Tg(e,t);if(jg(e,t)){const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1,rowPartialHeight:a}=LH(n,r);return{rowPartialHeight:a,scrollLeft:t.scrollLeft,visibleTop:t.qTop+o,visibleHeight:DH(i,o,e,t),rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}}const{visibleRowStartIndex:o=-1,visibleRowEndIndex:i=-1}=function(e,t){const n=e.querySelector(".sn-table-body"),r=null==n?void 0:n.getBoundingClientRect(),o=null==n?void 0:n.querySelectorAll(".sn-table-body .sn-table-cell");if(!o||!r)return{};const{scrollTopRatio:i=0,visibleTop:a=0,visibleHeight:l=0,page:s=0,rowsPerPage:u=0}=t,c=s*u,d=a-c,p=d+l-1,f=IH(d,o),m=null==f?void 0:f.getBoundingClientRect();if(!f||!m)return{};const h=r.y;if(1-i<.001)return{visibleRowStartIndex:d+(m.y>=h-4?0:1)+c,visibleRowEndIndex:p+c};const g=r.y+r.height,b=(MH(m,h,g)?d:d+1)+c;let v=p+c;const y=IH(p,o),x=null==y?void 0:y.getBoundingClientRect();return y&&x&&(MH(x,h,g)||(v=p-1+c)),{visibleRowStartIndex:b,visibleRowEndIndex:v}}(n,t);return{scrollLeft:t.scrollLeft,visibleLeft:t.visibleLeft,visibleWidth:t.visibleWidth,visibleTop:o,visibleHeight:DH(i,o,e,t),scrollTopRatio:t.scrollTopRatio,rowsPerPage:t.rowsPerPage,page:t.page,totalsPosition:r}},_H=e=>e.getStyle("","","object.straightTableV2.backgroundColor"),OH=e=>e.getStyle("object","straightTableV2","backgroundColor");return function(t){return{qae:{properties:{initial:PH},data:{targets:[{path:"/qHyperCubeDef",dimensions:{min:0,max:1e3},measures:{min:0,max:1e3}}]},importProperties:Ym,exportProperties:Vm,exploration:Km},ext:vh(t),component(){var n;const r=e.useElement(),o=(t=>{const n=e.useMemo((()=>pf(t)),[t]);return e.useEffect((()=>()=>n.unmount()),[n]),n})(r),i=e.useStaleLayout(),a=e.useApp(),l=e.useModel(),s=e.useInteractionState(),u=e.useTranslator(),c=e.useSelections(),d=e.useKeyboard(),{freeResize:p}=e.useOptions(),f=e.useRect(),m=null!=i&&null!==(n=i.snapshotData)&&void 0!==n&&n.content&&!p?{...f,...i.snapshotData.content.size}:f,h=(t=>{const{viewState:n}=e.useOptions();return e.useMemo((()=>((e,t)=>{var n,r,o,i,a,l,s,u,c,d,p,f,m,h,g,b,v;return{qTop:0,qHeight:0,rowPartialHeight:null!==(n=null==t||null===(r=t.content)||void 0===r?void 0:r.rowPartialHeight)&&void 0!==n?n:0,visibleTop:null!==(o=null==t||null===(i=t.content)||void 0===i?void 0:i.visibleTop)&&void 0!==o?o:null==e?void 0:e.visibleTop,visibleHeight:null!==(a=null==t||null===(l=t.content)||void 0===l?void 0:l.visibleHeight)&&void 0!==a?a:null==e?void 0:e.visibleHeight,scrollLeft:null!==(s=null!==(u=null==t||null===(c=t.content)||void 0===c?void 0:c.scrollLeft)&&void 0!==u?u:null==e?void 0:e.scrollLeft)&&void 0!==s?s:0,scrollTopRatio:null!==(d=null==t||null===(p=t.content)||void 0===p?void 0:p.scrollTopRatio)&&void 0!==d?d:null==e?void 0:e.scrollTopRatio,rowsPerPage:null!==(f=null==t||null===(m=t.content)||void 0===m?void 0:m.rowsPerPage)&&void 0!==f?f:null==e?void 0:e.rowsPerPage,page:null!==(h=null==t||null===(g=t.content)||void 0===g?void 0:g.page)&&void 0!==h?h:null==e?void 0:e.page,viewState:e,estimatedRowHeight:null!==(b=null==t||null===(v=t.content)||void 0===v?void 0:v.estimatedRowHeight)&&void 0!==b?b:0}})(n,t.snapshotData)),[n,t.snapshotData,t.usePagination])})(i),g=e.useEmbed(),b=((t,n,r)=>{const o=e.useTheme();return e.useMemo((()=>({...o,background:ne(o,t,n,r)})),[o.name(),t,n,r])})(r,_H,OH),v=t.flags.isEnabled("CLIENT_IM_5716_TABLE_COL_WIDTH"),y=t.flags.isEnabled("CLIENT_IM_5715_LINKS"),x=((t,n,r)=>e.useMemo((()=>((e,t,n)=>{if(t)return async(r,o)=>{const{isDim:i,colIdx:a,qReverseSort:l,sortDirection:s,isActivelySorted:u}=r,c=i?a:a-e,d=(await t.getEffectiveProperties()).qHyperCubeDef.qInterColumnSortOrder,p=[],f=o&&o!==s||!o&&u;u||(d.splice(d.indexOf(a),1),d.unshift(a),p.push({qPath:"/qHyperCubeDef/qInterColumnSortOrder",qOp:"Replace",qValue:`[${d.join(",")}]`})),(n&&f||!n&&u)&&p.push({qPath:`/qHyperCubeDef/${i?"qDimensions":"qMeasures"}/${c}/qDef/qReverseSort`,qOp:"Replace",qValue:(!l).toString()}),t.applyPatches(p,!0)}})(t.qDimensionInfo.length,n,r)),[t.qDimensionInfo.length,n,r]))(i.qHyperCube,l,v),S=xh(i.qHyperCube,l),E=((t,n)=>{const{fontSize:r,fontFamily:o}=oq(n,t,!1),{fontSize:i,fontFamily:a}=iq(n,t),[l,s]=e.usePromise((async()=>(await document.fonts.load(`600 ${r} ${o}`),await document.fonts.load(`${i} ${a}`),!0)),[r,o,i,a]);return s?(console.warn("Failed to load font:",s),!0):!!l})(b,i);null===e.onContextMenu||void 0===e.onContextMenu||e.onContextMenu(((e,t)=>{const n=t.target,r=null==n?void 0:n.closest(".sn-table-cell");r&&e.addItem({translation:"contextMenu.copyCellValue",icon:"lui-icon lui-icon--copy",tid:"copy-cell-context-item",select:async()=>{yh(r)}})})),(({layout:t,viewService:n,model:r,rootElement:o,contentRect:i})=>{e.onTakeSnapshot((async e=>{if(!e.snapshotData||!r||e.snapshotData.content)return e;if(r.getHyperCubeData){e.qHyperCube||(e.qHyperCube={});const{rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m}=TH(t,n,o);e.qHyperCube.qDataPages=await r.getHyperCubeData("/qHyperCubeDef",[{qLeft:0,qTop:null!=d?d:0,qWidth:t.qHyperCube.qSize.qcx,qHeight:null!=p?p:0}]),e.snapshotData.content={rowPartialHeight:a,scrollLeft:l,scrollTopRatio:s,visibleLeft:u,visibleWidth:c,visibleTop:d,visibleHeight:p,rowsPerPage:f,page:m,size:{width:i.width,height:i.height},estimatedRowHeight:n.estimatedRowHeight}}return e})),e.useImperativeHandle((()=>({getViewState:()=>TH(t,n,o)})),[t,n,o])})({layout:i,viewService:h,model:l,rootElement:r,contentRect:f}),AH({isNewHeadCellMenuEnabled:v,isLinksEnabled:y,app:a,layout:i,model:l,rect:m,theme:b,keyboard:d,translator:u,interactions:s,selectionsAPI:c,changeSortOrder:x,rootElement:r,embed:g,reactRoot:o,applyColumnWidths:S,isFontLoaded:E,viewService:h}),RH({isNewHeadCellMenuEnabled:v,isLinksEnabled:y,app:a,model:l,rootElement:r,layout:i,interactions:s,translator:u,selectionsAPI:c,theme:b,changeSortOrder:x,keyboard:d,rect:m,embed:g,reactRoot:o,applyColumnWidths:S,isFontLoaded:E,viewService:h})}}}}));
|