@nebula.js/stardust 7.3.0 → 7.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +3 -3
- package/core/esm/index.js +2 -2
- package/dist/chunks/{auth-Cndp79dH-oKjUi_TZ.js → auth-Cndp79dH-CZLQ7V4e.js} +3 -3
- package/dist/chunks/{auth-Cndp79dH-oKjUi_TZ.js.map → auth-Cndp79dH-CZLQ7V4e.js.map} +1 -1
- package/dist/chunks/{auth-Cndp79dH-Chi-f1_d.js → auth-Cndp79dH-CqnntUUA.js} +3 -3
- package/dist/chunks/{auth-Cndp79dH-Chi-f1_d.js.map → auth-Cndp79dH-CqnntUUA.js.map} +1 -1
- package/dist/chunks/{dist-Df-Traut-C85pT8nh.js → dist-Df-Traut-CtEYhQQX.js} +2 -2
- package/dist/chunks/{dist-Df-Traut-C85pT8nh.js.map → dist-Df-Traut-CtEYhQQX.js.map} +1 -1
- package/dist/chunks/{dist-Df-Traut-DM1ItyXu.js → dist-Df-Traut-DXy2cfTS.js} +2 -2
- package/dist/chunks/{dist-Df-Traut-DM1ItyXu.js.map → dist-Df-Traut-DXy2cfTS.js.map} +1 -1
- package/dist/chunks/{index-DyT6nHJv.js → index-C8WbXuNI.js} +4 -4
- package/dist/chunks/{index-DyT6nHJv.js.map → index-C8WbXuNI.js.map} +1 -1
- package/dist/chunks/{index-DzuKikAm.js → index-D5UVRz1D.js} +6 -6
- package/dist/chunks/{index-DzuKikAm.js.map → index-D5UVRz1D.js.map} +1 -1
- package/dist/stardust.dev.js +3 -3
- package/dist/stardust.js +2 -2
- package/dist/stardust.systemjs.dev.js +2 -2
- package/dist/stardust.systemjs.js +2 -2
- package/package.json +9 -9
- package/types/index.d.ts +15 -15
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v7.
|
|
2
|
+
* @nebula.js/stardust v7.4.0
|
|
3
3
|
* Copyright (c) 2026 QlikTech International AB
|
|
4
4
|
* Released under the MIT license.
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
System.register([],function(e,t){"use strict";return{execute:function(){function n(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}e({A:function(){return Px("options")},B:function(){return Px("plugins")},C:function(e,t){const[n,r]=Ix(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=Rx(++gx);o.component||(o.component=mx);return Dx(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]},E:function(){const e=Nx(),t=mx.__hooks.resizer,[n,r]=Ix(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r);t.update&&t.resize&&(t.update=!1,t.resize());return Dx(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n},F:function(e){return _x(()=>({current:e}),[])},G:function(){Rx(++gx);const e=mx.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},I:function(){return Px("selections")},J:function(){const e=Px("layout"),[t]=Ix({current:e});e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e);return t.current},K:Ix,L:function(){return Px("theme")},M:function(){return Px("translator")},a:p,c:function e(t){if(Array.isArray(t))return t.map(t=>"object"==typeof t&&null!==t?e(t):t).filter(e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e);if("object"==typeof t&&null!==t){const n={};for(const r of Object.keys(t)){const o=t[r];switch(typeof o){case"undefined":break;case"boolean":o&&(n[r]=o);break;case"string":{const e=o.trim();""!==e&&(n[r]=e);break}case"object":{if(null===o)break;const t=e(o);t&&(Array.isArray(t)&&t.length>0||"object"==typeof t&&Object.keys(t).length>0)&&(n[r]=t);break}case"function":case"number":n[r]=o;break;default:console.warn(`Unexpected type for key "${r}": ${typeof o}`),n[r]=o}}if(0===Object.keys(n).length)return;return n}return t},e:function(e){const t=Rx(++gx);t.value||(t.value=1,mx.__hooks.snaps.push(t));t.fn=e},f:function(){const e=Px("app");return e&&e.session?e:void 0},g:function(){return Px("appLayout")},h:function(){return Px("constraints")},i:function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self},j:function(){return Px("deviceType")},k:Mx,l:Nx,n:function(){return Px("nebbie")},o:function(e){const t=Rx(++gx);t.value||(t.value=1,mx.__hooks.menus.push(t));t.fn=e},p:function(){return Px("emitter")},q:function(){const e=Px("global");return e&&e.session?e:void 0},r:function(e,t){const n=Rx(++gx);n.imperative||(n.imperative=!0);if(bx(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],mx.__hooks.imperativeHandle=r}},s:function e(t){if(Array.isArray(t))return t.map(e);if("object"==typeof(n=t)&&null!==n&&n.constructor===Object){const n={};for(const r of Object.keys(t).sort())n[r]=e(t[r]);return n}var n;return t},t:function(){return Px("interactions")},u:function(e,t){const[n]=Ix({action(){n._config.action.call(null)}});n.component||(n.component=mx,mx.__hooks.actions.list.push(n));return _x(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action},v:function(){const e=Px("keyboardNavigation"),t=Px("focusHandler");if(!mx.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(jx(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(mx);mx.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),qx(this))}.bind(mx);mx.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(mx);mx.__hooks.accessibility.focusSelectionFunction=r}const n=mx.__hooks.accessibility.focusFunction,r=mx.__hooks.accessibility.exitFunction,o=mx.__hooks.accessibility.focusSelectionFunction,[i,a]=Ix({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return mx.__hooks.accessibility.setter=a,mx.__hooks.accessibility.enabled=e,Mx(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},w:function(){return Px("layout")},x:_x,y:function(){const e=Px("model");return e&&e.session?e:void 0},z:function(){return Px("navigation")}});var o,i={exports:{}};function a(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(){return!("undefined"==typeof process||!process.version||!process.versions.node)}o||(o=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new O(r||[]);return o(a,"_invoke",{value:L(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,function(){return this});var x=Object.getPrototypeOf,w=x&&x(x(I([])));w&&w!==n&&r.call(w,a)&&(S=w);var k=v.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function L(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(k,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,l,function(){return this}),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(k),c(k,s,"Generator"),c(k,a,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(i));const f=p(),h=(async()=>f?()=>{throw new Error("importRuntimeModule cannot be used in a Node.js context")}:(await t.import("./dist-Df-Traut-DM1ItyXu.js")).importRuntimeModule)();async function m(e){return f?t.import("./auth-Cndp79dH-Chi-f1_d.js"):(await h)("auth@v1",e)}var g,b,y={registerAuthModule:function(e,t){m().then(n=>n.registerAuthModule(e,t))},setDefaultHostConfig:function(e){m(e).then(t=>t.setDefaultHostConfig(e))},registerHostConfig:function(e,t){m(t).then(n=>n.registerHostConfig(e,t))},unregisterHostConfig:function(e){m().then(t=>t.unregisterHostConfig(e))},getAccessToken:async function({hostConfig:e}){return m(e).then(t=>t.getAccessToken({hostConfig:e}))},getWebResourceAuthParams:async function({hostConfig:e}){return m(e).then(t=>t.getWebResourceAuthParams({hostConfig:e}))}},v={exports:{}},S={};function x(){if(g)return S;g=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var x=v.prototype=new y;x.constructor=v,h(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function L(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function O(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,d=!1;if(null===n)d=!0;else switch(l){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return O((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+T(n,0):i,w(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),O(a,r,o,"",function(e){return e})):null!=a&&(R(a)&&(s=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=L(s.type,c,s.props)),r.push(a)),1;d=0;var f,h=""===i?".":i+":";if(w(n))for(var m=0;m<n.length;m++)d+=O(i=n[m],r,o,l=h+T(i,m),a);else if("function"==typeof(m=null===(f=n)||"object"!=typeof f?null:"function"==typeof(f=p&&f[p]||f["@@iterator"])?f:null))for(n=m.call(n),m=0;!(i=n.next()).done;)d+=O(i=i.value,r,o,l=h+T(i,m++),a);else if("object"===l){if("function"==typeof n.then)return O(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function I(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},_={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return S.Activity=d,S.Children=_,S.Component=b,S.Fragment=n,S.Profiler=o,S.PureComponent=v,S.StrictMode=r,S.Suspense=s,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,S.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},S.cache=function(e){return function(){return e.apply(null,arguments)}},S.cacheSignal=function(){return null},S.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return L(e.type,o,r)},S.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},S.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return L(e,i,o)},S.createRef=function(){return{current:null}},S.forwardRef=function(e){return{$$typeof:l,render:e}},S.isValidElement=R,S.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},S.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},S.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,D)}catch(e){D(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},S.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},S.use=function(e){return C.H.use(e)},S.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},S.useCallback=function(e,t){return C.H.useCallback(e,t)},S.useContext=function(e){return C.H.useContext(e)},S.useDebugValue=function(){},S.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},S.useEffect=function(e,t){return C.H.useEffect(e,t)},S.useEffectEvent=function(e){return C.H.useEffectEvent(e)},S.useId=function(){return C.H.useId()},S.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},S.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},S.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},S.useMemo=function(e,t){return C.H.useMemo(e,t)},S.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},S.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},S.useRef=function(e){return C.H.useRef(e)},S.useState=function(e){return C.H.useState(e)},S.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},S.useTransition=function(){return C.H.useTransition()},S.version="19.2.8",S}function w(){return b||(b=1,v.exports=x()),v.exports}var k=w(),C=r(k),E=n({__proto__:null,default:C},[k]);const L=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach(e=>{n[e]||(n[e]={}),n[e][t]=r[e]})},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var R,P,T={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",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}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.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çilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ コンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.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":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.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ído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.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ível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function O(e){const t=L({initial:e});return Object.keys(T).forEach(e=>{t.translator.add(T[e])}),{translator:t.translator}}var I=function(){if(P)return R;P=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},R=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},R}(),M=r(I);function D(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function N(){}var q,j,A=.7,z=1/A,$="\\s*([+-]?\\d+)\\s*",F="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W=/^#([0-9a-f]{3,8})$/,H=new RegExp(`^rgb\\(${$},${$},${$}\\)$`),U=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),V=new RegExp(`^rgba\\(${$},${$},${$},${F}\\)$`),G=new RegExp(`^rgba\\(${B},${B},${B},${F}\\)$`),K=new RegExp(`^hsl\\(${F},${B},${B}\\)$`),X=new RegExp(`^hsla\\(${F},${B},${B},${F}\\)$`),J={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 Z(){return this.rgb().formatHex()}function Q(){return this.rgb().formatRgb()}function Y(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=W.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ee(t):3===n?new re(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?te(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?te(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=H.exec(e))?new re(t[1],t[2],t[3],1):(t=U.exec(e))?new re(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=V.exec(e))?te(t[1],t[2],t[3],t[4]):(t=G.exec(e))?te(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=K.exec(e))?ce(t[1],t[2]/100,t[3]/100,1):(t=X.exec(e))?ce(t[1],t[2]/100,t[3]/100,t[4]):J.hasOwnProperty(e)?ee(J[e]):"transparent"===e?new re(NaN,NaN,NaN,0):null}function ee(e){return new re(e>>16&255,e>>8&255,255&e,1)}function te(e,t,n,r){return r<=0&&(e=t=n=NaN),new re(e,t,n,r)}function ne(e,t,n,r){return 1===arguments.length?function(e){return e instanceof N||(e=Y(e)),e?new re((e=e.rgb()).r,e.g,e.b,e.opacity):new re}(e):new re(e,t,n,null==r?1:r)}function re(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oe(){return`#${se(this.r)}${se(this.g)}${se(this.b)}`}function ie(){const e=ae(this.opacity);return`${1===e?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===e?")":`, ${e})`}`}function ae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function se(e){return((e=le(e))<16?"0":"")+e.toString(16)}function ce(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new de(e,t,n,r)}function ue(e){if(e instanceof de)return new de(e.h,e.s,e.l,e.opacity);if(e instanceof N||(e=Y(e)),!e)return new de;if(e instanceof de)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 de(a,l,s,e.opacity)}function de(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function pe(e){return(e=(e||0)%360)<0?e+360:e}function fe(e){return Math.max(0,Math.min(1,e||0))}function he(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}D(N,Y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Z,formatHex:Z,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ue(this).formatHsl()},formatRgb:Q,toString:Q}),D(re,ne,_(N,{brighter(e){return e=null==e?z:Math.pow(z,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?A:Math.pow(A,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),ae(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:oe,formatHex:oe,formatHex8:function(){return`#${se(this.r)}${se(this.g)}${se(this.b)}${se(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ie,toString:ie})),D(de,function(e,t,n,r){return 1===arguments.length?ue(e):new de(e,t,n,null==r?1:r)},_(N,{brighter(e){return e=null==e?z:Math.pow(z,e),new de(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?A:Math.pow(A,e),new de(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 re(he(e>=240?e-240:e+120,o,r),he(e,o,r),he(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new de(pe(this.h),fe(this.s),fe(this.l),ae(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=ae(this.opacity);return`${1===e?"hsl(":"hsla("}${pe(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===e?")":`, ${e})`}`}}));var me=function(){if(j)return q;j=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return q=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},q}(),ge=r(me),be={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},ye={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Se={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const xe={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},we=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,ke=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Ce=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Ee=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,Le=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Re=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Pe}=Math,{round:Te}=Math;class Oe{constructor(...e){let t,n,r,o,i,a,l,s,c,u,d,p,f=0,h=0,m=0,g=1;if(this._invalid=!1,e[0]instanceof Oe)f=e[0]._r,h=e[0]._g,m=e[0]._b,g=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(p=e[0],d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))g=parseInt(d[1],10)/255,f=parseInt(d[2],10),h=parseInt(d[3],10),m=parseInt(d[4],10);else if(d=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(p))f=parseInt(d[1],16),h=parseInt(d[2],16),m=parseInt(d[3],16),g=1;else if(d=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(p))f=parseInt(d[1]+d[1],16),h=parseInt(d[2]+d[2],16),m=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,a=o<=.5?2*o*n:(2-2*o)*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=o-.5*a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,a=o<=.5?2*o*n:(2-2*o)*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=o-.5*a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),t%=360,n/=100,i/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,i=i<0?0:i>1?1:i,a=i*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=i-a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m),g=1}else Object.prototype.hasOwnProperty.call(xe,p.toLowerCase())?(r=p.toLowerCase(),f=xe[r].r,h=xe[r].g,m=xe[r].b,g="number"==typeof xe[r].a?xe[r].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(g=(4278190080&e[0])>>>24,g/=255,f=(16711680&e[0])>>16,h=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(f=(16711680&e[0])>>16,h=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(f=e[0],h=e[1],m=e[2],g=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+f+h+m+g)&&(this._invalid=!0),this._r=Pe(f),this._g=Pe(h),this._b=Pe(m),this._a=g,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Oe.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Oe.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Oe.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Oe.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Oe.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Oe.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),`hsla(${r},${o},${i},${a})`}isEqual(e){return e instanceof Oe||(e=new Oe(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Pe(this._r+(e._r-this._r)*t),Pe(this._g+(e._g-this._g)*t),Pe(this._b+(e._b-this._b)*t),Pe(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Oe(r)}static toRGB(e){if(e instanceof Oe)return`rgb(${[e._r,e._g,e._b].join(",")})`;"string"==typeof e&&(e=Oe.toNumber(e));return`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`}static toRGBA(e,t){if(e instanceof Oe)return`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`;"string"==typeof e&&(e=Oe.toNumber(e));return`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`}static toHex(e){let t,n,r;return e instanceof Oe?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`):("string"==typeof e&&(e=Oe.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`)}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),u=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return`hsl(${360*i},${100*n},${100*r})`}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return`hsla(${360*i},${100*n},${100*r},${c})`}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Oe(e));const o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Oe)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,r=0,o=0,i=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(r=parseInt(t[1],10),o=parseInt(t[2],10),i=parseInt(t[3],10)):(t=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(n))?(r=parseInt(t[1],16),o=parseInt(t[2],16),i=parseInt(t[3],16)):(t=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(n))&&(r=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16))),(r<<16)+(o<<8)+i}static blend(e,t,n){const r=(16711680&(e=Oe.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Oe.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Oe(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(we.test(e)||ke.test(e)||Ce.test(e)||Ee.test(e)||Le.test(e)||Re.test(e)||Object.prototype.hasOwnProperty.call(xe,e.toLowerCase()))}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(...e){return new Oe(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Ie{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Y(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([Y(e),Y(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],l=i[1];if(e===this.min)return l;if(e===this.max)return a;const s=function(e,t,n){return ne(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,l,r-o);return s}}function Me(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function De(e,t,n){const r=[],o=new Ie(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);const a=e[e.length-1];r.push(a),n||r.push(a);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function _e(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Me(1/t*o,t,n);i=e.getColor(r);break}}r.push(Y(i).formatHex())}return r}function Ne(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const r=De(e,n,!0),o=De(_e(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(_e(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}function qe(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function je(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function Ae(e,t,n,r){let o;if(""===e)o=qe(null,n);else{o=qe(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=je(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ze(e,t){const n=e.split(".");return{getStyle:(e,r)=>Ae(e,r,n.concat(),t)}}function $e(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?$e(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function Fe(e){const t=Y(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,l]=[n,r,o].map(e=>e/255),[s,c,u]=[i,a,l].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*s+.7152*c+.0722*u).toFixed(5)}ze.resolveRawTheme=e=>{const t=ge(!0,{},e);return $e(t,t._variables),t.scales&&Ne(t.scales,t.dataColors&&t.dataColors.nullColor),t};function Be(e=["#333333","#ffffff"]){let t={},n=0;const r=e.map(Fe);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=Fe(o),a=r.map(e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function We(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ze(t,e)),r[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const r=Y(...e);return r?r.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ve:ye;let r=Se;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ge(!0,{},be,r,n),i=ge(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ze.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Oe(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=Fe(l);n=Be([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(M.prototype).forEach(e=>{o[e]=M.prototype[e]}),M.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const He=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function Ue(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var Ve,Ge,Ke={exports:{}},Xe={},Je={exports:{}},Ze={};function Qe(){return Ge||(Ge=1,Je.exports=(Ve||(Ve=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,S(e),!h)if(null!==n(s))h=!0,k||(k=!0,w());else{var t=n(c);null!==t&&I(x,t.startTime-e)}}var w,k=!1,C=-1,E=5,L=-1;function R(){return!(!g&&e.unstable_now()-L<E)}function P(){if(g=!1,k){var t=e.unstable_now();L=t;var o=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),f=!0;var i=p;try{t:{for(S(t),d=n(s);null!==d&&!(d.expirationTime>t&&R());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,S(t),o=!0;break t}d===n(s)&&r(s),S(t)}else r(s);d=n(s)}if(null!==d)o=!0;else{var u=n(c);null!==u&&I(x,u.startTime-t),o=!1}}break e}finally{d=null,p=i,f=!1}o=void 0}}finally{o?w():k=!1}}}if("function"==typeof v)w=function(){v(P)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,O=T.port2;T.port1.onmessage=P,w=function(){O.postMessage(null)}}else w=function(){b(P,0)};function I(t,n){C=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(m?(y(C),C=-1):m=!0,I(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,k||(k=!0,w()))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Ze)),Ze)),Je.exports}var Ye,et,tt,nt,rt={exports:{}},ot={};function it(){if(Ye)return ot;Ye=1;var e=w();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ot.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},ot.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},ot.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},ot.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},ot.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},ot.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},ot.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},ot.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},ot.requestFormReset=function(e){r.d.r(e)},ot.unstable_batchedUpdates=function(e,t){return e(t)},ot.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},ot.useFormStatus=function(){return i.H.useHostTransitionStatus()},ot.version="19.2.8",ot}function at(){if(et)return rt.exports;return et=1,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)}}(),rt.exports=it(),rt.exports}
|
|
7
|
+
System.register([],function(e,t){"use strict";return{execute:function(){function n(e,t){return t.forEach(function(t){t&&"string"!=typeof t&&!Array.isArray(t)&&Object.keys(t).forEach(function(n){if("default"!==n&&!(n in e)){var r=Object.getOwnPropertyDescriptor(t,n);Object.defineProperty(e,n,r.get?r:{enumerable:!0,get:function(){return t[n]}})}})}),Object.freeze(e)}function r(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}e({A:function(){return Px("options")},B:function(){return Px("plugins")},C:function(e,t){const[n,r]=Ix(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=Rx(++gx);o.component||(o.component=mx);return Dx(()=>{let t=!1;return o.teardown=()=>{t=!0,o.teardown=null;const e=o.component.__hooks.pendingPromises.indexOf(o);e>-1&&o.component.__hooks.pendingPromises.splice(e,1)},e().then(e=>{t||(o.teardown&&o.teardown(),r({resolved:e,rejected:void 0,state:"resolved"}))}).catch(e=>{t||(o.teardown&&o.teardown(),r({resolved:void 0,rejected:e,state:"resolved"}))}),o.component.__hooks.pendingPromises.push(o),()=>{o.teardown&&o.teardown()}},t),[n.resolved,n.rejected]},E:function(){const e=Nx(),t=mx.__hooks.resizer,[n,r]=Ix(()=>{const{left:t,top:n,width:r,height:o}=e.getBoundingClientRect();return{left:t,top:n,width:r,height:o}});t.current=n,-1===t.setters.indexOf(r)&&t.setters.push(r);t.update&&t.resize&&(t.update=!1,t.resize());return Dx(()=>{if(t.initiated)return;t.initiated=!0;const n=()=>{const{left:n,top:r,width:o,height:i}=e.getBoundingClientRect(),a=t.current;a.width===o&&a.height===i&&a.left===n&&a.top===r||t.setters.forEach(e=>e({left:n,top:r,width:o,height:i}))};if(t.resize=()=>{n()},t.explicitResize)return()=>{t.resize=void 0};if("function"==typeof ResizeObserver){let r=new ResizeObserver(n);return r.observe(e),()=>{r.unobserve(e),r.disconnect(e),r=null,t.resize=void 0}}},[e]),n},F:function(e){return _x(()=>({current:e}),[])},G:function(){Rx(++gx);const e=mx.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},I:function(){return Px("selections")},J:function(){const e=Px("layout"),[t]=Ix({current:e});e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e);return t.current},K:Ix,L:function(){return Px("theme")},M:function(){return Px("translator")},a:p,c:function e(t){if(Array.isArray(t))return t.map(t=>"object"==typeof t&&null!==t?e(t):t).filter(e=>"object"==typeof e&&null!==e?Object.keys(e).length>0:null!=e&&""!==e);if("object"==typeof t&&null!==t){const n={};for(const r of Object.keys(t)){const o=t[r];switch(typeof o){case"undefined":break;case"boolean":o&&(n[r]=o);break;case"string":{const e=o.trim();""!==e&&(n[r]=e);break}case"object":{if(null===o)break;const t=e(o);t&&(Array.isArray(t)&&t.length>0||"object"==typeof t&&Object.keys(t).length>0)&&(n[r]=t);break}case"function":case"number":n[r]=o;break;default:console.warn(`Unexpected type for key "${r}": ${typeof o}`),n[r]=o}}if(0===Object.keys(n).length)return;return n}return t},e:function(e){const t=Rx(++gx);t.value||(t.value=1,mx.__hooks.snaps.push(t));t.fn=e},f:function(){const e=Px("app");return e&&e.session?e:void 0},g:function(){return Px("appLayout")},h:function(){return Px("constraints")},i:function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self},j:function(){return Px("deviceType")},k:Mx,l:Nx,n:function(){return Px("nebbie")},o:function(e){const t=Rx(++gx);t.value||(t.value=1,mx.__hooks.menus.push(t));t.fn=e},p:function(){return Px("emitter")},q:function(){const e=Px("global");return e&&e.session?e:void 0},r:function(e,t){const n=Rx(++gx);n.imperative||(n.imperative=!0);if(bx(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],mx.__hooks.imperativeHandle=r}},s:function e(t){if(Array.isArray(t))return t.map(e);if("object"==typeof(n=t)&&null!==n&&n.constructor===Object){const n={};for(const r of Object.keys(t).sort())n[r]=e(t[r]);return n}var n;return t},t:function(){return Px("interactions")},u:function(e,t){const[n]=Ix({action(){n._config.action.call(null)}});n.component||(n.component=mx,mx.__hooks.actions.list.push(n));return _x(()=>{const t=e();n._config=t,n.active=t.active||!1,n.disabled=t.disabled||!1,n.hidden=t.hidden||!1,n.label=t.label||"",n.getSvgIconShape=t.icon?()=>t.icon:void 0,n.key=t.key||n.component.__hooks.actions.list.length,n.component.__hooks.actions.changed=!0},t),n.action},v:function(){const e=Px("keyboardNavigation"),t=Px("focusHandler");if(!mx.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(jx(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(mx);mx.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),qx(this))}.bind(mx);mx.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(mx);mx.__hooks.accessibility.focusSelectionFunction=r}const n=mx.__hooks.accessibility.focusFunction,r=mx.__hooks.accessibility.exitFunction,o=mx.__hooks.accessibility.focusSelectionFunction,[i,a]=Ix({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return mx.__hooks.accessibility.setter=a,mx.__hooks.accessibility.enabled=e,Mx(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},w:function(){return Px("layout")},x:_x,y:function(){const e=Px("model");return e&&e.session?e:void 0},z:function(){return Px("navigation")}});var o,i={exports:{}};function a(e){var t,n,r,o=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);o--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new l(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function l(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return l=function(e){this.s=e,this.n=e.next},l.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new l(e)}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach(function(t){s(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(){return!("undefined"==typeof process||!process.version||!process.versions.node)}o||(o=1,function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",l=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),l=new O(r||[]);return o(a,"_invoke",{value:L(e,n,l)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var p="suspendedStart",f="suspendedYield",h="executing",m="completed",g={};function b(){}function y(){}function v(){}var S={};c(S,a,function(){return this});var x=Object.getPrototypeOf,w=x&&x(x(I([])));w&&w!==n&&r.call(w,a)&&(S=w);var k=v.prototype=b.prototype=Object.create(S);function C(e){["next","throw","return"].forEach(function(t){c(e,t,function(e){return this._invoke(t,e)})})}function E(e,t){function n(o,i,a,l){var s=d(e[o],e,i);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"==typeof u&&r.call(u,"__await")?t.resolve(u.__await).then(function(e){n("next",e,a,l)},function(e){n("throw",e,a,l)}):t.resolve(u).then(function(e){c.value=e,a(c)},function(e){return n("throw",e,a,l)})}l(s.arg)}var i;o(this,"_invoke",{value:function(e,r){function o(){return new t(function(t,o){n(e,r,t,o)})}return i=i?i.then(o,o):o()}})}function L(e,n,r){var o=p;return function(i,a){if(o===h)throw new Error("Generator is already running");if(o===m){if("throw"===i)throw a;return{value:t,done:!0}}for(r.method=i,r.arg=a;;){var l=r.delegate;if(l){var s=R(l,r);if(s){if(s===g)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===p)throw o=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=h;var c=d(e,n,r);if("normal"===c.type){if(o=r.done?m:f,c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(o=m,r.method="throw",r.arg=c.arg)}}}function R(e,n){var r=n.method,o=e.iterator[r];if(o===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,R(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var i=d(o,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function O(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function I(e){if(null!=e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function n(){for(;++o<e.length;)if(r.call(e,o))return n.value=e[o],n.done=!1,n;return n.value=t,n.done=!0,n};return i.next=i}}throw new TypeError(typeof e+" is not iterable")}return y.prototype=v,o(k,"constructor",{value:v,configurable:!0}),o(v,"constructor",{value:y,configurable:!0}),y.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},C(E.prototype),c(E.prototype,l,function(){return this}),e.AsyncIterator=E,e.async=function(t,n,r,o,i){void 0===i&&(i=Promise);var a=new E(u(t,n,r,o),i);return e.isGeneratorFunction(n)?a:a.next().then(function(e){return e.done?e.value:a.next()})},C(k),c(k,s,"Generator"),c(k,a,function(){return this}),c(k,"toString",function(){return"[object Generator]"}),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=I,O.prototype={constructor:O,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(T),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function o(r,o){return l.type="throw",l.arg=e,n.next=r,o&&(n.method="next",n.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],l=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,g):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;T(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(i));const f=p(),h=(async()=>f?()=>{throw new Error("importRuntimeModule cannot be used in a Node.js context")}:(await t.import("./dist-Df-Traut-DXy2cfTS.js")).importRuntimeModule)();async function m(e){return f?t.import("./auth-Cndp79dH-CqnntUUA.js"):(await h)("auth@v1",e)}var g,b,y={registerAuthModule:function(e,t){m().then(n=>n.registerAuthModule(e,t))},setDefaultHostConfig:function(e){m(e).then(t=>t.setDefaultHostConfig(e))},registerHostConfig:function(e,t){m(t).then(n=>n.registerHostConfig(e,t))},unregisterHostConfig:function(e){m().then(t=>t.unregisterHostConfig(e))},getAccessToken:async function({hostConfig:e}){return m(e).then(t=>t.getAccessToken({hostConfig:e}))},getWebResourceAuthParams:async function({hostConfig:e}){return m(e).then(t=>t.getWebResourceAuthParams({hostConfig:e}))}},v={exports:{}},S={};function x(){if(g)return S;g=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),a=Symbol.for("react.context"),l=Symbol.for("react.forward_ref"),s=Symbol.for("react.suspense"),c=Symbol.for("react.memo"),u=Symbol.for("react.lazy"),d=Symbol.for("react.activity"),p=Symbol.iterator;var f={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,m={};function b(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}function y(){}function v(e,t,n){this.props=e,this.context=t,this.refs=m,this.updater=n||f}b.prototype.isReactComponent={},b.prototype.setState=function(e,t){if("object"!=typeof e&&"function"!=typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},b.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},y.prototype=b.prototype;var x=v.prototype=new y;x.constructor=v,h(x,b.prototype),x.isPureReactComponent=!0;var w=Array.isArray;function k(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function L(t,n,r){var o=r.ref;return{$$typeof:e,type:t,key:n,ref:void 0!==o?o:null,props:r}}function R(t){return"object"==typeof t&&null!==t&&t.$$typeof===e}var P=/\/+/g;function T(e,t){return"object"==typeof e&&null!==e&&null!=e.key?(n=""+e.key,r={"=":"=0",":":"=2"},"$"+n.replace(/[=:]/g,function(e){return r[e]})):t.toString(36);var n,r}function O(n,r,o,i,a){var l=typeof n;"undefined"!==l&&"boolean"!==l||(n=null);var s,c,d=!1;if(null===n)d=!0;else switch(l){case"bigint":case"string":case"number":d=!0;break;case"object":switch(n.$$typeof){case e:case t:d=!0;break;case u:return O((d=n._init)(n._payload),r,o,i,a)}}if(d)return a=a(n),d=""===i?"."+T(n,0):i,w(a)?(o="",null!=d&&(o=d.replace(P,"$&/")+"/"),O(a,r,o,"",function(e){return e})):null!=a&&(R(a)&&(s=a,c=o+(null==a.key||n&&n.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+d,a=L(s.type,c,s.props)),r.push(a)),1;d=0;var f,h=""===i?".":i+":";if(w(n))for(var m=0;m<n.length;m++)d+=O(i=n[m],r,o,l=h+T(i,m),a);else if("function"==typeof(m=null===(f=n)||"object"!=typeof f?null:"function"==typeof(f=p&&f[p]||f["@@iterator"])?f:null))for(n=m.call(n),m=0;!(i=n.next()).done;)d+=O(i=i.value,r,o,l=h+T(i,m++),a);else if("object"===l){if("function"==typeof n.then)return O(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"==typeof e.status?e.then(k,k):(e.status="pending",e.then(function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)},function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(n),r,o,i,a);throw r=String(n),Error("Objects are not valid as a React child (found: "+("[object Object]"===r?"object with keys {"+Object.keys(n).join(", ")+"}":r)+"). If you meant to render a collection of children, use an array instead.")}return d}function I(e,t,n){if(null==e)return e;var r=[],o=0;return O(e,r,"","",function(e){return t.call(n,e,o++)}),r}function M(e){if(-1===e._status){var t=e._result;(t=t()).then(function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)},function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)}),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var D="function"==typeof reportError?reportError:function(e){if("object"==typeof window&&"function"==typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"==typeof e&&null!==e&&"string"==typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"==typeof process&&"function"==typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},_={map:I,forEach:function(e,t,n){I(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return I(e,function(){t++}),t},toArray:function(e){return I(e,function(e){return e})||[]},only:function(e){if(!R(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};return S.Activity=d,S.Children=_,S.Component=b,S.Fragment=n,S.Profiler=o,S.PureComponent=v,S.StrictMode=r,S.Suspense=s,S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,S.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}},S.cache=function(e){return function(){return e.apply(null,arguments)}},S.cacheSignal=function(){return null},S.cloneElement=function(e,t,n){if(null==e)throw Error("The argument must be a React element, but you passed "+e+".");var r=h({},e.props),o=e.key;if(null!=t)for(i in void 0!==t.key&&(o=""+t.key),t)!E.call(t,i)||"key"===i||"__self"===i||"__source"===i||"ref"===i&&void 0===t.ref||(r[i]=t[i]);var i=arguments.length-2;if(1===i)r.children=n;else if(1<i){for(var a=Array(i),l=0;l<i;l++)a[l]=arguments[l+2];r.children=a}return L(e.type,o,r)},S.createContext=function(e){return(e={$$typeof:a,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:i,_context:e},e},S.createElement=function(e,t,n){var r,o={},i=null;if(null!=t)for(r in void 0!==t.key&&(i=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(o[r]=t[r]);var a=arguments.length-2;if(1===a)o.children=n;else if(1<a){for(var l=Array(a),s=0;s<a;s++)l[s]=arguments[s+2];o.children=l}if(e&&e.defaultProps)for(r in a=e.defaultProps)void 0===o[r]&&(o[r]=a[r]);return L(e,i,o)},S.createRef=function(){return{current:null}},S.forwardRef=function(e){return{$$typeof:l,render:e}},S.isValidElement=R,S.lazy=function(e){return{$$typeof:u,_payload:{_status:-1,_result:e},_init:M}},S.memo=function(e,t){return{$$typeof:c,type:e,compare:void 0===t?null:t}},S.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),o=C.S;null!==o&&o(n,r),"object"==typeof r&&null!==r&&"function"==typeof r.then&&r.then(k,D)}catch(e){D(e)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},S.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},S.use=function(e){return C.H.use(e)},S.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},S.useCallback=function(e,t){return C.H.useCallback(e,t)},S.useContext=function(e){return C.H.useContext(e)},S.useDebugValue=function(){},S.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},S.useEffect=function(e,t){return C.H.useEffect(e,t)},S.useEffectEvent=function(e){return C.H.useEffectEvent(e)},S.useId=function(){return C.H.useId()},S.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},S.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},S.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},S.useMemo=function(e,t){return C.H.useMemo(e,t)},S.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},S.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},S.useRef=function(e){return C.H.useRef(e)},S.useState=function(e){return C.H.useState(e)},S.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},S.useTransition=function(){return C.H.useTransition()},S.version="19.2.8",S}function w(){return b||(b=1,v.exports=x()),v.exports}var k=w(),C=r(k),E=n({__proto__:null,default:C},[k]);const L=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let r=e;const o={language:e=>(e&&(r=e),r),add:e=>{const{id:t,locale:r}=e;Object.keys(r).forEach(e=>{n[e]||(n[e]={}),n[e][t]=r[e]})},get(e,o){let i;return i=n[r]&&void 0!==n[r][e]?n[r][e]:n[t]&&void 0!==n[t][e]?n[t][e]:e,void 0!==o?((e="",t=[])=>{const n="string"==typeof t||"number"==typeof t?[t]:t;return e.replace(/\{(\d+)\}/g,(e,t)=>void 0!==n[t]?n[t]:e)})(i,o):i}};return o}({initial:e,fallback:t});return{translator:n}};var R,P,T={Accessibility_Object_NoTitle:{id:"Accessibility.Object.NoTitle",locale:{"de-DE":"Kein Titel","en-US":"No title","es-ES":"Sin título","fr-FR":"Pas de titre","it-IT":"Nessun titolo","ja-JP":"タイトルなし","ko-KR":"제목 없음","nl-NL":"Geen titel","pl-PL":"Brak tytułu","pt-BR":"Sem título","ru-RU":"Без заголовка","sv-SE":"Ingen rubrik","tr-TR":"Başlık yok","zh-CN":"无标题","zh-TW":"無標題"}},Cancel:{id:"Cancel",locale:{"de-DE":"Abbrechen","en-US":"Cancel","es-ES":"Cancelar","fr-FR":"Annuler","it-IT":"Annulla","ja-JP":"キャンセル","ko-KR":"취소","nl-NL":"Annuleren","pl-PL":"Anuluj","pt-BR":"Cancelar","ru-RU":"Отмена","sv-SE":"Avbryt","tr-TR":"İptal","zh-CN":"取消","zh-TW":"取消"}},CurrentSelections_All:{id:"CurrentSelections.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUS","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKO","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},CurrentSelections_Of:{id:"CurrentSelections.Of",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}"}},Listbox_Clear_Search:{id:"Listbox.Clear.Search",locale:{"de-DE":"Suche löschen","en-US":"Clear search","es-ES":"Borrar búsqueda","fr-FR":"Effacer la recherche","it-IT":"Cancella ricerca","ja-JP":"検索をクリア","ko-KR":"검색 지우기","nl-NL":"Zoekopdracht wissen","pl-PL":"Wyczyść wyszukiwanie","pt-BR":"Limpar pesquisa","ru-RU":"Очистить поиск","sv-SE":"Radera sökning","tr-TR":"Aramayı temizle","zh-CN":"清除搜索","zh-TW":"清除搜尋"}},Listbox_Cyclic:{id:"Listbox.Cyclic",locale:{"de-DE":"Zyklische Dimension","en-US":"Cyclic dimension","es-ES":"Dimensión cíclica","fr-FR":"Dimension cyclique","it-IT":"Dimensione ciclica","ja-JP":"サイクリック軸","ko-KR":"순환 차원","nl-NL":"Cyclische dimensie","pl-PL":"Wymiar cykliczny","pt-BR":"Dimensão cíclica","ru-RU":"Циклическое измерение","sv-SE":"Cyklisk dimension","tr-TR":"Döngüsel boyut","zh-CN":"循环维度","zh-TW":"循環維度"}},Listbox_Dismiss:{id:"Listbox.Dismiss",locale:{"de-DE":"Schließen","en-US":"Dismiss","es-ES":"Descartar","fr-FR":"Ignorer","it-IT":"Ignora","ja-JP":"却下","ko-KR":"해제","nl-NL":"Overslaan","pl-PL":"Zamknij","pt-BR":"Ignorar","ru-RU":"Пропустить","sv-SE":"Hoppa över","tr-TR":"Kapat","zh-CN":"离开","zh-TW":"解除"}},Listbox_DrillDown:{id:"Listbox.DrillDown",locale:{"de-DE":"Drilldown-Dimension","en-US":"Drill-down dimension","es-ES":"Dimensión jerárquica","fr-FR":"Dimension hiérarchique","it-IT":"Dimensione drill-down","ja-JP":"軸のドリルダウン","ko-KR":"드릴다운 차원","nl-NL":"Drill-downdimensie","pl-PL":"Wymiar hierarchiczny","pt-BR":"Dimensão de detalhamento","ru-RU":"Детализированное измерение","sv-SE":"Hierarkisk dimension","tr-TR":"Detaya inme boyutu","zh-CN":"钻取维度","zh-TW":"向下探查維度"}},Listbox_ItemsOverflow:{id:"Listbox.ItemsOverflow",locale:{"de-DE":"Derzeit wird ein eingeschränkter Datensatz angezeigt, verwenden Sie die Suche, um die Größe zu reduzieren","en-US":"Currently showing a limited data set, use search to reduce the size","es-ES":"Actualmente se muestra un conjunto de datos limitado, utilice la búsqueda para reducir el tamaño","fr-FR":"Ensemble de données limité actuellement affiché. Utilisez la rechercher pour réduire la taille.","it-IT":"Attualmente visualizzato un set di dati limitato; utilizzare la ricerca per ridurre le dimensioni","ja-JP":"現在表示されているデータ セットは制限されているため、検索を使ってサイズを縮小してください","ko-KR":"현재 제한된 데이터 집합이 표시되고 있습니다. 검색을 사용하여 크기를 줄이십시오.","nl-NL":"Er wordt momenteel een beperkte gegevensverzameling getoond, gebruik Zoeken om de omvang te verkleinen","pl-PL":"Wyświetlany jest ograniczony zestaw danych. Użyj wyszukiwania, aby zmniejszyć rozmiar.","pt-BR":"Atualmente mostrando um conjunto de dados limitado, use a pesquisa para reduzir o tamanho","ru-RU":"Сейчас отображается ограниченный набор данных. Используйте поиск, чтобы уменьшить размер.","sv-SE":"En begränsad datauppsättning visas. Använd sök för att minska storleken","tr-TR":"Şu anda sınırlı bir veri kümesi gösteriliyor. Boyutu azaltmak için arama işlevini kullanın","zh-CN":"目前显示有限的数据集,使用搜索来减少大小","zh-TW":"目前顯示有限資料集,請使用搜尋減少大小"}},Listbox_Lock:{id:"Listbox.Lock",locale:{"de-DE":"Auswahlen sperren","en-US":"Lock selections","es-ES":"Bloquear selecciones","fr-FR":"Verrouiller les sélections","it-IT":"Blocca selezioni","ja-JP":"選択をロック","ko-KR":"선택 내용 잠금","nl-NL":"Selecties vergrendelen","pl-PL":"Zablokuj wybory","pt-BR":"Bloquear seleções","ru-RU":"Заблокировать выборки","sv-SE":"Lås urval","tr-TR":"Seçimleri kilitle","zh-CN":"锁定选择项","zh-TW":"鎖定選項"}},Listbox_NoMatchesForYourTerms:{id:"Listbox.NoMatchesForYourTerms",locale:{"de-DE":"Für Ihre Suche wurden keine Übereinstimmungen gefunden.","en-US":"There are no matches for your search.","es-ES":"No hay resultados para su búsqueda.","fr-FR":"Aucun résultat ne correspond à votre recherche.","it-IT":"Non è stata trovata alcuna corrispondenza per questa ricerca.","ja-JP":"検索に一致するものがありません。","ko-KR":"검색에 대해 일치하는 항목이 없습니다.","nl-NL":"Er zijn geen overeenkomsten voor uw zoekopdracht.","pl-PL":"Brak dopasowań dla tego wyszukiwania.","pt-BR":"Não há correspondências para sua pesquisa.","ru-RU":"Нет совпадений по вашему поисковому запросу.","sv-SE":"Det finns inga matchningar för din sökning.","tr-TR":"Aramanızla eşleşen sonuç yok.","zh-CN":"您的搜索条件没有任何匹配结果。","zh-TW":"沒有與您搜尋相符的項目。"}},Listbox_ResultFilterLabel:{id:"Listbox.ResultFilterLabel",locale:{"de-DE":"Suchergebnisfilter","en-US":"Search Results Filter","es-ES":"Filtro de resultados de búsqueda","fr-FR":"Filtre de résultats de recherche","it-IT":"Filtro risultati Ricerca","ja-JP":"検索結果フィルター","ko-KR":"검색 결과 필터","nl-NL":"Filter voor zoekresultaten","pl-PL":"Filtr wyników wyszukiwania","pt-BR":"Filtro de resultados da pesquisa","ru-RU":"Фильтр результатов поиска","sv-SE":"Filter för sökresultat","tr-TR":"Arama Sonuçları Filtresi","zh-CN":"搜索结果筛选器","zh-TW":"搜尋結果篩選"}},Listbox_ScreenReader_SearchThenSelectionsMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie die Umschalttaste zusammen mit der Tabulatortaste, um den Fokus in die Suchleiste zu setzen, und dann erneut beide Tasten, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the search bar, then Shift plus Tab again to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en la barra de búsqueda, luego Mayús + Tabulador nuevamente para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur la barre de recherche, puis de nouveau sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere MAIUSC+TAB per impostare lo stato attivo sulla barra di ricerca, quindi premere nuovamente MAIUSC+TAB per impostare lo stato attivo sul menu selezioni.","ja-JP":"Shift + Tab を押して検索バーにフォーカスを設定し、Shift + Tab をもう一度押して選択メニューにフォーカスを設定します。","ko-KR":"Shift+Tab을 눌러 검색 막대에 초점을 맞춘 다음 Shift+Tab을 다시 눌러 선택 메뉴에 초점을 맞추십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op de zoekbalk, druk vervolgens nogmaals op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na pasku wyszukiwania. Następnie ponownie użyj tej kombinacji klawiszy, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco na barra de pesquisa e Shift + Tab novamente para definir o foco no menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на строку поиска. Затем снова нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb för att ställa in fokus på sökfältet, sedan Skift plus Tabb igen för att ställa in fokus på urvalsmenyn.","tr-TR":"Odağı arama çubuğuna ayarlamak için Shift ve Sekme tuşlarına birlikte basın, ardından bu tuşlara birlikte tekrar basarak odağı seçim menüsüne ayarlayın.","zh-CN":"按 Shift+Tab 在搜索栏上设置焦点,然后再次按 Shift+Tab 在“选择”菜单上设置焦点。","zh-TW":"按下 Shift 加 Tab 鍵以設定搜尋列上的焦點,然後再次按下 Shift 加 Tab 鍵,以設定選項功能表上的焦點。"}},Listbox_ScreenReader_SelectionMenu_WithAccSelMenu:{id:"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",locale:{"de-DE":"Drücken Sie gleichzeitig die Umschalt- und die Tabulatortaste, um den Fokus in das Auswahlmenü zu setzen.","en-US":"Press Shift plus Tab to set focus on the selections menu.","es-ES":"Pulse Mayús + Tabulador para establecer el foco en el menú de selecciones.","fr-FR":"Appuyez sur Maj + Tab pour mettre le focus sur le menu de sélections.","it-IT":"Premere i tasti MAIUSC+TAB per evidenziare il menu di selezione.","ja-JP":"Shift キー + Tab キーを押して選択メニューにフォーカスを設定します。","ko-KR":"선택 메뉴에 초점을 설정하려면 Shift+Tab을 누르십시오.","nl-NL":"Druk op Shift + Tab om de focus in te stellen op het selectiemenu.","pl-PL":"Naciśnij Shift i Tab, aby ustawić ostrość na menu wyboru.","pt-BR":"Pressione Shift + Tab para definir o foco sobre o menu de seleções.","ru-RU":"Нажмите клавиши SHIFT+TAB, чтобы переключиться на меню выбора.","sv-SE":"Tryck på Skift plus Tabb när du vill ställa in fokus på urvalsmenyn.","tr-TR":"Odağı seçim menüsüne ayarlamak için Shift ve Sekme tuşlarına birlikte basın.","zh-CN":"按下 Shift 加 Tab 以将焦点设置在选择菜单上。","zh-TW":"按下 Shift 加 Tab 以在選項功能表上設定焦點。"}},Listbox_ScreenReaderInstructions:{id:"Listbox.ScreenReaderInstructions",locale:{"de-DE":"Bei Aktivierung der Elemente unten wird der Seiteninhalt aktualisiert","en-US":"Activating the elements below will cause content on the page to be updated","es-ES":"La activación de los elementos siguientes hará que se actualice el contenido en la página","fr-FR":"L'activation des éléments ci-dessous actualisera le contenu de la page.","it-IT":"L'attivazione degli elementi sottostanti causerà l'aggiornamento del contenuto della pagina","ja-JP":"下記の要素をアクティブ化すると、ページのコンテンツが更新されます","ko-KR":"아래 요소를 활성화하면 페이지의 콘텐츠가 업데이트됩니다.","nl-NL":"Door de onderstaande elementen te activeren wordt de inhoud op de pagina bijgewerkt","pl-PL":"Aktywacja poniższych elementów spowoduje aktualizację zawartości na stronie","pt-BR":"A ativação dos elementos abaixo fará com que o conteúdo da página seja atualizado","ru-RU":"Активация приведенных ниже элементов приведет к обновлению содержимого страницы","sv-SE":"Om du aktiverar elementen nedan kommer innehåll på sidan att uppdateras","tr-TR":"Aşağıdaki öğeleri etkinleştirmek sayfadaki içeriğin güncellenmesine neden olur","zh-CN":"激活下面的元素将导致页面上的内容更新","zh-TW":"啟用以下元素將會造成更新頁面上的內容"}},Listbox_Search:{id:"Listbox.Search",locale:{"de-DE":"In Listenfeld suchen","en-US":"Search in listbox","es-ES":"Buscar en cuadro de lista","fr-FR":"Rechercher dans la liste de sélection","it-IT":"Cerca nella casella di elenco","ja-JP":"リストボックス内を検索","ko-KR":"목록 상자에서 검색","nl-NL":"Zoeken in keuzelijst","pl-PL":"Wyszukaj w liście wartości","pt-BR":"Pesquisar na caixa de listagem","ru-RU":"Поиск в списке","sv-SE":"Sök i listruta","tr-TR":"Liste kutusunda ara","zh-CN":"在列表框中搜索","zh-TW":"在清單方塊中搜尋"}},Listbox_Search_ScreenReaderInstructions:{id:"Listbox.Search.ScreenReaderInstructions",locale:{"de-DE":"Über das folgende Suchfeld werden Ergebnisse während der Eingabe gefiltert","en-US":"The following search field filters results below as you type","es-ES":"El siguiente campo de búsqueda filtra los resultados siguientes a medida que escribe","fr-FR":"Le champ de recherche suivant filtrer les résultats ci-dessous à mesure de votre saisie.","it-IT":"Il seguente campo di ricerca filtra i risultati man mano che vengono digitati","ja-JP":"次の検索フィールドは、入力と同時に下記の結果をフィルターします","ko-KR":"다음 검색 필드는 입력할 때 아래의 결과를 필터링합니다.","nl-NL":"Het volgende zoekveld filtert resultaten terwijl u typt","pl-PL":"Następujące pole wyszukiwania filtruje wyniki poniżej w miarę pisania","pt-BR":"O campo de pesquisa a seguir filtra os resultados abaixo conforme você digita","ru-RU":"Следующее поле поиска фильтрует результаты ниже по мере ввода текста","sv-SE":"Följande sökfält filtrerar resultaten nedan medan du skriver","tr-TR":"Aşağıdaki arama alanı siz yazarken aşağıdaki sonuçları filtreler","zh-CN":"键入时,以下搜索字段筛选结果如下","zh-TW":"下列搜尋欄位在您輸入時篩選以下結果"}},Listbox_Unlock:{id:"Listbox.Unlock",locale:{"de-DE":"Auswahlen entsperren","en-US":"Unlock selections","es-ES":"Desbloquear selecciones","fr-FR":"Déverrouiller les sélections","it-IT":"Sblocca selezioni","ja-JP":"選択をロック解除","ko-KR":"선택 내용 잠금 해제","nl-NL":"Selecties ontgrendelen","pl-PL":"Odblokuj wybory","pt-BR":"Desbloquear seleções","ru-RU":"Разблокировать выборки","sv-SE":"Lås upp urval","tr-TR":"Seçimlerin kilidini aç","zh-CN":"将选择项解锁","zh-TW":"解鎖選項"}},Menu_More:{id:"Menu.More",locale:{"de-DE":"Mehr","en-US":"More","es-ES":"Más","fr-FR":"Plus","it-IT":"Altro","ja-JP":"詳細","ko-KR":"자세히","nl-NL":"Meer","pl-PL":"Więcej","pt-BR":"Mais","ru-RU":"Дополнительно","sv-SE":"Mer","tr-TR":"Daha fazla","zh-CN":"更多","zh-TW":"更多"}},Navigate_Back:{id:"Navigate.Back",locale:{"de-DE":"Schritt zurück","en-US":"Step back","es-ES":"Atrás","fr-FR":"Retour en arrière","it-IT":"Torna indietro","ja-JP":"1 段階戻る","ko-KR":"이전 단계","nl-NL":"Stap terug","pl-PL":"Krok do tyłu","pt-BR":"Voltar uma etapa","ru-RU":"Шаг назад","sv-SE":"Gå bakåt","tr-TR":"Bir adım geri","zh-CN":"后退","zh-TW":"倒退"}},Navigate_Forward:{id:"Navigate.Forward",locale:{"de-DE":"Schritt vor","en-US":"Step forward","es-ES":"Avanzar","fr-FR":"Étape suivante","it-IT":"Vai avanti","ja-JP":"1段階進む","ko-KR":"다음 단계","nl-NL":"Stap vooruit","pl-PL":"Krok do przodu","pt-BR":"Avançar uma etapa","ru-RU":"Шаг вперед","sv-SE":"Gå framåt","tr-TR":"Bir adım ileri","zh-CN":"前进","zh-TW":"前進"}},OK:{id:"OK",locale:{"de-DE":"OK","en-US":"OK","es-ES":"Aceptar","fr-FR":"OK","it-IT":"OK","ja-JP":"OK","ko-KR":"확인","nl-NL":"OK","pl-PL":"OK","pt-BR":"OK","ru-RU":"ОК","sv-SE":"OK","tr-TR":"Tamam","zh-CN":"确定","zh-TW":"確定"}},Object_ActionButton:{id:"Object.ActionButton",locale:{"de-DE":"Schaltfläche","en-US":"Button","es-ES":"Botón","fr-FR":"Bouton","it-IT":"Pulsante","ja-JP":"ボタン","ko-KR":"버튼","nl-NL":"Knop","pl-PL":"Przycisk","pt-BR":"Botão","ru-RU":"Кнопка","sv-SE":"Knapp","tr-TR":"Düğme","zh-CN":"按钮","zh-TW":"按鈕"}},Object_AutoChart:{id:"Object.AutoChart",locale:{"de-DE":"Automatisches Diagramm","en-US":"Autochart","es-ES":"Gráfico automático","fr-FR":"Graphique automatique","it-IT":"Grafico automatico","ja-JP":"オートチャート","ko-KR":"자동 차트","nl-NL":"Automatisch diagram","pl-PL":"Automatyczny wykres","pt-BR":"Gráfico automático","ru-RU":"Автодиаграмма","sv-SE":"Automatiskt diagram","tr-TR":"Otomatik grafik","zh-CN":"自动图表","zh-TW":"自動圖表"}},Object_BarChart:{id:"Object.BarChart",locale:{"de-DE":"Balkendiagramm","en-US":"Bar chart","es-ES":"Gráfico de barras","fr-FR":"Graphique en barres","it-IT":"Grafico a barre","ja-JP":"棒グラフ","ko-KR":"막대형 차트","nl-NL":"Staafdiagram","pl-PL":"Wykres słupkowy","pt-BR":"Gráfico de barras","ru-RU":"Линейчатая диаграмма","sv-SE":"Stapeldiagram","tr-TR":"Sütun grafik","zh-CN":"条形图","zh-TW":"長條圖"}},Object_BoxPlot:{id:"Object.BoxPlot",locale:{"de-DE":"Boxplot","en-US":"Box plot","es-ES":"Diagrama de caja","fr-FR":"Boîte à moustaches","it-IT":"Box plot","ja-JP":"ボックス プロット","ko-KR":"상자 그림","nl-NL":"Boxplot","pl-PL":"Wykres pudełkowy","pt-BR":"Plotagem de caixa","ru-RU":"Блочная диаграмма","sv-SE":"Lådagram","tr-TR":"Kutu çizimi","zh-CN":"框图","zh-TW":"盒狀圖"}},Object_BulletChart:{id:"Object.BulletChart",locale:{"de-DE":"Bullet-Diagramm","en-US":"Bullet chart","es-ES":"Gráfico de viñetas","fr-FR":"Graphique à puces","it-IT":"Grafico bullet","ja-JP":"ブレット チャート","ko-KR":"글머리 기호 차트","nl-NL":"Bulletgrafiek","pl-PL":"Wykres pociskowy","pt-BR":"Quadro comparativo","ru-RU":"Диаграмма Буллет","sv-SE":"Nyansdiagram","tr-TR":"Madde imli grafik","zh-CN":"子弹图","zh-TW":"子彈圖"}},Object_ComboChart:{id:"Object.ComboChart",locale:{"de-DE":"Kombi-Diagramm","en-US":"Combo chart","es-ES":"Gráfico combinado","fr-FR":"Graphique combiné","it-IT":"Grafico combinato","ja-JP":"コンボ チャート","ko-KR":"콤보 차트","nl-NL":"Combinatiegrafiek","pl-PL":"Wykres kombi","pt-BR":"Gráfico de combinação","ru-RU":"Комбинированная диаграмма","sv-SE":"Kombinationsdiagram","tr-TR":"Birleşik grafik","zh-CN":"组合图","zh-TW":"組合圖"}},Object_Container:{id:"Object.Container",locale:{"de-DE":"Sammelbox","en-US":"Container","es-ES":"Contenedor","fr-FR":"Conteneur","it-IT":"Contenitore","ja-JP":"コンテナー","ko-KR":"컨테이너","nl-NL":"Container","pl-PL":"Kontener","pt-BR":"Contêiner","ru-RU":"Контейнер","sv-SE":"Behållare","tr-TR":"Kapsayıcı","zh-CN":"容器","zh-TW":"容器"}},Object_DistributionPlot:{id:"Object.DistributionPlot",locale:{"de-DE":"Verteilungsdiagramm","en-US":"Distribution plot","es-ES":"Diagrama de distribución","fr-FR":"Diagramme de distribution","it-IT":"Grafico di distribuzione","ja-JP":"分布プロット","ko-KR":"분포도","nl-NL":"Verdelingsplot","pl-PL":"Wykres rozkładu","pt-BR":"Gráfico de distribuição","ru-RU":"График распределения","sv-SE":"Fördelningsdiagram","tr-TR":"Dağılım grafiği","zh-CN":"分布图","zh-TW":"分佈圖"}},Object_FilterLabel_All:{id:"Object.FilterLabel.All",locale:{"de-DE":"ALLES","en-US":"ALL","es-ES":"TODOS","fr-FR":"TOUT","it-IT":"TUTTI","ja-JP":"すべて","ko-KR":"모두","nl-NL":"ALLE","pl-PL":"WSZYSTKIE","pt-BR":"TODOS","ru-RU":"ВСЕ","sv-SE":"ALLA","tr-TR":"TÜMÜ","zh-CN":"全部","zh-TW":"全部"}},Object_FilterLabel_Exclude:{id:"Object.FilterLabel.Exclude",locale:{"de-DE":"NICHT","en-US":"NOT","es-ES":"NO","fr-FR":"EXCLURE","it-IT":"NON","ja-JP":"除外","ko-KR":"제외","nl-NL":"NIET","pl-PL":"NIE","pt-BR":"NÃO","ru-RU":"НЕ","sv-SE":"INTE","tr-TR":"DEĞİL","zh-CN":"非","zh-TW":"不是"}},Object_FilterLabel_Unknown:{id:"Object.FilterLabel.Unknown",locale:{"de-DE":"Unbekannt","en-US":"Unknown","es-ES":"Desconocido","fr-FR":"Inconnu","it-IT":"Sconosciuto","ja-JP":"不明","ko-KR":"알 수 없음","nl-NL":"Onbekend","pl-PL":"Nieznany","pt-BR":"Desconhecido","ru-RU":"Неизвестный","sv-SE":"Okänt","tr-TR":"Bilinmiyor","zh-CN":"未知","zh-TW":"未知"}},Object_FilterPane:{id:"Object.FilterPane",locale:{"de-DE":"Filterfenster","en-US":"Filter pane","es-ES":"Panel de filtrado","fr-FR":"Panneau de filtre","it-IT":"Casella di filtro","ja-JP":"フィルター パネル","ko-KR":"필터 창","nl-NL":"Filtervak","pl-PL":"Panel filtrowania","pt-BR":"Painel de filtro","ru-RU":"Фильтр","sv-SE":"Filterruta","tr-TR":"Filtre bölmesi","zh-CN":"筛选器窗格","zh-TW":"篩選窗格"}},Object_FiltersApplied:{id:"Object.FiltersApplied",locale:{"de-DE":"Angewendete Filter:","en-US":"Filters applied:","es-ES":"Filtros aplicados:","fr-FR":"Filtres appliqués :","it-IT":"Filtri applicati:","ja-JP":"適用されているフィルター:","ko-KR":"적용된 필터:","nl-NL":"Toegepaste filters:","pl-PL":"Zastosowane filtry:","pt-BR":"Filtros aplicados:","ru-RU":"Примененные фильтры:","sv-SE":"Använda filter:","tr-TR":"Uygulanan filtreler:","zh-CN":"应用的筛选器:","zh-TW":"篩選器已套用:"}},Object_FunnelChart:{id:"Object.FunnelChart",locale:{"de-DE":"Trichterdiagramm","en-US":"Funnel chart","es-ES":"Gráfico de embudo","fr-FR":"Graphique en entonnoir","it-IT":"Grafico a imbuto","ja-JP":"ファネル チャート","ko-KR":"깔때기형 차트","nl-NL":"Trechterdiagram","pl-PL":"Wykres lejkowy","pt-BR":"Gráfico de funil","ru-RU":"Диаграмма Воронка","sv-SE":"Trattdiagram","tr-TR":"Huni grafik","zh-CN":"漏斗图","zh-TW":"漏斗圖"}},Object_Gauge:{id:"Object.Gauge",locale:{"de-DE":"Messzeiger","en-US":"Gauge","es-ES":"Indicador","fr-FR":"Jauge","it-IT":"Misuratore","ja-JP":"ゲージ","ko-KR":"게이지","nl-NL":"Meter","pl-PL":"Miernik","pt-BR":"Mostrador","ru-RU":"Датчик","sv-SE":"Mätare","tr-TR":"Gösterge","zh-CN":"仪表","zh-TW":"量表"}},Object_GridChart:{id:"Object.GridChart",locale:{"de-DE":"Matrixdiagramm","en-US":"Grid chart","es-ES":"Gráfico de cuadrícula","fr-FR":"Bulles","it-IT":"Grafico a griglia","ja-JP":"グリッド チャート","ko-KR":"그리드형 차트","nl-NL":"Rasterdiagram","pl-PL":"Wykres siatkowy","pt-BR":"Gráfico de grade","ru-RU":"Сетчатая диаграмма","sv-SE":"Rutnätsdiagram","tr-TR":"Izgara grafik","zh-CN":"网格图","zh-TW":"格線圖"}},Object_Histogram:{id:"Object.Histogram",locale:{"de-DE":"Histogramm","en-US":"Histogram","es-ES":"Histograma","fr-FR":"Histogramme","it-IT":"Istogramma","ja-JP":"ヒストグラム","ko-KR":"히스토그램","nl-NL":"Histogram","pl-PL":"Histogram","pt-BR":"Histograma","ru-RU":"Гистограмма","sv-SE":"Histogram","tr-TR":"Histogram","zh-CN":"直方图","zh-TW":"色階分佈圖"}},Object_Kpi:{id:"Object.Kpi",locale:{"de-DE":"KPI","en-US":"KPI","es-ES":"KPI","fr-FR":"ICP","it-IT":"KPI","ja-JP":"KPI","ko-KR":"KPI","nl-NL":"KPI","pl-PL":"Wskaźnik KPI","pt-BR":"KPI","ru-RU":"Ключевой показатель эффективности","sv-SE":"KPI (nyckeltal)","tr-TR":"KPI","zh-CN":"KPI","zh-TW":"KPI"}},Object_LayoutContainer:{id:"Object.LayoutContainer",locale:{"de-DE":"Layout-Sammelbox","en-US":"Layout container","es-ES":"Contenedor de diseño","fr-FR":"Conteneur de disposition","it-IT":"Contenitore layout","ja-JP":"レイアウト コンテナ","ko-KR":"레이아웃 컨테이너","nl-NL":"Lay-outcontainer","pl-PL":"Kontener układu","pt-BR":"Contêiner de layout","ru-RU":"Контейнер макета","sv-SE":"Layoutbehållare","tr-TR":"Düzen kapsayıcısı","zh-CN":"布局容器","zh-TW":"版面配置容器"}},Object_LineChart:{id:"Object.LineChart",locale:{"de-DE":"Liniendiagramm","en-US":"Line chart","es-ES":"Gráfico de líneas","fr-FR":"Graphique en courbes","it-IT":"Grafico lineare","ja-JP":"折れ線グラフ","ko-KR":"꺾은선형 차트","nl-NL":"Lijndiagram","pl-PL":"Wykres liniowy","pt-BR":"Gráfico de linhas","ru-RU":"Линейный график","sv-SE":"Linjediagram","tr-TR":"Çizgi grafik","zh-CN":"折线图","zh-TW":"折線圖"}},Object_Listbox:{id:"Object.Listbox",locale:{"de-DE":"Listbox","en-US":"List box","es-ES":"Cuadro de lista","fr-FR":"Liste de sélection","it-IT":"Casella di elenco","ja-JP":"リスト ボックス","ko-KR":"목록 상자","nl-NL":"Keuzelijst","pl-PL":"Lista wartości","pt-BR":"Lista","ru-RU":"Список","sv-SE":"Listruta","tr-TR":"Liste kutusu","zh-CN":"列表框","zh-TW":"清單方塊"}},Object_Listbox_Alternative:{id:"Object.Listbox.Alternative",locale:{"de-DE":"Alternative","en-US":"Alternative","es-ES":"Alternativo","fr-FR":"Alternatif","it-IT":"Alternativo","ja-JP":"代替","ko-KR":"대체 항목","nl-NL":"Alternatief","pl-PL":"Alternatywne","pt-BR":"Alternativo","ru-RU":"Альтернативные","sv-SE":"Alternativ","tr-TR":"Alternatif","zh-CN":"可选","zh-TW":"替代選項"}},Object_Listbox_Excluded:{id:"Object.Listbox.Excluded",locale:{"de-DE":"Ausgeschlossen","en-US":"Excluded","es-ES":"Excluido","fr-FR":"Exclu","it-IT":"Escluso","ja-JP":"除外済み","ko-KR":"제외됨","nl-NL":"Uitgesloten","pl-PL":"Wykluczone","pt-BR":"Excluído","ru-RU":"Исключенные","sv-SE":"Uteslutet","tr-TR":"Hariç tutulan","zh-CN":"已排除","zh-TW":"已排除"}},Object_Listbox_ExcludedLock:{id:"Object.Listbox.ExcludedLock",locale:{"de-DE":"Ausgeschlossene Sperre","en-US":"Excluded lock","es-ES":"Bloqueo excluido","fr-FR":"Exclu verrouillé","it-IT":"Blocco escluso","ja-JP":"除外されたロック","ko-KR":"제외된 잠금","nl-NL":"Uitsluitingsvergrendeling","pl-PL":"Wykluczone zablokowane","pt-BR":"Bloqueado excluído","ru-RU":"Блокировать исключенные элементы","sv-SE":"Uteslutet låst","tr-TR":"Hariç tutulan kilit","zh-CN":"已排除锁定","zh-TW":"已排除鎖定"}},Object_Listbox_Locked:{id:"Object.Listbox.Locked",locale:{"de-DE":"Gesperrt","en-US":"Locked","es-ES":"Bloqueado","fr-FR":"Verrouillé","it-IT":"Bloccato","ja-JP":"ロック済み","ko-KR":"잠김","nl-NL":"Vergrendeld","pl-PL":"Zablokowane","pt-BR":"Bloqueado","ru-RU":"Заблокированные","sv-SE":"Låst","tr-TR":"Kilitli","zh-CN":"已锁定","zh-TW":"已鎖定"}},Object_Listbox_Optional:{id:"Object.Listbox.Optional",locale:{"de-DE":"Optional","en-US":"Optional","es-ES":"Opcional","fr-FR":"Facultatif","it-IT":"Opzionale","ja-JP":"オプション","ko-KR":"선택 사항","nl-NL":"Optioneel","pl-PL":"Opcjonalne","pt-BR":"Opcional","ru-RU":"Дополнительные","sv-SE":"Valfritt","tr-TR":"İsteğe bağlı","zh-CN":"可选","zh-TW":"選用"}},Object_Listbox_Selected:{id:"Object.Listbox.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çilen","zh-CN":"已选择","zh-TW":"已選取"}},Object_Listbox_SelectedExcluded:{id:"Object.Listbox.SelectedExcluded",locale:{"de-DE":"Ausgeschlossen ausgewählt","en-US":"Selected excluded","es-ES":"Seleccionado excluido","fr-FR":"Sélectionné exclu","it-IT":"Selezionato escluso","ja-JP":"選択された除外値","ko-KR":"제외 항목 선택됨","nl-NL":"Geselecteerde uitgesloten","pl-PL":"Wybrane wykluczone","pt-BR":"Excluído selecionado","ru-RU":"Выбранные исключенные элементы","sv-SE":"Urval uteslutet","tr-TR":"Seçili hariç tutulan","zh-CN":"已排除选择","zh-TW":"已選取排除值"}},Object_Map:{id:"Object.Map",locale:{"de-DE":"Karte","en-US":"Map","es-ES":"Mapa","fr-FR":"Carte","it-IT":"Mappa","ja-JP":"マップ","ko-KR":"맵","nl-NL":"Kaart","pl-PL":"Mapa","pt-BR":"Mapa","ru-RU":"Карта","sv-SE":"Karta","tr-TR":"Harita","zh-CN":"映射","zh-TW":"地圖"}},Object_MekkoChart:{id:"Object.MekkoChart",locale:{"de-DE":"Marimekko-Diagramm","en-US":"Mekko chart","es-ES":"Gráfico Mekko","fr-FR":"Graphique Mekko","it-IT":"Grafico Mekko","ja-JP":"メッコ チャート","ko-KR":"메코 차트","nl-NL":"Mekko-diagram","pl-PL":"Wykres Mekko","pt-BR":"Gráfico Mekko","ru-RU":"Диаграмма Мекко","sv-SE":"Mosaikdiagram","tr-TR":"Mekko grafiği","zh-CN":"玛丽麦高图","zh-TW":"Mekko 圖"}},Object_NavMenu:{id:"Object.NavMenu",locale:{"de-DE":"Navigationsmenü","en-US":"Navigation menu","es-ES":"Menú de navegación","fr-FR":"Menu de navigation","it-IT":"Menu di navigazione","ja-JP":"ナビゲーション メニュー","ko-KR":"탐색 메뉴","nl-NL":"Navigatiemenu","pl-PL":"Menu nawigacji","pt-BR":"Menu de navegação","ru-RU":"Меню навигации","sv-SE":"Navigationsmeny","tr-TR":"Gezinti menüsü","zh-CN":"导航菜单","zh-TW":"導覽功能表"}},Object_NlgChart:{id:"Object.NlgChart",locale:{"de-DE":"NL-Einblicke","en-US":"NL insights","es-ES":"Información en LN","fr-FR":"Informations analytiques NL","it-IT":"Informazioni strategiche NL","ja-JP":"NL インサイト","ko-KR":"NL 통찰력","nl-NL":"NL-inzichten","pl-PL":"Wnioski w języku naturalnym","pt-BR":"Ideias de NL","ru-RU":"Наблюдения на естественном языке","sv-SE":"Insikter på naturligt språk (NL)","tr-TR":"NL içgörüleri","zh-CN":"NL 见解","zh-TW":"自然語言深入資訊"}},Object_PieChart:{id:"Object.PieChart",locale:{"de-DE":"Kreisdiagramm","en-US":"Pie chart","es-ES":"Gráfico de tarta","fr-FR":"Graphique en secteurs","it-IT":"Grafico a torta","ja-JP":"円グラフ","ko-KR":"원형 차트","nl-NL":"Cirkeldiagram","pl-PL":"Wykres kołowy","pt-BR":"Gráfico de pizza","ru-RU":"Круговая диаграмма","sv-SE":"Cirkeldiagram","tr-TR":"Pasta grafik","zh-CN":"饼图","zh-TW":"圓形圖"}},Object_PivotTable:{id:"Object.PivotTable",locale:{"de-DE":"Pivottabelle","en-US":"Pivot table","es-ES":"Tabla dinámica","fr-FR":"Tableau croisé dynamique","it-IT":"Tabella pivot","ja-JP":"ピボット テーブル","ko-KR":"피벗 테이블","nl-NL":"Draaitabel","pl-PL":"Tabela przestawna","pt-BR":"Tabela dinâmica","ru-RU":"Сводная таблица","sv-SE":"Pivottabell","tr-TR":"Pivot tablo","zh-CN":"透视表","zh-TW":"樞紐分析表"}},Object_RadarChart:{id:"Object.RadarChart",locale:{"de-DE":"Netzdiagramm","en-US":"Radar chart","es-ES":"Gráfico de radar","fr-FR":"Diagramme en étoile","it-IT":"Grafico a radar","ja-JP":"レーダー チャート","ko-KR":"방사형 차트","nl-NL":"Radardiagram","pl-PL":"Wykres radarowy","pt-BR":"Gráfico de radar","ru-RU":"Диаграмма Радар","sv-SE":"Radardiagram","tr-TR":"Radar grafiği","zh-CN":"雷达图","zh-TW":"雷達圖"}},Object_SankeyChart:{id:"Object.SankeyChart",locale:{"de-DE":"Sankey-Diagramm","en-US":"Sankey chart","es-ES":"Diagrama de Sankey","fr-FR":"Diagramme de Sankey","it-IT":"Diagramma di Sankey","ja-JP":"サンキー グラフ","ko-KR":"Sankey 차트","nl-NL":"Sankey-diagram","pl-PL":"Wykres Sankeya","pt-BR":"Gráfico de Sankey","ru-RU":"Диаграмма Сэнки","sv-SE":"Sankey-diagram","tr-TR":"Sankey grafiği","zh-CN":"桑基图","zh-TW":"桑基圖"}},Object_ScatterPlot:{id:"Object.ScatterPlot",locale:{"de-DE":"Punktdiagramm","en-US":"Scatter plot","es-ES":"Gráfico de dispersión","fr-FR":"Nuage de points","it-IT":"Grafico a dispersione","ja-JP":"散布図","ko-KR":"스캐터 차트","nl-NL":"Spreidingsplot","pl-PL":"Wykres punktowy","pt-BR":"Plotagem de dispersão","ru-RU":"Точечная диаграмма","sv-SE":"Spridningsdiagram","tr-TR":"Dağılım çizimi","zh-CN":"散点图","zh-TW":"散佈圖"}},Object_StraightTable:{id:"Object.StraightTable",locale:{"de-DE":"Tabellendiagramm","en-US":"Straight table","es-ES":"Tabla simple","fr-FR":"Tableau simple","it-IT":"Tabella lineare","ja-JP":"ストレート テーブル","ko-KR":"일반표","nl-NL":"Strakke tabel","pl-PL":"Tabela prosta","pt-BR":"Tabela estática","ru-RU":"Прямая таблица","sv-SE":"Enkel tabell","tr-TR":"Düz tablo","zh-CN":"垂直表","zh-TW":"直表"}},Object_TabContainer:{id:"Object.TabContainer",locale:{"de-DE":"Registerkarten-Container","en-US":"Tab container","es-ES":"Contenedor de pestañas","fr-FR":"Conteneur d'onglets","it-IT":"Contenitore a schede","ja-JP":"タブ コンテナ","ko-KR":"탭 컨테이너","nl-NL":"Tabbladcontainer","pl-PL":"Kontener karty","pt-BR":"Contêiner de guias","ru-RU":"Контейнер вкладок","sv-SE":"Flikbehållare","tr-TR":"Sekme kapsayıcısı","zh-CN":"选项卡容器","zh-TW":"索引標籤容器"}},Object_Table:{id:"Object.Table",locale:{"de-DE":"Tabelle","en-US":"Table","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Table_Deprecated:{id:"Object.Table.Deprecated",locale:{"de-DE":"Tabelle","en-US":"Table ","es-ES":"Tabla","fr-FR":"Table","it-IT":"Tabella","ja-JP":"テーブル","ko-KR":"테이블","nl-NL":"Tabel","pl-PL":"Tabela","pt-BR":"Tabela","ru-RU":"Таблица","sv-SE":"Tabell","tr-TR":"Tablo","zh-CN":"表格","zh-TW":"表格"}},Object_Text:{id:"Object.Text",locale:{"de-DE":"Text","en-US":"Text","es-ES":"Texto","fr-FR":"Texte","it-IT":"Testo","ja-JP":"テキスト","ko-KR":"텍스트","nl-NL":"Tekst","pl-PL":"Tekst","pt-BR":"Texto","ru-RU":"Текст","sv-SE":"Text","tr-TR":"Metin","zh-CN":"文本","zh-TW":"文字"}},Object_TextImage:{id:"Object.TextImage",locale:{"de-DE":"Text und Bild","en-US":"Text & image","es-ES":"Texto e imagen","fr-FR":"Texte et image","it-IT":"Testo e immagine","ja-JP":"テキストと画像","ko-KR":"텍스트 및 이미지","nl-NL":"Tekst en afbeelding","pl-PL":"Tekst i grafika","pt-BR":"Texto e imagem","ru-RU":"Текст и изображение","sv-SE":"Text och bild","tr-TR":"Metin ve resim","zh-CN":"文本和图片","zh-TW":"文字與影像"}},Object_Treemap:{id:"Object.Treemap",locale:{"de-DE":"Baumkarte","en-US":"Treemap","es-ES":"Gráfico de bloques","fr-FR":"Treemap","it-IT":"Mappa ad albero","ja-JP":"ツリーマップ","ko-KR":"트리맵","nl-NL":"Structuuroverzicht","pl-PL":"Mapa drzewa","pt-BR":"Mapa de árvore","ru-RU":"Карта дерева","sv-SE":"Trädkarta","tr-TR":"Ağaç haritası","zh-CN":"树形图","zh-TW":"樹狀圖"}},Object_Update_Active:{id:"Object.Update.Active",locale:{"de-DE":"Laden von Daten","en-US":"Updating data","es-ES":"Cargando datos","fr-FR":"Chargement de données en cours","it-IT":"Caricamento dati in corso","ja-JP":"データのロード中","ko-KR":"데이터 로드 중","nl-NL":"Gegevens worden geladen","pl-PL":"Ładowanie danych","pt-BR":"Carregando dados","ru-RU":"Загрузка данных","sv-SE":"Laddar data","tr-TR":"Veriler yükleniyor","zh-CN":"加载数据","zh-TW":"正在載入資料"}},Object_Update_Cancelled:{id:"Object.Update.Cancelled",locale:{"de-DE":"Datenaktualisierung wurde abgebrochen","en-US":"Data update was cancelled","es-ES":"Se ha cancelado la actualización de datos","fr-FR":"Mise à jour des données annulée","it-IT":"Aggiornamento dati annullato","ja-JP":"データの更新がキャンセルされました","ko-KR":"데이터 업데이트가 취소되었습니다.","nl-NL":"Gegevensupdate is geannuleerd","pl-PL":"Aktualizacja danych została anulowana","pt-BR":"A atualização de dados foi cancelada","ru-RU":"Обновление данных отменено","sv-SE":"Datauppdateringen avbröts.","tr-TR":"Veri güncelleştirme iptal edildi","zh-CN":"数据更新已取消","zh-TW":"資料更新已取消"}},Object_WaterfallChart:{id:"Object.WaterfallChart",locale:{"de-DE":"Wasserfalldiagramm","en-US":"Waterfall chart","es-ES":"Gráfico de cascada","fr-FR":"Graphique en cascade","it-IT":"Grafico a cascata","ja-JP":"ウォーターフォール グラフ","ko-KR":"폭포형 차트","nl-NL":"Watervalgrafiek","pl-PL":"Wykres wodospadowy","pt-BR":"Gráfico em cascata","ru-RU":"Каскадная диаграмма","sv-SE":"Vattenfallsdiagram","tr-TR":"Şelale grafik","zh-CN":"瀑布图","zh-TW":"瀑布圖"}},Retry:{id:"Retry",locale:{"de-DE":"Wiederholen","en-US":"Retry","es-ES":"Intentar de nuevo","fr-FR":"Réessayer","it-IT":"Riprova","ja-JP":"再試行","ko-KR":"다시 시도","nl-NL":"Opnieuw","pl-PL":"Ponów próbę","pt-BR":"Tentar novamente","ru-RU":"Повторить попытку","sv-SE":"Försök igen","tr-TR":"Yeniden dene","zh-CN":"重试","zh-TW":"重試"}},ScreenReader_ManySearchResults:{id:"ScreenReader.ManySearchResults",locale:{"de-DE":"Es sind {0} Ergebnisse verfügbar","en-US":"There are {0} available results","es-ES":"Hay {0} resultados disponibles","fr-FR":"Il existe {0} résultats disponibles.","it-IT":"{0} risultati disponibili","ja-JP":"利用可能な結果が {0} つあります","ko-KR":"{0}개의 결과를 사용할 수 있음","nl-NL":"Er zijn {0} beschikbare resultaten","pl-PL":"Liczba dostępnych wyników: {0}","pt-BR":"Há {0} resultados disponíveis","ru-RU":"Имеются доступные результаты: {0}","sv-SE":"Det finns {0} tillgängliga resultat","tr-TR":"Kullanılabilir {0} sonuç mevcut","zh-CN":"有 {0} 个可用结果","zh-TW":"有 {0} 個可用的結果"}},ScreenReader_ManySelected:{id:"ScreenReader.ManySelected",locale:{"de-DE":"Es sind {0} Werte ausgewählt.","en-US":"There are {0} selected values.","es-ES":"Hay {0} valores seleccionados.","fr-FR":"{0} valeurs sont sélectionnées.","it-IT":"Sono presenti {0} valori selezionati.","ja-JP":"値が {0} 個選択されています。","ko-KR":"{0}개의 값이 선택되었습니다.","nl-NL":"Er zijn {0} geselecteerde waarden.","pl-PL":"Wybranych wartości: {0}","pt-BR":"Há {0} valores selecionados.","ru-RU":"Выбраны {0} значений(я).","sv-SE":"{0} värden är valda.","tr-TR":"Seçilen {0} değer var.","zh-CN":"存在 {0} 个已选择的值。","zh-TW":"有 {0} 個選取的值。"}},ScreenReader_OneSearchResult:{id:"ScreenReader.OneSearchResult",locale:{"de-DE":"Es ist ein Ergebnis verfügbar","en-US":"There is one available result","es-ES":"Hay un resultado disponible","fr-FR":"Il existe un résultat disponible.","it-IT":"Un risultato disponibile","ja-JP":"利用可能な結果が 1 つあります","ko-KR":"하나의 결과를 사용할 수 있음","nl-NL":"Er is één beschikbaar resultaat","pl-PL":"Jest jeden dostępny wynik","pt-BR":"Há um resultado disponível","ru-RU":"Имеется один доступный результат","sv-SE":"Det finns ett tillgängligt resultat","tr-TR":"Kullanılabilir bir sonuç mevcut","zh-CN":"有一个可用结果","zh-TW":"有一個可用的結果"}},ScreenReader_OneSelected:{id:"ScreenReader.OneSelected",locale:{"de-DE":"Es ist ein Wert ausgewählt.","en-US":"There is one selected value.","es-ES":"Hay un valor seleccionado.","fr-FR":"Une valeur est sélectionnée.","it-IT":"È presente un valore selezionato.","ja-JP":"値が 1 つ選択されています。","ko-KR":"하나의 값이 선택되었습니다.","nl-NL":"Er is één waarde geselecteerd.","pl-PL":"Istnieje jedna wybrana wartość.","pt-BR":"Há um valor selecionado.","ru-RU":"Выбрано одно значение.","sv-SE":"Ett värde är valt.","tr-TR":"Seçilen bir değer var.","zh-CN":"存在一个已选择的值。","zh-TW":"有一個選取的值。"}},ScreenReader_ZeroSelected:{id:"ScreenReader.ZeroSelected",locale:{"de-DE":"Es sind keine Werte ausgewählt.","en-US":"No values are selected.","es-ES":"No se ha seleccionado ningún valor.","fr-FR":"Aucune valeur n'est sélectionnée.","it-IT":"Nessun valore selezionato.","ja-JP":"値が選択されていません。","ko-KR":"선택된 값이 없습니다.","nl-NL":"Geen waarden geselecteerd.","pl-PL":"Brak wybranych wartości.","pt-BR":"Nenhum valor selecionado.","ru-RU":"Значения не выбраны.","sv-SE":"Inga värden är valda.","tr-TR":"Seçilen değer yok.","zh-CN":"未选择值。","zh-TW":"沒有選取任何值。"}},Selection_Cancel:{id:"Selection.Cancel",locale:{"de-DE":"Auswahl abbrechen","en-US":"Cancel selection","es-ES":"Cancelar selección","fr-FR":"Annuler la sélection","it-IT":"Annulla selezione","ja-JP":"選択のキャンセル","ko-KR":"선택 취소","nl-NL":"Selectie annuleren","pl-PL":"Anuluj selekcję","pt-BR":"Cancelar seleção","ru-RU":"Отменить выборку","sv-SE":"Avbryt urval","tr-TR":"Seçimi iptal et","zh-CN":"取消选择","zh-TW":"取消選取"}},Selection_Clear:{id:"Selection.Clear",locale:{"de-DE":"Auswahl löschen","en-US":"Clear selection","es-ES":"Borrar selección","fr-FR":"Effacer la sélection","it-IT":"Cancella selezione","ja-JP":"選択をクリア","ko-KR":"선택 해제","nl-NL":"Selectie wissen","pl-PL":"Wyczyść selekcję","pt-BR":"Limpar seleção","ru-RU":"Очистить выбор","sv-SE":"Rensa urval","tr-TR":"Seçimi temizle","zh-CN":"清除选择","zh-TW":"清除選項"}},Selection_ClearAll:{id:"Selection.ClearAll",locale:{"de-DE":"Alle Auswahlen löschen","en-US":"Clear all selections","es-ES":"Borrar todas las selecciones","fr-FR":"Effacer toutes les sélections","it-IT":"Cancella tutte le selezioni","ja-JP":"選択をすべてクリアする","ko-KR":"모든 선택 해제","nl-NL":"Alle selecties wissen","pl-PL":"Wyczyść wszystkie selekcje","pt-BR":"Limpar todas as seleções","ru-RU":"Очистить от всех выборок","sv-SE":"Radera alla urval","tr-TR":"Tüm seçimleri temizle","zh-CN":"清除所有选择项","zh-TW":"清除所有選項"}},Selection_ClearAllStates:{id:"Selection.ClearAllStates",locale:{"de-DE":"Alle Status löschen","en-US":"Clear all states","es-ES":"Borrar todos los estados","fr-FR":"Effacer tous les états","it-IT":"Cancella tutti gli stati","ja-JP":"全ステートをクリア","ko-KR":"모든 상태 지우기","nl-NL":"Alle states wissen","pl-PL":"Wyczyść wszystkie stany","pt-BR":"Limpar todos os estados","ru-RU":"Очистить все состояния","sv-SE":"Rensa alla tillstånd","tr-TR":"Tüm durumları temizle","zh-CN":"清除所有状态","zh-TW":"清除所有狀態"}},Selection_Confirm:{id:"Selection.Confirm",locale:{"de-DE":"Auswahl bestätigen","en-US":"Confirm selection","es-ES":"Confirmar selección","fr-FR":"Confirmer la sélection","it-IT":"Conferma selezione","ja-JP":"選択の確認","ko-KR":"선택 확인","nl-NL":"Selectie bevestigen","pl-PL":"Potwierdź selekcję","pt-BR":"Confirmar seleção","ru-RU":"Подтвердить выборку","sv-SE":"Bekräfta urval","tr-TR":"Seçimi onayla","zh-CN":"确认选择","zh-TW":"確認選取"}},Selection_Menu:{id:"Selection.Menu",locale:{"de-DE":"Auswahlmenü","en-US":"Selection menu","es-ES":"Menú de selección","fr-FR":"Menu Sélection","it-IT":"Menu Selezione","ja-JP":"選択メニュー","ko-KR":"선택 메뉴","nl-NL":"Selectiemenu","pl-PL":"Menu selekcji","pt-BR":"Menu de seleção","ru-RU":'Меню "Выборка"',"sv-SE":"Urvalsmeny","tr-TR":"Seçim menüsü","zh-CN":"选择菜单","zh-TW":"選項功能表"}},Selection_SelectAll:{id:"Selection.SelectAll",locale:{"de-DE":"Alle auswählen","en-US":"Select all","es-ES":"Seleccionar todo","fr-FR":"Sélectionner tout","it-IT":"Seleziona tutto","ja-JP":"すべて選択","ko-KR":"모두 선택","nl-NL":"Alles selecteren","pl-PL":"Wybierz wszystko","pt-BR":"Selecionar todos","ru-RU":"Выбрать все","sv-SE":"Välj alla","tr-TR":"Tümünü seç","zh-CN":"全选","zh-TW":"全選"}},Selection_SelectAlternative:{id:"Selection.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":"選取替代選項"}},Selection_SelectExcluded:{id:"Selection.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ído","ru-RU":"Выбрать исключенные","sv-SE":"Välj uteslutna","tr-TR":"Hariç tutulanı seç","zh-CN":"选择排除项","zh-TW":"選取排除值"}},Selection_SelectPossible:{id:"Selection.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ível","ru-RU":"Выбрать возможные","sv-SE":"Välj möjliga","tr-TR":"Olasıyı seç","zh-CN":"选择可能值","zh-TW":"選取可能值"}},SelectionToolbar_ClickToLock:{id:"SelectionToolbar.ClickToLock",locale:{"de-DE":"Klicken zum Sperren","en-US":"Click to lock","es-ES":"Haga clic para bloquearla","fr-FR":"Cliquez pour verrouiller","it-IT":"Fare clic per bloccare","ja-JP":"クリックしてロック","ko-KR":"클릭하여 잠금","nl-NL":"Klik om te vergrendelen","pl-PL":"Kliknij, aby zablokować","pt-BR":"Clique para bloquear","ru-RU":"Щелкните, чтобы заблокировать","sv-SE":"Klicka för att låsa","tr-TR":"Kilitlemek için tıklayın","zh-CN":"单击以锁定","zh-TW":"按一下以鎖定"}},SelectionToolbar_ClickToUnlock:{id:"SelectionToolbar.ClickToUnlock",locale:{"de-DE":"Zum Entsperren klicken","en-US":"Click to unlock","es-ES":"Haga clic para desbloquearla","fr-FR":"Cliquez pour déverrouiller","it-IT":"Fare clic per sbloccare","ja-JP":"クリックしてロック解除","ko-KR":"잠금을 해제하려면 클릭하십시오.","nl-NL":"Klik om te ontgrendelen","pl-PL":"Aby odblokować, kliknij","pt-BR":"Clique para destravar","ru-RU":"Щелкните, чтобы разблокировать","sv-SE":"Klicka för att låsa upp","tr-TR":"Kilidi kaldırmak için tıklayın","zh-CN":"单击以解锁","zh-TW":"按一下以解除鎖定"}},Visualization_Incomplete:{id:"Visualization.Incomplete",locale:{"de-DE":"Unvollständige Visualisierung","en-US":"Incomplete visualization","es-ES":"Visualización incompleta","fr-FR":"Visualisation incomplète","it-IT":"Visualizzazione incompleta","ja-JP":"未完了のビジュアライゼーション","ko-KR":"완료되지 않은 시각화","nl-NL":"Onvolledige visualisatie","pl-PL":"Niekompletna wizualizacja","pt-BR":"Visualização incompleta","ru-RU":"Незавершенная визуализация","sv-SE":"Ofullständig visualisering","tr-TR":"Tamamlanmamış görselleştirme","zh-CN":"不完整的可视化","zh-TW":"視覺化未完成"}},Visualization_Incomplete_Dimensions:{id:"Visualization.Incomplete.Dimensions",locale:{"de-DE":"{0} von {1} Dimensionen","en-US":"{0} of {1} dimensions","es-ES":"{0} de {1} dimensiones","fr-FR":"{0} dimensions sur {1}","it-IT":"{0} di {1} dimensioni","ja-JP":"{0} / {1} 軸","ko-KR":"{1} 차원의 {0}","nl-NL":"{0} van {1} dimensies","pl-PL":"{0} z {1} wymiarów","pt-BR":"{0} de {1} dimensões","ru-RU":"Измерения: {0} из {1}","sv-SE":"{0} av {1} dimensioner","tr-TR":"{0}/{1} boyut","zh-CN":"{0} / {1} 个维度","zh-TW":"{1} 個維度中的 {0} 個"}},Visualization_Incomplete_Measures:{id:"Visualization.Incomplete.Measures",locale:{"de-DE":"{0} von {1} Kennzahlen","en-US":"{0} of {1} measures","es-ES":"{0} de {1} medidas","fr-FR":"{0} mesures sur {1}","it-IT":"{0} di {1} misure","ja-JP":"{0} / {1} メジャー","ko-KR":"{1} 측정값의 {0}","nl-NL":"{0} van {1} metingen","pl-PL":"{0} z {1} miar","pt-BR":"{0} de {1} medidas","ru-RU":"Меры: {0} из {1}","sv-SE":"{0} av {1} mått","tr-TR":"{0}/{1} hesaplama","zh-CN":"{0} / {1} 个度量","zh-TW":"{1} 個量值中的 {0} 個"}},Visualization_Invalid_Dimension:{id:"Visualization.Invalid.Dimension",locale:{"de-DE":"Ungültige Dimension","en-US":"Invalid dimension","es-ES":"Dimensión no válida","fr-FR":"Dimension non valide","it-IT":"Dimensione non valida","ja-JP":"無効な軸です","ko-KR":"잘못된 차원","nl-NL":"Ongeldige dimensie","pl-PL":"Nieprawidłowy wymiar","pt-BR":"Dimensão inválida","ru-RU":"Недопустимое измерение","sv-SE":"Ogiltig dimension","tr-TR":"Geçersiz boyut","zh-CN":"无效维度","zh-TW":"維度無效"}},Visualization_Invalid_Measure:{id:"Visualization.Invalid.Measure",locale:{"de-DE":"Ungültige Kennzahl","en-US":"Invalid measure","es-ES":"Medida no válida","fr-FR":"Mesure non valide","it-IT":"Misura non valida","ja-JP":"無効なメジャーです","ko-KR":"잘못된 측정값","nl-NL":"Ongeldige meting","pl-PL":"Nieprawidłowa miara","pt-BR":"Medida inválida","ru-RU":"Недопустимая мера","sv-SE":"Ogiltigt mått","tr-TR":"Geçersiz hesaplama","zh-CN":"无效度量项","zh-TW":"量值無效"}},Visualization_LayoutError:{id:"Visualization.LayoutError",locale:{"de-DE":"Fehler","en-US":"Error","es-ES":"Error","fr-FR":"Erreur","it-IT":"Errore","ja-JP":"エラー","ko-KR":"오류","nl-NL":"Fout","pl-PL":"Błąd","pt-BR":"Erro","ru-RU":"Ошибка","sv-SE":"Fel","tr-TR":"Hata","zh-CN":"错误","zh-TW":"錯誤"}},Visualization_UnfulfilledCalculationCondition:{id:"Visualization.UnfulfilledCalculationCondition",locale:{"de-DE":"Die Berechnungsbedingung ist nicht erfüllt","en-US":"The calculation condition is not fulfilled","es-ES":"La condición de cálculo no se cumple","fr-FR":"Condition de calcul non remplie","it-IT":"La condizione di calcolo non è soddisfatta","ja-JP":"演算実行条件が満たされていません","ko-KR":"계산 조건이 충족되지 않았습니다.","nl-NL":"Er is niet aan de berekeningsvoorwaarde voldaan","pl-PL":"Warunek obliczenia nie jest spełniony","pt-BR":"A condição de cálculo não foi atendida","ru-RU":"Условие вычисления не выполнено","sv-SE":"Beräkningsvillkoret uppfylls inte","tr-TR":"Hesaplama koşulu yerine getirilmedi","zh-CN":"不满足计算条件","zh-TW":"不符計算條件"}}};function O(e){const t=L({initial:e});return Object.keys(T).forEach(e=>{t.translator.add(T[e])}),{translator:t.translator}}var I=function(){if(P)return R;P=1;var e={};function t(){t.init.call(this)}return e.isObject=function(e){return"object"==typeof e&&null!==e},e.isNumber=function(e){return"number"==typeof e},e.isUndefined=function(e){return void 0===e},e.isFunction=function(e){return"function"==typeof e},R=t,t.EventEmitter=t,t.prototype._events=void 0,t.prototype._maxListeners=void 0,t.defaultMaxListeners=10,t.init=function(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0},t.prototype.setMaxListeners=function(t){if(!e.isNumber(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},t.prototype.emit=function(t){var n,r,o,i,a,l;if(this._events||(this._events={}),"error"===t&&!this._events.error)throw(n=arguments[1])instanceof Error?n:Error('Uncaught, unspecified "error" event.');if(r=this._events[t],e.isUndefined(r))return!1;if(e.isFunction(r))switch(arguments.length){case 1:r.call(this);break;case 2:r.call(this,arguments[1]);break;case 3:r.call(this,arguments[1],arguments[2]);break;default:for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];r.apply(this,i)}else if(e.isObject(r)){for(o=arguments.length,i=new Array(o-1),a=1;a<o;a++)i[a-1]=arguments[a];for(o=(l=r.slice()).length,a=0;a<o;a++)l[a].apply(this,i)}return!0},t.prototype.addListener=function(n,r){var o;if(!e.isFunction(r))throw TypeError("listener must be a function");(this._events||(this._events={}),this._events.newListener&&this.emit("newListener",n,e.isFunction(r.listener)?r.listener:r),this._events[n]?e.isObject(this._events[n])?this._events[n].push(r):this._events[n]=[this._events[n],r]:this._events[n]=r,e.isObject(this._events[n])&&!this._events[n].warned)&&((o=e.isUndefined(this._maxListeners)?t.defaultMaxListeners:this._maxListeners)&&o>0&&this._events[n].length>o&&(this._events[n].warned=!0,e.isFunction(console.error)&&console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[n].length),e.isFunction(console.trace)&&console.trace()));return this},t.prototype.on=t.prototype.addListener,t.prototype.once=function(t,n){if(!e.isFunction(n))throw TypeError("listener must be a function");var r=!1;function o(){this.removeListener(t,o),r||(r=!0,n.apply(this,arguments))}return o.listener=n,this.on(t,o),this},t.prototype.removeListener=function(t,n){var r,o,i,a;if(!e.isFunction(n))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(i=(r=this._events[t]).length,o=-1,r===n||e.isFunction(r.listener)&&r.listener===n)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,n);else if(e.isObject(r)){for(a=i;a-- >0;)if(r[a]===n||r[a].listener&&r[a].listener===n){o=a;break}if(o<0)return this;1===r.length?(r.length=0,delete this._events[t]):r.splice(o,1),this._events.removeListener&&this.emit("removeListener",t,n)}return this},t.prototype.removeAllListeners=function(t){var n,r;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(n in this._events)"removeListener"!==n&&this.removeAllListeners(n);return this.removeAllListeners("removeListener"),this._events={},this}if(r=this._events[t],e.isFunction(r))this.removeListener(t,r);else if(Array.isArray(r))for(;r.length;)this.removeListener(t,r[r.length-1]);return delete this._events[t],this},t.prototype.listeners=function(t){return this._events&&this._events[t]?e.isFunction(this._events[t])?[this._events[t]]:this._events[t].slice():[]},t.listenerCount=function(t,n){return t._events&&t._events[n]?e.isFunction(t._events[n])?1:t._events[n].length:0},R}(),M=r(I);function D(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function _(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function N(){}var q,j,A=.7,z=1/A,$="\\s*([+-]?\\d+)\\s*",F="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",B="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",W=/^#([0-9a-f]{3,8})$/,H=new RegExp(`^rgb\\(${$},${$},${$}\\)$`),U=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),V=new RegExp(`^rgba\\(${$},${$},${$},${F}\\)$`),G=new RegExp(`^rgba\\(${B},${B},${B},${F}\\)$`),K=new RegExp(`^hsl\\(${F},${B},${B}\\)$`),X=new RegExp(`^hsla\\(${F},${B},${B},${F}\\)$`),J={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 Z(){return this.rgb().formatHex()}function Q(){return this.rgb().formatRgb()}function Y(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=W.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ee(t):3===n?new re(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?te(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?te(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=H.exec(e))?new re(t[1],t[2],t[3],1):(t=U.exec(e))?new re(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=V.exec(e))?te(t[1],t[2],t[3],t[4]):(t=G.exec(e))?te(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=K.exec(e))?ce(t[1],t[2]/100,t[3]/100,1):(t=X.exec(e))?ce(t[1],t[2]/100,t[3]/100,t[4]):J.hasOwnProperty(e)?ee(J[e]):"transparent"===e?new re(NaN,NaN,NaN,0):null}function ee(e){return new re(e>>16&255,e>>8&255,255&e,1)}function te(e,t,n,r){return r<=0&&(e=t=n=NaN),new re(e,t,n,r)}function ne(e,t,n,r){return 1===arguments.length?function(e){return e instanceof N||(e=Y(e)),e?new re((e=e.rgb()).r,e.g,e.b,e.opacity):new re}(e):new re(e,t,n,null==r?1:r)}function re(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function oe(){return`#${se(this.r)}${se(this.g)}${se(this.b)}`}function ie(){const e=ae(this.opacity);return`${1===e?"rgb(":"rgba("}${le(this.r)}, ${le(this.g)}, ${le(this.b)}${1===e?")":`, ${e})`}`}function ae(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function le(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function se(e){return((e=le(e))<16?"0":"")+e.toString(16)}function ce(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new de(e,t,n,r)}function ue(e){if(e instanceof de)return new de(e.h,e.s,e.l,e.opacity);if(e instanceof N||(e=Y(e)),!e)return new de;if(e instanceof de)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 de(a,l,s,e.opacity)}function de(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function pe(e){return(e=(e||0)%360)<0?e+360:e}function fe(e){return Math.max(0,Math.min(1,e||0))}function he(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}D(N,Y,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Z,formatHex:Z,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return ue(this).formatHsl()},formatRgb:Q,toString:Q}),D(re,ne,_(N,{brighter(e){return e=null==e?z:Math.pow(z,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?A:Math.pow(A,e),new re(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new re(le(this.r),le(this.g),le(this.b),ae(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:oe,formatHex:oe,formatHex8:function(){return`#${se(this.r)}${se(this.g)}${se(this.b)}${se(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:ie,toString:ie})),D(de,function(e,t,n,r){return 1===arguments.length?ue(e):new de(e,t,n,null==r?1:r)},_(N,{brighter(e){return e=null==e?z:Math.pow(z,e),new de(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?A:Math.pow(A,e),new de(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 re(he(e>=240?e-240:e+120,o,r),he(e,o,r),he(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new de(pe(this.h),fe(this.s),fe(this.l),ae(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=ae(this.opacity);return`${1===e?"hsl(":"hsla("}${pe(this.h)}, ${100*fe(this.s)}%, ${100*fe(this.l)}%${1===e?")":`, ${e})`}`}}));var me=function(){if(j)return q;j=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return q=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},q}(),ge=r(me),be={fontSize:"12px",fontFamily:"'Source Sans Pro', 'Arial', 'sans-serif'",backgroundColor:"transparent",dataColors:{primaryColor:"#26a0a7",othersColor:"#a5a5a5",errorColor:"#ff4444",nullColor:"#d2d2d2"},object:{title:{main:{color:"@B50",fontSize:"15px",backgroundColor:"transparent"},subTitle:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"},footer:{color:"@B50",fontSize:"12px",backgroundColor:"transparent"}}},scales:[{name:"Sequential Gradient",translation:"properties.colorScheme.sequential",type:"gradient",propertyValue:"sg",scale:["#26a0a7","#c7ea8b"]},{name:"Sequential Classes",translation:"properties.colorScheme.sequentialC",propertyValue:"sc",type:"class",scale:["#26a0a7","#c7ea8b"]},{name:"Diverging gradient",translation:"properties.colorScheme.diverging",propertyValue:"dg",type:"gradient",scale:["#26a0a7","#c3ea8c","#ec983d"]},{name:"Diverging Classes",translation:"properties.colorScheme.divergingC",propertyValue:"dc",type:"class",scale:["#26a0a7","#c3ea8c","#ec983d"]}],palettes:{data:[{name:"12 Colors",translation:"properties.colorNumberOfColors.12",propertyValue:"12",type:"pyramid",scale:[["#26A0A7"],["#26A0A7","#EC983D"],["#26A0A7","#CBE989","#EC983D"],["#26A0A7","#79D69F","#F9EC86","#EC983D"],["#26A0A7","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#EC983D","#D76C6C"],["#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C"],["#138185","#26A0A7","#65D3DA","#79D69F","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"],["#138185","#26A0A7","#65D3DA","#79D69F","#70BA6E","#CBE989","#EBF898","#F9EC86","#FAD144","#EC983D","#D76C6C","#A54343"]]}],ui:[{name:"Palette",colors:["#b0afae","#7b7a78","#a54343","#d76c6c","#ec983d","#ecc43d","#f9ec86","#cbe989","#70ba6e","#578b60","#79d69f","#26a0a7","#138185","#65d3da","#ffffff","#000000"]}]}},ye={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"light",color:"@B35"},ve={_variables:{"@B20":"#333333","@B35":"#595959","@B45":"#737373","@B50":"#808080","@B60":"#999999","@B80":"#cccccc","@B90":"#e6e6e6","@B98":"#fbfbfb","@B100":"#ffffff","@H1":"24px","@H2":"18px","@H3":"14px","@H4":"13px","@H5":"12px","@H6":"10px"},type:"dark",color:"@B98",object:{listBox:{backgroundColor:"@B20",title:{main:{color:"@B98",fontSize:"14px",fontWeight:"bold"}},content:{color:"#@B98",fontSize:"12px"}}}},Se={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const xe={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:255,g:255,b:255,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},we=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,ke=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Ce=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Ee=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,Le=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Re=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Pe}=Math,{round:Te}=Math;class Oe{constructor(...e){let t,n,r,o,i,a,l,s,c,u,d,p,f=0,h=0,m=0,g=1;if(this._invalid=!1,e[0]instanceof Oe)f=e[0]._r,h=e[0]._g,m=e[0]._b,g=e[0]._a,this._invalid=e[0]._invalid;else if(e.length<3)if("string"==typeof e[0])if(p=e[0],d=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10);else if(d=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(p))f=parseInt(d[1],10),h=parseInt(d[2],10),m=parseInt(d[3],10),g=parseFloat(d[4]);else if(d=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(p))g=parseInt(d[1],10)/255,f=parseInt(d[2],10),h=parseInt(d[3],10),m=parseInt(d[4],10);else if(d=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(p))f=parseInt(d[1],16),h=parseInt(d[2],16),m=parseInt(d[3],16),g=1;else if(d=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(p))f=parseInt(d[1]+d[1],16),h=parseInt(d[2]+d[2],16),m=parseInt(d[3]+d[3],16),g=1;else if(d=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,a=o<=.5?2*o*n:(2-2*o)*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=o-.5*a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m),g=1}else if(d=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),o=parseFloat(d[5]),g=parseFloat(d[7]),t%=360,n/=100,o/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,o=o<0?0:o>1?1:o,a=o<=.5?2*o*n:(2-2*o)*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=o-.5*a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m)}else if(d=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(p)){switch(t=parseFloat(d[1]),n=parseFloat(d[3]),i=parseFloat(d[5]),t%=360,n/=100,i/=100,t=t<0?0:t>360?360:t,n=n<0?0:n>1?1:n,i=i<0?0:i>1?1:i,a=i*n,l=t/60,s=a*(1-Math.abs(l%2-1)),c=[],l=Math.floor(l),l){case 0:c=[a,s,0];break;case 1:c=[s,a,0];break;case 2:c=[0,a,s];break;case 3:c=[0,s,a];break;case 4:c=[s,0,a];break;case 5:c=[a,0,s];break;default:c=[0,0,0]}u=i-a,f=c[0]+u,h=c[1]+u,m=c[2]+u,f=Te(255*f),h=Te(255*h),m=Te(255*m),g=1}else Object.prototype.hasOwnProperty.call(xe,p.toLowerCase())?(r=p.toLowerCase(),f=xe[r].r,h=xe[r].g,m=xe[r].b,g="number"==typeof xe[r].a?xe[r].a:1):this._invalid=!0;else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(g=(4278190080&e[0])>>>24,g/=255,f=(16711680&e[0])>>16,h=(65280&e[0])>>8,m=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(f=(16711680&e[0])>>16,h=(65280&e[0])>>8,m=255&e[0]):this._invalid=!0;else e.length>=3?(f=e[0],h=e[1],m=e[2],g=arguments.length>=4?e[3]:1):this._invalid=!0;Number.isNaN(+f+h+m+g)&&(this._invalid=!0),this._r=Pe(f),this._g=Pe(h),this._b=Pe(m),this._a=g,this._spaces={}}isInvalid(){return this._invalid}setAlpha(e){this._a=e,this._spaces={}}getAlpha(){return this._a}toRGB(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Oe.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Oe.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Oe.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Oe.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Oe.toHSLA(this,e)),this._spaces.hsla}toHSV(){const e=this.toHSVComponents();return`hsv(${e.h},${e.s},${e.v})`}toHSVComponents(){return this._spaces.hsvComp||(this._spaces.hsvComp=Oe.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Oe.toNumber(this)),this._spaces.num}isDark(){return this.isInvalid()||this.getLuminance()<125}getLuminance(){return void 0===this._lumi&&(this._lumi=.299*this._r+.587*this._g+.114*this._b),this._lumi}shiftLuminance(e){const t=this.toHSLA(),n=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i.exec(t),r=parseFloat(n[1]),o=parseFloat(n[3]);let i=parseFloat(n[5]);const a=parseFloat(n[7]);return i+=e,i=Math.max(0,Math.min(i,100)),`hsla(${r},${o},${i},${a})`}isEqual(e){return e instanceof Oe||(e=new Oe(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Pe(this._r+(e._r-this._r)*t),Pe(this._g+(e._g-this._g)*t),Pe(this._b+(e._b-this._b)*t),Pe(this._a+(e._a-this._a)*t)].join(",")})`}createShiftedColor(e){(void 0===e||Number.isNaN(+e))&&(e=1);const t=this.getLuminance(),n=this._g<126?1:1+this._g/512,r=this.shiftLuminance(20*(t*n<220?.8+1/(t+1)*4:-(.8+t/255*1))*e);return new Oe(r)}static toRGB(e){if(e instanceof Oe)return`rgb(${[e._r,e._g,e._b].join(",")})`;"string"==typeof e&&(e=Oe.toNumber(e));return`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`}static toRGBA(e,t){if(e instanceof Oe)return`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`;"string"==typeof e&&(e=Oe.toNumber(e));return`rgba(${(16711680&e)>>16},${(65280&e)>>8},${255&e},${void 0!==t?t:e._a})`}static toHex(e){let t,n,r;return e instanceof Oe?(t=e._r.toString(16),n=e._g.toString(16),r=e._b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`):("string"==typeof e&&(e=Oe.toNumber(e)),t=((16711680&e)>>16).toString(16),n=((65280&e)>>8).toString(16),r=(255&e).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`)}static toHSL(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=Math.max(a,l,s),u=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(c+u)/2,c===u)n=0,i=0;else{switch(o=c-u,n=r>.5?o/(2-c-u):o/(c+u),c){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return`hsl(${360*i},${100*n},${100*r})`}static toHSLA(e,t){let n,r,o,i=0;"string"==typeof e&&(e=new Oe(e));const a=e._r/255,l=e._g/255,s=e._b/255,c=e._a,u=Math.max(a,l,s),d=Math.min(a,l,s);if(r=t?.21*a+.72*l+.07*s:(u+d)/2,u===d)n=0,i=0;else{switch(o=u-d,n=r>.5?o/(2-u-d):o/(u+d),u){case a:i=(l-s)/o+(l<s?6:0);break;case l:i=(s-a)/o+2;break;case s:i=(a-l)/o+4}i/=6}return`hsla(${360*i},${100*n},${100*r},${c})`}static toHSVComponents(e){let t,n,r=0;"string"==typeof e&&(e=new Oe(e));const o=e._r/255,i=e._g/255,a=e._b/255,l=Math.max(o,i,a),s=Math.min(o,i,a),c=l;if(l===s)t=0,r=0;else{switch(n=l-s,t=0===n?0:n/c,l){case o:r=(i-a)/n+(i<a?6:0);break;case i:r=(a-o)/n+2;break;case a:r=(o-i)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*c}}static toNumber(...e){if(1===e.length&&e[0]instanceof Oe)return(e[0]._r<<16)+(e[0]._g<<8)+e[0]._b;let t,n,r=0,o=0,i=0;return 1===e.length&&"string"==typeof e[0]&&(n=e[0],(t=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i.exec(n))?(r=parseInt(t[1],10),o=parseInt(t[2],10),i=parseInt(t[3],10)):(t=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i.exec(n))?(r=parseInt(t[1],16),o=parseInt(t[2],16),i=parseInt(t[3],16)):(t=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i.exec(n))&&(r=parseInt(t[1]+t[1],16),o=parseInt(t[2]+t[2],16),i=parseInt(t[3]+t[3],16))),(r<<16)+(o<<8)+i}static blend(e,t,n){const r=(16711680&(e=Oe.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Oe.toNumber(t)))>>16)-r)*n<<16)+(o+(((65280&t)>>8)-o)*n<<8)+(i+((255&t)-i)*n)}static getBlend(e,t,n){const r=e._r+(t._r-e._r)*n,o=e._g+(t._g-e._g)*n,i=e._b+(t._b-e._b)*n,a=e._a+(t._a-e._a)*n;return new Oe(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(we.test(e)||ke.test(e)||Ce.test(e)||Ee.test(e)||Le.test(e)||Re.test(e)||Object.prototype.hasOwnProperty.call(xe,e.toLowerCase()))}static getBestContrast(e,t,n){const r=e.getLuminance();return Math.abs(r-t.getLuminance())>Math.abs(r-n.getLuminance())?t:n}static getContrast(e,t){if(!e||!t)return;const n=e.getLuminance()/100,r=t.getLuminance()/100;return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}static isDark(...e){return new Oe(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class Ie{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=Y(e)}addColorPart(e,t,n){n=n||0,this.startLevel=Math.max(n,this.startLevel),this.colorParts[n]||(this.colorParts[n]=[]),this.colorParts[n].push([Y(e),Y(t)])}getColor(e,t){const n=e-this.min;if(Number.isNaN(+e)||Number.isNaN(+n))return this.nanColor;t=function(e,t){return Math.min(t||e.startLevel,e.colorParts.length-1)}(this,t);const r=function(e,t){return t-(e=Math.min(Math.max(e,1e-12),.999999999999))*t}(n,this.colorParts[t].length);let o=Math.floor(r);o=o===r?o-1:o;const i=this.colorParts[t][o],a=i[0],l=i[1];if(e===this.min)return l;if(e===this.max)return a;const s=function(e,t,n){return ne(Math.floor(e.r+(t.r-e.r)*n),Math.floor(e.g+(t.g-e.g)*n),Math.floor(e.b+(t.b-e.b)*n),Math.floor(e.opacity+(t.opacity-e.opacity)*n))}(a,l,r-o);return s}}function Me(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function De(e,t,n){const r=[],o=new Ie(t);r.push(e[0]),n||r.push(e[0]);let i=1;for(;i<e.length-1;i++)r.push(e[i]),r.push(e[i]);const a=e[e.length-1];r.push(a),n||r.push(a);for(let e=0;e<r.length;e+=2)o.addColorPart(r[e],r[e+1]);return o}function _e(e,t,n){const r=[];for(let o=0;o<t+1;o++){let i;switch(t){case 0:i=e.getColor(.5);break;default:{const r=Me(1/t*o,t,n);i=e.getColor(r);break}}r.push(Y(i).formatHex())}return r}function Ne(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const r=De(e,n,!0),o=De(_e(r,t-1,t),n,!1),i=[null];for(let e=0;e<t;e++)i.push(_e(o,e,t));return i}(e.scale,Math.max(e.scale.length,7),t);e.scale=n,e.type="class-pyramid"}})}function qe(e,t){const n=[];let r,o;if(e){let i=e.length;for(;i>=0;){for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat(e)),r.pop(),o--;e.pop(),i--}}else for(r=t.slice(),o=r.length;o>=0;)n.push(r.concat()),r.pop(),o--;return n}function je(e,t){let n=e;for(let e=0;e<t.length;e++){if(!n[t[e]])return;n=n[t[e]]}return n}function Ae(e,t,n,r){let o;if(""===e)o=qe(null,n);else{o=qe(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=je(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function ze(e,t){const n=e.split(".");return{getStyle:(e,r)=>Ae(e,r,n.concat(),t)}}function $e(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?$e(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function Fe(e){const t=Y(e);if(!t)return 0;const{r:n,g:r,b:o}=t.rgb(),[i,a,l]=[n,r,o].map(e=>e/255),[s,c,u]=[i,a,l].map(e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4);return+(.2126*s+.7152*c+.0722*u).toFixed(5)}ze.resolveRawTheme=e=>{const t=ge(!0,{},e);return $e(t,t._variables),t.scales&&Ne(t.scales,t.dataColors&&t.dataColors.nullColor),t};function Be(e=["#333333","#ffffff"]){let t={},n=0;const r=e.map(Fe);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=Fe(o),a=r.map(e=>{return t=i,n=e,+((Math.max(t,n)+.05)/(Math.min(t,n)+.05)).toFixed(5);var t,n}),l=e[a.indexOf(Math.max(...a))];t[o]=l,n++}return t[o]}}}function We(){let e,t,n,r={};const o={getDataColorScales:()=>t.dataScales(),getDataColorPalettes:()=>t.dataPalettes(),getDataColorPickerPalettes:()=>t.uiPalettes(),getDataColorSpecials:()=>t.dataColors(),getColorPickerColor:(...e)=>t.uiColor(...e),getContrastingColorTo:e=>n.getBestContrastColor(e),getStyle:(t,n,o)=>(r[t]||(r[t]=ze(t,e)),r[t].getStyle(n,o)),validateColor(...e){const t=e[0];let n;if("string"==typeof t&&(n=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(t))){const e=parseInt(n[1],10)/255;return`rgba(${parseInt(n[2],10)},${parseInt(n[3],10)},${parseInt(n[4],10)},${e})`}const r=Y(...e);return r?r.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?ve:ye;let r=Se;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ge(!0,{},be,r,n),i=ge(!0,{},o,{scales:null,palettes:{data:null,ui:null}},e);return i.palettes.data&&i.palettes.data.length||(i.palettes.data=o.palettes.data),i.palettes.ui&&i.palettes.ui.length||(i.palettes.ui=o.palettes.ui),i.scales&&i.scales.length||(i.scales=o.scales),t(i)}(i,ze.resolveRawTheme),r={},t=function(e){let t;return{dataScales(){const t=[];return e.scales.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,scheme:!0,type:e.type,colors:e.scale})}),t},dataPalettes(){const t=[];return e.palettes.data.forEach(e=>{t.push({key:e.propertyValue,name:e.name,translation:e.translation,type:e.type,colors:e.scale})}),t},uiPalettes(){const t=[];return e.palettes.ui.forEach(e=>{const n=e.colors&&"none"!==e.colors[0]?["none",...e.colors]:e.colors;t.push({key:"ui",name:e.name,translation:e.translation,type:"row",colors:n||[]})}),t},dataColors:()=>({primary:e.dataColors.primaryColor,nil:e.dataColors.nullColor,others:e.dataColors.othersColor}),uiColor(e){const n="number"==typeof(null==e?void 0:e.index)&&!Number.isNaN(null==e?void 0:e.index),r="string"==typeof(null==e?void 0:e.color);if(!n&&!r)return;const o=(()=>(null==e?void 0:e.index)<0||void 0===(null==e?void 0:e.index)?e.color:(void 0===t&&(t=this.uiPalettes()[0]||!1),t?void 0===t.colors[e.index]?e.color:t.colors[e.index]:e.color))();if(void 0===e.alpha||e.alpha>=1||e.alpha<0)return o;const i=new Oe(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=Fe(l);n=Be([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(M.prototype).forEach(e=>{o[e]=M.prototype[e]}),M.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const He=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function Ue(e){return"auto"!==e?e:function(){let e=!1;return window.PointerEvent&&"maxTouchPoints"in navigator?navigator.maxTouchPoints>0&&(e=!0):(window.matchMedia&&window.matchMedia("(any-pointer:coarse)").matches||window.TouchEvent||"ontouchstart"in window)&&(e=!0),e}()?"touch":"desktop"}var Ve,Ge,Ke={exports:{}},Xe={},Je={exports:{}},Ze={};function Qe(){return Ge||(Ge=1,Je.exports=(Ve||(Ve=1,function(e){function t(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function n(e){return 0===e.length?null:e[0]}function r(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var l=2*(r+1)-1,s=e[l],c=l+1,u=e[c];if(0>o(s,n))c<i&&0>o(u,s)?(e[r]=u,e[c]=n,r=c):(e[r]=s,e[l]=n,r=l);else{if(!(c<i&&0>o(u,n)))break e;e[r]=u,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(e.unstable_now=void 0,"object"==typeof performance&&"function"==typeof performance.now){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,l=a.now();e.unstable_now=function(){return a.now()-l}}var s=[],c=[],u=1,d=null,p=3,f=!1,h=!1,m=!1,g=!1,b="function"==typeof setTimeout?setTimeout:null,y="function"==typeof clearTimeout?clearTimeout:null,v="undefined"!=typeof setImmediate?setImmediate:null;function S(e){for(var o=n(c);null!==o;){if(null===o.callback)r(c);else{if(!(o.startTime<=e))break;r(c),o.sortIndex=o.expirationTime,t(s,o)}o=n(c)}}function x(e){if(m=!1,S(e),!h)if(null!==n(s))h=!0,k||(k=!0,w());else{var t=n(c);null!==t&&I(x,t.startTime-e)}}var w,k=!1,C=-1,E=5,L=-1;function R(){return!(!g&&e.unstable_now()-L<E)}function P(){if(g=!1,k){var t=e.unstable_now();L=t;var o=!0;try{e:{h=!1,m&&(m=!1,y(C),C=-1),f=!0;var i=p;try{t:{for(S(t),d=n(s);null!==d&&!(d.expirationTime>t&&R());){var a=d.callback;if("function"==typeof a){d.callback=null,p=d.priorityLevel;var l=a(d.expirationTime<=t);if(t=e.unstable_now(),"function"==typeof l){d.callback=l,S(t),o=!0;break t}d===n(s)&&r(s),S(t)}else r(s);d=n(s)}if(null!==d)o=!0;else{var u=n(c);null!==u&&I(x,u.startTime-t),o=!1}}break e}finally{d=null,p=i,f=!1}o=void 0}}finally{o?w():k=!1}}}if("function"==typeof v)w=function(){v(P)};else if("undefined"!=typeof MessageChannel){var T=new MessageChannel,O=T.port2;T.port1.onmessage=P,w=function(){O.postMessage(null)}}else w=function(){b(P,0)};function I(t,n){C=b(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return p},e.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},e.unstable_scheduleCallback=function(r,o,i){var a=e.unstable_now();switch(i="object"==typeof i&&null!==i&&"number"==typeof(i=i.delay)&&0<i?a+i:a,r){case 1:var l=-1;break;case 2:l=250;break;case 5:l=1073741823;break;case 4:l=1e4;break;default:l=5e3}return r={id:u++,callback:o,priorityLevel:r,startTime:i,expirationTime:l=i+l,sortIndex:-1},i>a?(r.sortIndex=i,t(c,r),null===n(s)&&r===n(c)&&(m?(y(C),C=-1):m=!0,I(x,i-a))):(r.sortIndex=l,t(s,r),h||f||(h=!0,k||(k=!0,w()))),r},e.unstable_shouldYield=R,e.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}}(Ze)),Ze)),Je.exports}var Ye,et,tt,nt,rt={exports:{}},ot={};function it(){if(Ye)return ot;Ye=1;var e=w();function t(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;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."}function n(){}var r={d:{f:n,r:function(){throw Error(t(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},o=Symbol.for("react.portal");var i=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(e,t){return"font"===e?"":"string"==typeof t?"use-credentials"===t?t:"":void 0}return ot.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,ot.createPortal=function(e,n){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!n||1!==n.nodeType&&9!==n.nodeType&&11!==n.nodeType)throw Error(t(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:o,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,n,null,r)},ot.flushSync=function(e){var t=i.T,n=r.p;try{if(i.T=null,r.p=2,e)return e()}finally{i.T=t,r.p=n,r.d.f()}},ot.preconnect=function(e,t){"string"==typeof e&&(t?t="string"==typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,r.d.C(e,t))},ot.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},ot.preinit=function(e,t){if("string"==typeof e&&t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin),i="string"==typeof t.integrity?t.integrity:void 0,l="string"==typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?r.d.S(e,"string"==typeof t.precedence?t.precedence:void 0,{crossOrigin:o,integrity:i,fetchPriority:l}):"script"===n&&r.d.X(e,{crossOrigin:o,integrity:i,fetchPriority:l,nonce:"string"==typeof t.nonce?t.nonce:void 0})}},ot.preinitModule=function(e,t){if("string"==typeof e)if("object"==typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=a(t.as,t.crossOrigin);r.d.M(e,{crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0})}}else null==t&&r.d.M(e)},ot.preload=function(e,t){if("string"==typeof e&&"object"==typeof t&&null!==t&&"string"==typeof t.as){var n=t.as,o=a(n,t.crossOrigin);r.d.L(e,n,{crossOrigin:o,integrity:"string"==typeof t.integrity?t.integrity:void 0,nonce:"string"==typeof t.nonce?t.nonce:void 0,type:"string"==typeof t.type?t.type:void 0,fetchPriority:"string"==typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"string"==typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"==typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"==typeof t.imageSizes?t.imageSizes:void 0,media:"string"==typeof t.media?t.media:void 0})}},ot.preloadModule=function(e,t){if("string"==typeof e)if(t){var n=a(t.as,t.crossOrigin);r.d.m(e,{as:"string"==typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"==typeof t.integrity?t.integrity:void 0})}else r.d.m(e)},ot.requestFormReset=function(e){r.d.r(e)},ot.unstable_batchedUpdates=function(e,t){return e(t)},ot.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},ot.useFormStatus=function(){return i.H.useHostTransitionStatus()},ot.version="19.2.8",ot}function at(){if(et)return rt.exports;return et=1,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)}}(),rt.exports=it(),rt.exports}
|
|
8
8
|
/**
|
|
9
9
|
* @license React
|
|
10
10
|
* react-dom-client.production.js
|
|
@@ -120,7 +120,7 @@ System.register([],function(e,t){"use strict";return{execute:function(){function
|
|
|
120
120
|
animation: ${Vs} 1.4s linear infinite;
|
|
121
121
|
`:null,Xs="string"!=typeof Gs?er`
|
|
122
122
|
animation: ${Gs} 1.4s ease-in-out infinite;
|
|
123
|
-
`:null,Js=Dl("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ks||{animation:`${Vs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Zs=Dl("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Qs=Dl("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Nr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hl(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Xs||{animation:`${Gs} 1.4s ease-in-out infinite`}}]}))),Ys=Dl("circle",{name:"MuiCircularProgress",slot:"Track"})(Hl(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ec=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:l=40,style:s,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:l,thickness:c,value:u,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Vi({root:["root",n,`color${Nr(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Nr(n)}`,o&&"circleDisableShrink"]},Hs,t)})(f),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((Us-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return fr.jsx(Js,{className:$o(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...b,...p,children:fr.jsxs(Zs,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?fr.jsx(Ys,{className:h.track,ownerState:f,cx:Us,cy:Us,r:(Us-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,fr.jsx(Qs,{className:h.circle,style:m,ownerState:f,cx:Us,cy:Us,r:(Us-c)/2,fill:"none",strokeWidth:c})]})})});function tc(e){return Bo("MuiButton",e)}const nc=Wo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),rc=k.createContext({}),oc=k.createContext(void 0),ic=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ac=Dl(Fs,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Nr(n.color)}`],t[`size${Nr(n.size)}`],t[`${n.variant}Size${Nr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hl(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${nc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${nc.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${nc.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nc.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${nc.loading}`]:{color:"transparent"}}}]}})),lc=Dl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Nr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ic]})),sc=Dl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Nr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ic]})),cc=Dl("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),uc=Dl("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dc=k.forwardRef(function(e,t){const n=k.useContext(rc),r=k.useContext(oc),o=Ul({props:ti(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:b,loadingPosition:y="center",size:v="medium",startIcon:S,type:x,variant:w="text",...C}=o,E=Ti(m),L=b??fr.jsx(ec,{"aria-labelledby":E,color:"inherit",size:16}),R={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:L,loadingPosition:y,size:v,type:x,variant:w},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:s}=e,c=Vi({root:["root",a&&"loading",i,`${i}${Nr(t)}`,`size${Nr(o)}`,`${i}Size${Nr(o)}`,`color${Nr(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Nr(l)}`],startIcon:["icon","startIcon",`iconSize${Nr(o)}`],endIcon:["icon","endIcon",`iconSize${Nr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},tc,s);return{...s,...c}})(R),T=(S||g&&"start"===y)&&fr.jsx(lc,{className:P.startIcon,ownerState:R,children:S||fr.jsx(uc,{className:P.loadingIconPlaceholder,ownerState:R})}),O=(p||g&&"end"===y)&&fr.jsx(sc,{className:P.endIcon,ownerState:R,children:p||fr.jsx(uc,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",M="boolean"==typeof g?fr.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&fr.jsx(cc,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:D,..._}=P;return fr.jsxs(ac,{ownerState:R,className:$o(n.className,P.root,s,I),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:$o(P.focusVisible,f),ref:t,type:x,id:g?E:m,...C,classes:_,children:[T,"end"!==y&&M,i,"end"===y&&M,O]})});var pc={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"]};const fc={green:"#00873D",blue:"#3F8AB3",blueDark:"#005DB9",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},hc={mode:"light",palette:{primary:{main:fc.grey25,contrastText:fc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:fc.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:fc.grey100,dark:fc.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:fc.grey100,default:fc.grey100,lightest:fc.grey100,lighter:fc.grey98,darker:fc.grey95,darkest:fc.grey90},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:fc.blueDark,focusBorder:fc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:fc.grey45,disabledContrastText:fc.grey100},selected:{main:fc.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:fc.grey100,selectedContrastText:fc.grey100,mainContrastText:fc.grey100,alternativeContrastText:fc.grey25,excludedContrastText:fc.grey25,selectedExcludedContrastText:fc.grey100,possibleContrastText:fc.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},mc={mode:"dark",palette:{primary:{main:fc.grey20,contrastText:fc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:fc.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:fc.grey100,dark:fc.grey0},action:{active:fc.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:fc.grey25,lighter:fc.grey20,darker:fc.grey15,darkest:fc.grey10},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:fc.blueDark,focusBorder:fc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:fc.grey45,disabledContrastText:fc.grey100},selected:{main:fc.green,alternative:fc.grey20,excluded:fc.grey10,selectedExcluded:fc.grey10,possible:fc.grey80,selectedContrastText:fc.grey100,mainContrastText:fc.grey100,alternativeContrastText:fc.grey100,excludedContrastText:fc.grey100,selectedExcludedContrastText:fc.grey100,possibleContrastText:fc.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},gc={},bc=e=>({MuiCheckbox:{defaultProps:{color:"secondary"}},MuiRadio:{defaultProps:{color:"secondary"}},MuiTabs:{defaultProps:{indicatorColor:"secondary"}},MuiTypography:{styleOverrides:{root:{color:e.palette.text.primary}}},MuiGrid:{styleOverrides:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},styleOverrides:{root:{borderRadius:2,border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`}}}},MuiIconButton:{styleOverrides:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&.Mui-focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`},"&.Mui-active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(.Mui-active):not(.Mui-focusVisible)":{borderColor:"transparent",boxShadow:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}}},MuiButton:{styleOverrides:{outlined:{padding:"3px 11px",[`&.${nc.focusVisible}`]:{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:`1px solid ${e.palette.btn.border}`,backgroundColor:e.palette.btn.normal,boxShadow:"none",[`&.${nc.focusVisible}`]:{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",[`&.${nc.disabled}`]:{backgroundColor:e.palette.btn.disabled}},"&.Mui-active":{boxShadow:"none",backgroundColor:e.palette.btn.active},[`&.${nc.disabled}`]:{backgroundColor:e.palette.btn.disabled}}}},MuiAccordionSummary:{styleOverrides:{content:{margin:"8px 0"}}}});function yc(e){let t=hc,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn(`Invalid theme: '${e}'`):"dark"===e&&(t=mc));const r=JSON.stringify(t);if(gc[r])return gc[r];const o={palette:u(u({type:t.mode},pc.palette),t.palette),typography:u({},pc.typography),shadows:pc.shadows,shape:u({},pc.shape)},i=u(u({},o),{},{components:bc(o)});return gc[r]=Tl(i),gc[r].name=n,gc[r]}Ao.configure(e=>`njs-baf6-${e.replace("Mui","")}`);var vc=C.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const Sc={active:!0,select:!0,passive:!0,edit:!1};function xc(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach(e=>{r[e]=!t[e]}),r}(e);Object.keys(Sc).forEach(e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Sc[e],n[e]=!Sc[e])}),e.constraints=n,e.interactions=t}var wc=(e={},t=()=>{})=>{const n=e,r=[],o={},i={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=r,o[e]=t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{r.forEach(t=>t(e?{}:n))},destroy:()=>{Object.keys(o).forEach(e=>{o[e]&&o[e]()})}};return[()=>{const[,e]=k.useState(n);return k.useEffect(()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)}),[e]),[i]},i]};const kc=k.forwardRef(({initialContext:e,renderCallback:t,modelStore:n,selectionStore:r},o)=>{const[i,a]=k.useState(e),[l,s]=k.useState(),{theme:c}=k.useMemo(()=>({theme:yc(l)}),[l]),[u,d]=k.useState([]);return k.useEffect(()=>{t&&t()},[]),k.useImperativeHandle(o,()=>({setComps(e){d([...e])},setMuiThemeName:s,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),i&&(i.modelStore=n,i.selectionStore=r),fr.jsx(br,{injectFirst:!0,children:fr.jsx(Fl,{theme:c,children:fr.jsx(vc.Provider,{value:i,children:u})})})});function Cc({app:e,context:t}){let n,r=!1;const o=new Promise(e=>{n=e}),i=C.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","7.3.0"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&xc(t);const l=function(e){const[t,n]=wc({}),[r,o]=wc({}),[i,a]=wc({}),[l,s]=wc({}),[c,u]=wc({}),[,d]=wc({}),p=({type:e,value:t})=>{const r=d.get(t.id);d.set(t.id,{});const i=()=>{o.clear(t.id),u.set(t.id,{}),u.dispatch(!0)},l=()=>{t.removeListener("closed",l),t.removeListener("changed",i),n.clear(t.id),o.clear(t.id),a.clear(t.id),s.clear(t.id),u.clear(t.id),d.clear(t.id)};return"SET"===e&&(r||(t.on("changed",i),t.once("closed",l))),l},[f,h]=wc({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(e.id),s=function(e){const[t,n]=wc({}),[r,o]=wc({}),[i,a]=wc({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),c=st.createRoot(a);c.render(fr.jsx(kc,{ref:i,initialContext:t,renderCallback:n,modelStore:l,selectionStore:s}));const u={},d=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{var n;null===(n=u[t].current)||void 0===n||n.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async n=>{await o,p.push(e),d.push(t),null==i||null===(n=i.current)||void 0===n||n.setComps(p)})(),remove(e){r||(async t=>{await o;const n=p.indexOf(e);var r;-1!==n&&(null===(r=d[n])||void 0===r||r.call(d),p.splice(n,1),d.splice(n,1));null==i||null===(t=i.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async t=>{await o,null==i||null===(t=i.current)||void 0===t||t.setMuiThemeName(e)})()},context(e){(async t=>{await o,e&&xc(e),null==i||null===(t=i.current)||void 0===t||t.setContext(e)})()},destroy(){r=!0,d.forEach(e=>{e&&e()}),l.destroy(),c.unmount(),document.body.removeChild(a)}},l,s,i,o]}const Ec=e=>e.scrollTop;function Lc(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function Rc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function Pc(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Tc(e){return"string"==typeof e}function Oc(e,t,n){return void 0===e||Tc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ic(e,t,n){return"function"==typeof e?e(t,n):e}function Mc(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Dc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function _c(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=$o(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Mc({...o,...r}),l=Dc(r),s=Dc(o),c=t(a),u=$o(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...s,...l};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Nc(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=Ic(d[e],o),{props:{component:m,...g},internalRef:b}=_c({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=ns(b,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Oc(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!l&&{as:v},...v&&l&&{component:v},ref:y},o)]}function qc(e){return Bo("MuiPaper",e)}Wo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jc=Dl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Hl(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ac=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiPaper"}),r=Il(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation",...c}=n,u={...n,component:i,elevation:a,square:l,variant:s},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Vi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qc,o)})(u);return fr.jsx(jc,{as:i,ownerState:u,className:$o(d.root,o),ref:t,...c,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${ui("#fff",gl(a))}, ${ui("#fff",gl(a))})`}},...c.style}})});function zc(e){return Bo("MuiIconButton",e)}const $c=Wo("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Fc=Dl(Fs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Nr(n.color)}`],n.edge&&t[`edge${Nr(n.edge)}`],t[`size${Nr(n.size)}`]]}})(Hl(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Hl(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${$c.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${$c.loading}`]:{color:"transparent"}}))),Bc=Dl("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Wc=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=Ti(u),m=p??fr.jsx(ec,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:l,disableFocusRipple:s,loading:d,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Vi({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Nr(r)}`,o&&`edge${Nr(o)}`,`size${Nr(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},zc,t)})(g);return fr.jsxs(Fc,{id:d?h:u,className:$o(b.root,i),centerRipple:!0,focusRipple:!s,disabled:l||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&fr.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:fr.jsx(Bc,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})});function Hc(e){return Bo("MuiTypography",e)}Wo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Uc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Vc=qo,Gc=Dl("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${Nr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Hl(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Nr(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Kc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xc=k.forwardRef(function(e,t){const{color:n,...r}=Ul({props:e,name:"MuiTypography"}),o=Vc({...r,...!Uc[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Kc,...f}=o,h={...o,align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p},m=l||(u?"p":p[d]||Kc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Vi({root:["root",i,"inherit"!==e.align&&`align${Nr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Hc,a)})(h);return fr.jsx(Gc,{as:m,ref:t,className:$o(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})});function Jc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function Zc(e){const t=k.useRef({});return k.useEffect(()=>{t.current=e}),t.current}var Qc="top",Yc="bottom",eu="right",tu="left",nu="auto",ru=[Qc,Yc,eu,tu],ou="start",iu="end",au="viewport",lu="popper",su=ru.reduce(function(e,t){return e.concat([t+"-"+ou,t+"-"+iu])},[]),cu=[].concat(ru,[nu]).reduce(function(e,t){return e.concat([t,t+"-"+ou,t+"-"+iu])},[]),uu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function du(e){return e?(e.nodeName||"").toLowerCase():null}function pu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fu(e){return e instanceof pu(e).Element||e instanceof Element}function hu(e){return e instanceof pu(e).HTMLElement||e instanceof HTMLElement}function mu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pu(e).ShadowRoot||e instanceof ShadowRoot)}var gu={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];hu(o)&&du(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});hu(r)&&du(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function bu(e){return e.split("-")[0]}var yu=Math.max,vu=Math.min,Su=Math.round;function xu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wu(){return!/^((?!chrome|android).)*safari/i.test(xu())}function ku(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&hu(e)&&(o=e.offsetWidth>0&&Su(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Su(r.height)/e.offsetHeight||1);var a=(fu(e)?pu(e):window).visualViewport,l=!wu()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Cu(e){var t=ku(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Eu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lu(e){return pu(e).getComputedStyle(e)}function Ru(e){return["table","td","th"].indexOf(du(e))>=0}function Pu(e){return((fu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tu(e){return"html"===du(e)?e:e.assignedSlot||e.parentNode||(mu(e)?e.host:null)||Pu(e)}function Ou(e){return hu(e)&&"fixed"!==Lu(e).position?e.offsetParent:null}function Iu(e){for(var t=pu(e),n=Ou(e);n&&Ru(n)&&"static"===Lu(n).position;)n=Ou(n);return n&&("html"===du(n)||"body"===du(n)&&"static"===Lu(n).position)?t:n||function(e){var t=/firefox/i.test(xu());if(/Trident/i.test(xu())&&hu(e)&&"fixed"===Lu(e).position)return null;var n=Tu(e);for(mu(n)&&(n=n.host);hu(n)&&["html","body"].indexOf(du(n))<0;){var r=Lu(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Mu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Du(e,t,n){return yu(e,vu(t,n))}function _u(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Nu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var qu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bu(n.placement),s=Mu(l),c=[tu,eu].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return _u("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Nu(e,ru))}(o.padding,n),d=Cu(i),p="y"===s?Qc:tu,f="y"===s?Yc:eu,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Iu(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[p],S=b-d[c]-u[f],x=b/2-d[c]/2+y,w=Du(v,x,S),k=s;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Eu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ju(e){return e.split("-")[1]}var Au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=tu,S=Qc,x=window;if(c){var w=Iu(n),k="clientHeight",C="clientWidth";if(w===pu(n)&&"static"!==Lu(w=Pu(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),o===Qc||(o===tu||o===eu)&&i===iu)S=Yc,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=s?1:-1;if(o===tu||(o===Qc||o===Yc)&&i===iu)v=eu,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,f*=s?1:-1}var E,L=Object.assign({position:l},c&&Au),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Su(n*o)/o||0,y:Su(r*o)/o||0}}({x:f,y:m},pu(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((E={})[S]=y?"0":"",E[v]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},L,((t={})[S]=y?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}var $u={passive:!0};var Fu={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(e){return Fu[e]})}var Wu={start:"end",end:"start"};function Hu(e){return e.replace(/start|end/g,function(e){return Wu[e]})}function Uu(e){var t=pu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vu(e){return ku(Pu(e)).left+Uu(e).scrollLeft}function Gu(e){var t=Lu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ku(e){return["html","body","#document"].indexOf(du(e))>=0?e.ownerDocument.body:hu(e)&&Gu(e)?e:Ku(Tu(e))}function Xu(e,t){var n;void 0===t&&(t=[]);var r=Ku(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=pu(r),a=o?[i].concat(i.visualViewport||[],Gu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Xu(Tu(a)))}function Ju(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zu(e,t,n){return t===au?Ju(function(e,t){var n=pu(e),r=Pu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=wu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Vu(e),y:s}}(e,n)):fu(t)?function(e,t){var n=ku(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ju(function(e){var t,n=Pu(e),r=Uu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=yu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Vu(e),s=-r.scrollTop;return"rtl"===Lu(o||n).direction&&(l+=yu(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Pu(e)))}function Qu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xu(Tu(e)),n=["absolute","fixed"].indexOf(Lu(e).position)>=0&&hu(e)?Iu(e):e;return fu(n)?t.filter(function(e){return fu(e)&&Eu(e,n)&&"body"!==du(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=Zu(e,n,r);return t.top=yu(o.top,t.top),t.right=vu(o.right,t.right),t.bottom=vu(o.bottom,t.bottom),t.left=yu(o.left,t.left),t},Zu(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Yu(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bu(o):null,a=o?ju(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Qc:t={x:l,y:n.y-r.height};break;case Yc:t={x:l,y:n.y+n.height};break;case eu:t={x:n.x+n.width,y:s};break;case tu:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Mu(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ou:t[c]=t[c]-(n[u]/2-r[u]/2);break;case iu:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function ed(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?au:c,d=n.elementContext,p=void 0===d?lu:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=_u("number"!=typeof g?g:Nu(g,ru)),y=p===lu?"reference":lu,v=e.rects.popper,S=e.elements[h?y:p],x=Qu(fu(S)?S:S.contextElement||Pu(e.elements.popper),s,u,a),w=ku(e.elements.reference),k=Yu({reference:w,element:v,placement:o}),C=Ju(Object.assign({},v,k)),E=p===lu?C:w,L={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},R=e.modifiersData.offset;if(p===lu&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[eu,Yc].indexOf(e)>=0?1:-1,n=[Qc,Yc].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}function td(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?cu:s,u=ju(r),d=u?l?su:su.filter(function(e){return ju(e)===u}):ru,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=ed(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bu(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var nd={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=bu(g),y=s||(b===g||!h?[Bu(g)]:function(e){if(bu(e)===nu)return[];var t=Bu(e);return[Hu(e),t,Hu(t)]}(g)),v=[g].concat(y).reduce(function(e,n){return e.concat(bu(n)===nu?td(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),S=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=v[0],E=0;E<v.length;E++){var L=v[E],R=bu(L),P=ju(L)===ou,T=[Qc,Yc].indexOf(R)>=0,O=T?"width":"height",I=ed(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=T?P?eu:tu:P?Yc:Qc;S[O]>x[O]&&(M=Bu(M));var D=Bu(M),_=[];if(i&&_.push(I[R]<=0),l&&_.push(I[M]<=0,I[D]<=0),_.every(function(e){return e})){C=L,k=!1;break}w.set(L,_)}if(k)for(var N=function(e){var t=v.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},q=h?3:1;q>0;q--){if("break"===N(q))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rd(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function od(e){return[Qc,eu,Yc,tu].some(function(t){return e[t]>=0})}var id={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=cu.reduce(function(e,n){return e[n]=function(e,t,n){var r=bu(e),o=[tu,Qc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[tu,eu].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ad={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=ed(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=bu(t.placement),y=ju(t.placement),v=!y,S=Mu(b),x="x"===S?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var T,O="y"===S?Qc:tu,I="y"===S?Yc:eu,M="y"===S?"height":"width",D=w[S],_=D+g[O],N=D-g[I],q=f?-C[M]/2:0,j=y===ou?k[M]:C[M],A=y===ou?-C[M]:-k[M],z=t.elements.arrow,$=f&&z?Cu(z):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[O],W=F[I],H=Du(0,k[M],$[M]),U=v?k[M]/2-q-H-B-L.mainAxis:j-H-B-L.mainAxis,V=v?-k[M]/2+q+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&Iu(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,X=null!=(T=null==R?void 0:R[S])?T:0,J=D+V-X,Z=Du(f?vu(_,D+U-X-K):_,D,f?yu(N,J):N);w[S]=Z,P[S]=Z-D}if(l){var Q,Y="x"===S?Qc:tu,ee="x"===S?Yc:eu,te=w[x],ne="y"===x?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[Qc,tu].indexOf(b),ae=null!=(Q=null==R?void 0:R[x])?Q:0,le=ie?re:te-k[ne]-C[ne]-ae+L.altAxis,se=ie?te+k[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Du(e,t,n);return r>n?n:r}(le,te,se):Du(f?le:re,te,f?se:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function ld(e,t,n){void 0===n&&(n=!1);var r=hu(t),o=hu(t)&&function(e){var t=e.getBoundingClientRect(),n=Su(t.width)/e.offsetWidth||1,r=Su(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Pu(t),a=ku(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==du(t)||Gu(i))&&(l=function(e){return e!==pu(e)&&hu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Uu(e);var t}(t)),hu(t)?((s=ku(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Vu(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function sd(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function cd(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var ud={placement:"bottom",modifiers:[],strategy:"absolute"};function dd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function pd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ud:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ud,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:fu(e)?Xu(e):e.contextElement?Xu(e.contextElement):[],popper:Xu(t)};var u,d,p=function(e){var t=sd(e);return uu.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=p.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r}),c=function(){};a.push(l||c)}}),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(dd(t,n)){o.rects={reference:ld(t,Iu(n),"fixed"===o.options.strategy),popper:Cu(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:cd(function(){return new Promise(function(e){s.forceUpdate(),e(o)})}),destroy:function(){c(),l=!0}};if(!dd(e,t))return s;function c(){a.forEach(function(e){return e()}),a=[]}return s.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),s}}var fd=pd({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=pu(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,$u)}),l&&s.addEventListener("resize",n.update,$u),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,$u)}),l&&s.removeEventListener("resize",n.update,$u)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:bu(t.placement),variation:ju(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gu,id,nd,ad,qu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ed(t,{elementContext:"reference"}),l=ed(t,{altBoundary:!0}),s=rd(a,r),c=rd(l,o,i),u=od(s),d=od(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function hd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const md=k.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=k.useState(null),l=ns(k.isValidElement(n)?hd(n):null,t);if(ri(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ri(()=>{if(i&&!o)return Yl(t,i),()=>{Yl(t,null)}},[t,i,o]),o){if(k.isValidElement(n)){const e={ref:l};return k.cloneElement(n,e)}return n}return i?ds.createPortal(n,i):i});function gd(e){return Bo("MuiPopper",e)}function bd(e){return"function"==typeof e?e():e}Wo("MuiPopper",["root"]);const yd={},vd=k.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:l,placement:s,popperOptions:c,popperRef:u,slotProps:d={},slots:p={},TransitionProps:f,ownerState:h,...m}=e,g=k.useRef(null),b=ns(g,t),y=k.useRef(null),v=ns(y,u),S=k.useRef(v);ri(()=>{S.current=v},[v]),k.useImperativeHandle(u,()=>y.current,[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(s,o),[w,C]=k.useState(x),[E,L]=k.useState(bd(n));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{n&&L(bd(n))},[n]),ri(()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=fd(E,g.current,{placement:x,...c,modifiers:e});S.current(t);const n=g.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();S.current(null)}},[E,i,a,l,c,x]);const R={placement:w};null!==f&&(R.TransitionProps=f);const P=(e=>{const{classes:t}=e;return Vi({root:["root"]},gd,t)})(e),T=p.root??"div",O=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Ic(n,r),{props:l,internalRef:s}=_c({...i,externalSlotProps:a});return Oc(t,{...l,ref:ns(s,a?.ref,e.additionalProps?.ref)},r)}({elementType:T,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:P.root});return fr.jsx(T,{...O,children:"function"==typeof r?r(R):r})}),Sd=k.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=yd,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={},...b}=e,[y,v]=k.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=bd(n);S=e&&void 0!==e.nodeType?Zl(e).body:Zl(null).body}const x=c||!l||h&&!y?void 0:"none",w=h?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return fr.jsx(md,{disablePortal:a,container:S,children:fr.jsx(vd,{anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g,...b,style:{position:"fixed",top:0,left:0,display:x,...f},TransitionProps:w,children:r})})}),xd=Dl(Sd,{name:"MuiPopper",slot:"Root"})({}),wd=k.forwardRef(function(e,t){const n=ki(),r=Ul({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:l,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:b,slotProps:y,...v}=r,S=b?.root??a?.Root,x={anchorEl:o,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...v};return fr.jsx(xd,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:y??l,...x,ref:t})});function kd(e){return parseInt(e,10)||0}const Cd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ed(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ld=k.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...l}=e,{current:s}=k.useRef(null!=a),c=k.useRef(null),u=ns(t,c),d=k.useRef(null),p=k.useRef(null),f=k.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Ql(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=kd(i.paddingBottom)+kd(i.paddingTop),s=kd(i.borderBottomWidth)+kd(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflowing:Math.abs(f-u)<=1}},[r,o,e.placeholder]),h=ts(()=>{const e=c.current,t=f();if(!e||!t||Ed(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=k.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Ed(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=k.useRef(-1);ri(()=>{const e=Jl(m),t=c?.current;if(!t)return;const n=Ql(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),ri(()=>{m()});return fr.jsxs(k.Fragment,{children:[fr.jsx("textarea",{value:a,onChange:e=>{s||m();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:o,style:i,...l}),fr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Cd,...i,paddingTop:0,paddingBottom:0}})]})});function Rd({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Pd=k.createContext(void 0);function Td(){return k.useContext(Pd)}function Od(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function Id(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Md(e){return Bo("MuiInputBase",e)}const Dd=Wo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _d;const Nd="mui-auto-fill",qd="mui-auto-fill-cancel",jd=(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${Nr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ad=(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]},zd=Dl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jd})(Hl(({theme:e})=>({...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",[`&.${Dd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),$d=Dl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ad})(Hl(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Dd.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Dd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:qd,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:Nd}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Fd=function(e){return function(t){return fr.jsx(Wl,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${Nd}`]:{from:{animationName:Nd}},[`@keyframes ${qd}`]:{from:{animationName:qd}}}),Bd=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,error:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:y={},inputRef:v,margin:S,maxRows:x,minRows:w,multiline:C=!1,name:E,onBlur:L,onChange:R,onClick:P,onFocus:T,onKeyDown:O,onKeyUp:I,placeholder:M,readOnly:D,renderSuffix:_,rows:N,size:q,slotProps:j={},slots:A={},startAdornment:z,type:$="text",value:F,...B}=n,W=null!=y.value?y.value:F,{current:H}=k.useRef(null!=W),U=k.useRef(),V=k.useCallback(e=>{},[]),G=ns(U,v,y.ref,V),[K,X]=k.useState(!1),J=Td(),Z=Rd({props:n,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=J?J.focused:K,k.useEffect(()=>{!J&&d&&K&&(X(!1),L&&L())},[J,d,K,L]);const Q=J&&J.onFilled,Y=J&&J.onEmpty,ee=k.useCallback(e=>{!function(e,t=!1){return e&&(Id(e.value)&&""!==e.value||t&&Id(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():Q&&Q()},[Q,Y]);ri(()=>{H&&ee({value:W})},[W,ee,H]),ri(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Zl(e),n=Od(t),r=null==n||n===t.body||n===t.documentElement;e===n?J&&J.onFocus?J.onFocus():X(!0):r&&e.focus()},[i]);k.useEffect(()=>{ee(U.current)},[]);let te=b,ne=y;C&&"input"===te&&(ne=N?{type:void 0,minRows:N,maxRows:N,...ne}:{type:void 0,maxRows:x,minRows:w,...ne},te=Ld);k.useEffect(()=>{J&&J.setAdornedStart(Boolean(z))},[J,z]);const re={...n,color:Z.color||"primary",disabled:Z.disabled,endAdornment:f,error:Z.error,focused:Z.focused,formControl:J,fullWidth:m,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:z,type:$},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Vi({root:["root",`color${Nr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Nr(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Md,t)})(re),ie=A.root||s.Root||zd,ae=j.root||c.root||{},le=A.input||s.Input||$d;return ne={...ne,...j.input??c.input},fr.jsxs(k.Fragment,{children:[!p&&"function"==typeof Fd&&(_d||(_d=fr.jsx(Fd,{}))),fr.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Tc(ie)&&{ownerState:{...re,...ae.ownerState}},className:$o(oe.root,ae.className,a,D&&"MuiInputBase-readOnly"),children:[z,fr.jsx(Pd.Provider,{value:null,children:fr.jsx(le,{"aria-invalid":Z.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:u,disabled:Z.disabled,id:g,onAnimationStart:e=>{ee(e.animationName===qd?U.current:{value:"x"})},name:E,placeholder:M,readOnly:D,required:Z.required,rows:N,value:W,onKeyDown:O,onKeyUp:I,type:$,...ne,...!Tc(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:$o(oe.input,ne.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{L&&L(e),y.onBlur&&y.onBlur(e),J&&J.onBlur?J.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||U.current;if(null==t)throw new Error(ct(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),J&&J.onFocus?J.onFocus(e):X(!0)}})}),f,_?_({...Z,startAdornment:z}):null]})]})});function Wd(e){return Bo("MuiOutlinedInput",e)}const Hd={...Dd,...Wo("MuiOutlinedInput",["root","notchedOutline","input"])},Ud={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Vd={opacity:0,visibility:"hidden"},Gd=k.forwardRef(function(e,t){const n=Il(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,...b}=e,y=k.useRef(null),v=ns(y,hd(a),t),S=Lc(y,d),x=Lc(y,(e,t)=>{Ec(e);const r=Pc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),w=Lc(y,u),C=Lc(y,h),E=Lc(y,e=>{const t=Pc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),L=Lc(y,e=>{e.style.transition="",f&&f(e)});return fr.jsx(Ss,{appear:i,in:s,nodeRef:y,onEnter:x,onEntered:w,onEntering:S,onExit:E,onExited:L,onExiting:C,addEndListener:e=>{o&&o(y.current,e)},timeout:g,...b,children:(e,{ownerState:t,...n})=>{const r=Rc(e,s,Ud,Vd,m,a.props.style);return k.cloneElement(a,{style:r,ref:v,...n})}})});function Kd(e){return Bo("MuiBackdrop",e)}Wo("MuiBackdrop",["root","invisible"]);const Xd=Dl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Jd=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Vi({root:["root",n&&"invisible"]},Kd,t)})(m),b={component:i,slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,v]=Nc("root",{elementType:Xd,externalForwardedProps:b,className:$o(g.root,o),ownerState:m}),[S,x]=Nc("transition",{elementType:Gd,externalForwardedProps:b,ownerState:m});return fr.jsx(S,{in:l,timeout:f,...h,...x,children:fr.jsx(y,{"aria-hidden":!0,...v,ref:t,children:r})})});function Zd(e){return Bo("MuiBadge",e)}const Qd=Wo("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Yd=Dl("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ep=Dl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Nr(n.anchorOrigin.vertical)}${Nr(n.anchorOrigin.horizontal)}${Nr(n.overlap)}`],"default"!==n.color&&t[`color${Nr(n.color)}`],n.invisible&&t.invisible]}})(Hl(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ws(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,r="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?r:"initial",bottom:"bottom"===t?r:"initial",right:"right"===n?r:"initial",left:"left"===n?r:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${Qd.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function tp(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const np=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:l={},componentsProps:s={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:b=!1,variant:y="standard",...v}=n,{badgeContent:S,invisible:x,max:w,displayValue:k}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Zc({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:p,badgeContent:h,showZero:b}),C=Zc({anchorOrigin:tp(r),color:d,overlap:u,variant:y,badgeContent:h}),E=x||null==S&&"dot"!==y,{color:L=d,overlap:R=u,anchorOrigin:P,variant:T=y}=E?C:n,O=tp(P),I="dot"!==T?k:void 0,M={...n,badgeContent:S,invisible:E,max:w,displayValue:I,showZero:b,anchorOrigin:O,color:L,overlap:R,variant:T},D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Vi({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Nr(n.vertical)}${Nr(n.horizontal)}`,`anchorOrigin${Nr(n.vertical)}${Nr(n.horizontal)}${Nr(o)}`,`overlap${Nr(o)}`,"default"!==t&&`color${Nr(t)}`]},Zd,a)})(M),_={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[N,q]=Nc("root",{elementType:Yd,externalForwardedProps:{..._,...v},ownerState:M,className:$o(D.root,o),ref:t,additionalProps:{as:a}}),[j,A]=Nc("badge",{elementType:ep,externalForwardedProps:_,ownerState:M,className:D.badge});return fr.jsxs(N,{...q,children:[c,fr.jsx(j,{...A,children:I})]})}),rp=Wo("MuiBox",["root"]),op=Tl(),ip=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Po),a=k.forwardRef(function(e,a){const l=Do(n),{className:s,component:c="div",...u}=qo(e);return fr.jsx(i,{as:c,ref:a,className:$o(s,o?o(r):r),theme:t&&l[t]||l,...u})});return a}({themeId:ut,defaultTheme:op,defaultClassName:rp.root,generateClassName:Ao.generate});function ap(e){return Bo("PrivateSwitchBase",e)}Wo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const lp=Dl(Fs,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),sp=Dl("input",{name:"MuiSwitchBase",shouldForwardProp:Ml})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),cp=k.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:b,required:y=!1,tabIndex:v,type:S,value:x,slots:w={},slotProps:k={},...C}=e,[E,L]=es({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Td();let P=a;R&&void 0===P&&(P=R.disabled);const T="checkbox"===S||"radio"===S,O={...e,checked:E,disabled:P,disableFocusRipple:l,edge:s},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Vi({root:["root",n&&"checked",r&&"disabled",o&&`edge${Nr(o)}`],input:["input"]},ap,t)})(O),M={slots:w,slotProps:{input:d,...k}},[D,_]=Nc("root",{ref:t,elementType:lp,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...M,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),R&&R.onFocus&&R.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)})(t)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[N,q]=Nc("input",{ref:p,elementType:sp,className:I.input,externalForwardedProps:M,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||b)return;const t=e.target.checked;L(t),m&&m(e,t)})(t)}}),ownerState:O,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:T?u:void 0,name:f,readOnly:b,required:y,tabIndex:v,type:S,..."checkbox"===S&&void 0===x?{}:{value:x}}});return fr.jsxs(D,{..._,children:[fr.jsx(N,{...q}),E?o:c]})});var up=Xl(fr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),dp=Xl(fr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),pp=Xl(fr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function fp(e){return Bo("MuiCheckbox",e)}const hp=Wo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mp=Dl(cp,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Nr(n.size)}`],"default"!==n.color&&t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{[`&.${hp.checked}, &.${hp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${hp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),gp=fr.jsx(dp,{}),bp=fr.jsx(up,{}),yp=fr.jsx(pp,{}),vp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiCheckbox"}),{checkedIcon:r=gp,color:o="primary",icon:i=bp,indeterminate:a=!1,indeterminateIcon:l=yp,inputProps:s,size:c="medium",disableRipple:u=!1,className:d,slots:p={},slotProps:f={},...h}=n,m=a?l:i,g=a?l:r,b={...n,disableRipple:u,color:o,indeterminate:a,size:c},y=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Vi({root:["root",n&&"indeterminate",`color${Nr(r)}`,`size${Nr(o)}`]},fp,t);return{...t,...i}})(b),v=f.input??s,[S,x]=Nc("root",{ref:t,elementType:mp,className:$o(y.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:f,...h},ownerState:b,additionalProps:{type:"checkbox",icon:k.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:k.cloneElement(g,{fontSize:g.props.fontSize??c}),disableRipple:u,slots:p,slotProps:{input:rs("function"==typeof v?v(b):v,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return fr.jsx(S,{...x,classes:y})});function Sp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wp(e){return parseFloat(Ql(e).getComputedStyle(e).paddingRight)||0}function kp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&xp(e,o)})}function Cp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Ep(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Zl(e);return t.body===e?Ql(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Sp(Ql(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wp(r)+e}px`;const t=Zl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wp(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Zl(r).body;else{const t=r.parentElement,n=Ql(r);e="HTML"===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 Lp="data-mui-focusable";const Rp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pp(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rp)).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 Tp(){return!0}function Op(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Pp,isEnabled:a=Tp,open:l}=e,s=k.useRef(!1),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),p=k.useRef(null),f=k.useRef(!1),h=k.useRef(null),m=ns(hd(t),h),g=k.useRef(null);k.useEffect(()=>{l&&h.current&&(f.current=!n)},[n,l]),k.useEffect(()=>{if(s.current=!1,!l||!h.current)return;const e=Od(Zl(h.current)),t=((n=h.current)?n.hasAttribute(Lp)?n:n.querySelector(`[${Lp}]`):null)??h.current;var n;return Jc(h.current,e)||(t.hasAttribute("tabIndex")||t.setAttribute("tabIndex","-1"),f.current&&t.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[l]),k.useEffect(()=>{if(!l||!h.current)return;const e=Zl(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;Od(e)===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;const n=Od(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(Jc(t,n))return;if(r&&n!==c.current&&n!==u.current)return;if(n!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let o=[];if(n!==c.current&&n!==u.current||(o=i(h.current)),o.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=Od(e);t&&"BODY"===t.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 fr.jsxs(k.Fragment,{children:[fr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const Ip=()=>{},Mp=new class{constructor(){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&&xp(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);kp(t,e.mount,e.modalRef,r,!0);const o=Cp(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=Cp(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Ep(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Cp(this.containers,t=>t.modals.includes(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&&xp(e.modalRef,t),kp(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&&xp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dp(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:s,open:c,rootRef:u}=e,d=k.useRef({}),p=k.useRef(null),f=k.useRef(null),h=ns(f,u),[m,g]=k.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const v=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),S=()=>{Mp.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=ts(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zl(p.current).body;Mp.add(v(),e),f.current&&S()}),w=()=>Mp.isTopModal(v()),C=ts(e=>{p.current=e,e&&(c&&w()?S():f.current&&xp(f.current,y))}),E=k.useCallback(()=>{Mp.remove(v(),y)},[y]);k.useEffect(()=>()=>{E()},[E]),k.useEffect(()=>{c?x():b&&o||E()},[c,E,b,o,x]);const L=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),s&&s(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Mc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:L(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:c}},getTransitionProps:()=>({onEnter:Bl(()=>{g(!1),i&&i()},l?.props.onEnter??Ip),onExited:Bl(()=>{g(!0),a&&a(),o&&E()},l?.props.onExited??Ip)}),rootRef:h,portalRef:C,isTopModal:w,exited:m,hasTransition:b}}function _p(e){return Bo("MuiModal",e)}Wo("MuiModal",["root","hidden","backdrop"]);const Np=Dl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Hl(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),qp=Dl(Jd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),jp=k.forwardRef(function(e,t){const n=Ul({name:"MuiModal",props:e}),{BackdropComponent:r=qp,BackdropProps:o,classes:i,className:a,closeAfterTransition:l=!1,children:s,container:c,component:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:S=!1,onClose:x,onTransitionEnter:w,onTransitionExited:C,open:E,slotProps:L={},slots:R={},theme:P,...T}=n,O={...n,closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:v,keepMounted:S},{getRootProps:I,getBackdropProps:M,getTransitionProps:D,portalRef:_,isTopModal:N,exited:q,hasTransition:j}=Dp({...O,rootRef:t}),A={...O,exited:q},z=(e=>{const{open:t,exited:n,classes:r}=e;return Vi({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_p,r)})(A),$={};if(void 0===s.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=D();$.onEnter=e,$.onExited=t}const F={slots:{root:d.Root,backdrop:d.Backdrop,...R},slotProps:{...p,...L}},[B,W]=Nc("root",{ref:t,elementType:Np,externalForwardedProps:{...F,...T,component:u},getSlotProps:I,ownerState:A,className:$o(a,z?.root,!A.open&&A.exited&&z?.hidden)}),[H,U]=Nc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:$o(o?.className,z?.backdrop),ownerState:A});return S||E||j&&!q?fr.jsx(md,{ref:_,container:c,disablePortal:g,children:fr.jsxs(B,{...W,children:[!v&&r?fr.jsx(H,{...U}):null,fr.jsx(Op,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:b,isEnabled:N,open:E,children:k.cloneElement(s,$)})]})}):null});function Ap(e){return Bo("MuiDivider",e)}const zp=Wo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$p=Dl("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]}})(Hl(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Fp=Dl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Hl(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Bp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:l=(o||"vertical"===a?"div":"hr"),flexItem:s=!1,light:c=!1,role:u=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:l,flexItem:s,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Vi({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"]},Ap,r)})(h);return fr.jsx($p,{as:l,className:$o(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?fr.jsx(Fp,{className:m.wrapper,ownerState:h,children:o}):null})});function Wp(e){return Bo("MuiFormControlLabel",e)}Bp&&(Bp.muiSkipListHighlight=!0);const Hp=Wo("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Up=Dl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hp.label}`]:t.label},t.root,t[`labelPlacement${Nr(n.labelPlacement)}`]]}})(Hl(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hp.disabled}`]:{cursor:"default"},[`& .${Hp.label}`]:{[`&.${Hp.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),Vp=Dl("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Hl(({theme:e})=>({[`&.${Hp.error}`]:{color:(e.vars||e).palette.error.main}}))),Gp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:l,disableTypography:s,inputRef:c,label:u,labelPlacement:d="end",name:p,onChange:f,required:h,slots:m={},slotProps:g={},value:b,...y}=n,v=Td(),S=l??a.props.disabled??v?.disabled,x=h??a.props.required,w={disabled:S,required:x};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(w[e]=n[e])});const C=Rd({props:n,muiFormControl:v,states:["error"]}),E={...n,disabled:S,labelPlacement:d,required:x,error:C.error},L=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Vi({root:["root",n&&"disabled",`labelPlacement${Nr(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Wp,t)})(E),R={slots:m,slotProps:{...i,...g}},[P,T]=Nc("typography",{elementType:Xc,externalForwardedProps:R,ownerState:E});let O=u;return null==O||O.type===Xc||s||(O=fr.jsx(P,{component:"span",...T,className:$o(L.label,T?.className),children:O})),fr.jsxs(Up,{className:$o(L.root,o),ownerState:E,ref:t,...y,children:[k.cloneElement(a,w),x?fr.jsxs("div",{children:[O,fr.jsxs(Vp,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):O]})}),Kp=function(e={}){const{createStyledComponent:t=ua,useThemeProps:n=da,useTheme:r=Do,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(ta,ra,na,Yi,oa,ia,ea),l=k.forwardRef(function(e,t){const l=r(),s=qo(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(s,l.breakpoints);const{className:c,children:u,columns:d=12,container:p=!1,component:f="div",direction:h="row",wrap:m="wrap",size:g={},offset:b={},spacing:y=0,rowSpacing:v=y,columnSpacing:S=y,unstable_level:x=0,...w}=s,C=i(g,l.breakpoints,e=>!1!==e),E=i(b,l.breakpoints),L=e.columns??(x?void 0:d),R=e.spacing??(x?void 0:y),P=e.rowSpacing??e.spacing??(x?void 0:v),T=e.columnSpacing??e.spacing??(x?void 0:S),O={...s,level:x,columns:L,container:p,direction:h,wrap:m,spacing:R,rowSpacing:P,columnSpacing:T,size:C,offset:E},I=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:l}=e;return Vi({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...sa(r),...aa(l),...n?la(i,t.breakpoints.keys[0]):[]]},e=>Bo(o,e),{})})(O,l);return fr.jsx(a,{ref:t,as:f,ownerState:O,className:$o(I.root,c),...w,children:k.Children.map(u,e=>k.isValidElement(e)&&Gi(e,["Grid"])&&p&&e.props.container?k.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:Dl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ul({props:e,name:"MuiGrid"}),useTheme:Il});function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Xp(.75)},exited:{opacity:0,transform:Xp(.75)}},Zp={opacity:0,transform:Xp(.75),visibility:"hidden"},Qp=k.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",...m}=e,g=Os(),b=k.useRef(),y=Il(),v=k.useRef(null),S=ns(v,hd(o),t),x=Lc(v,c),w=Lc(v,(e,t)=>{Ec(e);const{duration:n,delay:r,easing:o}=Pc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)}),C=Lc(v,s),E=Lc(v,p),L=Lc(v,e=>{const{duration:t,delay:n,easing:r}=Pc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),u&&u(e)}),R=Lc(v,e=>{e.style.transition="",d&&d(e)});return fr.jsx(Ss,{appear:r,in:a,nodeRef:v,onEnter:w,onEntered:C,onEntering:x,onExit:L,onExited:R,onExiting:E,addEndListener:e=>{"auto"===h&&g.start(b.current||0,e),n&&n(v.current,e)},timeout:"auto"===h?null:h,...m,children:(e,{ownerState:t,...n})=>{const r=Rc(e,a,Jp,Zp,f,o.props.style);return k.cloneElement(o,{style:r,ref:S,...n})}})});function Yp(e){return Bo("MuiIcon",e)}Qp&&(Qp.muiSupportAuto=!0),Wo("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ef=Dl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Nr(n.color)}`],t[`fontSize${Nr(n.fontSize)}`]]}})(Hl(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium",...s}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:l},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Vi({root:["root","inherit"!==t&&`color${Nr(t)}`,`fontSize${Nr(n)}`]},Yp,r)})(c);return fr.jsx(ef,{as:a,className:$o(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...s})});function nf(e){return Bo("MuiInputAdornment",e)}tf.muiName="Icon";const rf=Wo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var of;const af=Dl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Nr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Hl(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${rf.positionStart}&:not(.${rf.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),lf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c,...u}=n,d=Td()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p},h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Vi({root:["root",n&&"disablePointerEvents",o&&`position${Nr(o)}`,a,r&&"hiddenLabel",i&&`size${Nr(i)}`]},nf,t)})(f);return fr.jsx(Pd.Provider,{value:null,children:fr.jsx(af,{as:i,ownerState:f,className:$o(h.root,o),ref:t,...u,children:"string"!=typeof r||l?fr.jsxs(k.Fragment,{children:["start"===s?of||(of=fr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):fr.jsx(Xc,{color:"textSecondary",children:r})})})}),sf=k.createContext({});function cf(e){return Bo("MuiList",e)}Wo("MuiList",["root","padding","dense","subheader"]);const uf=Dl("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),df=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s,...c}=n,u=k.useMemo(()=>({dense:a}),[a]),d={...n,component:i,dense:a,disablePadding:l},p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Vi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cf,t)})(d);return fr.jsx(sf.Provider,{value:u,children:fr.jsxs(uf,{as:i,className:$o(p.root,o),ref:t,ownerState:d,...c,children:[s,r]})})});function pf(e){return Bo("MuiListItem",e)}Wo("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const ff=Wo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function hf(e){return Bo("MuiListItemSecondaryAction",e)}Wo("MuiListItemSecondaryAction",["root","disableGutters"]);const mf=Dl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),gf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=k.useContext(sf),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Vi({root:["root",t&&"disableGutters"]},hf,n)})(a);return fr.jsx(mf,{className:$o(l.root,r),ownerState:a,ref:t,...o})});gf.muiName="ListItemSecondaryAction";const bf=Dl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Hl(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${ff.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),yf=Dl("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),vf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:a,components:l={},componentsProps:s={},ContainerComponent:c="li",ContainerProps:{className:u,...d}={},dense:p=!1,disableGutters:f=!1,disablePadding:h=!1,divider:m=!1,secondaryAction:g,slotProps:b={},slots:y={},...v}=n,S=k.useContext(sf),x=k.useMemo(()=>({dense:p||S.dense||!1,alignItems:r,disableGutters:f}),[r,S.dense,p,f]),w=k.useRef(null),C=k.Children.toArray(o),E=C.length&&Gi(C[C.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:r,dense:x.dense,disableGutters:f,disablePadding:h,divider:m,hasSecondaryAction:E},R=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Vi({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},pf,n)})(L),P=ns(w,t),T={slots:y,slotProps:b},[O,I]=Nc("secondaryAction",{elementType:gf,externalForwardedProps:T,ownerState:L,className:R.secondaryAction}),M=y.root||l.Root||bf,D=b.root||s.root||{},_={className:$o(R.root,D.className,i),...v};let N=a||"li";return E?(N=_.component||a?N:"div","li"===c&&("li"===N?N="div":"li"===_.component&&(_.component="div")),fr.jsx(sf.Provider,{value:x,children:fr.jsxs(yf,{as:c,className:$o(R.container,u),ref:P,ownerState:L,...d,children:[fr.jsx(M,{...D,...!Tc(M)&&{as:N,ownerState:{...L,...D.ownerState}},..._,children:C}),C.pop()]})})):fr.jsx(sf.Provider,{value:x,children:fr.jsxs(M,{...D,as:N,ref:P,...!Tc(M)&&{ownerState:{...L,...D.ownerState}},..._,children:[C,g&&fr.jsx(O,{...I,children:g})]})})});function Sf(e){return Bo("MuiListItemIcon",e)}const xf=Wo("MuiListItemIcon",["root","alignItemsFlexStart"]),wf=Dl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Hl(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),kf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=k.useContext(sf),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Vi({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Sf,n)})(a);return fr.jsx(wf,{className:$o(l.root,r),ownerState:a,ref:t,...o})}),Cf=Wo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Rf(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]:n.startsWith(t.keys.join("")))}function Pf(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")&&Rf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Tf=k.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu",...d}=e,p=k.useRef(null),f=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ri(()=>{r&&p.current.focus()},[r]),k.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Sp(Ql(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=ns(p,t);let m=-1;k.Children.forEach(i,(e,t)=>{k.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=k.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),k.cloneElement(e,t)}return e});return fr.jsx(df,{role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=Od(Zl(t));if("ArrowDown"===n)e.preventDefault(),Pf(t,r,s,l,Ef);else if("ArrowUp"===n)e.preventDefault(),Pf(t,r,s,l,Lf);else if("Home"===n)e.preventDefault(),Pf(t,null,s,l,Ef);else if("End"===n)e.preventDefault(),Pf(t,null,s,l,Lf);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&&Rf(r,o);o.previousKeyMatched&&(s||Pf(t,r,!1,l,Ef,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})});function Of(e){return Bo("MuiPopover",e)}function If(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Mf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Df(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function _f(e){return"function"==typeof e?e():e}Wo("MuiPopover",["root","paper"]);const Nf=Dl(jp,{name:"MuiPopover",slot:"Root"})({}),qf=Dl(Ac,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},slots:m={},slotProps:g={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:v="auto",TransitionProps:S={},disableScrollLock:x=!1,...w}=n,C=k.useRef(),E={...n,anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,transformOrigin:b,TransitionComponent:y,transitionDuration:v,TransitionProps:S},L=(e=>{const{classes:t}=e;return Vi({root:["root"],paper:["paper"]},Of,t)})(E),R=k.useCallback(()=>{if("anchorPosition"===l)return a;const e=_f(o),t=(e&&1===e.nodeType?e:Zl(C.current).body).getBoundingClientRect();return{top:t.top+If(t,i.vertical),left:t.left+Mf(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),P=k.useCallback(e=>({vertical:If(e,b.vertical),horizontal:Mf(e,b.horizontal)}),[b.horizontal,b.vertical]),T=k.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:Df(n)};const r=R();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Ql(_f(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!==p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!==p&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!==p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Df(n)}},[o,l,R,P,p]),[O,I]=k.useState(f),M=k.useCallback(()=>{const e=C.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[T]);k.useEffect(()=>(x&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[o,x,M]);k.useEffect(()=>{f&&M()}),k.useImperativeHandle(r,()=>f?{updatePosition:()=>{M()}}:null,[f,M]),k.useEffect(()=>{if(!f)return;const e=Jl(()=>{M()}),t=Ql(_f(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,f,M]);let D=v;const _={slots:{transition:y,...m},slotProps:{transition:S,paper:h,...g}},[N,q]=Nc("transition",{elementType:Qp,externalForwardedProps:_,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:f}});"auto"!==v||N.muiSupportAuto||(D=void 0);const j=u||(o?Zl(_f(o)).body:void 0),[A,{slots:z,slotProps:$,...F}]=Nc("root",{ref:t,elementType:Nf,externalForwardedProps:{..._,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:rs("function"==typeof g.backdrop?g.backdrop(E):g.backdrop,{invisible:!0})},container:j,open:f},ownerState:E,className:$o(L.root,c)}),[B,W]=Nc("paper",{ref:C,className:L.paper,elementType:qf,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:E});return fr.jsx(A,{...F,...!Tc(A)&&{slots:z,slotProps:$,disableScrollLock:x},children:fr.jsx(N,{...q,timeout:D,children:fr.jsx(B,{...W,children:s})})})});function Af(e){return Bo("MuiMenuItem",e)}const zf=Wo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$f=k.createContext(null);var Ff;$f.Provider;const Bf=Dl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ml})({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%"}),Wf=Dl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ml})(Hl(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const Hf=Dl(zd,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jd})(Hl(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hd.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Hd.focused} .${Hd.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{[`&.${Hd.focused} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hd.error} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hd.disabled} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),Uf=Dl(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=null!=o&&""!==o,s={...e,notched:i,withLabel:l};return fr.jsx(Bf,{"aria-hidden":!0,className:r,ownerState:s,...a,children:fr.jsx(Wf,{ownerState:s,children:l?fr.jsx("span",{children:o}):Ff||(Ff=fr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Hl(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Vf=Dl($d,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ad})(Hl(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Gf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:s,slots:c={},slotProps:u={},type:d="text",...p}=n,f=(e=>{const{classes:t}=e,n=Vi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wd,t);return{...t,...n}})(n),h=Td(),m=Rd({props:n,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...n,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:o,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:d},b=c.root??r.Root??Hf,y=c.input??r.Input??Vf,[v,S]=Nc("notchedOutline",{elementType:Uf,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:null!=a&&""!==a&&m.required?fr.jsxs(k.Fragment,{children:[a," ","*"]}):a}});return fr.jsx(Bd,{slots:{root:b,input:y},slotProps:u,renderSuffix:e=>fr.jsx(v,{...S,notched:void 0!==s?s:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:l,ref:t,type:d,...p,classes:{...f,notchedOutline:null}})});Gf.muiName="Input";const Kf=Dl(Fs,{shouldForwardProp:e=>Ml(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]}})(Hl(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${zf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${zf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${zf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zp.inset}`]:{marginLeft:52},[`& .${Cf.root}`]:{marginTop:0,marginBottom:0},[`& .${Cf.inset}`]:{paddingLeft:36},[`& .${xf.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${xf.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d,...p}=n,f=k.useContext($f),h=k.useContext(sf),m=k.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),g=k.useRef(null);ri(()=>{r&&g.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(g.current,f)},[r]);const b={...n,dense:m.dense,divider:a,disableGutters:l},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Vi({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Af,a);return{...a,...l}})(n),v=ns(g,t),{root:S,...x}=y;let w;return n.disabled||(w=void 0!==u?u:-1),fr.jsx(sf.Provider,{value:m,children:fr.jsx(Kf,{ref:v,role:c,tabIndex:w,component:o,focusVisibleClassName:$o(y.focusVisible,s),className:$o(y.root,d),...p,ownerState:b,classes:x})})});var Jf=Xl(fr.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Zf=Xl(fr.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));const Qf=Dl("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ml})({position:"relative",display:"flex"}),Yf=Dl(Jf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),eh=Dl(Zf,{name:"MuiRadioButtonIcon"})(Hl(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function th(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return fr.jsxs(Qf,{className:n.root,ownerState:o,children:[fr.jsx(Yf,{fontSize:r,className:n.background,ownerState:o}),fr.jsx(eh,{fontSize:r,className:n.dot,ownerState:o})]})}const nh=k.createContext(void 0);function rh(e){return Bo("MuiRadio",e)}const oh=Wo("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ih=Dl(cp,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Nr(n.size)}`],t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${oh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${oh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));const ah=fr.jsx(th,{checked:!0}),lh=fr.jsx(th,{}),sh=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=ah,color:i="primary",icon:a=lh,name:l,onChange:s,size:c="medium",className:u,disabled:d,disableRipple:p=!1,slots:f={},slotProps:h={},inputProps:m,...g}=n,b=Td();let y=d;b&&void 0===y&&(y=b.disabled),y??=!1;const v={...n,disabled:y,disableRipple:p,color:i,size:c},S=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Nr(n)}`,"medium"!==r&&`size${Nr(r)}`]};return{...t,...Vi(o,rh,t)}})(v),x=k.useContext(nh);let w=r;const C=Bl(s,x&&x.onChange);let E=l;x&&(void 0===w&&(w=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(x.value,n.value)),void 0===E&&(E=x.name));const L=h.input??m,[R,P]=Nc("root",{ref:t,elementType:ih,className:$o(S.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...g},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),C(t,...n)}}),ownerState:v,additionalProps:{type:"radio",icon:k.cloneElement(a,{fontSize:a.props.fontSize??c}),checkedIcon:k.cloneElement(o,{fontSize:o.props.fontSize??c}),disabled:y,name:E,checked:w,slots:f,slotProps:{input:"function"==typeof L?L(v):L}}});return fr.jsx(R,{...P,classes:S})});function ch(e){return Bo("MuiTooltip",e)}const uh=Wo("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const dh=Dl(wd,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Hl(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${uh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${uh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${uh.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${uh.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${uh.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${uh.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${uh.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${uh.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ph=Dl("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Nr(n.placement.split("-")[0])}`]]}})(Hl(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${uh.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${uh.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${uh.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${uh.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${uh.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),fh=Dl("span",{name:"MuiTooltip",slot:"Arrow"})(Hl(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hh=!1;const mh=new Ts;let gh={x:0,y:0};function bh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const yh=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:l={},describeChild:s=!1,disableFocusListener:c=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:p=!1,enterDelay:f=100,enterNextDelay:h=0,enterTouchDelay:m=700,followCursor:g=!1,id:b,leaveDelay:y=0,leaveTouchDelay:v=1500,onClose:S,onOpen:x,open:w,placement:C="bottom",PopperComponent:E,PopperProps:L={},slotProps:R={},slots:P={},title:T,TransitionComponent:O,TransitionProps:I,...M}=n,D=k.isValidElement(o)?o:fr.jsx("span",{children:o}),_=Il(),N=ki(),[q,j]=k.useState(),[A,z]=k.useState(null),$=k.useRef(!1),F=d||g,B=Os(),W=Os(),H=Os(),U=Os(),[V,G]=es({controlled:w,default:!1,name:"Tooltip",state:"open"});let K=V;const X=Ti(b),J=k.useRef(),Z=ts(()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),U.clear()});k.useEffect(()=>Z,[Z]);const Q=e=>{mh.clear(),hh=!0,G(!0),x&&!K&&x(e)},Y=ts(e=>{mh.start(800+y,()=>{hh=!1}),G(!1),S&&K&&S(e),B.start(_.transitions.duration.shortest,()=>{$.current=!1})}),ee=e=>{$.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),W.clear(),H.clear(),f||hh&&h?W.start(hh?h:f,()=>{Q(e)}):Q(e))},te=e=>{W.clear(),H.start(y,()=>{Y(e)})},[,ne]=k.useState(!1),re=e=>{const t=e?.target??q;if(!t||!os(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{q||j(e.currentTarget),os(e.target)&&(ne(!0),ee(e))},ie=e=>{$.current=!0;const t=D.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{ie(e),H.clear(),B.clear(),Z(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(m,()=>{document.body.style.WebkitUserSelect=J.current,ee(e)})},le=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),Z(),H.start(v,()=>{Y(e)})};k.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Y(e)}},[Y,K]);const se=ns(hd(D),j,t);T||0===T||(K=!1);const ce=k.useRef(),ue={},de="string"==typeof T;s?(ue.title=K||!de||u?null:T,ue["aria-describedby"]=K?X:null):(ue["aria-label"]=de?T:null,ue["aria-labelledby"]=K&&!de?X:null);const pe={...ue,...M,...D.props,className:$o(M.className,D.props.className),onTouchStart:ie,ref:se,...g?{onMouseMove:e=>{const t=D.props;t.onMouseMove&&t.onMouseMove(e),gh={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};p||(pe.onTouchStart=ae,pe.onTouchEnd=le),u||(pe.onMouseOver=bh(ee,pe.onMouseOver),pe.onMouseLeave=bh(te,pe.onMouseLeave),F||(fe.onMouseOver=ee,fe.onMouseLeave=te)),c||(pe.onFocus=bh(oe,pe.onFocus),pe.onBlur=bh(re,pe.onBlur),F||(fe.onFocus=oe,fe.onBlur=re));const he={...n,isRtl:N,arrow:r,disableInteractive:F,placement:C,PopperComponentProp:E,touch:$.current},me="function"==typeof R.popper?R.popper(he):R.popper,ge=k.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(A),options:{element:A,padding:4}}];return L.popperOptions?.modifiers&&(e=e.concat(L.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...L.popperOptions,...me?.popperOptions,modifiers:e}},[A,L.popperOptions,me?.popperOptions]),be=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Vi({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Nr(i.split("-")[0])}`],arrow:["arrow"]},ch,t)})(he),ye="function"==typeof R.transition?R.transition(he):R.transition,ve={slots:{popper:a.Popper,transition:a.Transition??O,tooltip:a.Tooltip,arrow:a.Arrow,...P},slotProps:{arrow:R.arrow??l.arrow,popper:{...L,...me??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...I,...ye??l.transition}}},[Se,xe]=Nc("popper",{elementType:dh,externalForwardedProps:ve,ownerState:he,className:$o(be.popper,L?.className)}),[we,ke]=Nc("transition",{elementType:Qp,externalForwardedProps:ve,ownerState:he}),[Ce,Ee]=Nc("tooltip",{elementType:ph,className:be.tooltip,externalForwardedProps:ve,ownerState:he}),[Le,Re]=Nc("arrow",{elementType:fh,className:be.arrow,externalForwardedProps:ve,ownerState:he,ref:z});return fr.jsxs(k.Fragment,{children:[k.cloneElement(D,pe),fr.jsx(Se,{as:E??wd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:gh.y,left:gh.x,right:gh.x,bottom:gh.y,width:0,height:0})}:q,popperRef:ce,open:!!q&&K,id:X,transition:!0,...fe,...xe,popperOptions:ge,children:({TransitionProps:e})=>fr.jsx(we,{timeout:_.transitions.duration.shorter,...e,...ke,children:fr.jsxs(Ce,{...Ee,children:[T,r?fr.jsx(Le,{...Re}):null]})})})]})});function vh(){const{useModelStore:e}=k.useContext(vc).modelStore;return e()}function Sh(e,t,...n){const r=t?`${t.id}/${JSON.stringify(e)}`:null,[o]=vh(),[i]=function(){const{useRpcRequestSessionModelStore:e}=k.useContext(vc).modelStore;return e()}(),[a,l]=k.useState();return k.useEffect(()=>{if(!t)return;(async()=>{let n=i.get(r);n||(n=t.createSessionObject(e),i.set(r,n));const a=await n;o.set(r,a),l(a)})()},[t,...n]),[a]}const xh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function wh(e){return Sh(xh,e)}const kh=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=u(u({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:u({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=u(u({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Ch(e,t){const n=e?`${e.id}`:null,[r]=function(){const{useRpcResultStore:e}=k.useContext(vc).modelStore;return e()}(),[o,i]=k.useReducer(kh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=k.useContext(vc).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=k.useContext(vc).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await(l=0,new Promise(e=>{setTimeout(e,l)}));const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}var l},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return k.useEffect(()=>{e&&c()},[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function Eh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Ch(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Lh(e){return Ch(e,"getAppLayout")}function Rh(){const[e,t]=k.useState(),[n,r]=k.useState(),o=k.useCallback(e=>{e&&t(e)},[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return k.useLayoutEffect(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}},[e]),[o,n,e]}const Ph="singlepublic-pinnedItems",Th=e=>{var t;const[n]=(e=>{const[t,n]=k.useState(null),[r,o]=k.useState(null),[i]=vh();return k.useEffect(()=>{let t=!0,r=()=>{};if(e)return async function(){try{const a=`${e.id}-${Ph}`;let l=i.get(a);if(!l){if(l=await(async(e,t)=>{var n;const r=!(null===(n=(await e.getLayout()).permissions)||void 0===n||!n.createMasterobject);let o=null;try{o=r?await e.getOrCreateObject({qInfo:{qType:"singlepublic",qId:t}}):await e.getObject(t)}catch(e){}return o})(e,Ph),!t)return;if(l){i.set(a,l);const e=()=>{i.clear(a)};l.once("closed",e),r=()=>{l.removeListener("closed",e)}}}t&&(o(null),n(l))}catch(e){t&&(o(e instanceof Error?e:new Error(String(e))),n(null))}}(),()=>{t=!1,r()}},[e,i]),[t,r]})(e),[r]=Ch(n,"getLayout");return[null!==(t=null==r?void 0:r.pinnedItems)&&void 0!==t?t:[]]},Oh=(e,t,n)=>{const[r,o]=k.useState(void 0),[i,a]=k.useState(void 0),[l]=vh();return k.useEffect(()=>{let r=!0,i=()=>{};if("function"==typeof(null==e?void 0:e.getObject))return async function(){try{const s=`${e.id}-${t}`;let c=l.get(s);if(!c){try{c=await e.getObject(t)}catch(t){if(2!==t.code||"Object not found"!==t.message||!n)throw t;c=await e.createSessionObject(n)}if(!r)return;l.set(s,c);const o=()=>{l.clear(s)};c.once("closed",o),i=()=>{c.removeListener("closed",o)}}r&&(a(void 0),o(c))}catch(e){r&&(a(e instanceof Error?e:new Error(String(e))),o(void 0))}}(),()=>{r=!1,i()}},[e,t,l]),[r,i]},Ih={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},Mh={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Dh="qField",_h="id",Nh=(e,t)=>{const n=e.selections[0],r=t.selections[0],o=!!n.qOneAndOnlyOne;return o===!!r.qOneAndOnlyOne?n.qSortIndex-r.qSortIndex:o?-1:1},qh=(e,t,n,r)=>{if(!e||!r)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>Dh in n&&n[Dh]?e.some(e=>e.qName===n[Dh]):!(!(_h in n)||!n[_h])&&t.some(e=>{var t,r;return(null===(t=e.qInfo)||void 0===t?void 0:t.qId)===n[_h]&&"N"===(null===(r=e.qData)||void 0===r?void 0:r.grouping)})))(e,r,t),i=[],a=[...n];for(let e=0;e<o.length;e++){var l;const t=o[e],n=!(!(_h in t)||!t[_h]),s=n?r.find(e=>{var n;return(null===(n=e.qInfo)||void 0===n?void 0:n.qId)===t[_h]}):null,c=n?null==s||null===(l=s.qData)||void 0===l||null===(l=l.info[0])||void 0===l?void 0:l.qName:t[Dh],d=a.findIndex(e=>{var r;return n&&(null===(r=e.selections[0].qDimensionReferences)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.qId)===t[_h]||!n&&(e.selections[0].qField===c||e.selections[0].qReadableName===c)});if(!(-1!==i.findIndex(e=>{var t;return(null===(t=e.selections)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.qField)===c&&!e.isPinned})))if(-1===d){const t=u(u({},o[e]),{},{isPinned:!0,states:["$"]});n&&s&&(t.qField=c,t.qName=s.qData.labelExpression||s.qData.title||c),i.push(t)}else i.push(a[d]),a.splice(d,1)}return[...i,...a]};function jh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ah({size:e,style:t={},viewBox:n="0 0 16 16",shapes:r=[]}){const o=u({fontSize:jh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},t);return fr.jsx("i",{style:o,children:fr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:n,fill:"currentColor",children:r.map(({type:e,attrs:t},n)=>fr.jsx(e,u({},t),n))})})}var zh=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var $h=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Fh=e=>u(u({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Bh=e=>Ah(Fh(e));var Wh=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Hh=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Uh=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Hh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Hh(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Wh(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(e,t){return c[t]!==e}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then(function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}})},o=0;o<e.length;o+=2)r(o)}}]),t}(k.PureComponent);const Vh=["S","XS"],Gh=e=>e.reduce((e,t)=>e.concat(t));function Kh(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Vh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Gh(t)}async function Xh({selections:e,elemNumbers:t,toggle:n,isSingleSelect:r}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const i=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",i,n]})}catch(e){o=!1}o||(r?e.cancel():e.clear())}return o}const Jh="RowColumn",Zh={row:`${Jh}-row`,rowBorderBottom:`${Jh}-rowBorderBottom`,column:`${Jh}-column`,fieldRoot:`${Jh}-fieldRoot`,cell:`${Jh}-cell`,labelText:`${Jh}-labelText`,labelDense:`${Jh}-labelDense`,highlighted:`${Jh}-highlighted`,checkboxLabel:`${Jh}-checkboxLabel`,icon:`${Jh}-icon`,S:`${Jh}-S`,XS:`${Jh}-XS`,A:`${Jh}-A`,X:`${Jh}-X`,frequencyCount:`${Jh}-frequencyCount`,barContainer:`${Jh}-barContainer`,bar:`${Jh}-bar`,barSelected:`${Jh}-barSelected`,barWithCheckbox:`${Jh}-barWithCheckbox`,barSelectedWithCheckbox:`${Jh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Jh}-excludedTextWithCheckbox`},Qh=`.${Zh.fieldRoot}`,Yh=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function em({selectionState:e,selections:t,checkboxes:n=!1,doc:r=document,loaderRef:o}){var i;const a=k.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});k.useEffect(()=>{var e;if(null===(e=o.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),i=o.current._listRef._outerRef;return i.addEventListener("gesturestart",t),i.addEventListener("gesturechange",n),i.addEventListener("gestureend",r),()=>{i.removeEventListener("gesturestart",t),i.removeEventListener("gesturechange",n),i.removeEventListener("gestureend",r)}},[null===(i=o.current)||void 0===i||null===(i=i._listRef)||void 0===i?void 0:i._outerRef]);const l=async()=>{var n;return(null===(n=e.selectDisabled)||void 0===n||!n.call(e))&&(e.setSelectableValuesUpdating(),Xh({selections:t,elemNumbers:a.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:a.current.toggle}))},s=(t,n)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[{qElemNumber:t}]=e;return t});return t});return Gh(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r}),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([t,n],r)},c=t=>{const{startElemNumber:n}=a.current;if(n===t)return;const r=s(a.current.startElemNumber,t);e.updateItems(r,!0,a.current.elemNumbers)},u=k.useCallback(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),r=!e.isSingleSelect&&Yh(t.nativeEvent);a.current.elemNumbers=[n],a.current.toggle=r,r||e.clearItemStates(!0),e.updateItem(n),a.current.active=!1,l()},[]),d=k.useCallback(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),r=!e.isSingleSelect&&Yh(t);a.current.isRange=!1,a.current.startElemNumber=n,a.current.elemNumbers=[n],a.current.toggle=r,a.current.active=!0,r||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(a.current.active=!1,l()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),p=k.useCallback(e=>{if(0===e.button&&a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}l()}},[]),f=k.useCallback(e=>{0===e.button&&a.current.active&&(a.current.active=!1,l())},[]),h=k.useCallback(t=>{if(!a.current.active)return;a.current.isRange||(a.current.isRange=!0,e.isSelected(a.current.startElemNumber)||(e.updateItem(a.current.startElemNumber,!0),a.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=k.useCallback(t=>{var n,r;if(a.current.active||a.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void l();const o=Number(null===(n=t.touches[0].target)||void 0===n||null===(n=n.closest(Qh))||void 0===n?void 0:n.getAttribute("data-n")),i=Number(null===(r=t.touches[1].target)||void 0===r||null===(r=r.closest(Qh))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void l();a.current.active=!0;s(o,i).length<7&&(a.current.touchRangeSmall=!0),a.current.elemNumbers=[],a.current.touchElemNumbers=[o,i]},[]),g=k.useCallback(()=>{if(2!==a.current.touchElemNumbers.length)return;if(a.current.touchRangeSmall)return a.current.touchRangeSmall=!1,a.current.touchElemNumbers=[],void(a.current.active=!1);const[e,t]=a.current.touchElemNumbers;a.current.startElemNumber=e,c(t),a.current.touchElemNumbers=[],a.current.active=!1,a.current.toggle=!0,l()},[]);k.useEffect(()=>(r.addEventListener("mouseup",f),()=>{r.removeEventListener("mouseup",f)}),[f]),k.useEffect(()=>{const n=()=>{e.clearItemStates(!1)},r=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",r),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",r)}},[t]);const b={};return n?Object.assign(b,{onChange:u}):Object.assign(b,{onMouseUp:p,onMouseDown:d,onMouseEnter:h,onTouchStart:m,onTouchEnd:g}),{interactionEvents:b,select:async(n=[],r=!1,o=void 0)=>{var i;if(null!==(i=e.selectDisabled)&&void 0!==i&&i.call(e))return!1;const a=!e.isSingleSelect&&Yh(null==o?void 0:o.nativeEvent);a||e.clearItemStates(!0);const l=[];return e.updateItems(n,r,l),e.setSelectableValuesUpdating(),Xh({selections:t,elemNumbers:r?l:n,isSingleSelect:e.isSingleSelect,toggle:a})}}}const tm=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var nm=e=>Ah(tm(e));const rm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,om=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||rm(e))&&t;const im=({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?Zh.column:Zh.row];t||o.push(Zh.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Zh.XS:Zh.S;break;case"S":case"L":n=Zh.S;break;case"A":n=!!t&&Zh.A;break;case"X":case"XL":n=!!t&&Zh.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o},am=e=>e.filter(e=>!!e).join(" ").trim(),lm=e=>e||"-",sm=["backgroundColor"],cm=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>{if("P"===t)return`${e.freqMinWidth}px`;return n&&!r?"max-content":"25%"},um=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,dm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${Zh.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${Zh.labelText}`]:{color:i},[`& .${Zh.icon}`]:{color:i}}},pm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fm=Dl("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:r,dense:o,direction:i,sizes:a,frequencyMode:l,freqHitsValue:s,styles:c})=>{const p=c.content,{backgroundColor:f}=p,h=d(p,sm),m=dm({styles:c,checkboxes:t,selectionState:"selected"}),g=dm({styles:c,checkboxes:t,selectionState:"excluded"}),b={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${Zh.row}`]:u({flexWrap:"nowrap"},c.content),[`& .${Zh.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${Zh.column}`]:u({flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`},c.content),[`& .${Zh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Zh.labelText}`]:u(u({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},pm),h),[`& .${Zh.labelDense}`]:{lineHeight:"18px"},[`& .${Zh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Zh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":u(u({},pm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},[`& .${Zh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Zh.S}`]:u(u({},m),{},{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0}),[`& .${Zh.XS}`]:u(u({},dm({styles:c,checkboxes:t,selectionState:"selectedExcluded"})),{},{border:n?"none":void 0}),[`& .${Zh.A}`]:u(u({},dm({styles:c,checkboxes:t,selectionState:"alternative"})),{},{border:n?"none":void 0}),[`& .${Zh.X}`]:u(u({},g),{},{border:n?"none":void 0}),[`& .${Zh.X}, & .${Zh.XS}`]:{border:n?"none":void 0,[`& .${Zh.barSelected} .bar-filled`]:u({},b)},[`& .${Zh.frequencyCount}`]:u(u({zIndex:3,justifyContent:"flex-end"},pm),{},{flex:`0 0 ${cm({sizes:a,frequencyMode:l,isGridMode:n,freqHitsValue:s})}`,minWidth:!n&&"P"!==l&&s?a.freqMinWidth:"max-content",maxWidth:um({sizes:a,frequencyMode:l,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),[`&.${Zh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Zh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":u({},b)},[`& .${Zh.barSelected}`]:{"& .bar-filled":u({},y)},[`& .${Zh.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${Zh.barSelectedWithCheckbox}`]:{"& .bar-filled":u(u({},y),{},{backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected})},[`& .${Zh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}});var hm=C.memo(fm);const mm="ListBoxCheckbox",gm={cbIcon:`${mm}-cbIcon`,cbIconChecked:`${mm}-cbIconChecked`,cbIconExcluded:`${mm}-cbIconExcluded`,cbIconAlternative:`${mm}-cbIconAlternative`,checkbox:`${mm}-checkbox`,dense:`${mm}-dense`},bm=Dl(vp,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${gm.cbIcon}`]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},[`& .${gm.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${gm.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${gm.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${gm.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${gm.dense}`]:{padding:"4px 8px"}})),ym=(e,t=!0,n=!1)=>fr.jsx("span",{className:e.cbIcon,children:n&&fr.jsx("span",{className:t&&n?e.cbIconExcluded:""})});function vm({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:l}){return fr.jsx(bm,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[gm.checkbox,r&&gm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:ym(gm,a,o),checkedIcon:fr.jsx("span",{className:gm.cbIconChecked}),styles:i})}const Sm={radioButton:"ListBoxRadioButton-radioButton"},xm=Dl(sh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Sm.radioButton}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function wm({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return fr.jsx(xm,{checked:t,onChange:e,value:n,name:n,className:Sm.radioButton,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}function km({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return fr.jsx(Xc,{component:"span",variant:"body2",className:am([Zh.labelText,t&&Zh.labelDense,n&&om({cell:o,checkboxes:r})&&Zh.excludedTextWithCheckbox]),align:i,dir:"auto",children:fr.jsx("span",{children:e})})}function Cm({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?fr.jsx(km,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e}function Em({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}){const p=fr.jsx(vm,{onChange:e,label:t,checked:r,dense:o,excluded:rm(i),isGridCol:a,showGray:l,dataN:n,styles:d}),f=fr.jsx(wm,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return fr.jsx(Gp,{control:s?f:p,className:Zh.checkboxLabel,label:fr.jsx(Cm,{label:t,dense:o,showGray:l,checkboxes:c,cell:i,valueTextAlign:u})},n)}function Lm({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>fr.jsx("span",{id:n,className:t?Zh.highlighted:"",children:e}));return fr.jsx(km,{label:o,dense:t,showGray:n,checkboxes:r})}function Rm({onChange:e,labels:t,checkboxes:n,dense:r,showGray:o,qElemNumber:i,isSelected:a,cell:l,isGridCol:s,isSingleSelect:c,valueTextAlign:u,styles:d}){const p=fr.jsx(Lm,{labels:t,dense:r,showGray:o,checkboxes:n});return n?fr.jsx(Em,{onChange:e,label:p,qElemNumber:i,isSelected:a,dense:r,cell:l,isGridCol:s,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:u,styles:d}):p}var Pm=C.memo(function({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}){return c?fr.jsx(Em,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}):fr.jsx(km,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})});function Tm({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!(e&&t&&"-"!==lm(e)))return;const i=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),r="%"===n.substring(n.length-1),o=parseFloat(r?n:e);return`${r?o:o/t*100}%`})({qFrequency:e,frequencyMax:o});return fr.jsx(ip,{className:am([Zh.bar,n&&Zh.barWithCheckbox,r&&(n?Zh.barSelectedWithCheckbox:Zh.barSelected)]),children:fr.jsx(ip,{className:"bar-filled",width:i})})}function Om({cell:e,checkboxes:t,dense:n,showGray:r}){const o=lm(null==e?void 0:e.qFrequency);return fr.jsx(Kp,{style:{display:"flex",alignItems:"center"},className:Zh.frequencyCount,"aria-label":o,title:o,children:fr.jsx(Xc,{noWrap:!0,color:"inherit",variant:"body2",className:am([n&&Zh.labelDense,Zh.labelText,r&&om({cell:e,checkboxes:t})&&Zh.excludedTextWithCheckbox]),children:o})})}function Im({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:r?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Mm=Dl(Kp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i})=>{const a="padding"+("rtl"===o?"Left":"Right");return{[`&.${Zh.fieldRoot}`]:u(u({},Im({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i})),{},{[a]:r?"8px":void 0})}});const Dm=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===Dm.ARROW_UP||e===Dm.ARROW_DOWN||e===Dm.ARROW_LEFT||e===Dm.ARROW_RIGHT});function _m(e){null==e||e.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Nm(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function qm({containerRef:e,enabled:t}){const[n,r]=k.useState(!1),o={enabled:t,active:n,innerTabStops:!t||n,blur(n){var o;if(!t)return;r(!1);const i=Nm(e.current)||(null===(o=e.current)||void 0===o?void 0:o.parentElement);var a;null==(a=e.current)||a.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),_m(e.current),n&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!t)return;r(!0);const n=e.current,o=null==n?void 0:n.querySelector(".search input"),i=null==n?void 0:n.querySelector(".value.last-focused"),a=null==n?void 0:n.querySelector(".value.selector, .value"),l=null==n?void 0:n.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==n?void 0:n.querySelector("#listbox-unlock-button"),c=(null==n?void 0:n.querySelector(".listbox-cyclic-button"))||o||i||a||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return o}const jm=e=>+e.getAttribute("data-n"),Am=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},zm=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),_m(e),o},$m=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},Fm=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Nm(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{_m(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}};function Bm({select:e,selectAll:t,onCtrlF:n,confirm:r,cancel:o,setScrollPosition:i,focusListItems:a,keyboard:l,isModal:s,rowCount:c,columnCount:u,rowIndex:d,columnIndex:p,layoutOrder:f}){const h=(e,t,n=!1)=>{if(e===Dm.ARROW_LEFT||e===Dm.ARROW_RIGHT||"number"!=typeof d||"number"!=typeof p){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:r,layoutOrder:o,keyCode:i,numCells:a})=>{const l=e=>{let t;return"row"===o?(t=a%r,e<t?n:n-1):(t=a%n,e<r-1?n:t)};let s=e,c=t;if(i===Dm.ARROW_DOWN)if(e>=l(t)-1){if(t===r-1)return-1;s=0,c=t+1}else s=e+1;else if(0===e){if(0===t)return-1;s=l(t-1)-1,c=t-1}else s=e-1;if("row"===o)return s*r+c;const u=a%n;return 0===u||s<u?s*r+c:(s-u)*(r-1)+c+u*r})({rowIndex:d,columnIndex:p,rowCount:c,columnCount:u,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let m=!1;const g=e=>{m=e};return c=>{let u;const{currentTarget:d,nativeEvent:p}=c,{keyCode:f,shiftKey:b=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(f){case Dm.TAB:{const e=d.closest(".listbox-container"),t=void 0!==s?s():void 0;d.classList.add("last-focused");if(!(null!=l&&l.enabled)){if(!t)return;return l.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){Am(e)||$m(e)||(t?l.focusSelection():Fm(c,l));break}l.focusSelection()||$m(e)||Am(e)||(d.blur(),Fm(c,l));break}case Dm.SHIFT:g(!0);break;case Dm.SPACE:e([jm(d)],!1,c);break;case Dm.ARROW_DOWN:case Dm.ARROW_RIGHT:u=h(f,d,!0),b&&u&&(m&&(e([jm(d)],!0),g(!1)),e([jm(u)],!0));break;case Dm.ARROW_UP:case Dm.ARROW_LEFT:u=h(f,d,!1),b&&u&&(m&&(e([jm(d)],!0),g(!1)),e([jm(u)],!0));break;case Dm.ENTER:if(r(),void 0===s)return;break;case Dm.ESCAPE:if(void 0===s)return void o();if(!s())return;o();break;case Dm.HOME:if(a.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case Dm.END:if(a.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case Dm.A:if(y||v){t();break}return;case Dm.F:if(y||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}const Wm={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Hm({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){var i,a;const{onChange:l,onClick:s,onMouseDown:c,onMouseUp:d,onMouseEnter:p,onTouchStart:f,onTouchEnd:h,pages:m,isLocked:g,column:b=!1,checkboxes:y=!1,textAlign:v,direction:S,layoutOptions:x={},freqIsAllowed:w,isSingleSelect:C,actions:E,frequencyMax:L="",histogram:R=!1,keyboard:P,showGray:T=!0,showTick:O=!0,columnCount:I=1,rowCount:M=1,dataOffset:D,deducedFrequencyMode:_,focusListItems:N,listCount:q,sizes:j,translator:A,showSearch:z,isModal:$,contentFontStyle:F,styles:B,fillHeight:W}=o,{dense:H=!1,dataLayout:U="singleColumn",layoutOrder:V}=x,{itemPadding:G}=j;let K,X;const J={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===V?(K=t*I+n,J.max=M,J.currentIndex=t):(K=n*M+t,J.max=I,J.currentIndex=n);const e=0;X=u(u({},r),{},{height:W?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e})}else K=e,J.max=q,J.currentIndex=e,X=u({},r);K+=D;const[Z,Q]=k.useState(null);k.useEffect(()=>{null!==Z&&(0===J.currentIndex&&N.first&&(Z.focus(),N.setFirst(!1)),J.currentIndex===J.max-1&&N.last&&(Z.focus(),N.setLast(!1)))},[Z,N.first,N.last]);const Y=k.useCallback(Bm(u(u({},E),{},{focusListItems:N,keyboard:P,isModal:$,rowCount:M,columnCount:I,rowIndex:t,columnIndex:n,layoutOrder:V})),[E,null==P?void 0:P.innerTabStops,M,I,t,n,V]),ee=k.useMemo(()=>function({pages:e,cellIndex:t}){let n;const r=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(r){const e=r.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=r.qMatrix[t-e.qTop])}return n}({pages:m,cellIndex:K}),[m,K]),te="S"===(null==ee?void 0:ee.qState)||"XS"===(null==ee?void 0:ee.qState)||"L"===(null==ee?void 0:ee.qState)||"XL"===(null==ee?void 0:ee.qState),ne=k.useMemo(()=>im({column:b,histogram:R,cell:ee,showGray:T}),[null==ee?void 0:ee.qState,R,H]),re=k.useCallback(e=>{e.preventDefault()},[y]),oe=k.useMemo(()=>ee&&function({direction:e,cell:t,textAlign:n}){const r=!["NaN",void 0].includes(null==t?void 0:t.qNum);let o;return o=!n||n.auto?r?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:(null==n?void 0:n.align)||"left",["left","center","right"].includes(o)?o:"left"}({direction:S,cell:ee,textAlign:v}),[S,ee,v]);if(!ee)return null;const ie="grid"===U&&"column"===V,ae=null!==(i=null==ee?void 0:ee.qText)&&void 0!==i?i:"";let le;if(null!==(a=ee.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ee.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];le=function(e,t){if(!t.length)return[];const n=t.reduce((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n},[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce="rtl"===S,ue={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ce?8:y?0:void 0,paddingRight:y?0:ce?8:0,justifyContent:oe,textAlign:oe},de=0===e,pe=te&&g,fe=!y&&te&&!g,he=!y&&O,me=y||!O,ge=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const l=Wm[n],s=e.get(l),c=[];if(r){const t=a?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const u=`${t} ${s}`,d=e.get("CurrentSelections.Of",[o+1,i+1]);return c.unshift(u,d),c.join(". ").trim()}({translator:A,label:ae,qState:ee.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:z}),be=!ce&&"right"===oe||ce&&"left"===oe;return fr.jsx(hm,{className:Zh.barContainer,checkboxes:y,style:X,styles:B,isGridCol:ie,isGridMode:"grid"===U,dense:H,direction:S,sizes:j,frequencyMode:_,freqHitsValue:be,contentFontStyle:F,"data-testid":"listbox.item",children:fr.jsxs(Mm,{role:"row","aria-label":ge,"aria-selected":te,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:Q,container:!0,dataLayout:U,cellPaddingRight:me,layoutOrder:V,itemPadding:G,gap:0,className:am(["value",Zh.fieldRoot,...ne]),onClick:s,onMouseDown:c,onMouseUp:d,onMouseEnter:p,onKeyDown:Y,onTouchStart:f,onTouchEnd:h,onContextMenu:re,tabIndex:de&&P.innerTabStops?0:-1,"data-n":null==ee?void 0:ee.qElemNumber,direction:S,fillHeight:W,children:[(null==ee?void 0:ee.qFrequency)&&fr.jsx(Tm,{qFrequency:null==ee?void 0:ee.qFrequency,histogram:R,checkboxes:y,isSelected:te,frequencyMax:L}),fr.jsx(Kp,{style:ue,className:am([Zh.cell,Zh.selectedCell]),title:`${ae}`,children:le?fr.jsx(Rm,{onChange:l,labels:le,checkboxes:y,dense:H,showGray:T,qElemNumber:ee.qElemNumber,isSelected:te,cell:ee,isGridCol:ie,isSingleSelect:C,valueTextAlign:oe,styles:B}):fr.jsx(Pm,{onChange:l,label:ae,qElemNumber:ee.qElemNumber,isSelected:te,dense:H,cell:ee,isGridCol:ie,showGray:T,isSingleSelect:C,checkboxes:y,valueTextAlign:oe,styles:B})}),w&&fr.jsx(Om,{cell:ee,checkboxes:y,dense:H,showGray:T}),he&&fr.jsxs(Kp,{className:Zh.icon,children:[pe&&fr.jsx($h,{style:se,size:"small"}),fe&&fr.jsx(nm,{style:se,size:"small"})]})]})})}var Um=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vm(e,t){return e===t||!(!Um(e)||!Um(t))}function Gm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Vm(e[n],t[n]))return!1;return!0}function Km(e,t){var n;void 0===t&&(t=Gm);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}}var Xm="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Jm(e){cancelAnimationFrame(e.id)}function Zm(e,t){var n=Xm();var r={id:requestAnimationFrame(function o(){Xm()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var Qm=-1;function Ym(e){if(void 0===e&&(e=!1),-1===Qm||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Qm=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Qm}var eg=null;function tg(e){if(void 0===e&&(e=!1),null===eg||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?eg="positive-descending":(t.scrollLeft=1,eg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),eg}return eg}var ng=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function rg(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,ws(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ws(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=Km(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=Km(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,c=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Km(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,c=i;if("rtl"===t)switch(tg()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&Jm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zm(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}us(t,e),t.getDerivedStateFromProps=function(e,t){return og(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=Ym();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>f?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):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(tg()){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&&Jm(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ng:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x=this._getHorizontalRangeToRender(),w=x[0],C=x[1],E=this._getVerticalRangeToRender(),L=E[0],R=E[1],P=[];if(r>0&&g)for(var T=L;T<=R;T++)for(var O=w;O<=C;O++)P.push(k.createElement(t,{columnIndex:O,data:d,isScrolling:y?S:void 0,key:f({columnIndex:O,data:d,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,O)}));var I=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return k.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:dt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},k.createElement(c||u||"div",{children:P,ref:s,style:{height:I,pointerEvents:S?"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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},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,c=s.horizontalScrollDirection,u=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),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(k.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var og=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ig=function(e,t){return e};function ag(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,ws(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ws(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Km(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=Km(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,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Km(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(tg()){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&&Jm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zm(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}us(t,e),t.getDerivedStateFromProps=function(e,t){return lg(e,t),u(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?Ym():0:s.scrollHeight>s.clientHeight?Ym():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(tg()){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&&Jm(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?ig:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,y=e.width,v=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,x=S?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],L=[];if(c>0)for(var R=C;R<=E;R++)L.push(k.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:b?v:void 0,style:this._getItemStyle(R)}));var P=r(this.props,this._instanceProps);return k.createElement(h||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:dt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},k.createElement(l||s||"div",{children:L,ref:a,style:{height:S?"100%":P,pointerEvents:v?"none":void 0,width:S?P:"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 c=a(this.props,s,this._instanceProps),u=l(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(k.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sg=rg({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cg=ag({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const ug="#BBB",dg="#f1f1f1",pg={styledScrollbars:"ListBox-styledScrollbars"};function fg({renderProps:e,layoutOptions:t,maxCount:n,columnCount:r,rowCount:o,overflowDisclaimer:i,qCardinal:a,dataOffset:l}){const s="column"===(null==t?void 0:t.layoutOrder)&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,s),u=s?n.column:n.row,d=(s?r:o)>=u,p=((e,t,n,r)=>e===t*n+r+n)(a,c,s?o:r,l),f=!!l&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,s),h=d&&!p&&c>=u-1||f||i.state.show;i.set(h)}const{StyledFixedSizeList:hg,StyledFixedSizeGrid:mg}=function(){const e=e=>({scrollbarColor:`${ug} ${dg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:dg},"&::-webkit-scrollbar-thumb":{backgroundColor:ug,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:sr(cg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${pg.styledScrollbars}`]:e(t)})),StyledFixedSizeGrid:sr(sg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${pg.styledScrollbars}`]:e(t)}))}}();const gg=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const r=n.measureText(e);return Math.ceil(r.width||0)},bg=e=>{const t=k.useMemo(()=>"text"in e?e:{},[e]);return k.useMemo(()=>gg(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function yg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function vg({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}function Sg({layout:e,width:t,height:n,listCount:r,count:o,freqIsAllowed:i,checkboxes:a,styles:l}){const{layoutOptions:s={}}=e||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=s,{fontSize:h="12px",fontFamily:m="Source sans pro"}=(null==l?void 0:l.content)||{},g=`${h} ${m}`,b=bg({text:yg(e),font:g}),y=bg({text:yg(5),font:g}),v=bg({text:yg(8),font:g}),S=i?y:0,x=a?20:0;let w=56+S+x;!a&&w>=80&&(w+=20);let k,C,E,L,R=b+18+S+x;!a&&R>=80&&(R+=20),R=Math.min(150,Math.max(R,w));const P=vg({isGridMode:"grid"===f,dense:p}),T=null!=n?n:8*P;if(c){let e=t;"row"===c?(k={overflowX:"hidden"},e+=8,({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:r,itemMinWidth:o}){const i=(null==e?void 0:e.maxColumns)||3,a=n-10;let l;const s=Math.min(t,Math.max(1,Math.round(a/Math.max(o,r))));l=!1!==(null==e?void 0:e.auto)?s:Math.min(t,i,s),l=Math.max(l,1);const c=a/l;return{rowCount:Math.ceil(t/l),columnWidth:c,columnCount:l}}({maxVisibleColumns:d,listCount:r,containerWidth:e,columnAutoWidth:R,itemMinWidth:w}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}){let l;const s=(null==e?void 0:e.maxRows)||3,c=Math.floor(r/t);l=!1!==e.auto?c:Math.min(n,s,c),l=Math.max(l,1);const u=Math.ceil(n/l);return{columnWidth:Math.max(o,i/u,a),columnCount:u,rowCount:l}}({maxVisibleRows:u,itemHeight:P,listCount:r,listHeight:T,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const O=s.dense?838e3:577e3;L=Math.min(L,O);const I=Math.floor(3355e4/E);C=Math.min(C,I)||1;const M=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:P,listHeight:T,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,M),maxCount:{row:O,column:I},itemPadding:4,textWidth:b,freqMinWidth:y,freqMaxWidth:v}}function xg({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:r=!1}){const o=null!=e&&e.length&&r?(({pages:e=[],minimumBatchSize:t,count:n})=>{const r=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return r?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}const[wg]=wc({});function kg(e){const t=`${e.id}`,[n]=wg();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}const Cg=Dl(Xc,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>u({minWidth:`${e}px`,textAlign:"center",fontSize:""+(t?"12px":"14px"),whiteSpace:"normal"},t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}));function Eg({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=k.useContext(vc);return fr.jsx(yh,{title:r?o.get(t):"",children:fr.jsx(Cg,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}var Lg=Xl(fr.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));const Rg=Dl(Ac)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),Pg=Dl("div")(()=>({paddingLeft:"6px",flexGrow:1})),Tg=Dl("div")(({dense:e})=>({display:"flex",alignItems:""+(e?"center":"flex-start")})),Og=Dl(Lg)(()=>({fontSize:"14px"}));function Ig({text:e,dismiss:t,dense:n,parentWidth:r=0}){const o="function"==typeof t,i=n?370:282,a=Math.max(r/2-i/2,0),l=Math.min(i,r)-42,s=n&&r<i;return fr.jsxs(Rg,{left:a,style:{maxWidth:i},children:[fr.jsx(Pg,{children:fr.jsx(Eg,{text:e,dense:n,width:l,tooltip:s})}),fr.jsx(Tg,{dense:n,children:o&&fr.jsx(Wc,{"aria-label":"close",onClick:()=>t(),children:fr.jsx(Og,{})})})]})}function Mg({itemWidth:e,layout:t,frequencyMode:n}){const r=e>80,{frequencyEnabled:o=!1}=(null==t?void 0:t.qListObject)||{},i=!["N",void 0].includes(n);return!(!r||!i&&!o)}const Dg=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,_g=e=>{const t=Dg(e);return`Max(AGGR(Count(${t}), ${t}))`},Ng=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=k.useState(),[i,a]=k.useState(n);return k.useEffect(()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=_g(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()},[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const qg=["isLoadingData"],jg=Dl("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Ag({model:e,app:t,constraints:n,layout:r,selections:o,selectionState:i,direction:a,checkboxes:l,height:s,width:c,frequencyMode:p,update:f,fetchStart:h,postProcessPages:m,calculatePagesHeight:g=!1,keyboard:b={},showGray:y=!0,scrollState:v,keyScroll:S={state:{},reset:()=>{}},currentScrollIndex:x={set:()=>{}},renderedCallback:w,onCtrlF:C,showSearch:E,isModal:L,styles:R}){var P,T;const{translator:O}=k.useContext(vc),[I,M]=k.useState(!1),D=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:_=l,histogram:N}=null!=r?r:{},q=k.useRef(null),j=k.useRef({queue:[],validPages:!1,dataOffset:0}),A=k.useRef({pages:[]}),{frequencyMax:z,awaitingFrequencyMax:$}=Ng(t,r),F=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:a}){const[l,s]=k.useState(!1),[c,u]=k.useState([]);let[d]=k.useState(0);const p=(l,c)=>{const p=e.current.dataOffset;e.current.queue.push({start:l+p,stop:c+p});const f=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),s(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const o=e.current.queue.slice(-1)[0];if(!o)return s(!1),void t();const l=n.getListObjectData("/qListObjectDef",[{qTop:o.start>d?o.start-d:0,qHeight:d,qLeft:0,qWidth:1},{qTop:o.start,qHeight:d,qLeft:0,qWidth:1}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,a.current.pages=r,u(r),s(!1),t()});r&&r(l)},f?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(d=e),p)},pages:c,isLoading:l}}({local:j,loaderRef:q,model:e,fetchStart:h,scrollTimeout:0,postProcessPages:m,listData:A}),{isLoadingData:B}=F,W=d(F,qg),{getStoreValue:H,setStoreValue:U}=kg(e),V=k.useCallback(W.loadMoreItems,[r]),[G,K]=k.useState({show:!1,dismissed:!1}),[X,J]=k.useState([]);null!=W&&W.pages&&i.update({setPages:J,pages:W.pages,isSingleSelect:D,layout:r});const Z=null==r?void 0:r.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!$||0===Z)&&(null==w||w());const Q=k.useCallback(e=>{if(null==X||!X.length||!j.current.validPages)return!1;j.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=X.filter(e=>t(e))[0];return n&&t(n)},[r,X]),{interactionEvents:Y,select:ee}=em({selectionState:i,selections:o,checkboxes:_,doc:document,loaderRef:q}),{layoutOptions:te={}}=r||{};let ne=!0;te.dataLayout&&(ne="singleColumn"===te.dataLayout||"row"===(null==te?void 0:te.layoutOrder));const re="grid"===(null==te?void 0:te.dataLayout),oe=e=>{const t=u({},ne?{rowIndex:e}:{columnIndex:e}),n=re?t:e;q.current._listRef.scrollToItem(n)},ie=()=>{if(j.current.queue=[],j.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===S.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&S.reset());j.current.dataOffset=0,oe(0)}};f&&f.call(null,ie),k.useEffect(()=>{v&&!I&&q.current&&(q.current._listRef.scrollToItem(v.initScrollPos),M(!0))},[q.current]),k.useEffect(()=>{ie()},[r,j.current.dataOffset]);let ae=100;const le="grid"!==te.dataLayout,se=null==r||null===(P=r.qListObject.qSize)||void 0===P?void 0:P.qcy,ce=xg({pages:X,minimumBatchSize:ae,count:se,calculatePagesHeight:g});let ue=Mg({itemWidth:c,layout:r,frequencyMode:p});const de=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>{var t;return!(null===(t=e.qFrequency)||void 0===t||!t.match("%"))}))?"P":"-"}(X),pe=Sg({layout:r,width:c,height:s,listCount:ce,count:se,freqIsAllowed:ue,checkboxes:_,styles:R});pe.columnWidth&&(ue=Mg({itemWidth:pe.columnWidth,layout:r,frequencyMode:p}));const{listCount:fe}=pe;U("listCount",fe);const he=H("inputText"),me=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=k.useContext(vc),o=[];if(null!=t&&t.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(n),t=r.get(e,[n]);o.push(t)}const i=function({layout:e,translatorDynamic:t}){var n;const{qStateCounts:r={}}=(null==e||null===(n=e.qListObject)||void 0===n?void 0:n.qDimensionInfo)||{},o=r.qSelected+r.qSelectedExcluded+r.qLocked+r.qLockedExcluded;let i;switch(o){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return t.get(i,[o])}({layout:e,translatorDynamic:r});o.push(i);const a=o.filter(e=>!(null==e||!e.length)).join(". ");return a}({layout:r,searchInputText:he,listCount:fe}),ge=e=>{const{scrollIndex:t,offset:n,triggerRerender:o}=function({position:e,isRow:t,sizes:n,layout:r,offset:o}){let i,a=!1,l=null!=o?o:0;switch(e){case"start":i=0;break;case"end":i=t?n.rowCount:n.columnCount;break;case"overflowStart":l=0,i=0,a=!0;break;case"overflowEnd":l=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(r,n.listCount),i=r.qListObject.qDimensionInfo.qCardinal,a=!0}return{scrollIndex:i,offset:l,triggerRerender:a}}({position:e,isRow:ne,sizes:pe,layout:r,offset:j.current.dataOffset});j.current.dataOffset=n,o&&i.triggerStateChanged(),oe(t)};k.useEffect(()=>{const e=S.state;e.up?oe(x.state.start-e.up):e.down?oe(x.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&S.reset()},[S.state.up,S.state.down,S.state.scrollPosition]);const{textAlign:be}=(null==r?void 0:r.qListObject.qDimensionInfo)||{},[ye,ve]=k.useState({first:!1,last:!1}),{List:Se,Grid:xe}=function({layout:e,width:t,checkboxes:n,local:r,isVertical:o,pages:i,selectionState:a,interactionEvents:l,deducedFrequencyMode:s,histogram:c,isSingleSelect:d,select:p,selectAll:f,onCtrlF:h,textAlign:m,selections:g,keyboard:b,showGray:y,scrollState:v,direction:S,sizes:x,listCount:w,overflowDisclaimer:k,setScrollPosition:C,focusListItems:E,setCurrentScrollIndex:L,constraints:R,frequencyMax:P,freqIsAllowed:T,translator:O,showSearch:I,isModal:M,styles:D}){const{layoutOptions:_={}}=e||{},{columnWidth:N,listHeight:q,itemHeight:j,rowCount:A,columnCount:z}=x||{},$=("grid"===_.dataLayout?N:t)>80,F={direction:"rtl"===S?"rtl":"ltr",useIsScrolling:!0,className:pg.styledScrollbars},B=null==e?void 0:e.qListObject.qDimensionInfo.qLocked,W=q<=j,H=u(u({isLocked:B,column:!o,pages:i},B||a.selectDisabled()?{}:l),{},{checkboxes:n,layoutOptions:_,deducedFrequencyMode:s,freqIsAllowed:T,isSingleSelect:d,textAlign:m,sizes:x,actions:{select:p,confirm:()=>null==g?void 0:g.confirm.call(g),cancel:()=>null==g?void 0:g.cancel.call(g),setScrollPosition:C,selectAll:f,onCtrlF:h},frequencyMax:P,histogram:c,keyboard:b,showGray:y,showTick:$,dataOffset:r.current.dataOffset,focusListItems:E,direction:S,translator:O,showSearch:I,isModal:M,styles:D,fillHeight:W});return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,fr.jsx(hg,u(u({},F),{},{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:q,width:t,itemCount:w,itemData:u(u({},H),{},{listCount:w}),itemSize:j,onItemsRendered:t=>{var o;L({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),fg({renderProps:t,layoutOptions:_,maxCount:x.maxCount,columnCount:z,rowCount:A,overflowDisclaimer:k,qCardinal:null==e||null===(o=e.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qCardinal,dataOffset:r.current.dataOffset}),n(u({},t))},ref:o,children:Hm}))),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=x,{layoutOrder:l}=_||{},s=Math.min(q,A*j+a);return r.current.listRef=o,fr.jsx(mg,u(u({},F),{},{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:s,width:t,columnCount:z,columnWidth:N,rowCount:A,rowHeight:j,style:u({},i),itemData:u(u({},H),{},{column:void 0,columnCount:z,rowCount:A}),onItemsRendered:t=>{var o;const i="row"===l;L({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:A,columnCount:z});fg({renderProps:t,layoutOptions:_,maxCount:x.maxCount,columnCount:z,rowCount:A,overflowDisclaimer:k,qCardinal:null==e||null===(o=e.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qCardinal,dataOffset:r.current.dataOffset}),n(a)},ref:o,children:Hm}))}}}({direction:a,layout:r,width:c,checkboxes:_,deducedFrequencyMode:de,histogram:N,keyboard:b,showGray:y,interactionEvents:Y,select:ee,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:C,textAlign:be,isVertical:le,pages:X,selectionState:i,isSingleSelect:D,selections:o,scrollState:v,local:j,sizes:pe,listCount:fe,overflowDisclaimer:{state:G,set:e=>K(t=>u(u({},t),{},{show:e}))},setScrollPosition:ge,focusListItems:{first:ye.first,setFirst:e=>ve(t=>u(u({},t),{},{first:e})),last:ye.last,setLast:e=>ve(t=>u(u({},t),{},{last:e}))},setCurrentScrollIndex:x.set,constraints:n,frequencyMax:z,freqIsAllowed:ue,translator:O,showSearch:E,isModal:L,styles:R}),{columnWidth:we,listHeight:ke,itemHeight:Ce}=pe||{};return le||(ae=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:c,columnWidth:we,listHeight:ke,itemHeight:Ce})),fr.jsxs(jg,{children:[fr.jsx("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:me}),!fe&&Z>0&&fr.jsx(Eg,{width:c,text:"Listbox.NoMatchesForYourTerms"}),fr.jsx(Uh,{isItemLoaded:Q,itemCount:fe||1,loadMoreItems:V.with({minimumBatchSize:ae}),threshold:0,minimumBatchSize:ae,ref:q,role:"grid",children:le?Se:xe}),G.show&&!G.dismissed&&fr.jsx(Ig,{text:"Listbox.ItemsOverflow",dismiss:()=>K(e=>u(u({},e),{},{dismissed:!0})),parentWidth:null==q||null===(T=q.current)||void 0===T||null===(T=T._listRef)||void 0===T||null===(T=T.props)||void 0===T?void 0:T.width,dense:null==te?void 0:te.dense})]})}const zg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),$g=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Fg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Bg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Wg=({layout:e,model:t,translator:n,selectionState:r,isDirectQuery:o=!1,selections:i})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const a="/qListObjectDef",l=()=>{i.isActive()||i.begin(a)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:zg,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectAll(a)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Fg,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectPossible(a)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:$g,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectAlternative(a)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Bg,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};const Hg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Ug(e){const t=Il(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const Vg={className:"njs-cell-action"},Gg=C.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=Il(),{hidden:o,disabled:i,style:a,hasSvgIconShape:l}=Ug(e);if(o)return null;const s=Number.parseInt(r.spacing(.5),10),c=e.keyboardAction||e.action,u=c?e=>["Enter"].includes(e.key)&&c():null,d=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,p=`actions-toolbar-${e.key}`,f=e.ref||(t?null:n);return fr.jsxs(Wc,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[Vg.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[l&&Ah(e.getSvgIconShape()),t&&fr.jsx("div",{ref:n,style:{bottom:-s,right:0,position:"absolute",width:"100%",height:0}})]})}),Kg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var Xg=e=>Ah(Kg(e));const Jg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Zg=e=>Ah(Jg(e));const Qg="njs-action-toolbar-more",Yg={icon:"More-icon"},eb=Dl(jf)(({theme:e})=>({pointerEvents:"none",[`& .${Yg.icon} *`]:{color:e.palette.text.primary}}));function tb({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=Ug(e);return r?null:fr.jsxs(Xf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&fr.jsx(kf,{className:Yg.icon,children:Ah(e.getSvgIconShape())}),fr.jsx(Xc,{noWrap:!0,children:e.label})]})}const nb=C.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:r={},popoverPaperStyle:o={},onCloseOrActionClick:i=()=>{},disablePortal:a=!0},l)=>{const s=e.length>0,c=e.findIndex(e=>!e.disabled);return s&&fr.jsx(eb,u(u({},r),{},{onClose:i,ref:l,open:t,anchorEl:n.current,getContentAnchorEl:a?null:void 0,container:a?n.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Qg},paper:{style:u({pointerEvents:"auto",maxWidth:"250px"},o)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:fr.jsx(Tf,{id:"moreMenuList",children:e.map((e,t)=>fr.jsx(tb,{item:e,autoFocus:t===c,onActionClick:i},t))})}))});function rb({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:l}=i,{keyCode:s}=l;switch(s){case Dm.ARROW_LEFT:case Dm.ARROW_DOWN:case Dm.ARROW_RIGHT:case Dm.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(a);let t=[Dm.ARROW_LEFT,Dm.ARROW_DOWN].includes(s);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}i.stopPropagation(),i.preventDefault();break;case Dm.SPACE:i.preventDefault();break;case Dm.TAB:if(e&&null!=t&&t.refocusContent){(i.shiftKey&&n(!1)===i.target||!i.shiftKey&&n(!0)===i.target)&&(i.preventDefault(),i.stopPropagation(),t.refocusContent())}break;case Dm.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}const ob="ActionsToolbar",ib={item:`${ob}-item`,itemSpacing:`${ob}-itemSpacing`},ab=Dl(jf)(({theme:e})=>({[`& .${ib.itemSpacing}`]:{padding:e.spacing(0,.25)}})),lb="njs-action-toolbar-popover",sb=C.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?fr.jsx(Kp,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>fr.jsx(Kp,{className:`${ib.itemSpacing} ${ib.item}`,children:fr.jsx(Gg,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),cb={pointerEvents:"none"};function ub({show:e=!0,actions:t=[],maxItems:n=3,selections:r={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:o,more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null,isRtl:c,autoConfirm:d=!1,layout:p}){var f,h;const m=function({api:e,layout:t,onConfirm:n=()=>{},onCancel:r=()=>{},onKeyDeactivate:o=()=>{}}){const{translator:i}=k.useContext(vc);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:Jg},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:Kg},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:tm}]}(u(u({},r),{},{layout:p})),{translator:g,keyboardNavigation:b}=k.useContext(vc),[y,v]=k.useState(!1),S={vertical:12,horizontal:c?0:(null!==(f=null===(h=a.anchorEl)||void 0===h?void 0:h.clientWidth)&&void 0!==f?f:0)-7},x={vertical:"bottom",horizontal:c?-7:"right"},w=k.useRef(),C=k.useRef(),E=Il(),L=k.useMemo(()=>({margin:E.spacing(.5,0)})),R=e=>{const t=w.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},P=k.useMemo(()=>rb({keyboardNavigation:b,focusHandler:l,getEnabledButton:R,selections:r,isRtl:c}),[b,l,R,r,c]);if(k.useEffect(()=>()=>{v(!1)},[a.show,e,r.show]),k.useEffect(()=>{if(!l)return;l.on("focus_toolbar_first",()=>{const e=R(!1);null==e||e.focus()}),l.on("focus_toolbar_last",()=>{const e=R(!0);null==e||e.focus()})},[]),d)return;let T=i.enabled,O=i.actions;const I=i.alignTo||C,M=t.filter(e=>!e.hidden);if(M.length>n){const e=M.splice(-(M.length-n)-1);T=!0,O=[...e,...i.actions]}if(!r.show&&0===M.length&&!T)return null;const D={key:"more",label:g.get("Menu.More"),getSvgIconShape:Hg,hidden:!1,active:y,enabled:()=>T,action:()=>v(!y)},_=M.length>0,N=O.length>0,q=_&&r.show||N&&r.show,j=fr.jsxs(Kp,{ref:w,onKeyDown:P,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:c?"row-reverse":"row"},children:[(null==o?void 0:o.length)&&fr.jsx(sb,{className:"actions-toolbar-extra-actions",actions:o,isRtl:c}),_&&fr.jsx(sb,{actions:M}),N&&fr.jsx(sb,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,actions:[D],addAnchor:!0}),q&&fr.jsx(Kp,{className:ib.itemSpacing,style:L,children:fr.jsx(Bp,{orientation:"vertical"})}),r.show&&fr.jsx(sb,{className:"actions-toolbar-default-actions",actions:m,isRtl:c}),y&&fr.jsx(nb,{show:y,actions:O,alignTo:I,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)},disablePortal:i.disablePortal})]});return a.show?fr.jsx(ab,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:S,transformOrigin:x,hideBackdrop:!0,style:cb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:lb,style:{pointerEvents:"auto",padding:E.spacing(.5,.25)}}},children:j}):e&&j}var db=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const pb="/qListObjectDef",fb=e=>null==e?void 0:e.substring(0,64e3),hb=Dl(Gf,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let r={};return t&&(r={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),u({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":u({},e.search),"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"}},r)}),mb=Dl(Wc)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));var gb=k.forwardRef(function({popoverOpen:e,selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:s=!0,wildCardSearch:c=!1,searchEnabled:u,direction:d,hide:p,styles:f},h){const{translator:m}=k.useContext(vc),[g,b]=k.useState(""),[y,v]=k.useState(!1),S=k.useRef(),x=k.useRef(),w=m.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:E}=kg(r),L="rtl"===d,R=async()=>{try{await r.abortListObjectSearch(pb)}finally{b("")}};k.useEffect(()=>a?()=>R():()=>{},[a]),k.useEffect(()=>(t.on("deactivated",R),()=>{t.removeListener&&t.removeListener("deactivated",R)}),[]),k.useEffect(()=>{if(y&&S.current){const e=g.length-1;S.current.setSelectionRange(e,e),v(!1)}},[y,S.current]),k.useEffect(()=>{E("inputText",g)},[g]);const P=async()=>{let e;const o=fb(g),i=await r.searchListObjectFor(pb,o);return n.selectDisabled()?i:(i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(pb,!0),t.selectionsMade=!0,n.clearItemStates(!1),b("")),e)},T=()=>{var e;null===(e=S.current)||void 0===e||e.focus()},O=()=>{R(),T()};return k.useImperativeHandle(h,()=>({focus(){T()}})),a&&!1!==u?fr.jsxs(fr.Fragment,{children:[fr.jsx(hb,{styles:f,dense:i,isRtl:L,startAdornment:fr.jsx(lf,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:fr.jsx(db,{size:i?"small":"normal"})}),endAdornment:fr.jsx(lf,{position:"end",sx:{marginLeft:0},children:""!==g&&fr.jsx(mb,{tabIndex:0,ref:x,title:w,"aria-label":w,onClick:O,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Tab":e.shiftKey?T():zm(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:fr.jsx(Xg,{size:i?"small":"normal"})})}),className:"search",inputRef:S,size:"small",fullWidth:!0,placeholder:m.get("Listbox.Search"),value:g,onFocus:()=>{c&&(b("**"),v(!0)),s&&!n.selectDisabled()&&!t.isModal()&&t.begin("/qListObjectDef")},onChange:async e=>{const t=fb(e.target.value);return b(t),t.length?r.searchListObjectFor(pb,t):R()},onKeyDown:async n=>{const{currentTarget:r}=n,i=r.closest(".listbox-container");switch(n.key){case"Enter":P();break;case"Escape":if(zm(i),t.cancel(),e)return;break;case"Tab":n.shiftKey?$m(i)||o.focusSelection():x.current?x.current.focus():zm(i);break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;p&&(p(),zm(i));break;default:return}n.preventDefault(),n.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":m.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),fr.jsx("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:m.get("Listbox.Search.ScreenReaderInstructions")})]}):null});function bb(e){if(!e.session)return[];const{selectionStore:t}=k.useContext(vc),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return k.useEffect(()=>{e&&!o&&(o=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:r,appModalStore:o}=t,i=async(e=!0)=>{const{model:t,objectSelections:o}=r.get(n)||{};t&&(await t.endSelections(e),r.clear(n),o.emit("deactivated"))},a={begin:async({model:t,paths:o,accept:a=!0,objectSelections:l})=>{var s;if(l===(null===(s=r.get(n))||void 0===s?void 0:s.objectSelections))return;i(a),r.set(n,{model:t,objectSelections:l});const c=Array.isArray(o)?o:[o],u=async o=>{try{await t.beginSelections(c),r.set(n,{model:t,objectSelections:l})}catch(t){6003!==t.code||o?r.clear(n):(await e.abortModal(a),u(!0))}};await u()},end:i};o.set(n,a);const l={model:e,isInModal:()=>!!r.get(n),isModal(e){var t;return e?(null===(t=r.get(n))||void 0===t?void 0:t.objectSelections)===e:!!r.get(n)},forward:()=>a.end().then(()=>e.forward()),back:()=>a.end().then(()=>e.back()),clear:()=>a.end().then(()=>e.clearAll()),clearField:(t,n="$")=>a.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return l}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))},[e]),[o]}function yb(e){return Object.keys(M.prototype).forEach(t=>{e[t]=M.prototype[t]}),M.init(e),e}const vb=({appSelections:e,appModal:t,model:n})=>{let r,o=!1,i=!1;const a={id:n.id,setLayout(e){r=e},begin(e){const r=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",r),r.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:a}))},clear(){return i=!1,this.emit("cleared"),r.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return i=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return i=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const r=this.begin([t.params[0]]);if(!e.isModal())return!1;await r;const o=await n[t.method](...t.params);return i="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked&&!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(r&&r.qListObject&&r.qListObject.qDimensionInfo)||!r.qListObject.qDimensionInfo.qLocked,isActive:()=>o,isModal:()=>e.isModal(a),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:a}),noModal:(e=!1)=>t.end(e)};return yb(a),a},Sb=({elements:e,objectSelections:t,options:n={}})=>{const r=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const r=e.map(e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current).filter(e=>!!e&&!!document.contains(e));r.length&&!r.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){var e;document.addEventListener("mousedown",r),null==n||null===(e=n.onSelectionActivated)||void 0===e||e.call(n)},deactivateClickOut(){var e;document.removeEventListener("mousedown",r),null==n||null===(e=n.onSelectionDeactivated)||void 0===e||e.call(n)}}};function xb(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=bb(e),[a]=Eh(t),{appModalStore:l}=k.useContext(vc).selectionStore,s=l.get(e.id),[c,u]=k.useState();return k.useEffect(()=>{i&&t&&!c&&u(vb({appSelections:i,appModal:s,model:t}))},[i,t]),k.useEffect(()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Sb({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}},[c]),k.useEffect(()=>{c&&c.setLayout(a)},[c,a]),[c]}function wb(e={}){const t=u(u({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},e),{},{update({setPages:e,pages:n,isSingleSelect:r,selectDisabled:o,layout:i}){var a,l;this.setPages=e;const s=this.lastRowCount===i.qListObject.qSize.qcy,c=this.lastApprMaxGlyphCount===i.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&c||(this.lastRowCount=i.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=i.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==n&&void 0!==n&&(t.enginePages=null!=n?n:[],t.selectedInEngine=Kh(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=r,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=null!==(a=null==i||null===(l=i.qListObject)||void 0===l||null===(l=l.qDimensionInfo)||void 0===l?void 0:l.qIsCalculated)&&void 0!==a&&a},allowedToSelect:()=>!t.selectDisabled()&&!(t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:r}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(e,n,r){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(null==r||r.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,r=t.getState(n);return[u(u({},n),{},{qState:r}),...e.slice(1)]});return u(u({},e),{},{qMatrix:n})});return n},updateItem(e,n,r){t.updateItemNoEvents(e,n,r),t.triggerStateChanged()},updateItems(e,n,r){e.forEach(e=>{t.updateItemNoEvents(e,n,r)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}});return t}const kb=(e,t,n=void 0)=>{var r;return null!==(r=null==e?void 0:e[t])&&void 0!==r?r:n};function Cb(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return kb(t,"qSelected",0)+kb(t,"qSelectedExcluded",0)+kb(t,"qLocked",0)+kb(t,"qLockedExcluded",0)>0}function Eb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Lb(e){if("object"==typeof e&&Eb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const Rb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Pb="qcm-color";function Tb(...e){const t={type:Pb,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Pb)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Eb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in Rb}(e)){const t=Rb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function Ob(e){let t,n,r;if(Eb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?Lb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function Ib(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,c=Math.max(i,a,l),u=Math.min(i,a,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:s}}function Mb(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=s;if(s===c)t=0,r=0;else{switch(n=s-c,t=0===n?0:n/u,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function Db(e){if(Eb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Lb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function _b(e,t){return Eb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:_b(Tb(e))}function Nb(e){return Eb(e)?1===e.a?Db(e):_b(e):Nb(Tb(e))}const qb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function jb(e){return.2126*qb(e.r)+.7152*qb(e.g)+.0722*qb(e.b)}function Ab(...e){const t=Tb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Ib(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Tb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Tb(...e);return t.invalid||jb(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Db(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=_b(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Nb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Ob(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=Ib(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=Mb(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Mb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Ab(o(18*e)),getDarkenedColor:(e=1)=>Ab(o(18*-e))}}function zb(e,t){if(!e||!t)return;const n=jb(e),r=jb(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const $b="#FFFFFF";function Fb(e,t){const n=Ab($b),r=Ab(e),o=Ab(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=zb(n,r),a=zb(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?$b:"#000000"}function Bb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wb,Hb,Ub,Vb="top",Gb="top-right",Kb="right",Xb="bottom-right",Jb="bottom",Zb="bottom-left",Qb="left",Yb="top-left";Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Wb={},"equal-equal",[Vb,Jb]),"equal-higher",[Jb,Xb]),"equal-lower",[Vb,Gb]),"equal-void",[Vb,Jb]),"higher-equal",[Qb,Zb,Vb,Gb]),"higher-higher-acute",[Jb,Zb,Qb,Gb]),"higher-higher-obtuse",[Jb,Vb]),"higher-lower-negative",[Vb,Gb,Kb]),"higher-lower-positive",[Jb,Zb,Qb]),"higher-void",[Vb]),Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Wb,"lower-equal",[Vb]),"lower-higher-negative",[Vb,Yb]),"lower-higher-positive",[Xb]),"lower-lower-acute",[Vb,Yb,Qb,Gb,Kb]),"lower-lower-obtuse",[Vb,Jb]),"lower-void",[Vb]),"void-equal",[Vb]),"void-higher",[Vb,Jb]),"void-lower",[Vb,Jb,Qb]),"void-void",[Vb]),Bb(Wb,"unclassified",[Vb,Jb,Kb,Qb,Gb,Xb,Zb,Yb]);var ey=function(){if(Ub)return Hb;Ub=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Hb=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},Hb}();function ty(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ny(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ry(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ey);var oy=.7,iy=1/oy,ay="\\s*([+-]?\\d+)\\s*",ly="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cy=/^#([0-9a-f]{3,8})$/,uy=new RegExp(`^rgb\\(${ay},${ay},${ay}\\)$`),dy=new RegExp(`^rgb\\(${sy},${sy},${sy}\\)$`),py=new RegExp(`^rgba\\(${ay},${ay},${ay},${ly}\\)$`),fy=new RegExp(`^rgba\\(${sy},${sy},${sy},${ly}\\)$`),hy=new RegExp(`^hsl\\(${ly},${sy},${sy}\\)$`),my=new RegExp(`^hsla\\(${ly},${sy},${sy},${ly}\\)$`),gy={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 by(){return this.rgb().formatHex()}function yy(){return this.rgb().formatRgb()}function vy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cy.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Sy(t):3===n?new Cy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xy(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=uy.exec(e))?new Cy(t[1],t[2],t[3],1):(t=dy.exec(e))?new Cy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=py.exec(e))?xy(t[1],t[2],t[3],t[4]):(t=fy.exec(e))?xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=hy.exec(e))?Oy(t[1],t[2]/100,t[3]/100,1):(t=my.exec(e))?Oy(t[1],t[2]/100,t[3]/100,t[4]):gy.hasOwnProperty(e)?Sy(gy[e]):"transparent"===e?new Cy(NaN,NaN,NaN,0):null}function Sy(e){return new Cy(e>>16&255,e>>8&255,255&e,1)}function xy(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cy(e,t,n,r)}function wy(e){return e instanceof ry||(e=vy(e)),e?new Cy((e=e.rgb()).r,e.g,e.b,e.opacity):new Cy}function ky(e,t,n,r){return 1===arguments.length?wy(e):new Cy(e,t,n,null==r?1:r)}function Cy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ey(){return`#${Ty(this.r)}${Ty(this.g)}${Ty(this.b)}`}function Ly(){const e=Ry(this.opacity);return`${1===e?"rgb(":"rgba("}${Py(this.r)}, ${Py(this.g)}, ${Py(this.b)}${1===e?")":`, ${e})`}`}function Ry(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Py(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ty(e){return((e=Py(e))<16?"0":"")+e.toString(16)}function Oy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new My(e,t,n,r)}function Iy(e){if(e instanceof My)return new My(e.h,e.s,e.l,e.opacity);if(e instanceof ry||(e=vy(e)),!e)return new My;if(e instanceof My)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 My(a,l,s,e.opacity)}function My(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Dy(e){return(e=(e||0)%360)<0?e+360:e}function _y(e){return Math.max(0,Math.min(1,e||0))}function Ny(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ty(ry,vy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:by,formatHex:by,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iy(this).formatHsl()},formatRgb:yy,toString:yy}),ty(Cy,ky,ny(ry,{brighter(e){return e=null==e?iy:Math.pow(iy,e),new Cy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oy:Math.pow(oy,e),new Cy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cy(Py(this.r),Py(this.g),Py(this.b),Ry(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:Ey,formatHex:Ey,formatHex8:function(){return`#${Ty(this.r)}${Ty(this.g)}${Ty(this.b)}${Ty(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ly,toString:Ly})),ty(My,function(e,t,n,r){return 1===arguments.length?Iy(e):new My(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return e=null==e?iy:Math.pow(iy,e),new My(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oy:Math.pow(oy,e),new My(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 Cy(Ny(e>=240?e-240:e+120,o,r),Ny(e,o,r),Ny(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new My(Dy(this.h),_y(this.s),_y(this.l),Ry(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=Ry(this.opacity);return`${1===e?"hsl(":"hsla("}${Dy(this.h)}, ${100*_y(this.s)}%, ${100*_y(this.l)}%${1===e?")":`, ${e})`}`}}));const qy=Math.PI/180,jy=180/Math.PI,Ay=.96422,zy=.82521,$y=4/29,Fy=6/29,By=3*Fy*Fy,Wy=Fy*Fy*Fy;function Hy(e){if(e instanceof Uy)return new Uy(e.l,e.a,e.b,e.opacity);if(e instanceof Jy)return Zy(e);e instanceof Cy||(e=wy(e));var t,n,r=Xy(e.r),o=Xy(e.g),i=Xy(e.b),a=Vy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Vy((.4360747*r+.3850649*o+.1430804*i)/Ay),n=Vy((.0139322*r+.0971045*o+.7141733*i)/zy)),new Uy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Uy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Vy(e){return e>Wy?Math.pow(e,1/3):e/By+$y}function Gy(e){return e>Fy?e*e*e:By*(e-$y)}function Ky(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Zy(e){if(isNaN(e.h))return new Uy(e.l,0,0,e.opacity);var t=e.h*qy;return new Uy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ty(Uy,function(e,t,n,r){return 1===arguments.length?Hy(e):new Uy(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return new Uy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Uy(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 Cy(Ky(3.1338561*(t=Ay*Gy(t))-1.6168667*(e=1*Gy(e))-.4906146*(n=zy*Gy(n))),Ky(-.9787684*t+1.9161415*e+.033454*n),Ky(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ty(Jy,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Jy)return new Jy(e.h,e.c,e.l,e.opacity);if(e instanceof Uy||(e=Hy(e)),0===e.a&&0===e.b)return new Jy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*jy;return new Jy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Jy(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return new Jy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Jy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Zy(this).rgb()}}));var Qy=e=>()=>e;function Yy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qy(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Yy: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):Qy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ky(e)).r,(t=ky(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Yy(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 ev,tv="center",nv="bottom";function rv(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 ov(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=av)):void 0===t&&(t=iv);for(var n,r,o,i,a,l=new cv(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 cv(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(sv)}function iv(e){return e.children}function av(e){return Array.isArray(e)?e[1]:null}function lv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function sv(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function cv(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:tv,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:tv,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:tv,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:tv},{key:"DataRangeIncludingZero",alignment:nv},{key:"LimitedData",alignment:nv},{key:"NegativeOrZeroValues",alignment:nv}].reduce(function(e,t){return e[t.key]=t,e},{}),cv.prototype=ov.prototype={constructor:cv,count:function(){return this.eachAfter(rv)},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 ov(this).eachBefore(lv)},[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)}},ev=function(e){
|
|
123
|
+
`:null,Js=Dl("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Ks||{animation:`${Vs} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Zs=Dl("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),Qs=Dl("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Nr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Hl(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:e})=>"indeterminate"===e.variant&&!e.disableShrink,style:Xs||{animation:`${Gs} 1.4s ease-in-out infinite`}}]}))),Ys=Dl("circle",{name:"MuiCircularProgress",slot:"Track"})(Hl(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),ec=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiCircularProgress"}),{className:r,color:o="primary",disableShrink:i=!1,enableTrackSlot:a=!1,size:l=40,style:s,thickness:c=3.6,value:u=0,variant:d="indeterminate",...p}=n,f={...n,color:o,disableShrink:i,size:l,thickness:c,value:u,variant:d,enableTrackSlot:a},h=(e=>{const{classes:t,variant:n,color:r,disableShrink:o}=e;return Vi({root:["root",n,`color${Nr(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${Nr(n)}`,o&&"circleDisableShrink"]},Hs,t)})(f),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((Us-c)/2);m.strokeDasharray=e.toFixed(3),b["aria-valuenow"]=Math.round(u),m.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform="rotate(-90deg)"}return fr.jsx(Js,{className:$o(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...b,...p,children:fr.jsxs(Zs,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?fr.jsx(Ys,{className:h.track,ownerState:f,cx:Us,cy:Us,r:(Us-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,fr.jsx(Qs,{className:h.circle,style:m,ownerState:f,cx:Us,cy:Us,r:(Us-c)/2,fill:"none",strokeWidth:c})]})})});function tc(e){return Bo("MuiButton",e)}const nc=Wo("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),rc=k.createContext({}),oc=k.createContext(void 0),ic=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],ac=Dl(Fs,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Nr(n.color)}`],t[`size${Nr(n.size)}`],t[`${n.variant}Size${Nr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Hl(({theme:e})=>{const t="light"===e.palette.mode?e.palette.grey[300]:e.palette.grey[800],n="light"===e.palette.mode?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${nc.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.startIcon||e.loading&&"start"===e.loadingPosition,style:{"&::before":{content:'"\\200b"',width:0,overflow:"hidden"}}},{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${nc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${nc.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${nc.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${nc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${nc.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${nc.loading}`]:{color:"transparent"}}}]}})),lc=Dl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Nr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...ic]})),sc=Dl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Nr(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...ic]})),cc=Dl("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),uc=Dl("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),dc=k.forwardRef(function(e,t){const n=k.useContext(rc),r=k.useContext(oc),o=Ul({props:ti(n,e),name:"MuiButton"}),{children:i,color:a="primary",component:l="button",className:s,disabled:c=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:p,focusVisibleClassName:f,fullWidth:h=!1,id:m,loading:g=null,loadingIndicator:b,loadingPosition:y="center",size:v="medium",startIcon:S,type:x,variant:w="text",...C}=o,E=Ti(m),L=b??fr.jsx(ec,{"aria-labelledby":E,color:"inherit",size:16}),R={...o,color:a,component:l,disabled:c,disableElevation:u,disableFocusRipple:d,fullWidth:h,loading:g,loadingIndicator:L,loadingPosition:y,size:v,type:x,variant:w},P=(e=>{const{color:t,disableElevation:n,fullWidth:r,size:o,variant:i,loading:a,loadingPosition:l,classes:s}=e,c=Vi({root:["root",a&&"loading",i,`${i}${Nr(t)}`,`size${Nr(o)}`,`${i}Size${Nr(o)}`,`color${Nr(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${Nr(l)}`],startIcon:["icon","startIcon",`iconSize${Nr(o)}`],endIcon:["icon","endIcon",`iconSize${Nr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},tc,s);return{...s,...c}})(R),T=(S||g&&"start"===y)&&fr.jsx(lc,{className:P.startIcon,ownerState:R,children:S||fr.jsx(uc,{className:P.loadingIconPlaceholder,ownerState:R})}),O=(p||g&&"end"===y)&&fr.jsx(sc,{className:P.endIcon,ownerState:R,children:p||fr.jsx(uc,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",M="boolean"==typeof g?fr.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&fr.jsx(cc,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:D,..._}=P;return fr.jsxs(ac,{ownerState:R,className:$o(n.className,P.root,s,I),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:$o(P.focusVisible,f),ref:t,type:x,id:g?E:m,...C,classes:_,children:[T,"end"!==y&&M,i,"end"===y&&M,O]})});var pc={typography:{fontSize:14,htmlFontSize:16,fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontFamily:['"Source Sans Pro"','"Segoe UI"','"Helvetica Neue"',"-apple-system","Arial","sans-serif"].join(","),button:{textTransform:"initial",fontWeight:400}},shape:{borderRadius:2},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)"]};const fc={green:"#00873D",blue:"#3F8AB3",blueDark:"#005DB9",grey100:"#ffffff",grey98:"#FBFBFB",grey95:"#F2F2F2",grey90:"#E6E6E6",grey45:"#737373",grey25:"#404040",grey20:"#333333",grey15:"#262626",grey10:"#1A1A1A",grey0:"#000000"},hc={mode:"light",palette:{primary:{main:fc.grey25,contrastText:fc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:fc.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:fc.grey100,dark:fc.grey0},action:{active:"#545454",hover:"rgba(0, 0, 0, 0.03)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.05)",disabled:"rgba(0, 0, 0, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},background:{paper:fc.grey100,default:fc.grey100,lightest:fc.grey100,lighter:fc.grey98,darker:fc.grey95,darkest:fc.grey90},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:fc.blueDark,focusBorder:fc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:fc.grey45,disabledContrastText:fc.grey100},selected:{main:fc.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:fc.grey100,selectedContrastText:fc.grey100,mainContrastText:fc.grey100,alternativeContrastText:fc.grey25,excludedContrastText:fc.grey25,selectedExcludedContrastText:fc.grey100,possibleContrastText:fc.grey0},btn:{normal:"rgba(255, 255, 255, 0.6)",hover:"rgba(0, 0, 0, 0.03)",active:"rgba(0, 0, 0, 0.1)",disabled:"rgba(255, 255, 255, 0.6)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.15)"}}},mc={mode:"dark",palette:{primary:{main:fc.grey20,contrastText:fc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:fc.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:fc.grey100,dark:fc.grey0},action:{active:fc.grey100,hover:"rgba(255, 255, 255, 0.05)",hoverOpacity:.08,selected:"rgba(0, 0, 0, 0.03)",disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(0, 0, 0, 0.12)"},divider:"rgba(0,0,0,0.3)",background:{default:"#323232",paper:"#323232",lightest:fc.grey25,lighter:fc.grey20,darker:fc.grey15,darkest:fc.grey10},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:fc.blueDark,focusBorder:fc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:fc.grey45,disabledContrastText:fc.grey100},selected:{main:fc.green,alternative:fc.grey20,excluded:fc.grey10,selectedExcluded:fc.grey10,possible:fc.grey80,selectedContrastText:fc.grey100,mainContrastText:fc.grey100,alternativeContrastText:fc.grey100,excludedContrastText:fc.grey100,selectedExcludedContrastText:fc.grey100,possibleContrastText:fc.grey0},btn:{normal:"rgba(255, 255, 255, 0.15)",hover:"rgba(255, 255, 255, 0.25)",active:"rgba(0, 0, 0, 0.6)",disabled:"rgba(255, 255, 255, 0.15)",border:"rgba(0, 0, 0, 0.15)",borderHover:"rgba(0, 0, 0, 0.30)"}}},gc={},bc=e=>({MuiCheckbox:{defaultProps:{color:"secondary"}},MuiRadio:{defaultProps:{color:"secondary"}},MuiTabs:{defaultProps:{indicatorColor:"secondary"}},MuiTypography:{styleOverrides:{root:{color:e.palette.text.primary}}},MuiGrid:{styleOverrides:{variants:[{props:{alignItems:"center"},style:{"align-items":"center"}}]}},MuiButtonBase:{defaultProps:{disableRipple:!0,disableTouchRipple:!0,focusRipple:!1},styleOverrides:{root:{borderRadius:2,border:"1px solid transparent","&.Mui-focused":{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`}}}},MuiIconButton:{styleOverrides:{root:{padding:7,borderRadius:2,border:"1px solid transparent","&:hover":{backgroundColor:e.palette.btn.hover},"&.Mui-focusVisible":{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`},"&.Mui-active":{borderColor:"transparent",boxShadow:"none",backgroundColor:e.palette.btn.active},"&:not(.Mui-active):not(.Mui-focusVisible)":{borderColor:"transparent",boxShadow:"none"}}}},MuiOutlinedInput:{styleOverrides:{root:{backgroundColor:e.palette.custom.inputBackground,"&:hover .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.btn.border},"&.Mui-focused .MuiOutlinedInput-notchedOutline":{borderColor:e.palette.custom.focusBorder,borderWidth:2}}}},MuiButton:{styleOverrides:{outlined:{padding:"3px 11px",[`&.${nc.focusVisible}`]:{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`}},contained:{color:e.palette.text.primary,padding:"3px 11px",border:`1px solid ${e.palette.btn.border}`,backgroundColor:e.palette.btn.normal,boxShadow:"none",[`&.${nc.focusVisible}`]:{borderColor:e.palette.custom.focusBorder,boxShadow:`0 0 0 2px ${e.palette.custom.focusOutline}`},"&:hover":{backgroundColor:e.palette.btn.hover,borderColor:e.palette.btn.borderHover,boxShadow:"none",[`&.${nc.disabled}`]:{backgroundColor:e.palette.btn.disabled}},"&.Mui-active":{boxShadow:"none",backgroundColor:e.palette.btn.active},[`&.${nc.disabled}`]:{backgroundColor:e.palette.btn.disabled}}}},MuiAccordionSummary:{styleOverrides:{content:{margin:"8px 0"}}}});function yc(e){let t=hc,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn(`Invalid theme: '${e}'`):"dark"===e&&(t=mc));const r=JSON.stringify(t);if(gc[r])return gc[r];const o={palette:u(u({type:t.mode},pc.palette),t.palette),typography:u({},pc.typography),shadows:pc.shadows,shape:u({},pc.shape)},i=u(u({},o),{},{components:bc(o)});return gc[r]=Tl(i),gc[r].name=n,gc[r]}Ao.configure(e=>`njs-1c83-${e.replace("Mui","")}`);var vc=C.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const Sc={active:!0,select:!0,passive:!0,edit:!1};function xc(e){const t={},n={},r=function(e){const{constraints:t={},interactions:n={}}=e;if(Object.keys(n).length>0)return n;const r={};return Object.keys(t).forEach(e=>{r[e]=!t[e]}),r}(e);Object.keys(Sc).forEach(e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=Sc[e],n[e]=!Sc[e])}),e.constraints=n,e.interactions=t}var wc=(e={},t=()=>{})=>{const n=e,r=[],o={},i={get:e=>n[e],set:(e,r)=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);return n[e]=r,o[e]=t({type:"SET",value:r}),r},clear:e=>{if(void 0===e||"object"==typeof e)throw new Error(`Invalid key: ${JSON.stringify(e)}`);n[e]=null},dispatch:e=>{r.forEach(t=>t(e?{}:n))},destroy:()=>{Object.keys(o).forEach(e=>{o[e]&&o[e]()})}};return[()=>{const[,e]=k.useState(n);return k.useEffect(()=>(r.push(e),()=>{const t=r.indexOf(e);r.splice(t,1)}),[e]),[i]},i]};const kc=k.forwardRef(({initialContext:e,renderCallback:t,modelStore:n,selectionStore:r},o)=>{const[i,a]=k.useState(e),[l,s]=k.useState(),{theme:c}=k.useMemo(()=>({theme:yc(l)}),[l]),[u,d]=k.useState([]);return k.useEffect(()=>{t&&t()},[]),k.useImperativeHandle(o,()=>({setComps(e){d([...e])},setMuiThemeName:s,setContext:e=>a(t=>JSON.stringify(t)!==JSON.stringify(e)?e:t)}),[]),i&&(i.modelStore=n,i.selectionStore=r),fr.jsx(br,{injectFirst:!0,children:fr.jsx(Fl,{theme:c,children:fr.jsx(vc.Provider,{value:i,children:u})})})});function Cc({app:e,context:t}){let n,r=!1;const o=new Promise(e=>{n=e}),i=C.createRef(),a=document.createElement("div");a.style.display="none",a.setAttribute("data-nebulajs-version","7.4.0"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&xc(t);const l=function(e){const[t,n]=wc({}),[r,o]=wc({}),[i,a]=wc({}),[l,s]=wc({}),[c,u]=wc({}),[,d]=wc({}),p=({type:e,value:t})=>{const r=d.get(t.id);d.set(t.id,{});const i=()=>{o.clear(t.id),u.set(t.id,{}),u.dispatch(!0)},l=()=>{t.removeListener("closed",l),t.removeListener("changed",i),n.clear(t.id),o.clear(t.id),a.clear(t.id),s.clear(t.id),u.clear(t.id),d.clear(t.id)};return"SET"===e&&(r||(t.on("changed",i),t.once("closed",l))),l},[f,h]=wc({},p);return{subscribe:e=>{const t=p({type:"SET",value:e});return()=>{t(),h.clear(e.id)}},destroy:()=>{h.destroy()},useModelStore:f,modelStore:h,useModelChangedStore:c,useRpcResultStore:t,rpcResultStore:n,useRpcRequestStore:r,rpcRequestStore:o,useRpcRequestModelStore:l,rpcRequestModelStore:s,useRpcRequestSessionModelStore:i,rpcRequestSessionModelStore:a,modelChangedStore:u,appId:e}}(e.id),s=function(e){const[t,n]=wc({}),[r,o]=wc({}),[i,a]=wc({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),c=st.createRoot(a);c.render(fr.jsx(kc,{ref:i,initialContext:t,renderCallback:n,modelStore:l,selectionStore:s}));const u={},d=[],p=[];return[{toggleFocusOfCells(e){Object.keys(u).forEach(t=>{var n;null===(n=u[t].current)||void 0===n||n.toggleFocus(t===e)})},cells:u,addCell(e,t){u[e]=t},removeCell(e){delete u[e]},add:(e,t)=>(async n=>{await o,p.push(e),d.push(t),null==i||null===(n=i.current)||void 0===n||n.setComps(p)})(),remove(e){r||(async t=>{await o;const n=p.indexOf(e);var r;-1!==n&&(null===(r=d[n])||void 0===r||r.call(d),p.splice(n,1),d.splice(n,1));null==i||null===(t=i.current)||void 0===t||t.setComps(p)})()},setMuiThemeName(e){(async t=>{await o,null==i||null===(t=i.current)||void 0===t||t.setMuiThemeName(e)})()},context(e){(async t=>{await o,e&&xc(e),null==i||null===(t=i.current)||void 0===t||t.setContext(e)})()},destroy(){r=!0,d.forEach(e=>{e&&e()}),l.destroy(),c.unmount(),document.body.removeChild(a)}},l,s,i,o]}const Ec=e=>e.scrollTop;function Lc(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function Rc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function Pc(e,t){const{timeout:n,easing:r,style:o={}}=e;return{duration:o.transitionDuration??("number"==typeof n?n:n[t.mode]||0),easing:o.transitionTimingFunction??("object"==typeof r?r[t.mode]:r),delay:o.transitionDelay}}function Tc(e){return"string"==typeof e}function Oc(e,t,n){return void 0===e||Tc(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Ic(e,t,n){return"function"==typeof e?e(t,n):e}function Mc(e,t=[]){if(void 0===e)return{};const n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof e[n]&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}function Dc(e){if(void 0===e)return{};const t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&"function"==typeof e[t])).forEach(n=>{t[n]=e[n]}),t}function _c(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const e=$o(n?.className,i,o?.className,r?.className),t={...n?.style,...o?.style,...r?.style},a={...n,...o,...r};return e.length>0&&(a.className=e),Object.keys(t).length>0&&(a.style=t),{props:a,internalRef:void 0}}const a=Mc({...o,...r}),l=Dc(r),s=Dc(o),c=t(a),u=$o(c?.className,n?.className,i,o?.className,r?.className),d={...c?.style,...n?.style,...o?.style,...r?.style},p={...c,...n,...s,...l};return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:c.ref}}function Nc(e,t){const{className:n,elementType:r,ownerState:o,externalForwardedProps:i,internalForwardedProps:a,shouldForwardComponentProp:l=!1,...s}=t,{component:c,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...p}=i,f=u[e]||r,h=Ic(d[e],o),{props:{component:m,...g},internalRef:b}=_c({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=ns(b,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Oc(f,{..."root"===e&&!c&&!u[e]&&a,..."root"!==e&&!u[e]&&a,...g,...v&&!l&&{as:v},...v&&l&&{component:v},ref:y},o)]}function qc(e){return Bo("MuiPaper",e)}Wo("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const jc=Dl("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,"elevation"===n.variant&&t[`elevation${n.elevation}`]]}})(Hl(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),Ac=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiPaper"}),r=Il(),{className:o,component:i="div",elevation:a=1,square:l=!1,variant:s="elevation",...c}=n,u={...n,component:i,elevation:a,square:l,variant:s},d=(e=>{const{square:t,elevation:n,variant:r,classes:o}=e;return Vi({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},qc,o)})(u);return fr.jsx(jc,{as:i,ownerState:u,className:$o(d.root,o),ref:t,...c,style:{..."elevation"===s&&{"--Paper-shadow":(r.vars||r).shadows[a],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[a]},...!r.vars&&"dark"===r.palette.mode&&{"--Paper-overlay":`linear-gradient(${ui("#fff",gl(a))}, ${ui("#fff",gl(a))})`}},...c.style}})});function zc(e){return Bo("MuiIconButton",e)}const $c=Wo("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Fc=Dl(Fs,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${Nr(n.color)}`],n.edge&&t[`edge${Nr(n.edge)}`],t[`size${Nr(n.size)}`]]}})(Hl(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),Hl(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${$c.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${$c.loading}`]:{color:"transparent"}}))),Bc=Dl("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Wc=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:l=!1,disableFocusRipple:s=!1,size:c="medium",id:u,loading:d=null,loadingIndicator:p,...f}=n,h=Ti(u),m=p??fr.jsx(ec,{"aria-labelledby":h,color:"inherit",size:16}),g={...n,edge:r,color:a,disabled:l,disableFocusRipple:s,loading:d,loadingIndicator:m,size:c},b=(e=>{const{classes:t,disabled:n,color:r,edge:o,size:i,loading:a}=e;return Vi({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${Nr(r)}`,o&&`edge${Nr(o)}`,`size${Nr(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},zc,t)})(g);return fr.jsxs(Fc,{id:d?h:u,className:$o(b.root,i),centerRipple:!0,focusRipple:!s,disabled:l||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&fr.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:fr.jsx(Bc,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})});function Hc(e){return Bo("MuiTypography",e)}Wo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Uc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Vc=qo,Gc=Dl("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${Nr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Hl(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([e,t])=>"inherit"!==e&&t&&"object"==typeof t).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>"string"==typeof e).map(([t])=>({props:{color:`text${Nr(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>"inherit"!==e.align,style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:e})=>e.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:e})=>e.paragraph,style:{marginBottom:16}}]}))),Kc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Xc=k.forwardRef(function(e,t){const{color:n,...r}=Ul({props:e,name:"MuiTypography"}),o=Vc({...r,...!Uc[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Kc,...f}=o,h={...o,align:i,color:n,className:a,component:l,gutterBottom:s,noWrap:c,paragraph:u,variant:d,variantMapping:p},m=l||(u?"p":p[d]||Kc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Vi({root:["root",i,"inherit"!==e.align&&`align${Nr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Hc,a)})(h);return fr.jsx(Gc,{as:m,ref:t,className:$o(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})});function Jc(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;const n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function Zc(e){const t=k.useRef({});return k.useEffect(()=>{t.current=e}),t.current}var Qc="top",Yc="bottom",eu="right",tu="left",nu="auto",ru=[Qc,Yc,eu,tu],ou="start",iu="end",au="viewport",lu="popper",su=ru.reduce(function(e,t){return e.concat([t+"-"+ou,t+"-"+iu])},[]),cu=[].concat(ru,[nu]).reduce(function(e,t){return e.concat([t,t+"-"+ou,t+"-"+iu])},[]),uu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function du(e){return e?(e.nodeName||"").toLowerCase():null}function pu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function fu(e){return e instanceof pu(e).Element||e instanceof Element}function hu(e){return e instanceof pu(e).HTMLElement||e instanceof HTMLElement}function mu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof pu(e).ShadowRoot||e instanceof ShadowRoot)}var gu={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];hu(o)&&du(o)&&(Object.assign(o.style,n),Object.keys(r).forEach(function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]="",e},{});hu(r)&&du(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function bu(e){return e.split("-")[0]}var yu=Math.max,vu=Math.min,Su=Math.round;function xu(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function wu(){return!/^((?!chrome|android).)*safari/i.test(xu())}function ku(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&hu(e)&&(o=e.offsetWidth>0&&Su(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Su(r.height)/e.offsetHeight||1);var a=(fu(e)?pu(e):window).visualViewport,l=!wu()&&n,s=(r.left+(l&&a?a.offsetLeft:0))/o,c=(r.top+(l&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:s+u,bottom:c+d,left:s,x:s,y:c}}function Cu(e){var t=ku(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Eu(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&mu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Lu(e){return pu(e).getComputedStyle(e)}function Ru(e){return["table","td","th"].indexOf(du(e))>=0}function Pu(e){return((fu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tu(e){return"html"===du(e)?e:e.assignedSlot||e.parentNode||(mu(e)?e.host:null)||Pu(e)}function Ou(e){return hu(e)&&"fixed"!==Lu(e).position?e.offsetParent:null}function Iu(e){for(var t=pu(e),n=Ou(e);n&&Ru(n)&&"static"===Lu(n).position;)n=Ou(n);return n&&("html"===du(n)||"body"===du(n)&&"static"===Lu(n).position)?t:n||function(e){var t=/firefox/i.test(xu());if(/Trident/i.test(xu())&&hu(e)&&"fixed"===Lu(e).position)return null;var n=Tu(e);for(mu(n)&&(n=n.host);hu(n)&&["html","body"].indexOf(du(n))<0;){var r=Lu(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function Mu(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Du(e,t,n){return yu(e,vu(t,n))}function _u(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Nu(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var qu={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,l=bu(n.placement),s=Mu(l),c=[tu,eu].indexOf(l)>=0?"height":"width";if(i&&a){var u=function(e,t){return _u("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Nu(e,ru))}(o.padding,n),d=Cu(i),p="y"===s?Qc:tu,f="y"===s?Yc:eu,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=Iu(i),b=g?"y"===s?g.clientHeight||0:g.clientWidth||0:0,y=h/2-m/2,v=u[p],S=b-d[c]-u[f],x=b/2-d[c]/2+y,w=Du(v,x,S),k=s;n.modifiersData[r]=((t={})[k]=w,t.centerOffset=w-x,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Eu(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function ju(e){return e.split("-")[1]}var Au={top:"auto",right:"auto",bottom:"auto",left:"auto"};function zu(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,l=e.position,s=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=void 0===p?0:p,h=a.y,m=void 0===h?0:h,g="function"==typeof u?u({x:f,y:m}):{x:f,y:m};f=g.x,m=g.y;var b=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),v=tu,S=Qc,x=window;if(c){var w=Iu(n),k="clientHeight",C="clientWidth";if(w===pu(n)&&"static"!==Lu(w=Pu(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),o===Qc||(o===tu||o===eu)&&i===iu)S=Yc,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=s?1:-1;if(o===tu||(o===Qc||o===Yc)&&i===iu)v=eu,f-=(d&&w===x&&x.visualViewport?x.visualViewport.width:w[C])-r.width,f*=s?1:-1}var E,L=Object.assign({position:l},c&&Au),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:Su(n*o)/o||0,y:Su(r*o)/o||0}}({x:f,y:m},pu(n)):{x:f,y:m};return f=R.x,m=R.y,s?Object.assign({},L,((E={})[S]=y?"0":"",E[v]=b?"0":"",E.transform=(x.devicePixelRatio||1)<=1?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",E)):Object.assign({},L,((t={})[S]=y?m+"px":"",t[v]=b?f+"px":"",t.transform="",t))}var $u={passive:!0};var Fu={left:"right",right:"left",bottom:"top",top:"bottom"};function Bu(e){return e.replace(/left|right|bottom|top/g,function(e){return Fu[e]})}var Wu={start:"end",end:"start"};function Hu(e){return e.replace(/start|end/g,function(e){return Wu[e]})}function Uu(e){var t=pu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vu(e){return ku(Pu(e)).left+Uu(e).scrollLeft}function Gu(e){var t=Lu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ku(e){return["html","body","#document"].indexOf(du(e))>=0?e.ownerDocument.body:hu(e)&&Gu(e)?e:Ku(Tu(e))}function Xu(e,t){var n;void 0===t&&(t=[]);var r=Ku(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=pu(r),a=o?[i].concat(i.visualViewport||[],Gu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Xu(Tu(a)))}function Ju(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Zu(e,t,n){return t===au?Ju(function(e,t){var n=pu(e),r=Pu(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=wu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Vu(e),y:s}}(e,n)):fu(t)?function(e,t){var n=ku(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):Ju(function(e){var t,n=Pu(e),r=Uu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=yu(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=yu(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Vu(e),s=-r.scrollTop;return"rtl"===Lu(o||n).direction&&(l+=yu(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Pu(e)))}function Qu(e,t,n,r){var o="clippingParents"===t?function(e){var t=Xu(Tu(e)),n=["absolute","fixed"].indexOf(Lu(e).position)>=0&&hu(e)?Iu(e):e;return fu(n)?t.filter(function(e){return fu(e)&&Eu(e,n)&&"body"!==du(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=Zu(e,n,r);return t.top=yu(o.top,t.top),t.right=vu(o.right,t.right),t.bottom=vu(o.bottom,t.bottom),t.left=yu(o.left,t.left),t},Zu(e,a,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Yu(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?bu(o):null,a=o?ju(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case Qc:t={x:l,y:n.y-r.height};break;case Yc:t={x:l,y:n.y+n.height};break;case eu:t={x:n.x+n.width,y:s};break;case tu:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Mu(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ou:t[c]=t[c]-(n[u]/2-r[u]/2);break;case iu:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function ed(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,a=void 0===i?e.strategy:i,l=n.boundary,s=void 0===l?"clippingParents":l,c=n.rootBoundary,u=void 0===c?au:c,d=n.elementContext,p=void 0===d?lu:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=_u("number"!=typeof g?g:Nu(g,ru)),y=p===lu?"reference":lu,v=e.rects.popper,S=e.elements[h?y:p],x=Qu(fu(S)?S:S.contextElement||Pu(e.elements.popper),s,u,a),w=ku(e.elements.reference),k=Yu({reference:w,element:v,placement:o}),C=Ju(Object.assign({},v,k)),E=p===lu?C:w,L={top:x.top-E.top+b.top,bottom:E.bottom-x.bottom+b.bottom,left:x.left-E.left+b.left,right:E.right-x.right+b.right},R=e.modifiersData.offset;if(p===lu&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[eu,Yc].indexOf(e)>=0?1:-1,n=[Qc,Yc].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}function td(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,l=n.flipVariations,s=n.allowedAutoPlacements,c=void 0===s?cu:s,u=ju(r),d=u?l?su:su.filter(function(e){return ju(e)===u}):ru,p=d.filter(function(e){return c.indexOf(e)>=0});0===p.length&&(p=d);var f=p.reduce(function(t,n){return t[n]=ed(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[bu(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var nd={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0===a||a,s=n.fallbackPlacements,c=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,h=void 0===f||f,m=n.allowedAutoPlacements,g=t.options.placement,b=bu(g),y=s||(b===g||!h?[Bu(g)]:function(e){if(bu(e)===nu)return[];var t=Bu(e);return[Hu(e),t,Hu(t)]}(g)),v=[g].concat(y).reduce(function(e,n){return e.concat(bu(n)===nu?td(t,{placement:n,boundary:u,rootBoundary:d,padding:c,flipVariations:h,allowedAutoPlacements:m}):n)},[]),S=t.rects.reference,x=t.rects.popper,w=new Map,k=!0,C=v[0],E=0;E<v.length;E++){var L=v[E],R=bu(L),P=ju(L)===ou,T=[Qc,Yc].indexOf(R)>=0,O=T?"width":"height",I=ed(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=T?P?eu:tu:P?Yc:Qc;S[O]>x[O]&&(M=Bu(M));var D=Bu(M),_=[];if(i&&_.push(I[R]<=0),l&&_.push(I[M]<=0,I[D]<=0),_.every(function(e){return e})){C=L,k=!1;break}w.set(L,_)}if(k)for(var N=function(e){var t=v.find(function(t){var n=w.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return C=t,"break"},q=h?3:1;q>0;q--){if("break"===N(q))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function rd(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function od(e){return[Qc,eu,Yc,tu].some(function(t){return e[t]>=0})}var id={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=cu.reduce(function(e,n){return e[n]=function(e,t,n){var r=bu(e),o=[tu,Qc].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],l=i[1];return a=a||0,l=(l||0)*o,[tu,eu].indexOf(r)>=0?{x:l,y:a}:{x:a,y:l}}(n,t.rects,i),e},{}),l=a[t.placement],s=l.x,c=l.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=s,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}};var ad={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,l=void 0!==a&&a,s=n.boundary,c=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=void 0===p||p,h=n.tetherOffset,m=void 0===h?0:h,g=ed(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=bu(t.placement),y=ju(t.placement),v=!y,S=Mu(b),x="x"===S?"y":"x",w=t.modifiersData.popperOffsets,k=t.rects.reference,C=t.rects.popper,E="function"==typeof m?m(Object.assign({},t.rects,{placement:t.placement})):m,L="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var T,O="y"===S?Qc:tu,I="y"===S?Yc:eu,M="y"===S?"height":"width",D=w[S],_=D+g[O],N=D-g[I],q=f?-C[M]/2:0,j=y===ou?k[M]:C[M],A=y===ou?-C[M]:-k[M],z=t.elements.arrow,$=f&&z?Cu(z):{width:0,height:0},F=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=F[O],W=F[I],H=Du(0,k[M],$[M]),U=v?k[M]/2-q-H-B-L.mainAxis:j-H-B-L.mainAxis,V=v?-k[M]/2+q+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&Iu(t.elements.arrow),K=G?"y"===S?G.clientTop||0:G.clientLeft||0:0,X=null!=(T=null==R?void 0:R[S])?T:0,J=D+V-X,Z=Du(f?vu(_,D+U-X-K):_,D,f?yu(N,J):N);w[S]=Z,P[S]=Z-D}if(l){var Q,Y="x"===S?Qc:tu,ee="x"===S?Yc:eu,te=w[x],ne="y"===x?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[Qc,tu].indexOf(b),ae=null!=(Q=null==R?void 0:R[x])?Q:0,le=ie?re:te-k[ne]-C[ne]-ae+L.altAxis,se=ie?te+k[ne]+C[ne]-ae-L.altAxis:oe,ce=f&&ie?function(e,t,n){var r=Du(e,t,n);return r>n?n:r}(le,te,se):Du(f?le:re,te,f?se:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function ld(e,t,n){void 0===n&&(n=!1);var r=hu(t),o=hu(t)&&function(e){var t=e.getBoundingClientRect(),n=Su(t.width)/e.offsetWidth||1,r=Su(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Pu(t),a=ku(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==du(t)||Gu(i))&&(l=function(e){return e!==pu(e)&&hu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Uu(e);var t}(t)),hu(t)?((s=ku(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Vu(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function sd(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}}),r.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){n.has(e.name)||o(e)}),r}function cd(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var ud={placement:"bottom",modifiers:[],strategy:"absolute"};function dd(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function pd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ud:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ud,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],l=!1,s={state:o,setOptions:function(n){var l="function"==typeof n?n(o.options):n;c(),o.options=Object.assign({},i,o.options,l),o.scrollParents={reference:fu(e)?Xu(e):e.contextElement?Xu(e.contextElement):[],popper:Xu(t)};var u,d,p=function(e){var t=sd(e);return uu.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}((u=[].concat(r,o.options.modifiers),d=u.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{}),Object.keys(d).map(function(e){return d[e]})));return o.orderedModifiers=p.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var l=i({state:o,name:t,instance:s,options:r}),c=function(){};a.push(l||c)}}),s.update()},forceUpdate:function(){if(!l){var e=o.elements,t=e.reference,n=e.popper;if(dd(t,n)){o.rects={reference:ld(t,Iu(n),"fixed"===o.options.strategy),popper:Cu(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],a=i.fn,c=i.options,u=void 0===c?{}:c,d=i.name;"function"==typeof a&&(o=a({state:o,options:u,name:d,instance:s})||o)}else o.reset=!1,r=-1}}},update:cd(function(){return new Promise(function(e){s.forceUpdate(),e(o)})}),destroy:function(){c(),l=!0}};if(!dd(e,t))return s;function c(){a.forEach(function(e){return e()}),a=[]}return s.setOptions(n).then(function(e){!l&&n.onFirstUpdate&&n.onFirstUpdate(e)}),s}}var fd=pd({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,l=void 0===a||a,s=pu(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,$u)}),l&&s.addEventListener("resize",n.update,$u),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,$u)}),l&&s.removeEventListener("resize",n.update,$u)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Yu({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,l=n.roundOffsets,s=void 0===l||l,c={placement:bu(t.placement),variation:ju(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,zu(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:s})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,zu(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:s})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},gu,id,nd,ad,qu,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ed(t,{elementContext:"reference"}),l=ed(t,{altBoundary:!0}),s=rd(a,r),c=rd(l,o,i),u=od(s),d=od(c);t.modifiersData[n]={referenceClippingOffsets:s,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}}]});function hd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const md=k.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=k.useState(null),l=ns(k.isValidElement(n)?hd(n):null,t);if(ri(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ri(()=>{if(i&&!o)return Yl(t,i),()=>{Yl(t,null)}},[t,i,o]),o){if(k.isValidElement(n)){const e={ref:l};return k.cloneElement(n,e)}return n}return i?ds.createPortal(n,i):i});function gd(e){return Bo("MuiPopper",e)}function bd(e){return"function"==typeof e?e():e}Wo("MuiPopper",["root"]);const yd={},vd=k.forwardRef(function(e,t){const{anchorEl:n,children:r,direction:o,disablePortal:i,modifiers:a,open:l,placement:s,popperOptions:c,popperRef:u,slotProps:d={},slots:p={},TransitionProps:f,ownerState:h,...m}=e,g=k.useRef(null),b=ns(g,t),y=k.useRef(null),v=ns(y,u),S=k.useRef(v);ri(()=>{S.current=v},[v]),k.useImperativeHandle(u,()=>y.current,[]);const x=function(e,t){if("ltr"===t)return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}(s,o),[w,C]=k.useState(x),[E,L]=k.useState(bd(n));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{n&&L(bd(n))},[n]),ri(()=>{if(!E||!l)return;let e=[{name:"preventOverflow",options:{altBoundary:i}},{name:"flip",options:{altBoundary:i}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:e})=>{C(e.placement)}}];null!=a&&(e=e.concat(a)),c&&null!=c.modifiers&&(e=e.concat(c.modifiers));const t=fd(E,g.current,{placement:x,...c,modifiers:e});S.current(t);const n=g.current;return()=>{if(n){const{style:e}=n,r=e.position,o=e.top,i=e.left,a=e.transform;t.destroy(),e.position=r,e.top=o,e.left=i,e.transform=a}else t.destroy();S.current(null)}},[E,i,a,l,c,x]);const R={placement:w};null!==f&&(R.TransitionProps=f);const P=(e=>{const{classes:t}=e;return Vi({root:["root"]},gd,t)})(e),T=p.root??"div",O=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:Ic(n,r),{props:l,internalRef:s}=_c({...i,externalSlotProps:a});return Oc(t,{...l,ref:ns(s,a?.ref,e.additionalProps?.ref)},r)}({elementType:T,externalSlotProps:d.root,externalForwardedProps:m,additionalProps:{role:"tooltip",ref:b},ownerState:e,className:P.root});return fr.jsx(T,{...O,children:"function"==typeof r?r(R):r})}),Sd=k.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:l=!1,modifiers:s,open:c,placement:u="bottom",popperOptions:d=yd,popperRef:p,style:f,transition:h=!1,slotProps:m={},slots:g={},...b}=e,[y,v]=k.useState(!0);if(!l&&!c&&(!h||y))return null;let S;if(o)S=o;else if(n){const e=bd(n);S=e&&void 0!==e.nodeType?Zl(e).body:Zl(null).body}const x=c||!l||h&&!y?void 0:"none",w=h?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return fr.jsx(md,{disablePortal:a,container:S,children:fr.jsx(vd,{anchorEl:n,direction:i,disablePortal:a,modifiers:s,ref:t,open:h?!y:c,placement:u,popperOptions:d,popperRef:p,slotProps:m,slots:g,...b,style:{position:"fixed",top:0,left:0,display:x,...f},TransitionProps:w,children:r})})}),xd=Dl(Sd,{name:"MuiPopper",slot:"Root"})({}),wd=k.forwardRef(function(e,t){const n=ki(),r=Ul({props:e,name:"MuiPopper"}),{anchorEl:o,component:i,components:a,componentsProps:l,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,slots:b,slotProps:y,...v}=r,S=b?.root??a?.Root,x={anchorEl:o,container:s,disablePortal:c,keepMounted:u,modifiers:d,open:p,placement:f,popperOptions:h,popperRef:m,transition:g,...v};return fr.jsx(xd,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:y??l,...x,ref:t})});function kd(e){return parseInt(e,10)||0}const Cd={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Ed(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Ld=k.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a,...l}=e,{current:s}=k.useRef(null!=a),c=k.useRef(null),u=ns(t,c),d=k.useRef(null),p=k.useRef(null),f=k.useCallback(()=>{const t=c.current,n=p.current;if(!t||!n)return;const i=Ql(t).getComputedStyle(t);if("0px"===i.width)return{outerHeightStyle:0,overflowing:!1};n.style.width=i.width,n.value=t.value||e.placeholder||"x","\n"===n.value.slice(-1)&&(n.value+=" ");const a=i.boxSizing,l=kd(i.paddingBottom)+kd(i.paddingTop),s=kd(i.borderBottomWidth)+kd(i.borderTopWidth),u=n.scrollHeight;n.value="x";const d=n.scrollHeight;let f=u;o&&(f=Math.max(Number(o)*d,f)),r&&(f=Math.min(Number(r)*d,f)),f=Math.max(f,d);return{outerHeightStyle:f+("border-box"===a?l+s:0),overflowing:Math.abs(f-u)<=1}},[r,o,e.placeholder]),h=ts(()=>{const e=c.current,t=f();if(!e||!t||Ed(t))return!1;const n=t.outerHeightStyle;return null!=d.current&&d.current!==n}),m=k.useCallback(()=>{const e=c.current,t=f();if(!e||!t||Ed(t))return;const n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?"hidden":""},[f]),g=k.useRef(-1);ri(()=>{const e=Jl(m),t=c?.current;if(!t)return;const n=Ql(t);let r;return n.addEventListener("resize",e),"undefined"!=typeof ResizeObserver&&(r=new ResizeObserver(()=>{h()&&(r.unobserve(t),cancelAnimationFrame(g.current),m(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener("resize",e),r&&r.disconnect()}},[f,m,h]),ri(()=>{m()});return fr.jsxs(k.Fragment,{children:[fr.jsx("textarea",{value:a,onChange:e=>{s||m();const t=e.target,r=t.value.length,o=t.value.endsWith("\n"),i=t.selectionStart===r;o&&i&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:o,style:i,...l}),fr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Cd,...i,paddingTop:0,paddingBottom:0}})]})});function Rd({props:e,states:t,muiFormControl:n}){return t.reduce((t,r)=>(t[r]=e[r],n&&void 0===e[r]&&(t[r]=n[r]),t),{})}const Pd=k.createContext(void 0);function Td(){return k.useContext(Pd)}function Od(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function Id(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Md(e){return Bo("MuiInputBase",e)}const Dd=Wo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _d;const Nd="mui-auto-fill",qd="mui-auto-fill-cancel",jd=(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${Nr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Ad=(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]},zd=Dl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:jd})(Hl(({theme:e})=>({...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",[`&.${Dd.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:"100%"}}]}))),$d=Dl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Ad})(Hl(({theme:e})=>{const t="light"===e.palette.mode,n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Dd.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Dd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:qd,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:Nd}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Fd=function(e){return function(t){return fr.jsx(Wl,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${Nd}`]:{from:{animationName:Nd}},[`@keyframes ${qd}`]:{from:{animationName:qd}}}),Bd=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiInputBase"}),{"aria-describedby":r,autoComplete:o,autoFocus:i,className:a,color:l,components:s={},componentsProps:c={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,error:h,fullWidth:m=!1,id:g,inputComponent:b="input",inputProps:y={},inputRef:v,margin:S,maxRows:x,minRows:w,multiline:C=!1,name:E,onBlur:L,onChange:R,onClick:P,onFocus:T,onKeyDown:O,onKeyUp:I,placeholder:M,readOnly:D,renderSuffix:_,rows:N,size:q,slotProps:j={},slots:A={},startAdornment:z,type:$="text",value:F,...B}=n,W=null!=y.value?y.value:F,{current:H}=k.useRef(null!=W),U=k.useRef(),V=k.useCallback(e=>{},[]),G=ns(U,v,y.ref,V),[K,X]=k.useState(!1),J=Td(),Z=Rd({props:n,muiFormControl:J,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Z.focused=J?J.focused:K,k.useEffect(()=>{!J&&d&&K&&(X(!1),L&&L())},[J,d,K,L]);const Q=J&&J.onFilled,Y=J&&J.onEmpty,ee=k.useCallback(e=>{!function(e,t=!1){return e&&(Id(e.value)&&""!==e.value||t&&Id(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():Q&&Q()},[Q,Y]);ri(()=>{H&&ee({value:W})},[W,ee,H]),ri(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Zl(e),n=Od(t),r=null==n||n===t.body||n===t.documentElement;e===n?J&&J.onFocus?J.onFocus():X(!0):r&&e.focus()},[i]);k.useEffect(()=>{ee(U.current)},[]);let te=b,ne=y;C&&"input"===te&&(ne=N?{type:void 0,minRows:N,maxRows:N,...ne}:{type:void 0,maxRows:x,minRows:w,...ne},te=Ld);k.useEffect(()=>{J&&J.setAdornedStart(Boolean(z))},[J,z]);const re={...n,color:Z.color||"primary",disabled:Z.disabled,endAdornment:f,error:Z.error,focused:Z.focused,formControl:J,fullWidth:m,hiddenLabel:Z.hiddenLabel,multiline:C,size:Z.size,startAdornment:z,type:$},oe=(e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:l,fullWidth:s,hiddenLabel:c,multiline:u,readOnly:d,size:p,startAdornment:f,type:h}=e;return Vi({root:["root",`color${Nr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${Nr(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",c&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled","search"===h&&"inputTypeSearch",u&&"inputMultiline","small"===p&&"inputSizeSmall",c&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]},Md,t)})(re),ie=A.root||s.Root||zd,ae=j.root||c.root||{},le=A.input||s.Input||$d;return ne={...ne,...j.input??c.input},fr.jsxs(k.Fragment,{children:[!p&&"function"==typeof Fd&&(_d||(_d=fr.jsx(Fd,{}))),fr.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Tc(ie)&&{ownerState:{...re,...ae.ownerState}},className:$o(oe.root,ae.className,a,D&&"MuiInputBase-readOnly"),children:[z,fr.jsx(Pd.Provider,{value:null,children:fr.jsx(le,{"aria-invalid":Z.error,"aria-describedby":r,autoComplete:o,autoFocus:i,defaultValue:u,disabled:Z.disabled,id:g,onAnimationStart:e=>{ee(e.animationName===qd?U.current:{value:"x"})},name:E,placeholder:M,readOnly:D,required:Z.required,rows:N,value:W,onKeyDown:O,onKeyUp:I,type:$,...ne,...!Tc(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:$o(oe.input,ne.className,D&&"MuiInputBase-readOnly"),onBlur:e=>{L&&L(e),y.onBlur&&y.onBlur(e),J&&J.onBlur?J.onBlur(e):X(!1)},onChange:(e,...t)=>{if(!H){const t=e.target||U.current;if(null==t)throw new Error(ct(1));ee({value:t.value})}y.onChange&&y.onChange(e,...t),R&&R(e,...t)},onFocus:e=>{T&&T(e),y.onFocus&&y.onFocus(e),J&&J.onFocus?J.onFocus(e):X(!0)}})}),f,_?_({...Z,startAdornment:z}):null]})]})});function Wd(e){return Bo("MuiOutlinedInput",e)}const Hd={...Dd,...Wo("MuiOutlinedInput",["root","notchedOutline","input"])},Ud={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Vd={opacity:0,visibility:"hidden"},Gd=k.forwardRef(function(e,t){const n=Il(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:l,in:s,onEnter:c,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:h,style:m,timeout:g=r,...b}=e,y=k.useRef(null),v=ns(y,hd(a),t),S=Lc(y,d),x=Lc(y,(e,t)=>{Ec(e);const r=Pc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),w=Lc(y,u),C=Lc(y,h),E=Lc(y,e=>{const t=Pc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),L=Lc(y,e=>{e.style.transition="",f&&f(e)});return fr.jsx(Ss,{appear:i,in:s,nodeRef:y,onEnter:x,onEntered:w,onEntering:S,onExit:E,onExited:L,onExiting:C,addEndListener:e=>{o&&o(y.current,e)},timeout:g,...b,children:(e,{ownerState:t,...n})=>{const r=Rc(e,s,Ud,Vd,m,a.props.style);return k.cloneElement(a,{style:r,ref:v,...n})}})});function Kd(e){return Bo("MuiBackdrop",e)}Wo("MuiBackdrop",["root","invisible"]);const Xd=Dl("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),Jd=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiBackdrop"}),{children:r,className:o,component:i="div",invisible:a=!1,open:l,components:s={},componentsProps:c={},slotProps:u={},slots:d={},TransitionComponent:p,transitionDuration:f,...h}=n,m={...n,component:i,invisible:a},g=(e=>{const{classes:t,invisible:n}=e;return Vi({root:["root",n&&"invisible"]},Kd,t)})(m),b={component:i,slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,v]=Nc("root",{elementType:Xd,externalForwardedProps:b,className:$o(g.root,o),ownerState:m}),[S,x]=Nc("transition",{elementType:Gd,externalForwardedProps:b,ownerState:m});return fr.jsx(S,{in:l,timeout:f,...h,...x,children:fr.jsx(y,{"aria-hidden":!0,...v,ref:t,children:r})})});function Zd(e){return Bo("MuiBadge",e)}const Qd=Wo("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]),Yd=Dl("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),ep=Dl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${Nr(n.anchorOrigin.vertical)}${Nr(n.anchorOrigin.horizontal)}${Nr(n.overlap)}`],"default"!==n.color&&t[`color${Nr(n.color)}`],n.invisible&&t.invisible]}})(Hl(({theme:e})=>({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(Ws(["contrastText"])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:"dot"},style:{borderRadius:4,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create("transform",{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{const{vertical:t,horizontal:n}=e.anchorOrigin,r="circular"===e.overlap?"14%":0;return{"--Badge-translateX":"right"===n?"50%":"-50%","--Badge-translateY":"top"===t?"-50%":"50%",top:"top"===t?r:"initial",bottom:"bottom"===t?r:"initial",right:"right"===n?r:"initial",left:"left"===n?r:"initial",transform:"scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))",transformOrigin:`${"right"===n?"100%":"0%"} ${"top"===t?"0%":"100%"}`,[`&.${Qd.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function tp(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const np=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiBadge"}),{anchorOrigin:r,className:o,classes:i,component:a,components:l={},componentsProps:s={},children:c,overlap:u="rectangular",color:d="default",invisible:p=!1,max:f=99,badgeContent:h,slots:m,slotProps:g,showZero:b=!1,variant:y="standard",...v}=n,{badgeContent:S,invisible:x,max:w,displayValue:k}=function(e){const{badgeContent:t,invisible:n=!1,max:r=99,showZero:o=!1}=e,i=Zc({badgeContent:t,max:r});let a=n;!1!==n||0!==t||o||(a=!0);const{badgeContent:l,max:s=r}=a?i:e;return{badgeContent:l,invisible:a,max:s,displayValue:l&&Number(l)>s?`${s}+`:l}}({max:f,invisible:p,badgeContent:h,showZero:b}),C=Zc({anchorOrigin:tp(r),color:d,overlap:u,variant:y,badgeContent:h}),E=x||null==S&&"dot"!==y,{color:L=d,overlap:R=u,anchorOrigin:P,variant:T=y}=E?C:n,O=tp(P),I="dot"!==T?k:void 0,M={...n,badgeContent:S,invisible:E,max:w,displayValue:I,showZero:b,anchorOrigin:O,color:L,overlap:R,variant:T},D=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Vi({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${Nr(n.vertical)}${Nr(n.horizontal)}`,`anchorOrigin${Nr(n.vertical)}${Nr(n.horizontal)}${Nr(o)}`,`overlap${Nr(o)}`,"default"!==t&&`color${Nr(t)}`]},Zd,a)})(M),_={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[N,q]=Nc("root",{elementType:Yd,externalForwardedProps:{..._,...v},ownerState:M,className:$o(D.root,o),ref:t,additionalProps:{as:a}}),[j,A]=Nc("badge",{elementType:ep,externalForwardedProps:_,ownerState:M,className:D.badge});return fr.jsxs(N,{...q,children:[c,fr.jsx(j,{...A,children:I})]})}),rp=Wo("MuiBox",["root"]),op=Tl(),ip=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=vr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Po),a=k.forwardRef(function(e,a){const l=Do(n),{className:s,component:c="div",...u}=qo(e);return fr.jsx(i,{as:c,ref:a,className:$o(s,o?o(r):r),theme:t&&l[t]||l,...u})});return a}({themeId:ut,defaultTheme:op,defaultClassName:rp.root,generateClassName:Ao.generate});function ap(e){return Bo("PrivateSwitchBase",e)}Wo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const lp=Dl(Fs,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>"start"===e&&"small"!==t.size,style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>"end"===e&&"small"!==t.size,style:{marginRight:-12}}]}),sp=Dl("input",{name:"MuiSwitchBase",shouldForwardProp:Ml})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),cp=k.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,defaultChecked:i,disabled:a,disableFocusRipple:l=!1,edge:s=!1,icon:c,id:u,inputProps:d,inputRef:p,name:f,onBlur:h,onChange:m,onFocus:g,readOnly:b,required:y=!1,tabIndex:v,type:S,value:x,slots:w={},slotProps:k={},...C}=e,[E,L]=es({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Td();let P=a;R&&void 0===P&&(P=R.disabled);const T="checkbox"===S||"radio"===S,O={...e,checked:E,disabled:P,disableFocusRipple:l,edge:s},I=(e=>{const{classes:t,checked:n,disabled:r,edge:o}=e;return Vi({root:["root",n&&"checked",r&&"disabled",o&&`edge${Nr(o)}`],input:["input"]},ap,t)})(O),M={slots:w,slotProps:{input:d,...k}},[D,_]=Nc("root",{ref:t,elementType:lp,className:I.root,shouldForwardComponentProp:!0,externalForwardedProps:{...M,component:"span",...C},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),(e=>{g&&g(e),R&&R.onFocus&&R.onFocus(e)})(t)},onBlur:t=>{e.onBlur?.(t),(e=>{h&&h(e),R&&R.onBlur&&R.onBlur(e)})(t)}}),ownerState:O,additionalProps:{centerRipple:!0,focusRipple:!l,role:void 0,tabIndex:null}}),[N,q]=Nc("input",{ref:p,elementType:sp,className:I.input,externalForwardedProps:M,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),(e=>{if(e.nativeEvent.defaultPrevented||b)return;const t=e.target.checked;L(t),m&&m(e,t)})(t)}}),ownerState:O,additionalProps:{autoFocus:n,checked:r,defaultChecked:i,disabled:P,id:T?u:void 0,name:f,readOnly:b,required:y,tabIndex:v,type:S,..."checkbox"===S&&void 0===x?{}:{value:x}}});return fr.jsxs(D,{..._,children:[fr.jsx(N,{...q}),E?o:c]})});var up=Xl(fr.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),dp=Xl(fr.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),pp=Xl(fr.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function fp(e){return Bo("MuiCheckbox",e)}const hp=Wo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),mp=Dl(cp,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Nr(n.size)}`],"default"!==n.color&&t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{[`&.${hp.checked}, &.${hp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${hp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),gp=fr.jsx(dp,{}),bp=fr.jsx(up,{}),yp=fr.jsx(pp,{}),vp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiCheckbox"}),{checkedIcon:r=gp,color:o="primary",icon:i=bp,indeterminate:a=!1,indeterminateIcon:l=yp,inputProps:s,size:c="medium",disableRipple:u=!1,className:d,slots:p={},slotProps:f={},...h}=n,m=a?l:i,g=a?l:r,b={...n,disableRipple:u,color:o,indeterminate:a,size:c},y=(e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i=Vi({root:["root",n&&"indeterminate",`color${Nr(r)}`,`size${Nr(o)}`]},fp,t);return{...t,...i}})(b),v=f.input??s,[S,x]=Nc("root",{ref:t,elementType:mp,className:$o(y.root,d),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:f,...h},ownerState:b,additionalProps:{type:"checkbox",icon:k.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:k.cloneElement(g,{fontSize:g.props.fontSize??c}),disableRipple:u,slots:p,slotProps:{input:rs("function"==typeof v?v(b):v,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return fr.jsx(S,{...x,classes:y})});function Sp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function xp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function wp(e){return parseFloat(Ql(e).getComputedStyle(e).paddingRight)||0}function kp(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,e=>{const t=!i.includes(e),n=!function(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),n="INPUT"===e.tagName&&"hidden"===e.getAttribute("type");return t||n}(e);t&&n&&xp(e,o)})}function Cp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Ep(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Zl(e);return t.body===e?Ql(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=Sp(Ql(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${wp(r)+e}px`;const t=Zl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${wp(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Zl(r).body;else{const t=r.parentElement,n=Ql(r);e="HTML"===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 Lp="data-mui-focusable";const Rp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Pp(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rp)).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 Tp(){return!0}function Op(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Pp,isEnabled:a=Tp,open:l}=e,s=k.useRef(!1),c=k.useRef(null),u=k.useRef(null),d=k.useRef(null),p=k.useRef(null),f=k.useRef(!1),h=k.useRef(null),m=ns(hd(t),h),g=k.useRef(null);k.useEffect(()=>{l&&h.current&&(f.current=!n)},[n,l]),k.useEffect(()=>{if(s.current=!1,!l||!h.current)return;const e=Od(Zl(h.current)),t=((n=h.current)?n.hasAttribute(Lp)?n:n.querySelector(`[${Lp}]`):null)??h.current;var n;return Jc(h.current,e)||(t.hasAttribute("tabIndex")||t.setAttribute("tabIndex","-1"),f.current&&t.focus()),()=>{o||(d.current&&d.current.focus&&(s.current=!0,d.current.focus()),d.current=null)}},[l]),k.useEffect(()=>{if(!l||!h.current)return;const e=Zl(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;Od(e)===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;const n=Od(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(Jc(t,n))return;if(r&&n!==c.current&&n!==u.current)return;if(n!==p.current)p.current=null;else if(null!==p.current)return;if(!f.current)return;let o=[];if(n!==c.current&&n!==u.current||(o=i(h.current)),o.length>0){const e=Boolean(g.current?.shiftKey&&"Tab"===g.current?.key),t=o[0],n=o[o.length-1];"string"!=typeof t&&"string"!=typeof n&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener("focusin",n),e.addEventListener("keydown",t,!0);const o=setInterval(()=>{const t=Od(e);t&&"BODY"===t.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 fr.jsxs(k.Fragment,{children:[fr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:c,"data-testid":"sentinelStart"}),k.cloneElement(t,{ref:m,onFocus:e=>{null===d.current&&(d.current=e.relatedTarget),f.current=!0,p.current=e.target;const n=t.props.onFocus;n&&n(e)}}),fr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const Ip=()=>{},Mp=new class{constructor(){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&&xp(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);kp(t,e.mount,e.modalRef,r,!0);const o=Cp(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=Cp(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Ep(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Cp(this.containers,t=>t.modals.includes(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&&xp(e.modalRef,t),kp(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&&xp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Dp(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:o=!1,onTransitionEnter:i,onTransitionExited:a,children:l,onClose:s,open:c,rootRef:u}=e,d=k.useRef({}),p=k.useRef(null),f=k.useRef(null),h=ns(f,u),[m,g]=k.useState(!c),b=function(e){return!!e&&e.props.hasOwnProperty("in")}(l);let y=!0;"false"!==e["aria-hidden"]&&!1!==e["aria-hidden"]||(y=!1);const v=()=>(d.current.modalRef=f.current,d.current.mount=p.current,d.current),S=()=>{Mp.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=ts(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Zl(p.current).body;Mp.add(v(),e),f.current&&S()}),w=()=>Mp.isTopModal(v()),C=ts(e=>{p.current=e,e&&(c&&w()?S():f.current&&xp(f.current,y))}),E=k.useCallback(()=>{Mp.remove(v(),y)},[y]);k.useEffect(()=>()=>{E()},[E]),k.useEffect(()=>{c?x():b&&o||E()},[c,E,b,o,x]);const L=e=>t=>{e.onKeyDown?.(t),"Escape"===t.key&&229!==t.which&&w()&&(n||(t.stopPropagation(),s&&s(t,"escapeKeyDown")))},R=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,"backdropClick")};return{getRootProps:(t={})=>{const n=Mc(e);delete n.onTransitionEnter,delete n.onTransitionExited;const r={...n,...t};return{role:"presentation",...r,onKeyDown:L(r),ref:h}},getBackdropProps:(e={})=>{const t=e;return{"aria-hidden":!0,...t,onClick:R(t),open:c}},getTransitionProps:()=>({onEnter:Bl(()=>{g(!1),i&&i()},l?.props.onEnter??Ip),onExited:Bl(()=>{g(!0),a&&a(),o&&E()},l?.props.onExited??Ip)}),rootRef:h,portalRef:C,isTopModal:w,exited:m,hasTransition:b}}function _p(e){return Bo("MuiModal",e)}Wo("MuiModal",["root","hidden","backdrop"]);const Np=Dl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Hl(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:"hidden"}}]}))),qp=Dl(Jd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),jp=k.forwardRef(function(e,t){const n=Ul({name:"MuiModal",props:e}),{BackdropComponent:r=qp,BackdropProps:o,classes:i,className:a,closeAfterTransition:l=!1,children:s,container:c,component:u,components:d={},componentsProps:p={},disableAutoFocus:f=!1,disableEnforceFocus:h=!1,disableEscapeKeyDown:m=!1,disablePortal:g=!1,disableRestoreFocus:b=!1,disableScrollLock:y=!1,hideBackdrop:v=!1,keepMounted:S=!1,onClose:x,onTransitionEnter:w,onTransitionExited:C,open:E,slotProps:L={},slots:R={},theme:P,...T}=n,O={...n,closeAfterTransition:l,disableAutoFocus:f,disableEnforceFocus:h,disableEscapeKeyDown:m,disablePortal:g,disableRestoreFocus:b,disableScrollLock:y,hideBackdrop:v,keepMounted:S},{getRootProps:I,getBackdropProps:M,getTransitionProps:D,portalRef:_,isTopModal:N,exited:q,hasTransition:j}=Dp({...O,rootRef:t}),A={...O,exited:q},z=(e=>{const{open:t,exited:n,classes:r}=e;return Vi({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_p,r)})(A),$={};if(void 0===s.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=D();$.onEnter=e,$.onExited=t}const F={slots:{root:d.Root,backdrop:d.Backdrop,...R},slotProps:{...p,...L}},[B,W]=Nc("root",{ref:t,elementType:Np,externalForwardedProps:{...F,...T,component:u},getSlotProps:I,ownerState:A,className:$o(a,z?.root,!A.open&&A.exited&&z?.hidden)}),[H,U]=Nc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:$o(o?.className,z?.backdrop),ownerState:A});return S||E||j&&!q?fr.jsx(md,{ref:_,container:c,disablePortal:g,children:fr.jsxs(B,{...W,children:[!v&&r?fr.jsx(H,{...U}):null,fr.jsx(Op,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:b,isEnabled:N,open:E,children:k.cloneElement(s,$)})]})}):null});function Ap(e){return Bo("MuiDivider",e)}const zp=Wo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),$p=Dl("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]}})(Hl(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.alpha((e.vars||e).palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:e})=>!!e.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:e})=>e.children&&"vertical"!==e.orientation,style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:e})=>"vertical"===e.orientation&&e.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:e})=>"right"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:e})=>"left"===e.textAlign&&"vertical"!==e.orientation,style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),Fp=Dl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Hl(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),Bp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiDivider"}),{absolute:r=!1,children:o,className:i,orientation:a="horizontal",component:l=(o||"vertical"===a?"div":"hr"),flexItem:s=!1,light:c=!1,role:u=("hr"!==l?"separator":void 0),textAlign:d="center",variant:p="fullWidth",...f}=n,h={...n,absolute:r,component:l,flexItem:s,light:c,orientation:a,role:u,textAlign:d,variant:p},m=(e=>{const{absolute:t,children:n,classes:r,flexItem:o,light:i,orientation:a,textAlign:l,variant:s}=e;return Vi({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"]},Ap,r)})(h);return fr.jsx($p,{as:l,className:$o(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?fr.jsx(Fp,{className:m.wrapper,ownerState:h,children:o}):null})});function Wp(e){return Bo("MuiFormControlLabel",e)}Bp&&(Bp.muiSkipListHighlight=!0);const Hp=Wo("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Up=Dl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Hp.label}`]:t.label},t.root,t[`labelPlacement${Nr(n.labelPlacement)}`]]}})(Hl(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Hp.disabled}`]:{cursor:"default"},[`& .${Hp.label}`]:{[`&.${Hp.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:"start"},style:{flexDirection:"row-reverse",marginRight:-11}},{props:{labelPlacement:"top"},style:{flexDirection:"column-reverse"}},{props:{labelPlacement:"bottom"},style:{flexDirection:"column"}},{props:({labelPlacement:e})=>"start"===e||"top"===e||"bottom"===e,style:{marginLeft:16}}]}))),Vp=Dl("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Hl(({theme:e})=>({[`&.${Hp.error}`]:{color:(e.vars||e).palette.error.main}}))),Gp=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiFormControlLabel"}),{checked:r,className:o,componentsProps:i={},control:a,disabled:l,disableTypography:s,inputRef:c,label:u,labelPlacement:d="end",name:p,onChange:f,required:h,slots:m={},slotProps:g={},value:b,...y}=n,v=Td(),S=l??a.props.disabled??v?.disabled,x=h??a.props.required,w={disabled:S,required:x};["checked","name","onChange","value","inputRef"].forEach(e=>{void 0===a.props[e]&&void 0!==n[e]&&(w[e]=n[e])});const C=Rd({props:n,muiFormControl:v,states:["error"]}),E={...n,disabled:S,labelPlacement:d,required:x,error:C.error},L=(e=>{const{classes:t,disabled:n,labelPlacement:r,error:o,required:i}=e;return Vi({root:["root",n&&"disabled",`labelPlacement${Nr(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Wp,t)})(E),R={slots:m,slotProps:{...i,...g}},[P,T]=Nc("typography",{elementType:Xc,externalForwardedProps:R,ownerState:E});let O=u;return null==O||O.type===Xc||s||(O=fr.jsx(P,{component:"span",...T,className:$o(L.label,T?.className),children:O})),fr.jsxs(Up,{className:$o(L.root,o),ownerState:E,ref:t,...y,children:[k.cloneElement(a,w),x?fr.jsxs("div",{children:[O,fr.jsxs(Vp,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):O]})}),Kp=function(e={}){const{createStyledComponent:t=ua,useThemeProps:n=da,useTheme:r=Do,componentName:o="MuiGrid"}=e;function i(e,t,n=()=>!0){const r={};return null===e||(Array.isArray(e)?e.forEach((e,o)=>{null!==e&&n(e)&&t.keys[o]&&(r[t.keys[o]]=e)}):"object"==typeof e?Object.keys(e).forEach(t=>{const o=e[t];null!=o&&n(o)&&(r[t]=o)}):r[t.keys[0]]=e),r}const a=t(ta,ra,na,Yi,oa,ia,ea),l=k.forwardRef(function(e,t){const l=r(),s=qo(n(e));!function(e,t){void 0!==e.item&&delete e.item,void 0!==e.zeroMinWidth&&delete e.zeroMinWidth,t.keys.forEach(t=>{void 0!==e[t]&&delete e[t]})}(s,l.breakpoints);const{className:c,children:u,columns:d=12,container:p=!1,component:f="div",direction:h="row",wrap:m="wrap",size:g={},offset:b={},spacing:y=0,rowSpacing:v=y,columnSpacing:S=y,unstable_level:x=0,...w}=s,C=i(g,l.breakpoints,e=>!1!==e),E=i(b,l.breakpoints),L=e.columns??(x?void 0:d),R=e.spacing??(x?void 0:y),P=e.rowSpacing??e.spacing??(x?void 0:v),T=e.columnSpacing??e.spacing??(x?void 0:S),O={...s,level:x,columns:L,container:p,direction:h,wrap:m,spacing:R,rowSpacing:P,columnSpacing:T,size:C,offset:E},I=((e,t)=>{const{container:n,direction:r,spacing:i,wrap:a,size:l}=e;return Vi({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...sa(r),...aa(l),...n?la(i,t.breakpoints.keys[0]):[]]},e=>Bo(o,e),{})})(O,l);return fr.jsx(a,{ref:t,as:f,ownerState:O,className:$o(I.root,c),...w,children:k.Children.map(u,e=>k.isValidElement(e)&&Gi(e,["Grid"])&&p&&e.props.container?k.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:Dl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Ul({props:e,name:"MuiGrid"}),useTheme:Il});function Xp(e){return`scale(${e}, ${e**2})`}const Jp={entering:{opacity:1,transform:Xp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Xp(.75)},exited:{opacity:0,transform:Xp(.75)}},Zp={opacity:0,transform:Xp(.75),visibility:"hidden"},Qp=k.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:l,onEntered:s,onEntering:c,onExit:u,onExited:d,onExiting:p,style:f,timeout:h="auto",...m}=e,g=Os(),b=k.useRef(),y=Il(),v=k.useRef(null),S=ns(v,hd(o),t),x=Lc(v,c),w=Lc(v,(e,t)=>{Ec(e);const{duration:n,delay:r,easing:o}=Pc({style:f,timeout:h,easing:i},{mode:"enter"});let a;"auto"===h?(a=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=a):a=n,e.style.transition=[y.transitions.create("opacity",{duration:a,delay:r}),y.transitions.create("transform",{duration:.666*a,delay:r,easing:o})].join(","),l&&l(e,t)}),C=Lc(v,s),E=Lc(v,p),L=Lc(v,e=>{const{duration:t,delay:n,easing:r}=Pc({style:f,timeout:h,easing:i},{mode:"exit"});let o;"auto"===h?(o=y.transitions.getAutoHeightDuration(e.clientHeight),b.current=o):o=t,e.style.transition=[y.transitions.create("opacity",{duration:o,delay:n}),y.transitions.create("transform",{duration:.666*o,delay:n||.333*o,easing:r})].join(","),e.style.opacity=0,e.style.transform=Xp(.75),u&&u(e)}),R=Lc(v,e=>{e.style.transition="",d&&d(e)});return fr.jsx(Ss,{appear:r,in:a,nodeRef:v,onEnter:w,onEntered:C,onEntering:x,onExit:L,onExited:R,onExiting:E,addEndListener:e=>{"auto"===h&&g.start(b.current||0,e),n&&n(v.current,e)},timeout:"auto"===h?null:h,...m,children:(e,{ownerState:t,...n})=>{const r=Rc(e,a,Jp,Zp,f,o.props.style);return k.cloneElement(o,{style:r,ref:S,...n})}})});function Yp(e){return Bo("MuiIcon",e)}Qp&&(Qp.muiSupportAuto=!0),Wo("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ef=Dl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${Nr(n.color)}`],t[`fontSize${Nr(n.fontSize)}`]]}})(Hl(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,variants:[{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography.pxToRem(20)}},{props:{fontSize:"medium"},style:{fontSize:e.typography.pxToRem(24)}},{props:{fontSize:"large"},style:{fontSize:e.typography.pxToRem(36)}},{props:{color:"action"},style:{color:(e.vars||e).palette.action.active}},{props:{color:"disabled"},style:{color:(e.vars||e).palette.action.disabled}},{props:{color:"inherit"},style:{color:void 0}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),tf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiIcon"}),{baseClassName:r="material-icons",className:o,color:i="inherit",component:a="span",fontSize:l="medium",...s}=n,c={...n,baseClassName:r,color:i,component:a,fontSize:l},u=(e=>{const{color:t,fontSize:n,classes:r}=e;return Vi({root:["root","inherit"!==t&&`color${Nr(t)}`,`fontSize${Nr(n)}`]},Yp,r)})(c);return fr.jsx(ef,{as:a,className:$o(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...s})});function nf(e){return Bo("MuiInputAdornment",e)}tf.muiName="Icon";const rf=Wo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var of;const af=Dl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Nr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Hl(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${rf.positionStart}&:not(.${rf.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),lf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c,...u}=n,d=Td()||{};let p=c;c&&d.variant,d&&!p&&(p=d.variant);const f={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:a,position:s,variant:p},h=(e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:o,size:i,variant:a}=e;return Vi({root:["root",n&&"disablePointerEvents",o&&`position${Nr(o)}`,a,r&&"hiddenLabel",i&&`size${Nr(i)}`]},nf,t)})(f);return fr.jsx(Pd.Provider,{value:null,children:fr.jsx(af,{as:i,ownerState:f,className:$o(h.root,o),ref:t,...u,children:"string"!=typeof r||l?fr.jsxs(k.Fragment,{children:["start"===s?of||(of=fr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):fr.jsx(Xc,{color:"textSecondary",children:r})})})}),sf=k.createContext({});function cf(e){return Bo("MuiList",e)}Wo("MuiList",["root","padding","dense","subheader"]);const uf=Dl("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),df=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:l=!1,subheader:s,...c}=n,u=k.useMemo(()=>({dense:a}),[a]),d={...n,component:i,dense:a,disablePadding:l},p=(e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return Vi({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},cf,t)})(d);return fr.jsx(sf.Provider,{value:u,children:fr.jsxs(uf,{as:i,className:$o(p.root,o),ref:t,ownerState:d,...c,children:[s,r]})})});function pf(e){return Bo("MuiListItem",e)}Wo("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const ff=Wo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function hf(e){return Bo("MuiListItemSecondaryAction",e)}Wo("MuiListItemSecondaryAction",["root","disableGutters"]);const mf=Dl("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),gf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=k.useContext(sf),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Vi({root:["root",t&&"disableGutters"]},hf,n)})(a);return fr.jsx(mf,{className:$o(l.root,r),ownerState:a,ref:t,...o})});gf.muiName="ListItemSecondaryAction";const bf=Dl("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})(Hl(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${ff.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),yf=Dl("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),vf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:a,components:l={},componentsProps:s={},ContainerComponent:c="li",ContainerProps:{className:u,...d}={},dense:p=!1,disableGutters:f=!1,disablePadding:h=!1,divider:m=!1,secondaryAction:g,slotProps:b={},slots:y={},...v}=n,S=k.useContext(sf),x=k.useMemo(()=>({dense:p||S.dense||!1,alignItems:r,disableGutters:f}),[r,S.dense,p,f]),w=k.useRef(null),C=k.Children.toArray(o),E=C.length&&Gi(C[C.length-1],["ListItemSecondaryAction"]),L={...n,alignItems:r,dense:x.dense,disableGutters:f,disablePadding:h,divider:m,hasSecondaryAction:E},R=(e=>{const{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:l}=e;return Vi({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},pf,n)})(L),P=ns(w,t),T={slots:y,slotProps:b},[O,I]=Nc("secondaryAction",{elementType:gf,externalForwardedProps:T,ownerState:L,className:R.secondaryAction}),M=y.root||l.Root||bf,D=b.root||s.root||{},_={className:$o(R.root,D.className,i),...v};let N=a||"li";return E?(N=_.component||a?N:"div","li"===c&&("li"===N?N="div":"li"===_.component&&(_.component="div")),fr.jsx(sf.Provider,{value:x,children:fr.jsxs(yf,{as:c,className:$o(R.container,u),ref:P,ownerState:L,...d,children:[fr.jsx(M,{...D,...!Tc(M)&&{as:N,ownerState:{...L,...D.ownerState}},..._,children:C}),C.pop()]})})):fr.jsx(sf.Provider,{value:x,children:fr.jsxs(M,{...D,as:N,ref:P,...!Tc(M)&&{ownerState:{...L,...D.ownerState}},..._,children:[C,g&&fr.jsx(O,{...I,children:g})]})})});function Sf(e){return Bo("MuiListItemIcon",e)}const xf=Wo("MuiListItemIcon",["root","alignItemsFlexStart"]),wf=Dl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Hl(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),kf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=k.useContext(sf),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Vi({root:["root","flex-start"===t&&"alignItemsFlexStart"]},Sf,n)})(a);return fr.jsx(wf,{className:$o(l.root,r),ownerState:a,ref:t,...o})}),Cf=Wo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Ef(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Lf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Rf(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]:n.startsWith(t.keys.join("")))}function Pf(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")&&Rf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const Tf=k.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:l=!1,disableListWrap:s=!1,onKeyDown:c,variant:u="selectedMenu",...d}=e,p=k.useRef(null),f=k.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});ri(()=>{r&&p.current.focus()},[r]),k.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{const n=!p.current.style.width;if(e.clientHeight<p.current.clientHeight&&n){const n=`${Sp(Ql(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=ns(p,t);let m=-1;k.Children.forEach(i,(e,t)=>{k.isValidElement(e)?(e.props.disabled||("selectedMenu"===u&&e.props.selected||-1===m)&&(m=t),m===t&&(e.props.disabled||e.props.muiSkipListHighlight||e.type.muiSkipListHighlight)&&(m+=1,m>=i.length&&(m=-1))):m===t&&(m+=1,m>=i.length&&(m=-1))});const g=k.Children.map(i,(e,t)=>{if(t===m){const t={};return o&&(t.autoFocus=!0),void 0===e.props.tabIndex&&"selectedMenu"===u&&(t.tabIndex=0),k.cloneElement(e,t)}return e});return fr.jsx(df,{role:"menu",ref:h,className:a,onKeyDown:e=>{const t=p.current,n=e.key;if(e.ctrlKey||e.metaKey||e.altKey)return void(c&&c(e));const r=Od(Zl(t));if("ArrowDown"===n)e.preventDefault(),Pf(t,r,s,l,Ef);else if("ArrowUp"===n)e.preventDefault(),Pf(t,r,s,l,Lf);else if("Home"===n)e.preventDefault(),Pf(t,null,s,l,Ef);else if("End"===n)e.preventDefault(),Pf(t,null,s,l,Lf);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&&Rf(r,o);o.previousKeyMatched&&(s||Pf(t,r,!1,l,Ef,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})});function Of(e){return Bo("MuiPopover",e)}function If(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Mf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Df(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function _f(e){return"function"==typeof e?e():e}Wo("MuiPopover",["root","paper"]);const Nf=Dl(jp,{name:"MuiPopover",slot:"Root"})({}),qf=Dl(Ac,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),jf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiPopover"}),{action:r,anchorEl:o,anchorOrigin:i={vertical:"top",horizontal:"left"},anchorPosition:a,anchorReference:l="anchorEl",children:s,className:c,container:u,elevation:d=8,marginThreshold:p=16,open:f,PaperProps:h={},slots:m={},slotProps:g={},transformOrigin:b={vertical:"top",horizontal:"left"},TransitionComponent:y,transitionDuration:v="auto",TransitionProps:S={},disableScrollLock:x=!1,...w}=n,C=k.useRef(),E={...n,anchorOrigin:i,anchorReference:l,elevation:d,marginThreshold:p,transformOrigin:b,TransitionComponent:y,transitionDuration:v,TransitionProps:S},L=(e=>{const{classes:t}=e;return Vi({root:["root"],paper:["paper"]},Of,t)})(E),R=k.useCallback(()=>{if("anchorPosition"===l)return a;const e=_f(o),t=(e&&1===e.nodeType?e:Zl(C.current).body).getBoundingClientRect();return{top:t.top+If(t,i.vertical),left:t.left+Mf(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),P=k.useCallback(e=>({vertical:If(e,b.vertical),horizontal:Mf(e,b.horizontal)}),[b.horizontal,b.vertical]),T=k.useCallback(e=>{const t={width:e.offsetWidth,height:e.offsetHeight},n=P(t);if("none"===l)return{top:null,left:null,transformOrigin:Df(n)};const r=R();let i=r.top-n.vertical,a=r.left-n.horizontal;const s=i+t.height,c=a+t.width,u=Ql(_f(o)),d=u.innerHeight-p,f=u.innerWidth-p;if(null!==p&&i<p){const e=i-p;i-=e,n.vertical+=e}else if(null!==p&&s>d){const e=s-d;i-=e,n.vertical+=e}if(null!==p&&a<p){const e=a-p;a-=e,n.horizontal+=e}else if(c>f){const e=c-f;a-=e,n.horizontal+=e}return{top:`${Math.round(i)}px`,left:`${Math.round(a)}px`,transformOrigin:Df(n)}},[o,l,R,P,p]),[O,I]=k.useState(f),M=k.useCallback(()=>{const e=C.current;if(!e)return;const t=T(e);null!==t.top&&e.style.setProperty("top",t.top),null!==t.left&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,I(!0)},[T]);k.useEffect(()=>(x&&window.addEventListener("scroll",M),()=>window.removeEventListener("scroll",M)),[o,x,M]);k.useEffect(()=>{f&&M()}),k.useImperativeHandle(r,()=>f?{updatePosition:()=>{M()}}:null,[f,M]),k.useEffect(()=>{if(!f)return;const e=Jl(()=>{M()}),t=Ql(_f(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,f,M]);let D=v;const _={slots:{transition:y,...m},slotProps:{transition:S,paper:h,...g}},[N,q]=Nc("transition",{elementType:Qp,externalForwardedProps:_,ownerState:E,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),M()},onExited:t=>{e.onExited?.(t),I(!1)}}),additionalProps:{appear:!0,in:f}});"auto"!==v||N.muiSupportAuto||(D=void 0);const j=u||(o?Zl(_f(o)).body:void 0),[A,{slots:z,slotProps:$,...F}]=Nc("root",{ref:t,elementType:Nf,externalForwardedProps:{..._,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:rs("function"==typeof g.backdrop?g.backdrop(E):g.backdrop,{invisible:!0})},container:j,open:f},ownerState:E,className:$o(L.root,c)}),[B,W]=Nc("paper",{ref:C,className:L.paper,elementType:qf,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:E});return fr.jsx(A,{...F,...!Tc(A)&&{slots:z,slotProps:$,disableScrollLock:x},children:fr.jsx(N,{...q,timeout:D,children:fr.jsx(B,{...W,children:s})})})});function Af(e){return Bo("MuiMenuItem",e)}const zf=Wo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),$f=k.createContext(null);var Ff;$f.Provider;const Bf=Dl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Ml})({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%"}),Wf=Dl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Ml})(Hl(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));const Hf=Dl(zd,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:jd})(Hl(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Hd.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Hd.focused} .${Hd.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t},style:{[`&.${Hd.focused} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Hd.error} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Hd.disabled} .${Hd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:14}},{props:({ownerState:e})=>e.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:e,size:t})=>e.multiline&&"small"===t,style:{padding:"8.5px 14px"}}]}})),Uf=Dl(function(e){const{children:t,classes:n,className:r,label:o,notched:i,...a}=e,l=null!=o&&""!==o,s={...e,notched:i,withLabel:l};return fr.jsx(Bf,{"aria-hidden":!0,className:r,ownerState:s,...a,children:fr.jsx(Wf,{ownerState:s,children:l?fr.jsx("span",{children:o}):Ff||(Ff=fr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Hl(({theme:e})=>{const t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),Vf=Dl($d,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Ad})(Hl(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),Gf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiOutlinedInput"}),{components:r={},fullWidth:o=!1,inputComponent:i="input",label:a,multiline:l=!1,notched:s,slots:c={},slotProps:u={},type:d="text",...p}=n,f=(e=>{const{classes:t}=e,n=Vi({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Wd,t);return{...t,...n}})(n),h=Td(),m=Rd({props:n,muiFormControl:h,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),g={...n,color:m.color||"primary",disabled:m.disabled,error:m.error,focused:m.focused,formControl:h,fullWidth:o,hiddenLabel:m.hiddenLabel,multiline:l,size:m.size,type:d},b=c.root??r.Root??Hf,y=c.input??r.Input??Vf,[v,S]=Nc("notchedOutline",{elementType:Uf,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:null!=a&&""!==a&&m.required?fr.jsxs(k.Fragment,{children:[a," ","*"]}):a}});return fr.jsx(Bd,{slots:{root:b,input:y},slotProps:u,renderSuffix:e=>fr.jsx(v,{...S,notched:void 0!==s?s:Boolean(e.startAdornment||e.filled||e.focused)}),fullWidth:o,inputComponent:i,multiline:l,ref:t,type:d,...p,classes:{...f,notchedOutline:null}})});Gf.muiName="Input";const Kf=Dl(Fs,{shouldForwardProp:e=>Ml(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]}})(Hl(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${zf.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${zf.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${zf.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${zf.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${zf.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${zp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${zp.inset}`]:{marginLeft:52},[`& .${Cf.root}`]:{marginTop:0,marginBottom:0},[`& .${Cf.inset}`]:{paddingLeft:36},[`& .${xf.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${xf.root} svg`]:{fontSize:"1.25rem"}}}]}))),Xf=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:l=!1,focusVisibleClassName:s,role:c="menuitem",tabIndex:u,className:d,...p}=n,f=k.useContext($f),h=k.useContext(sf),m=k.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),g=k.useRef(null);ri(()=>{r&&g.current&&function(e,t){if(null!=t)try{e.focus({focusVisible:"keyboard"===t})}catch(t){e.focus()}else e.focus()}(g.current,f)},[r]);const b={...n,dense:m.dense,divider:a,disableGutters:l},y=(e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,l=Vi({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},Af,a);return{...a,...l}})(n),v=ns(g,t),{root:S,...x}=y;let w;return n.disabled||(w=void 0!==u?u:-1),fr.jsx(sf.Provider,{value:m,children:fr.jsx(Kf,{ref:v,role:c,tabIndex:w,component:o,focusVisibleClassName:$o(y.focusVisible,s),className:$o(y.root,d),...p,ownerState:b,classes:x})})});var Jf=Xl(fr.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"})),Zf=Xl(fr.jsx("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}));const Qf=Dl("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Ml})({position:"relative",display:"flex"}),Yf=Dl(Jf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),eh=Dl(Zf,{name:"MuiRadioButtonIcon"})(Hl(({theme:e})=>({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function th(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return fr.jsxs(Qf,{className:n.root,ownerState:o,children:[fr.jsx(Yf,{fontSize:r,className:n.background,ownerState:o}),fr.jsx(eh,{fontSize:r,className:n.dot,ownerState:o})]})}const nh=k.createContext(void 0);function rh(e){return Bo("MuiRadio",e)}const oh=Wo("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),ih=Dl(cp,{shouldForwardProp:e=>Ml(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${Nr(n.size)}`],t[`color${Nr(n.color)}`]]}})(Hl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${oh.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:"default",disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(Ws()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${oh.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));const ah=fr.jsx(th,{checked:!0}),lh=fr.jsx(th,{}),sh=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=ah,color:i="primary",icon:a=lh,name:l,onChange:s,size:c="medium",className:u,disabled:d,disableRipple:p=!1,slots:f={},slotProps:h={},inputProps:m,...g}=n,b=Td();let y=d;b&&void 0===y&&(y=b.disabled),y??=!1;const v={...n,disabled:y,disableRipple:p,color:i,size:c},S=(e=>{const{classes:t,color:n,size:r}=e,o={root:["root",`color${Nr(n)}`,"medium"!==r&&`size${Nr(r)}`]};return{...t,...Vi(o,rh,t)}})(v),x=k.useContext(nh);let w=r;const C=Bl(s,x&&x.onChange);let E=l;x&&(void 0===w&&(w=function(e,t){return"object"==typeof t&&null!==t?e===t:String(e)===String(t)}(x.value,n.value)),void 0===E&&(E=x.name));const L=h.input??m,[R,P]=Nc("root",{ref:t,elementType:ih,className:$o(S.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...g},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),C(t,...n)}}),ownerState:v,additionalProps:{type:"radio",icon:k.cloneElement(a,{fontSize:a.props.fontSize??c}),checkedIcon:k.cloneElement(o,{fontSize:o.props.fontSize??c}),disabled:y,name:E,checked:w,slots:f,slotProps:{input:"function"==typeof L?L(v):L}}});return fr.jsx(R,{...P,classes:S})});function ch(e){return Bo("MuiTooltip",e)}const uh=Wo("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const dh=Dl(wd,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(Hl(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${uh.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${uh.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${uh.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${uh.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${uh.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${uh.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${uh.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${uh.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),ph=Dl("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Nr(n.placement.split("-")[0])}`]]}})(Hl(({theme:e})=>{return{backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${uh.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${uh.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${uh.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:(t=16/14,Math.round(1e5*t)/1e5)+"em",fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${uh.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${uh.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${uh.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${uh.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),fh=Dl("span",{name:"MuiTooltip",slot:"Arrow"})(Hl(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let hh=!1;const mh=new Ts;let gh={x:0,y:0};function bh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const yh=k.forwardRef(function(e,t){const n=Ul({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:l={},describeChild:s=!1,disableFocusListener:c=!1,disableHoverListener:u=!1,disableInteractive:d=!1,disableTouchListener:p=!1,enterDelay:f=100,enterNextDelay:h=0,enterTouchDelay:m=700,followCursor:g=!1,id:b,leaveDelay:y=0,leaveTouchDelay:v=1500,onClose:S,onOpen:x,open:w,placement:C="bottom",PopperComponent:E,PopperProps:L={},slotProps:R={},slots:P={},title:T,TransitionComponent:O,TransitionProps:I,...M}=n,D=k.isValidElement(o)?o:fr.jsx("span",{children:o}),_=Il(),N=ki(),[q,j]=k.useState(),[A,z]=k.useState(null),$=k.useRef(!1),F=d||g,B=Os(),W=Os(),H=Os(),U=Os(),[V,G]=es({controlled:w,default:!1,name:"Tooltip",state:"open"});let K=V;const X=Ti(b),J=k.useRef(),Z=ts(()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),U.clear()});k.useEffect(()=>Z,[Z]);const Q=e=>{mh.clear(),hh=!0,G(!0),x&&!K&&x(e)},Y=ts(e=>{mh.start(800+y,()=>{hh=!1}),G(!1),S&&K&&S(e),B.start(_.transitions.duration.shortest,()=>{$.current=!1})}),ee=e=>{$.current&&"touchstart"!==e.type||(q&&q.removeAttribute("title"),W.clear(),H.clear(),f||hh&&h?W.start(hh?h:f,()=>{Q(e)}):Q(e))},te=e=>{W.clear(),H.start(y,()=>{Y(e)})},[,ne]=k.useState(!1),re=e=>{const t=e?.target??q;if(!t||!os(t)){ne(!1);const n=e??new Event("blur");!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),te(n)}},oe=e=>{q||j(e.currentTarget),os(e.target)&&(ne(!0),ee(e))},ie=e=>{$.current=!0;const t=D.props;t.onTouchStart&&t.onTouchStart(e)},ae=e=>{ie(e),H.clear(),B.clear(),Z(),J.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",U.start(m,()=>{document.body.style.WebkitUserSelect=J.current,ee(e)})},le=e=>{D.props.onTouchEnd&&D.props.onTouchEnd(e),Z(),H.start(v,()=>{Y(e)})};k.useEffect(()=>{if(K)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&Y(e)}},[Y,K]);const se=ns(hd(D),j,t);T||0===T||(K=!1);const ce=k.useRef(),ue={},de="string"==typeof T;s?(ue.title=K||!de||u?null:T,ue["aria-describedby"]=K?X:null):(ue["aria-label"]=de?T:null,ue["aria-labelledby"]=K&&!de?X:null);const pe={...ue,...M,...D.props,className:$o(M.className,D.props.className),onTouchStart:ie,ref:se,...g?{onMouseMove:e=>{const t=D.props;t.onMouseMove&&t.onMouseMove(e),gh={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};p||(pe.onTouchStart=ae,pe.onTouchEnd=le),u||(pe.onMouseOver=bh(ee,pe.onMouseOver),pe.onMouseLeave=bh(te,pe.onMouseLeave),F||(fe.onMouseOver=ee,fe.onMouseLeave=te)),c||(pe.onFocus=bh(oe,pe.onFocus),pe.onBlur=bh(re,pe.onBlur),F||(fe.onFocus=oe,fe.onBlur=re));const he={...n,isRtl:N,arrow:r,disableInteractive:F,placement:C,PopperComponentProp:E,touch:$.current},me="function"==typeof R.popper?R.popper(he):R.popper,ge=k.useMemo(()=>{let e=[{name:"arrow",enabled:Boolean(A),options:{element:A,padding:4}}];return L.popperOptions?.modifiers&&(e=e.concat(L.popperOptions.modifiers)),me?.popperOptions?.modifiers&&(e=e.concat(me.popperOptions.modifiers)),{...L.popperOptions,...me?.popperOptions,modifiers:e}},[A,L.popperOptions,me?.popperOptions]),be=(e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e;return Vi({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Nr(i.split("-")[0])}`],arrow:["arrow"]},ch,t)})(he),ye="function"==typeof R.transition?R.transition(he):R.transition,ve={slots:{popper:a.Popper,transition:a.Transition??O,tooltip:a.Tooltip,arrow:a.Arrow,...P},slotProps:{arrow:R.arrow??l.arrow,popper:{...L,...me??l.popper},tooltip:R.tooltip??l.tooltip,transition:{...I,...ye??l.transition}}},[Se,xe]=Nc("popper",{elementType:dh,externalForwardedProps:ve,ownerState:he,className:$o(be.popper,L?.className)}),[we,ke]=Nc("transition",{elementType:Qp,externalForwardedProps:ve,ownerState:he}),[Ce,Ee]=Nc("tooltip",{elementType:ph,className:be.tooltip,externalForwardedProps:ve,ownerState:he}),[Le,Re]=Nc("arrow",{elementType:fh,className:be.arrow,externalForwardedProps:ve,ownerState:he,ref:z});return fr.jsxs(k.Fragment,{children:[k.cloneElement(D,pe),fr.jsx(Se,{as:E??wd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:gh.y,left:gh.x,right:gh.x,bottom:gh.y,width:0,height:0})}:q,popperRef:ce,open:!!q&&K,id:X,transition:!0,...fe,...xe,popperOptions:ge,children:({TransitionProps:e})=>fr.jsx(we,{timeout:_.transitions.duration.shorter,...e,...ke,children:fr.jsxs(Ce,{...Ee,children:[T,r?fr.jsx(Le,{...Re}):null]})})})]})});function vh(){const{useModelStore:e}=k.useContext(vc).modelStore;return e()}function Sh(e,t,...n){const r=t?`${t.id}/${JSON.stringify(e)}`:null,[o]=vh(),[i]=function(){const{useRpcRequestSessionModelStore:e}=k.useContext(vc).modelStore;return e()}(),[a,l]=k.useState();return k.useEffect(()=>{if(!t)return;(async()=>{let n=i.get(r);n||(n=t.createSessionObject(e),i.set(r,n));const a=await n;o.set(r,a),l(a)})()},[t,...n]),[a]}const xh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function wh(e){return Sh(xh,e)}const kh=(e,t)=>{const{rpcResultStore:n,key:r,method:o}=t;let i;switch(t.type){case"INVALID":i=u(u({},e),{},{valid:!1,invalid:!0,validating:!0,canCancel:!0,canRetry:!1,rpcRetry:!1});break;case"VALID":i={result:u({},t.result),invalid:!1,valid:!0,validating:!1,canCancel:!1,canRetry:!1,rpcRetry:!1};break;case"CANCELLED":i=u(u({},e),{},{invalid:!0,valid:!1,validating:!1,canCancel:!1,canRetry:!0,rpcRetry:!1});break;default:throw new Error("Undefined action")}let a=n.get(r);return a||(a={}),a[o]=i,n.set(r,a),i};function Ch(e,t){const n=e?`${e.id}`:null,[r]=function(){const{useRpcResultStore:e}=k.useContext(vc).modelStore;return e()}(),[o,i]=k.useReducer(kh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=k.useContext(vc).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=k.useContext(vc).modelStore;return e()}();let s;n&&(s=l.get(n),s||(s={},l.set(n,s)));const c=async o=>{let a=s[t];if(!a||a&&a.rpcRetry){a={rpc:e[t](),rpcRetry:!1},s[t]=a,i({type:"INVALID",method:t,key:n,model:e,rpcResultStore:r,canCancel:!0})}try{await(l=0,new Promise(e=>{setTimeout(e,l)}));const o=await a.rpc;i({type:"VALID",result:o,key:n,method:t,model:e,rpcResultStore:r})}catch(e){15!==e.code||o||(a.rpcRetry||(a.rpcRetry=!0),c(!0))}var l},u={cancel:async()=>{const o=e.session.getObjectApi({handle:-1});await o.cancelRequest(s[t].rpc.requestId),i({type:"CANCELLED",key:n,method:t,model:e,rpcResultStore:r})},retry:()=>{s[t].rpcRetry=!0,c()}};return k.useEffect(()=>{e&&c()},[e,a.get(e&&e.id),n,t]),[o&&o.result,{validating:o&&o.validating,canCancel:o&&o.canCancel,canRetry:o&&o.canRetry},u]}function Eh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Ch(e,"getLayout");return null!=e&&e.pureLayout&&t?[e.pureLayout,{validating:n,canCancel:r,canRetry:o},i]:[t,{validating:n,canCancel:r,canRetry:o},i]}function Lh(e){return Ch(e,"getAppLayout")}function Rh(){const[e,t]=k.useState(),[n,r]=k.useState(),o=k.useCallback(e=>{e&&t(e)},[]),i=()=>{const{left:t,top:n,width:o,height:i}=e.getBoundingClientRect();r({left:t,top:n,width:o,height:i})};return k.useLayoutEffect(()=>{if(e){if("function"==typeof ResizeObserver){let t=new ResizeObserver(i);return t.observe(e),()=>{t.unobserve(e),t.disconnect(e),t=null}}return i(),window.addEventListener("resize",i),()=>{window.removeEventListener("resize",i)}}},[e]),[o,n,e]}const Ph="singlepublic-pinnedItems",Th=e=>{var t;const[n]=(e=>{const[t,n]=k.useState(null),[r,o]=k.useState(null),[i]=vh();return k.useEffect(()=>{let t=!0,r=()=>{};if(e)return async function(){try{const a=`${e.id}-${Ph}`;let l=i.get(a);if(!l){if(l=await(async(e,t)=>{var n;const r=!(null===(n=(await e.getLayout()).permissions)||void 0===n||!n.createMasterobject);let o=null;try{o=r?await e.getOrCreateObject({qInfo:{qType:"singlepublic",qId:t}}):await e.getObject(t)}catch(e){}return o})(e,Ph),!t)return;if(l){i.set(a,l);const e=()=>{i.clear(a)};l.once("closed",e),r=()=>{l.removeListener("closed",e)}}}t&&(o(null),n(l))}catch(e){t&&(o(e instanceof Error?e:new Error(String(e))),n(null))}}(),()=>{t=!1,r()}},[e,i]),[t,r]})(e),[r]=Ch(n,"getLayout");return[null!==(t=null==r?void 0:r.pinnedItems)&&void 0!==t?t:[]]},Oh=(e,t,n)=>{const[r,o]=k.useState(void 0),[i,a]=k.useState(void 0),[l]=vh();return k.useEffect(()=>{let r=!0,i=()=>{};if("function"==typeof(null==e?void 0:e.getObject))return async function(){try{const s=`${e.id}-${t}`;let c=l.get(s);if(!c){try{c=await e.getObject(t)}catch(t){if(2!==t.code||"Object not found"!==t.message||!n)throw t;c=await e.createSessionObject(n)}if(!r)return;l.set(s,c);const o=()=>{l.clear(s)};c.once("closed",o),i=()=>{c.removeListener("closed",o)}}r&&(a(void 0),o(c))}catch(e){r&&(a(e instanceof Error?e:new Error(String(e))),o(void 0))}}(),()=>{r=!1,i()}},[e,t,l]),[r,i]},Ih={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},Mh={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Dh="qField",_h="id",Nh=(e,t)=>{const n=e.selections[0],r=t.selections[0],o=!!n.qOneAndOnlyOne;return o===!!r.qOneAndOnlyOne?n.qSortIndex-r.qSortIndex:o?-1:1},qh=(e,t,n,r)=>{if(!e||!r)return n;if(0===e.length||0===t.length&&0===n.length)return[];const o=((e,t,n)=>n.filter(n=>Dh in n&&n[Dh]?e.some(e=>e.qName===n[Dh]):!(!(_h in n)||!n[_h])&&t.some(e=>{var t,r;return(null===(t=e.qInfo)||void 0===t?void 0:t.qId)===n[_h]&&"N"===(null===(r=e.qData)||void 0===r?void 0:r.grouping)})))(e,r,t),i=[],a=[...n];for(let e=0;e<o.length;e++){var l;const t=o[e],n=!(!(_h in t)||!t[_h]),s=n?r.find(e=>{var n;return(null===(n=e.qInfo)||void 0===n?void 0:n.qId)===t[_h]}):null,c=n?null==s||null===(l=s.qData)||void 0===l||null===(l=l.info[0])||void 0===l?void 0:l.qName:t[Dh],d=a.findIndex(e=>{var r;return n&&(null===(r=e.selections[0].qDimensionReferences)||void 0===r||null===(r=r[0])||void 0===r?void 0:r.qId)===t[_h]||!n&&(e.selections[0].qField===c||e.selections[0].qReadableName===c)});if(!(-1!==i.findIndex(e=>{var t;return(null===(t=e.selections)||void 0===t||null===(t=t[0])||void 0===t?void 0:t.qField)===c&&!e.isPinned})))if(-1===d){const t=u(u({},o[e]),{},{isPinned:!0,states:["$"]});n&&s&&(t.qField=c,t.qName=s.qData.labelExpression||s.qData.title||c),i.push(t)}else i.push(a[d]),a.splice(d,1)}return[...i,...a]};function jh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function Ah({size:e,style:t={},viewBox:n="0 0 16 16",shapes:r=[]}){const o=u({fontSize:jh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},t);return fr.jsx("i",{style:o,children:fr.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:n,fill:"currentColor",children:r.map(({type:e,attrs:t},n)=>fr.jsx(e,u({},t),n))})})}var zh=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.41421356,8 L11.8890873,5.52512627 C12.065864,5.34834957 12.0305087,4.95944084 11.8183766,4.74730881 L11.2526912,4.18162338 C11.0405592,3.96949135 10.6516504,3.93413601 10.4748737,4.1109127 L8,6.58578644 L5.52512627,4.1109127 C5.34834957,3.93413601 4.95944084,3.96949135 4.74730881,4.18162338 L4.25233406,4.67659813 C3.96949135,4.95944084 3.93413601,5.34834957 4.1109127,5.52512627 L6.58578644,8 L4.1109127,10.4748737 C3.93413601,10.6516504 3.96949135,11.0405592 4.18162338,11.2526912 L4.67659813,11.7476659 C4.95944084,12.0305087 5.34834957,12.065864 5.52512627,11.8890873 L8,9.41421356 L10.4748737,11.8890873 C10.6516504,12.065864 11.0405592,12.0305087 11.2526912,11.8183766 L11.8183766,11.2526912 C12.0305087,11.0405592 12.065864,10.6516504 11.8890873,10.4748737 L9.41421356,8 Z M8,0 C12.4,0 16,3.6 16,8 C16,12.4 12.4,16 8,16 C3.6,16 0,12.4 0,8 C0,3.6 3.6,0 8,0 Z"}}]}))(e));var $h=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8 10a1 1 0 0 1 .5 1.866v.634a.5.5 0 0 1-1 0v-.634A1 1 0 0 1 8 10ZM3.625 7.035A2 2 0 0 0 2 9v5a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9a2 2 0 0 0-1.625-1.965V5.383a4.375 4.375 0 0 0-8.75 0v1.652ZM3 9a1 1 0 0 1 .931-.998h8.138A1 1 0 0 1 13 9v5a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9Zm8.375-3.617V7h-6.75V5.383a3.375 3.375 0 0 1 6.75 0Z"}}]}))(e));const Fh=e=>u(u({},e),{},{viewBox:"0 0 12 16",shapes:[{type:"path",attrs:{d:"M2.5,7 L11,7 C11.5522847,7 12,7.44771525 12,8 L12,15 C12,15.5522847 11.5522847,16 11,16 L1,16 C0.44771525,16 0,15.5522847 0,15 L0,8 C0,7.44771525 0.44771525,7 1,7 L1,4.98151367 C1,2.23029964 3.23857625,0 6,0 C8.4241995,0 10.4454541,1.71883353 10.9029715,4 L9.34209114,4 C8.9671727,2.54028848 7.9088888,1.5 6,1.5 C3.54860291,1.5 2.5,3.21561511 2.5,5.33193359 L2.5,7 Z"}}]});var Bh=e=>Ah(Fh(e));var Wh=function(){function e(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,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),Hh=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},Uh=function(e){function t(){var e,n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];return n=r=Hh(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(i))),r._lastRenderedStartIndex=-1,r._lastRenderedStopIndex=-1,r._memoizedUnloadedRanges=[],r._onItemsRendered=function(e){var t=e.visibleStartIndex,n=e.visibleStopIndex;r._lastRenderedStartIndex=t,r._lastRenderedStopIndex=n,r._ensureRowsLoaded(t,n)},r._setRef=function(e){r._listRef=e},Hh(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),Wh(t,[{key:"resetloadMoreItemsCache",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._memoizedUnloadedRanges=[],e&&this._ensureRowsLoaded(this._lastRenderedStartIndex,this._lastRenderedStopIndex)}},{key:"componentDidMount",value:function(){}},{key:"render",value:function(){return(0,this.props.children)({onItemsRendered:this._onItemsRendered,ref:this._setRef})}},{key:"_ensureRowsLoaded",value:function(e,t){var n=this.props,r=n.isItemLoaded,o=n.itemCount,i=n.minimumBatchSize,a=void 0===i?10:i,l=n.threshold,s=void 0===l?15:l,c=function(e){for(var t=e.isItemLoaded,n=e.itemCount,r=e.minimumBatchSize,o=e.startIndex,i=e.stopIndex,a=[],l=null,s=null,c=o;c<=i;c++)t(c)?null!==s&&(a.push(l,s),l=s=null):(s=c,null===l&&(l=c));if(null!==s){for(var u=Math.min(Math.max(s,l+r-1),n-1),d=s+1;d<=u&&!t(d);d++)s=d;a.push(l,s)}if(a.length)for(;a[1]-a[0]+1<r&&a[0]>0;){var p=a[0]-1;if(t(p))break;a[0]=p}return a}({isItemLoaded:r,itemCount:o,minimumBatchSize:a,startIndex:Math.max(0,e-s),stopIndex:Math.min(o-1,t+s)});(this._memoizedUnloadedRanges.length!==c.length||this._memoizedUnloadedRanges.some(function(e,t){return c[t]!==e}))&&(this._memoizedUnloadedRanges=c,this._loadUnloadedRanges(c))}},{key:"_loadUnloadedRanges",value:function(e){for(var t=this,n=this.props.loadMoreItems||this.props.loadMoreRows,r=function(r){var o=e[r],i=e[r+1],a=n(o,i);null!=a&&a.then(function(){if(function(e){var t=e.lastRenderedStartIndex,n=e.lastRenderedStopIndex,r=e.startIndex,o=e.stopIndex;return!(r>n||o<t)}({lastRenderedStartIndex:t._lastRenderedStartIndex,lastRenderedStopIndex:t._lastRenderedStopIndex,startIndex:o,stopIndex:i})){if(null==t._listRef)return;"function"==typeof t._listRef.resetAfterIndex?t._listRef.resetAfterIndex(o,!0):("function"==typeof t._listRef._getItemStyleCache&&t._listRef._getItemStyleCache(-1),t._listRef.forceUpdate())}})},o=0;o<e.length;o+=2)r(o)}}]),t}(k.PureComponent);const Vh=["S","XS"],Gh=e=>e.reduce((e,t)=>e.concat(t));function Kh(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Vh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Gh(t)}async function Xh({selections:e,elemNumbers:t,toggle:n,isSingleSelect:r}){if(0===t.length)return!1;let o=!1;if(!t.some(e=>Number.isNaN(e))){const i=t;try{o=!1!==await e.select({method:"selectListObjectValues",params:["/qListObjectDef",i,n]})}catch(e){o=!1}o||(r?e.cancel():e.clear())}return o}const Jh="RowColumn",Zh={row:`${Jh}-row`,rowBorderBottom:`${Jh}-rowBorderBottom`,column:`${Jh}-column`,fieldRoot:`${Jh}-fieldRoot`,cell:`${Jh}-cell`,labelText:`${Jh}-labelText`,labelDense:`${Jh}-labelDense`,highlighted:`${Jh}-highlighted`,checkboxLabel:`${Jh}-checkboxLabel`,icon:`${Jh}-icon`,S:`${Jh}-S`,XS:`${Jh}-XS`,A:`${Jh}-A`,X:`${Jh}-X`,frequencyCount:`${Jh}-frequencyCount`,barContainer:`${Jh}-barContainer`,bar:`${Jh}-bar`,barSelected:`${Jh}-barSelected`,barWithCheckbox:`${Jh}-barWithCheckbox`,barSelectedWithCheckbox:`${Jh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Jh}-excludedTextWithCheckbox`},Qh=`.${Zh.fieldRoot}`,Yh=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function em({selectionState:e,selections:t,checkboxes:n=!1,doc:r=document,loaderRef:o}){var i;const a=k.useRef({startElemNumber:void 0,elemNumbers:[],isRange:!1,toggle:!1,active:!1,touchElemNumbers:[],touchRangeSmall:!1});k.useEffect(()=>{var e;if(null===(e=o.current)||void 0===e||null===(e=e._listRef)||void 0===e||!e._outerRef)return;const t=e=>e.preventDefault(),n=e=>e.preventDefault(),r=e=>e.preventDefault(),i=o.current._listRef._outerRef;return i.addEventListener("gesturestart",t),i.addEventListener("gesturechange",n),i.addEventListener("gestureend",r),()=>{i.removeEventListener("gesturestart",t),i.removeEventListener("gesturechange",n),i.removeEventListener("gestureend",r)}},[null===(i=o.current)||void 0===i||null===(i=i._listRef)||void 0===i?void 0:i._outerRef]);const l=async()=>{var n;return(null===(n=e.selectDisabled)||void 0===n||!n.call(e))&&(e.setSelectableValuesUpdating(),Xh({selections:t,elemNumbers:a.current.elemNumbers,isSingleSelect:e.isSingleSelect,toggle:a.current.toggle}))},s=(t,n)=>{const r=function(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[{qElemNumber:t}]=e;return t});return t});return Gh(t)}(e.enginePages);return function(e,t){if(!e)return[];if(e.length<=1)return e;const{min:n,max:r}=function(e,t){let n=1/0,r=-1/0;return e.forEach(e=>{const o=t.indexOf(e);n=o<n?o:n,r=o>r?o:r}),{min:n,max:r}}(e,t);return t.slice(n,r+1)}([t,n],r)},c=t=>{const{startElemNumber:n}=a.current;if(n===t)return;const r=s(a.current.startElemNumber,t);e.updateItems(r,!0,a.current.elemNumbers)},u=k.useCallback(t=>{if(e.selectDisabled())return;const n=+t.target.getAttribute("data-n"),r=!e.isSingleSelect&&Yh(t.nativeEvent);a.current.elemNumbers=[n],a.current.toggle=r,r||e.clearItemStates(!0),e.updateItem(n),a.current.active=!1,l()},[]),d=k.useCallback(t=>{if(0!==t.button||e.selectDisabled())return;const n=+t.currentTarget.getAttribute("data-n"),r=!e.isSingleSelect&&Yh(t);a.current.isRange=!1,a.current.startElemNumber=n,a.current.elemNumbers=[n],a.current.toggle=r,a.current.active=!0,r||e.clearItemStates(!0),e.updateItem(n),e.isSingleSelect&&(a.current.active=!1,l()),((e,t)=>{(e.ctrlKey||e.metaKey)&&(t.focus(),e.preventDefault())})(t,t.currentTarget)},[]),p=k.useCallback(e=>{if(0===e.button&&a.current.active){if(a.current.active=!1,a.current.isRange){const t=+e.currentTarget.getAttribute("data-n");c(t)}l()}},[]),f=k.useCallback(e=>{0===e.button&&a.current.active&&(a.current.active=!1,l())},[]),h=k.useCallback(t=>{if(!a.current.active)return;a.current.isRange||(a.current.isRange=!0,e.isSelected(a.current.startElemNumber)||(e.updateItem(a.current.startElemNumber,!0),a.current.elemNumbers=[]));const n=+t.currentTarget.getAttribute("data-n");c(n)},[]),m=k.useCallback(t=>{var n,r;if(a.current.active||a.current.isRange||e.isSingleSelect||t.touches.length<=1)return;if(t.touches.length>2)return void l();const o=Number(null===(n=t.touches[0].target)||void 0===n||null===(n=n.closest(Qh))||void 0===n?void 0:n.getAttribute("data-n")),i=Number(null===(r=t.touches[1].target)||void 0===r||null===(r=r.closest(Qh))||void 0===r?void 0:r.getAttribute("data-n"));if(Number.isNaN(o)||Number.isNaN(o))return void l();a.current.active=!0;s(o,i).length<7&&(a.current.touchRangeSmall=!0),a.current.elemNumbers=[],a.current.touchElemNumbers=[o,i]},[]),g=k.useCallback(()=>{if(2!==a.current.touchElemNumbers.length)return;if(a.current.touchRangeSmall)return a.current.touchRangeSmall=!1,a.current.touchElemNumbers=[],void(a.current.active=!1);const[e,t]=a.current.touchElemNumbers;a.current.startElemNumber=e,c(t),a.current.touchElemNumbers=[],a.current.active=!1,a.current.toggle=!0,l()},[]);k.useEffect(()=>(r.addEventListener("mouseup",f),()=>{r.removeEventListener("mouseup",f)}),[f]),k.useEffect(()=>{const n=()=>{e.clearItemStates(!1)},r=()=>{e.clearItemStates(!0),e.triggerStateChanged()};return t.on("clearItemStates",n),t.on("deactivated",n),t.on("cleared",r),()=>{t.removeListener("clearItemStates",n),t.removeListener("deactivated",n),t.removeListener("cleared",r)}},[t]);const b={};return n?Object.assign(b,{onChange:u}):Object.assign(b,{onMouseUp:p,onMouseDown:d,onMouseEnter:h,onTouchStart:m,onTouchEnd:g}),{interactionEvents:b,select:async(n=[],r=!1,o=void 0)=>{var i;if(null!==(i=e.selectDisabled)&&void 0!==i&&i.call(e))return!1;const a=!e.isSingleSelect&&Yh(null==o?void 0:o.nativeEvent);a||e.clearItemStates(!0);const l=[];return e.updateItems(n,r,l),e.setSelectableValuesUpdating(),Xh({selections:t,elemNumbers:r?l:n,isSingleSelect:e.isSingleSelect,toggle:a})}}}const tm=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,10 L13,3 L15,5 L8,12 L6,14 L1,9 L3,7 L6,10 Z"}}]});var nm=e=>Ah(tm(e));const rm=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,om=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||rm(e))&&t;const im=({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?Zh.column:Zh.row];t||o.push(Zh.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Zh.XS:Zh.S;break;case"S":case"L":n=Zh.S;break;case"A":n=!!t&&Zh.A;break;case"X":case"XL":n=!!t&&Zh.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o},am=e=>e.filter(e=>!!e).join(" ").trim(),lm=e=>e||"-",sm=["backgroundColor"],cm=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>{if("P"===t)return`${e.freqMinWidth}px`;return n&&!r?"max-content":"25%"},um=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,dm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${Zh.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${Zh.labelText}`]:{color:i},[`& .${Zh.icon}`]:{color:i}}},pm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},fm=Dl("div",{shouldForwardProp:e=>!["checkboxes","isGridMode","isGridCol","dense","direction","sizes","frequencyMode","freqHitsValue","layout","styles"].includes(e)})(({theme:e,checkboxes:t,isGridMode:n,isGridCol:r,dense:o,direction:i,sizes:a,frequencyMode:l,freqHitsValue:s,styles:c})=>{const p=c.content,{backgroundColor:f}=p,h=d(p,sm),m=dm({styles:c,checkboxes:t,selectionState:"selected"}),g=dm({styles:c,checkboxes:t,selectionState:"excluded"}),b={height:"100%",transition:"width 0.2s",border:"1px solid",borderColor:"#D9D9D9",backgroundColor:"#FAFAFA"},y={opacity:"30%"};return{"& .value":{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder} !important`,borderRadius:"4px",outline:"none"}},[`& .${Zh.row}`]:u({flexWrap:"nowrap"},c.content),[`& .${Zh.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${Zh.column}`]:u({flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`},c.content),[`& .${Zh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Zh.labelText}`]:u(u({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},pm),h),[`& .${Zh.labelDense}`]:{lineHeight:"18px"},[`& .${Zh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Zh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":u(u({},pm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},[`& .${Zh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Zh.S}`]:u(u({},m),{},{"&:focus-visible":{boxShadow:`inset 0 0 0 2px ${e.palette.custom.newFocusBorder}, inset 0 0 0 4px ${e.palette.custom.whiteBorder} !important`,borderRadius:"4px",outline:"none"},border:n?"none":void 0}),[`& .${Zh.XS}`]:u(u({},dm({styles:c,checkboxes:t,selectionState:"selectedExcluded"})),{},{border:n?"none":void 0}),[`& .${Zh.A}`]:u(u({},dm({styles:c,checkboxes:t,selectionState:"alternative"})),{},{border:n?"none":void 0}),[`& .${Zh.X}`]:u(u({},g),{},{border:n?"none":void 0}),[`& .${Zh.X}, & .${Zh.XS}`]:{border:n?"none":void 0,[`& .${Zh.barSelected} .bar-filled`]:u({},b)},[`& .${Zh.frequencyCount}`]:u(u({zIndex:3,justifyContent:"flex-end"},pm),{},{flex:`0 0 ${cm({sizes:a,frequencyMode:l,isGridMode:n,freqHitsValue:s})}`,minWidth:!n&&"P"!==l&&s?a.freqMinWidth:"max-content",maxWidth:um({sizes:a,frequencyMode:l,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),[`&.${Zh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Zh.bar}`]:{height:o?"16px":"20px",position:"absolute",zIndex:1,alignSelf:"center",left:4,width:"calc(100% - 8px)",display:"flex",alignItems:"center","& .bar-filled":u({},b)},[`& .${Zh.barSelected}`]:{"& .bar-filled":u({},y)},[`& .${Zh.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${Zh.barSelectedWithCheckbox}`]:{"& .bar-filled":u(u({},y),{},{backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected})},[`& .${Zh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}});var hm=C.memo(fm);const mm="ListBoxCheckbox",gm={cbIcon:`${mm}-cbIcon`,cbIconChecked:`${mm}-cbIconChecked`,cbIconExcluded:`${mm}-cbIconExcluded`,cbIconAlternative:`${mm}-cbIconAlternative`,checkbox:`${mm}-checkbox`,dense:`${mm}-dense`},bm=Dl(vp,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${gm.cbIcon}`]:{borderRadius:3,width:16,height:16,boxShadow:"inset 0 0 0 1px rgba(16,22,26,.2), inset 0 -1px 0 rgba(16,22,26,.1)",backgroundColor:"#f5f8fa",backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.8),hsla(0,0%,100%,0))",display:"flex",alignItems:"center",justifyContent:"center"},[`& .${gm.cbIconChecked}`]:{borderRadius:3,backgroundColor:e.selections.selected,backgroundImage:"linear-gradient(180deg,hsla(0,0%,100%,.1),hsla(0,0%,100%,0))","&:before":{display:"block",width:16,height:16,backgroundImage:"url(\"data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M12 5c-.28 0-.53.11-.71.29L7 9.59l-2.29-2.3a1.003 1.003 0 00-1.42 1.42l3 3c.18.18.43.29.71.29s.53-.11.71-.29l5-5A1.003 1.003 0 0012 5z' fill='%23fff'/%3E%3C/svg%3E\")",content:'""'}},[`& .${gm.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${gm.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${gm.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${gm.dense}`]:{padding:"4px 8px"}})),ym=(e,t=!0,n=!1)=>fr.jsx("span",{className:e.cbIcon,children:n&&fr.jsx("span",{className:t&&n?e.cbIconExcluded:""})});function vm({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:l}){return fr.jsx(bm,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[gm.checkbox,r&&gm.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:ym(gm,a,o),checkedIcon:fr.jsx("span",{className:gm.cbIconChecked}),styles:i})}const Sm={radioButton:"ListBoxRadioButton-radioButton"},xm=Dl(sh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${Sm.radioButton}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function wm({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return fr.jsx(xm,{checked:t,onChange:e,value:n,name:n,className:Sm.radioButton,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}function km({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return fr.jsx(Xc,{component:"span",variant:"body2",className:am([Zh.labelText,t&&Zh.labelDense,n&&om({cell:o,checkboxes:r})&&Zh.excludedTextWithCheckbox]),align:i,dir:"auto",children:fr.jsx("span",{children:e})})}function Cm({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?fr.jsx(km,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e}function Em({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}){const p=fr.jsx(vm,{onChange:e,label:t,checked:r,dense:o,excluded:rm(i),isGridCol:a,showGray:l,dataN:n,styles:d}),f=fr.jsx(wm,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return fr.jsx(Gp,{control:s?f:p,className:Zh.checkboxLabel,label:fr.jsx(Cm,{label:t,dense:o,showGray:l,checkboxes:c,cell:i,valueTextAlign:u})},n)}function Lm({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>fr.jsx("span",{id:n,className:t?Zh.highlighted:"",children:e}));return fr.jsx(km,{label:o,dense:t,showGray:n,checkboxes:r})}function Rm({onChange:e,labels:t,checkboxes:n,dense:r,showGray:o,qElemNumber:i,isSelected:a,cell:l,isGridCol:s,isSingleSelect:c,valueTextAlign:u,styles:d}){const p=fr.jsx(Lm,{labels:t,dense:r,showGray:o,checkboxes:n});return n?fr.jsx(Em,{onChange:e,label:p,qElemNumber:i,isSelected:a,dense:r,cell:l,isGridCol:s,showGray:o,isSingleSelect:c,checkboxes:n,valueTextAlign:u,styles:d}):p}var Pm=C.memo(function({onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}){return c?fr.jsx(Em,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}):fr.jsx(km,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})});function Tm({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!(e&&t&&"-"!==lm(e)))return;const i=(({qFrequency:e,frequencyMax:t})=>{const n=String(e),r="%"===n.substring(n.length-1),o=parseFloat(r?n:e);return`${r?o:o/t*100}%`})({qFrequency:e,frequencyMax:o});return fr.jsx(ip,{className:am([Zh.bar,n&&Zh.barWithCheckbox,r&&(n?Zh.barSelectedWithCheckbox:Zh.barSelected)]),children:fr.jsx(ip,{className:"bar-filled",width:i})})}function Om({cell:e,checkboxes:t,dense:n,showGray:r}){const o=lm(null==e?void 0:e.qFrequency);return fr.jsx(Kp,{style:{display:"flex",alignItems:"center"},className:Zh.frequencyCount,"aria-label":o,title:o,children:fr.jsx(Xc,{noWrap:!0,color:"inherit",variant:"body2",className:am([n&&Zh.labelDense,Zh.labelText,r&&om({cell:e,checkboxes:t})&&Zh.excludedTextWithCheckbox]),children:o})})}function Im({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r}){if("singleColumn"===e)return{height:"100%",width:"100%"};switch(t){case"row":case"column":return{height:r?"100%":`calc(100% - ${n}px)`,width:`calc(100% - ${2*n}px)`,position:"absolute",left:4};default:return{}}}const Mm=Dl(Kp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i})=>{const a="padding"+("rtl"===o?"Left":"Right");return{[`&.${Zh.fieldRoot}`]:u(u({},Im({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i})),{},{[a]:r?"8px":void 0})}});const Dm=Object.freeze({ENTER:13,ESCAPE:27,SPACE:32,TAB:9,BACKSPACE:8,DELETE:46,ALT:18,CTRL:17,SHIFT:16,ARROW_UP:38,ARROW_DOWN:40,ARROW_LEFT:37,ARROW_RIGHT:39,PAGE_DOWN:34,PAGE_UP:33,HOME:36,END:35,F10:121,A:65,F:70,ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,SUBTRACTION:189,DECIMAL:190,NUMPAD_DECIMAL:110,isArrow:e=>e===Dm.ARROW_UP||e===Dm.ARROW_DOWN||e===Dm.ARROW_LEFT||e===Dm.ARROW_RIGHT});function _m(e){null==e||e.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Nm(e){return(null==e?void 0:e.closest(".njs-cell"))||(null==e?void 0:e.closest(".qv-gridcell"))||(null==e?void 0:e.closest(".qv-gs-listbox"))}function qm({containerRef:e,enabled:t}){const[n,r]=k.useState(!1),o={enabled:t,active:n,innerTabStops:!t||n,blur(n){var o;if(!t)return;r(!1);const i=Nm(e.current)||(null===(o=e.current)||void 0===o?void 0:o.parentElement);var a;null==(a=e.current)||a.querySelectorAll('[tabIndex="0"]').forEach(e=>{e.setAttribute("tabIndex",-1)}),_m(e.current),n&&i&&(i.setAttribute("tabIndex",0),e.current.setAttribute("tabIndex",-1),i.focus())},focus(){if(!t)return;r(!0);const n=e.current,o=null==n?void 0:n.querySelector(".search input"),i=null==n?void 0:n.querySelector(".value.last-focused"),a=null==n?void 0:n.querySelector(".value.selector, .value"),l=null==n?void 0:n.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm"),s=null==n?void 0:n.querySelector("#listbox-unlock-button"),c=(null==n?void 0:n.querySelector(".listbox-cyclic-button"))||o||i||a||s||l;null==c||c.setAttribute("tabIndex",0),null==c||c.focus()},focusSelection(){const e=document.querySelector("#listbox-unlock-button"),t=document.querySelector(".actions-toolbar-default-actions .actions-toolbar-confirm:not(:disabled)"),n=e||t;return null==n||n.setAttribute("tabIndex",0),null==n||n.focus(),n}};return o}const jm=e=>+e.getAttribute("data-n"),Am=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},zm=e=>{const t=null==e?void 0:e.querySelector(".value.last-focused"),n=null==e?void 0:e.querySelector(".value.selector"),r=null==e?void 0:e.querySelector(".value"),o=t||n||r;return null==o||o.setAttribute("tabIndex",0),null==o||o.focus(),_m(e),o},$m=e=>{const t=null==e?void 0:e.querySelector(".listbox-cyclic-button:not(:disabled)");return null==t||t.setAttribute("tabIndex",0),null==t||t.focus(),t},Fm=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Nm(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{_m(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}};function Bm({select:e,selectAll:t,onCtrlF:n,confirm:r,cancel:o,setScrollPosition:i,focusListItems:a,keyboard:l,isModal:s,rowCount:c,columnCount:u,rowIndex:d,columnIndex:p,layoutOrder:f}){const h=(e,t,n=!1)=>{if(e===Dm.ARROW_LEFT||e===Dm.ARROW_RIGHT||"number"!=typeof d||"number"!=typeof p){const e=null==t?void 0:t.parentElement[n?"nextElementSibling":"previousElementSibling"];return null==e?void 0:e.querySelector("[role]")}const r=null==t?void 0:t.parentElement.parentElement,o=null==r?void 0:r.childElementCount;if(o){const n=(({rowIndex:e,columnIndex:t,rowCount:n,columnCount:r,layoutOrder:o,keyCode:i,numCells:a})=>{const l=e=>{let t;return"row"===o?(t=a%r,e<t?n:n-1):(t=a%n,e<r-1?n:t)};let s=e,c=t;if(i===Dm.ARROW_DOWN)if(e>=l(t)-1){if(t===r-1)return-1;s=0,c=t+1}else s=e+1;else if(0===e){if(0===t)return-1;s=l(t-1)-1,c=t-1}else s=e-1;if("row"===o)return s*r+c;const u=a%n;return 0===u||s<u?s*r+c:(s-u)*(r-1)+c+u*r})({rowIndex:d,columnIndex:p,rowCount:c,columnCount:u,layoutOrder:f,keyCode:e,numCells:o}),r=null==t?void 0:t.parentElement.parentElement.children[n];return null==r?void 0:r.querySelector("[role]")}};let m=!1;const g=e=>{m=e};return c=>{let u;const{currentTarget:d,nativeEvent:p}=c,{keyCode:f,shiftKey:b=!1,ctrlKey:y=!1,metaKey:v=!1}=p;switch(f){case Dm.TAB:{const e=d.closest(".listbox-container"),t=void 0!==s?s():void 0;d.classList.add("last-focused");if(!(null!=l&&l.enabled)){if(!t)return;return l.focusSelection(),c.preventDefault(),void c.stopPropagation()}if(b){Am(e)||$m(e)||(t?l.focusSelection():Fm(c,l));break}l.focusSelection()||$m(e)||Am(e)||(d.blur(),Fm(c,l));break}case Dm.SHIFT:g(!0);break;case Dm.SPACE:e([jm(d)],!1,c);break;case Dm.ARROW_DOWN:case Dm.ARROW_RIGHT:u=h(f,d,!0),b&&u&&(m&&(e([jm(d)],!0),g(!1)),e([jm(u)],!0));break;case Dm.ARROW_UP:case Dm.ARROW_LEFT:u=h(f,d,!1),b&&u&&(m&&(e([jm(d)],!0),g(!1)),e([jm(u)],!0));break;case Dm.ENTER:if(r(),void 0===s)return;break;case Dm.ESCAPE:if(void 0===s)return void o();if(!s())return;o();break;case Dm.HOME:if(a.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case Dm.END:if(a.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case Dm.A:if(y||v){t();break}return;case Dm.F:if(y||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}const Wm={S:"Object.Listbox.Selected",A:"Object.Listbox.Alternative",O:"Object.Listbox.Optional",XS:"Object.Listbox.SelectedExcluded",L:"Object.Listbox.Locked",X:"Object.Listbox.Excluded",XL:"Object.Listbox.ExcludedLock"};function Hm({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){var i,a;const{onChange:l,onClick:s,onMouseDown:c,onMouseUp:d,onMouseEnter:p,onTouchStart:f,onTouchEnd:h,pages:m,isLocked:g,column:b=!1,checkboxes:y=!1,textAlign:v,direction:S,layoutOptions:x={},freqIsAllowed:w,isSingleSelect:C,actions:E,frequencyMax:L="",histogram:R=!1,keyboard:P,showGray:T=!0,showTick:O=!0,columnCount:I=1,rowCount:M=1,dataOffset:D,deducedFrequencyMode:_,focusListItems:N,listCount:q,sizes:j,translator:A,showSearch:z,isModal:$,contentFontStyle:F,styles:B,fillHeight:W}=o,{dense:H=!1,dataLayout:U="singleColumn",layoutOrder:V}=x,{itemPadding:G}=j;let K,X;const J={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===V?(K=t*I+n,J.max=M,J.currentIndex=t):(K=n*M+t,J.max=I,J.currentIndex=n);const e=0;X=u(u({},r),{},{height:W?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e})}else K=e,J.max=q,J.currentIndex=e,X=u({},r);K+=D;const[Z,Q]=k.useState(null);k.useEffect(()=>{null!==Z&&(0===J.currentIndex&&N.first&&(Z.focus(),N.setFirst(!1)),J.currentIndex===J.max-1&&N.last&&(Z.focus(),N.setLast(!1)))},[Z,N.first,N.last]);const Y=k.useCallback(Bm(u(u({},E),{},{focusListItems:N,keyboard:P,isModal:$,rowCount:M,columnCount:I,rowIndex:t,columnIndex:n,layoutOrder:V})),[E,null==P?void 0:P.innerTabStops,M,I,t,n,V]),ee=k.useMemo(()=>function({pages:e,cellIndex:t}){let n;const r=e.filter(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight)[0];if(r){const e=r.qArea;t>=e.qTop&&t<e.qTop+e.qHeight&&([n]=r.qMatrix[t-e.qTop])}return n}({pages:m,cellIndex:K}),[m,K]),te="S"===(null==ee?void 0:ee.qState)||"XS"===(null==ee?void 0:ee.qState)||"L"===(null==ee?void 0:ee.qState)||"XL"===(null==ee?void 0:ee.qState),ne=k.useMemo(()=>im({column:b,histogram:R,cell:ee,showGray:T}),[null==ee?void 0:ee.qState,R,H]),re=k.useCallback(e=>{e.preventDefault()},[y]),oe=k.useMemo(()=>ee&&function({direction:e,cell:t,textAlign:n}){const r=!["NaN",void 0].includes(null==t?void 0:t.qNum);let o;return o=!n||n.auto?r?"rtl"===e?"left":"right":{rtl:"right",ltr:"left"}[e]:(null==n?void 0:n.align)||"left",["left","center","right"].includes(o)?o:"left"}({direction:S,cell:ee,textAlign:v}),[S,ee,v]);if(!ee)return null;const ie="grid"===U&&"column"===V,ae=null!==(i=null==ee?void 0:ee.qText)&&void 0!==i?i:"";let le;if(null!==(a=ee.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ee.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];le=function(e,t){if(!t.length)return[];const n=t.reduce((n,r,o)=>{const i=0===o?0:t[o-1].qCharPos+t[o-1].qCharCount;n.push(...function(e,t,n=0){const{qCharPos:r,qCharCount:o}=t,i=[];return r>n&&i.push([e.slice(n,r),!1]),i.push([e.slice(r,r+o),!0]),i}(e,r,i));const a=o===t.length-1,l=t[o].qCharPos+t[o].qCharCount;return a&&l<e.length&&n.push([e.slice(l),!1]),n},[]);return n}(ae,e)}const se={alignItems:"center",display:"flex",fontSize:"8px"},ce="rtl"===S,ue={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ce?8:y?0:void 0,paddingRight:y?0:ce?8:0,justifyContent:oe,textAlign:oe},de=0===e,pe=te&&g,fe=!y&&te&&!g,he=!y&&O,me=y||!O,ge=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const l=Wm[n],s=e.get(l),c=[];if(r){const t=a?"Listbox.ScreenReader.SearchThenSelectionsMenu.WithAccSelMenu":"Listbox.ScreenReader.SelectionMenu.WithAccSelMenu",n=e.get(t);c.push(n)}const u=`${t} ${s}`,d=e.get("CurrentSelections.Of",[o+1,i+1]);return c.unshift(u,d),c.join(". ").trim()}({translator:A,label:ae,qState:ee.qState,currentIndex:J.currentIndex,maxIndex:J.max,showSearch:z}),be=!ce&&"right"===oe||ce&&"left"===oe;return fr.jsx(hm,{className:Zh.barContainer,checkboxes:y,style:X,styles:B,isGridCol:ie,isGridMode:"grid"===U,dense:H,direction:S,sizes:j,frequencyMode:_,freqHitsValue:be,contentFontStyle:F,"data-testid":"listbox.item",children:fr.jsxs(Mm,{role:"row","aria-label":ge,"aria-selected":te,"aria-setsize":J.max,"aria-rowindex":J.currentIndex,ref:Q,container:!0,dataLayout:U,cellPaddingRight:me,layoutOrder:V,itemPadding:G,gap:0,className:am(["value",Zh.fieldRoot,...ne]),onClick:s,onMouseDown:c,onMouseUp:d,onMouseEnter:p,onKeyDown:Y,onTouchStart:f,onTouchEnd:h,onContextMenu:re,tabIndex:de&&P.innerTabStops?0:-1,"data-n":null==ee?void 0:ee.qElemNumber,direction:S,fillHeight:W,children:[(null==ee?void 0:ee.qFrequency)&&fr.jsx(Tm,{qFrequency:null==ee?void 0:ee.qFrequency,histogram:R,checkboxes:y,isSelected:te,frequencyMax:L}),fr.jsx(Kp,{style:ue,className:am([Zh.cell,Zh.selectedCell]),title:`${ae}`,children:le?fr.jsx(Rm,{onChange:l,labels:le,checkboxes:y,dense:H,showGray:T,qElemNumber:ee.qElemNumber,isSelected:te,cell:ee,isGridCol:ie,isSingleSelect:C,valueTextAlign:oe,styles:B}):fr.jsx(Pm,{onChange:l,label:ae,qElemNumber:ee.qElemNumber,isSelected:te,dense:H,cell:ee,isGridCol:ie,showGray:T,isSingleSelect:C,checkboxes:y,valueTextAlign:oe,styles:B})}),w&&fr.jsx(Om,{cell:ee,checkboxes:y,dense:H,showGray:T}),he&&fr.jsxs(Kp,{className:Zh.icon,children:[pe&&fr.jsx($h,{style:se,size:"small"}),fe&&fr.jsx(nm,{style:se,size:"small"})]})]})})}var Um=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function Vm(e,t){return e===t||!(!Um(e)||!Um(t))}function Gm(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!Vm(e[n],t[n]))return!1;return!0}function Km(e,t){var n;void 0===t&&(t=Gm);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}}var Xm="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function Jm(e){cancelAnimationFrame(e.id)}function Zm(e,t){var n=Xm();var r={id:requestAnimationFrame(function o(){Xm()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var Qm=-1;function Ym(e){if(void 0===e&&(e=!1),-1===Qm||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),Qm=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return Qm}var eg=null;function tg(e){if(void 0===e&&(e=!1),null===eg||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?eg="positive-descending":(t.scrollLeft=1,eg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),eg}return eg}var ng=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function rg(e){var t,n=e.getColumnOffset,r=e.getColumnStartIndexForOffset,o=e.getColumnStopIndexForStartIndex,i=e.getColumnWidth,a=e.getEstimatedTotalHeight,l=e.getEstimatedTotalWidth,s=e.getOffsetForColumnAndAlignment,c=e.getOffsetForRowAndAlignment,u=e.getRowHeight,d=e.getRowOffset,p=e.getRowStartIndexForOffset,f=e.getRowStopIndexForStartIndex,h=e.initInstanceProps,m=e.shouldResetStyleCacheOnItemSizeChange,g=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=h(r.props,ws(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:ws(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=Km(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=Km(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,c=a.rowHeight,p=r._getItemStyleCache(m&&l,m&&s,m&&c),f=e+":"+t;if(p.hasOwnProperty(f))o=p[f];else{var h=n(r.props,t,r._instanceProps),g="rtl"===s;p[f]=o={position:"absolute",left:g?void 0:h,right:g?h:void 0,top:d(r.props,e,r._instanceProps),height:u(r.props,e,r._instanceProps),width:i(r.props,t,r._instanceProps)}}return o},r._getItemStyleCache=void 0,r._getItemStyleCache=Km(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,c=i;if("rtl"===t)switch(tg()){case"negative":c=-i;break;case"positive-descending":c=s-o-i}c=Math.max(0,Math.min(c,s-o));var u=Math.max(0,Math.min(a,l-n));return{isScrolling:!0,horizontalScrollDirection:e.scrollLeft<i?"forward":"backward",scrollLeft:c,scrollTop:u,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&&Jm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zm(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}us(t,e),t.getDerivedStateFromProps=function(e,t){return og(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,u=i.columnCount,d=i.height,p=i.rowCount,f=i.width,h=this.state,m=h.scrollLeft,g=h.scrollTop,b=Ym();void 0!==r&&(r=Math.max(0,Math.min(r,u-1))),void 0!==o&&(o=Math.max(0,Math.min(o,p-1)));var y=a(this.props,this._instanceProps),v=l(this.props,this._instanceProps)>f?b:0,S=y>d?b:0;this.scrollTo({scrollLeft:void 0!==r?s(this.props,r,n,m,this._instanceProps,S):m,scrollTop:void 0!==o?c(this.props,o,n,g,this._instanceProps,v):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(tg()){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&&Jm(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,c=e.innerElementType,u=e.innerTagName,d=e.itemData,p=e.itemKey,f=void 0===p?ng:p,h=e.outerElementType,m=e.outerTagName,g=e.rowCount,b=e.style,y=e.useIsScrolling,v=e.width,S=this.state.isScrolling,x=this._getHorizontalRangeToRender(),w=x[0],C=x[1],E=this._getVerticalRangeToRender(),L=E[0],R=E[1],P=[];if(r>0&&g)for(var T=L;T<=R;T++)for(var O=w;O<=C;O++)P.push(k.createElement(t,{columnIndex:O,data:d,isScrolling:y?S:void 0,key:f({columnIndex:O,data:d,rowIndex:T}),rowIndex:T,style:this._getItemStyle(T,O)}));var I=a(this.props,this._instanceProps),M=l(this.props,this._instanceProps);return k.createElement(h||m||"div",{className:n,onScroll:this._onScroll,ref:this._outerRefSetter,style:dt({position:"relative",height:i,width:v,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},b)},k.createElement(c||u||"div",{children:P,ref:s,style:{height:I,pointerEvents:S?"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],c=i[3],u=this._getVerticalRangeToRender(),d=u[0],p=u[1],f=u[2],h=u[3];this._callOnItemsRendered(a,l,d,p,s,c,f,h)}if("function"==typeof r){var m=this.state,g=m.horizontalScrollDirection,b=m.scrollLeft,y=m.scrollTop,v=m.scrollUpdateWasRequested,S=m.verticalScrollDirection;this._callOnScroll(b,y,g,S,v)}},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,c=s.horizontalScrollDirection,u=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),h=o(this.props,f,d,this._instanceProps),m=u&&"backward"!==c?1:Math.max(1,p),g=u&&"forward"!==c?1:Math.max(1,p);return[Math.max(0,f-m),Math.max(0,Math.min(t-1,h+g)),f,h]},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,c=a.scrollTop,u=r||o||n||1;if(0===t||0===i)return[0,0,0,0];var d=p(this.props,c,this._instanceProps),h=f(this.props,d,c,this._instanceProps),m=l&&"backward"!==s?1:Math.max(1,u),g=l&&"forward"!==s?1:Math.max(1,u);return[Math.max(0,d-m),Math.max(0,Math.min(i-1,h+g)),d,h]},t}(k.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,useIsScrolling:!1},t}var og=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},ig=function(e,t){return e};function ag(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,ws(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:ws(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=Km(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=Km(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,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var d=n(r.props,e,r._instanceProps),p=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,h="rtl"===a,m=f?d:0;u[e]=t={position:"absolute",left:h?void 0:m,right:h?m:void 0,top:f?0:d,height:f?"100%":p,width:f?p:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=Km(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(tg()){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&&Jm(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=Zm(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}us(t,e),t.getDerivedStateFromProps=function(e,t){return lg(e,t),u(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?Ym():0:s.scrollHeight>s.clientHeight?Ym():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(tg()){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&&Jm(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,c=e.itemCount,u=e.itemData,d=e.itemKey,p=void 0===d?ig:d,f=e.layout,h=e.outerElementType,m=e.outerTagName,g=e.style,b=e.useIsScrolling,y=e.width,v=this.state.isScrolling,S="horizontal"===o||"horizontal"===f,x=S?this._onScrollHorizontal:this._onScrollVertical,w=this._getRangeToRender(),C=w[0],E=w[1],L=[];if(c>0)for(var R=C;R<=E;R++)L.push(k.createElement(t,{data:u,key:p(R,u),index:R,isScrolling:b?v:void 0,style:this._getItemStyle(R)}));var P=r(this.props,this._instanceProps);return k.createElement(h||m||"div",{className:n,onScroll:x,ref:this._outerRefSetter,style:dt({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},k.createElement(l||s||"div",{children:L,ref:a,style:{height:S?"100%":P,pointerEvents:v?"none":void 0,width:S?P:"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 c=a(this.props,s,this._instanceProps),u=l(this.props,c,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,c-d),Math.max(0,Math.min(t-1,u+p)),c,u]},t}(k.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var lg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},sg=rg({getColumnOffset:function(e,t){return t*e.columnWidth},getColumnWidth:function(e,t){return e.columnWidth},getRowOffset:function(e,t){return t*e.rowHeight},getRowHeight:function(e,t){return e.rowHeight},getEstimatedTotalHeight:function(e){var t=e.rowCount;return e.rowHeight*t},getEstimatedTotalWidth:function(e){var t=e.columnCount;return e.columnWidth*t},getOffsetForColumnAndAlignment:function(e,t,n,r,o,i){var a=e.columnCount,l=e.columnWidth,s=e.width,c=Math.max(0,a*l-s),u=Math.min(c,t*l),d=Math.max(0,t*l-s+i+l);switch("smart"===n&&(n=r>=d-s&&r<=u+s?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(s/2)?0:p>c+Math.floor(s/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getOffsetForRowAndAlignment:function(e,t,n,r,o,i){var a=e.rowHeight,l=e.height,s=e.rowCount,c=Math.max(0,s*a-l),u=Math.min(c,t*a),d=Math.max(0,t*a-l+i+a);switch("smart"===n&&(n=r>=d-l&&r<=u+l?"auto":"center"),n){case"start":return u;case"end":return d;case"center":var p=Math.round(d+(u-d)/2);return p<Math.ceil(l/2)?0:p>c+Math.floor(l/2)?c:p;default:return r>=d&&r<=u?r:d>u||r<d?d:u}},getColumnStartIndexForOffset:function(e,t){var n=e.columnWidth,r=e.columnCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getColumnStopIndexForStartIndex:function(e,t,n){var r=e.columnWidth,o=e.columnCount,i=e.width,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},getRowStartIndexForOffset:function(e,t){var n=e.rowHeight,r=e.rowCount;return Math.max(0,Math.min(r-1,Math.floor(t/n)))},getRowStopIndexForStartIndex:function(e,t,n){var r=e.rowHeight,o=e.rowCount,i=e.height,a=t*r,l=Math.ceil((i+n-a)/r);return Math.max(0,Math.min(o-1,t+l-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.columnWidth,e.rowHeight}}),cg=ag({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,d=e.width,p="horizontal"===a||"horizontal"===u?d:l,f=Math.max(0,s*c-p),h=Math.min(f,t*c),m=Math.max(0,t*c-p+c+i);switch("smart"===n&&(n=r>=m-p&&r<=h+p?"auto":"center"),n){case"start":return h;case"end":return m;case"center":var g=Math.round(m+(h-m)/2);return g<Math.ceil(p/2)?0:g>f+Math.floor(p/2)?f:g;default:return r>=m&&r<=h?r:r<m?m:h}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,d=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+d-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});const ug="#BBB",dg="#f1f1f1",pg={styledScrollbars:"ListBox-styledScrollbars"};function fg({renderProps:e,layoutOptions:t,maxCount:n,columnCount:r,rowCount:o,overflowDisclaimer:i,qCardinal:a,dataOffset:l}){const s="column"===(null==t?void 0:t.layoutOrder)&&"singleColumn"!==t.dataLayout,c=((e,t)=>void 0!==(null==e?void 0:e.visibleRowStopIndex)||void 0!==e.visibleColumnStopIndex?t?e.visibleColumnStopIndex:e.visibleRowStopIndex:e.visibleStopIndex)(e,s),u=s?n.column:n.row,d=(s?r:o)>=u,p=((e,t,n,r)=>e===t*n+r+n)(a,c,s?o:r,l),f=!!l&&((e,t)=>void 0!==(null==e?void 0:e.visibleRowStartIndex)||void 0!==e.visibleColumnStartIndex?t?0===e.visibleColumnStartIndex:0===e.visibleRowStartIndex:0===e.visibleStartIndex)(e,s),h=d&&!p&&c>=u-1||f||i.state.show;i.set(h)}const{StyledFixedSizeList:hg,StyledFixedSizeGrid:mg}=function(){const e=e=>({scrollbarColor:`${ug} ${dg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:dg},"&::-webkit-scrollbar-thumb":{backgroundColor:ug,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:sr(cg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${pg.styledScrollbars}`]:e(t)})),StyledFixedSizeGrid:sr(sg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${pg.styledScrollbars}`]:e(t)}))}}();const gg=(e,t)=>{const n=(()=>{const e=document.createDocumentFragment(),t=document.createElement("canvas");return e.appendChild(t),t.getContext("2d")})();if(n.font=t,Array.isArray(e))return Math.max(...e.map(e=>n.measureText(e).width));const r=n.measureText(e);return Math.ceil(r.width||0)},bg=e=>{const t=k.useMemo(()=>"text"in e?e:{},[e]);return k.useMemo(()=>gg(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function yg(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function vg({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}function Sg({layout:e,width:t,height:n,listCount:r,count:o,freqIsAllowed:i,checkboxes:a,styles:l}){const{layoutOptions:s={}}=e||{},{layoutOrder:c,maxVisibleRows:u={},maxVisibleColumns:d,dense:p,dataLayout:f}=s,{fontSize:h="12px",fontFamily:m="Source sans pro"}=(null==l?void 0:l.content)||{},g=`${h} ${m}`,b=bg({text:yg(e),font:g}),y=bg({text:yg(5),font:g}),v=bg({text:yg(8),font:g}),S=i?y:0,x=a?20:0;let w=56+S+x;!a&&w>=80&&(w+=20);let k,C,E,L,R=b+18+S+x;!a&&R>=80&&(R+=20),R=Math.min(150,Math.max(R,w));const P=vg({isGridMode:"grid"===f,dense:p}),T=null!=n?n:8*P;if(c){let e=t;"row"===c?(k={overflowX:"hidden"},e+=8,({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleColumns:e,listCount:t,containerWidth:n,columnAutoWidth:r,itemMinWidth:o}){const i=(null==e?void 0:e.maxColumns)||3,a=n-10;let l;const s=Math.min(t,Math.max(1,Math.round(a/Math.max(o,r))));l=!1!==(null==e?void 0:e.auto)?s:Math.min(t,i,s),l=Math.max(l,1);const c=a/l;return{rowCount:Math.ceil(t/l),columnWidth:c,columnCount:l}}({maxVisibleColumns:d,listCount:r,containerWidth:e,columnAutoWidth:R,itemMinWidth:w}))):(k={overflowY:"hidden"},({rowCount:L,columnWidth:E,columnCount:C}=function({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}){let l;const s=(null==e?void 0:e.maxRows)||3,c=Math.floor(r/t);l=!1!==e.auto?c:Math.min(n,s,c),l=Math.max(l,1);const u=Math.ceil(n/l);return{columnWidth:Math.max(o,i/u,a),columnCount:u,rowCount:l}}({maxVisibleRows:u,itemHeight:P,listCount:r,listHeight:T,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const O=s.dense?838e3:577e3;L=Math.min(L,O);const I=Math.floor(3355e4/E);C=Math.min(C,I)||1;const M=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:P,listHeight:T,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,M),maxCount:{row:O,column:I},itemPadding:4,textWidth:b,freqMinWidth:y,freqMaxWidth:v}}function xg({pages:e,minimumBatchSize:t,count:n,calculatePagesHeight:r=!1}){const o=null!=e&&e.length&&r?(({pages:e=[],minimumBatchSize:t,count:n})=>{const r=e.some(e=>e.qArea.qHeight<t),o=Math.max(...e.map(e=>e.qArea.qTop+e.qArea.qHeight));return r?o:n})({pages:e,minimumBatchSize:t,count:n}):n;return o||0}const[wg]=wc({});function kg(e){const t=`${e.id}`,[n]=wg();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}const Cg=Dl(Xc,{shouldForwardProp:e=>!["width","dense"].includes(e)})(({width:e,dense:t})=>u({minWidth:`${e}px`,textAlign:"center",fontSize:""+(t?"12px":"14px"),whiteSpace:"normal"},t&&{textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap",width:e}));function Eg({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=k.useContext(vc);return fr.jsx(yh,{title:r?o.get(t):"",children:fr.jsx(Cg,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}var Lg=Xl(fr.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}));const Rg=Dl(Ac)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),Pg=Dl("div")(()=>({paddingLeft:"6px",flexGrow:1})),Tg=Dl("div")(({dense:e})=>({display:"flex",alignItems:""+(e?"center":"flex-start")})),Og=Dl(Lg)(()=>({fontSize:"14px"}));function Ig({text:e,dismiss:t,dense:n,parentWidth:r=0}){const o="function"==typeof t,i=n?370:282,a=Math.max(r/2-i/2,0),l=Math.min(i,r)-42,s=n&&r<i;return fr.jsxs(Rg,{left:a,style:{maxWidth:i},children:[fr.jsx(Pg,{children:fr.jsx(Eg,{text:e,dense:n,width:l,tooltip:s})}),fr.jsx(Tg,{dense:n,children:o&&fr.jsx(Wc,{"aria-label":"close",onClick:()=>t(),children:fr.jsx(Og,{})})})]})}function Mg({itemWidth:e,layout:t,frequencyMode:n}){const r=e>80,{frequencyEnabled:o=!1}=(null==t?void 0:t.qListObject)||{},i=!["N",void 0].includes(n);return!(!r||!i&&!o)}const Dg=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,_g=e=>{const t=Dg(e);return`Max(AGGR(Count(${t}), ${t}))`},Ng=(e,t)=>{const n=(e=>"fetch"===(null==e?void 0:e.frequencyMax))(t),[r,o]=k.useState(),[i,a]=k.useState(n);return k.useEffect(()=>{if(!n)return;(async()=>{const n=await(async(e,t)=>{const n=e.qListObject.qDimensionInfo,r=n.qGroupFieldDefs[n.qGroupPos],o=_g(r);return(await t.evaluateEx(o)).qNumber})(t,e);o(n),a(!1)})()},[n&&t]),{frequencyMax:n?r:null==t?void 0:t.frequencyMax,awaitingFrequencyMax:i}};const qg=["isLoadingData"],jg=Dl("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Ag({model:e,app:t,constraints:n,layout:r,selections:o,selectionState:i,direction:a,checkboxes:l,height:s,width:c,frequencyMode:p,update:f,fetchStart:h,postProcessPages:m,calculatePagesHeight:g=!1,keyboard:b={},showGray:y=!0,scrollState:v,keyScroll:S={state:{},reset:()=>{}},currentScrollIndex:x={set:()=>{}},renderedCallback:w,onCtrlF:C,showSearch:E,isModal:L,styles:R}){var P,T;const{translator:O}=k.useContext(vc),[I,M]=k.useState(!1),D=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:_=l,histogram:N}=null!=r?r:{},q=k.useRef(null),j=k.useRef({queue:[],validPages:!1,dataOffset:0}),A=k.useRef({pages:[]}),{frequencyMax:z,awaitingFrequencyMax:$}=Ng(t,r),F=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:a}){const[l,s]=k.useState(!1),[c,u]=k.useState([]);let[d]=k.useState(0);const p=(l,c)=>{const p=e.current.dataOffset;e.current.queue.push({start:l+p,stop:c+p});const f=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),s(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const o=e.current.queue.slice(-1)[0];if(!o)return s(!1),void t();const l=n.getListObjectData("/qListObjectDef",[{qTop:o.start>d?o.start-d:0,qHeight:d,qLeft:0,qWidth:1},{qTop:o.start,qHeight:d,qLeft:0,qWidth:1}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,a.current.pages=r,u(r),s(!1),t()});r&&r(l)},f?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(d=e),p)},pages:c,isLoading:l}}({local:j,loaderRef:q,model:e,fetchStart:h,scrollTimeout:0,postProcessPages:m,listData:A}),{isLoadingData:B}=F,W=d(F,qg),{getStoreValue:H,setStoreValue:U}=kg(e),V=k.useCallback(W.loadMoreItems,[r]),[G,K]=k.useState({show:!1,dismissed:!1}),[X,J]=k.useState([]);null!=W&&W.pages&&i.update({setPages:J,pages:W.pages,isSingleSelect:D,layout:r});const Z=null==r?void 0:r.qListObject.qDimensionInfo.qCardinal;(null!=W&&W.pages.length&&!$||0===Z)&&(null==w||w());const Q=k.useCallback(e=>{if(null==X||!X.length||!j.current.validPages)return!1;j.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=X.filter(e=>t(e))[0];return n&&t(n)},[r,X]),{interactionEvents:Y,select:ee}=em({selectionState:i,selections:o,checkboxes:_,doc:document,loaderRef:q}),{layoutOptions:te={}}=r||{};let ne=!0;te.dataLayout&&(ne="singleColumn"===te.dataLayout||"row"===(null==te?void 0:te.layoutOrder));const re="grid"===(null==te?void 0:te.dataLayout),oe=e=>{const t=u({},ne?{rowIndex:e}:{columnIndex:e}),n=re?t:e;q.current._listRef.scrollToItem(n)},ie=()=>{if(j.current.queue=[],j.current.validPages=!1,q.current){q.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===S.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&S.reset());j.current.dataOffset=0,oe(0)}};f&&f.call(null,ie),k.useEffect(()=>{v&&!I&&q.current&&(q.current._listRef.scrollToItem(v.initScrollPos),M(!0))},[q.current]),k.useEffect(()=>{ie()},[r,j.current.dataOffset]);let ae=100;const le="grid"!==te.dataLayout,se=null==r||null===(P=r.qListObject.qSize)||void 0===P?void 0:P.qcy,ce=xg({pages:X,minimumBatchSize:ae,count:se,calculatePagesHeight:g});let ue=Mg({itemWidth:c,layout:r,frequencyMode:p});const de=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>{var t;return!(null===(t=e.qFrequency)||void 0===t||!t.match("%"))}))?"P":"-"}(X),pe=Sg({layout:r,width:c,height:s,listCount:ce,count:se,freqIsAllowed:ue,checkboxes:_,styles:R});pe.columnWidth&&(ue=Mg({itemWidth:pe.columnWidth,layout:r,frequencyMode:p}));const{listCount:fe}=pe;U("listCount",fe);const he=H("inputText"),me=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=k.useContext(vc),o=[];if(null!=t&&t.length){const e=function(e){let t;switch(e){case 0:t="Listbox.NoMatchesForYourTerms";break;case 1:t="ScreenReader.OneSearchResult";break;default:t="ScreenReader.ManySearchResults"}return t}(n),t=r.get(e,[n]);o.push(t)}const i=function({layout:e,translatorDynamic:t}){var n;const{qStateCounts:r={}}=(null==e||null===(n=e.qListObject)||void 0===n?void 0:n.qDimensionInfo)||{},o=r.qSelected+r.qSelectedExcluded+r.qLocked+r.qLockedExcluded;let i;switch(o){case 0:i="ScreenReader.ZeroSelected";break;case 1:i="ScreenReader.OneSelected";break;default:i="ScreenReader.ManySelected"}return t.get(i,[o])}({layout:e,translatorDynamic:r});o.push(i);const a=o.filter(e=>!(null==e||!e.length)).join(". ");return a}({layout:r,searchInputText:he,listCount:fe}),ge=e=>{const{scrollIndex:t,offset:n,triggerRerender:o}=function({position:e,isRow:t,sizes:n,layout:r,offset:o}){let i,a=!1,l=null!=o?o:0;switch(e){case"start":i=0;break;case"end":i=t?n.rowCount:n.columnCount;break;case"overflowStart":l=0,i=0,a=!0;break;case"overflowEnd":l=((e,t)=>e.qListObject.qDimensionInfo.qCardinal-t)(r,n.listCount),i=r.qListObject.qDimensionInfo.qCardinal,a=!0}return{scrollIndex:i,offset:l,triggerRerender:a}}({position:e,isRow:ne,sizes:pe,layout:r,offset:j.current.dataOffset});j.current.dataOffset=n,o&&i.triggerStateChanged(),oe(t)};k.useEffect(()=>{const e=S.state;e.up?oe(x.state.start-e.up):e.down?oe(x.state.stop+e.down):e.scrollPosition&&ge(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&S.reset()},[S.state.up,S.state.down,S.state.scrollPosition]);const{textAlign:be}=(null==r?void 0:r.qListObject.qDimensionInfo)||{},[ye,ve]=k.useState({first:!1,last:!1}),{List:Se,Grid:xe}=function({layout:e,width:t,checkboxes:n,local:r,isVertical:o,pages:i,selectionState:a,interactionEvents:l,deducedFrequencyMode:s,histogram:c,isSingleSelect:d,select:p,selectAll:f,onCtrlF:h,textAlign:m,selections:g,keyboard:b,showGray:y,scrollState:v,direction:S,sizes:x,listCount:w,overflowDisclaimer:k,setScrollPosition:C,focusListItems:E,setCurrentScrollIndex:L,constraints:R,frequencyMax:P,freqIsAllowed:T,translator:O,showSearch:I,isModal:M,styles:D}){const{layoutOptions:_={}}=e||{},{columnWidth:N,listHeight:q,itemHeight:j,rowCount:A,columnCount:z}=x||{},$=("grid"===_.dataLayout?N:t)>80,F={direction:"rtl"===S?"rtl":"ltr",useIsScrolling:!0,className:pg.styledScrollbars},B=null==e?void 0:e.qListObject.qDimensionInfo.qLocked,W=q<=j,H=u(u({isLocked:B,column:!o,pages:i},B||a.selectDisabled()?{}:l),{},{checkboxes:n,layoutOptions:_,deducedFrequencyMode:s,freqIsAllowed:T,isSingleSelect:d,textAlign:m,sizes:x,actions:{select:p,confirm:()=>null==g?void 0:g.confirm.call(g),cancel:()=>null==g?void 0:g.cancel.call(g),setScrollPosition:C,selectAll:f,onCtrlF:h},frequencyMax:P,histogram:c,keyboard:b,showGray:y,showTick:$,dataOffset:r.current.dataOffset,focusListItems:E,direction:S,translator:O,showSearch:I,isModal:M,styles:D,fillHeight:W});return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,fr.jsx(hg,u(u({},F),{},{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:q,width:t,itemCount:w,itemData:u(u({},H),{},{listCount:w}),itemSize:j,onItemsRendered:t=>{var o;L({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),fg({renderProps:t,layoutOptions:_,maxCount:x.maxCount,columnCount:z,rowCount:A,overflowDisclaimer:k,qCardinal:null==e||null===(o=e.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qCardinal,dataOffset:r.current.dataOffset}),n(u({},t))},ref:o,children:Hm}))),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=x,{layoutOrder:l}=_||{},s=Math.min(q,A*j+a);return r.current.listRef=o,fr.jsx(mg,u(u({},F),{},{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:s,width:t,columnCount:z,columnWidth:N,rowCount:A,rowHeight:j,style:u({},i),itemData:u(u({},H),{},{column:void 0,columnCount:z,rowCount:A}),onItemsRendered:t=>{var o;const i="row"===l;L({start:i?t.visibleRowStartIndex:t.visibleColumnStartIndex,stop:i?t.visibleRowStopIndex:t.visibleColumnStopIndex});const a=function(e){const{renderProps:t,scrollState:n,layoutOrder:r,rowCount:o,columnCount:i}=e,{overscanRowStartIndex:a,overscanRowStopIndex:l,overscanColumnStartIndex:s,overscanColumnStopIndex:c,visibleStopIndex:u}=t;let d,p,f,h;return n&&n.setScrollPos(u),"column"===r?(d=s*o,p=a,f=c*o,h=l):(d=s,p=a*i,f=c,h=l*i),{visibleStartIndex:d+p,visibleStopIndex:f+h}}({renderProps:t,scrollState:v,layoutOrder:l,rowCount:A,columnCount:z});fg({renderProps:t,layoutOptions:_,maxCount:x.maxCount,columnCount:z,rowCount:A,overflowDisclaimer:k,qCardinal:null==e||null===(o=e.qListObject)||void 0===o||null===(o=o.qDimensionInfo)||void 0===o?void 0:o.qCardinal,dataOffset:r.current.dataOffset}),n(a)},ref:o,children:Hm}))}}}({direction:a,layout:r,width:c,checkboxes:_,deducedFrequencyMode:de,histogram:N,keyboard:b,showGray:y,interactionEvents:Y,select:ee,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:C,textAlign:be,isVertical:le,pages:X,selectionState:i,isSingleSelect:D,selections:o,scrollState:v,local:j,sizes:pe,listCount:fe,overflowDisclaimer:{state:G,set:e=>K(t=>u(u({},t),{},{show:e}))},setScrollPosition:ge,focusListItems:{first:ye.first,setFirst:e=>ve(t=>u(u({},t),{},{first:e})),last:ye.last,setLast:e=>ve(t=>u(u({},t),{},{last:e}))},setCurrentScrollIndex:x.set,constraints:n,frequencyMax:z,freqIsAllowed:ue,translator:O,showSearch:E,isModal:L,styles:R}),{columnWidth:we,listHeight:ke,itemHeight:Ce}=pe||{};return le||(ae=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:c,columnWidth:we,listHeight:ke,itemHeight:Ce})),fr.jsxs(jg,{children:[fr.jsx("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:me}),!fe&&Z>0&&fr.jsx(Eg,{width:c,text:"Listbox.NoMatchesForYourTerms"}),fr.jsx(Uh,{isItemLoaded:Q,itemCount:fe||1,loadMoreItems:V.with({minimumBatchSize:ae}),threshold:0,minimumBatchSize:ae,ref:q,role:"grid",children:le?Se:xe}),G.show&&!G.dismissed&&fr.jsx(Ig,{text:"Listbox.ItemsOverflow",dismiss:()=>K(e=>u(u({},e),{},{dismissed:!0})),parentWidth:null==q||null===(T=q.current)||void 0===T||null===(T=T._listRef)||void 0===T||null===(T=T.props)||void 0===T?void 0:T.width,dense:null==te?void 0:te.dense})]})}const zg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M15.4,9 C15.8,9 16,9.3 16,9.6 L16,15.4 C16,15.7 15.8,16 15.4,16 L9.6,16 C9.3,16 9,15.8 9,15.4 L9,9.6 C9,9.3 9.3,9 9.6,9 L15.4,9 Z M15,10 L10,10 L10,15 L15,15 L15,10 Z M6.5,0 C6.8,0 7,0.3 7,0.6 L7,6.4 C7,6.8 6.8,7 6.5,7 L0.6,7 C0.3,7 0,6.8 0,6.5 L0,0.6 C0,0.3 0.3,0 0.6,0 L6.5,0 Z M6,2.8 C6.3,2.5 6.3,2.1 6.1,1.8 C5.9,1.5 5.4,1.6 5.1,1.9 L3.1,3.9 L2.4,3.2 C2.1,2.9 1.7,2.9 1.4,3.1 C1.2,3.3 1.2,3.8 1.5,4.1 L2.7,5.3 C3,5.6 3.4,5.6 3.7,5.3 L3.8,5.3 L6,2.8 Z M6.5,9 C6.8,9 7,9.3 7,9.6 L7,15.4 C7,15.8 6.8,16 6.5,16 L0.6,16 C0.3,16 0,15.8 0,15.4 L0,9.6 C0,9.3 0.3,9 0.6,9 L6.5,9 Z M6,11.8 C6.3,11.5 6.3,11.1 6.1,10.8 C5.9,10.6 5.4,10.6 5.1,10.8 L3.1,12.8 L2.3,12 C2,11.7 1.6,11.7 1.3,12 C1.1,12.3 1.1,12.7 1.4,13 L2.6,14.2 C2.9,14.5 3.3,14.5 3.6,14.3 L3.7,14.2 L6,11.8 Z M15.4,0 C15.8,0 16,0.3 16,0.6 L16,6.4 C16,6.8 15.8,7 15.4,7 L9.6,7 C9.3,7 9,6.8 9,6.5 L9,0.6 C9,0.3 9.3,0 9.6,0 L15.4,0 Z M15,2.8 C15.3,2.5 15.3,2.1 15.1,1.8 C14.9,1.5 14.4,1.6 14.1,1.9 L12.1,3.9 L11.3,3.1 C11,2.8 10.6,2.8 10.3,3 C10,3.2 10.1,3.7 10.3,4 L11.5,5.2 C11.8,5.5 12.2,5.5 12.5,5.2 L15,2.8 Z"}}]}),$g=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Fg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,4 L4,12 L12,12 L12,4 L4,4 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]}),Bg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M4,3 L12,3 C12.5522847,3 13,3.44771525 13,4 L13,12 C13,12.5522847 12.5522847,13 12,13 L4,13 C3.44771525,13 3,12.5522847 3,12 L3,4 C3,3.44771525 3.44771525,3 4,3 Z"}}]});var Wg=({layout:e,model:t,translator:n,selectionState:r,isDirectQuery:o=!1,selections:i})=>{if(e.qListObject.qDimensionInfo.qIsOneAndOnlyOne)return[];const a="/qListObjectDef",l=()=>{i.isActive()||i.begin(a)};return[{key:"selectAll",type:"menu-icon-button",label:n.get("Selection.SelectAll"),getSvgIconShape:zg,enabled:()=>["qOption","qAlternative","qExcluded","qDeselected"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectAll(a)}},{key:"selectPossible",type:"menu-icon-button",label:n.get("Selection.SelectPossible"),getSvgIconShape:Fg,enabled:()=>["qOption"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectPossible(a)}},!o&&{key:"selectAlternative",type:"menu-icon-button",label:n.get("Selection.SelectAlternative"),getSvgIconShape:$g,enabled:()=>["qAlternative"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectAlternative(a)}},!o&&{key:"selectExcluded",type:"menu-icon-button",label:n.get("Selection.SelectExcluded"),getSvgIconShape:Bg,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};const Hg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M2,6.5 L3,6.5 C3.55228475,6.5 4,6.94771525 4,7.5 L4,8.5 C4,9.05228475 3.55228475,9.5 3,9.5 L2,9.5 C1.44771525,9.5 1,9.05228475 1,8.5 L1,7.5 C1,6.94771525 1.44771525,6.5 2,6.5 Z M7.5,6.5 L8.5,6.5 C9.05228475,6.5 9.5,6.94771525 9.5,7.5 L9.5,8.5 C9.5,9.05228475 9.05228475,9.5 8.5,9.5 L7.5,9.5 C6.94771525,9.5 6.5,9.05228475 6.5,8.5 L6.5,7.5 C6.5,6.94771525 6.94771525,6.5 7.5,6.5 Z M13,6.5 L14,6.5 C14.5522847,6.5 15,6.94771525 15,7.5 L15,8.5 C15,9.05228475 14.5522847,9.5 14,9.5 L13,9.5 C12.4477153,9.5 12,9.05228475 12,8.5 L12,7.5 C12,6.94771525 12.4477153,6.5 13,6.5 Z"}}]});function Ug(e){const t=Il(),n="function"==typeof e.enabled?!e.enabled():!!e.disabled,r="function"==typeof e.getSvgIconShape;return{hidden:!0===e.hidden,disabled:n,style:{backgroundColor:e.active?t.palette.btn.active:void 0},hasSvgIconShape:r}}const Vg={className:"njs-cell-action"},Gg=C.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=Il(),{hidden:o,disabled:i,style:a,hasSvgIconShape:l}=Ug(e);if(o)return null;const s=Number.parseInt(r.spacing(.5),10),c=e.keyboardAction||e.action,u=c?e=>["Enter"].includes(e.key)&&c():null,d=c?e=>[" ","Spacebar"].includes(e.key)&&c():null,p=`actions-toolbar-${e.key}`,f=e.ref||(t?null:n);return fr.jsxs(Wc,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[Vg.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[l&&Ah(e.getSvgIconShape()),t&&fr.jsx("div",{ref:n,style:{bottom:-s,right:0,position:"absolute",width:"100%",height:0}})]})}),Kg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M9.34535242,8 L13.3273238,11.9819714 C13.6988326,12.3534802 13.6988326,12.955815 13.3273238,13.3273238 C12.955815,13.6988326 12.3534802,13.6988326 11.9819714,13.3273238 L8,9.34535242 L4.01802863,13.3273238 C3.64651982,13.6988326 3.04418502,13.6988326 2.67267621,13.3273238 C2.3011674,12.955815 2.3011674,12.3534802 2.67267621,11.9819714 L6.65464758,8 L2.67267621,4.01802863 C2.3011674,3.64651982 2.3011674,3.04418502 2.67267621,2.67267621 C3.04418502,2.3011674 3.64651982,2.3011674 4.01802863,2.67267621 L8,6.65464758 L11.9819714,2.67267621 C12.3534802,2.3011674 12.955815,2.3011674 13.3273238,2.67267621 C13.6988326,3.04418502 13.6988326,3.64651982 13.3273238,4.01802863 L9.34535242,8 Z"}}]});var Xg=e=>Ah(Kg(e));const Jg=e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M9.1661442,6.1661442 C10.7210031,4.61128527 13.2789969,4.61128527 14.8338558,6.1661442 C16.3887147,7.72100313 16.3887147,10.2789969 14.8338558,11.8338558 C13.2789969,13.3887147 10.7210031,13.3887147 9.1661442,11.8338558 C7.61128527,10.2789969 7.61128527,7.77115987 9.1661442,6.1661442 Z M14.1316614,7.72100313 C14.3322884,7.52037618 14.3824451,7.169279 14.1316614,6.9184953 C13.8808777,6.6677116 13.5297806,6.71786834 13.3291536,6.9184953 L12.0250784,8.22257053 L10.7210031,6.9184953 C10.5203762,6.6677116 10.1191223,6.6677116 9.9184953,6.9184953 C9.6677116,7.11912226 9.6677116,7.52037618 9.9184953,7.72100313 L11.2225705,9.02507837 L9.9184953,10.3291536 C9.6677116,10.5297806 9.6677116,10.8808777 9.9184953,11.1316614 C10.169279,11.3824451 10.5203762,11.3824451 10.7210031,11.1316614 L12.0250784,9.82758621 L13.3291536,11.1316614 C13.5297806,11.3824451 13.8808777,11.3824451 14.1316614,11.1316614 C14.3322884,10.9310345 14.3824451,10.5297806 14.1316614,10.3291536 L12.8275862,9.02507837 L14.1316614,7.72100313 Z"}}]});var Zg=e=>Ah(Jg(e));const Qg="njs-action-toolbar-more",Yg={icon:"More-icon"},eb=Dl(jf)(({theme:e})=>({pointerEvents:"none",[`& .${Yg.icon} *`]:{color:e.palette.text.primary}}));function tb({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=Ug(e);return r?null:fr.jsxs(Xf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&fr.jsx(kf,{className:Yg.icon,children:Ah(e.getSvgIconShape())}),fr.jsx(Xc,{noWrap:!0,children:e.label})]})}const nb=C.forwardRef(({actions:e=[],show:t=!0,alignTo:n,popoverProps:r={},popoverPaperStyle:o={},onCloseOrActionClick:i=()=>{},disablePortal:a=!0},l)=>{const s=e.length>0,c=e.findIndex(e=>!e.disabled);return s&&fr.jsx(eb,u(u({},r),{},{onClose:i,ref:l,open:t,anchorEl:n.current,getContentAnchorEl:a?null:void 0,container:a?n.current:void 0,disablePortal:a,hideBackdrop:!0,transitionDuration:0,slotProps:{root:{className:Qg},paper:{style:u({pointerEvents:"auto",maxWidth:"250px"},o)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:fr.jsx(Tf,{id:"moreMenuList",children:e.map((e,t)=>fr.jsx(tb,{item:e,autoFocus:t===c,onActionClick:i},t))})}))});function rb({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:l}=i,{keyCode:s}=l;switch(s){case Dm.ARROW_LEFT:case Dm.ARROW_DOWN:case Dm.ARROW_RIGHT:case Dm.ARROW_UP:if(a.classList.contains("njs-cell-action")){const e=(e=>{const t=e.closest("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");return Array.from(n).indexOf(e)})(a);let t=[Dm.ARROW_LEFT,Dm.ARROW_DOWN].includes(s);t=o?!t:t,(e=>{const t=document.querySelector("#actions-toolbar"),n=null==t?void 0:t.querySelectorAll(".njs-cell-action");if(!n.length)return;n[Math.min(Math.max(0,e),n.length-1)].focus()})(t?e-1:e+1)}i.stopPropagation(),i.preventDefault();break;case Dm.SPACE:i.preventDefault();break;case Dm.TAB:if(e&&null!=t&&t.refocusContent){(i.shiftKey&&n(!1)===i.target||!i.shiftKey&&n(!0)===i.target)&&(i.preventDefault(),i.stopPropagation(),t.refocusContent())}break;case Dm.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}const ob="ActionsToolbar",ib={item:`${ob}-item`,itemSpacing:`${ob}-itemSpacing`},ab=Dl(jf)(({theme:e})=>({[`& .${ib.itemSpacing}`]:{padding:e.spacing(0,.25)}})),lb="njs-action-toolbar-popover",sb=C.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?fr.jsx(Kp,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>fr.jsx(Kp,{className:`${ib.itemSpacing} ${ib.item}`,children:fr.jsx(Gg,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),cb={pointerEvents:"none"};function ub({show:e=!0,actions:t=[],maxItems:n=3,selections:r={show:!1,api:null,onConfirm:()=>{},onCancel:()=>{}},extraItems:o,more:i={enabled:!1,actions:[],alignTo:null,popoverProps:{},popoverPaperStyle:{},disablePortal:!0},popover:a={show:!1,anchorEl:null},focusHandler:l=null,actionsRefMock:s=null,isRtl:c,autoConfirm:d=!1,layout:p}){var f,h;const m=function({api:e,layout:t,onConfirm:n=()=>{},onCancel:r=()=>{},onKeyDeactivate:o=()=>{}}){const{translator:i}=k.useContext(vc);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:Jg},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:Kg},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:tm}]}(u(u({},r),{},{layout:p})),{translator:g,keyboardNavigation:b}=k.useContext(vc),[y,v]=k.useState(!1),S={vertical:12,horizontal:c?0:(null!==(f=null===(h=a.anchorEl)||void 0===h?void 0:h.clientWidth)&&void 0!==f?f:0)-7},x={vertical:"bottom",horizontal:c?-7:"right"},w=k.useRef(),C=k.useRef(),E=Il(),L=k.useMemo(()=>({margin:E.spacing(.5,0)})),R=e=>{const t=w.current||s;if(!t)return null;const n=t.querySelectorAll("button:not(.Mui-disabled)");return n[e?n.length-1:0]},P=k.useMemo(()=>rb({keyboardNavigation:b,focusHandler:l,getEnabledButton:R,selections:r,isRtl:c}),[b,l,R,r,c]);if(k.useEffect(()=>()=>{v(!1)},[a.show,e,r.show]),k.useEffect(()=>{if(!l)return;l.on("focus_toolbar_first",()=>{const e=R(!1);null==e||e.focus()}),l.on("focus_toolbar_last",()=>{const e=R(!0);null==e||e.focus()})},[]),d)return;let T=i.enabled,O=i.actions;const I=i.alignTo||C,M=t.filter(e=>!e.hidden);if(M.length>n){const e=M.splice(-(M.length-n)-1);T=!0,O=[...e,...i.actions]}if(!r.show&&0===M.length&&!T)return null;const D={key:"more",label:g.get("Menu.More"),getSvgIconShape:Hg,hidden:!1,active:y,enabled:()=>T,action:()=>v(!y)},_=M.length>0,N=O.length>0,q=_&&r.show||N&&r.show,j=fr.jsxs(Kp,{ref:w,onKeyDown:P,container:!0,gap:0,wrap:"nowrap",id:"actions-toolbar","data-testid":"actions-toolbar",sx:{flexDirection:c?"row-reverse":"row"},children:[(null==o?void 0:o.length)&&fr.jsx(sb,{className:"actions-toolbar-extra-actions",actions:o,isRtl:c}),_&&fr.jsx(sb,{actions:M}),N&&fr.jsx(sb,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,actions:[D],addAnchor:!0}),q&&fr.jsx(Kp,{className:ib.itemSpacing,style:L,children:fr.jsx(Bp,{orientation:"vertical"})}),r.show&&fr.jsx(sb,{className:"actions-toolbar-default-actions",actions:m,isRtl:c}),y&&fr.jsx(nb,{show:y,actions:O,alignTo:I,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)},disablePortal:i.disablePortal})]});return a.show?fr.jsx(ab,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:S,transformOrigin:x,hideBackdrop:!0,style:cb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:lb,style:{pointerEvents:"auto",padding:E.spacing(.5,.25)}}},children:j}):e&&j}var db=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8.588 11.415a6 6 0 1 1 2.828-2.829l4.101 4a1.5 1.5 0 0 1 .014 2.134l-.707.707a1.5 1.5 0 0 1-2.108.014l-4.128-4.026ZM11 6A5 5 0 1 0 1 6a5 5 0 0 0 10 0Zm-1.52 4.888 3.934 3.837a.5.5 0 0 0 .703-.005l.707-.707a.5.5 0 0 0-.005-.711l-3.926-3.829a6.034 6.034 0 0 1-1.413 1.415Z"}}]}))(e));const pb="/qListObjectDef",fb=e=>null==e?void 0:e.substring(0,64e3),hb=Dl(Gf,{shouldForwardProp:e=>!["styles","dense","isRtl"].includes(e)})(({styles:e,dense:t,isRtl:n})=>{let r={};return t&&(r={fontSize:12,"& input":{paddingTop:"5px",paddingBottom:"5px",color:e.search.color,textAlign:n?"right":"left"}}),u({display:"flex",border:"none",fontSize:14,borderRadius:0,backgroundColor:e.search.backgroundColor,backdropFilter:e.background.backgroundImage?e.search.backdropFilter:void 0,paddingLeft:0,paddingRight:0,flexDirection:n?"row-reverse":"row","& fieldset":{borderColor:`${e.search.borderColor}`,borderWidth:"1px 0 1px 0",borderRadius:0},"&.Mui-focused fieldset":{borderColor:`${e.search.highlightBorderColor} !important`},"& .MuiInputBase-root":u({},e.search),"& *":{color:e.search.color},"& input":{color:e.search.color,textAlign:n?"right":"left"}},r)}),mb=Dl(Wc)(()=>({border:0,padding:"8px",cursor:"pointer",lineHeight:"12px","&:hover":{backgroundColor:"transparent"},":focus-visible":{borderRadius:"4px",boxShadow:"inset 0 0 0 2px rgb(2, 117, 217)"}}));var gb=k.forwardRef(function({popoverOpen:e,selections:t,selectionState:n,model:r,keyboard:o,dense:i=!1,visible:a=!0,autoFocus:l=!0,beginSelectionOnFocus:s=!0,wildCardSearch:c=!1,searchEnabled:u,direction:d,hide:p,styles:f},h){const{translator:m}=k.useContext(vc),[g,b]=k.useState(""),[y,v]=k.useState(!1),S=k.useRef(),x=k.useRef(),w=m.get("Listbox.Clear.Search"),{getStoreValue:C,setStoreValue:E}=kg(r),L="rtl"===d,R=async()=>{try{await r.abortListObjectSearch(pb)}finally{b("")}};k.useEffect(()=>a?()=>R():()=>{},[a]),k.useEffect(()=>(t.on("deactivated",R),()=>{t.removeListener&&t.removeListener("deactivated",R)}),[]),k.useEffect(()=>{if(y&&S.current){const e=g.length-1;S.current.setSelectionRange(e,e),v(!1)}},[y,S.current]),k.useEffect(()=>{E("inputText",g)},[g]);const P=async()=>{let e;const o=fb(g),i=await r.searchListObjectFor(pb,o);return n.selectDisabled()?i:(i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(pb,!0),t.selectionsMade=!0,n.clearItemStates(!1),b("")),e)},T=()=>{var e;null===(e=S.current)||void 0===e||e.focus()},O=()=>{R(),T()};return k.useImperativeHandle(h,()=>({focus(){T()}})),a&&!1!==u?fr.jsxs(fr.Fragment,{children:[fr.jsx(hb,{styles:f,dense:i,isRtl:L,startAdornment:fr.jsx(lf,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:fr.jsx(db,{size:i?"small":"normal"})}),endAdornment:fr.jsx(lf,{position:"end",sx:{marginLeft:0},children:""!==g&&fr.jsx(mb,{tabIndex:0,ref:x,title:w,"aria-label":w,onClick:O,onKeyDown:e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.key){case"Enter":O();break;case"Tab":e.shiftKey?T():zm(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:fr.jsx(Xg,{size:i?"small":"normal"})})}),className:"search",inputRef:S,size:"small",fullWidth:!0,placeholder:m.get("Listbox.Search"),value:g,onFocus:()=>{c&&(b("**"),v(!0)),s&&!n.selectDisabled()&&!t.isModal()&&t.begin("/qListObjectDef")},onChange:async e=>{const t=fb(e.target.value);return b(t),t.length?r.searchListObjectFor(pb,t):R()},onKeyDown:async n=>{const{currentTarget:r}=n,i=r.closest(".listbox-container");switch(n.key){case"Enter":P();break;case"Escape":if(zm(i),t.cancel(),e)return;break;case"Tab":n.shiftKey?$m(i)||o.focusSelection():x.current?x.current.focus():zm(i);break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;p&&(p(),zm(i));break;default:return}n.preventDefault(),n.stopPropagation()},autoFocus:l,inputProps:{tabIndex:o.innerTabStops?0:-1,"data-testid":"search-input-field","aria-label":m.get("Listbox.Search"),"aria-describedby":"listbox-search-instructions"}}),fr.jsx("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:m.get("Listbox.Search.ScreenReaderInstructions")})]}):null});function bb(e){if(!e.session)return[];const{selectionStore:t}=k.useContext(vc),[n]=t.useAppSelectionsStore(),r=e?e.id:null;let o=n.get(r);return k.useEffect(()=>{e&&!o&&(o=function({app:e,selectionStore:t}){const n=`${e.id}`,{modalObjectStore:r,appModalStore:o}=t,i=async(e=!0)=>{const{model:t,objectSelections:o}=r.get(n)||{};t&&(await t.endSelections(e),r.clear(n),o.emit("deactivated"))},a={begin:async({model:t,paths:o,accept:a=!0,objectSelections:l})=>{var s;if(l===(null===(s=r.get(n))||void 0===s?void 0:s.objectSelections))return;i(a),r.set(n,{model:t,objectSelections:l});const c=Array.isArray(o)?o:[o],u=async o=>{try{await t.beginSelections(c),r.set(n,{model:t,objectSelections:l})}catch(t){6003!==t.code||o?r.clear(n):(await e.abortModal(a),u(!0))}};await u()},end:i};o.set(n,a);const l={model:e,isInModal:()=>!!r.get(n),isModal(e){var t;return e?(null===(t=r.get(n))||void 0===t?void 0:t.objectSelections)===e:!!r.get(n)},forward:()=>a.end().then(()=>e.forward()),back:()=>a.end().then(()=>e.back()),clear:()=>a.end().then(()=>e.clearAll()),clearField:(t,n="$")=>a.end().then(()=>e.getField(t,n).then(e=>e.clear()))};return l}({app:e,selectionStore:t}),n.set(r,o),n.dispatch(!0))},[e]),[o]}function yb(e){return Object.keys(M.prototype).forEach(t=>{e[t]=M.prototype[t]}),M.init(e),e}const vb=({appSelections:e,appModal:t,model:n})=>{let r,o=!1,i=!1;const a={id:n.id,setLayout(e){r=e},begin(e){const r=(()=>{let e=!1;return{isPrevented:()=>e,preventDefault:()=>{e=!0}}})();return this.emit("activate",r),r.isPrevented()?Promise.resolve():(o=!0,this.emit("activated"),t.begin({model:n,paths:e,accept:!0,objectSelections:a}))},clear(){return i=!1,this.emit("cleared"),r.qListObject?n.clearSelections("/qListObjectDef"):n.resetMadeSelections()},confirm(){return i=!1,o=!1,this.emit("confirmed"),this.emit("deactivated"),t.end(!0)},cancel(){return i=!1,o=!1,this.emit("canceled"),this.emit("deactivated"),t.end(!1)},async select(t){const r=this.begin([t.params[0]]);if(!e.isModal())return!1;await r;const o=await n[t.method](...t.params);return i="resetMadeSelections"!==t.method,!!o||(n.resetMadeSelections(),!1)},canClear:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked&&!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne:i,canConfirm:()=>r&&r.qListObject&&r.qListObject.qDimensionInfo?!r.qListObject.qDimensionInfo.qLocked:i,canCancel:()=>!(r&&r.qListObject&&r.qListObject.qDimensionInfo)||!r.qListObject.qDimensionInfo.qLocked,isActive:()=>o,isModal:()=>e.isModal(a),goModal:e=>t.begin({model:n,paths:e,accept:!1,objectSelections:a}),noModal:(e=!1)=>t.end(e)};return yb(a),a},Sb=({elements:e,objectSelections:t,options:n={}})=>{const r=function({elements:e,handleClickOutside:t}){return n=>{if(!document.contains(n.target))return;const r=e.map(e=>"string"==typeof e?document.querySelector(e):null==e?void 0:e.current).filter(e=>!!e&&!!document.contains(e));r.length&&!r.some(e=>e.contains(n.target))&&t(n)}}({elements:e,handleClickOutside:()=>t.confirm.call(t)});return{activateClickOut(){var e;document.addEventListener("mousedown",r),null==n||null===(e=n.onSelectionActivated)||void 0===e||e.call(n)},deactivateClickOut(){var e;document.removeEventListener("mousedown",r),null==n||null===(e=n.onSelectionDeactivated)||void 0===e||e.call(n)}}};function xb(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=bb(e),[a]=Eh(t),{appModalStore:l}=k.useContext(vc).selectionStore,s=l.get(e.id),[c,u]=k.useState();return k.useEffect(()=>{i&&t&&!c&&u(vb({appSelections:i,appModal:s,model:t}))},[i,t]),k.useEffect(()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=Sb({elements:o,objectSelections:c,options:r});return c.addListener("activated",e),c.addListener("deactivated",t),()=>{c.isActive()&&c.confirm(),c.removeListener("activated",e),c.removeListener("deactivated",t)}},[c]),k.useEffect(()=>{c&&c.setLayout(a)},[c,a]),[c]}function wb(e={}){const t=u(u({itemStates:{},ignoreSelectionState:!1,selectedInEngine:[],enginePages:[],setPages:void 0,lastRowCount:void 0,lastApprMaxGlyphCount:void 0,selectDisabled:void 0},e),{},{update({setPages:e,pages:n,isSingleSelect:r,selectDisabled:o,layout:i}){var a,l;this.setPages=e;const s=this.lastRowCount===i.qListObject.qSize.qcy,c=this.lastApprMaxGlyphCount===i.qListObject.qDimensionInfo.qApprMaxGlyphCount;s&&c||(this.lastRowCount=i.qListObject.qSize.qcy,this.lastApprMaxGlyphCount=i.qListObject.qDimensionInfo.qApprMaxGlyphCount,this.clearItemStates(!1)),t.enginePages!==n&&void 0!==n&&(t.enginePages=null!=n?n:[],t.selectedInEngine=Kh(n),t.selectableValuesUpdating=!1,t.triggerStateChanged()),t.isSingleSelect=r,t.selectDisabled=o||t.selectDisabled,t.isDimCalculated=null!==(a=null==i||null===(l=i.qListObject)||void 0===l||null===(l=l.qDimensionInfo)||void 0===l?void 0:l.qIsCalculated)&&void 0!==a&&a},allowedToSelect:()=>!t.selectDisabled()&&!(t.isDimCalculated&&t.selectableValuesUpdating),setSelectableValuesUpdating(){t.selectableValuesUpdating=!0},useClientItemState:e=>t.ignoreSelectionState||e in t.itemStates,isSelected:e=>t.useClientItemState(e)?!!t.itemStates[e]:t.selectedInEngine.includes(e),getState(e){const{qElemNumber:n,qState:r}=e;return t.useClientItemState(n)?t.itemStates[n]?"XS"===r?"XS":"S":"S"===r||"XS"===r?"A":r:r},updateItemNoEvents(e,n,r){const o=t.isSelected(e);o&&!n?t.itemStates[e]=!1:o||(null==r||r.push(e),t.itemStates[e]=!0)},triggerStateChanged(){if(this.setPages){const e=t.applySelectionsOnPages(t.enginePages);this.setPages(e)}},applySelectionsOnPages(e){const n=e.map(e=>{const n=e.qMatrix.map(e=>{const[n]=e,r=t.getState(n);return[u(u({},n),{},{qState:r}),...e.slice(1)]});return u(u({},e),{},{qMatrix:n})});return n},updateItem(e,n,r){t.updateItemNoEvents(e,n,r),t.triggerStateChanged()},updateItems(e,n,r){e.forEach(e=>{t.updateItemNoEvents(e,n,r)}),t.triggerStateChanged()},clearItemStates(e){t.itemStates={},t.ignoreSelectionState=e}});return t}const kb=(e,t,n=void 0)=>{var r;return null!==(r=null==e?void 0:e[t])&&void 0!==r?r:n};function Cb(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return kb(t,"qSelected",0)+kb(t,"qSelectedExcluded",0)+kb(t,"qLocked",0)+kb(t,"qLockedExcluded",0)>0}function Eb(e){return null!==e&&"object"==typeof e&&"r"in e&&"number"==typeof e.r&&"g"in e&&"number"==typeof e.g&&"b"in e&&"number"==typeof e.b&&("number"==typeof e.a||void 0===e.a)}function Lb(e){if("object"==typeof e&&Eb(e))return(e.r<<16)+(e.g<<8)+e.b;let t=0,n=0,r=0;if("string"==typeof e){let o;(o=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(e))?(t=parseInt(o[1],10),n=parseInt(o[2],10),r=parseInt(o[3],10)):(o=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(e))?(t=parseInt(o[1],16),n=parseInt(o[2],16),r=parseInt(o[3],16)):(o=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(e))&&(t=parseInt(o[1]+o[1],16),n=parseInt(o[2]+o[2],16),r=parseInt(o[3]+o[3],16))}return(t<<16)+(n<<8)+r}const Rb={aliceblue:{r:240,g:248,b:255},antiquewhite:{r:250,g:235,b:215},aqua:{r:0,g:255,b:255},aquamarine:{r:127,g:255,b:212},azure:{r:240,g:255,b:255},beige:{r:245,g:245,b:220},bisque:{r:255,g:228,b:196},black:{r:0,g:0,b:0},blanchedalmond:{r:255,g:235,b:205},blue:{r:0,g:0,b:255},blueviolet:{r:138,g:43,b:226},brown:{r:165,g:42,b:42},burlywood:{r:222,g:184,b:135},cadetblue:{r:95,g:158,b:160},chartreuse:{r:127,g:255,b:0},chocolate:{r:210,g:105,b:30},coral:{r:255,g:127,b:80},cornflowerblue:{r:100,g:149,b:237},cornsilk:{r:255,g:248,b:220},crimson:{r:220,g:20,b:60},cyan:{r:0,g:255,b:255},darkblue:{r:0,g:0,b:139},darkcyan:{r:0,g:139,b:139},darkgoldenrod:{r:184,g:134,b:11},darkgray:{r:169,g:169,b:169},darkgreen:{r:0,g:100,b:0},darkgrey:{r:169,g:169,b:169},darkkhaki:{r:189,g:183,b:107},darkmagenta:{r:139,g:0,b:139},darkolivegreen:{r:85,g:107,b:47},darkorange:{r:255,g:140,b:0},darkorchid:{r:153,g:50,b:204},darkred:{r:139,g:0,b:0},darksalmon:{r:233,g:150,b:122},darkseagreen:{r:143,g:188,b:143},darkslateblue:{r:72,g:61,b:139},darkslategray:{r:47,g:79,b:79},darkslategrey:{r:47,g:79,b:79},darkturquoise:{r:0,g:206,b:209},darkviolet:{r:148,g:0,b:211},deeppink:{r:255,g:20,b:147},deepskyblue:{r:0,g:191,b:255},dimgray:{r:105,g:105,b:105},dimgrey:{r:105,g:105,b:105},dodgerblue:{r:30,g:144,b:255},firebrick:{r:178,g:34,b:34},floralwhite:{r:255,g:250,b:240},forestgreen:{r:34,g:139,b:34},fuchsia:{r:255,g:0,b:255},gainsboro:{r:220,g:220,b:220},ghostwhite:{r:248,g:248,b:255},gold:{r:255,g:215,b:0},goldenrod:{r:218,g:165,b:32},gray:{r:128,g:128,b:128},green:{r:0,g:128,b:0},greenyellow:{r:173,g:255,b:47},grey:{r:128,g:128,b:128},honeydew:{r:240,g:255,b:240},hotpink:{r:255,g:105,b:180},indianred:{r:205,g:92,b:92},indigo:{r:75,g:0,b:130},ivory:{r:255,g:255,b:240},khaki:{r:240,g:230,b:140},lavender:{r:230,g:230,b:250},lavenderblush:{r:255,g:240,b:245},lawngreen:{r:124,g:252,b:0},lemonchiffon:{r:255,g:250,b:205},lightblue:{r:173,g:216,b:230},lightcoral:{r:240,g:128,b:128},lightcyan:{r:224,g:255,b:255},lightgoldenrodyellow:{r:250,g:250,b:210},lightgray:{r:211,g:211,b:211},lightgreen:{r:144,g:238,b:144},lightgrey:{r:211,g:211,b:211},lightpink:{r:255,g:182,b:193},lightsalmon:{r:255,g:160,b:122},lightseagreen:{r:32,g:178,b:170},lightskyblue:{r:135,g:206,b:250},lightslategray:{r:119,g:136,b:153},lightslategrey:{r:119,g:136,b:153},lightsteelblue:{r:176,g:196,b:222},lightyellow:{r:255,g:255,b:224},lime:{r:0,g:255,b:0},limegreen:{r:50,g:205,b:50},linen:{r:250,g:240,b:230},magenta:{r:255,g:0,b:255},maroon:{r:128,g:0,b:0},mediumaquamarine:{r:102,g:205,b:170},mediumblue:{r:0,g:0,b:205},mediumorchid:{r:186,g:85,b:211},mediumpurple:{r:147,g:112,b:219},mediumseagreen:{r:60,g:179,b:113},mediumslateblue:{r:123,g:104,b:238},mediumspringgreen:{r:0,g:250,b:154},mediumturquoise:{r:72,g:209,b:204},mediumvioletred:{r:199,g:21,b:133},midnightblue:{r:25,g:25,b:112},mintcream:{r:245,g:255,b:250},mistyrose:{r:255,g:228,b:225},moccasin:{r:255,g:228,b:181},navajowhite:{r:255,g:222,b:173},navy:{r:0,g:0,b:128},oldlace:{r:253,g:245,b:230},olive:{r:128,g:128,b:0},olivedrab:{r:107,g:142,b:35},orange:{r:255,g:165,b:0},orangered:{r:255,g:69,b:0},orchid:{r:218,g:112,b:214},palegoldenrod:{r:238,g:232,b:170},palegreen:{r:152,g:251,b:152},paleturquoise:{r:175,g:238,b:238},palevioletred:{r:219,g:112,b:147},papayawhip:{r:255,g:239,b:213},peachpuff:{r:255,g:218,b:185},peru:{r:205,g:133,b:63},pink:{r:255,g:192,b:203},plum:{r:221,g:160,b:221},powderblue:{r:176,g:224,b:230},purple:{r:128,g:0,b:128},red:{r:255,g:0,b:0},rosybrown:{r:188,g:143,b:143},royalblue:{r:65,g:105,b:225},saddlebrown:{r:139,g:69,b:19},salmon:{r:250,g:128,b:114},sandybrown:{r:244,g:164,b:96},seagreen:{r:46,g:139,b:87},seashell:{r:255,g:245,b:238},sienna:{r:160,g:82,b:45},silver:{r:192,g:192,b:192},skyblue:{r:135,g:206,b:235},slateblue:{r:106,g:90,b:205},slategray:{r:112,g:128,b:144},slategrey:{r:112,g:128,b:144},snow:{r:255,g:250,b:250},springgreen:{r:0,g:255,b:127},steelblue:{r:70,g:130,b:180},tan:{r:210,g:180,b:140},teal:{r:0,g:128,b:128},thistle:{r:216,g:191,b:216},tomato:{r:255,g:99,b:71},transparent:{r:0,g:0,b:0,a:0},turquoise:{r:64,g:224,b:208},violet:{r:238,g:130,b:238},wheat:{r:245,g:222,b:179},white:{r:255,g:255,b:255},whitesmoke:{r:245,g:245,b:245},yellow:{r:255,g:255,b:0},yellowgreen:{r:154,g:205,b:50}},Pb="qcm-color";function Tb(...e){const t={type:Pb,r:0,g:0,b:0,a:1,invalid:!1,spaces:{}};let n=0,r=0,o=0,i=1;if(null!==(a=e[0])&&"object"==typeof a&&"type"in a&&a.type===Pb)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Eb(e[0]))({r:n,g:r,b:o}=e[0]),"a"in e[0]&&({a:i}=e[0]);else if(e.length<3)if("string"==typeof e[0]){const a=e[0];let l;if(l=/^rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10);else if(l=/^rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a))n=parseInt(l[1],10),r=parseInt(l[2],10),o=parseInt(l[3],10),i=parseFloat(l[4]);else if(l=/^ARGB\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*\)$/i.exec(a))i=parseInt(l[1],10)/255,n=parseInt(l[2],10),r=parseInt(l[3],10),o=parseInt(l[4],10);else if(l=/^#([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})([A-Fa-f0-9]{2})$/i.exec(a))n=parseInt(l[1],16),r=parseInt(l[2],16),o=parseInt(l[3],16),i=1;else if(l=/^#([A-Fa-f0-9])([A-Fa-f0-9])([A-Fa-f0-9])$/i.exec(a))n=parseInt(l[1]+l[1],16),r=parseInt(l[2]+l[2],16),o=parseInt(l[3]+l[3],16),i=1;else if(l=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else if(l=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d(\.\d+)?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);i=parseFloat(l[7]),e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a<=.5?2*a*t:(2-2*a)*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-.5*s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o)}else if(l=/^hsv\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i.exec(a)){let e=parseFloat(l[1]),t=parseFloat(l[3]),a=parseFloat(l[5]);e%=360,t/=100,a/=100,e=e<0?0:e>360?360:e,t=t<0?0:t>1?1:t,a=a<0?0:a>1?1:a;const s=a*t;let c=e/60;const u=s*(1-Math.abs(c%2-1));let d=[];switch(c=Math.floor(c),c){case 0:d=[s,u,0];break;case 1:d=[u,s,0];break;case 2:d=[0,s,u];break;case 3:d=[0,u,s];break;case 4:d=[u,0,s];break;case 5:d=[s,0,u];break;default:d=[0,0,0]}const p=a-s;n=d[0]+p,r=d[1]+p,o=d[2]+p,n=Math.round(255*n),r=Math.round(255*r),o=Math.round(255*o),i=1}else{const e=a.toLowerCase();if(function(e){return e in Rb}(e)){const t=Rb[e];({r:n,g:r,b:o}=t),i="a"in t?t.a:1}else t.invalid=!0}}else"number"==typeof e[0]&&e[0]>=0&&"argb"===e[1]?(i=(4278190080&e[0])>>>24,i/=255,n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):"number"==typeof e[0]&&e[0]>=0?(n=(16711680&e[0])>>16,r=(65280&e[0])>>8,o=255&e[0]):t.invalid=!0;else 3===e.length||4===e.length?(n=e[0],r=e[1],o=e[2],i=4===e.length?e[3]:1):t.invalid=!0;var a;return Number.isNaN(+n+r+o+i)&&(t.invalid=!0),t.r=Math.floor(n),t.g=Math.floor(r),t.b=Math.floor(o),t.a=i,t}function Ob(e){let t,n,r;if(Eb(e))return t=e.r.toString(16),n=e.g.toString(16),r=e.b.toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${[t,n,r].join("")}`;const o="string"==typeof e?Lb(e):e;return t=((16711680&o)>>16).toString(16),n=((65280&o)>>8).toString(16),r=(255&o).toString(16),1===t.length&&(t=`0${t}`),1===n.length&&(n=`0${n}`),1===r.length&&(r=`0${r}`),`#${t}${n}${r}`}function Ib(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,{a:s}=o,c=Math.max(i,a,l),u=Math.min(i,a,l),d=(c+u)/2;if(c===u)t=0,r=0;else{switch(n=c-u,t=d>.5?n/(2-c-u):n/(c+u),c){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r,s:100*t,l:100*d,a:s}}function Mb(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=s;if(s===c)t=0,r=0;else{switch(n=s-c,t=0===n?0:n/u,s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return{h:360*r%360,s:100*t,v:100*u}}function Db(e){if(Eb(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?Lb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function _b(e,t){return Eb(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:_b(Tb(e))}function Nb(e){return Eb(e)?1===e.a?Db(e):_b(e):Nb(Tb(e))}const qb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function jb(e){return.2126*qb(e.r)+.7152*qb(e.g)+.0722*qb(e.b)}function Ab(...e){const t=Tb(...e),n={type:t.type,r:t.r,g:t.g,b:t.b,a:t.a,invalid:t.invalid,spaces:t.spaces},r=()=>(n.spaces.hslaObject||(n.spaces.hslaObject=Ib(n)),n.spaces.hslaObject),o=e=>{const t=r(),{h:n,s:o,l:i,a:a}=t;return`hsla(${n}, ${o}, ${Math.max(0,Math.min(i+e,100))}, ${a})`};return{get type(){return n.type},isInvalid:()=>n.invalid,get r(){return n.r},get g(){return n.g},get b(){return n.b},get a(){return n.a},getR:()=>n.r,getG:()=>n.g,getB:()=>n.b,getAlpha:()=>n.a,setAlpha:e=>{n.a=e,n.spaces={}},isEqualTo:e=>{let t;if("string"==typeof e)t=Tb(e);else{if(e.type!==n.type)return!1;t=e}return t.r===n.r&&t.g===n.g&&t.b===n.b&&t.a===n.a},isDark:()=>function(...e){const t=Tb(...e);return t.invalid||jb(t)<.4}(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Db(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=_b(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Nb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Ob(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Tb(e):e,i=o.r/255,a=o.g/255,l=o.b/255,s=Math.max(i,a,l),c=Math.min(i,a,l),u=(s+c)/2;if(s===c)t=0,r=0;else{switch(n=s-c,t=u>.5?n/(2-s-c):n/(s+c),s){case i:r=(a-l)/n+(a<l?6:0);break;case a:r=(l-i)/n+2;break;case l:r=(i-a)/n+4}r/=6}return`hsl(${360*r}, ${100*t}, ${100*u})`}(n)),n.spaces.hsl),getHSLA:()=>(n.spaces.hsla||(n.spaces.hsla=function(e){const{h:t,s:n,l:r,a:o}=Ib(e);return`hsla(${t}, ${n}, ${r}, ${o})`}(n)),n.spaces.hsla),getHSLAObject:r,getShiftedHSLA:o,getHSV:()=>(n.spaces.hsv||(n.spaces.hsv=function(e){const{h:t,s:n,v:r}=Mb(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Mb(n)),n.spaces.hsvObject),blend:(e,t)=>`rgba(${Math.floor(n.r+(e.r-n.r)*t)}, ${Math.floor(n.g+(e.g-n.g)*t)}, ${Math.floor(n.b+(e.b-n.b)*t)}, ${Math.floor(n.a+(e.getAlpha()-n.a)*t)})`,getBrightenedColor:(e=1)=>Ab(o(18*e)),getDarkenedColor:(e=1)=>Ab(o(18*-e))}}function zb(e,t){if(!e||!t)return;const n=jb(e),r=jb(t);return n>r?(n+.05)/(r+.05):(r+.05)/(n+.05)}const $b="#FFFFFF";function Fb(e,t){const n=Ab($b),r=Ab(e),o=Ab(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=zb(n,r),a=zb(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?$b:"#000000"}function Bb(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wb,Hb,Ub,Vb="top",Gb="top-right",Kb="right",Xb="bottom-right",Jb="bottom",Zb="bottom-left",Qb="left",Yb="top-left";Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Wb={},"equal-equal",[Vb,Jb]),"equal-higher",[Jb,Xb]),"equal-lower",[Vb,Gb]),"equal-void",[Vb,Jb]),"higher-equal",[Qb,Zb,Vb,Gb]),"higher-higher-acute",[Jb,Zb,Qb,Gb]),"higher-higher-obtuse",[Jb,Vb]),"higher-lower-negative",[Vb,Gb,Kb]),"higher-lower-positive",[Jb,Zb,Qb]),"higher-void",[Vb]),Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Bb(Wb,"lower-equal",[Vb]),"lower-higher-negative",[Vb,Yb]),"lower-higher-positive",[Xb]),"lower-lower-acute",[Vb,Yb,Qb,Gb,Kb]),"lower-lower-obtuse",[Vb,Jb]),"lower-void",[Vb]),"void-equal",[Vb]),"void-higher",[Vb,Jb]),"void-lower",[Vb,Jb,Qb]),"void-void",[Vb]),Bb(Wb,"unclassified",[Vb,Jb,Kb,Qb,Gb,Xb,Zb,Yb]);var ey=function(){if(Ub)return Hb;Ub=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,o=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===t.call(e)},i=function(n){if(!n||"[object Object]"!==t.call(n))return!1;var r,o=e.call(n,"constructor"),i=n.constructor&&n.constructor.prototype&&e.call(n.constructor.prototype,"isPrototypeOf");if(n.constructor&&!o&&!i)return!1;for(r in n);return void 0===r||e.call(n,r)},a=function(e,t){n&&"__proto__"===t.name?n(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},l=function(t,n){if("__proto__"===n){if(!e.call(t,n))return;if(r)return r(t,n).value}return t[n]};return Hb=function e(){var t,n,r,s,c,u,d=arguments[0],p=1,f=arguments.length,h=!1;for("boolean"==typeof d&&(h=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<f;++p)if(null!=(t=arguments[p]))for(n in t)r=l(d,n),d!==(s=l(t,n))&&(h&&s&&(i(s)||(c=o(s)))?(c?(c=!1,u=r&&o(r)?r:[]):u=r&&i(r)?r:{},a(d,{name:n,newValue:e(h,u,s)})):void 0!==s&&a(d,{name:n,newValue:s}));return d},Hb}();function ty(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function ny(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function ry(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(ey);var oy=.7,iy=1/oy,ay="\\s*([+-]?\\d+)\\s*",ly="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",sy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",cy=/^#([0-9a-f]{3,8})$/,uy=new RegExp(`^rgb\\(${ay},${ay},${ay}\\)$`),dy=new RegExp(`^rgb\\(${sy},${sy},${sy}\\)$`),py=new RegExp(`^rgba\\(${ay},${ay},${ay},${ly}\\)$`),fy=new RegExp(`^rgba\\(${sy},${sy},${sy},${ly}\\)$`),hy=new RegExp(`^hsl\\(${ly},${sy},${sy}\\)$`),my=new RegExp(`^hsla\\(${ly},${sy},${sy},${ly}\\)$`),gy={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 by(){return this.rgb().formatHex()}function yy(){return this.rgb().formatRgb()}function vy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=cy.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Sy(t):3===n?new Cy(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?xy(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?xy(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=uy.exec(e))?new Cy(t[1],t[2],t[3],1):(t=dy.exec(e))?new Cy(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=py.exec(e))?xy(t[1],t[2],t[3],t[4]):(t=fy.exec(e))?xy(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=hy.exec(e))?Oy(t[1],t[2]/100,t[3]/100,1):(t=my.exec(e))?Oy(t[1],t[2]/100,t[3]/100,t[4]):gy.hasOwnProperty(e)?Sy(gy[e]):"transparent"===e?new Cy(NaN,NaN,NaN,0):null}function Sy(e){return new Cy(e>>16&255,e>>8&255,255&e,1)}function xy(e,t,n,r){return r<=0&&(e=t=n=NaN),new Cy(e,t,n,r)}function wy(e){return e instanceof ry||(e=vy(e)),e?new Cy((e=e.rgb()).r,e.g,e.b,e.opacity):new Cy}function ky(e,t,n,r){return 1===arguments.length?wy(e):new Cy(e,t,n,null==r?1:r)}function Cy(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function Ey(){return`#${Ty(this.r)}${Ty(this.g)}${Ty(this.b)}`}function Ly(){const e=Ry(this.opacity);return`${1===e?"rgb(":"rgba("}${Py(this.r)}, ${Py(this.g)}, ${Py(this.b)}${1===e?")":`, ${e})`}`}function Ry(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Py(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Ty(e){return((e=Py(e))<16?"0":"")+e.toString(16)}function Oy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new My(e,t,n,r)}function Iy(e){if(e instanceof My)return new My(e.h,e.s,e.l,e.opacity);if(e instanceof ry||(e=vy(e)),!e)return new My;if(e instanceof My)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 My(a,l,s,e.opacity)}function My(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Dy(e){return(e=(e||0)%360)<0?e+360:e}function _y(e){return Math.max(0,Math.min(1,e||0))}function Ny(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}ty(ry,vy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:by,formatHex:by,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Iy(this).formatHsl()},formatRgb:yy,toString:yy}),ty(Cy,ky,ny(ry,{brighter(e){return e=null==e?iy:Math.pow(iy,e),new Cy(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?oy:Math.pow(oy,e),new Cy(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Cy(Py(this.r),Py(this.g),Py(this.b),Ry(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:Ey,formatHex:Ey,formatHex8:function(){return`#${Ty(this.r)}${Ty(this.g)}${Ty(this.b)}${Ty(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:Ly,toString:Ly})),ty(My,function(e,t,n,r){return 1===arguments.length?Iy(e):new My(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return e=null==e?iy:Math.pow(iy,e),new My(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?oy:Math.pow(oy,e),new My(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 Cy(Ny(e>=240?e-240:e+120,o,r),Ny(e,o,r),Ny(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new My(Dy(this.h),_y(this.s),_y(this.l),Ry(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=Ry(this.opacity);return`${1===e?"hsl(":"hsla("}${Dy(this.h)}, ${100*_y(this.s)}%, ${100*_y(this.l)}%${1===e?")":`, ${e})`}`}}));const qy=Math.PI/180,jy=180/Math.PI,Ay=.96422,zy=.82521,$y=4/29,Fy=6/29,By=3*Fy*Fy,Wy=Fy*Fy*Fy;function Hy(e){if(e instanceof Uy)return new Uy(e.l,e.a,e.b,e.opacity);if(e instanceof Jy)return Zy(e);e instanceof Cy||(e=wy(e));var t,n,r=Xy(e.r),o=Xy(e.g),i=Xy(e.b),a=Vy((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=Vy((.4360747*r+.3850649*o+.1430804*i)/Ay),n=Vy((.0139322*r+.0971045*o+.7141733*i)/zy)),new Uy(116*a-16,500*(t-a),200*(a-n),e.opacity)}function Uy(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function Vy(e){return e>Wy?Math.pow(e,1/3):e/By+$y}function Gy(e){return e>Fy?e*e*e:By*(e-$y)}function Ky(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function Xy(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function Jy(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function Zy(e){if(isNaN(e.h))return new Uy(e.l,0,0,e.opacity);var t=e.h*qy;return new Uy(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}ty(Uy,function(e,t,n,r){return 1===arguments.length?Hy(e):new Uy(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return new Uy(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new Uy(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 Cy(Ky(3.1338561*(t=Ay*Gy(t))-1.6168667*(e=1*Gy(e))-.4906146*(n=zy*Gy(n))),Ky(-.9787684*t+1.9161415*e+.033454*n),Ky(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),ty(Jy,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof Jy)return new Jy(e.h,e.c,e.l,e.opacity);if(e instanceof Uy||(e=Hy(e)),0===e.a&&0===e.b)return new Jy(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*jy;return new Jy(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new Jy(e,t,n,null==r?1:r)},ny(ry,{brighter(e){return new Jy(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new Jy(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return Zy(this).rgb()}}));var Qy=e=>()=>e;function Yy(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):Qy(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?Yy: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):Qy(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=ky(e)).r,(t=ky(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=Yy(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 ev,tv="center",nv="bottom";function rv(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 ov(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=av)):void 0===t&&(t=iv);for(var n,r,o,i,a,l=new cv(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 cv(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(sv)}function iv(e){return e.children}function av(e){return Array.isArray(e)?e[1]:null}function lv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function sv(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function cv(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:tv,condition:function(e){var t=e.layoutService;if(!t)return!1;var n=t.meta.size;return n.x*n.y===0}},{key:"OnlyNanDataMeasure",translationKey:"OnlyNanData",alignment:tv,condition:function(e){var t=e.layoutService;return!!t&&t.getHyperCubeValue("qMeasureInfo").every(function(e){return"NaN"===e.qMin&&"NaN"===e.qMax})}},{key:"OnlyNanDataDimensionContinuous",translationKey:"OnlyNanData",alignment:tv,condition:function(e){var t=e.layoutService;if(!t)return!1;if(!t.meta.isContinuous)return!1;var n=t.getHyperCubeValue("qDimensionInfo.0");return n&&(n.qMax<n.qMin||"NaN"===n.qMax)}},{key:"OnlyNegativeOrZeroValues",alignment:tv},{key:"DataRangeIncludingZero",alignment:nv},{key:"LimitedData",alignment:nv},{key:"NegativeOrZeroValues",alignment:nv}].reduce(function(e,t){return e[t.key]=t,e},{}),cv.prototype=ov.prototype={constructor:cv,count:function(){return this.eachAfter(rv)},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 ov(this).eachBefore(lv)},[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)}},ev=function(e){
|
|
124
124
|
/*! javascript-number-formatter - v1.1.11 - http://mottie.github.com/javascript-number-formatter/ * © ecava */
|
|
125
125
|
e.exports=function(e,t){if(!e||isNaN(+t))return t;var n,r,o,i,a,l,s,c,u,d,p=e.length,f=e.search(/[0-9\-\+#]/),h=f>0?e.substring(0,f):"",m=e.split("").reverse().join(""),g=m.search(/[0-9\-\+#]/),b=p-g,y=e.substring(b,b+1),v=b+("."===y||","===y?1:0),S=g>0?e.substring(v,p):"";if(n=(t="-"===(e=e.substring(f,v)).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"),(!(c=t.split("."))[1]||c[1]&&c[1].length<=l)&&(t=(+t).toFixed(l+1)),u=e[0].split(i),e[0]=u.join(""),(a=e[0]&&e[0].indexOf("0"))>-1)for(;c[0].length<e[0].length-a;)c[0]="0"+c[0];else 0===+c[0]&&(c[0]="");if((t=t.split("."))[0]=c[0],s=u[1]&&u[u.length-1].length){for(m="",b=(d=t[0]).length%s,p=d.length,v=0;v<p;v++)m+=d.charAt(v),!((v-b+1)%s)&&v<p-s&&(m+=i);t[0]=m}return t[1]=e[1]&&t[1]?o+t[1]:"","0"!==(r=t.join(""))&&""!==r||(n=!1),h+(n?"-":"")+r+S}},ev({exports:{}});const uv=/,(?![^(]*\))/,dv=/\s(?![^(]*\))/,pv=/^[0-9]+[a-zA-Z%]+?$/,fv=["none","inset","initial","inherit"],hv=e=>{if(!e)return;const t=e.split(dv).filter(e=>!fv.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||pv.test(e))(t)||fv.includes(t.toLowerCase())?void 0:t;return n},mv=e=>e?e.split(uv).map(e=>e.trim()):[];function gv(e,t,n,r){return n&&r?n.getStyle(`object.${r}`,e,t):n?n.getStyle("",e,t):void 0}function bv(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:gv(t,n,r,o)}const yv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},vv={"top-left":"top left","top-center":"top center","top-right":"top right","center-left":"center left","center-center":"center center","center-right":"center right","bottom-left":"bottom left","bottom-center":"bottom center","bottom-right":"bottom right"};function Sv(e,t,n){if(t)return n?n+t:function(e){var t;let n,r,o,i;if(null!=e&&null!==(t=e.session)&&void 0!==t&&t.config){n=e.session.config,r=new URL(n.url),i="wss:"===r.protocol,o=i?"https://":"http://";const t="/"===r.pathname?"":r.pathname.replace(/\/app\/.*$/,"");return o+r.host+t}return""}(e)+t}function xv(e,t,n,r){const o=null==e?void 0:e.bgImage;if(o){let i="";if("media"===o.mode||"media"===e.useImage){let e;const a=null==o?void 0:o.mediaUrl,{qUrl:l}=(null==a?void 0:a.qStaticContentUrl)||{};i=l?decodeURIComponent(l):void 0,i=Sv(t,i,r),n&&(e=Object.entries(n).map(([e,t])=>`&${e}=${encodeURIComponent(t)}`).join("&"),i=`${i}?${e}`)}"expression"===o.mode&&(i=o.expressionUrl?decodeURIComponent(o.expressionUrl):void 0);const a=function(e){var t;let n="center center";return null!=e&&null!==(t=e.bgImage)&&void 0!==t&&t.position&&(n=vv[e.bgImage.position]),n}(e),l=function(e){var t;let n=yv.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=yv[r]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function wv(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):bv(null==r?void 0:r.color,"","backgroundColor",t,n)}function kv(e,t,n){var r,o;const i=gv("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&fv.includes(e.toLowerCase()))return e.toLowerCase();const r=mv(e);if(1!==r.length)return e;let o=n;if(!o){const n=mv(t);if(1!==n.length)return e;o=hv(n[0])}if(!o)return e;const i=hv(r[0]);return i?e.replace(i,o):`${e} ${o}`})((null==e||null===(r=e.shadow)||void 0===r?void 0:r.boxShadow)||i,i,bv(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Cv(e,t,n,r){var o;const i=(null==e||null===(o=e.title)||void 0===o?void 0:o[t])||{},a=function(e,t){return e&&Array.isArray(e)?e:"main"===t?["bold"]:[]}(i.fontStyle,t);return{fontFamily:i.fontFamily||n.getStyle(`object.${r}`,`title.${t}`,"fontFamily"),fontSize:i.fontSize||n.getStyle(`object.${r}`,`title.${t}`,"fontSize"),color:i.color&&"none"!==i.color.color?n.getColorPickerColor(i.color):n.getStyle(`object.${r}`,`title.${t}`,"color"),backgroundColor:i.backgroundColor||n.getStyle(`object.${r}`,`title.${t}`,"backgroundColor"),fontWeight:a.includes("bold")?"bold":"normal",fontStyle:a.includes("italic")?"italic":"normal",textDecoration:a.includes("underline")?"underline":"initial"}}const Ev={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},Lv=["theme","selections"];function Rv({app:e,themeApi:t,theme:n,queryParams:r,components:o=[],checkboxes:i=!1,hostConfig:a}){var l,s,c,d,p,f,h,m;const g=function(e=[]){const t={};return e.forEach(e=>{const n=null==e?void 0:e.key;Lv.includes(n)&&(t[n]=e)}),t}(o),b=(e,n)=>t.getStyle("object.listBox",e,n),y=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?t.getColorPickerColor(e):void 0,v=function({getColorPickerColor:e,theme:t,getListboxStyle:n,overrides:r,checkboxes:o}){var i,a,l,s,c;const d=null===(i=r.theme)||void 0===i||null===(i=i.content)||void 0===i?void 0:i.fontColor,p=e(d)||n("content","color")||(null===(a=t.palette)||void 0===a?void 0:a.text.primary),f=!o&&(null===(l=null===(s=r.theme)||void 0===s||null===(s=s.content)||void 0===s?void 0:s.useContrastColor)||void 0===l||l),h=(null===(c=r.selections)||void 0===c?void 0:c.colors)||{},m=r=>{var o,i;const a="selected"===r?"main":r,l=`${r}Contrast`,s=e(h[r])||n("",`dataColors.${r}`)||"possible"===r&&n("","backgroundColor")||(null===(o=t.palette)||void 0===o||null===(o=o.selected)||void 0===o?void 0:o[a])||Ev[r],c=f?Fb(s,p):p||(null===(i=t.palette)||void 0===i?void 0:i.selected[`${l}Text}`]);return{[r]:s,[l]:c}};return u(u(u(u(u({},m("selected")),m("alternative")),m("excluded")),m("selectedExcluded")),m("possible"))}({getColorPickerColor:y,theme:n,getListboxStyle:b,overrides:g,checkboxes:i}),S=g.theme||{},x=y(null===(l=S.header)||void 0===l?void 0:l.fontColor)||b("title.main","color"),w=function({themeApi:e,themeOverrides:t}){let n;const r=null==t?void 0:t.background;return r?(n=null!=r&&r.useExpression?wv({bgColor:r},e,"listBox"):e.getColorPickerColor(null==r?void 0:r.color),n):n}({themeApi:t,themeOverrides:S}),k=null!==(s=S.background)&&void 0!==s&&s.image?xv({bgImage:S.background.image},e,r,null==a?void 0:a.host):void 0,C=w||b("","backgroundColor")||n.palette.background.default,E=function(e,t){const n=Ab(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(C,b),L=function(e){return Fb("#fff",e("content","color"))}(b),R=(null===(c=S.header)||void 0===c?void 0:c.fontStyle)||{},P=(null===(d=S.content)||void 0===d?void 0:d.fontStyle)||{},T=(e,t,n)=>!0===e&&t||!1===e&&n||void 0;return{background:{backgroundColor:C,backgroundImage:null==k||!k.url||null!=k&&k.url.startsWith("url(")?void 0:`url('${k.url}')`,backgroundRepeat:"no-repeat",backgroundSize:null==k?void 0:k.size,backgroundPosition:null==k?void 0:k.pos},header:{color:x,fontSize:(null===(p=S.header)||void 0===p?void 0:p.fontSize)||b("title.main","fontSize"),fontFamily:(null===(f=S.header)||void 0===f?void 0:f.fontFamily)||b("title.main","fontFamily"),fontWeight:T(R.bold,"bold","normal")||b("title.main","fontWeight")||"bold",textDecoration:R.underline?"underline":"initial",fontStyle:T(R.italic,"italic","normal")||b("title.main","fontStyle")||"initial"},content:{backgroundColor:i?void 0:v.possible,color:v.possibleContrast||b("content","color"),fontSize:(null===(h=S.content)||void 0===h?void 0:h.fontSize)||b("content","fontSize"),fontFamily:(null===(m=S.content)||void 0===m?void 0:m.fontFamily)||b("content","fontFamily"),fontWeight:T(P.bold,"bold","normal")||b("content","fontWeight")||"normal",textDecoration:P.underline?"underline":"initial",fontStyle:T(P.italic,"italic","normal")||b("content","fontStyle")||"initial"},search:{color:L,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:E,backdropFilter:"blur(8px)"},selections:v}}function Pv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a}){return Rv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a})}function Tv({alignTo:e,anchorOrigin:t={vertical:"bottom",horizontal:"center"},transformOrigin:n={vertical:"top",horizontal:"center"},show:r,close:o,app:i,fieldName:a,stateName:l="$",autoFocus:s,components:c,checkboxes:u,selectDisabled:d=()=>!1,sortCriteria:p=[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}],direction:f="ltr"}){const h=Boolean(null==a?void 0:a.qLibraryId),m=r&&Boolean(e.current),[g,b]=k.useState(0),y=Il(),v=k.useRef(),[S]=Sh({qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:l,qShowAlternatives:!0,qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:p,qFieldDefs:h?void 0:[a]},qLibraryId:h?a.qLibraryId:void 0}},i,a,l),x=k.useCallback(()=>{S.lock("/qListObjectDef")},[S]),w=k.useCallback(()=>{S.unlock("/qListObjectDef")},[S]),{translator:C,themeApi:E,keyboardNavigation:L,hostConfig:R}=k.useContext(vc),P=k.useRef(),T=k.useRef(),[O]=xb(i,S,T),[I]=Eh(S),[M]=k.useState(()=>wb({selectDisabled:d})),D=qm({containerRef:T,enabled:L}),{checkboxes:_=u}=I||{},N=Pv({themeApi:E,theme:y,hostConfig:R,components:c,checkboxes:_});if(k.useEffect(()=>{O&&m&&(O.isModal(S)||O.goModal("/qListObjectDef"))},[O,m]),!(S&&I&&C&&N))return null;const q=!0===I.qListObject.qDimensionInfo.qLocked,j=(e,t)=>{const n="escapeKeyDown"!==t;O.noModal(n),o()},A=Wg({layout:I,model:S,translator:C,selectionState:M,selections:O}),z=Cb(I);return fr.jsx(jf,{className:"listbox-container",open:m,onClose:j,anchorEl:e.current,anchorOrigin:t,transformOrigin:n,slotProps:{paper:{style:{minWidth:"250px"}}},onKeyDown:e=>"Enter"===e.key?j():void 0,direction:f,children:fr.jsxs(Kp,{container:!0,direction:"column",gap:0,ref:T,children:[fr.jsxs(Kp,{container:!0,style:{direction:f,padding:y.spacing(1)},children:[fr.jsx(Kp,{children:q?fr.jsx(Wc,{onClick:w,disabled:!q,size:"large","aria-label":C.get("Listbox.Unlock"),title:C.get("Listbox.Unlock"),children:fr.jsx($h,{})}):fr.jsx(Wc,{onClick:x,disabled:!z,size:"large","aria-label":C.get("Listbox.Lock"),title:C.get("Listbox.Lock"),children:fr.jsx(Bh,{})})}),fr.jsx(Kp,{size:"grow"}),fr.jsx(Kp,{children:fr.jsx(ub,{layout:I,more:{enabled:!q,actions:A,alignTo:P,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"}},selections:{show:!0,api:O,onConfirm:j,onCancel:()=>j(0,"escapeKeyDown")}})})]}),fr.jsxs(Kp,{size:"grow",role:"region","aria-label":C.get("Listbox.ResultFilterLabel"),children:[fr.jsx("div",{ref:P}),fr.jsx(Kp,{children:fr.jsx(gb,{ref:v,popoverOpen:m,styles:N,visible:!0,model:S,listCount:g,selections:O,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:D.focusSelection},autoFocus:null==s||s,direction:f})}),fr.jsx(Ag,{model:S,app:i,layout:I,selections:O,selectionState:M,direction:f,onSetListCount:e=>b(e),onCtrlF:()=>{v.current.focus()},styles:N,keyboard:D})]})]})})}function Ov({displayName:e}){return fr.jsx(Xc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})}function Iv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:r=!1,moreAlignTo:o=null,onClose:i=()=>{}}){const{translator:a}=k.useContext(vc),l=o||k.useRef(),s=Il(),[c,u]=k.useState(!1);let d,p=null,f=null,h="";const m=!!e.isPinned,g=()=>{u(!1),i()};if(m)h=e.qName||e.qField,f=fr.jsx(Ov,{displayName:h});else{d=e.selections[n],void 0===d.qTotal&&(d.qTotal=0);const r=d.qStateCounts||{qSelected:0,qLocked:0,qExcluded:0,qLockedExcluded:0,qSelectedExcluded:0,qAlternative:0},i=(r.qSelected+r.qLocked)/d.qTotal,l=r.qAlternative/d.qTotal,c=(r.qExcluded+r.qLockedExcluded+r.qSelectedExcluded)/d.qTotal,u=r.qSelected+r.qSelectedExcluded+r.qLocked+r.qLockedExcluded,p=0===u&&0===d.qTotal;let h="";d.qTotal===u&&d.qTotal>1?h=a.get("CurrentSelections.All"):u>1&&d.qTotal?h=a.get("CurrentSelections.Of",[u,d.qTotal]):d.qSelectedFieldSelectionInfo&&(h=d.qSelectedFieldSelectionInfo.map(e=>e.qName).join(", ")),"$"!==e.states[n]&&(h=`${e.states[n]}: ${h}`);const m=[{color:s.palette.selected.main,ratio:i},{color:s.palette.selected.alternative,ratio:l},{color:s.palette.selected.excluded,ratio:c}];m.forEach((e,t)=>{e.offset=t?m[t-1].offset+m[t-1].ratio:0});let g=null,b=null,y=null;o||(g=fr.jsxs(Kp,{sx:{flex:1,minWidth:0,opacity:d.qLocked?"0.3":""},children:[fr.jsx(Xc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),fr.jsx(Xc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:h})]}),d.qLocked?b=fr.jsx(Kp,{children:fr.jsx(Wc,{size:"large",children:fr.jsx($h,{})})}):d.qOneAndOnlyOne||(b=fr.jsx(Kp,{children:fr.jsx(Wc,{title:a.get("Selection.Clear"),onClick:r=>{r.stopPropagation(),t.clearField(d.qField,e.states[n])},size:"large",children:fr.jsx(zh,{})})})),y=fr.jsx("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===p&&m.map(e=>fr.jsx("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),f=fr.jsxs(fr.Fragment,{children:[g,b,y]}))}return p=fr.jsxs(Kp,{container:!0,gap:1,ref:l,"data-testid":m?`pin-item-${h}`:`selection-item-${d.qField}`,sx:{backgroundColor:s.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px",height:"40px","&:hover":{backgroundColor:s.palette.action.hover}},onClick:!1===r&&(e=>{e.currentTarget.contains(e.target)&&u(!c)})||null,children:[f,c&&fr.jsx(Tv,{alignTo:l,show:c,close:g,app:t.model,fieldName:m?e.qField:d.qField,stateName:m?void 0:e.states[n]})]}),o?fr.jsx(Tv,{alignTo:l,show:!0,close:g,app:t.model,fieldName:m?e.qField:d.qField,stateName:m?void 0:e.states[n]}):p}var Mv=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8,9 L12.5,4.5 L14,6 L9.5,10.5 L8,12 L2,6 L3.5,4.5 L8,9 Z"}}]}))(e));const Dv={item:"MultiState-item"},_v=Dl(Kp)(({theme:e})=>({[`&.${Dv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function Nv({field:e,api:t,moreAlignTo:n=null,onClose:r=()=>{}}){const[o,i]=k.useState(!!n),[a,l]=k.useState(-1),[s,c]=k.useState(n?n.current:null),u=n||k.useRef(),{translator:d}=k.useContext(vc),p=d.get("Selection.ClearAllStates"),f=()=>{l(-1),r()};let h=null;n||(h=fr.jsxs(fr.Fragment,{children:[fr.jsx(Kp,{sx:{minWidth:0,flexGrow:1},children:fr.jsx(np,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:fr.jsx(Xc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),fr.jsx(Kp,{children:fr.jsx("div",{style:{width:"12px"}})}),fr.jsx(Kp,{children:fr.jsx(Wc,{size:"large",children:fr.jsx(Mv,{})})})]}));const m=fr.jsxs(df,{dense:!0,children:[fr.jsx(vf,{title:p,onClick:()=>{e.states.forEach(n=>t.clearField(e.name,n))},children:fr.jsx(dc,{variant:"contained",fullWidth:!0,children:p})}),e.states.map((n,r)=>fr.jsx(vf,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,r),children:fr.jsx(ip,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:fr.jsx(Iv,{field:e,api:t,stateIx:r,skipHandleShowListBoxPopover:!0})})},r))]}),g=fr.jsx(jf,{open:o,onClose:()=>{i(!1),r()},anchorEl:s,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:m}),b=n?g:fr.jsxs(_v,{container:!0,gap:0,className:Dv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))},children:[h,o&&g,a>-1&&fr.jsx(Tv,{alignTo:u,show:a>-1,close:f,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]})]});return n&&a>-1?fr.jsx(Tv,{alignTo:u,show:a>-1,close:f,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):b}const qv="More",jv={item:`${qv}-item`,badge:`${qv}-badge`},Av=Dl(Kp)(({theme:e})=>({[`&.${jv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${jv.badge}`]:{padding:e.spacing(0,1)}}));function zv({items:e=[],api:t}){const n=Il(),[r,o]=k.useState(!1),[i,a]=k.useState(-1),[l,s]=k.useState(null),c=k.useRef(),u=()=>{a(-1)};let d=null;return i>-1&&(d=e[i].states.length>1?fr.jsx(Nv,{field:e[i],api:t,moreAlignTo:c,onClose:u}):fr.jsx(Iv,{field:e[i],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:c,onClose:u})),fr.jsxs(Av,{container:!0,gap:0,className:jv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(s(e.currentTarget),c.current=e.currentTarget,o(!r))},children:[fr.jsx(Kp,{children:fr.jsx(ip,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText},children:fr.jsxs(Xc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),fr.jsx(Kp,{children:fr.jsx(Wc,{size:"large",children:fr.jsx(Mv,{})})}),r&&fr.jsx(jf,{open:r,onClose:()=>{o(!1)},anchorEl:l,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},PaperProps:{style:{minWidth:"200px",width:"200px",pointerEvents:"auto"}},children:fr.jsx(df,{dense:!0,children:e.map((e,n)=>fr.jsx(vf,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),o(!1),a(t)})(e,n),children:fr.jsx(ip,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?fr.jsx(Nv,{field:e,api:t}):fr.jsx(Iv,{field:e,api:t})})},n))})}),d]})}function $v({api:e,app:t}){const n=Il(),[r]=wh(t),[o]=Eh(r),[i]=(e=>{var t;const[n]=Oh(e,"FieldList",Ih),[r]=Ch(n,"getLayout"),o=(e=>{if(!e)return;const t=[];for(let n=0;n<e.length;++n){const r=e[n];if(t.push(r),r.qDerivedFieldData)for(let e=0;e<r.qDerivedFieldData.qDerivedFieldLists.length;++e){const n=r.qDerivedFieldData.qDerivedFieldLists[e];for(let e=0;e<n.qFieldDefs.length;++e){const o=n.qFieldDefs[e];t.push({qName:o.qName,qSrcTables:r.qSrcTables,qTags:o.qTags,isDerived:!0,sourceField:r.qName,derivedDefinitionName:n.qDerivedDefinitionName})}}}return t})(null==r||null===(t=r.qFieldList)||void 0===t?void 0:t.qItems);return[o]})(t),[a]=(e=>{var t;const[n]=Oh(e,"DimensionList",Mh),[r]=Ch(n,"getLayout");return[null==r||null===(t=r.qDimensionList)||void 0===t?void 0:t.qItems]})(t),[l]=Th(t),{modalObjectStore:s}=k.useContext(vc).selectionStore,[c,u]=Rh(),d=k.useMemo(()=>{const e=function(e){if(!e)return[];const t={};function n(e,n){e.qSelections.forEach(e=>{const r=e.qField;let o=t[r];var i;void 0===o&&(o={name:r,label:(null===(i=e.qDimensionReferences)||void 0===i||null===(i=i.find(e=>e.qLabel))||void 0===i?void 0:i.qLabel)||e.qReadableName||r,states:[],selections:[]},t[r]=o),o.states.push(n),o.selections.push(e)})}return e.qSelectionObject&&n(e.qSelectionObject,"$"),e.alternateStates&&e.alternateStates.forEach(e=>n(e.qSelectionObject,e.stateName)),Object.keys(t).map(e=>t[e]).filter(e=>!e.selections.some(e=>e.qIsHidden))}(o).sort(Nh);return qh(i,l,e,a)},[o,i,l,a]),p=(e=>{if(!e)return 0;const{width:t}=e,n=Math.floor(t)-72;return Math.floor(n/120)})(u),{items:f,more:h}=(({currentItems:e,containerRef:t,maxItems:n,isInListboxPopover:r})=>{var o;if(!t)return{items:[],more:[]};const i=[...e],a=null!==(o=t.items)&&void 0!==o?o:[];if(r()&&i.length+1===a.length){const e=a.filter(e=>!1===i.some(t=>e.name===t.name))[0];if(e&&!e.isPinned){const{qField:t}=e.selections[0];e.selections=[{qField:t}];const n=a.indexOf(e);i.splice(n,0,e)}}let l=[];return n<i.length&&(l=i.splice(0,i.length-n)),t.items=i,{items:i,more:l}})({currentItems:d,containerRef:c,maxItems:p,isInListboxPopover:()=>{const{model:e}=s.get(t.id)||{};return"njsListbox"===(null==e?void 0:e.genericType)}});return fr.jsxs(Kp,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[h.length>0&&fr.jsx(Kp,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:fr.jsx(zv,{items:h,api:e})}),f.map((t,r)=>{var o;return fr.jsx(Kp,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:t.states.length>1?fr.jsx(Nv,{field:t,api:e}):fr.jsx(Iv,{field:t,api:e})},`${t.states.join("::")}::${null!==(o=t.qField)&&void 0!==o?o:t.name}${r}`)})]})}var Fv=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M15,6.5 C15,6.22385763 15.2238576,6 15.5,6 C15.7761424,6 16,6.22385763 16,6.5 L16,9.5 C16,9.77614237 15.7761424,10 15.5,10 C15.2238576,10 15,9.77614237 15,9.5 L15,6.5 Z M16,2.5 C16,2.77614237 15.7761424,3 15.5,3 C15.2238576,3 15,2.77614237 15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 C13,0.223857625 13.2238576,-5.07265313e-17 13.5,0 L15,0 C15.5522847,1.01453063e-16 16,0.44771525 16,1 L16,2.5 Z M10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 C6,0.223857625 6.22385763,-5.07265313e-17 6.5,0 L9.5,0 C9.77614237,5.07265313e-17 10,0.223857625 10,0.5 Z M1,2.5 C1,2.77614237 0.776142375,3 0.5,3 C0.223857625,3 5.18696197e-13,2.77614237 5.18696197e-13,2.5 L5.18696197e-13,1 C5.18696197e-13,0.44771525 0.44771525,-1.01453063e-16 1,0 L2.5,0 C2.77614237,5.07265313e-17 3,0.223857625 3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 5.18696197e-13,15.5522847 5.18696197e-13,15 L5.18696197e-13,13.5 C5.18696197e-13,13.2238576 0.223857625,13 0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M4,7 C7.49095643,7 10,10.1337595 10,12.1872632 C10,12.1872632 8.16051135,9.86624054 4,10 L4,12 C4,12 2.66666667,10.8333333 -1.0658141e-14,8.5 C-2.59348099e-13,8.5 1.33333333,7.33333333 4,5 C4,5 4,5.66666667 4,7 Z"}}]}))(e));var Bv=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M6,15.5 L6,15.5 C6,15.2238576 6.22385763,15 6.5,15 L9.5,15 C9.77614237,15 10,15.2238576 10,15.5 L10,15.5 C10,15.7761424 9.77614237,16 9.5,16 L6.5,16 C6.22385763,16 6,15.7761424 6,15.5 Z M1,13.5 L1,14.5 C1,14.7761424 1.22385763,15 1.5,15 L2.5,15 C2.77614237,15 3,15.2238576 3,15.5 L3,15.5 C3,15.7761424 2.77614237,16 2.5,16 L1,16 C0.44771525,16 6.76353751e-17,15.5522847 0,15 L0,13.5 C-3.38176876e-17,13.2238576 0.223857625,13 0.5,13 L0.5,13 C0.776142375,13 1,13.2238576 1,13.5 Z M1,6.5 L1,9.5 C1,9.77614237 0.776142375,10 0.5,10 L0.5,10 C0.223857625,10 3.38176876e-17,9.77614237 0,9.5 L0,6.5 C-3.38176876e-17,6.22385763 0.223857625,6 0.5,6 L0.5,6 C0.776142375,6 1,6.22385763 1,6.5 Z M0,2.5 L0,1 C-6.76353751e-17,0.44771525 0.44771525,1.01453063e-16 1,0 L2.5,0 C2.77614237,-5.07265313e-17 3,0.223857625 3,0.5 L3,0.5 C3,0.776142375 2.77614237,1 2.5,1 L1.5,1 C1.22385763,1 1,1.22385763 1,1.5 L1,2.5 C1,2.77614237 0.776142375,3 0.5,3 L0.5,3 C0.223857625,3 3.38176876e-17,2.77614237 0,2.5 Z M6,0.5 L6,0.5 C6,0.223857625 6.22385763,5.07265313e-17 6.5,0 L9.5,0 C9.77614237,-5.07265313e-17 10,0.223857625 10,0.5 L10,0.5 C10,0.776142375 9.77614237,1 9.5,1 L6.5,1 C6.22385763,1 6,0.776142375 6,0.5 Z M15,2.5 L15,1.5 C15,1.22385763 14.7761424,1 14.5,1 L13.5,1 C13.2238576,1 13,0.776142375 13,0.5 L13,0.5 C13,0.223857625 13.2238576,5.07265313e-17 13.5,0 L15,0 C15.5522847,-1.01453063e-16 16,0.44771525 16,1 L16,2.5 C16,2.77614237 15.7761424,3 15.5,3 L15.5,3 C15.2238576,3 15,2.77614237 15,2.5 Z M15,13.5 C15,13.2238576 15.2238576,13 15.5,13 C15.7761424,13 16,13.2238576 16,13.5 L16,15 C16,15.5522847 15.5522847,16 15,16 L13.5,16 C13.2238576,16 13,15.7761424 13,15.5 C13,15.2238576 13.2238576,15 13.5,15 L14.5,15 C14.7761424,15 15,14.7761424 15,14.5 L15,13.5 Z M12,7 C12,5.66666667 12,5 12,5 C14.6666667,7.33333333 16,8.5 16,8.5 C13.3333333,10.8333333 12,12 12,12 L12,10 C7.83948865,9.86624054 6,12.1872632 6,12.1872632 C6,10.1337595 8.50904357,7 12,7 Z"}}]}))(e));function Wv(e){const[t]=wh(e),[n]=Eh(t),[r]=Lh(e),[o,i]=k.useState(null);return k.useEffect(()=>{r&&t&&n&&((e,t,n)=>{const r=[...n.qStateNames||[]].map(e=>({stateName:e,qSelectionObjectDef:{qStateName:e}})),o=(t&&t.alternateStates?t.alternateStates.map(e=>e.stateName):[]).join("::"),i=(n.qStateNames||[]).map(e=>e).join("::");o!==i&&e.applyPatches([{qOp:"replace",qPath:"/alternateStates",qValue:JSON.stringify(r)}],!0)})(t,n,r)},[r,t,n]),k.useEffect(()=>{if(!n)return;let e=!1,t=!1,r=!1;[n,...n.alternateStates||[]].forEach(n=>{e=e||n.qSelectionObject&&n.qSelectionObject.qBackCount>0,t=t||n.qSelectionObject&&n.qSelectionObject.qForwardCount>0,r=r||(n.qSelectionObject&&n.qSelectionObject.qSelections||[]).filter(e=>!0!==e.qLocked).length>0}),i({canGoBack:e,canGoForward:t,canClear:r})},[n]),[o,t,n]}function Hv({api:e,app:t}){const{translator:n}=k.useContext(vc),[r]=Wv(t);return fr.jsxs(Kp,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[fr.jsx(Kp,{children:fr.jsx(Wc,{style:{marginRight:"8px"},disabled:!r||!r.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:fr.jsx(Fv,{})})}),fr.jsx(Kp,{children:fr.jsx(Wc,{style:{marginRight:"8px"},disabled:!r||!r.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:fr.jsx(Bv,{})})}),fr.jsx(Kp,{children:fr.jsx(Wc,{disabled:!r||!r.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:fr.jsx(Zg,{})})})]})}const Uv=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function Vv([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function Gv(){return Uv.map(Vv).join("")}function Kv({app:e}){const t=Il(),[n]=bb(e);return n?fr.jsxs(Kp,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[fr.jsx(Kp,{style:{borderRight:`1px solid ${t.palette.divider}`},children:fr.jsx(Hv,{api:n,app:e})}),fr.jsx(Kp,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:fr.jsx($v,{api:n,app:e})})]}):null}let Xv;Xv="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let Jv=null,Zv=null;const Qv=Xv.clearTimeout,Yv=Xv.setTimeout,eS=Xv.cancelAnimationFrame||Xv.mozCancelAnimationFrame||Xv.webkitCancelAnimationFrame,tS=Xv.requestAnimationFrame||Xv.mozRequestAnimationFrame||Xv.webkitRequestAnimationFrame;function nS(e){let t,n,r,o,i,a,l;const s="undefined"!=typeof document&&document.attachEvent;if(!s){a=function(e){const t=e.__resizeTriggers__,n=t.firstElementChild,r=t.lastElementChild,o=n.firstElementChild;r.scrollLeft=r.scrollWidth,r.scrollTop=r.scrollHeight,o.style.width=n.offsetWidth+1+"px",o.style.height=n.offsetHeight+1+"px",n.scrollLeft=n.scrollWidth,n.scrollTop=n.scrollHeight},i=function(e){return e.offsetWidth!==e.__resizeLast__.width||e.offsetHeight!==e.__resizeLast__.height},l=function(e){if(e.target.className&&"function"==typeof e.target.className.indexOf&&e.target.className.indexOf("contract-trigger")<0&&e.target.className.indexOf("expand-trigger")<0)return;const t=this;a(this),this.__resizeRAF__&&Jv(this.__resizeRAF__),this.__resizeRAF__=Zv(function(){i(t)&&(t.__resizeLast__.width=t.offsetWidth,t.__resizeLast__.height=t.offsetHeight,t.__resizeListeners__.forEach(function(n){n.call(t,e)}))})};let e=!1,s="";r="animationstart";const c="Webkit Moz O ms".split(" ");let u="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),d="";{const t=document.createElement("fakeelement");if(void 0!==t.style.animationName&&(e=!0),!1===e)for(let n=0;n<c.length;n++)if(void 0!==t.style[c[n]+"AnimationName"]){d=c[n],s="-"+d.toLowerCase()+"-",r=u[n],e=!0;break}}n="resizeanim",t="@"+s+"keyframes "+n+" { from { opacity: 0; } to { opacity: 0; } } ",o=s+"animation: 1ms "+n+"; "}return{addResizeListener:function(i,c){if(s)i.attachEvent("onresize",c);else{if(!i.__resizeTriggers__){const s=i.ownerDocument,c=Xv.getComputedStyle(i);c&&"static"===c.position&&(i.style.position="relative"),function(n){if(!n.getElementById("detectElementResize")){const r=(t||"")+".resize-triggers { "+(o||"")+'visibility: hidden; opacity: 0; } .resize-triggers, .resize-triggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',i=n.head||n.getElementsByTagName("head")[0],a=n.createElement("style");a.id="detectElementResize",a.type="text/css",null!=e&&a.setAttribute("nonce",e),a.styleSheet?a.styleSheet.cssText=r:a.appendChild(n.createTextNode(r)),i.appendChild(a)}}(s),i.__resizeLast__={},i.__resizeListeners__=[],(i.__resizeTriggers__=s.createElement("div")).className="resize-triggers";const u=s.createElement("div");u.className="expand-trigger",u.appendChild(s.createElement("div"));const d=s.createElement("div");d.className="contract-trigger",i.__resizeTriggers__.appendChild(u),i.__resizeTriggers__.appendChild(d),i.appendChild(i.__resizeTriggers__),a(i),i.addEventListener("scroll",l,!0),r&&(i.__resizeTriggers__.__animationListener__=function(e){e.animationName===n&&a(i)},i.__resizeTriggers__.addEventListener(r,i.__resizeTriggers__.__animationListener__))}i.__resizeListeners__.push(c)}},removeResizeListener:function(e,t){if(s)e.detachEvent("onresize",t);else if(e.__resizeListeners__.splice(e.__resizeListeners__.indexOf(t),1),!e.__resizeListeners__.length){e.removeEventListener("scroll",l,!0),e.__resizeTriggers__.__animationListener__&&(e.__resizeTriggers__.removeEventListener(r,e.__resizeTriggers__.__animationListener__),e.__resizeTriggers__.__animationListener__=null);try{e.__resizeTriggers__=!e.removeChild(e.__resizeTriggers__)}catch(e){}}}}}null==eS||null==tS?(Jv=Qv,Zv=function(e){return Yv(e,20)}):(Jv=function([e,t]){eS(e),Qv(t)},Zv=function(e){const t=tS(function(){Qv(n),e()}),n=Yv(function(){eS(t),e()},20);return[t,n]});class rS extends k.Component{constructor(...e){super(...e),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:e,disableWidth:t,onResize:n}=this.props;if(this._parentNode){const r=window.getComputedStyle(this._parentNode)||{},o=parseFloat(r.paddingLeft||"0"),i=parseFloat(r.paddingRight||"0"),a=parseFloat(r.paddingTop||"0"),l=parseFloat(r.paddingBottom||"0"),s=this._parentNode.getBoundingClientRect(),c=s.height-a-l,u=s.width-o-i,d=this._parentNode.offsetHeight-a-l,p=this._parentNode.offsetWidth-o-i;(e||this.state.height===d&&this.state.scaledHeight===c)&&(t||this.state.width===p&&this.state.scaledWidth===u)||(this.setState({height:d,width:p,scaledHeight:c,scaledWidth:u}),"function"==typeof n&&n({height:d,scaledHeight:c,scaledWidth:u,width:p}))}},this._setRef=e=>{this._autoSizer=e}}componentDidMount(){const{nonce:e}=this.props,t=this._autoSizer?this._autoSizer.parentNode:null;if(null!=t&&t.ownerDocument&&t.ownerDocument.defaultView&&t instanceof t.ownerDocument.defaultView.HTMLElement){this._parentNode=t;const n=t.ownerDocument.defaultView.ResizeObserver;null!=n?(this._resizeObserver=new n(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(t)):(this._detectElementResize=nS(e),this._detectElementResize.addResizeListener(t,this._onResize)),this._onResize()}}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),null!==this._timeoutId&&clearTimeout(this._timeoutId),this._resizeObserver&&this._resizeObserver.disconnect())}render(){const{children:e,defaultHeight:t,defaultWidth:n,disableHeight:r=!1,disableWidth:o=!1,doNotBailOutOnEmptyChildren:i=!1,nonce:a,onResize:l,style:s={},tagName:c="div",...u}=this.props,{height:d,scaledHeight:p,scaledWidth:f,width:h}=this.state,m={overflow:"visible"},g={};let b=!1;return r||(0===d&&(b=!0),m.height=0,g.height=d,g.scaledHeight=p),o||(0===h&&(b=!0),m.width=0,g.width=h,g.scaledWidth=f),i&&(b=!1),k.createElement(c,{ref:this._setRef,style:{...m,...s},...u},!b&&e(g))}}function oS({keyboard:e,hovering:t,updateKeyScroll:n,currentScrollIndex:r,isModal:o,constraints:i,selections:a}){return{handleKeyDown:t=>{const{keyCode:n,shiftKey:r=!1}=t.nativeEvent,i=()=>{t.stopPropagation(),t.preventDefault()};if(!e.enabled)return;const l=t.currentTarget.closest(".listbox-container"),s=o();switch(n){case Dm.TAB:if(document.activeElement===l||!s&&!l.contains(document.activeElement))return;if(r){zm(l)||Am(l)||Fm(t,e)}else{if(!($m(l)||Am(l)||zm(l)))break}i();break;case Dm.ENTER:case Dm.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),i();break;case Dm.ESCAPE:Fm(t,e),a.isActive()&&a.cancel()}},handleOnMouseEnter:()=>{t.current=!0},handleOnMouseLeave:()=>{t.current&&(t.current=!1)},globalKeyDown:e=>{if(!t.current||(()=>{const e=(null==i?void 0:i.select)||(null==i?void 0:i.active),t=o();return e||t})())return;const{keyCode:a,ctrlKey:l=!1,shiftKey:s=!1}=e;switch(a){case Dm.ARROW_UP:n({up:1});break;case Dm.ARROW_DOWN:n({down:1});break;case Dm.PAGE_UP:n({up:r.stop-r.start});break;case Dm.PAGE_DOWN:n({down:r.stop-r.start});break;case Dm.HOME:n({scrollPosition:l&&s?"overflowStart":"start"});break;case Dm.END:n({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const iS=Dl("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function aS({text:e}){const{translator:t}=k.useContext(vc);return fr.jsx(iS,{children:t.get(e)})}const lS={fontSize:"12px"},sS=Dl(Fs)(({theme:e,isLoading:t})=>({position:"absolute",top:0,left:0,height:48,zIndex:2,background:e.palette.custom.disabledBackground,opacity:1,color:e.palette.custom.disabledContrastText,width:"100%",display:"flex",justifyContent:t?"center":"flex-start",paddingLeft:16,paddingRight:16,borderRadius:0,"& *, & p":{color:e.palette.custom.disabledContrastText},"& i":{padding:"7px"}})),cS=Dl(Kp,{shouldForwardProp:e=>!["styles","isRtl"].includes(e)})(({styles:e,isRtl:t})=>u(u({flexDirection:t?"row-reverse":"row",wrap:"nowrap",minHeight:32,alignContent:"center"},e.header),{},{"& *":{color:e.header.color}})),uS=Dl(Xc)(({styles:e})=>u(u({},e.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})),dS=C.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:r},o)=>{const i=e.get("SelectionToolbar.ClickToUnlock");return fr.jsxs(sS,{ref:o,title:i,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:r,children:[r?fr.jsx(ec,{size:16,variant:"indeterminate",color:"primary"}):fr.jsx($h,{disableRipple:!0,style:lS}),!r&&fr.jsx(Xc,{fontSize:"14px",children:i})]})});var pS=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M 6 2 h 10 V 1 H 6 Z m 5 5 h 5 V 6 h -5 Z m 5 5 h -5 v -1 h 5 Z M 5 10 h 1 v 2.663 a 3.5 3.5 0 1 0 -2.922 0.036 l -0.406 0.914 A 4.501 4.501 0 1 1 7.329 13 H 9 v 1 H 5 Z"}}]}))(e));var fS=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M7 4h9v1H7zm2 4h7v1H9zm2 4h5v1h-5zM1 4v3.526a3.5 3.5 0 0 0 3.5 3.5h2.31L5.22 9.402l.715-.7L8.7 11.527 5.935 14.35l-.714-.7 1.59-1.624H4.5a4.5 4.5 0 0 1-4.5-4.5V4z"}}]}))(e));var hS=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M1 8a7 7 0 1 1 10 6.326V11h-1v5h5v-1h-3.124A8 8 0 1 0 8 16v-1a7 7 0 0 1-7-7Z"}}]}))(e));const mS="H",gS="C";var bS=({dimInfo:e,app:t,selections:n,isPopover:r,active:o,keyboard:i})=>{switch(e.qGrouping){case mS:return{icon:fS,tooltip:"Listbox.DrillDown",onClick:void 0};case gS:{const a=t&&o,l=()=>{r||n.confirm(),t.getDimension(e.qLibraryId).then(e=>{e.stepCycle?e.stepCycle(1):console.log("engine api spec version doesn't have support for function stepCycle")}).catch(()=>null)};return{icon:a?hS:pS,tooltip:"Listbox.Cyclic",onClick:a?l:void 0,onKeyDown:a?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Dm.SPACE:case Dm.ENTER:l();break;case Dm.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():Am(t)||zm(t),n||Fm(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}};const yS=Dl(dc)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}));function vS({iconData:e,translator:t,iconStyle:n,disabled:r,keyboard:o}){if(!e)return;const{icon:i,tooltip:a,onClick:l,onKeyDown:s}=e,c=i,d=t.get(a);return l?fr.jsx(yS,{variant:"outlined",onClick:l,tabIndex:o.innerTabStops?0:-1,title:d,size:"large",disableRipple:!0,disabled:r,onKeyDown:s,className:"listbox-cyclic-button","data-testid":"listbox-cyclic-button",children:fr.jsx(c,{style:n})}):fr.jsx(c,{title:d,size:"large",style:u(u({},n),{},{padding:"7px"})})}let SS=0;function xS({layout:e,translator:t,styles:n,isRtl:r,showLock:o,showSearchIcon:i,constraints:a,onShowSearch:l,classes:s,containerRect:c,isPopover:d,showToolbar:p,toolbarMode:f="auto",containerRef:h,model:m,selectionState:g,isDirectQuery:b,selections:y,keyboard:v,autoConfirm:S,app:x,title:w,disablePortal:C}){var E,L,R;const P="detach"===f,T=!P&&!("attach"===f),[O,I]=k.useState(P),[M,D]=k.useState(null==e||null===(E=e.qListObject)||void 0===E||null===(E=E.qDimensionInfo)||void 0===E?void 0:E.qLocked),[_,N]=k.useState(!1);k.useEffect(()=>{var t;D(null==e||null===(t=e.qListObject)||void 0===t||null===(t=t.qDimensionInfo)||void 0===t?void 0:t.qLocked)},[null==e||null===(L=e.qListObject)||void 0===L||null===(L=L.qDimensionInfo)||void 0===L?void 0:L.qLocked]);const q=k.useRef(null),j=k.useRef(null),A=k.useRef(null),z=bS({dimInfo:null==e||null===(R=e.qListObject)||void 0===R?void 0:R.qDimensionInfo,app:x,selections:y,isPopover:d,active:!(null!=a&&a.active),keyboard:v}),$=o&&M,F=!o&&M,B=i||F||z,W=9-(B?7:0),H=r?9-(B?7:0):4,U=(i?28:0)+(F?28:0)+(z?28:0),V=function({isLocked:e,setLocked:t,settingLockedState:n,model:r,setSettingLockedState:o,unlockButtonRef:i,lockButtonRef:a}){return()=>{const l=new Date;if(l-SS<500)return Promise.resolve();if(n)return()=>{};o(!0),SS=l;const s=e?r.unlock:r.lock;return t(!e),s.call(r,"/qListObjectDef").catch(()=>{t(e)}).finally(()=>{setTimeout(()=>{var t;o(!1),e?setTimeout(()=>{var e;null===(e=a.current)||void 0===e||e.focus()},0):null===(t=i.current)||void 0===t||t.focus()},0)})}}({isLocked:M,setLocked:D,settingLockedState:_,setSettingLockedState:N,model:m,unlockButtonRef:j,lockButtonRef:A}),G=Wg({layout:e,model:m,translator:t,selectionState:g,isDirectQuery:b,selections:y}),K=M||!o?void 0:[{key:"lock",type:void 0,label:t.get("SelectionToolbar.ClickToLock"),getSvgIconShape:Fh,enabled:()=>!_&&!g.selectDisabled()&&Cb(e),action:V,ref:A}],X=null!=a&&a.active?fr.jsx(db,{title:t.get("Listbox.Search"),size:"large",style:u(u({},lS),{},{padding:"7px"})}):fr.jsx(Wc,{onClick:l,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:fr.jsx(db,{style:lS})});k.useEffect(()=>{if(!T)return;if(!q.current||!c)return;const e=function({containerRect:e,titleRef:t,iconsWidth:n,paddingLeft:r,paddingRight:o}){var i,a,l,s;const c=r+o,u=e.width<(null!==(i=null==t||null===(a=t.current)||void 0===a?void 0:a.clientWidth)&&void 0!==i?i:0)+n+c+2+128,d=(null==t||null===(l=t.current)||void 0===l?void 0:l.scrollWidth)>(null==t||null===(s=t.current)||void 0===s?void 0:s.offsetWidth);return!(!u&&!d)}({containerRect:c,titleRef:q,iconsWidth:U,paddingLeft:W,paddingRight:H});I(e)},[T,U,W,H,q.current,null==c?void 0:c.width,null==c?void 0:c.height]);const J=function({isDetached:e,showToolbar:t,containerRef:n,isLocked:r,listboxSelectionToolbarItems:o,extraItems:i,selections:a,keyboard:l,autoConfirm:s,disablePortal:c}){return{autoConfirm:s,isDetached:e,show:t&&!e,popover:{show:t&&e,anchorEl:n.current},extraItems:i,more:{enabled:!r,actions:o,popoverProps:{elevation:0},popoverPaperStyle:{boxShadow:"0 12px 8px -8px rgba(0, 0, 0, 0.2)",minWidth:"250px"},disablePortal:c},selections:{show:t,api:a,onConfirm:()=>{null==l||l.focus()},onCancel:()=>{null==l||l.focus()}}}}({isDetached:!d&&O,showToolbar:p,containerRef:h,isLocked:M,extraItems:K,listboxSelectionToolbarItems:G,selections:y,keyboard:v,autoConfirm:S,disablePortal:C}),Z=fr.jsx(ub,u({isRtl:r,layout:e},J));if(P)return Z;const Q=F?fr.jsx($h,{size:"large",style:u(u({},lS),{},{padding:"7px"})}):void 0;return fr.jsxs(cS,{item:!0,container:!0,styles:n,isRtl:r,marginY:1,paddingLeft:`${W}px`,paddingRight:`${H}px`,className:"header-container",children:[$&&fr.jsx(dS,{isLoading:_,translator:t,toggleLock:V,keyboard:v,ref:j}),B&&fr.jsxs(Kp,{container:!0,alignItems:"center",width:U,className:"header-action-container",children:[Q||i&&X,fr.jsx(vS,{iconData:z,iconStyle:lS,disabled:y.isActive()&&d,translator:t,keyboard:v})]}),fr.jsx(Kp,{size:"grow",sx:{minWidth:0},justifyContent:r?"flex-end":"flex-start",className:s.listBoxHeader,children:fr.jsx(uS,{variant:"h6",noWrap:!0,ref:q,title:null!=w?w:e.title,styles:n,children:null!=w?w:e.title})}),fr.jsx(Kp,{display:"flex",children:Z})]})}const wS=Dl("div")(({theme:e,width:t,height:n})=>({position:"absolute",pointerEvents:"none",zIndex:1,width:t,height:n,boxShadow:`inset 0 0 0 2px ${e.palette.custom.focusBorder}`}));function kS({width:e,height:t,disabled:n,childNode:r,containerNode:o}){const[i,a]=k.useState(!1),l=k.useCallback(()=>{const e=o&&o.contains(document.activeElement),t=r&&r.contains(document.activeElement);a(e&&!t)},[o,r]);k.useEffect(()=>{if(o)return o.addEventListener("focusin",l),o.addEventListener("focusout",l),l(),()=>{o.removeEventListener("focusin",l),o.removeEventListener("focusout",l)}},[l,o]);return!n&&i?fr.jsx(wS,{"aria-hidden":"true",width:e,height:t}):null}const CS="ListBoxInline",ES={listBoxHeader:`${CS}-listBoxHeader`,screenReaderOnly:`${CS}-screenReaderOnly`,listboxWrapper:`${CS}-listboxWrapper`},LS=Dl(Kp,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>u(u({},t.background),{},{[`& .${ES.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${ES.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${ES.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));const RS=C.memo(function({options:e,layout:t}){var n,r,o,i,a;const{app:l,direction:s,frequencyMode:c,checkboxes:d,search:p=!0,focusSearch:f=!1,rangeSelect:h=!0,model:m,selections:g,update:b,fetchStart:y,postProcessPages:v,calculatePagesHeight:S,showGray:x=!0,scrollState:w,renderedCallback:C,toolbar:E=!0,toolbarMode:L="auto",isPopover:R=!1,showLock:P=!1,components:T,selectDisabled:O=()=>!1,disablePortal:I=!0,flags:M}=e,D=Il(),{translator:_,keyboardNavigation:N,themeApi:q,queryParams:j,constraints:A,hostConfig:z}=k.useContext(vc),{checkboxes:$=d}=t||{},F=Pv({app:l,themeApi:q,theme:D,queryParams:j,components:T,checkboxes:$,hostConfig:z}),B=function({appLayout:e}){return!(null==e||!e.qIsDirectQueryMode)}({appLayout:null==l?void 0:l.layout}),W=k.useRef(),H=k.useRef(),[U,V,G]=Rh(),[K,X]=k.useState(!1),[J,Z]=k.useState(!1),Q=k.useRef(!1),[Y,ee]=k.useState({down:0,up:0,scrollPosition:""}),te=e=>ee(t=>u(u({},t),e)),[ne,re]=k.useState({start:0,stop:0}),[oe]=bb(l),[ie]=k.useState(()=>wb({selectDisabled:O})),ae=qm({containerRef:W,enabled:N}),le=k.useCallback(()=>(({app:e,appSelections:t})=>{var n,r;return null!==(n=null===(r=e.isInModalSelection)||void 0===r?void 0:r.call(e))&&void 0!==n?n:t.isInModal()})({app:l,appSelections:oe}),[l,oe]),se=null==t?void 0:t.qListObject.qDimensionInfo.qError,ce=se&&A.active?"Visualization.Invalid.Dimension":"Visualization.Incomplete",[,ue]=k.useState(!1),[de,pe]=k.useState(null),fe=k.useCallback(e=>{pe(e)},[]),{handleKeyDown:he,handleOnMouseEnter:me,handleOnMouseLeave:ge,globalKeyDown:be}=k.useMemo(()=>oS({keyboard:ae,hovering:Q,updateKeyScroll:te,currentScrollIndex:ne,constraints:A,isModal:le,selections:g}),[ae,Q,te,W,ne,l,oe,A,le]);k.useEffect(()=>(document.addEventListener("keydown",be),()=>{document.removeEventListener("keydown",be)}),[be]),k.useEffect(()=>{!0===p&&Z(!0);const e=()=>{X(!0)},t=()=>{X(!1),"toggle"===p&&Z(!1)};return R&&(g.isActive()||(g.on("activated",e),g.on("deactivated",t)),X(R)),E&&g&&(g.isModal()||(g.on("activated",e),g.on("deactivated",t)),X(R||g.isActive())),()=>{g&&g.removeListener&&(g.removeListener("activated",e),g.removeListener("deactivated",t))}},[E,g,R]);const{wildCardSearch:ye,searchEnabled:ve,autoConfirm:Se=!1,layoutOptions:xe={}}=null!=t?t:{},we=null==t||null===(n=t.qListObject)||void 0===n||null===(n=n.qDimensionInfo)||void 0===n?void 0:n.qLocked,ke=!1!==ve&&"toggle"===p&&!we,Ce=null==t||null===(r=t.qListObject)||void 0===r?void 0:r.qDimensionInfo,Ee=M.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT")?null!==(o=null==t?void 0:t.title)&&void 0!==o?o:null==Ce?void 0:Ce.qFallbackTitle:null==t?void 0:t.title,Le=(null==Ee?void 0:Ee.length)&&!1!==(null==t?void 0:t.showTitle),Re=["attach","detach","auto"].includes(L)?L:"auto",Pe=E||R,Te=function({toolbarMode:e,canShowTitle:t,isPopover:n}){return"auto"!==e?e:t||n?"attach":"detach"}({toolbarMode:Re,canShowTitle:Le,isPopover:R}),Oe=Pe&&"detach"===Te,Ie="rtl"===s;if(!(m&&t&&_&&F))return null;const Me=!0===p||"toggle"===p&&J&&!1!==ve,De=null!==(i=xe.dense)&&void 0!==i&&i,_e=()=>{var e;const t=!J;Z(t),t&&null!==(e=W.current)&&void 0!==e&&e.scrollIntoView&&W.current.scrollIntoView({block:"nearest",inline:"nearest",behavior:"instant"})},Ne=()=>{"toggle"===p?_e():H.current.focus()},qe=Me&&("toggle"===p||f),je=function({isGridMode:e,dense:t,height:n,layoutOrder:r}){let o;if(e){let i;i=vg({isGridMode:e,dense:t})>n?"0px":"2px",o="row"===r?`${i} 4px`:`${i} 6px ${i} 4px`}else o=void 0;return o}({isGridMode:"grid"===(null==xe?void 0:xe.dataLayout),dense:De,height:null===(a=W.current)||void 0===a?void 0:a.clientHeight,layoutOrder:xe.layoutOrder});se&&(null==C||C());const Ae=Pe&&!Oe?30:0,ze=fr.jsx(xS,{app:l,showSearchIcon:ke,onShowSearch:_e,isPopover:R,showToolbar:K,isDirectQuery:B,autoConfirm:Se,toolbarMode:Oe?"detach":Re,title:Ee,layout:t,translator:_,styles:F,isRtl:Ie,showLock:P,constraints:A,classes:ES,containerRect:V,containerRef:W,model:m,selectionState:ie,selections:g,keyboard:ae,disablePortal:I});return fr.jsxs(fr.Fragment,{children:[Oe&&ze,fr.jsxs(LS,{className:"listbox-container",container:!0,tabIndex:ae.enabled?-1:void 0,direction:"column",gap:0,containerPadding:je,styles:F,style:{height:"100%",width:"100%",flexFlow:"column nowrap"},onKeyDown:he,onMouseEnter:me,onMouseLeave:ge,ref:e=>{W.current=e,null==U||U(e)},"aria-label":ae.active?_.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>ue(!0),onBlur:()=>ue(!1),children:[fr.jsx(kS,{width:null==V?void 0:V.width,height:null==V?void 0:V.height,disabled:le()||R,childNode:de,containerNode:G}),Pe&&!Oe&&ze,fr.jsxs(Kp,{container:!0,direction:"column",height:"100%",minHeight:Ae,role:"region","aria-label":_.get("Listbox.ResultFilterLabel"),ref:fe,children:[fr.jsx(Kp,{children:fr.jsx(gb,{ref:H,selections:g,selectionState:ie,model:m,dense:De,keyboard:ae,visible:Me,search:p,autoFocus:qe,beginSelectionOnFocus:!R,wildCardSearch:ye,searchEnabled:ve,direction:s,hide:ke&&_e,styles:F})}),fr.jsx(Kp,{size:"grow",className:ES.listboxWrapper,children:se?fr.jsx(aS,{text:ce}):fr.jsx(rS,{children:({height:e,width:n})=>fr.jsx(Ag,{model:m,app:l,constraints:A,layout:t,selections:g,selectionState:ie,direction:s,frequencyMode:c,rangeSelect:h,checkboxes:$,height:e,width:n,update:b,fetchStart:y,postProcessPages:v,calculatePagesHeight:S,keyboard:ae,showGray:x,scrollState:w,keyScroll:{state:Y,reset:()=>ee({up:0,down:0,scrollPosition:""})},currentScrollIndex:{state:ne,set:re},renderedCallback:C,onCtrlF:Ne,isModal:le,styles:F})})})]})]})]})});function PS({options:e={}}){const{model:t}=e,[n]=Eh(t);return fr.jsx(RS,{options:e,layout:n})}function TS({app:e,qId:t,options:n={}}){const[r,o]=k.useState(),[i]=vh(),{sessionModel:a}=n,l=["dense","frequencyMode","checkboxes","histogram","title","stateName","listLayout"],s=Object.keys(n).filter(e=>l.includes(e));if(s.length)throw new Error(`Option "${s.join(", ")}" is not applicable for existing objects.`);return k.useEffect(()=>{let n=!1,r=()=>{};return async function(){const l=await Promise.resolve(a||async function(t){return i.get(t)||await e.getObject(t)}(t));if(!n){if(!i.get(l.id)){i.set(l.id,l);const e=()=>{i.clear(l.id)};l.once("closed",e),r=()=>{l.removeListener("closed",e)}}o(l)}}(),()=>{n=!0,r()}},[]),r}const OS={qInfo:{qType:"njsListbox"},qListObjectDef:{qStateName:"",qShowAlternatives:!0,frequencyEnabled:!1,qFrequencyMode:"N",qInitialDataFetch:[{qTop:0,qLeft:0,qWidth:0,qHeight:0}],qDef:{qSortCriterias:[{qSortByState:1,qSortByAscii:1,qSortByNumeric:1,qSortByLoadOrder:1}]}},histogram:!1,frequencyMax:void 0,checkboxes:!1,searchEnabled:!0,showTitle:!0,wildCardSearch:!1,autoConfirm:!1,layoutOptions:{dense:!1,dataLayout:"singleColumn",layoutOrder:"row",maxVisibleColumns:{auto:!0,maxColumns:3},maxVisibleRows:{auto:!0,maxRows:3}},title:""};function IS(e){let t;switch(!0){case["none","N","NX_FREQUENCY_NONE"].includes(e):t="N";break;case["value","V","NX_FREQUENCY_VALUE","default"].includes(e):t="V";break;case["percent","P","NX_FREQUENCY_PERCENT"].includes(e):t="P";break;case["relative","R","NX_FREQUENCY_RELATIVE"].includes(e):t="R";break;default:t="N"}return t}const MS=["__DO_NOT_USE__"],DS=(e={})=>{const{__DO_NOT_USE__:t={}}=e,n={update:void 0,fetchStart:void 0,showGray:!0,focusSearch:!1,sessionModel:void 0,selectionsApi:void 0,selectDisabled:void 0,postProcessPages:void 0,calculatePagesHeight:!1};return u(u(u({},d(e,MS)),n),t)},_S=k.forwardRef(({app:e,fieldIdentifier:t,qId:n,stateName:r,element:o,initialOptions:i,renderedCallback:a,flags:l},s)=>{const[c,d]=k.useState(i),{isExistingObject:p,hasExternalSelectionsApi:f}=function({qId:e,options:t}){return{isExistingObject:!(!e&&!t.sessionModel),hasExternalSelectionsApi:!!t.selectionsApi}}({qId:n,options:c});p||Object.assign(c,{frequencyMode:IS(c.frequencyMode)});const[h,m]=k.useState(0);k.useEffect(()=>{if(h)throw new Error("Source or selection Api can not change after a listbox has been mounted");m(h+1)},[p,f]);const g=p?TS({app:e,qId:n,options:c}):function({app:e,fieldIdentifier:t,stateName:n,options:r={}}){var o;const[i,a]=k.useState(""),[l,s]=k.useState(!0),[c,u]=k.useState(),[d,p]=k.useState(),f=null!==(o=r.title)&&void 0!==o?o:d;let{histogram:h=!1,frequencyMode:m="N"}=r;i&&i.failedToFetchFieldDef&&(h=!1,m="N"),k.useEffect(()=>{const n=h||"N"!==m;t.qLibraryId&&n?async function(){try{const n=await e.getDimension(t.qLibraryId),r=await n.getLayout();p(r.qDim.title),"N"===r.qDim.qGrouping?a(r.qDim.qFieldDefs?r.qDim.qFieldDefs[0]:""):a({multiFieldDim:!0}),s(!1)}catch(e){throw s(!1),a({failedToFetchFieldDef:!0}),new Error(`Disabling frequency count and histogram: ${e&&e.message}`)}}():(s(!1),p(t))},[]);const{dense:g,checkboxes:b,listLayout:y,properties:v={}}=r,S={dense:g};"horizontal"===y&&(S.dataLayout="grid",S.layoutOrder="column",S.maxVisibleColumns={auto:!0},S.maxVisibleRows={auto:!1,maxRows:1});const x=k.useRef();x.current||(x.current=Gv());const w=ge(!0,{},OS,{qInfo:{qId:x.current},qListObjectDef:{qStateName:n,qFrequencyMode:h&&"N"===m?"V":m},histogram:h,checkboxes:b,layoutOptions:S,title:f});let C;if(ge(!0,w,v),t.qLibraryId?(w.qListObjectDef.qLibraryId=t.qLibraryId,C=t.qLibraryId):(w.qListObjectDef.qDef.qFieldDefs=[t],C=t),"P"!==m&&h)if(null!=i&&i.multiFieldDim)w.frequencyMax="fetch";else{const e=t.qLibraryId?i:C;w.frequencyMax={qValueExpression:_g(e)}}const[E]=Sh(w,l?null:e,C,n);return k.useEffect(()=>{E&&u(E)},[E]),c}({app:e,fieldIdentifier:t,stateName:r,options:c}),b=k.useRef(o),y=f?c.selectionsApi:xb(e,g,[b,".njs-action-toolbar-more",".njs-action-toolbar-popover"],c)[0],v=k.useMemo(()=>u(u({},c),{},{selections:y,model:g,app:e,renderedCallback:a,flags:l}),[c,y,g,e]);return k.useImperativeHandle(s,()=>({setOptions:e=>d(e)}),[]),y&&g?fr.jsx(PS,{options:v}):null});const NS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function qS({app:e,fieldIdentifier:t,stateName:n,element:r,options:o={}}){const[i,a]=k.useState(!!o.show);return fr.jsx(Tv,{show:i,app:e,alignTo:{current:r},anchorOrigin:o.anchorOrigin,transformOrigin:o.transformOrigin,close:()=>{a(!1),o.onPopoverClose&&o.onPopoverClose()},fieldName:t,stateName:n,autoFocus:o.autoFocus,components:o.components,sortCriteria:o.sortCriteria,direction:o.direction})}function jS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function AS(e,t){let n=0;for(let r=0;r<e.length;++r)e[r]>t?--e[r]:e[r]===t&&(n=r);return e.splice(n,1),n}function zS({dc:e,def:t,properties:n}){e.qDimensions=e.qDimensions||[],e.qMeasures=e.qMeasures||[],e.qInterColumnSortOrder=e.qInterColumnSortOrder||[],e.qInitialDataFetch=e.qInitialDataFetch||[],e.qColumnOrder=e.qColumnOrder||[],e.qExpansionState=e.qExpansionState||[];const r=n,o={dimensions:()=>e.qDimensions,measures:()=>e.qMeasures,addDimension(n){const i="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):u(u({},n),{},{qDef:n.qDef||{}});return i.qDef.cId=i.qDef.cId||Gv(),i.qDef.qSortCriterias=i.qDef.qSortCriterias||[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],i.qOtherTotalSpec=i.qOtherTotalSpec||{},i.qAttributeExpressions=i.qAttributeExpressions||[],i.qAttributeDimensions=i.qAttributeDimensions||[],e.qDimensions.length<o.maxDimensions()?(e.qDimensions.push(i),jS(e.qInterColumnSortOrder,e.qDimensions.length-1),t.dimensions.added(i,r)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qDimensions.push(i)),i},removeDimension(n){const o=e.qDimensions.splice(n,1)[0];return AS(e.qInterColumnSortOrder,n),t.dimensions.removed(o,r,n),o},addMeasure(n){const i="string"==typeof n?(e=>({qDef:{qDef:e}}))(n):u(u({},n),{},{qDef:n.qDef||{}});i.qDef.cId=i.qDef.cId||Gv(),i.qSortBy=i.qSortBy||{qSortByLoadOrder:1,qSortByNumeric:-1},i.qAttributeDimensions=i.qAttributeDimensions||[],i.qAttributeExpressions=i.qAttributeExpressions||[],e.qMeasures.length<o.maxMeasures()?(e.qMeasures.push(i),jS(e.qInterColumnSortOrder,e.qDimensions.length+e.qMeasures.length-1),t.measures.added(i,r)):(e.qLayoutExclude=e.qLayoutExclude||{},e.qLayoutExclude.qHyperCubeDef=e.qLayoutExclude.qHyperCubeDef||{},e.qLayoutExclude.qHyperCubeDef.qDimensions=e.qLayoutExclude.qHyperCubeDef.qDimensions||[],e.qLayoutExclude.qHyperCubeDef.qMeasures=e.qLayoutExclude.qHyperCubeDef.qMeasures||[],e.qLayoutExclude.qHyperCubeDef.qMeasures.push(i))},removeMeasure(n){const o=e.qMeasures.splice(n,1)[0];AS(e.qInterColumnSortOrder,e.qDimensions.length+n),t.measures.removed(o,r,n)},maxDimensions:()=>t.dimensions.max(e.qMeasures.length),maxMeasures:()=>t.measures.max(e.qDimensions.length),canAddDimension:()=>e.qDimensions.length<o.maxDimensions(),canAddMeasure:()=>e.qMeasures.length<o.maxMeasures()};return o}function $S({dc:e,def:t,properties:n}){e.qInitialDataFetch=e.qInitialDataFetch||[];const r=n,o={dimensions:()=>e.qLibraryId||e.qDef&&e.qDef.qFieldDefs&&0!==e.qDef.qFieldDefs.length?[e]:[],measures:()=>[],addDimension(n){const o="string"==typeof n?(e=>({qDef:{qFieldDefs:[e]}}))(n):u(u({},n),{},{qDef:n.qDef||{}});return o.qDef.cId=o.qDef.cId||Gv(),o.qDef.qSortCriterias=e.qDef.qSortCriterias||[{qSortByState:1,qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Object.keys(o).forEach(t=>{e[t]=o[t]}),t.dimensions.added(o,r),o},removeDimension(n){const o=e;return delete e.qDef,delete e.qLibraryId,t.dimensions.removed(o,r,n),o},addMeasure(){},removeMeasure(){},maxDimensions:()=>1,maxMeasures:()=>0,canAddDimension:()=>0===o.dimensions().length,canAddMeasure:()=>!1};return o}const FS=e=>({qDef:{qFieldDefs:[e]}});function BS({children:e,halo:t}){const n={async addDimension(n){const r=(e=>{let t;return t="string"==typeof e?ge(!0,{},OS,{qListObjectDef:FS(e)}):e.qListObjectDef?ge(!0,{},OS,e):ge(!0,{},OS,{qListObjectDef:e}),t})(n),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||Gv(),!r.title)if(t.public.galaxy.flags.isEnabled("QCB-35224_FILTERPANE_TITLE_IMPROVEMENT"))r.title=void 0;else if(o.qLibraryId){const e=await t.app.getDimension(o.qLibraryId),n=await e.getProperties();n.qDim.qLabelExpression?r.title={qStringExpression:{qExpr:n.qDim.qLabelExpression}}:r.title=n.qDim.title}else{var i,a;r.title=o.qDef.title||(null===(i=o.qDef.qFieldLabels)||void 0===i?void 0:i[0])||(null===(a=o.qDef.qFieldDefs)||void 0===a?void 0:a[0])}e.push({qProperty:r,qChildren:[]})},addMeasure(){}};return n}function WS(e){return"string"==typeof e&&"="===e[0]||"object"==typeof e&&e.qDef&&e.qDef.qDef||"object"==typeof e&&e.qLibraryId&&"measure"===e.type?"measure":"dimension"}async function HS({sn:e,properties:t,fields:n,children:r},o){if(!n.length)return;const i=e.qae.data.targets[0];if(!i)return;const{propertyPath:a}=i,l=a.split("/");let s=t;for(let e=0;e<l.length;e++){const t=l[e];s=t?s[t]:s}const c=function(e){return e.match("/qListObjectDef")?$S:e.match("/qChildListDef")?BS:zS}(a),u=c({dc:s,def:i,properties:t,children:r,halo:o});for(let e=0;e<n.length;++e){const t=n[e];"measure"===WS(t)?await u.addMeasure(t):await u.addDimension(t)}}const US=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e;var VS={getValue:(e,t,n)=>{if(null==e||null==t)return n;const r=t.split(".");let o=e;for(let e=0;e<r.length;++e){const t=r[e];if(""!==t){if(void 0===o[t]||null===o[t])return n;o=o[t]}}return o},setValue:(e,t,n)=>{if(null==e||null==t)return;const r=t.split("."),o=r[r.length-1];let i=e;for(let e=0;e<r.length-1;++e){const t=r[e];if(!US(t))return;void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}US(o)&&(void 0!==n?i[o]=n:delete i[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var GS={isOrderedSubset:function(e,t){if(!(e&&t&&e.length&&t.length))return!1;let n=e.indexOf(t[0]);if(-1!==n){for(let r=0;r<t.length;r++){const o=e.indexOf(t[r]);if(n>o)return!1;n=o}return!0}return!1},indexAdded:function(e,t){let n;for(n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)},indexRemoved:function(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},move:function(e,t,n){if(n<0)throw Error("newIndex cannot be a negative value!");if(n>=e.length){let t=n-e.length+1;for(;t;)e.push(void 0),t--}const r=e.at(t);e.splice(t,1),e.splice(n,0,r)}};const KS=2**53-1;function XS(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function JS(e,t){const n=ge(!0,{},t,e);return VS.getValue(n,"qOtherTotalSpec.qOtherCounted")||VS.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),VS.getValue(n,"qOtherTotalSpec.qOtherLimit")||VS.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function ZS(e,t){return ge(!0,{},t,e)}function QS(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var YS={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===VS.getValue(e,t)&&VS.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:XS,importCommonProperties:function(e,t,n){const r="masterobject"===VS.getValue(t,"properties.qInfo.qType")?"masterobject":VS.getValue(n,"qInfo.qType");VS.setValue(e,"qInfo.qType",r),e.visualization=n.visualization},copyPropertyIfExist:function(e,t,n){t.hasOwnProperty(e)&&(n[e]=t[e])},copyPropertyOrSetDefault:function(e,t,n,r){t.hasOwnProperty(e)?n[e]=t[e]:n[e]=r},createDefaultDimension:JS,createDefaultMeasure:ZS,resolveValue:QS,getHypercubePath:function(e){const t=VS.getValue(e,"data.targets.0.propertyPath","").split("/");return t.length&&"qHyperCubeDef"===t[t.length-1]&&(t.length-=1),t.join(".")},getDefaultDimension: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}}},getDefaultMeasure:function(){return{qDef:{autoSort:!0,cId:"",numFormatFromTemplate:!0},qLibraryId:"",qTrendLines:[]}},setInterColumnSortOrder:function({exportFormat:e,newHyperCubeDef:t}){const n=e.data[0],r=t.qDimensions.length+t.qMeasures.length;t.qInterColumnSortOrder=n.interColumnSortOrder.concat();let o=t.qInterColumnSortOrder.length;if(o!==r)for(t.qLayoutExclude&&(t.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder=n.interColumnSortOrder.concat());o!==r;)o<r?(GS.indexAdded(t.qInterColumnSortOrder,o),++o):(--o,GS.indexRemoved(t.qInterColumnSortOrder,o))},createNewProperties:function({exportFormat:e,initialProperties:t,hypercubePath:n}){let r={qLayoutExclude:{disabled:{},quarantine:{}}};return Object.keys(e.properties).forEach(o=>{"qLayoutExclude"===o?e.properties[o].quarantine&&(r.qLayoutExclude.quarantine=ge(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?VS.setValue(r,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||XS(o)?r[o]=e.properties[o]:r.qLayoutExclude.disabled[o]=e.properties[o]}),r=ge(!0,{},t,r),null===r.components&&(r.components=[]),r},getMaxMinDimensionMeasure:function({exportFormat:e,dataDefinition:t={}}){const n=e.data[0],r=t.dimensions||{max:0},o=t.measures||{max:0},i=QS(o.max,n.dimensions.length,KS),a=QS(o.min,n.dimensions.length,0);return{maxDimensions:QS(r.max,i,KS),minDimensions:QS(r.min,a,0),maxMeasures:i,minMeasures:a}},shouldInitLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o}){const i=e.data[0];return i.dimensions.length>t&&t>0||i.measures.length>r&&r>0||i.excludedDimensions.length>0&&i.dimensions.length+i.excludedDimensions.length>n||i.excludedMeasures.length>0&&i.measures.length+i.excludedMeasures.length>o||!r&&i.measures.length>0||!t&&i.dimensions.length>0},initLayoutExclude:function({exportFormat:e,maxDimensions:t,minDimensions:n,maxMeasures:r,minMeasures:o,newHyperCubeDef:i}){const a=e.data[0];i.qLayoutExclude||(i.qLayoutExclude={}),i.qLayoutExclude.qHyperCubeDef||(i.qLayoutExclude.qHyperCubeDef={}),(a.dimensions.length>t&&t>0||a.excludedDimensions&&a.excludedDimensions.length&&a.dimensions.length+a.excludedDimensions.length>n)&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[])),(a.measures.length>r&&r>0||a.excludedMeasures&&a.excludedMeasures.length&&a.measures.length+a.excludedMeasures.length>o)&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!r&&a.measures.length&&(i.qLayoutExclude.qHyperCubeDef.qMeasures||(i.qLayoutExclude.qHyperCubeDef.qMeasures=[])),!t&&a.dimensions.length&&(i.qLayoutExclude.qHyperCubeDef.qDimensions||(i.qLayoutExclude.qHyperCubeDef.qDimensions=[]))},addDefaultDimensions:function({exportFormat:e,maxDimensions:t,minDimensions:n,newHyperCubeDef:r,defaultDimension:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.dimensions.length;++a)r.qDimensions.length<t?r.qDimensions.push(JS(i.dimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push(JS(i.dimensions[a],o));else if(i.dimensions.length)for(a=0;a<i.dimensions.length;++a)r.qLayoutExclude.qHyperCubeDef.qDimensions.push(JS(i.dimensions[a],o));if(i.excludedDimensions.length)for(a=0;a<i.excludedDimensions.length;++a)r.qDimensions.length<n?r.qDimensions.push(JS(i.excludedDimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push(JS(i.excludedDimensions[a],o))},addDefaultMeasures:function({exportFormat:e,maxMeasures:t,minMeasures:n,newHyperCubeDef:r,defaultMeasure:o}){const i=e.data[0];let a;if(t>0)for(a=0;a<i.measures.length;++a)r.qMeasures.length<t?r.qMeasures.push(ZS(i.measures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(ZS(i.measures[a],o));else if(i.measures.length)for(a=0;a<i.measures.length;++a)r.qLayoutExclude.qHyperCubeDef.qMeasures.push(ZS(i.measures[a],o));if(i.excludedMeasures.length)for(a=0;a<i.excludedMeasures.length;++a)r.qMeasures.length<n?r.qMeasures.push(ZS(i.excludedMeasures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(ZS(i.excludedMeasures[a],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const r=VS.getValue(e,n||"").qHyperCubeDef,o=[...r.qDimensions];r.qDimensions=[],o.forEach(n=>{r.qDimensions.push(n),t.dimensions.added(n,e)})}},updateMeasuresOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.measures&&"function"==typeof t.measures.added){const r=VS.getValue(e,n||"").qHyperCubeDef,o=[...r.qMeasures];r.qMeasures=[],o.forEach(n=>{r.qMeasures.push(n),t.measures.added(n,e)})}}};var ex={exportProperties:e=>function({propertyTree:e,hypercubePath:t}){const n=function(e=1){const t={data:[],properties:{}};for(let n=0;n<e;++n)t.data.push({dimensions:[],measures:[],excludedDimensions:[],excludedMeasures:[],interColumnSortOrder:[]});return t}(),r=e.qProperty,o=VS.getValue(r,t||""),i=o.qHyperCubeDef,a=n.data[0];if(i.qInterColumnSortOrder||(i.qInterColumnSortOrder=[]),a.dimensions.push(...i.qDimensions),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qDimensions&&a.excludedDimensions.push(...i.qLayoutExclude.qHyperCubeDef.qDimensions),a.measures.push(...i.qMeasures),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qMeasures&&a.excludedMeasures.push(...i.qLayoutExclude.qHyperCubeDef.qMeasures),a.interColumnSortOrder=i.qInterColumnSortOrder.concat(),i.qLayoutExclude&&i.qLayoutExclude.qHyperCubeDef&&i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder){const e=i.qLayoutExclude.qHyperCubeDef.qInterColumnSortOrder.concat();GS.isOrderedSubset(e,a.interColumnSortOrder)&&(a.interColumnSortOrder=e)}return delete i.qLayoutExclude,Object.keys(r).forEach(e=>{n.properties[e]=r[e]}),t&&(n.properties.qHyperCubeDef=o.qHyperCubeDef,delete o.qHyperCubeDef),r.qLayoutExclude||(r.qLayoutExclude={}),r.qLayoutExclude.disabled&&(Object.keys(r.qLayoutExclude.disabled).forEach(e=>{n.properties.hasOwnProperty(e)||(n.properties[e]=r.qLayoutExclude.disabled[e])}),delete r.qLayoutExclude.disabled),r.qLayoutExclude.changed&&(YS.restoreChangedProperties(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!VS.isEmpty(r.qLayoutExclude.quarantine)||delete r.qLayoutExclude,n}(e),importProperties:e=>function({exportFormat:e,initialProperties:t={},dataDefinition:n={},defaultPropertyValues:r={},hypercubePath:o}){const i={qChildren:[]},a=YS.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),l=VS.getValue(t,o||"").qHyperCubeDef,s=VS.getValue(a,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p}=YS.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:f=YS.getDefaultDimension(),defaultMeasure:h=YS.getDefaultMeasure()}=r;return s.qDimensions.length=0,s.qMeasures.length=0,YS.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p})&&YS.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p,newHyperCubeDef:s}),YS.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:u,newHyperCubeDef:s,defaultDimension:f}),YS.addDefaultMeasures({exportFormat:e,maxMeasures:d,minMeasures:p,newHyperCubeDef:s,defaultMeasure:h}),YS.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:s}),YS.copyPropertyIfExist("qMaxStackedCells",l,s),YS.copyPropertyIfExist("qNoOfLeftDims",l,s),YS.copyPropertyOrSetDefault("qInitialDataFetch",l,s,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),YS.copyPropertyOrSetDefault("qMode",l,s,"S"),YS.copyPropertyOrSetDefault("qReductionMode",l,s,"N"),YS.copyPropertyOrSetDefault("qSortbyYValue",l,s),YS.copyPropertyOrSetDefault("qIndentMode",l,s),YS.copyPropertyOrSetDefault("qShowTotalsAbove",l,s),YS.importCommonProperties(a,e,t),YS.updateDimensionsOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),YS.updateMeasuresOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),i.qProperty=a,i}(e)};const tx=e=>VS.getValue(e,"data.targets.0.propertyPath"),nx=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ex.exportProperties})(tx(e))},rx=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return ex.importProperties})(tx(e))},ox=async({halo:e,model:t,cellRef:n,newType:r,properties:o,viewDataMode:i=!1})=>{const a=o?{qProperty:o}:await t.getFullPropertyTree(),l=n.current.getQae(),s=nx(l);if(!s)throw new Error("Source chart does not support conversion");const c=await(async({halo:e,name:t,version:n})=>{const{types:r}=e;return await r.get({name:t,version:n}).supernova()})({halo:e,name:r}),d=c.qae,p=rx(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:s({propertyTree:a,hypercubePath:YS.getHypercubePath(l),viewDataMode:i}),initialProperties:u({qInfo:{qType:r},visualization:r},VS.getValue(d,"properties.initial",{})),dataDefinition:VS.getValue(d,"data.targets.0.",{}),hypercubePath:YS.getHypercubePath(d),viewDataMode:i})},ix=(e("b",{hypercube:ex}),ge.bind(null,!0)),ax={},{isArray:lx}=Array;function sx(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function cx(e){return void 0===e}function ux(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function dx(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function px(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!dx(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const r=isNaN(n)?{}:[];e[n||t]=cx(e[n||t])?r:e[t],e=e[n||t]}),e}function fx(e,t){let n=!0;if(sx(e)&&sx(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{fx(e[r],t[r])||(n=!1)}),n);if(lx(e)&&lx(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!fx(e[n],t[n]))return!1;return!0}return e===t}ax.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?ix({},{val:e}).val:e}(t[o]),a=e[o],l=`${n}/${o}`;fx(i,a)||ux(t,o)||(cx(a)?r.push({op:"add",path:l,value:i}):sx(i)&&sx(a)?r=r.concat(ax.generate(a,i,l)):lx(i)&&lx(a)?r=r.concat(function(e,t,n){let r=[];const o=e.slice();let i=-1;function a(e,t,n){if(e[n]&&cx(e[n].qInfo))return null;if(e[n]&&e[n].qInfo.qId===t)return n;for(let n=0,r=e.length;n<r;n+=1)if(e[n]&&e[n].qInfo.qId===t)return n;return-1}if(fx(t,o))return r;if(!cx(t[0])&&cx(t[0].qInfo))return r.push({op:"replace",path:n,value:t}),r;for(let e=o.length-1;e>=0;e-=1)i=a(t,o[e].qInfo&&o[e].qInfo.qId,e),-1===i?(r.push({op:"remove",path:`${n}/${e}`}),o.splice(e,1)):r=r.concat(ax.generate(o[e],t[i],`${n}/${e}`));for(let e=0,l=t.length;e<l;e+=1)i=a(o,t[e].qInfo&&t[e].qInfo.qId),-1===i?(r.push({op:"add",path:`${n}/${e}`,value:t[e]}),o.splice(e,0,t[e])):i!==e&&(r.push({op:"move",path:`${n}/${e}`,from:`${n}/${i}`}),o.splice(e,0,o.splice(i,1)[0]));return r}(a,i,l)):r.push({op:"replace",path:`${n}/${o}`,value:i}))}),Object.keys(e).forEach(o=>{cx(t[o])&&!ux(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},ax.apply=function(e,t){t.forEach(t=>{let n=px(e,t.path),r=t.path.split("/").splice(-1)[0],o=r&&isNaN(+r)?n[r]:n[+r]||n;const i=t.from?t.from.split("/").splice(-1)[0]:null;if(!dx(r)||null!==i&&!dx(i)){const e=dx(r)?i:r;throw new Error(`Unsafe key in patch path: ${e}`)}if("/"===t.path&&(n=null,o=e),"add"===t.op||"replace"===t.op)if(lx(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(lx(o)&&lx(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(sx(o)&&sx(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!ux(a,e)&&dx(e)&&delete a[e]}),ix(o,t.value);else{if(!n)throw new Error("Patchee is not an object we can patch");n[r]=t.value}else if("move"===t.op){const o=px(e,t.from);lx(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(lx(n)?n.splice(+r,1):delete n[r]);var a})},ax.clone=function(e){return ix({},e)},ax.createPatch=function(e,t,n){const r={op:e.toLowerCase(),path:n};return"move"===r.op?r.from=t:void 0!==t&&(r.value=t),r},ax.updateObject=function(e,t){Object.keys(e).length?ax.apply(e,ax.generate(e,t)):ix(e,t)};const hx=e=>t=>{const n=(r=u(u({},t),{},{action(){"function"==typeof t.action&&t.action.call(n,e),n.emit("changed")},enabled:()=>"function"!=typeof t.enabled||t.enabled.call(n,e),active:"function"==typeof t.active?function(){return t.active.call(n,e)}:void 0}),Object.keys(M.prototype).forEach(e=>{r[e]=M.prototype[e]}),M.init(r),r);var r;return n};let mx,gx;function bx(e,t){if(!e)return!0;if(t.length!==e.length)return!0;for(let n=0;n<t.length;n++)if(e[n]!==t[n])return!0;return!1}function yx(e,{explicitResize:t=!1}={}){e.__hooks={obsolete:!1,error:!1,waitForData:!1,chain:{promise:null,resolve:()=>{}},list:[],snaps:[],menus:[],actions:{list:[]},pendingEffects:[],pendingLayoutEffects:[],pendingPromises:[],resizer:{setters:[],explicitResize:t},accessibility:{setter:null},contraintsWarning:!0}}function vx(e){xx(e.__hooks.list,!0),e.__hooks.obsolete=!0,e.__hooks.list.length=0,e.__hooks.pendingEffects.length=0,e.__hooks.pendingLayoutEffects.length=0,e.__hooks.actions=null,e.__hooks.imperativeHandle=null,e.__hooks.resizer=null,e.__hooks.accessibility=null,e.__actionsDispatch=null,clearTimeout(e.__hooks.micro),cancelAnimationFrame(e.__hooks.macro)}async function Sx(e){if(e.__hooks.obsolete)return Promise.resolve();gx=-1,mx=e,mx.__hooks.initiated&&mx.__hooks.list.length;try{mx.fn.call(null)}catch(e){console.error(e)}mx.__hooks.initiated=!0;const t=mx.__hooks;return Ex(mx),gx=void 0,mx=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){xx(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){xx(e.pendingEffects),e.macro=null,function(e){if(e.pendingPromises.length||e.micro||e.macro)return;e.chain.promise=null,e.chain.resolve(!e.waitForData)}(e)}(e)})}(t),t.chain.promise}function xx(e,t){try{e.forEach(e=>{"function"==typeof e.teardown&&e.teardown(),t||(e.teardown=e.value[0]())})}catch(e){console.error(e)}e.length=0}function wx(e,t){try{return Promise.all(e.__hooks.snaps.map(e=>Promise.resolve(e.fn(t)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function kx(e,t,n,r){try{return Promise.all(e.__hooks.menus.map(e=>Promise.resolve(e.fn(t,n,r)))).then(e=>e[e.length-1])}catch(e){console.error(e)}return Promise.resolve()}function Cx(e){return e.__hooks.imperativeHandle}function Ex(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function Lx(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,Ex(e))}function Rx(e){if(void 0===mx)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=mx.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Px(e){Rx(++gx);return mx.context[e]}function Tx(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Ox(e){return{__hooked:!0,fn:e,initiate:yx,run:Sx,teardown:vx,runSnaps:wx,runMenu:kx,focus:qx,blur:jx,observeActions:Lx,getImperativeHandle:Cx,updateRectOnNextRun:Tx}}function Ix(e){const t=Rx(++gx);if(!t.value){t.component=mx;const n=e=>{if(t.component.__hooks.obsolete)return;const n="function"==typeof e?e(t.value[0]):e;var r;n!==t.value[0]&&(t.value[0]=n,(r=t.component).__hooks.micro||(r.__hooks.micro=setTimeout(()=>{r.__hooks.micro=null,Sx(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Mx(e,t){const n=Rx(++gx);bx(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===mx.__hooks.pendingEffects.indexOf(n)&&mx.__hooks.pendingEffects.push(n))}function Dx(e,t){const n=Rx(++gx);bx(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],mx.__hooks.pendingLayoutEffects.push(n))}function _x(e,t){const n=Rx(++gx);return bx(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Nx(){return Px("element")}function qx(e){const t=e.__hooks.accessibility;t.active||(t.active=!0,t&&t.setter&&t.setter({active:!0,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}function jx(e){const t=e.__hooks.accessibility;t&&t.active&&(t.active=!1,t&&t.setter&&t.setter({active:!1,enabled:t.enabled,blur:t.exitFunction,focus:t.focusFunction,focusSelection:t.focusSelectionFunction}))}const Ax={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},zx=Object.keys(Ax);function $x(e,t){const n=u({},Ax);var r;r=n,Object.keys(M.prototype).forEach(e=>{r[e]=M.prototype[e]}),M.init(r);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==zx.indexOf(t)?n[t]=e.component[t].bind(o):o[t]=e.component[t]});const i=function({sn:e,component:t}){const n={},r=[],o=hx(t);return((e.definition.selectionToolbar||{}).items||[]).forEach(e=>{const t=o(e);n[e.key]=t,r.push(t)}),(e.definition.actions||[]).forEach(e=>{const t=o(e);n[e.key]=t}),{actions:n,selectionToolbarItems:r,destroy(){r.length=0}}}({sn:e,component:o}),a=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):null;return Object.assign(o,{model:t.model,app:t.app,global:a,selections:t.selections,actions:i.actions}),Object.assign(n,{actions:i.actions,model:t.model,app:t.app,selections:t.selections}),[n,i]}function Fx(e,t,n){"function"==typeof e.component&&(e.component=Ox(e.component));const[r,o]=e.component&&e.component.__hooked?function(e,t,n){const r=t.app&&t.app.session?t.app.session.getObjectApi({handle:-1}):void 0;let o=!1;const i={},a=["appLayout","constraints","interactions"],l={},s={};t.model&&t.model.session||(l.select=!0,l.edit=!0,s.select=!1,s.edit=!1);const c={context:{model:t.model,app:t.app,global:r,selections:t.selections,nebbie:t.nebbie,element:void 0,emitter:t.emitter,deviceType:n.deviceType,theme:void 0,translator:n.translator,navigation:t.navigation,layout:{},appLayout:{},keyboardNavigation:t.keyboardNavigation,externalFocusManagement:t.externalFocusManagement||!1,focusHandler:t.focusHandler,constraints:l,interactions:s,options:{},plugins:[]},fn:e.component.fn,created(){},mounted(n){this.context.element=n,e.component.initiate(c,{explicitResize:!!t.explicitResize})},render(t){let n=!o||!1;if(t){if(t.layout&&t.layout!==this.context.layout&&(n=!0,this.context.layout=t.layout),t.context&&t.context.theme&&(this.context.theme=t.context.theme),t.context&&!!t.context.keyboardNavigation!=!!this.context.keyboardNavigation&&(this.context.keyboardNavigation=!!t.context.keyboardNavigation,n=!0),t.context&&t.context.focusHandler&&(this.context.focusHandler=t.context.focusHandler),t.options){const e={};let r=!1;Object.keys(t.options).forEach(n=>{e[n]=t.options[n],this.context.options[n]!==t.options[n]&&(r=!0)}),r&&(this.context.options=e,n=!0)}if(t.plugins){let e=this.context.plugins.length!==t.plugins.length;t.plugins.forEach((t,n)=>{this.context.plugins[n]!==t&&(e=!0)}),e&&(this.context.plugins=[...t.plugins],n=!0)}a.forEach(e=>{const r=t.context;if(r&&Object.prototype.hasOwnProperty.call(r,e)){let t=JSON.stringify(r[e]);"constraints"===e&&(t=JSON.stringify(u(u({},r[e]),l))),"interactions"===e&&(t=JSON.stringify(u(u({},r[e]),s))),t!==i[e]&&(n=!0,i[e]=t,this.context[e]=JSON.parse(t))}})}else n=!0;return this.context.theme&&this.context.theme.name()!==i.themeName&&(n=!0,i.themeName=this.context.theme.name()),this.context.translator.language()!==i.language&&(n=!0,i.language=c.context.translator.language()),n?(o=!0,this.currentResult=e.component.run(this),this.currentResult):this.currentResult||Promise.resolve()},resize(){return e.component.updateRectOnNextRun(this),this.render()},willUnmount(){e.component.teardown(this)},setSnapshotData(t){return e.component.runSnaps(this,t)},onContextMenu(t,n,r){return e.component.runMenu(this,t,n,r)},focus(){const t=e.component.getImperativeHandle(this);t&&"function"==typeof t.focus?t.focus():e.component.focus(this)},blur(){e.component.blur(this)},getImperativeHandle(){return e.component.getImperativeHandle(this)},destroy(){},observeActions(t){e.component.observeActions(this,t)},isHooked:!0};return a.forEach(e=>{i[e]=JSON.stringify(c.context[e])}),i.themeName=c.context.theme?c.context.theme.name():void 0,i.language=c.context.translator?c.context.translator.language():void 0,Object.assign(c,{selections:t.selections}),[c,null]}(e,t,n):$x(e,t),i=[];return t.model.__snInterceptor&&t.model.__snInterceptor.teardown(),e.qae.properties.onChange&&(t.model.__snInterceptor={setProperties:t.model.setProperties,applyPatches:t.model.applyPatches,teardown:void 0},t.model.setProperties=function(...n){try{e.qae.properties.onChange.call({model:t.model},...n)}catch(e){}return t.model.__snInterceptor.setProperties.call(this,...n)},t.model.applyPatches=function(n,r){const o=r?"getEffectiveProperties":"getProperties";return t.model[o]().then(o=>{const i=ax.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));ax.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=ax.generate(i,o).map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path}));return t.model.__snInterceptor.applyPatches.call(this,l,r)})},t.model.__snInterceptor.teardown=()=>{t.model.__snInterceptor&&(t.model.setProperties=t.model.__snInterceptor.setProperties,delete t.model.__snInterceptor)},i.push(t.model.__snInterceptor.teardown)),{generator:e,component:r,selectionToolbar:{items:o?o.selectionToolbarItems:[]},destroy(){i.forEach(e=>e())},logicalSize:e.definition.logicalSize||(()=>!1)}}const Bx=1e3,Wx=1e3,Hx=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],Ux=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),Vx=(e,t)=>e&&e.find(e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t})||null,Gx=e=>{var t,n;return u(u({},e),{},{qDef:u(u({},e.qDef),{},{cId:null!==(t=null===(n=e.qDef)||void 0===n?void 0:n.cId)&&void 0!==t?t:Ux()})})},Kx=e=>{var t;return u(u({},Gx(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},Xx=(e,t,n)=>{const r=t;e.forEach((e,t)=>{const o=e.qTags,i={qSortByLoadOrder:1};"function"==typeof n.dimensionDefinition.autoSort?n.dimensionDefinition.autoSort(r,n.properties,o,i,n):(i.qSortByNumeric=1,i.qSortByAscii=1),r.qDef.qSortCriterias?r.qDef.qSortCriterias[t]=i:r.qDef.qSortCriterias=[i]})},Jx=new Error("Not supported in this object, need to implement in subclass."),Zx=e=>{if(!e)return[];return[...e].map(e=>{var t;return null!==(t=e.qDef)&&void 0!==t&&t.autoSort&&void 0!==e.autoSort?u(u({},e),{},{qDef:u(u({},e.qDef),{},{autoSort:e.autoSort}),autoSort:void 0}):e})},Qx=(e,t)=>{if(e)return t&&VS.getValue(e,t)?VS.getValue(e,t).qHyperCube:e.qHyperCube};function Yx(e,t){return e.filter((e,n)=>t.includes(n))}function ew(e,t,n=void 0){const r=e.getAlternativeDimensions(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function tw(e,t,n){GS.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function nw(e,t){return"function"==typeof e.dimensionDefinition.move?Promise.resolve(e.dimensionDefinition.move.call(e,t,e.properties,e)).then(()=>t):Promise.resolve(t)}function rw(e,t){return e.getAlternativeDimensions().length+t.length>=Bx}function ow(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<Bx}async function iw(e,t,n,r,o,i){await e.autoSortDimension(t),GS.indexAdded(e.hcProperties.qInterColumnSortOrder,n+i),r.push(t),o.push(t),"function"==typeof e.dimensionDefinition.add&&e.dimensionDefinition.add.call(e,t,e.properties,e)}function aw(e,t,n=void 0){const r=e.getAlternativeMeasures(),o=null!=n?n:r.length;return r.splice(o,0,t),Promise.resolve(t)}function lw(e,t){GS.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function sw(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<Wx}function cw(e,t,n,r){const o=e-n.length;let[i]=n.splice(n.length-1,1);return r.splice(0,0,i),[i]=r.splice(o+1,1),n.splice(t,0,i),Promise.resolve(i)}class uw{constructor(e){var t,n;const r=e||{};this.dimensionDefinition=r.dimensionDefinition||{max:0},this.measureDefinition=r.measureDefinition||{max:0},this.dimensionProperties=null!==(t=r.dimensionProperties)&&void 0!==t?t:{},this.measureProperties=null!==(n=r.measureProperties)&&void 0!==n?n:{},this.globalChangeListeners=r.globalChangeListeners,this.app=r.app}setProperties(e){var t;this.properties=e,this.isAnalysisType=null===(t=this.properties)||void 0===t||null===(t=t.metaData)||void 0===t?void 0:t.isAnalysisType}setGlobalChangeListeners(e){this.globalChangeListeners=e}setLayout(e){this.layout=e}type(){throw new Error("Must override this method")}getDimensions(){return[]}getDimension(e){var t;const n=this.getDimensions(),r=this.getAlternativeDimensions();return null!==(t=Vx(n,e))&&void 0!==t?t:Vx(r,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw Jx}addDimensions(){throw Jx}removeDimension(){throw Jx}removeDimensions(){throw Jx}autoSortDimension(){throw Jx}replaceDimension(){throw Jx}getSorting(){throw Jx}createLibraryDimension(e,t){let n=ge(!0,{},this.dimensionProperties||{},t||{});return n=Kx(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=Hx,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let r=ge(!0,{},this.dimensionProperties||{},n||{});return r=Kx(r),e||(r.qDef.qFieldDefs=[],r.qDef.qFieldLabels=[],r.qDef.qSortCriterias=[]),r.qDef.qFieldDefs=[e],r.qDef.qFieldLabels=t?[t]:[""],r.qDef.qSortCriterias=Hx,r.qDef.autoSort=!0,r}addFieldDimension(e,t,n){const r=this.createFieldDimension(e,t,n);return this.addDimension(r)}addFieldDimensions(e){const t=e.map(({field:e,label:t,defaults:n})=>this.createFieldDimension(e,t,n));return this.addDimensions(t)}addLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n)}addLibraryDimensions(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryDimension(e,t));return this.addDimensions(t)}async addAltLibraryDimensions(e){const t=e.map(({id:e})=>this.createLibraryDimension(e));return this.addDimensions(t,!0)}async addAltFieldDimensions(e){const t=e.map(({field:e})=>this.createFieldDimension(e));return this.addDimensions(t,!0)}addAlternativeFieldDimension(e){const t=this.createFieldDimension(e);return this.addDimension(t,!0)}addAlternativeLibraryDimension(e,t){const n=this.createLibraryDimension(e,t);return this.addDimension(n,!0)}minDimensions(){return"function"==typeof this.dimensionDefinition.min?this.dimensionDefinition.min.call(null,this.properties,this):this.dimensionDefinition.min||0}maxDimensions(e=0){const t=this.getMeasures().length-e;if("function"==typeof this.dimensionDefinition.max){var n;const e=[t];return null===(n=this.dimensionDefinition.max)||void 0===n?void 0:n.apply(null,e)}return Number.isNaN(+this.dimensionDefinition.max)?1e4:this.dimensionDefinition.max}canAddDimension(){return this.getDimensions().length<this.maxDimensions()}getMeasures(){return[]}getAlternativeMeasures(){throw new Error("Method not implemented.")}addMeasure(){throw Jx}addMeasures(){throw Jx}removeMeasure(){throw Jx}removeMeasures(){throw Jx}autoSortMeasure(){throw Jx}replaceMeasure(){throw Jx}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=Vx(n,e))&&void 0!==t?t:Vx(r,e)}createExpressionMeasure(e,t,n){var r,o;const i=ge(!0,{},this.measureProperties||{},n||{});return i.qDef=null!==(r=i.qDef)&&void 0!==r?r:{},i.qDef.qNumFormat=null!==(o=i.qDef.qNumFormat)&&void 0!==o?o:{},i.qDef.qDef=e,i.qDef.qLabel=t,i.qDef.autoSort=!0,i}addExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r)}addExpressionMeasures(e){const t=e.map(({expression:e,label:t,defaults:n})=>this.createExpressionMeasure(e,t,n));return this.addMeasures(t,!1)}createLibraryMeasure(e,t){var n,r;const o=ge(!0,{},this.measureProperties||{},t||{});return o.qDef=null!==(n=o.qDef)&&void 0!==n?n:{},o.qDef.qNumFormat=null!==(r=o.qDef.qNumFormat)&&void 0!==r?r:{},(e=>{const t=e;t.quarantine={qNumFormat:t.qNumFormat||{},isCustomFormatted:t.isCustomFormatted||!1},t.qNumFormat=null,t.isCustomFormatted=void 0})(o.qDef),o.qLibraryId=e,o.qDef.autoSort=!0,delete o.qDef.qDef,delete o.qDef.qLabel,o}addLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n)}addLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!1)}addAltLibraryMeasures(e){const t=e.map(({id:e,defaults:t})=>this.createLibraryMeasure(e,t));return this.addMeasures(t,!0)}addAltExpressionMeasures(e){const t=e.map(({expression:e})=>this.createExpressionMeasure({expression:e}));return this.addMeasures(t,!0)}addAlternativeExpressionMeasure(e,t,n){const r=this.createExpressionMeasure(e,t,n);return this.addMeasure(r,!0)}addAlternativeLibraryMeasure(e,t){const n=this.createLibraryMeasure(e,t);return this.addMeasure(n,!0)}minMeasures(){return"function"==typeof this.measureDefinition.min?this.measureDefinition.min.call(null,this.properties,this):this.measureDefinition.min||0}maxMeasures(e=0){if("function"==typeof this.measureDefinition.max){const t=[this.getDimensions().length-e];return this.measureDefinition.max.apply(null,t)}return Number.isNaN(+this.measureDefinition.max)?1e4:this.measureDefinition.max}canAddMeasure(){return this.getMeasures().length<this.maxMeasures()}updateGlobalChangeListeners(e){this.globalChangeListeners&&(this.globalChangeListeners||[]).forEach(t=>{t&&"function"==typeof t&&t(this.properties,this,{layout:e})})}}e("D",uw);function dw(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then(async()=>(tw(e,r,n),await function(e,t){return t&&"function"==typeof e.dimensionDefinition.add?Promise.resolve(e.dimensionDefinition.add.call(null,t,e.properties,e)).then(()=>t):Promise.resolve(t)}(e,t),t))}function pw(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),e.autoSortMeasure(t).then(()=>(lw(e,r),function(e,t){return t&&"function"==typeof e.measureDefinition.add?Promise.resolve(e.measureDefinition.add.call(null,t,e.properties,e)):Promise.resolve()}(e,t).then(()=>t),t))):Promise.resolve()}async function fw(e,t){!function(e,t){GS.indexRemoved(e.hcProperties.qInterColumnSortOrder,t)}(e,t),await function(e,t){const[n]=e.getDimensions().splice(t,1);return n&&"function"==typeof e.dimensionDefinition.remove?Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}async function hw(e,t){!function(e,t){GS.indexRemoved(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t)}(e,t),await function(e,t){const[n]=e.getMeasures().splice(t,1);return n&&"function"==typeof e.measureDefinition.remove?Promise.resolve(e.measureDefinition.remove.call(null,n,e.properties,e,t)):Promise.resolve()}(e,t)}function mw(e,t){const[n]=e.getAlternativeDimensions().splice(t,1);if(n&&"function"==typeof e.dimensionDefinition.remove)return n.isAlternative=!0,Promise.resolve(e.dimensionDefinition.remove.call(null,n,e.properties,e,t)).then(()=>{delete n.isAlternative})}function gw(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),lw(e,r),function(e,t){return"function"==typeof e.measureDefinition.move?Promise.resolve(e.measureDefinition.move.call(null,t,e.properties,e,!0)).then(()=>t):Promise.resolve(t)}(e,t)):Promise.resolve(t)}class bw extends uw{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?VS.getValue(e,`${this.path}.qHyperCubeDef`):e.qHyperCubeDef,this.hcProperties&&(!function(e){var t,n,r,o,i,a,l;const s=e;s.hcProperties.qDimensions=null!==(t=s.getDimensions())&&void 0!==t?t:[],s.hcProperties.qMeasures=null!==(n=s.getMeasures())&&void 0!==n?n:[],s.hcProperties.qInterColumnSortOrder=null!==(r=s.hcProperties.qInterColumnSortOrder)&&void 0!==r?r:[],s.hcProperties.qLayoutExclude=null!==(o=s.hcProperties.qLayoutExclude)&&void 0!==o?o:{qHyperCubeDef:{qDimensions:[],qMeasures:[]}},s.hcProperties.qLayoutExclude.qHyperCubeDef=null!==(i=s.hcProperties.qLayoutExclude.qHyperCubeDef)&&void 0!==i?i:{qDimensions:[],qMeasures:[]},s.hcProperties.qLayoutExclude.qHyperCubeDef.qDimensions=null!==(a=s.getAlternativeDimensions())&&void 0!==a?a:[],s.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=null!==(l=s.getAlternativeMeasures())&&void 0!==l?l:[]}(this),function(e){const t=e;t.hcProperties.isHCEnabled&&0===t.hcProperties.qDynamicScript.length&&"S"===t.hcProperties.qMode&&(t.hcProperties.qDynamicScript=[])}(this),this.hcProperties.qDimensions=Zx(this.hcProperties.qDimensions),this.hcProperties.qMeasures=Zx(this.hcProperties.qMeasures)))}getDimensions(){return this.hcProperties?this.hcProperties.qDimensions:[]}getAlternativeDimensions(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qDimensions)&&void 0!==e?e:[]}getDimensionLayout(e){return this.getDimensionLayouts().filter(t=>e===t.cId)[0]}getDimensionLayouts(){const e=Qx(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=Kx(e);return ow(this,t)?ew(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?dw(e,t,o):Promise.resolve(t)}(this,r,n)}async addDimensions(e,t=!1){const n=this.getDimensions(),r=n.length,o=[];let i=0;var l,s=!1,c=!1;try{for(var u,d=a(e);s=!(u=await d.next()).done;s=!1){const e=u.value;{if(rw(this,n))return o;const a=Kx(e);if(ow(this,t)){const e=await ew(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await iw(this,a,r,n,o,i),i++)}}}catch(e){c=!0,l=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw l}}return o}removeDimension(e,t){return t?mw(this,e):fw(this,e)}async removeDimensions(e,t){const n=this.getAlternativeDimensions(),r=this.getDimensions();if(0===e.length)return[];let o=[];const i=[...e].sort((e,t)=>t-e);if(t&&n.length>0){o=Yx(n,e);var l,s=!1,c=!1;try{for(var u,d=a(i);s=!(u=await d.next()).done;s=!1){const e=u.value;await mw(this,e)}}catch(e){c=!0,l=e}finally{try{s&&null!=d.return&&await d.return()}finally{if(c)throw l}}}else if(r.length>0){o=Yx(r,e);var p,f=!1,h=!1;try{for(var m,g=a(i);f=!(m=await g.next()).done;f=!1){const e=m.value;await fw(this,e)}}catch(e){h=!0,p=e}finally{try{f&&null!=g.return&&await g.return()}finally{if(h)throw p}}}return o}replaceDimension(e,t){return this.autoSortDimension(t).then(()=>function(e,t,n){if(!n)return;const r=e.getDimensions(),o=r[t],i=u(u({},n),{},{qDef:u(u({},n.qDef),{},{cId:Ux()})});return r[t]=i,i&&"function"==typeof e.dimensionDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertDimension(e,t,n){const r=Gx(e);return ow(this,t)?ew(this,r,n).then(()=>{nw(this,r)}):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?(r.splice(o,0,t),tw(e,r),nw(e,t)):Promise.resolve(t)}(this,r,n)}moveDimension(e,t){const n=this.getDimensions(),r=this.getAlternativeDimensions();return e<n.length&&t<n.length?Promise.resolve(GS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?Promise.resolve(cw(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;GS.move(r,o,i)}(e,t,n,r))}autoSortDimension(e){return e.qLibraryId?function(e,t){return e.app.getDimensionList().then(n=>{const r=(null==t?void 0:t.qLibraryId)&&(o=t.qLibraryId,(i=n)&&i.find(e=>e.qInfo.qId===o)||null);var o,i;return r&&Xx(r.qData.info,t,e),t})}(this,e):function(e,t){return e.app.getFieldList().then(n=>{var r;const o=(null==t||null===(r=t.qDef)||void 0===r?void 0:r.qFieldDefs)&&((e,t)=>{const n=(e=>{const t=[];return e.forEach(e=>{t.push((e=>{const t=e;return t.isDateField=(e=>{var t,n;return(null==e?void 0:e.qDerivedFieldData)&&((null==e||null===(t=e.qTags)||void 0===t?void 0:t.indexOf("$date"))>-1||(null==e||null===(n=e.qTags)||void 0===n?void 0:n.indexOf("$timestamp"))>-1)})(t),t.isGeoField=(e=>e.qTags.indexOf("$geoname")>-1)(t),t})(e));const n=(e=>{const t=[];return e.qDerivedFieldData?(e.qDerivedFieldData.qDerivedFieldLists.forEach(n=>{n.qFieldDefs.forEach(r=>{var o;t.push({qName:r.qName,displayName:(o=r.qName,o?o.split(".autoCalendar").join(""):""),qSrcTables:e.qSrcTables,qTags:r.qTags,isDerived:!0,isDerivedFromDate:e.isDateField,sourceField:e.qName,derivedDefinitionName:n.qDerivedDefinitionName})})}),t):t})(e);t.push(...n)}),t})(t.slice(0)),r=(e=>{let t=e;t=t.trim(),"="===t.charAt(0)&&(t=t.substring(1),t=t.trim());const n=t.length-1;return"["===t.charAt(0)&&"]"===t.charAt(n)&&(t=t.substring(1,n),t=t.trim()),t})(e);return n&&((e,t)=>t&&t.find(t=>t.qName===e)||null)(r,n)||null})(t.qDef.qFieldDefs[0],n);return o&&Xx([o],t,e),t})}(this,e)}getMeasures(){return this.hcProperties?this.hcProperties.qMeasures:[]}getAlternativeMeasures(){var e,t;return null!==(e=null===(t=this.hcProperties)||void 0===t||null===(t=t.qLayoutExclude)||void 0===t||null===(t=t.qHyperCubeDef)||void 0===t?void 0:t.qMeasures)&&void 0!==e?e:[]}getMeasureLayouts(){const e=Qx(this.layout,this.path);return e?e.qMeasureInfo:[]}getMeasureLayout(e){return this.getMeasureLayouts().filter(t=>e===t.cId)[0]}addMeasure(e,t,n){const r=Gx(e);return sw(this,t)?aw(this,r,n):pw(this,r,n)}autoSortMeasure(e){const t=e;return t.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},Promise.resolve(t)}addMeasures(e,t=!1){const n=this.getMeasures(),r=[];let o=0;return e.forEach(async e=>{if(function(e,t){return e.getAlternativeMeasures().length+t.length>=Wx}(this,n))return!1;const i=Gx(e);return sw(this,t||!1)?(aw(this,i),r.push(i)):n.length<this.maxMeasures()&&(await function(e,t,n,r,o){const i=e.getDimensions(),a=u({},t);return a.qSortBy={qSortByLoadOrder:1,qSortByNumeric:-1},GS.indexAdded(e.hcProperties.qInterColumnSortOrder,i.length+n.length+o),n.push(a),r.push(a),"function"==typeof e.measureDefinition.add&&e.measureDefinition.add.call(null,a,e.properties,e),Promise.resolve(r)}(this,i,n,r,o),o++),!0}),r}removeMeasure(e,t){return t?function(e,t){return e.getAlternativeMeasures().splice(t,1)}(this,e):hw(this,e)}async removeMeasures(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();let o=[];if(0===e.length)return o;if(t&&r.length>0)o=Yx(r,e),function(e,t){const n=e,r=function(e,t){return e.filter((e,n)=>!t.includes(n))}(n.getAlternativeMeasures(),t);n.hcProperties.qLayoutExclude.qHyperCubeDef.qMeasures=r}(this,e);else if(n.length>0){o=Yx(n,e);const t=[...e].sort((e,t)=>t-e);var i,l=!1,s=!1;try{for(var c,u=a(t);l=!(c=await u.next()).done;l=!1){const e=c.value;await hw(this,e)}}catch(e){s=!0,i=e}finally{try{l&&null!=u.return&&await u.return()}finally{if(s)throw i}}}return o}replaceMeasure(e,t){return this.autoSortMeasure(t).then(()=>function(e,t,n){const r=e.getMeasures(),o=r[t],i=u(u({},n),{},{qDef:u(u({},n.qDef),{},{cId:Ux()})});return r[t]=i,i&&"function"==typeof e.measureDefinition.replace&&e.dimensionDefinition.replace.call(null,i,o,t,e.properties,e),i}(this,e,t))}reinsertMeasure(e,t,n){const r=Gx(e);return sw(this,t)?aw(this,r,n):gw(this,r,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(GS.move(n,e,t)):e<n.length&&t>=n.length?function(e,t,n,r){const o=t-n.length;let[i]=r.splice(0,1);return n.push(i),[i]=n.splice(e,1),r.splice(o,0,i),Promise.resolve(i)}(e,t,n,r):e>=n.length&&t<n.length?cw(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;GS.move(r,o,i)}(e,t,n,r))}setSorting(e){e&&e.length===this.hcProperties.qInterColumnSortOrder.length&&(this.hcProperties.qInterColumnSortOrder=e)}getSorting(){return this.hcProperties.qInterColumnSortOrder}changeSorting(e,t){VS.move(this.hcProperties.qInterColumnSortOrder,e,t)}IsHCInStraightMode(){return"S"===this.hcProperties.qMode}setHCEnabled(e){this.hcProperties&&(this.hcProperties.isHCEnabled=e)}getDynamicScripts(){var e;return(null===(e=this.hcProperties)||void 0===e?void 0:e.qDynamicScript)||[]}}e("H",bw);const yw=()=>{};function vw(e,t){return void 0===e?()=>t:()=>e}function Sw(e){const t=e||{};return{min:"function"==typeof t.min?t.min:vw(t.min,0),max:"function"==typeof t.max?t.max:vw(t.max,1e3),added:t.added||t.add||yw,description:t.description||yw,moved:t.moved||t.move||yw,removed:t.removed||t.remove||yw,replaced:t.replaced||t.replace||yw,isDefined:()=>!!e}}function xw(e){const t=e.path||"/qHyperCubeDef",n=t.slice(0,-3);if(!1===/\/(qHyperCube|qListObject|qChildList)$/.test(n)){const e=n.includes("/qHyperCube")?"qHyperCubeDef":"qListObjectDef";throw new Error(`Incorrect definition for ${e} at ${t}. Valid paths include /qHyperCubeDef, /qListObjectDef, or /qChildListDef, e.g. data/qHyperCubeDef`)}return{propertyPath:t,layoutPath:n,resolveLayout:e=>((e,t,n)=>{const r=t.split("/");let o=e;if(void 0===o)return n;for(let e=0;e<r.length;++e)if(""!==r[e]){if(void 0===o[r[e]])return n;o=o[r[e]]}return o})(e,n,{}),dimensions:Sw(e.dimensions),measures:Sw(e.measures)}}function ww(e={}){let t,n=e.properties||{};e.properties&&(e.properties.initial||e.properties.onChange)&&(n=e.properties.initial,t=e.properties.onChange);return{properties:{initial:n,onChange:t},data:{targets:((e.data||{}).targets||[]).map(xw)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function kw(e,t){var n,r;let o;o="function"==typeof e?e(t):e;const i={qae:ww(o.qae),component:o.component||{},create:e=>Fx(i,e,t),definition:t.flags.isEnabled("NEBULA_DATA_HANDLERS")?{dataHandler:null!==(n=null===(r=o)||void 0===r?void 0:r.dataHandler)&&void 0!==n?n:e=>new bw(e)}:{}};return Object.keys(o).forEach(e=>{i[e]||(i.definition[e]=o[e])}),i}var Cw=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M8.86225926,1.6 L15.7815749,13.5 C16.2829746,14.3 15.8818548,15 14.9793354,15 L1.04042422,15 C0.0853772072,15 -0.232971797,14.3650794 0.172002787,13.6135407 L7.05722041,1.6 C7.55862009,0.8 8.36085958,0.8 8.86225926,1.6 Z M7.962,2.007 C7.95987183,2.02476599 7.95607967,2.03712023 7.94920396,2.05249845 L1.1033193,14 L14.915544,14 L7.99777452,2.10265906 L7.97779697,2.06138411 L7.96394459,2.01964415 L7.962,2.007 Z M7.5,11 L8.5,11 C8.76666667,11 8.95432099,11.1580247 8.99272977,11.4038409 L9,11.5 L9,12.5 C9,12.7666667 8.84197531,12.954321 8.59615912,12.9927298 L8.5,13 L7.5,13 C7.23333333,13 7.04567901,12.8419753 7.00727023,12.5961591 L7,12.5 L7,11.5 C7,11.2333333 7.15802469,11.045679 7.40384088,11.0072702 L7.5,11 L8.5,11 L7.5,11 Z M7.5,5 L8.5,5 C8.76666667,5 8.95432099,5.15802469 8.99272977,5.40384088 L9,5.5 L9,9.5 C9,9.76666667 8.84197531,9.95432099 8.59615912,9.99272977 L8.5,10 L7.5,10 C7.23333333,10 7.04567901,9.84197531 7.00727023,9.59615912 L7,9.5 L7,5.5 C7,5.23333333 7.15802469,5.04567901 7.40384088,5.00727023 L7.5,5 L8.5,5 L7.5,5 Z"}}]}))(e));function Ew({d:e}){const t=Il();let n="inherit",r=t.palette.success.main;e.missing?r=t.palette.warning.main:e.error&&(n="error",r=t.palette.error.main);const o={color:r},i=fr.jsx(Xc,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:fr.jsx(tf,{children:e.missing||e.error?fr.jsx(Cw,{style:o}):fr.jsx(nm,{style:o})})});return fr.jsxs(Kp,{container:!0,alignItems:"center",wrap:"nowrap",children:[fr.jsx(Kp,{children:i}),fr.jsx(Kp,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:fr.jsxs(Xc,{noWrap:!0,component:"p",children:[fr.jsx(Xc,{component:"span",variant:"subtitle2",color:n,children:e.description}),fr.jsx(Xc,{component:"span",children:" "}),fr.jsx(Xc,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function Lw({data:e}){const t=Il();return fr.jsx(Kp,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const r=e.descriptions.map((e,t)=>fr.jsx(Ew,{d:e},t));return r.length>0&&fr.jsxs(Kp,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[fr.jsx(Xc,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),r]},n)})})}function Rw({title:e="Error",message:t="",data:n=[]}){const[r,o]=Rh(),[i,a]=Rh(),[l,s]=Rh(),c=n.some(e=>e.descriptions&&e.descriptions.length>0),u=!!o&&!!a&&!!s&&a.height+s.height>o.height,d=!!o&&!!a&&!!s&&a.width+s.width<=o.width,p=c&&(!!o&&!!a&&!!s)&&(!u||d);return fr.jsxs(Kp,{ref:r,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[fr.jsxs(Kp,{ref:i,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[fr.jsx(Kp,{children:fr.jsx(Cw,{style:{fontSize:"38px"}})}),fr.jsx(Kp,{children:fr.jsx(Xc,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),fr.jsx(Kp,{children:fr.jsx(Xc,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),p?fr.jsx(Lw,{data:n}):null,c?fr.jsx(Kp,{ref:l,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:fr.jsx(Lw,{data:n})}):null]})}const Pw=["size"],Tw="Progress",Ow={root:`${Tw}-root`,front:`${Tw}-front`,back:`${Tw}-back`},Iw=Dl("div")(({theme:e})=>({[`&.${Ow.root}`]:{position:"relative",display:"inline-block"},[`& .${Ow.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Ow.back}`]:{color:e.palette.divider}})),Mw={small:16,medium:32,large:64,xlarge:128};function Dw(e){let{size:t="medium"}=e,n=d(e,Pw);const r=Mw[t];return fr.jsxs(Iw,{className:Ow.root,children:[fr.jsx(ec,u({variant:"determinate",value:100,className:Ow.back,size:r,thickness:3},n)),fr.jsx(ec,u({variant:"indeterminate",disableShrink:!0,className:Ow.front,size:r,thickness:3},n))]})}const _w=["cancel","translator"],Nw=["retry","translator"],qw={stripes:"LongRunningQuery-stripes"},jw=Dl(Kp)(()=>({[`& .${qw.stripes}`]:{"&::before":{position:"absolute",height:"100%",width:"100%",top:0,left:0,content:'""',backgroundSize:"14.14px 14.14px",backgroundImage:"linear-gradient(135deg, currentColor 10%, rgba(0,0,0,0) 10%, rgba(0,0,0,0) 50%, currentColor 50%, currentColor 59%, rgba(0,0,0,0) 60%, rgba(0,0,0,0) 103%)",opacity:.1}}}));function Aw(e){let{cancel:t,translator:n}=e,r=d(e,_w);return fr.jsxs(fr.Fragment,{children:[fr.jsxs(jw,{container:!0,direction:"column",alignItems:"center",gap:2,children:[fr.jsx(Kp,{children:fr.jsx(Dw,{})}),fr.jsx(Kp,{children:fr.jsx(Xc,{variant:"h6",align:"center","data-tid":"update-active",children:n.get("Object.Update.Active")})})]}),fr.jsx(Kp,u(u({},r),{},{children:fr.jsx(dc,{variant:"contained",onClick:t,children:n.get("Cancel")})}))]})}function zw(e){let{retry:t,translator:n}=e,r=d(e,Nw);return fr.jsxs(fr.Fragment,{children:[fr.jsx(Kp,{children:fr.jsx(Cw,{style:{fontSize:"38px"}})}),fr.jsx(Kp,{children:fr.jsx(Xc,{variant:"h6",align:"center","data-tid":"update-cancelled",children:n.get("Object.Update.Cancelled")})}),fr.jsx(Kp,{children:fr.jsx(dc,u(u({variant:"contained",onClick:t},r),{},{children:n.get("Retry")}))})]})}function $w({canCancel:e,canRetry:t,api:n}){const{translator:r}=k.useContext(vc);return fr.jsxs(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:qw.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&fr.jsx(Aw,{cancel:n.cancel,translator:r,className:qw.cancel}),t&&fr.jsx(zw,{retry:n.retry,translator:r,className:qw.retry})]})}function Fw(){return fr.jsx(Kp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:fr.jsx(Dw,{size:"large"})})}const Bw={width:0,height:0},Ww="Header",Hw={containerStyle:`${Ww}-containerStyle`,containerTitleStyle:`${Ww}-containerTitleStyle`},Uw=Dl(Kp)(({theme:e})=>({[`&.${Hw.containerStyle}`]:{flexGrow:0},[`&.${Hw.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),Vw="njs-cell-title",Gw="njs-cell-sub-title";function Kw({id:e,layout:t,sn:n,anchorEl:r,hovering:o,focusHandler:i,titleStyles:a={},isRtl:l,translator:s}){const c=t.showTitles&&!!t.title,u=t.showTitles&&!!t.subtitle,d=t.qSelectionInfo&&t.qSelectionInfo.qInSelections,[p,f]=k.useState([]);k.useEffect(()=>{n&&n.component&&n.component.isHooked&&n.component.observeActions(e=>{f([...e,...n&&n.selectionToolbar&&n.selectionToolbar.items||[]])})},[n]);const h=[Hw.containerStyle,...c||u?[Hw.containerTitleStyle]:[]],m=o||d,g=fr.jsx(ub,{show:!1,selections:{show:d,api:n.component.selections,onKeyDeactivate:i.refocusContent},actions:p,popover:{show:m,anchorEl:r},focusHandler:i,layout:t,isRtl:l});return fr.jsxs(Uw,{container:!0,wrap:"nowrap",className:h.join(" "),children:[fr.jsx(Kp,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:fr.jsxs(Kp,{container:!0,wrap:"nowrap",direction:"column",children:[c?fr.jsx(yh,{title:t.title,children:fr.jsx(Xc,{id:`${e}_title`,variant:"h6",noWrap:!0,className:Vw,style:a.main,children:t.title})}):fr.jsx("div",{id:`${e}_title`,style:Bw,"aria-label":s.get("Accessibility.Object.NoTitle")}),u&&fr.jsx(yh,{title:t.subtitle,children:fr.jsx(Xc,{variant:"body2",noWrap:!0,className:Gw,style:a.subTitle,children:t.subtitle})})]})}),fr.jsx(Kp,{children:g})]})}const Xw="condition",Jw="search",Zw="clear_selection",Qw="matches_exactly",Yw="starts_with",ek="ends_with",tk="beginning_of_word",nk="general",rk="fixed_value",ok=(e,t)=>{if(!Array.isArray(e))return[];const n=t.get("Object.FilterLabel.Exclude"),r=e.filter(e=>!1!==e.showInFooter);return r.map(e=>{var r;let o="";switch(e.type){case Jw:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case tk:o="*^",i="*";break;case ek:o="*";break;case Yw:i="*";break;case Qw:break;default:o="*",i="*"}const a=null!==(n=null===(r=e.options.values)||void 0===r?void 0:r[0])&&void 0!==n?n:"";return""!==a?`"${o}${a}${i}"`:""})(e);break;case Xw:o+=(e=>{var t,n,r,o,i,a,l;const{options:s}=e,c=(null==s?void 0:s.mode)===nk,u=(null==s||null===(t=s.modifier)||void 0===t?void 0:t.type)===rk,d=null!=s&&null!==(n=s.modifier)&&void 0!==n&&n.operator?s.modifier.operator.split(" "):[];if(0===d.length||!u&&(null===(r=s.firstValue)||void 0===r||!r.aggregator||null===(o=s.firstValue)||void 0===o||!o.field)||u&&(null===(i=s.firstValue)||void 0===i||!i.fixedValue)||c&&(null===(a=s.conditionField)||void 0===a||!a.aggregator||null===(l=s.conditionField)||void 0===l||!l.field))return"";let p,f,h="=";var m,g,b;if(c&&u)p=`${null===(m=s.conditionField)||void 0===m?void 0:m.aggregator}(${Dg(null===(g=s.conditionField)||void 0===g?void 0:g.field)})`,f=`${null===(b=s.firstValue)||void 0===b?void 0:b.fixedValue}`;else if(!c&&u){var y;p="",f=`${null===(y=s.firstValue)||void 0===y?void 0:y.fixedValue}`,h=""}else if(c||u){var v,S,x,w;p=`${null===(v=s.conditionField)||void 0===v?void 0:v.aggregator}(${Dg(null===(S=s.conditionField)||void 0===S?void 0:S.field)})`,f=`${null===(x=s.firstValue)||void 0===x?void 0:x.aggregator}(${Dg(null===(w=s.firstValue)||void 0===w?void 0:w.field)})`}else{var k,C;p=`${Dg(e.field)}`,f=`${null===(k=s.firstValue)||void 0===k?void 0:k.aggregator}(total ${Dg(null===(C=s.firstValue)||void 0===C?void 0:C.field)})`}const E=`${h}${p}${d[0]}${f}`;let L="";if(d.length>1){var R,P,T;if(!u&&(null===(R=s.secondValue)||void 0===R||!R.aggregator||null===(P=s.secondValue)||void 0===P||!P.field)||u&&(null===(T=s.secondValue)||void 0===T||!T.fixedValue))return"";let e,t;var O;if(c&&u)e=`${null===(O=s.secondValue)||void 0===O?void 0:O.fixedValue}`,t=` and ${p}`;else if(!c&&u){var I;e=`${null===(I=s.secondValue)||void 0===I?void 0:I.fixedValue}`,t=""}else if(c||u){var M,D;e=`${null===(M=s.secondValue)||void 0===M?void 0:M.aggregator}(${Dg(null===(D=s.secondValue)||void 0===D?void 0:D.field)})`,t=` and ${p}`}else{var _,N;e=`${null===(_=s.secondValue)||void 0===_?void 0:_.aggregator}(total ${Dg(null===(N=s.secondValue)||void 0===N?void 0:N.field)})`,t=` and ${p}`}L=`${t}${d[1]}${e}`}return`"${E}${L}"`})(e);break;case Zw:o+=t.get("Object.FilterLabel.All");break;default:o+=null!==(r=e.options)&&void 0!==r&&r.values?e.options.values.join(", "):t.get("Object.FilterLabel.Unknown")}return""!==o&&(o=o.replace(/^"|"$/g,""),e.exclude&&(o=`${n} ${o}`)),{field:e.field,label:o}}).filter(e=>""!==e.label)},ik=(e,t)=>ok(e,t).map(e=>`${e.field}: ${e.label}`).join("; ");var ak=e=>Ah((e=>u(u({},e),{},{shapes:[{type:"path",attrs:{d:"M14.07 0a1 1 0 0 1 .816 1.577L10 8.5v4.398a1 1 0 0 1-.532.884l-2.734 1.445A.5.5 0 0 1 6 14.785V8.5L1.112 1.577A1 1 0 0 1 1.93 0zm0 1H1.93L7 8.183v5.772l2-1.057V8.183z"}}]}))(e));function lk({styles:e,children:t}){return fr.jsx(Xc,{noWrap:!0,variant:"body2",style:u(u({},e),{},{fontStyle:"italic"}),children:t})}function sk({layout:e,translator:t,filtersFootnoteString:n,footerStyle:r,isRtl:o}){var i;const a=ok(null!==(i=null==e?void 0:e.filters)&&void 0!==i?i:[],t),l={color:null==r?void 0:r.color,fontFamily:null==r?void 0:r.fontFamily,fontSize:null==r?void 0:r.fontSize,fontWeight:null==r?void 0:r.fontWeight};return fr.jsx(yh,{title:n,children:fr.jsxs(Kp,{container:!0,wrap:"nowrap",sx:{backgroundColor:null==r?void 0:r.backgroundColor,padding:null==r?void 0:r.padding,borderTop:null==r?void 0:r.borderTop},"data-testid":"filters-footnote",justifyContent:o?"flex-end":"flex-start",children:[fr.jsxs(Kp,{sx:{display:"flex"},children:[fr.jsx(ak,{style:{fontSize:"12px",color:r.color,margin:"auto"}}),fr.jsxs(lk,{styles:u(u({},l),{},{marginLeft:"2px"}),children:[t.get("Object.FiltersApplied")," "]})]}),fr.jsx(Kp,{sx:{display:"flex"},children:a.map(e=>fr.jsxs(Kp,{container:!0,wrap:"nowrap",children:[fr.jsx(lk,{styles:u(u({},l),{},{fontWeight:"bold"}),children:`${e.field}:`}),fr.jsxs(lk,{styles:l,children:[" ",e.label," "]})]},`${e.field}-${e.label}`))})]})})}const ck={itemStyle:"Footer-itemStyle"},uk=Dl(Kp)(()=>({[`& .${ck.itemStyle}`]:{minWidth:0,width:"100%"}})),dk="njs-cell-footer";function pk({layout:e,titleStyles:t={},translator:n,flags:r,isCardTheme:o,isRtl:i}){var a,l,s;const c=t.footer,u=(null==e||null===(a=e.filters)||void 0===a?void 0:a.length)>0&&(null==e||null===(l=e.qHyperCube)||void 0===l||null===(l=l.qMeasureInfo)||void 0===l?void 0:l.length)>0,d=ik(null!==(s=null==e?void 0:e.filters)&&void 0!==s?s:[],n),p=!(null!=e&&e.footnote)&&u&&d,f=null==r?void 0:r.isEnabled("VNA-13_CELLPADDING_FROM_THEME"),h=o?"1px":"6px";return e&&e.showTitles&&(e.footnote||p)?fr.jsx(uk,{container:!0,children:fr.jsxs(Kp,{className:ck.itemStyle,"data-testid":dk,sx:{paddingTop:e=>f?h:e.spacing(1)},children:[e.footnote&&fr.jsx(yh,{title:e.footnote,children:fr.jsx(Xc,{noWrap:!0,variant:"body2",className:dk,style:c,align:i?"right":"left",children:e.footnote})}),p&&fr.jsx(sk,{layout:e,translator:n,filtersFootnoteString:d,footerStyle:c,isRtl:i})]})}):null}class fk{constructor(){this.timer=null,this.next=null,this.running=!1}start(){this.running||(this.running=!0,this.scheduleNext())}scheduleNext(){this.timer=setTimeout(()=>{this.doNext()},10)}async doNext(){const e=this.next;this.next=null,e?(await e(),this.scheduleNext()):this.stop()}schedule(e){this.next=e,this.start()}stop(){this.running&&(clearTimeout(this.timer),this.timer=null,this.running=!1)}}const hk="njs-viz";function mk({sn:e,snOptions:t,snPlugins:n,layout:r,appLayout:o,halo:i,cellId:a}){const{component:l}=e,{theme:s,language:c,constraints:d,interactions:p,keyboardNavigation:f}=k.useContext(vc),[h]=k.useState(()=>new fk),[m,g]=k.useState(!1),[b,y]=k.useState(0),[v,S,x]=Rh(),[w,C]=k.useState(null),E=k.useCallback(e=>{e&&C(e)},[]);return k.useEffect(()=>{if(w)return l.created({options:t}),l.mounted(w),g(!0),()=>{h.stop(),l.willUnmount()}},[w,l]),k.useEffect(()=>{m&&w&&S&&(!l.isHooked&&r&&r.qSelectionInfo&&r.qSelectionInfo.qInSelections||h.schedule(()=>{const a=[];return d.passive||a.push("passive"),d.active||a.push("interact"),d.select||a.push("select"),d.edit||a.push("edit"),i.app&&i.app.session&&a.push("fetch"),Promise.resolve(l.render({layout:r,options:t,plugins:n,embed:i.public.nebbie,context:u({constraints:d,interactions:p,theme:i.public.theme,appLayout:o,keyboardNavigation:f},l.isHooked?{}:{logicalSize:e.logicalSize({layout:r}),localeInfo:(o||{}).qLocaleInfo,permissions:a})})).then(e=>{!1!==e&&(0===b&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),y(b+1))})}))},[S,t,n,w,x,r,o,s,c,d,p,m,f]),fr.jsx("div",{ref:v,"data-render-count":b,style:{position:"relative",height:"100%"},className:hk,children:fr.jsx("div",{ref:E,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})}const gk={linechart:"lineChart",barchart:"barChart",combochart:"comboChart",scatterplot:"scatterPlot",piechart:"pieChart",straightable:"straightTable",pivottable:"pivotTable",table:"straightTable","pivot-table":"pivotTable",listbox:"listBox",referenceline:"referenceLine",datacolors:"dataColors","text-image":"textImage",boxplot:"boxPlot",map:"mapChart",mapchart:"mapChart",bulletchart:"bulletChart","sn-table":"straightTableV2",waterfallchart:"waterfallChart","sn-tabbed-container":"tabContainer","sn-slider":"slider"},bk=({layout:e,theme:t,app:n,themeName:r,disableThemeBorder:o,queryParams:i})=>{const{hostConfig:a}=k.useContext(vc),l=k.useMemo(()=>{if(e&&t){const l=e.components?e.components.find(e=>"general"===e.key):null,s=(r=e.visualization,gk[r.toLowerCase()]?gk[r.toLowerCase()]:r),c={main:Cv(l,"main",t,s),footer:Cv(l,"footer",t,s),subTitle:Cv(l,"subTitle",t,s)},u=wv(l,t,s),d=xv(l,n,i,null==a?void 0:a.host),p=function(e,t,n,r){const o=bv(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=gv("","borderWidth",t,n)),i&&o?`${i} solid ${o}`:void 0}(l,t,s,o),f=function(e,t,n){return(null==e?void 0:e.borderRadius)||gv("","borderRadius",t,n)}(l,t,s);return{titleStyles:c,bgColor:u,bgImage:d,border:p,borderRadius:f,boxShadow:kv(l,t,s)}}var r;return{}},[e,t,n,r,o]);return l};class yk extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const vk=["action-button","sn-nav-menu","filterpane","sn-shape"],Sk=[...vk,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],xk=e=>-1===vk.indexOf(e),wk=e=>xk(e)?"10px 10px 0":"10px 0 0",kk=({layout:e,isError:t,isCardTheme:n,titleStyles:r,translator:o})=>{if(n){var i,a,l;const n=(null==e?void 0:e.showTitles)&&!(null==e||!e.title),s=(null==e?void 0:e.showTitles)&&!(null==e||!e.subtitle),c=(null==e||null===(i=e.filters)||void 0===i?void 0:i.length)>0&&(null==e||null===(a=e.qHyperCube)||void 0===a||null===(a=a.qMeasureInfo)||void 0===a?void 0:a.length)>0,u=null==e?void 0:e.visualization,d=ik(null!==(l=null==e?void 0:e.filters)&&void 0!==l?l:[],o),p=!(null!=e&&e.footnote)&&c&&d,f=(null==e?void 0:e.showTitles)&&(!(null==e||!e.footnote)||p);let h;return n&&(r.main.padding=wk(u)),s&&(r.subTitle.padding=((e,t)=>{const n=xk(e);return t?n?"0 10px":"0":wk(e)})(u,n)),f&&(-1===vk.indexOf(u)&&(r.footer.borderTop="1px solid #d9d9d9"),r.footer.padding="6px 10px"),(t||-1===Sk.indexOf(u))&&(h=`${n||s?"0":"10px"} 10px ${f?"0":"5px"}`),h}},Ck=new Map;[["auto-chart","Object.AutoChart"],["dummy-chart","Dummy"],["barchart","Object.BarChart"],["combochart","Object.ComboChart"],["container","Object.Container"],["distributionplot","Object.DistributionPlot"],["boxplot","Object.BoxPlot"],["filterpane","Object.FilterPane"],["gauge","Object.Gauge"],["histogram","Object.Histogram"],["kpi","Object.Kpi"],["linechart","Object.LineChart"],["listbox","Object.Listbox"],["piechart","Object.PieChart"],["pivot-table","Object.PivotTable"],["map","Object.Map"],["scatterplot","Object.ScatterPlot"],["sn-table","Object.StraightTable"],["text-image","Object.TextImage"],["treemap","Object.Treemap"],["waterfallchart","Object.WaterfallChart"],["mekkochart","Object.MekkoChart"],["action-button","Object.ActionButton"],["sn-nav-menu","Object.NavMenu"],["bulletchart","Object.BulletChart"],["sn-nlg-chart","Object.NlgChart"],["sn-analysis-autochart","Common.AnalysisTypes"],["sn-tabbed-container","Object.TabContainer"],["qlik-sankey-chart-ext","Object.SankeyChart"],["qlik-radar-chart","Object.RadarChart"],["qlik-funnel-chart-ext","Object.FunnelChart"],["sn-grid-chart","Object.GridChart"],["sn-layout-container","Object.LayoutContainer"]].forEach(([e,t])=>{Ck.set(e,t)});const Ek="njs-cell",Lk="njs-cell-body";const Rk=(e,t)=>{switch(t.type){case"LOADING":return u(u({},e),{},{loading:!0});case"LOADED":return u(u({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null,sn:t.sn,visualization:t.visualization});case"RENDER":return u(u({},e),{},{loaded:!0,loading:!1,longRunningQuery:!1,error:null});case"LONG_RUNNING_QUERY":return u(u({},e),{},{longRunningQuery:!0});case"ERROR":return u(u({},e),{},{loading:!1,longRunningQuery:!1,error:t.error});default:throw new Error(`Unhandled type: ${t.type}`)}};function Pk({delay:e=750}){const[t,n]=k.useState(!1);return k.useEffect(()=>{const t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[]),t?fr.jsx(Fw,{}):null}const Tk=e=>!e.qError||7005===e.qError.qErrorCode,Ok=e=>e&&e.qError&&7005!==e.qError.qErrorCode,Ik=(e,t,n,r,o)=>[...Array(Math.max(e,t.length)).keys()].map(e=>{const i=!(!t||!t[e]),a=i&&t[e].qError&&7005===t[e].qError.qErrorCode,l=i&&!a&&t[e].qError,s=a&&t[e].qCalcCondMsg,c=`${l?r:a?s||o:i&&t[e].qFallbackTitle||""}`,u=n(e);return{description:u?`${u}${c.length?":":""}`:null,label:c,missing:t&&!i&&!l&&e>=t.length||a,error:l}}),Mk=e=>e&&(Array.isArray(e)?e:[e])||[],Dk=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),l=Ik(o,Mk(a.qDimensionInfo||a.qItems),e=>r.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),s=Ik(i,Mk(a.qMeasureInfo),e=>r.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:l,reqMeasErrors:s}},_k=async(e,t,{targets:n},r)=>{const{hasUnfulfilledErrors:o,aggMinD:i,aggMinM:a,hasLayoutErrors:l,layoutErrors:s}=((e,t,n)=>{let r=!1,o=0,i=0,a=!1,l=!1;const s=[];for(let c=0;c<t.length;++c){const u=t[c],d=u.dimensions.min(),p=u.measures.min(),f=u.resolveLayout(n),h=Mk(f.qDimensionInfo||f.qItems),m=Mk(f.qMeasureInfo),g=h.filter(Tk),b=m.filter(Tk);if(o+=d,i+=p,(g.length<d||b.length<p)&&(r=!0),r=r||h.some(Ok)||m.some(Ok),f.qError){a=!0,l=7005===f.qError.qErrorCode;const t=l&&f.qCalcCondMsg?f.qCalcCondMsg:l?e.get("Visualization.UnfulfilledCalculationCondition"):e.get("Visualization.LayoutError");s.push({title:t,descriptions:[]})}}return{hasUnfulfilledErrors:r,aggMinD:o,aggMinM:i,hasLayoutErrors:a,layoutErrors:s}})(e,n,t),c=[],u=[];let d=null;for(let i=0;i<n.length;++i){const a=n[i];if(!l&&o){const n=d||await r.getProperties();d=n;const o=Dk(e,t,n,a);c.push(...o.reqDimErrors),u.push(...o.reqMeasErrors)}}const p=c.filter(e=>!(e.missing||e.error)).length,f=e.get("Visualization.Incomplete.Dimensions",[p,i]),h=u.filter(e=>!(e.missing||e.error)).length,m=e.get("Visualization.Incomplete.Measures",[h,a]),g=[{title:f,descriptions:[...c]},{title:m,descriptions:[...u]}],b=l?s:g;return[l||o,{title:l?s[0].title:e.get("Visualization.Incomplete"),data:b}]};function Nk(){return new M}const qk=k.forwardRef(({halo:e,model:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,currentId:a,emitter:l,navigation:s,onError:c},d)=>{var p,f;const{app:h,types:m}=e,{nebbie:g}=e.public,{theme:b,translator:y,language:v,keyboardNavigation:S,externalFocusManagement:x,disableCellPadding:w=!1,navigation:C,queryParams:E}=k.useContext(vc),[L]=k.useState(l||Nk),R=Il(),[P,T,O]=Rh(),[I,M]=k.useReducer(Rk,{loading:!1,loaded:!1,longRunningQuery:!1,error:(D=o)?{title:D.message}:null,sn:null,visualization:null});var D;const[_,N]=k.useState(t),[q,{validating:j,canCancel:A,canRetry:z},$]=Eh(_),[F]=Lh(h),[B,W,H]=Rh(),[U,V]=k.useState(n),[G,K]=k.useState(r),X=`njs-cell-${a}`,[J]=xb(h,_,[`#${X}`,".njs-action-toolbar-popover"]),[Z,Q]=k.useState(!1),Y=k.useRef({enter:null,leave:null}),{titleStyles:ee,bgColor:te,bgImage:ne,border:re,borderRadius:oe,boxShadow:ie}=bk({layout:q,theme:e.public.theme,app:e.app,themeName:b,disableThemeBorder:null==U?void 0:U.disableThemeBorder,queryParams:E}),ae=!("rtl"!==(null==U?void 0:U.direction)),le=k.useRef({focusToolbarButton(e){this.emit(e?"focus_toolbar_last":"focus_toolbar_first")}});k.useEffect(()=>{yb(le.current),le.current.blurCallback=t=>{le.current.onBlurHandler?le.current.onBlurHandler(t):(e.root.toggleFocusOfCells(),t&&H&&H.focus())},le.current.refocusContent=()=>{I.sn.component&&"function"==typeof I.sn.component.focus&&I.sn.component.focus()}},[]);k.useEffect(()=>{if(o)return void i();if(!F||!q)return;if(I.visualization===q.visualization&&I.sn)return void(async e=>{const[t,n]=await _k(y,q,e.generator.qae.data,_);M(t?{type:"ERROR",error:n}:{type:"RENDER"}),(({sn:e,layout:t,model:n})=>{const r=e&&e.component&&e.component.selections;if(r&&r.id&&n.id&&r.id===n.id){if(t&&t.qSelectionInfo&&t.qSelectionInfo.qInSelections&&!r.isModal()){const{targets:t}=e.generator.qae.data,n=t[0].propertyPath;r.goModal(n)}t.qSelectionInfo&&t.qSelectionInfo.qInSelections||r.isModal()&&r.noModal()}})({sn:I.sn,layout:q,model:_})})(I.sn);const e=m.getSupportedVersion(q.visualization,q.version);return(async(e,t)=>{M({type:"LOADING"}),await(async({dispatch:e,types:t,visualization:n,version:r,model:o,app:i,selections:a,nebbie:l,focusHandler:s,emitter:c,onMount:u,navigation:d})=>{try{const p=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:r}),f=p.create({model:o,app:i,selections:a,nebbie:l,focusHandler:s,emitter:c,navigation:d});f&&(e({type:"LOADED",sn:f,visualization:n}),u())}catch(t){e(r?{type:"ERROR",error:{title:t.message,errorObject:t}}:{type:"ERROR",error:{title:`Could not find a version of '${n}' that supports current object version. Did you forget to register ${n}?`}}),u()}})({dispatch:M,types:m,visualization:e,version:t,model:_,app:h,selections:J,nebbie:g,focusHandler:le.current,emitter:L,onMount:i,navigation:null!=s?s:C})})(q.visualization,e),()=>{}},[m,I.sn,_,J,q,F,v]),k.useEffect(()=>{if(!j)return;const e=setTimeout(()=>M({type:"LONG_RUNNING_QUERY"}),2e3);return()=>clearTimeout(e)},[j]),k.useImperativeHandle(d,()=>({getQae:()=>I.sn.generator.qae,getExtensionDefinition:()=>I.sn.generator.definition.ext,support(e,t,n){if(q&&I.loaded&&!I.error){var r;const o=t||(null===(r=I.sn.generator.definition.ext)||void 0===r?void 0:r.support);if(o)return function(e,t,n){const r=t[e];return"function"==typeof r?r.call(null,n):"boolean"==typeof r&&r}(e,o,n||q)}return!1},toggleFocus(e){"function"==typeof I.sn.component.focus&&(e?I.sn.component.focus():I.sn.component.blur())},setOnBlurHandler(e){le.current.onBlurHandler=e},setSnOptions:V,setSnPlugins:K,setModel:N,getImperativeHandle(){var e;return null!==(e=I.sn)&&void 0!==e&&e.component&&"function"==typeof I.sn.component.getImperativeHandle?I.sn.component.getImperativeHandle():{}},onContextMenu(...e){var t;return null===(t=I.sn)||void 0===t?void 0:t.component.onContextMenu(...e)},async takeSnapshot(){const{width:e,height:t}=T;let n=JSON.parse(JSON.stringify(q));return"function"==typeof I.sn.component.setSnapshotData&&(n.snapshotData||(n.snapshotData={}),n=await I.sn.component.setSnapshotData(n)||n),{key:String(+Date.now()),meta:{language:y.language(),theme:R.name,appLayout:F,size:{width:Math.round(e),height:Math.round(t)}},layout:n}},async exportImage(){if("function"!=typeof e.config.snapshot.capture)throw new Error("Stardust embed has not been configured with snapshot.capture callback");const t=await this.takeSnapshot();return e.config.snapshot.capture(t)},getHypercubePath(){var e;return null===(e=I.sn.generator.definition.ext)||void 0===e||null===(e=e.options)||void 0===e?void 0:e.hypercubePath}}),[I.sn,W,T,q,R.name,F]);let se=null;if(I.loading&&!I.longRunningQuery)se=fr.jsx(Pk,{});else if(I.error){if(c){c(I.error.errorObject?I.error.errorObject:new yk(I.error.title))}se=fr.jsx(Rw,u({},I.error))}else I.loaded&&(se=fr.jsx(mk,{sn:I.sn,halo:e,snOptions:U,snPlugins:G,layout:q,appLayout:F,cellId:a},q.visualization));const ce=!(null===(p=e.public.theme)||void 0===p||!p.getStyle("","","_cards")),ue=null===(f=e.public.galaxy)||void 0===f?void 0:f.flags;let de,pe;w?(de=!1,pe=void 0):null!=ue&&ue.isEnabled("VNA-13_CELLPADDING_FROM_THEME")?(de=!1,pe=kk({layout:q,isError:I.error,isCardTheme:ce,titleStyles:ee,translator:y})):(de=!0,pe=void 0);const fe=Ck.get(null==q?void 0:q.visualization),he=y.get(fe);return fr.jsxs(Ac,{style:{position:"relative",width:"100%",height:"100%",overflow:"hidden",backgroundColor:te||"unset",backgroundImage:ne&&ne.url?`url(${ne.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:ne&&ne.size,backgroundPosition:ne&&ne.pos,border:re,borderRadius:oe,boxShadow:ie,boxSizing:"border-box"},elevation:0,square:!0,className:Ek,ref:P,id:X,onMouseEnter:()=>{Y.current.leave&&clearTimeout(Y.current.leave),Y.enter||(Y.current.enter=setTimeout(()=>{Q(!0),Y.current.enter=null},250))},onMouseLeave:()=>{Y.current.enter&&clearTimeout(Y.current.enter),Y.current.leave||(Y.current.leave=setTimeout(()=>{Q(!1),Y.current.leave=null},750))},children:[fr.jsxs(Kp,{container:!0,direction:"column",gap:0,style:u(u({position:"relative",width:"100%",height:"100%"},de?{padding:R.spacing(1)}:{}),I.longRunningQuery?{opacity:"0.3"}:{}),"aria-labelledby":`${a}_title ${a}_type ${a}_content`,children:[q&&fr.jsx("div",{id:`${a}_type`,style:Bw,"aria-label":null!=he?he:q.visualization}),O&&q&&I.sn&&fr.jsx(Kw,{layout:q,sn:I.sn,anchorEl:O,hovering:Z,focusHandler:le.current,titleStyles:ee,isRtl:ae,id:a,translator:y,children:" "}),fr.jsx(Kp,{tabIndex:S&&!x?0:-1,onKeyDown:S&&!x?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,size:"grow",className:Lk,style:u({height:"100%"},pe?{padding:pe}:{}),ref:B,children:se}),O&&q&&I.sn&&fr.jsx(pk,{layout:q,titleStyles:ee,translator:y,flags:ue,isCardTheme:ce,isRtl:ae})]}),I.longRunningQuery&&fr.jsx($w,{canCancel:A,canRetry:z,api:$})]})});function jk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Ak(e="/",t,n){const r=[];return Object.keys(t).forEach(o=>{const i=t[o];"object"!=typeof n[o]||"object"!=typeof i||Array.isArray(i)?function(e,t){return jk(e)&&jk(t)?JSON.stringify(e)===JSON.stringify(t):!Array.isArray(e)&&!Array.isArray(t)&&e===t}(i,n[o])||r.push({qPath:e+o,qOp:"add",qValue:JSON.stringify(t[o])}):r.push(...Ak(`${e}${o}/`,t[o],n[o]))}),r}function zk(e){if(!Array.isArray(e))throw new Error("Invalid plugin format: plugins should be an array!");e.forEach(e=>{if("object"!=typeof e)throw new Error("Invalid plugin format: a plugin should be an object");if("object"!=typeof e.info||"string"!=typeof e.info.name)throw new Error("Invalid plugin format: a plugin should have an info object containing a name");if("function"!=typeof e.fn)throw new Error(`Invalid plugin format: The plugin "${e.info.name}" has no "fn" function`)})}const $k=(e,t,n)=>{if(!e)return Promise.resolve();let r=ax.generate(t,n);return ge(!0,t,n),r&&r.length?(r=r.map(e=>({qOp:e.op,qValue:JSON.stringify(e.value),qPath:e.path})),e.__snInterceptor?e.__snInterceptor.applyPatches.call(e,r,!0):e.applyPatches(r,!0)):Promise.resolve()},Fk=()=>{};function Bk({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:a=()=>{}}={}){var l;let s,c,d,p=Fk,f=null,h=null,m=null,g=null,b=!1;const y=new Promise(e=>{m=e}),v=new Promise(e=>{g=e}),S=e=>()=>{null==e||e(),g(),i(),b=!0};let x={},w=[];const k=new M;let E={};null!==(l=t.context)&&void 0!==l&&l.enablePrivateExperimental&&(E={support(e){var t;return!(!h||!b)&&f.current.support(e,null===(t=c)||void 0===t?void 0:t.support,d)},getPropertyPanelDefinition:()=>!(!h||!b)&&(c?c.definition:f.current.getExtensionDefinition().definition),async getHypercubePropertyHandler(){await v;const t=f.current.getExtensionDefinition(),n=t.data,r=await e.getEffectiveProperties();if(n){var o,i;const a={app:e.app,dimensionDefinition:n.dimensions,measureDefinition:n.measures,dimensionProperties:(null===(o=r.qHyperCubeDef)||void 0===o||null===(o=o.qDimensions)||void 0===o?void 0:o[0])||YS.getDefaultDimension(),measureProperties:(null===(i=r.qHyperCubeDef)||void 0===i||null===(i=i.qMeasures)||void 0===i?void 0:i[0])||YS.getDefaultMeasure(),globalChangeListeners:void 0,path:f.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(a):new bw(a)}},toggleFocus(e){f.current.toggleFocus(e)},setOnBlurHandler(e){f.current.setOnBlurHandler(e)},onContextMenu:(...e)=>f.current.onContextMenu(...e)});const L=u(u({id:e.id,model:e,async destroy(){await o(),p(),p=Fk},async convertTo(n,r=!0,o=!1){if(r){if((e=>{var t;return!(!e||e.qHasSoftPatches||e.qExtendsId||!(((null===(t=e.qMeta)||void 0===t?void 0:t.privileges)||[]).indexOf("update")>-1))})(await e.getLayout())&&!o){const r=await ox({halo:t,model:e,cellRef:f,newType:n});return await((e,t)=>e.__snInterceptor?e.__snInterceptor.setProperties.call(e,t):e.setProperties(t))(e,r.qProperty),r}const r=await e.getEffectiveProperties(),i=await ox({halo:t,model:e,cellRef:f,newType:n,properties:r}),a=i.qProperty;return await $k(e,r,a),i}return await ox({halo:t,model:e,cellRef:f,newType:n})},async toggleDataView(n){let r;if(s||!1===n)s&&!0!==n&&(r=e,await t.app.destroySessionObject(s),s=void 0,c=void 0,d=void 0);else{let n=t.context.dataViewType;const o=await e.getEffectiveProperties();if(!t.types.getSupportedVersion(n)){if(!t.types.getSupportedVersion("table"))throw new Error("No data view type registered");n="table"}const i=await ox({halo:t,model:e,cellRef:f,newType:n,properties:o,viewDataMode:!0});r=await t.app.createSessionObject(i.qProperty),s=r.id,c=f.current.getExtensionDefinition(),d=await e.getLayout()}r&&f.current.setModel(r)},get viewDataToggled(){return void 0!==s},addListener(e,t){k.addListener(e,t)},removeListener(e,t){k.removeListener(e,t)},getImperativeHandle:async()=>(await v,f.current.getImperativeHandle()),takeSnapshot:async()=>(await v,f.current.takeSnapshot())},E),{},{__DO_NOT_USE__:{mount(o){if(h)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return h=o,[p,f]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,emitter:a,initialError:l,navigation:s,onError:c}){const{root:u}=e,d=C.createRef(),p=Gv(),f=ps.createPortal(fr.jsx(qk,{ref:d,halo:e,model:n,currentId:p,initialSnOptions:r,initialSnPlugins:o,initialError:l,onMount:i,emitter:a,navigation:s,onError:c}),t,p),h=()=>{u.remove(f),n.removeListener("closed",h)};return n.on("closed",h),u.addCell(p,d),(async()=>{try{await u.add(f,h)}catch(e){h(),i(),c(e)}})(),[h,d]}({halo:t,element:o,model:e,initialSnOptions:x,initialSnPlugins:w,initialError:r,onMount:m,emitter:k,navigation:n,onError:a}),y},async applyProperties(t){const n=Ak("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;h?(async()=>{await y,f.current.setSnOptions(u(u(u({},x),e),{onInitialRender:S(t)}))})():x=u(u(u({},x),e),{onInitialRender:S(t)})})(e)},plugins(e){(async e=>{zk(e),h?(async()=>{await y,f.current.setSnPlugins(e)})():w=e})(e)},exportImage:()=>f.current.exportImage(),takeSnapshot:()=>f.current.takeSnapshot(),getModel:()=>e,convert:{async toType(n){const r=await e.getEffectiveProperties(),o=await ox({halo:t,model:e,cellRef:f,newType:n,properties:r}),i=o.qProperty;return await $k(e,r,i),o},async revert(){await e.clearSoftPatches()}}}});return L}async function Wk(e,t,n,r,o,i=async()=>{}){const{onRender:a,onError:l}=t,s=Bk({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return s.__DO_NOT_USE__.options(t.options||{}),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}async function Hk({type:e,version:t,fields:n,properties:r,extendProperties:o},i,a,l){let s={};const c=[],{modelStore:u}=l;try{const a=i.types.get({name:e,version:t});s=await a.initialProperties(r,o);const l=await a.supernova();n&&await HS({sn:l,properties:s,fields:n,children:c},i),r&&l&&l.qae.properties.onChange&&l.qae.properties.onChange.call({},s)}catch(t){s=a?null:{qInfo:{qType:e},visualization:e}}if(!a){const e=await i.app.createObject(s);return c.length>0&&await e.setFullPropertyTree({qProperty:s,qChildren:c}),u.set(e.id,e),e}return s}const Uk="njs-sheet";function Vk(e,t,n){return e.bounds?e.bounds:{y:e.row/n*100,x:e.col/t*100,width:e.colspan/t*100,height:e.rowspan/n*100}}const Gk=k.forwardRef(({model:e,halo:t,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,unmount:a,navigation:l,onError:s},c)=>{var d;const{root:p}=t,[f,h]=k.useState(e),[m]=Eh(f),{theme:g,modelStore:b}=k.useContext(vc),[y,v]=k.useState([]),[S,x]=k.useState(void 0),[w,E]=k.useState(void 0),[L,R]=k.useState(""),P=k.useRef({cellCount:0,cellsRendered:0,initialRender:!1});null==l||null===(d=l.setCurrentSheetId)||void 0===d||d.call(l,f.id),k.useEffect(()=>{if(m){const e=JSON.stringify(m.cells);if(e===L)return;R(e);const r=async()=>{y.forEach(e=>{p.removeCell(e.currentId)});const e=m.cells;P.cellCount=e.length,P.cellsRendered=0;const r=()=>{P.cellsRendered++,P.cellsRendered!==P.cellCount||P.initialRender||(P.initialRender=!0,n.onInitialRender())},{columns:o,rows:i}=m,a=await Promise.all(e.map(async e=>{let a;const l=new Promise(e=>{a=e}),s=y.find(t=>t.id===e.name);if(s)return s.bounds=Vk(e,o,i),delete s.mountedPromise,s;const c=await async function({id:e,options:t,plugins:n,element:r},o,i){const{modelStore:a,rpcRequestModelStore:l}=i,s=`${e}`;let c=l.get(s);c||(c=o.app.getObject(e),l.set(s,c));const u=await c;return a.set(s,u),Wk(u,{options:t,plugins:n,element:r},o)}({id:e.name},t,b);return{model:c.model,id:e.name,bounds:Vk(e,o,i),cellRef:C.createRef(),currentId:Gv(),mounted:a,mountedPromise:l,options:u(u({},n),{onInitialRender:r})}}));a.forEach(e=>p.addCell(e.currentId,e.cellRef)),v(a)};r()}},[m]),k.useEffect(()=>{const e=()=>{f.removeListener("closed",e),a()};return f.on("closed",e),()=>f.removeListener("closed",e)},[f]);const T=k.useMemo(()=>y?y.map(e=>function(e,t,n,r,o,i,a,l){var s;const{x:c,y:u,width:d,height:p}=e.bounds,f={left:`${c}%`,top:`${u}%`,width:`${d}%`,height:`${p}%`,position:"absolute"},h=null===(s=t.public.galaxy)||void 0===s?void 0:s.flags;return null!=h&&h.isEnabled("VNA-13_CELLPADDING_FROM_THEME")&&(f.boxSizing="border-box",f.padding="4px"),fr.jsx("div",{style:f,children:fr.jsx(qk,{ref:e.cellRef,halo:t,model:e.model,currentId:e.currentId,initialSnOptions:n,initialSnPlugins:r,initialError:o,onMount:i,navigation:a,onError:l})},e.model.id)}(e,t,e.options,r,o,e.mounted,l,s)):[],[y]);k.useEffect(()=>{const e=null!=m&&m.components?m.components.find(e=>"general"===e.key):null;x(wv(e,t.public.theme)),E(xv(e,t.app))},[m,t.public.theme,t.app,g]),k.useImperativeHandle(c,()=>({setModel:h}),[]);const O=!m||void 0===m.height||Number.isNaN(m.height)?"100%":`${Number(m.height)}%`,I=y.map(e=>e.mountedPromise),M=I.filter(e=>!!e);return M.length&&Promise.all(I).then(()=>{i()}),fr.jsx("div",{className:Uk,style:{width:"100%",height:O,position:"relative",backgroundColor:S,backgroundImage:w&&w.url?`url(${w.url})`:void 0,backgroundRepeat:"no-repeat",backgroundSize:w&&w.size,backgroundPosition:w&&w.pos},children:T})});const Kk=()=>{};function Xk({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:a=()=>{}}={}){let l=Kk,s=null,c=null,d=null,p=null;const f=new Promise(e=>{d=e}),h=new Promise(e=>{p=e}),m=e=>()=>{null==e||e(),p(),i()};let g={},b=[];const y={id:e.id,model:e,navigation:n,getImperativeHandle:async()=>(await h,s.current.getImperativeHandle()),async destroy(){await o(),l(),l=Kk},__DO_NOT_USE__:{mount(o){if(c)throw new Error("Already mounted");if(!(o instanceof HTMLElement))throw new Error("Provided element is not a proper HTMLElement");return c=o,[l,s]=function({halo:e,element:t,model:n,initialSnOptions:r,initialSnPlugins:o,onMount:i,initialError:a,navigation:l,onError:s}){const{root:c}=e,u=C.createRef();let d;const p=()=>{c.remove(d)};return d=ps.createPortal(fr.jsx(Gk,{ref:u,halo:e,model:n,initialSnOptions:r,initialSnPlugins:o,initialError:a,onMount:i,unmount:p,navigation:l,onError:s}),t,n.id),l.setSheetRef(u),c.add(d,p),[p,u]}({halo:t,element:o,model:e,initialSnOptions:g,initialSnPlugins:b,initialError:r,onMount:d,navigation:n,onError:a}),f},async applyProperties(t){const n=Ak("/",t,await e.getEffectiveProperties());if(n.length)return e.applyPatches(n,!0)},options(e){(async e=>{const t=e.onInitialRender;c?(async()=>{await f,s.current.setSnOptions(u(u(u({},g),e),{onInitialRender:m(t)}))})():g=u(u(u({},g),e),{onInitialRender:m(t)})})(e)},plugins(e){(async e=>{zk(e),c?(async()=>{await f,s.current.setSnPlugins(e)})():b=e})(e)},exportImage(){throw new Error("Not implemented")},takeSnapshot(){throw new Error("Not implemented")},getModel:()=>e}};return y}async function Jk({id:e,options:t,plugins:n,element:r,onRender:o,onError:i,navigation:a},l,s){const{modelStore:c,rpcRequestModelStore:u}=s,d=`${e}`;let p=u.get(d);p||(p=l.app.getObject(e),u.set(d,p));const f=await p;c.set(d,f);const h=a||("sheet"===f.genericType?function(e,t,n){var r;const{galaxy:o}=e.public;var i;if(null!==(r=o.anything)&&void 0!==r&&null!==(r=r.sense)&&void 0!==r&&r.navigation)return null===(i=o.anything)||void 0===i||null===(i=i.sense)||void 0===i?void 0:i.navigation;const a={model:n},l={goToSheet:async n=>{var r,o;if(!a.sheetRef)return;const{modelStore:i,rpcRequestModelStore:s}=t,c=`${n}`;let u,d=s.get(c);d||(d=e.app.getObject(n),s.set(c,d));try{if(u=await d,"sheet"!==u.genericType)return}catch(e){return}i.set(c,u),null===(r=a.sheetRef)||void 0===r||null===(r=r.current)||void 0===r||null===(o=r.setModel)||void 0===o||o.call(r,u),a.model=u,l.emit("sheetChanged")},setSheetRef:e=>{a.sheetRef=e},getCurrentSheetId:()=>!!a.model&&a.model.id};return yb(l),l}(l,s,f):void 0);return"sheet"===f.genericType?async function(e,t,n,r,o,i=async()=>{}){const{onRender:a,onError:l}=t,s=Xk({model:e,halo:n,navigation:r,initialError:o,onDestroy:i,onRender:a,onError:l});return t.options&&s.__DO_NOT_USE__.options(t.options),t.plugins&&s.__DO_NOT_USE__.plugins(t.plugins),t.element&&await s.__DO_NOT_USE__.mount(t.element),s}(f,{options:t,plugins:n,element:r,onRender:o,onError:i},l,h):Wk(f,{options:t,plugins:n,element:r,onRender:o,onError:i},l,h)}function Zk(e={}){return{isEnabled:t=>!0===e[t]}}var Qk,Yk,eC,tC;function nC(){if(tC)return eC;tC=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return eC=n=>n?"object"!=typeof n?e:n:t}var rC,oC,iC,aC,lC,sC,cC,uC,dC,pC,fC,hC,mC,gC,bC,yC,vC,SC,xC,wC,kC,CC,EC,LC,RC,PC,TC,OC,IC,MC,DC,_C={exports:{}};function NC(){if(oC)return rC;oC=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return rC={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:e,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}}function qC(){if(aC)return iC;aC=1;const e="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};return iC=e}function jC(){return lC||(lC=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=NC(),i=qC(),a=(t=e.exports={}).re=[],l=t.safeRe=[],s=t.src=[],c=t.safeSrc=[],u=t.t={};let d=0;const p="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",o],[p,r]],h=(e,t,n)=>{const r=(e=>{for(const[t,n]of f)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e})(t),o=d++;i(e,o,t),u[e]=o,s[o]=t,c[o]=r,a[o]=new RegExp(t,n?"g":void 0),l[o]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${p}*`),h("MAINVERSION",`(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})\\.(${s[u.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})\\.(${s[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${s[u.NONNUMERICIDENTIFIER]}|${s[u.NUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${s[u.NONNUMERICIDENTIFIER]}|${s[u.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASE",`(?:-(${s[u.PRERELEASEIDENTIFIER]}(?:\\.${s[u.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${s[u.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${s[u.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${p}+`),h("BUILD",`(?:\\+(${s[u.BUILDIDENTIFIER]}(?:\\.${s[u.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${s[u.MAINVERSION]}${s[u.PRERELEASE]}?${s[u.BUILD]}?`),h("FULL",`^${s[u.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${s[u.MAINVERSIONLOOSE]}${s[u.PRERELEASELOOSE]}?${s[u.BUILD]}?`),h("LOOSE",`^${s[u.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${s[u.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${s[u.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:\\.(${s[u.XRANGEIDENTIFIER]})(?:${s[u.PRERELEASE]})?${s[u.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:\\.(${s[u.XRANGEIDENTIFIERLOOSE]})(?:${s[u.PRERELEASELOOSE]})?${s[u.BUILD]}?)?)?`),h("XRANGE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${s[u.GTLT]}\\s*${s[u.XRANGEPLAINLOOSE]}$`),h("COERCEPLAIN",`(^|[^\\d])(\\d{1,${n}})(?:\\.(\\d{1,${n}}))?(?:\\.(\\d{1,${n}}))?`),h("COERCE",`${s[u.COERCEPLAIN]}(?:$|[^\\d])`),h("COERCEFULL",s[u.COERCEPLAIN]+`(?:${s[u.PRERELEASE]})?`+`(?:${s[u.BUILD]})?(?:$|[^\\d])`),h("COERCERTL",s[u.COERCE],!0),h("COERCERTLFULL",s[u.COERCEFULL],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${s[u.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",h("TILDE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${s[u.LONETILDE]}${s[u.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${s[u.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",h("CARET",`^${s[u.LONECARET]}${s[u.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${s[u.LONECARET]}${s[u.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${s[u.GTLT]}\\s*(${s[u.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${s[u.GTLT]}\\s*(${s[u.LOOSEPLAIN]}|${s[u.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${s[u.XRANGEPLAIN]})\\s+-\\s+(${s[u.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${s[u.XRANGEPLAINLOOSE]})\\s+-\\s+(${s[u.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(_C,_C.exports)),_C.exports}function AC(){if(dC)return uC;dC=1;const e=qC(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=NC(),{safeRe:r,t:o}=jC(),i=nC(),{compareIdentifiers:a}=function(){if(cC)return sC;cC=1;const e=/^[0-9]+$/,t=(t,n)=>{if("number"==typeof t&&"number"==typeof n)return t===n?0:t<n?-1:1;const r=e.test(t),o=e.test(n);return r&&o&&(t=+t,n=+n),t===n?0:r&&!o?-1:o&&!r?1:t<n?-1:1};return sC={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},sC}();class l{constructor(a,s){if(s=i(s),a instanceof l){if(a.loose===!!s.loose&&a.includePrerelease===!!s.includePrerelease)return a;a=a.version}else if("string"!=typeof a)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof a}".`);if(a.length>t)throw new TypeError(`version is longer than ${t} characters`);e("SemVer",a,s),this.options=s,this.loose=!!s.loose,this.includePrerelease=!!s.includePrerelease;const c=a.trim().match(s.loose?r[o.LOOSE]:r[o.FULL]);if(!c)throw new TypeError(`Invalid Version: ${a}`);if(this.raw=a,this.major=+c[1],this.minor=+c[2],this.patch=+c[3],this.major>n||this.major<0)throw new TypeError("Invalid major version");if(this.minor>n||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>n||this.patch<0)throw new TypeError("Invalid patch version");c[4]?this.prerelease=c[4].split(".").map(e=>{if(/^[0-9]+$/.test(e)){const t=+e;if(t>=0&&t<n)return t}return e}):this.prerelease=[],this.build=c[5]?c[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(e("SemVer.compare",this.version,this.options,t),!(t instanceof l)){if("string"==typeof t&&t===this.version)return 0;t=new l(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(e){return e instanceof l||(e=new l(e,this.options)),this.major<e.major?-1:this.major>e.major?1:this.minor<e.minor?-1:this.minor>e.minor?1:this.patch<e.patch?-1:this.patch>e.patch?1:0}comparePre(t){if(t instanceof l||(t=new l(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{const r=this.prerelease[n],o=t.prerelease[n];if(e("prerelease compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}compareBuild(t){t instanceof l||(t=new l(t,this.options));let n=0;do{const r=this.build[n],o=t.build[n];if(e("build compare",n,r,o),void 0===r&&void 0===o)return 0;if(void 0===o)return 1;if(void 0===r)return-1;if(r!==o)return a(r,o)}while(++n)}inc(e,t,n){if(e.startsWith("pre")){if(!t&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(t){const e=`-${t}`.match(this.options.loose?r[o.PRERELEASELOOSE]:r[o.PRERELEASE]);if(!e||e[1]!==t)throw new Error(`invalid identifier: ${t}`)}}switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,n),this.inc("pre",t,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t,n),this.inc("pre",t,n);break;case"release":if(0===this.prerelease.length)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const e=Number(n)?1:0;if(0===this.prerelease.length)this.prerelease=[e];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(t===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(e)}}if(t){let r=[t,e];if(!1===n&&(r=[t]),((e,t)=>{const n=t.split(".");if(n.length>e.length)return!1;for(let t=0;t<n.length;t++)if(0!==a(e[t],n[t]))return!1;return!0})(this.prerelease,t)){const e=this.prerelease[t.split(".").length];isNaN(e)&&(this.prerelease=r)}else this.prerelease=r}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}}return uC=l}function zC(){if(fC)return pC;fC=1;const e=AC();return pC=(t,n,r)=>new e(t,r).compare(new e(n,r)),pC}function $C(){if(RC)return LC;RC=1;const e=function(){if(mC)return hC;mC=1;const e=zC();return hC=(t,n,r)=>0===e(t,n,r),hC}(),t=function(){if(bC)return gC;bC=1;const e=zC();return gC=(t,n,r)=>0!==e(t,n,r),gC}(),n=function(){if(vC)return yC;vC=1;const e=zC();return yC=(t,n,r)=>e(t,n,r)>0,yC}(),r=function(){if(xC)return SC;xC=1;const e=zC();return SC=(t,n,r)=>e(t,n,r)>=0,SC}(),o=function(){if(kC)return wC;kC=1;const e=zC();return wC=(t,n,r)=>e(t,n,r)<0,wC}(),i=function(){if(EC)return CC;EC=1;const e=zC();return CC=(t,n,r)=>e(t,n,r)<=0,CC}();return LC=(a,l,s,c)=>{switch(l){case"===":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a===s;case"!==":return"object"==typeof a&&(a=a.version),"object"==typeof s&&(s=s.version),a!==s;case"":case"=":case"==":return e(a,s,c);case"!=":return t(a,s,c);case">":return n(a,s,c);case">=":return r(a,s,c);case"<":return o(a,s,c);case"<=":return i(a,s,c);default:throw new TypeError(`Invalid operator: ${l}`)}},LC}function FC(){if(IC)return OC;IC=1;const e=/\s+/g;class t{constructor(n,i){if(i=r(i),n instanceof t)return n.loose===!!i.loose&&n.includePrerelease===!!i.includePrerelease?n:new t(n.raw,i);if(n instanceof o)return this.raw=n.value,this.set=[[n]],this.formatted=void 0,this;if(this.options=i,this.loose=!!i.loose,this.includePrerelease=!!i.includePrerelease,this.raw=n.trim().replace(e," "),this.set=this.raw.split("||").map(e=>this.parseRange(e.trim())).filter(e=>e.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const e=this.set[0];if(this.set=this.set.filter(e=>!g(e[0])),0===this.set.length)this.set=[e];else if(this.set.length>1)for(const e of this.set)if(1===e.length&&b(e[0])){this.set=[e];break}}this.formatted=void 0}get range(){if(void 0===this.formatted){this.formatted="";for(let e=0;e<this.set.length;e++){e>0&&(this.formatted+="||");const t=this.set[e];for(let e=0;e<t.length;e++)e>0&&(this.formatted+=" "),this.formatted+=t[e].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(e){e=e.replace(m,"");const t=((this.options.includePrerelease&&f)|(this.options.loose&&h))+":"+e,r=n.get(t);if(r)return r;const a=this.options.loose,s=a?l[c.HYPHENRANGELOOSE]:l[c.HYPHENRANGE];e=e.replace(s,T(this.options.includePrerelease)),i("hyphen replace",e),e=e.replace(l[c.COMPARATORTRIM],u),i("comparator trim",e),e=e.replace(l[c.TILDETRIM],d),i("tilde trim",e),e=e.replace(l[c.CARETTRIM],p),i("caret trim",e);let b=e.split(" ").map(e=>v(e,this.options)).join(" ").split(/\s+/).map(e=>P(e,this.options));a&&(b=b.filter(e=>(i("loose invalid filter",e,this.options),!!e.match(l[c.COMPARATORLOOSE])))),i("range list",b);const y=new Map,S=b.map(e=>new o(e,this.options));for(const e of S){if(g(e))return[e];y.set(e.value,e)}y.size>1&&y.has("")&&y.delete("");const x=[...y.values()];return n.set(t,x),x}intersects(e,n){if(!(e instanceof t))throw new TypeError("a Range is required");return this.set.some(t=>y(t,n)&&e.set.some(e=>y(e,n)&&t.every(t=>e.every(e=>t.intersects(e,n)))))}test(e){if(!e)return!1;if("string"==typeof e)try{e=new a(e,this.options)}catch(e){return!1}for(let t=0;t<this.set.length;t++)if(O(this.set[t],e,this.options))return!0;return!1}}OC=t;const n=new(Yk?Qk:(Yk=1,Qk=class{constructor(){this.max=1e3,this.map=new Map}get(e){const t=this.map.get(e);return void 0===t?void 0:(this.map.delete(e),this.map.set(e,t),t)}delete(e){return this.map.delete(e)}set(e,t){if(!this.delete(e)&&void 0!==t){if(this.map.size>=this.max){const e=this.map.keys().next().value;this.delete(e)}this.map.set(e,t)}return this}})),r=nC(),o=function(){if(TC)return PC;TC=1;const e=Symbol("SemVer ANY");class t{static get ANY(){return e}constructor(r,o){if(o=n(o),r instanceof t){if(r.loose===!!o.loose)return r;r=r.value}r=r.trim().split(/\s+/).join(" "),a("comparator",r,o),this.options=o,this.loose=!!o.loose,this.parse(r),this.semver===e?this.value="":this.value=this.operator+this.semver.version,a("comp",this)}parse(t){const n=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=void 0!==i[1]?i[1]:"","="===this.operator&&(this.operator=""),i[2]?this.semver=new l(i[2],this.options.loose):this.semver=e}toString(){return this.value}test(t){if(a("Comparator.test",t,this.options.loose),this.semver===e||t===e)return!0;if("string"==typeof t)try{t=new l(t,this.options)}catch(e){return!1}return i(t,this.operator,this.semver,this.options)}intersects(e,r){if(!(e instanceof t))throw new TypeError("a Comparator is required");return""===this.operator?""===this.value||new s(e.value,r).test(this.value):""===e.operator?""===e.value||new s(this.value,r).test(e.semver):!((r=n(r)).includePrerelease&&("<0.0.0-0"===this.value||"<0.0.0-0"===e.value)||!r.includePrerelease&&(this.value.startsWith("<0.0.0")||e.value.startsWith("<0.0.0"))||(!this.operator.startsWith(">")||!e.operator.startsWith(">"))&&(!this.operator.startsWith("<")||!e.operator.startsWith("<"))&&(this.semver.version!==e.semver.version||!this.operator.includes("=")||!e.operator.includes("="))&&!(i(this.semver,"<",e.semver,r)&&this.operator.startsWith(">")&&e.operator.startsWith("<"))&&!(i(this.semver,">",e.semver,r)&&this.operator.startsWith("<")&&e.operator.startsWith(">")))}}PC=t;const n=nC(),{safeRe:r,t:o}=jC(),i=$C(),a=qC(),l=AC(),s=FC();return PC}(),i=qC(),a=AC(),{safeRe:l,src:s,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=jC(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=NC(),m=new RegExp(s[c.BUILD],"g"),g=e=>"<0.0.0-0"===e.value,b=e=>""===e.value,y=(e,t)=>{let n=!0;const r=e.slice();let o=r.pop();for(;n&&r.length;)n=r.every(e=>o.intersects(e,t)),o=r.pop();return n},v=(e,t)=>(e=e.replace(l[c.BUILD],""),i("comp",e,t),e=k(e,t),i("caret",e),e=x(e,t),i("tildes",e),e=E(e,t),i("xrange",e),e=R(e,t),i("stars",e),e),S=e=>!e||"x"===e.toLowerCase()||"*"===e,x=(e,t)=>e.trim().split(/\s+/).map(e=>w(e,t)).join(" "),w=(e,t)=>{const n=t.loose?l[c.TILDELOOSE]:l[c.TILDE],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,a,l)=>{let s;return i("tilde",e,t,n,o,a,l),S(n)?s="":S(o)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?s=`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:l?(i("replaceTilde pr",l),s=`>=${n}.${o}.${a}-${l} <${n}.${+o+1}.0-0`):s=`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`,i("tilde return",s),s})},k=(e,t)=>e.trim().split(/\s+/).map(e=>C(e,t)).join(" "),C=(e,t)=>{i("caret",e,t);const n=t.loose?l[c.CARETLOOSE]:l[c.CARET],r=t.includePrerelease?"-0":"";return e.replace(n,(t,n,o,a,l)=>{let s;return i("caret",e,t,n,o,a,l),S(n)?s="":S(o)?s=`>=${n}.0.0${r} <${+n+1}.0.0-0`:S(a)?s="0"===n?`>=${n}.${o}.0${r} <${n}.${+o+1}.0-0`:`>=${n}.${o}.0${r} <${+n+1}.0.0-0`:l?(i("replaceCaret pr",l),s="0"===n?"0"===o?`>=${n}.${o}.${a}-${l} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a}-${l} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a}-${l} <${+n+1}.0.0-0`):(i("no pr"),s="0"===n?"0"===o?`>=${n}.${o}.${a} <${n}.${o}.${+a+1}-0`:`>=${n}.${o}.${a} <${n}.${+o+1}.0-0`:`>=${n}.${o}.${a} <${+n+1}.0.0-0`),i("caret return",s),s})},E=(e,t)=>(i("replaceXRanges",e,t),e.split(/\s+/).map(e=>L(e,t)).join(" ")),L=(e,t)=>{e=e.trim();const n=t.loose?l[c.XRANGELOOSE]:l[c.XRANGE];return e.replace(n,(n,r,o,a,l,s)=>{if(i("xRange",e,n,r,o,a,l,s),((e,t,n)=>S(e)&&!S(t)||S(t)&&n&&!S(n))(o,a,l))return e;const c=S(o),u=c||S(a),d=u||S(l),p=d;return"="===r&&p&&(r=""),s=t.includePrerelease?"-0":"",c?n=">"===r||"<"===r?"<0.0.0-0":"*":r&&p?(u&&(a=0),l=0,">"===r?(r=">=",u?(o=+o+1,a=0,l=0):(a=+a+1,l=0)):"<="===r&&(r="<",u?o=+o+1:a=+a+1),"<"===r&&(s="-0"),n=`${r+o}.${a}.${l}${s}`):u?n=`>=${o}.0.0${s} <${+o+1}.0.0-0`:d&&(n=`>=${o}.${a}.0${s} <${o}.${+a+1}.0-0`),i("xRange return",n),n})},R=(e,t)=>(i("replaceStars",e,t),e.trim().replace(l[c.STAR],"")),P=(e,t)=>(i("replaceGTE0",e,t),e.trim().replace(l[t.includePrerelease?c.GTE0PRE:c.GTE0],"")),T=e=>(t,n,r,o,i,a,l,s,c,u,d,p)=>`${n=S(r)?"":S(o)?`>=${r}.0.0${e?"-0":""}`:S(i)?`>=${r}.${o}.0${e?"-0":""}`:a?`>=${n}`:`>=${n}${e?"-0":""}`} ${s=S(c)?"":S(u)?`<${+c+1}.0.0-0`:S(d)?`<${c}.${+u+1}.0-0`:p?`<=${c}.${u}.${d}-${p}`:e?`<${c}.${u}.${+d+1}-0`:`<=${s}`}`.trim(),O=(e,t,n)=>{for(let n=0;n<e.length;n++)if(!e[n].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let n=0;n<e.length;n++)if(i(e[n].semver),e[n].semver!==o.ANY&&e[n].semver.prerelease.length>0){const r=e[n].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0};return OC}var BC=function(){if(DC)return MC;DC=1;const e=FC();return MC=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},MC}(),WC=r(BC);const HC={};function UC(e,t,n={}){let r,o;const{meta:i}=n,a={name:e.name,version:e.version,supportsPropertiesVersion:e=>!(e&&i&&i.deps&&i.deps.properties)||WC(e,i.deps.properties),supernova:()=>async function(e,t,{config:n},r){const o=`${e}__${t}`;if(!HC[o]){const i=`${e}${t&&` v${t}`||""}`;if(r&&"function"!=typeof r)throw new Error(`load of visualization '${i}' is not a fuction, wrap load promise in function`);const a=(r||n.load)({name:e,version:t}),l=Promise.resolve(a);HC[o]=l.then(e=>{if(!e)throw new Error(`load() of visualization '${i}' resolved to an invalid object`);return e}).catch(e=>{throw new yk(`Failed to load visualization: '${i}'`,e)})}return HC[o]}(a.name,a.version,t,n.load).then(e=>(r=r||kw(e,t.public.galaxy),o=JSON.stringify(r.qae.properties.initial),r)),initialProperties(e,t=!1){return this.supernova().then(()=>{const n=u({qInfo:{qType:a.name},visualization:a.name,version:a.version,showTitles:!0},JSON.parse(o));return t?(ge(!0,n,e),n):u(u({},n),e)})}};return a}function VC(e,t){const n={};let r=null;return{get:e=>n[e],register:(o,i)=>{if(n[o])throw new Error(`Supernova '${e}@${o}' already registered.`);n[o]=UC({name:e,version:o},t,i),r=null},getMatchingVersionFromProperties:e=>{r||(r=function(e){const t=e.filter(e=>"undefined"===e);return[...t,...e.filter(e=>"undefined"!==e).map(e=>e.split(".").map(e=>parseInt(e,10))).sort((e,t)=>e[0]-t[0]||e[1]-t[1]||e[2]-t[2]).map(e=>e.join("."))]}(Object.keys(n)));for(let t=r.length-1;t>=0;t--){if(n[r[t]].supportsPropertiesVersion(e))return r[t]}return null},versions:n}}function GC({halo:e,parent:t}){const n={},r=t||{get:()=>{}};return{register:(t,r)=>{n[t.name]||(n[t.name]=VC(t.name,e)),n[t.name].register(t.version,r)},getSupportedVersion:(e,t)=>{if(n[e])return n[e].getMatchingVersionFromProperties(t)},get(e){const{name:t}=e;let{version:o}=e;if(n[t]){if(!n[t].versions[o]){o=Object.keys(n[t].versions)[0]}}else this.register({name:t,version:o});return n[t].get(o)||r.get(e)},getList:()=>Object.keys(n).map(e=>({name:e,versions:Object.keys(n[e].versions).map(e=>"undefined"===e?void 0:e)})),clearFromCache:e=>{n[e]&&(n[e]=void 0),function(e){Object.keys(HC).forEach(t=>{t.split("__")[0]===e&&(HC[t]=void 0)})}(e)}}}const KC={context:{},load:()=>{},types:[],themes:[],anything:{},flags:{KPI_REACTCOLORPICKER:!0,CLIENT_IM_3365:!0},snapshot:{get:async e=>{const t=await fetch(`/njs/snapshot/${e}`);if(!t.ok)throw new Error(t.statusText);return t.json()},capture:e=>fetch("/njs/capture",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(e)}).then(e=>e.json())}},XC={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};KC.context=XC;const JC=(e={},t={})=>u(u({},e),t),ZC=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t);e("d",function e(t={}){const n=O(t.context.language);function r(e,o){if(o)return r.createConfiguration(o)(e);let i=u(u({},t.context),{},{translator:n.translator,hostConfig:t.hostConfig});const[a,l]=Cc({app:e,context:i}),s=function({themes:e=[],loadTheme:t,root:n}={}){const r=We();return{setTheme:async o=>{let i=e.filter(e=>e.id===o)[0],a="dark"===o?"dark":"light";if(!i&&t&&(i={load:t}),i&&i.load)try{const e=await Promise.race([i.load(o),He(5e3,{__timedOut:!0})]);e.__timedOut||(a="dark"===e.type?"dark":"light",r.internalAPI.setTheme(e,o),n.setMuiThemeName(a))}catch(e){}else r.internalAPI.setTheme({type:a},o),n.setMuiThemeName(a)},externalAPI:r.externalAPI}}({themes:t.themes,loadTheme:t.loadTheme,root:a});i.themeApi=s.externalAPI;const c={galaxy:{translator:n.translator,theme:s.externalAPI,flags:Zk(t.flags),deviceType:Ue(t.context.deviceType),hostConfig:t.hostConfig,anything:t.anything},theme:s.externalAPI,translator:n.translator,nebbie:null},d={app:e,root:a,config:t,public:c,context:i,types:null},p=GC({halo:d});t.types.forEach(e=>p.register({name:e.name,version:e.version},{meta:e.meta,load:e.load}));let f=new Promise(e=>{(async()=>{if(await s.setTheme(t.context.theme),t.hostConfig&&y&&y.getWebResourceAuthParams){const{queryParams:e}=await y.getWebResourceAuthParams({hostConfig:t.hostConfig});i.queryParams=e,a.context(i)}})().then(e)}),h=null,m=null;const g={render:async e=>{var t;await f,null===(t=e.signal)||void 0===t||t.throwIfAborted();const n=e.id?Jk(e,d,l):async function({type:e,version:t,fields:n,properties:r,options:o,plugins:i,element:a,extendProperties:l,navigation:s,onRender:c,onError:u},d,p){let f={};const h=[],{modelStore:m,subscribe:g}=p;let b;try{const o=d.types.get({name:e,version:t});f=await o.initialProperties(r,l);const i=await o.supernova();n&&await HS({sn:i,properties:f,fields:n,children:h},d),r&&i&&i.qae.properties.onChange&&i.qae.properties.onChange.call({},f)}catch(t){b=t,f={qInfo:{qType:e},visualization:e}}const y=await d.app.createSessionObject(f);h.length>0&&await y.setFullPropertyTree({qProperty:f,qChildren:h}),m.set(y.id,y);const v=g(y);return Wk(y,{options:o,plugins:i,element:a,onRender:c,onError:u},d,s,b,async()=>{await d.app.destroySessionObject(y.id),v()})}(e,d,l);if(e.signal){const t=()=>{n.then(e=>null==e?void 0:e.destroy()).catch(()=>{})};return e.signal.addEventListener("abort",t,{once:!0}),function(e,t){if(!t)return e;let n;"function"==typeof t.throwIfAborted&&t.throwIfAborted();const r=new Promise((e,t)=>{n=t}),o=()=>{var e;return null===(e=n)||void 0===e?void 0:e(t.reason)};return t.addEventListener("abort",o,{once:!0}),Promise.race([e,r]).finally(()=>{t.removeEventListener("abort",o)})}(n,e.signal).finally(()=>{e.signal.removeEventListener("abort",t)})}return n},destroy:async()=>{a.destroy()},create:async e=>Hk(e,d,!1,l),generateProperties:async e=>Hk(e,d,!0,l),context:async e=>{let t;["theme","language","constraints","interactions","keyboardNavigation"].forEach(n=>{Object.prototype.hasOwnProperty.call(e,n)&&e[n]!==i[n]&&(t||(t={}),t[n]=e[n])}),t&&(i=u(u(u({},i),t),{},{translator:n.translator}),t.theme&&(await f,f=s.setTheme(t.theme),await f),t.language&&d.public.translator.language(t.language),a.context(i))},selections:async()=>(h||(h={mount(t){m||(m=function({element:e,app:t}){return ps.createPortal(fr.jsx(Kv,{app:t}),e,Gv())}({element:t,app:e}),a.add(m))},unmount(){m&&(a.remove(m),m=null)}}),h),field:async t=>{let n;const r="string"==typeof t?t:t.qLibraryId;if(t.qId)n=t.qId;else if(!r)throw new Error("Field identifier or object id must be provided");const o={fieldName:r,async mount(i,l={}){if(!i)throw new Error(`Element for ${r||n} not provided`);if(this._instance)throw new Error(`Field or object ${r||n} already mounted`);const s=()=>o.emit("selectionActivated"),c=()=>o.emit("selectionDeactivated");return new Promise(r=>{[this._instance,this._ref]=function({element:e,app:t,fieldIdentifier:n,qId:r,stateName:o="$",options:i={},renderedCallback:a,flags:l}){const s=C.createRef();return[ps.createPortal(fr.jsx(_S,{ref:s,app:t,element:e,fieldIdentifier:n,qId:r,stateName:o,initialOptions:i,renderedCallback:a,flags:l}),e,Gv()),s]}({element:i,app:e,fieldIdentifier:t,qId:n,options:DS(u({onSelectionActivated:s,onSelectionDeactivated:c},l)),stateName:l.stateName||"$",renderedCallback:r,flags:d.public.galaxy.flags}),a.add(this._instance)})},unmount(){this._instance&&(a.remove(this._instance),this._instance=null,this._ref=null)},__DO_NOT_USE__:{options(e){var t;const n=()=>o.emit("selectionActivated"),r=()=>o.emit("selectionDeactivated");if(null!==(t=o._ref)&&void 0!==t&&t.current){const t=DS(u({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return yb(o),o},getRegisteredTypes:p.getList,__DO_NOT_USE__:{types:p,popover(t,n,r){g._popoverInstance&&(a.remove(g._popoverInstance),g._popoverInstance=null);const o=((e={})=>{const t=u({},NS);return ge(!0,t,e),t})(u({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=C.createElement(qS,{element:t,key:Gv(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,yb(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:JC(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:u({},t.snapshot||e.snapshot),types:ZC(e.types,t.types),themes:ZC(e.themes,t.themes),flags:JC(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:JC(e.anything,t.anything)}))(t,n)),r.config=t,r}(KC));function QC(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}}const YC=globalThis.crypto||{getRandomValues:()=>123456};function eE(e){return t=>{const n=ge({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^YC.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const r=n._mock;let o=n;return r&&(delete n._mock,o=ge({},n,r)),Promise.resolve({on:()=>{},once:()=>{},getLayout:()=>Promise.resolve(o),getProperties:()=>Promise.resolve(n),getEffectiveProperties:()=>Promise.resolve(n),removeListener:()=>{},id:n.qInfo.qId,properties:n,session:e})}}const tE=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,nE=(e,{defaultValue:t,async:n=!0,delay:r=0}={})=>(...o)=>{const i=tE(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(i),r)}):i},rE=["id","session"],oE=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function iE(e){return!oE.includes(e)}function aE(e){const t=tE(e.getLayout);return t.qInfo&&t.qInfo.qId}function lE(e,t){return e.reduce((e,n)=>u(u({},e),function(e,t){let n=aE(e);const{delay:r}=t,{id:o,session:i}=e,a=d(e,rE);if(o&&n&&o!==n)throw new Error(`Generic object has multiple IDs, qInfo.qId: ${n}, id: ${o}`);n=n||o||"object - "+ +Date.now();const l=u(u({id:n,session:tE(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce((e,[t,n])=>u(u({},e),{},{[t]:nE(n,{async:iE(t),delay:r})}),{})),{},{genericType:e.type});return{[n]:l}}(n,t)),{})}function sE(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!aE(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function cE(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(sE);const n=lE(e,t);return async e=>Promise.resolve(n[e])}function uE(e){return()=>Promise.resolve({id:"app-layout",qLocaleInfo:null==e?void 0:e.appLocaleInfo})}e("m",{fromGenericObjects:(e,t={})=>function(e,t={}){const n=new QC,r=new eE(n),o=new cE(e,t),i=new uE(t),a=u(u({},t.appMethods||{}),{},{id:"app - "+ +Date.now(),session:n,createSessionObject:r,destroySessionObject:async()=>{},getObject:o,getAppLayout:i,getListObject:async e=>{var t;return o(null===(t=e.qInfo)||void 0===t?void 0:t.qId)}});return Promise.resolve(a)}(e,t)}),e("_",{generator:kw,hook:Ox,theme:We,locale:L})}}});
|
|
126
|
-
//# sourceMappingURL=index-
|
|
126
|
+
//# sourceMappingURL=index-C8WbXuNI.js.map
|