@sisense/sdk-ui 1.11.0 → 1.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. package/dist/ai/buttons/thumbs-down-button.d.ts +2 -1
  2. package/dist/ai/buttons/thumbs-up-button.d.ts +2 -1
  3. package/dist/ai/chat-config.d.ts +10 -0
  4. package/dist/ai/chat-dropup.d.ts +2 -1
  5. package/dist/ai/chat-input.d.ts +3 -1
  6. package/dist/ai/common/icon-button.d.ts +2 -3
  7. package/dist/ai/icons/light-bulb-icon.d.ts +1 -3
  8. package/dist/ai/index.d.ts +1 -0
  9. package/dist/ai/messages/clickable-message.d.ts +2 -1
  10. package/dist/ai/messages/feedback-wrapper.d.ts +2 -2
  11. package/dist/ai/messages/text-message.d.ts +5 -0
  12. package/dist/ai/use-last-nlq-response.d.ts +19 -0
  13. package/dist/ai.cjs +454 -0
  14. package/dist/ai.js +1073 -1074
  15. package/dist/api/types/dashboard-dto.d.ts +2 -1
  16. package/dist/app/client-application.d.ts +1 -0
  17. package/dist/chart/helpers/use-chart-renderer-props.d.ts +1 -0
  18. package/dist/chart-options-processor/translations/funnel-plot-options.d.ts +2 -1
  19. package/dist/chart-options-processor/translations/pie-plot-options.d.ts +2 -1
  20. package/dist/common/components/loading-indicator.d.ts +17 -4
  21. package/dist/common/hooks/use-fetch.d.ts +1 -1
  22. package/dist/common/hooks/use-has-changed.d.ts +9 -0
  23. package/dist/common/hooks/use-should-load.d.ts +12 -0
  24. package/dist/dashboard/components/content-panel.d.ts +41 -0
  25. package/dist/dashboard/components/dashboard-container.d.ts +2 -0
  26. package/dist/dashboard/components/dashboard-header.d.ts +2 -0
  27. package/dist/dashboard/components/plugin-service.d.ts +21 -0
  28. package/dist/dashboard/constants.d.ts +2 -0
  29. package/dist/dashboard/dashboard-by-id.d.ts +7 -0
  30. package/dist/dashboard/dashboard.d.ts +8 -0
  31. package/dist/dashboard/types.d.ts +41 -0
  32. package/dist/dashboard/utils.d.ts +5 -0
  33. package/dist/dynamic-size-container/dynamic-size-container.d.ts +8 -0
  34. package/dist/filters/components/common/date-range-field-button.d.ts +3 -6
  35. package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +15 -0
  36. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-display.d.ts +6 -0
  37. package/dist/filters/components/date-filter/date-range-filter-tile/date-range-filter-tile.d.ts +6 -0
  38. package/dist/filters/components/date-filter/date-range-filter-tile/editable-date-range-filter.d.ts +14 -0
  39. package/dist/filters/components/date-filter/date-range-filter-tile/use-date-limits.d.ts +1 -2
  40. package/dist/filters/components/date-filter/relative-date-filter-tile/relative-date-filter.d.ts +2 -2
  41. package/dist/filters/components/icons/arrow-icon.d.ts +6 -0
  42. package/dist/filters/components/icons/double-arrow-icon.d.ts +6 -0
  43. package/dist/highcharts-memorized.d.ts +1 -1
  44. package/dist/index.cjs +784 -0
  45. package/dist/index.d.ts +1 -0
  46. package/dist/index.js +11798 -11496
  47. package/dist/models/dashboard/dashboard-model.d.ts +62 -0
  48. package/dist/models/dashboard/get-dashboard-model.d.ts +2 -1
  49. package/dist/models/dashboard/get-dashboard-models.d.ts +2 -1
  50. package/dist/models/dashboard/index.d.ts +1 -1
  51. package/dist/models/dashboard/translate-dashboard-utils.d.ts +5 -0
  52. package/dist/models/dashboard/types.d.ts +2 -14
  53. package/dist/models/dashboard/use-get-dashboard-model.d.ts +1 -1
  54. package/dist/models/dashboard/use-get-dashboard-models.d.ts +1 -1
  55. package/dist/query-execution/query-params-comparator.d.ts +1 -7
  56. package/dist/query-execution/use-execute-pivot-query.d.ts +2 -5
  57. package/dist/query-execution/use-execute-query-by-widget-id.d.ts +3 -4
  58. package/dist/translation/resources/en.d.ts +1 -0
  59. package/dist/translation/resources/index.d.ts +2 -0
  60. package/dist/types.d.ts +31 -10
  61. package/dist/{debounce-BbwkW3DX.js → useQuery-0UWck_2A.js} +12729 -12646
  62. package/dist/useQuery-DVHD0kJ-.cjs +603 -0
  63. package/dist/utils/create-cache.d.ts +0 -1
  64. package/dist/utils/utility-types.d.ts +1 -0
  65. package/dist/widgets/common/drilldown-breadcrumbs/styled-buttons.d.ts +2 -2
  66. package/package.json +13 -9
  67. package/dist/ai/icons/thumbs-down-hovered-icon.d.ts +0 -2
  68. package/dist/ai/icons/thumbs-up-hovered-icon.d.ts +0 -2
  69. package/dist/ai/messages/clear-history-success-message.d.ts +0 -1
  70. package/dist/filters/components/icons/arrow-right-icon.d.ts +0 -2
  71. package/dist/filters/components/icons/double-arrow-right-icon.d.ts +0 -2
  72. package/dist/models/dashboard/translate-dashboard.d.ts +0 -4
package/dist/index.cjs ADDED
@@ -0,0 +1,784 @@
1
+ "use strict";var FM=Object.defineProperty,BM=Object.defineProperties;var HM=Object.getOwnPropertyDescriptors;var yl=Object.getOwnPropertySymbols;var r0=Object.prototype.hasOwnProperty,o0=Object.prototype.propertyIsEnumerable;var np=(e,t,n)=>t in e?FM(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,te=(e,t)=>{for(var n in t||(t={}))r0.call(t,n)&&np(e,n,t[n]);if(yl)for(var n of yl(t))o0.call(t,n)&&np(e,n,t[n]);return e},de=(e,t)=>BM(e,HM(t));var Rn=(e,t)=>{var n={};for(var r in e)r0.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&yl)for(var r of yl(e))t.indexOf(r)<0&&o0.call(e,r)&&(n[r]=e[r]);return n};var Je=(e,t,n)=>(np(e,typeof t!="symbol"?t+"":t,n),n);var qn=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{s(n.next(c))}catch(l){o(l)}},a=c=>{try{s(n.throw(c))}catch(l){o(l)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);s((n=n.apply(e,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const g=require("./useQuery-DVHD0kJ-.cjs"),H=require("react"),vn=require("react-dom"),E=require("react/jsx-runtime");function AT(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const P=AT(H),MT=AT(vn),$M={errorPrefix:"[request-error]",errors:{networkError:"Network error. Probably you forgot to add your domain to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Can not fetch login URL on target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",responseError_onlyStatus:"$t(errorPrefix) Status: {{status}}",responseError_withStatusText:"$t(errorPrefix) Status: {{status}} - {{statusText}}"}},zM={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати loginUrl з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",responseError_onlyStatus:"$t(errorPrefix) Статус: {{status}}",responseError_withStatusText:"$t(errorPrefix) Статус: {{status}} - {{statusText}}"}},NT="sdkRestClient",WM={en:$M,uk:zM};function UM(){return g.initI18next({resource:WM,language:"en",namespace:NT})}const{i18nextInstance:YM}=UM(),bb=(e,t)=>{for(const[n,r]of Object.entries(t))e instanceof Headers?e.set(n,r):Array.isArray(e)?e.push([n,r]):e[n]=r},qM=(e,t)=>{const n=new URL(e);for(const[r,o]of Object.entries(t))n.searchParams.append(r,o);return n.toString().replace(/\/([?&])/,"$1")};var VM=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class GM{constructor(t,n,r){this.type="password",this._authenticating=!1,this._valid=!0,this._authheader=void 0,this.url=t,this.user=n,this.pass=r}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){const n="Bearer "+this._authheader;bb(t,{Authorization:n})}authenticate(){return VM(this,void 0,void 0,function*(){this._authenticating=!0;const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/v1/authentication/login`,n=encodeURIComponent(this.user),r=encodeURIComponent(this.pass);return yield fetch(t,{method:"POST",headers:{accept:"application/json","Content-Type":"application/x-www-form-urlencoded"},body:`username=${n}&password=${r}`}).then(o=>o.json()).then(o=>{this._authheader=o.access_token,this._authenticating=!1}),!!this._authheader})}}let da=class extends g.AbstractTranslatableError{constructor(t,n){super(NT,{key:t,interpolationOptions:n},YM.t)}get status(){return this.interpolationOptions.status}};var rp=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class yb{constructor(t,n=!1){this.type="sso",this._valid=!0,this._authenticating=!1,this.url=t,this._enableSilentPreAuth=n}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){return t}authenticateSilent(t){return rp(this,void 0,void 0,function*(){const n=document.createElement("iframe");n.style.display="none",document.body.appendChild(n),n.src=`${t}?return_to=${window.location.href}`,yield new Promise(r=>{n.onload=()=>{r(!0)}}),document.body.removeChild(n)})}checkAuthentication(){return rp(this,void 0,void 0,function*(){const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/auth/isauth`,r=yield(yield fetch(t,{headers:{Internal:"true"},credentials:"include"})).json();if(!r.isAuthenticated){if(!r.ssoEnabled)throw new da("errors.ssoNotEnabled");if(!r.loginUrl)throw new da("errors.ssoNoLoginUrl")}return{isAuthenticated:r.isAuthenticated,loginUrl:`${r.loginUrl}?return_to=${window.location.href}`}})}authenticate(t=!0){var n;return rp(this,void 0,void 0,function*(){this._authenticating=!0;const{isAuthenticated:r,loginUrl:o}=yield this.checkAuthentication();return r?(this._authenticating=!1,!0):this._enableSilentPreAuth&&t?(yield this.authenticateSilent(o),this.authenticate(!1)):((n=window==null?void 0:window.location)===null||n===void 0||n.assign(o),!1)})}}var QM=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class PT{constructor(t,n){this.type="bearer",this._valid=!0,this.bearer=n,this.url=t}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return!1}applyHeader(t){const n="Bearer "+this.bearer;bb(t,{Authorization:n})}authenticate(){return QM(this,void 0,void 0,function*(){return Promise.resolve(!0)})}}var JM=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class IT{constructor(t,n){this.type="wat",this._authenticating=!1,this._valid=!0,this._initialiser=void 0,this.url=t,this.wat=n}isValid(){return this._valid}invalidate(){this._valid=!1}isAuthenticating(){return this._authenticating}applyHeader(t){if(this._webSessionToken&&this._initialiser){const n=this._webSessionToken,r=this._initialiser;bb(t,{Authorization:n,Initialiser:r})}}authenticate(){return JM(this,void 0,void 0,function*(){this._authenticating=!0;const t=`${this.url}${this.url.endsWith("/")?"":"/"}api/v1/wat/sessionToken`;try{const n=yield fetch(t,{method:"POST",headers:{accept:"application/json","Content-Type":"application/json"},body:`{"webAccessToken": "${this.wat}"}`});if(n.ok){const r=yield n.json();this._initialiser=r.initialiser,this._webSessionToken=r.webSessionToken,this._authenticating=!1}else return!1}catch(n){return this._initialiser=void 0,this._authenticating=!1,!1}return!0})}}function ZM(e,t,n,r,o,i,a=!1){return i?new yb(e,a):r?new PT(e,r):o?new IT(e,o):null}var en=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},fn={searchParams:"URLSearchParams"in en,iterable:"Symbol"in en&&"iterator"in Symbol,blob:"FileReader"in en&&"Blob"in en&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in en,arrayBuffer:"ArrayBuffer"in en};function KM(e){return e&&DataView.prototype.isPrototypeOf(e)}if(fn.arrayBuffer)var XM=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],eN=ArrayBuffer.isView||function(e){return e&&XM.indexOf(Object.prototype.toString.call(e))>-1};function Da(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function wb(e){return typeof e!="string"&&(e=String(e)),e}function xb(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return fn.iterable&&(t[Symbol.iterator]=function(){return t}),t}function jt(e){this.map={},e instanceof jt?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}jt.prototype.append=function(e,t){e=Da(e),t=wb(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};jt.prototype.delete=function(e){delete this.map[Da(e)]};jt.prototype.get=function(e){return e=Da(e),this.has(e)?this.map[e]:null};jt.prototype.has=function(e){return this.map.hasOwnProperty(Da(e))};jt.prototype.set=function(e,t){this.map[Da(e)]=wb(t)};jt.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};jt.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),xb(e)};jt.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),xb(e)};jt.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),xb(e)};fn.iterable&&(jt.prototype[Symbol.iterator]=jt.prototype.entries);function op(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function jT(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function tN(e){var t=new FileReader,n=jT(t);return t.readAsArrayBuffer(e),n}function nN(e){var t=new FileReader,n=jT(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function rN(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function i0(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function LT(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:fn.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:fn.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:fn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():fn.arrayBuffer&&fn.blob&&KM(e)?(this._bodyArrayBuffer=i0(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):fn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||eN(e))?this._bodyArrayBuffer=i0(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):fn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},fn.blob&&(this.blob=function(){var e=op(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=op(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(fn.blob)return this.blob().then(tN);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=op(this);if(e)return e;if(this._bodyBlob)return nN(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(rN(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},fn.formData&&(this.formData=function(){return this.text().then(aN)}),this.json=function(){return this.text().then(JSON.parse)},this}var oN=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function iN(e){var t=e.toUpperCase();return oN.indexOf(t)>-1?t:e}function Mo(e,t){if(!(this instanceof Mo))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof Mo){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new jt(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new jt(t.headers)),this.method=iN(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in en){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}Mo.prototype.clone=function(){return new Mo(this,{body:this._bodyInit})};function aN(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function sN(e){var t=new jt,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
2
+ `)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();try{t.append(i,a)}catch(s){console.warn("Response "+s.message)}}}),t}LT.call(Mo.prototype);function gr(e,t){if(!(this instanceof gr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new jt(t.headers),this.url=t.url||"",this._initBody(e)}LT.call(gr.prototype);gr.prototype.clone=function(){return new gr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new jt(this.headers),url:this.url})};gr.error=function(){var e=new gr(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var lN=[301,302,303,307,308];gr.redirect=function(e,t){if(lN.indexOf(t)===-1)throw new RangeError("Invalid status code");return new gr(null,{status:t,headers:{location:e}})};var yo=en.DOMException;try{new yo}catch(e){yo=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},yo.prototype=Object.create(Error.prototype),yo.prototype.constructor=yo}function _b(e,t){return new Promise(function(n,r){var o=new Mo(e,t);if(o.signal&&o.signal.aborted)return r(new yo("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={statusText:i.statusText,headers:sN(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?l.status=200:l.status=i.status,l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new gr(u,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new yo("Aborted","AbortError"))},0)};function s(l){try{return l===""&&en.location.href?en.location.href:l}catch(u){return l}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(fn.blob?i.responseType="blob":fn.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof jt||en.Headers&&t.headers instanceof en.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(l){c.push(Da(l)),i.setRequestHeader(l,wb(t.headers[l]))}),o.headers.forEach(function(l,u){c.indexOf(u)===-1&&i.setRequestHeader(u,l)})}else o.headers.forEach(function(l,u){i.setRequestHeader(u,l)});o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit=="undefined"?null:o._bodyInit)})}_b.polyfill=!0;en.fetch||(en.fetch=_b,en.Headers=jt,en.Request=Mo,en.Response=gr);const cN=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return yo},Headers:jt,Request:Mo,Response:gr,fetch:_b},Symbol.toStringTag,{value:"Module"})),uN=g.getAugmentedNamespace(cN);var dN=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r=n(1),o=typeof importScripts=="function";e.exports=r(o?self:window)},function(e,t,n){function r(a){if(Array.isArray(a)){for(var s=0,c=Array(a.length);s<a.length;s++)c[s]=a[s];return c}else return Array.from(a)}var o=[];function i(a){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];var u=o.reduce(function(p,f){return[f].concat(p)},[]),d=Promise.resolve(c);return u.forEach(function(p){var f=p.request,m=p.requestError;(f||m)&&(d=d.then(function(b){return f.apply(void 0,r(b))},m))}),d=d.then(function(p){var f=new(Function.prototype.bind.apply(Request,[null].concat(r(p))));return a(f).then(function(m){return m.request=f,m}).catch(function(m){return m.request=f,Promise.reject(m)})}),u.forEach(function(p){var f=p.response,m=p.responseError;(f||m)&&(d=d.then(f,m))}),d}e.exports=function(s){if(!s.fetch)try{n(2)}catch(c){throw Error("No fetch available. Unable to register fetch-intercept")}return s.fetch=function(c){return function(){for(var l=arguments.length,u=Array(l),d=0;d<l;d++)u[d]=arguments[d];return i.apply(void 0,[c].concat(u))}}(s.fetch),{register:function(l){return o.push(l),function(){var u=o.indexOf(l);u>=0&&o.splice(u,1)}},clear:function(){o=[]}}}},function(e,t){e.exports=uN}]);const pN=g.getDefaultExportFromCjs(dN);function hN(e){if(!e.ok)throw new da("errors.responseError",{status:e.status.toString(),statusText:e.statusText,context:e.statusText?"withStatusText":"onlyStatus"});return e}function fN(e,t){if(t.invalidate(),t instanceof GM)throw new da("errors.passwordAuthFailed");if(t instanceof PT||t instanceof IT)throw new da("errors.tokenAuthFailed");return t instanceof yb&&!t.isAuthenticating()&&t.authenticate(),e}function gN(e){return e.message==="Failed to fetch"&&e.name==="TypeError"}function mN(){return Promise.reject(new da("errors.networkError"))}const vN=e=>t=>t.status===401?fN(t,e):t.ok?t:hN(t),bN=e=>gN(e)?mN():Promise.reject(e);var Ba=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class yN{constructor(t,n,r){t.endsWith("/")||(t+="/"),this.url=t,this.auth=n,this.env=r,pN.register({response:vN(n),responseError:bN})}login(){return Ba(this,void 0,void 0,function*(){return this.auth.authenticate()})}call(t,n,r){return Ba(this,void 0,void 0,function*(){if(this.auth.isAuthenticating())return new Promise(a=>{const s=()=>{if(this.auth.isAuthenticating()){setTimeout(s,10);return}this.call(t,n,r).then(c=>a(c))};s()});n.headers=n.headers||{},this.auth instanceof yb&&(n.credentials="include"),this.auth.applyHeader(n.headers);const o=qM(t,{trc:this.env}),i=yield fetch(r!=null&&r.skipTrackingParam?t:o,n);if(!(i.status===204||i.status===304))try{return r!=null&&r.returnBlob?yield i.blob():yield i.json()}catch(a){if(a instanceof Error&&a.message.includes("Unexpected end of JSON input"))return;throw a}})}post(t,n,r={},o,i){return Ba(this,void 0,void 0,function*(){const a=Object.assign({method:"POST",body:i!=null&&i.nonJSONBody?n:JSON.stringify(n),headers:{Accept:"application/json, text/plain, */*","Content-Type":"application/json;charset=UTF-8"},signal:o},r);return this.call(this.url+t,a,i)})}get(t,n={},r){return Ba(this,void 0,void 0,function*(){return n.method="GET",this.call(this.url+t,n,r)})}delete(t,n={},r){return Ba(this,void 0,void 0,function*(){return n.method="DELETE",this.call(this.url+t,n,r)})}}const wN={errors:{invalidAttribute:"Invalid attribute {{attributeName}}. Hint: attributes for query should be extracted from the data model generated by the CLI tool.",noDimensionsOrMeasures:"Neither dimensions nor measures found. Query should have at least one dimension or measure.",invalidMeasure:'Invalid measure "{{measureName}}". Hint: measures for the query can be constructed using the "measureFactory" functions.',invalidFilter:'Invalid filter "{{filterName}}". Hint: filters for the query can be constructed using the "filterFactory" functions.',invalidHighlight:'Invalid highlight "{{highlightName}}". Hint: highlights for the query can be constructed using the "filterFactory" functions.',invalidCountNegative:'Invalid count "{{count}}". Count should be non-negative.',invalidOffset:'Invalid offset "{{offset}}". Offset should be non-negative.',missingHttpClient:"Query requires httpClient to work properly.",missingPostMethod:'httpClient must provide "post" method.'}},xN={errors:{invalidAttribute:"Недійсний атрибут {{attributeName}}. Підказка: атрибути для запиту повинні бути витягнуті з моделі даних, створеної за допомогою CLI-інструменту.",noDimensionsOrMeasures:"Не знайдено ні вимірів, ні показників. Запит повинен мати щонайменше один вимір або показник.",invalidMeasure:'Недійсний показник "{{measureName}}". Підказка: показники для запиту можна створити за допомогою функцій "measureFactory".',invalidFilter:'Недійсний фільтр "{{filterName}}". Підказка: фільтри для запиту можна створити за допомогою функцій "filterFactory".',invalidHighlight:'Недійсне виділення "{{highlightName}}". Підказка: виділення для запиту можна створити за допомогою функцій "filterFactory".',invalidCountNegative:`Недійсний count "{{count}}". Count повинен бути не від'ємним.`,invalidOffset:`Недійсний offset "{{offset}}". Offset повинен бути не від'ємним.`,missingHttpClient:"Для запиту потрібен httpClient, щоб працювати належним чином.",missingPostMethod:'httpClient повинен мати метод "post".'}},FT="sdkQueryClient",_N={en:wN,uk:xN};function CN(){return g.initI18next({resource:_N,language:"en",namespace:FT})}const{i18nextInstance:kN}=CN();var Mn={},BT={},Tu={},Cb={};(function(e){var t=g.commonjsGlobal&&g.commonjsGlobal.__awaiter||function(o,i,a,s){function c(l){return l instanceof a?l:new a(function(u){u(l)})}return new(a||(a=Promise))(function(l,u){function d(m){try{f(s.next(m))}catch(b){u(b)}}function p(m){try{f(s.throw(m))}catch(b){u(b)}}function f(m){m.done?l(m.value):c(m.value).then(d,p)}f((s=s.apply(o,i||[])).next())})};Object.defineProperty(e,"__esModule",{value:!0}),e.Task=e.ExecutionResultStatus=void 0;var n;(function(o){o.SUCCESS="SUCCESS",o.ERROR="ERROR"})(n=e.ExecutionResultStatus||(e.ExecutionResultStatus={}));class r{constructor(i,a,s){this.steps=i,this.passport=a,this.addons=s,this.statistics={startTime:new Date,steps:[],runtimeInfo:{}},this.currentStep=void 0}run(i){return t(this,void 0,void 0,function*(){let a=i,s;for(let l=0;l<this.steps.length;l+=1){this.currentStep=this.steps[l];const{resultValue:u,info:d}=yield this.currentStep.run(this,a);if(this.statistics.steps.push(d),d.success)a=u;else{s=d.error;break}}const c=this.statistics.steps.length===this.steps.length&&this.statistics.steps.every(l=>l.success);return this.statistics.endTime=new Date,{status:c?n.SUCCESS:n.ERROR,error:s,result:c?a:void 0,statistics:this.statistics}})}cancel(i){var a;return t(this,void 0,void 0,function*(){yield(a=this.currentStep)===null||a===void 0?void 0:a.cancel(this,i)})}addRuntimeInfo(i,a){this.statistics.runtimeInfo[i]=a}emitAddonEvent(i,...a){var s;const c=i.split("."),l=c[0],u=c[1],d=(s=this.addons)===null||s===void 0?void 0:s.find(f=>f.addonName===l),p=(d==null?void 0:d.events)[u];p(...a)}}e.Task=r})(Cb);var ip=g.commonjsGlobal&&g.commonjsGlobal.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Tu,"__esModule",{value:!0});Tu.AbstractTaskManager=void 0;const SN=Cb;class TN{constructor(t){this.runningTasks=new Map,this.addons=t||[]}runTask(t){return ip(this,void 0,void 0,function*(){const{taskId:n}=t.passport;this.runningTasks.set(n,t);const r=yield t.run();return this.runningTasks.delete(n),r})}createFlow(t){return n=>ip(this,void 0,void 0,function*(){const r=new SN.Task(t,n,this.addons);return this.runTask(r)})}cancel(t,n){return ip(this,void 0,void 0,function*(){const r=this.runningTasks.get(t);r&&(yield r.cancel(n))})}}Tu.AbstractTaskManager=TN;var Eu={},Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});Ws.TaskCanceledError=void 0;class EN extends Error{constructor(t){const n=`Task was canceled due to: "${t}"`;super(n)}}Ws.TaskCanceledError=EN;var a0=g.commonjsGlobal&&g.commonjsGlobal.__awaiter||function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};Object.defineProperty(Eu,"__esModule",{value:!0});Eu.Step=void 0;const ON=Ws;class DN{constructor(t,n,r){this.taskSelfResolvers=new Map,this.taskStepInfos=new Map,this.name=t,this.runLogic=n,this.cancelLogic=r}run(t,n){return a0(this,void 0,void 0,function*(){return this.addStepInfo(t,{name:this.name}),new Promise(r=>{const o=new Date,i=(a,s)=>{const c=new Date,l=c.getTime()-o.getTime();this.addStepInfo(t,{startTime:o,endTime:c,duration:l}),this.addStepInfo(t,s?{success:!1,error:s}:{success:!0}),r({resultValue:a,info:this.getStepInfo(t)})};this.taskSelfResolvers.set(t,i),this.runLogic(t,n).then(a=>i(a)).finally(()=>{this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t)}).catch(a=>i(void 0,a))})})}cancel(t,n){return a0(this,void 0,void 0,function*(){this.addStepInfo(t,{wasCanceled:!0,cancelingReason:n});const r=this.taskSelfResolvers.get(t);r==null||r(void 0,new ON.TaskCanceledError(n)),this.taskSelfResolvers.delete(t),this.taskStepInfos.delete(t),yield this.cancelLogic(t,n)})}addStepInfo(t,n){const r=this.taskStepInfos.get(t)||{},o=Object.assign(Object.assign({},r),n);this.taskStepInfos.set(t,o)}getStepInfo(t){return this.taskStepInfos.get(t)}}Eu.Step=DN;var Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});Ou.Addon=void 0;class RN{constructor(){this.events={}}}Ou.Addon=RN;var Du={},wl,AN=new Uint8Array(16);function HT(){if(!wl&&(wl=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto!="undefined"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!wl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return wl(AN)}const MN=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Ru(e){return typeof e=="string"&&MN.test(e)}var Qt=[];for(var ap=0;ap<256;++ap)Qt.push((ap+256).toString(16).substr(1));function Au(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase();if(!Ru(n))throw TypeError("Stringified UUID is invalid");return n}var s0,sp,lp=0,cp=0;function NN(e,t,n){var r=t&&n||0,o=t||new Array(16);e=e||{};var i=e.node||s0,a=e.clockseq!==void 0?e.clockseq:sp;if(i==null||a==null){var s=e.random||(e.rng||HT)();i==null&&(i=s0=[s[0]|1,s[1],s[2],s[3],s[4],s[5]]),a==null&&(a=sp=(s[6]<<8|s[7])&16383)}var c=e.msecs!==void 0?e.msecs:Date.now(),l=e.nsecs!==void 0?e.nsecs:cp+1,u=c-lp+(l-cp)/1e4;if(u<0&&e.clockseq===void 0&&(a=a+1&16383),(u<0||c>lp)&&e.nsecs===void 0&&(l=0),l>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");lp=c,cp=l,sp=a,c+=122192928e5;var d=((c&268435455)*1e4+l)%4294967296;o[r++]=d>>>24&255,o[r++]=d>>>16&255,o[r++]=d>>>8&255,o[r++]=d&255;var p=c/4294967296*1e4&268435455;o[r++]=p>>>8&255,o[r++]=p&255,o[r++]=p>>>24&15|16,o[r++]=p>>>16&255,o[r++]=a>>>8|128,o[r++]=a&255;for(var f=0;f<6;++f)o[r+f]=i[f];return t||Au(o)}function $T(e){if(!Ru(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=t&255,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=t&255,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=t&255,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=t&255,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=t&255,n}function PN(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n<e.length;++n)t.push(e.charCodeAt(n));return t}var IN="6ba7b810-9dad-11d1-80b4-00c04fd430c8",jN="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function zT(e,t,n){function r(o,i,a,s){if(typeof o=="string"&&(o=PN(o)),typeof i=="string"&&(i=$T(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+o.length);if(c.set(i),c.set(o,i.length),c=n(c),c[6]=c[6]&15|t,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return Au(c)}try{r.name=e}catch(o){}return r.DNS=IN,r.URL=jN,r}function LN(e){if(typeof e=="string"){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n<t.length;++n)e[n]=t.charCodeAt(n)}return FN(BN(HN(e),e.length*8))}function FN(e){for(var t=[],n=e.length*32,r="0123456789abcdef",o=0;o<n;o+=8){var i=e[o>>5]>>>o%32&255,a=parseInt(r.charAt(i>>>4&15)+r.charAt(i&15),16);t.push(a)}return t}function WT(e){return(e+64>>>9<<4)+14+1}function BN(e,t){e[t>>5]|=128<<t%32,e[WT(t)-1]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var s=n,c=r,l=o,u=i;n=on(n,r,o,i,e[a],7,-680876936),i=on(i,n,r,o,e[a+1],12,-389564586),o=on(o,i,n,r,e[a+2],17,606105819),r=on(r,o,i,n,e[a+3],22,-1044525330),n=on(n,r,o,i,e[a+4],7,-176418897),i=on(i,n,r,o,e[a+5],12,1200080426),o=on(o,i,n,r,e[a+6],17,-1473231341),r=on(r,o,i,n,e[a+7],22,-45705983),n=on(n,r,o,i,e[a+8],7,1770035416),i=on(i,n,r,o,e[a+9],12,-1958414417),o=on(o,i,n,r,e[a+10],17,-42063),r=on(r,o,i,n,e[a+11],22,-1990404162),n=on(n,r,o,i,e[a+12],7,1804603682),i=on(i,n,r,o,e[a+13],12,-40341101),o=on(o,i,n,r,e[a+14],17,-1502002290),r=on(r,o,i,n,e[a+15],22,1236535329),n=an(n,r,o,i,e[a+1],5,-165796510),i=an(i,n,r,o,e[a+6],9,-1069501632),o=an(o,i,n,r,e[a+11],14,643717713),r=an(r,o,i,n,e[a],20,-373897302),n=an(n,r,o,i,e[a+5],5,-701558691),i=an(i,n,r,o,e[a+10],9,38016083),o=an(o,i,n,r,e[a+15],14,-660478335),r=an(r,o,i,n,e[a+4],20,-405537848),n=an(n,r,o,i,e[a+9],5,568446438),i=an(i,n,r,o,e[a+14],9,-1019803690),o=an(o,i,n,r,e[a+3],14,-187363961),r=an(r,o,i,n,e[a+8],20,1163531501),n=an(n,r,o,i,e[a+13],5,-1444681467),i=an(i,n,r,o,e[a+2],9,-51403784),o=an(o,i,n,r,e[a+7],14,1735328473),r=an(r,o,i,n,e[a+12],20,-1926607734),n=sn(n,r,o,i,e[a+5],4,-378558),i=sn(i,n,r,o,e[a+8],11,-2022574463),o=sn(o,i,n,r,e[a+11],16,1839030562),r=sn(r,o,i,n,e[a+14],23,-35309556),n=sn(n,r,o,i,e[a+1],4,-1530992060),i=sn(i,n,r,o,e[a+4],11,1272893353),o=sn(o,i,n,r,e[a+7],16,-155497632),r=sn(r,o,i,n,e[a+10],23,-1094730640),n=sn(n,r,o,i,e[a+13],4,681279174),i=sn(i,n,r,o,e[a],11,-358537222),o=sn(o,i,n,r,e[a+3],16,-722521979),r=sn(r,o,i,n,e[a+6],23,76029189),n=sn(n,r,o,i,e[a+9],4,-640364487),i=sn(i,n,r,o,e[a+12],11,-421815835),o=sn(o,i,n,r,e[a+15],16,530742520),r=sn(r,o,i,n,e[a+2],23,-995338651),n=ln(n,r,o,i,e[a],6,-198630844),i=ln(i,n,r,o,e[a+7],10,1126891415),o=ln(o,i,n,r,e[a+14],15,-1416354905),r=ln(r,o,i,n,e[a+5],21,-57434055),n=ln(n,r,o,i,e[a+12],6,1700485571),i=ln(i,n,r,o,e[a+3],10,-1894986606),o=ln(o,i,n,r,e[a+10],15,-1051523),r=ln(r,o,i,n,e[a+1],21,-2054922799),n=ln(n,r,o,i,e[a+8],6,1873313359),i=ln(i,n,r,o,e[a+15],10,-30611744),o=ln(o,i,n,r,e[a+6],15,-1560198380),r=ln(r,o,i,n,e[a+13],21,1309151649),n=ln(n,r,o,i,e[a+4],6,-145523070),i=ln(i,n,r,o,e[a+11],10,-1120210379),o=ln(o,i,n,r,e[a+2],15,718787259),r=ln(r,o,i,n,e[a+9],21,-343485551),n=_o(n,s),r=_o(r,c),o=_o(o,l),i=_o(i,u)}return[n,r,o,i]}function HN(e){if(e.length===0)return[];for(var t=e.length*8,n=new Uint32Array(WT(t)),r=0;r<t;r+=8)n[r>>5]|=(e[r/8]&255)<<r%32;return n}function _o(e,t){var n=(e&65535)+(t&65535),r=(e>>16)+(t>>16)+(n>>16);return r<<16|n&65535}function $N(e,t){return e<<t|e>>>32-t}function Mu(e,t,n,r,o,i){return _o($N(_o(_o(t,e),_o(r,i)),o),n)}function on(e,t,n,r,o,i,a){return Mu(t&n|~t&r,e,t,o,i,a)}function an(e,t,n,r,o,i,a){return Mu(t&r|n&~r,e,t,o,i,a)}function sn(e,t,n,r,o,i,a){return Mu(t^n^r,e,t,o,i,a)}function ln(e,t,n,r,o,i,a){return Mu(n^(t|~r),e,t,o,i,a)}var zN=zT("v3",48,LN);const WN=zN;function UN(e,t,n){e=e||{};var r=e.random||(e.rng||HT)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var o=0;o<16;++o)t[n+o]=r[o];return t}return Au(r)}function YN(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:return t^n^r;case 2:return t&n^t&r^n&r;case 3:return t^n^r}}function up(e,t){return e<<t|e>>>32-t}function qN(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof e=="string"){var r=unescape(encodeURIComponent(e));e=[];for(var o=0;o<r.length;++o)e.push(r.charCodeAt(o))}else Array.isArray(e)||(e=Array.prototype.slice.call(e));e.push(128);for(var i=e.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=e[c*64+u*4]<<24|e[c*64+u*4+1]<<16|e[c*64+u*4+2]<<8|e[c*64+u*4+3];s[c]=l}s[a-1][14]=(e.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(e.length-1)*8&4294967295;for(var d=0;d<a;++d){for(var p=new Uint32Array(80),f=0;f<16;++f)p[f]=s[d][f];for(var m=16;m<80;++m)p[m]=up(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);for(var b=n[0],v=n[1],w=n[2],_=n[3],T=n[4],y=0;y<80;++y){var k=Math.floor(y/20),S=up(b,5)+YN(k,v,w,_)+T+t[k]+p[y]>>>0;T=_,_=w,w=up(v,30)>>>0,v=b,b=S}n[0]=n[0]+b>>>0,n[1]=n[1]+v>>>0,n[2]=n[2]+w>>>0,n[3]=n[3]+_>>>0,n[4]=n[4]+T>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,n[0]&255,n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,n[1]&255,n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,n[2]&255,n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,n[3]&255,n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,n[4]&255]}var VN=zT("v5",80,qN);const GN=VN,QN="00000000-0000-0000-0000-000000000000";function JN(e){if(!Ru(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}const ZN=Object.freeze(Object.defineProperty({__proto__:null,NIL:QN,parse:$T,stringify:Au,v1:NN,v3:WN,v4:UN,v5:GN,validate:Ru,version:JN},Symbol.toStringTag,{value:"Module"})),KN=g.getAugmentedNamespace(ZN);Object.defineProperty(Du,"__esModule",{value:!0});Du.TaskPassport=void 0;const XN=KN;class eP{constructor(){this.taskId=(0,XN.v4)()}}Du.TaskPassport=eP;(function(e){var t=g.commonjsGlobal&&g.commonjsGlobal.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=g.commonjsGlobal&&g.commonjsGlobal.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(Tu,e),n(Eu,e),n(Cb,e),n(Ou,e),n(Du,e),n(Ws,e)})(BT);(function(e){var t=g.commonjsGlobal&&g.commonjsGlobal.__createBinding||(Object.create?function(r,o,i,a){a===void 0&&(a=i);var s=Object.getOwnPropertyDescriptor(o,i);(!s||("get"in s?!o.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return o[i]}}),Object.defineProperty(r,a,s)}:function(r,o,i,a){a===void 0&&(a=i),r[a]=o[i]}),n=g.commonjsGlobal&&g.commonjsGlobal.__exportStar||function(r,o){for(var i in r)i!=="default"&&!Object.prototype.hasOwnProperty.call(o,i)&&t(o,r,i)};Object.defineProperty(e,"__esModule",{value:!0}),n(BT,e)})(Mn);const UT=e=>{if(e!==void 0)return`${e}`},YT=e=>{if(e!==void 0)return new Date(e).toISOString()},kb=()=>!1;function l0(e,t){const n=t.filter;return"or"in n?r=>n.or.map(o=>e(Object.assign(Object.assign({},t),{filter:o}))).reduce((o,i)=>o||i(r),!1):"and"in n?r=>n.and.map(o=>e(Object.assign(Object.assign({},t),{filter:o}))).reduce((o,i)=>o&&i(r),!0):e(t)}function tP(e){const{datatype:t}=e,n=e.filter,r=t==="datetime"?YT:UT;return o=>{const i=n.members.map(r),a=r(o);return i.includes(a)}}function nP(e){const{datatype:t}=e,n=e.filter,r=t==="datetime"?YT:UT;return o=>{var i,a;const s=((a=(i=n.exclude)===null||i===void 0?void 0:i.members)===null||a===void 0?void 0:a.map(r))||[],c=r(o);return!s.includes(c)}}function rP(e){const t=e.filter,n=g.getSelectedConditionOption(t);return n===g.ConditionFilterType.STARTS_WITH?r=>new RegExp(`^${t.startsWith}`,"i").test(r):n===g.ConditionFilterType.ENDS_WITH?r=>new RegExp(`${t.endsWith}$`,"i").test(r):n===g.ConditionFilterType.CONTAINS?r=>new RegExp(t.contains,"i").test(r):n===g.ConditionFilterType.EQUALS?r=>r.localeCompare(t.equals,void 0,{sensitivity:"base"})===0:n===g.ConditionFilterType.DOESNT_START_WITH?r=>!new RegExp(`^${t.doesntStartWith}`,"i").test(r):n===g.ConditionFilterType.DOESNT_END_WITH?r=>!new RegExp(`${t.doesntEndWith}$`,"i").test(r):n===g.ConditionFilterType.DOESNT_CONTAIN?r=>!new RegExp(t.doesntContain,"i").test(r):n===g.ConditionFilterType.DOESNT_EQUAL?r=>r.localeCompare(t.doesntEqual,void 0,{sensitivity:"base"})!==0:kb}function oP(e){const t=e.filter,n=g.getSelectedConditionOption(t);return n===g.ConditionFilterType.EQUALS?r=>Number(t.equals)===Number(r):n===g.ConditionFilterType.DOESNT_EQUAL?r=>Number(t.doesntEqual)!==Number(r):n===g.ConditionFilterType.LESS_THAN?r=>Number(r)<Number(t.toNotEqual):n===g.ConditionFilterType.GREATER_THAN?r=>Number(r)>Number(t.fromNotEqual):n===g.ConditionFilterType.BETWEEN?r=>Number(t.to)>=Number(r)&&Number(r)>=Number(t.from):n===g.ConditionFilterType.GREATER_THAN_OR_EQUAL?r=>Number(r)>=Number(t.from):n===g.ConditionFilterType.LESS_THAN_OR_EQUAL?r=>Number(t.to)>=Number(r):kb}function iP(e){const t=e,{datatype:n}=t,r=t.filter;return g.isSpecificItemsFilter(r)?tP(t):g.isConditionFilter(r)&&g.getSelectedConditionOption(r)===g.ConditionFilterType.IS_NOT?nP(t):n==="text"?l0(rP,t):n==="numeric"?l0(oP,t):kb}var qT={exports:{}};/*! @preserve
3
+ * numeral.js
4
+ * version : 2.0.6
5
+ * author : Adam Draper
6
+ * license : MIT
7
+ * http://adamwdraper.github.com/Numeral-js/
8
+ */(function(e){(function(t,n){e.exports?e.exports=n():t.numeral=n()})(g.commonjsGlobal,function(){var t,n,r="2.0.6",o={},i={},a={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0",scalePercentBy100:!0},s={currentLocale:a.currentLocale,zeroFormat:a.zeroFormat,nullFormat:a.nullFormat,defaultFormat:a.defaultFormat,scalePercentBy100:a.scalePercentBy100};function c(l,u){this._input=l,this._value=u}return t=function(l){var u,d,p,f;if(t.isNumeral(l))u=l.value();else if(l===0||typeof l=="undefined")u=0;else if(l===null||n.isNaN(l))u=null;else if(typeof l=="string")if(s.zeroFormat&&l===s.zeroFormat)u=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)u=null;else{for(d in o)if(f=typeof o[d].regexps.unformat=="function"?o[d].regexps.unformat():o[d].regexps.unformat,f&&l.match(f)){p=o[d].unformat;break}p=p||t._.stringToNumber,u=p(l)}else u=Number(l)||null;return new c(l,u)},t.version=r,t.isNumeral=function(l){return l instanceof c},t._=n={numberToFormat:function(l,u,d){var p=i[t.options.currentLocale],f=!1,m=!1,b=0,v="",w=1e12,_=1e9,T=1e6,y=1e3,k="",S=!1,x,C,O,D,R,M,F;if(l=l||0,C=Math.abs(l),t._.includes(u,"(")?(f=!0,u=u.replace(/[\(|\)]/g,"")):(t._.includes(u,"+")||t._.includes(u,"-"))&&(R=t._.includes(u,"+")?u.indexOf("+"):l<0?u.indexOf("-"):-1,u=u.replace(/[\+|\-]/g,"")),t._.includes(u,"a")&&(x=u.match(/a(k|m|b|t)?/),x=x?x[1]:!1,t._.includes(u," a")&&(v=" "),u=u.replace(new RegExp(v+"a[kmbt]?"),""),C>=w&&!x||x==="t"?(v+=p.abbreviations.trillion,l=l/w):C<w&&C>=_&&!x||x==="b"?(v+=p.abbreviations.billion,l=l/_):C<_&&C>=T&&!x||x==="m"?(v+=p.abbreviations.million,l=l/T):(C<T&&C>=y&&!x||x==="k")&&(v+=p.abbreviations.thousand,l=l/y)),t._.includes(u,"[.]")&&(m=!0,u=u.replace("[.]",".")),O=l.toString().split(".")[0],D=u.split(".")[1],M=u.indexOf(","),b=(u.split(".")[0].split(",")[0].match(/0/g)||[]).length,D?(t._.includes(D,"[")?(D=D.replace("]",""),D=D.split("["),k=t._.toFixed(l,D[0].length+D[1].length,d,D[1].length)):k=t._.toFixed(l,D.length,d),O=k.split(".")[0],t._.includes(k,".")?k=p.delimiters.decimal+k.split(".")[1]:k="",m&&Number(k.slice(1))===0&&(k="")):O=t._.toFixed(l,0,d),v&&!x&&Number(O)>=1e3&&v!==p.abbreviations.trillion)switch(O=String(Number(O)/1e3),v){case p.abbreviations.thousand:v=p.abbreviations.million;break;case p.abbreviations.million:v=p.abbreviations.billion;break;case p.abbreviations.billion:v=p.abbreviations.trillion;break}if(t._.includes(O,"-")&&(O=O.slice(1),S=!0),O.length<b)for(var N=b-O.length;N>0;N--)O="0"+O;return M>-1&&(O=O.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+p.delimiters.thousands)),u.indexOf(".")===0&&(O=""),F=O+k+(v||""),f?F=(f&&S?"(":"")+F+(f&&S?")":""):R>=0?F=R===0?(S?"-":"+")+F:F+(S?"-":"+"):S&&(F="-"+F),F},stringToNumber:function(l){var u=i[s.currentLocale],d=l,p={thousand:3,million:6,billion:9,trillion:12},f,m,b;if(s.zeroFormat&&l===s.zeroFormat)m=0;else if(s.nullFormat&&l===s.nullFormat||!l.replace(/[^0-9]+/g,"").length)m=null;else{m=1,u.delimiters.decimal!=="."&&(l=l.replace(/\./g,"").replace(u.delimiters.decimal,"."));for(f in p)if(b=new RegExp("[^a-zA-Z]"+u.abbreviations[f]+"(?:\\)|(\\"+u.currency.symbol+")?(?:\\))?)?$"),d.match(b)){m*=Math.pow(10,p[f]);break}m*=(l.split("-").length+Math.min(l.split("(").length-1,l.split(")").length-1))%2?1:-1,l=l.replace(/[^0-9\.]+/g,""),m*=Number(l)}return m},isNaN:function(l){return typeof l=="number"&&isNaN(l)},includes:function(l,u){return l.indexOf(u)!==-1},insert:function(l,u,d){return l.slice(0,d)+u+l.slice(d)},reduce:function(l,u){if(this===null)throw new TypeError("Array.prototype.reduce called on null or undefined");if(typeof u!="function")throw new TypeError(u+" is not a function");var d=Object(l),p=d.length>>>0,f=0,m;if(arguments.length===3)m=arguments[2];else{for(;f<p&&!(f in d);)f++;if(f>=p)throw new TypeError("Reduce of empty array with no initial value");m=d[f++]}for(;f<p;f++)f in d&&(m=u(m,d[f],f,d));return m},multiplier:function(l){var u=l.toString().split(".");return u.length<2?1:Math.pow(10,u[1].length)},correctionFactor:function(){var l=Array.prototype.slice.call(arguments);return l.reduce(function(u,d){var p=n.multiplier(d);return u>p?u:p},1)},toFixed:function(l,u,d,p){var f=l.toString().split("."),m=u-(p||0),b,v,w,_;return f.length===2?b=Math.min(Math.max(f[1].length,m),u):b=m,w=Math.pow(10,b),_=(d(l+"e+"+b)/w).toFixed(b),p>u-b&&(v=new RegExp("\\.?0{1,"+(p-(u-b))+"}$"),_=_.replace(v,"")),_}},t.options=s,t.formats=o,t.locales=i,t.locale=function(l){return l&&(s.currentLocale=l.toLowerCase()),s.currentLocale},t.localeData=function(l){if(!l)return i[s.currentLocale];if(l=l.toLowerCase(),!i[l])throw new Error("Unknown locale : "+l);return i[l]},t.reset=function(){for(var l in a)s[l]=a[l]},t.zeroFormat=function(l){s.zeroFormat=typeof l=="string"?l:null},t.nullFormat=function(l){s.nullFormat=typeof l=="string"?l:null},t.defaultFormat=function(l){s.defaultFormat=typeof l=="string"?l:"0.0"},t.register=function(l,u,d){if(u=u.toLowerCase(),this[l+"s"][u])throw new TypeError(u+" "+l+" already registered.");return this[l+"s"][u]=d,d},t.validate=function(l,u){var d,p,f,m,b,v,w,_;if(typeof l!="string"&&(l+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",l)),l=l.trim(),l.match(/^\d+$/))return!0;if(l==="")return!1;try{w=t.localeData(u)}catch(T){w=t.localeData(t.locale())}return f=w.currency.symbol,b=w.abbreviations,d=w.delimiters.decimal,w.delimiters.thousands==="."?p="\\.":p=w.delimiters.thousands,_=l.match(/^[^\d]+/),_!==null&&(l=l.substr(1),_[0]!==f)||(_=l.match(/[^\d]+$/),_!==null&&(l=l.slice(0,-1),_[0]!==b.thousand&&_[0]!==b.million&&_[0]!==b.billion&&_[0]!==b.trillion))?!1:(v=new RegExp(p+"{2}"),l.match(/[^\d.,]/g)?!1:(m=l.split(d),m.length>2?!1:m.length<2?!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v):m[0].length===1?!!m[0].match(/^\d+$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/):!!m[0].match(/^\d+.*\d$/)&&!m[0].match(v)&&!!m[1].match(/^\d+$/)))},t.fn=c.prototype={clone:function(){return t(this)},format:function(l,u){var d=this._value,p=l||s.defaultFormat,f,m,b;if(u=u||Math.round,d===0&&s.zeroFormat!==null)m=s.zeroFormat;else if(d===null&&s.nullFormat!==null)m=s.nullFormat;else{for(f in o)if(p.match(o[f].regexps.format)){b=o[f].format;break}b=b||t._.numberToFormat,m=b(d,p,u)}return m},value:function(){return this._value},input:function(){return this._input},set:function(l){return this._value=Number(l),this},add:function(l){var u=n.correctionFactor.call(null,this._value,l);function d(p,f,m,b){return p+Math.round(u*f)}return this._value=n.reduce([this._value,l],d,0)/u,this},subtract:function(l){var u=n.correctionFactor.call(null,this._value,l);function d(p,f,m,b){return p-Math.round(u*f)}return this._value=n.reduce([l],d,Math.round(this._value*u))/u,this},multiply:function(l){function u(d,p,f,m){var b=n.correctionFactor(d,p);return Math.round(d*b)*Math.round(p*b)/Math.round(b*b)}return this._value=n.reduce([this._value,l],u,1),this},divide:function(l){function u(d,p,f,m){var b=n.correctionFactor(d,p);return Math.round(d*b)/Math.round(p*b)}return this._value=n.reduce([this._value,l],u),this},difference:function(l){return Math.abs(t(this._value).subtract(l).value())}},t.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(l){var u=l%10;return~~(l%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th"},currency:{symbol:"$"}}),function(){t.register("format","bps",{regexps:{format:/(BPS)/,unformat:/(BPS)/},format:function(l,u,d){var p=t._.includes(u," BPS")?" ":"",f;return l=l*1e4,u=u.replace(/\s?BPS/,""),f=t._.numberToFormat(l,u,d),t._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"BPS"),f=f.join("")):f=f+p+"BPS",f},unformat:function(l){return+(t._.stringToNumber(l)*1e-4).toFixed(15)}})}(),function(){var l={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},u={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]},d=l.suffixes.concat(u.suffixes.filter(function(f){return l.suffixes.indexOf(f)<0})),p=d.join("|");p="("+p.replace("B","B(?!PS)")+")",t.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp(p)},format:function(f,m,b){var v,w=t._.includes(m,"ib")?u:l,_=t._.includes(m," b")||t._.includes(m," ib")?" ":"",T,y,k;for(m=m.replace(/\s?i?b/,""),T=0;T<=w.suffixes.length;T++)if(y=Math.pow(w.base,T),k=Math.pow(w.base,T+1),f===null||f===0||f>=y&&f<k){_+=w.suffixes[T],y>0&&(f=f/y);break}return v=t._.numberToFormat(f,m,b),v+_},unformat:function(f){var m=t._.stringToNumber(f),b,v;if(m){for(b=l.suffixes.length-1;b>=0;b--){if(t._.includes(f,l.suffixes[b])){v=Math.pow(l.base,b);break}if(t._.includes(f,u.suffixes[b])){v=Math.pow(u.base,b);break}}m*=v||1}return m}})}(),function(){t.register("format","currency",{regexps:{format:/(\$)/},format:function(l,u,d){var p=t.locales[t.options.currentLocale],f={before:u.match(/^([\+|\-|\(|\s|\$]*)/)[0],after:u.match(/([\+|\-|\)|\s|\$]*)$/)[0]},m,b,v;for(u=u.replace(/\s?\$\s?/,""),m=t._.numberToFormat(l,u,d),l>=0?(f.before=f.before.replace(/[\-\(]/,""),f.after=f.after.replace(/[\-\)]/,"")):l<0&&!t._.includes(f.before,"-")&&!t._.includes(f.before,"(")&&(f.before="-"+f.before),v=0;v<f.before.length;v++)switch(b=f.before[v],b){case"$":m=t._.insert(m,p.currency.symbol,v);break;case" ":m=t._.insert(m," ",v+p.currency.symbol.length-1);break}for(v=f.after.length-1;v>=0;v--)switch(b=f.after[v],b){case"$":m=v===f.after.length-1?m+p.currency.symbol:t._.insert(m,p.currency.symbol,-(f.after.length-(1+v)));break;case" ":m=v===f.after.length-1?m+" ":t._.insert(m," ",-(f.after.length-(1+v)+p.currency.symbol.length-1));break}return m}})}(),function(){t.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(l,u,d){var p,f=typeof l=="number"&&!t._.isNaN(l)?l.toExponential():"0e+0",m=f.split("e");return u=u.replace(/e[\+|\-]{1}0/,""),p=t._.numberToFormat(Number(m[0]),u,d),p+"e"+m[1]},unformat:function(l){var u=t._.includes(l,"e+")?l.split("e+"):l.split("e-"),d=Number(u[0]),p=Number(u[1]);p=t._.includes(l,"e-")?p*=-1:p;function f(m,b,v,w){var _=t._.correctionFactor(m,b),T=m*_*(b*_)/(_*_);return T}return t._.reduce([d,Math.pow(10,p)],f,1)}})}(),function(){t.register("format","ordinal",{regexps:{format:/(o)/},format:function(l,u,d){var p=t.locales[t.options.currentLocale],f,m=t._.includes(u," o")?" ":"";return u=u.replace(/\s?o/,""),m+=p.ordinal(l),f=t._.numberToFormat(l,u,d),f+m}})}(),function(){t.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(l,u,d){var p=t._.includes(u," %")?" ":"",f;return t.options.scalePercentBy100&&(l=l*100),u=u.replace(/\s?\%/,""),f=t._.numberToFormat(l,u,d),t._.includes(f,")")?(f=f.split(""),f.splice(-1,0,p+"%"),f=f.join("")):f=f+p+"%",f},unformat:function(l){var u=t._.stringToNumber(l);return t.options.scalePercentBy100?u*.01:u}})}(),function(){t.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(l,u,d){var p=Math.floor(l/60/60),f=Math.floor((l-p*60*60)/60),m=Math.round(l-p*60*60-f*60);return p+":"+(f<10?"0"+f:f)+":"+(m<10?"0"+m:m)},unformat:function(l){var u=l.split(":"),d=0;return u.length===3?(d=d+Number(u[0])*60*60,d=d+Number(u[1])*60,d=d+Number(u[2])):u.length===2&&(d=d+Number(u[0])*60,d=d+Number(u[1])),Number(d)}})}(),t})})(qT);var aP=qT.exports;const sP=g.getDefaultExportFromCjs(aP),lP=(e,t)=>{const n=dP(e);return cP(n,t)};function cP(e,t){return{columns:t==null?void 0:t.map(n=>({name:n.name,type:g.simpleColumnType(n.type)})),rows:uP(e)}}function uP(e){var t;const n=(t=e[0])===null||t===void 0?void 0:t.map((r,o)=>e.some(i=>"selected"in i[o]));return e.map(r=>{const o=n.some((i,a)=>i&&!r[a].selected);return r.map(i=>({data:i.data,text:i.text,blur:o}))})}function dP({values:e=[],metadata:t=[]}){var n,r,o,i;e[0]&&!Array.isArray(e[0])&&(e=[e]);for(let a=0;a<e.length;a++){const s=e[a];for(let c=0;c<s.length;c++)t[c].format&&(!((r=(n=t[c])===null||n===void 0?void 0:n.format)===null||r===void 0)&&r.number)&&(s[c].text=sP(s[c].data).format((i=(o=t[c])===null||o===void 0?void 0:o.format)===null||i===void 0?void 0:i.number))}return e}var Jo=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};class pP extends Mn.AbstractTaskManager{constructor(t,n){super(),this.sentRequestsAbortersMap=new Map,this.executeQuerySending=super.createFlow([new Mn.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>Jo(this,void 0,void 0,function*(){})),new Mn.Step("SEND_JAQL_QUERY",this.sendJaqlQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executeDownloadCsvSending=super.createFlow([new Mn.Step("PREPARE_JAQL_PAYLOAD",this.prepareJaqlPayload.bind(this),()=>Jo(this,void 0,void 0,function*(){})),new Mn.Step("SEND_DOWNLOAD_CSV_QUERY",this.sendCsvQuery.bind(this),this.cancelDataRetrievalQuery.bind(this))]),this.executePivotQuerySending=super.createFlow([new Mn.Step("PREPARE_JAQL_PAYLOAD",this.preparePivotJaqlPayload.bind(this),()=>Jo(this,void 0,void 0,function*(){})),new Mn.Step("SEND_JAQL_QUERY",this.sendPivotJaqlQuery.bind(this),this.cancelPivotJaqlQuery.bind(this))]),this.queryApi=t,this.pivotClient=n}prepareJaqlPayload(t){return Jo(this,void 0,void 0,function*(){const{queryDescription:n,executionConfig:r}=t.passport,o=g.getJaqlQueryPayload(n,r.shouldSkipHighlightsWithoutAttributes),i=t.passport.executionConfig.onBeforeQuery;return i?i(o):o})}sendJaqlQuery(t,n){return Jo(this,void 0,void 0,function*(){const{queryDescription:r,taskId:o}=t.passport,{responsePromise:i,abortHttpRequest:a}=this.queryApi.sendJaqlRequest(t.passport.queryDescription.dataSource,n);this.sentRequestsAbortersMap.set(o,a);const s=yield i.finally(()=>{this.sentRequestsAbortersMap.delete(o)});hP(s);const c=[...r.attributes,...r.measures],l=(s.headers||[]).slice(c.length).map(u=>({name:u,type:"number"}));return lP(s,[...c,...l])})}sendCsvQuery(t,n){return Jo(this,void 0,void 0,function*(){const{taskId:r}=t.passport,{responsePromise:o,abortHttpRequest:i}=this.queryApi.sendDownloadCsvRequest(t.passport.queryDescription.dataSource,n);return this.sentRequestsAbortersMap.set(r,i),o.finally(()=>{this.sentRequestsAbortersMap.delete(r)})})}cancelDataRetrievalQuery(t){const n=t.passport.taskId,r=this.sentRequestsAbortersMap.get(n);return r&&(r(),this.sentRequestsAbortersMap.delete(n)),this.queryApi.sendCancelJaqlQueryRequest(n,t.passport.queryDescription.dataSource)}preparePivotJaqlPayload(t){return Jo(this,void 0,void 0,function*(){const{pivotQueryDescription:n,executionConfig:r}=t.passport,o=g.getPivotJaqlQueryPayload(n,r.shouldSkipHighlightsWithoutAttributes),i=t.passport.executionConfig.onBeforeQuery;return i?i(o):o})}sendPivotJaqlQuery(t,n){var r;const{pivotQueryDescription:o}=t.passport;return this.pivotClient.queryData(n,!0,(r=o.count)!==null&&r!==void 0?r:fV,!1)}cancelPivotJaqlQuery(t){const n=t.passport.taskId,r=this.sentRequestsAbortersMap.get(n);return r&&(r(),this.sentRequestsAbortersMap.delete(n)),this.queryApi.sendCancelJaqlQueryRequest(n,t.passport.pivotQueryDescription.dataSource)}}function hP(e){var t;if(e.error)throw new Error(`${e.details} ${(t=e.database)!==null&&t!==void 0?t:""} ${e.extraDetails?JSON.stringify(e.extraDetails):""}`);return!0}class c0 extends Mn.TaskPassport{constructor(t,n,r){super(),this.queryDescription=n,this.type=t,this.executionConfig=r}}class fP extends Mn.TaskPassport{constructor(t,n,r){super(),this.pivotQueryDescription=n,this.type=t,this.executionConfig=r}}var xl=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};const _s="api/datasources",gP="api/v2/datamodels";class mP{constructor(t){this.httpClient=t}getDataSourceFields(t,n=9999,r=0){return xl(this,void 0,void 0,function*(){const o=g.getDataSourceName(t),i=`${_s}/${encodeURIComponent(o)}/fields/search`;try{return yield this.httpClient.post(i,{offset:r,count:n})}catch(a){throw new Error(`Failed to get fields for data source "${t}". Please make sure the data source exists and is accessible.`)}})}getDataSourceList(){return xl(this,void 0,void 0,function*(){const t=`${_s}/?sharedWith=r,w`;return this.httpClient.get(t)})}getDataSourceSchema(t){return xl(this,void 0,void 0,function*(){const n=`${gP}/schema?title=${encodeURIComponent(t)}`;return this.httpClient.get(n)})}sendJaqlRequest(t,n){const r=VT(t),o=new AbortController;return{responsePromise:this.httpClient.post(r,n,void 0,o.signal).then(i=>Array.isArray(i)?{values:[],metadata:[]}:i),abortHttpRequest:i=>o.abort(i)}}sendDownloadCsvRequest(t,n){const r=yP(t),o=new AbortController,i=new URLSearchParams;return i.append("data",encodeURIComponent(JSON.stringify(n))),{responsePromise:this.httpClient.post(r,i,{headers:{"Content-Type":"application/x-www-form-urlencoded"}},o.signal,{nonJSONBody:!0,returnBlob:!0}),abortHttpRequest:a=>o.abort(a)}}sendCancelJaqlQueryRequest(t,n){return this.sendCancelMultipleJaqlQueriesRequest([t],n)}sendCancelMultipleJaqlQueriesRequest(t,n){return xl(this,void 0,void 0,function*(){const r={queries:t.join(";")},o=vP(n);try{yield this.httpClient.post(o,r)}catch(i){if(i.status==="404"){const a=bP(n);yield this.httpClient.post(a,r)}else throw i}})}}function vP(e){const t=encodeURIComponent(g.getDataSourceName(e));return`${_s}/localhost/${t}/cancel_queries`}function bP(e){const t=encodeURIComponent(g.getDataSourceName(e));return`${_s}/live/${t}/cancel_queries`}function VT(e){const t=encodeURIComponent(g.getDataSourceName(e));return`${_s}/${t}/jaql`}function yP(e){return`${VT(e)}/csv`}class Cn extends g.AbstractTranslatableError{constructor(t,n){super(FT,{key:t,interpolationOptions:n},kN.t)}get status(){return this.interpolationOptions.status}}var wP=Object.defineProperty,xP=Object.defineProperties,_P=Object.getOwnPropertyDescriptors,vc=Object.getOwnPropertySymbols,GT=Object.prototype.hasOwnProperty,QT=Object.prototype.propertyIsEnumerable,fr=Math.pow,Pm=(e,t,n)=>t in e?wP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,ee=(e,t)=>{for(var n in t||(t={}))GT.call(t,n)&&Pm(e,n,t[n]);if(vc)for(var n of vc(t))QT.call(t,n)&&Pm(e,n,t[n]);return e},xe=(e,t)=>xP(e,_P(t)),Ft=(e,t)=>{var n={};for(var r in e)GT.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&vc)for(var r of vc(e))t.indexOf(r)<0&&QT.call(e,r)&&(n[r]=e[r]);return n},B=(e,t,n)=>(Pm(e,typeof t!="symbol"?t+"":t,n),n),JT=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{s(n.next(c))}catch(l){o(l)}},a=c=>{try{s(n.throw(c))}catch(l){o(l)}},s=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,a);s((n=n.apply(e,t)).next())}),ii=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function zr(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){if(this instanceof r){var o=[null];o.push.apply(o,arguments);var i=Function.bind.apply(t,o);return new i}return t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var ds={},CP={get exports(){return ds},set exports(e){ds=e}},u0;function kP(){if(u0)return ds;u0=1;var e=typeof Reflect=="object"?Reflect:null,t=e&&typeof e.apply=="function"?e.apply:function(y,k,S){return Function.prototype.apply.call(y,k,S)},n;e&&typeof e.ownKeys=="function"?n=e.ownKeys:Object.getOwnPropertySymbols?n=function(y){return Object.getOwnPropertyNames(y).concat(Object.getOwnPropertySymbols(y))}:n=function(y){return Object.getOwnPropertyNames(y)};function r(y){console&&console.warn&&console.warn(y)}var o=Number.isNaN||function(y){return y!==y};function i(){i.init.call(this)}CP.exports=i,ds.once=w,i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(y){if(typeof y!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof y)}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+y+".");a=y}}),i.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(y){if(typeof y!="number"||y<0||o(y))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+y+".");return this._maxListeners=y,this};function c(y){return y._maxListeners===void 0?i.defaultMaxListeners:y._maxListeners}i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(y){for(var k=[],S=1;S<arguments.length;S++)k.push(arguments[S]);var x=y==="error",C=this._events;if(C!==void 0)x=x&&C.error===void 0;else if(!x)return!1;if(x){var O;if(k.length>0&&(O=k[0]),O instanceof Error)throw O;var D=new Error("Unhandled error."+(O?" ("+O.message+")":""));throw D.context=O,D}var R=C[y];if(R===void 0)return!1;if(typeof R=="function")t(R,this,k);else for(var M=R.length,F=m(R,M),S=0;S<M;++S)t(F[S],this,k);return!0};function l(y,k,S,x){var C,O,D;if(s(S),O=y._events,O===void 0?(O=y._events=Object.create(null),y._eventsCount=0):(O.newListener!==void 0&&(y.emit("newListener",k,S.listener?S.listener:S),O=y._events),D=O[k]),D===void 0)D=O[k]=S,++y._eventsCount;else if(typeof D=="function"?D=O[k]=x?[S,D]:[D,S]:x?D.unshift(S):D.push(S),C=c(y),C>0&&D.length>C&&!D.warned){D.warned=!0;var R=new Error("Possible EventEmitter memory leak detected. "+D.length+" "+String(k)+" listeners added. Use emitter.setMaxListeners() to increase limit");R.name="MaxListenersExceededWarning",R.emitter=y,R.type=k,R.count=D.length,r(R)}return y}i.prototype.addListener=function(y,k){return l(this,y,k,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(y,k){return l(this,y,k,!0)};function u(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function d(y,k,S){var x={fired:!1,wrapFn:void 0,target:y,type:k,listener:S},C=u.bind(x);return C.listener=S,x.wrapFn=C,C}i.prototype.once=function(y,k){return s(k),this.on(y,d(this,y,k)),this},i.prototype.prependOnceListener=function(y,k){return s(k),this.prependListener(y,d(this,y,k)),this},i.prototype.removeListener=function(y,k){var S,x,C,O,D;if(s(k),x=this._events,x===void 0)return this;if(S=x[y],S===void 0)return this;if(S===k||S.listener===k)--this._eventsCount===0?this._events=Object.create(null):(delete x[y],x.removeListener&&this.emit("removeListener",y,S.listener||k));else if(typeof S!="function"){for(C=-1,O=S.length-1;O>=0;O--)if(S[O]===k||S[O].listener===k){D=S[O].listener,C=O;break}if(C<0)return this;C===0?S.shift():b(S,C),S.length===1&&(x[y]=S[0]),x.removeListener!==void 0&&this.emit("removeListener",y,D||k)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(y){var k,S,x;if(S=this._events,S===void 0)return this;if(S.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):S[y]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete S[y]),this;if(arguments.length===0){var C=Object.keys(S),O;for(x=0;x<C.length;++x)O=C[x],O!=="removeListener"&&this.removeAllListeners(O);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(k=S[y],typeof k=="function")this.removeListener(y,k);else if(k!==void 0)for(x=k.length-1;x>=0;x--)this.removeListener(y,k[x]);return this};function p(y,k,S){var x=y._events;if(x===void 0)return[];var C=x[k];return C===void 0?[]:typeof C=="function"?S?[C.listener||C]:[C]:S?v(C):m(C,C.length)}i.prototype.listeners=function(y){return p(this,y,!0)},i.prototype.rawListeners=function(y){return p(this,y,!1)},i.listenerCount=function(y,k){return typeof y.listenerCount=="function"?y.listenerCount(k):f.call(y,k)},i.prototype.listenerCount=f;function f(y){var k=this._events;if(k!==void 0){var S=k[y];if(typeof S=="function")return 1;if(S!==void 0)return S.length}return 0}i.prototype.eventNames=function(){return this._eventsCount>0?n(this._events):[]};function m(y,k){for(var S=new Array(k),x=0;x<k;++x)S[x]=y[x];return S}function b(y,k){for(;k+1<y.length;k++)y[k]=y[k+1];y.pop()}function v(y){for(var k=new Array(y.length),S=0;S<k.length;++S)k[S]=y[S].listener||y[S];return k}function w(y,k){return new Promise(function(S,x){function C(D){y.removeListener(k,O),x(D)}function O(){typeof y.removeListener=="function"&&y.removeListener("error",C),S([].slice.call(arguments))}T(y,k,O,{once:!0}),k!=="error"&&_(y,C,{once:!0})})}function _(y,k,S){typeof y.on=="function"&&T(y,"error",k,S)}function T(y,k,S,x){if(typeof y.on=="function")x.once?y.once(k,S):y.on(k,S);else if(typeof y.addEventListener=="function")y.addEventListener(k,function C(O){x.once&&y.removeEventListener(k,C),S(O)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof y)}return ds}var SP=kP();const Us=rr(SP);var Ni={},d0;function TP(){if(d0)return Ni;d0=1;var e=vn;if(process.env.NODE_ENV==="production")Ni.createRoot=e.createRoot,Ni.hydrateRoot=e.hydrateRoot;else{var t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;Ni.createRoot=function(n,r){t.usingClientEntryPoint=!0;try{return e.createRoot(n,r)}finally{t.usingClientEntryPoint=!1}},Ni.hydrateRoot=function(n,r,o){t.usingClientEntryPoint=!0;try{return e.hydrateRoot(n,r,o)}finally{t.usingClientEntryPoint=!1}}}return Ni}var EP=TP();const OP=rr(EP);var dp,p0;function DP(){if(p0)return dp;p0=1;function e(){this.__data__=[],this.size=0}return dp=e,dp}var pp,h0;function Sb(){if(h0)return pp;h0=1;function e(t,n){return t===n||t!==t&&n!==n}return pp=e,pp}var hp,f0;function Nu(){if(f0)return hp;f0=1;var e=Sb();function t(n,r){for(var o=n.length;o--;)if(e(n[o][0],r))return o;return-1}return hp=t,hp}var fp,g0;function RP(){if(g0)return fp;g0=1;var e=Nu(),t=Array.prototype,n=t.splice;function r(o){var i=this.__data__,a=e(i,o);if(a<0)return!1;var s=i.length-1;return a==s?i.pop():n.call(i,a,1),--this.size,!0}return fp=r,fp}var gp,m0;function AP(){if(m0)return gp;m0=1;var e=Nu();function t(n){var r=this.__data__,o=e(r,n);return o<0?void 0:r[o][1]}return gp=t,gp}var mp,v0;function MP(){if(v0)return mp;v0=1;var e=Nu();function t(n){return e(this.__data__,n)>-1}return mp=t,mp}var vp,b0;function NP(){if(b0)return vp;b0=1;var e=Nu();function t(n,r){var o=this.__data__,i=e(o,n);return i<0?(++this.size,o.push([n,r])):o[i][1]=r,this}return vp=t,vp}var bp,y0;function Pu(){if(y0)return bp;y0=1;var e=DP(),t=RP(),n=AP(),r=MP(),o=NP();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,bp=i,bp}var yp,w0;function PP(){if(w0)return yp;w0=1;var e=Pu();function t(){this.__data__=new e,this.size=0}return yp=t,yp}var wp,x0;function IP(){if(x0)return wp;x0=1;function e(t){var n=this.__data__,r=n.delete(t);return this.size=n.size,r}return wp=e,wp}var xp,_0;function jP(){if(_0)return xp;_0=1;function e(t){return this.__data__.get(t)}return xp=e,xp}var _p,C0;function LP(){if(C0)return _p;C0=1;function e(t){return this.__data__.has(t)}return _p=e,_p}var Cp,k0;function ZT(){if(k0)return Cp;k0=1;var e=typeof ii=="object"&&ii&&ii.Object===Object&&ii;return Cp=e,Cp}var kp,S0;function br(){if(S0)return kp;S0=1;var e=ZT(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return kp=n,kp}var Sp,T0;function Ys(){if(T0)return Sp;T0=1;var e=br(),t=e.Symbol;return Sp=t,Sp}var Tp,E0;function FP(){if(E0)return Tp;E0=1;var e=Ys(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,o=e?e.toStringTag:void 0;function i(a){var s=n.call(a,o),c=a[o];try{a[o]=void 0;var l=!0}catch(d){}var u=r.call(a);return l&&(s?a[o]=c:delete a[o]),u}return Tp=i,Tp}var Ep,O0;function BP(){if(O0)return Ep;O0=1;var e=Object.prototype,t=e.toString;function n(r){return t.call(r)}return Ep=n,Ep}var Op,D0;function qs(){if(D0)return Op;D0=1;var e=Ys(),t=FP(),n=BP(),r="[object Null]",o="[object Undefined]",i=e?e.toStringTag:void 0;function a(s){return s==null?s===void 0?o:r:i&&i in Object(s)?t(s):n(s)}return Op=a,Op}var Dp,R0;function Io(){if(R0)return Dp;R0=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return Dp=e,Dp}var Rp,A0;function KT(){if(A0)return Rp;A0=1;var e=qs(),t=Io(),n="[object AsyncFunction]",r="[object Function]",o="[object GeneratorFunction]",i="[object Proxy]";function a(s){if(!t(s))return!1;var c=e(s);return c==r||c==o||c==n||c==i}return Rp=a,Rp}var Ap,M0;function HP(){if(M0)return Ap;M0=1;var e=br(),t=e["__core-js_shared__"];return Ap=t,Ap}var Mp,N0;function $P(){if(N0)return Mp;N0=1;var e=HP(),t=function(){var r=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}();function n(r){return!!t&&t in r}return Mp=n,Mp}var Np,P0;function XT(){if(P0)return Np;P0=1;var e=Function.prototype,t=e.toString;function n(r){if(r!=null){try{return t.call(r)}catch(o){}try{return r+""}catch(o){}}return""}return Np=n,Np}var Pp,I0;function zP(){if(I0)return Pp;I0=1;var e=KT(),t=$P(),n=Io(),r=XT(),o=/[\\^$.*+?()[\]{}|]/g,i=/^\[object .+?Constructor\]$/,a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=RegExp("^"+c.call(l).replace(o,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function d(p){if(!n(p)||t(p))return!1;var f=e(p)?u:i;return f.test(r(p))}return Pp=d,Pp}var Ip,j0;function WP(){if(j0)return Ip;j0=1;function e(t,n){return t==null?void 0:t[n]}return Ip=e,Ip}var jp,L0;function Ci(){if(L0)return jp;L0=1;var e=zP(),t=WP();function n(r,o){var i=t(r,o);return e(i)?i:void 0}return jp=n,jp}var Lp,F0;function Tb(){if(F0)return Lp;F0=1;var e=Ci(),t=br(),n=e(t,"Map");return Lp=n,Lp}var Fp,B0;function Iu(){if(B0)return Fp;B0=1;var e=Ci(),t=e(Object,"create");return Fp=t,Fp}var Bp,H0;function UP(){if(H0)return Bp;H0=1;var e=Iu();function t(){this.__data__=e?e(null):{},this.size=0}return Bp=t,Bp}var Hp,$0;function YP(){if($0)return Hp;$0=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return Hp=e,Hp}var $p,z0;function qP(){if(z0)return $p;z0=1;var e=Iu(),t="__lodash_hash_undefined__",n=Object.prototype,r=n.hasOwnProperty;function o(i){var a=this.__data__;if(e){var s=a[i];return s===t?void 0:s}return r.call(a,i)?a[i]:void 0}return $p=o,$p}var zp,W0;function VP(){if(W0)return zp;W0=1;var e=Iu(),t=Object.prototype,n=t.hasOwnProperty;function r(o){var i=this.__data__;return e?i[o]!==void 0:n.call(i,o)}return zp=r,zp}var Wp,U0;function GP(){if(U0)return Wp;U0=1;var e=Iu(),t="__lodash_hash_undefined__";function n(r,o){var i=this.__data__;return this.size+=this.has(r)?0:1,i[r]=e&&o===void 0?t:o,this}return Wp=n,Wp}var Up,Y0;function QP(){if(Y0)return Up;Y0=1;var e=UP(),t=YP(),n=qP(),r=VP(),o=GP();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Up=i,Up}var Yp,q0;function JP(){if(q0)return Yp;q0=1;var e=QP(),t=Pu(),n=Tb();function r(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return Yp=r,Yp}var qp,V0;function ZP(){if(V0)return qp;V0=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return qp=e,qp}var Vp,G0;function ju(){if(G0)return Vp;G0=1;var e=ZP();function t(n,r){var o=n.__data__;return e(r)?o[typeof r=="string"?"string":"hash"]:o.map}return Vp=t,Vp}var Gp,Q0;function KP(){if(Q0)return Gp;Q0=1;var e=ju();function t(n){var r=e(this,n).delete(n);return this.size-=r?1:0,r}return Gp=t,Gp}var Qp,J0;function XP(){if(J0)return Qp;J0=1;var e=ju();function t(n){return e(this,n).get(n)}return Qp=t,Qp}var Jp,Z0;function eI(){if(Z0)return Jp;Z0=1;var e=ju();function t(n){return e(this,n).has(n)}return Jp=t,Jp}var Zp,K0;function tI(){if(K0)return Zp;K0=1;var e=ju();function t(n,r){var o=e(this,n),i=o.size;return o.set(n,r),this.size+=o.size==i?0:1,this}return Zp=t,Zp}var Kp,X0;function Eb(){if(X0)return Kp;X0=1;var e=JP(),t=KP(),n=XP(),r=eI(),o=tI();function i(a){var s=-1,c=a==null?0:a.length;for(this.clear();++s<c;){var l=a[s];this.set(l[0],l[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=n,i.prototype.has=r,i.prototype.set=o,Kp=i,Kp}var Xp,ew;function nI(){if(ew)return Xp;ew=1;var e=Pu(),t=Tb(),n=Eb(),r=200;function o(i,a){var s=this.__data__;if(s instanceof e){var c=s.__data__;if(!t||c.length<r-1)return c.push([i,a]),this.size=++s.size,this;s=this.__data__=new n(c)}return s.set(i,a),this.size=s.size,this}return Xp=o,Xp}var eh,tw;function Ob(){if(tw)return eh;tw=1;var e=Pu(),t=PP(),n=IP(),r=jP(),o=LP(),i=nI();function a(s){var c=this.__data__=new e(s);this.size=c.size}return a.prototype.clear=t,a.prototype.delete=n,a.prototype.get=r,a.prototype.has=o,a.prototype.set=i,eh=a,eh}var th,nw;function rI(){if(nw)return th;nw=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return th=t,th}var nh,rw;function oI(){if(rw)return nh;rw=1;function e(t){return this.__data__.has(t)}return nh=e,nh}var rh,ow;function iI(){if(ow)return rh;ow=1;var e=Eb(),t=rI(),n=oI();function r(o){var i=-1,a=o==null?0:o.length;for(this.__data__=new e;++i<a;)this.add(o[i])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,rh=r,rh}var oh,iw;function aI(){if(iw)return oh;iw=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o;)if(n(t[r],r,t))return!0;return!1}return oh=e,oh}var ih,aw;function sI(){if(aw)return ih;aw=1;function e(t,n){return t.has(n)}return ih=e,ih}var ah,sw;function eE(){if(sw)return ah;sw=1;var e=iI(),t=aI(),n=sI(),r=1,o=2;function i(a,s,c,l,u,d){var p=c&r,f=a.length,m=s.length;if(f!=m&&!(p&&m>f))return!1;var b=d.get(a),v=d.get(s);if(b&&v)return b==s&&v==a;var w=-1,_=!0,T=c&o?new e:void 0;for(d.set(a,s),d.set(s,a);++w<f;){var y=a[w],k=s[w];if(l)var S=p?l(k,y,w,s,a,d):l(y,k,w,a,s,d);if(S!==void 0){if(S)continue;_=!1;break}if(T){if(!t(s,function(x,C){if(!n(T,C)&&(y===x||u(y,x,c,l,d)))return T.push(C)})){_=!1;break}}else if(!(y===k||u(y,k,c,l,d))){_=!1;break}}return d.delete(a),d.delete(s),_}return ah=i,ah}var sh,lw;function tE(){if(lw)return sh;lw=1;var e=br(),t=e.Uint8Array;return sh=t,sh}var lh,cw;function lI(){if(cw)return lh;cw=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o,i){r[++n]=[i,o]}),r}return lh=e,lh}var ch,uw;function cI(){if(uw)return ch;uw=1;function e(t){var n=-1,r=Array(t.size);return t.forEach(function(o){r[++n]=o}),r}return ch=e,ch}var uh,dw;function uI(){if(dw)return uh;dw=1;var e=Ys(),t=tE(),n=Sb(),r=eE(),o=lI(),i=cI(),a=1,s=2,c="[object Boolean]",l="[object Date]",u="[object Error]",d="[object Map]",p="[object Number]",f="[object RegExp]",m="[object Set]",b="[object String]",v="[object Symbol]",w="[object ArrayBuffer]",_="[object DataView]",T=e?e.prototype:void 0,y=T?T.valueOf:void 0;function k(S,x,C,O,D,R,M){switch(C){case _:if(S.byteLength!=x.byteLength||S.byteOffset!=x.byteOffset)return!1;S=S.buffer,x=x.buffer;case w:return!(S.byteLength!=x.byteLength||!R(new t(S),new t(x)));case c:case l:case p:return n(+S,+x);case u:return S.name==x.name&&S.message==x.message;case f:case b:return S==x+"";case d:var F=o;case m:var N=O&a;if(F||(F=i),S.size!=x.size&&!N)return!1;var I=M.get(S);if(I)return I==x;O|=s,M.set(S,x);var j=r(F(S),F(x),O,D,R,M);return M.delete(S),j;case v:if(y)return y.call(S)==y.call(x)}return!1}return uh=k,uh}var dh,pw;function nE(){if(pw)return dh;pw=1;function e(t,n){for(var r=-1,o=n.length,i=t.length;++r<o;)t[i+r]=n[r];return t}return dh=e,dh}var ph,hw;function ro(){if(hw)return ph;hw=1;var e=Array.isArray;return ph=e,ph}var hh,fw;function rE(){if(fw)return hh;fw=1;var e=nE(),t=ro();function n(r,o,i){var a=o(r);return t(r)?a:e(a,i(r))}return hh=n,hh}var fh,gw;function dI(){if(gw)return fh;gw=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,i=0,a=[];++r<o;){var s=t[r];n(s,r,t)&&(a[i++]=s)}return a}return fh=e,fh}var gh,mw;function oE(){if(mw)return gh;mw=1;function e(){return[]}return gh=e,gh}var mh,vw;function Db(){if(vw)return mh;vw=1;var e=dI(),t=oE(),n=Object.prototype,r=n.propertyIsEnumerable,o=Object.getOwnPropertySymbols,i=o?function(a){return a==null?[]:(a=Object(a),e(o(a),function(s){return r.call(a,s)}))}:t;return mh=i,mh}var vh,bw;function pI(){if(bw)return vh;bw=1;function e(t,n){for(var r=-1,o=Array(t);++r<t;)o[r]=n(r);return o}return vh=e,vh}var bh,yw;function ki(){if(yw)return bh;yw=1;function e(t){return t!=null&&typeof t=="object"}return bh=e,bh}var yh,ww;function hI(){if(ww)return yh;ww=1;var e=qs(),t=ki(),n="[object Arguments]";function r(o){return t(o)&&e(o)==n}return yh=r,yh}var wh,xw;function iE(){if(xw)return wh;xw=1;var e=hI(),t=ki(),n=Object.prototype,r=n.hasOwnProperty,o=n.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(a){return t(a)&&r.call(a,"callee")&&!o.call(a,"callee")};return wh=i,wh}var bc={},fI={get exports(){return bc},set exports(e){bc=e}},xh,_w;function gI(){if(_w)return xh;_w=1;function e(){return!1}return xh=e,xh}var Cw;function Rb(){return Cw||(Cw=1,function(e,t){var n=br(),r=gI(),o=t&&!t.nodeType&&t,i=o&&!0&&e&&!e.nodeType&&e,a=i&&i.exports===o,s=a?n.Buffer:void 0,c=s?s.isBuffer:void 0,l=c||r;e.exports=l}(fI,bc)),bc}var _h,kw;function aE(){if(kw)return _h;kw=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(r,o){var i=typeof r;return o=o==null?e:o,!!o&&(i=="number"||i!="symbol"&&t.test(r))&&r>-1&&r%1==0&&r<o}return _h=n,_h}var Ch,Sw;function Ab(){if(Sw)return Ch;Sw=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return Ch=t,Ch}var kh,Tw;function mI(){if(Tw)return kh;Tw=1;var e=qs(),t=Ab(),n=ki(),r="[object Arguments]",o="[object Array]",i="[object Boolean]",a="[object Date]",s="[object Error]",c="[object Function]",l="[object Map]",u="[object Number]",d="[object Object]",p="[object RegExp]",f="[object Set]",m="[object String]",b="[object WeakMap]",v="[object ArrayBuffer]",w="[object DataView]",_="[object Float32Array]",T="[object Float64Array]",y="[object Int8Array]",k="[object Int16Array]",S="[object Int32Array]",x="[object Uint8Array]",C="[object Uint8ClampedArray]",O="[object Uint16Array]",D="[object Uint32Array]",R={};R[_]=R[T]=R[y]=R[k]=R[S]=R[x]=R[C]=R[O]=R[D]=!0,R[r]=R[o]=R[v]=R[i]=R[w]=R[a]=R[s]=R[c]=R[l]=R[u]=R[d]=R[p]=R[f]=R[m]=R[b]=!1;function M(F){return n(F)&&t(F.length)&&!!R[e(F)]}return kh=M,kh}var Sh,Ew;function Mb(){if(Ew)return Sh;Ew=1;function e(t){return function(n){return t(n)}}return Sh=e,Sh}var yc={},vI={get exports(){return yc},set exports(e){yc=e}},Ow;function Nb(){return Ow||(Ow=1,function(e,t){var n=ZT(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i&&n.process,s=function(){try{var c=o&&o.require&&o.require("util").types;return c||a&&a.binding&&a.binding("util")}catch(l){}}();e.exports=s}(vI,yc)),yc}var Th,Dw;function sE(){if(Dw)return Th;Dw=1;var e=mI(),t=Mb(),n=Nb(),r=n&&n.isTypedArray,o=r?t(r):e;return Th=o,Th}var Eh,Rw;function lE(){if(Rw)return Eh;Rw=1;var e=pI(),t=iE(),n=ro(),r=Rb(),o=aE(),i=sE(),a=Object.prototype,s=a.hasOwnProperty;function c(l,u){var d=n(l),p=!d&&t(l),f=!d&&!p&&r(l),m=!d&&!p&&!f&&i(l),b=d||p||f||m,v=b?e(l.length,String):[],w=v.length;for(var _ in l)(u||s.call(l,_))&&!(b&&(_=="length"||f&&(_=="offset"||_=="parent")||m&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||o(_,w)))&&v.push(_);return v}return Eh=c,Eh}var Oh,Aw;function Pb(){if(Aw)return Oh;Aw=1;var e=Object.prototype;function t(n){var r=n&&n.constructor,o=typeof r=="function"&&r.prototype||e;return n===o}return Oh=t,Oh}var Dh,Mw;function cE(){if(Mw)return Dh;Mw=1;function e(t,n){return function(r){return t(n(r))}}return Dh=e,Dh}var Rh,Nw;function bI(){if(Nw)return Rh;Nw=1;var e=cE(),t=e(Object.keys,Object);return Rh=t,Rh}var Ah,Pw;function yI(){if(Pw)return Ah;Pw=1;var e=Pb(),t=bI(),n=Object.prototype,r=n.hasOwnProperty;function o(i){if(!e(i))return t(i);var a=[];for(var s in Object(i))r.call(i,s)&&s!="constructor"&&a.push(s);return a}return Ah=o,Ah}var Mh,Iw;function uE(){if(Iw)return Mh;Iw=1;var e=KT(),t=Ab();function n(r){return r!=null&&t(r.length)&&!e(r)}return Mh=n,Mh}var Nh,jw;function Vs(){if(jw)return Nh;jw=1;var e=lE(),t=yI(),n=uE();function r(o){return n(o)?e(o):t(o)}return Nh=r,Nh}var Ph,Lw;function dE(){if(Lw)return Ph;Lw=1;var e=rE(),t=Db(),n=Vs();function r(o){return e(o,n,t)}return Ph=r,Ph}var Ih,Fw;function wI(){if(Fw)return Ih;Fw=1;var e=dE(),t=1,n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s,c,l,u){var d=s&t,p=e(i),f=p.length,m=e(a),b=m.length;if(f!=b&&!d)return!1;for(var v=f;v--;){var w=p[v];if(!(d?w in a:r.call(a,w)))return!1}var _=u.get(i),T=u.get(a);if(_&&T)return _==a&&T==i;var y=!0;u.set(i,a),u.set(a,i);for(var k=d;++v<f;){w=p[v];var S=i[w],x=a[w];if(c)var C=d?c(x,S,w,a,i,u):c(S,x,w,i,a,u);if(!(C===void 0?S===x||l(S,x,s,c,u):C)){y=!1;break}k||(k=w=="constructor")}if(y&&!k){var O=i.constructor,D=a.constructor;O!=D&&"constructor"in i&&"constructor"in a&&!(typeof O=="function"&&O instanceof O&&typeof D=="function"&&D instanceof D)&&(y=!1)}return u.delete(i),u.delete(a),y}return Ih=o,Ih}var jh,Bw;function xI(){if(Bw)return jh;Bw=1;var e=Ci(),t=br(),n=e(t,"DataView");return jh=n,jh}var Lh,Hw;function _I(){if(Hw)return Lh;Hw=1;var e=Ci(),t=br(),n=e(t,"Promise");return Lh=n,Lh}var Fh,$w;function CI(){if($w)return Fh;$w=1;var e=Ci(),t=br(),n=e(t,"Set");return Fh=n,Fh}var Bh,zw;function kI(){if(zw)return Bh;zw=1;var e=Ci(),t=br(),n=e(t,"WeakMap");return Bh=n,Bh}var Hh,Ww;function Lu(){if(Ww)return Hh;Ww=1;var e=xI(),t=Tb(),n=_I(),r=CI(),o=kI(),i=qs(),a=XT(),s="[object Map]",c="[object Object]",l="[object Promise]",u="[object Set]",d="[object WeakMap]",p="[object DataView]",f=a(e),m=a(t),b=a(n),v=a(r),w=a(o),_=i;return(e&&_(new e(new ArrayBuffer(1)))!=p||t&&_(new t)!=s||n&&_(n.resolve())!=l||r&&_(new r)!=u||o&&_(new o)!=d)&&(_=function(T){var y=i(T),k=y==c?T.constructor:void 0,S=k?a(k):"";if(S)switch(S){case f:return p;case m:return s;case b:return l;case v:return u;case w:return d}return y}),Hh=_,Hh}var $h,Uw;function SI(){if(Uw)return $h;Uw=1;var e=Ob(),t=eE(),n=uI(),r=wI(),o=Lu(),i=ro(),a=Rb(),s=sE(),c=1,l="[object Arguments]",u="[object Array]",d="[object Object]",p=Object.prototype,f=p.hasOwnProperty;function m(b,v,w,_,T,y){var k=i(b),S=i(v),x=k?u:o(b),C=S?u:o(v);x=x==l?d:x,C=C==l?d:C;var O=x==d,D=C==d,R=x==C;if(R&&a(b)){if(!a(v))return!1;k=!0,O=!1}if(R&&!O)return y||(y=new e),k||s(b)?t(b,v,w,_,T,y):n(b,v,x,w,_,T,y);if(!(w&c)){var M=O&&f.call(b,"__wrapped__"),F=D&&f.call(v,"__wrapped__");if(M||F){var N=M?b.value():b,I=F?v.value():v;return y||(y=new e),T(N,I,w,_,y)}}return R?(y||(y=new e),r(b,v,w,_,T,y)):!1}return $h=m,$h}var zh,Yw;function Ib(){if(Yw)return zh;Yw=1;var e=SI(),t=ki();function n(r,o,i,a,s){return r===o?!0:r==null||o==null||!t(r)&&!t(o)?r!==r&&o!==o:e(r,o,i,a,n,s)}return zh=n,zh}var Wh,qw;function TI(){if(qw)return Wh;qw=1;var e=Ib();function t(n,r){return e(n,r)}return Wh=t,Wh}var EI=TI();const Im=rr(EI),Ae={HEADERS:"headers",METADATA:"metadata",DATA:"data",GRAND:"grand",FINISH:"finish",ERROR:"error",TOTAL_ROWS:"totalRows",DATA_FINISH:"dataFinish",DATABARS:"dataBars",RANGE_MIN_MAX:"rangeMinMax"},OI=[Ae.ERROR,Ae.HEADERS,Ae.GRAND,Ae.METADATA,Ae.DATA,Ae.DATA_FINISH,Ae.TOTAL_ROWS,Ae.DATABARS,Ae.RANGE_MIN_MAX,Ae.FINISH],Ee={ROWS:"rows",COLUMNS:"columns",MEASURES:"measures",SCOPE:"scope"},St={ASC:"asc",DESC:"desc"},et={SUB_TOTAL:"subTotal",GRAND_TOTAL:"grandTotal",MEASURE_TOP:"measureTop",MEASURE_BOTTOM:"measureBottom",CORNER:"corner"},Vw={COLOR:"color",CONDITION:"condition"},Qr={DATETIME:"datetime",TEXT:"text",NUMERIC:"numeric"},Pi={MEMBER:"member",VALUE:"value",SUB_TOTAL:"subtotal",GRAND_TOTAL:"grandtotal"},Co={MEMBER:"member",INDEX:"index",TITLE:"title",NAME:"name",AGG:"agg",DIM:"dim"};class DI{constructor(t,n,r,o){B(this,"rowIndex"),B(this,"colIndex"),B(this,"node"),B(this,"parent"),B(this,"childColCells",[]),B(this,"childRowCells",[]),B(this,"indexInParent",-1),B(this,"siblingCount",0),this.rowIndex=t,this.colIndex=n,this.node=r,this.parent=o}isChild(){return!this.node}hasChildren(){return!!(this.childColCells.length||this.childRowCells.length)}hasColCell(){return this.childColCells.length>0}addColCell(t){this.childColCells.push(t)}getColCell(){return this.childColCells||[]}hasRowCell(){return this.childRowCells.length>0}addRowCell(t){this.childRowCells.push(t)}getRowCell(){return this.childRowCells||[]}getStopRowIndex(){return this.hasRowCell()?this.rowIndex+this.getRowCell().length:this.rowIndex}getStopColIndex(){return this.hasColCell()?this.colIndex+this.getColCell().length:this.colIndex}setIndexInParent(t,n){this.indexInParent=t,this.siblingCount=n}getIndexInParent(){return{indexInParent:this.indexInParent,siblingCount:this.siblingCount}}getParenPosition(){if(!this.parent)return;const t=(this.parent||"").match(/\d+/g)||[];return[Number(t[0]),Number(t[1])]}}const wc=["S&PManager","Cache"],xc=["null"];let pE=class jm{constructor(t=""){B(this,"name"),B(this,"log"),B(this,"warn"),B(this,"error"),B(this,"console"),this.name=t,this.log=()=>{},this.warn=()=>{},this.error=()=>{},this.console=jm.createMockConsole(),this.createLogFn()}setName(t){this.name=t,this.createLogFn()}getName(){return this.name}createLogFn(){this.log=()=>{},this.warn=()=>{},this.error=()=>{}}isExcludedName(){return xc.length&&!this.hasNamePartsInList(xc)?!0:wc.length?this.hasNamePartsInList(wc):!1}hasNamePartsInList(t){const n=this.name.toLowerCase();return t.some(r=>n.includes(r.toLowerCase()))}static createMockConsole(){return{log:()=>{},warn:()=>{},error:()=>{}}}static createMock(){const t=jm.createMockConsole();return xe(ee({setName:()=>{},getName:()=>""},t),{console:t})}};const RI=e=>new pE(e),AI=(e="")=>{wc.push(e.toLowerCase())},MI=(e="")=>{xc.push(e.toLowerCase())},NI=()=>{wc.length=0,xc.length=0},jo={Logger:pE,create:RI,excludeLogs:AI,includeLogs:MI,clearIncludeExclude:NI},hE=[Date,Error,RegExp,Promise];function fE(e,t=hE){return t.some(n=>e instanceof n)}function Gw(e,t=[]){let n=!1;return t.forEach(r=>{e.includes(r)&&(n=!0)}),n}function gE(e=[],t,n){const r=[];return n&&e.forEach(o=>{r.push(`${o}.$`)}),e.length?e.forEach(o=>{r.push(`${o}.${t}`)}):r.push(t),r}function ps(e){return!(e===null||typeof e=="undefined"||typeof e!="object")}function PI(e,t){return ps(e)&&e?Array.isArray(e)?!e.length:fE(e,t)?!1:!Object.keys(e).length:e==null}function II(e=""){const t=e.split(".");return t.length>1?(t.pop(),t.join(".")):t[0]}function Qw(e,t,n){return e.length?Gw(e,n):t.length?!Gw(t,n):!0}function mE(e,t=[],n=[],r=[],o={},i={},a=[],s=[]){if(!ps(e))return{commonIncludeKeys:[],commonExcludeKeys:[]};const c=a.indexOf(e);if(c!==-1)return s[c];a.push(e);const l=Object.keys(e),u=Array.isArray(e);let d=[],p=[];const f=[],m=[];if(l.forEach(b=>{const v=e[b],w=gE(r,b,u),_=r[0]||"&";o[_]=o[_]||[],i[_]=i[_]||[],w.forEach(T=>{(t||[]).includes(T)&&(o[_].push(T),d.push(T)),(t||[]).forEach(y=>{const k=II(y);(`${k}.$`===_||k===_)&&(o[_].includes(y)||o[_].push(y),d.includes(y)||d.push(y))}),(n||[]).includes(T)&&(i[_].push(T),p.push(T))}),ps(v)&&mE(v,t,n,w,o,i,a,s)}),ps(e)){let b=r[0]||"&";Array.isArray(e)&&(b=`${b}.$`),o[b]=(o[b]||[]).concat(f),d=d.concat(f),i[b]=(i[b]||[]).concat(m),p=d.concat(m)}return s.push({commonIncludeKeys:d,commonExcludeKeys:p}),{commonIncludeKeys:d,commonExcludeKeys:p}}function vE(e,t,n=new WeakMap){const{includeKeys:r,includeKeysObj:o,excludeKeys:i,excludeKeysObj:a,parentKeys:s=[],excludeEmpty:c,referenceClone:l}=t||{};if(!ps(e)||fE(e,l))return e;if(n.has(e))return n.get(e);const u=Object.keys(e),d=Array.isArray(e),p=d?[]:{};n.set(e,p);const f=s[0]||"&",m=(o||{})[f]||[],b=(a||{})[f]||[];return u.forEach(v=>{const w=e[v];let _=[],T=!0;if(r||i?T=Qw(r||[],i||[],[v]):(o||a)&&(_=gE(s,v,d),T=Qw(m,b,_)),T){const y=vE(w,xe(ee({},t),{parentKeys:_}),n);(!c||!PI(y,l))&&(d?p.push(y):p[v]=y)}}),p}function _n(e,t){const n=t||{},{include:r,exclude:o}=n,i=Ft(n,["include","exclude"]);let a,s;(r||o)&&(a={},s={},mE(e,r,o,[],a,s));const c=xe(ee({},i),{includeKeysObj:a,excludeKeysObj:s});return vE(e,c)}_n.REFERENCE_CLONE_TYPES=hE;const Uh=e=>t=>e.replace(/{{(\w+)}}/g,(n,r)=>typeof t[r]!="undefined"?t[r]:r),bE=(e,t)=>{let n,r,o=null;const i=(...a)=>{n?o=a:(e(...a),n=!0,o=null,r=setTimeout(()=>{n=!1,o&&(e(...o),o=null)},t))};return i.cancel=()=>{clearTimeout(r),n=!1},i},yE=(e,t)=>{const n={};return Object.keys(e).forEach(r=>{e[r]!==t[r]&&(n[r]=t[r])}),Object.keys(t).forEach(r=>{typeof n[r]=="undefined"&&e[r]!==t[r]&&(n[r]=t[r])}),n};function Lm(e=!0){let t={},n=null;return({callback:r,indices:o})=>{const i=Object.keys(o),a=!e||i.every(c=>{const l=o[c];return Array.isArray(l)?l.length>0:l>=0}),s=i.length!==Object.keys(t).length||i.some(c=>{const l=t[c],u=o[c];return Array.isArray(u)?l.join(",")!==u.join(","):l!==u});return t=o,a&&s&&(n=r(o)),n}}function Jw(e,t,n=0){for(let r=n;r<e.length;r+=1){const o=e[r];if(t(o,r,e))return r}return-1}const Cs="$*$root$*$";function jI(e,t,n,r){const o={value:e};return t&&(o.children=t),n&&(o.data=n),typeof r!="undefined"&&(o.index=r),o}function Fu(e){return!!(e&&e.children&&e.children.length)}function mr(e){return e&&e.children||[]}function Fm(e,t){e&&t&&Array.isArray(t)&&(e.children=t)}function LI(e,t){e&&(e.level=t)}function FI(e){return e&&typeof e.level!="undefined"?e.level||0:-1}function Qi(e){if(!e)return;if(e&&!Array.isArray(e)&&e.value===Cs)return e;const t={value:Cs,children:[]};return Array.isArray(e)?t.children=e:(t.children||[])[0]=e,t}function wE(e,t,n=0){let r;if(!e||!t)return r;if(t(e,n)&&(r=e),Fu(e)){const o=mr(e),i=o.length;for(let a=0;a<i;a+=1){const s=wE(o[a],t,n+1);if(s){r=s;break}}}return r}function BI(e,t){if(!e&&!t)return;if(!e&&t)return Qi(t);if(e&&!t)return Qi(e);const n=Qi(e),r=Qi(t),o=n&&n.children||[],i=r&&r.children||[],a=o.concat(i);return Qi(a)}const xE=(e,t=0)=>{if(!e||!e.isPart)return;e.level=t;const n=mr(e),r=n[n.length-1];return r&&xE(r,t+1)||e},_E=(e,t,n=0)=>{if(!e||!e.isPart)return;if(e.level=n,e&&t&&e.value===t.value&&e.level===t.level)return e;const r=mr(e)[0];return r&&_E(r,t,n+1)||e};function HI(e,t){let n=xE(e),r=_E(t,n);n&&n.children&&Array.isArray(n.children)&&r&&r.children&&Array.isArray(r.children)&&r.children.length>0&&(n.children=n.children.concat(r.children),r.isHandled=!0);let o=!1;for(n=e,r=t;n&&n.children&&Array.isArray(n.children)&&r&&r.children&&Array.isArray(r.children)&&!r.isHandled;){const i=n.children;n=n.children[n.children.length-1];let a=0;for(r.children[0]&&!o&&(o=!mr(r.children[0]).some(s=>s.isPart),a=1);a<r.children.length;)i.push(r.children[a]),a+=1;r=r.children[0]}return e}function CE(e,t,n){!e||!t||e.forEach(r=>{t(r,n),Fu(r)&&CE(mr(r),t,r)})}function kE(e,t=[],n=0,r={maxLevel:0}){return e.forEach(o=>{r.maxLevel<n&&(r.maxLevel=n),Fu(o)?kE(mr(o),t,n+1,r):t.push(o)}),t}function Bu(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let n=t.clearCache||!1;!Array.isArray(e)&&e.value===Cs&&(n=!0);let r=1,o=[];return Array.isArray(e)?(r=0,o=e):e.children&&(o=mr(e)),o&&o.length&&(!n&&!Array.isArray(e)&&typeof e.childCount=="number"?r=e.childCount:(r=0,o.forEach(i=>{r+=Bu(i,t)}),Array.isArray(e)||(e.childCount=r))),r}function SE(e,t={}){if(t||(t={}),typeof t.callCount!="number"?t.callCount=1:t.callCount+=1,!e)return 0;let n=t.clearCache||!1;!Array.isArray(e)&&e.value===Cs&&(n=!0);let r=0,o=[];if(e&&!Array.isArray(e)&&typeof e.value!="undefined"&&(r=1),Array.isArray(e)?(r=0,o=e):e.children&&(o=mr(e)),o&&o.length)if(!n&&!Array.isArray(e)&&typeof e.childDeep=="number")r+=e.childDeep;else{let i=0;o.forEach(a=>{const s=SE(a,t);s>i&&(i=s)}),r+=i,Array.isArray(e)||(e.childDeep=i)}return r}function TE(e=[],t=0,n){const r=[];let o=0,i=-1,a=-1;const s=e.length;if(typeof t=="number"&&typeof n=="number"&&t>n)throw new Error('Wrong "getNodesByChildCount" diapason');if(typeof t=="number"&&t<0)throw new Error('Wrong "from" index for "getNodesByChildCount"');for(let c=0;c<s;c+=1){const l=e[c],u=Bu(l);if(o+u>t&&(i<0&&(i=o),r.push(l),typeof n=="number"&&o+u>=n)){a=o+u;break}a=o+u,o+=u}return{nodes:r,start:i,stop:a}}function $I(e){e.isMapped!==void 0&&(e.isMapped=void 0),e.minLevel!==void 0&&(e.minLevel=void 0),e.childCount!==void 0&&(e.childCount=void 0),e.childDeep!==void 0&&(e.childDeep=void 0)}function Bm(e=[],t=0,n,r){const{cloneFn:o=_n}=r||{},i=[],{nodes:a,start:s,stop:c}=TE(e,t,n),l=a.length;let u,d,p=!0;if(s<t){const f=a[0]||{},m=t-s;let b;l===1&&typeof n=="number"&&(b=n-s,p=!1),u=o(f,!0);const v=Bm(mr(f),m,b,r);Fm(u,v)}if(typeof n=="number"&&c>n&&p){const f=a[l-1]||{},m=0,b=Bu(f)-(c-n);d=o(f,!0);const v=Bm(mr(f),m,b,r);Fm(d,v)}return a.forEach((f,m)=>{if(u&&m===0)i.push(u);else if(d&&m===l-1)i.push(d);else{const b=o(f);i.push(b)}}),i}const fe={ROOT:Cs,create:jI,hasChildren:Fu,getChildren:mr,setChildren:Fm,setLevel:LI,getLevel:FI,getLastLevelNodes:kE,iterateThroughTree:CE,wrapInRootNode:Qi,findNode:wE,merge:BI,deepMerge:HI,getChildLength:Bu,getDeepLength:SE,getNodesByChildCount:TE,getCutNodesByChildCount:Bm,clearNodeCache:$I},Zt={FIRST:"first",LAST:"last",EVEN:"even",ODD:"odd"},Ii=(e,t)=>`${e}-${t}`;class zI{constructor(t,n=!1,r){B(this,"tree"),B(this,"hasGrandTotals",!1),B(this,"isVertical",!1),B(this,"deep"),B(this,"columns",[]),B(this,"lastLevel",[]),B(this,"map",{}),B(this,"metadataCache",{}),B(this,"valueNode"),B(this,"grid"),this.isVertical=n,this.deep=r,t&&(this.tree=t,this.columns=this.cacheLevels(fe.getChildren(this.tree)))}destroy(){this.tree=void 0,this.columns=[],this.lastLevel=[],this.map={},this.metadataCache={},this.valueNode=void 0,this.grid=void 0}getMainCellWidth(t,n,r,o,i={offsetTop:-1,columnsOffset:0}){const{columnsOffset:a=0}=i,s=this.getItem(t,n),c=s&&s.hasChildren()&&s.hasColCell();let l=Number.NaN,u=!0;if(s&&c){const d=s.getColCell(),p=r({index:n+a});l=d.reduce((f,m)=>{const b=r({index:m.colIndex+a});return b||(u=!1),f+b},p),l-=o,l=Math.ceil(l)}return u?l:Number.NaN}extend(t){t&&(this.grid=void 0,this.tree=fe.merge(this.tree,t),this.columns=this.cacheLevels(fe.getChildren(t),this.columns))}getGrid(){if(this.grid)return this.grid;let t=this.getTreeDeepsLength(),n=this.getTreeChildLength();return this.isVertical?([t,n]=[n,t],this.map=this.fillMapVertical(fe.getChildren(this.tree),n,this.map)):this.map=this.fillMap(fe.getChildren(this.tree),t,this.map),this.grid=Array.from(Array(t)).map((r,o)=>Array.from(Array(n)).map((i,a)=>{const s=Ii(o,a),c=this.map[s];if(!c)throw new Error(`Key "${s}" does not found in TreeService`);return c.node?c.node:c.parent})),this.grid}getPartialGrid(t,n){if(!this.isVertical)throw new Error('"getPartialGrid" can only be used for "vertical" tree');const r=this.getTreeDeepsLength(),o=fe.getChildren(this.tree),{nodes:i,start:a,stop:s}=fe.getNodesByChildCount(o,t,n);this.fillMapVertical(i,r,this.map,{parentRowIndex:a,parentColIndex:0,prevChildren:0,parentKey:""});const c=Math.max(a,t),l=Math.min(s,n),u=Math.max(0,l-t);return Array.from(Array(u)).map((d,p)=>Array.from(Array(r)).map((f,m)=>{const b=c+p,v=Ii(b,m),w=this.map[v];if(!w)throw new Error(`Key "${v}" does not found in TreeService`);return w.node?w.node:w.parent||""}))}getPartialTree(t,n,r){const o=fe.getChildren(this.tree);return fe.getCutNodesByChildCount(o,t,n,r)}getTreeNode(t,n){const r=this.getItem(t,n);if(r&&r.node)return r.node}isChildren(t,n){const r=this.getItem(t,n);if(r)return r.isChild();if(typeof this.deep=="number"&&(this.isVertical?n:t)<this.deep)return!0;throw new Error(`Item "${t}-${n}" does not found in TreeService`)}hasChildren(t,n){const r=this.getItem(t,n);if(r)return r.hasChildren();throw new Error(`Item "${t}-${n}" does not found in TreeService`)}getMainCellSpans(t,n){const r={},o=this.getItem(t,n);return o&&o.hasColCell()&&(r.colSpan=o.getColCell().length+1),o&&o.hasRowCell()&&(r.rowSpan=o.getRowCell().length+1),r}alignStartIndex(t,n=!1){let r=0,o=t;if(n&&(r=t,o=0),this.isVertical===n){let i=this.getItem(r,o);if(i&&i.isChild()&&(i=this.getItemByKey(i.parent||"")),i)return n?i.rowIndex:i.colIndex}return t}alignStopIndex(t,n=!1){let r=0,o=t;if(n&&(r=t,o=0),this.isVertical===n){let i=this.getItem(r,o);if(i&&i.isChild()&&(i=this.getItemByKey(i.parent||"")),i)return n?i.getStopRowIndex():i.getStopColIndex()}return t}getTreeChildLength(t=fe.getChildren(this.tree),n){return fe.getChildLength(t,n)}getTreeDeepsLength(t=fe.getChildren(this.tree),n){return typeof this.deep!="undefined"&&this.deep!==void 0?this.deep:fe.getDeepLength(t,n)}getLastLevelNodes(){return this.lastLevel}extractData(t){if(!t)return[];const n=t.getLastLevelNodes().map(r=>r.index);return this.getLastLevelNodes().map(r=>typeof r.data=="undefined"?[r.data]:n?n.map(o=>{let i;return typeof o!="undefined"&&r.data&&(i=r.data[o]),i}):r.data)}getMetadata(t,n,r){const o=this.getTreeDeepsLength();t===1/0&&(t=o&&o-1),n===1/0&&(n=o&&o-1);const i=`${t}-${n}`;if(this.metadataCache[i])return this.metadataCache[i];let a=this.getItemByKey(i);if(!a)throw new Error(`Can not find metadata info for ${i} cell`);let s=a?a.node:void 0;if(s||(a=this.getItemByKey(a.parent||"")),!a)throw new Error(`Can not find metadata info for parent ${i} cell`);s=a?a.node:void 0;const c=this.getItemByKey(`${t+1}-${n}`),l=c?c.node:void 0,u=s&&s.level||0,d=this.isVertical?a.getStopColIndex():a.getStopRowIndex();let{indexInParent:p,siblingCount:f}=a.getIndexInParent(),m=p;if(u===0&&(f=this.getTreeChildLength(),p=this.isVertical?a.rowIndex:a.colIndex,m=p+(this.isVertical?a.getRowCell().length:a.getColCell().length)),r){const _=r.to-r.from;f<=_&&m>_-1&&(m=_-1)}const b={levels:[],siblings:[],root:void 0,parent:void 0,valueNode:this.valueNode,nextNode:l},{indexDivergence:v}=s||{};if(typeof v=="number"){const _=v===0?Zt.EVEN:Zt.ODD;b.siblings.push(_)}if(u===0&&b.levels.push(Zt.FIRST),d===o-1&&b.levels.push(Zt.LAST),p===0&&b.siblings.push(Zt.FIRST),m===f-1&&b.siblings.push(Zt.LAST),s&&u!==0){const _=this.isVertical?t:0,T=this.isVertical?0:n;b.root=this.getMetadata(_,T,r)}const w=this.getItemByKey(a.parent||"");if(w&&u!==0&&(b.parent=this.getMetadata(w.rowIndex,w.colIndex,r)),r){const _=this.isVertical?a.rowIndex:a.colIndex,T=this.isVertical?a.getStopRowIndex():a.getStopColIndex();let y;w&&(y=this.isVertical?w.getStopRowIndex():w.getStopColIndex()),y!==void 0&&y>=r.to-r.from&&T>=r.to-r.from-1&&!b.siblings.includes(Zt.LAST)&&b.siblings.push(Zt.LAST),_===0&&!b.siblings.includes(Zt.FIRST)&&b.siblings.push(Zt.FIRST)}return this.metadataCache[i]=b,b}setValueNode(t){typeof t=="object"&&(this.valueNode=t)}cacheLevels(t,n=[],r={level:0}){const{level:o}=r;return t.forEach(i=>{if(n[o]||(n[o]=[]),fe.setLevel(i,o),n[o].push(i),fe.hasChildren(i)){const a=o+1;this.cacheLevels(fe.getChildren(i),n,{level:a})}else this.lastLevel.push(i)}),n}fillMap(t,n,r={},o){const i=o||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},a=t.length;return t.forEach((s,c)=>{const{parentRowIndex:l,parentColIndex:u,prevChildren:d,parentKey:p}=i,f=fe.getLevel(s)+l,m=c+u+d,b=Ii(f,m),v=this.createTreeCellMap({rowIndex:f,colIndex:m,node:s,parent:p});v.setIndexInParent(c,a),r[b]=v;let w=0,_=0;if(fe.hasChildren(s)?(w=this.getTreeChildLength(s),typeof s.minLevel=="number"&&(_=s.minLevel+1-f||0)):_=(n||0)-(f||0),(w>1||_>1)&&this.fillChildMap(r,b,f,m,_,w),fe.hasChildren(s)){const T=xe(ee({},i),{parentRowIndex:_>1?_-1:0,parentColIndex:c+u,parentKey:b});this.fillMap(fe.getChildren(s),n,r,T),w>1&&(i.prevChildren+=w-1)}}),r}fillMapVertical(t,n,r={},o){const i=o||{parentRowIndex:0,parentColIndex:0,prevChildren:0,parentKey:""},a=t.length;return t.forEach((s,c)=>{if(s.isMapped){i.parentRowIndex+=fe.getChildLength(s)-1;return}s.isMapped=!0;const{parentRowIndex:l,prevChildren:u,parentKey:d}=i,p=fe.getLevel(s),f=c+l+u,m=Ii(f,p),b=this.createTreeCellMap({rowIndex:f,colIndex:p,node:s,parent:d});b.setIndexInParent(c,a),r[m]=b;let v=0,w=0;if(fe.hasChildren(s)?w=this.getTreeChildLength(s):v=(n||0)-(p||0),(v>1||w>1)&&this.fillChildMap(r,m,f,p,w,v),fe.hasChildren(s)){const _=xe(ee({},i),{parentRowIndex:c+l,parentKey:m});this.fillMapVertical(fe.getChildren(s),n,r,_),w>1&&(i.prevChildren+=w-1)}}),r}fillChildMap(t,n,r,o,i,a){const s=t[n],c=Math.max(1,i),l=Math.max(1,a);Array.from(Array(c)).forEach((u,d)=>{Array.from(Array(l)).forEach((p,f)=>{if(d===0&&f===0)return;const m=r+d,b=o+f,v=Ii(m,b),w=this.createTreeCellMap({rowIndex:m,colIndex:b,parent:n});t[v]=w,!(d!==0&&f!==0)&&(f===0&&s.addRowCell(w),d===0&&s.addColCell(w))})})}createTreeCellMap({rowIndex:t,colIndex:n,node:r,parent:o}){return new DI(t,n,r,o)}getItemByKey(t){return this.map[t]}getItem(t,n){const r=Ii(t,n);return this.getItemByKey(r)}}class Zo extends zI{}class Zi extends Error{constructor(t="Loading canceled"){super(t),this.name="LoadingCanceledError";const n=new.target.prototype;Object.setPrototypeOf&&Object.setPrototypeOf(this,n)}}class Zw{constructor(t=[],n){B(this,"divergence",0);const r=n?n.getDivergence():0,o=fe.getLastLevelNodes(t);this.divergence=(r+o.length)%2;for(let i=0;i<o.length;i+=1)o[i].indexDivergence=(i+r)%2}getDivergence(){return this.divergence}}function Hu(e=[]){const t={};return e.forEach(n=>{const{index:r=1/0}=n.field||{},o=`${r}`;t[o]=n.jaql.datatype||Qr.TEXT}),t}function Hm(e,t){if(e&&t===Qr.DATETIME)try{return new Date(e).toISOString()}catch(n){return e}return e}function Kw(e){if(e!==null&&!Im(e,{}))return e}function _c(e,t,n={}){const r=Kw(e),o=Kw(t);let i=!1;if(typeof r=="object"&&r!==null&&typeof o=="object"&&o!==null){i=!0;const a=Object.keys(r),s=Object.keys(o);a.length!==s.length?i=!1:a.forEach(c=>{const l=n[c]||"";let u=(r||{})[c],d=(o||{})[c];if(typeof u=="undefined"||typeof d=="undefined"){i=!1;return}l===Qr.DATETIME&&(u=Hm(u,l),d=Hm(d,l)),u!==d&&(i=!1)})}else i=r===o;return i}function EE(e,t,n=Hm){if(!e||typeof e!="object")return e;const r={};return Object.keys(e).forEach(o=>{const i=t[o],a=(e||{})[o],s=n(a,i);r[o]=s}),r}const Xr=(e,t)=>{let n=e&&e.metadata||[];return t&&(n=n.filter(r=>r.panel===t)),n.sort((r,o)=>{const i={index:1/0},a=r.field||i,s=o.field||i;return a.index-s.index}),n},Gs=(e,t,n)=>typeof t=="undefined"?void 0:Xr(e,n).filter(r=>(r.field||{index:1/0}).index===t)[0],WI=(e,t)=>{const n=e.field||{index:1/0};if(e.panel===Ee.MEASURES)return!0;if(e.panel===Ee.ROWS){const r=Xr(t,Ee.ROWS),o=(r[r.length-1]||{}).field||{index:1/0};if(r.length&&o.index===n.index)return!0;r.length||console.error("Missing rows panel in jaql!")}return!1};function UI(e,t){return!e||typeof e.field!="number"?!1:e.field!==t}const YI=(e,t=Ee.ROWS)=>{const n=Xr(e,t).map((r,o)=>{const i=fe.create(r.jaql.title,void 0,void 0,o),a=nn(i,t);switch(a.jaqlIndex=r.field?r.field.index:void 0,t){case Ee.ROWS:{a.measurePath=void 0;const s=UI(r.jaql.sortDetails,a.jaqlIndex);r.jaql.sort&&!s?a.dir=r.jaql.sort:a.dir=null;break}case Ee.MEASURES:a.databars=r.format?r.format.databars:!1,a.measureJaqlIndex=a.jaqlIndex,Xr(e,Ee.COLUMNS).length||(a.measurePath=void 0,r.jaql.sortDetails&&r.jaql.sortDetails.measurePath===null?a.dir=r.jaql.sortDetails.dir:a.dir=null);break}return a});return fe.wrapInRootNode(n)},OE=e=>{(e&&e.metadata?e.metadata:[]).forEach(t=>{t&&t.jaql&&t.jaql.sort&&t.jaql.sortDetails&&t.jaql.sortDetails.sortingLastDimension&&(t.jaql.sort=null,delete t.jaql.sortDetails)})},DE=e=>{e&&e.jaql&&(e.jaql.sort=null,delete e.jaql.sortDetails)},RE=e=>{(e&&e.metadata?e.metadata:[]).forEach(t=>DE(t))},qI=e=>(e.metadata||[]).reverse().find(t=>!!t.jaql.sortDetails),VI=e=>(e.metadata||[]).find(t=>!!(t.jaql.sortDetails&&t.jaql.sortDetails.isLastApplied)),GI=e=>{const t=VI(e)||qI(e);if(!t)return;const n=t.field&&t.field.index;(e.metadata||[]).forEach(r=>{(r.field&&r.field.index)!==n&&DE(r)})},AE=(e,t)=>{e.metadata.forEach(n=>{const r=n.field&&n.field.index;if(t.field===r){n.jaql.sortDetails=n.jaql.sortDetails||t,n.jaql.sortDetails.isLastApplied=!0;return}n.jaql.sortDetails&&n.jaql.sortDetails&&delete n.jaql.sortDetails.isLastApplied})},QI=(e,t,n)=>{const{isSingleRowTree:r=!1,formatter:o}=n||{};if(!t){console.warn("jaql is undefined or null!");return}const i=Gs(t,e.field);if(i&&i.panel===Ee.COLUMNS){console.warn('Should not be sorted by "COLUMN" type panels!');return}if(!i)return;const a=WI(i,t);switch(r?RE(t):a&&OE(t),e.dir){case St.DESC:case null:i.jaql.sort=St.ASC;break;case St.ASC:i.jaql.sort=St.DESC;break;default:i.jaql.sort=void 0}const s=i.field||{index:1/0};if(i.jaql.sort){let{measurePath:c}=e;if(c){const l=Xr(t),u=Hu(l);c=EE(c,u,o)}i.jaql.sortDetails={field:s.index,dir:i.jaql.sort,sortingLastDimension:a,measurePath:c,initialized:!0}}else i.jaql.sortDetails=void 0;t&&t.metadata&&s.index!==void 0&&(t.metadata[s.index]=i),AE(t,e)},JI=(e,t,n)=>{if(!e)return;const r=Gs(e,t);r&&(r.format=r.format||{},r.format.width=n)},ZI=e=>{const t={};return e&&Xr(e).forEach(n=>{const r=n.field||{index:1/0};n.format&&typeof n.format.width!="undefined"&&typeof r.index!="undefined"&&(t[r.index]=n.format.width)}),t},KI=(e,t)=>{if(typeof t.measureJaqlIndex!="undefined"){const n=Xr(e),r=Hu(n),o=n.filter(a=>a.panel===Ee.ROWS).find(a=>{const s=a.jaql.sortDetails;return!s||s.field!==t.measureJaqlIndex?!1:!!_c(t.measurePath,s.measurePath,r)});if(o){t.dir=o.jaql.sort?o.jaql.sort:null;return}const i=Gs(e,t.measureJaqlIndex);if(i&&i.jaql.sortDetails){const a=i.jaql.sortDetails.measurePath,s=t.measurePath;if(_c(a,s,r)){t.dir=i.jaql.sort||null;return}}}t.dir=null};function XI(e,t,n,r){const{isSingleRowTree:o,formatter:i}=r;o&&RE(e),e.metadata.forEach(a=>{a.jaql.sortDetails&&delete a.jaql.sortDetails.isLastApplied}),t.forEach((a,s)=>{let c;s===t.length-1?(a.selected&&OE(e),c=n.field):c=a.indexInJaql;const l=Gs(e,c);if(!l){console.warn(new Error("Panel not found"));return}a.selected&&!a.direction&&console.warn(new Error("Direction should be defined and equal to 'asc' or 'desc'"));const u=Xr(e),d=Hu(u);if(!a.direction||!a.selected){const{sortDetails:p}=l.jaql;p&&n.field===p.field&&_c(n.measurePath,p.measurePath,d)&&(delete l.jaql.sort,delete l.jaql.sortDetails)}if(a.selected&&a.direction){l.jaql.sort=a.direction;let{measurePath:p}=n;p&&(p=EE(p,d,i)),n.measurePath===void 0&&l.field&&l.panel==="rows"&&n.field!==l.field.index&&(p={}),l.jaql.sortDetails={field:n.field,dir:a.direction,sortingLastDimension:!1,measurePath:p,isLastApplied:!0,initialized:!0}}})}function e2(e,t,n,r){return e.jaql.sortDetails?!1:n?Tt.isMeasurePathEqual(t.measurePath,n.measurePath,r):!1}function $m(e){const t=e&&e.dir;switch(t){case"asc":case"desc":return t;default:return null}}function t2(e,t){var n,r;const o=e.metadata.filter(m=>m.panel==="rows"),i=Tt.getMetadataPanelByIndex(e,t.field),a=i.jaql.datatype,s=i.jaql.sortDetails,c=Tt.getDataTypes(Tt.getMetadataPanels(e)),l=[];for(let m=0;m<o.length-1;m+=1){const b=o[m],v=!!(b.jaql.sortDetails&&b.jaql.sortDetails.field===t.field&&Tt.isMeasurePathEqual(t.measurePath,b.jaql.sortDetails.measurePath,c)),w=$m(b.jaql.sortDetails);l.push({title:b.jaql.title,datatype:a,selected:v,direction:w,indexInJaql:(n=b.field)==null?void 0:n.index})}const u=o[o.length-1],d=e2(u,t,s,c),p=$m(s),f={title:u.jaql.title,datatype:a,selected:d,direction:p,indexInJaql:(r=i.field)==null?void 0:r.index};return l.push(f),l}function n2(e,t,n){return e.filter(r=>r.field&&t.field===r.field.index).map(r=>{const{sortDetails:o}=r.jaql,i=!!(o&&Tt.isMeasurePathEqual(t.measurePath,o.measurePath,n)),a=i?$m(o):null;return{title:r.jaql.title,datatype:r.jaql.datatype,selected:i,direction:a}})[0]}const Tt={isMeasurePathEqual:_c,getDataTypes:Hu,updatePanelsSortingMetadata:QI,getMetadataTree:YI,getMetadataPanels:Xr,getMetadataPanelByIndex:Gs,setResizeWidthToJaql:JI,getResizeWidthFromJaql:ZI,markSortedNode:KI,normalizeSingleBranchTreeSortDetails:GI,updateLastAppliedSortingFlag:AE,handleComplexSortingSettingsUpdate:XI,mapWidgetJaqlToSimpleSortingSettings:n2,mapWidgetJaqlToComplexSortingSettings:t2};function ME(e,t){if(!fe.hasChildren(e))return!1;let n=!1;t===Ee.COLUMNS&&e&&e.isPart&&(n=!0);const r=fe.getChildren(e);if(r.length>1||n)return!0;const[o]=r;return ME(o)}function r2(e){return e==null}const jb=(e,t,n,r,o)=>{const i=[];return e.forEach(a=>{if(i.push(a),fe.hasChildren(a)){const s=fe.getChildren(a),c=jb(s,t,n,r,o);fe.setChildren(a,c);let l=!1;if((o||ME(a,n))&&(n===Ee.COLUMNS?typeof a.index!="undefined"&&a.index>-1&&(l=!0):n===Ee.ROWS&&typeof a.data!="undefined"&&(l=!0)),l){const{value:u,index:d,data:p,jaqlIndex:f,measurePath:m}=a;let b;if(n===Ee.COLUMNS?b=fe.create(u,void 0,void 0,d):n===Ee.ROWS&&(b=fe.create(u,void 0,p)),b){const v=nn(b,n);v.userType=et.SUB_TOTAL,v.jaqlIndex=f,v.measurePath=m,v.master=a,i.push(v)}}}}),i},NE=(e,t)=>{e.userType===et.SUB_TOTAL&&e.master&&(e.measurePath=e.master.measurePath)},PE=(e,t,n,r)=>{const o=e;if(n===Ee.COLUMNS&&t){const i=nn(t);if(typeof i.index=="number"){const a=Tt.getMetadataTree(r,Ee.MEASURES);fe.getChildren(a).forEach((s,c)=>{const l=xe(ee({},s),{index:(i.index||0)+c}),u=nn(l,n);u.userType=et.GRAND_TOTAL,u.measureJaqlIndex=u.jaqlIndex,o.push(u)})}}return o},IE=(e,t)=>{e.userType===et.GRAND_TOTAL&&(e.measurePath=void 0,e.metadataType===Ee.ROWS&&(e.parent=void 0,e.jaqlIndex=0))},jE=(e,t,n,r)=>{let o=e;if(n===Ee.COLUMNS){const i=Tt.getMetadataTree(r,Ee.MEASURES),a=fe.getChildLength(i),s={maxLevel:0},c=fe.getLastLevelNodes(o,[],0,s);if(a>1)c.forEach(l=>{if(l.userType===et.GRAND_TOTAL)return;const u=fe.getChildren(i),d=[];for(let p=0;p<u.length;p+=1){if(typeof l.maxChilds=="number"&&p>=l.maxChilds)continue;const f=xe(ee({},u[p]),{index:(l.index||0)+p,measurePath:l.measurePath}),m=nn(f,Ee.MEASURES);m.userType=et.MEASURE_BOTTOM,m.measureJaqlIndex=m.jaqlIndex,d.push(m)}l.minLevel=s.maxLevel,fe.setChildren(l,d)});else if(a===1){const l=fe.getChildren(i)[0];if(l){const u=ee({},l),d=nn(u,Ee.MEASURES);d.userType=et.MEASURE_TOP,fe.setChildren(d,o),o=[d],c.forEach(p=>{p.measureJaqlIndex=l.jaqlIndex})}}}return o},LE=(e,t)=>{!fe.hasChildren(e)&&typeof e.measureJaqlIndex!="undefined"&&Tt.markSortedNode(t,e)},o2=(e,t,n,r)=>{let o={};if(t.userType===et.SUB_TOTAL||t.userType===et.GRAND_TOTAL||n.userType===et.SUB_TOTAL||n.userType===et.GRAND_TOTAL||n.parent&&n.parent.userType===et.SUB_TOTAL||n.parent&&n.parent.userType===et.GRAND_TOTAL)return;const i=r&&r.format&&r.format.color||null;if(!i)return;const{value:a,cf:s=-1}=e;if(i.type===Vw.COLOR&&i.color&&i.color!=="transparent"&&(o.backgroundColor=i.color),i.type===Vw.CONDITION&&i.conditions&&i.conditions.length)for(let c=0,l=i.conditions.length;c<l&&!r2(a);c+=1){const u=i.conditions||[],{color:d}=u[c]||{};if(d&&s===c){o.backgroundColor=d;break}}Object.keys(o).length>0&&(e.style=e.style||{},Object.assign(e.style,o)),o=void 0},FE=(e,t,n,r)=>{const o=[],{level:i=0,measurePath:a={}}=r||{};let s;Array.isArray(e)?s=e:s=fe.getChildren(e);const c=Tt.getMetadataPanels(n,t)[i],l=c?(c.field||{index:1/0}).index:void 0;return s.forEach(u=>{const d=nn(u,t);if(d.jaqlIndex=l,typeof l!="undefined"&&(d.measurePath=xe(ee({},a),{[l]:d.value})),o.push(d),fe.hasChildren(d)){const p=fe.getChildren(d),f={level:i+1,measurePath:d.measurePath},m=FE(p,t,n,f);fe.setChildren(d,m)}}),o},BE=(e,t,n)=>{const{skipFormatEvent:r=!1,onlyFormatEvents:o=!1,iterateFn:i,emitFn:a}=n||{};e.forEach(s=>{if(i&&i(s),(r||!o)&&(NE(s),IE(s),LE(s,t)),a&&(o||!r)){const c=Tt.getMetadataPanelByIndex(t,s.jaqlIndex,s.metadataType||"");a(s,c,t)}if(fe.hasChildren(s)){const c=fe.getChildren(s);BE(c,t,n)}})},i2=(e,t,n,r)=>{const{originalData:o,applyIndexDivergence:i,subtotalsForSingleRow:a}=r||{};i&&i(e);let s=jb(e,o,t,n,a);return s=PE(s,o,t,n),s=jE(s,o,t,n),fe.iterateThroughTree(s,(c,l)=>{c.parent=l}),s},Ha={insertSubTotals:jb,postProcessSubTotal:NE,insertGrandTotals:PE,postProcessGrandTotal:IE,insertMeasureNodes:jE,postProcessMeasureNode:LE,applyColorFormatting:o2,preProcessTree:FE,modifyTree:i2,postProcessTree:BE},nn=(e,t)=>{const n=e;return t&&(n.metadataType=t),n};function la(e,t,n){return!t||!t.length?!1:t.some(r=>{let o=!0;return n&&n.fields&&n.fields.length&&n.fields.forEach(i=>{e[i]!==void 0&&r[i]===void 0?o=!1:e[i]!==void 0&&r[i]!==void 0&&(Array.isArray(e[i])?o=o&&e[i].indexOf(r[i])!==-1:o=o&&e[i]===r[i])}),o})}const a2=(e,t=[])=>{let n=!1;return!t||!t.length?!1:e.length===0?!0:(e.forEach(r=>{t.includes(r)&&(n=!0)}),n)},Xw=(e,t)=>{let n=!0;return!t||!t.length?n=!1:e.forEach(r=>{if(r.index){const o=t[t.length-1];n=n&&la(r,[o],{fields:[Co.INDEX]})}if(r.dim&&(r.name=r.dim,r.members&&(r.member=r.members),n=n&&la(r,t,{fields:[Co.NAME,Co.MEMBER]})),r.title){const o=t[t.length-1];n=n&&la(r,[o],{fields:[Co.TITLE]})}}),n},s2=(e,t)=>{let n=!0;return!t||!t.length?n=!1:e.forEach(r=>{r.index&&(n=n&&la(r,t,{fields:[Co.INDEX]})),r.dim&&(r.name=r.dim,n=n&&la(r,t,{fields:[Co.DIM,Co.AGG]})),r.title&&(n=n&&la(r,t,{fields:[Co.TITLE]}))}),n},l2=(e,t)=>{let n=!0;if(e.type&&n&&(n=n&&a2(e.type,t.type)),e.rows&&e.rows.length&&n){const r=t.rows?t.rows:[];n=n&&Xw(e.rows,r)}if(e.columns&&n){const r=t.columns?t.columns:[];n=n&&Xw(e.columns,r)}if(e.values&&n){const r=t.measure?[t.measure]:[];n=n&&s2(e.values,r)}return n},c2=(e,t)=>e.metadata.find(n=>n.field&&n.field.index===t),Vl=(e,t,n=[],r=[])=>{if(!t||!e||typeof e.jaqlIndex=="undefined")return{dimensionsMeta:n,type:r};const o=c2(t,e.jaqlIndex);if(o&&o.jaql&&e.metadataType!==Ee.MEASURES&&n.unshift({title:o.jaql.title,name:o.jaql.dim,member:e.value,index:e.jaqlIndex}),e&&e.userType&&(e.userType===et.SUB_TOTAL||e.userType===et.GRAND_TOTAL)){const i=e.userType.toLowerCase();r.push(i)}return e.parent&&e.parent.metadataType!==Ee.MEASURES?Vl(e.parent,t,n,r):{dimensionsMeta:n,type:r}},e1=e=>{let t={};if(e){const n=e.jaql;t=Ft(n,["type","datatype","table","column"]),e.field&&(t.index=e.field.index)}return t},Kt={CORNER:"corner",COLUMNS:"columns",ROWS:"rows",DATA:"data"};function Yh(e,t="",n=""){let r="";return e&&(e.levels.length&&e.levels.forEach(o=>{r+=` ${t}--${n?`${n}-`:""}level-${o}`}),e.siblings.length&&e.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-`:""}sibling-${o}`}),e.root&&e.root.siblings&&e.root.siblings.length&&e.root.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-root-`:"root-"}sibling-${o}`}),e.parent&&e.parent.siblings&&e.parent.siblings.length&&e.parent.siblings.forEach(o=>{r+=` ${t}--${n?`${n}-parent-`:"parent-"}sibling-${o}`})),r}function u2(e,t){const{metadata:n,rowMetadata:r,rowTreeNode:o,columnTreeNode:i,merge:a}=t||{},s={t:!0,r:!0,b:!0,l:!0};if(e===Kt.CORNER||e===Kt.COLUMNS)return s;if(e===Kt.ROWS){const c=a&&a.colSpan,l=n&&n.nextNode&&n.nextNode.userType===et.GRAND_TOTAL;n&&n.levels.includes(Zt.LAST)&&!n.siblings.includes(Zt.LAST)&&!c&&!l&&(s.b=!1),n&&n.levels.includes(Zt.FIRST)&&n.levels.includes(Zt.LAST)&&!n.siblings.includes(Zt.LAST)&&!c&&!l&&(s.b=!1)}if(e===Kt.DATA){const c=o&&o.userType===et.SUB_TOTAL,l=i&&i.userType===et.SUB_TOTAL,u=i&&i.userType===et.GRAND_TOTAL,d=r&&r.nextNode&&r.nextNode.userType===et.GRAND_TOTAL;r&&r.levels.includes(Zt.LAST)&&!r.siblings.includes(Zt.LAST)&&!c&&!l&&!u&&!d&&(s.b=!1)}return s}function qh(e,t="",n=""){let r="";return e&&e.userType&&(r=`${t}--${n?`${n}-`:""}user-type-${e.userType}`),r}function Vh(e,t="",n=""){let r="";return e&&e.colSpan&&(r=`${t}--${n?`${n}-`:""}merged-columns`),e&&e.rowSpan&&(r=` ${t}--${n?`${n}-`:""}merged-rows`),r}function Gh(e){return e&&e.colSpan?e.colSpan-1:0}function t1(e,t){if(e===void 0)return e;let n=typeof e=="number"?e:parseInt(e,10);return n-=t||1,n}function $a(e){const{isDataCell:t,dataNode:n,treeNode:r}=e,o=t?n:r;return o&&o.style||{}}const d2=e=>{const t={};return Object.keys(e).forEach(n=>{(!n.startsWith("border")||n==="borderColor")&&(t[n]=e[n])}),t},p2=e=>{const t={};return Object.keys(e).forEach(n=>{(!n.startsWith("color")&&!n.startsWith("padding")&&!n.startsWith("border")&&!n.startsWith("font")&&!n.startsWith("lineHeight")&&!n.startsWith("databarColor")||n==="borderColor")&&(t[n]=e[n])}),t},h2=e=>{const t={};return Object.keys(e).forEach(n=>{(n.startsWith("color")||n.startsWith("padding")||n.startsWith("font")||n.startsWith("lineHeight"))&&(t[n]=e[n])}),t},f2=e=>{const t={};return e.databarColor&&(t.backgroundColor=e.databarColor),t},g2=(e,t,n)=>{if(!e||!t||!n||n.measureJaqlIndex===void 0)return;const[r,o]=e[n.measureJaqlIndex]||[];if(r==null)return;const i=t&&t.store&&t.store.compileRange,a=t&&t.store&&t.store.compileRangeContext,s=t&&t.store&&t.store.compileRangeArgs;if(!i||!s||!a||!t||!t.value)return;const c=xe(ee({},s),{minvalue:r,midvalue:r+(o-r)/2,maxvalue:o});let l,u;return c.min===void 0&&(c.maxvalue<=0&&(u=!0),c.min=c.minDef),c.max===void 0&&(c.minvalue>=0&&(l=!0),c.max=c.maxDef),u&&(c.max=c.maxGray),l&&(c.min=c.minGray),i.call(a,c)(t.value)},za="text";class Lb{constructor(t,n,r){B(this,"plugins",[]),B(this,"globalStyles"),B(this,"jaql"),B(this,"indexHelper"),B(this,"columnsMetadata",[]),B(this,"metadataCache",new Map),this.plugins=t,this.jaql=n,this.globalStyles=r,this.indexHelper={measuresLevel:this.getMeasuresLevel(),columnStartFrom:0,rowStartFrom:0},this.globalStyles&&(this.globalStyles=d2(this.globalStyles))}getJaqlPanels(t){if(!this.jaql)throw new Error("No Jaql in Plugin service!");return this.jaql.metadata.filter(n=>n.panel===t)}getMeasuresLevel(){const t=this.getJaqlPanels(Ee.COLUMNS);return this.getJaqlPanels(Ee.MEASURES).length>1?t.length:0}getRowsColumnLength(){return this.getJaqlPanels(Ee.ROWS).length}getTotalTypes(t){const n=t.filter(r=>r===Pi.SUB_TOTAL||r===Pi.GRAND_TOTAL);return n&&n.length?n.filter((r,o,i)=>i.indexOf(r)===o):[]}getMeasureMetaByIndex(t){const n=this.getJaqlPanels(Ee.MEASURES);if(n.length===1)return e1(n[0]);const r=t%n.length;return e1(n[r])}resetRowStartFrom(){this.indexHelper.rowStartFrom=1}applyToColumns(t){t.length!==0&&(this.indexHelper.columnStartFrom===0&&(this.indexHelper.columnStartFrom=this.getRowsColumnLength()),this._applyToColumns(t,{row:-1}))}_applyToColumns(t,n){t.forEach((r,o)=>{const{dimensionsMeta:i,type:a}=Vl(r,this.jaql);a.push(Pi.MEMBER);let s=n.row>=0?n.row+1:0;s>=this.indexHelper.rowStartFrom&&(this.indexHelper.rowStartFrom=s+1),r.metadataType===Ee.MEASURES&&(s=this.indexHelper.measuresLevel);let c=o===0?0:1;c+=this.indexHelper.columnStartFrom;const l={type:a,rowIndex:s,colIndex:c,index:r.jaqlIndex,columns:i};r.metadataType===Ee.MEASURES&&(l.measure=this.getMeasureMetaByIndex(r.index||0));const u={value:r.value||"",content:r.content||"",contentType:r.contentType||za,style:r.style||{},store:r.store||{},state:r.state};if(this.applyGlobal(u),this.apply(l,u),this.addToMetadata(l,u,l.rowIndex,l.colIndex),Object.assign(r,u),this.indexHelper.columnStartFrom=c,r.children){const d={row:s,column:c};this._applyToColumns(r.children,d)}else this.columnsMetadata.push({type:a,metadata:i});return!0})}applyToHeaders(t){!t||!t.children||t.children.length===0||t.children.forEach(n=>{const{dimensionsMeta:r}=Vl(n,this.jaql),o={type:[Pi.MEMBER],rowIndex:0,colIndex:n.index||0,index:n.jaqlIndex,rows:r},i={value:n.value,content:n.content||"",contentType:n.contentType||za,style:n.style?n.style:{},store:n.store||{},state:n.state};this.applyGlobal(i),this.apply(o,i),this.addToMetadata(o,i,o.rowIndex,o.colIndex),Object.assign(n,i)})}applyToRows(t){if(t.length===0)return;const n=this.getJaqlPanels(Ee.ROWS),r=this.getJaqlPanels(Ee.MEASURES),o=this.getJaqlPanels(Ee.COLUMNS);this.indexHelper.rowStartFrom=Lb.getRowStartFromForPage(n.length,r.length,o.length),this._applyToRows(t)}static getRowStartFromForPage(t,n,r){if(t===0&&r===0)return 0;const o=r+(n===0?0:1);return o===0?1:o}_applyToRows(t){t.forEach((n,r)=>{const{dimensionsMeta:o,type:i}=Vl(n,this.jaql);i.push(Pi.MEMBER);const a=n.level?n.level:0,s=r===0?this.indexHelper.rowStartFrom:this.indexHelper.rowStartFrom+1,c={type:i,rowIndex:s,colIndex:a,index:n.jaqlIndex,rows:o},l={value:n.value,content:n.content||"",contentType:n.contentType||za,style:n.style||{},store:n.store||{},state:n.state};return this.applyGlobal(l),this.apply(c,l),this.addToMetadata(c,l,c.rowIndex,c.colIndex),this.indexHelper.rowStartFrom=s,n.children?this._applyToRows(n.children):n.data&&n.data.length&&this.applyToValues(n.data,{type:i,metadata:o},{rowIndex:s,colIndex:this.getRowsColumnLength()}),Object.assign(n,l),!0})}applyToValues(t,n,r){t.length&&t.forEach((o,i)=>{const a=[Pi.VALUE],s=this.columnsMetadata[i];if(!s)return;const c=this.getTotalTypes([...n.type,...s.type]),l=this.getMeasureMetaByIndex(i),u={type:a.concat(c),rows:n.metadata,columns:s.metadata,measure:l,colIndex:i+r.colIndex,rowIndex:r.rowIndex,index:l&&l.index?l.index:0};let d={value:o,content:o,contentType:za,style:{},store:o&&o.store||{},state:o&&o.state||void 0};o!=null&&typeof o=="object"&&(d={value:o.value?o.value:null,content:o.content||"",contentType:o.contentType||za,style:o.style||{},store:o.store||{},state:o.state}),this.applyGlobal(d),this.apply(u,d),this.addToMetadata(u,d,u.rowIndex,u.colIndex),t[i]=d})}addToMetadata(t,n,r,o){const i=ee({cellData:{value:n.value,content:n.content}},t);this.metadataCache.set(`${r}-${o}`,i)}applyGlobal(t){const{globalStyles:n}=this;n&&(t.style=ee(ee({},t.style),n))}apply(t,n){this.plugins&&this.plugins.length&&this.plugins.forEach(r=>{if(l2(r.target,t)){const o=r.handler;o(t,n)}})}}const Qh=(e,t)=>{const n=e||{metadata:[],grandTotals:null};let{metadata:r}=n;return r=r.map(o=>{const i=o.field||{},a=t.find(({field:c})=>c&&c.index===i.index),s=a?a.format:null;return s?xe(ee({},o),{format:s}):o}),xe(ee({},n),{metadata:r})},n1=100,m2="dataLoad",zm="dataChunkLoaded",v2="dataBarChunkLoaded",b2="rangeMinMaxChunkLoaded",Wm="grandChunkLoaded",y2="dataFinishChunkLoaded",w2="finishChunkLoaded",Gl="progressError",Cc="headerCellFormat",Um="dataCellFormat",Ym="totalRowsCountLoaded",qm="totalColumnsCountLoaded",r1=1e3,x2=0,_2={throttle:bE,throttleTime:x2,PluginService:Lb,skipInternalColorFormatting:!1,subtotalsForSingleRow:!1};let HE=class Gn{constructor(t,n,r,o){B(this,"logger"),B(this,"events"),B(this,"loadService"),B(this,"options"),B(this,"tempDataChunks",[]),B(this,"lastNotHandledChunkIndex",0),B(this,"lastReadyNotHandledChunkIndex",0),B(this,"rowsGrand"),B(this,"rowsTreeService"),B(this,"columnsTreeService"),B(this,"cornerTreeService"),B(this,"pageSize",n1),B(this,"isPaginated",!1),B(this,"loadedPagesCount",0),B(this,"isLoadInProgress",!1),B(this,"loadPromiseResolve"),B(this,"loadPromiseReject"),B(this,"loadPromiseCache"),B(this,"loadAllPromise"),B(this,"loadAllPromiseResolve"),B(this,"loadAllPromiseReject"),B(this,"isWholeDataLoaded",!1),B(this,"hasDataFinishEvent",!1),B(this,"isDataHandlerThrottled",!1),B(this,"onDataHandlerThrottle"),B(this,"metadata",[]),B(this,"dataBars"),B(this,"rangeMinMax"),B(this,"divergenceComparator",new Zw),B(this,"pluginService"),B(this,"rawJaql"),B(this,"triggeredEventsData",{}),B(this,"callPlugins",[]),B(this,"globalStyles"),B(this,"columnsCount"),B(this,"totalColumnsCount"),B(this,"rowsCount"),B(this,"totalRowsCount"),B(this,"totalRecordsCount"),B(this,"limitReached"),B(this,"onMetadataHandler",()=>{const i={metadata:this.getMetadata()};this.isSingleRowTree()&&Tt.normalizeSingleBranchTreeSortDetails(i)}),B(this,"onHeadersHandler",i=>{const a=this.getJaql.bind(this),s=this.getRawJaql.bind(this),c=this.applyIndexDivergence.bind(this),l=(f,m,b)=>this.emit(Cc,f,m,b,this.options),u=Gn.createColumnsTreeServiceBuilder({getJaql:a,getRawJaql:s,pluginService:this.pluginService,applyIndexDivergence:c},{emitHeaderCellFormatEvent:l})(i);this.columnsTreeService=u.columnsTreeService,this.columnsCount=u.columnsCount,this.totalColumnsCount=u.totalColumnsCount,this.emit(qm,{columnsCount:this.columnsCount||0,totalColumnsCount:this.totalColumnsCount||0});const d=Gn.createCornerTreeServiceBuilder({getJaql:a,getRawJaql:s,pluginService:this.pluginService,columnsTreeService:this.columnsTreeService},{emitHeaderCellFormatEvent:l}),{cornerTreeService:p}=d();this.cornerTreeService=p}),B(this,"onDataHandler",i=>{this.tempDataChunks=this.tempDataChunks||[],Array.isArray(i)?(i||[]).forEach(a=>{Gn.fillDataChunks(this.tempDataChunks,a,this.pageSize)}):Gn.fillDataChunks(this.tempDataChunks,i,this.pageSize),this.tempDataChunks.length&&(this.isDataHandlerThrottled=!0,this.onDataHandlerThrottle())}),B(this,"onGrandHandler",i=>{const a=this.preProcessTree([i],Ee.ROWS)[0],s="Rows grand total",c=a?a.data:[],l=fe.create(s,void 0,c),u=nn(l,Ee.ROWS);u.userType=et.GRAND_TOTAL,this.postProcessTree([u]),this.postProcessData([u]),this.rowsGrand=u,this.emit(Wm,fe.wrapInRootNode(this.rowsGrand))}),B(this,"onFinishHandler",()=>{this.emit(w2,{totalRows:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalColumns:typeof this.totalColumnsCount=="number"?this.totalColumnsCount:this.getLoadedColumnsCount()})}),B(this,"onTotalRowsHandler",i=>{const{rowsCount:a,queryRowsCount:s,limitReached:c}=i||{};this.totalRowsCount=a,this.totalRecordsCount=s,this.limitReached=c,this.emit(Ym,i)}),B(this,"onDataBarsHandler",i=>{const{data:a=[]}=i;let s=0;this.cornerTreeService&&(s=this.cornerTreeService.getTreeChildLength()),this.dataBars=[...Array(s),...a],this.emit(v2,this.dataBars)}),B(this,"onRangeMinMaxHandler",i=>{const{data:a=[]}=i,s=this.getJaql(),c=Tt.getMetadataTree(s,Ee.MEASURES),l=fe.getChildren(c),u=[];l.forEach((d,p)=>{u[d.measureJaqlIndex||0]=a[p]}),this.rangeMinMax=u,this.emit(b2,this.rangeMinMax)}),B(this,"onDataFinishHandler",({rowsCount:i}={})=>{if(this.finishRequest(),this.rowsCount=i,this.tempDataChunks.length){const a=this.tempDataChunks[this.tempDataChunks.length-1];a.ready=!0}this.onDataHandlerThrottle(),this.checkLoadPromise(),this.emit(y2,{limitedRows:this.rowsCount,limitedColumns:this.columnsCount})}),B(this,"onErrorHandler",i=>{process.env.NODE_ENV!=="production"&&this.logger.console.warn(`${this.logger.getName()} data loading error "${JSON.stringify(i)}"`),!this.isLoadInProgress&&!this.isWholeDataLoaded&&!(i instanceof Zi)&&this.emit(Gl,i)}),this.loadService=t,this.events=n||new Us,this.logger=o||jo.create("DataService"),this.options=ee(ee({},_2),r),this.attachEvent(),this.onDataHandlerThrottle=this.options.throttle(()=>{const i=Jw(this.tempDataChunks,d=>d.ready&&!d.handled,this.lastReadyNotHandledChunkIndex);if(i===-1)return;this.lastReadyNotHandledChunkIndex=i;const a=this.tempDataChunks[i],s=this.preProcessTree(a.list,Ee.ROWS),c=this.modifyTree(s,Ee.ROWS);this.postProcessTree(c,{skipFormatEvent:!0}),this.postProcessData(c,{skipFormatEvent:!0});const l=fe.wrapInRootNode(c);this.rowsTreeService?this.rowsTreeService.extend(l):this.rowsTreeService=new Zo(l,!0),this.emit(zm,this.getLoadedElementsCount()),a.handled=!0;const u=Jw(this.tempDataChunks,d=>!d.handled,this.lastNotHandledChunkIndex);if(u!==-1?(this.lastNotHandledChunkIndex=u,this.onDataHandlerThrottle()):this.isDataHandlerThrottled=!1,this.hasDataFinishEvent&&this.tempDataChunks.length){const d=this.tempDataChunks[this.tempDataChunks.length-1];d.ready=!0}this.hasDataFinishEvent&&u===-1?(this.finishRequest(),this.checkLoadPromise()):this.checkLoadPromise()},this.options.throttleTime)}destroy(){this.detachEvent(),this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.cornerTreeService=void 0,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.events.removeAllListeners()}on(t,n){this.events.on(t,n),this.triggeredEventsData[t]&&(this.triggeredEventsData[t].forEach(r=>{this.events.emit(t,...r)}),delete this.triggeredEventsData[t])}emit(t,...n){this.events.listeners(t).length===0?(this.triggeredEventsData[t]=this.triggeredEventsData[t]||[],this.triggeredEventsData[t].push(n)):this.events.emit(t,...n)}off(t,n){this.events.removeListener(t,n),this.triggeredEventsData[t]&&delete this.triggeredEventsData[t]}loadData(t,n){const{pageSize:r=n1,isPaginated:o=!1,cacheResult:i=!1,metadata:a}=n||{},s=this.pageSize===r;if(this.clearLoadAllPromise(),t&&this.clearCache(),this.pageSize=r,this.isPaginated=o,this.emit(m2),this.loadPromiseCache&&s){const l=Promise.resolve(this.loadPromiseCache);return this.loadPromiseCache=void 0,l}this.isLoadInProgress=!0,t&&(this.metadata=a||[],this.rawJaql=Qh(t,this.metadata),this.initPluginService(this.rawJaql),this.loadService.load(t).then(l=>{if(l==null)return;const u=!("data"in l);if(l.dataFinish[0]&&u)throw{error:{error:!0,details:"metadata undefined."}}}).catch(l=>{this.loadPromiseReject&&this.loadPromiseReject(l.error)}));const c=new Promise((l,u)=>{this.loadPromiseResolve=l,this.loadPromiseReject=u}).then(l=>this.sendInitPage(l)).then(l=>(i&&(this.loadPromiseCache=l),this.loadedPagesCount=1,l)).catch(l=>{throw l instanceof Zi&&this.clearLoadPromise(),l});return this.checkLoadPromise(),c}loadAllData(){if(this.isWholeDataLoaded){const t={loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax};return this.columnsCount!==0&&this.totalColumnsCount!==0&&(t.columnsCount=this.columnsCount,t.totalColumnsCount=this.totalColumnsCount),Promise.resolve(t)}return this.loadAllPromise||(this.loadAllPromise=new Promise((t,n)=>{this.loadAllPromiseResolve=t,this.loadAllPromiseReject=n}).then(()=>({loadedRowsCount:this.getLoadedElementsCount(),totalItemsCount:typeof this.totalRowsCount=="number"?this.totalRowsCount:this.getTotalItemsCount(),totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,dataBars:this.dataBars,rangeMinMax:this.rangeMinMax})).catch(t=>{throw t instanceof Zi&&this.clearLoadAllPromise(),t})),this.loadAllPromise}getSelectedPageData(t,n){return Promise.resolve(this.sendPaginatedPage(t,n))}getIndexedPageData(t,n,r=!1){return Promise.resolve(this.sendPartialPage(t,n,r))}getJaql(){return this.loadService.getJaql()||{metadata:[],grandTotals:null}}isSingleRowTree(){return this.loadService.isSingleRowTree()}setPluginHandlers(t){this.callPlugins=t}setGlobalStyles(t){this.globalStyles=t}getRawJaql(){return this.rawJaql||this.getJaql()}getMetadata(){return this.metadata.length>0?this.metadata:this.getJaql().metadata}preProcessTree(t,n,r){return Ha.preProcessTree(t,n,this.getJaql(),r)}postProcessTree(t,n){const r=(i,a,s)=>this.emit(Cc,i,a,s,this.options),o=xe(ee({},n||{}),{emitFn:r});return Ha.postProcessTree(t,this.getRawJaql(),o)}postProcessData(t,n){const{skipFormatEvent:r=!1,onlyFormatEvents:o=!1}=n||{},i=this.columnsTreeService?this.columnsTreeService.getLastLevelNodes():[],a=fe.getLastLevelNodes(t),s=this.getRawJaql();r||a.forEach(c=>{const l=nn(c);i.forEach(u=>{const d=nn(u),p=Tt.getMetadataPanelByIndex(s,d.measureJaqlIndex,Ee.MEASURES);if(typeof l.data!="undefined"&&typeof d.index!="undefined"){const{data:f=[]}=l,{index:m}=d,b=f[m],v=typeof b=="object"&&b!==null&&b!==void 0?b:{value:b};if(f[m]=v,o||!r){const{skipInternalColorFormatting:w=!1}=this.options;w||Ha.applyColorFormatting(v,l,d,p),this.emit(Um,v,l,d,p,s,this.options)}}})})}modifyTree(t,n,r){const o=this.getJaql();return Ha.modifyTree(t,n,o,{originalData:r,applyIndexDivergence:this.applyIndexDivergence.bind(this),subtotalsForSingleRow:this.options.subtotalsForSingleRow})}applyIndexDivergence(t){this.divergenceComparator=new Zw(t,this.divergenceComparator)}initPluginService(t){this.pluginService=new this.options.PluginService(this.callPlugins,t,this.globalStyles)}cancelLoading(){const t=new Zi;this.loadPromiseReject&&typeof this.loadPromiseReject=="function"&&this.loadPromiseReject(t),this.loadAllPromiseReject&&typeof this.loadAllPromiseReject=="function"&&this.loadAllPromiseReject(t),this.detachEvent()}getPageSize(){return this.pageSize}sendInitPage(t){if(this.loadService.hasError()||!this.loadService.hasData())return Gn.getEmptyPage();let n,r;const o=this.getPageSize();if(this.rowsTreeService){const a=o>t?t:o,s=Gn.cloneTreeNode,c=this.rowsTreeService.getPartialTree(0,a,{cloneFn:s});this.rowsGrand&&c.push(_n(this.rowsGrand)),this.postProcessTree(c,{onlyFormatEvents:!0,iterateFn:fe.clearNodeCache}),this.postProcessData(c,{onlyFormatEvents:!0});const l=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,u=fe.wrapInRootNode(c);this.pluginService&&u&&u.children&&(this.pluginService.applyToRows(u.children),r=this.pluginService.metadataCache),n=new Zo(u,!0,l),n.hasGrandTotals=!!this.rowsGrand}const i=this.isWholeDataLoaded&&o>=t;return{rowsTreeService:n,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:i,cellsMetadata:r}}sendPaginatedPage(t,n){if(this.loadService.hasError()||!this.loadService.hasData())return Gn.getEmptyPage();n&&(this.pageSize=n);const r=this.getPageSize(),o=this.getLoadedElementsCount();if(t*r>=o)throw new Error("Selected page is out of elements range!");if(t<0)throw new Error("Selected page must be >= 0");let i,a;if(this.rowsTreeService){const s=t>=0?t*r:0,c=(t+1)*r>o?o:(t+1)*r,l=Gn.cloneTreeNode,u=this.rowsTreeService.getPartialTree(s,c,{cloneFn:l});this.rowsGrand&&u.push(_n(this.rowsGrand)),this.postProcessTree(u,{onlyFormatEvents:!0,iterateFn:fe.clearNodeCache}),this.postProcessData(u,{onlyFormatEvents:!0});const d=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,p=fe.wrapInRootNode(u);this.pluginService&&p&&p.children&&(this.pluginService.applyToRows(p.children),a=this.pluginService.metadataCache),i=new Zo(p,!0,d),i.hasGrandTotals=!!this.rowsGrand}return{rowsTreeService:i,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:a}}sendPartialPage(t,n,r){if(this.loadService.hasError()||!this.loadService.hasData())return Gn.getEmptyPage();const o=this.getLoadedElementsCount();let[i,a]=[Math.min(t,n),Math.max(t,n)];i=i>=0?i:0,a=a>=0?a:0,a=a<o?a:o;let s,c;if(i>o)s=void 0;else{let l;if(this.rowsTreeService){const p=Gn.cloneTreeNode;l=this.rowsTreeService.getPartialTree(i,a,{cloneFn:p}),r&&this.rowsGrand&&l.push(_n(this.rowsGrand)),this.postProcessTree(l,{onlyFormatEvents:!0,iterateFn:fe.clearNodeCache}),this.postProcessData(l,{onlyFormatEvents:!0})}const u=this.rowsTreeService?this.rowsTreeService.getTreeDeepsLength():0,d=fe.wrapInRootNode(l);this.pluginService&&d&&d.children&&(this.pluginService.applyToRows(d.children),c=this.pluginService.metadataCache),s=new Zo(d,!0,u),s.hasGrandTotals=!!(r&&this.rowsGrand)}return{rowsTreeService:s,columnsTreeService:this.columnsTreeService,cornerTreeService:this.cornerTreeService,isLastPage:!0,cellsMetadata:c}}getLoadedElementsCount(){return this.rowsTreeService?this.rowsTreeService.getTreeChildLength():0}getTotalItemsCount(){return this.loadService.getTotalItemsCount()}getLoadedColumnsCount(){return this.columnsTreeService?this.columnsTreeService.getTreeChildLength():0}attachEvent(){this.loadService.listenerCount(Ae.HEADERS)&&this.loadService.offAll(Ae.HEADERS),this.loadService.on(Ae.HEADERS,this.onHeadersHandler),this.loadService.on(Ae.METADATA,this.onMetadataHandler),this.loadService.on(Ae.DATA,this.onDataHandler),this.loadService.on(Ae.GRAND,this.onGrandHandler),this.loadService.on(Ae.DATA_FINISH,this.onDataFinishHandler),this.loadService.on(Ae.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.on(Ae.DATABARS,this.onDataBarsHandler),this.loadService.on(Ae.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.on(Ae.FINISH,this.onFinishHandler),this.loadService.on(Ae.ERROR,this.onErrorHandler)}detachEvent(){this.loadService.off(Ae.HEADERS,this.onHeadersHandler),this.loadService.off(Ae.METADATA,this.onMetadataHandler),this.loadService.off(Ae.DATA,this.onDataHandler),this.loadService.off(Ae.GRAND,this.onGrandHandler),this.loadService.off(Ae.DATA_FINISH,this.onDataFinishHandler),this.loadService.off(Ae.TOTAL_ROWS,this.onTotalRowsHandler),this.loadService.off(Ae.DATABARS,this.onDataBarsHandler),this.loadService.off(Ae.RANGE_MIN_MAX,this.onRangeMinMaxHandler),this.loadService.off(Ae.FINISH,this.onFinishHandler),this.loadService.off(Ae.ERROR,this.onErrorHandler)}checkLoadPromise(){if(!this.isLoadInProgress)return;const t=this.getLoadedElementsCount();(t>=this.getPageSize()||this.isWholeDataLoaded)&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.clearLoadPromise()))}clearLoadAllPromise(){this.loadAllPromise=void 0,this.loadAllPromiseReject=void 0,this.loadAllPromiseResolve=void 0}clearLoadPromise(){this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0}finishRequest(){this.logger.log("finishRequest"),this.hasDataFinishEvent=!0,!this.isDataHandlerThrottled&&(this.isWholeDataLoaded=!0,this.loadAllPromiseResolve&&typeof this.loadAllPromiseResolve=="function"&&(this.loadAllPromiseResolve(),this.clearLoadAllPromise()))}clearCache(){this.rowsGrand=void 0,this.rowsTreeService=void 0,this.columnsTreeService=void 0,this.loadedPagesCount=0,this.hasDataFinishEvent=!1,this.isWholeDataLoaded=!1,this.isLoadInProgress=!1,this.tempDataChunks=[],this.lastNotHandledChunkIndex=0,this.lastReadyNotHandledChunkIndex=0,this.isDataHandlerThrottled=!1}static getEmptyPage(){return{isLastPage:!0}}static fillDataChunks(t,n,r=r1,o=r1){const i=t.length<2?r:o;let a=t[Math.max(0,t.length-1)],s,c=!a;if(!n||typeof n.children=="undefined"&&typeof n.value=="undefined"&&n.data&&!n.data.length){a&&(a.ready=!0);return}if(a){const l=Math.max(0,a.list.length-1);s=a.list[l];const u=a.size?`${a.size}`:"0",d=parseInt(u,10)+(n.size||1);(a.handled||d>i&&!(s.isPart&&s.value===n.value))&&(c=!0)}n&&n.isPart&&s&&(!s.isPart||s.value!==n.value)&&(c=!0,s.value!==n.value&&(s=void 0)),c&&(a&&(a.ready=!0),a={list:[],size:0,ready:!1,handled:!1},t.push(a)),a&&(s&&s.isPart&&n&&n.isPart?(fe.deepMerge(s,n),a.size+=n.size||1):(a.list.push(n),a.size+=n.size||1))}static cloneTreeNode(t,n){const r=t,{children:o,isMapped:i,minLevel:a,childCount:s,childDeep:c,parent:l,master:u,data:d,state:p,style:f,store:m}=r,b=Ft(r,["children","isMapped","minLevel","childCount","childDeep","parent","master","data","state","style","store"]),v=_n(b);return l&&(v.parent=l),u&&(v.master=u),d&&(v.data=_n(d)),p&&(v.state=_n(p)),f&&(v.style=_n(f)),m&&(v.store=_n(m)),!n&&o&&(v.children=o.map(w=>{const _=Gn.cloneTreeNode(w);return _.parent=v,_})),v}static createColumnsTreeServiceBuilder(t,n){return r=>{const o=t.getJaql(),i=t.getRawJaql?t.getRawJaql():Qh(o,o.metadata||[]),a=Tt.getMetadataTree(o,Ee.MEASURES),s=fe.getChildren(a),{preProcessTree:c,modifyTree:l,postProcessTree:u}=Ha;let d,p,f=0,m=0;if(fe.hasChildren(r)){r.columnsCount&&r.totalColumnsCount&&(f=r.columnsCount,m=r.totalColumnsCount);const b=c(r,Ee.COLUMNS,o),v=l(b,Ee.COLUMNS,o,{originalData:r,applyIndexDivergence:t.applyIndexDivergence});u(v,i,{emitFn:n&&n.emitHeaderCellFormatEvent});const w=fe.wrapInRootNode(v);t.pluginService&&w&&w.children&&t.pluginService.applyToColumns(w.children),d=w,p=new Zo(w),s.length===1&&p.setValueNode(s[0])}else fe.hasChildren(a)?(r.columnsCount&&r.totalColumnsCount&&(f=r.columnsCount,m=r.totalColumnsCount),typeof r.maxChilds=="number"&&(f=r.maxChilds,a.children=fe.getChildren(a).filter((b,v)=>v<r.maxChilds)),t.pluginService&&a.children&&t.pluginService.applyToColumns(a.children),u(fe.getChildren(a),i,{emitFn:n&&n.emitHeaderCellFormatEvent}),d=a,p=new Zo(a)):(t.pluginService&&t.pluginService.resetRowStartFrom(),d=void 0,p=void 0,f=0,m=0);return{columnsTree:d,columnsTreeService:p,columnsCount:f,totalColumnsCount:m}}}static createCornerTreeServiceBuilder(t,n){return()=>{const r=t.getJaql(),o=t.getRawJaql?t.getRawJaql():Qh(r,r.metadata||[]),i=Tt.getMetadataTree(r,Ee.ROWS);let a;if(fe.hasChildren(i)){fe.iterateThroughTree(fe.getChildren(i),c=>{c.userType=et.CORNER;const l=Tt.getMetadataPanelByIndex(o,c.jaqlIndex,c.metadataType||"");n&&n.emitHeaderCellFormatEvent&&n.emitHeaderCellFormatEvent(c,l,o)});let s;t.columnsTreeService&&(s=t.columnsTreeService.getTreeDeepsLength()),t.pluginService&&t.pluginService.applyToHeaders(i),a=new Zo(i,!1,s)}return{cornerTree:i,cornerTreeService:a}}}};var Vm={},C2={get exports(){return Vm},set exports(e){Vm=e}};/*!
9
+ Copyright (c) 2018 Jed Watson.
10
+ Licensed under the MIT License (MIT), see
11
+ http://jedwatson.github.io/classnames
12
+ */var o1;function k2(){return o1||(o1=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var r=[],o=0;o<arguments.length;o++){var i=arguments[o];if(i){var a=typeof i;if(a==="string"||a==="number")r.push(i);else if(Array.isArray(i)){if(i.length){var s=n.apply(null,i);s&&r.push(s)}}else if(a==="object"){if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]")){r.push(i.toString());continue}for(var c in i)t.call(i,c)&&i[c]&&r.push(c)}}}return r.join(" ")}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(C2)),Vm}var S2=k2();const Te=rr(S2);var Jh,i1;function T2(){if(i1)return Jh;i1=1;var e=br(),t=function(){return e.Date.now()};return Jh=t,Jh}var Zh,a1;function E2(){if(a1)return Zh;a1=1;var e=/\s/;function t(n){for(var r=n.length;r--&&e.test(n.charAt(r)););return r}return Zh=t,Zh}var Kh,s1;function O2(){if(s1)return Kh;s1=1;var e=E2(),t=/^\s+/;function n(r){return r&&r.slice(0,e(r)+1).replace(t,"")}return Kh=n,Kh}var Xh,l1;function $u(){if(l1)return Xh;l1=1;var e=qs(),t=ki(),n="[object Symbol]";function r(o){return typeof o=="symbol"||t(o)&&e(o)==n}return Xh=r,Xh}var ef,c1;function D2(){if(c1)return ef;c1=1;var e=O2(),t=Io(),n=$u(),r=NaN,o=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,a=/^0o[0-7]+$/i,s=parseInt;function c(l){if(typeof l=="number")return l;if(n(l))return r;if(t(l)){var u=typeof l.valueOf=="function"?l.valueOf():l;l=t(u)?u+"":u}if(typeof l!="string")return l===0?l:+l;l=e(l);var d=i.test(l);return d||a.test(l)?s(l.slice(2),d?2:8):o.test(l)?r:+l}return ef=c,ef}var tf,u1;function R2(){if(u1)return tf;u1=1;var e=Io(),t=T2(),n=D2(),r="Expected a function",o=Math.max,i=Math.min;function a(s,c,l){var u,d,p,f,m,b,v=0,w=!1,_=!1,T=!0;if(typeof s!="function")throw new TypeError(r);c=n(c)||0,e(l)&&(w=!!l.leading,_="maxWait"in l,p=_?o(n(l.maxWait)||0,c):p,T="trailing"in l?!!l.trailing:T);function y(F){var N=u,I=d;return u=d=void 0,v=F,f=s.apply(I,N),f}function k(F){return v=F,m=setTimeout(C,c),w?y(F):f}function S(F){var N=F-b,I=F-v,j=c-N;return _?i(j,p-I):j}function x(F){var N=F-b,I=F-v;return b===void 0||N>=c||N<0||_&&I>=p}function C(){var F=t();if(x(F))return O(F);m=setTimeout(C,S(F))}function O(F){return m=void 0,T&&u?y(F):(u=d=void 0,f)}function D(){m!==void 0&&clearTimeout(m),v=0,u=b=d=m=void 0}function R(){return m===void 0?f:O(t())}function M(){var F=t(),N=x(F);if(u=arguments,d=this,b=F,N){if(m===void 0)return k(b);if(_)return clearTimeout(m),m=setTimeout(C,c),y(b)}return m===void 0&&(m=setTimeout(C,c)),f}return M.cancel=D,M.flush=R,M}return tf=a,tf}var A2=R2();const M2=rr(A2),ns="getSize",Gm="change",rs="dataBars",os="rangeMinMax";class N2{constructor(t,n){B(this,"events"),B(this,"colsWidth",{}),B(this,"rowsHeight",{}),B(this,"initialFixedWidth",{}),B(this,"dataBarsCols",[]),B(this,"dataBarsColsCache"),B(this,"dataBarsMinMax"),B(this,"rangeMinMax"),B(this,"notifyChangeTimer",0),B(this,"notifySizeChangeTimer",0),B(this,"notifyDataBarsChangeTimer",0),B(this,"notifyRangeMinMaxChangeTimer",0),B(this,"logger"),B(this,"columnWidth",({index:r})=>this.initialFixedWidth[r]!==void 0?this.initialFixedWidth[r]:this.colsWidth[r]||Number.NaN),B(this,"rowHeight",({index:r})=>this.rowsHeight[r]||Number.NaN),this.events=new Us,this.events.setMaxListeners(1/0),this.logger=jo.create("TableSize"),this.dataBarsMinMax=t,this.rangeMinMax=n}updateDataBars(t,n,r){this.dataBarsCols[t]=this.dataBarsCols[t]||[];const o=this.dataBarsCols[t];o[n]=r,this.dataBarsMinMax&&this.notifyDataBarsChange()}updateDataBarsMinMax(t){this.dataBarsMinMax=t,this.notifyDataBarsChange()}updateRangeMinMax(t){this.rangeMinMax=t,this.notifyRangeMinMaxChange()}updateWidth(t,n){this.logger.log("updateWidth",t,n),this.colsWidth[t]=n,this.notifySizesChange()}updateHeight(t,n){this.logger.log("updateHeight",t,n),this.rowsHeight[t]=n,this.notifySizesChange()}notifyChange(){this.notifyChangeTimer&&(clearTimeout(this.notifyChangeTimer),this.notifyChangeTimer=0),this.notifyChangeTimer=window.setTimeout(()=>{this.notifyChangeTimer=0,this.events.emit(ns)})}setFixedWidth(t,n){this.logger.log("setFixedWidth",t,n),this.initialFixedWidth[t]=n,this.notifySizesChange()}setInitialFixedWidth(t){this.logger.log("setInitialFixedWidth",t),Array.isArray(t)&&t.forEach(n=>{const[r,o]=n;this.initialFixedWidth[r]=o})}hasInitialFixedWidth(t){return typeof this.initialFixedWidth[t]!="undefined"}hasPendingChanges(){return!!(this.notifyChangeTimer||this.notifySizeChangeTimer)}fitWidths(t){const n=[];Object.keys(this.colsWidth).forEach(i=>{const a=parseInt(i,10);n.push([a,this.columnWidth({index:a})])});const r=n.reduce((i,[,a=0]=[])=>i+a,0),o=n.map(([i,a])=>{const s=Math.floor(t*a/r);return[i,s]});this.setInitialFixedWidth(o),this.notifySizesChange()}notifySizesChange(){this.notifySizeChangeTimer&&(clearTimeout(this.notifySizeChangeTimer),this.notifySizeChangeTimer=0),this.notifySizeChangeTimer=window.setTimeout(()=>{this.notifySizeChangeTimer=0;const t={};Object.keys(this.colsWidth).forEach(n=>{const r=parseInt(n,10);let o=this.colsWidth[r];const i=this.initialFixedWidth[r];typeof i=="number"&&(o=i),t[r]=o}),this.colsWidth=t,this.events.emit(Gm,this.colsWidth,this.rowsHeight)})}notifyDataBarsChange(){this.notifyDataBarsChangeTimer&&(clearTimeout(this.notifyDataBarsChangeTimer),this.notifyDataBarsChangeTimer=0),this.notifyDataBarsChangeTimer=window.setTimeout(()=>{this.notifyDataBarsChangeTimer=0,this.dataBarsColsCache=this.dataBarsCols.map(t=>t.reduce((n,r)=>n>r?n:r,0)),this.events.emit(rs,{colsWidth:this.dataBarsColsCache,minMaxs:this.dataBarsMinMax})})}notifyRangeMinMaxChange(){this.notifyRangeMinMaxChangeTimer&&(clearTimeout(this.notifyRangeMinMaxChangeTimer),this.notifyRangeMinMaxChangeTimer=0),this.notifyRangeMinMaxChangeTimer=window.setTimeout(()=>{this.notifyRangeMinMaxChangeTimer=0,this.events.emit(os,{rangeMinMax:this.rangeMinMax})})}getDataBars(){if(!(!this.dataBarsMinMax||!this.dataBarsColsCache))return{colsWidth:this.dataBarsColsCache,minMaxs:this.dataBarsMinMax}}getRangeMinMax(){if(this.rangeMinMax)return{rangeMinMax:this.rangeMinMax}}on(t,n){this.events.on(t,n)}off(t,n){this.events.off(t,n)}}const Ql=class extends P.PureComponent{constructor(e){super(e),B(this,"height",0),B(this,"width",0),B(this,"content"),B(this,"tdElement"),B(this,"cellStyle"),B(this,"contentStyle"),B(this,"contentRef",t=>{t&&(this.content=t)}),B(this,"tdRef",t=>{t&&(this.tdElement=t)}),B(this,"onGetSize",()=>{const{type:t,rowIndex:n,colIndex:r}=this.props,o=this.tdElement;if(!o)return;let i,a;if(t===Ql.type.COL){if(!this.content)return;i=o.getBoundingClientRect().width,this.props.tableSize.updateWidth(r,i)}else a=o.getBoundingClientRect().height,this.props.tableSize.updateHeight(n,a)}),this.contentStyle={},this.cellStyle={}}componentDidMount(){this.props.tableSize.on(ns,this.onGetSize)}UNSAFE_componentWillReceiveProps(e){e.tableSize!==this.props.tableSize&&(this.props.tableSize.off(ns,this.onGetSize),e.tableSize.on(ns,this.onGetSize)),e.width!==this.props.width&&(this.contentStyle={},this.props.type===Ql.type.COL&&(this.contentStyle.height=0)),e.height!==this.props.height&&(this.cellStyle={})}componentWillUnmount(){this.props.tableSize.off(ns,this.onGetSize)}getIndex(){return this.props.type===Ql.type.COL?this.props.colIndex:this.props.rowIndex}render(){const{type:e}=this.props,t=this.getIndex(),n=`table-grid__cell-anchor
13
+ table-grid__cell-anchor--${e}
14
+ table-grid__cell-anchor--${e}-${t}
15
+ `.trim();return E.jsx("td",{className:n,style:this.cellStyle,ref:this.tdRef,children:E.jsx("div",{ref:this.contentRef,className:"table-grid__cell-anchor-content",style:this.contentStyle})},`${e}-${t}`)}};let is=Ql;B(is,"type",{ROW:"row",COL:"col"});const P2="multi-grid",I2="multi-grid--new",d1="multi-grid--no-rows",j2="multi-grid--no-columns",p1="multi-grid--no-corner",L2="multi-grid--no-fixed-left",_l="table-grid",F2="table-grid--data",B2="table-grid--rows",H2="table-grid--columns",$2="table-grid--corner",h1="table-grid--top",f1="table-grid--right",g1="table-grid--bottom",m1="table-grid--left",nf="table-grid--fixed",z2="table-grid__table table-grid--table-native",W2="table-grid__colgroup",v1="table-grid__column",U2="table-grid__tbody",rf="table-grid__row",wn="table-grid__cell",Y2="table-grid__cell--selected",q2="table-grid__cell--drilled",V2="table-grid__cell--sorted",G2="table-grid__cell--sorted-inactive",Q2="table-grid__cell--sorted--asc",J2="table-grid__cell--sorted--desc",Z2="table-grid__cell--default-sorted--asc",K2="table-grid__cell--default-sorted--desc",X2="table-grid__cell--fixed-width",ej="table-grid__cell-corner",tj="table-grid__content",nj="table-grid__content__wrapper",Cl="table-grid__content__inner",rj="table-grid__sorting-settings-icon",oj="table-grid__cell--sort-icon-persistent";class as extends P.PureComponent{constructor(){super(...arguments),B(this,"tableStyles")}UNSAFE_componentWillReceiveProps(t){t.borderColor!==this.props.borderColor&&(this.tableStyles=void 0)}componentDidUpdate(){this.props.onGridUpdated&&this.props.onGridUpdated()}getTableStyles(){return this.tableStyles===void 0&&(this.props.borderColor?this.tableStyles={borderColor:this.props.borderColor}:this.tableStyles=null),this.tableStyles}getColumns(t=10){return Array.from(Array(t+1)).map((n,r)=>E.jsx("col",{className:`${v1} ${v1}-${r}`},`col-${r}`))}getRows(t=10,n=10,r,o){const{clone:i,borderWidth:a}=this.props;return E.jsxs(E.Fragment,{children:[Array.from(Array(t)).map((s,c)=>{const l=o[c];return this.getRow(n,c,l,r)}),i?null:E.jsx("tr",{className:rf,style:{height:0},children:Array.from(Array(n+1)).map((s,c)=>{const l=r[c];return E.jsx(is,{type:is.type.COL,colIndex:c,tableSize:this.props.tableSize,width:l,borderWidth:a},`anchor-${c}`)})},"anchor")]})}getRow(t=10,n=0,r,o){const{clone:i,borderWidth:a}=this.props,s=i&&typeof r=="number"?r:"auto";return E.jsxs("tr",{className:`${rf} ${rf}-${n}`,style:{height:s},children:[Array.from(Array(t)).map((c,l)=>{const u=o[l];return this.getCell({rowHeight:r,colWidth:u,rowIndex:n,colIndex:l})}),i?null:E.jsx(is,{type:is.type.ROW,rowIndex:n,tableSize:this.props.tableSize,height:r,borderWidth:a})]},n)}getCell(t){const{rowIndex:n,colIndex:r,rowHeight:o,colWidth:i}=t||{},{clone:a,type:s,cellRenderer:c,borderWidth:l,isMobile:u}=this.props;return c({rowIndex:n,colIndex:r,rowHeight:o,colWidth:i,borderWidth:l,clone:a,type:s,isMobile:u})}render(){const{widths:t,heights:n,colsCount:r,rowsCount:o,className:i}=this.props,a=this.getTableStyles()||void 0;return E.jsxs("table",{className:`${z2} ${i}`,style:a,children:[E.jsx("colgroup",{className:W2,children:this.getColumns(r)}),E.jsx("tbody",{className:U2,children:this.getRows(o,r,t,n)})]})}}B(as,"defaultProps",{clone:!1,borderWidth:1,borderColor:""});var Ki={},ij={get exports(){return Ki},set exports(e){Ki=e}},Qm={},kl={get exports(){return Qm},set exports(e){Qm=e}},b1;function $E(){return b1||(b1=1,function(){var e,t,n,r,o,i;typeof performance!="undefined"&&performance!==null&&performance.now?kl.exports=function(){return performance.now()}:typeof process!="undefined"&&process!==null&&process.hrtime?(kl.exports=function(){return(e()-o)/1e6},t=process.hrtime,e=function(){var a;return a=t(),a[0]*1e9+a[1]},r=e(),i=process.uptime()*1e9,o=r-i):Date.now?(kl.exports=function(){return Date.now()-n},n=Date.now()):(kl.exports=function(){return new Date().getTime()-n},n=new Date().getTime())}.call(ii)),Qm}var y1;function aj(){if(y1)return Ki;y1=1;for(var e=$E(),t=typeof window=="undefined"?ii:window,n=["moz","webkit"],r="AnimationFrame",o=t["request"+r],i=t["cancel"+r]||t["cancelRequest"+r],a=0;!o&&a<n.length;a++)o=t[n[a]+"Request"+r],i=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!o||!i){var s=0,c=0,l=[],u=1e3/60;o=function(d){if(l.length===0){var p=e(),f=Math.max(0,u-(p-s));s=f+p,setTimeout(function(){var m=l.slice(0);l.length=0;for(var b=0;b<m.length;b++)if(!m[b].cancelled)try{m[b].callback(s)}catch(v){setTimeout(function(){throw v},0)}},Math.round(f))}return l.push({handle:++c,callback:d,cancelled:!1}),c},i=function(d){for(var p=0;p<l.length;p++)l[p].handle===d&&(l[p].cancelled=!0)}}return ij.exports=function(d){return o.call(t,d)},Ki.cancel=function(){i.apply(t,arguments)},Ki.polyfill=function(d){d||(d=t),d.requestAnimationFrame=o,d.cancelAnimationFrame=i},Ki}var zE=aj();const w1=rr(zE);var Xi={},sj={get exports(){return Xi},set exports(e){Xi=e}},of,x1;function lj(){if(x1)return of;x1=1;var e=null,t=["Webkit","Moz","O","ms"];return of=function(n){e||(e=document.createElement("div"));var r=e.style;if(n in r)return n;for(var o=n.charAt(0).toUpperCase()+n.slice(1),i=t.length;i>=0;i--){var a=t[i]+o;if(a in r)return a}return!1},of}var af,_1;function cj(){if(_1)return af;_1=1,af=r;var e=/\s/,t=/(_|-|\.|:)/,n=/([a-z][A-Z]|[A-Z][a-z])/;function r(c){return e.test(c)?c.toLowerCase():t.test(c)?(i(c)||c).toLowerCase():n.test(c)?s(c).toLowerCase():c.toLowerCase()}var o=/[\W_]+(.|$)/g;function i(c){return c.replace(o,function(l,u){return u?" "+u:""})}var a=/(.)([A-Z]+)/g;function s(c){return c.replace(a,function(l,u,d){return u+" "+d.toLowerCase().split("").join(" ")})}return af}var sf,C1;function uj(){if(C1)return sf;C1=1;var e=cj();sf=t;function t(n){return e(n).replace(/[\W_]+(.|$)/g,function(r,o){return o?" "+o:""}).trim()}return sf}var lf,k1;function dj(){if(k1)return lf;k1=1;var e=uj();lf=t;function t(n){return e(n).replace(/\s(\w)/g,function(r,o){return o.toUpperCase()})}return lf}var cf,S1;function pj(){if(S1)return cf;S1=1;var e={animationIterationCount:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridColumn:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,stopOpacity:!0,strokeDashoffset:!0,strokeOpacity:!0,strokeWidth:!0};return cf=function(t,n){return typeof n=="number"&&!e[t]?n+"px":n},cf}var T1;function Fb(){if(T1)return Xi;T1=1;var e=lj(),t=dj(),n={float:"cssFloat"},r=pj();function o(c,l,u){var d=n[l];if(typeof d=="undefined"&&(d=a(l)),d){if(u===void 0)return c.style[d];c.style[d]=r(d,u)}}function i(c,l){for(var u in l)l.hasOwnProperty(u)&&o(c,u,l[u])}function a(c){var l=t(c),u=e(l);return n[l]=n[c]=n[u]=u,u}function s(){arguments.length===2?typeof arguments[1]=="string"?arguments[0].style.cssText=arguments[1]:i(arguments[0],arguments[1]):o(arguments[0],arguments[1],arguments[2])}return sj.exports=s,Xi.set=s,Xi.get=function(c,l){return Array.isArray(l)?l.reduce(function(u,d){return u[d]=o(c,d||""),u},{}):o(c,l||"")},Xi}var hj=Fb();const dr=rr(hj);function uf(e){const{clientHeight:t}=e,{paddingTop:n,paddingBottom:r}=getComputedStyle(e);return t-parseFloat(n||"")-parseFloat(r||"")}function df(e){const{clientWidth:t}=e,{paddingLeft:n,paddingRight:r}=getComputedStyle(e);return t-parseFloat(n||"")-parseFloat(r||"")}let pf=!1;function fj(){if(typeof document!="undefined"){const e=document.createElement("div");dr(e,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"});let t=document.querySelector(".pivot-container");t||(t=document.body),t.appendChild(e),pf=e.offsetWidth-e.clientWidth,t.removeChild(e)}else pf=0;return pf||0}function E1(e){return typeof e=="string"}const O1={position:"relative",overflow:"hidden",width:"100%",height:"100%"},D1={height:"auto"},gj={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},mj={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},vj={position:"absolute",height:6},bj={position:"absolute",width:6},yj={position:"relative",display:"block",height:"100%"},wj={position:"relative",display:"block",width:"100%"},xj={userSelect:"none"},_j={userSelect:"auto"};function Cj(e){const t=e||{},{style:n,key:r}=t,o=Ft(t,["style","key"]),i=xe(ee({},n),{right:2,bottom:2,left:2,borderRadius:3});return E.jsx("div",ee({style:i},o),r)}function kj(e){const t=e||{},{style:n,key:r}=t,o=Ft(t,["style","key"]),i=xe(ee({},n),{right:2,bottom:2,top:2,borderRadius:3});return E.jsx("div",ee({style:i},o),r)}function Sj(e){const t=e||{},{style:n,key:r}=t,o=Ft(t,["style","key"]),i=xe(ee({},n),{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return E.jsx("div",ee({style:i},o),r)}function Tj(e){const t=e||{},{style:n,key:r}=t,o=Ft(t,["style","key"]),i=xe(ee({},n),{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return E.jsx("div",ee({style:i},o),r)}class Bb extends P.PureComponent{constructor(){super(...arguments),B(this,"view",document.createElement("div")),B(this,"trackHorizontal",document.createElement("div")),B(this,"trackVertical",document.createElement("div")),B(this,"thumbHorizontal",document.createElement("div")),B(this,"thumbVertical",document.createElement("div")),B(this,"requestFrame"),B(this,"prevPageX",0),B(this,"prevPageY",0),B(this,"dragging",!1),B(this,"hideTracksTimeout",null),B(this,"detectScrollingInterval",null),B(this,"trackMouseOver",!1),B(this,"viewScrollTop",0),B(this,"lastViewScrollTop",0),B(this,"viewScrollLeft",0),B(this,"lastViewScrollLeft",0),B(this,"scrolling",!1),B(this,"handleScroll",t=>{const{onScroll:n}=this.props;n&&n(t),this.update(r=>{const{scrollLeft:o,scrollTop:i}=r;this.viewScrollLeft=o,this.viewScrollTop=i}),this.detectScrolling()}),B(this,"handleWindowResize",()=>{this.update()}),B(this,"handleDrag",t=>{if(this.prevPageX){const{clientX:n}=t,{left:r}=this.trackHorizontal.getBoundingClientRect(),o=this.getThumbHorizontalWidth()-this.prevPageX,i=-r+n-o;this.view.scrollLeft=this.getScrollLeftForOffset(i)}if(this.prevPageY){const{clientY:n}=t,{top:r}=this.trackVertical.getBoundingClientRect(),o=this.getThumbVerticalHeight()-this.prevPageY,i=-r+n-o;this.view.scrollTop=this.getScrollTopForOffset(i)}return!1}),B(this,"handleDragEnd",()=>{this.dragging=!1,this.prevPageY=0,this.prevPageX=0,this.teardownDragging(),this.handleDragEndAutoHide()}),B(this,"handleHorizontalTrackMouseDown",t=>{t.preventDefault();const{target:n,clientX:r}=t;if(n instanceof HTMLElement){const{left:o}=n.getBoundingClientRect(),i=this.getThumbHorizontalWidth(),a=Math.abs(o-r)-i/2;this.view.scrollLeft=this.getScrollLeftForOffset(a)}}),B(this,"handleVerticalTrackMouseDown",t=>{t.preventDefault();const{target:n,clientY:r}=t;if(n instanceof HTMLElement){const{top:o}=n.getBoundingClientRect(),i=this.getThumbVerticalHeight(),a=Math.abs(o-r)-i/2;this.view.scrollTop=this.getScrollTopForOffset(a)}}),B(this,"handleHorizontalThumbMouseDown",t=>{t.preventDefault(),this.handleDragStart(t);const{target:n,clientX:r}=t;if(n instanceof HTMLElement){const{offsetWidth:o}=n,{left:i}=n.getBoundingClientRect();this.prevPageX=o-(r-i)}}),B(this,"handleVerticalThumbMouseDown",t=>{t.preventDefault(),this.handleDragStart(t);const{target:n,clientY:r}=t;if(n instanceof HTMLElement){const{offsetHeight:o}=n,{top:i}=n.getBoundingClientRect();this.prevPageY=o-(r-i)}}),B(this,"handleTrackMouseEnter",()=>{this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}),B(this,"handleTrackMouseLeave",()=>{this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}),B(this,"setTrackVerticalRef",t=>{t&&(this.trackVertical=t)}),B(this,"setThumbVerticalRef",t=>{t&&(this.thumbVertical=t)}),B(this,"setTrackHorizontalRef",t=>{t&&(this.trackHorizontal=t)}),B(this,"setThumbHorizontalRef",t=>{t&&(this.thumbHorizontal=t)}),B(this,"setViewRef",t=>{t&&(this.view=t)})}componentDidMount(){this.addListeners(),this.update()}componentDidUpdate(){this.update()}componentWillUnmount(){this.removeListeners(),zE.cancel(this.requestFrame),this.hideTracksTimeout&&clearTimeout(this.hideTracksTimeout),this.detectScrollingInterval&&clearInterval(this.detectScrollingInterval)}getMeasurements(){const{scrollLeft:t=0,scrollTop:n=0,scrollWidth:r=0,scrollHeight:o=0,clientWidth:i=0,clientHeight:a=0}=this.view||{};return{left:t/(r-i)||0,top:n/(o-a)||0,scrollLeft:t,scrollTop:n,scrollWidth:r,scrollHeight:o,clientWidth:i,clientHeight:a}}getThumbHorizontalWidth(){const{scrollWidth:t,clientWidth:n}=this.view;return this.getThumbDimension(t,n,!1)}getThumbVerticalHeight(){const{scrollHeight:t,clientHeight:n}=this.view;return this.getThumbDimension(t,n,!0)}getThumbDimension(t,n,r){const{thumbSize:o,thumbMinSize:i}=this.props,a=r?uf(this.trackVertical):df(this.trackHorizontal),s=Math.ceil(n/t*a);return Math.abs(a-s)<=2?0:o||Math.max(s,i)}getScrollLeftForOffset(t){const{scrollWidth:n,clientWidth:r}=this.view,o=df(this.trackHorizontal),i=this.getThumbHorizontalWidth();return t/(o-i)*(n-r)}getScrollTopForOffset(t){const{scrollHeight:n,clientHeight:r}=this.view,o=uf(this.trackVertical),i=this.getThumbVerticalHeight();return t/(o-i)*(n-r)}addListeners(){if(typeof document=="undefined"||!this.view)return;const{view:t,trackHorizontal:n,trackVertical:r,thumbHorizontal:o,thumbVertical:i}=this;t.addEventListener("scroll",this.handleScroll),n.addEventListener("mouseenter",this.handleTrackMouseEnter),n.addEventListener("mouseleave",this.handleTrackMouseLeave),n.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.addEventListener("mouseenter",this.handleTrackMouseEnter),r.addEventListener("mouseleave",this.handleTrackMouseLeave),r.addEventListener("mousedown",this.handleVerticalTrackMouseDown),o.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize)}removeListeners(){if(typeof document=="undefined"||!this.view)return;const{view:t,trackHorizontal:n,trackVertical:r,thumbHorizontal:o,thumbVertical:i}=this;t.removeEventListener("scroll",this.handleScroll),n.removeEventListener("mouseenter",this.handleTrackMouseEnter),n.removeEventListener("mouseleave",this.handleTrackMouseLeave),n.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),r.removeEventListener("mouseenter",this.handleTrackMouseEnter),r.removeEventListener("mouseleave",this.handleTrackMouseLeave),r.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),o.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),i.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging()}handleScrollAutoHide(t=!0){const{autoHide:n}=this.props;n&&(t?this.showTracks():this.hideTracks())}setupDragging(){dr(document.body,xj),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=()=>!1}teardownDragging(){dr(document.body,_j),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}handleDragStart(t){this.dragging=!0,t.stopImmediatePropagation(),this.setupDragging()}handleDragEndAutoHide(){const{autoHide:t}=this.props;t&&this.hideTracks()}handleTrackMouseEnterAutoHide(){const{autoHide:t}=this.props;t&&this.showTracks()}handleTrackMouseLeaveAutoHide(){const{autoHide:t}=this.props;t&&this.hideTracks()}showTracks(){clearTimeout(this.hideTracksTimeout),dr(this.trackHorizontal,{opacity:1}),dr(this.trackVertical,{opacity:1})}hideTracks(){if(this.dragging||this.trackMouseOver||this.scrolling)return;const{autoHideTimeout:t}=this.props;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(()=>{dr(this.trackHorizontal,{opacity:0}),dr(this.trackVertical,{opacity:0})},t)}detectScrolling(){this.scrolling||(this.scrolling=!0,this.handleScrollAutoHide(!0),this.detectScrollingInterval=setInterval(()=>{this.lastViewScrollLeft===this.viewScrollLeft&&this.lastViewScrollTop===this.viewScrollTop&&(clearInterval(this.detectScrollingInterval),this.scrolling=!1,this.handleScrollAutoHide(!1)),this.lastViewScrollLeft=this.viewScrollLeft,this.lastViewScrollTop=this.viewScrollTop},100))}raf(t){this.requestFrame&&w1.cancel(this.requestFrame),this.requestFrame=w1(()=>{this.requestFrame=void 0,t()})}handleUpdate(t){const{hideTracksWhenNotNeeded:n}=this.props,r=this.getMeasurements(),{scrollLeft:o,clientWidth:i,scrollWidth:a}=r,s=df(this.trackHorizontal),c=this.getThumbHorizontalWidth(),l=o/(a-i)*(s-c),u={width:c,transform:`translateX(${l}px)`},{scrollTop:d,clientHeight:p,scrollHeight:f}=r,m=uf(this.trackVertical),b=this.getThumbVerticalHeight(),v=d/(f-p)*(m-b),w={height:b,transform:`translateY(${v}px)`};if(n){const _={visibility:a>i?"visible":"hidden"},T={visibility:f>p?"visible":"hidden"};dr(this.trackHorizontal,_),dr(this.trackVertical,T)}dr(this.thumbHorizontal,u),dr(this.thumbVertical,w),typeof t=="function"&&t(r)}update(t){this.raf(()=>this.handleUpdate(t))}scrollLeft(t=0){this.view&&(this.view.scrollLeft=t)}scrollTop(t=0){this.view&&(this.view.scrollTop=t)}renderTracks(){const{renderThumbVertical:t,renderThumbHorizontal:n,renderTrackHorizontal:r,renderTrackVertical:o,autoHideDuration:i,autoHide:a}=this.props,s={transition:`opacity ${i}ms`,opacity:0},c=ee(ee({},vj),a&&s),l=ee(ee({},bj),a&&s),u=t({style:wj,ref:this.setThumbVerticalRef}),d=o({key:"trackVertical",style:l,ref:this.setTrackVerticalRef,children:u,className:"scroll-elem__vertical-track"}),p=n({style:yj,ref:this.setThumbHorizontalRef});return[r({key:"trackHorizontal",style:c,ref:this.setTrackHorizontalRef,children:p,className:"scroll-elem__horizontal-track"}),d]}render(){const t=fj(),n=this.props,{autoHeight:r,autoHeightMin:o,autoHeightMax:i,style:a,children:s}=n,c=Ft(n,["autoHeight","autoHeightMin","autoHeightMax","style","children"]),l=ee(ee(ee({},O1),r&&xe(ee({},D1),{minHeight:o,maxHeight:i})),a),u=ee(ee(ee({},O1),r&&xe(ee({},D1),{minHeight:o,maxHeight:i})),a);typeof u.height=="number"&&(u.height-=c.scrollOffset||0);const d=ee(xe(ee({},gj),{marginRight:t?-t:0,marginBottom:t?-t:0}),r&&xe(ee({},mj),{minHeight:E1(o)?`calc(${o} + ${t}px)`:o+t,maxHeight:E1(i)?`calc(${i} + ${t}px)`:i+t}));t||(d.scrollbarWidth="none");const p=c.className||"pivot-scroller",f=`${p}__container`,m=`${p}__view`;return E.jsxs("div",{className:p,style:l,children:[E.jsx("div",{className:f,style:u,children:E.jsx("div",{className:m,style:d,ref:this.setViewRef,children:s})}),this.renderTracks()]})}}B(Bb,"defaultProps",{renderTrackHorizontal:Cj,renderTrackVertical:kj,renderThumbHorizontal:Sj,renderThumbVertical:Tj,thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,scrollOffset:0});class WE extends P.PureComponent{constructor(){super(...arguments),B(this,"container"),B(this,"containerRef",t=>{this.container=t}),B(this,"onMouseWheel",t=>{if(!this.props.activated)return;const n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail)),r=t.wheelDeltaX,o=t.wheelDeltaY;this.props.onMouseScroll&&this.props.onMouseScroll(t,n,r,o)})}componentDidMount(){this.container&&(this.container.addEventListener("mousewheel",this.onMouseWheel),this.container.addEventListener("DOMMouseScroll",this.onMouseWheel))}componentWillUnmount(){this.container&&(this.container.removeEventListener("mousewheel",this.onMouseWheel),this.container.removeEventListener("DOMMouseScroll",this.onMouseWheel))}render(){const t=this.props,{children:n,activated:r,onMouseScroll:o}=t,i=Ft(t,["children","activated","onMouseScroll"]);return E.jsx("div",xe(ee({},i),{ref:this.containerRef,children:n}))}}B(WE,"defaultProps",{activated:!0});function hf(e){if(!document)return e;const t=document.createElement("div");if(t.getBoundingClientRect){t.style.width="1px",t.style.height="1px",t.style.boxSizing="content-box",t.style.border=`solid ${e}px black`,document.body.appendChild(t);const n=t.getBoundingClientRect();return document.body.removeChild(t),(n.width-1)/2}return e}function R1(e){let t=[],n=[];return e.cornerTreeService&&(t=e.cornerTreeService.getLastLevelNodes()),e.columnsTreeService&&(n=e.columnsTreeService.getLastLevelNodes()),[...t,...n].map(r=>nn(r))}class UE extends P.PureComponent{constructor(t){super(t),B(this,"logger"),B(this,"data",[]),B(this,"cellsMetadata",new Map),B(this,"cornerTable",[]),B(this,"columnsTable",[]),B(this,"rowsTable",[]),B(this,"dataBars",[]),B(this,"rangeMinMax",[]),B(this,"fixRowsCount",0),B(this,"fixColsCount",0),B(this,"rowsCount",0),B(this,"colsCount",0),B(this,"scrollContainer"),B(this,"leftContainer"),B(this,"topContainer"),B(this,"rightContainer"),B(this,"resetScroll"),B(this,"isMainGridUpdateSkiped",!1),B(this,"isFullWidthRefreshed",!1),B(this,"isDomReadyTriggered",!1),B(this,"domReadyTriggerTime",0),B(this,"measure"),B(this,"styleObj"),B(this,"cellDomReadyPromises"),B(this,"addCellDomReadyPromise",r=>{this.cellDomReadyPromises=this.cellDomReadyPromises||[],r&&this.cellDomReadyPromises.push(r.promise)}),B(this,"removeCellDomReadyPromise",r=>{this.cellDomReadyPromises=this.cellDomReadyPromises||[],r&&(this.cellDomReadyPromises=this.cellDomReadyPromises.filter(o=>o!==r.promise))}),B(this,"onChange",(r,o)=>{this.setState({widths:r,heights:o}),this.topContainer&&this.topContainer.classList.add("active"),this.leftContainer&&this.leftContainer.classList.add("active"),this.rightContainer&&this.rightContainer.classList.add("active"),this.isMainGridUpdateSkiped&&(this.isMainGridUpdateSkiped=!1,this.onMainGridUpdated())}),B(this,"onResize",()=>{const r=window.devicePixelRatio||1;this.state.zoomRatio!==r&&this.setState({zoomRatio:r,borderWidth:hf(this.props.borderWidth||1)})}),B(this,"onScroll",r=>{const o=r.target,i=o.scrollTop,a=o.scrollLeft;this.leftContainer&&(this.leftContainer.scrollTop=i),this.topContainer&&(this.topContainer.scrollLeft=a),this.scrollContainer&&this.scrollContainer.view&&(this.scrollContainer.view.scrollTop=i)}),B(this,"onMouseScroll",(r,o)=>{let i=0,a=0;if(this.scrollContainer&&this.scrollContainer.view){const{offsetHeight:s,scrollHeight:c}=this.scrollContainer.view;i=this.scrollContainer.view.scrollTop,a=i+-o*40,o>0?a>0&&r.preventDefault():a<c-s&&r.preventDefault(),this.scrollContainer.view.scrollTop=a}}),B(this,"onMainGridUpdated",()=>{if(this.state.tableSize.hasPendingChanges()){this.isMainGridUpdateSkiped=!0;return}if(this.isMainGridUpdateSkiped=!1,this.props.onGridUpdated&&this.props.onGridUpdated(),this.props.onInitLoadingFinish&&!this.isDomReadyTriggered&&this.props.onInitLoadingFinish(),this.props.onTotalSizeChange&&this.scrollContainer&&this.scrollContainer.view){const r=this.scrollContainer.view.children[0].scrollHeight+this.props.scrollBarsMargin;this.props.onTotalSizeChange(r)}if(this.props.isFullWidth&&!this.isDomReadyTriggered&&!this.isFullWidthRefreshed){this.isFullWidthRefreshed=!0;const{width:r,scrollBarsMargin:o=0}=this.props,{tableSize:i}=this.state;i.fitWidths(r-o);return}if(this.props.onDomReady&&this.cellDomReadyPromises&&!this.isDomReadyTriggered){this.isDomReadyTriggered=!0;const{onDomReady:r}=this.props,o=new Date().getTime();Promise.all(this.cellDomReadyPromises).catch(i=>{this.logger.warn(`Cell "domready" promise rejected with "${i.message}"`)}).then(()=>{this.domReadyTriggerTime===o&&r()}),this.domReadyTriggerTime=o}}),B(this,"cellRenderer",r=>{const{type:o,clone:i,rowIndex:a,colIndex:s,isMobile:c,colWidth:l}=r,{borderWidth:u,tableSize:d}=this.state,{columnWidth:p}=d,f=this.props.addCellDomReadyPromise||this.addCellDomReadyPromise,m=this.props.removeCellDomReadyPromise||this.removeCellDomReadyPromise;let b=o,v,w=a,_=s,T,y,k,S,x,C,O,D,R,M=0,F=0,N,I;if(a>=this.fixRowsCount&&s>=this.fixColsCount){_-=this.fixColsCount,w-=this.fixRowsCount;try{y=this.data[w][_]}catch(K){throw new Error(`cellRenderer can't find data item for ${a}-${_}`)}if(I=`${w+this.fixRowsCount}-${_+this.fixColsCount}`,T=this.cellsMetadata.get(I),this.state.rowsTreeService){S=this.state.rowsTreeService.getMetadata(w,1/0);const K=this.state.rowsTreeService.getLastLevelNodes();k=nn(K[w])}if(this.state.columnsTreeService){C=this.state.columnsTreeService.getMetadata(1/0,_);const K=this.state.columnsTreeService.getLastLevelNodes();x=nn(K[_]),x&&x.metadataType===Ee.MEASURES?(O=x,x.parent&&(x=nn(x.parent))):C&&C.valueNode&&(O=nn(C.valueNode))}}else s>=this.fixColsCount?(b=Kt.COLUMNS,v=this.state.columnsTreeService,_-=this.fixColsCount,M=this.fixColsCount):a>=this.fixRowsCount?(b=Kt.ROWS,v=this.state.rowsTreeService,w-=this.fixRowsCount,F=this.fixRowsCount):(b=Kt.CORNER,v=this.state.cornerTreeService);if(v){const K=v.getTreeNode(w,_);D=K?nn(K):void 0,R=v.getMetadata(w,_),I=`${w}-${_}`,s>=this.fixColsCount?I=`${w}-${_+this.fixColsCount}`:a>=this.fixRowsCount&&(I=`${w+this.fixRowsCount}-${_}`),T=this.cellsMetadata.get(I),N=v.getMainCellWidth(w,_,p,u,{columnsOffset:M,offsetTop:F})}const j=(D||y||{}).store||{};this.addCellDomReadyPromise(j.domReadyDefer||j.domReadyDeffer);let $={},Y=!1,U=p({index:s}),G=!1;return v&&v.isChildren(w,_)?Y=!0:v&&v.hasChildren(w,_)&&($=v.getMainCellSpans(w,_),N&&(U=N)),(this.state.tableSize.hasInitialFixedWidth(s)||i)&&(G=!0),G&&isNaN(U)&&l&&(U=l),Y?null:E.jsx(yR,xe(ee({isDataCell:!!y,tdComponent:"td",measure:this.measure,onSortingMetadataUpdate:this.props.onSortingMetadataUpdate,styleObj:this.styleObj,onSortingSettingsChanged:this.props.onSortingSettingsChanged,getSortingPopupContainer:this.props.getSortingPopupContainer,borderWidth:u,borderColor:this.props.borderColor,dataNode:y,cellMetadata:T,metadata:R,treeNode:D,rowIndex:a,columnIndex:s,tableType:b,rowTreeNode:k,rowMetadata:S,columnTreeNode:x,columnMetadata:C,measureTreeNode:O,parent:this,fixedWidth:G,tableSize:this.state.tableSize,isSelectedMode:this.props.isSelectedMode,allowHtml:this.props.allowHtml,onCellClick:this.props.onCellClick,onCellEnter:this.props.onCellEnter,onCellLeave:this.props.onCellLeave},$),{colWidth:U,clone:i,zoomRatio:this.state.zoomRatio,rowHeight:this.props.rowHeight,imageColumns:this.props.imageColumns,fallbackImageUrl:this.props.fallbackImageUrl,addCellDomReadyPromise:f,removeCellDomReadyPromise:m,isMobile:c}),I)}),B(this,"scrollContainerRef",r=>{r&&(this.scrollContainer=r,this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0))}),B(this,"leftContainerRef",r=>{r&&(this.leftContainer=r)}),B(this,"topContainerRef",r=>{r&&(this.topContainer=r)}),B(this,"rightContainerRef",r=>{r&&(this.rightContainer=r)}),this.logger=jo.create("PivotTable");const n=window.devicePixelRatio||1;this.state={tableSize:this.createTableSize(),widths:{},heights:{},borderWidth:hf(t.borderWidth||1),isResizeInProgress:!1,rowsTreeService:void 0,columnsTreeService:void 0,cornerTreeService:void 0,zoomRatio:n},this.measure=()=>{},this.styleObj={},this.resetScroll=!1,t.dataBars&&t.dataBars.length&&this.notifyDataBars(t.dataBars),t.rangeMinMax&&t.rangeMinMax.length&&this.notifyRangeMinMax(t.rangeMinMax)}componentDidMount(){window.addEventListener("resize",this.onResize),this.props.onGetInitialData&&this.props.onGetInitialData(),this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0,this.topContainer&&this.topContainer.classList.remove("active"),this.leftContainer&&this.leftContainer.classList.remove("active"),this.rightContainer&&this.rightContainer.classList.remove("active"))}UNSAFE_componentWillReceiveProps(t){if(t.borderWidth!==this.props.borderWidth){const n=window.devicePixelRatio||1;this.setState({borderWidth:hf(t.borderWidth||1),zoomRatio:n})}t.dataBars!==this.props.dataBars&&this.notifyDataBars(t.dataBars),t.rangeMinMax!==this.props.rangeMinMax&&this.notifyRangeMinMax(t.rangeMinMax)}componentDidUpdate(){this.resetScroll&&this.scrollContainer&&this.scrollContainer.view&&(this.resetScroll=!1,this.scrollContainer.view.scrollTop=0,this.scrollContainer.view.scrollLeft=0,this.topContainer&&this.topContainer.classList.remove("active"),this.leftContainer&&this.leftContainer.classList.remove("active"),this.rightContainer&&this.rightContainer.classList.remove("active")),this.notifyDataBars(this.props.dataBars)}componentWillUnmount(){window.removeEventListener("resize",this.onResize)}initialize(t,n,r,o){const{cellsMetadata:i=new Map}=o||{};i!==null&&(this.cellsMetadata=i),this.isDomReadyTriggered=!1,this.isFullWidthRefreshed=!1,this.resetScroll=!0;const a={rowsTreeService:t,columnsTreeService:n,cornerTreeService:r};this.initTableSize(a);const s=this.createTableSize(),c=R1(a);if(this.props.onUpdatePredefinedColumnWidth){const l=this.props.onUpdatePredefinedColumnWidth(c,void 0);s.setInitialFixedWidth(l)}this.cellDomReadyPromises=void 0,!t&&!n&&(this.cellDomReadyPromises=[]),this.setState(ee({tableSize:s},a))}addMore(t,n){return this.initialize(t,this.state.columnsTreeService,this.state.cornerTreeService,{isLastPage:n,cellsMetadata:null})}notifyDataBars(t){this.dataBars=(t||[]).map(n=>{if(!n)return n;const[r,o]=n;return[parseFloat(r),parseFloat(o)]}),this.state&&this.state.tableSize&&this.state.tableSize.updateDataBarsMinMax(this.dataBars)}notifyRangeMinMax(t){this.rangeMinMax=(t||[]).map(n=>{if(!n)return n;const[r,o]=n;return[parseFloat(r),parseFloat(o)]}),this.state&&this.state.tableSize&&this.state.tableSize.updateRangeMinMax(this.rangeMinMax)}createTableSize(){this.state&&this.state.tableSize&&this.state.tableSize.off(Gm,this.onChange);const t=new N2(this.dataBars,this.rangeMinMax);return t.on(Gm,this.onChange),t}hasContent(){return!(this.rowsCount===0&&this.colsCount===0)}getDimensions(){const t={getTreeChildLength:()=>0,getTreeDeepsLength:()=>0},{columnsTreeService:n=t,cornerTreeService:r=t,rowsTreeService:o=t}=this.state;if(o){let i=n===void 0?0:n.getTreeChildLength();r&&(i+=r.getTreeChildLength());const a=o.getTreeChildLength()+(n===void 0?0:n.getTreeDeepsLength());return{height:Array.from({length:a},(s,c)=>[c,this.getRowHeight(c)]),width:Array.from({length:i},(s,c)=>[c,this.getColumnWidth(c)])}}return{height:[],width:[]}}getColumnWidth(t){return this.state.tableSize.columnWidth({index:t})}getRowHeight(t){return this.state.tableSize.rowHeight({index:t})}initTableSize(t){this.data=[],t.rowsTreeService&&(this.data=t.rowsTreeService.extractData(t.columnsTreeService)),this.rowsCount=0,this.colsCount=0,this.fixRowsCount=0,this.fixColsCount=0,this.cornerTable=[],t.cornerTreeService&&(this.cornerTable=t.cornerTreeService.getGrid(),this.fixRowsCount=this.cornerTable.length,this.rowsCount+=this.fixRowsCount,this.cornerTable[0]&&(this.fixColsCount=this.cornerTable[0].length,this.colsCount+=this.fixColsCount)),this.columnsTable=[],t.columnsTreeService&&(this.columnsTable=t.columnsTreeService.getGrid(),this.columnsTable[0]&&(this.colsCount+=this.columnsTable[0].length),t.cornerTreeService||(this.fixRowsCount=this.columnsTable.length,this.rowsCount+=this.fixRowsCount)),this.rowsTable=[],t.rowsTreeService&&(this.rowsTable=t.rowsTreeService.getGrid(),this.rowsCount+=this.rowsTable.length)}resizeColumnStart(){this.setState({isResizeInProgress:!0})}resizeColumn(t,n,r){const[o,i]=t[0];this.state.tableSize.setFixedWidth(o,i)}resizeColumnEnd(t,n){this.setState({isResizeInProgress:!1});const r=[n,t],o=R1(this.state);if(this.props.onUpdatePredefinedColumnWidth){const i=this.props.onUpdatePredefinedColumnWidth(o,r);this.state.tableSize.setInitialFixedWidth(i),this.state.tableSize.notifyChange()}else this.state.tableSize.setFixedWidth(n,t)}render(){const{widths:t,heights:n,borderWidth:r,rowsTreeService:o,columnsTreeService:i,cornerTreeService:a}=this.state,{width:s,height:c,borderColor:l,scrollBarsMargin:u,className:d,isFixedEnabled:p,isMobile:f}=this.props,{rowsCount:m,colsCount:b,fixRowsCount:v,fixColsCount:w}=this,_={width:s,height:c},T=_.height-u,y=_.width-u;let k=0,S=0;t[0]&&(k=Array.from(Array(w)).reduce((O,D,R)=>O+t[R],0),k+=r||1,S=Array.from(Array(v)).reduce((O,D,R)=>O+n[R],0),S+=r||1),k=Math.ceil(k),S=Math.ceil(S);const x=k/y>.75?L2:"";let C="";return v===0&&w===0?C+=`${d1} ${j2} ${p1}`:w===0&&(C+=`${d1} ${p1}`),E.jsxs(WE,{onMouseScroll:this.onMouseScroll,className:`${P2} ${I2} ${x} ${C} ${d}`,children:[E.jsx(Bb,{ref:this.scrollContainerRef,style:_,scrollOffset:u,onScroll:this.onScroll,children:E.jsx("div",{className:`${_l} ${F2} ${g1} ${f1}`,children:E.jsx(as,{type:Kt.DATA,rowsCount:m,colsCount:b,widths:t,heights:n,rowsTreeService:o,columnsTreeService:i,cornerTreeService:a,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,onGridUpdated:this.onMainGridUpdated,isMobile:f})})}),p?E.jsxs(E.Fragment,{children:[E.jsx("div",{ref:this.leftContainerRef,className:`${_l} ${nf} ${B2} ${g1} ${m1}`,style:{width:k,height:T},children:E.jsx(as,{clone:!0,type:Kt.ROWS,rowsCount:m,colsCount:w,widths:t,heights:n,rowsTreeService:o,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:f})}),E.jsx("div",{ref:this.topContainerRef,className:`${_l} ${nf} ${H2} ${h1} ${f1}`,style:{height:S,width:y},children:E.jsx(as,{clone:!0,type:Kt.COLUMNS,rowsCount:v,colsCount:b,widths:t,heights:n,columnsTreeService:i,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:f})}),E.jsx("div",{ref:this.rightContainerRef,className:`${_l} ${nf} ${$2} ${h1} ${m1}`,style:{width:k,height:S},children:E.jsx(as,{clone:!0,type:Kt.CORNER,rowsCount:v,colsCount:w,widths:t,heights:n,cornerTreeService:a,borderWidth:r,borderColor:l,tableSize:this.state.tableSize,cellRenderer:this.cellRenderer,zoomRatio:this.state.zoomRatio,isMobile:f})})]}):null]})}}B(UE,"defaultProps",{borderWidth:1,borderColor:"",isFullWidth:!1,isFixedEnabled:!0});const Ej="sisense-pivot__pagination-panel",Oj="sisense-pivot__pagination-panel-wrapper",Dj="sisense-pivot__pagination-panel--showed",Rj="sisense-pivot__pagination-panel--hidden",Aj="sisense-pivot__pagination-panel--desktop",Mj="sisense-pivot__pagination-panel--limits-only",Nj="sisense-pivot__pagination-panel--mobile",Pj="sisense-pivot__pagination-panel--notification-only",Ij="sisense-pivot__pagination-panel-list-wrapper",jj="sisense-pivot__pagination-panel-notification";function ke(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function V(){return V=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V.apply(this,arguments)}var kc={},A1={get exports(){return kc},set exports(e){kc=e}},Jm={},Lj={get exports(){return Jm},set exports(e){Jm=e}},Ge={};/** @license React v16.13.1
16
+ * react-is.production.min.js
17
+ *
18
+ * Copyright (c) Facebook, Inc. and its affiliates.
19
+ *
20
+ * This source code is licensed under the MIT license found in the
21
+ * LICENSE file in the root directory of this source tree.
22
+ */var M1;function Fj(){if(M1)return Ge;M1=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function T(k){if(typeof k=="object"&&k!==null){var S=k.$$typeof;switch(S){case t:switch(k=k.type,k){case c:case l:case r:case i:case o:case d:return k;default:switch(k=k&&k.$$typeof,k){case s:case u:case m:case f:case a:return k;default:return S}}case n:return S}}}function y(k){return T(k)===l}return Ge.AsyncMode=c,Ge.ConcurrentMode=l,Ge.ContextConsumer=s,Ge.ContextProvider=a,Ge.Element=t,Ge.ForwardRef=u,Ge.Fragment=r,Ge.Lazy=m,Ge.Memo=f,Ge.Portal=n,Ge.Profiler=i,Ge.StrictMode=o,Ge.Suspense=d,Ge.isAsyncMode=function(k){return y(k)||T(k)===c},Ge.isConcurrentMode=y,Ge.isContextConsumer=function(k){return T(k)===s},Ge.isContextProvider=function(k){return T(k)===a},Ge.isElement=function(k){return typeof k=="object"&&k!==null&&k.$$typeof===t},Ge.isForwardRef=function(k){return T(k)===u},Ge.isFragment=function(k){return T(k)===r},Ge.isLazy=function(k){return T(k)===m},Ge.isMemo=function(k){return T(k)===f},Ge.isPortal=function(k){return T(k)===n},Ge.isProfiler=function(k){return T(k)===i},Ge.isStrictMode=function(k){return T(k)===o},Ge.isSuspense=function(k){return T(k)===d},Ge.isValidElementType=function(k){return typeof k=="string"||typeof k=="function"||k===r||k===l||k===i||k===o||k===d||k===p||typeof k=="object"&&k!==null&&(k.$$typeof===m||k.$$typeof===f||k.$$typeof===a||k.$$typeof===s||k.$$typeof===u||k.$$typeof===v||k.$$typeof===w||k.$$typeof===_||k.$$typeof===b)},Ge.typeOf=T,Ge}var Ze={};/** @license React v16.13.1
23
+ * react-is.development.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */var N1;function Bj(){return N1||(N1=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,n=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,i=e?Symbol.for("react.profiler"):60114,a=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,l=e?Symbol.for("react.concurrent_mode"):60111,u=e?Symbol.for("react.forward_ref"):60112,d=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,f=e?Symbol.for("react.memo"):60115,m=e?Symbol.for("react.lazy"):60116,b=e?Symbol.for("react.block"):60121,v=e?Symbol.for("react.fundamental"):60117,w=e?Symbol.for("react.responder"):60118,_=e?Symbol.for("react.scope"):60119;function T(Q){return typeof Q=="string"||typeof Q=="function"||Q===r||Q===l||Q===i||Q===o||Q===d||Q===p||typeof Q=="object"&&Q!==null&&(Q.$$typeof===m||Q.$$typeof===f||Q.$$typeof===a||Q.$$typeof===s||Q.$$typeof===u||Q.$$typeof===v||Q.$$typeof===w||Q.$$typeof===_||Q.$$typeof===b)}function y(Q){if(typeof Q=="object"&&Q!==null){var X=Q.$$typeof;switch(X){case t:var Z=Q.type;switch(Z){case c:case l:case r:case i:case o:case d:return Z;default:var ae=Z&&Z.$$typeof;switch(ae){case s:case u:case m:case f:case a:return ae;default:return X}}case n:return X}}}var k=c,S=l,x=s,C=a,O=t,D=u,R=r,M=m,F=f,N=n,I=i,j=o,$=d,Y=!1;function U(Q){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),G(Q)||y(Q)===c}function G(Q){return y(Q)===l}function K(Q){return y(Q)===s}function oe(Q){return y(Q)===a}function ne(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===t}function re(Q){return y(Q)===u}function ie(Q){return y(Q)===r}function ce(Q){return y(Q)===m}function se(Q){return y(Q)===f}function J(Q){return y(Q)===n}function A(Q){return y(Q)===i}function L(Q){return y(Q)===o}function z(Q){return y(Q)===d}Ze.AsyncMode=k,Ze.ConcurrentMode=S,Ze.ContextConsumer=x,Ze.ContextProvider=C,Ze.Element=O,Ze.ForwardRef=D,Ze.Fragment=R,Ze.Lazy=M,Ze.Memo=F,Ze.Portal=N,Ze.Profiler=I,Ze.StrictMode=j,Ze.Suspense=$,Ze.isAsyncMode=U,Ze.isConcurrentMode=G,Ze.isContextConsumer=K,Ze.isContextProvider=oe,Ze.isElement=ne,Ze.isForwardRef=re,Ze.isFragment=ie,Ze.isLazy=ce,Ze.isMemo=se,Ze.isPortal=J,Ze.isProfiler=A,Ze.isStrictMode=L,Ze.isSuspense=z,Ze.isValidElementType=T,Ze.typeOf=y}()),Ze}var P1;function YE(){return P1||(P1=1,function(e){process.env.NODE_ENV==="production"?e.exports=Fj():e.exports=Bj()}(Lj)),Jm}/*
30
+ object-assign
31
+ (c) Sindre Sorhus
32
+ @license MIT
33
+ */var ff,I1;function Hj(){if(I1)return ff;I1=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,n=Object.prototype.propertyIsEnumerable;function r(i){if(i==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(i)}function o(){try{if(!Object.assign)return!1;var i=new String("abc");if(i[5]="de",Object.getOwnPropertyNames(i)[0]==="5")return!1;for(var a={},s=0;s<10;s++)a["_"+String.fromCharCode(s)]=s;var c=Object.getOwnPropertyNames(a).map(function(u){return a[u]});if(c.join("")!=="0123456789")return!1;var l={};return"abcdefghijklmnopqrst".split("").forEach(function(u){l[u]=u}),Object.keys(Object.assign({},l)).join("")==="abcdefghijklmnopqrst"}catch(u){return!1}}return ff=o()?Object.assign:function(i,a){for(var s,c=r(i),l,u=1;u<arguments.length;u++){s=Object(arguments[u]);for(var d in s)t.call(s,d)&&(c[d]=s[d]);if(e){l=e(s);for(var p=0;p<l.length;p++)n.call(s,l[p])&&(c[l[p]]=s[l[p]])}}return c},ff}var gf,j1;function Hb(){if(j1)return gf;j1=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return gf=e,gf}var L1,F1;function qE(){return F1||(F1=1,L1=Function.call.bind(Object.prototype.hasOwnProperty)),L1}var mf,B1;function $j(){if(B1)return mf;B1=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Hb(),n={},r=qE();e=function(i){var a="Warning: "+i;typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}}}function o(i,a,s,c,l){if(process.env.NODE_ENV!=="production"){for(var u in i)if(r(i,u)){var d;try{if(typeof i[u]!="function"){var p=Error((c||"React class")+": "+s+" type `"+u+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[u]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}d=i[u](a,u,c,s,null,t)}catch(m){d=m}if(d&&!(d instanceof Error)&&e((c||"React class")+": type specification of "+s+" `"+u+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof d+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),d instanceof Error&&!(d.message in n)){n[d.message]=!0;var f=l?l():"";e("Failed "+s+" type: "+d.message+(f!=null?f:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(n={})},mf=o,mf}var vf,H1;function zj(){if(H1)return vf;H1=1;var e=YE(),t=Hj(),n=Hb(),r=qE(),o=$j(),i=function(){};process.env.NODE_ENV!=="production"&&(i=function(s){var c="Warning: "+s;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(l){}});function a(){return null}return vf=function(s,c){var l=typeof Symbol=="function"&&Symbol.iterator,u="@@iterator";function d(G){var K=G&&(l&&G[l]||G[u]);if(typeof K=="function")return K}var p="<<anonymous>>",f={array:w("array"),bigint:w("bigint"),bool:w("boolean"),func:w("function"),number:w("number"),object:w("object"),string:w("string"),symbol:w("symbol"),any:_(),arrayOf:T,element:y(),elementType:k(),instanceOf:S,node:D(),objectOf:C,oneOf:x,oneOfType:O,shape:M,exact:F};function m(G,K){return G===K?G!==0||1/G===1/K:G!==G&&K!==K}function b(G,K){this.message=G,this.data=K&&typeof K=="object"?K:{},this.stack=""}b.prototype=Error.prototype;function v(G){if(process.env.NODE_ENV!=="production")var K={},oe=0;function ne(ie,ce,se,J,A,L,z){if(J=J||p,L=L||se,z!==n){if(c){var Q=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Q.name="Invariant Violation",Q}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var X=J+":"+se;!K[X]&&oe<3&&(i("You are manually calling a React.PropTypes validation function for the `"+L+"` prop on `"+J+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),K[X]=!0,oe++)}}return ce[se]==null?ie?ce[se]===null?new b("The "+A+" `"+L+"` is marked as required "+("in `"+J+"`, but its value is `null`.")):new b("The "+A+" `"+L+"` is marked as required in "+("`"+J+"`, but its value is `undefined`.")):null:G(ce,se,J,A,L)}var re=ne.bind(null,!1);return re.isRequired=ne.bind(null,!0),re}function w(G){function K(oe,ne,re,ie,ce,se){var J=oe[ne],A=j(J);if(A!==G){var L=$(J);return new b("Invalid "+ie+" `"+ce+"` of type "+("`"+L+"` supplied to `"+re+"`, expected ")+("`"+G+"`."),{expectedType:G})}return null}return v(K)}function _(){return v(a)}function T(G){function K(oe,ne,re,ie,ce){if(typeof G!="function")return new b("Property `"+ce+"` of component `"+re+"` has invalid PropType notation inside arrayOf.");var se=oe[ne];if(!Array.isArray(se)){var J=j(se);return new b("Invalid "+ie+" `"+ce+"` of type "+("`"+J+"` supplied to `"+re+"`, expected an array."))}for(var A=0;A<se.length;A++){var L=G(se,A,re,ie,ce+"["+A+"]",n);if(L instanceof Error)return L}return null}return v(K)}function y(){function G(K,oe,ne,re,ie){var ce=K[oe];if(!s(ce)){var se=j(ce);return new b("Invalid "+re+" `"+ie+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected a single ReactElement."))}return null}return v(G)}function k(){function G(K,oe,ne,re,ie){var ce=K[oe];if(!e.isValidElementType(ce)){var se=j(ce);return new b("Invalid "+re+" `"+ie+"` of type "+("`"+se+"` supplied to `"+ne+"`, expected a single ReactElement type."))}return null}return v(G)}function S(G){function K(oe,ne,re,ie,ce){if(!(oe[ne]instanceof G)){var se=G.name||p,J=U(oe[ne]);return new b("Invalid "+ie+" `"+ce+"` of type "+("`"+J+"` supplied to `"+re+"`, expected ")+("instance of `"+se+"`."))}return null}return v(K)}function x(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&(arguments.length>1?i("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):i("Invalid argument supplied to oneOf, expected an array.")),a;function K(oe,ne,re,ie,ce){for(var se=oe[ne],J=0;J<G.length;J++)if(m(se,G[J]))return null;var A=JSON.stringify(G,function(L,z){var Q=$(z);return Q==="symbol"?String(z):z});return new b("Invalid "+ie+" `"+ce+"` of value `"+String(se)+"` "+("supplied to `"+re+"`, expected one of "+A+"."))}return v(K)}function C(G){function K(oe,ne,re,ie,ce){if(typeof G!="function")return new b("Property `"+ce+"` of component `"+re+"` has invalid PropType notation inside objectOf.");var se=oe[ne],J=j(se);if(J!=="object")return new b("Invalid "+ie+" `"+ce+"` of type "+("`"+J+"` supplied to `"+re+"`, expected an object."));for(var A in se)if(r(se,A)){var L=G(se,A,re,ie,ce+"."+A,n);if(L instanceof Error)return L}return null}return v(K)}function O(G){if(!Array.isArray(G))return process.env.NODE_ENV!=="production"&&i("Invalid argument supplied to oneOfType, expected an instance of array."),a;for(var K=0;K<G.length;K++){var oe=G[K];if(typeof oe!="function")return i("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(oe)+" at index "+K+"."),a}function ne(re,ie,ce,se,J){for(var A=[],L=0;L<G.length;L++){var z=G[L],Q=z(re,ie,ce,se,J,n);if(Q==null)return null;Q.data&&r(Q.data,"expectedType")&&A.push(Q.data.expectedType)}var X=A.length>0?", expected one of type ["+A.join(", ")+"]":"";return new b("Invalid "+se+" `"+J+"` supplied to "+("`"+ce+"`"+X+"."))}return v(ne)}function D(){function G(K,oe,ne,re,ie){return N(K[oe])?null:new b("Invalid "+re+" `"+ie+"` supplied to "+("`"+ne+"`, expected a ReactNode."))}return v(G)}function R(G,K,oe,ne,re){return new b((G||"React class")+": "+K+" type `"+oe+"."+ne+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+re+"`.")}function M(G){function K(oe,ne,re,ie,ce){var se=oe[ne],J=j(se);if(J!=="object")return new b("Invalid "+ie+" `"+ce+"` of type `"+J+"` "+("supplied to `"+re+"`, expected `object`."));for(var A in G){var L=G[A];if(typeof L!="function")return R(re,ie,ce,A,$(L));var z=L(se,A,re,ie,ce+"."+A,n);if(z)return z}return null}return v(K)}function F(G){function K(oe,ne,re,ie,ce){var se=oe[ne],J=j(se);if(J!=="object")return new b("Invalid "+ie+" `"+ce+"` of type `"+J+"` "+("supplied to `"+re+"`, expected `object`."));var A=t({},oe[ne],G);for(var L in A){var z=G[L];if(r(G,L)&&typeof z!="function")return R(re,ie,ce,L,$(z));if(!z)return new b("Invalid "+ie+" `"+ce+"` key `"+L+"` supplied to `"+re+"`.\nBad object: "+JSON.stringify(oe[ne],null," ")+`
34
+ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var Q=z(se,L,re,ie,ce+"."+L,n);if(Q)return Q}return null}return v(K)}function N(G){switch(typeof G){case"number":case"string":case"undefined":return!0;case"boolean":return!G;case"object":if(Array.isArray(G))return G.every(N);if(G===null||s(G))return!0;var K=d(G);if(K){var oe=K.call(G),ne;if(K!==G.entries){for(;!(ne=oe.next()).done;)if(!N(ne.value))return!1}else for(;!(ne=oe.next()).done;){var re=ne.value;if(re&&!N(re[1]))return!1}}else return!1;return!0;default:return!1}}function I(G,K){return G==="symbol"?!0:K?K["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&K instanceof Symbol:!1}function j(G){var K=typeof G;return Array.isArray(G)?"array":G instanceof RegExp?"object":I(K,G)?"symbol":K}function $(G){if(typeof G=="undefined"||G===null)return""+G;var K=j(G);if(K==="object"){if(G instanceof Date)return"date";if(G instanceof RegExp)return"regexp"}return K}function Y(G){var K=$(G);switch(K){case"array":case"object":return"an "+K;case"boolean":case"date":case"regexp":return"a "+K;default:return K}}function U(G){return!G.constructor||!G.constructor.name?p:G.constructor.name}return f.checkPropTypes=o,f.resetWarningCache=o.resetWarningCache,f.PropTypes=f,f},vf}var bf,$1;function Wj(){if($1)return bf;$1=1;var e=Hb();function t(){}function n(){}return n.resetWarningCache=t,bf=function(){function r(a,s,c,l,u,d){if(d!==e){var p=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw p.name="Invariant Violation",p}}r.isRequired=r;function o(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:o,element:r,elementType:r,instanceOf:o,node:r,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:n,resetWarningCache:t};return i.PropTypes=i,i},bf}var z1;function VE(){if(z1)return kc;if(z1=1,process.env.NODE_ENV!=="production"){var e=YE(),t=!0;A1.exports=zj()(e.isElement,t)}else A1.exports=Wj()();return kc}var Uj=VE();const h=rr(Uj);function GE(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=GE(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=GE(e))&&(r&&(r+=" "),r+=t);return r}function Yj(e){const t=typeof e;switch(t){case"number":return Number.isNaN(e)?"NaN":Number.isFinite(e)?e!==Math.floor(e)?"float":"number":"Infinity";case"object":return e===null?"null":e.constructor.name;default:return t}}function qj(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const Vj=Number.isInteger||qj;function QE(e,t,n,r){const o=e[t];if(o==null||!Vj(o)){const i=Yj(o);return new RangeError(`Invalid ${r} \`${t}\` of type \`${i}\` supplied to \`${n}\`, expected \`integer\`.`)}return null}function JE(e,t,...n){return e[t]===void 0?null:QE(e,t,...n)}function Zm(){return null}JE.isRequired=QE;Zm.isRequired=Zm;const Dr=process.env.NODE_ENV==="production"?Zm:JE;function Lo(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function ks(e){return typeof e=="string"}function ss(e,t,n){return e===void 0||ks(e)?t:V({},t,{ownerState:V({},t.ownerState,n)})}const Gj={disableDefaultClasses:!1},ZE=P.createContext(Gj);process.env.NODE_ENV!=="production"&&(ZE.displayName="ClassNameConfiguratorContext");function Qj(e){const{disableDefaultClasses:t}=P.useContext(ZE);return n=>t?"":e(n)}function KE(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Jj(e,t,n){return typeof e=="function"?e(t,n):e}function wo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function XE(e){if(!wo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=XE(e[n])}),t}function In(e,t,n={clone:!0}){const r=n.clone?V({},e):e;return wo(e)&&wo(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(wo(t[o])&&o in e&&wo(e[o])?r[o]=In(e[o],t[o],n):n.clone?r[o]=wo(t[o])?XE(t[o]):t[o]:r[o]=t[o])}),r}const Zj=Object.freeze(Object.defineProperty({__proto__:null,default:In,isPlainObject:wo},Symbol.toStringTag,{value:"Module"}));function Kj(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eO(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;const c=i.type;return typeof c=="function"&&!Kj(c)&&(s="Did you accidentally use a plain function component for an element instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const tO=Lo(h.element,eO);tO.isRequired=Lo(h.element.isRequired,eO);const Qs=tO;function Xj(e){const{prototype:t={}}=e;return!!t.isReactComponent}function eL(e,t,n,r,o){const i=e[t],a=o||t;if(i==null||typeof window=="undefined")return null;let s;return typeof i=="function"&&!Xj(i)&&(s="Did you accidentally provide a plain function component instead?"),s!==void 0?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const $b=Lo(h.elementType,eL),tL="exact-prop: ​";function zu(e){return process.env.NODE_ENV==="production"?e:V({},e,{[tL]:t=>{const n=Object.keys(t).filter(r=>!e.hasOwnProperty(r));return n.length>0?new Error(`The following props are not supported: ${n.map(r=>`\`${r}\``).join(", ")}. Please remove them.`):null}})}function fi(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n<arguments.length;n+=1)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const nL=Object.freeze(Object.defineProperty({__proto__:null,default:fi},Symbol.toStringTag,{value:"Module"}));var Km={},rL={get exports(){return Km},set exports(e){Km=e}},Qe={};/**
35
+ * @license React
36
+ * react-is.production.min.js
37
+ *
38
+ * Copyright (c) Facebook, Inc. and its affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var W1;function oL(){if(W1)return Qe;W1=1;var e=Symbol.for("react.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.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m;m=Symbol.for("react.module.reference");function b(v){if(typeof v=="object"&&v!==null){var w=v.$$typeof;switch(w){case e:switch(v=v.type,v){case n:case o:case r:case l:case u:return v;default:switch(v=v&&v.$$typeof,v){case s:case a:case c:case p:case d:case i:return v;default:return w}}case t:return w}}}return Qe.ContextConsumer=a,Qe.ContextProvider=i,Qe.Element=e,Qe.ForwardRef=c,Qe.Fragment=n,Qe.Lazy=p,Qe.Memo=d,Qe.Portal=t,Qe.Profiler=o,Qe.StrictMode=r,Qe.Suspense=l,Qe.SuspenseList=u,Qe.isAsyncMode=function(){return!1},Qe.isConcurrentMode=function(){return!1},Qe.isContextConsumer=function(v){return b(v)===a},Qe.isContextProvider=function(v){return b(v)===i},Qe.isElement=function(v){return typeof v=="object"&&v!==null&&v.$$typeof===e},Qe.isForwardRef=function(v){return b(v)===c},Qe.isFragment=function(v){return b(v)===n},Qe.isLazy=function(v){return b(v)===p},Qe.isMemo=function(v){return b(v)===d},Qe.isPortal=function(v){return b(v)===t},Qe.isProfiler=function(v){return b(v)===o},Qe.isStrictMode=function(v){return b(v)===r},Qe.isSuspense=function(v){return b(v)===l},Qe.isSuspenseList=function(v){return b(v)===u},Qe.isValidElementType=function(v){return typeof v=="string"||typeof v=="function"||v===n||v===o||v===r||v===l||v===u||v===f||typeof v=="object"&&v!==null&&(v.$$typeof===p||v.$$typeof===d||v.$$typeof===i||v.$$typeof===a||v.$$typeof===c||v.$$typeof===m||v.getModuleId!==void 0)},Qe.typeOf=b,Qe}var Ke={};/**
43
+ * @license React
44
+ * react-is.development.js
45
+ *
46
+ * Copyright (c) Facebook, Inc. and its affiliates.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */var U1;function iL(){return U1||(U1=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.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.provider"),a=Symbol.for("react.context"),s=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),f=Symbol.for("react.offscreen"),m=!1,b=!1,v=!1,w=!1,_=!1,T;T=Symbol.for("react.module.reference");function y(Z){return!!(typeof Z=="string"||typeof Z=="function"||Z===n||Z===o||_||Z===r||Z===l||Z===u||w||Z===f||m||b||v||typeof Z=="object"&&Z!==null&&(Z.$$typeof===p||Z.$$typeof===d||Z.$$typeof===i||Z.$$typeof===a||Z.$$typeof===c||Z.$$typeof===T||Z.getModuleId!==void 0))}function k(Z){if(typeof Z=="object"&&Z!==null){var ae=Z.$$typeof;switch(ae){case e:var he=Z.type;switch(he){case n:case o:case r:case l:case u:return he;default:var le=he&&he.$$typeof;switch(le){case s:case a:case c:case p:case d:case i:return le;default:return ae}}case t:return ae}}}var S=a,x=i,C=e,O=c,D=n,R=p,M=d,F=t,N=o,I=r,j=l,$=u,Y=!1,U=!1;function G(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function K(Z){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function oe(Z){return k(Z)===a}function ne(Z){return k(Z)===i}function re(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===e}function ie(Z){return k(Z)===c}function ce(Z){return k(Z)===n}function se(Z){return k(Z)===p}function J(Z){return k(Z)===d}function A(Z){return k(Z)===t}function L(Z){return k(Z)===o}function z(Z){return k(Z)===r}function Q(Z){return k(Z)===l}function X(Z){return k(Z)===u}Ke.ContextConsumer=S,Ke.ContextProvider=x,Ke.Element=C,Ke.ForwardRef=O,Ke.Fragment=D,Ke.Lazy=R,Ke.Memo=M,Ke.Portal=F,Ke.Profiler=N,Ke.StrictMode=I,Ke.Suspense=j,Ke.SuspenseList=$,Ke.isAsyncMode=G,Ke.isConcurrentMode=K,Ke.isContextConsumer=oe,Ke.isContextProvider=ne,Ke.isElement=re,Ke.isForwardRef=ie,Ke.isFragment=ce,Ke.isLazy=se,Ke.isMemo=J,Ke.isPortal=A,Ke.isProfiler=L,Ke.isStrictMode=z,Ke.isSuspense=Q,Ke.isSuspenseList=X,Ke.isValidElementType=y,Ke.typeOf=k}()),Ke}var Y1;function aL(){return Y1||(Y1=1,function(e){process.env.NODE_ENV==="production"?e.exports=oL():e.exports=iL()}(rL)),Km}var Jr=aL();const sL=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function nO(e){const t=`${e}`.match(sL);return t&&t[1]||""}function rO(e,t=""){return e.displayName||e.name||nO(e)||t}function q1(e,t,n){const r=rO(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function lL(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return rO(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Jr.ForwardRef:return q1(e,e.render,"ForwardRef");case Jr.Memo:return q1(e,e.type,"memo");default:return}}}const cL=Object.freeze(Object.defineProperty({__proto__:null,default:lL,getFunctionName:nO},Symbol.toStringTag,{value:"Module"}));function eo(e,t,n,r,o){if(process.env.NODE_ENV==="production")return null;const i=e[t],a=o||t;return i==null?null:i&&i.nodeType!==1?new Error(`Invalid ${r} \`${a}\` supplied to \`${n}\`. Expected an HTMLElement.`):null}const uL=h.oneOfType([h.func,h.object]),or=uL;function Ne(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":fi(7));return e.charAt(0).toUpperCase()+e.slice(1)}const dL=Object.freeze(Object.defineProperty({__proto__:null,default:Ne},Symbol.toStringTag,{value:"Module"}));function V1(...e){return e.reduce((t,n)=>n==null?t:function(...r){t.apply(this,r),n.apply(this,r)},()=>{})}function oO(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function bn(e){return e&&e.ownerDocument||document}function gi(e){return bn(e).defaultView||window}function Xm(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const pL=typeof window!="undefined"?P.useLayoutEffect:P.useEffect,Hr=pL;let G1=0;function hL(e){const[t,n]=P.useState(e),r=e||t;return P.useEffect(()=>{t==null&&(G1+=1,n(`mui-${G1}`))},[t]),r}const Q1=P[`useId${Math.random()}`.slice(0,5)];function Sc(e){if(Q1!==void 0){const t=Q1();return e!=null?e:t}return hL(e)}function Ss({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=P.useRef(e!==void 0),[i,a]=P.useState(t),s=o?e:i;if(process.env.NODE_ENV!=="production"){P.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${r} state of ${n} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${n} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
51
+ `))},[r,n,e]);const{current:l}=P.useRef(t);P.useEffect(()=>{!o&&l!==t&&console.error([`MUI: A component is changing the default ${r} state of an uncontrolled ${n} after being initialized. To suppress this warning opt to use a controlled ${n}.`].join(`
52
+ `))},[JSON.stringify(t)])}const c=P.useCallback(l=>{o||a(l)},[]);return[s,c]}function ko(e){const t=P.useRef(e);return Hr(()=>{t.current=e}),P.useRef((...n)=>(0,t.current)(...n)).current}function $t(...e){return P.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Xm(n,t)})},e)}const J1={};function fL(e,t){const n=P.useRef(J1);return n.current===J1&&(n.current=e(t)),n}const gL=[];function mL(e){P.useEffect(e,gL)}class Js{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Js}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function ea(){const e=fL(Js.create).current;return mL(e.disposeEffect),e}let Wu=!0,ev=!1;const vL=new Js,bL={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function yL(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&bL[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wL(e){e.metaKey||e.altKey||e.ctrlKey||(Wu=!0)}function yf(){Wu=!1}function xL(){this.visibilityState==="hidden"&&ev&&(Wu=!0)}function _L(e){e.addEventListener("keydown",wL,!0),e.addEventListener("mousedown",yf,!0),e.addEventListener("pointerdown",yf,!0),e.addEventListener("touchstart",yf,!0),e.addEventListener("visibilitychange",xL,!0)}function CL(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(n){}return Wu||yL(t)}function iO(){const e=P.useCallback(o=>{o!=null&&_L(o.ownerDocument)},[]),t=P.useRef(!1);function n(){return t.current?(ev=!0,vL.start(100,()=>{ev=!1}),t.current=!1,!0):!1}function r(o){return CL(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function aO(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function sO(e,t){const n=V({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=V({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=V({},i),Object.keys(o).forEach(a=>{n[r][a]=sO(o[a],i[a])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function at(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,a)=>{if(a){const s=t(a);s!==""&&i.push(s),n&&n[a]&&i.push(n[a])}return i},[]).join(" ")}),r}const Z1=e=>e,kL=()=>{let e=Z1;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Z1}}},SL=kL(),TL=SL,lO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function rt(e,t,n="Mui"){const r=lO[t];return r?`${n}-${r}`:`${TL.generate(e)}-${t}`}function tt(e,t,n="Mui"){const r={};return t.forEach(o=>{r[o]=rt(e,o,n)}),r}function EL(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const OL=Object.freeze(Object.defineProperty({__proto__:null,default:EL},Symbol.toStringTag,{value:"Module"}));function K1(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function DL(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const f=De(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),m=V({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),b=V({},n,o,r);return f.length>0&&(b.className=f),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:void 0}}const a=KE(V({},o,r)),s=K1(r),c=K1(o),l=t(a),u=De(l==null?void 0:l.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=V({},l==null?void 0:l.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),p=V({},l,n,c,s);return u.length>0&&(p.className=u),Object.keys(d).length>0&&(p.style=d),{props:p,internalRef:l.ref}}const RL=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function mi(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,a=ke(e,RL),s=i?{}:Jj(r,o),{props:c,internalRef:l}=DL(V({},a,{externalSlotProps:s})),u=$t(l,s==null?void 0:s.ref,(t=e.additionalProps)==null?void 0:t.ref);return ss(n,V({},c,{ref:u}),o)}var Ko={},tv={},AL={get exports(){return tv},set exports(e){tv=e}},X1;function cO(){return X1||(X1=1,function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(AL)),tv}var nv={},ML={get exports(){return nv},set exports(e){nv=e}},ex;function NL(){return ex||(ex=1,function(e){function t(){return e.exports=t=Object.assign?Object.assign.bind():function(n){for(var r=1;r<arguments.length;r++){var o=arguments[r];for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])}return n},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(ML)),nv}var rv={},PL={get exports(){return rv},set exports(e){rv=e}},tx;function IL(){return tx||(tx=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if(Object.prototype.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(PL)),rv}function jL(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function LL(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var FL=function(){function e(n){var r=this;this._insertTag=function(o){var i;r.tags.length===0?r.insertionPoint?i=r.insertionPoint.nextSibling:r.prepend?i=r.container.firstChild:i=r.before:i=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(o,i),r.tags.push(o)},this.isSpeedy=n.speedy===void 0?process.env.NODE_ENV==="production":n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(LL(this));var r=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var o=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;o&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
53
+ `+n+"\n\n`@import` rules must be before all other types of rules in a stylesheet but other rules have already been inserted. Please ensure that `@import` rules are before all other rules."),this._alreadyInsertedOrderInsensitiveRule=this._alreadyInsertedOrderInsensitiveRule||!o}if(this.isSpeedy){var i=jL(r);try{i.insertRule(n,i.cssRules.length)}catch(a){process.env.NODE_ENV!=="production"&&!/:(-moz-placeholder|-moz-focus-inner|-moz-focusring|-ms-input-placeholder|-moz-read-write|-moz-read-only|-ms-clear|-ms-expand|-ms-reveal){/.test(n)&&console.error('There was a problem inserting the following rule: "'+n+'"',a)}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){return n.parentNode&&n.parentNode.removeChild(n)}),this.tags=[],this.ctr=0,process.env.NODE_ENV!=="production"&&(this._alreadyInsertedOrderInsensitiveRule=!1)},e}(),un="-ms-",Tc="-moz-",Ue="-webkit-",zb="comm",Wb="rule",Ub="decl",BL="@import",uO="@keyframes",HL="@layer",$L=Math.abs,Uu=String.fromCharCode,zL=Object.assign;function WL(e,t){return Xt(e,0)^45?(((t<<2^Xt(e,0))<<2^Xt(e,1))<<2^Xt(e,2))<<2^Xt(e,3):0}function dO(e){return e.trim()}function UL(e,t){return(e=t.exec(e))?e[0]:e}function Ye(e,t,n){return e.replace(t,n)}function ov(e,t){return e.indexOf(t)}function Xt(e,t){return e.charCodeAt(t)|0}function Ts(e,t,n){return e.slice(t,n)}function Or(e){return e.length}function Yb(e){return e.length}function Sl(e,t){return t.push(e),e}function YL(e,t){return e.map(t).join("")}var Yu=1,pa=1,pO=0,Dn=0,It=0,Ra="";function qu(e,t,n,r,o,i,a){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:Yu,column:pa,length:a,return:""}}function Wa(e,t){return zL(qu("",null,null,"",null,null,0),e,{length:-e.length},t)}function qL(){return It}function VL(){return It=Dn>0?Xt(Ra,--Dn):0,pa--,It===10&&(pa=1,Yu--),It}function jn(){return It=Dn<pO?Xt(Ra,Dn++):0,pa++,It===10&&(pa=1,Yu++),It}function Nr(){return Xt(Ra,Dn)}function Jl(){return Dn}function Zs(e,t){return Ts(Ra,e,t)}function Es(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function hO(e){return Yu=pa=1,pO=Or(Ra=e),Dn=0,[]}function fO(e){return Ra="",e}function Zl(e){return dO(Zs(Dn-1,iv(e===91?e+2:e===40?e+1:e)))}function GL(e){for(;(It=Nr())&&It<33;)jn();return Es(e)>2||Es(It)>3?"":" "}function QL(e,t){for(;--t&&jn()&&!(It<48||It>102||It>57&&It<65||It>70&&It<97););return Zs(e,Jl()+(t<6&&Nr()==32&&jn()==32))}function iv(e){for(;jn();)switch(It){case e:return Dn;case 34:case 39:e!==34&&e!==39&&iv(It);break;case 40:e===41&&iv(e);break;case 92:jn();break}return Dn}function JL(e,t){for(;jn()&&e+It!==57&&!(e+It===84&&Nr()===47););return"/*"+Zs(t,Dn-1)+"*"+Uu(e===47?e:jn())}function ZL(e){for(;!Es(Nr());)jn();return Zs(e,Dn)}function KL(e){return fO(Kl("",null,null,null,[""],e=hO(e),0,[0],e))}function Kl(e,t,n,r,o,i,a,s,c){for(var l=0,u=0,d=a,p=0,f=0,m=0,b=1,v=1,w=1,_=0,T="",y=o,k=i,S=r,x=T;v;)switch(m=_,_=jn()){case 40:if(m!=108&&Xt(x,d-1)==58){ov(x+=Ye(Zl(_),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:x+=Zl(_);break;case 9:case 10:case 13:case 32:x+=GL(m);break;case 92:x+=QL(Jl()-1,7);continue;case 47:switch(Nr()){case 42:case 47:Sl(XL(JL(jn(),Jl()),t,n),c);break;default:x+="/"}break;case 123*b:s[l++]=Or(x)*w;case 125*b:case 59:case 0:switch(_){case 0:case 125:v=0;case 59+u:w==-1&&(x=Ye(x,/\f/g,"")),f>0&&Or(x)-d&&Sl(f>32?rx(x+";",r,n,d-1):rx(Ye(x," ","")+";",r,n,d-2),c);break;case 59:x+=";";default:if(Sl(S=nx(x,t,n,l,u,o,s,T,y=[],k=[],d),i),_===123)if(u===0)Kl(x,t,S,S,y,i,d,s,k);else switch(p===99&&Xt(x,3)===110?100:p){case 100:case 108:case 109:case 115:Kl(e,S,S,r&&Sl(nx(e,S,S,0,0,o,s,T,o,y=[],d),k),o,k,d,s,r?y:k);break;default:Kl(x,S,S,S,[""],k,0,s,k)}}l=u=f=0,b=w=1,T=x="",d=a;break;case 58:d=1+Or(x),f=m;default:if(b<1){if(_==123)--b;else if(_==125&&b++==0&&VL()==125)continue}switch(x+=Uu(_),_*b){case 38:w=u>0?1:(x+="\f",-1);break;case 44:s[l++]=(Or(x)-1)*w,w=1;break;case 64:Nr()===45&&(x+=Zl(jn())),p=Nr(),u=d=Or(T=x+=ZL(Jl())),_++;break;case 45:m===45&&Or(x)==2&&(b=0)}}return i}function nx(e,t,n,r,o,i,a,s,c,l,u){for(var d=o-1,p=o===0?i:[""],f=Yb(p),m=0,b=0,v=0;m<r;++m)for(var w=0,_=Ts(e,d+1,d=$L(b=a[m])),T=e;w<f;++w)(T=dO(b>0?p[w]+" "+_:Ye(_,/&\f/g,p[w])))&&(c[v++]=T);return qu(e,t,n,o===0?Wb:s,c,l,u)}function XL(e,t,n){return qu(e,t,n,zb,Uu(qL()),Ts(e,2,-2),0)}function rx(e,t,n,r){return qu(e,t,n,Ub,Ts(e,0,r),Ts(e,r+1,-1),r)}function ca(e,t){for(var n="",r=Yb(e),o=0;o<r;o++)n+=t(e[o],o,e,t)||"";return n}function e5(e,t,n,r){switch(e.type){case HL:if(e.children.length)break;case BL:case Ub:return e.return=e.return||e.value;case zb:return"";case uO:return e.return=e.value+"{"+ca(e.children,r)+"}";case Wb:e.value=e.props.join(",")}return Or(n=ca(e.children,r))?e.return=e.value+"{"+n+"}":""}function t5(e){var t=Yb(e);return function(n,r,o,i){for(var a="",s=0;s<t;s++)a+=e[s](n,r,o,i)||"";return a}}function n5(e){return function(t){t.root||(t=t.return)&&e(t)}}var r5=function(e,t,n){for(var r=0,o=0;r=o,o=Nr(),r===38&&o===12&&(t[n]=1),!Es(o);)jn();return Zs(e,Dn)},o5=function(e,t){var n=-1,r=44;do switch(Es(r)){case 0:r===38&&Nr()===12&&(t[n]=1),e[n]+=r5(Dn-1,t,n);break;case 2:e[n]+=Zl(r);break;case 4:if(r===44){e[++n]=Nr()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=Uu(r)}while(r=jn());return e},i5=function(e,t){return fO(o5(hO(e),t))},ox=new WeakMap,a5=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!ox.get(n))&&!r){ox.set(e,!0);for(var o=[],i=i5(t,o),a=n.props,s=0,c=0;s<i.length;s++)for(var l=0;l<a.length;l++,c++)e.props[c]=o[s]?i[s].replace(/&\f/g,a[l]):a[l]+" "+i[s]}}},s5=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}},l5="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",c5=function(e){return e.type==="comm"&&e.children.indexOf(l5)>-1},u5=function(e){return function(t,n,r){if(!(t.type!=="rule"||e.compat)){var o=t.value.match(/(:first|:nth|:nth-last)-child/g);if(o){for(var i=!!t.parent,a=i?t.parent.children:r,s=a.length-1;s>=0;s--){var c=a[s];if(c.line<t.line)break;if(c.column<t.column){if(c5(c))return;break}}o.forEach(function(l){console.error('The pseudo class "'+l+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+l.split("-child")[0]+'-of-type".')})}}}},gO=function(e){return e.type.charCodeAt(1)===105&&e.type.charCodeAt(0)===64},d5=function(e,t){for(var n=e-1;n>=0;n--)if(!gO(t[n]))return!0;return!1},ix=function(e){e.type="",e.value="",e.return="",e.children="",e.props=""},p5=function(e,t,n){gO(e)&&(e.parent?(console.error("`@import` rules can't be nested inside other rules. Please move it to the top level and put it before regular rules. Keep in mind that they can only be used within global styles."),ix(e)):d5(t,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),ix(e)))};function mO(e,t){switch(WL(e,t)){case 5103:return Ue+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return Ue+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return Ue+e+Tc+e+un+e+e;case 6828:case 4268:return Ue+e+un+e+e;case 6165:return Ue+e+un+"flex-"+e+e;case 5187:return Ue+e+Ye(e,/(\w+).+(:[^]+)/,Ue+"box-$1$2"+un+"flex-$1$2")+e;case 5443:return Ue+e+un+"flex-item-"+Ye(e,/flex-|-self/,"")+e;case 4675:return Ue+e+un+"flex-line-pack"+Ye(e,/align-content|flex-|-self/,"")+e;case 5548:return Ue+e+un+Ye(e,"shrink","negative")+e;case 5292:return Ue+e+un+Ye(e,"basis","preferred-size")+e;case 6060:return Ue+"box-"+Ye(e,"-grow","")+Ue+e+un+Ye(e,"grow","positive")+e;case 4554:return Ue+Ye(e,/([^-])(transform)/g,"$1"+Ue+"$2")+e;case 6187:return Ye(Ye(Ye(e,/(zoom-|grab)/,Ue+"$1"),/(image-set)/,Ue+"$1"),e,"")+e;case 5495:case 3959:return Ye(e,/(image-set\([^]*)/,Ue+"$1$`$1");case 4968:return Ye(Ye(e,/(.+:)(flex-)?(.*)/,Ue+"box-pack:$3"+un+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+Ue+e+e;case 4095:case 3583:case 4068:case 2532:return Ye(e,/(.+)-inline(.+)/,Ue+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Or(e)-1-t>6)switch(Xt(e,t+1)){case 109:if(Xt(e,t+4)!==45)break;case 102:return Ye(e,/(.+:)(.+)-([^]+)/,"$1"+Ue+"$2-$3$1"+Tc+(Xt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~ov(e,"stretch")?mO(Ye(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Xt(e,t+1)!==115)break;case 6444:switch(Xt(e,Or(e)-3-(~ov(e,"!important")&&10))){case 107:return Ye(e,":",":"+Ue)+e;case 101:return Ye(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Ue+(Xt(e,14)===45?"inline-":"")+"box$3$1"+Ue+"$2$3$1"+un+"$2box$3")+e}break;case 5936:switch(Xt(e,t+11)){case 114:return Ue+e+un+Ye(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Ue+e+un+Ye(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Ue+e+un+Ye(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Ue+e+un+e+e}return e}var h5=function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case Ub:e.return=mO(e.value,e.length);break;case uO:return ca([Wa(e,{value:Ye(e.value,"@","@"+Ue)})],r);case Wb:if(e.length)return YL(e.props,function(o){switch(UL(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return ca([Wa(e,{props:[Ye(o,/:(read-\w+)/,":"+Tc+"$1")]})],r);case"::placeholder":return ca([Wa(e,{props:[Ye(o,/:(plac\w+)/,":"+Ue+"input-$1")]}),Wa(e,{props:[Ye(o,/:(plac\w+)/,":"+Tc+"$1")]}),Wa(e,{props:[Ye(o,/:(plac\w+)/,un+"input-$1")]})],r)}return""})}},f5=[h5],g5=function(e){var t=e.key;if(process.env.NODE_ENV!=="production"&&!t)throw new Error(`You have to configure \`key\` for your cache. Please make sure it's unique (and not equal to 'css') as it's used for linking styles to your cache.
54
+ If multiple caches share the same key they might "fight" for each other's style elements.`);if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(m){var b=m.getAttribute("data-emotion");b.indexOf(" ")!==-1&&(document.head.appendChild(m),m.setAttribute("data-s",""))})}var r=e.stylisPlugins||f5;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(t))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+t+'" was passed');var o={},i,a=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(m){for(var b=m.getAttribute("data-emotion").split(" "),v=1;v<b.length;v++)o[b[v]]=!0;a.push(m)});var s,c=[a5,s5];process.env.NODE_ENV!=="production"&&c.push(u5({get compat(){return f.compat}}),p5);{var l,u=[e5,process.env.NODE_ENV!=="production"?function(m){m.root||(m.return?l.insert(m.return):m.value&&m.type!==zb&&l.insert(m.value+"{}"))}:n5(function(m){l.insert(m)})],d=t5(c.concat(r,u)),p=function(m){return ca(KL(m),d)};s=function(m,b,v,w){l=v,process.env.NODE_ENV!=="production"&&b.map!==void 0&&(l={insert:function(_){v.insert(_+b.map)}}),p(m?m+"{"+b.styles+"}":b.styles),w&&(f.inserted[b.name]=!0)}}var f={key:t,sheet:new FL({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:o,registered:{},insert:s};return f.sheet.hydrate(a),f};let av;typeof document=="object"&&(av=g5({key:"css",prepend:!0}));function vO(e){const{injectFirst:t,children:n}=e;return t&&av?E.jsx(g.CacheProvider,{value:av,children:n}):n}process.env.NODE_ENV!=="production"&&(vO.propTypes={children:h.node,injectFirst:h.bool});function m5(e){return e==null||Object.keys(e).length===0}function qb(e){const{styles:t,defaultTheme:n={}}=e;return E.jsx(g.Global,{styles:typeof t=="function"?r=>t(m5(r)?n:r):t})}process.env.NODE_ENV!=="production"&&(qb.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.string,h.object,h.func])});/**
55
+ * @mui/styled-engine v5.15.14
56
+ *
57
+ * @license MIT
58
+ * This source code is licensed under the MIT license found in the
59
+ * LICENSE file in the root directory of this source tree.
60
+ */function v5(e,t){const n=g.newStyled(e,t);return process.env.NODE_ENV!=="production"?(...r)=>{const o=typeof e=="string"?`"${e}"`:"component";return r.length===0?console.error([`MUI: Seems like you called \`styled(${o})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
61
+ `)):r.some(i=>i===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),n(...r)}:n}const b5=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},y5=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:qb,StyledEngineProvider:vO,ThemeContext:g.ThemeContext,css:g.css,default:v5,internal_processStyles:b5,keyframes:g.keyframes},Symbol.toStringTag,{value:"Module"})),bO=zr(y5),w5=zr(Zj),x5=zr(dL),_5=zr(cL),C5=["values","unit","step"],k5=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>V({},n,{[r.key]:r.val}),{})};function yO(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=ke(e,C5),i=k5(t),a=Object.keys(i);function s(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function l(p,f){const m=a.indexOf(f);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(m!==-1&&typeof t[a[m]]=="number"?t[a[m]]:f)-r/100}${n})`}function u(p){return a.indexOf(p)+1<a.length?l(p,a[a.indexOf(p)+1]):s(p)}function d(p){const f=a.indexOf(p);return f===0?s(a[1]):f===a.length-1?c(a[f]):l(p,a[a.indexOf(p)+1]).replace("@media","@media not all and")}return V({keys:a,values:i,up:s,down:c,between:l,only:u,not:d,unit:n},o)}const S5={borderRadius:4},T5=S5,E5=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.string,h.object,h.array]):{},Fo=E5;function hs(e,t){return t?In(e,t,{clone:!1}):e}const Vb={xs:0,sm:600,md:900,lg:1200,xl:1536},ax={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Vb[e]}px)`};function to(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||ax;return t.reduce((i,a,s)=>(i[o.up(o.keys[s])]=n(t[s]),i),{})}if(typeof t=="object"){const o=r.breakpoints||ax;return Object.keys(t).reduce((i,a)=>{if(Object.keys(o.values||Vb).indexOf(a)!==-1){const s=o.up(a);i[s]=n(t[a],a)}else{const s=a;i[s]=t[s]}return i},{})}return n(t)}function O5(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{const o=e.up(r);return n[o]={},n},{}))||{}}function D5(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function Vu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ec(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Vu(e,n)||r,t&&(o=t(o,r,e)),o}function Rt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=a=>{if(a[t]==null)return null;const s=a[t],c=a.theme,l=Vu(c,r)||{};return to(a,s,u=>{let d=Ec(l,o,u);return u===d&&typeof u=="string"&&(d=Ec(l,o,`${t}${u==="default"?"":Ne(u)}`,u)),n===!1?d:{[n]:d}})};return i.propTypes=process.env.NODE_ENV!=="production"?{[t]:Fo}:{},i.filterProps=[t],i}function R5(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const A5={m:"margin",p:"padding"},M5={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},sx={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},N5=R5(e=>{if(e.length>2)if(sx[e])e=sx[e];else return[e];const[t,n]=e.split(""),r=A5[t],o=M5[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Gu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Qu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],P5=[...Gu,...Qu];function Ks(e,t,n,r){var o;const i=(o=Vu(e,t,!1))!=null?o:n;return typeof i=="number"?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&typeof a!="number"&&console.error(`MUI: Expected ${r} argument to be a number or a string, got ${a}.`),i*a):Array.isArray(i)?a=>typeof a=="string"?a:(process.env.NODE_ENV!=="production"&&(Number.isInteger(a)?a>i.length-1&&console.error([`MUI: The value provided (${a}) overflows.`,`The supported values are: ${JSON.stringify(i)}.`,`${a} > ${i.length-1}, you need to add the missing values.`].join(`
62
+ `)):console.error([`MUI: The \`theme.${t}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${t}\` as a number.`].join(`
63
+ `))),i[a]):typeof i=="function"?i:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${i}) is invalid.`,"It should be a number, an array or a function."].join(`
64
+ `)),()=>{})}function wO(e){return Ks(e,"spacing",8,"spacing")}function Xs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function I5(e,t){return n=>e.reduce((r,o)=>(r[o]=Xs(t,n),r),{})}function j5(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=N5(n),i=I5(o,r),a=e[n];return to(e,a,i)}function xO(e,t){const n=wO(e.theme);return Object.keys(e).map(r=>j5(e,t,r,n)).reduce(hs,{})}function xt(e){return xO(e,Gu)}xt.propTypes=process.env.NODE_ENV!=="production"?Gu.reduce((e,t)=>(e[t]=Fo,e),{}):{};xt.filterProps=Gu;function _t(e){return xO(e,Qu)}_t.propTypes=process.env.NODE_ENV!=="production"?Qu.reduce((e,t)=>(e[t]=Fo,e),{}):{};_t.filterProps=Qu;process.env.NODE_ENV!=="production"&&P5.reduce((e,t)=>(e[t]=Fo,e),{});function L5(e=8){if(e.mui)return e;const t=wO({spacing:e}),n=(...r)=>(process.env.NODE_ENV!=="production"&&(r.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${r.length}`)),(r.length===0?[1]:r).map(o=>{const i=t(o);return typeof i=="number"?`${i}px`:i}).join(" "));return n.mui=!0,n}function Ju(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?hs(o,t[i](r)):o,{});return n.propTypes=process.env.NODE_ENV!=="production"?e.reduce((r,o)=>Object.assign(r,o.propTypes),{}):{},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Zn(e){return typeof e!="number"?e:`${e}px solid`}function ir(e,t){return Rt({prop:e,themeKey:"borders",transform:t})}const F5=ir("border",Zn),B5=ir("borderTop",Zn),H5=ir("borderRight",Zn),$5=ir("borderBottom",Zn),z5=ir("borderLeft",Zn),W5=ir("borderColor"),U5=ir("borderTopColor"),Y5=ir("borderRightColor"),q5=ir("borderBottomColor"),V5=ir("borderLeftColor"),G5=ir("outline",Zn),Q5=ir("outlineColor"),Zu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ks(e.theme,"shape.borderRadius",4,"borderRadius"),n=r=>({borderRadius:Xs(t,r)});return to(e,e.borderRadius,n)}return null};Zu.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:Fo}:{};Zu.filterProps=["borderRadius"];Ju(F5,B5,H5,$5,z5,W5,U5,Y5,q5,V5,Zu,G5,Q5);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ks(e.theme,"spacing",8,"gap"),n=r=>({gap:Xs(t,r)});return to(e,e.gap,n)}return null};Ku.propTypes=process.env.NODE_ENV!=="production"?{gap:Fo}:{};Ku.filterProps=["gap"];const Xu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ks(e.theme,"spacing",8,"columnGap"),n=r=>({columnGap:Xs(t,r)});return to(e,e.columnGap,n)}return null};Xu.propTypes=process.env.NODE_ENV!=="production"?{columnGap:Fo}:{};Xu.filterProps=["columnGap"];const ed=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ks(e.theme,"spacing",8,"rowGap"),n=r=>({rowGap:Xs(t,r)});return to(e,e.rowGap,n)}return null};ed.propTypes=process.env.NODE_ENV!=="production"?{rowGap:Fo}:{};ed.filterProps=["rowGap"];const J5=Rt({prop:"gridColumn"}),Z5=Rt({prop:"gridRow"}),K5=Rt({prop:"gridAutoFlow"}),X5=Rt({prop:"gridAutoColumns"}),e3=Rt({prop:"gridAutoRows"}),t3=Rt({prop:"gridTemplateColumns"}),n3=Rt({prop:"gridTemplateRows"}),r3=Rt({prop:"gridTemplateAreas"}),o3=Rt({prop:"gridArea"});Ju(Ku,Xu,ed,J5,Z5,K5,X5,e3,t3,n3,r3,o3);function ua(e,t){return t==="grey"?t:e}const i3=Rt({prop:"color",themeKey:"palette",transform:ua}),a3=Rt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ua}),s3=Rt({prop:"backgroundColor",themeKey:"palette",transform:ua});Ju(i3,a3,s3);function Pn(e){return e<=1&&e!==0?`${e*100}%`:e}const l3=Rt({prop:"width",transform:Pn}),Gb=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Vb[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:Pn(n)}};return to(e,e.maxWidth,t)}return null};Gb.filterProps=["maxWidth"];const c3=Rt({prop:"minWidth",transform:Pn}),u3=Rt({prop:"height",transform:Pn}),d3=Rt({prop:"maxHeight",transform:Pn}),p3=Rt({prop:"minHeight",transform:Pn});Rt({prop:"size",cssProperty:"width",transform:Pn});Rt({prop:"size",cssProperty:"height",transform:Pn});const h3=Rt({prop:"boxSizing"});Ju(l3,Gb,c3,u3,d3,p3,h3);const f3={border:{themeKey:"borders",transform:Zn},borderTop:{themeKey:"borders",transform:Zn},borderRight:{themeKey:"borders",transform:Zn},borderBottom:{themeKey:"borders",transform:Zn},borderLeft:{themeKey:"borders",transform:Zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Zu},color:{themeKey:"palette",transform:ua},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ua},backgroundColor:{themeKey:"palette",transform:ua},p:{style:_t},pt:{style:_t},pr:{style:_t},pb:{style:_t},pl:{style:_t},px:{style:_t},py:{style:_t},padding:{style:_t},paddingTop:{style:_t},paddingRight:{style:_t},paddingBottom:{style:_t},paddingLeft:{style:_t},paddingX:{style:_t},paddingY:{style:_t},paddingInline:{style:_t},paddingInlineStart:{style:_t},paddingInlineEnd:{style:_t},paddingBlock:{style:_t},paddingBlockStart:{style:_t},paddingBlockEnd:{style:_t},m:{style:xt},mt:{style:xt},mr:{style:xt},mb:{style:xt},ml:{style:xt},mx:{style:xt},my:{style:xt},margin:{style:xt},marginTop:{style:xt},marginRight:{style:xt},marginBottom:{style:xt},marginLeft:{style:xt},marginX:{style:xt},marginY:{style:xt},marginInline:{style:xt},marginInlineStart:{style:xt},marginInlineEnd:{style:xt},marginBlock:{style:xt},marginBlockStart:{style:xt},marginBlockEnd:{style:xt},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:ed},columnGap:{style:Xu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Pn},maxWidth:{style:Gb},minWidth:{transform:Pn},height:{transform:Pn},maxHeight:{transform:Pn},minHeight:{transform:Pn},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},el=f3;function g3(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function m3(e,t){return typeof e=="function"?e(t):e}function _O(){function e(n,r,o,i){const a={[n]:r,theme:o},s=i[n];if(!s)return{[n]:r};const{cssProperty:c=n,themeKey:l,transform:u,style:d}=s;if(r==null)return null;if(l==="typography"&&r==="inherit")return{[n]:r};const p=Vu(o,l)||{};return d?d(a):to(a,r,f=>{let m=Ec(p,u,f);return f===m&&typeof f=="string"&&(m=Ec(p,u,`${n}${f==="default"?"":Ne(f)}`,f)),c===!1?m:{[c]:m}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const a=(r=i.unstable_sxConfig)!=null?r:el;function s(c){let l=c;if(typeof c=="function")l=c(i);else if(typeof c!="object")return c;if(!l)return null;const u=O5(i.breakpoints),d=Object.keys(u);let p=u;return Object.keys(l).forEach(f=>{const m=m3(l[f],i);if(m!=null)if(typeof m=="object")if(a[f])p=hs(p,e(f,m,i,a));else{const b=to({theme:i},m,v=>({[f]:v}));g3(b,m)?p[f]=t({sx:m,theme:i}):p=hs(p,b)}else p=hs(p,e(f,m,i,a))}),D5(d,p)}return Array.isArray(o)?o.map(s):s(o)}return t}const CO=_O();CO.filterProps=["sx"];const Qb=CO;function kO(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const v3=["breakpoints","palette","spacing","shape"];function Jb(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,a=ke(e,v3),s=yO(n),c=L5(o);let l=In({breakpoints:s,direction:"ltr",components:{},palette:V({mode:"light"},r),spacing:c,shape:V({},T5,i)},a);return l.applyStyles=kO,l=t.reduce((u,d)=>In(u,d),l),l.unstable_sxConfig=V({},el,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(u){return Qb({sx:u,theme:this})},l}const b3=Object.freeze(Object.defineProperty({__proto__:null,default:Jb,private_createBreakpoints:yO,unstable_applyStyles:kO},Symbol.toStringTag,{value:"Module"})),y3=zr(b3),w3=["sx"],x3=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:el;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function SO(e){const{sx:t}=e,n=ke(e,w3),{systemProps:r,otherProps:o}=x3(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...a)=>{const s=t(...a);return wo(s)?V({},r,s):r}:i=V({},r,t),V({},o,{sx:i})}const _3=Object.freeze(Object.defineProperty({__proto__:null,default:Qb,extendSxProp:SO,unstable_createStyleFunctionSx:_O,unstable_defaultSxConfig:el},Symbol.toStringTag,{value:"Module"})),C3=zr(_3);var lx;function k3(){if(lx)return Ko;lx=1;var e=cO();Object.defineProperty(Ko,"__esModule",{value:!0}),Ko.default=S,Ko.shouldForwardProp=v,Ko.systemDefaultTheme=void 0;var t=e(NL()),n=e(IL()),r=f(bO),o=w5,i=e(x5),a=e(_5),s=e(y3),c=e(C3);const l=["ownerState"],u=["variants"],d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function p(x){if(typeof WeakMap!="function")return null;var C=new WeakMap,O=new WeakMap;return(p=function(D){return D?O:C})(x)}function f(x,C){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var O=p(C);if(O&&O.has(x))return O.get(x);var D={__proto__:null},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var F=R?Object.getOwnPropertyDescriptor(x,M):null;F&&(F.get||F.set)?Object.defineProperty(D,M,F):D[M]=x[M]}return D.default=x,O&&O.set(x,D),D}function m(x){return Object.keys(x).length===0}function b(x){return typeof x=="string"&&x.charCodeAt(0)>96}function v(x){return x!=="ownerState"&&x!=="theme"&&x!=="sx"&&x!=="as"}const w=Ko.systemDefaultTheme=(0,s.default)(),_=x=>x&&x.charAt(0).toLowerCase()+x.slice(1);function T({defaultTheme:x,theme:C,themeId:O}){return m(C)?x:C[O]||C}function y(x){return x?(C,O)=>O[x]:null}function k(x,C){let{ownerState:O}=C,D=(0,n.default)(C,l);const R=typeof x=="function"?x((0,t.default)({ownerState:O},D)):x;if(Array.isArray(R))return R.flatMap(M=>k(M,(0,t.default)({ownerState:O},D)));if(R&&typeof R=="object"&&Array.isArray(R.variants)){const{variants:M=[]}=R;let F=(0,n.default)(R,u);return M.forEach(N=>{let I=!0;typeof N.props=="function"?I=N.props((0,t.default)({ownerState:O},D,O)):Object.keys(N.props).forEach(j=>{(O==null?void 0:O[j])!==N.props[j]&&D[j]!==N.props[j]&&(I=!1)}),I&&(Array.isArray(F)||(F=[F]),F.push(typeof N.style=="function"?N.style((0,t.default)({ownerState:O},D,O)):N.style))}),F}return R}function S(x={}){const{themeId:C,defaultTheme:O=w,rootShouldForwardProp:D=v,slotShouldForwardProp:R=v}=x,M=F=>(0,c.default)((0,t.default)({},F,{theme:T((0,t.default)({},F,{defaultTheme:O,themeId:C}))}));return M.__mui_systemSx=!0,(F,N={})=>{(0,r.internal_processStyles)(F,J=>J.filter(A=>!(A!=null&&A.__mui_systemSx)));const{name:I,slot:j,skipVariantsResolver:$,skipSx:Y,overridesResolver:U=y(_(j))}=N,G=(0,n.default)(N,d),K=$!==void 0?$:j&&j!=="Root"&&j!=="root"||!1,oe=Y||!1;let ne;process.env.NODE_ENV!=="production"&&I&&(ne=`${I}-${_(j||"Root")}`);let re=v;j==="Root"||j==="root"?re=D:j?re=R:b(F)&&(re=void 0);const ie=(0,r.default)(F,(0,t.default)({shouldForwardProp:re,label:ne},G)),ce=J=>typeof J=="function"&&J.__emotion_real!==J||(0,o.isPlainObject)(J)?A=>k(J,(0,t.default)({},A,{theme:T({theme:A.theme,defaultTheme:O,themeId:C})})):J,se=(J,...A)=>{let L=ce(J);const z=A?A.map(ce):[];I&&U&&z.push(Z=>{const ae=T((0,t.default)({},Z,{defaultTheme:O,themeId:C}));if(!ae.components||!ae.components[I]||!ae.components[I].styleOverrides)return null;const he=ae.components[I].styleOverrides,le={};return Object.entries(he).forEach(([_e,ue])=>{le[_e]=k(ue,(0,t.default)({},Z,{theme:ae}))}),U(Z,le)}),I&&!K&&z.push(Z=>{var ae;const he=T((0,t.default)({},Z,{defaultTheme:O,themeId:C})),le=he==null||(ae=he.components)==null||(ae=ae[I])==null?void 0:ae.variants;return k({variants:le},(0,t.default)({},Z,{theme:he}))}),oe||z.push(M);const Q=z.length-A.length;if(Array.isArray(J)&&Q>0){const Z=new Array(Q).fill("");L=[...J,...Z],L.raw=[...J.raw,...Z]}const X=ie(L,...z);if(process.env.NODE_ENV!=="production"){let Z;I&&(Z=`${I}${(0,i.default)(j||"")}`),Z===void 0&&(Z=`Styled(${(0,a.default)(F)})`),X.displayName=Z}return F.muiName&&(X.muiName=F.muiName),X};return ie.withConfig&&(se.withConfig=ie.withConfig),se}}return Ko}var S3=k3();const T3=rr(S3);function E3(e,t){return V({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var vt={};const O3=zr(nL),D3=zr(OL);var cx;function R3(){if(cx)return vt;cx=1;var e=cO();Object.defineProperty(vt,"__esModule",{value:!0}),vt.alpha=m,vt.blend=S,vt.colorChannel=void 0,vt.darken=v,vt.decomposeColor=a,vt.emphasize=y,vt.getContrastRatio=f,vt.getLuminance=p,vt.hexToRgb=o,vt.hslToRgb=d,vt.lighten=_,vt.private_safeAlpha=b,vt.private_safeColorChannel=void 0,vt.private_safeDarken=w,vt.private_safeEmphasize=k,vt.private_safeLighten=T,vt.recomposeColor=l,vt.rgbToHex=u;var t=e(O3),n=e(D3);function r(x,C=0,O=1){return process.env.NODE_ENV!=="production"&&(x<C||x>O)&&console.error(`MUI: The value provided ${x} is out of range [${C}, ${O}].`),(0,n.default)(x,C,O)}function o(x){x=x.slice(1);const C=new RegExp(`.{1,${x.length>=6?2:1}}`,"g");let O=x.match(C);return O&&O[0].length===1&&(O=O.map(D=>D+D)),O?`rgb${O.length===4?"a":""}(${O.map((D,R)=>R<3?parseInt(D,16):Math.round(parseInt(D,16)/255*1e3)/1e3).join(", ")})`:""}function i(x){const C=x.toString(16);return C.length===1?`0${C}`:C}function a(x){if(x.type)return x;if(x.charAt(0)==="#")return a(o(x));const C=x.indexOf("("),O=x.substring(0,C);if(["rgb","rgba","hsl","hsla","color"].indexOf(O)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${x}\` color.
65
+ The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,t.default)(9,x));let D=x.substring(C+1,x.length-1),R;if(O==="color"){if(D=D.split(" "),R=D.shift(),D.length===4&&D[3].charAt(0)==="/"&&(D[3]=D[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(R)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${R}\` color space.
66
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,t.default)(10,R))}else D=D.split(",");return D=D.map(M=>parseFloat(M)),{type:O,values:D,colorSpace:R}}const s=x=>{const C=a(x);return C.values.slice(0,3).map((O,D)=>C.type.indexOf("hsl")!==-1&&D!==0?`${O}%`:O).join(" ")};vt.colorChannel=s;const c=(x,C)=>{try{return s(x)}catch(O){return C&&process.env.NODE_ENV!=="production"&&console.warn(C),x}};vt.private_safeColorChannel=c;function l(x){const{type:C,colorSpace:O}=x;let{values:D}=x;return C.indexOf("rgb")!==-1?D=D.map((R,M)=>M<3?parseInt(R,10):R):C.indexOf("hsl")!==-1&&(D[1]=`${D[1]}%`,D[2]=`${D[2]}%`),C.indexOf("color")!==-1?D=`${O} ${D.join(" ")}`:D=`${D.join(", ")}`,`${C}(${D})`}function u(x){if(x.indexOf("#")===0)return x;const{values:C}=a(x);return`#${C.map((O,D)=>i(D===3?Math.round(255*O):O)).join("")}`}function d(x){x=a(x);const{values:C}=x,O=C[0],D=C[1]/100,R=C[2]/100,M=D*Math.min(R,1-R),F=(j,$=(j+O/30)%12)=>R-M*Math.max(Math.min($-3,9-$,1),-1);let N="rgb";const I=[Math.round(F(0)*255),Math.round(F(8)*255),Math.round(F(4)*255)];return x.type==="hsla"&&(N+="a",I.push(C[3])),l({type:N,values:I})}function p(x){x=a(x);let C=x.type==="hsl"||x.type==="hsla"?a(d(x)).values:x.values;return C=C.map(O=>(x.type!=="color"&&(O/=255),O<=.03928?O/12.92:fr((O+.055)/1.055,2.4))),Number((.2126*C[0]+.7152*C[1]+.0722*C[2]).toFixed(3))}function f(x,C){const O=p(x),D=p(C);return(Math.max(O,D)+.05)/(Math.min(O,D)+.05)}function m(x,C){return x=a(x),C=r(C),(x.type==="rgb"||x.type==="hsl")&&(x.type+="a"),x.type==="color"?x.values[3]=`/${C}`:x.values[3]=C,l(x)}function b(x,C,O){try{return m(x,C)}catch(D){return O&&process.env.NODE_ENV!=="production"&&console.warn(O),x}}function v(x,C){if(x=a(x),C=r(C),x.type.indexOf("hsl")!==-1)x.values[2]*=1-C;else if(x.type.indexOf("rgb")!==-1||x.type.indexOf("color")!==-1)for(let O=0;O<3;O+=1)x.values[O]*=1-C;return l(x)}function w(x,C,O){try{return v(x,C)}catch(D){return O&&process.env.NODE_ENV!=="production"&&console.warn(O),x}}function _(x,C){if(x=a(x),C=r(C),x.type.indexOf("hsl")!==-1)x.values[2]+=(100-x.values[2])*C;else if(x.type.indexOf("rgb")!==-1)for(let O=0;O<3;O+=1)x.values[O]+=(255-x.values[O])*C;else if(x.type.indexOf("color")!==-1)for(let O=0;O<3;O+=1)x.values[O]+=(1-x.values[O])*C;return l(x)}function T(x,C,O){try{return _(x,C)}catch(D){return O&&process.env.NODE_ENV!=="production"&&console.warn(O),x}}function y(x,C=.15){return p(x)>.5?v(x,C):_(x,C)}function k(x,C,O){try{return y(x,C)}catch(D){return O&&process.env.NODE_ENV!=="production"&&console.warn(O),x}}function S(x,C,O,D=1){const R=(I,j)=>Math.round(fr(fr(I,1/D)*(1-O)+fr(j,1/D)*O,D)),M=a(x),F=a(C),N=[R(M.values[0],F.values[0]),R(M.values[1],F.values[1]),R(M.values[2],F.values[2])];return l({type:"rgb",values:N})}return vt}var lt=R3();const A3={black:"#000",white:"#fff"},Os=A3,M3={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"},N3=M3,P3={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ji=P3,I3={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Li=I3,j3={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Ua=j3,L3={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Fi=L3,F3={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Bi=F3,B3={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},Hi=B3,H3=["mode","contrastThreshold","tonalOffset"],ux={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:Os.white,default:Os.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},wf={text:{primary:Os.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:Os.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function dx(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=lt.lighten(e.main,o):t==="dark"&&(e.dark=lt.darken(e.main,i)))}function $3(e="light"){return e==="dark"?{main:Fi[200],light:Fi[50],dark:Fi[400]}:{main:Fi[700],light:Fi[400],dark:Fi[800]}}function z3(e="light"){return e==="dark"?{main:ji[200],light:ji[50],dark:ji[400]}:{main:ji[500],light:ji[300],dark:ji[700]}}function W3(e="light"){return e==="dark"?{main:Li[500],light:Li[300],dark:Li[700]}:{main:Li[700],light:Li[400],dark:Li[800]}}function U3(e="light"){return e==="dark"?{main:Bi[400],light:Bi[300],dark:Bi[700]}:{main:Bi[700],light:Bi[500],dark:Bi[900]}}function Y3(e="light"){return e==="dark"?{main:Hi[400],light:Hi[300],dark:Hi[700]}:{main:Hi[800],light:Hi[500],dark:Hi[900]}}function q3(e="light"){return e==="dark"?{main:Ua[400],light:Ua[300],dark:Ua[700]}:{main:"#ed6c02",light:Ua[500],dark:Ua[900]}}function V3(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=ke(e,H3),i=e.primary||$3(t),a=e.secondary||z3(t),s=e.error||W3(t),c=e.info||U3(t),l=e.success||Y3(t),u=e.warning||q3(t);function d(m){const b=lt.getContrastRatio(m,wf.text.primary)>=n?wf.text.primary:ux.text.primary;if(process.env.NODE_ENV!=="production"){const v=lt.getContrastRatio(m,b);v<3&&console.error([`MUI: The contrast ratio of ${v}:1 for ${b} on ${m}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
67
+ `))}return b}const p=({color:m,name:b,mainShade:v=500,lightShade:w=300,darkShade:_=700})=>{if(m=V({},m),!m.main&&m[v]&&(m.main=m[v]),!m.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
68
+ The color object needs to have a \`main\` property or a \`${v}\` property.`:fi(11,b?` (${b})`:"",v));if(typeof m.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${b?` (${b})`:""} provided to augmentColor(color) is invalid.
69
+ \`color.main\` should be a string, but \`${JSON.stringify(m.main)}\` was provided instead.
70
+
71
+ Did you intend to use one of the following approaches?
72
+
73
+ import { green } from "@mui/material/colors";
74
+
75
+ const theme1 = createTheme({ palette: {
76
+ primary: green,
77
+ } });
78
+
79
+ const theme2 = createTheme({ palette: {
80
+ primary: { main: green[500] },
81
+ } });`:fi(12,b?` (${b})`:"",JSON.stringify(m.main)));return dx(m,"light",w,r),dx(m,"dark",_,r),m.contrastText||(m.contrastText=d(m.main)),m},f={dark:wf,light:ux};return process.env.NODE_ENV!=="production"&&(f[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),In(V({common:V({},Os),mode:t,primary:p({color:i,name:"primary"}),secondary:p({color:a,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:s,name:"error"}),warning:p({color:u,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:l,name:"success"}),grey:N3,contrastThreshold:n,getContrastText:d,augmentColor:p,tonalOffset:r},f[t]),o)}const G3=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Q3(e){return Math.round(e*1e5)/1e5}const px={textTransform:"uppercase"},hx='"Roboto", "Helvetica", "Arial", sans-serif';function J3(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=hx,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:s=500,fontWeightBold:c=700,htmlFontSize:l=16,allVariants:u,pxToRem:d}=n,p=ke(n,G3);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof l!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const f=o/14,m=d||(w=>`${w/l*f}rem`),b=(w,_,T,y,k)=>V({fontFamily:r,fontWeight:w,fontSize:m(_),lineHeight:T},r===hx?{letterSpacing:`${Q3(y/_)}em`}:{},k,u),v={h1:b(i,96,1.167,-1.5),h2:b(i,60,1.2,-.5),h3:b(a,48,1.167,0),h4:b(a,34,1.235,.25),h5:b(a,24,1.334,0),h6:b(s,20,1.6,.15),subtitle1:b(a,16,1.75,.15),subtitle2:b(s,14,1.57,.1),body1:b(a,16,1.5,.15),body2:b(a,14,1.43,.15),button:b(s,14,1.75,.4,px),caption:b(a,12,1.66,.4),overline:b(a,12,2.66,1,px),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return In(V({htmlFontSize:l,pxToRem:m,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:s,fontWeightBold:c},v),p,{clone:!1})}const Z3=.2,K3=.14,X3=.12;function pt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Z3})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${K3})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${X3})`].join(",")}const eF=["none",pt(0,2,1,-1,0,1,1,0,0,1,3,0),pt(0,3,1,-2,0,2,2,0,0,1,5,0),pt(0,3,3,-2,0,3,4,0,0,1,8,0),pt(0,2,4,-1,0,4,5,0,0,1,10,0),pt(0,3,5,-1,0,5,8,0,0,1,14,0),pt(0,3,5,-1,0,6,10,0,0,1,18,0),pt(0,4,5,-2,0,7,10,1,0,2,16,1),pt(0,5,5,-3,0,8,10,1,0,3,14,2),pt(0,5,6,-3,0,9,12,1,0,3,16,2),pt(0,6,6,-3,0,10,14,1,0,4,18,3),pt(0,6,7,-4,0,11,15,1,0,4,20,3),pt(0,7,8,-4,0,12,17,2,0,5,22,4),pt(0,7,8,-4,0,13,19,2,0,5,24,4),pt(0,7,9,-4,0,14,21,2,0,5,26,4),pt(0,8,9,-5,0,15,22,2,0,6,28,5),pt(0,8,10,-5,0,16,24,2,0,6,30,5),pt(0,8,11,-5,0,17,26,2,0,6,32,5),pt(0,9,11,-5,0,18,28,2,0,7,34,6),pt(0,9,12,-6,0,19,29,2,0,7,36,6),pt(0,10,13,-6,0,20,31,3,0,8,38,7),pt(0,10,13,-6,0,21,33,3,0,8,40,7),pt(0,10,14,-6,0,22,35,3,0,8,42,7),pt(0,11,14,-7,0,23,36,3,0,9,44,8),pt(0,11,15,-7,0,24,38,3,0,9,46,8)],tF=eF,nF=["duration","easing","delay"],rF={easeInOut:"cubic-bezier(0.4, 0, 0.2, 1)",easeOut:"cubic-bezier(0.0, 0, 0.2, 1)",easeIn:"cubic-bezier(0.4, 0, 1, 1)",sharp:"cubic-bezier(0.4, 0, 0.6, 1)"},oF={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function fx(e){return`${Math.round(e)}ms`}function iF(e){if(!e)return 0;const t=e/36;return Math.round((4+15*fr(t,.25)+t/5)*10)}function aF(e){const t=V({},rF,e.easing),n=V({},oF,e.duration);return V({getAutoHeightDuration:iF,create:(r=["all"],o={})=>{const{duration:i=n.standard,easing:a=t.easeInOut,delay:s=0}=o,c=ke(o,nF);if(process.env.NODE_ENV!=="production"){const l=d=>typeof d=="string",u=d=>!isNaN(parseFloat(d));!l(r)&&!Array.isArray(r)&&console.error('MUI: Argument "props" must be a string or Array.'),!u(i)&&!l(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),l(a)||console.error('MUI: Argument "easing" must be a string.'),!u(s)&&!l(s)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof o!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
82
+ `)),Object.keys(c).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(c).join(",")}].`)}return(Array.isArray(r)?r:[r]).map(l=>`${l} ${typeof i=="string"?i:fx(i)} ${a} ${typeof s=="string"?s:fx(s)}`).join(",")}},e,{easing:t,duration:n})}const sF={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},lF=sF,cF=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function Bo(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,a=ke(e,cF);if(e.vars)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name.":fi(18));const s=V3(r),c=Jb(e);let l=In(c,{mixins:E3(c.breakpoints,n),palette:s,shadows:tF.slice(),typography:J3(s,i),transitions:aF(o),zIndex:V({},lF)});if(l=In(l,a),l=t.reduce((u,d)=>In(u,d),l),process.env.NODE_ENV!=="production"){const u=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(p,f)=>{let m;for(m in p){const b=p[m];if(u.indexOf(m)!==-1&&Object.keys(b).length>0){if(process.env.NODE_ENV!=="production"){const v=rt("",m);console.error([`MUI: The \`${f}\` component increases the CSS specificity of the \`${m}\` internal state.`,"You can not override it like this: ",JSON.stringify(p,null,2),"",`Instead, you need to use the '&.${v}' syntax:`,JSON.stringify({root:{[`&.${v}`]:b}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
83
+ `))}p[m]={}}}};Object.keys(l.components).forEach(p=>{const f=l.components[p].styleOverrides;f&&p.indexOf("Mui")===0&&d(f,p)})}return l.unstable_sxConfig=V({},el,a==null?void 0:a.unstable_sxConfig),l.unstable_sx=function(u){return Qb({sx:u,theme:this})},l}const uF=Bo(),td=uF,ha="$$material";function TO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const dF=e=>TO(e)&&e!=="classes",ar=dF,pF=T3({themeId:ha,defaultTheme:td,rootShouldForwardProp:ar}),Ce=pF;function hF(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:sO(t.components[n].defaultProps,r)}function fF(e){return Object.keys(e).length===0}function EO(e=null){const t=P.useContext(g.ThemeContext);return!t||fF(t)?e:t}const gF=Jb();function Zb(e=gF){return EO(e)}function mF({props:e,name:t,defaultTheme:n,themeId:r}){let o=Zb(n);return r&&(o=o[r]||o),hF({theme:o,name:t,props:e})}function ut({props:e,name:t}){return mF({props:e,name:t,defaultTheme:td,themeId:ha})}const OO="base";function vF(e){return`${OO}--${e}`}function bF(e,t){return`${OO}-${e}-${t}`}function DO(e,t){const n=lO[t];return n?vF(n):bF(e,t)}function yF(e,t){const n={};return t.forEach(r=>{n[r]=DO(e,r)}),n}const wF=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function xF(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function _F(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function CF(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||_F(e))}function kF(e){const t=[],n=[];return Array.from(e.querySelectorAll(wF)).forEach((r,o)=>{const i=xF(r);i===-1||!CF(r)||(i===0?t.push(r):n.push({documentOrder:o,tabIndex:i,node:r}))}),n.sort((r,o)=>r.tabIndex===o.tabIndex?r.documentOrder-o.documentOrder:r.tabIndex-o.tabIndex).map(r=>r.node).concat(t)}function SF(){return!0}function Oc(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:o=!1,getTabbable:i=kF,isEnabled:a=SF,open:s}=e,c=P.useRef(!1),l=P.useRef(null),u=P.useRef(null),d=P.useRef(null),p=P.useRef(null),f=P.useRef(!1),m=P.useRef(null),b=$t(t.ref,m),v=P.useRef(null);P.useEffect(()=>{!s||!m.current||(f.current=!n)},[n,s]),P.useEffect(()=>{if(!s||!m.current)return;const T=bn(m.current);return m.current.contains(T.activeElement)||(m.current.hasAttribute("tabIndex")||(process.env.NODE_ENV!=="production"&&console.error(["MUI: The modal content node does not accept focus.",'For the benefit of assistive technologies, the tabIndex of the node is being set to "-1".'].join(`
84
+ `)),m.current.setAttribute("tabIndex","-1")),f.current&&m.current.focus()),()=>{o||(d.current&&d.current.focus&&(c.current=!0,d.current.focus()),d.current=null)}},[s]),P.useEffect(()=>{if(!s||!m.current)return;const T=bn(m.current),y=x=>{v.current=x,!(r||!a()||x.key!=="Tab")&&T.activeElement===m.current&&x.shiftKey&&(c.current=!0,u.current&&u.current.focus())},k=()=>{const x=m.current;if(x===null)return;if(!T.hasFocus()||!a()||c.current){c.current=!1;return}if(x.contains(T.activeElement)||r&&T.activeElement!==l.current&&T.activeElement!==u.current)return;if(T.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!f.current)return;let C=[];if((T.activeElement===l.current||T.activeElement===u.current)&&(C=i(m.current)),C.length>0){var O,D;const R=!!((O=v.current)!=null&&O.shiftKey&&((D=v.current)==null?void 0:D.key)==="Tab"),M=C[0],F=C[C.length-1];typeof M!="string"&&typeof F!="string"&&(R?F.focus():M.focus())}else x.focus()};T.addEventListener("focusin",k),T.addEventListener("keydown",y,!0);const S=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&k()},50);return()=>{clearInterval(S),T.removeEventListener("focusin",k),T.removeEventListener("keydown",y,!0)}},[n,r,o,a,s,i]);const w=T=>{d.current===null&&(d.current=T.relatedTarget),f.current=!0,p.current=T.target;const y=t.props.onFocus;y&&y(T)},_=T=>{d.current===null&&(d.current=T.relatedTarget),f.current=!0};return E.jsxs(P.Fragment,{children:[E.jsx("div",{tabIndex:s?0:-1,onFocus:_,ref:l,"data-testid":"sentinelStart"}),P.cloneElement(t,{ref:b,onFocus:w}),E.jsx("div",{tabIndex:s?0:-1,onFocus:_,ref:u,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(Oc.propTypes={children:Qs,disableAutoFocus:h.bool,disableEnforceFocus:h.bool,disableRestoreFocus:h.bool,getTabbable:h.func,isEnabled:h.func,open:h.bool.isRequired});process.env.NODE_ENV!=="production"&&(Oc.propTypes=zu(Oc.propTypes));function TF(e){return typeof e=="function"?e():e}const Ds=P.forwardRef(function(e,t){const{children:n,container:r,disablePortal:o=!1}=e,[i,a]=P.useState(null),s=$t(P.isValidElement(n)?n.ref:null,t);if(Hr(()=>{o||a(TF(r)||document.body)},[r,o]),Hr(()=>{if(i&&!o)return Xm(t,i),()=>{Xm(t,null)}},[t,i,o]),o){if(P.isValidElement(n)){const c={ref:s};return P.cloneElement(n,c)}return E.jsx(P.Fragment,{children:n})}return E.jsx(P.Fragment,{children:i&&MT.createPortal(n,i)})});process.env.NODE_ENV!=="production"&&(Ds.propTypes={children:h.node,container:h.oneOfType([eo,h.func]),disablePortal:h.bool});process.env.NODE_ENV!=="production"&&(Ds.propTypes=zu(Ds.propTypes));function EF(e){const t=bn(e);return t.body===e?gi(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function fs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function gx(e){return parseInt(gi(e).getComputedStyle(e).paddingRight,10)||0}function OF(e){const t=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,n=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return t||n}function mx(e,t,n,r,o){const i=[t,n,...r];[].forEach.call(e.children,a=>{const s=i.indexOf(a)===-1,c=!OF(a);s&&c&&fs(a,o)})}function xf(e,t){let n=-1;return e.some((r,o)=>t(r)?(n=o,!0):!1),n}function DF(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(EF(r)){const i=aO(bn(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${gx(r)+i}px`;const a=bn(r).querySelectorAll(".mui-fixed");[].forEach.call(a,s=>{n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=`${gx(s)+i}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=bn(r).body;else{const i=r.parentElement,a=gi(r);o=(i==null?void 0:i.nodeName)==="HTML"&&a.getComputedStyle(i).overflowY==="scroll"?i:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:i,property:a})=>{o?i.style.setProperty(a,o):i.style.removeProperty(a)})}}function RF(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class AF{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&fs(t.modalRef,!1);const o=RF(n);mx(n,t.mount,t.modalRef,o,!0);const i=xf(this.containers,a=>a.container===n);return i!==-1?(this.containers[i].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:o}),r)}mount(t,n){const r=xf(this.containers,i=>i.modals.indexOf(t)!==-1),o=this.containers[r];o.restore||(o.restore=DF(o,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const o=xf(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[o];if(i.modals.splice(i.modals.indexOf(t),1),this.modals.splice(r,1),i.modals.length===0)i.restore&&i.restore(),t.modalRef&&fs(t.modalRef,n),mx(i.container,t.mount,t.modalRef,i.hiddenSiblings,!1),this.containers.splice(o,1);else{const a=i.modals[i.modals.length-1];a.modalRef&&fs(a.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function MF(e){return typeof e=="function"?e():e}function NF(e){return e?e.props.hasOwnProperty("in"):!1}const PF=new AF;function IF(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:o=PF,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:s,children:c,onClose:l,open:u,rootRef:d}=e,p=P.useRef({}),f=P.useRef(null),m=P.useRef(null),b=$t(m,d),[v,w]=P.useState(!u),_=NF(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const y=()=>bn(f.current),k=()=>(p.current.modalRef=m.current,p.current.mount=f.current,p.current),S=()=>{o.mount(k(),{disableScrollLock:r}),m.current&&(m.current.scrollTop=0)},x=ko(()=>{const F=MF(t)||y().body;o.add(k(),F),m.current&&S()}),C=P.useCallback(()=>o.isTopModal(k()),[o]),O=ko(F=>{f.current=F,F&&(u&&C()?S():m.current&&fs(m.current,T))}),D=P.useCallback(()=>{o.remove(k(),T)},[T,o]);P.useEffect(()=>()=>{D()},[D]),P.useEffect(()=>{u?x():(!_||!i)&&D()},[u,D,_,i,x]);const R=F=>N=>{var I;(I=F.onKeyDown)==null||I.call(F,N),!(N.key!=="Escape"||N.which===229||!C())&&(n||(N.stopPropagation(),l&&l(N,"escapeKeyDown")))},M=F=>N=>{var I;(I=F.onClick)==null||I.call(F,N),N.target===N.currentTarget&&l&&l(N,"backdropClick")};return{getRootProps:(F={})=>{const N=KE(e);delete N.onTransitionEnter,delete N.onTransitionExited;const I=V({},N,F);return V({role:"presentation"},I,{onKeyDown:R(I),ref:b})},getBackdropProps:(F={})=>{const N=F;return V({"aria-hidden":!0},N,{onClick:M(N),open:u})},getTransitionProps:()=>{const F=()=>{w(!1),a&&a()},N=()=>{w(!0),s&&s(),i&&D()};return{onEnter:V1(F,c==null?void 0:c.props.onEnter),onExited:V1(N,c==null?void 0:c.props.onExited)}},rootRef:b,portalRef:O,isTopModal:C,exited:v,hasTransition:_}}var En="top",Xn="bottom",er="right",On="left",Kb="auto",tl=[En,Xn,er,On],fa="start",Rs="end",jF="clippingParents",RO="viewport",Ya="popper",LF="reference",vx=tl.reduce(function(e,t){return e.concat([t+"-"+fa,t+"-"+Rs])},[]),AO=[].concat(tl,[Kb]).reduce(function(e,t){return e.concat([t,t+"-"+fa,t+"-"+Rs])},[]),FF="beforeRead",BF="read",HF="afterRead",$F="beforeMain",zF="main",WF="afterMain",UF="beforeWrite",YF="write",qF="afterWrite",VF=[FF,BF,HF,$F,zF,WF,UF,YF,qF];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Ln(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function vi(e){var t=Ln(e).Element;return e instanceof t||e instanceof Element}function Kn(e){var t=Ln(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Xb(e){if(typeof ShadowRoot=="undefined")return!1;var t=Ln(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function GF(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},o=t.attributes[n]||{},i=t.elements[n];!Kn(i)||!$r(i)||(Object.assign(i.style,r),Object.keys(o).forEach(function(a){var s=o[a];s===!1?i.removeAttribute(a):i.setAttribute(a,s===!0?"":s)}))})}function QF(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(r){var o=t.elements[r],i=t.attributes[r]||{},a=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),s=a.reduce(function(c,l){return c[l]="",c},{});!Kn(o)||!$r(o)||(Object.assign(o.style,s),Object.keys(i).forEach(function(c){o.removeAttribute(c)}))})}}const JF={name:"applyStyles",enabled:!0,phase:"write",fn:GF,effect:QF,requires:["computeStyles"]};function Pr(e){return e.split("-")[0]}var ui=Math.max,Dc=Math.min,ga=Math.round;function sv(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function MO(){return!/^((?!chrome|android).)*safari/i.test(sv())}function ma(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&Kn(e)&&(o=e.offsetWidth>0&&ga(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&ga(r.height)/e.offsetHeight||1);var a=vi(e)?Ln(e):window,s=a.visualViewport,c=!MO()&&n,l=(r.left+(c&&s?s.offsetLeft:0))/o,u=(r.top+(c&&s?s.offsetTop:0))/i,d=r.width/o,p=r.height/i;return{width:d,height:p,top:u,right:l+d,bottom:u+p,left:l,x:l,y:u}}function ey(e){var t=ma(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 NO(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Xb(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function no(e){return Ln(e).getComputedStyle(e)}function ZF(e){return["table","td","th"].indexOf($r(e))>=0}function Ho(e){return((vi(e)?e.ownerDocument:e.document)||window.document).documentElement}function nd(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Xb(e)?e.host:null)||Ho(e)}function bx(e){return!Kn(e)||no(e).position==="fixed"?null:e.offsetParent}function KF(e){var t=/firefox/i.test(sv()),n=/Trident/i.test(sv());if(n&&Kn(e)){var r=no(e);if(r.position==="fixed")return null}var o=nd(e);for(Xb(o)&&(o=o.host);Kn(o)&&["html","body"].indexOf($r(o))<0;){var i=no(o);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||t&&i.willChange==="filter"||t&&i.filter&&i.filter!=="none")return o;o=o.parentNode}return null}function nl(e){for(var t=Ln(e),n=bx(e);n&&ZF(n)&&no(n).position==="static";)n=bx(n);return n&&($r(n)==="html"||$r(n)==="body"&&no(n).position==="static")?t:n||KF(e)||t}function ty(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function gs(e,t,n){return ui(e,Dc(t,n))}function XF(e,t,n){var r=gs(e,t,n);return r>n?n:r}function PO(){return{top:0,right:0,bottom:0,left:0}}function IO(e){return Object.assign({},PO(),e)}function jO(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var e6=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,IO(typeof e!="number"?e:jO(e,tl))};function t6(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,s=Pr(n.placement),c=ty(s),l=[On,er].indexOf(s)>=0,u=l?"height":"width";if(!(!i||!a)){var d=e6(o.padding,n),p=ey(i),f=c==="y"?En:On,m=c==="y"?Xn:er,b=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],v=a[c]-n.rects.reference[c],w=nl(i),_=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,T=b/2-v/2,y=d[f],k=_-p[u]-d[m],S=_/2-p[u]/2+T,x=gs(y,S,k),C=c;n.modifiersData[r]=(t={},t[C]=x,t.centerOffset=x-S,t)}}function n6(e){var t=e.state,n=e.options,r=n.element,o=r===void 0?"[data-popper-arrow]":r;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||NO(t.elements.popper,o)&&(t.elements.arrow=o))}const r6={name:"arrow",enabled:!0,phase:"main",fn:t6,effect:n6,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function va(e){return e.split("-")[1]}var o6={top:"auto",right:"auto",bottom:"auto",left:"auto"};function i6(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:ga(n*o)/o||0,y:ga(r*o)/o||0}}function yx(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,p=a.x,f=p===void 0?0:p,m=a.y,b=m===void 0?0:m,v=typeof u=="function"?u({x:f,y:b}):{x:f,y:b};f=v.x,b=v.y;var w=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),T=On,y=En,k=window;if(l){var S=nl(n),x="clientHeight",C="clientWidth";if(S===Ln(n)&&(S=Ho(n),no(S).position!=="static"&&s==="absolute"&&(x="scrollHeight",C="scrollWidth")),S=S,o===En||(o===On||o===er)&&i===Rs){y=Xn;var O=d&&S===k&&k.visualViewport?k.visualViewport.height:S[x];b-=O-r.height,b*=c?1:-1}if(o===On||(o===En||o===Xn)&&i===Rs){T=er;var D=d&&S===k&&k.visualViewport?k.visualViewport.width:S[C];f-=D-r.width,f*=c?1:-1}}var R=Object.assign({position:s},l&&o6),M=u===!0?i6({x:f,y:b},Ln(n)):{x:f,y:b};if(f=M.x,b=M.y,c){var F;return Object.assign({},R,(F={},F[y]=_?"0":"",F[T]=w?"0":"",F.transform=(k.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",F))}return Object.assign({},R,(t={},t[y]=_?b+"px":"",t[T]=w?f+"px":"",t.transform="",t))}function a6(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=r===void 0?!0:r,i=n.adaptive,a=i===void 0?!0:i,s=n.roundOffsets,c=s===void 0?!0:s,l={placement:Pr(t.placement),variation:va(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,yx(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,yx(Object.assign({},l,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const s6={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:a6,data:{}};var Tl={passive:!0};function l6(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=o===void 0?!0:o,a=r.resize,s=a===void 0?!0:a,c=Ln(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&l.forEach(function(u){u.addEventListener("scroll",n.update,Tl)}),s&&c.addEventListener("resize",n.update,Tl),function(){i&&l.forEach(function(u){u.removeEventListener("scroll",n.update,Tl)}),s&&c.removeEventListener("resize",n.update,Tl)}}const c6={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:l6,data:{}};var u6={left:"right",right:"left",bottom:"top",top:"bottom"};function Xl(e){return e.replace(/left|right|bottom|top/g,function(t){return u6[t]})}var d6={start:"end",end:"start"};function wx(e){return e.replace(/start|end/g,function(t){return d6[t]})}function ny(e){var t=Ln(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function ry(e){return ma(Ho(e)).left+ny(e).scrollLeft}function p6(e,t){var n=Ln(e),r=Ho(e),o=n.visualViewport,i=r.clientWidth,a=r.clientHeight,s=0,c=0;if(o){i=o.width,a=o.height;var l=MO();(l||!l&&t==="fixed")&&(s=o.offsetLeft,c=o.offsetTop)}return{width:i,height:a,x:s+ry(e),y:c}}function h6(e){var t,n=Ho(e),r=ny(e),o=(t=e.ownerDocument)==null?void 0:t.body,i=ui(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ui(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+ry(e),c=-r.scrollTop;return no(o||n).direction==="rtl"&&(s+=ui(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}function oy(e){var t=no(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function LO(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:Kn(e)&&oy(e)?e:LO(nd(e))}function ms(e,t){var n;t===void 0&&(t=[]);var r=LO(e),o=r===((n=e.ownerDocument)==null?void 0:n.body),i=Ln(r),a=o?[i].concat(i.visualViewport||[],oy(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(ms(nd(a)))}function lv(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function f6(e,t){var n=ma(e,!1,t==="fixed");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}function xx(e,t,n){return t===RO?lv(p6(e,n)):vi(t)?f6(t,n):lv(h6(Ho(e)))}function g6(e){var t=ms(nd(e)),n=["absolute","fixed"].indexOf(no(e).position)>=0,r=n&&Kn(e)?nl(e):e;return vi(r)?t.filter(function(o){return vi(o)&&NO(o,r)&&$r(o)!=="body"}):[]}function m6(e,t,n,r){var o=t==="clippingParents"?g6(e):[].concat(t),i=[].concat(o,[n]),a=i[0],s=i.reduce(function(c,l){var u=xx(e,l,r);return c.top=ui(u.top,c.top),c.right=Dc(u.right,c.right),c.bottom=Dc(u.bottom,c.bottom),c.left=ui(u.left,c.left),c},xx(e,a,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function FO(e){var t=e.reference,n=e.element,r=e.placement,o=r?Pr(r):null,i=r?va(r):null,a=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(o){case En:c={x:a,y:t.y-n.height};break;case Xn:c={x:a,y:t.y+t.height};break;case er:c={x:t.x+t.width,y:s};break;case On:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=o?ty(o):null;if(l!=null){var u=l==="y"?"height":"width";switch(i){case fa:c[l]=c[l]-(t[u]/2-n[u]/2);break;case Rs:c[l]=c[l]+(t[u]/2-n[u]/2);break}}return c}function As(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=r===void 0?e.placement:r,i=n.strategy,a=i===void 0?e.strategy:i,s=n.boundary,c=s===void 0?jF:s,l=n.rootBoundary,u=l===void 0?RO:l,d=n.elementContext,p=d===void 0?Ya:d,f=n.altBoundary,m=f===void 0?!1:f,b=n.padding,v=b===void 0?0:b,w=IO(typeof v!="number"?v:jO(v,tl)),_=p===Ya?LF:Ya,T=e.rects.popper,y=e.elements[m?_:p],k=m6(vi(y)?y:y.contextElement||Ho(e.elements.popper),c,u,a),S=ma(e.elements.reference),x=FO({reference:S,element:T,strategy:"absolute",placement:o}),C=lv(Object.assign({},T,x)),O=p===Ya?C:S,D={top:k.top-O.top+w.top,bottom:O.bottom-k.bottom+w.bottom,left:k.left-O.left+w.left,right:O.right-k.right+w.right},R=e.modifiersData.offset;if(p===Ya&&R){var M=R[o];Object.keys(D).forEach(function(F){var N=[er,Xn].indexOf(F)>=0?1:-1,I=[En,Xn].indexOf(F)>=0?"y":"x";D[F]+=M[I]*N})}return D}function v6(e,t){t===void 0&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?AO:c,u=va(r),d=u?s?vx:vx.filter(function(m){return va(m)===u}):tl,p=d.filter(function(m){return l.indexOf(m)>=0});p.length===0&&(p=d);var f=p.reduce(function(m,b){return m[b]=As(e,{placement:b,boundary:o,rootBoundary:i,padding:a})[Pr(b)],m},{});return Object.keys(f).sort(function(m,b){return f[m]-f[b]})}function b6(e){if(Pr(e)===Kb)return[];var t=Xl(e);return[wx(e),t,wx(t)]}function y6(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!0:a,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,p=n.altBoundary,f=n.flipVariations,m=f===void 0?!0:f,b=n.allowedAutoPlacements,v=t.options.placement,w=Pr(v),_=w===v,T=c||(_||!m?[Xl(v)]:b6(v)),y=[v].concat(T).reduce(function(re,ie){return re.concat(Pr(ie)===Kb?v6(t,{placement:ie,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:b}):ie)},[]),k=t.rects.reference,S=t.rects.popper,x=new Map,C=!0,O=y[0],D=0;D<y.length;D++){var R=y[D],M=Pr(R),F=va(R)===fa,N=[En,Xn].indexOf(M)>=0,I=N?"width":"height",j=As(t,{placement:R,boundary:u,rootBoundary:d,altBoundary:p,padding:l}),$=N?F?er:On:F?Xn:En;k[I]>S[I]&&($=Xl($));var Y=Xl($),U=[];if(i&&U.push(j[M]<=0),s&&U.push(j[$]<=0,j[Y]<=0),U.every(function(re){return re})){O=R,C=!1;break}x.set(R,U)}if(C)for(var G=m?3:1,K=function(re){var ie=y.find(function(ce){var se=x.get(ce);if(se)return se.slice(0,re).every(function(J){return J})});if(ie)return O=ie,"break"},oe=G;oe>0;oe--){var ne=K(oe);if(ne==="break")break}t.placement!==O&&(t.modifiersData[r]._skip=!0,t.placement=O,t.reset=!0)}}const w6={name:"flip",enabled:!0,phase:"main",fn:y6,requiresIfExists:["offset"],data:{_skip:!1}};function _x(e,t,n){return n===void 0&&(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 Cx(e){return[En,er,Xn,On].some(function(t){return e[t]>=0})}function x6(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=As(t,{elementContext:"reference"}),s=As(t,{altBoundary:!0}),c=_x(a,r),l=_x(s,o,i),u=Cx(c),d=Cx(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}const _6={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:x6};function C6(e,t,n){var r=Pr(e),o=[On,En].indexOf(r)>=0?-1:1,i=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[On,er].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}function k6(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=o===void 0?[0,0]:o,a=AO.reduce(function(u,d){return u[d]=C6(d,t.rects,i),u},{}),s=a[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=a}const S6={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:k6};function T6(e){var t=e.state,n=e.name;t.modifiersData[n]=FO({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const E6={name:"popperOffsets",enabled:!0,phase:"read",fn:T6,data:{}};function O6(e){return e==="x"?"y":"x"}function D6(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=o===void 0?!0:o,a=n.altAxis,s=a===void 0?!1:a,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,p=n.tether,f=p===void 0?!0:p,m=n.tetherOffset,b=m===void 0?0:m,v=As(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),w=Pr(t.placement),_=va(t.placement),T=!_,y=ty(w),k=O6(y),S=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,O=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,D=typeof O=="number"?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(S){if(i){var F,N=y==="y"?En:On,I=y==="y"?Xn:er,j=y==="y"?"height":"width",$=S[y],Y=$+v[N],U=$-v[I],G=f?-C[j]/2:0,K=_===fa?x[j]:C[j],oe=_===fa?-C[j]:-x[j],ne=t.elements.arrow,re=f&&ne?ey(ne):{width:0,height:0},ie=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:PO(),ce=ie[N],se=ie[I],J=gs(0,x[j],re[j]),A=T?x[j]/2-G-J-ce-D.mainAxis:K-J-ce-D.mainAxis,L=T?-x[j]/2+G+J+se+D.mainAxis:oe+J+se+D.mainAxis,z=t.elements.arrow&&nl(t.elements.arrow),Q=z?y==="y"?z.clientTop||0:z.clientLeft||0:0,X=(F=R==null?void 0:R[y])!=null?F:0,Z=$+A-X-Q,ae=$+L-X,he=gs(f?Dc(Y,Z):Y,$,f?ui(U,ae):U);S[y]=he,M[y]=he-$}if(s){var le,_e=y==="x"?En:On,ue=y==="x"?Xn:er,pe=S[k],me=k==="y"?"height":"width",ye=pe+v[_e],we=pe-v[ue],Ie=[En,On].indexOf(w)!==-1,st=(le=R==null?void 0:R[k])!=null?le:0,Ve=Ie?ye:pe-x[me]-C[me]-st+D.altAxis,Me=Ie?pe+x[me]+C[me]-st-D.altAxis:we,be=f&&Ie?XF(Ve,pe,Me):gs(f?Ve:ye,pe,f?Me:we);S[k]=be,M[k]=be-pe}t.modifiersData[r]=M}}const R6={name:"preventOverflow",enabled:!0,phase:"main",fn:D6,requiresIfExists:["offset"]};function A6(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function M6(e){return e===Ln(e)||!Kn(e)?ny(e):A6(e)}function N6(e){var t=e.getBoundingClientRect(),n=ga(t.width)/e.offsetWidth||1,r=ga(t.height)/e.offsetHeight||1;return n!==1||r!==1}function P6(e,t,n){n===void 0&&(n=!1);var r=Kn(t),o=Kn(t)&&N6(t),i=Ho(t),a=ma(e,o,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&(($r(t)!=="body"||oy(i))&&(s=M6(t)),Kn(t)?(c=ma(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):i&&(c.x=ry(i))),{x:a.left+s.scrollLeft-c.x,y:a.top+s.scrollTop-c.y,width:a.width,height:a.height}}function I6(e){var t=new Map,n=new Set,r=[];e.forEach(function(i){t.set(i.name,i)});function o(i){n.add(i.name);var a=[].concat(i.requires||[],i.requiresIfExists||[]);a.forEach(function(s){if(!n.has(s)){var c=t.get(s);c&&o(c)}}),r.push(i)}return e.forEach(function(i){n.has(i.name)||o(i)}),r}function j6(e){var t=I6(e);return VF.reduce(function(n,r){return n.concat(t.filter(function(o){return o.phase===r}))},[])}function L6(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function F6(e){var t=e.reduce(function(n,r){var o=n[r.name];return n[r.name]=o?Object.assign({},o,r,{options:Object.assign({},o.options,r.options),data:Object.assign({},o.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var kx={placement:"bottom",modifiers:[],strategy:"absolute"};function Sx(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function B6(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,o=t.defaultOptions,i=o===void 0?kx:o;return function(a,s,c){c===void 0&&(c=i);var l={placement:"bottom",orderedModifiers:[],options:Object.assign({},kx,i),modifiersData:{},elements:{reference:a,popper:s},attributes:{},styles:{}},u=[],d=!1,p={state:l,setOptions:function(b){var v=typeof b=="function"?b(l.options):b;m(),l.options=Object.assign({},i,l.options,v),l.scrollParents={reference:vi(a)?ms(a):a.contextElement?ms(a.contextElement):[],popper:ms(s)};var w=j6(F6([].concat(r,l.options.modifiers)));return l.orderedModifiers=w.filter(function(_){return _.enabled}),f(),p.update()},forceUpdate:function(){if(!d){var b=l.elements,v=b.reference,w=b.popper;if(Sx(v,w)){l.rects={reference:P6(v,nl(w),l.options.strategy==="fixed"),popper:ey(w)},l.reset=!1,l.placement=l.options.placement,l.orderedModifiers.forEach(function(C){return l.modifiersData[C.name]=Object.assign({},C.data)});for(var _=0;_<l.orderedModifiers.length;_++){if(l.reset===!0){l.reset=!1,_=-1;continue}var T=l.orderedModifiers[_],y=T.fn,k=T.options,S=k===void 0?{}:k,x=T.name;typeof y=="function"&&(l=y({state:l,options:S,name:x,instance:p})||l)}}}},update:L6(function(){return new Promise(function(b){p.forceUpdate(),b(l)})}),destroy:function(){m(),d=!0}};if(!Sx(a,s))return p;p.setOptions(c).then(function(b){!d&&c.onFirstUpdate&&c.onFirstUpdate(b)});function f(){l.orderedModifiers.forEach(function(b){var v=b.name,w=b.options,_=w===void 0?{}:w,T=b.effect;if(typeof T=="function"){var y=T({state:l,name:v,instance:p,options:_}),k=function(){};u.push(y||k)}})}function m(){u.forEach(function(b){return b()}),u=[]}return p}}var H6=[c6,E6,s6,JF,S6,w6,R6,r6,_6],$6=B6({defaultModifiers:H6});const BO="Popper";function z6(e){return DO(BO,e)}yF(BO,["root"]);const W6=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],U6=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Y6(e,t){if(t==="ltr")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}}function Rc(e){return typeof e=="function"?e():e}function rd(e){return e.nodeType!==void 0}function q6(e){return!rd(e)}const V6=()=>at({root:["root"]},Qj(z6)),G6={},Q6=P.forwardRef(function(e,t){var n;const{anchorEl:r,children:o,direction:i,disablePortal:a,modifiers:s,open:c,placement:l,popperOptions:u,popperRef:d,slotProps:p={},slots:f={},TransitionProps:m}=e,b=ke(e,W6),v=P.useRef(null),w=$t(v,t),_=P.useRef(null),T=$t(_,d),y=P.useRef(T);Hr(()=>{y.current=T},[T]),P.useImperativeHandle(d,()=>_.current,[]);const k=Y6(l,i),[S,x]=P.useState(k),[C,O]=P.useState(Rc(r));P.useEffect(()=>{_.current&&_.current.forceUpdate()}),P.useEffect(()=>{r&&O(Rc(r))},[r]),Hr(()=>{if(!C||!c)return;const N=$=>{x($.placement)};if(process.env.NODE_ENV!=="production"&&C&&rd(C)&&C.nodeType===1){const $=C.getBoundingClientRect();process.env.NODE_ENV!=="test"&&$.top===0&&$.left===0&&$.right===0&&$.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
85
+ `))}let I=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:$})=>{N($)}}];s!=null&&(I=I.concat(s)),u&&u.modifiers!=null&&(I=I.concat(u.modifiers));const j=$6(C,v.current,V({placement:k},u,{modifiers:I}));return y.current(j),()=>{j.destroy(),y.current(null)}},[C,a,s,c,u,k]);const D={placement:S};m!==null&&(D.TransitionProps=m);const R=V6(),M=(n=f.root)!=null?n:"div",F=mi({elementType:M,externalSlotProps:p.root,externalForwardedProps:b,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:R.root});return E.jsx(M,V({},F,{children:typeof o=="function"?o(D):o}))}),HO=P.forwardRef(function(e,t){const{anchorEl:n,children:r,container:o,direction:i="ltr",disablePortal:a=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u="bottom",popperOptions:d=G6,popperRef:p,style:f,transition:m=!1,slotProps:b={},slots:v={}}=e,w=ke(e,U6),[_,T]=P.useState(!0),y=()=>{T(!1)},k=()=>{T(!0)};if(!s&&!l&&(!m||_))return null;let S;if(o)S=o;else if(n){const O=Rc(n);S=O&&rd(O)?bn(O).body:bn(null).body}const x=!l&&s&&(!m||_)?"none":void 0,C=m?{in:l,onEnter:y,onExited:k}:void 0;return E.jsx(Ds,{disablePortal:a,container:S,children:E.jsx(Q6,V({anchorEl:n,direction:i,disablePortal:a,modifiers:c,ref:t,open:m?!_:l,placement:u,popperOptions:d,popperRef:p,slotProps:b,slots:v},w,{style:V({position:"fixed",top:0,left:0,display:x},f),TransitionProps:C,children:r}))})});process.env.NODE_ENV!=="production"&&(HO.propTypes={anchorEl:Lo(h.oneOfType([eo,h.object,h.func]),e=>{if(e.open){const t=Rc(e.anchorEl);if(t&&rd(t)&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
86
+ `))}else if(!t||typeof t.getBoundingClientRect!="function"||q6(t)&&t.contextElement!=null&&t.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
87
+ `))}return null}),children:h.oneOfType([h.node,h.func]),container:h.oneOfType([eo,h.func]),direction:h.oneOf(["ltr","rtl"]),disablePortal:h.bool,keepMounted:h.bool,modifiers:h.arrayOf(h.shape({data:h.object,effect:h.func,enabled:h.bool,fn:h.func,name:h.any,options:h.object,phase:h.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:h.arrayOf(h.string),requiresIfExists:h.arrayOf(h.string)})),open:h.bool.isRequired,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:h.shape({modifiers:h.array,onFirstUpdate:h.func,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:h.oneOf(["absolute","fixed"])}),popperRef:or,slotProps:h.shape({root:h.oneOfType([h.func,h.object])}),slots:h.shape({root:h.elementType}),transition:h.bool});const J6=["onChange","maxRows","minRows","style","value"];function El(e){return parseInt(e,10)||0}const Z6={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function K6(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const $O=P.forwardRef(function(e,t){const{onChange:n,maxRows:r,minRows:o=1,style:i,value:a}=e,s=ke(e,J6),{current:c}=P.useRef(a!=null),l=P.useRef(null),u=$t(t,l),d=P.useRef(null),p=P.useCallback(()=>{const b=l.current,v=gi(b).getComputedStyle(b);if(v.width==="0px")return{outerHeightStyle:0,overflowing:!1};const w=d.current;w.style.width=v.width,w.value=b.value||e.placeholder||"x",w.value.slice(-1)===`
88
+ `&&(w.value+=" ");const _=v.boxSizing,T=El(v.paddingBottom)+El(v.paddingTop),y=El(v.borderBottomWidth)+El(v.borderTopWidth),k=w.scrollHeight;w.value="x";const S=w.scrollHeight;let x=k;o&&(x=Math.max(Number(o)*S,x)),r&&(x=Math.min(Number(r)*S,x)),x=Math.max(x,S);const C=x+(_==="border-box"?T+y:0),O=Math.abs(x-k)<=1;return{outerHeightStyle:C,overflowing:O}},[r,o,e.placeholder]),f=P.useCallback(()=>{const b=p();if(K6(b))return;const v=l.current;v.style.height=`${b.outerHeightStyle}px`,v.style.overflow=b.overflowing?"hidden":""},[p]);Hr(()=>{const b=()=>{f()};let v;const w=()=>{cancelAnimationFrame(v),v=requestAnimationFrame(()=>{b()})},_=oO(b),T=l.current,y=gi(T);y.addEventListener("resize",_);let k;return typeof ResizeObserver!="undefined"&&(k=new ResizeObserver(process.env.NODE_ENV==="test"?w:b),k.observe(T)),()=>{_.clear(),cancelAnimationFrame(v),y.removeEventListener("resize",_),k&&k.disconnect()}},[p,f]),Hr(()=>{f()});const m=b=>{c||f(),n&&n(b)};return E.jsxs(P.Fragment,{children:[E.jsx("textarea",V({value:a,onChange:m,ref:u,rows:o,style:i},s)),E.jsx("textarea",{"aria-hidden":!0,className:e.className,readOnly:!0,ref:d,tabIndex:-1,style:V({},Z6.shadow,i,{paddingTop:0,paddingBottom:0})})]})});process.env.NODE_ENV!=="production"&&($O.propTypes={className:h.string,maxRows:h.oneOfType([h.number,h.string]),minRows:h.oneOfType([h.number,h.string]),onChange:h.func,placeholder:h.string,style:h.object,value:h.oneOfType([h.arrayOf(h.string),h.number,h.string])});function iy({props:e,states:t,muiFormControl:n}){return t.reduce((r,o)=>(r[o]=e[o],n&&typeof e[o]=="undefined"&&(r[o]=n[o]),r),{})}const zO=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(zO.displayName="FormControlContext");const WO=zO;function od(){return P.useContext(WO)}function UO({styles:e,themeId:t,defaultTheme:n={}}){const r=Zb(n),o=typeof e=="function"?e(t&&r[t]||r):e;return E.jsx(qb,{styles:o})}process.env.NODE_ENV!=="production"&&(UO.propTypes={defaultTheme:h.object,styles:h.oneOfType([h.array,h.func,h.number,h.object,h.string,h.bool]),themeId:h.string});const YO=P.createContext(null);process.env.NODE_ENV!=="production"&&(YO.displayName="ThemeContext");const qO=YO;function VO(){const e=P.useContext(qO);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e}const X6=typeof Symbol=="function"&&Symbol.for,eB=X6?Symbol.for("mui.nested"):"__THEME_NESTED__";function tB(e,t){if(typeof t=="function"){const n=t(e);return process.env.NODE_ENV!=="production"&&(n||console.error(["MUI: You should return an object from your theme function, i.e.","<ThemeProvider theme={() => ({})} />"].join(`
89
+ `))),n}return V({},e,t)}function Ac(e){const{children:t,theme:n}=e,r=VO();process.env.NODE_ENV!=="production"&&r===null&&typeof n=="function"&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
90
+ `));const o=P.useMemo(()=>{const i=r===null?n:tB(r,n);return i!=null&&(i[eB]=r!==null),i},[n,r]);return E.jsx(qO.Provider,{value:o,children:t})}process.env.NODE_ENV!=="production"&&(Ac.propTypes={children:h.node,theme:h.oneOfType([h.object,h.func]).isRequired});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Ac.propTypes=zu(Ac.propTypes));const nB=["value"],GO=P.createContext();function QO(e){let{value:t}=e,n=ke(e,nB);return E.jsx(GO.Provider,V({value:t!=null?t:!0},n))}process.env.NODE_ENV!=="production"&&(QO.propTypes={children:h.node,value:h.bool});const id=()=>{const e=P.useContext(GO);return e!=null?e:!1},Tx={};function Ex(e,t,n,r=!1){return P.useMemo(()=>{const o=e&&t[e]||t;if(typeof n=="function"){const i=n(o),a=e?V({},t,{[e]:i}):i;return r?()=>a:a}return e?V({},t,{[e]:n}):V({},t,n)},[e,t,n,r])}function Mc(e){const{children:t,theme:n,themeId:r}=e,o=EO(Tx),i=VO()||Tx;process.env.NODE_ENV!=="production"&&(o===null&&typeof n=="function"||r&&o&&!o[r]&&typeof n=="function")&&console.error(["MUI: You are providing a theme function prop to the ThemeProvider component:","<ThemeProvider theme={outerTheme => outerTheme} />","","However, no outer theme is present.","Make sure a theme is already injected higher in the React tree or provide a theme object."].join(`
91
+ `));const a=Ex(r,o,n),s=Ex(r,i,n,!0),c=a.direction==="rtl";return E.jsx(Ac,{theme:s,children:E.jsx(g.ThemeContext.Provider,{value:a,children:E.jsx(QO,{value:c,children:t})})})}process.env.NODE_ENV!=="production"&&(Mc.propTypes={children:h.node,theme:h.oneOfType([h.func,h.object]).isRequired,themeId:h.string});process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="production"&&(Mc.propTypes=zu(Mc.propTypes));function tr(e){return tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tr(e)}function rB(e,t){if(tr(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(tr(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JO(e){var t=rB(e,"string");return tr(t)=="symbol"?t:t+""}function ZO(e){return E.jsx(UO,V({},e,{defaultTheme:td,themeId:ha}))}process.env.NODE_ENV!=="production"&&(ZO.propTypes={styles:h.oneOfType([h.array,h.func,h.number,h.object,h.string,h.bool])});function Ox(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function KO(e,t=!1){return e&&(Ox(e.value)&&e.value!==""||t&&Ox(e.defaultValue)&&e.defaultValue!=="")}function oB(e){return rt("MuiInputBase",e)}const iB=tt("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),ba=iB,aB=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],ad=(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,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${Ne(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},sd=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},sB=e=>{const{classes:t,color:n,disabled:r,error:o,endAdornment:i,focused:a,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:p,startAdornment:f,type:m}=e,b={root:["root",`color${Ne(n)}`,r&&"disabled",o&&"error",c&&"fullWidth",a&&"focused",s&&"formControl",p&&p!=="medium"&&`size${Ne(p)}`,u&&"multiline",f&&"adornedStart",i&&"adornedEnd",l&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",m==="search"&&"inputTypeSearch",u&&"inputMultiline",p==="small"&&"inputSizeSmall",l&&"inputHiddenLabel",f&&"inputAdornedStart",i&&"inputAdornedEnd",d&&"readOnly"]};return at(b,oB,t)},ld=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:ad})(({theme:e,ownerState:t})=>V({},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",[`&.${ba.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&V({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),cd=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sd})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=V({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),o={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return V({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ba.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&:-ms-input-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus:-ms-input-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${ba.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),lB=E.jsx(ZO,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),XO=P.forwardRef(function(e,t){var n;const r=ut({props:e,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:i,autoFocus:a,className:s,components:c={},componentsProps:l={},defaultValue:u,disabled:d,disableInjectingGlobalStyles:p,endAdornment:f,fullWidth:m=!1,id:b,inputComponent:v="input",inputProps:w={},inputRef:_,maxRows:T,minRows:y,multiline:k=!1,name:S,onBlur:x,onChange:C,onClick:O,onFocus:D,onKeyDown:R,onKeyUp:M,placeholder:F,readOnly:N,renderSuffix:I,rows:j,slotProps:$={},slots:Y={},startAdornment:U,type:G="text",value:K}=r,oe=ke(r,aB),ne=w.value!=null?w.value:K,{current:re}=P.useRef(ne!=null),ie=P.useRef(),ce=P.useCallback(Me=>{process.env.NODE_ENV!=="production"&&Me&&Me.nodeName!=="INPUT"&&!Me.focus&&console.error(["MUI: You have provided a `inputComponent` to the input component","that does not correctly handle the `ref` prop.","Make sure the `ref` prop is called with a HTMLInputElement."].join(`
92
+ `))},[]),se=$t(ie,_,w.ref,ce),[J,A]=P.useState(!1),L=od();process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(L)return L.registerEffect()},[L]);const z=iy({props:r,muiFormControl:L,states:["color","disabled","error","hiddenLabel","size","required","filled"]});z.focused=L?L.focused:J,P.useEffect(()=>{!L&&d&&J&&(A(!1),x&&x())},[L,d,J,x]);const Q=L&&L.onFilled,X=L&&L.onEmpty,Z=P.useCallback(Me=>{KO(Me)?Q&&Q():X&&X()},[Q,X]);Hr(()=>{re&&Z({value:ne})},[ne,Z,re]);const ae=Me=>{if(z.disabled){Me.stopPropagation();return}D&&D(Me),w.onFocus&&w.onFocus(Me),L&&L.onFocus?L.onFocus(Me):A(!0)},he=Me=>{x&&x(Me),w.onBlur&&w.onBlur(Me),L&&L.onBlur?L.onBlur(Me):A(!1)},le=(Me,...be)=>{if(!re){const je=Me.target||ie.current;if(je==null)throw new Error(process.env.NODE_ENV!=="production"?"MUI: Expected valid input target. Did you use a custom `inputComponent` and forget to forward refs? See https://mui.com/r/input-component-ref-interface for more info.":fi(1));Z({value:je.value})}w.onChange&&w.onChange(Me,...be),C&&C(Me,...be)};P.useEffect(()=>{Z(ie.current)},[]);const _e=Me=>{ie.current&&Me.currentTarget===Me.target&&ie.current.focus(),O&&O(Me)};let ue=v,pe=w;k&&ue==="input"&&(j?(process.env.NODE_ENV!=="production"&&(y||T)&&console.warn("MUI: You can not use the `minRows` or `maxRows` props when the input `rows` prop is set."),pe=V({type:void 0,minRows:j,maxRows:j},pe)):pe=V({type:void 0,maxRows:T,minRows:y},pe),ue=$O);const me=Me=>{Z(Me.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};P.useEffect(()=>{L&&L.setAdornedStart(!!U)},[L,U]);const ye=V({},r,{color:z.color||"primary",disabled:z.disabled,endAdornment:f,error:z.error,focused:z.focused,formControl:L,fullWidth:m,hiddenLabel:z.hiddenLabel,multiline:k,size:z.size,startAdornment:U,type:G}),we=sB(ye),Ie=Y.root||c.Root||ld,st=$.root||l.root||{},Ve=Y.input||c.Input||cd;return pe=V({},pe,(n=$.input)!=null?n:l.input),E.jsxs(P.Fragment,{children:[!p&&lB,E.jsxs(Ie,V({},st,!ks(Ie)&&{ownerState:V({},ye,st.ownerState)},{ref:t,onClick:_e},oe,{className:De(we.root,st.className,s,N&&"MuiInputBase-readOnly"),children:[U,E.jsx(WO.Provider,{value:null,children:E.jsx(Ve,V({ownerState:ye,"aria-invalid":z.error,"aria-describedby":o,autoComplete:i,autoFocus:a,defaultValue:u,disabled:z.disabled,id:b,onAnimationStart:me,name:S,placeholder:F,readOnly:N,required:z.required,rows:j,value:ne,onKeyDown:R,onKeyUp:M,type:G},pe,!ks(Ve)&&{as:ue,ownerState:V({},ye,pe.ownerState)},{ref:se,className:De(we.input,pe.className,N&&"MuiInputBase-readOnly"),onBlur:he,onChange:le,onFocus:ae}))}),f,I?I(V({},z,{startAdornment:U})):null]}))]})});process.env.NODE_ENV!=="production"&&(XO.propTypes={"aria-describedby":h.string,autoComplete:h.string,autoFocus:h.bool,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","error","info","success","warning"]),h.string]),components:h.shape({Input:h.elementType,Root:h.elementType}),componentsProps:h.shape({input:h.object,root:h.object}),defaultValue:h.any,disabled:h.bool,disableInjectingGlobalStyles:h.bool,endAdornment:h.node,error:h.bool,fullWidth:h.bool,id:h.string,inputComponent:$b,inputProps:h.object,inputRef:or,margin:h.oneOf(["dense","none"]),maxRows:h.oneOfType([h.number,h.string]),minRows:h.oneOfType([h.number,h.string]),multiline:h.bool,name:h.string,onBlur:h.func,onChange:h.func,onClick:h.func,onFocus:h.func,onInvalid:h.func,onKeyDown:h.func,onKeyUp:h.func,placeholder:h.string,readOnly:h.bool,renderSuffix:h.func,required:h.bool,rows:h.oneOfType([h.number,h.string]),size:h.oneOfType([h.oneOf(["medium","small"]),h.string]),slotProps:h.shape({input:h.object,root:h.object}),slots:h.shape({input:h.elementType,root:h.elementType}),startAdornment:h.node,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),type:h.string,value:h.any});const ud=XO,eD=P.createContext({});process.env.NODE_ENV!=="production"&&(eD.displayName="ListContext");const cv=eD;function Nc(e,t){return Nc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Nc(e,t)}function tD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nc(e,t)}const Dx={disabled:!1};var cB=process.env.NODE_ENV!=="production"?h.oneOfType([h.number,h.shape({enter:h.number,exit:h.number,appear:h.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&h.oneOfType([h.string,h.shape({enter:h.string,exit:h.string,active:h.string}),h.shape({enter:h.string,enterDone:h.string,enterActive:h.string,exit:h.string,exitDone:h.string,exitActive:h.string})]);const Pc=H.createContext(null);var ls="unmounted",ei="exited",ti="entering",Ji="entered",uv="exiting",oo=function(e){tD(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=o,s=a&&!a.isMounting?r.enter:r.appear,c;return i.appearStatus=null,r.in?s?(c=ei,i.appearStatus=ti):c=Ji:r.unmountOnExit||r.mountOnEnter?c=ls:c=ei,i.state={status:c},i.nextCallback=null,i}t.getDerivedStateFromProps=function(r,o){var i=r.in;return i&&o.status===ls?{status:ei}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(r){var o=null;if(r!==this.props){var i=this.state.status;this.props.in?i!==ti&&i!==Ji&&(o=ti):(i===ti||i===Ji)&&(o=uv)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var r=this.props.timeout,o,i,a;return o=i=a=r,r!=null&&typeof r!="number"&&(o=r.exit,i=r.enter,a=r.appear!==void 0?r.appear:i),{exit:o,enter:i,appear:a}},n.updateStatus=function(r,o){r===void 0&&(r=!1),o!==null?(this.cancelNextCallback(),o===ti?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:vn.findDOMNode(this)),this.performEnter(r)):this.performExit()):this.props.unmountOnExit&&this.state.status===ei&&this.setState({status:ls})},n.performEnter=function(r){var o=this,i=this.props.enter,a=this.context?this.context.isMounting:r,s=this.props.nodeRef?[a]:[vn.findDOMNode(this),a],c=s[0],l=s[1],u=this.getTimeouts(),d=a?u.appear:u.enter;if(!r&&!i||Dx.disabled){this.safeSetState({status:Ji},function(){o.props.onEntered(c)});return}this.props.onEnter(c,l),this.safeSetState({status:ti},function(){o.props.onEntering(c,l),o.onTransitionEnd(d,function(){o.safeSetState({status:Ji},function(){o.props.onEntered(c,l)})})})},n.performExit=function(){var r=this,o=this.props.exit,i=this.getTimeouts(),a=this.props.nodeRef?void 0:vn.findDOMNode(this);if(!o||Dx.disabled){this.safeSetState({status:ei},function(){r.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:uv},function(){r.props.onExiting(a),r.onTransitionEnd(i.exit,function(){r.safeSetState({status:ei},function(){r.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(r,o){o=this.setNextCallback(o),this.setState(r,o)},n.setNextCallback=function(r){var o=this,i=!0;return this.nextCallback=function(a){i&&(i=!1,o.nextCallback=null,r(a))},this.nextCallback.cancel=function(){i=!1},this.nextCallback},n.onTransitionEnd=function(r,o){this.setNextCallback(o);var i=this.props.nodeRef?this.props.nodeRef.current:vn.findDOMNode(this),a=r==null&&!this.props.addEndListener;if(!i||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var s=this.props.nodeRef?[this.nextCallback]:[i,this.nextCallback],c=s[0],l=s[1];this.props.addEndListener(c,l)}r!=null&&setTimeout(this.nextCallback,r)},n.render=function(){var r=this.state.status;if(r===ls)return null;var o=this.props,i=o.children,a=ke(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return H.createElement(Pc.Provider,{value:null},typeof i=="function"?i(r,a):H.cloneElement(H.Children.only(i),a))},t}(H.Component);oo.contextType=Pc;oo.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:h.shape({current:typeof Element=="undefined"?h.any:function(e,t,n,r,o,i){var a=e[t];return h.instanceOf(a&&"ownerDocument"in a?a.ownerDocument.defaultView.Element:Element)(e,t,n,r,o,i)}}),children:h.oneOfType([h.func.isRequired,h.element.isRequired]).isRequired,in:h.bool,mountOnEnter:h.bool,unmountOnExit:h.bool,appear:h.bool,enter:h.bool,exit:h.bool,timeout:function(e){var t=cB;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,[e].concat(r))},addEndListener:h.func,onEnter:h.func,onEntering:h.func,onEntered:h.func,onExit:h.func,onExiting:h.func,onExited:h.func}:{};function $i(){}oo.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:$i,onEntering:$i,onEntered:$i,onExit:$i,onExiting:$i,onExited:$i};oo.UNMOUNTED=ls;oo.EXITED=ei;oo.ENTERING=ti;oo.ENTERED=Ji;oo.EXITING=uv;const nD=oo;function Ic(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ay(e,t){var n=function(o){return t&&H.isValidElement(o)?t(o):o},r=Object.create(null);return e&&H.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function uB(e,t){e=e||{},t=t||{};function n(u){return u in t?t[u]:e[u]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var c in t){if(r[c])for(a=0;a<r[c].length;a++){var l=r[c][a];s[r[c][a]]=n(l)}s[c]=n(c)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}function ai(e,t,n){return n[t]!=null?n[t]:e.props[t]}function dB(e,t){return ay(e.children,function(n){return H.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ai(n,"appear",e),enter:ai(n,"enter",e),exit:ai(n,"exit",e)})})}function pB(e,t,n){var r=ay(e.children),o=uB(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(H.isValidElement(a)){var s=i in t,c=i in r,l=t[i],u=H.isValidElement(l)&&!l.props.in;c&&(!s||u)?o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:ai(a,"exit",e),enter:ai(a,"enter",e)}):!c&&s&&!u?o[i]=H.cloneElement(a,{in:!1}):c&&s&&H.isValidElement(l)&&(o[i]=H.cloneElement(a,{onExited:n.bind(null,a),in:l.props.in,exit:ai(a,"exit",e),enter:ai(a,"enter",e)}))}}),o}var hB=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},fB={component:"div",childFactory:function(e){return e}},sy=function(e){tD(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Ic(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(r,o){var i=o.children,a=o.handleExited,s=o.firstRender;return{children:s?dB(r,a):pB(r,i,a),firstRender:!1}},n.handleExited=function(r,o){var i=ay(this.props.children);r.key in i||(r.props.onExited&&r.props.onExited(o),this.mounted&&this.setState(function(a){var s=V({},a.children);return delete s[r.key],{children:s}}))},n.render=function(){var r=this.props,o=r.component,i=r.childFactory,a=ke(r,["component","childFactory"]),s=this.state.contextValue,c=hB(this.state.children).map(i);return delete a.appear,delete a.enter,delete a.exit,o===null?H.createElement(Pc.Provider,{value:s},c):H.createElement(Pc.Provider,{value:s},H.createElement(o,a,c))},t}(H.Component);sy.propTypes=process.env.NODE_ENV!=="production"?{component:h.any,children:h.node,appear:h.bool,enter:h.bool,exit:h.bool,childFactory:h.func}:{};sy.defaultProps=fB;const gB=sy;function rD(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:s,onExited:c,timeout:l}=e,[u,d]=P.useState(!1),p=De(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},m=De(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),P.useEffect(()=>{if(!s&&c!=null){const b=setTimeout(c,l);return()=>{clearTimeout(b)}}},[c,s,l]),E.jsx("span",{className:p,style:f,children:E.jsx("span",{className:m})})}process.env.NODE_ENV!=="production"&&(rD.propTypes={classes:h.object.isRequired,className:h.string,in:h.bool,onExited:h.func,pulsate:h.bool,rippleSize:h.number,rippleX:h.number,rippleY:h.number,timeout:h.number.isRequired});const mB=tt("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Jn=mB,vB=["center","classes","className"];let dd=e=>e,Rx,Ax,Mx,Nx;const dv=550,bB=80,yB=g.keyframes(Rx||(Rx=dd`
93
+ 0% {
94
+ transform: scale(0);
95
+ opacity: 0.1;
96
+ }
97
+
98
+ 100% {
99
+ transform: scale(1);
100
+ opacity: 0.3;
101
+ }
102
+ `)),wB=g.keyframes(Ax||(Ax=dd`
103
+ 0% {
104
+ opacity: 1;
105
+ }
106
+
107
+ 100% {
108
+ opacity: 0;
109
+ }
110
+ `)),xB=g.keyframes(Mx||(Mx=dd`
111
+ 0% {
112
+ transform: scale(1);
113
+ }
114
+
115
+ 50% {
116
+ transform: scale(0.92);
117
+ }
118
+
119
+ 100% {
120
+ transform: scale(1);
121
+ }
122
+ `)),_B=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),CB=Ce(rD,{name:"MuiTouchRipple",slot:"Ripple"})(Nx||(Nx=dd`
123
+ opacity: 0;
124
+ position: absolute;
125
+
126
+ &.${0} {
127
+ opacity: 0.3;
128
+ transform: scale(1);
129
+ animation-name: ${0};
130
+ animation-duration: ${0}ms;
131
+ animation-timing-function: ${0};
132
+ }
133
+
134
+ &.${0} {
135
+ animation-duration: ${0}ms;
136
+ }
137
+
138
+ & .${0} {
139
+ opacity: 1;
140
+ display: block;
141
+ width: 100%;
142
+ height: 100%;
143
+ border-radius: 50%;
144
+ background-color: currentColor;
145
+ }
146
+
147
+ & .${0} {
148
+ opacity: 0;
149
+ animation-name: ${0};
150
+ animation-duration: ${0}ms;
151
+ animation-timing-function: ${0};
152
+ }
153
+
154
+ & .${0} {
155
+ position: absolute;
156
+ /* @noflip */
157
+ left: 0px;
158
+ top: 0;
159
+ animation-name: ${0};
160
+ animation-duration: 2500ms;
161
+ animation-timing-function: ${0};
162
+ animation-iteration-count: infinite;
163
+ animation-delay: 200ms;
164
+ }
165
+ `),Jn.rippleVisible,yB,dv,({theme:e})=>e.transitions.easing.easeInOut,Jn.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,Jn.child,Jn.childLeaving,wB,dv,({theme:e})=>e.transitions.easing.easeInOut,Jn.childPulsate,xB,({theme:e})=>e.transitions.easing.easeInOut),oD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiTouchRipple"}),{center:r=!1,classes:o={},className:i}=n,a=ke(n,vB),[s,c]=P.useState([]),l=P.useRef(0),u=P.useRef(null);P.useEffect(()=>{u.current&&(u.current(),u.current=null)},[s]);const d=P.useRef(!1),p=ea(),f=P.useRef(null),m=P.useRef(null),b=P.useCallback(T=>{const{pulsate:y,rippleX:k,rippleY:S,rippleSize:x,cb:C}=T;c(O=>[...O,E.jsx(CB,{classes:{ripple:De(o.ripple,Jn.ripple),rippleVisible:De(o.rippleVisible,Jn.rippleVisible),ripplePulsate:De(o.ripplePulsate,Jn.ripplePulsate),child:De(o.child,Jn.child),childLeaving:De(o.childLeaving,Jn.childLeaving),childPulsate:De(o.childPulsate,Jn.childPulsate)},timeout:dv,pulsate:y,rippleX:k,rippleY:S,rippleSize:x},l.current)]),l.current+=1,u.current=C},[o]),v=P.useCallback((T={},y={},k=()=>{})=>{const{pulsate:S=!1,center:x=r||y.pulsate,fakeElement:C=!1}=y;if((T==null?void 0:T.type)==="mousedown"&&d.current){d.current=!1;return}(T==null?void 0:T.type)==="touchstart"&&(d.current=!0);const O=C?null:m.current,D=O?O.getBoundingClientRect():{width:0,height:0,left:0,top:0};let R,M,F;if(x||T===void 0||T.clientX===0&&T.clientY===0||!T.clientX&&!T.touches)R=Math.round(D.width/2),M=Math.round(D.height/2);else{const{clientX:N,clientY:I}=T.touches&&T.touches.length>0?T.touches[0]:T;R=Math.round(N-D.left),M=Math.round(I-D.top)}if(x)F=Math.sqrt((2*fr(D.width,2)+fr(D.height,2))/3),F%2===0&&(F+=1);else{const N=Math.max(Math.abs((O?O.clientWidth:0)-R),R)*2+2,I=Math.max(Math.abs((O?O.clientHeight:0)-M),M)*2+2;F=Math.sqrt(fr(N,2)+fr(I,2))}T!=null&&T.touches?f.current===null&&(f.current=()=>{b({pulsate:S,rippleX:R,rippleY:M,rippleSize:F,cb:k})},p.start(bB,()=>{f.current&&(f.current(),f.current=null)})):b({pulsate:S,rippleX:R,rippleY:M,rippleSize:F,cb:k})},[r,b,p]),w=P.useCallback(()=>{v({},{pulsate:!0})},[v]),_=P.useCallback((T,y)=>{if(p.clear(),(T==null?void 0:T.type)==="touchend"&&f.current){f.current(),f.current=null,p.start(0,()=>{_(T,y)});return}f.current=null,c(k=>k.length>0?k.slice(1):k),u.current=y},[p]);return P.useImperativeHandle(t,()=>({pulsate:w,start:v,stop:_}),[w,v,_]),E.jsx(_B,V({className:De(Jn.root,o.root,i),ref:m},a,{children:E.jsx(gB,{component:null,exit:!0,children:s})}))});process.env.NODE_ENV!=="production"&&(oD.propTypes={center:h.bool,classes:h.object,className:h.string});const kB=oD;function SB(e){return rt("MuiButtonBase",e)}const TB=tt("MuiButtonBase",["root","disabled","focusVisible"]),EB=TB,OB=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],DB=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,i=at({root:["root",t&&"disabled",n&&"focusVisible"]},SB,o);return n&&r&&(i.root+=` ${r}`),i},RB=Ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${EB.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),iD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiButtonBase"}),{action:r,centerRipple:o=!1,children:i,className:a,component:s="button",disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,LinkComponent:p="a",onBlur:f,onClick:m,onContextMenu:b,onDragLeave:v,onFocus:w,onFocusVisible:_,onKeyDown:T,onKeyUp:y,onMouseDown:k,onMouseLeave:S,onMouseUp:x,onTouchEnd:C,onTouchMove:O,onTouchStart:D,tabIndex:R=0,TouchRippleProps:M,touchRippleRef:F,type:N}=n,I=ke(n,OB),j=P.useRef(null),$=P.useRef(null),Y=$t($,F),{isFocusVisibleRef:U,onFocus:G,onBlur:K,ref:oe}=iO(),[ne,re]=P.useState(!1);c&&ne&&re(!1),P.useImperativeHandle(r,()=>({focusVisible:()=>{re(!0),j.current.focus()}}),[]);const[ie,ce]=P.useState(!1);P.useEffect(()=>{ce(!0)},[]);const se=ie&&!l&&!c;P.useEffect(()=>{ne&&d&&!l&&ie&&$.current.pulsate()},[l,d,ne,ie]);function J(be,je,dt=u){return ko(Bt=>(je&&je(Bt),!dt&&$.current&&$.current[be](Bt),!0))}const A=J("start",k),L=J("stop",b),z=J("stop",v),Q=J("stop",x),X=J("stop",be=>{ne&&be.preventDefault(),S&&S(be)}),Z=J("start",D),ae=J("stop",C),he=J("stop",O),le=J("stop",be=>{K(be),U.current===!1&&re(!1),f&&f(be)},!1),_e=ko(be=>{j.current||(j.current=be.currentTarget),G(be),U.current===!0&&(re(!0),_&&_(be)),w&&w(be)}),ue=()=>{const be=j.current;return s&&s!=="button"&&!(be.tagName==="A"&&be.href)},pe=P.useRef(!1),me=ko(be=>{d&&!pe.current&&ne&&$.current&&be.key===" "&&(pe.current=!0,$.current.stop(be,()=>{$.current.start(be)})),be.target===be.currentTarget&&ue()&&be.key===" "&&be.preventDefault(),T&&T(be),be.target===be.currentTarget&&ue()&&be.key==="Enter"&&!c&&(be.preventDefault(),m&&m(be))}),ye=ko(be=>{d&&be.key===" "&&$.current&&ne&&!be.defaultPrevented&&(pe.current=!1,$.current.stop(be,()=>{$.current.pulsate(be)})),y&&y(be),m&&be.target===be.currentTarget&&ue()&&be.key===" "&&!be.defaultPrevented&&m(be)});let we=s;we==="button"&&(I.href||I.to)&&(we=p);const Ie={};we==="button"?(Ie.type=N===void 0?"button":N,Ie.disabled=c):(!I.href&&!I.to&&(Ie.role="button"),c&&(Ie["aria-disabled"]=c));const st=$t(t,oe,j);process.env.NODE_ENV!=="production"&&P.useEffect(()=>{se&&!$.current&&console.error(["MUI: The `component` prop provided to ButtonBase is invalid.","Please make sure the children prop is rendered in this custom component."].join(`
166
+ `))},[se]);const Ve=V({},n,{centerRipple:o,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:R,focusVisible:ne}),Me=DB(Ve);return E.jsxs(RB,V({as:we,className:De(Me.root,a),ownerState:Ve,onBlur:le,onClick:m,onContextMenu:L,onFocus:_e,onKeyDown:me,onKeyUp:ye,onMouseDown:A,onMouseLeave:X,onMouseUp:Q,onDragLeave:z,onTouchEnd:ae,onTouchMove:he,onTouchStart:Z,ref:st,tabIndex:c?-1:R,type:N},Ie,I,{children:[i,se?E.jsx(kB,V({ref:Y,center:o},M)):null]}))});process.env.NODE_ENV!=="production"&&(iD.propTypes={action:or,centerRipple:h.bool,children:h.node,classes:h.object,className:h.string,component:$b,disabled:h.bool,disableRipple:h.bool,disableTouchRipple:h.bool,focusRipple:h.bool,focusVisibleClassName:h.string,href:h.any,LinkComponent:h.elementType,onBlur:h.func,onClick:h.func,onContextMenu:h.func,onDragLeave:h.func,onFocus:h.func,onFocusVisible:h.func,onKeyDown:h.func,onKeyUp:h.func,onMouseDown:h.func,onMouseLeave:h.func,onMouseUp:h.func,onTouchEnd:h.func,onTouchMove:h.func,onTouchStart:h.func,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number,TouchRippleProps:h.object,touchRippleRef:h.oneOfType([h.func,h.shape({current:h.shape({pulsate:h.func.isRequired,start:h.func.isRequired,stop:h.func.isRequired})})]),type:h.oneOfType([h.oneOf(["button","reset","submit"]),h.string])});const pd=iD,AB=tt("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Px=AB,MB=tt("MuiListItemIcon",["root","alignItemsFlexStart"]),Ix=MB;function NB(e){return rt("MuiTypography",e)}tt("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const PB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],IB=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:o,variant:i,classes:a}=e,s={root:["root",i,e.align!=="inherit"&&`align${Ne(t)}`,n&&"gutterBottom",r&&"noWrap",o&&"paragraph"]};return at(s,NB,a)},jB=Ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>V({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),jx={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},LB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},FB=e=>LB[e]||e,aD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiTypography"}),r=FB(n.color),o=SO(V({},n,{color:r})),{align:i="inherit",className:a,component:s,gutterBottom:c=!1,noWrap:l=!1,paragraph:u=!1,variant:d="body1",variantMapping:p=jx}=o,f=ke(o,PB),m=V({},o,{align:i,color:r,className:a,component:s,gutterBottom:c,noWrap:l,paragraph:u,variant:d,variantMapping:p}),b=s||(u?"p":p[d]||jx[d])||"span",v=IB(m);return E.jsx(jB,V({as:b,ref:t,ownerState:m,className:De(v.root,a)},f))});process.env.NODE_ENV!=="production"&&(aD.propTypes={align:h.oneOf(["center","inherit","justify","left","right"]),children:h.node,classes:h.object,className:h.string,component:h.elementType,gutterBottom:h.bool,noWrap:h.bool,paragraph:h.bool,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOfType([h.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),h.string]),variantMapping:h.object});const BB=aD,HB=tt("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),Lx=HB;function $B(e){return rt("MuiMenuItem",e)}const zB=tt("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),qa=zB,WB=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],UB=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},YB=e=>{const{disabled:t,dense:n,divider:r,disableGutters:o,selected:i,classes:a}=e,s=at({root:["root",n&&"dense",t&&"disabled",!o&&"gutters",r&&"divider",i&&"selected"]},$B,a);return V({},a,s)},qB=Ce(pd,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:UB})(({theme:e,ownerState:t})=>V({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${qa.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${qa.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${qa.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:lt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${qa.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${qa.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Px.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Px.inset}`]:{marginLeft:52},[`& .${Lx.root}`]:{marginTop:0,marginBottom:0},[`& .${Lx.inset}`]:{paddingLeft:36},[`& .${Ix.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&V({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${Ix.root} svg`]:{fontSize:"1.25rem"}}))),sD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiMenuItem"}),{autoFocus:r=!1,component:o="li",dense:i=!1,divider:a=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l="menuitem",tabIndex:u,className:d}=n,p=ke(n,WB),f=P.useContext(cv),m=P.useMemo(()=>({dense:i||f.dense||!1,disableGutters:s}),[f.dense,i,s]),b=P.useRef(null);Hr(()=>{r&&(b.current?b.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[r]);const v=V({},n,{dense:m.dense,divider:a,disableGutters:s}),w=YB(n),_=$t(b,t);let T;return n.disabled||(T=u!==void 0?u:-1),E.jsx(cv.Provider,{value:m,children:E.jsx(qB,V({ref:_,role:l,tabIndex:T,component:o,focusVisibleClassName:De(w.focusVisible,c),className:De(w.root,d)},p,{ownerState:v,classes:w}))})});process.env.NODE_ENV!=="production"&&(sD.propTypes={autoFocus:h.bool,children:h.node,classes:h.object,className:h.string,component:h.elementType,dense:h.bool,disabled:h.bool,disableGutters:h.bool,divider:h.bool,focusVisibleClassName:h.string,role:h.string,selected:h.bool,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),tabIndex:h.number});const VB=sD;function GB(e){return rt("MuiList",e)}tt("MuiList",["root","padding","dense","subheader"]);const QB=["children","className","component","dense","disablePadding","subheader"],JB=e=>{const{classes:t,disablePadding:n,dense:r,subheader:o}=e;return at({root:["root",!n&&"padding",r&&"dense",o&&"subheader"]},GB,t)},ZB=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>V({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),lD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiList"}),{children:r,className:o,component:i="ul",dense:a=!1,disablePadding:s=!1,subheader:c}=n,l=ke(n,QB),u=P.useMemo(()=>({dense:a}),[a]),d=V({},n,{component:i,dense:a,disablePadding:s}),p=JB(d);return E.jsx(cv.Provider,{value:u,children:E.jsxs(ZB,V({as:i,className:De(p.root,o),ref:t,ownerState:d},l,{children:[c,r]}))})});process.env.NODE_ENV!=="production"&&(lD.propTypes={children:h.node,classes:h.object,className:h.string,component:h.elementType,dense:h.bool,disablePadding:h.bool,subheader:h.node,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const KB=lD,XB=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function _f(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Fx(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function cD(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.indexOf(t.keys.join(""))===0}function Va(e,t,n,r,o,i){let a=!1,s=o(e,t,t?n:!1);for(;s;){if(s===e.firstChild){if(a)return!1;a=!0}const c=r?!1:s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||!cD(s,i)||c)s=o(e,s,n);else return s.focus(),!0}return!1}const uD=P.forwardRef(function(e,t){const{actions:n,autoFocus:r=!1,autoFocusItem:o=!1,children:i,className:a,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u="selectedMenu"}=e,d=ke(e,XB),p=P.useRef(null),f=P.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Hr(()=>{r&&p.current.focus()},[r]),P.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(_,{direction:T})=>{const y=!p.current.style.width;if(_.clientHeight<p.current.clientHeight&&y){const k=`${aO(bn(_))}px`;p.current.style[T==="rtl"?"paddingLeft":"paddingRight"]=k,p.current.style.width=`calc(100% + ${k})`}return p.current}}),[]);const m=_=>{const T=p.current,y=_.key,k=bn(T).activeElement;if(y==="ArrowDown")_.preventDefault(),Va(T,k,c,s,_f);else if(y==="ArrowUp")_.preventDefault(),Va(T,k,c,s,Fx);else if(y==="Home")_.preventDefault(),Va(T,null,c,s,_f);else if(y==="End")_.preventDefault(),Va(T,null,c,s,Fx);else if(y.length===1){const S=f.current,x=y.toLowerCase(),C=performance.now();S.keys.length>0&&(C-S.lastTime>500?(S.keys=[],S.repeating=!0,S.previousKeyMatched=!0):S.repeating&&x!==S.keys[0]&&(S.repeating=!1)),S.lastTime=C,S.keys.push(x);const O=k&&!S.repeating&&cD(k,S);S.previousKeyMatched&&(O||Va(T,k,!1,s,_f,S))?_.preventDefault():S.previousKeyMatched=!1}l&&l(_)},b=$t(p,t);let v=-1;P.Children.forEach(i,(_,T)=>{if(!P.isValidElement(_)){v===T&&(v+=1,v>=i.length&&(v=-1));return}process.env.NODE_ENV!=="production"&&Jr.isFragment(_)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
167
+ `)),_.props.disabled||(u==="selectedMenu"&&_.props.selected||v===-1)&&(v=T),v===T&&(_.props.disabled||_.props.muiSkipListHighlight||_.type.muiSkipListHighlight)&&(v+=1,v>=i.length&&(v=-1))});const w=P.Children.map(i,(_,T)=>{if(T===v){const y={};return o&&(y.autoFocus=!0),_.props.tabIndex===void 0&&u==="selectedMenu"&&(y.tabIndex=0),P.cloneElement(_,y)}return _});return E.jsx(KB,V({role:"menu",ref:b,className:a,onKeyDown:m,tabIndex:r?0:-1},d,{children:w}))});process.env.NODE_ENV!=="production"&&(uD.propTypes={autoFocus:h.bool,autoFocusItem:h.bool,children:h.node,className:h.string,disabledItemsFocusable:h.bool,disableListWrap:h.bool,onKeyDown:h.func,variant:h.oneOf(["menu","selectedMenu"])});const e4=uD;function hd(){const e=Zb(td);return process.env.NODE_ENV!=="production"&&P.useDebugValue(e),e[ha]||e}function jc(e,t){var n,r;const{timeout:o,easing:i,style:a={}}=e;return{duration:(n=a.transitionDuration)!=null?n:typeof o=="number"?o:o[t.mode]||0,easing:(r=a.transitionTimingFunction)!=null?r:typeof i=="object"?i[t.mode]:i,delay:a.transitionDelay}}const t4=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function pv(e){return`scale(${e}, ${fr(e,2)})`}const n4={entering:{opacity:1,transform:pv(1)},entered:{opacity:1,transform:"none"}},Cf=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ly=P.forwardRef(function(e,t){const{addEndListener:n,appear:r=!0,children:o,easing:i,in:a,onEnter:s,onEntered:c,onEntering:l,onExit:u,onExited:d,onExiting:p,style:f,timeout:m="auto",TransitionComponent:b=nD}=e,v=ke(e,t4),w=ea(),_=P.useRef(),T=hd(),y=P.useRef(null),k=$t(y,o.ref,t),S=F=>N=>{if(F){const I=y.current;N===void 0?F(I):F(I,N)}},x=S(l),C=S((F,N)=>{const{duration:I,delay:j,easing:$}=jc({style:f,timeout:m,easing:i},{mode:"enter"});let Y;m==="auto"?(Y=T.transitions.getAutoHeightDuration(F.clientHeight),_.current=Y):Y=I,F.style.transition=[T.transitions.create("opacity",{duration:Y,delay:j}),T.transitions.create("transform",{duration:Cf?Y:Y*.666,delay:j,easing:$})].join(","),s&&s(F,N)}),O=S(c),D=S(p),R=S(F=>{const{duration:N,delay:I,easing:j}=jc({style:f,timeout:m,easing:i},{mode:"exit"});let $;m==="auto"?($=T.transitions.getAutoHeightDuration(F.clientHeight),_.current=$):$=N,F.style.transition=[T.transitions.create("opacity",{duration:$,delay:I}),T.transitions.create("transform",{duration:Cf?$:$*.666,delay:Cf?I:I||$*.333,easing:j})].join(","),F.style.opacity=0,F.style.transform=pv(.75),u&&u(F)}),M=S(d);return E.jsx(b,V({appear:r,in:a,nodeRef:y,onEnter:C,onEntered:O,onEntering:x,onExit:R,onExited:M,onExiting:D,addEndListener:F=>{m==="auto"&&w.start(_.current||0,F),n&&n(y.current,F)},timeout:m==="auto"?null:m},v,{children:(F,N)=>P.cloneElement(o,V({style:V({opacity:0,transform:pv(.75),visibility:F==="exited"&&!a?"hidden":void 0},n4[F],f,o.props.style),ref:k},N))}))});process.env.NODE_ENV!=="production"&&(ly.propTypes={addEndListener:h.func,appear:h.bool,children:Qs.isRequired,easing:h.oneOfType([h.shape({enter:h.string,exit:h.string}),h.string]),in:h.bool,onEnter:h.func,onEntered:h.func,onEntering:h.func,onExit:h.func,onExited:h.func,onExiting:h.func,style:h.object,timeout:h.oneOfType([h.oneOf(["auto"]),h.number,h.shape({appear:h.number,enter:h.number,exit:h.number})])});ly.muiSupportAuto=!0;const hv=ly,r4=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],o4={entering:{opacity:1},entered:{opacity:1}},dD=P.forwardRef(function(e,t){const n=hd(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:i=!0,children:a,easing:s,in:c,onEnter:l,onEntered:u,onEntering:d,onExit:p,onExited:f,onExiting:m,style:b,timeout:v=r,TransitionComponent:w=nD}=e,_=ke(e,r4),T=P.useRef(null),y=$t(T,a.ref,t),k=M=>F=>{if(M){const N=T.current;F===void 0?M(N):M(N,F)}},S=k(d),x=k((M,F)=>{const N=jc({style:b,timeout:v,easing:s},{mode:"enter"});M.style.webkitTransition=n.transitions.create("opacity",N),M.style.transition=n.transitions.create("opacity",N),l&&l(M,F)}),C=k(u),O=k(m),D=k(M=>{const F=jc({style:b,timeout:v,easing:s},{mode:"exit"});M.style.webkitTransition=n.transitions.create("opacity",F),M.style.transition=n.transitions.create("opacity",F),p&&p(M)}),R=k(f);return E.jsx(w,V({appear:i,in:c,nodeRef:T,onEnter:x,onEntered:C,onEntering:S,onExit:D,onExited:R,onExiting:O,addEndListener:M=>{o&&o(T.current,M)},timeout:v},_,{children:(M,F)=>P.cloneElement(a,V({style:V({opacity:0,visibility:M==="exited"&&!c?"hidden":void 0},o4[M],b,a.props.style),ref:y},F))}))});process.env.NODE_ENV!=="production"&&(dD.propTypes={addEndListener:h.func,appear:h.bool,children:Qs.isRequired,easing:h.oneOfType([h.shape({enter:h.string,exit:h.string}),h.string]),in:h.bool,onEnter:h.func,onEntered:h.func,onEntering:h.func,onExit:h.func,onExited:h.func,onExiting:h.func,style:h.object,timeout:h.oneOfType([h.number,h.shape({appear:h.number,enter:h.number,exit:h.number})])});const i4=dD;function a4(e){return rt("MuiBackdrop",e)}tt("MuiBackdrop",["root","invisible"]);const s4=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],l4=e=>{const{classes:t,invisible:n}=e;return at({root:["root",n&&"invisible"]},a4,t)},c4=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>V({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),pD=P.forwardRef(function(e,t){var n,r,o;const i=ut({props:e,name:"MuiBackdrop"}),{children:a,className:s,component:c="div",components:l={},componentsProps:u={},invisible:d=!1,open:p,slotProps:f={},slots:m={},TransitionComponent:b=i4,transitionDuration:v}=i,w=ke(i,s4),_=V({},i,{component:c,invisible:d}),T=l4(_),y=(n=f.root)!=null?n:u.root;return E.jsx(b,V({in:p,timeout:v},w,{children:E.jsx(c4,V({"aria-hidden":!0},y,{as:(r=(o=m.root)!=null?o:l.Root)!=null?r:c,className:De(T.root,s,y==null?void 0:y.className),ownerState:V({},_,y==null?void 0:y.ownerState),classes:T,ref:t,children:a}))}))});process.env.NODE_ENV!=="production"&&(pD.propTypes={children:h.node,classes:h.object,className:h.string,component:h.elementType,components:h.shape({Root:h.elementType}),componentsProps:h.shape({root:h.object}),invisible:h.bool,open:h.bool.isRequired,slotProps:h.shape({root:h.object}),slots:h.shape({root:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),TransitionComponent:h.elementType,transitionDuration:h.oneOfType([h.number,h.shape({appear:h.number,enter:h.number,exit:h.number})])});const u4=pD;function d4(e){return rt("MuiModal",e)}tt("MuiModal",["root","hidden","backdrop"]);const p4=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],h4=e=>{const{open:t,exited:n,classes:r}=e;return at({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},d4,r)},f4=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>V({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),g4=Ce(u4,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hD=P.forwardRef(function(e,t){var n,r,o,i,a,s;const c=ut({name:"MuiModal",props:e}),{BackdropComponent:l=g4,BackdropProps:u,className:d,closeAfterTransition:p=!1,children:f,container:m,component:b,components:v={},componentsProps:w={},disableAutoFocus:_=!1,disableEnforceFocus:T=!1,disableEscapeKeyDown:y=!1,disablePortal:k=!1,disableRestoreFocus:S=!1,disableScrollLock:x=!1,hideBackdrop:C=!1,keepMounted:O=!1,onBackdropClick:D,open:R,slotProps:M,slots:F}=c,N=ke(c,p4),I=V({},c,{closeAfterTransition:p,disableAutoFocus:_,disableEnforceFocus:T,disableEscapeKeyDown:y,disablePortal:k,disableRestoreFocus:S,disableScrollLock:x,hideBackdrop:C,keepMounted:O}),{getRootProps:j,getBackdropProps:$,getTransitionProps:Y,portalRef:U,isTopModal:G,exited:K,hasTransition:oe}=IF(V({},I,{rootRef:t})),ne=V({},I,{exited:K}),re=h4(ne),ie={};if(f.props.tabIndex===void 0&&(ie.tabIndex="-1"),oe){const{onEnter:Q,onExited:X}=Y();ie.onEnter=Q,ie.onExited=X}const ce=(n=(r=F==null?void 0:F.root)!=null?r:v.Root)!=null?n:f4,se=(o=(i=F==null?void 0:F.backdrop)!=null?i:v.Backdrop)!=null?o:l,J=(a=M==null?void 0:M.root)!=null?a:w.root,A=(s=M==null?void 0:M.backdrop)!=null?s:w.backdrop,L=mi({elementType:ce,externalSlotProps:J,externalForwardedProps:N,getSlotProps:j,additionalProps:{ref:t,as:b},ownerState:ne,className:De(d,J==null?void 0:J.className,re==null?void 0:re.root,!ne.open&&ne.exited&&(re==null?void 0:re.hidden))}),z=mi({elementType:se,externalSlotProps:A,additionalProps:u,getSlotProps:Q=>$(V({},Q,{onClick:X=>{D&&D(X),Q!=null&&Q.onClick&&Q.onClick(X)}})),className:De(A==null?void 0:A.className,u==null?void 0:u.className,re==null?void 0:re.backdrop),ownerState:ne});return!O&&!R&&(!oe||K)?null:E.jsx(Ds,{ref:U,container:m,disablePortal:k,children:E.jsxs(ce,V({},L,{children:[!C&&l?E.jsx(se,V({},z)):null,E.jsx(Oc,{disableEnforceFocus:T,disableAutoFocus:_,disableRestoreFocus:S,isEnabled:G,open:R,children:P.cloneElement(f,ie)})]}))})});process.env.NODE_ENV!=="production"&&(hD.propTypes={BackdropComponent:h.elementType,BackdropProps:h.object,children:Qs.isRequired,classes:h.object,className:h.string,closeAfterTransition:h.bool,component:h.elementType,components:h.shape({Backdrop:h.elementType,Root:h.elementType}),componentsProps:h.shape({backdrop:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object])}),container:h.oneOfType([eo,h.func]),disableAutoFocus:h.bool,disableEnforceFocus:h.bool,disableEscapeKeyDown:h.bool,disablePortal:h.bool,disableRestoreFocus:h.bool,disableScrollLock:h.bool,hideBackdrop:h.bool,keepMounted:h.bool,onBackdropClick:h.func,onClose:h.func,onTransitionEnter:h.func,onTransitionExited:h.func,open:h.bool.isRequired,slotProps:h.shape({backdrop:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object])}),slots:h.shape({backdrop:h.elementType,root:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const m4=hD,v4=e=>{let t;return e<1?t=5.11916*fr(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},Bx=v4;function b4(e){return rt("MuiPaper",e)}tt("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 y4=["className","component","elevation","square","variant"],w4=e=>{const{square:t,elevation:n,variant:r,classes:o}=e,i={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return at(i,b4,o)},x4=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return V({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&V({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${lt.alpha("#fff",Bx(t.elevation))}, ${lt.alpha("#fff",Bx(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),fD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiPaper"}),{className:r,component:o="div",elevation:i=1,square:a=!1,variant:s="elevation"}=n,c=ke(n,y4),l=V({},n,{component:o,elevation:i,square:a,variant:s}),u=w4(l);return process.env.NODE_ENV!=="production"&&hd().shadows[i]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${i}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${i}]\` is defined.`].join(`
168
+ `)),E.jsx(x4,V({as:o,ownerState:l,className:De(u.root,r),ref:t},c))});process.env.NODE_ENV!=="production"&&(fD.propTypes={children:h.node,classes:h.object,className:h.string,component:h.elementType,elevation:Lo(Dr,e=>{const{elevation:t,variant:n}=e;return t>0&&n==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${n}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:h.bool,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOfType([h.oneOf(["elevation","outlined"]),h.string])});const _4=fD;function C4(e){return rt("MuiPopover",e)}tt("MuiPopover",["root","paper"]);const k4=["onEntering"],S4=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],T4=["slotProps"];function Hx(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function $x(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function zx(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function ec(e){return typeof e=="function"?e():e}const E4=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"]},C4,t)},O4=Ce(m4,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gD=Ce(_4,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),mD=P.forwardRef(function(e,t){var n,r,o;const i=ut({props:e,name:"MuiPopover"}),{action:a,anchorEl:s,anchorOrigin:c={vertical:"top",horizontal:"left"},anchorPosition:l,anchorReference:u="anchorEl",children:d,className:p,container:f,elevation:m=8,marginThreshold:b=16,open:v,PaperProps:w={},slots:_,slotProps:T,transformOrigin:y={vertical:"top",horizontal:"left"},TransitionComponent:k=hv,transitionDuration:S="auto",TransitionProps:{onEntering:x}={},disableScrollLock:C=!1}=i,O=ke(i.TransitionProps,k4),D=ke(i,S4),R=(n=T==null?void 0:T.paper)!=null?n:w,M=P.useRef(),F=$t(M,R.ref),N=V({},i,{anchorOrigin:c,anchorReference:u,elevation:m,marginThreshold:b,externalPaperSlotProps:R,transformOrigin:y,TransitionComponent:k,transitionDuration:S,TransitionProps:O}),I=E4(N),j=P.useCallback(()=>{if(u==="anchorPosition")return process.env.NODE_ENV!=="production"&&(l||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),l;const Q=ec(s),X=Q&&Q.nodeType===1?Q:bn(M.current).body,Z=X.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const ae=X.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ae.top===0&&ae.left===0&&ae.right===0&&ae.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
169
+ `))}return{top:Z.top+Hx(Z,c.vertical),left:Z.left+$x(Z,c.horizontal)}},[s,c.horizontal,c.vertical,l,u]),$=P.useCallback(Q=>({vertical:Hx(Q,y.vertical),horizontal:$x(Q,y.horizontal)}),[y.horizontal,y.vertical]),Y=P.useCallback(Q=>{const X={width:Q.offsetWidth,height:Q.offsetHeight},Z=$(X);if(u==="none")return{top:null,left:null,transformOrigin:zx(Z)};const ae=j();let he=ae.top-Z.vertical,le=ae.left-Z.horizontal;const _e=he+X.height,ue=le+X.width,pe=gi(ec(s)),me=pe.innerHeight-b,ye=pe.innerWidth-b;if(b!==null&&he<b){const we=he-b;he-=we,Z.vertical+=we}else if(b!==null&&_e>me){const we=_e-me;he-=we,Z.vertical+=we}if(process.env.NODE_ENV!=="production"&&X.height>me&&X.height&&me&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${X.height-me}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
170
+ `)),b!==null&&le<b){const we=le-b;le-=we,Z.horizontal+=we}else if(ue>ye){const we=ue-ye;le-=we,Z.horizontal+=we}return{top:`${Math.round(he)}px`,left:`${Math.round(le)}px`,transformOrigin:zx(Z)}},[s,u,j,$,b]),[U,G]=P.useState(v),K=P.useCallback(()=>{const Q=M.current;if(!Q)return;const X=Y(Q);X.top!==null&&(Q.style.top=X.top),X.left!==null&&(Q.style.left=X.left),Q.style.transformOrigin=X.transformOrigin,G(!0)},[Y]);P.useEffect(()=>(C&&window.addEventListener("scroll",K),()=>window.removeEventListener("scroll",K)),[s,C,K]);const oe=(Q,X)=>{x&&x(Q,X),K()},ne=()=>{G(!1)};P.useEffect(()=>{v&&K()}),P.useImperativeHandle(a,()=>v?{updatePosition:()=>{K()}}:null,[v,K]),P.useEffect(()=>{if(!v)return;const Q=oO(()=>{K()}),X=gi(s);return X.addEventListener("resize",Q),()=>{Q.clear(),X.removeEventListener("resize",Q)}},[s,v,K]);let re=S;S==="auto"&&!k.muiSupportAuto&&(re=void 0);const ie=f||(s?bn(ec(s)).body:void 0),ce=(r=_==null?void 0:_.root)!=null?r:O4,se=(o=_==null?void 0:_.paper)!=null?o:gD,J=mi({elementType:se,externalSlotProps:V({},R,{style:U?R.style:V({},R.style,{opacity:0})}),additionalProps:{elevation:m,ref:F},ownerState:N,className:De(I.paper,R==null?void 0:R.className)}),A=mi({elementType:ce,externalSlotProps:(T==null?void 0:T.root)||{},externalForwardedProps:D,additionalProps:{ref:t,slotProps:{backdrop:{invisible:!0}},container:ie,open:v},ownerState:N,className:De(I.root,p)}),{slotProps:L}=A,z=ke(A,T4);return E.jsx(ce,V({},z,!ks(ce)&&{slotProps:L,disableScrollLock:C},{children:E.jsx(k,V({appear:!0,in:v,onEntering:oe,onExited:ne,timeout:re},O,{children:E.jsx(se,V({},J,{children:d}))}))}))});process.env.NODE_ENV!=="production"&&(mD.propTypes={action:or,anchorEl:Lo(h.oneOfType([eo,h.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=ec(e.anchorEl);if(t&&t.nodeType===1){const n=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&n.top===0&&n.left===0&&n.right===0&&n.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
171
+ `))}else return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.",`It should be an Element or PopoverVirtualElement instance but it's \`${t}\` instead.`].join(`
172
+ `))}return null}),anchorOrigin:h.shape({horizontal:h.oneOfType([h.oneOf(["center","left","right"]),h.number]).isRequired,vertical:h.oneOfType([h.oneOf(["bottom","center","top"]),h.number]).isRequired}),anchorPosition:h.shape({left:h.number.isRequired,top:h.number.isRequired}),anchorReference:h.oneOf(["anchorEl","anchorPosition","none"]),children:h.node,classes:h.object,className:h.string,container:h.oneOfType([eo,h.func]),disableScrollLock:h.bool,elevation:Dr,marginThreshold:h.number,onClose:h.func,open:h.bool.isRequired,PaperProps:h.shape({component:$b}),slotProps:h.shape({paper:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object])}),slots:h.shape({paper:h.elementType,root:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),transformOrigin:h.shape({horizontal:h.oneOfType([h.oneOf(["center","left","right"]),h.number]).isRequired,vertical:h.oneOfType([h.oneOf(["bottom","center","top"]),h.number]).isRequired}),TransitionComponent:h.elementType,transitionDuration:h.oneOfType([h.oneOf(["auto"]),h.number,h.shape({appear:h.number,enter:h.number,exit:h.number})]),TransitionProps:h.object});const D4=mD;function R4(e){return rt("MuiMenu",e)}tt("MuiMenu",["root","paper","list"]);const A4=["onEntering"],M4=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],N4={vertical:"top",horizontal:"right"},P4={vertical:"top",horizontal:"left"},I4=e=>{const{classes:t}=e;return at({root:["root"],paper:["paper"],list:["list"]},R4,t)},j4=Ce(D4,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),L4=Ce(gD,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),F4=Ce(e4,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),vD=P.forwardRef(function(e,t){var n,r;const o=ut({props:e,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:s,disableAutoFocusItem:c=!1,MenuListProps:l={},onClose:u,open:d,PaperProps:p={},PopoverClasses:f,transitionDuration:m="auto",TransitionProps:{onEntering:b}={},variant:v="selectedMenu",slots:w={},slotProps:_={}}=o,T=ke(o.TransitionProps,A4),y=ke(o,M4),k=id(),S=V({},o,{autoFocus:i,disableAutoFocusItem:c,MenuListProps:l,onEntering:b,PaperProps:p,transitionDuration:m,TransitionProps:T,variant:v}),x=I4(S),C=i&&!c&&d,O=P.useRef(null),D=($,Y)=>{O.current&&O.current.adjustStyleForScrollbar($,{direction:k?"rtl":"ltr"}),b&&b($,Y)},R=$=>{$.key==="Tab"&&($.preventDefault(),u&&u($,"tabKeyDown"))};let M=-1;P.Children.map(a,($,Y)=>{P.isValidElement($)&&(process.env.NODE_ENV!=="production"&&Jr.isFragment($)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
173
+ `)),$.props.disabled||(v==="selectedMenu"&&$.props.selected||M===-1)&&(M=Y))});const F=(n=w.paper)!=null?n:L4,N=(r=_.paper)!=null?r:p,I=mi({elementType:w.root,externalSlotProps:_.root,ownerState:S,className:[x.root,s]}),j=mi({elementType:F,externalSlotProps:N,ownerState:S,className:x.paper});return E.jsx(j4,V({onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?N4:P4,slots:{paper:F,root:w.root},slotProps:{root:I,paper:j},open:d,ref:t,transitionDuration:m,TransitionProps:V({onEntering:D},T),ownerState:S},y,{classes:f,children:E.jsx(F4,V({onKeyDown:R,actions:O,autoFocus:i&&(M===-1||c),autoFocusItem:C,variant:v},l,{className:De(x.list,l.className),children:a}))}))});process.env.NODE_ENV!=="production"&&(vD.propTypes={anchorEl:h.oneOfType([eo,h.func]),autoFocus:h.bool,children:h.node,classes:h.object,className:h.string,disableAutoFocusItem:h.bool,MenuListProps:h.object,onClose:h.func,open:h.bool.isRequired,PaperProps:h.object,PopoverClasses:h.object,slotProps:h.shape({paper:h.oneOfType([h.func,h.object]),root:h.oneOfType([h.func,h.object])}),slots:h.shape({paper:h.elementType,root:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),transitionDuration:h.oneOfType([h.oneOf(["auto"]),h.number,h.shape({appear:h.number,enter:h.number,exit:h.number})]),TransitionProps:h.object,variant:h.oneOf(["menu","selectedMenu"])});const B4=vD;function H4(e){return rt("MuiNativeSelect",e)}const $4=tt("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),cy=$4,z4=["className","disabled","error","IconComponent","inputRef","variant"],W4=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"]};return at(s,H4,t)},bD=({ownerState:e,theme:t})=>V({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":V({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${cy.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),U4=Ce("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ar,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${cy.multiple}`]:t.multiple}]}})(bD),yD=({ownerState:e,theme:t})=>V({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${cy.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),Y4=Ce("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})(yD),wD=P.forwardRef(function(e,t){const{className:n,disabled:r,error:o,IconComponent:i,inputRef:a,variant:s="standard"}=e,c=ke(e,z4),l=V({},e,{disabled:r,variant:s,error:o}),u=W4(l);return E.jsxs(P.Fragment,{children:[E.jsx(U4,V({ownerState:l,className:De(u.select,n),disabled:r,ref:a||t},c)),e.multiple?null:E.jsx(Y4,{as:i,ownerState:l,className:u.icon})]})});process.env.NODE_ENV!=="production"&&(wD.propTypes={children:h.node,classes:h.object,className:h.string,disabled:h.bool,error:h.bool,IconComponent:h.elementType.isRequired,inputRef:or,multiple:h.bool,name:h.string,onChange:h.func,value:h.any,variant:h.oneOf(["standard","outlined","filled"])});const q4=wD;function V4(e){return rt("MuiSelect",e)}const G4=tt("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ga=G4;var Wx;const Q4=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],J4=Ce("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ga.select}`]:t.select},{[`&.${Ga.select}`]:t[n.variant]},{[`&.${Ga.error}`]:t.error},{[`&.${Ga.multiple}`]:t.multiple}]}})(bD,{[`&.${Ga.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Z4=Ce("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Ne(n.variant)}`],n.open&&t.iconOpen]}})(yD),K4=Ce("input",{shouldForwardProp:e=>TO(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Ux(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function X4(e){return e==null||typeof e=="string"&&!e.trim()}const eH=e=>{const{classes:t,variant:n,disabled:r,multiple:o,open:i,error:a}=e,s={select:["select",n,r&&"disabled",o&&"multiple",a&&"error"],icon:["icon",`icon${Ne(n)}`,i&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return at(s,V4,t)},xD=P.forwardRef(function(e,t){var n;const{"aria-describedby":r,"aria-label":o,autoFocus:i,autoWidth:a,children:s,className:c,defaultOpen:l,defaultValue:u,disabled:d,displayEmpty:p,error:f=!1,IconComponent:m,inputRef:b,labelId:v,MenuProps:w={},multiple:_,name:T,onBlur:y,onChange:k,onClose:S,onFocus:x,onOpen:C,open:O,readOnly:D,renderValue:R,SelectDisplayProps:M={},tabIndex:F,value:N,variant:I="standard"}=e,j=ke(e,Q4),[$,Y]=Ss({controlled:N,default:u,name:"Select"}),[U,G]=Ss({controlled:O,default:l,name:"Select"}),K=P.useRef(null),oe=P.useRef(null),[ne,re]=P.useState(null),{current:ie}=P.useRef(O!=null),[ce,se]=P.useState(),J=$t(t,b),A=P.useCallback(ve=>{oe.current=ve,ve&&re(ve)},[]),L=ne==null?void 0:ne.parentNode;P.useImperativeHandle(J,()=>({focus:()=>{oe.current.focus()},node:K.current,value:$}),[$]),P.useEffect(()=>{l&&U&&ne&&!ie&&(se(a?null:L.clientWidth),oe.current.focus())},[ne,a]),P.useEffect(()=>{i&&oe.current.focus()},[i]),P.useEffect(()=>{if(!v)return;const ve=bn(oe.current).getElementById(v);if(ve){const Se=()=>{getSelection().isCollapsed&&oe.current.focus()};return ve.addEventListener("click",Se),()=>{ve.removeEventListener("click",Se)}}},[v]);const z=(ve,Se)=>{ve?C&&C(Se):S&&S(Se),ie||(se(a?null:L.clientWidth),G(ve))},Q=ve=>{ve.button===0&&(ve.preventDefault(),oe.current.focus(),z(!0,ve))},X=ve=>{z(!1,ve)},Z=P.Children.toArray(s),ae=ve=>{const Se=Z.find(ot=>ot.props.value===ve.target.value);Se!==void 0&&(Y(Se.props.value),k&&k(ve,Se))},he=ve=>Se=>{let ot;if(Se.currentTarget.hasAttribute("tabindex")){if(_){ot=Array.isArray($)?$.slice():[];const qt=$.indexOf(ve.props.value);qt===-1?ot.push(ve.props.value):ot.splice(qt,1)}else ot=ve.props.value;if(ve.props.onClick&&ve.props.onClick(Se),$!==ot&&(Y(ot),k)){const qt=Se.nativeEvent||Se,Ht=new qt.constructor(qt.type,qt);Object.defineProperty(Ht,"target",{writable:!0,value:{value:ot,name:T}}),k(Ht,ve)}_||z(!1,Se)}},le=ve=>{D||[" ","ArrowUp","ArrowDown","Enter"].indexOf(ve.key)!==-1&&(ve.preventDefault(),z(!0,ve))},_e=ne!==null&&U,ue=ve=>{!_e&&y&&(Object.defineProperty(ve,"target",{writable:!0,value:{value:$,name:T}}),y(ve))};delete j["aria-invalid"];let pe,me;const ye=[];let we=!1,Ie=!1;(KO({value:$})||p)&&(R?pe=R($):we=!0);const st=Z.map(ve=>{if(!P.isValidElement(ve))return null;process.env.NODE_ENV!=="production"&&Jr.isFragment(ve)&&console.error(["MUI: The Select component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
174
+ `));let Se;if(_){if(!Array.isArray($))throw new Error(process.env.NODE_ENV!=="production"?"MUI: The `value` prop must be an array when using the `Select` component with `multiple`.":fi(2));Se=$.some(ot=>Ux(ot,ve.props.value)),Se&&we&&ye.push(ve.props.children)}else Se=Ux($,ve.props.value),Se&&we&&(me=ve.props.children);return Se&&(Ie=!0),P.cloneElement(ve,{"aria-selected":Se?"true":"false",onClick:he(ve),onKeyUp:ot=>{ot.key===" "&&ot.preventDefault(),ve.props.onKeyUp&&ve.props.onKeyUp(ot)},role:"option",selected:Se,value:void 0,"data-value":ve.props.value})});process.env.NODE_ENV!=="production"&&P.useEffect(()=>{if(!Ie&&!_&&$!==""){const ve=Z.map(Se=>Se.props.value);console.warn([`MUI: You have provided an out-of-range value \`${$}\` for the select ${T?`(name="${T}") `:""}component.`,"Consider providing a value that matches one of the available options or ''.",`The available values are ${ve.filter(Se=>Se!=null).map(Se=>`\`${Se}\``).join(", ")||'""'}.`].join(`
175
+ `))}},[Ie,Z,_,T,$]),we&&(_?ye.length===0?pe=null:pe=ye.reduce((ve,Se,ot)=>(ve.push(Se),ot<ye.length-1&&ve.push(", "),ve),[]):pe=me);let Ve=ce;!a&&ie&&ne&&(Ve=L.clientWidth);let Me;typeof F!="undefined"?Me=F:Me=d?null:0;const be=M.id||(T?`mui-component-select-${T}`:void 0),je=V({},e,{variant:I,value:$,open:_e,error:f}),dt=eH(je),Bt=V({},w.PaperProps,(n=w.slotProps)==null?void 0:n.paper),wt=Sc();return E.jsxs(P.Fragment,{children:[E.jsx(J4,V({ref:A,tabIndex:Me,role:"combobox","aria-controls":wt,"aria-disabled":d?"true":void 0,"aria-expanded":_e?"true":"false","aria-haspopup":"listbox","aria-label":o,"aria-labelledby":[v,be].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:le,onMouseDown:d||D?null:Q,onBlur:ue,onFocus:x},M,{ownerState:je,className:De(M.className,dt.select,c),id:be,children:X4(pe)?Wx||(Wx=E.jsx("span",{className:"notranslate",children:"​"})):pe})),E.jsx(K4,V({"aria-invalid":f,value:Array.isArray($)?$.join(","):$,name:T,ref:K,"aria-hidden":!0,onChange:ae,tabIndex:-1,disabled:d,className:dt.nativeInput,autoFocus:i,ownerState:je},j)),E.jsx(Z4,{as:m,className:dt.icon,ownerState:je}),E.jsx(B4,V({id:`menu-${T||""}`,anchorEl:L,open:_e,onClose:X,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},w,{MenuListProps:V({"aria-labelledby":v,role:"listbox","aria-multiselectable":_?"true":void 0,disableListWrap:!0,id:wt},w.MenuListProps),slotProps:V({},w.slotProps,{paper:V({},Bt,{style:V({minWidth:Ve},Bt!=null?Bt.style:null)})}),children:st}))]})});process.env.NODE_ENV!=="production"&&(xD.propTypes={"aria-describedby":h.string,"aria-label":h.string,autoFocus:h.bool,autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,disabled:h.bool,displayEmpty:h.bool,error:h.bool,IconComponent:h.elementType.isRequired,inputRef:or,labelId:h.string,MenuProps:h.object,multiple:h.bool,name:h.string,onBlur:h.func,onChange:h.func,onClose:h.func,onFocus:h.func,onOpen:h.func,open:h.bool,readOnly:h.bool,renderValue:h.func,SelectDisplayProps:h.object,tabIndex:h.oneOfType([h.number,h.string]),type:h.any,value:h.any,variant:h.oneOf(["standard","outlined","filled"])});const tH=xD;function nH(e){return rt("MuiSvgIcon",e)}tt("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const rH=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],oH=e=>{const{color:t,fontSize:n,classes:r}=e,o={root:["root",t!=="inherit"&&`color${Ne(t)}`,`fontSize${Ne(n)}`]};return at(o,nH,r)},iH=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Ne(n.color)}`],t[`fontSize${Ne(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,o,i,a,s,c,l,u,d,p,f,m;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((i=e.typography)==null||(a=i.pxToRem)==null?void 0:a.call(i,20))||"1.25rem",medium:((s=e.typography)==null||(c=s.pxToRem)==null?void 0:c.call(s,24))||"1.5rem",large:((l=e.typography)==null||(u=l.pxToRem)==null?void 0:u.call(l,35))||"2.1875rem"}[t.fontSize],color:(d=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?d:{action:(f=(e.vars||e).palette)==null||(f=f.action)==null?void 0:f.active,disabled:(m=(e.vars||e).palette)==null||(m=m.action)==null?void 0:m.disabled,inherit:void 0}[t.color]}}),uy=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiSvgIcon"}),{children:r,className:o,color:i="inherit",component:a="svg",fontSize:s="medium",htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d="0 0 24 24"}=n,p=ke(n,rH),f=P.isValidElement(r)&&r.type==="svg",m=V({},n,{color:i,component:a,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:f}),b={};l||(b.viewBox=d);const v=oH(m);return E.jsxs(iH,V({as:a,className:De(v.root,o),focusable:"false",color:c,"aria-hidden":u?void 0:!0,role:u?"img":void 0,ref:t},b,p,f&&r.props,{ownerState:m,children:[f?r.props.children:r,u?E.jsx("title",{children:u}):null]}))});process.env.NODE_ENV!=="production"&&(uy.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),h.string]),component:h.elementType,fontSize:h.oneOfType([h.oneOf(["inherit","large","medium","small"]),h.string]),htmlColor:h.string,inheritViewBox:h.bool,shapeRendering:h.string,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),titleAccess:h.string,viewBox:h.string});uy.muiName="SvgIcon";const fv=uy;function Wr(e,t){function n(r,o){return E.jsx(fv,V({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return process.env.NODE_ENV!=="production"&&(n.displayName=`${t}Icon`),n.muiName=fv.muiName,P.memo(P.forwardRef(n))}const aH=Wr(E.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function sH(e){return rt("MuiInput",e)}const lH=V({},ba,tt("MuiInput",["root","underline","input"])),Qa=lH,cH=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],uH=e=>{const{classes:t,disableUnderline:n}=e,r=at({root:["root",!n&&"underline"],input:["input"]},sH,t);return V({},t,r)},dH=Ce(ld,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ad(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),V({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Qa.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Qa.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Qa.disabled}, .${Qa.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Qa.disabled}:before`]:{borderBottomStyle:"dotted"}})}),pH=Ce(cd,{name:"MuiInput",slot:"Input",overridesResolver:sd})({}),dy=P.forwardRef(function(e,t){var n,r,o,i;const a=ut({props:e,name:"MuiInput"}),{disableUnderline:s,components:c={},componentsProps:l,fullWidth:u=!1,inputComponent:d="input",multiline:p=!1,slotProps:f,slots:m={},type:b="text"}=a,v=ke(a,cH),w=uH(a),_={root:{ownerState:{disableUnderline:s}}},T=(f!=null?f:l)?In(f!=null?f:l,_):_,y=(n=(r=m.root)!=null?r:c.Root)!=null?n:dH,k=(o=(i=m.input)!=null?i:c.Input)!=null?o:pH;return E.jsx(ud,V({slots:{root:y,input:k},slotProps:T,fullWidth:u,inputComponent:d,multiline:p,ref:t,type:b},v,{classes:w}))});process.env.NODE_ENV!=="production"&&(dy.propTypes={autoComplete:h.string,autoFocus:h.bool,classes:h.object,color:h.oneOfType([h.oneOf(["primary","secondary"]),h.string]),components:h.shape({Input:h.elementType,Root:h.elementType}),componentsProps:h.shape({input:h.object,root:h.object}),defaultValue:h.any,disabled:h.bool,disableUnderline:h.bool,endAdornment:h.node,error:h.bool,fullWidth:h.bool,id:h.string,inputComponent:h.elementType,inputProps:h.object,inputRef:or,margin:h.oneOf(["dense","none"]),maxRows:h.oneOfType([h.number,h.string]),minRows:h.oneOfType([h.number,h.string]),multiline:h.bool,name:h.string,onChange:h.func,placeholder:h.string,readOnly:h.bool,required:h.bool,rows:h.oneOfType([h.number,h.string]),slotProps:h.shape({input:h.object,root:h.object}),slots:h.shape({input:h.elementType,root:h.elementType}),startAdornment:h.node,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),type:h.string,value:h.any});dy.muiName="Input";const hH=dy;function fH(e){return rt("MuiFilledInput",e)}const gH=V({},ba,tt("MuiFilledInput",["root","underline","input"])),Xo=gH,mH=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],vH=e=>{const{classes:t,disableUnderline:n}=e,r=at({root:["root",!n&&"underline"],input:["input"]},fH,t);return V({},t,r)},bH=Ce(ld,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...ad(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",o=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",i=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",s=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return V({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i}},[`&.${Xo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:i},[`&.${Xo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:s}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Xo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Xo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:o}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Xo.disabled}, .${Xo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Xo.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&V({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),yH=Ce(cd,{name:"MuiFilledInput",slot:"Input",overridesResolver:sd})(({theme:e,ownerState:t})=>V({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),py=P.forwardRef(function(e,t){var n,r,o,i;const a=ut({props:e,name:"MuiFilledInput"}),{components:s={},componentsProps:c,fullWidth:l=!1,inputComponent:u="input",multiline:d=!1,slotProps:p,slots:f={},type:m="text"}=a,b=ke(a,mH),v=V({},a,{fullWidth:l,inputComponent:u,multiline:d,type:m}),w=vH(a),_={root:{ownerState:v},input:{ownerState:v}},T=(p!=null?p:c)?In(_,p!=null?p:c):_,y=(n=(r=f.root)!=null?r:s.Root)!=null?n:bH,k=(o=(i=f.input)!=null?i:s.Input)!=null?o:yH;return E.jsx(ud,V({slots:{root:y,input:k},componentsProps:T,fullWidth:l,inputComponent:u,multiline:d,ref:t,type:m},b,{classes:w}))});process.env.NODE_ENV!=="production"&&(py.propTypes={autoComplete:h.string,autoFocus:h.bool,classes:h.object,color:h.oneOfType([h.oneOf(["primary","secondary"]),h.string]),components:h.shape({Input:h.elementType,Root:h.elementType}),componentsProps:h.shape({input:h.object,root:h.object}),defaultValue:h.any,disabled:h.bool,disableUnderline:h.bool,endAdornment:h.node,error:h.bool,fullWidth:h.bool,hiddenLabel:h.bool,id:h.string,inputComponent:h.elementType,inputProps:h.object,inputRef:or,margin:h.oneOf(["dense","none"]),maxRows:h.oneOfType([h.number,h.string]),minRows:h.oneOfType([h.number,h.string]),multiline:h.bool,name:h.string,onChange:h.func,placeholder:h.string,readOnly:h.bool,required:h.bool,rows:h.oneOfType([h.number,h.string]),slotProps:h.shape({input:h.object,root:h.object}),slots:h.shape({input:h.elementType,root:h.elementType}),startAdornment:h.node,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),type:h.string,value:h.any});py.muiName="Input";const wH=py;var Yx;const xH=["children","classes","className","label","notched"],_H=Ce("fieldset",{shouldForwardProp:ar})({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%"}),CH=Ce("legend",{shouldForwardProp:ar})(({ownerState:e,theme:t})=>V({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&V({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function _D(e){const{className:t,label:n,notched:r}=e,o=ke(e,xH),i=n!=null&&n!=="",a=V({},e,{notched:r,withLabel:i});return E.jsx(_H,V({"aria-hidden":!0,className:t,ownerState:a},o,{children:E.jsx(CH,{ownerState:a,children:i?E.jsx("span",{children:n}):Yx||(Yx=E.jsx("span",{className:"notranslate",children:"​"}))})}))}process.env.NODE_ENV!=="production"&&(_D.propTypes={children:h.node,classes:h.object,className:h.string,label:h.node,notched:h.bool.isRequired,style:h.object});function kH(e){return rt("MuiOutlinedInput",e)}const SH=V({},ba,tt("MuiOutlinedInput",["root","notchedOutline","input"])),co=SH,TH=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],EH=e=>{const{classes:t}=e,n=at({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},kH,t);return V({},t,n)},OH=Ce(ld,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:ad})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return V({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${co.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${co.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${co.focused} .${co.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${co.error} .${co.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${co.disabled} .${co.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&V({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),DH=Ce(_D,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),RH=Ce(cd,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sd})(({theme:e,ownerState:t})=>V({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),hy=P.forwardRef(function(e,t){var n,r,o,i,a;const s=ut({props:e,name:"MuiOutlinedInput"}),{components:c={},fullWidth:l=!1,inputComponent:u="input",label:d,multiline:p=!1,notched:f,slots:m={},type:b="text"}=s,v=ke(s,TH),w=EH(s),_=od(),T=iy({props:s,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),y=V({},s,{color:T.color||"primary",disabled:T.disabled,error:T.error,focused:T.focused,formControl:_,fullWidth:l,hiddenLabel:T.hiddenLabel,multiline:p,size:T.size,type:b}),k=(n=(r=m.root)!=null?r:c.Root)!=null?n:OH,S=(o=(i=m.input)!=null?i:c.Input)!=null?o:RH;return E.jsx(ud,V({slots:{root:k,input:S},renderSuffix:x=>E.jsx(DH,{ownerState:y,className:w.notchedOutline,label:d!=null&&d!==""&&T.required?a||(a=E.jsxs(P.Fragment,{children:[d," ","*"]})):d,notched:typeof f!="undefined"?f:!!(x.startAdornment||x.filled||x.focused)}),fullWidth:l,inputComponent:u,multiline:p,ref:t,type:b},v,{classes:V({},w,{notchedOutline:null})}))});process.env.NODE_ENV!=="production"&&(hy.propTypes={autoComplete:h.string,autoFocus:h.bool,classes:h.object,color:h.oneOfType([h.oneOf(["primary","secondary"]),h.string]),components:h.shape({Input:h.elementType,Root:h.elementType}),defaultValue:h.any,disabled:h.bool,endAdornment:h.node,error:h.bool,fullWidth:h.bool,id:h.string,inputComponent:h.elementType,inputProps:h.object,inputRef:or,label:h.node,margin:h.oneOf(["dense","none"]),maxRows:h.oneOfType([h.number,h.string]),minRows:h.oneOfType([h.number,h.string]),multiline:h.bool,name:h.string,notched:h.bool,onChange:h.func,placeholder:h.string,readOnly:h.bool,required:h.bool,rows:h.oneOfType([h.number,h.string]),slots:h.shape({input:h.elementType,root:h.elementType}),startAdornment:h.node,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),type:h.string,value:h.any});hy.muiName="Input";const AH=hy,MH=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],NH=["root"],PH=e=>{const{classes:t}=e;return t},fy={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ar(e)&&e!=="variant",slot:"Root"},IH=Ce(hH,fy)(""),jH=Ce(AH,fy)(""),LH=Ce(wH,fy)(""),gy=P.forwardRef(function(e,t){const n=ut({name:"MuiSelect",props:e}),{autoWidth:r=!1,children:o,classes:i={},className:a,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=aH,id:u,input:d,inputProps:p,label:f,labelId:m,MenuProps:b,multiple:v=!1,native:w=!1,onClose:_,onOpen:T,open:y,renderValue:k,SelectDisplayProps:S,variant:x="outlined"}=n,C=ke(n,MH),O=w?q4:tH,D=od(),R=iy({props:n,muiFormControl:D,states:["variant","error"]}),M=R.variant||x,F=V({},n,{variant:M,classes:i}),N=PH(F),I=ke(N,NH),j=d||{standard:E.jsx(IH,{ownerState:F}),outlined:E.jsx(jH,{label:f,ownerState:F}),filled:E.jsx(LH,{ownerState:F})}[M],$=$t(t,j.ref);return E.jsx(P.Fragment,{children:P.cloneElement(j,V({inputComponent:O,inputProps:V({children:o,error:R.error,IconComponent:l,variant:M,type:void 0,multiple:v},w?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:b,onClose:_,onOpen:T,open:y,renderValue:k,SelectDisplayProps:V({id:u},S)},p,{classes:p?In(I,p.classes):I},d?d.props.inputProps:{})},(v&&w||c)&&M==="outlined"?{notched:!0}:{},{ref:$,className:De(j.props.className,a,N.root)},!d&&{variant:M},C))})});process.env.NODE_ENV!=="production"&&(gy.propTypes={autoWidth:h.bool,children:h.node,classes:h.object,className:h.string,defaultOpen:h.bool,defaultValue:h.any,displayEmpty:h.bool,IconComponent:h.elementType,id:h.string,input:h.element,inputProps:h.object,label:h.node,labelId:h.string,MenuProps:h.object,multiple:h.bool,native:h.bool,onChange:h.func,onClose:h.func,onOpen:h.func,open:h.bool,renderValue:h.func,SelectDisplayProps:h.object,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),value:h.oneOfType([h.oneOf([""]),h.any]),variant:h.oneOf(["filled","outlined","standard"])});gy.muiName="Select";const FH=gy,CD=P.createContext();process.env.NODE_ENV!=="production"&&(CD.displayName="TableContext");const BH=CD,kD=P.createContext();process.env.NODE_ENV!=="production"&&(kD.displayName="Tablelvl2Context");const HH=kD;function $H(e){return rt("MuiTableCell",e)}const zH=tt("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),WH=zH,UH=["align","className","component","padding","scope","size","sortDirection","variant"],YH=e=>{const{classes:t,variant:n,align:r,padding:o,size:i,stickyHeader:a}=e,s={root:["root",n,a&&"stickyHeader",r!=="inherit"&&`align${Ne(r)}`,o!=="normal"&&`padding${Ne(o)}`,`size${Ne(i)}`]};return at(s,$H,t)},qH=Ce("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ne(n.size)}`],n.padding!=="normal"&&t[`padding${Ne(n.padding)}`],n.align!=="inherit"&&t[`align${Ne(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>V({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
176
+ ${e.palette.mode==="light"?lt.lighten(lt.alpha(e.palette.divider,1),.88):lt.darken(lt.alpha(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${WH.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),SD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiTableCell"}),{align:r="inherit",className:o,component:i,padding:a,scope:s,size:c,sortDirection:l,variant:u}=n,d=ke(n,UH),p=P.useContext(BH),f=P.useContext(HH),m=f&&f.variant==="head";let b;i?b=i:b=m?"th":"td";let v=s;b==="td"?v=void 0:!v&&m&&(v="col");const w=u||f&&f.variant,_=V({},n,{align:r,component:b,padding:a||(p&&p.padding?p.padding:"normal"),size:c||(p&&p.size?p.size:"medium"),sortDirection:l,stickyHeader:w==="head"&&p&&p.stickyHeader,variant:w}),T=YH(_);let y=null;return l&&(y=l==="asc"?"ascending":"descending"),E.jsx(qH,V({as:b,ref:t,className:De(T.root,o),"aria-sort":y,scope:v,ownerState:_},d))});process.env.NODE_ENV!=="production"&&(SD.propTypes={align:h.oneOf(["center","inherit","justify","left","right"]),children:h.node,classes:h.object,className:h.string,component:h.elementType,padding:h.oneOf(["checkbox","none","normal"]),scope:h.string,size:h.oneOfType([h.oneOf(["medium","small"]),h.string]),sortDirection:h.oneOf(["asc","desc",!1]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOfType([h.oneOf(["body","footer","head"]),h.string])});const gv=SD;function VH(e){return rt("MuiToolbar",e)}tt("MuiToolbar",["root","gutters","regular","dense"]);const GH=["className","component","disableGutters","variant"],QH=e=>{const{classes:t,disableGutters:n,variant:r}=e;return at({root:["root",!n&&"gutters",r]},VH,t)},JH=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>V({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),TD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular"}=n,s=ke(n,GH),c=V({},n,{component:o,disableGutters:i,variant:a}),l=QH(c);return E.jsx(JH,V({as:o,className:De(l.root,r),ref:t,ownerState:c},s))});process.env.NODE_ENV!=="production"&&(TD.propTypes={children:h.node,classes:h.object,className:h.string,component:h.elementType,disableGutters:h.bool,sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOfType([h.oneOf(["dense","regular"]),h.string])});const ZH=TD,KH=Wr(E.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),XH=Wr(E.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function e$(e){return rt("MuiIconButton",e)}const t$=tt("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),n$=t$,r$=["edge","children","className","color","disabled","disableFocusRipple","size"],o$=e=>{const{classes:t,disabled:n,color:r,edge:o,size:i}=e,a={root:["root",n&&"disabled",r!=="default"&&`color${Ne(r)}`,o&&`edge${Ne(o)}`,`size${Ne(i)}`]};return at(a,e$,t)},i$=Ce(pd,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Ne(n.color)}`],n.edge&&t[`edge${Ne(n.edge)}`],t[`size${Ne(n.size)}`]]}})(({theme:e,ownerState:t})=>V({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:lt.alpha(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return V({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&V({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":V({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt.alpha(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${n$.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ED=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiIconButton"}),{edge:r=!1,children:o,className:i,color:a="default",disabled:s=!1,disableFocusRipple:c=!1,size:l="medium"}=n,u=ke(n,r$),d=V({},n,{edge:r,color:a,disabled:s,disableFocusRipple:c,size:l}),p=o$(d);return E.jsx(i$,V({className:De(p.root,i),centerRipple:!0,focusRipple:!c,disabled:s,ref:t},u,{ownerState:d,children:o}))});process.env.NODE_ENV!=="production"&&(ED.propTypes={children:Lo(h.node,e=>P.Children.toArray(e.children).some(t=>P.isValidElement(t)&&t.props.onClick)?new Error(["MUI: You are providing an onClick event listener to a child of a button element.","Prefer applying it to the IconButton directly.","This guarantees that the whole <button> will be responsive to click events."].join(`
177
+ `)):null),classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),h.string]),disabled:h.bool,disableFocusRipple:h.bool,disableRipple:h.bool,edge:h.oneOf(["end","start",!1]),size:h.oneOfType([h.oneOf(["small","medium","large"]),h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const Ol=ED,mv=Wr(E.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),vv=Wr(E.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),a$=["backIconButtonProps","count","disabled","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton","slots","slotProps"],OD=P.forwardRef(function(e,t){var n,r,o,i,a,s,c,l;const{backIconButtonProps:u,count:d,disabled:p=!1,getItemAriaLabel:f,nextIconButtonProps:m,onPageChange:b,page:v,rowsPerPage:w,showFirstButton:_,showLastButton:T,slots:y={},slotProps:k={}}=e,S=ke(e,a$),x=id(),C=J=>{b(J,0)},O=J=>{b(J,v-1)},D=J=>{b(J,v+1)},R=J=>{b(J,Math.max(0,Math.ceil(d/w)-1))},M=(n=y.firstButton)!=null?n:Ol,F=(r=y.lastButton)!=null?r:Ol,N=(o=y.nextButton)!=null?o:Ol,I=(i=y.previousButton)!=null?i:Ol,j=(a=y.firstButtonIcon)!=null?a:vv,$=(s=y.lastButtonIcon)!=null?s:mv,Y=(c=y.nextButtonIcon)!=null?c:XH,U=(l=y.previousButtonIcon)!=null?l:KH,G=x?F:M,K=x?N:I,oe=x?I:N,ne=x?M:F,re=x?k.lastButton:k.firstButton,ie=x?k.nextButton:k.previousButton,ce=x?k.previousButton:k.nextButton,se=x?k.firstButton:k.lastButton;return E.jsxs("div",V({ref:t},S,{children:[_&&E.jsx(G,V({onClick:C,disabled:p||v===0,"aria-label":f("first",v),title:f("first",v)},re,{children:x?E.jsx($,V({},k.lastButtonIcon)):E.jsx(j,V({},k.firstButtonIcon))})),E.jsx(K,V({onClick:O,disabled:p||v===0,color:"inherit","aria-label":f("previous",v),title:f("previous",v)},ie!=null?ie:u,{children:x?E.jsx(Y,V({},k.nextButtonIcon)):E.jsx(U,V({},k.previousButtonIcon))})),E.jsx(oe,V({onClick:D,disabled:p||(d!==-1?v>=Math.ceil(d/w)-1:!1),color:"inherit","aria-label":f("next",v),title:f("next",v)},ce!=null?ce:m,{children:x?E.jsx(U,V({},k.previousButtonIcon)):E.jsx(Y,V({},k.nextButtonIcon))})),T&&E.jsx(ne,V({onClick:R,disabled:p||v>=Math.ceil(d/w)-1,"aria-label":f("last",v),title:f("last",v)},se,{children:x?E.jsx(j,V({},k.firstButtonIcon)):E.jsx($,V({},k.lastButtonIcon))}))]}))});process.env.NODE_ENV!=="production"&&(OD.propTypes={backIconButtonProps:h.object,count:h.number.isRequired,disabled:h.bool,getItemAriaLabel:h.func.isRequired,nextIconButtonProps:h.object,onPageChange:h.func.isRequired,page:h.number.isRequired,rowsPerPage:h.number.isRequired,showFirstButton:h.bool.isRequired,showLastButton:h.bool.isRequired,slotProps:h.shape({firstButton:h.object,firstButtonIcon:h.object,lastButton:h.object,lastButtonIcon:h.object,nextButton:h.object,nextButtonIcon:h.object,previousButton:h.object,previousButtonIcon:h.object}),slots:h.shape({firstButton:h.elementType,firstButtonIcon:h.elementType,lastButton:h.elementType,lastButtonIcon:h.elementType,nextButton:h.elementType,nextButtonIcon:h.elementType,previousButton:h.elementType,previousButtonIcon:h.elementType})});const s$=OD;function l$(e){return rt("MuiTablePagination",e)}const c$=tt("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),vs=c$;var qx;const u$=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","disabled","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton","slotProps","slots"],d$=Ce(gv,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}})),p$=Ce(ZH,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>V({[`& .${vs.actions}`]:t.actions},t.toolbar)})(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${vs.actions}`]:{flexShrink:0,marginLeft:20}})),h$=Ce("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),f$=Ce("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})(({theme:e})=>V({},e.typography.body2,{flexShrink:0})),g$=Ce(FH,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>V({[`& .${vs.selectIcon}`]:t.selectIcon,[`& .${vs.select}`]:t.select},t.input,t.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${vs.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),m$=Ce(VB,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),v$=Ce("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})(({theme:e})=>V({},e.typography.body2,{flexShrink:0}));function b$({from:e,to:t,count:n}){return`${e}–${t} of ${n!==-1?n:`more than ${t}`}`}function y$(e){return`Go to ${e} page`}const w$=e=>{const{classes:t}=e;return at({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},l$,t)},DD=P.forwardRef(function(e,t){var n;const r=ut({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=s$,backIconButtonProps:i,className:a,colSpan:s,component:c=gv,count:l,disabled:u=!1,getItemAriaLabel:d=y$,labelDisplayedRows:p=b$,labelRowsPerPage:f="Rows per page:",nextIconButtonProps:m,onPageChange:b,onRowsPerPageChange:v,page:w,rowsPerPage:_,rowsPerPageOptions:T=[10,25,50,100],SelectProps:y={},showFirstButton:k=!1,showLastButton:S=!1,slotProps:x={},slots:C={}}=r,O=ke(r,u$),D=r,R=w$(D),M=(n=x==null?void 0:x.select)!=null?n:y,F=M.native?"option":m$;let N;(c===gv||c==="td")&&(N=s||1e3);const I=Sc(M.id),j=Sc(M.labelId),$=()=>l===-1?(w+1)*_:_===-1?l:Math.min(l,(w+1)*_);return E.jsx(d$,V({colSpan:N,ref:t,as:c,ownerState:D,className:De(R.root,a)},O,{children:E.jsxs(p$,{className:R.toolbar,children:[E.jsx(h$,{className:R.spacer}),T.length>1&&E.jsx(f$,{className:R.selectLabel,id:j,children:f}),T.length>1&&E.jsx(g$,V({variant:"standard"},!M.variant&&{input:qx||(qx=E.jsx(ud,{}))},{value:_,onChange:v,id:I,labelId:j},M,{classes:V({},M.classes,{root:De(R.input,R.selectRoot,(M.classes||{}).root),select:De(R.select,(M.classes||{}).select),icon:De(R.selectIcon,(M.classes||{}).icon)}),disabled:u,children:T.map(Y=>H.createElement(F,V({},!ks(F)&&{ownerState:D},{className:R.menuItem,key:Y.label?Y.label:Y,value:Y.value?Y.value:Y}),Y.label?Y.label:Y))})),E.jsx(v$,{className:R.displayedRows,children:p({from:l===0?0:w*_+1,to:$(),count:l===-1?-1:l,page:w})}),E.jsx(o,{className:R.actions,backIconButtonProps:i,count:l,nextIconButtonProps:m,onPageChange:b,page:w,rowsPerPage:_,showFirstButton:k,showLastButton:S,slotProps:x.actions,slots:C.actions,getItemAriaLabel:d,disabled:u})]})}))});process.env.NODE_ENV!=="production"&&(DD.propTypes={ActionsComponent:h.elementType,backIconButtonProps:h.object,classes:h.object,className:h.string,colSpan:h.number,component:h.elementType,count:Dr.isRequired,disabled:h.bool,getItemAriaLabel:h.func,labelDisplayedRows:h.func,labelRowsPerPage:h.node,nextIconButtonProps:h.object,onPageChange:h.func.isRequired,onRowsPerPageChange:h.func,page:Lo(Dr.isRequired,e=>{const{count:t,page:n,rowsPerPage:r}=e;if(t===-1)return null;const o=Math.max(0,Math.ceil(t/r)-1);return n<0||n>o?new Error(`MUI: The page prop of a TablePagination is out of range (0 to ${o}, but page is ${n}).`):null}),rowsPerPage:Dr.isRequired,rowsPerPageOptions:h.arrayOf(h.oneOfType([h.number,h.shape({label:h.string.isRequired,value:h.number.isRequired})]).isRequired),SelectProps:h.object,showFirstButton:h.bool,showLastButton:h.bool,slotProps:h.shape({actions:h.shape({firstButton:h.object,firstButtonIcon:h.object,lastButton:h.object,lastButtonIcon:h.object,nextButton:h.object,nextButtonIcon:h.object,previousButton:h.object,previousButtonIcon:h.object}),select:h.object}),slots:h.shape({actions:h.shape({firstButton:h.elementType,firstButtonIcon:h.elementType,lastButton:h.elementType,lastButtonIcon:h.elementType,nextButton:h.elementType,nextButtonIcon:h.elementType,previousButton:h.elementType,previousButtonIcon:h.elementType})}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object])});const x$=DD,_$=["theme"];function Si(e){let{theme:t}=e,n=ke(e,_$);const r=t[ha];return E.jsx(Mc,V({},n,{themeId:r?ha:void 0,theme:r||t}))}process.env.NODE_ENV!=="production"&&(Si.propTypes={children:h.node,theme:h.oneOfType([h.object,h.func]).isRequired});var C$=function(){},RD=typeof window!="undefined",k$=RD?H.useLayoutEffect:H.useEffect;const S$=k$;var AD={x:0,y:0,width:0,height:0,top:0,left:0,bottom:0,right:0};function T$(){var e=H.useState(null),t=e[0],n=e[1],r=H.useState(AD),o=r[0],i=r[1],a=H.useMemo(function(){return new window.ResizeObserver(function(s){if(s[0]){var c=s[0].contentRect,l=c.x,u=c.y,d=c.width,p=c.height,f=c.top,m=c.left,b=c.bottom,v=c.right;i({x:l,y:u,width:d,height:p,top:f,left:m,bottom:b,right:v})}})},[]);return S$(function(){if(t)return a.observe(t),function(){a.disconnect()}},[t]),[n,o]}const E$=RD&&typeof window.ResizeObserver!="undefined"?T$:function(){return[C$,AD]},MD=H.createContext({}),O$="responsive-table-pagination",Tr={xs:0,sm:200,md:439,lg:600,xl:1536},D$=e=>Dl(Tr.xs,Tr.sm,e)?"xs":Dl(Tr.sm,Tr.md,e)?"sm":Dl(Tr.md,Tr.lg,e)?"md":Dl(Tr.lg,Tr.xl,e)?"lg":"xl",Dl=(e,t,n)=>n>=e&&n<t;function R$(e){return rt("MuiPagination",e)}tt("MuiPagination",["root","ul","outlined","text"]);const A$=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function M$(e={}){const{boundaryCount:t=1,componentName:n="usePagination",count:r=1,defaultPage:o=1,disabled:i=!1,hideNextButton:a=!1,hidePrevButton:s=!1,onChange:c,page:l,showFirstButton:u=!1,showLastButton:d=!1,siblingCount:p=1}=e,f=ke(e,A$),[m,b]=Ss({controlled:l,default:o,name:n,state:"page"}),v=(O,D)=>{l||b(D),c&&c(O,D)},w=(O,D)=>{const R=D-O+1;return Array.from({length:R},(M,F)=>O+F)},_=w(1,Math.min(t,r)),T=w(Math.max(r-t+1,t+1),r),y=Math.max(Math.min(m-p,r-t-p*2-1),t+2),k=Math.min(Math.max(m+p,t+p*2+2),T.length>0?T[0]-2:r-1),S=[...u?["first"]:[],...s?[]:["previous"],..._,...y>t+2?["start-ellipsis"]:t+1<r-t?[t+1]:[],...w(y,k),...k<r-t-1?["end-ellipsis"]:r-t>t?[r-t]:[],...T,...a?[]:["next"],...d?["last"]:[]],x=O=>{switch(O){case"first":return 1;case"previous":return m-1;case"next":return m+1;case"last":return r;default:return null}},C=S.map(O=>typeof O=="number"?{onClick:D=>{v(D,O)},type:"page",page:O,selected:O===m,disabled:i,"aria-current":O===m?"true":void 0}:{onClick:D=>{v(D,x(O))},type:O,page:x(O),selected:!1,disabled:i||O.indexOf("ellipsis")===-1&&(O==="next"||O==="last"?m>=r:m<=1)});return V({items:C},f)}function N$(e){return rt("MuiPaginationItem",e)}const P$=tt("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Qn=P$,Vx=Wr(E.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Gx=Wr(E.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),I$=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],ND=(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${Ne(n.size)}`],n.variant==="text"&&t[`text${Ne(n.color)}`],n.variant==="outlined"&&t[`outlined${Ne(n.color)}`],n.shape==="rounded"&&t.rounded,n.type==="page"&&t.page,(n.type==="start-ellipsis"||n.type==="end-ellipsis")&&t.ellipsis,(n.type==="previous"||n.type==="next")&&t.previousNext,(n.type==="first"||n.type==="last")&&t.firstLast]},j$=e=>{const{classes:t,color:n,disabled:r,selected:o,size:i,shape:a,type:s,variant:c}=e,l={root:["root",`size${Ne(i)}`,c,a,n!=="standard"&&`color${Ne(n)}`,n!=="standard"&&`${c}${Ne(n)}`,r&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[s]],icon:["icon"]};return at(l,N$,t)},L$=Ce("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:ND})(({theme:e,ownerState:t})=>V({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,height:"auto",[`&.${Qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.size==="small"&&{minWidth:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)})),F$=Ce(pd,{name:"MuiPaginationItem",slot:"Root",overridesResolver:ND})(({theme:e,ownerState:t})=>V({},e.typography.body2,{borderRadius:32/2,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(e.vars||e).palette.text.primary,[`&.${Qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},transition:e.transitions.create(["color","background-color"],{duration:e.transitions.duration.short}),"&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qn.selected}`]:{backgroundColor:(e.vars||e).palette.action.selected,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:lt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt.alpha(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Qn.disabled}`]:{opacity:1,color:(e.vars||e).palette.action.disabled,backgroundColor:(e.vars||e).palette.action.selected}}},t.size==="small"&&{minWidth:26,height:26,borderRadius:26/2,margin:"0 1px",padding:"0 4px"},t.size==="large"&&{minWidth:40,height:40,borderRadius:40/2,padding:"0 10px",fontSize:e.typography.pxToRem(15)},t.shape==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius}),({theme:e,ownerState:t})=>V({},t.variant==="text"&&{[`&.${Qn.selected}`]:V({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}},[`&.${Qn.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Qn.disabled}`]:{color:(e.vars||e).palette.action.disabled}})},t.variant==="outlined"&&{border:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${Qn.selected}`]:V({},t.color!=="standard"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:lt.alpha(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:lt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qn.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:lt.alpha(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Qn.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),B$=Ce("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>V({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),PD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiPaginationItem"}),{className:r,color:o="standard",component:i,components:a={},disabled:s=!1,page:c,selected:l=!1,shape:u="circular",size:d="medium",slots:p={},type:f="page",variant:m="text"}=n,b=ke(n,I$),v=V({},n,{color:o,disabled:s,selected:l,shape:u,size:d,type:f,variant:m}),w=id(),_=j$(v),T=(w?{previous:p.next||a.next||Gx,next:p.previous||a.previous||Vx,last:p.first||a.first||vv,first:p.last||a.last||mv}:{previous:p.previous||a.previous||Vx,next:p.next||a.next||Gx,first:p.first||a.first||vv,last:p.last||a.last||mv})[f];return f==="start-ellipsis"||f==="end-ellipsis"?E.jsx(L$,{ref:t,ownerState:v,className:De(_.root,r),children:"…"}):E.jsxs(F$,V({ref:t,ownerState:v,component:i,disabled:s,className:De(_.root,r)},b,{children:[f==="page"&&c,T?E.jsx(B$,{as:T,ownerState:v,className:_.icon}):null]}))});process.env.NODE_ENV!=="production"&&(PD.propTypes={children:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","standard"]),h.string]),component:h.elementType,components:h.shape({first:h.elementType,last:h.elementType,next:h.elementType,previous:h.elementType}),disabled:h.bool,page:h.node,selected:h.bool,shape:h.oneOf(["circular","rounded"]),size:h.oneOfType([h.oneOf(["small","medium","large"]),h.string]),slots:h.shape({first:h.elementType,last:h.elementType,next:h.elementType,previous:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),type:h.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:h.oneOfType([h.oneOf(["outlined","text"]),h.string])});const ID=PD,H$=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],$$=e=>{const{classes:t,variant:n}=e;return at({root:["root",n],ul:["ul"]},R$,t)},z$=Ce("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant]]}})({}),W$=Ce("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function U$(e,t,n){return e==="page"?`${n?"":"Go to "}page ${t}`:`Go to ${e} page`}const jD=P.forwardRef(function(e,t){const n=ut({props:e,name:"MuiPagination"}),{boundaryCount:r=1,className:o,color:i="standard",count:a=1,defaultPage:s=1,disabled:c=!1,getItemAriaLabel:l=U$,hideNextButton:u=!1,hidePrevButton:d=!1,renderItem:p=x=>E.jsx(ID,V({},x)),shape:f="circular",showFirstButton:m=!1,showLastButton:b=!1,siblingCount:v=1,size:w="medium",variant:_="text"}=n,T=ke(n,H$),{items:y}=M$(V({},n,{componentName:"Pagination"})),k=V({},n,{boundaryCount:r,color:i,count:a,defaultPage:s,disabled:c,getItemAriaLabel:l,hideNextButton:u,hidePrevButton:d,renderItem:p,shape:f,showFirstButton:m,showLastButton:b,siblingCount:v,size:w,variant:_}),S=$$(k);return E.jsx(z$,V({"aria-label":"pagination navigation",className:De(S.root,o),ownerState:k,ref:t},T,{children:E.jsx(W$,{className:S.ul,ownerState:k,children:y.map((x,C)=>E.jsx("li",{children:p(V({},x,{color:i,"aria-label":l(x.type,x.page,x.selected),shape:f,size:w,variant:_}))},C))})}))});process.env.NODE_ENV!=="production"&&(jD.propTypes={boundaryCount:Dr,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["primary","secondary","standard"]),h.string]),count:Dr,defaultPage:Dr,disabled:h.bool,getItemAriaLabel:h.func,hideNextButton:h.bool,hidePrevButton:h.bool,onChange:h.func,page:Dr,renderItem:h.func,shape:h.oneOf(["circular","rounded"]),showFirstButton:h.bool,showLastButton:h.bool,siblingCount:Dr,size:h.oneOfType([h.oneOf(["small","medium","large"]),h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),variant:h.oneOfType([h.oneOf(["outlined","text"]),h.string])});const Y$=jD,Rl={$ABBEY:" #45464a",$ALABASTER:" #f7f7f7",$ALTO:" #d3d3d3",$ALTO2:" #dadada",$ALUMINIUM:" #a4a8b0",$ATHENS_GRAY_DARK:" #edeef1",$ATHENS_GRAY_DARK2:" #e3e5ea",$ATHENS_GRAY_LIGHT:" #f9f9fb",$ATHENS_GRAY:" #f4f4f8",$BLACK:" #000000",$BRIGHT_GRAY:" #373c48",$CARNATION:" #fa5556",$CHARADE:" #272a34",$DODGER_BLUE:" #1faff3",$EMPEROR:" #4f4f4f",$EBONY:" #080e18",$EBONY_CLAY:" #272d39",$FRENCH_GRAY:" #bdc1c7",$GALLERY_DARK:" #ebebeb",$GALLERY:" #efefef",$GHOST2:" #c6c9ce",$GRAY_CHATEAU:" #9ea2ab",$HALF_AND_HALF:" #ffffde",$MAKO:" #444a55",$MERCURY:" #e5e5e5",$MISCHKA:" #d1d1d7",$NEVADA:" #686a6c",$NOBEL:" #b6b6b6",$OSLO_GRAY:" #888c92",$OXFORD_BLUE:" #3a4356",$PALE_CANERY:" #ffff9c",$PALE_SKY:" #6e7785",$PORCELAIN:"rgba(165, 168, 173, 0.25)",$PROCELAIN_GRAY:" #e7e8ea",$POWDER_BLUE:" #b1e4d7",$REGENT_GREY:" #7f899c",$SEASHELL:" #f1f1f1",$SELECTIVE_YELLOW:" #fbbc04",$SELECTIVE_YELLOW2:" #f2b900",$SHARK:" #23252d",$SHUTTLE_GRAY_DARK:" #5b6372",$SHUTTLE_GRAY:" #5c6372",$SILVER:" #bbbbbb",$SILVER2:" #c5c5c5",$SILVER_CHALICE:" #acacac",$SUPERNOVA_YELLOW:" #ffcb05",$TURQUOISE:" #35d7be",$TROPICAL_BLUE:" #c1e1f6",$TROUT:" #515866",$WILD_SAND:" #f5f5f5",$WISTFUL:" #a4a4d5",$WHITE:" #ffffff",$GHOST:" #c7c9d5",$SCIENCE_BLUE:" #0065e3",$ALABASTER_DARK:"#f7f7f7",$EASTERN_BLUE:"#22ab9f",$HONEY_FLOWER:"#53206b",$MANATEE:"#9898a4",$MIRAGE:"#131326",$RUM:"#735482",$STORM_GRAY:"#6a6a7c",$TUNA:"#363649",$MORTAR:"#463a4c",$SPARTAN_GRAY:"#e0e1eb",$LIGHT_WISTERIA:"#bface1",$EAST_SIDE:"#a087cd",$MOON_RAKER:"#cbb7ef",$DULL_LAVENDAR:"#b297e3"},He={StTextColors:{active:"rgba(38, 46, 61, 1)",content:"rgba(38, 46, 61, 0.8)",secondary:"rgba(38, 46, 61, 0.55)",link:"rgba(54, 163, 217, 1)",accented:"rgba(12, 14, 18, 1)",disabled:"rgba(38, 46, 61, 0.3)"},StTextColorsDark:{active:"rgba(235, 239, 247, 1)",content:"rgba(235, 239, 247, 0.8)",secondary:"rgba(235, 239, 247, 0.55)",disabled:"rgba(235, 239, 247, 0.3)",accented:"rgba(255, 255, 255, 1)"},StUiColors:{default:"rgba(38, 46, 61, 0.67)",additional:"rgba(38, 46, 61, 0.4)",guiding:"rgba(38, 46, 61, 0.1)"},StUiColorsDark:{default:"rgba(235, 239, 247, 0.67)",additional:"rgba(235, 239, 247, 0.35)",guiding:"rgba(235, 239, 247, 0.17)"},StBackgroundColors:{workspace:"#FFFFFF",supporting:"#F9F9FB",priority:"#F4F4F8",themeAgnostic:"rgba(174, 174, 180, 0.3)"},StBackgroundColorsDark:{workspace:"rgba(20, 21, 23, 1)",supporting:"rgba(10, 10, 11, 1)",priority:"rgba(9, 9, 10, 1)"},StPrimaryColors:{primary:"#FFC805"},StInteractionColors:{defaultHover:"rgba(12, 14, 18, 0.07)",guidingHover:"rgba(38, 46, 61, 0.17)",linkHovered:"rgba(50, 147, 197, 1)",primaryHovered:"rgba(242, 185, 0, 1)"},StInteractionColorsDark:{defaultHover:"rgba(255, 255, 255, 0.15)",guidingHover:"rgba(235, 239, 247, 0.17)",linkHovered:"rgba(54, 163, 217, 1)"},StSemanticColors:{info:"rgba(52, 150, 200, 1)",success:"rgba(34, 195, 195, 1)",warning:"rgba(242, 185, 0, 1)",error:"rgba(231, 71, 39, 1)",infoBG:"rgba(52, 150, 200, 0.1)",successBG:"rgba(34, 195, 195, 0.1)",warningBG:"rgba(242, 185, 0, 0.1)",errorBG:"rgba(231, 71, 39, 0.1)"}},q$={Shadows:{level1:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",level2:"drop-shadow(0px 1px 4px rgba(9, 9, 10, 0.1)) drop-shadow(0px 1px 8px rgba(9, 9, 10, 0.15))"}},LD=Bo({components:{MuiButton:{variants:[{props:{variant:"gray"},style:{backgroundColor:He.StUiColors.guiding,color:He.StInteractionColors.linkHovered,"&:hover":{backgroundColor:He.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:"#EDEEF2"}}},{props:{variant:"contained"},style:{"&:disabled":{backgroundColor:He.StPrimaryColors.primary}}},{props:{variant:"outlined"},style:{backgroundColor:He.StBackgroundColors.workspace,color:He.StInteractionColors.linkHovered,border:`1px solid ${Rl.$SHUTTLE_GRAY_DARK}`,"&:hover":{backgroundColor:He.StBackgroundColors.workspace,border:`1px solid ${Rl.$SHUTTLE_GRAY_DARK}`},"&:disabled":{backgroundColor:He.StBackgroundColors.workspace}}},{props:{variant:"text"},style:{color:He.StTextColors.link,"&:hover":{backgroundColor:He.StInteractionColors.guidingHover},"&:disabled":{backgroundColor:He.StBackgroundColors.workspace}}}],styleOverrides:{root:{borderRadius:"4px",height:"28px",lineHeight:"24px",minHeight:0,textTransform:"none",color:He.StTextColors.active,boxShadow:"none","&:hover":{backgroundColor:He.StInteractionColors.primaryHovered,boxShadow:"none"},"&:disabled":{color:Rl.$SHUTTLE_GRAY_DARK,opacity:".3"}}}},MuiLink:{styleOverrides:{root:{color:"#1FAFF3","&:hover":{color:"#0065e3",textDecoration:"none"}}}},MuiTypography:{defaultProps:{color:Rl.$SHUTTLE_GRAY_DARK}}},typography:{fontFamily:"Open Sans",fontSize:13},palette:{primary:{light:"#757ce8",main:He.StPrimaryColors.primary,dark:He.StPrimaryColors.primary,contrastText:He.StBackgroundColors.workspace},secondary:{light:"#ff7961",main:"#f44336",dark:"#ba000d",contrastText:"#000"},success:{light:"#5BE584",main:"#00AB55",dark:"#007B55"}}});LD.shadows[1]="0px 0px 5px rgba(58, 67, 86, 0.2)";LD.shadows[2]="0 1px 3px 1px rgba(58, 67, 86, 0.3)";const V$=Bo({components:{MuiIcon:{styleOverrides:{root:{color:`${He.StPrimaryColors.primary}`,top:0}}},MuiSvgIcon:{}}}),G$=e=>{const{name:t,sx:n}=e,r=Te("app-icon__svg");return E.jsxs(fv,{classes:{root:r},sx:n,inheritViewBox:!0,children:[E.jsx("use",{xlinkHref:`#${t}`}),E.jsx("symbol",{id:"general-arrow-big-down",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}),E.jsx("symbol",{id:"general-arrow-left",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M13.878 9.325a.5.5 0 1 0-.76-.65l-2.998 3.5a.5.5 0 0 0 0 .65l2.999 3.5a.5.5 0 1 0 .76-.65l-2.72-3.175 2.72-3.175z"})}),E.jsx("symbol",{id:"general-arrow-long-right",viewBox:"0 0 29 8",children:E.jsx("path",{d:"M28.354 4.354a.5.5 0 0 0 0-.708L25.172.464a.5.5 0 1 0-.707.708L27.293 4l-2.828 2.828a.5.5 0 1 0 .707.708l3.182-3.182zM0 4.5h28v-1H0v1z",fill:"#3A4356"})}),E.jsx("symbol",{id:"general-arrow-right",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}),E.jsx("symbol",{id:"general-arrow-up",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M12 10.16l-3.174 2.719a.5.5 0 0 1-.65-.76l3.5-2.998a.5.5 0 0 1 .65 0l3.5 2.998a.5.5 0 1 1-.65.76L12 10.159z"})}),E.jsx("symbol",{id:"general-arrow-up-down",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M15.646 14.646a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L12 18.293l3.646-3.647zm0-5.292L12 5.707 8.354 9.354a.5.5 0 1 1-.708-.708l4-4a.5.5 0 0 1 .708 0l4 4a.5.5 0 0 1-.708.708z"})}),E.jsx("symbol",{id:"general-double-arrow-back",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M9.658 12.5l2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.999-3.5a.5.5 0 1 1 .76.65L9.658 12.5zm5.719-3.175l-2.72 3.175 2.72 3.175a.5.5 0 1 1-.76.65l-2.998-3.5a.5.5 0 0 1 0-.65l2.998-3.5a.5.5 0 1 1 .76.65z"})}),E.jsx("symbol",{id:"general-double-arrow-front",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}),E.jsx("symbol",{id:"general-double-big-arrow-back",viewBox:"0 0 31 31",children:E.jsxs("g",{fill:"currentColor",children:[E.jsx("path",{d:"M16 11.825l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65zm5 0l-3.842 4.297 3.662 4.087a.5.5 0 1 1-.76.65l-3.94-4.412a.5.5 0 0 1 0-.65l4.12-4.622a.5.5 0 1 1 .76.65z"}),E.jsx("path",{d:"M10 11.5a.5.5 0 0 1 1 0v9a.5.5 0 0 1-1 0v-9z"})]})}),E.jsx("symbol",{id:"general-double-big-arrow-front",viewBox:"0 0 31 31",children:E.jsxs("g",{fill:"currentColor",children:[E.jsx("path",{d:"M15 20.175l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65zm-5 0l3.842-4.297-3.662-4.087a.5.5 0 1 1 .76-.65l3.94 4.412a.5.5 0 0 1 0 .65l-4.12 4.622a.5.5 0 1 1-.76-.65z"}),E.jsx("path",{d:"M21 20.5a.5.5 0 0 1-1 0v-9a.5.5 0 0 1 1 0v9z"})]})}),E.jsx("symbol",{id:"general-x",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M12 12.293L6.854 7.146a.5.5 0 1 0-.708.708L11.293 13l-5.147 5.146a.5.5 0 0 0 .708.708L12 13.707l5.146 5.147a.5.5 0 0 0 .708-.708L12.707 13l5.147-5.146a.5.5 0 0 0-.708-.708L12 12.293z"})})]})},ta=H.forwardRef((e,t)=>{const{dataTestId:n,name:r,className:o}=e,i=E.jsx(G$,ee({},e)),a=Te("app-icon",`app-icon--${r}`,o);return E.jsx(Si,{theme:V$,children:E.jsx("span",xe(ee({"data-testid":n},e),{ref:t,className:a,children:i}))})}),Qx="24px",Q$="24px",J$=Bo({components:{MuiPagination:{styleOverrides:{root:{display:"flex",justifyContent:"space-around",flexGrow:1,".MuiPagination-ul":{display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",height:Qx}}}},MuiPaginationItem:{styleOverrides:{root:{height:Qx,minWidth:Q$,margin:"0 2px","&.Mui-selected":{border:`1px solid ${He.StUiColors.default}`,borderRadius:"12px",backgroundColor:"transparent","&:hover":{backgroundColor:He.StBackgroundColors.themeAgnostic}},"&:hover":{backgroundColor:He.StBackgroundColors.themeAgnostic},"&.MuiPaginationItem-ellipsis":{background:"transparent",fontFamily:"Open Sans",fontWeight:"400",fontSize:"13px",lineHeight:"18px",paddingTop:"4px"},"&.MuiPaginationItem-firstLast":{display:"none"},"&.MuiPaginationItem-previousNext":{width:"40px"}}}}}}),Z$=Bo({components:{MuiTypography:{variants:[{props:{variant:"titleHero"},style:{fontWeight:600,fontSize:30,lineHeight:"36px",letterSpacing:-.5}},{props:{variant:"titleBig"},style:{fontWeight:400,fontSize:21,lineHeight:"24px",letterSpacing:-.2}},{props:{variant:"titleMedium"},style:{fontWeight:600,fontSize:"18px",lineHeight:"24px"}},{props:{variant:"titleSmall"},style:{fontWeight:600,fontSize:"15px",lineHeight:"20px"}},{props:{variant:"subTitle"},style:{fontWeight:700,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.2px"}},{props:{variant:"bodyLabel"},style:{fontWeight:400,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"laccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"16px",letterSpacing:"0.1px"}},{props:{variant:"bodyParagraph"},style:{fontWeight:400,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"paccent"},style:{fontWeight:600,fontSize:"13px",lineHeight:"18px"}},{props:{variant:"bodyUI"},style:{fontWeight:400,fontSize:"13px",lineHeight:"20px",letterSpacing:"0.3px"}},{props:{variant:"overline"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"1.5px"}},{props:{variant:"caption"},style:{fontWeight:700,fontSize:"11px",lineHeight:"14px",letterSpacing:"0.5px"}},{props:{variant:"annotation"},style:{fontWeight:400,fontSize:"11px",lineHeight:"16px",letterSpacing:"0.3px"}},{props:{variant:"code"},style:{fontFamily:"Hack",fontWeight:400,fontSize:"13px",lineHeight:"20px"}}],styleOverrides:{root:{display:"inline-block",fontFamily:"Open Sans",color:He.StTextColors.content,"::first-letter":{textTransform:"capitalize"}}}}}}),tc=H.forwardRef((e,t)=>{var n=e,{children:r,theme:o=Z$,dataTestId:i}=n,a=Ft(n,["children","theme","dataTestId"]);return E.jsx(Si,{theme:o,children:E.jsx(BB,xe(ee({ref:t},a),{"data-testid":i,children:r}))})}),Jx=1,K$=H.forwardRef(({onPageChange:e,count:t,rowsPerPage:n,page:r},o)=>{const i=H.useContext(MD),a=(s,c)=>e(null,c);return E.jsx(Si,{theme:J$,children:E.jsx(Y$,{ref:o,count:Math.ceil(t/n),page:r+Jx,siblingCount:i.siblingCount,onChange:a,showFirstButton:!0,showLastButton:!0,size:"small",boundaryCount:Jx,renderItem:s=>E.jsx(ID,xe(ee({components:{first:()=>E.jsx(ta,{sx:{color:He.StUiColors.additional},name:"general-double-arrow-back"}),last:()=>E.jsx(ta,{sx:{color:He.StUiColors.additional},name:"general-double-arrow-front"}),next:()=>E.jsx(ta,{sx:{color:He.StUiColors.additional},name:"general-arrow-right"}),previous:()=>E.jsx(ta,{sx:{color:He.StUiColors.additional},name:"general-arrow-left"})}},s),{page:E.jsx(tc,{variant:"bodyLabel",dataTestId:`PaginationPage-${s.page}`,children:s.page})})),"data-testid":"PaginationActionsComponent"})})}),X$=Bo({breakpoints:{values:Tr},components:{MuiTablePagination:{styleOverrides:{root:{display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",width:"100%"},toolbar:{"&.MuiTablePagination-toolbar":{display:"flex",flexDirection:"row",padding:"0px 20px 0 20px",alignItems:"center",height:"30px",width:"100%"},".Mui-selected":{margin:0}},spacer:{display:"none"},displayedRows:{whiteSpace:"nowrap"},selectLabel:{order:4,paddingLeft:"20px"},input:{order:5,display:"flex",flexDirection:"row",alignItems:"center",borderRadius:"4px",marginRight:"0"},select:{"&.MuiTablePagination-select":{background:"transparent"}},selectIcon:{top:"8%"},menuItem:{paddingLeft:"10px","&.MuiTablePagination-menuItem.Mui-selected":{position:"relative",background:"transparent","&:after":{marginLeft:"15px",content:'""',display:"block",position:"absolute",width:"24px",height:"24px",top:"3px",backgroundImage:`url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M16.2604 8.58124L10.9174 16.0615L7 12.1442L7.70711 11.4371L10.7898 14.5197L15.4467 8L16.2604 8.58124Z' fill='%235B6372'/%3E%3C/svg%3E%0A")`}},"&.MuiTablePagination-menuItem":{fontFamily:"Open Sans",fontWeight:"400",fontSize:"13px",lineHeight:"18px",color:He.StTextColors.content},"&:hover":{backgroundColor:He.StBackgroundColors.priority}},actions:{marginLeft:0}}},MuiPaper:{styleOverrides:{root:{display:"flex",flexDirection:"column",alignItems:"flex-start",padding:"4px 0px",gap:"4px",marginTop:"4px",background:He.StBackgroundColors.workspace,boxShadow:q$.Shadows.level1,borderRadius:"4px"}}},MuiList:{styleOverrides:{root:{padding:0,width:"100%"}}}}}),ez=1,tz=H.forwardRef((e,t)=>{var n=e,{count:r,page:o,rowsPerPage:i,onRowsPerPageChange:a,displayedLabelRows:s,onPageChange:c,labelRowsPerPage:l,labelRowsPerPageShort:u="Rows",rowsPerPageOptions:d=[10,25,50,75],theme:p=X$,dataTestId:f}=n;Ft(n,["count","page","rowsPerPage","onRowsPerPageChange","displayedLabelRows","onPageChange","labelRowsPerPage","labelRowsPerPageShort","rowsPerPageOptions","theme","dataTestId"]);const[m,{width:b}]=E$(),v=b<Tr.lg,w=({from:S,to:x,count:C})=>{const O=v?`${S}-${x} / ${C}`:`${S}-${x} ${s.conjunction} ${C} ${s.result}`;return E.jsx(tc,{variant:"bodyParagraph",sx:{color:He.StTextColors.secondary},children:O})},_=(S,x)=>c(x),T=S=>a(Number(S.target.value)),y=D$(b),k={siblingCount:v?0:1};return E.jsx(Si,{theme:p,children:E.jsx(MD.Provider,{value:k,children:E.jsx("div",{className:`${O$} ${y}`,ref:m,children:E.jsx(x$,{ref:t,component:"div",count:r,page:o-ez,ActionsComponent:K$,onPageChange:_,onRowsPerPageChange:T,rowsPerPage:i,rowsPerPageOptions:d,labelDisplayedRows:w,SelectProps:{SelectDisplayProps:{"data-testid":"TablePaginationSelect"},IconComponent:S=>E.jsx(ta,xe(ee({},S),{name:"general-arrow-big-down"})),renderValue:S=>E.jsx(tc,{variant:"bodyParagraph",children:String(S)})},labelRowsPerPage:E.jsx(tc,{variant:"bodyParagraph",children:v?u:l}),"data-testid":f})})})})}),bv={isMobile:!1,conjunctionLabel:"of",resultLabel:"Results",rowsPerPageLabel:"Results per page",rowsPerPageLabelShort:"Rows",notifyRowsLimitLabel:"The Pivot table is limited to {{recordsCount}} records",notifyColumnsLimitLabel:"The Pivot table is limited to {{columnsCount}} columns",notifyRowsAndColumnsLimitLabel:"The Pivot table is limited to {{recordsCount}} records and {{columnsCount}} columns",alertIcon:"<div>!</div>",numberFormatter:null,onNotificationMoreClick:null};class FD extends P.PureComponent{constructor(t){super(t),B(this,"logger"),B(this,"panel"),B(this,"listFirst"),B(this,"listLast"),B(this,"listNumbers"),B(this,"rowsEl"),B(this,"totalEl"),B(this,"notificationEl"),B(this,"oldSize"),B(this,"notificationStr"),B(this,"notificationFallback"),B(this,"onHeightChangeMemoizer",Lm(!1)),B(this,"handlePageSelected",s=>{const c=s===0?s:s-1;this.props.activePage!==c&&this.notifyOnPageChange(c)}),B(this,"onRowsPerPageChange",s=>{const{onItemsPerPageChange:c}=this.props;typeof c!="undefined"&&typeof c=="function"&&c(s)}),B(this,"onNotificationMoreClick",s=>{const{columnsCount:c,itemsCount:l,limitCount:u}=this.props;if(this.props.options){const{onNotificationMoreClick:d}=this.props.options;d&&d(s,{columnsCount:c,columnsLimitReached:this.isColumnsLimitReached(this.props),rowsCount:l,rowsLimitReached:this.isRowsLimitReached(this.props),recordsCount:u})}}),B(this,"panelRef",s=>{s&&(this.panel=s)});const{itemsCount:n,itemsPerPage:r,options:o}=this.props;this.logger=jo.create("PaginationPanel");const i=Math.ceil(n/r)||0,a=ee(ee({},bv),o);this.state={pagesCount:i,options:a}}componentDidMount(){const{activePage:t,disableInitialCallback:n}=this.props;this.provideHeightUpdate(),n||this.notifyOnPageChange(t)}UNSAFE_componentWillReceiveProps(t){let n=null;if(t.itemsCount!==this.props.itemsCount||t.itemsPerPage!==this.props.itemsPerPage){n=n||{};const i=Math.ceil(t.itemsCount/t.itemsPerPage)||0;n.pagesCount=i}if((t.itemsCount!==this.props.itemsCount||t.itemsPerPage!==this.props.itemsPerPage||t.activePage!==this.props.activePage||t.totalItemsCount!==this.props.totalItemsCount||t.columnsCount!==this.props.columnsCount||t.totalColumnsCount!==this.props.totalColumnsCount||t.limitReached!==this.props.limitReached||t.limitCount!==this.props.limitCount)&&(this.notificationStr=void 0),t.options!==this.props.options){n=n||{};const i=ee(ee({},bv),t.options);n.options=i}const r=t.options||{},o=this.props.options||{};(t.width!==this.props.width||t.itemsCount!==this.props.itemsCount||t.totalItemsCount!==this.props.totalItemsCount||t.columnsCount!==this.props.columnsCount||t.totalColumnsCount!==this.props.totalColumnsCount||t.limitReached!==this.props.limitReached||t.limitCount!==this.props.limitCount||t.itemsPerPage!==this.props.itemsPerPage||t.activePage!==this.props.activePage||r.isMobile!==o.isMobile)&&(this.oldSize=void 0),n&&this.setState(n)}componentDidUpdate(){this.provideHeightUpdate()}getHeight(){return this.panel&&this.panel.offsetHeight||0}getNotificationStr(){const{itemsCount:t,itemsPerPage:n,activePage:r,totalColumnsCount:o,columnsCount:i,limitCount:a}=this.props,{options:s}=this.state,{notifyRowsLimitLabel:c,notifyColumnsLimitLabel:l,notifyRowsAndColumnsLimitLabel:u}=s||{},d=this.isRowsLimitReached(this.props),p=this.isColumnsLimitReached(this.props);let f=()=>"";d&&p?f=Uh(u||""):d?f=Uh(c||""):p&&(f=Uh(l||""));let m=t,b=a;if(this.props.options){const v={type:"number",separated:!0,abbreviations:{k:!0,m:!0}},{numberFormatter:w}=this.props.options;w&&(m=w(m,v),b=w(b,v))}return this.notificationStr=f({columnsCount:i,totalColumnsCount:o,rowsCount:m,recordsCount:b}),this.notificationFallback=E.jsx("div",{}),o===0&&i===0&&(this.notificationFallback=null),{notificationStr:this.notificationStr,notificationFallback:this.notificationFallback}}isRowsLimitReached(t=this.props){return t.limitReached}isColumnsLimitReached(t=this.props){return t.totalColumnsCount>t.columnsCount}provideHeightUpdate(){const{onHeightChange:t}=this.props;t&&this.panel&&this.onHeightChangeMemoizer({callback:({offsetHeight:n})=>{t(n)},indices:{offsetHeight:this.getHeight()}})}notifyOnPageChange(t){const{onPageChange:n}=this.props;typeof n!="undefined"&&typeof n=="function"&&n({selected:t})}render(){const{className:t,activePage:n,itemsPerPage:r,itemsCount:o,totalItemsCount:i}=this.props,{pagesCount:a,options:s}=this.state,{isMobile:c,alertIcon:l,conjunctionLabel:u,resultLabel:d,rowsPerPageLabel:p,rowsPerPageLabelShort:f}=s,m=i>o&&a===1,b=n>-1&&a>1,v=this.isRowsLimitReached(this.props)||this.isColumnsLimitReached(this.props),w=Te(t,Ej,!b&&!m&&!v?Rj:"",b?Dj:"",c?Nj:Aj,m?Mj:"",v?Pj:""),{notificationStr:_,notificationFallback:T}=this.getNotificationStr(),y={width:"100%",height:""};return E.jsx("div",{className:w,"data-html2canvas-ignore":"true",ref:this.panelRef,children:E.jsx(Bb,{style:y,autoHeight:!0,children:E.jsxs("div",{className:Oj,children:[_?E.jsx("div",{className:jj,title:_,children:E.jsx("div",{role:"button",tabIndex:0,onClick:this.onNotificationMoreClick,onKeyPress:this.onNotificationMoreClick,dangerouslySetInnerHTML:{__html:l},"aria-label":"alert"})}):T,E.jsx("div",{className:Ij,children:E.jsx(tz,{count:o,page:n+1,rowsPerPage:r,displayedLabelRows:{conjunction:u,result:d},rowsPerPageOptions:[10,25,50,75],labelRowsPerPage:p,labelRowsPerPageShort:f,dataTestId:"TablePagination",onPageChange:this.handlePageSelected,onRowsPerPageChange:this.onRowsPerPageChange})})]})})})}}B(FD,"defaultProps",{isAllDataLoaded:!1,activePage:0,disableInitialCallback:!0,className:"",options:ee({},bv),onHeightChange:null,onPageChange:null});const my=e=>{switch(e.metadataType){case Ee.MEASURES:return St.ASC;default:return St.DESC}},Zx="sisense-pivot",nz="sisense-pivot__multi-grid",rz="sisense-pivot__overlay",Nt="#5B6372",ur="rgba(244, 244, 244, 1)",uo="rgba(239, 239, 239, 1)",oz=g.newStyled.div`
178
+ &,
179
+ .table-grid {
180
+ background-color: ${e=>e.backgroundColor};
181
+ font-family: ${e=>e.fontFamily};
182
+ }
183
+
184
+ .table-grid__row > .table-grid__cell {
185
+ color: ${e=>e.textColor||Nt};
186
+ }
187
+
188
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.alternatingRows)&&g.css`
189
+ .table-grid__cell--data.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd:not(
190
+ .table-grid__cell--row-user-type-subTotal
191
+ ):not(.table-grid__cell--row-user-type-grandTotal):not(.table-grid__cell--drilled):not(
192
+ .table-grid__cell--selected
193
+ ) {
194
+ background-color: ${e.fillColor||ur};
195
+ color: ${e.textColor||Nt};
196
+ }
197
+ .table-grid__cell--rows.table-grid__cell--level-last.table-grid__cell--sibling-odd:not(
198
+ .table-grid__cell--user-type-subTotal
199
+ ):not(.table-grid__cell--user-type-grandTotal):not(.table-grid__cell--drilled):not(
200
+ .table-grid__cell--selected
201
+ ) {
202
+ background-color: ${e.fillColor||ur};
203
+ color: ${e.textColor||Nt};
204
+ }
205
+ .table-grid--bottom.table-grid--right
206
+ .table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd:not(
207
+ .table-grid__cell--row-user-type-subTotal
208
+ ):not(.table-grid__cell--row-user-type-grandTotal):not(.table-grid__cell--drilled):not(
209
+ .table-grid__cell--selected
210
+ ) {
211
+ background-color: ${e.fillColor||ur};
212
+ color: ${e.textColor||Nt};
213
+ }
214
+ .table-grid--bottom.table-grid--left
215
+ .table-grid__cell--level-last.table-grid__cell--sibling-odd:not(
216
+ .table-grid__cell--user-type-subTotal
217
+ ):not(.table-grid__cell--user-type-grandTotal):not(.table-grid__cell--drilled):not(
218
+ .table-grid__cell--selected
219
+ ) {
220
+ background-color: ${e.fillColor||ur};
221
+ color: ${e.textColor||Nt};
222
+ }
223
+ `}}
224
+
225
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.alternatingColumns)&&g.css`
226
+ .table-grid--bottom.table-grid--left .table-grid__column:nth-of-type(even),
227
+ .table-grid--bottom.table-grid--right .table-grid__column:nth-of-type(even) {
228
+ background-color: ${e.fillColor||ur};
229
+ color: ${e.textColor||Nt};
230
+ }
231
+ `}}
232
+
233
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.columnsHeaders)&&g.css`
234
+ .table-grid--top.table-grid--left
235
+ .table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected),
236
+ .table-grid--top.table-grid--right
237
+ .table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected) {
238
+ background-color: ${e.fillColor||ur};
239
+ color: ${e.textColor||Nt};
240
+ }
241
+ .table-grid__cell--corner.table-grid__cell:not(.table-grid__cell--drilled):not(
242
+ .table-grid__cell--selected
243
+ ),
244
+ .table-grid__cell--columns.table-grid__cell:not(.table-grid__cell--drilled):not(
245
+ .table-grid__cell--selected
246
+ ) {
247
+ background-color: ${e.fillColor||ur};
248
+ color: ${e.textColor||Nt};
249
+ }
250
+ `}}
251
+
252
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.rowMembers)&&g.css`
253
+ .table-grid--bottom.table-grid--left
254
+ .table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected):not(
255
+ .table-grid__cell--user-type-subTotal
256
+ ):not(.table-grid__cell--user-type-grandTotal) {
257
+ background-color: ${e.fillColor||ur};
258
+ color: ${e.textColor||Nt};
259
+ }
260
+ .table-grid__cell--rows.table-grid__cell:not(.table-grid__cell--drilled):not(
261
+ .table-grid__cell--selected
262
+ ):not(.table-grid__cell--user-type-subTotal):not(.table-grid__cell--user-type-grandTotal) {
263
+ background-color: ${e.fillColor||ur};
264
+ color: ${e.textColor||Nt};
265
+ }
266
+ `}}
267
+
268
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.rowMembers)&&g.css`
269
+ .table-grid--bottom.table-grid--left
270
+ .table-grid__cell:not(.table-grid__cell--drilled):not(.table-grid__cell--selected):not(
271
+ .table-grid__cell--user-type-subTotal
272
+ ):not(.table-grid__cell--user-type-grandTotal) {
273
+ background-color: ${e.fillColor||ur};
274
+ color: ${e.textColor||Nt};
275
+ }
276
+ .table-grid__cell--rows.table-grid__cell:not(.table-grid__cell--drilled):not(
277
+ .table-grid__cell--selected
278
+ ):not(.table-grid__cell--user-type-subTotal):not(.table-grid__cell--user-type-grandTotal) {
279
+ background-color: ${e.fillColor||ur};
280
+ color: ${e.textColor||Nt};
281
+ }
282
+ `}}
283
+
284
+ ${e=>{var t;return((t=e.fillOptions)==null?void 0:t.totals)&&g.css`
285
+ .table-grid--bottom.table-grid--left .table-grid__cell--user-type-subTotal,
286
+ .table-grid--bottom.table-grid--left .table-grid__cell--user-type-grandTotal {
287
+ background-color: ${e.additionalFillColor||uo};
288
+ color: ${e.textColor||Nt};
289
+ }
290
+ .table-grid--bottom.table-grid--right {
291
+ .table-grid__cell--row-user-type-subTotal,
292
+ .table-grid__cell--row-user-type-grandTotal,
293
+ .table-grid__cell--col-user-type-subTotal,
294
+ .table-grid__cell--col-user-type-grandTotal {
295
+ background-color: ${e.additionalFillColor||uo};
296
+ color: ${e.textColor||Nt};
297
+ }
298
+ .table-grid__cell--row-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
299
+ .table-grid__cell--row-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
300
+ .table-grid__cell--row-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
301
+ .table-grid__cell--row-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
302
+ .table-grid__cell--col-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
303
+ .table-grid__cell--col-user-type-subTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even,
304
+ .table-grid__cell--col-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
305
+ .table-grid__cell--col-user-type-grandTotal.table-grid__cell.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even {
306
+ background-color: ${e.additionalFillColor||uo};
307
+ color: ${e.textColor||Nt};
308
+ }
309
+ .table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-subTotal,
310
+ .table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-grandTotal,
311
+ .table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-subTotal,
312
+ .table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-grandTotal {
313
+ background-color: ${e.additionalFillColor||uo};
314
+ color: ${e.textColor||Nt};
315
+ }
316
+ }
317
+ .table-grid__cell--rows.table-grid__cell--user-type-subTotal,
318
+ .table-grid__cell--rows.table-grid__cell--user-type-grandTotal {
319
+ background-color: ${e.additionalFillColor||uo};
320
+ color: ${e.textColor||Nt};
321
+ }
322
+ .table-grid__cell--data.table-grid__cell--row-user-type-subTotal,
323
+ .table-grid__cell--data.table-grid__cell--row-user-type-grandTotal,
324
+ .table-grid__cell--data.table-grid__cell--col-user-type-subTotal,
325
+ .table-grid__cell--data.table-grid__cell--col-user-type-grandTotal {
326
+ background-color: ${e.additionalFillColor||uo};
327
+ color: ${e.textColor||Nt};
328
+ &.table-grid__cell {
329
+ &.table-grid__cell--row-level-last.table-grid__cell--row-sibling-odd,
330
+ &.table-grid__cell--row-level-last.table-grid__cell--row-sibling-even {
331
+ background-color: ${e.additionalFillColor||uo};
332
+ color: ${e.textColor||Nt};
333
+ }
334
+ }
335
+ }
336
+ .table-grid__cell--data.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-subTotal,
337
+ .table-grid__cell--data.table-grid__cell--row-user-type-subTotal.table-grid__cell--col-user-type-grandTotal,
338
+ .table-grid__cell--data.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-subTotal,
339
+ .table-grid__cell--data.table-grid__cell--row-user-type-grandTotal.table-grid__cell--col-user-type-grandTotal {
340
+ background-color: ${e.additionalFillColor||uo};
341
+ color: ${e.textColor||Nt};
342
+ }
343
+ `}}
344
+
345
+ .MuiTablePagination-root {
346
+ .MuiTypography-root,
347
+ .MuiPaginationItem-root {
348
+ color: ${e=>e.navigationPrimaryColor};
349
+ }
350
+ .Mui-selected {
351
+ border-color: ${e=>e.navigationSecondaryColor};
352
+ }
353
+ .MuiSvgIcon-root {
354
+ color: ${e=>e.navigationSecondaryColor};
355
+ }
356
+ }
357
+ .table-grid__cell--selected {
358
+ background-color: ${e=>e.selectionColor};
359
+ }
360
+ `;class yv extends P.PureComponent{constructor(t){super(t),B(this,"logger"),B(this,"pivotTable"),B(this,"paginationPanel"),B(this,"forceNotifyAboutHeightChange",!1),B(this,"onEmptyChangeMemoizer",Lm()),B(this,"onTotalHeightChangeMemoizer",Lm()),B(this,"pivotContainer"),B(this,"childrenReadyStateInitial",{pivotDomReady:!1,paginationDomReady:!1,isDebouncing:!1}),B(this,"childrenReadyState",this.childrenReadyStateInitial),B(this,"domReadyEvent",M2(()=>this.onDomReadyEvent(),500)),B(this,"onPivotDomReady",()=>{this.childrenReadyState=xe(ee({},this.childrenReadyState),{pivotDomReady:!0,isDebouncing:!0}),this.domReadyEvent()}),B(this,"pivotTableRef",n=>{n&&(this.pivotTable=n)}),B(this,"paginationPanelRef",n=>{n&&(this.paginationPanel=n)}),B(this,"onPaginationHeightChange",n=>{this.setState({paginationPanelHeight:n,pivotHeight:this.calculatePivotHeight({paginationPanelHeight:n})})}),B(this,"onTableTotalSizeChange",n=>{this.setState({pivotTableHeight:n,pivotHeight:this.calculatePivotHeight({pivotTableHeight:n})})}),B(this,"onSortingMetadataUpdate",(n,r)=>{const{measurePath:o,dir:i}=n,a={measurePath:o,dir:i||my(n),field:r?r.jaqlIndex:n.jaqlIndex};this.props.onSortingMetadataUpdate&&this.props.onSortingMetadataUpdate(a)}),B(this,"setPivotContainerRef",n=>{n&&this.pivotContainer!==n&&(this.pivotContainer=n,this.forceUpdate())}),this.logger=jo.create("Pivot"),this.state={pivotHeight:t.height}}componentDidMount(){const{onEmptyChange:t}=this.props;t&&this.onEmptyChangeMemoizer({callback:({isEmpty:n})=>{t(n)},indices:{isEmpty:!(this.pivotTable&&this.pivotTable.hasContent())}})}UNSAFE_componentWillReceiveProps(t){const n=yE(this.props,t);(typeof n.width!="undefined"||typeof n.height!="undefined"||typeof n.isAutoHeight!="undefined"||typeof n.isPaginated!="undefined"||typeof n.itemsCount!="undefined"||typeof n.itemsPerPage!="undefined")&&(this.forceNotifyAboutHeightChange=!0,this.setState({pivotHeight:this.calculatePivotHeight({isAutoHeight:t.isAutoHeight,holderHeight:t.height})}))}componentDidUpdate(){const{onEmptyChange:t,onTotalHeightChange:n,scrollBarsMargin:r=0}=this.props;if(t&&this.onEmptyChangeMemoizer({callback:({isEmpty:o})=>{t(o)},indices:{isEmpty:!(this.pivotTable&&this.pivotTable.hasContent())}}),n&&this.isPaginationReady()){const{pivotTableHeight:o,paginationPanelHeight:i}=this.state;if(this.forceNotifyAboutHeightChange){if(this.forceNotifyAboutHeightChange=!1,typeof o!="undefined"&&typeof i!="undefined"){const a=o+i+r;n(a)}}else this.onTotalHeightChangeMemoizer({callback:({tableHeight:a,paginationHeight:s}={tableHeight:0,paginationHeight:0})=>{const c=a+s+r;n(c)},indices:{tableHeight:o,paginationHeight:i}})}}componentWillUnmount(){this.pivotTable=void 0,this.paginationPanel=void 0}initialize(t,n,r,o){this.pivotTable&&this.pivotTable.initialize(t,n,r,o)}addMore(t,n=!1){this.pivotTable&&t&&this.pivotTable.addMore(t,n)}getDimensions(){return this.pivotTable?this.pivotTable.getDimensions():{width:[],height:[]}}isPaginationReady(){const{paginationPanelHeight:t}=this.state,n=typeof t=="number"&&t>=0,r=this.props.isPaginated?n:!0;return this.childrenReadyState=xe(ee({},this.childrenReadyState),{paginationDomReady:r,isDebouncing:!0}),this.domReadyEvent(),r}calculatePivotHeight({isAutoHeight:t=this.props.isAutoHeight,holderHeight:n=this.props.height,pivotTableHeight:r=this.state.pivotTableHeight||0,paginationPanelHeight:o=this.state.paginationPanelHeight||0}){const{scrollBarsMargin:i=0}=this.props,a=n-o,s=a?a-i:1;return t?r||s:a}onDomReadyEvent(){if(this.childrenReadyState.pivotDomReady&&this.childrenReadyState.paginationDomReady&&this.childrenReadyState.isDebouncing){this.domReadyEvent.cancel(),this.childrenReadyState=ee({},this.childrenReadyStateInitial);const{onDomReady:t}=this.props;t&&t()}}render(){const t=this.props,{className:n,fontFamily:r,textColor:o,backgroundColor:i,fillColor:a,additionalFillColor:s,fillOptions:c,navigationPrimaryColor:l,navigationSecondaryColor:u,selectionColor:d,isPaginated:p,overlay:f,itemsCount:m,itemsPerPage:b,paginationOptions:v,totalItemsCount:w,totalRecordsCount:_,limitReached:T,totalColumnsCount:y,columnsCount:k,scrollBarsMargin:S=0,rowHeight:x,imageColumns:C,fallbackImageUrl:O,dataBars:D,rangeMinMax:R,isMobile:M,addCellDomReadyPromise:F,removeCellDomReadyPromise:N}=t,I=Ft(t,["className","fontFamily","textColor","backgroundColor","fillColor","additionalFillColor","fillOptions","navigationPrimaryColor","navigationSecondaryColor","selectionColor","isPaginated","overlay","itemsCount","itemsPerPage","paginationOptions","totalItemsCount","totalRecordsCount","limitReached","totalColumnsCount","columnsCount","scrollBarsMargin","rowHeight","imageColumns","fallbackImageUrl","dataBars","rangeMinMax","isMobile","addCellDomReadyPromise","removeCellDomReadyPromise"]),{pivotHeight:j}=this.state;return E.jsx(oz,{fontFamily:r,textColor:o,backgroundColor:i,fillColor:a,additionalFillColor:s,fillOptions:c,navigationPrimaryColor:l,navigationSecondaryColor:u,selectionColor:d,children:E.jsxs("div",{className:Te(Zx,`${Zx}--new`,n),ref:this.setPivotContainerRef,children:[this.pivotContainer&&E.jsx(UE,xe(ee({},I),{className:nz,rowHeight:x,imageColumns:C,fallbackImageUrl:O,addCellDomReadyPromise:F,removeCellDomReadyPromise:N,onSortingMetadataUpdate:this.onSortingMetadataUpdate,onSortingSettingsChanged:this.props.onSortingSettingsChanged,ref:this.pivotTableRef,height:j,onTotalSizeChange:this.onTableTotalSizeChange,scrollBarsMargin:S,dataBars:D,rangeMinMax:R,isMobile:M,onDomReady:this.onPivotDomReady})),p?E.jsx(FD,xe(ee({},I),{ref:this.paginationPanelRef,itemsCount:m,itemsPerPage:b,options:v,totalItemsCount:w,limitReached:T,limitCount:_,totalColumnsCount:y,columnsCount:k,onHeightChange:this.onPaginationHeightChange})):null,f?E.jsx("div",{className:rz}):null]})})}}B(yv,"defaultProps",{isAutoHeight:!1,isFullWidth:!1,isFixedEnabled:!0,isPaginated:!1,overlay:!1,itemsCount:0,totalItemsCount:0,totalRecordsCount:0,limitReached:!1,totalColumnsCount:0,columnsCount:0,itemsPerPage:0,borderWidth:1,scrollBarsMargin:9});const iz="sisense-pivot__resize-control",az=e=>typeof e=="undefined"?!0:!!e;class sz extends P.Component{constructor(){super(...arguments),B(this,"resizeControlPosition",0),B(this,"widthAfterResize",0),B(this,"currentElementWidth",0),B(this,"onMouseDown",t=>{t.preventDefault(),this.currentElementWidth=this.props.onResizeStart(),this.resizeControlPosition=t.clientX,window.addEventListener("mouseup",this.onHandleUp),window.addEventListener("mousemove",this.onHandleResize)}),B(this,"onClick",t=>{t.stopPropagation()}),B(this,"onHandleUp",t=>{const{clientX:n}=t;if(!this.widthAfterResize){const r=n,o=this.resizeControlPosition-this.currentElementWidth;this.widthAfterResize=r-o}this.props.onResizeEnd(this.widthAfterResize),window.removeEventListener("mousemove",this.onHandleResize,!1),window.removeEventListener("mouseup",this.onHandleUp,!1)}),B(this,"onHandleResize",t=>{this.resizeElement(t)})}shouldComponentUpdate(){return!1}resizeElement(t){const{onResize:n}=this.props,{movementX:r,clientX:o}=t;if(az(r)){const i=o,a=this.resizeControlPosition-this.currentElementWidth;this.widthAfterResize=i-a,n(this.widthAfterResize)}}render(){return E.jsx("div",{className:iz,onMouseDownCapture:this.onMouseDown,onClick:this.onClick,role:"button","aria-label":"Resize control",tabIndex:0,onKeyPress:this.onClick})}}const lz="sisense-pivot__data-bar",Kx="sisense-pivot__data-bar--show",Xx="sisense-pivot__data-bar--show-active",cz="sisense-pivot__data-bar-inner",uz="sisense-pivot__data-bar-bar",dz=(e,t,n)=>{if(typeof e=="undefined"||e===null||e==="0"||typeof t=="undefined"||t===null||typeof n=="undefined"||n===null)return[];const r=parseFloat(e);let o=0,i=0;if(t===n)return[];const a=(r-t)/(n-t)*100;if(t>=0&&n>=0)o=0,i=a;else if(t<0&&n<0)o=100,i=(100-a)*-1;else{const s=t*-1/(n-t)*100;o=s,i=a-s}return[o,i,r<0?-1:1]};class pz extends P.Component{constructor(t){super(t),B(this,"root"),B(this,"style"),B(this,"innerStyle"),B(this,"timerShow"),B(this,"timerShowInner"),B(this,"onWidthChange",n=>{const{columnIndex:r,dataNode:o}=this.props,{colsWidth:i,minMaxs:a}=n;let s=i[r];s+=8;const[c,l]=a[r]||[],u=o?o.value:void 0,[d,p,f]=dz(u,c,l);this.style=void 0,this.innerStyle=void 0,this.setState({width:s,left:d,size:p,sign:f}),!(typeof d=="undefined"&&typeof p=="undefined")&&(this.root&&this.root.classList.add(Kx),this.timerShow&&cancelAnimationFrame(this.timerShow),this.timerShow=requestAnimationFrame(()=>{this.timerShowInner&&cancelAnimationFrame(this.timerShowInner),this.timerShowInner=requestAnimationFrame(()=>{this.root&&this.root.classList.add(Xx)})}))}),B(this,"rootRef",n=>{n&&(this.root=n)}),this.state={width:0,left:0,size:0}}componentDidMount(){if(this.props.tableSize){this.props.tableSize.on(rs,this.onWidthChange);const t=this.props.tableSize.getDataBars();t&&this.onWidthChange(t)}}UNSAFE_componentWillReceiveProps(t){if((t.tableSize!==this.props.tableSize||t.columnIndex!==this.props.columnIndex||t.dataNode!==this.props.dataNode||t.style!==this.props.style)&&(this.style=void 0,this.innerStyle=void 0,this.root&&(this.root.classList.remove(Kx),this.root.classList.remove(Xx))),t.tableSize!==this.props.tableSize&&(this.props.tableSize&&this.props.tableSize.off(rs,this.onWidthChange),t.tableSize)){t.tableSize.on(rs,this.onWidthChange);const n=t.tableSize.getDataBars();n&&this.onWidthChange(n)}}componentWillUnmount(){this.root=void 0,this.props.tableSize&&this.props.tableSize.off(rs,this.onWidthChange),this.timerShow&&cancelAnimationFrame(this.timerShow),this.timerShowInner&&cancelAnimationFrame(this.timerShowInner)}getStyle(){if(!this.style){const{width:t}=this.state;if(typeof t=="undefined")return this.style={},this.style;this.style={width:`calc(100% - ${t}px)`}}return this.style}getInnerStyle(){if(!this.innerStyle){const{style:t}=this.props,{left:n,size:r,sign:o}=this.state;if(typeof n=="undefined"||typeof r=="undefined")return this.innerStyle={},this.innerStyle;o===1?this.innerStyle=xe(ee({},t),{left:`${n}%`,width:`${r}%`}):this.innerStyle=xe(ee({},t),{right:`${100-n}%`,width:`${-1*r}%`})}return this.innerStyle}render(){const{dataNode:t}=this.props;if(!t||t.value===null)return null;const n=this.getStyle(),r=this.getInnerStyle();return E.jsx("div",{className:lz,style:n,ref:this.rootRef,children:E.jsx("div",{className:cz,children:E.jsx("div",{className:uz,style:r})})})}}class BD extends P.PureComponent{constructor(t){super(t),B(this,"cellPadding"),B(this,"ratio"),B(this,"defaultHeight"),B(this,"style",{}),B(this,"domReadyDefer"),B(this,"setDefer",()=>{const n={promise:Promise.resolve(),resolve(){return!0},reject(){return!1}},r=new Promise((o,i)=>{n.resolve=o,n.reject=i});this.domReadyDefer=xe(ee({},n),{promise:r}),this.props.addCellDomReadyPromise&&this.props.addCellDomReadyPromise(this.domReadyDefer)}),B(this,"onLoad",n=>{const r=n.currentTarget.naturalWidth,o=n.currentTarget.naturalHeight;this.ratio=r/o,this.setImageStyle(),setTimeout(()=>{this.domReadyDefer&&this.domReadyDefer.resolve()},0)}),B(this,"onError",n=>{const r=(this.props.defaultHeight||this.defaultHeight)-this.cellPadding;this.setState({imageUrl:this.props.fallbackImageUrl||"",imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:r,height:r}}),setTimeout(()=>{this.domReadyDefer&&this.domReadyDefer.resolve(n)},0)}),this.cellPadding=7,this.ratio=0,this.defaultHeight=60,this.setStyle(),this.state={imageUrl:t.imageUrl,imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:this.getHeight()*this.ratio,height:"100%"}},this.setDefer()}UNSAFE_componentWillReceiveProps(t){this.props.rowHeight!==t.rowHeight&&(this.setStyle(t),this.setImageStyle(t)),this.props.imageUrl!==t.imageUrl&&this.setState({imageUrl:t.imageUrl})}componentWillUnmount(){this.props.removeCellDomReadyPromise&&this.props.removeCellDomReadyPromise(this.domReadyDefer)}getHeight(t){return((t?t.rowHeight:this.props.rowHeight)||this.defaultHeight)-this.cellPadding}setStyle(t){this.style={position:"relative",display:"block",width:"100%",height:this.getHeight(t),fontSize:0,lineHeight:0}}setImageStyle(t){const n=this.ratio*this.getHeight(t);this.setState({imageStyle:{position:"absolute",top:"0",left:"0",display:"block",width:n,height:"100%"}})}render(){return E.jsx("div",{style:this.style,children:E.jsx("img",{src:this.state.imageUrl,alt:"",style:this.state.imageStyle,onLoad:this.onLoad,onError:this.onError})})}}B(BD,"defaultProps",{rowHeight:60,fallbackImageUrl:""});var wv={},hz={get exports(){return wv},set exports(e){wv=e}};/*!
361
+ Copyright (c) 2018 Jed Watson.
362
+ Licensed under the MIT License (MIT), see
363
+ http://jedwatson.github.io/classnames
364
+ */var e_;function fz(){return e_||(e_=1,function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()}(hz)),wv}var gz=fz();const Ro=rr(gz);function mz(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.className,a=e.style;return P.createElement("div",{className:Ro("".concat(n,"-content"),i),style:a},P.createElement("div",{className:"".concat(n,"-inner"),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}function mn(e,t,n){return t=JO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function Oe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){mn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lc(e,t){if(e==null)return{};var n=ke(e,t),r,o;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vz(e){if(Array.isArray(e))return e}function bz(e,t){var n=e==null?null:typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],c=!0,l=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(u){l=!0,o=u}finally{try{if(!c&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(l)throw o}}return s}}function xv(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function HD(e,t){if(e){if(typeof e=="string")return xv(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xv(e,t)}}function yz(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
365
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $e(e,t){return vz(e)||bz(e,t)||HD(e,t)||yz()}function Ir(){return!!(typeof window!="undefined"&&window.document&&window.document.createElement)}var _v={},vy=[],wz=function(e){vy.push(e)};function Fc(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=vy.reduce(function(r,o){return o(r!=null?r:"","warning")},t);n&&console.error("Warning: ".concat(n))}}function xz(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){var n=vy.reduce(function(r,o){return o(r!=null?r:"","note")},t);n&&console.warn("Note: ".concat(n))}}function _z(){_v={}}function $D(e,t,n){!t&&!_v[n]&&(e(!1,n),_v[n]=!0)}function fd(e,t){$D(Fc,e,t)}function Cz(e,t){$D(xz,e,t)}fd.preMessage=wz;fd.resetWarned=_z;fd.noteOnce=Cz;function kz(e,t,n){var r=P.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var by=function(e,t){typeof e=="function"?e(t):tr(e)==="object"&&e&&"current"in e&&(e.current=t)},zD=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.filter(Boolean);return r.length<=1?r[0]:function(o){t.forEach(function(i){by(i,o)})}},yy=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return kz(function(){return zD.apply(void 0,t)},t,function(r,o){return r.length!==o.length||r.every(function(i,a){return i!==o[a]})})},gd=function(e){var t,n,r=Jr.isMemo(e)?e.type.type:e.type;return!(typeof r=="function"&&!((t=r.prototype)!==null&&t!==void 0&&t.render)&&r.$$typeof!==Jr.ForwardRef||typeof e=="function"&&!((n=e.prototype)!==null&&n!==void 0&&n.render)&&e.$$typeof!==Jr.ForwardRef)},WD=P.createContext(null);function Sz(e){if(Array.isArray(e))return xv(e)}function Tz(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Ez(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
366
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Cv(e){return Sz(e)||Tz(e)||HD(e)||Ez()}var n_=process.env.NODE_ENV!=="test"&&Ir()?P.useLayoutEffect:P.useEffect,Nn=function(e,t){var n=P.useRef(!0);n_(function(){return e(n.current)},t),n_(function(){return n.current=!1,function(){n.current=!0}},[])},r_=[];function Oz(e,t){var n=P.useState(function(){if(!Ir())return null;var m=document.createElement("div");return process.env.NODE_ENV!=="production"&&t&&m.setAttribute("data-debug",t),m}),r=$e(n,1),o=r[0],i=P.useRef(!1),a=P.useContext(WD),s=P.useState(r_),c=$e(s,2),l=c[0],u=c[1],d=a||(i.current?void 0:function(m){u(function(b){var v=[m].concat(Cv(b));return v})});function p(){o.parentElement||document.body.appendChild(o),i.current=!0}function f(){var m;(m=o.parentElement)===null||m===void 0||m.removeChild(o),i.current=!1}return Nn(function(){return e?a?a(p):p():f(),f},[e]),Nn(function(){l.length&&(l.forEach(function(m){return m()}),u(r_))},[l]),[o,d]}function Dz(e,t){if(!e)return!1;if(e.contains)return e.contains(t);for(var n=t;n;){if(n===e)return!0;n=n.parentNode}return!1}var o_="data-rc-order",i_="data-rc-priority",Rz="rc-util-key",kv=new Map;function UD(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):Rz}function md(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function Az(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function wy(e){return Array.from((kv.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function YD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Ir())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=Az(r),s=a==="prependQueue",c=document.createElement("style");c.setAttribute(o_,a),s&&i&&c.setAttribute(i_,"".concat(i)),n!=null&&n.nonce&&(c.nonce=n==null?void 0:n.nonce),c.innerHTML=e;var l=md(t),u=l.firstChild;if(r){if(s){var d=(t.styles||wy(l)).filter(function(p){if(!["prepend","prependQueue"].includes(p.getAttribute(o_)))return!1;var f=Number(p.getAttribute(i_)||0);return i>=f});if(d.length)return l.insertBefore(c,d[d.length-1].nextSibling),c}l.insertBefore(c,u)}else l.appendChild(c);return c}function qD(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=md(t);return(t.styles||wy(n)).find(function(r){return r.getAttribute(UD(t))===e})}function Sv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=qD(e,t);if(n){var r=md(t);r.removeChild(n)}}function Mz(e,t){var n=kv.get(e);if(!n||!Dz(document,n)){var r=YD("",t),o=r.parentNode;kv.set(e,o),e.removeChild(r)}}function VD(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=md(n),o=wy(r),i=Oe(Oe({},n),{},{styles:o});Mz(r,i);var a=qD(t,i);if(a){var s,c;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((c=i.csp)===null||c===void 0?void 0:c.nonce)){var l;a.nonce=(l=i.csp)===null||l===void 0?void 0:l.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var u=YD(e,i);return u.setAttribute(UD(i),t),u}function Nz(e){var t="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),n=document.createElement("div");n.id=t;var r=n.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var o,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),c=parseInt(s.width,10),l=parseInt(s.height,10);try{var u=c?"width: ".concat(s.width,";"):"",d=l?"height: ".concat(s.height,";"):"";VD(`
367
+ #`.concat(t,`::-webkit-scrollbar {
368
+ `).concat(u,`
369
+ `).concat(d,`
370
+ }`),t)}catch(m){console.error(m),o=c,i=l}}document.body.appendChild(n);var p=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,f=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Sv(t),{width:p,height:f}}function Pz(e){return typeof document=="undefined"||!e||!(e instanceof Element)?{width:0,height:0}:Nz(e)}function Iz(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var jz="rc-util-locker-".concat(Date.now()),a_=0;function Lz(e){var t=!!e,n=P.useState(function(){return a_+=1,"".concat(jz,"_").concat(a_)}),r=$e(n,1),o=r[0];Nn(function(){if(t){var i=Pz(document.body).width,a=Iz();VD(`
371
+ html body {
372
+ overflow-y: hidden;
373
+ `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
374
+ }`),o)}else Sv(o);return function(){Sv(o)}},[t,o])}var Fz=!1;function Bz(e){return Fz}var s_=function(e){return e===!1?!1:!Ir()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},xy=P.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer,i=e.debug,a=e.autoDestroy,s=a===void 0?!0:a,c=e.children,l=P.useState(n),u=$e(l,2),d=u[0],p=u[1],f=d||n;process.env.NODE_ENV!=="production"&&fd(Ir()||!n,"Portal only work in client side. Please call 'useEffect' to show Portal instead default render in SSR."),P.useEffect(function(){(s||n)&&p(n)},[n,s]);var m=P.useState(function(){return s_(o)}),b=$e(m,2),v=b[0],w=b[1];P.useEffect(function(){var M=s_(o);w(M!=null?M:null)});var _=Oz(f&&!v,i),T=$e(_,2),y=T[0],k=T[1],S=v!=null?v:y;Lz(r&&n&&Ir()&&(S===y||S===document.body));var x=null;if(c&&gd(c)&&t){var C=c;x=C.ref}var O=yy(x,t);if(!f||!Ir()||v===void 0)return null;var D=S===!1||Bz(),R=c;return t&&(R=P.cloneElement(c,{ref:O})),P.createElement(WD.Provider,{value:k},D?R:vn.createPortal(R,S))});process.env.NODE_ENV!=="production"&&(xy.displayName="Portal");function Tv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return H.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(Tv(r)):Jr.isFragment(r)&&r.props?n=n.concat(Tv(r.props.children,t)):n.push(r))}),n}function Ms(e){return e instanceof HTMLElement||e instanceof SVGElement}function Hz(e){return e&&tr(e)==="object"&&Ms(e.nativeElement)?e.nativeElement:Ms(e)?e:null}function nc(e){var t=Hz(e);if(t)return t;if(e instanceof H.Component){var n;return(n=vn.findDOMNode)===null||n===void 0?void 0:n.call(vn,e)}return null}var Ev=P.createContext(null);function $z(e){var t=e.children,n=e.onBatchResize,r=P.useRef(0),o=P.useRef([]),i=P.useContext(Ev),a=P.useCallback(function(s,c,l){r.current+=1;var u=r.current;o.current.push({size:s,element:c,data:l}),Promise.resolve().then(function(){u===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,c,l)},[n,i]);return P.createElement(Ev.Provider,{value:a},t)}var GD=function(){if(typeof Map!="undefined")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),Ov=typeof window!="undefined"&&typeof document!="undefined"&&window.document===document,Bc=function(){return typeof global!="undefined"&&global.Math===Math?global:typeof self!="undefined"&&self.Math===Math?self:typeof window!="undefined"&&window.Math===Math?window:Function("return this")()}(),zz=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Bc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),Wz=2;function Uz(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){zz(i)}function s(){var c=Date.now();if(n){if(c-o<Wz)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=c}return s}var Yz=20,qz=["top","right","bottom","left","width","height","size","weight"],Vz=typeof MutationObserver!="undefined",Gz=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=Uz(this.refresh.bind(this),Yz)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Ov||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Vz?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ov||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(t){var n=t.propertyName,r=n===void 0?"":n,o=qz.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),QD=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var o=r[n];Object.defineProperty(e,o,{value:t[o],enumerable:!1,writable:!1,configurable:!0})}return e},ya=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Bc},JD=vd(0,0,0,0);function Hc(e){return parseFloat(e)||0}function l_(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Hc(i)},0)}function Qz(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Hc(a)}return n}function Jz(e){var t=e.getBBox();return vd(0,0,t.width,t.height)}function Zz(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return JD;var r=ya(e).getComputedStyle(e),o=Qz(r),i=o.left+o.right,a=o.top+o.bottom,s=Hc(r.width),c=Hc(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=l_(r,"left","right")+i),Math.round(c+a)!==n&&(c-=l_(r,"top","bottom")+a)),!Xz(e)){var l=Math.round(s+i)-t,u=Math.round(c+a)-n;Math.abs(l)!==1&&(s-=l),Math.abs(u)!==1&&(c-=u)}return vd(o.left,o.top,s,c)}var Kz=function(){return typeof SVGGraphicsElement!="undefined"?function(e){return e instanceof ya(e).SVGGraphicsElement}:function(e){return e instanceof ya(e).SVGElement&&typeof e.getBBox=="function"}}();function Xz(e){return e===ya(e).document.documentElement}function e8(e){return Ov?Kz(e)?Jz(e):Zz(e):JD}function t8(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly!="undefined"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return QD(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function vd(e,t,n,r){return{x:e,y:t,width:n,height:r}}var n8=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=vd(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=e8(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),r8=function(){function e(t,n){var r=t8(n);QD(this,{target:t,contentRect:r})}return e}(),o8=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new GD,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ya(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new n8(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element=="undefined"||!(Element instanceof Object))){if(!(t instanceof ya(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new r8(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ZD=typeof WeakMap!="undefined"?new WeakMap:new GD,KD=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=Gz.getInstance(),r=new o8(t,n,this);ZD.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){KD.prototype[e]=function(){var t;return(t=ZD.get(this))[e].apply(t,arguments)}});var i8=function(){return typeof Bc.ResizeObserver!="undefined"?Bc.ResizeObserver:KD}(),So=new Map;function a8(e){e.forEach(function(t){var n,r=t.target;(n=So.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var XD=new i8(a8);function s8(e,t){So.has(e)||(So.set(e,new Set),XD.observe(e)),So.get(e).add(t)}function l8(e,t){So.has(e)&&(So.get(e).delete(t),So.get(e).size||(XD.unobserve(e),So.delete(e)))}function _y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c_(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,JO(r.key),r)}}function Cy(e,t,n){return t&&c_(e.prototype,t),n&&c_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ky(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Nc(e,t)}function $c(e){return $c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},$c(e)}function eR(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(eR=function(){return!!e})()}function c8(e,t){if(t&&(tr(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ic(e)}function Sy(e){var t=eR();return function(){var n=$c(e),r;if(t){var o=$c(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return c8(this,r)}}var u8=function(e){ky(n,e);var t=Sy(n);function n(){return _y(this,n),t.apply(this,arguments)}return Cy(n,[{key:"render",value:function(){return this.props.children}}]),n}(P.Component);function d8(e,t){var n=e.children,r=e.disabled,o=P.useRef(null),i=P.useRef(null),a=P.useContext(Ev),s=typeof n=="function",c=s?n(o):n,l=P.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),u=!s&&P.isValidElement(c)&&gd(c),d=u?c.ref:null,p=yy(d,o),f=function(){var v;return nc(o.current)||(o.current&&tr(o.current)==="object"?nc((v=o.current)===null||v===void 0?void 0:v.nativeElement):null)||nc(i.current)};P.useImperativeHandle(t,function(){return f()});var m=P.useRef(e);m.current=e;var b=P.useCallback(function(v){var w=m.current,_=w.onResize,T=w.data,y=v.getBoundingClientRect(),k=y.width,S=y.height,x=v.offsetWidth,C=v.offsetHeight,O=Math.floor(k),D=Math.floor(S);if(l.current.width!==O||l.current.height!==D||l.current.offsetWidth!==x||l.current.offsetHeight!==C){var R={width:O,height:D,offsetWidth:x,offsetHeight:C};l.current=R;var M=x===Math.round(k)?k:x,F=C===Math.round(S)?S:C,N=Oe(Oe({},R),{},{offsetWidth:M,offsetHeight:F});a==null||a(N,v,T),_&&Promise.resolve().then(function(){_(N,v)})}},[]);return P.useEffect(function(){var v=f();return v&&!r&&s8(v,b),function(){return l8(v,b)}},[o.current,r]),P.createElement(u8,{ref:i},u?P.cloneElement(c,{ref:p}):c)}var tR=P.forwardRef(d8);process.env.NODE_ENV!=="production"&&(tR.displayName="SingleObserver");var p8="rc-observer-key";function h8(e,t){var n=e.children,r=typeof n=="function"?[n]:Tv(n);return process.env.NODE_ENV!=="production"&&(r.length>1?Fc(!1,"Find more than one child node with `children` in ResizeObserver. Please use ResizeObserver.Collection instead."):r.length===0&&Fc(!1,"`children` of ResizeObserver is empty. Nothing is in observe.")),r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(p8,"-").concat(i);return P.createElement(tR,V({},e,{key:a,ref:i===0?t:void 0}),o)})}var bd=P.forwardRef(h8);process.env.NODE_ENV!=="production"&&(bd.displayName="ResizeObserver");bd.Collection=$z;function nR(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function f8(e){return nR(e)instanceof ShadowRoot}function Dv(e){return f8(e)?nR(e):null}function vo(e){var t=P.useRef();t.current=e;var n=P.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function g8(){var e=Oe({},P);return e.useId}var u_=0,d_=g8();const m8=d_?function(e){var t=d_();return e||(process.env.NODE_ENV==="test"?"test-id":t)}:function(e){var t=P.useState("ssr-id"),n=$e(t,2),r=n[0],o=n[1];return P.useEffect(function(){var i=u_;u_+=1,o("rc_unique_".concat(i))},[]),e||(process.env.NODE_ENV==="test"?"test-id":r)},v8=function(){if(typeof navigator=="undefined"||typeof window=="undefined")return!1;var e=navigator.userAgent||navigator.vendor||window.opera;return/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw-(n|u)|c55\/|capi|ccwa|cdm-|cell|chtm|cldc|cmd-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc-s|devi|dica|dmob|do(c|p)o|ds(12|-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(-|_)|g1 u|g560|gene|gf-5|g-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd-(m|p|t)|hei-|hi(pt|ta)|hp( i|ip)|hs-c|ht(c(-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i-(20|go|ma)|i230|iac( |-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|-[a-w])|libw|lynx|m1-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|-([1-8]|c))|phil|pire|pl(ay|uc)|pn-2|po(ck|rt|se)|prox|psio|pt-g|qa-a|qc(07|12|21|32|60|-[2-7]|i-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h-|oo|p-)|sdk\/|se(c(-|0|1)|47|mc|nd|ri)|sgh-|shar|sie(-|m)|sk-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h-|v-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl-|tdg-|tel(i|m)|tim-|t-mo|to(pl|sh)|ts(70|m-|m3|m5)|tx-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas-|your|zeto|zte-/i.test(e==null?void 0:e.substr(0,4))};var b8=P.createContext({}),y8=function(e){ky(n,e);var t=Sy(n);function n(){return _y(this,n),t.apply(this,arguments)}return Cy(n,[{key:"render",value:function(){return this.props.children}}]),n}(P.Component);function rc(e){var t=P.useRef(!1),n=P.useState(e),r=$e(n,2),o=r[0],i=r[1];P.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,c){c&&t.current||i(s)}return[o,a]}var mo="none",Al="appear",Ml="enter",Nl="leave",p_="none",pr="prepare",na="start",ra="active",Ty="end",rR="prepared";function h_(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit".concat(e)]="webkit".concat(t),n["Moz".concat(e)]="moz".concat(t),n["ms".concat(e)]="MS".concat(t),n["O".concat(e)]="o".concat(t.toLowerCase()),n}function w8(e,t){var n={animationend:h_("Animation","AnimationEnd"),transitionend:h_("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var x8=w8(Ir(),typeof window!="undefined"?window:{}),oR={};if(Ir()){var _8=document.createElement("div");oR=_8.style}var Pl={};function iR(e){if(Pl[e])return Pl[e];var t=x8[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in oR)return Pl[e]=t[i],Pl[e]}return""}var aR=iR("animationend"),sR=iR("transitionend"),lR=!!(aR&&sR),f_=aR||"animationend",g_=sR||"transitionend";function m_(e,t){if(!e)return null;if(tr(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const C8=function(e){var t=H.useRef();function n(o){o&&(o.removeEventListener(g_,e),o.removeEventListener(f_,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(g_,e),o.addEventListener(f_,e),t.current=o)}return P.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var cR=Ir()?H.useLayoutEffect:H.useEffect,uR=function(e){return+setTimeout(e,16)},dR=function(e){return clearTimeout(e)};typeof window!="undefined"&&"requestAnimationFrame"in window&&(uR=function(e){return window.requestAnimationFrame(e)},dR=function(e){return window.cancelAnimationFrame(e)});var v_=0,yd=new Map;function pR(e){yd.delete(e)}var zc=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;v_+=1;var n=v_;function r(o){if(o===0)pR(n),e();else{var i=uR(function(){r(o-1)});yd.set(n,i)}}return r(t),n};zc.cancel=function(e){var t=yd.get(e);return pR(e),dR(t)};process.env.NODE_ENV!=="production"&&(zc.ids=function(){return yd});const k8=function(){var e=P.useRef(null);function t(){zc.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=zc(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return P.useEffect(function(){return function(){t()}},[]),[n,t]};var S8=[pr,na,ra,Ty],T8=[pr,rR],hR=!1,E8=!0;function fR(e){return e===ra||e===Ty}const O8=function(e,t,n){var r=rc(p_),o=$e(r,2),i=o[0],a=o[1],s=k8(),c=$e(s,2),l=c[0],u=c[1];function d(){a(pr,!0)}var p=t?T8:S8;return cR(function(){if(i!==p_&&i!==Ty){var f=p.indexOf(i),m=p[f+1],b=n(i);b===hR?a(m,!0):m&&l(function(v){function w(){v.isCanceled()||a(m,!0)}b===!0?w():Promise.resolve(b).then(w)})}},[e,i]),P.useEffect(function(){return function(){u()}},[]),[d,i]};function D8(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,c=r.motionLeave,l=c===void 0?!0:c,u=r.motionDeadline,d=r.motionLeaveImmediately,p=r.onAppearPrepare,f=r.onEnterPrepare,m=r.onLeavePrepare,b=r.onAppearStart,v=r.onEnterStart,w=r.onLeaveStart,_=r.onAppearActive,T=r.onEnterActive,y=r.onLeaveActive,k=r.onAppearEnd,S=r.onEnterEnd,x=r.onLeaveEnd,C=r.onVisibleChanged,O=rc(),D=$e(O,2),R=D[0],M=D[1],F=rc(mo),N=$e(F,2),I=N[0],j=N[1],$=rc(null),Y=$e($,2),U=Y[0],G=Y[1],K=H.useRef(!1),oe=H.useRef(null);function ne(){return n()}var re=H.useRef(!1);function ie(){j(mo,!0),G(null,!0)}var ce=vo(function(ue){if(I!==mo){var pe=ne();if(!(ue&&!ue.deadline&&ue.target!==pe)){var me=re.current,ye;I===Al&&me?ye=k==null?void 0:k(pe,ue):I===Ml&&me?ye=S==null?void 0:S(pe,ue):I===Nl&&me&&(ye=x==null?void 0:x(pe,ue)),me&&ye!==!1&&ie()}}}),se=C8(ce),J=$e(se,1),A=J[0],L=function(ue){switch(ue){case Al:return mn(mn(mn({},pr,p),na,b),ra,_);case Ml:return mn(mn(mn({},pr,f),na,v),ra,T);case Nl:return mn(mn(mn({},pr,m),na,w),ra,y);default:return{}}},z=P.useMemo(function(){return L(I)},[I]),Q=O8(I,!e,function(ue){if(ue===pr){var pe=z[pr];return pe?pe(ne()):hR}if(ae in z){var me;G(((me=z[ae])===null||me===void 0?void 0:me.call(z,ne(),null))||null)}return ae===ra&&I!==mo&&(A(ne()),u>0&&(clearTimeout(oe.current),oe.current=setTimeout(function(){ce({deadline:!0})},u))),ae===rR&&ie(),E8}),X=$e(Q,2),Z=X[0],ae=X[1],he=fR(ae);re.current=he,cR(function(){M(t);var ue=K.current;K.current=!0;var pe;!ue&&t&&s&&(pe=Al),ue&&t&&i&&(pe=Ml),(ue&&!t&&l||!ue&&d&&!t&&l)&&(pe=Nl);var me=L(pe);pe&&(e||me[pr])?(j(pe),Z()):j(mo)},[t]),H.useEffect(function(){(I===Al&&!s||I===Ml&&!i||I===Nl&&!l)&&j(mo)},[s,i,l]),H.useEffect(function(){return function(){K.current=!1,clearTimeout(oe.current)}},[]);var le=P.useRef(!1);H.useEffect(function(){R&&(le.current=!0),R!==void 0&&I===mo&&((le.current||R)&&(C==null||C(R)),le.current=!0)},[R,I]);var _e=U;return z[pr]&&ae===na&&(_e=Oe({transition:"none"},_e)),[I,ae,_e,R!=null?R:t]}function R8(e){var t=e;tr(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=P.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,c=o.removeOnLeave,l=c===void 0?!0:c,u=o.forceRender,d=o.children,p=o.motionName,f=o.leavedClassName,m=o.eventProps,b=P.useContext(b8),v=b.motion,w=n(o,v),_=H.useRef(),T=H.useRef();function y(){try{return _.current instanceof HTMLElement?_.current:nc(T.current)}catch(U){return null}}var k=D8(w,s,y,o),S=$e(k,4),x=S[0],C=S[1],O=S[2],D=S[3],R=P.useRef(D);D&&(R.current=!0);var M=P.useCallback(function(U){_.current=U,by(i,U)},[i]),F,N=Oe(Oe({},m),{},{visible:s});if(!d)F=null;else if(x===mo)D?F=d(Oe({},N),M):!l&&R.current&&f?F=d(Oe(Oe({},N),{},{className:f}),M):u||!l&&!f?F=d(Oe(Oe({},N),{},{style:{display:"none"}}),M):F=null;else{var I;C===pr?I="prepare":fR(C)?I="active":C===na&&(I="start");var j=m_(p,"".concat(x,"-").concat(I));F=d(Oe(Oe({},N),{},{className:Ro(m_(p,x),mn(mn({},j,j&&I),p,typeof p=="string")),style:O}),M)}if(P.isValidElement(F)&&gd(F)){var $=F,Y=$.ref;Y||(F=P.cloneElement(F,{ref:M}))}return P.createElement(y8,{ref:T},F)});return r.displayName="CSSMotion",r}const Ey=R8(lR);var Rv="add",Av="keep",Mv="remove",kf="removed";function A8(e){var t;return e&&tr(e)==="object"&&"key"in e?t=e:t={key:e},Oe(Oe({},t),{},{key:String(t.key)})}function Nv(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(A8)}function M8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=[],r=0,o=t.length,i=Nv(e),a=Nv(t);i.forEach(function(l){for(var u=!1,d=r;d<o;d+=1){var p=a[d];if(p.key===l.key){r<d&&(n=n.concat(a.slice(r,d).map(function(f){return Oe(Oe({},f),{},{status:Rv})})),r=d),n.push(Oe(Oe({},p),{},{status:Av})),r+=1,u=!0;break}}u||n.push(Oe(Oe({},l),{},{status:Mv}))}),r<o&&(n=n.concat(a.slice(r).map(function(l){return Oe(Oe({},l),{},{status:Rv})})));var s={};n.forEach(function(l){var u=l.key;s[u]=(s[u]||0)+1});var c=Object.keys(s).filter(function(l){return s[l]>1});return c.forEach(function(l){n=n.filter(function(u){var d=u.key,p=u.status;return d!==l||p!==Mv}),n.forEach(function(u){u.key===l&&(u.status=Av)})}),n}var N8=["component","children","onVisibleChanged","onAllRemoved"],P8=["status"],I8=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function j8(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Ey,n=function(r){ky(i,r);var o=Sy(i);function i(){var a;_y(this,i);for(var s=arguments.length,c=new Array(s),l=0;l<s;l++)c[l]=arguments[l];return a=o.call.apply(o,[this].concat(c)),mn(Ic(a),"state",{keyEntities:[]}),mn(Ic(a),"removeKey",function(u){var d=a.state.keyEntities,p=d.map(function(f){return f.key!==u?f:Oe(Oe({},f),{},{status:kf})});return a.setState({keyEntities:p}),p.filter(function(f){var m=f.status;return m!==kf}).length}),a}return Cy(i,[{key:"render",value:function(){var a=this,s=this.state.keyEntities,c=this.props,l=c.component,u=c.children,d=c.onVisibleChanged,p=c.onAllRemoved,f=Lc(c,N8),m=l||P.Fragment,b={};return I8.forEach(function(v){b[v]=f[v],delete f[v]}),delete f.keys,P.createElement(m,f,s.map(function(v,w){var _=v.status,T=Lc(v,P8),y=_===Rv||_===Av;return P.createElement(t,V({},b,{key:T.key,visible:y,eventProps:T,onVisibleChanged:function(k){if(d==null||d(k,{key:T.key}),!k){var S=a.removeKey(T.key);S===0&&p&&p()}}}),function(k,S){return u(Oe(Oe({},k),{},{index:w}),S)})}))}}],[{key:"getDerivedStateFromProps",value:function(a,s){var c=a.keys,l=s.keyEntities,u=Nv(c),d=M8(l,u);return{keyEntities:d.filter(function(p){var f=l.find(function(m){var b=m.key;return p.key===b});return!(f&&f.status===kf&&p.status===Mv)})}}}]),i}(P.Component);return mn(n,"defaultProps",{component:"div"}),n}j8(lR);function L8(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,c=o.x,l=c===void 0?0:c,u=o.y,d=u===void 0?0:u,p=P.useRef();if(!n||!n.points)return null;var f={position:"absolute"};if(n.autoArrow!==!1){var m=n.points[0],b=n.points[1],v=m[0],w=m[1],_=b[0],T=b[1];v===_||!["t","b"].includes(v)?f.top=d:v==="t"?f.top=0:f.bottom=0,w===T||!["l","r"].includes(w)?f.left=l:w==="l"?f.left=0:f.right=0}return P.createElement("div",{ref:p,className:Ro("".concat(t,"-arrow"),a),style:f},s)}function F8(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?P.createElement(Ey,V({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return P.createElement("div",{style:{zIndex:r},className:Ro("".concat(t,"-mask"),s)})}):null}var gR=P.memo(function(e){var t=e.children;return t},function(e,t){return t.cache});process.env.NODE_ENV!=="production"&&(gR.displayName="PopupContent");var mR=P.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,c=e.open,l=e.keepDom,u=e.fresh,d=e.onClick,p=e.mask,f=e.arrow,m=e.arrowPos,b=e.align,v=e.motion,w=e.maskMotion,_=e.forceRender,T=e.getPopupContainer,y=e.autoDestroy,k=e.portal,S=e.zIndex,x=e.onMouseEnter,C=e.onMouseLeave,O=e.onPointerEnter,D=e.ready,R=e.offsetX,M=e.offsetY,F=e.offsetR,N=e.offsetB,I=e.onAlign,j=e.onPrepare,$=e.stretch,Y=e.targetWidth,U=e.targetHeight,G=typeof n=="function"?n():n,K=c||l,oe=(T==null?void 0:T.length)>0,ne=P.useState(!T||!oe),re=$e(ne,2),ie=re[0],ce=re[1];if(Nn(function(){!ie&&oe&&a&&ce(!0)},[ie,oe,a]),!ie)return null;var se="auto",J={left:"-1000vw",top:"-1000vh",right:se,bottom:se};if(D||!c){var A,L=b.points,z=b.dynamicInset||((A=b._experimental)===null||A===void 0?void 0:A.dynamicInset),Q=z&&L[0][1]==="r",X=z&&L[0][0]==="b";Q?(J.right=F,J.left=se):(J.left=R,J.right=se),X?(J.bottom=N,J.top=se):(J.top=M,J.bottom=se)}var Z={};return $&&($.includes("height")&&U?Z.height=U:$.includes("minHeight")&&U&&(Z.minHeight=U),$.includes("width")&&Y?Z.width=Y:$.includes("minWidth")&&Y&&(Z.minWidth=Y)),c||(Z.pointerEvents="none"),P.createElement(k,{open:_||K,getContainer:T&&function(){return T(a)},autoDestroy:y},P.createElement(F8,{prefixCls:o,open:c,zIndex:S,mask:p,motion:w}),P.createElement(bd,{onResize:I,disabled:!c},function(ae){return P.createElement(Ey,V({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:_,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:j,onEnterPrepare:j,visible:c,onVisibleChanged:function(he){var le;v==null||(le=v.onVisibleChanged)===null||le===void 0||le.call(v,he),s(he)}}),function(he,le){var _e=he.className,ue=he.style,pe=Ro(o,_e,r);return P.createElement("div",{ref:zD(ae,t,le),className:pe,style:Oe(Oe(Oe(Oe({"--arrow-x":"".concat(m.x||0,"px"),"--arrow-y":"".concat(m.y||0,"px")},J),Z),ue),{},{boxSizing:"border-box",zIndex:S},i),onMouseEnter:x,onMouseLeave:C,onPointerEnter:O,onClick:d},f&&P.createElement(L8,{prefixCls:o,arrow:f,arrowPos:m,align:b}),P.createElement(gR,{cache:!c&&!u},G))})}))});process.env.NODE_ENV!=="production"&&(mR.displayName="Popup");var vR=P.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=gd(n),i=P.useCallback(function(s){by(t,r?r(s):s)},[r]),a=yy(i,n.ref);return o?P.cloneElement(n,{ref:a}):n});process.env.NODE_ENV!=="production"&&(vR.displayName="TriggerWrapper");var b_=P.createContext(null);function y_(e){return e?Array.isArray(e)?e:[e]:[]}function B8(e,t,n,r){return P.useMemo(function(){var o=y_(n!=null?n:t),i=y_(r!=null?r:t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}const H8=function(e){if(!e)return!1;if(e instanceof Element){if(e.offsetParent)return!0;if(e.getBBox){var t=e.getBBox(),n=t.width,r=t.height;if(n||r)return!0}if(e.getBoundingClientRect){var o=e.getBoundingClientRect(),i=o.width,a=o.height;if(i||a)return!0}}return!1};function $8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;return n?e[0]===t[0]:e[0]===t[0]&&e[1]===t[1]}function z8(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,c=i[a];if($8((s=e[c])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(c)}return""}function w_(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function rl(e){return e.ownerDocument.defaultView}function Pv(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=rl(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(c){return r.includes(c)})&&t.push(n),n=n.parentElement}return t}function Ns(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function Ja(e){return Ns(parseFloat(e),0)}function x_(e,t){var n=Oe({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=rl(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,c=o.borderBottomWidth,l=o.borderLeftWidth,u=o.borderRightWidth,d=r.getBoundingClientRect(),p=r.offsetHeight,f=r.clientHeight,m=r.offsetWidth,b=r.clientWidth,v=Ja(s),w=Ja(c),_=Ja(l),T=Ja(u),y=Ns(Math.round(d.width/m*1e3)/1e3),k=Ns(Math.round(d.height/p*1e3)/1e3),S=(m-b-_-T)*y,x=(p-f-v-w)*k,C=v*k,O=w*k,D=_*y,R=T*y,M=0,F=0;if(i==="clip"){var N=Ja(a);M=N*y,F=N*k}var I=d.x+D-M,j=d.y+C-F,$=I+d.width+2*M-D-R-S,Y=j+d.height+2*F-C-O-x;n.left=Math.max(n.left,I),n.top=Math.max(n.top,j),n.right=Math.min(n.right,$),n.bottom=Math.min(n.bottom,Y)}}),n}function __(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n="".concat(t),r=n.match(/^(.*)\%$/);return r?e*(parseFloat(r[1])/100):parseFloat(n)}function C_(e,t){var n=t||[],r=$e(n,2),o=r[0],i=r[1];return[__(e.width,o),__(e.height,i)]}function k_(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function zi(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=e.y+e.height/2,r==="l"?o=e.x:r==="r"?o=e.x+e.width:o=e.x+e.width/2,{x:o,y:i}}function po(e,t){var n={t:"b",b:"t",l:"r",r:"l"};return e.map(function(r,o){return o===t?n[r]||"c":r}).join("")}function W8(e,t,n,r,o,i,a){var s=P.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),c=$e(s,2),l=c[0],u=c[1],d=P.useRef(0),p=P.useMemo(function(){return t?Pv(t):[]},[t]),f=P.useRef({}),m=function(){f.current={}};e||m();var b=vo(function(){if(t&&n&&e){let Yn=function(Qo,lo){var Ai=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pe,fl=G.x+Qo,Mi=G.y+lo,gl=fl+A,Fa=Mi+J,ml=Math.max(fl,Ai.left),Kd=Math.max(Mi,Ai.top),Xd=Math.min(gl,Ai.right),ep=Math.min(Fa,Ai.bottom);return Math.max(0,(Xd-ml)*(ep-Kd))},hl=function(){xr=G.y+gt,_r=xr+J,Un=G.x+ft,qr=Un+A};var _,T,y=t,k=y.ownerDocument,S=rl(y),x=S.getComputedStyle(y),C=x.width,O=x.height,D=x.position,R=y.style.left,M=y.style.top,F=y.style.right,N=y.style.bottom,I=y.style.overflow,j=Oe(Oe({},o[r]),i),$=k.createElement("div");(_=y.parentElement)===null||_===void 0||_.appendChild($),$.style.left="".concat(y.offsetLeft,"px"),$.style.top="".concat(y.offsetTop,"px"),$.style.position=D,$.style.height="".concat(y.offsetHeight,"px"),$.style.width="".concat(y.offsetWidth,"px"),y.style.left="0",y.style.top="0",y.style.right="auto",y.style.bottom="auto",y.style.overflow="hidden";var Y;if(Array.isArray(n))Y={x:n[0],y:n[1],width:0,height:0};else{var U=n.getBoundingClientRect();Y={x:U.x,y:U.y,width:U.width,height:U.height}}var G=y.getBoundingClientRect(),K=k.documentElement,oe=K.clientWidth,ne=K.clientHeight,re=K.scrollWidth,ie=K.scrollHeight,ce=K.scrollTop,se=K.scrollLeft,J=G.height,A=G.width,L=Y.height,z=Y.width,Q={left:0,top:0,right:oe,bottom:ne},X={left:-se,top:-ce,right:re-se,bottom:ie-ce},Z=j.htmlRegion,ae="visible",he="visibleFirst";Z!=="scroll"&&Z!==he&&(Z=ae);var le=Z===he,_e=x_(X,p),ue=x_(Q,p),pe=Z===ae?ue:_e,me=le?ue:pe;y.style.left="auto",y.style.top="auto",y.style.right="0",y.style.bottom="0";var ye=y.getBoundingClientRect();y.style.left=R,y.style.top=M,y.style.right=F,y.style.bottom=N,y.style.overflow=I,(T=y.parentElement)===null||T===void 0||T.removeChild($);var we=Ns(Math.round(A/parseFloat(C)*1e3)/1e3),Ie=Ns(Math.round(J/parseFloat(O)*1e3)/1e3);if(we===0||Ie===0||Ms(n)&&!H8(n))return;var st=j.offset,Ve=j.targetOffset,Me=C_(G,st),be=$e(Me,2),je=be[0],dt=be[1],Bt=C_(Y,Ve),wt=$e(Bt,2),ve=wt[0],Se=wt[1];Y.x-=ve,Y.y-=Se;var ot=j.points||[],qt=$e(ot,2),Ht=qt[0],yr=qt[1],sr=k_(yr),pn=k_(Ht),zo=zi(Y,sr),Wo=zi(G,pn),zn=Oe({},j),ft=zo.x-Wo.x+je,gt=zo.y-Wo.y+dt,mt=Yn(ft,gt),io=Yn(ft,gt,ue),Wn=zi(Y,["t","l"]),Ur=zi(G,["t","l"]),lr=zi(Y,["b","r"]),Yr=zi(G,["b","r"]),At=j.overflow||{},Vt=At.adjustX,Ia=At.adjustY,cr=At.shiftX,wr=At.shiftY,ao=function(Qo){return typeof Qo=="boolean"?Qo:Qo>=0},xr,_r,Un,qr;hl();var Di=ao(Ia),Uo=pn[0]===sr[0];if(Di&&pn[0]==="t"&&(_r>me.bottom||f.current.bt)){var Cr=gt;Uo?Cr-=J-L:Cr=Wn.y-Yr.y-dt;var Re=Yn(ft,Cr),Mt=Yn(ft,Cr,ue);Re>mt||Re===mt&&(!le||Mt>=io)?(f.current.bt=!0,gt=Cr,dt=-dt,zn.points=[po(pn,0),po(sr,0)]):f.current.bt=!1}if(Di&&pn[0]==="b"&&(xr<me.top||f.current.tb)){var Yo=gt;Uo?Yo+=J-L:Yo=lr.y-Ur.y-dt;var yn=Yn(ft,Yo),$d=Yn(ft,Yo,ue);yn>mt||yn===mt&&(!le||$d>=io)?(f.current.tb=!0,gt=Yo,dt=-dt,zn.points=[po(pn,0),po(sr,0)]):f.current.tb=!1}var il=ao(Vt),al=pn[1]===sr[1];if(il&&pn[1]==="l"&&(qr>me.right||f.current.rl)){var qo=ft;al?qo-=A-z:qo=Wn.x-Yr.x-je;var sl=Yn(qo,gt),zd=Yn(qo,gt,ue);sl>mt||sl===mt&&(!le||zd>=io)?(f.current.rl=!0,ft=qo,je=-je,zn.points=[po(pn,1),po(sr,1)]):f.current.rl=!1}if(il&&pn[1]==="r"&&(Un<me.left||f.current.lr)){var Vo=ft;al?Vo+=A-z:Vo=lr.x-Ur.x-je;var ll=Yn(Vo,gt),Wd=Yn(Vo,gt,ue);ll>mt||ll===mt&&(!le||Wd>=io)?(f.current.lr=!0,ft=Vo,je=-je,zn.points=[po(pn,1),po(sr,1)]):f.current.lr=!1}hl();var kr=cr===!0?0:cr;typeof kr=="number"&&(Un<ue.left&&(ft-=Un-ue.left-je,Y.x+z<ue.left+kr&&(ft+=Y.x-ue.left+z-kr)),qr>ue.right&&(ft-=qr-ue.right-je,Y.x>ue.right-kr&&(ft+=Y.x-ue.right+kr)));var Vr=wr===!0?0:wr;typeof Vr=="number"&&(xr<ue.top&&(gt-=xr-ue.top-dt,Y.y+L<ue.top+Vr&&(gt+=Y.y-ue.top+L-Vr)),_r>ue.bottom&&(gt-=_r-ue.bottom-dt,Y.y>ue.bottom-Vr&&(gt+=Y.y-ue.bottom+Vr)));var ja=G.x+ft,cl=ja+A,so=G.y+gt,Go=so+J,La=Y.x,Ri=La+z,Gr=Y.y,Ud=Gr+L,Yd=Math.max(ja,La),qd=Math.min(cl,Ri),ul=(Yd+qd)/2,Vd=ul-ja,Gd=Math.max(so,Gr),Qd=Math.min(Go,Ud),dl=(Gd+Qd)/2,Jd=dl-so;a==null||a(t,zn);var Zd=ye.right-G.x-(ft+G.width),pl=ye.bottom-G.y-(gt+G.height);u({ready:!0,offsetX:ft/we,offsetY:gt/Ie,offsetR:Zd/we,offsetB:pl/Ie,arrowX:Vd/we,arrowY:Jd/Ie,scaleX:we,scaleY:Ie,align:zn})}}),v=function(){d.current+=1;var _=d.current;Promise.resolve().then(function(){d.current===_&&b()})},w=function(){u(function(_){return Oe(Oe({},_),{},{ready:!1})})};return Nn(w,[r]),Nn(function(){e||w()},[e]),[l.ready,l.offsetX,l.offsetY,l.offsetR,l.offsetB,l.arrowX,l.arrowY,l.scaleX,l.scaleY,l.align,v]}function U8(e,t,n,r,o){Nn(function(){if(e&&t&&n){let d=function(){r(),o()};var i=t,a=n,s=Pv(i),c=Pv(a),l=rl(a),u=new Set([l].concat(Cv(s),Cv(c)));return u.forEach(function(p){p.addEventListener("scroll",d,{passive:!0})}),l.addEventListener("resize",d,{passive:!0}),r(),function(){u.forEach(function(p){p.removeEventListener("scroll",d),l.removeEventListener("resize",d)})}}},[e,t,n])}function Y8(e,t,n,r,o,i,a,s){var c=P.useRef(e);c.current=e,P.useEffect(function(){if(t&&r&&(!o||i)){var l=function(v){var w=v.target;c.current&&!a(w)&&s(!1)},u=rl(r);u.addEventListener("mousedown",l,!0),u.addEventListener("contextmenu",l,!0);var d=Dv(n);if(d&&(d.addEventListener("mousedown",l,!0),d.addEventListener("contextmenu",l,!0)),process.env.NODE_ENV!=="production"){var p,f,m=n==null||(p=n.getRootNode)===null||p===void 0?void 0:p.call(n),b=(f=r.getRootNode)===null||f===void 0?void 0:f.call(r);Fc(m===b,"trigger element and popup element should in same shadow root.")}return function(){u.removeEventListener("mousedown",l,!0),u.removeEventListener("contextmenu",l,!0),d&&(d.removeEventListener("mousedown",l,!0),d.removeEventListener("contextmenu",l,!0))}}},[t,n,r,o,i])}var q8=["prefixCls","children","action","showAction","hideAction","popupVisible","defaultPopupVisible","onPopupVisibleChange","afterPopupVisibleChange","mouseEnterDelay","mouseLeaveDelay","focusDelay","blurDelay","mask","maskClosable","getPopupContainer","forceRender","autoDestroy","destroyPopupOnHide","popup","popupClassName","popupStyle","popupPlacement","builtinPlacements","popupAlign","zIndex","stretch","getPopupClassNameFromAlign","fresh","alignPoint","onPopupClick","onPopupAlign","arrow","popupMotion","maskMotion","popupTransitionName","popupAnimation","maskTransitionName","maskAnimation","className","getTriggerDOMNode"];function V8(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:xy,t=P.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,c=s===void 0?"hover":s,l=n.showAction,u=n.hideAction,d=n.popupVisible,p=n.defaultPopupVisible,f=n.onPopupVisibleChange,m=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,w=v===void 0?.1:v,_=n.focusDelay,T=n.blurDelay,y=n.mask,k=n.maskClosable,S=k===void 0?!0:k,x=n.getPopupContainer,C=n.forceRender,O=n.autoDestroy,D=n.destroyPopupOnHide,R=n.popup,M=n.popupClassName,F=n.popupStyle,N=n.popupPlacement,I=n.builtinPlacements,j=I===void 0?{}:I,$=n.popupAlign,Y=n.zIndex,U=n.stretch,G=n.getPopupClassNameFromAlign,K=n.fresh,oe=n.alignPoint,ne=n.onPopupClick,re=n.onPopupAlign,ie=n.arrow,ce=n.popupMotion,se=n.maskMotion,J=n.popupTransitionName,A=n.popupAnimation,L=n.maskTransitionName,z=n.maskAnimation,Q=n.className,X=n.getTriggerDOMNode,Z=Lc(n,q8),ae=O||D||!1,he=P.useState(!1),le=$e(he,2),_e=le[0],ue=le[1];Nn(function(){ue(v8())},[]);var pe=P.useRef({}),me=P.useContext(b_),ye=P.useMemo(function(){return{registerSubPopup:function(ge,Be){pe.current[ge]=Be,me==null||me.registerSubPopup(ge,Be)}}},[me]),we=m8(),Ie=P.useState(null),st=$e(Ie,2),Ve=st[0],Me=st[1],be=P.useRef(null),je=vo(function(ge){be.current=ge,Ms(ge)&&Ve!==ge&&Me(ge),me==null||me.registerSubPopup(we,ge)}),dt=P.useState(null),Bt=$e(dt,2),wt=Bt[0],ve=Bt[1],Se=P.useRef(null),ot=vo(function(ge){Ms(ge)&&wt!==ge&&(ve(ge),Se.current=ge)}),qt=P.Children.only(a),Ht=(qt==null?void 0:qt.props)||{},yr={},sr=vo(function(ge){var Be,rn,Gt=wt;return(Gt==null?void 0:Gt.contains(ge))||((Be=Dv(Gt))===null||Be===void 0?void 0:Be.host)===ge||ge===Gt||(Ve==null?void 0:Ve.contains(ge))||((rn=Dv(Ve))===null||rn===void 0?void 0:rn.host)===ge||ge===Ve||Object.values(pe.current).some(function(kt){return(kt==null?void 0:kt.contains(ge))||ge===kt})}),pn=w_(i,ce,A,J),zo=w_(i,se,z,L),Wo=P.useState(p||!1),zn=$e(Wo,2),ft=zn[0],gt=zn[1],mt=d!=null?d:ft,io=vo(function(ge){d===void 0&&gt(ge)});Nn(function(){gt(d||!1)},[d]);var Wn=P.useRef(mt);Wn.current=mt;var Ur=P.useRef([]);Ur.current=[];var lr=vo(function(ge){var Be;io(ge),((Be=Ur.current[Ur.current.length-1])!==null&&Be!==void 0?Be:mt)!==ge&&(Ur.current.push(ge),f==null||f(ge))}),Yr=P.useRef(),At=function(){clearTimeout(Yr.current)},Vt=function(ge){var Be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;At(),Be===0?lr(ge):Yr.current=setTimeout(function(){lr(ge)},Be*1e3)};P.useEffect(function(){return At},[]);var Ia=P.useState(!1),cr=$e(Ia,2),wr=cr[0],ao=cr[1];Nn(function(ge){(!ge||mt)&&ao(!0)},[mt]);var xr=P.useState(null),_r=$e(xr,2),Un=_r[0],qr=_r[1],Di=P.useState([0,0]),Uo=$e(Di,2),Cr=Uo[0],Re=Uo[1],Mt=function(ge){Re([ge.clientX,ge.clientY])},Yo=W8(mt,Ve,oe?Cr:wt,N,j,$,re),yn=$e(Yo,11),$d=yn[0],il=yn[1],al=yn[2],qo=yn[3],sl=yn[4],zd=yn[5],Vo=yn[6],ll=yn[7],Wd=yn[8],kr=yn[9],Vr=yn[10],ja=B8(_e,c,l,u),cl=$e(ja,2),so=cl[0],Go=cl[1],La=so.has("click"),Ri=Go.has("click")||Go.has("contextMenu"),Gr=vo(function(){wr||Vr()}),Ud=function(){Wn.current&&oe&&Ri&&Vt(!1)};U8(mt,wt,Ve,Gr,Ud),Nn(function(){Gr()},[Cr,N]),Nn(function(){mt&&!(j!=null&&j[N])&&Gr()},[JSON.stringify($)]);var Yd=P.useMemo(function(){var ge=z8(j,i,kr,oe);return Ro(ge,G==null?void 0:G(kr))},[kr,G,j,i,oe]);P.useImperativeHandle(r,function(){return{nativeElement:Se.current,popupElement:be.current,forceAlign:Gr}});var qd=P.useState(0),ul=$e(qd,2),Vd=ul[0],Gd=ul[1],Qd=P.useState(0),dl=$e(Qd,2),Jd=dl[0],Zd=dl[1],pl=function(){if(U&&wt){var ge=wt.getBoundingClientRect();Gd(ge.width),Zd(ge.height)}},Yn=function(){pl(),Gr()},hl=function(ge){ao(!1),Vr(),m==null||m(ge)},Qo=function(){return new Promise(function(ge){pl(),qr(function(){return ge})})};Nn(function(){Un&&(Vr(),Un(),qr(null))},[Un]);function lo(ge,Be,rn,Gt){yr[ge]=function(kt){var vl;Gt==null||Gt(kt),Vt(Be,rn);for(var tp=arguments.length,n0=new Array(tp>1?tp-1:0),bl=1;bl<tp;bl++)n0[bl-1]=arguments[bl];(vl=Ht[ge])===null||vl===void 0||vl.call.apply(vl,[Ht,kt].concat(n0))}}(La||Ri)&&(yr.onClick=function(ge){var Be;Wn.current&&Ri?Vt(!1):!Wn.current&&La&&(Mt(ge),Vt(!0));for(var rn=arguments.length,Gt=new Array(rn>1?rn-1:0),kt=1;kt<rn;kt++)Gt[kt-1]=arguments[kt];(Be=Ht.onClick)===null||Be===void 0||Be.call.apply(Be,[Ht,ge].concat(Gt))}),Y8(mt,Ri,wt,Ve,y,S,sr,Vt);var Ai=so.has("hover"),fl=Go.has("hover"),Mi,gl;Ai&&(lo("onMouseEnter",!0,b,function(ge){Mt(ge)}),lo("onPointerEnter",!0,b,function(ge){Mt(ge)}),Mi=function(ge){(mt||wr)&&Ve!==null&&Ve!==void 0&&Ve.contains(ge.target)&&Vt(!0,b)},oe&&(yr.onMouseMove=function(ge){var Be;(Be=Ht.onMouseMove)===null||Be===void 0||Be.call(Ht,ge)})),fl&&(lo("onMouseLeave",!1,w),lo("onPointerLeave",!1,w),gl=function(){Vt(!1,w)}),so.has("focus")&&lo("onFocus",!0,_),Go.has("focus")&&lo("onBlur",!1,T),so.has("contextMenu")&&(yr.onContextMenu=function(ge){var Be;Wn.current&&Go.has("contextMenu")?Vt(!1):(Mt(ge),Vt(!0)),ge.preventDefault();for(var rn=arguments.length,Gt=new Array(rn>1?rn-1:0),kt=1;kt<rn;kt++)Gt[kt-1]=arguments[kt];(Be=Ht.onContextMenu)===null||Be===void 0||Be.call.apply(Be,[Ht,ge].concat(Gt))}),Q&&(yr.className=Ro(Ht.className,Q));var Fa=Oe(Oe({},Ht),yr),ml={},Kd=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Kd.forEach(function(ge){Z[ge]&&(ml[ge]=function(){for(var Be,rn=arguments.length,Gt=new Array(rn),kt=0;kt<rn;kt++)Gt[kt]=arguments[kt];(Be=Fa[ge])===null||Be===void 0||Be.call.apply(Be,[Fa].concat(Gt)),Z[ge].apply(Z,Gt)})});var Xd=P.cloneElement(qt,Oe(Oe({},Fa),ml)),ep={x:zd,y:Vo},LM=ie?Oe({},ie!==!0?ie:{}):null;return P.createElement(P.Fragment,null,P.createElement(bd,{disabled:!mt,ref:ot,onResize:Yn},P.createElement(vR,{getTriggerDOMNode:X},Xd)),P.createElement(b_.Provider,{value:ye},P.createElement(mR,{portal:e,ref:je,prefixCls:i,popup:R,className:Ro(M,Yd),style:F,target:wt,onMouseEnter:Mi,onMouseLeave:gl,onPointerEnter:Mi,zIndex:Y,open:mt,keepDom:wr,fresh:K,onClick:ne,mask:y,motion:pn,maskMotion:zo,onVisibleChanged:hl,onPrepare:Qo,forceRender:C,autoDestroy:ae,getPopupContainer:x,align:kr,arrow:LM,arrowPos:ep,ready:$d,offsetX:il,offsetY:al,offsetR:qo,offsetB:sl,onAlign:Gr,stretch:U,targetWidth:Vd/ll,targetHeight:Jd/Wd})))});return process.env.NODE_ENV!=="production"&&(t.displayName="Trigger"),t}const G8=V8(xy);var Wi={shiftX:64,adjustY:1},Ui={adjustX:1,shiftY:!0},Vn=[0,0],Q8={left:{points:["cr","cl"],overflow:Ui,offset:[-4,0],targetOffset:Vn},right:{points:["cl","cr"],overflow:Ui,offset:[4,0],targetOffset:Vn},top:{points:["bc","tc"],overflow:Wi,offset:[0,-4],targetOffset:Vn},bottom:{points:["tc","bc"],overflow:Wi,offset:[0,4],targetOffset:Vn},topLeft:{points:["bl","tl"],overflow:Wi,offset:[0,-4],targetOffset:Vn},leftTop:{points:["tr","tl"],overflow:Ui,offset:[-4,0],targetOffset:Vn},topRight:{points:["br","tr"],overflow:Wi,offset:[0,-4],targetOffset:Vn},rightTop:{points:["tl","tr"],overflow:Ui,offset:[4,0],targetOffset:Vn},bottomRight:{points:["tr","br"],overflow:Wi,offset:[0,4],targetOffset:Vn},rightBottom:{points:["bl","br"],overflow:Ui,offset:[4,0],targetOffset:Vn},bottomLeft:{points:["tl","bl"],overflow:Wi,offset:[0,4],targetOffset:Vn},leftBottom:{points:["br","bl"],overflow:Ui,offset:[-4,0],targetOffset:Vn}},J8=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow"],Z8=function(e,t){var n=e.overlayClassName,r=e.trigger,o=r===void 0?["hover"]:r,i=e.mouseEnterDelay,a=i===void 0?0:i,s=e.mouseLeaveDelay,c=s===void 0?.1:s,l=e.overlayStyle,u=e.prefixCls,d=u===void 0?"rc-tooltip":u,p=e.children,f=e.onVisibleChange,m=e.afterVisibleChange,b=e.transitionName,v=e.animation,w=e.motion,_=e.placement,T=_===void 0?"right":_,y=e.align,k=y===void 0?{}:y,S=e.destroyTooltipOnHide,x=S===void 0?!1:S,C=e.defaultVisible,O=e.getTooltipContainer,D=e.overlayInnerStyle,R=e.overlay,M=e.id,F=e.showArrow,N=F===void 0?!0:F,I=Lc(e,J8),j=H.useRef(null);H.useImperativeHandle(t,function(){return j.current});var $=Oe({},I);"visible"in e&&($.popupVisible=e.visible);var Y=function(){return P.createElement(mz,{key:"content",prefixCls:d,id:M,overlayInnerStyle:D},R)};return P.createElement(G8,V({popupClassName:n,prefixCls:d,popup:Y,action:o,builtinPlacements:Q8,popupPlacement:T,ref:j,popupAlign:k,getPopupContainer:O,onPopupVisibleChange:f,afterPopupVisibleChange:m,popupTransitionName:b,popupAnimation:v,popupMotion:w,defaultPopupVisible:C,autoDestroy:x,mouseLeaveDelay:c,popupStyle:l,mouseEnterDelay:a,arrow:N},$),p)};const K8=H.forwardRef(Z8),X8="_breakLongWord_1947o_272",eW="_rcToolTipZoomIn_1947o_1",tW="_rcToolTipZoomOut_1947o_1",Sf={breakLongWord:X8,rcToolTipZoomIn:eW,rcToolTipZoomOut:tW},To=Object.freeze({SISENSE_NAMESPACE:"sis-scope",TEXT_PRIMARY:"slf-text-primary",TEXT_SECONDARY:"slf-text-secondary",TEXT_SECONDARY_HOVER:"slf-text-secondary-hov",TEXT_HREF:"slf-text-href",TEXT_HREF_HOVER:"slf-text-href-hov"}),bR=e=>{const t=e,{breakingLongWord:n,hideArrow:r=!1,overlayClassName:o,overlay:i,imgOverlay:a=!1,semanticText:s}=t,c=Ft(t,["breakingLongWord","hideArrow","overlayClassName","overlay","imgOverlay","semanticText"]),l=Te(o,"slf-default",To.SISENSE_NAMESPACE,{"hide-arrow":r,[Sf.breakLongWord]:n,[Sf.semanticText]:s,[Sf.semanticText]:s});return E.jsx(K8,xe(ee({destroyTooltipOnHide:!0,overlay:typeof i=="string"?a?E.jsx("img",{src:i}):E.jsx("div",{dangerouslySetInnerHTML:{__html:i}}):i},c),{overlayClassName:l}))},nW="_popover_wakdx_1",rW="_popoverMask_wakdx_6",S_={popover:nW,popoverMask:rW},oW=()=>{},iW=1069,bs=e=>{const{bubbleMouseEvents:t=!1,level:n=0,mask:r=!0,onRequestClose:o=oW,visible:i=!1,zIndex:a=iW,maskClassName:s,getTooltipContainer:c}=e,l=()=>{let d=document.body;return c&&(d=c()),d},u=d=>{t||(d.preventDefault(),d.stopPropagation())};return E.jsxs(E.Fragment,{children:[i&&r&&E.jsx(aW,{portalRootEl:l(),children:E.jsx("div",{className:Te(S_.popoverMask,s),style:{zIndex:(a+n).toString()},onClick:d=>o==null?void 0:o(d.nativeEvent)})}),E.jsx(bR,xe(ee({},e),{overlayClassName:S_.popover,hideArrow:!0,onClick:u,zIndex:a+n+1,align:e.align}))]})},aW=e=>vn.createPortal(e.children,e.portalRootEl);var Iv=(e=>(e.topLeft="tl",e.topCenter="tc",e.topRight="tr",e.centerLeft="cl",e.centerCenter="cc",e.centerRight="cr",e.bottomLeft="bl",e.bottomCenter="bc",e.bottomRight="br",e))(Iv||{});const sW=e=>{const{onRequestClose:t,onClick:n,onKeyPress:r,sortingPopup:o,className:i,getTooltipContainer:a}=e;return E.jsx(bs,{bubbleMouseEvents:!0,level:0,mask:!0,placement:"bottom",onVisibleChange:s=>{},trigger:["click"],overlay:()=>o,onRequestClose:t,getTooltipContainer:a,visible:o!==null,align:{points:[Iv.topLeft,Iv.bottomRight]},children:E.jsx("span",{role:"button","aria-label":"Show sorting settings pop-up",tabIndex:0,onClick:n,onKeyPress:r,className:i})})},T_=50,lW=new RegExp(`<\\/?[\\w\\s="/.':;#-\\/\\?]+>`),Tf={TEXT:"text",HTML:"html",COMPONENT:"component"};class yR extends P.PureComponent{constructor(t){super(t),B(this,"cellEl"),B(this,"metadataClassName"),B(this,"virtualBorderStyle"),B(this,"cellStyle"),B(this,"cellContentStyle"),B(this,"databarStyle"),B(this,"cachedHtml"),B(this,"timeoutId"),B(this,"isMouseInCell"),B(this,"onCellClick",n=>{const{isDataCell:r,dataNode:o,treeNode:i,columnTreeNode:a,rowTreeNode:s,measureTreeNode:c,cellMetadata:l,onCellClick:u}=this.props;let d;a?d=o:i&&(d=i),u&&u({event:n,isDataCell:r,dataNode:d,rowTreeNode:s,columnTreeNode:a,measureTreeNode:c,cellMetadata:l,cell:this})}),B(this,"onCellEnter",n=>{const{onCellEnter:r,cellMetadata:o}=this.props,i={domEvent:n,metadata:o,cell:o?o.cellData:void 0};this.isMouseInCell||(this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),n.persist(),this.timeoutId=setTimeout(()=>{r&&r(i),this.timeoutId=void 0,this.isMouseInCell=!0},100))}),B(this,"onCellLeave",n=>{const{onCellLeave:r,cellMetadata:o}=this.props,i={domEvent:n,metadata:o,cell:o?o.cellData:void 0};this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=void 0),n.persist(),r&&this.isMouseInCell&&(r(i),this.isMouseInCell=!1)}),B(this,"onResizeStartHandler",()=>{const{parent:n}=this.props,{merge:r}=this.state;n&&n.resizeColumnStart&&n.resizeColumnStart();const o=this.props.columnIndex+Gh(r);let i=0;return n&&n.getColumnWidth&&(i=n.getColumnWidth(o)),i}),B(this,"onResizeHandler",n=>{const{parent:r,columnIndex:o}=this.props,{merge:i}=this.state;if(r&&r.resizeColumn){const a=o+Gh(i),s=Math.max(T_,n),c=[[a,s]],l={columnIndex:a},u={width:!0};r.resizeColumn(c,l,u)}}),B(this,"onResizeEndHandler",n=>{const{parent:r,columnIndex:o}=this.props,{merge:i}=this.state;if(r&&r.resizeColumnEnd){const a=o+Gh(i),s=Math.max(T_,n);r.resizeColumnEnd(s,a)}}),B(this,"onRangeMinMaxChange",(n,r=this.props)=>{const{dataNode:o,measureTreeNode:i}=r,a=g2(n.rangeMinMax,o,i);a&&(this.cellStyle=void 0,this.setState({backgroundColor:a}))}),B(this,"setSortingPopup",n=>{const r=n!==null;this.setState(o=>xe(ee({},o),{sortIconShouldBeVisible:r,sortingPopup:n}))}),B(this,"handleSortingIconClick",n=>{n.preventDefault(),n.stopPropagation(),this.props.onSortingSettingsChanged(this.props.treeNode,this.props.metadata,this)}),B(this,"createMarkup",n=>((!this.cachedHtml||n!==this.cachedHtml.data)&&(this.cachedHtml={data:n,html:{__html:n}}),this.cachedHtml.html)),B(this,"onCellRef",n=>{n&&(this.cellEl=n)}),this.state={isDrilled:!1,isSelected:this.getSelectStatus(),sortIconShouldBeVisible:!1,sortingPopup:null,merge:t.merge?t.merge:{colSpan:t.colSpan,rowSpan:t.rowSpan},isEmbedImage:this.getIsEmbedImageStatus(t)}}componentDidMount(){if(this.props.tableSize){this.props.tableSize.notifyChange(),this.props.tableSize.on(os,this.onRangeMinMaxChange);const t=this.props.tableSize.getRangeMinMax();t&&this.onRangeMinMaxChange(t)}this.dataBarsCheck()}UNSAFE_componentWillReceiveProps(t){if((this.props.metadata!==t.metadata||this.props.rowMetadata!==t.rowMetadata||this.props.columnMetadata!==t.columnMetadata||this.props.rowIndex!==t.rowIndex||this.props.columnIndex!==t.columnIndex||this.props.fixedWidth!==t.fixedWidth)&&(this.metadataClassName=void 0),(this.props.borderWidth!==t.borderWidth||this.props.borderColor!==t.borderColor||this.props.colWidth!==t.colWidth)&&(this.virtualBorderStyle=void 0,this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0),(this.props.isDataCell!==t.isDataCell||this.props.treeNode!==t.treeNode||this.props.dataNode!==t.dataNode||$a(this.props)!==$a(t))&&(this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.setState({isSelected:!1,backgroundColor:void 0})),this.props.tableSize!==t.tableSize&&(this.props.tableSize&&this.props.tableSize.off(os,this.onRangeMinMaxChange),t.tableSize)){t.tableSize.on(os,this.onRangeMinMaxChange);const r=t.tableSize.getRangeMinMax();r&&this.onRangeMinMaxChange(r,t)}(this.props.merge!==t.merge||this.props.colSpan!==t.colSpan||this.props.rowSpan!==t.rowSpan)&&(this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.setState({merge:t.merge?t.merge:{colSpan:t.colSpan,rowSpan:t.rowSpan}}));const n=t.isDataCell?t.dataNode:t.treeNode;this.props.isSelectedMode&&n&&n.state&&!n.state.sliced&&this.select("isSelected"),(this.props.imageColumns!==t.imageColumns||this.props.treeNode!==t.treeNode)&&this.setState({isEmbedImage:this.getIsEmbedImageStatus(t)})}componentDidUpdate(){this.props.tableSize&&this.props.tableSize.notifyChange(),this.dataBarsCheck()}componentWillUnmount(){this.metadataClassName=void 0,this.virtualBorderStyle=void 0,this.cellStyle=void 0,this.cellContentStyle=void 0,this.databarStyle=void 0,this.props.tableSize&&this.props.tableSize.off(os,this.onRangeMinMaxChange)}dataBarsCheck(){const{tableSize:t,columnIndex:n,rowIndex:r}=this.props;if(this.hasDataBars()&&this.cellEl&&t){let o=0;const i=this.cellEl.querySelector(`.${Cl}`);i&&(o=i.offsetWidth),t.updateDataBars(n,r,o)}}getSelectStatus(){let t;return this.props.columnTreeNode?t=this.props.dataNode:this.props.treeNode&&(t=this.props.treeNode),!!(this.props.isSelectedMode&&t&&t.state&&t.state.selected)}getIsEmbedImageStatus(t){const{isDataCell:n,tableType:r,imageColumns:o}=t,{columnIndex:i}=this.props;return n?!1:!!(r===Kt.ROWS&&o&&o.includes(i))}select(t){const n={[t]:!0};this.setState(r=>ee(ee({},r),n))}unselect(t){const n={[t]:!1};this.setState(r=>ee(ee({},r),n))}isDrilled(){return this.state.isDrilled}hasDataBars(){const{tableType:t,rowTreeNode:n,columnTreeNode:r,measureTreeNode:o}=this.props;return!(t!==Kt.DATA||!o||!o.databars||n&&(n.userType===et.SUB_TOTAL||n.userType===et.GRAND_TOTAL)||r&&(r.userType===et.SUB_TOTAL||r.userType===et.GRAND_TOTAL))}getClassName(){const{isDataCell:t,rowIndex:n,columnIndex:r,metadata:o,rowMetadata:i,columnMetadata:a,treeNode:s,rowTreeNode:c,columnTreeNode:l,fixedWidth:u,tableType:d=""}=this.props,{merge:p}=this.state;if(this.metadataClassName===void 0){const f=`${wn}--row-${n}`,m=`${wn}--col-${r}`;let b="",v="",w="";t?(v=`
375
+ ${Yh(i,wn,"row")}
376
+ ${Yh(a,wn,"col")}
377
+ `.trim(),w=`
378
+ ${qh(c,wn,"row")}
379
+ ${qh(l,wn,"col")}
380
+ `.trim(),b=`
381
+ ${Vh(p,wn,"row")}
382
+ ${Vh(p,wn,"col")}
383
+ `.trim()):(v=Yh(o,wn),w=qh(s,wn),b=Vh(p,wn)),this.metadataClassName=Te(wn,`${wn}--new`,`${wn}--${d}`,f,m,v,w,b,u?X2:"")}return this.metadataClassName}getCellStyle(){if(this.cellStyle===void 0){const{treeNode:t,rowTreeNode:n,columnTreeNode:r,metadata:o,rowMetadata:i,columnMetadata:a,tableType:s=""}=this.props,{merge:c,backgroundColor:l}=this.state,u=u2(s,{metadata:o,rowMetadata:i,columnMetadata:a,treeNode:t,rowTreeNode:n,columnTreeNode:r,merge:c}),d=$a(this.props);this.cellStyle=p2(d),this.cellStyle.borderWidth=this.props.borderWidth,this.cellStyle.borderColor===void 0&&delete this.cellStyle.borderColor,u.b||(this.cellStyle.borderColor&&(this.cellStyle.borderTopColor=this.cellStyle.borderColor,this.cellStyle.borderLeftColor=this.cellStyle.borderColor,this.cellStyle.borderRightColor=this.cellStyle.borderColor,delete this.cellStyle.borderColor),this.cellStyle.borderBottomColor="transparent"),l&&!this.cellStyle.backgroundColor&&(this.cellStyle.backgroundColor=l)}return this.cellStyle}getCellContentStyle(){if(this.cellContentStyle===void 0){const{fixedWidth:t,styleObj:n,colWidth:r,rowHeight:o,tableType:i}=this.props,a=$a(this.props);this.cellContentStyle=h2(a),(t||this.state.isEmbedImage)&&(n.width!==void 0||r)&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.width=t1(n.width||r,this.props.borderWidth)),o&&(i===Kt.ROWS||i===Kt.DATA)&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.height=o),!o&&this.state.isEmbedImage&&(this.cellContentStyle=this.cellContentStyle||{},this.cellContentStyle.lineHeight=0),this.state.isEmbedImage&&(this.cellContentStyle.borderRight=`solid ${this.props.borderWidth||1}px transparent`)}return this.cellContentStyle}getDatabarsStyle(){if(this.databarStyle===void 0){const t=$a(this.props);this.databarStyle=f2(t)}return this.databarStyle}getContentNode(){const{colWidth:t,styleObj:n,isDataCell:r,dataNode:o,treeNode:i,borderWidth:a}=this.props,s=r?o:i,c=s?s.content||s.value:"",l=(s||{}).store||{},u=(s||{}).contentType||Tf.TEXT;if(typeof c=="string"&&(u===Tf.HTML||this.props.allowHtml&&lW.test(c)))return E.jsx("div",{className:Cl,dangerouslySetInnerHTML:this.createMarkup(c)});if(this.state.isEmbedImage){const{rowHeight:d,fallbackImageUrl:p}=this.props;return E.jsx(BD,{imageUrl:c,fallbackImageUrl:p,rowHeight:d,addCellDomReadyPromise:this.props.addCellDomReadyPromise,removeCellDomReadyPromise:this.props.removeCellDomReadyPromise})}if(u===Tf.COMPONENT){const d=l,{domReadyDefer:p}=d,f=Ft(d,["domReadyDefer"]);return E.jsx("div",{className:Cl,children:E.jsx(c,xe(ee({},f),{width:t1(n.width||t,a),domReadyDefer:p}))})}return E.jsx("div",{className:Cl,children:c})}render(){const{isDataCell:t,treeNode:n,tableType:r,tdComponent:o,isMobile:i}=this.props,{merge:a}=this.state,s=this.getCellStyle(),c=this.getCellContentStyle(),l=this.getDatabarsStyle();let u=this.getClassName()||"",d=!1;if(n){d=typeof n.dir!="undefined",u=d?`${u} ${V2}`:u,i&&(u=`${u} ${G2}`);let _="";n.dir?_=n.dir===St.ASC?Q2:J2:d&&!n.dir&&(_=my(n)===St.ASC?Z2:K2),u=`${u} ${_}`;const{sortIconShouldBeVisible:T}=this.state;T&&(u=`${u} ${oj}`)}const p=r===Kt.CORNER||r===Kt.COLUMNS,f=this.hasDataBars(),m=this.state.isSelected&&!t?Y2:"",b=this.state.isDrilled?q2:"",v=this.getContentNode();let w=null;return d&&(w=E.jsx(sW,{onRequestClose:()=>this.setSortingPopup(null),onClick:this.handleSortingIconClick,onKeyPress:this.handleSortingIconClick,sortingPopup:this.state.sortingPopup,className:rj,getTooltipContainer:this.props.getSortingPopupContainer})),P.createElement(o,{ref:this.onCellRef,onClick:this.onCellClick,onContextMenu:this.onCellClick,onMouseEnter:this.onCellEnter,onMouseLeave:this.onCellLeave,className:Te(u,b,m),style:s,colSpan:a?a.colSpan:void 0,rowSpan:a?a.rowSpan:void 0},[E.jsxs("div",{className:ej,children:[w,p&&E.jsx(sz,{onResizeStart:this.onResizeStartHandler,onResize:this.onResizeHandler,onResizeEnd:this.onResizeEndHandler}),f&&E.jsx(pz,{columnIndex:this.props.columnIndex,tableSize:this.props.tableSize,dataNode:this.props.dataNode,style:l})]},"corner"),E.jsx("div",{className:tj,style:c,children:E.jsx("div",{className:nj,children:v})},"content")])}}B(yR,"defaultProps",{isDataCell:!1,fixedWidth:!1,borderWidth:1,onSortingMetadataUpdate:()=>{}});var wR=Symbol.for("immer-nothing"),E_=Symbol.for("immer-draftable"),Fn=Symbol.for("immer-state"),cW=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function kn(e,...t){if(process.env.NODE_ENV!=="production"){const n=cW[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var wa=Object.getPrototypeOf;function xa(e){return!!e&&!!e[Fn]}function bi(e){var t;return e?xR(e)||Array.isArray(e)||!!e[E_]||!!((t=e.constructor)!=null&&t[E_])||xd(e)||_d(e):!1}var uW=Object.prototype.constructor.toString();function xR(e){if(!e||typeof e!="object")return!1;const t=wa(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===uW}function Wc(e,t){wd(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function wd(e){const t=e[Fn];return t?t.type_:Array.isArray(e)?1:xd(e)?2:_d(e)?3:0}function jv(e,t){return wd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function _R(e,t,n){const r=wd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function dW(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function xd(e){return e instanceof Map}function _d(e){return e instanceof Set}function ni(e){return e.copy_||e.base_}function Lv(e,t){if(xd(e))return new Map(e);if(_d(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=xR(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Fn];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(wa(e),r)}else{const r=wa(e);if(r!==null&&n)return ee({},e);const o=Object.create(r);return Object.assign(o,e)}}function Oy(e,t=!1){return Cd(e)||xa(e)||!bi(e)||(wd(e)>1&&(e.set=e.add=e.clear=e.delete=pW),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Oy(r,!0))),e}function pW(){kn(2)}function Cd(e){return Object.isFrozen(e)}var hW={};function yi(e){const t=hW[e];return t||kn(0,e),t}var Ps;function CR(){return Ps}function fW(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function O_(e,t){t&&(yi("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Fv(e){Bv(e),e.drafts_.forEach(gW),e.drafts_=null}function Bv(e){e===Ps&&(Ps=e.parent_)}function D_(e){return Ps=fW(Ps,e)}function gW(e){const t=e[Fn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function R_(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Fn].modified_&&(Fv(t),kn(4)),bi(e)&&(e=Uc(t,e),t.parent_||Yc(t,e)),t.patches_&&yi("Patches").generateReplacementPatches_(n[Fn].base_,e,t.patches_,t.inversePatches_)):e=Uc(t,n,[]),Fv(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==wR?e:void 0}function Uc(e,t,n){if(Cd(t))return t;const r=t[Fn];if(!r)return Wc(t,(o,i)=>A_(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return Yc(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),Wc(i,(s,c)=>A_(e,r,o,s,c,n,a)),Yc(e,o,!1),n&&e.patches_&&yi("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function A_(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&kn(5),xa(o)){const s=i&&t&&t.type_!==3&&!jv(t.assigned_,r)?i.concat(r):void 0,c=Uc(e,o,s);if(_R(n,r,c),xa(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(bi(o)&&!Cd(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;Uc(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&Yc(e,o)}}function Yc(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Oy(t,n)}function mW(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:CR(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Dy;n&&(o=[r],i=Is);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var Dy={get(e,t){if(t===Fn)return e;const n=ni(e);if(!jv(n,t))return vW(e,n,t);const r=n[t];return e.finalized_||!bi(r)?r:r===Ef(e.base_,t)?(Of(e),e.copy_[t]=$v(r,e)):r},has(e,t){return t in ni(e)},ownKeys(e){return Reflect.ownKeys(ni(e))},set(e,t,n){const r=kR(ni(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=Ef(ni(e),t),i=o==null?void 0:o[Fn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(dW(n,o)&&(n!==void 0||jv(e.base_,t)))return!0;Of(e),Hv(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return Ef(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Of(e),Hv(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=ni(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){kn(11)},getPrototypeOf(e){return wa(e.base_)},setPrototypeOf(){kn(12)}},Is={};Wc(Dy,(e,t)=>{Is[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Is.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&kn(13),Is.set.call(this,e,t,void 0)};Is.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&kn(14),Dy.set.call(this,e[0],t,n,e[0])};function Ef(e,t){const n=e[Fn];return(n?ni(n):e)[t]}function vW(e,t,n){var r;const o=kR(t,n);return o?"value"in o?o.value:(r=o.get)==null?void 0:r.call(e.draft_):void 0}function kR(e,t){if(!(t in e))return;let n=wa(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=wa(n)}}function Hv(e){e.modified_||(e.modified_=!0,e.parent_&&Hv(e.parent_))}function Of(e){e.copy_||(e.copy_=Lv(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var bW=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(s=i,...c){return a.produce(s,l=>n.call(this,l,...c))}}typeof n!="function"&&kn(6),r!==void 0&&typeof r!="function"&&kn(7);let o;if(bi(t)){const i=D_(this),a=$v(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?Fv(i):Bv(i)}return O_(i,r),R_(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===wR&&(o=void 0),this.autoFreeze_&&Oy(o,!0),r){const i=[],a=[];yi("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else kn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(i,...a)=>this.produceWithPatches(i,s=>t(s,...a));let r,o;return[this.produce(t,n,(i,a)=>{r=i,o=a}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){bi(e)||kn(8),xa(e)&&(e=yW(e));const t=D_(this),n=$v(e,void 0);return n[Fn].isManual_=!0,Bv(t),n}finishDraft(e,t){const n=e&&e[Fn];(!n||!n.isManual_)&&kn(9);const{scope_:r}=n;return O_(r,t),R_(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=yi("Patches").applyPatches_;return xa(e)?r(e,t):this.produce(e,o=>r(o,t))}};function $v(e,t){const n=xd(e)?yi("MapSet").proxyMap_(e,t):_d(e)?yi("MapSet").proxySet_(e,t):mW(e,t);return(t?t.scope_:CR()).drafts_.push(n),n}function yW(e){return xa(e)||kn(10,e),SR(e)}function SR(e){if(!bi(e)||Cd(e))return e;const t=e[Fn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Lv(e,t.scope_.immer_.useStrictShallowCopy_)}else n=Lv(e,!0);return Wc(n,(r,o)=>{_R(n,r,SR(o))}),t&&(t.finalized_=!1),n}var Bn=new bW,zv=Bn.produce;Bn.produceWithPatches.bind(Bn);Bn.setAutoFreeze.bind(Bn);Bn.setUseStrictShallowCopy.bind(Bn);Bn.applyPatches.bind(Bn);Bn.createDraft.bind(Bn);Bn.finishDraft.bind(Bn);var Za={},M_;function wW(){if(M_)return Za;M_=1,Object.defineProperty(Za,"__esModule",{value:!0}),Za.default=void 0;var e=r(H),t=bO;function n(a){if(typeof WeakMap!="function")return null;var s=new WeakMap,c=new WeakMap;return(n=function(l){return l?c:s})(a)}function r(a,s){if(a&&a.__esModule)return a;if(a===null||typeof a!="object"&&typeof a!="function")return{default:a};var c=n(s);if(c&&c.has(a))return c.get(a);var l={__proto__:null},u=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var d in a)if(d!=="default"&&Object.prototype.hasOwnProperty.call(a,d)){var p=u?Object.getOwnPropertyDescriptor(a,d):null;p&&(p.get||p.set)?Object.defineProperty(l,d,p):l[d]=a[d]}return l.default=a,c&&c.set(a,l),l}function o(a){return Object.keys(a).length===0}function i(a=null){const s=e.useContext(t.ThemeContext);return!s||o(s)?a:s}return Za.default=i,Za}var xW=wW();const _W=rr(xW),CW=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],kW=Ce(HO,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TR=P.forwardRef(function(e,t){var n;const r=_W(),o=ut({props:e,name:"MuiPopper"}),{anchorEl:i,component:a,components:s,componentsProps:c,container:l,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:b,popperRef:v,transition:w,slots:_,slotProps:T}=o,y=ke(o,CW),k=(n=_==null?void 0:_.root)!=null?n:s==null?void 0:s.Root,S=V({anchorEl:i,container:l,disablePortal:u,keepMounted:d,modifiers:p,open:f,placement:m,popperOptions:b,popperRef:v,transition:w},y);return E.jsx(kW,V({as:a,direction:r==null?void 0:r.direction,slots:{root:k},slotProps:T!=null?T:c},S,{ref:t}))});process.env.NODE_ENV!=="production"&&(TR.propTypes={anchorEl:h.oneOfType([eo,h.object,h.func]),children:h.oneOfType([h.node,h.func]),component:h.elementType,components:h.shape({Root:h.elementType}),componentsProps:h.shape({root:h.oneOfType([h.func,h.object])}),container:h.oneOfType([eo,h.func]),disablePortal:h.bool,keepMounted:h.bool,modifiers:h.arrayOf(h.shape({data:h.object,effect:h.func,enabled:h.bool,fn:h.func,name:h.any,options:h.object,phase:h.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:h.arrayOf(h.string),requiresIfExists:h.arrayOf(h.string)})),open:h.bool.isRequired,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:h.shape({modifiers:h.array,onFirstUpdate:h.func,placement:h.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:h.oneOf(["absolute","fixed"])}),popperRef:or,slotProps:h.shape({root:h.oneOfType([h.func,h.object])}),slots:h.shape({root:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),transition:h.bool});const ER=TR;function SW(e){return rt("MuiTooltip",e)}const TW=tt("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Eo=TW,EW=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function OW(e){return Math.round(e*1e5)/1e5}const DW=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${Ne(i.split("-")[0])}`],arrow:["arrow"]};return at(a,SW,t)},RW=Ce(ER,{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]}})(({theme:e,ownerState:t,open:n})=>V({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Eo.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Eo.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Eo.arrow}`]:V({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Eo.arrow}`]:V({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),AW=Ce("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${Ne(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>V({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:lt.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},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${OW(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Eo.popper}[data-popper-placement*="left"] &`]:V({transformOrigin:"right center"},t.isRtl?V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):V({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Eo.popper}[data-popper-placement*="right"] &`]:V({transformOrigin:"left center"},t.isRtl?V({marginRight:"14px"},t.touch&&{marginRight:"24px"}):V({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Eo.popper}[data-popper-placement*="top"] &`]:V({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Eo.popper}[data-popper-placement*="bottom"] &`]:V({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),MW=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:lt.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Il=!1;const N_=new Js;let Ka={x:0,y:0};function jl(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const OR=P.forwardRef(function(e,t){var n,r,o,i,a,s,c,l,u,d,p,f,m,b,v,w,_,T,y;const k=ut({props:e,name:"MuiTooltip"}),{arrow:S=!1,children:x,components:C={},componentsProps:O={},describeChild:D=!1,disableFocusListener:R=!1,disableHoverListener:M=!1,disableInteractive:F=!1,disableTouchListener:N=!1,enterDelay:I=100,enterNextDelay:j=0,enterTouchDelay:$=700,followCursor:Y=!1,id:U,leaveDelay:G=0,leaveTouchDelay:K=1500,onClose:oe,onOpen:ne,open:re,placement:ie="bottom",PopperComponent:ce,PopperProps:se={},slotProps:J={},slots:A={},title:L,TransitionComponent:z=hv,TransitionProps:Q}=k,X=ke(k,EW),Z=P.isValidElement(x)?x:E.jsx("span",{children:x}),ae=hd(),he=id(),[le,_e]=P.useState(),[ue,pe]=P.useState(null),me=P.useRef(!1),ye=F||Y,we=ea(),Ie=ea(),st=ea(),Ve=ea(),[Me,be]=Ss({controlled:re,default:!1,name:"Tooltip",state:"open"});let je=Me;if(process.env.NODE_ENV!=="production"){const{current:Re}=P.useRef(re!==void 0);P.useEffect(()=>{le&&le.disabled&&!Re&&L!==""&&le.tagName.toLowerCase()==="button"&&console.error(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
384
+ `))},[L,le,Re])}const dt=Sc(U),Bt=P.useRef(),wt=ko(()=>{Bt.current!==void 0&&(document.body.style.WebkitUserSelect=Bt.current,Bt.current=void 0),Ve.clear()});P.useEffect(()=>wt,[wt]);const ve=Re=>{N_.clear(),Il=!0,be(!0),ne&&!je&&ne(Re)},Se=ko(Re=>{N_.start(800+G,()=>{Il=!1}),be(!1),oe&&je&&oe(Re),we.start(ae.transitions.duration.shortest,()=>{me.current=!1})}),ot=Re=>{me.current&&Re.type!=="touchstart"||(le&&le.removeAttribute("title"),Ie.clear(),st.clear(),I||Il&&j?Ie.start(Il?j:I,()=>{ve(Re)}):ve(Re))},qt=Re=>{Ie.clear(),st.start(G,()=>{Se(Re)})},{isFocusVisibleRef:Ht,onBlur:yr,onFocus:sr,ref:pn}=iO(),[,zo]=P.useState(!1),Wo=Re=>{yr(Re),Ht.current===!1&&(zo(!1),qt(Re))},zn=Re=>{le||_e(Re.currentTarget),sr(Re),Ht.current===!0&&(zo(!0),ot(Re))},ft=Re=>{me.current=!0;const Mt=Z.props;Mt.onTouchStart&&Mt.onTouchStart(Re)},gt=Re=>{ft(Re),st.clear(),we.clear(),wt(),Bt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ve.start($,()=>{document.body.style.WebkitUserSelect=Bt.current,ot(Re)})},mt=Re=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(Re),wt(),st.start(K,()=>{Se(Re)})};P.useEffect(()=>{if(!je)return;function Re(Mt){(Mt.key==="Escape"||Mt.key==="Esc")&&Se(Mt)}return document.addEventListener("keydown",Re),()=>{document.removeEventListener("keydown",Re)}},[Se,je]);const io=$t(Z.ref,pn,_e,t);!L&&L!==0&&(je=!1);const Wn=P.useRef(),Ur=Re=>{const Mt=Z.props;Mt.onMouseMove&&Mt.onMouseMove(Re),Ka={x:Re.clientX,y:Re.clientY},Wn.current&&Wn.current.update()},lr={},Yr=typeof L=="string";D?(lr.title=!je&&Yr&&!M?L:null,lr["aria-describedby"]=je?dt:null):(lr["aria-label"]=Yr?L:null,lr["aria-labelledby"]=je&&!Yr?dt:null);const At=V({},lr,X,Z.props,{className:De(X.className,Z.props.className),onTouchStart:ft,ref:io},Y?{onMouseMove:Ur}:{});process.env.NODE_ENV!=="production"&&(At["data-mui-internal-clone-element"]=!0,P.useEffect(()=>{le&&!le.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
385
+ `))},[le]));const Vt={};N||(At.onTouchStart=gt,At.onTouchEnd=mt),M||(At.onMouseOver=jl(ot,At.onMouseOver),At.onMouseLeave=jl(qt,At.onMouseLeave),ye||(Vt.onMouseOver=ot,Vt.onMouseLeave=qt)),R||(At.onFocus=jl(zn,At.onFocus),At.onBlur=jl(Wo,At.onBlur),ye||(Vt.onFocus=zn,Vt.onBlur=Wo)),process.env.NODE_ENV!=="production"&&Z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${Z.props.title}\` or the Tooltip component.`].join(`
386
+ `));const Ia=P.useMemo(()=>{var Re;let Mt=[{name:"arrow",enabled:!!ue,options:{element:ue,padding:4}}];return(Re=se.popperOptions)!=null&&Re.modifiers&&(Mt=Mt.concat(se.popperOptions.modifiers)),V({},se.popperOptions,{modifiers:Mt})},[ue,se]),cr=V({},k,{isRtl:he,arrow:S,disableInteractive:ye,placement:ie,PopperComponentProp:ce,touch:me.current}),wr=DW(cr),ao=(n=(r=A.popper)!=null?r:C.Popper)!=null?n:RW,xr=(o=(i=(a=A.transition)!=null?a:C.Transition)!=null?i:z)!=null?o:hv,_r=(s=(c=A.tooltip)!=null?c:C.Tooltip)!=null?s:AW,Un=(l=(u=A.arrow)!=null?u:C.Arrow)!=null?l:MW,qr=ss(ao,V({},se,(d=J.popper)!=null?d:O.popper,{className:De(wr.popper,se==null?void 0:se.className,(p=(f=J.popper)!=null?f:O.popper)==null?void 0:p.className)}),cr),Di=ss(xr,V({},Q,(m=J.transition)!=null?m:O.transition),cr),Uo=ss(_r,V({},(b=J.tooltip)!=null?b:O.tooltip,{className:De(wr.tooltip,(v=(w=J.tooltip)!=null?w:O.tooltip)==null?void 0:v.className)}),cr),Cr=ss(Un,V({},(_=J.arrow)!=null?_:O.arrow,{className:De(wr.arrow,(T=(y=J.arrow)!=null?y:O.arrow)==null?void 0:T.className)}),cr);return E.jsxs(P.Fragment,{children:[P.cloneElement(Z,At),E.jsx(ao,V({as:ce!=null?ce:ER,placement:ie,anchorEl:Y?{getBoundingClientRect:()=>({top:Ka.y,left:Ka.x,right:Ka.x,bottom:Ka.y,width:0,height:0})}:le,popperRef:Wn,open:le?je:!1,id:dt,transition:!0},Vt,qr,{popperOptions:Ia,children:({TransitionProps:Re})=>E.jsx(xr,V({timeout:ae.transitions.duration.shorter},Re,Di,{children:E.jsxs(_r,V({},Uo,{children:[L,S?E.jsx(Un,V({},Cr,{ref:pe})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(OR.propTypes={arrow:h.bool,children:Qs.isRequired,classes:h.object,className:h.string,components:h.shape({Arrow:h.elementType,Popper:h.elementType,Tooltip:h.elementType,Transition:h.elementType}),componentsProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),describeChild:h.bool,disableFocusListener:h.bool,disableHoverListener:h.bool,disableInteractive:h.bool,disableTouchListener:h.bool,enterDelay:h.number,enterNextDelay:h.number,enterTouchDelay:h.number,followCursor:h.bool,id:h.string,leaveDelay:h.number,leaveTouchDelay:h.number,onClose:h.func,onOpen:h.func,open:h.bool,placement:h.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:h.elementType,PopperProps:h.object,slotProps:h.shape({arrow:h.object,popper:h.object,tooltip:h.object,transition:h.object}),slots:h.shape({arrow:h.elementType,popper:h.elementType,tooltip:h.elementType,transition:h.elementType}),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),title:h.node,TransitionComponent:h.elementType,TransitionProps:h.object});const NW=OR,PW=Bo({components:{MuiTooltip:{styleOverrides:{arrow:{color:He.StBackgroundColors.workspace},tooltip:{color:He.StTextColors.content,maxWidth:"432px",borderRadius:"4px",display:"flex",flexDirection:"row",justifyContent:"center",alignItems:"center",padding:"12px 16px",gap:"10px",backgroundColor:He.StBackgroundColors.workspace,filter:"drop-shadow(0px 1px 4px rgba(9, 9, 10, 0.1)) drop-shadow(0px 4px 12px rgba(9, 9, 10, 0.2));"}}}}}),IW="#2c3342",jW="#f4f4f8",LW="#dee1e7",FW="#fff",BW="_breakLongWord_1dxah_307",HW="_semanticText_1dxah_311",$W="_tooltip_1dxah_315",zW="_rcToolTipZoomIn_1dxah_1",WW="_rcToolTipZoomOut_1dxah_1",UW={loginDarkColor:IW,darkBtnHoverColor:jW,greyHoverColor:LW,defaultBackgroundColor:FW,breakLongWord:BW,semanticText:HW,tooltip:$W,rcToolTipZoomIn:zW,rcToolTipZoomOut:WW},DR=H.forwardRef((e,t)=>{var n=e,{title:r,children:o,arrow:i,theme:a=PW}=n,s=Ft(n,["title","children","arrow","theme"]);const{classes:c={}}=s,l=xe(ee({},c),{tooltip:Te(UW.tooltip,c.tooltip,To.SISENSE_NAMESPACE)});return E.jsx(Si,{theme:a,children:E.jsx(NW,xe(ee({},s),{title:r,arrow:i,ref:t,classes:l,children:o}))})});function P_(e){return`‘${e}’`}function YW(e){return e[e.length-1]}const qW=e=>{const{hierarchy:t,prependedText:n}=e,r=H.useRef(null),o=H.useRef(null),i=t.map(P_).join(" → "),[a,s]=H.useState(i);return H.useLayoutEffect(()=>{if(r.current&&o.current){const c=r.current.offsetWidth;if(o.current.offsetWidth>c){const l=P_(YW(t));s(l)}}},[t]),E.jsxs("div",{className:"header-text",children:[E.jsx("span",{className:"header-text__sort-by",children:n}),E.jsx(DR,{placement:"top",title:a,arrow:!0,children:E.jsx("span",{ref:r,className:"header-text__hierarchy-container",children:E.jsx("span",{ref:o,children:a})})})]})},RR=e=>{const{onCrossIconClick:t,className:n,prependedText:r,hierarchy:o}=e,i=!!t;return E.jsxs("div",{className:n,children:[E.jsx(qW,{hierarchy:o,prependedText:r}),i&&E.jsx(ta,{onClick:t,name:"general-x",className:"cross-icon"})]})};var I_={},j_={},oa={},VW={get exports(){return oa},set exports(e){oa=e}},L_;function GW(){if(L_)return oa;L_=1;for(var e=$E(),t=typeof window=="undefined"?ii:window,n=["moz","webkit"],r="AnimationFrame",o=t["request"+r],i=t["cancel"+r]||t["cancelRequest"+r],a=0;!o&&a<n.length;a++)o=t[n[a]+"Request"+r],i=t[n[a]+"Cancel"+r]||t[n[a]+"CancelRequest"+r];if(!o||!i){var s=0,c=0,l=[],u=1e3/60;o=function(d){if(l.length===0){var p=e(),f=Math.max(0,u-(p-s));s=f+p,setTimeout(function(){var m=l.slice(0);l.length=0;for(var b=0;b<m.length;b++)if(!m[b].cancelled)try{m[b].callback(s)}catch(v){setTimeout(function(){throw v},0)}},Math.round(f))}return l.push({handle:++c,callback:d,cancelled:!1}),c},i=function(d){for(var p=0;p<l.length;p++)l[p].handle===d&&(l[p].cancelled=!0)}}return VW.exports=function(d){return o.call(t,d)},oa.cancel=function(){i.apply(t,arguments)},oa.polyfill=function(d){d||(d=t),d.requestAnimationFrame=o,d.cancelAnimationFrame=i},oa}var F_={},B_;function QW(){return B_||(B_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){return typeof n=="string"}}(F_)),F_}var H_={},$_;function JW(){return $_||($_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=Fb(),n=r(t);function r(a){return a&&a.__esModule?a:{default:a}}var o=!1;function i(){if(o!==!1)return o;if(typeof document!="undefined"){var a=document.createElement("div");(0,n.default)(a,{width:100,height:100,position:"absolute",top:-9999,overflow:"scroll",MsOverflowStyle:"scrollbar"}),document.body.appendChild(a),o=a.offsetWidth-a.clientWidth,document.body.removeChild(a)}else o=0;return o||0}}(H_)),H_}var z_={},W_;function ZW(){return W_||(W_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(){return!1}}(z_)),z_}var U_={},Y_;function KW(){return Y_||(Y_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var r=n.clientWidth,o=getComputedStyle(n),i=o.paddingLeft,a=o.paddingRight;return r-parseFloat(i)-parseFloat(a)}}(U_)),U_}var q_={},V_;function XW(){return V_||(V_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(n){var r=n.clientHeight,o=getComputedStyle(n),i=o.paddingTop,a=o.paddingBottom;return r-parseFloat(i)-parseFloat(a)}}(q_)),q_}var An={},G_;function eU(){return G_||(G_=1,Object.defineProperty(An,"__esModule",{value:!0}),An.containerStyleDefault={position:"relative",overflow:"hidden",width:"100%",height:"100%"},An.containerStyleAutoHeight={height:"auto"},An.viewStyleDefault={position:"absolute",top:0,left:0,right:0,bottom:0,overflow:"scroll",WebkitOverflowScrolling:"touch"},An.viewStyleAutoHeight={position:"relative",top:void 0,left:void 0,right:void 0,bottom:void 0},An.viewStyleUniversalInitial={overflow:"hidden",marginRight:0,marginBottom:0},An.trackHorizontalStyleDefault={position:"absolute",height:6},An.trackVerticalStyleDefault={position:"absolute",width:6},An.thumbHorizontalStyleDefault={position:"relative",display:"block",height:"100%"},An.thumbVerticalStyleDefault={position:"relative",display:"block",width:"100%"},An.disableSelectStyle={userSelect:"none"},An.disableSelectStyleReset={userSelect:""}),An}var ho={},Q_;function tU(){if(Q_)return ho;Q_=1,Object.defineProperty(ho,"__esModule",{value:!0});var e=Object.assign||function(u){for(var d=1;d<arguments.length;d++){var p=arguments[d];for(var f in p)Object.prototype.hasOwnProperty.call(p,f)&&(u[f]=p[f])}return u};ho.renderViewDefault=i,ho.renderTrackHorizontalDefault=a,ho.renderTrackVerticalDefault=s,ho.renderThumbHorizontalDefault=c,ho.renderThumbVerticalDefault=l;var t=H,n=r(t);function r(u){return u&&u.__esModule?u:{default:u}}function o(u,d){var p={};for(var f in u)d.indexOf(f)>=0||Object.prototype.hasOwnProperty.call(u,f)&&(p[f]=u[f]);return p}function i(u){return n.default.createElement("div",u)}function a(u){var d=u.style,p=o(u,["style"]),f=e({},d,{right:2,bottom:2,left:2,borderRadius:3});return n.default.createElement("div",e({style:f},p))}function s(u){var d=u.style,p=o(u,["style"]),f=e({},d,{right:2,bottom:2,top:2,borderRadius:3});return n.default.createElement("div",e({style:f},p))}function c(u){var d=u.style,p=o(u,["style"]),f=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",e({style:f},p))}function l(u){var d=u.style,p=o(u,["style"]),f=e({},d,{cursor:"pointer",borderRadius:"inherit",backgroundColor:"rgba(0,0,0,.2)"});return n.default.createElement("div",e({style:f},p))}return ho}var J_;function nU(){return J_||(J_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(M){for(var F=1;F<arguments.length;F++){var N=arguments[F];for(var I in N)Object.prototype.hasOwnProperty.call(N,I)&&(M[I]=N[I])}return M},n=function(){function M(F,N){for(var I=0;I<N.length;I++){var j=N[I];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,j.key,j)}}return function(F,N,I){return N&&M(F.prototype,N),I&&M(F,I),F}}(),r=GW(),o=S(r),i=Fb(),a=S(i),s=H,c=VE(),l=S(c),u=QW(),d=S(u),p=JW(),f=S(p),m=ZW(),b=S(m),v=KW(),w=S(v),_=XW(),T=S(_),y=eU(),k=tU();function S(M){return M&&M.__esModule?M:{default:M}}function x(M,F){var N={};for(var I in M)F.indexOf(I)>=0||Object.prototype.hasOwnProperty.call(M,I)&&(N[I]=M[I]);return N}function C(M,F){if(!(M instanceof F))throw new TypeError("Cannot call a class as a function")}function O(M,F){if(!M)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F&&(typeof F=="object"||typeof F=="function")?F:M}function D(M,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof F);M.prototype=Object.create(F&&F.prototype,{constructor:{value:M,enumerable:!1,writable:!0,configurable:!0}}),F&&(Object.setPrototypeOf?Object.setPrototypeOf(M,F):M.__proto__=F)}var R=function(M){D(F,M);function F(N){var I;C(this,F);for(var j=arguments.length,$=Array(j>1?j-1:0),Y=1;Y<j;Y++)$[Y-1]=arguments[Y];var U=O(this,(I=F.__proto__||Object.getPrototypeOf(F)).call.apply(I,[this,N].concat($)));return U.getScrollLeft=U.getScrollLeft.bind(U),U.getScrollTop=U.getScrollTop.bind(U),U.getScrollWidth=U.getScrollWidth.bind(U),U.getScrollHeight=U.getScrollHeight.bind(U),U.getClientWidth=U.getClientWidth.bind(U),U.getClientHeight=U.getClientHeight.bind(U),U.getValues=U.getValues.bind(U),U.getThumbHorizontalWidth=U.getThumbHorizontalWidth.bind(U),U.getThumbVerticalHeight=U.getThumbVerticalHeight.bind(U),U.getScrollLeftForOffset=U.getScrollLeftForOffset.bind(U),U.getScrollTopForOffset=U.getScrollTopForOffset.bind(U),U.scrollLeft=U.scrollLeft.bind(U),U.scrollTop=U.scrollTop.bind(U),U.scrollToLeft=U.scrollToLeft.bind(U),U.scrollToTop=U.scrollToTop.bind(U),U.scrollToRight=U.scrollToRight.bind(U),U.scrollToBottom=U.scrollToBottom.bind(U),U.handleTrackMouseEnter=U.handleTrackMouseEnter.bind(U),U.handleTrackMouseLeave=U.handleTrackMouseLeave.bind(U),U.handleHorizontalTrackMouseDown=U.handleHorizontalTrackMouseDown.bind(U),U.handleVerticalTrackMouseDown=U.handleVerticalTrackMouseDown.bind(U),U.handleHorizontalThumbMouseDown=U.handleHorizontalThumbMouseDown.bind(U),U.handleVerticalThumbMouseDown=U.handleVerticalThumbMouseDown.bind(U),U.handleWindowResize=U.handleWindowResize.bind(U),U.handleScroll=U.handleScroll.bind(U),U.handleDrag=U.handleDrag.bind(U),U.handleDragEnd=U.handleDragEnd.bind(U),U.state={didMountUniversal:!1},U}return n(F,[{key:"componentDidMount",value:function(){this.addListeners(),this.update(),this.componentDidMountUniversal()}},{key:"componentDidMountUniversal",value:function(){var N=this.props.universal;N&&this.setState({didMountUniversal:!0})}},{key:"componentDidUpdate",value:function(){this.update()}},{key:"componentWillUnmount",value:function(){this.removeListeners(),(0,r.cancel)(this.requestFrame),clearTimeout(this.hideTracksTimeout),clearInterval(this.detectScrollingInterval)}},{key:"getScrollLeft",value:function(){return this.view?this.view.scrollLeft:0}},{key:"getScrollTop",value:function(){return this.view?this.view.scrollTop:0}},{key:"getScrollWidth",value:function(){return this.view?this.view.scrollWidth:0}},{key:"getScrollHeight",value:function(){return this.view?this.view.scrollHeight:0}},{key:"getClientWidth",value:function(){return this.view?this.view.clientWidth:0}},{key:"getClientHeight",value:function(){return this.view?this.view.clientHeight:0}},{key:"getValues",value:function(){var N=this.view||{},I=N.scrollLeft,j=I===void 0?0:I,$=N.scrollTop,Y=$===void 0?0:$,U=N.scrollWidth,G=U===void 0?0:U,K=N.scrollHeight,oe=K===void 0?0:K,ne=N.clientWidth,re=ne===void 0?0:ne,ie=N.clientHeight,ce=ie===void 0?0:ie;return{left:j/(G-re)||0,top:Y/(oe-ce)||0,scrollLeft:j,scrollTop:Y,scrollWidth:G,scrollHeight:oe,clientWidth:re,clientHeight:ce}}},{key:"getThumbHorizontalWidth",value:function(){var N=this.props,I=N.thumbSize,j=N.thumbMinSize,$=this.view,Y=$.scrollWidth,U=$.clientWidth,G=(0,w.default)(this.trackHorizontal),K=Math.ceil(U/Y*G);return G===K?0:I||Math.max(K,j)}},{key:"getThumbVerticalHeight",value:function(){var N=this.props,I=N.thumbSize,j=N.thumbMinSize,$=this.view,Y=$.scrollHeight,U=$.clientHeight,G=(0,T.default)(this.trackVertical),K=Math.ceil(U/Y*G);return G===K?0:I||Math.max(K,j)}},{key:"getScrollLeftForOffset",value:function(N){var I=this.view,j=I.scrollWidth,$=I.clientWidth,Y=(0,w.default)(this.trackHorizontal),U=this.getThumbHorizontalWidth();return N/(Y-U)*(j-$)}},{key:"getScrollTopForOffset",value:function(N){var I=this.view,j=I.scrollHeight,$=I.clientHeight,Y=(0,T.default)(this.trackVertical),U=this.getThumbVerticalHeight();return N/(Y-U)*(j-$)}},{key:"scrollLeft",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollLeft=N)}},{key:"scrollTop",value:function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;this.view&&(this.view.scrollTop=N)}},{key:"scrollToLeft",value:function(){this.view&&(this.view.scrollLeft=0)}},{key:"scrollToTop",value:function(){this.view&&(this.view.scrollTop=0)}},{key:"scrollToRight",value:function(){this.view&&(this.view.scrollLeft=this.view.scrollWidth)}},{key:"scrollToBottom",value:function(){this.view&&(this.view.scrollTop=this.view.scrollHeight)}},{key:"addListeners",value:function(){if(!(typeof document=="undefined"||!this.view)){var N=this.view,I=this.trackHorizontal,j=this.trackVertical,$=this.thumbHorizontal,Y=this.thumbVertical;N.addEventListener("scroll",this.handleScroll),(0,f.default)()&&(I.addEventListener("mouseenter",this.handleTrackMouseEnter),I.addEventListener("mouseleave",this.handleTrackMouseLeave),I.addEventListener("mousedown",this.handleHorizontalTrackMouseDown),j.addEventListener("mouseenter",this.handleTrackMouseEnter),j.addEventListener("mouseleave",this.handleTrackMouseLeave),j.addEventListener("mousedown",this.handleVerticalTrackMouseDown),$.addEventListener("mousedown",this.handleHorizontalThumbMouseDown),Y.addEventListener("mousedown",this.handleVerticalThumbMouseDown),window.addEventListener("resize",this.handleWindowResize))}}},{key:"removeListeners",value:function(){if(!(typeof document=="undefined"||!this.view)){var N=this.view,I=this.trackHorizontal,j=this.trackVertical,$=this.thumbHorizontal,Y=this.thumbVertical;N.removeEventListener("scroll",this.handleScroll),(0,f.default)()&&(I.removeEventListener("mouseenter",this.handleTrackMouseEnter),I.removeEventListener("mouseleave",this.handleTrackMouseLeave),I.removeEventListener("mousedown",this.handleHorizontalTrackMouseDown),j.removeEventListener("mouseenter",this.handleTrackMouseEnter),j.removeEventListener("mouseleave",this.handleTrackMouseLeave),j.removeEventListener("mousedown",this.handleVerticalTrackMouseDown),$.removeEventListener("mousedown",this.handleHorizontalThumbMouseDown),Y.removeEventListener("mousedown",this.handleVerticalThumbMouseDown),window.removeEventListener("resize",this.handleWindowResize),this.teardownDragging())}}},{key:"handleScroll",value:function(N){var I=this,j=this.props,$=j.onScroll,Y=j.onScrollFrame;$&&$(N),this.update(function(U){var G=U.scrollLeft,K=U.scrollTop;I.viewScrollLeft=G,I.viewScrollTop=K,Y&&Y(U)}),this.detectScrolling()}},{key:"handleScrollStart",value:function(){var N=this.props.onScrollStart;N&&N(),this.handleScrollStartAutoHide()}},{key:"handleScrollStartAutoHide",value:function(){var N=this.props.autoHide;N&&this.showTracks()}},{key:"handleScrollStop",value:function(){var N=this.props.onScrollStop;N&&N(),this.handleScrollStopAutoHide()}},{key:"handleScrollStopAutoHide",value:function(){var N=this.props.autoHide;N&&this.hideTracks()}},{key:"handleWindowResize",value:function(){this.update()}},{key:"handleHorizontalTrackMouseDown",value:function(N){N.preventDefault();var I=N.target,j=N.clientX,$=I.getBoundingClientRect(),Y=$.left,U=this.getThumbHorizontalWidth(),G=Math.abs(Y-j)-U/2;this.view.scrollLeft=this.getScrollLeftForOffset(G)}},{key:"handleVerticalTrackMouseDown",value:function(N){N.preventDefault();var I=N.target,j=N.clientY,$=I.getBoundingClientRect(),Y=$.top,U=this.getThumbVerticalHeight(),G=Math.abs(Y-j)-U/2;this.view.scrollTop=this.getScrollTopForOffset(G)}},{key:"handleHorizontalThumbMouseDown",value:function(N){N.preventDefault(),this.handleDragStart(N);var I=N.target,j=N.clientX,$=I.offsetWidth,Y=I.getBoundingClientRect(),U=Y.left;this.prevPageX=$-(j-U)}},{key:"handleVerticalThumbMouseDown",value:function(N){N.preventDefault(),this.handleDragStart(N);var I=N.target,j=N.clientY,$=I.offsetHeight,Y=I.getBoundingClientRect(),U=Y.top;this.prevPageY=$-(j-U)}},{key:"setupDragging",value:function(){(0,a.default)(document.body,y.disableSelectStyle),document.addEventListener("mousemove",this.handleDrag),document.addEventListener("mouseup",this.handleDragEnd),document.onselectstart=b.default}},{key:"teardownDragging",value:function(){(0,a.default)(document.body,y.disableSelectStyleReset),document.removeEventListener("mousemove",this.handleDrag),document.removeEventListener("mouseup",this.handleDragEnd),document.onselectstart=void 0}},{key:"handleDragStart",value:function(N){this.dragging=!0,N.stopImmediatePropagation(),this.setupDragging()}},{key:"handleDrag",value:function(N){if(this.prevPageX){var I=N.clientX,j=this.trackHorizontal.getBoundingClientRect(),$=j.left,Y=this.getThumbHorizontalWidth(),U=Y-this.prevPageX,G=-$+I-U;this.view.scrollLeft=this.getScrollLeftForOffset(G)}if(this.prevPageY){var K=N.clientY,oe=this.trackVertical.getBoundingClientRect(),ne=oe.top,re=this.getThumbVerticalHeight(),ie=re-this.prevPageY,ce=-ne+K-ie;this.view.scrollTop=this.getScrollTopForOffset(ce)}return!1}},{key:"handleDragEnd",value:function(){this.dragging=!1,this.prevPageX=this.prevPageY=0,this.teardownDragging(),this.handleDragEndAutoHide()}},{key:"handleDragEndAutoHide",value:function(){var N=this.props.autoHide;N&&this.hideTracks()}},{key:"handleTrackMouseEnter",value:function(){this.trackMouseOver=!0,this.handleTrackMouseEnterAutoHide()}},{key:"handleTrackMouseEnterAutoHide",value:function(){var N=this.props.autoHide;N&&this.showTracks()}},{key:"handleTrackMouseLeave",value:function(){this.trackMouseOver=!1,this.handleTrackMouseLeaveAutoHide()}},{key:"handleTrackMouseLeaveAutoHide",value:function(){var N=this.props.autoHide;N&&this.hideTracks()}},{key:"showTracks",value:function(){clearTimeout(this.hideTracksTimeout),(0,a.default)(this.trackHorizontal,{opacity:1}),(0,a.default)(this.trackVertical,{opacity:1})}},{key:"hideTracks",value:function(){var N=this;if(!this.dragging&&!this.scrolling&&!this.trackMouseOver){var I=this.props.autoHideTimeout;clearTimeout(this.hideTracksTimeout),this.hideTracksTimeout=setTimeout(function(){(0,a.default)(N.trackHorizontal,{opacity:0}),(0,a.default)(N.trackVertical,{opacity:0})},I)}}},{key:"detectScrolling",value:function(){var N=this;this.scrolling||(this.scrolling=!0,this.handleScrollStart(),this.detectScrollingInterval=setInterval(function(){N.lastViewScrollLeft===N.viewScrollLeft&&N.lastViewScrollTop===N.viewScrollTop&&(clearInterval(N.detectScrollingInterval),N.scrolling=!1,N.handleScrollStop()),N.lastViewScrollLeft=N.viewScrollLeft,N.lastViewScrollTop=N.viewScrollTop},100))}},{key:"raf",value:function(N){var I=this;this.requestFrame&&o.default.cancel(this.requestFrame),this.requestFrame=(0,o.default)(function(){I.requestFrame=void 0,N()})}},{key:"update",value:function(N){var I=this;this.raf(function(){return I._update(N)})}},{key:"_update",value:function(N){var I=this.props,j=I.onUpdate,$=I.hideTracksWhenNotNeeded,Y=this.getValues();if((0,f.default)()){var U=Y.scrollLeft,G=Y.clientWidth,K=Y.scrollWidth,oe=(0,w.default)(this.trackHorizontal),ne=this.getThumbHorizontalWidth(),re=U/(K-G)*(oe-ne),ie={width:ne,transform:"translateX("+re+"px)"},ce=Y.scrollTop,se=Y.clientHeight,J=Y.scrollHeight,A=(0,T.default)(this.trackVertical),L=this.getThumbVerticalHeight(),z=ce/(J-se)*(A-L),Q={height:L,transform:"translateY("+z+"px)"};if($){var X={visibility:K>G?"visible":"hidden"},Z={visibility:J>se?"visible":"hidden"};(0,a.default)(this.trackHorizontal,X),(0,a.default)(this.trackVertical,Z)}(0,a.default)(this.thumbHorizontal,ie),(0,a.default)(this.thumbVertical,Q)}j&&j(Y),typeof N=="function"&&N(Y)}},{key:"render",value:function(){var N=this,I=(0,f.default)(),j=this.props,$=j.renderView,Y=j.renderTrackHorizontal,U=j.renderTrackVertical,G=j.renderThumbHorizontal,K=j.renderThumbVertical,oe=j.tagName,ne=j.autoHide,re=j.autoHideDuration,ie=j.universal,ce=j.autoHeight,se=j.autoHeightMin,J=j.autoHeightMax,A=j.style,L=j.children,z=x(j,["onScroll","onScrollFrame","onScrollStart","onScrollStop","onUpdate","renderView","renderTrackHorizontal","renderTrackVertical","renderThumbHorizontal","renderThumbVertical","tagName","hideTracksWhenNotNeeded","autoHide","autoHideTimeout","autoHideDuration","thumbSize","thumbMinSize","universal","autoHeight","autoHeightMin","autoHeightMax","style","children"]),Q=this.state.didMountUniversal,X=t({},y.containerStyleDefault,ce&&t({},y.containerStyleAutoHeight,{minHeight:se,maxHeight:J}),A),Z=t({},y.viewStyleDefault,{marginRight:I?-I:0,marginBottom:I?-I:0},ce&&t({},y.viewStyleAutoHeight,{minHeight:(0,d.default)(se)?"calc("+se+" + "+I+"px)":se+I,maxHeight:(0,d.default)(J)?"calc("+J+" + "+I+"px)":J+I}),ce&&ie&&!Q&&{minHeight:se,maxHeight:J},ie&&!Q&&y.viewStyleUniversalInitial),ae={transition:"opacity "+re+"ms",opacity:0},he=t({},y.trackHorizontalStyleDefault,ne&&ae,(!I||ie&&!Q)&&{display:"none"}),le=t({},y.trackVerticalStyleDefault,ne&&ae,(!I||ie&&!Q)&&{display:"none"});return(0,s.createElement)(oe,t({},z,{style:X,ref:function(_e){N.container=_e}}),[(0,s.cloneElement)($({style:Z}),{key:"view",ref:function(_e){N.view=_e}},L),(0,s.cloneElement)(Y({style:he}),{key:"trackHorizontal",ref:function(_e){N.trackHorizontal=_e}},(0,s.cloneElement)(G({style:y.thumbHorizontalStyleDefault}),{ref:function(_e){N.thumbHorizontal=_e}})),(0,s.cloneElement)(U({style:le}),{key:"trackVertical",ref:function(_e){N.trackVertical=_e}},(0,s.cloneElement)(K({style:y.thumbVerticalStyleDefault}),{ref:function(_e){N.thumbVertical=_e}}))])}}]),F}(s.Component);e.default=R,R.propTypes={onScroll:l.default.func,onScrollFrame:l.default.func,onScrollStart:l.default.func,onScrollStop:l.default.func,onUpdate:l.default.func,renderView:l.default.func,renderTrackHorizontal:l.default.func,renderTrackVertical:l.default.func,renderThumbHorizontal:l.default.func,renderThumbVertical:l.default.func,tagName:l.default.string,thumbSize:l.default.number,thumbMinSize:l.default.number,hideTracksWhenNotNeeded:l.default.bool,autoHide:l.default.bool,autoHideTimeout:l.default.number,autoHideDuration:l.default.number,autoHeight:l.default.bool,autoHeightMin:l.default.oneOfType([l.default.number,l.default.string]),autoHeightMax:l.default.oneOfType([l.default.number,l.default.string]),universal:l.default.bool,style:l.default.object,children:l.default.node},R.defaultProps={renderView:k.renderViewDefault,renderTrackHorizontal:k.renderTrackHorizontalDefault,renderTrackVertical:k.renderTrackVerticalDefault,renderThumbHorizontal:k.renderThumbHorizontalDefault,renderThumbVertical:k.renderThumbVerticalDefault,tagName:"div",thumbMinSize:30,hideTracksWhenNotNeeded:!1,autoHide:!1,autoHideTimeout:1e3,autoHideDuration:200,autoHeight:!1,autoHeightMin:0,autoHeightMax:200,universal:!1}}(j_)),j_}var Z_;function rU(){return Z_||(Z_=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.Scrollbars=void 0;var t=nU(),n=r(t);function r(o){return o&&o.__esModule?o:{default:o}}e.default=n.default,e.Scrollbars=n.default}(I_)),I_}var oU=rU();const iU="_loader_1uppi_1",aU="_caption_1uppi_7",Xa={loader:iU,caption:aU},sU=e=>{const{className:t="",caption:n="",isLoading:r=!1}=e,o=Te(Xa["loader-two-dots"],{[Xa["loader-two-dots--inactive"]]:!r},t),i=Te(Xa.loader,Xa["loader-two-dots-indicator"]),a=Te(Xa.caption);return E.jsx("div",{className:o,children:r&&E.jsx("div",{"data-testid":"loader-component",className:i,children:n&&E.jsx("div",{className:a,children:E.jsx("span",{children:n})})})})},lU="_clickable_19yrx_1",cU="_disabled_19yrx_5",K_={clickable:lU,disabled:cU},Ll=()=>{},Tn=e=>{const[t,n]=H.useState(!1),{className:r="",disabled:o=!1,name:i,hoverSuffix:a="",onClick:s=Ll,onMouseEnter:c=Ll,onMouseLeave:l=Ll,title:u=""}=e,d=S=>{t||n(!0),c(S)},p=S=>{t&&n(!1),l(S)},f={top:"auto"},m=!o&&t&&a?`${i}${a}`:i,b=Te("app-icon",`app-icon--${m}`),v=Te("app-icon__svg"),w=Te(b,r,{[K_.clickable]:s!==Ll,[K_.disabled]:o}),_=e,{dataTestId:T}=_,y=Ft(_,["dataTestId"]),k=ee({disabled:o,onClick:s},y);return u&&!o&&(k.title=u),delete k.hoverSuffix,E.jsx("span",xe(ee({},k),{className:w,onMouseEnter:d,onMouseLeave:p,"data-testid":T,children:E.jsxs("svg",{className:v,style:f,children:[E.jsx("use",{xlinkHref:`#${m}`}),E.jsx("symbol",{id:"general-arrow-down",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M12 13.84l3.174-2.719a.5.5 0 0 1 .65.76l-3.5 2.998a.5.5 0 0 1-.65 0l-3.5-2.998a.5.5 0 1 1 .65-.76L12 13.841z"})}),E.jsx("symbol",{id:"general-vi-small-white",viewBox:"0 0 24 24",children:E.jsx("path",{fill:"currentColor",d:"M8.354 11.646l-.708.708 3.418 3.417 5.343-7.48-.814-.582-4.657 6.52z"})})]})}))},uU="_sharedComponentsInputRadioButton_195lt_1",dU="_disabled_195lt_15",X_={sharedComponentsInputRadioButton:uU,disabled:dU},pU=({checked:e,text:t,disabled:n=!1,inline:r=!1,title:o="",name:i="",value:a,onChange:s,preventClick:c,inputRadioButtonClassName:l,className:u,textClassName:d,dataTestId:p=void 0})=>{const f=ee({disabled:n,name:i,value:a},o&&!n&&{title:o}),m=v=>{if(c){v.preventDefault(),v.stopPropagation();return}s(v)},b=Te("custom-radiobtn",{"custom-radiobtn--inline":r,[X_.disabled]:n},u);return E.jsx("div",{className:b,children:E.jsxs("label",{className:"custom-radiobtn__label",children:[E.jsxs("div",{className:Te(X_.sharedComponentsInputRadioButton,l,{}),children:[E.jsx("input",ee({className:"custom-radiobtn__input",type:"radio",onChange:m,checked:e,"data-testid":p},f)),E.jsx("span",{className:"custom-radiobtn__icon"})]}),E.jsx("span",{className:Te("custom-radiobtn__text",d),children:t})]})})},hU=({checked:e,onChange:t,className:n="",disabled:r=!1,inline:o=!1,text:i=""})=>{const a={checked:e,disabled:r,onChange:t},s="custom-togglebtn",c=Te(s,{[`${s}--inline`]:o},n),l=`${s}__icon`;return E.jsx("div",{className:c,children:E.jsxs("label",{className:`${s}__label`,children:[E.jsx("input",ee({type:"checkbox",className:`${s}__input`},a)),E.jsx("span",{className:l}),i&&E.jsx("span",{className:`${s}__text`,children:i})]})})},fU="_transparent_i81lr_1",gU="_icon_i81lr_12",mU="_disabled_i81lr_17",vU="_sharedComponentsInputCheckbox_i81lr_27",Fl={transparent:fU,icon:gU,disabled:mU,sharedComponentsInputCheckbox:vU},bU=e=>{const t=e,{className:n,disabled:r,inline:o,text:i,textClassName:a,title:s,transparent:c,dataTestId:l,iconName:u,onDescriptionClick:d,inputCheckboxClassName:p}=t,f=Ft(t,["className","disabled","inline","text","textClassName","title","transparent","dataTestId","iconName","onDescriptionClick","inputCheckboxClassName"]),m=ee({disabled:r},f);s&&!r&&(m.title=s);const b="custom-checkbox",v=Te(b,{"custom-checkbox--inline":o,[Fl.disabled]:r},n),w=Te(`${b}__icon`,"app-icon app-icon--form-checkbox-mark",{[Fl.transparent]:c}),_=Te(`${b}__text`,a),T=d?y=>{d(),y.preventDefault()}:void 0;return E.jsx("div",{className:v,children:E.jsxs("label",{className:`${b}__label`,children:[E.jsxs("div",{className:Te(Fl.sharedComponentsInputCheckbox,p),children:[E.jsx("input",ee({type:"checkbox",className:`${b}__input`,"data-testid":l},m)),E.jsx("span",{className:w,children:E.jsx("svg",{className:"app-icon__svg",children:E.jsx("use",{xlinkHref:"#form-checkbox-mark"})})})]}),u&&E.jsx(Tn,{name:u,className:Fl.icon,onClick:T}),E.jsx("span",{className:_,onClick:T,children:i})]})})},yU="_container_v8yrt_7",wU="_disabled_v8yrt_27",xU="_groupHeader_v8yrt_31",_U="_isDrill_v8yrt_36",CU="_separator_v8yrt_45",kU="_noIcon_v8yrt_48",SU="_item_v8yrt_52",TU="_checked_v8yrt_52",EU="_radio_v8yrt_62",OU="_checkbox_v8yrt_68",DU="_icon_v8yrt_74",RU="_itemType_v8yrt_77",AU="_nestedType_v8yrt_86",MU="_nestedIcon_v8yrt_90",NU="_menuItemText_v8yrt_93",PU="_separateGroup_v8yrt_99",IU="_itemCheckBox_v8yrt_103",jU="_itemRadioButton_v8yrt_108",LU="_scrollbar_v8yrt_113",FU="_itemContainer_v8yrt_120",BU="_inlineConfirmation_v8yrt_125",HU="_menuItemTooltip_v8yrt_129",$U="_toggleButtonMenu_v8yrt_138",zU="_loader_v8yrt_146",Pt={container:yU,disabled:wU,groupHeader:xU,isDrill:_U,separator:CU,noIcon:kU,item:SU,checked:TU,radio:EU,checkbox:OU,icon:DU,itemType:RU,nestedType:AU,nestedIcon:MU,menuItemText:NU,separateGroup:PU,itemCheckBox:IU,itemRadioButton:jU,scrollbar:LU,itemContainer:FU,inlineConfirmation:BU,menuItemTooltip:HU,toggleButtonMenu:$U,loader:zU},cs=Object.freeze({ITEM:"item",RADIO:"radio",CHECKBOX:"checkbox",TOGGLE:"toggle",NESTED:"nested"});class AR extends H.Component{constructor(t){super(t),B(this,"renderRegularMenuItem",()=>{const{dataTestId:n,iconName:r,iconClass:o,isDrill:i}=this.props;return E.jsxs("span",{className:Pt.itemContainer,children:[r&&E.jsx(Tn,{name:r,className:o}),E.jsx("span",{"data-testid":n,className:Te(Pt.menuItemText,To.TEXT_PRIMARY),children:this.getContent()}),i&&E.jsx(Tn,{name:"general-arrow-right"})]})}),B(this,"renderMenuItem",()=>{const{tooltip:n,classNameTooltip:r,level:o}=this.props,i=this.renderRegularMenuItem();return n?E.jsx(bR,{overlay:E.jsx("div",{children:n}),placement:"right",overlayClassName:Te(r,Pt.menuItemTooltip),mouseLeaveDelay:0,align:{offset:[o?5:10,0]},children:i}):i}),this.state={inInlineConfirmation:!1}}getContent(){const{type:t,caption:n,subCaption:r,checked:o,selected:i}=this.props;switch(t){case cs.RADIO:return E.jsx(pU,{text:n,name:n,onChange:()=>null,value:n,checked:!!o,preventClick:!0});case cs.CHECKBOX:return E.jsx(bU,{title:n,text:n,onChange:()=>null,checked:!!o,className:Pt.itemCheckBox});case cs.TOGGLE:return E.jsxs("div",{children:[E.jsx("span",{children:n}),E.jsx(hU,{onChange:()=>null,className:Pt.toggleButtonMenu,checked:!!o})]});case cs.NESTED:return E.jsxs("div",{className:Pt.nestedType,children:[E.jsx("div",{children:n}),E.jsx(Tn,{className:Pt.nestedIcon,name:"general-double-arrow-front"}),E.jsx("div",{children:r})]});default:return E.jsxs("div",{className:Pt.itemType,children:[n,i&&E.jsx(Tn,{name:"general-vi-small-white"})]})}}handleClick(t){t.stopPropagation();const{handleClick:n,disabled:r}=this.props;r||n()}render(){const{checked:t,className:n,iconName:r,handleOver:o,handleOut:i,disabled:a}=this.props,s=!1,c=Te(n,{[Pt.checked]:t,[Pt.noIcon]:!r||s,[Pt.disabled]:a,[To.TEXT_PRIMARY]:t,[To.TEXT_SECONDARY_HOVER]:!t&&!a,[To.TEXT_SECONDARY]:a});return E.jsx("li",{"data-menu-item":!0,className:c,onClick:this.handleClick.bind(this),onMouseOver:o,onMouseOut:i,children:this.renderMenuItem()})}}B(AR,"defaultProps",{className:""});const WU="_container_v9uof_1",UU="_message_v9uof_9",YU="_buttons_v9uof_16",qU="_button_v9uof_16",VU="_confirm_v9uof_34",GU="_cancel_v9uof_39",fo={container:WU,message:UU,buttons:YU,button:qU,confirm:VU,cancel:GU},QU=({message:e,title:t,onCancel:n,onConfirm:r})=>{const o=Te(fo.button,fo.confirm),i=Te(fo.button,fo.cancel);return E.jsxs("div",{className:fo.container,children:[E.jsx("div",{className:fo.title,children:t}),E.jsx("div",{className:Te(fo.message,To.TEXT_SECONDARY),children:e}),E.jsxs("div",{className:fo.buttons,children:[E.jsx("button",{className:o,onClick:r,children:"Yes"}),E.jsx("button",{className:i,onClick:n,children:"No"})]})]})};function JU(e,t){const n={};return e.reduce(function(r,o){const i=t(o);return r[i]||(r[i]=[]),r[i].push(o),r},n)}const eC=()=>{},MR=class extends H.Component{constructor(e){super(e),B(this,"timeoutIn"),B(this,"handleClick",t=>{if(t.subItems||t.actionableComponent){this.clearTimeout(),this.state.activeSubMenu===t.id?this.closeSubMenu():this.setState({activeSubMenu:t.id});return}else if(t.confirmation&&!t.confirmation.inline){this.clearTimeout(),this.setState({activeSubMenu:t.id});return}const{onItemSelected:n}=this.props;n(t,t.value)}),B(this,"handleOver",t=>{this.clearTimeout(),this.setState({isHoverSubMenu:!1});const n=t.subItems||t.actionableComponent?t.id:null;this.timeoutIn=window.setTimeout(()=>{this.setState({activeSubMenu:n})},900)}),B(this,"handleOut",t=>{(t.subItems||t.actionableComponent)&&this.state.activeSubMenu&&this.clearTimeout()}),B(this,"onSubMenuMouseEnter",()=>{this.clearTimeout(),this.setState({isHoverSubMenu:!0})}),B(this,"onSubMenuMouseLeave",()=>{this.setState({isHoverSubMenu:!1})}),B(this,"closeSubMenu",()=>{this.setState({activeSubMenu:null})}),B(this,"onConfirm",t=>{const{onItemSelected:n}=this.props;this.closeSubMenu(),n(t)}),B(this,"renderMenuItem",t=>{const{onItemSelected:n,onRequestClose:r,level:o,classNameTooltip:i,zIndex:a,className:s}=this.props;let c=Te(Pt[t.type],{[Pt.isDrill]:t.subItems,[Pt.separator]:t.separator,fakeHover:t.checked,[Pt.groupHeader]:t.groupTitle});const l=d=>{const p=Te(t.iconClass,Pt.icon);return E.jsx(AR,{className:d,checked:t.checked,dataTestId:t.dataTestId,disabled:t.disabled,type:t.type,caption:t.caption,subCaption:t.subCaption,tooltip:t.tooltip,classNameTooltip:i,iconName:t.iconName,iconClass:p,isDrill:!!t.subItems||!!t.actionableComponent,level:o,selected:t.selected,handleClick:()=>this.handleClick(t),handleOver:()=>this.handleOver(t),handleOut:()=>this.handleOut(t)},t.id)};let u=t.subItems;if(u){const d=this.state.activeSubMenu===t.id;let p=this.handleClick;return c=Te(c,{fakeHover:d&&this.state.isHoverSubMenu}),t.value!==void 0&&(u=u.map(function(f){return xe(ee({},f),{checked:f.value===t.value})}),p=f=>n(t,f.value)),E.jsx(bs,{visible:d,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[0,0]},overlay:()=>E.jsx(MR,{items:u||[],className:s,onItemSelected:p,onMouseEnter:this.onSubMenuMouseEnter,scrollbarProps:{className:t.subItemScrollbarClassName},level:(o||0)+1,zIndex:(a||1)+1}),onRequestClose:r,zIndex:(a||1)+1,children:l(c)},t.id)}else if(t.actionableComponent){const{componentProps:d}=t.actionableComponent,p=t.actionableComponent.component,f=this.state.activeSubMenu===t.id;return E.jsx(bs,{visible:f,level:1,mask:!1,trigger:[],placement:"rightTop",align:{offset:[10,0]},overlay:()=>E.jsx(p,xe(ee({},d),{onRequestClose:r})),onRequestClose:r,children:l(c)},t.id)}else if(t.confirmation&&!t.confirmation.inline){const d=t.confirmation,p=this.state.activeSubMenu===t.id;return E.jsx(bs,{visible:p,level:1,mask:!0,trigger:[],placement:"rightBottom",align:{offset:[10,0]},overlay:()=>E.jsx(QU,{title:d.title,message:d.message,onCancel:this.closeSubMenu,onConfirm:()=>this.onConfirm(t)}),onRequestClose:this.closeSubMenu,children:l(c)},t.id)}return l(c)}),this.state={activeSubMenu:null,isHoverSubMenu:!1},this.timeoutIn=null}componentWillUnmount(){this.clearTimeout()}clearTimeout(){this.timeoutIn&&(clearTimeout(this.timeoutIn),this.timeoutIn=null)}getSeparateGroups(e){const t=JU(e,r=>r.groupId||""),n=Object.values(t);return n.slice(1).forEach(r=>r[0].separator=!0),n}render(){const e=this.props,{items:t,className:n,onMouseEnter:r,scrollbarProps:o}=e,i=o,{className:a}=i,s=Ft(i,["className"]),{width:c,isLoading:l}=e;let u=t.filter(b=>!b.hidden);u=u.map((b,v)=>(b.separator&&!u[v-1]&&(b.separator=!1),b));const d=Te(Pt.container,n),p=Te(Pt.scrollbar,a),f=c?{width:`${c}px`,minWidth:"inherit"}:{},m=l?Pt.loader:"";return E.jsx("div",{className:d,onMouseEnter:r,style:f,children:E.jsxs(oU.Scrollbars,xe(ee({className:p},s),{hideTracksWhenNotNeeded:!0,children:[this.getSeparateGroups(u).map((b,v)=>E.jsx("div",{className:Pt.separateGroup,children:b.map(this.renderMenuItem)},v)),E.jsx("div",{className:m,children:E.jsx(sU,{isLoading:l})})]}))})}};let NR=MR;B(NR,"defaultProps",{onMouseEnter:eC,onRequestClose:eC,scrollbarProps:{},level:0,isLoading:!1,zIndex:1});const ZU="#2c3342",KU="#f4f4f8",XU="#dee1e7",e9="#fff",t9="_component_lx560_8",n9="_searchIcon_lx560_13",r9="_large_lx560_19",o9="_clearIcon_lx560_22",i9="_clearIconHidden_lx560_34",a9="_passwordVisibilityIcon_lx560_43",s9="_customIcon_lx560_54",l9="_isLeft_lx560_59",c9="_input_lx560_66",u9="_withLeftIcon_lx560_76",xn={loginDarkColor:ZU,darkBtnHoverColor:KU,greyHoverColor:XU,defaultBackgroundColor:e9,component:t9,searchIcon:n9,large:r9,clearIcon:o9,clearIconHidden:i9,passwordVisibilityIcon:a9,customIcon:s9,isLeft:l9,input:c9,withLeftIcon:u9},d9=e=>{const{className:t,inputClassName:n,onChange:r,onClicked:o,onBlur:i=()=>{},placeholder:a,search:s,dataTestId:c,defaultValue:l,value:u,autoFocus:d,clearable:p,password:f,disabled:m=!1,size:b,icon:v,trimInput:w,ariaLabel:_="input"}=e,[T,y]=H.useState(l||u||""),[k,S]=H.useState(!1),x=H.useRef(null),{name:C="",placement:O}=v||{};return H.useEffect(()=>{y(u||"")},[u]),E.jsxs("div",{className:Te(xn.component,t),children:[s&&E.jsx(Tn,{className:Te(xn.searchIcon,{[xn.large]:b==="large"}),name:"general-search-small"}),E.jsx("input",{className:Te(xn.input,n,{[xn.withLeftIcon]:s||v&&O==="left",[xn.large]:b==="large"}),placeholder:a,disabled:m,onChange:D=>{r(w?D.target.value.trim():D.target.value),y(D.target.value)},onClick:o,onBlur:i,"data-testid":c,defaultValue:l,value:u!=null?u:T,autoFocus:d,type:f&&!k?"password":"text",ref:x,"aria-label":_}),p&&!f&&!v&&E.jsx(Tn,{className:Te(xn.clearIcon,{[xn.clearIconHidden]:T==="",[xn.large]:b==="large"}),name:"general-x",onClick:()=>{y(""),r("")},onMouseDown:D=>D.preventDefault()}),f&&E.jsx(Tn,{className:Te(xn.passwordVisibilityIcon,{[xn.large]:b==="large"}),name:k?"general-unhide":"general-show",onClick:()=>{S(!k)},onMouseDown:D=>D.preventDefault()}),v&&!p&&!f&&E.jsx(Tn,{className:Te(xn.customIcon,{[xn.large]:b==="large",[xn.isLeft]:O==="left"}),name:C})]})},p9=136,h9="_searchInputWrapper_otzmq_1",f9={searchInputWrapper:h9},tC=()=>{},g9=H.forwardRef(({width:e=p9,onClick:t=tC,inputProps:n={onChange:tC},className:r=""},o)=>{const i=Te(r||f9.searchInputWrapper);return E.jsx("div",{ref:o,style:{width:e},className:i,"data-testid":"search_input_container",children:E.jsx(d9,ee({onClicked:t},n))})}),m9="#2c3342",v9="#f4f4f8",b9="#dee1e7",y9="#fff",w9="_dropdownButton_xulrt_21",x9="_inlineVariant_xulrt_30",_9="_open_xulrt_37",C9="_disabled_xulrt_43",k9="_selectedIcon_xulrt_48",S9="_chosenTitle_xulrt_51",T9="_clickIcon_xulrt_58",si={loginDarkColor:m9,darkBtnHoverColor:v9,greyHoverColor:b9,defaultBackgroundColor:y9,dropdownButton:w9,inlineVariant:x9,open:_9,disabled:C9,selectedIcon:k9,chosenTitle:S9,clickIcon:T9},E9=({selectedItem:e,width:t,dropDownButtonClasses:n,selectedShowIcon:r=!0,placeholder:o=""})=>{const{caption:i,iconName:a}=e||{};return E.jsxs("div",{className:n,title:i,style:t?{width:t,minWidth:"inherit"}:{},children:[r&&a&&E.jsx(Tn,{className:si.selectedIcon,name:a}),E.jsx("div",{className:si.chosenTitle,children:i||o}),E.jsx("div",{className:si.clickIcon,children:E.jsx(Tn,{name:"general-arrow-down"})})]})},O9=(e,t,n,r)=>{const[o,i]=H.useState(xe(ee({},n),{value:t==null?void 0:t.caption})),a=l=>{l.stopPropagation()},s=l=>{n==null||n.onChange(l),i(xe(ee({},n),{value:l}))},c=()=>{var l;const u=(l=r==null?void 0:r.current)==null?void 0:l.getElementsByTagName("input")[0];u==null||u.select()};return H.useEffect(()=>{e?(i(xe(ee({},n),{value:t==null?void 0:t.caption})),c()):n==null||n.onChange("")},[e]),H.useEffect(()=>{e&&o.value!==(n==null?void 0:n.value)&&c()},[o.value]),{handlers:{handleOnSearchInputClick:a,handleOnSearchInputChange:s},inputProps:o}},D9=({items:e=[],selectedShowIcon:t=!0,placeholder:n="",disabled:r,selectedItemId:o,width:i,inlineVariant:a,classNameDropdown:s,classNameButton:c,classNameSearch:l,searchInputProps:u,isOpen:d=!1})=>{const p=e.find(_=>_.id===o),f=H.useRef(null),{inputProps:m,handlers:{handleOnSearchInputClick:b,handleOnSearchInputChange:v}}=O9(d,p,u,f),w=Te(c,si.dropdownButton,{[si.disabled]:r,[si.open]:d,[si.inlineVariant]:a},s);return E.jsx(E.Fragment,{children:u&&d&&!r?E.jsx(g9,{ref:f,width:i,onClick:b,inputProps:xe(ee({},m),{onChange:v}),className:l}):E.jsx(E9,{selectedItem:p,width:i,placeholder:n,selectedShowIcon:t,dropDownButtonClasses:w})})},R9=(e,t,n)=>{const[r,o]=H.useState(t),i=()=>{n||o(!r)};return{handlers:{handleOnSelectItem:a=>{e(a),i()},handleDropdownClick:i},isOpen:r}},A9="_menu_1lxhu_1",M9={menu:A9},N9=()=>{},P9=H.forwardRef(({bubblePopoverMouseEvents:e=!1,items:t=[],onSelectItem:n=N9,popoverOverlayLevel:r=0,selectedShowIcon:o=!0,mask:i=!0,placeholder:a="",placement:s="bottomLeft",disabled:c=!1,selectedItemId:l,width:u,scrollbarProps:d,classNameMenu:p,inlineVariant:f,classNameDropdown:m,classNameButton:b,classNameSearch:v,classNameTooltip:w,zIndex:_,searchInputProps:T,open:y=!1,isLoading:k=!1},S)=>{const x=f?12:0,C=t.map(M=>({id:M.id,caption:M.caption||M.id,type:cs.ITEM,iconName:M.iconName,iconClass:M.iconClass,selected:M.id===l,tooltip:M.tooltip,disabled:M.disabled})),{isOpen:O,handlers:{handleOnSelectItem:D,handleDropdownClick:R}}=R9(n,y,c);return E.jsx("div",{ref:S,"data-testid":"popover_container",children:E.jsx(bs,{zIndex:_,bubbleMouseEvents:e,trigger:["click"],visible:O,placement:s,overlay:()=>{const M=Te(M9.menu,To.SISENSE_NAMESPACE,p);return E.jsx(NR,{items:C,onItemSelected:D,className:M,width:u,scrollbarProps:d,isLoading:k,classNameTooltip:w})},level:r,onVisibleChange:R,onRequestClose:R,align:{offset:[0,x]},mask:i,children:E.jsx("div",{children:E.jsx(D9,{isOpen:O,items:t,selectedShowIcon:o,placeholder:a,width:u,disabled:c,classNameButton:b,classNameDropdown:m,classNameSearch:v,inlineVariant:f,searchInputProps:T,selectedItemId:l})})})})}),I9=e=>{const{direction:t,items:n,onChange:r}=e;return E.jsx(P9,{classNameDropdown:"direction-selector",classNameMenu:"sis-scope direction-selector__menu",items:n,selectedItemId:t,onSelectItem:o=>{r(o.id)},mask:!1,scrollbarProps:{style:{marginBottom:"-8px"}}})};function j9(e){return rt("PrivateSwitchBase",e)}tt("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const L9=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],F9=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${Ne(o)}`],input:["input"]};return at(i,j9,t)},B9=Ce(pd)(({ownerState:e})=>V({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),H9=Ce("input",{shouldForwardProp:ar})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),PR=P.forwardRef(function(e,t){const{autoFocus:n,checked:r,checkedIcon:o,className:i,defaultChecked:a,disabled:s,disableFocusRipple:c=!1,edge:l=!1,icon:u,id:d,inputProps:p,inputRef:f,name:m,onBlur:b,onChange:v,onFocus:w,readOnly:_,required:T=!1,tabIndex:y,type:k,value:S}=e,x=ke(e,L9),[C,O]=Ss({controlled:r,default:!!a,name:"SwitchBase",state:"checked"}),D=od(),R=Y=>{w&&w(Y),D&&D.onFocus&&D.onFocus(Y)},M=Y=>{b&&b(Y),D&&D.onBlur&&D.onBlur(Y)},F=Y=>{if(Y.nativeEvent.defaultPrevented)return;const U=Y.target.checked;O(U),v&&v(Y,U)};let N=s;D&&typeof N=="undefined"&&(N=D.disabled);const I=k==="checkbox"||k==="radio",j=V({},e,{checked:C,disabled:N,disableFocusRipple:c,edge:l}),$=F9(j);return E.jsxs(B9,V({component:"span",className:De($.root,i),centerRipple:!0,focusRipple:!c,disabled:N,tabIndex:null,role:void 0,onFocus:R,onBlur:M,ownerState:j,ref:t},x,{children:[E.jsx(H9,V({autoFocus:n,checked:r,defaultChecked:a,className:$.input,disabled:N,id:I?d:void 0,name:m,onChange:F,readOnly:_,ref:f,required:T,ownerState:j,tabIndex:y,type:k},k==="checkbox"&&S===void 0?{}:{value:S},p)),C?o:u]}))});process.env.NODE_ENV!=="production"&&(PR.propTypes={autoFocus:h.bool,checked:h.bool,checkedIcon:h.node.isRequired,classes:h.object,className:h.string,defaultChecked:h.bool,disabled:h.bool,disableFocusRipple:h.bool,edge:h.oneOf(["end","start",!1]),icon:h.node.isRequired,id:h.string,inputProps:h.object,inputRef:or,name:h.string,onBlur:h.func,onChange:h.func,onFocus:h.func,readOnly:h.bool,required:h.bool,sx:h.object,tabIndex:h.oneOfType([h.number,h.string]),type:h.string.isRequired,value:h.any});const $9=PR,z9=Wr(E.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),W9=Wr(E.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),U9=Wr(E.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Y9(e){return rt("MuiCheckbox",e)}const q9=tt("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),Df=q9,V9=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],G9=e=>{const{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${Ne(r)}`,`size${Ne(o)}`]},a=at(i,Y9,t);return V({},t,a)},Q9=Ce($9,{shouldForwardProp:e=>ar(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Ne(n.size)}`],n.color!=="default"&&t[`color${Ne(n.color)}`]]}})(({theme:e,ownerState:t})=>V({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:lt.alpha(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Df.checked}, &.${Df.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Df.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),J9=E.jsx(W9,{}),Z9=E.jsx(z9,{}),K9=E.jsx(U9,{}),IR=P.forwardRef(function(e,t){var n,r;const o=ut({props:e,name:"MuiCheckbox"}),{checkedIcon:i=J9,color:a="primary",icon:s=Z9,indeterminate:c=!1,indeterminateIcon:l=K9,inputProps:u,size:d="medium",className:p}=o,f=ke(o,V9),m=c?l:s,b=c?l:i,v=V({},o,{color:a,indeterminate:c,size:d}),w=G9(v);return E.jsx(Q9,V({type:"checkbox",inputProps:V({"data-indeterminate":c},u),icon:P.cloneElement(m,{fontSize:(n=m.props.fontSize)!=null?n:d}),checkedIcon:P.cloneElement(b,{fontSize:(r=b.props.fontSize)!=null?r:d}),ownerState:v,ref:t,className:De(w.root,p)},f,{classes:w}))});process.env.NODE_ENV!=="production"&&(IR.propTypes={checked:h.bool,checkedIcon:h.node,classes:h.object,className:h.string,color:h.oneOfType([h.oneOf(["default","primary","secondary","error","info","success","warning"]),h.string]),defaultChecked:h.bool,disabled:h.bool,disableRipple:h.bool,icon:h.node,id:h.string,indeterminate:h.bool,indeterminateIcon:h.node,inputProps:h.object,inputRef:or,onChange:h.func,required:h.bool,size:h.oneOfType([h.oneOf(["medium","small"]),h.string]),sx:h.oneOfType([h.arrayOf(h.oneOfType([h.func,h.object,h.bool])),h.func,h.object]),value:h.any});const X9=IR,e7=Bo({components:{MuiCheckbox:{styleOverrides:{root:{width:"28px",height:"28px","&.Mui-disabled":{opacity:.5},"&:hover":{backgroundColor:He.StInteractionColors.defaultHover},"& .MuiSvgIcon-root":{fontSize:14,fill:He.StUiColors.default}}}}}}),t7=H.forwardRef((e,t)=>{var n=e,{theme:r=e7,dataTestId:o}=n,i=Ft(n,["theme","dataTestId"]);return E.jsx(Si,{theme:r,children:E.jsx(X9,ee({"data-testid":o,ref:t},i))})}),n7=e=>{const{title:t,fieldTypes:n,selected:r,onSettingsItemStateChange:o,subtotalsCaption:i}=e,[a,s]=H.useState(r),c=e.direction||St.ASC,l=()=>{s(!a),o({title:t,selected:!a,direction:c})},u=a===!1?null:E.jsx(I9,{direction:c,items:n,onChange:y=>{o({title:t,selected:a,direction:y})}}),d=H.useRef(null),p=H.useRef(null),[f,m]=H.useState(!1),b=()=>{const y=d.current,k=p.current;y===null||k===null||y.offsetWidth<k.offsetWidth&&m(!0)},v=()=>{const y=d.current,k=p.current;y===null||k===null||y.offsetWidth<k.offsetWidth&&m(!1)},w=()=>{s(!a),o({title:t,selected:!a,direction:c})},[_,T]=H.useState(!1);return E.jsxs("div",{className:"settings-item",children:[E.jsxs("div",{className:"checkbox-input",children:[E.jsx(t7,{checked:a,onChange:l}),E.jsxs("div",{className:"checkbox-input__label",tabIndex:0,role:"button","aria-pressed":"false",onClick:w,onKeyUp:w,onMouseEnter:()=>T(!0),onMouseLeave:()=>T(!1),children:[E.jsx(DR,{placement:"top",title:t,children:E.jsx("div",{ref:d,className:"checkbox-input__text-wrapper",onMouseEnter:b,onMouseLeave:v,children:E.jsx("span",{ref:p,children:t})})}),i]})]}),u]},t)};function jR(e){const t={[St.ASC]:{[Qr.TEXT]:e.ascAZ,[Qr.NUMERIC]:e.asc19,[Qr.DATETIME]:e.asc19},[St.DESC]:{[Qr.TEXT]:e.descZA,[Qr.NUMERIC]:e.desc91,[Qr.DATETIME]:e.desc91}};return function(n,r){return t[r][n]}}const cn=e=>e.getBoundingClientRect(),nC=(e,t)=>({get collidedTop(){return cn(e).top<cn(t).top},get collidedBottom(){return cn(e).bottom>cn(t).bottom},get collidedLeft(){return cn(e).left<cn(t).left},get collidedRight(){return cn(e).right>cn(t).right},get overflowTop(){return cn(t).top-cn(e).top},get overflowBottom(){return cn(e).bottom-cn(t).bottom},get overflowLeft(){return cn(t).left-cn(e).left},get overflowRight(){return cn(e).right-cn(t).right}}),r7="_sharedComponentsButton_t1p0l_31",o7="_sharedComponentsButtonText_t1p0l_34",i7="_btnSecondary_t1p0l_37",Rf={sharedComponentsButton:r7,sharedComponentsButtonText:o7,btnSecondary:i7},a7=" ",qc=e=>{const t=e,{allowDisabledTitle:n,className:r,disabled:o,hoverSuffix:i,iconClassName:a,iconName:s,transparent:c,text:l,trailingIconName:u,title:d,dark:p,gray:f,secondary:m,dataTestId:b,ariaLabel:v="button"}=t,w=Ft(t,["allowDisabledTitle","className","disabled","hoverSuffix","iconClassName","iconName","transparent","text","trailingIconName","title","dark","gray","secondary","dataTestId","ariaLabel"]),_=Te("btn",{"btn--disabled":o,"btn--transp":c,"btn--dark":p,"btn--icon":!l,"btn--gray":f,[Rf.btnSecondary]:m},Rf.sharedComponentsButton,r),T=Te("btn__icon",a),y=s&&E.jsx(Tn,{className:T,name:s,disabled:o,hoverSuffix:i}),k=Te("btn__text",Rf.sharedComponentsButtonText),S=l&&E.jsx("span",{className:k,children:l}),x=y&&S&&a7,C=u&&E.jsx(Tn,{className:T,name:u,disabled:o,hoverSuffix:i}),O=ee({disabled:o,title:d&&(!o||n)?d:void 0},w);return E.jsxs("button",xe(ee({},O),{className:_,"data-testid":b,"aria-label":v,children:[y,x,S,C]}))};qc.propTypes={allowDisabledTitle:h.bool,className:h.string,disabled:h.bool,hoverSuffix:h.string,iconClassName:h.string,iconName:h.string,onClick:h.func.isRequired,text:h.string,title:h.string,trailingIconName:h.string,transparent:h.bool,dark:h.bool,gray:h.bool};qc.defaultProps={allowDisabledTitle:!1};const s7=e=>{const{titleOfPopUp:t,currentSortingSettings:n,onSortingSettingsUpdate:r,onCrossIconClick:o,messages:i}=e,a=jR(i),[s,c]=H.useState(n),l=()=>r(s),u=()=>{const T=zv(s,y=>{y.forEach(k=>{k.direction=null,k.selected=!1})});r(T)},d=T=>{const y=zv(s,k=>{const S=k.findIndex(({title:x})=>T.title===x);S!==-1&&(k[S].selected=T.selected,k[S].direction=T.direction,T.selected||(k[S].direction=null))});c(y)},p=s.map((T,y)=>{const{datatype:k,selected:S,direction:x}=T,{title:C}=T,O=y===s.length-1?null:E.jsx("span",{className:"subtotals-caption",children:i.subtotals}),D=[{caption:a(k,St.ASC),id:St.ASC},{caption:a(k,St.DESC),id:St.DESC}];return E.jsx(n7,{title:C,fieldTypes:D,selected:S,direction:x,onSettingsItemStateChange:d,subtotalsCaption:O},C)}),f=n.some(T=>T.selected)?E.jsx(qc,{text:i.clearSorting,gray:!0,onClick:u}):null,m=H.useRef(null),b=H.useRef(null),v=H.useRef(null),[w,_]=H.useState({});return H.useLayoutEffect(()=>{const T=m.current;if(T===null)return;const y=b.current;if(y===null)return;const k=v.current;if(k===null)return;const S=nC(y,T),x=nC(k,T);x.collidedBottom||S.collidedTop||x.collidedTop||S.collidedBottom?_({borderTop:"1px #E7E8EA solid",paddingTop:"16px"}):_({})},s.map(({selected:T})=>T)),E.jsx("div",{className:"sis-scope",children:E.jsxs("div",{className:"complex-sorting-settings",children:[E.jsx(RR,{className:"sorting-settings-header",prependedText:i.sortBy,hierarchy:t,onCrossIconClick:o}),E.jsxs("div",{ref:m,className:"complex-sorting-settings__body",children:[E.jsx("span",{ref:b,style:{fontWeight:600},children:i.selectToSort}),E.jsx("ul",{ref:v,className:"settings-checkboxes",children:p})]}),E.jsx("div",{className:"complex-sorting-settings__actions",style:w,children:E.jsxs("div",{className:"sp-buttons",children:[E.jsx(qc,{onClick:l,text:i.apply}),f]})})]})})},l7="_item_fvqjc_1",c7="_icon_fvqjc_10",Af={item:l7,icon:c7},u7=({items:e,className:t,onChange:n})=>E.jsx("div",{className:t,children:e.map(r=>E.jsxs("div",{className:Af.item,onClick:()=>n(r.value),"data-testid":r.dataTestId,children:[E.jsx("span",{className:Af.name,children:r.name}),r.checked&&E.jsx(Tn,{className:Af.icon,name:"general-vi-small-white"})]},r.value))}),d7=e=>{const{titleOfPopUp:t,currentSortingSettings:n,onSortingSettingsUpdate:r,messages:o}=e,i=jR(o),{datatype:a,direction:s}=n,c=l=>{const u=zv(n,d=>{d.selected=!0,d.direction=l});r(u)};return E.jsx("div",{className:"sis-scope",children:E.jsxs("div",{className:"simple-sorting-settings",children:[E.jsx(RR,{className:"sorting-settings-header",prependedText:`${o.sort} - `,hierarchy:t}),E.jsx("div",{className:"simple-sorting-settings__actions",children:E.jsx(u7,{styles:{margin:"16px"},onChange:c,items:[{name:`${o.sort} ${i(a,St.ASC)}`,value:St.ASC,checked:s===St.ASC,dataTestId:"sort-ascending"},{name:`${o.sort} ${i(a,St.DESC)}`,value:St.DESC,checked:s===St.DESC,dataTestId:"sort-descending"}]})})]})})};function p7(e){let t=e;const n=[];for(;t.content&&typeof t.content!=typeof P.Component?n.push(t.content):n.push(t.value),t.parent;)t=t.parent;return n.reverse()}const rC="queryStart",oC="queryEnd",h7="loadingStart",f7="loadingFinish",g7="sortUpdate",Vc="sortingSettingsChanged",m7="pageChange",v7="emptyChange",b7="totalHeightChange",y7="domReady",w7="firstPageRendered",x7="totalWidgetRendered",Bl=0,iC={isFirstPageRendered:!1,isGrandTotalRowRendered:!1,isTotalRowsCountRendered:!1,isReceivedRowsCountCalculated:!1};class _7{constructor(t,n,r=new Us){B(this,"events"),B(this,"domElem"),B(this,"pivot"),B(this,"dataService"),B(this,"currentRowsTreeService"),B(this,"isLoadPageInProgress",!1),B(this,"isFirstPageRenderInProgress",!1),B(this,"onDataChunkReceivedThrottle"),B(this,"loadedItemsCount"),B(this,"totalItemsCount",0),B(this,"totalRecordsCount",0),B(this,"totalColumnsCount",0),B(this,"columnsCount",0),B(this,"limitReached",!1),B(this,"appearanceState",ee({},iC)),B(this,"props"),B(this,"rootDom"),B(this,"onDataChunkReceived",o=>{this.onDataChunkReceivedThrottle(o)}),B(this,"onGrandChunkReceived",o=>{const{isPaginated:i}=this.props;i&&this.currentRowsTreeService&&!this.currentRowsTreeService.hasGrandTotals&&(this.currentRowsTreeService.extend(o),this.currentRowsTreeService.hasGrandTotals=!0,this.pivot&&this.pivot.addMore(this.currentRowsTreeService,!0)),this.setAppearanceState({isGrandTotalRowRendered:!0})}),B(this,"onTotalRowsChunkReceived",o=>{const{rowsCount:i,queryRowsCount:a,limitReached:s=!1}=o;this.updateProps({totalItemsCount:i,totalRecordsCount:a,limitReached:s}),this.setAppearanceState({isTotalRowsCountRendered:!0})}),B(this,"onTotalColumnsChunkReceived",o=>{const{columnsCount:i,totalColumnsCount:a}=o;this.columnsCount=i,this.totalColumnsCount=a,this.updateProps({columnsCount:i,totalColumnsCount:a})}),B(this,"onProgressError",o=>{this.emit(Gl,o)}),B(this,"onSortingMetadataUpdate",o=>{const i=this.dataService?this.dataService.isSingleRowTree():!1;this.emit(g7,o,{isSingleRowTree:i})}),B(this,"handleSortingSettingsChanged",(o,i,a)=>{if(!o||o.dir===void 0)return;const s=i&&i.valueNode?nn(i.valueNode):void 0,c={measurePath:o.measurePath,dir:o.dir||my(o),field:s?s.jaqlIndex:o.jaqlIndex},l=o.metadataType==="rows"&&o.jaqlIndex===c.field,u=this.dataService?this.dataService.isSingleRowTree():!1,d=l||u,p=p7(o);d?this.showSimpleSortingPopup(c,a,u,p):this.showComplexSortingPopup(c,a,u,p)}),B(this,"onMoreLoadingFinish",()=>{this.hideLoading()}),B(this,"onPageChange",o=>{this.emit(m7),this.loadPageData(o.selected)}),B(this,"onItemsPerPageChange",o=>{this.updateProps({activePage:Bl,itemsPerPage:o})}),B(this,"onEmptyChange",o=>{this.emit(v7,o)}),B(this,"onTotalHeightChange",o=>{this.emit(b7,o)}),B(this,"onDomReady",()=>{this.emit(y7)}),B(this,"onGridUpdated",()=>{this.isFirstPageRenderInProgress&&(this.isFirstPageRenderInProgress=!1,this.setAppearanceState({isFirstPageRendered:!0})),this.hideLoading()}),this.events=r,t&&(this.registerDataServiceListeners(t),this.dataService=t),this.props=ee({className:"",width:800,height:400,isPaginated:!0,isAutoHeight:!1,itemsCount:0,loadedItemsCount:0,totalItemsCount:0,totalRecordsCount:0,limitReached:!1,totalColumnsCount:0,columnsCount:0,itemsPerPage:25,activePage:Bl,isFullWidth:!1,isFixedEnabled:!0,isAllDataLoaded:!1,getSortingPopupMessages:()=>({clearSorting:"Clear sorting",selectToSort:"Select column (level) to sort:",sortBy:"Sort by",sort:"Sort",subtotals:"(Subtotals)",apply:"Apply",cancel:"Cancel",ascAZ:"Ascending (A-Z)",descZA:"Descending (Z-A)",asc19:"Ascending (1-9)",desc91:"Descending (9-1)"}),paginationOptions:void 0,onGetInitialData:()=>{},onMoreLoadingFinish:this.onMoreLoadingFinish,onPageChange:this.onPageChange,onItemsPerPageChange:this.onItemsPerPageChange,onSortingSettingsChanged:this.handleSortingSettingsChanged,onSortingMetadataUpdate:this.onSortingMetadataUpdate,onEmptyChange:this.onEmptyChange,onTotalHeightChange:this.onTotalHeightChange,onGridUpdated:this.onGridUpdated,onDomReady:this.onDomReady},n),this.onDataChunkReceivedThrottle=bE(o=>{const{activePage:i}=this.props;let a=o;this.loadedItemsCount&&this.loadedItemsCount>o&&(a=this.loadedItemsCount),this.updateProps({itemsCount:a,activePage:i>-1?i:0})},500)}destroy(){if(this.onDataChunkReceivedThrottle.cancel(),this.dataService){const t=this.dataService;this.destroyDataServiceListeners(t)}if(this.domElem)try{this.rootDom.unmount()}catch(t){vn.unmountComponentAtNode(this.domElem)}this.currentRowsTreeService&&(this.currentRowsTreeService.destroy(),this.currentRowsTreeService=void 0),this.pivot=void 0}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}emit(t,...n){const r=[t,...n];this.events.emit(...r)}render(t,n){this.domElem=t;const r=xe(ee(ee({},this.props),n),{ref:i=>this.pivot=i}),o=P.createElement(yv,r,null);try{this.rootDom||(this.rootDom=OP.createRoot(this.domElem)),this.rootDom.render(o)}catch(i){vn.render(o,this.domElem)}this.props=r}updateDataService(t){if(this.dataService){const n=this.dataService;this.destroyDataServiceListeners(n)}if(this.dataService=t,this.onDataChunkReceivedThrottle.cancel(),this.dataService){const n=this.dataService;this.resetAppearanceState(),this.registerDataServiceListeners(n)}}registerDataServiceListeners(t){t.on(zm,this.onDataChunkReceived),t.on(Wm,this.onGrandChunkReceived),t.on(Ym,this.onTotalRowsChunkReceived),t.on(qm,this.onTotalColumnsChunkReceived),t.on(Gl,this.onProgressError)}destroyDataServiceListeners(t){t.off(zm,this.onDataChunkReceived),t.off(Wm,this.onGrandChunkReceived),t.off(Ym,this.onTotalRowsChunkReceived),t.off(qm,this.onTotalColumnsChunkReceived),t.off(Gl,this.onProgressError)}getCurrentState(){return ee({},this.props)}updateJaql(t){this.totalItemsCount=0,this.totalColumnsCount=0,this.totalRecordsCount=0,this.columnsCount=0,this.limitReached=!1,this.loadedItemsCount=void 0,this.updateProps({totalItemsCount:this.totalItemsCount,totalColumnsCount:this.totalColumnsCount,totalRecordsCount:this.totalRecordsCount,columnsCount:this.columnsCount,limitReached:this.limitReached}),this.loadInitData(t)}updateProps(t){if(!this.domElem)return;const n=xe(ee(ee({},this.props),t),{ref:i=>this.pivot=i}),r=yE(this.props,n);(typeof r.isPaginated!="undefined"||typeof r.itemsPerPage!="undefined")&&(this.totalItemsCount=0,this.totalRecordsCount=0,this.loadedItemsCount=void 0,this.loadInitData(void 0,n));const o=P.createElement(yv,n,null);try{this.rootDom.render(o)}catch(i){vn.render(o,this.domElem)}this.props=n}loadInitData(t,n=this.props){var r,o;if(((o=(r=this.dataService)==null?void 0:r.getJaql())==null?void 0:o.queryGuid)===(t==null?void 0:t.queryGuid))return;const{dataService:i}=this,{isPaginated:a,itemsPerPage:s}=n,c=a?s:void 0;if(this.onDataChunkReceivedThrottle.cancel(),!i){this.pivot&&this.pivot.initialize(),this.currentRowsTreeService&&(this.currentRowsTreeService.destroy(),this.currentRowsTreeService=void 0);return}this.updateProps({itemsCount:0,totalItemsCount:0,totalColumnsCount:0,totalRecordsCount:0,columnsCount:0,activePage:Bl,isAllDataLoaded:!1,limitReached:!1}),this.currentRowsTreeService=void 0,this.isLoadPageInProgress=!1,this.isFirstPageRenderInProgress=!1,this.showLoading(),this.events.emit(rC),i.loadData(t,{pageSize:c,isPaginated:a}).then(({rowsTreeService:l,columnsTreeService:u,cornerTreeService:d,isLastPage:p,cellsMetadata:f})=>{this.events.emit(oC),this.loadedItemsCount!==null&&this.updateProps({itemsCount:this.loadedItemsCount,totalItemsCount:this.totalItemsCount,totalRecordsCount:this.totalRecordsCount,limitReached:this.limitReached,activePage:Bl,isAllDataLoaded:!0}),this.pivot&&(this.isFirstPageRenderInProgress=!0,this.pivot.initialize(l,u,d,{isLastPage:p,cellsMetadata:f}),this.currentRowsTreeService=l)}).catch(l=>{if(!(l instanceof Zi))throw l}),i.loadAllData().then(l=>{this.totalItemsCount=l.totalItemsCount,this.loadedItemsCount=l.loadedRowsCount,this.totalRecordsCount=l.totalRecordsCount,this.limitReached=l.limitReached,l.columnsCount&&l.totalColumnsCount&&(this.columnsCount=l.columnsCount,this.totalColumnsCount=l.totalColumnsCount);const u=ee({isAllDataLoaded:!0},l);this.updateProps(u),this.setAppearanceState({isReceivedRowsCountCalculated:!0})}).catch(l=>{if(!(l instanceof Zi))throw l})}loadPageData(t){if(this.isLoadPageInProgress||!this.props.isPaginated)return;const{dataService:n}=this;if(!n){console.warn("DataService instance not defined");return}this.isLoadPageInProgress=!0,this.showLoading(),this.events.emit(rC),n.getSelectedPageData(t,this.props.itemsPerPage).then(({rowsTreeService:r,columnsTreeService:o,cornerTreeService:i,isLastPage:a,cellsMetadata:s})=>{this.events.emit(oC),this.isLoadPageInProgress=!1,this.pivot&&(this.pivot.initialize(r,o,i,{isLastPage:a,cellsMetadata:s}),this.currentRowsTreeService=r),this.updateProps({activePage:t})})}showLoading(){this.emit(h7)}hideLoading(){this.emit(f7)}showSimpleSortingPopup(t,n,r,o){const i=this.dataService&&this.dataService.getJaql();if(!i)return;const a=Tt.getMetadataPanels(i),s=Tt.getDataTypes(a),c=Tt.mapWidgetJaqlToSimpleSortingSettings(a,t,s);if(c===void 0)return;const l=d=>{n.setSortingPopup(null),!Im(c,d)&&this.emit(Vc,{type:"simple",settings:[d],sortDetails:t,isSingleRowTree:r})},u=P.createElement(d7,{titleOfPopUp:o,currentSortingSettings:c,onSortingSettingsUpdate:l,messages:this.props.getSortingPopupMessages()});n.setSortingPopup(u)}showComplexSortingPopup(t,n,r,o){const i=this.dataService&&this.dataService.getJaql();if(!i)return;const a=Tt.mapWidgetJaqlToComplexSortingSettings(i,t),s=l=>{n.setSortingPopup(null),!Im(a,l)&&this.emit(Vc,{type:"complex",settings:l,sortDetails:t,isSingleRowTree:r})},c=P.createElement(s7,{titleOfPopUp:o,currentSortingSettings:a,onSortingSettingsUpdate:s,onCrossIconClick:()=>n.setSortingPopup(null),messages:this.props.getSortingPopupMessages()});n.setSortingPopup(c)}onAppearanceStateUpdated(t,n){!t.isFirstPageRendered&&n.isFirstPageRendered&&this.emit(w7),!this.isTotallyRendered(t)&&this.isTotallyRendered(n)&&this.emit(x7)}setAppearanceState(t={}){const n=Object.freeze(ee({},this.appearanceState)),r=Object.freeze(ee(ee({},this.appearanceState),t));this.onAppearanceStateUpdated(n,r),this.appearanceState=r}resetAppearanceState(){const t=Object.freeze(ee({},this.appearanceState)),n=Object.freeze(ee({},iC));this.onAppearanceStateUpdated(t,n),this.appearanceState=n}isTotallyRendered(t=this.appearanceState){const n=this.dataService&&this.dataService.getJaql()||{grandTotals:{rows:void 0}},r=!!(n.grandTotals&&n.grandTotals.rows);return t.isFirstPageRendered&&t.isTotalRowsCountRendered&&t.isReceivedRowsCountCalculated&&(!r||t.isGrandTotalRowRendered)}}var Gc={},C7={get exports(){return Gc},set exports(e){Gc=e}},Mf,aC;function LR(){if(aC)return Mf;aC=1;var e=/^(?:(?![^:@]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,t=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];Mf=function(o){var i=o,a=o.indexOf("["),s=o.indexOf("]");a!=-1&&s!=-1&&(o=o.substring(0,a)+o.substring(a,s).replace(/:/g,";")+o.substring(s,o.length));for(var c=e.exec(o||""),l={},u=14;u--;)l[t[u]]=c[u]||"";return a!=-1&&s!=-1&&(l.source=i,l.host=l.host.substring(1,l.host.length-1).replace(/;/g,":"),l.authority=l.authority.replace("[","").replace("]","").replace(/;/g,":"),l.ipv6uri=!0),l.pathNames=n(l,l.path),l.queryKey=r(l,l.query),l};function n(o,i){var a=/\/{2,9}/g,s=i.replace(a,"/").split("/");return(i.substr(0,1)=="/"||i.length===0)&&s.splice(0,1),i.substr(i.length-1,1)=="/"&&s.splice(s.length-1,1),s}function r(o,i){var a={};return i.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(s,c,l){c&&(a[c]=l)}),a}return Mf}var Qc={},k7={get exports(){return Qc},set exports(e){Qc=e}},Jc={},S7={get exports(){return Jc},set exports(e){Jc=e}},Nf,sC;function T7(){if(sC)return Nf;sC=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;Nf=function(l,u){u=u||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isNaN(l)===!1)return u.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(u){var d=parseFloat(u[1]),p=(u[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,u,d){if(!(l<u))return l<u*1.5?Math.floor(l/u)+" "+d:Math.ceil(l/u)+" "+d+"s"}return Nf}var lC;function E7(){return lC||(lC=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=T7(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var u=0,d;for(d in l)u=(u<<5)-u+l.charCodeAt(d),u|=0;return t.colors[Math.abs(u)%t.colors.length]}function r(l){var u;function d(){if(d.enabled){var p=d,f=+new Date,m=f-(u||f);p.diff=m,p.prev=u,p.curr=f,u=f;for(var b=new Array(arguments.length),v=0;v<b.length;v++)b[v]=arguments[v];b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");var w=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(T,y){if(T==="%%")return T;w++;var k=t.formatters[y];if(typeof k=="function"){var S=b[w];T=k.call(p,S),b.splice(w,1),w--}return T}),t.formatArgs.call(p,b);var _=d.log||t.log||console.log.bind(console);_.apply(p,b)}}return d.namespace=l,d.enabled=t.enabled(l),d.useColors=t.useColors(),d.color=n(l),d.destroy=o,typeof t.init=="function"&&t.init(d),t.instances.push(d),d}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var u,d=(typeof l=="string"?l:"").split(/[\s,]+/),p=d.length;for(u=0;u<p;u++)d[u]&&(l=d[u].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(u=0;u<t.instances.length;u++){var f=t.instances[u];f.enabled=t.enabled(f.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var u,d;for(u=0,d=t.skips.length;u<d;u++)if(t.skips[u].test(l))return!1;for(u=0,d=t.names.length;u<d;u++)if(t.names[u].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(S7,Jc)),Jc}var cC;function kd(){return cC||(cC=1,function(e,t){t=e.exports=E7(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var u="color: "+this.color;c.splice(1,0,u,"color: inherit");var d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(d++,f==="%c"&&(p=d))}),c.splice(p,0,u)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(k7,Qc)),Qc}var Pf,uC;function O7(){if(uC)return Pf;uC=1;var e=LR(),t=kd()("socket.io-client:url");Pf=n;function n(r,o){var i=r;o=o||typeof location!="undefined"&&location,r==null&&(r=o.protocol+"//"+o.host),typeof r=="string"&&(r.charAt(0)==="/"&&(r.charAt(1)==="/"?r=o.protocol+r:r=o.host+r),/^(https?|wss?):\/\//.test(r)||(t("protocol-less url %s",r),typeof o!="undefined"?r=o.protocol+"//"+r:r="https://"+r),t("parse %s",r),i=e(r)),i.port||(/^(http|ws)$/.test(i.protocol)?i.port="80":/^(http|ws)s$/.test(i.protocol)&&(i.port="443")),i.path=i.path||"/";var a=i.host.indexOf(":")!==-1,s=a?"["+i.host+"]":i.host;return i.id=i.protocol+"://"+s+":"+i.port,i.href=i.protocol+"://"+s+(o&&o.port===i.port?"":":"+i.port),i}return Pf}var dC={},Zc={},D7={get exports(){return Zc},set exports(e){Zc=e}},Kc={},R7={get exports(){return Kc},set exports(e){Kc=e}},If,pC;function A7(){if(pC)return If;pC=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;If=function(l,u){u=u||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isNaN(l)===!1)return u.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(u){var d=parseFloat(u[1]),p=(u[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,u,d){if(!(l<u))return l<u*1.5?Math.floor(l/u)+" "+d:Math.ceil(l/u)+" "+d+"s"}return If}var hC;function M7(){return hC||(hC=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=A7(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var u=0,d;for(d in l)u=(u<<5)-u+l.charCodeAt(d),u|=0;return t.colors[Math.abs(u)%t.colors.length]}function r(l){var u;function d(){if(d.enabled){var p=d,f=+new Date,m=f-(u||f);p.diff=m,p.prev=u,p.curr=f,u=f;for(var b=new Array(arguments.length),v=0;v<b.length;v++)b[v]=arguments[v];b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");var w=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(T,y){if(T==="%%")return T;w++;var k=t.formatters[y];if(typeof k=="function"){var S=b[w];T=k.call(p,S),b.splice(w,1),w--}return T}),t.formatArgs.call(p,b);var _=d.log||t.log||console.log.bind(console);_.apply(p,b)}}return d.namespace=l,d.enabled=t.enabled(l),d.useColors=t.useColors(),d.color=n(l),d.destroy=o,typeof t.init=="function"&&t.init(d),t.instances.push(d),d}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var u,d=(typeof l=="string"?l:"").split(/[\s,]+/),p=d.length;for(u=0;u<p;u++)d[u]&&(l=d[u].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(u=0;u<t.instances.length;u++){var f=t.instances[u];f.enabled=t.enabled(f.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var u,d;for(u=0,d=t.skips.length;u<d;u++)if(t.skips[u].test(l))return!1;for(u=0,d=t.names.length;u<d;u++)if(t.names[u].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(R7,Kc)),Kc}var fC;function N7(){return fC||(fC=1,function(e,t){t=e.exports=M7(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var u="color: "+this.color;c.splice(1,0,u,"color: inherit");var d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(d++,f==="%c"&&(p=d))}),c.splice(p,0,u)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(D7,Zc)),Zc}var Wv={},P7={get exports(){return Wv},set exports(e){Wv=e}},gC;function Aa(){return gC||(gC=1,function(e){e.exports=t;function t(r){if(r)return n(r)}function n(r){for(var o in t.prototype)r[o]=t.prototype[o];return r}t.prototype.on=t.prototype.addEventListener=function(r,o){return this._callbacks=this._callbacks||{},(this._callbacks["$"+r]=this._callbacks["$"+r]||[]).push(o),this},t.prototype.once=function(r,o){function i(){this.off(r,i),o.apply(this,arguments)}return i.fn=o,this.on(r,i),this},t.prototype.off=t.prototype.removeListener=t.prototype.removeAllListeners=t.prototype.removeEventListener=function(r,o){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var i=this._callbacks["$"+r];if(!i)return this;if(arguments.length==1)return delete this._callbacks["$"+r],this;for(var a,s=0;s<i.length;s++)if(a=i[s],a===o||a.fn===o){i.splice(s,1);break}return i.length===0&&delete this._callbacks["$"+r],this},t.prototype.emit=function(r){this._callbacks=this._callbacks||{};for(var o=new Array(arguments.length-1),i=this._callbacks["$"+r],a=1;a<arguments.length;a++)o[a-1]=arguments[a];if(i){i=i.slice(0);for(var a=0,s=i.length;a<s;++a)i[a].apply(this,o)}return this},t.prototype.listeners=function(r){return this._callbacks=this._callbacks||{},this._callbacks["$"+r]||[]},t.prototype.hasListeners=function(r){return!!this.listeners(r).length}}(P7)),Wv}var es={},jf,mC;function FR(){if(mC)return jf;mC=1;var e={}.toString;return jf=Array.isArray||function(t){return e.call(t)=="[object Array]"},jf}var Lf,vC;function BR(){if(vC)return Lf;vC=1,Lf=r;var e=typeof Buffer=="function"&&typeof Buffer.isBuffer=="function",t=typeof ArrayBuffer=="function",n=function(o){return typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(o):o.buffer instanceof ArrayBuffer};function r(o){return e&&Buffer.isBuffer(o)||t&&(o instanceof ArrayBuffer||n(o))}return Lf}var bC;function I7(){if(bC)return es;bC=1;var e=FR(),t=BR(),n=Object.prototype.toString,r=typeof Blob=="function"||typeof Blob!="undefined"&&n.call(Blob)==="[object BlobConstructor]",o=typeof File=="function"||typeof File!="undefined"&&n.call(File)==="[object FileConstructor]";es.deconstructPacket=function(s){var c=[],l=s.data,u=s;return u.data=i(l,c),u.attachments=c.length,{packet:u,buffers:c}};function i(s,c){if(!s)return s;if(t(s)){var l={_placeholder:!0,num:c.length};return c.push(s),l}else if(e(s)){for(var u=new Array(s.length),d=0;d<s.length;d++)u[d]=i(s[d],c);return u}else if(typeof s=="object"&&!(s instanceof Date)){var u={};for(var p in s)u[p]=i(s[p],c);return u}return s}es.reconstructPacket=function(s,c){return s.data=a(s.data,c),s.attachments=void 0,s};function a(s,c){if(!s)return s;if(s&&s._placeholder===!0){var l=typeof s.num=="number"&&s.num>=0&&s.num<c.length;if(l)return c[s.num];throw new Error("illegal attachments")}else if(e(s))for(var u=0;u<s.length;u++)s[u]=a(s[u],c);else if(typeof s=="object")for(var d in s)s[d]=a(s[d],c);return s}return es.removeBlobs=function(s,c){function l(p,f,m){if(!p)return p;if(r&&p instanceof Blob||o&&p instanceof File){u++;var b=new FileReader;b.onload=function(){m?m[f]=this.result:d=this.result,--u||c(d)},b.readAsArrayBuffer(p)}else if(e(p))for(var v=0;v<p.length;v++)l(p[v],v,p);else if(typeof p=="object"&&!t(p))for(var w in p)l(p[w],w,p)}var u=0,d=s;l(d),u||c(d)},es}var yC;function Ry(){return yC||(yC=1,function(e){var t=N7()("socket.io-parser"),n=Aa(),r=I7(),o=FR(),i=BR();e.protocol=4,e.types=["CONNECT","DISCONNECT","EVENT","ACK","ERROR","BINARY_EVENT","BINARY_ACK"],e.CONNECT=0,e.DISCONNECT=1,e.EVENT=2,e.ACK=3,e.ERROR=4,e.BINARY_EVENT=5,e.BINARY_ACK=6,e.Encoder=a,e.Decoder=d;function a(){}var s=e.ERROR+'"encode error"';a.prototype.encode=function(v,w){if(t("encoding packet %j",v),e.BINARY_EVENT===v.type||e.BINARY_ACK===v.type)u(v,w);else{var _=c(v);w([_])}};function c(v){var w=""+v.type;if((e.BINARY_EVENT===v.type||e.BINARY_ACK===v.type)&&(w+=v.attachments+"-"),v.nsp&&v.nsp!=="/"&&(w+=v.nsp+","),v.id!=null&&(w+=v.id),v.data!=null){var _=l(v.data);if(_!==!1)w+=_;else return s}return t("encoded %j as %s",v,w),w}function l(v){try{return JSON.stringify(v)}catch(w){return!1}}function u(v,w){function _(T){var y=r.deconstructPacket(T),k=c(y.packet),S=y.buffers;S.unshift(k),w(S)}r.removeBlobs(v,_)}function d(){this.reconstructor=null}n(d.prototype),d.prototype.add=function(v){var w;if(typeof v=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");w=p(v),e.BINARY_EVENT===w.type||e.BINARY_ACK===w.type?(this.reconstructor=new m(w),this.reconstructor.reconPack.attachments===0&&this.emit("decoded",w)):this.emit("decoded",w)}else if(i(v)||v.base64)if(this.reconstructor)w=this.reconstructor.takeBinaryData(v),w&&(this.reconstructor=null,this.emit("decoded",w));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+v)};function p(v){var w=0,_={type:Number(v.charAt(0))};if(e.types[_.type]==null)return b("unknown packet type "+_.type);if(e.BINARY_EVENT===_.type||e.BINARY_ACK===_.type){for(var T=w+1;v.charAt(++w)!=="-"&&w!=v.length;);var y=v.substring(T,w);if(y!=Number(y)||v.charAt(w)!=="-")throw new Error("Illegal attachments");_.attachments=Number(y)}if(v.charAt(w+1)==="/"){for(var T=w+1;++w;){var k=v.charAt(w);if(k===","||w===v.length)break}_.nsp=v.substring(T,w)}else _.nsp="/";var S=v.charAt(w+1);if(S!==""&&Number(S)==S){for(var T=w+1;++w;){var k=v.charAt(w);if(k==null||Number(k)!=k){--w;break}if(w===v.length)break}_.id=Number(v.substring(T,w+1))}if(v.charAt(++w)){var x=f(v.substr(w)),C=x!==!1&&(_.type===e.ERROR||o(x));if(C)_.data=x;else return b("invalid payload")}return t("decoded %s as %j",v,_),_}function f(v){try{return JSON.parse(v)}catch(w){return!1}}d.prototype.destroy=function(){this.reconstructor&&this.reconstructor.finishedReconstruction()};function m(v){this.reconPack=v,this.buffers=[]}m.prototype.takeBinaryData=function(v){if(this.buffers.push(v),this.buffers.length===this.reconPack.attachments){var w=r.reconstructPacket(this.reconPack,this.buffers);return this.finishedReconstruction(),w}return null},m.prototype.finishedReconstruction=function(){this.reconPack=null,this.buffers=[]};function b(v){return{type:e.ERROR,data:"parser error: "+v}}}(dC)),dC}var Uv={},j7={get exports(){return Uv},set exports(e){Uv=e}},Hl={},Xc={},wC={get exports(){return Xc},set exports(e){Xc=e}},xC;function L7(){if(xC)return Xc;xC=1;try{wC.exports=typeof XMLHttpRequest!="undefined"&&"withCredentials"in new XMLHttpRequest}catch(e){wC.exports=!1}return Xc}var _C,CC;function Ay(){return CC||(CC=1,_C=function(){return typeof self!="undefined"?self:typeof window!="undefined"?window:Function("return this")()}()),_C}var Ff,kC;function My(){if(kC)return Ff;kC=1;var e=L7(),t=Ay();return Ff=function(n){var r=n.xdomain,o=n.xscheme,i=n.enablesXDR;try{if(typeof XMLHttpRequest!="undefined"&&(!r||e))return new XMLHttpRequest}catch(a){}try{if(typeof XDomainRequest!="undefined"&&!o&&i)return new XDomainRequest}catch(a){}if(!r)try{return new t[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch(a){}},Ff}var ys={},F7={get exports(){return ys},set exports(e){ys=e}},SC={},TC,EC;function B7(){return EC||(EC=1,TC=Object.keys||function(e){var t=[],n=Object.prototype.hasOwnProperty;for(var r in e)n.call(e,r)&&t.push(r);return t}),TC}var Bf,OC;function H7(){if(OC)return Bf;OC=1;var e={}.toString;return Bf=Array.isArray||function(t){return e.call(t)=="[object Array]"},Bf}var Hf,DC;function HR(){if(DC)return Hf;DC=1;var e=H7(),t=Object.prototype.toString,n=typeof Blob=="function"||typeof Blob!="undefined"&&t.call(Blob)==="[object BlobConstructor]",r=typeof File=="function"||typeof File!="undefined"&&t.call(File)==="[object FileConstructor]";Hf=o;function o(i){if(!i||typeof i!="object")return!1;if(e(i)){for(var a=0,s=i.length;a<s;a++)if(o(i[a]))return!0;return!1}if(typeof Buffer=="function"&&Buffer.isBuffer&&Buffer.isBuffer(i)||typeof ArrayBuffer=="function"&&i instanceof ArrayBuffer||n&&i instanceof Blob||r&&i instanceof File)return!0;if(i.toJSON&&typeof i.toJSON=="function"&&arguments.length===1)return o(i.toJSON(),!0);for(var c in i)if(Object.prototype.hasOwnProperty.call(i,c)&&o(i[c]))return!0;return!1}return Hf}var RC,AC;function $7(){return AC||(AC=1,RC=function(e,t,n){var r=e.byteLength;if(t=t||0,n=n||r,e.slice)return e.slice(t,n);if(t<0&&(t+=r),n<0&&(n+=r),n>r&&(n=r),t>=r||t>=n||r===0)return new ArrayBuffer(0);for(var o=new Uint8Array(e),i=new Uint8Array(n-t),a=t,s=0;a<n;a++,s++)i[s]=o[a];return i.buffer}),RC}var $f,MC;function z7(){if(MC)return $f;MC=1,$f=e;function e(n,r,o){var i=!1;return o=o||t,a.count=n,n===0?r():a;function a(s,c){if(a.count<=0)throw new Error("after called too many times");--a.count,s?(i=!0,r(s),r=o):a.count===0&&!i&&r(null,c)}}function t(){}return $f}/*! https://mths.be/utf8js v2.1.2 by @mathias */var zf,NC;function W7(){if(NC)return zf;NC=1;var e=String.fromCharCode;function t(f){for(var m=[],b=0,v=f.length,w,_;b<v;)w=f.charCodeAt(b++),w>=55296&&w<=56319&&b<v?(_=f.charCodeAt(b++),(_&64512)==56320?m.push(((w&1023)<<10)+(_&1023)+65536):(m.push(w),b--)):m.push(w);return m}function n(f){for(var m=f.length,b=-1,v,w="";++b<m;)v=f[b],v>65535&&(v-=65536,w+=e(v>>>10&1023|55296),v=56320|v&1023),w+=e(v);return w}function r(f,m){if(f>=55296&&f<=57343){if(m)throw Error("Lone surrogate U+"+f.toString(16).toUpperCase()+" is not a scalar value");return!1}return!0}function o(f,m){return e(f>>m&63|128)}function i(f,m){if(!(f&4294967168))return e(f);var b="";return f&4294965248?f&4294901760?f&4292870144||(b=e(f>>18&7|240),b+=o(f,12),b+=o(f,6)):(r(f,m)||(f=65533),b=e(f>>12&15|224),b+=o(f,6)):b=e(f>>6&31|192),b+=e(f&63|128),b}function a(f,m){m=m||{};for(var b=m.strict!==!1,v=t(f),w=v.length,_=-1,T,y="";++_<w;)T=v[_],y+=i(T,b);return y}function s(){if(d>=u)throw Error("Invalid byte index");var f=l[d]&255;if(d++,(f&192)==128)return f&63;throw Error("Invalid continuation byte")}function c(f){var m,b,v,w,_;if(d>u)throw Error("Invalid byte index");if(d==u)return!1;if(m=l[d]&255,d++,!(m&128))return m;if((m&224)==192){if(b=s(),_=(m&31)<<6|b,_>=128)return _;throw Error("Invalid continuation byte")}if((m&240)==224){if(b=s(),v=s(),_=(m&15)<<12|b<<6|v,_>=2048)return r(_,f)?_:65533;throw Error("Invalid continuation byte")}if((m&248)==240&&(b=s(),v=s(),w=s(),_=(m&7)<<18|b<<12|v<<6|w,_>=65536&&_<=1114111))return _;throw Error("Invalid UTF-8 detected")}var l,u,d;function p(f,m){m=m||{};var b=m.strict!==!1;l=t(f),u=l.length,d=0;for(var v=[],w;(w=c(b))!==!1;)v.push(w);return n(v)}return zf={version:"2.1.2",encode:a,decode:p},zf}var Wf={},PC;function U7(){return PC||(PC=1,function(e){Wf.encode=function(t){var n=new Uint8Array(t),r,o=n.length,i="";for(r=0;r<o;r+=3)i+=e[n[r]>>2],i+=e[(n[r]&3)<<4|n[r+1]>>4],i+=e[(n[r+1]&15)<<2|n[r+2]>>6],i+=e[n[r+2]&63];return o%3===2?i=i.substring(0,i.length-1)+"=":o%3===1&&(i=i.substring(0,i.length-2)+"=="),i},Wf.decode=function(t){var n=t.length*.75,r=t.length,o,i=0,a,s,c,l;t[t.length-1]==="="&&(n--,t[t.length-2]==="="&&n--);var u=new ArrayBuffer(n),d=new Uint8Array(u);for(o=0;o<r;o+=4)a=e.indexOf(t[o]),s=e.indexOf(t[o+1]),c=e.indexOf(t[o+2]),l=e.indexOf(t[o+3]),d[i++]=a<<2|s>>4,d[i++]=(s&15)<<4|c>>2,d[i++]=(c&3)<<6|l&63;return u}}("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/")),Wf}var Uf,IC;function Y7(){if(IC)return Uf;IC=1;var e=typeof e!="undefined"?e:typeof WebKitBlobBuilder!="undefined"?WebKitBlobBuilder:typeof MSBlobBuilder!="undefined"?MSBlobBuilder:typeof MozBlobBuilder!="undefined"?MozBlobBuilder:!1,t=function(){try{var s=new Blob(["hi"]);return s.size===2}catch(c){return!1}}(),n=t&&function(){try{var s=new Blob([new Uint8Array([1,2])]);return s.size===2}catch(c){return!1}}(),r=e&&e.prototype.append&&e.prototype.getBlob;function o(s){return s.map(function(c){if(c.buffer instanceof ArrayBuffer){var l=c.buffer;if(c.byteLength!==l.byteLength){var u=new Uint8Array(c.byteLength);u.set(new Uint8Array(l,c.byteOffset,c.byteLength)),l=u.buffer}return l}return c})}function i(s,c){c=c||{};var l=new e;return o(s).forEach(function(u){l.append(u)}),c.type?l.getBlob(c.type):l.getBlob()}function a(s,c){return new Blob(o(s),c||{})}return typeof Blob!="undefined"&&(i.prototype=Blob.prototype,a.prototype=Blob.prototype),Uf=function(){return t?n?Blob:a:r?i:void 0}(),Uf}var jC;function _a(){return jC||(jC=1,function(e){var t=B7(),n=HR(),r=$7(),o=z7(),i=W7(),a;typeof ArrayBuffer!="undefined"&&(a=U7());var s=typeof navigator!="undefined"&&/Android/i.test(navigator.userAgent),c=typeof navigator!="undefined"&&/PhantomJS/i.test(navigator.userAgent),l=s||c;e.protocol=3;var u=e.packets={open:0,close:1,ping:2,pong:3,message:4,upgrade:5,noop:6},d=t(u),p={type:"error",data:"parser error"},f=Y7();e.encodePacket=function(y,k,S,x){typeof k=="function"&&(x=k,k=!1),typeof S=="function"&&(x=S,S=null);var C=y.data===void 0?void 0:y.data.buffer||y.data;if(typeof ArrayBuffer!="undefined"&&C instanceof ArrayBuffer)return b(y,k,x);if(typeof f!="undefined"&&C instanceof f)return w(y,k,x);if(C&&C.base64)return m(y,x);var O=u[y.type];return y.data!==void 0&&(O+=S?i.encode(String(y.data),{strict:!1}):String(y.data)),x(""+O)};function m(y,k){var S="b"+e.packets[y.type]+y.data.data;return k(S)}function b(y,k,S){if(!k)return e.encodeBase64Packet(y,S);var x=y.data,C=new Uint8Array(x),O=new Uint8Array(1+x.byteLength);O[0]=u[y.type];for(var D=0;D<C.length;D++)O[D+1]=C[D];return S(O.buffer)}function v(y,k,S){if(!k)return e.encodeBase64Packet(y,S);var x=new FileReader;return x.onload=function(){e.encodePacket({type:y.type,data:x.result},k,!0,S)},x.readAsArrayBuffer(y.data)}function w(y,k,S){if(!k)return e.encodeBase64Packet(y,S);if(l)return v(y,k,S);var x=new Uint8Array(1);x[0]=u[y.type];var C=new f([x.buffer,y.data]);return S(C)}e.encodeBase64Packet=function(y,k){var S="b"+e.packets[y.type];if(typeof f!="undefined"&&y.data instanceof f){var x=new FileReader;return x.onload=function(){var M=x.result.split(",")[1];k(S+M)},x.readAsDataURL(y.data)}var C;try{C=String.fromCharCode.apply(null,new Uint8Array(y.data))}catch(M){for(var O=new Uint8Array(y.data),D=new Array(O.length),R=0;R<O.length;R++)D[R]=O[R];C=String.fromCharCode.apply(null,D)}return S+=btoa(C),k(S)},e.decodePacket=function(y,k,S){if(y===void 0)return p;if(typeof y=="string"){if(y.charAt(0)==="b")return e.decodeBase64Packet(y.substr(1),k);if(S&&(y=_(y),y===!1))return p;var C=y.charAt(0);return Number(C)!=C||!d[C]?p:y.length>1?{type:d[C],data:y.substring(1)}:{type:d[C]}}var x=new Uint8Array(y),C=x[0],O=r(y,1);return f&&k==="blob"&&(O=new f([O])),{type:d[C],data:O}};function _(y){try{y=i.decode(y,{strict:!1})}catch(k){return!1}return y}e.decodeBase64Packet=function(y,k){var S=d[y.charAt(0)];if(!a)return{type:S,data:{base64:!0,data:y.substr(1)}};var x=a.decode(y.substr(1));return k==="blob"&&f&&(x=new f([x])),{type:S,data:x}},e.encodePayload=function(y,k,S){typeof k=="function"&&(S=k,k=null);var x=n(y);if(k&&x)return f&&!l?e.encodePayloadAsBlob(y,S):e.encodePayloadAsArrayBuffer(y,S);if(!y.length)return S("0:");function C(D){return D.length+":"+D}function O(D,R){e.encodePacket(D,x?k:!1,!1,function(M){R(null,C(M))})}T(y,O,function(D,R){return S(R.join(""))})};function T(y,k,S){for(var x=new Array(y.length),C=o(y.length,S),O=function(R,M,F){k(M,function(N,I){x[R]=I,F(N,x)})},D=0;D<y.length;D++)O(D,y[D],C)}e.decodePayload=function(y,k,S){if(typeof y!="string")return e.decodePayloadAsBinary(y,k,S);typeof k=="function"&&(S=k,k=null);var x;if(y==="")return S(p,0,1);for(var C="",O,D,R=0,M=y.length;R<M;R++){var F=y.charAt(R);if(F!==":"){C+=F;continue}if(C===""||C!=(O=Number(C))||(D=y.substr(R+1,O),C!=D.length))return S(p,0,1);if(D.length){if(x=e.decodePacket(D,k,!1),p.type===x.type&&p.data===x.data)return S(p,0,1);var N=S(x,R+O,M);if(N===!1)return}R+=O,C=""}if(C!=="")return S(p,0,1)},e.encodePayloadAsArrayBuffer=function(y,k){if(!y.length)return k(new ArrayBuffer(0));function S(x,C){e.encodePacket(x,!0,!0,function(O){return C(null,O)})}T(y,S,function(x,C){var O=C.reduce(function(M,F){var N;return typeof F=="string"?N=F.length:N=F.byteLength,M+N.toString().length+N+2},0),D=new Uint8Array(O),R=0;return C.forEach(function(M){var F=typeof M=="string",N=M;if(F){for(var I=new Uint8Array(M.length),j=0;j<M.length;j++)I[j]=M.charCodeAt(j);N=I.buffer}F?D[R++]=0:D[R++]=1;for(var $=N.byteLength.toString(),j=0;j<$.length;j++)D[R++]=parseInt($[j]);D[R++]=255;for(var I=new Uint8Array(N),j=0;j<I.length;j++)D[R++]=I[j]}),k(D.buffer)})},e.encodePayloadAsBlob=function(y,k){function S(x,C){e.encodePacket(x,!0,!0,function(O){var D=new Uint8Array(1);if(D[0]=1,typeof O=="string"){for(var R=new Uint8Array(O.length),M=0;M<O.length;M++)R[M]=O.charCodeAt(M);O=R.buffer,D[0]=0}for(var F=O instanceof ArrayBuffer?O.byteLength:O.size,N=F.toString(),I=new Uint8Array(N.length+1),M=0;M<N.length;M++)I[M]=parseInt(N[M]);if(I[N.length]=255,f){var j=new f([D.buffer,I.buffer,O]);C(null,j)}})}T(y,S,function(x,C){return k(new f(C))})},e.decodePayloadAsBinary=function(y,k,S){typeof k=="function"&&(S=k,k=null);for(var x=y,C=[];x.byteLength>0;){for(var O=new Uint8Array(x),D=O[0]===0,R="",M=1;O[M]!==255;M++){if(R.length>310)return S(p,0,1);R+=O[M]}x=r(x,2+R.length),R=parseInt(R);var F=r(x,0,R);if(D)try{F=String.fromCharCode.apply(null,new Uint8Array(F))}catch(j){var N=new Uint8Array(F);F="";for(var M=0;M<N.length;M++)F+=String.fromCharCode(N[M])}C.push(F),x=r(x,R)}var I=C.length;C.forEach(function(j,$){S(e.decodePacket(j,k,!0),$,I)})}}(SC)),SC}var Yf,LC;function Ny(){if(LC)return Yf;LC=1;var e=_a(),t=Aa();Yf=n;function n(r){this.path=r.path,this.hostname=r.hostname,this.port=r.port,this.secure=r.secure,this.query=r.query,this.timestampParam=r.timestampParam,this.timestampRequests=r.timestampRequests,this.readyState="",this.agent=r.agent||!1,this.socket=r.socket,this.enablesXDR=r.enablesXDR,this.withCredentials=r.withCredentials,this.pfx=r.pfx,this.key=r.key,this.passphrase=r.passphrase,this.cert=r.cert,this.ca=r.ca,this.ciphers=r.ciphers,this.rejectUnauthorized=r.rejectUnauthorized,this.forceNode=r.forceNode,this.isReactNative=r.isReactNative,this.extraHeaders=r.extraHeaders,this.localAddress=r.localAddress}return t(n.prototype),n.prototype.onError=function(r,o){var i=new Error(r);return i.type="TransportError",i.description=o,this.emit("error",i),this},n.prototype.open=function(){return(this.readyState==="closed"||this.readyState==="")&&(this.readyState="opening",this.doOpen()),this},n.prototype.close=function(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this},n.prototype.send=function(r){if(this.readyState==="open")this.write(r);else throw new Error("Transport not open")},n.prototype.onOpen=function(){this.readyState="open",this.writable=!0,this.emit("open")},n.prototype.onData=function(r){var o=e.decodePacket(r,this.socket.binaryType);this.onPacket(o)},n.prototype.onPacket=function(r){this.emit("packet",r)},n.prototype.onClose=function(){this.readyState="closed",this.emit("close")},Yf}var qf={},FC;function Sd(){return FC||(FC=1,qf.encode=function(e){var t="";for(var n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t},qf.decode=function(e){for(var t={},n=e.split("&"),r=0,o=n.length;r<o;r++){var i=n[r].split("=");t[decodeURIComponent(i[0])]=decodeURIComponent(i[1])}return t}),qf}var BC,HC;function Td(){return HC||(HC=1,BC=function(e,t){var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}),BC}var Vf,$C;function $R(){if($C)return Vf;$C=1;var e="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_".split(""),t=64,n={},r=0,o=0,i;function a(l){var u="";do u=e[l%t]+u,l=Math.floor(l/t);while(l>0);return u}function s(l){var u=0;for(o=0;o<l.length;o++)u=u*t+n[l.charAt(o)];return u}function c(){var l=a(+new Date);return l!==i?(r=0,i=l):l+"."+a(r++)}for(;o<t;o++)n[e[o]]=o;return c.encode=a,c.decode=s,Vf=c,Vf}var eu={},q7={get exports(){return eu},set exports(e){eu=e}},tu={},V7={get exports(){return tu},set exports(e){tu=e}},Gf,zC;function G7(){if(zC)return Gf;zC=1;var e=1e3,t=e*60,n=t*60,r=n*24,o=r*365.25;Gf=function(l,u){u=u||{};var d=typeof l;if(d==="string"&&l.length>0)return i(l);if(d==="number"&&isNaN(l)===!1)return u.long?s(l):a(l);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(l))};function i(l){if(l=String(l),!(l.length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(l);if(u){var d=parseFloat(u[1]),p=(u[2]||"ms").toLowerCase();switch(p){case"years":case"year":case"yrs":case"yr":case"y":return d*o;case"days":case"day":case"d":return d*r;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*t;case"seconds":case"second":case"secs":case"sec":case"s":return d*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function a(l){return l>=r?Math.round(l/r)+"d":l>=n?Math.round(l/n)+"h":l>=t?Math.round(l/t)+"m":l>=e?Math.round(l/e)+"s":l+"ms"}function s(l){return c(l,r,"day")||c(l,n,"hour")||c(l,t,"minute")||c(l,e,"second")||l+" ms"}function c(l,u,d){if(!(l<u))return l<u*1.5?Math.floor(l/u)+" "+d:Math.ceil(l/u)+" "+d+"s"}return Gf}var WC;function Q7(){return WC||(WC=1,function(e,t){t=e.exports=r.debug=r.default=r,t.coerce=c,t.disable=a,t.enable=i,t.enabled=s,t.humanize=G7(),t.instances=[],t.names=[],t.skips=[],t.formatters={};function n(l){var u=0,d;for(d in l)u=(u<<5)-u+l.charCodeAt(d),u|=0;return t.colors[Math.abs(u)%t.colors.length]}function r(l){var u;function d(){if(d.enabled){var p=d,f=+new Date,m=f-(u||f);p.diff=m,p.prev=u,p.curr=f,u=f;for(var b=new Array(arguments.length),v=0;v<b.length;v++)b[v]=arguments[v];b[0]=t.coerce(b[0]),typeof b[0]!="string"&&b.unshift("%O");var w=0;b[0]=b[0].replace(/%([a-zA-Z%])/g,function(T,y){if(T==="%%")return T;w++;var k=t.formatters[y];if(typeof k=="function"){var S=b[w];T=k.call(p,S),b.splice(w,1),w--}return T}),t.formatArgs.call(p,b);var _=d.log||t.log||console.log.bind(console);_.apply(p,b)}}return d.namespace=l,d.enabled=t.enabled(l),d.useColors=t.useColors(),d.color=n(l),d.destroy=o,typeof t.init=="function"&&t.init(d),t.instances.push(d),d}function o(){var l=t.instances.indexOf(this);return l!==-1?(t.instances.splice(l,1),!0):!1}function i(l){t.save(l),t.names=[],t.skips=[];var u,d=(typeof l=="string"?l:"").split(/[\s,]+/),p=d.length;for(u=0;u<p;u++)d[u]&&(l=d[u].replace(/\*/g,".*?"),l[0]==="-"?t.skips.push(new RegExp("^"+l.substr(1)+"$")):t.names.push(new RegExp("^"+l+"$")));for(u=0;u<t.instances.length;u++){var f=t.instances[u];f.enabled=t.enabled(f.namespace)}}function a(){t.enable("")}function s(l){if(l[l.length-1]==="*")return!0;var u,d;for(u=0,d=t.skips.length;u<d;u++)if(t.skips[u].test(l))return!1;for(u=0,d=t.names.length;u<d;u++)if(t.names[u].test(l))return!0;return!1}function c(l){return l instanceof Error?l.stack||l.message:l}}(V7,tu)),tu}var UC;function Ed(){return UC||(UC=1,function(e,t){t=e.exports=Q7(),t.log=o,t.formatArgs=r,t.save=i,t.load=a,t.useColors=n,t.storage=typeof chrome!="undefined"&&typeof chrome.storage!="undefined"?chrome.storage.local:s(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function n(){return typeof window!="undefined"&&window.process&&window.process.type==="renderer"?!0:typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)?!1:typeof document!="undefined"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window!="undefined"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator!="undefined"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}t.formatters.j=function(c){try{return JSON.stringify(c)}catch(l){return"[UnexpectedJSONParseError]: "+l.message}};function r(c){var l=this.useColors;if(c[0]=(l?"%c":"")+this.namespace+(l?" %c":" ")+c[0]+(l?"%c ":" ")+"+"+t.humanize(this.diff),!!l){var u="color: "+this.color;c.splice(1,0,u,"color: inherit");var d=0,p=0;c[0].replace(/%[a-zA-Z%]/g,function(f){f!=="%%"&&(d++,f==="%c"&&(p=d))}),c.splice(p,0,u)}}function o(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(c){try{c==null?t.storage.removeItem("debug"):t.storage.debug=c}catch(l){}}function a(){var c;try{c=t.storage.debug}catch(l){}return!c&&typeof process!="undefined"&&"env"in process&&(c=process.env.DEBUG),c}t.enable(a());function s(){try{return window.localStorage}catch(c){}}}(q7,eu)),eu}var Qf,YC;function zR(){if(YC)return Qf;YC=1;var e=Ny(),t=Sd(),n=_a(),r=Td(),o=$R(),i=Ed()("engine.io-client:polling");Qf=s;var a=function(){var c=My(),l=new c({xdomain:!1});return l.responseType!=null}();function s(c){var l=c&&c.forceBase64;(!a||l)&&(this.supportsBinary=!1),e.call(this,c)}return r(s,e),s.prototype.name="polling",s.prototype.doOpen=function(){this.poll()},s.prototype.pause=function(c){var l=this;this.readyState="pausing";function u(){i("paused"),l.readyState="paused",c()}if(this.polling||!this.writable){var d=0;this.polling&&(i("we are currently polling - waiting to pause"),d++,this.once("pollComplete",function(){i("pre-pause polling complete"),--d||u()})),this.writable||(i("we are currently writing - waiting to pause"),d++,this.once("drain",function(){i("pre-pause writing complete"),--d||u()}))}else u()},s.prototype.poll=function(){i("polling"),this.polling=!0,this.doPoll(),this.emit("poll")},s.prototype.onData=function(c){var l=this;i("polling got data %s",c);var u=function(d,p,f){if(l.readyState==="opening"&&d.type==="open"&&l.onOpen(),d.type==="close")return l.onClose(),!1;l.onPacket(d)};n.decodePayload(c,this.socket.binaryType,u),this.readyState!=="closed"&&(this.polling=!1,this.emit("pollComplete"),this.readyState==="open"?this.poll():i('ignoring poll - transport state "%s"',this.readyState))},s.prototype.doClose=function(){var c=this;function l(){i("writing close packet"),c.write([{type:"close"}])}this.readyState==="open"?(i("transport open - closing"),l()):(i("transport not open - deferring close"),this.once("open",l))},s.prototype.write=function(c){var l=this;this.writable=!1;var u=function(){l.writable=!0,l.emit("drain")};n.encodePayload(c,this.supportsBinary,function(d){l.doWrite(d,u)})},s.prototype.uri=function(){var c=this.query||{},l=this.secure?"https":"http",u="";this.timestampRequests!==!1&&(c[this.timestampParam]=o()),!this.supportsBinary&&!c.sid&&(c.b64=1),c=t.encode(c),this.port&&(l==="https"&&Number(this.port)!==443||l==="http"&&Number(this.port)!==80)&&(u=":"+this.port),c.length&&(c="?"+c);var d=this.hostname.indexOf(":")!==-1;return l+"://"+(d?"["+this.hostname+"]":this.hostname)+u+this.path+c},Qf}var qC;function J7(){if(qC)return ys;qC=1;var e=My(),t=zR(),n=Aa(),r=Td(),o=Ed()("engine.io-client:polling-xhr"),i=Ay();F7.exports=s,ys.Request=c;function a(){}function s(d){if(t.call(this,d),this.requestTimeout=d.requestTimeout,this.extraHeaders=d.extraHeaders,typeof location!="undefined"){var p=location.protocol==="https:",f=location.port;f||(f=p?443:80),this.xd=typeof location!="undefined"&&d.hostname!==location.hostname||f!==d.port,this.xs=d.secure!==p}}r(s,t),s.prototype.supportsBinary=!0,s.prototype.request=function(d){return d=d||{},d.uri=this.uri(),d.xd=this.xd,d.xs=this.xs,d.agent=this.agent||!1,d.supportsBinary=this.supportsBinary,d.enablesXDR=this.enablesXDR,d.withCredentials=this.withCredentials,d.pfx=this.pfx,d.key=this.key,d.passphrase=this.passphrase,d.cert=this.cert,d.ca=this.ca,d.ciphers=this.ciphers,d.rejectUnauthorized=this.rejectUnauthorized,d.requestTimeout=this.requestTimeout,d.extraHeaders=this.extraHeaders,new c(d)},s.prototype.doWrite=function(d,p){var f=typeof d!="string"&&d!==void 0,m=this.request({method:"POST",data:d,isBinary:f}),b=this;m.on("success",p),m.on("error",function(v){b.onError("xhr post error",v)}),this.sendXhr=m},s.prototype.doPoll=function(){o("xhr poll");var d=this.request(),p=this;d.on("data",function(f){p.onData(f)}),d.on("error",function(f){p.onError("xhr poll error",f)}),this.pollXhr=d};function c(d){this.method=d.method||"GET",this.uri=d.uri,this.xd=!!d.xd,this.xs=!!d.xs,this.async=d.async!==!1,this.data=d.data!==void 0?d.data:null,this.agent=d.agent,this.isBinary=d.isBinary,this.supportsBinary=d.supportsBinary,this.enablesXDR=d.enablesXDR,this.withCredentials=d.withCredentials,this.requestTimeout=d.requestTimeout,this.pfx=d.pfx,this.key=d.key,this.passphrase=d.passphrase,this.cert=d.cert,this.ca=d.ca,this.ciphers=d.ciphers,this.rejectUnauthorized=d.rejectUnauthorized,this.extraHeaders=d.extraHeaders,this.create()}if(n(c.prototype),c.prototype.create=function(){var d={agent:this.agent,xdomain:this.xd,xscheme:this.xs,enablesXDR:this.enablesXDR};d.pfx=this.pfx,d.key=this.key,d.passphrase=this.passphrase,d.cert=this.cert,d.ca=this.ca,d.ciphers=this.ciphers,d.rejectUnauthorized=this.rejectUnauthorized;var p=this.xhr=new e(d),f=this;try{o("xhr open %s: %s",this.method,this.uri),p.open(this.method,this.uri,this.async);try{if(this.extraHeaders){p.setDisableHeaderCheck&&p.setDisableHeaderCheck(!0);for(var m in this.extraHeaders)this.extraHeaders.hasOwnProperty(m)&&p.setRequestHeader(m,this.extraHeaders[m])}}catch(b){}if(this.method==="POST")try{this.isBinary?p.setRequestHeader("Content-type","application/octet-stream"):p.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch(b){}try{p.setRequestHeader("Accept","*/*")}catch(b){}"withCredentials"in p&&(p.withCredentials=this.withCredentials),this.requestTimeout&&(p.timeout=this.requestTimeout),this.hasXDR()?(p.onload=function(){f.onLoad()},p.onerror=function(){f.onError(p.responseText)}):p.onreadystatechange=function(){if(p.readyState===2)try{var b=p.getResponseHeader("Content-Type");(f.supportsBinary&&b==="application/octet-stream"||b==="application/octet-stream; charset=UTF-8")&&(p.responseType="arraybuffer")}catch(v){}p.readyState===4&&(p.status===200||p.status===1223?f.onLoad():setTimeout(function(){f.onError(typeof p.status=="number"?p.status:0)},0))},o("xhr data %s",this.data),p.send(this.data)}catch(b){setTimeout(function(){f.onError(b)},0);return}typeof document!="undefined"&&(this.index=c.requestsCount++,c.requests[this.index]=this)},c.prototype.onSuccess=function(){this.emit("success"),this.cleanup()},c.prototype.onData=function(d){this.emit("data",d),this.onSuccess()},c.prototype.onError=function(d){this.emit("error",d),this.cleanup(!0)},c.prototype.cleanup=function(d){if(!(typeof this.xhr=="undefined"||this.xhr===null)){if(this.hasXDR()?this.xhr.onload=this.xhr.onerror=a:this.xhr.onreadystatechange=a,d)try{this.xhr.abort()}catch(p){}typeof document!="undefined"&&delete c.requests[this.index],this.xhr=null}},c.prototype.onLoad=function(){var d;try{var p;try{p=this.xhr.getResponseHeader("Content-Type")}catch(f){}p==="application/octet-stream"||p==="application/octet-stream; charset=UTF-8"?d=this.xhr.response||this.xhr.responseText:d=this.xhr.responseText}catch(f){this.onError(f)}d!=null&&this.onData(d)},c.prototype.hasXDR=function(){return typeof XDomainRequest!="undefined"&&!this.xs&&this.enablesXDR},c.prototype.abort=function(){this.cleanup()},c.requestsCount=0,c.requests={},typeof document!="undefined"){if(typeof attachEvent=="function")attachEvent("onunload",u);else if(typeof addEventListener=="function"){var l="onpagehide"in i?"pagehide":"unload";addEventListener(l,u,!1)}}function u(){for(var d in c.requests)c.requests.hasOwnProperty(d)&&c.requests[d].abort()}return ys}var Jf,VC;function Z7(){if(VC)return Jf;VC=1;var e=zR(),t=Td(),n=Ay();Jf=s;var r=/\n/g,o=/\\n/g,i;function a(){}function s(c){e.call(this,c),this.query=this.query||{},i||(i=n.___eio=n.___eio||[]),this.index=i.length;var l=this;i.push(function(u){l.onData(u)}),this.query.j=this.index,typeof addEventListener=="function"&&addEventListener("beforeunload",function(){l.script&&(l.script.onerror=a)},!1)}return t(s,e),s.prototype.supportsBinary=!1,s.prototype.doClose=function(){this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),this.form&&(this.form.parentNode.removeChild(this.form),this.form=null,this.iframe=null),e.prototype.doClose.call(this)},s.prototype.doPoll=function(){var c=this,l=document.createElement("script");this.script&&(this.script.parentNode.removeChild(this.script),this.script=null),l.async=!0,l.src=this.uri(),l.onerror=function(p){c.onError("jsonp poll error",p)};var u=document.getElementsByTagName("script")[0];u?u.parentNode.insertBefore(l,u):(document.head||document.body).appendChild(l),this.script=l;var d=typeof navigator!="undefined"&&/gecko/i.test(navigator.userAgent);d&&setTimeout(function(){var p=document.createElement("iframe");document.body.appendChild(p),document.body.removeChild(p)},100)},s.prototype.doWrite=function(c,l){var u=this;if(!this.form){var d=document.createElement("form"),p=document.createElement("textarea"),f=this.iframeId="eio_iframe_"+this.index,m;d.className="socketio",d.style.position="absolute",d.style.top="-1000px",d.style.left="-1000px",d.target=f,d.method="POST",d.setAttribute("accept-charset","utf-8"),p.name="d",d.appendChild(p),document.body.appendChild(d),this.form=d,this.area=p}this.form.action=this.uri();function b(){v(),l()}function v(){if(u.iframe)try{u.form.removeChild(u.iframe)}catch(_){u.onError("jsonp polling iframe removal error",_)}try{var w='<iframe src="javascript:0" name="'+u.iframeId+'">';m=document.createElement(w)}catch(_){m=document.createElement("iframe"),m.name=u.iframeId,m.src="javascript:0"}m.id=u.iframeId,u.form.appendChild(m),u.iframe=m}v(),c=c.replace(o,`\\
387
+ `),this.area.value=c.replace(r,"\\n");try{this.form.submit()}catch(w){}this.iframe.attachEvent?this.iframe.onreadystatechange=function(){u.iframe.readyState==="complete"&&b()}:this.iframe.onload=b},Jf}const K7={},X7=Object.freeze(Object.defineProperty({__proto__:null,default:K7},Symbol.toStringTag,{value:"Module"})),eY=zr(X7);var Zf,GC;function tY(){if(GC)return Zf;GC=1;var e=Ny(),t=_a(),n=Sd(),r=Td(),o=$R(),i=Ed()("engine.io-client:websocket"),a,s;if(typeof WebSocket!="undefined"?a=WebSocket:typeof self!="undefined"&&(a=self.WebSocket||self.MozWebSocket),typeof window=="undefined")try{s=eY}catch(u){}var c=a||s;Zf=l;function l(u){var d=u&&u.forceBase64;d&&(this.supportsBinary=!1),this.perMessageDeflate=u.perMessageDeflate,this.usingBrowserWebSocket=a&&!u.forceNode,this.protocols=u.protocols,this.usingBrowserWebSocket||(c=s),e.call(this,u)}return r(l,e),l.prototype.name="websocket",l.prototype.supportsBinary=!0,l.prototype.doOpen=function(){if(this.check()){var u=this.uri(),d=this.protocols,p={};this.isReactNative||(p.agent=this.agent,p.perMessageDeflate=this.perMessageDeflate,p.pfx=this.pfx,p.key=this.key,p.passphrase=this.passphrase,p.cert=this.cert,p.ca=this.ca,p.ciphers=this.ciphers,p.rejectUnauthorized=this.rejectUnauthorized),this.extraHeaders&&(p.headers=this.extraHeaders),this.localAddress&&(p.localAddress=this.localAddress);try{this.ws=this.usingBrowserWebSocket&&!this.isReactNative?d?new c(u,d):new c(u):new c(u,d,p)}catch(f){return this.emit("error",f)}this.ws.binaryType===void 0&&(this.supportsBinary=!1),this.ws.supports&&this.ws.supports.binary?(this.supportsBinary=!0,this.ws.binaryType="nodebuffer"):this.ws.binaryType="arraybuffer",this.addEventListeners()}},l.prototype.addEventListeners=function(){var u=this;this.ws.onopen=function(){u.onOpen()},this.ws.onclose=function(){u.onClose()},this.ws.onmessage=function(d){u.onData(d.data)},this.ws.onerror=function(d){u.onError("websocket error",d)}},l.prototype.write=function(u){var d=this;this.writable=!1;for(var p=u.length,f=0,m=p;f<m;f++)(function(v){t.encodePacket(v,d.supportsBinary,function(w){if(!d.usingBrowserWebSocket){var _={};if(v.options&&(_.compress=v.options.compress),d.perMessageDeflate){var T=typeof w=="string"?Buffer.byteLength(w):w.length;T<d.perMessageDeflate.threshold&&(_.compress=!1)}}try{d.usingBrowserWebSocket?d.ws.send(w):d.ws.send(w,_)}catch(y){i("websocket closed before onclose event")}--p||b()})})(u[f]);function b(){d.emit("flush"),setTimeout(function(){d.writable=!0,d.emit("drain")},0)}},l.prototype.onClose=function(){e.prototype.onClose.call(this)},l.prototype.doClose=function(){typeof this.ws!="undefined"&&this.ws.close()},l.prototype.uri=function(){var u=this.query||{},d=this.secure?"wss":"ws",p="";this.port&&(d==="wss"&&Number(this.port)!==443||d==="ws"&&Number(this.port)!==80)&&(p=":"+this.port),this.timestampRequests&&(u[this.timestampParam]=o()),this.supportsBinary||(u.b64=1),u=n.encode(u),u.length&&(u="?"+u);var f=this.hostname.indexOf(":")!==-1;return d+"://"+(f?"["+this.hostname+"]":this.hostname)+p+this.path+u},l.prototype.check=function(){return!!c&&!("__initialize"in c&&this.name===l.prototype.name)},Zf}var QC;function JC(){if(QC)return Hl;QC=1;var e=My(),t=J7(),n=Z7(),r=tY();Hl.polling=o,Hl.websocket=r;function o(i){var a,s=!1,c=!1,l=i.jsonp!==!1;if(typeof location!="undefined"){var u=location.protocol==="https:",d=location.port;d||(d=u?443:80),s=i.hostname!==location.hostname||d!==i.port,c=i.secure!==u}if(i.xdomain=s,i.xscheme=c,a=new e(i),"open"in a&&!i.forceJSONP)return new t(i);if(!l)throw new Error("JSONP disabled");return new n(i)}return Hl}var Kf,ZC;function WR(){if(ZC)return Kf;ZC=1;var e=[].indexOf;return Kf=function(t,n){if(e)return t.indexOf(n);for(var r=0;r<t.length;++r)if(t[r]===n)return r;return-1},Kf}var Xf,KC;function nY(){if(KC)return Xf;KC=1;var e=JC(),t=Aa(),n=Ed()("engine.io-client:socket"),r=WR(),o=_a(),i=LR(),a=Sd();Xf=s;function s(l,u){if(!(this instanceof s))return new s(l,u);u=u||{},l&&typeof l=="object"&&(u=l,l=null),l?(l=i(l),u.hostname=l.host,u.secure=l.protocol==="https"||l.protocol==="wss",u.port=l.port,l.query&&(u.query=l.query)):u.host&&(u.hostname=i(u.host).host),this.secure=u.secure!=null?u.secure:typeof location!="undefined"&&location.protocol==="https:",u.hostname&&!u.port&&(u.port=this.secure?"443":"80"),this.agent=u.agent||!1,this.hostname=u.hostname||(typeof location!="undefined"?location.hostname:"localhost"),this.port=u.port||(typeof location!="undefined"&&location.port?location.port:this.secure?443:80),this.query=u.query||{},typeof this.query=="string"&&(this.query=a.decode(this.query)),this.upgrade=u.upgrade!==!1,this.path=(u.path||"/engine.io").replace(/\/$/,"")+"/",this.forceJSONP=!!u.forceJSONP,this.jsonp=u.jsonp!==!1,this.forceBase64=!!u.forceBase64,this.enablesXDR=!!u.enablesXDR,this.withCredentials=u.withCredentials!==!1,this.timestampParam=u.timestampParam||"t",this.timestampRequests=u.timestampRequests,this.transports=u.transports||["polling","websocket"],this.transportOptions=u.transportOptions||{},this.readyState="",this.writeBuffer=[],this.prevBufferLen=0,this.policyPort=u.policyPort||843,this.rememberUpgrade=u.rememberUpgrade||!1,this.binaryType=null,this.onlyBinaryUpgrades=u.onlyBinaryUpgrades,this.perMessageDeflate=u.perMessageDeflate!==!1?u.perMessageDeflate||{}:!1,this.perMessageDeflate===!0&&(this.perMessageDeflate={}),this.perMessageDeflate&&this.perMessageDeflate.threshold==null&&(this.perMessageDeflate.threshold=1024),this.pfx=u.pfx||void 0,this.key=u.key||void 0,this.passphrase=u.passphrase||void 0,this.cert=u.cert||void 0,this.ca=u.ca||void 0,this.ciphers=u.ciphers||void 0,this.rejectUnauthorized=u.rejectUnauthorized===void 0?!0:u.rejectUnauthorized,this.forceNode=!!u.forceNode,this.isReactNative=typeof navigator!="undefined"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",(typeof self=="undefined"||this.isReactNative)&&(u.extraHeaders&&Object.keys(u.extraHeaders).length>0&&(this.extraHeaders=u.extraHeaders),u.localAddress&&(this.localAddress=u.localAddress)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingIntervalTimer=null,this.pingTimeoutTimer=null,this.open()}s.priorWebsocketSuccess=!1,t(s.prototype),s.protocol=o.protocol,s.Socket=s,s.Transport=Ny(),s.transports=JC(),s.parser=_a(),s.prototype.createTransport=function(l){n('creating transport "%s"',l);var u=c(this.query);u.EIO=o.protocol,u.transport=l;var d=this.transportOptions[l]||{};this.id&&(u.sid=this.id);var p=new e[l]({query:u,socket:this,agent:d.agent||this.agent,hostname:d.hostname||this.hostname,port:d.port||this.port,secure:d.secure||this.secure,path:d.path||this.path,forceJSONP:d.forceJSONP||this.forceJSONP,jsonp:d.jsonp||this.jsonp,forceBase64:d.forceBase64||this.forceBase64,enablesXDR:d.enablesXDR||this.enablesXDR,withCredentials:d.withCredentials||this.withCredentials,timestampRequests:d.timestampRequests||this.timestampRequests,timestampParam:d.timestampParam||this.timestampParam,policyPort:d.policyPort||this.policyPort,pfx:d.pfx||this.pfx,key:d.key||this.key,passphrase:d.passphrase||this.passphrase,cert:d.cert||this.cert,ca:d.ca||this.ca,ciphers:d.ciphers||this.ciphers,rejectUnauthorized:d.rejectUnauthorized||this.rejectUnauthorized,perMessageDeflate:d.perMessageDeflate||this.perMessageDeflate,extraHeaders:d.extraHeaders||this.extraHeaders,forceNode:d.forceNode||this.forceNode,localAddress:d.localAddress||this.localAddress,requestTimeout:d.requestTimeout||this.requestTimeout,protocols:d.protocols||void 0,isReactNative:this.isReactNative});return p};function c(l){var u={};for(var d in l)l.hasOwnProperty(d)&&(u[d]=l[d]);return u}return s.prototype.open=function(){var l;if(this.rememberUpgrade&&s.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)l="websocket";else if(this.transports.length===0){var u=this;setTimeout(function(){u.emit("error","No transports available")},0);return}else l=this.transports[0];this.readyState="opening";try{l=this.createTransport(l)}catch(d){this.transports.shift(),this.open();return}l.open(),this.setTransport(l)},s.prototype.setTransport=function(l){n("setting transport %s",l.name);var u=this;this.transport&&(n("clearing existing transport %s",this.transport.name),this.transport.removeAllListeners()),this.transport=l,l.on("drain",function(){u.onDrain()}).on("packet",function(d){u.onPacket(d)}).on("error",function(d){u.onError(d)}).on("close",function(){u.onClose("transport close")})},s.prototype.probe=function(l){n('probing transport "%s"',l);var u=this.createTransport(l,{probe:1}),d=!1,p=this;s.priorWebsocketSuccess=!1;function f(){if(p.onlyBinaryUpgrades){var y=!this.supportsBinary&&p.transport.supportsBinary;d=d||y}d||(n('probe transport "%s" opened',l),u.send([{type:"ping",data:"probe"}]),u.once("packet",function(k){if(!d)if(k.type==="pong"&&k.data==="probe"){if(n('probe transport "%s" pong',l),p.upgrading=!0,p.emit("upgrading",u),!u)return;s.priorWebsocketSuccess=u.name==="websocket",n('pausing current transport "%s"',p.transport.name),p.transport.pause(function(){d||p.readyState!=="closed"&&(n("changing transport and sending upgrade packet"),T(),p.setTransport(u),u.send([{type:"upgrade"}]),p.emit("upgrade",u),u=null,p.upgrading=!1,p.flush())})}else{n('probe transport "%s" failed',l);var S=new Error("probe error");S.transport=u.name,p.emit("upgradeError",S)}}))}function m(){d||(d=!0,T(),u.close(),u=null)}function b(y){var k=new Error("probe error: "+y);k.transport=u.name,m(),n('probe transport "%s" failed because of error: %s',l,y),p.emit("upgradeError",k)}function v(){b("transport closed")}function w(){b("socket closed")}function _(y){u&&y.name!==u.name&&(n('"%s" works - aborting "%s"',y.name,u.name),m())}function T(){u.removeListener("open",f),u.removeListener("error",b),u.removeListener("close",v),p.removeListener("close",w),p.removeListener("upgrading",_)}u.once("open",f),u.once("error",b),u.once("close",v),this.once("close",w),this.once("upgrading",_),u.open()},s.prototype.onOpen=function(){if(n("socket open"),this.readyState="open",s.priorWebsocketSuccess=this.transport.name==="websocket",this.emit("open"),this.flush(),this.readyState==="open"&&this.upgrade&&this.transport.pause){n("starting upgrade probes");for(var l=0,u=this.upgrades.length;l<u;l++)this.probe(this.upgrades[l])}},s.prototype.onPacket=function(l){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(n('socket receive: type "%s", data "%s"',l.type,l.data),this.emit("packet",l),this.emit("heartbeat"),l.type){case"open":this.onHandshake(JSON.parse(l.data));break;case"pong":this.setPing(),this.emit("pong");break;case"error":var u=new Error("server error");u.code=l.data,this.onError(u);break;case"message":this.emit("data",l.data),this.emit("message",l.data);break}else n('packet received with socket readyState "%s"',this.readyState)},s.prototype.onHandshake=function(l){this.emit("handshake",l),this.id=l.sid,this.transport.query.sid=l.sid,this.upgrades=this.filterUpgrades(l.upgrades),this.pingInterval=l.pingInterval,this.pingTimeout=l.pingTimeout,this.onOpen(),this.readyState!=="closed"&&(this.setPing(),this.removeListener("heartbeat",this.onHeartbeat),this.on("heartbeat",this.onHeartbeat))},s.prototype.onHeartbeat=function(l){clearTimeout(this.pingTimeoutTimer);var u=this;u.pingTimeoutTimer=setTimeout(function(){u.readyState!=="closed"&&u.onClose("ping timeout")},l||u.pingInterval+u.pingTimeout)},s.prototype.setPing=function(){var l=this;clearTimeout(l.pingIntervalTimer),l.pingIntervalTimer=setTimeout(function(){n("writing ping packet - expecting pong within %sms",l.pingTimeout),l.ping(),l.onHeartbeat(l.pingTimeout)},l.pingInterval)},s.prototype.ping=function(){var l=this;this.sendPacket("ping",function(){l.emit("ping")})},s.prototype.onDrain=function(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emit("drain"):this.flush()},s.prototype.flush=function(){this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length&&(n("flushing %d packets in socket",this.writeBuffer.length),this.transport.send(this.writeBuffer),this.prevBufferLen=this.writeBuffer.length,this.emit("flush"))},s.prototype.write=s.prototype.send=function(l,u,d){return this.sendPacket("message",l,u,d),this},s.prototype.sendPacket=function(l,u,d,p){if(typeof u=="function"&&(p=u,u=void 0),typeof d=="function"&&(p=d,d=null),!(this.readyState==="closing"||this.readyState==="closed")){d=d||{},d.compress=d.compress!==!1;var f={type:l,data:u,options:d};this.emit("packetCreate",f),this.writeBuffer.push(f),p&&this.once("flush",p),this.flush()}},s.prototype.close=function(){if(this.readyState==="opening"||this.readyState==="open"){this.readyState="closing";var l=this;this.writeBuffer.length?this.once("drain",function(){this.upgrading?p():u()}):this.upgrading?p():u()}function u(){l.onClose("forced close"),n("socket closing - telling transport to close"),l.transport.close()}function d(){l.removeListener("upgrade",d),l.removeListener("upgradeError",d),u()}function p(){l.once("upgrade",d),l.once("upgradeError",d)}return this},s.prototype.onError=function(l){n("socket error %j",l),s.priorWebsocketSuccess=!1,this.emit("error",l),this.onClose("transport error",l)},s.prototype.onClose=function(l,u){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){n('socket close with reason: "%s"',l);var d=this;clearTimeout(this.pingIntervalTimer),clearTimeout(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),this.readyState="closed",this.id=null,this.emit("close",l,u),d.writeBuffer=[],d.prevBufferLen=0}},s.prototype.filterUpgrades=function(l){for(var u=[],d=0,p=l.length;d<p;d++)~r(this.transports,l[d])&&u.push(l[d]);return u},Xf}var XC;function rY(){return XC||(XC=1,function(e){e.exports=nY(),e.exports.parser=_a()}(j7)),Uv}var Yv={},oY={get exports(){return Yv},set exports(e){Yv=e}},eg,ek;function iY(){if(ek)return eg;ek=1,eg=e;function e(t,n){var r=[];n=n||0;for(var o=n||0;o<t.length;o++)r[o-n]=t[o];return r}return eg}var tg,tk;function UR(){if(tk)return tg;tk=1,tg=e;function e(t,n,r){return t.on(n,r),{destroy:function(){t.removeListener(n,r)}}}return tg}var ng,nk;function YR(){if(nk)return ng;nk=1;var e=[].slice;return ng=function(t,n){if(typeof n=="string"&&(n=t[n]),typeof n!="function")throw new Error("bind() requires a function");var r=e.call(arguments,2);return function(){return n.apply(t,r.concat(e.call(arguments)))}},ng}var rk;function qR(){return rk||(rk=1,function(e,t){var n=Ry(),r=Aa(),o=iY(),i=UR(),a=YR(),s=kd()("socket.io-client:socket"),c=Sd(),l=HR();e.exports=p;var u={connect:1,connect_error:1,connect_timeout:1,connecting:1,disconnect:1,error:1,reconnect:1,reconnect_attempt:1,reconnect_failed:1,reconnect_error:1,reconnecting:1,ping:1,pong:1},d=r.prototype.emit;function p(f,m,b){this.io=f,this.nsp=m,this.json=this,this.ids=0,this.acks={},this.receiveBuffer=[],this.sendBuffer=[],this.connected=!1,this.disconnected=!0,this.flags={},b&&b.query&&(this.query=b.query),this.io.autoConnect&&this.open()}r(p.prototype),p.prototype.subEvents=function(){if(!this.subs){var f=this.io;this.subs=[i(f,"open",a(this,"onopen")),i(f,"packet",a(this,"onpacket")),i(f,"close",a(this,"onclose"))]}},p.prototype.open=p.prototype.connect=function(){return this.connected?this:(this.subEvents(),this.io.reconnecting||this.io.open(),this.io.readyState==="open"&&this.onopen(),this.emit("connecting"),this)},p.prototype.send=function(){var f=o(arguments);return f.unshift("message"),this.emit.apply(this,f),this},p.prototype.emit=function(f){if(u.hasOwnProperty(f))return d.apply(this,arguments),this;var m=o(arguments),b={type:(this.flags.binary!==void 0?this.flags.binary:l(m))?n.BINARY_EVENT:n.EVENT,data:m};return b.options={},b.options.compress=!this.flags||this.flags.compress!==!1,typeof m[m.length-1]=="function"&&(s("emitting packet with ack id %d",this.ids),this.acks[this.ids]=m.pop(),b.id=this.ids++),this.connected?this.packet(b):this.sendBuffer.push(b),this.flags={},this},p.prototype.packet=function(f){f.nsp=this.nsp,this.io.packet(f)},p.prototype.onopen=function(){if(s("transport is open - connecting"),this.nsp!=="/")if(this.query){var f=typeof this.query=="object"?c.encode(this.query):this.query;s("sending connect packet with query %s",f),this.packet({type:n.CONNECT,query:f})}else this.packet({type:n.CONNECT})},p.prototype.onclose=function(f){s("close (%s)",f),this.connected=!1,this.disconnected=!0,delete this.id,this.emit("disconnect",f)},p.prototype.onpacket=function(f){var m=f.nsp===this.nsp,b=f.type===n.ERROR&&f.nsp==="/";if(!(!m&&!b))switch(f.type){case n.CONNECT:this.onconnect();break;case n.EVENT:this.onevent(f);break;case n.BINARY_EVENT:this.onevent(f);break;case n.ACK:this.onack(f);break;case n.BINARY_ACK:this.onack(f);break;case n.DISCONNECT:this.ondisconnect();break;case n.ERROR:this.emit("error",f.data);break}},p.prototype.onevent=function(f){var m=f.data||[];s("emitting event %j",m),f.id!=null&&(s("attaching ack callback to event"),m.push(this.ack(f.id))),this.connected?d.apply(this,m):this.receiveBuffer.push(m)},p.prototype.ack=function(f){var m=this,b=!1;return function(){if(!b){b=!0;var v=o(arguments);s("sending ack %j",v),m.packet({type:l(v)?n.BINARY_ACK:n.ACK,id:f,data:v})}}},p.prototype.onack=function(f){var m=this.acks[f.id];typeof m=="function"?(s("calling ack %s with %j",f.id,f.data),m.apply(this,f.data),delete this.acks[f.id]):s("bad ack %s",f.id)},p.prototype.onconnect=function(){this.connected=!0,this.disconnected=!1,this.emitBuffered(),this.emit("connect")},p.prototype.emitBuffered=function(){var f;for(f=0;f<this.receiveBuffer.length;f++)d.apply(this,this.receiveBuffer[f]);for(this.receiveBuffer=[],f=0;f<this.sendBuffer.length;f++)this.packet(this.sendBuffer[f]);this.sendBuffer=[]},p.prototype.ondisconnect=function(){s("server disconnect (%s)",this.nsp),this.destroy(),this.onclose("io server disconnect")},p.prototype.destroy=function(){if(this.subs){for(var f=0;f<this.subs.length;f++)this.subs[f].destroy();this.subs=null}this.io.destroy(this)},p.prototype.close=p.prototype.disconnect=function(){return this.connected&&(s("performing disconnect (%s)",this.nsp),this.packet({type:n.DISCONNECT})),this.destroy(),this.connected&&this.onclose("io client disconnect"),this},p.prototype.compress=function(f){return this.flags.compress=f,this},p.prototype.binary=function(f){return this.flags.binary=f,this}}(oY)),Yv}var rg,ok;function aY(){if(ok)return rg;ok=1,rg=e;function e(t){t=t||{},this.ms=t.min||100,this.max=t.max||1e4,this.factor=t.factor||2,this.jitter=t.jitter>0&&t.jitter<=1?t.jitter:0,this.attempts=0}return e.prototype.duration=function(){var t=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var n=Math.random(),r=Math.floor(n*this.jitter*t);t=Math.floor(n*10)&1?t+r:t-r}return Math.min(t,this.max)|0},e.prototype.reset=function(){this.attempts=0},e.prototype.setMin=function(t){this.ms=t},e.prototype.setMax=function(t){this.max=t},e.prototype.setJitter=function(t){this.jitter=t},rg}var og,ik;function ak(){if(ik)return og;ik=1;var e=rY(),t=qR(),n=Aa(),r=Ry(),o=UR(),i=YR(),a=kd()("socket.io-client:manager"),s=WR(),c=aY(),l=Object.prototype.hasOwnProperty;og=u;function u(d,p){if(!(this instanceof u))return new u(d,p);d&&typeof d=="object"&&(p=d,d=void 0),p=p||{},p.path=p.path||"/socket.io",this.nsps={},this.subs=[],this.opts=p,this.reconnection(p.reconnection!==!1),this.reconnectionAttempts(p.reconnectionAttempts||1/0),this.reconnectionDelay(p.reconnectionDelay||1e3),this.reconnectionDelayMax(p.reconnectionDelayMax||5e3),this.randomizationFactor(p.randomizationFactor||.5),this.backoff=new c({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(p.timeout==null?2e4:p.timeout),this.readyState="closed",this.uri=d,this.connecting=[],this.lastPing=null,this.encoding=!1,this.packetBuffer=[];var f=p.parser||r;this.encoder=new f.Encoder,this.decoder=new f.Decoder,this.autoConnect=p.autoConnect!==!1,this.autoConnect&&this.open()}return u.prototype.emitAll=function(){this.emit.apply(this,arguments);for(var d in this.nsps)l.call(this.nsps,d)&&this.nsps[d].emit.apply(this.nsps[d],arguments)},u.prototype.updateSocketIds=function(){for(var d in this.nsps)l.call(this.nsps,d)&&(this.nsps[d].id=this.generateId(d))},u.prototype.generateId=function(d){return(d==="/"?"":d+"#")+this.engine.id},n(u.prototype),u.prototype.reconnection=function(d){return arguments.length?(this._reconnection=!!d,this):this._reconnection},u.prototype.reconnectionAttempts=function(d){return arguments.length?(this._reconnectionAttempts=d,this):this._reconnectionAttempts},u.prototype.reconnectionDelay=function(d){return arguments.length?(this._reconnectionDelay=d,this.backoff&&this.backoff.setMin(d),this):this._reconnectionDelay},u.prototype.randomizationFactor=function(d){return arguments.length?(this._randomizationFactor=d,this.backoff&&this.backoff.setJitter(d),this):this._randomizationFactor},u.prototype.reconnectionDelayMax=function(d){return arguments.length?(this._reconnectionDelayMax=d,this.backoff&&this.backoff.setMax(d),this):this._reconnectionDelayMax},u.prototype.timeout=function(d){return arguments.length?(this._timeout=d,this):this._timeout},u.prototype.maybeReconnectOnOpen=function(){!this.reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()},u.prototype.open=u.prototype.connect=function(d,p){if(a("readyState %s",this.readyState),~this.readyState.indexOf("open"))return this;a("opening %s",this.uri),this.engine=e(this.uri,this.opts);var f=this.engine,m=this;this.readyState="opening",this.skipReconnect=!1;var b=o(f,"open",function(){m.onopen(),d&&d()}),v=o(f,"error",function(T){if(a("connect_error"),m.cleanup(),m.readyState="closed",m.emitAll("connect_error",T),d){var y=new Error("Connection error");y.data=T,d(y)}else m.maybeReconnectOnOpen()});if(this._timeout!==!1){var w=this._timeout;a("connect attempt will timeout after %d",w),w===0&&b.destroy();var _=setTimeout(function(){a("connect attempt timed out after %d",w),b.destroy(),f.close(),f.emit("error","timeout"),m.emitAll("connect_timeout",w)},w);this.subs.push({destroy:function(){clearTimeout(_)}})}return this.subs.push(b),this.subs.push(v),this},u.prototype.onopen=function(){a("open"),this.cleanup(),this.readyState="open",this.emit("open");var d=this.engine;this.subs.push(o(d,"data",i(this,"ondata"))),this.subs.push(o(d,"ping",i(this,"onping"))),this.subs.push(o(d,"pong",i(this,"onpong"))),this.subs.push(o(d,"error",i(this,"onerror"))),this.subs.push(o(d,"close",i(this,"onclose"))),this.subs.push(o(this.decoder,"decoded",i(this,"ondecoded")))},u.prototype.onping=function(){this.lastPing=new Date,this.emitAll("ping")},u.prototype.onpong=function(){this.emitAll("pong",new Date-this.lastPing)},u.prototype.ondata=function(d){this.decoder.add(d)},u.prototype.ondecoded=function(d){this.emit("packet",d)},u.prototype.onerror=function(d){a("error",d),this.emitAll("error",d)},u.prototype.socket=function(d,p){var f=this.nsps[d];if(!f){f=new t(this,d,p),this.nsps[d]=f;var m=this;f.on("connecting",b),f.on("connect",function(){f.id=m.generateId(d)}),this.autoConnect&&b()}function b(){~s(m.connecting,f)||m.connecting.push(f)}return f},u.prototype.destroy=function(d){var p=s(this.connecting,d);~p&&this.connecting.splice(p,1),!this.connecting.length&&this.close()},u.prototype.packet=function(d){a("writing packet %j",d);var p=this;d.query&&d.type===0&&(d.nsp+="?"+d.query),p.encoding?p.packetBuffer.push(d):(p.encoding=!0,this.encoder.encode(d,function(f){for(var m=0;m<f.length;m++)p.engine.write(f[m],d.options);p.encoding=!1,p.processPacketQueue()}))},u.prototype.processPacketQueue=function(){if(this.packetBuffer.length>0&&!this.encoding){var d=this.packetBuffer.shift();this.packet(d)}},u.prototype.cleanup=function(){a("cleanup");for(var d=this.subs.length,p=0;p<d;p++){var f=this.subs.shift();f.destroy()}this.packetBuffer=[],this.encoding=!1,this.lastPing=null,this.decoder.destroy()},u.prototype.close=u.prototype.disconnect=function(){a("disconnect"),this.skipReconnect=!0,this.reconnecting=!1,this.readyState==="opening"&&this.cleanup(),this.backoff.reset(),this.readyState="closed",this.engine&&this.engine.close()},u.prototype.onclose=function(d){a("onclose"),this.cleanup(),this.backoff.reset(),this.readyState="closed",this.emit("close",d),this._reconnection&&!this.skipReconnect&&this.reconnect()},u.prototype.reconnect=function(){if(this.reconnecting||this.skipReconnect)return this;var d=this;if(this.backoff.attempts>=this._reconnectionAttempts)a("reconnect failed"),this.backoff.reset(),this.emitAll("reconnect_failed"),this.reconnecting=!1;else{var p=this.backoff.duration();a("will wait %dms before reconnect attempt",p),this.reconnecting=!0;var f=setTimeout(function(){d.skipReconnect||(a("attempting reconnect"),d.emitAll("reconnect_attempt",d.backoff.attempts),d.emitAll("reconnecting",d.backoff.attempts),!d.skipReconnect&&d.open(function(m){m?(a("reconnect attempt error"),d.reconnecting=!1,d.reconnect(),d.emitAll("reconnect_error",m.data)):(a("reconnect success"),d.onreconnect())}))},p);this.subs.push({destroy:function(){clearTimeout(f)}})}},u.prototype.onreconnect=function(){var d=this.backoff.attempts;this.reconnecting=!1,this.backoff.reset(),this.updateSocketIds(),this.emitAll("reconnect",d)},og}var sk;function sY(){return sk||(sk=1,function(e,t){var n=O7(),r=Ry(),o=ak(),i=kd()("socket.io-client");e.exports=t=s;var a=t.managers={};function s(c,l){typeof c=="object"&&(l=c,c=void 0),l=l||{};var u=n(c),d=u.source,p=u.id,f=u.path,m=a[p]&&f in a[p].nsps,b=l.forceNew||l["force new connection"]||l.multiplex===!1||m,v;return b?(i("ignoring socket cache for %s",d),v=o(d,l)):(a[p]||(i("new io instance for %s",d),a[p]=o(d,l)),v=a[p]),u.query&&!l.query&&(l.query=u.query),v.socket(u.path,l)}t.protocol=r.protocol,t.connect=s,t.Manager=ak(),t.Socket=qR()}(C7,Gc)),Gc}var lY=sY();const cY=rr(lY);class Py{constructor(t,n){B(this,"socket"),B(this,"onMessageCallback"),typeof t=="string"?this.socket=Py.createNewSocket(t,n):this.socket=t}isReady(){return this.socket.connected}on(t,n){this.socket.on(t,n)}off(t,n){this.socket.off(t,n)}send(t,...n){const r=n[0];this.socket.emit(t,JSON.stringify(r))}onMessage(t,n,r){this.onMessageCallback=r;const o=t||"",i=n||"",a=i?`${o}-${i}`:o,s=c=>{let l=null;try{l=JSON.parse(c)}catch(u){throw new Error("Error parsing response message")}r(o,l)};return this.on(a,s),()=>{this.off(a,s)}}trigger(t,n){this.onMessageCallback&&this.onMessageCallback(t,n)}static createNewSocket(t,n){const r=cY.connect(t,{path:"/gateway",transports:["websocket"],reconnection:!0,query:n});return r.on("connect_error",o=>{console.log(`connect_error due to ${o.message}`)}),r.on("connect",()=>{r.emit("register",{})}),r.on("register",()=>{r.emit('{"eventName": "_registerEvent", "data": "pivot2"}'),r.connected=!0}),r.on("error",o=>{console.warn(`"SisenseSocket" socket error "${o}"`)}),r}}const $l={INCLUDE:["metadata.$.jaql","metadata.$.field","metadata.$.panel","metadata.$.hierarchies","metadata.$.format","metadata.$.disabled","metadata.$.distinctTotals"],EXCLUDE:["metadata.$.jaql.title","metadata.$.format.mask","metadata.$.format.width","queryGuid","widget","dashboard","grandTotals.title"]};class uY{constructor(t){B(this,"logger"),B(this,"events"),B(this,"jaql"),B(this,"data"),B(this,"isLoadInProgress",!1),B(this,"loadPromiseResolve"),B(this,"loadPromiseReject"),B(this,"loadFromCacheState"),B(this,"loadFromCacheInitialTimer"),B(this,"loadFromCacheTimer"),B(this,"isSingleBranchTree",!1),B(this,"loadedItemsCount",0),B(this,"totalItemsCount",0),B(this,"isLimited",!1),B(this,"isFinishEventReceived",!1),this.events=t||new Us,this.logger=jo.create("AbstractDataLoadService")}destroy(){this.data=void 0,this.events.removeAllListeners()}clone(){const t=this.logger.getName();throw new Error(`"${t}.clone" should be overridden in subclass`)}load(t){if(!t)throw new Error(`${this.logger.getName()} "jaql" is not defined for "load" method`);const n=!!this.data,r=this.jaql;this.jaql=t,n&&r&&(this.jaql.queryGuid=r.queryGuid),this.isLoadInProgress=!0;const o=new Promise((i,a)=>{this.loadPromiseResolve=i,this.loadPromiseReject=a});this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer);try{n?this.loadFromCache():this.loadFromServer()}catch(i){this.notifyAboutDataError(i)}return o}clear(){this.data=void 0}getJaql(){return this.jaql}isSingleRowTree(){return this.isSingleBranchTree}getTotalItemsCount(){return this.totalItemsCount}isFormattingChanges(t){const n=_n(this.jaql,{include:$l.INCLUDE,exclude:$l.EXCLUDE,excludeEmpty:!0}),r=_n(t,{include:$l.INCLUDE,exclude:$l.EXCLUDE,excludeEmpty:!0});return[...(n==null?void 0:n.metadata)||[],...(r==null?void 0:r.metadata)||[]].forEach(o=>{o&&o.panel===Ee.SCOPE&&delete o.field}),JSON.stringify(n)===JSON.stringify(r)}hasData(){return!!(this.data&&this.data[Ae.DATA])}hasError(){return this.data?!!this.data[Ae.ERROR]:!1}loadFromServer(){const t=this.logger.getName();throw new Error(`"${t}.loadFromServer" should be overridden in subclass`)}cancelQuery(){const t=this.logger.getName(),n=new Error(`"${t}.cancelQuery" should be overridden in subclass.`);return Promise.reject(n)}isCancelQueryNeeded(){return!this.isFinishEventReceived}loadFromCache(){return Promise.resolve().then(()=>(this.loadFromCacheInitialTimer&&clearTimeout(this.loadFromCacheInitialTimer),new Promise(t=>{this.loadFromCacheInitialTimer=setTimeout(t)}))).then(()=>new Promise(t=>{this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),this.loadFromCacheState=void 0,this.loadMessageFromCache(()=>{this.loadFromCacheState=void 0,this.loadFromCacheTimer&&clearImmediate(this.loadFromCacheTimer),t()})}))}loadMessageFromCache(t){this.loadFromCacheState=this.loadFromCacheState||{};const n=this.loadFromCacheState;let r="",o=0;if(OI.forEach(i=>{r||(n[i]=n[i]||0,n[i]<((this.data||{})[i]||[]).length&&(r=i,o=n[i]))}),r){const i=((this.data||{})[r]||[])[o];this.notifyAboutDataChunk(r||"",i,!0),n[r]=o+1,this.loadMessageFromCache(t)}else t&&t()}cacheData(t,n){this.data=this.data||{};const r=this.data;r&&(r[t]=r[t]||[],r[t].push(n||!0))}notifyAboutDataChunk(t,n,r=!1){this.logger.log("notifyAboutDataChunk",t,n,r);const o=n&&n.data&&t===Ae.DATA?n.data:n;if(r||this.cacheData(t,n),!r&&this.loadFromCacheState)return;t===Ae.METADATA&&(this.isSingleBranchTree=!!(o&&o.isSingleBranchTree)),t===Ae.ERROR&&this.notifyAboutDataError(o),t===Ae.DATA_FINISH&&(this.loadedItemsCount=o?o.rowsCount:0,this.notifyAboutDataLoaded(this.data)),t===Ae.TOTAL_ROWS&&(this.totalItemsCount=o?o.rowsCount:0,this.totalItemsCount!==this.loadedItemsCount&&(this.isLimited=!0)),t===Ae.FINISH&&(this.isFinishEventReceived=!0);const i=_n(o);this.events.emit(t,i)}notifyAboutDataLoaded(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseResolve=="function"&&(this.loadPromiseResolve(t),this.logger.log("notifyAboutDataLoaded")),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}notifyAboutDataError(t){this.isLoadInProgress&&(this.isLoadInProgress=!1,typeof this.loadPromiseReject=="function"&&(this.loadPromiseReject(t),this.logger.log("notifyAboutDataError")),this.loadPromiseReject=void 0,this.loadPromiseResolve=void 0)}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}offAll(t){this.events.removeAllListeners(t)}listenerCount(t){return this.events.listenerCount(t)}emit(t,...n){this.events.emit(t,...n)}}class Iy extends uY{constructor(t,n,r){if(super(n),B(this,"socket"),B(this,"initPromise"),B(this,"isInitInProgress",!1),B(this,"onMessageCancel"),B(this,"onSocketError",o=>{this.emit("error",{error:!0,type:500,details:`Socket error: ${o.message}`})}),B(this,"onSocketDisconnect",()=>{this.emit("error",{error:!0,type:500,details:"Socket disconnected"})}),this.logger=r||jo.create("DataLoadService"),!t)throw new Error(`${this.logger.getName()} "socket" not defined.`);this.socket=t,this.socket.on("error",this.onSocketError),this.socket.on("disconnect",this.onSocketDisconnect),this.on(Ae.ERROR,o=>{const i=JSON.stringify(o,null,4);process.env.NODE_ENV!=="production"&&this.logger.console.warn(`${this.logger.getName()} error message:
388
+ ${i}`)})}destroy(){super.destroy(),this.onMessageCancel&&(this.onMessageCancel(),this.onMessageCancel=void 0),this.socket.off("error",this.onSocketError),this.socket.off("disconnect",this.onSocketDisconnect)}clone(){const t=_n(this.data);t[Ae.HEADERS]||(t[Ae.HEADERS]=[{}]);const n=new Iy(this.socket);return n.data=t,n.jaql=this.jaql,n.isFinishEventReceived=this.isFinishEventReceived,n.isSingleBranchTree=this.isSingleBranchTree,n.loadedItemsCount=this.loadedItemsCount,n.totalItemsCount=this.totalItemsCount,n.isLimited=this.isLimited,n}loadFromServer(){this.waitForSocketReady().then(()=>{this.onMessageCancel&&this.onMessageCancel(),this.onMessageCancel=this.socket.onMessage(void 0,void 0,(t,n)=>{this.logger.log("handleMessage",t,n),this.notifyAboutDataChunk(t,n)}),this.socket.send("pivot",this.jaql)})}cancelQuery(){return this.isCancelQueryNeeded()?this.waitForSocketReady().then(()=>{this.socket.send("pivot/cancel-query",{queryGuid:this.jaql&&this.jaql.queryGuid})}):Promise.resolve()}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():this.isInitInProgress&&this.initPromise?this.initPromise:(this.isInitInProgress=!0,this.initPromise=new Promise((t,n)=>{this.socket.on("open",()=>{this.socket&&this.socket.isReady()?t():n(new Error("Can not open WebSocket connection"))})}),this.initPromise)}}let zl;const dY=new Uint8Array(16);function pY(){if(!zl&&(zl=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!zl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return zl(dY)}const Jt=[];for(let e=0;e<256;++e)Jt.push((e+256).toString(16).slice(1));function hY(e,t=0){return Jt[e[t+0]]+Jt[e[t+1]]+Jt[e[t+2]]+Jt[e[t+3]]+"-"+Jt[e[t+4]]+Jt[e[t+5]]+"-"+Jt[e[t+6]]+Jt[e[t+7]]+"-"+Jt[e[t+8]]+Jt[e[t+9]]+"-"+Jt[e[t+10]]+Jt[e[t+11]]+Jt[e[t+12]]+Jt[e[t+13]]+Jt[e[t+14]]+Jt[e[t+15]]}const fY=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),lk={randomUUID:fY};function gY(e,t,n){if(lk.randomUUID&&!t&&!e)return lk.randomUUID();e=e||{};const r=e.random||(e.rng||pY)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,hY(r)}class VR extends Iy{constructor(t,n,r={}){super(t,n),B(this,"options"),B(this,"registrationWaitTimer"),B(this,"onMessageCancels",[]),this.options=r,this.logger=jo.create("SisenseDataLoadService")}destroy(){super.destroy(),this.onMessageCancels.length&&(this.onMessageCancels.forEach(t=>{t&&t()}),this.onMessageCancels.length=0)}loadFromServer(){this.waitForSocketReady().then(()=>{const t=ee({queryGuid:gY()},this.jaql),{queryGuid:n}=t;this.onMessageCancels.length&&(this.onMessageCancels.forEach(r=>{r&&r()}),this.onMessageCancels.length=0),Object.values(Ae).forEach(r=>{const o=this.socket.onMessage(r,n,(i,a)=>{this.logger.log("handleMessage",i,a),this.notifyAboutDataChunk(i,a)});this.onMessageCancels.push(o)}),this.socket.send("pivot",t)})}waitForSocketReady(){return this.socket.isReady()?Promise.resolve():new Promise(t=>{const{socketRegisterCheckInterval:n=100}=this.options;this.registrationWaitTimer&&clearInterval(this.registrationWaitTimer);const r=()=>{this.socket.isReady()&&(clearInterval(this.registrationWaitTimer),t())};this.registrationWaitTimer=setInterval(r,n)})}}const mY={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}};class nu{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(t,n)}init(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=n.prefix||"i18next:",this.logger=t||mY,this.options=n,this.debug=n.debug}log(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"log","",!0)}warn(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","",!0)}error(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"error","")}deprecate(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return this.forward(n,"warn","WARNING DEPRECATED: ",!0)}forward(t,n,r,o){return o&&!this.debug?null:(typeof t[0]=="string"&&(t[0]=`${r}${this.prefix} ${t[0]}`),this.logger[n](t))}create(t){return new nu(this.logger,ee({prefix:`${this.prefix}:${t}:`},this.options))}clone(t){return t=t||this.options,t.prefix=t.prefix||this.prefix,new nu(this.logger,t)}}var Mr=new nu;class Od{constructor(){this.observers={}}on(t,n){return t.split(" ").forEach(r=>{this.observers[r]=this.observers[r]||[],this.observers[r].push(n)}),this}off(t,n){if(this.observers[t]){if(!n){delete this.observers[t];return}this.observers[t]=this.observers[t].filter(r=>r!==n)}}emit(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];this.observers[t]&&[].concat(this.observers[t]).forEach(i=>{i(...r)}),this.observers["*"]&&[].concat(this.observers["*"]).forEach(i=>{i.apply(i,[t,...r])})}}function ts(){let e,t;const n=new Promise((r,o)=>{e=r,t=o});return n.resolve=e,n.reject=t,n}function ck(e){return e==null?"":""+e}function vY(e,t,n){e.forEach(r=>{t[r]&&(n[r]=t[r])})}function jy(e,t,n){function r(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function o(){return!e||typeof e=="string"}const i=typeof t!="string"?[].concat(t):t.split(".");for(;i.length>1;){if(o())return{};const a=r(i.shift());!e[a]&&n&&(e[a]=new n),Object.prototype.hasOwnProperty.call(e,a)?e=e[a]:e={}}return o()?{}:{obj:e,k:r(i.shift())}}function uk(e,t,n){const{obj:r,k:o}=jy(e,t,Object);r[o]=n}function bY(e,t,n,r){const{obj:o,k:i}=jy(e,t,Object);o[i]=o[i]||[],o[i].push(n)}function ru(e,t){const{obj:n,k:r}=jy(e,t);if(n)return n[r]}function yY(e,t,n){const r=ru(e,n);return r!==void 0?r:ru(t,n)}function GR(e,t,n){for(const r in t)r!=="__proto__"&&r!=="constructor"&&(r in e?typeof e[r]=="string"||e[r]instanceof String||typeof t[r]=="string"||t[r]instanceof String?n&&(e[r]=t[r]):GR(e[r],t[r],n):e[r]=t[r]);return e}function Yi(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var wY={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function xY(e){return typeof e=="string"?e.replace(/[&<>"'\/]/g,t=>wY[t]):e}const _Y=[" ",",","?","!",";"];function CY(e,t,n){t=t||"",n=n||"";const r=_Y.filter(a=>t.indexOf(a)<0&&n.indexOf(a)<0);if(r.length===0)return!0;const o=new RegExp(`(${r.map(a=>a==="?"?"\\?":a).join("|")})`);let i=!o.test(e);if(!i){const a=e.indexOf(n);a>0&&!o.test(e.substring(0,a))&&(i=!0)}return i}function ou(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:".";if(!e)return;if(e[t])return e[t];const r=t.split(n);let o=e;for(let i=0;i<r.length;++i){if(!o||typeof o[r[i]]=="string"&&i+1<r.length)return;if(o[r[i]]===void 0){let a=2,s=r.slice(i,i+a).join(n),c=o[s];for(;c===void 0&&r.length>i+a;)a++,s=r.slice(i,i+a).join(n),c=o[s];if(c===void 0)return;if(c===null)return null;if(t.endsWith(s)){if(typeof c=="string")return c;if(s&&typeof c[s]=="string")return c[s]}const l=r.slice(i+a).join(n);return l?ou(c,l,n):void 0}o=o[r[i]]}return o}function iu(e){return e&&e.indexOf("_")>0?e.replace("_","-"):e}class dk extends Od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:["translation"],defaultNS:"translation"};super(),this.data=t||{},this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(t){this.options.ns.indexOf(t)<0&&this.options.ns.push(t)}removeNamespaces(t){const n=this.options.ns.indexOf(t);n>-1&&this.options.ns.splice(n,1)}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};const i=o.keySeparator!==void 0?o.keySeparator:this.options.keySeparator,a=o.ignoreJSONStructure!==void 0?o.ignoreJSONStructure:this.options.ignoreJSONStructure;let s=[t,n];r&&typeof r!="string"&&(s=s.concat(r)),r&&typeof r=="string"&&(s=s.concat(i?r.split(i):r)),t.indexOf(".")>-1&&(s=t.split("."));const c=ru(this.data,s);return c||!a||typeof r!="string"?c:ou(this.data&&this.data[t]&&this.data[t][n],r,i)}addResource(t,n,r,o){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1};const a=i.keySeparator!==void 0?i.keySeparator:this.options.keySeparator;let s=[t,n];r&&(s=s.concat(a?r.split(a):r)),t.indexOf(".")>-1&&(s=t.split("."),o=n,n=s[1]),this.addNamespaces(n),uk(this.data,s,o),i.silent||this.emit("added",t,n,r,o)}addResources(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(const i in r)(typeof r[i]=="string"||Object.prototype.toString.apply(r[i])==="[object Array]")&&this.addResource(t,n,i,r[i],{silent:!0});o.silent||this.emit("added",t,n,r)}addResourceBundle(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1},s=[t,n];t.indexOf(".")>-1&&(s=t.split("."),o=r,r=n,n=s[1]),this.addNamespaces(n);let c=ru(this.data,s)||{};o?GR(c,r,i):c=ee(ee({},c),r),uk(this.data,s,c),a.silent||this.emit("added",t,n,r)}removeResourceBundle(t,n){this.hasResourceBundle(t,n)&&delete this.data[t][n],this.removeNamespaces(n),this.emit("removed",t,n)}hasResourceBundle(t,n){return this.getResource(t,n)!==void 0}getResourceBundle(t,n){return n||(n=this.options.defaultNS),this.options.compatibilityAPI==="v1"?ee({},this.getResource(t,n)):this.getResource(t,n)}getDataByLanguage(t){return this.data[t]}hasLanguageSomeTranslations(t){const n=this.getDataByLanguage(t);return!!(n&&Object.keys(n)||[]).find(r=>n[r]&&Object.keys(n[r]).length>0)}toJSON(){return this.data}}var QR={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,o){return e.forEach(i=>{this.processors[i]&&(t=this.processors[i].process(t,n,r,o))}),t}};const pk={};class au extends Od{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),vY(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],t,this),this.options=n,this.options.keySeparator===void 0&&(this.options.keySeparator="."),this.logger=Mr.create("translator")}changeLanguage(t){t&&(this.language=t)}exists(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(t==null)return!1;const r=this.resolve(t,n);return r&&r.res!==void 0}extractFromKey(t,n){let r=n.nsSeparator!==void 0?n.nsSeparator:this.options.nsSeparator;r===void 0&&(r=":");const o=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator;let i=n.ns||this.options.defaultNS||[];const a=r&&t.indexOf(r)>-1,s=!this.options.userDefinedKeySeparator&&!n.keySeparator&&!this.options.userDefinedNsSeparator&&!n.nsSeparator&&!CY(t,r,o);if(a&&!s){const c=t.match(this.interpolator.nestingRegexp);if(c&&c.length>0)return{key:t,namespaces:i};const l=t.split(r);(r!==o||r===o&&this.options.ns.indexOf(l[0])>-1)&&(i=l.shift()),t=l.join(o)}return typeof i=="string"&&(i=[i]),{key:t,namespaces:i}}translate(t,n,r){if(typeof n!="object"&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n=="object"&&(n=ee({},n)),n||(n={}),t==null)return"";Array.isArray(t)||(t=[String(t)]);const o=n.returnDetails!==void 0?n.returnDetails:this.options.returnDetails,i=n.keySeparator!==void 0?n.keySeparator:this.options.keySeparator,{key:a,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()==="cimode"){if(u){const T=n.nsSeparator||this.options.nsSeparator;return o?{res:`${c}${T}${a}`,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c}:`${c}${T}${a}`}return o?{res:a,usedKey:a,exactUsedKey:a,usedLng:l,usedNS:c}:a}const d=this.resolve(t,n);let p=d&&d.res;const f=d&&d.usedKey||a,m=d&&d.exactUsedKey||a,b=Object.prototype.toString.apply(p),v=["[object Number]","[object Function]","[object RegExp]"],w=n.joinArrays!==void 0?n.joinArrays:this.options.joinArrays,_=!this.i18nFormat||this.i18nFormat.handleAsObject;if(_&&p&&typeof p!="string"&&typeof p!="boolean"&&typeof p!="number"&&v.indexOf(b)<0&&!(typeof w=="string"&&b==="[object Array]")){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");const T=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,p,xe(ee({},n),{ns:s})):`key '${a} (${this.language})' returned an object instead of string.`;return o?(d.res=T,d):T}if(i){const T=b==="[object Array]",y=T?[]:{},k=T?m:f;for(const S in p)if(Object.prototype.hasOwnProperty.call(p,S)){const x=`${k}${i}${S}`;y[S]=this.translate(x,xe(ee({},n),{joinArrays:!1,ns:s})),y[S]===x&&(y[S]=p[S])}p=y}}else if(_&&typeof w=="string"&&b==="[object Array]")p=p.join(w),p&&(p=this.extendTranslation(p,t,n,r));else{let T=!1,y=!1;const k=n.count!==void 0&&typeof n.count!="string",S=au.hasDefaultValue(n),x=k?this.pluralResolver.getSuffix(l,n.count,n):"",C=n.ordinal&&k?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):"",O=n[`defaultValue${x}`]||n[`defaultValue${C}`]||n.defaultValue;!this.isValidLookup(p)&&S&&(T=!0,p=O),this.isValidLookup(p)||(y=!0,p=a);const D=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&y?void 0:p,R=S&&O!==p&&this.options.updateMissing;if(y||T||R){if(this.logger.log(R?"updateKey":"missingKey",l,c,a,R?O:p),i){const I=this.resolve(a,xe(ee({},n),{keySeparator:!1}));I&&I.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let M=[];const F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo==="fallback"&&F&&F[0])for(let I=0;I<F.length;I++)M.push(F[I]);else this.options.saveMissingTo==="all"?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);const N=(I,j,$)=>{const Y=S&&$!==p?$:D;this.options.missingKeyHandler?this.options.missingKeyHandler(I,c,j,Y,R,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(I,c,j,Y,R,n),this.emit("missingKey",I,c,j,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&k?M.forEach(I=>{this.pluralResolver.getSuffixes(I,n).forEach(j=>{N([I],a+j,n[`defaultValue${j}`]||O)})}):N(M,a,O))}p=this.extendTranslation(p,t,n,d,r),y&&p===a&&this.options.appendNamespaceToMissingKey&&(p=`${c}:${a}`),(y||T)&&this.options.parseMissingKeyHandler&&(this.options.compatibilityAPI!=="v1"?p=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${a}`:a,T?p:void 0):p=this.options.parseMissingKeyHandler(p))}return o?(d.res=p,d):p}extendTranslation(t,n,r,o,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)t=this.i18nFormat.parse(t,ee(ee({},this.options.interpolation.defaultVariables),r),o.usedLng,o.usedNS,o.usedKey,{resolved:o});else if(!r.skipInterpolation){r.interpolation&&this.interpolator.init(xe(ee({},r),{interpolation:ee(ee({},this.options.interpolation),r.interpolation)}));const l=typeof t=="string"&&(r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);let u;if(l){const p=t.match(this.interpolator.nestingRegexp);u=p&&p.length}let d=r.replace&&typeof r.replace!="string"?r.replace:r;if(this.options.interpolation.defaultVariables&&(d=ee(ee({},this.options.interpolation.defaultVariables),d)),t=this.interpolator.interpolate(t,d,r.lng||this.language,r),l){const p=t.match(this.interpolator.nestingRegexp),f=p&&p.length;u<f&&(r.nest=!1)}!r.lng&&this.options.compatibilityAPI!=="v1"&&o&&o.res&&(r.lng=o.usedLng),r.nest!==!1&&(t=this.interpolator.nest(t,function(){for(var p=arguments.length,f=new Array(p),m=0;m<p;m++)f[m]=arguments[m];return i&&i[0]===f[0]&&!r.context?(a.logger.warn(`It seems you are nesting recursively key: ${f[0]} in key: ${n[0]}`),null):a.translate(...f,n)},r)),r.interpolation&&this.interpolator.reset()}const s=r.postProcess||this.options.postProcess,c=typeof s=="string"?[s]:s;return t!=null&&c&&c.length&&r.applyPostProcessor!==!1&&(t=QR.handle(c,t,n,this.options&&this.options.postProcessPassResolved?ee({i18nResolved:o},r):r,this)),t}resolve(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r,o,i,a,s;return typeof t=="string"&&(t=[t]),t.forEach(c=>{if(this.isValidLookup(r))return;const l=this.extractFromKey(c,n),u=l.key;o=u;let d=l.namespaces;this.options.fallbackNS&&(d=d.concat(this.options.fallbackNS));const p=n.count!==void 0&&typeof n.count!="string",f=p&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),m=n.context!==void 0&&(typeof n.context=="string"||typeof n.context=="number")&&n.context!=="",b=n.lngs?n.lngs:this.languageUtils.toResolveHierarchy(n.lng||this.language,n.fallbackLng);d.forEach(v=>{this.isValidLookup(r)||(s=v,!pk[`${b[0]}-${v}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(s)&&(pk[`${b[0]}-${v}`]=!0,this.logger.warn(`key "${o}" for languages "${b.join(", ")}" won't get resolved as namespace "${s}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),b.forEach(w=>{if(this.isValidLookup(r))return;a=w;const _=[u];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(_,u,w,v,n);else{let y;p&&(y=this.pluralResolver.getSuffix(w,n.count,n));const k=`${this.options.pluralSeparator}zero`,S=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(p&&(_.push(u+y),n.ordinal&&y.indexOf(S)===0&&_.push(u+y.replace(S,this.options.pluralSeparator)),f&&_.push(u+k)),m){const x=`${u}${this.options.contextSeparator}${n.context}`;_.push(x),p&&(_.push(x+y),n.ordinal&&y.indexOf(S)===0&&_.push(x+y.replace(S,this.options.pluralSeparator)),f&&_.push(x+k))}}let T;for(;T=_.pop();)this.isValidLookup(r)||(i=T,r=this.getResource(w,v,T,n))}))})}),{res:r,usedKey:o,exactUsedKey:i,usedLng:a,usedNS:s}}isValidLookup(t){return t!==void 0&&!(!this.options.returnNull&&t===null)&&!(!this.options.returnEmptyString&&t==="")}getResource(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(t,n,r,o):this.resourceStore.getResource(t,n,r,o)}static hasDefaultValue(t){const n="defaultValue";for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)&&n===r.substring(0,n.length)&&t[r]!==void 0)return!0;return!1}}function ig(e){return e.charAt(0).toUpperCase()+e.slice(1)}class hk{constructor(t){this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Mr.create("languageUtils")}getScriptPartFromCode(t){if(t=iu(t),!t||t.indexOf("-")<0)return null;const n=t.split("-");return n.length===2||(n.pop(),n[n.length-1].toLowerCase()==="x")?null:this.formatLanguageCode(n.join("-"))}getLanguagePartFromCode(t){if(t=iu(t),!t||t.indexOf("-")<0)return t;const n=t.split("-");return this.formatLanguageCode(n[0])}formatLanguageCode(t){if(typeof t=="string"&&t.indexOf("-")>-1){const n=["hans","hant","latn","cyrl","cans","mong","arab"];let r=t.split("-");return this.options.lowerCaseLng?r=r.map(o=>o.toLowerCase()):r.length===2?(r[0]=r[0].toLowerCase(),r[1]=r[1].toUpperCase(),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ig(r[1].toLowerCase()))):r.length===3&&(r[0]=r[0].toLowerCase(),r[1].length===2&&(r[1]=r[1].toUpperCase()),r[0]!=="sgn"&&r[2].length===2&&(r[2]=r[2].toUpperCase()),n.indexOf(r[1].toLowerCase())>-1&&(r[1]=ig(r[1].toLowerCase())),n.indexOf(r[2].toLowerCase())>-1&&(r[2]=ig(r[2].toLowerCase()))),r.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?t.toLowerCase():t}isSupportedCode(t){return(this.options.load==="languageOnly"||this.options.nonExplicitSupportedLngs)&&(t=this.getLanguagePartFromCode(t)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(t)>-1}getBestMatchFromCodes(t){if(!t)return null;let n;return t.forEach(r=>{if(n)return;const o=this.formatLanguageCode(r);(!this.options.supportedLngs||this.isSupportedCode(o))&&(n=o)}),!n&&this.options.supportedLngs&&t.forEach(r=>{if(n)return;const o=this.getLanguagePartFromCode(r);if(this.isSupportedCode(o))return n=o;n=this.options.supportedLngs.find(i=>{if(i===o||!(i.indexOf("-")<0&&o.indexOf("-")<0)&&i.indexOf(o)===0)return i})}),n||(n=this.getFallbackCodes(this.options.fallbackLng)[0]),n}getFallbackCodes(t,n){if(!t)return[];if(typeof t=="function"&&(t=t(n)),typeof t=="string"&&(t=[t]),Object.prototype.toString.apply(t)==="[object Array]")return t;if(!n)return t.default||[];let r=t[n];return r||(r=t[this.getScriptPartFromCode(n)]),r||(r=t[this.formatLanguageCode(n)]),r||(r=t[this.getLanguagePartFromCode(n)]),r||(r=t.default),r||[]}toResolveHierarchy(t,n){const r=this.getFallbackCodes(n||this.options.fallbackLng||[],t),o=[],i=a=>{a&&(this.isSupportedCode(a)?o.push(a):this.logger.warn(`rejecting language code not found in supportedLngs: ${a}`))};return typeof t=="string"&&(t.indexOf("-")>-1||t.indexOf("_")>-1)?(this.options.load!=="languageOnly"&&i(this.formatLanguageCode(t)),this.options.load!=="languageOnly"&&this.options.load!=="currentOnly"&&i(this.getScriptPartFromCode(t)),this.options.load!=="currentOnly"&&i(this.getLanguagePartFromCode(t))):typeof t=="string"&&i(this.formatLanguageCode(t)),r.forEach(a=>{o.indexOf(a)<0&&i(this.formatLanguageCode(a))}),o}}let kY=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kk","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],SY={1:function(e){return+(e>1)},2:function(e){return+(e!=1)},3:function(e){return 0},4:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},5:function(e){return e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},6:function(e){return e==1?0:e>=2&&e<=4?1:2},7:function(e){return e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2},8:function(e){return e==1?0:e==2?1:e!=8&&e!=11?2:3},9:function(e){return+(e>=2)},10:function(e){return e==1?0:e==2?1:e<7?2:e<11?3:4},11:function(e){return e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3},12:function(e){return+(e%10!=1||e%100==11)},13:function(e){return+(e!==0)},14:function(e){return e==1?0:e==2?1:e==3?2:3},15:function(e){return e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2},16:function(e){return e%10==1&&e%100!=11?0:e!==0?1:2},17:function(e){return e==1||e%10==1&&e%100!=11?0:1},18:function(e){return e==0?0:e==1?1:2},19:function(e){return e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3},20:function(e){return e==1?0:e==0||e%100>0&&e%100<20?1:2},21:function(e){return e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0},22:function(e){return e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3}};const TY=["v1","v2","v3"],EY=["v4"],fk={zero:0,one:1,two:2,few:3,many:4,other:5};function OY(){const e={};return kY.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:SY[t.fc]}})}),e}class DY{constructor(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=t,this.options=n,this.logger=Mr.create("pluralResolver"),(!this.options.compatibilityJSON||EY.includes(this.options.compatibilityJSON))&&(typeof Intl=="undefined"||!Intl.PluralRules)&&(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=OY()}addRule(t,n){this.rules[t]=n}getRule(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(iu(t),{type:n.ordinal?"ordinal":"cardinal"})}catch(r){return}return this.rules[t]||this.rules[this.languageUtils.getLanguagePartFromCode(t)]}needsPlural(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return this.shouldUseIntlApi()?r&&r.resolvedOptions().pluralCategories.length>1:r&&r.numbers.length>1}getPluralFormsOfKey(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(t,r).map(o=>`${n}${o}`)}getSuffixes(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const r=this.getRule(t,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((o,i)=>fk[o]-fk[i]).map(o=>`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:""}${o}`):r.numbers.map(o=>this.getSuffix(t,o,n)):[]}getSuffix(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.getRule(t,r);return o?this.shouldUseIntlApi()?`${this.options.prepend}${r.ordinal?`ordinal${this.options.prepend}`:""}${o.select(n)}`:this.getSuffixRetroCompatible(o,n):(this.logger.warn(`no plural rule found for: ${t}`),"")}getSuffixRetroCompatible(t,n){const r=t.noAbs?t.plurals(n):t.plurals(Math.abs(n));let o=t.numbers[r];this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1&&(o===2?o="plural":o===1&&(o=""));const i=()=>this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString();return this.options.compatibilityJSON==="v1"?o===1?"":typeof o=="number"?`_plural_${o.toString()}`:i():this.options.compatibilityJSON==="v2"||this.options.simplifyPluralSuffix&&t.numbers.length===2&&t.numbers[0]===1?i():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}shouldUseIntlApi(){return!TY.includes(this.options.compatibilityJSON)}}function gk(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:".",o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,i=yY(e,t,n);return!i&&o&&typeof n=="string"&&(i=ou(e,n,r),i===void 0&&(i=ou(t,n,r))),i}class RY{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mr.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||(n=>n),this.init(t)}init(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};t.interpolation||(t.interpolation={escapeValue:!0});const n=t.interpolation;this.escape=n.escape!==void 0?n.escape:xY,this.escapeValue=n.escapeValue!==void 0?n.escapeValue:!0,this.useRawValueToEscape=n.useRawValueToEscape!==void 0?n.useRawValueToEscape:!1,this.prefix=n.prefix?Yi(n.prefix):n.prefixEscaped||"{{",this.suffix=n.suffix?Yi(n.suffix):n.suffixEscaped||"}}",this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||",",this.unescapePrefix=n.unescapeSuffix?"":n.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":n.unescapeSuffix||"",this.nestingPrefix=n.nestingPrefix?Yi(n.nestingPrefix):n.nestingPrefixEscaped||Yi("$t("),this.nestingSuffix=n.nestingSuffix?Yi(n.nestingSuffix):n.nestingSuffixEscaped||Yi(")"),this.nestingOptionsSeparator=n.nestingOptionsSeparator?n.nestingOptionsSeparator:n.nestingOptionsSeparator||",",this.maxReplaces=n.maxReplaces?n.maxReplaces:1e3,this.alwaysFormat=n.alwaysFormat!==void 0?n.alwaysFormat:!1,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){const t=`${this.prefix}(.+?)${this.suffix}`;this.regexp=new RegExp(t,"g");const n=`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`;this.regexpUnescape=new RegExp(n,"g");const r=`${this.nestingPrefix}(.+?)${this.nestingSuffix}`;this.nestingRegexp=new RegExp(r,"g")}interpolate(t,n,r,o){let i,a,s;const c=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function l(f){return f.replace(/\$/g,"$$$$")}const u=f=>{if(f.indexOf(this.formatSeparator)<0){const w=gk(n,c,f,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(w,void 0,r,xe(ee(ee({},o),n),{interpolationkey:f})):w}const m=f.split(this.formatSeparator),b=m.shift().trim(),v=m.join(this.formatSeparator).trim();return this.format(gk(n,c,b,this.options.keySeparator,this.options.ignoreJSONStructure),v,r,xe(ee(ee({},o),n),{interpolationkey:b}))};this.resetRegExp();const d=o&&o.missingInterpolationHandler||this.options.missingInterpolationHandler,p=o&&o.interpolation&&o.interpolation.skipOnVariables!==void 0?o.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:f=>l(f)},{regex:this.regexp,safeValue:f=>this.escapeValue?l(this.escape(f)):l(f)}].forEach(f=>{for(s=0;i=f.regex.exec(t);){const m=i[1].trim();if(a=u(m),a===void 0)if(typeof d=="function"){const v=d(t,i,o);a=typeof v=="string"?v:""}else if(o&&Object.prototype.hasOwnProperty.call(o,m))a="";else if(p){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${m} for interpolating ${t}`),a="";else typeof a!="string"&&!this.useRawValueToEscape&&(a=ck(a));const b=f.safeValue(a);if(t=t.replace(i[0],b),p?(f.regex.lastIndex+=a.length,f.regex.lastIndex-=i[0].length):f.regex.lastIndex=0,s++,s>=this.maxReplaces)break}}),t}nest(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,a;function s(c,l){const u=this.nestingOptionsSeparator;if(c.indexOf(u)<0)return c;const d=c.split(new RegExp(`${u}[ ]*{`));let p=`{${d[1]}`;c=d[0],p=this.interpolate(p,a);const f=p.match(/'/g),m=p.match(/"/g);(f&&f.length%2===0&&!m||m.length%2!==0)&&(p=p.replace(/'/g,'"'));try{a=JSON.parse(p),l&&(a=ee(ee({},l),a))}catch(b){return this.logger.warn(`failed parsing options string in nesting for key ${c}`,b),`${c}${u}${p}`}return delete a.defaultValue,c}for(;o=this.nestingRegexp.exec(t);){let c=[];a=ee({},r),a=a.replace&&typeof a.replace!="string"?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let l=!1;if(o[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(o[1])){const u=o[1].split(this.formatSeparator).map(d=>d.trim());o[1]=u.shift(),c=u,l=!0}if(i=n(s.call(this,o[1].trim(),a),a),i&&o[0]===t&&typeof i!="string")return i;typeof i!="string"&&(i=ck(i)),i||(this.logger.warn(`missed to resolve ${o[1]} for nesting ${t}`),i=""),l&&(i=c.reduce((u,d)=>this.format(u,d,r.lng,xe(ee({},r),{interpolationkey:o[1].trim()})),i.trim())),t=t.replace(o[0],i),this.regexp.lastIndex=0}return t}}function AY(e){let t=e.toLowerCase().trim();const n={};if(e.indexOf("(")>-1){const r=e.split("(");t=r[0].toLowerCase().trim();const o=r[1].substring(0,r[1].length-1);t==="currency"&&o.indexOf(":")<0?n.currency||(n.currency=o.trim()):t==="relativetime"&&o.indexOf(":")<0?n.range||(n.range=o.trim()):o.split(";").forEach(i=>{if(!i)return;const[a,...s]=i.split(":"),c=s.join(":").trim().replace(/^'+|'+$/g,"");n[a.trim()]||(n[a.trim()]=c),c==="false"&&(n[a.trim()]=!1),c==="true"&&(n[a.trim()]=!0),isNaN(c)||(n[a.trim()]=parseInt(c,10))})}return{formatName:t,formatOptions:n}}function qi(e){const t={};return function(n,r,o){const i=r+JSON.stringify(o);let a=t[i];return a||(a=e(iu(r),o),t[i]=a),a(n)}}class MY{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=Mr.create("formatter"),this.options=t,this.formats={number:qi((n,r)=>{const o=new Intl.NumberFormat(n,ee({},r));return i=>o.format(i)}),currency:qi((n,r)=>{const o=new Intl.NumberFormat(n,xe(ee({},r),{style:"currency"}));return i=>o.format(i)}),datetime:qi((n,r)=>{const o=new Intl.DateTimeFormat(n,ee({},r));return i=>o.format(i)}),relativetime:qi((n,r)=>{const o=new Intl.RelativeTimeFormat(n,ee({},r));return i=>o.format(i,r.range||"day")}),list:qi((n,r)=>{const o=new Intl.ListFormat(n,ee({},r));return i=>o.format(i)})},this.init(t)}init(t){const n=(arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}}).interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}add(t,n){this.formats[t.toLowerCase().trim()]=n}addCached(t,n){this.formats[t.toLowerCase().trim()]=qi(n)}format(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return n.split(this.formatSeparator).reduce((i,a)=>{const{formatName:s,formatOptions:c}=AY(a);if(this.formats[s]){let l=i;try{const u=o&&o.formatParams&&o.formatParams[o.interpolationkey]||{},d=u.locale||u.lng||o.locale||o.lng||r;l=this.formats[s](i,d,ee(ee(ee({},c),o),u))}catch(u){this.logger.warn(u)}return l}else this.logger.warn(`there was no format function for ${s}`);return i},t)}}function NY(e,t){e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)}class PY extends Od{constructor(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=t,this.store=n,this.services=r,this.languageUtils=r.languageUtils,this.options=o,this.logger=Mr.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=o.maxParallelReads||10,this.readingCalls=0,this.maxRetries=o.maxRetries>=0?o.maxRetries:5,this.retryTimeout=o.retryTimeout>=1?o.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(r,o.backend,o)}queueLoad(t,n,r,o){const i={},a={},s={},c={};return t.forEach(l=>{let u=!0;n.forEach(d=>{const p=`${l}|${d}`;!r.reload&&this.store.hasResourceBundle(l,d)?this.state[p]=2:this.state[p]<0||(this.state[p]===1?a[p]===void 0&&(a[p]=!0):(this.state[p]=1,u=!1,a[p]===void 0&&(a[p]=!0),i[p]===void 0&&(i[p]=!0),c[d]===void 0&&(c[d]=!0)))}),u||(s[l]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:o}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(c)}}loaded(t,n,r){const o=t.split("|"),i=o[0],a=o[1];n&&this.emit("failedLoading",i,a,n),r&&this.store.addResourceBundle(i,a,r),this.state[t]=n?-1:2;const s={};this.queue.forEach(c=>{bY(c.loaded,[i],a),NY(c,t),n&&c.errors.push(n),c.pendingCount===0&&!c.done&&(Object.keys(c.loaded).forEach(l=>{s[l]||(s[l]={});const u=c.loaded[l];u.length&&u.forEach(d=>{s[l][d]===void 0&&(s[l][d]=!0)})}),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.emit("loaded",s),this.queue=this.queue.filter(c=>!c.done)}read(t,n,r){let o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!t.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:t,ns:n,fcName:r,tried:o,wait:i,callback:a});return}this.readingCalls++;const s=(l,u)=>{if(this.readingCalls--,this.waitingReads.length>0){const d=this.waitingReads.shift();this.read(d.lng,d.ns,d.fcName,d.tried,d.wait,d.callback)}if(l&&u&&o<this.maxRetries){setTimeout(()=>{this.read.call(this,t,n,r,o+1,i*2,a)},i);return}a(l,u)},c=this.backend[r].bind(this.backend);if(c.length===2){try{const l=c(t,n);l&&typeof l.then=="function"?l.then(u=>s(null,u)).catch(s):s(null,l)}catch(l){s(l)}return}return c(t,n,s)}prepareLoading(t,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();typeof t=="string"&&(t=this.languageUtils.toResolveHierarchy(t)),typeof n=="string"&&(n=[n]);const i=this.queueLoad(t,n,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach(a=>{this.loadOne(a)})}load(t,n,r){this.prepareLoading(t,n,{},r)}reload(t,n,r){this.prepareLoading(t,n,{reload:!0},r)}loadOne(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";const r=t.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(a,s)=>{a&&this.logger.warn(`${n}loading namespace ${i} for language ${o} failed`,a),!a&&s&&this.logger.log(`${n}loaded namespace ${i} for language ${o}`,s),this.loaded(t,a,s)})}saveMissing(t,n,r,o,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(n)){this.logger.warn(`did not save key "${r}" as the namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");return}if(!(r==null||r==="")){if(this.backend&&this.backend.create){const c=xe(ee({},a),{isUpdate:i}),l=this.backend.create.bind(this.backend);if(l.length<6)try{let u;l.length===5?u=l(t,n,r,o,c):u=l(t,n,r,o),u&&typeof u.then=="function"?u.then(d=>s(null,d)).catch(s):s(null,u)}catch(u){s(u)}else l(t,n,r,o,s,c)}!t||!t[0]||this.store.addResource(t[0],n,r,o)}}}function mk(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){let t={};if(typeof e[1]=="object"&&(t=e[1]),typeof e[1]=="string"&&(t.defaultValue=e[1]),typeof e[2]=="string"&&(t.tDescription=e[2]),typeof e[2]=="object"||typeof e[3]=="object"){const n=e[3]||e[2];Object.keys(n).forEach(r=>{t[r]=n[r]})}return t},interpolation:{escapeValue:!0,format:(e,t,n,r)=>e,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0}}}function vk(e){return typeof e.ns=="string"&&(e.ns=[e.ns]),typeof e.fallbackLng=="string"&&(e.fallbackLng=[e.fallbackLng]),typeof e.fallbackNS=="string"&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function Wl(){}function IY(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]=="function"&&(e[t]=e[t].bind(e))})}class js extends Od{constructor(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;if(super(),this.options=vk(t),this.services={},this.logger=Mr,this.modules={external:[]},IY(this),n&&!this.isInitialized&&!t.isClone){if(!this.options.initImmediate)return this.init(t,n),this;setTimeout(()=>{this.init(t,n)},0)}}init(){var t=this;let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;typeof n=="function"&&(r=n,n={}),!n.defaultNS&&n.defaultNS!==!1&&n.ns&&(typeof n.ns=="string"?n.defaultNS=n.ns:n.ns.indexOf("translation")<0&&(n.defaultNS=n.ns[0]));const o=mk();this.options=ee(ee(ee({},o),this.options),vk(n)),this.options.compatibilityAPI!=="v1"&&(this.options.interpolation=ee(ee({},o.interpolation),this.options.interpolation)),n.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=n.keySeparator),n.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=n.nsSeparator);function i(c){return c?typeof c=="function"?new c:c:null}if(!this.options.isClone){this.modules.logger?Mr.init(i(this.modules.logger),this.options):Mr.init(null,this.options);let c;this.modules.formatter?c=this.modules.formatter:typeof Intl!="undefined"&&(c=MY);const l=new hk(this.options);this.store=new dk(this.options.resources,this.options);const u=this.services;u.logger=Mr,u.resourceStore=this.store,u.languageUtils=l,u.pluralResolver=new DY(l,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),c&&(!this.options.interpolation.format||this.options.interpolation.format===o.interpolation.format)&&(u.formatter=i(c),u.formatter.init(u,this.options),this.options.interpolation.format=u.formatter.format.bind(u.formatter)),u.interpolator=new RY(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new PY(i(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",function(d){for(var p=arguments.length,f=new Array(p>1?p-1:0),m=1;m<p;m++)f[m-1]=arguments[m];t.emit(d,...f)}),this.modules.languageDetector&&(u.languageDetector=i(this.modules.languageDetector),u.languageDetector.init&&u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=i(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new au(this.services,this.options),this.translator.on("*",function(d){for(var p=arguments.length,f=new Array(p>1?p-1:0),m=1;m<p;m++)f[m-1]=arguments[m];t.emit(d,...f)}),this.modules.external.forEach(d=>{d.init&&d.init(this)})}if(this.format=this.options.interpolation.format,r||(r=Wl),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){const c=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);c.length>0&&c[0]!=="dev"&&(this.options.lng=c[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(c=>{this[c]=function(){return t.store[c](...arguments)}}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(c=>{this[c]=function(){return t.store[c](...arguments),t}});const a=ts(),s=()=>{const c=(l,u)=>{this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),a.resolve(u),r(l,u)};if(this.languages&&this.options.compatibilityAPI!=="v1"&&!this.isInitialized)return c(null,this.t.bind(this));this.changeLanguage(this.options.lng,c)};return this.options.resources||!this.options.initImmediate?s():setTimeout(s,0),a}loadResources(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wl;const r=typeof t=="string"?t:this.language;if(typeof t=="function"&&(n=t),!this.options.resources||this.options.partialBundledLanguages){if(r&&r.toLowerCase()==="cimode")return n();const o=[],i=a=>{a&&this.services.languageUtils.toResolveHierarchy(a).forEach(s=>{o.indexOf(s)<0&&o.push(s)})};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(a=>i(a)),this.options.preload&&this.options.preload.forEach(a=>i(a)),this.services.backendConnector.load(o,this.options.ns,a=>{!a&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),n(a)})}else n(null)}reloadResources(t,n,r){const o=ts();return t||(t=this.languages),n||(n=this.options.ns),r||(r=Wl),this.services.backendConnector.reload(t,n,i=>{o.resolve(),r(i)}),o}use(t){if(!t)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!t.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return t.type==="backend"&&(this.modules.backend=t),(t.type==="logger"||t.log&&t.warn&&t.error)&&(this.modules.logger=t),t.type==="languageDetector"&&(this.modules.languageDetector=t),t.type==="i18nFormat"&&(this.modules.i18nFormat=t),t.type==="postProcessor"&&QR.addPostProcessor(t),t.type==="formatter"&&(this.modules.formatter=t),t.type==="3rdParty"&&this.modules.external.push(t),this}setResolvedLanguage(t){if(!(!t||!this.languages)&&!(["cimode","dev"].indexOf(t)>-1))for(let n=0;n<this.languages.length;n++){const r=this.languages[n];if(!(["cimode","dev"].indexOf(r)>-1)&&this.store.hasLanguageSomeTranslations(r)){this.resolvedLanguage=r;break}}}changeLanguage(t,n){var r=this;this.isLanguageChangingTo=t;const o=ts();this.emit("languageChanging",t);const i=c=>{this.language=c,this.languages=this.services.languageUtils.toResolveHierarchy(c),this.resolvedLanguage=void 0,this.setResolvedLanguage(c)},a=(c,l)=>{l?(i(l),this.translator.changeLanguage(l),this.isLanguageChangingTo=void 0,this.emit("languageChanged",l),this.logger.log("languageChanged",l)):this.isLanguageChangingTo=void 0,o.resolve(function(){return r.t(...arguments)}),n&&n(c,function(){return r.t(...arguments)})},s=c=>{!t&&!c&&this.services.languageDetector&&(c=[]);const l=typeof c=="string"?c:this.services.languageUtils.getBestMatchFromCodes(c);l&&(this.language||i(l),this.translator.language||this.translator.changeLanguage(l),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(l)),this.loadResources(l,u=>{a(u,l)})};return!t&&this.services.languageDetector&&!this.services.languageDetector.async?s(this.services.languageDetector.detect()):!t&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(s):this.services.languageDetector.detect(s):s(t),o}getFixedT(t,n,r){var o=this;const i=function(a,s){let c;if(typeof s!="object"){for(var l=arguments.length,u=new Array(l>2?l-2:0),d=2;d<l;d++)u[d-2]=arguments[d];c=o.options.overloadTranslationOptionHandler([a,s].concat(u))}else c=ee({},s);c.lng=c.lng||i.lng,c.lngs=c.lngs||i.lngs,c.ns=c.ns||i.ns,c.keyPrefix=c.keyPrefix||r||i.keyPrefix;const p=o.options.keySeparator||".";let f;return c.keyPrefix&&Array.isArray(a)?f=a.map(m=>`${c.keyPrefix}${p}${m}`):f=c.keyPrefix?`${c.keyPrefix}${p}${a}`:a,o.t(f,c)};return typeof t=="string"?i.lng=t:i.lngs=t,i.ns=n,i.keyPrefix=r,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(t){this.options.defaultNS=t}hasLoadedNamespace(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;const r=n.lng||this.resolvedLanguage||this.languages[0],o=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(r.toLowerCase()==="cimode")return!0;const a=(s,c)=>{const l=this.services.backendConnector.state[`${s}|${c}`];return l===-1||l===2};if(n.precheck){const s=n.precheck(this,a);if(s!==void 0)return s}return!!(this.hasResourceBundle(r,t)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(r,t)&&(!o||a(i,t)))}loadNamespaces(t,n){const r=ts();return this.options.ns?(typeof t=="string"&&(t=[t]),t.forEach(o=>{this.options.ns.indexOf(o)<0&&this.options.ns.push(o)}),this.loadResources(o=>{r.resolve(),n&&n(o)}),r):(n&&n(),Promise.resolve())}loadLanguages(t,n){const r=ts();typeof t=="string"&&(t=[t]);const o=this.options.preload||[],i=t.filter(a=>o.indexOf(a)<0);return i.length?(this.options.preload=o.concat(i),this.loadResources(a=>{r.resolve(),n&&n(a)}),r):(n&&n(),Promise.resolve())}dir(t){if(t||(t=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!t)return"rtl";const n=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"],r=this.services&&this.services.languageUtils||new hk(mk());return n.indexOf(r.getLanguagePartFromCode(t))>-1||t.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new js(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Wl;const r=t.forkResourceStore;r&&delete t.forkResourceStore;const o=xe(ee(ee({},this.options),t),{isClone:!0}),i=new js(o);return(t.debug!==void 0||t.prefix!==void 0)&&(i.logger=i.logger.clone(t)),["store","services","language"].forEach(a=>{i[a]=this[a]}),i.services=ee({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},r&&(i.store=new dk(this.store.data,o),i.services.resourceStore=i.store),i.translator=new au(i.services,o),i.translator.on("*",function(a){for(var s=arguments.length,c=new Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];i.emit(a,...c)}),i.init(o,n),i.translator.options=o,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}const JR=js.createInstance();JR.createInstance=js.createInstance;const jY={error:"Error"},LY={error:"Помилка"},bk="common",FY={en:jY,uk:LY},Er=JR.createInstance({defaultNS:bk,resources:BY(FY,bk),lng:"en",fallbackLng:"en"}),ZR={i18nextInstance:Er,initPromise:Er.init().then(()=>Er)},oc=new Map;oc.set("common",ZR);const KR=e=>{if(oc.has(e.namespace))return oc.get(e.namespace);if(e.plugins)for(const i of e.plugins)Er.use(i);Object.keys(e.resource).forEach(i=>{Er.addResourceBundle(i,e.namespace,e.resource[i])});const t=Er.cloneInstance({defaultNS:e.namespace});let n=ZR.initPromise.then(()=>t);t.on("languageChanged",i=>{Er.language!==i&&Er.changeLanguage(i)}),Er.on("languageChanged",i=>{t.language!==i&&t.changeLanguage(i)});const r=e.language||"en";Er.language!==r&&(n=n.then(()=>t.changeLanguage(r)).then(()=>t));const o={initPromise:n,i18nextInstance:t};return oc.set(e.namespace,o),o};function BY(e,t){return Object.keys(e).reduce((n,r)=>(n[r]={[t]:e[r]},n),{})}const HY={errors:{measure:{unsupportedType:"Unsupported measure type",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure must have 'context' property"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure must have 'attribute'/'dim'/'expression' property",noAggAggregation:"DimensionalBaseMeasure must have 'agg' or 'aggregation' property"}},dataModelConfig:{noName:"'name' must be specified in config for DataModel",noMetadata:"'metadata' must be specified in config for DataModel"},filter:{unsupportedType:"Unsupported filter type: {{filterType}}",unsupportedDatetimeLevel:'Filters do not support the next "datetime" levels: Hours, MinutesRoundTo30, MinutesRoundTo15',membersFilterNullMember:"MembersFilter of {{attributeId}} - member cannot be null"},unsupportedDimensionalElement:"Unsupported dimensional element type"}},$Y={errors:{measure:{unsupportedType:"Непідтримуваний тип measure",dimensionalCalculatedMeasure:{noContext:"DimensionalCalculatedMeasure має мати властивість 'context'"},dimensionalBaseMeasure:{noAttributeDimExpression:"DimensionalBaseMeasure має мати властивість 'attribute'/'dim'/'expression'",noAggAggregation:"DimensionalBaseMeasure має мати властивість 'agg' або 'aggregation'"}},dataModelConfig:{noName:"'name' має бути вказано в конфігурації для DataModel",noMetadata:"'metadata' має бути вказано в конфігурації для DataModel"},filter:{unsupportedType:"Непідтримуваний тип фільтра: {{filterType}}",unsupportedDatetimeLevel:'Фільтри не підтримують наступні рівні "datetime": Hours, MinutesRoundTo30, MinutesRoundTo15',membersFilterNullMember:"MembersFilter у {{attributeId}} - member не може бути нульовим"},unsupportedDimensionalElement:"Непідтримуваний тип елемента"}},zY="sdkData",WY={en:HY,uk:$Y};function UY(){return KR({resource:WY,language:"en",namespace:zY})}UY();const yk={table:{columns:[],rows:[]}};var ag;(function(e){e[e.None=0]="None",e[e.Ascending=1]="Ascending",e[e.Descending=2]="Descending"})(ag=ag||(ag={}));var sg;(function(e){e.TEXT="text",e.NUMERIC="numeric",e.DATETIME="datetime"})(sg=sg||(sg={}));var lg;(function(e){e.ASC="asc",e.DESC="desc"})(lg=lg||(lg={}));var cg,wk;function YY(){if(wk)return cg;wk=1;var e=Ci(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch(r){}}();return cg=t,cg}var ug,xk;function Ly(){if(xk)return ug;xk=1;var e=YY();function t(n,r,o){r=="__proto__"&&e?e(n,r,{configurable:!0,enumerable:!0,value:o,writable:!0}):n[r]=o}return ug=t,ug}var dg,_k;function qY(){if(_k)return dg;_k=1;function e(t){return function(n,r,o){for(var i=-1,a=Object(n),s=o(n),c=s.length;c--;){var l=s[t?c:++i];if(r(a[l],l,a)===!1)break}return n}}return dg=e,dg}var pg,Ck;function VY(){if(Ck)return pg;Ck=1;var e=qY(),t=e();return pg=t,pg}var hg,kk;function GY(){if(kk)return hg;kk=1;var e=VY(),t=Vs();function n(r,o){return r&&e(r,o,t)}return hg=n,hg}var fg,Sk;function QY(){if(Sk)return fg;Sk=1;var e=Ob(),t=Ib(),n=1,r=2;function o(i,a,s,c){var l=s.length,u=l,d=!c;if(i==null)return!u;for(i=Object(i);l--;){var p=s[l];if(d&&p[2]?p[1]!==i[p[0]]:!(p[0]in i))return!1}for(;++l<u;){p=s[l];var f=p[0],m=i[f],b=p[1];if(d&&p[2]){if(m===void 0&&!(f in i))return!1}else{var v=new e;if(c)var w=c(m,b,f,i,a,v);if(!(w===void 0?t(b,m,n|r,c,v):w))return!1}}return!0}return fg=o,fg}var gg,Tk;function XR(){if(Tk)return gg;Tk=1;var e=Io();function t(n){return n===n&&!e(n)}return gg=t,gg}var mg,Ek;function JY(){if(Ek)return mg;Ek=1;var e=XR(),t=Vs();function n(r){for(var o=t(r),i=o.length;i--;){var a=o[i],s=r[a];o[i]=[a,s,e(s)]}return o}return mg=n,mg}var vg,Ok;function eA(){if(Ok)return vg;Ok=1;function e(t,n){return function(r){return r==null?!1:r[t]===n&&(n!==void 0||t in Object(r))}}return vg=e,vg}var bg,Dk;function ZY(){if(Dk)return bg;Dk=1;var e=QY(),t=JY(),n=eA();function r(o){var i=t(o);return i.length==1&&i[0][2]?n(i[0][0],i[0][1]):function(a){return a===o||e(a,o,i)}}return bg=r,bg}var yg,Rk;function Fy(){if(Rk)return yg;Rk=1;var e=ro(),t=$u(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){if(e(i))return!1;var s=typeof i;return s=="number"||s=="symbol"||s=="boolean"||i==null||t(i)?!0:r.test(i)||!n.test(i)||a!=null&&i in Object(a)}return yg=o,yg}var wg,Ak;function KY(){if(Ak)return wg;Ak=1;var e=Eb(),t="Expected a function";function n(r,o){if(typeof r!="function"||o!=null&&typeof o!="function")throw new TypeError(t);var i=function(){var a=arguments,s=o?o.apply(this,a):a[0],c=i.cache;if(c.has(s))return c.get(s);var l=r.apply(this,a);return i.cache=c.set(s,l)||c,l};return i.cache=new(n.Cache||e),i}return n.Cache=e,wg=n,wg}var xg,Mk;function XY(){if(Mk)return xg;Mk=1;var e=KY(),t=500;function n(r){var o=e(r,function(a){return i.size===t&&i.clear(),a}),i=o.cache;return o}return xg=n,xg}var _g,Nk;function eq(){if(Nk)return _g;Nk=1;var e=XY(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(o){var i=[];return o.charCodeAt(0)===46&&i.push(""),o.replace(t,function(a,s,c,l){i.push(c?l.replace(n,"$1"):s||a)}),i});return _g=r,_g}var Cg,Pk;function tq(){if(Pk)return Cg;Pk=1;function e(t,n){for(var r=-1,o=t==null?0:t.length,i=Array(o);++r<o;)i[r]=n(t[r],r,t);return i}return Cg=e,Cg}var kg,Ik;function nq(){if(Ik)return kg;Ik=1;var e=Ys(),t=tq(),n=ro(),r=$u(),o=1/0,i=e?e.prototype:void 0,a=i?i.toString:void 0;function s(c){if(typeof c=="string")return c;if(n(c))return t(c,s)+"";if(r(c))return a?a.call(c):"";var l=c+"";return l=="0"&&1/c==-o?"-0":l}return kg=s,kg}var Sg,jk;function rq(){if(jk)return Sg;jk=1;var e=nq();function t(n){return n==null?"":e(n)}return Sg=t,Sg}var Tg,Lk;function tA(){if(Lk)return Tg;Lk=1;var e=ro(),t=Fy(),n=eq(),r=rq();function o(i,a){return e(i)?i:t(i,a)?[i]:n(r(i))}return Tg=o,Tg}var Eg,Fk;function Dd(){if(Fk)return Eg;Fk=1;var e=$u(),t=1/0;function n(r){if(typeof r=="string"||e(r))return r;var o=r+"";return o=="0"&&1/r==-t?"-0":o}return Eg=n,Eg}var Og,Bk;function nA(){if(Bk)return Og;Bk=1;var e=tA(),t=Dd();function n(r,o){o=e(o,r);for(var i=0,a=o.length;r!=null&&i<a;)r=r[t(o[i++])];return i&&i==a?r:void 0}return Og=n,Og}var Dg,Hk;function oq(){if(Hk)return Dg;Hk=1;var e=nA();function t(n,r,o){var i=n==null?void 0:e(n,r);return i===void 0?o:i}return Dg=t,Dg}var Rg,$k;function iq(){if($k)return Rg;$k=1;function e(t,n){return t!=null&&n in Object(t)}return Rg=e,Rg}var Ag,zk;function aq(){if(zk)return Ag;zk=1;var e=tA(),t=iE(),n=ro(),r=aE(),o=Ab(),i=Dd();function a(s,c,l){c=e(c,s);for(var u=-1,d=c.length,p=!1;++u<d;){var f=i(c[u]);if(!(p=s!=null&&l(s,f)))break;s=s[f]}return p||++u!=d?p:(d=s==null?0:s.length,!!d&&o(d)&&r(f,d)&&(n(s)||t(s)))}return Ag=a,Ag}var Mg,Wk;function sq(){if(Wk)return Mg;Wk=1;var e=iq(),t=aq();function n(r,o){return r!=null&&t(r,o,e)}return Mg=n,Mg}var Ng,Uk;function lq(){if(Uk)return Ng;Uk=1;var e=Ib(),t=oq(),n=sq(),r=Fy(),o=XR(),i=eA(),a=Dd(),s=1,c=2;function l(u,d){return r(u)&&o(d)?i(a(u),d):function(p){var f=t(p,u);return f===void 0&&f===d?n(p,u):e(d,f,s|c)}}return Ng=l,Ng}var Pg,Yk;function cq(){if(Yk)return Pg;Yk=1;function e(t){return t}return Pg=e,Pg}var Ig,qk;function uq(){if(qk)return Ig;qk=1;function e(t){return function(n){return n==null?void 0:n[t]}}return Ig=e,Ig}var jg,Vk;function dq(){if(Vk)return jg;Vk=1;var e=nA();function t(n){return function(r){return e(r,n)}}return jg=t,jg}var Lg,Gk;function pq(){if(Gk)return Lg;Gk=1;var e=uq(),t=dq(),n=Fy(),r=Dd();function o(i){return n(i)?e(r(i)):t(i)}return Lg=o,Lg}var Fg,Qk;function hq(){if(Qk)return Fg;Qk=1;var e=ZY(),t=lq(),n=cq(),r=ro(),o=pq();function i(a){return typeof a=="function"?a:a==null?n:typeof a=="object"?r(a)?t(a[0],a[1]):e(a):o(a)}return Fg=i,Fg}var Bg,Jk;function fq(){if(Jk)return Bg;Jk=1;var e=Ly(),t=GY(),n=hq();function r(o,i){var a={};return i=n(i,3),t(o,function(s,c,l){e(a,c,i(s,c,l))}),a}return Bg=r,Bg}fq();function Ul(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var qv={},gq={get exports(){return qv},set exports(e){qv=e}},Zk;function mq(){return Zk||(Zk=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(r,o,i){function a(l,u){if(!o[l]){if(!r[l]){var d=typeof Ul=="function"&&Ul;if(!u&&d)return d(l,!0);if(s)return s(l,!0);throw new Error("Cannot find module '"+l+"'")}u=o[l]={exports:{}},r[l][0].call(u.exports,function(p){var f=r[l][1][p];return a(f||p)},u,u.exports,n,r,o,i)}return o[l].exports}for(var s=typeof Ul=="function"&&Ul,c=0;c<i.length;c++)a(i[c]);return a}({1:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){var m=n("crypto");function b(S,x){x=_(S,x);var C;return(C=x.algorithm!=="passthrough"?m.createHash(x.algorithm):new k).write===void 0&&(C.write=C.update,C.end=C.update),y(x,C).dispatch(S),C.update||C.end(""),C.digest?C.digest(x.encoding==="buffer"?void 0:x.encoding):(S=C.read(),x.encoding!=="buffer"?S.toString(x.encoding):S)}(o=r.exports=b).sha1=function(S){return b(S)},o.keys=function(S){return b(S,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},o.MD5=function(S){return b(S,{algorithm:"md5",encoding:"hex"})},o.keysMD5=function(S){return b(S,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var v=m.getHashes?m.getHashes().slice():["sha1","md5"],w=(v.push("passthrough"),["buffer","hex","binary","base64"]);function _(S,x){var C={};if(C.algorithm=(x=x||{}).algorithm||"sha1",C.encoding=x.encoding||"hex",C.excludeValues=!!x.excludeValues,C.algorithm=C.algorithm.toLowerCase(),C.encoding=C.encoding.toLowerCase(),C.ignoreUnknown=x.ignoreUnknown===!0,C.respectType=x.respectType!==!1,C.respectFunctionNames=x.respectFunctionNames!==!1,C.respectFunctionProperties=x.respectFunctionProperties!==!1,C.unorderedArrays=x.unorderedArrays===!0,C.unorderedSets=x.unorderedSets!==!1,C.unorderedObjects=x.unorderedObjects!==!1,C.replacer=x.replacer||void 0,C.excludeKeys=x.excludeKeys||void 0,S===void 0)throw new Error("Object argument required.");for(var O=0;O<v.length;++O)v[O].toLowerCase()===C.algorithm.toLowerCase()&&(C.algorithm=v[O]);if(v.indexOf(C.algorithm)===-1)throw new Error('Algorithm "'+C.algorithm+'" not supported. supported values: '+v.join(", "));if(w.indexOf(C.encoding)===-1&&C.algorithm!=="passthrough")throw new Error('Encoding "'+C.encoding+'" not supported. supported values: '+w.join(", "));return C}function T(S){if(typeof S=="function")return/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(S))!=null}function y(S,x,C){C=C||[];function O(D){return x.update?x.update(D,"utf8"):x.write(D,"utf8")}return{dispatch:function(D){return this["_"+((D=S.replacer?S.replacer(D):D)===null?"null":typeof D)](D)},_object:function(D){var R,M=Object.prototype.toString.call(D),F=/\[object (.*)\]/i.exec(M);if(F=(F=F?F[1]:"unknown:["+M+"]").toLowerCase(),0<=(M=C.indexOf(D)))return this.dispatch("[CIRCULAR:"+M+"]");if(C.push(D),s!==void 0&&s.isBuffer&&s.isBuffer(D))return O("buffer:"),O(D);if(F==="object"||F==="function"||F==="asyncfunction")return M=Object.keys(D),S.unorderedObjects&&(M=M.sort()),S.respectType===!1||T(D)||M.splice(0,0,"prototype","__proto__","constructor"),S.excludeKeys&&(M=M.filter(function(N){return!S.excludeKeys(N)})),O("object:"+M.length+":"),R=this,M.forEach(function(N){R.dispatch(N),O(":"),S.excludeValues||R.dispatch(D[N]),O(",")});if(!this["_"+F]){if(S.ignoreUnknown)return O("["+F+"]");throw new Error('Unknown object type "'+F+'"')}this["_"+F](D)},_array:function(D,N){N=N!==void 0?N:S.unorderedArrays!==!1;var M=this;if(O("array:"+D.length+":"),!N||D.length<=1)return D.forEach(function(I){return M.dispatch(I)});var F=[],N=D.map(function(I){var j=new k,$=C.slice();return y(S,j,$).dispatch(I),F=F.concat($.slice(C.length)),j.read().toString()});return C=C.concat(F),N.sort(),this._array(N,!1)},_date:function(D){return O("date:"+D.toJSON())},_symbol:function(D){return O("symbol:"+D.toString())},_error:function(D){return O("error:"+D.toString())},_boolean:function(D){return O("bool:"+D.toString())},_string:function(D){O("string:"+D.length+":"),O(D.toString())},_function:function(D){O("fn:"),T(D)?this.dispatch("[native]"):this.dispatch(D.toString()),S.respectFunctionNames!==!1&&this.dispatch("function-name:"+String(D.name)),S.respectFunctionProperties&&this._object(D)},_number:function(D){return O("number:"+D.toString())},_xml:function(D){return O("xml:"+D.toString())},_null:function(){return O("Null")},_undefined:function(){return O("Undefined")},_regexp:function(D){return O("regex:"+D.toString())},_uint8array:function(D){return O("uint8array:"),this.dispatch(Array.prototype.slice.call(D))},_uint8clampedarray:function(D){return O("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(D))},_int8array:function(D){return O("int8array:"),this.dispatch(Array.prototype.slice.call(D))},_uint16array:function(D){return O("uint16array:"),this.dispatch(Array.prototype.slice.call(D))},_int16array:function(D){return O("int16array:"),this.dispatch(Array.prototype.slice.call(D))},_uint32array:function(D){return O("uint32array:"),this.dispatch(Array.prototype.slice.call(D))},_int32array:function(D){return O("int32array:"),this.dispatch(Array.prototype.slice.call(D))},_float32array:function(D){return O("float32array:"),this.dispatch(Array.prototype.slice.call(D))},_float64array:function(D){return O("float64array:"),this.dispatch(Array.prototype.slice.call(D))},_arraybuffer:function(D){return O("arraybuffer:"),this.dispatch(new Uint8Array(D))},_url:function(D){return O("url:"+D.toString())},_map:function(D){return O("map:"),D=Array.from(D),this._array(D,S.unorderedSets!==!1)},_set:function(D){return O("set:"),D=Array.from(D),this._array(D,S.unorderedSets!==!1)},_file:function(D){return O("file:"),this.dispatch([D.name,D.size,D.type,D.lastModfied])},_blob:function(){if(S.ignoreUnknown)return O("[blob]");throw Error(`Hashing Blob objects is currently not supported
389
+ (see https://github.com/puleos/object-hash/issues/26)
390
+ Use "options.replacer" or "options.ignoreUnknown"
391
+ `)},_domwindow:function(){return O("domwindow")},_bigint:function(D){return O("bigint:"+D.toString())},_process:function(){return O("process")},_timer:function(){return O("timer")},_pipe:function(){return O("pipe")},_tcp:function(){return O("tcp")},_udp:function(){return O("udp")},_tty:function(){return O("tty")},_statwatcher:function(){return O("statwatcher")},_securecontext:function(){return O("securecontext")},_connection:function(){return O("connection")},_zlib:function(){return O("zlib")},_context:function(){return O("context")},_nodescript:function(){return O("nodescript")},_httpparser:function(){return O("httpparser")},_dataview:function(){return O("dataview")},_signal:function(){return O("signal")},_fsevent:function(){return O("fsevent")},_tlswrap:function(){return O("tlswrap")}}}function k(){return{buf:"",write:function(S){this.buf+=S},end:function(S){this.buf+=S},read:function(){return this.buf}}}o.writeToStream=function(S,x,C){return C===void 0&&(C=x,x={}),y(x=_(S,x),C).dispatch(S)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_9a5aa49d.js","/")},{buffer:3,crypto:5,lYpoI2:11}],2:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){(function(m){var b=typeof Uint8Array!="undefined"?Uint8Array:Array,v=43,w=47,_=48,T=97,y=65,k=45,S=95;function x(C){return C=C.charCodeAt(0),C===v||C===k?62:C===w||C===S?63:C<_?-1:C<_+10?C-_+26+26:C<y+26?C-y:C<T+26?C-T+26:void 0}m.toByteArray=function(C){var O,D;if(0<C.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var R=C.length,R=C.charAt(R-2)==="="?2:C.charAt(R-1)==="="?1:0,M=new b(3*C.length/4-R),F=0<R?C.length-4:C.length,N=0;function I(j){M[N++]=j}for(O=0;O<F;O+=4,0)I((16711680&(D=x(C.charAt(O))<<18|x(C.charAt(O+1))<<12|x(C.charAt(O+2))<<6|x(C.charAt(O+3))))>>16),I((65280&D)>>8),I(255&D);return R==2?I(255&(D=x(C.charAt(O))<<2|x(C.charAt(O+1))>>4)):R==1&&(I((D=x(C.charAt(O))<<10|x(C.charAt(O+1))<<4|x(C.charAt(O+2))>>2)>>8&255),I(255&D)),M},m.fromByteArray=function(C){var O,D,R,M,F=C.length%3,N="";function I(j){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(j)}for(O=0,R=C.length-F;O<R;O+=3)D=(C[O]<<16)+(C[O+1]<<8)+C[O+2],N+=I((M=D)>>18&63)+I(M>>12&63)+I(M>>6&63)+I(63&M);switch(F){case 1:N=(N+=I((D=C[C.length-1])>>2))+I(D<<4&63)+"==";break;case 2:N=(N=(N+=I((D=(C[C.length-2]<<8)+C[C.length-1])>>10))+I(D>>4&63))+I(D<<2&63)+"="}return N}})(o===void 0?this.base64js={}:o)}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:11}],3:[function(n,r,o){(function(i,a,v,c,l,u,d,p,f){var m=n("base64-js"),b=n("ieee754");function v(A,L,z){if(!(this instanceof v))return new v(A,L,z);var Q,X,Z,ae,he=typeof A;if(L==="base64"&&he=="string")for(A=(ae=A).trim?ae.trim():ae.replace(/^\s+|\s+$/g,"");A.length%4!=0;)A+="=";if(he=="number")Q=Y(A);else if(he=="string")Q=v.byteLength(A,L);else{if(he!="object")throw new Error("First argument needs to be a number, array or string.");Q=Y(A.length)}if(v._useTypedArrays?X=v._augment(new Uint8Array(Q)):((X=this).length=Q,X._isBuffer=!0),v._useTypedArrays&&typeof A.byteLength=="number")X._set(A);else if(U(ae=A)||v.isBuffer(ae)||ae&&typeof ae=="object"&&typeof ae.length=="number")for(Z=0;Z<Q;Z++)v.isBuffer(A)?X[Z]=A.readUInt8(Z):X[Z]=A[Z];else if(he=="string")X.write(A,0,L);else if(he=="number"&&!v._useTypedArrays&&!z)for(Z=0;Z<Q;Z++)X[Z]=0;return X}function w(A,L,z,Q){return v._charsWritten=ne(function(X){for(var Z=[],ae=0;ae<X.length;ae++)Z.push(255&X.charCodeAt(ae));return Z}(L),A,z,Q)}function _(A,L,z,Q){return v._charsWritten=ne(function(X){for(var Z,ae,he=[],le=0;le<X.length;le++)ae=X.charCodeAt(le),Z=ae>>8,ae=ae%256,he.push(ae),he.push(Z);return he}(L),A,z,Q)}function T(A,L,z){var Q="";z=Math.min(A.length,z);for(var X=L;X<z;X++)Q+=String.fromCharCode(A[X]);return Q}function y(A,L,z,Z){Z||(J(typeof z=="boolean","missing or invalid endian"),J(L!=null,"missing offset"),J(L+1<A.length,"Trying to read beyond buffer length"));var X,Z=A.length;if(!(Z<=L))return z?(X=A[L],L+1<Z&&(X|=A[L+1]<<8)):(X=A[L]<<8,L+1<Z&&(X|=A[L+1])),X}function k(A,L,z,Z){Z||(J(typeof z=="boolean","missing or invalid endian"),J(L!=null,"missing offset"),J(L+3<A.length,"Trying to read beyond buffer length"));var X,Z=A.length;if(!(Z<=L))return z?(L+2<Z&&(X=A[L+2]<<16),L+1<Z&&(X|=A[L+1]<<8),X|=A[L],L+3<Z&&(X+=A[L+3]<<24>>>0)):(L+1<Z&&(X=A[L+1]<<16),L+2<Z&&(X|=A[L+2]<<8),L+3<Z&&(X|=A[L+3]),X+=A[L]<<24>>>0),X}function S(A,L,z,Q){if(Q||(J(typeof z=="boolean","missing or invalid endian"),J(L!=null,"missing offset"),J(L+1<A.length,"Trying to read beyond buffer length")),!(A.length<=L))return Q=y(A,L,z,!0),32768&Q?-1*(65535-Q+1):Q}function x(A,L,z,Q){if(Q||(J(typeof z=="boolean","missing or invalid endian"),J(L!=null,"missing offset"),J(L+3<A.length,"Trying to read beyond buffer length")),!(A.length<=L))return Q=k(A,L,z,!0),2147483648&Q?-1*(4294967295-Q+1):Q}function C(A,L,z,Q){return Q||(J(typeof z=="boolean","missing or invalid endian"),J(L+3<A.length,"Trying to read beyond buffer length")),b.read(A,L,z,23,4)}function O(A,L,z,Q){return Q||(J(typeof z=="boolean","missing or invalid endian"),J(L+7<A.length,"Trying to read beyond buffer length")),b.read(A,L,z,52,8)}function D(A,L,z,Q,X){if(X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+1<A.length,"trying to write beyond buffer length"),ie(L,65535)),X=A.length,!(X<=z))for(var Z=0,ae=Math.min(X-z,2);Z<ae;Z++)A[z+Z]=(L&255<<8*(Q?Z:1-Z))>>>8*(Q?Z:1-Z)}function R(A,L,z,Q,X){if(X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+3<A.length,"trying to write beyond buffer length"),ie(L,4294967295)),X=A.length,!(X<=z))for(var Z=0,ae=Math.min(X-z,4);Z<ae;Z++)A[z+Z]=L>>>8*(Q?Z:3-Z)&255}function M(A,L,z,Q,X){X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+1<A.length,"Trying to write beyond buffer length"),ce(L,32767,-32768)),A.length<=z||D(A,0<=L?L:65535+L+1,z,Q,X)}function F(A,L,z,Q,X){X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+3<A.length,"Trying to write beyond buffer length"),ce(L,2147483647,-2147483648)),A.length<=z||R(A,0<=L?L:4294967295+L+1,z,Q,X)}function N(A,L,z,Q,X){X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+3<A.length,"Trying to write beyond buffer length"),se(L,34028234663852886e22,-34028234663852886e22)),A.length<=z||b.write(A,L,z,Q,23,4)}function I(A,L,z,Q,X){X||(J(L!=null,"missing value"),J(typeof Q=="boolean","missing or invalid endian"),J(z!=null,"missing offset"),J(z+7<A.length,"Trying to write beyond buffer length"),se(L,17976931348623157e292,-17976931348623157e292)),A.length<=z||b.write(A,L,z,Q,52,8)}o.Buffer=v,o.SlowBuffer=v,o.INSPECT_MAX_BYTES=50,v.poolSize=8192,v._useTypedArrays=function(){try{var A=new ArrayBuffer(0),L=new Uint8Array(A);return L.foo=function(){return 42},L.foo()===42&&typeof L.subarray=="function"}catch(z){return!1}}(),v.isEncoding=function(A){switch(String(A).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},v.isBuffer=function(A){return!(A==null||!A._isBuffer)},v.byteLength=function(A,L){var z;switch(A+="",L||"utf8"){case"hex":z=A.length/2;break;case"utf8":case"utf-8":z=K(A).length;break;case"ascii":case"binary":case"raw":z=A.length;break;case"base64":z=oe(A).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":z=2*A.length;break;default:throw new Error("Unknown encoding")}return z},v.concat=function(A,L){if(J(U(A),`Usage: Buffer.concat(list, [totalLength])
392
+ list should be an Array.`),A.length===0)return new v(0);if(A.length===1)return A[0];if(typeof L!="number")for(X=L=0;X<A.length;X++)L+=A[X].length;for(var z=new v(L),Q=0,X=0;X<A.length;X++){var Z=A[X];Z.copy(z,Q),Q+=Z.length}return z},v.prototype.write=function(A,L,z,Q){isFinite(L)?isFinite(z)||(Q=z,z=void 0):(le=Q,Q=L,L=z,z=le),L=Number(L)||0;var X,Z,ae,he,le=this.length-L;switch((!z||le<(z=Number(z)))&&(z=le),Q=String(Q||"utf8").toLowerCase()){case"hex":X=function(_e,ue,pe,me){pe=Number(pe)||0;var ye=_e.length-pe;(!me||ye<(me=Number(me)))&&(me=ye),J((ye=ue.length)%2==0,"Invalid hex string"),ye/2<me&&(me=ye/2);for(var we=0;we<me;we++){var Ie=parseInt(ue.substr(2*we,2),16);J(!isNaN(Ie),"Invalid hex string"),_e[pe+we]=Ie}return v._charsWritten=2*we,we}(this,A,L,z);break;case"utf8":case"utf-8":Z=this,ae=L,he=z,X=v._charsWritten=ne(K(A),Z,ae,he);break;case"ascii":case"binary":X=w(this,A,L,z);break;case"base64":Z=this,ae=L,he=z,X=v._charsWritten=ne(oe(A),Z,ae,he);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":X=_(this,A,L,z);break;default:throw new Error("Unknown encoding")}return X},v.prototype.toString=function(A,L,z){var Q,X,Z,ae,he=this;if(A=String(A||"utf8").toLowerCase(),L=Number(L)||0,(z=z!==void 0?Number(z):he.length)===L)return"";switch(A){case"hex":Q=function(le,_e,ue){var pe=le.length;(!_e||_e<0)&&(_e=0),(!ue||ue<0||pe<ue)&&(ue=pe);for(var me="",ye=_e;ye<ue;ye++)me+=G(le[ye]);return me}(he,L,z);break;case"utf8":case"utf-8":Q=function(le,_e,ue){var pe="",me="";ue=Math.min(le.length,ue);for(var ye=_e;ye<ue;ye++)le[ye]<=127?(pe+=re(me)+String.fromCharCode(le[ye]),me=""):me+="%"+le[ye].toString(16);return pe+re(me)}(he,L,z);break;case"ascii":case"binary":Q=T(he,L,z);break;case"base64":X=he,ae=z,Q=(Z=L)===0&&ae===X.length?m.fromByteArray(X):m.fromByteArray(X.slice(Z,ae));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":Q=function(le,_e,ue){for(var pe=le.slice(_e,ue),me="",ye=0;ye<pe.length;ye+=2)me+=String.fromCharCode(pe[ye]+256*pe[ye+1]);return me}(he,L,z);break;default:throw new Error("Unknown encoding")}return Q},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},v.prototype.copy=function(A,L,z,Q){if(L=L||0,(Q=Q||Q===0?Q:this.length)!==(z=z||0)&&A.length!==0&&this.length!==0){J(z<=Q,"sourceEnd < sourceStart"),J(0<=L&&L<A.length,"targetStart out of bounds"),J(0<=z&&z<this.length,"sourceStart out of bounds"),J(0<=Q&&Q<=this.length,"sourceEnd out of bounds"),Q>this.length&&(Q=this.length);var X=(Q=A.length-L<Q-z?A.length-L+z:Q)-z;if(X<100||!v._useTypedArrays)for(var Z=0;Z<X;Z++)A[Z+L]=this[Z+z];else A._set(this.subarray(z,z+X),L)}},v.prototype.slice=function(A,L){var z=this.length;if(A=$(A,z,0),L=$(L,z,z),v._useTypedArrays)return v._augment(this.subarray(A,L));for(var Q=L-A,X=new v(Q,void 0,!0),Z=0;Z<Q;Z++)X[Z]=this[Z+A];return X},v.prototype.get=function(A){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(A)},v.prototype.set=function(A,L){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(A,L)},v.prototype.readUInt8=function(A,L){if(L||(J(A!=null,"missing offset"),J(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return this[A]},v.prototype.readUInt16LE=function(A,L){return y(this,A,!0,L)},v.prototype.readUInt16BE=function(A,L){return y(this,A,!1,L)},v.prototype.readUInt32LE=function(A,L){return k(this,A,!0,L)},v.prototype.readUInt32BE=function(A,L){return k(this,A,!1,L)},v.prototype.readInt8=function(A,L){if(L||(J(A!=null,"missing offset"),J(A<this.length,"Trying to read beyond buffer length")),!(A>=this.length))return 128&this[A]?-1*(255-this[A]+1):this[A]},v.prototype.readInt16LE=function(A,L){return S(this,A,!0,L)},v.prototype.readInt16BE=function(A,L){return S(this,A,!1,L)},v.prototype.readInt32LE=function(A,L){return x(this,A,!0,L)},v.prototype.readInt32BE=function(A,L){return x(this,A,!1,L)},v.prototype.readFloatLE=function(A,L){return C(this,A,!0,L)},v.prototype.readFloatBE=function(A,L){return C(this,A,!1,L)},v.prototype.readDoubleLE=function(A,L){return O(this,A,!0,L)},v.prototype.readDoubleBE=function(A,L){return O(this,A,!1,L)},v.prototype.writeUInt8=function(A,L,z){z||(J(A!=null,"missing value"),J(L!=null,"missing offset"),J(L<this.length,"trying to write beyond buffer length"),ie(A,255)),L>=this.length||(this[L]=A)},v.prototype.writeUInt16LE=function(A,L,z){D(this,A,L,!0,z)},v.prototype.writeUInt16BE=function(A,L,z){D(this,A,L,!1,z)},v.prototype.writeUInt32LE=function(A,L,z){R(this,A,L,!0,z)},v.prototype.writeUInt32BE=function(A,L,z){R(this,A,L,!1,z)},v.prototype.writeInt8=function(A,L,z){z||(J(A!=null,"missing value"),J(L!=null,"missing offset"),J(L<this.length,"Trying to write beyond buffer length"),ce(A,127,-128)),L>=this.length||(0<=A?this.writeUInt8(A,L,z):this.writeUInt8(255+A+1,L,z))},v.prototype.writeInt16LE=function(A,L,z){M(this,A,L,!0,z)},v.prototype.writeInt16BE=function(A,L,z){M(this,A,L,!1,z)},v.prototype.writeInt32LE=function(A,L,z){F(this,A,L,!0,z)},v.prototype.writeInt32BE=function(A,L,z){F(this,A,L,!1,z)},v.prototype.writeFloatLE=function(A,L,z){N(this,A,L,!0,z)},v.prototype.writeFloatBE=function(A,L,z){N(this,A,L,!1,z)},v.prototype.writeDoubleLE=function(A,L,z){I(this,A,L,!0,z)},v.prototype.writeDoubleBE=function(A,L,z){I(this,A,L,!1,z)},v.prototype.fill=function(A,L,z){if(L=L||0,z=z||this.length,J(typeof(A=typeof(A=A||0)=="string"?A.charCodeAt(0):A)=="number"&&!isNaN(A),"value is not a number"),J(L<=z,"end < start"),z!==L&&this.length!==0){J(0<=L&&L<this.length,"start out of bounds"),J(0<=z&&z<=this.length,"end out of bounds");for(var Q=L;Q<z;Q++)this[Q]=A}},v.prototype.inspect=function(){for(var A=[],L=this.length,z=0;z<L;z++)if(A[z]=G(this[z]),z===o.INSPECT_MAX_BYTES){A[z+1]="...";break}return"<Buffer "+A.join(" ")+">"},v.prototype.toArrayBuffer=function(){if(typeof Uint8Array=="undefined")throw new Error("Buffer.toArrayBuffer not supported in this browser");if(v._useTypedArrays)return new v(this).buffer;for(var A=new Uint8Array(this.length),L=0,z=A.length;L<z;L+=1)A[L]=this[L];return A.buffer};var j=v.prototype;function $(A,L,z){return typeof A!="number"?z:L<=(A=~~A)?L:0<=A||0<=(A+=L)?A:0}function Y(A){return(A=~~Math.ceil(+A))<0?0:A}function U(A){return(Array.isArray||function(L){return Object.prototype.toString.call(L)==="[object Array]"})(A)}function G(A){return A<16?"0"+A.toString(16):A.toString(16)}function K(A){for(var L=[],z=0;z<A.length;z++){var Q=A.charCodeAt(z);if(Q<=127)L.push(A.charCodeAt(z));else for(var X=z,Z=(55296<=Q&&Q<=57343&&z++,encodeURIComponent(A.slice(X,z+1)).substr(1).split("%")),ae=0;ae<Z.length;ae++)L.push(parseInt(Z[ae],16))}return L}function oe(A){return m.toByteArray(A)}function ne(A,L,z,Q){for(var X=0;X<Q&&!(X+z>=L.length||X>=A.length);X++)L[X+z]=A[X];return X}function re(A){try{return decodeURIComponent(A)}catch(L){return"�"}}function ie(A,L){J(typeof A=="number","cannot write a non-number as a number"),J(0<=A,"specified a negative value for writing an unsigned value"),J(A<=L,"value is larger than maximum value for type"),J(Math.floor(A)===A,"value has a fractional component")}function ce(A,L,z){J(typeof A=="number","cannot write a non-number as a number"),J(A<=L,"value larger than maximum allowed value"),J(z<=A,"value smaller than minimum allowed value"),J(Math.floor(A)===A,"value has a fractional component")}function se(A,L,z){J(typeof A=="number","cannot write a non-number as a number"),J(A<=L,"value larger than maximum allowed value"),J(z<=A,"value smaller than minimum allowed value")}function J(A,L){if(!A)throw new Error(L||"Failed assertion")}v._augment=function(A){return A._isBuffer=!0,A._get=A.get,A._set=A.set,A.get=j.get,A.set=j.set,A.write=j.write,A.toString=j.toString,A.toLocaleString=j.toString,A.toJSON=j.toJSON,A.copy=j.copy,A.slice=j.slice,A.readUInt8=j.readUInt8,A.readUInt16LE=j.readUInt16LE,A.readUInt16BE=j.readUInt16BE,A.readUInt32LE=j.readUInt32LE,A.readUInt32BE=j.readUInt32BE,A.readInt8=j.readInt8,A.readInt16LE=j.readInt16LE,A.readInt16BE=j.readInt16BE,A.readInt32LE=j.readInt32LE,A.readInt32BE=j.readInt32BE,A.readFloatLE=j.readFloatLE,A.readFloatBE=j.readFloatBE,A.readDoubleLE=j.readDoubleLE,A.readDoubleBE=j.readDoubleBE,A.writeUInt8=j.writeUInt8,A.writeUInt16LE=j.writeUInt16LE,A.writeUInt16BE=j.writeUInt16BE,A.writeUInt32LE=j.writeUInt32LE,A.writeUInt32BE=j.writeUInt32BE,A.writeInt8=j.writeInt8,A.writeInt16LE=j.writeInt16LE,A.writeInt16BE=j.writeInt16BE,A.writeInt32LE=j.writeInt32LE,A.writeInt32BE=j.writeInt32BE,A.writeFloatLE=j.writeFloatLE,A.writeFloatBE=j.writeFloatBE,A.writeDoubleLE=j.writeDoubleLE,A.writeDoubleBE=j.writeDoubleBE,A.fill=j.fill,A.inspect=j.inspect,A.toArrayBuffer=j.toArrayBuffer,A}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:10,lYpoI2:11}],4:[function(n,r,o){(function(i,a,m,c,l,u,d,p,f){var m=n("buffer").Buffer,b=4,v=new m(b);v.fill(0),r.exports={hash:function(w,_,T,y){for(var k=_(function(D,R){D.length%b!=0&&(M=D.length+(b-D.length%b),D=m.concat([D,v],M));for(var M,F=[],N=R?D.readInt32BE:D.readInt32LE,I=0;I<D.length;I+=b)F.push(N.call(D,I));return F}(w=m.isBuffer(w)?w:new m(w),y),8*w.length),_=y,S=new m(T),x=_?S.writeInt32BE:S.writeInt32LE,C=0;C<k.length;C++)x.call(S,k[C],4*C,!0);return S}}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],5:[function(n,r,o){(function(i,a,m,c,l,u,d,p,f){var m=n("buffer").Buffer,b=n("./sha"),v=n("./sha256"),w=n("./rng"),_={sha1:b,sha256:v,md5:n("./md5")},T=64,y=new m(T);function k(D,R){var M=_[D=D||"sha1"],F=[];return M||S("algorithm:",D,"is not yet supported"),{update:function(N){return m.isBuffer(N)||(N=new m(N)),F.push(N),this},digest:function(N){var I=m.concat(F),I=R?function(j,$,Y){m.isBuffer($)||($=new m($)),m.isBuffer(Y)||(Y=new m(Y)),$.length>T?$=j($):$.length<T&&($=m.concat([$,y],T));for(var U=new m(T),G=new m(T),K=0;K<T;K++)U[K]=54^$[K],G[K]=92^$[K];return Y=j(m.concat([U,Y])),j(m.concat([G,Y]))}(M,R,I):M(I);return F=null,N?I.toString(N):I}}}function S(){var D=[].slice.call(arguments).join(" ");throw new Error([D,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join(`
393
+ `))}y.fill(0),o.createHash=function(D){return k(D)},o.createHmac=k,o.randomBytes=function(D,R){if(!R||!R.call)return new m(w(D));try{R.call(this,void 0,new m(w(D)))}catch(M){R(M)}};var x,C=["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],O=function(D){o[D]=function(){S("sorry,",D,"is not implemented yet")}};for(x in C)O(C[x])}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:11}],6:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){var m=n("./helpers");function b(S,x){S[x>>5]|=128<<x%32,S[14+(x+64>>>9<<4)]=x;for(var C=1732584193,O=-271733879,D=-1732584194,R=271733878,M=0;M<S.length;M+=16){var F=C,N=O,I=D,j=R,C=w(C,O,D,R,S[M+0],7,-680876936),R=w(R,C,O,D,S[M+1],12,-389564586),D=w(D,R,C,O,S[M+2],17,606105819),O=w(O,D,R,C,S[M+3],22,-1044525330);C=w(C,O,D,R,S[M+4],7,-176418897),R=w(R,C,O,D,S[M+5],12,1200080426),D=w(D,R,C,O,S[M+6],17,-1473231341),O=w(O,D,R,C,S[M+7],22,-45705983),C=w(C,O,D,R,S[M+8],7,1770035416),R=w(R,C,O,D,S[M+9],12,-1958414417),D=w(D,R,C,O,S[M+10],17,-42063),O=w(O,D,R,C,S[M+11],22,-1990404162),C=w(C,O,D,R,S[M+12],7,1804603682),R=w(R,C,O,D,S[M+13],12,-40341101),D=w(D,R,C,O,S[M+14],17,-1502002290),C=_(C,O=w(O,D,R,C,S[M+15],22,1236535329),D,R,S[M+1],5,-165796510),R=_(R,C,O,D,S[M+6],9,-1069501632),D=_(D,R,C,O,S[M+11],14,643717713),O=_(O,D,R,C,S[M+0],20,-373897302),C=_(C,O,D,R,S[M+5],5,-701558691),R=_(R,C,O,D,S[M+10],9,38016083),D=_(D,R,C,O,S[M+15],14,-660478335),O=_(O,D,R,C,S[M+4],20,-405537848),C=_(C,O,D,R,S[M+9],5,568446438),R=_(R,C,O,D,S[M+14],9,-1019803690),D=_(D,R,C,O,S[M+3],14,-187363961),O=_(O,D,R,C,S[M+8],20,1163531501),C=_(C,O,D,R,S[M+13],5,-1444681467),R=_(R,C,O,D,S[M+2],9,-51403784),D=_(D,R,C,O,S[M+7],14,1735328473),C=T(C,O=_(O,D,R,C,S[M+12],20,-1926607734),D,R,S[M+5],4,-378558),R=T(R,C,O,D,S[M+8],11,-2022574463),D=T(D,R,C,O,S[M+11],16,1839030562),O=T(O,D,R,C,S[M+14],23,-35309556),C=T(C,O,D,R,S[M+1],4,-1530992060),R=T(R,C,O,D,S[M+4],11,1272893353),D=T(D,R,C,O,S[M+7],16,-155497632),O=T(O,D,R,C,S[M+10],23,-1094730640),C=T(C,O,D,R,S[M+13],4,681279174),R=T(R,C,O,D,S[M+0],11,-358537222),D=T(D,R,C,O,S[M+3],16,-722521979),O=T(O,D,R,C,S[M+6],23,76029189),C=T(C,O,D,R,S[M+9],4,-640364487),R=T(R,C,O,D,S[M+12],11,-421815835),D=T(D,R,C,O,S[M+15],16,530742520),C=y(C,O=T(O,D,R,C,S[M+2],23,-995338651),D,R,S[M+0],6,-198630844),R=y(R,C,O,D,S[M+7],10,1126891415),D=y(D,R,C,O,S[M+14],15,-1416354905),O=y(O,D,R,C,S[M+5],21,-57434055),C=y(C,O,D,R,S[M+12],6,1700485571),R=y(R,C,O,D,S[M+3],10,-1894986606),D=y(D,R,C,O,S[M+10],15,-1051523),O=y(O,D,R,C,S[M+1],21,-2054922799),C=y(C,O,D,R,S[M+8],6,1873313359),R=y(R,C,O,D,S[M+15],10,-30611744),D=y(D,R,C,O,S[M+6],15,-1560198380),O=y(O,D,R,C,S[M+13],21,1309151649),C=y(C,O,D,R,S[M+4],6,-145523070),R=y(R,C,O,D,S[M+11],10,-1120210379),D=y(D,R,C,O,S[M+2],15,718787259),O=y(O,D,R,C,S[M+9],21,-343485551),C=k(C,F),O=k(O,N),D=k(D,I),R=k(R,j)}return Array(C,O,D,R)}function v(S,x,C,O,D,R){return k((x=k(k(x,S),k(O,R)))<<D|x>>>32-D,C)}function w(S,x,C,O,D,R,M){return v(x&C|~x&O,S,x,D,R,M)}function _(S,x,C,O,D,R,M){return v(x&O|C&~O,S,x,D,R,M)}function T(S,x,C,O,D,R,M){return v(x^C^O,S,x,D,R,M)}function y(S,x,C,O,D,R,M){return v(C^(x|~O),S,x,D,R,M)}function k(S,x){var C=(65535&S)+(65535&x);return(S>>16)+(x>>16)+(C>>16)<<16|65535&C}r.exports=function(S){return m.hash(S,b,16)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],7:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){r.exports=function(m){for(var b,v=new Array(m),w=0;w<m;w++)!(3&w)&&(b=4294967296*Math.random()),v[w]=b>>>((3&w)<<3)&255;return v}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:11}],8:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){var m=n("./helpers");function b(_,T){_[T>>5]|=128<<24-T%32,_[15+(T+64>>9<<4)]=T;for(var y,k,S,x=Array(80),C=1732584193,O=-271733879,D=-1732584194,R=271733878,M=-1009589776,F=0;F<_.length;F+=16){for(var N=C,I=O,j=D,$=R,Y=M,U=0;U<80;U++){x[U]=U<16?_[F+U]:w(x[U-3]^x[U-8]^x[U-14]^x[U-16],1);var G=v(v(w(C,5),(G=O,k=D,S=R,(y=U)<20?G&k|~G&S:!(y<40)&&y<60?G&k|G&S|k&S:G^k^S)),v(v(M,x[U]),(y=U)<20?1518500249:y<40?1859775393:y<60?-1894007588:-899497514)),M=R,R=D,D=w(O,30),O=C,C=G}C=v(C,N),O=v(O,I),D=v(D,j),R=v(R,$),M=v(M,Y)}return Array(C,O,D,R,M)}function v(_,T){var y=(65535&_)+(65535&T);return(_>>16)+(T>>16)+(y>>16)<<16|65535&y}function w(_,T){return _<<T|_>>>32-T}r.exports=function(_){return m.hash(_,b,20,!0)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],9:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){function m(T,y){var k=(65535&T)+(65535&y);return(T>>16)+(y>>16)+(k>>16)<<16|65535&k}function b(T,y){var k,S=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),x=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),C=new Array(64);T[y>>5]|=128<<24-y%32,T[15+(y+64>>9<<4)]=y;for(var O,D,R=0;R<T.length;R+=16){for(var M=x[0],F=x[1],N=x[2],I=x[3],j=x[4],$=x[5],Y=x[6],U=x[7],G=0;G<64;G++)C[G]=G<16?T[G+R]:m(m(m((D=C[G-2],w(D,17)^w(D,19)^_(D,10)),C[G-7]),(D=C[G-15],w(D,7)^w(D,18)^_(D,3))),C[G-16]),k=m(m(m(m(U,w(D=j,6)^w(D,11)^w(D,25)),j&$^~j&Y),S[G]),C[G]),O=m(w(O=M,2)^w(O,13)^w(O,22),M&F^M&N^F&N),U=Y,Y=$,$=j,j=m(I,k),I=N,N=F,F=M,M=m(k,O);x[0]=m(M,x[0]),x[1]=m(F,x[1]),x[2]=m(N,x[2]),x[3]=m(I,x[3]),x[4]=m(j,x[4]),x[5]=m($,x[5]),x[6]=m(Y,x[6]),x[7]=m(U,x[7])}return x}var v=n("./helpers"),w=function(T,y){return T>>>y|T<<32-y},_=function(T,y){return T>>>y};r.exports=function(T){return v.hash(T,b,32,!0)}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:11}],10:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){o.read=function(m,b,v,w,R){var T,y,k=8*R-w-1,S=(1<<k)-1,x=S>>1,C=-7,O=v?R-1:0,D=v?-1:1,R=m[b+O];for(O+=D,T=R&(1<<-C)-1,R>>=-C,C+=k;0<C;T=256*T+m[b+O],O+=D,C-=8);for(y=T&(1<<-C)-1,T>>=-C,C+=w;0<C;y=256*y+m[b+O],O+=D,C-=8);if(T===0)T=1-x;else{if(T===S)return y?NaN:1/0*(R?-1:1);y+=Math.pow(2,w),T-=x}return(R?-1:1)*y*Math.pow(2,T-w)},o.write=function(m,b,v,w,_,M){var y,k,S=8*M-_-1,x=(1<<S)-1,C=x>>1,O=_===23?Math.pow(2,-24)-Math.pow(2,-77):0,D=w?0:M-1,R=w?1:-1,M=b<0||b===0&&1/b<0?1:0;for(b=Math.abs(b),isNaN(b)||b===1/0?(k=isNaN(b)?1:0,y=x):(y=Math.floor(Math.log(b)/Math.LN2),b*(w=Math.pow(2,-y))<1&&(y--,w*=2),2<=(b+=1<=y+C?O/w:O*Math.pow(2,1-C))*w&&(y++,w/=2),x<=y+C?(k=0,y=x):1<=y+C?(k=(b*w-1)*Math.pow(2,_),y+=C):(k=b*Math.pow(2,C-1)*Math.pow(2,_),y=0));8<=_;m[v+D]=255&k,D+=R,k/=256,_-=8);for(y=y<<_|k,S+=_;0<S;m[v+D]=255&y,D+=R,y/=256,S-=8);m[v+D-R]|=128*M}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/ieee754/index.js","/node_modules/gulp-browserify/node_modules/ieee754")},{buffer:3,lYpoI2:11}],11:[function(n,r,o){(function(i,a,s,c,l,u,d,p,f){var m,b,v;function w(){}(i=r.exports={}).nextTick=(b=typeof window!="undefined"&&window.setImmediate,v=typeof window!="undefined"&&window.postMessage&&window.addEventListener,b?function(_){return window.setImmediate(_)}:v?(m=[],window.addEventListener("message",function(_){var T=_.source;T!==window&&T!==null||_.data!=="process-tick"||(_.stopPropagation(),0<m.length&&m.shift()())},!0),function(_){m.push(_),window.postMessage("process-tick","*")}):function(_){setTimeout(_,0)}),i.title="browser",i.browser=!0,i.env={},i.argv=[],i.on=w,i.addListener=w,i.once=w,i.off=w,i.removeListener=w,i.removeAllListeners=w,i.emit=w,i.binding=function(_){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(_){throw new Error("process.chdir is not supported")}}).call(this,n("lYpoI2"),typeof self!="undefined"?self:typeof window!="undefined"?window:{},n("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:11}]},{},[1])(1)})}(gq)),qv}mq();var Hg,Kk;function vq(){if(Kk)return Hg;Kk=1;function e(t,n){for(var r=-1,o=t==null?0:t.length;++r<o&&n(t[r],r,t)!==!1;);return t}return Hg=e,Hg}var $g,Xk;function rA(){if(Xk)return $g;Xk=1;var e=Ly(),t=Sb(),n=Object.prototype,r=n.hasOwnProperty;function o(i,a,s){var c=i[a];(!(r.call(i,a)&&t(c,s))||s===void 0&&!(a in i))&&e(i,a,s)}return $g=o,$g}var zg,eS;function Rd(){if(eS)return zg;eS=1;var e=rA(),t=Ly();function n(r,o,i,a){var s=!i;i||(i={});for(var c=-1,l=o.length;++c<l;){var u=o[c],d=a?a(i[u],r[u],u,i,r):void 0;d===void 0&&(d=r[u]),s?t(i,u,d):e(i,u,d)}return i}return zg=n,zg}var Wg,tS;function bq(){if(tS)return Wg;tS=1;var e=Rd(),t=Vs();function n(r,o){return r&&e(o,t(o),r)}return Wg=n,Wg}var Ug,nS;function yq(){if(nS)return Ug;nS=1;function e(t){var n=[];if(t!=null)for(var r in Object(t))n.push(r);return n}return Ug=e,Ug}var Yg,rS;function wq(){if(rS)return Yg;rS=1;var e=Io(),t=Pb(),n=yq(),r=Object.prototype,o=r.hasOwnProperty;function i(a){if(!e(a))return n(a);var s=t(a),c=[];for(var l in a)l=="constructor"&&(s||!o.call(a,l))||c.push(l);return c}return Yg=i,Yg}var qg,oS;function By(){if(oS)return qg;oS=1;var e=lE(),t=wq(),n=uE();function r(o){return n(o)?e(o,!0):t(o)}return qg=r,qg}var Vg,iS;function xq(){if(iS)return Vg;iS=1;var e=Rd(),t=By();function n(r,o){return r&&e(o,t(o),r)}return Vg=n,Vg}var su={},_q={get exports(){return su},set exports(e){su=e}},aS;function Cq(){return aS||(aS=1,function(e,t){var n=br(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;function c(l,u){if(u)return l.slice();var d=l.length,p=s?s(d):new l.constructor(d);return l.copy(p),p}e.exports=c}(_q,su)),su}var Gg,sS;function kq(){if(sS)return Gg;sS=1;function e(t,n){var r=-1,o=t.length;for(n||(n=Array(o));++r<o;)n[r]=t[r];return n}return Gg=e,Gg}var Qg,lS;function Sq(){if(lS)return Qg;lS=1;var e=Rd(),t=Db();function n(r,o){return e(r,t(r),o)}return Qg=n,Qg}var Jg,cS;function oA(){if(cS)return Jg;cS=1;var e=cE(),t=e(Object.getPrototypeOf,Object);return Jg=t,Jg}var Zg,uS;function iA(){if(uS)return Zg;uS=1;var e=nE(),t=oA(),n=Db(),r=oE(),o=Object.getOwnPropertySymbols,i=o?function(a){for(var s=[];a;)e(s,n(a)),a=t(a);return s}:r;return Zg=i,Zg}var Kg,dS;function Tq(){if(dS)return Kg;dS=1;var e=Rd(),t=iA();function n(r,o){return e(r,t(r),o)}return Kg=n,Kg}var Xg,pS;function Eq(){if(pS)return Xg;pS=1;var e=rE(),t=iA(),n=By();function r(o){return e(o,n,t)}return Xg=r,Xg}var em,hS;function Oq(){if(hS)return em;hS=1;var e=Object.prototype,t=e.hasOwnProperty;function n(r){var o=r.length,i=new r.constructor(o);return o&&typeof r[0]=="string"&&t.call(r,"index")&&(i.index=r.index,i.input=r.input),i}return em=n,em}var tm,fS;function Hy(){if(fS)return tm;fS=1;var e=tE();function t(n){var r=new n.constructor(n.byteLength);return new e(r).set(new e(n)),r}return tm=t,tm}var nm,gS;function Dq(){if(gS)return nm;gS=1;var e=Hy();function t(n,r){var o=r?e(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.byteLength)}return nm=t,nm}var rm,mS;function Rq(){if(mS)return rm;mS=1;var e=/\w*$/;function t(n){var r=new n.constructor(n.source,e.exec(n));return r.lastIndex=n.lastIndex,r}return rm=t,rm}var om,vS;function Aq(){if(vS)return om;vS=1;var e=Ys(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;function r(o){return n?Object(n.call(o)):{}}return om=r,om}var im,bS;function Mq(){if(bS)return im;bS=1;var e=Hy();function t(n,r){var o=r?e(n.buffer):n.buffer;return new n.constructor(o,n.byteOffset,n.length)}return im=t,im}var am,yS;function Nq(){if(yS)return am;yS=1;var e=Hy(),t=Dq(),n=Rq(),r=Aq(),o=Mq(),i="[object Boolean]",a="[object Date]",s="[object Map]",c="[object Number]",l="[object RegExp]",u="[object Set]",d="[object String]",p="[object Symbol]",f="[object ArrayBuffer]",m="[object DataView]",b="[object Float32Array]",v="[object Float64Array]",w="[object Int8Array]",_="[object Int16Array]",T="[object Int32Array]",y="[object Uint8Array]",k="[object Uint8ClampedArray]",S="[object Uint16Array]",x="[object Uint32Array]";function C(O,D,R){var M=O.constructor;switch(D){case f:return e(O);case i:case a:return new M(+O);case m:return t(O,R);case b:case v:case w:case _:case T:case y:case k:case S:case x:return o(O,R);case s:return new M;case c:case d:return new M(O);case l:return n(O);case u:return new M;case p:return r(O)}}return am=C,am}var sm,wS;function Pq(){if(wS)return sm;wS=1;var e=Io(),t=Object.create,n=function(){function r(){}return function(o){if(!e(o))return{};if(t)return t(o);r.prototype=o;var i=new r;return r.prototype=void 0,i}}();return sm=n,sm}var lm,xS;function Iq(){if(xS)return lm;xS=1;var e=Pq(),t=oA(),n=Pb();function r(o){return typeof o.constructor=="function"&&!n(o)?e(t(o)):{}}return lm=r,lm}var cm,_S;function jq(){if(_S)return cm;_S=1;var e=Lu(),t=ki(),n="[object Map]";function r(o){return t(o)&&e(o)==n}return cm=r,cm}var um,CS;function Lq(){if(CS)return um;CS=1;var e=jq(),t=Mb(),n=Nb(),r=n&&n.isMap,o=r?t(r):e;return um=o,um}var dm,kS;function Fq(){if(kS)return dm;kS=1;var e=Lu(),t=ki(),n="[object Set]";function r(o){return t(o)&&e(o)==n}return dm=r,dm}var pm,SS;function Bq(){if(SS)return pm;SS=1;var e=Fq(),t=Mb(),n=Nb(),r=n&&n.isSet,o=r?t(r):e;return pm=o,pm}var hm,TS;function Hq(){if(TS)return hm;TS=1;var e=Ob(),t=vq(),n=rA(),r=bq(),o=xq(),i=Cq(),a=kq(),s=Sq(),c=Tq(),l=dE(),u=Eq(),d=Lu(),p=Oq(),f=Nq(),m=Iq(),b=ro(),v=Rb(),w=Lq(),_=Io(),T=Bq(),y=Vs(),k=By(),S=1,x=2,C=4,O="[object Arguments]",D="[object Array]",R="[object Boolean]",M="[object Date]",F="[object Error]",N="[object Function]",I="[object GeneratorFunction]",j="[object Map]",$="[object Number]",Y="[object Object]",U="[object RegExp]",G="[object Set]",K="[object String]",oe="[object Symbol]",ne="[object WeakMap]",re="[object ArrayBuffer]",ie="[object DataView]",ce="[object Float32Array]",se="[object Float64Array]",J="[object Int8Array]",A="[object Int16Array]",L="[object Int32Array]",z="[object Uint8Array]",Q="[object Uint8ClampedArray]",X="[object Uint16Array]",Z="[object Uint32Array]",ae={};ae[O]=ae[D]=ae[re]=ae[ie]=ae[R]=ae[M]=ae[ce]=ae[se]=ae[J]=ae[A]=ae[L]=ae[j]=ae[$]=ae[Y]=ae[U]=ae[G]=ae[K]=ae[oe]=ae[z]=ae[Q]=ae[X]=ae[Z]=!0,ae[F]=ae[N]=ae[ne]=!1;function he(le,_e,ue,pe,me,ye){var we,Ie=_e&S,st=_e&x,Ve=_e&C;if(ue&&(we=me?ue(le,pe,me,ye):ue(le)),we!==void 0)return we;if(!_(le))return le;var Me=b(le);if(Me){if(we=p(le),!Ie)return a(le,we)}else{var be=d(le),je=be==N||be==I;if(v(le))return i(le,Ie);if(be==Y||be==O||je&&!me){if(we=st||je?{}:m(le),!Ie)return st?c(le,o(we,le)):s(le,r(we,le))}else{if(!ae[be])return me?le:{};we=f(le,be,Ie)}}ye||(ye=new e);var dt=ye.get(le);if(dt)return dt;ye.set(le,we),T(le)?le.forEach(function(ve){we.add(he(ve,_e,ue,ve,le,ye))}):w(le)&&le.forEach(function(ve,Se){we.set(Se,he(ve,_e,ue,Se,le,ye))});var Bt=Ve?st?u:l:st?k:y,wt=Me?void 0:Bt(le);return t(wt||le,function(ve,Se){wt&&(Se=ve,ve=le[Se]),n(we,Se,he(ve,_e,ue,Se,le,ye))}),we}return hm=he,hm}var fm,ES;function $q(){if(ES)return fm;ES=1;var e=Hq(),t=1,n=4;function r(o){return e(o,t|n)}return fm=r,fm}$q();var ic;(function(e){e.INCLUDE_ALL="INCLUDE_ALL",e.ADVANCED="ADVANCED",e.INVALID="INVALID",e.CONDITION="CONDITION",e.SPECIFIC_ITEMS="SPECIFIC_ITEMS"})(ic=ic||(ic={}));var ac;(function(e){e.PERIOD="PERIOD",e.DATE_RANGE="DATE_RANGE"})(ac=ac||(ac={}));var sc;(function(e){e.NUMERIC_RANGE="NUMERIC_RANGE"})(sc=sc||(sc={}));var gm;(function(e){e.YEARS="years",e.QUARTERS="quarters",e.MONTHS="months",e.WEEKS="weeks",e.DAYS="days",e.HOURS="hours",e.MINUTES="minutes"})(gm=gm||(gm={}));var mm;(function(e){e.DATE_TIME="datetime",e.NUMERIC="numeric",e.TEXT="text"})(mm=mm||(mm={}));Object.assign(Object.assign(Object.assign({},ic),ac),sc);var vm;(function(e){e.IS="members",e.IS_NOT="exclude",e.IS_WITHIN="isWithin",e.TOP="top",e.BOTTOM="bottom",e.AFTER="after",e.BEFORE="before",e.STARTS_WITH="startsWith",e.DOESNT_START_WITH="doesntStartWith",e.ENDS_WITH="endsWith",e.DOESNT_END_WITH="doesntEndWith",e.CONTAINS="contains",e.DOESNT_CONTAIN="doesntContain",e.EQUALS="equals",e.DOESNT_EQUAL="doesntEqual",e.IS_EMPTY="isEmpty",e.IS_NOT_EMPTY="isNotEmpty",e.GREATER_THAN="fromNotEqual",e.GREATER_THAN_OR_EQUAL="from",e.LESS_THAN="toNotEqual",e.LESS_THAN_OR_EQUAL="to",e.BETWEEN="between",e.IS_NOT_BETWEEN="isNotBetween",e.MULTIPLE_CONDITION="multipleCondition",e.NONE="none"})(vm=vm||(vm={}));const li=e=>{if(Array.isArray(e)){const[t,...n]=e;return n.length===0?li(t):{operator:"AND",left:li(t),right:li(n)}}return e};var bm;(function(e){e.and=(t,n)=>({operator:"AND",left:li(t),right:li(n)}),e.or=(t,n)=>({operator:"OR",left:li(t),right:li(n)})})(bm=bm||(bm={}));class zq{constructor(t){B(this,"dataLoadService"),B(this,"socket"),this.socket=t}destroy(){}prepareRequest(t){return Promise.resolve(t)}prepareLoadService(t,n=!1){return this.dataLoadService&&(n||this.dataLoadService.isFormattingChanges(t))?this.dataLoadService:new VR(this.socket)}prepareDataService(t){const n=new HE(t);return{loadData:(r,o,i)=>{if(!n)throw new Error('No DataService defined during "prepareDataService"');return n.loadData(r,{pageSize:o,isPaginated:i})}}}loadInitData(t,n=!0,r=100,o=!1){return JT(this,null,function*(){const i=n?r:void 0;try{const a=yield this.prepareRequest(t);this.dataLoadService=this.prepareLoadService(a,o);const{loadData:s}=this.prepareDataService(this.dataLoadService),{rowsTreeService:c,columnsTreeService:l,cornerTreeService:u,isLastPage:d}=yield s(o?void 0:a,i,n);return this.transformTreeStructuresToResultData({rowsTreeService:c,columnsTreeService:l,cornerTreeService:u,isLastPage:d})}catch(a){console.error('Error during loading initial page"',a)}return yk})}buildColumnsHelper(t,n,r,o){var i;const a=`${r}${r===""?"":" | "}${(i=o.value)==null?void 0:i.toString()}`;o.children?o.children.forEach(s=>{this.buildColumnsHelper(t,n,a,s)}):n.push({name:a,type:t})}transformGridToColumns(t,n){const r=[];return n==null||n[0].forEach(o=>{typeof o!="string"&&this.buildColumnsHelper(t,r,"",o)}),r||[]}transformTreeStructuresToResultData(t){const{rowsTreeService:n,columnsTreeService:r,cornerTreeService:o}=t;if(!n||!r||!o)return yk;let i=[];i=o.getGrid();let a=[];a=r.getGrid();let s=[];s=n.getGrid();const c=this.transformGridToColumns("string",i),l=this.transformGridToColumns("number",a),u=[...c,...l];let d=[];d=n.extractData(r);const p=d.length,f=u.length,m=[];let b=0,v=0;return Array.from(Array(p)).map((w,_)=>{const T=[];Array.from(Array(f)).map((y,k)=>{var S,x;let C;if(k<c.length){b=_,v=k;try{C=s[b][v]}catch(D){throw new Error(`Can't find data item for ${b}-${v}`)}}else{b=_,v=k-c.length;try{C=d[b][v]}catch(D){throw new Error(`Can't find data item for ${b}-${v}`)}}let O;if(typeof C=="string"){const D=C.split("-");if(D.length===2){const R=Number(D[0]),M=Number(D[1]);C=s[R][M],O=((S=C.value)==null?void 0:S.toString())||""}else O=""}else O=((x=C.value)==null?void 0:x.toString())||"";T.push({data:O,text:O})}),m.push(T)}),{table:{columns:u,rows:m},grids:{corner:i,rows:s,columns:a,values:d}}}}const Wq={errorPrefix:"[request-error]",errors:{networkError:"Network error. Probably you forgot to add your domain to 'CORS Allowed Origins' in Sisense Admin Panel -> Security Settings.",ssoNotEnabled:"SSO is not enabled on target instance, please choose another authentication method.",ssoNoLoginUrl:"Can not fetch login URL on target instance. Check SSO settings.",passwordAuthFailed:"$t(errorPrefix) Username and password authentication was not successful. Check credentials.",tokenAuthFailed:"$t(errorPrefix) Token authentication was not successful. Check credentials.",responseError_onlyStatus:"$t(errorPrefix) Status: {{status}}",responseError_withStatusText:"$t(errorPrefix) Status: {{status}} - {{statusText}}"}},Uq={errorPrefix:"[request-error]",errors:{networkError:"Помилка мережі. Можливо ви забули додати свій домен до «CORS Allowed Origins» в панелі адміністратора Sisense -> Security Settings.",ssoNotEnabled:"SSO не ввімкнено на цьому сервері, будь ласка, виберіть інший метод аутентифікації",ssoNoLoginUrl:"Неможливо отримати loginUrl з сервера. Перевірте налаштування SSO.",passwordAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою імені користувача та пароля. Перевірте дані для входу.",tokenAuthFailed:"$t(errorPrefix) Помилка автентифікації за допомогою токена. Перевірте дані для входу.",responseError_onlyStatus:"$t(errorPrefix) Статус: {{status}}",responseError_withStatusText:"$t(errorPrefix) Статус: {{status}} - {{statusText}}"}},Yq="sdkRestClient",qq={en:Wq,uk:Uq};function Vq(){return KR({resource:qq,language:"en",namespace:Yq})}Vq();function Gq(e){return e.type==="sso"}function Qq(e){return e.type==="bearer"}function Jq(e){return e.type==="wat"}var tn=typeof globalThis!="undefined"&&globalThis||typeof self!="undefined"&&self||typeof global!="undefined"&&global||{},gn={searchParams:"URLSearchParams"in tn,iterable:"Symbol"in tn&&"iterator"in Symbol,blob:"FileReader"in tn&&"Blob"in tn&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in tn,arrayBuffer:"ArrayBuffer"in tn};function Zq(e){return e&&DataView.prototype.isPrototypeOf(e)}if(gn.arrayBuffer)var Kq=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],Xq=ArrayBuffer.isView||function(e){return e&&Kq.indexOf(Object.prototype.toString.call(e))>-1};function Ma(e){if(typeof e!="string"&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||e==="")throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function $y(e){return typeof e!="string"&&(e=String(e)),e}function zy(e){var t={next:function(){var n=e.shift();return{done:n===void 0,value:n}}};return gn.iterable&&(t[Symbol.iterator]=function(){return t}),t}function Lt(e){this.map={},e instanceof Lt?e.forEach(function(t,n){this.append(n,t)},this):Array.isArray(e)?e.forEach(function(t){if(t.length!=2)throw new TypeError("Headers constructor: expected name/value pair to be length 2, found"+t.length);this.append(t[0],t[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}Lt.prototype.append=function(e,t){e=Ma(e),t=$y(t);var n=this.map[e];this.map[e]=n?n+", "+t:t};Lt.prototype.delete=function(e){delete this.map[Ma(e)]};Lt.prototype.get=function(e){return e=Ma(e),this.has(e)?this.map[e]:null};Lt.prototype.has=function(e){return this.map.hasOwnProperty(Ma(e))};Lt.prototype.set=function(e,t){this.map[Ma(e)]=$y(t)};Lt.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)};Lt.prototype.keys=function(){var e=[];return this.forEach(function(t,n){e.push(n)}),zy(e)};Lt.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),zy(e)};Lt.prototype.entries=function(){var e=[];return this.forEach(function(t,n){e.push([n,t])}),zy(e)};gn.iterable&&(Lt.prototype[Symbol.iterator]=Lt.prototype.entries);function ym(e){if(!e._noBody){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}}function aA(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function eV(e){var t=new FileReader,n=aA(t);return t.readAsArrayBuffer(e),n}function tV(e){var t=new FileReader,n=aA(t),r=/charset=([A-Za-z0-9_-]+)/.exec(e.type),o=r?r[1]:"utf-8";return t.readAsText(e,o),n}function nV(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}function OS(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function sA(){return this.bodyUsed=!1,this._initBody=function(e){this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?typeof e=="string"?this._bodyText=e:gn.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:gn.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:gn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():gn.arrayBuffer&&gn.blob&&Zq(e)?(this._bodyArrayBuffer=OS(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):gn.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||Xq(e))?this._bodyArrayBuffer=OS(e):this._bodyText=e=Object.prototype.toString.call(e):(this._noBody=!0,this._bodyText=""),this.headers.get("content-type")||(typeof e=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):gn.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},gn.blob&&(this.blob=function(){var e=ym(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))}),this.arrayBuffer=function(){if(this._bodyArrayBuffer){var e=ym(this);return e||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}else{if(gn.blob)return this.blob().then(eV);throw new Error("could not read as ArrayBuffer")}},this.text=function(){var e=ym(this);if(e)return e;if(this._bodyBlob)return tV(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(nV(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},gn.formData&&(this.formData=function(){return this.text().then(iV)}),this.json=function(){return this.text().then(JSON.parse)},this}var rV=["CONNECT","DELETE","GET","HEAD","OPTIONS","PATCH","POST","PUT","TRACE"];function oV(e){var t=e.toUpperCase();return rV.indexOf(t)>-1?t:e}function No(e,t){if(!(this instanceof No))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof No){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new Lt(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,!n&&e._bodyInit!=null&&(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new Lt(t.headers)),this.method=oV(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal||function(){if("AbortController"in tn){var i=new AbortController;return i.signal}}(),this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),(this.method==="GET"||this.method==="HEAD")&&(t.cache==="no-store"||t.cache==="no-cache")){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+new Date().getTime());else{var o=/\?/;this.url+=(o.test(this.url)?"&":"?")+"_="+new Date().getTime()}}}No.prototype.clone=function(){return new No(this,{body:this._bodyInit})};function iV(e){var t=new FormData;return e.trim().split("&").forEach(function(n){if(n){var r=n.split("="),o=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(o),decodeURIComponent(i))}}),t}function aV(e){var t=new Lt,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(r){return r.indexOf(`
394
+ `)===0?r.substr(1,r.length):r}).forEach(function(r){var o=r.split(":"),i=o.shift().trim();if(i){var a=o.join(":").trim();try{t.append(i,a)}catch(s){console.warn("Response "+s.message)}}}),t}sA.call(No.prototype);function vr(e,t){if(!(this instanceof vr))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');if(t||(t={}),this.type="default",this.status=t.status===void 0?200:t.status,this.status<200||this.status>599)throw new RangeError("Failed to construct 'Response': The status provided (0) is outside the range [200, 599].");this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText===void 0?"":""+t.statusText,this.headers=new Lt(t.headers),this.url=t.url||"",this._initBody(e)}sA.call(vr.prototype);vr.prototype.clone=function(){return new vr(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Lt(this.headers),url:this.url})};vr.error=function(){var e=new vr(null,{status:200,statusText:""});return e.ok=!1,e.status=0,e.type="error",e};var sV=[301,302,303,307,308];vr.redirect=function(e,t){if(sV.indexOf(t)===-1)throw new RangeError("Invalid status code");return new vr(null,{status:t,headers:{location:e}})};var xo=tn.DOMException;try{new xo}catch(e){xo=function(t,n){this.message=t,this.name=n;var r=Error(t);this.stack=r.stack},xo.prototype=Object.create(Error.prototype),xo.prototype.constructor=xo}function Wy(e,t){return new Promise(function(n,r){var o=new No(e,t);if(o.signal&&o.signal.aborted)return r(new xo("Aborted","AbortError"));var i=new XMLHttpRequest;function a(){i.abort()}i.onload=function(){var l={statusText:i.statusText,headers:aV(i.getAllResponseHeaders()||"")};o.url.indexOf("file://")===0&&(i.status<200||i.status>599)?l.status=200:l.status=i.status,l.url="responseURL"in i?i.responseURL:l.headers.get("X-Request-URL");var u="response"in i?i.response:i.responseText;setTimeout(function(){n(new vr(u,l))},0)},i.onerror=function(){setTimeout(function(){r(new TypeError("Network request failed"))},0)},i.ontimeout=function(){setTimeout(function(){r(new TypeError("Network request timed out"))},0)},i.onabort=function(){setTimeout(function(){r(new xo("Aborted","AbortError"))},0)};function s(l){try{return l===""&&tn.location.href?tn.location.href:l}catch(u){return l}}if(i.open(o.method,s(o.url),!0),o.credentials==="include"?i.withCredentials=!0:o.credentials==="omit"&&(i.withCredentials=!1),"responseType"in i&&(gn.blob?i.responseType="blob":gn.arrayBuffer&&(i.responseType="arraybuffer")),t&&typeof t.headers=="object"&&!(t.headers instanceof Lt||tn.Headers&&t.headers instanceof tn.Headers)){var c=[];Object.getOwnPropertyNames(t.headers).forEach(function(l){c.push(Ma(l)),i.setRequestHeader(l,$y(t.headers[l]))}),o.headers.forEach(function(l,u){c.indexOf(u)===-1&&i.setRequestHeader(u,l)})}else o.headers.forEach(function(l,u){i.setRequestHeader(u,l)});o.signal&&(o.signal.addEventListener("abort",a),i.onreadystatechange=function(){i.readyState===4&&o.signal.removeEventListener("abort",a)}),i.send(typeof o._bodyInit=="undefined"?null:o._bodyInit)})}Wy.polyfill=!0;tn.fetch||(tn.fetch=Wy,tn.Headers=Lt,tn.Request=No,tn.Response=vr);const lV=Object.freeze(Object.defineProperty({__proto__:null,get DOMException(){return xo},Headers:Lt,Request:No,Response:vr,fetch:Wy},Symbol.toStringTag,{value:"Module"})),cV=zr(lV);var DS,RS;function uV(){return RS||(RS=1,DS=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={exports:{},id:r,loaded:!1};return e[r].call(o.exports,o,o.exports,n),o.loaded=!0,o.exports}return n.m=e,n.c=t,n.p="",n(0)}([function(e,t,n){var r=n(1),o=typeof importScripts=="function";e.exports=r(o?self:window)},function(e,t,n){function r(a){if(Array.isArray(a)){for(var s=0,c=Array(a.length);s<a.length;s++)c[s]=a[s];return c}else return Array.from(a)}var o=[];function i(a){for(var s=arguments.length,c=Array(s>1?s-1:0),l=1;l<s;l++)c[l-1]=arguments[l];var u=o.reduce(function(p,f){return[f].concat(p)},[]),d=Promise.resolve(c);return u.forEach(function(p){var f=p.request,m=p.requestError;(f||m)&&(d=d.then(function(b){return f.apply(void 0,r(b))},m))}),d=d.then(function(p){var f=new(Function.prototype.bind.apply(Request,[null].concat(r(p))));return a(f).then(function(m){return m.request=f,m}).catch(function(m){return m.request=f,Promise.reject(m)})}),u.forEach(function(p){var f=p.response,m=p.responseError;(f||m)&&(d=d.then(f,m))}),d}e.exports=function(a){if(!a.fetch)try{n(2)}catch(s){throw Error("No fetch available. Unable to register fetch-intercept")}return a.fetch=function(s){return function(){for(var c=arguments.length,l=Array(c),u=0;u<c;u++)l[u]=arguments[u];return i.apply(void 0,[s].concat(l))}}(a.fetch),{register:function(s){return o.push(s),function(){var c=o.indexOf(s);c>=0&&o.splice(c,1)}},clear:function(){o=[]}}}},function(e,t){e.exports=cV}])),DS}uV();class dV{constructor(){B(this,"events"),B(this,"ready",!0),B(this,"onMessageCallback"),this.events=new Us,this.ready=!0}isReady(){return this.ready}on(t,n){this.events.on(t,n)}off(t,n){this.events.removeListener(t,n)}send(t,...n){const r=t||n;this.ready=!!r||!0}onMessage(t,n,r){this.onMessageCallback=r;const o=()=>{};return this.on("message",o),()=>{this.off("message",o)}}trigger(t,n){return new Promise(r=>{setTimeout(()=>{this.onMessageCallback&&this.onMessageCallback(t,n),r()},10)})}}const pV="pivot2";class hV{constructor(t,n=!1){B(this,"_socket"),B(this,"_httpClient"),B(this,"_mockSocket"),this._httpClient=t,this._mockSocket=n}getQueryOptionsSso(t){return{}}getQueryOptionsBearer(t){const n=t.bearer;if(!n)throw new Error("Missing bearer token");return{token:n}}getQueryOptionsWat(t){const n=new Headers;t.applyHeader(n);const r=n.get("Authorization"),o=n.get("Initialiser");if(!r||!o)throw new Error("Missing auth header");return{authorization:r,initialiser:o}}get socket(){if(!this._socket){if(this._mockSocket)return this._socket=new dV,this._socket;const t=this._httpClient.auth,n=this._httpClient.url;let r={};Qq(t)?r=this.getQueryOptionsBearer(t):Jq(t)?r=this.getQueryOptionsWat(t):Gq(t)&&(r=this.getQueryOptionsSso(t)),this._socket=new Py(n+pV,r)}return this._socket}}class lA{constructor(t,n=!1){B(this,"socketBuilder"),this.socketBuilder=new hV(t,n)}queryData(t,n,r,o){return JT(this,null,function*(){return new zq(this.socketBuilder.socket).loadInitData(t,n,r,o)})}prepareDataService(){const t=new VR(this.socketBuilder.socket);return new HE(t)}preparePivotBuilder(){const t=this.prepareDataService();return new _7(t)}}(function(){try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.multi-grid{position:relative;display:block;overflow:hidden}.table-grid{position:relative;direction:ltr;will-change:transform;-webkit-overflow-scrolling:touch;background:#fff;user-select:text;-webkit-touch-callout:text;overflow-x:hidden;overflow-y:hidden}.table-grid,.table-grid *{box-sizing:border-box}.table-grid--top.table-grid--left,.table-grid--top.table-grid--right,.table-grid--bottom.table-grid--left,.table-grid--bottom.table-grid--right{position:absolute}.table-grid--top.table-grid--left,.table-grid--top.table-grid--right,.table-grid--bottom.table-grid--left{overflow-x:hidden;overflow-y:hidden}.table-grid__table{position:relative;display:table;table-layout:fixed;border-spacing:0;border-collapse:collapse}.table-grid__tbody{border-style:inherit;border-color:inherit;border-width:inherit;display:table-row-group}.table-grid__colgroup{display:table-column-group}.table-grid__column{display:table-column}.table-grid__row{border-style:inherit;border-color:inherit;border-width:inherit;display:table-row}.table-grid__cell{position:static!important;display:table-cell;vertical-align:top;box-sizing:border-box;white-space:nowrap;font-size:0;line-height:0;max-width:100%;margin:0;padding:0;border:solid 0 black;border-color:inherit;border-top-color:transparent;border-left-color:transparent}.table-grid__cell--row-0{border-top-color:inherit}.table-grid__cell--col-0,.table-grid__cell--columns{border-left-color:inherit}.table-grid__cell--fixed-width{white-space:normal}.table-grid__cell--fixed-width .table-grid__content{text-overflow:ellipsis}.table-grid__cell--fixed-width .table-grid__content__inner{display:inline;margin-right:0}.table-grid__cell-corner{border-style:inherit;border-color:inherit;border-width:inherit;position:relative;top:0;left:0;border-width:0}.table-grid__content{display:inline-block;font-size:15px;line-height:16px;position:relative;z-index:1}.table-grid__content__wrapper{display:inline;position:relative;z-index:1}.table-grid__content__inner{display:inline;position:relative;margin-right:1px;z-index:1}.table-grid__cell-corner{position:relative}.table-grid__cell-anchor{border-width:0;line-height:0;font-size:0;margin:0;padding:0}.table-grid__cell-anchor-content{width:0;height:0;line-height:0;font-size:0;overflow:hidden}.table-grid__cell--sorted .table-grid__content__inner{margin-right:16px}.table-grid__cell--sorted.table-grid__cell--fixed-width .table-grid__content__inner{margin-right:15px}.table-grid__cell--sorted .table-grid__icon--sorted,.table-grid__cell--sorted .table-grid__sorting-settings-icon{z-index:2;top:4px;right:3px;outline:none;display:inline-block;position:absolute;width:16px;height:12px}.table-grid__cell--sorted .table-grid__icon--sorted:after,.table-grid__cell--sorted .table-grid__sorting-settings-icon:after{display:inline-block;position:absolute;left:20%;top:25%;font-size:15px}.table-grid__cell--sorted .table-grid__icon--sorted:hover,.table-grid__cell--sorted .table-grid__sorting-settings-icon:hover{cursor:pointer}.table-grid--data{left:0!important;overflow-x:visible!important;overflow-y:visible!important}.multi-grid--no-fixed-left .table-grid--fixed.table-grid--rows,.multi-grid--no-fixed-left .table-grid--fixed.table-grid--corner,.multi-grid--no-rows .table-grid--fixed.table-grid--rows,.multi-grid--no-columns .table-grid--fixed.table-grid--columns,.multi-grid--no-corner .table-grid--fixed.table-grid--corner{opacity:0;visibility:hidden}.table-grid--fixed{position:absolute;display:block;opacity:0;transition:opacity 0s ease;background:#fff;overflow:hidden;z-index:10}.table-grid--fixed.active{opacity:1}.table-grid--fixed.table-grid--rows{top:0;left:0;bottom:0}.table-grid--fixed.table-grid--columns{top:0;left:0;right:0}.table-grid--fixed.table-grid--corner{top:0;left:0}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root{background-color:initial;overflow:initial}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root .MuiTablePagination-select{background-color:initial}.sis-scope .sisense-pivot__pagination-panel .MuiTablePagination-root .MuiTablePagination-toolbar{min-height:0}.sis-scope .sisense-pivot__pagination-panel{display:block;transition:opacity .3s ease}.sis-scope .sisense-pivot__pagination-panel--hidden{display:none}.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-list-wrapper,.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-total-wrapper,.sis-scope .sisense-pivot__pagination-panel .sisense-pivot__pagination-panel-notification{visibility:hidden;opacity:0}.sis-scope .sisense-pivot__pagination-panel-wrapper{display:flex;justify-content:space-between;align-items:center}.sis-scope .sisense-pivot__pagination-panel-list-wrapper{flex:1}.sis-scope .sisense-pivot__pagination-panel-list{display:flex;align-items:center;margin:0;padding:0;list-style:none}.sis-scope .sisense-pivot__pagination-panel-notification{display:flex;align-items:center;overflow:hidden;white-space:nowrap;cursor:pointer}.sis-scope .sisense-pivot__pagination-panel-notification-more{outline:none;margin-left:5px;margin-right:5px}.sis-scope .sisense-pivot__pagination-panel-total-wrapper{display:flex;overflow:hidden;white-space:nowrap;justify-content:flex-end}.sis-scope .sisense-pivot__pagination-panel-rows-count{padding-left:10px;margin-right:10px;border-left:1px solid #d8d8d8;pointer-events:none;overflow:hidden;text-overflow:ellipsis}.sis-scope .sisense-pivot__pagination-panel--showed .sisense-pivot__pagination-panel-list-wrapper,.sis-scope .sisense-pivot__pagination-panel--showed .sisense-pivot__pagination-panel-total-wrapper,.sis-scope .sisense-pivot__pagination-panel--notification-only .sisense-pivot__pagination-panel-notification,.sis-scope .sisense-pivot__pagination-panel--limits-only .sisense-pivot__pagination-panel-total-wrapper{visibility:visible;opacity:1}.sis-scope .sisense-pivot__pagination-panel--limits-only .sisense-pivot__pagination-panel-rows-count{border-left:none}.sis-scope .pivot-scroller,.sis-scope .pivot-scroller__container{height:40px}.sisense-pivot__resize-control{position:absolute;top:0;right:0;width:4px;height:50px;margin-left:-4px;cursor:col-resize;z-index:4}.sisense-pivot__data-bar{position:absolute;top:8px;left:0;width:50%;height:10px;padding:0 8px;opacity:0}.sisense-pivot__data-bar--show{opacity:0;transition:opacity .3s ease}.sisense-pivot__data-bar--show-active{opacity:1}.sisense-pivot__data-bar-inner{position:relative;height:100%;overflow:hidden}.sisense-pivot__data-bar-bar{position:absolute;top:0;height:100%;min-width:8px;background:green}.sisense-pivot{position:relative;height:100%;-webkit-text-size-adjust:none}.sisense-pivot .table-grid__content{overflow:hidden;max-width:100%}.sisense-pivot>.scroll-elem__horizontal-track,.sisense-pivot>.scroll-elem__vertical-track{z-index:5;opacity:0;transition:opacity .3s ease}.sisense-pivot ::-webkit-scrollbar{display:none}.sisense-pivot .scroll-elem__horizontal-track,.sisense-pivot .scroll-elem__vertical-track{opacity:0;transition:opacity .3s ease}.sisense-pivot:hover .scroll-elem__horizontal-track,.sisense-pivot:hover .scroll-elem__vertical-track{opacity:1}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__border-bottom{display:block}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-last:not(.table-grid__cell--sibling-last):not(.table-grid__cell--merged-columns){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last:not(.table-grid__cell--merged-columns):not(.table-grid__cell--sibling-last){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last.table-grid__cell--user-type-grandTotal{border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--left .table-grid__cell--level-first.table-grid__cell--level-last.table-grid__cell--user-type-grandTotal .table-grid__cell-virtual-border{position:absolute;bottom:100%;left:0;display:block;width:2000px;height:1px;border-style:inherit;border-bottom-color:inherit;border-width:0}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__border-bottom{display:block}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-level-last:not(.table-grid__cell--row-sibling-last):not(.table-grid__cell--row-user-type-subTotal):not(.table-grid__cell--col-user-type-subTotal):not(.table-grid__cell--col-user-type-grandTotal){border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-user-type-grandTotal{border-bottom-color:transparent}.sisense-pivot--merged-last-level-rows .table-grid--bottom.table-grid--right .table-grid__cell--row-user-type-grandTotal .table-grid__cell-virtual-border{position:absolute;bottom:100%;left:0;display:block;width:2000px;height:1px;border-style:inherit;border-bottom-color:inherit;border-width:0}.sisense-pivot__multi-grid--resize-in-progress{cursor:col-resize}.sisense-pivot__overlay{position:absolute;inset:0;z-index:1000000}@media print{div#root{margin:0!important;padding:0!important}.print-preview div.print-layout{margin:0!important;padding:0!important;background:none}.print-preview.print-layout div.print-layout__page{margin:0!important;padding:0!important;box-shadow:none;page-break-inside:avoid;page-break-after:always}}.print-preview.print-layout.print-layout__with-footer .page-footer{visibility:visible}.print-preview.print-layout .print-layout__page{display:flex;flex-flow:column;padding:0}.print-preview.print-layout .page-footer{flex-shrink:0;display:flex;flex-flow:column;justify-content:center;visibility:hidden;height:16px;clear:both;box-sizing:border-box;padding-top:10px;text-align:center}.print-preview.print-layout .page-footer>span,.print-preview.print-layout .page-footer div{flex-shrink:0;font-size:10px}.print-preview [contenteditable]:empty:before{content:attr(placeholder);display:block}.print-preview .title::-ms-clear{display:none}.print-preview .page-header{overflow:initial;height:40px;flex-shrink:0}.print-preview .page-header.page-header__content--show .page-header__title-container,.print-preview .page-header.page-header__content--show .page-header__header-divider,.print-preview .page-header.page-header__content--show .page-header__title{display:block}.print-preview .page-header .page-header__content,.print-preview .page-header .page-header__title-container,.print-preview .page-header .page-header__header-divider,.print-preview .page-header .page-header__title{display:none}.print-preview .page-header .page-header__content{height:34px;display:flex;flex-flow:row wrap;position:relative;z-index:3}.print-preview .page-header .page-header__content .page-header__title{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;flex-grow:0;flex-shrink:0;order:1;background:rgba(0,0,0,0);border:none;outline:0;cursor:text;margin-right:10px;padding-left:5px;-webkit-user-select:text;user-select:text}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__rename-controls{display:block}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__editors{display:flex;align-items:center}.print-preview .page-header .page-header__content.page-header__title-container--focused .page-header__title{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;flex-grow:0;flex-shrink:0;order:1;background:rgba(0,0,0,0);border:none;outline:0;cursor:text;margin-right:10px;padding-left:5px;-webkit-user-select:text;user-select:text}.print-preview .page-header .page-header__content .page-header__title-container,.print-preview .page-header .page-header__content .page-header__rename-controls{float:left}.print-preview .page-header .page-header__content .page-header__title-container{text-overflow:ellipsis;overflow:hidden;word-wrap:normal;word-break:keep-all;white-space:nowrap;font-size:16px;height:26px;width:100%;display:flex;flex-flow:row;justify-content:flex-start}.print-preview .page-header .page-header__content .page-header__rename-controls{display:none;flex-basis:32px;flex-grow:0;flex-shrink:0;order:1}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action{float:left;cursor:pointer;vertical-align:middle;width:16px;height:16px}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--ok:after{content:"V";color:#adff2f}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--ok:hover:after{content:"V";color:green}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--cancel:after{content:"X";color:orchid}.print-preview .page-header .page-header__content .page-header__rename-controls .page-header__rename-controls__action--cancel:hover:after{content:"X";color:red}.print-preview .page-header .page-header__content .page-header__header-divider{margin-top:6px;bottom:5px;border:1px solid #e5e5e5;position:relative;width:100%}.print-preview .page-header .page-header__content .page-header__editors{padding-left:10px;padding-right:10px;display:none;position:relative;width:275px;height:34px;background-color:#fff;border:solid 1px #e5e5e5}.print-preview .page-header .page-header__content .page-header__editors .page-header__vertical-line{margin-left:10px;border-left:1px solid #e5e5e5;height:16px}.print-preview .page-header .page-header__content .page-header__editors div{background:none;border:none;margin-left:15px}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__left-text,.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__center-text,.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__end-text{width:17px;height:16px}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__left-text:after{content:"L"}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__center-text:after{content:"C"}.print-preview .page-header .page-header__content .page-header__editors .page-header__editors__end-text:after{content:"R"}.sis-scope .sorting-settings-header{flex-shrink:0;background-color:#f4f4f8;width:100%;height:42px;padding:10px 10px 10px 16px;border-top-left-radius:4px;border-top-right-radius:4px;display:flex;flex-direction:row;justify-content:space-between;font-size:15px}.sis-scope .header-text{display:flex;flex-flow:row nowrap;width:calc(100% - 24px)}.sis-scope .header-text__sort-by{font-weight:700;flex-shrink:0}.sis-scope .header-text__hierarchy-container{flex-grow:1;text-overflow:ellipsis;padding:0 .5em;display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:top}.sis-scope .cross-icon{position:relative;top:-2px;color:#5b6372;border-radius:50%;min-width:24px}.sis-scope .cross-icon:hover{cursor:pointer;background-color:#d1d1d7}.sis-scope .direction-selector{margin-top:.2em;margin-left:2.4em;font-weight:400;min-width:152px;width:152px}.sis-scope.direction-selector__menu{background-color:#fff!important}.sis-scope .settings-item+.settings-item{margin-top:.9em}.sis-scope .checkbox-input{display:flex;align-items:center;padding-right:8px}.sis-scope .checkbox-input .wrapper-of-input-highlighted{background-color:#5b63721a;border-radius:50%}.sis-scope .checkbox-input .subtotals-caption{margin-left:.2em}.sis-scope .checkbox-input .custom-checkbox{width:28px;height:28px}.sis-scope .checkbox-input .custom-checkbox__label{cursor:pointer}.sis-scope .checkbox-input .checkbox-input__text-wrapper{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.sis-scope .checkbox-input .checkbox-input__label{display:flex;align-items:center;height:28px;cursor:pointer;max-width:calc(100% - 28px)}.sis-scope .simple-sorting-settings{width:200px;box-shadow:0 0 5px #3a435633;border-radius:4px;display:flex;flex-direction:column;background-color:#fff}.sis-scope .simple-sorting-settings .header-text{width:100%}.sis-scope .simple-sorting-settings__actions{padding:10px 0;display:flex;flex-direction:column;align-items:flex-start}.sis-scope .simple-sorting-settings__actions>div{width:100%}.sis-scope .simple-sorting-settings__actions>div>div{width:100%;border-radius:0;padding:5px 16px;margin:0;height:auto;cursor:pointer}.sis-scope .simple-sorting-settings__actions>div>div:hover{background:rgba(91,99,114,.1)}.sis-scope .complex-sorting-settings{box-shadow:0 0 5px #3a435633;border-radius:4px;width:320px;height:100%;display:flex;justify-content:space-between;flex-direction:column;max-height:386px;background-color:#fff}.sis-scope .complex-sorting-settings__body{overflow:auto;flex-grow:1;padding:17px 17px 14px}.sis-scope .complex-sorting-settings__actions{flex-shrink:0;display:flex;align-items:center;justify-content:space-between;padding:8px 16px 14px}.sis-scope .complex-sorting-settings__actions .sp-buttons{margin:0 0 0 auto}.sis-scope .complex-sorting-settings__actions .sp-buttons button{min-width:74px}.sis-scope .complex-sorting-settings__actions .sp-buttons>button:first-child+button{margin-left:10px}.sis-scope .complex-sorting-settings .settings-checkboxes{margin-left:-3px;margin-top:15px}body .prism-widget-preview .sisense-pivot__pagination-panel-wrapper,div#idk .prism-widget-preview .sisense-pivot__pagination-panel-wrapper{padding-bottom:0}body .sisense-pivot__pagination-panel-list-wrapper,body .sisense-pivot__pagination-panel-rows-count,div#idk .sisense-pivot__pagination-panel-list-wrapper,div#idk .sisense-pivot__pagination-panel-rows-count{color:#acacac}body .sisense-pivot__pagination-panel-notification-more,div#idk .sisense-pivot__pagination-panel-notification-more{color:#1faff3}body .sisense-pivot__pagination-panel-notification-more:hover,div#idk .sisense-pivot__pagination-panel-notification-more:hover{cursor:pointer;text-decoration:underline}body .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel-page{margin:0}body .sisense-pivot__pagination-panel-page:hover,div#idk .sisense-pivot__pagination-panel-page:hover{text-decoration:none}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page{margin-right:6px}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:first-child,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:first-child{margin-left:6px}body .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:not(.sisense-pivot__pagination-panel-page--disabled):hover,div#idk .sisense-pivot__pagination-panel-list--number .sisense-pivot__pagination-panel-page:not(.sisense-pivot__pagination-panel-page--disabled):hover{color:#272a34;text-decoration:underline}body .sisense-pivot__pagination-panel-page--active,div#idk .sisense-pivot__pagination-panel-page--active{font-weight:400;color:#272a34}body .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled{opacity:.5}body .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{display:block;width:16px;height:16px;text-indent:20px;overflow:hidden;background-repeat:no-repeat}body .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABSUlEQVR42u2VsYrCQBCGc1pZiYVwYuBAbJLKPQvL7D1EHiRNQgJJwMrOUhBbGzux8Bm0tfVhblZWCMNOdptEjPkgxQfzj0ncXy3rE7B75U7z5TK+cZl3JNwg/Mvv4+nCVnh1YcuZ8XVxGLt+AeM7+MTrYDLvq9yELryovcv+LjKEvfYl/EC42ZIfZz4q8Zbm9f8BHJQznP8V5VpE60T7niHsr1jiLVWu5XvKhvD8N2fmbVVuFBbtEwXCXl1Y/gaeisPYtci+dyhveUuCIOiVeem/dJ7nmyzLjoQbhe9hGNoKry5sweC6OIzdZMEOrmsURX2Va/F9vwu3vIfrIkLY618Ct39QufGSJElGlLc0sv8P4LCc4bCsKNciWifa9wxhr39JmqZLlWuJ43gIz3+D0FblRmHRPlEg7NWF5dd2Kg5j1yL73qG8gfwDYL8rrp3YiQAAAAAASUVORK5CYII=);background-position:0 -32px}body .sisense-pivot__pagination-panel-page--first:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--first:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 0}body .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABSUlEQVR42u2VsYrCQBCGc1pZiYVwYuBAbJLKPQvL7D1EHiRNQgJJwMrOUhBbGzux8Bm0tfVhblZWCMNOdptEjPkgxQfzj0ncXy3rE7B75U7z5TK+cZl3JNwg/Mvv4+nCVnh1YcuZ8XVxGLt+AeM7+MTrYDLvq9yELryovcv+LjKEvfYl/EC42ZIfZz4q8Zbm9f8BHJQznP8V5VpE60T7niHsr1jiLVWu5XvKhvD8N2fmbVVuFBbtEwXCXl1Y/gaeisPYtci+dyhveUuCIOiVeem/dJ7nmyzLjoQbhe9hGNoKry5sweC6OIzdZMEOrmsURX2Va/F9vwu3vIfrIkLY618Ct39QufGSJElGlLc0sv8P4LCc4bCsKNciWifa9wxhr39JmqZLlWuJ43gIz3+D0FblRmHRPlEg7NWF5dd2Kg5j1yL73qG8gfwDYL8rrp3YiQAAAAAASUVORK5CYII=);background-position:0 -48px}body .sisense-pivot__pagination-panel-page--last:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--last:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 -16px}body .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABBklEQVR42mNgGAXEAC4tQ7u94up6iqRrFVTi1zS0P65p4DCBZL28kmoiGgaOJ9UNHTrIcTajpoH9ZTU920py/U2xARR7gfJApE40joKRDpiAqe+JjIalLtkmaBpYeYMMUdCyMCfbEHUtKydNI/vnSvrmNmQboqJrZgkyRFraTJj+BlDkBUoDkfJoHAWjABn4+Phw1dbW7i0pKSG9YklLS+Ovq6s7XlNTM4EczSJAm08CNZPXPgDafBmomfz2AaUGUOwFygORKtE4CkbbB8DE86S8vJz8iqWqqsobZEhFRQX57QOgZidgXngOdAn57YPKykpLkCHZ2dnC9DeAIi9QGoiUR+MIAgDRRntRFUnDLQAAAABJRU5ErkJggg==);background-position:0 -32px}body .sisense-pivot__pagination-panel-page--previous:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--previous:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 0}body .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAABACAYAAAATffeWAAABBklEQVR42mNgGAXEAC4tQ7u94up6iqRrFVTi1zS0P65p4DCBZL28kmoiGgaOJ9UNHTrIcTajpoH9ZTU920py/U2xARR7gfJApE40joKRDpiAqe+JjIalLtkmaBpYeYMMUdCyMCfbEHUtKydNI/vnSvrmNmQboqJrZgkyRFraTJj+BlDkBUoDkfJoHAWjABn4+Phw1dbW7i0pKSG9YklLS+Ovq6s7XlNTM4EczSJAm08CNZPXPgDafBmomfz2AaUGUOwFygORKtE4CkbbB8DE86S8vJz8iqWqqsobZEhFRQX57QOgZidgXngOdAn57YPKykpLkCHZ2dnC9DeAIi9QGoiUR+MIAgDRRntRFUnDLQAAAABJRU5ErkJggg==);background-position:0 -48px}body .sisense-pivot__pagination-panel-page--next:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel-page--next:not(.sisense-pivot__pagination-panel-page--disabled):hover .sisense-pivot__pagination-panel-button{background-position:0 -16px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-wrapper,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-wrapper{padding:8px 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:last-child .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:last-child .sisense-pivot__pagination-panel-page{margin-left:10px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:first-child .sisense-pivot__pagination-panel-page,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-list-wrapper:first-child .sisense-pivot__pagination-panel-page{margin-right:10px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous.sisense-pivot__pagination-panel-page--disabled,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next.sisense-pivot__pagination-panel-page--disabled{opacity:.2}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{text-indent:30px;width:24px;height:24px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDgwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDcwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YWZhZDgxMmYtNjU4Ni00OGUxLThkZWUtOGZlOTRhMGE4YjNjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgh/ZNoAAAVtSURBVHja3JhfiFVVFMbvPd0enIeIHiuKECEIBLFSiQaRHuahP1rhRE1/wGQCQYYxUBLKB8XswXww6SkHSSlJpQlkHsQiiJICQSiCoEjmQd9CFIdMbr91+O7mdLhn77XHex/swGIzc9dea5+9v7PWt792t9ttDfVJJXhk9Qsj2Dls3BsT33XYvMXuJBzbDIdtHdiXzuDLGL7A3rG/Own/97A12OM//3BiwRH8boavsKP4fxxNoC15G3sS50uO4HcwHMcuYlO9/3canB9l+ASbIPh559YfwB7AVjPnZmMCgt/LMIvtwfGUc9/fYngFW8Wcv6q/deqIUfCvsb1exDDsx54m+G/134s+iPkH24RzNwMx0/if7efTGSRiGhMMCjGxN7AV7MpAzEvYKHZ/FTH9nt4ZfIBtZWX3OBPYV/07tiPl2EvwPnbB9pMkRWoSq77K8CI2if+GZAIh5jXsYWyn5xWY84slwGZIsrTJr20Vr91uV7/gb7FnCXDG+R18xPCEIZA51+uVuqit6ieGbdgxJt7nPI9p7G/sYPINKqv6lOEhbC1Jbzje4kGG8/rgZhrfoPLY3tqHtM95Hn9aYcQOkWx58g20KjvwH7HXCXDSeR57GDZiK5lzJfYGtqpfGd60+qSa43ne1dd9WLWtVSRe/XOGI1bQmLDEsVX2Vb+smjaVTKDHUGXwW+88j8vapu3hDIb5FK1hP/YGxmHUmby8Z1xcaSQVu/cGu3WQyzKqabeKllSxs35w1DqUOlXqIBd06GvUCV1nMCUMH1fHSiWxzvecdcIYrSxqGN4obnPACUmrP68ah1IljqNInOYZ4zjiOp4kxp2sRMyKU8VhKm5j3Wp/BrL2ikvN1pFVNKzqrOq8C1nqiJvEqf6DrFixGwiyUl/yLSOrcFbHUXEhL7J2iWu5atEOcSDvDce41VZxreQVaoPa5ypxoVTwQud2QVwresMxrmMNfFIcyPPsFLda2WPnTazCutf32Hc4bnFuzVO6W4yK/kRZxUFxnWlncONQx6z79YI3sgqc39CNZYXoSCr4nQzfYH/gP1HvB/UrlHGaQ1YqPMH17BOHmozecAh+F8MJ7EOCn3ZuzfMMm7HHmHOtsZpW7mcXxW28N3qbs1kcKnrDmVINWZG6sVRQZpe/I/h/5rlCbde+X3bu+3pxpW0px9ufFyUTzM3NjWDnMLdehO86bD5Z7HDK1ouYszi9aGxsbMERPNz+8Y/rRdqS8vaP8yVHcL9ehHPQiwierRcxp1kvInjQi3A85dz3oBcxp1kvMsTk6kWGmJ5eRPBmvaiCmFIvwrmbgZhp/P160WIR05hgUIhJ6kUZiAl6URUxSb2IlQ1fLyJJsj6x6qAX4Z/Wi4SYLL2IOUEvIslSVz/QF1zqRQQ44/wOgl7EnOvRco1D0IuYODi9qM+qgl5E0huOtwh6Ef4znoaTpRcRNOhFJFvu6sk4Br2IACed5xH0IuZcibZMHIJepJqTpReptsV7MkmCXsSEJY6tGr5eRJL/mV5U6PTn1Zm8vGdcXGnE+wa7dZDZelEPLaliF2716lSpg7w1vUgdK5Uk3OpjtLKoYThLL1IHLPUiVeJWqpoGvUhcx5Mk6EXiVHGYituUelEGsoJeVEdW0bCqoBd5kKWOGPSiKrJixW4gyHLrRYtFVuGsjm69SMganl4kbuXTi8R5JkXLrzqC+/UicZ1SLxIHytKLeuy8iVUEvQjHLc6tCXqR6E8URVl6kThUqRdVg/d9A5yDXiQ6kgoe9CL8J2IXkJY4TakXeYJn6UUED3oRwU87tyboRcy5FmuZ2XqRalSpF4lD+fSi1I2lgrJSL8LfrxeJ09xeetG/AgwAl90b0K18FOcAAAAASUVORK5CYII=);background-position:0 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDgwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDcwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YWZhZDgxMmYtNjU4Ni00OGUxLThkZWUtOGZlOTRhMGE4YjNjIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pgh/ZNoAAAVtSURBVHja3JhfiFVVFMbvPd0enIeIHiuKECEIBLFSiQaRHuahP1rhRE1/wGQCQYYxUBLKB8XswXww6SkHSSlJpQlkHsQiiJICQSiCoEjmQd9CFIdMbr91+O7mdLhn77XHex/swGIzc9dea5+9v7PWt792t9ttDfVJJXhk9Qsj2Dls3BsT33XYvMXuJBzbDIdtHdiXzuDLGL7A3rG/Own/97A12OM//3BiwRH8boavsKP4fxxNoC15G3sS50uO4HcwHMcuYlO9/3canB9l+ASbIPh559YfwB7AVjPnZmMCgt/LMIvtwfGUc9/fYngFW8Wcv6q/deqIUfCvsb1exDDsx54m+G/134s+iPkH24RzNwMx0/if7efTGSRiGhMMCjGxN7AV7MpAzEvYKHZ/FTH9nt4ZfIBtZWX3OBPYV/07tiPl2EvwPnbB9pMkRWoSq77K8CI2if+GZAIh5jXsYWyn5xWY84slwGZIsrTJr20Vr91uV7/gb7FnCXDG+R18xPCEIZA51+uVuqit6ieGbdgxJt7nPI9p7G/sYPINKqv6lOEhbC1Jbzje4kGG8/rgZhrfoPLY3tqHtM95Hn9aYcQOkWx58g20KjvwH7HXCXDSeR57GDZiK5lzJfYGtqpfGd60+qSa43ne1dd9WLWtVSRe/XOGI1bQmLDEsVX2Vb+smjaVTKDHUGXwW+88j8vapu3hDIb5FK1hP/YGxmHUmby8Z1xcaSQVu/cGu3WQyzKqabeKllSxs35w1DqUOlXqIBd06GvUCV1nMCUMH1fHSiWxzvecdcIYrSxqGN4obnPACUmrP68ah1IljqNInOYZ4zjiOp4kxp2sRMyKU8VhKm5j3Wp/BrL2ikvN1pFVNKzqrOq8C1nqiJvEqf6DrFixGwiyUl/yLSOrcFbHUXEhL7J2iWu5atEOcSDvDce41VZxreQVaoPa5ypxoVTwQud2QVwresMxrmMNfFIcyPPsFLda2WPnTazCutf32Hc4bnFuzVO6W4yK/kRZxUFxnWlncONQx6z79YI3sgqc39CNZYXoSCr4nQzfYH/gP1HvB/UrlHGaQ1YqPMH17BOHmozecAh+F8MJ7EOCn3ZuzfMMm7HHmHOtsZpW7mcXxW28N3qbs1kcKnrDmVINWZG6sVRQZpe/I/h/5rlCbde+X3bu+3pxpW0px9ufFyUTzM3NjWDnMLdehO86bD5Z7HDK1ouYszi9aGxsbMERPNz+8Y/rRdqS8vaP8yVHcL9ehHPQiwierRcxp1kvInjQi3A85dz3oBcxp1kvMsTk6kWGmJ5eRPBmvaiCmFIvwrmbgZhp/P160WIR05hgUIhJ6kUZiAl6URUxSb2IlQ1fLyJJsj6x6qAX4Z/Wi4SYLL2IOUEvIslSVz/QF1zqRQQ44/wOgl7EnOvRco1D0IuYODi9qM+qgl5E0huOtwh6Ef4znoaTpRcRNOhFJFvu6sk4Br2IACed5xH0IuZcibZMHIJepJqTpReptsV7MkmCXsSEJY6tGr5eRJL/mV5U6PTn1Zm8vGdcXGnE+wa7dZDZelEPLaliF2716lSpg7w1vUgdK5Uk3OpjtLKoYThLL1IHLPUiVeJWqpoGvUhcx5Mk6EXiVHGYituUelEGsoJeVEdW0bCqoBd5kKWOGPSiKrJixW4gyHLrRYtFVuGsjm69SMganl4kbuXTi8R5JkXLrzqC+/UicZ1SLxIHytKLeuy8iVUEvQjHLc6tCXqR6E8URVl6kThUqRdVg/d9A5yDXiQ6kgoe9CL8J2IXkJY4TakXeYJn6UUED3oRwU87tyboRcy5FmuZ2XqRalSpF4lD+fSi1I2lgrJSL8LfrxeJ09xeetG/AgwAl90b0K18FOcAAAAASUVORK5CYII=);background-position:0 -24px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDQwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDMwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YTc4ODUzN2EtOTBiYi00YzkwLWE5MzYtZDE5YWIxMTNkMjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ps2i47QAAANcSURBVHja7Jg/aNNREMeNVEE3l6BjByc71D8lOjh0UAISsK2oVFoUpEOhZDLglCWLUAoFp44WnLRLl1CHDA4qBV10cqhCQQfHYpFW4+d+nI8g+fN++d1JAwaOt/zyvbt379193zfXbDYPef4O9/ogl8t1tJFLNwrYdiYHnX5nLk6dZFnDHnUNsNcWSaRtwI+wNLCtD6+fz3TD6DeDJewYNtfrw6E+tuYuy23sAtHvmjoAfIzlMVYC/LPJKWoBz2tRq4A3Yv8XVWTAJdMX2BfAp//+phtG7BYtYiewa2lrNhSxNTMsYueJ/ru5Ay3qA8A/ubQKPfNlMjnu5aCGfcOWXRywNT9Z7mATZHHTIwNxIh3zHraCk+E0DlI1O8BlmwrYZZzuxdyDtM2ugh3VuthnoFmcZnmLTZHFhnUGUo+PLPPYqg4d2wxaMnnCIg6K7189+2U+MjWLYa2L/Uxmq3ZYbmELmbbInba4OxDeI/ynGz/KmoHwnrWYI5llZK7qiRlvbRGWrWJOedCSVzcV/jMpfEh5kVs3HWdZ163aNO+myoeqWvS8SzfVTJ6ynMKu4HTfg/zeV5606HKTlR9dF76kvMml2QlPeqi8yeWFIzyp3OtuZGl2y8qXaqYPEI1e+NEENqq8yfSFIz1pRQqsfMn0Jsvj7yX2BvCyBy+qKS+qWNL3P9Ff1UF/juh/mHZTHTYyE+aVF9l1U8alBFHHvgI+2+6brG+0ik6zyX6OdIyDBX0X77jM5MHnRd1+9Xq9gPnoRQDb6EUdwINeVCwWXQaOn15E9EEvIvpd02MK+JhuTQnwhukpAjzoRbHg0RkAHvQiwKetW4WvXkT0QS8iej+9CHBfvYhMBlQvYmuCXkQWqfWi6IsGeEnn8lmcbrkMHJwEvQgnex7zwF4vapNF0IvIYsN8ogEa9CIdOj5DH/CgF/EbQL2IqP/rRaGY28J/PDNI9KKYI5llZAa9KLZFHCy9SPlPohcpL/Kh74AHvQinm+bHVPlQVYueN8+gJZOgF+F03+Oi+epFyo8SvUh5k0uz89WLlCcNqF6k/CjRi5Q3mQ596UnvpMCAr1vf5KAXAV72GDh+ehHRB72I6G31Ih02iV6kvMiumwIe9CLAZz1eOP9GL1IedPD0ot8CDAAbfrXxtNlPTAAAAABJRU5ErkJggg==);background-position:0 0}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAABgCAYAAAAHBrJUAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzkyMzY4MDQwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzkyMzY4MDMwOTk4MTFFNEJEQzdFMDcyRTdGQTFBOTIiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6YTc4ODUzN2EtOTBiYi00YzkwLWE5MzYtZDE5YWIxMTNkMjM3IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Ps2i47QAAANcSURBVHja7Jg/aNNREMeNVEE3l6BjByc71D8lOjh0UAISsK2oVFoUpEOhZDLglCWLUAoFp44WnLRLl1CHDA4qBV10cqhCQQfHYpFW4+d+nI8g+fN++d1JAwaOt/zyvbt379193zfXbDYPef4O9/ogl8t1tJFLNwrYdiYHnX5nLk6dZFnDHnUNsNcWSaRtwI+wNLCtD6+fz3TD6DeDJewYNtfrw6E+tuYuy23sAtHvmjoAfIzlMVYC/LPJKWoBz2tRq4A3Yv8XVWTAJdMX2BfAp//+phtG7BYtYiewa2lrNhSxNTMsYueJ/ru5Ay3qA8A/ubQKPfNlMjnu5aCGfcOWXRywNT9Z7mATZHHTIwNxIh3zHraCk+E0DlI1O8BlmwrYZZzuxdyDtM2ugh3VuthnoFmcZnmLTZHFhnUGUo+PLPPYqg4d2wxaMnnCIg6K7189+2U+MjWLYa2L/Uxmq3ZYbmELmbbInba4OxDeI/ynGz/KmoHwnrWYI5llZK7qiRlvbRGWrWJOedCSVzcV/jMpfEh5kVs3HWdZ163aNO+myoeqWvS8SzfVTJ6ynMKu4HTfg/zeV5606HKTlR9dF76kvMml2QlPeqi8yeWFIzyp3OtuZGl2y8qXaqYPEI1e+NEENqq8yfSFIz1pRQqsfMn0Jsvj7yX2BvCyBy+qKS+qWNL3P9Ff1UF/juh/mHZTHTYyE+aVF9l1U8alBFHHvgI+2+6brG+0ik6zyX6OdIyDBX0X77jM5MHnRd1+9Xq9gPnoRQDb6EUdwINeVCwWXQaOn15E9EEvIvpd02MK+JhuTQnwhukpAjzoRbHg0RkAHvQiwKetW4WvXkT0QS8iej+9CHBfvYhMBlQvYmuCXkQWqfWi6IsGeEnn8lmcbrkMHJwEvQgnex7zwF4vapNF0IvIYsN8ogEa9CIdOj5DH/CgF/EbQL2IqP/rRaGY28J/PDNI9KKYI5llZAa9KLZFHCy9SPlPohcpL/Kh74AHvQinm+bHVPlQVYueN8+gJZOgF+F03+Oi+epFyo8SvUh5k0uz89WLlCcNqF6k/CjRi5Q3mQ596UnvpMCAr1vf5KAXAV72GDh+ehHRB72I6G31Ih02iV6kvMiumwIe9CLAZz1eOP9GL1IedPD0ot8CDAAbfrXxtNlPTAAAAABJRU5ErkJggg==);background-position:0 -24px}@media only screen and (-webkit-min-device-pixel-ratio: 1.5),only screen and (min--moz-device-pixel-ratio: 1.5),only screen and (min-device-pixel-ratio: 1.5){body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button{background-size:24px 96px}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--first:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--last:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAADACAYAAABCkOCeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MzZGNjM3QzEwMkYyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MzZGNjM3QzAwMkYyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6NmUxOTlmYWUtMGRhNS00MTllLWJiZGQtMTVkNDlmNTkwMjE5IiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PhFMKHUAAAzuSURBVHja7FxrjFbFGZ79iinYUHrR6GIlWtpfrdrWSyFFS9JI9xcgS9tVCNeQaNKIpmo0GKBeoylGSbSJjUCNIOJy/SOptumFBlor9rImbbSxxYKtEqu2ZTeRsj4v5znHmbPf5Zwz7/u5S75J3pw9sDsz75mZ58y873OeruHhYTeWS9cp40BXV1dURV+Y1jsNl72wXS8d2L7EorNo4zO4/Ar274H9/V+RfxunVPEU6ThsEuzTRp0/HZc9sPNgH0n/vaZQ8cdw2Q07C/YabIVB52V6PA77MmwQNk/FAVb8BOxLsGOwOZg+/zQYgDtgvfx5Kdr4ndYI3A2by58XouIXDZ7+1bjcztvvo42n/P+vRVS8AJfbeLsKFe806PxluGzg7TZxIP87tQjEeYy3W2D3GiGOrK3xsBc4dYajYZSI81su2t/AZqLiIQPE2cdF+zrsErRxxP+drN9lHCDi7OOiFcS5THvREhie5qIVxLnCX7R5B2pjCXHqldpYQpzKDowWxKnkQJsQZ3IRxCm9mcshzvNcUBaI80vYxY0Qp15piUI5xDkMuxQVv26AOFth326GOM0cqBVAHKl4tnbnWdaw84UQp8wa8BFnESo+aDDvv0MHCiNOIQdyiLMaFfcbdP4SXDaWRZyWDuQQR+bmXUaIIweTCWURpykKfXH6/DzifB0VD44GxCm6iHew84e5TRg0WLTr2fkUGI7EVug7MIXXAZjFHkfK+bzK0/+zRoW+A4tkZGDfhN1q5MC1sP/CPgv7kaoDGM693qK9C/N1pnbv0cbLsmh524c2vqs5Ao5w9hz/fSsa6DZwQmD5Id4+wE2cjgOo/P+4LOBCPotOjDOYSjfD9sNOk8ML2viU1giIE2/gIm/J47I3gd1jMArvcQtxlOCxmduXeAfYwK9xuSV9Wqh8joET/8DlGtgJWI93kFHZC0l5kO8GKZvgxFQDJ57lEVLKWrTxDTUH+HoXxHgF9gnO1fEG6+FO2E/YlyfRxjlaIyBOvMsD9hBDHOsNRuEEgUOiHGfCnoITp6k4wAb+iMt1vF2ByhcbOHGUi1oW99dg95XezLWKC6HjsktdxpDKNDT6J4Od6vXeO6IXbeyodCJrUOSt+QeY7Ci3o7GJBiOxnkEtKRvRxudUwiqsfJDrQdbF570QiHZZDvsL7ON8UBO0AlvixF9xWcLb+aj8BoNR+I/Uzal6IexhlTWQm6s/wOV7XHRy8NlvsB5kd/zjdFTQxobYNeCXWxlyEbjbhsbOMBgJSSk9ytuH0cZF0VPIq/w490uyb5I4/hY0UDNYDythBxmxk/UwScUBOiHHwau5l7lSIhgGozDE9fA2bCqRqUvFATbwM6/jq1H5LAMnXsUlfXleBbtRzQEW2W4/IzjAqXSugRN7vLfzfWhjhpoD3PQthP3dJUnuHxq9H1bBfuGS5PxmzREQJ97iXuYd2JsWvedpsQ/2N7+Nrg5bpeNAx4EsuCtvvE/CLueBW70A/ja5JO/QgzYOxNRVby8k+5nzYHsYRbYoArOyHdjF/Ft08R0QDs4gz76PV43TtCgrePaVoNlu5uF0HGB+Ko1b9nrhDk0sl6j3HO71Jf/2ROyDyocWJU+VpntuZ+Zc24kX+eZ2XA93qznAIg5s488bYoOvDZzYya2BlNuYl9NxwAtovcB9+G5yd7SLZPy38OfHmJ+rDqN1Et2SjJN1ISF2GfYZcO6YMqzKA/o57Kuwf7mEvnOoDIy2ohpIOlSSchIZ2A77VkxGsYETZ7skuSjb8N/zQf2vynug3lwd9chUJLQ4qpGp6Hlg1CJTrWDl9ZBp8mhAprKkPx+ZxJkrjJBJgOPSZshUibVYB5lkWvUZIJM8IKE7nNMImSpH5nLIJOfgNQbrQTL5s7m5bIpMVSNzPjKtIfdH2wk5nyxqhUwxUQkfmTZyamk70e8FzuoiU0xo0UemCTwIWSCT0B+2NkKm6E9Q2oRMExjUypBpYH//IZXAFoO86YITLpBFJnOQ242UArFDNTLnEu5Pymo83+g8LXumAf48RdsB4f4IB0i4QNcaOSBJFeEyDXvopPIRkGQv+3i7lJwg7XDMTOdxmchtineAm7oHePuQEUWzmygkfX3O5SiaMd/QCMdHcrqSJ5Mk380GnR/HzqdkxAWMUsc5wNf6Zi6mkzQBcoC0iyRPhLN0MidHLpPKi0y4PcLxkfzYNRahSHKU0lG9hRym+K0EOT1reXsHOT/anZeE3ibeCuY/GHsiSyuW7e2T/Dvh+Nxp0PnxXFvCUXrFtaAml/kISBar7EKF0/MaF9QJg3kvb3KJz0qKtZecJacxApIlFC7Pe1y0Rw2evqRT049JryNXKf5IiYrnMS4kZSVpMdqdvwAXyRlIaH8D2lgeHRdixcLZSbn+Txt1fiIfkHReOEmFGb21AttYqVi4O8LhWW60zxEminCQ3uW8H1RxwCVcnQsZNZtPLo/20xfO0XzeLiEnqXBpFtwVflz6Ncdi0l+0Oz+dBxVBuHVo46aif9vqK6aL3AdMqUeNOn8Gz9TS+X2uIuW/3kdAkzjv5YUikYGVBp2vMQIneYc3uM85Hu0AN2mCOPIqf5vzfshg0Uqk4UpvL1X5U5T8CAgX5ypv3r9q8PRneaES+czrpzH11byKZziPk0OOjnbnz+XUkZF+xilQ+/0RkP39OKLCKiO8Fy6RJLuFW7RQI6bqf53xJudkX/7Uo1ikjXe4l3pLo8IOW6XjQMeBSAf27s1iTJm+kPuAIN6y9PT0lGkr0xfC3+npCzG8YqovhM7b6AuhmOsLofM2+kKsOFD7cDZfwgZqH5g+NvpCLiGFaD/9QO0DndfRF0LFgdoHbKdB5230hVCxudoHESdQ+8DTH452ABWniPNRl+gLyUF/2AhxhIpzMmeMzh+LDWxJxXnEmcsImiXiSOePVI1KNEUcVNxWxIkdgQBxUHHbEaeyA3nEQcUfCuJUcqBNiDO5COKU3swRcQJ9IVQ81GAzV7WMUPtotmgLj0AOcQ5z0WqHWNIwzsVFEKewAznESSs21xdqhThlRiDQF0LFBw06H+gLFUGcQg7kEGc1Ku436LyNvlAOcUz0hVBG6AsVRZymDuT2OII4y2IqboI40vnuVnucKiOwI4c45vpCsI6+0KmjL4QpE+gLYU3MNHAg0BdyJbKRRWE00BeCE90GTgT6QtzE6TiAURihL4QGzPWF0IaevhCcMNcXcqQrOE9fiNuXeAfoRKAvhMrnGDjRXn0hODHVwIlAXwht6OkL8S0c6AuhAXN9IbShpy8EJ8z1hdDGCH0hOKGnL4QGAn0hVL7YwInK+kK1gg1s8g7cj8CJCwycEK5QypW4EW3MU3OAJdAXQgMTDZwI9IXQhp6+EHenbdcXghN6+kJwItAXQuU3GIxCKX2hWoUGJKi1jrf3w6YbODHgAcdSPKhlag6wBPpCLvkeX9uJQF8ITujpC6HyEfpCTu9bBL8E+kJwQk9fiAEoU30hBtICfaH8pq8W2UCgLwSbZeBEe/WFXPJhs7YTgb4QRmGGpgNjX18IxVxfiKfFjr5Qx4GOA40cADRl+kJYMIU/6imZYpJzxVwe4g9wcaoFtjJ9IWbKLUqmL+S87yG1HAj0harGaVqUQF/IJVwjHQeYnzJV8XBJ1DtQ8Yh9UPnQYqDiwcy5dmmvvlBs8LVBCVQ8mJfTccALaGUqHuTuaJdAxYP5OZURcMxbSQpIMilnGyHTMA/wwjmSvNwu5uniHfAOLLONkWmI6yBDJjIE4h1oFzKRc1QZmYqEFs2Ridyj9ukLWSATwzWlkalobLQeMk0eDchUajfKTgcqHpy7MU8+38YIfSH8ziGVwFYOmSTjvpGHee1Qiq/i0RSZqoQWzfWFyE0K9IUaIVPVyFygL+SSKJ22E+3VF3IJB0jbiUBfqB4yxYQWR+gLuYQLpF0CfaE8MsWGFv09UzedOF15FORBSXj9+Xp7Jo3Alrm+ELNDHX2hZmXs6gu5JHuZ6Qu5hBOkWshdyrhM5DbFO8BNXaYv5BIukHbnbfSFyPEx1RciVynQF2KUOs4BvtYDfSGX0AS0S6AvRC6Tyoss0BdyCfdH++kH+kLkMMVvJcjpWctbOWI+a9B5G30hcnlM9YV4Hgj0hZoxiMt8BDRCX4hcH+0S6AuRs+Q0RiDQFyLHR/vpB/pC5CrFn4nJ3UnzszeR26PdeeEgPZIGDshRij/Uk7OT6QuR06PdeRt9IXJ12q4vVIY5X0pfiFwe7acf6AuRk+SiHSBHZ6m3oAYMnrxwje7nz+uqfGDX6CumQF+I3B3tYqMvRE6Oqb4Q2w30hchBinOAm7RAX8jg4zfncvpCZT9+azYCgb4QuTraJdAXQhs6+kLk4GScHHJ0tMuppS/kFD5lr6svlD/1KJZMX8glHKPo0mGrfNjlfQEGADUIi1Oja/93AAAAAElFTkSuQmCC)}body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,body .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--previous:hover .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next .sisense-pivot__pagination-panel-button,div#idk .sisense-pivot__pagination-panel--mobile .sisense-pivot__pagination-panel-page--next:hover .sisense-pivot__pagination-panel-button{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAADACAYAAABCkOCeAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA3NpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDIxIDc5LjE1NDkxMSwgMjAxMy8xMC8yOS0xMTo0NzoxNiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDo0YWZlODM2Ni1mMTA2LTQxYTctYjg1Yy05MDRiZWZkZDNjNTIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6NzJCNzMxMDgwMkIyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6NzJCNzMxMDcwMkIyMTFFNEEwOUZGODEwMEM5N0VBRkQiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6MDU0YTA2YzQtN2E3ZC00Y2E0LTk2MTUtNDA1MjIxYjFhZjNhIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOjRhZmU4MzY2LWYxMDYtNDFhNy1iODVjLTkwNGJlZmRkM2M1MiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqAMdO4AAAeHSURBVHja7FxtaJVlGH5mCyQ2M4JBIAVigqbYD6UW9CuRQ1CUm3pshaGVGfrL+TEYbAvcv1L8+JG4OdfcJjjQP3H+RD8q1iqjD4uIjEFEJKJBZYuwdd0913k979l+5Dnv855zzXPDzbNH3Nlzvc97n+e+7/d6r7rp6WmnbPOcuNWX+wF1dXUl/+5Dj7bcg+F9+I2L42dXSe0AFm9/e9h+hN+reAv1wDPwv+EbpADg6j+LoZPTnV9/NDZe8i1c7rfQrcYAFr8cwwS8Ad6PxW+zfy91HfNSvvJ3YzjHxX8Mf03maxSLt616G/4g/Bf4elz9v5TOgS74UwzaViz+J5mDDFf/aQIw243Ff5DUZwcPYix+KYZP4Y3wU1j8i7P9v6oMYiy+kUHbSBCvyuRCDNpB+DL4ZQbtlFIyZwfVM5bnwLNY/I8y2Siu/pNMFczasfj3Ql2lxIMYi1+C4RP4QvgQFv/C//mcqghiLL6BQWuL/wz+ikxBw6AdYHp8Fd6Cq/+nUkW2zxYN/we+EYuflCkpcfXXYTjA6V4s/t208pOyg3hFc+tiHlJWHo5g8c+V8jmVDOIxLv4r+MuKXYlFHCdw9f9QBPBSfkQstMgBwFU/j+EopycA4gG1HTDbA/+CB9gIQNRLAWCWmYVbDDTDX1fbAQPxLYZdnO7HLqyVOAdmSeZOY7Cz4Gf4wwB2WSaZo1nVdQl+n5WQzJEkcqH8rfQbhk3sPljrcLcUAIK4YHHAaS92YY0UANpB+DvwO+GjALFACgB2waJyC4PZEr631HbAQFzB0MYaIYtd2CYFgCCsoO/l9DBALJMCQOuGfwi/C34GIOZLAcAuWG9oM/wafCX8TbUdcGxsbeV0B3ZhvRQAgrCWyzFO+wDifikAtHb4l0ml3qkDYOptqcZ1+GPuZgtSZgeKU+8O7MITUgAIot9uIcvILWst9XPqXWVtO79Wb1SsoKm0ybNVagAqbWUH8YrmVusH3QF/HN8s10r9nEoW9cb1sYcaw+QAyd1CGwoK+B45AOT67OS0k1yg1CyxxhYW3sd0+Xf4IwD2jUoM5M24P8YB+u9JZaguRDAA5P5YkWJcIOMEDYXuyiV+DpAD1MqgNm5Ql9xBRi5Qvp3YRa5Q9QdxsWHhA843tqxXuhrAvqv2IC4261LniU7nyB3SyYVYOlpQ2/MBa2YNhgjq0K1Fa6VkWbAYd6hTLhtla7Gd0x5yiao/iGcJauOMPg//Fb4GwL6v9iAuNuMOGYdoIYO6QaqgIXfInuRfZfo9kERQp91anMSw0fnnBQZmn1xJSS7RXk4PkGtU/UE8S1Db2xv5lvvqi+Nnf1Ar6o1bZBwj4xqNyXUlyC2a4HSRHAByiyKukRQAcopOcHqUnCMNAHygMcIDzXpKe6S+Rp3nEhmnyGIgWy6jPe2XgIxDlOdQ7OKDDplkrgnD587TcIax+DaZZI45zyku/pJL8E2OtG4hK/Lzrx1uIqdIAwC5QnmuxH5yiTQqMnbnRp3nDBl36KBaSWkcIeMKGWdoCzlEGgDIDcoy928jd0ijrUJO0GFOe0O+BDQvwOKNC3TGeW6QcYS6Q96jIXbAuEArWahsJldIAwA5QDs43Rrq5bcgAMj96eP0GLlBTgJAUYpsXKD2tBLEpHbAnk4a9+c6U4UpGQDk+nQkmSKnvQOWZVq2OUIOUKqWBF/oCr8yt1eivq7xhWoAbncAZQdxLpcr59cjfaFMJrNKbQdq+kKVBBDTF8LtM64EwPSFBvlzPxZ/XOlbSFdfiPlSTF8IrqsvBNfRF4LF9IXgiekLpQHA9IWGClLvI0qphK6+EIM2pi8E19UXguvoC8Fi+kJwndYizPSFTvMWsuA9pFQP6OoL8YoPuAJ9IbiuvhB8UqmkjOkLwVPTF0oCgD1CGuVnWX/0DbWifu7oCznPf5ADUMj5aVEEENMXguvrC7kUXzJNCoC+vhAspi8EX6sGwOyk8922fC3QpAbAuSJ9IYKRAqCvLwSL6QvB9fWF4AvUAOjrCzn/BDPSF4Lr6QuxoI/0hdhmkQJg1u0K9IXg89UA6OsLOd/YivSFnO/USQFwbLlE+kJwfX2hXC5XrwZAX1+oKPXuwC7o6QvBavpCZjW+UA3A7Q4gCb5QpC/EXOeWLJPJVHwHIn2hSuxoTV8IFtMXcp4LJBfEx3mymllDa7nit1BMXyhUFyIkgBn6Qi5wVy7EOaCvL+Q8FyjSF3KeKyR3Eh8pSJHtVlqqmErE9IU4SgGYoS8UIqhDH/36+kLOtxYjfSHnuURy6fShgnPBuERLFOuBmL4QT2wpADP0hZII6rTz90mnri/kPJco0hdCRbdODYCZcYpG+PdHAWKxYlGvrS/kPK9CV1+IQaypL+Q8pyjSF8pkMueVAMwtfSFc/SklADF9IecfdMgcZE0FNYF18U4q5UJzS1/IeU6RDICYvpDzXCKZgmZu6Qs5zyGSARDTF3KeOyTTVonpCzmxl4Dmlr6QK+MhdiUAxPSFXKCX30IBiOkLsXXiVADMLX0hF+Clz5AAYvpCSaTIaQOI9IXczSeVqZZ35VpNX0itJk7U/hVgAMJfpGlj0zW2AAAAAElFTkSuQmCC)}}body .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add{opacity:0;transform:translateY(5px);transition:opacity .3s,transform .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.bottom.show-add-active{opacity:1;transform:translate(0)}body .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add{opacity:0;transform:translateY(-5px);transition:opacity .3s,transform .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.top.show-add-active{opacity:1;transform:translate(0)}body .narration-tooltip--pivot2-notification.narration-tooltip.show-remove,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.show-remove{visibility:visible;opacity:1;transition:opacity .3s}body .narration-tooltip--pivot2-notification.narration-tooltip.show-remove-active,div#idk .narration-tooltip--pivot2-notification.narration-tooltip.show-remove-active{opacity:0}body .narration-tooltip--pivot2-notification .narration-tooltip-host,div#idk .narration-tooltip--pivot2-notification .narration-tooltip-host{width:450px}body .narration-tooltip--pivot2-notification .narration-text,div#idk .narration-tooltip--pivot2-notification .narration-text{padding:7px 13px}body .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,body .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .new-widget-modal .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{display:none}body .pivot-container,div#idk .pivot-container{position:relative;height:100%;border-style:solid;border-width:8px;border-bottom-width:3px;z-index:1}body .sisense-pivot .table-grid--top.table-grid--left .table-grid__cell--level-first,body .sisense-pivot .table-grid--top.table-grid--right .table-grid__cell--level-first,body .sisense-pivot .table-grid--bottom.table-grid--left .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--top.table-grid--left .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--top.table-grid--right .table-grid__cell--level-first,div#idk .sisense-pivot .table-grid--bottom.table-grid--left .table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--corner.table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--columns.table-grid__cell--level-first,body .sisense-pivot .table-grid__cell--rows.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--corner.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--columns.table-grid__cell--level-first,div#idk .sisense-pivot .table-grid__cell--rows.table-grid__cell--level-first{font-weight:600}body .sisense-pivot .scroll-elem__horizontal-track,div#idk .sisense-pivot .scroll-elem__horizontal-track{margin-top:2px}body .sisense-pivot .scroll-elem__vertical-track,div#idk .sisense-pivot .scroll-elem__vertical-track{margin-left:2px;z-index:10000}body .sisense-pivot__multi-grid .table-grid,div#idk .sisense-pivot__multi-grid .table-grid{z-index:1}body .sisense-pivot__multi-grid .table-grid__cell,div#idk .sisense-pivot__multi-grid .table-grid__cell{text-align:left;transition:background-color ease .3s;font-weight:400}body .sisense-pivot__multi-grid .table-grid__cell.table-grid__cell--data,div#idk .sisense-pivot__multi-grid .table-grid__cell.table-grid__cell--data{text-align:right}body .sisense-pivot__multi-grid .table-grid__content,div#idk .sisense-pivot__multi-grid .table-grid__content{font-size:13px;line-height:normal;padding:3px 8px 4px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__content,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__content{padding-right:25px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{display:block}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after{display:block;top:0;left:0;background-repeat:no-repeat;background-position:center}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted{top:4px;right:7px;width:16px;height:16px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__icon--sorted:after{width:16px;height:16px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon{top:1px;right:1px;width:22px;height:22px}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:hover{background-color:#f2f2f2;border-radius:50%}body .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted .table-grid__sorting-settings-icon:after{width:20px;height:20px;top:1px;left:1px}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent .table-grid__sorting-settings-icon{background-color:#f2f2f2;border-radius:50%}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--asc .table-grid__sorting-settings-icon:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--default-sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDdINVY4SDE5VjdaIiBmaWxsPSIjNUI2MzcyIi8+CjxwYXRoIGQ9Ik0xNyAxMEg3VjExSDE3VjEwWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNOSAxM0gxNVYxNEg5VjEzWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNMTMgMTZIMTFWMTdIMTNWMTZaIiBmaWxsPSIjNUI2MzcyIi8+Cjwvc3ZnPgo=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAIVBMVEUAAABVVVVgYHVaY3NYYHBbYnFbZHJcZHJbY3JbY3L///8+n+SvAAAACXRSTlMAAxgfIEZrwN7K99ocAAAAAWJLR0QKaND0VgAAADFJREFUGNNjYKApmAkBhJSZO3DCVTF3tiAkNDIzFOAcUU5WAYRZnMgGoHNmYpehHgAAbUUKxkfTjB4AAAAASUVORK5CYII=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sort-icon-persistent.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAJFBMVEUAAABVVVVgYHVYYHBbYnFbY3FbZHJcZHJbY3JbY3JbY3L///8jVOI/AAAACnRSTlMAAxggRmprwN7fVBJwpAAAAAFiS0dECx/XxMAAAAAySURBVBjTY2CgKVgFAYSUcTEgqeJClUHlwFWJcLEIwCU0siIV4BzmrskMCBvNDWjiMQDhxAw5ye8LaQAAAABJRU5ErkJggg==)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc:hover .table-grid__sorting-settings-icon:after,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc:hover .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc:hover .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc:hover .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTE5IDdINVY4SDE5VjdaIiBmaWxsPSIjNUI2MzcyIi8+CjxwYXRoIGQ9Ik0xNyAxMEg3VjExSDE3VjEwWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNOSAxM0gxNVYxNEg5VjEzWiIgZmlsbD0iIzVCNjM3MiIvPgo8cGF0aCBkPSJNMTMgMTZIMTFWMTdIMTNWMTZaIiBmaWxsPSIjNUI2MzcyIi8+Cjwvc3ZnPgo=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAIVBMVEUAAABVVVVgYHVaY3NYYHBbYnFbZHJcZHJbY3JbY3L///8+n+SvAAAACXRSTlMAAxgfIEZrwN7K99ocAAAAAWJLR0QKaND0VgAAADFJREFUGNNjYKApmAkBhJSZO3DCVTF3tiAkNDIzFOAcUU5WAYRZnMgGoHNmYpehHgAAbUUKxkfTjB4AAAAASUVORK5CYII=)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc .table-grid__sorting-settings-icon:after{content:"";background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYBAMAAAASWSDLAAAAJFBMVEUAAABVVVVgYHVYYHBbYnFbY3FbZHJcZHJbY3JbY3JbY3L///8jVOI/AAAACnRSTlMAAxggRmprwN7fVBJwpAAAAAFiS0dECx/XxMAAAAAySURBVBjTY2CgKVgFAYSUcTEgqeJClUHlwFWJcLEIwCU0siIV4BzmrskMCBvNDWjiMQDhxAw5ye8LaQAAAABJRU5ErkJggg==)}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--default-sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon{display:none}body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,body .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--asc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__icon--sorted:hover,div#idk .sisense-pivot__multi-grid .table-grid__cell--sorted.table-grid__cell--sorted--desc.table-grid__cell--sorted-inactive .table-grid__sorting-settings-icon:hover{background-color:inherit;border-radius:inherit;pointer-events:none}body .sisense-pivot__multi-grid .table-grid__cell--user-type-measureTop,div#idk .sisense-pivot__multi-grid .table-grid__cell--user-type-measureTop{text-align:center}@supports (-ms-ime-align: auto){body .sisense-pivot__multi-grid .scroll-elem>div:first-child,div#idk .sisense-pivot__multi-grid .scroll-elem>div:first-child{overflow:auto!important}}body .sisense-pivot__multi-grid .sisense-pivot__data-bar,div#idk .sisense-pivot__multi-grid .sisense-pivot__data-bar{padding:0 8px}body .sisense-pivot__multi-grid .sisense-pivot__data-bar-bar,div#idk .sisense-pivot__multi-grid .sisense-pivot__data-bar-bar{background:#34cee6}body .sisense-css-module .pivot-container,div#idk .sisense-css-module .pivot-container{overflow:hidden}body .sisense-css-module .pivot-container ::-webkit-scrollbar,div#idk .sisense-css-module .pivot-container ::-webkit-scrollbar{width:initial;height:initial}body .print-layout .table-grid__cell--sorted .table-grid__cell-corner,div#idk .print-layout .table-grid__cell--sorted .table-grid__cell-corner{display:none}body .print-layout .sisense-pivot--sorting-by-subtotals .table-grid__cell--sorted .table-grid__cell-corner,div#idk .print-layout .sisense-pivot--sorting-by-subtotals .table-grid__cell--sorted .table-grid__cell-corner{display:block}body .print-layout .table-grid__cell--sorted .table-grid__content,div#idk .print-layout .table-grid__cell--sorted .table-grid__content{padding:2px 8px 3px}body .print-layout .table-grid__content__wrapper,div#idk .print-layout .table-grid__content__wrapper{overflow:hidden;width:100%;text-overflow:ellipsis;position:relative;display:block;min-width:8px}body .widget-to-image .scroll-elem__horizontal-track,body .widget-to-image .scroll-elem__vertical-track,div#idk .widget-to-image .scroll-elem__horizontal-track,div#idk .widget-to-image .scroll-elem__vertical-track{display:none}body .widget-to-image .table-grid__content__wrapper,div#idk .widget-to-image .table-grid__content__wrapper{text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical}.subtotals-menu__host{width:254px;height:346px;background-color:#fff;border-radius:4px;box-shadow:0 0 5px #3a435633}.subtotals-menu__host .menu-item-host .menu-content{width:100%;max-width:100%;min-width:100%;border:none;box-shadow:none}.subtotals-menu__host .menu-item-host .menu-content .menu-item{width:100%;max-width:100%;min-width:100%;margin:1px 0;height:auto;min-height:29px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-icon{margin-left:12px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-caption__auto{margin-left:16px}.subtotals-menu__host .menu-item-host .menu-content .menu-item .menu-item-container{flex-flow:row wrap}.subtotals-menu__host .menu-item-host .menu-content .menu-item .break{flex-basis:100%;width:0px;height:0px;overflow:hidden}.subtotals-menu__host .menu-item-host .menu-content .menu-item.mi-separator{min-height:1px;margin:6px 0}.subtotals-menu__host .menu-item-host .menu-content .menu-item .mi-checker{margin:0 15px 0 0}.subtotals-menu__host .subtotals-menu__item-distinct{display:flex;justify-content:space-between;margin:7px 15px 7px 21px}.subtotals-menu__header{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:42px;background-color:#f4f4f8;border-radius:4px 4px 0 0;font-size:13px;font-weight:600;padding:12px 13px 12px 16px;line-height:18px;margin-bottom:7px}.subtotals-menu__header-tooltip .info{margin-left:0}.subtotals-menu__header-tooltip .info:hover{background-color:#dee1e7;border-radius:50%}.subtotals-menu__actions{margin-top:6px;padding:16px;display:flex;justify-content:flex-end;border-top:1px solid #edeef1}.subtotals-menu__actions button.btn{margin-left:8px}.totals-tooltip-host{width:433px;height:200px}.totals-tooltip__container{font-size:13px;margin:4px 8px;line-height:19px}:export{loginDarkColor:#2c3342;darkBtnHoverColor:#f4f4f8;greyHoverColor:#dee1e7;defaultBackgroundColor:#fff}:where(.sis-scope) html,:where(.sis-scope) body,:where(.sis-scope) applet,:where(.sis-scope) object,:where(.sis-scope) iframe,:where(.sis-scope) h1,:where(.sis-scope) h2,:where(.sis-scope) h3,:where(.sis-scope) h4,:where(.sis-scope) h5,:where(.sis-scope) h6,:where(.sis-scope) p,:where(.sis-scope) blockquote,:where(.sis-scope) pre,:where(.sis-scope) a,:where(.sis-scope) abbr,:where(.sis-scope) acronym,:where(.sis-scope) address,:where(.sis-scope) big,:where(.sis-scope) cite,:where(.sis-scope) code,:where(.sis-scope) del,:where(.sis-scope) dfn,:where(.sis-scope) em,:where(.sis-scope) img,:where(.sis-scope) ins,:where(.sis-scope) kbd,:where(.sis-scope) q,:where(.sis-scope) s,:where(.sis-scope) samp,:where(.sis-scope) small,:where(.sis-scope) strike,:where(.sis-scope) strong,:where(.sis-scope) sub,:where(.sis-scope) sup,:where(.sis-scope) tt,:where(.sis-scope) var,:where(.sis-scope) b,:where(.sis-scope) u,:where(.sis-scope) i,:where(.sis-scope) center,:where(.sis-scope) dl,:where(.sis-scope) dt,:where(.sis-scope) dd,:where(.sis-scope) ol,:where(.sis-scope) ul,:where(.sis-scope) li,:where(.sis-scope) fieldset,:where(.sis-scope) form,:where(.sis-scope) label,:where(.sis-scope) legend,:where(.sis-scope) table,:where(.sis-scope) caption,:where(.sis-scope) article,:where(.sis-scope) aside,:where(.sis-scope) canvas,:where(.sis-scope) details,:where(.sis-scope) embed,:where(.sis-scope) figure,:where(.sis-scope) figcaption,:where(.sis-scope) footer,:where(.sis-scope) header,:where(.sis-scope) hgroup,:where(.sis-scope) menu,:where(.sis-scope) nav,:where(.sis-scope) output,:where(.sis-scope) ruby,:where(.sis-scope) section,:where(.sis-scope) summary,:where(.sis-scope) time,:where(.sis-scope) mark,:where(.sis-scope) audio,:where(.sis-scope) video{margin:0;padding:0;vertical-align:baseline;border:0;outline:none}:where(.sis-scope) article,:where(.sis-scope) aside,:where(.sis-scope) details,:where(.sis-scope) figcaption,:where(.sis-scope) figure,:where(.sis-scope) footer,:where(.sis-scope) header,:where(.sis-scope) hgroup,:where(.sis-scope) menu,:where(.sis-scope) nav,:where(.sis-scope) section{display:block}:where(.sis-scope) body{margin:0}:where(.sis-scope) ol,:where(.sis-scope) ul{list-style:none}:where(.sis-scope) blockquote,:where(.sis-scope) q{quotes:none}:where(.sis-scope) blockquote:before,:where(.sis-scope) blockquote:after{content:none}:where(.sis-scope) q:before,:where(.sis-scope) q:after{content:none}:where(.sis-scope) table{border-spacing:0;border-collapse:collapse}:where(.sis-scope) textarea,:where(.sis-scope) select{outline:none}.sis-scope{font-size:13px;line-height:normal;cursor:default;padding:0;margin:0;background:#fff;font-family:Open Sans;color:#5b6372}.sis-scope .btn{background-color:#ffcb05;color:#3a4356}.sis-scope *,.sis-scope *:before,.sis-scope *:after{box-sizing:border-box}.sis-scope ::-webkit-input-placeholder{opacity:1}.sis-scope ::-moz-placeholder{opacity:1}.sis-scope ::-ms-placeholder{opacity:1}.sis-scope ::placeholder{opacity:1}.sis-scope .app-icon{position:relative;display:inline-block;vertical-align:middle;width:24px;height:24px;box-sizing:content-box;text-align:left}.sis-scope .app-icon:after{content:"";position:absolute;top:0;left:0;display:block;width:100%;height:100%}.sis-scope .app-icon__svg{position:relative;display:block;width:100%;height:100%}.sis-scope .app-icon--build-failed .app-icon__svg,.sis-scope .app-icon--build-stopped .app-icon__svg,.sis-scope .app-icon--build-exlamation-mark-error-cancel .app-icon__svg,.sis-scope .app-icon--general-relationship-error .app-icon__svg,.sis-scope .app-icon--placeholder-mark-x .app-icon__svg{fill:#fa5656}.sis-scope .app-icon--placeholder-mark-info .app-icon__svg,.sis-scope .app-icon--build-vi-apply-aprrove .app-icon__svg,.sis-scope .app-icon--general-status-running .app-icon__svg{fill:#35d7be}.sis-scope .app-icon--general-x-sign .app-icon__svg,.sis-scope .app-icon--general-vi-sign .app-icon__svg{fill:transparent}.sis-scope .app-icon--general-status-pending,.sis-scope .app-icon--general-status-running{color:#d1d1d7}.sis-scope .app-icon--general-relationship-tool-tip{width:36px}.sis-scope .app-icon--header-pulse{width:28px}.sis-scope .app-icon--general-update,.sis-scope .app-icon--popup-interval-selected,.sis-scope .app-icon--popup-week-selected,.sis-scope .app-icon--popup-disable-selected{width:50px;height:50px}.sis-scope .app-icon--general-yellow-round-add{width:27px;height:27px}.sis-scope .app-icon--general-sampling-sample-big,.sis-scope .app-icon--general-sampling-top-big,.sis-scope .app-icon--general-sampling-bottom-big{width:35px;height:35px}.sis-scope .app-icon--general-drag-edit-relation,.sis-scope .app-icon--general-drag-new-relation,.sis-scope .app-icon--general-drag{width:36px;height:36px}.sis-scope .app-icon--popup-public-selected{width:49px;height:42px}.sis-scope .app-icon--header-git,.sis-scope .app-icon--general-git-add-branch,.sis-scope .app-icon--header-git .app-icon__svg,.sis-scope .app-icon--general-git-add-branch .app-icon__svg{fill:none}.sis-scope .app-icon--header-git,.sis-scope .app-icon--header-alarm,.sis-scope .app-icon--header-user,.sis-scope .app-icon--header-user-filled{width:30px;height:30px}.sis-scope .app-icon--general-git-add-branch{width:18px;height:18px}.sis-scope .app-icon--popup-lshare-selected,.sis-scope .app-icon--popup-lock-selected,.sis-scope .app-icon--hint-question-mark,.sis-scope .app-icon--hint-x{width:42px;height:42px}.sis-scope .app-icon--resource-guide,.sis-scope .app-icon--resource-help,.sis-scope .app-icon--resource-learn{width:26px;height:37px}.sis-scope .app-icon--schema-arrow-close-left,.sis-scope .app-icon--schema-arrow-close-right,.sis-scope .app-icon--schema-version-history,.sis-scope .app-icon--schema-compass{width:26px;height:26px}.sis-scope .app-icon--wizard-add-folder,.sis-scope .app-icon--wizard-connect,.sis-scope .app-icon--wizard-database,.sis-scope .app-icon--wizard-files,.sis-scope .app-icon--wizard-new-page,.sis-scope .app-icon--wizard-recent,.sis-scope .app-icon--wizard-recent-circle,.sis-scope .app-icon--wizard-rest,.sis-scope .app-icon--wizard-view,.sis-scope .app-icon--wizard-web,.sis-scope .app-icon--wizard-certified{width:35px;height:35px}.sis-scope .app-icon--nodes-delete,.sis-scope .app-icon--nodes-rename,.sis-scope .app-icon--nodes-edit,.sis-scope .app-icon--nodes-more,.sis-scope .app-icon--nodes-preview,.sis-scope .app-icon--nodes-ignored,.sis-scope .app-icon--nodes-accumulated,.sis-scope .app-icon--nodes-accumulated-2{width:37px;height:37px}.sis-scope .app-icon--placeholder-database,.sis-scope .app-icon--placeholder-database-x,.sis-scope .app-icon--placeholder-connection,.sis-scope .app-icon--placeholder-git-graph,.sis-scope .app-icon--placeholder-parameters,.sis-scope .app-icon--placeholder-search-x,.sis-scope .app-icon--placeholder-search,.sis-scope .app-icon--placeholder-table,.sis-scope .app-icon--placeholder-table-x,.sis-scope .app-icon--placeholder-table-init,.sis-scope .app-icon--placeholder-tools,.sis-scope .app-icon--placeholder-preview,.sis-scope .app-icon--placeholder-database-plus-black-white,.sis-scope .app-icon--placeholder-preview-inspect-black-white,.sis-scope .app-icon--placeholder-preview-plus-black-white,.sis-scope .app-icon--placeholder-generate-token,.sis-scope .app-icon--placeholder-key,.sis-scope .app-icon--placeholder-presentation{width:110px;height:110px}.sis-scope .app-icon--placeholder-filter{width:110px;height:130px}.sis-scope .app-icon--placeholder-sheet{width:89px;height:93px}.sis-scope .app-icon--placeholder-mark-info,.sis-scope .app-icon--placeholder-mark-exclamation,.sis-scope .app-icon--placeholder-mark-vi,.sis-scope .app-icon--placeholder-mark-x{width:66px;height:66px}.sis-scope .app-icon--placeholder-place-file,.sis-scope .app-icon--placeholder-place-text-add{width:120px;height:70px}.sis-scope .app-icon--illustration-build-succeeded,.sis-scope .app-icon--illustration-build-failed{width:225px;height:210px}.sis-scope .app-icon--homepages-video,.sis-scope .app-icon--homepages-tutorials,.sis-scope .app-icon--homepages-documentation,.sis-scope .app-icon--homepages-sample{width:65px;height:56px}.sis-scope .app-icon--homepages-play{width:61px;height:61px}.sis-scope .app-icon--widget-area-chart,.sis-scope .app-icon--widget-area-map,.sis-scope .app-icon--widget-bar-chart,.sis-scope .app-icon--widget-box-whisker-plot,.sis-scope .app-icon--widget-calendar-heatmap,.sis-scope .app-icon--widget-column-char,.sis-scope .app-icon--widget-indicator,.sis-scope .app-icon--widget-line-chart,.sis-scope .app-icon--widget-pie-chart,.sis-scope .app-icon--widget-pivot,.sis-scope .app-icon--widget-polar-chart,.sis-scope .app-icon--widget-scatter-chart,.sis-scope .app-icon--widget-scatter-map,.sis-scope .app-icon--widget-sunburst,.sis-scope .app-icon--widget-table,.sis-scope .app-icon--widget-treemap,.sis-scope .app-icon--widget-no-sort{width:26px;height:26px}.sis-scope .app-icon--buildpanel-replace-all,.sis-scope .app-icon--buildpanel-by-table,.sis-scope .app-icon--buildpanel-changes-only{width:64px;height:64px}.sis-scope .app-icon--ai-group-similar-big{width:88px;height:83px}.sis-scope :export{loginDarkColor:#2c3342;darkBtnHoverColor:#f4f4f8;greyHoverColor:#dee1e7;defaultBackgroundColor:#fff}.sis-scope .btn{opacity:1;font-family:inherit;font-style:normal;font-size:13px;line-height:24px;display:inline-block;box-sizing:border-box;margin:0;padding:0;cursor:pointer;transition:all .3s ease;vertical-align:middle;text-decoration:none;border:0;border-radius:4px;outline:none;white-space:nowrap;appearance:none}.sis-scope .btn .btn__icon{display:inline-block;padding-left:9px}.sis-scope .btn .btn__icon+.btn__text{vertical-align:middle;margin-left:-3px;padding-left:0;padding-right:13px;max-width:calc(100% - 24px)}.sis-scope .btn:hover{text-decoration:none;opacity:1}.sis-scope .btn:focus{outline:none}.sis-scope .btn::-moz-focus-inner{border:0}.sis-scope .btn.btn--disabled,.sis-scope .btn[disabled=disabled]{cursor:default;opacity:.4}.sis-scope .btn__text{position:relative;display:inline-block;vertical-align:top;padding:2px 20px;max-width:100%}.sis-scope .btn__icon{display:inline-block;padding:0}.sis-scope .btn--warning,.sis-scope .btn--warning:hover{opacity:1}.sis-scope .btn--warning.btn--disabled,.sis-scope .btn--warning[disabled=disabled]{opacity:.4}.sis-scope .btn--danger{background:#edeef1;opacity:1}.sis-scope .btn--danger:hover{color:#fff;background:#fa5656;opacity:1}.sis-scope .btn--danger.btn--disabled,.sis-scope .btn--danger[disabled=disabled]{color:#5b6372;background:#edeef1;opacity:.6}.sis-scope .btn--transp{color:#9ea2ab;background:none;opacity:1;line-height:1}.sis-scope .btn--transp:hover{background:none;opacity:1}.sis-scope .btn--transp.btn--disabled,.sis-scope .btn--transp[disabled=disabled]{background:none;opacity:.4}.sis-scope .btn--transp .btn__icon{padding-left:0}.sis-scope .btn--transp .btn__text,.sis-scope .btn--transp .btn__icon+.btn__text{padding-left:0;padding-right:0}.sis-scope .btn--gray,.sis-scope .btn--smart,.sis-scope .btn--gray:hover,.sis-scope .btn--smart:hover{opacity:1}.sis-scope .btn--gray.btn--disabled,.sis-scope .btn--gray[disabled=disabled],.sis-scope .btn--smart.btn--disabled,.sis-scope .btn--smart[disabled=disabled]{opacity:.6}.sis-scope .btn--white{background:#fff;opacity:1}.sis-scope .btn--white:hover{background:#f2b900;opacity:1}.sis-scope .btn--white.btn--disabled,.sis-scope .btn--white[disabled=disabled]{background:#fff;opacity:.6}.sis-scope .btn--icon .btn__text{display:none}.sis-scope .btn--icon .btn__icon{padding-left:5px;padding-right:5px}.sis-scope .btn--icon.btn--transp .btn__icon,.sis-scope .btn--icon.btn--dark .btn__icon{padding-left:0;padding-right:0}.sis-scope .btn--limited .btn__text{white-space:normal}.sis-scope .btns-holder{display:flex;align-items:center}.sis-scope .btns-holder>*{margin:0 5px}.sis-scope .btns-holder>*:first-child{margin-left:0}.sis-scope .btns-holder>*:last-child{margin-right:0}.sis-scope .btns-holder .btn--offset-ml{margin-left:15px}.sis-scope .btns-holder .btn:not(.btn--transp)+.btn--transp{margin-left:15px}.sis-scope .btns-holder .btn--transp+.btn:not(.btn--transp){margin-left:15px}.sis-scope .btn-icon-link{display:inline-block;vertical-align:middle;margin:0;padding:0;background:none;border:none;outline:none;font-family:inherit;font-size:inherit;font-weight:inherit;font-style:inherit;color:inherit;cursor:pointer}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn,.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--warning{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--danger{color:#fff;background:#fa5656;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--transp{background:none;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--smart{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.btn--white{background:#f2b900;opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn{opacity:1}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn.confirm-btn--apply{color:#fff;background:#35d7be;border-color:#35d7be}.sis-scope .btn-icon-link:hover .btn-icon-link__icon.confirm-btn.confirm-btn--cancel{color:#fff;background:#fa5656;border-color:#fa5656}.sis-scope .btn-icon-link.btn-icon-link--disabled,.sis-scope .btn-icon-link[disabled=disabled],.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon{cursor:default}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn,.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--warning,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--warning{opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--danger,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--danger{color:#5b6372;background:#edeef1;opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--transp,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--transp{background:none;opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--smart,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--gray,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--smart{opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.btn--white,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.btn--white{background:#fff;opacity:.6}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn{opacity:.4}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn.confirm-btn--apply,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn.confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .btn-icon-link.btn-icon-link--disabled .btn-icon-link__icon.confirm-btn.confirm-btn--cancel,.sis-scope .btn-icon-link[disabled=disabled] .btn-icon-link__icon.confirm-btn.confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .btn-icon-link__icon{width:28px;margin-right:5px;border-radius:50%}.sis-scope .btn-icon-link__icon .btn__icon{vertical-align:top;padding:1px 0}.sis-scope .btn-icon-link__icon .btn__icon.app-icon--general-plus{padding-left:2px}.sis-scope .btn-icon-link__text{display:inline-block;vertical-align:middle}.sis-scope .btn--more:hover .btn__text{margin-left:-9px}.sis-scope .btn--more:hover .btn__icon{width:10px}.sis-scope .btn--more.btn--danger:hover .btn__icon,.sis-scope .btn--more.btn--danger:hover .btn__icon:before{border-color:#fff}.sis-scope .btn--more.btn--more-open .btn__text{margin-left:-9px}.sis-scope .btn--more.btn--more-open .btn__icon{width:10px}.sis-scope .btn--more .btn__text{position:relative;margin-left:0;padding-right:5px;transition:margin-left .3s linear}.sis-scope .btn--more .btn__icon{position:relative;top:2px;width:1px;height:9px;margin:0 10px 0 0;padding:0;border:solid 1px #3a4356;border-width:1px 0 1px 0;transition:width .3s linear,border-color .3s}.sis-scope .btn--more .btn__icon:before{content:"";position:absolute;left:0;top:3px;width:100%;height:1px;border-bottom:solid 1px #3a4356;transition:border-color .3s}.sis-scope .confirm-btns{display:flex;font-size:0}.sis-scope .confirm-btns .confirm-btn{opacity:1;padding:0;width:17px;height:17px;margin:0 4px;font-size:0;line-height:15px;text-align:center;border:solid 1px transparent;border-radius:50%}.sis-scope .confirm-btns .confirm-btn.confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn.confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn:hover{opacity:1}.sis-scope .confirm-btns .confirm-btn:hover.confirm-btn--apply{color:#fff;background:#35d7be;border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn:hover.confirm-btn--cancel{color:#fff;background:#fa5656;border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn.btn--disabled,.sis-scope .confirm-btns .confirm-btn[disabled=disabled]{cursor:default;opacity:.4}.sis-scope .confirm-btns .confirm-btn.btn--disabled.confirm-btn--apply,.sis-scope .confirm-btns .confirm-btn[disabled=disabled].confirm-btn--apply{color:#35d7be;background:rgba(53,215,190,0);border-color:#35d7be}.sis-scope .confirm-btns .confirm-btn.btn--disabled.confirm-btn--cancel,.sis-scope .confirm-btns .confirm-btn[disabled=disabled].confirm-btn--cancel{color:#fa5656;background:rgba(250,86,86,0);border-color:#fa5656}.sis-scope .confirm-btns .confirm-btn .btn__icon{width:9px;height:9px;margin:3px;padding:0}.sis-scope .btn--dark{background:none;color:#5b6372;border-radius:4px;padding:0;transition:unset;line-height:1}.sis-scope .btn--dark .btn__text{padding:0}.sis-scope .btn--dark.btn--icon{display:flex;align-items:center;justify-content:center;height:28px;width:28px;padding:0;border-radius:50%}.sis-scope .btn--dark.btn--icon.btn--small{height:24px;width:24px}.sis-scope .btn--dark:hover{background-color:#f4f4f8;color:inherit}.sis-scope .btn--dark:hover.btn--on-grey{background-color:#dee1e7}.sis-scope .btn--dark:hover.btn--no-hover{background:none}.sis-scope .btn--dark.btn--disabled,.sis-scope .btn--dark[disabled=disabled]{cursor:default;background:none;opacity:.4}@keyframes _rcToolTipZoomIn_1947o_1{0%{opacity:0;transform-origin:50% 50%;transform:scale(0)}to{opacity:1;transform-origin:50% 50%;transform:scale(1)}}@keyframes _rcToolTipZoomOut_1947o_1{0%{opacity:1;transform-origin:50% 50%;transform:scale(1)}to{opacity:0;transform-origin:50% 50%;transform:scale(0)}}.rc-tooltip-inner{padding:6px 12px;min-height:0;border:0;border-radius:4px;pointer-events:none;color:red;font-size:14px}.rc-tooltip-arrow{border-width:0!important;width:8px;height:8px;background-color:#000;z-index:-1;transform:rotate(45deg)}.rc-tooltip-content:before{content:"";position:absolute;width:8px;height:8px;background-color:#000;transform:rotate(45deg)}._breakLongWord_1947o_272{word-break:break-all}._popover_wakdx_1 .rc-tooltip-inner{pointer-events:auto;overflow:hidden}._popoverMask_wakdx_6{position:absolute;width:100%;top:0;bottom:0}.rc-tooltip.rc-tooltip-zoom-appear,.rc-tooltip.rc-tooltip-zoom-enter{opacity:0}.rc-tooltip.rc-tooltip-zoom-enter,.rc-tooltip.rc-tooltip-zoom-leave{display:block}.rc-tooltip-zoom-enter,.rc-tooltip-zoom-appear{opacity:0;animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.18,.89,.32,1.28);animation-play-state:paused}.rc-tooltip-zoom-leave{animation-duration:.3s;animation-fill-mode:both;animation-timing-function:cubic-bezier(.6,-.3,.74,.05);animation-play-state:paused}.rc-tooltip-zoom-enter.rc-tooltip-zoom-enter-active,.rc-tooltip-zoom-appear.rc-tooltip-zoom-appear-active{animation-name:rcToolTipZoomIn;animation-play-state:running}.rc-tooltip-zoom-leave.rc-tooltip-zoom-leave-active{animation-name:rcToolTipZoomOut;animation-play-state:running}@keyframes _rcToolTipZoomIn_1dxah_1{0%{opacity:0;transform-origin:50% 50%;transform:scale(0)}to{opacity:1;transform-origin:50% 50%;transform:scale(1)}}@keyframes _rcToolTipZoomOut_1dxah_1{0%{opacity:1;transform-origin:50% 50%;transform:scale(1)}to{opacity:0;transform-origin:50% 50%;transform:scale(0)}}.rc-tooltip{position:absolute;z-index:1070;display:block;visibility:visible;line-height:1.5;font-size:12px;background-color:#0000000d;padding:1px;opacity:.9}.rc-tooltip-hidden{display:none}.rc-tooltip-inner{padding:8px 10px;color:#333;text-align:left;text-decoration:none;background-color:#fff;border-radius:3px;min-height:34px;border:1px solid #b1b1b1}.rc-tooltip-arrow,.rc-tooltip-arrow-inner{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-topLeft .rc-tooltip-arrow,.rc-tooltip-placement-topRight .rc-tooltip-arrow{transform:translate(-50%,5px);margin-left:-6px;border-width:6px 6px 0;border-top-color:#b1b1b1}.rc-tooltip-placement-top .rc-tooltip-arrow-inner,.rc-tooltip-placement-topLeft .rc-tooltip-arrow-inner,.rc-tooltip-placement-topRight .rc-tooltip-arrow-inner{bottom:1px;margin-left:-6px;border-width:6px 6px 0;border-top-color:#fff}.rc-tooltip-placement-top .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-topLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-topRight .rc-tooltip-arrow{right:15%}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-rightTop .rc-tooltip-arrow,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{left:-5px;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#b1b1b1;transform:translate(calc(-100% + 1px))}.rc-tooltip-placement-right .rc-tooltip-arrow-inner,.rc-tooltip-placement-rightTop .rc-tooltip-arrow-inner,.rc-tooltip-placement-rightBottom .rc-tooltip-arrow-inner{left:1px;margin-top:-6px;border-width:6px 6px 6px 0;border-right-color:#fff}.rc-tooltip-placement-right .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-rightTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-rightBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-leftTop .rc-tooltip-arrow,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{right:-5px;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#b1b1b1;transform:translate(calc(100% - 1px))}.rc-tooltip-placement-left .rc-tooltip-arrow-inner,.rc-tooltip-placement-leftTop .rc-tooltip-arrow-inner,.rc-tooltip-placement-leftBottom .rc-tooltip-arrow-inner{right:1px;margin-top:-6px;border-width:6px 0 6px 6px;border-left-color:#fff}.rc-tooltip-placement-left .rc-tooltip-arrow{top:50%}.rc-tooltip-placement-leftTop .rc-tooltip-arrow{top:15%;margin-top:0}.rc-tooltip-placement-leftBottom .rc-tooltip-arrow{bottom:15%}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{transform:translate(-50%,-5px);margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#b1b1b1}.rc-tooltip-placement-bottom .rc-tooltip-arrow-inner,.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow-inner,.rc-tooltip-placement-bottomRight .rc-tooltip-arrow-inner{top:1px;margin-left:-6px;border-width:0 6px 6px;border-bottom-color:#fff}.rc-tooltip-placement-bottom .rc-tooltip-arrow{left:50%}.rc-tooltip-placement-bottomLeft .rc-tooltip-arrow{left:15%}.rc-tooltip-placement-bottomRight .rc-tooltip-arrow{right:15%}.rc-tooltip{padding:0;background-color:transparent;opacity:1}.rc-tooltip.hide-arrow .rc-tooltip-arrow,.rc-tooltip.hide-arrow .rc-tooltip-content:before{display:none}.rc-tooltip.hide-arrow.rc-tooltip-placement-top,.rc-tooltip.hide-arrow.rc-tooltip-placement-bottom,.rc-tooltip.hide-arrow.rc-tooltip-placement-left,.rc-tooltip.hide-arrow.rc-tooltip-placement-right,.rc-tooltip.hide-arrow .rc-tooltip-inner{padding:0}.rc-tooltip-content{position:relative}.rc-tooltip-inner{padding:6px 12px;min-height:0;border:0;border-radius:4px;box-shadow:0 -1px 5px 1px #3a435633;pointer-events:none;color:#7f899c;font-size:13px}.rc-tooltip-arrow{border-width:0!important;width:8px;height:8px;background-color:#fff;box-shadow:0 -1px 5px 1px #3a435633;z-index:-1;transform:rotate(45deg)}.rc-tooltip-content:before{content:"";position:absolute;width:8px;height:8px;background-color:#fff;transform:rotate(45deg)}.rc-tooltip-placement-top{padding-bottom:6px}.rc-tooltip-placement-top .rc-tooltip-arrow,.rc-tooltip-placement-top .rc-tooltip-content:before{left:50%;margin-left:-4px;bottom:-4px}.rc-tooltip-placement-bottom{padding-top:6px}.rc-tooltip-placement-bottom .rc-tooltip-arrow,.rc-tooltip-placement-bottom .rc-tooltip-content:before{left:50%;margin-left:-4px;top:-4px}.rc-tooltip-placement-right{padding-left:6px}.rc-tooltip-placement-right .rc-tooltip-arrow,.rc-tooltip-placement-right .rc-tooltip-content:before{top:50%;margin-top:-4px;left:-4px}.rc-tooltip-placement-left{padding-right:6px}.rc-tooltip-placement-left .rc-tooltip-arrow,.rc-tooltip-placement-left .rc-tooltip-content:before{top:50%;margin-top:-4px;right:-4px}._breakLongWord_1dxah_307{word-break:break-all}._semanticText_1dxah_311{max-width:432px}.sis-scope._tooltip_1dxah_315{padding:12px 16px}._loader_1uppi_1{display:flex;align-content:center;justify-content:center;align-items:center}._loader_1uppi_1 ._caption_1uppi_7{margin-top:50%;word-break:break-word;text-align:center}._loader_1uppi_1 ._caption_1uppi_7 span{position:unset}._clickable_19yrx_1{cursor:pointer}._disabled_19yrx_5{pointer-events:none}._sharedComponentsInputRadioButton_195lt_1{width:28px;height:28px;padding:8px}._sharedComponentsInputRadioButton_195lt_1:hover{background-color:#5b63721a;border-radius:50%}.sis-scope .custom-radiobtn__text{padding-left:4px}._disabled_195lt_15{pointer-events:none}._disabled_195lt_15 .custom-radiobtn__text{color:#5b637266}.sis-scope .custom-checkbox__icon.app-icon._transparent_i81lr_1{background:transparent!important;color:transparent}.sis-scope .custom-checkbox__input:checked+.custom-checkbox__icon._transparent_i81lr_1{color:#3a4356}.sis-scope .custom-checkbox__text{padding-left:4px}._icon_i81lr_12{margin:0 -5px 0 0;cursor:pointer}._disabled_i81lr_17{pointer-events:none}._disabled_i81lr_17 .custom-checkbox__text{color:#5b637266}._disabled_i81lr_17 .app-icon{opacity:.4}._sharedComponentsInputCheckbox_i81lr_27{width:28px;height:28px;padding:8px}._sharedComponentsInputCheckbox_i81lr_27:hover{background-color:#5b63721a;border-radius:50%}._container_v8yrt_7{min-width:128px;position:absolute;cursor:pointer;padding:0;background:#fff;box-shadow:0 0 5px #3a435633;border-radius:4px}._container_v8yrt_7 li{list-style-type:none;line-height:22px;display:flex;justify-content:flex-start;align-items:center;padding:4px 5px;position:relative;transition:background-color .3s eaSe;cursor:pointer}._container_v8yrt_7 li._disabled_v8yrt_27{opacity:.5;cursor:default}._container_v8yrt_7 li._groupHeader_v8yrt_31{pointer-events:none;font-style:italic;font-weight:600}._container_v8yrt_7 li._isDrill_v8yrt_36:hover,._container_v8yrt_7 li._isDrill_v8yrt_36.fakeHover{background-color:#f4f4f8}._container_v8yrt_7 li:hover:not(._disabled_v8yrt_27){background-color:#f4f4f8}._container_v8yrt_7 li:hover:not(._disabled_v8yrt_27):after{opacity:1}._container_v8yrt_7 li._separator_v8yrt_45{border-top:1px solid #e1e1e1}._container_v8yrt_7 li._noIcon_v8yrt_48{padding-left:16px;padding-right:16px}._container_v8yrt_7 li._item_v8yrt_52._checked_v8yrt_52:after{content:"";display:block;position:absolute;top:0;left:0;height:100%;width:2px;background-color:#3a4356}._container_v8yrt_7 li._radio_v8yrt_62{padding-left:8px;padding-right:0;line-height:22px;align-items:stretch}._container_v8yrt_7 li._checkbox_v8yrt_68{padding-left:0;padding-right:0;line-height:22px;align-items:stretch}._container_v8yrt_7 li ._icon_v8yrt_74{margin:0 10px 0 7px}._container_v8yrt_7 li ._itemType_v8yrt_77{display:flex;width:100%;margin-right:1px;white-space:nowrap}._container_v8yrt_7 li ._itemType_v8yrt_77 :last-child{margin-left:auto}._container_v8yrt_7 li ._nestedType_v8yrt_86{display:flex;width:100%}._container_v8yrt_7 li ._nestedType_v8yrt_86 ._nestedIcon_v8yrt_90{position:static!important}._container_v8yrt_7 li ._menuItemText_v8yrt_93{flex-grow:1;display:flex;align-items:center}._separateGroup_v8yrt_99{min-width:fit-content}._itemCheckBox_v8yrt_103{padding:0 5px 0 16px;width:100%}._itemRadioButton_v8yrt_108{padding:0 5px 0 8px;width:100%}._scrollbar_v8yrt_113{cursor:default}._scrollbar_v8yrt_113>div:first-child{position:relative!important}._itemContainer_v8yrt_120{display:flex;flex-grow:1}._inlineConfirmation_v8yrt_125{font-weight:600}._menuItemTooltip_v8yrt_129{max-width:180px;overflow-wrap:break-word}._menuItemTooltip_v8yrt_129.rc-tooltip-placement-left{max-width:195px;padding-right:15px}._toggleButtonMenu_v8yrt_138{pointer-events:none;position:absolute;top:50%;transform:translateY(-50%);right:10px}._loader_v8yrt_146{height:25px;position:relative;margin:0 auto;width:90%}._container_v9uof_1{min-width:245px;max-width:350px;padding:12px 18px;font-size:13px;user-select:none}._message_v9uof_9{margin-top:10px;overflow:hidden;white-space:pre-line;text-overflow:ellipsis}._buttons_v9uof_16{margin-top:19px;width:100%;text-align:right}._button_v9uof_16{height:25px;width:auto;background:transparent;outline:none;cursor:pointer;border:none}._button_v9uof_16:hover{opacity:.7}._confirm_v9uof_34{color:green;margin-right:20px}._cancel_v9uof_39{color:red}._component_lx560_8{position:relative;display:flex;align-items:center}._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13{position:absolute;left:8px;z-index:1;opacity:40%}._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13._large_lx560_19{top:4px}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22{width:15px;height:15px;position:absolute;top:3px;right:4px;border-radius:20px;padding:4px}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22:hover{background-color:#d1d1d7}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._clearIconHidden_lx560_34{display:none}._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._large_lx560_19{width:15px;height:15px;top:4px;padding:5px}._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43{width:24px;height:24px;position:absolute;right:8px}._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43._large_lx560_19{width:24px;height:24px;top:5px}._component_lx560_8 ._customIcon_lx560_54{position:absolute;top:3px;right:4px}._component_lx560_8 ._customIcon_lx560_54._isLeft_lx560_59{right:0;left:8px}._component_lx560_8 ._customIcon_lx560_54._large_lx560_19{top:5px}._component_lx560_8 ._input_lx560_66{border-radius:4px;outline:none;background:#f4f4f8;line-height:28px;height:28px;border:none;text-indent:8px;width:100%}._component_lx560_8 ._input_lx560_66._withLeftIcon_lx560_76{text-indent:32px}._component_lx560_8 ._input_lx560_66::placeholder{color:#b0b5bf}._component_lx560_8 ._input_lx560_66:focus{border:1px solid #5b6372}._component_lx560_8 ._input_lx560_66._large_lx560_19{height:34px;line-height:34px}._component_lx560_8 ._input_lx560_66::-ms-reveal{display:none}.sis-scope ._component_lx560_8{position:relative;display:flex;align-items:center}.sis-scope ._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13{position:absolute;left:8px;z-index:1;opacity:40%}.sis-scope ._component_lx560_8 ._searchIcon_lx560_13._searchIcon_lx560_13._large_lx560_19{top:4px}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22{width:15px;height:15px;position:absolute;top:3px;right:4px;border-radius:20px;padding:4px}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22:hover{background-color:#d1d1d7}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._clearIconHidden_lx560_34{display:none}.sis-scope ._component_lx560_8 ._clearIcon_lx560_22._clearIcon_lx560_22._large_lx560_19{width:15px;height:15px;top:4px;padding:5px}.sis-scope ._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43{width:24px;height:24px;position:absolute;right:8px}.sis-scope ._component_lx560_8 ._passwordVisibilityIcon_lx560_43._passwordVisibilityIcon_lx560_43._large_lx560_19{width:24px;height:24px;top:5px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54{position:absolute;top:3px;right:4px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54._isLeft_lx560_59{right:0;left:8px}.sis-scope ._component_lx560_8 ._customIcon_lx560_54._large_lx560_19{top:5px}.sis-scope ._component_lx560_8 ._input_lx560_66{border-radius:4px;outline:none;background:#f4f4f8;line-height:28px;height:28px;border:none;text-indent:8px;width:100%}.sis-scope ._component_lx560_8 ._input_lx560_66._withLeftIcon_lx560_76{text-indent:32px}.sis-scope ._component_lx560_8 ._input_lx560_66::placeholder{color:#b0b5bf}.sis-scope ._component_lx560_8 ._input_lx560_66:focus{border:1px solid #5b6372}.sis-scope ._component_lx560_8 ._input_lx560_66._large_lx560_19{height:34px;line-height:34px}.sis-scope ._component_lx560_8 ._input_lx560_66::-ms-reveal{display:none}._searchInputWrapper_otzmq_1 div{background:#f4f4f8;border-radius:4px;border:1px solid #5b6372}._searchInputWrapper_otzmq_1 div span{margin-left:-6px;z-index:1071!important}._searchInputWrapper_otzmq_1 div input{position:relative;z-index:1070;background:transparent;text-indent:0;border:none!important}._dropdownButton_xulrt_21{display:inline-flex;align-items:center;cursor:pointer;background:#f4f4f8;border-radius:4px;height:28px;min-width:192px}._dropdownButton_xulrt_21._inlineVariant_xulrt_30{background:none;height:18px;border:none;text-indent:0;min-width:initial}._dropdownButton_xulrt_21._inlineVariant_xulrt_30._open_xulrt_37{border:none}._dropdownButton_xulrt_21._open_xulrt_37{border:1px solid #5b6372}._dropdownButton_xulrt_21._disabled_xulrt_43{color:#bdc1c7;background:#f4f4f8;pointer-events:none}._dropdownButton_xulrt_21 ._selectedIcon_xulrt_48{flex-shrink:0}._dropdownButton_xulrt_21 ._chosenTitle_xulrt_51{margin-left:12px;flex-grow:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}._dropdownButton_xulrt_21 ._clickIcon_xulrt_58{flex-shrink:0;margin-right:2px}._menu_1lxhu_1{margin:0;position:initial;box-shadow:none}._menu_1lxhu_1 li{padding:0 5px;height:28px}.sis-scope .btn--dark .btn__text{padding:5px 20px}.sis-scope .btn--gray{background:#f4f4f8}.sis-scope .btn--gray:disabled{background:#f4f4f8;opacity:1}.sis-scope .btn--gray:disabled:hover{background:#d1d1d7}.sis-scope .btn--gray:disabled .app-icon,.sis-scope .btn--gray:disabled .btn__text{opacity:.4}.sis-scope ._sharedComponentsButton_t1p0l_31{line-height:18px}.sis-scope ._sharedComponentsButtonText_t1p0l_34{padding:5px 20px}.sis-scope .btn._btnSecondary_t1p0l_37{border:1px solid #5b6372;background-color:#fff}.sis-scope .btn._btnSecondary_t1p0l_37:hover{background-color:#f4f4f8}.sis-scope .btn._btnSecondary_t1p0l_37:disabled{background-color:#fff}.sis-scope .btn._btnSecondary_t1p0l_37:disabled:hover{background-color:#fff}._item_fvqjc_1{margin-bottom:12px;cursor:pointer;height:18px;user-select:none}._item_fvqjc_1:last-child{margin-bottom:0}._item_fvqjc_1 ._icon_fvqjc_10{margin-top:-3px}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();var wm=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(u){try{l(r.next(u))}catch(d){a(d)}}function c(u){try{l(r.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((r=r.apply(e,t||[])).next())})};const fV=2e4,xm="Unspecified reason";class gV{constructor(t,n=new lA(t),r){vV(t),this.queryApi=new mP(t),this.taskManager=new pP(this.queryApi,n),this.shouldSkipHighlightsWithoutAttributes=r!=null?r:!1}executeQuery(t,n){AS(t);const r=new c0("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executeQuerySending(r).then(a=>{a.status===Mn.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||xm)}}executeCsvQuery(t,n){AS(t);const r=new c0("SEND_DOWNLOAD_CSV_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executeDownloadCsvSending(r).then(a=>{a.status===Mn.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||xm)}}executePivotQuery(t,n){mV(t);const r=new fP("SEND_JAQL_QUERY",t,Object.assign(Object.assign({},n||{}),{shouldSkipHighlightsWithoutAttributes:this.shouldSkipHighlightsWithoutAttributes||!1}));return{resultPromise:new Promise((o,i)=>{this.taskManager.executePivotQuerySending(r).then(a=>{a.status===Mn.ExecutionResultStatus.SUCCESS?o(a.result):i(a.error)})}),cancel:o=>this.taskManager.cancel(r.taskId,o||xm)}}getDataSourceFields(t,n=9999,r=0){return wm(this,void 0,void 0,function*(){return this.queryApi.getDataSourceFields(t,n,r)})}getDataSourceSchema(t){return wm(this,void 0,void 0,function*(){return this.queryApi.getDataSourceSchema(t)})}getDataSourceList(){return wm(this,void 0,void 0,function*(){return this.queryApi.getDataSourceList()})}}function AS(e){const{attributes:t,measures:n,filters:r,highlights:o,count:i,offset:a}=e;if(i&&i<0)throw new Cn("errors.invalidCountNegative",{count:i.toString()});if(a&&a<0)throw new Cn("errors.invalidOffset",{offset:a.toString()});if(t.length+n.length===0)throw new Cn("errors.noDimensionsOrMeasures");t.forEach(s=>{if(!s.skipValidation&&!g.MetadataTypes.isAttribute(s))throw new Cn("errors.invalidAttribute",{attributeName:s.name})}),n.forEach(s=>{if(!s.skipValidation&&!g.MetadataTypes.isMeasure(s))throw new Cn("errors.invalidMeasure",{measureName:s.name})}),r.forEach(s=>{if(!s.skipValidation&&!g.MetadataTypes.isFilter(s))throw new Cn("errors.invalidFilter",{filterName:s.name})}),o.forEach(s=>{if(!s.skipValidation&&!g.MetadataTypes.isFilter(s))throw new Cn("errors.invalidHighlight",{highlightName:s.name})})}function mV(e){const{rowsAttributes:t,columnsAttributes:n,measures:r,filters:o,highlights:i,count:a,offset:s}=e;if(a&&a<0)throw new Cn("errors.invalidCountNegative",{count:a.toString()});if(s&&s<0)throw new Cn("errors.invalidOffset",{offset:s.toString()});if(t.length+n.length+r.length===0)throw new Cn("errors.noDimensionsOrMeasures");o.forEach(c=>{if(!c.skipValidation&&!g.MetadataTypes.isFilter(c))throw new Cn("errors.invalidFilter",{filterName:c.name})}),i.forEach(c=>{if(!c.skipValidation&&!g.MetadataTypes.isFilter(c))throw new Cn("errors.invalidHighlight",{highlightName:c.name})})}function vV(e){if(!e)throw new Cn("errors.missingHttpClient");if(!e.post)throw new Cn("errors.missingPostMethod")}function Ca(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return g.addMonths(e,-n)}function cA(e,t){var n,r,o,i,a,s,c,l;g.requiredArgs(1,arguments);var u=g.getDefaultOptions(),d=g.toInteger((n=(r=(o=(i=t==null?void 0:t.weekStartsOn)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&o!==void 0?o:u.weekStartsOn)!==null&&r!==void 0?r:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=g.toDate(e),f=p.getDay(),m=(f<d?7:0)+f-d;return p.setDate(p.getDate()-m),p.setHours(0,0,0,0),p}function Na(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t);return isNaN(r)?new Date(NaN):(r&&n.setDate(n.getDate()+r),n)}function uA(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t),r=n*3;return g.addMonths(e,r)}function lu(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t),r=n*7;return Na(e,r)}function Ad(e){return g.requiredArgs(1,arguments),e instanceof Date||g._typeof(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function Ls(e){if(g.requiredArgs(1,arguments),!Ad(e)&&typeof e!="number")return!1;var t=g.toDate(e);return!isNaN(Number(t))}function Uy(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e).getTime(),r=g.toInteger(t);return new Date(n+r)}function dA(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return Uy(e,-n)}var bV=864e5;function yV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),o=n-r;return Math.floor(o/bV)+1}function ka(e){g.requiredArgs(1,arguments);var t=1,n=g.toDate(e),r=n.getUTCDay(),o=(r<t?7:0)+r-t;return n.setUTCDate(n.getUTCDate()-o),n.setUTCHours(0,0,0,0),n}function pA(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(n+1,0,4),r.setUTCHours(0,0,0,0);var o=ka(r),i=new Date(0);i.setUTCFullYear(n,0,4),i.setUTCHours(0,0,0,0);var a=ka(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function wV(e){g.requiredArgs(1,arguments);var t=pA(e),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var r=ka(n);return r}var xV=6048e5;function hA(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=ka(t).getTime()-wV(t).getTime();return Math.round(n/xV)+1}function Yy(e,t){var n,r,o,i,a,s,c,l;g.requiredArgs(1,arguments);var u=g.toDate(e),d=u.getUTCFullYear(),p=g.getDefaultOptions(),f=g.toInteger((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:p.firstWeekContainsDate)!==null&&r!==void 0?r:(c=p.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(f>=1&&f<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var m=new Date(0);m.setUTCFullYear(d+1,0,f),m.setUTCHours(0,0,0,0);var b=g.startOfUTCWeek(m,t),v=new Date(0);v.setUTCFullYear(d,0,f),v.setUTCHours(0,0,0,0);var w=g.startOfUTCWeek(v,t);return u.getTime()>=b.getTime()?d+1:u.getTime()>=w.getTime()?d:d-1}function _V(e,t){var n,r,o,i,a,s,c,l;g.requiredArgs(1,arguments);var u=g.getDefaultOptions(),d=g.toInteger((n=(r=(o=(i=t==null?void 0:t.firstWeekContainsDate)!==null&&i!==void 0?i:t==null||(a=t.locale)===null||a===void 0||(s=a.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&o!==void 0?o:u.firstWeekContainsDate)!==null&&r!==void 0?r:(c=u.locale)===null||c===void 0||(l=c.options)===null||l===void 0?void 0:l.firstWeekContainsDate)!==null&&n!==void 0?n:1),p=Yy(e,t),f=new Date(0);f.setUTCFullYear(p,0,d),f.setUTCHours(0,0,0,0);var m=g.startOfUTCWeek(f,t);return m}var CV=6048e5;function fA(e,t){g.requiredArgs(1,arguments);var n=g.toDate(e),r=g.startOfUTCWeek(n,t).getTime()-_V(n,t).getTime();return Math.round(r/CV)+1}function Xe(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}var go={y:function(t,n){var r=t.getUTCFullYear(),o=r>0?r:1-r;return Xe(n==="yy"?o%100:o,n.length)},M:function(t,n){var r=t.getUTCMonth();return n==="M"?String(r+1):Xe(r+1,2)},d:function(t,n){return Xe(t.getUTCDate(),n.length)},a:function(t,n){var r=t.getUTCHours()/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,n){return Xe(t.getUTCHours()%12||12,n.length)},H:function(t,n){return Xe(t.getUTCHours(),n.length)},m:function(t,n){return Xe(t.getUTCMinutes(),n.length)},s:function(t,n){return Xe(t.getUTCSeconds(),n.length)},S:function(t,n){var r=n.length,o=t.getUTCMilliseconds(),i=Math.floor(o*Math.pow(10,r-3));return Xe(i,n.length)}},Vi={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},kV={G:function(t,n,r){var o=t.getUTCFullYear()>0?1:0;switch(n){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});case"GGGG":default:return r.era(o,{width:"wide"})}},y:function(t,n,r){if(n==="yo"){var o=t.getUTCFullYear(),i=o>0?o:1-o;return r.ordinalNumber(i,{unit:"year"})}return go.y(t,n)},Y:function(t,n,r,o){var i=Yy(t,o),a=i>0?i:1-i;if(n==="YY"){var s=a%100;return Xe(s,2)}return n==="Yo"?r.ordinalNumber(a,{unit:"year"}):Xe(a,n.length)},R:function(t,n){var r=pA(t);return Xe(r,n.length)},u:function(t,n){var r=t.getUTCFullYear();return Xe(r,n.length)},Q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"Q":return String(o);case"QQ":return Xe(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(t,n,r){var o=Math.ceil((t.getUTCMonth()+1)/3);switch(n){case"q":return String(o);case"qq":return Xe(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(t,n,r){var o=t.getUTCMonth();switch(n){case"M":case"MM":return go.M(t,n);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(t,n,r){var o=t.getUTCMonth();switch(n){case"L":return String(o+1);case"LL":return Xe(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(t,n,r,o){var i=fA(t,o);return n==="wo"?r.ordinalNumber(i,{unit:"week"}):Xe(i,n.length)},I:function(t,n,r){var o=hA(t);return n==="Io"?r.ordinalNumber(o,{unit:"week"}):Xe(o,n.length)},d:function(t,n,r){return n==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):go.d(t,n)},D:function(t,n,r){var o=yV(t);return n==="Do"?r.ordinalNumber(o,{unit:"dayOfYear"}):Xe(o,n.length)},E:function(t,n,r){var o=t.getUTCDay();switch(n){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});case"EEEE":default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"e":return String(a);case"ee":return Xe(a,2);case"eo":return r.ordinalNumber(a,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});case"eeee":default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(t,n,r,o){var i=t.getUTCDay(),a=(i-o.weekStartsOn+8)%7||7;switch(n){case"c":return String(a);case"cc":return Xe(a,n.length);case"co":return r.ordinalNumber(a,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});case"cccc":default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(t,n,r){var o=t.getUTCDay(),i=o===0?7:o;switch(n){case"i":return String(i);case"ii":return Xe(i,n.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});case"iiii":default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(t,n,r){var o=t.getUTCHours(),i=o/12>=1?"pm":"am";switch(n){case"a":case"aa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},b:function(t,n,r){var o=t.getUTCHours(),i;switch(o===12?i=Vi.noon:o===0?i=Vi.midnight:i=o/12>=1?"pm":"am",n){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(t,n,r){var o=t.getUTCHours(),i;switch(o>=17?i=Vi.evening:o>=12?i=Vi.afternoon:o>=4?i=Vi.morning:i=Vi.night,n){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(t,n,r){if(n==="ho"){var o=t.getUTCHours()%12;return o===0&&(o=12),r.ordinalNumber(o,{unit:"hour"})}return go.h(t,n)},H:function(t,n,r){return n==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):go.H(t,n)},K:function(t,n,r){var o=t.getUTCHours()%12;return n==="Ko"?r.ordinalNumber(o,{unit:"hour"}):Xe(o,n.length)},k:function(t,n,r){var o=t.getUTCHours();return o===0&&(o=24),n==="ko"?r.ordinalNumber(o,{unit:"hour"}):Xe(o,n.length)},m:function(t,n,r){return n==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):go.m(t,n)},s:function(t,n,r){return n==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):go.s(t,n)},S:function(t,n){return go.S(t,n)},X:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();if(a===0)return"Z";switch(n){case"X":return NS(a);case"XXXX":case"XX":return ri(a);case"XXXXX":case"XXX":default:return ri(a,":")}},x:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"x":return NS(a);case"xxxx":case"xx":return ri(a);case"xxxxx":case"xxx":default:return ri(a,":")}},O:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"O":case"OO":case"OOO":return"GMT"+MS(a,":");case"OOOO":default:return"GMT"+ri(a,":")}},z:function(t,n,r,o){var i=o._originalDate||t,a=i.getTimezoneOffset();switch(n){case"z":case"zz":case"zzz":return"GMT"+MS(a,":");case"zzzz":default:return"GMT"+ri(a,":")}},t:function(t,n,r,o){var i=o._originalDate||t,a=Math.floor(i.getTime()/1e3);return Xe(a,n.length)},T:function(t,n,r,o){var i=o._originalDate||t,a=i.getTime();return Xe(a,n.length)}};function MS(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(i===0)return n+String(o);var a=t;return n+String(o)+a+Xe(i,2)}function NS(e,t){if(e%60===0){var n=e>0?"-":"+";return n+Xe(Math.abs(e)/60,2)}return ri(e,t)}function ri(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e),i=Xe(Math.floor(o/60),2),a=Xe(o%60,2);return r+i+n+a}var PS=function(t,n){switch(t){case"P":return n.date({width:"short"});case"PP":return n.date({width:"medium"});case"PPP":return n.date({width:"long"});case"PPPP":default:return n.date({width:"full"})}},gA=function(t,n){switch(t){case"p":return n.time({width:"short"});case"pp":return n.time({width:"medium"});case"ppp":return n.time({width:"long"});case"pppp":default:return n.time({width:"full"})}},SV=function(t,n){var r=t.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return PS(t,n);var a;switch(o){case"P":a=n.dateTime({width:"short"});break;case"PP":a=n.dateTime({width:"medium"});break;case"PPP":a=n.dateTime({width:"long"});break;case"PPPP":default:a=n.dateTime({width:"full"});break}return a.replace("{{date}}",PS(o,n)).replace("{{time}}",gA(i,n))},Vv={p:gA,P:SV};function cu(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}var TV=["D","DD"],EV=["YY","YYYY"];function mA(e){return TV.indexOf(e)!==-1}function vA(e){return EV.indexOf(e)!==-1}function uu(e,t,n){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(n,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var OV=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,DV=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,RV=/^'([^]*?)'?$/,AV=/''/g,MV=/[a-zA-Z]/;function IS(e,t,n){var r,o,i,a,s,c,l,u,d,p,f,m,b,v,w,_,T,y;g.requiredArgs(2,arguments);var k=String(t),S=g.getDefaultOptions(),x=(r=(o=n==null?void 0:n.locale)!==null&&o!==void 0?o:S.locale)!==null&&r!==void 0?r:g.locale,C=g.toInteger((i=(a=(s=(c=n==null?void 0:n.firstWeekContainsDate)!==null&&c!==void 0?c:n==null||(l=n.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&s!==void 0?s:S.firstWeekContainsDate)!==null&&a!==void 0?a:(d=S.locale)===null||d===void 0||(p=d.options)===null||p===void 0?void 0:p.firstWeekContainsDate)!==null&&i!==void 0?i:1);if(!(C>=1&&C<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=g.toInteger((f=(m=(b=(v=n==null?void 0:n.weekStartsOn)!==null&&v!==void 0?v:n==null||(w=n.locale)===null||w===void 0||(_=w.options)===null||_===void 0?void 0:_.weekStartsOn)!==null&&b!==void 0?b:S.weekStartsOn)!==null&&m!==void 0?m:(T=S.locale)===null||T===void 0||(y=T.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&f!==void 0?f:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var D=g.toDate(e);if(!Ls(D))throw new RangeError("Invalid time value");var R=cu(D),M=dA(D,R),F={firstWeekContainsDate:C,weekStartsOn:O,locale:x,_originalDate:D},N=k.match(DV).map(function(I){var j=I[0];if(j==="p"||j==="P"){var $=Vv[j];return $(I,x.formatLong)}return I}).join("").match(OV).map(function(I){if(I==="''")return"'";var j=I[0];if(j==="'")return NV(I);var $=kV[j];if($)return!(n!=null&&n.useAdditionalWeekYearTokens)&&vA(I)&&uu(I,t,String(e)),!(n!=null&&n.useAdditionalDayOfYearTokens)&&mA(I)&&uu(I,t,String(e)),$(M,I,x.localize,F);if(j.match(MV))throw new RangeError("Format string contains an unescaped latin alphabet character `"+j+"`");return I}).join("");return N}function NV(e){var t=e.match(RV);return t?t[1].replace(AV,"'"):e}function PV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getDay();return n}function jr(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getHours();return n}function dn(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getMonth();return n}function ia(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=Math.floor(t.getMonth()/3)+1;return n}function Gv(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getTime();return n}function Lr(e){g.requiredArgs(1,arguments);var t=g.toDate(e);return t.setHours(0,0,0,0),t}function bA(e){g.requiredArgs(1,arguments);var t=g.toDate(e);return t.setDate(1),t.setHours(0,0,0,0),t}function Qv(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getMonth(),r=n-n%3;return t.setMonth(r,1),t.setHours(0,0,0,0),t}function yA(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=new Date(0);return n.setFullYear(t.getFullYear(),0,1),n.setHours(0,0,0,0),n}function IV(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return Na(e,-n)}function jV(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return uA(e,-n)}function jS(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return lu(e,-n)}var LV=36e5;function FV(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return Uy(e,n*LV)}function du(e){return g.requiredArgs(1,arguments),cA(e,{weekStartsOn:1})}function BV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getFullYear(),r=new Date(0);r.setFullYear(n+1,0,4),r.setHours(0,0,0,0);var o=du(r),i=new Date(0);i.setFullYear(n,0,4),i.setHours(0,0,0,0);var a=du(i);return t.getTime()>=o.getTime()?n+1:t.getTime()>=a.getTime()?n:n-1}function HV(e){g.requiredArgs(1,arguments);var t=BV(e),n=new Date(0);n.setFullYear(t,0,4),n.setHours(0,0,0,0);var r=du(n);return r}var $V=864e5;function pu(e,t){g.requiredArgs(2,arguments);var n=Lr(e),r=Lr(t),o=n.getTime()-cu(n),i=r.getTime()-cu(r);return Math.round((o-i)/$V)}var zV=6e4;function Jv(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);return Uy(e,n*zV)}function LS(e){g.requiredArgs(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(g._typeof(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var o=g.toDate(r);(n===void 0||n<o||isNaN(Number(o)))&&(n=o)}),n||new Date(NaN)}function FS(e){g.requiredArgs(1,arguments);var t;if(e&&typeof e.forEach=="function")t=e;else if(g._typeof(e)==="object"&&e!==null)t=Array.prototype.slice.call(e);else return new Date(NaN);var n;return t.forEach(function(r){var o=g.toDate(r);(n===void 0||n>o||isNaN(o.getDate()))&&(n=o)}),n||new Date(NaN)}function WV(e,t){g.requiredArgs(2,arguments);var n=Lr(e),r=Lr(t);return n.getTime()===r.getTime()}function hu(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t),o=n.getFullYear()-r.getFullYear(),i=n.getMonth()-r.getMonth();return o*12+i}function fu(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getFullYear()-r.getFullYear()}function Zv(e){g.requiredArgs(1,arguments);var t=g.toDate(e);return t.setHours(23,59,59,999),t}function UV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getMonth();return t.setFullYear(t.getFullYear(),n+1,0),t.setHours(23,59,59,999),t}function YV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getFullYear();return t.setFullYear(n+1,0,0),t.setHours(23,59,59,999),t}function qV(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}function BS(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getDate();return n}var VV=6048e5;function GV(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=du(t).getTime()-HV(t).getTime();return Math.round(n/VV)+1}function Fr(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getMinutes();return n}function HS(e){g.requiredArgs(1,arguments);var t=g.toDate(e),n=t.getSeconds();return n}function Pe(e){return g.requiredArgs(1,arguments),g.toDate(e).getFullYear()}function Po(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getTime()>r.getTime()}function Oo(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getTime()<r.getTime()}function QV(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getTime()===r.getTime()}function $S(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function JV(e,t){if(e){if(typeof e=="string")return $S(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return $S(e,t)}}function zS(e,t){var n=typeof Symbol!="undefined"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=JV(e))||t){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
395
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,s;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return i=l.done,l},e:function(l){a=!0,s=l},f:function(){try{!i&&n.return!=null&&n.return()}finally{if(a)throw s}}}}function ze(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g._setPrototypeOf(e,t)}function gu(e){return gu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},gu(e)}function wA(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(t){}return(wA=function(){return!!e})()}function ZV(e,t){if(t&&(g._typeof(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return g._assertThisInitialized(e)}function We(e){var t=wA();return function(){var r=gu(e),o;if(t){var i=gu(this).constructor;o=Reflect.construct(r,arguments,i)}else o=r.apply(this,arguments);return ZV(this,o)}}function Le(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function KV(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,g.toPropertyKey(r.key),r)}}function Fe(e,t,n){return t&&KV(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}var XV=10,xA=function(){function e(){Le(this,e),g._defineProperty(this,"priority",void 0),g._defineProperty(this,"subPriority",0)}return Fe(e,[{key:"validate",value:function(n,r){return!0}}]),e}(),eG=function(e){ze(n,e);var t=We(n);function n(r,o,i,a,s){var c;return Le(this,n),c=t.call(this),c.value=r,c.validateValue=o,c.setValue=i,c.priority=a,s&&(c.subPriority=s),c}return Fe(n,[{key:"validate",value:function(o,i){return this.validateValue(o,this.value,i)}},{key:"set",value:function(o,i,a){return this.setValue(o,i,this.value,a)}}]),n}(xA),tG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",XV),g._defineProperty(g._assertThisInitialized(r),"subPriority",-1),r}return Fe(n,[{key:"set",value:function(o,i){if(i.timestampIsSet)return o;var a=new Date(0);return a.setFullYear(o.getUTCFullYear(),o.getUTCMonth(),o.getUTCDate()),a.setHours(o.getUTCHours(),o.getUTCMinutes(),o.getUTCSeconds(),o.getUTCMilliseconds()),a}}]),n}(xA),qe=function(){function e(){Le(this,e),g._defineProperty(this,"incompatibleTokens",void 0),g._defineProperty(this,"priority",void 0),g._defineProperty(this,"subPriority",void 0)}return Fe(e,[{key:"run",value:function(n,r,o,i){var a=this.parse(n,r,o,i);return a?{setter:new eG(a.value,this.validate,this.set,this.priority,this.subPriority),rest:a.rest}:null}},{key:"validate",value:function(n,r,o){return!0}}]),e}(),nG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",140),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["R","u","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"G":case"GG":case"GGG":return a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"});case"GGGGG":return a.era(o,{width:"narrow"});case"GGGG":default:return a.era(o,{width:"wide"})||a.era(o,{width:"abbreviated"})||a.era(o,{width:"narrow"})}}},{key:"set",value:function(o,i,a){return i.era=a,o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),Et={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Rr={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function Ot(e,t){return e&&{value:t(e.value),rest:e.rest}}function yt(e,t){var n=t.match(e);return n?{value:parseInt(n[0],10),rest:t.slice(n[0].length)}:null}function Ar(e,t){var n=t.match(e);if(!n)return null;if(n[0]==="Z")return{value:0,rest:t.slice(1)};var r=n[1]==="+"?1:-1,o=n[2]?parseInt(n[2],10):0,i=n[3]?parseInt(n[3],10):0,a=n[5]?parseInt(n[5],10):0;return{value:r*(o*g.millisecondsInHour+i*g.millisecondsInMinute+a*g.millisecondsInSecond),rest:t.slice(n[0].length)}}function _A(e){return yt(Et.anyDigitsSigned,e)}function Ct(e,t){switch(e){case 1:return yt(Et.singleDigit,t);case 2:return yt(Et.twoDigits,t);case 3:return yt(Et.threeDigits,t);case 4:return yt(Et.fourDigits,t);default:return yt(new RegExp("^\\d{1,"+e+"}"),t)}}function mu(e,t){switch(e){case 1:return yt(Et.singleDigitSigned,t);case 2:return yt(Et.twoDigitsSigned,t);case 3:return yt(Et.threeDigitsSigned,t);case 4:return yt(Et.fourDigitsSigned,t);default:return yt(new RegExp("^-?\\d{1,"+e+"}"),t)}}function qy(e){switch(e){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function CA(e,t){var n=t>0,r=n?t:1-t,o;if(r<=50)o=e||100;else{var i=r+50,a=Math.floor(i/100)*100,s=e>=i%100;o=e+a-(s?100:0)}return n?o:1-o}function kA(e){return e%400===0||e%4===0&&e%100!==0}var rG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",130),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){var s=function(l){return{year:l,isTwoDigitYear:i==="yy"}};switch(i){case"y":return Ot(Ct(4,o),s);case"yo":return Ot(a.ordinalNumber(o,{unit:"year"}),s);default:return Ot(Ct(i.length,o),s)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a){var s=o.getUTCFullYear();if(a.isTwoDigitYear){var c=CA(a.year,s);return o.setUTCFullYear(c,0,1),o.setUTCHours(0,0,0,0),o}var l=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(l,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),oG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",130),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){var s=function(l){return{year:l,isTwoDigitYear:i==="YY"}};switch(i){case"Y":return Ot(Ct(4,o),s);case"Yo":return Ot(a.ordinalNumber(o,{unit:"year"}),s);default:return Ot(Ct(i.length,o),s)}}},{key:"validate",value:function(o,i){return i.isTwoDigitYear||i.year>0}},{key:"set",value:function(o,i,a,s){var c=Yy(o,s);if(a.isTwoDigitYear){var l=CA(a.year,c);return o.setUTCFullYear(l,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),g.startOfUTCWeek(o,s)}var u=!("era"in i)||i.era===1?a.year:1-a.year;return o.setUTCFullYear(u,0,s.firstWeekContainsDate),o.setUTCHours(0,0,0,0),g.startOfUTCWeek(o,s)}}]),n}(qe),iG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",130),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i){return mu(i==="R"?4:i.length,o)}},{key:"set",value:function(o,i,a){var s=new Date(0);return s.setUTCFullYear(a,0,4),s.setUTCHours(0,0,0,0),ka(s)}}]),n}(qe),aG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",130),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i){return mu(i==="u"?4:i.length,o)}},{key:"set",value:function(o,i,a){return o.setUTCFullYear(a,0,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),sG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",120),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"Q":case"QQ":return Ct(i.length,o);case"Qo":return a.ordinalNumber(o,{unit:"quarter"});case"QQQ":return a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQQ":return a.quarter(o,{width:"narrow",context:"formatting"});case"QQQQ":default:return a.quarter(o,{width:"wide",context:"formatting"})||a.quarter(o,{width:"abbreviated",context:"formatting"})||a.quarter(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),lG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",120),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"q":case"qq":return Ct(i.length,o);case"qo":return a.ordinalNumber(o,{unit:"quarter"});case"qqq":return a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"});case"qqqqq":return a.quarter(o,{width:"narrow",context:"standalone"});case"qqqq":default:return a.quarter(o,{width:"wide",context:"standalone"})||a.quarter(o,{width:"abbreviated",context:"standalone"})||a.quarter(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=1&&i<=4}},{key:"set",value:function(o,i,a){return o.setUTCMonth((a-1)*3,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),cG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),g._defineProperty(g._assertThisInitialized(r),"priority",110),r}return Fe(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l-1};switch(i){case"M":return Ot(yt(Et.month,o),s);case"MM":return Ot(Ct(2,o),s);case"Mo":return Ot(a.ordinalNumber(o,{unit:"month"}),s);case"MMM":return a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"});case"MMMMM":return a.month(o,{width:"narrow",context:"formatting"});case"MMMM":default:return a.month(o,{width:"wide",context:"formatting"})||a.month(o,{width:"abbreviated",context:"formatting"})||a.month(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe),uG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",110),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l-1};switch(i){case"L":return Ot(yt(Et.month,o),s);case"LL":return Ot(Ct(2,o),s);case"Lo":return Ot(a.ordinalNumber(o,{unit:"month"}),s);case"LLL":return a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"});case"LLLLL":return a.month(o,{width:"narrow",context:"standalone"});case"LLLL":default:return a.month(o,{width:"wide",context:"standalone"})||a.month(o,{width:"abbreviated",context:"standalone"})||a.month(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){return o.setUTCMonth(a,1),o.setUTCHours(0,0,0,0),o}}]),n}(qe);function dG(e,t,n){g.requiredArgs(2,arguments);var r=g.toDate(e),o=g.toInteger(t),i=fA(r,n)-o;return r.setUTCDate(r.getUTCDate()-i*7),r}var pG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",100),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"w":return yt(Et.week,o);case"wo":return a.ordinalNumber(o,{unit:"week"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a,s){return g.startOfUTCWeek(dG(o,a,s),s)}}]),n}(qe);function hG(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t),o=hA(n)-r;return n.setUTCDate(n.getUTCDate()-o*7),n}var fG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",100),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"I":return yt(Et.week,o);case"Io":return a.ordinalNumber(o,{unit:"week"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=53}},{key:"set",value:function(o,i,a){return ka(hG(o,a))}}]),n}(qe),gG=[31,28,31,30,31,30,31,31,30,31,30,31],mG=[31,29,31,30,31,30,31,31,30,31,30,31],vG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"subPriority",1),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"d":return yt(Et.date,o);case"do":return a.ordinalNumber(o,{unit:"date"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),s=kA(a),c=o.getUTCMonth();return s?i>=1&&i<=mG[c]:i>=1&&i<=gG[c]}},{key:"set",value:function(o,i,a){return o.setUTCDate(a),o.setUTCHours(0,0,0,0),o}}]),n}(qe),bG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"subpriority",1),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"D":case"DD":return yt(Et.dayOfYear,o);case"Do":return a.ordinalNumber(o,{unit:"date"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){var a=o.getUTCFullYear(),s=kA(a);return s?i>=1&&i<=366:i>=1&&i<=365}},{key:"set",value:function(o,i,a){return o.setUTCMonth(0,a),o.setUTCHours(0,0,0,0),o}}]),n}(qe);function Vy(e,t,n){var r,o,i,a,s,c,l,u;g.requiredArgs(2,arguments);var d=g.getDefaultOptions(),p=g.toInteger((r=(o=(i=(a=n==null?void 0:n.weekStartsOn)!==null&&a!==void 0?a:n==null||(s=n.locale)===null||s===void 0||(c=s.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&i!==void 0?i:d.weekStartsOn)!==null&&o!==void 0?o:(l=d.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var f=g.toDate(e),m=g.toInteger(t),b=f.getUTCDay(),v=m%7,w=(v+7)%7,_=(w<p?7:0)+m-b;return f.setUTCDate(f.getUTCDate()+_),f}var yG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"E":case"EE":case"EEE":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEEE":return a.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"EEEE":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=Vy(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(qe),wG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a,s){var c=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(i){case"e":case"ee":return Ot(Ct(i.length,o),c);case"eo":return Ot(a.ordinalNumber(o,{unit:"day"}),c);case"eee":return a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeeee":return a.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"});case"eeee":default:return a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=Vy(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(qe),xG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a,s){var c=function(u){var d=Math.floor((u-1)/7)*7;return(u+s.weekStartsOn+6)%7+d};switch(i){case"c":case"cc":return Ot(Ct(i.length,o),c);case"co":return Ot(a.ordinalNumber(o,{unit:"day"}),c);case"ccc":return a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"ccccc":return a.day(o,{width:"narrow",context:"standalone"});case"cccccc":return a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"});case"cccc":default:return a.day(o,{width:"wide",context:"standalone"})||a.day(o,{width:"abbreviated",context:"standalone"})||a.day(o,{width:"short",context:"standalone"})||a.day(o,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(o,i){return i>=0&&i<=6}},{key:"set",value:function(o,i,a,s){return o=Vy(o,a,s),o.setUTCHours(0,0,0,0),o}}]),n}(qe);function _G(e,t){g.requiredArgs(2,arguments);var n=g.toInteger(t);n%7===0&&(n=n-7);var r=1,o=g.toDate(e),i=o.getUTCDay(),a=n%7,s=(a+7)%7,c=(s<r?7:0)+n-i;return o.setUTCDate(o.getUTCDate()+c),o}var CG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",90),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){var s=function(l){return l===0?7:l};switch(i){case"i":case"ii":return Ct(i.length,o);case"io":return a.ordinalNumber(o,{unit:"day"});case"iii":return Ot(a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s);case"iiiii":return Ot(a.day(o,{width:"narrow",context:"formatting"}),s);case"iiiiii":return Ot(a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s);case"iiii":default:return Ot(a.day(o,{width:"wide",context:"formatting"})||a.day(o,{width:"abbreviated",context:"formatting"})||a.day(o,{width:"short",context:"formatting"})||a.day(o,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(o,i){return i>=1&&i<=7}},{key:"set",value:function(o,i,a){return o=_G(o,a),o.setUTCHours(0,0,0,0),o}}]),n}(qe),kG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",80),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"a":case"aa":case"aaa":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaaa":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"aaaa":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(qy(a),0,0,0),o}}]),n}(qe),SG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",80),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"b":case"bb":case"bbb":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbbb":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"bbbb":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(qy(a),0,0,0),o}}]),n}(qe),TG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",80),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["a","b","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"B":case"BB":case"BBB":return a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBBB":return a.dayPeriod(o,{width:"narrow",context:"formatting"});case"BBBB":default:return a.dayPeriod(o,{width:"wide",context:"formatting"})||a.dayPeriod(o,{width:"abbreviated",context:"formatting"})||a.dayPeriod(o,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(o,i,a){return o.setUTCHours(qy(a),0,0,0),o}}]),n}(qe),EG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",70),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["H","K","k","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"h":return yt(Et.hour12h,o);case"ho":return a.ordinalNumber(o,{unit:"hour"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=12}},{key:"set",value:function(o,i,a){var s=o.getUTCHours()>=12;return s&&a<12?o.setUTCHours(a+12,0,0,0):!s&&a===12?o.setUTCHours(0,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(qe),OG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",70),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"H":return yt(Et.hour23h,o);case"Ho":return a.ordinalNumber(o,{unit:"hour"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=23}},{key:"set",value:function(o,i,a){return o.setUTCHours(a,0,0,0),o}}]),n}(qe),DG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",70),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["h","H","k","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"K":return yt(Et.hour11h,o);case"Ko":return a.ordinalNumber(o,{unit:"hour"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=11}},{key:"set",value:function(o,i,a){var s=o.getUTCHours()>=12;return s&&a<12?o.setUTCHours(a+12,0,0,0):o.setUTCHours(a,0,0,0),o}}]),n}(qe),RG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",70),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"k":return yt(Et.hour24h,o);case"ko":return a.ordinalNumber(o,{unit:"hour"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=1&&i<=24}},{key:"set",value:function(o,i,a){var s=a<=24?a%24:a;return o.setUTCHours(s,0,0,0),o}}]),n}(qe),AG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",60),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"m":return yt(Et.minute,o);case"mo":return a.ordinalNumber(o,{unit:"minute"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCMinutes(a,0,0),o}}]),n}(qe),MG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",50),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i,a){switch(i){case"s":return yt(Et.second,o);case"so":return a.ordinalNumber(o,{unit:"second"});default:return Ct(i.length,o)}}},{key:"validate",value:function(o,i){return i>=0&&i<=59}},{key:"set",value:function(o,i,a){return o.setUTCSeconds(a,0),o}}]),n}(qe),NG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",30),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["t","T"]),r}return Fe(n,[{key:"parse",value:function(o,i){var a=function(c){return Math.floor(c*Math.pow(10,-i.length+3))};return Ot(Ct(i.length,o),a)}},{key:"set",value:function(o,i,a){return o.setUTCMilliseconds(a),o}}]),n}(qe),PG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",10),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["t","T","x"]),r}return Fe(n,[{key:"parse",value:function(o,i){switch(i){case"X":return Ar(Rr.basicOptionalMinutes,o);case"XX":return Ar(Rr.basic,o);case"XXXX":return Ar(Rr.basicOptionalSeconds,o);case"XXXXX":return Ar(Rr.extendedOptionalSeconds,o);case"XXX":default:return Ar(Rr.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),n}(qe),IG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",10),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens",["t","T","X"]),r}return Fe(n,[{key:"parse",value:function(o,i){switch(i){case"x":return Ar(Rr.basicOptionalMinutes,o);case"xx":return Ar(Rr.basic,o);case"xxxx":return Ar(Rr.basicOptionalSeconds,o);case"xxxxx":return Ar(Rr.extendedOptionalSeconds,o);case"xxx":default:return Ar(Rr.extended,o)}}},{key:"set",value:function(o,i,a){return i.timestampIsSet?o:new Date(o.getTime()-a)}}]),n}(qe),jG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",40),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens","*"),r}return Fe(n,[{key:"parse",value:function(o){return _A(o)}},{key:"set",value:function(o,i,a){return[new Date(a*1e3),{timestampIsSet:!0}]}}]),n}(qe),LG=function(e){ze(n,e);var t=We(n);function n(){var r;Le(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),g._defineProperty(g._assertThisInitialized(r),"priority",20),g._defineProperty(g._assertThisInitialized(r),"incompatibleTokens","*"),r}return Fe(n,[{key:"parse",value:function(o){return _A(o)}},{key:"set",value:function(o,i,a){return[new Date(a),{timestampIsSet:!0}]}}]),n}(qe),FG={G:new nG,y:new rG,Y:new oG,R:new iG,u:new aG,Q:new sG,q:new lG,M:new cG,L:new uG,w:new pG,I:new fG,d:new vG,D:new bG,E:new yG,e:new wG,c:new xG,i:new CG,a:new kG,b:new SG,B:new TG,h:new EG,H:new OG,K:new DG,k:new RG,m:new AG,s:new MG,S:new NG,X:new PG,x:new IG,t:new jG,T:new LG},BG=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,HG=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,$G=/^'([^]*?)'?$/,zG=/''/g,WG=/\S/,UG=/[a-zA-Z]/;function _m(e,t,n,r){var o,i,a,s,c,l,u,d,p,f,m,b,v,w,_,T,y,k;g.requiredArgs(3,arguments);var S=String(e),x=String(t),C=g.getDefaultOptions(),O=(o=(i=r==null?void 0:r.locale)!==null&&i!==void 0?i:C.locale)!==null&&o!==void 0?o:g.locale;if(!O.match)throw new RangeError("locale must contain match property");var D=g.toInteger((a=(s=(c=(l=r==null?void 0:r.firstWeekContainsDate)!==null&&l!==void 0?l:r==null||(u=r.locale)===null||u===void 0||(d=u.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&c!==void 0?c:C.firstWeekContainsDate)!==null&&s!==void 0?s:(p=C.locale)===null||p===void 0||(f=p.options)===null||f===void 0?void 0:f.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=g.toInteger((m=(b=(v=(w=r==null?void 0:r.weekStartsOn)!==null&&w!==void 0?w:r==null||(_=r.locale)===null||_===void 0||(T=_.options)===null||T===void 0?void 0:T.weekStartsOn)!==null&&v!==void 0?v:C.weekStartsOn)!==null&&b!==void 0?b:(y=C.locale)===null||y===void 0||(k=y.options)===null||k===void 0?void 0:k.weekStartsOn)!==null&&m!==void 0?m:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(x==="")return S===""?g.toDate(n):new Date(NaN);var M={firstWeekContainsDate:D,weekStartsOn:R,locale:O},F=[new tG],N=x.match(HG).map(function(J){var A=J[0];if(A in Vv){var L=Vv[A];return L(J,O.formatLong)}return J}).join("").match(BG),I=[],j=zS(N),$;try{var Y=function(){var A=$.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&vA(A)&&uu(A,x,e),!(r!=null&&r.useAdditionalDayOfYearTokens)&&mA(A)&&uu(A,x,e);var L=A[0],z=FG[L];if(z){var Q=z.incompatibleTokens;if(Array.isArray(Q)){var X=I.find(function(ae){return Q.includes(ae.token)||ae.token===L});if(X)throw new RangeError("The format string mustn't contain `".concat(X.fullToken,"` and `").concat(A,"` at the same time"))}else if(z.incompatibleTokens==="*"&&I.length>0)throw new RangeError("The format string mustn't contain `".concat(A,"` and any other token at the same time"));I.push({token:L,fullToken:A});var Z=z.run(S,A,O.match,M);if(!Z)return{v:new Date(NaN)};F.push(Z.setter),S=Z.rest}else{if(L.match(UG))throw new RangeError("Format string contains an unescaped latin alphabet character `"+L+"`");if(A==="''"?A="'":L==="'"&&(A=YG(A)),S.indexOf(A)===0)S=S.slice(A.length);else return{v:new Date(NaN)}}};for(j.s();!($=j.n()).done;){var U=Y();if(g._typeof(U)==="object")return U.v}}catch(J){j.e(J)}finally{j.f()}if(S.length>0&&WG.test(S))return new Date(NaN);var G=F.map(function(J){return J.priority}).sort(function(J,A){return A-J}).filter(function(J,A,L){return L.indexOf(J)===A}).map(function(J){return F.filter(function(A){return A.priority===J}).sort(function(A,L){return L.subPriority-A.subPriority})}).map(function(J){return J[0]}),K=g.toDate(n);if(isNaN(K.getTime()))return new Date(NaN);var oe=dA(K,cu(K)),ne={},re=zS(G),ie;try{for(re.s();!(ie=re.n()).done;){var ce=ie.value;if(!ce.validate(oe,M))return new Date(NaN);var se=ce.set(oe,ne,M);Array.isArray(se)?(oe=se[0],qV(ne,se[1])):oe=se}}catch(J){re.e(J)}finally{re.f()}return oe}function YG(e){return e.match($G)[1].replace(zG,"'")}function qG(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getFullYear()===r.getFullYear()&&n.getMonth()===r.getMonth()}function VG(e,t){g.requiredArgs(2,arguments);var n=Qv(e),r=Qv(t);return n.getTime()===r.getTime()}function GG(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toDate(t);return n.getFullYear()===r.getFullYear()}function Fs(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e).getTime(),r=g.toDate(t.start).getTime(),o=g.toDate(t.end).getTime();if(!(r<=o))throw new RangeError("Invalid interval");return n>=r&&n<=o}function QG(e,t){if(g.requiredArgs(2,arguments),g._typeof(t)!=="object"||t===null)throw new RangeError("values parameter must be an object");var n=g.toDate(e);return isNaN(n.getTime())?new Date(NaN):(t.year!=null&&n.setFullYear(t.year),t.month!=null&&(n=g.setMonth(n,t.month)),t.date!=null&&n.setDate(g.toInteger(t.date)),t.hours!=null&&n.setHours(g.toInteger(t.hours)),t.minutes!=null&&n.setMinutes(g.toInteger(t.minutes)),t.seconds!=null&&n.setSeconds(g.toInteger(t.seconds)),t.milliseconds!=null&&n.setMilliseconds(g.toInteger(t.milliseconds)),n)}function lc(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t);return n.setHours(r),n}function cc(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t);return n.setMinutes(r),n}function Gi(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t),o=Math.floor(n.getMonth()/3)+1,i=r-o;return g.setMonth(n,n.getMonth()+i*3)}function JG(e,t){g.requiredArgs(2,arguments);var n=g.toDate(e),r=g.toInteger(t);return n.setSeconds(r),n}const ZG=2e4,KG={enabled:!0,delay:500},XG={locale:g.getBaseDateFnsLocale(),dateConfig:g.defaultDateConfig,loadingIndicatorConfig:KG,language:"en",queryCacheConfig:{enabled:!1},queryLimit:ZG,accessibilityConfig:{enabled:!1},errorBoundaryConfig:{alwaysShowErrorText:!1}};function eQ(e,t,n){return qn(this,null,function*(){const r=yield tQ(t,n);return g.merge.withOptions({mergeArrays:!1},XG,r,e)})}function tQ(e,t=!1){return qn(this,null,function*(){const n=yield e.get("api/globals"),r=t?{colors:g.getDefaultThemeSettings().palette.variantColors}:yield g.getLegacyPalette(g.getPaletteName(n.designSettings),e);return{serverThemeSettings:g.convertToThemeSettings(n.designSettings,r),serverLanguage:n.language,serverVersion:n.version}})}class SA{constructor(t,n,r){Je(this,"httpClient");Je(this,"pivotClient");Je(this,"queryClient");Je(this,"defaultDataSource");Je(this,"settings");Je(this,"queryCache");window.addEventListener("unhandledrejection",o=>{o.reason instanceof Error?console.error(o.reason.message):console.error(o.reason)}),this.httpClient=new yN(t,n,"sdk-ui-1.12.0"),this.pivotClient=new lA(this.httpClient),this.queryClient=new gV(this.httpClient,this.pivotClient),this.queryCache={clear:g.clearExecuteQueryCache},r!==void 0&&(this.defaultDataSource=r)}}const TA=s=>qn(exports,[s],function*({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,appConfig:i,enableSilentPreAuth:a}){if(t!==void 0){const c=ZM(t,void 0,void 0,n,r,o,a);if(c){const l=new SA(t,c,e),u=yield l.httpClient.login(),d="wat"in c||!u;return l.settings=yield eQ(i||{},l.httpClient,d),l}}throw new g.TranslatableError("errors.sisenseContextNoAuthentication")}),nQ=e=>"levels"in e&&e.isCascading===!0,rQ=e=>({columns:e.columns.map(t=>({widthPercentage:t.width,rows:(t.cells||[]).map(n=>{const r=n.subcells.reduce((o,i)=>o+i.width,0);return{cells:n.subcells.map(o=>({widthPercentage:r<100?o.width/(r/100):o.width,height:o.elements[0].height,widgetId:o.elements[0].widgetid}))}})}))}),oQ=e=>{var n;const t=g.createFilterFromJaql(e.jaql);return t.disabled=(n=e.disabled)!=null?n:!1,t},iQ=e=>{var r;const t=e.levels.map(o=>g.createFilterFromJaql(o)),n=new g.CascadingFilter(t);return n.disabled=(r=e.disabled)!=null?r:!1,n};function aQ(e){return e.map(t=>nQ(t)?iQ(t):oQ(t))}class EA{constructor(t){Je(this,"oid");Je(this,"title");Je(this,"dataSource");Je(this,"widgets");Je(this,"layout");Je(this,"filters");const{oid:n,title:r,datasource:o,widgets:i,layout:a,filters:s}=t;this.oid=n,this.title=r,this.dataSource={title:o.title,type:o.live?"live":"elasticube"},this.widgets=(i==null?void 0:i.map(_J))||[],this.layout=a?rQ(a):{columns:[]},this.filters=aQ(s||[])}getDashboardProps(){return{title:this.title,dataSource:this.dataSource,widgets:this.widgets,layout:this.layout,filters:this.filters}}}function OA(r,o){return qn(this,arguments,function*(e,t,n={}){const{includeWidgets:i,includeFilters:a}=n,s=new g.RestApi(e),c=["oid","title","datasource"];i&&c.push("layout"),a&&c.push("filters");const l=[s.getDashboard(t,{fields:c})];i&&l.push(s.getDashboardWidgets(t));const[u,d]=yield Promise.all(l);return d&&(u.widgets=d),new EA(u)})}function DA(n){return qn(this,arguments,function*(e,t={}){const{includeWidgets:r,searchByTitle:o}=t,i=new g.RestApi(e),a=[];let s=["oid","title","datasource"];return r&&(s=[],a.push("widgets")),(yield i.getDashboards({fields:s,expand:a,searchByTitle:o})).map(l=>new EA(l))})}function Ti(e,t,n){const r=g.usePrevious(e);return!r||t.some(i=>!g.isEqual(r[i],e[i]))?!0:n?n(e,r):!1}function $o({enabled:e},t){const n=H.useRef(!1);return H.useCallback((r,o=!1)=>{const i=e===!1||!r,a=n.current;return n.current=i,!i&&(a||t||o)},[e,t])}function nr(e,t){switch(t.type){case"loading":return sQ(e);case"success":return lQ(t.data);case"error":return cQ(t.error)}}function sQ(e){return de(te({},e),{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0})}function lQ(e){return{isLoading:!1,isError:!1,isSuccess:!0,data:e,status:"success",error:void 0}}function cQ(e){return{isLoading:!1,isError:!0,isSuccess:!1,data:void 0,status:"error",error:e}}const RA=g.withTracking("useGetDashboardModel")(uQ);function uQ(e){const t=Ti(e,["dashboardOid"]),n=$o(e,t),[r,o]=H.useReducer(nr,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=g.useSisenseContext();return H.useEffect(()=>{if(i||o({type:"error",error:new g.TranslatableError("errors.sisenseContextNotFound")}),n(a)){o({type:"loading"});const{dashboardOid:s,includeWidgets:c,includeFilters:l}=e;OA(a.httpClient,s,{includeWidgets:c,includeFilters:l}).then(u=>{o({type:"success",data:u})}).catch(u=>{o({type:"error",error:u})})}},[a,i,e,n]),r.data&&t?Kv(nr(r,{type:"loading"})):Kv(r)}function Kv(e){const r=e,{data:t}=r,n=Rn(r,["data"]);return de(te({},n),{dashboard:t})}const dQ=g.withTracking("useGetDashboardModels")(pQ);function pQ(e={}){const t=Ti(e,["includeWidgets"]),n=$o(e,t),[r,o]=H.useReducer(nr,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=g.useSisenseContext();return H.useEffect(()=>{i||o({type:"error",error:new g.TranslatableError("errors.sisenseContextNotFound")}),n(a)&&(o({type:"loading"}),DA(a.httpClient,e).then(s=>{o({type:"success",data:s})}).catch(s=>{o({type:"error",error:s})}))},[a,i,e,n]),r.data&&t?Xv(nr(r,{type:"loading"})):Xv(r)}function Xv(e){const r=e,{data:t}=r,n=Rn(r,["data"]);return de(te({},n),{dashboards:t})}function wi(e,t){return e===void 0&&t===void 0?!1:[e,t].some(n=>n===void 0)||e.length!==t.length?!0:e.length===0&&t.length===0?!1:e.some((n,r)=>!g.isEqualWith(n,t[r],(o,i)=>{const a=WS(o)?de(te({},o.toJSON()),{name:void 0}):o,s=WS(i)?de(te({},i.toJSON()),{name:void 0}):i;return g.isEqual(a,s)}))}function WS(e){return"toJSON"in e&&typeof e.toJSON=="function"}function hQ(e,t,n,r){if(n===void 0&&r===void 0)return!1;if([n,r].some(i=>i===void 0))return!0;function o(i,a){const s=i,c=i,l=a,u=a;return i===void 0&&a===void 0?!0:[i,a].some(d=>d===void 0)||s.operator!==l.operator?!1:c.instanceid&&u.instanceid?!wi(e==null?void 0:e.filter(d=>d.guid===c.instanceid),t==null?void 0:t.filter(d=>d.guid===u.instanceid)):o(s.left,l.left)&&o(s.right,l.right)||o(s.left,l.right)&&o(s.right,l.left)}return!o(n,r)}function US(e,t){return nr(e,t)}const fQ=g.withTracking("useExecutePivotQuery")(AA);function AA(e){const t=mQ(e),n=$o(e,t),[r,o]=H.useReducer(US,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=g.useSisenseContext();return H.useEffect(()=>{if(i||o({type:"error",error:new g.TranslatableError("errors.executeQueryNoSisenseContext")}),n(a)){o({type:"loading"});const{dataSource:s,rows:c,columns:l,values:u,grandTotals:d,filters:p,highlights:f,count:m,offset:b,onBeforeQuery:v}=e,{filters:w,relations:_}=g.getFilterListAndRelations(p);g.executePivotQuery({dataSource:s,rows:c,columns:l,values:u,grandTotals:d,filters:w,filterRelations:_,highlights:f,count:m,offset:b},a,{onBeforeQuery:v}).then(T=>{o({type:"success",data:T})}).catch(T=>{o({type:"error",error:T})})}},[a,i,e,n]),r.data&&t?US(r,{type:"loading"}):r}const gQ=["dataSource","rows","columns","values","grandTotals","count","offset","onBeforeQuery"];function mQ(e){return Ti(e,gQ,(t,n)=>{const{filters:r}=g.getFilterListAndRelations(n.filters),{filters:o}=g.getFilterListAndRelations(t.filters);return wi(r,o)||wi(n.highlights,t.highlights)})}var vQ=g._baseGetTag,bQ=g.isArray_1,yQ=g.isObjectLike_1,wQ="[object String]";function xQ(e){return typeof e=="string"||!bQ(e)&&yQ(e)&&vQ(e)==wQ}var _Q=xQ;const CQ=g.getDefaultExportFromCjs(_Q);function MA(e){return CQ(e)?{direction:e}:e}function YS(e,t){return{valuesIndex:e.field-(t.rows||[]).length-(t.columns||[]).length,columnsMembersPath:Object.values(e.measurePath||{})}}function kQ({type:e,settings:t,sortDetails:n},r){return e==="simple"?n.field>=(r.rows||[]).length?[{rowIndex:0,sort:{direction:g.getSortType(t[0].direction),by:YS(n,r)}}]:[{rowIndex:n.field,sort:{direction:g.getSortType(t[0].direction)}}]:t.reduce((o,i,a)=>{var d;const s=(d=r.rows)==null?void 0:d[a],c=(s==null?void 0:s.sortType)&&MA(s==null?void 0:s.sortType),l={direction:g.getSortType(i.direction),by:YS(n,r)};return!i.selected&&g.isEqual(c==null?void 0:c.by,l.by)&&o.push({rowIndex:a,sort:null}),i.selected&&o.push({rowIndex:a,sort:l}),o},[])}const qS=e=>te({attribute:g.translateCategoryToAttribute(e),includeSubTotals:e.includeSubTotals||!1},e.sortType&&{sort:MA(e.sortType)}),SQ=e=>({measure:g.translateValueToMeasure(e),totalsCalculation:e.totalsCalculation,dataBars:e.dataBars||!1}),NA=e=>{const{rows:t=[],columns:n=[],values:r=[],grandTotals:o}=e,i=t.flatMap(qS),a=n.flatMap(qS),s=r.flatMap(SQ);return{rows:i,columns:a,values:s,grandTotals:o}},TQ=({dataSet:e,dataOptionsInternal:t,filters:n,highlights:r,refreshCounter:o})=>{const i=H.useRef(null),{rows:a,columns:s,values:c,grandTotals:l}=NA(t),u=H.useCallback(v=>{i.current=v},[o]),d={dataSource:e,rows:a,columns:s,values:c,grandTotals:l,filters:n,highlights:r,onBeforeQuery:u},{isLoading:p,isSuccess:f,isError:m,error:b}=AA(d);return{isLoading:p,isSuccess:f,isError:m,error:b,jaql:i.current}};function EQ(e,t,n){var r;return n(e,function(o,i,a){if(t(o,i,a))return r=i,!1}),r}var OQ=EQ,DQ=OQ,RQ=g._baseForOwn,AQ=g._baseIteratee;function MQ(e,t){return DQ(e,AQ(t),RQ)}var NQ=MQ;const PQ=g.getDefaultExportFromCjs(NQ);function Md(e,t){var c,l;const n="formula"in e;let r;if(e.sort&&(r=e.sort==="asc"?g.Sort.Ascending:g.Sort.Descending),n){const u=g.mapValues((c=e.context)!=null?c:{},d=>typeof d=="string"?d:d&&Md(d));return new g.DimensionalCalculatedMeasure(e.title,e.formula,u,void 0,void 0,r)}const o=!!e.agg,i=e.datatype===g.DataType.DATETIME,a=e.datatype===g.DataType.NUMERIC?g.MetadataTypes.NumericAttribute:g.MetadataTypes.TextAttribute,s=i?new g.DimensionalLevelAttribute(e.title,e.dim,g.DimensionalLevelAttribute.translateJaqlToGranularity(e),(l=t==null?void 0:t.mask)==null?void 0:l[e.level],void 0,r):new g.DimensionalAttribute(e.title,e.dim,a,void 0,r);return o?new g.DimensionalBaseMeasure(e.title,s,g.DimensionalBaseMeasure.aggregationFromJAQL(e.agg||""),void 0,void 0,r):"filter"in e?g.createFilterFromJaql(e):s}function IQ(e){return e.percent||e.type==="percent"?"Percent":e.currency?"Currency":"Numbers"}function jQ(e){return e.decimals!==void 0&&e.decimals!=="auto"?typeof e.decimals=="string"?Number.parseFloat(e.decimals):e.decimals:"auto"}function LQ(e){var r,o,i,a,s,c,l,u;const t=e.jaql.datatype==="numeric"||"context"in e.jaql,n=(r=e.format)==null?void 0:r.mask;return t&&n?{decimalScale:jQ(n),kilo:(o=n.abbreviations)==null?void 0:o.k,million:(i=n.abbreviations)==null?void 0:i.m,billion:(a=n.abbreviations)==null?void 0:a.b,trillion:(s=n.abbreviations)==null?void 0:s.t,thousandSeparator:(c=n.number)==null?void 0:c.separated,prefix:((l=n.currency)==null?void 0:l.position)===g.CurrencyPosition.PRE,symbol:(u=n.currency)==null?void 0:u.symbol,name:IQ(n)}:null}function Sa(e,t){var a,s,c,l,u;const n=Md(e.jaql,e.format),r=g.getSortType((a=e.jaql.sort)!=null?a:e.categoriesSorting),o=LQ(e),i=(s=e.format)==null?void 0:s.subtotal;if(g.MetadataTypes.isMeasure(n)){const d=g.createValueColorOptions((c=e.format)==null?void 0:c.color,t),p=e.y2,f=e.singleSeriesType,m="subtotalAgg"in e.jaql&&e.jaql.subtotalAgg,b=(l=e.format)==null?void 0:l.databars;return te(te(te(te(te(te(te({column:n},d&&{color:d}),p&&{showOnRightAxis:p}),r&&{sortType:r}),f&&{chartType:f}),o&&{numberFormatConfig:o}),m&&{totalsCalculation:m}),b&&{dataBars:b})}return te(te(te({column:n,isColored:(u=e.isColored)!=null?u:!1},r&&{sortType:r}),o&&{numberFormatConfig:o}),i&&{includeSubTotals:i})}const FQ=(e,t)=>{const n={};return e.forEach(r=>{r.name!=="filters"&&(n[r.name.toLowerCase()]=ct(e,r.name,t))}),n};function eb(e,t,n){return g.getEnabledPanelItems(e,t).map(g.getRootPanelItem).map(n)}function ct(e,t,n){return eb(e,t,r=>Sa(r,n))}function BQ(e,t,n){var u,d;const o=["chart/line","chart/area"].includes(t)?"x-axis":"categories",i=ct(e,o,n),a=ct(e,"values",n),s=ct(e,"break by",n),c=(d=(u=g.getEnabledPanelItems(e,"break by")[0])==null?void 0:u.format)==null?void 0:d.members,l=c&&g.createValueToColorMap(c);return te({category:i,value:a,breakBy:s},l&&{seriesToColorMap:l})}function HQ(e,t,n){var c,l,u,d;const r=ct(t,"categories",n),o=ct(t,"values",n),i=ct(t,"size",n);let a,s;return e==="sunburst"?s=g.createValueToColorMultiColumnsMap(g.getEnabledPanelItems(t,"categories")):(a=(l=(c=g.getEnabledPanelItems(t,"categories")[0])==null?void 0:c.format)==null?void 0:l.members,g.getEnabledPanelItems(t,"color").length&&(a=(d=(u=g.getEnabledPanelItems(t,"color")[0])==null?void 0:u.format)==null?void 0:d.members),s=a&&g.createValueToColorMap(a)),te({category:r,value:[...o,...i]},s&&{seriesToColorMap:s})}function $Q(e,t){var l,u;const[n]=ct(e,"x-axis",t),[r]=ct(e,"y-axis",t),[o]=ct(e,"point",t),[i]=ct(e,"Break By / Color",t),[a]=ct(e,"size",t),s=(u=(l=g.getEnabledPanelItems(e,"Break By / Color")[0])==null?void 0:l.format)==null?void 0:u.members,c=s&&g.createValueToColorMap(s);return te({x:n,y:r,breakByPoint:o,breakByColor:i,size:a},c&&{seriesToColorMap:c})}function zQ(e,t){const n=ct(e,"value",t),r=ct(e,"secondary",t),o=ct(e,"min",t),i=ct(e,"max",t);return{value:n,secondary:r,min:o,max:i}}function WQ(e,t){return{columns:ct(e,"columns",t)}}function UQ(e,t,n){let r;const o={},i=ct(e,"columns",n),a=eb(e,"values",(c,l)=>{const{field:u,jaql:d}=c,{sortDetails:p}=d;return p&&(r=p),u&&(o[u.index]=l),Sa(c,n)});return{rows:eb(e,"rows",(c,l,u)=>{var b;const d=l===u.length-1;let{sortDetails:p}=c==null?void 0:c.jaql;const f=Sa(c,n);f.column=f.column.sort(g.Sort.None),d&&r&&(p=r);const m=(p==null?void 0:p.field)!==((b=c.field)==null?void 0:b.index);return p&&(f.sortType=te({direction:g.getSortType(p.dir)},m&&{by:{valuesIndex:o[p.field],columnsMembersPath:Object.values(p.measurePath||{})}})),f}),columns:i,values:a,grandTotals:{rows:t.rowsGrandTotal,columns:t.columnsGrandTotal}}}function YQ(e){const t={"whisker/iqr":"iqr","whisker/extremums":"extremums","whisker/deviation":"standardDeviation"},n=PQ(e.whisker,r=>r);return t[n]}function qQ(e,t,n){const r=ct(e,"category",n),o=ct(e,"value",n),i=YQ(t),a=t.outliers.enabled;return{category:r,value:o,boxType:i,outliersEnabled:a}}function VQ(e,t){return g.getEnabledPanelItems(e,"geo").map(g.getRootPanelItem).map(n=>{const r=Sa(n,t);return"geoLevel"in n?de(te({},r),{level:n.geoLevel}):r})}function GQ(e,t){const n=VQ(e,t),r=ct(e,"size",t)[0],o=ct(e,"color",t)[0],i=ct(e,"details",t)[0];return{geo:n,size:r,colorBy:o,details:i}}function QQ(e,t){const n=[ct(e,"geo",t)[0]],r=[ct(e,"color",t)[0]];return{geo:n,color:r}}function JQ(e,t,n,r){if(ZQ(e))return BQ(t,e,r);if(KQ(e))return HQ(e,t,r);if(e==="chart/scatter")return $Q(t,r);if(e==="indicator")return zQ(t,r);if(g.isTableWidget(e))return WQ(t,r);if(g.isPivotWidget(e))return UQ(t,n,r);if(e==="chart/boxplot")return qQ(t,n,r);if(e==="map/scatter")return GQ(t,r);if(e==="map/area")return QQ(t,r);throw new g.TranslatableError("errors.unsupportedWidgetType",{widgetType:e})}function ZQ(e){return["chart/line","chart/area","chart/bar","chart/column","chart/polar"].includes(e)}function KQ(e){return["chart/pie","chart/funnel","treemap","sunburst"].includes(e)}const PA=e=>e!=null&&e.parent?[...PA(e.parent),Sa(e).column]:[],IA=e=>{var t,n,r;if(e!=null&&e.parent&&e.through&&"filter"in e.through.jaql){const o=Sa(e).column,{jaql:i,format:{mask:a}={}}=e.parent,s="level"in i&&i.level&&a&&a[i.level],c=(r=(n=(t=e.through.jaql.filter)==null?void 0:t.members)==null?void 0:n.map(s?l=>({categoryValue:l,categoryDisplayValue:g.applyDateFormat(new Date(l),s)}):l=>({categoryValue:l})))!=null?r:[];return[...IA(e.parent),{nextDimension:o,points:c}]}return[]};function XQ(e){switch(e){case"chart/line":case"chart/area":return"x-axis";case"chart/boxplot":return"category";default:return"categories"}}const eJ=(e,t)=>{const n=XQ(e),r=g.getEnabledPanelItems(t,n)[0],o=IA(r);return{drilldownDimensions:PA(r),drilldownSelections:o}};function Gy(e){const a=e.filter,{filter:t}=a,n=Rn(a,["filter"]),r=t&&"turnedOff"in t&&t.turnedOff;let o,i;return r?i=t:o=t,n.members&&n.members.length===0&&(n.all=!0),{filter:n,backgroundFilter:o,turnOffMembersFilter:i}}function tJ(e){const{filter:t,backgroundFilter:n,turnOffMembersFilter:r}=Gy(e.jaql),o=[de(te({},e),{jaql:de(te({},e.jaql),{filter:te(te({},t),r&&{filter:r})})})];return n&&o.push(de(te({},e),{jaql:de(te({},e.jaql),{filter:n}),disabled:!1})),o}function nJ(e){const t=e.find(r=>r.name==="filters"),n=[];return t==null||t.items.forEach(r=>{n.push(...tJ(r).filter(({disabled:o})=>!o))}),n}function rJ(e){return nJ(e).map(t=>g.createFilterFromJaql(t.jaql,t.instanceid))}function Ei(e,t){const n=g.getChartSubtype(e);return te(te({},t),n&&{subtype:n})}function Zr(e){const{min:t,max:n}=e||{};return de(te({},e),{min:typeof t=="number"?t:null,max:typeof n=="number"?n:null})}function oJ(e,t,n){var w,_,T,y,k,S,x,C,O,D;const r={xAxis:Zr(t.xAxis),yAxis:Zr(t.yAxis),y2Axis:Zr(t.y2Axis)},i=["chart/line","chart/area"].includes(e)?"x-axis":"categories",a=g.getEnabledPanelItems(n,i),s=g.getEnabledPanelItems(n,"values"),c=a.length===2;c&&(r.xAxis=de(te({},r.xAxis),{title:(w=r.xAxis)==null?void 0:w.x2Title,x2Title:(_=r.xAxis)==null?void 0:_.title}));const l=!!((T=r.xAxis)!=null&&T.title&&"text"in r.xAxis.title),u=a[a.length-1];!l&&u&&(r.xAxis=de(te({},r.xAxis),{title:de(te({},(y=r.xAxis)==null?void 0:y.title),{text:u.jaql.title})}));const d=!!((k=r.xAxis)!=null&&k.x2Title&&"text"in r.xAxis.x2Title),p=a[0];!d&&c&&(r.xAxis=de(te({},r.xAxis),{x2Title:de(te({},(S=r.xAxis)==null?void 0:S.x2Title),{text:p.jaql.title})}));const f=!!((x=r.yAxis)!=null&&x.title&&"text"in r.yAxis.title),m=s.filter(R=>!R.y2);!f&&m.length===1&&(r.yAxis=de(te({},r.yAxis),{title:de(te({},(C=r.yAxis)==null?void 0:C.title),{text:m[0].jaql.title})}));const b=!!((O=r.y2Axis)!=null&&O.title&&"text"in r.y2Axis.title),v=s.filter(R=>R.y2);return!b&&v.length===1&&(r.y2Axis=de(te({},r.y2Axis),{title:de(te({},(D=r.y2Axis)==null?void 0:D.title),{text:v[0].jaql.title})})),r}function iJ(e,t){var i,a;const n={xAxis:Zr(e.categories),yAxis:Zr(e.axis)},r=g.getEnabledPanelItems(t,"categories")[0];return!!!((i=n.xAxis)!=null&&i.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=de(te({},n.xAxis),{title:de(te({},(a=n.xAxis)==null?void 0:a.title),{text:r.jaql.title})})),n.yAxis=de(te({},n.yAxis),{title:{enabled:!1}}),n}function aJ(e,t){var s,c,l,u;const n={xAxis:Zr(e.xAxis),yAxis:Zr(e.yAxis)},r=g.getEnabledPanelItems(t,"x-axis")[0],o=g.getEnabledPanelItems(t,"y-axis")[0];return!!!((s=n.xAxis)!=null&&s.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=de(te({},n.xAxis),{title:de(te({},(c=n.xAxis)==null?void 0:c.title),{text:r.jaql.title})})),!!!((l=n.yAxis)!=null&&l.title&&"text"in n.yAxis.title)&&o&&(n.yAxis=de(te({},n.yAxis),{title:de(te({},(u=n.yAxis)==null?void 0:u.title),{text:o.jaql.title})})),n}function sJ(e,t){var s,c,l,u;const n={xAxis:Zr(e.xAxis),yAxis:Zr(e.yAxis)},r=g.getEnabledPanelItems(t,"category")[0],o=g.getEnabledPanelItems(t,"value")[0];return!!!((s=n.xAxis)!=null&&s.title&&"text"in n.xAxis.title)&&r&&(n.xAxis=de(te({},n.xAxis),{title:de(te({},(c=n.xAxis)==null?void 0:c.title),{text:r.jaql.title})})),!!!((l=n.yAxis)!=null&&l.title&&"text"in n.yAxis.title)&&o&&(n.yAxis=de(te({},n.yAxis),{title:de(te({},(u=n.yAxis)==null?void 0:u.title),{text:o.jaql.title})})),n}function lJ(e,t,n,r){return de(te(te({},Ei(t,n)),oJ(e,n,r)),{lineWidth:n.lineWidth,markers:n.markers})}function cJ(e,t,n){return te(te({},Ei(e,t)),iJ(t,n))}function uJ(e,t,n){var r,o,i;return de(te(te({},Ei(e,t)),aJ(t,n)),{markerSize:{scatterDefaultSize:(r=t.markerSize)==null?void 0:r.defaultSize,scatterBubbleMinSize:(o=t.markerSize)==null?void 0:o.min,scatterBubbleMaxSize:(i=t.markerSize)==null?void 0:i.max}})}function dJ(e){return{header:{color:{enabled:e["colors/headers"]}},rows:{alternatingColor:{enabled:e["colors/rows"]}},columns:{alternatingColor:{enabled:e["colors/columns"]}}}}function pJ(e,t){return de(te({},Ei(e,t)),{funnelSize:t.size,funnelType:t.type,funnelDirection:t.direction,labels:t.labels,legend:t.legend})}const hJ=(e,t)=>{const n=g.getChartSubtype(e);return n==="indicator/gauge"?{subtype:n,skin:+t.skin}:t.subtype==="bar"?{subtype:n,numericSubtype:"numericBar"}:{subtype:n,numericSubtype:"numericSimple",skin:t.skin}};function fJ(e,t,n){var a,s,c,l,u,d,p,f;const r=hJ(e,t),o=(a=g.getEnabledPanelItems(n,"value")[0])==null?void 0:a.jaql.title,i=(s=g.getEnabledPanelItems(n,"secondary")[0])==null?void 0:s.jaql.title;return de(te({},r),{indicatorComponents:{title:{shouldBeShown:((l=(c=t.components)==null?void 0:c.title)==null?void 0:l.enabled)||!1,text:o},secondaryTitle:{text:i||""},ticks:{shouldBeShown:((d=(u=t.components)==null?void 0:u.ticks)==null?void 0:d.enabled)||!1},labels:{shouldBeShown:((f=(p=t.components)==null?void 0:p.labels)==null?void 0:f.enabled)||!1}}})}function gJ(e){var t,n,r,o;return{labels:{category:[{enabled:(t=e["title/1"])!=null?t:!0},{enabled:(n=e["title/2"])!=null?n:!0},{enabled:(r=e["title/3"])!=null?r:!0}]},tooltip:{mode:(o=e["tooltip/value"])==null||o?"value":"contribution"}}}function mJ(e){var t;return{legend:{enabled:e["legend/enabled"],position:e["legend/position"]},tooltip:{mode:(t=e["tooltip/value"])==null||t?"value":"contribution"}}}function vJ(e,t,n){return te(te({},Ei(e,t)),sJ(t,n))}function bJ(e,t){return de(te({},Ei(e,t)),{markers:{fill:t.markers.fill,size:{defaultSize:t.markers.size.defaultSize,minSize:t.markers.size.min,maxSize:t.markers.size.max}}})}function yJ(e){let t;switch(e){case"areamap/world":t="world";break;case"areamap/usa":t="usa";break;default:throw new g.TranslatableError("errors.unsupportedWidgetType",{widgetSubtype:e})}return{mapType:t}}function wJ(e){var t,n,r,o,i;return{rowsPerPage:parseInt(`${e.pageSize}`),isAutoHeight:e.automaticHeight,rowHeight:e.rowHeight,alternatingRowsColor:(t=e.colors)==null?void 0:t.rows,alternatingColumnsColor:(n=e.colors)==null?void 0:n.columns,headersColor:(r=e.colors)==null?void 0:r.headers,membersColor:(o=e.colors)==null?void 0:o.members,totalsColor:(i=e.colors)==null?void 0:i.totals}}function xJ(e,t,n,r){switch(e){case"chart/line":case"chart/area":case"chart/bar":case"chart/column":return lJ(e,t,n,r);case"chart/polar":return cJ(t,n,r);case"chart/scatter":return uJ(t,n,r);case"chart/funnel":return pJ(t,n);case"treemap":return gJ(n);case"sunburst":return mJ(n);case"chart/pie":return Ei(t,n);case"tablewidget":case"tablewidgetagg":return dJ(n);case"pivot":case"pivot2":return wJ(n);case"indicator":return fJ(t,n,r);case"chart/boxplot":return vJ(t,n,r);case"map/scatter":return bJ(t,n);case"map/area":return yJ(t);default:throw new g.TranslatableError("errors.unsupportedWidgetType",{widgetType:e})}}class Nd{constructor(t,n){Je(this,"oid");Je(this,"title");Je(this,"description");Je(this,"dataSource");Je(this,"widgetType");Je(this,"pluginType");Je(this,"pluginPanels");Je(this,"pluginStyles");Je(this,"dataOptions");Je(this,"styleOptions");Je(this,"filters");Je(this,"highlights");Je(this,"chartType");Je(this,"drilldownOptions");this.oid=t.oid,this.title=t.title,this.dataSource=t.datasource.title,this.description=t.desc||"";const r=t.type;g.isSupportedWidgetType(r)?(this.widgetType=r,this.dataOptions=JQ(this.widgetType,t.metadata.panels,t.style,n==null?void 0:n.palette.variantColors),this.styleOptions=xJ(r,t.subtype,t.style,t.metadata.panels)):(this.widgetType="plugin",this.pluginType=r,this.pluginPanels=t.metadata.panels,this.pluginStyles=t.style),this.drilldownOptions=eJ(this.widgetType,t.metadata.panels),this.filters=rJ(t.metadata.panels),this.chartType=g.isChartWidget(r)?g.getChartType(this.widgetType):void 0}getExecuteQueryParams(){if(g.isPivotWidget(this.widgetType))throw new Cm("getExecuteQueryParams");let t,n,r,o;if(g.isTableWidget(this.widgetType)){const{attributes:i,measures:a}=g.getTableAttributesAndMeasures(g.translateTableDataOptions(this.dataOptions));t=i,n=a,r=g.DEFAULT_TABLE_ROWS_PER_PAGE*g.PAGES_BATCH_SIZE+1,o=!0}else{const{attributes:i,measures:a}=g.getTranslatedDataOptions(this.dataOptions,this.chartType);t=i,n=a}return{dataSource:this.dataSource,dimensions:t,measures:n,filters:this.filters,highlights:this.highlights,count:r,ungroup:o}}getExecutePivotQueryParams(){if(!g.isPivotWidget(this.widgetType))throw new g.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getExecutePivotQueryParams"});const{rows:t,columns:n,values:r,grandTotals:o}=NA(g.translatePivotTableDataOptions(this.dataOptions));return{dataSource:this.dataSource,rows:t,columns:n,values:r,grandTotals:o,filters:this.filters,highlights:this.highlights}}getChartProps(){if(g.isPivotWidget(this.widgetType))throw new Cm("getChartProps");return g.isTableWidget(this.widgetType)?te({chartType:this.chartType},this.getTableProps()):{chartType:this.chartType,dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters,highlights:this.highlights}}getTableProps(){if(!g.isTableWidget(this.widgetType))throw new g.TranslatableError("errors.widgetModel.onlyTableWidgetSupported",{methodName:"getTableProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters}}getPivotTableProps(){if(!g.isPivotWidget(this.widgetType))throw new g.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getPivotTableProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSet:this.dataSource,filters:this.filters,highlights:this.highlights}}getChartWidgetProps(){if(g.isPivotWidget(this.widgetType))throw new Cm("getChartWidgetProps");return{chartType:this.chartType,dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,highlights:this.highlights,title:this.title,description:this.description||"",drilldownOptions:this.drilldownOptions}}getTableWidgetProps(){if(!g.isTableWidget(this.widgetType))throw new g.TranslatableError("errors.widgetModel.onlyTableWidgetSupported",{methodName:"getTableWidgetProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,title:this.title,description:this.description||""}}getPivotTableWidgetProps(){if(!g.isPivotWidget(this.widgetType))throw new g.TranslatableError("errors.widgetModel.onlyPivotWidgetSupported",{methodName:"getPivotTableWidgetProps"});return{dataOptions:this.dataOptions,styleOptions:this.styleOptions,dataSource:this.dataSource,filters:this.filters,highlights:this.highlights,title:this.title,description:this.description||""}}}class Cm extends g.TranslatableError{constructor(t){super("errors.widgetModel.pivotWidgetNotSupported",{methodName:t})}}function _J(e){return new Nd(e)}const Qy=o=>qn(exports,[o],function*({widgetOid:e,dashboardOid:t,includeDashboard:n,api:r}){const[i,a]=yield Promise.all([r.getWidget(e,t),n?r.getDashboard(t):void 0]);return{widget:i,dashboard:a}}),CJ=({widgetOid:e,dashboardOid:t,includeDashboard:n})=>{const[r,o]=H.useState(),i=g.useGetApi(),[a,s]=H.useState();return H.useEffect(()=>{Qy({widgetOid:e,dashboardOid:t,includeDashboard:n,api:i}).then(({widget:c,dashboard:l})=>{s({widget:c,dashboard:l})}).catch(c=>{o(c)})},[e,t,i,n]),de(te({},a),{error:r})};function jA(e,t,n){return qn(this,null,function*(){const r=new g.RestApi(e),{widget:o}=yield Qy({widgetOid:n,dashboardOid:t,api:r});return new Nd(o)})}const kJ=g.withTracking("useGetWidgetModel")(SJ);function SJ(e){const t=Ti(e,["dashboardOid","widgetOid"]),n=$o(e,t),[r,o]=H.useReducer(nr,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=g.useSisenseContext();return H.useEffect(()=>{if(i||o({type:"error",error:new g.TranslatableError("errors.sisenseContextNotFound")}),n(a)){o({type:"loading"});const{dashboardOid:s,widgetOid:c}=e;jA(a.httpClient,s,c).then(l=>{o({type:"success",data:l})}).catch(l=>{o({type:"error",error:l})})}},[a,i,e,n]),r.data&&t?VS(nr(r,{type:"loading"})):VS(r)}function VS(e){const r=e,{data:t}=r,n=Rn(r,["data"]);return de(te({},n),{widget:t})}function TJ(e){return e!=="plugin"}function EJ(e,t){const n=g.cloneDeep(e);return n.filters=t.concat(e.filters||[]),n}const di=(e,t)=>`${t}px solid ${e}`;var OJ=g._apply,DJ=g._arrayMap,RJ=g._baseIteratee,AJ=g._baseRest,MJ=g._baseUnary,NJ=g._flatRest;function PJ(e){return NJ(function(t){return t=DJ(t,MJ(RJ)),AJ(function(n){var r=this;return e(t,function(o){return OJ(o,r,n)})})})}var IJ=PJ,jJ=g._arrayMap,LJ=IJ,FJ=LJ(jJ),BJ=FJ;const GS=g.getDefaultExportFromCjs(BJ),LA=(e,t=-1)=>{var r,o,i;return[...(r=e.rows)!=null?r:[],...(o=e.columns)!=null?o:[],...(i=e.values)!=null?i:[]][t]},FA=e=>{const t=e&&"numberFormatConfig"in e?e.numberFormatConfig:void 0;return g.getCompleteNumberFormatConfig(t)},HJ=e=>g.translateColumnToCategory(e).dateFormat,$J=e=>(t,n,r,o)=>{var c;const i=LA(e,(c=o==null?void 0:o.field)==null?void 0:c.index),a=FA(i),s=t.value===null||typeof t.value=="undefined";t.content=s?"":g.applyFormatPlainText(a,t.value)},zJ="N\\A",WJ=(e,t)=>(n,r)=>{var s,c;const o=(r==null?void 0:r.panel)==="measures",i=n.userType===et.CORNER,a=LA(e,(s=r==null?void 0:r.field)==null?void 0:s.index);if(o||i||!a){n.content=n.value;return}switch((c=r==null?void 0:r.jaql)==null?void 0:c.datatype){case"numeric":n.content=g.applyFormatPlainText(FA(a),parseFloat(`${n.value}`));break;case"datetime":n.content=t(new Date(n.value),HJ(a));break;default:n.content=n.value}n.content===""&&(n.content=zJ)},UJ=()=>(e,t,n)=>{var l,u;const r=e.userType===et.CORNER,o=e.userType===et.SUB_TOTAL;if(!t||r||o)return;const i=n.metadata.find(({panel:d,jaql:p})=>{var w;const f=["rows","columns"].includes(d),m=p.dim===t.jaql.dim,b=t.jaql.datatype===p.datatype&&t.jaql.level===p.level,v=(w=p.in)==null?void 0:w.selected;return f&&m&&b&&v}),a=(u=(l=i==null?void 0:i.jaql)==null?void 0:l.in)==null?void 0:u.selected;if(!a)return;iP(a.jaql)(e.value)&&(e.state={isSelected:!0})},YJ=({dataService:e,dataOptions:t})=>{const{app:n}=g.useSisenseContext(),r=H.useCallback(GS([$J(t)]),[t]),o=H.useCallback((a,s)=>g.applyDateFormat(a,s,n==null?void 0:n.settings.locale,n==null?void 0:n.settings.dateConfig),[n]),i=H.useCallback(GS([WJ(t,o),UJ()]),[t]);H.useEffect(()=>(e.on(Um,r),e.on(Cc,i),()=>{e.off(Um,r),e.off(Cc,i)}),[e,r])},qJ="#cbced7",VJ="#ffff9c";function GJ(e,t){var o,i,a,s,c,l,u,d,p,f,m;let n,r;if((o=t==null?void 0:t.chart)!=null&&o.backgroundColor){const b=g.getDarkFactor(g.toColor((i=t==null?void 0:t.chart)==null?void 0:i.backgroundColor))<.5?.07:-.07;n=g.getSlightlyDifferentColor((a=t==null?void 0:t.chart)==null?void 0:a.backgroundColor,b),r=g.getSlightlyDifferentColor((s=t==null?void 0:t.chart)==null?void 0:s.backgroundColor,b*1.5)}return{fontFamily:(c=t==null?void 0:t.typography)==null?void 0:c.fontFamily,textColor:(l=t==null?void 0:t.chart)==null?void 0:l.textColor,backgroundColor:(u=t==null?void 0:t.chart)==null?void 0:u.backgroundColor,borderColor:qJ,fillColor:n,additionalFillColor:r,fillOptions:{alternatingRows:e==null?void 0:e.alternatingRowsColor,alternatingColumns:e==null?void 0:e.alternatingColumnsColor,columnsHeaders:e==null?void 0:e.headersColor,rowMembers:e==null?void 0:e.membersColor,totals:e==null?void 0:e.totalsColor},rowHeight:e==null?void 0:e.rowHeight,isAutoHeight:(d=e==null?void 0:e.isAutoHeight)!=null?d:!1,navigationPrimaryColor:(p=t==null?void 0:t.typography)==null?void 0:p.primaryTextColor,navigationSecondaryColor:(f=t==null?void 0:t.typography)==null?void 0:f.secondaryTextColor,selectionColor:(m=e==null?void 0:e.highlightColor)!=null?m:VJ}}const QJ=({dataOptions:e})=>{const[t,n]=H.useState(g.translatePivotTableDataOptions(e));return{dataOptionsInternal:t,updateSort(r){var o;n(de(te({},t),{rows:(o=t.rows)==null?void 0:o.map((i,a)=>{const s=r.rows.find(({rowIndex:c})=>c===a);return s?s.sort===null?g.safeCombine(i,{sortType:void 0}):g.safeCombine(i,{sortType:s.sort}):i})}))}}},JJ=25,BA=g.asSisenseComponent({componentName:"PivotTable"})(e=>{const[t,n]=H.useState(!1),{styleOptions:r={},dataSet:o,dataOptions:i,filters:a,highlights:s,refreshCounter:c=0}=e,l=H.useRef(null),[u,d]=H.useState(null),{app:p}=g.useSisenseContext(),{themeSettings:f}=g.useThemeContext(),m=p==null?void 0:p.pivotClient;if(!m)throw new Error("Pivot client not initialized");const{dataOptionsInternal:b,updateSort:v}=QJ({dataOptions:i}),{isError:w,error:_,jaql:T}=TQ({dataSet:o,dataOptionsInternal:b,filters:a,highlights:s,refreshCounter:c});if(w)throw _;const y=H.useMemo(()=>m.preparePivotBuilder(),[m]),k=H.useMemo(()=>m.prepareDataService(),[m,T]);YJ({dataService:k,dataOptions:i}),H.useEffect(()=>{if(l.current&&T&&u){const{rowsPerPage:C=JJ}=r,O=te({width:u.width,height:u.height,isPaginated:!0,itemsPerPage:C,isSelectedMode:!0},GJ(r,f));l.current.children.length?y.updateProps(O):y.render(l.current,O),y.updateDataService(k),n(!0),k.loadData(T).then(()=>{y.updateJaql(),n(!1)}).catch(R=>{throw n(!1),R})}},[T,k,y,m,r,u,f]);const S=H.useCallback(C=>{const O=kQ(C,b);v({rows:O})},[b,v]);H.useEffect(()=>(y.on(Vc,S),()=>{y.off(Vc,S)}),[y,S]);const x=H.useCallback(C=>{(C.width!==(u==null?void 0:u.width)||C.height!==(u==null?void 0:u.height))&&d(C)},[u,d]);return E.jsx(g.DynamicSizeContainer,{defaultSize:g.DEFAULT_PIVOT_TABLE_SIZE,size:{width:r==null?void 0:r.width,height:r==null?void 0:r.height},useContentSize:{height:r==null?void 0:r.isAutoHeight},onSizeChange:x,children:E.jsx(g.LoadingOverlay,{themeSettings:f,isVisible:t,children:E.jsx("div",{ref:l,"aria-label":"pivot-table-root"})})})}),HA=g.asSisenseComponent({componentName:"PivotTableWidget"})(e=>{var d;const[t,n]=H.useState(0),{app:r}=g.useSisenseContext(),{styleOptions:o,dataSource:i=r==null?void 0:r.defaultDataSource,dataOptions:a}=e,s=g.getWidgetDefaultSize("pivot",{hasHeader:!((d=o==null?void 0:o.header)!=null&&d.hidden)}),p=e.styleOptions||{},{width:c,height:l}=p,u=Rn(p,["width","height"]);return a?E.jsx(g.DynamicSizeContainer,{defaultSize:s,size:{width:c,height:l},useContentSize:{height:o==null?void 0:o.isAutoHeight},children:E.jsx(g.WidgetContainer,de(te({},e),{dataSetName:i&&g.getDataSourceName(i),onRefresh:()=>n(t+1),children:E.jsx(BA,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:u,filters:e.filters,highlights:e.highlights,refreshCounter:t})}))}):null}),xs=class xs{static get(t){return xs.pluginMap.get(t)}static register(t,n){xs.pluginMap.set(t,n)}};Je(xs,"pluginMap",new Map);let tb=xs;const nb="#f2f2f2",rb=4,QS=g.newStyled.div`
396
+ display: grid;
397
+ grid-template-columns: ${({widths:e})=>e.map(t=>`${t}%`).join(" ")};
398
+ `,ZJ=g.newStyled.div`
399
+ &:not(:first-of-type) {
400
+ border-left: ${di(nb,rb)};
401
+ }
402
+ `,KJ=g.newStyled.div`
403
+ border-bottom: ${di(nb,rb)};
404
+ &:not(:first-of-type) {
405
+ border-left: ${di(nb,rb)};
406
+ }
407
+ height: ${({height:e})=>`calc(${e} + 32px)`};
408
+ `;function XJ(e){const{widgetType:t}=e;return g.isTableWidget(t)?e.getTableWidgetProps():g.isPivotWidget(t)?e.getPivotTableWidgetProps():e.getChartWidgetProps()}const eZ=(e,t)=>{if(!e)return null;if(e.widgetType==="plugin"){const r=tb.get(e.pluginType);if(!r){console.error(`Unknown plugin type: ${e.pluginType}`);return}const o=r.createChartProps(e,t);return E.jsx(g.DynamicSizeContainer,{defaultSize:g.getWidgetDefaultSize("line",{hasHeader:!0}),children:E.jsx(g.WidgetContainer,{title:e.title,description:e.description,dataSetName:e.dataSource,onRefresh:()=>console.log("DEBUG refresh"),children:E.jsx(r.Plugin,te({},o))})})}const n=XJ(e);return g.isTableWidget(e.widgetType)?E.jsx(g.TableWidget,te({},n)):g.isPivotWidget(e.widgetType)?E.jsx(HA,te({},n)):E.jsx(g.ChartWidget,te({},n))},tZ=({layout:e,widgets:t})=>{const{themeSettings:n}=g.useThemeContext();return E.jsx(QS,{widths:e.columns.map(r=>r.widthPercentage),children:e.columns.map((r,o)=>{var i;return E.jsx(ZJ,{children:(i=r.rows)==null?void 0:i.map((a,s)=>E.jsx(QS,{widths:a.cells.map(c=>c.widthPercentage),children:a.cells.map(c=>E.jsx(KJ,{height:c.height,children:eZ(t.find(l=>l.oid===c.widgetId),n)},`${c.widgetId},${c.widthPercentage}`))},`${o},${s}`))},o)})})},uc="#d5d5d5",dc=1,nZ=g.newStyled.div`
409
+ height: 48px;
410
+ font-family: ${({font:e})=>e};
411
+ background-color: ${({background:e})=>e};
412
+ color: ${({color:e})=>e};
413
+ border-bottom: ${di(uc,dc)};
414
+ padding: 10px 20px;
415
+ display: flex;
416
+ align-items: center;
417
+ box-sizing: border-box;
418
+ `,rZ=g.newStyled.div`
419
+ font-size: 13px;
420
+ font-weight: 700;
421
+ `,oZ=({title:e})=>{const{themeSettings:t}=g.useThemeContext();return E.jsx(nZ,{font:t.typography.fontFamily,color:t.typography.primaryTextColor,background:t.general.backgroundColor,children:E.jsx(rZ,{children:e})})},$A=({name:e,active:t,disabled:n,onClick:r})=>{const{themeSettings:o}=g.useThemeContext(),i=t&&!n,a=i?o.general.brandColor:"#cbced7",s=i?o.general.primaryButtonTextColor:"#ffffff";return E.jsx("button",{onClick:r,className:"csdk-border-0 csdk-whitespace-nowrap csdk-text-ellipsis csdk-rounded-pill csdk-leading-[18px] csdk-text-pill csdk-px-2 csdk-py-[3px] csdk-tracking-[0.3px] csdk-select-none",style:{backgroundColor:a,color:s},disabled:n,children:e})},iZ=({disabled:e})=>E.jsx($A,{name:"Include all",disabled:e,active:!0}),aZ=({selectedMembers:e,onToggleSelectedMember:t,disabled:n})=>{const r=e.length===0;return E.jsxs("div",{className:"csdk-flex csdk-flex-wrap csdk-p-3 csdk-gap-[5px] csdk-max-h-[150px] csdk-overflow-auto",children:[r&&E.jsx(iZ,{disabled:n}),!r&&e.map(o=>E.jsx($A,{name:o.title,active:!o.inactive,onClick:()=>t(o.key),disabled:n},o.key))]})},zA=H.forwardRef((e,t)=>E.jsx("button",de(te({},e),{ref:t,className:"csdk-rounded disabled:csdk-cursor-not-allowed csdk-leading-[18px] csdk-text-[13px] csdk-py-[5px] csdk-px-[8px] csdk-text-text-content disabled:csdk-opacity-30 "+(e.className||""),children:e.children}))),sZ=e=>{const a=e,{tooltipTitle:t,disableTooltip:n,children:r,disabled:o}=a,i=Rn(a,["tooltipTitle","disableTooltip","children","disabled"]);return E.jsx(g.Tooltip,{title:t,disableHoverListener:n,children:E.jsx("span",{children:E.jsx(zA,de(te({disabled:o,style:o?de(te({},i.style||{}),{pointerEvents:"none"}):i.style},i),{children:r}))})})},WA=e=>{const a=e,{wrapperClassName:t,label:n,isLabelInactive:r}=a,o=Rn(a,["wrapperClassName","label","isLabelInactive"]),i=["csdk-border-l","csdk-pl-3"];return r&&i.push("csdk-opacity-50"),E.jsxs("label",{className:g.r("csdk-my-[2px] csdk-flex csdk-items-center csdk-leading-4 csdk-text-[13px]",t,{"csdk-cursor-pointer":!e.disabled}),children:[E.jsx("input",de(te({},o),{type:"checkbox",className:g.r("csdk-accent-UI-default csdk-h-checkbox csdk-w-checkbox csdk-m-checkbox",{"csdk-cursor-pointer":!e.disabled})})),n&&E.jsx("span",{className:i.join(" "),children:n})]})},lZ=g.newStyled.input`
422
+ box-sizing: border-box;
423
+ height: 100%;
424
+ border-width: 1px;
425
+ border-style: solid;
426
+ background-color: transparent;
427
+ font-size: 13px;
428
+ color: inherit;
429
+ padding-left: 0.375rem;
430
+ border-radius: 0.375rem;
431
+ transition: border-color 250ms;
432
+
433
+ &:disabled {
434
+ cursor: not-allowed;
435
+ }
436
+
437
+ &:invalid {
438
+ border-color: #fb7570;
439
+ }
440
+
441
+ &::placeholder {
442
+ color: inherit;
443
+ opacity: 0.75;
444
+ }
445
+
446
+ &:focus {
447
+ outline: none;
448
+ border-color: inherit;
449
+ }
450
+
451
+ &::-webkit-outer-spin-button,
452
+ &::-webkit-inner-spin-button {
453
+ -webkit-appearance: none;
454
+ margin: 0;
455
+ }
456
+ `,Bs=e=>{var u;const l=e,{callback:t,className:n,value:r,disabled:o}=l,i=Rn(l,["callback","className","value","disabled"]),[a,s]=H.useState((u=r==null?void 0:r.toString())!=null?u:""),c=H.createRef();return E.jsxs("div",{className:"csdk-flex csdk-items-center csdk-gap-x-2 csdk-justify-end csdk-h-6",children:[e.label&&E.jsx("label",{className:"csdk-min-w-fit",htmlFor:e.id,children:e.label}),E.jsx("div",{className:"csdk-h-full",children:E.jsx(lZ,de(te({},i),{ref:c,className:["csdk-border-UI-default",n].join(" "),value:a,onChange:d=>{t(d.target.value),s(d.target.value)},disabled:o}))})]})},cZ=e=>{const t=e.width||"24",n=e.height||"24";return E.jsx("svg",{viewBox:`0 0 ${t} ${n}`,fill:"none",xmlns:"http://www.w3.org/2000/svg",className:e.className,width:t,height:n,children:E.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9 5V3.5C9 3.22386 9.22386 3 9.5 3C9.77614 3 10 3.22386 10 3.5V5H13V3.5C13 3.22386 13.2239 3 13.5 3C13.7761 3 14 3.22386 14 3.5V5H17C18.1046 5 19 5.89543 19 7V8V9V17C19 18.1046 18.1046 19 17 19H6C4.89543 19 4 18.1046 4 17V9V8V7C4 5.89543 4.89543 5 6 5H9ZM10 6H13V6.5C13 6.77614 13.2239 7 13.5 7C13.7761 7 14 6.77614 14 6.5V6H17C17.5523 6 18 6.44772 18 7V8H5V7C5 6.44772 5.44772 6 6 6H9V6.5C9 6.77614 9.22386 7 9.5 7C9.77614 7 10 6.77614 10 6.5V6ZM5 17V9H18V17C18 17.5523 17.5523 18 17 18H6C5.44772 18 5 17.5523 5 17ZM14.5 12H8.5C8.22386 12 8 11.7761 8 11.5C8 11.2239 8.22386 11 8.5 11H14.5C14.7761 11 15 11.2239 15 11.5C15 11.7761 14.7761 12 14.5 12ZM8.5 14H14.5C14.7761 14 15 13.7761 15 13.5C15 13.2239 14.7761 13 14.5 13H8.5C8.22386 13 8 13.2239 8 13.5C8 13.7761 8.22386 14 8.5 14ZM14.5 16H8.5C8.22386 16 8 15.7761 8 15.5C8 15.2239 8.22386 15 8.5 15H14.5C14.7761 15 15 15.2239 15 15.5C15 15.7761 14.7761 16 14.5 16Z",fill:e.iconColor||"#5B6372"})})},uZ=e=>{var t;return E.jsx("svg",de(te({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{children:E.jsx("path",{fill:(t=e.fill)!=null?t:"#000",fillRule:"nonzero",d:"M7.589 10L7 10.777 11.99 15 17 10.777 16.413 10l-4.422 3.727z"})}))},dZ=e=>E.jsxs("label",{children:[E.jsx("input",de(te({},e),{className:"csdk-accent-UI-default csdk-text-UI-default csdk-w-radio csdk-h-radio csdk-m-radio "+e.className,type:"radio"})),e.label]}),pZ=g.newStyled("div")({"::-webkit-scrollbar":{width:"8px",height:"8px"},"::-webkit-scrollbar-track":{backgroundColor:"transparent"},"::-webkit-scrollbar-thumb":{backgroundColor:"#c2c2c2",borderRadius:"4px",border:"1px solid transparent",backgroundClip:"content-box",minHeight:"20px",minWidth:"20px"},"::-webkit-scrollbar-thumb:hover":{backgroundColor:"#7d7d7d",border:"none"}}),hZ=i=>{var a=i,{items:e,currentSelection:t,title:n,className:r}=a,o=Rn(a,["items","currentSelection","title","className"]);return E.jsxs(pZ,{className:r,children:[E.jsx("div",{className:"csdk-ml-1.5",children:n}),e.map((s,c)=>E.jsx(dZ,te({value:s,label:s,checked:s===t},o),c))]})},UA=P.createContext(void 0);process.env.NODE_ENV!=="production"&&(UA.displayName="FormControlContext");function fZ(){return P.useContext(UA)}function gZ(e){return g.generateUtilityClass("PrivateSwitchBase",e)}g.generateUtilityClasses("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const mZ=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],vZ=e=>{const{classes:t,checked:n,disabled:r,edge:o}=e,i={root:["root",n&&"checked",r&&"disabled",o&&`edge${g.capitalize(o)}`],input:["input"]};return g.composeClasses(i,gZ,t)},bZ=g.styled(g.ButtonBase)(({ownerState:e})=>g._extends({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),yZ=g.styled("input",{shouldForwardProp:g.rootShouldForwardProp})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),YA=P.forwardRef(function(t,n){const{autoFocus:r,checked:o,checkedIcon:i,className:a,defaultChecked:s,disabled:c,disableFocusRipple:l=!1,edge:u=!1,icon:d,id:p,inputProps:f,inputRef:m,name:b,onBlur:v,onChange:w,onFocus:_,readOnly:T,required:y=!1,tabIndex:k,type:S,value:x}=t,C=g._objectWithoutPropertiesLoose(t,mZ),[O,D]=g.useControlled({controlled:o,default:!!s,name:"SwitchBase",state:"checked"}),R=fZ(),M=U=>{_&&_(U),R&&R.onFocus&&R.onFocus(U)},F=U=>{v&&v(U),R&&R.onBlur&&R.onBlur(U)},N=U=>{if(U.nativeEvent.defaultPrevented)return;const G=U.target.checked;D(G),w&&w(U,G)};let I=c;R&&typeof I=="undefined"&&(I=R.disabled);const j=S==="checkbox"||S==="radio",$=g._extends({},t,{checked:O,disabled:I,disableFocusRipple:l,edge:u}),Y=vZ($);return E.jsxs(bZ,g._extends({component:"span",className:g.clsx(Y.root,a),centerRipple:!0,focusRipple:!l,disabled:I,tabIndex:null,role:void 0,onFocus:M,onBlur:F,ownerState:$,ref:n},C,{children:[E.jsx(yZ,g._extends({autoFocus:r,checked:o,defaultChecked:s,className:Y.input,disabled:I,id:j?p:void 0,name:b,onChange:N,readOnly:T,ref:m,required:y,ownerState:$,tabIndex:k,type:S},S==="checkbox"&&x===void 0?{}:{value:x},f)),O?i:d]}))});process.env.NODE_ENV!=="production"&&(YA.propTypes={autoFocus:g.PropTypes.bool,checked:g.PropTypes.bool,checkedIcon:g.PropTypes.node.isRequired,classes:g.PropTypes.object,className:g.PropTypes.string,defaultChecked:g.PropTypes.bool,disabled:g.PropTypes.bool,disableFocusRipple:g.PropTypes.bool,edge:g.PropTypes.oneOf(["end","start",!1]),icon:g.PropTypes.node.isRequired,id:g.PropTypes.string,inputProps:g.PropTypes.object,inputRef:g.refType,name:g.PropTypes.string,onBlur:g.PropTypes.func,onChange:g.PropTypes.func,onFocus:g.PropTypes.func,readOnly:g.PropTypes.bool,required:g.PropTypes.bool,sx:g.PropTypes.object,tabIndex:g.PropTypes.oneOfType([g.PropTypes.number,g.PropTypes.string]),type:g.PropTypes.string.isRequired,value:g.PropTypes.any});function wZ(e){return g.useThemeProps}function xZ(e){return g.generateUtilityClass("MuiSwitch",e)}const hn=g.generateUtilityClasses("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_Z=["className","color","edge","size","sx"],CZ=wZ(),kZ=e=>{const{classes:t,edge:n,size:r,color:o,checked:i,disabled:a}=e,s={root:["root",n&&`edge${g.capitalize(n)}`,`size${g.capitalize(r)}`],switchBase:["switchBase",`color${g.capitalize(o)}`,i&&"checked",a&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=g.composeClasses(s,xZ,t);return g._extends({},t,c)},SZ=g.styled("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${g.capitalize(n.edge)}`],t[`size${g.capitalize(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${hn.thumb}`]:{width:16,height:16},[`& .${hn.switchBase}`]:{padding:4,[`&.${hn.checked}`]:{transform:"translateX(16px)"}}}}]}),TZ=g.styled(YA,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${hn.input}`]:t.input},n.color!=="default"&&t[`color${g.capitalize(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${hn.checked}`]:{transform:"translateX(20px)"},[`&.${hn.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${hn.checked} + .${hn.track}`]:{opacity:.5},[`&.${hn.disabled} + .${hn.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${hn.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:g.alpha_1(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${hn.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:g.alpha_1(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${hn.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?g.lighten_1(e.palette[t].main,.62):g.darken_1(e.palette[t].main,.55)}`}},[`&.${hn.checked} + .${hn.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),EZ=g.styled("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),OZ=g.styled("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),qA=P.forwardRef(function(t,n){const r=CZ({props:t,name:"MuiSwitch"}),{className:o,color:i="primary",edge:a=!1,size:s="medium",sx:c}=r,l=g._objectWithoutPropertiesLoose(r,_Z),u=g._extends({},r,{color:i,edge:a,size:s}),d=kZ(u),p=E.jsx(OZ,{className:d.thumb,ownerState:u});return E.jsxs(SZ,{className:g.clsx(d.root,o),sx:c,ownerState:u,children:[E.jsx(TZ,g._extends({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:u},l,{classes:g._extends({},d,{root:d.switchBase})})),E.jsx(EZ,{className:d.track,ownerState:u})]})});process.env.NODE_ENV!=="production"&&(qA.propTypes={checked:g.PropTypes.bool,checkedIcon:g.PropTypes.node,classes:g.PropTypes.object,className:g.PropTypes.string,color:g.PropTypes.oneOfType([g.PropTypes.oneOf(["default","primary","secondary","error","info","success","warning"]),g.PropTypes.string]),defaultChecked:g.PropTypes.bool,disabled:g.PropTypes.bool,disableRipple:g.PropTypes.bool,edge:g.PropTypes.oneOf(["end","start",!1]),icon:g.PropTypes.node,id:g.PropTypes.string,inputProps:g.PropTypes.object,inputRef:g.refType,onChange:g.PropTypes.func,required:g.PropTypes.bool,size:g.PropTypes.oneOfType([g.PropTypes.oneOf(["medium","small"]),g.PropTypes.string]),sx:g.PropTypes.oneOfType([g.PropTypes.arrayOf(g.PropTypes.oneOfType([g.PropTypes.func,g.PropTypes.object,g.PropTypes.bool])),g.PropTypes.func,g.PropTypes.object]),value:g.PropTypes.any});const DZ=g.newStyled(qA)(({theme:e})=>{var t;return{height:"23px",width:"33px","& .MuiSwitch-switchBase":{transform:"translateX(1px)",top:"2px",transition:"all .3s ease","&.Mui-checked":{color:"#fff",transform:"translateX(13px)","& + .MuiSwitch-track":{opacity:1,backgroundColor:(t=e.general.brandColor)!=null?t:"#FFC805"},"&:hover":{background:"transparent"}},"&:hover":{background:"transparent"}},"&:hover":{"& .MuiSwitch-thumb":{transform:"scale(1.2)"}},"& .MuiSwitch-thumb":{backgroundColor:"#fff",width:11,height:11,border:"1px solid #c4c8cd",boxShadow:"none",transition:"all .3s ease",boxSizing:"border-box"},"& .MuiSwitch-track":{opacity:1,height:"9px",width:"19px",backgroundColor:"#6e737d",borderRadius:9}}}),VA=()=>E.jsx("div",{className:"csdk-flex csdk-justify-center","data-testid":"triangle-indicator",children:E.jsx("div",{className:"csdk-border-l-[70px] csdk-border-l-[transparent] csdk-border-r-[70px] csdk-border-r-[transparent] csdk-border-t-[13px]"})}),pc=e=>e==="white",JS="rgb(240, 240, 240)",RZ="rgba(0, 0, 0, 0.26)",AZ=g.newStyled.button`
457
+ cursor: pointer;
458
+ background-color: ${({theme:e,variant:t,disabled:n})=>n?JS:pc(t)?e.general.backgroundColor:"#f4f4f8"};
459
+ border: ${({variant:e})=>pc(e)?"1px solid rgb(110 115 125 / var(--tw-border-opacity))":"none"};
460
+ color: ${({theme:e,isActive:t,disabled:n})=>n?RZ:t?e.general.primaryButtonTextColor:e.typography.primaryTextColor};
461
+ border-radius: 0.375rem;
462
+ &:hover {
463
+ background-color: ${({theme:e,variant:t,disabled:n})=>n?JS:g.getSlightlyDifferentColor(pc(t)?e.general.backgroundColor:"#f4f4f8")};
464
+ transition: 0.2s;
465
+ }
466
+ transition: color 250ms;
467
+ `,MZ=g.newStyled.label`
468
+ color: ${({theme:e,variant:t})=>pc(t)?e.typography.primaryTextColor:e.general.primaryButtonTextColor};
469
+ `,ob=e=>{const{variant:t="grey",label:n,isActive:r,theme:o}=e;return E.jsxs("div",{className:"csdk-relative csdk-flex csdk-mr-[5px] csdk-cursor-pointer","aria-label":"DateRangeField",children:[n&&E.jsx(MZ,{htmlFor:e.id,className:"csdk-my-[5px] csdk-mr-[7px] csdk-text-[13px] csdk-leading-[18px]",theme:o,variant:t,children:n}),E.jsx("div",{className:"csdk-relative csdk-h-6",children:E.jsxs(AZ,de(te({},e),{variant:t,"aria-label":"DateRangeFieldButton",className:"csdk-text-left csdk-w-[152px] csdk-bg-[#f4f4f8] csdk-text-[13px] csdk-outline-0 csdk-border csdk-border-transparent csdk-p-input csdk-h-6 csdk-rounded-[4px] "+"disabled:csdk-placeholder:csdk-opacity-30 disabled:csdk-cursor-not-allowed "+"focus:csdk-border-solid focus:csdk-border-input focus:csdk-border-UI-default "+"hover:csdk-border-guiding csdk-text-text-active "+"csdk-pl-2.5 csdk-pr-10 csdk-overflow-hidden "+(e.className||""),children:[e.value,E.jsx("div",{"aria-label":"DateRangeFieldIcon",className:"csdk-absolute csdk-right-[4px] csdk-top-1/2 csdk-transform -csdk-translate-y-1/2",children:E.jsx(cZ,{className:"csdk-flex csdk-text-text-active","aria-hidden":"true",iconColor:r?o.general.primaryButtonTextColor:o.typography.primaryTextColor})})]}))})]})};function ZS(e){return e.substring(2).toLowerCase()}function NZ(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function vu(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:o,touchEvent:i="onTouchEnd"}=e,a=P.useRef(!1),s=P.useRef(null),c=P.useRef(!1),l=P.useRef(!1);P.useEffect(()=>(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const u=g.useForkRef(t.ref,s),d=g.useEventCallback(m=>{const b=l.current;l.current=!1;const v=g.ownerDocument(s.current);if(!c.current||!s.current||"clientX"in m&&NZ(m,v))return;if(a.current){a.current=!1;return}let w;m.composedPath?w=m.composedPath().indexOf(s.current)>-1:w=!v.documentElement.contains(m.target)||s.current.contains(m.target),!w&&(n||!b)&&o(m)}),p=m=>b=>{l.current=!0;const v=t.props[m];v&&v(b)},f={ref:u};return i!==!1&&(f[i]=p(i)),P.useEffect(()=>{if(i!==!1){const m=ZS(i),b=g.ownerDocument(s.current),v=()=>{a.current=!0};return b.addEventListener(m,d),b.addEventListener("touchmove",v),()=>{b.removeEventListener(m,d),b.removeEventListener("touchmove",v)}}},[d,i]),r!==!1&&(f[r]=p(r)),P.useEffect(()=>{if(r!==!1){const m=ZS(r),b=g.ownerDocument(s.current);return b.addEventListener(m,d),()=>{b.removeEventListener(m,d)}}},[d,r]),E.jsx(P.Fragment,{children:P.cloneElement(t,f)})}process.env.NODE_ENV!=="production"&&(vu.propTypes={children:g.elementAcceptingRef.isRequired,disableReactTree:g.PropTypes.bool,mouseEvent:g.PropTypes.oneOf(["onClick","onMouseDown","onMouseUp","onPointerDown","onPointerUp",!1]),onClickAway:g.PropTypes.func.isRequired,touchEvent:g.PropTypes.oneOf(["onTouchEnd","onTouchStart",!1])});process.env.NODE_ENV!=="production"&&(vu.propTypes=g.exactProp(vu.propTypes));const ib=e=>{var l,u;const[t,n]=H.useState(!1),{themeSettings:r}=g.useThemeContext(),o=()=>{n(!t)},i=H.useRef(null),a=(l=e.selectedIdx)!=null?l:null,s={fontFamily:r.typography.fontFamily,fontWeight:400,textTransform:"none",fontSize:"13px",color:r.typography.primaryTextColor},c=e.elements.map((d,p)=>E.jsx(g.MenuItem,{onClick:()=>{n(!1)},sx:de(te({},s),{minHeight:"unset","&:hover":{backgroundColor:g.getSlightlyDifferentColor(r.general.backgroundColor)}}),disabled:e.disabled,children:d},p));return E.jsxs(E.Fragment,{children:[E.jsx(g.Button,{ref:i,onClick:o,className:"csdk-h-full csdk-border-solid csdk-border-input csdk-box-border",sx:de(te({},s),{border:"1px solid rgb(110 115 125 / var(--tw-border-opacity))",marginLeft:"5px",marginRight:"5px",borderRadius:"0.375rem",verticalAlign:"unset","&:hover":{backgroundColor:g.getSlightlyDifferentColor(r.general.backgroundColor)}}),disabled:e.disabled,children:((u=e.icon)!=null?u:a!==null)?e.elements[a!=null?a:0]:E.jsx("div",{children:"Select..."})}),E.jsx(g.Popper,{open:t,anchorEl:i.current,placement:"bottom-start",sx:{backgroundColor:r.general.backgroundColor,border:"1px solid #c4c8cd",borderRadius:"4px",boxShadow:"0px 2px 2px rgba(0, 0, 0, 0.25)"},children:E.jsx(vu,{onClickAway:()=>n(!1),children:E.jsx(g.MenuList,{autoFocusItem:t,children:c})})})]})},PZ=g.newStyled.input`
470
+ font-size: 13px;
471
+ padding-left: 0.75rem;
472
+ background-color: transparent;
473
+ color: inherit;
474
+ outline: none;
475
+ border: none;
476
+ appearance: none;
477
+ font-family: inherit;
478
+
479
+ &:focus {
480
+ outline: none;
481
+ }
482
+
483
+ &::-webkit-search-cancel-button,
484
+ &::-webkit-search-decoration {
485
+ -webkit-appearance: none;
486
+ appearance: none;
487
+ }
488
+
489
+ &::placeholder {
490
+ color: inherit;
491
+ opacity: 0.75;
492
+ }
493
+ `,IZ=300,jZ=({onChange:e,delayMs:t=IZ,disabled:n})=>{const r=g.debounce(o=>e(o),t);return E.jsx(PZ,{placeholder:"Start typing to search...",disabled:n,onChange:o=>{r(o.target.value)},type:"search"})},LZ=({label:e,checked:t,onCheck:n,disabled:r,inactive:o})=>E.jsx(WA,{wrapperClassName:"csdk-border-b hover:csdk-bg-row-hover",label:e,isLabelInactive:o,checked:t,readOnly:!0,onChange:n,disabled:r}),FZ=({members:e,selectedMembers:t,onSelectMember:n,selectAllMembers:r,clearAllMembers:o,disabled:i})=>{const[a,s]=H.useState(""),c=H.useMemo(()=>a&&a.trim().length>0?e.filter(u=>u.title.toLowerCase().includes(a.toLowerCase())):e,[e,a]),l=t.length===e.length;return E.jsxs("div",{className:"csdk-p-3",children:[E.jsxs("div",{className:"csdk-flex csdk-mb-[3px]",children:[E.jsx(WA,{"aria-label":"change-all",checked:l,onChange:u=>{u.target.checked?r():o()},readOnly:!0,disabled:i}),E.jsx(jZ,{onChange:u=>s(u),disabled:i})]}),E.jsx("div",{className:"csdk-max-h-[150px] csdk-overflow-auto",children:c.map(u=>{var d,p;return E.jsx(LZ,{label:u.title,checked:!!t.find(f=>u.key===f.key),onCheck:()=>n(u),disabled:i,inactive:(p=(d=t.find(f=>u.key===f.key))==null?void 0:d.inactive)!=null?p:!1},u.key)})})]})};var GA=Symbol.for("immer-nothing"),KS=Symbol.for("immer-draftable"),Hn=Symbol.for("immer-state"),BZ=process.env.NODE_ENV!=="production"?[function(e){return`The plugin for '${e}' has not been loaded into Immer. To enable the plugin, import and call \`enable${e}()\` when initializing your application.`},function(e){return`produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '${e}'`},"This object has been frozen and should not be mutated",function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.","Immer forbids circular references","The first or second argument to `produce` must be a function","The third argument to `produce` must be a function or undefined","First argument to `createDraft` must be a plain object, an array, or an immerable object","First argument to `finishDraft` must be a draft returned by `createDraft`",function(e){return`'current' expects a draft, got: ${e}`},"Object.defineProperty() cannot be used on an Immer draft","Object.setPrototypeOf() cannot be used on an Immer draft","Immer only supports deleting array indices","Immer only supports setting array indices and the 'length' property",function(e){return`'original' expects a draft, got: ${e}`}]:[];function Sn(e,...t){if(process.env.NODE_ENV!=="production"){const n=BZ[e],r=typeof n=="function"?n.apply(null,t):n;throw new Error(`[Immer] ${r}`)}throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Ta=Object.getPrototypeOf;function Ea(e){return!!e&&!!e[Hn]}function xi(e){var t;return e?QA(e)||Array.isArray(e)||!!e[KS]||!!((t=e.constructor)!=null&&t[KS])||Id(e)||jd(e):!1}var HZ=Object.prototype.constructor.toString();function QA(e){if(!e||typeof e!="object")return!1;const t=Ta(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===HZ}function bu(e,t){Pd(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function Pd(e){const t=e[Hn];return t?t.type_:Array.isArray(e)?1:Id(e)?2:jd(e)?3:0}function ab(e,t){return Pd(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function JA(e,t,n){const r=Pd(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function $Z(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Id(e){return e instanceof Map}function jd(e){return e instanceof Set}function oi(e){return e.copy_||e.base_}function sb(e,t){if(Id(e))return new Map(e);if(jd(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=QA(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Hn];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Ta(e),r)}else{const r=Ta(e);if(r!==null&&n)return te({},e);const o=Object.create(r);return Object.assign(o,e)}}function Jy(e,t=!1){return Ld(e)||Ea(e)||!xi(e)||(Pd(e)>1&&(e.set=e.add=e.clear=e.delete=zZ),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>Jy(r,!0))),e}function zZ(){Sn(2)}function Ld(e){return Object.isFrozen(e)}var WZ={};function _i(e){const t=WZ[e];return t||Sn(0,e),t}var Hs;function ZA(){return Hs}function UZ(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function XS(e,t){t&&(_i("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function lb(e){cb(e),e.drafts_.forEach(YZ),e.drafts_=null}function cb(e){e===Hs&&(Hs=e.parent_)}function eT(e){return Hs=UZ(Hs,e)}function YZ(e){const t=e[Hn];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function tT(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Hn].modified_&&(lb(t),Sn(4)),xi(e)&&(e=yu(t,e),t.parent_||wu(t,e)),t.patches_&&_i("Patches").generateReplacementPatches_(n[Hn].base_,e,t.patches_,t.inversePatches_)):e=yu(t,n,[]),lb(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==GA?e:void 0}function yu(e,t,n){if(Ld(t))return t;const r=t[Hn];if(!r)return bu(t,(o,i)=>nT(e,r,t,o,i,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return wu(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const o=r.copy_;let i=o,a=!1;r.type_===3&&(i=new Set(o),o.clear(),a=!0),bu(i,(s,c)=>nT(e,r,o,s,c,n,a)),wu(e,o,!1),n&&e.patches_&&_i("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function nT(e,t,n,r,o,i,a){if(process.env.NODE_ENV!=="production"&&o===n&&Sn(5),Ea(o)){const s=i&&t&&t.type_!==3&&!ab(t.assigned_,r)?i.concat(r):void 0,c=yu(e,o,s);if(JA(n,r,c),Ea(c))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(xi(o)&&!Ld(o)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;yu(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&wu(e,o)}}function wu(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Jy(t,n)}function qZ(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:ZA(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=Zy;n&&(o=[r],i=$s);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var Zy={get(e,t){if(t===Hn)return e;const n=oi(e);if(!ab(n,t))return VZ(e,n,t);const r=n[t];return e.finalized_||!xi(r)?r:r===km(e.base_,t)?(Sm(e),e.copy_[t]=db(r,e)):r},has(e,t){return t in oi(e)},ownKeys(e){return Reflect.ownKeys(oi(e))},set(e,t,n){const r=KA(oi(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=km(oi(e),t),i=o==null?void 0:o[Hn];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if($Z(n,o)&&(n!==void 0||ab(e.base_,t)))return!0;Sm(e),ub(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return km(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,Sm(e),ub(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=oi(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){Sn(11)},getPrototypeOf(e){return Ta(e.base_)},setPrototypeOf(){Sn(12)}},$s={};bu(Zy,(e,t)=>{$s[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});$s.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Sn(13),$s.set.call(this,e,t,void 0)};$s.set=function(e,t,n){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Sn(14),Zy.set.call(this,e[0],t,n,e[0])};function km(e,t){const n=e[Hn];return(n?oi(n):e)[t]}function VZ(e,t,n){var o;const r=KA(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function KA(e,t){if(!(t in e))return;let n=Ta(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Ta(n)}}function ub(e){e.modified_||(e.modified_=!0,e.parent_&&ub(e.parent_))}function Sm(e){e.copy_||(e.copy_=sb(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var GZ=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(c=i,...l){return a.produce(c,u=>n.call(this,u,...l))}}typeof n!="function"&&Sn(6),r!==void 0&&typeof r!="function"&&Sn(7);let o;if(xi(t)){const i=eT(this),a=db(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?lb(i):cb(i)}return XS(i,r),tT(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===GA&&(o=void 0),this.autoFreeze_&&Jy(o,!0),r){const i=[],a=[];_i("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else Sn(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,c=>t(c,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){xi(e)||Sn(8),Ea(e)&&(e=QZ(e));const t=eT(this),n=db(e,void 0);return n[Hn].isManual_=!0,cb(t),n}finishDraft(e,t){const n=e&&e[Hn];(!n||!n.isManual_)&&Sn(9);const{scope_:r}=n;return XS(r,t),tT(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=_i("Patches").applyPatches_;return Ea(e)?r(e,t):this.produce(e,o=>r(o,t))}};function db(e,t){const n=Id(e)?_i("MapSet").proxyMap_(e,t):jd(e)?_i("MapSet").proxySet_(e,t):qZ(e,t);return(t?t.scope_:ZA()).drafts_.push(n),n}function QZ(e){return Ea(e)||Sn(10,e),XA(e)}function XA(e){if(!xi(e)||Ld(e))return e;const t=e[Hn];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=sb(e,t.scope_.immer_.useStrictShallowCopy_)}else n=sb(e,!0);return bu(n,(r,o)=>{JA(n,r,XA(o))}),t&&(t.finalized_=!1),n}var $n=new GZ,Oi=$n.produce;$n.produceWithPatches.bind($n);$n.setAutoFreeze.bind($n);$n.setUseStrictShallowCopy.bind($n);$n.applyPatches.bind($n);$n.createDraft.bind($n);$n.finishDraft.bind($n);function JZ(e,t){switch(t.type){case"selectMember":return ZZ(e,t.member);case"deselectMember":return KZ(e,t.memberIndex);case"selectAllMembers":return XZ(e);case"updateMembers":return eK(e,t.members);case"clearAllMembers":return nK(e);case"updatePossibleMembers":return tK(e,t.members);case"toggleSelectedMember":return rK(e,t.memberKey)}}function ZZ(e,t){return Oi(e,n=>{n.selectedMembers.push(t)})}function KZ(e,t){return Oi(e,n=>{n.selectedMembers.splice(t,1)})}function XZ(e){return Oi(e,t=>{t.selectedMembers=t.members})}function eK(e,t){return Oi(e,n=>{n.selectedMembers=t})}function tK(e,t){return Oi(e,n=>{n.members=t,t.some(r=>!n.selectedMembers.some(o=>r.key===o.key))?n.selectedMembers=[]:n.selectedMembers=n.selectedMembers.filter(r=>t.some(o=>o.key===r.key))})}function nK(e){return Oi(e,t=>{t.selectedMembers=[]})}function rK(e,t){return Oi(e,n=>{const r=n.selectedMembers.find(o=>o.key===t);r&&(r.inactive=!r.inactive)})}const oK=({initialMembers:e,initialSelectedMembers:t,onUpdateSelectedMembers:n,disabled:r})=>{const[{members:o,selectedMembers:i},a]=H.useReducer(JZ,{selectedMembers:t,members:e}),s=H.useMemo(()=>i.filter(u=>!u.inactive).map(u=>u.key),[i]),c=H.useRef(r);H.useEffect(()=>{r!==c.current&&(c.current=r,n==null||n(r?[]:s,r))},[r,s,n]);const l=H.useRef(i);return H.useEffect(()=>{g.isEqual(i,l.current)||(l.current=i,n==null||n(s,r))},[i,s,n,r]),{members:o,selectedMembers:i,dispatch:a}},Kr=e=>e==="vertical",iK=g.newStyled("div")({".MuiSwitch-root":{opacity:.55,transition:"all .3s ease"},"&:hover":{".MuiSwitch-root":{opacity:1}}}),ol=({title:e,renderContent:t,arrangement:n="vertical",disabled:r,onToggleDisabled:o,isDependent:i})=>{const[a,s]=H.useState(!0),{themeSettings:c}=g.useThemeContext(),{backgroundColor:l}=c.general,{primaryTextColor:u}=c.typography,d=g.getSlightlyDifferentColor(l,.1);return E.jsx(iK,{children:E.jsxs("div",{className:`${Kr(n)?"csdk-min-w-[216px]":""} ${i?"":"csdk-p-px"} csdk-w-min csdk-border csdk-border-solid csdk-border-[#dadada] csdk-text-text-content csdk-self-start`,style:{backgroundColor:r?d:l},children:[Kr(n)&&E.jsxs(E.Fragment,{children:[i&&E.jsx(VA,{}),E.jsxs("header",{className:"csdk-flex csdk-items-center csdk-border-0 csdk-border-b csdk-border-solid csdk-border-b-[#dadada]",style:{color:u},children:[E.jsx(uZ,{"aria-label":"arrow-down",width:"16",height:"16",fill:`${u!=null?u:"#5B6372"}`,className:`csdk-transition csdk-ml-[4px] csdk-cursor-pointer ${a?"-csdk-rotate-90":""}`,onClick:()=>s(p=>!p)}),E.jsx("span",{className:"csdk-text-[13px] csdk-mt-[6px] csdk-mb-[4px] csdk-ml-[7px] csdk-leading-[16px]",style:{color:u},children:e})]})]}),E.jsx("main",{style:{color:u},children:t(a,r!=null?r:!1)}),Kr(n)&&E.jsx("footer",{className:"csdk-flex csdk-justify-end csdk-items-center csdk-min-h-[26px] csdk-border-0 csdk-border-t csdk-border-solid csdk-border-t-[#dadada]",children:E.jsx(DZ,{checked:!r,size:"small",onChange:()=>o==null?void 0:o(),inputProps:{role:"switch",name:"tile-switch"},theme:c})})]})})},aK=(e,t)=>{const n={};for(const r of e){const o=t(r);o in n||(n[o]=r)}return Object.values(n)},sK=({allMembers:e,initialSelectedMembers:t,maxAllowedMembers:n})=>{const r=H.useMemo(()=>e.length>n?(console.warn(`List of members exceeds max allowed size, limiting from ${e.length} to ${n} members`),[...e.slice(0,n-t.length),...t]):e,[e,n,t]);return H.useMemo(()=>{const o=aK(r,i=>i.key);return o.length!==r.length?(console.warn("Removing detected duplicate member(s)"),o):r},[r])},eM=({title:e,allMembers:t,initialSelectedMembers:n=[],onUpdateSelectedMembers:r,maxAllowedMembers:o=2e3,isDependent:i,shouldUpdateSelectedMembers:a,disabled:s})=>{const[c,l]=H.useState(s!=null?s:!1),u=sK({allMembers:t,initialSelectedMembers:n,maxAllowedMembers:o}),{members:d,selectedMembers:p,dispatch:f}=oK({initialMembers:u,initialSelectedMembers:n,onUpdateSelectedMembers:r,disabled:c}),m=v=>{const w=p.findIndex(_=>_.key===v.key);f(w===-1?{type:"selectMember",member:v}:{type:"deselectMember",memberIndex:w})},b=H.useMemo(()=>d.filter(v=>p.some(w=>v.key===w.key)||n.some(w=>v.key===w.key)).map(v=>de(te({},v),{inactive:!n.some(w=>v.key===w.key)})),[n,d,p]);return H.useEffect(()=>{const v=n.filter(T=>p.some(y=>T.key===y.key&&!!T.inactive==!!y.inactive)).length!==n.length,w=p.filter(T=>!n.some(y=>T.key===y.key)&&!T.inactive).length!==0;a&&(v||w)&&(f({type:"updateMembers",members:b}),c&&n.length>0&&l(T=>!T)),g.isEqual(t,d)||f({type:"updatePossibleMembers",members:t})},[t,c,f,n,d,b,p,e,a]),E.jsx(ol,{title:e,renderContent:(v,w)=>v?E.jsx(aZ,{selectedMembers:p,onToggleSelectedMember:_=>{f({type:"toggleSelectedMember",memberKey:_})},disabled:w}):E.jsx(FZ,{members:d,selectedMembers:p,onSelectMember:m,selectAllMembers:()=>f({type:"selectAllMembers"}),clearAllMembers:()=>f({type:"clearAllMembers"}),disabled:w}),disabled:c,onToggleDisabled:()=>l(v=>!v),isDependent:i})};function xu(e,t){return nr(e,t)}const lK=["dataSource","dimensions","measures","count","offset","onBeforeQuery"];function tM(e){return Ti(e,lK,(t,n)=>{const{filters:r,relations:o}=g.getFilterListAndRelations(n.filters),{filters:i,relations:a}=g.getFilterListAndRelations(t.filters);return wi(r,i)||hQ(r,i,o,a)||wi(n.highlights,t.highlights)})}const cK=g.withTracking("useExecuteQuery")(Ky);function Ky(e){var b;const t=tM(e),n=$o(e,t),[r,o]=H.useState(!1),[i,a]=H.useState(),{isInitialized:s,app:c}=g.useSisenseContext(),l=(b=c==null?void 0:c.settings.queryCacheConfig)==null?void 0:b.enabled,u=l?g.executeQueryWithCache:g.executeQuery,[d,p]=H.useReducer(xu,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),f=H.useCallback(()=>{l&&i&&(g.clearExecuteQueryCache(i),a(void 0)),d.isLoading||o(!0)},[l,i,d.isLoading]),m=H.useCallback((v,w)=>{const{dataSource:_,dimensions:T,measures:y,filters:k,highlights:S,count:x=v.settings.queryLimit,offset:C,ungroup:O,onBeforeQuery:D}=w,{filters:R,relations:M}=g.getFilterListAndRelations(k),F=[{dataSource:_,dimensions:T,measures:y,filters:R,filterRelations:M,highlights:S,count:x,offset:C,ungroup:O},v,{onBeforeQuery:D}];if(l){const N=g.createExecuteQueryCacheKey(...F);i!==N&&a(N)}u(...F).then(N=>{p({type:"success",data:N})}).catch(N=>{p({type:"error",error:N})})},[u,l,i]);return H.useEffect(()=>{s||p({type:"error",error:new g.TranslatableError("errors.executeQueryNoSisenseContext")}),r&&o(!1),n(c,r)&&m(c,e)},[c,u,s,e,m,n,r]),d.data&&t?de(te({},xu(d,{type:"loading"})),{refetch:f}):de(te({},d),{refetch:f})}class uK extends g.MembersFilter{constructor(n,r,o){super(n,r);Je(this,"internal",!0);this.disabled=o!=null?o:!1,this.internal=!0}}const nM=g.asSisenseComponent({componentName:"MemberFilterTile"})(e=>{var v;const{title:t,attribute:n,filter:r,dataSource:o,onChange:i,parentFilters:a}=e,s=H.useRef(r),c=(v=r==null?void 0:r.disabled)!=null?v:!1,l=H.useMemo(()=>[n],[n]),{data:u,error:d}=Ky({dataSource:o,dimensions:l,filters:a}),p=r,f=H.useMemo(()=>u?u.rows.map(w=>w[0]):[],[u]),m=H.useMemo(()=>f.filter(w=>((p==null?void 0:p.members)||[]).includes(w.data)).map(w=>{var _;return{key:w.data,title:(_=w.text)!=null?_:w.data}}),[p==null?void 0:p.members,f]),b=H.useMemo(()=>f.map(w=>{var _;return{key:w.data,title:(_=w.text)!=null?_:w.data}}),[f]);if(d)throw d;return u?E.jsx(eM,{title:t,allMembers:b,initialSelectedMembers:m,shouldUpdateSelectedMembers:s.current!==r&&!(r!=null&&r.internal),onUpdateSelectedMembers:(w,_)=>{i(new uK(n,w,_))},isDependent:a&&a.length>0,disabled:c}):null});var rM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(g.commonjsGlobal,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",c="hour",l="day",u="week",d="month",p="quarter",f="year",m="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,w=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,_={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var I=["th","st","nd","rd"],j=N%100;return"["+N+(I[(j-20)%10]||I[j]||I[0])+"]"}},T=function(N,I,j){var $=String(N);return!$||$.length>=I?N:""+Array(I+1-$.length).join(j)+N},y={s:T,z:function(N){var I=-N.utcOffset(),j=Math.abs(I),$=Math.floor(j/60),Y=j%60;return(I<=0?"+":"-")+T($,2,"0")+":"+T(Y,2,"0")},m:function N(I,j){if(I.date()<j.date())return-N(j,I);var $=12*(j.year()-I.year())+(j.month()-I.month()),Y=I.clone().add($,d),U=j-Y<0,G=I.clone().add($+(U?-1:1),d);return+(-($+(j-Y)/(U?Y-G:G-Y))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:d,y:f,w:u,d:l,D:m,h:c,m:s,s:a,ms:i,Q:p}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},k="en",S={};S[k]=_;var x="$isDayjsObject",C=function(N){return N instanceof M||!(!N||!N[x])},O=function N(I,j,$){var Y;if(!I)return k;if(typeof I=="string"){var U=I.toLowerCase();S[U]&&(Y=U),j&&(S[U]=j,Y=U);var G=I.split("-");if(!Y&&G.length>1)return N(G[0])}else{var K=I.name;S[K]=I,Y=K}return!$&&Y&&(k=Y),Y||!$&&k},D=function(N,I){if(C(N))return N.clone();var j=typeof I=="object"?I:{};return j.date=N,j.args=arguments,new M(j)},R=y;R.l=O,R.i=C,R.w=function(N,I){return D(N,{locale:I.$L,utc:I.$u,x:I.$x,$offset:I.$offset})};var M=function(){function N(j){this.$L=O(j.locale,null,!0),this.parse(j),this.$x=this.$x||j.x||{},this[x]=!0}var I=N.prototype;return I.parse=function(j){this.$d=function($){var Y=$.date,U=$.utc;if(Y===null)return new Date(NaN);if(R.u(Y))return new Date;if(Y instanceof Date)return new Date(Y);if(typeof Y=="string"&&!/Z$/i.test(Y)){var G=Y.match(v);if(G){var K=G[2]-1||0,oe=(G[7]||"0").substring(0,3);return U?new Date(Date.UTC(G[1],K,G[3]||1,G[4]||0,G[5]||0,G[6]||0,oe)):new Date(G[1],K,G[3]||1,G[4]||0,G[5]||0,G[6]||0,oe)}}return new Date(Y)}(j),this.init()},I.init=function(){var j=this.$d;this.$y=j.getFullYear(),this.$M=j.getMonth(),this.$D=j.getDate(),this.$W=j.getDay(),this.$H=j.getHours(),this.$m=j.getMinutes(),this.$s=j.getSeconds(),this.$ms=j.getMilliseconds()},I.$utils=function(){return R},I.isValid=function(){return this.$d.toString()!==b},I.isSame=function(j,$){var Y=D(j);return this.startOf($)<=Y&&Y<=this.endOf($)},I.isAfter=function(j,$){return D(j)<this.startOf($)},I.isBefore=function(j,$){return this.endOf($)<D(j)},I.$g=function(j,$,Y){return R.u(j)?this[$]:this.set(Y,j)},I.unix=function(){return Math.floor(this.valueOf()/1e3)},I.valueOf=function(){return this.$d.getTime()},I.startOf=function(j,$){var Y=this,U=!!R.u($)||$,G=R.p(j),K=function(A,L){var z=R.w(Y.$u?Date.UTC(Y.$y,L,A):new Date(Y.$y,L,A),Y);return U?z:z.endOf(l)},oe=function(A,L){return R.w(Y.toDate()[A].apply(Y.toDate("s"),(U?[0,0,0,0]:[23,59,59,999]).slice(L)),Y)},ne=this.$W,re=this.$M,ie=this.$D,ce="set"+(this.$u?"UTC":"");switch(G){case f:return U?K(1,0):K(31,11);case d:return U?K(1,re):K(0,re+1);case u:var se=this.$locale().weekStart||0,J=(ne<se?ne+7:ne)-se;return K(U?ie-J:ie+(6-J),re);case l:case m:return oe(ce+"Hours",0);case c:return oe(ce+"Minutes",1);case s:return oe(ce+"Seconds",2);case a:return oe(ce+"Milliseconds",3);default:return this.clone()}},I.endOf=function(j){return this.startOf(j,!1)},I.$set=function(j,$){var Y,U=R.p(j),G="set"+(this.$u?"UTC":""),K=(Y={},Y[l]=G+"Date",Y[m]=G+"Date",Y[d]=G+"Month",Y[f]=G+"FullYear",Y[c]=G+"Hours",Y[s]=G+"Minutes",Y[a]=G+"Seconds",Y[i]=G+"Milliseconds",Y)[U],oe=U===l?this.$D+($-this.$W):$;if(U===d||U===f){var ne=this.clone().set(m,1);ne.$d[K](oe),ne.init(),this.$d=ne.set(m,Math.min(this.$D,ne.daysInMonth())).$d}else K&&this.$d[K](oe);return this.init(),this},I.set=function(j,$){return this.clone().$set(j,$)},I.get=function(j){return this[R.p(j)]()},I.add=function(j,$){var Y,U=this;j=Number(j);var G=R.p($),K=function(re){var ie=D(U);return R.w(ie.date(ie.date()+Math.round(re*j)),U)};if(G===d)return this.set(d,this.$M+j);if(G===f)return this.set(f,this.$y+j);if(G===l)return K(1);if(G===u)return K(7);var oe=(Y={},Y[s]=r,Y[c]=o,Y[a]=n,Y)[G]||1,ne=this.$d.getTime()+j*oe;return R.w(ne,this)},I.subtract=function(j,$){return this.add(-1*j,$)},I.format=function(j){var $=this,Y=this.$locale();if(!this.isValid())return Y.invalidDate||b;var U=j||"YYYY-MM-DDTHH:mm:ssZ",G=R.z(this),K=this.$H,oe=this.$m,ne=this.$M,re=Y.weekdays,ie=Y.months,ce=Y.meridiem,se=function(L,z,Q,X){return L&&(L[z]||L($,U))||Q[z].slice(0,X)},J=function(L){return R.s(K%12||12,L,"0")},A=ce||function(L,z,Q){var X=L<12?"AM":"PM";return Q?X.toLowerCase():X};return U.replace(w,function(L,z){return z||function(Q){switch(Q){case"YY":return String($.$y).slice(-2);case"YYYY":return R.s($.$y,4,"0");case"M":return ne+1;case"MM":return R.s(ne+1,2,"0");case"MMM":return se(Y.monthsShort,ne,ie,3);case"MMMM":return se(ie,ne);case"D":return $.$D;case"DD":return R.s($.$D,2,"0");case"d":return String($.$W);case"dd":return se(Y.weekdaysMin,$.$W,re,2);case"ddd":return se(Y.weekdaysShort,$.$W,re,3);case"dddd":return re[$.$W];case"H":return String(K);case"HH":return R.s(K,2,"0");case"h":return J(1);case"hh":return J(2);case"a":return A(K,oe,!0);case"A":return A(K,oe,!1);case"m":return String(oe);case"mm":return R.s(oe,2,"0");case"s":return String($.$s);case"ss":return R.s($.$s,2,"0");case"SSS":return R.s($.$ms,3,"0");case"Z":return G}return null}(L)||G.replace(":","")})},I.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},I.diff=function(j,$,Y){var U,G=this,K=R.p($),oe=D(j),ne=(oe.utcOffset()-this.utcOffset())*r,re=this-oe,ie=function(){return R.m(G,oe)};switch(K){case f:U=ie()/12;break;case d:U=ie();break;case p:U=ie()/3;break;case u:U=(re-ne)/6048e5;break;case l:U=(re-ne)/864e5;break;case c:U=re/o;break;case s:U=re/r;break;case a:U=re/n;break;default:U=re}return Y?U:R.a(U)},I.daysInMonth=function(){return this.endOf(d).$D},I.$locale=function(){return S[this.$L]},I.locale=function(j,$){if(!j)return this.$L;var Y=this.clone(),U=O(j,$,!0);return U&&(Y.$L=U),Y},I.clone=function(){return R.w(this.$d,this)},I.toDate=function(){return new Date(this.valueOf())},I.toJSON=function(){return this.isValid()?this.toISOString():null},I.toISOString=function(){return this.$d.toISOString()},I.toString=function(){return this.$d.toUTCString()},N}(),F=M.prototype;return D.prototype=F,[["$ms",i],["$s",a],["$m",s],["$H",c],["$W",l],["$M",d],["$y",f],["$D",m]].forEach(function(N){F[N[1]]=function(I){return this.$g(I,N[0],N[1])}}),D.extend=function(N,I){return N.$i||(N(I,M,D),N.$i=!0),D},D.locale=O,D.isDayjs=C,D.unix=function(N){return D(1e3*N)},D.en=S[k],D.Ls=S,D.p={},D})})(rM);var dK=rM.exports;const Dt=g.getDefaultExportFromCjs(dK);function pK(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,pb(e,t)}function pb(e,t){return pb=Object.setPrototypeOf||function(r,o){return r.__proto__=o,r},pb(e,t)}function hK(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(n[o]=e[o]);return n}function rT(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function fK(e,t,n){return e===t?!0:e.correspondingElement?e.correspondingElement.classList.contains(n):e.classList.contains(n)}function gK(e,t,n){if(e===t)return!0;for(;e.parentNode||e.host;){if(e.parentNode&&fK(e,t,n))return!0;e=e.parentNode||e.host}return e}function mK(e){return document.documentElement.clientWidth<=e.clientX||document.documentElement.clientHeight<=e.clientY}var vK=function(){if(!(typeof window=="undefined"||typeof window.addEventListener!="function")){var t=!1,n=Object.defineProperty({},"passive",{get:function(){t=!0}}),r=function(){};return window.addEventListener("testPassiveEventSupport",r,n),window.removeEventListener("testPassiveEventSupport",r,n),t}};function bK(e){return e===void 0&&(e=0),function(){return++e}}var yK=bK(),hb,Yl={},Tm={},wK=["touchstart","touchmove"],xK="ignore-react-onclickoutside";function oT(e,t){var n={},r=wK.indexOf(t)!==-1;return r&&hb&&(n.passive=!e.props.preventDefault),n}function Fd(e,t){var n,r,o=e.displayName||e.name||"Component";return r=n=function(i){pK(a,i);function a(c){var l;return l=i.call(this,c)||this,l.__outsideClickHandler=function(u){if(typeof l.__clickOutsideHandlerProp=="function"){l.__clickOutsideHandlerProp(u);return}var d=l.getInstance();if(typeof d.props.handleClickOutside=="function"){d.props.handleClickOutside(u);return}if(typeof d.handleClickOutside=="function"){d.handleClickOutside(u);return}throw new Error("WrappedComponent: "+o+" lacks a handleClickOutside(event) function for processing outside click events.")},l.__getComponentNode=function(){var u=l.getInstance();return typeof u.setClickOutsideRef=="function"?u.setClickOutsideRef():vn.findDOMNode(u)},l.enableOnClickOutside=function(){if(!(typeof document=="undefined"||Tm[l._uid])){typeof hb=="undefined"&&(hb=vK()),Tm[l._uid]=!0;var u=l.props.eventTypes;u.forEach||(u=[u]),Yl[l._uid]=function(d){if(l.componentNode!==null&&(l.props.preventDefault&&d.preventDefault(),l.props.stopPropagation&&d.stopPropagation(),!(l.props.excludeScrollbar&&mK(d)))){var p=d.composed&&d.composedPath&&d.composedPath().shift()||d.target;gK(p,l.componentNode,l.props.outsideClickIgnoreClass)===document&&l.__outsideClickHandler(d)}},u.forEach(function(d){document.addEventListener(d,Yl[l._uid],oT(rT(l),d))})}},l.disableOnClickOutside=function(){delete Tm[l._uid];var u=Yl[l._uid];if(u&&typeof document!="undefined"){var d=l.props.eventTypes;d.forEach||(d=[d]),d.forEach(function(p){return document.removeEventListener(p,u,oT(rT(l),p))}),delete Yl[l._uid]}},l.getRef=function(u){return l.instanceRef=u},l._uid=yK(),l}var s=a.prototype;return s.getInstance=function(){if(e.prototype&&!e.prototype.isReactComponent)return this;var l=this.instanceRef;return l.getInstance?l.getInstance():l},s.componentDidMount=function(){typeof document=="undefined"||!document.createElement||(this.getInstance(),this.componentNode=this.__getComponentNode(),!this.props.disableOnClickOutside&&this.enableOnClickOutside())},s.componentDidUpdate=function(){this.componentNode=this.__getComponentNode()},s.componentWillUnmount=function(){this.disableOnClickOutside()},s.render=function(){var l=this.props,u=hK(l,["excludeScrollbar"]);return e.prototype&&e.prototype.isReactComponent?u.ref=this.getRef:u.wrappedRef=this.getRef,u.disableOnClickOutside=this.disableOnClickOutside,u.enableOnClickOutside=this.enableOnClickOutside,H.createElement(e,u)},a}(H.Component),n.displayName="OnClickOutside("+o+")",n.defaultProps={eventTypes:["mousedown","touchstart"],excludeScrollbar:!1,outsideClickIgnoreClass:xK,preventDefault:!1,stopPropagation:!1},n.getClass=function(){return e.getClass?e.getClass():e},r}var oM=P.createContext(),iM=P.createContext();function _K(e){var t=e.children,n=P.useState(null),r=n[0],o=n[1],i=P.useRef(!1);P.useEffect(function(){return function(){i.current=!0}},[]);var a=P.useCallback(function(s){i.current||o(s)},[]);return P.createElement(oM.Provider,{value:r},P.createElement(iM.Provider,{value:a},t))}var aM=function(t){return Array.isArray(t)?t[0]:t},sM=function(t){if(typeof t=="function"){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.apply(void 0,r)}},fb=function(t,n){if(typeof t=="function")return sM(t,n);t!=null&&(t.current=n)},iT=function(t){return t.reduce(function(n,r){var o=r[0],i=r[1];return n[o]=i,n},{})},aT=typeof window!="undefined"&&window.document&&window.document.createElement?P.useLayoutEffect:P.useEffect,CK=typeof Element!="undefined",kK=typeof Map=="function",SK=typeof Set=="function",TK=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function hc(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,r,o;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(!hc(e[r],t[r]))return!1;return!0}var i;if(kK&&e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;for(i=e.entries();!(r=i.next()).done;)if(!hc(r.value[1],t.get(r.value[0])))return!1;return!0}if(SK&&e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i=e.entries();!(r=i.next()).done;)if(!t.has(r.value[0]))return!1;return!0}if(TK&&ArrayBuffer.isView(e)&&ArrayBuffer.isView(t)){if(n=e.length,n!=t.length)return!1;for(r=n;r--!==0;)if(e[r]!==t[r])return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf&&typeof e.valueOf=="function"&&typeof t.valueOf=="function")return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString&&typeof e.toString=="function"&&typeof t.toString=="function")return e.toString()===t.toString();if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[r]))return!1;if(CK&&e instanceof Element)return!1;for(r=n;r--!==0;)if(!((o[r]==="_owner"||o[r]==="__v"||o[r]==="__o")&&e.$$typeof)&&!hc(e[o[r]],t[o[r]]))return!1;return!0}return e!==e&&t!==t}var EK=function(t,n){try{return hc(t,n)}catch(r){if((r.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw r}};const OK=g.getDefaultExportFromCjs(EK);var DK=[],RK=function(t,n,r){r===void 0&&(r={});var o=P.useRef(null),i={onFirstUpdate:r.onFirstUpdate,placement:r.placement||"bottom",strategy:r.strategy||"absolute",modifiers:r.modifiers||DK},a=P.useState({styles:{popper:{position:i.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),s=a[0],c=a[1],l=P.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(f){var m=f.state,b=Object.keys(m.elements);MT.flushSync(function(){c({styles:iT(b.map(function(v){return[v,m.styles[v]||{}]})),attributes:iT(b.map(function(v){return[v,m.attributes[v]]}))})})},requires:["computeStyles"]}},[]),u=P.useMemo(function(){var p={onFirstUpdate:i.onFirstUpdate,placement:i.placement,strategy:i.strategy,modifiers:[].concat(i.modifiers,[l,{name:"applyStyles",enabled:!1}])};return OK(o.current,p)?o.current||p:(o.current=p,p)},[i.onFirstUpdate,i.placement,i.strategy,i.modifiers,l]),d=P.useRef();return aT(function(){d.current&&d.current.setOptions(u)},[u]),aT(function(){if(!(t==null||n==null)){var p=r.createPopper||g.createPopper,f=p(t,n,u);return d.current=f,function(){f.destroy(),d.current=null}}},[t,n,r.createPopper]),{state:d.current?d.current.state:null,styles:s.styles,attributes:s.attributes,update:d.current?d.current.update:null,forceUpdate:d.current?d.current.forceUpdate:null}},AK=function(){},MK=function(){return Promise.resolve(null)},NK=[];function PK(e){var t=e.placement,n=t===void 0?"bottom":t,r=e.strategy,o=r===void 0?"absolute":r,i=e.modifiers,a=i===void 0?NK:i,s=e.referenceElement,c=e.onFirstUpdate,l=e.innerRef,u=e.children,d=P.useContext(oM),p=P.useState(null),f=p[0],m=p[1],b=P.useState(null),v=b[0],w=b[1];P.useEffect(function(){fb(l,f)},[l,f]);var _=P.useMemo(function(){return{placement:n,strategy:o,onFirstUpdate:c,modifiers:[].concat(a,[{name:"arrow",enabled:v!=null,options:{element:v}}])}},[n,o,c,a,v]),T=RK(s||d,f,_),y=T.state,k=T.styles,S=T.forceUpdate,x=T.update,C=P.useMemo(function(){return{ref:m,style:k.popper,placement:y?y.placement:n,hasPopperEscaped:y&&y.modifiersData.hide?y.modifiersData.hide.hasPopperEscaped:null,isReferenceHidden:y&&y.modifiersData.hide?y.modifiersData.hide.isReferenceHidden:null,arrowProps:{style:k.arrow,ref:w},forceUpdate:S||AK,update:x||MK}},[m,w,n,y,k,x,S]);return aM(u)(C)}var IK=process.env.NODE_ENV!=="production",lM=function(){};if(IK){var jK=function(t,n){var r=arguments.length;n=new Array(r>1?r-1:0);for(var o=1;o<r;o++)n[o-1]=arguments[o];var i=0,a="Warning: "+t.replace(/%s/g,function(){return n[i++]});typeof console!="undefined"&&console.error(a);try{throw new Error(a)}catch(s){}};lM=function(e,t,n){var r=arguments.length;n=new Array(r>2?r-2:0);for(var o=2;o<r;o++)n[o-2]=arguments[o];if(t===void 0)throw new Error("`warning(condition, format, ...args)` requires a warning message argument");e||jK.apply(null,[t].concat(n))}}var LK=lM;const FK=g.getDefaultExportFromCjs(LK);function BK(e){var t=e.children,n=e.innerRef,r=P.useContext(iM),o=P.useCallback(function(i){fb(n,i),sM(r,i)},[n,r]);return P.useEffect(function(){return function(){return fb(n,null)}},[]),P.useEffect(function(){FK(!!r,"`Reference` should not be used outside of a `Manager` component.")},[r]),aM(t)({ref:o})}function sT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),n.push.apply(n,r)}return n}function _u(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sT(Object(n),!0).forEach(function(r){W(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gb(e){return gb=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},gb(e)}function zt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lT(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,cM(r.key),r)}}function Wt(e,t,n){return t&&lT(e.prototype,t),n&&lT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function W(e,t,n){return(t=cM(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oa(){return Oa=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oa.apply(this,arguments)}function Ut(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&mb(e,t)}function Cu(e){return Cu=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Cu(e)}function mb(e,t){return mb=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},mb(e,t)}function q(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Yt(e){var t=function(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(n){return!1}}();return function(){var n,r=Cu(e);if(t){var o=Cu(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return function(i,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return q(i)}(this,n)}}function zs(e){return function(t){if(Array.isArray(t))return Em(t)}(e)||function(t){if(typeof Symbol!="undefined"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,n){if(t){if(typeof t=="string")return Em(t,n);var r=Object.prototype.toString.call(t).slice(8,-1);if(r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set")return Array.from(t);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Em(t,n)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
494
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Em(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function cM(e){var t=function(n,r){if(typeof n!="object"||n===null)return n;var o=n[Symbol.toPrimitive];if(o!==void 0){var i=o.call(n,r||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(n)}(e,"string");return typeof t=="symbol"?t:String(t)}var cT=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},uT=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},HK={p:uT,P:function(e,t){var n,r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return cT(e,t);switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",cT(o,t)).replace("{{time}}",uT(i,t))}},ws=12,$K=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g;function nt(e){var t=e?typeof e=="string"||e instanceof String?g.parseISO(e):g.toDate(e):new Date;return bo(t)?t:null}function bo(e,t){return t=t||new Date("1/1/1000"),Ls(e)&&!Oo(e,t)}function ht(e,t,n){if(n==="en")return IS(e,t,{awareOfUnicodeTokens:!0});var r=hi(n);return n&&!r&&console.warn('A locale object was not found for the provided string ["'.concat(n,'"].')),!r&&pi()&&hi(pi())&&(r=hi(pi())),IS(e,t,{locale:r||null,awareOfUnicodeTokens:!0})}function Sr(e,t){var n=t.dateFormat,r=t.locale;return e&&ht(e,Array.isArray(n)?n[0]:n,r)||""}function dT(e,t){var n=t.hour,r=n===void 0?0:n,o=t.minute,i=o===void 0?0:o,a=t.second;return lc(cc(JG(e,a===void 0?0:a),i),r)}function Br(e,t,n){var r=hi(t||pi());return cA(e,{locale:r,weekStartsOn:n})}function Ao(e){return bA(e)}function us(e){return yA(e)}function pT(e){return Qv(e)}function hT(){return Lr(nt())}function Do(e,t){return e&&t?GG(e,t):!e&&!t}function hr(e,t){return e&&t?qG(e,t):!e&&!t}function ku(e,t){return e&&t?VG(e,t):!e&&!t}function it(e,t){return e&&t?WV(e,t):!e&&!t}function ci(e,t){return e&&t?QV(e,t):!e&&!t}function fc(e,t,n){var r,o=Lr(t),i=Zv(n);try{r=Fs(e,{start:o,end:i})}catch(a){r=!1}return r}function pi(){return(typeof window!="undefined"?window:globalThis).__localeId__}function hi(e){if(typeof e=="string"){var t=typeof window!="undefined"?window:globalThis;return t.__localeData__?t.__localeData__[e]:null}return e}function Xy(e,t){return ht(g.setMonth(nt(),e),"LLLL",t)}function uM(e,t){return ht(g.setMonth(nt(),e),"LLL",t)}function Bd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.excludeDateIntervals,a=t.includeDates,s=t.includeDateIntervals,c=t.filterDate;return Hd(e,{minDate:n,maxDate:r})||o&&o.some(function(l){return it(e,l)})||i&&i.some(function(l){var u=l.start,d=l.end;return Fs(e,{start:u,end:d})})||a&&!a.some(function(l){return it(e,l)})||s&&!s.some(function(l){var u=l.start,d=l.end;return Fs(e,{start:u,end:d})})||c&&!c(nt(e))||!1}function e0(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeDates,r=t.excludeDateIntervals;return r&&r.length>0?r.some(function(o){var i=o.start,a=o.end;return Fs(e,{start:i,end:a})}):n&&n.some(function(o){return it(e,o)})||!1}function dM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Hd(e,{minDate:bA(n),maxDate:UV(r)})||o&&o.some(function(s){return hr(e,s)})||i&&!i.some(function(s){return hr(e,s)})||a&&!a(nt(e))||!1}function Om(e,t,n,r){var o=Pe(e),i=dn(e),a=Pe(t),s=dn(t),c=Pe(r);return o===a&&o===c?i<=n&&n<=s:o<a?c===o&&i<=n||c===a&&s>=n||c<a&&c>o:void 0}function zK(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate;return Hd(e,{minDate:n,maxDate:r})||o&&o.some(function(s){return ku(e,s)})||i&&!i.some(function(s){return ku(e,s)})||a&&!a(nt(e))||!1}function Dm(e,t,n){if(!Ls(t)||!Ls(n))return!1;var r=Pe(t),o=Pe(n);return r<=e&&o>=e}function pM(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate,o=t.excludeDates,i=t.includeDates,a=t.filterDate,s=new Date(e,0,1);return Hd(s,{minDate:yA(n),maxDate:YV(r)})||o&&o.some(function(c){return Do(s,c)})||i&&!i.some(function(c){return Do(s,c)})||a&&!a(nt(s))||!1}function Rm(e,t,n,r){var o=Pe(e),i=ia(e),a=Pe(t),s=ia(t),c=Pe(r);return o===a&&o===c?i<=n&&n<=s:o<a?c===o&&i<=n||c===a&&s>=n||c<a&&c>o:void 0}function Hd(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.maxDate;return n&&pu(e,n)<0||r&&pu(e,r)>0}function fT(e,t){return t.some(function(n){return jr(n)===jr(e)&&Fr(n)===Fr(e)})}function gT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.excludeTimes,r=t.includeTimes,o=t.filterTime;return n&&fT(e,n)||r&&!fT(e,r)||o&&!o(e)||!1}function mT(e,t){var n=t.minTime,r=t.maxTime;if(!n||!r)throw new Error("Both minTime and maxTime props required");var o,i=nt(),a=lc(cc(i,Fr(e)),jr(e)),s=lc(cc(i,Fr(n)),jr(n)),c=lc(cc(i,Fr(r)),jr(r));try{o=!Fs(a,{start:s,end:c})}catch(l){o=!1}return o}function vT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,o=Ca(e,1);return n&&hu(n,o)>0||r&&r.every(function(i){return hu(i,o)>0})||!1}function bT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=g.addMonths(e,1);return n&&hu(o,n)>0||r&&r.every(function(i){return hu(o,i)>0})||!1}function yT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.minDate,r=t.includeDates,o=g.subYears(e,1);return n&&fu(n,o)>0||r&&r.every(function(i){return fu(i,o)>0})||!1}function wT(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.maxDate,r=t.includeDates,o=g.addYears(e,1);return n&&fu(o,n)>0||r&&r.every(function(i){return fu(o,i)>0})||!1}function hM(e){var t=e.minDate,n=e.includeDates;if(n&&t){var r=n.filter(function(o){return pu(o,t)>=0});return FS(r)}return n?FS(n):t}function fM(e){var t=e.maxDate,n=e.includeDates;if(n&&t){var r=n.filter(function(o){return pu(o,t)<=0});return LS(r)}return n?LS(n):t}function xT(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--highlighted",n=new Map,r=0,o=e.length;r<o;r++){var i=e[r];if(Ad(i)){var a=ht(i,"MM.dd.yyyy"),s=n.get(a)||[];s.includes(t)||(s.push(t),n.set(a,s))}else if(gb(i)==="object"){var c=Object.keys(i),l=c[0],u=i[c[0]];if(typeof l=="string"&&u.constructor===Array)for(var d=0,p=u.length;d<p;d++){var f=ht(u[d],"MM.dd.yyyy"),m=n.get(f)||[];m.includes(l)||(m.push(l),n.set(f,m))}}}return n}function WK(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"react-datepicker__day--holidays",n=new Map;return e.forEach(function(r){var o=r.date,i=r.holidayName;if(Ad(o)){var a=ht(o,"MM.dd.yyyy"),s=n.get(a)||{};if(!("className"in s)||s.className!==t||(c=s.holidayNames,l=[i],c.length!==l.length||!c.every(function(d,p){return d===l[p]}))){var c,l;s.className=t;var u=s.holidayNames;s.holidayNames=u?[].concat(zs(u),[i]):[i],n.set(a,s)}}}),n}function UK(e,t,n,r,o){for(var i=o.length,a=[],s=0;s<i;s++){var c=Jv(FV(e,jr(o[s])),Fr(o[s])),l=Jv(e,(n+1)*r);Po(c,t)&&Oo(c,l)&&a.push(o[s])}return a}function _T(e){return e<10?"0".concat(e):"".concat(e)}function aa(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ws,n=Math.ceil(Pe(e)/t)*t;return{startPeriod:n-(t-1),endPeriod:n}}function CT(e){var t=e.getSeconds(),n=e.getMilliseconds();return g.toDate(e.getTime()-1e3*t-n)}function YK(e,t,n,r){for(var o=[],i=0;i<2*t+1;i++){var a=e+t-i,s=!0;n&&(s=Pe(n)<=a),r&&s&&(s=Pe(r)>=a),s&&o.push(a)}return o}var qK=Fd(function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;zt(this,n),W(q(o=t.call(this,r)),"renderOptions",function(){var c=o.props.year,l=o.state.yearsList.map(function(p){return H.createElement("div",{className:c===p?"react-datepicker__year-option react-datepicker__year-option--selected_year":"react-datepicker__year-option",key:p,onClick:o.onChange.bind(q(o),p),"aria-selected":c===p?"true":void 0},c===p?H.createElement("span",{className:"react-datepicker__year-option--selected"},"✓"):"",p)}),u=o.props.minDate?Pe(o.props.minDate):null,d=o.props.maxDate?Pe(o.props.maxDate):null;return d&&o.state.yearsList.find(function(p){return p===d})||l.unshift(H.createElement("div",{className:"react-datepicker__year-option",key:"upcoming",onClick:o.incrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-upcoming"}))),u&&o.state.yearsList.find(function(p){return p===u})||l.push(H.createElement("div",{className:"react-datepicker__year-option",key:"previous",onClick:o.decrementYears},H.createElement("a",{className:"react-datepicker__navigation react-datepicker__navigation--years react-datepicker__navigation--years-previous"}))),l}),W(q(o),"onChange",function(c){o.props.onChange(c)}),W(q(o),"handleClickOutside",function(){o.props.onCancel()}),W(q(o),"shiftYears",function(c){var l=o.state.yearsList.map(function(u){return u+c});o.setState({yearsList:l})}),W(q(o),"incrementYears",function(){return o.shiftYears(1)}),W(q(o),"decrementYears",function(){return o.shiftYears(-1)});var i=r.yearDropdownItemNumber,a=r.scrollableYearDropdown,s=i||(a?10:5);return o.state={yearsList:YK(o.props.year,s,o.props.minDate,o.props.maxDate)},o.dropdownRef=H.createRef(),o}return Wt(n,[{key:"componentDidMount",value:function(){var r=this.dropdownRef.current;if(r){var o=r.children?Array.from(r.children):null,i=o?o.find(function(a){return a.ariaSelected}):null;r.scrollTop=i?i.offsetTop+(i.clientHeight-r.clientHeight)/2:(r.scrollHeight-r.clientHeight)/2}}},{key:"render",value:function(){var r=g.r({"react-datepicker__year-dropdown":!0,"react-datepicker__year-dropdown--scrollable":this.props.scrollableYearDropdown});return H.createElement("div",{className:r,ref:this.dropdownRef},this.renderOptions())}}]),n}()),VK=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),W(q(r),"renderSelectOptions",function(){for(var s=r.props.minDate?Pe(r.props.minDate):1900,c=r.props.maxDate?Pe(r.props.maxDate):2100,l=[],u=s;u<=c;u++)l.push(H.createElement("option",{key:u,value:u},u));return l}),W(q(r),"onSelectChange",function(s){r.onChange(s.target.value)}),W(q(r),"renderSelectMode",function(){return H.createElement("select",{value:r.props.year,className:"react-datepicker__year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),W(q(r),"renderReadView",function(s){return H.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__year-read-view",onClick:function(c){return r.toggleDropdown(c)}},H.createElement("span",{className:"react-datepicker__year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__year-read-view--selected-year"},r.props.year))}),W(q(r),"renderDropdown",function(){return H.createElement(qK,{key:"dropdown",year:r.props.year,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableYearDropdown:r.props.scrollableYearDropdown,yearDropdownItemNumber:r.props.yearDropdownItemNumber})}),W(q(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,c=[r.renderReadView(!s)];return s&&c.unshift(r.renderDropdown()),c}),W(q(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.year&&r.props.onChange(s)}),W(q(r),"toggleDropdown",function(s){r.setState({dropdownVisible:!r.state.dropdownVisible},function(){r.props.adjustDateOnChange&&r.handleYearChange(r.props.date,s)})}),W(q(r),"handleYearChange",function(s,c){r.onSelect(s,c),r.setOpen()}),W(q(r),"onSelect",function(s,c){r.props.onSelect&&r.props.onSelect(s,c)}),W(q(r),"setOpen",function(){r.props.setOpen&&r.props.setOpen(!0)}),r}return Wt(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return H.createElement("div",{className:"react-datepicker__year-dropdown-container react-datepicker__year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),GK=Fd(function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"isSelectedMonth",function(s){return r.props.month===s}),W(q(r),"renderOptions",function(){return r.props.monthNames.map(function(s,c){return H.createElement("div",{className:r.isSelectedMonth(c)?"react-datepicker__month-option react-datepicker__month-option--selected_month":"react-datepicker__month-option",key:s,onClick:r.onChange.bind(q(r),c),"aria-selected":r.isSelectedMonth(c)?"true":void 0},r.isSelectedMonth(c)?H.createElement("span",{className:"react-datepicker__month-option--selected"},"✓"):"",s)})}),W(q(r),"onChange",function(s){return r.props.onChange(s)}),W(q(r),"handleClickOutside",function(){return r.props.onCancel()}),r}return Wt(n,[{key:"render",value:function(){return H.createElement("div",{className:"react-datepicker__month-dropdown"},this.renderOptions())}}]),n}()),QK=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),W(q(r),"renderSelectOptions",function(s){return s.map(function(c,l){return H.createElement("option",{key:l,value:l},c)})}),W(q(r),"renderSelectMode",function(s){return H.createElement("select",{value:r.props.month,className:"react-datepicker__month-select",onChange:function(c){return r.onChange(c.target.value)}},r.renderSelectOptions(s))}),W(q(r),"renderReadView",function(s,c){return H.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-read-view",onClick:r.toggleDropdown},H.createElement("span",{className:"react-datepicker__month-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-read-view--selected-month"},c[r.props.month]))}),W(q(r),"renderDropdown",function(s){return H.createElement(GK,{key:"dropdown",month:r.props.month,monthNames:s,onChange:r.onChange,onCancel:r.toggleDropdown})}),W(q(r),"renderScrollMode",function(s){var c=r.state.dropdownVisible,l=[r.renderReadView(!c,s)];return c&&l.unshift(r.renderDropdown(s)),l}),W(q(r),"onChange",function(s){r.toggleDropdown(),s!==r.props.month&&r.props.onChange(s)}),W(q(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Wt(n,[{key:"render",value:function(){var r,o=this,i=[0,1,2,3,4,5,6,7,8,9,10,11].map(this.props.useShortMonthInDropdown?function(a){return uM(a,o.props.locale)}:function(a){return Xy(a,o.props.locale)});switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode(i);break;case"select":r=this.renderSelectMode(i)}return H.createElement("div",{className:"react-datepicker__month-dropdown-container react-datepicker__month-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}();function JK(e,t){for(var n=[],r=Ao(e),o=Ao(t);!Po(r,o);)n.push(nt(r)),r=g.addMonths(r,1);return n}var ZK=Fd(function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"renderOptions",function(){return o.state.monthYearsList.map(function(i){var a=Gv(i),s=Do(o.props.date,i)&&hr(o.props.date,i);return H.createElement("div",{className:s?"react-datepicker__month-year-option--selected_month-year":"react-datepicker__month-year-option",key:a,onClick:o.onChange.bind(q(o),a),"aria-selected":s?"true":void 0},s?H.createElement("span",{className:"react-datepicker__month-year-option--selected"},"✓"):"",ht(i,o.props.dateFormat,o.props.locale))})}),W(q(o),"onChange",function(i){return o.props.onChange(i)}),W(q(o),"handleClickOutside",function(){o.props.onCancel()}),o.state={monthYearsList:JK(o.props.minDate,o.props.maxDate)},o}return Wt(n,[{key:"render",value:function(){var r=g.r({"react-datepicker__month-year-dropdown":!0,"react-datepicker__month-year-dropdown--scrollable":this.props.scrollableMonthYearDropdown});return H.createElement("div",{className:r},this.renderOptions())}}]),n}()),KK=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"state",{dropdownVisible:!1}),W(q(r),"renderSelectOptions",function(){for(var s=Ao(r.props.minDate),c=Ao(r.props.maxDate),l=[];!Po(s,c);){var u=Gv(s);l.push(H.createElement("option",{key:u,value:u},ht(s,r.props.dateFormat,r.props.locale))),s=g.addMonths(s,1)}return l}),W(q(r),"onSelectChange",function(s){r.onChange(s.target.value)}),W(q(r),"renderSelectMode",function(){return H.createElement("select",{value:Gv(Ao(r.props.date)),className:"react-datepicker__month-year-select",onChange:r.onSelectChange},r.renderSelectOptions())}),W(q(r),"renderReadView",function(s){var c=ht(r.props.date,r.props.dateFormat,r.props.locale);return H.createElement("div",{key:"read",style:{visibility:s?"visible":"hidden"},className:"react-datepicker__month-year-read-view",onClick:function(l){return r.toggleDropdown(l)}},H.createElement("span",{className:"react-datepicker__month-year-read-view--down-arrow"}),H.createElement("span",{className:"react-datepicker__month-year-read-view--selected-month-year"},c))}),W(q(r),"renderDropdown",function(){return H.createElement(ZK,{key:"dropdown",date:r.props.date,dateFormat:r.props.dateFormat,onChange:r.onChange,onCancel:r.toggleDropdown,minDate:r.props.minDate,maxDate:r.props.maxDate,scrollableMonthYearDropdown:r.props.scrollableMonthYearDropdown,locale:r.props.locale})}),W(q(r),"renderScrollMode",function(){var s=r.state.dropdownVisible,c=[r.renderReadView(!s)];return s&&c.unshift(r.renderDropdown()),c}),W(q(r),"onChange",function(s){r.toggleDropdown();var c=nt(parseInt(s));Do(r.props.date,c)&&hr(r.props.date,c)||r.props.onChange(c)}),W(q(r),"toggleDropdown",function(){return r.setState({dropdownVisible:!r.state.dropdownVisible})}),r}return Wt(n,[{key:"render",value:function(){var r;switch(this.props.dropdownMode){case"scroll":r=this.renderScrollMode();break;case"select":r=this.renderSelectMode()}return H.createElement("div",{className:"react-datepicker__month-year-dropdown-container react-datepicker__month-year-dropdown-container--".concat(this.props.dropdownMode)},r)}}]),n}(),XK=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"dayEl",H.createRef()),W(q(r),"handleClick",function(s){!r.isDisabled()&&r.props.onClick&&r.props.onClick(s)}),W(q(r),"handleMouseEnter",function(s){!r.isDisabled()&&r.props.onMouseEnter&&r.props.onMouseEnter(s)}),W(q(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),W(q(r),"isSameDay",function(s){return it(r.props.day,s)}),W(q(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!(r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected))&&(r.isSameDay(r.props.preSelection)||r.isSameWeek(r.props.preSelection))}),W(q(r),"isDisabled",function(){return Bd(r.props.day,r.props)}),W(q(r),"isExcluded",function(){return e0(r.props.day,r.props)}),W(q(r),"isStartOfWeek",function(){return it(r.props.day,Br(r.props.day,r.props.locale,r.props.calendarStartDay))}),W(q(r),"isSameWeek",function(s){return r.props.showWeekPicker&&it(s,Br(r.props.day,r.props.locale,r.props.calendarStartDay))}),W(q(r),"getHighLightedClass",function(){var s=r.props,c=s.day,l=s.highlightDates;if(!l)return!1;var u=ht(c,"MM.dd.yyyy");return l.get(u)}),W(q(r),"getHolidaysClass",function(){var s=r.props,c=s.day,l=s.holidays;if(!l)return!1;var u=ht(c,"MM.dd.yyyy");return l.has(u)?[l.get(u).className]:void 0}),W(q(r),"isInRange",function(){var s=r.props,c=s.day,l=s.startDate,u=s.endDate;return!(!l||!u)&&fc(c,l,u)}),W(q(r),"isInSelectingRange",function(){var s,c=r.props,l=c.day,u=c.selectsStart,d=c.selectsEnd,p=c.selectsRange,f=c.selectsDisabledDaysInRange,m=c.startDate,b=c.endDate,v=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return!(!(u||d||p)||!v||!f&&r.isDisabled())&&(u&&b&&(Oo(v,b)||ci(v,b))?fc(l,v,b):(d&&m&&(Po(v,m)||ci(v,m))||!(!p||!m||b||!Po(v,m)&&!ci(v,m)))&&fc(l,m,v))}),W(q(r),"isSelectingRangeStart",function(){var s;if(!r.isInSelectingRange())return!1;var c=r.props,l=c.day,u=c.startDate,d=c.selectsStart,p=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return it(l,d?p:u)}),W(q(r),"isSelectingRangeEnd",function(){var s;if(!r.isInSelectingRange())return!1;var c=r.props,l=c.day,u=c.endDate,d=c.selectsEnd,p=c.selectsRange,f=(s=r.props.selectingDate)!==null&&s!==void 0?s:r.props.preSelection;return it(l,d||p?f:u)}),W(q(r),"isRangeStart",function(){var s=r.props,c=s.day,l=s.startDate,u=s.endDate;return!(!l||!u)&&it(l,c)}),W(q(r),"isRangeEnd",function(){var s=r.props,c=s.day,l=s.startDate,u=s.endDate;return!(!l||!u)&&it(u,c)}),W(q(r),"isWeekend",function(){var s=PV(r.props.day);return s===0||s===6}),W(q(r),"isAfterMonth",function(){return r.props.month!==void 0&&(r.props.month+1)%12===dn(r.props.day)}),W(q(r),"isBeforeMonth",function(){return r.props.month!==void 0&&(dn(r.props.day)+1)%12===r.props.month}),W(q(r),"isCurrentDay",function(){return r.isSameDay(nt())}),W(q(r),"isSelected",function(){return r.isSameDay(r.props.selected)||r.isSameWeek(r.props.selected)}),W(q(r),"getClassNames",function(s){var c,l=r.props.dayClassName?r.props.dayClassName(s):void 0;return g.r("react-datepicker__day",l,"react-datepicker__day--"+ht(r.props.day,"ddd",c),{"react-datepicker__day--disabled":r.isDisabled(),"react-datepicker__day--excluded":r.isExcluded(),"react-datepicker__day--selected":r.isSelected(),"react-datepicker__day--keyboard-selected":r.isKeyboardSelected(),"react-datepicker__day--range-start":r.isRangeStart(),"react-datepicker__day--range-end":r.isRangeEnd(),"react-datepicker__day--in-range":r.isInRange(),"react-datepicker__day--in-selecting-range":r.isInSelectingRange(),"react-datepicker__day--selecting-range-start":r.isSelectingRangeStart(),"react-datepicker__day--selecting-range-end":r.isSelectingRangeEnd(),"react-datepicker__day--today":r.isCurrentDay(),"react-datepicker__day--weekend":r.isWeekend(),"react-datepicker__day--outside-month":r.isAfterMonth()||r.isBeforeMonth()},r.getHighLightedClass("react-datepicker__day--highlighted"),r.getHolidaysClass())}),W(q(r),"getAriaLabel",function(){var s=r.props,c=s.day,l=s.ariaLabelPrefixWhenEnabled,u=l===void 0?"Choose":l,d=s.ariaLabelPrefixWhenDisabled,p=d===void 0?"Not available":d,f=r.isDisabled()||r.isExcluded()?p:u;return"".concat(f," ").concat(ht(c,"PPPP",r.props.locale))}),W(q(r),"getTitle",function(){var s=r.props,c=s.day,l=s.holidays,u=l===void 0?new Map:l,d=ht(c,"MM.dd.yyyy");return u.has(d)&&u.get(d).holidayNames.length>0?u.get(d).holidayNames.join(", "):""}),W(q(r),"getTabIndex",function(s,c){var l=s||r.props.selected,u=c||r.props.preSelection;return(!r.props.showWeekPicker||!r.props.showWeekNumber&&r.isStartOfWeek())&&(r.isKeyboardSelected()||r.isSameDay(l)&&it(u,l))?0:-1}),W(q(r),"handleFocusDay",function(){var s,c=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},l=!1;r.getTabIndex()===0&&!c.isInputFocused&&r.isSameDay(r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(l=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(l=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement.classList.contains("react-datepicker__day")&&(l=!0),r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()&&(l=!1),r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()&&(l=!1)),l&&((s=r.dayEl.current)===null||s===void 0||s.focus({preventScroll:!0}))}),W(q(r),"renderDayContents",function(){return r.props.monthShowsDuplicateDaysEnd&&r.isAfterMonth()||r.props.monthShowsDuplicateDaysStart&&r.isBeforeMonth()?null:r.props.renderDayContents?r.props.renderDayContents(BS(r.props.day),r.props.day):BS(r.props.day)}),W(q(r),"render",function(){return H.createElement("div",{ref:r.dayEl,className:r.getClassNames(r.props.day),onKeyDown:r.handleOnKeyDown,onClick:r.handleClick,onMouseEnter:r.handleMouseEnter,tabIndex:r.getTabIndex(),"aria-label":r.getAriaLabel(),role:"option",title:r.getTitle(),"aria-disabled":r.isDisabled(),"aria-current":r.isCurrentDay()?"date":void 0,"aria-selected":r.isSelected()||r.isInRange()},r.renderDayContents(),r.getTitle()!==""&&H.createElement("span",{className:"holiday-overlay"},r.getTitle()))}),r}return Wt(n,[{key:"componentDidMount",value:function(){this.handleFocusDay()}},{key:"componentDidUpdate",value:function(r){this.handleFocusDay(r)}}]),n}(),eX=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"weekNumberEl",H.createRef()),W(q(r),"handleClick",function(s){r.props.onClick&&r.props.onClick(s)}),W(q(r),"handleOnKeyDown",function(s){s.key===" "&&(s.preventDefault(),s.key="Enter"),r.props.handleOnKeyDown(s)}),W(q(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!it(r.props.date,r.props.selected)&&it(r.props.date,r.props.preSelection)}),W(q(r),"getTabIndex",function(){return r.props.showWeekPicker&&r.props.showWeekNumber&&(r.isKeyboardSelected()||it(r.props.date,r.props.selected)&&it(r.props.preSelection,r.props.selected))?0:-1}),W(q(r),"handleFocusWeekNumber",function(){var s=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},c=!1;r.getTabIndex()===0&&!s.isInputFocused&&it(r.props.date,r.props.preSelection)&&(document.activeElement&&document.activeElement!==document.body||(c=!0),r.props.inline&&!r.props.shouldFocusDayInline&&(c=!1),r.props.containerRef&&r.props.containerRef.current&&r.props.containerRef.current.contains(document.activeElement)&&document.activeElement&&document.activeElement.classList.contains("react-datepicker__week-number")&&(c=!0)),c&&r.weekNumberEl.current&&r.weekNumberEl.current.focus({preventScroll:!0})}),r}return Wt(n,[{key:"componentDidMount",value:function(){this.handleFocusWeekNumber()}},{key:"componentDidUpdate",value:function(r){this.handleFocusWeekNumber(r)}},{key:"render",value:function(){var r=this.props,o=r.weekNumber,i=r.ariaLabelPrefix,a=i===void 0?"week ":i,s={"react-datepicker__week-number":!0,"react-datepicker__week-number--clickable":!!r.onClick,"react-datepicker__week-number--selected":it(this.props.date,this.props.selected),"react-datepicker__week-number--keyboard-selected":this.isKeyboardSelected()};return H.createElement("div",{ref:this.weekNumberEl,className:g.r(s),"aria-label":"".concat(a," ").concat(this.props.weekNumber),onClick:this.handleClick,onKeyDown:this.handleOnKeyDown,tabIndex:this.getTabIndex()},o)}}],[{key:"defaultProps",get:function(){return{ariaLabelPrefix:"week "}}}]),n}(),tX=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"handleDayClick",function(s,c){r.props.onDayClick&&r.props.onDayClick(s,c)}),W(q(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),W(q(r),"handleWeekClick",function(s,c,l){if(typeof r.props.onWeekSelect=="function"&&r.props.onWeekSelect(s,c,l),r.props.showWeekPicker){var u=Br(s,r.props.locale,r.props.calendarStartDay);r.handleDayClick(u,l)}r.props.shouldCloseOnSelect&&r.props.setOpen(!1)}),W(q(r),"formatWeekNumber",function(s){return r.props.formatWeekNumber?r.props.formatWeekNumber(s):function(c,l){var u=pi()&&hi(pi());return GV(c,u?{locale:u}:null)}(s)}),W(q(r),"renderDays",function(){var s=Br(r.props.day,r.props.locale,r.props.calendarStartDay),c=[],l=r.formatWeekNumber(s);if(r.props.showWeekNumber){var u=r.props.onWeekSelect||r.props.showWeekPicker?r.handleWeekClick.bind(q(r),s,l):void 0;c.push(H.createElement(eX,{key:"W",weekNumber:l,date:s,onClick:u,selected:r.props.selected,preSelection:r.props.preSelection,ariaLabelPrefix:r.props.ariaLabelPrefix,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef}))}return c.concat([0,1,2,3,4,5,6].map(function(d){var p=Na(s,d);return H.createElement(XK,{ariaLabelPrefixWhenEnabled:r.props.chooseDayAriaLabelPrefix,ariaLabelPrefixWhenDisabled:r.props.disabledDayAriaLabelPrefix,key:p.valueOf(),day:p,month:r.props.month,onClick:r.handleDayClick.bind(q(r),p),onMouseEnter:r.handleDayMouseEnter.bind(q(r),p),minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,showWeekPicker:r.props.showWeekPicker,showWeekNumber:r.props.showWeekNumber,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,renderDayContents:r.props.renderDayContents,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart,locale:r.props.locale})}))}),W(q(r),"startOfWeek",function(){return Br(r.props.day,r.props.locale,r.props.calendarStartDay)}),W(q(r),"isKeyboardSelected",function(){return!r.props.disabledKeyboardNavigation&&!it(r.startOfWeek(),r.props.selected)&&it(r.startOfWeek(),r.props.preSelection)}),r}return Wt(n,[{key:"render",value:function(){var r={"react-datepicker__week":!0,"react-datepicker__week--selected":it(this.startOfWeek(),this.props.selected),"react-datepicker__week--keyboard-selected":this.isKeyboardSelected()};return H.createElement("div",{className:g.r(r)},this.renderDays())}}],[{key:"defaultProps",get:function(){return{shouldCloseOnSelect:!0}}}]),n}(),gM="two_columns",mM="three_columns",vM="four_columns",Am=W(W(W({},gM,{grid:[[0,1],[2,3],[4,5],[6,7],[8,9],[10,11]],verticalNavigationOffset:2}),mM,{grid:[[0,1,2],[3,4,5],[6,7,8],[9,10,11]],verticalNavigationOffset:3}),vM,{grid:[[0,1,2,3],[4,5,6,7],[8,9,10,11]],verticalNavigationOffset:4});function kT(e,t){return e?vM:t?gM:mM}var nX=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"MONTH_REFS",zs(Array(12)).map(function(){return H.createRef()})),W(q(r),"QUARTER_REFS",zs(Array(4)).map(function(){return H.createRef()})),W(q(r),"isDisabled",function(s){return Bd(s,r.props)}),W(q(r),"isExcluded",function(s){return e0(s,r.props)}),W(q(r),"handleDayClick",function(s,c){r.props.onDayClick&&r.props.onDayClick(s,c,r.props.orderInDisplay)}),W(q(r),"handleDayMouseEnter",function(s){r.props.onDayMouseEnter&&r.props.onDayMouseEnter(s)}),W(q(r),"handleMouseLeave",function(){r.props.onMouseLeave&&r.props.onMouseLeave()}),W(q(r),"isRangeStartMonth",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate;return!(!u||!d)&&hr(g.setMonth(l,s),u)}),W(q(r),"isRangeStartQuarter",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate;return!(!u||!d)&&ku(Gi(l,s),u)}),W(q(r),"isRangeEndMonth",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate;return!(!u||!d)&&hr(g.setMonth(l,s),d)}),W(q(r),"isRangeEndQuarter",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate;return!(!u||!d)&&ku(Gi(l,s),d)}),W(q(r),"isInSelectingRangeMonth",function(s){var c,l=r.props,u=l.day,d=l.selectsStart,p=l.selectsEnd,f=l.selectsRange,m=l.startDate,b=l.endDate,v=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(d||p||f)||!v)&&(d&&b?Om(v,b,s,u):(p&&m||!(!f||!m||b))&&Om(m,v,s,u))}),W(q(r),"isSelectingMonthRangeStart",function(s){var c;if(!r.isInSelectingRangeMonth(s))return!1;var l=r.props,u=l.day,d=l.startDate,p=l.selectsStart,f=g.setMonth(u,s),m=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return hr(f,p?m:d)}),W(q(r),"isSelectingMonthRangeEnd",function(s){var c;if(!r.isInSelectingRangeMonth(s))return!1;var l=r.props,u=l.day,d=l.endDate,p=l.selectsEnd,f=l.selectsRange,m=g.setMonth(u,s),b=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return hr(m,p||f?b:d)}),W(q(r),"isInSelectingRangeQuarter",function(s){var c,l=r.props,u=l.day,d=l.selectsStart,p=l.selectsEnd,f=l.selectsRange,m=l.startDate,b=l.endDate,v=(c=r.props.selectingDate)!==null&&c!==void 0?c:r.props.preSelection;return!(!(d||p||f)||!v)&&(d&&b?Rm(v,b,s,u):(p&&m||!(!f||!m||b))&&Rm(m,v,s,u))}),W(q(r),"isWeekInMonth",function(s){var c=r.props.day,l=Na(s,6);return hr(s,c)||hr(l,c)}),W(q(r),"isCurrentMonth",function(s,c){return Pe(s)===Pe(nt())&&c===dn(nt())}),W(q(r),"isCurrentQuarter",function(s,c){return Pe(s)===Pe(nt())&&c===ia(nt())}),W(q(r),"isSelectedMonth",function(s,c,l){return dn(l)===c&&Pe(s)===Pe(l)}),W(q(r),"isSelectedQuarter",function(s,c,l){return ia(s)===c&&Pe(s)===Pe(l)}),W(q(r),"renderWeeks",function(){for(var s=[],c=r.props.fixedHeight,l=0,u=!1,d=Br(Ao(r.props.day),r.props.locale,r.props.calendarStartDay);s.push(H.createElement(tX,{ariaLabelPrefix:r.props.weekAriaLabelPrefix,chooseDayAriaLabelPrefix:r.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:r.props.disabledDayAriaLabelPrefix,key:l,day:d,month:dn(r.props.day),onDayClick:r.handleDayClick,onDayMouseEnter:r.handleDayMouseEnter,onWeekSelect:r.props.onWeekSelect,formatWeekNumber:r.props.formatWeekNumber,locale:r.props.locale,minDate:r.props.minDate,maxDate:r.props.maxDate,excludeDates:r.props.excludeDates,excludeDateIntervals:r.props.excludeDateIntervals,includeDates:r.props.includeDates,includeDateIntervals:r.props.includeDateIntervals,inline:r.props.inline,shouldFocusDayInline:r.props.shouldFocusDayInline,highlightDates:r.props.highlightDates,holidays:r.props.holidays,selectingDate:r.props.selectingDate,filterDate:r.props.filterDate,preSelection:r.props.preSelection,selected:r.props.selected,selectsStart:r.props.selectsStart,selectsEnd:r.props.selectsEnd,selectsRange:r.props.selectsRange,selectsDisabledDaysInRange:r.props.selectsDisabledDaysInRange,showWeekNumber:r.props.showWeekNumbers,showWeekPicker:r.props.showWeekPicker,startDate:r.props.startDate,endDate:r.props.endDate,dayClassName:r.props.dayClassName,setOpen:r.props.setOpen,shouldCloseOnSelect:r.props.shouldCloseOnSelect,disabledKeyboardNavigation:r.props.disabledKeyboardNavigation,renderDayContents:r.props.renderDayContents,handleOnKeyDown:r.props.handleOnKeyDown,isInputFocused:r.props.isInputFocused,containerRef:r.props.containerRef,calendarStartDay:r.props.calendarStartDay,monthShowsDuplicateDaysEnd:r.props.monthShowsDuplicateDaysEnd,monthShowsDuplicateDaysStart:r.props.monthShowsDuplicateDaysStart})),!u;){l++,d=lu(d,1);var p=c&&l>=6,f=!c&&!r.isWeekInMonth(d);if(p||f){if(!r.props.peekNextMonth)break;u=!0}}return s}),W(q(r),"onMonthClick",function(s,c){r.handleDayClick(Ao(g.setMonth(r.props.day,c)),s)}),W(q(r),"onMonthMouseEnter",function(s){r.handleDayMouseEnter(Ao(g.setMonth(r.props.day,s)))}),W(q(r),"handleMonthNavigation",function(s,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.MONTH_REFS[s].current&&r.MONTH_REFS[s].current.focus())}),W(q(r),"onMonthKeyDown",function(s,c){var l=r.props,u=l.selected,d=l.preSelection,p=l.disabledKeyboardNavigation,f=l.showTwoColumnMonthYearPicker,m=l.showFourColumnMonthYearPicker,b=l.setPreSelection,v=s.key;if(v!=="Tab"&&s.preventDefault(),!p){var w=kT(m,f),_=Am[w].verticalNavigationOffset,T=Am[w].grid;switch(v){case"Enter":r.onMonthClick(s,c),b(u);break;case"ArrowRight":r.handleMonthNavigation(c===11?0:c+1,g.addMonths(d,1));break;case"ArrowLeft":r.handleMonthNavigation(c===0?11:c-1,Ca(d,1));break;case"ArrowUp":r.handleMonthNavigation(T[0].includes(c)?c+12-_:c-_,Ca(d,_));break;case"ArrowDown":r.handleMonthNavigation(T[T.length-1].includes(c)?c-12+_:c+_,g.addMonths(d,_))}}}),W(q(r),"onQuarterClick",function(s,c){r.handleDayClick(pT(Gi(r.props.day,c)),s)}),W(q(r),"onQuarterMouseEnter",function(s){r.handleDayMouseEnter(pT(Gi(r.props.day,s)))}),W(q(r),"handleQuarterNavigation",function(s,c){r.isDisabled(c)||r.isExcluded(c)||(r.props.setPreSelection(c),r.QUARTER_REFS[s-1].current&&r.QUARTER_REFS[s-1].current.focus())}),W(q(r),"onQuarterKeyDown",function(s,c){var l=s.key;if(!r.props.disabledKeyboardNavigation)switch(l){case"Enter":r.onQuarterClick(s,c),r.props.setPreSelection(r.props.selected);break;case"ArrowRight":r.handleQuarterNavigation(c===4?1:c+1,uA(r.props.preSelection,1));break;case"ArrowLeft":r.handleQuarterNavigation(c===1?4:c-1,jV(r.props.preSelection,1))}}),W(q(r),"getMonthClassNames",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate,p=c.selected,f=c.minDate,m=c.maxDate,b=c.preSelection,v=c.monthClassName,w=c.excludeDates,_=c.includeDates,T=v?v(g.setMonth(l,s)):void 0,y=g.setMonth(l,s);return g.r("react-datepicker__month-text","react-datepicker__month-".concat(s),T,{"react-datepicker__month-text--disabled":(f||m||w||_)&&dM(y,r.props),"react-datepicker__month-text--selected":r.isSelectedMonth(l,s,p),"react-datepicker__month-text--keyboard-selected":!r.props.disabledKeyboardNavigation&&dn(b)===s,"react-datepicker__month-text--in-selecting-range":r.isInSelectingRangeMonth(s),"react-datepicker__month-text--in-range":Om(u,d,s,l),"react-datepicker__month-text--range-start":r.isRangeStartMonth(s),"react-datepicker__month-text--range-end":r.isRangeEndMonth(s),"react-datepicker__month-text--selecting-range-start":r.isSelectingMonthRangeStart(s),"react-datepicker__month-text--selecting-range-end":r.isSelectingMonthRangeEnd(s),"react-datepicker__month-text--today":r.isCurrentMonth(l,s)})}),W(q(r),"getTabIndex",function(s){var c=dn(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==c?"-1":"0"}),W(q(r),"getQuarterTabIndex",function(s){var c=ia(r.props.preSelection);return r.props.disabledKeyboardNavigation||s!==c?"-1":"0"}),W(q(r),"getAriaLabel",function(s){var c=r.props,l=c.chooseDayAriaLabelPrefix,u=l===void 0?"Choose":l,d=c.disabledDayAriaLabelPrefix,p=d===void 0?"Not available":d,f=c.day,m=g.setMonth(f,s),b=r.isDisabled(m)||r.isExcluded(m)?p:u;return"".concat(b," ").concat(ht(m,"MMMM yyyy"))}),W(q(r),"getQuarterClassNames",function(s){var c=r.props,l=c.day,u=c.startDate,d=c.endDate,p=c.selected,f=c.minDate,m=c.maxDate,b=c.preSelection,v=c.disabledKeyboardNavigation;return g.r("react-datepicker__quarter-text","react-datepicker__quarter-".concat(s),{"react-datepicker__quarter-text--disabled":(f||m)&&zK(Gi(l,s),r.props),"react-datepicker__quarter-text--selected":r.isSelectedQuarter(l,s,p),"react-datepicker__quarter-text--keyboard-selected":!v&&ia(b)===s,"react-datepicker__quarter-text--in-selecting-range":r.isInSelectingRangeQuarter(s),"react-datepicker__quarter-text--in-range":Rm(u,d,s,l),"react-datepicker__quarter-text--range-start":r.isRangeStartQuarter(s),"react-datepicker__quarter-text--range-end":r.isRangeEndQuarter(s)})}),W(q(r),"getMonthContent",function(s){var c=r.props,l=c.showFullMonthYearPicker,u=c.renderMonthContent,d=c.locale,p=c.day,f=uM(s,d),m=Xy(s,d);return u?u(s,f,m,p):l?m:f}),W(q(r),"getQuarterContent",function(s){var c=r.props,l=c.renderQuarterContent,u=function(d,p){return ht(Gi(nt(),d),"QQQ",p)}(s,c.locale);return l?l(s,u):u}),W(q(r),"renderMonths",function(){var s=r.props,c=s.showTwoColumnMonthYearPicker,l=s.showFourColumnMonthYearPicker,u=s.day,d=s.selected;return Am[kT(l,c)].grid.map(function(p,f){return H.createElement("div",{className:"react-datepicker__month-wrapper",key:f},p.map(function(m,b){return H.createElement("div",{ref:r.MONTH_REFS[m],key:b,onClick:function(v){r.onMonthClick(v,m)},onKeyDown:function(v){r.onMonthKeyDown(v,m)},onMouseEnter:function(){return r.onMonthMouseEnter(m)},tabIndex:r.getTabIndex(m),className:r.getMonthClassNames(m),role:"option","aria-label":r.getAriaLabel(m),"aria-current":r.isCurrentMonth(u,m)?"date":void 0,"aria-selected":r.isSelectedMonth(u,m,d)},r.getMonthContent(m))}))})}),W(q(r),"renderQuarters",function(){var s=r.props,c=s.day,l=s.selected;return H.createElement("div",{className:"react-datepicker__quarter-wrapper"},[1,2,3,4].map(function(u,d){return H.createElement("div",{key:d,ref:r.QUARTER_REFS[d],role:"option",onClick:function(p){r.onQuarterClick(p,u)},onKeyDown:function(p){r.onQuarterKeyDown(p,u)},onMouseEnter:function(){return r.onQuarterMouseEnter(u)},className:r.getQuarterClassNames(u),"aria-selected":r.isSelectedQuarter(c,u,l),tabIndex:r.getQuarterTabIndex(u),"aria-current":r.isCurrentQuarter(c,u)?"date":void 0},r.getQuarterContent(u))}))}),W(q(r),"getClassNames",function(){var s=r.props,c=s.selectingDate,l=s.selectsStart,u=s.selectsEnd,d=s.showMonthYearPicker,p=s.showQuarterYearPicker,f=s.showWeekPicker;return g.r("react-datepicker__month",{"react-datepicker__month--selecting-range":c&&(l||u)},{"react-datepicker__monthPicker":d},{"react-datepicker__quarterPicker":p},{"react-datepicker__weekPicker":f})}),r}return Wt(n,[{key:"render",value:function(){var r=this.props,o=r.showMonthYearPicker,i=r.showQuarterYearPicker,a=r.day,s=r.ariaLabelPrefix,c=s===void 0?"month ":s;return H.createElement("div",{className:this.getClassNames(),onMouseLeave:this.handleMouseLeave,"aria-label":"".concat(c," ").concat(ht(a,"yyyy-MM")),role:"listbox"},o?this.renderMonths():i?this.renderQuarters():this.renderWeeks())}}]),n}(),bM=function(e){Ut(n,H.Component);var t=Yt(n);function n(){var r;zt(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return W(q(r=t.call.apply(t,[this].concat(i))),"state",{height:null}),W(q(r),"scrollToTheSelectedTime",function(){requestAnimationFrame(function(){r.list&&(r.list.scrollTop=r.centerLi&&n.calcCenterPosition(r.props.monthRef?r.props.monthRef.clientHeight-r.header.clientHeight:r.list.clientHeight,r.centerLi))})}),W(q(r),"handleClick",function(s){(r.props.minTime||r.props.maxTime)&&mT(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&gT(s,r.props)||r.props.onChange(s)}),W(q(r),"isSelectedTime",function(s){return r.props.selected&&(c=r.props.selected,l=s,CT(c).getTime()===CT(l).getTime());var c,l}),W(q(r),"isDisabledTime",function(s){return(r.props.minTime||r.props.maxTime)&&mT(s,r.props)||(r.props.excludeTimes||r.props.includeTimes||r.props.filterTime)&&gT(s,r.props)}),W(q(r),"liClasses",function(s){var c=["react-datepicker__time-list-item",r.props.timeClassName?r.props.timeClassName(s):void 0];return r.isSelectedTime(s)&&c.push("react-datepicker__time-list-item--selected"),r.isDisabledTime(s)&&c.push("react-datepicker__time-list-item--disabled"),r.props.injectTimes&&(60*jr(s)+Fr(s))%r.props.intervals!=0&&c.push("react-datepicker__time-list-item--injected"),c.join(" ")}),W(q(r),"handleOnKeyDown",function(s,c){s.key===" "&&(s.preventDefault(),s.key="Enter"),s.key!=="ArrowUp"&&s.key!=="ArrowLeft"||!s.target.previousSibling||(s.preventDefault(),s.target.previousSibling.focus()),s.key!=="ArrowDown"&&s.key!=="ArrowRight"||!s.target.nextSibling||(s.preventDefault(),s.target.nextSibling.focus()),s.key==="Enter"&&r.handleClick(c),r.props.handleOnKeyDown(s)}),W(q(r),"renderTimes",function(){for(var s=[],c=r.props.format?r.props.format:"p",l=r.props.intervals,u=r.props.selected||r.props.openToDate||nt(),d=Lr(u),p=r.props.injectTimes&&r.props.injectTimes.sort(function(T,y){return T-y}),f=60*function(T){var y=new Date(T.getFullYear(),T.getMonth(),T.getDate()),k=new Date(T.getFullYear(),T.getMonth(),T.getDate(),24);return Math.round((+k-+y)/36e5)}(u),m=f/l,b=0;b<m;b++){var v=Jv(d,b*l);if(s.push(v),p){var w=UK(d,v,b,l,p);s=s.concat(w)}}var _=s.reduce(function(T,y){return y.getTime()<=u.getTime()?y:T},s[0]);return s.map(function(T,y){return H.createElement("li",{key:y,onClick:r.handleClick.bind(q(r),T),className:r.liClasses(T),ref:function(k){T===_&&(r.centerLi=k)},onKeyDown:function(k){r.handleOnKeyDown(k,T)},tabIndex:T===_?0:-1,role:"option","aria-selected":r.isSelectedTime(T)?"true":void 0,"aria-disabled":r.isDisabledTime(T)?"true":void 0},ht(T,c,r.props.locale))})}),r}return Wt(n,[{key:"componentDidMount",value:function(){this.scrollToTheSelectedTime(),this.props.monthRef&&this.header&&this.setState({height:this.props.monthRef.clientHeight-this.header.clientHeight})}},{key:"render",value:function(){var r=this,o=this.state.height;return H.createElement("div",{className:"react-datepicker__time-container ".concat(this.props.todayButton?"react-datepicker__time-container--with-today-button":"")},H.createElement("div",{className:"react-datepicker__header react-datepicker__header--time ".concat(this.props.showTimeSelectOnly?"react-datepicker__header--time--only":""),ref:function(i){r.header=i}},H.createElement("div",{className:"react-datepicker-time__header"},this.props.timeCaption)),H.createElement("div",{className:"react-datepicker__time"},H.createElement("div",{className:"react-datepicker__time-box"},H.createElement("ul",{className:"react-datepicker__time-list",ref:function(i){r.list=i},style:o?{height:o}:{},role:"listbox","aria-label":this.props.timeCaption},this.renderTimes()))))}}],[{key:"defaultProps",get:function(){return{intervals:30,onTimeChange:function(){},todayButton:null,timeCaption:"Time"}}}]),n}();W(bM,"calcCenterPosition",function(e,t){return t.offsetTop-(e/2-t.clientHeight/2)});var rX=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"YEAR_REFS",zs(Array(o.props.yearItemNumber)).map(function(){return H.createRef()})),W(q(o),"isDisabled",function(i){return Bd(i,o.props)}),W(q(o),"isExcluded",function(i){return e0(i,o.props)}),W(q(o),"selectingDate",function(){var i;return(i=o.props.selectingDate)!==null&&i!==void 0?i:o.props.preSelection}),W(q(o),"updateFocusOnPaginate",function(i){var a=function(){this.YEAR_REFS[i].current.focus()}.bind(q(o));window.requestAnimationFrame(a)}),W(q(o),"handleYearClick",function(i,a){o.props.onDayClick&&o.props.onDayClick(i,a)}),W(q(o),"handleYearNavigation",function(i,a){var s=o.props,c=s.date,l=s.yearItemNumber,u=aa(c,l).startPeriod;o.isDisabled(a)||o.isExcluded(a)||(o.props.setPreSelection(a),i-u==-1?o.updateFocusOnPaginate(l-1):i-u===l?o.updateFocusOnPaginate(0):o.YEAR_REFS[i-u].current.focus())}),W(q(o),"isSameDay",function(i,a){return it(i,a)}),W(q(o),"isCurrentYear",function(i){return i===Pe(nt())}),W(q(o),"isRangeStart",function(i){return o.props.startDate&&o.props.endDate&&Do(g.setYear(nt(),i),o.props.startDate)}),W(q(o),"isRangeEnd",function(i){return o.props.startDate&&o.props.endDate&&Do(g.setYear(nt(),i),o.props.endDate)}),W(q(o),"isInRange",function(i){return Dm(i,o.props.startDate,o.props.endDate)}),W(q(o),"isInSelectingRange",function(i){var a=o.props,s=a.selectsStart,c=a.selectsEnd,l=a.selectsRange,u=a.startDate,d=a.endDate;return!(!(s||c||l)||!o.selectingDate())&&(s&&d?Dm(i,o.selectingDate(),d):(c&&u||!(!l||!u||d))&&Dm(i,u,o.selectingDate()))}),W(q(o),"isSelectingRangeStart",function(i){if(!o.isInSelectingRange(i))return!1;var a=o.props,s=a.startDate,c=a.selectsStart,l=g.setYear(nt(),i);return Do(l,c?o.selectingDate():s)}),W(q(o),"isSelectingRangeEnd",function(i){if(!o.isInSelectingRange(i))return!1;var a=o.props,s=a.endDate,c=a.selectsEnd,l=a.selectsRange,u=g.setYear(nt(),i);return Do(u,c||l?o.selectingDate():s)}),W(q(o),"isKeyboardSelected",function(i){var a=us(g.setYear(o.props.date,i));return!o.props.disabledKeyboardNavigation&&!o.props.inline&&!it(a,us(o.props.selected))&&it(a,us(o.props.preSelection))}),W(q(o),"onYearClick",function(i,a){var s=o.props.date;o.handleYearClick(us(g.setYear(s,a)),i)}),W(q(o),"onYearKeyDown",function(i,a){var s=i.key;if(!o.props.disabledKeyboardNavigation)switch(s){case"Enter":o.onYearClick(i,a),o.props.setPreSelection(o.props.selected);break;case"ArrowRight":o.handleYearNavigation(a+1,g.addYears(o.props.preSelection,1));break;case"ArrowLeft":o.handleYearNavigation(a-1,g.subYears(o.props.preSelection,1))}}),W(q(o),"getYearClassNames",function(i){var a=o.props,s=a.minDate,c=a.maxDate,l=a.selected,u=a.excludeDates,d=a.includeDates,p=a.filterDate;return g.r("react-datepicker__year-text",{"react-datepicker__year-text--selected":i===Pe(l),"react-datepicker__year-text--disabled":(s||c||u||d||p)&&pM(i,o.props),"react-datepicker__year-text--keyboard-selected":o.isKeyboardSelected(i),"react-datepicker__year-text--range-start":o.isRangeStart(i),"react-datepicker__year-text--range-end":o.isRangeEnd(i),"react-datepicker__year-text--in-range":o.isInRange(i),"react-datepicker__year-text--in-selecting-range":o.isInSelectingRange(i),"react-datepicker__year-text--selecting-range-start":o.isSelectingRangeStart(i),"react-datepicker__year-text--selecting-range-end":o.isSelectingRangeEnd(i),"react-datepicker__year-text--today":o.isCurrentYear(i)})}),W(q(o),"getYearTabIndex",function(i){return o.props.disabledKeyboardNavigation?"-1":i===Pe(o.props.preSelection)?"0":"-1"}),W(q(o),"getYearContainerClassNames",function(){var i=o.props,a=i.selectingDate,s=i.selectsStart,c=i.selectsEnd,l=i.selectsRange;return g.r("react-datepicker__year",{"react-datepicker__year--selecting-range":a&&(s||c||l)})}),W(q(o),"getYearContent",function(i){return o.props.renderYearContent?o.props.renderYearContent(i):i}),o}return Wt(n,[{key:"render",value:function(){for(var r=this,o=[],i=this.props,a=i.date,s=i.yearItemNumber,c=i.onYearMouseEnter,l=i.onYearMouseLeave,u=aa(a,s),d=u.startPeriod,p=u.endPeriod,f=function(b){o.push(H.createElement("div",{ref:r.YEAR_REFS[b-d],onClick:function(v){r.onYearClick(v,b)},onKeyDown:function(v){r.onYearKeyDown(v,b)},tabIndex:r.getYearTabIndex(b),className:r.getYearClassNames(b),onMouseEnter:function(v){return c(v,b)},onMouseLeave:function(v){return l(v,b)},key:b,"aria-current":r.isCurrentYear(b)?"date":void 0},r.getYearContent(b)))},m=d;m<=p;m++)f(m);return H.createElement("div",{className:this.getYearContainerClassNames()},H.createElement("div",{className:"react-datepicker__year-wrapper",onMouseLeave:this.props.clearSelectingDate},o))}}]),n}(),oX=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"onTimeChange",function(i){o.setState({time:i});var a=o.props.date,s=a instanceof Date&&!isNaN(a)?a:new Date;s.setHours(i.split(":")[0]),s.setMinutes(i.split(":")[1]),o.props.onChange(s)}),W(q(o),"renderTimeInput",function(){var i=o.state.time,a=o.props,s=a.date,c=a.timeString,l=a.customTimeInput;return l?H.cloneElement(l,{date:s,value:i,onChange:o.onTimeChange}):H.createElement("input",{type:"time",className:"react-datepicker-time__input",placeholder:"Time",name:"time-input",required:!0,value:i,onChange:function(u){o.onTimeChange(u.target.value||c)}})}),o.state={time:o.props.timeString},o}return Wt(n,[{key:"render",value:function(){return H.createElement("div",{className:"react-datepicker__input-time-container"},H.createElement("div",{className:"react-datepicker-time__caption"},this.props.timeInputLabel),H.createElement("div",{className:"react-datepicker-time__input-container"},H.createElement("div",{className:"react-datepicker-time__input"},this.renderTimeInput())))}}],[{key:"getDerivedStateFromProps",value:function(r,o){return r.timeString!==o.time?{time:r.timeString}:null}}]),n}();function iX(e){var t=e.className,n=e.children,r=e.showPopperArrow,o=e.arrowProps,i=o===void 0?{}:o;return H.createElement("div",{className:t},r&&H.createElement("div",Oa({className:"react-datepicker__triangle"},i)),n)}var aX=["react-datepicker__year-select","react-datepicker__month-select","react-datepicker__month-year-select"],sX=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"handleClickOutside",function(i){o.props.onClickOutside(i)}),W(q(o),"setClickOutsideRef",function(){return o.containerRef.current}),W(q(o),"handleDropdownFocus",function(i){(function(){var a=((arguments.length>0&&arguments[0]!==void 0?arguments[0]:{}).className||"").split(/\s+/);return aX.some(function(s){return a.indexOf(s)>=0})})(i.target)&&o.props.onDropdownFocus()}),W(q(o),"getDateInView",function(){var i=o.props,a=i.preSelection,s=i.selected,c=i.openToDate,l=hM(o.props),u=fM(o.props),d=nt(),p=c||s||a;return p||(l&&Oo(d,l)?l:u&&Po(d,u)?u:d)}),W(q(o),"increaseMonth",function(){o.setState(function(i){var a=i.date;return{date:g.addMonths(a,1)}},function(){return o.handleMonthChange(o.state.date)})}),W(q(o),"decreaseMonth",function(){o.setState(function(i){var a=i.date;return{date:Ca(a,1)}},function(){return o.handleMonthChange(o.state.date)})}),W(q(o),"handleDayClick",function(i,a,s){o.props.onSelect(i,a,s),o.props.setPreSelection&&o.props.setPreSelection(i)}),W(q(o),"handleDayMouseEnter",function(i){o.setState({selectingDate:i}),o.props.onDayMouseEnter&&o.props.onDayMouseEnter(i)}),W(q(o),"handleMonthMouseLeave",function(){o.setState({selectingDate:null}),o.props.onMonthMouseLeave&&o.props.onMonthMouseLeave()}),W(q(o),"handleYearMouseEnter",function(i,a){o.setState({selectingDate:g.setYear(nt(),a)}),o.props.onYearMouseEnter&&o.props.onYearMouseEnter(i,a)}),W(q(o),"handleYearMouseLeave",function(i,a){o.props.onYearMouseLeave&&o.props.onYearMouseLeave(i,a)}),W(q(o),"handleYearChange",function(i){o.props.onYearChange&&(o.props.onYearChange(i),o.setState({isRenderAriaLiveMessage:!0})),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(i),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(i)}),W(q(o),"handleMonthChange",function(i){o.handleCustomMonthChange(i),o.props.adjustDateOnChange&&(o.props.onSelect&&o.props.onSelect(i),o.props.setOpen&&o.props.setOpen(!0)),o.props.setPreSelection&&o.props.setPreSelection(i)}),W(q(o),"handleCustomMonthChange",function(i){o.props.onMonthChange&&(o.props.onMonthChange(i),o.setState({isRenderAriaLiveMessage:!0}))}),W(q(o),"handleMonthYearChange",function(i){o.handleYearChange(i),o.handleMonthChange(i)}),W(q(o),"changeYear",function(i){o.setState(function(a){var s=a.date;return{date:g.setYear(s,i)}},function(){return o.handleYearChange(o.state.date)})}),W(q(o),"changeMonth",function(i){o.setState(function(a){var s=a.date;return{date:g.setMonth(s,i)}},function(){return o.handleMonthChange(o.state.date)})}),W(q(o),"changeMonthYear",function(i){o.setState(function(a){var s=a.date;return{date:g.setYear(g.setMonth(s,dn(i)),Pe(i))}},function(){return o.handleMonthYearChange(o.state.date)})}),W(q(o),"header",function(){var i=Br(arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.state.date,o.props.locale,o.props.calendarStartDay),a=[];return o.props.showWeekNumbers&&a.push(H.createElement("div",{key:"W",className:"react-datepicker__day-name"},o.props.weekLabel||"#")),a.concat([0,1,2,3,4,5,6].map(function(s){var c=Na(i,s),l=o.formatWeekday(c,o.props.locale),u=o.props.weekDayClassName?o.props.weekDayClassName(c):void 0;return H.createElement("div",{key:s,className:g.r("react-datepicker__day-name",u)},l)}))}),W(q(o),"formatWeekday",function(i,a){return o.props.formatWeekDay?function(s,c,l){return c(ht(s,"EEEE",l))}(i,o.props.formatWeekDay,a):o.props.useWeekdaysShort?function(s,c){return ht(s,"EEE",c)}(i,a):function(s,c){return ht(s,"EEEEEE",c)}(i,a)}),W(q(o),"decreaseYear",function(){o.setState(function(i){var a=i.date;return{date:g.subYears(a,o.props.showYearPicker?o.props.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})}),W(q(o),"clearSelectingDate",function(){o.setState({selectingDate:null})}),W(q(o),"renderPreviousButton",function(){if(!o.props.renderCustomHeader){var i;switch(!0){case o.props.showMonthYearPicker:i=yT(o.state.date,o.props);break;case o.props.showYearPicker:i=function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=_.minDate,y=_.yearItemNumber,k=y===void 0?ws:y,S=aa(us(g.subYears(w,k)),k).endPeriod,x=T&&Pe(T);return x&&x>S||!1}(o.state.date,o.props);break;default:i=vT(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!i)&&!o.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--previous"],s=o.decreaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(s=o.decreaseYear),i&&o.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--previous--disabled"),s=null);var c=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,l=o.props,u=l.previousMonthButtonLabel,d=l.previousYearButtonLabel,p=o.props,f=p.previousMonthAriaLabel,m=f===void 0?typeof u=="string"?u:"Previous Month":f,b=p.previousYearAriaLabel,v=b===void 0?typeof d=="string"?d:"Previous Year":b;return H.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:o.props.handleOnKeyDown,"aria-label":c?v:m},H.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--previous"].join(" ")},c?o.props.previousYearButtonLabel:o.props.previousMonthButtonLabel))}}}),W(q(o),"increaseYear",function(){o.setState(function(i){var a=i.date;return{date:g.addYears(a,o.props.showYearPicker?o.props.yearItemNumber:1)}},function(){return o.handleYearChange(o.state.date)})}),W(q(o),"renderNextButton",function(){if(!o.props.renderCustomHeader){var i;switch(!0){case o.props.showMonthYearPicker:i=wT(o.state.date,o.props);break;case o.props.showYearPicker:i=function(w){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=_.maxDate,y=_.yearItemNumber,k=y===void 0?ws:y,S=aa(g.addYears(w,k),k).startPeriod,x=T&&Pe(T);return x&&x<S||!1}(o.state.date,o.props);break;default:i=bT(o.state.date,o.props)}if((o.props.forceShowMonthNavigation||o.props.showDisabledMonthNavigation||!i)&&!o.props.showTimeSelectOnly){var a=["react-datepicker__navigation","react-datepicker__navigation--next"];o.props.showTimeSelect&&a.push("react-datepicker__navigation--next--with-time"),o.props.todayButton&&a.push("react-datepicker__navigation--next--with-today-button");var s=o.increaseMonth;(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker)&&(s=o.increaseYear),i&&o.props.showDisabledMonthNavigation&&(a.push("react-datepicker__navigation--next--disabled"),s=null);var c=o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker,l=o.props,u=l.nextMonthButtonLabel,d=l.nextYearButtonLabel,p=o.props,f=p.nextMonthAriaLabel,m=f===void 0?typeof u=="string"?u:"Next Month":f,b=p.nextYearAriaLabel,v=b===void 0?typeof d=="string"?d:"Next Year":b;return H.createElement("button",{type:"button",className:a.join(" "),onClick:s,onKeyDown:o.props.handleOnKeyDown,"aria-label":c?v:m},H.createElement("span",{className:["react-datepicker__navigation-icon","react-datepicker__navigation-icon--next"].join(" ")},c?o.props.nextYearButtonLabel:o.props.nextMonthButtonLabel))}}}),W(q(o),"renderCurrentMonth",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:o.state.date,a=["react-datepicker__current-month"];return o.props.showYearDropdown&&a.push("react-datepicker__current-month--hasYearDropdown"),o.props.showMonthDropdown&&a.push("react-datepicker__current-month--hasMonthDropdown"),o.props.showMonthYearDropdown&&a.push("react-datepicker__current-month--hasMonthYearDropdown"),H.createElement("div",{className:a.join(" ")},ht(i,o.props.dateFormat,o.props.locale))}),W(q(o),"renderYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showYearDropdown&&!i)return H.createElement(VK,{adjustDateOnChange:o.props.adjustDateOnChange,date:o.state.date,onSelect:o.props.onSelect,setOpen:o.props.setOpen,dropdownMode:o.props.dropdownMode,onChange:o.changeYear,minDate:o.props.minDate,maxDate:o.props.maxDate,year:Pe(o.state.date),scrollableYearDropdown:o.props.scrollableYearDropdown,yearDropdownItemNumber:o.props.yearDropdownItemNumber})}),W(q(o),"renderMonthDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showMonthDropdown&&!i)return H.createElement(QK,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,onChange:o.changeMonth,month:dn(o.state.date),useShortMonthInDropdown:o.props.useShortMonthInDropdown})}),W(q(o),"renderMonthYearDropdown",function(){var i=arguments.length>0&&arguments[0]!==void 0&&arguments[0];if(o.props.showMonthYearDropdown&&!i)return H.createElement(KK,{dropdownMode:o.props.dropdownMode,locale:o.props.locale,dateFormat:o.props.dateFormat,onChange:o.changeMonthYear,minDate:o.props.minDate,maxDate:o.props.maxDate,date:o.state.date,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown})}),W(q(o),"handleTodayButtonClick",function(i){o.props.onSelect(hT(),i),o.props.setPreSelection&&o.props.setPreSelection(hT())}),W(q(o),"renderTodayButton",function(){if(o.props.todayButton&&!o.props.showTimeSelectOnly)return H.createElement("div",{className:"react-datepicker__today-button",onClick:function(i){return o.handleTodayButtonClick(i)}},o.props.todayButton)}),W(q(o),"renderDefaultHeader",function(i){var a=i.monthDate,s=i.i;return H.createElement("div",{className:"react-datepicker__header ".concat(o.props.showTimeSelect?"react-datepicker__header--has-time-select":"")},o.renderCurrentMonth(a),H.createElement("div",{className:"react-datepicker__header__dropdown react-datepicker__header__dropdown--".concat(o.props.dropdownMode),onFocus:o.handleDropdownFocus},o.renderMonthDropdown(s!==0),o.renderMonthYearDropdown(s!==0),o.renderYearDropdown(s!==0)),H.createElement("div",{className:"react-datepicker__day-names"},o.header(a)))}),W(q(o),"renderCustomHeader",function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.monthDate,s=i.i;if(o.props.showTimeSelect&&!o.state.monthContainer||o.props.showTimeSelectOnly)return null;var c=vT(o.state.date,o.props),l=bT(o.state.date,o.props),u=yT(o.state.date,o.props),d=wT(o.state.date,o.props),p=!o.props.showMonthYearPicker&&!o.props.showQuarterYearPicker&&!o.props.showYearPicker;return H.createElement("div",{className:"react-datepicker__header react-datepicker__header--custom",onFocus:o.props.onDropdownFocus},o.props.renderCustomHeader(_u(_u({},o.state),{},{customHeaderCount:s,monthDate:a,changeMonth:o.changeMonth,changeYear:o.changeYear,decreaseMonth:o.decreaseMonth,increaseMonth:o.increaseMonth,decreaseYear:o.decreaseYear,increaseYear:o.increaseYear,prevMonthButtonDisabled:c,nextMonthButtonDisabled:l,prevYearButtonDisabled:u,nextYearButtonDisabled:d})),p&&H.createElement("div",{className:"react-datepicker__day-names"},o.header(a)))}),W(q(o),"renderYearHeader",function(){var i=o.state.date,a=o.props,s=a.showYearPicker,c=aa(i,a.yearItemNumber),l=c.startPeriod,u=c.endPeriod;return H.createElement("div",{className:"react-datepicker__header react-datepicker-year-header"},s?"".concat(l," - ").concat(u):Pe(i))}),W(q(o),"renderHeader",function(i){switch(!0){case o.props.renderCustomHeader!==void 0:return o.renderCustomHeader(i);case(o.props.showMonthYearPicker||o.props.showQuarterYearPicker||o.props.showYearPicker):return o.renderYearHeader(i);default:return o.renderDefaultHeader(i)}}),W(q(o),"renderMonths",function(){var i;if(!o.props.showTimeSelectOnly&&!o.props.showYearPicker){for(var a=[],s=o.props.showPreviousMonths?o.props.monthsShown-1:0,c=Ca(o.state.date,s),l=(i=o.props.monthSelectedIn)!==null&&i!==void 0?i:s,u=0;u<o.props.monthsShown;++u){var d=g.addMonths(c,u-l+s),p="month-".concat(u),f=u<o.props.monthsShown-1,m=u>0;a.push(H.createElement("div",{key:p,ref:function(b){o.monthContainer=b},className:"react-datepicker__month-container"},o.renderHeader({monthDate:d,i:u}),H.createElement(nX,{chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,ariaLabelPrefix:o.props.monthAriaLabelPrefix,onChange:o.changeMonthYear,day:d,dayClassName:o.props.dayClassName,calendarStartDay:o.props.calendarStartDay,monthClassName:o.props.monthClassName,onDayClick:o.handleDayClick,handleOnKeyDown:o.props.handleOnDayKeyDown,onDayMouseEnter:o.handleDayMouseEnter,onMouseLeave:o.handleMonthMouseLeave,onWeekSelect:o.props.onWeekSelect,orderInDisplay:u,formatWeekNumber:o.props.formatWeekNumber,locale:o.props.locale,minDate:o.props.minDate,maxDate:o.props.maxDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,highlightDates:o.props.highlightDates,holidays:o.props.holidays,selectingDate:o.state.selectingDate,includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,inline:o.props.inline,shouldFocusDayInline:o.props.shouldFocusDayInline,fixedHeight:o.props.fixedHeight,filterDate:o.props.filterDate,preSelection:o.props.preSelection,setPreSelection:o.props.setPreSelection,selected:o.props.selected,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showWeekNumbers:o.props.showWeekNumbers,startDate:o.props.startDate,endDate:o.props.endDate,peekNextMonth:o.props.peekNextMonth,setOpen:o.props.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,isInputFocused:o.props.isInputFocused,containerRef:o.containerRef,monthShowsDuplicateDaysEnd:f,monthShowsDuplicateDaysStart:m})))}return a}}),W(q(o),"renderYears",function(){if(!o.props.showTimeSelectOnly)return o.props.showYearPicker?H.createElement("div",{className:"react-datepicker__year--container"},o.renderHeader(),H.createElement(rX,Oa({onDayClick:o.handleDayClick,selectingDate:o.state.selectingDate,clearSelectingDate:o.clearSelectingDate,date:o.state.date},o.props,{onYearMouseEnter:o.handleYearMouseEnter,onYearMouseLeave:o.handleYearMouseLeave}))):void 0}),W(q(o),"renderTimeSection",function(){if(o.props.showTimeSelect&&(o.state.monthContainer||o.props.showTimeSelectOnly))return H.createElement(bM,{selected:o.props.selected,openToDate:o.props.openToDate,onChange:o.props.onTimeChange,timeClassName:o.props.timeClassName,format:o.props.timeFormat,includeTimes:o.props.includeTimes,intervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,todayButton:o.props.todayButton,showMonthDropdown:o.props.showMonthDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,monthRef:o.state.monthContainer,injectTimes:o.props.injectTimes,locale:o.props.locale,handleOnKeyDown:o.props.handleOnKeyDown,showTimeSelectOnly:o.props.showTimeSelectOnly})}),W(q(o),"renderInputTimeSection",function(){var i=new Date(o.props.selected),a=bo(i)&&o.props.selected?"".concat(_T(i.getHours()),":").concat(_T(i.getMinutes())):"";if(o.props.showTimeInput)return H.createElement(oX,{date:i,timeString:a,timeInputLabel:o.props.timeInputLabel,onChange:o.props.onTimeChange,customTimeInput:o.props.customTimeInput})}),W(q(o),"renderAriaLiveRegion",function(){var i,a=aa(o.state.date,o.props.yearItemNumber),s=a.startPeriod,c=a.endPeriod;return i=o.props.showYearPicker?"".concat(s," - ").concat(c):o.props.showMonthYearPicker||o.props.showQuarterYearPicker?Pe(o.state.date):"".concat(Xy(dn(o.state.date),o.props.locale)," ").concat(Pe(o.state.date)),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},o.state.isRenderAriaLiveMessage&&i)}),W(q(o),"renderChildren",function(){if(o.props.children)return H.createElement("div",{className:"react-datepicker__children-container"},o.props.children)}),o.containerRef=H.createRef(),o.state={date:o.getDateInView(),selectingDate:null,monthContainer:null,isRenderAriaLiveMessage:!1},o}return Wt(n,[{key:"componentDidMount",value:function(){var r=this;this.props.showTimeSelect&&(this.assignMonthContainer=void r.setState({monthContainer:r.monthContainer}))}},{key:"componentDidUpdate",value:function(r){var o=this;if(!this.props.preSelection||it(this.props.preSelection,r.preSelection)&&this.props.monthSelectedIn===r.monthSelectedIn)this.props.openToDate&&!it(this.props.openToDate,r.openToDate)&&this.setState({date:this.props.openToDate});else{var i=!hr(this.state.date,this.props.preSelection);this.setState({date:this.props.preSelection},function(){return i&&o.handleCustomMonthChange(o.state.date)})}}},{key:"render",value:function(){var r=this.props.container||iX;return H.createElement("div",{style:{display:"contents"},ref:this.containerRef},H.createElement(r,{className:g.r("react-datepicker",this.props.className,{"react-datepicker--time-only":this.props.showTimeSelectOnly}),showPopperArrow:this.props.showPopperArrow,arrowProps:this.props.arrowProps},this.renderAriaLiveRegion(),this.renderPreviousButton(),this.renderNextButton(),this.renderMonths(),this.renderYears(),this.renderTodayButton(),this.renderTimeSection(),this.renderInputTimeSection(),this.renderChildren()))}}],[{key:"defaultProps",get:function(){return{onDropdownFocus:function(){},monthsShown:1,forceShowMonthNavigation:!1,timeCaption:"Time",previousYearButtonLabel:"Previous Year",nextYearButtonLabel:"Next Year",previousMonthButtonLabel:"Previous Month",nextMonthButtonLabel:"Next Month",customTimeInput:null,yearItemNumber:ws}}}]),n}(),lX=function(e){var t=e.icon,n=e.className,r=n===void 0?"":n,o=e.onClick,i="react-datepicker__calendar-icon";return H.isValidElement(t)?H.cloneElement(t,{className:"".concat(t.props.className||""," ").concat(i," ").concat(r),onClick:function(a){typeof t.props.onClick=="function"&&t.props.onClick(a),typeof o=="function"&&o(a)}}):typeof t=="string"?H.createElement("i",{className:"".concat(i," ").concat(t," ").concat(r),"aria-hidden":"true",onClick:o}):H.createElement("svg",{className:"".concat(i," ").concat(r),xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 448 512",onClick:o},H.createElement("path",{d:"M96 32V64H48C21.5 64 0 85.5 0 112v48H448V112c0-26.5-21.5-48-48-48H352V32c0-17.7-14.3-32-32-32s-32 14.3-32 32V64H160V32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192H0V464c0 26.5 21.5 48 48 48H400c26.5 0 48-21.5 48-48V192z"}))},yM=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),(o=t.call(this,r)).el=document.createElement("div"),o}return Wt(n,[{key:"componentDidMount",value:function(){this.portalRoot=(this.props.portalHost||document).getElementById(this.props.portalId),this.portalRoot||(this.portalRoot=document.createElement("div"),this.portalRoot.setAttribute("id",this.props.portalId),(this.props.portalHost||document.body).appendChild(this.portalRoot)),this.portalRoot.appendChild(this.el)}},{key:"componentWillUnmount",value:function(){this.portalRoot.removeChild(this.el)}},{key:"render",value:function(){return vn.createPortal(this.props.children,this.el)}}]),n}(),cX=function(e){return!e.disabled&&e.tabIndex!==-1},wM=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"getTabChildren",function(){return Array.prototype.slice.call(o.tabLoopRef.current.querySelectorAll("[tabindex], a, button, input, select, textarea"),1,-1).filter(cX)}),W(q(o),"handleFocusStart",function(){var i=o.getTabChildren();i&&i.length>1&&i[i.length-1].focus()}),W(q(o),"handleFocusEnd",function(){var i=o.getTabChildren();i&&i.length>1&&i[0].focus()}),o.tabLoopRef=H.createRef(),o}return Wt(n,[{key:"render",value:function(){return this.props.enableTabLoop?H.createElement("div",{className:"react-datepicker__tab-loop",ref:this.tabLoopRef},H.createElement("div",{className:"react-datepicker__tab-loop__start",tabIndex:"0",onFocus:this.handleFocusStart}),this.props.children,H.createElement("div",{className:"react-datepicker__tab-loop__end",tabIndex:"0",onFocus:this.handleFocusEnd})):this.props.children}}],[{key:"defaultProps",get:function(){return{enableTabLoop:!0}}}]),n}(),uX=function(e){Ut(n,H.Component);var t=Yt(n);function n(){return zt(this,n),t.apply(this,arguments)}return Wt(n,[{key:"render",value:function(){var r,o=this.props,i=o.className,a=o.wrapperClassName,s=o.hidePopper,c=o.popperComponent,l=o.popperModifiers,u=o.popperPlacement,d=o.popperProps,p=o.targetComponent,f=o.enableTabLoop,m=o.popperOnKeyDown,b=o.portalId,v=o.portalHost;if(!s){var w=g.r("react-datepicker-popper",i);r=H.createElement(PK,Oa({modifiers:l,placement:u},d),function(T){var y=T.ref,k=T.style,S=T.placement,x=T.arrowProps;return H.createElement(wM,{enableTabLoop:f},H.createElement("div",{ref:y,style:k,className:w,"data-placement":S,onKeyDown:m},H.cloneElement(c,{arrowProps:x})))})}this.props.popperContainer&&(r=H.createElement(this.props.popperContainer,{},r)),b&&!s&&(r=H.createElement(yM,{portalId:b,portalHost:v},r));var _=g.r("react-datepicker-wrapper",a);return H.createElement(_K,{className:"react-datepicker-manager"},H.createElement(BK,null,function(T){var y=T.ref;return H.createElement("div",{ref:y,className:_},p)}),r)}}],[{key:"defaultProps",get:function(){return{hidePopper:!0,popperModifiers:[],popperProps:{},popperPlacement:"bottom-start"}}}]),n}(),ST="react-datepicker-ignore-onclickoutside",dX=Fd(sX),Mm="Date input not valid.",pX=function(e){Ut(n,H.Component);var t=Yt(n);function n(r){var o;return zt(this,n),W(q(o=t.call(this,r)),"getPreSelection",function(){return o.props.openToDate?o.props.openToDate:o.props.selectsEnd&&o.props.startDate?o.props.startDate:o.props.selectsStart&&o.props.endDate?o.props.endDate:nt()}),W(q(o),"modifyHolidays",function(){var i;return(i=o.props.holidays)===null||i===void 0?void 0:i.reduce(function(a,s){var c=new Date(s.date);return Ls(c)?[].concat(zs(a),[_u(_u({},s),{},{date:c})]):a},[])}),W(q(o),"calcInitialState",function(){var i,a=o.getPreSelection(),s=hM(o.props),c=fM(o.props),l=s&&Oo(a,Lr(s))?s:c&&Po(a,Zv(c))?c:a;return{open:o.props.startOpen||!1,preventFocus:!1,preSelection:(i=o.props.selectsRange?o.props.startDate:o.props.selected)!==null&&i!==void 0?i:l,highlightDates:xT(o.props.highlightDates),focused:!1,shouldFocusDayInline:!1,isRenderAriaLiveMessage:!1}}),W(q(o),"clearPreventFocusTimeout",function(){o.preventFocusTimeout&&clearTimeout(o.preventFocusTimeout)}),W(q(o),"setFocus",function(){o.input&&o.input.focus&&o.input.focus({preventScroll:!0})}),W(q(o),"setBlur",function(){o.input&&o.input.blur&&o.input.blur(),o.cancelFocusInput()}),W(q(o),"setOpen",function(i){var a=arguments.length>1&&arguments[1]!==void 0&&arguments[1];o.setState({open:i,preSelection:i&&o.state.open?o.state.preSelection:o.calcInitialState().preSelection,lastPreSelectChange:Nm},function(){i||o.setState(function(s){return{focused:!!a&&s.focused}},function(){!a&&o.setBlur(),o.setState({inputValue:null})})})}),W(q(o),"inputOk",function(){return Ad(o.state.preSelection)}),W(q(o),"isCalendarOpen",function(){return o.props.open===void 0?o.state.open&&!o.props.disabled&&!o.props.readOnly:o.props.open}),W(q(o),"handleFocus",function(i){o.state.preventFocus||(o.props.onFocus(i),o.props.preventOpenOnFocus||o.props.readOnly||o.setOpen(!0)),o.setState({focused:!0})}),W(q(o),"sendFocusBackToInput",function(){o.preventFocusTimeout&&o.clearPreventFocusTimeout(),o.setState({preventFocus:!0},function(){o.preventFocusTimeout=setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})})}),W(q(o),"cancelFocusInput",function(){clearTimeout(o.inputFocusTimeout),o.inputFocusTimeout=null}),W(q(o),"deferFocusInput",function(){o.cancelFocusInput(),o.inputFocusTimeout=setTimeout(function(){return o.setFocus()},1)}),W(q(o),"handleDropdownFocus",function(){o.cancelFocusInput()}),W(q(o),"handleBlur",function(i){(!o.state.open||o.props.withPortal||o.props.showTimeInput)&&o.props.onBlur(i),o.setState({focused:!1})}),W(q(o),"handleCalendarClickOutside",function(i){o.props.inline||o.setOpen(!1),o.props.onClickOutside(i),o.props.withPortal&&i.preventDefault()}),W(q(o),"handleChange",function(){for(var i=arguments.length,a=new Array(i),s=0;s<i;s++)a[s]=arguments[s];var c=a[0];if(!o.props.onChangeRaw||(o.props.onChangeRaw.apply(q(o),a),typeof c.isDefaultPrevented=="function"&&!c.isDefaultPrevented())){o.setState({inputValue:c.target.value,lastPreSelectChange:hX});var l,u,d,p,f,m,b,v,w=(l=c.target.value,u=o.props.dateFormat,d=o.props.locale,p=o.props.strictParsing,f=o.props.minDate,m=null,b=hi(d)||hi(pi()),v=!0,Array.isArray(u)?(u.forEach(function(_){var T=_m(l,_,new Date,{locale:b});p&&(v=bo(T,f)&&l===ht(T,_,d)),bo(T,f)&&v&&(m=T)}),m):(m=_m(l,u,new Date,{locale:b}),p?v=bo(m)&&l===ht(m,u,d):bo(m)||(u=u.match($K).map(function(_){var T=_[0];return T==="p"||T==="P"?b?(0,HK[T])(_,b.formatLong):T:_}).join(""),l.length>0&&(m=_m(l,u.slice(0,l.length),new Date)),bo(m)||(m=new Date(l))),bo(m)&&v?m:null));o.props.showTimeSelectOnly&&o.props.selected&&w&&!it(w,o.props.selected)&&(w=QG(o.props.selected,{hours:jr(w),minutes:Fr(w),seconds:HS(w)})),!w&&c.target.value||(o.props.showWeekPicker&&(w=Br(w,o.props.locale,o.props.calendarStartDay)),o.setSelected(w,c,!0))}}),W(q(o),"handleSelect",function(i,a,s){if(o.props.shouldCloseOnSelect&&!o.props.showTimeSelect&&o.sendFocusBackToInput(),o.props.onChangeRaw&&o.props.onChangeRaw(a),o.props.showWeekPicker&&(i=Br(i,o.props.locale,o.props.calendarStartDay)),o.setSelected(i,a,!1,s),o.props.showDateSelect&&o.setState({isRenderAriaLiveMessage:!0}),!o.props.shouldCloseOnSelect||o.props.showTimeSelect)o.setPreSelection(i);else if(!o.props.inline){o.props.selectsRange||o.setOpen(!1);var c=o.props,l=c.startDate,u=c.endDate;!l||u||Oo(i,l)||o.setOpen(!1)}}),W(q(o),"setSelected",function(i,a,s,c){var l=i;if(o.props.showYearPicker){if(l!==null&&pM(Pe(l),o.props))return}else if(o.props.showMonthYearPicker){if(l!==null&&dM(l,o.props))return}else if(l!==null&&Bd(l,o.props))return;var u=o.props,d=u.onChange,p=u.selectsRange,f=u.startDate,m=u.endDate;if(!ci(o.props.selected,l)||o.props.allowSameDay||p)if(l!==null&&(!o.props.selected||s&&(o.props.showTimeSelect||o.props.showTimeSelectOnly||o.props.showTimeInput)||(l=dT(l,{hour:jr(o.props.selected),minute:Fr(o.props.selected),second:HS(o.props.selected)})),o.props.inline||o.setState({preSelection:l}),o.props.focusSelectedMonth||o.setState({monthSelectedIn:c})),p){var b=f&&!m,v=f&&m;!f&&!m?d([l,null],a):b&&(Oo(l,f)?d([l,null],a):d([f,l],a)),v&&d([l,null],a)}else d(l,a);s||(o.props.onSelect(l,a),o.setState({inputValue:null}))}),W(q(o),"setPreSelection",function(i){var a=o.props.minDate!==void 0,s=o.props.maxDate!==void 0,c=!0;if(i){o.props.showWeekPicker&&(i=Br(i,o.props.locale,o.props.calendarStartDay));var l=Lr(i);if(a&&s)c=fc(i,o.props.minDate,o.props.maxDate);else if(a){var u=Lr(o.props.minDate);c=Po(i,u)||ci(l,u)}else if(s){var d=Zv(o.props.maxDate);c=Oo(i,d)||ci(l,d)}}c&&o.setState({preSelection:i})}),W(q(o),"toggleCalendar",function(){o.setOpen(!o.state.open)}),W(q(o),"handleTimeChange",function(i){var a=o.props.selected?o.props.selected:o.getPreSelection(),s=o.props.selected?i:dT(a,{hour:jr(i),minute:Fr(i)});o.setState({preSelection:s}),o.props.onChange(s),o.props.shouldCloseOnSelect&&(o.sendFocusBackToInput(),o.setOpen(!1)),o.props.showTimeInput&&o.setOpen(!0),(o.props.showTimeSelectOnly||o.props.showTimeSelect)&&o.setState({isRenderAriaLiveMessage:!0}),o.setState({inputValue:null})}),W(q(o),"onInputClick",function(){o.props.disabled||o.props.readOnly||o.setOpen(!0),o.props.onInputClick()}),W(q(o),"onInputKeyDown",function(i){o.props.onKeyDown(i);var a=i.key;if(o.state.open||o.props.inline||o.props.preventOpenOnFocus){if(o.state.open){if(a==="ArrowDown"||a==="ArrowUp"){i.preventDefault();var s=o.props.showWeekPicker&&o.props.showWeekNumbers?'.react-datepicker__week-number[tabindex="0"]':'.react-datepicker__day[tabindex="0"]',c=o.calendar.componentNode&&o.calendar.componentNode.querySelector(s);return void(c&&c.focus({preventScroll:!0}))}var l=nt(o.state.preSelection);a==="Enter"?(i.preventDefault(),o.inputOk()&&o.state.lastPreSelectChange===Nm?(o.handleSelect(l,i),!o.props.shouldCloseOnSelect&&o.setPreSelection(l)):o.setOpen(!1)):a==="Escape"?(i.preventDefault(),o.sendFocusBackToInput(),o.setOpen(!1)):a==="Tab"&&o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:Mm})}}else a!=="ArrowDown"&&a!=="ArrowUp"&&a!=="Enter"||o.onInputClick()}),W(q(o),"onPortalKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),o.setState({preventFocus:!0},function(){o.setOpen(!1),setTimeout(function(){o.setFocus(),o.setState({preventFocus:!1})})}))}),W(q(o),"onDayKeyDown",function(i){o.props.onKeyDown(i);var a=i.key,s=nt(o.state.preSelection);if(a==="Enter")i.preventDefault(),o.handleSelect(s,i),!o.props.shouldCloseOnSelect&&o.setPreSelection(s);else if(a==="Escape")i.preventDefault(),o.setOpen(!1),o.inputOk()||o.props.onInputError({code:1,msg:Mm});else if(!o.props.disabledKeyboardNavigation){var c;switch(a){case"ArrowLeft":c=o.props.showWeekPicker?jS(s,1):IV(s,1);break;case"ArrowRight":c=o.props.showWeekPicker?lu(s,1):Na(s,1);break;case"ArrowUp":c=jS(s,1);break;case"ArrowDown":c=lu(s,1);break;case"PageUp":c=Ca(s,1);break;case"PageDown":c=g.addMonths(s,1);break;case"Home":c=g.subYears(s,1);break;case"End":c=g.addYears(s,1);break;default:c=null}if(!c)return void(o.props.onInputError&&o.props.onInputError({code:1,msg:Mm}));if(i.preventDefault(),o.setState({lastPreSelectChange:Nm}),o.props.adjustDateOnChange&&o.setSelected(c),o.setPreSelection(c),o.props.inline){var l=dn(s),u=dn(c),d=Pe(s),p=Pe(c);l!==u||d!==p?o.setState({shouldFocusDayInline:!0}):o.setState({shouldFocusDayInline:!1})}}}),W(q(o),"onPopperKeyDown",function(i){i.key==="Escape"&&(i.preventDefault(),o.sendFocusBackToInput())}),W(q(o),"onClearClick",function(i){i&&i.preventDefault&&i.preventDefault(),o.sendFocusBackToInput(),o.props.selectsRange?o.props.onChange([null,null],i):o.props.onChange(null,i),o.setState({inputValue:null})}),W(q(o),"clear",function(){o.onClearClick()}),W(q(o),"onScroll",function(i){typeof o.props.closeOnScroll=="boolean"&&o.props.closeOnScroll?i.target!==document&&i.target!==document.documentElement&&i.target!==document.body||o.setOpen(!1):typeof o.props.closeOnScroll=="function"&&o.props.closeOnScroll(i)&&o.setOpen(!1)}),W(q(o),"renderCalendar",function(){return o.props.inline||o.isCalendarOpen()?H.createElement(dX,{ref:function(i){o.calendar=i},locale:o.props.locale,calendarStartDay:o.props.calendarStartDay,chooseDayAriaLabelPrefix:o.props.chooseDayAriaLabelPrefix,disabledDayAriaLabelPrefix:o.props.disabledDayAriaLabelPrefix,weekAriaLabelPrefix:o.props.weekAriaLabelPrefix,monthAriaLabelPrefix:o.props.monthAriaLabelPrefix,adjustDateOnChange:o.props.adjustDateOnChange,setOpen:o.setOpen,shouldCloseOnSelect:o.props.shouldCloseOnSelect,dateFormat:o.props.dateFormatCalendar,useWeekdaysShort:o.props.useWeekdaysShort,formatWeekDay:o.props.formatWeekDay,dropdownMode:o.props.dropdownMode,selected:o.props.selected,preSelection:o.state.preSelection,onSelect:o.handleSelect,onWeekSelect:o.props.onWeekSelect,openToDate:o.props.openToDate,minDate:o.props.minDate,maxDate:o.props.maxDate,selectsStart:o.props.selectsStart,selectsEnd:o.props.selectsEnd,selectsRange:o.props.selectsRange,startDate:o.props.startDate,endDate:o.props.endDate,excludeDates:o.props.excludeDates,excludeDateIntervals:o.props.excludeDateIntervals,filterDate:o.props.filterDate,onClickOutside:o.handleCalendarClickOutside,formatWeekNumber:o.props.formatWeekNumber,highlightDates:o.state.highlightDates,holidays:WK(o.modifyHolidays()),includeDates:o.props.includeDates,includeDateIntervals:o.props.includeDateIntervals,includeTimes:o.props.includeTimes,injectTimes:o.props.injectTimes,inline:o.props.inline,shouldFocusDayInline:o.state.shouldFocusDayInline,peekNextMonth:o.props.peekNextMonth,showMonthDropdown:o.props.showMonthDropdown,showPreviousMonths:o.props.showPreviousMonths,useShortMonthInDropdown:o.props.useShortMonthInDropdown,showMonthYearDropdown:o.props.showMonthYearDropdown,showWeekNumbers:o.props.showWeekNumbers,showYearDropdown:o.props.showYearDropdown,withPortal:o.props.withPortal,forceShowMonthNavigation:o.props.forceShowMonthNavigation,showDisabledMonthNavigation:o.props.showDisabledMonthNavigation,scrollableYearDropdown:o.props.scrollableYearDropdown,scrollableMonthYearDropdown:o.props.scrollableMonthYearDropdown,todayButton:o.props.todayButton,weekLabel:o.props.weekLabel,outsideClickIgnoreClass:ST,fixedHeight:o.props.fixedHeight,monthsShown:o.props.monthsShown,monthSelectedIn:o.state.monthSelectedIn,onDropdownFocus:o.handleDropdownFocus,onMonthChange:o.props.onMonthChange,onYearChange:o.props.onYearChange,dayClassName:o.props.dayClassName,weekDayClassName:o.props.weekDayClassName,monthClassName:o.props.monthClassName,timeClassName:o.props.timeClassName,showDateSelect:o.props.showDateSelect,showTimeSelect:o.props.showTimeSelect,showTimeSelectOnly:o.props.showTimeSelectOnly,onTimeChange:o.handleTimeChange,timeFormat:o.props.timeFormat,timeIntervals:o.props.timeIntervals,minTime:o.props.minTime,maxTime:o.props.maxTime,excludeTimes:o.props.excludeTimes,filterTime:o.props.filterTime,timeCaption:o.props.timeCaption,className:o.props.calendarClassName,container:o.props.calendarContainer,yearItemNumber:o.props.yearItemNumber,yearDropdownItemNumber:o.props.yearDropdownItemNumber,previousMonthAriaLabel:o.props.previousMonthAriaLabel,previousMonthButtonLabel:o.props.previousMonthButtonLabel,nextMonthAriaLabel:o.props.nextMonthAriaLabel,nextMonthButtonLabel:o.props.nextMonthButtonLabel,previousYearAriaLabel:o.props.previousYearAriaLabel,previousYearButtonLabel:o.props.previousYearButtonLabel,nextYearAriaLabel:o.props.nextYearAriaLabel,nextYearButtonLabel:o.props.nextYearButtonLabel,timeInputLabel:o.props.timeInputLabel,disabledKeyboardNavigation:o.props.disabledKeyboardNavigation,renderCustomHeader:o.props.renderCustomHeader,popperProps:o.props.popperProps,renderDayContents:o.props.renderDayContents,renderMonthContent:o.props.renderMonthContent,renderQuarterContent:o.props.renderQuarterContent,renderYearContent:o.props.renderYearContent,onDayMouseEnter:o.props.onDayMouseEnter,onMonthMouseLeave:o.props.onMonthMouseLeave,onYearMouseEnter:o.props.onYearMouseEnter,onYearMouseLeave:o.props.onYearMouseLeave,selectsDisabledDaysInRange:o.props.selectsDisabledDaysInRange,showTimeInput:o.props.showTimeInput,showMonthYearPicker:o.props.showMonthYearPicker,showFullMonthYearPicker:o.props.showFullMonthYearPicker,showTwoColumnMonthYearPicker:o.props.showTwoColumnMonthYearPicker,showFourColumnMonthYearPicker:o.props.showFourColumnMonthYearPicker,showYearPicker:o.props.showYearPicker,showQuarterYearPicker:o.props.showQuarterYearPicker,showWeekPicker:o.props.showWeekPicker,showPopperArrow:o.props.showPopperArrow,excludeScrollbar:o.props.excludeScrollbar,handleOnKeyDown:o.props.onKeyDown,handleOnDayKeyDown:o.onDayKeyDown,isInputFocused:o.state.focused,customTimeInput:o.props.customTimeInput,setPreSelection:o.setPreSelection},o.props.children):null}),W(q(o),"renderAriaLiveRegion",function(){var i,a=o.props,s=a.dateFormat,c=a.locale,l=o.props.showTimeInput||o.props.showTimeSelect?"PPPPp":"PPPP";return i=o.props.selectsRange?"Selected start date: ".concat(Sr(o.props.startDate,{dateFormat:l,locale:c}),". ").concat(o.props.endDate?"End date: "+Sr(o.props.endDate,{dateFormat:l,locale:c}):""):o.props.showTimeSelectOnly?"Selected time: ".concat(Sr(o.props.selected,{dateFormat:s,locale:c})):o.props.showYearPicker?"Selected year: ".concat(Sr(o.props.selected,{dateFormat:"yyyy",locale:c})):o.props.showMonthYearPicker?"Selected month: ".concat(Sr(o.props.selected,{dateFormat:"MMMM yyyy",locale:c})):o.props.showQuarterYearPicker?"Selected quarter: ".concat(Sr(o.props.selected,{dateFormat:"yyyy, QQQ",locale:c})):"Selected date: ".concat(Sr(o.props.selected,{dateFormat:l,locale:c})),H.createElement("span",{role:"alert","aria-live":"polite",className:"react-datepicker__aria-live"},i)}),W(q(o),"renderDateInput",function(){var i,a=g.r(o.props.className,W({},ST,o.state.open)),s=o.props.customInput||H.createElement("input",{type:"text"}),c=o.props.customInputRef||"ref",l=typeof o.props.value=="string"?o.props.value:typeof o.state.inputValue=="string"?o.state.inputValue:o.props.selectsRange?function(u,d,p){if(!u)return"";var f=Sr(u,p),m=d?Sr(d,p):"";return"".concat(f," - ").concat(m)}(o.props.startDate,o.props.endDate,o.props):Sr(o.props.selected,o.props);return H.cloneElement(s,(W(W(W(W(W(W(W(W(W(W(i={},c,function(u){o.input=u}),"value",l),"onBlur",o.handleBlur),"onChange",o.handleChange),"onClick",o.onInputClick),"onFocus",o.handleFocus),"onKeyDown",o.onInputKeyDown),"id",o.props.id),"name",o.props.name),"form",o.props.form),W(W(W(W(W(W(W(W(W(W(i,"autoFocus",o.props.autoFocus),"placeholder",o.props.placeholderText),"disabled",o.props.disabled),"autoComplete",o.props.autoComplete),"className",g.r(s.props.className,a)),"title",o.props.title),"readOnly",o.props.readOnly),"required",o.props.required),"tabIndex",o.props.tabIndex),"aria-describedby",o.props.ariaDescribedBy),W(W(W(i,"aria-invalid",o.props.ariaInvalid),"aria-labelledby",o.props.ariaLabelledBy),"aria-required",o.props.ariaRequired)))}),W(q(o),"renderClearButton",function(){var i=o.props,a=i.isClearable,s=i.disabled,c=i.selected,l=i.startDate,u=i.endDate,d=i.clearButtonTitle,p=i.clearButtonClassName,f=p===void 0?"":p,m=i.ariaLabelClose,b=m===void 0?"Close":m;return!a||c==null&&l==null&&u==null?null:H.createElement("button",{type:"button",className:g.r("react-datepicker__close-icon",f,{"react-datepicker__close-icon--disabled":s}),disabled:s,"aria-label":b,onClick:o.onClearClick,title:d,tabIndex:-1})}),o.state=o.calcInitialState(),o.preventFocusTimeout=null,o}return Wt(n,[{key:"componentDidMount",value:function(){window.addEventListener("scroll",this.onScroll,!0)}},{key:"componentDidUpdate",value:function(r,o){var i,a;r.inline&&(i=r.selected,a=this.props.selected,i&&a?dn(i)!==dn(a)||Pe(i)!==Pe(a):i!==a)&&this.setPreSelection(this.props.selected),this.state.monthSelectedIn!==void 0&&r.monthsShown!==this.props.monthsShown&&this.setState({monthSelectedIn:0}),r.highlightDates!==this.props.highlightDates&&this.setState({highlightDates:xT(this.props.highlightDates)}),o.focused||ci(r.selected,this.props.selected)||this.setState({inputValue:null}),o.open!==this.state.open&&(o.open===!1&&this.state.open===!0&&this.props.onCalendarOpen(),o.open===!0&&this.state.open===!1&&this.props.onCalendarClose())}},{key:"componentWillUnmount",value:function(){this.clearPreventFocusTimeout(),window.removeEventListener("scroll",this.onScroll,!0)}},{key:"renderInputContainer",value:function(){var r=this.props,o=r.showIcon,i=r.icon,a=r.calendarIconClassname,s=r.toggleCalendarOnIconClick,c=this.state.open;return H.createElement("div",{className:"react-datepicker__input-container".concat(o?" react-datepicker__view-calendar-icon":"")},o&&H.createElement(lX,Oa({icon:i,className:"".concat(a," ").concat(c&&"react-datepicker-ignore-onclickoutside")},s?{onClick:this.toggleCalendar}:null)),this.state.isRenderAriaLiveMessage&&this.renderAriaLiveRegion(),this.renderDateInput(),this.renderClearButton())}},{key:"render",value:function(){var r=this.renderCalendar();if(this.props.inline)return r;if(this.props.withPortal){var o=this.state.open?H.createElement(wM,{enableTabLoop:this.props.enableTabLoop},H.createElement("div",{className:"react-datepicker__portal",tabIndex:-1,onKeyDown:this.onPortalKeyDown},r)):null;return this.state.open&&this.props.portalId&&(o=H.createElement(yM,{portalId:this.props.portalId,portalHost:this.props.portalHost},o)),H.createElement("div",null,this.renderInputContainer(),o)}return H.createElement(uX,{className:this.props.popperClassName,wrapperClassName:this.props.wrapperClassName,hidePopper:!this.isCalendarOpen(),portalId:this.props.portalId,portalHost:this.props.portalHost,popperModifiers:this.props.popperModifiers,targetComponent:this.renderInputContainer(),popperContainer:this.props.popperContainer,popperComponent:r,popperPlacement:this.props.popperPlacement,popperProps:this.props.popperProps,popperOnKeyDown:this.onPopperKeyDown,enableTabLoop:this.props.enableTabLoop})}}],[{key:"defaultProps",get:function(){return{allowSameDay:!1,dateFormat:"MM/dd/yyyy",dateFormatCalendar:"LLLL yyyy",onChange:function(){},disabled:!1,disabledKeyboardNavigation:!1,dropdownMode:"scroll",onFocus:function(){},onBlur:function(){},onKeyDown:function(){},onInputClick:function(){},onSelect:function(){},onClickOutside:function(){},onMonthChange:function(){},onCalendarOpen:function(){},onCalendarClose:function(){},preventOpenOnFocus:!1,onYearChange:function(){},onInputError:function(){},monthsShown:1,readOnly:!1,withPortal:!1,selectsDisabledDaysInRange:!1,shouldCloseOnSelect:!0,showTimeSelect:!1,showTimeInput:!1,showPreviousMonths:!1,showMonthYearPicker:!1,showFullMonthYearPicker:!1,showTwoColumnMonthYearPicker:!1,showFourColumnMonthYearPicker:!1,showYearPicker:!1,showQuarterYearPicker:!1,showWeekPicker:!1,strictParsing:!1,timeIntervals:30,timeCaption:"Time",previousMonthAriaLabel:"Previous Month",previousMonthButtonLabel:"Previous Month",nextMonthAriaLabel:"Next Month",nextMonthButtonLabel:"Next Month",previousYearAriaLabel:"Previous Year",previousYearButtonLabel:"Previous Year",nextYearAriaLabel:"Next Year",nextYearButtonLabel:"Next Year",timeInputLabel:"Time",enableTabLoop:!0,yearItemNumber:ws,focusSelectedMonth:!1,showPopperArrow:!0,excludeScrollbar:!0,customTimeInput:null,calendarStartDay:void 0,toggleCalendarOnIconClick:!1}}}]),n}(),hX="input",Nm="navigate";const fX=n=>{var r=n,{className:e}=r,t=Rn(r,["className"]);return E.jsx(pX,de(te({},t),{calendarClassName:e}))},gX=g.newStyled(fX)`
495
+ border: none;
496
+ background-color: ${({theme:e})=>e.general.backgroundColor};
497
+ display: flex;
498
+ align-items: stretch;
499
+ flex-direction: column;
500
+ padding-bottom: 5px;
501
+ .react-datepicker__header {
502
+ background-color: ${({theme:e})=>e.general.backgroundColor};
503
+ border-bottom: none;
504
+ padding-bottom: 0;
505
+ & > div > button {
506
+ height: 34px;
507
+ width: 34px;
508
+ &:hover {
509
+ background-color: ${({theme:e})=>g.getSlightlyDifferentColor(e.general.backgroundColor)};
510
+ transition: 0.1s;
511
+ }
512
+ &:disabled {
513
+ background-color: ${({theme:e})=>e.general.backgroundColor};
514
+ }
515
+ }
516
+ }
517
+ .react-datepicker__day-name {
518
+ color: ${({theme:e})=>e.typography.primaryTextColor};
519
+ font-weight: 700;
520
+ }
521
+ .react-datepicker__day {
522
+ width: 32px;
523
+ height: 32px;
524
+ line-height: 32px;
525
+ margin-left: 0;
526
+ margin-right: 0;
527
+ margin-top: 1px;
528
+ margin-bottom: 1px;
529
+ border-radius: 100%;
530
+ background-color: ${({theme:e})=>e.general.backgroundColor};
531
+ color: ${({theme:e})=>e.typography.primaryTextColor};
532
+ position: relative;
533
+ z-index: 1;
534
+ &:hover {
535
+ background-color: ${({theme:e})=>e.general.brandColor};
536
+ color: ${({theme:e})=>e.typography.primaryTextColor};
537
+ transition: 0.1s;
538
+ }
539
+ }
540
+
541
+ .react-datepicker__day {
542
+ &:before {
543
+ content: '';
544
+ position: absolute;
545
+ display: block;
546
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.5)};
547
+ width: 100%;
548
+ height: 100%;
549
+ z-index: -1;
550
+ left: 0%;
551
+ visibility: hidden;
552
+ }
553
+
554
+ // rounds ends of the week rows
555
+ &:first-child:before {
556
+ border-radius: 100% 0 0 100%;
557
+ }
558
+ &:last-child:before {
559
+ border-radius: 0 100% 100% 0;
560
+ }
561
+
562
+ &:after {
563
+ content: '';
564
+ position: absolute;
565
+ display: block;
566
+ background-color: ${({theme:e})=>e.general.brandColor};
567
+ width: 100%;
568
+ padding-top: 100%;
569
+ top: 50%;
570
+ transform: translateY(-50%);
571
+ border-radius: 100%;
572
+ z-index: -1;
573
+ visibility: hidden;
574
+ }
575
+ }
576
+
577
+ // ----------------- Days in range styling ------------------------------
578
+ .react-datepicker__day--in-range:before {
579
+ visibility: visible;
580
+ }
581
+
582
+ .react-datepicker__day--in-range.react-datepicker__day--selecting-range-start {
583
+ &:before {
584
+ border-radius: 100% 0 0 100%;
585
+ }
586
+ }
587
+ .react-datepicker__day--in-range.react-datepicker__day--selecting-range-end {
588
+ &:before {
589
+ border-radius: 0 100% 100% 0;
590
+ }
591
+ }
592
+ .react-datepicker__day--in-range.react-datepicker__day--selecting-range-start.react-datepicker__day--selecting-range-end {
593
+ border-radius: 100%;
594
+ }
595
+
596
+ // Days in range that becomes out of selecting range when user is hovering dates in calendar
597
+ .react-datepicker__month--selecting-range .react-datepicker__day--in-range {
598
+ &:not(.react-datepicker__day--in-selecting-range) {
599
+ background-color: ${({theme:e})=>e.general.backgroundColor};
600
+ color: ${({theme:e})=>e.typography.secondaryTextColor};
601
+ &:before {
602
+ visibility: visible;
603
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.15)};
604
+ }
605
+ }
606
+ }
607
+
608
+ // Selecting days out of existing range
609
+ .react-datepicker__month--selecting-range .react-datepicker__day--in-selecting-range {
610
+ &:not(.react-datepicker__day--in-range) {
611
+ &:before {
612
+ visibility: visible;
613
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.15)};
614
+ }
615
+ color: ${({theme:e})=>e.typography.secondaryTextColor};
616
+ }
617
+ }
618
+
619
+ // ----------------- Range start and end styling ------------------------------
620
+ .react-datepicker__month--selecting-range .react-datepicker__day--selecting-range-start,
621
+ .react-datepicker__day--range-start,
622
+ .react-datepicker__day--range-end,
623
+ .react-datepicker__month--selecting-range .react-datepicker__day--selecting-range-end {
624
+ &:after {
625
+ visibility: visible;
626
+ }
627
+
628
+ &:before {
629
+ visibility: visible;
630
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.5)};
631
+ }
632
+
633
+ &.react-datepicker__day--range-start {
634
+ &:before {
635
+ border-radius: 100% 0 0 100%;
636
+ }
637
+ }
638
+
639
+ &.react-datepicker__day--range-end {
640
+ &:before {
641
+ border-radius: 0 100% 100% 0;
642
+ }
643
+ }
644
+ }
645
+
646
+ // Hide background highlighting if range-start and range-end is the same day
647
+ .react-datepicker__month:not(.react-datepicker__month--selecting-range)
648
+ .react-datepicker__day--range-start.react-datepicker__day--range-end {
649
+ &:before {
650
+ visibility: hidden;
651
+ }
652
+ }
653
+
654
+ // Fix for a bug in react-datepicker with rangeeact-datepicker__day--selecting-range-start-start day in each month highlighted as a data-range-start
655
+ .react-datepicker__month:not(.react-datepicker__month--selecting-range) {
656
+ & .react-datepicker__day--selecting-range-start:not(.react-datepicker__day--range-start),
657
+ & .react-datepicker__day--selecting-range-end:not(.react-datepicker__day--range-end) {
658
+ &.react-datepicker__day--in-range {
659
+ &:not(.react-datepicker__day--range-start, .react-datepicker__day--range-end) {
660
+ &:after {
661
+ visibility: hidden;
662
+ }
663
+ &:before {
664
+ visibility: visible;
665
+ }
666
+ }
667
+ }
668
+ }
669
+ }
670
+ // ------------------------------------------------------
671
+
672
+ // Fix cases when selected the same day for start and end:
673
+ .react-datepicker__month--selecting-range
674
+ .react-datepicker__day--range-start.react-datepicker__day--range-end {
675
+ &.react-datepicker__day--selecting-range-end {
676
+ &:before {
677
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.15)};
678
+ visibility: visible;
679
+ }
680
+ }
681
+ &.react-datepicker__day--selecting-range-start {
682
+ &:before {
683
+ background-color: ${({theme:e})=>g.applyOpacity(e.general.brandColor,.15)};
684
+ visibility: visible;
685
+ }
686
+ }
687
+ }
688
+
689
+ .react-datepicker__day--disabled {
690
+ color: ${({theme:e})=>g.applyOpacity(e.typography.primaryTextColor,.5)};
691
+ }
692
+
693
+ // Hover on day out of the possible selecting range
694
+ // (trying to select 'start day' after selected 'end day' and vice versa)
695
+ .react-datepicker__month--selecting-range .react-datepicker__day {
696
+ &:not(.react-datepicker__day--in-range),
697
+ &:not(.react-datepicker__day--in-selecting-range) {
698
+ &:hover {
699
+ &:after {
700
+ visibility: visible;
701
+ background-color: ${({theme:e})=>e.general.brandColor};
702
+ }
703
+ }
704
+ }
705
+ }
706
+
707
+ .react-datepicker__day--selected {
708
+ &:after {
709
+ visibility: visible;
710
+ }
711
+ }
712
+ `,TT=e=>{var r;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",n=e.disabled?"csdk-opacity-0":"";return E.jsx("svg",de(te({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,n].join(" "),children:E.jsx("path",{fill:(r=e.fill)!=null?r:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M13.34 12.5l-2.72-3.175a.5.5 0 1 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175z"})}))},ET=e=>{var r;const t=e.direction==="left"?"csdk-scale-x-[-1]":"",n=e.disabled?"csdk-opacity-0":"";return E.jsx("svg",de(te({xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24"},e),{className:[e.className,t,n].join(" "),children:E.jsx("path",{fill:(r=e.fill)!=null?r:e.theme.typography.primaryTextColor,fillRule:"nonzero",d:"M11.34 12.5L8.62 9.325a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.998 3.5a.5.5 0 1 1-.76-.65l2.72-3.175zm.279-3.175a.5.5 0 0 1 .76-.65l2.998 3.5a.5.5 0 0 1 0 .65l-2.999 3.5a.5.5 0 1 1-.76-.65l2.72-3.175-2.72-3.175z"})}))},mX=g.newStyled.span`
713
+ font-size: 13px;
714
+ font-weight: 700;
715
+ color: ${({theme:e})=>e.typography.primaryTextColor};
716
+ width: 70px;
717
+ text-align: center;
718
+ `,ql=g.newStyled.button`
719
+ border: none;
720
+ background-color: transparent;
721
+ color: ${({theme:e,disabled:t})=>t?"transparent":e.typography.primaryTextColor};
722
+ margin: 0 5px;
723
+ :hover {
724
+ border-radius: 50%;
725
+
726
+ font-weight: 500;
727
+ }
728
+ `,vX=g.newStyled.div`
729
+ display: flex;
730
+ justify-content: center;
731
+ align-items: center;
732
+ padding: 0.5rem 10px;
733
+ `,bX=e=>{const t=Dt(e.date).year(),{themeSettings:n}=g.useThemeContext();return E.jsxs(vX,{children:[E.jsx(ql,{onClick:()=>{e.changeYear(t-1)},theme:n,disabled:e.prevMonthButtonDisabled,children:E.jsx(ET,{direction:"left",disabled:e.prevMonthButtonDisabled,className:"csdk-transition",theme:n})}),E.jsx(ql,{theme:n,onClick:e.decreaseMonth,disabled:e.prevMonthButtonDisabled,children:E.jsx(TT,{direction:"left",disabled:e.prevMonthButtonDisabled,className:"csdk-transition",theme:n})}),E.jsx(mX,{theme:n,children:Dt(e.date).format("MMM YYYY")}),E.jsx(ql,{theme:n,onClick:e.increaseMonth,disabled:e.nextMonthButtonDisabled,children:E.jsx(TT,{direction:"right",disabled:e.nextMonthButtonDisabled,className:"csdk-transition",theme:n})}),E.jsx(ql,{theme:n,onClick:()=>{e.changeYear(t+1)},disabled:e.nextMonthButtonDisabled,children:E.jsx(ET,{direction:"right",disabled:e.nextMonthButtonDisabled,className:"csdk-transition",theme:n})})]})},OT=g.newStyled(zA)`
734
+ background-color: #edeef1;
735
+ color: ${({theme:e})=>e.general.primaryButtonTextColor};
736
+ &:hover {
737
+ background-color: ${()=>g.getSlightlyDifferentColor("#edeef1")};
738
+ transition: 0.2s;
739
+ }
740
+ `,yX=g.newStyled(sZ)`
741
+ background-color: #edeef1;
742
+ color: ${({theme:e})=>e.general.primaryButtonTextColor};
743
+ &:hover {
744
+ background-color: ${()=>g.getSlightlyDifferentColor("#edeef1")};
745
+ transition: 0.2s;
746
+ }
747
+ `,wX=g.newStyled.div`
748
+ background-color: ${({theme:e})=>e.general.backgroundColor};
749
+ `,xX=e=>{var l,u;const{themeSettings:t}=g.useThemeContext(),{t:n}=g.useTranslation(),r=Dt(new Date),o=(l=e.limit)==null?void 0:l.maxDate,i=(u=e.limit)==null?void 0:u.minDate,a=i&&r.isBefore(i),s=o&&r.isAfter(o),c=a||s;return E.jsxs(wX,{className:"csdk-flex csdk-justify-evenly csdk-gap-1 csdk-p-[10px] csdk-pb-[0px]",theme:t,children:[E.jsx(OT,{onClick:()=>{var p;const d=Dt(((p=e.limit)==null?void 0:p.minDate)||new Date);e.onDateSelected(d)},theme:t,style:{visibility:e.enabledButtons.includes("earliest")?"visible":"hidden"},children:n("dateFilter.earliestDate")}),E.jsx(yX,{onClick:()=>{const d=Dt(new Date);e.onDateSelected(d)},disabled:c,tooltipTitle:n("dateFilter.todayOutOfRange"),disableTooltip:!c,theme:t,style:{visibility:e.enabledButtons.includes("today")?"visible":"hidden"},children:n("dateFilter.today")}),E.jsx(OT,{onClick:()=>{var p;const d=Dt(((p=e.limit)==null?void 0:p.maxDate)||new Date);e.onDateSelected(d)},theme:t,style:{visibility:e.enabledButtons.includes("latest")?"visible":"hidden"},children:n("dateFilter.latestDate")})]})};function _X(e,t,n){const r=t.isBefore(e.from),o=t.isAfter(e.to);let i,a;return n==="fromSelector"?o?(i=t,a=t):(i=t,a=e.to):r?(i=t,a=t):(i=e.from,a=t),{from:i,to:a}}function xM({selectedDateRange:e,limit:t,onDateRangeChanged:n,selectorMode:r,onSelectorModeChanged:o,onDateChanged:i,selectedDate:a}){var m,b;const s=v=>{r==="pointSelector"&&i?i(v):t&&n&&o&&e&&(n==null||n(_X({from:e.from,to:e.to},v,r)),o(r==="fromSelector"?"toSelector":"fromSelector"))},{themeSettings:c}=g.useThemeContext(),l=e==null?void 0:e.from.toDate(),u=e==null?void 0:e.to.toDate(),d=(m=t==null?void 0:t.minDate)==null?void 0:m.toDate(),p=(b=t==null?void 0:t.maxDate)==null?void 0:b.toDate(),f=[d&&"earliest","today",p&&"latest"].filter(v=>v!==void 0);return E.jsxs("div",{style:{width:"100%",display:"flex",flexDirection:"column",alignItems:"stretch",backgroundColor:c.general.backgroundColor},"aria-label":"date range filter calendar container",children:[t&&E.jsx(xX,{enabledButtons:f,limit:t,onDateSelected:v=>{s(Dt(v))}}),E.jsx(gX,{theme:c,selected:r==="pointSelector"?a==null?void 0:a.toDate():r==="fromSelector"?l:u,onChange:v=>{v instanceof Date&&s(Dt(v))},startDate:l,endDate:u,minDate:d,maxDate:p,selectsStart:r==="fromSelector",selectsEnd:r==="toSelector",renderCustomHeader:v=>E.jsx(bX,te({},v)),inline:!0,fixedHeight:!0,disabledKeyboardNavigation:!0})]})}const sa="YYYY-MM-DD",CX="date-range";function _M(e){var v,w,_,T;const t=H.useRef(null),[n,r]=H.useState(!1),o=()=>{r(!1)},i=n?"simple-popover":void 0,{from:a,to:s}=e.value,c=Dt(a||((v=e.limit)==null?void 0:v.minDate)),l=Dt(s||((w=e.limit)==null?void 0:w.maxDate)),u={maxDate:Dt((_=e.limit)==null?void 0:_.maxDate),minDate:Dt((T=e.limit)==null?void 0:T.minDate)},[d,p]=H.useState("fromSelector"),f=y=>{p(y),r(!0)},{themeSettings:m}=g.useThemeContext(),b=e.variant||"grey";return E.jsxs("div",{children:[e.isDependent&&E.jsx("div",{className:"csdk-h-[20px]",children:E.jsx(VA,{})}),E.jsxs("div",{"aria-label":"date range filter",className:"csdk-w-fit csdk-flex csdk-flex-wrap",ref:t,children:[E.jsx(ob,{value:c?c.format(sa):"Select",label:"From",onClick:()=>f("fromSelector"),isActive:n&&d==="fromSelector",theme:m,variant:b,disabled:e.disabled}),E.jsx(ob,{onClick:()=>f("toSelector"),value:l?l.format(sa):"Today",label:"To",isActive:n&&d==="toSelector",theme:m,variant:b,disabled:e.disabled}),E.jsx(g.Popover,{id:i,open:n,anchorEl:t.current,onClose:o,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:E.jsx(xM,{selectorMode:d,onDateRangeChanged:y=>{e.onChange({type:CX,filter:{from:y.from.format(sa),to:y.to.format(sa)}})},onSelectorModeChanged:y=>{p(y)},selectedDateRange:{from:c,to:l},limit:u})})]})]})}const DT=e=>{const{filter:t,attribute:n,onChange:r,parentFilters:o,dateLimits:i,isOldDateRangeFilterTile:a,disabled:s}=e,c=o&&(o==null?void 0:o.filter(d=>d&&d!==null)),l=t.from||(i==null?void 0:i.minDate),u=t.to||(i==null?void 0:i.maxDate);return E.jsx(_M,{onChange:d=>{const p=g.dateRange(n,d.filter.from,d.filter.to);r(p)},value:{from:l,to:u},limit:i,isDependent:c&&c.length>0,variant:a?"grey":"white",disabled:s})},kX=e=>{const t=e.filter.from&&e.filter.to?"from-to":e.filter.from?"only-from":"only-to",n=SX(t,e.filter);return E.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:n})},SX=(e,t)=>{switch(e){case"from-to":return`${t.from} to ${t.to}`;case"only-from":return`From ${t.from}`;case"only-to":return`To ${t.to}`}},TX=(e,t,n,r)=>{const[o,i]=H.useState(null),{isInitialized:a,app:s}=g.useSisenseContext(),c=g.useSetError(),l=!EX(e)&&a&&s;return H.useEffect(()=>{l&&g.executeQuery({dataSource:n,measures:[g.min(t),g.max(t)],filters:r},s).then(u=>{const d=u.rows[0];i({minDate:d[0].data,maxDate:d[1].data})}).catch(u=>c(u))},[s,t,n,l,r,c]),OX(e,o)};function EX(e){return e.minDate!==void 0&&e.maxDate!==void 0}function OX(e,t){var o,i;const n=(o=e.minDate)!=null?o:t==null?void 0:t.minDate,r=(i=e.maxDate)!=null?i:t==null?void 0:t.maxDate;return n&&r?{minDate:n,maxDate:r}:null}const CM=g.asSisenseComponent({componentName:"DateRangeFilterTile"})(e=>{const{filter:t,onChange:n,title:r,earliestDate:o,lastDate:i,attribute:a,dataSource:s,parentFilters:c,tiled:l=!1}=e;if(!DX(t))throw new g.TranslatableError("errors.invalidFilterType");const[u,d]=H.useState(t);let p=u.disabled;const f=b=>{b&&d(b),n(b)},m=TX({minDate:o,maxDate:i},a,s,c);return l?E.jsx(ol,{title:r,renderContent:b=>b||!m?E.jsx(kX,{filter:t}):E.jsx("div",{className:"csdk-mt-2 csdk-ml-2 csdk-mb-1",children:E.jsx(DT,de(te({},e),{filter:t,dateLimits:m,disabled:p}))}),onToggleDisabled:()=>{p=!p;const b=g.cloneDeep(u);b.disabled=p,f(b)},disabled:p}):m?E.jsx(DT,de(te({},e),{filter:t,dateLimits:m,isOldDateRangeFilterTile:!0})):null});function DX(e){return"filterType"in e&&e.filterType===g.FilterTypes.date}var kM={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(g.commonjsGlobal,function(){return function(n,r,o){r.prototype.isToday=function(){var i="YYYY-MM-DD",a=o();return this.format(i)===a.format(i)}}})})(kM);var RX=kM.exports;const t0=g.getDefaultExportFromCjs(RX);Dt.extend(t0);const AX=e=>{var w;const{filter:t,arrangement:n="horizontal",onUpdate:r,disabled:o,limit:i}=e,a=t.operator,s=t.count,c=t.attribute,l=Dt(t.anchor),u={maxDate:i?Dt(i.maxDate):void 0,minDate:i?Dt(i==null?void 0:i.minDate):void 0},{t:d}=g.useTranslation(),[p,f]=H.useState(!1),m=H.useRef(null),{themeSettings:b}=g.useThemeContext(),v=(_,T,y,k)=>{if(!(_||T||y||k))return;const S=_!=null?_:a,x=T!=null?T:s,C=y!=null?y:c.granularity;k!==void 0&&(k=Dt(k));const O=k!=null?k:l,D=new g.DimensionalLevelAttribute(C,c.expression,C);let R=null;switch(S){case g.DateOperators.Last:R=g.dateRelativeTo(D,0,x,O.isToday()?void 0:O.toDate());break;case g.DateOperators.Next:R=g.dateRelativeFrom(D,0,x,O.isToday()?void 0:O.toDate());break}r(R)};return E.jsxs("div",{className:`csdk-flex ${Kr(n)?"csdk-flex-col":"csdk-flex-row"} csdk-mb-px`,children:[E.jsxs("div",{className:"csdk-flex csdk-justify-between csdk-items-center csdk-h-6 csdk-my-1",children:[E.jsx("div",{className:"csdk-h-6",children:E.jsx(ib,{selectedIdx:Object.keys(gc).indexOf(a),elements:Object.keys(gc).map(_=>E.jsx("div",{onClick:()=>{a!==_&&v(_,void 0,void 0,void 0)},children:d(gc[_])})),disabled:o})}),E.jsx(Bs,{className:"csdk-w-[60px]",type:"number",placeholder:d("dateFilter.count"),value:(w=s==null?void 0:s.toString())!=null?w:"",callback:_=>{_!==""&&v(void 0,Number(_),void 0,void 0)},required:!0,disabled:o}),E.jsx("div",{className:"csdk-h-6",children:E.jsx(ib,{selectedIdx:Object.keys(mc).indexOf(c.granularity),elements:Object.keys(mc).map(_=>E.jsx("div",{onClick:()=>{c.granularity!==_&&v(void 0,void 0,_,void 0)},children:d(mc[_])})),disabled:o})})]}),E.jsxs("div",{ref:m,className:"csdk-flex csdk-justify-end csdk-items-center csdk-h-6 csdk-my-1",children:[E.jsx("div",{className:"csdk-text-[13px] csdk-ml-[5px] csdk-mr-2",children:d("dateFilter.from")}),E.jsx(ob,{onClick:()=>f(!0),value:l?l.format(sa):d("dateFilter.today"),isActive:p,theme:b,variant:"white",disabled:o}),E.jsx(g.Popover,{id:"simple-popover",open:p,anchorEl:m.current,onClose:()=>f(!1),anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},children:E.jsx(xM,{selectorMode:"pointSelector",limit:u,onDateChanged:_=>{_!==l&&(v(void 0,void 0,void 0,_),f(!1))},selectedDate:l})})]})]})},gc={[g.DateOperators.Last]:"dateFilter.last",[g.DateOperators.Next]:"dateFilter.next"},mc={[g.DateLevels.Days]:"dateFilter.days",[g.DateLevels.Weeks]:"dateFilter.weeks",[g.DateLevels.Months]:"dateFilter.months",[g.DateLevels.Quarters]:"dateFilter.quarters",[g.DateLevels.Years]:"dateFilter.years"};Dt.extend(t0);const MX=e=>{const{filter:t}=e,{t:n}=g.useTranslation(),r=n(gc[t.operator]),o=t.count.toString(),i=n(mc[t.attribute.granularity]),a=t.anchor&&!Dt(t.anchor).isToday()?Dt(t.anchor).format(sa):n("dateFilter.today");return E.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:`${r} ${o} ${i} ${n("dateFilter.from")} ${a}`})};Dt.extend(t0);const SM=g.asSisenseComponent({componentName:"RelativeDateFilterTile"})(e=>{const{title:t,filter:n,arrangement:r="horizontal",onUpdate:o,limit:i}=e,[a,s]=H.useState(n);let c=a.disabled;const l=u=>{u&&s(u),o(u)};return E.jsx(ol,{title:t,renderContent:u=>u&&Kr(r)?E.jsx(MX,{filter:a}):E.jsx(AX,{filter:a,arrangement:r,onUpdate:l,disabled:c,limit:i}),onToggleDisabled:()=>{c=!c;const u=g.cloneDeep(a);u.disabled=c,l(u)},disabled:c,arrangement:r})}),bt={NOT_BETWEEN:`${g.FilterTypes.exclude}${g.NumericOperators.From}${g.NumericOperators.To}`,TOP:`${g.FilterTypes.ranking}${g.RankingOperators.Top}`,BOTTOM:`${g.FilterTypes.ranking}${g.RankingOperators.Bottom}`,BETWEEN:`${g.FilterTypes.numeric}${g.NumericOperators.From}${g.NumericOperators.To}`,EQUALS:`${g.FilterTypes.numeric}${g.NumericOperators.Equals}`,NOT_EQUALS:`${g.FilterTypes.numeric}${g.NumericOperators.DoesntEqual}`,LESS_THAN:`${g.FilterTypes.numeric}${g.NumericOperators.ToNotEqual}`,LESS_THAN_OR_EQUAL:`${g.FilterTypes.numeric}${g.NumericOperators.To}`,GREATER_THAN:`${g.FilterTypes.numeric}${g.NumericOperators.FromNotEqual}`,GREATER_THAN_OR_EQUAL:`${g.FilterTypes.numeric}${g.NumericOperators.From}`,IS:`${g.FilterTypes.text}${g.TextOperators.Equals}`,IS_NOT:`${g.FilterTypes.text}${g.TextOperators.DoesntEqual}`,CONTAINS:`${g.FilterTypes.text}${g.TextOperators.Contains}`,NOT_CONTAIN:`${g.FilterTypes.text}${g.TextOperators.DoesntContain}`,STARTS_WITH:`${g.FilterTypes.text}${g.TextOperators.StartsWith}`,NOT_STARTS_WITH:`${g.FilterTypes.text}${g.TextOperators.DoesntStartWith}`,ENDS_WITH:`${g.FilterTypes.text}${g.TextOperators.EndsWith}`,NOT_ENDS_WITH:`${g.FilterTypes.text}${g.TextOperators.DoesntEndWith}`,LIKE:`${g.FilterTypes.text}${g.TextOperators.Like}`},Pa={[bt.EQUALS]:{fn:g.equals,inputCount:1,symbols:["="],message:"criteriaFilter.equals",ranked:!1,type:g.FilterTypes.numeric},[bt.NOT_EQUALS]:{fn:g.doesntEqual,inputCount:1,symbols:["≠"],message:"criteriaFilter.notEquals",ranked:!1,type:g.FilterTypes.numeric},[bt.LESS_THAN]:{fn:g.lessThan,inputCount:1,symbols:["<"],message:"criteriaFilter.lessThan",ranked:!1,type:g.FilterTypes.numeric},[bt.LESS_THAN_OR_EQUAL]:{fn:g.lessThanOrEqual,inputCount:1,symbols:["≤"],message:"criteriaFilter.lessThanOrEqual",ranked:!1,type:g.FilterTypes.numeric},[bt.GREATER_THAN]:{fn:g.greaterThan,inputCount:1,symbols:[">"],message:"criteriaFilter.greaterThan",ranked:!1,type:g.FilterTypes.numeric},[bt.GREATER_THAN_OR_EQUAL]:{fn:g.greaterThanOrEqual,inputCount:1,symbols:["≥"],message:"criteriaFilter.greaterThanOrEqual",ranked:!1,type:g.FilterTypes.numeric},[bt.BETWEEN]:{fn:g.between,inputCount:2,symbols:["≥","≤"],message:"criteriaFilter.between",ranked:!1,type:g.FilterTypes.numeric},[bt.NOT_BETWEEN]:{fn:(e,t,n)=>g.exclude(g.between(e,t,n)),inputCount:2,symbols:["≤","≥"],message:"criteriaFilter.notBetween",ranked:!1,type:g.FilterTypes.exclude},[bt.TOP]:{fn:g.topRanking,inputCount:2,symbols:["Top","by"],message:"criteriaFilter.top",ranked:!0,type:g.FilterTypes.ranking},[bt.BOTTOM]:{fn:g.bottomRanking,inputCount:2,symbols:["Last","by"],message:"criteriaFilter.bottom",ranked:!0,type:g.FilterTypes.ranking},[bt.IS]:{fn:g.equals,inputCount:1,symbols:[],message:"criteriaFilter.is",ranked:!1,type:g.FilterTypes.text},[bt.IS_NOT]:{fn:g.doesntEqual,inputCount:1,symbols:[],message:"criteriaFilter.isNot",ranked:!1,type:g.FilterTypes.text},[bt.CONTAINS]:{fn:g.contains,inputCount:1,symbols:[],message:"criteriaFilter.contains",ranked:!1,type:g.FilterTypes.text},[bt.NOT_CONTAIN]:{fn:g.doesntContain,inputCount:1,symbols:[],message:"criteriaFilter.notContains",ranked:!1,type:g.FilterTypes.text},[bt.STARTS_WITH]:{fn:g.startsWith,inputCount:1,symbols:[],message:"criteriaFilter.startsWith",ranked:!1,type:g.FilterTypes.text},[bt.NOT_STARTS_WITH]:{fn:g.doesntStartWith,inputCount:1,symbols:[],message:"criteriaFilter.notStartsWith",ranked:!1,type:g.FilterTypes.text},[bt.ENDS_WITH]:{fn:g.endsWith,inputCount:1,symbols:[],message:"criteriaFilter.endsWith",ranked:!1,type:g.FilterTypes.text},[bt.NOT_ENDS_WITH]:{fn:g.doesntEndWith,inputCount:1,symbols:[],message:"criteriaFilter.notEndsWith",ranked:!1,type:g.FilterTypes.text},[bt.LIKE]:{fn:g.like,inputCount:1,symbols:[],message:"criteriaFilter.like",ranked:!1,type:g.FilterTypes.text}},NX=e=>{let t="",n="";switch(e.filterType){case g.FilterTypes.exclude:t=e.filter.operatorA,n=e.filter.operatorB;break;case g.FilterTypes.ranking:t=e.operator;break;case g.FilterTypes.numeric:t=e.operatorA,n=e.operatorB;break;case g.FilterTypes.text:t=e.operatorA,t=e.operatorA;break}const r=`${e.filterType}${t!=null?t:""}${n!=null?n:""}`,o=Object.keys(bt).find(i=>bt[i]==r);if(bt[o]===void 0)throw new Error(`Unsupported filter ${e}`);return bt[o]},PX=e=>{const t=[];let n,r;switch(e.filterType){case g.FilterTypes.exclude:n=e.filter.valueA,r=e.filter.valueB;break;case g.FilterTypes.ranking:n=e.count,r=e.measure;break;case g.FilterTypes.numeric:n=e.valueA,r=e.valueB;break;case g.FilterTypes.text:n=e.valueA,r=e.valueB;break}return n!==void 0&&t.push(n),r!==void 0&&t.push(r),t},IX=e=>e.map(t=>g.MetadataTypes.isMeasure(t)?t.name:t),jX=(e,t)=>t(e,{val:"---"}).replace("---",""),Su=e=>{switch(e){case g.FilterTypes.exclude:case g.FilterTypes.ranking:case g.FilterTypes.numeric:return"number";case g.FilterTypes.text:default:return"text"}},LX=e=>{var s,c;const{filterType:t,defaultValues:n=[],onUpdate:r,disabled:o}=e,i=Pa[t],{t:a}=g.useTranslation();return E.jsx(Bs,{type:Su(i.type),label:i.type===g.FilterTypes.numeric?i.symbols[0]:`${jX(i.message,a)}`,value:(c=(s=n==null?void 0:n[0])==null?void 0:s.toString())!=null?c:"",callback:l=>{r==null||r([l])},required:!0,disabled:o})},FX=e=>{var a,s,c;const{filterType:t,defaultValues:n=[],onUpdate:r,disabled:o}=e,i=Pa[t];return E.jsxs(E.Fragment,{children:[E.jsx(Bs,{type:Su(i.type),label:i.symbols[0],value:(a=n==null?void 0:n[0])!=null?a:"",callback:l=>{r==null||r([l,n==null?void 0:n[1]])},required:!0,disabled:o}),E.jsx(Bs,{type:Su(i.type),label:i.symbols[1],value:(c=(s=n==null?void 0:n[1])==null?void 0:s.toString())!=null?c:"",callback:l=>{r==null||r([n==null?void 0:n[0],l])},required:!0,disabled:o})]})},BX=e=>{var b,v;const{filterType:t,defaultValues:n=[],onUpdate:r,arrangement:o="vertical",disabled:i,measures:a=[]}=e,s=Pa[t],c=n==null?void 0:n[1],{t:l}=g.useTranslation(),u=()=>E.jsx(hZ,{className:"csdk-flex csdk-flex-col csdk-max-h-32 csdk-overflow-auto csdk-border-solid csdk-border-input csdk-p-px csdk-rounded-md",items:a.map(w=>w.name),onChange:w=>{var _;r==null||r([Number(n==null?void 0:n[0]),(_=a.find(T=>T.name===w.target.value))!=null?_:a[0]])},currentSelection:c.name,title:l("criteriaFilter.byMeasure"),disabled:i}),d=a.findIndex(w=>w.name===c.name),p=a.map(w=>E.jsx("div",{onClick:()=>{var _;w.name!==c.name&&(r==null||r([Number(n==null?void 0:n[0]),(_=a.find(T=>T.name===w.name))!=null?_:a[0]]))},children:w.name},w.name)),f=()=>E.jsxs("div",{className:"csdk-flex csdk-h-6 csdk-items-center",children:[l("criteriaFilter.by"),E.jsx(ib,{elements:p,selectedIdx:d})]}),m=()=>E.jsx("div",{className:Kr(o)?"":"csdk-self-center",children:`${l("criteriaFilter.by")} ${c.name}`});return E.jsxs(E.Fragment,{children:[E.jsx(Bs,{type:Su(s.type),label:s.symbols[0],value:(v=(b=n==null?void 0:n[0])==null?void 0:b.toString())!=null?v:"",callback:w=>{w&&(r==null||r([Number(w),n==null?void 0:n[1]]))},required:!0,disabled:i}),a&&a.length>0?Kr(o)?u():f():m()]})},HX=({filterType:e,arrangement:t="vertical",defaultValues:n=[],onUpdate:r,disabled:o,measures:i})=>{const{themeSettings:a}=g.useThemeContext(),s=Pa[e];return E.jsxs("div",{className:`csdk-w-max csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-flex csdk-gap-x-2 csdk-gap-y-0.5 ${Kr(t)?"csdk-flex-col":"csdk-flex-row"}`,style:{color:`${a.typography.primaryTextColor}!important`},children:[(s==null?void 0:s.inputCount)===1&&E.jsx(LX,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o}),(s==null?void 0:s.inputCount)===2&&!s.ranked&&E.jsx(FX,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o}),(s==null?void 0:s.inputCount)===2&&s.ranked&&E.jsx(BX,{filterType:e,arrangement:t,defaultValues:n,onUpdate:r,disabled:o,measures:i})]})},$X=({filterType:e,values:t=[]})=>{var i,a,s;const n=Pa[e],{t:r}=g.useTranslation();let o="";switch(n.inputCount){case 1:o+=r(n.message,{val:(i=t[0])==null?void 0:i.toString()});break;case 2:o+=r(n.message,{valA:(a=t[0])==null?void 0:a.toString(),valB:(s=t[1])==null?void 0:s.toString()});break;default:for(let c=0;c<n.inputCount;c++)o+=`${n.symbols[c]} ${t[c]}`}return E.jsx("div",{className:"csdk-leading-[26px] csdk-mx-auto csdk-my-2 csdk-px-1 csdk-text-[13px] csdk-whitespace-nowrap csdk-flex csdk-flex-wrap csdk-gap-x-1 csdk-justify-center",children:r(o)})},TM=g.asSisenseComponent({componentName:"CriteriaFilterTile"})(e=>{const{title:t,filter:n,arrangement:r="vertical",onUpdate:o,measures:i}=e,a=H.useRef(n),s=NX(a.current),c=Pa[s],l=PX(n!=null?n:a.current);let u=a.current.disabled;const[d,p]=H.useState(l),f=m=>{var v;p(m);let b=null;c.ranked?b=c.fn(a.current.attribute,m==null?void 0:m[1],m==null?void 0:m[0]):b=(v=c.fn(a.current.attribute,...m))!=null?v:null,b&&(b.disabled=u,a.current=b),o(b)};return E.jsx(ol,{title:t,renderContent:m=>m&&Kr(r)?E.jsx($X,{filterType:s,values:IX(d)}):E.jsx(HX,{filterType:s,arrangement:r,defaultValues:d,onUpdate:f,disabled:u,measures:i}),arrangement:r,disabled:u,onToggleDisabled:()=>{u=!u,f(d)}})}),EM=({filter:e,onChange:t})=>{const{t:n}=g.useTranslation(),r=e.attribute,o=r.name,i={attribute:r,title:o,onChange:t,onUpdate:t};return e instanceof g.MembersFilter?E.jsx(nM,de(te({},i),{filter:e})):e instanceof g.DateRangeFilter?E.jsx(CM,de(te({},i),{filter:e,attribute:r,tiled:!0})):e instanceof g.RelativeDateFilter?E.jsx(SM,de(te({},i),{filter:e,arrangement:"vertical"})):e instanceof g.MeasureFilter||e instanceof g.NumericFilter||e instanceof g.TextFilter||e instanceof g.RankingFilter?E.jsx(TM,de(te({},i),{filter:e})):E.jsx(ol,{title:n("unsupportedFilter.title"),renderContent:()=>E.jsx("p",{className:"csdk-text-center csdk-text-[13px]",children:n("unsupportedFilter.message")})})},zX=g.newStyled.div`
750
+ background-color: ${({theme:e})=>e.chart.backgroundColor};
751
+ border: 1px solid #dadada;
752
+ width: fit-content;
753
+ min-width: 240px;
754
+ `,WX=g.newStyled.div`
755
+ margin: 12px;
756
+ margin-top: 6px;
757
+ background-color: transparent;
758
+ `,UX=g.newStyled.div`
759
+ background-color: transparent;
760
+ color: ${({theme:e})=>e.typography.primaryTextColor};
761
+ margin: 0 9px;
762
+ height: 48px;
763
+ border-bottom: 1px solid #dadada;
764
+ box-sizing: border-box;
765
+ `,YX=g.newStyled.div`
766
+ font-size: 13px;
767
+ font-weight: bold;
768
+ display: flex;
769
+ align-items: center;
770
+ height: 100%;
771
+ margin-left: 8px;
772
+ `,OM=({filters:e,onFiltersChange:t})=>{const{themeSettings:n}=g.useThemeContext(),r=[...e],o=(i,a)=>{e&&(r[`${a}`]=i,t(r.filter(s=>s!==null)))};return E.jsxs(zX,{theme:n,children:[E.jsx(UX,{theme:n,children:E.jsx(YX,{children:"Filters"})}),E.jsx(WX,{children:e==null?void 0:e.map((i,a)=>E.jsx("div",{className:"csdk-mt-[6px]",children:E.jsx(EM,{filter:i,onChange:s=>o(s,a)},i.guid)},i.guid))})]})},qX=g.newStyled.div`
773
+ max-width: 100%;
774
+ background-color: ${({background:e})=>e};
775
+ color: ${({color:e})=>e};
776
+ display: flex;
777
+ `,VX=g.newStyled.div`
778
+ background-color: ${({background:e})=>e};
779
+ flex: 1;
780
+ border-top: ${di(uc,dc)};
781
+ border-bottom: ${di(uc,dc)};
782
+ border-left: ${di(uc,dc)};
783
+ `,GX=({title:e,layout:t,widgets:n,filters:r,onFiltersChange:o})=>{const{themeSettings:i}=g.useThemeContext();return E.jsxs(qX,{background:i.general.backgroundColor,color:i.typography.primaryTextColor,children:[E.jsxs(VX,{background:i.chart.backgroundColor,children:[E.jsx(oZ,{title:e}),E.jsx(tZ,{layout:t,widgets:n})]}),E.jsx(OM,{filters:r,onFiltersChange:o})]})},QX=({title:e,layout:t,widgets:n,filters:r})=>{const[o,i]=H.useState(r),[a,s]=H.useState(n),c=H.useMemo(()=>a.filter(l=>TJ(l.widgetType)).map(l=>EJ(l,o)),[a,o]);return H.useEffect(()=>{i(r)},[r]),H.useEffect(()=>{s(n)},[n]),E.jsx(GX,{title:e,layout:t,widgets:c,filters:o,onFiltersChange:i})},JX=({dashboardOid:e})=>{const{themeSettings:t}=g.useThemeContext(),{dashboard:n,isLoading:r,isError:o}=RA({dashboardOid:e,includeWidgets:!0,includeFilters:!0});if(o)throw new Error("Failed to load Dashboard");return E.jsx(g.LoadingOverlay,{themeSettings:t,isVisible:r,children:n&&E.jsx(QX,te({},n.getDashboardProps()))})};function DM(e,t){const n=t.metadata.ignore,{filters:r,highlights:o}=XX(ZX(e,n),KX(e),t);return{filters:r.map(i=>g.createFilterFromJaql(i.jaql,i.instanceid)),highlights:o.map(i=>g.createFilterFromJaql(i.jaql))}}function RM(e){const t=[];for(const n of e)if(n.isCascading){const r=n,{disabled:o}=r,i=r.levels.map(a=>({jaql:a,disabled:o}));t.push(...i)}else t.push(n);return t}function ZX(e,t){return RM(e.filters||[]).filter(({instanceid:n="",disabled:r})=>!(t!=null&&t.all)&&!r&&!(t!=null&&t.ids.includes(n))).map(({jaql:n,instanceid:r})=>{const{filter:o,turnOffMembersFilter:i}=Gy(n);return{instanceid:r,jaql:de(te({},n),{filter:te(te({},o),i&&{filter:i})})}})}function KX(e){const t=[];return RM(e.filters||[]).forEach(({jaql:n})=>{const{backgroundFilter:r}=Gy(n);r&&t.push({jaql:te(de(te({},n),{filter:r}),n.datatype==="datetime"&&{level:r.level})})}),t}function XX(e,t,n){var a;const r=((a=n.options)==null?void 0:a.dashboardFiltersMode)===g.WidgetDashboardFilterMode.SELECT;let o=[];const i=[];return e.forEach(s=>{r&&eee(s,n)?i.push(s):o.push(s)}),o=[...o,...t],{filters:o,highlights:i}}function eee(e,t){return tee(t).includes(e.jaql.dim)&&!e.jaql.filter.all}function tee(e){const t=nee(e.type),n=[];for(const r of t){const i=g.getEnabledPanelItems(e.metadata.panels,r).map(a=>a.jaql.dim);n.push(...i)}return n}function nee(e){switch(e){case"chart/line":case"chart/area":return["x-axis"];case"chart/bar":case"chart/column":case"chart/polar":case"chart/pie":case"treemap":return["categories"];case"chart/scatter":return["x-axis","y-axis","point"];case"chart/boxplot":return["category"];case"map/scatter":return["geo"];case"pivot2":return["rows","columns"];default:return[]}}function ree(e){const{widgetType:t}=e;let n;return g.isPivotWidget(t)?n=e.getPivotTableWidgetProps():n=e.getChartWidgetProps(),{props:n,widgetType:t}}const oee=g.asSisenseComponent({componentName:"DashboardWidget",customContextErrorMessageKey:"errors.dashboardWidgetNoSisenseContext"})(e=>{var b;const m=e,{widgetOid:t,dashboardOid:n,includeDashboardFilters:r}=m,o=Rn(m,["widgetOid","dashboardOid","includeDashboardFilters"]),{themeSettings:i}=g.useThemeContext(),{widget:a,dashboard:s,error:c}=CJ({widgetOid:t,dashboardOid:n,includeDashboard:r});if(c)throw c;const{widgetType:l,props:u}=H.useMemo(()=>{if(!a)return{widgetType:null,props:null};const v=new Nd(a,i),w=ree(v);if(r){const{filters:_,highlights:T}=DM(s,a);w.props.filters=g.mergeFilters(_,w.props.filters),w.props.highlights=T}return w},[a,s,i,r]),d=g.mergeFiltersByStrategy(u==null?void 0:u.filters,o.filters,o.filtersMergeStrategy),p=g.mergeFiltersByStrategy(u==null?void 0:u.highlights,o.highlights,o.filtersMergeStrategy);if(!u)return null;const f=g.getFilterRelationsFromJaql(d,g.convertFilterRelationsModelToJaql((b=s==null?void 0:s.filterRelations)!=null&&b.length?s==null?void 0:s.filterRelations[0].filterRelations:void 0));return g.isPivotWidget(l)?E.jsx(HA,de(te(te({},u),o),{filters:f,highlights:p,styleOptions:te(te({},u.styleOptions),e.styleOptions)})):E.jsx(g.ChartWidget,de(te(te({},u),o),{filters:f,highlights:p,drilldownOptions:te(te({},u.drilldownOptions),e.drilldownOptions),styleOptions:te(te({},u.styleOptions),e.styleOptions)}))}),iee=g.asSisenseComponent({componentName:"ExecuteQuery"})(({dataSource:e,dimensions:t,measures:n,filters:r,highlights:o,count:i,offset:a,ungroup:s,children:c,onDataChanged:l,onBeforeQuery:u})=>{const d=Ky({dataSource:e,dimensions:t,measures:n,filters:r,highlights:o,count:i,offset:a,ungroup:s,onBeforeQuery:u}),p=d.data,f=g.usePrevious(p);return p&&f!==p&&(l==null||l(p)),E.jsx(E.Fragment,{children:d&&(c==null?void 0:c(d))})});function RT(e,t){return nr(e,t)}const aee=g.withTracking("useExecuteCsvQuery")(see);function see(e){const t=tM(e),n=$o(e,t),[r,o]=H.useReducer(RT,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:i,app:a}=g.useSisenseContext();return H.useEffect(()=>{if(i||o({type:"error",error:new g.TranslatableError("errors.executeQueryNoSisenseContext")}),n(a)){o({type:"loading"});const{dataSource:s,dimensions:c,measures:l,filters:u,highlights:d,count:p,offset:f,config:m,onBeforeQuery:b}=e,{filters:v,relations:w}=g.getFilterListAndRelations(u);g.executeCsvQuery({dataSource:s,dimensions:c,measures:l,filters:v,filterRelations:w,highlights:d,count:p,offset:f},a,{onBeforeQuery:b}).then(_=>m!=null&&m.asDataStream?(o({type:"success",data:_}),null):_.text()).then(_=>_&&o({type:"success",data:_})).catch(_=>{o({type:"error",error:_})})}},[a,i,e,n]),r.data&&t?RT(r,{type:"loading"}):r}const lee=g.withTracking("useExecuteQueryByWidgetId")(AM);function AM(e){const t=uee(e),n=$o(e,t),{isInitialized:r,app:o}=g.useSisenseContext(),i=H.useRef(void 0),[a,s]=H.useReducer(xu,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0});return H.useEffect(()=>{if(r||s({type:"error",error:new g.TranslatableError("errors.executeQueryNoSisenseContext")}),n(o)){const{widgetOid:c,dashboardOid:l,filters:u,highlights:d,filtersMergeStrategy:p,count:f,offset:m,includeDashboardFilters:b,onBeforeQuery:v}=e;s({type:"loading"}),MM({widgetOid:c,dashboardOid:l,filters:u,highlights:d,filtersMergeStrategy:p,app:o,count:f,offset:m,includeDashboardFilters:b,onBeforeQuery:v}).then(({data:w,query:_})=>{i.current=_,s({type:"success",data:w})}).catch(w=>{s({type:"error",error:w})})}},[e,o,r,n]),de(te({},a),{query:i.current})}const cee=["widgetOid","dashboardOid","count","offset","filtersMergeStrategy","includeDashboardFilters","onBeforeQuery"];function uee(e){return Ti(e,cee,(t,n)=>{const r=wi(n.filters,t.filters),o=wi(n.highlights,t.highlights);return r||o})}function MM(u){return qn(this,arguments,function*({widgetOid:e,dashboardOid:t,filters:n,highlights:r,filtersMergeStrategy:o,count:i,offset:a,includeDashboardFilters:s,app:c,onBeforeQuery:l}){var D;const d=new g.RestApi(c.httpClient),{widget:p,dashboard:f}=yield Qy({widgetOid:e,dashboardOid:t,includeDashboard:s,api:d}),b=new Nd(p).getExecuteQueryParams(),{dataSource:v,dimensions:w,measures:_}=b;let{filters:T,highlights:y}=b;if(s){const{filters:R,highlights:M}=DM(f,p);T=g.mergeFilters(R,T),y=g.mergeFilters(M,y)}const k=g.mergeFiltersByStrategy(T,n,o),S=g.mergeFiltersByStrategy(y,r,o),x=(D=f==null?void 0:f.filterRelations)!=null&&D.length?g.convertFilterRelationsModelToJaql(f==null?void 0:f.filterRelations[0].filterRelations):void 0,C={dataSource:v,dimensions:w,measures:_,filters:k,filterRelations:x,highlights:S,count:i,offset:a};return{data:yield g.executeQuery(C,c,{onBeforeQuery:l}),query:C}})}const dee=g.asSisenseComponent({componentName:"ExecuteQueryByWidgetId"})(({widgetOid:e,dashboardOid:t,children:n,onDataChanged:r,filters:o,highlights:i,count:a,offset:s,filtersMergeStrategy:c,onBeforeQuery:l,includeDashboardFilters:u})=>{const d=AM({widgetOid:e,dashboardOid:t,filters:o,highlights:i,count:a,offset:s,filtersMergeStrategy:c,onBeforeQuery:l,includeDashboardFilters:u}),{data:p,query:f}=d,[m,b]=H.useState(p);return m!==p&&(b(p),p&&f&&(r==null||r(p,f))),E.jsx(E.Fragment,{children:d&&(n==null?void 0:n(d))})});function pee(){const e=g.useSisenseContext().app;return e==null?void 0:e.queryCache}const hee=new g.QueryClient({defaultOptions:{queries:{refetchOnWindowFocus:!1,refetchOnMount:!1}}}),fee=({children:e})=>E.jsx(g.QueryClientProvider,{client:hee,children:e}),gee=({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,children:i,appConfig:a,enableTracking:s=!0,showRuntimeErrors:c=!0,enableSilentPreAuth:l=!1})=>{const u={enabled:s,packageName:"sdk-ui"},[d,p]=H.useState(),[f,m]=H.useState();return H.useEffect(()=>{let b=!1;return TA({defaultDataSource:e,url:t,token:n,wat:r,ssoEnabled:o,appConfig:a,enableSilentPreAuth:l}).then(v=>{b||p(v)}).catch(v=>{m(v)}),()=>{b=!0}},[e,t,n,r,o,a,l]),E.jsx(g.I18nProvider,{userLanguage:(d==null?void 0:d.settings.language)||(d==null?void 0:d.settings.serverLanguage),children:E.jsx(g.ErrorBoundary,{showErrorBox:c,error:f,children:E.jsx(g.SisenseContext.Provider,{value:{isInitialized:!0,app:d,tracking:u},children:E.jsx(g.ThemeProvider,{skipTracking:!0,theme:d==null?void 0:d.settings.serverThemeSettings,children:E.jsx(fee,{children:i})})})})})},mee=({drilldownDimensions:e,initialDimension:t})=>{if(!t)throw new Error("Initial dimension has to be specified to use drilldown with custom components");const[n,r]=H.useState([]),o=H.useMemo(()=>e.filter(({expression:l})=>n.every(({nextDimension:u})=>u.expression!==l)),[e,n]),i=H.useCallback((l,u)=>{r(d=>[...d,{points:l,nextDimension:u}])},[r]),a=H.useCallback(l=>{r(u=>u.slice(0,l))},[r]),s=H.useCallback(()=>{r([])},[r]),c=H.useMemo(()=>NM(n,t),[n,t]);return te({selectDrilldown:i,sliceDrilldownSelections:a,clearDrilldownSelections:s,drilldownSelections:n,availableDrilldowns:o},c)},NM=(e,t)=>{var i;let n=(i=t.column)!=null?i:t;const r=[],o=[];return e.forEach(({points:a,nextDimension:s})=>{r.push(g.members(n,a.map(g.getMemberNameFromDataPoint))),o.push(a.map(g.getDisplayMemberNameFromDataPoint)),n=s}),{drilldownFilters:r,drilldownFiltersDisplayValues:o,drilldownDimension:n}},vee=g.asSisenseComponent({componentName:"DrilldownWidget",trackingConfig:{transparent:!0}})(({drilldownDimensions:e,initialDimension:t,config:n,children:r})=>{var x,C;const[o,i]=H.useState([]),[a,s]=H.useState(null),c=(x=n==null?void 0:n.contextMenuComponent)!=null?x:g.ContextMenu,l=(C=n==null?void 0:n.breadcrumbsComponent)!=null?C:g.DrilldownBreadcrumbs,{selectDrilldown:u,sliceDrilldownSelections:d,clearDrilldownSelections:p,availableDrilldowns:f,drilldownFilters:m,drilldownFiltersDisplayValues:b,drilldownDimension:v}=mee({drilldownDimensions:e,initialDimension:t}),w=H.useMemo(()=>v&&E.jsx(l,{filtersDisplayValues:b,currentDimension:v,clearDrilldownSelections:p,sliceDrilldownSelections:d}),[l,p,v,b,d]),_=O=>{s(O)},T=H.useCallback(()=>{i([]),s(null)},[i]),y=H.useCallback(O=>{u(o,O)},[u,o]),k=H.useCallback(O=>{i(O)},[i]),S=H.useMemo(()=>[...v?[{sectionTitle:v==null?void 0:v.name}]:[],{sectionTitle:"Drill",items:f.map(O=>({caption:O.name,onClick:()=>y(O)}))}],[v,f,y]);return E.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[E.jsx(c,{position:a,itemSections:S,closeContextMenu:T}),v&&!(n!=null&&n.isBreadcrumbsDetached)&&w,E.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:r({drilldownFilters:m,drilldownDimension:v,onDataPointsSelected:k,onContextMenu:_,breadcrumbsComponent:n!=null&&n.isBreadcrumbsDetached?w:void 0})})]})}),bee=g.asSisenseComponent({componentName:"LineChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"line"}))),yee=g.asSisenseComponent({componentName:"ColumnChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"column"}))),wee=g.asSisenseComponent({componentName:"AreaChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"area"}))),xee=g.asSisenseComponent({componentName:"PieChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"pie"}))),_ee=g.asSisenseComponent({componentName:"BarChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"bar"}))),Cee=g.asSisenseComponent({componentName:"FunnelChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"funnel"}))),kee=g.asSisenseComponent({componentName:"PolarChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"polar"}))),See=g.asSisenseComponent({componentName:"ScatterChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"scatter"}))),Tee=g.asSisenseComponent({componentName:"IndicatorChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"indicator"}))),Eee=g.asSisenseComponent({componentName:"TreemapChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"treemap"}))),Oee=g.asSisenseComponent({componentName:"SunburstChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"sunburst"}))),Dee=g.asSisenseComponent({componentName:"BoxplotChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"boxplot"}))),Ree=g.asSisenseComponent({componentName:"ScattermapChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"scattermap"}))),Aee=g.asSisenseComponent({componentName:"AreamapChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"areamap"}))),Mee=g.asSisenseComponent({componentName:"AreaRangeChart",shouldSkipSisenseContextWaiting:g.shouldSkipSisenseContextWaiting})(e=>E.jsx(g.Chart,de(te({},e),{chartType:"arearange"}))),Nee=({context:e,error:t,children:n})=>{var r,o,i;return e?E.jsx(g.I18nProvider,{userLanguage:((r=e==null?void 0:e.app)==null?void 0:r.settings.language)||((o=e==null?void 0:e.app)==null?void 0:o.settings.serverLanguage),children:E.jsx(g.ErrorBoundary,{showErrorBox:e==null?void 0:e.showRuntimeErrors,error:t,children:e&&E.jsx(g.SisenseContext.Provider,{value:e,children:E.jsx(g.ThemeProvider,{skipTracking:!0,theme:(i=e.app)==null?void 0:i.settings.serverThemeSettings,children:n})})})}):E.jsx(g.ErrorBoundary,{showErrorBox:!1,error:t,children:E.jsx(g.I18nProvider,{children:E.jsx(g.ThemeProvider,{children:n})})})},Pee=g.asSisenseComponent({componentName:"CustomThemeProvider",trackingConfig:{skip:e=>{var t;return!!((t=e.context)!=null&&t.skipTracking)},transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{context:{themeSettings:t},error:n,children:r}=e;if(n)throw n;return E.jsx(E.Fragment,{children:t&&E.jsx(g.ThemeContext$1.Provider,{value:{themeSettings:t},children:r})})});function PM(e,t){return qn(this,null,function*(){try{const n=yield t.httpClient.get(`api/v1/formulas/${e}?flat=true`,void 0,{skipTrackingParam:!0});return n?Md(n):null}catch(n){throw new g.TranslatableError("errors.sharedFormula.failedToFetch")}})}function IM(e,t,n){return qn(this,null,function*(){try{const o=(yield n.httpClient.get(`api/v1/formulas?datasource=${g.getDataSourceName(t)}&flat=true`,void 0,{skipTrackingParam:!0})).find(i=>i.title===e);return o?Md(o):null}catch(r){throw new g.TranslatableError("errors.sharedFormula.failedToFetch")}})}const Iee=g.withTracking("useGetSharedFormula")(jM);function jM(e){const{name:t,dataSource:n,oid:r}=e;if(!(r||t&&n))throw new g.TranslatableError("errors.sharedFormula.identifierExpected");const o=Ti(e,["oid","name","dataSource"]),i=$o(e,o),[a,s]=H.useReducer(nr,{isLoading:!0,isError:!1,isSuccess:!1,status:"loading",error:void 0,data:void 0}),{isInitialized:c,app:l}=g.useSisenseContext();return H.useEffect(()=>{if(c||s({type:"error",error:new g.TranslatableError("errors.sisenseContextNotFound")}),i(l)){s({type:"loading"});let u=Promise.resolve(null);r?u=PM(r,l):t&&n&&(u=IM(t,n,l)),u.then(d=>{s({type:"success",data:d})}).catch(d=>{s({type:"error",error:d})})}},[l,c,t,n,r,i]),a.data&&o?vb(nr(a,{type:"loading"})):vb(a)}function vb(e){const r=e,{data:t}=r,n=Rn(r,["data"]);return de(te({},n),{formula:t})}const jee=g.withTracking("useFetch")((e,t,n)=>{var a;const{app:r}=g.useSisenseContext(),o=r==null?void 0:r.httpClient,i=(a=n==null?void 0:n.enabled)!=null?a:!0;return g.useQuery({queryKey:["fetch",e,t,n==null?void 0:n.requestConfig],queryFn:()=>qn(exports,null,function*(){if(!o)throw new Error("HttpClient is not available");return o.call(o.url+e,t!=null?t:{},de(te({},n==null?void 0:n.requestConfig),{skipTrackingParam:!0}))}),enabled:i&&!!o})});exports.Chart=g.Chart;exports.ChartWidget=g.ChartWidget;exports.ContextMenu=g.ContextMenu;exports.DrilldownBreadcrumbs=g.DrilldownBreadcrumbs;exports.LoadingIndicator=g.LoadingIndicator;exports.Table=g.Table;exports.TableWidget=g.TableWidget;exports.ThemeProvider=g.ThemeProvider;exports.boxWhiskerProcessResult=g.boxWhiskerProcessResult;exports.executeQuery=g.executeQuery;exports.getDefaultThemeSettings=g.getDefaultThemeSettings;exports.getSortType=g.getSortType;exports.getThemeSettingsByOid=g.getThemeSettingsByOid;exports.isCategory=g.isCategory;exports.isMeasureColumn=g.isMeasureColumn;exports.isThemeOid=g.isThemeOid;exports.isValue=g.isValue;exports.trackHook=g.trackHook;exports.useThemeContext=g.useThemeContext;exports.AreaChart=wee;exports.AreaRangeChart=Mee;exports.AreamapChart=Aee;exports.BarChart=_ee;exports.BasicMemberFilterTile=eM;exports.BoxplotChart=Dee;exports.ClientApplication=SA;exports.ColumnChart=yee;exports.CriteriaFilterTile=TM;exports.CustomSisenseContextProvider=Nee;exports.CustomThemeProvider=Pee;exports.DashboardById=JX;exports.DashboardWidget=oee;exports.DateFilter=_M;exports.DateRangeFilterTile=CM;exports.DrilldownWidget=vee;exports.ExecuteQuery=iee;exports.ExecuteQueryByWidgetId=dee;exports.FiltersPanel=OM;exports.FiltersPanelTile=EM;exports.FunnelChart=Cee;exports.IndicatorChart=Tee;exports.LineChart=bee;exports.MemberFilterTile=nM;exports.PieChart=xee;exports.PivotTable=BA;exports.PolarChart=kee;exports.RelativeDateFilterTile=SM;exports.ScatterChart=See;exports.ScattermapChart=Ree;exports.SisenseContextProvider=gee;exports.SunburstChart=Oee;exports.TreemapChart=Eee;exports.createClientApplication=TA;exports.createDataOptionsFromPanels=FQ;exports.dataLoadStateReducer=nr;exports.executeQueryByWidgetId=MM;exports.fetchFormula=IM;exports.fetchFormulaByOid=PM;exports.getDashboardModel=OA;exports.getDashboardModels=DA;exports.getWidgetModel=jA;exports.processDrilldownSelections=NM;exports.queryStateReducer=xu;exports.translateToDashboardResponse=Kv;exports.translateToDashboardsResponse=Xv;exports.translateToFormulaResponse=vb;exports.useExecuteCsvQuery=aee;exports.useExecutePivotQuery=fQ;exports.useExecuteQuery=cK;exports.useExecuteQueryByWidgetId=lee;exports.useFetch=jee;exports.useGetDashboardModel=RA;exports.useGetDashboardModels=dQ;exports.useGetSharedFormula=Iee;exports.useGetSharedFormulaInternal=jM;exports.useGetWidgetModel=kJ;exports.useQueryCache=pee;
784
+ (function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('@charset "UTF-8";[class|=csdk],[class|=csdk]:before,[class|=csdk]:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#d5d5d5;font-family:inherit}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.csdk-absolute{position:absolute}.csdk-relative{position:relative}.csdk-left-2{left:.5rem}.csdk-right-0{right:0}.csdk-right-\\[-15px\\]{right:-15px}.csdk-right-\\[-5px\\]{right:-5px}.csdk-right-\\[0px\\]{right:0}.csdk-right-\\[4px\\]{right:4px}.csdk-top-1\\/2{top:50%}.csdk-top-\\[3px\\]{top:3px}.csdk-top-\\[7px\\]{top:7px}.csdk-z-\\[401\\]{z-index:401}.csdk-m-auto{margin:auto}.csdk-m-checkbox,.csdk-m-radio{margin:6px 10px 6px 6px}.csdk-mx-auto{margin-left:auto;margin-right:auto}.csdk-my-1{margin-top:.25rem;margin-bottom:.25rem}.csdk-my-2{margin-top:.5rem;margin-bottom:.5rem}.csdk-my-\\[2px\\]{margin-top:2px;margin-bottom:2px}.csdk-my-\\[5px\\]{margin-top:5px;margin-bottom:5px}.csdk-mb-1{margin-bottom:.25rem}.csdk-mb-\\[10px\\]{margin-bottom:10px}.csdk-mb-\\[3px\\]{margin-bottom:3px}.csdk-mb-\\[4px\\]{margin-bottom:4px}.csdk-mb-px{margin-bottom:1px}.csdk-ml-1{margin-left:.25rem}.csdk-ml-1\\.5{margin-left:.375rem}.csdk-ml-2{margin-left:.5rem}.csdk-ml-\\[4px\\]{margin-left:4px}.csdk-ml-\\[5px\\]{margin-left:5px}.csdk-ml-\\[6px\\]{margin-left:6px}.csdk-ml-\\[7px\\]{margin-left:7px}.csdk-ml-auto{margin-left:auto}.csdk-mr-2{margin-right:.5rem}.csdk-mr-\\[5px\\]{margin-right:5px}.csdk-mr-\\[7px\\]{margin-right:7px}.csdk-mt-2{margin-top:.5rem}.csdk-mt-3{margin-top:.75rem}.csdk-mt-\\[6px\\]{margin-top:6px}.csdk-box-border{box-sizing:border-box}.csdk-line-clamp-5{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:5}.csdk-flex{display:flex}.csdk-grid{display:grid}.csdk-h-5{height:1.25rem}.csdk-h-6{height:1.5rem}.csdk-h-\\[10px\\]{height:10px}.csdk-h-\\[18px\\]{height:18px}.csdk-h-\\[20px\\]{height:20px}.csdk-h-\\[245px\\]{height:245px}.csdk-h-button{height:28px}.csdk-h-checkbox{height:12px}.csdk-h-full{height:100%}.csdk-h-radio{height:12px}.csdk-h-screen{height:100vh}.csdk-max-h-32{max-height:8rem}.csdk-max-h-\\[150px\\]{max-height:150px}.csdk-min-h-\\[20px\\]{min-height:20px}.csdk-min-h-\\[26px\\]{min-height:26px}.csdk-min-h-\\[32px\\]{min-height:32px}.csdk-w-5{width:1.25rem}.csdk-w-\\[10px\\]{width:10px}.csdk-w-\\[152px\\]{width:152px}.csdk-w-\\[18px\\]{width:18px}.csdk-w-\\[28px\\]{width:28px}.csdk-w-\\[300px\\]{width:300px}.csdk-w-\\[60px\\]{width:60px}.csdk-w-checkbox{width:12px}.csdk-w-fit{width:-moz-fit-content;width:fit-content}.csdk-w-full{width:100%}.csdk-w-max{width:-moz-max-content;width:max-content}.csdk-w-min{width:-moz-min-content;width:min-content}.csdk-w-radio{width:12px}.csdk-min-w-\\[216px\\]{min-width:216px}.csdk-min-w-fit{min-width:-moz-fit-content;min-width:fit-content}.csdk-max-w-xs{max-width:20rem}.-csdk-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-translate-x-1\\/2{--tw-translate-x: 50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-csdk-rotate-90{--tw-rotate: -90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-scale-x-\\[-1\\]{--tw-scale-x: -1;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.csdk-transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes csdk-spin{to{transform:rotate(360deg)}}.csdk-animate-spin{animation:csdk-spin 1s linear infinite}.csdk-cursor-pointer{cursor:pointer}.csdk-select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.csdk-grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.csdk-flex-row{flex-direction:row}.csdk-flex-col{flex-direction:column}.csdk-flex-wrap{flex-wrap:wrap}.csdk-items-center{align-items:center}.csdk-justify-end{justify-content:flex-end}.csdk-justify-center{justify-content:center}.csdk-justify-between{justify-content:space-between}.csdk-justify-evenly{justify-content:space-evenly}.csdk-gap-1{gap:.25rem}.csdk-gap-2{gap:.5rem}.csdk-gap-\\[5px\\]{gap:5px}.csdk-gap-x-1{-moz-column-gap:.25rem;column-gap:.25rem}.csdk-gap-x-2{-moz-column-gap:.5rem;column-gap:.5rem}.csdk-gap-y-0{row-gap:0px}.csdk-gap-y-0\\.5{row-gap:.125rem}.csdk-gap-y-4{row-gap:1rem}.csdk-self-start{align-self:flex-start}.csdk-self-center{align-self:center}.csdk-overflow-auto{overflow:auto}.csdk-overflow-hidden{overflow:hidden}.\\!csdk-overflow-visible{overflow:visible!important}.csdk-text-ellipsis{text-overflow:ellipsis}.csdk-whitespace-nowrap{white-space:nowrap}.csdk-whitespace-pre-wrap{white-space:pre-wrap}.csdk-rounded{border-radius:.25rem}.csdk-rounded-\\[4px\\]{border-radius:4px}.csdk-rounded-full{border-radius:9999px}.csdk-rounded-md{border-radius:.375rem}.csdk-rounded-pill{border-radius:4px}.csdk-border{border-width:1px}.csdk-border-0{border-width:0px}.csdk-border-input{border-width:1px}.csdk-border-b{border-bottom-width:1px}.csdk-border-l{border-left-width:1px}.csdk-border-l-\\[70px\\]{border-left-width:70px}.csdk-border-r-\\[70px\\]{border-right-width:70px}.csdk-border-t{border-top-width:1px}.csdk-border-t-\\[13px\\]{border-top-width:13px}.csdk-border-solid{border-style:solid}.csdk-border-none{border-style:none}.csdk-border-UI-default{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.csdk-border-\\[\\#dadada\\]{--tw-border-opacity: 1;border-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-border-\\[\\#e4e4e4\\]{--tw-border-opacity: 1;border-color:rgb(228 228 228 / var(--tw-border-opacity))}.csdk-border-transparent{border-color:transparent}.csdk-border-b-\\[\\#dadada\\]{--tw-border-opacity: 1;border-bottom-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-border-l-\\[transparent\\]{border-left-color:transparent}.csdk-border-r-\\[transparent\\]{border-right-color:transparent}.csdk-border-t-\\[\\#dadada\\]{--tw-border-opacity: 1;border-top-color:rgb(218 218 218 / var(--tw-border-opacity))}.csdk-bg-\\[\\#f4f4f8\\]{--tw-bg-opacity: 1;background-color:rgb(244 244 248 / var(--tw-bg-opacity))}.csdk-bg-background-priority{background-color:#f4f4f8}.csdk-bg-primary-primary{background-color:#ffcb05}.csdk-bg-transparent{background-color:transparent}.csdk-bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.csdk-p-1{padding:.25rem}.csdk-p-1\\.5{padding:.375rem}.csdk-p-3{padding:.75rem}.csdk-p-\\[10px\\]{padding:10px}.csdk-p-\\[20px\\]{padding:20px}.csdk-p-\\[4px\\]{padding:4px}.csdk-p-button{padding:4px 24px}.csdk-p-px{padding:1px}.csdk-px-1{padding-left:.25rem;padding-right:.25rem}.csdk-px-2{padding-left:.5rem;padding-right:.5rem}.csdk-px-4{padding-left:1rem;padding-right:1rem}.csdk-px-\\[12px\\]{padding-left:12px;padding-right:12px}.csdk-px-\\[20px\\]{padding-left:20px;padding-right:20px}.csdk-px-\\[40px\\]{padding-left:40px;padding-right:40px}.csdk-px-\\[8px\\]{padding-left:8px;padding-right:8px}.csdk-py-\\[14\\.5px\\]{padding-top:14.5px;padding-bottom:14.5px}.csdk-py-\\[30px\\]{padding-top:30px;padding-bottom:30px}.csdk-py-\\[3px\\]{padding-top:3px;padding-bottom:3px}.csdk-py-\\[5px\\]{padding-top:5px;padding-bottom:5px}.csdk-py-\\[6px\\]{padding-top:6px;padding-bottom:6px}.csdk-py-\\[7px\\]{padding-top:7px;padding-bottom:7px}.csdk-pb-\\[0px\\]{padding-bottom:0}.csdk-pl-1{padding-left:.25rem}.csdk-pl-2{padding-left:.5rem}.csdk-pl-2\\.5{padding-left:.625rem}.csdk-pl-3{padding-left:.75rem}.csdk-pr-10{padding-right:2.5rem}.csdk-pt-48{padding-top:12rem}.csdk-text-left{text-align:left}.csdk-text-center{text-align:center}.csdk-text-\\[13px\\]{font-size:13px}.csdk-text-ai-lg{font-size:18px;line-height:22px}.csdk-text-ai-sm{font-size:13px;line-height:18px}.csdk-text-ai-xs{font-size:11px;line-height:18px}.csdk-text-pill{font-size:13px}.csdk-text-xs{font-size:.75rem;line-height:1rem}.csdk-font-normal{font-weight:400}.csdk-leading-4{line-height:1rem}.csdk-leading-\\[16px\\]{line-height:16px}.csdk-leading-\\[18px\\]{line-height:18px}.csdk-leading-\\[26px\\]{line-height:26px}.csdk-leading-none{line-height:1}.csdk-tracking-\\[0\\.3px\\]{letter-spacing:.3px}.csdk-text-UI-default{--tw-text-opacity: 1;color:rgb(110 115 125 / var(--tw-text-opacity))}.csdk-text-semantic-error{color:#e74727}.csdk-text-text-active{color:#262e3d}.csdk-text-text-content{color:#262e3dcc}.csdk-text-text-link{color:#36a3d9}.csdk-text-text-linkButton{--tw-text-opacity: 1;color:rgb(30 175 243 / var(--tw-text-opacity))}.csdk-accent-UI-default{accent-color:#6e737d}.csdk-opacity-0{opacity:0}.csdk-opacity-100{opacity:1}.csdk-opacity-50{opacity:.5}.csdk-opacity-80{opacity:.8}.csdk-shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.csdk-shadow-gray-500{--tw-shadow-color: #6b7280;--tw-shadow: var(--tw-shadow-colored)}.csdk-outline-0{outline-width:0px}.csdk-transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,-webkit-backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter,-webkit-backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.csdk-delay-150{transition-delay:.15s}.csdk-duration-500{transition-duration:.5s}.invalid\\:csdk-border-input:invalid{border-width:1px}.invalid\\:csdk-border-solid:invalid{border-style:solid}.invalid\\:csdk-border-semantic-error:invalid{border-color:#e74727}.hover\\:csdk-border-2:hover{border-width:2px}.hover\\:csdk-bg-interaction-primaryHovered:hover{background-color:#f2b900}.hover\\:csdk-bg-row-hover:hover{background-color:#e0e0e04d}.focus\\:csdk-border-input:focus{border-width:1px}.focus\\:csdk-border-solid:focus{border-style:solid}.focus\\:csdk-border-UI-default:focus{--tw-border-opacity: 1;border-color:rgb(110 115 125 / var(--tw-border-opacity))}.disabled\\:csdk-cursor-not-allowed:disabled{cursor:not-allowed}.disabled\\:csdk-opacity-30:disabled{opacity:.3}._container_16u5e_1{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100%;padding:0 20px;text-align:center;margin:15px}._container_16u5e_1 ._card_16u5e_11{position:relative;padding:10px;box-shadow:0 2px 4px #0000001a;border-radius:4px;z-index:1;width:100%}._container_16u5e_1 ._text_16u5e_19{font-size:13px;text-align:center;font-weight:700}.highcharts-series.highcharts-area-series.area-series--without-pointer-events .highcharts-area{pointer-events:none}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::-moz-selection{background:transparent}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}.csdk-map-container .leaflet-interactive{outline:none}.csdk-scattermap-tooltip-row{display:flex;justify-content:space-between}.csdk-treemap-tooltip-wrapper{min-width:210px;color:#acacac;font-size:14px;line-height:16px;background:#fff;border-radius:10px;overflow:hidden;margin-right:-1px;padding-bottom:10px}.csdk-treemap-tooltip-level{display:flex;align-items:center;position:relative;padding:8px;font-size:14px;border-bottom:1px solid #ccc}.csdk-treemap-tooltip-level span{padding:0 2px}.csdk-treemap-tooltip-value{padding:10px 10px 0;font-size:12px;line-height:16px}.highcharts-sunburst-series.highcharts-legend-item{pointer-events:none!important}.csdk-boxplot-tooltip-row{display:flex;justify-content:space-between}.csdk-boxplot-tooltip-row>*{margin-right:10px}.csdk-boxplot-tooltip-row>*:last-child{margin-right:0}._alert_box_10ttx_1{position:absolute;display:flex;justify-content:center;z-index:1;margin-top:1%}._alert_box_10ttx_1 ._content_10ttx_8{background-color:#616161;padding:5px;border-radius:3px;text-align:center}._alert_box_10ttx_1 ._content_10ttx_8 ._alert_10ttx_1{color:#fff;margin:0 8px;line-height:1;font-size:12px}._wrapper_g0ngm_1{width:100%;height:100%;position:relative}._title_g0ngm_7{font-size:18px;color:#9ea2ab;letter-spacing:normal;text-align:center;position:absolute;width:100%;top:11%}._image_g0ngm_18{width:66.6%;height:100%;margin:0 auto;display:block}.fixedDataTableCellGroupLayout_cellGroup{backface-visibility:hidden;left:0;overflow:hidden;position:absolute;top:0;white-space:nowrap}.fixedDataTable_isRTL .fixedDataTableCellGroupLayout_cellGroup{right:0;left:auto}.fixedDataTableCellGroupLayout_cellGroup>.public_fixedDataTableCell_main{display:inline-block;vertical-align:top;white-space:normal}.fixedDataTableCellGroupLayout_cellGroupWrapper{position:absolute;top:0}.fixedDataTableCellLayout_main{border-right-style:solid;border-right-width:1px;border-width:0 1px 0 0;box-sizing:border-box;display:block;overflow:hidden;position:absolute;white-space:normal}.fixedDataTable_isRTL .fixedDataTableCellLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableCellLayout_lastChild{border-width:0 1px 1px 0}.fixedDataTableCellLayout_alignRight{text-align:right}.fixedDataTableCellLayout_alignCenter{text-align:center}.fixedDataTableCellLayout_wrap{display:table-cell;vertical-align:middle;box-sizing:border-box}.fixedDataTableCellLayout_wrap1{display:table}.fixedDataTableCellLayout_wrap2{display:table-row}.fixedDataTableCellLayout_wrap3{display:table-cell;vertical-align:middle}.fixedDataTableCellLayout_columnResizerContainer{position:absolute;right:0;width:6px;z-index:1}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerContainer{left:0;right:auto}.fixedDataTableCellLayout_columnResizerContainer:hover{cursor:ew-resize}.fixedDataTableCellLayout_columnResizerContainer:hover .fixedDataTableCellLayout_columnResizerKnob{visibility:visible}.fixedDataTableCellLayout_columnResizerKnob{position:absolute;right:0;visibility:hidden;width:4px}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnResizerKnob{left:0;right:auto}.fixedDataTableColumnResizerLineLayout_mouseArea{cursor:ew-resize;position:absolute;right:-5px;width:12px}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_mouseArea{right:auto;left:-5px}.fixedDataTableColumnResizerLineLayout_main{border-right-style:solid;border-right-width:1px;box-sizing:border-box;position:absolute;z-index:10;pointer-events:none}.fixedDataTable_isRTL .fixedDataTableColumnResizerLineLayout_main{border-right-width:0;border-left-style:solid;border-left-width:1px}.fixedDataTableColumnResizerLineLayout_hiddenElem{display:none!important}.fixedDataTableLayout_main{border-style:solid;border-width:1px;box-sizing:border-box;overflow:hidden;position:relative}.fixedDataTableLayout_header,.fixedDataTableLayout_hasBottomBorder{border-bottom-style:solid;border-bottom-width:1px}.fixedDataTableLayout_footer .public_fixedDataTableCell_main{border-top-style:solid;border-top-width:1px}.fixedDataTableLayout_topShadow,.fixedDataTableLayout_bottomShadow{height:4px;left:0;position:absolute;right:0;z-index:1}.fixedDataTableLayout_bottomShadow{margin-top:-4px}.fixedDataTableLayout_rowsContainer{overflow:hidden;position:relative}.fixedDataTableRowLayout_main{box-sizing:border-box;overflow:hidden;position:absolute;top:0}.fixedDataTableRowLayout_body{left:0;right:0;position:absolute;top:0}.fixedDataTableRowLayout_rowExpanded{box-sizing:border-box;left:0;position:absolute}.fixedDataTableRowLayout_fixedColumnsDivider{backface-visibility:hidden;border-left-style:solid;border-left-width:1px;left:0;position:absolute;top:0;width:0}.fixedDataTable_isRTL .fixedDataTableRowLayout_fixedColumnsDivider{border-left-width:0;border-right-style:solid;border-right-width:1px}.fixedDataTableRowLayout_columnsShadow{position:absolute;width:4px}.fixedDataTableRowLayout_columnsRightShadow{right:1px}.fixedDataTable_isRTL .fixedDataTableRowLayout_columnsRightShadow{left:1px;right:auto}.fixedDataTableRowLayout_rowWrapper{position:absolute;top:0}.ScrollbarLayout_main{box-sizing:border-box;outline:none;overflow:hidden;position:absolute;-webkit-user-select:none;-moz-user-select:none;user-select:none}.ScrollbarLayout_mainVertical{bottom:0;right:0;top:0;width:15px}.ScrollbarLayout_mainHorizontal{height:15px;left:0;transition-property:background-color height}.ScrollbarLayout_mainHorizontal.public_Scrollbar_mainActive,.ScrollbarLayout_mainHorizontal:hover{height:17px}.ScrollbarLayout_face{left:0;overflow:hidden;position:absolute;z-index:1;transition-duration:.25s;transition-timing-function:ease;transition-property:width}.ScrollbarLayout_face:after{border-radius:6px;content:"";display:block;position:absolute;transition:background-color .25s ease}.ScrollbarLayout_faceHorizontal{bottom:0;left:0;top:0}.ScrollbarLayout_faceHorizontal:after{bottom:4px;left:0;top:4px;width:100%}.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal,.fixedDataTable_isRTL .ScrollbarLayout_faceHorizontal:after{right:0;left:auto}.ScrollbarLayout_faceHorizontal.public_Scrollbar_faceActive:after,.ScrollbarLayout_main:hover .ScrollbarLayout_faceHorizontal:after{bottom:2px}.ScrollbarLayout_faceVertical{left:0;right:0;top:0}.ScrollbarLayout_faceVertical:after{height:100%;left:4px;right:4px;top:0}.ScrollbarLayout_main:hover .ScrollbarLayout_faceVertical:after,.ScrollbarLayout_faceVertical.public_Scrollbar_faceActive:after{left:2px;right:2px}.public_fixedDataTable_main,.public_fixedDataTable_header,.public_fixedDataTable_hasBottomBorder{border-color:#d3d3d3}.public_fixedDataTable_header .public_fixedDataTableCell_main{font-weight:700}.public_fixedDataTable_header,.public_fixedDataTable_scrollbarSpacer,.public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:#f6f7f8;background-image:linear-gradient(#fff,#efefef)}.public_fixedDataTable_scrollbarSpacer{position:absolute;z-index:99;top:0}.public_fixedDataTable_footer .public_fixedDataTableCell_main{background-color:#f6f7f8;border-color:#d3d3d3}.public_fixedDataTable_topShadow{background-image:linear-gradient(180deg,#0000001a,#0000)}.public_fixedDataTable_bottomShadow{background-image:linear-gradient(0deg,#0000001a,#0000)}.public_fixedDataTable_horizontalScrollbar .public_Scrollbar_mainHorizontal{background-color:#fff}.public_fixedDataTableCell_main{background-color:#fff;border-color:#d3d3d3}.public_fixedDataTableCell_highlighted{background-color:#f4f4f4}.public_fixedDataTableCell_cellContent{padding:8px}.public_fixedDataTableCell_columnResizerKnob{background-color:#0284ff}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:12px}.public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-left:20px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap1 .public_fixedDataTableCell_cellContent{margin-left:auto;margin-right:12px}.fixedDataTable_isRTL .public_fixedDataTableCell_hasReorderHandle .public_fixedDataTableCell_wrap.public_fixedDataTableCell_cellContent{padding-right:20px}.fixedDataTableCellLayout_columnReorderContainer{border-color:#0284ff;background-color:#0000001a;width:12px;margin-right:-12px;float:left;cursor:move}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer{margin-right:auto;margin-left:-12px;float:right}.fixedDataTableCellLayout_columnReorderContainer:after{content:"::";position:absolute;top:50%;left:1px;transform:translateY(-50%)}.fixedDataTable_isRTL .fixedDataTableCellLayout_columnReorderContainer:after{left:auto;right:1px}.public_fixedDataTableColumnResizerLine_main{border-color:#0284ff}.public_fixedDataTableRow_main{background-color:#fff}.public_fixedDataTableRow_highlighted,.public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main{background-color:#f6f7f8}.public_fixedDataTableRow_fixedColumnsDivider{border-color:#d3d3d3}.public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(90deg,#0000001a,#0000)}.fixedDataTable_isRTL .public_fixedDataTableRow_columnsShadow{background-image:linear-gradient(270deg,#0000001a,#0000)}.public_fixedDataTableRow_columnsRightShadow{transform:rotate(180deg)}.public_Scrollbar_main.public_Scrollbar_mainActive,.public_Scrollbar_main{background-color:#fff;border-left:1px solid #d3d3d3}.fixedDataTable_isRTL .public_Scrollbar_main.public_Scrollbar_mainActive,.fixedDataTable_isRTL .public_Scrollbar_main{border-right:1px solid #d3d3d3;border-left-width:0}.public_Scrollbar_mainOpaque,.public_Scrollbar_mainOpaque.public_Scrollbar_mainActive,.public_Scrollbar_mainOpaque:hover{background-color:#fff}.public_Scrollbar_face:after{background-color:#c2c2c2}.public_Scrollbar_main:hover .public_Scrollbar_face:after,.public_Scrollbar_mainActive .public_Scrollbar_face:after,.public_Scrollbar_faceActive:after{background-color:#7d7d7d}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer,._tableWrapper_1ode4_16 .public_fixedDataTable_header .public_fixedDataTableCell_main{background-color:transparent;background-image:none;border-bottom:1px solid #edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{margin-left:3px}._tableWrapper_1ode4_16 .public_fixedDataTable_main,._tableWrapper_1ode4_16 .fixedDataTableLayout_main{border:none}._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted,._tableWrapper_1ode4_16 .public_fixedDataTableRow_highlighted .public_fixedDataTableCell_main,._tableWrapper_1ode4_16 .public_fixedDataTableRow_main{background-color:transparent}._tableWrapper_1ode4_16 .public_fixedDataTableCell_main{background-color:transparent;border-color:#edeef1}._tableWrapper_1ode4_16 .public_fixedDataTable_header,._tableWrapper_1ode4_16 .public_fixedDataTable_hasBottomBorder,._tableWrapper_1ode4_16 .public_fixedDataTable_scrollbarSpacer{border-bottom:none}._tableWrapper_1ode4_16 .public_fixedDataTable_header .fixedDataTableCellGroupLayout_cellGroup{border-top:1px solid #edeef1;border-bottom:1px solid #edeef1;box-sizing:border-box}._tableWrapper_1ode4_16 .public_Scrollbar_main{border-left:none;background-color:transparent}._tableWrapper_1ode4_16 .fixedDataTableRowLayout_rowWrapper{border-left:1px solid #edeef1}._tableWrapper_1ode4_16 .public_Scrollbar_main.public_Scrollbar_mainOpaque{left:-1px}._tableWrapper_1ode4_16 .public_fixedDataTableCell_cellContent{padding:0 24px 0 12px}._tableWrapper_1ode4_16{height:100%;width:100%;box-sizing:border-box;-webkit-user-select:text;-moz-user-select:text;user-select:text}._table_1ode4_16{background:transparent;font-size:13px;border:none}._tableHeader_1ode4_78{color:#5c6372;background-color:transparent;margin:0;border:none;width:100%;overflow:hidden;box-sizing:border-box}._tableCell_1ode4_88{color:#5c6372;background-color:transparent;border:none;border-right:1px solid #edeef1;border-bottom:1px solid #edeef1;overflow:hidden;width:100%;box-sizing:border-box}._tableCellContent_1ode4_99{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}._headerColor_1ode4_105,._rowColor_1ode4_109{background-color:#f9f9fb}._headerCell_2qf2w_16{display:flex;justify-content:left;align-items:center;margin-left:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:400;width:100%;cursor:pointer}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._headerCell_2qf2w_16:hover ._noSort_2qf2w_29._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;overflow:hidden}._icon_2qf2w_43{margin-right:10px;width:20px;box-sizing:border-box;display:inline-block}._numberIcon_2qf2w_50{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_2qf2w_54{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_2qf2w_58{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_2qf2w_62{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._sortIcon_2qf2w_66{position:absolute;right:0;width:24px;height:24px;background-repeat:no-repeat}._sortAscending_2qf2w_74._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyAxN2g3LjY2N2EuNDkuNDkgMCAwMS40NzkuNS40OS40OSAwIDAxLS40OC41SDQuMzE0YS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptNS43NS0zaC01Ljc1YS40OS40OSAwIDAwLS40NzkuNWMwIC4yNzYuMjE1LjUuNDguNWg1Ljc1YS40OS40OSAwIDAwLjQ3OC0uNS40OS40OSAwIDAwLS40NzktLjV6bS01Ljc1LTNoMy44MzNhLjQ5LjQ5IDAgMDEuNDguNS40OS40OSAwIDAxLS40OC41SDQuMzEzYS40OS40OSAwIDAxLS40NzktLjVjMC0uMjc2LjIxNS0uNS40OC0uNXptMC0zSDYuMjNhLjQ5LjQ5IDAgMDEuNDc5LjUuNDkuNDkgMCAwMS0uNDguNUg0LjMxNGEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjV6bTEwLjU0MiAwYS40OS40OSAwIDAwLS40OC41djQuNzkzbC0yLjA1Ny0yLjE0N2EuNDY1LjQ2NSAwIDAwLS42NzggMCAuNTE1LjUxNSAwIDAwMCAuNzA4bDIuODY2IDIuOTlhLjQ2OC40NjggMCAwMC42OTYgMGwyLjg2Ni0yLjk5YS41MTYuNTE2IDAgMDAwLS43MDguNDY1LjQ2NSAwIDAwLS42NzggMGwtMi4wNTYgMi4xNDZWOC41YS40OS40OSAwIDAwLS40OC0uNXoiIGZpbGw9IiM1QzYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._standard_2qf2w_29{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjMiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik00LjMxMyA3aDcuNjY3YS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTUuNzUgM2gtNS43NWEuNDkuNDkgMCAwMS0uNDc5LS41YzAtLjI3Ni4yMTUtLjUuNDgtLjVoNS43NWEuNDkuNDkgMCAwMS40NzguNS40OS40OSAwIDAxLS40NzkuNXptLTUuNzUgM2gzLjgzM2EuNDkuNDkgMCAwMC40OC0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxM2EuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTAgM0g2LjIzYS40OS40OSAwIDAwLjQ3OS0uNS40OS40OSAwIDAwLS40OC0uNUg0LjMxNGEuNDkuNDkgMCAwMC0uNDc5LjVjMCAuMjc2LjIxNS41LjQ4LjV6bTEwLjU0MiAwYS40OS40OSAwIDAxLS40OC0uNXYtNC43OTNsLTIuMDU3IDIuMTQ3YS40NjUuNDY1IDAgMDEtLjY3OCAwIC41MTUuNTE1IDAgMDEwLS43MDhsMi44NjYtMi45OWEuNDY4LjQ2OCAwIDAxLjY5NiAwbDIuODY2IDIuOTlhLjUxNi41MTYgMCAwMTAgLjcwOC40NjUuNDY1IDAgMDEtLjY3OCAwbC0yLjA1Ni0yLjE0NlYxNS41YS40OS40OSAwIDAxLS40OC41eiIgZmlsbD0iIzVDNjM3MiIvPjwvc3ZnPgo=)}._sortAscending_2qf2w_74._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K);transform:rotate(180deg)}._sortAscending_2qf2w_74._caret_2qf2w_33:hover{transform:rotate(0)}._sortDescending_2qf2w_78._caret_2qf2w_33{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTExLjk5OSAxMy44NGwzLjE3NS0yLjcxOWEuNS41IDAgMDEuNjUuNzZsLTMuNSAyLjk5OGEuNS41IDAgMDEtLjY1IDBsLTMuNS0yLjk5OGEuNS41IDAgMDEuNjUtLjc2TDEyIDEzLjg0MXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._sortDescending_2qf2w_78._caret_2qf2w_33:hover{transform:rotate(180deg)}._headerLabel_2qf2w_38{text-align:left;flex-grow:1}._headerLabel_2qf2w_38,._headerLabel_2qf2w_38 *{overflow:hidden;text-overflow:ellipsis}._icon_t30x8_1{width:24px;height:24px;margin-right:5px;box-sizing:border-box;display:inline-block;background-repeat:no-repeat;flex-grow:0}._numberIcon_t30x8_11{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3ptNC41IDRoLjc2NmwtLjU3MiAySDguNWEuNS41IDAgMCAwIDAgMWguOTA5bC0uMzkgMS4zNjNhLjUuNSAwIDAgMCAuOTYyLjI3NEwxMC40NDkgMTRoMS45NmwtLjM5IDEuMzYzYS41LjUgMCAwIDAgLjk2Mi4yNzRMMTMuNDQ5IDE0SDE0LjVhLjUuNSAwIDAgMCAwLTFoLS43NjZsLjU3Mi0ySDE1LjVhLjUuNSAwIDAgMCAwLTFoLS45MDlsLjM5LTEuMzYzYS41LjUgMCAwIDAtLjk2Mi0uMjc0TDEzLjU1MSAxMGgtMS45NmwuMzktMS4zNjNhLjUuNSAwIDAgMC0uOTYyLS4yNzRMMTAuNTUxIDEwSDkuNWEuNS41IDAgMCAwIDAgMXptMy43NjYgMGgtMS45NmwtLjU3MiAyaDEuOTZsLjU3Mi0yeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._dateIcon_t30x8_15{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTkgNVYzLjVhLjUuNSAwIDAgMSAxIDBWNWgzVjMuNWEuNS41IDAgMCAxIDEgMFY1aDNhMiAyIDAgMCAxIDIgMnYxMGEyIDIgMCAwIDEtMiAySDZhMiAyIDAgMCAxLTItMlY3YTIgMiAwIDAgMSAyLTJoM3ptMSAxaDN2LjVhLjUuNSAwIDAgMCAxIDBWNmgzYTEgMSAwIDAgMSAxIDF2MUg1VjdhMSAxIDAgMCAxIDEtMWgzdi41YS41LjUgMCAwIDAgMSAwVjZ6TTUgMTdWOWgxM3Y4YTEgMSAwIDAgMS0xIDFINmExIDEgMCAwIDEtMS0xem05LjUtNWgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxem0tNiAyaDZhLjUuNSAwIDAgMCAwLTFoLTZhLjUuNSAwIDAgMCAwIDF6bTYgMmgtNmEuNS41IDAgMCAxIDAtMWg2YS41LjUgMCAwIDEgMCAxeiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._textIcon_t30x8_19{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTYgNWgxMWEyIDIgMCAwIDEgMiAydjEwYTIgMiAwIDAgMS0yIDJINmEyIDIgMCAwIDEtMi0yVjdhMiAyIDAgMCAxIDItMnptMCAxYTEgMSAwIDAgMC0xIDF2MTBhMSAxIDAgMCAwIDEgMWgxMWExIDEgMCAwIDAgMS0xVjdhMSAxIDAgMCAwLTEtMUg2em04IDEwSDlhLjUuNSAwIDAgMSAwLTFoMlY5SDguNWEuNS41IDAgMCAwLS41LjV2MmEuNS41IDAgMCAxLTEgMHYtMkExLjUgMS41IDAgMCAxIDguNSA4aDZBMS41IDEuNSAwIDAgMSAxNiA5LjV2MmEuNS41IDAgMCAxLTEgMHYtMmEuNS41IDAgMCAwLS41LS41SDEydjZoMmEuNS41IDAgMCAxIDAgMXoiIGZpbGw9IiM1QjYzNzIiLz48L3N2Zz4K)}._booleanIcon_t30x8_23{background-image:url(data:image/svg+xml;charset=utf8;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTE3IDVINmEyIDIgMCAwIDAtMiAydjEwYTIgMiAwIDAgMCAyIDJoMTFhMiAyIDAgMCAwIDItMlY3YTIgMiAwIDAgMC0yLTJ6TTUgN2ExIDEgMCAwIDEgMS0xaDExYTEgMSAwIDAgMSAxIDF2MTBhMSAxIDAgMCAxLTEgMUg2YTEgMSAwIDAgMS0xLTFWN3oiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNOC44IDE1LjM5NGEuNS41IDAgMCAxLS4xLS43TDEzLjQyOCA4LjRhLjUuNSAwIDEgMSAuOC42TDkuNSAxNS4yOTRhLjUuNSAwIDAgMS0uNy4xeiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjYiIHk9IjgiIHdpZHRoPSI1IiBoZWlnaHQ9IjEiIHJ4PSIuNSIgZmlsbD0iIzVCNjM3MiIvPjxwYXRoIGQ9Ik04LjUgOGEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjxyZWN0IHg9IjEzIiB5PSIxMiIgd2lkdGg9IjQiIGhlaWdodD0iMSIgcng9Ii41IiBmaWxsPSIjNUI2MzcyIi8+PHJlY3QgeD0iMTMiIHk9IjE0IiB3aWR0aD0iMyIgaGVpZ2h0PSIxIiByeD0iLjUiIGZpbGw9IiM1QjYzNzIiLz48cGF0aCBkPSJNMTMuNSAxMmEuNS41IDAgMCAxIC41LjV2NGEuNS41IDAgMCAxLTEgMHYtNGEuNS41IDAgMCAxIC41LS41eiIgZmlsbD0iIzVCNjM3MiIvPjwvc3ZnPgo=)}._component_1rw9b_1{flex-grow:1;font-family:Open Sans}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow,.react-datepicker__navigation-icon:before{border-color:#ccc;border-style:solid;border-width:3px 3px 0 0;content:"";display:block;height:9px;position:absolute;top:6px;width:9px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{margin-left:-4px;position:absolute;width:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{box-sizing:content-box;position:absolute;border:8px solid transparent;height:0;width:1px;content:"";z-index:-1;border-width:8px;left:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle{top:0;margin-top:-8px}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{border-top:none;border-bottom-color:#f0f0f0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:after{top:0}.react-datepicker-popper[data-placement^=bottom] .react-datepicker__triangle:before{top:-1px;border-bottom-color:#aeaeae}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle{bottom:0;margin-bottom:-8px}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before,.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{border-bottom:none;border-top-color:#fff}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:after{bottom:0}.react-datepicker-popper[data-placement^=top] .react-datepicker__triangle:before{bottom:-1px;border-top-color:#aeaeae}.react-datepicker-wrapper{display:inline-block;padding:0;border:0}.react-datepicker{font-family:Helvetica Neue,helvetica,arial,sans-serif;font-size:.8rem;background-color:#fff;color:#000;border:1px solid #aeaeae;border-radius:.3rem;display:inline-block;position:relative}.react-datepicker--time-only .react-datepicker__triangle{left:35px}.react-datepicker--time-only .react-datepicker__time-container{border-left:0}.react-datepicker--time-only .react-datepicker__time,.react-datepicker--time-only .react-datepicker__time-box{border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__triangle{position:absolute;left:50px}.react-datepicker-popper{z-index:1}.react-datepicker-popper[data-placement^=bottom]{padding-top:10px}.react-datepicker-popper[data-placement=bottom-end] .react-datepicker__triangle,.react-datepicker-popper[data-placement=top-end] .react-datepicker__triangle{left:auto;right:50px}.react-datepicker-popper[data-placement^=top]{padding-bottom:10px}.react-datepicker-popper[data-placement^=right]{padding-left:8px}.react-datepicker-popper[data-placement^=right] .react-datepicker__triangle{left:auto;right:42px}.react-datepicker-popper[data-placement^=left]{padding-right:8px}.react-datepicker-popper[data-placement^=left] .react-datepicker__triangle{left:42px;right:auto}.react-datepicker__header{text-align:center;background-color:#f0f0f0;border-bottom:1px solid #aeaeae;border-top-left-radius:.3rem;padding:8px 0;position:relative}.react-datepicker__header--time{padding-bottom:8px;padding-left:5px;padding-right:5px}.react-datepicker__header--time:not(.react-datepicker__header--time--only){border-top-left-radius:0}.react-datepicker__header:not(.react-datepicker__header--has-time-select){border-top-right-radius:.3rem}.react-datepicker__year-dropdown-container--select,.react-datepicker__month-dropdown-container--select,.react-datepicker__month-year-dropdown-container--select,.react-datepicker__year-dropdown-container--scroll,.react-datepicker__month-dropdown-container--scroll,.react-datepicker__month-year-dropdown-container--scroll{display:inline-block;margin:0 15px}.react-datepicker__current-month,.react-datepicker-time__header,.react-datepicker-year-header{margin-top:0;color:#000;font-weight:700;font-size:.944rem}.react-datepicker-time__header{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.react-datepicker__navigation{align-items:center;background:none;display:flex;justify-content:center;text-align:center;cursor:pointer;position:absolute;top:2px;padding:0;border:none;z-index:1;height:32px;width:32px;text-indent:-999em;overflow:hidden}.react-datepicker__navigation--previous{left:2px}.react-datepicker__navigation--next{right:2px}.react-datepicker__navigation--next--with-time:not(.react-datepicker__navigation--next--with-today-button){right:85px}.react-datepicker__navigation--years{position:relative;top:0;display:block;margin-left:auto;margin-right:auto}.react-datepicker__navigation--years-previous{top:4px}.react-datepicker__navigation--years-upcoming{top:-4px}.react-datepicker__navigation:hover *:before{border-color:#a6a6a6}.react-datepicker__navigation-icon{position:relative;top:-1px;font-size:20px;width:0}.react-datepicker__navigation-icon--next{left:-2px}.react-datepicker__navigation-icon--next:before{transform:rotate(45deg);left:-7px}.react-datepicker__navigation-icon--previous{right:-2px}.react-datepicker__navigation-icon--previous:before{transform:rotate(225deg);right:-7px}.react-datepicker__month-container{float:left}.react-datepicker__year{margin:.4rem;text-align:center}.react-datepicker__year-wrapper{display:flex;flex-wrap:wrap;max-width:180px}.react-datepicker__year .react-datepicker__year-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__month{margin:.4rem;text-align:center}.react-datepicker__month .react-datepicker__month-text,.react-datepicker__month .react-datepicker__quarter-text{display:inline-block;width:4rem;margin:2px}.react-datepicker__input-time-container{clear:both;width:100%;float:left;margin:5px 0 10px 15px;text-align:left}.react-datepicker__input-time-container .react-datepicker-time__caption,.react-datepicker__input-time-container .react-datepicker-time__input-container{display:inline-block}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input{display:inline-block;margin-left:10px}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input{width:auto}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-inner-spin-button,.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__input input[type=time]{-moz-appearance:textfield}.react-datepicker__input-time-container .react-datepicker-time__input-container .react-datepicker-time__delimiter{margin-left:5px;display:inline-block}.react-datepicker__time-container{float:right;border-left:1px solid #aeaeae;width:85px}.react-datepicker__time-container--with-today-button{display:inline;border:1px solid #aeaeae;border-radius:.3rem;position:absolute;right:-87px;top:0}.react-datepicker__time-container .react-datepicker__time{position:relative;background:#fff;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box{width:85px;overflow-x:hidden;margin:0 auto;text-align:center;border-bottom-right-radius:.3rem}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list{list-style:none;margin:0;height:calc(195px + .85rem);overflow-y:scroll;padding-right:0;padding-left:0;width:100%;box-sizing:content-box}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item{height:30px;padding:5px 10px;white-space:nowrap}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item:hover{cursor:pointer;background-color:#f0f0f0}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected{background-color:#216ba5;color:#fff;font-weight:700}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--selected:hover{background-color:#216ba5}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled{color:#ccc}.react-datepicker__time-container .react-datepicker__time .react-datepicker__time-box ul.react-datepicker__time-list li.react-datepicker__time-list-item--disabled:hover{cursor:default;background-color:transparent}.react-datepicker__week-number{color:#ccc;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__week-number.react-datepicker__week-number--clickable{cursor:pointer}.react-datepicker__week-number.react-datepicker__week-number--clickable:not(.react-datepicker__week-number--selected,.react-datepicker__week-number--keyboard-selected):hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__week-number--selected{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__week-number--selected:hover{background-color:#1d5d90}.react-datepicker__week-number--keyboard-selected{border-radius:.3rem;background-color:#2a87d0;color:#fff}.react-datepicker__week-number--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day-names{white-space:nowrap;margin-bottom:-8px}.react-datepicker__week{white-space:nowrap}.react-datepicker__day-name,.react-datepicker__day,.react-datepicker__time-name{color:#000;display:inline-block;width:1.7rem;line-height:1.7rem;text-align:center;margin:.166rem}.react-datepicker__day,.react-datepicker__month-text,.react-datepicker__quarter-text,.react-datepicker__year-text{cursor:pointer}.react-datepicker__day:hover,.react-datepicker__month-text:hover,.react-datepicker__quarter-text:hover,.react-datepicker__year-text:hover{border-radius:.3rem;background-color:#f0f0f0}.react-datepicker__day--today,.react-datepicker__month-text--today,.react-datepicker__quarter-text--today,.react-datepicker__year-text--today{font-weight:700}.react-datepicker__day--highlighted,.react-datepicker__month-text--highlighted,.react-datepicker__quarter-text--highlighted,.react-datepicker__year-text--highlighted{border-radius:.3rem;background-color:#3dcc4a;color:#fff}.react-datepicker__day--highlighted:hover,.react-datepicker__month-text--highlighted:hover,.react-datepicker__quarter-text--highlighted:hover,.react-datepicker__year-text--highlighted:hover{background-color:#32be3f}.react-datepicker__day--highlighted-custom-1,.react-datepicker__month-text--highlighted-custom-1,.react-datepicker__quarter-text--highlighted-custom-1,.react-datepicker__year-text--highlighted-custom-1{color:#f0f}.react-datepicker__day--highlighted-custom-2,.react-datepicker__month-text--highlighted-custom-2,.react-datepicker__quarter-text--highlighted-custom-2,.react-datepicker__year-text--highlighted-custom-2{color:green}.react-datepicker__day--holidays,.react-datepicker__month-text--holidays,.react-datepicker__quarter-text--holidays,.react-datepicker__year-text--holidays{position:relative;border-radius:.3rem;background-color:#ff6803;color:#fff}.react-datepicker__day--holidays .holiday-overlay,.react-datepicker__month-text--holidays .holiday-overlay,.react-datepicker__quarter-text--holidays .holiday-overlay,.react-datepicker__year-text--holidays .holiday-overlay{position:absolute;bottom:100%;left:50%;transform:translate(-50%);background-color:#333;color:#fff;padding:4px;border-radius:4px;white-space:nowrap;visibility:hidden;opacity:0;transition:visibility 0s,opacity .3s ease-in-out}.react-datepicker__day--holidays:hover,.react-datepicker__month-text--holidays:hover,.react-datepicker__quarter-text--holidays:hover,.react-datepicker__year-text--holidays:hover{background-color:#cf5300}.react-datepicker__day--holidays:hover .holiday-overlay,.react-datepicker__month-text--holidays:hover .holiday-overlay,.react-datepicker__quarter-text--holidays:hover .holiday-overlay,.react-datepicker__year-text--holidays:hover .holiday-overlay{visibility:visible;opacity:1}.react-datepicker__day--selected,.react-datepicker__day--in-selecting-range,.react-datepicker__day--in-range,.react-datepicker__month-text--selected,.react-datepicker__month-text--in-selecting-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--selected,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--selected,.react-datepicker__year-text--in-selecting-range,.react-datepicker__year-text--in-range{border-radius:.3rem;background-color:#216ba5;color:#fff}.react-datepicker__day--selected:hover,.react-datepicker__day--in-selecting-range:hover,.react-datepicker__day--in-range:hover,.react-datepicker__month-text--selected:hover,.react-datepicker__month-text--in-selecting-range:hover,.react-datepicker__month-text--in-range:hover,.react-datepicker__quarter-text--selected:hover,.react-datepicker__quarter-text--in-selecting-range:hover,.react-datepicker__quarter-text--in-range:hover,.react-datepicker__year-text--selected:hover,.react-datepicker__year-text--in-selecting-range:hover,.react-datepicker__year-text--in-range:hover{background-color:#1d5d90}.react-datepicker__day--keyboard-selected,.react-datepicker__month-text--keyboard-selected,.react-datepicker__quarter-text--keyboard-selected,.react-datepicker__year-text--keyboard-selected{border-radius:.3rem;background-color:#bad9f1;color:#000}.react-datepicker__day--keyboard-selected:hover,.react-datepicker__month-text--keyboard-selected:hover,.react-datepicker__quarter-text--keyboard-selected:hover,.react-datepicker__year-text--keyboard-selected:hover{background-color:#1d5d90}.react-datepicker__day--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__month-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__quarter-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range),.react-datepicker__year-text--in-selecting-range:not(.react-datepicker__day--in-range,.react-datepicker__month-text--in-range,.react-datepicker__quarter-text--in-range,.react-datepicker__year-text--in-range){background-color:#216ba580}.react-datepicker__month--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__day--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__month-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__quarter-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__month--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range),.react-datepicker__year--selecting-range .react-datepicker__year-text--in-range:not(.react-datepicker__day--in-selecting-range,.react-datepicker__month-text--in-selecting-range,.react-datepicker__quarter-text--in-selecting-range,.react-datepicker__year-text--in-selecting-range){background-color:#f0f0f0;color:#000}.react-datepicker__day--disabled,.react-datepicker__month-text--disabled,.react-datepicker__quarter-text--disabled,.react-datepicker__year-text--disabled{cursor:default;color:#ccc}.react-datepicker__day--disabled:hover,.react-datepicker__month-text--disabled:hover,.react-datepicker__quarter-text--disabled:hover,.react-datepicker__year-text--disabled:hover{background-color:transparent}.react-datepicker__input-container{position:relative;display:inline-block;width:100%}.react-datepicker__input-container .react-datepicker__calendar-icon{position:absolute;padding:.5rem;box-sizing:content-box}.react-datepicker__view-calendar-icon input{padding:6px 10px 5px 25px}.react-datepicker__year-read-view,.react-datepicker__month-read-view,.react-datepicker__month-year-read-view{border:1px solid transparent;border-radius:.3rem;position:relative}.react-datepicker__year-read-view:hover,.react-datepicker__month-read-view:hover,.react-datepicker__month-year-read-view:hover{cursor:pointer}.react-datepicker__year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__year-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view:hover .react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__year-read-view--down-arrow,.react-datepicker__month-year-read-view:hover .react-datepicker__month-read-view--down-arrow{border-top-color:#b3b3b3}.react-datepicker__year-read-view--down-arrow,.react-datepicker__month-read-view--down-arrow,.react-datepicker__month-year-read-view--down-arrow{transform:rotate(135deg);right:-16px;top:0}.react-datepicker__year-dropdown,.react-datepicker__month-dropdown,.react-datepicker__month-year-dropdown{background-color:#f0f0f0;position:absolute;width:50%;left:25%;top:30px;z-index:1;text-align:center;border-radius:.3rem;border:1px solid #aeaeae}.react-datepicker__year-dropdown:hover,.react-datepicker__month-dropdown:hover,.react-datepicker__month-year-dropdown:hover{cursor:pointer}.react-datepicker__year-dropdown--scrollable,.react-datepicker__month-dropdown--scrollable,.react-datepicker__month-year-dropdown--scrollable{height:150px;overflow-y:scroll}.react-datepicker__year-option,.react-datepicker__month-option,.react-datepicker__month-year-option{line-height:20px;width:100%;display:block;margin-left:auto;margin-right:auto}.react-datepicker__year-option:first-of-type,.react-datepicker__month-option:first-of-type,.react-datepicker__month-year-option:first-of-type{border-top-left-radius:.3rem;border-top-right-radius:.3rem}.react-datepicker__year-option:last-of-type,.react-datepicker__month-option:last-of-type,.react-datepicker__month-year-option:last-of-type{-webkit-user-select:none;-moz-user-select:none;user-select:none;border-bottom-left-radius:.3rem;border-bottom-right-radius:.3rem}.react-datepicker__year-option:hover,.react-datepicker__month-option:hover,.react-datepicker__month-year-option:hover{background-color:#ccc}.react-datepicker__year-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-option:hover .react-datepicker__navigation--years-upcoming,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-upcoming{border-bottom-color:#b3b3b3}.react-datepicker__year-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-option:hover .react-datepicker__navigation--years-previous,.react-datepicker__month-year-option:hover .react-datepicker__navigation--years-previous{border-top-color:#b3b3b3}.react-datepicker__year-option--selected,.react-datepicker__month-option--selected,.react-datepicker__month-year-option--selected{position:absolute;left:15px}.react-datepicker__close-icon{cursor:pointer;background-color:transparent;border:0;outline:0;padding:0 6px 0 0;position:absolute;top:0;right:0;height:100%;display:table-cell;vertical-align:middle}.react-datepicker__close-icon:after{cursor:pointer;background-color:#216ba5;color:#fff;border-radius:50%;height:16px;width:16px;padding:2px;font-size:12px;line-height:1;text-align:center;display:table-cell;vertical-align:middle;content:"×"}.react-datepicker__close-icon--disabled{cursor:default}.react-datepicker__close-icon--disabled:after{cursor:default;background-color:#ccc}.react-datepicker__today-button{background:#f0f0f0;border-top:1px solid #aeaeae;cursor:pointer;text-align:center;font-weight:700;padding:5px 0;clear:left}.react-datepicker__portal{position:fixed;width:100vw;height:100vh;background-color:#000c;left:0;top:0;justify-content:center;align-items:center;display:flex;z-index:2147483647}.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:3rem;line-height:3rem}@media (max-width: 400px),(max-height: 550px){.react-datepicker__portal .react-datepicker__day-name,.react-datepicker__portal .react-datepicker__day,.react-datepicker__portal .react-datepicker__time-name{width:2rem;line-height:2rem}}.react-datepicker__portal .react-datepicker__current-month,.react-datepicker__portal .react-datepicker-time__header{font-size:1.44rem}.react-datepicker__children-container{width:13.8rem;margin:.4rem;padding-right:.2rem;padding-left:.2rem;height:auto}.react-datepicker__aria-live{position:absolute;clip-path:circle(0);border:0;height:1px;margin:-1px;overflow:hidden;padding:0;width:1px;white-space:nowrap}.react-datepicker__calendar-icon{width:1em;height:1em;vertical-align:-.125em}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();