@nebula.js/stardust 7.5.1 → 7.5.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/esm/dev.js +3 -3
- package/core/esm/index.js +2 -2
- package/dist/chunks/{auth-Cndp79dH-Bv9Wc26c.js → auth-Cndp79dH-LYlY6Rk8.js} +3 -3
- package/dist/chunks/{auth-Cndp79dH-Bv9Wc26c.js.map → auth-Cndp79dH-LYlY6Rk8.js.map} +1 -1
- package/dist/chunks/{auth-Cndp79dH-Bm44mhxi.js → auth-Cndp79dH-xoUlzOe9.js} +3 -3
- package/dist/chunks/{auth-Cndp79dH-Bm44mhxi.js.map → auth-Cndp79dH-xoUlzOe9.js.map} +1 -1
- package/dist/chunks/{dist-Df-Traut-BLm7VBJm.js → dist-Df-Traut-B2nHpqaK.js} +2 -2
- package/dist/chunks/{dist-Df-Traut-BLm7VBJm.js.map → dist-Df-Traut-B2nHpqaK.js.map} +1 -1
- package/dist/chunks/{dist-Df-Traut-BeI6uxXf.js → dist-Df-Traut-BNdb3J_v.js} +2 -2
- package/dist/chunks/{dist-Df-Traut-BeI6uxXf.js.map → dist-Df-Traut-BNdb3J_v.js.map} +1 -1
- package/dist/chunks/{index-eDxuhcej.js → index-BCzH_uD3.js} +6 -6
- package/dist/chunks/{index-eDxuhcej.js.map → index-BCzH_uD3.js.map} +1 -1
- package/dist/chunks/{index-L5HtNfzB.js → index-EMxkNo4T.js} +4 -4
- package/dist/chunks/{index-L5HtNfzB.js.map → index-EMxkNo4T.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
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* @nebula.js/stardust v7.5.
|
|
2
|
+
* @nebula.js/stardust v7.5.2
|
|
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 Bx("options")},B:function(){return Bx("plugins")},C:function(e,t){const[n,r]=Ux(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=Fx(++Ox);o.component||(o.component=Tx);return Gx(()=>{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=Xx(),t=Tx.__hooks.resizer,[n,r]=Ux(()=>{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 Gx(()=>{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 Kx(()=>({current:e}),[])},G:function(){Fx(++Ox);const e=Tx.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},I:function(){return Bx("selections")},J:function(){const e=Bx("layout"),[t]=Ux({current:e});e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e);return t.current},K:Ux,L:function(){return Bx("theme")},M:function(){return Bx("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=Fx(++Ox);t.value||(t.value=1,Tx.__hooks.snaps.push(t));t.fn=e},f:function(){const e=Bx("app");return e&&e.session?e:void 0},g:function(){return Bx("appLayout")},h:function(){return Bx("constraints")},i:function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self},j:function(){return Bx("deviceType")},k:Vx,l:Xx,n:function(){return Bx("nebbie")},o:function(e){const t=Fx(++Ox);t.value||(t.value=1,Tx.__hooks.menus.push(t));t.fn=e},p:function(){return Bx("emitter")},q:function(){const e=Bx("global");return e&&e.session?e:void 0},r:function(e,t){const n=Fx(++Ox);n.imperative||(n.imperative=!0);if(Ix(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Tx.__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 Bx("interactions")},u:function(e,t){const[n]=Ux({action(){n._config.action.call(null)}});n.component||(n.component=Tx,Tx.__hooks.actions.list.push(n));return Kx(()=>{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=Bx("keyboardNavigation"),t=Bx("focusHandler");if(!Tx.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(Zx(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Tx);Tx.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Jx(this))}.bind(Tx);Tx.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Tx);Tx.__hooks.accessibility.focusSelectionFunction=r}const n=Tx.__hooks.accessibility.focusFunction,r=Tx.__hooks.accessibility.exitFunction,o=Tx.__hooks.accessibility.focusSelectionFunction,[i,a]=Ux({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Tx.__hooks.accessibility.setter=a,Tx.__hooks.accessibility.enabled=e,Vx(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},w:function(){return Bx("layout")},x:Kx,y:function(){const e=Bx("model");return e&&e.session?e:void 0},z:function(){return Bx("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-BLm7VBJm.js")).importRuntimeModule)();async function m(e){return f?t.import("./auth-Cndp79dH-Bm44mhxi.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 q="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)},D={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=D,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,q)}catch(e){q(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={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR"};function R(e){return Object.prototype.hasOwnProperty.call(L,e)?L[e]:e}const P=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let r=R(e);const o={language:e=>(e&&(r=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 T,O,I={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 M(e){const t=P({initial:e});return Object.keys(I).forEach(e=>{t.translator.add(I[e])}),{translator:t.translator}}var q=function(){if(O)return T;O=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},T=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},T}(),D=r(q);function N(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 j(){}var A,z,$=.7,F=1/$,B="\\s*([+-]?\\d+)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U=/^#([0-9a-f]{3,8})$/,V=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),G=new RegExp(`^rgb\\(${H},${H},${H}\\)$`),K=new RegExp(`^rgba\\(${B},${B},${B},${W}\\)$`),X=new RegExp(`^rgba\\(${H},${H},${H},${W}\\)$`),J=new RegExp(`^hsl\\(${W},${H},${H}\\)$`),Z=new RegExp(`^hsla\\(${W},${H},${H},${W}\\)$`),Q={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 Y(){return this.rgb().formatHex()}function ee(){return this.rgb().formatRgb()}function te(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=U.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ne(t):3===n?new ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?re(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?re(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=V.exec(e))?new ie(t[1],t[2],t[3],1):(t=G.exec(e))?new ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=K.exec(e))?re(t[1],t[2],t[3],t[4]):(t=X.exec(e))?re(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=J.exec(e))?de(t[1],t[2]/100,t[3]/100,1):(t=Z.exec(e))?de(t[1],t[2]/100,t[3]/100,t[4]):Q.hasOwnProperty(e)?ne(Q[e]):"transparent"===e?new ie(NaN,NaN,NaN,0):null}function ne(e){return new ie(e>>16&255,e>>8&255,255&e,1)}function re(e,t,n,r){return r<=0&&(e=t=n=NaN),new ie(e,t,n,r)}function oe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof j||(e=te(e)),e?new ie((e=e.rgb()).r,e.g,e.b,e.opacity):new ie}(e):new ie(e,t,n,null==r?1:r)}function ie(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ae(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function le(){const e=se(this.opacity);return`${1===e?"rgb(":"rgba("}${ce(this.r)}, ${ce(this.g)}, ${ce(this.b)}${1===e?")":`, ${e})`}`}function se(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ce(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ue(e){return((e=ce(e))<16?"0":"")+e.toString(16)}function de(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fe(e,t,n,r)}function pe(e){if(e instanceof fe)return new fe(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=te(e)),!e)return new fe;if(e instanceof fe)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 fe(a,l,s,e.opacity)}function fe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function he(e){return(e=(e||0)%360)<0?e+360:e}function me(e){return Math.max(0,Math.min(1,e||0))}function ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}N(j,te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y,formatHex:Y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pe(this).formatHsl()},formatRgb:ee,toString:ee}),N(ie,oe,_(j,{brighter(e){return e=null==e?F:Math.pow(F,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ie(ce(this.r),ce(this.g),ce(this.b),se(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:ae,formatHex:ae,formatHex8:function(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:le,toString:le})),N(fe,function(e,t,n,r){return 1===arguments.length?pe(e):new fe(e,t,n,null==r?1:r)},_(j,{brighter(e){return e=null==e?F:Math.pow(F,e),new fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new fe(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 ie(ge(e>=240?e-240:e+120,o,r),ge(e,o,r),ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new fe(he(this.h),me(this.s),me(this.l),se(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=se(this.opacity);return`${1===e?"hsl(":"hsla("}${he(this.h)}, ${100*me(this.s)}%, ${100*me(this.l)}%${1===e?")":`, ${e})`}`}}));var be=function(){if(z)return A;z=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 A=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},A}(),ye=r(be),ve={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"]}]}},Se={_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"},xe={_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"}}}},we={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const ke={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}},Ce=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Ee=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Le=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Re=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,Pe=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Te=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Oe}=Math,{round:Ie}=Math;class Me{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 Me)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=Ie(255*f),h=Ie(255*h),m=Ie(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=Ie(255*f),h=Ie(255*h),m=Ie(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=Ie(255*f),h=Ie(255*h),m=Ie(255*m),g=1}else Object.prototype.hasOwnProperty.call(ke,p.toLowerCase())?(r=p.toLowerCase(),f=ke[r].r,h=ke[r].g,m=ke[r].b,g="number"==typeof ke[r].a?ke[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=Oe(f),this._g=Oe(h),this._b=Oe(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=Me.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Me.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Me.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Me.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Me.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Me.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=Me.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Me.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 Me||(e=new Me(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Oe(this._r+(e._r-this._r)*t),Oe(this._g+(e._g-this._g)*t),Oe(this._b+(e._b-this._b)*t),Oe(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 Me(r)}static toRGB(e){if(e instanceof Me)return`rgb(${[e._r,e._g,e._b].join(",")})`;"string"==typeof e&&(e=Me.toNumber(e));return`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`}static toRGBA(e,t){if(e instanceof Me)return`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`;"string"==typeof e&&(e=Me.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 Me?(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=Me.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 Me(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 Me(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 Me(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 Me)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=Me.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Me.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 Me(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Ce.test(e)||Ee.test(e)||Le.test(e)||Re.test(e)||Pe.test(e)||Te.test(e)||Object.prototype.hasOwnProperty.call(ke,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 Me(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class qe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=te(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([te(e),te(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 oe(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 De(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ne(e,t,n){const r=[],o=new qe(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=De(1/t*o,t,n);i=e.getColor(r);break}}r.push(te(i).formatHex())}return r}function je(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const r=Ne(e,n,!0),o=Ne(_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 Ae(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 ze(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 $e(e,t,n,r){let o;if(""===e)o=Ae(null,n);else{o=Ae(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=ze(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Fe(e,t){const n=e.split(".");return{getStyle:(e,r)=>$e(e,r,n.concat(),t)}}function Be(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?Be(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function We(e){const t=te(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)}Fe.resolveRawTheme=e=>{const t=ye(!0,{},e);return Be(t,t._variables),t.scales&&je(t.scales,t.dataColors&&t.dataColors.nullColor),t};function He(e=["#333333","#ffffff"]){let t={},n=0;const r=e.map(We);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=We(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 Ue(){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]=Fe(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=te(...e);return r?r.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?xe:Se;let r=we;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ye(!0,{},ve,r,n),i=ye(!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,Fe.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 Me(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=We(l);n=He([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(D.prototype).forEach(e=>{o[e]=D.prototype[e]}),D.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Ve=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function Ge(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 Ke,Xe,Je={exports:{}},Ze={},Qe={exports:{}},Ye={};function et(){return Xe||(Xe=1,Qe.exports=(Ke||(Ke=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}}}}(Ye)),Ye)),Qe.exports}var tt,nt,rt,ot,it={exports:{}},at={};function lt(){if(tt)return at;tt=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 at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,at.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)},at.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()}},at.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))},at.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},at.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})}},at.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)},at.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})}},at.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)},at.requestFormReset=function(e){r.d.r(e)},at.unstable_batchedUpdates=function(e,t){return e(t)},at.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},at.useFormStatus=function(){return i.H.useHostTransitionStatus()},at.version="19.2.8",at}function st(){if(nt)return it.exports;return nt=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)}}(),it.exports=lt(),it.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 Bx("options")},B:function(){return Bx("plugins")},C:function(e,t){const[n,r]=Ux(()=>({resolved:void 0,rejected:void 0,state:"pending"})),o=Fx(++Ox);o.component||(o.component=Tx);return Gx(()=>{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=Xx(),t=Tx.__hooks.resizer,[n,r]=Ux(()=>{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 Gx(()=>{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 Kx(()=>({current:e}),[])},G:function(){Fx(++Ox);const e=Tx.__hooks;return{pending:()=>{e.waitForData=!0},restore:()=>{e.waitForData=!1}}},I:function(){return Bx("selections")},J:function(){const e=Bx("layout"),[t]=Ux({current:e});e.qSelectionInfo&&e.qSelectionInfo.qInSelections||(t.current=e);return t.current},K:Ux,L:function(){return Bx("theme")},M:function(){return Bx("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=Fx(++Ox);t.value||(t.value=1,Tx.__hooks.snaps.push(t));t.fn=e},f:function(){const e=Bx("app");return e&&e.session?e:void 0},g:function(){return Bx("appLayout")},h:function(){return Bx("constraints")},i:function(){return"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.self},j:function(){return Bx("deviceType")},k:Vx,l:Xx,n:function(){return Bx("nebbie")},o:function(e){const t=Fx(++Ox);t.value||(t.value=1,Tx.__hooks.menus.push(t));t.fn=e},p:function(){return Bx("emitter")},q:function(){const e=Bx("global");return e&&e.session?e:void 0},r:function(e,t){const n=Fx(++Ox);n.imperative||(n.imperative=!0);if(Ix(n.value?n.value[0]:void 0,t)){const r=e();n.value=[t,r],Tx.__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 Bx("interactions")},u:function(e,t){const[n]=Ux({action(){n._config.action.call(null)}});n.component||(n.component=Tx,Tx.__hooks.actions.list.push(n));return Kx(()=>{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=Bx("keyboardNavigation"),t=Bx("focusHandler");if(!Tx.__hooks.accessibility.exitFunction){const e=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&n.active&&(Zx(this),t&&t.blurCallback&&t.blurCallback(e))}.bind(Tx);Tx.__hooks.accessibility.exitFunction=e;const n=function(){const e=this.__hooks.accessibility;e&&e.enabled&&!e.active&&(t&&t.blurCallback&&t.blurCallback(!1),Jx(this))}.bind(Tx);Tx.__hooks.accessibility.focusFunction=n;const r=function(e=!1){const n=this.__hooks.accessibility;n&&n.enabled&&t&&t.focusToolbarButton&&t.focusToolbarButton(e)}.bind(Tx);Tx.__hooks.accessibility.focusSelectionFunction=r}const n=Tx.__hooks.accessibility.focusFunction,r=Tx.__hooks.accessibility.exitFunction,o=Tx.__hooks.accessibility.focusSelectionFunction,[i,a]=Ux({active:!1,enabled:e,blur:r,focus:n,focusSelection:o});return Tx.__hooks.accessibility.setter=a,Tx.__hooks.accessibility.enabled=e,Vx(()=>a({active:!1,enabled:e,blur:r,focus:n,focusSelection:o}),[e]),i},w:function(){return Bx("layout")},x:Kx,y:function(){const e=Bx("model");return e&&e.session?e:void 0},z:function(){return Bx("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-B2nHpqaK.js")).importRuntimeModule)();async function m(e){return f?t.import("./auth-Cndp79dH-xoUlzOe9.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 q="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)},D={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=D,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,q)}catch(e){q(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={de:"de-DE",en:"en-US",es:"es-ES",fr:"fr-FR",it:"it-IT",ja:"ja-JP",ko:"ko-KR",nl:"nl-NL",pl:"pl-PL",pt:"pt-BR",ru:"ru-RU",sv:"sv-SE",tr:"tr-TR"};function R(e){return Object.prototype.hasOwnProperty.call(L,e)?L[e]:e}const P=({initial:e="en-US",fallback:t="en-US"}={})=>{const n=function({initial:e="en-US",fallback:t="en-US"}={}){const n={};let r=R(e);const o={language:e=>(e&&(r=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 T,O,I={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 M(e){const t=P({initial:e});return Object.keys(I).forEach(e=>{t.translator.add(I[e])}),{translator:t.translator}}var q=function(){if(O)return T;O=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},T=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},T}(),D=r(q);function N(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 j(){}var A,z,$=.7,F=1/$,B="\\s*([+-]?\\d+)\\s*",W="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",H="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",U=/^#([0-9a-f]{3,8})$/,V=new RegExp(`^rgb\\(${B},${B},${B}\\)$`),G=new RegExp(`^rgb\\(${H},${H},${H}\\)$`),K=new RegExp(`^rgba\\(${B},${B},${B},${W}\\)$`),X=new RegExp(`^rgba\\(${H},${H},${H},${W}\\)$`),J=new RegExp(`^hsl\\(${W},${H},${H}\\)$`),Z=new RegExp(`^hsla\\(${W},${H},${H},${W}\\)$`),Q={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 Y(){return this.rgb().formatHex()}function ee(){return this.rgb().formatRgb()}function te(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=U.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?ne(t):3===n?new ie(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?re(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?re(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=V.exec(e))?new ie(t[1],t[2],t[3],1):(t=G.exec(e))?new ie(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=K.exec(e))?re(t[1],t[2],t[3],t[4]):(t=X.exec(e))?re(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=J.exec(e))?de(t[1],t[2]/100,t[3]/100,1):(t=Z.exec(e))?de(t[1],t[2]/100,t[3]/100,t[4]):Q.hasOwnProperty(e)?ne(Q[e]):"transparent"===e?new ie(NaN,NaN,NaN,0):null}function ne(e){return new ie(e>>16&255,e>>8&255,255&e,1)}function re(e,t,n,r){return r<=0&&(e=t=n=NaN),new ie(e,t,n,r)}function oe(e,t,n,r){return 1===arguments.length?function(e){return e instanceof j||(e=te(e)),e?new ie((e=e.rgb()).r,e.g,e.b,e.opacity):new ie}(e):new ie(e,t,n,null==r?1:r)}function ie(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function ae(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}`}function le(){const e=se(this.opacity);return`${1===e?"rgb(":"rgba("}${ce(this.r)}, ${ce(this.g)}, ${ce(this.b)}${1===e?")":`, ${e})`}`}function se(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function ce(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function ue(e){return((e=ce(e))<16?"0":"")+e.toString(16)}function de(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new fe(e,t,n,r)}function pe(e){if(e instanceof fe)return new fe(e.h,e.s,e.l,e.opacity);if(e instanceof j||(e=te(e)),!e)return new fe;if(e instanceof fe)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 fe(a,l,s,e.opacity)}function fe(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function he(e){return(e=(e||0)%360)<0?e+360:e}function me(e){return Math.max(0,Math.min(1,e||0))}function ge(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}N(j,te,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Y,formatHex:Y,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return pe(this).formatHsl()},formatRgb:ee,toString:ee}),N(ie,oe,_(j,{brighter(e){return e=null==e?F:Math.pow(F,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new ie(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ie(ce(this.r),ce(this.g),ce(this.b),se(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:ae,formatHex:ae,formatHex8:function(){return`#${ue(this.r)}${ue(this.g)}${ue(this.b)}${ue(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:le,toString:le})),N(fe,function(e,t,n,r){return 1===arguments.length?pe(e):new fe(e,t,n,null==r?1:r)},_(j,{brighter(e){return e=null==e?F:Math.pow(F,e),new fe(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?$:Math.pow($,e),new fe(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 ie(ge(e>=240?e-240:e+120,o,r),ge(e,o,r),ge(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new fe(he(this.h),me(this.s),me(this.l),se(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=se(this.opacity);return`${1===e?"hsl(":"hsla("}${he(this.h)}, ${100*me(this.s)}%, ${100*me(this.l)}%${1===e?")":`, ${e})`}`}}));var be=function(){if(z)return A;z=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 A=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},A}(),ye=r(be),ve={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"]}]}},Se={_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"},xe={_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"}}}},we={object:{listBox:{backgroundColor:"#ffffff",title:{main:{color:"#404040",fontSize:"14px",fontWeight:"bold"}},content:{color:"#404040",fontSize:"12px"}}}};const ke={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}},Ce=/^rgb\((\d{1,3}),(\d{1,3}),(\d{1,3})\)$/i,Ee=/^rgba\((\d{1,3}),(\d{1,3}),(\d{1,3}),(\d(\.\d+)?)\)$/i,Le=/^#([A-F0-9]{2})([A-F0-9]{2})([A-F0-9]{2})$/i,Re=/^#([A-F0-9])([A-F0-9])([A-F0-9])$/i,Pe=/^hsl\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*\)$/i,Te=/^hsla\(\s*(\d+(\.\d+)?)\s*,\s*(\d+(\.\d+)?%?)\s*,\s*(\d+(\.\d+)?%?)\s*,(\d(\.\d+)?)\)$/i,{floor:Oe}=Math,{round:Ie}=Math;class Me{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 Me)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=Ie(255*f),h=Ie(255*h),m=Ie(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=Ie(255*f),h=Ie(255*h),m=Ie(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=Ie(255*f),h=Ie(255*h),m=Ie(255*m),g=1}else Object.prototype.hasOwnProperty.call(ke,p.toLowerCase())?(r=p.toLowerCase(),f=ke[r].r,h=ke[r].g,m=ke[r].b,g="number"==typeof ke[r].a?ke[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=Oe(f),this._g=Oe(h),this._b=Oe(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=Me.toRGB(this)),this._spaces.rgb}toRGBA(){return this._spaces.rgba||(this._spaces.rgba=Me.toRGBA(this)),this._spaces.rgba}toString(){return this._spaces.rgb||(this._spaces.rgb=Me.toRGB(this)),this._spaces.rgb}toHex(){return this._spaces.hex||(this._spaces.hex=Me.toHex(this)),this._spaces.hex}toHSL(e){return this._spaces.hsl||(this._spaces.hsl=Me.toHSL(this,e)),this._spaces.hsl}toHSLA(e){return this._spaces.hsla||(this._spaces.hsla=Me.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=Me.toHSVComponents(this)),this._spaces.hsvComp}toNumber(){return this._spaces.num||(this._spaces.num=Me.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 Me||(e=new Me(e)),this._r===e._r&&this._g===e._g&&this._b===e._b&&this._a===e._a}blend(e,t){return`rgba(${[Oe(this._r+(e._r-this._r)*t),Oe(this._g+(e._g-this._g)*t),Oe(this._b+(e._b-this._b)*t),Oe(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 Me(r)}static toRGB(e){if(e instanceof Me)return`rgb(${[e._r,e._g,e._b].join(",")})`;"string"==typeof e&&(e=Me.toNumber(e));return`rgb(${(16711680&e)>>16},${(65280&e)>>8},${255&e})`}static toRGBA(e,t){if(e instanceof Me)return`rgba(${[e._r,e._g,e._b,void 0!==t?t:e._a].join(",")})`;"string"==typeof e&&(e=Me.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 Me?(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=Me.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 Me(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 Me(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 Me(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 Me)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=Me.toNumber(e)))>>16,o=(65280&e)>>8,i=255&e;return(r+(((16711680&(t=Me.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 Me(r,o,i,a)}static isCSSColor(e){return!(arguments.length>1||"string"!=typeof e)&&(Ce.test(e)||Ee.test(e)||Le.test(e)||Re.test(e)||Pe.test(e)||Te.test(e)||Object.prototype.hasOwnProperty.call(ke,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 Me(...e).isDark(...e)}static useDarkLabel(e,t){return e._a>.5?!e.isDark():!t}}class qe{constructor(e){this.colorParts=[],this.startLevel=0,this.max=1,this.min=0,this.nanColor=te(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([te(e),te(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 oe(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 De(e,t,n){const r=.25+(t+1)/n*.25,o=.5-r;return o+e/1*(.5+r-o)}function Ne(e,t,n){const r=[],o=new qe(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=De(1/t*o,t,n);i=e.getColor(r);break}}r.push(te(i).formatHex())}return r}function je(e,t="#d2d2d2"){e.forEach(e=>{if("class"===e.type){const n=function(e,t,n){const r=Ne(e,n,!0),o=Ne(_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 Ae(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 ze(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 $e(e,t,n,r){let o;if(""===e)o=Ae(null,n);else{o=Ae(e.split("."),n)}return function(e,t,n){const r=t.split(".");for(let t=0;t<e.length;t++){const o=ze(n,[...e[t],...r]);if(void 0!==o)return o}}(o,t,r)}function Fe(e,t){const n=e.split(".");return{getStyle:(e,r)=>$e(e,r,n.concat(),t)}}function Be(e,t){Object.keys(e).forEach(n=>{"object"==typeof e[n]&&null!==e[n]?Be(e[n],t):"string"==typeof e[n]&&"@"===e[n].charAt(0)&&(e[n]=t[e[n]])})}function We(e){const t=te(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)}Fe.resolveRawTheme=e=>{const t=ye(!0,{},e);return Be(t,t._variables),t.scales&&je(t.scales,t.dataColors&&t.dataColors.nullColor),t};function He(e=["#333333","#ffffff"]){let t={},n=0;const r=e.map(We);return{getBestContrastColor(o){if(!t[o]){n>1e3&&(t={},n=0);const i=We(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 Ue(){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]=Fe(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=te(...e);return r?r.toString():void 0}},i={setTheme(i,a){e=function(e,t){const n="dark"===e.type?xe:Se;let r=we;!1!==e._inherit&&"false"!==e._inherit||(r={});const o=ye(!0,{},ve,r,n),i=ye(!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,Fe.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 Me(o);return i.setAlpha(e.alpha),i.isInvalid()?o:i.toRGBA()}}}(e);const l=o.getStyle("","","color"),s=We(l);n=He([l,s<.2?"#ffffff":"#333333"]),o.emit("changed"),o.name=()=>a}};return Object.keys(D.prototype).forEach(e=>{o[e]=D.prototype[e]}),D.init(o),i.setTheme({},"light"),{externalAPI:o,internalAPI:i}}const Ve=(e,t)=>new Promise(n=>{setTimeout(()=>n(t),e)});function Ge(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 Ke,Xe,Je={exports:{}},Ze={},Qe={exports:{}},Ye={};function et(){return Xe||(Xe=1,Qe.exports=(Ke||(Ke=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}}}}(Ye)),Ye)),Qe.exports}var tt,nt,rt,ot,it={exports:{}},at={};function lt(){if(tt)return at;tt=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 at.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,at.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)},at.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()}},at.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))},at.prefetchDNS=function(e){"string"==typeof e&&r.d.D(e)},at.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})}},at.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)},at.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})}},at.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)},at.requestFormReset=function(e){r.d.r(e)},at.unstable_batchedUpdates=function(e,t){return e(t)},at.useFormState=function(e,t,n){return i.H.useFormState(e,t,n)},at.useFormStatus=function(){return i.H.useHostTransitionStatus()},at.version="19.2.8",at}function st(){if(nt)return it.exports;return nt=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)}}(),it.exports=lt(),it.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: ${Ks} 1.4s linear infinite;
|
|
121
121
|
`:null,Zs="string"!=typeof Xs?nr`
|
|
122
122
|
animation: ${Xs} 1.4s ease-in-out infinite;
|
|
123
|
-
`:null,Qs=Nl("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${jr(n.color)}`]]}})(Vl(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Js||{animation:`${Ks} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ys=Nl("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ec=Nl("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${jr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vl(({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:Zs||{animation:`${Xs} 1.4s ease-in-out infinite`}}]}))),tc=Nl("circle",{name:"MuiCircularProgress",slot:"Track"})(Vl(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),nc=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",n,`color${jr(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${jr(n)}`,o&&"circleDisableShrink"]},Vs,t)})(f),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((Gs-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 mr.jsx(Qs,{className:Bo(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...b,...p,children:mr.jsxs(Ys,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?mr.jsx(tc,{className:h.track,ownerState:f,cx:Gs,cy:Gs,r:(Gs-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,mr.jsx(ec,{className:h.circle,style:m,ownerState:f,cx:Gs,cy:Gs,r:(Gs-c)/2,fill:"none",strokeWidth:c})]})})});function rc(e){return Ho("MuiButton",e)}const oc=Uo("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"]),ic=k.createContext({}),ac=k.createContext(void 0),lc=[{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}}}],sc=Nl(Ws,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jr(n.color)}`],t[`size${jr(n.size)}`],t[`${n.variant}Size${jr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Vl(({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"},[`&.${oc.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]},[`&.${oc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${oc.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)",[`&.${oc.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(Us()).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"},[`&.${oc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oc.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}),[`&.${oc.loading}`]:{color:"transparent"}}}]}})),cc=Nl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${jr(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}},...lc]})),uc=Nl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${jr(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}},...lc]})),dc=Nl("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}}]})),pc=Nl("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),fc=k.forwardRef(function(e,t){const n=k.useContext(ic),r=k.useContext(ac),o=Gl({props:ri(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=Ii(m),L=b??mr.jsx(nc,{"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=Ki({root:["root",a&&"loading",i,`${i}${jr(t)}`,`size${jr(o)}`,`${i}Size${jr(o)}`,`color${jr(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${jr(l)}`],startIcon:["icon","startIcon",`iconSize${jr(o)}`],endIcon:["icon","endIcon",`iconSize${jr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},rc,s);return{...s,...c}})(R),T=(S||g&&"start"===y)&&mr.jsx(cc,{className:P.startIcon,ownerState:R,children:S||mr.jsx(pc,{className:P.loadingIconPlaceholder,ownerState:R})}),O=(p||g&&"end"===y)&&mr.jsx(uc,{className:P.endIcon,ownerState:R,children:p||mr.jsx(pc,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",M="boolean"==typeof g?mr.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&mr.jsx(dc,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:q,...D}=P;return mr.jsxs(sc,{ownerState:R,className:Bo(n.className,P.root,s,I),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:Bo(P.focusVisible,f),ref:t,type:x,id:g?E:m,...C,classes:D,children:[T,"end"!==y&&M,i,"end"===y&&M,O]})});var hc={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 mc={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"},gc={mode:"light",palette:{primary:{main:mc.grey25,contrastText:mc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:mc.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:mc.grey100,dark:mc.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:mc.grey100,default:mc.grey100,lightest:mc.grey100,lighter:mc.grey98,darker:mc.grey95,darkest:mc.grey90},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:mc.blueDark,focusBorder:mc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:mc.grey45,disabledContrastText:mc.grey100},selected:{main:mc.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:mc.grey100,selectedContrastText:mc.grey100,mainContrastText:mc.grey100,alternativeContrastText:mc.grey25,excludedContrastText:mc.grey25,selectedExcludedContrastText:mc.grey100,possibleContrastText:mc.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)"}}},bc={mode:"dark",palette:{primary:{main:mc.grey20,contrastText:mc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:mc.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:mc.grey100,dark:mc.grey0},action:{active:mc.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:mc.grey25,lighter:mc.grey20,darker:mc.grey15,darkest:mc.grey10},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:mc.blueDark,focusBorder:mc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:mc.grey45,disabledContrastText:mc.grey100},selected:{main:mc.green,alternative:mc.grey20,excluded:mc.grey10,selectedExcluded:mc.grey10,possible:mc.grey80,selectedContrastText:mc.grey100,mainContrastText:mc.grey100,alternativeContrastText:mc.grey100,excludedContrastText:mc.grey100,selectedExcludedContrastText:mc.grey100,possibleContrastText:mc.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)"}}},yc={},vc=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",[`&.${oc.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",[`&.${oc.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",[`&.${oc.disabled}`]:{backgroundColor:e.palette.btn.disabled}},"&.Mui-active":{boxShadow:"none",backgroundColor:e.palette.btn.active},[`&.${oc.disabled}`]:{backgroundColor:e.palette.btn.disabled}}}},MuiAccordionSummary:{styleOverrides:{content:{margin:"8px 0"}}}});function Sc(e){let t=gc,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn(`Invalid theme: '${e}'`):"dark"===e&&(t=bc));const r=JSON.stringify(t);if(yc[r])return yc[r];const o={palette:u(u({type:t.mode},hc.palette),t.palette),typography:u({},hc.typography),shadows:hc.shadows,shape:u({},hc.shape)},i=u(u({},o),{},{components:vc(o)});return yc[r]=Il(i),yc[r].name=n,yc[r]}$o.configure(e=>`njs-3df1-${e.replace("Mui","")}`);var xc=C.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const wc={active:!0,select:!0,passive:!0,edit:!1};function kc(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(wc).forEach(e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=wc[e],n[e]=!wc[e])}),e.constraints=n,e.interactions=t}var Cc=(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 Ec=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:Sc(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),mr.jsx(vr,{injectFirst:!0,children:mr.jsx(Wl,{theme:c,children:mr.jsx(xc.Provider,{value:i,children:u})})})});function Lc({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.5.1"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&kc(t);const l=function(e){const[t,n]=Cc({}),[r,o]=Cc({}),[i,a]=Cc({}),[l,s]=Cc({}),[c,u]=Cc({}),[,d]=Cc({}),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]=Cc({},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]=Cc({}),[r,o]=Cc({}),[i,a]=Cc({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),c=ut.createRoot(a);c.render(mr.jsx(Ec,{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&&kc(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 Rc=e=>e.scrollTop;function Pc(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function Tc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function Oc(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 Ic(e){return"string"==typeof e}function Mc(e,t,n){return void 0===e||Ic(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qc(e,t,n){return"function"==typeof e?e(t,n):e}function Dc(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 Nc(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=Bo(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=Dc({...o,...r}),l=Nc(r),s=Nc(o),c=t(a),u=Bo(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 jc(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=qc(d[e],o),{props:{component:m,...g},internalRef:b}=_c({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=os(b,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Mc(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 Ac(e){return Ho("MuiPaper",e)}Uo("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 zc=Nl("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}`]]}})(Vl(({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)"}}]}))),$c=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiPaper"}),r=ql(),{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 Ki({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ac,o)})(u);return mr.jsx(zc,{as:i,ownerState:u,className:Bo(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(${pi("#fff",yl(a))}, ${pi("#fff",yl(a))})`}},...c.style}})});function Fc(e){return Ho("MuiIconButton",e)}const Bc=Uo("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Wc=Nl(Ws,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${jr(n.color)}`],n.edge&&t[`edge${jr(n.edge)}`],t[`size${jr(n.size)}`]]}})(Vl(({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}}]})),Vl(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Us()).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)}}],[`&.${Bc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Bc.loading}`]:{color:"transparent"}}))),Hc=Nl("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"}}]})),Uc=k.forwardRef(function(e,t){const n=Gl({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=Ii(u),m=p??mr.jsx(nc,{"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 Ki({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${jr(r)}`,o&&`edge${jr(o)}`,`size${jr(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Fc,t)})(g);return mr.jsxs(Wc,{id:d?h:u,className:Bo(b.root,i),centerRipple:!0,focusRipple:!s,disabled:l||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&mr.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:mr.jsx(Hc,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})});function Vc(e){return Ho("MuiTypography",e)}Uo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Kc=Ao,Xc=Nl("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${jr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Vl(({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(Us()).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${jr(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}}]}))),Jc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zc=k.forwardRef(function(e,t){const{color:n,...r}=Gl({props:e,name:"MuiTypography"}),o=Kc({...r,...!Gc[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Jc,...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]||Jc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ki({root:["root",i,"inherit"!==e.align&&`align${jr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Vc,a)})(h);return mr.jsx(Xc,{as:m,ref:t,className:Bo(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})});function Qc(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 Yc(e){const t=k.useRef({});return k.useEffect(()=>{t.current=e}),t.current}var eu="top",tu="bottom",nu="right",ru="left",ou="auto",iu=[eu,tu,nu,ru],au="start",lu="end",su="viewport",cu="popper",uu=iu.reduce(function(e,t){return e.concat([t+"-"+au,t+"-"+lu])},[]),du=[].concat(iu,[ou]).reduce(function(e,t){return e.concat([t,t+"-"+au,t+"-"+lu])},[]),pu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fu(e){return e?(e.nodeName||"").toLowerCase():null}function hu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mu(e){return e instanceof hu(e).Element||e instanceof Element}function gu(e){return e instanceof hu(e).HTMLElement||e instanceof HTMLElement}function bu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hu(e).ShadowRoot||e instanceof ShadowRoot)}var yu={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];gu(o)&&fu(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},{});gu(r)&&fu(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function vu(e){return e.split("-")[0]}var Su=Math.max,xu=Math.min,wu=Math.round;function ku(){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 Cu(){return!/^((?!chrome|android).)*safari/i.test(ku())}function Eu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gu(e)&&(o=e.offsetWidth>0&&wu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wu(r.height)/e.offsetHeight||1);var a=(mu(e)?hu(e):window).visualViewport,l=!Cu()&&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 Lu(e){var t=Eu(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 Ru(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pu(e){return hu(e).getComputedStyle(e)}function Tu(e){return["table","td","th"].indexOf(fu(e))>=0}function Ou(e){return((mu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Iu(e){return"html"===fu(e)?e:e.assignedSlot||e.parentNode||(bu(e)?e.host:null)||Ou(e)}function Mu(e){return gu(e)&&"fixed"!==Pu(e).position?e.offsetParent:null}function qu(e){for(var t=hu(e),n=Mu(e);n&&Tu(n)&&"static"===Pu(n).position;)n=Mu(n);return n&&("html"===fu(n)||"body"===fu(n)&&"static"===Pu(n).position)?t:n||function(e){var t=/firefox/i.test(ku());if(/Trident/i.test(ku())&&gu(e)&&"fixed"===Pu(e).position)return null;var n=Iu(e);for(bu(n)&&(n=n.host);gu(n)&&["html","body"].indexOf(fu(n))<0;){var r=Pu(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 Du(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nu(e,t,n){return Su(e,xu(t,n))}function _u(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ju(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Au={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=vu(n.placement),s=Du(l),c=[ru,nu].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:ju(e,iu))}(o.padding,n),d=Lu(i),p="y"===s?eu:ru,f="y"===s?tu:nu,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=qu(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=Nu(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)))&&Ru(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(e){return e.split("-")[1]}var $u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fu(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=ru,S=eu,x=window;if(c){var w=qu(n),k="clientHeight",C="clientWidth";if(w===hu(n)&&"static"!==Pu(w=Ou(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),o===eu||(o===ru||o===nu)&&i===lu)S=tu,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=s?1:-1;if(o===ru||(o===eu||o===tu)&&i===lu)v=nu,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&&$u),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:wu(n*o)/o||0,y:wu(r*o)/o||0}}({x:f,y:m},hu(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 Bu={passive:!0};var Wu={left:"right",right:"left",bottom:"top",top:"bottom"};function Hu(e){return e.replace(/left|right|bottom|top/g,function(e){return Wu[e]})}var Uu={start:"end",end:"start"};function Vu(e){return e.replace(/start|end/g,function(e){return Uu[e]})}function Gu(e){var t=hu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ku(e){return Eu(Ou(e)).left+Gu(e).scrollLeft}function Xu(e){var t=Pu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ju(e){return["html","body","#document"].indexOf(fu(e))>=0?e.ownerDocument.body:gu(e)&&Xu(e)?e:Ju(Iu(e))}function Zu(e,t){var n;void 0===t&&(t=[]);var r=Ju(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=hu(r),a=o?[i].concat(i.visualViewport||[],Xu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Zu(Iu(a)))}function Qu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yu(e,t,n){return t===su?Qu(function(e,t){var n=hu(e),r=Ou(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Cu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Ku(e),y:s}}(e,n)):mu(t)?function(e,t){var n=Eu(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):Qu(function(e){var t,n=Ou(e),r=Gu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Su(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Su(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ku(e),s=-r.scrollTop;return"rtl"===Pu(o||n).direction&&(l+=Su(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Ou(e)))}function ed(e,t,n,r){var o="clippingParents"===t?function(e){var t=Zu(Iu(e)),n=["absolute","fixed"].indexOf(Pu(e).position)>=0&&gu(e)?qu(e):e;return mu(n)?t.filter(function(e){return mu(e)&&Ru(e,n)&&"body"!==fu(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=Yu(e,n,r);return t.top=Su(o.top,t.top),t.right=xu(o.right,t.right),t.bottom=xu(o.bottom,t.bottom),t.left=Su(o.left,t.left),t},Yu(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 td(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?vu(o):null,a=o?zu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case eu:t={x:l,y:n.y-r.height};break;case tu:t={x:l,y:n.y+n.height};break;case nu:t={x:n.x+n.width,y:s};break;case ru:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Du(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case au:t[c]=t[c]-(n[u]/2-r[u]/2);break;case lu:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function nd(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?su:c,d=n.elementContext,p=void 0===d?cu:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=_u("number"!=typeof g?g:ju(g,iu)),y=p===cu?"reference":cu,v=e.rects.popper,S=e.elements[h?y:p],x=ed(mu(S)?S:S.contextElement||Ou(e.elements.popper),s,u,a),w=Eu(e.elements.reference),k=td({reference:w,element:v,placement:o}),C=Qu(Object.assign({},v,k)),E=p===cu?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===cu&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[nu,tu].indexOf(e)>=0?1:-1,n=[eu,tu].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}function rd(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?du:s,u=zu(r),d=u?l?uu:uu.filter(function(e){return zu(e)===u}):iu,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]=nd(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[vu(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var od={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=vu(g),y=s||(b===g||!h?[Hu(g)]:function(e){if(vu(e)===ou)return[];var t=Hu(e);return[Vu(e),t,Vu(t)]}(g)),v=[g].concat(y).reduce(function(e,n){return e.concat(vu(n)===ou?rd(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=vu(L),P=zu(L)===au,T=[eu,tu].indexOf(R)>=0,O=T?"width":"height",I=nd(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=T?P?nu:ru:P?tu:eu;S[O]>x[O]&&(M=Hu(M));var q=Hu(M),D=[];if(i&&D.push(I[R]<=0),l&&D.push(I[M]<=0,I[q]<=0),D.every(function(e){return e})){C=L,k=!1;break}w.set(L,D)}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"},_=h?3:1;_>0;_--){if("break"===N(_))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function id(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 ad(e){return[eu,nu,tu,ru].some(function(t){return e[t]>=0})}var ld={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=du.reduce(function(e,n){return e[n]=function(e,t,n){var r=vu(e),o=[ru,eu].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,[ru,nu].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 sd={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=nd(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=vu(t.placement),y=zu(t.placement),v=!y,S=Du(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?eu:ru,I="y"===S?tu:nu,M="y"===S?"height":"width",q=w[S],D=q+g[O],N=q-g[I],_=f?-C[M]/2:0,j=y===au?k[M]:C[M],A=y===au?-C[M]:-k[M],z=t.elements.arrow,$=f&&z?Lu(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=Nu(0,k[M],$[M]),U=v?k[M]/2-_-H-B-L.mainAxis:j-H-B-L.mainAxis,V=v?-k[M]/2+_+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&qu(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=q+V-X,Z=Nu(f?xu(D,q+U-X-K):D,q,f?Su(N,J):N);w[S]=Z,P[S]=Z-q}if(l){var Q,Y="x"===S?eu:ru,ee="x"===S?tu:nu,te=w[x],ne="y"===x?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[eu,ru].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=Nu(e,t,n);return r>n?n:r}(le,te,se):Nu(f?le:re,te,f?se:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function cd(e,t,n){void 0===n&&(n=!1);var r=gu(t),o=gu(t)&&function(e){var t=e.getBoundingClientRect(),n=wu(t.width)/e.offsetWidth||1,r=wu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Ou(t),a=Eu(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==fu(t)||Xu(i))&&(l=function(e){return e!==hu(e)&&gu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Gu(e);var t}(t)),gu(t)?((s=Eu(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Ku(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ud(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 dd(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var pd={placement:"bottom",modifiers:[],strategy:"absolute"};function fd(){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 hd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?pd:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,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:mu(e)?Zu(e):e.contextElement?Zu(e.contextElement):[],popper:Zu(t)};var u,d,p=function(e){var t=ud(e);return pu.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(fd(t,n)){o.rects={reference:cd(t,qu(n),"fixed"===o.options.strategy),popper:Lu(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:dd(function(){return new Promise(function(e){s.forceUpdate(),e(o)})}),destroy:function(){c(),l=!0}};if(!fd(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 md=hd({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=hu(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Bu)}),l&&s.addEventListener("resize",n.update,Bu),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Bu)}),l&&s.removeEventListener("resize",n.update,Bu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=td({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:vu(t.placement),variation:zu(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,Fu(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,Fu(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:{}},yu,ld,od,sd,Au,{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=nd(t,{elementContext:"reference"}),l=nd(t,{altBoundary:!0}),s=id(a,r),c=id(l,o,i),u=ad(s),d=ad(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 gd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const bd=k.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=k.useState(null),l=os(k.isValidElement(n)?gd(n):null,t);if(ii(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ii(()=>{if(i&&!o)return ts(t,i),()=>{ts(t,null)}},[t,i,o]),o){if(k.isValidElement(n)){const e={ref:l};return k.cloneElement(n,e)}return n}return i?fs.createPortal(n,i):i});function yd(e){return Ho("MuiPopper",e)}function vd(e){return"function"==typeof e?e():e}Uo("MuiPopper",["root"]);const Sd={},xd=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=os(g,t),y=k.useRef(null),v=os(y,u),S=k.useRef(v);ii(()=>{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(vd(n));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{n&&L(vd(n))},[n]),ii(()=>{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=md(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 Ki({root:["root"]},yd,t)})(e),T=p.root??"div",O=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:qc(n,r),{props:l,internalRef:s}=_c({...i,externalSlotProps:a});return Mc(t,{...l,ref:os(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 mr.jsx(T,{...O,children:"function"==typeof r?r(R):r})}),wd=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=Sd,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=vd(n);S=e&&void 0!==e.nodeType?Yl(e).body:Yl(null).body}const x=c||!l||h&&!y?void 0:"none",w=h?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return mr.jsx(bd,{disablePortal:a,container:S,children:mr.jsx(xd,{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})})}),kd=Nl(wd,{name:"MuiPopper",slot:"Root"})({}),Cd=k.forwardRef(function(e,t){const n=Ei(),r=Gl({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 mr.jsx(kd,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:y??l,...x,ref:t})});function Ed(e){return parseInt(e,10)||0}const Ld={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pd=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=os(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=es(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=Ed(i.paddingBottom)+Ed(i.paddingTop),s=Ed(i.borderBottomWidth)+Ed(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=rs(()=>{const e=c.current,t=f();if(!e||!t||Rd(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||Rd(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);ii(()=>{const e=Ql(m),t=c?.current;if(!t)return;const n=es(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]),ii(()=>{m()});return mr.jsxs(k.Fragment,{children:[mr.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}),mr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Ld,...i,paddingTop:0,paddingBottom:0}})]})});function Td({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 Od=k.createContext(void 0);function Id(){return k.useContext(Od)}function Md(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function qd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Dd(e){return Ho("MuiInputBase",e)}const Nd=Uo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _d;const jd="mui-auto-fill",Ad="mui-auto-fill-cancel",zd=(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${jr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$d=(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]},Fd=Nl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:zd})(Vl(({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",[`&.${Nd.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%"}}]}))),Bd=Nl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(Vl(({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] + .${Nd.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},[`&.${Nd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Ad,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:jd}}},{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"}}]}})),Wd=function(e){return function(t){return mr.jsx(Ul,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${jd}`]:{from:{animationName:jd}},[`@keyframes ${Ad}`]:{from:{animationName:Ad}}}),Hd=k.forwardRef(function(e,t){const n=Gl({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:q,renderSuffix:D,rows:N,size:_,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=os(U,v,y.ref,V),[K,X]=k.useState(!1),J=Id(),Z=Td({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&&(qd(e.value)&&""!==e.value||t&&qd(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():Q&&Q()},[Q,Y]);ii(()=>{H&&ee({value:W})},[W,ee,H]),ii(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Yl(e),n=Md(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=Pd);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 Ki({root:["root",`color${jr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${jr(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"]},Dd,t)})(re),ie=A.root||s.Root||Fd,ae=j.root||c.root||{},le=A.input||s.Input||Bd;return ne={...ne,...j.input??c.input},mr.jsxs(k.Fragment,{children:[!p&&"function"==typeof Wd&&(_d||(_d=mr.jsx(Wd,{}))),mr.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Ic(ie)&&{ownerState:{...re,...ae.ownerState}},className:Bo(oe.root,ae.className,a,q&&"MuiInputBase-readOnly"),children:[z,mr.jsx(Od.Provider,{value:null,children:mr.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===Ad?U.current:{value:"x"})},name:E,placeholder:M,readOnly:q,required:Z.required,rows:N,value:W,onKeyDown:O,onKeyUp:I,type:$,...ne,...!Ic(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:Bo(oe.input,ne.className,q&&"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(dt(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,D?D({...Z,startAdornment:z}):null]})]})});function Ud(e){return Ho("MuiOutlinedInput",e)}const Vd={...Nd,...Uo("MuiOutlinedInput",["root","notchedOutline","input"])},Gd={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Kd={opacity:0,visibility:"hidden"},Xd=k.forwardRef(function(e,t){const n=ql(),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=os(y,gd(a),t),S=Pc(y,d),x=Pc(y,(e,t)=>{Rc(e);const r=Oc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),w=Pc(y,u),C=Pc(y,h),E=Pc(y,e=>{const t=Oc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),L=Pc(y,e=>{e.style.transition="",f&&f(e)});return mr.jsx(ws,{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=Tc(e,s,Gd,Kd,m,a.props.style);return k.cloneElement(a,{style:r,ref:v,...n})}})});function Jd(e){return Ho("MuiBackdrop",e)}Uo("MuiBackdrop",["root","invisible"]);const Zd=Nl("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"}}]}),Qd=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",n&&"invisible"]},Jd,t)})(m),b={component:i,slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,v]=jc("root",{elementType:Zd,externalForwardedProps:b,className:Bo(g.root,o),ownerState:m}),[S,x]=jc("transition",{elementType:Xd,externalForwardedProps:b,ownerState:m});return mr.jsx(S,{in:l,timeout:f,...h,...x,children:mr.jsx(y,{"aria-hidden":!0,...v,ref:t,children:r})})});function Yd(e){return Ho("MuiBadge",e)}const ep=Uo("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"]),tp=Nl("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),np=Nl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${jr(n.anchorOrigin.vertical)}${jr(n.anchorOrigin.horizontal)}${jr(n.overlap)}`],"default"!==n.color&&t[`color${jr(n.color)}`],n.invisible&&t.invisible]}})(Vl(({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(Us(["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%"}`,[`&.${ep.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function rp(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const op=k.forwardRef(function(e,t){const n=Gl({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=Yc({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=Yc({anchorOrigin:rp(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=rp(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},q=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Ki({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${jr(n.vertical)}${jr(n.horizontal)}`,`anchorOrigin${jr(n.vertical)}${jr(n.horizontal)}${jr(o)}`,`overlap${jr(o)}`,"default"!==t&&`color${jr(t)}`]},Yd,a)})(M),D={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[N,_]=jc("root",{elementType:tp,externalForwardedProps:{...D,...v},ownerState:M,className:Bo(q.root,o),ref:t,additionalProps:{as:a}}),[j,A]=jc("badge",{elementType:np,externalForwardedProps:D,ownerState:M,className:q.badge});return mr.jsxs(N,{..._,children:[c,mr.jsx(j,{...A,children:I})]})}),ip=Uo("MuiBox",["root"]),ap=Il(),lp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Oo),a=k.forwardRef(function(e,a){const l=No(n),{className:s,component:c="div",...u}=Ao(e);return mr.jsx(i,{as:c,ref:a,className:Bo(s,o?o(r):r),theme:t&&l[t]||l,...u})});return a}({themeId:pt,defaultTheme:ap,defaultClassName:ip.root,generateClassName:$o.generate});function sp(e){return Ho("PrivateSwitchBase",e)}Uo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cp=Nl(Ws,{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}}]}),up=Nl("input",{name:"MuiSwitchBase",shouldForwardProp:Dl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),dp=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]=ns({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Id();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 Ki({root:["root",n&&"checked",r&&"disabled",o&&`edge${jr(o)}`],input:["input"]},sp,t)})(O),M={slots:w,slotProps:{input:d,...k}},[q,D]=jc("root",{ref:t,elementType:cp,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,_]=jc("input",{ref:p,elementType:up,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 mr.jsxs(q,{...D,children:[mr.jsx(N,{..._}),E?o:c]})});var pp=Zl(mr.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"})),fp=Zl(mr.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"})),hp=Zl(mr.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 mp(e){return Ho("MuiCheckbox",e)}const gp=Uo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bp=Nl(dp,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${jr(n.size)}`],"default"!==n.color&&t[`color${jr(n.color)}`]]}})(Vl(({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(Us()).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(Us()).map(([t])=>({props:{color:t},style:{[`&.${gp.checked}, &.${gp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${gp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),yp=mr.jsx(fp,{}),vp=mr.jsx(pp,{}),Sp=mr.jsx(hp,{}),xp=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiCheckbox"}),{checkedIcon:r=yp,color:o="primary",icon:i=vp,indeterminate:a=!1,indeterminateIcon:l=Sp,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=Ki({root:["root",n&&"indeterminate",`color${jr(r)}`,`size${jr(o)}`]},mp,t);return{...t,...i}})(b),v=f.input??s,[S,x]=jc("root",{ref:t,elementType:bp,className:Bo(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:is("function"==typeof v?v(b):v,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return mr.jsx(S,{...x,classes:y})});function wp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function kp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Cp(e){return parseFloat(es(e).getComputedStyle(e).paddingRight)||0}function Ep(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&&kp(e,o)})}function Lp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Rp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Yl(e);return t.body===e?es(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=wp(es(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Cp(r)+e}px`;const t=Yl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Cp(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Yl(r).body;else{const t=r.parentElement,n=es(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 Pp="data-mui-focusable";const Tp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Op(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tp)).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 Ip(){return!0}function Mp(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Op,isEnabled:a=Ip,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=os(gd(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=Md(Yl(h.current)),t=((n=h.current)?n.hasAttribute(Pp)?n:n.querySelector(`[${Pp}]`):null)??h.current;var n;return Qc(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=Yl(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;Md(e)===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;const n=Md(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(Qc(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=Md(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 mr.jsxs(k.Fragment,{children:[mr.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)}}),mr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const qp=()=>{},Dp=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&&kp(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);Ep(t,e.mount,e.modalRef,r,!0);const o=Lp(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=Lp(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Rp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Lp(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&&kp(e.modalRef,t),Ep(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&&kp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Np(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=os(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=()=>{Dp.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=rs(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Yl(p.current).body;Dp.add(v(),e),f.current&&S()}),w=()=>Dp.isTopModal(v()),C=rs(e=>{p.current=e,e&&(c&&w()?S():f.current&&kp(f.current,y))}),E=k.useCallback(()=>{Dp.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=Dc(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:Hl(()=>{g(!1),i&&i()},l?.props.onEnter??qp),onExited:Hl(()=>{g(!0),a&&a(),o&&E()},l?.props.onExited??qp)}),rootRef:h,portalRef:C,isTopModal:w,exited:m,hasTransition:b}}function _p(e){return Ho("MuiModal",e)}Uo("MuiModal",["root","hidden","backdrop"]);const jp=Nl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vl(({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"}}]}))),Ap=Nl(Qd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),zp=k.forwardRef(function(e,t){const n=Gl({name:"MuiModal",props:e}),{BackdropComponent:r=Ap,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:q,portalRef:D,isTopModal:N,exited:_,hasTransition:j}=Np({...O,rootRef:t}),A={...O,exited:_},z=(e=>{const{open:t,exited:n,classes:r}=e;return Ki({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_p,r)})(A),$={};if(void 0===s.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const F={slots:{root:d.Root,backdrop:d.Backdrop,...R},slotProps:{...p,...L}},[B,W]=jc("root",{ref:t,elementType:jp,externalForwardedProps:{...F,...T,component:u},getSlotProps:I,ownerState:A,className:Bo(a,z?.root,!A.open&&A.exited&&z?.hidden)}),[H,U]=jc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Bo(o?.className,z?.backdrop),ownerState:A});return S||E||j&&!_?mr.jsx(bd,{ref:D,container:c,disablePortal:g,children:mr.jsxs(B,{...W,children:[!v&&r?mr.jsx(H,{...U}):null,mr.jsx(Mp,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:b,isEnabled:N,open:E,children:k.cloneElement(s,$)})]})}):null});function $p(e){return Ho("MuiDivider",e)}const Fp=Uo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bp=Nl("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]}})(Vl(({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%"}}}]}))),Wp=Nl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Vl(({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)`}}]}))),Hp=k.forwardRef(function(e,t){const n=Gl({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 Ki({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"]},$p,r)})(h);return mr.jsx(Bp,{as:l,className:Bo(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?mr.jsx(Wp,{className:m.wrapper,ownerState:h,children:o}):null})});function Up(e){return Ho("MuiFormControlLabel",e)}Hp&&(Hp.muiSkipListHighlight=!0);const Vp=Uo("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Gp=Nl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vp.label}`]:t.label},t.root,t[`labelPlacement${jr(n.labelPlacement)}`]]}})(Vl(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vp.disabled}`]:{cursor:"default"},[`& .${Vp.label}`]:{[`&.${Vp.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}}]}))),Kp=Nl("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Vl(({theme:e})=>({[`&.${Vp.error}`]:{color:(e.vars||e).palette.error.main}}))),Xp=k.forwardRef(function(e,t){const n=Gl({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=Id(),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=Td({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 Ki({root:["root",n&&"disabled",`labelPlacement${jr(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Up,t)})(E),R={slots:m,slotProps:{...i,...g}},[P,T]=jc("typography",{elementType:Zc,externalForwardedProps:R,ownerState:E});let O=u;return null==O||O.type===Zc||s||(O=mr.jsx(P,{component:"span",...T,className:Bo(L.label,T?.className),children:O})),mr.jsxs(Gp,{className:Bo(L.root,o),ownerState:E,ref:t,...y,children:[k.cloneElement(a,w),x?mr.jsxs("div",{children:[O,mr.jsxs(Kp,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):O]})}),Jp=function(e={}){const{createStyledComponent:t=pa,useThemeProps:n=fa,useTheme:r=No,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(ra,ia,oa,ta,aa,la,na),l=k.forwardRef(function(e,t){const l=r(),s=Ao(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 Ki({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...ua(r),...sa(l),...n?ca(i,t.breakpoints.keys[0]):[]]},e=>Ho(o,e),{})})(O,l);return mr.jsx(a,{ref:t,as:f,ownerState:O,className:Bo(I.root,c),...w,children:k.Children.map(u,e=>k.isValidElement(e)&&Xi(e,["Grid"])&&p&&e.props.container?k.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:Nl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Gl({props:e,name:"MuiGrid"}),useTheme:ql});function Zp(e){return`scale(${e}, ${e**2})`}const Qp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Zp(.75)},exited:{opacity:0,transform:Zp(.75)}},Yp={opacity:0,transform:Zp(.75),visibility:"hidden"},ef=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=Ms(),b=k.useRef(),y=ql(),v=k.useRef(null),S=os(v,gd(o),t),x=Pc(v,c),w=Pc(v,(e,t)=>{Rc(e);const{duration:n,delay:r,easing:o}=Oc({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=Pc(v,s),E=Pc(v,p),L=Pc(v,e=>{const{duration:t,delay:n,easing:r}=Oc({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=Zp(.75),u&&u(e)}),R=Pc(v,e=>{e.style.transition="",d&&d(e)});return mr.jsx(ws,{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=Tc(e,a,Qp,Yp,f,o.props.style);return k.cloneElement(o,{style:r,ref:S,...n})}})});function tf(e){return Ho("MuiIcon",e)}ef&&(ef.muiSupportAuto=!0),Uo("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nf=Nl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${jr(n.color)}`],t[`fontSize${jr(n.fontSize)}`]]}})(Vl(({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(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rf=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root","inherit"!==t&&`color${jr(t)}`,`fontSize${jr(n)}`]},tf,r)})(c);return mr.jsx(nf,{as:a,className:Bo(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...s})});function of(e){return Ho("MuiInputAdornment",e)}rf.muiName="Icon";const af=Uo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lf;const sf=Nl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${jr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Vl(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${af.positionStart}&:not(.${af.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),cf=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c,...u}=n,d=Id()||{};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 Ki({root:["root",n&&"disablePointerEvents",o&&`position${jr(o)}`,a,r&&"hiddenLabel",i&&`size${jr(i)}`]},of,t)})(f);return mr.jsx(Od.Provider,{value:null,children:mr.jsx(sf,{as:i,ownerState:f,className:Bo(h.root,o),ref:t,...u,children:"string"!=typeof r||l?mr.jsxs(k.Fragment,{children:["start"===s?lf||(lf=mr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):mr.jsx(Zc,{color:"textSecondary",children:r})})})}),uf=k.createContext({});function df(e){return Ho("MuiList",e)}Uo("MuiList",["root","padding","dense","subheader"]);const pf=Nl("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}}]}),ff=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},df,t)})(d);return mr.jsx(uf.Provider,{value:u,children:mr.jsxs(pf,{as:i,className:Bo(p.root,o),ref:t,ownerState:d,...c,children:[s,r]})})});function hf(e){return Ho("MuiListItem",e)}Uo("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const mf=Uo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function gf(e){return Ho("MuiListItemSecondaryAction",e)}Uo("MuiListItemSecondaryAction",["root","disableGutters"]);const bf=Nl("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}}]}),yf=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=k.useContext(uf),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Ki({root:["root",t&&"disableGutters"]},gf,n)})(a);return mr.jsx(bf,{className:Bo(l.root,r),ownerState:a,ref:t,...o})});yf.muiName="ListItemSecondaryAction";const vf=Nl("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]}})(Vl(({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:{[`& > .${mf.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}}]}))),Sf=Nl("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xf=k.forwardRef(function(e,t){const n=Gl({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(uf),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&&Xi(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 Ki({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},hf,n)})(L),P=os(w,t),T={slots:y,slotProps:b},[O,I]=jc("secondaryAction",{elementType:yf,externalForwardedProps:T,ownerState:L,className:R.secondaryAction}),M=y.root||l.Root||vf,q=b.root||s.root||{},D={className:Bo(R.root,q.className,i),...v};let N=a||"li";return E?(N=D.component||a?N:"div","li"===c&&("li"===N?N="div":"li"===D.component&&(D.component="div")),mr.jsx(uf.Provider,{value:x,children:mr.jsxs(Sf,{as:c,className:Bo(R.container,u),ref:P,ownerState:L,...d,children:[mr.jsx(M,{...q,...!Ic(M)&&{as:N,ownerState:{...L,...q.ownerState}},...D,children:C}),C.pop()]})})):mr.jsx(uf.Provider,{value:x,children:mr.jsxs(M,{...q,as:N,ref:P,...!Ic(M)&&{ownerState:{...L,...q.ownerState}},...D,children:[C,g&&mr.jsx(O,{...I,children:g})]})})});function wf(e){return Ho("MuiListItemIcon",e)}const kf=Uo("MuiListItemIcon",["root","alignItemsFlexStart"]),Cf=Nl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Vl(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ef=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=k.useContext(uf),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Ki({root:["root","flex-start"===t&&"alignItemsFlexStart"]},wf,n)})(a);return mr.jsx(Cf,{className:Bo(l.root,r),ownerState:a,ref:t,...o})}),Lf=Uo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Pf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tf(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 Of(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")&&Tf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const If=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});ii(()=>{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=`${wp(es(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=os(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 mr.jsx(ff,{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=Md(Yl(t));if("ArrowDown"===n)e.preventDefault(),Of(t,r,s,l,Rf);else if("ArrowUp"===n)e.preventDefault(),Of(t,r,s,l,Pf);else if("Home"===n)e.preventDefault(),Of(t,null,s,l,Rf);else if("End"===n)e.preventDefault(),Of(t,null,s,l,Pf);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&&Tf(r,o);o.previousKeyMatched&&(s||Of(t,r,!1,l,Rf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})});function Mf(e){return Ho("MuiPopover",e)}function qf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Df(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Nf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function _f(e){return"function"==typeof e?e():e}Uo("MuiPopover",["root","paper"]);const jf=Nl(zp,{name:"MuiPopover",slot:"Root"})({}),Af=Nl($c,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zf=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root"],paper:["paper"]},Mf,t)})(E),R=k.useCallback(()=>{if("anchorPosition"===l)return a;const e=_f(o),t=(e&&1===e.nodeType?e:Yl(C.current).body).getBoundingClientRect();return{top:t.top+qf(t,i.vertical),left:t.left+Df(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),P=k.useCallback(e=>({vertical:qf(e,b.vertical),horizontal:Df(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:Nf(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=es(_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:Nf(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=Ql(()=>{M()}),t=es(_f(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,f,M]);let q=v;const D={slots:{transition:y,...m},slotProps:{transition:S,paper:h,...g}},[N,_]=jc("transition",{elementType:ef,externalForwardedProps:D,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||(q=void 0);const j=u||(o?Yl(_f(o)).body:void 0),[A,{slots:z,slotProps:$,...F}]=jc("root",{ref:t,elementType:jf,externalForwardedProps:{...D,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:is("function"==typeof g.backdrop?g.backdrop(E):g.backdrop,{invisible:!0})},container:j,open:f},ownerState:E,className:Bo(L.root,c)}),[B,W]=jc("paper",{ref:C,className:L.paper,elementType:Af,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:E});return mr.jsx(A,{...F,...!Ic(A)&&{slots:z,slotProps:$,disableScrollLock:x},children:mr.jsx(N,{..._,timeout:q,children:mr.jsx(B,{...W,children:s})})})});function $f(e){return Ho("MuiMenuItem",e)}const Ff=Uo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Bf=k.createContext(null);var Wf;Bf.Provider;const Hf=Nl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dl})({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%"}),Uf=Nl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dl})(Vl(({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 Vf=Nl(Fd,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:zd})(Vl(({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 .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vd.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Vd.focused} .${Vd.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{[`&.${Vd.focused} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Vd.error} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vd.disabled} .${Vd.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"}}]}})),Gf=Nl(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 mr.jsx(Hf,{"aria-hidden":!0,className:r,ownerState:s,...a,children:mr.jsx(Uf,{ownerState:s,children:l?mr.jsx("span",{children:o}):Wf||(Wf=mr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Vl(({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}})),Kf=Nl(Bd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(Vl(({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}}]}))),Xf=k.forwardRef(function(e,t){const n=Gl({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=Ki({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ud,t);return{...t,...n}})(n),h=Id(),m=Td({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??Vf,y=c.input??r.Input??Kf,[v,S]=jc("notchedOutline",{elementType:Gf,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:null!=a&&""!==a&&m.required?mr.jsxs(k.Fragment,{children:[a," ","*"]}):a}});return mr.jsx(Hd,{slots:{root:b,input:y},slotProps:u,renderSuffix:e=>mr.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}})});Xf.muiName="Input";const Jf=Nl(Ws,{shouldForwardProp:e=>Dl(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]}})(Vl(({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"}},[`&.${Ff.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ff.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ff.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)}},[`&.${Ff.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ff.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fp.inset}`]:{marginLeft:52},[`& .${Lf.root}`]:{marginTop:0,marginBottom:0},[`& .${Lf.inset}`]:{paddingLeft:36},[`& .${kf.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,[`& .${kf.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zf=k.forwardRef(function(e,t){const n=Gl({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(Bf),h=k.useContext(uf),m=k.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),g=k.useRef(null);ii(()=>{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=Ki({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$f,a);return{...a,...l}})(n),v=os(g,t),{root:S,...x}=y;let w;return n.disabled||(w=void 0!==u?u:-1),mr.jsx(uf.Provider,{value:m,children:mr.jsx(Jf,{ref:v,role:c,tabIndex:w,component:o,focusVisibleClassName:Bo(y.focusVisible,s),className:Bo(y.root,d),...p,ownerState:b,classes:x})})});var Qf=Zl(mr.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"})),Yf=Zl(mr.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 eh=Nl("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Dl})({position:"relative",display:"flex"}),th=Nl(Qf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),nh=Nl(Yf,{name:"MuiRadioButtonIcon"})(Vl(({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 rh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return mr.jsxs(eh,{className:n.root,ownerState:o,children:[mr.jsx(th,{fontSize:r,className:n.background,ownerState:o}),mr.jsx(nh,{fontSize:r,className:n.dot,ownerState:o})]})}const oh=k.createContext(void 0);function ih(e){return Ho("MuiRadio",e)}const ah=Uo("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),lh=Nl(dp,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${jr(n.size)}`],t[`color${jr(n.color)}`]]}})(Vl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${ah.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(Us()).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(Us()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${ah.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));const sh=mr.jsx(rh,{checked:!0}),ch=mr.jsx(rh,{}),uh=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=sh,color:i="primary",icon:a=ch,name:l,onChange:s,size:c="medium",className:u,disabled:d,disableRipple:p=!1,slots:f={},slotProps:h={},inputProps:m,...g}=n,b=Id();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${jr(n)}`,"medium"!==r&&`size${jr(r)}`]};return{...t,...Ki(o,ih,t)}})(v),x=k.useContext(oh);let w=r;const C=Hl(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]=jc("root",{ref:t,elementType:lh,className:Bo(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 mr.jsx(R,{...P,classes:S})});function dh(e){return Ho("MuiTooltip",e)}const ph=Uo("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const fh=Nl(Cd,{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]}})(Vl(({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"] .${ph.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ph.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ph.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ph.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ph.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ph.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ph.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ph.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),hh=Nl("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${jr(n.placement.split("-")[0])}`]]}})(Vl(({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,[`.${ph.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ph.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ph.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:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ph.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ph.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),mh=Nl("span",{name:"MuiTooltip",slot:"Arrow"})(Vl(({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 gh=!1;const bh=new Is;let yh={x:0,y:0};function vh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Sh=k.forwardRef(function(e,t){const n=Gl({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,q=k.isValidElement(o)?o:mr.jsx("span",{children:o}),D=ql(),N=Ei(),[_,j]=k.useState(),[A,z]=k.useState(null),$=k.useRef(!1),F=d||g,B=Ms(),W=Ms(),H=Ms(),U=Ms(),[V,G]=ns({controlled:w,default:!1,name:"Tooltip",state:"open"});let K=V;const X=Ii(b),J=k.useRef(),Z=rs(()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),U.clear()});k.useEffect(()=>Z,[Z]);const Q=e=>{bh.clear(),gh=!0,G(!0),x&&!K&&x(e)},Y=rs(e=>{bh.start(800+y,()=>{gh=!1}),G(!1),S&&K&&S(e),B.start(D.transitions.duration.shortest,()=>{$.current=!1})}),ee=e=>{$.current&&"touchstart"!==e.type||(_&&_.removeAttribute("title"),W.clear(),H.clear(),f||gh&&h?W.start(gh?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??_;if(!t||!as(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=>{_||j(e.currentTarget),as(e.target)&&(ne(!0),ee(e))},ie=e=>{$.current=!0;const t=q.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=>{q.props.onTouchEnd&&q.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=os(gd(q),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,...q.props,className:Bo(M.className,q.props.className),onTouchStart:ie,ref:se,...g?{onMouseMove:e=>{const t=q.props;t.onMouseMove&&t.onMouseMove(e),yh={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};p||(pe.onTouchStart=ae,pe.onTouchEnd=le),u||(pe.onMouseOver=vh(ee,pe.onMouseOver),pe.onMouseLeave=vh(te,pe.onMouseLeave),F||(fe.onMouseOver=ee,fe.onMouseLeave=te)),c||(pe.onFocus=vh(oe,pe.onFocus),pe.onBlur=vh(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 Ki({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${jr(i.split("-")[0])}`],arrow:["arrow"]},dh,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]=jc("popper",{elementType:fh,externalForwardedProps:ve,ownerState:he,className:Bo(be.popper,L?.className)}),[we,ke]=jc("transition",{elementType:ef,externalForwardedProps:ve,ownerState:he}),[Ce,Ee]=jc("tooltip",{elementType:hh,className:be.tooltip,externalForwardedProps:ve,ownerState:he}),[Le,Re]=jc("arrow",{elementType:mh,className:be.arrow,externalForwardedProps:ve,ownerState:he,ref:z});return mr.jsxs(k.Fragment,{children:[k.cloneElement(q,pe),mr.jsx(Se,{as:E??Cd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:yh.y,left:yh.x,right:yh.x,bottom:yh.y,width:0,height:0})}:_,popperRef:ce,open:!!_&&K,id:X,transition:!0,...fe,...xe,popperOptions:ge,children:({TransitionProps:e})=>mr.jsx(we,{timeout:D.transitions.duration.shorter,...e,...ke,children:mr.jsxs(Ce,{...Ee,children:[T,r?mr.jsx(Le,{...Re}):null]})})})]})});function xh(){const{useModelStore:e}=k.useContext(xc).modelStore;return e()}function wh(e,t,...n){const r=t?`${t.id}/${JSON.stringify(e)}`:null,[o]=xh(),[i]=function(){const{useRpcRequestSessionModelStore:e}=k.useContext(xc).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 kh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ch(e){return wh(kh,e)}const Eh=(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 Lh(e,t){const n=e?`${e.id}`:null,[r]=function(){const{useRpcResultStore:e}=k.useContext(xc).modelStore;return e()}(),[o,i]=k.useReducer(Eh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=k.useContext(xc).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=k.useContext(xc).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 Rh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Lh(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 Ph(e){return Lh(e,"getAppLayout")}function Th(){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 Oh="singlepublic-pinnedItems",Ih=e=>{var t;const[n]=(e=>{const[t,n]=k.useState(null),[r,o]=k.useState(null),[i]=xh();return k.useEffect(()=>{let t=!0,r=()=>{};if(e)return async function(){try{const a=`${e.id}-${Oh}`;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,Oh),!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]=Lh(n,"getLayout");return[null!==(t=null==r?void 0:r.pinnedItems)&&void 0!==t?t:[]]},Mh=(e,t,n)=>{const[r,o]=k.useState(void 0),[i,a]=k.useState(void 0),[l]=xh();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]},qh={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},Dh={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Nh="qField",_h="id",jh=(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},Ah=(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=>Nh in n&&n[Nh]?e.some(e=>e.qName===n[Nh]):!(!(_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[Nh],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 zh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function $h({size:e,style:t={},viewBox:n="0 0 16 16",shapes:r=[]}){const o=u({fontSize:zh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},t);return mr.jsx("i",{style:o,children:mr.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)=>mr.jsx(e,u({},t),n))})})}var Fh=e=>$h((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 Bh=e=>$h((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 Wh=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 Hh=e=>$h(Wh(e));var Uh=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}}(),Vh=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},Gh=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=Vh(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},Vh(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),Uh(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 Kh=["S","XS"],Xh=e=>e.reduce((e,t)=>e.concat(t));function Jh(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Kh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Xh(t)}async function Zh({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 Qh="RowColumn",Yh={row:`${Qh}-row`,rowBorderBottom:`${Qh}-rowBorderBottom`,column:`${Qh}-column`,fieldRoot:`${Qh}-fieldRoot`,cell:`${Qh}-cell`,labelText:`${Qh}-labelText`,labelDense:`${Qh}-labelDense`,highlighted:`${Qh}-highlighted`,checkboxLabel:`${Qh}-checkboxLabel`,icon:`${Qh}-icon`,S:`${Qh}-S`,XS:`${Qh}-XS`,A:`${Qh}-A`,X:`${Qh}-X`,frequencyCount:`${Qh}-frequencyCount`,barContainer:`${Qh}-barContainer`,bar:`${Qh}-bar`,barSelected:`${Qh}-barSelected`,barWithCheckbox:`${Qh}-barWithCheckbox`,barSelectedWithCheckbox:`${Qh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Qh}-excludedTextWithCheckbox`},em=`.${Yh.fieldRoot}`,tm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function nm({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(),Zh({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 Xh(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&&tm(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&&tm(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(em))||void 0===n?void 0:n.getAttribute("data-n")),i=Number(null===(r=t.touches[1].target)||void 0===r||null===(r=r.closest(em))||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&&tm(null==o?void 0:o.nativeEvent);a||e.clearItemStates(!0);const l=[];return e.updateItems(n,r,l),e.setSelectableValuesUpdating(),Zh({selections:t,elemNumbers:r?l:n,isSingleSelect:e.isSingleSelect,toggle:a})}}}const rm=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 om=e=>$h(rm(e));const im=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,am=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||im(e))&&t;const lm=({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?Yh.column:Yh.row];t||o.push(Yh.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Yh.XS:Yh.S;break;case"S":case"L":n=Yh.S;break;case"A":n=!!t&&Yh.A;break;case"X":case"XL":n=!!t&&Yh.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o},sm=e=>e.filter(e=>!!e).join(" ").trim(),cm=e=>e||"-",um=["backgroundColor"],dm=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>{if("P"===t)return`${e.freqMinWidth}px`;return n&&!r?"max-content":"25%"},pm=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,fm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${Yh.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${Yh.labelText}`]:{color:i},[`& .${Yh.icon}`]:{color:i}}},hm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},mm=Nl("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,um),m=fm({styles:c,checkboxes:t,selectionState:"selected"}),g=fm({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"}},[`& .${Yh.row}`]:u({flexWrap:"nowrap"},c.content),[`& .${Yh.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${Yh.column}`]:u({flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`},c.content),[`& .${Yh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Yh.labelText}`]:u(u({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},hm),h),[`& .${Yh.labelDense}`]:{lineHeight:"18px"},[`& .${Yh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Yh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":u(u({},hm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},[`& .${Yh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Yh.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}),[`& .${Yh.XS}`]:u(u({},fm({styles:c,checkboxes:t,selectionState:"selectedExcluded"})),{},{border:n?"none":void 0}),[`& .${Yh.A}`]:u(u({},fm({styles:c,checkboxes:t,selectionState:"alternative"})),{},{border:n?"none":void 0}),[`& .${Yh.X}`]:u(u({},g),{},{border:n?"none":void 0}),[`& .${Yh.X}, & .${Yh.XS}`]:{border:n?"none":void 0,[`& .${Yh.barSelected} .bar-filled`]:u({},b)},[`& .${Yh.frequencyCount}`]:u(u({zIndex:3,justifyContent:"flex-end"},hm),{},{flex:`0 0 ${dm({sizes:a,frequencyMode:l,isGridMode:n,freqHitsValue:s})}`,minWidth:!n&&"P"!==l&&s?a.freqMinWidth:"max-content",maxWidth:pm({sizes:a,frequencyMode:l,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),[`&.${Yh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Yh.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)},[`& .${Yh.barSelected}`]:{"& .bar-filled":u({},y)},[`& .${Yh.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${Yh.barSelectedWithCheckbox}`]:{"& .bar-filled":u(u({},y),{},{backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected})},[`& .${Yh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}});var gm=C.memo(mm);const bm="ListBoxCheckbox",ym={cbIcon:`${bm}-cbIcon`,cbIconChecked:`${bm}-cbIconChecked`,cbIconExcluded:`${bm}-cbIconExcluded`,cbIconAlternative:`${bm}-cbIconAlternative`,checkbox:`${bm}-checkbox`,dense:`${bm}-dense`},vm=Nl(xp,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${ym.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"},[`& .${ym.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:'""'}},[`& .${ym.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${ym.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${ym.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ym.dense}`]:{padding:"4px 8px"}})),Sm=(e,t=!0,n=!1)=>mr.jsx("span",{className:e.cbIcon,children:n&&mr.jsx("span",{className:t&&n?e.cbIconExcluded:""})});function xm({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:l}){return mr.jsx(vm,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ym.checkbox,r&&ym.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:Sm(ym,a,o),checkedIcon:mr.jsx("span",{className:ym.cbIconChecked}),styles:i})}const wm={radioButton:"ListBoxRadioButton-radioButton"},km=Nl(uh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${wm.radioButton}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Cm({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return mr.jsx(km,{checked:t,onChange:e,value:n,name:n,className:wm.radioButton,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}function Em({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return mr.jsx(Zc,{component:"span",variant:"body2",className:sm([Yh.labelText,t&&Yh.labelDense,n&&am({cell:o,checkboxes:r})&&Yh.excludedTextWithCheckbox]),align:i,dir:"auto",children:mr.jsx("span",{children:e})})}function Lm({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?mr.jsx(Em,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e}function Rm({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=mr.jsx(xm,{onChange:e,label:t,checked:r,dense:o,excluded:im(i),isGridCol:a,showGray:l,dataN:n,styles:d}),f=mr.jsx(Cm,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return mr.jsx(Xp,{control:s?f:p,className:Yh.checkboxLabel,label:mr.jsx(Lm,{label:t,dense:o,showGray:l,checkboxes:c,cell:i,valueTextAlign:u})},n)}function Pm({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>mr.jsx("span",{id:n,className:t?Yh.highlighted:"",children:e}));return mr.jsx(Em,{label:o,dense:t,showGray:n,checkboxes:r})}function Tm({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=mr.jsx(Pm,{labels:t,dense:r,showGray:o,checkboxes:n});return n?mr.jsx(Rm,{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 Om=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?mr.jsx(Rm,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}):mr.jsx(Em,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})});const Im={top:"flex-start",center:"center",middle:"center",bottom:"flex-end"},Mm={left:"flex-start",center:"center",right:"flex-end"},qm=e=>{var t,n;const{vertical:r,horizontal:o}=(e=>{const t=e||"top-center";if(t.includes("-")){const[e,n]=t.split("-");return{vertical:e,horizontal:n}}const n=t.match(/^(top|middle|center|bottom)(left|center|right)$/i);return n?{vertical:n[1].toLowerCase(),horizontal:n[2].toLowerCase()}:{vertical:"top",horizontal:"center"}})(e);return{vertical:null!==(t=Im[r])&&void 0!==t?t:"flex-start",horizontal:null!==(n=Mm[o])&&void 0!==n?n:"center"}},Dm=e=>"fitHeight"===e?"auto":"100%",Nm=e=>{let t="center",n="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},_m=e=>{switch(e){case"alwaysFit":case"fitHeight":return"contain";case"stretch":return"fill";case"alwaysFill":return"cover";default:return}};function jm({representation:e,src:t,label:n,title:r,subtitle:o,cellBgColor:i,borderColor:a,placeholderBackground:l,textStyles:s,selected:c=!1,selectionColor:u="#009845",opacity:d=1}){var p,f,h,m,g,b,y,v,S,x,w;const{imageSize:C="alwaysFit",imagePosition:E,titlePosition:L="top-center",textOverlay:R=!0,titleBackground:P=!0,cornerRadius:T=4,borderWidth:O=0,borderColor:I}=e,M="fitHeight"===C,q="fitWidth"===C,D=qm(E),N="200px",_=(e=>{if("string"!=typeof e||!e.trim())return!1;try{const t=new URL(e,window.location.origin);return"https:"===t.protocol||"http:"===t.protocol||"data:"===t.protocol&&/^data:image\//i.test(e.trim())}catch(e){return!1}})(t)?t:null,[j,A]=k.useState(null),z=null!==_&&_===j,$=`${T}px`,F=null!==(p=null!=a?a:"string"==typeof I?I:null==I?void 0:I.color)&&void 0!==p?p:"#d9d9d9";let B;B=c?`2px solid ${u}`:O>0?`${O}px solid ${F}`:"2px solid transparent";const W=_&&!z?mr.jsx("img",{src:_,alt:n,onError:()=>A(_),style:{width:Dm(C),height:q?"auto":"100%",maxHeight:M&&!q?N:void 0,objectFit:_m(C),objectPosition:Nm(D),overflow:"hidden"}}):null,H=qm(L),U=!1!==R&&(r||o),V=null!=s?s:{},G=Boolean(_),K=G&&!P&&null!==(f=V.shadowOnImage)&&void 0!==f?f:"none",X=U?mr.jsx("div",{"data-key":"image-title-overlay",style:{position:"absolute",inset:0,display:"flex",justifyContent:H.horizontal,alignItems:H.vertical,padding:"4px",pointerEvents:"none",boxSizing:"border-box"},children:mr.jsxs("div",{style:{maxWidth:"100%",padding:P&&G?"2px 6px":0,borderRadius:P&&G?"3px":0,backgroundColor:P&&G&&null!==(h=V.backdropColor)&&void 0!==h?h:"transparent",overflow:"hidden",textAlign:"center"===H.horizontal?"center":void 0},children:[r&&mr.jsx("div",{"data-key":"image-title",style:{fontFamily:V.fontFamily,fontSize:null!==(m=V.fontSize)&&void 0!==m?m:"13px",fontWeight:null!==(g=V.fontWeight)&&void 0!==g?g:"bold",fontStyle:null!==(b=V.fontStyle)&&void 0!==b?b:"normal",textDecoration:null!==(y=V.textDecoration)&&void 0!==y?y:"initial",color:null!==(v=V.color)&&void 0!==v?v:"#333333",textShadow:K,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r}),o&&mr.jsx("div",{"data-key":"image-subtitle",style:{fontFamily:V.fontFamily,fontSize:null!==(S=V.subtitleFontSize)&&void 0!==S?S:"11px",fontStyle:null!==(x=V.fontStyle)&&void 0!==x?x:"normal",color:null!==(w=V.color)&&void 0!==w?w:"#333333",opacity:.8,textShadow:K,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]})}):null;return mr.jsxs("div",{"data-key":"image-horizontal-container",style:{position:"relative",width:"100%",height:M?N:"100%",overflow:"hidden",display:"flex",justifyContent:M?null==D?void 0:D.horizontal:void 0,backgroundColor:i||l||void 0,borderRadius:$,border:B,opacity:d,boxSizing:"border-box"},children:[W,X]})}function Am({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!(e&&t&&"-"!==cm(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 mr.jsx(lp,{className:sm([Yh.bar,n&&Yh.barWithCheckbox,r&&(n?Yh.barSelectedWithCheckbox:Yh.barSelected)]),children:mr.jsx(lp,{className:"bar-filled",width:i})})}function zm({cell:e,checkboxes:t,dense:n,showGray:r}){const o=cm(null==e?void 0:e.qFrequency);return mr.jsx(Jp,{style:{display:"flex",alignItems:"center"},className:Yh.frequencyCount,"aria-label":o,title:o,children:mr.jsx(Zc,{noWrap:!0,color:"inherit",variant:"body2",className:sm([n&&Yh.labelDense,Yh.labelText,r&&am({cell:e,checkboxes:t})&&Yh.excludedTextWithCheckbox]),children:o})})}function $m({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r,isImage:o}){if("singleColumn"===e||o)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 Fm=Nl(Jp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight","isImage"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i,isImage:a})=>{const l="padding"+("rtl"===o?"Left":"Right");let s;return!a&&r?s="8px":a&&(s=0),{[`&.${Yh.fieldRoot}`]:u(u({},$m({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i,isImage:a})),{},{[l]:s})}});const Bm=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===Bm.ARROW_UP||e===Bm.ARROW_DOWN||e===Bm.ARROW_LEFT||e===Bm.ARROW_RIGHT});function Wm(e){null==e||e.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Hm(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 Um({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=Hm(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)}),Wm(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 Vm=e=>+e.getAttribute("data-n"),Gm=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Km=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(),Wm(e),o},Xm=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},Jm=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Hm(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{Wm(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}};function Zm({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===Bm.ARROW_LEFT||e===Bm.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===Bm.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 Bm.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){Gm(e)||Xm(e)||(t?l.focusSelection():Jm(c,l));break}l.focusSelection()||Xm(e)||Gm(e)||(d.blur(),Jm(c,l));break}case Bm.SHIFT:g(!0);break;case Bm.SPACE:e([Vm(d)],!1,c);break;case Bm.ARROW_DOWN:case Bm.ARROW_RIGHT:u=h(f,d,!0),b&&u&&(m&&(e([Vm(d)],!0),g(!1)),e([Vm(u)],!0));break;case Bm.ARROW_UP:case Bm.ARROW_LEFT:u=h(f,d,!1),b&&u&&(m&&(e([Vm(d)],!0),g(!1)),e([Vm(u)],!0));break;case Bm.ENTER:if(r(),void 0===s)return;break;case Bm.ESCAPE:if(void 0===s)return void o();if(!s())return;o();break;case Bm.HOME:if(a.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case Bm.END:if(a.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case Bm.A:if(y||v){t();break}return;case Bm.F:if(y||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}const Qm={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 Ym(e){var t;return((null==e||null===(t=e.qListObject)||void 0===t?void 0:t.qExpressions)||[]).reduce((e,t,n)=>(e[t.qLabel]=n+1,e),{})}function eg(e,t,n,r){const o=e[t]||(e[t]={});return null!=r&&""!==r&&(o[n]=r),o[n]}function tg({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){var i,a,l,s;const{onChange:c,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:b,isLocked:y,column:v=!1,checkboxes:S=!1,textAlign:x,direction:w,layoutOptions:C={},freqIsAllowed:E,isSingleSelect:L,actions:R,frequencyMax:P="",histogram:T=!1,keyboard:O,showGray:I=!0,showTick:M=!0,columnCount:q=1,rowCount:D=1,dataOffset:N,deducedFrequencyMode:_,focusListItems:j,listCount:A,sizes:z,translator:$,showSearch:F,isModal:B,contentFontStyle:W,styles:H,fillHeight:U,representation:V,listExprIndex:G={},exprCache:K={}}=o,{dense:X=!1,dataLayout:J="singleColumn",layoutOrder:Z}=C,{itemPadding:Q,gridGap:Y=0}=z,ee="image"===(null==V?void 0:V.type),te=ee?"row":Z;let ne,re;const oe={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===te?(ne=t*q+n,oe.max=D,oe.currentIndex=t):(ne=n*D+t,oe.max=q,oe.currentIndex=n);const e=0;re=u(u({},r),{},{height:U?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e}),ee&&Y>0&&(re.width=Math.max(1,Number(r.width)-Y),re.height=Math.max(1,Number(r.height)-Y),re.left=Number(r.left)+Y/2,re.top=Number(r.top)+Y/2)}else ne=e,oe.max=A,oe.currentIndex=e,re=u({},r);ne+=N;const[ie,ae]=k.useState(null);k.useEffect(()=>{null!==ie&&(0===oe.currentIndex&&j.first&&(ie.focus(),j.setFirst(!1)),oe.currentIndex===oe.max-1&&j.last&&(ie.focus(),j.setLast(!1)))},[ie,j.first,j.last]);const le=k.useCallback(Zm(u(u({},R),{},{focusListItems:j,keyboard:O,isModal:B,rowCount:D,columnCount:q,rowIndex:t,columnIndex:n,layoutOrder:te})),[R,null==O?void 0:O.innerTabStops,D,q,t,n,te]),se=k.useMemo(()=>function({pages:e,cellIndex:t}){const n=null==e?void 0:e.find(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight);if(n){const e=n.qArea;if(t>=e.qTop&&t<e.qTop+e.qHeight)return n.qMatrix[t-e.qTop]}}({pages:b,cellIndex:ne}),[b,ne]),ce=null==se?void 0:se[0],ue="S"===(null==ce?void 0:ce.qState)||"XS"===(null==ce?void 0:ce.qState)||"L"===(null==ce?void 0:ce.qState)||"XL"===(null==ce?void 0:ce.qState),de=k.useMemo(()=>lm({column:v,histogram:T,cell:ce,showGray:I}),[null==ce?void 0:ce.qState,T,X]),pe=k.useCallback(e=>{e.preventDefault()},[S]),fe=k.useMemo(()=>ce&&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:w,cell:ce,textAlign:x}),[w,ce,x]);if(!ce)return null;const he="grid"===J&&"column"===Z,me=null!==(i=null==ce?void 0:ce.qText)&&void 0!==i?i:"",ge=ee;let be,ye,ve,Se,xe,we,ke,Ce,Ee=1;if(ge){var Le,Re,Pe,Te;we=(null==H||null===(Le=H.selections)||void 0===Le?void 0:Le.selected)||"#009845","X"===ce.qState||"XS"===ce.qState||"XL"===ce.qState?Ee=.3:"A"===ce.qState&&(Ee=.4),ke="A"===ce.qState?"#e0e0e0":"#f0f0f0";const e=null!==(Re=null==ce?void 0:ce.qElemNumber)&&void 0!==Re?Re:me,t=t=>{var n;const r=G[t];if(null!=r)return eg(K,t,e,null==se||null===(n=se[r])||void 0===n?void 0:n.qText)},n=null!==(Pe=null==V?void 0:V.imageSetting)&&void 0!==Pe?Pe:"label",r=t("imageUrl"),o=t("imageLabel");ve=t("subtitle");if("expression"===(null!==(Te=null==V?void 0:V.cellBgColorMode)&&void 0!==Te?Te:"single"))Se=t("cellBgColor");else{const e=null==V?void 0:V.cellBgColor;Se="string"==typeof e?e:null==e?void 0:e.color}xe=t("tooltip")||me,"url"===n?(be=r||me,ye=me):(be=me,ye=o||me)}if(null!==(a=ce.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ce.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];Ce=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}(me,e)}const Oe={alignItems:"center",display:"flex",fontSize:"8px"},Ie="rtl"===w,Me={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ge?0:Ie?8:S?0:void 0,paddingRight:ge||S?0:Ie?8:0,justifyContent:fe,textAlign:fe},qe=0===e,De=ue&&y,Ne=!S&&ue&&!y,_e=!S&&M&&!ge,je=S||!M,Ae=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const l=Qm[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:$,label:ge?[me,ve,xe!==me?xe:null].filter(Boolean).join(", "):me,qState:ce.qState,currentIndex:oe.currentIndex,maxIndex:oe.max,showSearch:F}),ze=!Ie&&"right"===fe||Ie&&"left"===fe;return mr.jsx(gm,{className:Yh.barContainer,checkboxes:S,style:re,styles:H,isGridCol:he,isGridMode:"grid"===J,dense:X,direction:w,sizes:z,frequencyMode:_,freqHitsValue:ze,contentFontStyle:W,"data-testid":"listbox.item",children:mr.jsxs(Fm,{role:"row","aria-label":Ae,"aria-selected":ue,"aria-setsize":oe.max,"aria-rowindex":oe.currentIndex,ref:ae,container:!0,dataLayout:J,cellPaddingRight:je,layoutOrder:Z,itemPadding:Q,isImage:ge,gap:0,className:sm(["value",Yh.fieldRoot,...de]),onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:le,onTouchStart:m,onTouchEnd:g,onContextMenu:pe,tabIndex:qe&&O.innerTabStops?0:-1,"data-n":null==ce?void 0:ce.qElemNumber,direction:w,fillHeight:U,children:[(null==ce?void 0:ce.qFrequency)&&mr.jsx(Am,{qFrequency:null==ce?void 0:ce.qFrequency,histogram:T,checkboxes:S,isSelected:ue,frequencyMax:P}),mr.jsx(Jp,{style:Me,className:sm([Yh.cell,Yh.selectedCell]),title:ge?`${xe}`:`${me}`,children:ge?mr.jsx(jm,{representation:V,src:be,label:ye,title:me,subtitle:ve,cellBgColor:Se,borderColor:null==H||null===(l=H.image)||void 0===l?void 0:l.borderColor,textStyles:null==H||null===(s=H.image)||void 0===s?void 0:s.text,placeholderBackground:ke,selected:ue,selectionColor:we,opacity:Ee}):Ce?mr.jsx(Tm,{onChange:c,labels:Ce,checkboxes:S,dense:X,showGray:I,qElemNumber:ce.qElemNumber,isSelected:ue,cell:ce,isGridCol:he,isSingleSelect:L,valueTextAlign:fe,styles:H}):mr.jsx(Om,{onChange:c,label:me,qElemNumber:ce.qElemNumber,isSelected:ue,dense:X,cell:ce,isGridCol:he,showGray:I,isSingleSelect:L,checkboxes:S,valueTextAlign:fe,styles:H})}),E&&mr.jsx(zm,{cell:ce,checkboxes:S,dense:X,showGray:I}),_e&&mr.jsxs(Jp,{className:Yh.icon,children:[De&&mr.jsx(Bh,{style:Oe,size:"small"}),Ne&&mr.jsx(om,{style:Oe,size:"small"})]})]})})}var ng=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rg(e,t){return e===t||!(!ng(e)||!ng(t))}function og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rg(e[n],t[n]))return!1;return!0}function ig(e,t){var n;void 0===t&&(t=og);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 ag="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function lg(e){cancelAnimationFrame(e.id)}function sg(e,t){var n=ag();var r={id:requestAnimationFrame(function o(){ag()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var cg=-1;function ug(e){if(void 0===e&&(e=!1),-1===cg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),cg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cg}var dg=null;function pg(e){if(void 0===e&&(e=!1),null===dg||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?dg="positive-descending":(t.scrollLeft=1,dg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),dg}return dg}var fg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function hg(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,Cs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Cs(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=ig(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=ig(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=ig(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(pg()){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&&lg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}ps(t,e),t.getDerivedStateFromProps=function(e,t){return mg(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=ug();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(pg()){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&&lg(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?fg: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:ft({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 mg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},gg=function(e,t){return e};function bg(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,Cs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Cs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ig(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=ig(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=ig(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(pg()){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&&lg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}ps(t,e),t.getDerivedStateFromProps=function(e,t){return yg(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?ug():0:s.scrollHeight>s.clientHeight?ug():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(pg()){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&&lg(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?gg: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:ft({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 yg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vg=hg({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}}),Sg=bg({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 xg="#BBB",wg="#f1f1f1",kg={styledScrollbars:"ListBox-styledScrollbars"};function Cg({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:Eg,StyledFixedSizeGrid:Lg}=function(){const e=e=>({scrollbarColor:`${xg} ${wg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:wg},"&::-webkit-scrollbar-thumb":{backgroundColor:xg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:ur(Sg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${kg.styledScrollbars}`]:e(t)})),StyledFixedSizeGrid:ur(vg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${kg.styledScrollbars}`]:e(t)}))}}();function Rg({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}}const Pg=(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)},Tg=e=>{const t=k.useMemo(()=>"text"in e?e:{},[e]);return k.useMemo(()=>Pg(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function Og(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ig({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}function Mg({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=Tg({text:Og(e),font:g}),y=Tg({text:Og(5),font:g}),v=Tg({text:Og(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));let P=0;const T="grid"===f,O=null==e?void 0:e.representation,I="image"===(null==O?void 0:O.type);let M=Ig({isGridMode:T,dense:p});const q=null!=n?n:8*M;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}){const l=Rg({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a});return l.columnWidth*l.columnCount-i>1?Rg({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r-10,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}):l}({maxVisibleRows:u,itemHeight:M,listCount:r,listHeight:q,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}if(I&&T){var D,N,_,j;const e=5,n=4,o=null===(D=null==d?void 0:d.auto)||void 0===D||D,i=null===(N=null==u?void 0:u.auto)||void 0===N||N,a=Math.max(1,null!==(_=o||null==d?void 0:d.maxColumns)&&void 0!==_?_:e),l=Math.max(1,null!==(j=i||null==u?void 0:u.maxRows)&&void 0!==j?j:n);C=a,E=Math.max(1,(t-10)/C),M=Math.max(36,Math.floor(q/l)),L=Math.ceil((r||1)/C),k={overflowX:"hidden"};const s=null==O?void 0:O.gridGap,c=Math.max(0,Number.isFinite(s)?s:.5);P=Math.min(Math.round(c/100*t),E-1,M-1),P=Math.max(0,P)}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const A=s.dense?838e3:577e3;L=Math.min(L,A);const z=Math.floor(3355e4/E);C=Math.min(C,z)||1;const $=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:M,listHeight:q,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,$),maxCount:{row:A,column:z},itemPadding:4,gridGap:P,textWidth:b,freqMinWidth:y,freqMaxWidth:v}}function qg({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[Dg]=Cc({});function Ng(e){const t=`${e.id}`,[n]=Dg();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}const _g=Nl(Zc,{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 jg({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=k.useContext(xc);return mr.jsx(Sh,{title:r?o.get(t):"",children:mr.jsx(_g,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}var Ag=Zl(mr.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 zg=Nl($c)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),$g=Nl("div")(()=>({paddingLeft:"6px",flexGrow:1})),Fg=Nl("div")(({dense:e})=>({display:"flex",alignItems:""+(e?"center":"flex-start")})),Bg=Nl(Ag)(()=>({fontSize:"14px"}));function Wg({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 mr.jsxs(zg,{left:a,style:{maxWidth:i},children:[mr.jsx($g,{children:mr.jsx(jg,{text:e,dense:n,width:l,tooltip:s})}),mr.jsx(Fg,{dense:n,children:o&&mr.jsx(Uc,{"aria-label":"close",onClick:()=>t(),children:mr.jsx(Bg,{})})})]})}function Hg({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 Ug=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Vg=e=>{const t=Ug(e);return`Max(AGGR(Count(${t}), ${t}))`},Gg=(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=Vg(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 Kg={S:!0,L:!0};const Xg=["isLoadingData"],Jg=Nl("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zg({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,O,I,M,q,D;const{translator:N}=k.useContext(xc),[_,j]=k.useState(!1),[A,z]=k.useState(!1),$=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:F=l,histogram:B}=null!=r?r:{},W=k.useRef(null),H=k.useRef({queue:[],validPages:!1,dataOffset:0}),U=k.useRef({pages:[]}),V=k.useRef({}),G=JSON.stringify(null==r||null===(P=r.qListObject)||void 0===P||null===(P=P.qDimensionInfo)||void 0===P?void 0:P.qGroupFieldDefs),K=JSON.stringify(null==r||null===(T=r.qListObject)||void 0===T?void 0:T.qExpressions),X=`${G}|${K}`,J=k.useRef(X);J.current!==X&&(J.current=X,V.current={});const{frequencyMax:Z,awaitingFrequencyMax:Q}=Gg(t,r),Y=1+(null!==(O=null==r||null===(I=r.qListObject)||void 0===I||null===(I=I.qExpressions)||void 0===I?void 0:I.length)&&void 0!==O?O:0),ee=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:a,dataWidth:l=1}){const[s,c]=k.useState(!1),[u,d]=k.useState([]);let[p]=k.useState(0);const f=(s,u)=>{const f=e.current.dataOffset;e.current.queue.push({start:s+f,stop:u+f});const h=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const o=e.current.queue.slice(-1)[0];if(!o)return c(!1),void t();const s=n.getListObjectData("/qListObjectDef",[{qTop:o.start>p?o.start-p:0,qHeight:p,qLeft:0,qWidth:l},{qTop:o.start,qHeight:p,qLeft:0,qWidth:l}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,a.current.pages=r,d(r),c(!1),t()});r&&r(s)},h?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(p=e),f)},pages:u,isLoading:s}}({local:H,loaderRef:W,model:e,fetchStart:h,scrollTimeout:0,postProcessPages:m,listData:U,dataWidth:Y}),{isLoadingData:te}=ee,ne=d(ee,Xg),{getStoreValue:re,setStoreValue:oe}=Ng(e),ie=k.useCallback(ne.loadMoreItems,[r]),[ae,le]=k.useState({show:!1,dismissed:!1}),se=null==r?void 0:r.representation,ce="image"===(null==se?void 0:se.type),ue=null!==(M=null==se?void 0:se.showSelected)&&void 0!==M&&M,de=function(e){var t;const[n]=k.useState({current:e});return null!=e&&null!==(t=e.qSelectionInfo)&&void 0!==t&&t.qInSelections||(n.current=e),n.current}(r),[pe,fe]=k.useState([]),[he,me]=k.useState(null),ge=(()=>{const e=(null==de?void 0:de.qListObject.qDimensionInfo.qStateCounts)||{};return(e.qSelected||0)+(e.qLocked||0)})(),be=ce&&ue&&ge>0;null!=ne&&ne.pages&&i.update({setPages:fe,pages:ne.pages,isSingleSelect:$,layout:r});const ye=null==r?void 0:r.qListObject.qDimensionInfo.qCardinal,ve=!(ce&&Y>1&&ye&&ye<=2e3)||A;(null!=ne&&ne.pages.length&&!Q&&ve||0===ye)&&(null==w||w()),k.useEffect(()=>{if(!ce||Y<=1||!ye||ye>2e3)return;let t=!1;const n=Ym(r),o=Math.max(1,Math.floor(1e4/Y));return(async()=>{try{for(let r=0;r<ye&&!t;r+=o){const[i]=await e.getListObjectData("/qListObjectDef",[{qTop:r,qLeft:0,qWidth:Y,qHeight:Math.min(o,ye-r)}]);if(t)return;((null==i?void 0:i.qMatrix)||[]).forEach(e=>{var t,r,o;const i=null!==(t=null===(r=e[0])||void 0===r?void 0:r.qElemNumber)&&void 0!==t?t:null===(o=e[0])||void 0===o?void 0:o.qText;Object.entries(n).forEach(([t,n])=>{var r;eg(V.current,t,i,null===(r=e[n])||void 0===r?void 0:r.qText)})})}}catch(e){t||console.error("ListBox expression cache warm-up failed:",e)}t||z(!0)})(),()=>{t=!0}},[e,ce,Y,ye,G,K]),k.useEffect(()=>{if(!be)return void me(null);let t=!1;if(0!==ge)return(async()=>{try{const[n]=await e.getListObjectData("/qListObjectDef",[{qTop:0,qLeft:0,qWidth:Y,qHeight:ge}]);if(!t){const e=Ym(de);((null==n?void 0:n.qMatrix)||[]).forEach(t=>{var n,r,o;const i=null!==(n=null===(r=t[0])||void 0===r?void 0:r.qElemNumber)&&void 0!==n?n:null===(o=t[0])||void 0===o?void 0:o.qText;Object.entries(e).forEach(([e,n])=>{var r;eg(V.current,e,i,null===(r=t[n])||void 0===r?void 0:r.qText)})}),me(n||null)}}catch(e){t||(console.error("ListBox selected values fetch failed:",e),me(null))}})(),()=>{t=!0};me(null)},[be,de,ge,Y,e]),k.useEffect(()=>{be&&(H.current.dataOffset=0)},[be]);const Se=k.useMemo(()=>{if(!be)return pe;return function(e,t){const n=[],r=new Set;return(e||[]).forEach(e=>{((null==e?void 0:e.qMatrix)||[]).forEach(e=>{var t;const o=null==e?void 0:e[0];if(!o||!Kg[o.qState])return;const i=null!==(t=o.qElemNumber)&&void 0!==t?t:o.qText;r.has(i)||(r.add(i),n.push(e))})}),[{qArea:{qLeft:0,qTop:0,qWidth:t,qHeight:n.length},qMatrix:n}]}(he?[he,...pe]:pe,Y)},[be,pe,he,Y]),xe=be?Se[0].qMatrix.length:void 0,we=k.useCallback(e=>{if(null==Se||!Se.length||!H.current.validPages)return!1;H.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Se.filter(e=>t(e))[0];return n&&t(n)},[r,Se]),{interactionEvents:ke,select:Ce}=nm({selectionState:i,selections:o,checkboxes:F,doc:document,loaderRef:W}),{layoutOptions:Ee={}}=r||{};let Le=!0;Ee.dataLayout&&(Le=!("singleColumn"!==Ee.dataLayout&&!ce)||"row"===(null==Ee?void 0:Ee.layoutOrder));const Re="grid"===(null==Ee?void 0:Ee.dataLayout),Pe=e=>{const t=u({},Le?{rowIndex:e}:{columnIndex:e}),n=Re?t:e;W.current._listRef.scrollToItem(n)},Te=()=>{if(H.current.queue=[],H.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===S.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&S.reset());H.current.dataOffset=0,Pe(0)}};f&&f.call(null,Te),k.useEffect(()=>{v&&!_&&W.current&&(W.current._listRef.scrollToItem(v.initScrollPos),j(!0))},[W.current]),k.useEffect(()=>{Te()},[r,H.current.dataOffset]);let Oe=100;const Ie="grid"!==Ee.dataLayout,Me=be?xe:null==r||null===(q=r.qListObject.qSize)||void 0===q?void 0:q.qcy,qe=be?xe:qg({pages:pe,minimumBatchSize:Oe,count:Me,calculatePagesHeight:g});let De=Hg({itemWidth:c,layout:r,frequencyMode:p});const Ne=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>{var t;return!(null===(t=e.qFrequency)||void 0===t||!t.match("%"))}))?"P":"-"}(Se),_e=Mg({layout:r,width:c,height:s,listCount:qe,count:Me,freqIsAllowed:De,checkboxes:F,styles:R});_e.columnWidth&&(De=Hg({itemWidth:_e.columnWidth,layout:r,frequencyMode:p}));const{listCount:je}=_e;oe("listCount",je);const Ae=re("inputText"),ze=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=k.useContext(xc),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:Ae,listCount:je}),$e=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:Le,sizes:_e,layout:r,offset:H.current.dataOffset});H.current.dataOffset=n,o&&i.triggerStateChanged(),Pe(t)};k.useEffect(()=>{const e=S.state;e.up?Pe(x.state.start-e.up):e.down?Pe(x.state.stop+e.down):e.scrollPosition&&$e(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&S.reset()},[S.state.up,S.state.down,S.state.scrollPosition]);const{textAlign:Fe}=(null==r?void 0:r.qListObject.qDimensionInfo)||{},[Be,We]=k.useState({first:!1,last:!1}),{List:He,Grid:Ue}=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:q,exprCache:D}){const{layoutOptions:N={}}=e||{},{columnWidth:_,listHeight:j,itemHeight:A,rowCount:z,columnCount:$}=x||{},F=null==e?void 0:e.representation,B=Ym(e),W=("grid"===N.dataLayout?_:t)>80,H={direction:"rtl"===S?"rtl":"ltr",useIsScrolling:!0,className:kg.styledScrollbars},U=null==e?void 0:e.qListObject.qDimensionInfo.qLocked,V=j<=A,G=u(u({isLocked:U,column:!o,pages:i},U||a.selectDisabled()?{}:l),{},{checkboxes:n,layoutOptions:N,deducedFrequencyMode:s,freqIsAllowed:T,isSingleSelect:d,textAlign:m,sizes:x,representation:F,listExprIndex:B,exprCache:D,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:W,dataOffset:r.current.dataOffset,focusListItems:E,direction:S,translator:O,showSearch:I,isModal:M,styles:q,fillHeight:V});return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,mr.jsx(Eg,u(u({},H),{},{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:j,width:t,itemCount:w,itemData:u(u({},G),{},{listCount:w}),itemSize:A,onItemsRendered:t=>{var o;L({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Cg({renderProps:t,layoutOptions:N,maxCount:x.maxCount,columnCount:$,rowCount:z,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:tg}))),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=x,{layoutOrder:l}=N||{},s="image"===(null==F?void 0:F.type)?"row":l,c=Math.min(j,z*A+a);return r.current.listRef=o,mr.jsx(Lg,u(u({},H),{},{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:c,width:t,columnCount:$,columnWidth:_,rowCount:z,rowHeight:A,style:u({},i),itemData:u(u({},G),{},{column:void 0,columnCount:$,rowCount:z}),onItemsRendered:t=>{var o;const i="row"===s;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:s,rowCount:z,columnCount:$});Cg({renderProps:t,layoutOptions:N,maxCount:x.maxCount,columnCount:$,rowCount:z,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:tg}))}}}({direction:a,layout:r,width:c,checkboxes:F,deducedFrequencyMode:Ne,histogram:B,keyboard:b,showGray:y,interactionEvents:ke,select:Ce,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:C,textAlign:Fe,isVertical:Ie,pages:Se,selectionState:i,isSingleSelect:$,selections:o,scrollState:v,local:H,sizes:_e,listCount:je,overflowDisclaimer:{state:ae,set:e=>le(t=>u(u({},t),{},{show:e}))},setScrollPosition:$e,focusListItems:{first:Be.first,setFirst:e=>We(t=>u(u({},t),{},{first:e})),last:Be.last,setLast:e=>We(t=>u(u({},t),{},{last:e}))},setCurrentScrollIndex:x.set,constraints:n,frequencyMax:Z,freqIsAllowed:De,translator:N,showSearch:E,isModal:L,styles:R,exprCache:V.current}),{columnWidth:Ve,listHeight:Ge,itemHeight:Ke}=_e||{};return Ie||(Oe=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:c,columnWidth:Ve,listHeight:Ge,itemHeight:Ke})),mr.jsxs(Jg,{children:[mr.jsx("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:ze}),!je&&ye>0&&mr.jsx(jg,{width:c,text:"Listbox.NoMatchesForYourTerms"}),mr.jsx(Gh,{isItemLoaded:we,itemCount:je||1,loadMoreItems:ie.with({minimumBatchSize:Oe}),threshold:0,minimumBatchSize:Oe,ref:W,role:"grid",children:Ie?He:Ue}),ae.show&&!ae.dismissed&&mr.jsx(Wg,{text:"Listbox.ItemsOverflow",dismiss:()=>le(e=>u(u({},e),{},{dismissed:!0})),parentWidth:null==W||null===(D=W.current)||void 0===D||null===(D=D._listRef)||void 0===D||null===(D=D.props)||void 0===D?void 0:D.width,dense:null==Ee?void 0:Ee.dense})]})}const Qg=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"}}]}),Yg=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"}}]}),eb=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"}}]}),tb=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 nb=({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:Qg,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:eb,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:Yg,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:tb,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};const rb=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 ob(e){const t=ql(),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 ib={className:"njs-cell-action"},ab=C.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=ql(),{hidden:o,disabled:i,style:a,hasSvgIconShape:l}=ob(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 mr.jsxs(Uc,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[ib.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[l&&$h(e.getSvgIconShape()),t&&mr.jsx("div",{ref:n,style:{bottom:-s,right:0,position:"absolute",width:"100%",height:0}})]})}),lb=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 sb=e=>$h(lb(e));const cb=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 ub=e=>$h(cb(e));const db="njs-action-toolbar-more",pb={icon:"More-icon"},fb=Nl(zf)(({theme:e})=>({pointerEvents:"none",[`& .${pb.icon} *`]:{color:e.palette.text.primary}}));function hb({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=ob(e);return r?null:mr.jsxs(Zf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&mr.jsx(Ef,{className:pb.icon,children:$h(e.getSvgIconShape())}),mr.jsx(Zc,{noWrap:!0,children:e.label})]})}const mb=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&&mr.jsx(fb,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:db},paper:{style:u({pointerEvents:"auto",maxWidth:"250px"},o)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:mr.jsx(If,{id:"moreMenuList",children:e.map((e,t)=>mr.jsx(hb,{item:e,autoFocus:t===c,onActionClick:i},t))})}))});function gb({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:l}=i,{keyCode:s}=l;switch(s){case Bm.ARROW_LEFT:case Bm.ARROW_DOWN:case Bm.ARROW_RIGHT:case Bm.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=[Bm.ARROW_LEFT,Bm.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 Bm.SPACE:i.preventDefault();break;case Bm.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 Bm.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}const bb="ActionsToolbar",yb={item:`${bb}-item`,itemSpacing:`${bb}-itemSpacing`},vb=Nl(zf)(({theme:e})=>({[`& .${yb.itemSpacing}`]:{padding:e.spacing(0,.25)}})),Sb="njs-action-toolbar-popover",xb=C.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?mr.jsx(Jp,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>mr.jsx(Jp,{className:`${yb.itemSpacing} ${yb.item}`,children:mr.jsx(ab,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),wb={pointerEvents:"none"};function kb({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(xc);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:cb},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:lb},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:rm}]}(u(u({},r),{},{layout:p})),{translator:g,keyboardNavigation:b}=k.useContext(xc),[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=ql(),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(()=>gb({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 q={key:"more",label:g.get("Menu.More"),getSvgIconShape:rb,hidden:!1,active:y,enabled:()=>T,action:()=>v(!y)},D=M.length>0,N=O.length>0,_=D&&r.show||N&&r.show,j=mr.jsxs(Jp,{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)&&mr.jsx(xb,{className:"actions-toolbar-extra-actions",actions:o,isRtl:c}),D&&mr.jsx(xb,{actions:M}),N&&mr.jsx(xb,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,actions:[q],addAnchor:!0}),_&&mr.jsx(Jp,{className:yb.itemSpacing,style:L,children:mr.jsx(Hp,{orientation:"vertical"})}),r.show&&mr.jsx(xb,{className:"actions-toolbar-default-actions",actions:m,isRtl:c}),y&&mr.jsx(mb,{show:y,actions:O,alignTo:I,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)},disablePortal:i.disablePortal})]});return a.show?mr.jsx(vb,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:S,transformOrigin:x,hideBackdrop:!0,style:wb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Sb,style:{pointerEvents:"auto",padding:E.spacing(.5,.25)}}},children:j}):e&&j}var Cb=e=>$h((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 Eb="/qListObjectDef",Lb=e=>null==e?void 0:e.substring(0,64e3),Rb=Nl(Xf,{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)}),Pb=Nl(Uc)(()=>({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 Tb=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(xc),[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}=Ng(r),L="rtl"===d,R=async()=>{try{await r.abortListObjectSearch(Eb)}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=Lb(g),i=await r.searchListObjectFor(Eb,o);return n.selectDisabled()?i:(i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(Eb,!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?mr.jsxs(mr.Fragment,{children:[mr.jsx(Rb,{styles:f,dense:i,isRtl:L,startAdornment:mr.jsx(cf,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:mr.jsx(Cb,{size:i?"small":"normal"})}),endAdornment:mr.jsx(cf,{position:"end",sx:{marginLeft:0},children:""!==g&&mr.jsx(Pb,{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():Km(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:mr.jsx(sb,{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=Lb(e.target.value);return b(t),t.length?r.searchListObjectFor(Eb,t):R()},onKeyDown:async n=>{const{currentTarget:r}=n,i=r.closest(".listbox-container");switch(n.key){case"Enter":P();break;case"Escape":if(Km(i),t.cancel(),e)return;break;case"Tab":n.shiftKey?Xm(i)||o.focusSelection():x.current?x.current.focus():Km(i);break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;p&&(p(),Km(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"}}),mr.jsx("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:m.get("Listbox.Search.ScreenReaderInstructions")})]}):null});function Ob(e){if(!e.session)return[];const{selectionStore:t}=k.useContext(xc),[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 Ib(e){return Object.keys(D.prototype).forEach(t=>{e[t]=D.prototype[t]}),D.init(e),e}const Mb=({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 Ib(a),a},qb=({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 Db(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=Ob(e),[a]=Rh(t),{appModalStore:l}=k.useContext(xc).selectionStore,s=l.get(e.id),[c,u]=k.useState();return k.useEffect(()=>{i&&t&&!c&&u(Mb({appSelections:i,appModal:s,model:t}))},[i,t]),k.useEffect(()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=qb({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 Nb(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=Jh(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 _b=(e,t,n=void 0)=>{var r;return null!==(r=null==e?void 0:e[t])&&void 0!==r?r:n};function jb(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return _b(t,"qSelected",0)+_b(t,"qSelectedExcluded",0)+_b(t,"qLocked",0)+_b(t,"qLockedExcluded",0)>0}function Ab(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 zb(e){if("object"==typeof e&&Ab(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 $b={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}},Fb="qcm-color";function Bb(...e){const t={type:Fb,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===Fb)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Ab(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 $b}(e)){const t=$b[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 Wb(e){let t,n,r;if(Ab(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?zb(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 Hb(e){let t,n,r=0;const o="string"==typeof e?Bb(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 Ub(e){let t,n,r=0;const o="string"==typeof e?Bb(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 Vb(e){if(Ab(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?zb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Gb(e,t){return Ab(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Gb(Bb(e))}function Kb(e){return Ab(e)?1===e.a?Vb(e):Gb(e):Kb(Bb(e))}const Xb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Jb(e){return.2126*Xb(e.r)+.7152*Xb(e.g)+.0722*Xb(e.b)}function Zb(...e){const t=Bb(...e);return t.invalid||Jb(t)<.4}function Qb(...e){const t=Bb(...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=Hb(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=Bb(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:()=>Zb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Vb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Gb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Kb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Wb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Bb(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}=Hb(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}=Ub(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Ub(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)=>Qb(o(18*e)),getDarkenedColor:(e=1)=>Qb(o(18*-e))}}function Yb(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 ey="#FFFFFF";function ty(e,t){const n=Qb(ey),r=Qb(e),o=Qb(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Yb(n,r),a=Yb(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?ey:"#000000"}function ny(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 ry,oy,iy,ay="top",ly="top-right",sy="right",cy="bottom-right",uy="bottom",dy="bottom-left",py="left",fy="top-left";ny(ny(ny(ny(ny(ny(ny(ny(ny(ny(ry={},"equal-equal",[ay,uy]),"equal-higher",[uy,cy]),"equal-lower",[ay,ly]),"equal-void",[ay,uy]),"higher-equal",[py,dy,ay,ly]),"higher-higher-acute",[uy,dy,py,ly]),"higher-higher-obtuse",[uy,ay]),"higher-lower-negative",[ay,ly,sy]),"higher-lower-positive",[uy,dy,py]),"higher-void",[ay]),ny(ny(ny(ny(ny(ny(ny(ny(ny(ny(ry,"lower-equal",[ay]),"lower-higher-negative",[ay,fy]),"lower-higher-positive",[cy]),"lower-lower-acute",[ay,fy,py,ly,sy]),"lower-lower-obtuse",[ay,uy]),"lower-void",[ay]),"void-equal",[ay]),"void-higher",[ay,uy]),"void-lower",[ay,uy,py]),"void-void",[ay]),ny(ry,"unclassified",[ay,uy,sy,py,ly,cy,dy,fy]);var hy=function(){if(iy)return oy;iy=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 oy=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},oy}();function my(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function by(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(hy);var yy=.7,vy=1/yy,Sy="\\s*([+-]?\\d+)\\s*",xy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ky=/^#([0-9a-f]{3,8})$/,Cy=new RegExp(`^rgb\\(${Sy},${Sy},${Sy}\\)$`),Ey=new RegExp(`^rgb\\(${wy},${wy},${wy}\\)$`),Ly=new RegExp(`^rgba\\(${Sy},${Sy},${Sy},${xy}\\)$`),Ry=new RegExp(`^rgba\\(${wy},${wy},${wy},${xy}\\)$`),Py=new RegExp(`^hsl\\(${xy},${wy},${wy}\\)$`),Ty=new RegExp(`^hsla\\(${xy},${wy},${wy},${xy}\\)$`),Oy={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 Iy(){return this.rgb().formatHex()}function My(){return this.rgb().formatRgb()}function qy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ky.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Dy(t):3===n?new Ay(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ny(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ny(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=Cy.exec(e))?new Ay(t[1],t[2],t[3],1):(t=Ey.exec(e))?new Ay(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ly.exec(e))?Ny(t[1],t[2],t[3],t[4]):(t=Ry.exec(e))?Ny(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Py.exec(e))?Hy(t[1],t[2]/100,t[3]/100,1):(t=Ty.exec(e))?Hy(t[1],t[2]/100,t[3]/100,t[4]):Oy.hasOwnProperty(e)?Dy(Oy[e]):"transparent"===e?new Ay(NaN,NaN,NaN,0):null}function Dy(e){return new Ay(e>>16&255,e>>8&255,255&e,1)}function Ny(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ay(e,t,n,r)}function _y(e){return e instanceof by||(e=qy(e)),e?new Ay((e=e.rgb()).r,e.g,e.b,e.opacity):new Ay}function jy(e,t,n,r){return 1===arguments.length?_y(e):new Ay(e,t,n,null==r?1:r)}function Ay(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zy(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}`}function $y(){const e=Fy(this.opacity);return`${1===e?"rgb(":"rgba("}${By(this.r)}, ${By(this.g)}, ${By(this.b)}${1===e?")":`, ${e})`}`}function Fy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function By(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wy(e){return((e=By(e))<16?"0":"")+e.toString(16)}function Hy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vy(e,t,n,r)}function Uy(e){if(e instanceof Vy)return new Vy(e.h,e.s,e.l,e.opacity);if(e instanceof by||(e=qy(e)),!e)return new Vy;if(e instanceof Vy)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 Vy(a,l,s,e.opacity)}function Vy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gy(e){return(e=(e||0)%360)<0?e+360:e}function Ky(e){return Math.max(0,Math.min(1,e||0))}function Xy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}my(by,qy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Iy,formatHex:Iy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Uy(this).formatHsl()},formatRgb:My,toString:My}),my(Ay,jy,gy(by,{brighter(e){return e=null==e?vy:Math.pow(vy,e),new Ay(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yy:Math.pow(yy,e),new Ay(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ay(By(this.r),By(this.g),By(this.b),Fy(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:zy,formatHex:zy,formatHex8:function(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}${Wy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$y,toString:$y})),my(Vy,function(e,t,n,r){return 1===arguments.length?Uy(e):new Vy(e,t,n,null==r?1:r)},gy(by,{brighter(e){return e=null==e?vy:Math.pow(vy,e),new Vy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yy:Math.pow(yy,e),new Vy(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 Ay(Xy(e>=240?e-240:e+120,o,r),Xy(e,o,r),Xy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vy(Gy(this.h),Ky(this.s),Ky(this.l),Fy(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=Fy(this.opacity);return`${1===e?"hsl(":"hsla("}${Gy(this.h)}, ${100*Ky(this.s)}%, ${100*Ky(this.l)}%${1===e?")":`, ${e})`}`}}));const Jy=Math.PI/180,Zy=180/Math.PI,Qy=.96422,Yy=.82521,ev=4/29,tv=6/29,nv=3*tv*tv,rv=tv*tv*tv;function ov(e){if(e instanceof iv)return new iv(e.l,e.a,e.b,e.opacity);if(e instanceof uv)return dv(e);e instanceof Ay||(e=_y(e));var t,n,r=cv(e.r),o=cv(e.g),i=cv(e.b),a=av((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=av((.4360747*r+.3850649*o+.1430804*i)/Qy),n=av((.0139322*r+.0971045*o+.7141733*i)/Yy)),new iv(116*a-16,500*(t-a),200*(a-n),e.opacity)}function iv(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function av(e){return e>rv?Math.pow(e,1/3):e/nv+ev}function lv(e){return e>tv?e*e*e:nv*(e-ev)}function sv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cv(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uv(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dv(e){if(isNaN(e.h))return new iv(e.l,0,0,e.opacity);var t=e.h*Jy;return new iv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}my(iv,function(e,t,n,r){return 1===arguments.length?ov(e):new iv(e,t,n,null==r?1:r)},gy(by,{brighter(e){return new iv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new iv(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 Ay(sv(3.1338561*(t=Qy*lv(t))-1.6168667*(e=1*lv(e))-.4906146*(n=Yy*lv(n))),sv(-.9787684*t+1.9161415*e+.033454*n),sv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),my(uv,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof uv)return new uv(e.h,e.c,e.l,e.opacity);if(e instanceof iv||(e=ov(e)),0===e.a&&0===e.b)return new uv(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zy;return new uv(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new uv(e,t,n,null==r?1:r)},gy(by,{brighter(e){return new uv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new uv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dv(this).rgb()}}));var pv=e=>()=>e;function fv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pv(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?fv: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):pv(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jy(e)).r,(t=jy(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=fv(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 hv,mv="center",gv="bottom";function bv(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 yv(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Sv)):void 0===t&&(t=vv);for(var n,r,o,i,a,l=new kv(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 kv(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(wv)}function vv(e){return e.children}function Sv(e){return Array.isArray(e)?e[1]:null}function xv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wv(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function kv(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:mv,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:mv,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:mv,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:mv},{key:"DataRangeIncludingZero",alignment:gv},{key:"LimitedData",alignment:gv},{key:"NegativeOrZeroValues",alignment:gv}].reduce(function(e,t){return e[t.key]=t,e},{}),kv.prototype=yv.prototype={constructor:kv,count:function(){return this.eachAfter(bv)},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 yv(this).eachBefore(xv)},[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)}},hv=function(e){
|
|
123
|
+
`:null,Qs=Nl("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${jr(n.color)}`]]}})(Vl(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:Js||{animation:`${Ks} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Ys=Nl("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),ec=Nl("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${jr(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(Vl(({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:Zs||{animation:`${Xs} 1.4s ease-in-out infinite`}}]}))),tc=Nl("circle",{name:"MuiCircularProgress",slot:"Track"})(Vl(({theme:e})=>({stroke:"currentColor",opacity:(e.vars||e).palette.action.activatedOpacity}))),nc=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",n,`color${jr(r)}`],svg:["svg"],track:["track"],circle:["circle",`circle${jr(n)}`,o&&"circleDisableShrink"]},Vs,t)})(f),m={},g={},b={};if("determinate"===d){const e=2*Math.PI*((Gs-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 mr.jsx(Qs,{className:Bo(h.root,r),style:{width:l,height:l,...g,...s},ownerState:f,ref:t,role:"progressbar",...b,...p,children:mr.jsxs(Ys,{className:h.svg,ownerState:f,viewBox:"22 22 44 44",children:[a?mr.jsx(tc,{className:h.track,ownerState:f,cx:Gs,cy:Gs,r:(Gs-c)/2,fill:"none",strokeWidth:c,"aria-hidden":"true"}):null,mr.jsx(ec,{className:h.circle,style:m,ownerState:f,cx:Gs,cy:Gs,r:(Gs-c)/2,fill:"none",strokeWidth:c})]})})});function rc(e){return Ho("MuiButton",e)}const oc=Uo("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"]),ic=k.createContext({}),ac=k.createContext(void 0),lc=[{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}}}],sc=Nl(Ws,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${jr(n.color)}`],t[`size${jr(n.size)}`],t[`${n.variant}Size${jr(n.size)}`],"inherit"===n.color&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(Vl(({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"},[`&.${oc.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]},[`&.${oc.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${oc.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)",[`&.${oc.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(Us()).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"},[`&.${oc.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${oc.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}),[`&.${oc.loading}`]:{color:"transparent"}}}]}})),cc=Nl("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${jr(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}},...lc]})),uc=Nl("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${jr(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}},...lc]})),dc=Nl("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}}]})),pc=Nl("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),fc=k.forwardRef(function(e,t){const n=k.useContext(ic),r=k.useContext(ac),o=Gl({props:ri(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=Ii(m),L=b??mr.jsx(nc,{"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=Ki({root:["root",a&&"loading",i,`${i}${jr(t)}`,`size${jr(o)}`,`${i}Size${jr(o)}`,`color${jr(t)}`,n&&"disableElevation",r&&"fullWidth",a&&`loadingPosition${jr(l)}`],startIcon:["icon","startIcon",`iconSize${jr(o)}`],endIcon:["icon","endIcon",`iconSize${jr(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},rc,s);return{...s,...c}})(R),T=(S||g&&"start"===y)&&mr.jsx(cc,{className:P.startIcon,ownerState:R,children:S||mr.jsx(pc,{className:P.loadingIconPlaceholder,ownerState:R})}),O=(p||g&&"end"===y)&&mr.jsx(uc,{className:P.endIcon,ownerState:R,children:p||mr.jsx(pc,{className:P.loadingIconPlaceholder,ownerState:R})}),I=r||"",M="boolean"==typeof g?mr.jsx("span",{className:P.loadingWrapper,style:{display:"contents"},children:g&&mr.jsx(dc,{className:P.loadingIndicator,ownerState:R,children:L})}):null,{root:q,...D}=P;return mr.jsxs(sc,{ownerState:R,className:Bo(n.className,P.root,s,I),component:l,disabled:c||g,focusRipple:!d,focusVisibleClassName:Bo(P.focusVisible,f),ref:t,type:x,id:g?E:m,...C,classes:D,children:[T,"end"!==y&&M,i,"end"===y&&M,O]})});var hc={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 mc={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"},gc={mode:"light",palette:{primary:{main:mc.grey25,contrastText:mc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:mc.grey25,secondary:"rgba(0, 0, 0, 0.55)",disabled:"rgba(0, 0, 0, 0.3)",light:mc.grey100,dark:mc.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:mc.grey100,default:mc.grey100,lightest:mc.grey100,lighter:mc.grey98,darker:mc.grey95,darkest:mc.grey90},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:mc.blueDark,focusBorder:mc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(255, 255, 255, 1)",disabledBackground:mc.grey45,disabledContrastText:mc.grey100},selected:{main:mc.green,alternative:"#E4E4E4",excluded:"#BEBEBE",selectedExcluded:"#BEBEBE",possible:mc.grey100,selectedContrastText:mc.grey100,mainContrastText:mc.grey100,alternativeContrastText:mc.grey25,excludedContrastText:mc.grey25,selectedExcludedContrastText:mc.grey100,possibleContrastText:mc.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)"}}},bc={mode:"dark",palette:{primary:{main:mc.grey20,contrastText:mc.grey100},secondary:{light:"#0AAF54",main:"#009845",dark:"#006937"},text:{primary:mc.grey100,secondary:"rgba(255, 255, 255, 0.6)",disabled:"rgba(255, 255, 255, 0.3)",light:mc.grey100,dark:mc.grey0},action:{active:mc.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:mc.grey25,lighter:mc.grey20,darker:mc.grey15,darkest:mc.grey10},custom:{whiteBorder:"rgb(255, 255, 255)",newFocusBorder:mc.blueDark,focusBorder:mc.blue,focusOutline:"rgba(70, 157, 205, 0.3)",inputBackground:"rgba(0, 0, 0, 0.2)",disabledBackground:mc.grey45,disabledContrastText:mc.grey100},selected:{main:mc.green,alternative:mc.grey20,excluded:mc.grey10,selectedExcluded:mc.grey10,possible:mc.grey80,selectedContrastText:mc.grey100,mainContrastText:mc.grey100,alternativeContrastText:mc.grey100,excludedContrastText:mc.grey100,selectedExcludedContrastText:mc.grey100,possibleContrastText:mc.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)"}}},yc={},vc=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",[`&.${oc.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",[`&.${oc.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",[`&.${oc.disabled}`]:{backgroundColor:e.palette.btn.disabled}},"&.Mui-active":{boxShadow:"none",backgroundColor:e.palette.btn.active},[`&.${oc.disabled}`]:{backgroundColor:e.palette.btn.disabled}}}},MuiAccordionSummary:{styleOverrides:{content:{margin:"8px 0"}}}});function Sc(e){let t=gc,n="";"string"==typeof e&&(n=e,"light"!==e&&"dark"!==e?console.warn(`Invalid theme: '${e}'`):"dark"===e&&(t=bc));const r=JSON.stringify(t);if(yc[r])return yc[r];const o={palette:u(u({type:t.mode},hc.palette),t.palette),typography:u({},hc.typography),shadows:hc.shadows,shape:u({},hc.shape)},i=u(u({},o),{},{components:vc(o)});return yc[r]=Il(i),yc[r].name=n,yc[r]}$o.configure(e=>`njs-b079-${e.replace("Mui","")}`);var xc=C.createContext({language:null,theme:null,translator:null,constraints:{},interactions:{},themeApi:null,modelStore:{},selectionStore:{},hostConfig:null,queryParams:null});const wc={active:!0,select:!0,passive:!0,edit:!1};function kc(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(wc).forEach(e=>{void 0!==r[e]?(t[e]=r[e],n[e]=!r[e]):(t[e]=wc[e],n[e]=!wc[e])}),e.constraints=n,e.interactions=t}var Cc=(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 Ec=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:Sc(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),mr.jsx(vr,{injectFirst:!0,children:mr.jsx(Wl,{theme:c,children:mr.jsx(xc.Provider,{value:i,children:u})})})});function Lc({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.5.2"),a.setAttribute("data-app-id",e.id),document.body.appendChild(a),t&&kc(t);const l=function(e){const[t,n]=Cc({}),[r,o]=Cc({}),[i,a]=Cc({}),[l,s]=Cc({}),[c,u]=Cc({}),[,d]=Cc({}),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]=Cc({},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]=Cc({}),[r,o]=Cc({}),[i,a]=Cc({});return{useAppSelectionsStore:t,useAppModalStore:r,appSelectionsStore:n,appModalStore:o,useModalObjectStore:i,modalObjectStore:a,appId:e}}(e.id),c=ut.createRoot(a);c.render(mr.jsx(Ec,{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&&kc(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 Rc=e=>e.scrollTop;function Pc(e,t){return n=>{if(t){const r=e.current;void 0===n?t(r):t(r,n)}}}function Tc(e,t,n,r,o,i){const a="exited"!==e||t?n[e]||n.exited:r;return o||i?{...a,...o,...i}:a}function Oc(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 Ic(e){return"string"==typeof e}function Mc(e,t,n){return void 0===e||Ic(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function qc(e,t,n){return"function"==typeof e?e(t,n):e}function Dc(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 Nc(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=Bo(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=Dc({...o,...r}),l=Nc(r),s=Nc(o),c=t(a),u=Bo(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 jc(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=qc(d[e],o),{props:{component:m,...g},internalRef:b}=_c({className:n,...s,externalForwardedProps:"root"===e?p:void 0,externalSlotProps:h}),y=os(b,h?.ref,t.ref),v="root"===e?m||c:m;return[f,Mc(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 Ac(e){return Ho("MuiPaper",e)}Uo("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 zc=Nl("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}`]]}})(Vl(({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)"}}]}))),$c=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiPaper"}),r=ql(),{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 Ki({root:["root",r,!t&&"rounded","elevation"===r&&`elevation${n}`]},Ac,o)})(u);return mr.jsx(zc,{as:i,ownerState:u,className:Bo(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(${pi("#fff",yl(a))}, ${pi("#fff",yl(a))})`}},...c.style}})});function Fc(e){return Ho("MuiIconButton",e)}const Bc=Uo("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),Wc=Nl(Ws,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,"default"!==n.color&&t[`color${jr(n.color)}`],n.edge&&t[`edge${jr(n.edge)}`],t[`size${jr(n.size)}`]]}})(Vl(({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}}]})),Vl(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Us()).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)}}],[`&.${Bc.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${Bc.loading}`]:{color:"transparent"}}))),Hc=Nl("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"}}]})),Uc=k.forwardRef(function(e,t){const n=Gl({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=Ii(u),m=p??mr.jsx(nc,{"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 Ki({root:["root",a&&"loading",n&&"disabled","default"!==r&&`color${jr(r)}`,o&&`edge${jr(o)}`,`size${jr(i)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},Fc,t)})(g);return mr.jsxs(Wc,{id:d?h:u,className:Bo(b.root,i),centerRipple:!0,focusRipple:!s,disabled:l||d,ref:t,...f,ownerState:g,children:["boolean"==typeof d&&mr.jsx("span",{className:b.loadingWrapper,style:{display:"contents"},children:mr.jsx(Hc,{className:b.loadingIndicator,ownerState:g,children:d&&m})}),o]})});function Vc(e){return Ho("MuiTypography",e)}Uo("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Gc={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Kc=Ao,Xc=Nl("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${jr(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(Vl(({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(Us()).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${jr(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}}]}))),Jc={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},Zc=k.forwardRef(function(e,t){const{color:n,...r}=Gl({props:e,name:"MuiTypography"}),o=Kc({...r,...!Gc[n]&&{color:n}}),{align:i="inherit",className:a,component:l,gutterBottom:s=!1,noWrap:c=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=Jc,...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]||Jc[d])||"span",g=(e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e;return Ki({root:["root",i,"inherit"!==e.align&&`align${jr(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]},Vc,a)})(h);return mr.jsx(Xc,{as:m,ref:t,className:Bo(g.root,a),...f,ownerState:h,style:{..."inherit"!==i&&{"--Typography-textAlign":i},...f.style}})});function Qc(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 Yc(e){const t=k.useRef({});return k.useEffect(()=>{t.current=e}),t.current}var eu="top",tu="bottom",nu="right",ru="left",ou="auto",iu=[eu,tu,nu,ru],au="start",lu="end",su="viewport",cu="popper",uu=iu.reduce(function(e,t){return e.concat([t+"-"+au,t+"-"+lu])},[]),du=[].concat(iu,[ou]).reduce(function(e,t){return e.concat([t,t+"-"+au,t+"-"+lu])},[]),pu=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function fu(e){return e?(e.nodeName||"").toLowerCase():null}function hu(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function mu(e){return e instanceof hu(e).Element||e instanceof Element}function gu(e){return e instanceof hu(e).HTMLElement||e instanceof HTMLElement}function bu(e){return"undefined"!=typeof ShadowRoot&&(e instanceof hu(e).ShadowRoot||e instanceof ShadowRoot)}var yu={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];gu(o)&&fu(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},{});gu(r)&&fu(r)&&(Object.assign(r.style,i),Object.keys(o).forEach(function(e){r.removeAttribute(e)}))})}},requires:["computeStyles"]};function vu(e){return e.split("-")[0]}var Su=Math.max,xu=Math.min,wu=Math.round;function ku(){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 Cu(){return!/^((?!chrome|android).)*safari/i.test(ku())}function Eu(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&gu(e)&&(o=e.offsetWidth>0&&wu(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&wu(r.height)/e.offsetHeight||1);var a=(mu(e)?hu(e):window).visualViewport,l=!Cu()&&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 Lu(e){var t=Eu(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 Ru(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&bu(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Pu(e){return hu(e).getComputedStyle(e)}function Tu(e){return["table","td","th"].indexOf(fu(e))>=0}function Ou(e){return((mu(e)?e.ownerDocument:e.document)||window.document).documentElement}function Iu(e){return"html"===fu(e)?e:e.assignedSlot||e.parentNode||(bu(e)?e.host:null)||Ou(e)}function Mu(e){return gu(e)&&"fixed"!==Pu(e).position?e.offsetParent:null}function qu(e){for(var t=hu(e),n=Mu(e);n&&Tu(n)&&"static"===Pu(n).position;)n=Mu(n);return n&&("html"===fu(n)||"body"===fu(n)&&"static"===Pu(n).position)?t:n||function(e){var t=/firefox/i.test(ku());if(/Trident/i.test(ku())&&gu(e)&&"fixed"===Pu(e).position)return null;var n=Iu(e);for(bu(n)&&(n=n.host);gu(n)&&["html","body"].indexOf(fu(n))<0;){var r=Pu(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 Du(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Nu(e,t,n){return Su(e,xu(t,n))}function _u(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ju(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var Au={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=vu(n.placement),s=Du(l),c=[ru,nu].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:ju(e,iu))}(o.padding,n),d=Lu(i),p="y"===s?eu:ru,f="y"===s?tu:nu,h=n.rects.reference[c]+n.rects.reference[s]-a[s]-n.rects.popper[c],m=a[s]-n.rects.reference[s],g=qu(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=Nu(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)))&&Ru(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zu(e){return e.split("-")[1]}var $u={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Fu(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=ru,S=eu,x=window;if(c){var w=qu(n),k="clientHeight",C="clientWidth";if(w===hu(n)&&"static"!==Pu(w=Ou(n)).position&&"absolute"===l&&(k="scrollHeight",C="scrollWidth"),o===eu||(o===ru||o===nu)&&i===lu)S=tu,m-=(d&&w===x&&x.visualViewport?x.visualViewport.height:w[k])-r.height,m*=s?1:-1;if(o===ru||(o===eu||o===tu)&&i===lu)v=nu,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&&$u),R=!0===u?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:wu(n*o)/o||0,y:wu(r*o)/o||0}}({x:f,y:m},hu(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 Bu={passive:!0};var Wu={left:"right",right:"left",bottom:"top",top:"bottom"};function Hu(e){return e.replace(/left|right|bottom|top/g,function(e){return Wu[e]})}var Uu={start:"end",end:"start"};function Vu(e){return e.replace(/start|end/g,function(e){return Uu[e]})}function Gu(e){var t=hu(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Ku(e){return Eu(Ou(e)).left+Gu(e).scrollLeft}function Xu(e){var t=Pu(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function Ju(e){return["html","body","#document"].indexOf(fu(e))>=0?e.ownerDocument.body:gu(e)&&Xu(e)?e:Ju(Iu(e))}function Zu(e,t){var n;void 0===t&&(t=[]);var r=Ju(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=hu(r),a=o?[i].concat(i.visualViewport||[],Xu(r)?r:[]):r,l=t.concat(a);return o?l:l.concat(Zu(Iu(a)))}function Qu(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Yu(e,t,n){return t===su?Qu(function(e,t){var n=hu(e),r=Ou(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,l=0,s=0;if(o){i=o.width,a=o.height;var c=Cu();(c||!c&&"fixed"===t)&&(l=o.offsetLeft,s=o.offsetTop)}return{width:i,height:a,x:l+Ku(e),y:s}}(e,n)):mu(t)?function(e,t){var n=Eu(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):Qu(function(e){var t,n=Ou(e),r=Gu(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Su(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Su(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),l=-r.scrollLeft+Ku(e),s=-r.scrollTop;return"rtl"===Pu(o||n).direction&&(l+=Su(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:l,y:s}}(Ou(e)))}function ed(e,t,n,r){var o="clippingParents"===t?function(e){var t=Zu(Iu(e)),n=["absolute","fixed"].indexOf(Pu(e).position)>=0&&gu(e)?qu(e):e;return mu(n)?t.filter(function(e){return mu(e)&&Ru(e,n)&&"body"!==fu(e)}):[]}(e):[].concat(t),i=[].concat(o,[n]),a=i[0],l=i.reduce(function(t,n){var o=Yu(e,n,r);return t.top=Su(o.top,t.top),t.right=xu(o.right,t.right),t.bottom=xu(o.bottom,t.bottom),t.left=Su(o.left,t.left),t},Yu(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 td(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?vu(o):null,a=o?zu(o):null,l=n.x+n.width/2-r.width/2,s=n.y+n.height/2-r.height/2;switch(i){case eu:t={x:l,y:n.y-r.height};break;case tu:t={x:l,y:n.y+n.height};break;case nu:t={x:n.x+n.width,y:s};break;case ru:t={x:n.x-r.width,y:s};break;default:t={x:n.x,y:n.y}}var c=i?Du(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case au:t[c]=t[c]-(n[u]/2-r[u]/2);break;case lu:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}function nd(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?su:c,d=n.elementContext,p=void 0===d?cu:d,f=n.altBoundary,h=void 0!==f&&f,m=n.padding,g=void 0===m?0:m,b=_u("number"!=typeof g?g:ju(g,iu)),y=p===cu?"reference":cu,v=e.rects.popper,S=e.elements[h?y:p],x=ed(mu(S)?S:S.contextElement||Ou(e.elements.popper),s,u,a),w=Eu(e.elements.reference),k=td({reference:w,element:v,placement:o}),C=Qu(Object.assign({},v,k)),E=p===cu?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===cu&&R){var P=R[o];Object.keys(L).forEach(function(e){var t=[nu,tu].indexOf(e)>=0?1:-1,n=[eu,tu].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t})}return L}function rd(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?du:s,u=zu(r),d=u?l?uu:uu.filter(function(e){return zu(e)===u}):iu,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]=nd(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[vu(n)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}var od={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=vu(g),y=s||(b===g||!h?[Hu(g)]:function(e){if(vu(e)===ou)return[];var t=Hu(e);return[Vu(e),t,Vu(t)]}(g)),v=[g].concat(y).reduce(function(e,n){return e.concat(vu(n)===ou?rd(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=vu(L),P=zu(L)===au,T=[eu,tu].indexOf(R)>=0,O=T?"width":"height",I=nd(t,{placement:L,boundary:u,rootBoundary:d,altBoundary:p,padding:c}),M=T?P?nu:ru:P?tu:eu;S[O]>x[O]&&(M=Hu(M));var q=Hu(M),D=[];if(i&&D.push(I[R]<=0),l&&D.push(I[M]<=0,I[q]<=0),D.every(function(e){return e})){C=L,k=!1;break}w.set(L,D)}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"},_=h?3:1;_>0;_--){if("break"===N(_))break}t.placement!==C&&(t.modifiersData[r]._skip=!0,t.placement=C,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function id(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 ad(e){return[eu,nu,tu,ru].some(function(t){return e[t]>=0})}var ld={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=du.reduce(function(e,n){return e[n]=function(e,t,n){var r=vu(e),o=[ru,eu].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,[ru,nu].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 sd={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=nd(t,{boundary:s,rootBoundary:c,padding:d,altBoundary:u}),b=vu(t.placement),y=zu(t.placement),v=!y,S=Du(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?eu:ru,I="y"===S?tu:nu,M="y"===S?"height":"width",q=w[S],D=q+g[O],N=q-g[I],_=f?-C[M]/2:0,j=y===au?k[M]:C[M],A=y===au?-C[M]:-k[M],z=t.elements.arrow,$=f&&z?Lu(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=Nu(0,k[M],$[M]),U=v?k[M]/2-_-H-B-L.mainAxis:j-H-B-L.mainAxis,V=v?-k[M]/2+_+H+W+L.mainAxis:A+H+W+L.mainAxis,G=t.elements.arrow&&qu(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=q+V-X,Z=Nu(f?xu(D,q+U-X-K):D,q,f?Su(N,J):N);w[S]=Z,P[S]=Z-q}if(l){var Q,Y="x"===S?eu:ru,ee="x"===S?tu:nu,te=w[x],ne="y"===x?"height":"width",re=te+g[Y],oe=te-g[ee],ie=-1!==[eu,ru].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=Nu(e,t,n);return r>n?n:r}(le,te,se):Nu(f?le:re,te,f?se:oe);w[x]=ce,P[x]=ce-te}t.modifiersData[r]=P}},requiresIfExists:["offset"]};function cd(e,t,n){void 0===n&&(n=!1);var r=gu(t),o=gu(t)&&function(e){var t=e.getBoundingClientRect(),n=wu(t.width)/e.offsetWidth||1,r=wu(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),i=Ou(t),a=Eu(e,o,n),l={scrollLeft:0,scrollTop:0},s={x:0,y:0};return(r||!r&&!n)&&(("body"!==fu(t)||Xu(i))&&(l=function(e){return e!==hu(e)&&gu(e)?{scrollLeft:(t=e).scrollLeft,scrollTop:t.scrollTop}:Gu(e);var t}(t)),gu(t)?((s=Eu(t,!0)).x+=t.clientLeft,s.y+=t.clientTop):i&&(s.x=Ku(i))),{x:a.left+l.scrollLeft-s.x,y:a.top+l.scrollTop-s.y,width:a.width,height:a.height}}function ud(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 dd(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}var pd={placement:"bottom",modifiers:[],strategy:"absolute"};function fd(){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 hd(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?pd:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},pd,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:mu(e)?Zu(e):e.contextElement?Zu(e.contextElement):[],popper:Zu(t)};var u,d,p=function(e){var t=ud(e);return pu.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(fd(t,n)){o.rects={reference:cd(t,qu(n),"fixed"===o.options.strategy),popper:Lu(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:dd(function(){return new Promise(function(e){s.forceUpdate(),e(o)})}),destroy:function(){c(),l=!0}};if(!fd(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 md=hd({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=hu(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",n.update,Bu)}),l&&s.addEventListener("resize",n.update,Bu),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",n.update,Bu)}),l&&s.removeEventListener("resize",n.update,Bu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=td({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:vu(t.placement),variation:zu(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,Fu(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,Fu(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:{}},yu,ld,od,sd,Au,{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=nd(t,{elementContext:"reference"}),l=nd(t,{altBoundary:!0}),s=id(a,r),c=id(l,o,i),u=ad(s),d=ad(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 gd(e){return parseInt(k.version,10)>=19?e?.props?.ref||null:e?.ref||null}const bd=k.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=k.useState(null),l=os(k.isValidElement(n)?gd(n):null,t);if(ii(()=>{o||a(function(e){return"function"==typeof e?e():e}(r)||document.body)},[r,o]),ii(()=>{if(i&&!o)return ts(t,i),()=>{ts(t,null)}},[t,i,o]),o){if(k.isValidElement(n)){const e={ref:l};return k.cloneElement(n,e)}return n}return i?fs.createPortal(n,i):i});function yd(e){return Ho("MuiPopper",e)}function vd(e){return"function"==typeof e?e():e}Uo("MuiPopper",["root"]);const Sd={},xd=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=os(g,t),y=k.useRef(null),v=os(y,u),S=k.useRef(v);ii(()=>{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(vd(n));k.useEffect(()=>{y.current&&y.current.forceUpdate()}),k.useEffect(()=>{n&&L(vd(n))},[n]),ii(()=>{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=md(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 Ki({root:["root"]},yd,t)})(e),T=p.root??"div",O=function(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:o=!1,...i}=e,a=o?{}:qc(n,r),{props:l,internalRef:s}=_c({...i,externalSlotProps:a});return Mc(t,{...l,ref:os(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 mr.jsx(T,{...O,children:"function"==typeof r?r(R):r})}),wd=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=Sd,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=vd(n);S=e&&void 0!==e.nodeType?Yl(e).body:Yl(null).body}const x=c||!l||h&&!y?void 0:"none",w=h?{in:c,onEnter:()=>{v(!1)},onExited:()=>{v(!0)}}:void 0;return mr.jsx(bd,{disablePortal:a,container:S,children:mr.jsx(xd,{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})})}),kd=Nl(wd,{name:"MuiPopper",slot:"Root"})({}),Cd=k.forwardRef(function(e,t){const n=Ei(),r=Gl({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 mr.jsx(kd,{as:i,direction:n?"rtl":"ltr",slots:{root:S},slotProps:y??l,...x,ref:t})});function Ed(e){return parseInt(e,10)||0}const Ld={visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"};function Rd(e){return function(e){for(const t in e)return!1;return!0}(e)||0===e.outerHeightStyle&&!e.overflowing}const Pd=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=os(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=es(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=Ed(i.paddingBottom)+Ed(i.paddingTop),s=Ed(i.borderBottomWidth)+Ed(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=rs(()=>{const e=c.current,t=f();if(!e||!t||Rd(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||Rd(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);ii(()=>{const e=Ql(m),t=c?.current;if(!t)return;const n=es(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]),ii(()=>{m()});return mr.jsxs(k.Fragment,{children:[mr.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}),mr.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:p,tabIndex:-1,style:{...Ld,...i,paddingTop:0,paddingBottom:0}})]})});function Td({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 Od=k.createContext(void 0);function Id(){return k.useContext(Od)}function Md(e){let t=e.activeElement;for(;null!=t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}function qd(e){return null!=e&&!(Array.isArray(e)&&0===e.length)}function Dd(e){return Ho("MuiInputBase",e)}const Nd=Uo("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var _d;const jd="mui-auto-fill",Ad="mui-auto-fill-cancel",zd=(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${jr(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},$d=(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]},Fd=Nl("div",{name:"MuiInputBase",slot:"Root",overridesResolver:zd})(Vl(({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",[`&.${Nd.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%"}}]}))),Bd=Nl("input",{name:"MuiInputBase",slot:"Input",overridesResolver:$d})(Vl(({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] + .${Nd.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},[`&.${Nd.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Ad,animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:jd}}},{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"}}]}})),Wd=function(e){return function(t){return mr.jsx(Ul,{styles:"function"==typeof e?n=>e({theme:n,...t}):e})}}({[`@keyframes ${jd}`]:{from:{animationName:jd}},[`@keyframes ${Ad}`]:{from:{animationName:Ad}}}),Hd=k.forwardRef(function(e,t){const n=Gl({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:q,renderSuffix:D,rows:N,size:_,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=os(U,v,y.ref,V),[K,X]=k.useState(!1),J=Id(),Z=Td({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&&(qd(e.value)&&""!==e.value||t&&qd(e.defaultValue)&&""!==e.defaultValue)}(e)?Y&&Y():Q&&Q()},[Q,Y]);ii(()=>{H&&ee({value:W})},[W,ee,H]),ii(()=>{if(!i)return;const e=U.current;if(!e)return;const t=Yl(e),n=Md(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=Pd);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 Ki({root:["root",`color${jr(n)}`,r&&"disabled",o&&"error",s&&"fullWidth",a&&"focused",l&&"formControl",p&&"medium"!==p&&`size${jr(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"]},Dd,t)})(re),ie=A.root||s.Root||Fd,ae=j.root||c.root||{},le=A.input||s.Input||Bd;return ne={...ne,...j.input??c.input},mr.jsxs(k.Fragment,{children:[!p&&"function"==typeof Wd&&(_d||(_d=mr.jsx(Wd,{}))),mr.jsxs(ie,{...ae,ref:t,onClick:e=>{U.current&&e.currentTarget===e.target&&U.current.focus(),P&&P(e)},...B,...!Ic(ie)&&{ownerState:{...re,...ae.ownerState}},className:Bo(oe.root,ae.className,a,q&&"MuiInputBase-readOnly"),children:[z,mr.jsx(Od.Provider,{value:null,children:mr.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===Ad?U.current:{value:"x"})},name:E,placeholder:M,readOnly:q,required:Z.required,rows:N,value:W,onKeyDown:O,onKeyUp:I,type:$,...ne,...!Ic(le)&&{as:te,ownerState:{...re,...ne.ownerState}},ref:G,className:Bo(oe.input,ne.className,q&&"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(dt(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,D?D({...Z,startAdornment:z}):null]})]})});function Ud(e){return Ho("MuiOutlinedInput",e)}const Vd={...Nd,...Uo("MuiOutlinedInput",["root","notchedOutline","input"])},Gd={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},Kd={opacity:0,visibility:"hidden"},Xd=k.forwardRef(function(e,t){const n=ql(),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=os(y,gd(a),t),S=Pc(y,d),x=Pc(y,(e,t)=>{Rc(e);const r=Oc({style:m,timeout:g,easing:l},{mode:"enter"});e.style.transition=n.transitions.create("opacity",r),c&&c(e,t)}),w=Pc(y,u),C=Pc(y,h),E=Pc(y,e=>{const t=Oc({style:m,timeout:g,easing:l},{mode:"exit"});e.style.transition=n.transitions.create("opacity",t),p&&p(e)}),L=Pc(y,e=>{e.style.transition="",f&&f(e)});return mr.jsx(ws,{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=Tc(e,s,Gd,Kd,m,a.props.style);return k.cloneElement(a,{style:r,ref:v,...n})}})});function Jd(e){return Ho("MuiBackdrop",e)}Uo("MuiBackdrop",["root","invisible"]);const Zd=Nl("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"}}]}),Qd=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",n&&"invisible"]},Jd,t)})(m),b={component:i,slots:{transition:p,root:s.Root,...d},slotProps:{...c,...u}},[y,v]=jc("root",{elementType:Zd,externalForwardedProps:b,className:Bo(g.root,o),ownerState:m}),[S,x]=jc("transition",{elementType:Xd,externalForwardedProps:b,ownerState:m});return mr.jsx(S,{in:l,timeout:f,...h,...x,children:mr.jsx(y,{"aria-hidden":!0,...v,ref:t,children:r})})});function Yd(e){return Ho("MuiBadge",e)}const ep=Uo("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"]),tp=Nl("span",{name:"MuiBadge",slot:"Root"})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),np=Nl("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${jr(n.anchorOrigin.vertical)}${jr(n.anchorOrigin.horizontal)}${jr(n.overlap)}`],"default"!==n.color&&t[`color${jr(n.color)}`],n.invisible&&t.invisible]}})(Vl(({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(Us(["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%"}`,[`&.${ep.invisible}`]:{transform:"scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))"}}}}]})));function rp(e){return{vertical:e?.vertical??"top",horizontal:e?.horizontal??"right"}}const op=k.forwardRef(function(e,t){const n=Gl({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=Yc({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=Yc({anchorOrigin:rp(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=rp(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},q=(e=>{const{color:t,anchorOrigin:n,invisible:r,overlap:o,variant:i,classes:a={}}=e;return Ki({root:["root"],badge:["badge",i,r&&"invisible",`anchorOrigin${jr(n.vertical)}${jr(n.horizontal)}`,`anchorOrigin${jr(n.vertical)}${jr(n.horizontal)}${jr(o)}`,`overlap${jr(o)}`,"default"!==t&&`color${jr(t)}`]},Yd,a)})(M),D={slots:{root:m?.root??l.Root,badge:m?.badge??l.Badge},slotProps:{root:g?.root??s.root,badge:g?.badge??s.badge}},[N,_]=jc("root",{elementType:tp,externalForwardedProps:{...D,...v},ownerState:M,className:Bo(q.root,o),ref:t,additionalProps:{as:a}}),[j,A]=jc("badge",{elementType:np,externalForwardedProps:D,ownerState:M,className:q.badge});return mr.jsxs(N,{..._,children:[c,mr.jsx(j,{...A,children:I})]})}),ip=Uo("MuiBox",["root"]),ap=Il(),lp=function(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=xr("div",{shouldForwardProp:e=>"theme"!==e&&"sx"!==e&&"as"!==e})(Oo),a=k.forwardRef(function(e,a){const l=No(n),{className:s,component:c="div",...u}=Ao(e);return mr.jsx(i,{as:c,ref:a,className:Bo(s,o?o(r):r),theme:t&&l[t]||l,...u})});return a}({themeId:pt,defaultTheme:ap,defaultClassName:ip.root,generateClassName:$o.generate});function sp(e){return Ho("PrivateSwitchBase",e)}Uo("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const cp=Nl(Ws,{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}}]}),up=Nl("input",{name:"MuiSwitchBase",shouldForwardProp:Dl})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),dp=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]=ns({controlled:r,default:Boolean(i),name:"SwitchBase",state:"checked"}),R=Id();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 Ki({root:["root",n&&"checked",r&&"disabled",o&&`edge${jr(o)}`],input:["input"]},sp,t)})(O),M={slots:w,slotProps:{input:d,...k}},[q,D]=jc("root",{ref:t,elementType:cp,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,_]=jc("input",{ref:p,elementType:up,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 mr.jsxs(q,{...D,children:[mr.jsx(N,{..._}),E?o:c]})});var pp=Zl(mr.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"})),fp=Zl(mr.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"})),hp=Zl(mr.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 mp(e){return Ho("MuiCheckbox",e)}const gp=Uo("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),bp=Nl(dp,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${jr(n.size)}`],"default"!==n.color&&t[`color${jr(n.color)}`]]}})(Vl(({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(Us()).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(Us()).map(([t])=>({props:{color:t},style:{[`&.${gp.checked}, &.${gp.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${gp.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),yp=mr.jsx(fp,{}),vp=mr.jsx(pp,{}),Sp=mr.jsx(hp,{}),xp=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiCheckbox"}),{checkedIcon:r=yp,color:o="primary",icon:i=vp,indeterminate:a=!1,indeterminateIcon:l=Sp,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=Ki({root:["root",n&&"indeterminate",`color${jr(r)}`,`size${jr(o)}`]},mp,t);return{...t,...i}})(b),v=f.input??s,[S,x]=jc("root",{ref:t,elementType:bp,className:Bo(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:is("function"==typeof v?v(b):v,{"data-indeterminate":a,"aria-checked":a?"mixed":void 0})}}});return mr.jsx(S,{...x,classes:y})});function wp(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function kp(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Cp(e){return parseFloat(es(e).getComputedStyle(e).paddingRight)||0}function Ep(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&&kp(e,o)})}function Lp(e,t){let n=-1;return e.some((e,r)=>!!t(e)&&(n=r,!0)),n}function Rp(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(function(e){const t=Yl(e);return t.body===e?es(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}(r)){const e=wp(es(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Cp(r)+e}px`;const t=Yl(r).querySelectorAll(".mui-fixed");[].forEach.call(t,t=>{n.push({value:t.style.paddingRight,property:"padding-right",el:t}),t.style.paddingRight=`${Cp(t)+e}px`})}let e;if(r.parentNode instanceof DocumentFragment)e=Yl(r).body;else{const t=r.parentElement,n=es(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 Pp="data-mui-focusable";const Tp=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Op(e){const t=[],n=[];return Array.from(e.querySelectorAll(Tp)).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 Ip(){return!0}function Mp(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=Op,isEnabled:a=Ip,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=os(gd(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=Md(Yl(h.current)),t=((n=h.current)?n.hasAttribute(Pp)?n:n.querySelector(`[${Pp}]`):null)??h.current;var n;return Qc(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=Yl(h.current),t=t=>{if(g.current=t,r||!a()||"Tab"!==t.key)return;Md(e)===h.current&&t.shiftKey&&(s.current=!0,u.current&&u.current.focus())},n=()=>{const t=h.current;if(null===t)return;const n=Md(e);if(!e.hasFocus()||!a()||s.current)return void(s.current=!1);if(Qc(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=Md(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 mr.jsxs(k.Fragment,{children:[mr.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)}}),mr.jsx("div",{tabIndex:l?0:-1,onFocus:b,ref:u,"data-testid":"sentinelEnd"})]})}const qp=()=>{},Dp=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&&kp(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);Ep(t,e.mount,e.modalRef,r,!0);const o=Lp(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=Lp(this.containers,t=>t.modals.includes(e)),r=this.containers[n];r.restore||(r.restore=Rp(r,t))}remove(e,t=!0){const n=this.modals.indexOf(e);if(-1===n)return n;const r=Lp(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&&kp(e.modalRef,t),Ep(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&&kp(e.modalRef,!1)}return n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}};function Np(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=os(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=()=>{Dp.mount(v(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},x=rs(()=>{const e=function(e){return"function"==typeof e?e():e}(t)||Yl(p.current).body;Dp.add(v(),e),f.current&&S()}),w=()=>Dp.isTopModal(v()),C=rs(e=>{p.current=e,e&&(c&&w()?S():f.current&&kp(f.current,y))}),E=k.useCallback(()=>{Dp.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=Dc(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:Hl(()=>{g(!1),i&&i()},l?.props.onEnter??qp),onExited:Hl(()=>{g(!0),a&&a(),o&&E()},l?.props.onExited??qp)}),rootRef:h,portalRef:C,isTopModal:w,exited:m,hasTransition:b}}function _p(e){return Ho("MuiModal",e)}Uo("MuiModal",["root","hidden","backdrop"]);const jp=Nl("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(Vl(({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"}}]}))),Ap=Nl(Qd,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),zp=k.forwardRef(function(e,t){const n=Gl({name:"MuiModal",props:e}),{BackdropComponent:r=Ap,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:q,portalRef:D,isTopModal:N,exited:_,hasTransition:j}=Np({...O,rootRef:t}),A={...O,exited:_},z=(e=>{const{open:t,exited:n,classes:r}=e;return Ki({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},_p,r)})(A),$={};if(void 0===s.props.tabIndex&&($.tabIndex="-1"),j){const{onEnter:e,onExited:t}=q();$.onEnter=e,$.onExited=t}const F={slots:{root:d.Root,backdrop:d.Backdrop,...R},slotProps:{...p,...L}},[B,W]=jc("root",{ref:t,elementType:jp,externalForwardedProps:{...F,...T,component:u},getSlotProps:I,ownerState:A,className:Bo(a,z?.root,!A.open&&A.exited&&z?.hidden)}),[H,U]=jc("backdrop",{ref:o?.ref,elementType:r,externalForwardedProps:F,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:e=>M({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:Bo(o?.className,z?.backdrop),ownerState:A});return S||E||j&&!_?mr.jsx(bd,{ref:D,container:c,disablePortal:g,children:mr.jsxs(B,{...W,children:[!v&&r?mr.jsx(H,{...U}):null,mr.jsx(Mp,{disableEnforceFocus:h,disableAutoFocus:f,disableRestoreFocus:b,isEnabled:N,open:E,children:k.cloneElement(s,$)})]})}):null});function $p(e){return Ho("MuiDivider",e)}const Fp=Uo("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Bp=Nl("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]}})(Vl(({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%"}}}]}))),Wp=Nl("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,"vertical"===n.orientation&&t.wrapperVertical]}})(Vl(({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)`}}]}))),Hp=k.forwardRef(function(e,t){const n=Gl({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 Ki({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"]},$p,r)})(h);return mr.jsx(Bp,{as:l,className:Bo(m.root,i),role:u,ref:t,ownerState:h,"aria-orientation":"separator"!==u||"hr"===l&&"vertical"!==a?void 0:a,...f,children:o?mr.jsx(Wp,{className:m.wrapper,ownerState:h,children:o}):null})});function Up(e){return Ho("MuiFormControlLabel",e)}Hp&&(Hp.muiSkipListHighlight=!0);const Vp=Uo("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),Gp=Nl("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Vp.label}`]:t.label},t.root,t[`labelPlacement${jr(n.labelPlacement)}`]]}})(Vl(({theme:e})=>({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${Vp.disabled}`]:{cursor:"default"},[`& .${Vp.label}`]:{[`&.${Vp.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}}]}))),Kp=Nl("span",{name:"MuiFormControlLabel",slot:"Asterisk"})(Vl(({theme:e})=>({[`&.${Vp.error}`]:{color:(e.vars||e).palette.error.main}}))),Xp=k.forwardRef(function(e,t){const n=Gl({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=Id(),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=Td({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 Ki({root:["root",n&&"disabled",`labelPlacement${jr(r)}`,o&&"error",i&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",o&&"error"]},Up,t)})(E),R={slots:m,slotProps:{...i,...g}},[P,T]=jc("typography",{elementType:Zc,externalForwardedProps:R,ownerState:E});let O=u;return null==O||O.type===Zc||s||(O=mr.jsx(P,{component:"span",...T,className:Bo(L.label,T?.className),children:O})),mr.jsxs(Gp,{className:Bo(L.root,o),ownerState:E,ref:t,...y,children:[k.cloneElement(a,w),x?mr.jsxs("div",{children:[O,mr.jsxs(Kp,{ownerState:E,"aria-hidden":!0,className:L.asterisk,children:[" ","*"]})]}):O]})}),Jp=function(e={}){const{createStyledComponent:t=pa,useThemeProps:n=fa,useTheme:r=No,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(ra,ia,oa,ta,aa,la,na),l=k.forwardRef(function(e,t){const l=r(),s=Ao(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 Ki({root:["root",n&&"container","wrap"!==a&&`wrap-xs-${String(a)}`,...ua(r),...sa(l),...n?ca(i,t.breakpoints.keys[0]):[]]},e=>Ho(o,e),{})})(O,l);return mr.jsx(a,{ref:t,as:f,ownerState:O,className:Bo(I.root,c),...w,children:k.Children.map(u,e=>k.isValidElement(e)&&Xi(e,["Grid"])&&p&&e.props.container?k.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return l.muiName="Grid",l}({createStyledComponent:Nl("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:"MuiGrid",useThemeProps:e=>Gl({props:e,name:"MuiGrid"}),useTheme:ql});function Zp(e){return`scale(${e}, ${e**2})`}const Qp={entering:{opacity:1,transform:Zp(1)},entered:{opacity:1,transform:"none"},exiting:{opacity:0,transform:Zp(.75)},exited:{opacity:0,transform:Zp(.75)}},Yp={opacity:0,transform:Zp(.75),visibility:"hidden"},ef=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=Ms(),b=k.useRef(),y=ql(),v=k.useRef(null),S=os(v,gd(o),t),x=Pc(v,c),w=Pc(v,(e,t)=>{Rc(e);const{duration:n,delay:r,easing:o}=Oc({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=Pc(v,s),E=Pc(v,p),L=Pc(v,e=>{const{duration:t,delay:n,easing:r}=Oc({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=Zp(.75),u&&u(e)}),R=Pc(v,e=>{e.style.transition="",d&&d(e)});return mr.jsx(ws,{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=Tc(e,a,Qp,Yp,f,o.props.style);return k.cloneElement(o,{style:r,ref:S,...n})}})});function tf(e){return Ho("MuiIcon",e)}ef&&(ef.muiSupportAuto=!0),Uo("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const nf=Nl("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"inherit"!==n.color&&t[`color${jr(n.color)}`],t[`fontSize${jr(n.fontSize)}`]]}})(Vl(({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(Us()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),rf=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root","inherit"!==t&&`color${jr(t)}`,`fontSize${jr(n)}`]},tf,r)})(c);return mr.jsx(nf,{as:a,className:Bo(r,"notranslate",u.root,o),ownerState:c,"aria-hidden":!0,ref:t,...s})});function of(e){return Ho("MuiInputAdornment",e)}rf.muiName="Icon";const af=Uo("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var lf;const sf=Nl("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${jr(n.position)}`],!0===n.disablePointerEvents&&t.disablePointerEvents,t[n.variant]]}})(Vl(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${af.positionStart}&:not(.${af.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),cf=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiInputAdornment"}),{children:r,className:o,component:i="div",disablePointerEvents:a=!1,disableTypography:l=!1,position:s,variant:c,...u}=n,d=Id()||{};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 Ki({root:["root",n&&"disablePointerEvents",o&&`position${jr(o)}`,a,r&&"hiddenLabel",i&&`size${jr(i)}`]},of,t)})(f);return mr.jsx(Od.Provider,{value:null,children:mr.jsx(sf,{as:i,ownerState:f,className:Bo(h.root,o),ref:t,...u,children:"string"!=typeof r||l?mr.jsxs(k.Fragment,{children:["start"===s?lf||(lf=mr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):null,r]}):mr.jsx(Zc,{color:"textSecondary",children:r})})})}),uf=k.createContext({});function df(e){return Ho("MuiList",e)}Uo("MuiList",["root","padding","dense","subheader"]);const pf=Nl("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}}]}),ff=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},df,t)})(d);return mr.jsx(uf.Provider,{value:u,children:mr.jsxs(pf,{as:i,className:Bo(p.root,o),ref:t,ownerState:d,...c,children:[s,r]})})});function hf(e){return Ho("MuiListItem",e)}Uo("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const mf=Uo("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function gf(e){return Ho("MuiListItemSecondaryAction",e)}Uo("MuiListItemSecondaryAction",["root","disableGutters"]);const bf=Nl("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}}]}),yf=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=k.useContext(uf),a={...n,disableGutters:i.disableGutters},l=(e=>{const{disableGutters:t,classes:n}=e;return Ki({root:["root",t&&"disableGutters"]},gf,n)})(a);return mr.jsx(bf,{className:Bo(l.root,r),ownerState:a,ref:t,...o})});yf.muiName="ListItemSecondaryAction";const vf=Nl("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]}})(Vl(({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:{[`& > .${mf.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}}]}))),Sf=Nl("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),xf=k.forwardRef(function(e,t){const n=Gl({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(uf),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&&Xi(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 Ki({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",l&&"secondaryAction"],container:["container"],secondaryAction:["secondaryAction"]},hf,n)})(L),P=os(w,t),T={slots:y,slotProps:b},[O,I]=jc("secondaryAction",{elementType:yf,externalForwardedProps:T,ownerState:L,className:R.secondaryAction}),M=y.root||l.Root||vf,q=b.root||s.root||{},D={className:Bo(R.root,q.className,i),...v};let N=a||"li";return E?(N=D.component||a?N:"div","li"===c&&("li"===N?N="div":"li"===D.component&&(D.component="div")),mr.jsx(uf.Provider,{value:x,children:mr.jsxs(Sf,{as:c,className:Bo(R.container,u),ref:P,ownerState:L,...d,children:[mr.jsx(M,{...q,...!Ic(M)&&{as:N,ownerState:{...L,...q.ownerState}},...D,children:C}),C.pop()]})})):mr.jsx(uf.Provider,{value:x,children:mr.jsxs(M,{...q,as:N,ref:P,...!Ic(M)&&{ownerState:{...L,...q.ownerState}},...D,children:[C,g&&mr.jsx(O,{...I,children:g})]})})});function wf(e){return Ho("MuiListItemIcon",e)}const kf=Uo("MuiListItemIcon",["root","alignItemsFlexStart"]),Cf=Nl("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"flex-start"===n.alignItems&&t.alignItemsFlexStart]}})(Vl(({theme:e})=>({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex",variants:[{props:{alignItems:"flex-start"},style:{marginTop:8}}]}))),Ef=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiListItemIcon"}),{className:r,...o}=n,i=k.useContext(uf),a={...n,alignItems:i.alignItems},l=(e=>{const{alignItems:t,classes:n}=e;return Ki({root:["root","flex-start"===t&&"alignItemsFlexStart"]},wf,n)})(a);return mr.jsx(Cf,{className:Bo(l.root,r),ownerState:a,ref:t,...o})}),Lf=Uo("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function Rf(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Pf(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Tf(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 Of(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")&&Tf(l,i)&&!t)return l.focus(),!0;l=o(e,l,n)}return!1}const If=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});ii(()=>{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=`${wp(es(e))}px`;p.current.style["rtl"===t?"paddingLeft":"paddingRight"]=n,p.current.style.width=`calc(100% + ${n})`}return p.current}}),[]);const h=os(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 mr.jsx(ff,{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=Md(Yl(t));if("ArrowDown"===n)e.preventDefault(),Of(t,r,s,l,Rf);else if("ArrowUp"===n)e.preventDefault(),Of(t,r,s,l,Pf);else if("Home"===n)e.preventDefault(),Of(t,null,s,l,Rf);else if("End"===n)e.preventDefault(),Of(t,null,s,l,Pf);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&&Tf(r,o);o.previousKeyMatched&&(s||Of(t,r,!1,l,Rf,o))?e.preventDefault():o.previousKeyMatched=!1}c&&c(e)},tabIndex:r?0:-1,...d,children:g})});function Mf(e){return Ho("MuiPopover",e)}function qf(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.height/2:"bottom"===t&&(n=e.height),n}function Df(e,t){let n=0;return"number"==typeof t?n=t:"center"===t?n=e.width/2:"right"===t&&(n=e.width),n}function Nf(e){return[e.horizontal,e.vertical].map(e=>"number"==typeof e?`${e}px`:e).join(" ")}function _f(e){return"function"==typeof e?e():e}Uo("MuiPopover",["root","paper"]);const jf=Nl(zp,{name:"MuiPopover",slot:"Root"})({}),Af=Nl($c,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),zf=k.forwardRef(function(e,t){const n=Gl({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 Ki({root:["root"],paper:["paper"]},Mf,t)})(E),R=k.useCallback(()=>{if("anchorPosition"===l)return a;const e=_f(o),t=(e&&1===e.nodeType?e:Yl(C.current).body).getBoundingClientRect();return{top:t.top+qf(t,i.vertical),left:t.left+Df(t,i.horizontal)}},[o,i.horizontal,i.vertical,a,l]),P=k.useCallback(e=>({vertical:qf(e,b.vertical),horizontal:Df(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:Nf(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=es(_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:Nf(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=Ql(()=>{M()}),t=es(_f(o));return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[o,f,M]);let q=v;const D={slots:{transition:y,...m},slotProps:{transition:S,paper:h,...g}},[N,_]=jc("transition",{elementType:ef,externalForwardedProps:D,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||(q=void 0);const j=u||(o?Yl(_f(o)).body:void 0),[A,{slots:z,slotProps:$,...F}]=jc("root",{ref:t,elementType:jf,externalForwardedProps:{...D,...w},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:m.backdrop},slotProps:{backdrop:is("function"==typeof g.backdrop?g.backdrop(E):g.backdrop,{invisible:!0})},container:j,open:f},ownerState:E,className:Bo(L.root,c)}),[B,W]=jc("paper",{ref:C,className:L.paper,elementType:Af,externalForwardedProps:D,shouldForwardComponentProp:!0,additionalProps:{elevation:d,style:O?void 0:{opacity:0}},ownerState:E});return mr.jsx(A,{...F,...!Ic(A)&&{slots:z,slotProps:$,disableScrollLock:x},children:mr.jsx(N,{..._,timeout:q,children:mr.jsx(B,{...W,children:s})})})});function $f(e){return Ho("MuiMenuItem",e)}const Ff=Uo("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Bf=k.createContext(null);var Wf;Bf.Provider;const Hf=Nl("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:Dl})({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%"}),Uf=Nl("legend",{name:"MuiNotchedOutlined",shouldForwardProp:Dl})(Vl(({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 Vf=Nl(Fd,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiOutlinedInput",slot:"Root",overridesResolver:zd})(Vl(({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 .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Vd.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${Vd.focused} .${Vd.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Us()).map(([t])=>({props:{color:t},style:{[`&.${Vd.focused} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Vd.error} .${Vd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Vd.disabled} .${Vd.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"}}]}})),Gf=Nl(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 mr.jsx(Hf,{"aria-hidden":!0,className:r,ownerState:s,...a,children:mr.jsx(Uf,{ownerState:s,children:l?mr.jsx("span",{children:o}):Wf||(Wf=mr.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})},{name:"MuiOutlinedInput",slot:"NotchedOutline"})(Vl(({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}})),Kf=Nl(Bd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:$d})(Vl(({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}}]}))),Xf=k.forwardRef(function(e,t){const n=Gl({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=Ki({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ud,t);return{...t,...n}})(n),h=Id(),m=Td({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??Vf,y=c.input??r.Input??Kf,[v,S]=jc("notchedOutline",{elementType:Gf,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:g,externalForwardedProps:{slots:c,slotProps:u},additionalProps:{label:null!=a&&""!==a&&m.required?mr.jsxs(k.Fragment,{children:[a," ","*"]}):a}});return mr.jsx(Hd,{slots:{root:b,input:y},slotProps:u,renderSuffix:e=>mr.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}})});Xf.muiName="Input";const Jf=Nl(Ws,{shouldForwardProp:e=>Dl(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]}})(Vl(({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"}},[`&.${Ff.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ff.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${Ff.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)}},[`&.${Ff.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ff.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Fp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Fp.inset}`]:{marginLeft:52},[`& .${Lf.root}`]:{marginTop:0,marginBottom:0},[`& .${Lf.inset}`]:{paddingLeft:36},[`& .${kf.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,[`& .${kf.root} svg`]:{fontSize:"1.25rem"}}}]}))),Zf=k.forwardRef(function(e,t){const n=Gl({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(Bf),h=k.useContext(uf),m=k.useMemo(()=>({dense:i||h.dense||!1,disableGutters:l}),[h.dense,i,l]),g=k.useRef(null);ii(()=>{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=Ki({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$f,a);return{...a,...l}})(n),v=os(g,t),{root:S,...x}=y;let w;return n.disabled||(w=void 0!==u?u:-1),mr.jsx(uf.Provider,{value:m,children:mr.jsx(Jf,{ref:v,role:c,tabIndex:w,component:o,focusVisibleClassName:Bo(y.focusVisible,s),className:Bo(y.root,d),...p,ownerState:b,classes:x})})});var Qf=Zl(mr.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"})),Yf=Zl(mr.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 eh=Nl("span",{name:"MuiRadioButtonIcon",shouldForwardProp:Dl})({position:"relative",display:"flex"}),th=Nl(Qf,{name:"MuiRadioButtonIcon"})({transform:"scale(1)"}),nh=Nl(Yf,{name:"MuiRadioButtonIcon"})(Vl(({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 rh(e){const{checked:t=!1,classes:n={},fontSize:r}=e,o={...e,checked:t};return mr.jsxs(eh,{className:n.root,ownerState:o,children:[mr.jsx(th,{fontSize:r,className:n.background,ownerState:o}),mr.jsx(nh,{fontSize:r,className:n.dot,ownerState:o})]})}const oh=k.createContext(void 0);function ih(e){return Ho("MuiRadio",e)}const ah=Uo("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),lh=Nl(dp,{shouldForwardProp:e=>Dl(e)||"classes"===e,name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,"medium"!==n.size&&t[`size${jr(n.size)}`],t[`color${jr(n.color)}`]]}})(Vl(({theme:e})=>({color:(e.vars||e).palette.text.secondary,[`&.${ah.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(Us()).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(Us()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${ah.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]})));const sh=mr.jsx(rh,{checked:!0}),ch=mr.jsx(rh,{}),uh=k.forwardRef(function(e,t){const n=Gl({props:e,name:"MuiRadio"}),{checked:r,checkedIcon:o=sh,color:i="primary",icon:a=ch,name:l,onChange:s,size:c="medium",className:u,disabled:d,disableRipple:p=!1,slots:f={},slotProps:h={},inputProps:m,...g}=n,b=Id();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${jr(n)}`,"medium"!==r&&`size${jr(r)}`]};return{...t,...Ki(o,ih,t)}})(v),x=k.useContext(oh);let w=r;const C=Hl(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]=jc("root",{ref:t,elementType:lh,className:Bo(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 mr.jsx(R,{...P,classes:S})});function dh(e){return Ho("MuiTooltip",e)}const ph=Uo("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const fh=Nl(Cd,{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]}})(Vl(({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"] .${ph.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ph.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ph.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ph.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ph.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${ph.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ph.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${ph.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),hh=Nl("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${jr(n.placement.split("-")[0])}`]]}})(Vl(({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,[`.${ph.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ph.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ph.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:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${ph.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ph.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ph.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${ph.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]};var t})),mh=Nl("span",{name:"MuiTooltip",slot:"Arrow"})(Vl(({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 gh=!1;const bh=new Is;let yh={x:0,y:0};function vh(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const Sh=k.forwardRef(function(e,t){const n=Gl({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,q=k.isValidElement(o)?o:mr.jsx("span",{children:o}),D=ql(),N=Ei(),[_,j]=k.useState(),[A,z]=k.useState(null),$=k.useRef(!1),F=d||g,B=Ms(),W=Ms(),H=Ms(),U=Ms(),[V,G]=ns({controlled:w,default:!1,name:"Tooltip",state:"open"});let K=V;const X=Ii(b),J=k.useRef(),Z=rs(()=>{void 0!==J.current&&(document.body.style.WebkitUserSelect=J.current,J.current=void 0),U.clear()});k.useEffect(()=>Z,[Z]);const Q=e=>{bh.clear(),gh=!0,G(!0),x&&!K&&x(e)},Y=rs(e=>{bh.start(800+y,()=>{gh=!1}),G(!1),S&&K&&S(e),B.start(D.transitions.duration.shortest,()=>{$.current=!1})}),ee=e=>{$.current&&"touchstart"!==e.type||(_&&_.removeAttribute("title"),W.clear(),H.clear(),f||gh&&h?W.start(gh?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??_;if(!t||!as(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=>{_||j(e.currentTarget),as(e.target)&&(ne(!0),ee(e))},ie=e=>{$.current=!0;const t=q.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=>{q.props.onTouchEnd&&q.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=os(gd(q),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,...q.props,className:Bo(M.className,q.props.className),onTouchStart:ie,ref:se,...g?{onMouseMove:e=>{const t=q.props;t.onMouseMove&&t.onMouseMove(e),yh={x:e.clientX,y:e.clientY},ce.current&&ce.current.update()}}:{}},fe={};p||(pe.onTouchStart=ae,pe.onTouchEnd=le),u||(pe.onMouseOver=vh(ee,pe.onMouseOver),pe.onMouseLeave=vh(te,pe.onMouseLeave),F||(fe.onMouseOver=ee,fe.onMouseLeave=te)),c||(pe.onFocus=vh(oe,pe.onFocus),pe.onBlur=vh(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 Ki({popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${jr(i.split("-")[0])}`],arrow:["arrow"]},dh,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]=jc("popper",{elementType:fh,externalForwardedProps:ve,ownerState:he,className:Bo(be.popper,L?.className)}),[we,ke]=jc("transition",{elementType:ef,externalForwardedProps:ve,ownerState:he}),[Ce,Ee]=jc("tooltip",{elementType:hh,className:be.tooltip,externalForwardedProps:ve,ownerState:he}),[Le,Re]=jc("arrow",{elementType:mh,className:be.arrow,externalForwardedProps:ve,ownerState:he,ref:z});return mr.jsxs(k.Fragment,{children:[k.cloneElement(q,pe),mr.jsx(Se,{as:E??Cd,placement:C,anchorEl:g?{getBoundingClientRect:()=>({top:yh.y,left:yh.x,right:yh.x,bottom:yh.y,width:0,height:0})}:_,popperRef:ce,open:!!_&&K,id:X,transition:!0,...fe,...xe,popperOptions:ge,children:({TransitionProps:e})=>mr.jsx(we,{timeout:D.transitions.duration.shorter,...e,...ke,children:mr.jsxs(Ce,{...Ee,children:[T,r?mr.jsx(Le,{...Re}):null]})})})]})});function xh(){const{useModelStore:e}=k.useContext(xc).modelStore;return e()}function wh(e,t,...n){const r=t?`${t.id}/${JSON.stringify(e)}`:null,[o]=xh(),[i]=function(){const{useRpcRequestSessionModelStore:e}=k.useContext(xc).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 kh={qInfo:{qType:"current-selections"},qSelectionObjectDef:{qStateName:"$"},alternateStates:[]};function Ch(e){return wh(kh,e)}const Eh=(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 Lh(e,t){const n=e?`${e.id}`:null,[r]=function(){const{useRpcResultStore:e}=k.useContext(xc).modelStore;return e()}(),[o,i]=k.useReducer(Eh,n?r.get(n):null),[a]=function(){const{useModelChangedStore:e}=k.useContext(xc).modelStore;return e()}(),[l]=function(){const{useRpcRequestStore:e}=k.useContext(xc).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 Rh(e){const[t,{validating:n,canCancel:r,canRetry:o},i]=Lh(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 Ph(e){return Lh(e,"getAppLayout")}function Th(){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 Oh="singlepublic-pinnedItems",Ih=e=>{var t;const[n]=(e=>{const[t,n]=k.useState(null),[r,o]=k.useState(null),[i]=xh();return k.useEffect(()=>{let t=!0,r=()=>{};if(e)return async function(){try{const a=`${e.id}-${Oh}`;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,Oh),!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]=Lh(n,"getLayout");return[null!==(t=null==r?void 0:r.pinnedItems)&&void 0!==t?t:[]]},Mh=(e,t,n)=>{const[r,o]=k.useState(void 0),[i,a]=k.useState(void 0),[l]=xh();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]},qh={qInfo:{qId:"FieldList",qType:"FieldList"},qFieldListDef:{qShowSystem:!1,qShowHidden:!1,qShowSrcTables:!0,qShowSemantic:!0,qShowDerivedFields:!0}},Dh={qInfo:{qId:"DimensionList",qType:"DimensionList"},qDimensionListDef:{qType:"dimension",qData:{title:"/qMetaDef/title",tags:"/qMetaDef/tags",grouping:"/qDim/qGrouping",info:"/qDimInfos",labelExpression:"/qDim/qLabelExpression"}}},Nh="qField",_h="id",jh=(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},Ah=(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=>Nh in n&&n[Nh]?e.some(e=>e.qName===n[Nh]):!(!(_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[Nh],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 zh(e){return"large"===e?"20px":"small"===e?"12px":"16px"}function $h({size:e,style:t={},viewBox:n="0 0 16 16",shapes:r=[]}){const o=u({fontSize:zh(e),display:"inline-block",fontStyle:"normal",lineHeight:"0",textAlign:"center",textTransform:"none",verticalAlign:"-.125em",textRendering:"optimizeLegibility",WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale"},t);return mr.jsx("i",{style:o,children:mr.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)=>mr.jsx(e,u({},t),n))})})}var Fh=e=>$h((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 Bh=e=>$h((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 Wh=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 Hh=e=>$h(Wh(e));var Uh=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}}(),Vh=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},Gh=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=Vh(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},Vh(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),Uh(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 Kh=["S","XS"],Xh=e=>e.reduce((e,t)=>e.concat(t));function Jh(e){if(!e||!e.length)return[];const t=e.map(e=>{const t=e.qMatrix.map(e=>{const[t]=e;return n=t.qState,!!Kh.includes(n)&&t.qElemNumber;var n});return t.filter(e=>!1!==e)});return Xh(t)}async function Zh({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 Qh="RowColumn",Yh={row:`${Qh}-row`,rowBorderBottom:`${Qh}-rowBorderBottom`,column:`${Qh}-column`,fieldRoot:`${Qh}-fieldRoot`,cell:`${Qh}-cell`,labelText:`${Qh}-labelText`,labelDense:`${Qh}-labelDense`,highlighted:`${Qh}-highlighted`,checkboxLabel:`${Qh}-checkboxLabel`,icon:`${Qh}-icon`,S:`${Qh}-S`,XS:`${Qh}-XS`,A:`${Qh}-A`,X:`${Qh}-X`,frequencyCount:`${Qh}-frequencyCount`,barContainer:`${Qh}-barContainer`,bar:`${Qh}-bar`,barSelected:`${Qh}-barSelected`,barWithCheckbox:`${Qh}-barWithCheckbox`,barSelectedWithCheckbox:`${Qh}-barSelectedWithCheckbox`,excludedTextWithCheckbox:`${Qh}-excludedTextWithCheckbox`},em=`.${Yh.fieldRoot}`,tm=e=>!(null!=e&&e.metaKey||null!=e&&e.ctrlKey);function nm({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(),Zh({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 Xh(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&&tm(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&&tm(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(em))||void 0===n?void 0:n.getAttribute("data-n")),i=Number(null===(r=t.touches[1].target)||void 0===r||null===(r=r.closest(em))||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&&tm(null==o?void 0:o.nativeEvent);a||e.clearItemStates(!0);const l=[];return e.updateItems(n,r,l),e.setSelectableValuesUpdating(),Zh({selections:t,elemNumbers:r?l:n,isSingleSelect:e.isSingleSelect,toggle:a})}}}const rm=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 om=e=>$h(rm(e));const im=e=>e?"X"===e.qState||"XS"===e.qState||"XL"===e.qState:null,am=({cell:e,checkboxes:t})=>((e=>e?"A"===e.qState:null)(e)||im(e))&&t;const lm=({column:e,histogram:t,cell:n,showGray:r})=>{if(!n)return[];const o=[e?Yh.column:Yh.row];t||o.push(Yh.rowBorderBottom);const i=function({cell:e,showGray:t}){let n;switch(e.qState){case"XS":n=t?Yh.XS:Yh.S;break;case"S":case"L":n=Yh.S;break;case"A":n=!!t&&Yh.A;break;case"X":case"XL":n=!!t&&Yh.X;break;default:n=!1}return n}({cell:n,showGray:r});return i&&o.push(i),o},sm=e=>e.filter(e=>!!e).join(" ").trim(),cm=e=>e||"-",um=["backgroundColor"],dm=({sizes:e,frequencyMode:t,isGridMode:n,freqHitsValue:r})=>{if("P"===t)return`${e.freqMinWidth}px`;return n&&!r?"max-content":"25%"},pm=({sizes:e,frequencyMode:t,isGridMode:n})=>n?"max-content":"P"===t?e.freqMinWidth:e.freqMaxWidth,fm=({checkboxes:e,styles:t,selectionState:n})=>{if(e)return"selected"===n?{[`& .${Yh.labelText}`]:{color:t.selections.selected}}:{};const r=t.selections,o=r[n],i=r[`${n}Contrast`];return{background:o,color:i,"& $cell":{paddingRight:0},[`& .${Yh.labelText}`]:{color:i},[`& .${Yh.icon}`]:{color:i}}},hm={width:"100%",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},mm=Nl("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,um),m=fm({styles:c,checkboxes:t,selectionState:"selected"}),g=fm({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"}},[`& .${Yh.row}`]:u({flexWrap:"nowrap"},c.content),[`& .${Yh.rowBorderBottom}`]:{borderBottom:r?"none":`1px solid ${e.palette.divider}`,borderLeft:r?`1px solid ${e.palette.divider}`:"none"},[`& .${Yh.column}`]:u({flexWrap:"nowrap",borderRight:`1px solid ${e.palette.divider}`},c.content),[`& .${Yh.cell}`]:{zIndex:2,display:"flex",alignItems:"center",flexGrow:1,minWidth:t?"52px":"26px",flexBasis:t?"auto":"max-content",paddingLeft:"9px",paddingRight:0},[`& .${Yh.labelText}`]:u(u({lineHeight:"24px",userSelect:"none",paddingRight:"1px"},hm),h),[`& .${Yh.labelDense}`]:{lineHeight:"18px"},[`& .${Yh.highlighted}`]:{backgroundColor:"#FFC72A"},[`& .${Yh.checkboxLabel}`]:{margin:0,width:"100%",height:"100%",overflow:"hidden","& > span:nth-of-type(1)":{paddingRight:"8px"},"& > span:nth-of-type(2)":u(u({},hm),{},{display:"flex",alignItems:"center",paddingLeft:0,paddingRight:"2px"})},[`& .${Yh.icon}`]:{display:"flex",justifyContent:"center",width:24,minWidth:24,maxWidth:24,color:h.color},[`& .${Yh.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}),[`& .${Yh.XS}`]:u(u({},fm({styles:c,checkboxes:t,selectionState:"selectedExcluded"})),{},{border:n?"none":void 0}),[`& .${Yh.A}`]:u(u({},fm({styles:c,checkboxes:t,selectionState:"alternative"})),{},{border:n?"none":void 0}),[`& .${Yh.X}`]:u(u({},g),{},{border:n?"none":void 0}),[`& .${Yh.X}, & .${Yh.XS}`]:{border:n?"none":void 0,[`& .${Yh.barSelected} .bar-filled`]:u({},b)},[`& .${Yh.frequencyCount}`]:u(u({zIndex:3,justifyContent:"flex-end"},hm),{},{flex:`0 0 ${dm({sizes:a,frequencyMode:l,isGridMode:n,freqHitsValue:s})}`,minWidth:!n&&"P"!==l&&s?a.freqMinWidth:"max-content",maxWidth:pm({sizes:a,frequencyMode:l,isGridMode:n}),textAlign:"rtl"===i?"left":"right",paddingLeft:"rtl"!==i?"8px":0}),[`&.${Yh.barContainer}`]:{height:"100%",display:"flex",alignItems:"center"},[`& .${Yh.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)},[`& .${Yh.barSelected}`]:{"& .bar-filled":u({},y)},[`& .${Yh.barWithCheckbox}`]:{left:"rtl"===i?4:29,width:"calc(100% - 33px)"},[`& .${Yh.barSelectedWithCheckbox}`]:{"& .bar-filled":u(u({},y),{},{backgroundColor:c.selections.selected||"#BFE5D0",borderColor:c.selections.selected})},[`& .${Yh.excludedTextWithCheckbox}`]:{color:c.content.color,fontStyle:"italic"}}});var gm=C.memo(mm);const bm="ListBoxCheckbox",ym={cbIcon:`${bm}-cbIcon`,cbIconChecked:`${bm}-cbIconChecked`,cbIconExcluded:`${bm}-cbIconExcluded`,cbIconAlternative:`${bm}-cbIconAlternative`,checkbox:`${bm}-checkbox`,dense:`${bm}-dense`},vm=Nl(xp,{shouldForwardProp:e=>"styles"!==e})(({styles:e})=>({[`& .${ym.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"},[`& .${ym.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:'""'}},[`& .${ym.cbIconExcluded}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.excluded},[`& .${ym.cbIconAlternative}`]:{borderRadius:2,width:12,height:12,backgroundColor:e.selections.alternative},[`&.${ym.checkbox}`]:{margin:0,"&:hover":{backgroundColor:"inherit !important"}},[`&.${ym.dense}`]:{padding:"4px 8px"}})),Sm=(e,t=!0,n=!1)=>mr.jsx("span",{className:e.cbIcon,children:n&&mr.jsx("span",{className:t&&n?e.cbIconExcluded:""})});function xm({onChange:e,checked:t,label:n,dense:r,excluded:o,styles:i,showGray:a=!0,dataN:l}){return mr.jsx(vm,{edge:"start",onChange:e,checked:t,disableRipple:!0,className:[ym.checkbox,r&&ym.dense].filter(Boolean).join(" "),inputProps:{"aria-labelledby":n,"data-n":l},name:n,icon:Sm(ym,a,o),checkedIcon:mr.jsx("span",{className:ym.cbIconChecked}),styles:i})}const wm={radioButton:"ListBoxRadioButton-radioButton"},km=Nl(uh,{shouldForwardProp:e=>!["dense","styles"].includes(e)})(({checked:e,styles:t,dense:n})=>({[`&.${wm.radioButton}`]:{right:"5px",color:e?t.selections.selected:t.content.color,padding:n?"0px 0px 0px 12px":void 0,backgroundColor:"transparent"}}));function Cm({onChange:e,checked:t,label:n,dense:r,dataN:o,styles:i}){return mr.jsx(km,{checked:t,onChange:e,value:n,name:n,className:wm.radioButton,inputProps:{"data-n":o},disableRipple:!0,size:r?"small":"medium",dense:r,styles:i})}function Em({label:e,dense:t,showGray:n=!0,checkboxes:r,cell:o,valueTextAlign:i}){return mr.jsx(Zc,{component:"span",variant:"body2",className:sm([Yh.labelText,t&&Yh.labelDense,n&&am({cell:o,checkboxes:r})&&Yh.excludedTextWithCheckbox]),align:i,dir:"auto",children:mr.jsx("span",{children:e})})}function Lm({label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}){return"string"==typeof e?mr.jsx(Em,{label:e,color:t,dense:n,showGray:r,checkboxes:o,cell:i,valueTextAlign:a}):e}function Rm({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=mr.jsx(xm,{onChange:e,label:t,checked:r,dense:o,excluded:im(i),isGridCol:a,showGray:l,dataN:n,styles:d}),f=mr.jsx(Cm,{onChange:e,label:t,checked:r,dense:o,dataN:n,styles:d});return mr.jsx(Xp,{control:s?f:p,className:Yh.checkboxLabel,label:mr.jsx(Lm,{label:t,dense:o,showGray:l,checkboxes:c,cell:i,valueTextAlign:u})},n)}function Pm({labels:e,dense:t,showGray:n,checkboxes:r}){const o=e.map(([e,t],n)=>mr.jsx("span",{id:n,className:t?Yh.highlighted:"",children:e}));return mr.jsx(Em,{label:o,dense:t,showGray:n,checkboxes:r})}function Tm({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=mr.jsx(Pm,{labels:t,dense:r,showGray:o,checkboxes:n});return n?mr.jsx(Rm,{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 Om=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?mr.jsx(Rm,{onChange:e,label:t,qElemNumber:n,isSelected:r,dense:o,cell:i,isGridCol:a,showGray:l,isSingleSelect:s,checkboxes:c,valueTextAlign:u,styles:d}):mr.jsx(Em,{label:t,dense:o,showGray:!0,checkboxes:c,cell:i,valueTextAlign:u})});const Im={top:"flex-start",center:"center",middle:"center",bottom:"flex-end"},Mm={left:"flex-start",center:"center",right:"flex-end"},qm=e=>{var t,n;const{vertical:r,horizontal:o}=(e=>{const t=e||"top-center";if(t.includes("-")){const[e,n]=t.split("-");return{vertical:e,horizontal:n}}const n=t.match(/^(top|middle|center|bottom)(left|center|right)$/i);return n?{vertical:n[1].toLowerCase(),horizontal:n[2].toLowerCase()}:{vertical:"top",horizontal:"center"}})(e);return{vertical:null!==(t=Im[r])&&void 0!==t?t:"flex-start",horizontal:null!==(n=Mm[o])&&void 0!==n?n:"center"}},Dm=e=>"fitHeight"===e?"auto":"100%",Nm=e=>{let t="center",n="center";return"flex-start"===(null==e?void 0:e.vertical)?t="top":"flex-end"===(null==e?void 0:e.vertical)&&(t="bottom"),"flex-start"===(null==e?void 0:e.horizontal)?n="left":"flex-end"===(null==e?void 0:e.horizontal)&&(n="right"),`${n} ${t}`},_m=e=>{switch(e){case"alwaysFit":case"fitHeight":return"contain";case"stretch":return"fill";case"alwaysFill":return"cover";default:return}};function jm({representation:e,src:t,label:n,title:r,subtitle:o,cellBgColor:i,borderColor:a,placeholderBackground:l,textStyles:s,selected:c=!1,selectionColor:u="#009845",opacity:d=1}){var p,f,h,m,g,b,y,v,S,x,w;const{imageSize:C="alwaysFit",imagePosition:E,titlePosition:L="top-center",textOverlay:R=!0,titleBackground:P=!0,cornerRadius:T=4,borderWidth:O=0,borderColor:I}=e,M="fitHeight"===C,q="fitWidth"===C,D=qm(E),N="200px",_=(e=>{if("string"!=typeof e||!e.trim())return!1;try{const t=new URL(e,window.location.origin);return"https:"===t.protocol||"http:"===t.protocol||"data:"===t.protocol&&/^data:image\//i.test(e.trim())}catch(e){return!1}})(t)?t:null,[j,A]=k.useState(null),z=null!==_&&_===j,$=`${T}px`,F=null!==(p=null!=a?a:"string"==typeof I?I:null==I?void 0:I.color)&&void 0!==p?p:"#d9d9d9";let B;B=c?`2px solid ${u}`:O>0?`${O}px solid ${F}`:"2px solid transparent";const W=_&&!z?mr.jsx("img",{src:_,alt:n,onError:()=>A(_),style:{width:Dm(C),height:q?"auto":"100%",maxHeight:M&&!q?N:void 0,objectFit:_m(C),objectPosition:Nm(D),overflow:"hidden"}}):null,H=qm(L),U=!1!==R&&(r||o),V=null!=s?s:{},G=Boolean(_),K=G&&!P&&null!==(f=V.shadowOnImage)&&void 0!==f?f:"none",X=U?mr.jsx("div",{"data-key":"image-title-overlay",style:{position:"absolute",inset:0,display:"flex",justifyContent:H.horizontal,alignItems:H.vertical,padding:"4px",pointerEvents:"none",boxSizing:"border-box"},children:mr.jsxs("div",{style:{maxWidth:"100%",padding:P&&G?"2px 6px":0,borderRadius:P&&G?"3px":0,backgroundColor:P&&G&&null!==(h=V.backdropColor)&&void 0!==h?h:"transparent",overflow:"hidden",textAlign:"center"===H.horizontal?"center":void 0},children:[r&&mr.jsx("div",{"data-key":"image-title",style:{fontFamily:V.fontFamily,fontSize:null!==(m=V.fontSize)&&void 0!==m?m:"13px",fontWeight:null!==(g=V.fontWeight)&&void 0!==g?g:"bold",fontStyle:null!==(b=V.fontStyle)&&void 0!==b?b:"normal",textDecoration:null!==(y=V.textDecoration)&&void 0!==y?y:"initial",color:null!==(v=V.color)&&void 0!==v?v:"#333333",textShadow:K,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:r}),o&&mr.jsx("div",{"data-key":"image-subtitle",style:{fontFamily:V.fontFamily,fontSize:null!==(S=V.subtitleFontSize)&&void 0!==S?S:"11px",fontStyle:null!==(x=V.fontStyle)&&void 0!==x?x:"normal",color:null!==(w=V.color)&&void 0!==w?w:"#333333",opacity:.8,textShadow:K,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:o})]})}):null;return mr.jsxs("div",{"data-key":"image-horizontal-container",style:{position:"relative",width:"100%",height:M?N:"100%",overflow:"hidden",display:"flex",justifyContent:M?null==D?void 0:D.horizontal:void 0,backgroundColor:i||l||void 0,borderRadius:$,border:B,opacity:d,boxSizing:"border-box"},children:[W,X]})}function Am({qFrequency:e,histogram:t,checkboxes:n,isSelected:r,frequencyMax:o}){if(!(e&&t&&"-"!==cm(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 mr.jsx(lp,{className:sm([Yh.bar,n&&Yh.barWithCheckbox,r&&(n?Yh.barSelectedWithCheckbox:Yh.barSelected)]),children:mr.jsx(lp,{className:"bar-filled",width:i})})}function zm({cell:e,checkboxes:t,dense:n,showGray:r}){const o=cm(null==e?void 0:e.qFrequency);return mr.jsx(Jp,{style:{display:"flex",alignItems:"center"},className:Yh.frequencyCount,"aria-label":o,title:o,children:mr.jsx(Zc,{noWrap:!0,color:"inherit",variant:"body2",className:sm([n&&Yh.labelDense,Yh.labelText,r&&am({cell:e,checkboxes:t})&&Yh.excludedTextWithCheckbox]),children:o})})}function $m({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:r,isImage:o}){if("singleColumn"===e||o)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 Fm=Nl(Jp,{shouldForwardProp:e=>!["dataLayout","layoutOrder","itemPadding","cellPaddingRight","direction","fillHeight","isImage"].includes(e)})(({dataLayout:e,layoutOrder:t,itemPadding:n,cellPaddingRight:r,direction:o,fillHeight:i,isImage:a})=>{const l="padding"+("rtl"===o?"Left":"Right");let s;return!a&&r?s="8px":a&&(s=0),{[`&.${Yh.fieldRoot}`]:u(u({},$m({dataLayout:e,layoutOrder:t,itemPadding:n,fillHeight:i,isImage:a})),{},{[l]:s})}});const Bm=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===Bm.ARROW_UP||e===Bm.ARROW_DOWN||e===Bm.ARROW_LEFT||e===Bm.ARROW_RIGHT});function Wm(e){null==e||e.querySelectorAll(".last-focused").forEach(e=>{e.classList.remove("last-focused")})}function Hm(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 Um({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=Hm(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)}),Wm(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 Vm=e=>+e.getAttribute("data-n"),Gm=e=>{const t=null==e?void 0:e.querySelector(".search input");return null==t||t.focus(),t},Km=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(),Wm(e),o},Xm=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},Jm=(e,t)=>{if(!t.enabled)return;const{currentTarget:n,target:r}=e,o=r.classList.contains("listbox-container"),i=n.closest(".listbox-container"),a=Hm(i),l=1===(null==a?void 0:a.querySelectorAll(".listbox-container").length);if(o||l)t.blur(!0);else{Wm(i),n.classList.add("last-focused"),t.blur();const e=n.closest(".listbox-container");e.setAttribute("tabIndex",-1),null==e||e.focus()}};function Zm({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===Bm.ARROW_LEFT||e===Bm.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===Bm.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 Bm.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){Gm(e)||Xm(e)||(t?l.focusSelection():Jm(c,l));break}l.focusSelection()||Xm(e)||Gm(e)||(d.blur(),Jm(c,l));break}case Bm.SHIFT:g(!0);break;case Bm.SPACE:e([Vm(d)],!1,c);break;case Bm.ARROW_DOWN:case Bm.ARROW_RIGHT:u=h(f,d,!0),b&&u&&(m&&(e([Vm(d)],!0),g(!1)),e([Vm(u)],!0));break;case Bm.ARROW_UP:case Bm.ARROW_LEFT:u=h(f,d,!1),b&&u&&(m&&(e([Vm(d)],!0),g(!1)),e([Vm(u)],!0));break;case Bm.ENTER:if(r(),void 0===s)return;break;case Bm.ESCAPE:if(void 0===s)return void o();if(!s())return;o();break;case Bm.HOME:if(a.setFirst(!0),y){null==i||i("overflowStart");break}null==i||i("start");break;case Bm.END:if(a.setLast(!0),y){null==i||i("overflowEnd");break}null==i||i("end");break;case Bm.A:if(y||v){t();break}return;case Bm.F:if(y||v){n();break}return;default:return}u&&u.focus(),c.preventDefault(),c.stopPropagation()}}const Qm={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 Ym(e){var t;return((null==e||null===(t=e.qListObject)||void 0===t?void 0:t.qExpressions)||[]).reduce((e,t,n)=>(e[t.qLabel]=n+1,e),{})}function eg(e,t,n,r){const o=e[t]||(e[t]={});return null!=r&&""!==r&&(o[n]=r),o[n]}function tg({index:e,rowIndex:t,columnIndex:n,style:r,data:o}){var i,a,l,s;const{onChange:c,onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onTouchStart:m,onTouchEnd:g,pages:b,isLocked:y,column:v=!1,checkboxes:S=!1,textAlign:x,direction:w,layoutOptions:C={},freqIsAllowed:E,isSingleSelect:L,actions:R,frequencyMax:P="",histogram:T=!1,keyboard:O,showGray:I=!0,showTick:M=!0,columnCount:q=1,rowCount:D=1,dataOffset:N,deducedFrequencyMode:_,focusListItems:j,listCount:A,sizes:z,translator:$,showSearch:F,isModal:B,contentFontStyle:W,styles:H,fillHeight:U,representation:V,listExprIndex:G={},exprCache:K={}}=o,{dense:X=!1,dataLayout:J="singleColumn",layoutOrder:Z}=C,{itemPadding:Q,gridGap:Y=0}=z,ee="image"===(null==V?void 0:V.type),te=ee?"row":Z;let ne,re;const oe={max:null,currentIndex:null};if("number"==typeof t&&"number"==typeof n){"row"===te?(ne=t*q+n,oe.max=D,oe.currentIndex=t):(ne=n*D+t,oe.max=q,oe.currentIndex=n);const e=0;re=u(u({},r),{},{height:U?"100%":r.height,left:e+(0===n?r.left:Number(r.left)+n*e),top:0===t?r.top:Number(r.top)+t*e}),ee&&Y>0&&(re.width=Math.max(1,Number(r.width)-Y),re.height=Math.max(1,Number(r.height)-Y),re.left=Number(r.left)+Y/2,re.top=Number(r.top)+Y/2)}else ne=e,oe.max=A,oe.currentIndex=e,re=u({},r);ne+=N;const[ie,ae]=k.useState(null);k.useEffect(()=>{null!==ie&&(0===oe.currentIndex&&j.first&&(ie.focus(),j.setFirst(!1)),oe.currentIndex===oe.max-1&&j.last&&(ie.focus(),j.setLast(!1)))},[ie,j.first,j.last]);const le=k.useCallback(Zm(u(u({},R),{},{focusListItems:j,keyboard:O,isModal:B,rowCount:D,columnCount:q,rowIndex:t,columnIndex:n,layoutOrder:te})),[R,null==O?void 0:O.innerTabStops,D,q,t,n,te]),se=k.useMemo(()=>function({pages:e,cellIndex:t}){const n=null==e?void 0:e.find(e=>e.qArea.qTop<=t&&t<e.qArea.qTop+e.qArea.qHeight);if(n){const e=n.qArea;if(t>=e.qTop&&t<e.qTop+e.qHeight)return n.qMatrix[t-e.qTop]}}({pages:b,cellIndex:ne}),[b,ne]),ce=null==se?void 0:se[0],ue="S"===(null==ce?void 0:ce.qState)||"XS"===(null==ce?void 0:ce.qState)||"L"===(null==ce?void 0:ce.qState)||"XL"===(null==ce?void 0:ce.qState),de=k.useMemo(()=>lm({column:v,histogram:T,cell:ce,showGray:I}),[null==ce?void 0:ce.qState,T,X]),pe=k.useCallback(e=>{e.preventDefault()},[S]),fe=k.useMemo(()=>ce&&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:w,cell:ce,textAlign:x}),[w,ce,x]);if(!ce)return null;const he="grid"===J&&"column"===Z,me=null!==(i=null==ce?void 0:ce.qText)&&void 0!==i?i:"",ge=ee;let be,ye,ve,Se,xe,we,ke,Ce,Ee=1;if(ge){var Le,Re,Pe,Te;we=(null==H||null===(Le=H.selections)||void 0===Le?void 0:Le.selected)||"#009845","X"===ce.qState||"XS"===ce.qState||"XL"===ce.qState?Ee=.3:"A"===ce.qState&&(Ee=.4),ke="A"===ce.qState?"#e0e0e0":"#f0f0f0";const e=null!==(Re=null==ce?void 0:ce.qElemNumber)&&void 0!==Re?Re:me,t=t=>{var n;const r=G[t];if(null!=r)return eg(K,t,e,null==se||null===(n=se[r])||void 0===n?void 0:n.qText)},n=null!==(Pe=null==V?void 0:V.imageSetting)&&void 0!==Pe?Pe:"label",r=t("imageUrl"),o=t("imageLabel");ve=t("subtitle");if("expression"===(null!==(Te=null==V?void 0:V.cellBgColorMode)&&void 0!==Te?Te:"single"))Se=t("cellBgColor");else{const e=null==V?void 0:V.cellBgColor;Se="string"==typeof e?e:null==e?void 0:e.color}xe=t("tooltip")||me,"url"===n?(be=r||me,ye=me):(be=me,ye=o||me)}if(null!==(a=ce.qHighlightRanges)&&void 0!==a&&null!==(a=a.qRanges)&&void 0!==a&&a.length){const e=ce.qHighlightRanges.qRanges.sort((e,t)=>e.qCharPos-t.qCharPos)||[];Ce=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}(me,e)}const Oe={alignItems:"center",display:"flex",fontSize:"8px"},Ie="rtl"===w,Me={display:"flex",alignItems:"center",flexGrow:1,paddingLeft:ge?0:Ie?8:S?0:void 0,paddingRight:ge||S?0:Ie?8:0,justifyContent:fe,textAlign:fe},qe=0===e,De=ue&&y,Ne=!S&&ue&&!y,_e=!S&&M&&!ge,je=S||!M,Ae=function({translator:e,label:t,qState:n,isSelected:r,currentIndex:o,maxIndex:i,showSearch:a}){const l=Qm[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:$,label:ge?[me,ve,xe!==me?xe:null].filter(Boolean).join(", "):me,qState:ce.qState,currentIndex:oe.currentIndex,maxIndex:oe.max,showSearch:F}),ze=!Ie&&"right"===fe||Ie&&"left"===fe;return mr.jsx(gm,{className:Yh.barContainer,checkboxes:S,style:re,styles:H,isGridCol:he,isGridMode:"grid"===J,dense:X,direction:w,sizes:z,frequencyMode:_,freqHitsValue:ze,contentFontStyle:W,"data-testid":"listbox.item",children:mr.jsxs(Fm,{role:"row","aria-label":Ae,"aria-selected":ue,"aria-setsize":oe.max,"aria-rowindex":oe.currentIndex,ref:ae,container:!0,dataLayout:J,cellPaddingRight:je,layoutOrder:Z,itemPadding:Q,isImage:ge,gap:0,className:sm(["value",Yh.fieldRoot,...de]),onClick:d,onMouseDown:p,onMouseUp:f,onMouseEnter:h,onKeyDown:le,onTouchStart:m,onTouchEnd:g,onContextMenu:pe,tabIndex:qe&&O.innerTabStops?0:-1,"data-n":null==ce?void 0:ce.qElemNumber,direction:w,fillHeight:U,children:[(null==ce?void 0:ce.qFrequency)&&mr.jsx(Am,{qFrequency:null==ce?void 0:ce.qFrequency,histogram:T,checkboxes:S,isSelected:ue,frequencyMax:P}),mr.jsx(Jp,{style:Me,className:sm([Yh.cell,Yh.selectedCell]),title:ge?`${xe}`:`${me}`,children:ge?mr.jsx(jm,{representation:V,src:be,label:ye,title:me,subtitle:ve,cellBgColor:Se,borderColor:null==H||null===(l=H.image)||void 0===l?void 0:l.borderColor,textStyles:null==H||null===(s=H.image)||void 0===s?void 0:s.text,placeholderBackground:ke,selected:ue,selectionColor:we,opacity:Ee}):Ce?mr.jsx(Tm,{onChange:c,labels:Ce,checkboxes:S,dense:X,showGray:I,qElemNumber:ce.qElemNumber,isSelected:ue,cell:ce,isGridCol:he,isSingleSelect:L,valueTextAlign:fe,styles:H}):mr.jsx(Om,{onChange:c,label:me,qElemNumber:ce.qElemNumber,isSelected:ue,dense:X,cell:ce,isGridCol:he,showGray:I,isSingleSelect:L,checkboxes:S,valueTextAlign:fe,styles:H})}),E&&mr.jsx(zm,{cell:ce,checkboxes:S,dense:X,showGray:I}),_e&&mr.jsxs(Jp,{className:Yh.icon,children:[De&&mr.jsx(Bh,{style:Oe,size:"small"}),Ne&&mr.jsx(om,{style:Oe,size:"small"})]})]})})}var ng=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function rg(e,t){return e===t||!(!ng(e)||!ng(t))}function og(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!rg(e[n],t[n]))return!1;return!0}function ig(e,t){var n;void 0===t&&(t=og);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 ag="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function lg(e){cancelAnimationFrame(e.id)}function sg(e,t){var n=ag();var r={id:requestAnimationFrame(function o(){ag()-n>=t?e.call(null):r.id=requestAnimationFrame(o)})};return r}var cg=-1;function ug(e){if(void 0===e&&(e=!1),-1===cg||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),cg=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return cg}var dg=null;function pg(e){if(void 0===e&&(e=!1),null===dg||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?dg="positive-descending":(t.scrollLeft=1,dg=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),dg}return dg}var fg=function(e){var t=e.columnIndex;return e.data,e.rowIndex+":"+t};function hg(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,Cs(r)),r._resetIsScrollingTimeoutId=null,r._outerRef=void 0,r.state={instance:Cs(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=ig(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=ig(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=ig(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(pg()){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&&lg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1)})},r}ps(t,e),t.getDerivedStateFromProps=function(e,t){return mg(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=ug();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(pg()){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&&lg(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?fg: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:ft({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 mg=function(e,t){e.children,e.direction,e.height,e.innerTagName,e.outerTagName,e.overscanColumnsCount,e.overscanCount,e.overscanRowsCount,e.width,t.instance},gg=function(e,t){return e};function bg(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,Cs(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:Cs(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=ig(function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})}),r._callOnScroll=void 0,r._callOnScroll=ig(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=ig(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(pg()){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&&lg(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=sg(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},function(){r._getItemStyleCache(-1,null)})},r}ps(t,e),t.getDerivedStateFromProps=function(e,t){return yg(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?ug():0:s.scrollHeight>s.clientHeight?ug():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(pg()){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&&lg(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?gg: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:ft({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 yg=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},vg=hg({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}}),Sg=bg({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 xg="#BBB",wg="#f1f1f1",kg={styledScrollbars:"ListBox-styledScrollbars"};function Cg({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:Eg,StyledFixedSizeGrid:Lg}=function(){const e=e=>({scrollbarColor:`${xg} ${wg}`,overflow:e?"hidden !important":void 0,"&::-webkit-scrollbar":{width:10,height:10},"&::-webkit-scrollbar-track":{backgroundColor:wg},"&::-webkit-scrollbar-thumb":{backgroundColor:xg,borderRadius:"1rem"},"&::-webkit-scrollbar-thumb:hover":{backgroundColor:"#555"}});return{StyledFixedSizeList:ur(Sg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${kg.styledScrollbars}`]:e(t)})),StyledFixedSizeGrid:ur(vg,{shouldForwardProp:e=>"scrollDisabled"!==e})(({scrollDisabled:t})=>({[`&.${kg.styledScrollbars}`]:e(t)}))}}();function Rg({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}}const Pg=(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)},Tg=e=>{const t=k.useMemo(()=>"text"in e?e:{},[e]);return k.useMemo(()=>Pg(t.text,t.font||"12px Source Sans Pro"),[t.text,t.font])};function Og(e){if(!e)return"";const t="number"==typeof e?e:e.qListObject.qDimensionInfo.qApprMaxGlyphCount;return Array(t).fill("M").join("")}function Ig({isGridMode:e,dense:t}){let n=t?20:e?32:29;return e&&(n+=4),n}function Mg({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=Tg({text:Og(e),font:g}),y=Tg({text:Og(5),font:g}),v=Tg({text:Og(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));let P=0;const T="grid"===f,O=null==e?void 0:e.representation,I="image"===(null==O?void 0:O.type);let M=Ig({isGridMode:T,dense:p});const q=null!=n?n:8*M;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}){const l=Rg({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r,columnAutoWidth:o,containerWidth:i,itemMinWidth:a});return l.columnWidth*l.columnCount-i>1?Rg({maxVisibleRows:e,itemHeight:t,listCount:n,listHeight:r-10,columnAutoWidth:o,containerWidth:i,itemMinWidth:a}):l}({maxVisibleRows:u,itemHeight:M,listCount:r,listHeight:q,columnAutoWidth:R,containerWidth:e,itemMinWidth:w})))}if(I&&T){var D,N,_,j;const e=5,n=4,o=null===(D=null==d?void 0:d.auto)||void 0===D||D,i=null===(N=null==u?void 0:u.auto)||void 0===N||N,a=Math.max(1,null!==(_=o||null==d?void 0:d.maxColumns)&&void 0!==_?_:e),l=Math.max(1,null!==(j=i||null==u?void 0:u.maxRows)&&void 0!==j?j:n);C=a,E=Math.max(1,(t-10)/C),M=Math.max(36,Math.floor(q/l)),L=Math.ceil((r||1)/C),k={overflowX:"hidden"};const s=null==O?void 0:O.gridGap,c=Math.max(0,Number.isFinite(s)?s:.5);P=Math.min(Math.round(c/100*t),E-1,M-1),P=Math.max(0,P)}C=("singleColumn"===f?1:C)||1,L=("singleColumn"===f?o:L)||r;const A=s.dense?838e3:577e3;L=Math.min(L,A);const z=Math.floor(3355e4/E);C=Math.min(C,z)||1;const $=L*C;return{columnCount:C,columnWidth:E,rowCount:L,overflowStyling:k,itemHeight:M,listHeight:q,listWidth:t,scrollBarWidth:10,count:o,listCount:Math.min(r,$),maxCount:{row:A,column:z},itemPadding:4,gridGap:P,textWidth:b,freqMinWidth:y,freqMaxWidth:v}}function qg({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[Dg]=Cc({});function Ng(e){const t=`${e.id}`,[n]=Dg();return{setStoreValue:(e,r)=>n.set(`${t}/${e}`,r),getStoreValue:e=>n.get(`${t}/${e}`)}}const _g=Nl(Zc,{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 jg({width:e,text:t,dense:n,tooltip:r}){const{translator:o}=k.useContext(xc);return mr.jsx(Sh,{title:r?o.get(t):"",children:mr.jsx(_g,{width:e,dense:n,component:"div",variant:"body1",py:"12px",children:o.get(t)})})}var Ag=Zl(mr.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 zg=Nl($c)(({theme:e,left:t})=>({position:"absolute",bottom:"12px",display:"flex",border:`1px solid ${e.palette.divider}`,width:"calc(100% - 11px)",left:t})),$g=Nl("div")(()=>({paddingLeft:"6px",flexGrow:1})),Fg=Nl("div")(({dense:e})=>({display:"flex",alignItems:""+(e?"center":"flex-start")})),Bg=Nl(Ag)(()=>({fontSize:"14px"}));function Wg({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 mr.jsxs(zg,{left:a,style:{maxWidth:i},children:[mr.jsx($g,{children:mr.jsx(jg,{text:e,dense:n,width:l,tooltip:s})}),mr.jsx(Fg,{dense:n,children:o&&mr.jsx(Uc,{"aria-label":"close",onClick:()=>t(),children:mr.jsx(Bg,{})})})]})}function Hg({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 Ug=e=>e&&"]"!==e?/^[A-Za-z][A-Za-z0-9_]*$/.test(e)?e:`[${e.replace(/\]/g,"]]")}]`:e,Vg=e=>{const t=Ug(e);return`Max(AGGR(Count(${t}), ${t}))`},Gg=(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=Vg(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 Kg={S:!0,L:!0};const Xg=["isLoadingData"],Jg=Nl("div")(()=>({"& .screenReaderOnly":{position:"absolute",height:0,width:0,overflow:"hidden"}}));function Zg({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,O,I,M,q,D;const{translator:N}=k.useContext(xc),[_,j]=k.useState(!1),[A,z]=k.useState(!1),$=!(!r||!r.qListObject.qDimensionInfo.qIsOneAndOnlyOne),{checkboxes:F=l,histogram:B}=null!=r?r:{},W=k.useRef(null),H=k.useRef({queue:[],validPages:!1,dataOffset:0}),U=k.useRef({pages:[]}),V=k.useRef({}),G=JSON.stringify(null==r||null===(P=r.qListObject)||void 0===P||null===(P=P.qDimensionInfo)||void 0===P?void 0:P.qGroupFieldDefs),K=JSON.stringify(null==r||null===(T=r.qListObject)||void 0===T?void 0:T.qExpressions),X=`${G}|${K}`,J=k.useRef(X);J.current!==X&&(J.current=X,V.current={});const{frequencyMax:Z,awaitingFrequencyMax:Q}=Gg(t,r),Y=1+(null!==(O=null==r||null===(I=r.qListObject)||void 0===I||null===(I=I.qExpressions)||void 0===I?void 0:I.length)&&void 0!==O?O:0),ee=function({local:e,loaderRef:t,model:n,fetchStart:r,scrollTimeout:o,postProcessPages:i,listData:a,dataWidth:l=1}){const[s,c]=k.useState(!1),[u,d]=k.useState([]);let[p]=k.useState(0);const f=(s,u)=>{const f=e.current.dataOffset;e.current.queue.push({start:s+f,stop:u+f});const h=!!t.current&&t.current._listRef&&t.current._listRef.state.isScrolling;return e.current.queue.length>10&&e.current.queue.shift(),clearTimeout(e.current.timeout),c(!0),new Promise(t=>{e.current.timeout=setTimeout(()=>{const o=e.current.queue.slice(-1)[0];if(!o)return c(!1),void t();const s=n.getListObjectData("/qListObjectDef",[{qTop:o.start>p?o.start-p:0,qHeight:p,qLeft:0,qWidth:l},{qTop:o.start,qHeight:p,qLeft:0,qWidth:l}]).then(n=>{const r=i?i(n):n;e.current.validPages=!0,a.current.pages=r,d(r),c(!1),t()});r&&r(s)},h?o:0)})};return{loadMoreItems:{with:({minimumBatchSize:e})=>(e&&(p=e),f)},pages:u,isLoading:s}}({local:H,loaderRef:W,model:e,fetchStart:h,scrollTimeout:0,postProcessPages:m,listData:U,dataWidth:Y}),{isLoadingData:te}=ee,ne=d(ee,Xg),{getStoreValue:re,setStoreValue:oe}=Ng(e),ie=k.useCallback(ne.loadMoreItems,[r]),[ae,le]=k.useState({show:!1,dismissed:!1}),se=null==r?void 0:r.representation,ce="image"===(null==se?void 0:se.type),ue=null!==(M=null==se?void 0:se.showSelected)&&void 0!==M&&M,de=function(e){var t;const[n]=k.useState({current:e});return null!=e&&null!==(t=e.qSelectionInfo)&&void 0!==t&&t.qInSelections||(n.current=e),n.current}(r),[pe,fe]=k.useState([]),[he,me]=k.useState(null),ge=(()=>{const e=(null==de?void 0:de.qListObject.qDimensionInfo.qStateCounts)||{};return(e.qSelected||0)+(e.qLocked||0)})(),be=ce&&ue&&ge>0;null!=ne&&ne.pages&&i.update({setPages:fe,pages:ne.pages,isSingleSelect:$,layout:r});const ye=null==r?void 0:r.qListObject.qDimensionInfo.qCardinal,ve=!(ce&&Y>1&&ye&&ye<=2e3)||A;(null!=ne&&ne.pages.length&&!Q&&ve||0===ye)&&(null==w||w()),k.useEffect(()=>{if(!ce||Y<=1||!ye||ye>2e3)return;let t=!1;const n=Ym(r),o=Math.max(1,Math.floor(1e4/Y));return(async()=>{try{for(let r=0;r<ye&&!t;r+=o){const[i]=await e.getListObjectData("/qListObjectDef",[{qTop:r,qLeft:0,qWidth:Y,qHeight:Math.min(o,ye-r)}]);if(t)return;((null==i?void 0:i.qMatrix)||[]).forEach(e=>{var t,r,o;const i=null!==(t=null===(r=e[0])||void 0===r?void 0:r.qElemNumber)&&void 0!==t?t:null===(o=e[0])||void 0===o?void 0:o.qText;Object.entries(n).forEach(([t,n])=>{var r;eg(V.current,t,i,null===(r=e[n])||void 0===r?void 0:r.qText)})})}}catch(e){t||console.error("ListBox expression cache warm-up failed:",e)}t||z(!0)})(),()=>{t=!0}},[e,ce,Y,ye,G,K]),k.useEffect(()=>{if(!be)return void me(null);let t=!1;if(0!==ge)return(async()=>{try{const[n]=await e.getListObjectData("/qListObjectDef",[{qTop:0,qLeft:0,qWidth:Y,qHeight:ge}]);if(!t){const e=Ym(de);((null==n?void 0:n.qMatrix)||[]).forEach(t=>{var n,r,o;const i=null!==(n=null===(r=t[0])||void 0===r?void 0:r.qElemNumber)&&void 0!==n?n:null===(o=t[0])||void 0===o?void 0:o.qText;Object.entries(e).forEach(([e,n])=>{var r;eg(V.current,e,i,null===(r=t[n])||void 0===r?void 0:r.qText)})}),me(n||null)}}catch(e){t||(console.error("ListBox selected values fetch failed:",e),me(null))}})(),()=>{t=!0};me(null)},[be,de,ge,Y,e]),k.useEffect(()=>{be&&(H.current.dataOffset=0)},[be]);const Se=k.useMemo(()=>{if(!be)return pe;return function(e,t){const n=[],r=new Set;return(e||[]).forEach(e=>{((null==e?void 0:e.qMatrix)||[]).forEach(e=>{var t;const o=null==e?void 0:e[0];if(!o||!Kg[o.qState])return;const i=null!==(t=o.qElemNumber)&&void 0!==t?t:o.qText;r.has(i)||(r.add(i),n.push(e))})}),[{qArea:{qLeft:0,qTop:0,qWidth:t,qHeight:n.length},qMatrix:n}]}(he?[he,...pe]:pe,Y)},[be,pe,he,Y]),xe=be?Se[0].qMatrix.length:void 0,we=k.useCallback(e=>{if(null==Se||!Se.length||!H.current.validPages)return!1;H.current.checkIdx=e;const t=t=>t.qArea.qTop<=e&&e<t.qArea.qTop+t.qArea.qHeight,n=Se.filter(e=>t(e))[0];return n&&t(n)},[r,Se]),{interactionEvents:ke,select:Ce}=nm({selectionState:i,selections:o,checkboxes:F,doc:document,loaderRef:W}),{layoutOptions:Ee={}}=r||{};let Le=!0;Ee.dataLayout&&(Le=!("singleColumn"!==Ee.dataLayout&&!ce)||"row"===(null==Ee?void 0:Ee.layoutOrder));const Re="grid"===(null==Ee?void 0:Ee.dataLayout),Pe=e=>{const t=u({},Le?{rowIndex:e}:{columnIndex:e}),n=Re?t:e;W.current._listRef.scrollToItem(n)},Te=()=>{if(H.current.queue=[],H.current.validPages=!1,W.current){W.current.resetloadMoreItemsCache(!0);const e="overflowEnd"===S.state.scrollPosition;if(r&&r.qSelectionInfo.qInSelections||e)return void(e&&S.reset());H.current.dataOffset=0,Pe(0)}};f&&f.call(null,Te),k.useEffect(()=>{v&&!_&&W.current&&(W.current._listRef.scrollToItem(v.initScrollPos),j(!0))},[W.current]),k.useEffect(()=>{Te()},[r,H.current.dataOffset]);let Oe=100;const Ie="grid"!==Ee.dataLayout,Me=be?xe:null==r||null===(q=r.qListObject.qSize)||void 0===q?void 0:q.qcy,qe=be?xe:qg({pages:pe,minimumBatchSize:Oe,count:Me,calculatePagesHeight:g});let De=Hg({itemWidth:c,layout:r,frequencyMode:p});const Ne=function(e){return e.some(({qMatrix:e})=>e.some(([e])=>{var t;return!(null===(t=e.qFrequency)||void 0===t||!t.match("%"))}))?"P":"-"}(Se),_e=Mg({layout:r,width:c,height:s,listCount:qe,count:Me,freqIsAllowed:De,checkboxes:F,styles:R});_e.columnWidth&&(De=Hg({itemWidth:_e.columnWidth,layout:r,frequencyMode:p}));const{listCount:je}=_e;oe("listCount",je);const Ae=re("inputText"),ze=function({layout:e,searchInputText:t,listCount:n}){const{translator:r}=k.useContext(xc),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:Ae,listCount:je}),$e=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:Le,sizes:_e,layout:r,offset:H.current.dataOffset});H.current.dataOffset=n,o&&i.triggerStateChanged(),Pe(t)};k.useEffect(()=>{const e=S.state;e.up?Pe(x.state.start-e.up):e.down?Pe(x.state.stop+e.down):e.scrollPosition&&$e(e.scrollPosition),"overflowEnd"!==e.scrollPosition&&S.reset()},[S.state.up,S.state.down,S.state.scrollPosition]);const{textAlign:Fe}=(null==r?void 0:r.qListObject.qDimensionInfo)||{},[Be,We]=k.useState({first:!1,last:!1}),{List:He,Grid:Ue}=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:q,exprCache:D}){const{layoutOptions:N={}}=e||{},{columnWidth:_,listHeight:j,itemHeight:A,rowCount:z,columnCount:$}=x||{},F=null==e?void 0:e.representation,B=Ym(e),W=("grid"===N.dataLayout?_:t)>80,H={direction:"rtl"===S?"rtl":"ltr",useIsScrolling:!0,className:kg.styledScrollbars},U=null==e?void 0:e.qListObject.qDimensionInfo.qLocked,V=j<=A,G=u(u({isLocked:U,column:!o,pages:i},U||a.selectDisabled()?{}:l),{},{checkboxes:n,layoutOptions:N,deducedFrequencyMode:s,freqIsAllowed:T,isSingleSelect:d,textAlign:m,sizes:x,representation:F,listExprIndex:B,exprCache:D,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:W,dataOffset:r.current.dataOffset,focusListItems:E,direction:S,translator:O,showSearch:I,isModal:M,styles:q,fillHeight:V});return{List:({onItemsRendered:n,ref:o})=>(r.current.listRef=o,mr.jsx(Eg,u(u({},H),{},{dataTestid:"fixed-size-list",scrollDisabled:null==R?void 0:R.active,height:j,width:t,itemCount:w,itemData:u(u({},G),{},{listCount:w}),itemSize:A,onItemsRendered:t=>{var o;L({start:t.visibleStartIndex,stop:t.visibleStopIndex}),v&&v.setScrollPos(t.visibleStopIndex),Cg({renderProps:t,layoutOptions:N,maxCount:x.maxCount,columnCount:$,rowCount:z,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:tg}))),Grid:({onItemsRendered:n,ref:o})=>{const{overflowStyling:i,scrollBarWidth:a}=x,{layoutOrder:l}=N||{},s="image"===(null==F?void 0:F.type)?"row":l,c=Math.min(j,z*A+a);return r.current.listRef=o,mr.jsx(Lg,u(u({},H),{},{dataTestid:"fixed-size-grid",scrollDisabled:null==R?void 0:R.active,height:c,width:t,columnCount:$,columnWidth:_,rowCount:z,rowHeight:A,style:u({},i),itemData:u(u({},G),{},{column:void 0,columnCount:$,rowCount:z}),onItemsRendered:t=>{var o;const i="row"===s;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:s,rowCount:z,columnCount:$});Cg({renderProps:t,layoutOptions:N,maxCount:x.maxCount,columnCount:$,rowCount:z,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:tg}))}}}({direction:a,layout:r,width:c,checkboxes:F,deducedFrequencyMode:Ne,histogram:B,keyboard:b,showGray:y,interactionEvents:ke,select:Ce,selectAll:()=>{i.clearItemStates(!1),e.selectListObjectAll("/qListObjectDef")},onCtrlF:C,textAlign:Fe,isVertical:Ie,pages:Se,selectionState:i,isSingleSelect:$,selections:o,scrollState:v,local:H,sizes:_e,listCount:je,overflowDisclaimer:{state:ae,set:e=>le(t=>u(u({},t),{},{show:e}))},setScrollPosition:$e,focusListItems:{first:Be.first,setFirst:e=>We(t=>u(u({},t),{},{first:e})),last:Be.last,setLast:e=>We(t=>u(u({},t),{},{last:e}))},setCurrentScrollIndex:x.set,constraints:n,frequencyMax:Z,freqIsAllowed:De,translator:N,showSearch:E,isModal:L,styles:R,exprCache:V.current}),{columnWidth:Ve,listHeight:Ge,itemHeight:Ke}=_e||{};return Ie||(Oe=function({width:e,columnWidth:t,listHeight:n,itemHeight:r}){return Math.ceil(e/t)*Math.ceil(n/r)*2}({width:c,columnWidth:Ve,listHeight:Ge,itemHeight:Ke})),mr.jsxs(Jg,{children:[mr.jsx("div",{className:"screenReaderOnly","aria-live":"assertive","aria-atomic":"true",children:ze}),!je&&ye>0&&mr.jsx(jg,{width:c,text:"Listbox.NoMatchesForYourTerms"}),mr.jsx(Gh,{isItemLoaded:we,itemCount:je||1,loadMoreItems:ie.with({minimumBatchSize:Oe}),threshold:0,minimumBatchSize:Oe,ref:W,role:"grid",children:Ie?He:Ue}),ae.show&&!ae.dismissed&&mr.jsx(Wg,{text:"Listbox.ItemsOverflow",dismiss:()=>le(e=>u(u({},e),{},{dismissed:!0})),parentWidth:null==W||null===(D=W.current)||void 0===D||null===(D=D._listRef)||void 0===D||null===(D=D.props)||void 0===D?void 0:D.width,dense:null==Ee?void 0:Ee.dense})]})}const Qg=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"}}]}),Yg=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"}}]}),eb=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"}}]}),tb=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 nb=({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:Qg,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:eb,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:Yg,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:tb,enabled:()=>["qAlternative","qExcluded"].some(t=>e.qListObject.qDimensionInfo.qStateCounts[t]>0),action:()=>{l(),r.clearItemStates(!1),t.selectListObjectExcluded(a)}}].filter(Boolean)};const rb=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 ob(e){const t=ql(),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 ib={className:"njs-cell-action"},ab=C.forwardRef(({item:e,addAnchor:t=!1},n)=>{const r=ql(),{hidden:o,disabled:i,style:a,hasSvgIconShape:l}=ob(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 mr.jsxs(Uc,{ref:f,title:e.label,onClick:e.action,onKeyDown:u,onKeyUp:d,disabled:i,style:a,className:[ib.className,p].join(" "),size:"large",disableRipple:!0,"aria-label":e.label,"data-testid":p,children:[l&&$h(e.getSvgIconShape()),t&&mr.jsx("div",{ref:n,style:{bottom:-s,right:0,position:"absolute",width:"100%",height:0}})]})}),lb=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 sb=e=>$h(lb(e));const cb=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 ub=e=>$h(cb(e));const db="njs-action-toolbar-more",pb={icon:"More-icon"},fb=Nl(zf)(({theme:e})=>({pointerEvents:"none",[`& .${pb.icon} *`]:{color:e.palette.text.primary}}));function hb({item:e,autoFocus:t,onActionClick:n=()=>{}}){const{hidden:r,disabled:o,hasSvgIconShape:i}=ob(e);return r?null:mr.jsxs(Zf,{autoFocus:t,title:e.label,onClick:()=>{e.action(),n()},disabled:o,tabindex:"0",children:[i&&mr.jsx(Ef,{className:pb.icon,children:$h(e.getSvgIconShape())}),mr.jsx(Zc,{noWrap:!0,children:e.label})]})}const mb=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&&mr.jsx(fb,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:db},paper:{style:u({pointerEvents:"auto",maxWidth:"250px"},o)}},anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:mr.jsx(If,{id:"moreMenuList",children:e.map((e,t)=>mr.jsx(hb,{item:e,autoFocus:t===c,onActionClick:i},t))})}))});function gb({keyboardNavigation:e,focusHandler:t,getEnabledButton:n,selections:r,isRtl:o}){return i=>{const{target:a,nativeEvent:l}=i,{keyCode:s}=l;switch(s){case Bm.ARROW_LEFT:case Bm.ARROW_DOWN:case Bm.ARROW_RIGHT:case Bm.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=[Bm.ARROW_LEFT,Bm.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 Bm.SPACE:i.preventDefault();break;case Bm.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 Bm.ESCAPE:r&&(r.onCancel(),r.api.cancel(),i.preventDefault(),i.stopPropagation())}}}const bb="ActionsToolbar",yb={item:`${bb}-item`,itemSpacing:`${bb}-itemSpacing`},vb=Nl(zf)(({theme:e})=>({[`& .${yb.itemSpacing}`]:{padding:e.spacing(0,.25)}})),Sb="njs-action-toolbar-popover",xb=C.forwardRef(({className:e,actions:t=[],addAnchor:n=!1,isRtl:r=!1},o)=>t.length>0?mr.jsx(Jp,{container:!0,gap:0,flexDirection:r?"row-reverse":"row",wrap:"nowrap",className:e,children:t.map((e,t)=>mr.jsx(Jp,{className:`${yb.itemSpacing} ${yb.item}`,children:mr.jsx(ab,{item:e,ref:0===t?o:null,addAnchor:n},e.key)},e.key))}):null),wb={pointerEvents:"none"};function kb({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(xc);return[{key:"clear",type:"icon-button",label:i.get("Selection.Clear"),enabled:()=>e.canClear(t),action:()=>e.clear(),getSvgIconShape:cb},{key:"cancel",type:"icon-button",label:i.get("Selection.Cancel"),enabled:()=>e.canCancel(t),action:()=>{r(),e.cancel()},keyboardAction:()=>{o(),r(),e.cancel()},getSvgIconShape:lb},{key:"confirm",type:"icon-button",label:i.get("Selection.Confirm"),enabled:()=>e.canConfirm(t),action:()=>{n(),e.confirm()},keyboardAction:()=>{o(),n(),e.confirm()},getSvgIconShape:rm}]}(u(u({},r),{},{layout:p})),{translator:g,keyboardNavigation:b}=k.useContext(xc),[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=ql(),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(()=>gb({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 q={key:"more",label:g.get("Menu.More"),getSvgIconShape:rb,hidden:!1,active:y,enabled:()=>T,action:()=>v(!y)},D=M.length>0,N=O.length>0,_=D&&r.show||N&&r.show,j=mr.jsxs(Jp,{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)&&mr.jsx(xb,{className:"actions-toolbar-extra-actions",actions:o,isRtl:c}),D&&mr.jsx(xb,{actions:M}),N&&mr.jsx(xb,{id:"actions-toolbar-show-more","data-testid":"actions-toolbar-show-more",ref:C,actions:[q],addAnchor:!0}),_&&mr.jsx(Jp,{className:yb.itemSpacing,style:L,children:mr.jsx(Hp,{orientation:"vertical"})}),r.show&&mr.jsx(xb,{className:"actions-toolbar-default-actions",actions:m,isRtl:c}),y&&mr.jsx(mb,{show:y,actions:O,alignTo:I,popoverProps:i.popoverProps,popoverPaperStyle:i.popoverPaperStyle,onCloseOrActionClick:()=>{v(!1)},disablePortal:i.disablePortal})]});return a.show?mr.jsx(vb,{disableEnforceFocus:!0,disableAutoFocus:!0,disableRestoreFocus:!0,open:a.show,anchorEl:a.anchorEl,anchorOrigin:S,transformOrigin:x,hideBackdrop:!0,style:wb,onMouseDown:e=>{e.stopPropagation()},slotProps:{paper:{id:"njs-action-toolbar-popover","data-testid":"njs-action-toolbar-popover",className:Sb,style:{pointerEvents:"auto",padding:E.spacing(.5,.25)}}},children:j}):e&&j}var Cb=e=>$h((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 Eb="/qListObjectDef",Lb=e=>null==e?void 0:e.substring(0,64e3),Rb=Nl(Xf,{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)}),Pb=Nl(Uc)(()=>({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 Tb=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(xc),[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}=Ng(r),L="rtl"===d,R=async()=>{try{await r.abortListObjectSearch(Eb)}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=Lb(g),i=await r.searchListObjectFor(Eb,o);return n.selectDisabled()?i:(i&&o.length&&C("listCount")>0&&(e=r.acceptListObjectSearch(Eb,!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?mr.jsxs(mr.Fragment,{children:[mr.jsx(Rb,{styles:f,dense:i,isRtl:L,startAdornment:mr.jsx(cf,{position:"start",sx:{marginLeft:i?"8px":"9px"},children:mr.jsx(Cb,{size:i?"small":"normal"})}),endAdornment:mr.jsx(cf,{position:"end",sx:{marginLeft:0},children:""!==g&&mr.jsx(Pb,{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():Km(t);break;default:return}e.preventDefault(),e.stopPropagation()},children:mr.jsx(sb,{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=Lb(e.target.value);return b(t),t.length?r.searchListObjectFor(Eb,t):R()},onKeyDown:async n=>{const{currentTarget:r}=n,i=r.closest(".listbox-container");switch(n.key){case"Enter":P();break;case"Escape":if(Km(i),t.cancel(),e)return;break;case"Tab":n.shiftKey?Xm(i)||o.focusSelection():x.current?x.current.focus():Km(i);break;case"f":case"F":if(!n.ctrlKey&&!n.metaKey)return;p&&(p(),Km(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"}}),mr.jsx("span",{id:"listbox-search-instructions",style:{position:"absolute",height:0,width:0,overflow:"hidden"},children:m.get("Listbox.Search.ScreenReaderInstructions")})]}):null});function Ob(e){if(!e.session)return[];const{selectionStore:t}=k.useContext(xc),[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 Ib(e){return Object.keys(D.prototype).forEach(t=>{e[t]=D.prototype[t]}),D.init(e),e}const Mb=({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 Ib(a),a},qb=({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 Db(e,t,n,r){const o=Array.isArray(n)?n:[n],[i]=Ob(e),[a]=Rh(t),{appModalStore:l}=k.useContext(xc).selectionStore,s=l.get(e.id),[c,u]=k.useState();return k.useEffect(()=>{i&&t&&!c&&u(Mb({appSelections:i,appModal:s,model:t}))},[i,t]),k.useEffect(()=>{if(!c)return()=>{};const{activateClickOut:e,deactivateClickOut:t}=qb({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 Nb(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=Jh(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 _b=(e,t,n=void 0)=>{var r;return null!==(r=null==e?void 0:e[t])&&void 0!==r?r:n};function jb(e){const t=(null==e?void 0:e.qListObject.qDimensionInfo.qStateCounts)||{};return _b(t,"qSelected",0)+_b(t,"qSelectedExcluded",0)+_b(t,"qLocked",0)+_b(t,"qLockedExcluded",0)>0}function Ab(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 zb(e){if("object"==typeof e&&Ab(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 $b={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}},Fb="qcm-color";function Bb(...e){const t={type:Fb,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===Fb)({r:n,g:r,b:o,a:i}=e[0]),t.invalid=e[0].invalid,t.spaces={...e[0].spaces};else if(Ab(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 $b}(e)){const t=$b[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 Wb(e){let t,n,r;if(Ab(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?zb(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 Hb(e){let t,n,r=0;const o="string"==typeof e?Bb(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 Ub(e){let t,n,r=0;const o="string"==typeof e?Bb(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 Vb(e){if(Ab(e))return`rgb(${e.r}, ${e.g}, ${e.b})`;const t="string"==typeof e?zb(e):e;return`rgb(${(16711680&t)>>16}, ${(65280&t)>>8}, ${255&t})`}function Gb(e,t){return Ab(e)?`rgba(${e.r}, ${e.g}, ${e.b}, ${e.a})`:Gb(Bb(e))}function Kb(e){return Ab(e)?1===e.a?Vb(e):Gb(e):Kb(Bb(e))}const Xb=e=>{const t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4};function Jb(e){return.2126*Xb(e.r)+.7152*Xb(e.g)+.0722*Xb(e.b)}function Zb(...e){const t=Bb(...e);return t.invalid||Jb(t)<.4}function Qb(...e){const t=Bb(...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=Hb(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=Bb(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:()=>Zb(n),getRGB:()=>(n.spaces.rgb||(n.spaces.rgb=Vb(n)),n.spaces.rgb),getRGBA:()=>(n.spaces.rgba||(n.spaces.rgba=Gb(n)),n.spaces.rgba),getString:()=>(n.spaces.string||(n.spaces.string=Kb(n)),n.spaces.string),getHex:()=>(n.spaces.hex||(n.spaces.hex=Wb(n)),n.spaces.hex),getHSL:()=>(n.spaces.hsl||(n.spaces.hsl=function(e){let t,n,r=0;const o="string"==typeof e?Bb(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}=Hb(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}=Ub(e);return`hsv(${t}, ${n}, ${r})`}(n)),n.spaces.hsv),getHSVObject:()=>(n.spaces.hsvObject||(n.spaces.hsvObject=Ub(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)=>Qb(o(18*e)),getDarkenedColor:(e=1)=>Qb(o(18*-e))}}function Yb(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 ey="#FFFFFF";function ty(e,t){const n=Qb(ey),r=Qb(e),o=Qb(t);if(r.isInvalid()||o.isInvalid()||r.getAlpha()<1||o.getAlpha()<1)return t;const i=Yb(n,r),a=Yb(o,r),l=i>a||i>4.5;return!l&&a>3?o.getHex():l?ey:"#000000"}function ny(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 ry,oy,iy,ay="top",ly="top-right",sy="right",cy="bottom-right",uy="bottom",dy="bottom-left",py="left",fy="top-left";ny(ny(ny(ny(ny(ny(ny(ny(ny(ny(ry={},"equal-equal",[ay,uy]),"equal-higher",[uy,cy]),"equal-lower",[ay,ly]),"equal-void",[ay,uy]),"higher-equal",[py,dy,ay,ly]),"higher-higher-acute",[uy,dy,py,ly]),"higher-higher-obtuse",[uy,ay]),"higher-lower-negative",[ay,ly,sy]),"higher-lower-positive",[uy,dy,py]),"higher-void",[ay]),ny(ny(ny(ny(ny(ny(ny(ny(ny(ny(ry,"lower-equal",[ay]),"lower-higher-negative",[ay,fy]),"lower-higher-positive",[cy]),"lower-lower-acute",[ay,fy,py,ly,sy]),"lower-lower-obtuse",[ay,uy]),"lower-void",[ay]),"void-equal",[ay]),"void-higher",[ay,uy]),"void-lower",[ay,uy,py]),"void-void",[ay]),ny(ry,"unclassified",[ay,uy,sy,py,ly,cy,dy,fy]);var hy=function(){if(iy)return oy;iy=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 oy=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},oy}();function my(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function gy(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function by(){}!function(e){e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")&&e.default}(hy);var yy=.7,vy=1/yy,Sy="\\s*([+-]?\\d+)\\s*",xy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",wy="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",ky=/^#([0-9a-f]{3,8})$/,Cy=new RegExp(`^rgb\\(${Sy},${Sy},${Sy}\\)$`),Ey=new RegExp(`^rgb\\(${wy},${wy},${wy}\\)$`),Ly=new RegExp(`^rgba\\(${Sy},${Sy},${Sy},${xy}\\)$`),Ry=new RegExp(`^rgba\\(${wy},${wy},${wy},${xy}\\)$`),Py=new RegExp(`^hsl\\(${xy},${wy},${wy}\\)$`),Ty=new RegExp(`^hsla\\(${xy},${wy},${wy},${xy}\\)$`),Oy={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 Iy(){return this.rgb().formatHex()}function My(){return this.rgb().formatRgb()}function qy(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=ky.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?Dy(t):3===n?new Ay(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?Ny(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?Ny(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=Cy.exec(e))?new Ay(t[1],t[2],t[3],1):(t=Ey.exec(e))?new Ay(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=Ly.exec(e))?Ny(t[1],t[2],t[3],t[4]):(t=Ry.exec(e))?Ny(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=Py.exec(e))?Hy(t[1],t[2]/100,t[3]/100,1):(t=Ty.exec(e))?Hy(t[1],t[2]/100,t[3]/100,t[4]):Oy.hasOwnProperty(e)?Dy(Oy[e]):"transparent"===e?new Ay(NaN,NaN,NaN,0):null}function Dy(e){return new Ay(e>>16&255,e>>8&255,255&e,1)}function Ny(e,t,n,r){return r<=0&&(e=t=n=NaN),new Ay(e,t,n,r)}function _y(e){return e instanceof by||(e=qy(e)),e?new Ay((e=e.rgb()).r,e.g,e.b,e.opacity):new Ay}function jy(e,t,n,r){return 1===arguments.length?_y(e):new Ay(e,t,n,null==r?1:r)}function Ay(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}function zy(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}`}function $y(){const e=Fy(this.opacity);return`${1===e?"rgb(":"rgba("}${By(this.r)}, ${By(this.g)}, ${By(this.b)}${1===e?")":`, ${e})`}`}function Fy(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function By(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Wy(e){return((e=By(e))<16?"0":"")+e.toString(16)}function Hy(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Vy(e,t,n,r)}function Uy(e){if(e instanceof Vy)return new Vy(e.h,e.s,e.l,e.opacity);if(e instanceof by||(e=qy(e)),!e)return new Vy;if(e instanceof Vy)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 Vy(a,l,s,e.opacity)}function Vy(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}function Gy(e){return(e=(e||0)%360)<0?e+360:e}function Ky(e){return Math.max(0,Math.min(1,e||0))}function Xy(e,t,n){return 255*(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)}my(by,qy,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Iy,formatHex:Iy,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return Uy(this).formatHsl()},formatRgb:My,toString:My}),my(Ay,jy,gy(by,{brighter(e){return e=null==e?vy:Math.pow(vy,e),new Ay(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?yy:Math.pow(yy,e),new Ay(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ay(By(this.r),By(this.g),By(this.b),Fy(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:zy,formatHex:zy,formatHex8:function(){return`#${Wy(this.r)}${Wy(this.g)}${Wy(this.b)}${Wy(255*(isNaN(this.opacity)?1:this.opacity))}`},formatRgb:$y,toString:$y})),my(Vy,function(e,t,n,r){return 1===arguments.length?Uy(e):new Vy(e,t,n,null==r?1:r)},gy(by,{brighter(e){return e=null==e?vy:Math.pow(vy,e),new Vy(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?yy:Math.pow(yy,e),new Vy(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 Ay(Xy(e>=240?e-240:e+120,o,r),Xy(e,o,r),Xy(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Vy(Gy(this.h),Ky(this.s),Ky(this.l),Fy(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=Fy(this.opacity);return`${1===e?"hsl(":"hsla("}${Gy(this.h)}, ${100*Ky(this.s)}%, ${100*Ky(this.l)}%${1===e?")":`, ${e})`}`}}));const Jy=Math.PI/180,Zy=180/Math.PI,Qy=.96422,Yy=.82521,ev=4/29,tv=6/29,nv=3*tv*tv,rv=tv*tv*tv;function ov(e){if(e instanceof iv)return new iv(e.l,e.a,e.b,e.opacity);if(e instanceof uv)return dv(e);e instanceof Ay||(e=_y(e));var t,n,r=cv(e.r),o=cv(e.g),i=cv(e.b),a=av((.2225045*r+.7168786*o+.0606169*i)/1);return r===o&&o===i?t=n=a:(t=av((.4360747*r+.3850649*o+.1430804*i)/Qy),n=av((.0139322*r+.0971045*o+.7141733*i)/Yy)),new iv(116*a-16,500*(t-a),200*(a-n),e.opacity)}function iv(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}function av(e){return e>rv?Math.pow(e,1/3):e/nv+ev}function lv(e){return e>tv?e*e*e:nv*(e-ev)}function sv(e){return 255*(e<=.0031308?12.92*e:1.055*Math.pow(e,1/2.4)-.055)}function cv(e){return(e/=255)<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4)}function uv(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function dv(e){if(isNaN(e.h))return new iv(e.l,0,0,e.opacity);var t=e.h*Jy;return new iv(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}my(iv,function(e,t,n,r){return 1===arguments.length?ov(e):new iv(e,t,n,null==r?1:r)},gy(by,{brighter(e){return new iv(this.l+18*(null==e?1:e),this.a,this.b,this.opacity)},darker(e){return new iv(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 Ay(sv(3.1338561*(t=Qy*lv(t))-1.6168667*(e=1*lv(e))-.4906146*(n=Yy*lv(n))),sv(-.9787684*t+1.9161415*e+.033454*n),sv(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}})),my(uv,function(e,t,n,r){return 1===arguments.length?function(e){if(e instanceof uv)return new uv(e.h,e.c,e.l,e.opacity);if(e instanceof iv||(e=ov(e)),0===e.a&&0===e.b)return new uv(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*Zy;return new uv(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}(e):new uv(e,t,n,null==r?1:r)},gy(by,{brighter(e){return new uv(this.h,this.c,this.l+18*(null==e?1:e),this.opacity)},darker(e){return new uv(this.h,this.c,this.l-18*(null==e?1:e),this.opacity)},rgb(){return dv(this).rgb()}}));var pv=e=>()=>e;function fv(e,t){var n=t-e;return n?function(e,t){return function(n){return e+n*t}}(e,n):pv(isNaN(e)?t:e)}!function e(t){var n=function(e){return 1===(e=+e)?fv: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):pv(isNaN(t)?n:t)}}(t);function r(e,t){var r=n((e=jy(e)).r,(t=jy(t)).r),o=n(e.g,t.g),i=n(e.b,t.b),a=fv(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 hv,mv="center",gv="bottom";function bv(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 yv(e,t){e instanceof Map?(e=[void 0,e],void 0===t&&(t=Sv)):void 0===t&&(t=vv);for(var n,r,o,i,a,l=new kv(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 kv(o[i])),r.parent=n,r.depth=n.depth+1;return l.eachBefore(wv)}function vv(e){return e.children}function Sv(e){return Array.isArray(e)?e[1]:null}function xv(e){void 0!==e.data.value&&(e.value=e.data.value),e.data=e.data.data}function wv(e){var t=0;do{e.height=t}while((e=e.parent)&&e.height<++t)}function kv(e){this.data=e,this.depth=this.height=0,this.parent=null}[{key:"NoDataExist",alignment:mv,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:mv,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:mv,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:mv},{key:"DataRangeIncludingZero",alignment:gv},{key:"LimitedData",alignment:gv},{key:"NegativeOrZeroValues",alignment:gv}].reduce(function(e,t){return e[t.key]=t,e},{}),kv.prototype=yv.prototype={constructor:kv,count:function(){return this.eachAfter(bv)},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 yv(this).eachBefore(xv)},[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)}},hv=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}},hv({exports:{}});const Cv=/,(?![^(]*\))/,Ev=/\s(?![^(]*\))/,Lv=/^[0-9]+[a-zA-Z%]+?$/,Rv=["none","inset","initial","inherit"],Pv=e=>{if(!e)return;const t=e.split(Ev).filter(e=>!Rv.includes(e.toLowerCase())).at(-1),n=!t||(e=>"0"===e||Lv.test(e))(t)||Rv.includes(t.toLowerCase())?void 0:t;return n},Tv=e=>e?e.split(Cv).map(e=>e.trim()):[];function Ov(e,t,n,r){return n&&r?n.getStyle(`object.${r}`,e,t):n?n.getStyle("",e,t):void 0}function Iv(e,t,n,r,o){return e&&r?"none"!==e.color?r.getColorPickerColor(e):void 0:Ov(t,n,r,o)}const Mv={originalSize:"auto auto",alwaysFit:"contain",fitWidth:"100% auto",fitHeight:"auto 100%",stretchFit:"100% 100%",alwaysFill:"cover"},qv={"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 Dv(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 Nv(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=Dv(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=qv[e.bgImage.position]),n}(e),l=function(e){var t;let n=Mv.originalSize;const r=null==e||null===(t=e.bgImage)||void 0===t?void 0:t.sizing;return r&&(n=Mv[r]),n}(e);return i?{url:i,pos:a,size:l}:void 0}}function _v(e,t,n){const r=null==e?void 0:e.bgColor;return r&&t&&(r.useExpression||r.useColorExpression)?t.validateColor(r.colorExpression):Iv(null==r?void 0:r.color,"","backgroundColor",t,n)}function jv(e,t,n){var r,o;const i=Ov("shadow","boxShadow",t,n);return((e,t,n)=>{if(e&&Rv.includes(e.toLowerCase()))return e.toLowerCase();const r=Tv(e);if(1!==r.length)return e;let o=n;if(!o){const n=Tv(t);if(1!==n.length)return e;o=Pv(n[0])}if(!o)return e;const i=Pv(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,Iv(null==e||null===(o=e.shadow)||void 0===o?void 0:o.boxShadowColor,"shadow","boxShadowColor",t,n))}function Av(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 zv={selected:"#00873D",alternative:"#E4E4E4",excluded:"#A9A9A9",selectedExcluded:"#A9A9A9",possible:"#FFFFFF"},$v=["theme","selections"];function Fv({app:e,themeApi:t,theme:n,queryParams:r,components:o=[],checkboxes:i=!1,hostConfig:a,layout:l}){var s,c,d,p,f,h,m,g;const b=function(e=[]){const t={};return e.forEach(e=>{const n=null==e?void 0:e.key;$v.includes(n)&&(t[n]=e)}),t}(o),y=(e,n)=>t.getStyle("object.listBox",e,n),v=e=>(null==e?void 0:e.index)>0||null!=e&&e.color?t.getColorPickerColor(e):void 0,S=null==l?void 0:l.representation,x=e=>"string"==typeof e?e:v(e),w="image"===(null==S?void 0:S.type)?{cellBgColor:"expression"===S.cellBgColorMode?void 0:x(S.cellBgColor),borderColor:x(S.borderColor)}:void 0,k=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])||zv[r],c=f?ty(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:v,theme:n,getListboxStyle:y,overrides:b,checkboxes:i}),C=b.theme||{},E=v(null===(s=C.header)||void 0===s?void 0:s.fontColor)||y("title.main","color"),L=function({themeApi:e,themeOverrides:t}){let n;const r=null==t?void 0:t.background;return r?(n=null!=r&&r.useExpression?_v({bgColor:r},e,"listBox"):e.getColorPickerColor(null==r?void 0:r.color),n):n}({themeApi:t,themeOverrides:C}),R=null!==(c=C.background)&&void 0!==c&&c.image?Nv({bgImage:C.background.image},e,r,null==a?void 0:a.host):void 0,P=L||y("","backgroundColor")||n.palette.background.default,T=function(e,t){const n=Qb(t("","backgroundColor"));return n.setAlpha(.7),n.isInvalid()?e:n.getRGBA()}(P,y),O=function(e){return ty("#fff",e("content","color"))}(y),I=(null===(d=C.header)||void 0===d?void 0:d.fontStyle)||{},M=(null===(p=C.content)||void 0===p?void 0:p.fontStyle)||{},q=(e,t,n)=>!0===e&&t||!1===e&&n||void 0,D={backgroundColor:i?void 0:k.possible,color:k.possibleContrast||y("content","color"),fontSize:(null===(f=C.content)||void 0===f?void 0:f.fontSize)||y("content","fontSize"),fontFamily:(null===(h=C.content)||void 0===h?void 0:h.fontFamily)||y("content","fontFamily"),fontWeight:q(M.bold,"bold","normal")||y("content","fontWeight")||"normal",textDecoration:M.underline?"underline":"initial",fontStyle:q(M.italic,"italic","normal")||y("content","fontStyle")||"initial"};if(w){var N,_;const e=v(null===(N=C.content)||void 0===N?void 0:N.fontColor)||y("content","color")||(null===(_=n.palette)||void 0===_||null===(_=_.text)||void 0===_?void 0:_.primary);w.text=function(e,t){var n,r,o,i,a;const l=null!==(n=null!=t?t:null==e?void 0:e.color)&&void 0!==n?n:"#333333",s=null!==(r=null==e?void 0:e.fontSize)&&void 0!==r?r:"13px",c=!l||Zb(l);return{color:l,fontFamily:null==e?void 0:e.fontFamily,fontSize:s,subtitleFontSize:`${Math.max(9,Math.round(.85*parseInt(String(s),10)))}px`,fontWeight:null!==(o=null==e?void 0:e.fontWeight)&&void 0!==o?o:"bold",fontStyle:null!==(i=null==e?void 0:e.fontStyle)&&void 0!==i?i:"normal",textDecoration:null!==(a=null==e?void 0:e.textDecoration)&&void 0!==a?a:"initial",backdropColor:c?"rgba(255, 255, 255, 0.6)":"rgba(0, 0, 0, 0.5)",shadowOnImage:c?"0 0 3px rgba(255, 255, 255, 0.8)":"0 1px 2px rgba(0, 0, 0, 0.6)"}}(D,e)}return{background:{backgroundColor:P,backgroundImage:null==R||!R.url||null!=R&&R.url.startsWith("url(")?void 0:`url('${R.url}')`,backgroundRepeat:"no-repeat",backgroundSize:null==R?void 0:R.size,backgroundPosition:null==R?void 0:R.pos},header:{color:E,fontSize:(null===(m=C.header)||void 0===m?void 0:m.fontSize)||y("title.main","fontSize"),fontFamily:(null===(g=C.header)||void 0===g?void 0:g.fontFamily)||y("title.main","fontFamily"),fontWeight:q(I.bold,"bold","normal")||y("title.main","fontWeight")||"bold",textDecoration:I.underline?"underline":"initial",fontStyle:q(I.italic,"italic","normal")||y("title.main","fontStyle")||"initial"},content:D,search:{color:O,borderColor:n.palette.divider,highlightBorderColor:n.palette.custom.focusBorder,backgroundColor:T,backdropFilter:"blur(8px)"},selections:k,image:w}}function Bv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a,layout:l}){return Fv({app:e,themeApi:t,theme:n,queryParams:r,components:o,checkboxes:i,hostConfig:a,layout:l})}function Wv({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=ql(),v=k.useRef(),[S]=wh({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(xc),P=k.useRef(),T=k.useRef(),[O]=Db(i,S,T),[I]=Rh(S),[M]=k.useState(()=>Nb({selectDisabled:d})),q=Um({containerRef:T,enabled:L}),{checkboxes:D=u}=I||{},N=Bv({themeApi:E,theme:y,hostConfig:R,components:c,checkboxes:D,layout:I});if(k.useEffect(()=>{O&&m&&(O.isModal(S)||O.goModal("/qListObjectDef"))},[O,m]),!(S&&I&&C&&N))return null;const _=!0===I.qListObject.qDimensionInfo.qLocked,j=(e,t)=>{const n="escapeKeyDown"!==t;O.noModal(n),o()},A=nb({layout:I,model:S,translator:C,selectionState:M,selections:O}),z=jb(I);return mr.jsx(zf,{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:mr.jsxs(Jp,{container:!0,direction:"column",gap:0,ref:T,children:[mr.jsxs(Jp,{container:!0,style:{direction:f,padding:y.spacing(1)},children:[mr.jsx(Jp,{children:_?mr.jsx(Uc,{onClick:w,disabled:!_,size:"large","aria-label":C.get("Listbox.Unlock"),title:C.get("Listbox.Unlock"),children:mr.jsx(Bh,{})}):mr.jsx(Uc,{onClick:x,disabled:!z,size:"large","aria-label":C.get("Listbox.Lock"),title:C.get("Listbox.Lock"),children:mr.jsx(Hh,{})})}),mr.jsx(Jp,{size:"grow"}),mr.jsx(Jp,{children:mr.jsx(kb,{layout:I,more:{enabled:!_,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")}})})]}),mr.jsxs(Jp,{size:"grow",role:"region","aria-label":C.get("Listbox.ResultFilterLabel"),children:[mr.jsx("div",{ref:P}),mr.jsx(Jp,{children:mr.jsx(Tb,{ref:v,popoverOpen:m,styles:N,visible:!0,model:S,listCount:g,selections:O,selectionState:M,keyboard:{enabled:!1,innerTabStops:!0,focusSelection:q.focusSelection},autoFocus:null==s||s,direction:f})}),mr.jsx(Zg,{model:S,app:i,layout:I,selections:O,selectionState:M,direction:f,onSetListCount:e=>b(e),onCtrlF:()=>{v.current.focus()},styles:N,keyboard:q})]})]})})}function Hv({displayName:e}){return mr.jsx(Zc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600,marginTop:"8px"},children:e})}function Uv({field:e,api:t,stateIx:n=0,skipHandleShowListBoxPopover:r=!1,moreAlignTo:o=null,onClose:i=()=>{}}){const{translator:a}=k.useContext(xc),l=o||k.useRef(),s=ql(),[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=mr.jsx(Hv,{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=mr.jsxs(Jp,{sx:{flex:1,minWidth:0,opacity:d.qLocked?"0.3":""},children:[mr.jsx(Zc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label}),mr.jsx(Zc,{noWrap:!0,style:{fontSize:"12px",opacity:.55,lineHeight:"16px"},children:h})]}),d.qLocked?b=mr.jsx(Jp,{children:mr.jsx(Uc,{size:"large",children:mr.jsx(Bh,{})})}):d.qOneAndOnlyOne||(b=mr.jsx(Jp,{children:mr.jsx(Uc,{title:a.get("Selection.Clear"),onClick:r=>{r.stopPropagation(),t.clearField(d.qField,e.states[n])},size:"large",children:mr.jsx(Fh,{})})})),y=mr.jsx("div",{style:{height:"4px",position:"absolute",bottom:"0",left:"0",width:"100%"},children:!1===p&&m.map(e=>mr.jsx("div",{style:{position:"absolute",background:e.color,height:"100%",top:0,width:100*e.ratio+"%",left:100*e.offset+"%"}},e.color))}),f=mr.jsxs(mr.Fragment,{children:[g,b,y]}))}return p=mr.jsxs(Jp,{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&&mr.jsx(Wv,{alignTo:l,show:c,close:g,app:t.model,fieldName:m?e.qField:d.qField,stateName:m?void 0:e.states[n]})]}),o?mr.jsx(Wv,{alignTo:l,show:!0,close:g,app:t.model,fieldName:m?e.qField:d.qField,stateName:m?void 0:e.states[n]}):p}var Vv=e=>$h((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 Gv={item:"MultiState-item"},Kv=Nl(Jp)(({theme:e})=>({[`&.${Gv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"}}));function Xv({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(xc),p=d.get("Selection.ClearAllStates"),f=()=>{l(-1),r()};let h=null;n||(h=mr.jsxs(mr.Fragment,{children:[mr.jsx(Jp,{sx:{minWidth:0,flexGrow:1},children:mr.jsx(op,{style:{padding:"0px 8px"},color:"secondary",badgeContent:e.states.length,children:mr.jsx(Zc,{component:"span",noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},children:e.label})})}),mr.jsx(Jp,{children:mr.jsx("div",{style:{width:"12px"}})}),mr.jsx(Jp,{children:mr.jsx(Uc,{size:"large",children:mr.jsx(Vv,{})})})]}));const m=mr.jsxs(ff,{dense:!0,children:[mr.jsx(xf,{title:p,onClick:()=>{e.states.forEach(n=>t.clearField(e.name,n))},children:mr.jsx(fc,{variant:"contained",fullWidth:!0,children:p})}),e.states.map((n,r)=>mr.jsx(xf,{title:e.label,onClick:e=>((e,t)=>{e.stopPropagation(),i(!1),l(t)})(e,r),children:mr.jsx(lp,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:mr.jsx(Uv,{field:e,api:t,stateIx:r,skipHandleShowListBoxPopover:!0})})},r))]}),g=mr.jsx(zf,{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:mr.jsxs(Kv,{container:!0,gap:0,className:Gv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(c(e.currentTarget),u.current=e.currentTarget,i(!o))},children:[h,o&&g,a>-1&&mr.jsx(Wv,{alignTo:u,show:a>-1,close:f,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]})]});return n&&a>-1?mr.jsx(Wv,{alignTo:u,show:a>-1,close:f,app:t.model,fieldName:e.selections[a].qField,stateName:e.states[a]}):b}const Jv="More",Zv={item:`${Jv}-item`,badge:`${Jv}-badge`},Qv=Nl(Jp)(({theme:e})=>({[`&.${Zv.item}`]:{backgroundColor:e.palette.background.paper,position:"relative",cursor:"pointer",padding:"4px","&:hover":{backgroundColor:e.palette.action.hover},height:"100%",alignItems:"center"},[`& .${Zv.badge}`]:{padding:e.spacing(0,1)}}));function Yv({items:e=[],api:t}){const n=ql(),[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?mr.jsx(Xv,{field:e[i],api:t,moreAlignTo:c,onClose:u}):mr.jsx(Uv,{field:e[i],api:t,skipHandleShowListBoxPopover:!0,moreAlignTo:c,onClose:u})),mr.jsxs(Qv,{container:!0,gap:0,className:Zv.item,onClick:e=>{e.currentTarget.contains(e.target)&&(s(e.currentTarget),c.current=e.currentTarget,o(!r))},children:[mr.jsx(Jp,{children:mr.jsx(lp,{borderRadius:n.shape.borderRadius,style:{padding:"4px 8px 4px 8px",backgroundColor:n.palette.selected.main,color:n.palette.selected.mainContrastText},children:mr.jsxs(Zc,{noWrap:!0,style:{fontSize:"12px",lineHeight:"16px",fontWeight:600},color:"inherit",children:["+",e.length]})})}),mr.jsx(Jp,{children:mr.jsx(Uc,{size:"large",children:mr.jsx(Vv,{})})}),r&&mr.jsx(zf,{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:mr.jsx(ff,{dense:!0,children:e.map((e,n)=>mr.jsx(xf,{title:e.name,onClick:e=>((e,t)=>{e.stopPropagation(),o(!1),a(t)})(e,n),children:mr.jsx(lp,{border:1,width:"100%",borderRadius:1,borderColor:"divider",children:e.states.length>1?mr.jsx(Xv,{field:e,api:t}):mr.jsx(Uv,{field:e,api:t})})},n))})}),d]})}function eS({api:e,app:t}){const n=ql(),[r]=Ch(t),[o]=Rh(r),[i]=(e=>{var t;const[n]=Mh(e,"FieldList",qh),[r]=Lh(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]=Mh(e,"DimensionList",Dh),[r]=Lh(n,"getLayout");return[null==r||null===(t=r.qDimensionList)||void 0===t?void 0:t.qItems]})(t),[l]=Ih(t),{modalObjectStore:s}=k.useContext(xc).selectionStore,[c,u]=Th(),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(jh);return Ah(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 mr.jsxs(Jp,{ref:c,container:!0,gap:0,wrap:"nowrap",style:{height:"100%"},children:[h.length>0&&mr.jsx(Jp,{style:{position:"relative",maxWidth:"98px",minWidth:"72px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:mr.jsx(Yv,{items:h,api:e})}),f.map((t,r)=>{var o;return mr.jsx(Jp,{style:{position:"relative",maxWidth:"240px",minWidth:"120px",background:n.palette.background.paper,borderRight:`1px solid ${n.palette.divider}`},children:t.states.length>1?mr.jsx(Xv,{field:t,api:e}):mr.jsx(Uv,{field:t,api:e})},`${t.states.join("::")}::${null!==(o=t.qField)&&void 0!==o?o:t.name}${r}`)})]})}var tS=e=>$h((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 nS=e=>$h((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 rS(e){const[t]=Ch(e),[n]=Rh(t),[r]=Ph(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 oS({api:e,app:t}){const{translator:n}=k.useContext(xc),[r]=rS(t);return mr.jsxs(Jp,{container:!0,wrap:"nowrap",style:{height:"100%",alignItems:"center",padding:"0 8px"},children:[mr.jsx(Jp,{children:mr.jsx(Uc,{style:{marginRight:"8px"},disabled:!r||!r.canGoBack,title:n.get("Navigate.Back"),onClick:()=>e.back(),size:"large",children:mr.jsx(tS,{})})}),mr.jsx(Jp,{children:mr.jsx(Uc,{style:{marginRight:"8px"},disabled:!r||!r.canGoForward,title:n.get("Navigate.Forward"),onClick:()=>e.forward(),size:"large",children:mr.jsx(nS,{})})}),mr.jsx(Jp,{children:mr.jsx(Uc,{disabled:!r||!r.canClear,title:n.get("Selection.ClearAll"),onClick:()=>e.clear(),size:"large",children:mr.jsx(ub,{})})})]})}const iS=[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]];function aS([e,t]){return(e+(Math.random()*(t-e)|0)).toString(32)}function lS(){return iS.map(aS).join("")}function sS({app:e}){const t=ql(),[n]=Ob(e);return n?mr.jsxs(Jp,{container:!0,gap:0,wrap:"nowrap",style:{backgroundColor:t.palette.background.paper,minHeight:"40px"},children:[mr.jsx(Jp,{style:{borderRight:`1px solid ${t.palette.divider}`},children:mr.jsx(oS,{api:n,app:e})}),mr.jsx(Jp,{size:"grow",style:{backgroundColor:t.palette.background.darker,overflow:"hidden"},children:mr.jsx(eS,{api:n,app:e})})]}):null}let cS;cS="undefined"!=typeof window?window:"undefined"!=typeof self?self:global;let uS=null,dS=null;const pS=cS.clearTimeout,fS=cS.setTimeout,hS=cS.cancelAnimationFrame||cS.mozCancelAnimationFrame||cS.webkitCancelAnimationFrame,mS=cS.requestAnimationFrame||cS.mozRequestAnimationFrame||cS.webkitRequestAnimationFrame;function gS(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__&&uS(this.__resizeRAF__),this.__resizeRAF__=dS(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=cS.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==hS||null==mS?(uS=pS,dS=function(e){return fS(e,20)}):(uS=function([e,t]){hS(e),pS(t)},dS=function(e){const t=mS(function(){pS(n),e()}),n=fS(function(){hS(t),e()},20);return[t,n]});class bS 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=gS(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 yS({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 Bm.TAB:if(document.activeElement===l||!s&&!l.contains(document.activeElement))return;if(r){Km(l)||Gm(l)||Jm(t,e)}else{if(!(Xm(l)||Gm(l)||Km(l)))break}i();break;case Bm.ENTER:case Bm.SPACE:if(!t.target.classList.contains("listbox-container"))break;e.focus(),i();break;case Bm.ESCAPE:Jm(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 Bm.ARROW_UP:n({up:1});break;case Bm.ARROW_DOWN:n({down:1});break;case Bm.PAGE_UP:n({up:r.stop-r.start});break;case Bm.PAGE_DOWN:n({down:r.stop-r.start});break;case Bm.HOME:n({scrollPosition:l&&s?"overflowStart":"start"});break;case Bm.END:n({scrollPosition:l&&s?"overflowEnd":"end"});break;default:return}e.preventDefault()}}}const vS=Nl("div")(()=>({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center"}));function SS({text:e}){const{translator:t}=k.useContext(xc);return mr.jsx(vS,{children:t.get(e)})}const xS={fontSize:"12px"},wS=Nl(Ws)(({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"}})),kS=Nl(Jp,{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}})),CS=Nl(Zc)(({styles:e})=>u(u({},e.header),{},{display:"block",alignItems:"center",paddingRight:"1px"})),ES=C.forwardRef(({translator:e,toggleLock:t,keyboard:n,isLoading:r},o)=>{const i=e.get("SelectionToolbar.ClickToUnlock");return mr.jsxs(wS,{ref:o,title:i,tabIndex:n.enabled?0:-1,onClick:t,"data-testid":"listbox-unlock-button",id:"listbox-unlock-button",isLoading:r,children:[r?mr.jsx(nc,{size:16,variant:"indeterminate",color:"primary"}):mr.jsx(Bh,{disableRipple:!0,style:xS}),!r&&mr.jsx(Zc,{fontSize:"14px",children:i})]})});var LS=e=>$h((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 RS=e=>$h((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 PS=e=>$h((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 TS="H",OS="C";var IS=({dimInfo:e,app:t,selections:n,isPopover:r,active:o,keyboard:i})=>{switch(e.qGrouping){case TS:return{icon:RS,tooltip:"Listbox.DrillDown",onClick:void 0};case OS:{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?PS:LS,tooltip:"Listbox.Cyclic",onClick:a?l:void 0,onKeyDown:a?e=>{const t=e.currentTarget.closest(".listbox-container");switch(e.keyCode){case Bm.SPACE:case Bm.ENTER:l();break;case Bm.TAB:{if(!i.enabled)return;let n;n=e.shiftKey?i.focusSelection():Gm(t)||Km(t),n||Jm(e,i)}break;default:return}e.preventDefault(),e.stopPropagation()}:void 0}}default:return}};const MS=Nl(fc)(()=>({borderRadius:4,width:24,height:24,minWidth:22,padding:0}));function qS({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?mr.jsx(MS,{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:mr.jsx(c,{style:n})}):mr.jsx(c,{title:d,size:"large",style:u(u({},n),{},{padding:"7px"})})}let DS=0;function NS({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,q]=k.useState(null==e||null===(E=e.qListObject)||void 0===E||null===(E=E.qDimensionInfo)||void 0===E?void 0:E.qLocked),[D,N]=k.useState(!1);k.useEffect(()=>{var t;q(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 _=k.useRef(null),j=k.useRef(null),A=k.useRef(null),z=IS({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-DS<500)return Promise.resolve();if(n)return()=>{};o(!0),DS=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:q,settingLockedState:D,setSettingLockedState:N,model:m,unlockButtonRef:j,lockButtonRef:A}),G=nb({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:Wh,enabled:()=>!D&&!g.selectDisabled()&&jb(e),action:V,ref:A}],X=null!=a&&a.active?mr.jsx(Cb,{title:t.get("Listbox.Search"),size:"large",style:u(u({},xS),{},{padding:"7px"})}):mr.jsx(Uc,{onClick:l,tabIndex:-1,title:t.get("Listbox.Search"),size:"large",disableRipple:!0,"data-testid":"search-toggle-btn",children:mr.jsx(Cb,{style:xS})});k.useEffect(()=>{if(!T)return;if(!_.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:_,iconsWidth:U,paddingLeft:W,paddingRight:H});I(e)},[T,U,W,H,_.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=mr.jsx(kb,u({isRtl:r,layout:e},J));if(P)return Z;const Q=F?mr.jsx(Bh,{size:"large",style:u(u({},xS),{},{padding:"7px"})}):void 0;return mr.jsxs(kS,{item:!0,container:!0,styles:n,isRtl:r,marginY:1,paddingLeft:`${W}px`,paddingRight:`${H}px`,className:"header-container",children:[$&&mr.jsx(ES,{isLoading:D,translator:t,toggleLock:V,keyboard:v,ref:j}),B&&mr.jsxs(Jp,{container:!0,alignItems:"center",width:U,className:"header-action-container",children:[Q||i&&X,mr.jsx(qS,{iconData:z,iconStyle:xS,disabled:y.isActive()&&d,translator:t,keyboard:v})]}),mr.jsx(Jp,{size:"grow",sx:{minWidth:0},justifyContent:r?"flex-end":"flex-start",className:s.listBoxHeader,children:mr.jsx(CS,{variant:"h6",noWrap:!0,ref:_,title:null!=w?w:e.title,styles:n,children:null!=w?w:e.title})}),mr.jsx(Jp,{display:"flex",children:Z})]})}const _S=Nl("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 jS({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?mr.jsx(_S,{"aria-hidden":"true",width:e,height:t}):null}const AS="ListBoxInline",zS={listBoxHeader:`${AS}-listBoxHeader`,screenReaderOnly:`${AS}-screenReaderOnly`,listboxWrapper:`${AS}-listboxWrapper`},$S=Nl(Jp,{shouldForwardProp:e=>!["containerPadding","styles"].includes(e)})(({containerPadding:e,styles:t})=>u(u({},t.background),{},{[`& .${zS.listBoxHeader}`]:{alignSelf:"center",display:"flex"},[`& .${zS.screenReaderOnly}`]:{position:"absolute",height:0,width:0,overflow:"hidden"},[`& .${zS.listboxWrapper}`]:{padding:e},"&:focus-visible":{outline:"none"}}));const FS=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,q=ql(),{translator:D,keyboardNavigation:N,themeApi:_,queryParams:j,constraints:A,hostConfig:z}=k.useContext(xc),{checkboxes:$=d}=t||{},F=Bv({app:l,themeApi:_,theme:q,queryParams:j,components:T,checkboxes:$,hostConfig:z,layout:t}),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]=Th(),[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]=Ob(l),[ie]=k.useState(()=>Nb({selectDisabled:O})),ae=Um({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(()=>yS({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&&D&&F))return null;const Me=!0===p||"toggle"===p&&J&&!1!==ve,qe=null!==(i=xe.dense)&&void 0!==i&&i,De=()=>{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?De():H.current.focus()},_e=Me&&("toggle"===p||f),je=function({isGridMode:e,dense:t,height:n,layoutOrder:r}){let o;if(e){let i;i=Ig({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:qe,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=mr.jsx(NS,{app:l,showSearchIcon:ke,onShowSearch:De,isPopover:R,showToolbar:K,isDirectQuery:B,autoConfirm:Se,toolbarMode:Oe?"detach":Re,title:Ee,layout:t,translator:D,styles:F,isRtl:Ie,showLock:P,constraints:A,classes:zS,containerRect:V,containerRef:W,model:m,selectionState:ie,selections:g,keyboard:ae,disablePortal:I});return mr.jsxs(mr.Fragment,{children:[Oe&&ze,mr.jsxs($S,{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?D.get("Listbox.ScreenReaderInstructions"):"",onFocus:()=>ue(!0),onBlur:()=>ue(!1),children:[mr.jsx(jS,{width:null==V?void 0:V.width,height:null==V?void 0:V.height,disabled:le()||R,childNode:de,containerNode:G}),Pe&&!Oe&&ze,mr.jsxs(Jp,{container:!0,direction:"column",height:"100%",minHeight:Ae,role:"region","aria-label":D.get("Listbox.ResultFilterLabel"),ref:fe,children:[mr.jsx(Jp,{children:mr.jsx(Tb,{ref:H,selections:g,selectionState:ie,model:m,dense:qe,keyboard:ae,visible:Me,search:p,autoFocus:_e,beginSelectionOnFocus:!R,wildCardSearch:ye,searchEnabled:ve,direction:s,hide:ke&&De,styles:F})}),mr.jsx(Jp,{size:"grow",className:zS.listboxWrapper,children:se?mr.jsx(SS,{text:ce}):mr.jsx(bS,{children:({height:e,width:n})=>mr.jsx(Zg,{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 BS({options:e={}}){const{model:t}=e,[n]=Rh(t);return mr.jsx(FS,{options:e,layout:n})}function WS({app:e,qId:t,options:n={}}){const[r,o]=k.useState(),[i]=xh(),{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 HS={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}},representation:{type:"text",imageUrl:"",imageLabel:"",imageSetting:"label",imageSize:"alwaysFit",imagePosition:"top-center",titlePosition:"top-center",textOverlay:!0,titleBackground:!0,gridGap:.5,cornerRadius:4,borderWidth:0,borderColor:"#d9d9d9",cellBgColorMode:"single",cellBgColor:"#ffffff",subtitle:"",tooltip:"",showSelected:!0},title:""};function US(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 VS=["__DO_NOT_USE__"],GS=(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,VS)),n),t)},KS=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:US(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?WS({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=lS());const w=ye(!0,{},HS,{qInfo:{qId:x.current},qListObjectDef:{qStateName:n,qFrequencyMode:h&&"N"===m?"V":m},histogram:h,checkboxes:b,layoutOptions:S,title:f});let C;if(ye(!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:Vg(e)}}const[E]=wh(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:Db(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?mr.jsx(BS,{options:v}):null});const XS={show:!0,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}};function JS({app:e,fieldIdentifier:t,stateName:n,element:r,options:o={}}){const[i,a]=k.useState(!!o.show);return mr.jsx(Wv,{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 ZS(e,t){for(let n=0;n<e.length;++n)e[n]>=0&&e[n]>=t&&++e[n];e.push(t)}function QS(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 YS({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||lS(),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),ZS(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 QS(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||lS(),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),ZS(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];QS(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 ex({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||lS(),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 tx=e=>({qDef:{qFieldDefs:[e]}});function nx({children:e,halo:t}){const n={async addDimension(n){const r=(e=>{let t;return t="string"==typeof e?ye(!0,{},HS,{qListObjectDef:tx(e)}):e.qListObjectDef?ye(!0,{},HS,e):ye(!0,{},HS,{qListObjectDef:e}),t})(n),o=r.qListObjectDef;if(o.qDef.cId=o.qDef.cId||lS(),!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 rx(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 ox({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")?ex:e.match("/qChildListDef")?nx:YS}(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"===rx(t)?await u.addMeasure(t):await u.addDimension(t)}}const ix=e=>"__proto__"!==e&&"constructor"!==e&&"prototype"!==e;var ax={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(!ix(t))return;void 0!==i[t]&&null!==i[t]||(i[t]=Number.isNaN(+r[e+1])?{}:[]),i=i[t]}ix(o)&&(void 0!==n?i[o]=n:delete i[o])},isEmpty:e=>0===Object.keys(e).length&&e.constructor===Object};var lx={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 sx=2**53-1;function cx(e){return-1!==["qMetaDef","descriptionExpression","labelExpression"].indexOf(e)}function ux(e,t){const n=ye(!0,{},t,e);return ax.getValue(n,"qOtherTotalSpec.qOtherCounted")||ax.setValue(n,"qOtherTotalSpec.qOtherCounted",{qv:"10"}),ax.getValue(n,"qOtherTotalSpec.qOtherLimit")||ax.setValue(n,"qOtherTotalSpec.qOtherLimit",{qv:"0"}),n.hasOwnProperty("othersLabel")||(n.othersLabel="Others"),n}function dx(e,t){return ye(!0,{},t,e)}function px(e,t,n){return"function"==typeof e?e(t):Number.isNaN(+e)?n:e}var fx={restoreChangedProperties:function(e){Object.keys(e.qLayoutExclude.changed).forEach(t=>{e.qLayoutExclude.changed[t].to===ax.getValue(e,t)&&ax.setValue(e,t,e.qLayoutExclude.changed[t].from)})},isMasterItemProperty:cx,importCommonProperties:function(e,t,n){const r="masterobject"===ax.getValue(t,"properties.qInfo.qType")?"masterobject":ax.getValue(n,"qInfo.qType");ax.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:ux,createDefaultMeasure:dx,resolveValue:px,getHypercubePath:function(e){const t=ax.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?(lx.indexAdded(t.qInterColumnSortOrder,o),++o):(--o,lx.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=ye(!0,{},e.properties[o].quarantine)):"qHyperCubeDef"===o&&n?ax.setValue(r,`${n}.qHyperCubeDef`,e.properties.qHyperCubeDef):t.hasOwnProperty(o)||cx(o)?r[o]=e.properties[o]:r.qLayoutExclude.disabled[o]=e.properties[o]}),r=ye(!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=px(o.max,n.dimensions.length,sx),a=px(o.min,n.dimensions.length,0);return{maxDimensions:px(r.max,i,sx),minDimensions:px(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(ux(i.dimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push(ux(i.dimensions[a],o));else if(i.dimensions.length)for(a=0;a<i.dimensions.length;++a)r.qLayoutExclude.qHyperCubeDef.qDimensions.push(ux(i.dimensions[a],o));if(i.excludedDimensions.length)for(a=0;a<i.excludedDimensions.length;++a)r.qDimensions.length<n?r.qDimensions.push(ux(i.excludedDimensions[a],o)):r.qLayoutExclude.qHyperCubeDef.qDimensions.push(ux(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(dx(i.measures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(dx(i.measures[a],o));else if(i.measures.length)for(a=0;a<i.measures.length;++a)r.qLayoutExclude.qHyperCubeDef.qMeasures.push(dx(i.measures[a],o));if(i.excludedMeasures.length)for(a=0;a<i.excludedMeasures.length;++a)r.qMeasures.length<n?r.qMeasures.push(dx(i.excludedMeasures[a],o)):r.qLayoutExclude.qHyperCubeDef.qMeasures.push(dx(i.excludedMeasures[a],o))},updateDimensionsOnAdded:function({newProperties:e,dataDefinition:t,hypercubePath:n}){if(t.dimensions&&"function"==typeof t.dimensions.added){const r=ax.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=ax.getValue(e,n||"").qHyperCubeDef,o=[...r.qMeasures];r.qMeasures=[],o.forEach(n=>{r.qMeasures.push(n),t.measures.added(n,e)})}}};var hx={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=ax.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();lx.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&&(fx.restoreChangedProperties(r),delete r.qLayoutExclude.changed),r.qLayoutExclude.quarantine&&!ax.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=fx.createNewProperties({exportFormat:e,initialProperties:t,hypercubePath:o}),l=ax.getValue(t,o||"").qHyperCubeDef,s=ax.getValue(a,o||"").qHyperCubeDef,{maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p}=fx.getMaxMinDimensionMeasure({exportFormat:e,dataDefinition:n}),{defaultDimension:f=fx.getDefaultDimension(),defaultMeasure:h=fx.getDefaultMeasure()}=r;return s.qDimensions.length=0,s.qMeasures.length=0,fx.shouldInitLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p})&&fx.initLayoutExclude({exportFormat:e,maxDimensions:c,minDimensions:u,maxMeasures:d,minMeasures:p,newHyperCubeDef:s}),fx.addDefaultDimensions({exportFormat:e,maxDimensions:c,minDimensions:u,newHyperCubeDef:s,defaultDimension:f}),fx.addDefaultMeasures({exportFormat:e,maxMeasures:d,minMeasures:p,newHyperCubeDef:s,defaultMeasure:h}),fx.setInterColumnSortOrder({exportFormat:e,newHyperCubeDef:s}),fx.copyPropertyIfExist("qMaxStackedCells",l,s),fx.copyPropertyIfExist("qNoOfLeftDims",l,s),fx.copyPropertyOrSetDefault("qInitialDataFetch",l,s,[{qTop:0,qLeft:0,qWidth:0,qHeight:0}]),fx.copyPropertyOrSetDefault("qMode",l,s,"S"),fx.copyPropertyOrSetDefault("qReductionMode",l,s,"N"),fx.copyPropertyOrSetDefault("qSortbyYValue",l,s),fx.copyPropertyOrSetDefault("qIndentMode",l,s),fx.copyPropertyOrSetDefault("qShowTotalsAbove",l,s),fx.importCommonProperties(a,e,t),fx.updateDimensionsOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),fx.updateMeasuresOnAdded({newProperties:a,dataDefinition:n,hypercubePath:o}),i.qProperty=a,i}(e)};const mx=e=>ax.getValue(e,"data.targets.0.propertyPath"),gx=e=>{if(e.exportProperties)return e.exportProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hx.exportProperties})(mx(e))},bx=e=>{if(e.importProperties)return e.importProperties;return(e=>{if(e.split("/").indexOf("qHyperCubeDef")>-1)return hx.importProperties})(mx(e))},yx=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=gx(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=bx(d);if(!p)throw new Error("Target chart does not support conversion");return p({exportFormat:s({propertyTree:a,hypercubePath:fx.getHypercubePath(l),viewDataMode:i}),initialProperties:u({qInfo:{qType:r},visualization:r},ax.getValue(d,"properties.initial",{})),dataDefinition:ax.getValue(d,"data.targets.0.",{}),hypercubePath:fx.getHypercubePath(d),viewDataMode:i})},vx=(e("b",{hypercube:hx}),ye.bind(null,!0)),Sx={},{isArray:xx}=Array;function wx(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function kx(e){return void 0===e}function Cx(e,t){return function(e){return"function"==typeof e}(e[t])||"$$"===t.substring(0,2)||"_"===t.substring(0,1)}function Ex(e){return"__proto__"!==e&&"constructor"!==e&&"prototype"!==e}function Lx(e,t){let n;return t.substring(1).split("/").slice(0,-1).forEach(t=>{if(!Ex(t))throw new Error(`Unsafe key in path: ${t}`);n=+t;const r=isNaN(n)?{}:[];e[n||t]=kx(e[n||t])?r:e[t],e=e[n||t]}),e}function Rx(e,t){let n=!0;if(wx(e)&&wx(t))return Object.keys(e).length===Object.keys(t).length&&(Object.keys(e).forEach(r=>{Rx(e[r],t[r])||(n=!1)}),n);if(xx(e)&&xx(t)){if(e.length!==t.length)return!1;for(let n=0,r=e.length;n<r;n+=1)if(!Rx(e[n],t[n]))return!1;return!0}return e===t}Sx.generate=function(e,t,n){n=n||"";let r=[];return Object.keys(t).forEach(o=>{const i=function(e){return e?vx({},{val:e}).val:e}(t[o]),a=e[o],l=`${n}/${o}`;Rx(i,a)||Cx(t,o)||(kx(a)?r.push({op:"add",path:l,value:i}):wx(i)&&wx(a)?r=r.concat(Sx.generate(a,i,l)):xx(i)&&xx(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]&&kx(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(Rx(t,o))return r;if(!kx(t[0])&&kx(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(Sx.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=>{kx(t[o])&&!Cx(e,o)&&r.push({op:"remove",path:`${n}/${o}`})}),r},Sx.apply=function(e,t){t.forEach(t=>{let n=Lx(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(!Ex(r)||null!==i&&!Ex(i)){const e=Ex(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(xx(n))"-"===r&&(r=n.length),n.splice(+r,"add"===t.op?0:1,t.value);else if(xx(o)&&xx(t.value)){const e=t.value.slice();o.length=0,o.push(...e)}else if(wx(o)&&wx(t.value))a=o,Object.keys(a).forEach(e=>{Object.getOwnPropertyDescriptor(a,e).configurable&&!Cx(a,e)&&Ex(e)&&delete a[e]}),vx(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=Lx(e,t.from);xx(n)?n.splice(+r,0,o.splice(+i,1)[0]):(n[r]=o[i],delete o[i])}else"remove"===t.op&&(xx(n)?n.splice(+r,1):delete n[r]);var a})},Sx.clone=function(e){return vx({},e)},Sx.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},Sx.updateObject=function(e,t){Object.keys(e).length?Sx.apply(e,Sx.generate(e,t)):vx(e,t)};const Px=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(D.prototype).forEach(e=>{r[e]=D.prototype[e]}),D.init(r),r);var r;return n};let Tx,Ox;function Ix(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 Mx(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 qx(e){Nx(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 Dx(e){if(e.__hooks.obsolete)return Promise.resolve();Ox=-1,Tx=e,Tx.__hooks.initiated&&Tx.__hooks.list.length;try{Tx.fn.call(null)}catch(e){console.error(e)}Tx.__hooks.initiated=!0;const t=Tx.__hooks;return zx(Tx),Ox=void 0,Tx=void 0,t.chain.promise||(t.chain.promise=new Promise(e=>{t.chain.resolve=e})),function(e){Nx(e.pendingLayoutEffects)}(t),function(e){if(e.macro)return;e.macro=requestAnimationFrame(()=>{!function(e){Nx(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 Nx(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 _x(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 jx(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 Ax(e){return e.__hooks.imperativeHandle}function zx(e){e.__actionsDispatch&&e.__hooks.actions.changed&&(e.__actionsDispatch(e.__hooks.actions.list.slice()),e.__hooks.actions.changed=!1)}function $x(e,t){e.__actionsDispatch=t,e.__hooks&&(e.__hooks.actions.changed=!0,zx(e))}function Fx(e){if(void 0===Tx)throw new Error("Invalid stardust hook call. Hooks can only be called inside a visualization component.");const t=Tx.__hooks;return e>=t.list.length&&t.list.push({}),t.list[e]}function Bx(e){Fx(++Ox);return Tx.context[e]}function Wx(e){e.__hooks&&(e.__hooks.resizer.update=!0)}function Hx(e){return{__hooked:!0,fn:e,initiate:Mx,run:Dx,teardown:qx,runSnaps:_x,runMenu:jx,focus:Jx,blur:Zx,observeActions:$x,getImperativeHandle:Ax,updateRectOnNextRun:Wx}}function Ux(e){const t=Fx(++Ox);if(!t.value){t.component=Tx;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,Dx(r)},0)))};t.value=["function"==typeof e?e():e,n]}return t.value}function Vx(e,t){const n=Fx(++Ox);Ix(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],-1===Tx.__hooks.pendingEffects.indexOf(n)&&Tx.__hooks.pendingEffects.push(n))}function Gx(e,t){const n=Fx(++Ox);Ix(n.value?n.value[1]:void 0,t)&&(n.value=[e,t],Tx.__hooks.pendingLayoutEffects.push(n))}function Kx(e,t){const n=Fx(++Ox);return Ix(n.value?n.value[0]:void 0,t)&&(n.value=[t,e()]),n.value[1]}function Xx(){return Bx("element")}function Jx(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 Zx(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 Qx={app:null,model:null,actions:null,selections:null,created:()=>{},mounted:()=>{},render:()=>{},resize:()=>{},willUnmount:()=>{},destroy:()=>{},emit:()=>{},getViewState:()=>{},observeActions(){},setSnapshotData:e=>Promise.resolve(e)},Yx=Object.keys(Qx);function ew(e,t){const n=u({},Qx);var r;r=n,Object.keys(D.prototype).forEach(e=>{r[e]=D.prototype[e]}),D.init(r);const o={emit(...e){n.emit(...e)}};Object.keys(e.component||{}).forEach(t=>{-1!==Yx.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=Px(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 tw(e,t,n){"function"==typeof e.component&&(e.component=Hx(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):ew(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=Sx.clone(o),a=n.map(e=>({op:e.qOp,value:JSON.parse(e.qValue),path:e.qPath}));Sx.apply(o,a);try{e.qae.properties.onChange.call({model:t.model},o)}catch(e){}const l=Sx.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 nw=1e3,rw=1e3,ow=[{qSortByLoadOrder:1,qSortByNumeric:1,qSortByAscii:1}],iw=()=>[[10,31],[0,31],[0,31],[0,31],[0,31],[0,31]].map(([e,t])=>e+(Math.random()*(t-e)|0).toString(32)).join(""),aw=(e,t)=>e&&e.find(e=>{var n;return(null===(n=e.qDef)||void 0===n?void 0:n.cId)===t})||null,lw=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:iw()})})},sw=e=>{var t;return u(u({},lw(e)),{},{qOtherTotalSpec:null!==(t=e.qOtherTotalSpec)&&void 0!==t?t:{}})},cw=(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]})},uw=new Error("Not supported in this object, need to implement in subclass."),dw=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})},pw=(e,t)=>{if(e)return t&&ax.getValue(e,t)?ax.getValue(e,t).qHyperCube:e.qHyperCube};function fw(e,t){return e.filter((e,n)=>t.includes(n))}function hw(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 mw(e,t,n){lx.indexAdded(e.hcProperties.qInterColumnSortOrder,null!=n?n:t.length-1)}function gw(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 bw(e,t){return e.getAlternativeDimensions().length+t.length>=nw}function yw(e,t){const n=e.getAlternativeDimensions();return t||e.maxDimensions()<=n.length&&n.length<nw}async function vw(e,t,n,r,o,i){await e.autoSortDimension(t),lx.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 Sw(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 xw(e,t){lx.indexAdded(e.hcProperties.qInterColumnSortOrder,e.getDimensions().length+t.length-1)}function ww(e,t){const n=e.getMeasures();return t||e.maxMeasures()<=n.length&&n.length<rw}function kw(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 Cw{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=aw(n,e))&&void 0!==t?t:aw(r,e)}getAlternativeDimensions(){throw new Error("Method not implemented.")}addDimension(){throw uw}addDimensions(){throw uw}removeDimension(){throw uw}removeDimensions(){throw uw}autoSortDimension(){throw uw}replaceDimension(){throw uw}getSorting(){throw uw}createLibraryDimension(e,t){let n=ye(!0,{},this.dimensionProperties||{},t||{});return n=sw(n),n.qLibraryId=e,n.qDef.autoSort=!0,n.qDef.qSortCriterias=ow,delete n.qDef.qFieldDefs,delete n.qDef.qFieldLabels,n}createFieldDimension(e,t,n){let r=ye(!0,{},this.dimensionProperties||{},n||{});return r=sw(r),e||(r.qDef.qFieldDefs=[],r.qDef.qFieldLabels=[],r.qDef.qSortCriterias=[]),r.qDef.qFieldDefs=[e],r.qDef.qFieldLabels=t?[t]:[""],r.qDef.qSortCriterias=ow,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 uw}addMeasures(){throw uw}removeMeasure(){throw uw}removeMeasures(){throw uw}autoSortMeasure(){throw uw}replaceMeasure(){throw uw}getMeasure(e){var t;const n=this.getMeasures(),r=this.getAlternativeMeasures();return null!==(t=aw(n,e))&&void 0!==t?t:aw(r,e)}createExpressionMeasure(e,t,n){var r,o;const i=ye(!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=ye(!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",Cw);function Ew(e,t,n){const r=e.getDimensions();return r.splice(n,0,t),e.autoSortDimension(t).then(async()=>(mw(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 Lw(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(()=>(xw(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 Rw(e,t){!function(e,t){lx.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 Pw(e,t){!function(e,t){lx.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 Tw(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 Ow(e,t,n){const r=e.getMeasures(),o=null!=n?n:r.length;return r.length<e.maxMeasures()?(r.splice(o,0,t),xw(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 Iw extends Cw{constructor(e){super(e),this.path=e.path}setProperties(e){e&&(super.setProperties(e),this.hcProperties=this.path?ax.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=dw(this.hcProperties.qDimensions),this.hcProperties.qMeasures=dw(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=pw(this.layout,this.path);return e?e.qDimensionInfo:[]}addDimension(e,t,n){const r=sw(e);return yw(this,t)?hw(this,r,n):function(e,t,n){const r=e.getDimensions(),o=null!=n?n:r.length;return r.length<e.maxDimensions()?Ew(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(bw(this,n))return o;const a=sw(e);if(yw(this,t)){const e=await hw(this,a);o.push(e)}else n.length<this.maxDimensions()&&(await vw(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?Tw(this,e):Rw(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=fw(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 Tw(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=fw(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 Rw(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:iw()})});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=lw(e);return yw(this,t)?hw(this,r,n).then(()=>{gw(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),mw(e,r),gw(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(lx.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(kw(e,t,n,r)):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;lx.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&&cw(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&&cw([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=pw(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=lw(e);return ww(this,t)?Sw(this,r,n):Lw(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>=rw}(this,n))return!1;const i=lw(e);return ww(this,t||!1)?(Sw(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},lx.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):Pw(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=fw(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=fw(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 Pw(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:iw()})});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=lw(e);return ww(this,t)?Sw(this,r,n):Ow(this,r,n)}moveMeasure(e,t){const n=this.getMeasures(),r=this.getAlternativeMeasures();return e<n.length&&t<n.length?Promise.resolve(lx.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?kw(e,t,n,r):Promise.resolve(function(e,t,n,r){const o=e-n.length,i=t-n.length;lx.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){ax.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",Iw);const Mw=()=>{};function qw(e,t){return void 0===e?()=>t:()=>e}function Dw(e){const t=e||{};return{min:"function"==typeof t.min?t.min:qw(t.min,0),max:"function"==typeof t.max?t.max:qw(t.max,1e3),added:t.added||t.add||Mw,description:t.description||Mw,moved:t.moved||t.move||Mw,removed:t.removed||t.remove||Mw,replaced:t.replaced||t.replace||Mw,isDefined:()=>!!e}}function Nw(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:Dw(e.dimensions),measures:Dw(e.measures)}}function _w(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(Nw)},exportProperties:e.exportProperties,importProperties:e.importProperties}}function jw(e,t){var n,r;let o;o="function"==typeof e?e(t):e;const i={qae:_w(o.qae),component:o.component||{},create:e=>tw(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 Iw(e)}:{}};return Object.keys(o).forEach(e=>{i[e]||(i.definition[e]=o[e])}),i}var Aw=e=>$h((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 zw({d:e}){const t=ql();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=mr.jsx(Zc,{style:{lineHeight:"30px",paddingRight:t.spacing(1)},children:mr.jsx(rf,{children:e.missing||e.error?mr.jsx(Aw,{style:o}):mr.jsx(om,{style:o})})});return mr.jsxs(Jp,{container:!0,alignItems:"center",wrap:"nowrap",children:[mr.jsx(Jp,{children:i}),mr.jsx(Jp,{container:!0,sx:{minWidth:0},wrap:"nowrap",children:mr.jsxs(Zc,{noWrap:!0,component:"p",children:[mr.jsx(Zc,{component:"span",variant:"subtitle2",color:n,children:e.description}),mr.jsx(Zc,{component:"span",children:" "}),mr.jsx(Zc,{component:"span",variant:"subtitle2",color:e.error?"error":"inherit",style:{fontWeight:400},children:e.label})]})})]})}function $w({data:e}){const t=ql();return mr.jsx(Jp,{container:!0,style:{maxWidth:"300px",overflow:"hidden"},children:e.map((e,n)=>{const r=e.descriptions.map((e,t)=>mr.jsx(zw,{d:e},t));return r.length>0&&mr.jsxs(Jp,{container:!0,direction:"column",style:{paddingBottom:t.spacing(2)},children:[mr.jsx(Zc,{noWrap:!0,variant:"subtitle1",align:"left",color:"textSecondary",children:e.title},n),r]},n)})})}function Fw({title:e="Error",message:t="",data:n=[]}){const[r,o]=Th(),[i,a]=Th(),[l,s]=Th(),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 mr.jsxs(Jp,{ref:r,container:!0,direction:"column",wrap:"wrap",alignItems:"center",justifyContent:"center",style:{position:"relative",height:"100%",width:"100%"},children:[mr.jsxs(Jp,{ref:i,container:!0,direction:"column",alignItems:"center",wrap:"nowrap",children:[mr.jsx(Jp,{children:mr.jsx(Aw,{style:{fontSize:"38px"}})}),mr.jsx(Jp,{children:mr.jsx(Zc,{variant:"h6",align:"center","data-tid":"error-title",children:e})}),mr.jsx(Jp,{children:mr.jsx(Zc,{variant:"subtitle1",align:"center","data-tid":"error-message",children:t})})]}),p?mr.jsx($w,{data:n}):null,c?mr.jsx(Jp,{ref:l,"aria-hidden":!0,style:{position:"absolute",visibility:"hidden",pointerEvents:"none",left:0,top:0},children:mr.jsx($w,{data:n})}):null]})}const Bw=["size"],Ww="Progress",Hw={root:`${Ww}-root`,front:`${Ww}-front`,back:`${Ww}-back`},Uw=Nl("div")(({theme:e})=>({[`&.${Hw.root}`]:{position:"relative",display:"inline-block"},[`& .${Hw.front}`]:{color:e.palette.secondary.main,animationDuration:"1500ms",position:"absolute",left:0},[`& .${Hw.back}`]:{color:e.palette.divider}})),Vw={small:16,medium:32,large:64,xlarge:128};function Gw(e){let{size:t="medium"}=e,n=d(e,Bw);const r=Vw[t];return mr.jsxs(Uw,{className:Hw.root,children:[mr.jsx(nc,u({variant:"determinate",value:100,className:Hw.back,size:r,thickness:3},n)),mr.jsx(nc,u({variant:"indeterminate",disableShrink:!0,className:Hw.front,size:r,thickness:3},n))]})}const Kw=["cancel","translator"],Xw=["retry","translator"],Jw={stripes:"LongRunningQuery-stripes"},Zw=Nl(Jp)(()=>({[`& .${Jw.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 Qw(e){let{cancel:t,translator:n}=e,r=d(e,Kw);return mr.jsxs(mr.Fragment,{children:[mr.jsxs(Zw,{container:!0,direction:"column",alignItems:"center",gap:2,children:[mr.jsx(Jp,{children:mr.jsx(Gw,{})}),mr.jsx(Jp,{children:mr.jsx(Zc,{variant:"h6",align:"center","data-tid":"update-active",children:n.get("Object.Update.Active")})})]}),mr.jsx(Jp,u(u({},r),{},{children:mr.jsx(fc,{variant:"contained",onClick:t,children:n.get("Cancel")})}))]})}function Yw(e){let{retry:t,translator:n}=e,r=d(e,Xw);return mr.jsxs(mr.Fragment,{children:[mr.jsx(Jp,{children:mr.jsx(Aw,{style:{fontSize:"38px"}})}),mr.jsx(Jp,{children:mr.jsx(Zc,{variant:"h6",align:"center","data-tid":"update-cancelled",children:n.get("Object.Update.Cancelled")})}),mr.jsx(Jp,{children:mr.jsx(fc,u(u({variant:"contained",onClick:t},r),{},{children:n.get("Retry")}))})]})}function ek({canCancel:e,canRetry:t,api:n}){const{translator:r}=k.useContext(xc);return mr.jsxs(Jp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",className:Jw.stripes,style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:[e&&mr.jsx(Qw,{cancel:n.cancel,translator:r,className:Jw.cancel}),t&&mr.jsx(Yw,{retry:n.retry,translator:r,className:Jw.retry})]})}function tk(){return mr.jsx(Jp,{container:!0,direction:"column",alignItems:"center",justifyContent:"center",style:{position:"absolute",width:"100%",height:"100%",left:0,top:0},gap:2,children:mr.jsx(Gw,{size:"large"})})}const nk={width:0,height:0},rk="Header",ok={containerStyle:`${rk}-containerStyle`,containerTitleStyle:`${rk}-containerTitleStyle`},ik=Nl(Jp)(({theme:e})=>({[`&.${ok.containerStyle}`]:{flexGrow:0},[`&.${ok.containerTitleStyle}`]:{paddingBottom:e.spacing(1)}})),ak="njs-cell-title",lk="njs-cell-sub-title";function sk({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=[ok.containerStyle,...c||u?[ok.containerTitleStyle]:[]],m=o||d,g=mr.jsx(kb,{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 mr.jsxs(ik,{container:!0,wrap:"nowrap",className:h.join(" "),children:[mr.jsx(Jp,{size:"grow",sx:{minWidth:0},dir:l?"rtl":"ltr",children:mr.jsxs(Jp,{container:!0,wrap:"nowrap",direction:"column",children:[c?mr.jsx(Sh,{title:t.title,children:mr.jsx(Zc,{id:`${e}_title`,variant:"h6",noWrap:!0,className:ak,style:a.main,children:t.title})}):mr.jsx("div",{id:`${e}_title`,style:nk,"aria-label":s.get("Accessibility.Object.NoTitle")}),u&&mr.jsx(Sh,{title:t.subtitle,children:mr.jsx(Zc,{variant:"body2",noWrap:!0,className:lk,style:a.subTitle,children:t.subtitle})})]})}),mr.jsx(Jp,{children:g})]})}const ck="condition",uk="search",dk="clear_selection",pk="matches_exactly",fk="starts_with",hk="ends_with",mk="beginning_of_word",gk="general",bk="fixed_value",yk=(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 uk:o+=(e=>{var t,n,r;let o="",i="";switch(null===(t=e.options)||void 0===t?void 0:t.mode){case mk:o="*^",i="*";break;case hk:o="*";break;case fk:i="*";break;case pk: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 ck:o+=(e=>{var t,n,r,o,i,a,l;const{options:s}=e,c=(null==s?void 0:s.mode)===gk,u=(null==s||null===(t=s.modifier)||void 0===t?void 0:t.type)===bk,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}(${Ug(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}(${Ug(null===(S=s.conditionField)||void 0===S?void 0:S.field)})`,f=`${null===(x=s.firstValue)||void 0===x?void 0:x.aggregator}(${Ug(null===(w=s.firstValue)||void 0===w?void 0:w.field)})`}else{var k,C;p=`${Ug(e.field)}`,f=`${null===(k=s.firstValue)||void 0===k?void 0:k.aggregator}(total ${Ug(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,q;e=`${null===(M=s.secondValue)||void 0===M?void 0:M.aggregator}(${Ug(null===(q=s.secondValue)||void 0===q?void 0:q.field)})`,t=` and ${p}`}else{var D,N;e=`${null===(D=s.secondValue)||void 0===D?void 0:D.aggregator}(total ${Ug(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 dk: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)},vk=(e,t)=>yk(e,t).map(e=>`${e.field}: ${e.label}`).join("; ");var Sk=e=>$h((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 xk({styles:e,children:t}){return mr.jsx(Zc,{noWrap:!0,variant:"body2",style:u(u({},e),{},{fontStyle:"italic"}),children:t})}function wk({layout:e,translator:t,filtersFootnoteString:n,footerStyle:r,isRtl:o}){var i;const a=yk(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 mr.jsx(Sh,{title:n,children:mr.jsxs(Jp,{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:[mr.jsxs(Jp,{sx:{display:"flex"},children:[mr.jsx(Sk,{style:{fontSize:"12px",color:r.color,margin:"auto"}}),mr.jsxs(xk,{styles:u(u({},l),{},{marginLeft:"2px"}),children:[t.get("Object.FiltersApplied")," "]})]}),mr.jsx(Jp,{sx:{display:"flex"},children:a.map(e=>mr.jsxs(Jp,{container:!0,wrap:"nowrap",children:[mr.jsx(xk,{styles:u(u({},l),{},{fontWeight:"bold"}),children:`${e.field}:`}),mr.jsxs(xk,{styles:l,children:[" ",e.label," "]})]},`${e.field}-${e.label}`))})]})})}const kk={itemStyle:"Footer-itemStyle"},Ck=Nl(Jp)(()=>({[`& .${kk.itemStyle}`]:{minWidth:0,width:"100%"}})),Ek="njs-cell-footer";function Lk({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=vk(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)?mr.jsx(Ck,{container:!0,children:mr.jsxs(Jp,{className:kk.itemStyle,"data-testid":Ek,sx:{paddingTop:e=>f?h:e.spacing(1)},children:[e.footnote&&mr.jsx(Sh,{title:e.footnote,children:mr.jsx(Zc,{noWrap:!0,variant:"body2",className:Ek,style:c,align:i?"right":"left",children:e.footnote})}),p&&mr.jsx(wk,{layout:e,translator:n,filtersFootnoteString:d,footerStyle:c,isRtl:i})]})}):null}class Rk{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 Pk="njs-viz";function Tk({sn:e,snOptions:t,snPlugins:n,layout:r,appLayout:o,halo:i,cellId:a,onMount:l}){const{component:s}=e,{theme:c,language:d,constraints:p,interactions:f,keyboardNavigation:h}=k.useContext(xc),[m]=k.useState(()=>new Rk),[g,b]=k.useState(!1),[y,v]=k.useState(0),[S,x,w]=Th(),[C,E]=k.useState(null),L=k.useCallback(e=>{e&&E(e)},[]);return k.useEffect(()=>{if(C)return s.created({options:t}),s.mounted(C),null==l||l(),b(!0),()=>{m.stop(),s.willUnmount()}},[C,s]),k.useEffect(()=>{g&&C&&x&&(!s.isHooked&&r&&r.qSelectionInfo&&r.qSelectionInfo.qInSelections||m.schedule(()=>{const a=[];return p.passive||a.push("passive"),p.active||a.push("interact"),p.select||a.push("select"),p.edit||a.push("edit"),i.app&&i.app.session&&a.push("fetch"),Promise.resolve(s.render({layout:r,options:t,plugins:n,embed:i.public.nebbie,context:u({constraints:p,interactions:f,theme:i.public.theme,appLayout:o,keyboardNavigation:h},s.isHooked?{}:{logicalSize:e.logicalSize({layout:r}),localeInfo:(o||{}).qLocaleInfo,permissions:a})})).then(e=>{!1!==e&&(0===y&&"function"==typeof t.onInitialRender&&t.onInitialRender.call(null),v(y+1))})}))},[x,t,n,C,w,r,o,c,d,p,f,g,h]),mr.jsx("div",{ref:S,"data-render-count":y,style:{position:"relative",height:"100%"},className:Pk,children:mr.jsx("div",{ref:L,id:`${a}_content`,style:{position:"absolute",width:"100%",height:"100%"}})})}const Ok={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"},Ik=({layout:e,theme:t,app:n,themeName:r,disableThemeBorder:o,queryParams:i})=>{const{hostConfig:a}=k.useContext(xc),l=k.useMemo(()=>{if(e&&t){const l=e.components?e.components.find(e=>"general"===e.key):null,s=(r=e.visualization,Ok[r.toLowerCase()]?Ok[r.toLowerCase()]:r),c={main:Av(l,"main",t,s),footer:Av(l,"footer",t,s),subTitle:Av(l,"subTitle",t,s)},u=_v(l,t,s),d=Nv(l,n,i,null==a?void 0:a.host),p=function(e,t,n,r){const o=Iv(null==e?void 0:e.borderColor,"","borderColor",t,n);let i=null==e?void 0:e.borderWidth;return!i&&!r&&(i=Ov("","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)||Ov("","borderRadius",t,n)}(l,t,s);return{titleStyles:c,bgColor:u,bgImage:d,border:p,borderRadius:f,boxShadow:jv(l,t,s)}}var r;return{}},[e,t,n,r,o]);return l};class Mk extends Error{constructor(e,t){super(e),this.originalError=t,this.name="RenderError"}}const qk=["action-button","sn-nav-menu","filterpane","sn-shape"],Dk=[...qk,"pivot-table","table","sn-table","sn-pivot-table","kpi","sn-calendar","sn-filter-pane","sn-layout-container","sn-tabbed-container"],Nk=e=>-1===qk.indexOf(e),_k=e=>Nk(e)?"10px 10px 0":"10px 0 0",jk=({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=vk(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=_k(u)),s&&(r.subTitle.padding=((e,t)=>{const n=Nk(e);return t?n?"0 10px":"0":_k(e)})(u,n)),f&&(-1===qk.indexOf(u)&&(r.footer.borderTop="1px solid #d9d9d9"),r.footer.padding="6px 10px"),(t||-1===Dk.indexOf(u))&&(h=`${n||s?"0":"10px"} 10px ${f?"0":"5px"}`),h}},Ak=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])=>{Ak.set(e,t)});const zk="njs-cell",$k="njs-cell-body";const Fk=(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 Bk({delay:e=750}){const[t,n]=k.useState(!1);return k.useEffect(()=>{const t=setTimeout(()=>n(!0),e);return()=>clearTimeout(t)},[]),t?mr.jsx(tk,{}):null}const Wk=e=>!e.qError||7005===e.qError.qErrorCode,Hk=e=>e&&e.qError&&7005!==e.qError.qErrorCode,Uk=(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}}),Vk=e=>e&&(Array.isArray(e)?e:[e])||[],Gk=(e,t,n,r)=>{const o=r.dimensions.min(),i=r.measures.min(),a=r.resolveLayout(t),l=Uk(o,Vk(a.qDimensionInfo||a.qItems),e=>r.dimensions.description(n,e,{}),e.get("Visualization.Invalid.Dimension"),e.get("Visualization.UnfulfilledCalculationCondition")),s=Uk(i,Vk(a.qMeasureInfo),e=>r.measures.description(n,e,{}),e.get("Visualization.Invalid.Measure"),e.get("Visualization.UnfulfilledCalculationCondition"));return{reqDimErrors:l,reqMeasErrors:s}},Kk=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=Vk(f.qDimensionInfo||f.qItems),m=Vk(f.qMeasureInfo),g=h.filter(Wk),b=m.filter(Wk);if(o+=d,i+=p,(g.length<d||b.length<p)&&(r=!0),r=r||h.some(Hk)||m.some(Hk),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=Gk(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 Xk(){return new D}const Jk=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(xc),[L]=k.useState(l||Xk),R=ql(),[P,T,O]=Th(),[I,M]=k.useReducer(Fk,{loading:!1,loaded:!1,longRunningQuery:!1,error:(q=o)?{title:q.message}:null,sn:null,visualization:null});var q;const[D,N]=k.useState(t),[_,{validating:j,canCancel:A,canRetry:z},$]=Rh(D),[F]=Ph(h),[B,W,H]=Th(),[U,V]=k.useState(n),[G,K]=k.useState(r),X=`njs-cell-${a}`,[J]=Db(h,D,[`#${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}=Ik({layout:_,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(()=>{Ib(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||!_)return;if(I.visualization===_.visualization&&I.sn)return void(async e=>{const[t,n]=await Kk(y,_,e.generator.qae.data,D);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:_,model:D})})(I.sn);const e=m.getSupportedVersion(_.visualization,_.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 u=await(async({types:e,name:t,version:n})=>await e.get({name:t,version:n}).supernova())({types:t,name:n,version:r}),p=u.create({model:o,app:i,selections:a,nebbie:l,focusHandler:s,emitter:c,navigation:d});p&&e({type:"LOADED",sn:p,visualization:n})}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:D,app:h,selections:J,nebbie:g,focusHandler:le.current,emitter:L,onMount:i,navigation:null!=s?s:C})})(_.visualization,e),()=>{}},[m,I.sn,D,J,_,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(_&&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||_)}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(_));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,_,R.name,F]);let se=null;if(I.loading&&!I.longRunningQuery)se=mr.jsx(Bk,{});else if(I.error){if(c){c(I.error.errorObject?I.error.errorObject:new Mk(I.error.title))}se=mr.jsx(Fw,u({},I.error))}else I.loaded&&(se=mr.jsx(Tk,{sn:I.sn,halo:e,snOptions:U,snPlugins:G,onMount:i,layout:_,appLayout:F,cellId:a},_.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=jk({layout:_,isError:I.error,isCardTheme:ce,titleStyles:ee,translator:y})):(de=!0,pe=void 0);const fe=Ak.get(null==_?void 0:_.visualization),he=y.get(fe);return mr.jsxs($c,{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:zk,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:[mr.jsxs(Jp,{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:[_&&mr.jsx("div",{id:`${a}_type`,style:nk,"aria-label":null!=he?he:_.visualization}),O&&_&&I.sn&&mr.jsx(sk,{layout:_,sn:I.sn,anchorEl:O,hovering:Z,focusHandler:le.current,titleStyles:ee,isRtl:ae,id:a,translator:y,children:" "}),mr.jsx(Jp,{tabIndex:S&&!x?0:-1,onKeyDown:S&&!x?t=>{["Enter"," ","Spacebar"].includes(t.key)&&e.root.toggleFocusOfCells(a)}:null,size:"grow",className:$k,style:u({height:"100%"},pe?{padding:pe}:{}),ref:B,children:se}),O&&_&&I.sn&&mr.jsx(Lk,{layout:_,titleStyles:ee,translator:y,flags:ue,isCardTheme:ce,isRtl:ae})]}),I.longRunningQuery&&mr.jsx(ek,{canCancel:A,canRetry:z,api:$})]})});function Zk(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}function Qk(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 Zk(e)&&Zk(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(...Qk(`${e}${o}/`,t[o],n[o]))}),r}function Yk(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 eC=(e,t,n)=>{if(!e)return Promise.resolve();let r=Sx.generate(t,n);return ye(!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()},tC=()=>{};function nC({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:a=()=>{}}={}){var l;let s,c,d,p=tC,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 D;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 y;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])||fx.getDefaultDimension(),measureProperties:(null===(i=r.qHyperCubeDef)||void 0===i||null===(i=i.qMeasures)||void 0===i?void 0:i[0])||fx.getDefaultMeasure(),globalChangeListeners:void 0,path:f.current.getHypercubePath()};return"function"==typeof t.propertyHandler?t.propertyHandler(a):new Iw(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=tC},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 yx({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 yx({halo:t,model:e,cellRef:f,newType:n,properties:r}),a=i.qProperty;return await eC(e,r,a),i}return await yx({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 yx({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,onReady:a,emitter:l,initialError:s,navigation:c,onError:u}){const{root:d}=e,p=C.createRef(),f=lS(),h=hs.createPortal(mr.jsx(Jk,{ref:p,halo:e,model:n,currentId:f,initialSnOptions:r,initialSnPlugins:o,initialError:s,onMount:i,onReady:a,emitter:l,navigation:c,onError:u}),t,f),m=()=>{d.remove(h),n.removeListener("closed",m)};return n.on("closed",m),d.addCell(f,p),(async()=>{try{await d.add(h,m)}catch(e){m(),i(),u(e)}})(),[m,p]}({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=Qk("/",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=>{Yk(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 yx({halo:t,model:e,cellRef:f,newType:n,properties:r}),i=o.qProperty;return await eC(e,r,i),o},async revert(){await e.clearSoftPatches()}}}});return L}async function rC(e,t,n,r,o,i=async()=>{}){const{onRender:a,onError:l}=t,s=nC({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 oC({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 ox({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 iC="njs-sheet";function aC(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 lC=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]=Rh(f),{theme:g,modelStore:b}=k.useContext(xc),[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.filter(e=>!1!==e.visible);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=aC(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),rC(u,{options:t,plugins:n,element:r},o)}({id:e.name},t,b);return{model:c.model,id:e.name,bounds:aC(e,o,i),cellRef:C.createRef(),currentId:lS(),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"),mr.jsx("div",{style:f,children:mr.jsx(Jk,{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(_v(e,t.public.theme)),E(Nv(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()}),mr.jsx("div",{className:iC,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 sC=()=>{};function cC({model:e,halo:t,navigation:n,initialError:r,onDestroy:o=async()=>{},onRender:i=()=>{},onError:a=()=>{}}={}){let l=sC,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=sC},__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=hs.createPortal(mr.jsx(lC,{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=Qk("/",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=>{Yk(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 uC({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 Ib(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=cC({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):rC(f,{options:t,plugins:n,element:r,onRender:o,onError:i},l,h)}function dC(e={}){return{isEnabled:t=>!0===e[t]}}var pC,fC,hC,mC;function gC(){if(mC)return hC;mC=1;const e=Object.freeze({loose:!0}),t=Object.freeze({});return hC=n=>n?"object"!=typeof n?e:n:t}var bC,yC,vC,SC,xC,wC,kC,CC,EC,LC,RC,PC,TC,OC,IC,MC,qC,DC,NC,_C,jC,AC,zC,$C,FC,BC,WC,HC,UC,VC,GC,KC={exports:{}};function XC(){if(yC)return bC;yC=1;const e=Number.MAX_SAFE_INTEGER||9007199254740991;return bC={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 JC(){if(SC)return vC;SC=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 vC=e}function ZC(){return xC||(xC=1,function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=XC(),i=JC(),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*$")}(KC,KC.exports)),KC.exports}function QC(){if(EC)return CC;EC=1;const e=JC(),{MAX_LENGTH:t,MAX_SAFE_INTEGER:n}=XC(),{safeRe:r,t:o}=ZC(),i=gC(),{compareIdentifiers:a}=function(){if(kC)return wC;kC=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 wC={compareIdentifiers:t,rcompareIdentifiers:(e,n)=>t(n,e)},wC}();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 CC=l}function YC(){if(RC)return LC;RC=1;const e=QC();return LC=(t,n,r)=>new e(t,r).compare(new e(n,r)),LC}function eE(){if(FC)return $C;FC=1;const e=function(){if(TC)return PC;TC=1;const e=YC();return PC=(t,n,r)=>0===e(t,n,r),PC}(),t=function(){if(IC)return OC;IC=1;const e=YC();return OC=(t,n,r)=>0!==e(t,n,r),OC}(),n=function(){if(qC)return MC;qC=1;const e=YC();return MC=(t,n,r)=>e(t,n,r)>0,MC}(),r=function(){if(NC)return DC;NC=1;const e=YC();return DC=(t,n,r)=>e(t,n,r)>=0,DC}(),o=function(){if(jC)return _C;jC=1;const e=YC();return _C=(t,n,r)=>e(t,n,r)<0,_C}(),i=function(){if(zC)return AC;zC=1;const e=YC();return AC=(t,n,r)=>e(t,n,r)<=0,AC}();return $C=(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}`)}},$C}function tE(){if(UC)return HC;UC=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}}HC=t;const n=new(fC?pC:(fC=1,pC=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=gC(),o=function(){if(WC)return BC;WC=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(">")))}}BC=t;const n=gC(),{safeRe:r,t:o}=ZC(),i=eE(),a=JC(),l=QC(),s=tE();return BC}(),i=JC(),a=QC(),{safeRe:l,src:s,t:c,comparatorTrimReplace:u,tildeTrimReplace:d,caretTrimReplace:p}=ZC(),{FLAG_INCLUDE_PRERELEASE:f,FLAG_LOOSE:h}=XC(),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 HC}var nE=function(){if(GC)return VC;GC=1;const e=tE();return VC=(t,n,r)=>{try{n=new e(n,r)}catch(e){return!1}return n.test(t)},VC}(),rE=r(nE);const oE={};function iE(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)||rE(e,i.deps.properties),supernova:()=>async function(e,t,{config:n},r){const o=`${e}__${t}`;if(!oE[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);oE[o]=l.then(e=>{if(!e)throw new Error(`load() of visualization '${i}' resolved to an invalid object`);return e}).catch(e=>{throw new Mk(`Failed to load visualization: '${i}'`,e)})}return oE[o]}(a.name,a.version,t,n.load).then(e=>(r=r||jw(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?(ye(!0,n,e),n):u(u({},n),e)})}};return a}function aE(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]=iE({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 lE({halo:e,parent:t}){const n={},r=t||{get:()=>{}};return{register:(t,r)=>{n[t.name]||(n[t.name]=aE(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(oE).forEach(t=>{t.split("__")[0]===e&&(oE[t]=void 0)})}(e)}}}const sE={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())}},cE={theme:"light",language:"en-US",deviceType:"auto",constraints:{},interactions:{},keyboardNavigation:!1,disableCellPadding:!1,dataViewType:"sn-table",navigation:void 0};sE.context=cE;const uE=(e={},t={})=>u(u({},e),t),dE=(e=[],t=[])=>[...e,...t].filter((e,t,n)=>n.indexOf(e)===t);e("d",function e(t={}){const n=M(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]=Lc({app:e,context:i}),s=function({themes:e=[],loadTheme:t,root:n}={}){const r=Ue();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),Ve(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:dC(t.flags),deviceType:Ge(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=lE({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?uC(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 ox({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 rC(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=>oC(e,d,!1,l),generateProperties:async e=>oC(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 hs.createPortal(mr.jsx(sS,{app:t}),e,lS())}({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[hs.createPortal(mr.jsx(KS,{ref:s,app:t,element:e,fieldIdentifier:n,qId:r,stateName:o,initialOptions:i,renderedCallback:a,flags:l}),e,lS()),s]}({element:i,app:e,fieldIdentifier:t,qId:n,options:GS(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=GS(u({onSelectionActivated:n,onSelectionDeactivated:r},e));o._ref.current.setOptions(t)}}}};return Ib(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({},XS);return ye(!0,t,e),t})(u({onPopoverClose:()=>g.emit("fieldPopoverClose")},r));g._popoverInstance=C.createElement(JS,{element:t,key:lS(),app:e,fieldIdentifier:n,options:o,stateName:r.stateName||"$"}),a.add(g._popoverInstance)}}};return d.public.nebbie=g,d.types=p,Ib(g),g}return r.createConfiguration=n=>e(((e,t)=>({context:uE(e.context,t.context),load:t.load||e.load,loadTheme:t.loadTheme||e.loadTheme,snapshot:u({},t.snapshot||e.snapshot),types:dE(e.types,t.types),themes:dE(e.themes,t.themes),flags:uE(e.flags,t.flags),hostConfig:t.hostConfig||e.hostConfig,anything:uE(e.anything,t.anything)}))(t,n)),r.config=t,r}(sE));function pE(){return{getObjectApi:()=>Promise.resolve({id:"sessapi - "+ +Date.now()})}}const fE=globalThis.crypto||{getRandomValues:()=>123456};function hE(e){return t=>{const n=ye({},t);n.qInfo=n.qInfo||{},n.qInfo.qId=n.qInfo.qId||`mock-${([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e=>(e^fE.getRandomValues(new Uint8Array(1))[0]&15>>e/4).toString(16))}`;const r=n._mock;let o=n;return r&&(delete n._mock,o=ye({},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 mE=(e,{args:t=[],defaultValue:n}={})=>"function"==typeof e?e(...t):void 0!==e?e:n,gE=(e,{defaultValue:t,async:n=!0,delay:r=0}={})=>(...o)=>{const i=mE(e,{defaultValue:t,args:o});return n?new Promise(e=>{setTimeout(()=>e(i),r)}):i},bE=["id","session"],yE=["addListener","emit","listeners","on","once","removeAllListeners","removeListener","setMaxListerners"];function vE(e){return!yE.includes(e)}function SE(e){const t=mE(e.getLayout);return t.qInfo&&t.qInfo.qId}function xE(e,t){return e.reduce((e,n)=>u(u({},e),function(e,t){let n=SE(e);const{delay:r}=t,{id:o,session:i}=e,a=d(e,bE);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:mE(i,{defaultValue:!0}),on:()=>{},once:()=>{},removeListener:()=>{}},Object.entries(a).reduce((e,[t,n])=>u(u({},e),{},{[t]:gE(n,{async:vE(t),delay:r})}),{})),{},{genericType:e.type});return{[n]:l}}(n,t)),{})}function wE(e){if(!e.getLayout)throw new Error('Generic object is missing "getLayout"');if(!SE(e))throw new Error('Generic object is missing "qId" for path "getLayout().qInfo.qId"')}function kE(e=[],t={}){if(!Array.isArray(e)||0===e.length)return()=>{throw new Error('No "genericObjects" specified')};e.forEach(wE);const n=xE(e,t);return async e=>Promise.resolve(n[e])}function CE(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 pE,r=new hE(n),o=new kE(e,t),i=new CE(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:jw,hook:Hx,theme:Ue,locale:P})}}});
|
|
126
|
-
//# sourceMappingURL=index-
|
|
126
|
+
//# sourceMappingURL=index-EMxkNo4T.js.map
|