@sisense/sdk-ui 1.15.1 → 1.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai.cjs +50 -50
- package/dist/ai.js +133 -132
- package/dist/analytics-composer/index.d.ts +1 -0
- package/dist/analytics-composer/translators/code-templates.d.ts +11 -0
- package/dist/analytics-composer/translators/generate-code.d.ts +18 -0
- package/dist/analytics-composer/translators/index.d.ts +3 -0
- package/dist/analytics-composer/translators/model-translator.d.ts +48 -0
- package/dist/analytics-composer/translators/query-templates.d.ts +1 -0
- package/dist/analytics-composer/translators/query-translator.d.ts +134 -0
- package/dist/analytics-composer/translators/translate-filters-to-code.d.ts +2 -0
- package/dist/analytics-composer/translators/translate-props-to-code.d.ts +8 -0
- package/dist/analytics-composer/translators/types.d.ts +95 -0
- package/dist/analytics-composer/translators/utils.d.ts +13 -0
- package/dist/analytics-composer.cjs +239 -0
- package/dist/analytics-composer.d.ts +1 -0
- package/dist/analytics-composer.js +5435 -0
- package/dist/api/rest-api.d.ts +5 -0
- package/dist/api/types/dashboard-dto.d.ts +8 -0
- package/dist/api/types/palette-dto.d.ts +9 -0
- package/dist/app/client-application.d.ts +22 -2
- package/dist/app/settings/settings.d.ts +5 -0
- package/dist/app/settings/types/features.d.ts +6 -0
- package/dist/chart/advanced-chart.d.ts +7 -0
- package/dist/chart-data/advanced-analytics-data.d.ts +50 -0
- package/dist/chart-data/types.d.ts +2 -1
- package/dist/chart-data-options/types.d.ts +35 -4
- package/dist/chart-data-processor/table-processor.d.ts +1 -1
- package/dist/chart-options-processor/advanced-chart-options.d.ts +24 -0
- package/dist/chart-options-processor/cartesian-chart-options.d.ts +2 -1
- package/dist/chart-options-processor/chart-options-service.d.ts +5 -0
- package/dist/chart-options-processor/common-highcharts-option-service.d.ts +2 -1
- package/dist/chart-options-processor/translations/axis-section.d.ts +2 -2
- package/dist/chart-options-processor/translations/legend-section.d.ts +2 -0
- package/dist/chart-options-processor/translations/tooltip-utils.d.ts +1 -0
- package/dist/chart-options-processor/translations/tooltip.d.ts +4 -2
- package/dist/charts/map-charts/scattermap/utils/map.d.ts +6 -2
- package/dist/charts/map-charts/scattermap/utils/markers.d.ts +1 -1
- package/dist/charts/table/data-table-wrapper.d.ts +1 -1
- package/dist/charts/table/helpers/calc-column-widths.d.ts +1 -1
- package/dist/charts/table/types.d.ts +0 -1
- package/dist/common/components/loading-indicator.d.ts +27 -0
- package/dist/common/hooks/use-has-changed.d.ts +1 -1
- package/dist/common/hooks/use-tracking.d.ts +7 -0
- package/dist/common-filters/cascading-utils.d.ts +30 -0
- package/dist/common-filters/common-filters-connector.d.ts +7 -1
- package/dist/common-filters/selection-utils.d.ts +1 -1
- package/dist/common-filters/types.d.ts +17 -6
- package/dist/common-filters/utils.d.ts +2 -5
- package/dist/dashboard/dashboard-by-id.d.ts +8 -3
- package/dist/dashboard/dashboard.d.ts +8 -4
- package/dist/dashboard/index.d.ts +1 -1
- package/dist/dashboard/types.d.ts +13 -7
- package/dist/dashboard-widget/dashboard-widget.d.ts +2 -0
- package/dist/dashboard-widget/translate-widget-data-options.d.ts +1 -1
- package/dist/dashboard-widget/translate-widget-drilldown-options.d.ts +2 -2
- package/dist/dashboard-widget/translate-widget-style-options.d.ts +11 -2
- package/dist/dashboard-widget/types.d.ts +29 -8
- package/dist/dashboard-widget/utils.d.ts +8 -0
- package/dist/decorators/component-decorators/with-tracking/error-tracker.d.ts +3 -0
- package/dist/filters/components/date-filter/date-filter/date-filter.d.ts +1 -0
- package/dist/filters/components/filters-panel/filters-panel.d.ts +2 -1
- package/dist/get-widget-options-D4UHj7o5.cjs +198 -0
- package/dist/get-widget-options-D88MkBTJ.js +37924 -0
- package/dist/index.cjs +183 -208
- package/dist/index.d.ts +3 -3
- package/dist/index.js +20621 -24251
- package/dist/models/dashboard/dashboard-model.d.ts +10 -2
- package/dist/models/dashboard/get-dashboard-model.d.ts +13 -2
- package/dist/models/dashboard/types.d.ts +21 -2
- package/dist/models/dashboard/use-get-dashboard-model.d.ts +2 -0
- package/dist/models/dashboard/use-get-dashboard-models.d.ts +2 -0
- package/dist/models/widget/get-widget-model.d.ts +13 -2
- package/dist/models/widget/translate-widget.d.ts +10 -1
- package/dist/models/widget/use-get-widget-model.d.ts +2 -0
- package/dist/models/widget/widget-model.d.ts +5 -3
- package/dist/pivot-table/helpers/prepare-pivot-styling-props.d.ts +16 -15
- package/dist/pivot-table/{use-apply-pivot-table-formatting.d.ts → hooks/use-apply-pivot-table-formatting.d.ts} +1 -1
- package/dist/pivot-table/{use-get-pivot-table-query.d.ts → hooks/use-get-pivot-table-query.d.ts} +4 -8
- package/dist/pivot-table/hooks/use-pivot-data-loading.d.ts +15 -0
- package/dist/pivot-table/hooks/use-pivot-data-service.d.ts +10 -0
- package/dist/pivot-table/{use-pivot-table-data-options-internal.d.ts → hooks/use-pivot-table-data-options-internal.d.ts} +2 -2
- package/dist/pivot-table/hooks/use-render-pivot.d.ts +24 -0
- package/dist/pivot-table/pivot-table.d.ts +2 -2
- package/dist/props.d.ts +45 -10
- package/dist/query-execution/execute-query-by-widget-id.d.ts +2 -0
- package/dist/query-execution/index.d.ts +1 -1
- package/dist/query-execution/types.d.ts +11 -2
- package/dist/query-execution/use-execute-query-by-widget-id.d.ts +5 -5
- package/dist/sisense-context/sisense-context.d.ts +2 -0
- package/dist/theme-provider/default-theme-settings.d.ts +2 -0
- package/dist/themes/legacy-design-settings.d.ts +14 -0
- package/dist/translation/resources/en.d.ts +9 -0
- package/dist/translation/resources/index.d.ts +18 -0
- package/dist/types.d.ts +89 -9
- package/dist/useQuery-C6PPvTP0.js +43462 -0
- package/dist/useQuery-ChZNmTT3.cjs +433 -0
- package/dist/utils/color/color-interpolation.d.ts +9 -0
- package/dist/utils/combine-handlers.d.ts +3 -0
- package/dist/utils/filters.d.ts +14 -0
- package/dist/widgets/common/drilldown-connector.d.ts +19 -0
- package/dist/widgets/common/{custom-drilldown.d.ts → use-drilldown.d.ts} +7 -3
- package/dist/widgets/common/widget-container.d.ts +2 -2
- package/dist/widgets/common/widget-header-info-button.d.ts +2 -2
- package/dist/widgets/common/widget-header.d.ts +2 -2
- package/dist/widgets/common/widget-style-utils.d.ts +5 -4
- package/dist/widgets/use-highlight-selection.d.ts +10 -0
- package/package.json +18 -9
- package/dist/filters/utils.d.ts +0 -7
- package/dist/useQuery-B-49RH93.js +0 -76791
- package/dist/useQuery-C2MQvc4S.cjs +0 -603
- package/dist/widgets/chart-widget-deprecated.d.ts +0 -30
- package/dist/widgets/common/drilldown.d.ts +0 -25
- package/dist/widgets/common/use-widget-drilldown.d.ts +0 -2
|
@@ -0,0 +1,433 @@
|
|
|
1
|
+
"use strict";var p0=Object.defineProperty,m0=Object.defineProperties;var v0=Object.getOwnPropertyDescriptors;var Ta=Object.getOwnPropertySymbols;var jf=Object.prototype.hasOwnProperty,Bf=Object.prototype.propertyIsEnumerable;var Vt=Math.pow,Sl=(e,t,r)=>t in e?p0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,ie=(e,t)=>{for(var r in t||(t={}))jf.call(t,r)&&Sl(e,r,t[r]);if(Ta)for(var r of Ta(t))Bf.call(t,r)&&Sl(e,r,t[r]);return e},he=(e,t)=>m0(e,v0(t));var ai=(e,t)=>{var r={};for(var n in e)jf.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Ta)for(var n of Ta(e))t.indexOf(n)<0&&Bf.call(e,n)&&(r[n]=e[n]);return r};var xt=(e,t,r)=>(Sl(e,typeof t!="symbol"?t+"":t,r),r);var yr=(e,t,r)=>new Promise((n,o)=>{var a=c=>{try{u(r.next(c))}catch(f){o(f)}},l=c=>{try{u(r.throw(c))}catch(f){o(f)}},u=c=>c.done?n(c.value):Promise.resolve(c.value).then(a,l);u((r=r.apply(e,t)).next())});const Q=require("react"),V=require("react/jsx-runtime"),R=require("./get-widget-options-D4UHj7o5.cjs"),_i=require("react-dom");function Em(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const Z=Em(Q),g0=Em(_i);function te(){return te=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},te.apply(this,arguments)}const y0=Object.freeze(Object.defineProperty({__proto__:null,default:te},Symbol.toStringTag,{value:"Module"}));function b0(){if(console&&console.warn){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&(t[0]=`react-i18next:: ${t[0]}`),console.warn(...t)}}const Hf={};function su(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];typeof t[0]=="string"&&Hf[t[0]]||(typeof t[0]=="string"&&(Hf[t[0]]=new Date),b0(...t))}const Sm=(e,t)=>()=>{if(e.isInitialized)t();else{const r=()=>{setTimeout(()=>{e.off("initialized",r)},0),t()};e.on("initialized",r)}};function Vf(e,t,r){e.loadNamespaces(t,Sm(e,r))}function Uf(e,t,r,n){typeof r=="string"&&(r=[r]),r.forEach(o=>{e.options.ns.indexOf(o)<0&&e.options.ns.push(o)}),e.loadLanguages(t,Sm(e,n))}function _0(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const n=t.languages[0],o=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(n.toLowerCase()==="cimode")return!0;const l=(u,c)=>{const f=t.services.backendConnector.state[`${u}|${c}`];return f===-1||f===2};return r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!l(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(n,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||l(n,e)&&(!o||l(a,e)))}function w0(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(su("i18n.languages were undefined or empty",t.languages),!0):t.options.ignoreJSONStructure!==void 0?t.hasLoadedNamespace(e,{lng:r.lng,precheck:(o,a)=>{if(r.bindI18n&&r.bindI18n.indexOf("languageChanging")>-1&&o.services.backendConnector.backend&&o.isLanguageChangingTo&&!a(o.isLanguageChangingTo,e))return!1}}):_0(e,t,r)}const Mm=Q.createContext();class x0{constructor(){this.usedNamespaces={}}addUsedNamespaces(t){t.forEach(r=>{this.usedNamespaces[r]||(this.usedNamespaces[r]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}const C0=(e,t)=>{const r=Q.useRef();return Q.useEffect(()=>{r.current=e},[e,t]),r.current};function ms(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{i18n:r}=t,{i18n:n,defaultNS:o}=Q.useContext(Mm)||{},a=r||n||R.getI18n();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new x0),!a){su("You will need to pass in an i18next instance by using initReactI18next");const T=(w,M)=>typeof M=="string"?M:M&&typeof M=="object"&&typeof M.defaultValue=="string"?M.defaultValue:Array.isArray(w)?w[w.length-1]:w,C=[T,{},!1];return C.t=T,C.i18n={},C.ready=!1,C}a.options.react&&a.options.react.wait!==void 0&&su("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");const l=ie(ie(ie({},R.getDefaults()),a.options.react),t),{useSuspense:u,keyPrefix:c}=l;let f=o||a.options&&a.options.defaultNS;f=typeof f=="string"?[f]:f||["translation"],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(f);const p=(a.isInitialized||a.initializedStoreOnce)&&f.every(T=>w0(T,a,l));function m(){return a.getFixedT(t.lng||null,l.nsMode==="fallback"?f:f[0],c)}const[h,g]=Q.useState(m);let _=f.join();t.lng&&(_=`${t.lng}${_}`);const y=C0(_),x=Q.useRef(!0);Q.useEffect(()=>{const{bindI18n:T,bindI18nStore:C}=l;x.current=!0,!p&&!u&&(t.lng?Uf(a,t.lng,f,()=>{x.current&&g(m)}):Vf(a,f,()=>{x.current&&g(m)})),p&&y&&y!==_&&x.current&&g(m);function w(){x.current&&g(m)}return T&&a&&a.on(T,w),C&&a&&a.store.on(C,w),()=>{x.current=!1,T&&a&&T.split(" ").forEach(M=>a.off(M,w)),C&&a&&C.split(" ").forEach(M=>a.store.off(M,w))}},[a,_]);const S=Q.useRef(!0);Q.useEffect(()=>{x.current&&!S.current&&g(m),S.current=!1},[a,c]);const E=[h,a,p];if(E.t=h,E.i18n=a,E.ready=p,p||!p&&!u)return E;throw new Promise(T=>{t.lng?Uf(a,t.lng,f,()=>T()):Vf(a,f,()=>T())})}function T0(e){let{i18n:t,defaultNS:r,children:n}=e;const o=Q.useMemo(()=>({i18n:t,defaultNS:r}),[t,r]);return Q.createElement(Mm.Provider,{value:o},n)}let Ea;const E0=new Uint8Array(16);function S0(){if(!Ea&&(Ea=typeof crypto!="undefined"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!Ea))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ea(E0)}const Ct=[];for(let e=0;e<256;++e)Ct.push((e+256).toString(16).slice(1));function M0(e,t=0){return Ct[e[t+0]]+Ct[e[t+1]]+Ct[e[t+2]]+Ct[e[t+3]]+"-"+Ct[e[t+4]]+Ct[e[t+5]]+"-"+Ct[e[t+6]]+Ct[e[t+7]]+"-"+Ct[e[t+8]]+Ct[e[t+9]]+"-"+Ct[e[t+10]]+Ct[e[t+11]]+Ct[e[t+12]]+Ct[e[t+13]]+Ct[e[t+14]]+Ct[e[t+15]]}const P0=typeof crypto!="undefined"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),qf={randomUUID:P0};function Pm(e,t,r){if(qf.randomUUID&&!t&&!e)return qf.randomUUID();e=e||{};const n=e.random||(e.rng||S0)();return n[6]=n[6]&15|64,n[8]=n[8]&63|128,M0(n)}function Fn(e){return e===void 0||typeof e=="string"||"title"in e&&"type"in e}function Ml(e){return"attribute"in e}function R0(e){return"measure"in e}const O0={title:"Grand Total",rows:!1,columns:!1},Dt={BOX_MIN_VALUE_NAME:"Box Min",BOX_MEDIAN_VALUE_NAME:"Box Median",BOX_MAX_VALUE_NAME:"Box Max",WHISKER_MIN_VALUE_NAME:"Whisker Min",WHISKER_MAX_VALUE_NAME:"Whisker Max",OUTLIER_COUNT_VALUE_NAME:"Outlier Count",OUTLIER_MIN_VALUE_NAME:"Outlier Min",OUTLIER_MAX_VALUE_NAME:"Outlier Max"};function _c(e){return[R.customFormula(Dt.BOX_MIN_VALUE_NAME,"QUARTILE([Attr], 1)",{Attr:e}),R.customFormula(Dt.BOX_MEDIAN_VALUE_NAME,"MEDIAN([Attr])",{Attr:e}),R.customFormula(Dt.BOX_MAX_VALUE_NAME,"QUARTILE([Attr], 3)",{Attr:e})]}function k0(e){return[..._c(e),R.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_IQR([Attr])",{Attr:e}),R.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_IQR([Attr])",{Attr:e}),R.customFormula(Dt.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_IQR([Attr])",{Attr:e})]}function N0(e){return[..._c(e),R.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"MIN([Attr])",{Attr:e}),R.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"MAX([Attr])",{Attr:e})]}function D0(e){return[..._c(e),R.customFormula(Dt.WHISKER_MIN_VALUE_NAME,"LOWERWHISKERMAX_STDEVP([Attr])",{Attr:e}),R.customFormula(Dt.WHISKER_MAX_VALUE_NAME,"UPPERWHISKERMIN_STDEVP([Attr])",{Attr:e}),R.customFormula(Dt.OUTLIER_COUNT_VALUE_NAME,"OUTLIERSCOUNT_STDEVP([Attr])",{Attr:e})]}const L0=e=>{const t=R.cloneDeep(e),r=R.customFormula(Dt.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_IQR([Attr]), all([Attr]))",{Attr:e}),n=R.customFormula(Dt.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_IQR([Attr]), all([Attr]))",{Attr:e});return t.name=`${t.name} (Outliers)`,t.jaql=o=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?a:{jaql:a}},t},A0=e=>{const t=R.cloneDeep(e),r=R.customFormula(Dt.OUTLIER_MAX_VALUE_NAME,"(UPPERWHISKERMIN_STDEVP([Attr]), all([Attr]))",{Attr:e}),n=R.customFormula(Dt.OUTLIER_MIN_VALUE_NAME,"(LOWERWHISKERMAX_STDEVP([Attr]), all([Attr]))",{Attr:e});return t.jaql=o=>{const a=Object.assign(Object.assign({},e.jaql(!0)),{filter:{or:[{fromNotEqual:r.jaql(!0)},{toNotEqual:n.jaql(!0)}]}});return o?a:{jaql:a}},t};function I0(e,t){const r=t==null?void 0:t.find(n=>Rm(e)===n.attribute.id);return r&&!r.disabled&&(r.isScope&&(r.isScope=!1),e.jaql.in={selected:r.jaql()}),e}function $0(e,t){const r=[],n=[];return t.forEach(o=>{e.some(l=>Rm(l)===o.attribute.id)?r.push(o):n.push(o)}),[r,n]}function Rm(e){const{dim:t,level:r,dateTimeLevel:n,bucket:o}=e.jaql;let a=`${t}`;return(r||n)&&(a+=`_${r||n}`),o&&(a+=`_${o}`),a}var z0=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r};function W0(e,t,r){return{rowsCount:e.length,columnsCount:t.length,measuresCount:r.length}}function F0(e){switch(e){case"sortAsc":return"asc";case"sortDesc":return"desc";default:return"none"}}function j0(e,t,r){const n=F0(e.direction),o=t===r.rowsCount-1,a={dir:n,initialized:!0,field:e.by&&"valuesIndex"in e.by?r.rowsCount+r.columnsCount+e.by.valuesIndex:t};return o&&(a.sortingLastDimension=!0),e.by&&(a.measurePath=(e.by.columnsMembersPath||[]).reduce((l,u,c)=>Object.assign(Object.assign({},l),{[r.rowsCount+c]:u}),{})),{sort:n,sortDetails:a}}function B0(e,t){const r=e[t.rowsCount-1];if(r.jaql.sortDetails&&r.jaql.sortDetails.field!==t.rowsCount-1){const o=e[r.jaql.sortDetails.field],a=r.jaql,{sortDetails:l,sort:u}=a,c=z0(a,["sortDetails","sort"]);o.jaql.sortDetails=l,o.jaql.sort=u,r.jaql=c}}const Wa="ComposeSDK";function Om(e,t){const{attributes:r,measures:n,filters:o,filterRelations:a,highlights:l,dataSource:u,count:c,offset:f,ungroup:p}=e,m=p&&n.length===0,h=Object.assign({metadata:H0({attributes:r,measures:n,filters:o,filterRelations:a,highlights:l},t)},V0(u,c,f,m));return a?Object.assign(Object.assign({},h),{filterRelations:a}):h}function km(e,t,r,n,o){const[a,l]=$0(e,n);e.forEach(f=>I0(f,a));const u=f=>{const p=f.jaql();return r?Array.isArray(p)?p.map(m=>Object.assign(Object.assign({},m),{instanceid:f.guid})):Object.assign(Object.assign({},p),{instanceid:f.guid}):p},c=(o?t.flatMap(f=>u(f)):[...t,...l].flatMap(f=>u(f))).filter(f=>Object.keys(f.jaql.filter||{}).length!==0);return o&&l.length>0&&console.warn(`The following highlight filters were not applied due to missing attributes: [${l.map(f=>f.attribute.name).join(", ")}].`),c}function H0(e,t){const{attributes:r,measures:n,filters:o,filterRelations:a,highlights:l}=e,u=r.map(p=>p.jaql()),c=n.map(p=>p.jaql()),f=km(u,o,a,l,t);return[...u,...c,...f]}function V0(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Nm(e),by:Wa,queryGuid:Pm()},n?{ungroup:!0}:{}),t?{count:t}:{}),r?{offset:r}:{})}function U0(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:o,filters:a,filterRelations:l,grandTotals:u,highlights:c,dataSource:f,count:p,offset:m}=e,h=Object.assign({metadata:G0({rowsAttributes:r,columnsAttributes:n,measures:o,filters:a,highlights:c},t)},Y0(f,u,p,m));return l?Object.assign(Object.assign({},h),{filterRelations:l}):h}function Gf(e,t,r,n){const o=t==="rows"&&Ml(e)&&e.sort&&e.sort.direction!=="sortNone",a=Object.assign(Object.assign({},Ml(e)?e.attribute.jaql(!0):e.jaql(!0)),o&&j0(e.sort,r,n));return Object.assign(Object.assign({jaql:a},Ml(e)&&e.includeSubTotals?{format:{subtotal:!0}}:{}),{panel:t,field:{index:r,id:`${t}-${r}`}})}function q0(e,t,r){return Object.assign(Object.assign({},R0(e)?R.merge(e.measure.jaql(),{jaql:{subtotalAgg:e.totalsCalculation},format:{databars:e.dataBars||!1}}):e.jaql()),{panel:t,field:{index:r,id:`${t}-${r}`}})}function G0(e,t){const{rowsAttributes:r,columnsAttributes:n,measures:o,filters:a,filterRelations:l,highlights:u}=e,c=W0(r,n,o);let f=0;const p=r.map((x,S)=>Gf(x,"rows",S+f,c));f=f+r.length;const m=n.map((x,S)=>Gf(x,"columns",S+f,c));f=f+n.length;const h=[...p,...m],g=o.map((x,S)=>q0(x,"measures",S+f)),_=km(h,a,l,u,t),y=[...h,...g,..._];return B0(y,c),y}function Y0(e,t,r,n){return Object.assign(Object.assign(Object.assign({datasource:Nm(e),by:Wa,queryGuid:Pm(),dashboard:Wa,widget:Wa,format:"pivot"},r?{count:r}:{}),n?{offset:n}:{}),{grandTotals:Object.assign(Object.assign({},O0),t)})}function Nm(e){return R.isDataSourceInfo(e)?{title:e.title,live:e.type==="live"}:e}function X0(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 Z0(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 K0=function(){function e(r){var n=this;this._insertTag=function(o){var a;n.tags.length===0?n.insertionPoint?a=n.insertionPoint.nextSibling:n.prepend?a=n.container.firstChild:a=n.before:a=n.tags[n.tags.length-1].nextSibling,n.container.insertBefore(o,a),n.tags.push(o)},this.isSpeedy=r.speedy===void 0?process.env.NODE_ENV==="production":r.speedy,this.tags=[],this.ctr=0,this.nonce=r.nonce,this.key=r.key,this.container=r.container,this.prepend=r.prepend,this.insertionPoint=r.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(Z0(this));var o=this.tags[this.tags.length-1];if(process.env.NODE_ENV!=="production"){var a=n.charCodeAt(0)===64&&n.charCodeAt(1)===105;a&&this._alreadyInsertedOrderInsensitiveRule&&console.error(`You're attempting to insert the following rule:
|
|
2
|
+
`+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||!a}if(this.isSpeedy){var l=X0(o);try{l.insertRule(n,l.cssRules.length)}catch(u){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+'"',u)}}else o.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}(),Pt="-ms-",Xa="-moz-",ze="-webkit-",wc="comm",xc="rule",Cc="decl",Q0="@import",Dm="@keyframes",J0="@layer",ew=Math.abs,vs=String.fromCharCode,tw=Object.assign;function rw(e,t){return Et(e,0)^45?(((t<<2^Et(e,0))<<2^Et(e,1))<<2^Et(e,2))<<2^Et(e,3):0}function Lm(e){return e.trim()}function nw(e,t){return(e=t.exec(e))?e[0]:e}function We(e,t,r){return e.replace(t,r)}function lu(e,t){return e.indexOf(t)}function Et(e,t){return e.charCodeAt(t)|0}function xo(e,t,r){return e.slice(t,r)}function Pr(e){return e.length}function Tc(e){return e.length}function Sa(e,t){return t.push(e),e}function iw(e,t){return e.map(t).join("")}var gs=1,Ei=1,Am=0,Ft=0,mt=0,Ai="";function ys(e,t,r,n,o,a,l){return{value:e,root:t,parent:r,type:n,props:o,children:a,line:gs,column:Ei,length:l,return:""}}function to(e,t){return tw(ys("",null,null,"",null,null,0),e,{length:-e.length},t)}function ow(){return mt}function aw(){return mt=Ft>0?Et(Ai,--Ft):0,Ei--,mt===10&&(Ei=1,gs--),mt}function qt(){return mt=Ft<Am?Et(Ai,Ft++):0,Ei++,mt===10&&(Ei=1,gs++),mt}function Dr(){return Et(Ai,Ft)}function Fa(){return Ft}function zo(e,t){return xo(Ai,e,t)}function Co(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 Im(e){return gs=Ei=1,Am=Pr(Ai=e),Ft=0,[]}function $m(e){return Ai="",e}function ja(e){return Lm(zo(Ft-1,uu(e===91?e+2:e===40?e+1:e)))}function sw(e){for(;(mt=Dr())&&mt<33;)qt();return Co(e)>2||Co(mt)>3?"":" "}function lw(e,t){for(;--t&&qt()&&!(mt<48||mt>102||mt>57&&mt<65||mt>70&&mt<97););return zo(e,Fa()+(t<6&&Dr()==32&&qt()==32))}function uu(e){for(;qt();)switch(mt){case e:return Ft;case 34:case 39:e!==34&&e!==39&&uu(mt);break;case 40:e===41&&uu(e);break;case 92:qt();break}return Ft}function uw(e,t){for(;qt()&&e+mt!==57;)if(e+mt===84&&Dr()===47)break;return"/*"+zo(t,Ft-1)+"*"+vs(e===47?e:qt())}function cw(e){for(;!Co(Dr());)qt();return zo(e,Ft)}function dw(e){return $m(Ba("",null,null,null,[""],e=Im(e),0,[0],e))}function Ba(e,t,r,n,o,a,l,u,c){for(var f=0,p=0,m=l,h=0,g=0,_=0,y=1,x=1,S=1,E=0,T="",C=o,w=a,M=n,O=T;x;)switch(_=E,E=qt()){case 40:if(_!=108&&Et(O,m-1)==58){lu(O+=We(ja(E),"&","&\f"),"&\f")!=-1&&(S=-1);break}case 34:case 39:case 91:O+=ja(E);break;case 9:case 10:case 13:case 32:O+=sw(_);break;case 92:O+=lw(Fa()-1,7);continue;case 47:switch(Dr()){case 42:case 47:Sa(fw(uw(qt(),Fa()),t,r),c);break;default:O+="/"}break;case 123*y:u[f++]=Pr(O)*S;case 125*y:case 59:case 0:switch(E){case 0:case 125:x=0;case 59+p:S==-1&&(O=We(O,/\f/g,"")),g>0&&Pr(O)-m&&Sa(g>32?Xf(O+";",n,r,m-1):Xf(We(O," ","")+";",n,r,m-2),c);break;case 59:O+=";";default:if(Sa(M=Yf(O,t,r,f,p,o,u,T,C=[],w=[],m),a),E===123)if(p===0)Ba(O,t,M,M,C,a,m,u,w);else switch(h===99&&Et(O,3)===110?100:h){case 100:case 108:case 109:case 115:Ba(e,M,M,n&&Sa(Yf(e,M,M,0,0,o,u,T,o,C=[],m),w),o,w,m,u,n?C:w);break;default:Ba(O,M,M,M,[""],w,0,u,w)}}f=p=g=0,y=S=1,T=O="",m=l;break;case 58:m=1+Pr(O),g=_;default:if(y<1){if(E==123)--y;else if(E==125&&y++==0&&aw()==125)continue}switch(O+=vs(E),E*y){case 38:S=p>0?1:(O+="\f",-1);break;case 44:u[f++]=(Pr(O)-1)*S,S=1;break;case 64:Dr()===45&&(O+=ja(qt())),h=Dr(),p=m=Pr(T=O+=cw(Fa())),E++;break;case 45:_===45&&Pr(O)==2&&(y=0)}}return a}function Yf(e,t,r,n,o,a,l,u,c,f,p){for(var m=o-1,h=o===0?a:[""],g=Tc(h),_=0,y=0,x=0;_<n;++_)for(var S=0,E=xo(e,m+1,m=ew(y=l[_])),T=e;S<g;++S)(T=Lm(y>0?h[S]+" "+E:We(E,/&\f/g,h[S])))&&(c[x++]=T);return ys(e,t,r,o===0?xc:u,c,f,p)}function fw(e,t,r){return ys(e,t,r,wc,vs(ow()),xo(e,2,-2),0)}function Xf(e,t,r,n){return ys(e,t,r,Cc,xo(e,0,n),xo(e,n+1,-1),n)}function Ci(e,t){for(var r="",n=Tc(e),o=0;o<n;o++)r+=t(e[o],o,e,t)||"";return r}function hw(e,t,r,n){switch(e.type){case J0:if(e.children.length)break;case Q0:case Cc:return e.return=e.return||e.value;case wc:return"";case Dm:return e.return=e.value+"{"+Ci(e.children,n)+"}";case xc:e.value=e.props.join(",")}return Pr(r=Ci(e.children,n))?e.return=e.value+"{"+r+"}":""}function pw(e){var t=Tc(e);return function(r,n,o,a){for(var l="",u=0;u<t;u++)l+=e[u](r,n,o,a)||"";return l}}function mw(e){return function(t){t.root||(t=t.return)&&e(t)}}function zm(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var vw=function(t,r,n){for(var o=0,a=0;o=a,a=Dr(),o===38&&a===12&&(r[n]=1),!Co(a);)qt();return zo(t,Ft)},gw=function(t,r){var n=-1,o=44;do switch(Co(o)){case 0:o===38&&Dr()===12&&(r[n]=1),t[n]+=vw(Ft-1,r,n);break;case 2:t[n]+=ja(o);break;case 4:if(o===44){t[++n]=Dr()===58?"&\f":"",r[n]=t[n].length;break}default:t[n]+=vs(o)}while(o=qt());return t},yw=function(t,r){return $m(gw(Im(t),r))},Zf=new WeakMap,bw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var r=t.value,n=t.parent,o=t.column===n.column&&t.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(t.props.length===1&&r.charCodeAt(0)!==58&&!Zf.get(n))&&!o){Zf.set(t,!0);for(var a=[],l=yw(r,a),u=n.props,c=0,f=0;c<l.length;c++)for(var p=0;p<u.length;p++,f++)t.props[f]=a[c]?l[c].replace(/&\f/g,u[p]):u[p]+" "+l[c]}}},_w=function(t){if(t.type==="decl"){var r=t.value;r.charCodeAt(0)===108&&r.charCodeAt(2)===98&&(t.return="",t.value="")}},ww="emotion-disable-server-rendering-unsafe-selector-warning-please-do-not-use-this-the-warning-exists-for-a-reason",xw=function(t){return t.type==="comm"&&t.children.indexOf(ww)>-1},Cw=function(t){return function(r,n,o){if(!(r.type!=="rule"||t.compat)){var a=r.value.match(/(:first|:nth|:nth-last)-child/g);if(a){for(var l=!!r.parent,u=l?r.parent.children:o,c=u.length-1;c>=0;c--){var f=u[c];if(f.line<r.line)break;if(f.column<r.column){if(xw(f))return;break}}a.forEach(function(p){console.error('The pseudo class "'+p+'" is potentially unsafe when doing server-side rendering. Try changing it to "'+p.split("-child")[0]+'-of-type".')})}}}},Wm=function(t){return t.type.charCodeAt(1)===105&&t.type.charCodeAt(0)===64},Tw=function(t,r){for(var n=t-1;n>=0;n--)if(!Wm(r[n]))return!0;return!1},Kf=function(t){t.type="",t.value="",t.return="",t.children="",t.props=""},Ew=function(t,r,n){Wm(t)&&(t.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."),Kf(t)):Tw(r,n)&&(console.error("`@import` rules can't be after other rules. Please put your `@import` rules before your other rules."),Kf(t)))};function Fm(e,t){switch(rw(e,t)){case 5103:return ze+"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 ze+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ze+e+Xa+e+Pt+e+e;case 6828:case 4268:return ze+e+Pt+e+e;case 6165:return ze+e+Pt+"flex-"+e+e;case 5187:return ze+e+We(e,/(\w+).+(:[^]+)/,ze+"box-$1$2"+Pt+"flex-$1$2")+e;case 5443:return ze+e+Pt+"flex-item-"+We(e,/flex-|-self/,"")+e;case 4675:return ze+e+Pt+"flex-line-pack"+We(e,/align-content|flex-|-self/,"")+e;case 5548:return ze+e+Pt+We(e,"shrink","negative")+e;case 5292:return ze+e+Pt+We(e,"basis","preferred-size")+e;case 6060:return ze+"box-"+We(e,"-grow","")+ze+e+Pt+We(e,"grow","positive")+e;case 4554:return ze+We(e,/([^-])(transform)/g,"$1"+ze+"$2")+e;case 6187:return We(We(We(e,/(zoom-|grab)/,ze+"$1"),/(image-set)/,ze+"$1"),e,"")+e;case 5495:case 3959:return We(e,/(image-set\([^]*)/,ze+"$1$`$1");case 4968:return We(We(e,/(.+:)(flex-)?(.*)/,ze+"box-pack:$3"+Pt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ze+e+e;case 4095:case 3583:case 4068:case 2532:return We(e,/(.+)-inline(.+)/,ze+"$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(Pr(e)-1-t>6)switch(Et(e,t+1)){case 109:if(Et(e,t+4)!==45)break;case 102:return We(e,/(.+:)(.+)-([^]+)/,"$1"+ze+"$2-$3$1"+Xa+(Et(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~lu(e,"stretch")?Fm(We(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Et(e,t+1)!==115)break;case 6444:switch(Et(e,Pr(e)-3-(~lu(e,"!important")&&10))){case 107:return We(e,":",":"+ze)+e;case 101:return We(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ze+(Et(e,14)===45?"inline-":"")+"box$3$1"+ze+"$2$3$1"+Pt+"$2box$3")+e}break;case 5936:switch(Et(e,t+11)){case 114:return ze+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ze+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ze+e+Pt+We(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ze+e+Pt+e+e}return e}var Sw=function(t,r,n,o){if(t.length>-1&&!t.return)switch(t.type){case Cc:t.return=Fm(t.value,t.length);break;case Dm:return Ci([to(t,{value:We(t.value,"@","@"+ze)})],o);case xc:if(t.length)return iw(t.props,function(a){switch(nw(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ci([to(t,{props:[We(a,/:(read-\w+)/,":"+Xa+"$1")]})],o);case"::placeholder":return Ci([to(t,{props:[We(a,/:(plac\w+)/,":"+ze+"input-$1")]}),to(t,{props:[We(a,/:(plac\w+)/,":"+Xa+"$1")]}),to(t,{props:[We(a,/:(plac\w+)/,Pt+"input-$1")]})],o)}return""})}},Mw=[Sw],jm=function(t){var r=t.key;if(process.env.NODE_ENV!=="production"&&!r)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.
|
|
3
|
+
If multiple caches share the same key they might "fight" for each other's style elements.`);if(r==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(y){var x=y.getAttribute("data-emotion");x.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var o=t.stylisPlugins||Mw;if(process.env.NODE_ENV!=="production"&&/[^a-z-]/.test(r))throw new Error('Emotion key must only contain lower case alphabetical characters and - but "'+r+'" was passed');var a={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+r+' "]'),function(y){for(var x=y.getAttribute("data-emotion").split(" "),S=1;S<x.length;S++)a[x[S]]=!0;u.push(y)});var c,f=[bw,_w];process.env.NODE_ENV!=="production"&&f.push(Cw({get compat(){return _.compat}}),Ew);{var p,m=[hw,process.env.NODE_ENV!=="production"?function(y){y.root||(y.return?p.insert(y.return):y.value&&y.type!==wc&&p.insert(y.value+"{}"))}:mw(function(y){p.insert(y)})],h=pw(f.concat(o,m)),g=function(x){return Ci(dw(x),h)};c=function(x,S,E,T){p=E,process.env.NODE_ENV!=="production"&&S.map!==void 0&&(p={insert:function(w){E.insert(w+S.map)}}),g(x?x+"{"+S.styles+"}":S.styles),T&&(_.inserted[S.name]=!0)}}var _={key:r,sheet:new K0({key:r,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:c};return _.sheet.hydrate(u),_},Pw=!0;function Ec(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):n+=o+" "}),n}var bs=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||Pw===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},_s=function(t,r,n){bs(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Rw(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Ow={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Qf=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
4
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
5
|
+
You can read more about this here:
|
|
6
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,kw="You have passed in falsy value as style object's key (can happen when in example you pass unexported component as computed key).",Nw=/[A-Z]|^ms/g,Bm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sc=function(t){return t.charCodeAt(1)===45},Jf=function(t){return t!=null&&typeof t!="boolean"},Pl=zm(function(e){return Sc(e)?e:e.replace(Nw,"-$&").toLowerCase()}),Za=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(Bm,function(n,o,a){return br={name:o,styles:a,next:br},o})}return Ow[t]!==1&&!Sc(t)&&typeof r=="number"&&r!==0?r+"px":r};if(process.env.NODE_ENV!=="production"){var Dw=/(var|attr|counters?|url|element|(((repeating-)?(linear|radial))|conic)-gradient)\(|(no-)?(open|close)-quote/,Lw=["normal","none","initial","inherit","unset"],Aw=Za,Iw=/^-ms-/,$w=/-(.)/g,eh={};Za=function(t,r){if(t==="content"&&(typeof r!="string"||Lw.indexOf(r)===-1&&!Dw.test(r)&&(r.charAt(0)!==r.charAt(r.length-1)||r.charAt(0)!=='"'&&r.charAt(0)!=="'")))throw new Error("You seem to be using a value for 'content' without quotes, try replacing it with `content: '\""+r+"\"'`");var n=Aw(t,r);return n!==""&&!Sc(t)&&t.indexOf("-")!==-1&&eh[t]===void 0&&(eh[t]=!0,console.error("Using kebab-case for css properties in objects is not supported. Did you mean "+t.replace(Iw,"ms-").replace($w,function(o,a){return a.toUpperCase()})+"?")),n}}var Hm="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function To(e,t,r){if(r==null)return"";if(r.__emotion_styles!==void 0){if(process.env.NODE_ENV!=="production"&&r.toString()==="NO_COMPONENT_SELECTOR")throw new Error(Hm);return r}switch(typeof r){case"boolean":return"";case"object":{if(r.anim===1)return br={name:r.name,styles:r.styles,next:br},r.name;if(r.styles!==void 0){var n=r.next;if(n!==void 0)for(;n!==void 0;)br={name:n.name,styles:n.styles,next:br},n=n.next;var o=r.styles+";";return process.env.NODE_ENV!=="production"&&r.map!==void 0&&(o+=r.map),o}return zw(e,t,r)}case"function":{if(e!==void 0){var a=br,l=r(e);return br=a,To(e,t,l)}else process.env.NODE_ENV!=="production"&&console.error("Functions that are interpolated in css calls will be stringified.\nIf you want to have a css call based on props, create a function that returns a css call like this\nlet dynamicStyle = (props) => css`color: ${props.color}`\nIt can be called directly with props or interpolated in a styled call like this\nlet SomeComponent = styled('div')`${dynamicStyle}`");break}case"string":if(process.env.NODE_ENV!=="production"){var u=[],c=r.replace(Bm,function(p,m,h){var g="animation"+u.length;return u.push("const "+g+" = keyframes`"+h.replace(/^@keyframes animation-\w+/,"")+"`"),"${"+g+"}"});u.length&&console.error("`keyframes` output got interpolated into plain string, please wrap it with `css`.\n\nInstead of doing this:\n\n"+[].concat(u,["`"+c+"`"]).join(`
|
|
7
|
+
`)+`
|
|
8
|
+
|
|
9
|
+
You should wrap it with \`css\` like this:
|
|
10
|
+
|
|
11
|
+
`+("css`"+c+"`"))}break}if(t==null)return r;var f=t[r];return f!==void 0?f:r}function zw(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=To(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object")t!=null&&t[l]!==void 0?n+=a+"{"+t[l]+"}":Jf(l)&&(n+=Pl(a)+":"+Za(a,l)+";");else{if(a==="NO_COMPONENT_SELECTOR"&&process.env.NODE_ENV!=="production")throw new Error(Hm);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Jf(l[u])&&(n+=Pl(a)+":"+Za(a,l[u])+";");else{var c=To(e,t,l);switch(a){case"animation":case"animationName":{n+=Pl(a)+":"+c+";";break}default:process.env.NODE_ENV!=="production"&&a==="undefined"&&console.error(kw),n+=a+"{"+c+"}"}}}}return n}var th=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Vm;process.env.NODE_ENV!=="production"&&(Vm=/\/\*#\ssourceMappingURL=data:application\/json;\S+\s+\*\//g);var br,Si=function(t,r,n){if(t.length===1&&typeof t[0]=="object"&&t[0]!==null&&t[0].styles!==void 0)return t[0];var o=!0,a="";br=void 0;var l=t[0];l==null||l.raw===void 0?(o=!1,a+=To(n,r,l)):(process.env.NODE_ENV!=="production"&&l[0]===void 0&&console.error(Qf),a+=l[0]);for(var u=1;u<t.length;u++)a+=To(n,r,t[u]),o&&(process.env.NODE_ENV!=="production"&&l[u]===void 0&&console.error(Qf),a+=l[u]);var c;process.env.NODE_ENV!=="production"&&(a=a.replace(Vm,function(h){return c=h,""})),th.lastIndex=0;for(var f="",p;(p=th.exec(a))!==null;)f+="-"+p[1];var m=Rw(a)+f;return process.env.NODE_ENV!=="production"?{name:m,styles:a,map:c,next:br,toString:function(){return"You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."}}:{name:m,styles:a,next:br}},Ww=function(t){return t()},Um=Z[`useInsertionEffect${Math.random()}`.slice(0,5)]?Z[`useInsertionEffect${Math.random()}`.slice(0,5)]:!1,Mc=Um||Ww,rh=Um||Z.useLayoutEffect,Fw={}.hasOwnProperty,Pc=Z.createContext(typeof HTMLElement!="undefined"?jm({key:"css"}):null);process.env.NODE_ENV!=="production"&&(Pc.displayName="EmotionCacheContext");var qm=Pc.Provider,ws=function(t){return Q.forwardRef(function(r,n){var o=Q.useContext(Pc);return t(r,o,n)})},gn=Z.createContext({});process.env.NODE_ENV!=="production"&&(gn.displayName="EmotionThemeContext");var nh="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",ih="__EMOTION_LABEL_PLEASE_DO_NOT_USE__",jw=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return bs(r,n,o),Mc(function(){return _s(r,n,o)}),null},Bw=ws(function(e,t,r){var n=e.css;typeof n=="string"&&t.registered[n]!==void 0&&(n=t.registered[n]);var o=e[nh],a=[n],l="";typeof e.className=="string"?l=Ec(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var u=Si(a,void 0,Z.useContext(gn));if(process.env.NODE_ENV!=="production"&&u.name.indexOf("-")===-1){var c=e[ih];c&&(u=Si([u,"label:"+c+";"]))}l+=t.key+"-"+u.name;var f={};for(var p in e)Fw.call(e,p)&&p!=="css"&&p!==nh&&(process.env.NODE_ENV==="production"||p!==ih)&&(f[p]=e[p]);return f.ref=r,f.className=l,Z.createElement(Z.Fragment,null,Z.createElement(jw,{cache:t,serialized:u,isStringTag:typeof o=="string"}),Z.createElement(o,f))});process.env.NODE_ENV!=="production"&&(Bw.displayName="EmotionCssPropInternal");var Hw={name:"@emotion/react",version:"11.11.4",main:"dist/emotion-react.cjs.js",module:"dist/emotion-react.esm.js",browser:{"./dist/emotion-react.esm.js":"./dist/emotion-react.browser.esm.js"},exports:{".":{module:{worker:"./dist/emotion-react.worker.esm.js",browser:"./dist/emotion-react.browser.esm.js",default:"./dist/emotion-react.esm.js"},import:"./dist/emotion-react.cjs.mjs",default:"./dist/emotion-react.cjs.js"},"./jsx-runtime":{module:{worker:"./jsx-runtime/dist/emotion-react-jsx-runtime.worker.esm.js",browser:"./jsx-runtime/dist/emotion-react-jsx-runtime.browser.esm.js",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.esm.js"},import:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.mjs",default:"./jsx-runtime/dist/emotion-react-jsx-runtime.cjs.js"},"./_isolated-hnrs":{module:{worker:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.worker.esm.js",browser:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.browser.esm.js",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.esm.js"},import:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.mjs",default:"./_isolated-hnrs/dist/emotion-react-_isolated-hnrs.cjs.js"},"./jsx-dev-runtime":{module:{worker:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.worker.esm.js",browser:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.browser.esm.js",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.esm.js"},import:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.mjs",default:"./jsx-dev-runtime/dist/emotion-react-jsx-dev-runtime.cjs.js"},"./package.json":"./package.json","./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}},types:"types/index.d.ts",files:["src","dist","jsx-runtime","jsx-dev-runtime","_isolated-hnrs","types/*.d.ts","macro.*"],sideEffects:!1,author:"Emotion Contributors",license:"MIT",scripts:{"test:typescript":"dtslint types"},dependencies:{"@babel/runtime":"^7.18.3","@emotion/babel-plugin":"^11.11.0","@emotion/cache":"^11.11.0","@emotion/serialize":"^1.1.3","@emotion/use-insertion-effect-with-fallbacks":"^1.0.1","@emotion/utils":"^1.2.1","@emotion/weak-memoize":"^0.3.1","hoist-non-react-statics":"^3.3.1"},peerDependencies:{react:">=16.8.0"},peerDependenciesMeta:{"@types/react":{optional:!0}},devDependencies:{"@definitelytyped/dtslint":"0.0.112","@emotion/css":"11.11.2","@emotion/css-prettifier":"1.1.3","@emotion/server":"11.11.0","@emotion/styled":"11.11.0","html-tag-names":"^1.1.2",react:"16.14.0","svg-tag-names":"^1.1.1",typescript:"^4.5.5"},repository:"https://github.com/emotion-js/emotion/tree/main/packages/react",publishConfig:{access:"public"},"umd:main":"dist/emotion-react.umd.min.js",preconstruct:{entrypoints:["./index.js","./jsx-runtime.js","./jsx-dev-runtime.js","./_isolated-hnrs.js"],umdName:"emotionReact",exports:{envConditions:["browser","worker"],extra:{"./types/css-prop":"./types/css-prop.d.ts","./macro":{types:{import:"./macro.d.mts",default:"./macro.d.ts"},default:"./macro.js"}}}}},oh=!1,Rc=ws(function(e,t){process.env.NODE_ENV!=="production"&&!oh&&(e.className||e.css)&&(console.error("It looks like you're using the css prop on Global, did you mean to use the styles prop instead?"),oh=!0);var r=e.styles,n=Si([r],void 0,Z.useContext(gn)),o=Z.useRef();return rh(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,c=document.querySelector('style[data-emotion="'+a+" "+n.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),c!==null&&(u=!0,c.setAttribute("data-emotion",a),l.hydrate([c])),o.current=[l,u],function(){l.flush()}},[t]),rh(function(){var a=o.current,l=a[0],u=a[1];if(u){a[1]=!1;return}if(n.next!==void 0&&_s(t,n.next,!0),l.tags.length){var c=l.tags[l.tags.length-1].nextElementSibling;l.before=c,l.flush()}t.insert("",n,l,!1)},[t,n.name]),null});process.env.NODE_ENV!=="production"&&(Rc.displayName="EmotionGlobal");function Oc(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Si(t)}var Wo=function(){var t=Oc.apply(void 0,arguments),r="animation-"+t.name;return{name:r,styles:"@keyframes "+r+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},Vw=function e(t){for(var r=t.length,n=0,o="";n<r;n++){var a=t[n];if(a!=null){var l=void 0;switch(typeof a){case"boolean":break;case"object":{if(Array.isArray(a))l=e(a);else{process.env.NODE_ENV!=="production"&&a.styles!==void 0&&a.name!==void 0&&console.error("You have passed styles created with `css` from `@emotion/react` package to the `cx`.\n`cx` is meant to compose class names (strings) so you should convert those styles to a class name by passing them to the `css` received from <ClassNames/> component."),l="";for(var u in a)a[u]&&u&&(l&&(l+=" "),l+=u)}break}default:l=a}l&&(o&&(o+=" "),o+=l)}}return o};function Uw(e,t,r){var n=[],o=Ec(e,n,r);return n.length<2?r:o+t(n)}var qw=function(t){var r=t.cache,n=t.serializedArr;return Mc(function(){for(var o=0;o<n.length;o++)_s(r,n[o],!1)}),null},Gw=ws(function(e,t){var r=!1,n=[],o=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("css can only be used during render");for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];var h=Si(p,t.registered);return n.push(h),bs(t,h,!1),t.key+"-"+h.name},a=function(){if(r&&process.env.NODE_ENV!=="production")throw new Error("cx can only be used during render");for(var f=arguments.length,p=new Array(f),m=0;m<f;m++)p[m]=arguments[m];return Uw(t.registered,o,Vw(p))},l={css:o,cx:a,theme:Z.useContext(gn)},u=e.children(l);return r=!0,Z.createElement(Z.Fragment,null,Z.createElement(qw,{cache:t,serializedArr:n}),u)});process.env.NODE_ENV!=="production"&&(Gw.displayName="EmotionClassNames");if(process.env.NODE_ENV!=="production"){var ah=!0,Yw=typeof jest!="undefined"||typeof vi!="undefined";if(ah&&!Yw){var sh=typeof globalThis!="undefined"?globalThis:ah?window:global,lh="__EMOTION_REACT_"+Hw.version.split(".")[0]+"__";sh[lh]&&console.warn("You are loading @emotion/react when it is already loaded. Running multiple instances may cause problems. This can happen if multiple versions are used, or if multiple builds of the same version are used."),sh[lh]=!0}}var Xw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Zw=zm(function(e){return Xw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Kw=Zw,Qw=function(t){return t!=="theme"},uh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?Kw:Qw},ch=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},dh=`You have illegal escape sequence in your template literal, most likely inside content's property value.
|
|
12
|
+
Because you write your CSS inside a JavaScript string you actually have to do double escaping, so for example "content: '\\00d7';" should become "content: '\\\\00d7';".
|
|
13
|
+
You can read more about this here:
|
|
14
|
+
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#ES2018_revision_of_illegal_escape_sequences`,Jw=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return bs(r,n,o),Mc(function(){return _s(r,n,o)}),null},ex=function e(t,r){if(process.env.NODE_ENV!=="production"&&t===void 0)throw new Error(`You are trying to create a styled element with an undefined component.
|
|
15
|
+
You may have forgotten to import it.`);var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var u=ch(t,r,n),c=u||uh(o),f=!c("as");return function(){var p=arguments,m=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),p[0]==null||p[0].raw===void 0)m.push.apply(m,p);else{process.env.NODE_ENV!=="production"&&p[0][0]===void 0&&console.error(dh),m.push(p[0][0]);for(var h=p.length,g=1;g<h;g++)process.env.NODE_ENV!=="production"&&p[0][g]===void 0&&console.error(dh),m.push(p[g],p[0][g])}var _=ws(function(y,x,S){var E=f&&y.as||o,T="",C=[],w=y;if(y.theme==null){w={};for(var M in y)w[M]=y[M];w.theme=Z.useContext(gn)}typeof y.className=="string"?T=Ec(x.registered,C,y.className):y.className!=null&&(T=y.className+" ");var O=Si(m.concat(C),x.registered,w);T+=x.key+"-"+O.name,l!==void 0&&(T+=" "+l);var D=f&&u===void 0?uh(E):c,A={};for(var $ in y)f&&$==="as"||D($)&&(A[$]=y[$]);return A.className=T,A.ref=S,Z.createElement(Z.Fragment,null,Z.createElement(Jw,{cache:x,serialized:O,isStringTag:typeof E=="string"}),Z.createElement(E,A))});return _.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",_.defaultProps=t.defaultProps,_.__emotion_real=_,_.__emotion_base=o,_.__emotion_styles=m,_.__emotion_forwardProp=u,Object.defineProperty(_,"toString",{value:function(){return l===void 0&&process.env.NODE_ENV!=="production"?"NO_COMPONENT_SELECTOR":"."+l}}),_.withComponent=function(y,x){return e(y,te({},r,x,{shouldForwardProp:ch(_,x,!0)})).apply(void 0,m)},_}},tx=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],wr=ex.bind();tx.forEach(function(e){wr[e]=wr(e)});function Mi(e){"@babel/helpers - typeof";return Mi=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},Mi(e)}function Fo(e){R.requiredArgs(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||Mi(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function rx(e,t){R.requiredArgs(2,arguments);var r=Fo(e),n=R.toInteger(t);if(isNaN(n))return new Date(NaN);if(!n)return r;var o=r.getDate(),a=new Date(r.getTime());a.setMonth(r.getMonth()+n+1,0);var l=a.getDate();return o>=l?a:(r.setFullYear(a.getFullYear(),a.getMonth(),o),r)}var nx={};function ix(){return nx}function fh(e,t){var r,n,o,a,l,u,c,f;R.requiredArgs(1,arguments);var p=ix(),m=R.toInteger((r=(n=(o=(a=t==null?void 0:t.weekStartsOn)!==null&&a!==void 0?a:t==null||(l=t.locale)===null||l===void 0||(u=l.options)===null||u===void 0?void 0:u.weekStartsOn)!==null&&o!==void 0?o:p.weekStartsOn)!==null&&n!==void 0?n:(c=p.locale)===null||c===void 0||(f=c.options)===null||f===void 0?void 0:f.weekStartsOn)!==null&&r!==void 0?r:0);if(!(m>=0&&m<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var h=Fo(e),g=h.getUTCDay(),_=(g<m?7:0)+g-m;return h.setUTCDate(h.getUTCDate()-_),h.setUTCHours(0,0,0,0),h}var ox={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},ax=function(t,r,n){var o,a=ox[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:o+" ago":o};function Le(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=t.width?String(t.width):e.defaultWidth,n=e.formats[r]||e.formats[e.defaultWidth];return n}}var sx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},lx={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ux={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cx={date:Le({formats:sx,defaultWidth:"full"}),time:Le({formats:lx,defaultWidth:"full"}),dateTime:Le({formats:ux,defaultWidth:"full"})},dx={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},fx=function(t,r,n,o){return dx[t]};function ye(e){return function(t,r){var n=r!=null&&r.context?String(r.context):"standalone",o;if(n==="formatting"&&e.formattingValues){var a=e.defaultFormattingWidth||e.defaultWidth,l=r!=null&&r.width?String(r.width):a;o=e.formattingValues[l]||e.formattingValues[a]}else{var u=e.defaultWidth,c=r!=null&&r.width?String(r.width):e.defaultWidth;o=e.values[c]||e.values[u]}var f=e.argumentCallback?e.argumentCallback(t):t;return o[f]}}var hx={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},px={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},mx={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},vx={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},gx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},yx={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},bx=function(t,r){var n=Number(t),o=n%100;if(o>20||o<10)switch(o%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},_x={ordinalNumber:bx,era:ye({values:hx,defaultWidth:"wide"}),quarter:ye({values:px,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:mx,defaultWidth:"wide"}),day:ye({values:vx,defaultWidth:"wide"}),dayPeriod:ye({values:gx,defaultWidth:"wide",formattingValues:yx,defaultFormattingWidth:"wide"})};function be(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],a=t.match(o);if(!a)return null;var l=a[0],u=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(u)?xx(u,function(m){return m.test(l)}):wx(u,function(m){return m.test(l)}),f;f=e.valueCallback?e.valueCallback(c):c,f=r.valueCallback?r.valueCallback(f):f;var p=t.slice(l.length);return{value:f,rest:p}}}function wx(e,t){for(var r in e)if(e.hasOwnProperty(r)&&t(e[r]))return r}function xx(e,t){for(var r=0;r<e.length;r++)if(t(e[r]))return r}function lr(e){return function(t){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.match(e.matchPattern);if(!n)return null;var o=n[0],a=t.match(e.parsePattern);if(!a)return null;var l=e.valueCallback?e.valueCallback(a[0]):a[0];l=r.valueCallback?r.valueCallback(l):l;var u=t.slice(o.length);return{value:l,rest:u}}}var Cx=/^(\d+)(th|st|nd|rd)?/i,Tx=/\d+/i,Ex={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Sx={any:[/^b/i,/^(a|c)/i]},Mx={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Px={any:[/1/i,/2/i,/3/i,/4/i]},Rx={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Ox={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},kx={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Nx={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Dx={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Lx={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Ax={ordinalNumber:lr({matchPattern:Cx,parsePattern:Tx,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:Ex,defaultMatchWidth:"wide",parsePatterns:Sx,defaultParseWidth:"any"}),quarter:be({matchPatterns:Mx,defaultMatchWidth:"wide",parsePatterns:Px,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:Rx,defaultMatchWidth:"wide",parsePatterns:Ox,defaultParseWidth:"any"}),day:be({matchPatterns:kx,defaultMatchWidth:"wide",parsePatterns:Nx,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:Dx,defaultMatchWidth:"any",parsePatterns:Lx,defaultParseWidth:"any"})},Ix={code:"en-US",formatDistance:ax,formatLong:cx,formatRelative:fx,localize:_x,match:Ax,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Gm(e,t){R.requiredArgs(2,arguments);var r=R.toInteger(t);return rx(e,r*12)}function Ym(e,t){R.requiredArgs(2,arguments);var r=R.toInteger(t);return Gm(e,-r)}function $x(e){R.requiredArgs(1,arguments);var t=Fo(e),r=t.getFullYear(),n=t.getMonth(),o=new Date(0);return o.setFullYear(r,n+1,0),o.setHours(0,0,0,0),o.getDate()}function zx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cu(e,t){return cu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},cu(e,t)}function Wx(e,t){if(Mi(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(Mi(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Fx(e){var t=Wx(e,"string");return Mi(t)=="symbol"?t:t+""}function jx(e,t,r){return t=Fx(t),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bx(e,t){R.requiredArgs(2,arguments);var r=Fo(e),n=R.toInteger(t),o=r.getFullYear(),a=r.getDate(),l=new Date(0);l.setFullYear(o,n,15),l.setHours(0,0,0,0);var u=$x(l);return r.setMonth(n,Math.min(a,u)),r}function Hx(e,t){R.requiredArgs(2,arguments);var r=Fo(e),n=R.toInteger(t);return isNaN(r.getTime())?new Date(NaN):(r.setFullYear(n),r)}function Eo(e,t,r){R.requiredArgs(2,arguments);var n=fh(e,r),o=fh(t,r);return n.getTime()===o.getTime()}var hh={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},Vx=function(t,r,n){var o,a=n!=null&&n.addSuffix?hh[t].withPreposition:hh[t].standalone;return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"in "+o:"vor "+o:o},Ux={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},qx={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Gx={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Yx={date:Le({formats:Ux,defaultWidth:"full"}),time:Le({formats:qx,defaultWidth:"full"}),dateTime:Le({formats:Gx,defaultWidth:"full"})},Xx={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},Zx=function(t,r,n,o){return Xx[t]},Kx={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},Qx={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},du={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},Jx={narrow:du.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:du.wide},e1={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},t1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},r1={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},n1=function(t){var r=Number(t);return r+"."},i1={ordinalNumber:n1,era:ye({values:Kx,defaultWidth:"wide"}),quarter:ye({values:Qx,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:du,formattingValues:Jx,defaultWidth:"wide"}),day:ye({values:e1,defaultWidth:"wide"}),dayPeriod:ye({values:t1,defaultWidth:"wide",formattingValues:r1,defaultFormattingWidth:"wide"})},o1=/^(\d+)(\.)?/i,a1=/\d+/i,s1={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},l1={any:[/^v/i,/^n/i]},u1={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},c1={any:[/1/i,/2/i,/3/i,/4/i]},d1={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},f1={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},h1={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},p1={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},m1={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},v1={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},g1={ordinalNumber:lr({matchPattern:o1,parsePattern:a1,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:s1,defaultMatchWidth:"wide",parsePatterns:l1,defaultParseWidth:"any"}),quarter:be({matchPatterns:u1,defaultMatchWidth:"wide",parsePatterns:c1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:d1,defaultMatchWidth:"wide",parsePatterns:f1,defaultParseWidth:"any"}),day:be({matchPatterns:h1,defaultMatchWidth:"wide",parsePatterns:p1,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:m1,defaultMatchWidth:"wide",parsePatterns:v1,defaultParseWidth:"any"})},y1={code:"de",formatDistance:Vx,formatLong:Yx,formatRelative:Zx,localize:i1,match:g1,options:{weekStartsOn:1,firstWeekContainsDate:4}},b1={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},_1=function(t,r,n){var o,a=b1[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"en "+o:"hace "+o:o},w1={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},x1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},C1={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},T1={date:Le({formats:w1,defaultWidth:"full"}),time:Le({formats:x1,defaultWidth:"full"}),dateTime:Le({formats:C1,defaultWidth:"full"})},E1={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},S1={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},M1=function(t,r,n,o){return r.getUTCHours()!==1?S1[t]:E1[t]},P1={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},R1={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},O1={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},k1={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},N1={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},D1={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},L1=function(t,r){var n=Number(t);return n+"º"},A1={ordinalNumber:L1,era:ye({values:P1,defaultWidth:"wide"}),quarter:ye({values:R1,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:O1,defaultWidth:"wide"}),day:ye({values:k1,defaultWidth:"wide"}),dayPeriod:ye({values:N1,defaultWidth:"wide",formattingValues:D1,defaultFormattingWidth:"wide"})},I1=/^(\d+)(º)?/i,$1=/\d+/i,z1={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},W1={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},F1={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},j1={any:[/1/i,/2/i,/3/i,/4/i]},B1={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},H1={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},V1={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},U1={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},q1={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},G1={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},Y1={ordinalNumber:lr({matchPattern:I1,parsePattern:$1,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:z1,defaultMatchWidth:"wide",parsePatterns:W1,defaultParseWidth:"any"}),quarter:be({matchPatterns:F1,defaultMatchWidth:"wide",parsePatterns:j1,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:B1,defaultMatchWidth:"wide",parsePatterns:H1,defaultParseWidth:"any"}),day:be({matchPatterns:V1,defaultMatchWidth:"wide",parsePatterns:U1,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:q1,defaultMatchWidth:"any",parsePatterns:G1,defaultParseWidth:"any"})},X1={code:"es",formatDistance:_1,formatLong:T1,formatRelative:M1,localize:A1,match:Y1,options:{weekStartsOn:1,firstWeekContainsDate:1}},Z1={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},K1=function(t,r,n){var o,a=Z1[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"dans "+o:"il y a "+o:o},Q1={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},J1={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},eC={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},tC={date:Le({formats:Q1,defaultWidth:"full"}),time:Le({formats:J1,defaultWidth:"full"}),dateTime:Le({formats:eC,defaultWidth:"full"})},rC={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},nC=function(t,r,n,o){return rC[t]},iC={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},oC={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},aC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},sC={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},lC={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},uC=function(t,r){var n=Number(t),o=r==null?void 0:r.unit;if(n===0)return"0";var a=["year","week","hour","minute","second"],l;return n===1?l=o&&a.includes(o)?"ère":"er":l="ème",n+l},cC={ordinalNumber:uC,era:ye({values:iC,defaultWidth:"wide"}),quarter:ye({values:oC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:aC,defaultWidth:"wide"}),day:ye({values:sC,defaultWidth:"wide"}),dayPeriod:ye({values:lC,defaultWidth:"wide"})},dC=/^(\d+)(ième|ère|ème|er|e)?/i,fC=/\d+/i,hC={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},pC={any:[/^av/i,/^ap/i]},mC={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},vC={any:[/1/i,/2/i,/3/i,/4/i]},gC={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},yC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},bC={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},_C={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},wC={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},xC={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},CC={ordinalNumber:lr({matchPattern:dC,parsePattern:fC,valueCallback:function(t){return parseInt(t)}}),era:be({matchPatterns:hC,defaultMatchWidth:"wide",parsePatterns:pC,defaultParseWidth:"any"}),quarter:be({matchPatterns:mC,defaultMatchWidth:"wide",parsePatterns:vC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:gC,defaultMatchWidth:"wide",parsePatterns:yC,defaultParseWidth:"any"}),day:be({matchPatterns:bC,defaultMatchWidth:"wide",parsePatterns:_C,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:wC,defaultMatchWidth:"any",parsePatterns:xC,defaultParseWidth:"any"})},TC={code:"fr",formatDistance:K1,formatLong:tC,formatRelative:nC,localize:cC,match:CC,options:{weekStartsOn:1,firstWeekContainsDate:4}},EC={lessThanXSeconds:{one:"meno di un secondo",other:"meno di {{count}} secondi"},xSeconds:{one:"un secondo",other:"{{count}} secondi"},halfAMinute:"alcuni secondi",lessThanXMinutes:{one:"meno di un minuto",other:"meno di {{count}} minuti"},xMinutes:{one:"un minuto",other:"{{count}} minuti"},aboutXHours:{one:"circa un'ora",other:"circa {{count}} ore"},xHours:{one:"un'ora",other:"{{count}} ore"},xDays:{one:"un giorno",other:"{{count}} giorni"},aboutXWeeks:{one:"circa una settimana",other:"circa {{count}} settimane"},xWeeks:{one:"una settimana",other:"{{count}} settimane"},aboutXMonths:{one:"circa un mese",other:"circa {{count}} mesi"},xMonths:{one:"un mese",other:"{{count}} mesi"},aboutXYears:{one:"circa un anno",other:"circa {{count}} anni"},xYears:{one:"un anno",other:"{{count}} anni"},overXYears:{one:"più di un anno",other:"più di {{count}} anni"},almostXYears:{one:"quasi un anno",other:"quasi {{count}} anni"}},SC=function(t,r,n){var o,a=EC[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"tra "+o:o+" fa":o},MC={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd/MM/y"},PC={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},RC={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},OC={date:Le({formats:MC,defaultWidth:"full"}),time:Le({formats:PC,defaultWidth:"full"}),dateTime:Le({formats:RC,defaultWidth:"full"})},kc=["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"];function kC(e){switch(e){case 0:return"'domenica scorsa alle' p";default:return"'"+kc[e]+" scorso alle' p"}}function ph(e){return"'"+kc[e]+" alle' p"}function NC(e){switch(e){case 0:return"'domenica prossima alle' p";default:return"'"+kc[e]+" prossimo alle' p"}}var DC={lastWeek:function(t,r,n){var o=t.getUTCDay();return Eo(t,r,n)?ph(o):kC(o)},yesterday:"'ieri alle' p",today:"'oggi alle' p",tomorrow:"'domani alle' p",nextWeek:function(t,r,n){var o=t.getUTCDay();return Eo(t,r,n)?ph(o):NC(o)},other:"P"},LC=function(t,r,n,o){var a=DC[t];return typeof a=="function"?a(r,n,o):a},AC={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["avanti Cristo","dopo Cristo"]},IC={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},$C={narrow:["G","F","M","A","M","G","L","A","S","O","N","D"],abbreviated:["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],wide:["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]},zC={narrow:["D","L","M","M","G","V","S"],short:["dom","lun","mar","mer","gio","ven","sab"],abbreviated:["dom","lun","mar","mer","gio","ven","sab"],wide:["domenica","lunedì","martedì","mercoledì","giovedì","venerdì","sabato"]},WC={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"mattina",afternoon:"pomeriggio",evening:"sera",night:"notte"}},FC={narrow:{am:"m.",pm:"p.",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},abbreviated:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"},wide:{am:"AM",pm:"PM",midnight:"mezzanotte",noon:"mezzogiorno",morning:"di mattina",afternoon:"del pomeriggio",evening:"di sera",night:"di notte"}},jC=function(t,r){var n=Number(t);return String(n)},BC={ordinalNumber:jC,era:ye({values:AC,defaultWidth:"wide"}),quarter:ye({values:IC,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:$C,defaultWidth:"wide"}),day:ye({values:zC,defaultWidth:"wide"}),dayPeriod:ye({values:WC,defaultWidth:"wide",formattingValues:FC,defaultFormattingWidth:"wide"})},HC=/^(\d+)(º)?/i,VC=/\d+/i,UC={narrow:/^(aC|dC)/i,abbreviated:/^(a\.?\s?C\.?|a\.?\s?e\.?\s?v\.?|d\.?\s?C\.?|e\.?\s?v\.?)/i,wide:/^(avanti Cristo|avanti Era Volgare|dopo Cristo|Era Volgare)/i},qC={any:[/^a/i,/^(d|e)/i]},GC={narrow:/^[1234]/i,abbreviated:/^t[1234]/i,wide:/^[1234](º)? trimestre/i},YC={any:[/1/i,/2/i,/3/i,/4/i]},XC={narrow:/^[gfmalsond]/i,abbreviated:/^(gen|feb|mar|apr|mag|giu|lug|ago|set|ott|nov|dic)/i,wide:/^(gennaio|febbraio|marzo|aprile|maggio|giugno|luglio|agosto|settembre|ottobre|novembre|dicembre)/i},ZC={narrow:[/^g/i,/^f/i,/^m/i,/^a/i,/^m/i,/^g/i,/^l/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ge/i,/^f/i,/^mar/i,/^ap/i,/^mag/i,/^gi/i,/^l/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},KC={narrow:/^[dlmgvs]/i,short:/^(do|lu|ma|me|gi|ve|sa)/i,abbreviated:/^(dom|lun|mar|mer|gio|ven|sab)/i,wide:/^(domenica|luned[i|ì]|marted[i|ì]|mercoled[i|ì]|gioved[i|ì]|venerd[i|ì]|sabato)/i},QC={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^g/i,/^v/i,/^s/i],any:[/^d/i,/^l/i,/^ma/i,/^me/i,/^g/i,/^v/i,/^s/i]},JC={narrow:/^(a|m\.|p|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i,any:/^([ap]\.?\s?m\.?|mezzanotte|mezzogiorno|(di|del) (mattina|pomeriggio|sera|notte))/i},eT={any:{am:/^a/i,pm:/^p/i,midnight:/^mezza/i,noon:/^mezzo/i,morning:/mattina/i,afternoon:/pomeriggio/i,evening:/sera/i,night:/notte/i}},tT={ordinalNumber:lr({matchPattern:HC,parsePattern:VC,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:UC,defaultMatchWidth:"wide",parsePatterns:qC,defaultParseWidth:"any"}),quarter:be({matchPatterns:GC,defaultMatchWidth:"wide",parsePatterns:YC,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:XC,defaultMatchWidth:"wide",parsePatterns:ZC,defaultParseWidth:"any"}),day:be({matchPatterns:KC,defaultMatchWidth:"wide",parsePatterns:QC,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:JC,defaultMatchWidth:"any",parsePatterns:eT,defaultParseWidth:"any"})},rT={code:"it",formatDistance:SC,formatLong:OC,formatRelative:LC,localize:BC,match:tT,options:{weekStartsOn:1,firstWeekContainsDate:4}},nT={lessThanXSeconds:{one:"1秒未満",other:"{{count}}秒未満",oneWithSuffix:"約1秒",otherWithSuffix:"約{{count}}秒"},xSeconds:{one:"1秒",other:"{{count}}秒"},halfAMinute:"30秒",lessThanXMinutes:{one:"1分未満",other:"{{count}}分未満",oneWithSuffix:"約1分",otherWithSuffix:"約{{count}}分"},xMinutes:{one:"1分",other:"{{count}}分"},aboutXHours:{one:"約1時間",other:"約{{count}}時間"},xHours:{one:"1時間",other:"{{count}}時間"},xDays:{one:"1日",other:"{{count}}日"},aboutXWeeks:{one:"約1週間",other:"約{{count}}週間"},xWeeks:{one:"1週間",other:"{{count}}週間"},aboutXMonths:{one:"約1か月",other:"約{{count}}か月"},xMonths:{one:"1か月",other:"{{count}}か月"},aboutXYears:{one:"約1年",other:"約{{count}}年"},xYears:{one:"1年",other:"{{count}}年"},overXYears:{one:"1年以上",other:"{{count}}年以上"},almostXYears:{one:"1年近く",other:"{{count}}年近く"}},iT=function(t,r,n){n=n||{};var o,a=nT[t];return typeof a=="string"?o=a:r===1?n.addSuffix&&a.oneWithSuffix?o=a.oneWithSuffix:o=a.one:n.addSuffix&&a.otherWithSuffix?o=a.otherWithSuffix.replace("{{count}}",String(r)):o=a.other.replace("{{count}}",String(r)),n.addSuffix?n.comparison&&n.comparison>0?o+"後":o+"前":o},oT={full:"y年M月d日EEEE",long:"y年M月d日",medium:"y/MM/dd",short:"y/MM/dd"},aT={full:"H時mm分ss秒 zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},sT={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},lT={date:Le({formats:oT,defaultWidth:"full"}),time:Le({formats:aT,defaultWidth:"full"}),dateTime:Le({formats:sT,defaultWidth:"full"})},uT={lastWeek:"先週のeeeeのp",yesterday:"昨日のp",today:"今日のp",tomorrow:"明日のp",nextWeek:"翌週のeeeeのp",other:"P"},cT=function(t,r,n,o){return uT[t]},dT={narrow:["BC","AC"],abbreviated:["紀元前","西暦"],wide:["紀元前","西暦"]},fT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["第1四半期","第2四半期","第3四半期","第4四半期"]},hT={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"]},pT={narrow:["日","月","火","水","木","金","土"],short:["日","月","火","水","木","金","土"],abbreviated:["日","月","火","水","木","金","土"],wide:["日曜日","月曜日","火曜日","水曜日","木曜日","金曜日","土曜日"]},mT={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},vT={narrow:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},abbreviated:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"},wide:{am:"午前",pm:"午後",midnight:"深夜",noon:"正午",morning:"朝",afternoon:"午後",evening:"夜",night:"深夜"}},gT=function(t,r){var n=Number(t),o=String(r==null?void 0:r.unit);switch(o){case"year":return"".concat(n,"年");case"quarter":return"第".concat(n,"四半期");case"month":return"".concat(n,"月");case"week":return"第".concat(n,"週");case"date":return"".concat(n,"日");case"hour":return"".concat(n,"時");case"minute":return"".concat(n,"分");case"second":return"".concat(n,"秒");default:return"".concat(n)}},yT={ordinalNumber:gT,era:ye({values:dT,defaultWidth:"wide"}),quarter:ye({values:fT,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:hT,defaultWidth:"wide"}),day:ye({values:pT,defaultWidth:"wide"}),dayPeriod:ye({values:mT,defaultWidth:"wide",formattingValues:vT,defaultFormattingWidth:"wide"})},bT=/^第?\d+(年|四半期|月|週|日|時|分|秒)?/i,_T=/\d+/i,wT={narrow:/^(B\.?C\.?|A\.?D\.?)/i,abbreviated:/^(紀元[前後]|西暦)/i,wide:/^(紀元[前後]|西暦)/i},xT={narrow:[/^B/i,/^A/i],any:[/^(紀元前)/i,/^(西暦|紀元後)/i]},CT={narrow:/^[1234]/i,abbreviated:/^Q[1234]/i,wide:/^第[1234一二三四1234]四半期/i},TT={any:[/(1|一|1)/i,/(2|二|2)/i,/(3|三|3)/i,/(4|四|4)/i]},ET={narrow:/^([123456789]|1[012])/,abbreviated:/^([123456789]|1[012])月/i,wide:/^([123456789]|1[012])月/i},ST={any:[/^1\D/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},MT={narrow:/^[日月火水木金土]/,short:/^[日月火水木金土]/,abbreviated:/^[日月火水木金土]/,wide:/^[日月火水木金土]曜日/},PT={any:[/^日/,/^月/,/^火/,/^水/,/^木/,/^金/,/^土/]},RT={any:/^(AM|PM|午前|午後|正午|深夜|真夜中|夜|朝)/i},OT={any:{am:/^(A|午前)/i,pm:/^(P|午後)/i,midnight:/^深夜|真夜中/i,noon:/^正午/i,morning:/^朝/i,afternoon:/^午後/i,evening:/^夜/i,night:/^深夜/i}},kT={ordinalNumber:lr({matchPattern:bT,parsePattern:_T,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:wT,defaultMatchWidth:"wide",parsePatterns:xT,defaultParseWidth:"any"}),quarter:be({matchPatterns:CT,defaultMatchWidth:"wide",parsePatterns:TT,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:ET,defaultMatchWidth:"wide",parsePatterns:ST,defaultParseWidth:"any"}),day:be({matchPatterns:MT,defaultMatchWidth:"wide",parsePatterns:PT,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:RT,defaultMatchWidth:"any",parsePatterns:OT,defaultParseWidth:"any"})},NT={code:"ja",formatDistance:iT,formatLong:lT,formatRelative:cT,localize:yT,match:kT,options:{weekStartsOn:0,firstWeekContainsDate:1}},DT={lessThanXSeconds:{one:"1초 미만",other:"{{count}}초 미만"},xSeconds:{one:"1초",other:"{{count}}초"},halfAMinute:"30초",lessThanXMinutes:{one:"1분 미만",other:"{{count}}분 미만"},xMinutes:{one:"1분",other:"{{count}}분"},aboutXHours:{one:"약 1시간",other:"약 {{count}}시간"},xHours:{one:"1시간",other:"{{count}}시간"},xDays:{one:"1일",other:"{{count}}일"},aboutXWeeks:{one:"약 1주",other:"약 {{count}}주"},xWeeks:{one:"1주",other:"{{count}}주"},aboutXMonths:{one:"약 1개월",other:"약 {{count}}개월"},xMonths:{one:"1개월",other:"{{count}}개월"},aboutXYears:{one:"약 1년",other:"약 {{count}}년"},xYears:{one:"1년",other:"{{count}}년"},overXYears:{one:"1년 이상",other:"{{count}}년 이상"},almostXYears:{one:"거의 1년",other:"거의 {{count}}년"}},LT=function(t,r,n){var o,a=DT[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+" 후":o+" 전":o},AT={full:"y년 M월 d일 EEEE",long:"y년 M월 d일",medium:"y.MM.dd",short:"y.MM.dd"},IT={full:"a H시 mm분 ss초 zzzz",long:"a H:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},$T={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},zT={date:Le({formats:AT,defaultWidth:"full"}),time:Le({formats:IT,defaultWidth:"full"}),dateTime:Le({formats:$T,defaultWidth:"full"})},WT={lastWeek:"'지난' eeee p",yesterday:"'어제' p",today:"'오늘' p",tomorrow:"'내일' p",nextWeek:"'다음' eeee p",other:"P"},FT=function(t,r,n,o){return WT[t]},jT={narrow:["BC","AD"],abbreviated:["BC","AD"],wide:["기원전","서기"]},BT={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1분기","2분기","3분기","4분기"]},HT={narrow:["1","2","3","4","5","6","7","8","9","10","11","12"],abbreviated:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],wide:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"]},VT={narrow:["일","월","화","수","목","금","토"],short:["일","월","화","수","목","금","토"],abbreviated:["일","월","화","수","목","금","토"],wide:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},UT={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},qT={narrow:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},abbreviated:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"},wide:{am:"오전",pm:"오후",midnight:"자정",noon:"정오",morning:"아침",afternoon:"오후",evening:"저녁",night:"밤"}},GT=function(t,r){var n=Number(t),o=String(r==null?void 0:r.unit);switch(o){case"minute":case"second":return String(n);case"date":return n+"일";default:return n+"번째"}},YT={ordinalNumber:GT,era:ye({values:jT,defaultWidth:"wide"}),quarter:ye({values:BT,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:HT,defaultWidth:"wide"}),day:ye({values:VT,defaultWidth:"wide"}),dayPeriod:ye({values:UT,defaultWidth:"wide",formattingValues:qT,defaultFormattingWidth:"wide"})},XT=/^(\d+)(일|번째)?/i,ZT=/\d+/i,KT={narrow:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(기원전|서기)/i},QT={any:[/^(bc|기원전)/i,/^(ad|서기)/i]},JT={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]사?분기/i},eE={any:[/1/i,/2/i,/3/i,/4/i]},tE={narrow:/^(1[012]|[123456789])/,abbreviated:/^(1[012]|[123456789])월/i,wide:/^(1[012]|[123456789])월/i},rE={any:[/^1월?$/,/^2/,/^3/,/^4/,/^5/,/^6/,/^7/,/^8/,/^9/,/^10/,/^11/,/^12/]},nE={narrow:/^[일월화수목금토]/,short:/^[일월화수목금토]/,abbreviated:/^[일월화수목금토]/,wide:/^[일월화수목금토]요일/},iE={any:[/^일/,/^월/,/^화/,/^수/,/^목/,/^금/,/^토/]},oE={any:/^(am|pm|오전|오후|자정|정오|아침|저녁|밤)/i},aE={any:{am:/^(am|오전)/i,pm:/^(pm|오후)/i,midnight:/^자정/i,noon:/^정오/i,morning:/^아침/i,afternoon:/^오후/i,evening:/^저녁/i,night:/^밤/i}},sE={ordinalNumber:lr({matchPattern:XT,parsePattern:ZT,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:KT,defaultMatchWidth:"wide",parsePatterns:QT,defaultParseWidth:"any"}),quarter:be({matchPatterns:JT,defaultMatchWidth:"wide",parsePatterns:eE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:tE,defaultMatchWidth:"wide",parsePatterns:rE,defaultParseWidth:"any"}),day:be({matchPatterns:nE,defaultMatchWidth:"wide",parsePatterns:iE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:oE,defaultMatchWidth:"any",parsePatterns:aE,defaultParseWidth:"any"})},lE={code:"ko",formatDistance:LT,formatLong:zT,formatRelative:FT,localize:YT,match:sE,options:{weekStartsOn:0,firstWeekContainsDate:1}},uE={lessThanXSeconds:{one:"minder dan een seconde",other:"minder dan {{count}} seconden"},xSeconds:{one:"1 seconde",other:"{{count}} seconden"},halfAMinute:"een halve minuut",lessThanXMinutes:{one:"minder dan een minuut",other:"minder dan {{count}} minuten"},xMinutes:{one:"een minuut",other:"{{count}} minuten"},aboutXHours:{one:"ongeveer 1 uur",other:"ongeveer {{count}} uur"},xHours:{one:"1 uur",other:"{{count}} uur"},xDays:{one:"1 dag",other:"{{count}} dagen"},aboutXWeeks:{one:"ongeveer 1 week",other:"ongeveer {{count}} weken"},xWeeks:{one:"1 week",other:"{{count}} weken"},aboutXMonths:{one:"ongeveer 1 maand",other:"ongeveer {{count}} maanden"},xMonths:{one:"1 maand",other:"{{count}} maanden"},aboutXYears:{one:"ongeveer 1 jaar",other:"ongeveer {{count}} jaar"},xYears:{one:"1 jaar",other:"{{count}} jaar"},overXYears:{one:"meer dan 1 jaar",other:"meer dan {{count}} jaar"},almostXYears:{one:"bijna 1 jaar",other:"bijna {{count}} jaar"}},cE=function(t,r,n){var o,a=uE[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"over "+o:o+" geleden":o},dE={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"dd-MM-y"},fE={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},hE={full:"{{date}} 'om' {{time}}",long:"{{date}} 'om' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},pE={date:Le({formats:dE,defaultWidth:"full"}),time:Le({formats:fE,defaultWidth:"full"}),dateTime:Le({formats:hE,defaultWidth:"full"})},mE={lastWeek:"'afgelopen' eeee 'om' p",yesterday:"'gisteren om' p",today:"'vandaag om' p",tomorrow:"'morgen om' p",nextWeek:"eeee 'om' p",other:"P"},vE=function(t,r,n,o){return mE[t]},gE={narrow:["v.C.","n.C."],abbreviated:["v.Chr.","n.Chr."],wide:["voor Christus","na Christus"]},yE={narrow:["1","2","3","4"],abbreviated:["K1","K2","K3","K4"],wide:["1e kwartaal","2e kwartaal","3e kwartaal","4e kwartaal"]},bE={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]},_E={narrow:["Z","M","D","W","D","V","Z"],short:["zo","ma","di","wo","do","vr","za"],abbreviated:["zon","maa","din","woe","don","vri","zat"],wide:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},wE={narrow:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},abbreviated:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"},wide:{am:"AM",pm:"PM",midnight:"middernacht",noon:"het middaguur",morning:"'s ochtends",afternoon:"'s middags",evening:"'s avonds",night:"'s nachts"}},xE=function(t,r){var n=Number(t);return n+"e"},CE={ordinalNumber:xE,era:ye({values:gE,defaultWidth:"wide"}),quarter:ye({values:yE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:bE,defaultWidth:"wide"}),day:ye({values:_E,defaultWidth:"wide"}),dayPeriod:ye({values:wE,defaultWidth:"wide"})},TE=/^(\d+)e?/i,EE=/\d+/i,SE={narrow:/^([vn]\.? ?C\.?)/,abbreviated:/^([vn]\. ?Chr\.?)/,wide:/^((voor|na) Christus)/},ME={any:[/^v/,/^n/]},PE={narrow:/^[1234]/i,abbreviated:/^K[1234]/i,wide:/^[1234]e kwartaal/i},RE={any:[/1/i,/2/i,/3/i,/4/i]},OE={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mrt.|apr.|mei|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januari|februari|maart|april|mei|juni|juli|augustus|september|oktober|november|december)/i},kE={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^jan/i,/^feb/i,/^m(r|a)/i,/^apr/i,/^mei/i,/^jun/i,/^jul/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i]},NE={narrow:/^[zmdwv]/i,short:/^(zo|ma|di|wo|do|vr|za)/i,abbreviated:/^(zon|maa|din|woe|don|vri|zat)/i,wide:/^(zondag|maandag|dinsdag|woensdag|donderdag|vrijdag|zaterdag)/i},DE={narrow:[/^z/i,/^m/i,/^d/i,/^w/i,/^d/i,/^v/i,/^z/i],any:[/^zo/i,/^ma/i,/^di/i,/^wo/i,/^do/i,/^vr/i,/^za/i]},LE={any:/^(am|pm|middernacht|het middaguur|'s (ochtends|middags|avonds|nachts))/i},AE={any:{am:/^am/i,pm:/^pm/i,midnight:/^middernacht/i,noon:/^het middaguur/i,morning:/ochtend/i,afternoon:/middag/i,evening:/avond/i,night:/nacht/i}},IE={ordinalNumber:lr({matchPattern:TE,parsePattern:EE,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:SE,defaultMatchWidth:"wide",parsePatterns:ME,defaultParseWidth:"any"}),quarter:be({matchPatterns:PE,defaultMatchWidth:"wide",parsePatterns:RE,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:OE,defaultMatchWidth:"wide",parsePatterns:kE,defaultParseWidth:"any"}),day:be({matchPatterns:NE,defaultMatchWidth:"wide",parsePatterns:DE,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:LE,defaultMatchWidth:"any",parsePatterns:AE,defaultParseWidth:"any"})},$E={code:"nl",formatDistance:cE,formatLong:pE,formatRelative:vE,localize:CE,match:IE,options:{weekStartsOn:1,firstWeekContainsDate:4}},zE={lessThanXSeconds:{one:"menos de um segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"meio minuto",lessThanXMinutes:{one:"menos de um minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"aproximadamente 1 hora",other:"aproximadamente {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 dia",other:"{{count}} dias"},aboutXWeeks:{one:"aproximadamente 1 semana",other:"aproximadamente {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"aproximadamente 1 mês",other:"aproximadamente {{count}} meses"},xMonths:{one:"1 mês",other:"{{count}} meses"},aboutXYears:{one:"aproximadamente 1 ano",other:"aproximadamente {{count}} anos"},xYears:{one:"1 ano",other:"{{count}} anos"},overXYears:{one:"mais de 1 ano",other:"mais de {{count}} anos"},almostXYears:{one:"quase 1 ano",other:"quase {{count}} anos"}},WE=function(t,r,n){var o,a=zE[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?"daqui a "+o:"há "+o:o},FE={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d 'de' MMM 'de' y",short:"dd/MM/y"},jE={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},BE={full:"{{date}} 'às' {{time}}",long:"{{date}} 'às' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},HE={date:Le({formats:FE,defaultWidth:"full"}),time:Le({formats:jE,defaultWidth:"full"}),dateTime:Le({formats:BE,defaultWidth:"full"})},VE={lastWeek:function(t){var r=t.getUTCDay(),n=r===0||r===6?"último":"última";return"'"+n+"' eeee 'às' p"},yesterday:"'ontem às' p",today:"'hoje às' p",tomorrow:"'amanhã às' p",nextWeek:"eeee 'às' p",other:"P"},UE=function(t,r,n,o){var a=VE[t];return typeof a=="function"?a(r):a},qE={narrow:["aC","dC"],abbreviated:["a.C.","d.C."],wide:["antes de Cristo","depois de Cristo"]},GE={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},YE={narrow:["j","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["jan","fev","mar","abr","mai","jun","jul","ago","set","out","nov","dez"],wide:["janeiro","fevereiro","março","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]},XE={narrow:["d","s","t","q","q","s","s"],short:["dom","seg","ter","qua","qui","sex","sáb"],abbreviated:["dom","seg","ter","qua","qui","sex","sáb"],wide:["domingo","segunda-feira","terça-feira","quarta-feira","quinta-feira","sexta-feira","sábado"]},ZE={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"manhã",afternoon:"tarde",evening:"noite",night:"madrugada"}},KE={narrow:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},abbreviated:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"},wide:{am:"AM",pm:"PM",midnight:"meia-noite",noon:"meio-dia",morning:"da manhã",afternoon:"da tarde",evening:"da noite",night:"da madrugada"}},QE=function(t,r){var n=Number(t);return n+"º"},JE={ordinalNumber:QE,era:ye({values:qE,defaultWidth:"wide"}),quarter:ye({values:GE,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:YE,defaultWidth:"wide"}),day:ye({values:XE,defaultWidth:"wide"}),dayPeriod:ye({values:ZE,defaultWidth:"wide",formattingValues:KE,defaultFormattingWidth:"wide"})},eS=/^(\d+)(º|ª)?/i,tS=/\d+/i,rS={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes da era comum|depois de cristo|era comum)/i},nS={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes da era comum)/i,/^(depois de cristo|era comum)/i]},iS={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º|ª)? trimestre/i},oS={any:[/1/i,/2/i,/3/i,/4/i]},aS={narrow:/^[jfmasond]/i,abbreviated:/^(jan|fev|mar|abr|mai|jun|jul|ago|set|out|nov|dez)/i,wide:/^(janeiro|fevereiro|março|abril|maio|junho|julho|agosto|setembro|outubro|novembro|dezembro)/i},sS={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ab/i,/^mai/i,/^jun/i,/^jul/i,/^ag/i,/^s/i,/^o/i,/^n/i,/^d/i]},lS={narrow:/^[dstq]/i,short:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,abbreviated:/^(dom|seg|ter|qua|qui|sex|s[áa]b)/i,wide:/^(domingo|segunda-?\s?feira|terça-?\s?feira|quarta-?\s?feira|quinta-?\s?feira|sexta-?\s?feira|s[áa]bado)/i},uS={narrow:[/^d/i,/^s/i,/^t/i,/^q/i,/^q/i,/^s/i,/^s/i],any:[/^d/i,/^seg/i,/^t/i,/^qua/i,/^qui/i,/^sex/i,/^s[áa]/i]},cS={narrow:/^(a|p|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i,any:/^([ap]\.?\s?m\.?|meia-?\s?noite|meio-?\s?dia|(da) (manh[ãa]|tarde|noite|madrugada))/i},dS={any:{am:/^a/i,pm:/^p/i,midnight:/^meia/i,noon:/^meio/i,morning:/manh[ãa]/i,afternoon:/tarde/i,evening:/noite/i,night:/madrugada/i}},fS={ordinalNumber:lr({matchPattern:eS,parsePattern:tS,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:rS,defaultMatchWidth:"wide",parsePatterns:nS,defaultParseWidth:"any"}),quarter:be({matchPatterns:iS,defaultMatchWidth:"wide",parsePatterns:oS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:aS,defaultMatchWidth:"wide",parsePatterns:sS,defaultParseWidth:"any"}),day:be({matchPatterns:lS,defaultMatchWidth:"wide",parsePatterns:uS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:cS,defaultMatchWidth:"any",parsePatterns:dS,defaultParseWidth:"any"})},hS={code:"pt",formatDistance:WE,formatLong:HE,formatRelative:UE,localize:JE,match:fS,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ro(e,t){if(e.one!==void 0&&t===1)return e.one;var r=t%10,n=t%100;return r===1&&n!==11?e.singularNominative.replace("{{count}}",String(t)):r>=2&&r<=4&&(n<10||n>20)?e.singularGenitive.replace("{{count}}",String(t)):e.pluralGenitive.replace("{{count}}",String(t))}function kt(e){return function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?e.future?ro(e.future,t):"через "+ro(e.regular,t):e.past?ro(e.past,t):ro(e.regular,t)+" назад":ro(e.regular,t)}}var pS={lessThanXSeconds:kt({regular:{one:"меньше секунды",singularNominative:"меньше {{count}} секунды",singularGenitive:"меньше {{count}} секунд",pluralGenitive:"меньше {{count}} секунд"},future:{one:"меньше, чем через секунду",singularNominative:"меньше, чем через {{count}} секунду",singularGenitive:"меньше, чем через {{count}} секунды",pluralGenitive:"меньше, чем через {{count}} секунд"}}),xSeconds:kt({regular:{singularNominative:"{{count}} секунда",singularGenitive:"{{count}} секунды",pluralGenitive:"{{count}} секунд"},past:{singularNominative:"{{count}} секунду назад",singularGenitive:"{{count}} секунды назад",pluralGenitive:"{{count}} секунд назад"},future:{singularNominative:"через {{count}} секунду",singularGenitive:"через {{count}} секунды",pluralGenitive:"через {{count}} секунд"}}),halfAMinute:function(t,r){return r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"через полминуты":"полминуты назад":"полминуты"},lessThanXMinutes:kt({regular:{one:"меньше минуты",singularNominative:"меньше {{count}} минуты",singularGenitive:"меньше {{count}} минут",pluralGenitive:"меньше {{count}} минут"},future:{one:"меньше, чем через минуту",singularNominative:"меньше, чем через {{count}} минуту",singularGenitive:"меньше, чем через {{count}} минуты",pluralGenitive:"меньше, чем через {{count}} минут"}}),xMinutes:kt({regular:{singularNominative:"{{count}} минута",singularGenitive:"{{count}} минуты",pluralGenitive:"{{count}} минут"},past:{singularNominative:"{{count}} минуту назад",singularGenitive:"{{count}} минуты назад",pluralGenitive:"{{count}} минут назад"},future:{singularNominative:"через {{count}} минуту",singularGenitive:"через {{count}} минуты",pluralGenitive:"через {{count}} минут"}}),aboutXHours:kt({regular:{singularNominative:"около {{count}} часа",singularGenitive:"около {{count}} часов",pluralGenitive:"около {{count}} часов"},future:{singularNominative:"приблизительно через {{count}} час",singularGenitive:"приблизительно через {{count}} часа",pluralGenitive:"приблизительно через {{count}} часов"}}),xHours:kt({regular:{singularNominative:"{{count}} час",singularGenitive:"{{count}} часа",pluralGenitive:"{{count}} часов"}}),xDays:kt({regular:{singularNominative:"{{count}} день",singularGenitive:"{{count}} дня",pluralGenitive:"{{count}} дней"}}),aboutXWeeks:kt({regular:{singularNominative:"около {{count}} недели",singularGenitive:"около {{count}} недель",pluralGenitive:"около {{count}} недель"},future:{singularNominative:"приблизительно через {{count}} неделю",singularGenitive:"приблизительно через {{count}} недели",pluralGenitive:"приблизительно через {{count}} недель"}}),xWeeks:kt({regular:{singularNominative:"{{count}} неделя",singularGenitive:"{{count}} недели",pluralGenitive:"{{count}} недель"}}),aboutXMonths:kt({regular:{singularNominative:"около {{count}} месяца",singularGenitive:"около {{count}} месяцев",pluralGenitive:"около {{count}} месяцев"},future:{singularNominative:"приблизительно через {{count}} месяц",singularGenitive:"приблизительно через {{count}} месяца",pluralGenitive:"приблизительно через {{count}} месяцев"}}),xMonths:kt({regular:{singularNominative:"{{count}} месяц",singularGenitive:"{{count}} месяца",pluralGenitive:"{{count}} месяцев"}}),aboutXYears:kt({regular:{singularNominative:"около {{count}} года",singularGenitive:"около {{count}} лет",pluralGenitive:"около {{count}} лет"},future:{singularNominative:"приблизительно через {{count}} год",singularGenitive:"приблизительно через {{count}} года",pluralGenitive:"приблизительно через {{count}} лет"}}),xYears:kt({regular:{singularNominative:"{{count}} год",singularGenitive:"{{count}} года",pluralGenitive:"{{count}} лет"}}),overXYears:kt({regular:{singularNominative:"больше {{count}} года",singularGenitive:"больше {{count}} лет",pluralGenitive:"больше {{count}} лет"},future:{singularNominative:"больше, чем через {{count}} год",singularGenitive:"больше, чем через {{count}} года",pluralGenitive:"больше, чем через {{count}} лет"}}),almostXYears:kt({regular:{singularNominative:"почти {{count}} год",singularGenitive:"почти {{count}} года",pluralGenitive:"почти {{count}} лет"},future:{singularNominative:"почти через {{count}} год",singularGenitive:"почти через {{count}} года",pluralGenitive:"почти через {{count}} лет"}})},mS=function(t,r,n){return pS[t](r,n)},vS={full:"EEEE, d MMMM y 'г.'",long:"d MMMM y 'г.'",medium:"d MMM y 'г.'",short:"dd.MM.y"},gS={full:"H:mm:ss zzzz",long:"H:mm:ss z",medium:"H:mm:ss",short:"H:mm"},yS={any:"{{date}}, {{time}}"},bS={date:Le({formats:vS,defaultWidth:"full"}),time:Le({formats:gS,defaultWidth:"full"}),dateTime:Le({formats:yS,defaultWidth:"any"})},Nc=["воскресенье","понедельник","вторник","среду","четверг","пятницу","субботу"];function _S(e){var t=Nc[e];switch(e){case 0:return"'в прошлое "+t+" в' p";case 1:case 2:case 4:return"'в прошлый "+t+" в' p";case 3:case 5:case 6:return"'в прошлую "+t+" в' p"}}function mh(e){var t=Nc[e];return e===2?"'во "+t+" в' p":"'в "+t+" в' p"}function wS(e){var t=Nc[e];switch(e){case 0:return"'в следующее "+t+" в' p";case 1:case 2:case 4:return"'в следующий "+t+" в' p";case 3:case 5:case 6:return"'в следующую "+t+" в' p"}}var xS={lastWeek:function(t,r,n){var o=t.getUTCDay();return Eo(t,r,n)?mh(o):_S(o)},yesterday:"'вчера в' p",today:"'сегодня в' p",tomorrow:"'завтра в' p",nextWeek:function(t,r,n){var o=t.getUTCDay();return Eo(t,r,n)?mh(o):wS(o)},other:"P"},CS=function(t,r,n,o){var a=xS[t];return typeof a=="function"?a(r,n,o):a},TS={narrow:["до н.э.","н.э."],abbreviated:["до н. э.","н. э."],wide:["до нашей эры","нашей эры"]},ES={narrow:["1","2","3","4"],abbreviated:["1-й кв.","2-й кв.","3-й кв.","4-й кв."],wide:["1-й квартал","2-й квартал","3-й квартал","4-й квартал"]},SS={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","март","апр.","май","июнь","июль","авг.","сент.","окт.","нояб.","дек."],wide:["январь","февраль","март","апрель","май","июнь","июль","август","сентябрь","октябрь","ноябрь","декабрь"]},MS={narrow:["Я","Ф","М","А","М","И","И","А","С","О","Н","Д"],abbreviated:["янв.","фев.","мар.","апр.","мая","июн.","июл.","авг.","сент.","окт.","нояб.","дек."],wide:["января","февраля","марта","апреля","мая","июня","июля","августа","сентября","октября","ноября","декабря"]},PS={narrow:["В","П","В","С","Ч","П","С"],short:["вс","пн","вт","ср","чт","пт","сб"],abbreviated:["вск","пнд","втр","срд","чтв","птн","суб"],wide:["воскресенье","понедельник","вторник","среда","четверг","пятница","суббота"]},RS={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утро",afternoon:"день",evening:"веч.",night:"ночь"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утро",afternoon:"день",evening:"вечер",night:"ночь"}},OS={narrow:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},abbreviated:{am:"ДП",pm:"ПП",midnight:"полн.",noon:"полд.",morning:"утра",afternoon:"дня",evening:"веч.",night:"ночи"},wide:{am:"ДП",pm:"ПП",midnight:"полночь",noon:"полдень",morning:"утра",afternoon:"дня",evening:"вечера",night:"ночи"}},kS=function(t,r){var n=Number(t),o=r==null?void 0:r.unit,a;return o==="date"?a="-е":o==="week"||o==="minute"||o==="second"?a="-я":a="-й",n+a},NS={ordinalNumber:kS,era:ye({values:TS,defaultWidth:"wide"}),quarter:ye({values:ES,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:SS,defaultWidth:"wide",formattingValues:MS,defaultFormattingWidth:"wide"}),day:ye({values:PS,defaultWidth:"wide"}),dayPeriod:ye({values:RS,defaultWidth:"any",formattingValues:OS,defaultFormattingWidth:"wide"})},DS=/^(\d+)(-?(е|я|й|ое|ье|ая|ья|ый|ой|ий|ый))?/i,LS=/\d+/i,AS={narrow:/^((до )?н\.?\s?э\.?)/i,abbreviated:/^((до )?н\.?\s?э\.?)/i,wide:/^(до нашей эры|нашей эры|наша эра)/i},IS={any:[/^д/i,/^н/i]},$S={narrow:/^[1234]/i,abbreviated:/^[1234](-?[ыои]?й?)? кв.?/i,wide:/^[1234](-?[ыои]?й?)? квартал/i},zS={any:[/1/i,/2/i,/3/i,/4/i]},WS={narrow:/^[яфмаисонд]/i,abbreviated:/^(янв|фев|март?|апр|ма[йя]|июн[ья]?|июл[ья]?|авг|сент?|окт|нояб?|дек)\.?/i,wide:/^(январ[ья]|феврал[ья]|марта?|апрел[ья]|ма[йя]|июн[ья]|июл[ья]|августа?|сентябр[ья]|октябр[ья]|октябр[ья]|ноябр[ья]|декабр[ья])/i},FS={narrow:[/^я/i,/^ф/i,/^м/i,/^а/i,/^м/i,/^и/i,/^и/i,/^а/i,/^с/i,/^о/i,/^н/i,/^я/i],any:[/^я/i,/^ф/i,/^мар/i,/^ап/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^ав/i,/^с/i,/^о/i,/^н/i,/^д/i]},jS={narrow:/^[впсч]/i,short:/^(вс|во|пн|по|вт|ср|чт|че|пт|пя|сб|су)\.?/i,abbreviated:/^(вск|вос|пнд|пон|втр|вто|срд|сре|чтв|чет|птн|пят|суб).?/i,wide:/^(воскресень[ея]|понедельника?|вторника?|сред[аы]|четверга?|пятниц[аы]|суббот[аы])/i},BS={narrow:[/^в/i,/^п/i,/^в/i,/^с/i,/^ч/i,/^п/i,/^с/i],any:[/^в[ос]/i,/^п[он]/i,/^в/i,/^ср/i,/^ч/i,/^п[ят]/i,/^с[уб]/i]},HS={narrow:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,abbreviated:/^([дп]п|полн\.?|полд\.?|утр[оа]|день|дня|веч\.?|ноч[ьи])/i,wide:/^([дп]п|полночь|полдень|утр[оа]|день|дня|вечера?|ноч[ьи])/i},VS={any:{am:/^дп/i,pm:/^пп/i,midnight:/^полн/i,noon:/^полд/i,morning:/^у/i,afternoon:/^д[ен]/i,evening:/^в/i,night:/^н/i}},US={ordinalNumber:lr({matchPattern:DS,parsePattern:LS,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:AS,defaultMatchWidth:"wide",parsePatterns:IS,defaultParseWidth:"any"}),quarter:be({matchPatterns:$S,defaultMatchWidth:"wide",parsePatterns:zS,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:WS,defaultMatchWidth:"wide",parsePatterns:FS,defaultParseWidth:"any"}),day:be({matchPatterns:jS,defaultMatchWidth:"wide",parsePatterns:BS,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:HS,defaultMatchWidth:"wide",parsePatterns:VS,defaultParseWidth:"any"})},qS={code:"ru",formatDistance:mS,formatLong:bS,formatRelative:CS,localize:NS,match:US,options:{weekStartsOn:1,firstWeekContainsDate:1}},GS={lessThanXSeconds:{one:"bir saniyeden az",other:"{{count}} saniyeden az"},xSeconds:{one:"1 saniye",other:"{{count}} saniye"},halfAMinute:"yarım dakika",lessThanXMinutes:{one:"bir dakikadan az",other:"{{count}} dakikadan az"},xMinutes:{one:"1 dakika",other:"{{count}} dakika"},aboutXHours:{one:"yaklaşık 1 saat",other:"yaklaşık {{count}} saat"},xHours:{one:"1 saat",other:"{{count}} saat"},xDays:{one:"1 gün",other:"{{count}} gün"},aboutXWeeks:{one:"yaklaşık 1 hafta",other:"yaklaşık {{count}} hafta"},xWeeks:{one:"1 hafta",other:"{{count}} hafta"},aboutXMonths:{one:"yaklaşık 1 ay",other:"yaklaşık {{count}} ay"},xMonths:{one:"1 ay",other:"{{count}} ay"},aboutXYears:{one:"yaklaşık 1 yıl",other:"yaklaşık {{count}} yıl"},xYears:{one:"1 yıl",other:"{{count}} yıl"},overXYears:{one:"1 yıldan fazla",other:"{{count}} yıldan fazla"},almostXYears:{one:"neredeyse 1 yıl",other:"neredeyse {{count}} yıl"}},YS=function(t,r,n){var o,a=GS[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",r.toString()),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+" sonra":o+" önce":o},XS={full:"d MMMM y EEEE",long:"d MMMM y",medium:"d MMM y",short:"dd.MM.yyyy"},ZS={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},KS={full:"{{date}} 'saat' {{time}}",long:"{{date}} 'saat' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},QS={date:Le({formats:XS,defaultWidth:"full"}),time:Le({formats:ZS,defaultWidth:"full"}),dateTime:Le({formats:KS,defaultWidth:"full"})},JS={lastWeek:"'geçen hafta' eeee 'saat' p",yesterday:"'dün saat' p",today:"'bugün saat' p",tomorrow:"'yarın saat' p",nextWeek:"eeee 'saat' p",other:"P"},eM=function(t,r,n,o){return JS[t]},tM={narrow:["MÖ","MS"],abbreviated:["MÖ","MS"],wide:["Milattan Önce","Milattan Sonra"]},rM={narrow:["1","2","3","4"],abbreviated:["1Ç","2Ç","3Ç","4Ç"],wide:["İlk çeyrek","İkinci Çeyrek","Üçüncü çeyrek","Son çeyrek"]},nM={narrow:["O","Ş","M","N","M","H","T","A","E","E","K","A"],abbreviated:["Oca","Şub","Mar","Nis","May","Haz","Tem","Ağu","Eyl","Eki","Kas","Ara"],wide:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"]},iM={narrow:["P","P","S","Ç","P","C","C"],short:["Pz","Pt","Sa","Ça","Pe","Cu","Ct"],abbreviated:["Paz","Pzt","Sal","Çar","Per","Cum","Cts"],wide:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},oM={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"},wide:{am:"Ö.Ö.",pm:"Ö.S.",midnight:"gece yarısı",noon:"öğle",morning:"sabah",afternoon:"öğleden sonra",evening:"akşam",night:"gece"}},aM={narrow:{am:"öö",pm:"ös",midnight:"gy",noon:"ö",morning:"sa",afternoon:"ös",evening:"ak",night:"ge"},abbreviated:{am:"ÖÖ",pm:"ÖS",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"},wide:{am:"ö.ö.",pm:"ö.s.",midnight:"gece yarısı",noon:"öğlen",morning:"sabahleyin",afternoon:"öğleden sonra",evening:"akşamleyin",night:"geceleyin"}},sM=function(t,r){var n=Number(t);return n+"."},lM={ordinalNumber:sM,era:ye({values:tM,defaultWidth:"wide"}),quarter:ye({values:rM,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:ye({values:nM,defaultWidth:"wide"}),day:ye({values:iM,defaultWidth:"wide"}),dayPeriod:ye({values:oM,defaultWidth:"wide",formattingValues:aM,defaultFormattingWidth:"wide"})},uM=/^(\d+)(\.)?/i,cM=/\d+/i,dM={narrow:/^(mö|ms)/i,abbreviated:/^(mö|ms)/i,wide:/^(milattan önce|milattan sonra)/i},fM={any:[/(^mö|^milattan önce)/i,/(^ms|^milattan sonra)/i]},hM={narrow:/^[1234]/i,abbreviated:/^[1234]ç/i,wide:/^((i|İ)lk|(i|İ)kinci|üçüncü|son) çeyrek/i},pM={any:[/1/i,/2/i,/3/i,/4/i],abbreviated:[/1ç/i,/2ç/i,/3ç/i,/4ç/i],wide:[/^(i|İ)lk çeyrek/i,/(i|İ)kinci çeyrek/i,/üçüncü çeyrek/i,/son çeyrek/i]},mM={narrow:/^[oşmnhtaek]/i,abbreviated:/^(oca|şub|mar|nis|may|haz|tem|ağu|eyl|eki|kas|ara)/i,wide:/^(ocak|şubat|mart|nisan|mayıs|haziran|temmuz|ağustos|eylül|ekim|kasım|aralık)/i},vM={narrow:[/^o/i,/^ş/i,/^m/i,/^n/i,/^m/i,/^h/i,/^t/i,/^a/i,/^e/i,/^e/i,/^k/i,/^a/i],any:[/^o/i,/^ş/i,/^mar/i,/^n/i,/^may/i,/^h/i,/^t/i,/^ağ/i,/^ey/i,/^ek/i,/^k/i,/^ar/i]},gM={narrow:/^[psçc]/i,short:/^(pz|pt|sa|ça|pe|cu|ct)/i,abbreviated:/^(paz|pzt|sal|çar|per|cum|cts)/i,wide:/^(pazar(?!tesi)|pazartesi|salı|çarşamba|perşembe|cuma(?!rtesi)|cumartesi)/i},yM={narrow:[/^p/i,/^p/i,/^s/i,/^ç/i,/^p/i,/^c/i,/^c/i],any:[/^pz/i,/^pt/i,/^sa/i,/^ça/i,/^pe/i,/^cu/i,/^ct/i],wide:[/^pazar(?!tesi)/i,/^pazartesi/i,/^salı/i,/^çarşamba/i,/^perşembe/i,/^cuma(?!rtesi)/i,/^cumartesi/i]},bM={narrow:/^(öö|ös|gy|ö|sa|ös|ak|ge)/i,any:/^(ö\.?\s?[ös]\.?|öğleden sonra|gece yarısı|öğle|(sabah|öğ|akşam|gece)(leyin))/i},_M={any:{am:/^ö\.?ö\.?/i,pm:/^ö\.?s\.?/i,midnight:/^(gy|gece yarısı)/i,noon:/^öğ/i,morning:/^sa/i,afternoon:/^öğleden sonra/i,evening:/^ak/i,night:/^ge/i}},wM={ordinalNumber:lr({matchPattern:uM,parsePattern:cM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:dM,defaultMatchWidth:"wide",parsePatterns:fM,defaultParseWidth:"any"}),quarter:be({matchPatterns:hM,defaultMatchWidth:"wide",parsePatterns:pM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:mM,defaultMatchWidth:"wide",parsePatterns:vM,defaultParseWidth:"any"}),day:be({matchPatterns:gM,defaultMatchWidth:"wide",parsePatterns:yM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:bM,defaultMatchWidth:"any",parsePatterns:_M,defaultParseWidth:"any"})},xM={code:"tr",formatDistance:YS,formatLong:QS,formatRelative:eM,localize:lM,match:wM,options:{weekStartsOn:1,firstWeekContainsDate:1}},CM={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},TM=function(t,r,n){var o,a=CM[t];return typeof a=="string"?o=a:r===1?o=a.one:o=a.other.replace("{{count}}",String(r)),n!=null&&n.addSuffix?n.comparison&&n.comparison>0?o+"内":o+"前":o},EM={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},SM={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},MM={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},PM={date:Le({formats:EM,defaultWidth:"full"}),time:Le({formats:SM,defaultWidth:"full"}),dateTime:Le({formats:MM,defaultWidth:"full"})};function vh(e,t,r){var n="eeee p";return Eo(e,t,r)?n:e.getTime()>t.getTime()?"'下个'"+n:"'上个'"+n}var RM={lastWeek:vh,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:vh,other:"PP p"},OM=function(t,r,n,o){var a=RM[t];return typeof a=="function"?a(r,n,o):a},kM={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},NM={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},DM={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},LM={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},AM={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},IM={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},$M=function(t,r){var n=Number(t);switch(r==null?void 0:r.unit){case"date":return n.toString()+"日";case"hour":return n.toString()+"时";case"minute":return n.toString()+"分";case"second":return n.toString()+"秒";default:return"第 "+n.toString()}},zM={ordinalNumber:$M,era:ye({values:kM,defaultWidth:"wide"}),quarter:ye({values:NM,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:ye({values:DM,defaultWidth:"wide"}),day:ye({values:LM,defaultWidth:"wide"}),dayPeriod:ye({values:AM,defaultWidth:"wide",formattingValues:IM,defaultFormattingWidth:"wide"})},WM=/^(第\s*)?\d+(日|时|分|秒)?/i,FM=/\d+/i,jM={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},BM={any:[/^(前)/i,/^(公元)/i]},HM={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},VM={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},UM={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},qM={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},GM={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},YM={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},XM={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},ZM={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},KM={ordinalNumber:lr({matchPattern:WM,parsePattern:FM,valueCallback:function(t){return parseInt(t,10)}}),era:be({matchPatterns:jM,defaultMatchWidth:"wide",parsePatterns:BM,defaultParseWidth:"any"}),quarter:be({matchPatterns:HM,defaultMatchWidth:"wide",parsePatterns:VM,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:be({matchPatterns:UM,defaultMatchWidth:"wide",parsePatterns:qM,defaultParseWidth:"any"}),day:be({matchPatterns:GM,defaultMatchWidth:"wide",parsePatterns:YM,defaultParseWidth:"any"}),dayPeriod:be({matchPatterns:XM,defaultMatchWidth:"any",parsePatterns:ZM,defaultParseWidth:"any"})},QM={code:"zh-CN",formatDistance:TM,formatLong:PM,formatRelative:OM,localize:zM,match:KM,options:{weekStartsOn:1,firstWeekContainsDate:4}},JM=Math.ceil,e2=Math.max;function t2(e,t,r,n){for(var o=-1,a=e2(JM((t-e)/(r||1)),0),l=Array(a);a--;)l[n?a:++o]=e,e+=r;return l}var r2=t2,n2=R.eq_1,i2=R.isArrayLike_1,o2=R._isIndex,a2=R.isObject_1;function s2(e,t,r){if(!a2(r))return!1;var n=typeof t;return(n=="number"?i2(r)&&o2(t,r.length):n=="string"&&t in r)?n2(r[t],e):!1}var Xm=s2,l2=r2,u2=Xm,Rl=R.toFinite_1;function c2(e){return function(t,r,n){return n&&typeof n!="number"&&u2(t,r,n)&&(r=n=void 0),t=Rl(t),r===void 0?(r=t,t=0):r=Rl(r),n=n===void 0?t<r?1:-1:Rl(n),l2(t,r,n,e)}}var d2=c2,f2=d2,h2=f2(),p2=h2;const Ma=R.getDefaultExportFromCjs(p2),Dc=e=>{var t;switch((t=e==null?void 0:e.language)==null?void 0:t.split("-")[0]){case"de":return y1;case"fr":return TC;case"es":return X1;case"it":return rT;case"ja":return NT;case"ko":return lE;case"nl":return $E;case"pt":return hS;case"ru":return qS;case"tr":return xM;case"zh":return QM;default:return Ix}};Ma(4),Ma(12),Ma(7),Ma(24);var fu={exports:{}},Zm={exports:{}};(function(e){function t(r){return r&&r.__esModule?r:{default:r}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Zm);var Ye=Zm.exports,hu={exports:{}},pu={exports:{}},Km={exports:{}};(function(e){function t(r){"@babel/helpers - typeof";return e.exports=t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Km);var Qm=Km.exports,mu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(o.length<n)throw new TypeError(n+" argument"+(n>1?"s":"")+" required, but only "+o.length+" present")}e.exports=t.default})(mu,mu.exports);var It=mu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Qm),o=r(It);function a(l){return(0,o.default)(1,arguments),l instanceof Date||(0,n.default)(l)==="object"&&Object.prototype.toString.call(l)==="[object Date]"}e.exports=t.default})(pu,pu.exports);var m2=pu.exports,vu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(Qm),o=r(It);function a(l){(0,o.default)(1,arguments);var u=Object.prototype.toString.call(l);return l instanceof Date||(0,n.default)(l)==="object"&&u==="[object Date]"?new Date(l.getTime()):typeof l=="number"||u==="[object Number]"?new Date(l):((typeof l=="string"||u==="[object String]")&&typeof console!="undefined"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}e.exports=t.default})(vu,vu.exports);var zr=vu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(m2),o=r(zr),a=r(It);function l(u){if((0,a.default)(1,arguments),!(0,n.default)(u)&&typeof u!="number")return!1;var c=(0,o.default)(u);return!isNaN(Number(c))}e.exports=t.default})(hu,hu.exports);var v2=hu.exports,gu={exports:{}},yu={exports:{}},bu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){if(n===null||n===!0||n===!1)return NaN;var o=Number(n);return isNaN(o)?o:o<0?Math.ceil(o):Math.floor(o)}e.exports=t.default})(bu,bu.exports);var Hn=bu.exports;const g2=R.getDefaultExportFromCjs(Hn);(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Hn),o=r(zr),a=r(It);function l(u,c){(0,a.default)(2,arguments);var f=(0,o.default)(u).getTime(),p=(0,n.default)(c);return new Date(f+p)}e.exports=t.default})(yu,yu.exports);var y2=yu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(y2),o=r(It),a=r(Hn);function l(u,c){(0,o.default)(2,arguments);var f=(0,a.default)(c);return(0,n.default)(u,-f)}e.exports=t.default})(gu,gu.exports);var b2=gu.exports,_u={exports:{}},wu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(zr),o=r(It),a=864e5;function l(u){(0,o.default)(1,arguments);var c=(0,n.default)(u),f=c.getTime();c.setUTCMonth(0,1),c.setUTCHours(0,0,0,0);var p=c.getTime(),m=f-p;return Math.floor(m/a)+1}e.exports=t.default})(wu,wu.exports);var _2=wu.exports,xu={exports:{}},Cu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=a;var n=r(zr),o=r(It);function a(l){(0,o.default)(1,arguments);var u=1,c=(0,n.default)(l),f=c.getUTCDay(),p=(f<u?7:0)+f-u;return c.setUTCDate(c.getUTCDate()-p),c.setUTCHours(0,0,0,0),c}e.exports=t.default})(Cu,Cu.exports);var Lc=Cu.exports,Tu={exports:{}},Eu={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(zr),o=r(It),a=r(Lc);function l(u){(0,o.default)(1,arguments);var c=(0,n.default)(u),f=c.getUTCFullYear(),p=new Date(0);p.setUTCFullYear(f+1,0,4),p.setUTCHours(0,0,0,0);var m=(0,a.default)(p),h=new Date(0);h.setUTCFullYear(f,0,4),h.setUTCHours(0,0,0,0);var g=(0,a.default)(h);return c.getTime()>=m.getTime()?f+1:c.getTime()>=g.getTime()?f:f-1}e.exports=t.default})(Eu,Eu.exports);var Jm=Eu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=l;var n=r(Jm),o=r(Lc),a=r(It);function l(u){(0,a.default)(1,arguments);var c=(0,n.default)(u),f=new Date(0);f.setUTCFullYear(c,0,4),f.setUTCHours(0,0,0,0);var p=(0,o.default)(f);return p}e.exports=t.default})(Tu,Tu.exports);var w2=Tu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(zr),o=r(Lc),a=r(w2),l=r(It),u=6048e5;function c(f){(0,l.default)(1,arguments);var p=(0,n.default)(f),m=(0,o.default)(p).getTime()-(0,a.default)(p).getTime();return Math.round(m/u)+1}e.exports=t.default})(xu,xu.exports);var x2=xu.exports,Su={exports:{}},Mu={exports:{}},Vn={};Object.defineProperty(Vn,"__esModule",{value:!0});Vn.getDefaultOptions=C2;Vn.setDefaultOptions=T2;var ev={};function C2(){return ev}function T2(e){ev=e}(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var n=r(zr),o=r(It),a=r(Hn),l=Vn;function u(c,f){var p,m,h,g,_,y,x,S;(0,o.default)(1,arguments);var E=(0,l.getDefaultOptions)(),T=(0,a.default)((p=(m=(h=(g=f==null?void 0:f.weekStartsOn)!==null&&g!==void 0?g:f==null||(_=f.locale)===null||_===void 0||(y=_.options)===null||y===void 0?void 0:y.weekStartsOn)!==null&&h!==void 0?h:E.weekStartsOn)!==null&&m!==void 0?m:(x=E.locale)===null||x===void 0||(S=x.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&p!==void 0?p:0);if(!(T>=0&&T<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var C=(0,n.default)(c),w=C.getUTCDay(),M=(w<T?7:0)+w-T;return C.setUTCDate(C.getUTCDate()-M),C.setUTCHours(0,0,0,0),C}e.exports=t.default})(Mu,Mu.exports);var Ac=Mu.exports,Pu={exports:{}},Ru={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(zr),o=r(It),a=r(Ac),l=r(Hn),u=Vn;function c(f,p){var m,h,g,_,y,x,S,E;(0,o.default)(1,arguments);var T=(0,n.default)(f),C=T.getUTCFullYear(),w=(0,u.getDefaultOptions)(),M=(0,l.default)((m=(h=(g=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(y=p.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&g!==void 0?g:w.firstWeekContainsDate)!==null&&h!==void 0?h:(S=w.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.firstWeekContainsDate)!==null&&m!==void 0?m:1);if(!(M>=1&&M<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=new Date(0);O.setUTCFullYear(C+1,0,M),O.setUTCHours(0,0,0,0);var D=(0,a.default)(O,p),A=new Date(0);A.setUTCFullYear(C,0,M),A.setUTCHours(0,0,0,0);var $=(0,a.default)(A,p);return T.getTime()>=D.getTime()?C+1:T.getTime()>=$.getTime()?C:C-1}e.exports=t.default})(Ru,Ru.exports);var tv=Ru.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(tv),o=r(It),a=r(Ac),l=r(Hn),u=Vn;function c(f,p){var m,h,g,_,y,x,S,E;(0,o.default)(1,arguments);var T=(0,u.getDefaultOptions)(),C=(0,l.default)((m=(h=(g=(_=p==null?void 0:p.firstWeekContainsDate)!==null&&_!==void 0?_:p==null||(y=p.locale)===null||y===void 0||(x=y.options)===null||x===void 0?void 0:x.firstWeekContainsDate)!==null&&g!==void 0?g:T.firstWeekContainsDate)!==null&&h!==void 0?h:(S=T.locale)===null||S===void 0||(E=S.options)===null||E===void 0?void 0:E.firstWeekContainsDate)!==null&&m!==void 0?m:1),w=(0,n.default)(f,p),M=new Date(0);M.setUTCFullYear(w,0,C),M.setUTCHours(0,0,0,0);var O=(0,a.default)(M,p);return O}e.exports=t.default})(Pu,Pu.exports);var E2=Pu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=c;var n=r(zr),o=r(Ac),a=r(E2),l=r(It),u=6048e5;function c(f,p){(0,l.default)(1,arguments);var m=(0,n.default)(f),h=(0,o.default)(m,p).getTime()-(0,a.default)(m,p).getTime();return Math.round(h/u)+1}e.exports=t.default})(Su,Su.exports);var S2=Su.exports,Ou={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){for(var a=n<0?"-":"",l=Math.abs(n).toString();l.length<o;)l="0"+l;return a+l}e.exports=t.default})(Ou,Ou.exports);var rv=Ou.exports,ku={exports:{}};(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(rv),o={y:function(u,c){var f=u.getUTCFullYear(),p=f>0?f:1-f;return(0,n.default)(c==="yy"?p%100:p,c.length)},M:function(u,c){var f=u.getUTCMonth();return c==="M"?String(f+1):(0,n.default)(f+1,2)},d:function(u,c){return(0,n.default)(u.getUTCDate(),c.length)},a:function(u,c){var f=u.getUTCHours()/12>=1?"pm":"am";switch(c){case"a":case"aa":return f.toUpperCase();case"aaa":return f;case"aaaaa":return f[0];case"aaaa":default:return f==="am"?"a.m.":"p.m."}},h:function(u,c){return(0,n.default)(u.getUTCHours()%12||12,c.length)},H:function(u,c){return(0,n.default)(u.getUTCHours(),c.length)},m:function(u,c){return(0,n.default)(u.getUTCMinutes(),c.length)},s:function(u,c){return(0,n.default)(u.getUTCSeconds(),c.length)},S:function(u,c){var f=c.length,p=u.getUTCMilliseconds(),m=Math.floor(p*Math.pow(10,f-3));return(0,n.default)(m,c.length)}},a=o;t.default=a,e.exports=t.default})(ku,ku.exports);var M2=ku.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(_2),o=r(x2),a=r(Jm),l=r(S2),u=r(tv),c=r(rv),f=r(M2),p={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},m={G:function(S,E,T){var C=S.getUTCFullYear()>0?1:0;switch(E){case"G":case"GG":case"GGG":return T.era(C,{width:"abbreviated"});case"GGGGG":return T.era(C,{width:"narrow"});case"GGGG":default:return T.era(C,{width:"wide"})}},y:function(S,E,T){if(E==="yo"){var C=S.getUTCFullYear(),w=C>0?C:1-C;return T.ordinalNumber(w,{unit:"year"})}return f.default.y(S,E)},Y:function(S,E,T,C){var w=(0,u.default)(S,C),M=w>0?w:1-w;if(E==="YY"){var O=M%100;return(0,c.default)(O,2)}return E==="Yo"?T.ordinalNumber(M,{unit:"year"}):(0,c.default)(M,E.length)},R:function(S,E){var T=(0,a.default)(S);return(0,c.default)(T,E.length)},u:function(S,E){var T=S.getUTCFullYear();return(0,c.default)(T,E.length)},Q:function(S,E,T){var C=Math.ceil((S.getUTCMonth()+1)/3);switch(E){case"Q":return String(C);case"QQ":return(0,c.default)(C,2);case"Qo":return T.ordinalNumber(C,{unit:"quarter"});case"QQQ":return T.quarter(C,{width:"abbreviated",context:"formatting"});case"QQQQQ":return T.quarter(C,{width:"narrow",context:"formatting"});case"QQQQ":default:return T.quarter(C,{width:"wide",context:"formatting"})}},q:function(S,E,T){var C=Math.ceil((S.getUTCMonth()+1)/3);switch(E){case"q":return String(C);case"qq":return(0,c.default)(C,2);case"qo":return T.ordinalNumber(C,{unit:"quarter"});case"qqq":return T.quarter(C,{width:"abbreviated",context:"standalone"});case"qqqqq":return T.quarter(C,{width:"narrow",context:"standalone"});case"qqqq":default:return T.quarter(C,{width:"wide",context:"standalone"})}},M:function(S,E,T){var C=S.getUTCMonth();switch(E){case"M":case"MM":return f.default.M(S,E);case"Mo":return T.ordinalNumber(C+1,{unit:"month"});case"MMM":return T.month(C,{width:"abbreviated",context:"formatting"});case"MMMMM":return T.month(C,{width:"narrow",context:"formatting"});case"MMMM":default:return T.month(C,{width:"wide",context:"formatting"})}},L:function(S,E,T){var C=S.getUTCMonth();switch(E){case"L":return String(C+1);case"LL":return(0,c.default)(C+1,2);case"Lo":return T.ordinalNumber(C+1,{unit:"month"});case"LLL":return T.month(C,{width:"abbreviated",context:"standalone"});case"LLLLL":return T.month(C,{width:"narrow",context:"standalone"});case"LLLL":default:return T.month(C,{width:"wide",context:"standalone"})}},w:function(S,E,T,C){var w=(0,l.default)(S,C);return E==="wo"?T.ordinalNumber(w,{unit:"week"}):(0,c.default)(w,E.length)},I:function(S,E,T){var C=(0,o.default)(S);return E==="Io"?T.ordinalNumber(C,{unit:"week"}):(0,c.default)(C,E.length)},d:function(S,E,T){return E==="do"?T.ordinalNumber(S.getUTCDate(),{unit:"date"}):f.default.d(S,E)},D:function(S,E,T){var C=(0,n.default)(S);return E==="Do"?T.ordinalNumber(C,{unit:"dayOfYear"}):(0,c.default)(C,E.length)},E:function(S,E,T){var C=S.getUTCDay();switch(E){case"E":case"EE":case"EEE":return T.day(C,{width:"abbreviated",context:"formatting"});case"EEEEE":return T.day(C,{width:"narrow",context:"formatting"});case"EEEEEE":return T.day(C,{width:"short",context:"formatting"});case"EEEE":default:return T.day(C,{width:"wide",context:"formatting"})}},e:function(S,E,T,C){var w=S.getUTCDay(),M=(w-C.weekStartsOn+8)%7||7;switch(E){case"e":return String(M);case"ee":return(0,c.default)(M,2);case"eo":return T.ordinalNumber(M,{unit:"day"});case"eee":return T.day(w,{width:"abbreviated",context:"formatting"});case"eeeee":return T.day(w,{width:"narrow",context:"formatting"});case"eeeeee":return T.day(w,{width:"short",context:"formatting"});case"eeee":default:return T.day(w,{width:"wide",context:"formatting"})}},c:function(S,E,T,C){var w=S.getUTCDay(),M=(w-C.weekStartsOn+8)%7||7;switch(E){case"c":return String(M);case"cc":return(0,c.default)(M,E.length);case"co":return T.ordinalNumber(M,{unit:"day"});case"ccc":return T.day(w,{width:"abbreviated",context:"standalone"});case"ccccc":return T.day(w,{width:"narrow",context:"standalone"});case"cccccc":return T.day(w,{width:"short",context:"standalone"});case"cccc":default:return T.day(w,{width:"wide",context:"standalone"})}},i:function(S,E,T){var C=S.getUTCDay(),w=C===0?7:C;switch(E){case"i":return String(w);case"ii":return(0,c.default)(w,E.length);case"io":return T.ordinalNumber(w,{unit:"day"});case"iii":return T.day(C,{width:"abbreviated",context:"formatting"});case"iiiii":return T.day(C,{width:"narrow",context:"formatting"});case"iiiiii":return T.day(C,{width:"short",context:"formatting"});case"iiii":default:return T.day(C,{width:"wide",context:"formatting"})}},a:function(S,E,T){var C=S.getUTCHours(),w=C/12>=1?"pm":"am";switch(E){case"a":case"aa":return T.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"aaa":return T.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return T.dayPeriod(w,{width:"narrow",context:"formatting"});case"aaaa":default:return T.dayPeriod(w,{width:"wide",context:"formatting"})}},b:function(S,E,T){var C=S.getUTCHours(),w;switch(C===12?w=p.noon:C===0?w=p.midnight:w=C/12>=1?"pm":"am",E){case"b":case"bb":return T.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"bbb":return T.dayPeriod(w,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return T.dayPeriod(w,{width:"narrow",context:"formatting"});case"bbbb":default:return T.dayPeriod(w,{width:"wide",context:"formatting"})}},B:function(S,E,T){var C=S.getUTCHours(),w;switch(C>=17?w=p.evening:C>=12?w=p.afternoon:C>=4?w=p.morning:w=p.night,E){case"B":case"BB":case"BBB":return T.dayPeriod(w,{width:"abbreviated",context:"formatting"});case"BBBBB":return T.dayPeriod(w,{width:"narrow",context:"formatting"});case"BBBB":default:return T.dayPeriod(w,{width:"wide",context:"formatting"})}},h:function(S,E,T){if(E==="ho"){var C=S.getUTCHours()%12;return C===0&&(C=12),T.ordinalNumber(C,{unit:"hour"})}return f.default.h(S,E)},H:function(S,E,T){return E==="Ho"?T.ordinalNumber(S.getUTCHours(),{unit:"hour"}):f.default.H(S,E)},K:function(S,E,T){var C=S.getUTCHours()%12;return E==="Ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,E.length)},k:function(S,E,T){var C=S.getUTCHours();return C===0&&(C=24),E==="ko"?T.ordinalNumber(C,{unit:"hour"}):(0,c.default)(C,E.length)},m:function(S,E,T){return E==="mo"?T.ordinalNumber(S.getUTCMinutes(),{unit:"minute"}):f.default.m(S,E)},s:function(S,E,T){return E==="so"?T.ordinalNumber(S.getUTCSeconds(),{unit:"second"}):f.default.s(S,E)},S:function(S,E){return f.default.S(S,E)},X:function(S,E,T,C){var w=C._originalDate||S,M=w.getTimezoneOffset();if(M===0)return"Z";switch(E){case"X":return g(M);case"XXXX":case"XX":return _(M);case"XXXXX":case"XXX":default:return _(M,":")}},x:function(S,E,T,C){var w=C._originalDate||S,M=w.getTimezoneOffset();switch(E){case"x":return g(M);case"xxxx":case"xx":return _(M);case"xxxxx":case"xxx":default:return _(M,":")}},O:function(S,E,T,C){var w=C._originalDate||S,M=w.getTimezoneOffset();switch(E){case"O":case"OO":case"OOO":return"GMT"+h(M,":");case"OOOO":default:return"GMT"+_(M,":")}},z:function(S,E,T,C){var w=C._originalDate||S,M=w.getTimezoneOffset();switch(E){case"z":case"zz":case"zzz":return"GMT"+h(M,":");case"zzzz":default:return"GMT"+_(M,":")}},t:function(S,E,T,C){var w=C._originalDate||S,M=Math.floor(w.getTime()/1e3);return(0,c.default)(M,E.length)},T:function(S,E,T,C){var w=C._originalDate||S,M=w.getTime();return(0,c.default)(M,E.length)}};function h(x,S){var E=x>0?"-":"+",T=Math.abs(x),C=Math.floor(T/60),w=T%60;if(w===0)return E+String(C);var M=S;return E+String(C)+M+(0,c.default)(w,2)}function g(x,S){if(x%60===0){var E=x>0?"-":"+";return E+(0,c.default)(Math.abs(x)/60,2)}return _(x,S)}function _(x,S){var E=S||"",T=x>0?"-":"+",C=Math.abs(x),w=(0,c.default)(Math.floor(C/60),2),M=(0,c.default)(C%60,2);return T+w+E+M}var y=m;t.default=y,e.exports=t.default})(_u,_u.exports);var P2=_u.exports,Nu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=function(c,f){switch(c){case"P":return f.date({width:"short"});case"PP":return f.date({width:"medium"});case"PPP":return f.date({width:"long"});case"PPPP":default:return f.date({width:"full"})}},n=function(c,f){switch(c){case"p":return f.time({width:"short"});case"pp":return f.time({width:"medium"});case"ppp":return f.time({width:"long"});case"pppp":default:return f.time({width:"full"})}},o=function(c,f){var p=c.match(/(P+)(p+)?/)||[],m=p[1],h=p[2];if(!h)return r(c,f);var g;switch(m){case"P":g=f.dateTime({width:"short"});break;case"PP":g=f.dateTime({width:"medium"});break;case"PPP":g=f.dateTime({width:"long"});break;case"PPPP":default:g=f.dateTime({width:"full"});break}return g.replace("{{date}}",r(m,f)).replace("{{time}}",n(h,f))},a={p:n,P:o},l=a;t.default=l,e.exports=t.default})(Nu,Nu.exports);var R2=Nu.exports,Du={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){var o=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return o.setUTCFullYear(n.getFullYear()),n.getTime()-o.getTime()}e.exports=t.default})(Du,Du.exports);var nv=Du.exports;const gh=R.getDefaultExportFromCjs(nv);var jo={};Object.defineProperty(jo,"__esModule",{value:!0});jo.isProtectedDayOfYearToken=N2;jo.isProtectedWeekYearToken=D2;jo.throwProtectedError=L2;var O2=["D","DD"],k2=["YY","YYYY"];function N2(e){return O2.indexOf(e)!==-1}function D2(e){return k2.indexOf(e)!==-1}function L2(e,t,r){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(r,"`; 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(r,"`; 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(r,"`; 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(r,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Lu={exports:{}},Au={exports:{}},Iu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},n=function(l,u,c){var f,p=r[l];return typeof p=="string"?f=p:u===1?f=p.one:f=p.other.replace("{{count}}",u.toString()),c!=null&&c.addSuffix?c.comparison&&c.comparison>0?"in "+f:f+" ago":f},o=n;t.default=o,e.exports=t.default})(Iu,Iu.exports);var A2=Iu.exports,$u={exports:{}},zu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=o.width?String(o.width):n.defaultWidth,l=n.formats[a]||n.formats[n.defaultWidth];return l}}e.exports=t.default})(zu,zu.exports);var I2=zu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(I2),o={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},a={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},l={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},u={date:(0,n.default)({formats:o,defaultWidth:"full"}),time:(0,n.default)({formats:a,defaultWidth:"full"}),dateTime:(0,n.default)({formats:l,defaultWidth:"full"})},c=u;t.default=c,e.exports=t.default})($u,$u.exports);var $2=$u.exports,Wu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},n=function(l,u,c,f){return r[l]},o=n;t.default=o,e.exports=t.default})(Wu,Wu.exports);var z2=Wu.exports,Fu={exports:{}},ju={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(o,a){var l=a!=null&&a.context?String(a.context):"standalone",u;if(l==="formatting"&&n.formattingValues){var c=n.defaultFormattingWidth||n.defaultWidth,f=a!=null&&a.width?String(a.width):c;u=n.formattingValues[f]||n.formattingValues[c]}else{var p=n.defaultWidth,m=a!=null&&a.width?String(a.width):n.defaultWidth;u=n.values[m]||n.values[p]}var h=n.argumentCallback?n.argumentCallback(o):o;return u[h]}}e.exports=t.default})(ju,ju.exports);var W2=ju.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(W2),o={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},a={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},l={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},u={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},c={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},f={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},p=function(_,y){var x=Number(_),S=x%100;if(S>20||S<10)switch(S%10){case 1:return x+"st";case 2:return x+"nd";case 3:return x+"rd"}return x+"th"},m={ordinalNumber:p,era:(0,n.default)({values:o,defaultWidth:"wide"}),quarter:(0,n.default)({values:a,defaultWidth:"wide",argumentCallback:function(_){return _-1}}),month:(0,n.default)({values:l,defaultWidth:"wide"}),day:(0,n.default)({values:u,defaultWidth:"wide"}),dayPeriod:(0,n.default)({values:c,defaultWidth:"wide",formattingValues:f,defaultFormattingWidth:"wide"})},h=m;t.default=h,e.exports=t.default})(Fu,Fu.exports);var F2=Fu.exports,Bu={exports:{}},Hu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(a){return function(l){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},c=u.width,f=c&&a.matchPatterns[c]||a.matchPatterns[a.defaultMatchWidth],p=l.match(f);if(!p)return null;var m=p[0],h=c&&a.parsePatterns[c]||a.parsePatterns[a.defaultParseWidth],g=Array.isArray(h)?o(h,function(x){return x.test(m)}):n(h,function(x){return x.test(m)}),_;_=a.valueCallback?a.valueCallback(g):g,_=u.valueCallback?u.valueCallback(_):_;var y=l.slice(m.length);return{value:_,rest:y}}}function n(a,l){for(var u in a)if(a.hasOwnProperty(u)&&l(a[u]))return u}function o(a,l){for(var u=0;u<a.length;u++)if(l(a[u]))return u}e.exports=t.default})(Hu,Hu.exports);var j2=Hu.exports,Vu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n){return function(o){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},l=o.match(n.matchPattern);if(!l)return null;var u=l[0],c=o.match(n.parsePattern);if(!c)return null;var f=n.valueCallback?n.valueCallback(c[0]):c[0];f=a.valueCallback?a.valueCallback(f):f;var p=o.slice(u.length);return{value:f,rest:p}}}e.exports=t.default})(Vu,Vu.exports);var B2=Vu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(j2),o=r(B2),a=/^(\d+)(th|st|nd|rd)?/i,l=/\d+/i,u={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},c={any:[/^b/i,/^(a|c)/i]},f={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},p={any:[/1/i,/2/i,/3/i,/4/i]},m={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},h={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},g={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},_={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},y={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},x={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},S={ordinalNumber:(0,o.default)({matchPattern:a,parsePattern:l,valueCallback:function(C){return parseInt(C,10)}}),era:(0,n.default)({matchPatterns:u,defaultMatchWidth:"wide",parsePatterns:c,defaultParseWidth:"any"}),quarter:(0,n.default)({matchPatterns:f,defaultMatchWidth:"wide",parsePatterns:p,defaultParseWidth:"any",valueCallback:function(C){return C+1}}),month:(0,n.default)({matchPatterns:m,defaultMatchWidth:"wide",parsePatterns:h,defaultParseWidth:"any"}),day:(0,n.default)({matchPatterns:g,defaultMatchWidth:"wide",parsePatterns:_,defaultParseWidth:"any"}),dayPeriod:(0,n.default)({matchPatterns:y,defaultMatchWidth:"any",parsePatterns:x,defaultParseWidth:"any"})},E=S;t.default=E,e.exports=t.default})(Bu,Bu.exports);var H2=Bu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(A2),o=r($2),a=r(z2),l=r(F2),u=r(H2),c={code:"en-US",formatDistance:n.default,formatLong:o.default,formatRelative:a.default,localize:l.default,match:u.default,options:{weekStartsOn:0,firstWeekContainsDate:1}},f=c;t.default=f,e.exports=t.default})(Au,Au.exports);var V2=Au.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=r(V2),o=n.default;t.default=o,e.exports=t.default})(Lu,Lu.exports);var U2=Lu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=T;var n=r(v2),o=r(b2),a=r(zr),l=r(P2),u=r(R2),c=r(nv),f=jo,p=r(Hn),m=r(It),h=Vn,g=r(U2),_=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,y=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,x=/^'([^]*?)'?$/,S=/''/g,E=/[a-zA-Z]/;function T(w,M,O){var D,A,$,N,k,F,j,I,B,G,q,U,z,H,ee,X,K,J;(0,m.default)(2,arguments);var ne=String(M),le=(0,h.getDefaultOptions)(),se=(D=(A=O==null?void 0:O.locale)!==null&&A!==void 0?A:le.locale)!==null&&D!==void 0?D:g.default,ue=(0,p.default)(($=(N=(k=(F=O==null?void 0:O.firstWeekContainsDate)!==null&&F!==void 0?F:O==null||(j=O.locale)===null||j===void 0||(I=j.options)===null||I===void 0?void 0:I.firstWeekContainsDate)!==null&&k!==void 0?k:le.firstWeekContainsDate)!==null&&N!==void 0?N:(B=le.locale)===null||B===void 0||(G=B.options)===null||G===void 0?void 0:G.firstWeekContainsDate)!==null&&$!==void 0?$:1);if(!(ue>=1&&ue<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var fe=(0,p.default)((q=(U=(z=(H=O==null?void 0:O.weekStartsOn)!==null&&H!==void 0?H:O==null||(ee=O.locale)===null||ee===void 0||(X=ee.options)===null||X===void 0?void 0:X.weekStartsOn)!==null&&z!==void 0?z:le.weekStartsOn)!==null&&U!==void 0?U:(K=le.locale)===null||K===void 0||(J=K.options)===null||J===void 0?void 0:J.weekStartsOn)!==null&&q!==void 0?q:0);if(!(fe>=0&&fe<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!se.localize)throw new RangeError("locale must contain localize property");if(!se.formatLong)throw new RangeError("locale must contain formatLong property");var pe=(0,a.default)(w);if(!(0,n.default)(pe))throw new RangeError("Invalid time value");var ae=(0,c.default)(pe),ve=(0,o.default)(pe,ae),de={firstWeekContainsDate:ue,weekStartsOn:fe,locale:se,_originalDate:pe},_e=ne.match(y).map(function(we){var Ee=we[0];if(Ee==="p"||Ee==="P"){var Ce=u.default[Ee];return Ce(we,se.formatLong)}return we}).join("").match(_).map(function(we){if(we==="''")return"'";var Ee=we[0];if(Ee==="'")return C(we);var Ce=l.default[Ee];if(Ce)return!(O!=null&&O.useAdditionalWeekYearTokens)&&(0,f.isProtectedWeekYearToken)(we)&&(0,f.throwProtectedError)(we,M,String(w)),!(O!=null&&O.useAdditionalDayOfYearTokens)&&(0,f.isProtectedDayOfYearToken)(we)&&(0,f.throwProtectedError)(we,M,String(w)),Ce(ve,we,se.localize,de);if(Ee.match(E))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Ee+"`");return we}).join("");return _e}function C(w){var M=w.match(x);return M?M[1].replace(S,"'"):w}e.exports=t.default})(fu,fu.exports);var q2=fu.exports;const G2=R.getDefaultExportFromCjs(q2);function yh(e,t,r){var n=Z2(e,r.timeZone,r.locale);return n.formatToParts?Y2(n,t):X2(n,t)}function Y2(e,t){for(var r=e.formatToParts(t),n=r.length-1;n>=0;--n)if(r[n].type==="timeZoneName")return r[n].value}function X2(e,t){var r=e.format(t).replace(/\u200E/g,""),n=/ [\w-+ ]+$/.exec(r);return n?n[0].substr(1):""}function Z2(e,t,r){if(r&&!r.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(r?[r.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}function K2(e,t){var r=tP(t);return r.formatToParts?J2(r,e):eP(r,e)}var Q2={year:0,month:1,day:2,hour:3,minute:4,second:5};function J2(e,t){try{for(var r=e.formatToParts(t),n=[],o=0;o<r.length;o++){var a=Q2[r[o].type];a>=0&&(n[a]=parseInt(r[o].value,10))}return n}catch(l){if(l instanceof RangeError)return[NaN];throw l}}function eP(e,t){var r=e.format(t),n=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(r);return[n[3],n[1],n[2],n[4],n[5],n[6]]}var Ol={};function tP(e){if(!Ol[e]){var t=new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:"America/New_York",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),r=t==="06/25/2014, 00:00:00"||t==="06/25/2014 00:00:00";Ol[e]=r?new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return Ol[e]}function iv(e,t,r,n,o,a,l){var u=new Date(0);return u.setUTCFullYear(e,t,r),u.setUTCHours(n,o,a,l),u}var bh=36e5,rP=6e4,kl={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-])(\d{2}):?(\d{2})$/};function Ic(e,t,r){var n,o;if(!e||(n=kl.timezoneZ.exec(e),n))return 0;var a;if(n=kl.timezoneHH.exec(e),n)return a=parseInt(n[1],10),_h(a)?-(a*bh):NaN;if(n=kl.timezoneHHMM.exec(e),n){a=parseInt(n[2],10);var l=parseInt(n[3],10);return _h(a,l)?(o=Math.abs(a)*bh+l*rP,n[1]==="+"?-o:o):NaN}if(oP(e)){t=new Date(t||Date.now());var u=r?t:nP(t),c=Uu(u,e),f=r?c:iP(t,c,e);return-f}return NaN}function nP(e){return iv(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}function Uu(e,t){var r=K2(e,t),n=iv(r[0],r[1]-1,r[2],r[3]%24,r[4],r[5],0).getTime(),o=e.getTime(),a=o%1e3;return o-=a>=0?a:1e3+a,n-o}function iP(e,t,r){var n=e.getTime(),o=n-t,a=Uu(new Date(o),r);if(t===a)return t;o-=a-t;var l=Uu(new Date(o),r);return a===l?a:Math.max(a,l)}function _h(e,t){return-23<=e&&e<=23&&(t==null||0<=t&&t<=59)}var wh={};function oP(e){if(wh[e])return!0;try{return wh[e]=!0,!0}catch(t){return!1}}var aP=60*1e3,sP={X:function(e,t,r,n){var o=Nl(n.timeZone,e);if(o===0)return"Z";switch(t){case"X":return xh(o);case"XXXX":case"XX":return pi(o);case"XXXXX":case"XXX":default:return pi(o,":")}},x:function(e,t,r,n){var o=Nl(n.timeZone,e);switch(t){case"x":return xh(o);case"xxxx":case"xx":return pi(o);case"xxxxx":case"xxx":default:return pi(o,":")}},O:function(e,t,r,n){var o=Nl(n.timeZone,e);switch(t){case"O":case"OO":case"OOO":return"GMT"+lP(o,":");case"OOOO":default:return"GMT"+pi(o,":")}},z:function(e,t,r,n){switch(t){case"z":case"zz":case"zzz":return yh("short",e,n);case"zzzz":default:return yh("long",e,n)}}};function Nl(e,t){var r=e?Ic(e,t,!0)/aP:t.getTimezoneOffset();if(Number.isNaN(r))throw new RangeError("Invalid time zone specified: "+e);return r}function Ka(e,t){for(var r=e<0?"-":"",n=Math.abs(e).toString();n.length<t;)n="0"+n;return r+n}function pi(e,t){var r=t||"",n=e>0?"-":"+",o=Math.abs(e),a=Ka(Math.floor(o/60),2),l=Ka(Math.floor(o%60),2);return n+a+r+l}function xh(e,t){if(e%60===0){var r=e>0?"-":"+";return r+Ka(Math.abs(e)/60,2)}return pi(e,t)}function lP(e,t){var r=e>0?"-":"+",n=Math.abs(e),o=Math.floor(n/60),a=n%60;if(a===0)return r+String(o);var l=t;return r+String(o)+l+Ka(a,2)}var uP=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/,Dl=36e5,Ch=6e4,cP=2,Nt={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:uP};function ov(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(e===null)return new Date(NaN);var r=t||{},n=r.additionalDigits==null?cP:g2(r.additionalDigits);if(n!==2&&n!==1&&n!==0)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]")return new Date(e.getTime());if(typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]")return new Date(e);if(!(typeof e=="string"||Object.prototype.toString.call(e)==="[object String]"))return new Date(NaN);var o=dP(e),a=fP(o.date,n),l=a.year,u=a.restDateString,c=hP(u,l);if(isNaN(c))return new Date(NaN);if(c){var f=c.getTime(),p=0,m;if(o.time&&(p=pP(o.time),isNaN(p)))return new Date(NaN);if(o.timeZone||r.timeZone){if(m=Ic(o.timeZone||r.timeZone,new Date(f+p)),isNaN(m))return new Date(NaN)}else m=gh(new Date(f+p)),m=gh(new Date(f+p+m));return new Date(f+p+m)}else return new Date(NaN)}function dP(e){var t={},r=Nt.dateTimePattern.exec(e),n;if(r?(t.date=r[1],n=r[3]):(r=Nt.datePattern.exec(e),r?(t.date=r[1],n=r[2]):(t.date=null,n=e)),n){var o=Nt.timeZone.exec(n);o?(t.time=n.replace(o[1],""),t.timeZone=o[1].trim()):t.time=n}return t}function fP(e,t){var r=Nt.YYY[t],n=Nt.YYYYY[t],o;if(o=Nt.YYYY.exec(e)||n.exec(e),o){var a=o[1];return{year:parseInt(a,10),restDateString:e.slice(a.length)}}if(o=Nt.YY.exec(e)||r.exec(e),o){var l=o[1];return{year:parseInt(l,10)*100,restDateString:e.slice(l.length)}}return{year:null}}function hP(e,t){if(t===null)return null;var r,n,o,a;if(e.length===0)return n=new Date(0),n.setUTCFullYear(t),n;if(r=Nt.MM.exec(e),r)return n=new Date(0),o=parseInt(r[1],10)-1,Eh(t,o)?(n.setUTCFullYear(t,o),n):new Date(NaN);if(r=Nt.DDD.exec(e),r){n=new Date(0);var l=parseInt(r[1],10);return gP(t,l)?(n.setUTCFullYear(t,0,l),n):new Date(NaN)}if(r=Nt.MMDD.exec(e),r){n=new Date(0),o=parseInt(r[1],10)-1;var u=parseInt(r[2],10);return Eh(t,o,u)?(n.setUTCFullYear(t,o,u),n):new Date(NaN)}if(r=Nt.Www.exec(e),r)return a=parseInt(r[1],10)-1,Sh(t,a)?Th(t,a):new Date(NaN);if(r=Nt.WwwD.exec(e),r){a=parseInt(r[1],10)-1;var c=parseInt(r[2],10)-1;return Sh(t,a,c)?Th(t,a,c):new Date(NaN)}return null}function pP(e){var t,r,n;if(t=Nt.HH.exec(e),t)return r=parseFloat(t[1].replace(",",".")),Ll(r)?r%24*Dl:NaN;if(t=Nt.HHMM.exec(e),t)return r=parseInt(t[1],10),n=parseFloat(t[2].replace(",",".")),Ll(r,n)?r%24*Dl+n*Ch:NaN;if(t=Nt.HHMMSS.exec(e),t){r=parseInt(t[1],10),n=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return Ll(r,n,o)?r%24*Dl+n*Ch+o*1e3:NaN}return null}function Th(e,t,r){t=t||0,r=r||0;var n=new Date(0);n.setUTCFullYear(e,0,4);var o=n.getUTCDay()||7,a=t*7+r+1-o;return n.setUTCDate(n.getUTCDate()+a),n}var mP=[31,28,31,30,31,30,31,31,30,31,30,31],vP=[31,29,31,30,31,30,31,31,30,31,30,31];function av(e){return e%400===0||e%4===0&&e%100!==0}function Eh(e,t,r){if(t<0||t>11)return!1;if(r!=null){if(r<1)return!1;var n=av(e);if(n&&r>vP[t]||!n&&r>mP[t])return!1}return!0}function gP(e,t){if(t<1)return!1;var r=av(e);return!(r&&t>366||!r&&t>365)}function Sh(e,t,r){return!(t<0||t>52||r!=null&&(r<0||r>6))}function Ll(e,t,r){return!(e!=null&&(e<0||e>=25)||t!=null&&(t<0||t>=60)||r!=null&&(r<0||r>=60))}var yP=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function sv(e,t,r){var n=String(t),o=r||{},a=n.match(yP);if(a){var l=ov(o.originalDate||e,o);n=a.reduce(function(u,c){if(c[0]==="'")return u;var f=u.indexOf(c),p=u[f-1]==="'",m=u.replace(c,"'"+sP[c[0]](l,c,null,o)+"'");return p?m.substring(0,f-1)+m.substring(f+1):m},n)}return G2(e,n,o)}function mn(e,t,r){const n=new RegExp("'[^']+'|("+t+")","g");return e.replace(n,function(a,l){return l?r(a):a})}const bP=["shortDate","shortTime","short","mediumDate","mediumTime","medium","longDate","fullDate"],_P=Object.freeze({fullDate:"EEEE, MMMM d, y",longDate:"MMMM d, y",medium:"MMM d, y h:mm:ss a",mediumDate:"MMM d, y",mediumTime:"h:mm:ss a",short:"M/d/yy h:mm a",shortDate:"M/d/yy",shortTime:"h:mm a"}),Mh=Object.freeze({"en-US":_P});function wP(e,t){var o;if(!(e.includes("short")||e.includes("medium")||e.includes("long")||e.includes("full")))return e;let r=e,n=Mh[(o=t.code)!=null?o:""];return n||(n=Mh["en-US"]),bP.forEach(a=>{const l=n[a];r=mn(r,a,function(){return l})}),r}var qu={exports:{}},Gu={exports:{}};(function(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=r;function r(n,o){if(n==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a]);return n}e.exports=t.default})(Gu,Gu.exports);var xP=Gu.exports;(function(e,t){var r=Ye.default;Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var n=r(xP);function o(a){return(0,n.default)({},a)}e.exports=t.default})(qu,qu.exports);var CP=qu.exports;const TP=R.getDefaultExportFromCjs(CP);function EP(e,t,r){var n=ov(e,r),o=Ic(t,n,!0),a=new Date(n.getTime()-o),l=new Date(0);return l.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),l.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),l}function So(e,t,r,n){var o=TP(n);return o.timeZone=t,o.originalDate=e,sv(EP(e,t),r,o)}function SP(e){return e.includes("sss")?mn(e,"sss",function(){return"SSS"}):e}function MP(e,t,r){if(!(e.includes("a")||e.includes("A")))return e;let n=mn(e,"a",function(){return`\0${So(t,r,"a").toLowerCase()}\0`});return n=mn(n,"A",function(){return`\0${So(t,r,"a").toUpperCase()}\0`}),n=n.replace(/\0\0/g,""),n=n.replace(/\0/g,"'"),n}function PP(e,t,r,n){return e.includes("Z")?mn(e,"Z",function(){return So(t,r,"xx",{locale:n})}):e}function RP(e,t,r){return lv(e,t,r)?Ym(e,1):e}function OP(e,t){return t<=e.getMonth()}function lv(e,t,r){const n=![AP,$c].includes(t);return r>cv&&n&&OP(e,r)}function kP(e,t,r,n){return!n&&lv(e,t,r)?Gm(e,1):e}function NP(e,t){if(t>0){const r=(e.getMonth()+t)%12;return Bx(e,r)}return e}function DP(e,t,r,n,o,a){if(!e.includes("y"))return e;const l=kP(t,n,a,o);let u=e;if(["yyyy","yy","y","yp","yyyp"].includes(e)&&(r="Etc/GMT-14"),e.includes("yp")){const f=Ym(l,1);u=mn(e,"yp|yyyp",function(m){const h="y".repeat(m.length);return So(f,r,h)})}return mn(u,"yyyy|yy|y",function(p){return So(l,r,p)})}function LP(e,t,r,n){if(!e.includes("Q"))return e;let o=t.getMonth();n&&[$c,IP,$P,uv].includes(r)&&(o-=n>o?n-12:n);const a=parseInt(String(o/3))+1;return mn(e,"QQ|Q",function(c){return`${c.length===2?"'Quarter '":"'Q'"}${a}`})}const AP="years",$c="quarters",IP="months",$P="weeks",uv="days",cv=0,zP=1,zc=Object.freeze({weekFirstDay:zP,isFiscalOn:!1,fiscalMonth:cv,selectedDateLevel:uv,timeZone:"UTC"});function Wc(e,t,r=Dc(),n=zc){return e.getFullYear()<100&&(e=Hx(e,1900+e.getFullYear())),n.isFiscalOn||(e=RP(e,n.selectedDateLevel,n.fiscalMonth)),t=wP(t,r),t=SP(t),t=MP(t,e,n.timeZone),t=PP(t,e,n.timeZone,r),t=DP(t,e,n.timeZone,n.selectedDateLevel,n.isFiscalOn,n.fiscalMonth),!n.isFiscalOn&&n.selectedDateLevel===$c&&(e=NP(e,n.fiscalMonth)),t=LP(t,e,n.selectedDateLevel,n.fiscalMonth),sv(e,t,{locale:r,weekStartsOn:n.weekFirstDay})}const Fc="#F2F2F2",jc=4,WP={chart:{backgroundColor:"#FFFFFF",textColor:"#000000",secondaryTextColor:"#E4E4E4",panelBackgroundColor:"#F6F6F6",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#5B6372",secondaryTextColor:"#9EA2AB"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#ffffff",brandColor:"#ffcb05",primaryButtonTextColor:"#3a4356",primaryButtonHoverColor:"#f2b900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#9EA2AB",header:{titleTextColor:"#5B6372",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#5B6372",backgroundColor:"#FFFFFF"}},dashboard:{backgroundColor:"#FFFFFF",dividerLineWidth:jc,dividerLineColor:Fc},aiChat:{backgroundColor:"rgba(244, 244, 248, 1)",primaryTextColor:"rgba(38, 46, 61, 0.8)",secondaryTextColor:"rgba(38, 46, 61, 0.55)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},systemMessages:{backgroundColor:"rgba(255, 255, 255, 1)"},input:{backgroundColor:"rgba(255, 255, 255, 1)",focus:{outlineColor:"rgba(38, 46, 61, 0.5)"}},header:{textColor:"rgba(38, 46, 61, 0.8)",backgroundColor:"rgba(255, 255, 255, 1)"},dropup:{backgroundColor:"rgba(255, 255, 255, 1)",boxShadow:"0px 1px 2px rgba(9, 9, 10, 0.1), 0px 2px 4px rgba(9, 9, 10, 0.1)",borderRadius:"4px",headers:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}},items:{textColor:"rgba(38, 46, 61, 0.8)",hover:{backgroundColor:"rgba(244, 244, 248, 1)"}}},border:"1px solid #c6c9ce",borderRadius:"30px",suggestions:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"},loadingGradient:["rgba(194, 196, 203, 1)","rgba(236, 236, 239, 1)"],gap:"8px"},clickableMessages:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(12, 14, 18, 0.07)"}},dataTopics:{backgroundColor:"rgba(255, 255, 255, 1)",items:{textColor:"rgba(38, 46, 61, 1)",backgroundColor:"rgba(244, 244, 248, 1)"}},icons:{color:"rgba(38, 46, 61, 0.67)",feedbackIcons:{hoverColor:"rgba(12, 14, 18, 0.07)"}},tooltips:{backgroundColor:"rgba(255, 255, 255, 1)",textColor:"rgba(38, 46, 61, 0.8)",boxShadow:"0px 4px 12px 0px rgba(9, 9, 10, 0.20), 0px 1px 4px 0px rgba(9, 9, 10, 0.10)"}}},FP={chart:{backgroundColor:"#313138",textColor:"#FFFFFF",secondaryTextColor:"#C5C8CF",panelBackgroundColor:"#313138",animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:'"Open Sans","Roboto","Helvetica","Arial",sans-serif',primaryTextColor:"#FFFFFF",secondaryTextColor:"#C5C8CF"},palette:{variantColors:["#00cee6","#9b9bd7","#6eda55","#fc7570","#fbb755","#218a8c"]},general:{backgroundColor:"#16161C",brandColor:"#FFCB05",primaryButtonTextColor:"#3A4356",primaryButtonHoverColor:"#F2B900"},widget:{spaceAround:"None",cornerRadius:"None",shadow:"None",border:!1,borderColor:"#C5C8CF",header:{titleTextColor:"#FFFFFF",titleAlignment:"Left",dividerLine:!1,dividerLineColor:"#FFFFFF",backgroundColor:"#313138"}},dashboard:{backgroundColor:"#313138",dividerLineWidth:jc,dividerLineColor:Fc},aiChat:{backgroundColor:"rgba(23, 28, 38, 1)",primaryTextColor:"rgba(242, 247, 255, 0.9)",secondaryTextColor:"rgba(242, 247, 255, 0.4)",primaryFontSize:["13px","18px"],body:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"16px",paddingBottom:"1px",gapBetweenMessages:"16px"},footer:{paddingLeft:"16px",paddingRight:"16px",paddingTop:"12px",paddingBottom:"16px"},userMessages:{backgroundColor:"rgba(31, 92, 153, 1)"},systemMessages:{backgroundColor:"rgba(46, 55, 77, 1)"},input:{backgroundColor:"rgba(242, 247, 255, 0.1)",focus:{outlineColor:"rgba(242, 247, 255, 0.5)"}},header:{backgroundColor:"#313138",textColor:"rgba(242, 247, 255, 0.9)"},dropup:{backgroundColor:"rgba(38, 46, 64, 1)",boxShadow:"0px 1px 4px 0px #020203, 0px 2px 12px 2px rgba(2, 2, 3, 0.25)",borderRadius:"8px",headers:{textColor:"rgba(242, 247, 255, 0.6)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}},items:{textColor:"rgba(242, 247, 255, 0.9)",hover:{backgroundColor:"rgba(242, 247, 255, 0.1)"}}},border:!1,borderRadius:"30px",suggestions:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderRadius:"16px",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"},loadingGradient:["rgba(242, 247, 255, 0.1)","rgba(242, 247, 255, 0.3)"],gap:"8px"},clickableMessages:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(23, 28, 38, 1)",border:"1px solid",borderGradient:["rgba(75, 153, 233, 1)","rgba(102, 57, 191, 1)"],hover:{textColor:"rgba(88, 192, 244, 1)",backgroundColor:"rgba(242, 247, 255, 0.1)"}},dataTopics:{backgroundColor:"rgba(23, 28, 38, 1)",items:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)"}},icons:{color:"rgba(242, 247, 255, 0.5)",feedbackIcons:{hoverColor:"rgba(242, 247, 255, 0.1)"}},tooltips:{textColor:"rgba(242, 247, 255, 0.9)",backgroundColor:"rgba(46, 55, 77, 1)",boxShadow:"0px 1px 8px 0px #020203, 0px 4px 24px 4px rgba(2, 2, 3, 0.25)"}}},xs=(e=!1)=>e?R.cloneDeep(FP):R.cloneDeep(WP),co={none:"None",small:"Small",medium:"Medium",large:"Large",left:"Left",center:"Center",right:"Right",light:"Light",dark:"Dark"};function dv(e,t){const r={chart:{textColor:e.dashboards.widgetTextColor,backgroundColor:e.dashboards.widgetBackgroundColor,secondaryTextColor:e.dashboards.widgetSecondaryTextColor,panelBackgroundColor:e.dashboards.panelBackgroundColor,animation:{init:{duration:"auto"},redraw:{duration:"auto"}}},typography:{fontFamily:e.typography.fontFamily,primaryTextColor:e.typography.primaryTextColor,secondaryTextColor:e.typography.secondaryTextColor},palette:{variantColors:t.colors},general:{brandColor:e.general.brandColor,backgroundColor:e.general.backgroundColor,primaryButtonTextColor:e.general.primaryButtonTextColor,primaryButtonHoverColor:e.general.primaryButtonHoverColor},widget:{spaceAround:co[e.dashboards.widgetSpacing],cornerRadius:co[e.dashboards.widgetCornerRadius],shadow:co[e.dashboards.widgetShadow],border:e.dashboards.widgetBorderEnabled,borderColor:e.dashboards.widgetBorderColor,header:{titleTextColor:e.dashboards.widgetTitleColor,titleAlignment:co[e.dashboards.widgetTitleAlignment],dividerLine:e.dashboards.widgetTitleDividerEnabled,dividerLineColor:e.dashboards.widgetTitleDividerColor,backgroundColor:e.dashboards.widgetTitleBackgroundColor}},dashboard:{backgroundColor:e.dashboards.layoutBackgroundColor,dividerLineWidth:jc,dividerLineColor:Fc}};return R.merge.withOptions({mergeArrays:!1},xs(),r)}function fv(e){return e.dashboards.colorPaletteName}function hv(e,t){return yr(this,null,function*(){const r=yield jP(e,t);if(!r)throw new R.TranslatableError("errors.themeNotFound",{themeOid:e});const n=fv(r),o=yield pv(n,t);return dv(r,o)})}function jP(e,t){return yr(this,null,function*(){return t.get(`api/v1/themes/${e}`).catch(()=>{throw new R.TranslatableError("errors.themeNotFound",{themeOid:e})})})}function pv(e,t){return yr(this,null,function*(){const r=yield t.get(`api/palettes/${e}`);if(r&&"status"in r&&r.status==="error")throw new R.TranslatableError("errors.paletteNotFound",{paletteName:e});return r})}function BP(e){return"value"in e}function HP(e){return"valuePromise"in e}const VP=(e,t)=>{const r=new Map;return{withCache:a=>(...l)=>yr(exports,null,function*(){const u=e(...l);if(r.has(u)){const c=r.get(u);if(BP(c))return c.value;if(HP(c))return c.valuePromise;throw new Error("Unexpected cache value")}else{const c=a(...l);return r.set(u,{valuePromise:c,createdAt:new Date}),c.then(f=>(r.set(u,{value:f,createdAt:new Date}),t!=null&&t.cacheMaxSize&&r.size>t.cacheMaxSize&&UP(r),f))}}),clearCache:a=>{if(a){r.delete(a);return}r.clear()}}};function UP(e){const t=Array.from(e.keys()),r=t.reduce((n,o)=>{const a=e.get(o),l=e.get(n);return a.createdAt<l.createdAt?o:n},t[0]);e.delete(r)}const Bc=(e,t)=>{const{dataSource:r,dimensions:n=[],measures:o=[],filters:a=[],filterRelations:l,highlights:u=[],count:c,offset:f,ungroup:p}=e;a&&a.forEach(h=>h.isScope=!0),u&&u.forEach(h=>h.isScope=!0);const m=r||t;if(!m)throw new R.TranslatableError("errors.executeQueryNoDataSource");return{dataSource:m,attributes:n,measures:o,filters:a,filterRelations:l,highlights:u,count:c,offset:f,ungroup:p}};function Bo(e,t,r){const n=Bc(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeQuery(n,r).resultPromise.catch(o=>{throw o.message.includes("SecondsLevelIsNotSupportedException")?new R.TranslatableError("errors.secondsDateTimeLevelSupportedOnlyForLive"):o})}const qP=(e,t,r)=>{const n=Bc(e,t==null?void 0:t.defaultDataSource);return t.queryClient.executeCsvQuery(n,r).resultPromise},GP=(e,t,r)=>{const{dataSource:n,rows:o=[],columns:a=[],values:l=[],grandTotals:u={},filters:c=[],filterRelations:f,highlights:p=[],count:m,offset:h}=e;c&&c.forEach(_=>_.isScope=!0),p&&p.forEach(_=>_.isScope=!0);const g=n||(t==null?void 0:t.defaultDataSource);if(!g)throw new R.TranslatableError("errors.executeQueryNoDataSource");return t.queryClient.executePivotQuery({dataSource:g,rowsAttributes:o,columnsAttributes:a,measures:l,grandTotals:u,filters:c,filterRelations:f,highlights:p,count:m,offset:h},r).resultPromise},YP=e=>JSON.stringify(he(ie({},Om(e,!1)),{queryGuid:""})),mv=(e,t)=>{const r=Bc(e,t==null?void 0:t.defaultDataSource);return YP(r)},XP=250,{withCache:ZP,clearCache:KP}=VP(mv,{cacheMaxSize:XP}),Hc=ZP(Bo),QP=KP;function JP(){}var Vc=JP,eR=R._baseCreate,tR=Vc;function Qa(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}Qa.prototype=eR(tR.prototype);Qa.prototype.constructor=Qa;var Uc=Qa,Ph=R._WeakMap,rR=Ph&&new Ph,nR=rR;function iR(){}var vv=iR,Rh=nR,oR=vv,aR=Rh?function(e){return Rh.get(e)}:oR,gv=aR,sR={},lR=sR,Oh=lR,uR=Object.prototype,cR=uR.hasOwnProperty;function dR(e){for(var t=e.name+"",r=Oh[t],n=cR.call(Oh,t)?r.length:0;n--;){var o=r[n],a=o.func;if(a==null||a==e)return o.name}return t}var yv=dR,fR=R._baseCreate,hR=Vc,pR=4294967295;function Ja(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=pR,this.__views__=[]}Ja.prototype=fR(hR.prototype);Ja.prototype.constructor=Ja;var qc=Ja,mR=qc,vR=Uc,gR=R._copyArray;function yR(e){if(e instanceof mR)return e.clone();var t=new vR(e.__wrapped__,e.__chain__);return t.__actions__=gR(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var bR=yR,_R=qc,kh=Uc,wR=Vc,xR=R.isArray_1,CR=R.isObjectLike_1,TR=bR,ER=Object.prototype,SR=ER.hasOwnProperty;function es(e){if(CR(e)&&!xR(e)&&!(e instanceof _R)){if(e instanceof kh)return e;if(SR.call(e,"__wrapped__"))return TR(e)}return new kh(e)}es.prototype=wR.prototype;es.prototype.constructor=es;var MR=es,PR=qc,RR=gv,OR=yv,kR=MR;function NR(e){var t=OR(e),r=kR[t];if(typeof r!="function"||!(t in PR.prototype))return!1;if(e===r)return!0;var n=RR(r);return!!n&&e===n[0]}var DR=NR,Nh=Uc,LR=R._flatRest,AR=gv,Al=yv,IR=R.isArray_1,Dh=DR,$R="Expected a function",zR=8,WR=32,FR=128,jR=256;function BR(e){return LR(function(t){var r=t.length,n=r,o=Nh.prototype.thru;for(e&&t.reverse();n--;){var a=t[n];if(typeof a!="function")throw new TypeError($R);if(o&&!l&&Al(a)=="wrapper")var l=new Nh([],!0)}for(n=l?n:r;++n<r;){a=t[n];var u=Al(a),c=u=="wrapper"?AR(a):void 0;c&&Dh(c[0])&&c[1]==(FR|zR|WR|jR)&&!c[4].length&&c[9]==1?l=l[Al(c[0])].apply(l,c[3]):l=a.length==1&&Dh(a)?l[u]():l.thru(a)}return function(){var f=arguments,p=f[0];if(l&&f.length==1&&IR(p))return l.plant(p).value();for(var m=0,h=r?t[m].apply(this,f):p;++m<r;)h=t[m].call(this,h);return h}})}var HR=BR,VR=HR,UR=VR(),qR=UR;const bv=R.getDefaultExportFromCjs(qR),Gc=Q.createContext({isInitialized:!1,tracking:{enabled:!0,packageName:"sdk-ui"}}),gt=()=>Q.useContext(Gc),Lh="composesdk",_v=(e,t,r,n=!1)=>{const o=Object.assign({action:e,cat:Lh,eventType:"product",direct:!0},t);return n?(console.debug("DEBUG: event payload to send",o),Promise.resolve()):r.post("api/activities/",[o],{cache:"no-store",redirect:"error",referrerPolicy:"same-origin",priority:"low"}).catch(a=>{console.error(`unable to log action=${e}, category=${Lh}`,a)})},GR={sdkComponentInit:{internal:!0,external:!0},sdkHookInit:{internal:!0,external:!0},sdkError:{internal:!0,external:!1},sdkCliExec:{internal:!0,external:!1},sdkAngularServiceMethodExecuted:{internal:!0,external:!0}},Ah=(e,t,r,n,o)=>{const a=GR[`${e}`];return a.internal&&_v(e,t,r,o),a.external&&n&&n(ie({action:e},t)),Promise.resolve()},Yc=()=>{const{tracking:e,app:t}=gt(),r=Q.useCallback((o,a={},l=!1)=>t?Ah(o,a,t.httpClient,e.onTrackingEvent,l):Promise.resolve(),[e,t]),n=Q.useCallback((o,a=!1)=>{if(!t)return Promise.resolve();const{packageName:l,packageVersion:u,component:c,error:f}=o;let p="";return typeof f=="string"?p=f:f instanceof Error&&(p=f.message||f.toString()),Ah("sdkError",{packageName:l,packageVersion:u,component:c,error:p},t.httpClient,e.onTrackingEvent,a)},[e,t]);return{trackEvent:r,trackError:n}},YR="sdkComponentInit",wv=Q.createContext(!1),XR=({skipNested:e=!0,children:t})=>V.jsx(wv.Provider,{value:e,children:t}),ZR=(e,t)=>{const{tracking:r}=gt(),{trackEvent:n}=Yc(),o=Q.useContext(wv),a=Q.useRef(!1);Q.useEffect(()=>{if(!r)return;if(!a.current&&!o){const u={packageName:r.packageName,packageVersion:"1.17.0",componentName:e,attributesUsed:Object.entries(t).filter(([,c])=>!!c).map(([c])=>c).join(", ")};n(YR,u,!r.enabled).finally(()=>a.current=!0)}},[e,t,r,o,n])};var KR=R._baseGetTag,QR=R.isObjectLike_1,JR="[object Boolean]";function eO(e){return e===!0||e===!1||QR(e)&&KR(e)==JR}var tO=eO;const xv=R.getDefaultExportFromCjs(tO);class Cv extends Q.Component{constructor(r){super(r);xt(this,"componentName");xt(this,"context");xt(this,"handler");xt(this,"httpClient");xt(this,"postponedErrors",[]);this.handler=r.handler,this.componentName=r.componentName}componentDidMount(){var r;this.context.isInitialized&&(this.httpClient=(r=this.context.app)==null?void 0:r.httpClient)}componentDidCatch(r){throw this.context.tracking.enabled&&(this.httpClient?this.sendErrorTracking(r):this.postponedErrors.push(r)),r}sendErrorTracking(r){try{this.handler({packageName:"sdk-ui",packageVersion:"1.17.0",component:this.componentName,error:r})}catch(n){console.log("Failed to send tracking error event: ",n)}}render(){return this.httpClient&&this.postponedErrors.length>0&&this.postponedErrors.forEach(r=>this.sendErrorTracking(r)),this.postponedErrors=[],this.props.children}}xt(Cv,"contextType",Gc);const rO=({componentName:e,config:t})=>{const{skip:r,transparent:n}=t||{};return o=>function(l){const{trackError:u}=Yc();return xv(r)&&r||R.isFunction(r)&&r(l)?V.jsx(o,ie({},l)):(ZR(e,l),V.jsx(XR,{skipNested:!n,children:V.jsx(Cv,{componentName:e,handler:u,children:V.jsx(o,ie({},l))})}))}},nO="_container_1wquj_1",iO="_card_1wquj_11",oO="_text_1wquj_19",Il={container:nO,card:iO,text:oO};function Tv({color:e="#FFCB05"}){return V.jsx("svg",{width:"53px",height:"53px",viewBox:"0 0 53 53",children:V.jsx("g",{stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:V.jsxs("g",{children:[V.jsx("polygon",{points:"26.4996 -0.000100000005 -0.000400000001 26.5009 26.4996 52.9999 53.0006 26.5009",fill:e}),V.jsx("path",{d:"M24.5,39.054 L24.5,35.054 L28.5,35.054 L28.5,39.054 L24.5,39.054 Z M28.5,31.0536 L24.5,31.0536 L23.5,13.0536 L29.5,13.0536 L28.5,31.0536 Z",fill:"#FFFFFF"})]})})})}const Xc=Q.createContext({themeSettings:xs()}),jt=()=>Q.useContext(Xc),aO=({error:e=new R.TranslatableError("errors.componentRenderError")})=>{var h,g,_,y,x,S;const{themeSettings:t}=jt(),{app:r}=gt(),{t:n}=ms(),[o,a]=Q.useState(!1),l=()=>{a(!0)},u=()=>{a(!1)},c=V.jsx("div",{className:"csdk-flex csdk-justify-center csdk-mb-[10px]",children:V.jsx(Tv,{color:(h=t==null?void 0:t.general)==null?void 0:h.brandColor})}),f=e instanceof R.AbstractTranslatableError?n(e.key,ie({},e.interpolationOptions)):n(e instanceof Error?e.message:e),p=n("errorBoxText",{errorMessage:f,interpolation:{escapeValue:!1}}),m=(_=(g=r==null?void 0:r.settings)==null?void 0:g.errorBoundaryConfig)==null?void 0:_.alwaysShowErrorText;return V.jsx("div",{onMouseEnter:m?void 0:l,onMouseLeave:m?void 0:u,className:Il.container,"aria-label":"error-box",children:V.jsxs("div",{className:Il.card,style:{backgroundColor:((y=t==null?void 0:t.general)==null?void 0:y.backgroundColor)||"rgba(255,255,255,0.5)"},children:[c,(m||o)&&V.jsx("div",{className:Il.text,style:{color:((x=t==null?void 0:t.typography)==null?void 0:x.primaryTextColor)||"#5b6372",fontFamily:((S=t==null?void 0:t.typography)==null?void 0:S.fontFamily)||"inherit"},children:p})]})})};class Ev extends Q.Component{constructor(r){var n;super(r);xt(this,"showErrorBox",!0);xt(this,"context");this.showErrorBox=(n=r.showErrorBox)!=null?n:!0,this.state={error:null}}static getDerivedStateFromError(r){return{error:r}}componentDidCatch(r){this.setState({error:r})}componentDidUpdate(r,n){n.error!==null&&sO(r.resetKeys,this.props.resetKeys)&&this.setState({error:null})}render(){const r=this.state.error||this.props.error;return r&&this.showErrorBox?V.jsx(aO,{error:r}):this.props.children}}function sO(e=[],t=[]){return e.length!==t.length||e.some((r,n)=>!Object.is(r,t[n]))}const lO=()=>e=>function(r){return V.jsx(Ev,{resetKeys:Object.values(r),children:V.jsx(e,ie({},r))})},Sv=({color:e})=>{const t={backgroundColor:e||"#333333",float:"left",width:"10px",height:"10px",marginRight:"7px",WebkitAnimation:"loading-dots-animation 1.8s infinite ease-in-out",animation:"loading-dots-animation 1.8s infinite ease-in-out",borderRadius:"50%",opacity:.75},r=he(ie({},t),{WebkitAnimationDelay:"-0.32s",animationDelay:"-0.32s"}),n=he(ie({},t),{WebkitAnimationDelay:"-0.16s",animationDelay:"-0.16s"}),o=he(ie({},t),{marginRight:"unset"}),a={"0%, 80%, 100%":{WebkitTransform:"scale(0) rotate(0deg)",transform:"scale(0) rotate(0deg)"},"40%":{WebkitTransform:"scale(1) rotate(0.02deg)",transform:"scale(1) rotate(0.02deg)"}};return V.jsxs("div",{children:[V.jsx("style",{children:`
|
|
16
|
+
@keyframes loading-dots-animation {
|
|
17
|
+
${Object.entries(a).map(([l,u])=>`${l} { ${Object.entries(u).map(([c,f])=>`${c}: ${f};`).join("")} }`).join("")}
|
|
18
|
+
}
|
|
19
|
+
`}),V.jsx("div",{style:r}),V.jsx("div",{style:n}),V.jsx("div",{style:o})]})},Cs=({themeSettings:e,onCancel:t})=>{const r=e!=null&&e.chart.backgroundColor?{backgroundColor:e.chart.backgroundColor}:void 0,n=e!=null&&e.chart.panelBackgroundColor?{backgroundColor:e.chart.panelBackgroundColor}:void 0;return V.jsx("div",{style:r,className:"csdk-h-full csdk-bg-white csdk-p-[20px]",children:V.jsxs("div",{style:n,className:"csdk-h-full csdk-bg-background-priority csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center",children:[V.jsx(Sv,{color:e==null?void 0:e.chart.textColor}),t&&V.jsx("div",{className:"csdk-text-ai-sm csdk-text-text-link csdk-cursor-pointer",onClick:t,children:"Cancel"})]})})},uO=({shouldSkipSisenseContextWaiting:e,customContextErrorMessageKey:t})=>r=>function(o){if(cO(e,o))return V.jsx(r,ie({},o));const{app:a,isInitialized:l}=gt();if(!l){const u=t||"errors.noSisenseContext";throw new R.TranslatableError(u)}return a?V.jsx(r,ie({},o)):V.jsx(Cs,{})};function cO(e,t){return xv(e)&&e||R.isFunction(e)&&e(t)}function dO(){const[e,t]=Q.useState(null);return Q.useEffect(()=>{R.initializeI18n().initPromise.then(r=>t(r))},[]),e}const Mv=({children:e,userLanguage:t})=>{const r=dO();return Q.useEffect(()=>{t&&(r==null?void 0:r.language)!==t&&(r==null||r.changeLanguage(t))},[r,t]),r&&V.jsx(T0,{i18n:r,children:e})},fO=()=>e=>function(r){const{isInitialized:n}=gt();return n?V.jsx(e,ie({},r)):V.jsx(Mv,{children:V.jsx(e,ie({},r))})},hO=e=>t=>(t.displayName=e,t),Un=e=>{const{componentName:t,shouldSkipSisenseContextWaiting:r,trackingConfig:n={},customContextErrorMessageKey:o}=e;return a=>bv(hO(t),uO({shouldSkipSisenseContextWaiting:r,customContextErrorMessageKey:o}),rO({componentName:t,config:n}),lO(),fO())(a)},pO=(e,t)=>{const r=he(ie({},e),{x:e.breakBy,breakBy:[]});let n=R.cartesianData(r,t);if(e.breakBy.some(a=>R.isNumber(a.type)&&(a==null?void 0:a.numberFormatConfig))){const a=n.xValues.map(l=>{const u=[];return e.breakBy.forEach((c,f)=>{const p=R.getCompleteNumberFormatConfig(c==null?void 0:c.numberFormatConfig),m=l.xValues[f];R.isNumber(c.type)?u.push(R.applyFormatPlainText(p,parseFloat(m))):u.push(l.xValues[f])}),he(ie({},l),{xValues:u})});n=he(ie({},n),{xValues:a})}return he(ie({},n),{type:"categorical"})},Pa=(e,t)=>{if(!t||t.length!==1)return[void 0,void 0];const r=R.getColumnByName(e,t[0].name);return r?[R.getValue(e.rows[0],r),t[0].name]:[void 0,void 0]},mO=(e,t)=>{const r={type:"indicator"};if(!e.value||t.rows.length===0)return r;const[n]=Pa(t,e.value);if(n===void 0)return r;const[o]=Pa(t,e.secondary),[a]=Pa(t,e.min),[l]=Pa(t,e.max);return{type:"indicator",value:n,secondary:o,min:a,max:l}},vO=(e,t)=>{const r=e.category&&R.getColumnByName(t,e.category.name);r&&(r.direction=R.sortDirection(e.category.sortType));const n=R.getOrderedXValues(t,[],r?[r]:[],(r==null?void 0:r.direction)===0?R.rownumColumnName:void 0),o=R.getIndexedRows(t.rows,r?[r]:[]),a=R.getColumnByName(t,e.boxMin.name),l=R.getColumnByName(t,e.boxMedian.name),u=R.getColumnByName(t,e.boxMax.name),c=R.getColumnByName(t,e.whiskerMin.name),f=R.getColumnByName(t,e.whiskerMax.name),p=e.outliers&&R.getColumnByName(t,e.outliers.name),m=[],h=[];n.forEach((_,y)=>{const x=o[_.key],S=x?x[0]:[],E=r&&!!R.isBlurred(S,r);m.push({q1:a?R.getValue(S,a):0,median:l?R.getValue(S,l):0,q3:u?R.getValue(S,u):0,low:c?R.getValue(S,c):0,high:f?R.getValue(S,f):0,blur:E});const T=p?S[p.index].rawValue.split(",").map(C=>parseFloat(C)):[];h.push(...T.map(C=>({x:y,y:C,blur:E})))});const g=[{name:e.valueTitle,title:e.valueTitle,data:m}];return h.length>0&&g.push({name:e.valueTitle,title:e.valueTitle,data:h}),{type:"boxplot",xValues:n,series:g}},gO=(e,t)=>{let r={type:"range",steps:e.steps};if(e.rangeMode!=="auto"){const l=parseFloat(`${e.minvalue}`),u=parseFloat(`${e.midvalue}`),c=parseFloat(`${e.maxvalue}`);r=ie(ie(ie(ie({},r),l&&{minValue:l}),u&&{midValue:u}),c&&{maxValue:c})}const n=R.getPaletteColor(t,0),o=R.scaleBrightness(n,.2),a=R.scaleBrightness(n,-.2);switch(e.rangeMode){case"auto":return he(ie({},r),{minColor:R.toGray(n),maxColor:a});case"both":return he(ie({},r),{minColor:e.min||o,maxColor:e.max||a});case"min":return he(ie({},r),{minColor:e.min||o,maxColor:R.DEFAULT_COLOR});case"max":return he(ie({},r),{minColor:R.DEFAULT_COLOR,maxColor:e.max||a})}},Pv=(e,t)=>{if(e!==void 0)switch(e.type){case"color":return{type:"uniform",color:e.color||R.getPaletteColor(t,e.colorIndex||0)};case"range":return gO(e,t);case"condition":return{type:"conditional",conditions:e.conditions.filter(r=>typeof r.expression=="string"),defaultColor:R.getPaletteColor(t,0)};default:return R.getUniformColorOptionsFromString(R.getPaletteColor(t,0))}},Rv=e=>Object.entries(e).reduce((t,[r,{color:n}])=>(t[r]=n,t),{}),yO=e=>e.reduce((t,r)=>{var n,o;return(n=r.format)!=null&&n.members&&(t[R.normalizeName(r.jaql.title)]=Rv((o=r.format)==null?void 0:o.members)),t},{}),bO=R.createDataColoringFunction({getValueFromDataStructure:e=>e.originalValue,applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})}),_O=Pv({type:"range",steps:5,rangeMode:"auto"}),wO=(e,t)=>{const r=R.getColumnByName(t,e.geo.name),n=R.getColumnByName(t,e.color.name);if(!r||!n)throw new Error("Missing required column");const o=t.rows.map(l=>{const u=R.getValue(l,n),c=R.getCompleteNumberFormatConfig(e.color.numberFormatConfig),f=R.applyFormatPlainText(c,u);return{geoName:R.getValue(l,r),originalValue:u,formattedOriginalValue:f}});return{type:"areamap",geoData:bO(o,e.color.color||_O)}};function xO(e,t,r){var n=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(o);++n<o;)a[n]=e[n+t];return a}var CO=xO,TO=CO;function EO(e,t,r){var n=e.length;return r=r===void 0?n:r,!t&&r>=n?e:TO(e,t,r)}var Ov=EO;function SO(e,t,r,n){for(var o=e.length,a=r+(n?1:-1);n?a--:++a<o;)if(t(e[a],a,e))return a;return-1}var MO=SO;function PO(e){return e!==e}var RO=PO;function OO(e,t,r){for(var n=r-1,o=e.length;++n<o;)if(e[n]===t)return n;return-1}var kO=OO,NO=MO,DO=RO,LO=kO;function AO(e,t,r){return t===t?LO(e,t,r):NO(e,DO,r)}var Zc=AO,IO=Zc;function $O(e,t){for(var r=e.length;r--&&IO(t,e[r],0)>-1;);return r}var zO=$O,WO=Zc;function FO(e,t){for(var r=-1,n=e.length;++r<n&&WO(t,e[r],0)>-1;);return r}var jO=FO;function BO(e){return e.split("")}var HO=BO,VO="\\ud800-\\udfff",UO="\\u0300-\\u036f",qO="\\ufe20-\\ufe2f",GO="\\u20d0-\\u20ff",YO=UO+qO+GO,XO="\\ufe0e\\ufe0f",ZO="\\u200d",KO=RegExp("["+ZO+VO+YO+XO+"]");function QO(e){return KO.test(e)}var kv=QO,Nv="\\ud800-\\udfff",JO="\\u0300-\\u036f",ek="\\ufe20-\\ufe2f",tk="\\u20d0-\\u20ff",rk=JO+ek+tk,nk="\\ufe0e\\ufe0f",ik="["+Nv+"]",Yu="["+rk+"]",Xu="\\ud83c[\\udffb-\\udfff]",ok="(?:"+Yu+"|"+Xu+")",Dv="[^"+Nv+"]",Lv="(?:\\ud83c[\\udde6-\\uddff]){2}",Av="[\\ud800-\\udbff][\\udc00-\\udfff]",ak="\\u200d",Iv=ok+"?",$v="["+nk+"]?",sk="(?:"+ak+"(?:"+[Dv,Lv,Av].join("|")+")"+$v+Iv+")*",lk=$v+Iv+sk,uk="(?:"+[Dv+Yu+"?",Yu,Lv,Av,ik].join("|")+")",ck=RegExp(Xu+"(?="+Xu+")|"+uk+lk,"g");function dk(e){return e.match(ck)||[]}var fk=dk,hk=HO,pk=kv,mk=fk;function vk(e){return pk(e)?mk(e):hk(e)}var zv=vk,gk=R._baseToString,yk=R._baseTrim,bk=Ov,_k=zO,wk=jO,Ih=zv,xk=R.toString_1;function Ck(e,t,r){if(e=xk(e),e&&(r||t===void 0))return yk(e);if(!e||!(t=gk(t)))return e;var n=Ih(e),o=Ih(t),a=wk(n,o),l=_k(n,o)+1;return bk(n,a,l).join("")}var Tk=Ck;const Ek=R.getDefaultExportFromCjs(Tk),Wv=",";function Sk(e){return e.join(`${Wv} `)}function Mk(e){return e.split(Wv).map(Ek)}function Pk(e){switch(e){case"city":return"city";case"state":return"adm";case"country":return"country"}}function Rk(e){const{name:t,rawName:r,coordinates:n,value:o}=e;return{categories:r,displayName:t,coordinates:{lat:n.lat,lng:n.lng},value:o}}const Ok="N\\A",kk=1,Nk=(e,t)=>{const r=Dk(e),n=e.locations&&R.getColumnsByName(t,e.locations.map(({name:c})=>c)),o=e.size&&R.getColumnByName(t,e.size.name),a=e.colorBy&&R.getColumnByName(t,e.colorBy.name),l=e.details&&R.getColumnByName(t,e.details.name);return{type:"scattermap",locations:t.rows.filter(c=>n.some(f=>R.getValue(c,f)!==Ok)).map(c=>{const f=n.map(g=>R.getValue(c,g)),p=Sk(f);let m;r&&(m={lat:R.getValue(c,n[0]),lng:R.getValue(c,n[1])});const h=n[0]&&!!R.isBlurred(c,n[0]);return ie(he(ie(ie({name:p,rawName:f,value:o?R.getValue(c,o):kk},a&&{colorValue:R.getValue(c,a)}),l&&{details:R.getValue(c,l)}),{blur:h}),m?{coordinates:m}:null)})}};function Dk(e){return e.locations.length===2&&e.locations.filter(t=>R.isNumber(t.type)).length===2}const Lk=(e,t,r)=>{if(R.isCartesian(e))return R.isForecastChart(t)?R.advancedAnalyticsData(t,r):R.cartesianData(t,r);if(R.isCategorical(e))return pO(t,r);if(R.isScatter(e))return R.scatterData(t,r);if(R.isScattermap(e))return Nk(t,r);if(R.isIndicator(e))return mO(t,r);if(R.isBoxplot(e))return vO(t,r);if(R.isAreamap(e))return wO(t,r);if(R.isRange(e))return R.rangeData(t,r);throw new Error(`Unexpected chart type: ${e}`)};var Ak=R.identity_1,Ik=R._overRest,$k=R._setToString;function zk(e,t){return $k(Ik(e,t,Ak),e+"")}var Ts=zk,Wk=Zc;function Fk(e,t){var r=e==null?0:e.length;return!!r&&Wk(e,t,0)>-1}var jk=Fk;function Bk(e,t,r){for(var n=-1,o=e==null?0:e.length;++n<o;)if(r(t,e[n]))return!0;return!1}var Hk=Bk,$l=R._Set,Vk=vv,Uk=R._setToArray,qk=1/0,Gk=$l&&1/Uk(new $l([,-0]))[1]==qk?function(e){return new $l(e)}:Vk,Yk=Gk,Xk=R._SetCache,Zk=jk,Kk=Hk,Qk=R._cacheHas,Jk=Yk,eN=R._setToArray,tN=200;function rN(e,t,r){var n=-1,o=Zk,a=e.length,l=!0,u=[],c=u;if(r)l=!1,o=Kk;else if(a>=tN){var f=t?null:Jk(e);if(f)return eN(f);l=!1,o=Qk,c=new Xk}else c=t?[]:u;e:for(;++n<a;){var p=e[n],m=t?t(p):p;if(p=r||p!==0?p:0,l&&m===m){for(var h=c.length;h--;)if(c[h]===m)continue e;t&&c.push(m),u.push(p)}else o(c,m,r)||(c!==u&&c.push(m),u.push(p))}return u}var Kc=rN,nN=R.isArrayLike_1,iN=R.isObjectLike_1;function oN(e){return iN(e)&&nN(e)}var Fv=oN,aN=R._baseFlatten,sN=Ts,lN=Kc,uN=Fv,cN=sN(function(e){return lN(aN(e,1,uN,!0))}),dN=cN;const fN=R.getDefaultExportFromCjs(dN),jv=(e,t,r,n={})=>{if(R.emptyTable(e))return{rows:[],columns:[]};const o=fN(R.getColumnsByName(e,t.map(p=>p.name))),a=e,u=[...r.map(p=>{var m,h;return{column:(m=n[p.name])!=null?m:p.name,title:p.name,agg:(h=p.aggregation)!=null?h:"sum"}}),{column:R.rownumColumnName,title:R.rownumColumnName,agg:"min"}],c=R.groupBy(a,o,u),f=R.getColumnByName(c,R.rownumColumnName);if(!f)throw new Error("Unexpected data has no row num column");return R.orderBy(c,[f])};class Ho{degToRad(t){return t*Math.PI/180}getFitStringMeasure(t,r,n,o){t.font=o;let a=this.getStringWidth(t,r);const l="…",u=this.getStringWidth(t,l);if(a<=n)return{string:r,width:a};if(u>=n)return{string:l,width:u};do r=r.slice(0,r.length-1),a=this.getStringWidth(t,r);while(a+u>n);return{string:r+l,width:a+u}}getStringWidth(t,r){return Math.ceil(t.measureText(r).width)}floor(t,r){r=typeof r=="number"?r:0;const n=Math.pow(10,r);return Math.round(t*n)/n}setCanvasSizes(t,r,n,o){const a=window.devicePixelRatio||1;t.width=n*a,t.height=o*a,t.style.width=n+"px",t.style.height=o+"px",r.scale(a,a)}}const mi=new Ho,Ln=function(e,t){return mi.floor(e*t.value,t.decimals)};function hN(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function pN(e,t,r){const{showTitle:n,showSecondary:o,skin:a,maxHeight:l,maxWidth:u,borderWidth:c}=r;for(let f=0;f<t.length;f++){const p=t[f],m=p.value,h=Ln(m,e.valueSectionMarginBottom),_=Ln(m,e.indicatorVerticalMargin)*2;let y=m+h+_;if(n&&a==="vertical"){const x=Ln(m,e.titleSectionHeight);y+=x}if(o){const x=Ln(m,e.secSectionHeight),S=Ln(m,e.secSectionMarginTop);y+=x+S+(c||0)}if(y<=l){const x=Ln(m,e.numericMinWidth),E=Ln(m,e.indicatorHorizontalMargin)*2;if(x+E<=u)return he(ie({},p),{maxWidth:u-E,maxHeight:l-_})}}return null}class mN{getBaseMeasure(t,r,n){const o=r,a="sizes"in o?o.sizes:[],l=o.relativeSizes,u=o.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=hN(u,l);return pN(p,a,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary,skin:t.skin,borderWidth:"borderWidth"in o?o.borderWidth:0})}render(t,r,n,o){const a=t.getContext("2d");let l;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,l=n.height,n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),l+=r.skin==="vertical"?n.titleSectionHeight:0),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),l+=n.valueSectionMarginBottom+n.secSectionHeight+n.secSectionMarginTop+n.borderWidth);const u=this.getCanvasWidth(r,n);n.width=u,n.height=l,mi.setCanvasSizes(t,a,u,l),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const o=r.skin==="horizontal",a=n.maxWidth-(o?n.fitValueMeasure.width+n.valueSectionMarginRight:0);if(o&&a+n.titleSectionMinWidth<=0)return;const l=mi.getFitStringMeasure(t,r.title.text,a,n.titleFont);return l.width+=o?n.valueSectionMarginRight:0,l.key="title",l}getFitValueMeasure(t,r,n){const o=mi.getFitStringMeasure(t,r.value.text,n.maxWidth,n.valueFont);return o.key="value",o}getFitSecondaryMeasure(t,r,n){const o=n.secDividerWidth,a=n.maxWidth-o,l=a-n.secTitleMinWidth,u=mi.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=a-u.width,f=mi.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+o,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n;const o=r.fitTitleMeasure,a=r.fitValueMeasure,l=r.fitSecondaryMeasure;if(r.fitMeasures.some(c=>{const f=r[c.key],p=t[c.dataKey];return!!(f&&p&&f[c.prop]!==p.text)}))return r.maxWidth;if(t.skin==="vertical"){let f=o&&o.width>a.width?o:a;f=l&&l.width>f.width?l:f,n=f.width}else n=a.width,o&&(n+=o.width),l&&l.width>n&&(n=l.width);return n}draw(t,r,n){this.clearCanvas(t,n),this.drawValue(t,r,n),r.showTitle&&this.drawTitle(t,r,n),r.showSecondary&&this.drawSecondary(t,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r,n){!n.fitTitleMeasure||r.skin==="horizontal"&&n.fitValueMeasure.string!==r[n.fitValueMeasure.key].text||(t.font=n.titleFont,t.fillStyle=n.titleColor,r.skin==="vertical"?(t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitTitleMeasure.string,n.width/2,n.titleSectionHeight/2)):(t.textAlign="left",t.textBaseline="top",t.fillText(n.fitTitleMeasure.string,n.fitValueMeasure.width+n.valueSectionMarginRight,n.titleSectionMarginTop)))}drawValue(t,r,n){const o=r.skin==="vertical";t.fillStyle=n.valueColor||r.color,t.font=n.valueFont,t.textAlign=o?"center":"left",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,o?n.width/2:0,(r.showTitle&&o?n.titleSectionHeight:0)+n.valueSectionHeight/2)}drawSecondary(t,r){let n=r.height-r.secSectionHeight/2;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="middle",t.fillText(r.fitSecondaryMeasure.titleString,0,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.fillText(r.fitSecondaryMeasure.valueString,r.width,n),t.strokeStyle=r.borderColor,t.beginPath(),n=r.height-r.secSectionHeight-r.secSectionMarginTop-r.borderWidth,t.moveTo(0,n),t.lineTo(r.width,n),t.stroke()}}const gi=new Ho,Ra=function(e,t){return gi.floor(e*t.value,t.decimals)};function vN(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function gN(e,t,r){const{showTitle:n,showSecondary:o,maxHeight:a,maxWidth:l,bracketThickness:u}=r;for(let c=0;c<t.length;c++){const f=t[c],p=f.value,m=Ra(p,e.indicatorMargin);let h=p+m;if(n){const g=Ra(p,e.titleSectionHeight);h+=g}if(o){const g=Ra(p,e.secSectionHeight);h+=g}if(h<=a){const g=Ra(p,e.numericMinWidth),_=m*2;if(g+u*2+_<=l)return he(ie({},f),{maxWidth:l-_,maxHeight:a-m})}}return null}class yN{getBaseMeasure(t,r,n){const o=r,a="sizes"in o?o.sizes:[],l=o.relativeSizes,u=o.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=vN(u,l);return gN(p,a,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary,bracketThickness:o.bracketThickness})}render(t,r,n,o){const a=t.getContext("2d");let l;n.height=o.value,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,l=n.height,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),l+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),l+=n.secSectionHeight);const u=this.getCanvasWidth(r,n);n.width=u,n.height=l,gi.setCanvasSizes(t,a,u,l),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-o,l=gi.getFitStringMeasure(t,r.title.text,a,n.titleFont);return l.width+=o,l.key="title",l}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,a=n.maxWidth-o,l=gi.getFitStringMeasure(t,r.value.text,a,n.valueFont);return l.width+=o,l.key="value",l}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-o,l=a-n.secTitleMinWidth,u=gi.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=a-u.width,f=gi.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+o,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.numericMinWidth+r.bracketThickness*2;const o=r.fitTitleMeasure,a=r.fitValueMeasure;let u=o&&o.width>a.width?o:a;const c=r.fitSecondaryMeasure,f=c&&c.width>u.width;let p;return u=f?c:u,f?p=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:p=u.string!==t[u.key].text,p?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),(r.showTitle||r.showSecondary)&&this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,r.titleSectionHeight/2),r.offsetY+=r.titleSectionHeight}drawValue(t,r,n){const o=n.offsetY;t.fillStyle=n.valueColor,t.fillRect(1,o,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,o+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){t.strokeStyle=n.bracketColor,t.beginPath(),r.showTitle?(t.moveTo(n.bracketWidth+.5,.5),t.lineTo(.5,.5)):t.moveTo(.5,.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),r.showTitle?(t.moveTo(n.width-(n.bracketWidth+.5),.5),t.lineTo(n.width-.5,.5)):t.moveTo(n.width-.5,.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}}const Qe=new Ho,si=function(e,t){return Qe.floor(e*t.value,t.decimals)};function bN(e,t){const r={};return e.forEach(n=>{t.some(function(o){return o.key===n?(r[n]=o,!0):!1})}),r}function _N(e,t,r){const{maxWidth:n,maxHeight:o,showTitle:a,showSecondary:l}=r;for(let u=0;u<t.length;u++){const c=t[u],f=c.value,p=si(f,e.valueSectionHeight),m=si(f,e.indicatorMargin),h=Math.ceil(m*1.5);let g=f+p+h;if(a){const _=si(f,e.titleSectionHeight);g+=_}if(l){const _=si(f,e.secSectionHeight);g+=_}if(g<=o){const _=si(f,e.gaugeWidth),y=si(f,e.bracketWidth),x=m*2;if(_+y*2+x<=n)return he(ie({},c),{maxWidth:n-x,maxHeight:o-h})}}return null}class wN{getBaseMeasure(t,r,n){const o=r,a="gaugeHeights"in o?o.gaugeHeights:void 0;if(!a)return null;const l=o.relativeSizes,u=o.measureKeys.concat(),c=Math.floor(n.clientWidth),f=Math.floor(n.clientHeight),p=bN(u,l);return _N(p,a,{maxWidth:c,maxHeight:f,showTitle:t.showTitle,showSecondary:t.showSecondary})}render(t,r,n,o){const a=t.getContext("2d");let l=0,u;n.gaugeHeight=o.value,n.size=o.size,n.maxWidth=o.maxWidth,n.maxHeight=o.maxHeight,n.offsetY=0,u=n.gaugeHeight+n.valueSectionHeight,r.showTitle&&(n.fitTitleMeasure=this.getFitTitleMeasure(a,r,n),u+=n.titleSectionHeight),n.fitValueMeasure=this.getFitValueMeasure(a,r,n),r.showSecondary&&(n.fitSecondaryMeasure=this.getFitSecondaryMeasure(a,r,n),u+=n.secSectionHeight),l=this.getCanvasWidth(r,n),n.width=l,n.height=u,Qe.setCanvasSizes(t,a,l,u),this.draw(a,r,n)}getFitTitleMeasure(t,r,n){const o=n.bracketWidth*2+n.titleHorizontalMargin*2,a=n.maxWidth-o,l=Qe.getFitStringMeasure(t,r.title.text,a,n.titleFont);return l.width+=o,l.key="title",l}getFitValueMeasure(t,r,n){const o=n.bracketThickness*2,a=n.maxWidth-o,l=Qe.getFitStringMeasure(t,r.value.text,a,n.valueFont);return l.width+=o,l.key="value",l}getFitSecondaryMeasure(t,r,n){const o=n.bracketWidth*2+n.secDividerWidth,a=n.maxWidth-o,l=a-n.secTitleMinWidth,u=Qe.getFitStringMeasure(t,r.secondary.text,l,n.secondaryValueFont),c=a-u.width,f=Qe.getFitStringMeasure(t,r.secondaryTitle.text,c,n.secondaryTitleFont);return{width:f.width+u.width+o,titleString:f.string,valueString:u.string,key:"secondary"}}getCanvasWidth(t,r){let n=r.gaugeWidth+r.bracketWidth*2;const o=r.fitTitleMeasure,a=r.fitValueMeasure;let u=o&&o.width>a.width?o:a;const c=r.fitSecondaryMeasure,f=c&&c.width>u.width;let p;return u=f?c:u,f?p=u.titleString!==t.secondaryTitle.text||u.valueString!==t.secondary.text:p=u.string!==t[u.key].text,p?n=r.maxWidth:u.width>n&&(n=u.width),n}draw(t,r,n){this.clearCanvas(t,n),r.showTitle&&this.drawTitle(t,n),this.drawGauge(t,r,n),this.drawValue(t,r,n),r.showSecondary&&this.drawSecondary(t,n),this.drawBrackets(t,r,n)}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.textAlign="center",t.textBaseline="middle",t.fillText(r.fitTitleMeasure.string,r.width/2,(r.titleSectionHeight-r.titleBottomMargin)/2),r.offsetY+=r.titleSectionHeight}drawGauge(t,r,n){n.gaugeCenterX=n.width/2,n.gaugeCenterY=n.offsetY+n.gaugeHeight-n.gaugeBottomMargin,n.needleAngle=this.getNeedleAngle(r,n),r.skin===2&&r.conditions&&r.conditions.length?this.drawConditionalDial(t,r,n):this.drawSimpleDial(t,r,n),r.showTicks&&n.size!=="micro"&&this.drawTicks(t,r,n),this.drawNeedle(t,n),r.showLabels&&n.size!=="micro"&&this.drawLabels(t,r,n),n.offsetY+=n.gaugeHeight}drawValue(t,r,n){t.fillStyle=n.valueColor,t.fillRect(1,n.offsetY,n.width-n.bracketThickness*2,n.valueSectionHeight),t.font=n.valueFont,t.fillStyle="white",t.textAlign="center",t.textBaseline="middle",t.fillText(n.fitValueMeasure.string,n.width/2,n.offsetY+n.valueSectionHeight/2)}drawSecondary(t,r){const n=r.height-r.secBottomMargin;t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.textAlign="left",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.titleString,r.bracketWidth,n),t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.textAlign="right",t.textBaseline="bottom",t.fillText(r.fitSecondaryMeasure.valueString,r.width-r.bracketWidth,n)}drawBrackets(t,r,n){const o=r.showTitle?(n.titleSectionHeight-n.titleBottomMargin)/2:0;t.strokeStyle=n.bracketColor,t.beginPath(),t.moveTo(n.bracketWidth+.5,o+.5),t.lineTo(.5,o+.5),t.lineTo(.5,n.height-.5),r.showSecondary&&t.lineTo(n.bracketWidth+.5,n.height-.5),t.stroke(),t.moveTo(n.width-(n.bracketWidth+.5),o+.5),t.lineTo(n.width-.5,o+.5),t.lineTo(n.width-.5,n.height-.5),r.showSecondary&&t.lineTo(n.width-(n.bracketWidth+.5),n.height-.5),t.stroke(),t.closePath()}getNeedleAngle(t,r){const n=+t.min.data,o=+t.max.data,a=+(t.value.data||0);return a<n?r.startAngle-r.overDegrees:a>o?r.endAngle+r.overDegrees:this.getAngle(r,a,n,o)}getAngle(t,r,n,o){const a=(t.endAngle-t.startAngle)/(o-n);return(r-n)*a+t.startAngle}drawConditionalDial(t,r,n){const o=r.conditions,a=+r.min.data,l=+r.max.data,u=Qe.degToRad(n.startAngle+180),c=Qe.degToRad(n.endAngle+180);let f;const p=m=>this.getAngle(n,m,a,l);for(this.drawArc(t,n,u,c,n.defaultDialColor),f=o.length-1;f>=0;f--){const m=o[f];let h=+m.data,g,_=NaN,y=NaN,x=NaN,S=NaN;const E=.25;switch(m.operator){case"<":if(h<=a)break;h=h>l?l:h,g=p(h),_=u,y=Qe.degToRad(g+180);break;case">":if(h>=l)break;h=h<a?a:h,g=p(h),_=Qe.degToRad(g+180),y=c;break;case"≤":if(h<a)break;h=h>l?l:h,g=p(h),_=u,y=Qe.degToRad(g+(g+E<=n.endAngle?E:0)+180);break;case"≥":if(h>l)break;h=h<a?a:h,g=p(h),_=Qe.degToRad(g-(g-E>=n.startAngle?E:0)+180),y=c;break;case"=":if(h<a||h>l)break;g=p(h),_=Qe.degToRad(g-(g-E>=n.startAngle?E:0)+180),y=Qe.degToRad(g+(g+E<=n.endAngle?E:0)+180);break;case"≠":if(h<a||h>l)_=u,y=c;else if(h===a||h===l){const T=h===a;_=Qe.degToRad(n.startAngle+(T?E:0)+180),y=Qe.degToRad(n.endAngle-(T?0:E)+180)}else g=p(h),_=u,y=Qe.degToRad(g-(g-E>=n.startAngle?E:0)+180),x=Qe.degToRad(g+(g+E<=n.endAngle?E:0)+180),S=c}!isNaN(_)&&!isNaN(y)&&this.drawArc(t,n,_,y,m.color),!isNaN(x)&&!isNaN(S)&&this.drawArc(t,n,x,S,m.color)}}drawSimpleDial(t,r,n){const o=Qe.degToRad(n.startAngle+180),a=Qe.degToRad(n.needleAngle+180),l=Qe.degToRad(n.endAngle+180);n.needleAngle>n.startAngle&&n.needleAngle<n.endAngle?(this.drawArc(t,n,o,a,n.valueColor),t.globalAlpha=n.gaugeOpacity,this.drawArc(t,n,a,l,n.valueColor)):(n.needleAngle<=n.startAngle&&(t.globalAlpha=n.gaugeOpacity),this.drawArc(t,n,o,l,n.valueColor)),t.globalAlpha=1}drawArc(t,r,n,o,a){t.fillStyle=a,t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.outerArcRadius,n,o),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.innerArcRadius,o,n,!0),t.fill()}drawTicks(t,r,n){const o=n.startAngle,a=n.endAngle,l=n.tickDegreesIncrement,u=n.needleAngle;let c;for(c=o;c<=a;c+=l){const f=Qe.degToRad(c),p=n.gaugeCenterX-n.lengthToTick*Math.cos(f),m=n.gaugeCenterY-n.lengthToTick*Math.sin(f),h=u<o,g=u>=c-l/2&&u<c+l/2,_=c===a&&u>=c;t.fillStyle=!h&&g||_?r.color:n.tickColor,t.beginPath(),t.arc(p,m,n.tickRadius,0,2*Math.PI),t.fill()}}drawNeedle(t,r){const n=Qe.degToRad(r.needleAngle);t.fillStyle=r.needleColor,t.save(),t.translate(r.gaugeCenterX,r.gaugeCenterY),t.rotate(n),t.translate(-r.gaugeCenterX,-r.gaugeCenterY),t.beginPath(),t.arc(r.gaugeCenterX,r.gaugeCenterY,r.needleBaseRadius,.5*Math.PI,1.5*Math.PI,!0),t.lineTo(r.gaugeCenterX-r.needleLength,r.gaugeCenterY),t.fill(),t.restore()}drawLabels(t,r,n){t.font=n.labelFont,t.fillStyle=n.labelColor,t.textAlign="right",t.textBaseline="middle",t.fillText(r.min.text,n.gaugeCenterX-n.labelMargin,n.gaugeCenterY),t.textAlign="left",t.fillText(r.max.text,n.gaugeCenterX+n.labelMargin,n.gaugeCenterY)}}const Mr=new Ho;class xN{render(t,r,n,o){const a=t.getContext("2d"),l=Math.floor(o.clientWidth)-n.horizontalMargin*2,u=n.sectionMinWidth;let c=0,f=0,p=0,m=0,h=0,g=0,_=0,y=0,x;if(a.font=n.valueFont,x=Mr.getStringWidth(a,r.value.text),n.offsetX=0,r.title.text+=":",r.secondaryTitle&&(r.secondaryTitle.text+=":"),r.showTitle&&(a.font=n.titleFont,g=Mr.getStringWidth(a,r.value.text),h=Mr.getStringWidth(a,r.title.text),f=h<u?h:u,x+=f+n.textPadding),r.showSecondary&&(a.font=n.secondaryValueFont,y=Mr.getStringWidth(a,r.secondary.text),m=y<u?y:u,x+=m,a.font=n.secondaryTitleFont||"",_=Mr.getStringWidth(a,r.secondaryTitle.text),p=_<u?_:u,x+=p+n.horizontalPadding*2+n.dividerWidth+n.textPadding),r.type==="gauge"){const E=n.horizontalPadding*2+n.dividerWidth;if(n.forceTickerView){const C=g+h+_+y+n.textPadding*4+E,w=l-E-C;n.barWidth=Math.max(w,n.barWidth)}const T=n.barWidth+E;x+=T,n.showTickerBar=x<=l||!0,c+=n.showTickerBar?T:0}c+=r.showTitle?n.textPadding:0,c+=r.showSecondary?n.horizontalPadding*2+n.dividerWidth+n.textPadding:0;const S=l-c-f-p-m;if(n.fitValueMeasure=Mr.getFitStringMeasure(a,r.value.text,S,n.valueFont),c+=n.fitValueMeasure.width,r.showSecondary){const E=l-c-f-p;let T;n.fitSecValueMeasure=Mr.getFitStringMeasure(a,r.secondary.text,E,n.secondaryValueFont),c+=n.fitSecValueMeasure.width;const C=l-c,w=C/2;r.showTitle?h+_>C?h>w&&_>w?T=w:_>w&&h<=w?T=C-h:T=_:T=_:T=C,n.fitSecTitleMeasure=Mr.getFitStringMeasure(a,r.secondaryTitle.text,T,n.secondaryTitleFont),c+=n.fitSecTitleMeasure.width}if(r.showTitle){const E=l-c;n.fitTitleMeasure=Mr.getFitStringMeasure(a,r.title.text,E,n.titleFont),c+=n.fitTitleMeasure.width}n.width=c,Mr.setCanvasSizes(t,a,c,n.height),this.draw(a,r,n)}draw(t,r,n){this.clearCanvas(t,n),r.type==="gauge"&&n.showTickerBar&&(this.drawTickerBar(t,r,n),this.drawDivider(t,n)),t.textBaseline="middle",r.showTitle&&this.drawTitle(t,n),this.drawValue(t,r,n),r.showSecondary&&(this.drawDivider(t,n),this.drawSecondary(t,n))}clearCanvas(t,r){t.fillStyle=r.backgroundColor,t.fillRect(0,0,r.width,r.height)}drawTickerBar(t,r,n){var f;const o=+r.min.data,a=+r.max.data,l=+(((f=r.value)==null?void 0:f.data)||0),u=Math.round((n.height-n.barHeight)/2);let c;if(t.fillStyle=n.valueColor,l<=o)t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=0;else if(l>=a)t.fillRect(n.offsetX,u,n.barWidth,n.barHeight),c=n.barWidth-n.tickerBarWidth;else{const p=(l-Math.abs(o))/(a-o),m=n.barWidth*p;t.fillRect(n.offsetX,u,m,n.barHeight),t.globalAlpha=n.barOpacity,t.fillRect(n.offsetX+m,u,n.barWidth-m,n.barHeight),m>n.barWidth-n.tickerBarWidth?c=n.barWidth-n.tickerBarWidth:m<n.tickerBarWidth?c=0:c=m-1}t.globalAlpha=1,t.fillStyle=n.barHandleColor,t.fillRect(n.offsetX+c,Math.round((n.height-n.tickerBarHeight)/2),n.tickerBarWidth,n.tickerBarHeight),n.offsetX+=n.barWidth}drawDivider(t,r){t.fillStyle=r.dividerColor,t.fillRect(r.offsetX+r.horizontalPadding,Math.round((r.height-r.dividerHeight)/2),r.dividerWidth,r.dividerHeight),r.offsetX+=r.horizontalPadding*2+r.dividerWidth}drawTitle(t,r){t.font=r.titleFont,t.fillStyle=r.titleColor,t.fillText(r.fitTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitTitleMeasure.width+r.textPadding}drawValue(t,r,n){t.font=n.valueFont,t.fillStyle=n.valueColor||r.color,t.fillText(n.fitValueMeasure.string,n.offsetX,Math.floor(n.height/2)),n.offsetX+=n.fitValueMeasure.width}drawSecondary(t,r){t.font=r.secondaryTitleFont,t.fillStyle=r.secondaryTitleColor,t.fillText(r.fitSecTitleMeasure.string,r.offsetX,Math.floor(r.height/2)),r.offsetX+=r.fitSecTitleMeasure.width+r.textPadding,t.font=r.secondaryValueFont,t.fillStyle=r.secondaryValueColor,t.fillText(r.fitSecValueMeasure.string,r.offsetX,Math.floor(r.height/2))}}const $h={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(0,206,230)",fontSizes:{big:66,medium:46,small:32,micro:23}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",borderColor:"rgb(215, 215, 215)",borderWidth:1,relativeSizes:[{key:"titleSectionHeight",value:.5,decimals:0},{key:"titleSectionMarginTop",value:.13,decimals:0},{key:"titleSectionMinWidth",value:.29,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"valueSectionMarginRight",value:.14,decimals:0},{key:"valueSectionMarginBottom",value:.07,decimals:0},{key:"secSectionHeight",value:.34,decimals:0},{key:"secSectionMarginTop",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"indicatorHorizontalMargin",value:.31,decimals:0},{key:"indicatorVerticalMargin",value:.46,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","titleSectionHeight","secSectionHeight","valueSectionMarginBottom","secSectionMarginTop","indicatorHorizontalMargin","indicatorVerticalMargin"],sizes:[{size:"big",value:70},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}],fitMeasures:[{key:"fitTitleMeasure",prop:"string",dataKey:"title"},{key:"fitValueMeasure",prop:"string",dataKey:"value"},{key:"fitSecondaryMeasure",prop:"titleString",dataKey:"secondaryTitle"},{key:"fitSecondaryMeasure",prop:"valueString",dataKey:"secondary"}]},CN={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"rgb(255, 255, 255)",bracketColor:"rgb(198, 198, 198)",bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:1,decimals:0},{key:"titleHorizontalMargin",value:.16,decimals:0},{key:"numericMinWidth",value:4.69,decimals:0},{key:"valueSectionHeight",value:1,decimals:0},{key:"secSectionHeight",value:1,decimals:0},{key:"secBottomMargin",value:.14,decimals:0},{key:"secDividerWidth",value:.14,decimals:0},{key:"secTitleMinWidth",value:.29,decimals:0},{key:"bracketWidth",value:.21,decimals:0},{key:"indicatorMargin",value:.64,decimals:0}],measureKeys:["indicatorMargin","numericMinWidth","bracketWidth","titleSectionHeight","secSectionHeight"],sizes:[{size:"big",value:70,maxWidth:1261,maxHeight:665},{size:"medium",value:49},{size:"small",value:34},{size:"micro",value:24}]},TN={fontFamily:"opensansregular, sans-serif",title:{color:"rgb(68, 81, 102)",fontSizes:{big:22,medium:18,small:15,micro:12}},value:{color:"rgb(255, 255, 255)",fontSizes:{big:45,medium:31,small:22,micro:15}},secondaryTitle:{color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},secondaryValue:{fontWeight:800,color:"rgb(163, 163, 163)",fontSizes:{big:20,medium:14,small:10,micro:10}},label:{color:"rgb(68, 81, 102)",fontSizes:{big:18,medium:13,small:9,micro:9}},textKeys:["title","value","secondaryTitle","secondaryValue","label"],backgroundColor:"rgb(255, 255, 255)",tickColor:"rgb(0, 0, 0)",needleColor:"rgb(43, 51, 66)",bracketColor:"rgb(198, 198, 198)",defaultDialColor:"rgb(179, 179, 179)",gaugeOpacity:.5,startAngle:20,endAngle:160,overDegrees:5,tickDegreesIncrement:10,bracketThickness:1,relativeSizes:[{key:"titleSectionHeight",value:.26,decimals:0},{key:"titleHorizontalMargin",value:.08,decimals:0},{key:"titleBottomMargin",value:.1,decimals:0},{key:"gaugeWidth",value:1.33,decimals:0},{key:"gaugeBottomMargin",value:.19,decimals:0},{key:"outerArcRadius",value:.63,decimals:0},{key:"innerArcRadius",dataKey:"skin",values:{1:.24,2:.51},decimals:0},{key:"lengthToTick",value:.7,decimals:0},{key:"tickRadius",value:.01,decimals:1},{key:"needleLength",dataKey:"skin",values:{1:.52,2:.58},decimals:0},{key:"needleBaseRadius",value:.04,decimals:0},{key:"labelMargin",value:.26,decimals:0},{key:"valueSectionHeight",value:.36,decimals:0},{key:"secSectionHeight",value:.36,decimals:0},{key:"secBottomMargin",value:.05,decimals:0},{key:"secDividerWidth",value:.05,decimals:0},{key:"secTitleMinWidth",value:.1,decimals:0},{key:"bracketWidth",value:.08,decimals:0},{key:"indicatorMargin",value:.14,decimals:0}],gaugeHeights:[{size:"big",value:192,maxWidth:1297,maxHeight:1075},{size:"medium",value:134},{size:"small",value:94},{size:"micro",value:66}],measureKeys:["indicatorMargin","gaugeWidth","bracketWidth","titleSectionHeight","valueSectionHeight","secSectionHeight"]},EN={fontFamily:"Open Sans",fontSize:15,title:{color:"rgb(68, 81, 102)"},value:{fontWeight:800},secondaryTitle:{color:"rgb(163, 163, 163)"},secondaryValue:{color:"rgb(163, 163, 163)"},textKeys:["title","value","secondaryTitle","secondaryValue"],backgroundColor:"transparent",dividerColor:"rgb(39, 42, 52)",barHandleColor:"rgb(43, 51, 66)",height:35,horizontalMargin:15,barWidth:100,barHeight:11,barOpacity:.5,tickerBarWidth:2,tickerBarHeight:13,horizontalPadding:9,textPadding:6,sectionMinWidth:20,dividerWidth:1,dividerHeight:13,forceTickerView:!1};function SN(e,t){const r=R.cloneDeep(EN);if(r.forceTickerView=t.forceTickerView,r.fontFamily=t.fontFamily,r.backgroundColor=t.backgroundColor,r.value.color=t.value.color,r.title.color=t.title.color,r.secondaryTitle.color=t.secondaryTitle.color,r.secondaryValue.color=t.secondaryTitle.color,t.tickerBarHeight){const n=t.tickerBarHeight;r.barHeight=n,r.tickerBarHeight=n+2}return r.forceTickerView&&(r.height=e.offsetHeight),r}const MN=new Ho,PN=new mN,RN=new yN,ON=new wN,kN=new xN;class NN{getService(t){switch(t){case"numericSimple":return PN;case"numericBar":return RN;case"gauge":return ON;case"ticker":return kN}}render(t,r,n,o){let a=this.getService(r.type);const l="getBaseMeasure"in a?a.getBaseMeasure(r,n,o):void 0;if(!l||n.forceTickerView){a=this.getService("ticker");const u=SN(t,n);this.setTextOptions(u),a.render(t,r,u,o);return}this.calculateRelativeSizes(r,n,l.value),this.setTextOptions(n,l.size),a.render(t,r,n,l)}calculateRelativeSizes(t,r,n){const{relativeSizes:o}=r;o.forEach(function(a){let l;if("dataKey"in a&&"values"in a&&a.dataKey in t)l=a.values[t[a.dataKey]];else if("value"in a)l=a.value;else throw new Error("Invalid relative size options");const u=l*n;r[a.key]=MN.floor(u,a.decimals)})}setTextOptions(t,r){t.textKeys.forEach(function(n){const o=t[n],a=o.fontStyle?`${o.fontStyle} `:"",l=o.fontVariant?`${o.fontVariant} `:"",u=o.fontWeight?`${o.fontWeight} `:"",c=`${Number.parseFloat(o.fontSizes&&o.fontSizes[r]||o.fontSize||t.fontSize)}px `,f=o.fontFamily||t.fontFamily,{color:p}=o;t[`${n}Font`]=a+l+u+c+f,t[`${n}Color`]=p})}}function Bv(e){var r;const t=(r=e.value)==null?void 0:r[0];if(t&&"color"in t)return t.color}function DN(e,t,r){if(!LN(e))return r;const o=R.getColoringServiceByColorOptions(e).getColor(t);return o?he(ie({},r),{value:he(ie({},r.value),{color:o})}):r}function LN(e){return typeof e=="string"||e.type==="uniform"||e.type==="conditional"}const AN=(e,t)=>{const r=Bv(t);return r&&e.value?R.getColoringServiceByColorOptions(r).getColor(R.isNumber$1(e.value)?e.value:0):null},IN=(e,t,r)=>{var m,h,g,_,y,x,S,E,T,C,w,M;const n=R.isNumber$1(e.min)?e.min:0,o=R.isNumber$1(e.max)?e.max:100,a=Oa(r,"value"),l=Oa(r,"secondary"),u=Oa(r,"min"),c=Oa(r,"max"),f=AN(e,r),p=t.indicatorType==="gauge"?1:"vertical";return he(ie(ie({},zN),f?{color:f}:null),{type:$N(t.indicatorType,"numericSubtype"in t?t.numericSubtype:void 0)||"numericSimple",skin:t.skin||p,title:{text:(g=(h=(m=t.indicatorComponents)==null?void 0:m.title)==null?void 0:h.text)!=null?g:""},min:{data:n,text:R.applyFormatPlainText(u,n)},max:{data:o,text:R.applyFormatPlainText(c,o)},value:{data:e.value,text:zh(e.value,a)},secondary:{data:e.secondary,text:zh(e.secondary,l)},secondaryTitle:{text:(x=(y=(_=t.indicatorComponents)==null?void 0:_.secondaryTitle)==null?void 0:y.text)!=null?x:""},showSecondary:e.secondary!==void 0,showTitle:!!((E=(S=t.indicatorComponents)==null?void 0:S.title)!=null&&E.shouldBeShown),showLabels:!!((C=(T=t.indicatorComponents)==null?void 0:T.labels)!=null&&C.shouldBeShown),showTicks:!!((M=(w=t.indicatorComponents)==null?void 0:w.ticks)!=null&&M.shouldBeShown)})};function $N(e,t){return e==="numeric"?t:e}function Oa(e,t){var n;const r=(n=e[t])==null?void 0:n[0];return R.getCompleteNumberFormatConfig(r&&"numberFormatConfig"in r?r.numberFormatConfig:{})}const zN={color:"#00cee6",showSecondary:!1};function zh(e,t){return e===void 0?"":isNaN(e)?"#N/A":R.applyFormatPlainText(t,e)}function WN(e,t,r){const n=R.cloneDeep(r);for(const o in t){const a=t[o],l=FN(e,a);l&&Hv(n,o,l)}return n}function Hv(e,t,r){const n=t.split(".");if(n.length===1)if(n[0]in e)e[n[0]]=r;else return;else{const[o,...a]=n;if(!(o in e))return;const l=e[o];if(!Vv(l))return;Hv(l,a.join("."),r)}}function FN(e,t){const r=t.split(".");let n=e;for(const o of r){if(!Vv(n)||!(o in n))return;n=n[o]}return n}function Vv(e){return typeof e=="object"&&e!==null}function jN(e,t,r){return WN(e,t,r)}const BN={fontFamily:"typography.fontFamily","title.color":"chart.textColor",backgroundColor:"chart.backgroundColor","label.color":"chart.textColor","secondaryTitle.color":"chart.secondaryTextColor","secondaryValue.color":"chart.secondaryTextColor","value.color":"palette.variantColors.0"},HN=(e,t)=>{const{chartData:r,dataOptions:n,themeSettings:o}=t,{type:a}=e;let l;switch(a){case"gauge":l=TN;break;case"numeric":e.numericSubtype==="numericBar"?l=CN:l=$h;break;default:l=$h}o&&(l=jN(o,BN,l));const u=Bv(n);return u&&r.value&&R.isNumber$1(r.value)&&(l=DN(u,r.value,l)),ie(he(ie({},l),{forceTickerView:e.forceTickerView}),e.type==="gauge"&&e.tickerBarHeight?{tickerBarHeight:e.tickerBarHeight}:null)};var VN=R._baseIsEqual;function UN(e,t){return VN(e,t)}var qN=UN;const Pi=R.getDefaultExportFromCjs(qN);function Uv(e){return typeof e=="string"}function GN(e){var c;const t=jt().themeSettings,[r,n]=Q.useState(xs()),[o,a]=Q.useState(null),l=(c=gt().app)==null?void 0:c.httpClient;return Q.useEffect(()=>{e&&(Uv(e)?l&&hv(e,l).then(n).catch(a):n(e))},[e,l]),o?[null,o]:Pi(t,r)?[t,null]:[R.merge.withOptions({mergeArrays:!1},t,r),null]}const qv=Un({componentName:"ThemeProvider",trackingConfig:{skip:e=>!!e.skipTracking,transparent:!0},shouldSkipSisenseContextWaiting:!0})(e=>{const{theme:t,children:r}=e,[n,o]=GN(t);if(o)throw o;return V.jsx(V.Fragment,{children:n&&V.jsx(Xc.Provider,{value:{themeSettings:n},children:r})})}),YN=({chartData:e,dataOptions:t,designOptions:r})=>{var l;const n=Q.useRef(null),o=Q.useRef(null),{themeSettings:a}=jt();return Q.useEffect(()=>{if(!o.current||!n.current)return;const u=new NN,c=IN(e,r,t),f=HN({type:r.indicatorType,numericSubtype:"numericSubtype"in r?r.numericSubtype:void 0,forceTickerView:r.forceTickerView,tickerBarHeight:r.tickerBarHeight},{chartData:e,dataOptions:t,themeSettings:a});u.render(o.current,c,f,n.current)},[e,t,r,a]),V.jsx("div",{ref:n,style:{display:"flex",justifyContent:"center",width:"100%",height:"100%",alignItems:"center",backgroundColor:(l=a==null?void 0:a.chart)==null?void 0:l.backgroundColor},"aria-label":"indicator-root",children:V.jsx("canvas",{ref:o})})},XN=e=>e.type==="indicator",ZN=e=>"min"in e,KN=e=>"indicatorComponents"in e,QN=e=>!!e.chartData&&XN(e.chartData)&&ZN(e.dataOptions)&&KN(e.designOptions);var Zu={exports:{}};/* @preserve
|
|
20
|
+
* Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
|
|
21
|
+
* (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
|
|
22
|
+
*/(function(e,t){(function(r,n){n(t)})(R.commonjsGlobal,function(r){var n="1.9.4";function o(i){var s,d,b,P;for(d=1,b=arguments.length;d<b;d++){P=arguments[d];for(s in P)i[s]=P[s]}return i}var a=Object.create||function(){function i(){}return function(s){return i.prototype=s,new i}}();function l(i,s){var d=Array.prototype.slice;if(i.bind)return i.bind.apply(i,d.call(arguments,1));var b=d.call(arguments,2);return function(){return i.apply(s,b.length?b.concat(d.call(arguments)):arguments)}}var u=0;function c(i){return"_leaflet_id"in i||(i._leaflet_id=++u),i._leaflet_id}function f(i,s,d){var b,P,W,Y;return Y=function(){b=!1,P&&(W.apply(d,P),P=!1)},W=function(){b?P=arguments:(i.apply(d,arguments),setTimeout(Y,s),b=!0)},W}function p(i,s,d){var b=s[1],P=s[0],W=b-P;return i===b&&d?i:((i-P)%W+W)%W+P}function m(){return!1}function h(i,s){if(s===!1)return i;var d=Math.pow(10,s===void 0?6:s);return Math.round(i*d)/d}function g(i){return i.trim?i.trim():i.replace(/^\s+|\s+$/g,"")}function _(i){return g(i).split(/\s+/)}function y(i,s){Object.prototype.hasOwnProperty.call(i,"options")||(i.options=i.options?a(i.options):{});for(var d in s)i.options[d]=s[d];return i.options}function x(i,s,d){var b=[];for(var P in i)b.push(encodeURIComponent(d?P.toUpperCase():P)+"="+encodeURIComponent(i[P]));return(!s||s.indexOf("?")===-1?"?":"&")+b.join("&")}var S=/\{ *([\w_ -]+) *\}/g;function E(i,s){return i.replace(S,function(d,b){var P=s[b];if(P===void 0)throw new Error("No value provided for variable "+d);return typeof P=="function"&&(P=P(s)),P})}var T=Array.isArray||function(i){return Object.prototype.toString.call(i)==="[object Array]"};function C(i,s){for(var d=0;d<i.length;d++)if(i[d]===s)return d;return-1}var w="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function M(i){return window["webkit"+i]||window["moz"+i]||window["ms"+i]}var O=0;function D(i){var s=+new Date,d=Math.max(0,16-(s-O));return O=s+d,window.setTimeout(i,d)}var A=window.requestAnimationFrame||M("RequestAnimationFrame")||D,$=window.cancelAnimationFrame||M("CancelAnimationFrame")||M("CancelRequestAnimationFrame")||function(i){window.clearTimeout(i)};function N(i,s,d){if(d&&A===D)i.call(s);else return A.call(window,l(i,s))}function k(i){i&&$.call(window,i)}var F={__proto__:null,extend:o,create:a,bind:l,get lastId(){return u},stamp:c,throttle:f,wrapNum:p,falseFn:m,formatNum:h,trim:g,splitWords:_,setOptions:y,getParamString:x,template:E,isArray:T,indexOf:C,emptyImageUrl:w,requestFn:A,cancelFn:$,requestAnimFrame:N,cancelAnimFrame:k};function j(){}j.extend=function(i){var s=function(){y(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},d=s.__super__=this.prototype,b=a(d);b.constructor=s,s.prototype=b;for(var P in this)Object.prototype.hasOwnProperty.call(this,P)&&P!=="prototype"&&P!=="__super__"&&(s[P]=this[P]);return i.statics&&o(s,i.statics),i.includes&&(I(i.includes),o.apply(null,[b].concat(i.includes))),o(b,i),delete b.statics,delete b.includes,b.options&&(b.options=d.options?a(d.options):{},o(b.options,i.options)),b._initHooks=[],b.callInitHooks=function(){if(!this._initHooksCalled){d.callInitHooks&&d.callInitHooks.call(this),this._initHooksCalled=!0;for(var W=0,Y=b._initHooks.length;W<Y;W++)b._initHooks[W].call(this)}},s},j.include=function(i){var s=this.prototype.options;return o(this.prototype,i),i.options&&(this.prototype.options=s,this.mergeOptions(i.options)),this},j.mergeOptions=function(i){return o(this.prototype.options,i),this},j.addInitHook=function(i){var s=Array.prototype.slice.call(arguments,1),d=typeof i=="function"?i:function(){this[i].apply(this,s)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(d),this};function I(i){if(!(typeof L=="undefined"||!L||!L.Mixin)){i=T(i)?i:[i];for(var s=0;s<i.length;s++)i[s]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",new Error().stack)}}var B={on:function(i,s,d){if(typeof i=="object")for(var b in i)this._on(b,i[b],s);else{i=_(i);for(var P=0,W=i.length;P<W;P++)this._on(i[P],s,d)}return this},off:function(i,s,d){if(!arguments.length)delete this._events;else if(typeof i=="object")for(var b in i)this._off(b,i[b],s);else{i=_(i);for(var P=arguments.length===1,W=0,Y=i.length;W<Y;W++)P?this._off(i[W]):this._off(i[W],s,d)}return this},_on:function(i,s,d,b){if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}if(this._listens(i,s,d)===!1){d===this&&(d=void 0);var P={fn:s,ctx:d};b&&(P.once=!0),this._events=this._events||{},this._events[i]=this._events[i]||[],this._events[i].push(P)}},_off:function(i,s,d){var b,P,W;if(this._events&&(b=this._events[i],!!b)){if(arguments.length===1){if(this._firingCount)for(P=0,W=b.length;P<W;P++)b[P].fn=m;delete this._events[i];return}if(typeof s!="function"){console.warn("wrong listener type: "+typeof s);return}var Y=this._listens(i,s,d);if(Y!==!1){var re=b[Y];this._firingCount&&(re.fn=m,this._events[i]=b=b.slice()),b.splice(Y,1)}}},fire:function(i,s,d){if(!this.listens(i,d))return this;var b=o({},s,{type:i,target:this,sourceTarget:s&&s.sourceTarget||this});if(this._events){var P=this._events[i];if(P){this._firingCount=this._firingCount+1||1;for(var W=0,Y=P.length;W<Y;W++){var re=P[W],oe=re.fn;re.once&&this.off(i,oe,re.ctx),oe.call(re.ctx||this,b)}this._firingCount--}}return d&&this._propagateEvent(b),this},listens:function(i,s,d,b){typeof i!="string"&&console.warn('"string" type argument expected');var P=s;typeof s!="function"&&(b=!!s,P=void 0,d=void 0);var W=this._events&&this._events[i];if(W&&W.length&&this._listens(i,P,d)!==!1)return!0;if(b){for(var Y in this._eventParents)if(this._eventParents[Y].listens(i,s,d,b))return!0}return!1},_listens:function(i,s,d){if(!this._events)return!1;var b=this._events[i]||[];if(!s)return!!b.length;d===this&&(d=void 0);for(var P=0,W=b.length;P<W;P++)if(b[P].fn===s&&b[P].ctx===d)return P;return!1},once:function(i,s,d){if(typeof i=="object")for(var b in i)this._on(b,i[b],s,!0);else{i=_(i);for(var P=0,W=i.length;P<W;P++)this._on(i[P],s,d,!0)}return this},addEventParent:function(i){return this._eventParents=this._eventParents||{},this._eventParents[c(i)]=i,this},removeEventParent:function(i){return this._eventParents&&delete this._eventParents[c(i)],this},_propagateEvent:function(i){for(var s in this._eventParents)this._eventParents[s].fire(i.type,o({layer:i.target,propagatedFrom:i.target},i),!0)}};B.addEventListener=B.on,B.removeEventListener=B.clearAllEventListeners=B.off,B.addOneTimeEventListener=B.once,B.fireEvent=B.fire,B.hasEventListeners=B.listens;var G=j.extend(B);function q(i,s,d){this.x=d?Math.round(i):i,this.y=d?Math.round(s):s}var U=Math.trunc||function(i){return i>0?Math.floor(i):Math.ceil(i)};q.prototype={clone:function(){return new q(this.x,this.y)},add:function(i){return this.clone()._add(z(i))},_add:function(i){return this.x+=i.x,this.y+=i.y,this},subtract:function(i){return this.clone()._subtract(z(i))},_subtract:function(i){return this.x-=i.x,this.y-=i.y,this},divideBy:function(i){return this.clone()._divideBy(i)},_divideBy:function(i){return this.x/=i,this.y/=i,this},multiplyBy:function(i){return this.clone()._multiplyBy(i)},_multiplyBy:function(i){return this.x*=i,this.y*=i,this},scaleBy:function(i){return new q(this.x*i.x,this.y*i.y)},unscaleBy:function(i){return new q(this.x/i.x,this.y/i.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=U(this.x),this.y=U(this.y),this},distanceTo:function(i){i=z(i);var s=i.x-this.x,d=i.y-this.y;return Math.sqrt(s*s+d*d)},equals:function(i){return i=z(i),i.x===this.x&&i.y===this.y},contains:function(i){return i=z(i),Math.abs(i.x)<=Math.abs(this.x)&&Math.abs(i.y)<=Math.abs(this.y)},toString:function(){return"Point("+h(this.x)+", "+h(this.y)+")"}};function z(i,s,d){return i instanceof q?i:T(i)?new q(i[0],i[1]):i==null?i:typeof i=="object"&&"x"in i&&"y"in i?new q(i.x,i.y):new q(i,s,d)}function H(i,s){if(i)for(var d=s?[i,s]:i,b=0,P=d.length;b<P;b++)this.extend(d[b])}H.prototype={extend:function(i){var s,d;if(!i)return this;if(i instanceof q||typeof i[0]=="number"||"x"in i)s=d=z(i);else if(i=ee(i),s=i.min,d=i.max,!s||!d)return this;return!this.min&&!this.max?(this.min=s.clone(),this.max=d.clone()):(this.min.x=Math.min(s.x,this.min.x),this.max.x=Math.max(d.x,this.max.x),this.min.y=Math.min(s.y,this.min.y),this.max.y=Math.max(d.y,this.max.y)),this},getCenter:function(i){return z((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,i)},getBottomLeft:function(){return z(this.min.x,this.max.y)},getTopRight:function(){return z(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(i){var s,d;return typeof i[0]=="number"||i instanceof q?i=z(i):i=ee(i),i instanceof H?(s=i.min,d=i.max):s=d=i,s.x>=this.min.x&&d.x<=this.max.x&&s.y>=this.min.y&&d.y<=this.max.y},intersects:function(i){i=ee(i);var s=this.min,d=this.max,b=i.min,P=i.max,W=P.x>=s.x&&b.x<=d.x,Y=P.y>=s.y&&b.y<=d.y;return W&&Y},overlaps:function(i){i=ee(i);var s=this.min,d=this.max,b=i.min,P=i.max,W=P.x>s.x&&b.x<d.x,Y=P.y>s.y&&b.y<d.y;return W&&Y},isValid:function(){return!!(this.min&&this.max)},pad:function(i){var s=this.min,d=this.max,b=Math.abs(s.x-d.x)*i,P=Math.abs(s.y-d.y)*i;return ee(z(s.x-b,s.y-P),z(d.x+b,d.y+P))},equals:function(i){return i?(i=ee(i),this.min.equals(i.getTopLeft())&&this.max.equals(i.getBottomRight())):!1}};function ee(i,s){return!i||i instanceof H?i:new H(i,s)}function X(i,s){if(i)for(var d=s?[i,s]:i,b=0,P=d.length;b<P;b++)this.extend(d[b])}X.prototype={extend:function(i){var s=this._southWest,d=this._northEast,b,P;if(i instanceof J)b=i,P=i;else if(i instanceof X){if(b=i._southWest,P=i._northEast,!b||!P)return this}else return i?this.extend(ne(i)||K(i)):this;return!s&&!d?(this._southWest=new J(b.lat,b.lng),this._northEast=new J(P.lat,P.lng)):(s.lat=Math.min(b.lat,s.lat),s.lng=Math.min(b.lng,s.lng),d.lat=Math.max(P.lat,d.lat),d.lng=Math.max(P.lng,d.lng)),this},pad:function(i){var s=this._southWest,d=this._northEast,b=Math.abs(s.lat-d.lat)*i,P=Math.abs(s.lng-d.lng)*i;return new X(new J(s.lat-b,s.lng-P),new J(d.lat+b,d.lng+P))},getCenter:function(){return new J((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new J(this.getNorth(),this.getWest())},getSouthEast:function(){return new J(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat},getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(i){typeof i[0]=="number"||i instanceof J||"lat"in i?i=ne(i):i=K(i);var s=this._southWest,d=this._northEast,b,P;return i instanceof X?(b=i.getSouthWest(),P=i.getNorthEast()):b=P=i,b.lat>=s.lat&&P.lat<=d.lat&&b.lng>=s.lng&&P.lng<=d.lng},intersects:function(i){i=K(i);var s=this._southWest,d=this._northEast,b=i.getSouthWest(),P=i.getNorthEast(),W=P.lat>=s.lat&&b.lat<=d.lat,Y=P.lng>=s.lng&&b.lng<=d.lng;return W&&Y},overlaps:function(i){i=K(i);var s=this._southWest,d=this._northEast,b=i.getSouthWest(),P=i.getNorthEast(),W=P.lat>s.lat&&b.lat<d.lat,Y=P.lng>s.lng&&b.lng<d.lng;return W&&Y},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(i,s){return i?(i=K(i),this._southWest.equals(i.getSouthWest(),s)&&this._northEast.equals(i.getNorthEast(),s)):!1},isValid:function(){return!!(this._southWest&&this._northEast)}};function K(i,s){return i instanceof X?i:new X(i,s)}function J(i,s,d){if(isNaN(i)||isNaN(s))throw new Error("Invalid LatLng object: ("+i+", "+s+")");this.lat=+i,this.lng=+s,d!==void 0&&(this.alt=+d)}J.prototype={equals:function(i,s){if(!i)return!1;i=ne(i);var d=Math.max(Math.abs(this.lat-i.lat),Math.abs(this.lng-i.lng));return d<=(s===void 0?1e-9:s)},toString:function(i){return"LatLng("+h(this.lat,i)+", "+h(this.lng,i)+")"},distanceTo:function(i){return se.distance(this,ne(i))},wrap:function(){return se.wrapLatLng(this)},toBounds:function(i){var s=180*i/40075017,d=s/Math.cos(Math.PI/180*this.lat);return K([this.lat-s,this.lng-d],[this.lat+s,this.lng+d])},clone:function(){return new J(this.lat,this.lng,this.alt)}};function ne(i,s,d){return i instanceof J?i:T(i)&&typeof i[0]!="object"?i.length===3?new J(i[0],i[1],i[2]):i.length===2?new J(i[0],i[1]):null:i==null?i:typeof i=="object"&&"lat"in i?new J(i.lat,"lng"in i?i.lng:i.lon,i.alt):s===void 0?null:new J(i,s,d)}var le={latLngToPoint:function(i,s){var d=this.projection.project(i),b=this.scale(s);return this.transformation._transform(d,b)},pointToLatLng:function(i,s){var d=this.scale(s),b=this.transformation.untransform(i,d);return this.projection.unproject(b)},project:function(i){return this.projection.project(i)},unproject:function(i){return this.projection.unproject(i)},scale:function(i){return 256*Math.pow(2,i)},zoom:function(i){return Math.log(i/256)/Math.LN2},getProjectedBounds:function(i){if(this.infinite)return null;var s=this.projection.bounds,d=this.scale(i),b=this.transformation.transform(s.min,d),P=this.transformation.transform(s.max,d);return new H(b,P)},infinite:!1,wrapLatLng:function(i){var s=this.wrapLng?p(i.lng,this.wrapLng,!0):i.lng,d=this.wrapLat?p(i.lat,this.wrapLat,!0):i.lat,b=i.alt;return new J(d,s,b)},wrapLatLngBounds:function(i){var s=i.getCenter(),d=this.wrapLatLng(s),b=s.lat-d.lat,P=s.lng-d.lng;if(b===0&&P===0)return i;var W=i.getSouthWest(),Y=i.getNorthEast(),re=new J(W.lat-b,W.lng-P),oe=new J(Y.lat-b,Y.lng-P);return new X(re,oe)}},se=o({},le,{wrapLng:[-180,180],R:6371e3,distance:function(i,s){var d=Math.PI/180,b=i.lat*d,P=s.lat*d,W=Math.sin((s.lat-i.lat)*d/2),Y=Math.sin((s.lng-i.lng)*d/2),re=W*W+Math.cos(b)*Math.cos(P)*Y*Y,oe=2*Math.atan2(Math.sqrt(re),Math.sqrt(1-re));return this.R*oe}}),ue=6378137,fe={R:ue,MAX_LATITUDE:85.0511287798,project:function(i){var s=Math.PI/180,d=this.MAX_LATITUDE,b=Math.max(Math.min(d,i.lat),-d),P=Math.sin(b*s);return new q(this.R*i.lng*s,this.R*Math.log((1+P)/(1-P))/2)},unproject:function(i){var s=180/Math.PI;return new J((2*Math.atan(Math.exp(i.y/this.R))-Math.PI/2)*s,i.x*s/this.R)},bounds:function(){var i=ue*Math.PI;return new H([-i,-i],[i,i])}()};function pe(i,s,d,b){if(T(i)){this._a=i[0],this._b=i[1],this._c=i[2],this._d=i[3];return}this._a=i,this._b=s,this._c=d,this._d=b}pe.prototype={transform:function(i,s){return this._transform(i.clone(),s)},_transform:function(i,s){return s=s||1,i.x=s*(this._a*i.x+this._b),i.y=s*(this._c*i.y+this._d),i},untransform:function(i,s){return s=s||1,new q((i.x/s-this._b)/this._a,(i.y/s-this._d)/this._c)}};function ae(i,s,d,b){return new pe(i,s,d,b)}var ve=o({},se,{code:"EPSG:3857",projection:fe,transformation:function(){var i=.5/(Math.PI*fe.R);return ae(i,.5,-i,.5)}()}),de=o({},ve,{code:"EPSG:900913"});function _e(i){return document.createElementNS("http://www.w3.org/2000/svg",i)}function we(i,s){var d="",b,P,W,Y,re,oe;for(b=0,W=i.length;b<W;b++){for(re=i[b],P=0,Y=re.length;P<Y;P++)oe=re[P],d+=(P?"L":"M")+oe.x+" "+oe.y;d+=s?ge.svg?"z":"x":""}return d||"M0 0"}var Ee=document.documentElement.style,Ce="ActiveXObject"in window,ct=Ce&&!document.addEventListener,Ve="msLaunchUri"in navigator&&!("documentMode"in document),tt=vt("webkit"),dt=vt("android"),Ie=vt("android 2")||vt("android 3"),Ue=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),St=dt&&vt("Google")&&Ue<537&&!("AudioNode"in window),ft=!!window.opera,Mt=!Ve&&vt("chrome"),dr=vt("gecko")&&!tt&&!ft&&!Ce,Te=!Mt&&vt("safari"),yt=vt("phantom"),xr="OTransition"in Ee,Yt=navigator.platform.indexOf("Win")===0,Cr=Ce&&"transition"in Ee,Kr="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!Ie,fr="MozPerspective"in Ee,Fr=!window.L_DISABLE_3D&&(Cr||Kr||fr)&&!xr&&!yt,Ht=typeof orientation!="undefined"||vt("mobile"),Tn=Ht&&tt,jr=Ht&&Kr,Qr=!window.PointerEvent&&window.MSPointerEvent,En=!!(window.PointerEvent||Qr),hr="ontouchstart"in window||!!window.TouchEvent,Sn=!window.L_NO_TOUCH&&(hr||En),Mn=Ht&&ft,Jr=Ht&&dr,Xn=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,Zn=function(){var i=!1;try{var s=Object.defineProperty({},"passive",{get:function(){i=!0}});window.addEventListener("testPassiveEventSupport",m,s),window.removeEventListener("testPassiveEventSupport",m,s)}catch(d){}return i}(),Bi=function(){return!!document.createElement("canvas").getContext}(),Xt=!!(document.createElementNS&&_e("svg").createSVGRect),Kn=!!Xt&&function(){var i=document.createElement("div");return i.innerHTML="<svg/>",(i.firstChild&&i.firstChild.namespaceURI)==="http://www.w3.org/2000/svg"}(),Br=!Xt&&function(){try{var i=document.createElement("div");i.innerHTML='<v:shape adj="1"/>';var s=i.firstChild;return s.style.behavior="url(#default#VML)",s&&typeof s.adj=="object"}catch(d){return!1}}(),en=navigator.platform.indexOf("Mac")===0,_t=navigator.platform.indexOf("Linux")===0;function vt(i){return navigator.userAgent.toLowerCase().indexOf(i)>=0}var ge={ie:Ce,ielt9:ct,edge:Ve,webkit:tt,android:dt,android23:Ie,androidStock:St,opera:ft,chrome:Mt,gecko:dr,safari:Te,phantom:yt,opera12:xr,win:Yt,ie3d:Cr,webkit3d:Kr,gecko3d:fr,any3d:Fr,mobile:Ht,mobileWebkit:Tn,mobileWebkit3d:jr,msPointer:Qr,pointer:En,touch:Sn,touchNative:hr,mobileOpera:Mn,mobileGecko:Jr,retina:Xn,passiveEvents:Zn,canvas:Bi,svg:Xt,vml:Br,inlineSvg:Kn,mac:en,linux:_t},pr=ge.msPointer?"MSPointerDown":"pointerdown",tn=ge.msPointer?"MSPointerMove":"pointermove",Pn=ge.msPointer?"MSPointerUp":"pointerup",rn=ge.msPointer?"MSPointerCancel":"pointercancel",nn={touchstart:pr,touchmove:tn,touchend:Pn,touchcancel:rn},on={touchstart:p_,touchmove:aa,touchend:aa,touchcancel:aa},mr={},an=!1;function Js(i,s,d){return s==="touchstart"&&h_(),on[s]?(d=on[s].bind(this,d),i.addEventListener(nn[s],d,!1),d):(console.warn("wrong event specified:",s),m)}function el(i,s,d){if(!nn[s]){console.warn("wrong event specified:",s);return}i.removeEventListener(nn[s],d,!1)}function Pe(i){mr[i.pointerId]=i}function Rt(i){mr[i.pointerId]&&(mr[i.pointerId]=i)}function Kd(i){delete mr[i.pointerId]}function h_(){an||(document.addEventListener(pr,Pe,!0),document.addEventListener(tn,Rt,!0),document.addEventListener(Pn,Kd,!0),document.addEventListener(rn,Kd,!0),an=!0)}function aa(i,s){if(s.pointerType!==(s.MSPOINTER_TYPE_MOUSE||"mouse")){s.touches=[];for(var d in mr)s.touches.push(mr[d]);s.changedTouches=[s],i(s)}}function p_(i,s){s.MSPOINTER_TYPE_TOUCH&&s.pointerType===s.MSPOINTER_TYPE_TOUCH&&wt(s),aa(i,s)}function m_(i){var s={},d,b;for(b in i)d=i[b],s[b]=d&&d.bind?d.bind(i):d;return i=s,s.type="dblclick",s.detail=2,s.isTrusted=!1,s._simulated=!0,s}var v_=200;function g_(i,s){i.addEventListener("dblclick",s);var d=0,b;function P(W){if(W.detail!==1){b=W.detail;return}if(!(W.pointerType==="mouse"||W.sourceCapabilities&&!W.sourceCapabilities.firesTouchEvents)){var Y=rf(W);if(!(Y.some(function(oe){return oe instanceof HTMLLabelElement&&oe.attributes.for})&&!Y.some(function(oe){return oe instanceof HTMLInputElement||oe instanceof HTMLSelectElement}))){var re=Date.now();re-d<=v_?(b++,b===2&&s(m_(W))):b=1,d=re}}}return i.addEventListener("click",P),{dblclick:s,simDblclick:P}}function y_(i,s){i.removeEventListener("dblclick",s.dblclick),i.removeEventListener("click",s.simDblclick)}var tl=ua(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),Hi=ua(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),Qd=Hi==="webkitTransition"||Hi==="OTransition"?Hi+"End":"transitionend";function Jd(i){return typeof i=="string"?document.getElementById(i):i}function Vi(i,s){var d=i.style[s]||i.currentStyle&&i.currentStyle[s];if((!d||d==="auto")&&document.defaultView){var b=document.defaultView.getComputedStyle(i,null);d=b?b[s]:null}return d==="auto"?null:d}function $e(i,s,d){var b=document.createElement(i);return b.className=s||"",d&&d.appendChild(b),b}function Ke(i){var s=i.parentNode;s&&s.removeChild(i)}function sa(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Qn(i){var s=i.parentNode;s&&s.lastChild!==i&&s.appendChild(i)}function Jn(i){var s=i.parentNode;s&&s.firstChild!==i&&s.insertBefore(i,s.firstChild)}function rl(i,s){if(i.classList!==void 0)return i.classList.contains(s);var d=la(i);return d.length>0&&new RegExp("(^|\\s)"+s+"(\\s|$)").test(d)}function Re(i,s){if(i.classList!==void 0)for(var d=_(s),b=0,P=d.length;b<P;b++)i.classList.add(d[b]);else if(!rl(i,s)){var W=la(i);nl(i,(W?W+" ":"")+s)}}function at(i,s){i.classList!==void 0?i.classList.remove(s):nl(i,g((" "+la(i)+" ").replace(" "+s+" "," ")))}function nl(i,s){i.className.baseVal===void 0?i.className=s:i.className.baseVal=s}function la(i){return i.correspondingElement&&(i=i.correspondingElement),i.className.baseVal===void 0?i.className:i.className.baseVal}function Zt(i,s){"opacity"in i.style?i.style.opacity=s:"filter"in i.style&&b_(i,s)}function b_(i,s){var d=!1,b="DXImageTransform.Microsoft.Alpha";try{d=i.filters.item(b)}catch(P){if(s===1)return}s=Math.round(s*100),d?(d.Enabled=s!==100,d.Opacity=s):i.style.filter+=" progid:"+b+"(opacity="+s+")"}function ua(i){for(var s=document.documentElement.style,d=0;d<i.length;d++)if(i[d]in s)return i[d];return!1}function Rn(i,s,d){var b=s||new q(0,0);i.style[tl]=(ge.ie3d?"translate("+b.x+"px,"+b.y+"px)":"translate3d("+b.x+"px,"+b.y+"px,0)")+(d?" scale("+d+")":"")}function ht(i,s){i._leaflet_pos=s,ge.any3d?Rn(i,s):(i.style.left=s.x+"px",i.style.top=s.y+"px")}function On(i){return i._leaflet_pos||new q(0,0)}var Ui,qi,il;if("onselectstart"in document)Ui=function(){Me(window,"selectstart",wt)},qi=function(){qe(window,"selectstart",wt)};else{var Gi=ua(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);Ui=function(){if(Gi){var i=document.documentElement.style;il=i[Gi],i[Gi]="none"}},qi=function(){Gi&&(document.documentElement.style[Gi]=il,il=void 0)}}function ol(){Me(window,"dragstart",wt)}function al(){qe(window,"dragstart",wt)}var ca,sl;function ll(i){for(;i.tabIndex===-1;)i=i.parentNode;i.style&&(da(),ca=i,sl=i.style.outlineStyle,i.style.outlineStyle="none",Me(window,"keydown",da))}function da(){ca&&(ca.style.outlineStyle=sl,ca=void 0,sl=void 0,qe(window,"keydown",da))}function ef(i){do i=i.parentNode;while((!i.offsetWidth||!i.offsetHeight)&&i!==document.body);return i}function ul(i){var s=i.getBoundingClientRect();return{x:s.width/i.offsetWidth||1,y:s.height/i.offsetHeight||1,boundingClientRect:s}}var __={__proto__:null,TRANSFORM:tl,TRANSITION:Hi,TRANSITION_END:Qd,get:Jd,getStyle:Vi,create:$e,remove:Ke,empty:sa,toFront:Qn,toBack:Jn,hasClass:rl,addClass:Re,removeClass:at,setClass:nl,getClass:la,setOpacity:Zt,testProp:ua,setTransform:Rn,setPosition:ht,getPosition:On,get disableTextSelection(){return Ui},get enableTextSelection(){return qi},disableImageDrag:ol,enableImageDrag:al,preventOutline:ll,restoreOutline:da,getSizedParentNode:ef,getScale:ul};function Me(i,s,d,b){if(s&&typeof s=="object")for(var P in s)dl(i,P,s[P],d);else{s=_(s);for(var W=0,Y=s.length;W<Y;W++)dl(i,s[W],d,b)}return this}var Tr="_leaflet_events";function qe(i,s,d,b){if(arguments.length===1)tf(i),delete i[Tr];else if(s&&typeof s=="object")for(var P in s)fl(i,P,s[P],d);else if(s=_(s),arguments.length===2)tf(i,function(re){return C(s,re)!==-1});else for(var W=0,Y=s.length;W<Y;W++)fl(i,s[W],d,b);return this}function tf(i,s){for(var d in i[Tr]){var b=d.split(/\d/)[0];(!s||s(b))&&fl(i,b,null,null,d)}}var cl={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function dl(i,s,d,b){var P=s+c(d)+(b?"_"+c(b):"");if(i[Tr]&&i[Tr][P])return this;var W=function(re){return d.call(b||i,re||window.event)},Y=W;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?W=Js(i,s,W):ge.touch&&s==="dblclick"?W=g_(i,W):"addEventListener"in i?s==="touchstart"||s==="touchmove"||s==="wheel"||s==="mousewheel"?i.addEventListener(cl[s]||s,W,ge.passiveEvents?{passive:!1}:!1):s==="mouseenter"||s==="mouseleave"?(W=function(re){re=re||window.event,pl(i,re)&&Y(re)},i.addEventListener(cl[s],W,!1)):i.addEventListener(s,Y,!1):i.attachEvent("on"+s,W),i[Tr]=i[Tr]||{},i[Tr][P]=W}function fl(i,s,d,b,P){P=P||s+c(d)+(b?"_"+c(b):"");var W=i[Tr]&&i[Tr][P];if(!W)return this;!ge.touchNative&&ge.pointer&&s.indexOf("touch")===0?el(i,s,W):ge.touch&&s==="dblclick"?y_(i,W):"removeEventListener"in i?i.removeEventListener(cl[s]||s,W,!1):i.detachEvent("on"+s,W),i[Tr][P]=null}function kn(i){return i.stopPropagation?i.stopPropagation():i.originalEvent?i.originalEvent._stopped=!0:i.cancelBubble=!0,this}function hl(i){return dl(i,"wheel",kn),this}function Yi(i){return Me(i,"mousedown touchstart dblclick contextmenu",kn),i._leaflet_disable_click=!0,this}function wt(i){return i.preventDefault?i.preventDefault():i.returnValue=!1,this}function Nn(i){return wt(i),kn(i),this}function rf(i){if(i.composedPath)return i.composedPath();for(var s=[],d=i.target;d;)s.push(d),d=d.parentNode;return s}function nf(i,s){if(!s)return new q(i.clientX,i.clientY);var d=ul(s),b=d.boundingClientRect;return new q((i.clientX-b.left)/d.x-s.clientLeft,(i.clientY-b.top)/d.y-s.clientTop)}var w_=ge.linux&&ge.chrome?window.devicePixelRatio:ge.mac?window.devicePixelRatio*3:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function of(i){return ge.edge?i.wheelDeltaY/2:i.deltaY&&i.deltaMode===0?-i.deltaY/w_:i.deltaY&&i.deltaMode===1?-i.deltaY*20:i.deltaY&&i.deltaMode===2?-i.deltaY*60:i.deltaX||i.deltaZ?0:i.wheelDelta?(i.wheelDeltaY||i.wheelDelta)/2:i.detail&&Math.abs(i.detail)<32765?-i.detail*20:i.detail?i.detail/-32765*60:0}function pl(i,s){var d=s.relatedTarget;if(!d)return!0;try{for(;d&&d!==i;)d=d.parentNode}catch(b){return!1}return d!==i}var x_={__proto__:null,on:Me,off:qe,stopPropagation:kn,disableScrollPropagation:hl,disableClickPropagation:Yi,preventDefault:wt,stop:Nn,getPropagationPath:rf,getMousePosition:nf,getWheelDelta:of,isExternalTarget:pl,addListener:Me,removeListener:qe},af=G.extend({run:function(i,s,d,b){this.stop(),this._el=i,this._inProgress=!0,this._duration=d||.25,this._easeOutPower=1/Math.max(b||.5,.2),this._startPos=On(i),this._offset=s.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=N(this._animate,this),this._step()},_step:function(i){var s=+new Date-this._startTime,d=this._duration*1e3;s<d?this._runFrame(this._easeOut(s/d),i):(this._runFrame(1),this._complete())},_runFrame:function(i,s){var d=this._startPos.add(this._offset.multiplyBy(i));s&&d._round(),ht(this._el,d),this.fire("step")},_complete:function(){k(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(i){return 1-Math.pow(1-i,this._easeOutPower)}}),Ae=G.extend({options:{crs:ve,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(i,s){s=y(this,s),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(i),this._initLayout(),this._onResize=l(this._onResize,this),this._initEvents(),s.maxBounds&&this.setMaxBounds(s.maxBounds),s.zoom!==void 0&&(this._zoom=this._limitZoom(s.zoom)),s.center&&s.zoom!==void 0&&this.setView(ne(s.center),s.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=Hi&&ge.any3d&&!ge.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Me(this._proxy,Qd,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(i,s,d){if(s=s===void 0?this._zoom:this._limitZoom(s),i=this._limitCenter(ne(i),s,this.options.maxBounds),d=d||{},this._stop(),this._loaded&&!d.reset&&d!==!0){d.animate!==void 0&&(d.zoom=o({animate:d.animate},d.zoom),d.pan=o({animate:d.animate,duration:d.duration},d.pan));var b=this._zoom!==s?this._tryAnimatedZoom&&this._tryAnimatedZoom(i,s,d.zoom):this._tryAnimatedPan(i,d.pan);if(b)return clearTimeout(this._sizeTimer),this}return this._resetView(i,s,d.pan&&d.pan.noMoveStart),this},setZoom:function(i,s){return this._loaded?this.setView(this.getCenter(),i,{zoom:s}):(this._zoom=i,this)},zoomIn:function(i,s){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+i,s)},zoomOut:function(i,s){return i=i||(ge.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-i,s)},setZoomAround:function(i,s,d){var b=this.getZoomScale(s),P=this.getSize().divideBy(2),W=i instanceof q?i:this.latLngToContainerPoint(i),Y=W.subtract(P).multiplyBy(1-1/b),re=this.containerPointToLatLng(P.add(Y));return this.setView(re,s,{zoom:d})},_getBoundsCenterZoom:function(i,s){s=s||{},i=i.getBounds?i.getBounds():K(i);var d=z(s.paddingTopLeft||s.padding||[0,0]),b=z(s.paddingBottomRight||s.padding||[0,0]),P=this.getBoundsZoom(i,!1,d.add(b));if(P=typeof s.maxZoom=="number"?Math.min(s.maxZoom,P):P,P===1/0)return{center:i.getCenter(),zoom:P};var W=b.subtract(d).divideBy(2),Y=this.project(i.getSouthWest(),P),re=this.project(i.getNorthEast(),P),oe=this.unproject(Y.add(re).divideBy(2).add(W),P);return{center:oe,zoom:P}},fitBounds:function(i,s){if(i=K(i),!i.isValid())throw new Error("Bounds are not valid.");var d=this._getBoundsCenterZoom(i,s);return this.setView(d.center,d.zoom,s)},fitWorld:function(i){return this.fitBounds([[-90,-180],[90,180]],i)},panTo:function(i,s){return this.setView(i,this._zoom,{pan:s})},panBy:function(i,s){if(i=z(i).round(),s=s||{},!i.x&&!i.y)return this.fire("moveend");if(s.animate!==!0&&!this.getSize().contains(i))return this._resetView(this.unproject(this.project(this.getCenter()).add(i)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new af,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),s.noMoveStart||this.fire("movestart"),s.animate!==!1){Re(this._mapPane,"leaflet-pan-anim");var d=this._getMapPanePos().subtract(i).round();this._panAnim.run(this._mapPane,d,s.duration||.25,s.easeLinearity)}else this._rawPanBy(i),this.fire("move").fire("moveend");return this},flyTo:function(i,s,d){if(d=d||{},d.animate===!1||!ge.any3d)return this.setView(i,s,d);this._stop();var b=this.project(this.getCenter()),P=this.project(i),W=this.getSize(),Y=this._zoom;i=ne(i),s=s===void 0?Y:s;var re=Math.max(W.x,W.y),oe=re*this.getZoomScale(Y,s),ce=P.distanceTo(b)||1,me=1.42,xe=me*me;function Ne(pt){var Ca=pt?-1:1,c0=pt?oe:re,d0=oe*oe-re*re+Ca*xe*xe*ce*ce,f0=2*c0*xe*ce,El=d0/f0,Ff=Math.sqrt(El*El+1)-El,h0=Ff<1e-9?-18:Math.log(Ff);return h0}function Ot(pt){return(Math.exp(pt)-Math.exp(-pt))/2}function bt(pt){return(Math.exp(pt)+Math.exp(-pt))/2}function Qt(pt){return Ot(pt)/bt(pt)}var $t=Ne(0);function oi(pt){return re*(bt($t)/bt($t+me*pt))}function a0(pt){return re*(bt($t)*Qt($t+me*pt)-Ot($t))/xe}function s0(pt){return 1-Math.pow(1-pt,1.5)}var l0=Date.now(),zf=(Ne(1)-$t)/me,u0=d.duration?1e3*d.duration:1e3*zf*.8;function Wf(){var pt=(Date.now()-l0)/u0,Ca=s0(pt)*zf;pt<=1?(this._flyToFrame=N(Wf,this),this._move(this.unproject(b.add(P.subtract(b).multiplyBy(a0(Ca)/ce)),Y),this.getScaleZoom(re/oi(Ca),Y),{flyTo:!0})):this._move(i,s)._moveEnd(!0)}return this._moveStart(!0,d.noMoveStart),Wf.call(this),this},flyToBounds:function(i,s){var d=this._getBoundsCenterZoom(i,s);return this.flyTo(d.center,d.zoom,s)},setMaxBounds:function(i){return i=K(i),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),i.isValid()?(this.options.maxBounds=i,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(i){var s=this.options.minZoom;return this.options.minZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(i):this},setMaxZoom:function(i){var s=this.options.maxZoom;return this.options.maxZoom=i,this._loaded&&s!==i&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(i):this},panInsideBounds:function(i,s){this._enforcingBounds=!0;var d=this.getCenter(),b=this._limitCenter(d,this._zoom,K(i));return d.equals(b)||this.panTo(b,s),this._enforcingBounds=!1,this},panInside:function(i,s){s=s||{};var d=z(s.paddingTopLeft||s.padding||[0,0]),b=z(s.paddingBottomRight||s.padding||[0,0]),P=this.project(this.getCenter()),W=this.project(i),Y=this.getPixelBounds(),re=ee([Y.min.add(d),Y.max.subtract(b)]),oe=re.getSize();if(!re.contains(W)){this._enforcingBounds=!0;var ce=W.subtract(re.getCenter()),me=re.extend(W).getSize().subtract(oe);P.x+=ce.x<0?-me.x:me.x,P.y+=ce.y<0?-me.y:me.y,this.panTo(this.unproject(P),s),this._enforcingBounds=!1}return this},invalidateSize:function(i){if(!this._loaded)return this;i=o({animate:!1,pan:!0},i===!0?{animate:!0}:i);var s=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var d=this.getSize(),b=s.divideBy(2).round(),P=d.divideBy(2).round(),W=b.subtract(P);return!W.x&&!W.y?this:(i.animate&&i.pan?this.panBy(W):(i.pan&&this._rawPanBy(W),this.fire("move"),i.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(l(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:s,newSize:d}))},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(i){if(i=this._locateOptions=o({timeout:1e4,watch:!1},i),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var s=l(this._handleGeolocationResponse,this),d=l(this._handleGeolocationError,this);return i.watch?this._locationWatchId=navigator.geolocation.watchPosition(s,d,i):navigator.geolocation.getCurrentPosition(s,d,i),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(i){if(this._container._leaflet_id){var s=i.code,d=i.message||(s===1?"permission denied":s===2?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:s,message:"Geolocation error: "+d+"."})}},_handleGeolocationResponse:function(i){if(this._container._leaflet_id){var s=i.coords.latitude,d=i.coords.longitude,b=new J(s,d),P=b.toBounds(i.coords.accuracy*2),W=this._locateOptions;if(W.setView){var Y=this.getBoundsZoom(P);this.setView(b,W.maxZoom?Math.min(Y,W.maxZoom):Y)}var re={latlng:b,bounds:P,timestamp:i.timestamp};for(var oe in i.coords)typeof i.coords[oe]=="number"&&(re[oe]=i.coords[oe]);this.fire("locationfound",re)}},addHandler:function(i,s){if(!s)return this;var d=this[i]=new s(this);return this._handlers.push(d),this.options[i]&&d.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(s){this._container._leaflet_id=void 0,this._containerId=void 0}this._locationWatchId!==void 0&&this.stopLocate(),this._stop(),Ke(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(k(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload");var i;for(i in this._layers)this._layers[i].remove();for(i in this._panes)Ke(this._panes[i]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(i,s){var d="leaflet-pane"+(i?" leaflet-"+i.replace("Pane","")+"-pane":""),b=$e("div",d,s||this._mapPane);return i&&(this._panes[i]=b),b},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var i=this.getPixelBounds(),s=this.unproject(i.getBottomLeft()),d=this.unproject(i.getTopRight());return new X(s,d)},getMinZoom:function(){return this.options.minZoom===void 0?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return this.options.maxZoom===void 0?this._layersMaxZoom===void 0?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(i,s,d){i=K(i),d=z(d||[0,0]);var b=this.getZoom()||0,P=this.getMinZoom(),W=this.getMaxZoom(),Y=i.getNorthWest(),re=i.getSouthEast(),oe=this.getSize().subtract(d),ce=ee(this.project(re,b),this.project(Y,b)).getSize(),me=ge.any3d?this.options.zoomSnap:1,xe=oe.x/ce.x,Ne=oe.y/ce.y,Ot=s?Math.max(xe,Ne):Math.min(xe,Ne);return b=this.getScaleZoom(Ot,b),me&&(b=Math.round(b/(me/100))*(me/100),b=s?Math.ceil(b/me)*me:Math.floor(b/me)*me),Math.max(P,Math.min(W,b))},getSize:function(){return(!this._size||this._sizeChanged)&&(this._size=new q(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(i,s){var d=this._getTopLeftPoint(i,s);return new H(d,d.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(i){return this.options.crs.getProjectedBounds(i===void 0?this.getZoom():i)},getPane:function(i){return typeof i=="string"?this._panes[i]:i},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(i,s){var d=this.options.crs;return s=s===void 0?this._zoom:s,d.scale(i)/d.scale(s)},getScaleZoom:function(i,s){var d=this.options.crs;s=s===void 0?this._zoom:s;var b=d.zoom(i*d.scale(s));return isNaN(b)?1/0:b},project:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.latLngToPoint(ne(i),s)},unproject:function(i,s){return s=s===void 0?this._zoom:s,this.options.crs.pointToLatLng(z(i),s)},layerPointToLatLng:function(i){var s=z(i).add(this.getPixelOrigin());return this.unproject(s)},latLngToLayerPoint:function(i){var s=this.project(ne(i))._round();return s._subtract(this.getPixelOrigin())},wrapLatLng:function(i){return this.options.crs.wrapLatLng(ne(i))},wrapLatLngBounds:function(i){return this.options.crs.wrapLatLngBounds(K(i))},distance:function(i,s){return this.options.crs.distance(ne(i),ne(s))},containerPointToLayerPoint:function(i){return z(i).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(i){return z(i).add(this._getMapPanePos())},containerPointToLatLng:function(i){var s=this.containerPointToLayerPoint(z(i));return this.layerPointToLatLng(s)},latLngToContainerPoint:function(i){return this.layerPointToContainerPoint(this.latLngToLayerPoint(ne(i)))},mouseEventToContainerPoint:function(i){return nf(i,this._container)},mouseEventToLayerPoint:function(i){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(i))},mouseEventToLatLng:function(i){return this.layerPointToLatLng(this.mouseEventToLayerPoint(i))},_initContainer:function(i){var s=this._container=Jd(i);if(s){if(s._leaflet_id)throw new Error("Map container is already initialized.")}else throw new Error("Map container not found.");Me(s,"scroll",this._onScroll,this),this._containerId=c(s)},_initLayout:function(){var i=this._container;this._fadeAnimated=this.options.fadeAnimation&&ge.any3d,Re(i,"leaflet-container"+(ge.touch?" leaflet-touch":"")+(ge.retina?" leaflet-retina":"")+(ge.ielt9?" leaflet-oldie":"")+(ge.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var s=Vi(i,"position");s!=="absolute"&&s!=="relative"&&s!=="fixed"&&s!=="sticky"&&(i.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var i=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),ht(this._mapPane,new q(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(Re(i.markerPane,"leaflet-zoom-hide"),Re(i.shadowPane,"leaflet-zoom-hide"))},_resetView:function(i,s,d){ht(this._mapPane,new q(0,0));var b=!this._loaded;this._loaded=!0,s=this._limitZoom(s),this.fire("viewprereset");var P=this._zoom!==s;this._moveStart(P,d)._move(i,s)._moveEnd(P),this.fire("viewreset"),b&&this.fire("load")},_moveStart:function(i,s){return i&&this.fire("zoomstart"),s||this.fire("movestart"),this},_move:function(i,s,d,b){s===void 0&&(s=this._zoom);var P=this._zoom!==s;return this._zoom=s,this._lastCenter=i,this._pixelOrigin=this._getNewPixelOrigin(i),b?d&&d.pinch&&this.fire("zoom",d):((P||d&&d.pinch)&&this.fire("zoom",d),this.fire("move",d)),this},_moveEnd:function(i){return i&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return k(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(i){ht(this._mapPane,this._getMapPanePos().subtract(i))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(i){this._targets={},this._targets[c(this._container)]=this;var s=i?qe:Me;s(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&s(window,"resize",this._onResize,this),ge.any3d&&this.options.transform3DLimit&&(i?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){k(this._resizeRequest),this._resizeRequest=N(function(){this.invalidateSize({debounceMoveend:!0})},this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var i=this._getMapPanePos();Math.max(Math.abs(i.x),Math.abs(i.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(i,s){for(var d=[],b,P=s==="mouseout"||s==="mouseover",W=i.target||i.srcElement,Y=!1;W;){if(b=this._targets[c(W)],b&&(s==="click"||s==="preclick")&&this._draggableMoved(b)){Y=!0;break}if(b&&b.listens(s,!0)&&(P&&!pl(W,i)||(d.push(b),P))||W===this._container)break;W=W.parentNode}return!d.length&&!Y&&!P&&this.listens(s,!0)&&(d=[this]),d},_isClickDisabled:function(i){for(;i&&i!==this._container;){if(i._leaflet_disable_click)return!0;i=i.parentNode}},_handleDOMEvent:function(i){var s=i.target||i.srcElement;if(!(!this._loaded||s._leaflet_disable_events||i.type==="click"&&this._isClickDisabled(s))){var d=i.type;d==="mousedown"&&ll(s),this._fireDOMEvent(i,d)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(i,s,d){if(i.type==="click"){var b=o({},i);b.type="preclick",this._fireDOMEvent(b,b.type,d)}var P=this._findEventTargets(i,s);if(d){for(var W=[],Y=0;Y<d.length;Y++)d[Y].listens(s,!0)&&W.push(d[Y]);P=W.concat(P)}if(P.length){s==="contextmenu"&&wt(i);var re=P[0],oe={originalEvent:i};if(i.type!=="keypress"&&i.type!=="keydown"&&i.type!=="keyup"){var ce=re.getLatLng&&(!re._radius||re._radius<=10);oe.containerPoint=ce?this.latLngToContainerPoint(re.getLatLng()):this.mouseEventToContainerPoint(i),oe.layerPoint=this.containerPointToLayerPoint(oe.containerPoint),oe.latlng=ce?re.getLatLng():this.layerPointToLatLng(oe.layerPoint)}for(Y=0;Y<P.length;Y++)if(P[Y].fire(s,oe,!0),oe.originalEvent._stopped||P[Y].options.bubblingMouseEvents===!1&&C(this._mouseEvents,s)!==-1)return}},_draggableMoved:function(i){return i=i.dragging&&i.dragging.enabled()?i:this,i.dragging&&i.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var i=0,s=this._handlers.length;i<s;i++)this._handlers[i].disable()},whenReady:function(i,s){return this._loaded?i.call(s||this,{target:this}):this.on("load",i,s),this},_getMapPanePos:function(){return On(this._mapPane)||new q(0,0)},_moved:function(){var i=this._getMapPanePos();return i&&!i.equals([0,0])},_getTopLeftPoint:function(i,s){var d=i&&s!==void 0?this._getNewPixelOrigin(i,s):this.getPixelOrigin();return d.subtract(this._getMapPanePos())},_getNewPixelOrigin:function(i,s){var d=this.getSize()._divideBy(2);return this.project(i,s)._subtract(d)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(i,s,d){var b=this._getNewPixelOrigin(d,s);return this.project(i,s)._subtract(b)},_latLngBoundsToNewLayerBounds:function(i,s,d){var b=this._getNewPixelOrigin(d,s);return ee([this.project(i.getSouthWest(),s)._subtract(b),this.project(i.getNorthWest(),s)._subtract(b),this.project(i.getSouthEast(),s)._subtract(b),this.project(i.getNorthEast(),s)._subtract(b)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(i){return this.latLngToLayerPoint(i).subtract(this._getCenterLayerPoint())},_limitCenter:function(i,s,d){if(!d)return i;var b=this.project(i,s),P=this.getSize().divideBy(2),W=new H(b.subtract(P),b.add(P)),Y=this._getBoundsOffset(W,d,s);return Math.abs(Y.x)<=1&&Math.abs(Y.y)<=1?i:this.unproject(b.add(Y),s)},_limitOffset:function(i,s){if(!s)return i;var d=this.getPixelBounds(),b=new H(d.min.add(i),d.max.add(i));return i.add(this._getBoundsOffset(b,s))},_getBoundsOffset:function(i,s,d){var b=ee(this.project(s.getNorthEast(),d),this.project(s.getSouthWest(),d)),P=b.min.subtract(i.min),W=b.max.subtract(i.max),Y=this._rebound(P.x,-W.x),re=this._rebound(P.y,-W.y);return new q(Y,re)},_rebound:function(i,s){return i+s>0?Math.round(i-s)/2:Math.max(0,Math.ceil(i))-Math.max(0,Math.floor(s))},_limitZoom:function(i){var s=this.getMinZoom(),d=this.getMaxZoom(),b=ge.any3d?this.options.zoomSnap:1;return b&&(i=Math.round(i/b)*b),Math.max(s,Math.min(d,i))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){at(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(i,s){var d=this._getCenterOffset(i)._trunc();return(s&&s.animate)!==!0&&!this.getSize().contains(d)?!1:(this.panBy(d,s),!0)},_createAnimProxy:function(){var i=this._proxy=$e("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(i),this.on("zoomanim",function(s){var d=tl,b=this._proxy.style[d];Rn(this._proxy,this.project(s.center,s.zoom),this.getZoomScale(s.zoom,1)),b===this._proxy.style[d]&&this._animatingZoom&&this._onZoomTransitionEnd()},this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){Ke(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var i=this.getCenter(),s=this.getZoom();Rn(this._proxy,this.project(i,s),this.getZoomScale(s,1))},_catchTransitionEnd:function(i){this._animatingZoom&&i.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(i,s,d){if(this._animatingZoom)return!0;if(d=d||{},!this._zoomAnimated||d.animate===!1||this._nothingToAnimate()||Math.abs(s-this._zoom)>this.options.zoomAnimationThreshold)return!1;var b=this.getZoomScale(s),P=this._getCenterOffset(i)._divideBy(1-1/b);return d.animate!==!0&&!this.getSize().contains(P)?!1:(N(function(){this._moveStart(!0,d.noMoveStart||!1)._animateZoom(i,s,!0)},this),!0)},_animateZoom:function(i,s,d,b){this._mapPane&&(d&&(this._animatingZoom=!0,this._animateToCenter=i,this._animateToZoom=s,Re(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:i,zoom:s,noUpdate:b}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(l(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&at(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function C_(i,s){return new Ae(i,s)}var vr=j.extend({options:{position:"topright"},initialize:function(i){y(this,i)},getPosition:function(){return this.options.position},setPosition:function(i){var s=this._map;return s&&s.removeControl(this),this.options.position=i,s&&s.addControl(this),this},getContainer:function(){return this._container},addTo:function(i){this.remove(),this._map=i;var s=this._container=this.onAdd(i),d=this.getPosition(),b=i._controlCorners[d];return Re(s,"leaflet-control"),d.indexOf("bottom")!==-1?b.insertBefore(s,b.firstChild):b.appendChild(s),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(Ke(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(i){this._map&&i&&i.screenX>0&&i.screenY>0&&this._map.getContainer().focus()}}),Xi=function(i){return new vr(i)};Ae.include({addControl:function(i){return i.addTo(this),this},removeControl:function(i){return i.remove(),this},_initControlPos:function(){var i=this._controlCorners={},s="leaflet-",d=this._controlContainer=$e("div",s+"control-container",this._container);function b(P,W){var Y=s+P+" "+s+W;i[P+W]=$e("div",Y,d)}b("top","left"),b("top","right"),b("bottom","left"),b("bottom","right")},_clearControlPos:function(){for(var i in this._controlCorners)Ke(this._controlCorners[i]);Ke(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var sf=vr.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(i,s,d,b){return d<b?-1:b<d?1:0}},initialize:function(i,s,d){y(this,d),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,this._preventClick=!1;for(var b in i)this._addLayer(i[b],b);for(b in s)this._addLayer(s[b],b,!0)},onAdd:function(i){this._initLayout(),this._update(),this._map=i,i.on("zoomend",this._checkDisabledLayers,this);for(var s=0;s<this._layers.length;s++)this._layers[s].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(i){return vr.prototype.addTo.call(this,i),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var i=0;i<this._layers.length;i++)this._layers[i].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(i,s){return this._addLayer(i,s),this._map?this._update():this},addOverlay:function(i,s){return this._addLayer(i,s,!0),this._map?this._update():this},removeLayer:function(i){i.off("add remove",this._onLayerChange,this);var s=this._getLayer(c(i));return s&&this._layers.splice(this._layers.indexOf(s),1),this._map?this._update():this},expand:function(){Re(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var i=this._map.getSize().y-(this._container.offsetTop+50);return i<this._section.clientHeight?(Re(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=i+"px"):at(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return at(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var i="leaflet-control-layers",s=this._container=$e("div",i),d=this.options.collapsed;s.setAttribute("aria-haspopup",!0),Yi(s),hl(s);var b=this._section=$e("section",i+"-list");d&&(this._map.on("click",this.collapse,this),Me(s,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var P=this._layersLink=$e("a",i+"-toggle",s);P.href="#",P.title="Layers",P.setAttribute("role","button"),Me(P,{keydown:function(W){W.keyCode===13&&this._expandSafely()},click:function(W){wt(W),this._expandSafely()}},this),d||this.expand(),this._baseLayersList=$e("div",i+"-base",b),this._separator=$e("div",i+"-separator",b),this._overlaysList=$e("div",i+"-overlays",b),s.appendChild(b)},_getLayer:function(i){for(var s=0;s<this._layers.length;s++)if(this._layers[s]&&c(this._layers[s].layer)===i)return this._layers[s]},_addLayer:function(i,s,d){this._map&&i.on("add remove",this._onLayerChange,this),this._layers.push({layer:i,name:s,overlay:d}),this.options.sortLayers&&this._layers.sort(l(function(b,P){return this.options.sortFunction(b.layer,P.layer,b.name,P.name)},this)),this.options.autoZIndex&&i.setZIndex&&(this._lastZIndex++,i.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;sa(this._baseLayersList),sa(this._overlaysList),this._layerControlInputs=[];var i,s,d,b,P=0;for(d=0;d<this._layers.length;d++)b=this._layers[d],this._addItem(b),s=s||b.overlay,i=i||!b.overlay,P+=b.overlay?0:1;return this.options.hideSingleBase&&(i=i&&P>1,this._baseLayersList.style.display=i?"":"none"),this._separator.style.display=s&&i?"":"none",this},_onLayerChange:function(i){this._handlingClick||this._update();var s=this._getLayer(c(i.target)),d=s.overlay?i.type==="add"?"overlayadd":"overlayremove":i.type==="add"?"baselayerchange":null;d&&this._map.fire(d,s)},_createRadioElement:function(i,s){var d='<input type="radio" class="leaflet-control-layers-selector" name="'+i+'"'+(s?' checked="checked"':"")+"/>",b=document.createElement("div");return b.innerHTML=d,b.firstChild},_addItem:function(i){var s=document.createElement("label"),d=this._map.hasLayer(i.layer),b;i.overlay?(b=document.createElement("input"),b.type="checkbox",b.className="leaflet-control-layers-selector",b.defaultChecked=d):b=this._createRadioElement("leaflet-base-layers_"+c(this),d),this._layerControlInputs.push(b),b.layerId=c(i.layer),Me(b,"click",this._onInputClick,this);var P=document.createElement("span");P.innerHTML=" "+i.name;var W=document.createElement("span");s.appendChild(W),W.appendChild(b),W.appendChild(P);var Y=i.overlay?this._overlaysList:this._baseLayersList;return Y.appendChild(s),this._checkDisabledLayers(),s},_onInputClick:function(){if(!this._preventClick){var i=this._layerControlInputs,s,d,b=[],P=[];this._handlingClick=!0;for(var W=i.length-1;W>=0;W--)s=i[W],d=this._getLayer(s.layerId).layer,s.checked?b.push(d):s.checked||P.push(d);for(W=0;W<P.length;W++)this._map.hasLayer(P[W])&&this._map.removeLayer(P[W]);for(W=0;W<b.length;W++)this._map.hasLayer(b[W])||this._map.addLayer(b[W]);this._handlingClick=!1,this._refocusOnMap()}},_checkDisabledLayers:function(){for(var i=this._layerControlInputs,s,d,b=this._map.getZoom(),P=i.length-1;P>=0;P--)s=i[P],d=this._getLayer(s.layerId).layer,s.disabled=d.options.minZoom!==void 0&&b<d.options.minZoom||d.options.maxZoom!==void 0&&b>d.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var i=this._section;this._preventClick=!0,Me(i,"click",wt),this.expand();var s=this;setTimeout(function(){qe(i,"click",wt),s._preventClick=!1})}}),T_=function(i,s,d){return new sf(i,s,d)},ml=vr.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">−</span>',zoomOutTitle:"Zoom out"},onAdd:function(i){var s="leaflet-control-zoom",d=$e("div",s+" leaflet-bar"),b=this.options;return this._zoomInButton=this._createButton(b.zoomInText,b.zoomInTitle,s+"-in",d,this._zoomIn),this._zoomOutButton=this._createButton(b.zoomOutText,b.zoomOutTitle,s+"-out",d,this._zoomOut),this._updateDisabled(),i.on("zoomend zoomlevelschange",this._updateDisabled,this),d},onRemove:function(i){i.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(i){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(i.shiftKey?3:1))},_zoomOut:function(i){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(i.shiftKey?3:1))},_createButton:function(i,s,d,b,P){var W=$e("a",d,b);return W.innerHTML=i,W.href="#",W.title=s,W.setAttribute("role","button"),W.setAttribute("aria-label",s),Yi(W),Me(W,"click",Nn),Me(W,"click",P,this),Me(W,"click",this._refocusOnMap,this),W},_updateDisabled:function(){var i=this._map,s="leaflet-disabled";at(this._zoomInButton,s),at(this._zoomOutButton,s),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||i._zoom===i.getMinZoom())&&(Re(this._zoomOutButton,s),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||i._zoom===i.getMaxZoom())&&(Re(this._zoomInButton,s),this._zoomInButton.setAttribute("aria-disabled","true"))}});Ae.mergeOptions({zoomControl:!0}),Ae.addInitHook(function(){this.options.zoomControl&&(this.zoomControl=new ml,this.addControl(this.zoomControl))});var E_=function(i){return new ml(i)},lf=vr.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(i){var s="leaflet-control-scale",d=$e("div",s),b=this.options;return this._addScales(b,s+"-line",d),i.on(b.updateWhenIdle?"moveend":"move",this._update,this),i.whenReady(this._update,this),d},onRemove:function(i){i.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(i,s,d){i.metric&&(this._mScale=$e("div",s,d)),i.imperial&&(this._iScale=$e("div",s,d))},_update:function(){var i=this._map,s=i.getSize().y/2,d=i.distance(i.containerPointToLatLng([0,s]),i.containerPointToLatLng([this.options.maxWidth,s]));this._updateScales(d)},_updateScales:function(i){this.options.metric&&i&&this._updateMetric(i),this.options.imperial&&i&&this._updateImperial(i)},_updateMetric:function(i){var s=this._getRoundNum(i),d=s<1e3?s+" m":s/1e3+" km";this._updateScale(this._mScale,d,s/i)},_updateImperial:function(i){var s=i*3.2808399,d,b,P;s>5280?(d=s/5280,b=this._getRoundNum(d),this._updateScale(this._iScale,b+" mi",b/d)):(P=this._getRoundNum(s),this._updateScale(this._iScale,P+" ft",P/s))},_updateScale:function(i,s,d){i.style.width=Math.round(this.options.maxWidth*d)+"px",i.innerHTML=s},_getRoundNum:function(i){var s=Math.pow(10,(Math.floor(i)+"").length-1),d=i/s;return d=d>=10?10:d>=5?5:d>=3?3:d>=2?2:1,s*d}}),S_=function(i){return new lf(i)},M_='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',vl=vr.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(ge.inlineSvg?M_+" ":"")+"Leaflet</a>"},initialize:function(i){y(this,i),this._attributions={}},onAdd:function(i){i.attributionControl=this,this._container=$e("div","leaflet-control-attribution"),Yi(this._container);for(var s in i._layers)i._layers[s].getAttribution&&this.addAttribution(i._layers[s].getAttribution());return this._update(),i.on("layeradd",this._addAttribution,this),this._container},onRemove:function(i){i.off("layeradd",this._addAttribution,this)},_addAttribution:function(i){i.layer.getAttribution&&(this.addAttribution(i.layer.getAttribution()),i.layer.once("remove",function(){this.removeAttribution(i.layer.getAttribution())},this))},setPrefix:function(i){return this.options.prefix=i,this._update(),this},addAttribution:function(i){return i?(this._attributions[i]||(this._attributions[i]=0),this._attributions[i]++,this._update(),this):this},removeAttribution:function(i){return i?(this._attributions[i]&&(this._attributions[i]--,this._update()),this):this},_update:function(){if(this._map){var i=[];for(var s in this._attributions)this._attributions[s]&&i.push(s);var d=[];this.options.prefix&&d.push(this.options.prefix),i.length&&d.push(i.join(", ")),this._container.innerHTML=d.join(' <span aria-hidden="true">|</span> ')}}});Ae.mergeOptions({attributionControl:!0}),Ae.addInitHook(function(){this.options.attributionControl&&new vl().addTo(this)});var P_=function(i){return new vl(i)};vr.Layers=sf,vr.Zoom=ml,vr.Scale=lf,vr.Attribution=vl,Xi.layers=T_,Xi.zoom=E_,Xi.scale=S_,Xi.attribution=P_;var Er=j.extend({initialize:function(i){this._map=i},enable:function(){return this._enabled?this:(this._enabled=!0,this.addHooks(),this)},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});Er.addTo=function(i,s){return i.addHandler(s,this),this};var R_={Events:B},uf=ge.touch?"touchstart mousedown":"mousedown",sn=G.extend({options:{clickTolerance:3},initialize:function(i,s,d,b){y(this,b),this._element=i,this._dragStartTarget=s||i,this._preventOutline=d},enable:function(){this._enabled||(Me(this._dragStartTarget,uf,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(sn._dragging===this&&this.finishDrag(!0),qe(this._dragStartTarget,uf,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(i){if(this._enabled&&(this._moved=!1,!rl(this._element,"leaflet-zoom-anim"))){if(i.touches&&i.touches.length!==1){sn._dragging===this&&this.finishDrag();return}if(!(sn._dragging||i.shiftKey||i.which!==1&&i.button!==1&&!i.touches)&&(sn._dragging=this,this._preventOutline&&ll(this._element),ol(),Ui(),!this._moving)){this.fire("down");var s=i.touches?i.touches[0]:i,d=ef(this._element);this._startPoint=new q(s.clientX,s.clientY),this._startPos=On(this._element),this._parentScale=ul(d);var b=i.type==="mousedown";Me(document,b?"mousemove":"touchmove",this._onMove,this),Me(document,b?"mouseup":"touchend touchcancel",this._onUp,this)}}},_onMove:function(i){if(this._enabled){if(i.touches&&i.touches.length>1){this._moved=!0;return}var s=i.touches&&i.touches.length===1?i.touches[0]:i,d=new q(s.clientX,s.clientY)._subtract(this._startPoint);!d.x&&!d.y||Math.abs(d.x)+Math.abs(d.y)<this.options.clickTolerance||(d.x/=this._parentScale.x,d.y/=this._parentScale.y,wt(i),this._moved||(this.fire("dragstart"),this._moved=!0,Re(document.body,"leaflet-dragging"),this._lastTarget=i.target||i.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),Re(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(d),this._moving=!0,this._lastEvent=i,this._updatePosition())}},_updatePosition:function(){var i={originalEvent:this._lastEvent};this.fire("predrag",i),ht(this._element,this._newPos),this.fire("drag",i)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(i){at(document.body,"leaflet-dragging"),this._lastTarget&&(at(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),qe(document,"mousemove touchmove",this._onMove,this),qe(document,"mouseup touchend touchcancel",this._onUp,this),al(),qi();var s=this._moved&&this._moving;this._moving=!1,sn._dragging=!1,s&&this.fire("dragend",{noInertia:i,distance:this._newPos.distanceTo(this._startPos)})}});function cf(i,s,d){var b,P=[1,4,2,8],W,Y,re,oe,ce,me,xe,Ne;for(W=0,me=i.length;W<me;W++)i[W]._code=Dn(i[W],s);for(re=0;re<4;re++){for(xe=P[re],b=[],W=0,me=i.length,Y=me-1;W<me;Y=W++)oe=i[W],ce=i[Y],oe._code&xe?ce._code&xe||(Ne=fa(ce,oe,xe,s,d),Ne._code=Dn(Ne,s),b.push(Ne)):(ce._code&xe&&(Ne=fa(ce,oe,xe,s,d),Ne._code=Dn(Ne,s),b.push(Ne)),b.push(oe));i=b}return i}function df(i,s){var d,b,P,W,Y,re,oe,ce,me;if(!i||i.length===0)throw new Error("latlngs not passed");Kt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var xe=ne([0,0]),Ne=K(i),Ot=Ne.getNorthWest().distanceTo(Ne.getSouthWest())*Ne.getNorthEast().distanceTo(Ne.getNorthWest());Ot<1700&&(xe=gl(i));var bt=i.length,Qt=[];for(d=0;d<bt;d++){var $t=ne(i[d]);Qt.push(s.project(ne([$t.lat-xe.lat,$t.lng-xe.lng])))}for(re=oe=ce=0,d=0,b=bt-1;d<bt;b=d++)P=Qt[d],W=Qt[b],Y=P.y*W.x-W.y*P.x,oe+=(P.x+W.x)*Y,ce+=(P.y+W.y)*Y,re+=Y*3;re===0?me=Qt[0]:me=[oe/re,ce/re];var oi=s.unproject(z(me));return ne([oi.lat+xe.lat,oi.lng+xe.lng])}function gl(i){for(var s=0,d=0,b=0,P=0;P<i.length;P++){var W=ne(i[P]);s+=W.lat,d+=W.lng,b++}return ne([s/b,d/b])}var O_={__proto__:null,clipPolygon:cf,polygonCenter:df,centroid:gl};function ff(i,s){if(!s||!i.length)return i.slice();var d=s*s;return i=D_(i,d),i=N_(i,d),i}function hf(i,s,d){return Math.sqrt(Zi(i,s,d,!0))}function k_(i,s,d){return Zi(i,s,d)}function N_(i,s){var d=i.length,b=typeof Uint8Array!="undefined"?Uint8Array:Array,P=new b(d);P[0]=P[d-1]=1,yl(i,P,s,0,d-1);var W,Y=[];for(W=0;W<d;W++)P[W]&&Y.push(i[W]);return Y}function yl(i,s,d,b,P){var W=0,Y,re,oe;for(re=b+1;re<=P-1;re++)oe=Zi(i[re],i[b],i[P],!0),oe>W&&(Y=re,W=oe);W>d&&(s[Y]=1,yl(i,s,d,b,Y),yl(i,s,d,Y,P))}function D_(i,s){for(var d=[i[0]],b=1,P=0,W=i.length;b<W;b++)L_(i[b],i[P])>s&&(d.push(i[b]),P=b);return P<W-1&&d.push(i[W-1]),d}var pf;function mf(i,s,d,b,P){var W=b?pf:Dn(i,d),Y=Dn(s,d),re,oe,ce;for(pf=Y;;){if(!(W|Y))return[i,s];if(W&Y)return!1;re=W||Y,oe=fa(i,s,re,d,P),ce=Dn(oe,d),re===W?(i=oe,W=ce):(s=oe,Y=ce)}}function fa(i,s,d,b,P){var W=s.x-i.x,Y=s.y-i.y,re=b.min,oe=b.max,ce,me;return d&8?(ce=i.x+W*(oe.y-i.y)/Y,me=oe.y):d&4?(ce=i.x+W*(re.y-i.y)/Y,me=re.y):d&2?(ce=oe.x,me=i.y+Y*(oe.x-i.x)/W):d&1&&(ce=re.x,me=i.y+Y*(re.x-i.x)/W),new q(ce,me,P)}function Dn(i,s){var d=0;return i.x<s.min.x?d|=1:i.x>s.max.x&&(d|=2),i.y<s.min.y?d|=4:i.y>s.max.y&&(d|=8),d}function L_(i,s){var d=s.x-i.x,b=s.y-i.y;return d*d+b*b}function Zi(i,s,d,b){var P=s.x,W=s.y,Y=d.x-P,re=d.y-W,oe=Y*Y+re*re,ce;return oe>0&&(ce=((i.x-P)*Y+(i.y-W)*re)/oe,ce>1?(P=d.x,W=d.y):ce>0&&(P+=Y*ce,W+=re*ce)),Y=i.x-P,re=i.y-W,b?Y*Y+re*re:new q(P,W)}function Kt(i){return!T(i[0])||typeof i[0][0]!="object"&&typeof i[0][0]!="undefined"}function vf(i){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Kt(i)}function gf(i,s){var d,b,P,W,Y,re,oe,ce;if(!i||i.length===0)throw new Error("latlngs not passed");Kt(i)||(console.warn("latlngs are not flat! Only the first ring will be used"),i=i[0]);var me=ne([0,0]),xe=K(i),Ne=xe.getNorthWest().distanceTo(xe.getSouthWest())*xe.getNorthEast().distanceTo(xe.getNorthWest());Ne<1700&&(me=gl(i));var Ot=i.length,bt=[];for(d=0;d<Ot;d++){var Qt=ne(i[d]);bt.push(s.project(ne([Qt.lat-me.lat,Qt.lng-me.lng])))}for(d=0,b=0;d<Ot-1;d++)b+=bt[d].distanceTo(bt[d+1])/2;if(b===0)ce=bt[0];else for(d=0,W=0;d<Ot-1;d++)if(Y=bt[d],re=bt[d+1],P=Y.distanceTo(re),W+=P,W>b){oe=(W-b)/P,ce=[re.x-oe*(re.x-Y.x),re.y-oe*(re.y-Y.y)];break}var $t=s.unproject(z(ce));return ne([$t.lat+me.lat,$t.lng+me.lng])}var A_={__proto__:null,simplify:ff,pointToSegmentDistance:hf,closestPointOnSegment:k_,clipSegment:mf,_getEdgeIntersection:fa,_getBitCode:Dn,_sqClosestPointOnSegment:Zi,isFlat:Kt,_flat:vf,polylineCenter:gf},bl={project:function(i){return new q(i.lng,i.lat)},unproject:function(i){return new J(i.y,i.x)},bounds:new H([-180,-90],[180,90])},_l={R:6378137,R_MINOR:6356752314245179e-9,bounds:new H([-2003750834279e-5,-1549657073972e-5],[2003750834279e-5,1876465623138e-5]),project:function(i){var s=Math.PI/180,d=this.R,b=i.lat*s,P=this.R_MINOR/d,W=Math.sqrt(1-P*P),Y=W*Math.sin(b),re=Math.tan(Math.PI/4-b/2)/Math.pow((1-Y)/(1+Y),W/2);return b=-d*Math.log(Math.max(re,1e-10)),new q(i.lng*s*d,b)},unproject:function(i){for(var s=180/Math.PI,d=this.R,b=this.R_MINOR/d,P=Math.sqrt(1-b*b),W=Math.exp(-i.y/d),Y=Math.PI/2-2*Math.atan(W),re=0,oe=.1,ce;re<15&&Math.abs(oe)>1e-7;re++)ce=P*Math.sin(Y),ce=Math.pow((1-ce)/(1+ce),P/2),oe=Math.PI/2-2*Math.atan(W*ce)-Y,Y+=oe;return new J(Y*s,i.x*s/d)}},I_={__proto__:null,LonLat:bl,Mercator:_l,SphericalMercator:fe},$_=o({},se,{code:"EPSG:3395",projection:_l,transformation:function(){var i=.5/(Math.PI*_l.R);return ae(i,.5,-i,.5)}()}),yf=o({},se,{code:"EPSG:4326",projection:bl,transformation:ae(1/180,1,-1/180,.5)}),z_=o({},le,{projection:bl,transformation:ae(1,0,-1,0),scale:function(i){return Math.pow(2,i)},zoom:function(i){return Math.log(i)/Math.LN2},distance:function(i,s){var d=s.lng-i.lng,b=s.lat-i.lat;return Math.sqrt(d*d+b*b)},infinite:!0});le.Earth=se,le.EPSG3395=$_,le.EPSG3857=ve,le.EPSG900913=de,le.EPSG4326=yf,le.Simple=z_;var gr=G.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(i){return i.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(i){return i&&i.removeLayer(this),this},getPane:function(i){return this._map.getPane(i?this.options[i]||i:this.options.pane)},addInteractiveTarget:function(i){return this._map._targets[c(i)]=this,this},removeInteractiveTarget:function(i){return delete this._map._targets[c(i)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(i){var s=i.target;if(s.hasLayer(this)){if(this._map=s,this._zoomAnimated=s._zoomAnimated,this.getEvents){var d=this.getEvents();s.on(d,this),this.once("remove",function(){s.off(d,this)},this)}this.onAdd(s),this.fire("add"),s.fire("layeradd",{layer:this})}}});Ae.include({addLayer:function(i){if(!i._layerAdd)throw new Error("The provided object is not a Layer.");var s=c(i);return this._layers[s]?this:(this._layers[s]=i,i._mapToAdd=this,i.beforeAdd&&i.beforeAdd(this),this.whenReady(i._layerAdd,i),this)},removeLayer:function(i){var s=c(i);return this._layers[s]?(this._loaded&&i.onRemove(this),delete this._layers[s],this._loaded&&(this.fire("layerremove",{layer:i}),i.fire("remove")),i._map=i._mapToAdd=null,this):this},hasLayer:function(i){return c(i)in this._layers},eachLayer:function(i,s){for(var d in this._layers)i.call(s,this._layers[d]);return this},_addLayers:function(i){i=i?T(i)?i:[i]:[];for(var s=0,d=i.length;s<d;s++)this.addLayer(i[s])},_addZoomLimit:function(i){(!isNaN(i.options.maxZoom)||!isNaN(i.options.minZoom))&&(this._zoomBoundLayers[c(i)]=i,this._updateZoomLevels())},_removeZoomLimit:function(i){var s=c(i);this._zoomBoundLayers[s]&&(delete this._zoomBoundLayers[s],this._updateZoomLevels())},_updateZoomLevels:function(){var i=1/0,s=-1/0,d=this._getZoomSpan();for(var b in this._zoomBoundLayers){var P=this._zoomBoundLayers[b].options;i=P.minZoom===void 0?i:Math.min(i,P.minZoom),s=P.maxZoom===void 0?s:Math.max(s,P.maxZoom)}this._layersMaxZoom=s===-1/0?void 0:s,this._layersMinZoom=i===1/0?void 0:i,d!==this._getZoomSpan()&&this.fire("zoomlevelschange"),this.options.maxZoom===void 0&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),this.options.minZoom===void 0&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var ei=gr.extend({initialize:function(i,s){y(this,s),this._layers={};var d,b;if(i)for(d=0,b=i.length;d<b;d++)this.addLayer(i[d])},addLayer:function(i){var s=this.getLayerId(i);return this._layers[s]=i,this._map&&this._map.addLayer(i),this},removeLayer:function(i){var s=i in this._layers?i:this.getLayerId(i);return this._map&&this._layers[s]&&this._map.removeLayer(this._layers[s]),delete this._layers[s],this},hasLayer:function(i){var s=typeof i=="number"?i:this.getLayerId(i);return s in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(i){var s=Array.prototype.slice.call(arguments,1),d,b;for(d in this._layers)b=this._layers[d],b[i]&&b[i].apply(b,s);return this},onAdd:function(i){this.eachLayer(i.addLayer,i)},onRemove:function(i){this.eachLayer(i.removeLayer,i)},eachLayer:function(i,s){for(var d in this._layers)i.call(s,this._layers[d]);return this},getLayer:function(i){return this._layers[i]},getLayers:function(){var i=[];return this.eachLayer(i.push,i),i},setZIndex:function(i){return this.invoke("setZIndex",i)},getLayerId:function(i){return c(i)}}),W_=function(i,s){return new ei(i,s)},Hr=ei.extend({addLayer:function(i){return this.hasLayer(i)?this:(i.addEventParent(this),ei.prototype.addLayer.call(this,i),this.fire("layeradd",{layer:i}))},removeLayer:function(i){return this.hasLayer(i)?(i in this._layers&&(i=this._layers[i]),i.removeEventParent(this),ei.prototype.removeLayer.call(this,i),this.fire("layerremove",{layer:i})):this},setStyle:function(i){return this.invoke("setStyle",i)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var i=new X;for(var s in this._layers){var d=this._layers[s];i.extend(d.getBounds?d.getBounds():d.getLatLng())}return i}}),F_=function(i,s){return new Hr(i,s)},ti=j.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(i){y(this,i)},createIcon:function(i){return this._createIcon("icon",i)},createShadow:function(i){return this._createIcon("shadow",i)},_createIcon:function(i,s){var d=this._getIconUrl(i);if(!d){if(i==="icon")throw new Error("iconUrl not set in Icon options (see the docs).");return null}var b=this._createImg(d,s&&s.tagName==="IMG"?s:null);return this._setIconStyles(b,i),(this.options.crossOrigin||this.options.crossOrigin==="")&&(b.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),b},_setIconStyles:function(i,s){var d=this.options,b=d[s+"Size"];typeof b=="number"&&(b=[b,b]);var P=z(b),W=z(s==="shadow"&&d.shadowAnchor||d.iconAnchor||P&&P.divideBy(2,!0));i.className="leaflet-marker-"+s+" "+(d.className||""),W&&(i.style.marginLeft=-W.x+"px",i.style.marginTop=-W.y+"px"),P&&(i.style.width=P.x+"px",i.style.height=P.y+"px")},_createImg:function(i,s){return s=s||document.createElement("img"),s.src=i,s},_getIconUrl:function(i){return ge.retina&&this.options[i+"RetinaUrl"]||this.options[i+"Url"]}});function j_(i){return new ti(i)}var Ki=ti.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(i){return typeof Ki.imagePath!="string"&&(Ki.imagePath=this._detectIconPath()),(this.options.imagePath||Ki.imagePath)+ti.prototype._getIconUrl.call(this,i)},_stripUrl:function(i){var s=function(d,b,P){var W=b.exec(d);return W&&W[P]};return i=s(i,/^url\((['"])?(.+)\1\)$/,2),i&&s(i,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var i=$e("div","leaflet-default-icon-path",document.body),s=Vi(i,"background-image")||Vi(i,"backgroundImage");if(document.body.removeChild(i),s=this._stripUrl(s),s)return s;var d=document.querySelector('link[href$="leaflet.css"]');return d?d.href.substring(0,d.href.length-11-1):""}}),bf=Er.extend({initialize:function(i){this._marker=i},addHooks:function(){var i=this._marker._icon;this._draggable||(this._draggable=new sn(i,i,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),Re(i,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&at(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(i){var s=this._marker,d=s._map,b=this._marker.options.autoPanSpeed,P=this._marker.options.autoPanPadding,W=On(s._icon),Y=d.getPixelBounds(),re=d.getPixelOrigin(),oe=ee(Y.min._subtract(re).add(P),Y.max._subtract(re).subtract(P));if(!oe.contains(W)){var ce=z((Math.max(oe.max.x,W.x)-oe.max.x)/(Y.max.x-oe.max.x)-(Math.min(oe.min.x,W.x)-oe.min.x)/(Y.min.x-oe.min.x),(Math.max(oe.max.y,W.y)-oe.max.y)/(Y.max.y-oe.max.y)-(Math.min(oe.min.y,W.y)-oe.min.y)/(Y.min.y-oe.min.y)).multiplyBy(b);d.panBy(ce,{animate:!1}),this._draggable._newPos._add(ce),this._draggable._startPos._add(ce),ht(s._icon,this._draggable._newPos),this._onDrag(i),this._panRequest=N(this._adjustPan.bind(this,i))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(i){this._marker.options.autoPan&&(k(this._panRequest),this._panRequest=N(this._adjustPan.bind(this,i)))},_onDrag:function(i){var s=this._marker,d=s._shadow,b=On(s._icon),P=s._map.layerPointToLatLng(b);d&&ht(d,b),s._latlng=P,i.latlng=P,i.oldLatLng=this._oldLatLng,s.fire("move",i).fire("drag",i)},_onDragEnd:function(i){k(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",i)}}),ha=gr.extend({options:{icon:new Ki,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(i,s){y(this,s),this._latlng=ne(i)},onAdd:function(i){this._zoomAnimated=this._zoomAnimated&&i.options.markerZoomAnimation,this._zoomAnimated&&i.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(i){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&i.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(i){var s=this._latlng;return this._latlng=ne(i),this.update(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},setZIndexOffset:function(i){return this.options.zIndexOffset=i,this.update()},getIcon:function(){return this.options.icon},setIcon:function(i){return this.options.icon=i,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var i=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(i)}return this},_initIcon:function(){var i=this.options,s="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),d=i.icon.createIcon(this._icon),b=!1;d!==this._icon&&(this._icon&&this._removeIcon(),b=!0,i.title&&(d.title=i.title),d.tagName==="IMG"&&(d.alt=i.alt||"")),Re(d,s),i.keyboard&&(d.tabIndex="0",d.setAttribute("role","button")),this._icon=d,i.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Me(d,"focus",this._panOnFocus,this);var P=i.icon.createShadow(this._shadow),W=!1;P!==this._shadow&&(this._removeShadow(),W=!0),P&&(Re(P,s),P.alt=""),this._shadow=P,i.opacity<1&&this._updateOpacity(),b&&this.getPane().appendChild(this._icon),this._initInteraction(),P&&W&&this.getPane(i.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&qe(this._icon,"focus",this._panOnFocus,this),Ke(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&Ke(this._shadow),this._shadow=null},_setPos:function(i){this._icon&&ht(this._icon,i),this._shadow&&ht(this._shadow,i),this._zIndex=i.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(i){this._icon&&(this._icon.style.zIndex=this._zIndex+i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center).round();this._setPos(s)},_initInteraction:function(){if(this.options.interactive&&(Re(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),bf)){var i=this.options.draggable;this.dragging&&(i=this.dragging.enabled(),this.dragging.disable()),this.dragging=new bf(this),i&&this.dragging.enable()}},setOpacity:function(i){return this.options.opacity=i,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var i=this.options.opacity;this._icon&&Zt(this._icon,i),this._shadow&&Zt(this._shadow,i)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var i=this._map;if(i){var s=this.options.icon.options,d=s.iconSize?z(s.iconSize):z(0,0),b=s.iconAnchor?z(s.iconAnchor):z(0,0);i.panInside(this._latlng,{paddingTopLeft:b,paddingBottomRight:d.subtract(b)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function B_(i,s){return new ha(i,s)}var ln=gr.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,fillRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(i){this._renderer=i.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(i){return y(this,i),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&i&&Object.prototype.hasOwnProperty.call(i,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),pa=ln.extend({options:{fill:!0,radius:10},initialize:function(i,s){y(this,s),this._latlng=ne(i),this._radius=this.options.radius},setLatLng:function(i){var s=this._latlng;return this._latlng=ne(i),this.redraw(),this.fire("move",{oldLatLng:s,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(i){return this.options.radius=this._radius=i,this.redraw()},getRadius:function(){return this._radius},setStyle:function(i){var s=i&&i.radius||this._radius;return ln.prototype.setStyle.call(this,i),this.setRadius(s),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var i=this._radius,s=this._radiusY||i,d=this._clickTolerance(),b=[i+d,s+d];this._pxBounds=new H(this._point.subtract(b),this._point.add(b))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(i){return i.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function H_(i,s){return new pa(i,s)}var wl=pa.extend({initialize:function(i,s,d){if(typeof s=="number"&&(s=o({},d,{radius:s})),y(this,s),this._latlng=ne(i),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(i){return this._mRadius=i,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var i=[this._radius,this._radiusY||this._radius];return new X(this._map.layerPointToLatLng(this._point.subtract(i)),this._map.layerPointToLatLng(this._point.add(i)))},setStyle:ln.prototype.setStyle,_project:function(){var i=this._latlng.lng,s=this._latlng.lat,d=this._map,b=d.options.crs;if(b.distance===se.distance){var P=Math.PI/180,W=this._mRadius/se.R/P,Y=d.project([s+W,i]),re=d.project([s-W,i]),oe=Y.add(re).divideBy(2),ce=d.unproject(oe).lat,me=Math.acos((Math.cos(W*P)-Math.sin(s*P)*Math.sin(ce*P))/(Math.cos(s*P)*Math.cos(ce*P)))/P;(isNaN(me)||me===0)&&(me=W/Math.cos(Math.PI/180*s)),this._point=oe.subtract(d.getPixelOrigin()),this._radius=isNaN(me)?0:oe.x-d.project([ce,i-me]).x,this._radiusY=oe.y-Y.y}else{var xe=b.unproject(b.project(this._latlng).subtract([this._mRadius,0]));this._point=d.latLngToLayerPoint(this._latlng),this._radius=this._point.x-d.latLngToLayerPoint(xe).x}this._updateBounds()}});function V_(i,s,d){return new wl(i,s,d)}var Vr=ln.extend({options:{smoothFactor:1,noClip:!1},initialize:function(i,s){y(this,s),this._setLatLngs(i)},getLatLngs:function(){return this._latlngs},setLatLngs:function(i){return this._setLatLngs(i),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(i){for(var s=1/0,d=null,b=Zi,P,W,Y=0,re=this._parts.length;Y<re;Y++)for(var oe=this._parts[Y],ce=1,me=oe.length;ce<me;ce++){P=oe[ce-1],W=oe[ce];var xe=b(i,P,W,!0);xe<s&&(s=xe,d=b(i,P,W))}return d&&(d.distance=Math.sqrt(s)),d},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return gf(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(i,s){return s=s||this._defaultShape(),i=ne(i),s.push(i),this._bounds.extend(i),this.redraw()},_setLatLngs:function(i){this._bounds=new X,this._latlngs=this._convertLatLngs(i)},_defaultShape:function(){return Kt(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(i){for(var s=[],d=Kt(i),b=0,P=i.length;b<P;b++)d?(s[b]=ne(i[b]),this._bounds.extend(s[b])):s[b]=this._convertLatLngs(i[b]);return s},_project:function(){var i=new H;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,i),this._bounds.isValid()&&i.isValid()&&(this._rawPxBounds=i,this._updateBounds())},_updateBounds:function(){var i=this._clickTolerance(),s=new q(i,i);this._rawPxBounds&&(this._pxBounds=new H([this._rawPxBounds.min.subtract(s),this._rawPxBounds.max.add(s)]))},_projectLatlngs:function(i,s,d){var b=i[0]instanceof J,P=i.length,W,Y;if(b){for(Y=[],W=0;W<P;W++)Y[W]=this._map.latLngToLayerPoint(i[W]),d.extend(Y[W]);s.push(Y)}else for(W=0;W<P;W++)this._projectLatlngs(i[W],s,d)},_clipPoints:function(){var i=this._renderer._bounds;if(this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}var s=this._parts,d,b,P,W,Y,re,oe;for(d=0,P=0,W=this._rings.length;d<W;d++)for(oe=this._rings[d],b=0,Y=oe.length;b<Y-1;b++)re=mf(oe[b],oe[b+1],i,b,!0),re&&(s[P]=s[P]||[],s[P].push(re[0]),(re[1]!==oe[b+1]||b===Y-2)&&(s[P].push(re[1]),P++))}},_simplifyPoints:function(){for(var i=this._parts,s=this.options.smoothFactor,d=0,b=i.length;d<b;d++)i[d]=ff(i[d],s)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(i,s){var d,b,P,W,Y,re,oe=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(d=0,W=this._parts.length;d<W;d++)for(re=this._parts[d],b=0,Y=re.length,P=Y-1;b<Y;P=b++)if(!(!s&&b===0)&&hf(i,re[P],re[b])<=oe)return!0;return!1}});function U_(i,s){return new Vr(i,s)}Vr._flat=vf;var ri=Vr.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return df(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(i){var s=Vr.prototype._convertLatLngs.call(this,i),d=s.length;return d>=2&&s[0]instanceof J&&s[0].equals(s[d-1])&&s.pop(),s},_setLatLngs:function(i){Vr.prototype._setLatLngs.call(this,i),Kt(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Kt(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var i=this._renderer._bounds,s=this.options.weight,d=new q(s,s);if(i=new H(i.min.subtract(d),i.max.add(d)),this._parts=[],!(!this._pxBounds||!this._pxBounds.intersects(i))){if(this.options.noClip){this._parts=this._rings;return}for(var b=0,P=this._rings.length,W;b<P;b++)W=cf(this._rings[b],i,!0),W.length&&this._parts.push(W)}},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(i){var s=!1,d,b,P,W,Y,re,oe,ce;if(!this._pxBounds||!this._pxBounds.contains(i))return!1;for(W=0,oe=this._parts.length;W<oe;W++)for(d=this._parts[W],Y=0,ce=d.length,re=ce-1;Y<ce;re=Y++)b=d[Y],P=d[re],b.y>i.y!=P.y>i.y&&i.x<(P.x-b.x)*(i.y-b.y)/(P.y-b.y)+b.x&&(s=!s);return s||Vr.prototype._containsPoint.call(this,i,!0)}});function q_(i,s){return new ri(i,s)}var Ur=Hr.extend({initialize:function(i,s){y(this,s),this._layers={},i&&this.addData(i)},addData:function(i){var s=T(i)?i:i.features,d,b,P;if(s){for(d=0,b=s.length;d<b;d++)P=s[d],(P.geometries||P.geometry||P.features||P.coordinates)&&this.addData(P);return this}var W=this.options;if(W.filter&&!W.filter(i))return this;var Y=ma(i,W);return Y?(Y.feature=ya(i),Y.defaultOptions=Y.options,this.resetStyle(Y),W.onEachFeature&&W.onEachFeature(i,Y),this.addLayer(Y)):this},resetStyle:function(i){return i===void 0?this.eachLayer(this.resetStyle,this):(i.options=o({},i.defaultOptions),this._setLayerStyle(i,this.options.style),this)},setStyle:function(i){return this.eachLayer(function(s){this._setLayerStyle(s,i)},this)},_setLayerStyle:function(i,s){i.setStyle&&(typeof s=="function"&&(s=s(i.feature)),i.setStyle(s))}});function ma(i,s){var d=i.type==="Feature"?i.geometry:i,b=d?d.coordinates:null,P=[],W=s&&s.pointToLayer,Y=s&&s.coordsToLatLng||xl,re,oe,ce,me;if(!b&&!d)return null;switch(d.type){case"Point":return re=Y(b),_f(W,i,re,s);case"MultiPoint":for(ce=0,me=b.length;ce<me;ce++)re=Y(b[ce]),P.push(_f(W,i,re,s));return new Hr(P);case"LineString":case"MultiLineString":return oe=va(b,d.type==="LineString"?0:1,Y),new Vr(oe,s);case"Polygon":case"MultiPolygon":return oe=va(b,d.type==="Polygon"?1:2,Y),new ri(oe,s);case"GeometryCollection":for(ce=0,me=d.geometries.length;ce<me;ce++){var xe=ma({geometry:d.geometries[ce],type:"Feature",properties:i.properties},s);xe&&P.push(xe)}return new Hr(P);case"FeatureCollection":for(ce=0,me=d.features.length;ce<me;ce++){var Ne=ma(d.features[ce],s);Ne&&P.push(Ne)}return new Hr(P);default:throw new Error("Invalid GeoJSON object.")}}function _f(i,s,d,b){return i?i(s,d):new ha(d,b&&b.markersInheritOptions&&b)}function xl(i){return new J(i[1],i[0],i[2])}function va(i,s,d){for(var b=[],P=0,W=i.length,Y;P<W;P++)Y=s?va(i[P],s-1,d):(d||xl)(i[P]),b.push(Y);return b}function Cl(i,s){return i=ne(i),i.alt!==void 0?[h(i.lng,s),h(i.lat,s),h(i.alt,s)]:[h(i.lng,s),h(i.lat,s)]}function ga(i,s,d,b){for(var P=[],W=0,Y=i.length;W<Y;W++)P.push(s?ga(i[W],Kt(i[W])?0:s-1,d,b):Cl(i[W],b));return!s&&d&&P.length>0&&P.push(P[0].slice()),P}function ni(i,s){return i.feature?o({},i.feature,{geometry:s}):ya(s)}function ya(i){return i.type==="Feature"||i.type==="FeatureCollection"?i:{type:"Feature",properties:{},geometry:i}}var Tl={toGeoJSON:function(i){return ni(this,{type:"Point",coordinates:Cl(this.getLatLng(),i)})}};ha.include(Tl),wl.include(Tl),pa.include(Tl),Vr.include({toGeoJSON:function(i){var s=!Kt(this._latlngs),d=ga(this._latlngs,s?1:0,!1,i);return ni(this,{type:(s?"Multi":"")+"LineString",coordinates:d})}}),ri.include({toGeoJSON:function(i){var s=!Kt(this._latlngs),d=s&&!Kt(this._latlngs[0]),b=ga(this._latlngs,d?2:s?1:0,!0,i);return s||(b=[b]),ni(this,{type:(d?"Multi":"")+"Polygon",coordinates:b})}}),ei.include({toMultiPoint:function(i){var s=[];return this.eachLayer(function(d){s.push(d.toGeoJSON(i).geometry.coordinates)}),ni(this,{type:"MultiPoint",coordinates:s})},toGeoJSON:function(i){var s=this.feature&&this.feature.geometry&&this.feature.geometry.type;if(s==="MultiPoint")return this.toMultiPoint(i);var d=s==="GeometryCollection",b=[];return this.eachLayer(function(P){if(P.toGeoJSON){var W=P.toGeoJSON(i);if(d)b.push(W.geometry);else{var Y=ya(W);Y.type==="FeatureCollection"?b.push.apply(b,Y.features):b.push(Y)}}}),d?ni(this,{geometries:b,type:"GeometryCollection"}):{type:"FeatureCollection",features:b}}});function wf(i,s){return new Ur(i,s)}var G_=wf,ba=gr.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(i,s,d){this._url=i,this._bounds=K(s),y(this,d)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(Re(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){Ke(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(i){return this.options.opacity=i,this._image&&this._updateOpacity(),this},setStyle:function(i){return i.opacity&&this.setOpacity(i.opacity),this},bringToFront:function(){return this._map&&Qn(this._image),this},bringToBack:function(){return this._map&&Jn(this._image),this},setUrl:function(i){return this._url=i,this._image&&(this._image.src=i),this},setBounds:function(i){return this._bounds=K(i),this._map&&this._reset(),this},getEvents:function(){var i={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var i=this._url.tagName==="IMG",s=this._image=i?this._url:$e("img");if(Re(s,"leaflet-image-layer"),this._zoomAnimated&&Re(s,"leaflet-zoom-animated"),this.options.className&&Re(s,this.options.className),s.onselectstart=m,s.onmousemove=m,s.onload=l(this.fire,this,"load"),s.onerror=l(this._overlayOnError,this,"error"),(this.options.crossOrigin||this.options.crossOrigin==="")&&(s.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),i){this._url=s.src;return}s.src=this._url,s.alt=this.options.alt},_animateZoom:function(i){var s=this._map.getZoomScale(i.zoom),d=this._map._latLngBoundsToNewLayerBounds(this._bounds,i.zoom,i.center).min;Rn(this._image,d,s)},_reset:function(){var i=this._image,s=new H(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),d=s.getSize();ht(i,s.min),i.style.width=d.x+"px",i.style.height=d.y+"px"},_updateOpacity:function(){Zt(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var i=this.options.errorOverlayUrl;i&&this._url!==i&&(this._url=i,this._image.src=i)},getCenter:function(){return this._bounds.getCenter()}}),Y_=function(i,s,d){return new ba(i,s,d)},xf=ba.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var i=this._url.tagName==="VIDEO",s=this._image=i?this._url:$e("video");if(Re(s,"leaflet-image-layer"),this._zoomAnimated&&Re(s,"leaflet-zoom-animated"),this.options.className&&Re(s,this.options.className),s.onselectstart=m,s.onmousemove=m,s.onloadeddata=l(this.fire,this,"load"),i){for(var d=s.getElementsByTagName("source"),b=[],P=0;P<d.length;P++)b.push(d[P].src);this._url=d.length>0?b:[s.src];return}T(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(s.style,"objectFit")&&(s.style.objectFit="fill"),s.autoplay=!!this.options.autoplay,s.loop=!!this.options.loop,s.muted=!!this.options.muted,s.playsInline=!!this.options.playsInline;for(var W=0;W<this._url.length;W++){var Y=$e("source");Y.src=this._url[W],s.appendChild(Y)}}});function X_(i,s,d){return new xf(i,s,d)}var Cf=ba.extend({_initImage:function(){var i=this._image=this._url;Re(i,"leaflet-image-layer"),this._zoomAnimated&&Re(i,"leaflet-zoom-animated"),this.options.className&&Re(i,this.options.className),i.onselectstart=m,i.onmousemove=m}});function Z_(i,s,d){return new Cf(i,s,d)}var Sr=gr.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(i,s){i&&(i instanceof J||T(i))?(this._latlng=ne(i),y(this,s)):(y(this,i),this._source=s),this.options.content&&(this._content=this.options.content)},openOn:function(i){return i=arguments.length?i:this._source._map,i.hasLayer(this)||i.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(i){return this._map?this.close():(arguments.length?this._source=i:i=this._source,this._prepareOpen(),this.openOn(i._map)),this},onAdd:function(i){this._zoomAnimated=i._zoomAnimated,this._container||this._initLayout(),i._fadeAnimated&&Zt(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),i._fadeAnimated&&Zt(this._container,1),this.bringToFront(),this.options.interactive&&(Re(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(i){i._fadeAnimated?(Zt(this._container,0),this._removeTimeout=setTimeout(l(Ke,void 0,this._container),200)):Ke(this._container),this.options.interactive&&(at(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(i){return this._latlng=ne(i),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(i){return this._content=i,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var i={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&Qn(this._container),this},bringToBack:function(){return this._map&&Jn(this._container),this},_prepareOpen:function(i){var s=this._source;if(!s._map)return!1;if(s instanceof Hr){s=null;var d=this._source._layers;for(var b in d)if(d[b]._map){s=d[b];break}if(!s)return!1;this._source=s}if(!i)if(s.getCenter)i=s.getCenter();else if(s.getLatLng)i=s.getLatLng();else if(s.getBounds)i=s.getBounds().getCenter();else throw new Error("Unable to get source layer LatLng.");return this.setLatLng(i),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var i=this._contentNode,s=typeof this._content=="function"?this._content(this._source||this):this._content;if(typeof s=="string")i.innerHTML=s;else{for(;i.hasChildNodes();)i.removeChild(i.firstChild);i.appendChild(s)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var i=this._map.latLngToLayerPoint(this._latlng),s=z(this.options.offset),d=this._getAnchor();this._zoomAnimated?ht(this._container,i.add(d)):s=s.add(i).add(d);var b=this._containerBottom=-s.y,P=this._containerLeft=-Math.round(this._containerWidth/2)+s.x;this._container.style.bottom=b+"px",this._container.style.left=P+"px"}},_getAnchor:function(){return[0,0]}});Ae.include({_initOverlay:function(i,s,d,b){var P=s;return P instanceof i||(P=new i(b).setContent(s)),d&&P.setLatLng(d),P}}),gr.include({_initOverlay:function(i,s,d,b){var P=d;return P instanceof i?(y(P,b),P._source=this):(P=s&&!b?s:new i(b,this),P.setContent(d)),P}});var _a=Sr.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(i){return i=arguments.length?i:this._source._map,!i.hasLayer(this)&&i._popup&&i._popup.options.autoClose&&i.removeLayer(i._popup),i._popup=this,Sr.prototype.openOn.call(this,i)},onAdd:function(i){Sr.prototype.onAdd.call(this,i),i.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof ln||this._source.on("preclick",kn))},onRemove:function(i){Sr.prototype.onRemove.call(this,i),i.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof ln||this._source.off("preclick",kn))},getEvents:function(){var i=Sr.prototype.getEvents.call(this);return(this.options.closeOnClick!==void 0?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(i.preclick=this.close),this.options.keepInView&&(i.moveend=this._adjustPan),i},_initLayout:function(){var i="leaflet-popup",s=this._container=$e("div",i+" "+(this.options.className||"")+" leaflet-zoom-animated"),d=this._wrapper=$e("div",i+"-content-wrapper",s);if(this._contentNode=$e("div",i+"-content",d),Yi(s),hl(this._contentNode),Me(s,"contextmenu",kn),this._tipContainer=$e("div",i+"-tip-container",s),this._tip=$e("div",i+"-tip",this._tipContainer),this.options.closeButton){var b=this._closeButton=$e("a",i+"-close-button",s);b.setAttribute("role","button"),b.setAttribute("aria-label","Close popup"),b.href="#close",b.innerHTML='<span aria-hidden="true">×</span>',Me(b,"click",function(P){wt(P),this.close()},this)}},_updateLayout:function(){var i=this._contentNode,s=i.style;s.width="",s.whiteSpace="nowrap";var d=i.offsetWidth;d=Math.min(d,this.options.maxWidth),d=Math.max(d,this.options.minWidth),s.width=d+1+"px",s.whiteSpace="",s.height="";var b=i.offsetHeight,P=this.options.maxHeight,W="leaflet-popup-scrolled";P&&b>P?(s.height=P+"px",Re(i,W)):at(i,W),this._containerWidth=this._container.offsetWidth},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center),d=this._getAnchor();ht(this._container,s.add(d))},_adjustPan:function(){if(this.options.autoPan){if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning){this._autopanning=!1;return}var i=this._map,s=parseInt(Vi(this._container,"marginBottom"),10)||0,d=this._container.offsetHeight+s,b=this._containerWidth,P=new q(this._containerLeft,-d-this._containerBottom);P._add(On(this._container));var W=i.layerPointToContainerPoint(P),Y=z(this.options.autoPanPadding),re=z(this.options.autoPanPaddingTopLeft||Y),oe=z(this.options.autoPanPaddingBottomRight||Y),ce=i.getSize(),me=0,xe=0;W.x+b+oe.x>ce.x&&(me=W.x+b-ce.x+oe.x),W.x-me-re.x<0&&(me=W.x-re.x),W.y+d+oe.y>ce.y&&(xe=W.y+d-ce.y+oe.y),W.y-xe-re.y<0&&(xe=W.y-re.y),(me||xe)&&(this.options.keepInView&&(this._autopanning=!0),i.fire("autopanstart").panBy([me,xe]))}},_getAnchor:function(){return z(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),K_=function(i,s){return new _a(i,s)};Ae.mergeOptions({closePopupOnClick:!0}),Ae.include({openPopup:function(i,s,d){return this._initOverlay(_a,i,s,d).openOn(this),this},closePopup:function(i){return i=arguments.length?i:this._popup,i&&i.close(),this}}),gr.include({bindPopup:function(i,s){return this._popup=this._initOverlay(_a,this._popup,i,s),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(i){return this._popup&&(this instanceof Hr||(this._popup._source=this),this._popup._prepareOpen(i||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return this._popup?this._popup.isOpen():!1},setPopupContent:function(i){return this._popup&&this._popup.setContent(i),this},getPopup:function(){return this._popup},_openPopup:function(i){if(!(!this._popup||!this._map)){Nn(i);var s=i.layer||i.target;if(this._popup._source===s&&!(s instanceof ln)){this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(i.latlng);return}this._popup._source=s,this.openPopup(i.latlng)}},_movePopup:function(i){this._popup.setLatLng(i.latlng)},_onKeyPress:function(i){i.originalEvent.keyCode===13&&this._openPopup(i)}});var wa=Sr.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(i){Sr.prototype.onAdd.call(this,i),this.setOpacity(this.options.opacity),i.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(i){Sr.prototype.onRemove.call(this,i),i.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var i=Sr.prototype.getEvents.call(this);return this.options.permanent||(i.preclick=this.close),i},_initLayout:function(){var i="leaflet-tooltip",s=i+" "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=$e("div",s),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+c(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(i){var s,d,b=this._map,P=this._container,W=b.latLngToContainerPoint(b.getCenter()),Y=b.layerPointToContainerPoint(i),re=this.options.direction,oe=P.offsetWidth,ce=P.offsetHeight,me=z(this.options.offset),xe=this._getAnchor();re==="top"?(s=oe/2,d=ce):re==="bottom"?(s=oe/2,d=0):re==="center"?(s=oe/2,d=ce/2):re==="right"?(s=0,d=ce/2):re==="left"?(s=oe,d=ce/2):Y.x<W.x?(re="right",s=0,d=ce/2):(re="left",s=oe+(me.x+xe.x)*2,d=ce/2),i=i.subtract(z(s,d,!0)).add(me).add(xe),at(P,"leaflet-tooltip-right"),at(P,"leaflet-tooltip-left"),at(P,"leaflet-tooltip-top"),at(P,"leaflet-tooltip-bottom"),Re(P,"leaflet-tooltip-"+re),ht(P,i)},_updatePosition:function(){var i=this._map.latLngToLayerPoint(this._latlng);this._setPosition(i)},setOpacity:function(i){this.options.opacity=i,this._container&&Zt(this._container,i)},_animateZoom:function(i){var s=this._map._latLngToNewLayerPoint(this._latlng,i.zoom,i.center);this._setPosition(s)},_getAnchor:function(){return z(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Q_=function(i,s){return new wa(i,s)};Ae.include({openTooltip:function(i,s,d){return this._initOverlay(wa,i,s,d).openOn(this),this},closeTooltip:function(i){return i.close(),this}}),gr.include({bindTooltip:function(i,s){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(wa,this._tooltip,i,s),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(i){if(!(!i&&this._tooltipHandlersAdded)){var s=i?"off":"on",d={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?d.add=this._openTooltip:(d.mouseover=this._openTooltip,d.mouseout=this.closeTooltip,d.click=this._openTooltip,this._map?this._addFocusListeners():d.add=this._addFocusListeners),this._tooltip.options.sticky&&(d.mousemove=this._moveTooltip),this[s](d),this._tooltipHandlersAdded=!i}},openTooltip:function(i){return this._tooltip&&(this instanceof Hr||(this._tooltip._source=this),this._tooltip._prepareOpen(i)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(i){return this._tooltip&&this._tooltip.setContent(i),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&(Me(s,"focus",function(){this._tooltip._source=i,this.openTooltip()},this),Me(s,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(i){var s=typeof i.getElement=="function"&&i.getElement();s&&s.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(i){if(!(!this._tooltip||!this._map)){if(this._map.dragging&&this._map.dragging.moving()&&!this._openOnceFlag){this._openOnceFlag=!0;var s=this;this._map.once("moveend",function(){s._openOnceFlag=!1,s._openTooltip(i)});return}this._tooltip._source=i.layer||i.target,this.openTooltip(this._tooltip.options.sticky?i.latlng:void 0)}},_moveTooltip:function(i){var s=i.latlng,d,b;this._tooltip.options.sticky&&i.originalEvent&&(d=this._map.mouseEventToContainerPoint(i.originalEvent),b=this._map.containerPointToLayerPoint(d),s=this._map.layerPointToLatLng(b)),this._tooltip.setLatLng(s)}});var Tf=ti.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(i){var s=i&&i.tagName==="DIV"?i:document.createElement("div"),d=this.options;if(d.html instanceof Element?(sa(s),s.appendChild(d.html)):s.innerHTML=d.html!==!1?d.html:"",d.bgPos){var b=z(d.bgPos);s.style.backgroundPosition=-b.x+"px "+-b.y+"px"}return this._setIconStyles(s,"icon"),s},createShadow:function(){return null}});function J_(i){return new Tf(i)}ti.Default=Ki;var Qi=gr.extend({options:{tileSize:256,opacity:1,updateWhenIdle:ge.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(i){y(this,i)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(i){i._addZoomLimit(this)},onRemove:function(i){this._removeAllTiles(),Ke(this._container),i._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(Qn(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(Jn(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(i){return this.options.opacity=i,this._updateOpacity(),this},setZIndex:function(i){return this.options.zIndex=i,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var i=this._clampZoom(this._map.getZoom());i!==this._tileZoom&&(this._tileZoom=i,this._updateLevels()),this._update()}return this},getEvents:function(){var i={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=f(this._onMoveEnd,this.options.updateInterval,this)),i.move=this._onMove),this._zoomAnimated&&(i.zoomanim=this._animateZoom),i},createTile:function(){return document.createElement("div")},getTileSize:function(){var i=this.options.tileSize;return i instanceof q?i:new q(i,i)},_updateZIndex:function(){this._container&&this.options.zIndex!==void 0&&this.options.zIndex!==null&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(i){for(var s=this.getPane().children,d=-i(-1/0,1/0),b=0,P=s.length,W;b<P;b++)W=s[b].style.zIndex,s[b]!==this._container&&W&&(d=i(d,+W));isFinite(d)&&(this.options.zIndex=d+i(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!ge.ielt9){Zt(this._container,this.options.opacity);var i=+new Date,s=!1,d=!1;for(var b in this._tiles){var P=this._tiles[b];if(!(!P.current||!P.loaded)){var W=Math.min(1,(i-P.loaded)/200);Zt(P.el,W),W<1?s=!0:(P.active?d=!0:this._onOpaqueTile(P),P.active=!0)}}d&&!this._noPrune&&this._pruneTiles(),s&&(k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this))}},_onOpaqueTile:m,_initContainer:function(){this._container||(this._container=$e("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var i=this._tileZoom,s=this.options.maxZoom;if(i!==void 0){for(var d in this._levels)d=Number(d),this._levels[d].el.children.length||d===i?(this._levels[d].el.style.zIndex=s-Math.abs(i-d),this._onUpdateLevel(d)):(Ke(this._levels[d].el),this._removeTilesAtZoom(d),this._onRemoveLevel(d),delete this._levels[d]);var b=this._levels[i],P=this._map;return b||(b=this._levels[i]={},b.el=$e("div","leaflet-tile-container leaflet-zoom-animated",this._container),b.el.style.zIndex=s,b.origin=P.project(P.unproject(P.getPixelOrigin()),i).round(),b.zoom=i,this._setZoomTransform(b,P.getCenter(),P.getZoom()),this._onCreateLevel(b)),this._level=b,b}},_onUpdateLevel:m,_onRemoveLevel:m,_onCreateLevel:m,_pruneTiles:function(){if(this._map){var i,s,d=this._map.getZoom();if(d>this.options.maxZoom||d<this.options.minZoom){this._removeAllTiles();return}for(i in this._tiles)s=this._tiles[i],s.retain=s.current;for(i in this._tiles)if(s=this._tiles[i],s.current&&!s.active){var b=s.coords;this._retainParent(b.x,b.y,b.z,b.z-5)||this._retainChildren(b.x,b.y,b.z,b.z+2)}for(i in this._tiles)this._tiles[i].retain||this._removeTile(i)}},_removeTilesAtZoom:function(i){for(var s in this._tiles)this._tiles[s].coords.z===i&&this._removeTile(s)},_removeAllTiles:function(){for(var i in this._tiles)this._removeTile(i)},_invalidateAll:function(){for(var i in this._levels)Ke(this._levels[i].el),this._onRemoveLevel(Number(i)),delete this._levels[i];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(i,s,d,b){var P=Math.floor(i/2),W=Math.floor(s/2),Y=d-1,re=new q(+P,+W);re.z=+Y;var oe=this._tileCoordsToKey(re),ce=this._tiles[oe];return ce&&ce.active?(ce.retain=!0,!0):(ce&&ce.loaded&&(ce.retain=!0),Y>b?this._retainParent(P,W,Y,b):!1)},_retainChildren:function(i,s,d,b){for(var P=2*i;P<2*i+2;P++)for(var W=2*s;W<2*s+2;W++){var Y=new q(P,W);Y.z=d+1;var re=this._tileCoordsToKey(Y),oe=this._tiles[re];if(oe&&oe.active){oe.retain=!0;continue}else oe&&oe.loaded&&(oe.retain=!0);d+1<b&&this._retainChildren(P,W,d+1,b)}},_resetView:function(i){var s=i&&(i.pinch||i.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),s,s)},_animateZoom:function(i){this._setView(i.center,i.zoom,!0,i.noUpdate)},_clampZoom:function(i){var s=this.options;return s.minNativeZoom!==void 0&&i<s.minNativeZoom?s.minNativeZoom:s.maxNativeZoom!==void 0&&s.maxNativeZoom<i?s.maxNativeZoom:i},_setView:function(i,s,d,b){var P=Math.round(s);this.options.maxZoom!==void 0&&P>this.options.maxZoom||this.options.minZoom!==void 0&&P<this.options.minZoom?P=void 0:P=this._clampZoom(P);var W=this.options.updateWhenZooming&&P!==this._tileZoom;(!b||W)&&(this._tileZoom=P,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),P!==void 0&&this._update(i),d||this._pruneTiles(),this._noPrune=!!d),this._setZoomTransforms(i,s)},_setZoomTransforms:function(i,s){for(var d in this._levels)this._setZoomTransform(this._levels[d],i,s)},_setZoomTransform:function(i,s,d){var b=this._map.getZoomScale(d,i.zoom),P=i.origin.multiplyBy(b).subtract(this._map._getNewPixelOrigin(s,d)).round();ge.any3d?Rn(i.el,P,b):ht(i.el,P)},_resetGrid:function(){var i=this._map,s=i.options.crs,d=this._tileSize=this.getTileSize(),b=this._tileZoom,P=this._map.getPixelWorldBounds(this._tileZoom);P&&(this._globalTileRange=this._pxBoundsToTileRange(P)),this._wrapX=s.wrapLng&&!this.options.noWrap&&[Math.floor(i.project([0,s.wrapLng[0]],b).x/d.x),Math.ceil(i.project([0,s.wrapLng[1]],b).x/d.y)],this._wrapY=s.wrapLat&&!this.options.noWrap&&[Math.floor(i.project([s.wrapLat[0],0],b).y/d.x),Math.ceil(i.project([s.wrapLat[1],0],b).y/d.y)]},_onMoveEnd:function(){!this._map||this._map._animatingZoom||this._update()},_getTiledPixelBounds:function(i){var s=this._map,d=s._animatingZoom?Math.max(s._animateToZoom,s.getZoom()):s.getZoom(),b=s.getZoomScale(d,this._tileZoom),P=s.project(i,this._tileZoom).floor(),W=s.getSize().divideBy(b*2);return new H(P.subtract(W),P.add(W))},_update:function(i){var s=this._map;if(s){var d=this._clampZoom(s.getZoom());if(i===void 0&&(i=s.getCenter()),this._tileZoom!==void 0){var b=this._getTiledPixelBounds(i),P=this._pxBoundsToTileRange(b),W=P.getCenter(),Y=[],re=this.options.keepBuffer,oe=new H(P.getBottomLeft().subtract([re,-re]),P.getTopRight().add([re,-re]));if(!(isFinite(P.min.x)&&isFinite(P.min.y)&&isFinite(P.max.x)&&isFinite(P.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var ce in this._tiles){var me=this._tiles[ce].coords;(me.z!==this._tileZoom||!oe.contains(new q(me.x,me.y)))&&(this._tiles[ce].current=!1)}if(Math.abs(d-this._tileZoom)>1){this._setView(i,d);return}for(var xe=P.min.y;xe<=P.max.y;xe++)for(var Ne=P.min.x;Ne<=P.max.x;Ne++){var Ot=new q(Ne,xe);if(Ot.z=this._tileZoom,!!this._isValidTile(Ot)){var bt=this._tiles[this._tileCoordsToKey(Ot)];bt?bt.current=!0:Y.push(Ot)}}if(Y.sort(function($t,oi){return $t.distanceTo(W)-oi.distanceTo(W)}),Y.length!==0){this._loading||(this._loading=!0,this.fire("loading"));var Qt=document.createDocumentFragment();for(Ne=0;Ne<Y.length;Ne++)this._addTile(Y[Ne],Qt);this._level.el.appendChild(Qt)}}}},_isValidTile:function(i){var s=this._map.options.crs;if(!s.infinite){var d=this._globalTileRange;if(!s.wrapLng&&(i.x<d.min.x||i.x>d.max.x)||!s.wrapLat&&(i.y<d.min.y||i.y>d.max.y))return!1}if(!this.options.bounds)return!0;var b=this._tileCoordsToBounds(i);return K(this.options.bounds).overlaps(b)},_keyToBounds:function(i){return this._tileCoordsToBounds(this._keyToTileCoords(i))},_tileCoordsToNwSe:function(i){var s=this._map,d=this.getTileSize(),b=i.scaleBy(d),P=b.add(d),W=s.unproject(b,i.z),Y=s.unproject(P,i.z);return[W,Y]},_tileCoordsToBounds:function(i){var s=this._tileCoordsToNwSe(i),d=new X(s[0],s[1]);return this.options.noWrap||(d=this._map.wrapLatLngBounds(d)),d},_tileCoordsToKey:function(i){return i.x+":"+i.y+":"+i.z},_keyToTileCoords:function(i){var s=i.split(":"),d=new q(+s[0],+s[1]);return d.z=+s[2],d},_removeTile:function(i){var s=this._tiles[i];s&&(Ke(s.el),delete this._tiles[i],this.fire("tileunload",{tile:s.el,coords:this._keyToTileCoords(i)}))},_initTile:function(i){Re(i,"leaflet-tile");var s=this.getTileSize();i.style.width=s.x+"px",i.style.height=s.y+"px",i.onselectstart=m,i.onmousemove=m,ge.ielt9&&this.options.opacity<1&&Zt(i,this.options.opacity)},_addTile:function(i,s){var d=this._getTilePos(i),b=this._tileCoordsToKey(i),P=this.createTile(this._wrapCoords(i),l(this._tileReady,this,i));this._initTile(P),this.createTile.length<2&&N(l(this._tileReady,this,i,null,P)),ht(P,d),this._tiles[b]={el:P,coords:i,current:!0},s.appendChild(P),this.fire("tileloadstart",{tile:P,coords:i})},_tileReady:function(i,s,d){s&&this.fire("tileerror",{error:s,tile:d,coords:i});var b=this._tileCoordsToKey(i);d=this._tiles[b],d&&(d.loaded=+new Date,this._map._fadeAnimated?(Zt(d.el,0),k(this._fadeFrame),this._fadeFrame=N(this._updateOpacity,this)):(d.active=!0,this._pruneTiles()),s||(Re(d.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:d.el,coords:i})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),ge.ielt9||!this._map._fadeAnimated?N(this._pruneTiles,this):setTimeout(l(this._pruneTiles,this),250)))},_getTilePos:function(i){return i.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(i){var s=new q(this._wrapX?p(i.x,this._wrapX):i.x,this._wrapY?p(i.y,this._wrapY):i.y);return s.z=i.z,s},_pxBoundsToTileRange:function(i){var s=this.getTileSize();return new H(i.min.unscaleBy(s).floor(),i.max.unscaleBy(s).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var i in this._tiles)if(!this._tiles[i].loaded)return!1;return!0}});function e0(i){return new Qi(i)}var ii=Qi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(i,s){this._url=i,s=y(this,s),s.detectRetina&&ge.retina&&s.maxZoom>0?(s.tileSize=Math.floor(s.tileSize/2),s.zoomReverse?(s.zoomOffset--,s.minZoom=Math.min(s.maxZoom,s.minZoom+1)):(s.zoomOffset++,s.maxZoom=Math.max(s.minZoom,s.maxZoom-1)),s.minZoom=Math.max(0,s.minZoom)):s.zoomReverse?s.minZoom=Math.min(s.maxZoom,s.minZoom):s.maxZoom=Math.max(s.minZoom,s.maxZoom),typeof s.subdomains=="string"&&(s.subdomains=s.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(i,s){return this._url===i&&s===void 0&&(s=!0),this._url=i,s||this.redraw(),this},createTile:function(i,s){var d=document.createElement("img");return Me(d,"load",l(this._tileOnLoad,this,s,d)),Me(d,"error",l(this._tileOnError,this,s,d)),(this.options.crossOrigin||this.options.crossOrigin==="")&&(d.crossOrigin=this.options.crossOrigin===!0?"":this.options.crossOrigin),typeof this.options.referrerPolicy=="string"&&(d.referrerPolicy=this.options.referrerPolicy),d.alt="",d.src=this.getTileUrl(i),d},getTileUrl:function(i){var s={r:ge.retina?"@2x":"",s:this._getSubdomain(i),x:i.x,y:i.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var d=this._globalTileRange.max.y-i.y;this.options.tms&&(s.y=d),s["-y"]=d}return E(this._url,o(s,this.options))},_tileOnLoad:function(i,s){ge.ielt9?setTimeout(l(i,this,null,s),0):i(null,s)},_tileOnError:function(i,s,d){var b=this.options.errorTileUrl;b&&s.getAttribute("src")!==b&&(s.src=b),i(d,s)},_onTileRemove:function(i){i.tile.onload=null},_getZoomForUrl:function(){var i=this._tileZoom,s=this.options.maxZoom,d=this.options.zoomReverse,b=this.options.zoomOffset;return d&&(i=s-i),i+b},_getSubdomain:function(i){var s=Math.abs(i.x+i.y)%this.options.subdomains.length;return this.options.subdomains[s]},_abortLoading:function(){var i,s;for(i in this._tiles)if(this._tiles[i].coords.z!==this._tileZoom&&(s=this._tiles[i].el,s.onload=m,s.onerror=m,!s.complete)){s.src=w;var d=this._tiles[i].coords;Ke(s),delete this._tiles[i],this.fire("tileabort",{tile:s,coords:d})}},_removeTile:function(i){var s=this._tiles[i];if(s)return s.el.setAttribute("src",w),Qi.prototype._removeTile.call(this,i)},_tileReady:function(i,s,d){if(!(!this._map||d&&d.getAttribute("src")===w))return Qi.prototype._tileReady.call(this,i,s,d)}});function Ef(i,s){return new ii(i,s)}var Sf=ii.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(i,s){this._url=i;var d=o({},this.defaultWmsParams);for(var b in s)b in this.options||(d[b]=s[b]);s=y(this,s);var P=s.detectRetina&&ge.retina?2:1,W=this.getTileSize();d.width=W.x*P,d.height=W.y*P,this.wmsParams=d},onAdd:function(i){this._crs=this.options.crs||i.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var s=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[s]=this._crs.code,ii.prototype.onAdd.call(this,i)},getTileUrl:function(i){var s=this._tileCoordsToNwSe(i),d=this._crs,b=ee(d.project(s[0]),d.project(s[1])),P=b.min,W=b.max,Y=(this._wmsVersion>=1.3&&this._crs===yf?[P.y,P.x,W.y,W.x]:[P.x,P.y,W.x,W.y]).join(","),re=ii.prototype.getTileUrl.call(this,i);return re+x(this.wmsParams,re,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+Y},setParams:function(i,s){return o(this.wmsParams,i),s||this.redraw(),this}});function t0(i,s){return new Sf(i,s)}ii.WMS=Sf,Ef.wms=t0;var qr=gr.extend({options:{padding:.1},initialize:function(i){y(this,i),c(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),Re(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var i={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(i.zoomanim=this._onAnimZoom),i},_onAnimZoom:function(i){this._updateTransform(i.center,i.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(i,s){var d=this._map.getZoomScale(s,this._zoom),b=this._map.getSize().multiplyBy(.5+this.options.padding),P=this._map.project(this._center,s),W=b.multiplyBy(-d).add(P).subtract(this._map._getNewPixelOrigin(i,s));ge.any3d?Rn(this._container,W,d):ht(this._container,W)},_reset:function(){this._update(),this._updateTransform(this._center,this._zoom);for(var i in this._layers)this._layers[i]._reset()},_onZoomEnd:function(){for(var i in this._layers)this._layers[i]._project()},_updatePaths:function(){for(var i in this._layers)this._layers[i]._update()},_update:function(){var i=this.options.padding,s=this._map.getSize(),d=this._map.containerPointToLayerPoint(s.multiplyBy(-i)).round();this._bounds=new H(d,d.add(s.multiplyBy(1+i*2)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),Mf=qr.extend({options:{tolerance:0},getEvents:function(){var i=qr.prototype.getEvents.call(this);return i.viewprereset=this._onViewPreReset,i},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){qr.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var i=this._container=document.createElement("canvas");Me(i,"mousemove",this._onMouseMove,this),Me(i,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Me(i,"mouseout",this._handleMouseOut,this),i._leaflet_disable_events=!0,this._ctx=i.getContext("2d")},_destroyContainer:function(){k(this._redrawRequest),delete this._ctx,Ke(this._container),qe(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){var i;this._redrawBounds=null;for(var s in this._layers)i=this._layers[s],i._update();this._redraw()}},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){qr.prototype._update.call(this);var i=this._bounds,s=this._container,d=i.getSize(),b=ge.retina?2:1;ht(s,i.min),s.width=b*d.x,s.height=b*d.y,s.style.width=d.x+"px",s.style.height=d.y+"px",ge.retina&&this._ctx.scale(2,2),this._ctx.translate(-i.min.x,-i.min.y),this.fire("update")}},_reset:function(){qr.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(i){this._updateDashArray(i),this._layers[c(i)]=i;var s=i._order={layer:i,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=s),this._drawLast=s,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(i){this._requestRedraw(i)},_removePath:function(i){var s=i._order,d=s.next,b=s.prev;d?d.prev=b:this._drawLast=b,b?b.next=d:this._drawFirst=d,delete i._order,delete this._layers[c(i)],this._requestRedraw(i)},_updatePath:function(i){this._extendRedrawBounds(i),i._project(),i._update(),this._requestRedraw(i)},_updateStyle:function(i){this._updateDashArray(i),this._requestRedraw(i)},_updateDashArray:function(i){if(typeof i.options.dashArray=="string"){var s=i.options.dashArray.split(/[, ]+/),d=[],b,P;for(P=0;P<s.length;P++){if(b=Number(s[P]),isNaN(b))return;d.push(b)}i.options._dashArray=d}else i.options._dashArray=i.options.dashArray},_requestRedraw:function(i){this._map&&(this._extendRedrawBounds(i),this._redrawRequest=this._redrawRequest||N(this._redraw,this))},_extendRedrawBounds:function(i){if(i._pxBounds){var s=(i.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new H,this._redrawBounds.extend(i._pxBounds.min.subtract([s,s])),this._redrawBounds.extend(i._pxBounds.max.add([s,s]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var i=this._redrawBounds;if(i){var s=i.getSize();this._ctx.clearRect(i.min.x,i.min.y,s.x,s.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var i,s=this._redrawBounds;if(this._ctx.save(),s){var d=s.getSize();this._ctx.beginPath(),this._ctx.rect(s.min.x,s.min.y,d.x,d.y),this._ctx.clip()}this._drawing=!0;for(var b=this._drawFirst;b;b=b.next)i=b.layer,(!s||i._pxBounds&&i._pxBounds.intersects(s))&&i._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(i,s){if(this._drawing){var d,b,P,W,Y=i._parts,re=Y.length,oe=this._ctx;if(re){for(oe.beginPath(),d=0;d<re;d++){for(b=0,P=Y[d].length;b<P;b++)W=Y[d][b],oe[b?"lineTo":"moveTo"](W.x,W.y);s&&oe.closePath()}this._fillStroke(oe,i)}}},_updateCircle:function(i){if(!(!this._drawing||i._empty())){var s=i._point,d=this._ctx,b=Math.max(Math.round(i._radius),1),P=(Math.max(Math.round(i._radiusY),1)||b)/b;P!==1&&(d.save(),d.scale(1,P)),d.beginPath(),d.arc(s.x,s.y/P,b,0,Math.PI*2,!1),P!==1&&d.restore(),this._fillStroke(d,i)}},_fillStroke:function(i,s){var d=s.options;d.fill&&(i.globalAlpha=d.fillOpacity,i.fillStyle=d.fillColor||d.color,i.fill(d.fillRule||"evenodd")),d.stroke&&d.weight!==0&&(i.setLineDash&&i.setLineDash(s.options&&s.options._dashArray||[]),i.globalAlpha=d.opacity,i.lineWidth=d.weight,i.strokeStyle=d.color,i.lineCap=d.lineCap,i.lineJoin=d.lineJoin,i.stroke())},_onClick:function(i){for(var s=this._map.mouseEventToLayerPoint(i),d,b,P=this._drawFirst;P;P=P.next)d=P.layer,d.options.interactive&&d._containsPoint(s)&&(!(i.type==="click"||i.type==="preclick")||!this._map._draggableMoved(d))&&(b=d);this._fireEvent(b?[b]:!1,i)},_onMouseMove:function(i){if(!(!this._map||this._map.dragging.moving()||this._map._animatingZoom)){var s=this._map.mouseEventToLayerPoint(i);this._handleMouseHover(i,s)}},_handleMouseOut:function(i){var s=this._hoveredLayer;s&&(at(this._container,"leaflet-interactive"),this._fireEvent([s],i,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(i,s){if(!this._mouseHoverThrottled){for(var d,b,P=this._drawFirst;P;P=P.next)d=P.layer,d.options.interactive&&d._containsPoint(s)&&(b=d);b!==this._hoveredLayer&&(this._handleMouseOut(i),b&&(Re(this._container,"leaflet-interactive"),this._fireEvent([b],i,"mouseover"),this._hoveredLayer=b)),this._fireEvent(this._hoveredLayer?[this._hoveredLayer]:!1,i),this._mouseHoverThrottled=!0,setTimeout(l(function(){this._mouseHoverThrottled=!1},this),32)}},_fireEvent:function(i,s,d){this._map._fireDOMEvent(s,d||s.type,i)},_bringToFront:function(i){var s=i._order;if(s){var d=s.next,b=s.prev;if(d)d.prev=b;else return;b?b.next=d:d&&(this._drawFirst=d),s.prev=this._drawLast,this._drawLast.next=s,s.next=null,this._drawLast=s,this._requestRedraw(i)}},_bringToBack:function(i){var s=i._order;if(s){var d=s.next,b=s.prev;if(b)b.next=d;else return;d?d.prev=b:b&&(this._drawLast=b),s.prev=null,s.next=this._drawFirst,this._drawFirst.prev=s,this._drawFirst=s,this._requestRedraw(i)}}});function Pf(i){return ge.canvas?new Mf(i):null}var Ji=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(i){return document.createElement("<lvml:"+i+' class="lvml">')}}catch(i){}return function(i){return document.createElement("<"+i+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),r0={_initContainer:function(){this._container=$e("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(qr.prototype._update.call(this),this.fire("update"))},_initPath:function(i){var s=i._container=Ji("shape");Re(s,"leaflet-vml-shape "+(this.options.className||"")),s.coordsize="1 1",i._path=Ji("path"),s.appendChild(i._path),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){var s=i._container;this._container.appendChild(s),i.options.interactive&&i.addInteractiveTarget(s)},_removePath:function(i){var s=i._container;Ke(s),i.removeInteractiveTarget(s),delete this._layers[c(i)]},_updateStyle:function(i){var s=i._stroke,d=i._fill,b=i.options,P=i._container;P.stroked=!!b.stroke,P.filled=!!b.fill,b.stroke?(s||(s=i._stroke=Ji("stroke")),P.appendChild(s),s.weight=b.weight+"px",s.color=b.color,s.opacity=b.opacity,b.dashArray?s.dashStyle=T(b.dashArray)?b.dashArray.join(" "):b.dashArray.replace(/( *, *)/g," "):s.dashStyle="",s.endcap=b.lineCap.replace("butt","flat"),s.joinstyle=b.lineJoin):s&&(P.removeChild(s),i._stroke=null),b.fill?(d||(d=i._fill=Ji("fill")),P.appendChild(d),d.color=b.fillColor||b.color,d.opacity=b.fillOpacity):d&&(P.removeChild(d),i._fill=null)},_updateCircle:function(i){var s=i._point.round(),d=Math.round(i._radius),b=Math.round(i._radiusY||d);this._setPath(i,i._empty()?"M0 0":"AL "+s.x+","+s.y+" "+d+","+b+" 0,"+65535*360)},_setPath:function(i,s){i._path.v=s},_bringToFront:function(i){Qn(i._container)},_bringToBack:function(i){Jn(i._container)}},xa=ge.vml?Ji:_e,eo=qr.extend({_initContainer:function(){this._container=xa("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=xa("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){Ke(this._container),qe(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!(this._map._animatingZoom&&this._bounds)){qr.prototype._update.call(this);var i=this._bounds,s=i.getSize(),d=this._container;(!this._svgSize||!this._svgSize.equals(s))&&(this._svgSize=s,d.setAttribute("width",s.x),d.setAttribute("height",s.y)),ht(d,i.min),d.setAttribute("viewBox",[i.min.x,i.min.y,s.x,s.y].join(" ")),this.fire("update")}},_initPath:function(i){var s=i._path=xa("path");i.options.className&&Re(s,i.options.className),i.options.interactive&&Re(s,"leaflet-interactive"),this._updateStyle(i),this._layers[c(i)]=i},_addPath:function(i){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(i._path),i.addInteractiveTarget(i._path)},_removePath:function(i){Ke(i._path),i.removeInteractiveTarget(i._path),delete this._layers[c(i)]},_updatePath:function(i){i._project(),i._update()},_updateStyle:function(i){var s=i._path,d=i.options;s&&(d.stroke?(s.setAttribute("stroke",d.color),s.setAttribute("stroke-opacity",d.opacity),s.setAttribute("stroke-width",d.weight),s.setAttribute("stroke-linecap",d.lineCap),s.setAttribute("stroke-linejoin",d.lineJoin),d.dashArray?s.setAttribute("stroke-dasharray",d.dashArray):s.removeAttribute("stroke-dasharray"),d.dashOffset?s.setAttribute("stroke-dashoffset",d.dashOffset):s.removeAttribute("stroke-dashoffset")):s.setAttribute("stroke","none"),d.fill?(s.setAttribute("fill",d.fillColor||d.color),s.setAttribute("fill-opacity",d.fillOpacity),s.setAttribute("fill-rule",d.fillRule||"evenodd")):s.setAttribute("fill","none"))},_updatePoly:function(i,s){this._setPath(i,we(i._parts,s))},_updateCircle:function(i){var s=i._point,d=Math.max(Math.round(i._radius),1),b=Math.max(Math.round(i._radiusY),1)||d,P="a"+d+","+b+" 0 1,0 ",W=i._empty()?"M0 0":"M"+(s.x-d)+","+s.y+P+d*2+",0 "+P+-d*2+",0 ";this._setPath(i,W)},_setPath:function(i,s){i._path.setAttribute("d",s)},_bringToFront:function(i){Qn(i._path)},_bringToBack:function(i){Jn(i._path)}});ge.vml&&eo.include(r0);function Rf(i){return ge.svg||ge.vml?new eo(i):null}Ae.include({getRenderer:function(i){var s=i.options.renderer||this._getPaneRenderer(i.options.pane)||this.options.renderer||this._renderer;return s||(s=this._renderer=this._createRenderer()),this.hasLayer(s)||this.addLayer(s),s},_getPaneRenderer:function(i){if(i==="overlayPane"||i===void 0)return!1;var s=this._paneRenderers[i];return s===void 0&&(s=this._createRenderer({pane:i}),this._paneRenderers[i]=s),s},_createRenderer:function(i){return this.options.preferCanvas&&Pf(i)||Rf(i)}});var Of=ri.extend({initialize:function(i,s){ri.prototype.initialize.call(this,this._boundsToLatLngs(i),s)},setBounds:function(i){return this.setLatLngs(this._boundsToLatLngs(i))},_boundsToLatLngs:function(i){return i=K(i),[i.getSouthWest(),i.getNorthWest(),i.getNorthEast(),i.getSouthEast()]}});function n0(i,s){return new Of(i,s)}eo.create=xa,eo.pointsToPath=we,Ur.geometryToLayer=ma,Ur.coordsToLatLng=xl,Ur.coordsToLatLngs=va,Ur.latLngToCoords=Cl,Ur.latLngsToCoords=ga,Ur.getFeature=ni,Ur.asFeature=ya,Ae.mergeOptions({boxZoom:!0});var kf=Er.extend({initialize:function(i){this._map=i,this._container=i._container,this._pane=i._panes.overlayPane,this._resetStateTimeout=0,i.on("unload",this._destroy,this)},addHooks:function(){Me(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){qe(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){Ke(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){this._resetStateTimeout!==0&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(i){if(!i.shiftKey||i.which!==1&&i.button!==1)return!1;this._clearDeferredResetState(),this._resetState(),Ui(),ol(),this._startPoint=this._map.mouseEventToContainerPoint(i),Me(document,{contextmenu:Nn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(i){this._moved||(this._moved=!0,this._box=$e("div","leaflet-zoom-box",this._container),Re(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(i);var s=new H(this._point,this._startPoint),d=s.getSize();ht(this._box,s.min),this._box.style.width=d.x+"px",this._box.style.height=d.y+"px"},_finish:function(){this._moved&&(Ke(this._box),at(this._container,"leaflet-crosshair")),qi(),al(),qe(document,{contextmenu:Nn,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(i){if(!(i.which!==1&&i.button!==1)&&(this._finish(),!!this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(l(this._resetState,this),0);var s=new X(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(s).fire("boxzoomend",{boxZoomBounds:s})}},_onKeyDown:function(i){i.keyCode===27&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});Ae.addInitHook("addHandler","boxZoom",kf),Ae.mergeOptions({doubleClickZoom:!0});var Nf=Er.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(i){var s=this._map,d=s.getZoom(),b=s.options.zoomDelta,P=i.originalEvent.shiftKey?d-b:d+b;s.options.doubleClickZoom==="center"?s.setZoom(P):s.setZoomAround(i.containerPoint,P)}});Ae.addInitHook("addHandler","doubleClickZoom",Nf),Ae.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var Df=Er.extend({addHooks:function(){if(!this._draggable){var i=this._map;this._draggable=new sn(i._mapPane,i._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),i.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),i.on("zoomend",this._onZoomEnd,this),i.whenReady(this._onZoomEnd,this))}Re(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){at(this._map._container,"leaflet-grab"),at(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var i=this._map;if(i._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var s=K(this._map.options.maxBounds);this._offsetLimit=ee(this._map.latLngToContainerPoint(s.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(s.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;i.fire("movestart").fire("dragstart"),i.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(i){if(this._map.options.inertia){var s=this._lastTime=+new Date,d=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(d),this._times.push(s),this._prunePositions(s)}this._map.fire("move",i).fire("drag",i)},_prunePositions:function(i){for(;this._positions.length>1&&i-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var i=this._map.getSize().divideBy(2),s=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=s.subtract(i).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(i,s){return i-(i-s)*this._viscosity},_onPreDragLimit:function(){if(!(!this._viscosity||!this._offsetLimit)){var i=this._draggable._newPos.subtract(this._draggable._startPos),s=this._offsetLimit;i.x<s.min.x&&(i.x=this._viscousLimit(i.x,s.min.x)),i.y<s.min.y&&(i.y=this._viscousLimit(i.y,s.min.y)),i.x>s.max.x&&(i.x=this._viscousLimit(i.x,s.max.x)),i.y>s.max.y&&(i.y=this._viscousLimit(i.y,s.max.y)),this._draggable._newPos=this._draggable._startPos.add(i)}},_onPreDragWrap:function(){var i=this._worldWidth,s=Math.round(i/2),d=this._initialWorldOffset,b=this._draggable._newPos.x,P=(b-s+d)%i+s-d,W=(b+s+d)%i-s-d,Y=Math.abs(P+d)<Math.abs(W+d)?P:W;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=Y},_onDragEnd:function(i){var s=this._map,d=s.options,b=!d.inertia||i.noInertia||this._times.length<2;if(s.fire("dragend",i),b)s.fire("moveend");else{this._prunePositions(+new Date);var P=this._lastPos.subtract(this._positions[0]),W=(this._lastTime-this._times[0])/1e3,Y=d.easeLinearity,re=P.multiplyBy(Y/W),oe=re.distanceTo([0,0]),ce=Math.min(d.inertiaMaxSpeed,oe),me=re.multiplyBy(ce/oe),xe=ce/(d.inertiaDeceleration*Y),Ne=me.multiplyBy(-xe/2).round();!Ne.x&&!Ne.y?s.fire("moveend"):(Ne=s._limitOffset(Ne,s.options.maxBounds),N(function(){s.panBy(Ne,{duration:xe,easeLinearity:Y,noMoveStart:!0,animate:!0})}))}}});Ae.addInitHook("addHandler","dragging",Df),Ae.mergeOptions({keyboard:!0,keyboardPanDelta:80});var Lf=Er.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(i){this._map=i,this._setPanDelta(i.options.keyboardPanDelta),this._setZoomDelta(i.options.zoomDelta)},addHooks:function(){var i=this._map._container;i.tabIndex<=0&&(i.tabIndex="0"),Me(i,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),qe(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var i=document.body,s=document.documentElement,d=i.scrollTop||s.scrollTop,b=i.scrollLeft||s.scrollLeft;this._map._container.focus(),window.scrollTo(b,d)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(i){var s=this._panKeys={},d=this.keyCodes,b,P;for(b=0,P=d.left.length;b<P;b++)s[d.left[b]]=[-1*i,0];for(b=0,P=d.right.length;b<P;b++)s[d.right[b]]=[i,0];for(b=0,P=d.down.length;b<P;b++)s[d.down[b]]=[0,i];for(b=0,P=d.up.length;b<P;b++)s[d.up[b]]=[0,-1*i]},_setZoomDelta:function(i){var s=this._zoomKeys={},d=this.keyCodes,b,P;for(b=0,P=d.zoomIn.length;b<P;b++)s[d.zoomIn[b]]=i;for(b=0,P=d.zoomOut.length;b<P;b++)s[d.zoomOut[b]]=-i},_addHooks:function(){Me(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){qe(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(i){if(!(i.altKey||i.ctrlKey||i.metaKey)){var s=i.keyCode,d=this._map,b;if(s in this._panKeys){if(!d._panAnim||!d._panAnim._inProgress)if(b=this._panKeys[s],i.shiftKey&&(b=z(b).multiplyBy(3)),d.options.maxBounds&&(b=d._limitOffset(z(b),d.options.maxBounds)),d.options.worldCopyJump){var P=d.wrapLatLng(d.unproject(d.project(d.getCenter()).add(b)));d.panTo(P)}else d.panBy(b)}else if(s in this._zoomKeys)d.setZoom(d.getZoom()+(i.shiftKey?3:1)*this._zoomKeys[s]);else if(s===27&&d._popup&&d._popup.options.closeOnEscapeKey)d.closePopup();else return;Nn(i)}}});Ae.addInitHook("addHandler","keyboard",Lf),Ae.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var Af=Er.extend({addHooks:function(){Me(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){qe(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(i){var s=of(i),d=this._map.options.wheelDebounceTime;this._delta+=s,this._lastMousePos=this._map.mouseEventToContainerPoint(i),this._startTime||(this._startTime=+new Date);var b=Math.max(d-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(l(this._performZoom,this),b),Nn(i)},_performZoom:function(){var i=this._map,s=i.getZoom(),d=this._map.options.zoomSnap||0;i._stop();var b=this._delta/(this._map.options.wheelPxPerZoomLevel*4),P=4*Math.log(2/(1+Math.exp(-Math.abs(b))))/Math.LN2,W=d?Math.ceil(P/d)*d:P,Y=i._limitZoom(s+(this._delta>0?W:-W))-s;this._delta=0,this._startTime=null,Y&&(i.options.scrollWheelZoom==="center"?i.setZoom(s+Y):i.setZoomAround(this._lastMousePos,s+Y))}});Ae.addInitHook("addHandler","scrollWheelZoom",Af);var i0=600;Ae.mergeOptions({tapHold:ge.touchNative&&ge.safari&&ge.mobile,tapTolerance:15});var If=Er.extend({addHooks:function(){Me(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){qe(this._map._container,"touchstart",this._onDown,this)},_onDown:function(i){if(clearTimeout(this._holdTimeout),i.touches.length===1){var s=i.touches[0];this._startPos=this._newPos=new q(s.clientX,s.clientY),this._holdTimeout=setTimeout(l(function(){this._cancel(),this._isTapValid()&&(Me(document,"touchend",wt),Me(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",s))},this),i0),Me(document,"touchend touchcancel contextmenu",this._cancel,this),Me(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function i(){qe(document,"touchend",wt),qe(document,"touchend touchcancel",i)},_cancel:function(){clearTimeout(this._holdTimeout),qe(document,"touchend touchcancel contextmenu",this._cancel,this),qe(document,"touchmove",this._onMove,this)},_onMove:function(i){var s=i.touches[0];this._newPos=new q(s.clientX,s.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(i,s){var d=new MouseEvent(i,{bubbles:!0,cancelable:!0,view:window,screenX:s.screenX,screenY:s.screenY,clientX:s.clientX,clientY:s.clientY});d._simulated=!0,s.target.dispatchEvent(d)}});Ae.addInitHook("addHandler","tapHold",If),Ae.mergeOptions({touchZoom:ge.touch,bounceAtZoomLimits:!0});var $f=Er.extend({addHooks:function(){Re(this._map._container,"leaflet-touch-zoom"),Me(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){at(this._map._container,"leaflet-touch-zoom"),qe(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(i){var s=this._map;if(!(!i.touches||i.touches.length!==2||s._animatingZoom||this._zooming)){var d=s.mouseEventToContainerPoint(i.touches[0]),b=s.mouseEventToContainerPoint(i.touches[1]);this._centerPoint=s.getSize()._divideBy(2),this._startLatLng=s.containerPointToLatLng(this._centerPoint),s.options.touchZoom!=="center"&&(this._pinchStartLatLng=s.containerPointToLatLng(d.add(b)._divideBy(2))),this._startDist=d.distanceTo(b),this._startZoom=s.getZoom(),this._moved=!1,this._zooming=!0,s._stop(),Me(document,"touchmove",this._onTouchMove,this),Me(document,"touchend touchcancel",this._onTouchEnd,this),wt(i)}},_onTouchMove:function(i){if(!(!i.touches||i.touches.length!==2||!this._zooming)){var s=this._map,d=s.mouseEventToContainerPoint(i.touches[0]),b=s.mouseEventToContainerPoint(i.touches[1]),P=d.distanceTo(b)/this._startDist;if(this._zoom=s.getScaleZoom(P,this._startZoom),!s.options.bounceAtZoomLimits&&(this._zoom<s.getMinZoom()&&P<1||this._zoom>s.getMaxZoom()&&P>1)&&(this._zoom=s._limitZoom(this._zoom)),s.options.touchZoom==="center"){if(this._center=this._startLatLng,P===1)return}else{var W=d._add(b)._divideBy(2)._subtract(this._centerPoint);if(P===1&&W.x===0&&W.y===0)return;this._center=s.unproject(s.project(this._pinchStartLatLng,this._zoom).subtract(W),this._zoom)}this._moved||(s._moveStart(!0,!1),this._moved=!0),k(this._animRequest);var Y=l(s._move,s,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=N(Y,this,!0),wt(i)}},_onTouchEnd:function(){if(!this._moved||!this._zooming){this._zooming=!1;return}this._zooming=!1,k(this._animRequest),qe(document,"touchmove",this._onTouchMove,this),qe(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))}});Ae.addInitHook("addHandler","touchZoom",$f),Ae.BoxZoom=kf,Ae.DoubleClickZoom=Nf,Ae.Drag=Df,Ae.Keyboard=Lf,Ae.ScrollWheelZoom=Af,Ae.TapHold=If,Ae.TouchZoom=$f,r.Bounds=H,r.Browser=ge,r.CRS=le,r.Canvas=Mf,r.Circle=wl,r.CircleMarker=pa,r.Class=j,r.Control=vr,r.DivIcon=Tf,r.DivOverlay=Sr,r.DomEvent=x_,r.DomUtil=__,r.Draggable=sn,r.Evented=G,r.FeatureGroup=Hr,r.GeoJSON=Ur,r.GridLayer=Qi,r.Handler=Er,r.Icon=ti,r.ImageOverlay=ba,r.LatLng=J,r.LatLngBounds=X,r.Layer=gr,r.LayerGroup=ei,r.LineUtil=A_,r.Map=Ae,r.Marker=ha,r.Mixin=R_,r.Path=ln,r.Point=q,r.PolyUtil=O_,r.Polygon=ri,r.Polyline=Vr,r.Popup=_a,r.PosAnimation=af,r.Projection=I_,r.Rectangle=Of,r.Renderer=qr,r.SVG=eo,r.SVGOverlay=Cf,r.TileLayer=ii,r.Tooltip=wa,r.Transformation=pe,r.Util=F,r.VideoOverlay=xf,r.bind=l,r.bounds=ee,r.canvas=Pf,r.circle=V_,r.circleMarker=H_,r.control=Xi,r.divIcon=J_,r.extend=o,r.featureGroup=F_,r.geoJSON=wf,r.geoJson=G_,r.gridLayer=e0,r.icon=j_,r.imageOverlay=Y_,r.latLng=ne,r.latLngBounds=K,r.layerGroup=W_,r.map=C_,r.marker=B_,r.point=z,r.polygon=q_,r.polyline=U_,r.popup=K_,r.rectangle=n0,r.setOptions=y,r.stamp=c,r.svg=Rf,r.svgOverlay=Z_,r.tileLayer=Ef,r.tooltip=Q_,r.transformation=ae,r.version=n,r.videoOverlay=X_;var o0=window.L;r.noConflict=function(){return window.L=o0,this},window.L=r})})(Zu,Zu.exports);var JN=Zu.exports;const Lr=R.getDefaultExportFromCjs(JN),eD=Object.freeze({usa:"united states",switzerland:"switzerland country",uk:"united kingdom"});function tD(e,t){const r=eD[e.toLowerCase()];return r&&(t[r]=e),r||e}function rD(e,t){return t[e.toLowerCase()]||e}const nD=(e,t)=>{const{app:r}=gt(),[n,o]=Q.useState([]),a=Q.useRef(e),l=Q.useCallback(()=>yr(exports,null,function*(){if(!r||!e)return;const u={},c=Pk(t),f=yield r.httpClient.post("api/v1/geo/locations",ie({locations:e.map(_=>({name:tD(_.name,u)}))},c&&{geoLevel:c})),p=a.current!==e;if(!f||p)return;const m=f.reduce((_,y)=>{const x=he(ie({},y),{name:rD(y.name,u)});return _[x.name]=x,_},{}),h=[],g=e.map(_=>(m[_.name]||h.push(_.name),ie(ie({},_),m[_.name]?{coordinates:m[_.name].latLng}:null)));h.length&&console.warn(`Locations "${h.join(", ")}" coordinates not found`),o(g)}),[r,o,e,t]);return Q.useEffect(()=>{e&&(a.current=e,e.some(c=>!!c.coordinates)?o(e):l())},[e,r,l,o]),n};function iD(e){let t=Number.MAX_VALUE,r=Number.MIN_VALUE;return e.forEach(n=>{isNaN(n)||(t=Math.min(t,n),r=Math.max(r,n))}),{min:t,max:r}}function oD(e,t=4,r=24){let n=0;const{min:o,max:a}=iD(e.map(({value:u})=>u)),l=r-t;return n=a-o,e.map(u=>n===0?t:(u.value-o)/n*l+t)}const aD=()=>{const{app:e}=gt(),[t,r]=Q.useState(null),n=Q.useCallback(()=>yr(exports,null,function*(){if(!e)return;const o=yield e.httpClient.get("api/v1/settings/system");o&&r(o.geo)}),[r,e]);return Q.useEffect(()=>{n()},[e,n]),t},sD="#00cee6",lD=R.createDataColoringFunction({getValueFromDataStructure:({colorValue:e})=>parseFloat(`${e}`),applyColorToDataStructure:(e,t)=>he(ie({},e),{color:t})});function uD(e,t){return t?lD(e.map(({colorValue:r})=>({colorValue:r})),t).map(({color:r})=>r):e.map(()=>sD)}function Gv(e){return{isLight:["hollow","filled-light"].includes(e),isFilled:["filled","filled-light"].includes(e)}}function Yv(e){const{color:t,size:r,fill:n,blur:o}=e,{isFilled:a}=Gv(n),c=o?{filled:.1,"filled-light":.1,hollow:.2,"hollow-bold":.25}[n]:{filled:.5,"filled-light":.2,hollow:.35,"hollow-bold":.9}[n];return{radius:r,fillOpacity:c,opacity:c,fillColor:a?t:"transparent",color:a?"transparent":t,stroke:!a,weight:a?0:2,customStyle:e}}function cD({coordinates:e,style:t}){const r=new Lr.CircleMarker({lat:e.lat,lng:e.lng},Yv(t));return r.on("mouseover",dD),r.on("mouseout",fD),r}function dD(e){const t=e.target,r=t.options.customStyle,{isFilled:n,isLight:o}=Gv(r.fill);return t.setStyle(n?{stroke:!0,weight:2,opacity:o?.5:.7,fillOpacity:o?.5:.7}:{weight:3,opacity:o?.6:1}),t}function fD(e){const t=e.target,r=t.options.customStyle;t.setStyle(Yv(r))}function hD(e){e.forEach(t=>t.remove())}function pD(e,t){const r=`
|
|
23
|
+
© <a href='https://www.mapbox.com/about/maps/'>Mapbox</a>
|
|
24
|
+
© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>
|
|
25
|
+
<strong>
|
|
26
|
+
<a href='https://www.mapbox.com/map-feedback/' target='_blank'>
|
|
27
|
+
Improve this map
|
|
28
|
+
</a>
|
|
29
|
+
</strong>`,n="© <a href='http://www.openstreetmap.org/copyright'>OpenStreetMap</a>",o=Lr.control.attribution();return t.indexOf("mapbox")>-1?o.addAttribution(r).addTo(e):t.indexOf("openstreetmap")>-1&&o.addAttribution(n).addTo(e),o}const mD=250;function Xv(e){const t=e.chart.animation.init.duration==="auto"?mD:e.chart.animation.init.duration;return{animate:t!==0,duration:t/1e3}}function vD(e,t,r={}){t.length&&e.fitBounds(t.map(n=>[n.getLatLng().lat,n.getLatLng().lng]),ie({maxZoom:4},r))}var gD="Expected a function";function yD(e,t,r){if(typeof e!="function")throw new TypeError(gD);return setTimeout(function(){e.apply(void 0,r)},t)}var bD=yD,_D=bD,wD=Ts,xD=R.toNumber_1,CD=wD(function(e,t,r){return _D(e,xD(t)||0,r)}),TD=CD;const ED=R.getDefaultExportFromCjs(TD);var Ha=(e=>(e[e.YES=0]="YES",e[e.NO=1]="NO",e[e.LOADING=2]="LOADING",e))(Ha||{});const SD="#9EA2AB",Wh="N/A",zl=10,MD=`
|
|
30
|
+
<svg
|
|
31
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
32
|
+
width="24"
|
|
33
|
+
height="24"
|
|
34
|
+
viewBox="0 0 24 24"
|
|
35
|
+
fill="green"
|
|
36
|
+
class="csdk-animate-spin"
|
|
37
|
+
>
|
|
38
|
+
<path
|
|
39
|
+
fillRule="evenodd"
|
|
40
|
+
clipRule="evenodd"
|
|
41
|
+
d="M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21Z"
|
|
42
|
+
fill="transparent"
|
|
43
|
+
fillOpacity="0.3"
|
|
44
|
+
/>
|
|
45
|
+
<path
|
|
46
|
+
fillRule="evenodd"
|
|
47
|
+
clipRule="evenodd"
|
|
48
|
+
d="M20 12C20 16.4183 16.4183 20 12 20C11.2844 20 10.5908 19.906 9.93078 19.7298C9.96227 19.5889 9.97888 19.4423 9.97888 19.2918C9.97888 18.1873 9.08345 17.2918 7.97888 17.2918C6.87431 17.2918 5.97888 18.1873 5.97888 19.2918C5.97888 20.3964 6.87431 21.2918 7.97888 21.2918C8.56576 21.2918 9.0936 21.0391 9.45946 20.6364C10.2652 20.8731 11.1178 21 12 21C16.9706 21 21 16.9706 21 12C21 7.02944 16.9706 3 12 3V4C16.4183 4 20 7.58172 20 12Z"
|
|
49
|
+
fill="#22C3C3"
|
|
50
|
+
/>
|
|
51
|
+
</svg>
|
|
52
|
+
`,PD=e=>{const t=`
|
|
53
|
+
<div>
|
|
54
|
+
<div>${R.spanSegment("...")}</div>
|
|
55
|
+
<div>${R.spanSegment(`Showing first ${zl} results`)}</div>
|
|
56
|
+
</div>
|
|
57
|
+
`;return`
|
|
58
|
+
<div>
|
|
59
|
+
${e.slice(0,zl).map(r=>`<div>${R.spanSegment(r)}</div>`).join("")}
|
|
60
|
+
${e.length>zl?t:""}
|
|
61
|
+
</div>
|
|
62
|
+
`},Wl=e=>`
|
|
63
|
+
<span style="padding-right: 20px">
|
|
64
|
+
${R.spanSegment(e,SD)}
|
|
65
|
+
</span>
|
|
66
|
+
`,RD=()=>`
|
|
67
|
+
<span style="verical-align: bottom">
|
|
68
|
+
${R.spanSegment(MD)}
|
|
69
|
+
</span>
|
|
70
|
+
`,ka=(e,t,r=1)=>{const n=R.formatTooltipValue(t.size,e.value,`${e.value}`),o=R.formatTooltipValue(t.colorBy,e.colorValue,`${e.colorValue}`),a=t.details&&R.isMeasureColumn(t.details)&&R.formatTooltipValue(t.details,e.details,`${e.details}`);return R.tooltipWrapper(`
|
|
71
|
+
<div style="text-align: left">
|
|
72
|
+
<div>${R.spanSegment(e.name)}</div>
|
|
73
|
+
<div class="csdk-scattermap-tooltip-row">
|
|
74
|
+
${t.size?Wl(R.getDataOptionTitle(t.size)):""}
|
|
75
|
+
${t.size?R.spanSegment(n):""}
|
|
76
|
+
</div>
|
|
77
|
+
<div class="csdk-scattermap-tooltip-row">
|
|
78
|
+
${t.colorBy?Wl(R.getDataOptionTitle(t.colorBy)):""}
|
|
79
|
+
${t.colorBy?R.spanSegment(o||Wh):""}
|
|
80
|
+
</div>
|
|
81
|
+
<div class="csdk-scattermap-tooltip-row">
|
|
82
|
+
${(r===2||r===0)&&t.details?Wl(R.getDataOptionTitle(t.details)):""}
|
|
83
|
+
${r===2?RD():""}
|
|
84
|
+
${r===0&&t.details&&R.isMeasureColumn(t.details)?R.spanSegment(a||Wh):""}
|
|
85
|
+
</div>
|
|
86
|
+
<div>
|
|
87
|
+
${r===0&&t.details&&!R.isMeasureColumn(t.details)?PD(e.details):""}
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
`)},OD=600,kD=11,ND=({dataOptions:e,dataSource:t,filters:r=[]})=>{const{app:n}=gt(),o=Q.useCallback(l=>yr(exports,null,function*(){if(!n)return[];const u=e.locations.map((p,m)=>{const h=R.translateCategoryToAttribute(p),g=Mk(l)[m];return R.members(h,[g])}),c={dataSource:t,dimensions:[e.details],filters:R.mergeFilters(r,u),count:kD};return(yield Bo(c,n)).rows.map(([p])=>p.text)}),[n,e,t,r]);return Q.useCallback(l=>{if(!e.details||e.details&&!R.isMeasureColumn(e.details)&&!t)return{content:ka(l,e)};if(R.isMeasureColumn(e.details))return{content:ka(l,e,Ha.YES)};const u=new Promise(f=>ED(f,OD)),c=Promise.all([o(l.name),u]).then(([f])=>ka(he(ie({},l),{details:f}),e,Ha.YES));return{content:ka(l,e,Ha.LOADING),postponedContent:c}},[e,t,o])},DD=({chartData:e,dataOptions:t,dataSource:r,filters:n=[],designOptions:o,onDataPointClick:a})=>{const{locations:l}=e,u=aD(),{themeSettings:c}=jt(),f=nD(l,t.locationLevel),{filters:p}=R.getFilterListAndRelations(n),m=ND({dataOptions:t,dataSource:r,filters:p}),h=Q.useRef(null),g=Q.useRef(null),_=Q.useMemo(()=>oD(f,t.size?o.markers.size.minSize:o.markers.size.defaultSize,t.size?o.markers.size.maxSize:o.markers.size.defaultSize),[f,t,o]),y=Q.useMemo(()=>{var C;return uD(f,(C=t.colorBy)==null?void 0:C.color)},[f,t]),x=Q.useRef([]),S=Q.useRef(Lr.layerGroup([])),E=Q.useRef(null),T=Q.useRef(null);return Q.useEffect(()=>{h.current&&!g.current&&(g.current=Lr.map(h.current,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,worldCopyJump:!0}),S.current.addTo(g.current),g.current.fitWorld())},[]),Q.useEffect(()=>{x.current&&(hD(x.current),x.current=[]),f&&(f.forEach((C,w)=>{if(!C.coordinates)return;const M=cD({coordinates:C.coordinates,style:{color:y[w],size:_[w],fill:o.markers.fill,blur:!!C.blur}});x.current.push(M),M.addTo(S.current),a&&M.on("click",O=>{a(Rk(C),O.originalEvent)}),M.bindTooltip(()=>{const{content:O,postponedContent:D}=m(C);return D==null||D.then(A=>M.setTooltipContent(A)),O})}),vD(g.current,x.current,Xv(c)))},[f,y,_,o,c,m,a]),Q.useEffect(()=>{var C;u&&(E.current&&E.current.remove(),E.current=Lr.tileLayer(u.maps_api_provider,{zoomOffset:-1,tileSize:512}),g.current&&(E.current.addTo(g.current),(C=T.current)==null||C.remove(),T.current=pD(g.current,u.maps_api_provider)))},[u]),V.jsx("div",{className:"csdk-map-container",ref:h,style:{width:"100%",height:"100%"}})},LD=e=>e.type==="scattermap",AD=e=>"locations"in e,ID=e=>"markers"in e,$D=e=>!!e.chartData&&LD(e.chartData)&&AD(e.dataOptions)&&ID(e.designOptions),zD=(e,{onDataPointClick:t,onDataPointContextMenu:r,onDataPointsSelected:n}={})=>{var a;const o={chart:{events:{}},plotOptions:{series:{point:{events:{click:()=>{}}}}}};return n&&(o.chart.zoomType="x",n=n,["scatter","bubble"].includes((a=e.chart)==null?void 0:a.type)&&(o.chart.zoomType="xy",n=n),o.chart.events.selection=l=>{l.preventDefault();const{xAxis:u,yAxis:c,originalEvent:f}=l,p=WD(u[0],c[0]);p.forEach(m=>{m.state=""}),n(p.map(Fl),f)}),t&&(o.plotOptions.series.point.events.click=l=>{l.point.state="hover",t(Fl(l.point),l)}),r&&(o.plotOptions.series.point.events.contextmenu=l=>{l.preventDefault(),r(Fl(l.point),l)}),R.merge$1(e,o)},Fl=e=>{var t,r;switch(((t=e.series)==null?void 0:t.initialType)||((r=e.series)==null?void 0:r.type)){case"bubble":case"scatter":return jD(e);case"funnel":return BD(e);case"boxplot":return HD(e);default:return FD(e)}},WD=(e,t)=>{const r=e.axis.series.flatMap(o=>o.points).filter(({x:o})=>o>=e.min&&o<=e.max);if(!t)return r;const n=t.axis.series.flatMap(o=>o.points).filter(({y:o})=>o>=t.min&&o<=t.max);return r.filter(o=>n.includes(o))},FD=e=>{var t,r,n,o,a,l,u,c;return{value:(t=e.custom)==null?void 0:t.rawValue,categoryValue:(n=(r=e.custom)==null?void 0:r.xValue)==null?void 0:n[0],seriesValue:(u=(l=(a=(o=e.series)==null?void 0:o.options)==null?void 0:a.custom)==null?void 0:l.rawValue)==null?void 0:u[0],categoryDisplayValue:(c=e.name)!=null?c:e.category}},jD=e=>{var t,r;return{x:e.x,y:e.y,size:e.z,breakByPoint:(t=e.custom)==null?void 0:t.maskedBreakByPoint,breakByColor:(r=e.custom)==null?void 0:r.maskedBreakByColor}},BD=e=>({value:e.options.custom.number1,categoryValue:e.options.name,categoryDisplayValue:e.name}),HD=e=>({boxMin:e.options.q1,boxMedian:e.options.median,boxMax:e.options.q3,whiskerMin:e.options.low,whiskerMax:e.options.high,categoryValue:e.category,categoryDisplayValue:e.category}),VD=(e,t)=>{var h;if(!t)return e;const r={backgroundColor:t.chart.backgroundColor},n={style:{fontFamily:t.typography.fontFamily}},o={itemStyle:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},l={series:{dataLabels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}}},u={activeDataLabelStyle:{color:t.chart.textColor},breadcrumbs:{buttonTheme:{fill:t.general.brandColor,stroke:t.general.brandColor,style:{color:t.general.primaryButtonTextColor},states:{hover:{fill:t.general.primaryButtonHoverColor,stroke:t.general.primaryButtonHoverColor}}}}},c={chart:r,tooltip:n,legend:o,plotOptions:l,drilldown:u},f={labels:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}},title:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},p={color:t==null?void 0:t.chart.backgroundColor,label:{style:{color:t.chart.textColor,fontFamily:t.typography.fontFamily}}},m=R.merge(e,c);return m.xAxis=(h=m.xAxis)==null?void 0:h.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>R.merge(y,he(ie({},p),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),R.merge(g,f)}),m.yAxis&&(m.yAxis=m.yAxis.map(g=>{var _;return g.plotBands=(_=g.plotBands)==null?void 0:_.map(y=>R.merge(y,he(ie({},p),{color:y.color||(t==null?void 0:t.chart.backgroundColor)}))),R.merge(g,f)})),m},UD=600,qD=300,GD=(e,t,r)=>{const n={duration:t.chart.animation.init.duration==="auto"?UD:t.chart.animation.init.duration},o={duration:t.chart.animation.redraw.duration==="auto"?qD:t.chart.animation.redraw.duration};return R.merge(e,{accessibility:{enabled:r},chart:{animation:o},plotOptions:{series:{animation:n}},boost:{useGPUTranslations:!0,usePreAllocated:!0}})},YD="_alert_box_10ttx_1",XD="_content_10ttx_8",ZD="_alert_10ttx_1",jl={alert_box:YD,content:XD,alert:ZD},KD=({alerts:e=[]})=>V.jsx("div",{className:jl.alert_box,children:V.jsx("div",{className:jl.content,children:[...new Set(e)].map((t,r)=>V.jsx("div",{className:jl.alert,children:t},`alert-${r}`))})});var QD=R._baseIsEqual;function JD(e,t,r){r=typeof r=="function"?r:void 0;var n=r?r(e,t):void 0;return n===void 0?QD(e,t,void 0,r):!!n}var e3=JD;const Zv=R.getDefaultExportFromCjs(e3);var Kv={exports:{}};(function(e,t){(function(r,n){e.exports=n(Q)})(typeof self!="undefined"?self:R.commonjsGlobal,function(r){return function(n){function o(l){if(a[l])return a[l].exports;var u=a[l]={i:l,l:!1,exports:{}};return n[l].call(u.exports,u,u.exports,o),u.l=!0,u.exports}var a={};return o.m=n,o.c=a,o.d=function(l,u,c){o.o(l,u)||Object.defineProperty(l,u,{configurable:!1,enumerable:!0,get:c})},o.n=function(l){var u=l&&l.__esModule?function(){return l.default}:function(){return l};return o.d(u,"a",u),u},o.o=function(l,u){return Object.prototype.hasOwnProperty.call(l,u)},o.p="",o(o.s=0)}([function(n,o,a){function l(){return l=Object.assign?Object.assign.bind():function(E){for(var T=1;T<arguments.length;T++){var C=arguments[T];for(var w in C)Object.prototype.hasOwnProperty.call(C,w)&&(E[w]=C[w])}return E},l.apply(this,arguments)}function u(E){return m(E)||p(E)||f(E)||c()}function c(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
91
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function f(E,T){if(E){if(typeof E=="string")return h(E,T);var C=Object.prototype.toString.call(E).slice(8,-1);return C==="Object"&&E.constructor&&(C=E.constructor.name),C==="Map"||C==="Set"?Array.from(E):C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C)?h(E,T):void 0}}function p(E){if(typeof Symbol!="undefined"&&E[Symbol.iterator]!=null||E["@@iterator"]!=null)return Array.from(E)}function m(E){if(Array.isArray(E))return h(E)}function h(E,T){(T==null||T>E.length)&&(T=E.length);for(var C=0,w=new Array(T);C<T;C++)w[C]=E[C];return w}function g(E){"@babel/helpers - typeof";return(g=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})(E)}Object.defineProperty(o,"__esModule",{value:!0}),a.d(o,"HighchartsReact",function(){return S});var _=a(1),y=a.n(_),x=typeof window!="undefined"?_.useLayoutEffect:_.useEffect,S=Object(_.memo)(Object(_.forwardRef)(function(E,T){var C=Object(_.useRef)(),w=Object(_.useRef)(),M=Object(_.useRef)(E.constructorType),O=Object(_.useRef)(E.highcharts);return x(function(){function D(){var $=E.highcharts||(typeof window=="undefined"?"undefined":g(window))==="object"&&window.Highcharts,N=E.constructorType||"chart";$?$[N]?E.options?w.current=$[N](C.current,E.options,E.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(w.current){if(E.allowChartUpdate!==!1)if(E.constructorType!==M.current||E.highcharts!==O.current)M.current=E.constructorType,O.current=E.highcharts,D();else if(!E.immutable&&w.current){var A;(A=w.current).update.apply(A,[E.options].concat(u(E.updateArgs||[!0,!0])))}else D()}else D()},[E.options,E.allowChartUpdate,E.updateArgs,E.containerProps,E.highcharts,E.constructorType]),x(function(){return function(){w.current&&(w.current.destroy(),w.current=null)}},[]),Object(_.useImperativeHandle)(T,function(){return{get chart(){return w.current},container:C}},[]),y.a.createElement("div",l({},E.containerProps,{ref:C}))}));o.default=S},function(n,o){n.exports=r}])})})(Kv);var t3=Kv.exports;const r3=R.getDefaultExportFromCjs(t3);function Qc(e){const t=Q.useRef(void 0);return Q.useEffect(()=>{t.current=e},[e]),t.current}const n3=Q.memo(function({options:t}){var p,m,h,g,_,y;const r=Qc(t),n=Q.useCallback(x=>{var E,T,C,w,M,O,D,A;const S=t;!((w=(C=(T=(E=S==null?void 0:S.plotOptions)==null?void 0:E.series)==null?void 0:T.point)==null?void 0:C.events)!=null&&w.click)&&!((A=(D=(O=(M=S==null?void 0:S.plotOptions)==null?void 0:M.series)==null?void 0:O.point)==null?void 0:D.events)!=null&&A.contextmenu)&&(x.container.onclick=null)},[t]),o=x=>x==null?void 0:x.some(({data:S})=>S.some(E=>!!E.marker)),a=(r==null?void 0:r.xAxis)&&(t==null?void 0:t.xAxis)&&((p=r==null?void 0:r.xAxis[0])==null?void 0:p.type)!==((m=t==null?void 0:t.xAxis[0])==null?void 0:m.type),l=!!r&&((h=r==null?void 0:r.navigator)==null?void 0:h.enabled)!==((g=t==null?void 0:t.navigator)==null?void 0:g.enabled),u=o(r==null?void 0:r.series)&&!o(t==null?void 0:t.series),c=!!r&&((_=r==null?void 0:r.chart)==null?void 0:_.type)!==((y=t==null?void 0:t.chart)==null?void 0:y.type),f=a||l||c||u;return V.jsx(r3,{highcharts:R.Highcharts,options:R.cloneDeep(t),containerProps:{style:{height:"100%",width:"100%"}},immutable:f,callback:n})},(e,t)=>Zv(e,t,(r,n)=>R.isFunction(r)&&R.isFunction(n)?r.toString()===n.toString():void 0)),i3=e=>e,o3=({chartType:e,chartData:t,dataOptions:r,designOptions:n,onDataPointClick:o,onDataPointContextMenu:a,onDataPointsSelected:l,onBeforeRender:u=i3})=>{const{app:c}=gt(),{t:f}=ms(),p=[],m=Q.useCallback((_,y)=>Wc(_,y,c==null?void 0:c.settings.locale,c==null?void 0:c.settings.dateConfig),[]),{themeSettings:h}=jt(),g=Q.useMemo(()=>{var C;const{options:_,alerts:y}=R.highchartsOptionsService(t,e,n,r,f,h,m);p.push(...y);const x=((C=c==null?void 0:c.settings.accessibilityConfig)==null?void 0:C.enabled)||!1,S=GD(_,h,x),E=zD(S,{onDataPointClick:o,onDataPointContextMenu:a,onDataPointsSelected:l}),T=VD(E,h);return u(T)},[e,t,r,n,h,o,a,u,f]);return g&&V.jsxs("div",{"aria-label":"chart-root",style:{display:"flex",justifyContent:"center",height:"100%",width:"100%"},children:[!!p.length&&V.jsx(KD,{alerts:p}),V.jsx(n3,{options:g})]})},a3=[...R.CARTESIAN_CHART_TYPES,...R.CATEGORICAL_CHART_TYPES,...R.SCATTER_CHART_TYPES,...R.BOXPLOT_CHART_TYPES,...R.RANGE_CHART_TYPES],Qv=e=>a3.includes(e),s3=e=>!!e.chartType&&Qv(e.chartType)&&!!e.chartData,l3="_wrapper_g0ngm_1",u3="_title_g0ngm_7",c3="_image_g0ngm_18",Bl={wrapper:l3,title:u3,image:c3},d3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='50.5'%20y='558.5'%20fill='%23E4E4E4'%20width='466'%20height='2'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M487.5,531.5h-410v-68.9l0.3-0.3l144-155.7l104.2,88.1l161.6-179.5V531.5z%20M79.5,529.5h406V220.4%20L326.1,397.5l-104.2-88.2l-142.4,154V529.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",f3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='25.5'%20y='558.5'%20fill='%23E4E4E4'%20width='516'%20height='2'/%3e%3cpath%20fill='%23E4E4E4'%20d='M518.9,188.1c-18.1,0-32.8,14.7-32.8,32.8c0,10,4.5,19,11.7,25.1l-129,162.8c-5.5-4.1-12.2-6.5-19.6-6.5%20c-10.4,0-19.7,4.9-25.7,12.5l-96.4-71.5c3.7-5.3,5.9-11.8,5.9-18.7c0-18.1-14.7-32.8-32.8-32.8c-18.1,0-32.8,14.7-32.8,32.8%20c0,9.2,3.8,17.5,9.9,23.5L69.5,465.4c-5.8-5-13.2-8-21.4-8c-18.1,0-32.8,14.7-32.8,32.8S30,523,48.1,523s32.8-14.7,32.8-32.8%20c0-9.2-3.8-17.5-9.9-23.5l107.8-117.4c5.8,5,13.2,8,21.4,8c10.4,0,19.7-4.9,25.7-12.5l96.4,71.5c-3.7,5.3-5.9,11.8-5.9,18.7%20c0,18.1,14.7,32.8,32.8,32.8s32.8-14.7,32.8-32.8c0-10-4.5-19-11.7-25.1l129-162.8c5.5,4.1,12.2,6.5,19.6,6.5%20c18.1,0,32.8-14.7,32.8-32.8S537,188.1,518.9,188.1z%20M48.1,521c-17,0-30.8-13.8-30.8-30.8s13.8-30.8,30.8-30.8%20c7.7,0,14.7,2.8,20.1,7.5c0.5,0.4,1,0.9,1.5,1.4c5.7,5.6,9.3,13.4,9.3,22C78.9,507.2,65,521,48.1,521z%20M200.2,355.4%20c-7.7,0-14.7-2.8-20.1-7.5c-0.5-0.4-1-0.9-1.5-1.4c-5.7-5.6-9.3-13.4-9.3-22c0-17,13.8-30.8,30.8-30.8c17,0,30.8,13.8,30.8,30.8%20c0,6.5-2,12.5-5.5,17.5c-0.4,0.5-0.8,1.1-1.2,1.6C218.7,350.8,210,355.4,200.2,355.4z%20M349.3,465.9c-17,0-30.8-13.8-30.8-30.8%20c0-6.5,2-12.5,5.5-17.5c0.4-0.5,0.8-1.1,1.2-1.6c5.6-7.1,14.4-11.7,24.1-11.7c6.9,0,13.2,2.3,18.3,6.1c0.5,0.4,1.1,0.8,1.6,1.2%20c6.7,5.7,10.9,14.1,10.9,23.5C380.1,452,366.3,465.9,349.3,465.9z%20M518.9,251.7c-6.9,0-13.2-2.3-18.3-6.1c-0.5-0.4-1.1-0.8-1.6-1.2%20c-6.7-5.7-10.9-14.1-10.9-23.5c0-17,13.8-30.8,30.8-30.8s30.8,13.8,30.8,30.8S535.9,251.7,518.9,251.7z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",h3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='64.5'%20y='201.5'%20fill='%23E4E4E4'%20width='2'%20height='381'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M447.5,560.5h-357v-60h357V560.5z%20M92.5,558.5h353v-56h-353V558.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M292.5,468.5h-202v-60h202V468.5z%20M92.5,466.5h198v-56h-198V466.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M526.5,377.5h-436v-60h436V377.5z%20M92.5,375.5h432v-56h-432V375.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M368.5,285.5h-278v-59h278V285.5z%20M92.5,283.5h274v-55h-274V283.5z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",p3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3crect%20x='78'%20y='558.5'%20fill='%23E4E4E4'%20width='410'%20height='2'/%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M463,533.5h-61v-207h61V533.5z%20M404,531.5h57v-203h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M363,533.5h-61v-152h61V533.5z%20M304,531.5h57v-148h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M263,533.5h-61v-316h61V533.5z%20M204,531.5h57v-312h-57V531.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M163,533.5h-62v-248h62V533.5z%20M103,531.5h58v-244h-58V531.5z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",m3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M298.5,607.2c-12.6,0-25.3-1.1-37.6-3.2l-1-0.2l29.6-198l-27.1,61l-20.3-12.1l45.2-52.6L126.8,524.6%20l-0.6-0.8c-12.1-15.5-21.8-32.7-29-50.9l-0.4-0.9l0.9-0.4l181.4-70.1l-149.6,20.9v-47.1l158.4,22.1L97.5,323.8l0.4-0.9%20c7.3-18,17.1-34.9,29.3-50.4l0.6-0.8L282,389.2l-76.9-89.5l34.5-20.2l49.9,112.2l-29.6-198l1-0.2c12.4-2.1,25-3.2,37.6-3.2%20c8,0,16.1,0.4,23.9,1.3l1,0.1l-0.2,1l-29.7,198.8l83.2-187.1l0.9,0.3c19.5,7.5,37.7,17.7,54.3,30.3l0.8,0.6L301.2,389.2l132.5-101%20l28,44.9l-166,64.2L511.5,367l0.1,1c1.6,10.2,2.4,20.6,2.4,30.8c0,10.2-0.8,20.6-2.4,30.8l-0.1,1l-207.1-29l95.5,36.9l-18.5,28.9%20l-85.5-65.1l108.5,126.3l-45.5,23.8l-65.1-146.5l29.9,199.9l-1,0.1C314.4,606.8,306.4,607.2,298.5,607.2z%20M262.2,602.2%20c12,2,24.2,3,36.3,3c7.4,0,15.1-0.4,22.7-1.2l-29.7-198.5L262.2,602.2z%20M295.3,404.7l64.5,144.9l41.4-21.7L295.3,404.7l0.1,0.1%20L295.3,404.7z%20M99.4,473.1c7,17.4,16.3,33.8,27.8,48.7l158.3-120.6L99.4,473.1z%20M297.8,401.2l83.1,63.3l16-25L297.8,401.2z%20M245.2,454.3l16.3,9.7l26.4-59.4L245.2,454.3z%20M298.8,398.8l211,29.5c1.4-9.8,2.2-19.7,2.2-29.5c0-9.8-0.7-19.7-2.2-29.5%20L298.8,398.8z%20M131.5,377.6V420l152.2-21.2L131.5,377.6z%20M433.2,291.1L297.8,394.2l160.9-62.2L433.2,291.1z%20M100.1,322.6%20l185.2,71.6L128.2,274.5C116.6,289.3,107.2,305.5,100.1,322.6z%20M377.9,207.1L295.3,393l0,0l0,0L430,236.1%20C414,224.1,396.5,214.3,377.9,207.1z%20M287.9,393L287.9,393l-49.2-110.6l-30.5,17.8L287.9,393L287.9,393z%20M262.2,195.3L291.6,392%20l29.6-198.5c-7.5-0.8-15.1-1.2-22.7-1.2C286.4,192.3,274.2,193.4,262.2,195.3z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",v3="data:image/svg+xml,%3csvg%20width='616'%20height='559'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%3e%3cpath%20fill='none'%20stroke='%23E4E4E4'%20id='svg_1'%20stroke-width='2'%20d='m97.44781,156.99998l419.1042,0l-24.42354,59.30477l-370.25707,0l-24.42359,-59.30477zm29.93028,72.6737l359.24347,0l-24.42354,59.30458l-310.39633,0l-24.42361,-59.30458zm54.35357,131.97891l-24.4232,-59.30521l299.38335,0l-24.42422,59.30521l-250.53593,0zm220.60617,72.6737l-190.67573,0l-24.42491,-59.30458l239.52554,0l-24.42491,59.30458zm-3.92305,72.6737l-182.82963,0l1.26325,-59.30458l180.30313,0l1.26325,59.30458z'/%3e%3c/g%3e%3c/svg%3e",g3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M480.4,506.2l-162.3-106L509.4,431l-0.2,1c-4.3,26.5-13.8,51.2-28.4,73.4L480.4,506.2z%20M327,403.7%20l152.7,99.8c13.9-21.5,23.1-45.3,27.3-70.8L327,403.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M275.3,586.8C170.9,586.8,86,502,86,397.7c0-50.6,19.6-98.1,55.1-133.8c35.6-35.7,83-55.5,133.5-55.5h1%20v188.7l158.3,103.1l-0.5,0.8C398.1,554.8,339.1,586.8,275.3,586.8z%20M273.5,210.7c-49.6,0.3-96.1,19.7-131.1,54.8%20C107.3,300.7,88,347.7,88,397.7c0,103.2,84,187.1,187.4,187.1c62.7,0,120.9-31.4,155.7-83.9L273.5,398.3V210.7z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M482.8,408.7l-1-0.2l-187.3-30V188.5h1c74.8,0,142.7,44.1,173.1,112.2c15.2,34.1,20.2,71.1,14.4,107%20L482.8,408.7z%20M296.5,376.9l184.6,29.5c5.5-35.2,0.5-71.4-14.4-104.9c-29.9-67.1-96.6-110.5-170.2-110.9V376.9z'/%3e%3c/g%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",y3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cpolygon%20fill='%23E4E4E4'%20points='80,575%2080,233%2078,233%2078,575%2078,577%2080,577%20497,577%20497,575%20'/%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M374.7,480.1c-29.7,0-53.9-24.2-53.9-53.9c0-29.7,24.2-53.9,53.9-53.9s53.9,24.2,53.9,53.9%20C428.6,455.9,404.4,480.1,374.7,480.1z%20M374.7,374.3c-28.6,0-51.9,23.3-51.9,51.9s23.3,51.9,51.9,51.9s51.9-23.3,51.9-51.9%20S403.3,374.3,374.7,374.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M264.2,395.2c-22,0-40-17.9-40-40c0-22,17.9-40,40-40s40,17.9,40,40C304.2,377.3,286.2,395.2,264.2,395.2z%20M264.2,317.3c-20.9,0-38,17-38,38c0,20.9,17,38,38,38s38-17,38-38C302.2,334.3,285.1,317.3,264.2,317.3z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M413.7,351.2c-38.8,0-70.3-31.6-70.3-70.3c0-38.8,31.6-70.3,70.3-70.3s70.3,31.5,70.3,70.3%20C484,319.6,452.4,351.2,413.7,351.2z%20M413.7,212.5c-37.7,0-68.3,30.7-68.3,68.3c0,37.7,30.7,68.3,68.3,68.3%20c37.7,0,68.3-30.7,68.3-68.3C482,243.2,451.3,212.5,413.7,212.5z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M228.9,489C228.9,489,228.9,489,228.9,489c-15.8,0-29.7-10.1-34.5-25.2c-3-9.2-2.2-19,2.3-27.7%20c4.4-8.6,11.9-15,21.2-18c3.6-1.2,7.4-1.8,11.1-1.8c15.8,0,29.7,10.1,34.5,25.2c3,9.2,2.2,19.1-2.3,27.7c-4.4,8.6-11.9,15-21.2,18%20C236.4,488.4,232.6,489,228.9,489z%20M228.9,418.4c-3.6,0-7.1,0.6-10.5,1.7c-8.7,2.8-15.8,8.8-20,17c-4.2,8.1-4.9,17.4-2.1,26.1%20c4.6,14.2,17.7,23.8,32.6,23.8c3.6,0,7.1-0.6,10.5-1.7c8.7-2.8,15.8-8.8,20-17c4.2-8.1,4.9-17.4,2.1-26.2%20C256.9,428,243.8,418.4,228.9,418.4z'/%3e%3c/g%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M147.5,548C147.5,548,147.5,548,147.5,548c-9.4,0-17.6-6-20.4-14.9c-3.6-11.3,2.6-23.4,13.9-27%20c2.1-0.7,4.4-1,6.6-1c9.3,0,17.6,6,20.4,14.9c3.6,11.3-2.6,23.3-13.9,27C152,547.7,149.7,548,147.5,548z%20M147.5,507.1%20c-2,0-4,0.3-6,0.9c-10.2,3.3-15.9,14.2-12.6,24.4c2.6,8.1,10,13.5,18.5,13.5c0,0,0,0,0,0c2,0,4-0.3,6-0.9%20c10.2-3.3,15.8-14.3,12.6-24.5C163.4,512.5,156,507.1,147.5,507.1z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",b3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3cg%3e%3cpath%20fill='%23E4E4E4'%20d='M307.6,337.5h-28.6l-3.4,41.7h28.6L307.6,337.5z%20M278.4,376.7l3-36.7h23.5l-3,36.7H278.4z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M262.9,415.9h12l2.4-28.6h23.5l-2.4,28.6h12l2.4-28.6h18.6v-10.5h-17.5l3-36.7h17.7v-10.5h-16.8l2.4-28.6%20h-12l-2.4,28.6h-23.5l2.4-28.6h-12l-2.4,28.6h-18.5V340h17.5l-3,36.7h-17.7v10.5h16.8L262.9,415.9z%20M251.1,384.7v-5.5h17.5%20l3.4-41.7h-17.8V332h18.3l2.4-28.6h7l-2.4,28.6h28.6l2.4-28.6h7l-2.4,28.6h17v5.5h-17.5l-3.4,41.7H329v5.5h-18.4l-2.4,28.6h-7%20l2.4-28.6h-28.6l-2.4,28.6h-7l2.4-28.6H251.1z'/%3e%3cpath%20fill='%23E4E4E4'%20d='M84,269.1v178.8h396.6V269.1H84z%20M478.2,445.4H86.5V271.6h391.6V445.4z'/%3e%3c/g%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",_3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2018.1.1,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566.5%20700.5'%20enable-background='new%200%200%20566.5%20700.5'%20xml:space='preserve'%3e%3cg%20id='Layer_2'%3e%3crect%20x='-5057'%20y='-6963'%20fill='transparent'%20stroke='%23000000'%20stroke-miterlimit='10'%20width='16156.4'%20height='16115.1'/%3e%3c/g%3e%3cg%20id='Layer_1'%3e%3cpath%20fill='%23E4E4E4'%20d='M399,207h-2H284h-2H170h-2H53v35v4v31v2v31v2v30v2v31v2v30v2v31v2v31v2v34h115h2h112h2h113h2h116v-34v-2%20v-31v-2v-31v-2v-30v-2v-31v-2v-30v-2v-31v-2v-31v-4v-35H399z%20M397,211v31H284v-31H397z%20M282,279v31H170v-31H282z%20M170,277v-31h112%20v31H170z%20M282,312v30H170v-30H282z%20M282,344v31H170v-31H282z%20M282,377v30H170v-30H282z%20M282,409v31H170v-31H282z%20M282,442v31H170%20v-31H282z%20M284,442h113v31H284V442z%20M284,440v-31h113v31H284z%20M284,407v-30h113v30H284z%20M284,375v-31h113v31H284z%20M284,342v-30h113%20v30H284z%20M284,310v-31h113v31H284z%20M284,277v-31h113v31H284z%20M282,211v31H170v-31H282z%20M57,211h111v31H57V211z%20M57,246h111v31H57%20V246z%20M57,279h111v31H57V279z%20M57,312h111v30H57V312z%20M57,344h111v31H57V344z%20M57,377h111v30H57V377z%20M57,409h111v31H57V409z%20M57,442h111v31H57V442z%20M57,505v-30h111v30H57z%20M170,505v-30h112v30H170z%20M284,505v-30h113v30H284z%20M511,505H399v-30h112V505z%20M511,473H399v-31h112V473z%20M511,440H399v-31h112V440z%20M511,407H399v-30h112V407z%20M511,375H399v-31h112V375z%20M511,342H399v-30h112%20V342z%20M511,310H399v-31h112V310z%20M511,277H399v-31h112V277z%20M399,242v-31h112v31H399z'/%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3c/g%3e%3c/g%3e%3c/svg%3e",w3="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2017.1.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3c!DOCTYPE%20svg%20PUBLIC%20'-//W3C//DTD%20SVG%201.1//EN'%20'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3e%3csvg%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20566%20700'%20enable-background='new%200%200%20566%20700'%20xml:space='preserve'%3e%3cg%20id='Layer_1'%3e%3c/g%3e%3cg%20id='specctr'%3e%3cg%20id='Dimensions'%3e%3cpath%20fill='%23E4E4E4'%20d='M52,202.5v200v2v104h462v-306H52z%20M510,402.5H225v-196h285V402.5z%20M56,206.5h167v196H56V206.5z%20M56,404.5%20h298v100H56V404.5z%20M356,504.5v-100h154v100H356z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",Fh={area:d3,line:f3,bar:h3,column:p3,polar:m3,funnel:v3,pie:g3,scatter:y3,indicator:b3,table:_3,treemap:w3};function x3(e){var r;return(r=Fh[e])!=null?r:Fh["bar"]}const Jc=({iconType:e})=>{var u;const{themeSettings:t}=jt(),r=Q.useRef(null),[n,o]=Q.useState({width:null,height:null});Q.useEffect(()=>{r.current&&o({width:r.current.offsetWidth,height:r.current.offsetHeight})},[]);const a=x3(e),{t:l}=ms();return V.jsxs("div",{ref:r,className:Bl.wrapper,children:[V.jsx("div",{className:Bl.title,style:{fontFamily:(u=t.typography)==null?void 0:u.fontFamily,fontSize:C3(n.width,n.height)},children:l("chartNoData")}),a?V.jsx("img",{className:Bl.image,src:a}):null]})};function C3(e,t){return!e||!t?"18px":e<300?`${Math.max(Math.sqrt(e*e+t*t)*.045,18)}px`:`${Math.min(Math.max(t*.09,18),60)}px`}const jh=(e,t,r)=>({width:(t==null?void 0:t.width)||(e==null?void 0:e.width)||r.width,height:(t==null?void 0:t.height)||(e==null?void 0:e.height)||r.height}),Vo=({children:e,defaultSize:t,size:r,rerenderOnResize:n=!1,useContentSize:o,onSizeChange:a})=>{const l=Q.useRef(null),[u,c]=Q.useState(),f=Q.useCallback(()=>{var E,T;const S={width:(E=l.current)==null?void 0:E.offsetWidth,height:(T=l.current)==null?void 0:T.offsetHeight};c(C=>{const w=(C==null?void 0:C.width)===0&&S.width===t.width,M=(C==null?void 0:C.height)===0&&S.height===t.height,O={width:w?C.width:S.width,height:M?C.height:S.height};return Pi(C,O)?C:(a==null||a(jh(O,r,t)),O)})},[l,r,t,a,c]);Q.useLayoutEffect(()=>{f()},[f]),Q.useEffect(()=>(window.addEventListener("resize",f),()=>window.removeEventListener("resize",f)),[f]);const p={width:r!=null&&r.width&&!(o!=null&&o.width)?`${r.width}px`:"100%",height:r!=null&&r.height&&!(o!=null&&o.height)?`${r.height}px`:"100%"},m=jh(u,r,t),h=(u==null?void 0:u.width)||(u==null?void 0:u.width)===void 0,g=(u==null?void 0:u.height)||(u==null?void 0:u.width)===void 0,_={width:h||o!=null&&o.width?"100%":`${m.width}px`,height:g||o!=null&&o.height?"100%":`${m.height}px`,position:"relative"},y=o!=null&&o.width||o!=null&&o.height?{position:"static",width:"100%",height:"100%"}:{position:"absolute",top:0,right:0,bottom:0,left:0},x=n?`${m==null?void 0:m.width}${m==null?void 0:m.height}`:"";return V.jsx("div",{style:p,ref:l,children:V.jsx("div",{style:_,children:V.jsx("div",{style:y,children:m&&(typeof e=="function"?e(m):e)})},x)})},Jv={width:400,height:500},ed=e=>R.isTable(e)?{width:400,height:500}:R.isIndicator(e)?{width:200,height:200}:{width:400,height:400},T3=25,td=(e,{hasHeader:t}={})=>{const r=e==="pivot"?Jv:ed(e);return t&&(r.height=r.height+T3),r},E3=[{officialName:"Afghanistan",allNames:["af","afġānistān","afghanistan","afg"],id:"AFG"},{id:"ALA",officialName:"Åland Islands",allNames:["ax","ala","åland islands","aland islands"]},{officialName:"Albania",allNames:["al","shqipëri","shqipëria","shqipnia","albania","alb"],id:"ALB"},{officialName:"Algeria",allNames:["dz","dzayer","algérie","algeria","dza"],id:"DZA"},{officialName:"American Samoa",allNames:["as","amerika sāmoa","amelika sāmoa","sāmoa amelika","american samoa","asm"],id:"ASM"},{id:"AND",officialName:"Andorra",allNames:["ad","and","andorra"]},{officialName:"Angola",allNames:["ao","república de angola","ʁɛpublika de an'ɡɔla","angola","ago"],id:"AGO"},{officialName:"Anguilla",allNames:["ai","anguilla","aia"],id:"AIA"},{id:"ATA",officialName:"Antarctica",allNames:["aq","ata","antarctica"]},{officialName:"Antigua and Barbuda",allNames:["ag","antigua and barbuda","atg"],id:"ATG"},{officialName:"Argentina",allNames:["ar","argentine republic","república argentina","argentina","arg"],id:"ARG"},{officialName:"Armenia",allNames:["am","hayastan","republic of armenia","հայաստանի հանրապետություն","armenia","arm"],id:"ARM"},{officialName:"Aruba",allNames:["aw","aruba","abw"],id:"ABW"},{officialName:"Australia",allNames:["au","australia","aus"],id:"AUS"},{officialName:"Austria",allNames:["at","österreich","osterreich","oesterreich","austria","aut"],id:"AUT"},{officialName:"Azerbaijan",allNames:["az","republic of azerbaijan","azərbaycan respublikası","azerbaijan","aze","azerbaijan republic"],id:"AZE"},{officialName:"Bahrain",allNames:["bh","kingdom of bahrain","mamlakat al-baḥrayn","bahrain","bhr"],id:"BHR"},{officialName:"Bangladesh",allNames:["bd","people's republic of bangladesh","gônôprôjatôntri bangladesh","bangladesh","bgd"],id:"BGD"},{officialName:"Barbados",allNames:["bb","barbados","brb"],id:"BRB"},{officialName:"Belarus",allNames:["by","bielaruś","republic of belarus","белоруссия","республика беларусь","belorussiya","respublika belarus’","belarus","blr"],id:"BLR"},{officialName:"Belgium",allNames:["be","belgië","belgie","belgien","belgique","kingdom of belgium","koninkrijk belgië","royaume de belgique","königreich belgien","belgium","bel"],id:"BEL"},{officialName:"Belize",allNames:["bz","belize","blz"],id:"BLZ"},{officialName:"Benin",allNames:["bj","republic of benin","république du bénin","benin","ben"],id:"BEN"},{officialName:"Bermuda",allNames:["bm","the islands ofbermuda","the bermudas","somers isles","bermuda","bmu"],id:"BMU"},{officialName:"Bhutan",allNames:["bt","kingdom of bhutan","bhutan","btn"],id:"BTN"},{officialName:"Bolivia",allNames:["bo","buliwya","wuliwya","plurinational state of bolivia","estado plurinacional de bolivia","buliwya mamallaqta","wuliwya suyu","tetã volívia","bolivia","bol","plurinational state of"],id:"BOL"},{id:"BES",officialName:"Bonaire",allNames:["bq","bes","bonaire","sint eustatius and saba","caribbean netherlands"]},{officialName:"Bosnia and Herzegovina",allNames:["ba","bosnia-herzegovina","босна и херцеговина","bosnia and herzegovina","bih"],id:"BIH"},{officialName:"Botswana",allNames:["bw","republic of botswana","lefatshe la botswana","botswana","bwa"],id:"BWA"},{id:"BVT",officialName:"Bouvet Island",allNames:["bv","bvt","bouvet island"]},{officialName:"Brazil",allNames:["br","brasil","federative republic of brazil","república federativa do brasil","brazil","bra"],id:"BRA"},{officialName:"British Indian Ocean Territory",allNames:["io","british indian ocean territory","iot"],id:"IOT"},{officialName:"Brunei",allNames:["bn","nation of brunei","the abode of peace","brunei","brn","brunei darussalam"],id:"BRN"},{officialName:"Bulgaria",allNames:["bg","republic of bulgaria","република българия","bulgaria","bgr"],id:"BGR"},{officialName:"Burkina Faso",allNames:["bf","burkina faso","bfa"],id:"BFA"},{officialName:"Burundi",allNames:["bi","republic of burundi","republika y'uburundi","république du burundi","burundi","bdi"],id:"BDI"},{officialName:"Cambodia",allNames:["kh","kingdom of cambodia","cambodia","khm"],id:"KHM"},{officialName:"Cameroon",allNames:["cm","republic of cameroon","république du cameroun","cameroon","cmr"],id:"CMR"},{officialName:"Canada",allNames:["ca","canada","can"],id:"CAN"},{officialName:"Cape Verde",allNames:["cv","republic of cabo verde","república de cabo verde","cape verde","cpv"],id:"CPV"},{officialName:"Cayman Islands",allNames:["ky","cayman islands","cym"],id:"CYM"},{officialName:"Central African Republic",allNames:["cf","central african republic","république centrafricaine","central african republic","caf"],id:"CAF"},{officialName:"Chad",allNames:["td","tchad","republic of chad","république du tchad","chad","tcd"],id:"TCD"},{officialName:"Chile",allNames:["cl","republic of chile","república de chile","chile","chl"],id:"CHL"},{officialName:"China",allNames:["cn","zhōngguó","zhongguo","zhonghua","people's republic of china","中华人民共和国","zhōnghuá rénmín gònghéguó","china","chn"],id:"CHN"},{officialName:"Christmas Island",allNames:["cx","territory of christmas island","christmas island","cxr"],id:"CXR"},{officialName:"Cocos (Keeling) Islands",allNames:["cc","territoryof the cocos (keeling) islands","keeling islands","cocos (keeling) islands","cck","cocos islands","cocos [keeling] islands"],id:"CCK"},{officialName:"Colombia",allNames:["co","republic of colombia","república de colombia","colombia","col"],id:"COL"},{officialName:"Comoros",allNames:["km","union of the comoros","union des comores","udzima wa komori","al-ittiḥād al-qumurī","comoros","com"],id:"COM"},{officialName:"Cook Islands",allNames:["ck","kūki 'āirani","cook islands","cok"],id:"COK"},{officialName:"Costa Rica",allNames:["cr","republic of costa rica","república de costa rica","costa rica","cri"],id:"CRI"},{officialName:"Croatia",allNames:["hr","hrvatska","republic of croatia","republika hrvatska","croatia","hrv","croatia, republic of","croatia democratic republic of the"],id:"HRV"},{officialName:"Cuba",allNames:["cu","republic of cuba","república de cuba","cuba","cub"],id:"CUB"},{id:"CUW",officialName:"Curaçao",allNames:["cw","cuw","curaçao","curacao"]},{officialName:"Cyprus",allNames:["cy","kýpros","kıbrıs","republic of cyprus","κυπριακή δημοκρατία","kıbrıs cumhuriyeti","cyprus","cyp"],id:"CYP"},{officialName:"Czech Republic",allNames:["cz","česká republika","česko","czech republic","cze"],id:"CZE"},{officialName:"Democratic Republic of the Congo",allNames:["cd","dr congo","congo-kinshasa","drc","democratic republic of the congo","cod","congo (kinshasa)","the democratic republic of the congo","congo, the democratic republic of the","congo [drc]","congo, dem. rep."],id:"COD"},{officialName:"Denmark",allNames:["dk","danmark","kingdom of denmark","kongeriget danmark","denmark","dnk"],id:"DNK"},{officialName:"Djibouti",allNames:["dj","jabuuti","gabuuti","republic of djibouti","république de djibouti","gabuutih ummuuno","jamhuuriyadda jabuuti","djibouti","dji"],id:"DJI"},{officialName:"Dominica",allNames:["dm","dominique","wai‘tu kubuli","commonwealth of dominica","dominica","dma"],id:"DMA"},{officialName:"Dominican Republic",allNames:["do","dominican republic","dom"],id:"DOM"},{officialName:"East Timor",allNames:["tl","east timor","democratic republic of timor-leste","república democrática de timor-leste","repúblika demokrátika timór-leste","east timor","tls","timor-leste"],id:"TLS"},{officialName:"Ecuador",allNames:["ec","republic of ecuador","república del ecuador","ecuador","ecu"],id:"ECU"},{officialName:"Egypt",allNames:["eg","arab republic of egypt","egypt","egy"],id:"EGY"},{officialName:"El Salvador",allNames:["sv","republic of el salvador","república de el salvador","el salvador","slv"],id:"SLV"},{officialName:"Equatorial Guinea",allNames:["gq","republic of equatorial guinea","república de guinea ecuatorial","république de guinée équatoriale","república da guiné equatorial","equatorial guinea","gnq"],id:"GNQ"},{officialName:"Eritrea",allNames:["er","state of eritrea","ሃገረ ኤርትራ","dawlatiritriyá","ʾertrā","iritriyā","eritrea","eri"],id:"ERI"},{officialName:"Estonia",allNames:["ee","eesti","republic of estonia","eesti vabariik","estonia","est"],id:"EST"},{officialName:"Ethiopia",allNames:["et","ʾītyōṗṗyā","federal democratic republic of ethiopia","የኢትዮጵያ ፌዴራላዊ ዲሞክራሲያዊ ሪፐብሊክ","ethiopia","eth"],id:"ETH"},{officialName:"Falkland Islands",allNames:["fk","islas malvinas","falkland islands","flk","falkland islands (malvinas)","falkland islands (islas malvinas)","falkland islands [malvinas]","falkland islands [islas malvinas]"],id:"FLK"},{officialName:"Faroe Islands",allNames:["fo","føroyar","færøerne","faroe islands","fro"],id:"FRO"},{officialName:"Federated States of Micronesia",allNames:["fm","federated states of micronesia","federated states of micronesia","fsm","micronesia","federated states of"],id:"FSM"},{officialName:"Fiji",allNames:["fj","viti","republic of fiji","matanitu ko viti","fijī gaṇarājya","fiji","fji"],id:"FJI"},{officialName:"Finland",allNames:["fi","suomi","republic of finland","suomen tasavalta","republiken finland","finland","fin"],id:"FIN"},{officialName:"France",allNames:["fr","french republic","république française","france","fra"],id:"FRA"},{officialName:"French Guiana",allNames:["gf","guiana","guyane","french guiana","guf"],id:"GUF"},{officialName:"French Polynesia",allNames:["pf","polynésie française","french polynesia","pōrīnetia farāni","french polynesia","pyf"],id:"PYF"},{officialName:"French Southern and Antarctic Lands",allNames:["tf","french southern andantarctic lands","atf","french southern territories"],id:"ATF"},{officialName:"Gabon",allNames:["ga","gabonese republic","république gabonaise","gabon","gab","gabon republic"],id:"GAB"},{officialName:"Georgia",allNames:["ge","sakartvelo","georgia","geo"],id:"GEO"},{officialName:"Germany",allNames:["de","federal republic of germany","bundesrepublik deutschland","germany","deu"],id:"DEU"},{officialName:"Ghana",allNames:["gh","ghana","gha"],id:"GHA"},{officialName:"Gibraltar",allNames:["gi","gibraltar","gib"],id:"GIB"},{officialName:"Greece",allNames:["gr","elláda","hellenic republic","ελληνική δημοκρατία","greece","grc"],id:"GRC"},{officialName:"Greenland",allNames:["gl","grønland","greenland","grl"],id:"GRL"},{officialName:"Grenada",allNames:["gd","grenada","grd"],id:"GRD"},{officialName:"Guadeloupe",allNames:["gp","gwadloup","guadeloupe","glp"],id:"GLP"},{officialName:"Guam",allNames:["gu","guåhån","guam","gum"],id:"GUM"},{officialName:"Guatemala",allNames:["gt","guatemala","gtm"],id:"GTM"},{officialName:"Guernsey",allNames:["gg","bailiwick of guernsey","bailliage de guernesey","guernsey","ggy"],id:"GGY"},{officialName:"Guinea",allNames:["gn","republic of guinea","république de guinée","guinea","gin"],id:"GIN"},{officialName:"Guinea-Bissau",allNames:["gw","republic of guinea-bissau","república da guiné-bissau","guinea-bissau","gnb"],id:"GNB"},{officialName:"Guyana",allNames:["gy","co-operative republic of guyana","guyana","guy"],id:"GUY"},{officialName:"Haiti",allNames:["ht","republic of haiti","république d'haïti","repiblik ayiti","haiti","hti"],id:"HTI"},{officialName:"Heard Island and McDonald Islands",allNames:["hm","heard island and mcdonald islands","hmd","heard and mcdonald islands"],id:"HMD"},{officialName:"Honduras",allNames:["hn","republic of honduras","república de honduras","honduras","hnd"],id:"HND"},{officialName:"Hong Kong",allNames:["hk","香港","hongkong","hkg","hong kong","hong kong, china"],id:"HKG"},{officialName:"Hungary",allNames:["hu","hungary","hun"],id:"HUN"},{officialName:"Iceland",allNames:["is","island","republic of iceland","lýðveldið ísland","iceland","isl"],id:"ISL"},{officialName:"India",allNames:["in","bhārat","republic of india","bharat ganrajya","india","ind"],id:"IND"},{officialName:"Indonesia",allNames:["id","republic of indonesia","republik indonesia","indonesia","idn"],id:"IDN"},{officialName:"Iran",allNames:["ir","islamic republic of iran","jomhuri-ye eslāmi-ye irān","iran","irn","islamic republic of"],id:"IRN"},{officialName:"Iraq",allNames:["iq","republic of iraq","jumhūriyyat al-‘irāq","iraq","irq"],id:"IRQ"},{officialName:"Ireland",allNames:["ie","éire","republic of ireland","poblacht na héireann","ireland","irl"],id:"IRL"},{officialName:"Isle of Man",allNames:["im","ellan vannin","mann","mannin","isle of man","imn"],id:"IMN"},{officialName:"Israel",allNames:["il","state of israel","medīnat yisrā'el","israel","isr"],id:"ISR"},{officialName:"Italy",allNames:["it","italian republic","repubblica italiana","italy","ita"],id:"ITA"},{officialName:"Ivory Coast",allNames:["ci","ivory coast","republic of côte d'ivoire","république de côte d'ivoire","ivory coast","civ","côte d'ivoire","cote d'ivoire","cote divoire","cã´te d'ivoire","cote d'lvoire"],id:"CIV"},{officialName:"Jamaica",allNames:["jm","jamaica","jam"],id:"JAM"},{officialName:"Japan",allNames:["jp","nippon","nihon","japan","jpn"],id:"JPN"},{officialName:"Jersey",allNames:["je","bailiwick of jersey","bailliage de jersey","bailliage dé jèrri","jersey","jey"],id:"JEY"},{officialName:"Jordan",allNames:["jo","hashemite kingdomof jordan","al-mamlakah al-urdunīyah al-hāshimīyah","jordan","jor"],id:"JOR"},{officialName:"Kazakhstan",allNames:["kz","qazaqstan","казахстан","republic of kazakhstan","қазақстан республикасы","qazaqstan respublïkası","республика казахстан","respublika kazakhstan","kazakhstan","kaz"],id:"KAZ"},{officialName:"Kenya",allNames:["ke","republic of kenya","jamhuri ya kenya","kenya","ken"],id:"KEN"},{officialName:"Kiribati",allNames:["ki","republic of kiribati","ribaberiki kiribati","kiribati","kir"],id:"KIR"},{officialName:"Kuwait",allNames:["kw","state of kuwait","dawlat al-kuwait","kuwait","kwt"],id:"KWT"},{officialName:"Kyrgyzstan",allNames:["kg","киргизия","kyrgyz republic","кыргыз республикасы","kyrgyz respublikasy","kyrgyzstan","kgz"],id:"KGZ"},{officialName:"Laos",allNames:["la","lao","lao people's democratic republic","sathalanalat paxathipatai paxaxon lao","laos","lao"],id:"LAO"},{officialName:"Latvia",allNames:["lv","republic of latvia","latvijas republika","latvia","lva"],id:"LVA"},{officialName:"Lebanon",allNames:["lb","lebanese republic","al-jumhūrīyah al-libnānīyah","lebanon","lbn"],id:"LBN"},{officialName:"Lesotho",allNames:["ls","kingdom of lesotho","muso oa lesotho","lesotho","lso"],id:"LSO"},{officialName:"Liberia",allNames:["lr","republic of liberia","liberia","lbr"],id:"LBR"},{officialName:"Libya",allNames:["ly","state of libya","dawlat libya","libya","lby"],id:"LBY"},{officialName:"Liechtenstein",allNames:["li","principality of liechtenstein","fürstentum liechtenstein","liechtenstein","lie"],id:"LIE"},{officialName:"Lithuania",allNames:["lt","republic of lithuania","lietuvos respublika","lithuania","ltu"],id:"LTU"},{officialName:"Luxembourg",allNames:["lu","grand duchy of luxembourg","grand-duché de luxembourg","großherzogtum luxemburg","groussherzogtum lëtzebuerg","luxembourg","lux"],id:"LUX"},{officialName:"Macau",allNames:["mo","澳门","macao special administrative region of the people's republic of china","中華人民共和國澳門特別行政區","região administrativa especial de macau da república popular da china","macau","mac","macao","macao, china","macau, china"],id:"MAC"},{officialName:"Madagascar",allNames:["mg","republic of madagascar","repoblikan'i madagasikara","république de madagascar","madagascar","mdg"],id:"MDG"},{officialName:"Malawi",allNames:["mw","republic of malawi","malawi","mwi"],id:"MWI"},{officialName:"Malaysia",allNames:["my","malaysia","mys"],id:"MYS"},{officialName:"Maldives",allNames:["mv","maldive islands","republic of the maldives","dhivehi raajjeyge jumhooriyya","maldives","mdv"],id:"MDV"},{officialName:"Mali",allNames:["ml","republic of mali","république du mali","mali","mli"],id:"MLI"},{officialName:"Malta",allNames:["mt","republic of malta","repubblika ta' malta","malta","mlt"],id:"MLT"},{officialName:"Marshall Islands",allNames:["mh","republic of the marshall islands","aolepān aorōkin m̧ajeļ","marshall islands","mhl"],id:"MHL"},{officialName:"Martinique",allNames:["mq","martinique","mtq"],id:"MTQ"},{officialName:"Mauritania",allNames:["mr","islamic republic of mauritania","al-jumhūriyyah al-ʾislāmiyyah al-mūrītāniyyah","mauritania","mrt"],id:"MRT"},{officialName:"Mauritius",allNames:["mu","republic of mauritius","république de maurice","mauritius","mus"],id:"MUS"},{officialName:"Mayotte",allNames:["yt","department of mayotte","département de mayotte","mayotte","myt"],id:"MYT"},{officialName:"Mexico",allNames:["mx","mexicanos","united mexican states","estados unidos mexicanos","mexico","mex"],id:"MEX"},{officialName:"Moldova",allNames:["md","republic of moldova","republica moldova","moldova","mda","republic of"],id:"MDA"},{officialName:"Monaco",allNames:["mc","principality of monaco","principauté de monaco","monaco","mco"],id:"MCO"},{officialName:"Mongolia",allNames:["mn","mongolia","mng"],id:"MNG"},{id:"MNE",officialName:"Montenegro",allNames:["me","mne","montenegro"]},{officialName:"Montserrat",allNames:["ms","montserrat","msr"],id:"MSR"},{officialName:"Morocco",allNames:["ma","kingdom of morocco","al-mamlakah al-maġribiyah","morocco","mar","morroco"],id:"MAR"},{officialName:"Mozambique",allNames:["mz","republic of mozambique","república de moçambique","mozambique","moz"],id:"MOZ"},{id:"MMR",officialName:"Myanmar",allNames:["mm","mmr","myanmar","myanmar (burma)","myanmar [burma]","burma"]},{officialName:"Namibia",allNames:["na","namibië","republic of namibia","namibia","nam"],id:"NAM"},{officialName:"Nauru",allNames:["nr","naoero","pleasant island","republic of nauru","ripublik naoero","nauru","nru"],id:"NRU"},{officialName:"Nepal",allNames:["np","federal democratic republic of nepal","loktāntrik ganatantra nepāl","nepal","npl"],id:"NPL"},{officialName:"Netherlands",allNames:["nl","holland","nederland","netherlands","nld","the netherlands"],id:"NLD"},{officialName:"New Caledonia",allNames:["nc","new caledonia","ncl"],id:"NCL"},{officialName:"New Zealand",allNames:["nz","aotearoa","new zealand","nzl"],id:"NZL"},{officialName:"Nicaragua",allNames:["ni","republic of nicaragua","república de nicaragua","nicaragua","nic"],id:"NIC"},{officialName:"Niger",allNames:["ne","nijar","republic of niger","république du niger","niger","ner"],id:"NER"},{officialName:"Nigeria",allNames:["ng","nijeriya","naíjíríà","federal republic of nigeria","nigeria","nga"],id:"NGA"},{officialName:"Niue",allNames:["nu","niue","niu"],id:"NIU"},{officialName:"Norfolk Island",allNames:["nf","territory of norfolk island","teratri of norf'k ailen","norfolk island","nfk"],id:"NFK"},{officialName:"North Korea",allNames:["kp","democratic people's republic of korea","조선민주주의인민공화국","chosŏn minjujuŭi inmin konghwaguk","north korea","prk","korea, democratic people's republic of","korea, north"],id:"PRK"},{officialName:"Northern Mariana Islands",allNames:["mp","commonwealth of the northern mariana islands","sankattan siha na islas mariånas","northern mariana islands","mnp"],id:"MNP"},{officialName:"Norway",allNames:["no","norge","noreg","kingdom of norway","kongeriket norge","kongeriket noreg","norway","nor"],id:"NOR"},{officialName:"Oman",allNames:["om","sultanate of oman","salṭanat ʻumān","oman","omn"],id:"OMN"},{officialName:"Pakistan",allNames:["pk","pākistān","islamic republic of pakistan","islāmī jumhūriya'eh pākistān","pakistan","pak"],id:"PAK"},{officialName:"Palau",allNames:["pw","republic of palau","beluuer a belau","palau","plw"],id:"PLW"},{id:"PSE",officialName:"Palestinian Authority",allNames:["ps","pse","palestinian authority","palestinian territory"]},{officialName:"Panama",allNames:["pa","republic of panama","república de panamá","panama","pan"],id:"PAN"},{officialName:"Papua New Guinea",allNames:["pg","independent state of papua new guinea","independen stet bilong papua niugini","papua new guinea","png"],id:"PNG"},{officialName:"Paraguay",allNames:["py","republic of paraguay","república del paraguay","tetã paraguái","paraguay","pry"],id:"PRY"},{officialName:"Peru",allNames:["pe","republic of peru","república del perú","peru","per"],id:"PER"},{officialName:"Philippines",allNames:["ph","republic of the philippines","repúblika ng pilipinas","philippines","phl"],id:"PHL"},{officialName:"Pitcairn Islands",allNames:["pn","pitcairn henderson ducie and oeno islands","pitcairn islands","pcn","pitcairn"],id:"PCN"},{officialName:"Poland",allNames:["pl","republic of poland","rzeczpospolita polska","poland","pol"],id:"POL"},{officialName:"Portugal",allNames:["pt","portuguesa","portuguese republic","república portuguesa","portugal","prt"],id:"PRT"},{officialName:"Puerto Rico",allNames:["pr","commonwealth of puerto rico","estado libre asociado de puerto rico","puerto rico","pri"],id:"PRI"},{officialName:"Qatar",allNames:["qa","state of qatar","dawlat qaṭar","qatar","qat"],id:"QAT"},{officialName:"Republic of Macedonia",allNames:["mk","republic of macedonia","република македонија","republic of macedonia","mkd","macedonia","macedonia (fyrom)","macedonia [fyrom]","the former yugoslav republic of","the former yugoslav republic of macedonia"],id:"MKD"},{officialName:"Republic of the Congo",allNames:["cg","congo-brazzaville","republic of the congo","cog","congo (brazzaville)","congo [republic]","congo","congo, rep."],id:"COG"},{officialName:"Réunion",allNames:["re","reunion","réunion","reu","rã©union"],id:"REU"},{officialName:"Romania",allNames:["ro","rumania","roumania","românia","romania","rou"],id:"ROU"},{officialName:"Russia",allNames:["ru","rossiya","russian federation","российская федерация","rossiyskaya federatsiya","russia","rus"],id:"RUS"},{officialName:"Rwanda",allNames:["rw","republic of rwanda","repubulika y'u rwanda","république du rwanda","rwanda","rwa"],id:"RWA"},{id:"BLM",officialName:"Saint Barthélemy",allNames:["bl","blm","saint barthélemy","saint barthelemy","st barthelemy"]},{officialName:"Saint Helena",allNames:["sh","saint helena","shn","st helena","ascension and tristan da cunha"],id:"SHN"},{officialName:"Saint Kitts and Nevis",allNames:["kn","federation of saint christopher and nevis","saint kitts and nevis","kna","st kitts and nevis","saint kitts-nevis","st kitts-nevis"],id:"KNA"},{officialName:"Saint Lucia",allNames:["lc","saint lucia","lca","st lucia"],id:"LCA"},{officialName:"Saint Pierre and Miquelon",allNames:["pm","collectivité territoriale de saint-pierre-et-miquelon","saint pierre andmiquelon","spm","st pierre and miquelon","saint pierre and miquelon","st. pierre and miquelon"],id:"SPM"},{officialName:"Saint Vincent and the Grenadines",allNames:["vc","saint vincent and the grenadines","vct","st vincent and the grenadines"],id:"VCT"},{officialName:"Samoa",allNames:["ws","independent state of samoa","malo saʻoloto tutoʻatasi o sāmoa","samoa","wsm","western samoa"],id:"WSM"},{officialName:"San Marino",allNames:["sm","republic of san marino","repubblica di san marino","san marino","smr"],id:"SMR"},{officialName:"São Tomé and Príncipe",allNames:["st","democratic republic of são tomé and príncipe","república democrática de são tomé e príncipe","são tomé and príncipe","stp","sao tome and principe","sã£o tomã© and prãncipe"],id:"STP"},{officialName:"Saudi Arabia",allNames:["sa","kingdom of saudi arabia","al-mamlakah al-‘arabiyyah as-su‘ūdiyyah","saudi arabia","sau"],id:"SAU"},{officialName:"Senegal",allNames:["sn","republic of senegal","république du sénégal","senegal","sen"],id:"SEN"},{id:"SRB",officialName:"Serbia",allNames:["rs","srb","serbia"]},{officialName:"Seychelles",allNames:["sc","republic of seychelles","repiblik sesel","république des seychelles","seychelles","syc"],id:"SYC"},{officialName:"Sierra Leone",allNames:["sl","republic of sierra leone","sierra leone","sle"],id:"SLE"},{officialName:"Singapore",allNames:["sg","singapura","republik singapura","新加坡共和国","singapore","sgp"],id:"SGP"},{officialName:"Slovakia",allNames:["sk","slovak republic","slovenská republika","slovakia","svk","slovakia (slovak republic)"],id:"SVK"},{officialName:"Slovenia",allNames:["si","republic of slovenia","republika slovenija","slovenia","svn"],id:"SVN"},{officialName:"Solomon Islands",allNames:["sb","solomon islands","slb"],id:"SLB"},{officialName:"Somalia",allNames:["so","aṣ-ṣūmāl","federal republic of somalia","jamhuuriyadda federaalka soomaaliya","jumhūriyyat aṣ-ṣūmāl al-fiderāliyya","somalia","som"],id:"SOM"},{officialName:"South Africa",allNames:["za","rsa","suid-afrika","republic of south africa","south africa","zaf"],id:"ZAF"},{officialName:"South Georgia",allNames:["gs","south georgia and the south sandwich islands","south georgia","sgs"],id:"SGS"},{officialName:"South Korea",allNames:["kr","republic of korea","south korea","kor","korea, republic of","korea, south"],id:"KOR"},{officialName:"South Sudan",allNames:["ss","south sudan","ssd"],id:"SSD"},{officialName:"Spain",allNames:["es","kingdom of spain","reino deespaña","spain","esp"],id:"ESP"},{officialName:"Sri Lanka",allNames:["lk","ilaṅkai","democraticsocialist republic of sri lanka","sri lanka","lka"],id:"LKA"},{id:"SXM",officialName:"St Maarten",allNames:["sx","sxm","st maarten","sint maarten","sint maarten (dutch part)","saint-martin (pays-bas)"]},{id:"MAF",officialName:"St Martin (French part)",allNames:["mf","maf","st martin (french part)","saint martin (french part)","saint-martin (france)"]},{officialName:"Sudan",allNames:["sd","republic of the sudan","jumhūrīyat as-sūdān","sudan","sdn"],id:"SDN"},{officialName:"Suriname",allNames:["sr","sarnam","sranangron","republic of suriname","republiek suriname","suriname","sur"],id:"SUR"},{officialName:"Svalbard and Jan Mayen",allNames:["sj","svalbard and jan mayen islands","svalbard and jan mayen","sjm"],id:"SJM"},{officialName:"Swaziland",allNames:["sz","weswatini","swatini","ngwane","kingdom of swaziland","umbuso waseswatini","swaziland","swz"],id:"SWZ"},{officialName:"Sweden",allNames:["se","kingdom of sweden","konungariket sverige","sweden","swe"],id:"SWE"},{officialName:"Switzerland",allNames:["ch","swiss confederation","schweiz","suisse","svizzera","svizra","switzerland","che"],id:"CHE"},{officialName:"Syria",allNames:["sy","syrian arab republic","al-jumhūrīyah al-ʻarabīyah as-sūrīyah","syria","syr"],id:"SYR"},{officialName:"Taiwan",allNames:["tw","táiwān","republic of china","中華民國","zhōnghuá mínguó","taiwan","twn","taiwan, province of china"],id:"TWN"},{officialName:"Tajikistan",allNames:["tj","toçikiston","republic of tajikistan","ҷумҳурии тоҷикистон","çumhuriyi toçikiston","tajikistan","tjk"],id:"TJK"},{officialName:"Tanzania",allNames:["tz","united republic of tanzania","jamhuri ya muungano wa tanzania","tanzania","tza","united republic of"],id:"TZA"},{officialName:"Thailand",allNames:["th","prathet","thai","kingdom of thailand","ราชอาณาจักรไทย","ratcha anachak thai","thailand","tha"],id:"THA"},{officialName:"The Bahamas",allNames:["bs","commonwealth of the bahamas","the bahamas","bhs","bahamas"],id:"BHS"},{officialName:"The Gambia",allNames:["gm","republic of the gambia","the gambia","gmb","gambia"],id:"GMB"},{officialName:"Togo",allNames:["tg","togolese","togolese republic","république togolaise","togo","tgo"],id:"TGO"},{officialName:"Tokelau",allNames:["tk","tokelau","tkl"],id:"TKL"},{officialName:"Tonga",allNames:["to","tonga","ton"],id:"TON"},{officialName:"Trinidad and Tobago",allNames:["tt","republic of trinidad and tobago","trinidad and tobago","tto"],id:"TTO"},{officialName:"Tunisia",allNames:["tn","republic of tunisia","al-jumhūriyyah at-tūnisiyyah","tunisia","tun"],id:"TUN"},{officialName:"Turkey",allNames:["tr","turkiye","republic of turkey","türkiye cumhuriyeti","turkey","tur"],id:"TUR"},{officialName:"Turkmenistan",allNames:["tm","turkmenistan","tkm"],id:"TKM"},{id:"TCA",officialName:"Turks and Caicos Islands",allNames:["tc","tca","turks and caicos islands"]},{officialName:"Tuvalu",allNames:["tv","tuvalu","tuv"],id:"TUV"},{officialName:"Uganda",allNames:["ug","republic of uganda","jamhuri ya uganda","uganda","uga"],id:"UGA"},{officialName:"Ukraine",allNames:["ua","ukrayina","ukraine","ukr"],id:"UKR"},{officialName:"United Arab Emirates",allNames:["ae","uae","united arab emirates","are"],id:"ARE"},{officialName:"United Kingdom",allNames:["gb","uk","great britain","united kingdom","gbr","britain","england"],id:"GBR"},{officialName:"United States",allNames:["us","usa","united states of america","united states","usa"],id:"USA"},{id:"UMI",officialName:"United States Minor Outlying Islands",allNames:["um","umi","united states minor outlying islands"]},{officialName:"Uruguay",allNames:["uy","oriental republic of uruguay","república oriental del uruguay","uruguay","ury"],id:"URY"},{officialName:"Uzbekistan",allNames:["uz","republic of uzbekistan","o‘zbekiston respublikasi","ўзбекистон республикаси","uzbekistan","uzb"],id:"UZB"},{officialName:"Vanuatu",allNames:["vu","republic of vanuatu","ripablik blong vanuatu","république de vanuatu","vanuatu","vut"],id:"VUT"},{id:"VAT",officialName:"Vatican",allNames:["va","vat","vatican","vatican city","vatican city state","holy see (vatican city state)","holy see [vatican city state]"]},{officialName:"Venezuela",allNames:["ve","bolivarian republic of venezuela","república bolivariana de venezuela","venezuela","ven","bolivarian republic of"],id:"VEN"},{officialName:"Vietnam",allNames:["vn","socialist republic of vietnam","cộng hòa xã hội chủ nghĩa việt nam","vietnam","vnm","viet nam"],id:"VNM"},{id:"VGB",officialName:"Virgin Islands",allNames:["vg","vgb","virgin islands","british","british virgin islands","virgin islands (british)"]},{id:"VIR",officialName:"Virgin Islands",allNames:["vi","vir","virgin islands","u.s.","us virgin islands","u.s. virgin islands","virgin islands (u.s.)"]},{officialName:"Wallis and Futuna",allNames:["wf","territory of the wallis and futuna islands","territoire des îles wallis et futuna","wallis and futuna","wlf","wallis and futuna islands"],id:"WLF"},{officialName:"Western Sahara",allNames:["eh","taneẓroft tutrimt","western sahara","esh"],id:"ESH"},{officialName:"Yemen",allNames:["ye","yemeni republic","al-jumhūriyyah al-yamaniyyah","yemen","yem"],id:"YEM"},{officialName:"Zambia",allNames:["zm","republic of zambia","zambia","zmb"],id:"ZMB"},{officialName:"Zimbabwe",allNames:["zw","republic of zimbabwe","zimbabwe","zwe"],id:"ZWE"}],S3="#d6d9dc",M3="#FBFAFA";function P3(e,t,r){return e.reduce((o,a)=>{const l=a.id;let u;if(r==="world"){const c=E3.find(f=>f.id===l);c?u=t.find(f=>c.allNames.includes(f.geoName.trim().toLowerCase())):u=t.find(f=>f.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase())}else u=t.find(c=>c.geoName.trim().toLowerCase()===a.properties.name.trim().toLowerCase());return o[l]={geoDataElement:u,style:{color:S3,weight:1,opacity:1,fillColor:u&&u.color||M3,fillOpacity:1},displayName:(u==null?void 0:u.geoName)||a.properties.name},o},{})}const R3=({geoJson:e,geoData:t,dataOptions:r,mapType:n})=>{const{themeSettings:o}=jt(),a=Q.useRef(null),l=Q.useRef(null),[u]=Q.useState(Lr.layerGroup()),c=Q.useMemo(()=>P3(e.features,t,n),[e,t,n]);return Q.useEffect(()=>{a.current&&!l.current&&(l.current=D3(a.current,n),u.addTo(l.current))},[u,n]),Q.useEffect(()=>{const f=Lr.geoJSON(L3(e,c),{style:p=>c[p.id].style,onEachFeature:(p,m)=>{m.bindTooltip(N3(p,c,r.originalValueTitle),{sticky:!0}),m.on({mouseover:h=>{const g=h.target;O3(g,p.id,c)},mouseout:h=>{const g=h.target;k3(g,p.id,c)}}),r.onAreaClick&&m.on({click:h=>{const g=c[p.id].geoDataElement;g&&r.onAreaClick(g,h.originalEvent)}})}});l.current&&(u.clearLayers(),u.addLayer(f),l.current.fitBounds(f.getBounds(),Xv(o)))},[r,c,e,u,o]),V.jsx("div",{ref:a,className:"csdk-map-container",style:{width:"100%",height:"100%",minWidth:"300px",minHeight:"400px",backgroundColor:"#c2dbe9"}})};function O3(e,t,r){if(r[t]){const o=r[t].style.fillColor;e.setStyle({weight:2,color:R.scaleBrightness(o,-.2),fillColor:R.scaleBrightness(o,.05),dashArray:"",fillOpacity:1,opacity:1}),e.bringToFront()}}function k3(e,t,r){e.setStyle(r[t].style)}function N3(e,t,r){const n=t[e.id];return`
|
|
92
|
+
<div>
|
|
93
|
+
<span>${n.displayName}<span>
|
|
94
|
+
${n.geoDataElement?`<br/>${r}: <span>${n.geoDataElement.formattedOriginalValue}<span>`:""}
|
|
95
|
+
</div>`}function D3(e,t){return t==="world"?Lr.map(e,{attributionControl:!1,scrollWheelZoom:!0,minZoom:1,zoom:1,maxZoom:5,center:[0,0]}):Lr.map(e,{crs:new Lr.Proj.CRS("EPSG:5070","+proj=aea +lat_1=29.5 +lat_2=45.5 +lat_0=23 +lon_0=-96 +x_0=0 +y_0=0 +ellps=GRS80 +towgs84=0,0,0,0,0,0,0 +units=m +no_defs",{resolutions:[16384,10240,8192,4096]}),center:[35.96852047262865,-96.96520768859223],zoom:.4,maxZoom:3,attributionControl:!1})}function L3(e,t){if(t.ATA&&t.ATA.geoDataElement)return e;{const r=e.features.filter(n=>n.id!=="ATA");return he(ie({},e),{features:r})}}class eg{constructor(t){xt(this,"httpClient");xt(this,"getDashboards",(t={})=>{const{fields:r,expand:n,searchByTitle:o}=t,a=new URLSearchParams(ie(ie(ie({},o&&{name:o}),(r==null?void 0:r.length)&&{fields:r==null?void 0:r.join(",")}),(n==null?void 0:n.length)&&{expand:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards?${a}`)});xt(this,"getDashboard",(t,r={})=>{const{fields:n}=r,o=new URLSearchParams(ie({},(n==null?void 0:n.length)&&{fields:n==null?void 0:n.join(",")})).toString();return this.httpClient.get(`api/v1/dashboards/${t}?${o}`).catch(()=>{throw new R.TranslatableError("errors.dashboardInvalidIdentifier")})});xt(this,"getDashboardWidgets",t=>this.httpClient.get(`api/v1/dashboards/${t}/widgets`).catch(()=>{throw new R.TranslatableError("errors.dashboardWidgetsInvalidIdentifiers")}));xt(this,"getWidget",(t,r)=>this.httpClient.get(`api/v1/dashboards/${r}/widgets/${t}`).catch(()=>{throw new R.TranslatableError("errors.dashboardWidgetInvalidIdentifiers")}));xt(this,"getCountriesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/world"));xt(this,"getUsaStatesGeoJson",()=>this.httpClient.get("api/v1/geo/geojson/usa"));xt(this,"getPalettes",()=>this.httpClient.get("api/palettes"));if(!t)throw new Error("HttpClient not found.");this.httpClient=t}}const tg=()=>{const{app:e}=gt();return Q.useMemo(()=>new eg(e==null?void 0:e.httpClient),[e])},A3=e=>{const t=tg(),[r,n]=Q.useState(),[o,a]=Q.useState(),l=W3();return Q.useEffect(()=>{if(!l)return;yr(exports,null,function*(){try{const c=F3(e,l),f=I3(c);if(f)n(f);else{j3(e);let p;switch(e){case"world":p=t.getCountriesGeoJson;break;case"usa":p=t.getUsaStatesGeoJson;break;default:throw new Error(`Unsupported map type: ${e}`)}const m=yield p();if(!m)throw new Error("Failed loading map");const h=e==="world"?z3(m):m;$3(h,c),n(h)}}catch(c){a(c)}})},[t,e,l]),{geoJson:r,error:o}};function I3(e){const t=localStorage.getItem(e);if(t)return JSON.parse(t)}function $3(e,t){localStorage.setItem(t,JSON.stringify(e))}function z3(e){const t=R.cloneDeep(e);return t.features.forEach(r=>{var n;r.id==="-99"&&(r.id=(n=r.properties)==null?void 0:n.name)}),t}function W3(){const{app:e}=gt();return e==null?void 0:e.settings.serverVersion}function F3(e,t){return`geoJson_${e}_${t}`}function j3(e){Object.keys(localStorage).forEach(r=>{r.startsWith(`geoJson_${e}`)&&localStorage.removeItem(r)})}const B3=({chartData:e,dataOptions:t,designOptions:r,onDataPointClick:n})=>{const{geoJson:o}=A3(r.mapType);return V.jsx(V.Fragment,{children:o&&V.jsx(R3,{geoJson:o,geoData:e.geoData,dataOptions:{originalValueTitle:t.color.title||t.color.name,onAreaClick:n},mapType:r.mapType})})},H3=e=>e.type==="areamap",V3=e=>"geo"in e&&"color"in e,U3=e=>"mapType"in e,q3=e=>!!e.chartData&&H3(e.chartData)&&V3(e.dataOptions)&&U3(e.designOptions),fo=({isVisible:e,themeSettings:t,children:r})=>{const n=t!=null&&t.chart.panelBackgroundColor?{backgroundColor:t.chart.panelBackgroundColor}:void 0;return V.jsxs("div",{id:"overlay",className:"csdk-relative csdk-h-full",children:[e&&V.jsx("div",{className:"csdk-absolute csdk-h-full csdk-w-full csdk-z-[401] csdk-opacity-80","area-label":"csdk-loading-overlay",children:V.jsx("div",{className:"csdk-h-full csdk-bg-transparent",children:V.jsx("div",{className:"csdk-h-full csdk-flex csdk-flex-col csdk-gap-y-4 csdk-items-center csdk-justify-center csdk-bg-transparent",children:V.jsx("div",{style:n,className:"csdk-p-1.5 csdk-bg-background-priority csdk-rounded-full",children:V.jsx(Sv,{color:t==null?void 0:t.chart.textColor})})})})}),r]})};function Ku(e,t,r=Dc(),n=zc){const o=new Map;return[...t.breakBy?t.breakBy:[],...t.x?Array.isArray(t.x)?t.x:[t.x]:[],...t.columns?t.columns:[]].forEach(function(l){if(!R.isCategory(l)||!l.dateFormat)return;const u=e.columns.findIndex(function(f){return f.name===l.name&&R.isDatetime(l.type)&&R.isDatetime(f.type)});u!==-1&&o.set(u,l.dateFormat)}),o.size===0||(e.rows=e.rows.map(function(l){return l.map(function(c,f){const p=o.get(f);if(!p)return c;let m,h;if(R.isCell(c))m=ie({},c);else{const _=R.createCompareValue(`${c}`,"datetime");h=new Date(_.value),m={data:h.toISOString(),text:`${c}`}}if(!m.data)return c;let g=m.text;try{g=Wc(R.parseISO(m.data),p,r,n)}catch(_){console.error(_)}return m.text=g,m})})),e}function G3(e,t){if(!t.value||t.value.length===0)throw new R.TranslatableError("errors.dataOptions.emptyValueArray");return X3(e,t)}const Y3={pie:{category:3,value:1},funnel:{category:1,value:1},treemap:{category:3,value:1},sunburst:{category:6,value:1}};function X3(e,t){const r=Y3[e];t.category.length>r.category&&console.warn(`Maximum 'category' length is limited to ${r.category} for '${e}' chart. Taken first ${r.category} categories`);const n=t.category.slice(0,r.category);let o=t.value;return(e!=="pie"||t.category.length>0)&&(t.value.length>r.value&&console.warn(`Maximum 'value' length is limited to ${r.value} for '${e}' chart. Taken first ${r.value} values`),o=t.value.slice(0,r.value)),he(ie({},t),{category:n,value:o})}const rg=e=>{const t={},r=n=>`$measure${n}_`;return e.forEach((n,o)=>{const a=n.name,u=`${r(o)}${a}`;n.name=u,t[u]=a}),t},Z3=(e,t)=>{if(t==="funnel"){const r=R.merge(e);if(r.breakBy.length>0&&r.breakBy[0].sortType===void 0&&r.y.length>0&&r.y[0].sortType===void 0)return r.y[0].sortType="sortDesc",r}return e},ng=(e,t,r,n,o,a)=>{if(t.length+r.length===0)throw new R.TranslatableError("errors.dataOptions.noDimensionsAndMeasures");return t.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.name)===-1)throw new R.TranslatableError("errors.dataOptions.attributeNotFound",{attributeName:l.name})}),r.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.name||c.name===n[l.name])===-1)throw new R.TranslatableError("errors.dataOptions.measureNotFound",{measureName:n[l.name]})}),o&&o.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.attribute.name)===-1)throw new R.TranslatableError("errors.dataOptions.filterAttributeNotFound",{attributeName:l.attribute.name})}),a&&a.forEach(l=>{if(e.columns.findIndex(c=>c.name===l.attribute.name)===-1)throw new R.TranslatableError("errors.dataOptions.highlightAttributeNotFound",{attributeName:l.attribute.name})}),!0};function K3(e,t){switch(e){case"pie":case"funnel":case"treemap":return G3(e,t);default:return t}}const rd=()=>{const[e,t]=Q.useState();if(e)throw e;return t};function Q3(e){return e===null}var J3=Q3;const Hl=R.getDefaultExportFromCjs(J3),eL=(e,t)=>{switch(t){case"iqr":return k0(e);case"extremums":return N0(e);case"standardDeviation":return D0(e)}},tL=(e,t)=>{switch(t){case"iqr":return L0(e);case"standardDeviation":return A0(e)}},rL=(e,t,r)=>{const{column:n,style:o}=R.splitColumn(e);let a=eL(n,t),l;return o&&(a=a.map(u=>ie({column:u},o))),r&&(l=tL(n,t),l&&o&&(l=ie({column:l},o))),{values:a,outliers:l}},nL=e=>e.value.length>1,ig=e=>{var m;const{category:t}=e;let r,n,o;if(nL(e))r=e.value,o=e.valueTitle,n=(m=e.outliers)==null?void 0:m[0];else{const{outliersEnabled:h,boxType:g,value:[_]}=e,{values:y,outliers:x}=rL(_,g,!!h);r=y,n=x,o=R.getDataOptionTitle(R.translateColumnToCategory(_))}const[a,l,u,c,f,p]=r;return{category:t[0]&&R.translateColumnToCategory(t[0]),boxMin:a&&R.translateColumnToValue(a),boxMedian:l&&R.translateColumnToValue(l),boxMax:u&&R.translateColumnToValue(u),whiskerMin:c&&R.translateColumnToValue(c),whiskerMax:f&&R.translateColumnToValue(f),outliersCount:p&&R.translateColumnToValue(p),outliers:n&&R.translateColumnToCategory(n),valueTitle:o}},iL=2e4;function no(e,t){if(t){const r=t.name,n=e.findIndex(o=>o.name===r);return n===-1?null:n}return null}const og=(e,t,r)=>{let n=0,o=4,a=5,l=0,u=1;return r&&(n=no(e.columns,r.category),o=no(e.columns,r.whiskerMin),a=no(e.columns,r.whiskerMax),l=no(t.columns,r.category),u=no(t.columns,r.outliers)),Hl(u)?e:{columns:[...e.columns,t.columns[u]],rows:e.rows.map(f=>{const p=Hl(n)?null:f[n].data,m=f[a].data,h=f[o].data,g=t.rows.filter(_=>{const y=Hl(l)?null:_[l].data,x=_[u].data;return y===p&&(x<h||x>m)}).map(_=>_[u].data).join(",");return[...f,{data:g}]})}};function oL(e,t,r){const n=r&&ig(r);return og(e,t,n)}const aL=(c,f)=>yr(exports,[c,f],function*({app:e,chartDataOptions:t,dataSource:r,attributes:n,measures:o,filters:a,highlights:l},u){var _;const p={dataSource:r,dimensions:t.category?[n[0]]:[],measures:o,filters:a,highlights:l},m=yield u(p,e);let h=m;const g=t.outliersCount?sL(m,t.outliersCount.name):0;if(t.outliers&&g<iL){const y={dataSource:r,dimensions:n,measures:[],filters:a,highlights:l};try{const x=yield u(y,e);h=og(m,x,t)}catch(x){if((_=x==null?void 0:x.message)!=null&&_.includes("UnsupportedFunctionalityException"))console.warn("Functionality not supported by platform: Boxplot outliers");else throw x}}return h}),sL=(e,t)=>{const r=e.columns.findIndex(({name:o})=>o===t);let n=0;return e.rows.forEach(o=>{n+=parseInt(o[r].data)}),n},lL=e=>e==="funnel"?e:R.deriveChartFamily(e),uL=(e,t,r,n,o,a,l,u,c,f)=>{var S;const p=rd(),m=Q.useMemo(()=>lL(r),[r]),h=Q.useMemo(()=>[void 0,t],[t]),[g,_]=Q.useState({}),{app:y}=gt(),x=(S=y==null?void 0:y.settings.queryCacheConfig)!=null&&S.enabled?Hc:Bo;return Q.useEffect(()=>{let E=!1;const{filters:T,relations:C}=R.getFilterListAndRelations(l);if(Fn(e)){if(!y)return;let w;r==="boxplot"?w=aL({app:y,chartDataOptions:t,dataSource:e,attributes:n,measures:o,filters:T,highlights:u},x):w=x({dataSource:e,dimensions:n,measures:o,filters:T,filterRelations:C,highlights:u,count:y.settings.queryLimit},y);const M=y==null?void 0:y.settings.loadingIndicatorConfig,O=setTimeout(()=>{M!=null&&M.enabled&&(f==null||f(!0))},M==null?void 0:M.delay);w.then(D=>{const A=Ku(D,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);E||_({[m]:[A,t]})}).catch(D=>{p(D)}).finally(()=>{clearTimeout(O),M!=null&&M.enabled&&(f==null||f(!1))})}else{ng(e,n,o,a,T,u);const w=Ku(e,t,y==null?void 0:y.settings.locale,y==null?void 0:y.settings.dateConfig);_({[m]:[w,t]})}return()=>{E=!0}},[r,t,e,l,u,y,c]),g[m]||h},Bh={city:4,state:3,country:2,auto:1};function cL(e){return e.filter(r=>"geoLevel"in r&&r.geoLevel).map(r=>r.geoLevel).reduce((r,n)=>Bh[n]>Bh[r]?n:r,"auto")}function dL(e){const{geo:t,size:r,colorBy:n,details:o}=e;return{locations:t&&t.map(R.translateColumnToCategory),size:r&&R.translateColumnToValue(r),colorBy:n&&R.translateColumnToValue(n),details:o&&R.translateColumnToCategoryOrValue(o),locationLevel:cL(t)}}function fL(e){var a;const t=e.value.map(l=>{if(l!=null&&l.chartType)return[R.translateColumnToValue(l)];const p=l,{lowerBound:u,upperBound:c}=p,f=ai(p,["lowerBound","upperBound"]);return[R.translateColumnToValue(ie({column:u},f)),R.translateColumnToValue(ie({column:c},f))]}),r=t.flat(),n=t.filter(l=>l.length===2),o=t.filter(l=>l.length===1).flat();return{x:e.category.map(R.translateColumnToCategory),breakBy:((a=e.breakBy)==null?void 0:a.map(R.translateColumnToCategory))||[],y:r,rangeValues:n,seriesValues:o,seriesToColorMap:e.seriesToColorMap}}function hL(e,t){if(R.isCartesian(e))return pL(t);if(R.isCategorical(e))return mL(t);if(R.isIndicator(e))return vL(t);if(R.isScatter(e))return gL(t);if(R.isBoxplot(e))return ig(t);if(R.isAreamap(e))return yL(t);if(R.isScattermap(e))return dL(t);if(R.isRange(e))return fL(t);throw new Error(`Unexpected chart type: ${e}`)}const pL=e=>{var t;return{x:e.category.map(R.translateColumnToCategory),y:e.value.map(R.translateColumnToValue),breakBy:((t=e.breakBy)==null?void 0:t.map(R.translateColumnToCategory))||[],seriesToColorMap:e.seriesToColorMap}},mL=e=>({y:e.value.map(R.translateColumnToValue),breakBy:e.category.map(R.translateColumnToCategory),seriesToColorMap:e.seriesToColorMap}),vL=e=>{var t,r,n,o,a,l;return{value:(t=e.value)==null?void 0:t.map(R.translateColumnToValue),secondary:(r=e.secondary)==null?void 0:r.map(R.translateColumnToValue),min:(o=(n=e.min)==null?void 0:n.map(R.translateColumnToValue))==null?void 0:o.map(Hh("min")),max:(l=(a=e.max)==null?void 0:a.map(R.translateColumnToValue))==null?void 0:l.map(Hh("max"))}},Hh=e=>t=>{var r;return Object.assign(t,{aggregation:(r=t.aggregation)!=null?r:e})},gL=e=>{const{x:t,y:r,breakByPoint:n,breakByColor:o,size:a,seriesToColorMap:l}=e;return{x:t&&R.translateColumnToCategoryOrValue(t),y:r&&R.translateColumnToCategoryOrValue(r),breakByPoint:n&&R.translateColumnToCategory(n),breakByColor:o&&R.translateColumnToCategoryOrValue(o),size:a&&R.translateColumnToValue(a),seriesToColorMap:l}},yL=e=>({geo:e.geo&&R.translateColumnToCategory(e.geo[0]),color:e.color&&R.translateColumnToValue(e.color[0])});function bL(e,t){let r=[];return R.isScatter(t)?r=["x","y","breakByPoint","breakByColor"].flatMap(n=>e[n]&&R.isCategory(e[n])?[e[n]]:[]):R.isCartesian(t)||R.isCategorical(t)||R.isRange(t)?r=["x","breakBy"].flatMap(n=>{var o;return(o=e[n])!=null?o:[]}):R.isBoxplot(t)?r=["category","outliers"].flatMap(n=>e[n]?[e[n]]:[]):R.isAreamap(t)?r=[e.geo]:R.isScattermap(t)&&(r=["locations"].flatMap(n=>{var o;return(o=e[n])!=null?o:[]})),r.map(R.translateCategoryToAttribute)}function _L(e,t){let r=[];return R.isIndicator(t)?r=wL(e):R.isScatter(t)?r=["x","y","breakByColor","size"].flatMap(n=>e[n]&&R.isValue(e[n])?[e[n]]:[]):R.isCartesian(t)||R.isCategorical(t)?r=e.y:R.isBoxplot(t)?r=["boxMin","boxMedian","boxMax","whiskerMin","whiskerMax","outliersCount"].flatMap(n=>e[n]?[e[n]]:[]):R.isAreamap(t)?r=[e.color]:R.isScattermap(t)?r=["size","colorBy","details"].flatMap(n=>e[n]&&R.isValue(e[n])?[e[n]]:[]):R.isRange(t)&&(r=e.y),r.map(R.translateValueToMeasure)}function wL(e){var a,l,u,c;const t=(a=e.value)==null?void 0:a[0],r=(l=e.secondary)==null?void 0:l[0],n=(u=e.min)==null?void 0:u[0],o=(c=e.max)==null?void 0:c[0];return[t,r,n,o].filter(f=>!!f)}function ag(e){return{columns:e.columns.map(R.translateColumnToCategoryOrValue)}}function xL(e){var t,r,n;return{rows:(t=e.rows)==null?void 0:t.map(R.translateColumnToCategory),columns:(r=e.columns)==null?void 0:r.map(R.translateColumnToCategory),values:(n=e.values)==null?void 0:n.map(R.translateColumnToValue),grandTotals:e.grandTotals}}function sg(e,t){{const r=K3(t,e),n=hL(t,r),o=Z3(n,t),a=bL(o,t),l=_L(o,t);return{dataOptions:o,attributes:a,measures:l}}}const CL=(e,t)=>Q.useMemo(()=>{const{dataOptions:r,attributes:n,measures:o}=sg(e,t),a=rg(o.map(R.translateMeasureToValue));return{dataOptions:r,attributes:n,measures:o,dataColumnNamesMapping:a}},[e,t]);function TL(e){const{dataSet:t,chartType:r,chartData:n,internalDataOptions:o,designOptions:a,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:f,filters:p}=e;return!o||!a?null:{dataSource:Fn(t)?t:null,chartType:r,chartData:n,dataOptions:o,designOptions:a,onBeforeRender:l,onDataPointClick:u,onDataPointContextMenu:c,onDataPointsSelected:f,filters:p}}const EL=e=>e==="indicator",SL=(e,t)=>e==="scattermap"&&"scatterDataTable"in t&&t.scatterDataTable.length===0?!0:"series"in t&&t.series.length===0,lg=e=>{const{chartType:t,dataSet:r,dataOptions:n,filters:o,highlights:a,styleOptions:l,refreshCounter:u,onDataPointClick:c,onDataPointContextMenu:f,onDataPointsSelected:p,onBeforeRender:m}=e,[h,g]=Q.useState(!1),_=ed(t),{themeSettings:y}=jt(),{dataOptions:x,attributes:S,measures:E,dataColumnNamesMapping:T}=CL(n,t),[C,w]=uL(r,x,t,S,E,T,o,a,u,g),M=Q.useMemo(()=>n?R.prepareChartDesignOptions(t,w,l):null,[n,t,w,l]),O=Q.useMemo(()=>{if(!C||!n)return null;let A=R.createDataTableFromData(C);return Fn(r)||(A=jv(A,S.map(R.translateAttributeToCategory),E.map(R.translateMeasureToValue),T)),Lk(t,w,A)},[C,t]),D=TL({dataSet:r,chartType:t,chartData:O,internalDataOptions:w,designOptions:M,onBeforeRender:m,onDataPointClick:c,onDataPointContextMenu:f,onDataPointsSelected:p,filters:o});return D?V.jsx(Vo,{defaultSize:_,size:{width:l==null?void 0:l.width,height:l==null?void 0:l.height},rerenderOnResize:EL(t),children:()=>O?SL(t,O)?V.jsx(Jc,{iconType:t}):t==="scattermap"&&$D(D)?V.jsx(fo,{themeSettings:y,isVisible:h,children:V.jsx(DD,ie({},D))}):t==="indicator"&&QN(D)?V.jsx(fo,{themeSettings:y,isVisible:h,children:V.jsx(YN,ie({},D))}):t==="areamap"&&q3(D)?V.jsx(fo,{themeSettings:y,isVisible:h,children:V.jsx(B3,ie({},D))}):Qv(t)&&s3(D)?V.jsx(fo,{themeSettings:y,isVisible:h,children:V.jsx(o3,ie({},D))}):null:V.jsx(Cs,{themeSettings:y})}):null};function Se(e,t){if(e==null)return{};var r={};for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){if(t.indexOf(n)>=0)continue;r[n]=e[n]}return r}var Qu={exports:{}},Na={exports:{}},Fe={};/** @license React v16.13.1
|
|
96
|
+
* react-is.production.min.js
|
|
97
|
+
*
|
|
98
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
99
|
+
*
|
|
100
|
+
* This source code is licensed under the MIT license found in the
|
|
101
|
+
* LICENSE file in the root directory of this source tree.
|
|
102
|
+
*/var Vh;function ML(){if(Vh)return Fe;Vh=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(w){if(typeof w=="object"&&w!==null){var M=w.$$typeof;switch(M){case t:switch(w=w.type,w){case c:case f:case n:case a:case o:case m:return w;default:switch(w=w&&w.$$typeof,w){case u:case p:case _:case g:case l:return w;default:return M}}case r:return M}}}function C(w){return T(w)===f}return Fe.AsyncMode=c,Fe.ConcurrentMode=f,Fe.ContextConsumer=u,Fe.ContextProvider=l,Fe.Element=t,Fe.ForwardRef=p,Fe.Fragment=n,Fe.Lazy=_,Fe.Memo=g,Fe.Portal=r,Fe.Profiler=a,Fe.StrictMode=o,Fe.Suspense=m,Fe.isAsyncMode=function(w){return C(w)||T(w)===c},Fe.isConcurrentMode=C,Fe.isContextConsumer=function(w){return T(w)===u},Fe.isContextProvider=function(w){return T(w)===l},Fe.isElement=function(w){return typeof w=="object"&&w!==null&&w.$$typeof===t},Fe.isForwardRef=function(w){return T(w)===p},Fe.isFragment=function(w){return T(w)===n},Fe.isLazy=function(w){return T(w)===_},Fe.isMemo=function(w){return T(w)===g},Fe.isPortal=function(w){return T(w)===r},Fe.isProfiler=function(w){return T(w)===a},Fe.isStrictMode=function(w){return T(w)===o},Fe.isSuspense=function(w){return T(w)===m},Fe.isValidElementType=function(w){return typeof w=="string"||typeof w=="function"||w===n||w===f||w===a||w===o||w===m||w===h||typeof w=="object"&&w!==null&&(w.$$typeof===_||w.$$typeof===g||w.$$typeof===l||w.$$typeof===u||w.$$typeof===p||w.$$typeof===x||w.$$typeof===S||w.$$typeof===E||w.$$typeof===y)},Fe.typeOf=T,Fe}var je={};/** @license React v16.13.1
|
|
103
|
+
* react-is.development.js
|
|
104
|
+
*
|
|
105
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
106
|
+
*
|
|
107
|
+
* This source code is licensed under the MIT license found in the
|
|
108
|
+
* LICENSE file in the root directory of this source tree.
|
|
109
|
+
*/var Uh;function PL(){return Uh||(Uh=1,process.env.NODE_ENV!=="production"&&function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,o=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,u=e?Symbol.for("react.context"):60110,c=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,p=e?Symbol.for("react.forward_ref"):60112,m=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,g=e?Symbol.for("react.memo"):60115,_=e?Symbol.for("react.lazy"):60116,y=e?Symbol.for("react.block"):60121,x=e?Symbol.for("react.fundamental"):60117,S=e?Symbol.for("react.responder"):60118,E=e?Symbol.for("react.scope"):60119;function T(ae){return typeof ae=="string"||typeof ae=="function"||ae===n||ae===f||ae===a||ae===o||ae===m||ae===h||typeof ae=="object"&&ae!==null&&(ae.$$typeof===_||ae.$$typeof===g||ae.$$typeof===l||ae.$$typeof===u||ae.$$typeof===p||ae.$$typeof===x||ae.$$typeof===S||ae.$$typeof===E||ae.$$typeof===y)}function C(ae){if(typeof ae=="object"&&ae!==null){var ve=ae.$$typeof;switch(ve){case t:var de=ae.type;switch(de){case c:case f:case n:case a:case o:case m:return de;default:var _e=de&&de.$$typeof;switch(_e){case u:case p:case _:case g:case l:return _e;default:return ve}}case r:return ve}}}var w=c,M=f,O=u,D=l,A=t,$=p,N=n,k=_,F=g,j=r,I=a,B=o,G=m,q=!1;function U(ae){return q||(q=!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.")),z(ae)||C(ae)===c}function z(ae){return C(ae)===f}function H(ae){return C(ae)===u}function ee(ae){return C(ae)===l}function X(ae){return typeof ae=="object"&&ae!==null&&ae.$$typeof===t}function K(ae){return C(ae)===p}function J(ae){return C(ae)===n}function ne(ae){return C(ae)===_}function le(ae){return C(ae)===g}function se(ae){return C(ae)===r}function ue(ae){return C(ae)===a}function fe(ae){return C(ae)===o}function pe(ae){return C(ae)===m}je.AsyncMode=w,je.ConcurrentMode=M,je.ContextConsumer=O,je.ContextProvider=D,je.Element=A,je.ForwardRef=$,je.Fragment=N,je.Lazy=k,je.Memo=F,je.Portal=j,je.Profiler=I,je.StrictMode=B,je.Suspense=G,je.isAsyncMode=U,je.isConcurrentMode=z,je.isContextConsumer=H,je.isContextProvider=ee,je.isElement=X,je.isForwardRef=K,je.isFragment=J,je.isLazy=ne,je.isMemo=le,je.isPortal=se,je.isProfiler=ue,je.isStrictMode=fe,je.isSuspense=pe,je.isValidElementType=T,je.typeOf=C}()),je}var qh;function ug(){return qh||(qh=1,process.env.NODE_ENV==="production"?Na.exports=ML():Na.exports=PL()),Na.exports}/*
|
|
110
|
+
object-assign
|
|
111
|
+
(c) Sindre Sorhus
|
|
112
|
+
@license MIT
|
|
113
|
+
*/var Vl,Gh;function RL(){if(Gh)return Vl;Gh=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var l={},u=0;u<10;u++)l["_"+String.fromCharCode(u)]=u;var c=Object.getOwnPropertyNames(l).map(function(p){return l[p]});if(c.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(p){f[p]=p}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch(p){return!1}}return Vl=o()?Object.assign:function(a,l){for(var u,c=n(a),f,p=1;p<arguments.length;p++){u=Object(arguments[p]);for(var m in u)t.call(u,m)&&(c[m]=u[m]);if(e){f=e(u);for(var h=0;h<f.length;h++)r.call(u,f[h])&&(c[f[h]]=u[f[h]])}}return c},Vl}var Ul,Yh;function nd(){if(Yh)return Ul;Yh=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ul=e,Ul}var ql,Xh;function cg(){return Xh||(Xh=1,ql=Function.call.bind(Object.prototype.hasOwnProperty)),ql}var Gl,Zh;function OL(){if(Zh)return Gl;Zh=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=nd(),r={},n=cg();e=function(a){var l="Warning: "+a;typeof console!="undefined"&&console.error(l);try{throw new Error(l)}catch(u){}}}function o(a,l,u,c,f){if(process.env.NODE_ENV!=="production"){for(var p in a)if(n(a,p)){var m;try{if(typeof a[p]!="function"){var h=Error((c||"React class")+": "+u+" type `"+p+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[p]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}m=a[p](l,p,c,u,null,t)}catch(_){m=_}if(m&&!(m instanceof Error)&&e((c||"React class")+": type specification of "+u+" `"+p+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof m+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),m instanceof Error&&!(m.message in r)){r[m.message]=!0;var g=f?f():"";e("Failed "+u+" type: "+m.message+(g!=null?g:""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Gl=o,Gl}var Yl,Kh;function kL(){if(Kh)return Yl;Kh=1;var e=ug(),t=RL(),r=nd(),n=cg(),o=OL(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(u){var c="Warning: "+u;typeof console!="undefined"&&console.error(c);try{throw new Error(c)}catch(f){}});function l(){return null}return Yl=function(u,c){var f=typeof Symbol=="function"&&Symbol.iterator,p="@@iterator";function m(z){var H=z&&(f&&z[f]||z[p]);if(typeof H=="function")return H}var h="<<anonymous>>",g={array:S("array"),bigint:S("bigint"),bool:S("boolean"),func:S("function"),number:S("number"),object:S("object"),string:S("string"),symbol:S("symbol"),any:E(),arrayOf:T,element:C(),elementType:w(),instanceOf:M,node:$(),objectOf:D,oneOf:O,oneOfType:A,shape:k,exact:F};function _(z,H){return z===H?z!==0||1/z===1/H:z!==z&&H!==H}function y(z,H){this.message=z,this.data=H&&typeof H=="object"?H:{},this.stack=""}y.prototype=Error.prototype;function x(z){if(process.env.NODE_ENV!=="production")var H={},ee=0;function X(J,ne,le,se,ue,fe,pe){if(se=se||h,fe=fe||le,pe!==r){if(c){var ae=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 ae.name="Invariant Violation",ae}else if(process.env.NODE_ENV!=="production"&&typeof console!="undefined"){var ve=se+":"+le;!H[ve]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+se+"`. 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."),H[ve]=!0,ee++)}}return ne[le]==null?J?ne[le]===null?new y("The "+ue+" `"+fe+"` is marked as required "+("in `"+se+"`, but its value is `null`.")):new y("The "+ue+" `"+fe+"` is marked as required in "+("`"+se+"`, but its value is `undefined`.")):null:z(ne,le,se,ue,fe)}var K=X.bind(null,!1);return K.isRequired=X.bind(null,!0),K}function S(z){function H(ee,X,K,J,ne,le){var se=ee[X],ue=B(se);if(ue!==z){var fe=G(se);return new y("Invalid "+J+" `"+ne+"` of type "+("`"+fe+"` supplied to `"+K+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return x(H)}function E(){return x(l)}function T(z){function H(ee,X,K,J,ne){if(typeof z!="function")return new y("Property `"+ne+"` of component `"+K+"` has invalid PropType notation inside arrayOf.");var le=ee[X];if(!Array.isArray(le)){var se=B(le);return new y("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an array."))}for(var ue=0;ue<le.length;ue++){var fe=z(le,ue,K,J,ne+"["+ue+"]",r);if(fe instanceof Error)return fe}return null}return x(H)}function C(){function z(H,ee,X,K,J){var ne=H[ee];if(!u(ne)){var le=B(ne);return new y("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement."))}return null}return x(z)}function w(){function z(H,ee,X,K,J){var ne=H[ee];if(!e.isValidElementType(ne)){var le=B(ne);return new y("Invalid "+K+" `"+J+"` of type "+("`"+le+"` supplied to `"+X+"`, expected a single ReactElement type."))}return null}return x(z)}function M(z){function H(ee,X,K,J,ne){if(!(ee[X]instanceof z)){var le=z.name||h,se=U(ee[X]);return new y("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected ")+("instance of `"+le+"`."))}return null}return x(H)}function O(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function H(ee,X,K,J,ne){for(var le=ee[X],se=0;se<z.length;se++)if(_(le,z[se]))return null;var ue=JSON.stringify(z,function(pe,ae){var ve=G(ae);return ve==="symbol"?String(ae):ae});return new y("Invalid "+J+" `"+ne+"` of value `"+String(le)+"` "+("supplied to `"+K+"`, expected one of "+ue+"."))}return x(H)}function D(z){function H(ee,X,K,J,ne){if(typeof z!="function")return new y("Property `"+ne+"` of component `"+K+"` has invalid PropType notation inside objectOf.");var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ne+"` of type "+("`"+se+"` supplied to `"+K+"`, expected an object."));for(var ue in le)if(n(le,ue)){var fe=z(le,ue,K,J,ne+"."+ue,r);if(fe instanceof Error)return fe}return null}return x(H)}function A(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var H=0;H<z.length;H++){var ee=z[H];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+q(ee)+" at index "+H+"."),l}function X(K,J,ne,le,se){for(var ue=[],fe=0;fe<z.length;fe++){var pe=z[fe],ae=pe(K,J,ne,le,se,r);if(ae==null)return null;ae.data&&n(ae.data,"expectedType")&&ue.push(ae.data.expectedType)}var ve=ue.length>0?", expected one of type ["+ue.join(", ")+"]":"";return new y("Invalid "+le+" `"+se+"` supplied to "+("`"+ne+"`"+ve+"."))}return x(X)}function $(){function z(H,ee,X,K,J){return j(H[ee])?null:new y("Invalid "+K+" `"+J+"` supplied to "+("`"+X+"`, expected a ReactNode."))}return x(z)}function N(z,H,ee,X,K){return new y((z||"React class")+": "+H+" type `"+ee+"."+X+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+K+"`.")}function k(z){function H(ee,X,K,J,ne){var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));for(var ue in z){var fe=z[ue];if(typeof fe!="function")return N(K,J,ne,ue,G(fe));var pe=fe(le,ue,K,J,ne+"."+ue,r);if(pe)return pe}return null}return x(H)}function F(z){function H(ee,X,K,J,ne){var le=ee[X],se=B(le);if(se!=="object")return new y("Invalid "+J+" `"+ne+"` of type `"+se+"` "+("supplied to `"+K+"`, expected `object`."));var ue=t({},ee[X],z);for(var fe in ue){var pe=z[fe];if(n(z,fe)&&typeof pe!="function")return N(K,J,ne,fe,G(pe));if(!pe)return new y("Invalid "+J+" `"+ne+"` key `"+fe+"` supplied to `"+K+"`.\nBad object: "+JSON.stringify(ee[X],null," ")+`
|
|
114
|
+
Valid keys: `+JSON.stringify(Object.keys(z),null," "));var ae=pe(le,fe,K,J,ne+"."+fe,r);if(ae)return ae}return null}return x(H)}function j(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(j);if(z===null||u(z))return!0;var H=m(z);if(H){var ee=H.call(z),X;if(H!==z.entries){for(;!(X=ee.next()).done;)if(!j(X.value))return!1}else for(;!(X=ee.next()).done;){var K=X.value;if(K&&!j(K[1]))return!1}}else return!1;return!0;default:return!1}}function I(z,H){return z==="symbol"?!0:H?H["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&H instanceof Symbol:!1}function B(z){var H=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":I(H,z)?"symbol":H}function G(z){if(typeof z=="undefined"||z===null)return""+z;var H=B(z);if(H==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return H}function q(z){var H=G(z);switch(H){case"array":case"object":return"an "+H;case"boolean":case"date":case"regexp":return"a "+H;default:return H}}function U(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return g.checkPropTypes=o,g.resetWarningCache=o.resetWarningCache,g.PropTypes=g,g},Yl}var Xl,Qh;function NL(){if(Qh)return Xl;Qh=1;var e=nd();function t(){}function r(){}return r.resetWarningCache=t,Xl=function(){function n(l,u,c,f,p,m){if(m!==e){var h=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 h.name="Invariant Violation",h}}n.isRequired=n;function o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Xl}if(process.env.NODE_ENV!=="production"){var DL=ug(),LL=!0;Qu.exports=kL()(DL.isElement,LL)}else Qu.exports=NL()();var Bt=Qu.exports;const v=R.getDefaultExportFromCjs(Bt);function dg(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=dg(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function Oe(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=dg(e))&&(n&&(n+=" "),n+=t);return n}function ot(e,t,r=void 0){const n={};return Object.keys(e).forEach(o=>{n[o]=e[o].reduce((a,l)=>{if(l){const u=t(l);u!==""&&a.push(u),r&&r[l]&&a.push(r[l])}return a},[]).join(" ")}),n}function AL(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 IL(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}const $L=Number.isInteger||IL;function fg(e,t,r,n){const o=e[t];if(o==null||!$L(o)){const a=AL(o);return new RangeError(`Invalid ${n} \`${t}\` of type \`${a}\` supplied to \`${r}\`, expected \`integer\`.`)}return null}function hg(e,t,...r){return e[t]===void 0?null:fg(e,t,...r)}function Ju(){return null}hg.isRequired=fg;Ju.isRequired=Ju;const Rr=process.env.NODE_ENV==="production"?Ju:hg;function id(e,t){const r=te({},t);return Object.keys(e).forEach(n=>{if(n.toString().match(/^(components|slots)$/))r[n]=te({},e[n],r[n]);else if(n.toString().match(/^(componentsProps|slotProps)$/)){const o=e[n]||{},a=t[n];r[n]={},!a||!Object.keys(a)?r[n]=o:!o||!Object.keys(o)?r[n]=a:(r[n]=te({},a),Object.keys(o).forEach(l=>{r[n][l]=id(o[l],a[l])}))}else r[n]===void 0&&(r[n]=e[n])}),r}function zL(e){const{theme:t,name:r,props:n}=e;return!t||!t.components||!t.components[r]||!t.components[r].defaultProps?n:id(t.components[r].defaultProps,n)}function fn(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 pg(e){if(!fn(e))return e;const t={};return Object.keys(e).forEach(r=>{t[r]=pg(e[r])}),t}function Ar(e,t,r={clone:!0}){const n=r.clone?te({},e):e;return fn(e)&&fn(t)&&Object.keys(t).forEach(o=>{o!=="__proto__"&&(fn(t[o])&&o in e&&fn(e[o])?n[o]=Ar(e[o],t[o],r):r.clone?n[o]=fn(t[o])?pg(t[o]):t[o]:n[o]=t[o])}),n}const WL=Object.freeze(Object.defineProperty({__proto__:null,default:Ar,isPlainObject:fn},Symbol.toStringTag,{value:"Module"})),FL=["values","unit","step"],jL=e=>{const t=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return t.sort((r,n)=>r.val-n.val),t.reduce((r,n)=>te({},r,{[n.key]:n.val}),{})};function mg(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:n=5}=e,o=Se(e,FL),a=jL(t),l=Object.keys(a);function u(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r})`}function c(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-n/100}${r})`}function f(h,g){const _=l.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${r}) and (max-width:${(_!==-1&&typeof t[l[_]]=="number"?t[l[_]]:g)-n/100}${r})`}function p(h){return l.indexOf(h)+1<l.length?f(h,l[l.indexOf(h)+1]):u(h)}function m(h){const g=l.indexOf(h);return g===0?u(l[1]):g===l.length-1?c(l[g]):f(h,l[l.indexOf(h)+1]).replace("@media","@media not all and")}return te({keys:l,values:a,up:u,down:c,between:f,only:p,not:m,unit:r},o)}const BL={borderRadius:4},yn=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.string,v.object,v.array]):{};function go(e,t){return t?Ar(e,t,{clone:!1}):e}const od={xs:0,sm:600,md:900,lg:1200,xl:1536},Jh={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${od[e]}px)`};function Yr(e,t,r){const n=e.theme||{};if(Array.isArray(t)){const a=n.breakpoints||Jh;return t.reduce((l,u,c)=>(l[a.up(a.keys[c])]=r(t[c]),l),{})}if(typeof t=="object"){const a=n.breakpoints||Jh;return Object.keys(t).reduce((l,u)=>{if(Object.keys(a.values||od).indexOf(u)!==-1){const c=a.up(u);l[c]=r(t[u],u)}else{const c=u;l[c]=t[c]}return l},{})}return r(t)}function HL(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,o)=>{const a=e.up(o);return n[a]={},n},{}))||{}}function VL(e,t){return e.reduce((r,n)=>{const o=r[n];return(!o||Object.keys(o).length===0)&&delete r[n],r},t)}function Mo(e){let t="https://mui.com/production-error/?code="+e;for(let r=1;r<arguments.length;r+=1)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified MUI error #"+e+"; visit "+t+" for the full message."}const UL=Object.freeze(Object.defineProperty({__proto__:null,default:Mo},Symbol.toStringTag,{value:"Module"}));function De(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":Mo(7));return e.charAt(0).toUpperCase()+e.slice(1)}const qL=Object.freeze(Object.defineProperty({__proto__:null,default:De},Symbol.toStringTag,{value:"Module"}));function Es(e,t,r=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&r){const n=`vars.${t}`.split(".").reduce((o,a)=>o&&o[a]?o[a]:null,e);if(n!=null)return n}return t.split(".").reduce((n,o)=>n&&n[o]!=null?n[o]:null,e)}function ts(e,t,r,n=r){let o;return typeof e=="function"?o=e(r):Array.isArray(e)?o=e[r]||n:o=Es(e,r)||n,t&&(o=t(o,n,e)),o}function lt(e){const{prop:t,cssProperty:r=e.prop,themeKey:n,transform:o}=e,a=l=>{if(l[t]==null)return null;const u=l[t],c=l.theme,f=Es(c,n)||{};return Yr(l,u,m=>{let h=ts(f,o,m);return m===h&&typeof m=="string"&&(h=ts(f,o,`${t}${m==="default"?"":De(m)}`,m)),r===!1?h:{[r]:h}})};return a.propTypes=process.env.NODE_ENV!=="production"?{[t]:yn}:{},a.filterProps=[t],a}function GL(e){const t={};return r=>(t[r]===void 0&&(t[r]=e(r)),t[r])}const YL={m:"margin",p:"padding"},XL={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ep={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},ZL=GL(e=>{if(e.length>2)if(ep[e])e=ep[e];else return[e];const[t,r]=e.split(""),n=YL[t],o=XL[r]||"";return Array.isArray(o)?o.map(a=>n+a):[n+o]}),Ss=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ms=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],KL=[...Ss,...Ms];function Uo(e,t,r,n){var o;const a=(o=Es(e,t,!1))!=null?o:r;return typeof a=="number"?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&typeof l!="number"&&console.error(`MUI: Expected ${n} argument to be a number or a string, got ${l}.`),a*l):Array.isArray(a)?l=>typeof l=="string"?l:(process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>a.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${l} > ${a.length-1}, you need to add the missing values.`].join(`
|
|
115
|
+
`)):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(`
|
|
116
|
+
`))),a[l]):typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${t}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
|
|
117
|
+
`)),()=>{})}function vg(e){return Uo(e,"spacing",8,"spacing")}function qo(e,t){if(typeof t=="string"||t==null)return t;const r=Math.abs(t),n=e(r);return t>=0?n:typeof n=="number"?-n:`-${n}`}function QL(e,t){return r=>e.reduce((n,o)=>(n[o]=qo(t,r),n),{})}function JL(e,t,r,n){if(t.indexOf(r)===-1)return null;const o=ZL(r),a=QL(o,n),l=e[r];return Yr(e,l,a)}function gg(e,t){const r=vg(e.theme);return Object.keys(e).map(n=>JL(e,t,n,r)).reduce(go,{})}function rt(e){return gg(e,Ss)}rt.propTypes=process.env.NODE_ENV!=="production"?Ss.reduce((e,t)=>(e[t]=yn,e),{}):{};rt.filterProps=Ss;function nt(e){return gg(e,Ms)}nt.propTypes=process.env.NODE_ENV!=="production"?Ms.reduce((e,t)=>(e[t]=yn,e),{}):{};nt.filterProps=Ms;process.env.NODE_ENV!=="production"&&KL.reduce((e,t)=>(e[t]=yn,e),{});function eA(e=8){if(e.mui)return e;const t=vg({spacing:e}),r=(...n)=>(process.env.NODE_ENV!=="production"&&(n.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${n.length}`)),(n.length===0?[1]:n).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" "));return r.mui=!0,r}function Ps(...e){const t=e.reduce((n,o)=>(o.filterProps.forEach(a=>{n[a]=o}),n),{}),r=n=>Object.keys(n).reduce((o,a)=>t[a]?go(o,t[a](n)):o,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((n,o)=>Object.assign(n,o.propTypes),{}):{},r.filterProps=e.reduce((n,o)=>n.concat(o.filterProps),[]),r}function nr(e){return typeof e!="number"?e:`${e}px solid`}function ur(e,t){return lt({prop:e,themeKey:"borders",transform:t})}const tA=ur("border",nr),rA=ur("borderTop",nr),nA=ur("borderRight",nr),iA=ur("borderBottom",nr),oA=ur("borderLeft",nr),aA=ur("borderColor"),sA=ur("borderTopColor"),lA=ur("borderRightColor"),uA=ur("borderBottomColor"),cA=ur("borderLeftColor"),dA=ur("outline",nr),fA=ur("outlineColor"),Rs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Uo(e.theme,"shape.borderRadius",4,"borderRadius"),r=n=>({borderRadius:qo(t,n)});return Yr(e,e.borderRadius,r)}return null};Rs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yn}:{};Rs.filterProps=["borderRadius"];Ps(tA,rA,nA,iA,oA,aA,sA,lA,uA,cA,Rs,dA,fA);const Os=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Uo(e.theme,"spacing",8,"gap"),r=n=>({gap:qo(t,n)});return Yr(e,e.gap,r)}return null};Os.propTypes=process.env.NODE_ENV!=="production"?{gap:yn}:{};Os.filterProps=["gap"];const ks=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Uo(e.theme,"spacing",8,"columnGap"),r=n=>({columnGap:qo(t,n)});return Yr(e,e.columnGap,r)}return null};ks.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yn}:{};ks.filterProps=["columnGap"];const Ns=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Uo(e.theme,"spacing",8,"rowGap"),r=n=>({rowGap:qo(t,n)});return Yr(e,e.rowGap,r)}return null};Ns.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yn}:{};Ns.filterProps=["rowGap"];const hA=lt({prop:"gridColumn"}),pA=lt({prop:"gridRow"}),mA=lt({prop:"gridAutoFlow"}),vA=lt({prop:"gridAutoColumns"}),gA=lt({prop:"gridAutoRows"}),yA=lt({prop:"gridTemplateColumns"}),bA=lt({prop:"gridTemplateRows"}),_A=lt({prop:"gridTemplateAreas"}),wA=lt({prop:"gridArea"});Ps(Os,ks,Ns,hA,pA,mA,vA,gA,yA,bA,_A,wA);function Ti(e,t){return t==="grey"?t:e}const xA=lt({prop:"color",themeKey:"palette",transform:Ti}),CA=lt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ti}),TA=lt({prop:"backgroundColor",themeKey:"palette",transform:Ti});Ps(xA,CA,TA);function Ut(e){return e<=1&&e!==0?`${e*100}%`:e}const EA=lt({prop:"width",transform:Ut}),ad=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=r=>{var n,o;const a=((n=e.theme)==null||(n=n.breakpoints)==null||(n=n.values)==null?void 0:n[r])||od[r];return a?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:Ut(r)}};return Yr(e,e.maxWidth,t)}return null};ad.filterProps=["maxWidth"];const SA=lt({prop:"minWidth",transform:Ut}),MA=lt({prop:"height",transform:Ut}),PA=lt({prop:"maxHeight",transform:Ut}),RA=lt({prop:"minHeight",transform:Ut});lt({prop:"size",cssProperty:"width",transform:Ut});lt({prop:"size",cssProperty:"height",transform:Ut});const OA=lt({prop:"boxSizing"});Ps(EA,ad,SA,MA,PA,RA,OA);const Go={border:{themeKey:"borders",transform:nr},borderTop:{themeKey:"borders",transform:nr},borderRight:{themeKey:"borders",transform:nr},borderBottom:{themeKey:"borders",transform:nr},borderLeft:{themeKey:"borders",transform:nr},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:nr},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Rs},color:{themeKey:"palette",transform:Ti},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ti},backgroundColor:{themeKey:"palette",transform:Ti},p:{style:nt},pt:{style:nt},pr:{style:nt},pb:{style:nt},pl:{style:nt},px:{style:nt},py:{style:nt},padding:{style:nt},paddingTop:{style:nt},paddingRight:{style:nt},paddingBottom:{style:nt},paddingLeft:{style:nt},paddingX:{style:nt},paddingY:{style:nt},paddingInline:{style:nt},paddingInlineStart:{style:nt},paddingInlineEnd:{style:nt},paddingBlock:{style:nt},paddingBlockStart:{style:nt},paddingBlockEnd:{style:nt},m:{style:rt},mt:{style:rt},mr:{style:rt},mb:{style:rt},ml:{style:rt},mx:{style:rt},my:{style:rt},margin:{style:rt},marginTop:{style:rt},marginRight:{style:rt},marginBottom:{style:rt},marginLeft:{style:rt},marginX:{style:rt},marginY:{style:rt},marginInline:{style:rt},marginInlineStart:{style:rt},marginInlineEnd:{style:rt},marginBlock:{style:rt},marginBlockStart:{style:rt},marginBlockEnd:{style:rt},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:Os},rowGap:{style:Ns},columnGap:{style:ks},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ut},maxWidth:{style:ad},minWidth:{transform:Ut},height:{transform:Ut},maxHeight:{transform:Ut},minHeight:{transform:Ut},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function kA(...e){const t=e.reduce((n,o)=>n.concat(Object.keys(o)),[]),r=new Set(t);return e.every(n=>r.size===Object.keys(n).length)}function NA(e,t){return typeof e=="function"?e(t):e}function yg(){function e(r,n,o,a){const l={[r]:n,theme:o},u=a[r];if(!u)return{[r]:n};const{cssProperty:c=r,themeKey:f,transform:p,style:m}=u;if(n==null)return null;if(f==="typography"&&n==="inherit")return{[r]:n};const h=Es(o,f)||{};return m?m(l):Yr(l,n,_=>{let y=ts(h,p,_);return _===y&&typeof _=="string"&&(y=ts(h,p,`${r}${_==="default"?"":De(_)}`,_)),c===!1?y:{[c]:y}})}function t(r){var n;const{sx:o,theme:a={}}=r||{};if(!o)return null;const l=(n=a.unstable_sxConfig)!=null?n:Go;function u(c){let f=c;if(typeof c=="function")f=c(a);else if(typeof c!="object")return c;if(!f)return null;const p=HL(a.breakpoints),m=Object.keys(p);let h=p;return Object.keys(f).forEach(g=>{const _=NA(f[g],a);if(_!=null)if(typeof _=="object")if(l[g])h=go(h,e(g,_,a,l));else{const y=Yr({theme:a},_,x=>({[g]:x}));kA(y,_)?h[g]=t({sx:_,theme:a}):h=go(h,y)}else h=go(h,e(g,_,a,l))}),VL(m,h)}return Array.isArray(o)?o.map(u):u(o)}return t}const Ds=yg();Ds.filterProps=["sx"];function bg(e,t){const r=this;return r.vars&&typeof r.getColorSchemeSelector=="function"?{[r.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:r.palette.mode===e?t:{}}const DA=["breakpoints","palette","spacing","shape"];function sd(e={},...t){const{breakpoints:r={},palette:n={},spacing:o,shape:a={}}=e,l=Se(e,DA),u=mg(r),c=eA(o);let f=Ar({breakpoints:u,direction:"ltr",components:{},palette:te({mode:"light"},n),spacing:c,shape:te({},BL,a)},l);return f.applyStyles=bg,f=t.reduce((p,m)=>Ar(p,m),f),f.unstable_sxConfig=te({},Go,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Ds({sx:m,theme:this})},f}const LA=Object.freeze(Object.defineProperty({__proto__:null,default:sd,private_createBreakpoints:mg,unstable_applyStyles:bg},Symbol.toStringTag,{value:"Module"}));let ec;typeof document=="object"&&(ec=jm({key:"css",prepend:!0}));function _g(e){const{injectFirst:t,children:r}=e;return t&&ec?V.jsx(qm,{value:ec,children:r}):r}process.env.NODE_ENV!=="production"&&(_g.propTypes={children:v.node,injectFirst:v.bool});function AA(e){return e==null||Object.keys(e).length===0}function wg(e){const{styles:t,defaultTheme:r={}}=e,n=typeof t=="function"?o=>t(AA(o)?r:o):t;return V.jsx(Rc,{styles:n})}process.env.NODE_ENV!=="production"&&(wg.propTypes={defaultTheme:v.object,styles:v.oneOfType([v.array,v.string,v.object,v.func])});/**
|
|
118
|
+
* @mui/styled-engine v5.15.14
|
|
119
|
+
*
|
|
120
|
+
* @license MIT
|
|
121
|
+
* This source code is licensed under the MIT license found in the
|
|
122
|
+
* LICENSE file in the root directory of this source tree.
|
|
123
|
+
*/function IA(e,t){const r=wr(e,t);return process.env.NODE_ENV!=="production"?(...n)=>{const o=typeof e=="string"?`"${e}"`:"component";return n.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(`
|
|
124
|
+
`)):n.some(a=>a===void 0)&&console.error(`MUI: the styled(${o})(...args) API requires all its args to be defined.`),r(...n)}:r}const $A=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},zA=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:wg,StyledEngineProvider:_g,ThemeContext:gn,css:Oc,default:IA,internal_processStyles:$A,keyframes:Wo},Symbol.toStringTag,{value:"Module"}));function WA(e){return Object.keys(e).length===0}function FA(e=null){const t=Z.useContext(gn);return!t||WA(t)?e:t}const jA=sd();function xg(e=jA){return FA(e)}function BA({props:e,name:t,defaultTheme:r,themeId:n}){let o=xg(r);return n&&(o=o[n]||o),zL({theme:o,name:t,props:e})}const HA=["sx"],VA=e=>{var t,r;const n={systemProps:{},otherProps:{}},o=(t=e==null||(r=e.theme)==null?void 0:r.unstable_sxConfig)!=null?t:Go;return Object.keys(e).forEach(a=>{o[a]?n.systemProps[a]=e[a]:n.otherProps[a]=e[a]}),n};function Cg(e){const{sx:t}=e,r=Se(e,HA),{systemProps:n,otherProps:o}=VA(r);let a;return Array.isArray(t)?a=[n,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return fn(u)?te({},n,u):n}:a=te({},n,t),te({},o,{sx:a})}const UA=Object.freeze(Object.defineProperty({__proto__:null,default:Ds,extendSxProp:Cg,unstable_createStyleFunctionSx:yg,unstable_defaultSxConfig:Go},Symbol.toStringTag,{value:"Module"})),tp=e=>e,qA=()=>{let e=tp;return{configure(t){e=t},generate(t){return e(t)},reset(){e=tp}}},GA=qA(),Tg={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 Je(e,t,r="Mui"){const n=Tg[t];return n?`${r}-${n}`:`${GA.generate(e)}-${t}`}function YA(e,t){return te({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var ut={};const XA=R.getAugmentedNamespace(UL);function ZA(e,t=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,r))}const KA=Object.freeze(Object.defineProperty({__proto__:null,default:ZA},Symbol.toStringTag,{value:"Module"})),QA=R.getAugmentedNamespace(KA);var Eg=Ye;Object.defineProperty(ut,"__esModule",{value:!0});var it=ut.alpha=Og;ut.blend=lI;ut.colorChannel=void 0;var rs=ut.darken=ud;ut.decomposeColor=or;var rp=ut.emphasize=kg,np=ut.getContrastRatio=nI;ut.getLuminance=ns;ut.hexToRgb=Mg;ut.hslToRgb=Rg;var Sg=ut.lighten=cd;ut.private_safeAlpha=iI;ut.private_safeColorChannel=void 0;ut.private_safeDarken=oI;ut.private_safeEmphasize=sI;ut.private_safeLighten=aI;ut.recomposeColor=Ii;ut.rgbToHex=rI;var ip=Eg(XA),JA=Eg(QA);function ld(e,t=0,r=1){return process.env.NODE_ENV!=="production"&&(e<t||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${t}, ${r}].`),(0,JA.default)(e,t,r)}function Mg(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(t);return r&&r[0].length===1&&(r=r.map(n=>n+n)),r?`rgb${r.length===4?"a":""}(${r.map((n,o)=>o<3?parseInt(n,16):Math.round(parseInt(n,16)/255*1e3)/1e3).join(", ")})`:""}function eI(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function or(e){if(e.type)return e;if(e.charAt(0)==="#")return or(Mg(e));const t=e.indexOf("("),r=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(r)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
|
|
125
|
+
The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:(0,ip.default)(9,e));let n=e.substring(t+1,e.length-1),o;if(r==="color"){if(n=n.split(" "),o=n.shift(),n.length===4&&n[3].charAt(0)==="/"&&(n[3]=n[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${o}\` color space.
|
|
126
|
+
The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:(0,ip.default)(10,o))}else n=n.split(",");return n=n.map(a=>parseFloat(a)),{type:r,values:n,colorSpace:o}}const Pg=e=>{const t=or(e);return t.values.slice(0,3).map((r,n)=>t.type.indexOf("hsl")!==-1&&n!==0?`${r}%`:r).join(" ")};ut.colorChannel=Pg;const tI=(e,t)=>{try{return Pg(e)}catch(r){return t&&process.env.NODE_ENV!=="production"&&console.warn(t),e}};ut.private_safeColorChannel=tI;function Ii(e){const{type:t,colorSpace:r}=e;let{values:n}=e;return t.indexOf("rgb")!==-1?n=n.map((o,a)=>a<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(n[1]=`${n[1]}%`,n[2]=`${n[2]}%`),t.indexOf("color")!==-1?n=`${r} ${n.join(" ")}`:n=`${n.join(", ")}`,`${t}(${n})`}function rI(e){if(e.indexOf("#")===0)return e;const{values:t}=or(e);return`#${t.map((r,n)=>eI(n===3?Math.round(255*r):r)).join("")}`}function Rg(e){e=or(e);const{values:t}=e,r=t[0],n=t[1]/100,o=t[2]/100,a=n*Math.min(o,1-o),l=(f,p=(f+r/30)%12)=>o-a*Math.max(Math.min(p-3,9-p,1),-1);let u="rgb";const c=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",c.push(t[3])),Ii({type:u,values:c})}function ns(e){e=or(e);let t=e.type==="hsl"||e.type==="hsla"?or(Rg(e)).values:e.values;return t=t.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:Vt((r+.055)/1.055,2.4))),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nI(e,t){const r=ns(e),n=ns(t);return(Math.max(r,n)+.05)/(Math.min(r,n)+.05)}function Og(e,t){return e=or(e),t=ld(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ii(e)}function iI(e,t,r){try{return Og(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function ud(e,t){if(e=or(e),t=ld(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]*=1-t;return Ii(e)}function oI(e,t,r){try{return ud(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function cd(e,t){if(e=or(e),t=ld(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*t;else if(e.type.indexOf("color")!==-1)for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*t;return Ii(e)}function aI(e,t,r){try{return cd(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function kg(e,t=.15){return ns(e)>.5?ud(e,t):cd(e,t)}function sI(e,t,r){try{return kg(e,t)}catch(n){return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function lI(e,t,r,n=1){const o=(c,f)=>Math.round(Vt(Vt(c,1/n)*(1-r)+Vt(f,1/n)*r,n)),a=or(e),l=or(t),u=[o(a.values[0],l.values[0]),o(a.values[1],l.values[1]),o(a.values[2],l.values[2])];return Ii({type:"rgb",values:u})}const Po={black:"#000",white:"#fff"},uI={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"},li={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"},ui={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"},io={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"},ci={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"},di={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"},fi={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"},cI=["mode","contrastThreshold","tonalOffset"],op={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:Po.white,default:Po.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}},Zl={text:{primary:Po.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:Po.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 ap(e,t,r,n){const o=n.light||n,a=n.dark||n*1.5;e[t]||(e.hasOwnProperty(r)?e[t]=e[r]:t==="light"?e.light=Sg(e.main,o):t==="dark"&&(e.dark=rs(e.main,a)))}function dI(e="light"){return e==="dark"?{main:ci[200],light:ci[50],dark:ci[400]}:{main:ci[700],light:ci[400],dark:ci[800]}}function fI(e="light"){return e==="dark"?{main:li[200],light:li[50],dark:li[400]}:{main:li[500],light:li[300],dark:li[700]}}function hI(e="light"){return e==="dark"?{main:ui[500],light:ui[300],dark:ui[700]}:{main:ui[700],light:ui[400],dark:ui[800]}}function pI(e="light"){return e==="dark"?{main:di[400],light:di[300],dark:di[700]}:{main:di[700],light:di[500],dark:di[900]}}function mI(e="light"){return e==="dark"?{main:fi[400],light:fi[300],dark:fi[700]}:{main:fi[800],light:fi[500],dark:fi[900]}}function vI(e="light"){return e==="dark"?{main:io[400],light:io[300],dark:io[700]}:{main:"#ed6c02",light:io[500],dark:io[900]}}function gI(e){const{mode:t="light",contrastThreshold:r=3,tonalOffset:n=.2}=e,o=Se(e,cI),a=e.primary||dI(t),l=e.secondary||fI(t),u=e.error||hI(t),c=e.info||pI(t),f=e.success||mI(t),p=e.warning||vI(t);function m(y){const x=np(y,Zl.text.primary)>=r?Zl.text.primary:op.text.primary;if(process.env.NODE_ENV!=="production"){const S=np(y,x);S<3&&console.error([`MUI: The contrast ratio of ${S}:1 for ${x} on ${y}`,"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(`
|
|
127
|
+
`))}return x}const h=({color:y,name:x,mainShade:S=500,lightShade:E=300,darkShade:T=700})=>{if(y=te({},y),!y.main&&y[S]&&(y.main=y[S]),!y.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
128
|
+
The color object needs to have a \`main\` property or a \`${S}\` property.`:Mo(11,x?` (${x})`:"",S));if(typeof y.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${x?` (${x})`:""} provided to augmentColor(color) is invalid.
|
|
129
|
+
\`color.main\` should be a string, but \`${JSON.stringify(y.main)}\` was provided instead.
|
|
130
|
+
|
|
131
|
+
Did you intend to use one of the following approaches?
|
|
132
|
+
|
|
133
|
+
import { green } from "@mui/material/colors";
|
|
134
|
+
|
|
135
|
+
const theme1 = createTheme({ palette: {
|
|
136
|
+
primary: green,
|
|
137
|
+
} });
|
|
138
|
+
|
|
139
|
+
const theme2 = createTheme({ palette: {
|
|
140
|
+
primary: { main: green[500] },
|
|
141
|
+
} });`:Mo(12,x?` (${x})`:"",JSON.stringify(y.main)));return ap(y,"light",E,n),ap(y,"dark",T,n),y.contrastText||(y.contrastText=m(y.main)),y},g={dark:Zl,light:op};return process.env.NODE_ENV!=="production"&&(g[t]||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Ar(te({common:te({},Po),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:u,name:"error"}),warning:h({color:p,name:"warning"}),info:h({color:c,name:"info"}),success:h({color:f,name:"success"}),grey:uI,contrastThreshold:r,getContrastText:m,augmentColor:h,tonalOffset:n},g[t]),o)}const yI=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function bI(e){return Math.round(e*1e5)/1e5}const sp={textTransform:"uppercase"},lp='"Roboto", "Helvetica", "Arial", sans-serif';function _I(e,t){const r=typeof t=="function"?t(e):t,{fontFamily:n=lp,fontSize:o=14,fontWeightLight:a=300,fontWeightRegular:l=400,fontWeightMedium:u=500,fontWeightBold:c=700,htmlFontSize:f=16,allVariants:p,pxToRem:m}=r,h=Se(r,yI);process.env.NODE_ENV!=="production"&&(typeof o!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof f!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const g=o/14,_=m||(S=>`${S/f*g}rem`),y=(S,E,T,C,w)=>te({fontFamily:n,fontWeight:S,fontSize:_(E),lineHeight:T},n===lp?{letterSpacing:`${bI(C/E)}em`}:{},w,p),x={h1:y(a,96,1.167,-1.5),h2:y(a,60,1.2,-.5),h3:y(l,48,1.167,0),h4:y(l,34,1.235,.25),h5:y(l,24,1.334,0),h6:y(u,20,1.6,.15),subtitle1:y(l,16,1.75,.15),subtitle2:y(u,14,1.57,.1),body1:y(l,16,1.5,.15),body2:y(l,14,1.43,.15),button:y(u,14,1.75,.4,sp),caption:y(l,12,1.66,.4),overline:y(l,12,2.66,1,sp),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Ar(te({htmlFontSize:f,pxToRem:_,fontFamily:n,fontSize:o,fontWeightLight:a,fontWeightRegular:l,fontWeightMedium:u,fontWeightBold:c},x),h,{clone:!1})}const wI=.2,xI=.14,CI=.12;function Xe(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${wI})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${xI})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${CI})`].join(",")}const TI=["none",Xe(0,2,1,-1,0,1,1,0,0,1,3,0),Xe(0,3,1,-2,0,2,2,0,0,1,5,0),Xe(0,3,3,-2,0,3,4,0,0,1,8,0),Xe(0,2,4,-1,0,4,5,0,0,1,10,0),Xe(0,3,5,-1,0,5,8,0,0,1,14,0),Xe(0,3,5,-1,0,6,10,0,0,1,18,0),Xe(0,4,5,-2,0,7,10,1,0,2,16,1),Xe(0,5,5,-3,0,8,10,1,0,3,14,2),Xe(0,5,6,-3,0,9,12,1,0,3,16,2),Xe(0,6,6,-3,0,10,14,1,0,4,18,3),Xe(0,6,7,-4,0,11,15,1,0,4,20,3),Xe(0,7,8,-4,0,12,17,2,0,5,22,4),Xe(0,7,8,-4,0,13,19,2,0,5,24,4),Xe(0,7,9,-4,0,14,21,2,0,5,26,4),Xe(0,8,9,-5,0,15,22,2,0,6,28,5),Xe(0,8,10,-5,0,16,24,2,0,6,30,5),Xe(0,8,11,-5,0,17,26,2,0,6,32,5),Xe(0,9,11,-5,0,18,28,2,0,7,34,6),Xe(0,9,12,-6,0,19,29,2,0,7,36,6),Xe(0,10,13,-6,0,20,31,3,0,8,38,7),Xe(0,10,13,-6,0,21,33,3,0,8,40,7),Xe(0,10,14,-6,0,22,35,3,0,8,42,7),Xe(0,11,14,-7,0,23,36,3,0,9,44,8),Xe(0,11,15,-7,0,24,38,3,0,9,46,8)],EI=["duration","easing","delay"],SI={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)"},MI={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function up(e){return`${Math.round(e)}ms`}function PI(e){if(!e)return 0;const t=e/36;return Math.round((4+15*Vt(t,.25)+t/5)*10)}function RI(e){const t=te({},SI,e.easing),r=te({},MI,e.duration);return te({getAutoHeightDuration:PI,create:(o=["all"],a={})=>{const{duration:l=r.standard,easing:u=t.easeInOut,delay:c=0}=a,f=Se(a,EI);if(process.env.NODE_ENV!=="production"){const p=h=>typeof h=="string",m=h=>!isNaN(parseFloat(h));!p(o)&&!Array.isArray(o)&&console.error('MUI: Argument "props" must be a string or Array.'),!m(l)&&!p(l)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${l}.`),p(u)||console.error('MUI: Argument "easing" must be a string.'),!m(c)&&!p(c)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="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(`
|
|
142
|
+
`)),Object.keys(f).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(f).join(",")}].`)}return(Array.isArray(o)?o:[o]).map(p=>`${p} ${typeof l=="string"?l:up(l)} ${u} ${typeof c=="string"?c:up(c)}`).join(",")}},e,{easing:t,duration:r})}const OI={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},kI=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function NI(e={},...t){const{mixins:r={},palette:n={},transitions:o={},typography:a={}}=e,l=Se(e,kI);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.":Mo(18));const u=gI(n),c=sd(e);let f=Ar(c,{mixins:YA(c.breakpoints,r),palette:u,shadows:TI.slice(),typography:_I(u,a),transitions:RI(o),zIndex:te({},OI)});if(f=Ar(f,l),f=t.reduce((p,m)=>Ar(p,m),f),process.env.NODE_ENV!=="production"){const p=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],m=(h,g)=>{let _;for(_ in h){const y=h[_];if(p.indexOf(_)!==-1&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const x=Je("",_);console.error([`MUI: The \`${g}\` component increases the CSS specificity of the \`${_}\` internal state.`,"You can not override it like this: ",JSON.stringify(h,null,2),"",`Instead, you need to use the '&.${x}' syntax:`,JSON.stringify({root:{[`&.${x}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
|
|
143
|
+
`))}h[_]={}}}};Object.keys(f.components).forEach(h=>{const g=f.components[h].styleOverrides;g&&h.indexOf("Mui")===0&&m(g,h)})}return f.unstable_sxConfig=te({},Go,l==null?void 0:l.unstable_sxConfig),f.unstable_sx=function(m){return Ds({sx:m,theme:this})},f}const dd=NI(),fd="$$material";function et({props:e,name:t}){return BA({props:e,name:t,defaultTheme:dd,themeId:fd})}function Ze(e,t,r="Mui"){const n={};return t.forEach(o=>{n[o]=Je(e,o,r)}),n}function DI(e){return Je("MuiPagination",e)}Ze("MuiPagination",["root","ul","outlined","text"]);function hd({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=Z.useRef(e!==void 0),[a,l]=Z.useState(t),u=o?e:a;if(process.env.NODE_ENV!=="production"){Z.useEffect(()=>{o!==(e!==void 0)&&console.error([`MUI: A component is changing the ${o?"":"un"}controlled ${n} state of ${r} to be ${o?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${r} 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(`
|
|
144
|
+
`))},[n,r,e]);const{current:f}=Z.useRef(t);Z.useEffect(()=>{!o&&f!==t&&console.error([`MUI: A component is changing the default ${n} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(`
|
|
145
|
+
`))},[JSON.stringify(t)])}const c=Z.useCallback(f=>{o||l(f)},[]);return[u,c]}const LI=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function AI(e={}){const{boundaryCount:t=1,componentName:r="usePagination",count:n=1,defaultPage:o=1,disabled:a=!1,hideNextButton:l=!1,hidePrevButton:u=!1,onChange:c,page:f,showFirstButton:p=!1,showLastButton:m=!1,siblingCount:h=1}=e,g=Se(e,LI),[_,y]=hd({controlled:f,default:o,name:r,state:"page"}),x=(A,$)=>{f||y($),c&&c(A,$)},S=(A,$)=>{const N=$-A+1;return Array.from({length:N},(k,F)=>A+F)},E=S(1,Math.min(t,n)),T=S(Math.max(n-t+1,t+1),n),C=Math.max(Math.min(_-h,n-t-h*2-1),t+2),w=Math.min(Math.max(_+h,t+h*2+2),T.length>0?T[0]-2:n-1),M=[...p?["first"]:[],...u?[]:["previous"],...E,...C>t+2?["start-ellipsis"]:t+1<n-t?[t+1]:[],...S(C,w),...w<n-t-1?["end-ellipsis"]:n-t>t?[n-t]:[],...T,...l?[]:["next"],...m?["last"]:[]],O=A=>{switch(A){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return n;default:return null}},D=M.map(A=>typeof A=="number"?{onClick:$=>{x($,A)},type:"page",page:A,selected:A===_,disabled:a,"aria-current":A===_?"true":void 0}:{onClick:$=>{x($,O(A))},type:A,page:O(A),selected:!1,disabled:a||A.indexOf("ellipsis")===-1&&(A==="next"||A==="last"?_>=n:_<=1)});return te({items:D},g)}const II=Z.createContext(),pd=()=>{const e=Z.useContext(II);return e!=null?e:!1};function $I(e){return Je("MuiPaginationItem",e)}const Jt=Ze("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon","colorPrimary","colorSecondary"]),Yo=v.oneOfType([v.func,v.object]);function bn(e,t){return process.env.NODE_ENV==="production"?()=>null:function(...n){return e(...n)||t(...n)}}function zI(e){const{prototype:t={}}=e;return!!t.isReactComponent}function WI(e,t,r,n,o){const a=e[t],l=o||t;if(a==null||typeof window=="undefined")return null;let u;return typeof a=="function"&&!zI(a)&&(u="Did you accidentally provide a plain function component instead?"),u!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Ng=bn(v.elementType,WI);var Xo={};const FI=R.getAugmentedNamespace(y0);var Kl={exports:{}},cp;function jI(){return cp||(cp=1,function(e){function t(r,n){if(r==null)return{};var o={};for(var a in r)if(Object.prototype.hasOwnProperty.call(r,a)){if(n.indexOf(a)>=0)continue;o[a]=r[a]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(Kl)),Kl.exports}const Dg=R.getAugmentedNamespace(zA),BI=R.getAugmentedNamespace(WL),HI=R.getAugmentedNamespace(qL);var tc={exports:{}},Be={};/**
|
|
146
|
+
* @license React
|
|
147
|
+
* react-is.production.min.js
|
|
148
|
+
*
|
|
149
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
150
|
+
*
|
|
151
|
+
* This source code is licensed under the MIT license found in the
|
|
152
|
+
* LICENSE file in the root directory of this source tree.
|
|
153
|
+
*/var dp;function VI(){if(dp)return Be;dp=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_;_=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case e:switch(x=x.type,x){case r:case o:case n:case f:case p:return x;default:switch(x=x&&x.$$typeof,x){case u:case l:case c:case h:case m:case a:return x;default:return S}}case t:return S}}}return Be.ContextConsumer=l,Be.ContextProvider=a,Be.Element=e,Be.ForwardRef=c,Be.Fragment=r,Be.Lazy=h,Be.Memo=m,Be.Portal=t,Be.Profiler=o,Be.StrictMode=n,Be.Suspense=f,Be.SuspenseList=p,Be.isAsyncMode=function(){return!1},Be.isConcurrentMode=function(){return!1},Be.isContextConsumer=function(x){return y(x)===l},Be.isContextProvider=function(x){return y(x)===a},Be.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===e},Be.isForwardRef=function(x){return y(x)===c},Be.isFragment=function(x){return y(x)===r},Be.isLazy=function(x){return y(x)===h},Be.isMemo=function(x){return y(x)===m},Be.isPortal=function(x){return y(x)===t},Be.isProfiler=function(x){return y(x)===o},Be.isStrictMode=function(x){return y(x)===n},Be.isSuspense=function(x){return y(x)===f},Be.isSuspenseList=function(x){return y(x)===p},Be.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===r||x===o||x===n||x===f||x===p||x===g||typeof x=="object"&&x!==null&&(x.$$typeof===h||x.$$typeof===m||x.$$typeof===a||x.$$typeof===l||x.$$typeof===c||x.$$typeof===_||x.getModuleId!==void 0)},Be.typeOf=y,Be}var He={};/**
|
|
154
|
+
* @license React
|
|
155
|
+
* react-is.development.js
|
|
156
|
+
*
|
|
157
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the MIT license found in the
|
|
160
|
+
* LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/var fp;function UI(){return fp||(fp=1,process.env.NODE_ENV!=="production"&&function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.server_context"),c=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),m=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),g=Symbol.for("react.offscreen"),_=!1,y=!1,x=!1,S=!1,E=!1,T;T=Symbol.for("react.module.reference");function C(de){return!!(typeof de=="string"||typeof de=="function"||de===r||de===o||E||de===n||de===f||de===p||S||de===g||_||y||x||typeof de=="object"&&de!==null&&(de.$$typeof===h||de.$$typeof===m||de.$$typeof===a||de.$$typeof===l||de.$$typeof===c||de.$$typeof===T||de.getModuleId!==void 0))}function w(de){if(typeof de=="object"&&de!==null){var _e=de.$$typeof;switch(_e){case e:var we=de.type;switch(we){case r:case o:case n:case f:case p:return we;default:var Ee=we&&we.$$typeof;switch(Ee){case u:case l:case c:case h:case m:case a:return Ee;default:return _e}}case t:return _e}}}var M=l,O=a,D=e,A=c,$=r,N=h,k=m,F=t,j=o,I=n,B=f,G=p,q=!1,U=!1;function z(de){return q||(q=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function H(de){return U||(U=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(de){return w(de)===l}function X(de){return w(de)===a}function K(de){return typeof de=="object"&&de!==null&&de.$$typeof===e}function J(de){return w(de)===c}function ne(de){return w(de)===r}function le(de){return w(de)===h}function se(de){return w(de)===m}function ue(de){return w(de)===t}function fe(de){return w(de)===o}function pe(de){return w(de)===n}function ae(de){return w(de)===f}function ve(de){return w(de)===p}He.ContextConsumer=M,He.ContextProvider=O,He.Element=D,He.ForwardRef=A,He.Fragment=$,He.Lazy=N,He.Memo=k,He.Portal=F,He.Profiler=j,He.StrictMode=I,He.Suspense=B,He.SuspenseList=G,He.isAsyncMode=z,He.isConcurrentMode=H,He.isContextConsumer=ee,He.isContextProvider=X,He.isElement=K,He.isForwardRef=J,He.isFragment=ne,He.isLazy=le,He.isMemo=se,He.isPortal=ue,He.isProfiler=fe,He.isStrictMode=pe,He.isSuspense=ae,He.isSuspenseList=ve,He.isValidElementType=C,He.typeOf=w}()),He}process.env.NODE_ENV==="production"?tc.exports=VI():tc.exports=UI();var Ro=tc.exports;const qI=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Lg(e){const t=`${e}`.match(qI);return t&&t[1]||""}function Ag(e,t=""){return e.displayName||e.name||Lg(e)||t}function hp(e,t,r){const n=Ag(t);return e.displayName||(n!==""?`${r}(${n})`:r)}function GI(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Ag(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Ro.ForwardRef:return hp(e,e.render,"ForwardRef");case Ro.Memo:return hp(e,e.type,"memo");default:return}}}const YI=Object.freeze(Object.defineProperty({__proto__:null,default:GI,getFunctionName:Lg},Symbol.toStringTag,{value:"Module"})),XI=R.getAugmentedNamespace(YI),ZI=R.getAugmentedNamespace(LA),KI=R.getAugmentedNamespace(UA);var $i=Ye;Object.defineProperty(Xo,"__esModule",{value:!0});var QI=Xo.default=f5;Xo.shouldForwardProp=Va;Xo.systemDefaultTheme=void 0;var er=$i(FI),rc=$i(jI()),pp=s5(Dg),JI=BI,e5=$i(HI),t5=$i(XI),r5=$i(ZI),n5=$i(KI);const i5=["ownerState"],o5=["variants"],a5=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Ig(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(Ig=function(n){return n?r:t})(e)}function s5(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=Ig(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function l5(e){return Object.keys(e).length===0}function u5(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Va(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const c5=Xo.systemDefaultTheme=(0,r5.default)(),mp=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Da({defaultTheme:e,theme:t,themeId:r}){return l5(t)?e:t[r]||t}function d5(e){return e?(t,r)=>r[e]:null}function Ua(e,t){let{ownerState:r}=t,n=(0,rc.default)(t,i5);const o=typeof e=="function"?e((0,er.default)({ownerState:r},n)):e;if(Array.isArray(o))return o.flatMap(a=>Ua(a,(0,er.default)({ownerState:r},n)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:a=[]}=o;let u=(0,rc.default)(o,o5);return a.forEach(c=>{let f=!0;typeof c.props=="function"?f=c.props((0,er.default)({ownerState:r},n,r)):Object.keys(c.props).forEach(p=>{(r==null?void 0:r[p])!==c.props[p]&&n[p]!==c.props[p]&&(f=!1)}),f&&(Array.isArray(u)||(u=[u]),u.push(typeof c.style=="function"?c.style((0,er.default)({ownerState:r},n,r)):c.style))}),u}return o}function f5(e={}){const{themeId:t,defaultTheme:r=c5,rootShouldForwardProp:n=Va,slotShouldForwardProp:o=Va}=e,a=l=>(0,n5.default)((0,er.default)({},l,{theme:Da((0,er.default)({},l,{defaultTheme:r,themeId:t}))}));return a.__mui_systemSx=!0,(l,u={})=>{(0,pp.internal_processStyles)(l,w=>w.filter(M=>!(M!=null&&M.__mui_systemSx)));const{name:c,slot:f,skipVariantsResolver:p,skipSx:m,overridesResolver:h=d5(mp(f))}=u,g=(0,rc.default)(u,a5),_=p!==void 0?p:f&&f!=="Root"&&f!=="root"||!1,y=m||!1;let x;process.env.NODE_ENV!=="production"&&c&&(x=`${c}-${mp(f||"Root")}`);let S=Va;f==="Root"||f==="root"?S=n:f?S=o:u5(l)&&(S=void 0);const E=(0,pp.default)(l,(0,er.default)({shouldForwardProp:S,label:x},g)),T=w=>typeof w=="function"&&w.__emotion_real!==w||(0,JI.isPlainObject)(w)?M=>Ua(w,(0,er.default)({},M,{theme:Da({theme:M.theme,defaultTheme:r,themeId:t})})):w,C=(w,...M)=>{let O=T(w);const D=M?M.map(T):[];c&&h&&D.push(N=>{const k=Da((0,er.default)({},N,{defaultTheme:r,themeId:t}));if(!k.components||!k.components[c]||!k.components[c].styleOverrides)return null;const F=k.components[c].styleOverrides,j={};return Object.entries(F).forEach(([I,B])=>{j[I]=Ua(B,(0,er.default)({},N,{theme:k}))}),h(N,j)}),c&&!_&&D.push(N=>{var k;const F=Da((0,er.default)({},N,{defaultTheme:r,themeId:t})),j=F==null||(k=F.components)==null||(k=k[c])==null?void 0:k.variants;return Ua({variants:j},(0,er.default)({},N,{theme:F}))}),y||D.push(a);const A=D.length-M.length;if(Array.isArray(w)&&A>0){const N=new Array(A).fill("");O=[...w,...N],O.raw=[...w.raw,...N]}const $=E(O,...D);if(process.env.NODE_ENV!=="production"){let N;c&&(N=`${c}${(0,e5.default)(f||"")}`),N===void 0&&(N=`Styled(${(0,t5.default)(l)})`),$.displayName=N}return l.muiName&&($.muiName=l.muiName),$};return E.withConfig&&(C.withConfig=E.withConfig),C}}function h5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Zo=e=>h5(e)&&e!=="classes",ke=QI({themeId:fd,defaultTheme:dd,rootShouldForwardProp:Zo});function nc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function At(...e){return Z.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{nc(r,t)})},e)}const jn=typeof window!="undefined"?Z.useLayoutEffect:Z.useEffect;function Gr(e){const t=Z.useRef(e);return jn(()=>{t.current=e}),Z.useRef((...r)=>(0,t.current)(...r)).current}const vp={};function p5(e,t){const r=Z.useRef(vp);return r.current===vp&&(r.current=e(t)),r}const m5=[];function v5(e){Z.useEffect(e,m5)}class Ko{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ko}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function wi(){const e=p5(Ko.create).current;return v5(e.disposeEffect),e}let Ls=!0,ic=!1;const g5=new Ko,y5={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 b5(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&y5[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function _5(e){e.metaKey||e.altKey||e.ctrlKey||(Ls=!0)}function Ql(){Ls=!1}function w5(){this.visibilityState==="hidden"&&ic&&(Ls=!0)}function x5(e){e.addEventListener("keydown",_5,!0),e.addEventListener("mousedown",Ql,!0),e.addEventListener("pointerdown",Ql,!0),e.addEventListener("touchstart",Ql,!0),e.addEventListener("visibilitychange",w5,!0)}function C5(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch(r){}return Ls||b5(t)}function $g(){const e=Z.useCallback(o=>{o!=null&&x5(o.ownerDocument)},[]),t=Z.useRef(!1);function r(){return t.current?(ic=!0,g5.start(100,()=>{ic=!1}),t.current=!1,!0):!1}function n(o){return C5(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function zg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,cu(e,t)}const gp={disabled:!1};var T5=process.env.NODE_ENV!=="production"?v.oneOfType([v.number,v.shape({enter:v.number,exit:v.number,appear:v.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&v.oneOfType([v.string,v.shape({enter:v.string,exit:v.string,active:v.string}),v.shape({enter:v.string,enterDone:v.string,enterActive:v.string,exit:v.string,exitDone:v.string,exitActive:v.string})]);const is=Q.createContext(null);var ho="unmounted",An="exited",In="entering",yi="entered",oc="exiting",Wr=function(e){zg(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var l=o,u=l&&!l.isMounting?n.enter:n.appear,c;return a.appearStatus=null,n.in?u?(c=An,a.appearStatus=In):c=yi:n.unmountOnExit||n.mountOnEnter?c=ho:c=An,a.state={status:c},a.nextCallback=null,a}t.getDerivedStateFromProps=function(o,a){var l=o.in;return l&&a.status===ho?{status:An}:null};var r=t.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(o){var a=null;if(o!==this.props){var l=this.state.status;this.props.in?l!==In&&l!==yi&&(a=In):(l===In||l===yi)&&(a=oc)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var o=this.props.timeout,a,l,u;return a=l=u=o,o!=null&&typeof o!="number"&&(a=o.exit,l=o.enter,u=o.appear!==void 0?o.appear:l),{exit:a,enter:l,appear:u}},r.updateStatus=function(o,a){o===void 0&&(o=!1),a!==null?(this.cancelNextCallback(),a===In?((this.props.unmountOnExit||this.props.mountOnEnter)&&(this.props.nodeRef?this.props.nodeRef.current:_i.findDOMNode(this)),this.performEnter(o)):this.performExit()):this.props.unmountOnExit&&this.state.status===An&&this.setState({status:ho})},r.performEnter=function(o){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:o,c=this.props.nodeRef?[u]:[_i.findDOMNode(this),u],f=c[0],p=c[1],m=this.getTimeouts(),h=u?m.appear:m.enter;if(!o&&!l||gp.disabled){this.safeSetState({status:yi},function(){a.props.onEntered(f)});return}this.props.onEnter(f,p),this.safeSetState({status:In},function(){a.props.onEntering(f,p),a.onTransitionEnd(h,function(){a.safeSetState({status:yi},function(){a.props.onEntered(f,p)})})})},r.performExit=function(){var o=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:_i.findDOMNode(this);if(!a||gp.disabled){this.safeSetState({status:An},function(){o.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:oc},function(){o.props.onExiting(u),o.onTransitionEnd(l.exit,function(){o.safeSetState({status:An},function(){o.props.onExited(u)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(o,a){a=this.setNextCallback(a),this.setState(o,a)},r.setNextCallback=function(o){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,o(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},r.onTransitionEnd=function(o,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:_i.findDOMNode(this),u=o==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=c[0],p=c[1];this.props.addEndListener(f,p)}o!=null&&setTimeout(this.nextCallback,o)},r.render=function(){var o=this.state.status;if(o===ho)return null;var a=this.props,l=a.children,u=Se(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Q.createElement(is.Provider,{value:null},typeof l=="function"?l(o,u):Q.cloneElement(Q.Children.only(l),u))},t}(Q.Component);Wr.contextType=is;Wr.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:v.shape({current:typeof Element=="undefined"?v.any:function(e,t,r,n,o,a){var l=e[t];return v.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,t,r,n,o,a)}}),children:v.oneOfType([v.func.isRequired,v.element.isRequired]).isRequired,in:v.bool,mountOnEnter:v.bool,unmountOnExit:v.bool,appear:v.bool,enter:v.bool,exit:v.bool,timeout:function(t){var r=T5;t.addEndListener||(r=r.isRequired);for(var n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return r.apply(void 0,[t].concat(o))},addEndListener:v.func,onEnter:v.func,onEntering:v.func,onEntered:v.func,onExit:v.func,onExiting:v.func,onExited:v.func}:{};function hi(){}Wr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:hi,onEntering:hi,onEntered:hi,onExit:hi,onExiting:hi,onExited:hi};Wr.UNMOUNTED=ho;Wr.EXITED=An;Wr.ENTERING=In;Wr.ENTERED=yi;Wr.EXITING=oc;function md(e,t){var r=function(a){return t&&Q.isValidElement(a)?t(a):a},n=Object.create(null);return e&&Q.Children.map(e,function(o){return o}).forEach(function(o){n[o.key]=r(o)}),n}function E5(e,t){e=e||{},t=t||{};function r(p){return p in t?t[p]:e[p]}var n=Object.create(null),o=[];for(var a in e)a in t?o.length&&(n[a]=o,o=[]):o.push(a);var l,u={};for(var c in t){if(n[c])for(l=0;l<n[c].length;l++){var f=n[c][l];u[n[c][l]]=r(f)}u[c]=r(c)}for(l=0;l<o.length;l++)u[o[l]]=r(o[l]);return u}function $n(e,t,r){return r[t]!=null?r[t]:e.props[t]}function S5(e,t){return md(e.children,function(r){return Q.cloneElement(r,{onExited:t.bind(null,r),in:!0,appear:$n(r,"appear",e),enter:$n(r,"enter",e),exit:$n(r,"exit",e)})})}function M5(e,t,r){var n=md(e.children),o=E5(t,n);return Object.keys(o).forEach(function(a){var l=o[a];if(Q.isValidElement(l)){var u=a in t,c=a in n,f=t[a],p=Q.isValidElement(f)&&!f.props.in;c&&(!u||p)?o[a]=Q.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:$n(l,"exit",e),enter:$n(l,"enter",e)}):!c&&u&&!p?o[a]=Q.cloneElement(l,{in:!1}):c&&u&&Q.isValidElement(f)&&(o[a]=Q.cloneElement(l,{onExited:r.bind(null,l),in:f.props.in,exit:$n(l,"exit",e),enter:$n(l,"enter",e)}))}}),o}var P5=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},R5={component:"div",childFactory:function(t){return t}},vd=function(e){zg(t,e);function t(n,o){var a;a=e.call(this,n,o)||this;var l=a.handleExited.bind(zx(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var r=t.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,a){var l=a.children,u=a.handleExited,c=a.firstRender;return{children:c?S5(o,u):M5(o,l,u),firstRender:!1}},r.handleExited=function(o,a){var l=md(this.props.children);o.key in l||(o.props.onExited&&o.props.onExited(a),this.mounted&&this.setState(function(u){var c=te({},u.children);return delete c[o.key],{children:c}}))},r.render=function(){var o=this.props,a=o.component,l=o.childFactory,u=Se(o,["component","childFactory"]),c=this.state.contextValue,f=P5(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,a===null?Q.createElement(is.Provider,{value:c},f):Q.createElement(is.Provider,{value:c},Q.createElement(a,u,f))},t}(Q.Component);vd.propTypes=process.env.NODE_ENV!=="production"?{component:v.any,children:v.node,appear:v.bool,enter:v.bool,exit:v.bool,childFactory:v.func}:{};vd.defaultProps=R5;function O5(e){const{prototype:t={}}=e;return!!t.isReactComponent}function Wg(e,t,r,n,o){const a=e[t],l=o||t;if(a==null||typeof window=="undefined")return null;let u;const c=a.type;return typeof c=="function"&&!O5(c)&&(u="Did you accidentally use a plain function component for an element instead?"),u!==void 0?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${u} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const qn=bn(v.element,Wg);qn.isRequired=bn(v.element.isRequired,Wg);const k5="exact-prop: ";function gd(e){return process.env.NODE_ENV==="production"?e:te({},e,{[k5]:t=>{const r=Object.keys(t).filter(n=>!e.hasOwnProperty(n));return r.length>0?new Error(`The following props are not supported: ${r.map(n=>`\`${n}\``).join(", ")}. Please remove them.`):null}})}function Xr(e,t,r,n,o){if(process.env.NODE_ENV==="production")return null;const a=e[t],l=o||t;return a==null?null:a&&a.nodeType!==1?new Error(`Invalid ${n} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}function yp(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function N5(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Lt(e){return e&&e.ownerDocument||document}function Oo(e){return Lt(e).defaultView||window}let bp=0;function D5(e){const[t,r]=Z.useState(e),n=e||t;return Z.useEffect(()=>{t==null&&(bp+=1,r(`mui-${bp}`))},[t]),n}const _p=Z[`useId${Math.random()}`.slice(0,5)];function Fg(e){if(_p!==void 0){const t=_p();return e!=null?e:t}return D5(e)}function jg(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function Bg(e){const{className:t,classes:r,pulsate:n=!1,rippleX:o,rippleY:a,rippleSize:l,in:u,onExited:c,timeout:f}=e,[p,m]=Z.useState(!1),h=Oe(t,r.ripple,r.rippleVisible,n&&r.ripplePulsate),g={width:l,height:l,top:-(l/2)+a,left:-(l/2)+o},_=Oe(r.child,p&&r.childLeaving,n&&r.childPulsate);return!u&&!p&&m(!0),Z.useEffect(()=>{if(!u&&c!=null){const y=setTimeout(c,f);return()=>{clearTimeout(y)}}},[c,u,f]),V.jsx("span",{className:h,style:g,children:V.jsx("span",{className:_})})}process.env.NODE_ENV!=="production"&&(Bg.propTypes={classes:v.object.isRequired,className:v.string,in:v.bool,onExited:v.func,pulsate:v.bool,rippleSize:v.number,rippleX:v.number,rippleY:v.number,timeout:v.number.isRequired});const rr=Ze("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),L5=["center","classes","className"];let As=e=>e,wp,xp,Cp,Tp;const ac=550,A5=80,I5=Wo(wp||(wp=As`
|
|
162
|
+
0% {
|
|
163
|
+
transform: scale(0);
|
|
164
|
+
opacity: 0.1;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
100% {
|
|
168
|
+
transform: scale(1);
|
|
169
|
+
opacity: 0.3;
|
|
170
|
+
}
|
|
171
|
+
`)),$5=Wo(xp||(xp=As`
|
|
172
|
+
0% {
|
|
173
|
+
opacity: 1;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
100% {
|
|
177
|
+
opacity: 0;
|
|
178
|
+
}
|
|
179
|
+
`)),z5=Wo(Cp||(Cp=As`
|
|
180
|
+
0% {
|
|
181
|
+
transform: scale(1);
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
50% {
|
|
185
|
+
transform: scale(0.92);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
100% {
|
|
189
|
+
transform: scale(1);
|
|
190
|
+
}
|
|
191
|
+
`)),W5=ke("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),F5=ke(Bg,{name:"MuiTouchRipple",slot:"Ripple"})(Tp||(Tp=As`
|
|
192
|
+
opacity: 0;
|
|
193
|
+
position: absolute;
|
|
194
|
+
|
|
195
|
+
&.${0} {
|
|
196
|
+
opacity: 0.3;
|
|
197
|
+
transform: scale(1);
|
|
198
|
+
animation-name: ${0};
|
|
199
|
+
animation-duration: ${0}ms;
|
|
200
|
+
animation-timing-function: ${0};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&.${0} {
|
|
204
|
+
animation-duration: ${0}ms;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
& .${0} {
|
|
208
|
+
opacity: 1;
|
|
209
|
+
display: block;
|
|
210
|
+
width: 100%;
|
|
211
|
+
height: 100%;
|
|
212
|
+
border-radius: 50%;
|
|
213
|
+
background-color: currentColor;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
& .${0} {
|
|
217
|
+
opacity: 0;
|
|
218
|
+
animation-name: ${0};
|
|
219
|
+
animation-duration: ${0}ms;
|
|
220
|
+
animation-timing-function: ${0};
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
& .${0} {
|
|
224
|
+
position: absolute;
|
|
225
|
+
/* @noflip */
|
|
226
|
+
left: 0px;
|
|
227
|
+
top: 0;
|
|
228
|
+
animation-name: ${0};
|
|
229
|
+
animation-duration: 2500ms;
|
|
230
|
+
animation-timing-function: ${0};
|
|
231
|
+
animation-iteration-count: infinite;
|
|
232
|
+
animation-delay: 200ms;
|
|
233
|
+
}
|
|
234
|
+
`),rr.rippleVisible,I5,ac,({theme:e})=>e.transitions.easing.easeInOut,rr.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,rr.child,rr.childLeaving,$5,ac,({theme:e})=>e.transitions.easing.easeInOut,rr.childPulsate,z5,({theme:e})=>e.transitions.easing.easeInOut),Hg=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:a={},className:l}=n,u=Se(n,L5),[c,f]=Z.useState([]),p=Z.useRef(0),m=Z.useRef(null);Z.useEffect(()=>{m.current&&(m.current(),m.current=null)},[c]);const h=Z.useRef(!1),g=wi(),_=Z.useRef(null),y=Z.useRef(null),x=Z.useCallback(C=>{const{pulsate:w,rippleX:M,rippleY:O,rippleSize:D,cb:A}=C;f($=>[...$,V.jsx(F5,{classes:{ripple:Oe(a.ripple,rr.ripple),rippleVisible:Oe(a.rippleVisible,rr.rippleVisible),ripplePulsate:Oe(a.ripplePulsate,rr.ripplePulsate),child:Oe(a.child,rr.child),childLeaving:Oe(a.childLeaving,rr.childLeaving),childPulsate:Oe(a.childPulsate,rr.childPulsate)},timeout:ac,pulsate:w,rippleX:M,rippleY:O,rippleSize:D},p.current)]),p.current+=1,m.current=A},[a]),S=Z.useCallback((C={},w={},M=()=>{})=>{const{pulsate:O=!1,center:D=o||w.pulsate,fakeElement:A=!1}=w;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const $=A?null:y.current,N=$?$.getBoundingClientRect():{width:0,height:0,left:0,top:0};let k,F,j;if(D||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)k=Math.round(N.width/2),F=Math.round(N.height/2);else{const{clientX:I,clientY:B}=C.touches&&C.touches.length>0?C.touches[0]:C;k=Math.round(I-N.left),F=Math.round(B-N.top)}if(D)j=Math.sqrt((2*Vt(N.width,2)+Vt(N.height,2))/3),j%2===0&&(j+=1);else{const I=Math.max(Math.abs(($?$.clientWidth:0)-k),k)*2+2,B=Math.max(Math.abs(($?$.clientHeight:0)-F),F)*2+2;j=Math.sqrt(Vt(I,2)+Vt(B,2))}C!=null&&C.touches?_.current===null&&(_.current=()=>{x({pulsate:O,rippleX:k,rippleY:F,rippleSize:j,cb:M})},g.start(A5,()=>{_.current&&(_.current(),_.current=null)})):x({pulsate:O,rippleX:k,rippleY:F,rippleSize:j,cb:M})},[o,x,g]),E=Z.useCallback(()=>{S({},{pulsate:!0})},[S]),T=Z.useCallback((C,w)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&_.current){_.current(),_.current=null,g.start(0,()=>{T(C,w)});return}_.current=null,f(M=>M.length>0?M.slice(1):M),m.current=w},[g]);return Z.useImperativeHandle(r,()=>({pulsate:E,start:S,stop:T}),[E,S,T]),V.jsx(W5,te({className:Oe(rr.root,a.root,l),ref:y},u,{children:V.jsx(vd,{component:null,exit:!0,children:c})}))});process.env.NODE_ENV!=="production"&&(Hg.propTypes={center:v.bool,classes:v.object,className:v.string});function j5(e){return Je("MuiButtonBase",e)}const B5=Ze("MuiButtonBase",["root","disabled","focusVisible"]),H5=["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"],V5=e=>{const{disabled:t,focusVisible:r,focusVisibleClassName:n,classes:o}=e,l=ot({root:["root",t&&"disabled",r&&"focusVisible"]},j5,o);return r&&n&&(l.root+=` ${n}`),l},U5=ke("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"},[`&.${B5.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Gn=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:a=!1,children:l,className:u,component:c="button",disabled:f=!1,disableRipple:p=!1,disableTouchRipple:m=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:_,onClick:y,onContextMenu:x,onDragLeave:S,onFocus:E,onFocusVisible:T,onKeyDown:C,onKeyUp:w,onMouseDown:M,onMouseLeave:O,onMouseUp:D,onTouchEnd:A,onTouchMove:$,onTouchStart:N,tabIndex:k=0,TouchRippleProps:F,touchRippleRef:j,type:I}=n,B=Se(n,H5),G=Z.useRef(null),q=Z.useRef(null),U=At(q,j),{isFocusVisibleRef:z,onFocus:H,onBlur:ee,ref:X}=$g(),[K,J]=Z.useState(!1);f&&K&&J(!1),Z.useImperativeHandle(o,()=>({focusVisible:()=>{J(!0),G.current.focus()}}),[]);const[ne,le]=Z.useState(!1);Z.useEffect(()=>{le(!0)},[]);const se=ne&&!p&&!f;Z.useEffect(()=>{K&&h&&!p&&ne&&q.current.pulsate()},[p,h,K,ne]);function ue(Te,yt,xr=m){return Gr(Yt=>(yt&&yt(Yt),!xr&&q.current&&q.current[Te](Yt),!0))}const fe=ue("start",M),pe=ue("stop",x),ae=ue("stop",S),ve=ue("stop",D),de=ue("stop",Te=>{K&&Te.preventDefault(),O&&O(Te)}),_e=ue("start",N),we=ue("stop",A),Ee=ue("stop",$),Ce=ue("stop",Te=>{ee(Te),z.current===!1&&J(!1),_&&_(Te)},!1),ct=Gr(Te=>{G.current||(G.current=Te.currentTarget),H(Te),z.current===!0&&(J(!0),T&&T(Te)),E&&E(Te)}),Ve=()=>{const Te=G.current;return c&&c!=="button"&&!(Te.tagName==="A"&&Te.href)},tt=Z.useRef(!1),dt=Gr(Te=>{h&&!tt.current&&K&&q.current&&Te.key===" "&&(tt.current=!0,q.current.stop(Te,()=>{q.current.start(Te)})),Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&Te.preventDefault(),C&&C(Te),Te.target===Te.currentTarget&&Ve()&&Te.key==="Enter"&&!f&&(Te.preventDefault(),y&&y(Te))}),Ie=Gr(Te=>{h&&Te.key===" "&&q.current&&K&&!Te.defaultPrevented&&(tt.current=!1,q.current.stop(Te,()=>{q.current.pulsate(Te)})),w&&w(Te),y&&Te.target===Te.currentTarget&&Ve()&&Te.key===" "&&!Te.defaultPrevented&&y(Te)});let Ue=c;Ue==="button"&&(B.href||B.to)&&(Ue=g);const St={};Ue==="button"?(St.type=I===void 0?"button":I,St.disabled=f):(!B.href&&!B.to&&(St.role="button"),f&&(St["aria-disabled"]=f));const ft=At(r,X,G);process.env.NODE_ENV!=="production"&&Z.useEffect(()=>{se&&!q.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(`
|
|
235
|
+
`))},[se]);const Mt=te({},n,{centerRipple:a,component:c,disabled:f,disableRipple:p,disableTouchRipple:m,focusRipple:h,tabIndex:k,focusVisible:K}),dr=V5(Mt);return V.jsxs(U5,te({as:Ue,className:Oe(dr.root,u),ownerState:Mt,onBlur:Ce,onClick:y,onContextMenu:pe,onFocus:ct,onKeyDown:dt,onKeyUp:Ie,onMouseDown:fe,onMouseLeave:de,onMouseUp:ve,onDragLeave:ae,onTouchEnd:we,onTouchMove:Ee,onTouchStart:_e,ref:ft,tabIndex:f?-1:k,type:I},St,B,{children:[l,se?V.jsx(Hg,te({ref:U,center:a},F)):null]}))});process.env.NODE_ENV!=="production"&&(Gn.propTypes={action:Yo,centerRipple:v.bool,children:v.node,classes:v.object,className:v.string,component:Ng,disabled:v.bool,disableRipple:v.bool,disableTouchRipple:v.bool,focusRipple:v.bool,focusVisibleClassName:v.string,href:v.any,LinkComponent:v.elementType,onBlur:v.func,onClick:v.func,onContextMenu:v.func,onDragLeave:v.func,onFocus:v.func,onFocusVisible:v.func,onKeyDown:v.func,onKeyUp:v.func,onMouseDown:v.func,onMouseLeave:v.func,onMouseUp:v.func,onTouchEnd:v.func,onTouchMove:v.func,onTouchStart:v.func,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number,TouchRippleProps:v.object,touchRippleRef:v.oneOfType([v.func,v.shape({current:v.shape({pulsate:v.func.isRequired,start:v.func.isRequired,stop:v.func.isRequired})})]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string])});function q5(e){return Je("MuiSvgIcon",e)}Ze("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const G5=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y5=e=>{const{color:t,fontSize:r,classes:n}=e,o={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(r)}`]};return ot(o,q5,n)},X5=ke("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="inherit"&&t[`color${De(r.color)}`],t[`fontSize${De(r.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var r,n,o,a,l,u,c,f,p,m,h,g,_;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=e.transitions)==null||(n=r.create)==null?void 0:n.call(r,"fill",{duration:(o=e.transitions)==null||(o=o.duration)==null?void 0:o.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(l=a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem",medium:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,24))||"1.5rem",large:((f=e.typography)==null||(p=f.pxToRem)==null?void 0:p.call(f,35))||"2.1875rem"}[t.fontSize],color:(m=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?m:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(_=(e.vars||e).palette)==null||(_=_.action)==null?void 0:_.disabled,inherit:void 0}[t.color]}}),os=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiSvgIcon"}),{children:o,className:a,color:l="inherit",component:u="svg",fontSize:c="medium",htmlColor:f,inheritViewBox:p=!1,titleAccess:m,viewBox:h="0 0 24 24"}=n,g=Se(n,G5),_=Z.isValidElement(o)&&o.type==="svg",y=te({},n,{color:l,component:u,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:p,viewBox:h,hasSvgAsChild:_}),x={};p||(x.viewBox=h);const S=Y5(y);return V.jsxs(X5,te({as:u,className:Oe(S.root,a),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:r},x,g,_&&o.props,{ownerState:y,children:[_?o.props.children:o,m?V.jsx("title",{children:m}):null]}))});process.env.NODE_ENV!=="production"&&(os.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),v.string]),component:v.elementType,fontSize:v.oneOfType([v.oneOf(["inherit","large","medium","small"]),v.string]),htmlColor:v.string,inheritViewBox:v.bool,shapeRendering:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),titleAccess:v.string,viewBox:v.string});os.muiName="SvgIcon";function Qo(e,t){function r(n,o){return V.jsx(os,te({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return process.env.NODE_ENV!=="production"&&(r.displayName=`${t}Icon`),r.muiName=os.muiName,Z.memo(Z.forwardRef(r))}const Ep=Qo(V.jsx("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),Sp=Qo(V.jsx("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Mp=Qo(V.jsx("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),Pp=Qo(V.jsx("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext"),Z5=["className","color","component","components","disabled","page","selected","shape","size","slots","type","variant"],Vg=(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`size${De(r.size)}`],r.variant==="text"&&t[`text${De(r.color)}`],r.variant==="outlined"&&t[`outlined${De(r.color)}`],r.shape==="rounded"&&t.rounded,r.type==="page"&&t.page,(r.type==="start-ellipsis"||r.type==="end-ellipsis")&&t.ellipsis,(r.type==="previous"||r.type==="next")&&t.previousNext,(r.type==="first"||r.type==="last")&&t.firstLast]},K5=e=>{const{classes:t,color:r,disabled:n,selected:o,size:a,shape:l,type:u,variant:c}=e,f={root:["root",`size${De(a)}`,c,l,r!=="standard"&&`color${De(r)}`,r!=="standard"&&`${c}${De(r)}`,n&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[u]],icon:["icon"]};return ot(f,$I,t)},Q5=ke("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Vg})(({theme:e,ownerState:t})=>te({},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",[`&.${Jt.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)})),J5=ke(Gn,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Vg})(({theme:e,ownerState:t})=>te({},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,[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Jt.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"}},[`&.${Jt.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}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},[`&.${Jt.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})=>te({},t.variant==="text"&&{[`&.${Jt.selected}`]:te({},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}},[`&.${Jt.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}},{[`&.${Jt.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)"}`,[`&.${Jt.selected}`]:te({},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)`:it(e.palette[t.color].main,.5)}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.activatedOpacity})`:it(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}))`:it(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Jt.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / calc(${e.vars.palette.action.activatedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette[t.color].main,e.palette.action.activatedOpacity+e.palette.action.focusOpacity)}},{[`&.${Jt.disabled}`]:{borderColor:(e.vars||e).palette.action.disabledBackground,color:(e.vars||e).palette.action.disabled}})})),e$=ke("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(e,t)=>t.icon})(({theme:e,ownerState:t})=>te({fontSize:e.typography.pxToRem(20),margin:"0 -8px"},t.size==="small"&&{fontSize:e.typography.pxToRem(18)},t.size==="large"&&{fontSize:e.typography.pxToRem(22)})),Ug=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPaginationItem"}),{className:o,color:a="standard",component:l,components:u={},disabled:c=!1,page:f,selected:p=!1,shape:m="circular",size:h="medium",slots:g={},type:_="page",variant:y="text"}=n,x=Se(n,Z5),S=te({},n,{color:a,disabled:c,selected:p,shape:m,size:h,type:_,variant:y}),E=pd(),T=K5(S),w=(E?{previous:g.next||u.next||Pp,next:g.previous||u.previous||Mp,last:g.first||u.first||Ep,first:g.last||u.last||Sp}:{previous:g.previous||u.previous||Mp,next:g.next||u.next||Pp,first:g.first||u.first||Ep,last:g.last||u.last||Sp})[_];return _==="start-ellipsis"||_==="end-ellipsis"?V.jsx(Q5,{ref:r,ownerState:S,className:Oe(T.root,o),children:"…"}):V.jsxs(J5,te({ref:r,ownerState:S,component:l,disabled:c,className:Oe(T.root,o)},x,{children:[_==="page"&&f,w?V.jsx(e$,{as:w,ownerState:S,className:T.icon}):null]}))});process.env.NODE_ENV!=="production"&&(Ug.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),component:v.elementType,components:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),disabled:v.bool,page:v.node,selected:v.bool,shape:v.oneOf(["circular","rounded"]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),slots:v.shape({first:v.elementType,last:v.elementType,next:v.elementType,previous:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOf(["end-ellipsis","first","last","next","page","previous","start-ellipsis"]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const t$=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],r$=e=>{const{classes:t,variant:r}=e;return ot({root:["root",r],ul:["ul"]},DI,t)},n$=ke("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant]]}})({}),i$=ke("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(e,t)=>t.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function o$(e,t,r){return e==="page"?`${r?"":"Go to "}page ${t}`:`Go to ${e} page`}const qg=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPagination"}),{boundaryCount:o=1,className:a,color:l="standard",count:u=1,defaultPage:c=1,disabled:f=!1,getItemAriaLabel:p=o$,hideNextButton:m=!1,hidePrevButton:h=!1,renderItem:g=D=>V.jsx(Ug,te({},D)),shape:_="circular",showFirstButton:y=!1,showLastButton:x=!1,siblingCount:S=1,size:E="medium",variant:T="text"}=n,C=Se(n,t$),{items:w}=AI(te({},n,{componentName:"Pagination"})),M=te({},n,{boundaryCount:o,color:l,count:u,defaultPage:c,disabled:f,getItemAriaLabel:p,hideNextButton:m,hidePrevButton:h,renderItem:g,shape:_,showFirstButton:y,showLastButton:x,siblingCount:S,size:E,variant:T}),O=r$(M);return V.jsx(n$,te({"aria-label":"pagination navigation",className:Oe(O.root,a),ownerState:M,ref:r},C,{children:V.jsx(i$,{className:O.ul,ownerState:M,children:w.map((D,A)=>V.jsx("li",{children:g(te({},D,{color:l,"aria-label":p(D.type,D.page,D.selected),shape:_,size:E,variant:T}))},A))})}))});process.env.NODE_ENV!=="production"&&(qg.propTypes={boundaryCount:Rr,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["primary","secondary","standard"]),v.string]),count:Rr,defaultPage:Rr,disabled:v.bool,getItemAriaLabel:v.func,hideNextButton:v.bool,hidePrevButton:v.bool,onChange:v.func,page:Rr,renderItem:v.func,shape:v.oneOf(["circular","rounded"]),showFirstButton:v.bool,showLastButton:v.bool,siblingCount:Rr,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["outlined","text"]),v.string])});const Gg=e=>{const t=[],r=[];for(const n of e.columns)R.isMeasureColumn(n)?r.push(n):t.push(n);return{attributes:t,measures:r}},a$=({dataSet:e,dataOptions:t,filters:r,filterRelations:n,count:o,offset:a})=>{const l=rd(),[u,c]=Q.useState(Fn(e)?null:e),[f,p]=Q.useState(!1),m=Q.useRef(!0),{isInitialized:h,app:g}=gt(),[_,y]=Q.useState(t);return Q.useEffect(()=>{var T;let x=!1;if(!t)return;const{attributes:S,measures:E}=Gg(t);if(Fn(e)){if(!h){l(new R.TranslatableError("errors.chartNoSisenseContext"));return}if(!g||!m.current&&a>0)return;p(!0),((T=g.settings.queryCacheConfig)!=null&&T.enabled?Hc:Bo)({dataSource:e,dimensions:S,measures:E,filters:r,filterRelations:n,count:o+1,offset:a,ungroup:!0},g).then(w=>{if(x)return;m.current=w.rows.length>o;const M=m.current?w.rows.slice(0,o):w.rows;a>0?c(O=>{const D=O==null?void 0:O.rows.length,A=D?D>a?O.rows.slice(0,a):O.rows:null;return{columns:w.columns,rows:A?[...A,...M]:M}}):c({columns:w.columns,rows:M}),y(t)}).finally(()=>{p(!1)}).catch(w=>{x||l(w)})}else c(e),y(t);return()=>{x=!0}},[g,e,t,r,n,a,o,h,l]),[f?null:u,_]},s$=(e,t)=>{if(R.emptyTable(t))return{rows:[],columns:[]};const r=R.getColumnsByName(t,e);return R.selectColumns(t,r)},sc=e=>{switch("getSort"in e?e.getSort():e.sortType){case"sortAsc":case R.Sort.Ascending:return 1;case"sortDesc":case R.Sort.Descending:return-1;default:return 0}},l$=(e,t)=>{const r=e.columns.find(n=>sc(n)!==0);if(r){const n=R.getColumnByName(t,r.name);n&&(n.direction=sc(r))}return t},u$=(e,t)=>({columns:e.columns.map(r=>{const n="getSort"in r,o=r.name===t.name,a=sc(r);if(n){const l=a===1?R.Sort.Descending:R.Sort.Ascending;return R.translateColumnToCategoryOrValue(he(ie({},r),{column:r.sort(o?l:R.Sort.None)}))}else{const l=a===1?"sortDesc":"sortAsc";return R.translateColumnToCategoryOrValue(he(ie({},r),{sortType:o?l:"sortNone",column:r}))}})}),c$=(e,t)=>{const r=s$(e.columns.map(n=>n.name),t);return l$(e,r)},d$=({data:e,innerDataOptions:t,dataColumnNamesMapping:r,needToAggregate:n=!1})=>{const{app:o}=gt();return Q.useMemo(()=>{if(!e||!t)return null;let a=R.createDataTableFromData(Ku(e,t,o==null?void 0:o.settings.locale,o==null?void 0:o.settings.dateConfig));const l=t.columns.filter(c=>R.isCategory(c)),u=t.columns.filter(c=>R.isValue(c));return ng(a,l,u,r),n&&(a=jv(a,l,u,r)),c$(t,a)},[e,t,n,r,o])};var Yg={},Xg={};function Rp(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(e,o).enumerable})),r.push.apply(r,n)}return r}function Op(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Rp(Object(r),!0).forEach(function(n){jx(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Rp(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function Tt(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var kp=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}(),Jl=function(){return Math.random().toString(36).substring(7).split("").join(".")},pn={INIT:"@@redux/INIT"+Jl(),REPLACE:"@@redux/REPLACE"+Jl(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Jl()}};function Zg(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function f$(e){if(e===void 0)return"undefined";if(e===null)return"null";var t=typeof e;switch(t){case"boolean":case"string":case"number":case"symbol":case"function":return t}if(Array.isArray(e))return"array";if(m$(e))return"date";if(p$(e))return"error";var r=h$(e);switch(r){case"Symbol":case"Promise":case"WeakMap":case"WeakSet":case"Map":case"Set":return r}return t.slice(8,-1).toLowerCase().replace(/\s/g,"")}function h$(e){return typeof e.constructor=="function"?e.constructor.name:null}function p$(e){return e instanceof Error||typeof e.message=="string"&&e.constructor&&typeof e.constructor.stackTraceLimit=="number"}function m$(e){return e instanceof Date?!0:typeof e.toDateString=="function"&&typeof e.getDate=="function"&&typeof e.setDate=="function"}function cn(e){var t=typeof e;return process.env.NODE_ENV!=="production"&&(t=f$(e)),t}function yd(e,t,r){var n;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(process.env.NODE_ENV==="production"?Tt(0):"It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function. See https://redux.js.org/tutorials/fundamentals/part-4-store#creating-a-store-with-enhancers for an example.");if(typeof t=="function"&&typeof r=="undefined"&&(r=t,t=void 0),typeof r!="undefined"){if(typeof r!="function")throw new Error(process.env.NODE_ENV==="production"?Tt(1):"Expected the enhancer to be a function. Instead, received: '"+cn(r)+"'");return r(yd)(e,t)}if(typeof e!="function")throw new Error(process.env.NODE_ENV==="production"?Tt(2):"Expected the root reducer to be a function. Instead, received: '"+cn(e)+"'");var o=e,a=t,l=[],u=l,c=!1;function f(){u===l&&(u=l.slice())}function p(){if(c)throw new Error(process.env.NODE_ENV==="production"?Tt(3):"You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return a}function m(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?Tt(4):"Expected the listener to be a function. Instead, received: '"+cn(y)+"'");if(c)throw new Error(process.env.NODE_ENV==="production"?Tt(5):"You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api/store#subscribelistener for more details.");var x=!0;return f(),u.push(y),function(){if(x){if(c)throw new Error(process.env.NODE_ENV==="production"?Tt(6):"You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api/store#subscribelistener for more details.");x=!1,f();var E=u.indexOf(y);u.splice(E,1),l=null}}}function h(y){if(!Zg(y))throw new Error(process.env.NODE_ENV==="production"?Tt(7):"Actions must be plain objects. Instead, the actual type was: '"+cn(y)+"'. You may need to add middleware to your store setup to handle dispatching other values, such as 'redux-thunk' to handle dispatching functions. See https://redux.js.org/tutorials/fundamentals/part-4-store#middleware and https://redux.js.org/tutorials/fundamentals/part-6-async-logic#using-the-redux-thunk-middleware for examples.");if(typeof y.type=="undefined")throw new Error(process.env.NODE_ENV==="production"?Tt(8):'Actions may not have an undefined "type" property. You may have misspelled an action type string constant.');if(c)throw new Error(process.env.NODE_ENV==="production"?Tt(9):"Reducers may not dispatch actions.");try{c=!0,a=o(a,y)}finally{c=!1}for(var x=l=u,S=0;S<x.length;S++){var E=x[S];E()}return y}function g(y){if(typeof y!="function")throw new Error(process.env.NODE_ENV==="production"?Tt(10):"Expected the nextReducer to be a function. Instead, received: '"+cn(y));o=y,h({type:pn.REPLACE})}function _(){var y,x=m;return y={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(process.env.NODE_ENV==="production"?Tt(11):"Expected the observer to be an object. Instead, received: '"+cn(E)+"'");function T(){E.next&&E.next(p())}T();var C=x(T);return{unsubscribe:C}}},y[kp]=function(){return this},y}return h({type:pn.INIT}),n={dispatch:h,subscribe:m,getState:p,replaceReducer:g},n[kp]=_,n}var v$=yd;function Np(e){typeof console!="undefined"&&typeof console.error=="function"&&console.error(e);try{throw new Error(e)}catch(t){}}function g$(e,t,r,n){var o=Object.keys(t),a=r&&r.type===pn.INIT?"preloadedState argument passed to createStore":"previous state received by the reducer";if(o.length===0)return"Store does not have a valid reducer. Make sure the argument passed to combineReducers is an object whose values are reducers.";if(!Zg(e))return"The "+a+' has unexpected type of "'+cn(e)+'". Expected argument to be an object with the following '+('keys: "'+o.join('", "')+'"');var l=Object.keys(e).filter(function(u){return!t.hasOwnProperty(u)&&!n[u]});if(l.forEach(function(u){n[u]=!0}),!(r&&r.type===pn.REPLACE)&&l.length>0)return"Unexpected "+(l.length>1?"keys":"key")+" "+('"'+l.join('", "')+'" found in '+a+". ")+"Expected to find one of the known reducer keys instead: "+('"'+o.join('", "')+'". Unexpected keys will be ignored.')}function y$(e){Object.keys(e).forEach(function(t){var r=e[t],n=r(void 0,{type:pn.INIT});if(typeof n=="undefined")throw new Error(process.env.NODE_ENV==="production"?Tt(12):'The slice reducer for key "'+t+`" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.`);if(typeof r(void 0,{type:pn.PROBE_UNKNOWN_ACTION()})=="undefined")throw new Error(process.env.NODE_ENV==="production"?Tt(13):'The slice reducer for key "'+t+'" returned undefined when probed with a random type. '+("Don't try to handle '"+pn.INIT+`' or other actions in "redux/*" `)+"namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.")})}function b$(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];process.env.NODE_ENV!=="production"&&typeof e[o]=="undefined"&&Np('No reducer provided for key "'+o+'"'),typeof e[o]=="function"&&(r[o]=e[o])}var a=Object.keys(r),l;process.env.NODE_ENV!=="production"&&(l={});var u;try{y$(r)}catch(c){u=c}return function(f,p){if(f===void 0&&(f={}),u)throw u;if(process.env.NODE_ENV!=="production"){var m=g$(f,r,p,l);m&&Np(m)}for(var h=!1,g={},_=0;_<a.length;_++){var y=a[_],x=r[y],S=f[y],E=x(S,p);if(typeof E=="undefined"){var T=p&&p.type;throw new Error(process.env.NODE_ENV==="production"?Tt(14):"When called with an action of type "+(T?'"'+String(T)+'"':"(unknown type)")+', the slice reducer for key "'+y+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.')}g[y]=E,h=h||E!==S}return h=h||a.length!==Object.keys(f).length,h?g:f}}function Dp(e,t){return function(){return t(e.apply(this,arguments))}}function _$(e,t){if(typeof e=="function")return Dp(e,t);if(typeof e!="object"||e===null)throw new Error(process.env.NODE_ENV==="production"?Tt(16):"bindActionCreators expected an object or a function, but instead received: '"+cn(e)+`'. Did you write "import ActionCreators from" instead of "import * as ActionCreators from"?`);var r={};for(var n in e){var o=e[n];typeof o=="function"&&(r[n]=Dp(o,t))}return r}function Kg(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(n){return n}:t.length===1?t[0]:t.reduce(function(n,o){return function(){return n(o.apply(void 0,arguments))}})}function w$(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return function(){var o=n.apply(void 0,arguments),a=function(){throw new Error(process.env.NODE_ENV==="production"?Tt(15):"Dispatching while constructing your middleware is not allowed. Other middleware would not be applied to this dispatch.")},l={getState:o.getState,dispatch:function(){return a.apply(void 0,arguments)}},u=t.map(function(c){return c(l)});return a=Kg.apply(void 0,u)(o.dispatch),Op(Op({},o),{},{dispatch:a})}}}const x$=Object.freeze(Object.defineProperty({__proto__:null,__DO_NOT_USE__ActionTypes:pn,applyMiddleware:w$,bindActionCreators:_$,combineReducers:b$,compose:Kg,createStore:yd,legacy_createStore:v$},Symbol.toStringTag,{value:"Module"})),Qg=R.getAugmentedNamespace(x$);var zi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(o,a,l,u,c,f,p,m){if(process.env.NODE_ENV!=="production"&&a===void 0)throw new Error("invariant requires an error message argument");if(!o){var h;if(a===void 0)h=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var g=[l,u,c,f,p,m],_=0;h=new Error("Invariant Violation: "+a.replace(/%s/g,function(){return g[_++]}))}throw h.framesToPop=1,h}},r=t;e.default=r})(zi);var Ge={};Object.defineProperty(Ge,"__esModule",{value:!0});Ge.SCROLL_TO_Y=Ge.SCROLL_TO_X=Ge.SCROLL_END=Ge.SCROLL_START=Ge.PROP_CHANGE=Ge.INITIALIZE=Ge.COLUMN_RESIZE=Ge.COLUMN_REORDER_MOVE=Ge.COLUMN_REORDER_END=Ge.COLUMN_REORDER_START=void 0;var C$="COLUMN_REORDER_START";Ge.COLUMN_REORDER_START=C$;var T$="COLUMN_REORDER_END";Ge.COLUMN_REORDER_END=T$;var E$="COLUMN_REORDER_MOVE";Ge.COLUMN_REORDER_MOVE=E$;var S$="COLUMN_RESIZE";Ge.COLUMN_RESIZE=S$;var M$="INITIALIZE";Ge.INITIALIZE=M$;var P$="PROP_CHANGE";Ge.PROP_CHANGE=P$;var R$="SCROLL_START";Ge.SCROLL_START=R$;var O$="SCROLL_END";Ge.SCROLL_END=O$;var k$="SCROLL_TO_X";Ge.SCROLL_TO_X=k$;var N$="SCROLL_TO_Y";Ge.SCROLL_TO_Y=N$;var Or={};Object.defineProperty(Or,"__esModule",{value:!0});Or.resizeColumn=Or.moveColumnReorder=Or.stopColumnReorder=Or.startColumnReorder=void 0;var Is=Ge,D$=function(t){return{type:Is.COLUMN_REORDER_START,reorderData:t}};Or.startColumnReorder=D$;var L$=function(){return{type:Is.COLUMN_REORDER_END}};Or.stopColumnReorder=L$;var A$=function(t){return{type:Is.COLUMN_REORDER_MOVE,deltaX:t}};Or.moveColumnReorder=A$;var I$=function(t){return{type:Is.COLUMN_RESIZE,resizeData:t}};Or.resizeColumn=I$;var kr={};Object.defineProperty(kr,"__esModule",{value:!0});kr.stopScroll=kr.startScroll=kr.scrollToY=kr.scrollToX=void 0;var $s=Ge,$$=function(t){return{type:$s.SCROLL_TO_X,scrollX:t}};kr.scrollToX=$$;var z$=function(t){return{type:$s.SCROLL_TO_Y,scrollY:t}};kr.scrollToY=z$;var W$=function(){return{type:$s.SCROLL_START}};kr.startScroll=W$;var F$=function(){return{type:$s.SCROLL_END}};kr.stopScroll=F$;var Jg={},j$=R.isNumber_1;function B$(e){return j$(e)&&e!=+e}var H$=B$,cr={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(f){return typeof f}:t=function(f){return f&&typeof Symbol=="function"&&f.constructor===Symbol&&f!==Symbol.prototype?"symbol":typeof f},t(u)}var r=/\//g,n={};function o(u){return n[u]||(n[u]=u.replace(r,"_")),n[u]}function a(u){var c;return t(u)=="object"?c=Object.keys(u).filter(function(f){return u[f]}):c=Array.prototype.slice.call(arguments),c.map(o).join(" ")}var l=a;e.default=l})(cr);var ey={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,o,a,l,u){l=l||setTimeout,u=u||clearTimeout;var c;function f(){for(var p=arguments.length,m=new Array(p),h=0;h<p;h++)m[h]=arguments[h];f.reset();var g=function(){n.apply(a,m)};g.__SMmeta=n.__SMmeta,c=l(g,o)}return f.reset=function(){u(c)},f}var r=t;e.default=r})(ey);var _n={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n){n||(n="");var o,a=arguments.length;if(a>1)for(var l=1;l<a;l++)o=arguments[l],o&&(n=(n?n+" ":"")+o);return n}var r=t;e.default=r})(_n);var Jo={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(l){return typeof l}:t=function(l){return l&&typeof Symbol=="function"&&l.constructor===Symbol&&l!==Symbol.prototype?"symbol":typeof l},t(o)}function r(o,a){if(o===a)return!0;if(t(o)!=="object"||o===null||t(a)!=="object"||a===null)return!1;var l=Object.keys(o),u=Object.keys(a);if(l.length!==u.length)return!1;for(var c=Object.prototype.hasOwnProperty.bind(a),f=0;f<l.length;f++)if(!c(l[f])||o[l[f]]!==a[l[f]])return!1;return!0}var n=r;e.default=n})(Jo);var bd={},wn={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){return function(){return o}}function r(){}r.thatReturns=t,r.thatReturnsFalse=t(!1),r.thatReturnsTrue=t(!0),r.thatReturnsNull=t(null),r.thatReturnsThis=function(){return this},r.thatReturnsArgument=function(o){return o};var n=r;e.default=n})(wn);var ty={},ry={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!1,r,n,o,a,l,u,c,f,p,m,h,g,_,y,x;function S(){if(!t){t=!0;var C=navigator.userAgent,w=/(?:MSIE.(\d+\.\d+))|(?:(?:Firefox|GranParadiso|Iceweasel).(\d+\.\d+))|(?:Opera(?:.+Version.|.)(\d+\.\d+))|(?:AppleWebKit.(\d+(?:\.\d+)?))|(?:Trident\/\d+\.\d+.*rv:(\d+\.\d+))/.exec(C),M=/(Mac OS X)|(Windows)|(Linux)/.exec(C);if(g=/\b(iPhone|iP[ao]d)/.exec(C),_=/\b(iP[ao]d)/.exec(C),m=/Android/i.exec(C),y=/FBAN\/\w+;/i.exec(C),x=/Mobile/i.exec(C),h=!!/Win64/.exec(C),w){r=w[1]?parseFloat(w[1]):w[5]?parseFloat(w[5]):NaN,r&&document&&document.documentMode&&(r=document.documentMode);var O=/(?:Trident\/(\d+.\d+))/.exec(C);u=O?parseFloat(O[1])+4:r,n=w[2]?parseFloat(w[2]):NaN,o=w[3]?parseFloat(w[3]):NaN,a=w[4]?parseFloat(w[4]):NaN,a?(w=/(?:Chrome\/(\d+\.\d+))/.exec(C),l=w&&w[1]?parseFloat(w[1]):NaN):l=NaN}else r=n=o=l=a=NaN;if(M){if(M[1]){var D=/(?:Mac OS X (\d+(?:[._]\d+)?))/.exec(C);c=D?parseFloat(D[1].replace("_",".")):!0}else c=!1;f=!!M[2],p=!!M[3]}else c=f=p=!1}}var E={ie:function(){return S()||r},ieCompatibilityMode:function(){return S()||u>r},ie64:function(){return E.ie()&&h},firefox:function(){return S()||n},opera:function(){return S()||o},webkit:function(){return S()||a},safari:function(){return E.webkit()},chrome:function(){return S()||l},windows:function(){return S()||f},osx:function(){return S()||c},linux:function(){return S()||p},iphone:function(){return S()||g},mobile:function(){return S()||g||_||m||x},nativeApp:function(){return S()||y},android:function(){return S()||m},ipad:function(){return S()||_}},T=E;e.default=T})(ry);var ny={},_d={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=!!(typeof window!="undefined"&&window.document&&window.document.createElement),r={canUseDOM:t,canUseWorkers:typeof Worker!="undefined",canUseEventListeners:t&&!!(window.addEventListener||window.attachEvent),canUseViewport:t&&!!window.screen,isInWorker:!t},n=r;e.default=n})(_d);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(_d);function r(l){return l&&l.__esModule?l:{default:l}}var n;t.default.canUseDOM&&(n=document.implementation&&document.implementation.hasFeature&&document.implementation.hasFeature("","")!==!0);/**
|
|
236
|
+
* Checks if an event is supported in the current execution environment.
|
|
237
|
+
*
|
|
238
|
+
* NOTE: This will not work correctly for non-generic events such as `change`,
|
|
239
|
+
* `reset`, `load`, `error`, and `select`.
|
|
240
|
+
*
|
|
241
|
+
* Borrows from Modernizr.
|
|
242
|
+
*
|
|
243
|
+
* @param {string} eventNameSuffix Event name, e.g. "click".
|
|
244
|
+
* @param {?boolean} capture Check if the capture phase is supported.
|
|
245
|
+
* @return {boolean} True if the event is supported.
|
|
246
|
+
* @internal
|
|
247
|
+
* @license Modernizr 3.0.0pre (Custom Build) | MIT
|
|
248
|
+
*/function o(l,u){if(!t.default.canUseDOM||u&&!("addEventListener"in document))return!1;var c="on"+l,f=c in document;if(!f){var p=document.createElement("div");p.setAttribute(c,"return;"),f=typeof p[c]=="function"}return!f&&n&&l==="wheel"&&(f=document.implementation.hasFeature("Events.wheel","3.0")),f}var a=o;e.default=a})(ny);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ry),r=n(ny);function n(f){return f&&f.__esModule?f:{default:f}}var o=10,a=40,l=800;function u(f){var p=0,m=0,h=0,g=0;return"detail"in f&&(m=f.detail),"wheelDelta"in f&&(m=-f.wheelDelta/120),"wheelDeltaY"in f&&(m=-f.wheelDeltaY/120),"wheelDeltaX"in f&&(p=-f.wheelDeltaX/120),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(p=m,m=0),h=p*o,g=m*o,"deltaY"in f&&(g=f.deltaY),"deltaX"in f&&(h=f.deltaX),(h||g)&&f.deltaMode&&(f.deltaMode==1?(h*=a,g*=a):(h*=l,g*=l)),h&&!p&&(p=h<1?-1:1),g&&!m&&(m=g<1?-1:1),{spinX:p,spinY:m,pixelX:h,pixelY:g}}u.getEventType=function(){return t.default.firefox()?"DOMMouseScroll":(0,r.default)("wheel")?"wheel":"mousewheel"};var c=u;e.default=c})(ty);var zs={},iy={},Wi={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof R.commonjsGlobal!="undefined"?R.commonjsGlobal:typeof self!="undefined"?self:{},r=t;e.default=r})(Wi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Wi);function r(a){return a&&a.__esModule?a:{default:a}}var n=t.default.requestAnimationFrame||t.default.webkitRequestAnimationFrame||t.default.mozRequestAnimationFrame||t.default.oRequestAnimationFrame||t.default.msRequestAnimationFrame,o=n;e.default=o})(iy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(wn),r=o(iy),n=o(Wi);function o(c){return c&&c.__esModule?c:{default:c}}var a=0,l=r.default||function(c){var f=Date.now(),p=Math.max(0,16-(f-a));return a=f+p,n.default.setTimeout(function(){c(Date.now())},p)};l(t.default);var u=l;e.default=u})(zs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(wn),r=o(ty),n=o(zs);function o(p){return p&&p.__esModule?p:{default:p}}function a(p,m){if(!(p instanceof m))throw new TypeError("Cannot call a class as a function")}function l(p,m){for(var h=0;h<m.length;h++){var g=m[h];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(p,g.key,g)}}function u(p,m,h){return m&&l(p.prototype,m),h&&l(p,h),p}var c=function(){function p(m,h,g,_,y,x){a(this,p),this._animationFrameID=null,this._deltaX=0,this._deltaY=0,this._didWheel=this._didWheel.bind(this),this._rootRef=null,typeof h!="function"&&(h=h?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof g!="function"&&(g=g?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=h,this._handleScrollY=g,this._preventDefault=y,this._stopPropagation=x,this._onWheelCallback=m,this.onWheel=this.onWheel.bind(this),this._isRTL=_}return u(p,[{key:"onWheel",value:function(h){this._preventDefault&&h.preventDefault();var g=(0,r.default)(h);h.shiftKey&&p._allowInternalAxesSwap()?g=p._swapNormalizedWheelAxis(g):h.shiftKey||(g.pixelX*=this._isRTL?-1:1);var _=this._deltaX+g.pixelX,y=this._deltaY+g.pixelY,x=this._handleScrollX(_,y),S=this._handleScrollY(y,_);if(!(!x&&!S)&&!(this._rootRef&&!this._contains(h.target))){this._deltaX+=x?g.pixelX:0,this._deltaY+=S?g.pixelY:0,h.defaultPrevented||h.preventDefault();var E;(this._deltaX!==0||this._deltaY!==0)&&(this._stopPropagation&&h.stopPropagation(),E=!0),E===!0&&this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didWheel))}}},{key:"setRoot",value:function(h){this._rootRef=h}},{key:"_didWheel",value:function(){this._animationFrameID=null,this._onWheelCallback(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_contains",value:function(h){for(var g=h;g!=document.body;){if(g===this._rootRef)return!0;g=g.parentNode}return!1}}],[{key:"_swapNormalizedWheelAxis",value:function(h){return{spinX:h.spinY,spinY:h.spinX,pixelX:h.pixelY,pixelY:h.pixelX}}},{key:"_allowInternalAxesSwap",value:function(){return navigator.platform!=="MacIntel"}}]),p}(),f=c;e.default=f})(bd);var oy={},Yn={},as="NOT_FOUND";function V$(e){var t;return{get:function(n){return t&&e(t.key,n)?t.value:as},put:function(n,o){t={key:n,value:o}},getEntries:function(){return t?[t]:[]},clear:function(){t=void 0}}}function U$(e,t){var r=[];function n(u){var c=r.findIndex(function(p){return t(u,p.key)});if(c>-1){var f=r[c];return c>0&&(r.splice(c,1),r.unshift(f)),f.value}return as}function o(u,c){n(u)===as&&(r.unshift({key:u,value:c}),r.length>e&&r.pop())}function a(){return r}function l(){r=[]}return{get:n,put:o,getEntries:a,clear:l}}var ay=function(t,r){return t===r};function q$(e){return function(r,n){if(r===null||n===null||r.length!==n.length)return!1;for(var o=r.length,a=0;a<o;a++)if(!e(r[a],n[a]))return!1;return!0}}function sy(e,t){var r=typeof t=="object"?t:{equalityCheck:t},n=r.equalityCheck,o=n===void 0?ay:n,a=r.maxSize,l=a===void 0?1:a,u=r.resultEqualityCheck,c=q$(o),f=l===1?V$(c):U$(l,c);function p(){var m=f.get(arguments);if(m===as){if(m=e.apply(null,arguments),u){var h=f.getEntries(),g=h.find(function(_){return u(_.value,m)});g&&(m=g.value)}f.put(arguments,m)}return m}return p.clearCache=function(){return f.clear()},p}function G$(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(n){return typeof n=="function"})){var r=t.map(function(n){return typeof n=="function"?"function "+(n.name||"unnamed")+"()":typeof n}).join(", ");throw new Error("createSelector expects all input-selectors to be functions, but received the following types: ["+r+"]")}return t}function ly(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var o=function(){for(var l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];var f=0,p,m={memoizeOptions:void 0},h=u.pop();if(typeof h=="object"&&(m=h,h=u.pop()),typeof h!="function")throw new Error("createSelector expects an output function after the inputs, but received: ["+typeof h+"]");var g=m,_=g.memoizeOptions,y=_===void 0?r:_,x=Array.isArray(y)?y:[y],S=G$(u),E=e.apply(void 0,[function(){return f++,h.apply(null,arguments)}].concat(x)),T=e(function(){for(var w=[],M=S.length,O=0;O<M;O++)w.push(S[O].apply(null,arguments));return p=E.apply(null,w),p});return Object.assign(T,{resultFunc:h,memoizedResultFunc:E,dependencies:S,lastResult:function(){return p},recomputations:function(){return f},resetRecomputations:function(){return f=0}}),T};return o}var uy=ly(sy),Y$=function(t,r){if(r===void 0&&(r=uy),typeof t!="object")throw new Error("createStructuredSelector expects first argument to be an object "+("where each property is a selector, instead received a "+typeof t));var n=Object.keys(t),o=r(n.map(function(a){return t[a]}),function(){for(var a=arguments.length,l=new Array(a),u=0;u<a;u++)l[u]=arguments[u];return l.reduce(function(c,f,p){return c[n[p]]=f,c},{})});return o};const X$=Object.freeze(Object.defineProperty({__proto__:null,createSelector:uy,createSelectorCreator:ly,createStructuredSelector:Y$,defaultEqualityCheck:ay,defaultMemoize:sy},Symbol.toStringTag,{value:"Module"})),Z$=R.getAugmentedNamespace(X$);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Z$,r=n(Jo);function n(a){return a&&a.__esModule?a:{default:a}}var o=(0,t.createSelectorCreator)(t.defaultMemoize,r.default);e.default=o})(Yn);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Yn);function r(a){return a&&a.__esModule?a:{default:a}}function n(a,l,u){var c=1,f=1,p=a+2,m=a+1,h=2;return l&&(f++,m++,p++,h++),u&&m++,{ariaGroupHeaderIndex:c,ariaHeaderIndex:f,ariaFooterIndex:p,ariaRowCount:m,ariaRowIndexOffset:h}}var o=(0,t.default)([function(a){return a.rowsCount},function(a){return a.groupHeaderHeight>0},function(a){return a.footerHeight>0}],n);e.default=o})(oy);var cy={},K$=R.isArrayLike_1;function Q$(e,t){return function(r,n){if(r==null)return r;if(!K$(r))return e(r,n);for(var o=r.length,a=t?o:-1,l=Object(r);(t?a--:++a<o)&&n(l[a],a,l)!==!1;);return r}}var J$=Q$,ez=R._baseForOwn,tz=J$,rz=tz(ez),Ws=rz,nz=R.identity_1;function iz(e){return typeof e=="function"?e:nz}var oz=iz,az=R._arrayEach,sz=Ws,lz=oz,uz=R.isArray_1;function cz(e,t){var r=uz(e)?az:sz;return r(e,lz(t))}var wd=cz,xd={},dz=Ws,fz=R.isArrayLike_1;function hz(e,t){var r=-1,n=fz(e)?Array(e.length):[];return dz(e,function(o,a,l){n[++r]=t(o,a,l)}),n}var pz=hz,mz=R._arrayMap,vz=R._baseIteratee,gz=pz,yz=R.isArray_1;function bz(e,t){var r=yz(e)?mz:gz;return r(e,vz(t))}var dy=bz,xn={};function _z(e,t,r,n){var o=-1,a=e==null?0:e.length;for(n&&a&&(r=e[++o]);++o<a;)r=t(r,e[o],o,e);return r}var fy=_z;function wz(e,t,r,n,o){return o(e,function(a,l,u){r=n?(n=!1,a):t(r,a,l,u)}),r}var xz=wz,Cz=fy,Tz=Ws,Ez=R._baseIteratee,Sz=xz,Mz=R.isArray_1;function Pz(e,t,r){var n=Mz(e)?Cz:Sz,o=arguments.length<3;return n(e,Ez(t),r,o,Tz)}var Rz=Pz;Object.defineProperty(xn,"__esModule",{value:!0});xn.sumPropWidths=kz;xn.getTotalWidth=Nz;xn.getTotalFlexGrow=Dz;var Cd=Oz(Rz);function Oz(e){return e&&e.__esModule?e:{default:e}}function kz(e){return(0,Cd.default)(e,function(t,r){return t+r.props.width},0)}function Nz(e){return(0,Cd.default)(e,function(t,r){return t+r.width},0)}function Dz(e){return(0,Cd.default)(e,function(t,r){return t+(r.flexGrow||0)},0)}var Fi={},Fs={},js={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(n,o,a){return n<o?o:n>a?a:n}var r=t;e.default=r})(js);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ScrollbarState=void 0;var t=o(js),r=o(Yn),n=xn;function o(g){return g&&g.__esModule?g:{default:g}}var a=1,l=3,u=6,c={HIDDEN:"hidden",JOINT_SCROLLBARS:"JOINT_SCROLLBARS",VISIBLE:"visible"};e.ScrollbarState=c;function f(g,_,y,x,S,E,T){var C=_.cellGroupWrapperHeight,w=_.footerHeight,M=_.headerHeight,O=_.groupHeaderHeight,D=C?0:2*a,A=w+M+O+D,$=S.height,N=S.maxHeight,k=S.useMaxHeight,F=S.width,j=Math.round(k?N:$),I=j-A,B=p(g,x,F,T),G=I,q=I;switch(B){case c.VISIBLE:{G-=E,q-=E;break}case c.JOINT_SCROLLBARS:{G-=E;break}}return{bufferRowCount:m(q,y),minAvailableHeight:Math.max(G,0),maxAvailableHeight:Math.max(q,0),reservedHeight:A,scrollStateX:B}}function p(g,_,y,x){var S=_.overflowX,E=_.showScrollbarX,T=(0,n.getTotalWidth)(g);return S==="hidden"||E===!1?c.HIDDEN:T>y?c.VISIBLE:T>y-x?c.JOINT_SCROLLBARS:c.HIDDEN}function m(g,_){var y=_.bufferRowCount,x=_.rowHeight,S=_.subRowHeight;if(y!==void 0)return console.log("buffer set: "+y),y;var E=x+S,T=Math.ceil(g/E)+1;return(0,t.default)(Math.floor(T/2),l,u)}var h=(0,r.default)([function(g){return g.columnProps},function(g){return g.elementHeights},function(g){return g.rowSettings},function(g){return g.scrollFlags},function(g){return g.tableSize},function(g){return g.scrollbarXHeight},function(g){return g.scrollbarYWidth}],f);e.default=h})(Fs);(function(e){function t(f){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(m){return typeof m}:t=function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},t(f)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Yn),n=a(Fs);function o(f){if(typeof WeakMap!="function")return null;var p=new WeakMap,m=new WeakMap;return(o=function(g){return g?m:p})(f)}function a(f,p){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var m=o(p);if(m&&m.has(f))return m.get(f);var h={},g=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var _ in f)if(_!=="default"&&Object.prototype.hasOwnProperty.call(f,_)){var y=g?Object.getOwnPropertyDescriptor(f,_):null;y&&(y.get||y.set)?Object.defineProperty(h,_,y):h[_]=f[_]}return h.default=f,m&&m.set(f,h),h}function l(f){return f&&f.__esModule?f:{default:f}}function u(f,p,m){var h=m.overflowY,g=m.showScrollbarY,_=h!=="hidden"&&g!==!1,y=f.minAvailableHeight,x=f.maxAvailableHeight,S=f.scrollStateX,E=!1,T=!1;S===n.ScrollbarState.VISIBLE&&(T=!0),_&&p>x&&(E=!0),E&&S===n.ScrollbarState.JOINT_SCROLLBARS&&(T=!0);var C=x;return T&&(C=y),{availableHeight:C,scrollEnabledX:T,scrollEnabledY:E}}var c=(0,r.default)([n.default,function(f){return f.scrollContentHeight},function(f){return f.scrollFlags}],u);e.default=c})(Fi);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(wd),r=l(dy),n=l(Yn),o=xn,a=l(Fi);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(h[y]=_[y])}return h},u.apply(this,arguments)}function c(h,g,_,y,x){var S=_?x:0,E=y-S,T=f(h,g,E),C=T.newColumnGroupProps,w=T.newColumnProps,M=p(w),O=M.fixedColumns,D=M.fixedRightColumns,A=M.scrollableColumns,$=E-(0,o.getTotalWidth)(O)-(0,o.getTotalWidth)(D),N=Math.max(0,(0,o.getTotalWidth)(w)-E);return{columnGroupProps:C,columnProps:w,availableScrollWidth:$,fixedColumns:O,fixedRightColumns:D,scrollableColumns:A,maxScrollX:N}}function f(h,g,_){var y=g,x=(0,o.getTotalFlexGrow)(g);if(x!==0){var S=(0,o.getTotalWidth)(g),E=Math.max(_-S,0);y=(0,r.default)(g,function(w){var M=w.flexGrow;if(!M)return w;var O=Math.floor(M*E/x),D=w.width+O;return x-=M,E-=O,u({},w,{width:D})})}var T=(0,r.default)(h,function(){return 0});(0,t.default)(y,function(w){w.groupIdx!==void 0&&(T[w.groupIdx]+=w.width)});var C=(0,r.default)(h,function(w,M){return T[M]===w.width?w:u({},w,{width:T[M]})});return{newColumnGroupProps:C,newColumnProps:y}}function p(h){var g=[],_=[],y=[];return(0,t.default)(h,function(x){var S=y;x.fixed?S=g:x.fixedRight&&(S=_),S.push(x)}),{fixedColumns:g,fixedRightColumns:_,scrollableColumns:y}}var m=(0,n.default)([function(h){return h.columnGroupProps},function(h){return h.columnProps},function(h){return(0,a.default)(h).scrollEnabledY},function(h){return h.tableSize.width},function(h){return h.scrollbarYWidth}],c);e.default=m})(xd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(wd),r=o(Yn),n=o(xd);function o(u){return u&&u.__esModule?u:{default:u}}function a(u,c){var f=u.columnGroupProps,p=u.columnProps,m=[],h=[],g=[];(0,t.default)(f,function(S,E){var T={props:S,template:c.groupHeader[E]};S.fixed?m.push(T):S.fixedRight?h.push(T):g.push(T)});var _={cell:[],header:[],footer:[]},y={cell:[],header:[],footer:[]},x={cell:[],header:[],footer:[]};return(0,t.default)(p,function(S,E){var T=x;S.fixed?T=_:S.fixedRight&&(T=y),T.cell.push({props:S,template:c.cell[E]}),T.header.push({props:S,template:c.header[E]}),T.footer.push({props:S,template:c.footer[E]})}),{fixedColumnGroups:m,fixedColumns:_,fixedRightColumnGroups:h,fixedRightColumns:y,scrollableColumnGroups:g,scrollableColumns:x}}var l=(0,r.default)([function(u){return(0,n.default)(u)},function(u){return u.elementTemplates}],a);e.default=l})(cy);var Td={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Yn),r=o(Fs),n=o(Fi);function o(u){return u&&u.__esModule?u:{default:u}}function a(u,c,f,p,m,h,g){var _=m.availableHeight,y=m.scrollEnabledX,x=f;y&&(x+=g);var S=Math.min(_,p),E=h?S:_,T=E+x,C=E;c<T&&(C=c-x);var w=h?p:Math.max(p,_),M=w+x;c&&(M=Math.max(c,M));var O=u.footerHeight,D=u.groupHeaderHeight,A=u.headerHeight,$=D+A,N=$+C,k=N+O,F=Math.max(0,N-$);return{bodyHeight:S,bodyOffsetTop:$,componentHeight:T,contentHeight:M,footOffsetTop:N,scrollbarXOffsetTop:k,scrollbarYHeight:F,visibleRowsHeight:C}}var l=(0,t.default)([function(u){return u.elementHeights},function(u){return u.tableSize.ownerHeight},function(u){return(0,r.default)(u).reservedHeight},function(u){return u.scrollContentHeight},n.default,function(u){return u.tableSize.useMaxHeight},function(u){return u.scrollbarXHeight}],a);e.default=l})(Td);var hy={},Bs={},py={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(wn);function r(a){return a&&a.__esModule?a:{default:a}}var n={listen:function(l,u,c){if(l.addEventListener)return l.addEventListener(u,c,!1),{remove:function(){l.removeEventListener(u,c,!1)}};if(l.attachEvent)return l.attachEvent("on"+u,c),{remove:function(){l.detachEvent("on"+u,c)}}},capture:function(l,u,c){return l.addEventListener?(l.addEventListener(u,c,!0),{remove:function(){l.removeEventListener(u,c,!0)}}):(process.env.NODE_ENV!=="production"&&console.error("Attempted to listen to events during the capture phase on a browser that does not support the capture phase. Your application will not receive some events."),{remove:t.default})},registerDefault:function(){}},o=n;e.default=o})(py);var my={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Wi);function r(a){return a&&a.__esModule?a:{default:a}}var n=t.default.cancelAnimationFrame||t.default.webkitCancelAnimationFrame||t.default.mozCancelAnimationFrame||t.default.oCancelAnimationFrame||t.default.msCancelAnimationFrame||t.default.clearTimeout,o=n;e.default=o})(my);var Hs={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(o){var a=0,l=0;if(!o.clientX||!o.clientY){if(o.touches&&o.touches.length>0){var u=o.touches[0];a=u.clientX,l=u.clientY}}else a=o.clientX,l=o.clientY;return{x:a,y:l}}var r={getCoordinatesFromEvent:t},n=r;e.default=n})(Hs);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(py),r=a(my),n=a(zs),o=a(Hs);function a(m){return m&&m.__esModule?m:{default:m}}function l(m,h){if(!(m instanceof h))throw new TypeError("Cannot call a class as a function")}function u(m,h){for(var g=0;g<h.length;g++){var _=h[g];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(m,_.key,_)}}function c(m,h,g){return h&&u(m.prototype,h),m}var f=function(){function m(h,g,_,y){l(this,m),this._isDragging=!1,this._isTouchEnabled=y,this._animationFrameID=null,this._domNode=_,this._onMove=h,this._onMoveEnd=g,this._onMouseEnd=this._onMouseEnd.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this._onMouseUp=this._onMouseUp.bind(this),this._didMouseMove=this._didMouseMove.bind(this)}return c(m,[{key:"captureMouseMoves",value:function(g){if(!this._eventMoveToken&&!this._eventUpToken&&!this._eventLeaveToken&&(this._eventMoveToken=t.default.listen(this._domNode,"mousemove",this._onMouseMove),this._eventUpToken=t.default.listen(this._domNode,"mouseup",this._onMouseUp),this._eventLeaveToken=t.default.listen(this._domNode,"mouseleave",this._onMouseEnd)),this._isTouchEnabled&&!this._eventTouchStartToken&&!this._eventTouchMoveToken&&!this._eventTouchEndToken&&(this._eventTouchStartToken=t.default.listen(this._domNode,"touchstart",this._onMouseMove),this._eventTouchMoveToken=t.default.listen(this._domNode,"touchmove",this._onMouseMove),this._eventTouchEndToken=t.default.listen(this._domNode,"touchend",this._onMouseUp)),!this._isDragging){this._deltaX=0,this._deltaY=0,this._isDragging=!0;var _=o.default.getCoordinatesFromEvent(g),y=_.x,x=_.y;this._x=y,this._y=x}g.preventDefault()}},{key:"releaseMouseMoves",value:function(){this._eventMoveToken&&this._eventUpToken&&this._eventLeaveToken&&(this._eventMoveToken.remove(),this._eventMoveToken=null,this._eventUpToken.remove(),this._eventUpToken=null,this._eventLeaveToken.remove(),this._eventLeaveToken=null),this._isTouchEnabled&&this._eventTouchStartToken&&this._eventTouchMoveToken&&this._eventTouchEndToken&&(this._eventTouchStartToken.remove(),this._eventTouchStartToken=null,this._eventTouchMoveToken.remove(),this._eventTouchMoveToken=null,this._eventTouchEndToken.remove(),this._eventTouchEndToken=null),this._animationFrameID!==null&&((0,r.default)(this._animationFrameID),this._animationFrameID=null),this._isDragging&&(this._isDragging=!1,this._x=null,this._y=null)}},{key:"isDragging",value:function(){return this._isDragging}},{key:"_onMouseMove",value:function(g){var _=o.default.getCoordinatesFromEvent(g),y=_.x,x=_.y;this._deltaX+=y-this._x,this._deltaY+=x-this._y,this._animationFrameID===null&&(this._animationFrameID=(0,n.default)(this._didMouseMove)),this._x=y,this._y=x,g.preventDefault()}},{key:"_didMouseMove",value:function(){this._animationFrameID=null,this._onMove(this._deltaX,this._deltaY),this._deltaX=0,this._deltaY=0}},{key:"_onMouseUp",value:function(){this._animationFrameID&&this._didMouseMove(),this._onMoveEnd(!1)}},{key:"_onMouseEnd",value:function(){this._onMoveEnd(!0)}}]),m}(),p=f;e.default=p})(Bs);(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(O){return typeof O}:t=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(Bt),o=u(js),a=u(cr),l=u(Bs);function u(w){return w&&w.__esModule?w:{default:w}}function c(w,M){if(!(w instanceof M))throw new TypeError("Cannot call a class as a function")}function f(w,M){for(var O=0;O<M.length;O++){var D=M[O];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}function p(w,M,O){return M&&f(w.prototype,M),w}function m(w,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(M&&M.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),M&&h(w,M)}function h(w,M){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(w,M)}function g(w){var M=x();return function(){var D=S(w),A;if(M){var $=S(this).constructor;A=Reflect.construct(D,arguments,$)}else A=D.apply(this,arguments);return _(this,A)}}function _(w,M){return M&&(t(M)==="object"||typeof M=="function")?M:y(w)}function y(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function x(){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(w){return!1}}function S(w){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},S(w)}function E(w,M,O){return M in w?Object.defineProperty(w,M,{value:O,enumerable:!0,configurable:!0,writable:!0}):w[M]=O,w}var T=function(w){m(O,w);var M=g(O);function O(){var D;c(this,O);for(var A=arguments.length,$=new Array(A),N=0;N<A;N++)$[N]=arguments[N];return D=M.call.apply(M,[this].concat($)),E(y(D),"state",{width:0,cursorDelta:0}),E(y(D),"_onMove",function(k){D.props.isRTL&&(k=-k);var F=D.state.cursorDelta+k,j=(0,o.default)(F,D.props.minWidth,D.props.maxWidth);D.setState({width:j,cursorDelta:F})}),E(y(D),"_onColumnResizeEnd",function(){D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.onColumnResizeEnd(D.state.width,D.props.columnKey)}),D}return p(O,[{key:"componentDidUpdate",value:function(){this.props.initialEvent&&!this._mouseMoveTracker.isDragging()&&(this._mouseMoveTracker.captureMouseMoves(this.props.initialEvent),this.setState({width:this.props.initialWidth,cursorDelta:this.props.initialWidth}))}},{key:"componentDidMount",value:function(){this._mouseMoveTracker=new l.default(this._onMove,this._onColumnResizeEnd,document.body,this.props.touchEnabled)}},{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={width:this.state.width,height:this.props.height};return this.props.isRTL?A.right=this.props.leftOffset:A.left=this.props.leftOffset,r.default.createElement("div",{className:(0,a.default)({"fixedDataTableColumnResizerLineLayout/main":!0,"fixedDataTableColumnResizerLineLayout/hiddenElem":!this.props.visible,"public/fixedDataTableColumnResizerLine/main":!0}),style:A},r.default.createElement("div",{className:(0,a.default)("fixedDataTableColumnResizerLineLayout/mouseArea"),style:{height:this.props.height}}))}}]),O}(r.default.PureComponent);E(T,"propTypes",{visible:n.default.bool.isRequired,height:n.default.number.isRequired,leftOffset:n.default.number.isRequired,knobHeight:n.default.number.isRequired,initialWidth:n.default.number,minWidth:n.default.number,maxWidth:n.default.number,initialEvent:n.default.object,onColumnResizeEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var C=T;e.default=C})(hy);var vy={};function Lz(e,t){return e==null||e!==e?t:e}var Az=Lz,Iz=Math.max,$z=Math.min;function zz(e,t,r){return e>=$z(t,r)&&e<Iz(t,r)}var Wz=zz,Fz=Wz,Lp=R.toFinite_1,jz=R.toNumber_1;function Bz(e,t,r){return t=Lp(t),r===void 0?(r=t,t=0):r=Lp(r),e=jz(e),Fz(e,t,r)}var Hz=Bz;function Vz(e){return e==null}var gy=Vz,Ed={},yy={},by={},Sd={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Q),n=l(Bt),o=l(cr),a=l(_n);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var $=1;$<arguments.length;$++){var N=arguments[$];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,$){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);$&&(k=k.filter(function(F){return Object.getOwnPropertyDescriptor(A,F).enumerable})),N.push.apply(N,k)}return N}function f(A){for(var $=1;$<arguments.length;$++){var N=arguments[$]!=null?arguments[$]:{};$%2?c(Object(N),!0).forEach(function(k){M(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function p(A,$){if(A==null)return{};var N=m(A,$),k,F;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(F=0;F<j.length;F++)k=j[F],!($.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,$){if(A==null)return{};var N={},k=Object.keys(A),F,j;for(j=0;j<k.length;j++)F=k[j],!($.indexOf(F)>=0)&&(N[F]=A[F]);return N}function h(A,$){if(!(A instanceof $))throw new TypeError("Cannot call a class as a function")}function g(A,$){for(var N=0;N<$.length;N++){var k=$[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,$,N){return $&&g(A.prototype,$),A}function y(A,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create($&&$.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),$&&x(A,$)}function x(A,$){return x=Object.setPrototypeOf||function(k,F){return k.__proto__=F,k},x(A,$)}function S(A){var $=C();return function(){var k=w(A),F;if($){var j=w(this).constructor;F=Reflect.construct(k,arguments,j)}else F=k.apply(this,arguments);return E(this,F)}}function E(A,$){return $&&(t($)==="object"||typeof $=="function")?$:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function C(){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(A){return!1}}function w(A){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},w(A)}function M(A,$,N){return $ in A?Object.defineProperty(A,$,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[$]=N,A}var O=function(A){y(N,A);var $=S(N);function N(){return h(this,N),$.apply(this,arguments)}return _(N,[{key:"render",value:function(){var F=this.props,j=F.height,I=F.width,B=F.style,G=F.className,q=F.children,U=p(F,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=f({height:j,width:I},B);return r.default.createElement("div",u({},U,{className:(0,a.default)((0,o.default)("fixedDataTableCellLayout/wrap1"),(0,o.default)("public/fixedDataTableCell/wrap1"),G),style:z}),r.default.createElement("div",{className:(0,a.default)((0,o.default)("fixedDataTableCellLayout/wrap2"),(0,o.default)("public/fixedDataTableCell/wrap2"))},r.default.createElement("div",{className:(0,a.default)((0,o.default)("fixedDataTableCellLayout/wrap3"),(0,o.default)("public/fixedDataTableCell/wrap3"))},r.default.createElement("div",{className:(0,o.default)("public/fixedDataTableCell/cellContent")},q))))}}]),N}(r.default.Component);M(O,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=O;e.default=D})(Sd);var _y={};(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(O){return typeof O}:t=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=u(Q),n=u(Bt),o=u(cr),a=u(Bs),l=u(Hs);function u(w){return w&&w.__esModule?w:{default:w}}function c(w,M){if(!(w instanceof M))throw new TypeError("Cannot call a class as a function")}function f(w,M){for(var O=0;O<M.length;O++){var D=M[O];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(w,D.key,D)}}function p(w,M,O){return M&&f(w.prototype,M),w}function m(w,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");w.prototype=Object.create(M&&M.prototype,{constructor:{value:w,writable:!0,configurable:!0}}),M&&h(w,M)}function h(w,M){return h=Object.setPrototypeOf||function(D,A){return D.__proto__=A,D},h(w,M)}function g(w){var M=x();return function(){var D=S(w),A;if(M){var $=S(this).constructor;A=Reflect.construct(D,arguments,$)}else A=D.apply(this,arguments);return _(this,A)}}function _(w,M){return M&&(t(M)==="object"||typeof M=="function")?M:y(w)}function y(w){if(w===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return w}function x(){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(w){return!1}}function S(w){return S=Object.setPrototypeOf?Object.getPrototypeOf:function(O){return O.__proto__||Object.getPrototypeOf(O)},S(w)}function E(w,M,O){return M in w?Object.defineProperty(w,M,{value:O,enumerable:!0,configurable:!0,writable:!0}):w[M]=O,w}var T=function(w){m(O,w);var M=g(O);function O(){var D;c(this,O);for(var A=arguments.length,$=new Array(A),N=0;N<A;N++)$[N]=arguments[N];return D=M.call.apply(M,[this].concat($)),E(y(D),"state",{dragDistance:0}),E(y(D),"onMouseDown",function(k){var F=k.target.getBoundingClientRect(),j=l.default.getCoordinatesFromEvent(k),I=j.x-F.left,B=I+k.target.parentElement.offsetLeft;D._mouseMoveTracker=new a.default(D._onMove,D._onColumnReorderEnd,document.body,D.props.touchEnabled),D._mouseMoveTracker.captureMouseMoves(k),D.setState({dragDistance:0}),D.props.onMouseDown({columnKey:D.props.columnKey,mouseLocation:{dragDistance:0,inElement:I,inColumnGroup:B}}),D._distance=0,D._animating=!0,D.frameId=requestAnimationFrame(D._updateState),D.props.touchEnabled&&k.stopPropagation()}),E(y(D),"_onMove",function(k){D._distance=D.state.dragDistance+k*(D.props.isRTL?-1:1)}),E(y(D),"_onColumnReorderEnd",function(k){D._animating=!1,cancelAnimationFrame(D.frameId),D.frameId=null,D._mouseMoveTracker&&D._mouseMoveTracker.releaseMouseMoves(),D.props.columnReorderingData.cancelReorder=k,D.props.onColumnReorderEnd()}),E(y(D),"_updateState",function(){D._animating&&(D.frameId=requestAnimationFrame(D._updateState)),D.setState({dragDistance:D._distance}),D.props.onColumnReorderMove(D._distance)}),D}return p(O,[{key:"componentWillUnmount",value:function(){this._mouseMoveTracker&&(cancelAnimationFrame(this.frameId),this.frameId=null,this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null)}},{key:"render",value:function(){var A={height:this.props.height};return r.default.createElement("div",{className:(0,o.default)({"fixedDataTableCellLayout/columnReorderContainer":!0,"fixedDataTableCellLayout/columnReorderContainer/active":!1}),onMouseDown:this.onMouseDown,onTouchStart:this.props.touchEnabled?this.onMouseDown:null,onTouchEnd:this.props.touchEnabled?function($){return $.stopPropagation()}:null,onTouchMove:this.props.touchEnabled?function($){return $.stopPropagation()}:null,style:A})}}]),O}(r.default.PureComponent);E(T,"propTypes",{onColumnReorderEnd:n.default.func,columnKey:n.default.oneOfType([n.default.string,n.default.number]),touchEnabled:n.default.bool,isRTL:n.default.bool});var C=T;e.default=C})(_y);function wy(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);e!=null&&this.setState(e)}function xy(e){function t(r){var n=this.constructor.getDerivedStateFromProps(e,r);return n!=null?n:null}this.setState(t.bind(this))}function Cy(e,t){try{var r=this.props,n=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(r,n)}finally{this.props=r,this.state=n}}wy.__suppressDeprecationWarning=!0;xy.__suppressDeprecationWarning=!0;Cy.__suppressDeprecationWarning=!0;function Uz(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if(typeof e.getDerivedStateFromProps!="function"&&typeof t.getSnapshotBeforeUpdate!="function")return e;var r=null,n=null,o=null;if(typeof t.componentWillMount=="function"?r="componentWillMount":typeof t.UNSAFE_componentWillMount=="function"&&(r="UNSAFE_componentWillMount"),typeof t.componentWillReceiveProps=="function"?n="componentWillReceiveProps":typeof t.UNSAFE_componentWillReceiveProps=="function"&&(n="UNSAFE_componentWillReceiveProps"),typeof t.componentWillUpdate=="function"?o="componentWillUpdate":typeof t.UNSAFE_componentWillUpdate=="function"&&(o="UNSAFE_componentWillUpdate"),r!==null||n!==null||o!==null){var a=e.displayName||e.name,l=typeof e.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
|
|
249
|
+
|
|
250
|
+
`+a+" uses "+l+" but also contains the following legacy lifecycles:"+(r!==null?`
|
|
251
|
+
`+r:"")+(n!==null?`
|
|
252
|
+
`+n:"")+(o!==null?`
|
|
253
|
+
`+o:"")+`
|
|
254
|
+
|
|
255
|
+
The above lifecycles should be removed. Learn more about this warning here:
|
|
256
|
+
https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=wy,t.componentWillReceiveProps=xy),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=Cy;var u=t.componentDidUpdate;t.componentDidUpdate=function(f,p,m){var h=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:m;u.call(this,f,p,h)}}return e}const qz=Object.freeze(Object.defineProperty({__proto__:null,polyfill:Uz},Symbol.toStringTag,{value:"Module"})),Ty=R.getAugmentedNamespace(qz);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(F){return typeof F}:t=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=p(Q),n=p(Bt),o=p(cr),a=p(_n),l=p(Jo),u=p(Sd),c=p(_y),f=Ty;function p(N){return N&&N.__esModule?N:{default:N}}function m(){return m=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var F=arguments[k];for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(N[j]=F[j])}return N},m.apply(this,arguments)}function h(N,k){if(N==null)return{};var F=g(N,k),j,I;if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(N);for(I=0;I<B.length;I++)j=B[I],!(k.indexOf(j)>=0)&&Object.prototype.propertyIsEnumerable.call(N,j)&&(F[j]=N[j])}return F}function g(N,k){if(N==null)return{};var F={},j=Object.keys(N),I,B;for(B=0;B<j.length;B++)I=j[B],!(k.indexOf(I)>=0)&&(F[I]=N[I]);return F}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var F=0;F<k.length;F++){var j=k[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function x(N,k,F){return k&&y(N.prototype,k),F&&y(N,F),N}function S(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&E(N,k)}function E(N,k){return E=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},E(N,k)}function T(N){var k=M();return function(){var j=O(N),I;if(k){var B=O(this).constructor;I=Reflect.construct(j,arguments,B)}else I=j.apply(this,arguments);return C(this,I)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:w(N)}function w(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function M(){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}}function O(N){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},O(N)}function D(N,k,F){return k in N?Object.defineProperty(N,k,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[k]=F,N}var A=function(N){S(F,N);var k=T(F);function F(){var j;_(this,F);for(var I=arguments.length,B=new Array(I),G=0;G<I;G++)B[G]=arguments[G];return j=k.call.apply(k,[this].concat(B)),D(w(j),"state",{isReorderingThisColumn:!1,displacement:0,reorderingDisplacement:0}),D(w(j),"_onColumnResizerMouseDown",function(q){j.props.onColumnResize(j.props.left,j.props.width,j.props.minWidth,j.props.maxWidth,j.props.columnKey,q),j.props.touchEnabled&&(q.preventDefault(),q.stopPropagation())}),D(w(j),"_onColumnReorderMouseDown",function(q){j.props.onColumnReorder(j.props.columnKey,j.props.width,j.props.left,q)}),D(w(j),"_suppressEvent",function(q){q.preventDefault(),q.stopPropagation()}),j}return x(F,[{key:"shouldComponentUpdate",value:function(I){if(I.isScrolling&&this.props.rowIndex===I.rowIndex&&this.props.isVisible===I.isVisible)return!1;if(!I.pureRendering)return!0;var B=this.props,G=B.cell,q=h(B,["cell"]),U=I.cell,z=h(I,["cell"]);return!(0,l.default)(q,z)||!G||!U||G.type!==U.type||!(0,l.default)(G.props,U.props)}},{key:"render",value:function(){var I=this.props,B=I.height,G=I.width,q=I.isVisible,U=I.columnKey,z=I.isHeaderOrFooter,H=h(I,["height","width","isVisible","columnKey","isHeaderOrFooter"]),ee={height:B,width:G};if(this.props.isRTL?ee.right=H.left:ee.left=H.left,this.state.isReorderingThisColumn){var X=this.props.isRTL?-1:1;ee.transform="translateX(".concat(this.state.displacement*X,"px) translateZ(0)"),ee.zIndex=1}var K=(0,a.default)((0,o.default)({"fixedDataTableCellLayout/main":!0,"fixedDataTableCellLayout/lastChild":H.lastChild,"fixedDataTableCellLayout/alignRight":H.align==="right","fixedDataTableCellLayout/alignCenter":H.align==="center","public/fixedDataTableCell/alignRight":H.align==="right","public/fixedDataTableCell/highlighted":H.highlighted,"public/fixedDataTableCell/main":!0,"public/fixedDataTableCell/hasReorderHandle":!!H.onColumnReorder,"public/fixedDataTableCell/reordering":this.state.isReorderingThisColumn}),H.className),J;if(H.onColumnResize){var ne={height:B};J=r.default.createElement("div",{className:(0,o.default)("fixedDataTableCellLayout/columnResizerContainer"),style:ne,onMouseDown:this._onColumnResizerMouseDown,onTouchStart:this.props.touchEnabled?this._onColumnResizerMouseDown:null,onTouchEnd:this.props.touchEnabled?this._suppressEvent:null,onTouchMove:this.props.touchEnabled?this._suppressEvent:null},r.default.createElement("div",{className:(0,a.default)((0,o.default)("fixedDataTableCellLayout/columnResizerKnob"),(0,o.default)("public/fixedDataTableCell/columnResizerKnob")),style:ne}))}var le;H.onColumnReorder&&(le=r.default.createElement(c.default,m({columnKey:this.columnKey,touchEnabled:this.props.touchEnabled,onMouseDown:this._onColumnReorderMouseDown,onTouchStart:this._onColumnReorderMouseDown,height:B},this.props)));var se={columnKey:U,height:B,width:G,isVisible:q};H.rowIndex>=0&&(se.rowIndex=H.rowIndex);var ue;r.default.isValidElement(H.cell)?ue=r.default.cloneElement(H.cell,se):typeof H.cell=="function"?ue=H.cell(se):ue=r.default.createElement(u.default,se,H.cell);var fe=z?"columnheader":"gridcell";return r.default.createElement("div",{className:K,style:ee,role:fe},J,le,ue)}}],[{key:"getDerivedStateFromProps",value:function(I,B){var G=I.left+B.displacement,q={isReorderingThisColumn:!1};if(!I.isColumnReordering)return q.displacement=0,q;var U=I.columnReorderingData.originalLeft,z=U+I.columnReorderingData.dragDistance,H=I.columnGroupWidth-I.columnReorderingData.columnWidth;if(z=Math.max(z,0),z=Math.min(z,H),I.columnKey===I.columnReorderingData.columnKey)return q.displacement=z-I.left,q.isReorderingThisColumn=!0,q;var ee=z+I.columnReorderingData.columnWidth,X=z+I.columnReorderingData.columnWidth/2,K=G+I.width/2,J=X>K,ne=U>I.left,le=!1;return J?z<K&&(le=!0,ne?q.displacement=I.columnReorderingData.columnWidth:q.displacement=0):ee>K&&(le=!0,ne?q.displacement=0:q.displacement=I.columnReorderingData.columnWidth*-1),le?J?I.columnReorderingData.columnAfter||(I.columnReorderingData.columnAfter=I.columnKey):I.columnReorderingData.columnBefore=I.columnKey:J?I.columnReorderingData.columnBefore=I.columnKey:I.columnReorderingData.columnAfter||(I.columnReorderingData.columnAfter=I.columnKey),q}}]),F}(r.default.Component);D(A,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,align:n.default.oneOf(["left","center","right"]),className:n.default.string,highlighted:n.default.bool,width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,height:n.default.number.isRequired,cell:n.default.oneOfType([n.default.string,n.default.element,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number.isRequired,onColumnResize:n.default.func,onColumnReorder:n.default.func,left:n.default.number,pureRendering:n.default.bool,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired}),D(A,"defaultProps",{align:"left",highlighted:!1});var $=(0,f.polyfill)(A);e.default=$})(by);var ea={},Md={},Pd={},Ey={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=/-(.)/g;function r(o){return o.replace(t,function(a,l){return l.toUpperCase()})}var n=r;e.default=n})(Ey);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(zi),r=o(_d),n=o(Ey);function o(h){return h&&h.__esModule?h:{default:h}}var a={},l=["Webkit","ms","Moz","O"],u=new RegExp("^("+l.join("|")+")"),c=r.default.canUseDOM?document.createElement("div").style:{};function f(h){for(var g=0;g<l.length;g++){var _=l[g]+h;if(_ in c)return _}return null}function p(h){var g=(0,n.default)(h);if(a[g]===void 0){var _=g.charAt(0).toUpperCase()+g.slice(1);u.test(_)&&(0,t.default)(!1,"getVendorPrefixedName must only be called with unprefixedCSS property names. It was called with %s",h),a[g]=g in c?g:f(_)}return a[g]}var m=p;e.default=m})(Pd);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=r(Pd);function r(a){return a&&a.__esModule?a:{default:a}}var n={hasCSSAnimations:function(){return!!(0,t.default)("animationName")},hasCSSTransforms:function(){return!!(0,t.default)("transform")},hasCSS3DTransforms:function(){return!!(0,t.default)("perspective")},hasCSSTransitions:function(){return!!(0,t.default)("transition")}},o=n;e.default=o})(Md);var Sy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=o(Md),r=o(Pd),n=o(Wi);function o(c){return c&&c.__esModule?c:{default:c}}var a=(0,r.default)("transform");(0,r.default)("backfaceVisibility");var l=function(){if(t.default.hasCSSTransforms()){var c=n.default.window?n.default.window.navigator.userAgent:"UNKNOWN",f=/Safari\//.test(c)&&!/Chrome\//.test(c);return!f&&t.default.hasCSS3DTransforms()?function(p,m,h){p[a]="translate3d("+m+"px,"+h+"px,0)"}:function(p,m,h){p[a]="translate("+m+"px,"+h+"px)"}}else return function(p,m,h){p.left=m+"px",p.top=h+"px"}}(),u=l;e.default=u})(Sy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(Md),r=n(Sy);function n(l){return l&&l.__esModule?l:{default:l}}function o(l,u,c){var f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,p=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;l.display!=="none"&&(f?(l.left=u+"px",l.top=c+"px"):(t.default.hasCSSTransforms()&&(u*=p?-1:1),(0,r.default)(l,u,c)),p&&(l.right=l.left,l.left="auto"))}var a=o;e.default=a})(ea);(function(e){function t($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(k){return typeof k}:t=function(k){return k&&typeof Symbol=="function"&&k.constructor===Symbol&&k!==Symbol.prototype?"symbol":typeof k},t($)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(Bt),o=c(cr),a=xn,l=c(by),u=c(ea);function c($){return $&&$.__esModule?$:{default:$}}function f(){return f=Object.assign||function($){for(var N=1;N<arguments.length;N++){var k=arguments[N];for(var F in k)Object.prototype.hasOwnProperty.call(k,F)&&($[F]=k[F])}return $},f.apply(this,arguments)}function p($,N){if($==null)return{};var k=m($,N),F,j;if(Object.getOwnPropertySymbols){var I=Object.getOwnPropertySymbols($);for(j=0;j<I.length;j++)F=I[j],!(N.indexOf(F)>=0)&&Object.prototype.propertyIsEnumerable.call($,F)&&(k[F]=$[F])}return k}function m($,N){if($==null)return{};var k={},F=Object.keys($),j,I;for(I=0;I<F.length;I++)j=F[I],!(N.indexOf(j)>=0)&&(k[j]=$[j]);return k}function h($,N){if(!($ instanceof N))throw new TypeError("Cannot call a class as a function")}function g($,N){for(var k=0;k<N.length;k++){var F=N[k];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty($,F.key,F)}}function _($,N,k){return N&&g($.prototype,N),$}function y($,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(N&&N.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),N&&x($,N)}function x($,N){return x=Object.setPrototypeOf||function(F,j){return F.__proto__=j,F},x($,N)}function S($){var N=C();return function(){var F=w($),j;if(N){var I=w(this).constructor;j=Reflect.construct(F,arguments,I)}else j=F.apply(this,arguments);return E(this,j)}}function E($,N){return N&&(t(N)==="object"||typeof N=="function")?N:T($)}function T($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function C(){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($){return!1}}function w($){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(k){return k.__proto__||Object.getPrototypeOf(k)},w($)}function M($,N,k){return N in $?Object.defineProperty($,N,{value:k,enumerable:!0,configurable:!0,writable:!0}):$[N]=k,$}var O=function($){y(k,$);var N=S(k);function k(F){var j;return h(this,k),j=N.call(this,F),M(T(j),"_renderCell",function(I,B,G,q,U,z,H,ee,X){var K=G.isResizable&&j.props.onColumnResize,J=K?j.props.onColumnResize:null,ne=G.isReorderable&&j.props.onColumnReorder&&I===-1&&H!==G.width,le=ne?j.props.onColumnReorder:null,se=G.cellClassName,ue=G.pureRendering||!1;return r.default.createElement(l.default,{isScrolling:j.props.isScrolling,isHeaderOrFooter:j.props.isHeaderOrFooter,align:G.align,className:se,height:B,key:z,maxWidth:G.maxWidth,minWidth:G.minWidth,touchEnabled:j.props.touchEnabled,onColumnResize:J,onColumnReorder:le,onColumnReorderMove:j.props.onColumnReorderMove,onColumnReorderEnd:j.props.onColumnReorderEnd,isColumnReordering:ee,columnReorderingData:j.props.columnReorderingData,rowIndex:I,columnKey:G.columnKey,width:G.width,left:U,cell:q,columnGroupWidth:H,pureRendering:ue,isRTL:j.props.isRTL,isVisible:j.props.isVisible&&X})}),j._initialRender=!0,j}return _(k,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"render",value:function(){for(var j=this.props,I=j.columns,B=new Array(I.length),G=(0,a.sumPropWidths)(I),q=j.isColumnReordering&&I.reduce(function(se,ue){return se||j.columnReorderingData.columnKey===ue.props.columnKey},!1),U=0,z=0,H=I.length;z<H;z++){var ee=I[z].props,X=I[z].template,K=ee.allowCellsRecycling&&!q,J=U-j.left<=j.width&&U-j.left+ee.width>=0;if(!K||J){var ne=ee.columnKey||"cell_"+z;B[z]=this._renderCell(j.rowIndex,j.rowHeight,ee,X,U,ne,G,q,J)}U+=ee.width}var le={height:j.height,position:"absolute",width:G,zIndex:j.zIndex};return(0,u.default)(le,-1*j.left,0,this._initialRender,this.props.isRTL),r.default.createElement("div",{className:(0,o.default)("fixedDataTableCellGroupLayout/cellGroup"),style:le},B)}}]),k}(r.default.Component);M(O,"propTypes_DISABLED_FOR_PERFORMANCE",{columns:n.default.array.isRequired,isScrolling:n.default.bool,left:n.default.number,onColumnResize:n.default.func,onColumnReorder:n.default.func,onColumnReorderMove:n.default.func,onColumnReorderEnd:n.default.func,height:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,rowHeight:n.default.number.isRequired,rowIndex:n.default.number.isRequired,width:n.default.number.isRequired,zIndex:n.default.number.isRequired,touchEnabled:n.default.bool,isHeaderOrFooter:n.default.bool,isRTL:n.default.bool,isVisible:n.default.bool.isRequired});var D=function($){y(k,$);var N=S(k);function k(){var F;h(this,k);for(var j=arguments.length,I=new Array(j),B=0;B<j;B++)I[B]=arguments[B];return F=N.call.apply(N,[this].concat(I)),M(T(F),"_onColumnResize",function(G,q,U,z,H,ee){F.props.onColumnResize&&F.props.onColumnResize(F.props.offsetLeft,G-F.props.left+q,q,U,z,H,ee)}),F}return _(k,[{key:"shouldComponentUpdate",value:function(j){return!(j.isScrolling&&this.props.rowIndex===j.rowIndex&&this.props.left===j.left&&this.props.offsetLeft===j.offsetLeft&&this.props.isVisible===j.isVisible)}},{key:"render",value:function(){var j=this.props,I=j.offsetLeft,B=p(j,["offsetLeft"]),G={height:B.cellGroupWrapperHeight||B.height,width:B.width};this.props.isRTL?G.right=I:G.left=I;var q=B.onColumnResize?this._onColumnResize:null;return r.default.createElement("div",{style:G,className:(0,o.default)("fixedDataTableCellGroupLayout/cellGroupWrapper")},r.default.createElement(O,f({},B,{onColumnResize:q})))}}]),k}(r.default.Component);M(D,"propTypes_DISABLED_FOR_PERFORMANCE",{isScrolling:n.default.bool,height:n.default.number.isRequired,offsetLeft:n.default.number,left:n.default.number,zIndex:n.default.number.isRequired}),M(D,"defaultProps",{left:0,offsetLeft:0});var A=D;e.default=A})(yy);(function(e){function t(k){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(j){return typeof j}:t=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},t(k)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=f(Bt),n=f(Q),o=f(cr),a=f(_n),l=xn,u=f(yy),c=f(ea);function f(k){return k&&k.__esModule?k:{default:k}}function p(k,F){if(k==null)return{};var j=m(k,F),I,B;if(Object.getOwnPropertySymbols){var G=Object.getOwnPropertySymbols(k);for(B=0;B<G.length;B++)I=G[B],!(F.indexOf(I)>=0)&&Object.prototype.propertyIsEnumerable.call(k,I)&&(j[I]=k[I])}return j}function m(k,F){if(k==null)return{};var j={},I=Object.keys(k),B,G;for(G=0;G<I.length;G++)B=I[G],!(F.indexOf(B)>=0)&&(j[B]=k[B]);return j}function h(){return h=Object.assign||function(k){for(var F=1;F<arguments.length;F++){var j=arguments[F];for(var I in j)Object.prototype.hasOwnProperty.call(j,I)&&(k[I]=j[I])}return k},h.apply(this,arguments)}function g(k,F){if(!(k instanceof F))throw new TypeError("Cannot call a class as a function")}function _(k,F){for(var j=0;j<F.length;j++){var I=F[j];I.enumerable=I.enumerable||!1,I.configurable=!0,"value"in I&&(I.writable=!0),Object.defineProperty(k,I.key,I)}}function y(k,F,j){return F&&_(k.prototype,F),k}function x(k,F){if(typeof F!="function"&&F!==null)throw new TypeError("Super expression must either be null or a function");k.prototype=Object.create(F&&F.prototype,{constructor:{value:k,writable:!0,configurable:!0}}),F&&S(k,F)}function S(k,F){return S=Object.setPrototypeOf||function(I,B){return I.__proto__=B,I},S(k,F)}function E(k){var F=w();return function(){var I=M(k),B;if(F){var G=M(this).constructor;B=Reflect.construct(I,arguments,G)}else B=I.apply(this,arguments);return T(this,B)}}function T(k,F){return F&&(t(F)==="object"||typeof F=="function")?F:C(k)}function C(k){if(k===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return k}function w(){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(k){return!1}}function M(k){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},M(k)}function O(k,F,j){return F in k?Object.defineProperty(k,F,{value:j,enumerable:!0,configurable:!0,writable:!0}):k[F]=j,k}var D=1,A=function(k){x(j,k);var F=E(j);function j(){var I;g(this,j);for(var B=arguments.length,G=new Array(B),q=0;q<B;q++)G[q]=arguments[q];return I=F.call.apply(F,[this].concat(G)),O(C(I),"mouseLeaveIndex",null),O(C(I),"_getRowExpanded",function(U){if(I.props.rowExpanded){var z={rowIndex:I.props.index,height:U,width:I.props.width},H;return n.default.isValidElement(I.props.rowExpanded)?H=n.default.cloneElement(I.props.rowExpanded,z):typeof I.props.rowExpanded=="function"&&(H=I.props.rowExpanded(z)),H}}),O(C(I),"_renderColumnsLeftShadow",function(U){var z=(0,o.default)({"fixedDataTableRowLayout/fixedColumnsDivider":U>0,"fixedDataTableRowLayout/columnsShadow":I.props.scrollLeft>0,"public/fixedDataTableRow/fixedColumnsDivider":U>0,"public/fixedDataTableRow/columnsShadow":I.props.scrollLeft>0}),H=I.props.cellGroupWrapperHeight?I.props.cellGroupWrapperHeight-D:I.props.height,ee={left:U,height:H};return I.props.isRTL&&(ee.right=U,ee.left="auto"),n.default.createElement("div",{className:z,style:ee})}),O(C(I),"_renderFixedRightColumnsShadow",function(U){var z=(0,o.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","fixedDataTableRowLayout/fixedColumnsDivider","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow","public/fixedDataTableRow/fixedColumnsDivider"),H={height:I.props.height,left:U};return I.props.isRTL&&(H.right=U,H.left="auto"),n.default.createElement("div",{className:z,style:H})}),O(C(I),"_renderColumnsRightShadow",function(U){if(Math.ceil(I.props.scrollLeft+I.props.width)<Math.floor(U)){var z=(0,o.default)("fixedDataTableRowLayout/columnsShadow","fixedDataTableRowLayout/columnsRightShadow","public/fixedDataTableRow/columnsShadow","public/fixedDataTableRow/columnsRightShadow"),H={height:I.props.height};return n.default.createElement("div",{className:z,style:H})}}),O(C(I),"_onClick",function(U){I.props.onClick(U,I.props.index)}),O(C(I),"_onContextMenu",function(U){I.props.onContextMenu(U,I.props.index)}),O(C(I),"_onDoubleClick",function(U){I.props.onDoubleClick(U,I.props.index)}),O(C(I),"_onMouseUp",function(U){I.props.onMouseUp(U,I.props.index)}),O(C(I),"_onMouseDown",function(U){I.props.onMouseDown(U,I.props.index)}),O(C(I),"_onMouseEnter",function(U){I.mouseLeaveIndex=I.props.index,I.props.onMouseEnter&&I.props.onMouseEnter(U,I.props.index)}),O(C(I),"_onMouseLeave",function(U){I.mouseLeaveIndex===null&&(I.mouseLeaveIndex=I.props.index),I.props.onMouseLeave(U,I.mouseLeaveIndex),I.mouseLeaveIndex=null}),O(C(I),"_onTouchStart",function(U){I.props.onTouchStart(U,I.props.index)}),O(C(I),"_onTouchEnd",function(U){I.props.onTouchEnd(U,I.props.index)}),O(C(I),"_onTouchMove",function(U){I.props.onTouchMove(U,I.props.index)}),I}return y(j,[{key:"shouldComponentUpdate",value:function(B){return B.isScrolling?B.visible?this.props.visible!==B.visible?!0:!(this.props.index===B.index&&this.props.scrollLeft===B.scrollLeft):!1:!0}},{key:"render",value:function(){var B=this.props.subRowHeight||0,G={width:this.props.width,height:this.props.height+B},q=(0,o.default)({"fixedDataTableRowLayout/main":!0,"public/fixedDataTableRow/main":!0,"public/fixedDataTableRow/highlighted":this.props.index%2===1,"public/fixedDataTableRow/odd":this.props.index%2===1,"public/fixedDataTableRow/even":this.props.index%2===0}),U=(0,l.sumPropWidths)(this.props.fixedColumns),z=n.default.createElement(u.default,{key:"fixed_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,left:0,width:U,zIndex:2,columns:this.props.fixedColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),H=this._renderColumnsLeftShadow(U),ee=(0,l.sumPropWidths)(this.props.fixedRightColumns),X=this.props.showScrollbarY?this.props.scrollbarYWidth:0,K=n.default.createElement(u.default,{key:"fixed_right_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,offsetLeft:this.props.width-ee-X,width:ee,zIndex:2,columns:this.props.fixedRightColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),J=ee?this._renderFixedRightColumnsShadow(this.props.width-ee-X-5):null,ne=n.default.createElement(u.default,{key:"scrollable_cells",isScrolling:this.props.isScrolling,height:this.props.height,cellGroupWrapperHeight:this.props.cellGroupWrapperHeight,align:"right",left:this.props.scrollLeft,offsetLeft:U,width:this.props.width-U-ee-X,zIndex:0,columns:this.props.scrollableColumns,touchEnabled:this.props.touchEnabled,onColumnResize:this.props.onColumnResize,onColumnReorder:this.props.onColumnReorder,onColumnReorderMove:this.props.onColumnReorderMove,onColumnReorderEnd:this.props.onColumnReorderEnd,isColumnReordering:this.props.isColumnReordering,columnReorderingData:this.props.columnReorderingData,rowHeight:this.props.height,rowIndex:this.props.index,isHeaderOrFooter:this.props.isHeaderOrFooter,isRTL:this.props.isRTL,isVisible:this.props.visible}),le=(0,l.sumPropWidths)(this.props.scrollableColumns),se=this._renderColumnsRightShadow(U+le),ue=this._getRowExpanded(B),fe={height:B,top:this.props.height,width:this.props.width},pe=null;if(this.props.showScrollbarY){var ae={width:X,height:this.props.height,left:this.props.isRTL?2:this.props.width-X-2};pe=n.default.createElement("div",{style:ae,className:(0,o.default)("public/fixedDataTable/scrollbarSpacer")})}return n.default.createElement("div",h({className:(0,a.default)(q,this.props.className),role:"row","aria-rowindex":this.props.ariaRowIndex},this.props.attributes,{onClick:this.props.onClick?this._onClick:null,onContextMenu:this.props.onContextMenu?this._onContextMenu:null,onDoubleClick:this.props.onDoubleClick?this._onDoubleClick:null,onMouseDown:this.props.onMouseDown?this._onMouseDown:null,onMouseUp:this.props.onMouseUp?this._onMouseUp:null,onMouseEnter:this.props.onMouseEnter||this.props.onMouseLeave?this._onMouseEnter:null,onMouseLeave:this.props.onMouseLeave?this._onMouseLeave:null,onTouchStart:this.props.onTouchStart?this._onTouchStart:null,onTouchEnd:this.props.onTouchEnd?this._onTouchEnd:null,onTouchMove:this.props.onTouchMove?this._onTouchMove:null,style:G}),n.default.createElement("div",{className:(0,o.default)("fixedDataTableRowLayout/body")},z,ne,H,K,J,pe),ue&&n.default.createElement("div",{className:(0,o.default)("fixedDataTableRowLayout/rowExpanded"),style:fe},ue),se)}}]),j}(n.default.Component);O(A,"propTypes",{isScrolling:r.default.bool,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,cellGroupWrapperHeight:r.default.number,subRowHeight:r.default.number,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),index:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,width:r.default.number.isRequired,onClick:r.default.func,onContextMenu:r.default.func,onDoubleClick:r.default.func,onColumnResize:r.default.func,isColumnReordering:r.default.bool,onColumnReorder:r.default.func,onColumnReorderMove:r.default.func,onColumnReorderEnd:r.default.func,touchEnabled:r.default.bool,isHeaderOrFooter:r.default.bool,ariaRowIndex:r.default.number,isRTL:r.default.bool,attributes:r.default.object});var $=function(k){x(j,k);var F=E(j);function j(I){var B;return g(this,j),B=F.call(this,I),B._initialRender=!0,B}return y(j,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(B){return!B.isScrolling||this.props.visible!==B.visible?!0:B.visible?!(B.isScrolling&&this.props.index===B.index&&this.props.offsetTop===B.offsetTop&&this.props.scrollLeft===B.scrollLeft):!1}},{key:"render",value:function(){var B=this.props,G=B.offsetTop,q=B.zIndex,U=p(B,["offsetTop","zIndex"]),z={width:this.props.width,height:this.props.height,zIndex:q||0,visibility:U.visible?"visible":"hidden"};return(0,c.default)(z,0,G,this._initialRender,this.props.isRTL),n.default.createElement("div",{style:z,className:(0,o.default)("fixedDataTableRowLayout/rowWrapper")},n.default.createElement(A,U))}}]),j}(n.default.Component);O($,"propTypes",{isScrolling:r.default.bool,height:r.default.number.isRequired,zIndex:r.default.number,offsetTop:r.default.number.isRequired,visible:r.default.bool.isRequired,width:r.default.number.isRequired});var N=$;e.default=N})(Ed);(function(e){function t(N){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(F){return typeof F}:t=function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F},t(N)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(Bt),n=h(Q),o=h(Az),a=h(Hz),l=h(gy),u=h(cr),c=h(wn),f=h(_n),p=h(Ed),m=h(ea);function h(N){return N&&N.__esModule?N:{default:N}}function g(){return g=Object.assign||function(N){for(var k=1;k<arguments.length;k++){var F=arguments[k];for(var j in F)Object.prototype.hasOwnProperty.call(F,j)&&(N[j]=F[j])}return N},g.apply(this,arguments)}function _(N,k){if(!(N instanceof k))throw new TypeError("Cannot call a class as a function")}function y(N,k){for(var F=0;F<k.length;F++){var j=k[F];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(N,j.key,j)}}function x(N,k,F){return k&&y(N.prototype,k),N}function S(N,k){if(typeof k!="function"&&k!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(k&&k.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),k&&E(N,k)}function E(N,k){return E=Object.setPrototypeOf||function(j,I){return j.__proto__=I,j},E(N,k)}function T(N){var k=M();return function(){var j=O(N),I;if(k){var B=O(this).constructor;I=Reflect.construct(j,arguments,B)}else I=j.apply(this,arguments);return C(this,I)}}function C(N,k){return k&&(t(k)==="object"||typeof k=="function")?k:w(N)}function w(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function M(){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}}function O(N){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(F){return F.__proto__||Object.getPrototypeOf(F)},O(N)}function D(N,k,F){return k in N?Object.defineProperty(N,k,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[k]=F,N}var A=function(N){S(F,N);var k=T(F);function F(j){var I;return _(this,F),I=k.call(this,j),I._staticRowArray=[],I._initialRender=!0,I}return x(F,[{key:"componentDidMount",value:function(){this._initialRender=!1}},{key:"shouldComponentUpdate",value:function(){return!0}},{key:"componentWillUnmount",value:function(){this._staticRowArray.length=0}},{key:"render",value:function(){var I=this.props,B=I.offsetTop,G=I.rowOffsets,q=I.scrollTop,U=I.isScrolling,z=I.rowsToRender;z=z||[],U?this._staticRowArray.length=Math.max(this._staticRowArray.length,z.length):this._staticRowArray.length=z.length;for(var H=1e6,ee=B-q%H,X=0;X<this._staticRowArray.length;X++){var K,J=(0,o.default)(z[X],(K=this._staticRowArray[X])===null||K===void 0?void 0:K.props.index);if((0,l.default)(J)||!(0,a.default)(J,0,this.props.rowSettings.rowsCount)){this._staticRowArray[X]=null;continue}var ne=G[J]-Math.floor(q/H)*H;this._staticRowArray[X]=this.renderRow({rowIndex:J,key:X,rowOffsetTop:ne})}var le={};(0,m.default)(le,0,ee,!1);var se=this._staticRowArray.slice().sort(this.rowSortComparator);return n.default.createElement("div",{style:le},se)}},{key:"renderRow",value:function(I){var B=I.rowIndex,G=I.key,q=I.rowOffsetTop,U=this.props,z=U.rowClassNameGetter||c.default,H={};H.height=this.props.rowSettings.rowHeightGetter(B),H.subRowHeight=this.props.rowSettings.subRowHeightGetter(B),H.offsetTop=q,H.key=U.rowKeyGetter?U.rowKeyGetter(B):G,H.attributes=U.rowSettings.rowAttributesGetter&&U.rowSettings.rowAttributesGetter(B);var ee=B===U.rowSettings.rowsCount-1&&U.showLastRowBorder;H.className=(0,f.default)(z(B),(0,u.default)("public/fixedDataTable/bodyRow"),(0,u.default)({"fixedDataTableLayout/hasBottomBorder":ee,"public/fixedDataTable/hasBottomBorder":ee}));var X=(0,a.default)(B,this.props.firstViewportRowIndex,this.props.endViewportRowIndex);return n.default.createElement(p.default,g({key:G,index:B,ariaRowIndex:B+U.ariaRowIndexOffset,isScrolling:U.isScrolling,width:U.width,rowExpanded:U.rowExpanded,scrollLeft:Math.round(U.scrollLeft),fixedColumns:U.fixedColumns,fixedRightColumns:U.fixedRightColumns,scrollableColumns:U.scrollableColumns,onClick:U.onRowClick,onContextMenu:U.onRowContextMenu,onDoubleClick:U.onRowDoubleClick,onMouseDown:U.onRowMouseDown,onMouseUp:U.onRowMouseUp,onMouseEnter:U.onRowMouseEnter,onMouseLeave:U.onRowMouseLeave,onTouchStart:U.onRowTouchStart,onTouchEnd:U.onRowTouchEnd,onTouchMove:U.onRowTouchMove,showScrollbarY:U.showScrollbarY,scrollbarYWidth:U.scrollbarYWidth,isRTL:U.isRTL,visible:X},H))}},{key:"rowSortComparator",value:function(I,B){var G,q;return((G=I==null?void 0:I.props.ariaRowIndex)!==null&&G!==void 0?G:-1)-((q=B==null?void 0:B.props.ariaRowIndex)!==null&&q!==void 0?q:-1)}}]),F}(n.default.Component);D(A,"propTypes",{ariaRowIndexOffset:r.default.number,isScrolling:r.default.bool,firstViewportRowIndex:r.default.number.isRequired,endViewportRowIndex:r.default.number.isRequired,fixedColumns:r.default.array.isRequired,fixedRightColumns:r.default.array.isRequired,height:r.default.number.isRequired,offsetTop:r.default.number.isRequired,onRowClick:r.default.func,onRowContextMenu:r.default.func,onRowDoubleClick:r.default.func,onRowMouseDown:r.default.func,onRowMouseUp:r.default.func,onRowMouseEnter:r.default.func,onRowMouseLeave:r.default.func,onRowTouchStart:r.default.func,onRowTouchEnd:r.default.func,onRowTouchMove:r.default.func,rowClassNameGetter:r.default.func,rowExpanded:r.default.oneOfType([r.default.element,r.default.func]),rowOffsets:r.default.object.isRequired,rowKeyGetter:r.default.func,rowSettings:r.default.shape({rowAttributesGetter:r.default.func,rowHeightGetter:r.default.func,rowsCount:r.default.number.isRequired,subRowHeightGetter:r.default.func}),rowsToRender:r.default.array.isRequired,scrollLeft:r.default.number.isRequired,scrollTop:r.default.number.isRequired,scrollableColumns:r.default.array.isRequired,showLastRowBorder:r.default.bool,showScrollbarY:r.default.bool,width:r.default.number.isRequired,isRTL:r.default.bool});var $=A;e.default=$})(vy);var My={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(wn),r=n(zs);function n(g){return g&&g.__esModule?g:{default:g}}function o(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function a(g,_){for(var y=0;y<_.length;y++){var x=_[y];x.enumerable=x.enumerable||!1,x.configurable=!0,"value"in x&&(x.writable=!0),Object.defineProperty(g,x.key,x)}}function l(g,_,y){return _&&a(g.prototype,_),g}var u=1.6,c=1.6,f=325,p=100,m=function(){function g(_,y,x,S,E){o(this,g),this._dragAnimationId=null,this._trackerId=null,this._deltaX=0,this._deltaY=0,this._lastTouchX=0,this._lastTouchY=0,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),this._autoScrollTimestamp=Date.now(),typeof y!="function"&&(y=y?t.default.thatReturnsTrue:t.default.thatReturnsFalse),typeof x!="function"&&(x=x?t.default.thatReturnsTrue:t.default.thatReturnsFalse),this._handleScrollX=y,this._handleScrollY=x,this._preventDefault=S,this._stopPropagation=E,this._onTouchScrollCallback=_,this._didTouchMove=this._didTouchMove.bind(this),this._track=this._track.bind(this),this._autoScroll=this._autoScroll.bind(this),this._startAutoScroll=this._startAutoScroll.bind(this),this.onTouchStart=this.onTouchStart.bind(this),this.onTouchEnd=this.onTouchEnd.bind(this),this.onTouchMove=this.onTouchMove.bind(this),this.onTouchCancel=this.onTouchCancel.bind(this)}return l(g,[{key:"onTouchStart",value:function(y){this._lastTouchX=y.touches[0].pageX,this._lastTouchY=y.touches[0].pageY,this._velocityX=0,this._velocityY=0,this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=Date.now(),clearInterval(this._trackerId),this._trackerId=setInterval(this._track,p),this._stopPropagation&&y.stopPropagation()}},{key:"onTouchEnd",value:function(y){clearInterval(this._trackerId),this._trackerId=null,(0,r.default)(this._startAutoScroll),this._stopPropagation&&y.stopPropagation()}},{key:"onTouchCancel",value:function(y){clearInterval(this._trackerId),this._trackerId=null,this._stopPropagation&&y.stopPropagation()}},{key:"onTouchMove",value:function(y){this._preventDefault&&y.preventDefault();var x=y.touches[0].pageX,S=y.touches[0].pageY;this._deltaX=u*(this._lastTouchX-x),this._deltaY=u*(this._lastTouchY-S);var E=this._handleScrollX(this._deltaX,this._deltaY),T=this._handleScrollY(this._deltaY,this._deltaX);if(!(!E&&!T)){E?this._lastTouchX=x:this._deltaX=0,T?this._lastTouchY=S:this._deltaY=0,y.defaultPrevented||y.preventDefault();var C=!1;(Math.abs(this._deltaX)>2||Math.abs(this._deltaY)>2)&&(this._stopPropagation&&y.stopPropagation(),C=!0),C===!0&&this._dragAnimationId===null&&(this._dragAnimationId=(0,r.default)(this._didTouchMove))}}},{key:"_didTouchMove",value:function(){this._dragAnimationId=null,this._onTouchScrollCallback(this._deltaX,this._deltaY),this._accumulatedDeltaX+=this._deltaX,this._accumulatedDeltaY+=this._deltaY,this._deltaX=0,this._deltaY=0}},{key:"_track",value:function(){var y=Date.now(),x=y-this._lastFrameTimestamp,S=this._velocityX,E=this._velocityY,T=.8;x<p&&(T*=x/p),S===0&&E===0&&(T=1),this._velocityX=T*(p*this._accumulatedDeltaX/(1+x)),T<1&&(this._velocityX+=(1-T)*S),this._velocityY=T*(p*this._accumulatedDeltaY/(1+x)),T<1&&(this._velocityY+=(1-T)*E),this._accumulatedDeltaX=0,this._accumulatedDeltaY=0,this._lastFrameTimestamp=y}},{key:"_startAutoScroll",value:function(){this._autoScrollTimestamp=Date.now(),(this._deltaX>0||this.deltaY>0)&&this._didTouchMove(),this._track(),this._autoScroll()}},{key:"_autoScroll",value:function(){var y=Date.now()-this._autoScrollTimestamp,x=c*Math.exp(-y/f),S=x*this._velocityX,E=x*this._velocityY;(Math.abs(S)<=5||!this._handleScrollX(S,E))&&(S=0),(Math.abs(E)<=5||!this._handleScrollY(E,S))&&(E=0),(S!==0||E!==0)&&(this._onTouchScrollCallback(S,E),(0,r.default)(this._autoScroll))}}]),g}(),h=m;e.default=h})(My);(function(e){function t(U){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(H){return typeof H}:t=function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},t(U)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=T(Q),n=T(Bt),o=T(H$),a=T(cr),l=T(ey),u=T(_n),c=T(Jo),f=T(bd),p=T(oy),m=T(cy),h=T(Fi),g=T(Td),_=T(hy),y=T(vy),x=T(Hs),S=T(Ed),E=T(My);function T(U){return U&&U.__esModule?U:{default:U}}function C(){return C=Object.assign||function(U){for(var z=1;z<arguments.length;z++){var H=arguments[z];for(var ee in H)Object.prototype.hasOwnProperty.call(H,ee)&&(U[ee]=H[ee])}return U},C.apply(this,arguments)}function w(U,z){if(!(U instanceof z))throw new TypeError("Cannot call a class as a function")}function M(U,z){for(var H=0;H<z.length;H++){var ee=z[H];ee.enumerable=ee.enumerable||!1,ee.configurable=!0,"value"in ee&&(ee.writable=!0),Object.defineProperty(U,ee.key,ee)}}function O(U,z,H){return z&&M(U.prototype,z),U}function D(U,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");U.prototype=Object.create(z&&z.prototype,{constructor:{value:U,writable:!0,configurable:!0}}),z&&A(U,z)}function A(U,z){return A=Object.setPrototypeOf||function(ee,X){return ee.__proto__=X,ee},A(U,z)}function $(U){var z=F();return function(){var ee=j(U),X;if(z){var K=j(this).constructor;X=Reflect.construct(ee,arguments,K)}else X=ee.apply(this,arguments);return N(this,X)}}function N(U,z){return z&&(t(z)==="object"||typeof z=="function")?z:k(U)}function k(U){if(U===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return U}function F(){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(U){return!1}}function j(U){return j=Object.setPrototypeOf?Object.getPrototypeOf:function(H){return H.__proto__||Object.getPrototypeOf(H)},j(U)}function I(U,z,H){return z in U?Object.defineProperty(U,z,{value:H,enumerable:!0,configurable:!0,writable:!0}):U[z]=H,U}var B=25,G=function(U){D(H,U);var z=$(H);function H(ee){var X;return w(this,H),X=z.call(this,ee),I(k(X),"_shouldHandleTouchX",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelX(K)}),I(k(X),"_shouldHandleTouchY",function(K){return X.props.touchScrollEnabled&&X._shouldHandleWheelY(K)}),I(k(X),"_shouldHandleWheelX",function(K){var J=X.props,ne=J.maxScrollX,le=J.scrollFlags,se=J.scrollX,ue=le.overflowX;return ue==="hidden"||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),I(k(X),"_shouldHandleWheelY",function(K){var J=X.props,ne=J.maxScrollY,le=J.scrollFlags,se=J.scrollY,ue=le.overflowY;return ue==="hidden"||K===0||(K=Math.round(K),K===0)?!1:K<0&&se>0||K>=0&&se<ne}),I(k(X),"_reportContentHeight",function(){var K=(0,g.default)(X.props),J=K.contentHeight,ne=X.props.onContentHeightChange;J!==X._contentHeight&&ne&&ne(J),X._contentHeight=J}),I(k(X),"_renderRows",function(K,J,ne,le,se,ue){var fe=(0,h.default)(X.props),pe=fe.scrollEnabledY,ae=X.props;return r.default.createElement(y.default,{ariaRowIndexOffset:ue,isScrolling:ae.scrolling,fixedColumns:J,fixedRightColumns:ne,firstViewportRowIndex:ae.firstRowIndex,endViewportRowIndex:ae.endRowIndex,height:se,offsetTop:K,onRowClick:ae.onRowClick,onRowContextMenu:ae.onRowContextMenu,onRowDoubleClick:ae.onRowDoubleClick,onRowMouseUp:ae.onRowMouseUp,onRowMouseDown:ae.onRowMouseDown,onRowMouseEnter:ae.onRowMouseEnter,onRowMouseLeave:ae.onRowMouseLeave,onRowTouchStart:ae.touchScrollEnabled?ae.onRowTouchStart:null,onRowTouchEnd:ae.touchScrollEnabled?ae.onRowTouchEnd:null,onRowTouchMove:ae.touchScrollEnabled?ae.onRowTouchMove:null,rowClassNameGetter:ae.rowClassNameGetter,rowExpanded:ae.rowExpanded,rowKeyGetter:ae.rowKeyGetter,rowSettings:ae.rowSettings,scrollLeft:ae.scrollX,scrollTop:ae.scrollY,scrollableColumns:le,showLastRowBorder:!0,width:ae.tableSize.width,rowsToRender:ae.rows,rowOffsets:ae.rowOffsets,showScrollbarY:pe,scrollbarYWidth:ae.scrollbarYWidth,isRTL:ae.isRTL})}),I(k(X),"_onRef",function(K){X._divRef=K,X._wheelHandler&&(X.props.stopReactWheelPropagation?X._wheelHandler.setRoot(K):X._wheelHandler.setRoot(null))}),I(k(X),"_onColumnResize",function(K,J,ne,le,se,ue,fe){var pe=x.default.getCoordinatesFromEvent(fe),ae=pe.x,ve=pe.y;X.props.columnActions.resizeColumn({cellMinWidth:le,cellMaxWidth:se,cellWidth:ne,columnKey:ue,combinedWidth:K,clientX:ae,clientY:ve,leftOffset:J})}),I(k(X),"_onColumnReorder",function(K,J,ne,le){X.props.columnActions.startColumnReorder({scrollStart:X.props.scrollX,columnKey:K,width:J,left:ne})}),I(k(X),"_onColumnReorderMove",function(K){X.props.columnActions.moveColumnReorder(K)}),I(k(X),"_onColumnReorderEnd",function(K,J){var ne=X.props,le=ne.columnActions,se=ne.columnReorderingData,ue=se.cancelReorder,fe=se.columnAfter,pe=se.columnBefore,ae=se.columnKey,ve=se.scrollStart,de=ne.onColumnReorderEndCallback,_e=ne.onHorizontalScroll,we=ne.scrollX;le.stopColumnReorder(),!ue&&(de({columnAfter:fe,columnBefore:pe,reorderColumn:ae}),ve!==we&&_e&&_e(we))}),I(k(X),"_onScroll",function(K,J){var ne=X.props,le=ne.maxScrollX,se=ne.maxScrollY,ue=ne.onHorizontalScroll,fe=ne.onVerticalScroll,pe=ne.scrollActions,ae=ne.scrollFlags,ve=ne.scrollX,de=ne.scrollY,_e=ae.overflowX,we=ae.overflowY,Ee=ve,Ce=de;if(Math.abs(J)>Math.abs(K)&&we!=="hidden")Ce+=J,Ce=Ce<0?0:Ce,Ce=Ce>se?se:Ce,(!fe||fe(Ce))&&pe.scrollToY(Ce);else if(K&&_e!=="hidden"){Ee+=K,Ee=Ee<0?0:Ee,Ee=Ee>le?le:Ee;var ct=Math.round(Ee);(!ue||ue(ct))&&pe.scrollToX(ct)}}),I(k(X),"_scrollTo",function(K,J){X._scrollToX(K),X._scrollToY(J)}),I(k(X),"_scrollToX",function(K){var J=X.props,ne=J.onHorizontalScroll,le=J.scrollActions,se=J.scrollX;if(K!==se){var ue=Math.round(K);(!ne||ne(ue))&&le.scrollToX(ue)}}),I(k(X),"_scrollToY",function(K){var J=X.props,ne=J.onVerticalScroll,le=J.scrollActions,se=J.scrollY;K!==se&&(!ne||ne(K))&&le.scrollToY(K)}),I(k(X),"_didScroll",function(K){var J=X.props,ne=J.onScrollStart,le=J.scrollX,se=J.scrollY,ue=J.onHorizontalScroll,fe=J.onVerticalScroll,pe=J.tableSize.ownerHeight,ae=J.scrolling,ve=K.endRowIndex,de=K.firstRowIndex,_e=K.scrollX,we=K.scrollY,Ee=K.tableSize.ownerHeight,Ce=K.scrolling,ct=pe!==Ee&&!((0,o.default)(pe)&&(0,o.default)(Ee)),Ve=le!==_e,tt=se!==we;!ct&&!Ve&&!tt||(!Ce&&ae&&ne&&ne(_e,we,de,ve),Ve&&ue&&ue(le),tt&&fe&&fe(se),X._didScrollStop())}),I(k(X),"_didScrollStopSync",function(){var K=X.props,J=K.endRowIndex,ne=K.firstRowIndex,le=K.onScrollEnd,se=K.scrollActions,ue=K.scrollX,fe=K.scrollY,pe=K.scrolling;pe&&(se.stopScroll(),le&&le(ue,fe,ne,J))}),X._didScrollStop=(0,l.default)(X._didScrollStopSync,200,k(X)),X._onKeyDown=X._onKeyDown.bind(k(X)),X._setupHandlers(),X}return O(H,[{key:"componentWillUnmount",value:function(){this._cleanupHandlers(),this._didScrollStop.reset(),this._didScrollStopSync()}},{key:"_setupHandlers",value:function(){this._wheelHandler||(this._wheelHandler=new f.default(this._onScroll,this._shouldHandleWheelX,this._shouldHandleWheelY,this.props.isRTL,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._touchHandler||(this._touchHandler=new E.default(this._onScroll,this._shouldHandleTouchX,this._shouldHandleTouchY,this.props.stopScrollDefaultHandling,this.props.stopScrollPropagation)),this._divRef&&this._divRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this.props.touchScrollEnabled&&this._divRef&&this._divRef.addEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1})}},{key:"_cleanupHandlers",value:function(){this._wheelHandler&&(this._divRef&&this._divRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._wheelHandler=null),this._touchHandler&&(this._divRef&&this._divRef.removeEventListener("touchmove",this._touchHandler.onTouchMove,{passive:!1}),this._touchHandler=null)}},{key:"_onKeyDown",value:function(X){var K=(0,g.default)(this.props),J=K.scrollbarYHeight;if(this.props.keyboardPageEnabled)switch(X.key){case"PageDown":this._onScroll(0,J),X.preventDefault();break;case"PageUp":this._onScroll(0,J*-1),X.preventDefault();break}if(this.props.keyboardScrollEnabled)switch(X.key){case"ArrowDown":this._onScroll(0,B),X.preventDefault();break;case"ArrowUp":this._onScroll(0,B*-1),X.preventDefault();break;case"ArrowRight":this._onScroll(B,0),X.preventDefault();break;case"ArrowLeft":this._onScroll(B*-1,0),X.preventDefault();break}}},{key:"shouldComponentUpdate",value:function(X){return!(0,c.default)(this.props,X)}},{key:"componentDidMount",value:function(){this._setupHandlers(),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"componentDidUpdate",value:function(X){this._didScroll(X),this._reportContentHeight(),this._reportScrollBarsUpdates()}},{key:"_reportScrollBarsUpdates",value:function(){var X=(0,g.default)(this.props),K=X.bodyOffsetTop,J=X.scrollbarXOffsetTop,ne=X.visibleRowsHeight,le=this.props,se=le.tableSize.width,ue=le.scrollContentHeight,fe=le.scrollY,pe=le.scrollX,ae={viewportHeight:ne,contentHeight:ue,scrollbarYOffsetTop:K,scrollY:fe,viewportWidth:se,contentWidth:se+this.props.maxScrollX,scrollbarXOffsetTop:J,scrollX:pe,scrollTo:this._scrollTo,scrollToX:this._scrollToX,scrollToY:this._scrollToY};(0,c.default)(this.previousScrollState,ae)||(this.props.onScrollBarsUpdate(ae),this.previousScrollState=ae)}},{key:"render",value:function(){var X=(0,p.default)(this.props),K=X.ariaGroupHeaderIndex,J=X.ariaHeaderIndex,ne=X.ariaFooterIndex,le=X.ariaRowCount,se=X.ariaRowIndexOffset,ue=(0,m.default)(this.props),fe=ue.fixedColumnGroups,pe=ue.fixedColumns,ae=ue.fixedRightColumnGroups,ve=ue.fixedRightColumns,de=ue.scrollableColumnGroups,_e=ue.scrollableColumns,we=(0,g.default)(this.props),Ee=we.bodyHeight,Ce=we.bodyOffsetTop,ct=we.componentHeight,Ve=we.footOffsetTop,tt=we.scrollbarXOffsetTop,dt=we.visibleRowsHeight,Ie=this.props,Ue=Ie.className,St=Ie.columnReorderingData,ft=Ie.columnResizingData,Mt=Ie.elementHeights,dr=Ie.isColumnReordering,Te=Ie.isColumnResizing,yt=Ie.gridAttributesGetter,xr=Ie.maxScrollY,Yt=Ie.onColumnReorderEndCallback,Cr=Ie.onColumnResizeEndCallback,Kr=Ie.scrollContentHeight,fr=Ie.scrollX,Fr=Ie.scrollY,Ht=Ie.scrolling,Tn=Ie.tableSize,jr=Ie.touchScrollEnabled,Qr=Ie.scrollbarYWidth,En=Tn.ownerHeight,hr=Tn.width,Sn=Mt.cellGroupWrapperHeight,Mn=Mt.footerHeight,Jr=Mt.groupHeaderHeight,Xn=Mt.headerHeight,Zn=(0,h.default)(this.props),Bi=Zn.scrollEnabledX,Xt=Zn.scrollEnabledY,Kn=Yt?this._onColumnReorder:null,Br=yt&&yt(),en;Jr>0&&(en=r.default.createElement(S.default,{key:"group_header",ariaRowIndex:K,isHeaderOrFooter:!0,isScrolling:Ht,className:(0,u.default)((0,a.default)("fixedDataTableLayout/header"),(0,a.default)("public/fixedDataTable/header")),width:hr,height:Jr,cellGroupWrapperHeight:Sn,index:0,zIndex:1,offsetTop:0,scrollLeft:fr,fixedColumns:fe,fixedRightColumns:ae,scrollableColumns:de,visible:!0,onColumnResize:this._onColumnResize,onColumnReorder:Kn,onColumnReorderMove:this._onColumnReorderMove,showScrollbarY:Xt,scrollbarYWidth:Qr,isRTL:this.props.isRTL}));var _t;Xt&&(_t=this.props.scrollbarY);var vt;Bi&&(vt=this.props.scrollbarX);var ge=r.default.createElement(_.default,{height:ct,initialWidth:ft.width||0,minWidth:ft.minWidth||0,maxWidth:ft.maxWidth||Number.MAX_VALUE,visible:!!Te,leftOffset:ft.left||0,knobHeight:Xn,initialEvent:ft.initialEvent,onColumnResizeEnd:Cr,columnKey:ft.key,touchEnabled:jr,isRTL:this.props.isRTL}),pr=null;Mn&&(pr=r.default.createElement(S.default,{key:"footer",ariaRowIndex:ne,isHeaderOrFooter:!0,isScrolling:Ht,className:(0,u.default)((0,a.default)("fixedDataTableLayout/footer"),(0,a.default)("public/fixedDataTable/footer")),width:hr,height:Mn,index:-1,zIndex:1,offsetTop:Ve,visible:!0,fixedColumns:pe.footer,fixedRightColumns:ve.footer,scrollableColumns:_e.footer,scrollLeft:fr,showScrollbarY:Xt,scrollbarYWidth:Qr,isRTL:this.props.isRTL}));var tn=this._renderRows(Ce,pe.cell,ve.cell,_e.cell,Ee,se),Pn=r.default.createElement(S.default,{key:"header",ariaRowIndex:J,isHeaderOrFooter:!0,isScrolling:Ht,className:(0,u.default)((0,a.default)("fixedDataTableLayout/header"),(0,a.default)("public/fixedDataTable/header")),width:hr,height:Xn,cellGroupWrapperHeight:Sn,index:-1,zIndex:1,offsetTop:Jr,scrollLeft:fr,visible:!0,fixedColumns:pe.header,fixedRightColumns:ve.header,scrollableColumns:_e.header,touchEnabled:jr,onColumnResize:this._onColumnResize,onColumnReorder:Kn,onColumnReorderMove:this._onColumnReorderMove,onColumnReorderEnd:this._onColumnReorderEnd,isColumnReordering:!!dr,columnReorderingData:St,showScrollbarY:Xt,scrollbarYWidth:Qr,isRTL:this.props.isRTL}),rn;Fr&&(rn=r.default.createElement("div",{className:(0,u.default)((0,a.default)("fixedDataTableLayout/topShadow"),(0,a.default)("public/fixedDataTable/topShadow")),style:{top:Ce}}));var nn=En&&En<ct&&Kr>dt,on;(nn||Fr<xr)&&(on=r.default.createElement("div",{className:(0,u.default)((0,a.default)("fixedDataTableLayout/bottomShadow"),(0,a.default)("public/fixedDataTable/bottomShadow")),style:{top:Ve}}));var mr=null;(this.props.keyboardPageEnabled||this.props.keyboardScrollEnabled)&&(mr=0);var an=Ue;return this.props.isRTL&&(an=(0,u.default)(an,"fixedDataTable_isRTL")),r.default.createElement("div",C({className:(0,u.default)(an,(0,a.default)("fixedDataTableLayout/main"),(0,a.default)("public/fixedDataTable/main")),role:"grid","aria-rowcount":le},Br,{tabIndex:mr,onKeyDown:this._onKeyDown,onTouchStart:jr?this._touchHandler.onTouchStart:null,onTouchEnd:jr?this._touchHandler.onTouchEnd:null,onTouchCancel:jr?this._touchHandler.onTouchCancel:null,ref:this._onRef,style:{height:ct,width:hr}}),r.default.createElement("div",{className:(0,a.default)("fixedDataTableLayout/rowsContainer"),style:{height:tt,width:hr}},ge,en,Pn,tn,pr,rn,on),_t,vt)}}]),H}(r.default.Component);I(G,"propTypes",{width:n.default.number.isRequired,height:n.default.number,className:n.default.string,maxHeight:n.default.number,ownerHeight:n.default.number,overflowX:n.default.oneOf(["hidden","auto"]),overflowY:n.default.oneOf(["hidden","auto"]),touchScrollEnabled:n.default.bool,keyboardScrollEnabled:n.default.bool,keyboardPageEnabled:n.default.bool,scrollbarX:n.default.node,scrollbarXHeight:n.default.number,scrollbarY:n.default.node,scrollbarYWidth:n.default.number,onScrollBarsUpdate:n.default.func,defaultScrollbars:n.default.bool,showScrollbarX:n.default.bool,showScrollbarY:n.default.bool,onHorizontalScroll:n.default.func,onVerticalScroll:n.default.func,rowsCount:n.default.number.isRequired,rowHeight:n.default.number.isRequired,rowHeightGetter:n.default.func,subRowHeight:n.default.number,subRowHeightGetter:n.default.func,rowExpanded:n.default.oneOfType([n.default.element,n.default.func]),rowClassNameGetter:n.default.func,rowKeyGetter:n.default.func,groupHeaderHeight:n.default.number,headerHeight:n.default.number.isRequired,cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,scrollLeft:n.default.number,scrollToColumn:n.default.number,scrollTop:n.default.number,scrollToRow:n.default.number,onScrollStart:n.default.func,onScrollEnd:n.default.func,stopReactWheelPropagation:n.default.bool,stopScrollDefaultHandling:n.default.bool,stopScrollPropagation:n.default.bool,onContentHeightChange:n.default.func,onRowClick:n.default.func,onRowContextMenu:n.default.func,onRowDoubleClick:n.default.func,onRowMouseDown:n.default.func,onRowMouseUp:n.default.func,onRowMouseEnter:n.default.func,onRowMouseLeave:n.default.func,onRowTouchStart:n.default.func,onRowTouchEnd:n.default.func,onRowTouchMove:n.default.func,onColumnResizeEndCallback:n.default.func,onColumnReorderEndCallback:n.default.func,isColumnResizing:n.default.bool,isColumnReordering:n.default.bool,isRTL:n.default.bool,bufferRowCount:n.default.number,elementHeights:n.default.shape({cellGroupWrapperHeight:n.default.number,footerHeight:n.default.number,groupHeaderHeight:n.default.number,headerHeight:n.default.number}),gridAttributesGetter:n.default.func,rowAttributesGetter:n.default.func}),I(G,"defaultProps",{elementHeights:{cellGroupWrapperHeight:void 0,footerHeight:0,groupHeaderHeight:0,headerHeight:0},keyboardScrollEnabled:!1,keyboardPageEnabled:!1,touchScrollEnabled:!1,stopScrollPropagation:!1});var q=G;e.default=q})(Jg);var Py={},Ry={},Oy={},ky={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function t(u,c){if(!(u instanceof c))throw new TypeError("Cannot call a class as a function")}function r(u,c){for(var f=0;f<c.length;f++){var p=c[f];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(u,p.key,p)}}function n(u,c,f){return c&&r(u.prototype,c),u}function o(u,c){return u<c}var a=function(){function u(c,f){t(this,u),this._items=c||[],this._size=this._items.length,this._comparator=f||o,this._heapify()}return n(u,[{key:"empty",value:function(){return this._size===0}},{key:"pop",value:function(){if(this._size!==0){var f=this._items[0],p=this._items.pop();return this._size--,this._size>0&&(this._items[0]=p,this._sinkDown(0)),f}}},{key:"push",value:function(f){this._items[this._size++]=f,this._bubbleUp(this._size-1)}},{key:"size",value:function(){return this._size}},{key:"peek",value:function(){if(this._size!==0)return this._items[0]}},{key:"_heapify",value:function(){for(var f=Math.floor((this._size+1)/2);f>=0;f--)this._sinkDown(f)}},{key:"_bubbleUp",value:function(f){for(var p=this._items[f];f>0;){var m=Math.floor((f+1)/2)-1,h=this._items[m];if(this._comparator(h,p))return;this._items[m]=p,this._items[f]=h,f=m}}},{key:"_sinkDown",value:function(f){for(var p=this._items[f];;){var m=2*(f+1)-1,h=2*(f+1),g=-1;if(m<this._size){var _=this._items[m];this._comparator(_,p)&&(g=m)}if(h<this._size){var y=this._items[h];this._comparator(y,p)&&(g===-1||this._comparator(y,this._items[g]))&&(g=h)}if(g===-1)return;this._items[f]=this._items[g],this._items[g]=p,f=g}}}]),u}(),l=a;e.default=l})(ky);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(ky),r=n(zi);function n(f){return f&&f.__esModule?f:{default:f}}function o(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function a(f,p){for(var m=0;m<p.length;m++){var h=p[m];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(f,h.key,h)}}function l(f,p,m){return p&&a(f.prototype,p),f}var u=function(){function f(){o(this,f),this._valueToPositionMap={},this._size=0,this._smallValues=new t.default([],this._smallerComparator),this._largeValues=new t.default([],this._greaterComparator),this.getNewPositionForValue=this.getNewPositionForValue.bind(this),this.getValuePosition=this.getValuePosition.bind(this),this.getSize=this.getSize.bind(this),this.replaceFurthestValuePosition=this.replaceFurthestValuePosition.bind(this)}return l(f,[{key:"getSize",value:function(){return this._size}},{key:"getValuePosition",value:function(m){return this._valueToPositionMap[m]===void 0?null:this._valueToPositionMap[m]}},{key:"getNewPositionForValue",value:function(m){(0,r.default)(this._valueToPositionMap[m]===void 0,"Shouldn't try to find new position for value already stored in BufferSet");var h=this._size;return this._size++,this._pushToHeaps(h,m),this._valueToPositionMap[m]=h,h}},{key:"replaceFurthestValuePosition",value:function(m,h,g){if((0,r.default)(this._valueToPositionMap[g]===void 0,"Shouldn't try to replace values with value already stored value in BufferSet"),this._cleanHeaps(),this._smallValues.empty()||this._largeValues.empty())return null;var _=this._smallValues.peek().value,y=this._largeValues.peek().value;if(_>=m&&y<=h)return null;var x;m-_>y-h?(x=_,this._smallValues.pop()):(x=y,this._largeValues.pop());var S=this._valueToPositionMap[x];return delete this._valueToPositionMap[x],this._valueToPositionMap[g]=S,this._pushToHeaps(S,g),S}},{key:"_pushToHeaps",value:function(m,h){var g={position:m,value:h};this._smallValues.push(g),this._largeValues.push(g)}},{key:"_cleanHeaps",value:function(){this._cleanHeap(this._smallValues),this._cleanHeap(this._largeValues);var m=Math.min(this._smallValues.size(),this._largeValues.size()),h=Math.max(this._smallValues.size(),this._largeValues.size());h>10*m&&this._recreateHeaps()}},{key:"_recreateHeaps",value:function(){for(var m=this._smallValues.size()<this._largeValues.size()?this._smallValues:this._largeValues,h=new t.default([],this._smallerComparator),g=new t.default([],this._greaterComparator);!m.empty();){var _=m.pop();this._valueToPositionMap[_.value]!==void 0&&(h.push(_),g.push(_))}this._smallValues=h,this._largeValues=g}},{key:"_cleanHeap",value:function(m){for(;!m.empty()&&this._valueToPositionMap[m.peek().value]===void 0;)m.pop()}},{key:"_smallerComparator",value:function(m,h){return m.value<h.value}},{key:"_greaterComparator",value:function(m,h){return m.value>h.value}}]),f}(),c=u;e.default=c})(Oy);var Ny={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=n(zi),r=n(Wi);function n(h){return h&&h.__esModule?h:{default:h}}function o(h,g){if(!(h instanceof g))throw new TypeError("Cannot call a class as a function")}function a(h,g){for(var _=0;_<g.length;_++){var y=g[_];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(h,y.key,y)}}function l(h,g,_){return g&&a(h.prototype,g),_&&a(h,_),h}var u=function(g){return Math.floor(g/2)},c=r.default.Int32Array||function(h){for(var g=[],_=h-1;_>=0;--_)g[_]=0;return g};function f(h){for(var g=1;g<h;)g*=2;return g}var p=function(){function h(g){o(this,h),this._size=g.length,this._half=f(this._size),this._heap=new c(2*this._half);var _;for(_=0;_<this._size;++_)this._heap[this._half+_]=g[_];for(_=this._half-1;_>0;--_)this._heap[_]=this._heap[2*_]+this._heap[2*_+1]}return l(h,[{key:"set",value:function(_,y){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var x=this._half+_;for(this._heap[x]=y,x=u(x);x!==0;x=u(x))this._heap[x]=this._heap[2*x]+this._heap[2*x+1]}},{key:"get",value:function(_){(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_);var y=this._half+_;return this._heap[y]}},{key:"getSize",value:function(){return this._size}},{key:"sumUntil",value:function(_){if((0,t.default)(0<=_&&_<this._size+1,"Index out of range %s",_),_===0)return 0;for(var y=this._half+_-1,x=this._heap[y];y!==1;y=u(y))y%2===1&&(x+=this._heap[y-1]);return x}},{key:"sumTo",value:function(_){return(0,t.default)(0<=_&&_<this._size,"Index out of range %s",_),this.sumUntil(_+1)}},{key:"sum",value:function(_,y){return(0,t.default)(_<=y,"Begin must precede end"),this.sumUntil(y)-this.sumUntil(_)}},{key:"greatestLowerBound",value:function(_){if(_<0)return-1;var y=1;if(this._heap[y]<=_)return this._size;for(;y<this._half;){var x=this._heap[2*y];_<x?y=2*y:(y=2*y+1,_-=x)}return y-this._half}},{key:"greatestStrictLowerBound",value:function(_){if(_<=0)return-1;var y=1;if(this._heap[y]<_)return this._size;for(;y<this._half;){var x=this._heap[2*y];_<=x?y=2*y:(y=2*y+1,_-=x)}return y-this._half}},{key:"leastUpperBound",value:function(_){return this.greatestStrictLowerBound(_)+1}},{key:"leastStrictUpperBound",value:function(_){return this.greatestLowerBound(_)+1}}],[{key:"uniform",value:function(_,y){for(var x=[],S=_-1;S>=0;--S)x[S]=y;return new h(x)}},{key:"empty",value:function(_){return h.uniform(_,0)}}]),h}(),m=p;e.default=m})(Ny);var Dy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=l(Q),r=l(wd),n=l(zi),o=l(dy),a=l(R.pick_1);function l(m){return m&&m.__esModule?m:{default:m}}function u(m){return(0,a.default)(m.props,["align","allowCellsRecycling","cellClassName","columnKey","flexGrow","fixed","fixedRight","maxWidth","minWidth","isReorderable","isResizable","pureRendering","width"])}function c(m,h){m.cell.push(h.props.cell),m.footer.push(h.props.footer),m.header.push(h.props.header)}function f(m){var h=[];t.default.Children.forEach(m,function(S,E){S!=null&&((0,n.default)(S.type.__TableColumnGroup__||S.type.__TableColumn__,"child type should be <FixedDataTableColumn /> or <FixedDataTableColumnGroup />"),h.push(S))});var g={cell:[],footer:[],groupHeader:[],header:[]},_=[],y=h.length&&h[0].type.__TableColumnGroup__;if(y){var x=(0,o.default)(h,u);return(0,r.default)(h,function(S,E){g.groupHeader.push(S.props.header),t.default.Children.forEach(S.props.children,function(T){var C=u(T);C.groupIdx=E,_.push(C),c(g,T)})}),{columnGroupProps:x,columnProps:_,elementTemplates:g,useGroupHeader:!0}}return(0,r.default)(h,function(S){_.push(u(S)),c(g,S)}),{columnGroupProps:[],columnProps:_,elementTemplates:g,useGroupHeader:!1}}var p=f;e.default=p})(Dy);var Vs={},Rd={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(r,n){var o=r.storedHeights,a=r.rowOffsetIntervalTree,l=r.rowSettings,u=l.rowHeightGetter,c=l.subRowHeightGetter,f=u(n)+c(n),p=o[n];return f!==p&&(a.set(n,f),o[n]=f,r.scrollContentHeight+=f-p),o[n]}})(Rd);Object.defineProperty(Vs,"__esModule",{value:!0});Vs.getScrollAnchor=Yz;Vs.scrollTo=Iy;var Ly=Od(js),Ay=Od(Fi),Gz=Od(Rd);function Od(e){return e&&e.__esModule?e:{default:e}}function Yz(e,t,r){return t.scrollToRow!==void 0&&t.scrollToRow!==null&&(!r||t.scrollToRow!==r.scrollToRow)?Xz(e,t.scrollToRow):t.scrollTop!==void 0&&t.scrollTop!==null&&(!r||t.scrollTop!==r.scrollTop)?Iy(e,t.scrollTop):{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1}}function Iy(e,t){var r=(0,Ay.default)(e),n=r.availableHeight,o=e.rowOffsetIntervalTree,a=e.rowSettings,l=e.scrollContentHeight,u=a.rowsCount;if(u===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};var c=0,f=0,p=void 0;if(!(t<=0))if(t>=l-n)c=void 0,p=u-1;else{var m=o.greatestLowerBound(t);c=(0,Ly.default)(m,0,Math.max(u-1,0));var h=o.sumUntil(c);f=h-t}return{firstIndex:c,firstOffset:f,lastIndex:p,changed:!0}}function Xz(e,t){var r=(0,Ay.default)(e),n=r.availableHeight,o=e.rowOffsetIntervalTree,a=e.rowSettings,l=e.storedHeights,u=e.scrollY,c=a.rowsCount;if(c===0)return{firstIndex:0,firstOffset:0,lastIndex:void 0,changed:e.firstRowIndex!==0||e.firstRowOffset!==0};t=(0,Ly.default)(t,0,Math.max(c-1,0)),(0,Gz.default)(e,t);var f=o.sumUntil(t),p=f+l[t],m=t,h=void 0;if(!(f<u))if(u+n<p)m=void 0,h=t;else return{firstIndex:e.firstRowIndex,firstOffset:e.firstRowOffset,lastIndex:void 0,changed:!1};return{firstIndex:m,firstOffset:0,lastIndex:h,changed:!0}}var $y={};function Zz(e,t,r){return e===e&&(r!==void 0&&(e=e<=r?e:r),t!==void 0&&(e=e>=t?e:t)),e}var Kz=Zz,Qz=Kz,eu=R.toNumber_1;function Jz(e,t,r){return r===void 0&&(r=t,t=void 0),r!==void 0&&(r=eu(r),r=r===r?r:0),t!==void 0&&(t=eu(t),t=t===t?t:0),Qz(eu(e),t,r)}var zy=Jz;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=a(gy),r=a(zy),n=a(wn),o=a(xd);function a(y){return y&&y.__esModule?y:{default:y}}function l(){return l=Object.assign||function(y){for(var x=1;x<arguments.length;x++){var S=arguments[x];for(var E in S)Object.prototype.hasOwnProperty.call(S,E)&&(y[E]=S[E])}return y},l.apply(this,arguments)}var u=15,c=100;function f(y,x,S){var E=x.scrollLeft,T=y.columnResizingData,C=y.isColumnResizing,w=y.scrollX;E!==void 0&&(!S||E!==S.scrollLeft)&&(w=E),w=p(y,x,S.scrollToColumn,w);var M=(0,o.default)(y),O=M.maxScrollX;return w=(0,r.default)(w,0,O),C=x.isColumnResizing!==void 0?x.isColumnResizing:C,T=C?T:{},l({},y,{columnResizingData:T,isColumnResizing:C,maxScrollX:O,scrollX:w})}function p(y,x,S,E){var T=x.scrollToColumn;if((0,t.default)(T))return E;var C=(0,o.default)(y),w=C.availableScrollWidth,M=C.fixedColumns,O=C.scrollableColumns,D=M.length,A=O.length,$=A===0,N=T===S,k=T<D,F=T>=D+A;if(N||k||F||$)return E;for(var j=Math.min(T-D,O.length-1),I=0,B=0;B<j;++B)I+=O[B].width;var G=O[j].width,q=I+G-w;return E<q?q:E>I?I:E}function m(y,x){var S=x.cellMinWidth,E=x.cellMaxWidth,T=x.cellWidth,C=x.columnKey,w=x.combinedWidth,M=x.clientX,O=x.clientY,D=x.leftOffset;return l({},y,{isColumnResizing:!0,columnResizingData:{left:D+w-T,width:T,minWidth:S,maxWidth:E,initialEvent:{clientX:M,clientY:O,preventDefault:n.default},key:C}})}function h(y,x){var S=x.columnKey,E=x.left,T=x.scrollStart,C=x.width,w=(0,o.default)(y),M=w.fixedColumns,O=M.some(function(D){return D.columnKey===S});return l({},y,{isColumnReordering:!0,columnReorderingData:{cancelReorder:!1,dragDistance:0,isFixed:O,scrollStart:T,columnKey:S,columnWidth:C,originalLeft:E,columnBefore:void 0,columnAfter:void 0}})}function g(y,x){var S=y.columnReorderingData,E=S.isFixed,T=S.originalLeft,C=S.scrollStart,w=y.maxScrollX,M=y.scrollX;if(!E){var O=T-C+x,D=(0,o.default)(y),A=D.availableScrollWidth;x+=M-C,O>A-c?M=Math.min(M+u,w):O<=c&&(M=Math.max(M-u,0))}var $=l({},y.columnReorderingData,{dragDistance:x,columnBefore:void 0,columnAfter:void 0});return l({},y,{scrollX:M,columnReorderingData:$})}var _={initialize:f,reorderColumn:h,reorderColumnMove:g,resizeColumn:m};e.default=_})($y);var Wy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=l(zy),r=l(Fs),n=l(Fi),o=l(Td),a=l(Rd);function l(h){return h&&h.__esModule?h:{default:h}}function u(){return u=Object.assign||function(h){for(var g=1;g<arguments.length;g++){var _=arguments[g];for(var y in _)Object.prototype.hasOwnProperty.call(_,y)&&(h[y]=_[y])}return h},u.apply(this,arguments)}function c(h,g){var _=u({},h),y=f(_,g),x=_.rowSettings,S=_.scrollContentHeight,E=x.rowsCount,T=(0,o.default)(_),C=T.bodyHeight,w=S-C,M;w===0?(y.firstViewportIdx>0&&(y=f(_,{firstOffset:0,lastIndex:E-1})),M=0):M=y.firstOffset;var O=y.firstViewportIdx,D=y.endViewportIdx;p(_,y,h.scrolling);var A=0;return E>0&&(A=_.rowOffsets[y.firstViewportIdx]-M),A=(0,t.default)(A,0,w),u(_,{firstRowIndex:O,firstRowOffset:M,endRowIndex:D,maxScrollY:w,scrollY:A})}function f(h,g){var _=(0,r.default)(h),y=_.bufferRowCount,x=_.maxAvailableHeight,S=h.rowSettings.rowsCount;if(S===0)return{endBufferIdx:0,endViewportIdx:0,firstBufferIdx:0,firstOffset:0,firstViewportIdx:0};var E=g.firstIndex,T=g.firstOffset,C=g.lastIndex;(E>=S||C>=S)&&(C=S-1);var w=1,M=E,O=T;C!==void 0&&(w=-1,M=C,O=0);for(var D=M,A=D;D<S&&D>=0&&O<x;)O+=(0,a.default)(h,D),A=D,D+=w;var $=!1;if(O<x&&D===S&&C===void 0)for($=!0,D=E-1;D>=0&&O<x;)O+=(0,a.default)(h,D),M=D,--D;var N=Math.min(M,A),k=Math.max(N-y,0);for(D=k;D<N;D++)(0,a.default)(h,D);var F=Math.max(M,A)+1,j=Math.min(F+y,S);for(D=F;D<j;D++)(0,a.default)(h,D);var I=(0,n.default)(h),B=I.availableHeight;if(C!==void 0||$){T=T+Math.min(B-O,0);var G=h.storedHeights;-1*T>=G[N]&&(N+=1,T+=G[N])}return{endBufferIdx:j,endViewportIdx:F,firstBufferIdx:k,firstOffset:T,firstViewportIdx:N}}function p(h,g,_){var y=h.rowBufferSet,x=h.rowOffsetIntervalTree,S=h.storedHeights,E=g.endBufferIdx,T=g.endViewportIdx,C=g.firstBufferIdx,w=g.firstViewportIdx,M=E-C;if(M===0){h.rowOffsets={},h.rows=[];return}for(var O=_?w:C,D=_?T:E,A=[],$={},N=x.sumUntil(O),k=O;k<D;k++){$[k]=N,N+=S[k];var F=m(k,y,O,D,M);A[F]=k}h.rows=A,h.rowOffsets=$}function m(h,g,_,y,x){var S=g.getValuePosition(h);return S===null&&g.getSize()>=x&&(S=g.replaceFurthestValuePosition(_,y-1,h)),S===null&&(S=g.getNewPositionForValue(h)),S}})(Wy);var Us={},Fy={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105};e.default=t})(Fy);var lc={"--scrollbar-face-active-color":"#7d7d7d","--scrollbar-face-color":"#c2c2c2","--scrollbar-face-margin":"4px","--scrollbar-face-radius":"6px","--scrollbar-size":"15px","--scrollbar-size-large":"17px","--scrollbar-track-color":"#fff","--border-color":"#d3d3d3","--fbui-white":"#fff","--fbui-desktop-background-light":"#f6f7f8"};function jy(e){if(lc.hasOwnProperty(e))return lc[e];throw new Error('cssVar("'+e+'"): Unexpected class transformation.')}jy.CSS_VARS=lc;var eW=jy;(function(e){function t(B){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(q){return typeof q}:t=function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},t(B)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=h(Q),n=h(_i),o=h(Bt),a=h(cr),l=h(wn),u=h(Fy),c=h(bd),f=h(Bs),p=h(eW),m=h(ea);function h(B){return B&&B.__esModule?B:{default:B}}function g(B,G){if(!(B instanceof G))throw new TypeError("Cannot call a class as a function")}function _(B,G){for(var q=0;q<G.length;q++){var U=G[q];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(B,U.key,U)}}function y(B,G,q){return G&&_(B.prototype,G),B}function x(B,G){if(typeof G!="function"&&G!==null)throw new TypeError("Super expression must either be null or a function");B.prototype=Object.create(G&&G.prototype,{constructor:{value:B,writable:!0,configurable:!0}}),G&&S(B,G)}function S(B,G){return S=Object.setPrototypeOf||function(U,z){return U.__proto__=z,U},S(B,G)}function E(B){var G=w();return function(){var U=M(B),z;if(G){var H=M(this).constructor;z=Reflect.construct(U,arguments,H)}else z=U.apply(this,arguments);return T(this,z)}}function T(B,G){return G&&(t(G)==="object"||typeof G=="function")?G:C(B)}function C(B){if(B===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return B}function w(){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(B){return!1}}function M(B){return M=Object.setPrototypeOf?Object.getPrototypeOf:function(q){return q.__proto__||Object.getPrototypeOf(q)},M(B)}function O(B,G,q){return G in B?Object.defineProperty(B,G,{value:q,enumerable:!0,configurable:!0,writable:!0}):B[G]=q,B}var D={position:0,scrollable:!1},A=parseInt((0,p.default)("--scrollbar-face-margin"),10),$=A*2,N=30,k=40,F=null,j=function(B){x(q,B);var G=E(q);function q(U){var z;return g(this,q),z=G.call(this,U),O(C(z),"_onRefFace",function(H){return z._faceRef=H}),O(C(z),"_onRefRoot",function(H){return z._rootRef=H}),O(C(z),"scrollBy",function(H){z._onWheel(H)}),O(C(z),"_shouldHandleX",function(H){return z.props.orientation==="horizontal"?z._shouldHandleChange(H):!1}),O(C(z),"_shouldHandleY",function(H){return z.props.orientation!=="horizontal"?z._shouldHandleChange(H):!1}),O(C(z),"_shouldHandleChange",function(H){var ee=z._calculateState(z.state.position+H,z.props.size,z.props.contentSize,z.props.orientation);return ee.position!==z.state.position}),O(C(z),"_calculateState",function(H,ee,X,K){var J=Math.max(1,ee);if(X<=J)return D;var ne="".concat(H,"_").concat(J,"_").concat(X,"_").concat(K);if(z._stateKey===ne)return z._stateForKey;var le=K==="horizontal",se=J/X,ue=J*se;ue<N&&(se=(J-N)/(X-J),ue=N);var fe=!0,pe=X-J;H<0?H=0:H>pe&&(H=pe);var ae=z._mouseMoveTracker?z._mouseMoveTracker.isDragging():!1,ve={faceSize:ue,isDragging:ae,isHorizontal:le,position:H,scale:se,scrollable:fe};return z._stateKey=ne,z._stateForKey=ve,ve}),O(C(z),"_onWheelY",function(H,ee){z._onWheel(ee)}),O(C(z),"_onWheelX",function(H,ee){z._onWheel(H)}),O(C(z),"_onWheel",function(H){var ee=z.props;z._setNextState(z._calculateState(z.state.position+H,ee.size,ee.contentSize,ee.orientation))}),O(C(z),"_onMouseDown",function(H){var ee;if(H.target!==z._faceRef){var X=H.nativeEvent,K=z.state.isHorizontal?X.offsetX||X.layerX||z.getTouchX(X):X.offsetY||X.layerY||z.getTouchY(X),J=z.props;K/=z.state.scale,ee=z._calculateState(K-z.state.faceSize*.5/z.state.scale,J.size,J.contentSize,J.orientation)}else ee={};ee.focused=!0,z._setNextState(ee),z._mouseMoveTracker.captureMouseMoves(H),z._rootRef.focus()}),O(C(z),"_onTouchCancel",function(H){H.stopPropagation()}),O(C(z),"_onTouchEnd",function(H){H.stopPropagation()}),O(C(z),"_onTouchMove",function(H){H.stopPropagation()}),O(C(z),"_onTouchStart",function(H){H.stopPropagation(),z._onMouseDown(H)}),O(C(z),"_onMouseMove",function(H,ee){var X=z.props,K=z.state.isHorizontal?H*(z.props.isRTL?-1:1):ee;K/=z.state.scale;var J=n.default.flushSync||function(ne){return ne()};J(function(){return z._setNextState(z._calculateState(z.state.position+K,X.size,X.contentSize,X.orientation))})}),O(C(z),"_onMouseMoveEnd",function(){z._nextState=null,z._mouseMoveTracker.releaseMouseMoves(),z.setState({isDragging:!1})}),O(C(z),"_onKeyDown",function(H){var ee=H.keyCode;if(ee!==u.default.TAB){var X=k,K=0;if(z.state.isHorizontal)switch(ee){case u.default.HOME:K=-1,X=z.props.contentSize;break;case u.default.LEFT:K=-1;break;case u.default.RIGHT:K=1;break;default:return}if(!z.state.isHorizontal)switch(ee){case u.default.SPACE:H.shiftKey?K=-1:K=1;break;case u.default.HOME:K=-1,X=z.props.contentSize;break;case u.default.UP:K=-1;break;case u.default.DOWN:K=1;break;case u.default.PAGE_UP:K=-1,X=z.props.size;break;case u.default.PAGE_DOWN:K=1,X=z.props.size;break;default:return}H.preventDefault();var J=z.props;z._setNextState(z._calculateState(z.state.position+X*K,J.size,J.contentSize,J.orientation))}}),O(C(z),"_onFocus",function(){z.setState({focused:!0})}),O(C(z),"_onBlur",function(){z.setState({focused:!1})}),O(C(z),"_blur",function(){var H=n.default.findDOMNode(C(z));if(H)try{z._onBlur(),H.blur()}catch(ee){}}),O(C(z),"getTouchX",function(H){return Math.round(H.targetTouches[0].clientX-H.target.getBoundingClientRect().x)}),O(C(z),"getTouchY",function(H){return Math.round(H.targetTouches[0].clientY-H.target.getBoundingClientRect().y)}),O(C(z),"_setNextState",function(H,ee){ee=ee||z.props;var X=ee.position,K=z.state.position!==H.position;if(X===void 0){var J=K?z._didScroll:void 0;z.setState(H,J)}else if(X===H.position)z.setState(H);else{H.position!==void 0&&H.position!==z.state.position&&z.props.onScroll(H.position);return}K&&F!==C(z)&&(F&&F._blur(),F=C(z))}),O(C(z),"_didScroll",function(){z.props.onScroll(z.state.position)}),z.state=z._calculateState(U.position||U.defaultPosition||0,U.size,U.contentSize,U.orientation),z._initialRender=!0,z}return y(q,[{key:"componentDidUpdate",value:function(){var z=this.props.position;z===void 0?this._setNextState(this._calculateState(this.state.position,this.props.size,this.props.contentSize,this.props.orientation)):this._setNextState(this._calculateState(z,this.props.size,this.props.contentSize,this.props.orientation),this.props)}},{key:"render",value:function(){if(!this.state.scrollable)return null;var z=this.props.size,H,ee,X=this.state.isHorizontal,K=!X,J=this.state.focused||this.state.isDragging,ne=this.state.faceSize,le=this.props.isOpaque,se=this.props.verticalTop||0,ue=(0,a.default)({"ScrollbarLayout/main":!0,"ScrollbarLayout/mainVertical":K,"ScrollbarLayout/mainHorizontal":X,"public/Scrollbar/main":!0,"public/Scrollbar/mainOpaque":le,"public/Scrollbar/mainActive":J}),fe=(0,a.default)({"ScrollbarLayout/face":!0,"ScrollbarLayout/faceHorizontal":X,"ScrollbarLayout/faceVertical":K,"public/Scrollbar/faceActive":J,"public/Scrollbar/face":!0}),pe=this.state.position*this.state.scale+A;return X?(H={width:z},ee={width:ne-$,top:0,bottom:0},(0,m.default)(ee,pe,0,this._initialRender,this.props.isRTL)):(H={top:se,height:z},this.props.isRTL&&(H.left=H.right||0,H.right="auto"),ee={height:ne-$},(0,m.default)(ee,0,pe,this._initialRender,this.props.isRTL),ee.left=0,ee.right=0),H.touchAction="none",H.zIndex=this.props.zIndex,this.props.trackColor==="gray"&&(H.backgroundColor=(0,p.default)("--fbui-desktop-background-light")),r.default.createElement("div",{onFocus:this._onFocus,onBlur:this._onBlur,onKeyDown:this._onKeyDown,onMouseDown:this._onMouseDown,onTouchCancel:this._onTouchCancel,onTouchEnd:this._onTouchEnd,onTouchMove:this._onTouchMove,onTouchStart:this._onTouchStart,className:ue,style:H,ref:this._onRefRoot},r.default.createElement("div",{ref:this._onRefFace,className:fe,style:ee}))}},{key:"componentDidMount",value:function(){var z=this.props.orientation==="horizontal",H=z?this._onWheelX:this._onWheelY;this._wheelHandler=new c.default(H,this._shouldHandleX,this._shouldHandleY,this.props.isRTL),this._rootRef&&this._rootRef.addEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._mouseMoveTracker=new f.default(this._onMouseMove,this._onMouseMoveEnd,document.documentElement,this.props.touchEnabled),this.props.position!==void 0&&this.state.position!==this.props.position&&this._didScroll(),this._initialRender=!1}},{key:"componentWillUnmount",value:function(){this._rootRef&&this._rootRef.removeEventListener("wheel",this._wheelHandler.onWheel,{passive:!1}),this._nextState=null,this._mouseMoveTracker&&(this._mouseMoveTracker.releaseMouseMoves(),this._mouseMoveTracker=null),F===this&&(F=null)}}]),q}(r.default.PureComponent);O(j,"propTypes",{contentSize:o.default.number.isRequired,defaultPosition:o.default.number,isOpaque:o.default.bool,orientation:o.default.oneOf(["vertical","horizontal"]),onScroll:o.default.func,position:o.default.number,size:o.default.number.isRequired,trackColor:o.default.oneOf(["gray"]),touchEnabled:o.default.bool,zIndex:o.default.number,verticalTop:o.default.number,isRTL:o.default.bool}),O(j,"defaultProps",{defaultPosition:0,isOpaque:!1,onScroll:l.default,orientation:"vertical",zIndex:99}),j.KEYBOARD_SCROLL_AMOUNT=k,j.SIZE=parseInt((0,p.default)("--scrollbar-size"),10),j.OFFSET=1;var I=j;e.default=I})(Us);(function(e){function t(w){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(O){return typeof O}:t=function(O){return O&&typeof Symbol=="function"&&O.constructor===Symbol&&O!==Symbol.prototype?"symbol":typeof O},t(w)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=_(R.pick_1),n=_(Oy),o=_(Ny),a=_(Jo),l=_(Dy),u=g(Ge),c=Vs,f=_($y),p=_(Wy),m=_(Us);function h(w){if(typeof WeakMap!="function")return null;var M=new WeakMap,O=new WeakMap;return(h=function(A){return A?O:M})(w)}function g(w,M){if(w&&w.__esModule)return w;if(w===null||t(w)!=="object"&&typeof w!="function")return{default:w};var O=h(M);if(O&&O.has(w))return O.get(w);var D={},A=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in w)if($!=="default"&&Object.prototype.hasOwnProperty.call(w,$)){var N=A?Object.getOwnPropertyDescriptor(w,$):null;N&&(N.get||N.set)?Object.defineProperty(D,$,N):D[$]=w[$]}return D.default=w,O&&O.set(w,D),D}function _(w){return w&&w.__esModule?w:{default:w}}function y(){return y=Object.assign||function(w){for(var M=1;M<arguments.length;M++){var O=arguments[M];for(var D in O)Object.prototype.hasOwnProperty.call(O,D)&&(w[D]=O[D])}return w},y.apply(this,arguments)}function x(){return{columnProps:[],columnGroupProps:[],elementTemplates:{cell:[],footer:[],groupHeader:[],header:[]},elementHeights:{footerHeight:0,groupHeaderHeight:0,headerHeight:0},propsRevision:null,rowSettings:{bufferRowCount:void 0,rowAttributesGetter:void 0,rowHeight:0,rowHeightGetter:function(){return 0},rowsCount:0,subRowHeight:0,subRowHeightGetter:function(){return 0}},scrollFlags:{overflowX:"auto",overflowY:"auto",showScrollbarX:!0,showScrollbarY:!0},tableSize:{height:void 0,maxHeight:0,ownerHeight:void 0,useMaxHeight:!1,width:0},columnReorderingData:{},columnResizingData:{},firstRowIndex:0,firstRowOffset:0,isColumnReordering:!1,isColumnResizing:!1,maxScrollX:0,maxScrollY:0,rowOffsets:{},rows:[],scrollContentHeight:0,scrollX:0,scrollbarXHeight:m.default.SIZE,scrollY:0,scrollbarYWidth:m.default.SIZE,scrolling:!1,rowBufferSet:new n.default,storedHeights:[],rowOffsetIntervalTree:null}}function S(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:x(),M=arguments.length>1?arguments[1]:void 0;switch(M.type){case u.INITIALIZE:{var O=M.props,D=T(w,O);D=E(D);var A=(0,c.getScrollAnchor)(D,O);return D=(0,p.default)(D,A),f.default.initialize(D,O,{})}case u.PROP_CHANGE:{var $=M.newProps,N=M.oldProps,k=T(w,$);(N.rowsCount!==$.rowsCount||N.rowHeight!==$.rowHeight||N.subRowHeight!==$.subRowHeight)&&(k=E(k)),N.rowsCount!==$.rowsCount&&(k.rowBufferSet=new n.default);var F=(0,c.getScrollAnchor)(k,$,N);return(!(0,a.default)(w,k)||F.changed)&&(k=(0,p.default)(k,F)),k=f.default.initialize(k,$,N),(k.scrollX!==w.scrollX||k.scrollY!==w.scrollY)&&(k.scrolling=k.scrolling||!0),k}case u.SCROLL_END:{var j=y({},w,{scrolling:!1}),I={firstIndex:w.firstRowIndex,firstOffset:w.firstRowOffset,lastIndex:w.lastIndex};return(0,p.default)(j,I)}case u.SCROLL_TO_Y:{var B=M.scrollY,G=y({},w,{scrolling:!0}),q=(0,c.scrollTo)(G,B);return(0,p.default)(G,q)}case u.COLUMN_RESIZE:{var U=M.resizeData;return f.default.resizeColumn(w,U)}case u.COLUMN_REORDER_START:{var z=M.reorderData;return f.default.reorderColumn(w,z)}case u.COLUMN_REORDER_END:return y({},w,{isColumnReordering:!1,columnReorderingData:{}});case u.COLUMN_REORDER_MOVE:{var H=M.deltaX;return f.default.reorderColumnMove(w,H)}case u.SCROLL_TO_X:{var ee=M.scrollX;return y({},w,{scrolling:!0,scrollX:ee})}default:return w}}function E(w){for(var M=w.rowSettings,O=M.rowHeight,D=M.rowsCount,A=M.subRowHeight,$=O+A,N=o.default.uniform(D,$),k=D*$,F=new Array(D),j=0;j<D;j++)F[j]=$;return y({},w,{rowOffsetIntervalTree:N,scrollContentHeight:k,storedHeights:F})}function T(w,M){var O=(0,l.default)(M.children),D=O.columnGroupProps,A=O.columnProps,$=O.elementTemplates,N=O.useGroupHeader,k=y({},w,{columnGroupProps:D,columnProps:A,elementTemplates:$,propsRevision:w.propsRevision+1});k.elementHeights=y({},k.elementHeights,(0,r.default)(M,["cellGroupWrapperHeight","footerHeight","groupHeaderHeight","headerHeight"])),N||(k.elementHeights.groupHeaderHeight=0),k.rowSettings=y({},k.rowSettings,(0,r.default)(M,["bufferRowCount","rowHeight","rowsCount","subRowHeight"]));var F=k.rowSettings,j=F.rowHeight,I=F.subRowHeight;return k.rowSettings.rowHeightGetter=M.rowHeightGetter||function(){return j},k.rowSettings.subRowHeightGetter=M.subRowHeightGetter||function(){return I||0},k.rowSettings.rowAttributesGetter=M.rowAttributesGetter,k.scrollFlags=y({},k.scrollFlags,(0,r.default)(M,["overflowX","overflowY","showScrollbarX","showScrollbarY"])),k.tableSize=y({},k.tableSize,(0,r.default)(M,["height","maxHeight","ownerHeight","width"])),k.tableSize.useMaxHeight=k.tableSize.height===void 0,k.scrollbarXHeight=M.scrollbarXHeight,k.scrollbarYWidth=M.scrollbarYWidth,k}var C=S;e.default=C})(Ry);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=Qg,r=n(Ry);function n(a){return a&&a.__esModule?a:{default:a}}var o={get:function(){return(0,t.createStore)(r.default)}};e.default=o})(Py);var By={};(function(e){function t(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function($){return typeof $}:t=function($){return $&&typeof Symbol=="function"&&$.constructor===Symbol&&$!==Symbol.prototype?"symbol":typeof $},t(D)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=c(Q),n=c(Bt),o=c(R.isEmpty_1),a=c(cr),l=c(_n),u=c(Us);function c(D){return D&&D.__esModule?D:{default:D}}function f(){return f=Object.assign||function(D){for(var A=1;A<arguments.length;A++){var $=arguments[A];for(var N in $)Object.prototype.hasOwnProperty.call($,N)&&(D[N]=$[N])}return D},f.apply(this,arguments)}function p(D,A){if(!(D instanceof A))throw new TypeError("Cannot call a class as a function")}function m(D,A){for(var $=0;$<A.length;$++){var N=A[$];N.enumerable=N.enumerable||!1,N.configurable=!0,"value"in N&&(N.writable=!0),Object.defineProperty(D,N.key,N)}}function h(D,A,$){return A&&m(D.prototype,A),D}function g(D,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(A&&A.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),A&&_(D,A)}function _(D,A){return _=Object.setPrototypeOf||function(N,k){return N.__proto__=k,N},_(D,A)}function y(D){var A=E();return function(){var N=T(D),k;if(A){var F=T(this).constructor;k=Reflect.construct(N,arguments,F)}else k=N.apply(this,arguments);return x(this,k)}}function x(D,A){return A&&(t(A)==="object"||typeof A=="function")?A:S(D)}function S(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function E(){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(D){return!1}}function T(D){return T=Object.setPrototypeOf?Object.getPrototypeOf:function($){return $.__proto__||Object.getPrototypeOf($)},T(D)}function C(D,A,$){return A in D?Object.defineProperty(D,A,{value:$,enumerable:!0,configurable:!0,writable:!0}):D[A]=$,D}var w=function(D){g($,D);var A=y($);function $(){var N;p(this,$);for(var k=arguments.length,F=new Array(k),j=0;j<k;j++)F[j]=arguments[j];return N=A.call.apply(A,[this].concat(F)),C(S(N),"state",{}),C(S(N),"_onScrollBarsUpdate",function(I){N.setState(I)}),C(S(N),"_onVerticalScroll",function(I){N.state.scrollToY!==void 0&&N.state.scrollToY(I)}),C(S(N),"_onHorizontalScroll",function(I){N.state.scrollToX!==void 0&&N.state.scrollToX(I)}),N}return h($,[{key:"render",value:function(){var k=!(0,o.default)(this.state)&&r.default.createElement(u.default,{size:this.state.viewportHeight,contentSize:this.state.contentHeight,onScroll:this._onVerticalScroll,verticalTop:this.state.scrollbarYOffsetTop,position:this.state.scrollY,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL}),F=!(0,o.default)(this.state)&&r.default.createElement(M,{contentSize:this.state.contentWidth,offset:this.state.scrollbarXOffsetTop,onScroll:this._onHorizontalScroll,position:this.state.scrollX,size:this.state.viewportWidth,touchEnabled:this.props.touchScrollEnabled,isRTL:this.props.isRTL});return r.default.cloneElement(this.props.children,{onScrollBarsUpdate:this._onScrollBarsUpdate,scrollbarX:F,scrollbarY:k})}}]),$}(r.default.Component),M=function(D){g($,D);var A=y($);function $(){return p(this,$),A.apply(this,arguments)}return h($,[{key:"render",value:function(){var k=this.props,F=k.offset,j=k.size,I={height:u.default.SIZE,width:j},B={height:u.default.SIZE,overflow:"hidden",width:j,top:F};return r.default.createElement("div",{className:(0,l.default)((0,a.default)("public/fixedDataTable/horizontalScrollbar")),style:I},r.default.createElement("div",{style:B},r.default.createElement(u.default,f({},this.props,{isOpaque:!0,orientation:"horizontal",offset:void 0}))))}}]),$}(r.default.PureComponent);C(M,"propTypes",{contentSize:n.default.number.isRequired,offset:n.default.number.isRequired,onScroll:n.default.func.isRequired,position:n.default.number.isRequired,size:n.default.number.isRequired,isRTL:n.default.bool});var O=w;e.default=O})(By);(function(e){function t(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(G){return typeof G}:t=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},t(I)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=x(Q),n=Qg,o=x(zi),a=x(R.pick_1),l=y(Ge),u=y(Or),c=y(kr),f=x(Jg),p=x(Py),m=x(Us),h=x(By),g=Ty;function _(I){if(typeof WeakMap!="function")return null;var B=new WeakMap,G=new WeakMap;return(_=function(U){return U?G:B})(I)}function y(I,B){if(I&&I.__esModule)return I;if(I===null||t(I)!=="object"&&typeof I!="function")return{default:I};var G=_(B);if(G&&G.has(I))return G.get(I);var q={},U=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var z in I)if(z!=="default"&&Object.prototype.hasOwnProperty.call(I,z)){var H=U?Object.getOwnPropertyDescriptor(I,z):null;H&&(H.get||H.set)?Object.defineProperty(q,z,H):q[z]=I[z]}return q.default=I,G&&G.set(I,q),q}function x(I){return I&&I.__esModule?I:{default:I}}function S(){return S=Object.assign||function(I){for(var B=1;B<arguments.length;B++){var G=arguments[B];for(var q in G)Object.prototype.hasOwnProperty.call(G,q)&&(I[q]=G[q])}return I},S.apply(this,arguments)}function E(I,B){if(!(I instanceof B))throw new TypeError("Cannot call a class as a function")}function T(I,B){for(var G=0;G<B.length;G++){var q=B[G];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(I,q.key,q)}}function C(I,B,G){return B&&T(I.prototype,B),G&&T(I,G),I}function w(I,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create(B&&B.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),B&&M(I,B)}function M(I,B){return M=Object.setPrototypeOf||function(q,U){return q.__proto__=U,q},M(I,B)}function O(I){var B=$();return function(){var q=N(I),U;if(B){var z=N(this).constructor;U=Reflect.construct(q,arguments,z)}else U=q.apply(this,arguments);return D(this,U)}}function D(I,B){return B&&(t(B)==="object"||typeof B=="function")?B:A(I)}function A(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}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(I){return!1}}function N(I){return N=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},N(I)}function k(I,B,G){return B in I?Object.defineProperty(I,B,{value:G,enumerable:!0,configurable:!0,writable:!0}):I[B]=G,I}var F=function(I){w(G,I);var B=O(G);function G(q){var U;return E(this,G),U=B.call(this,q),U.reduxStore=p.default.get(),U.scrollActions=(0,n.bindActionCreators)(c,U.reduxStore.dispatch),U.columnActions=(0,n.bindActionCreators)(u,U.reduxStore.dispatch),U.reduxStore.dispatch({type:l.INITIALIZE,props:q}),U.unsubscribe=U.reduxStore.subscribe(U.onStoreUpdate.bind(A(U))),U.state={boundState:G.getBoundState(U.reduxStore),reduxStore:U.reduxStore,props:q},U}return C(G,[{key:"componentWillUnmount",value:function(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=null),this.reduxStore=null}},{key:"render",value:function(){var U=r.default.createElement(f.default,S({},this.props,this.state.boundState,{scrollActions:this.scrollActions,columnActions:this.columnActions}));return this.props.defaultScrollbars?r.default.createElement(h.default,this.props,U):U}},{key:"onStoreUpdate",value:function(){var U=G.getBoundState(this.reduxStore);this.state.boundState.propsRevision===U.propsRevision&&this.setState({boundState:U})}}],[{key:"getDerivedStateFromProps",value:function(U,z){return(0,o.default)(U.height!==void 0||U.maxHeight!==void 0,"You must set either a height or a maxHeight"),U===z.props?null:(z.reduxStore.dispatch({type:l.PROP_CHANGE,newProps:U,oldProps:z.props}),{boundState:G.getBoundState(z.reduxStore),props:U})}},{key:"getBoundState",value:function(U){var z=U.getState(),H=(0,a.default)(z,["columnGroupProps","columnProps","columnReorderingData","columnResizingData","elementHeights","elementTemplates","firstRowIndex","endRowIndex","isColumnReordering","isColumnResizing","maxScrollX","maxScrollY","propsRevision","rows","rowOffsets","rowSettings","scrollContentHeight","scrollFlags","scrollX","scrollY","scrolling","scrollJumpedX","scrollJumpedY","tableSize"]);return H}}]),G}(r.default.Component);k(F,"defaultProps",{defaultScrollbars:!0,scrollbarXHeight:m.default.SIZE,scrollbarYWidth:m.default.SIZE});var j=(0,g.polyfill)(F);e.default=j})(Xg);var Hy={};(function(e){function t(A){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(N){return typeof N}:t=function(N){return N&&typeof Symbol=="function"&&N.constructor===Symbol&&N!==Symbol.prototype?"symbol":typeof N},t(A)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=l(Q),n=l(Bt),o=l(cr),a=l(_n);function l(A){return A&&A.__esModule?A:{default:A}}function u(){return u=Object.assign||function(A){for(var $=1;$<arguments.length;$++){var N=arguments[$];for(var k in N)Object.prototype.hasOwnProperty.call(N,k)&&(A[k]=N[k])}return A},u.apply(this,arguments)}function c(A,$){var N=Object.keys(A);if(Object.getOwnPropertySymbols){var k=Object.getOwnPropertySymbols(A);$&&(k=k.filter(function(F){return Object.getOwnPropertyDescriptor(A,F).enumerable})),N.push.apply(N,k)}return N}function f(A){for(var $=1;$<arguments.length;$++){var N=arguments[$]!=null?arguments[$]:{};$%2?c(Object(N),!0).forEach(function(k){M(A,k,N[k])}):Object.getOwnPropertyDescriptors?Object.defineProperties(A,Object.getOwnPropertyDescriptors(N)):c(Object(N)).forEach(function(k){Object.defineProperty(A,k,Object.getOwnPropertyDescriptor(N,k))})}return A}function p(A,$){if(A==null)return{};var N=m(A,$),k,F;if(Object.getOwnPropertySymbols){var j=Object.getOwnPropertySymbols(A);for(F=0;F<j.length;F++)k=j[F],!($.indexOf(k)>=0)&&Object.prototype.propertyIsEnumerable.call(A,k)&&(N[k]=A[k])}return N}function m(A,$){if(A==null)return{};var N={},k=Object.keys(A),F,j;for(j=0;j<k.length;j++)F=k[j],!($.indexOf(F)>=0)&&(N[F]=A[F]);return N}function h(A,$){if(!(A instanceof $))throw new TypeError("Cannot call a class as a function")}function g(A,$){for(var N=0;N<$.length;N++){var k=$[N];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(A,k.key,k)}}function _(A,$,N){return $&&g(A.prototype,$),A}function y(A,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");A.prototype=Object.create($&&$.prototype,{constructor:{value:A,writable:!0,configurable:!0}}),$&&x(A,$)}function x(A,$){return x=Object.setPrototypeOf||function(k,F){return k.__proto__=F,k},x(A,$)}function S(A){var $=C();return function(){var k=w(A),F;if($){var j=w(this).constructor;F=Reflect.construct(k,arguments,j)}else F=k.apply(this,arguments);return E(this,F)}}function E(A,$){return $&&(t($)==="object"||typeof $=="function")?$:T(A)}function T(A){if(A===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return A}function C(){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(A){return!1}}function w(A){return w=Object.setPrototypeOf?Object.getPrototypeOf:function(N){return N.__proto__||Object.getPrototypeOf(N)},w(A)}function M(A,$,N){return $ in A?Object.defineProperty(A,$,{value:N,enumerable:!0,configurable:!0,writable:!0}):A[$]=N,A}var O=function(A){y(N,A);var $=S(N);function N(){return h(this,N),$.apply(this,arguments)}return _(N,[{key:"render",value:function(){var F=this.props,j=F.height,I=F.width,B=F.style,G=F.className,q=F.children,U=p(F,["height","width","isVisible","style","className","children","columnKey","rowIndex"]),z=f({height:j,width:I},B);return r.default.createElement("div",u({},U,{className:(0,a.default)((0,o.default)("fixedDataTableCellLayout/wrap"),(0,o.default)("public/fixedDataTableCell/wrap"),(0,o.default)("public/fixedDataTableCell/cellContent"),G),style:z}),q)}}]),N}(r.default.Component);M(O,"propTypes",{height:n.default.number,width:n.default.number,columnKey:n.default.oneOfType([n.default.string,n.default.number]),rowIndex:n.default.number,isVisible:n.default.bool});var D=O;e.default=D})(Hy);var Vy={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(Q),n=o(Bt);function o(E){return E&&E.__esModule?E:{default:E}}function a(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function l(E,T){for(var C=0;C<T.length;C++){var w=T[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function u(E,T,C){return T&&l(E.prototype,T),E}function c(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}}),T&&f(E,T)}function f(E,T){return f=Object.setPrototypeOf||function(w,M){return w.__proto__=M,w},f(E,T)}function p(E){var T=g();return function(){var w=_(E),M;if(T){var O=_(this).constructor;M=Reflect.construct(w,arguments,O)}else M=w.apply(this,arguments);return m(this,M)}}function m(E,T){return T&&(t(T)==="object"||typeof T=="function")?T:h(E)}function h(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function g(){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(E){return!1}}function _(E){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(E)}function y(E,T,C){return T in E?Object.defineProperty(E,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[T]=C,E}var x=function(E){c(C,E);var T=p(C);function C(){return a(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumn /> should never render");return null}}]),C}(r.default.Component);y(x,"__TableColumn__",!0),y(x,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,fixedRight:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func]),cell:n.default.oneOfType([n.default.node,n.default.func]),footer:n.default.oneOfType([n.default.node,n.default.func]),columnKey:n.default.oneOfType([n.default.string,n.default.number]),width:n.default.number.isRequired,minWidth:n.default.number,maxWidth:n.default.number,flexGrow:n.default.number,isResizable:n.default.bool,isReorderable:n.default.bool,allowCellsRecycling:n.default.bool,pureRendering:n.default.bool,cellClassName:n.default.string}),y(x,"defaultProps",{allowCellsRecycling:!1,fixed:!1,fixedRight:!1});var S=x;e.default=S})(Vy);var Uy={};(function(e){function t(E){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?t=function(C){return typeof C}:t=function(C){return C&&typeof Symbol=="function"&&C.constructor===Symbol&&C!==Symbol.prototype?"symbol":typeof C},t(E)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=o(Q),n=o(Bt);function o(E){return E&&E.__esModule?E:{default:E}}function a(E,T){if(!(E instanceof T))throw new TypeError("Cannot call a class as a function")}function l(E,T){for(var C=0;C<T.length;C++){var w=T[C];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(E,w.key,w)}}function u(E,T,C){return T&&l(E.prototype,T),E}function c(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}}),T&&f(E,T)}function f(E,T){return f=Object.setPrototypeOf||function(w,M){return w.__proto__=M,w},f(E,T)}function p(E){var T=g();return function(){var w=_(E),M;if(T){var O=_(this).constructor;M=Reflect.construct(w,arguments,O)}else M=w.apply(this,arguments);return m(this,M)}}function m(E,T){return T&&(t(T)==="object"||typeof T=="function")?T:h(E)}function h(E){if(E===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E}function g(){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(E){return!1}}function _(E){return _=Object.setPrototypeOf?Object.getPrototypeOf:function(C){return C.__proto__||Object.getPrototypeOf(C)},_(E)}function y(E,T,C){return T in E?Object.defineProperty(E,T,{value:C,enumerable:!0,configurable:!0,writable:!0}):E[T]=C,E}var x=function(E){c(C,E);var T=p(C);function C(){return a(this,C),T.apply(this,arguments)}return u(C,[{key:"render",value:function(){if(process.env.NODE_ENV!=="production")throw new Error("Component <FixedDataTableColumnGroup /> should never render");return null}}]),C}(r.default.Component);y(x,"__TableColumnGroup__",!0),y(x,"propTypes",{align:n.default.oneOf(["left","center","right"]),fixed:n.default.bool,header:n.default.oneOfType([n.default.node,n.default.func])}),y(x,"defaultProps",{fixed:!1});var S=x;e.default=S})(Uy);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Table",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"Cell",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"DataCell",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"Column",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"ColumnGroup",{enumerable:!0,get:function(){return a.default}}),e.version=void 0;var t=l(Xg),r=l(Sd),n=l(Hy),o=l(Vy),a=l(Uy);function l(c){return c&&c.__esModule?c:{default:c}}var u="1.2.22";e.version=u})(Yg);var La=Yg;const tW="#f4f4f8",rW="#edeef1",nW="#e3e5ea",iW="#f9f9fb",oW="#ffcb05",aW="#1faff3",sW="#e5e5e5",lW="#5b6372",uW="#3a4356",cW="#3c3c42",dW="#a3a3a3",fW="#d0d3db",hW="_tableWrapper_1ode4_16",pW="_table_1ode4_16",mW="_tableHeader_1ode4_78",vW="_tableCell_1ode4_88",gW="_tableCellContent_1ode4_99",yW="_headerColor_1ode4_105",bW="_rowColor_1ode4_109",po={athensGray:tW,athensGrayDark:rW,athensGrayDark2:nW,athensGrayLight:iW,defaultBrandColor:oW,dodgerBlue:aW,mercury:sW,shuttleGrayDark:lW,oxfordBlue:uW,darkModeDefaultBackground:cW,indicatorGrey:dW,secondaryButtonHover:fW,tableWrapper:hW,table:pW,tableHeader:mW,tableCell:vW,tableCellContent:gW,headerColor:yW,rowColor:bW},_W="#f4f4f8",wW="#edeef1",xW="#e3e5ea",CW="#f9f9fb",TW="#ffcb05",EW="#1faff3",SW="#e5e5e5",MW="#5b6372",PW="#3a4356",RW="#3c3c42",OW="#a3a3a3",kW="#d0d3db",NW="_headerCell_2qf2w_16",DW="_noSort_2qf2w_29",LW="_standard_2qf2w_29",AW="_caret_2qf2w_33",IW="_headerLabel_2qf2w_38",$W="_icon_2qf2w_43",zW="_numberIcon_2qf2w_50",WW="_dateIcon_2qf2w_54",FW="_textIcon_2qf2w_58",jW="_booleanIcon_2qf2w_62",BW="_sortIcon_2qf2w_66",HW="_sortAscending_2qf2w_74",VW="_sortDescending_2qf2w_78",un={athensGray:_W,athensGrayDark:wW,athensGrayDark2:xW,athensGrayLight:CW,defaultBrandColor:TW,dodgerBlue:EW,mercury:SW,shuttleGrayDark:MW,oxfordBlue:PW,darkModeDefaultBackground:RW,indicatorGrey:OW,secondaryButtonHover:kW,headerCell:NW,noSort:DW,standard:LW,caret:AW,headerLabel:IW,icon:$W,numberIcon:zW,dateIcon:WW,textIcon:FW,booleanIcon:jW,sortIcon:BW,sortAscending:HW,sortDescending:VW};var qy={exports:{}};/*!
|
|
257
|
+
Copyright (c) 2018 Jed Watson.
|
|
258
|
+
Licensed under the MIT License (MIT), see
|
|
259
|
+
http://jedwatson.github.io/classnames
|
|
260
|
+
*/(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var u=arguments[l];u&&(a=o(a,n(u)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var u in a)t.call(a,u)&&a[u]&&(l=o(l,u));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(qy);var UW=qy.exports;const ko=R.getDefaultExportFromCjs(UW),qW="_icon_t30x8_1",GW="_numberIcon_t30x8_11",YW="_dateIcon_t30x8_15",XW="_textIcon_t30x8_19",ZW="_booleanIcon_t30x8_23",oo={icon:qW,numberIcon:GW,dateIcon:YW,textIcon:XW,booleanIcon:ZW},KW=({columnType:e})=>V.jsx("div",{className:ko(oo.icon,{[oo.numberIcon]:R.isNumber(e),[oo.dateIcon]:R.isDatetime(e),[oo.textIcon]:R.isText(e),[oo.booleanIcon]:R.isBoolean(e)})}),QW=({column:e,onClick:t,isSelected:r,children:n,showFieldTypeIcon:o,sortIcon:a="standard"})=>V.jsxs("div",{className:un.headerCell,onClick:()=>{t(e)},children:[o&&V.jsx(KW,{columnType:e.type}),V.jsx("div",{className:un.headerLabel,children:n}),V.jsx("div",{className:ko(un.sortIcon,{[un.caret]:a==="caret",[un.standard]:a==="standard",[un.noSort]:!r||e.direction===0,[un.sortAscending]:r&&e.direction===1,[un.sortDescending]:r&&e.direction===-1})})]}),JW=26,eF=26,Ap=20,Gy=36,Yy=29,Xy=24,uc=350,tF=126,rF=38,nF=55,iF=(e,t,r,n)=>{const a=document.createElement("canvas").getContext("2d");if(!a)return[];a.font=`13px ${n||"Open Sans"}`;const l=e.columns.map(m=>a.measureText(m.name).width+Gy+(t?Yy:0)),u=a.measureText("0").width,c=e.columns.map(m=>({type:R.simpleColumnType(m.type),index:m.index})),{rows:f}=e,p=c.map(m=>{const h=f.reduce((g,_)=>{var E;const y=_[m.index].displayValue,x=(E=r[m.index])!=null&&E.isHtml?oF(y):y,S=m.type==="number"?_[m.index].displayValue.length*u:a.measureText(x).width;return Math.max(g,S)},0);return Xy+h});return l.map((m,h)=>{var g;return(g=r[h])!=null&&g.width?r[h].width:Math.ceil(Math.max(tF,Math.min(uc,Math.max(m,p[h]))))})};function oF(e){const t=document.createElement("div");return t.innerHTML=e,Zy(t)}function Zy(e){let t,r,n,o;for(r="",t=0;t<e.childNodes.length;t++)o=e.childNodes[t],n=null,o.nodeType===1?n=Zy(o):o.nodeType===3&&(n=o.nodeValue),n&&(r+=n);return r}const Ip=e=>e%2===1,$p=({colIndex:e=0,rowIndex:t=0,themeSettings:r,customStyles:n,isHeaderCell:o})=>{var f,p,m,h,g,_,y,x,S,E,T,C,w,M,O,D,A,$;let a=r.chart.textColor;const l=r.typography.fontFamily;let u=r.chart.backgroundColor;const c=R.getSlightlyDifferentColor(u);return o?(p=(f=n==null?void 0:n.header)==null?void 0:f.color)!=null&&p.enabled&&(u=((h=(m=n==null?void 0:n.header)==null?void 0:m.color)==null?void 0:h.backgroundColor)||c,a=((_=(g=n==null?void 0:n.header)==null?void 0:g.color)==null?void 0:_.textColor)||a):((x=(y=n==null?void 0:n.columns)==null?void 0:y.alternatingColor)!=null&&x.enabled&&Ip(e)&&(u=((E=(S=n==null?void 0:n.columns)==null?void 0:S.alternatingColor)==null?void 0:E.backgroundColor)||c,a=((C=(T=n==null?void 0:n.columns)==null?void 0:T.alternatingColor)==null?void 0:C.textColor)||a),(M=(w=n==null?void 0:n.rows)==null?void 0:w.alternatingColor)!=null&&M.enabled&&Ip(t)&&(u=((D=(O=n==null?void 0:n.rows)==null?void 0:O.alternatingColor)==null?void 0:D.backgroundColor)||c,a=(($=(A=n==null?void 0:n.rows)==null?void 0:A.alternatingColor)==null?void 0:$.textColor)||a)),{color:a,backgroundColor:u,fontFamily:l}};function Ky(e){return typeof e=="string"}function mo(e,t,r){return e===void 0||Ky(e)?t:te({},t,{ownerState:te({},t.ownerState,r)})}const aF={disableDefaultClasses:!1},Qy=Z.createContext(aF);process.env.NODE_ENV!=="production"&&(Qy.displayName="ClassNameConfiguratorContext");function sF(e){const{disableDefaultClasses:t}=Z.useContext(Qy);return r=>t?"":e(r)}function Jy(e,t=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]=="function"&&!t.includes(n)).forEach(n=>{r[n]=e[n]}),r}function lF(e,t,r){return typeof e=="function"?e(t,r):e}function zp(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{t[r]=e[r]}),t}function uF(e){const{getSlotProps:t,additionalProps:r,externalSlotProps:n,externalForwardedProps:o,className:a}=e;if(!t){const g=Oe(r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),_=te({},r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),y=te({},r,o,n);return g.length>0&&(y.className=g),Object.keys(_).length>0&&(y.style=_),{props:y,internalRef:void 0}}const l=Jy(te({},o,n)),u=zp(n),c=zp(o),f=t(l),p=Oe(f==null?void 0:f.className,r==null?void 0:r.className,a,o==null?void 0:o.className,n==null?void 0:n.className),m=te({},f==null?void 0:f.style,r==null?void 0:r.style,o==null?void 0:o.style,n==null?void 0:n.style),h=te({},f,r,c,u);return p.length>0&&(h.className=p),Object.keys(m).length>0&&(h.style=m),{props:h,internalRef:f.ref}}const cF=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function vn(e){var t;const{elementType:r,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:a=!1}=e,l=Se(e,cF),u=a?{}:lF(n,o),{props:c,internalRef:f}=uF(te({},l,{externalSlotProps:u})),p=At(f,u==null?void 0:u.ref,(t=e.additionalProps)==null?void 0:t.ref);return mo(r,te({},c,{ref:p}),o)}function ta(){const e=xg(dd);return process.env.NODE_ENV!=="production"&&Z.useDebugValue(e),e[fd]||e}function ss(e,t){var r,n;const{timeout:o,easing:a,style:l={}}=e;return{duration:(r=l.transitionDuration)!=null?r:typeof o=="number"?o:o[t.mode]||0,easing:(n=l.transitionTimingFunction)!=null?n:typeof a=="object"?a[t.mode]:a,delay:l.transitionDelay}}const dF=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function cc(e){return`scale(${e}, ${Vt(e,2)})`}const fF={entering:{opacity:1,transform:cc(1)},entered:{opacity:1,transform:"none"}},tu=typeof navigator!="undefined"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),No=Z.forwardRef(function(t,r){const{addEndListener:n,appear:o=!0,children:a,easing:l,in:u,onEnter:c,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,style:_,timeout:y="auto",TransitionComponent:x=Wr}=t,S=Se(t,dF),E=wi(),T=Z.useRef(),C=ta(),w=Z.useRef(null),M=At(w,a.ref,r),O=I=>B=>{if(I){const G=w.current;B===void 0?I(G):I(G,B)}},D=O(p),A=O((I,B)=>{const{duration:G,delay:q,easing:U}=ss({style:_,timeout:y,easing:l},{mode:"enter"});let z;y==="auto"?(z=C.transitions.getAutoHeightDuration(I.clientHeight),T.current=z):z=G,I.style.transition=[C.transitions.create("opacity",{duration:z,delay:q}),C.transitions.create("transform",{duration:tu?z:z*.666,delay:q,easing:U})].join(","),c&&c(I,B)}),$=O(f),N=O(g),k=O(I=>{const{duration:B,delay:G,easing:q}=ss({style:_,timeout:y,easing:l},{mode:"exit"});let U;y==="auto"?(U=C.transitions.getAutoHeightDuration(I.clientHeight),T.current=U):U=B,I.style.transition=[C.transitions.create("opacity",{duration:U,delay:G}),C.transitions.create("transform",{duration:tu?U:U*.666,delay:tu?G:G||U*.333,easing:q})].join(","),I.style.opacity=0,I.style.transform=cc(.75),m&&m(I)}),F=O(h),j=I=>{y==="auto"&&E.start(T.current||0,I),n&&n(w.current,I)};return V.jsx(x,te({appear:o,in:u,nodeRef:w,onEnter:A,onEntered:$,onEntering:D,onExit:k,onExited:F,onExiting:N,addEndListener:j,timeout:y==="auto"?null:y},S,{children:(I,B)=>Z.cloneElement(a,te({style:te({opacity:0,transform:cc(.75),visibility:I==="exited"&&!u?"hidden":void 0},fF[I],_,a.props.style),ref:M},B))}))});process.env.NODE_ENV!=="production"&&(No.propTypes={addEndListener:v.func,appear:v.bool,children:qn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});No.muiSupportAuto=!0;var zt="top",ar="bottom",sr="right",Wt="left",kd="auto",ra=[zt,ar,sr,Wt],Ri="start",Do="end",hF="clippingParents",eb="viewport",ao="popper",pF="reference",Wp=ra.reduce(function(e,t){return e.concat([t+"-"+Ri,t+"-"+Do])},[]),tb=[].concat(ra,[kd]).reduce(function(e,t){return e.concat([t,t+"-"+Ri,t+"-"+Do])},[]),mF="beforeRead",vF="read",gF="afterRead",yF="beforeMain",bF="main",_F="afterMain",wF="beforeWrite",xF="write",CF="afterWrite",TF=[mF,vF,gF,yF,bF,_F,wF,xF,CF];function $r(e){return e?(e.nodeName||"").toLowerCase():null}function Gt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Bn(e){var t=Gt(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Gt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Nd(e){if(typeof ShadowRoot=="undefined")return!1;var t=Gt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function EF(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!ir(a)||!$r(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var u=o[l];u===!1?a.removeAttribute(l):a.setAttribute(l,u===!0?"":u)}))})}function SF(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var o=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),u=l.reduce(function(c,f){return c[f]="",c},{});!ir(o)||!$r(o)||(Object.assign(o.style,u),Object.keys(a).forEach(function(c){o.removeAttribute(c)}))})}}const MF={name:"applyStyles",enabled:!0,phase:"write",fn:EF,effect:SF,requires:["computeStyles"]};function Ir(e){return e.split("-")[0]}var Wn=Math.max,ls=Math.min,Oi=Math.round;function dc(){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 rb(){return!/^((?!chrome|android).)*safari/i.test(dc())}function ki(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&ir(e)&&(o=e.offsetWidth>0&&Oi(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Oi(n.height)/e.offsetHeight||1);var l=Bn(e)?Gt(e):window,u=l.visualViewport,c=!rb()&&r,f=(n.left+(c&&u?u.offsetLeft:0))/o,p=(n.top+(c&&u?u.offsetTop:0))/a,m=n.width/o,h=n.height/a;return{width:m,height:h,top:p,right:f+m,bottom:p+h,left:f,x:f,y:p}}function Dd(e){var t=ki(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function nb(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Nd(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Zr(e){return Gt(e).getComputedStyle(e)}function PF(e){return["table","td","th"].indexOf($r(e))>=0}function Cn(e){return((Bn(e)?e.ownerDocument:e.document)||window.document).documentElement}function qs(e){return $r(e)==="html"?e:e.assignedSlot||e.parentNode||(Nd(e)?e.host:null)||Cn(e)}function Fp(e){return!ir(e)||Zr(e).position==="fixed"?null:e.offsetParent}function RF(e){var t=/firefox/i.test(dc()),r=/Trident/i.test(dc());if(r&&ir(e)){var n=Zr(e);if(n.position==="fixed")return null}var o=qs(e);for(Nd(o)&&(o=o.host);ir(o)&&["html","body"].indexOf($r(o))<0;){var a=Zr(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function na(e){for(var t=Gt(e),r=Fp(e);r&&PF(r)&&Zr(r).position==="static";)r=Fp(r);return r&&($r(r)==="html"||$r(r)==="body"&&Zr(r).position==="static")?t:r||RF(e)||t}function Ld(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yo(e,t,r){return Wn(e,ls(t,r))}function OF(e,t,r){var n=yo(e,t,r);return n>r?r:n}function ib(){return{top:0,right:0,bottom:0,left:0}}function ob(e){return Object.assign({},ib(),e)}function ab(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var kF=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,ob(typeof t!="number"?t:ab(t,ra))};function NF(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,u=Ir(r.placement),c=Ld(u),f=[Wt,sr].indexOf(u)>=0,p=f?"height":"width";if(!(!a||!l)){var m=kF(o.padding,r),h=Dd(a),g=c==="y"?zt:Wt,_=c==="y"?ar:sr,y=r.rects.reference[p]+r.rects.reference[c]-l[c]-r.rects.popper[p],x=l[c]-r.rects.reference[c],S=na(a),E=S?c==="y"?S.clientHeight||0:S.clientWidth||0:0,T=y/2-x/2,C=m[g],w=E-h[p]-m[_],M=E/2-h[p]/2+T,O=yo(C,M,w),D=c;r.modifiersData[n]=(t={},t[D]=O,t.centerOffset=O-M,t)}}function DF(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||nb(t.elements.popper,o)&&(t.elements.arrow=o))}const LF={name:"arrow",enabled:!0,phase:"main",fn:NF,effect:DF,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ni(e){return e.split("-")[1]}var AF={top:"auto",right:"auto",bottom:"auto",left:"auto"};function IF(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Oi(r*o)/o||0,y:Oi(n*o)/o||0}}function jp(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,u=e.position,c=e.gpuAcceleration,f=e.adaptive,p=e.roundOffsets,m=e.isFixed,h=l.x,g=h===void 0?0:h,_=l.y,y=_===void 0?0:_,x=typeof p=="function"?p({x:g,y}):{x:g,y};g=x.x,y=x.y;var S=l.hasOwnProperty("x"),E=l.hasOwnProperty("y"),T=Wt,C=zt,w=window;if(f){var M=na(r),O="clientHeight",D="clientWidth";if(M===Gt(r)&&(M=Cn(r),Zr(M).position!=="static"&&u==="absolute"&&(O="scrollHeight",D="scrollWidth")),M=M,o===zt||(o===Wt||o===sr)&&a===Do){C=ar;var A=m&&M===w&&w.visualViewport?w.visualViewport.height:M[O];y-=A-n.height,y*=c?1:-1}if(o===Wt||(o===zt||o===ar)&&a===Do){T=sr;var $=m&&M===w&&w.visualViewport?w.visualViewport.width:M[D];g-=$-n.width,g*=c?1:-1}}var N=Object.assign({position:u},f&&AF),k=p===!0?IF({x:g,y},Gt(r)):{x:g,y};if(g=k.x,y=k.y,c){var F;return Object.assign({},N,(F={},F[C]=E?"0":"",F[T]=S?"0":"",F.transform=(w.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",F))}return Object.assign({},N,(t={},t[C]=E?y+"px":"",t[T]=S?g+"px":"",t.transform="",t))}function $F(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,u=r.roundOffsets,c=u===void 0?!0:u,f={placement:Ir(t.placement),variation:Ni(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,jp(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,jp(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const zF={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:$F,data:{}};var Aa={passive:!0};function WF(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,u=l===void 0?!0:l,c=Gt(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&f.forEach(function(p){p.addEventListener("scroll",r.update,Aa)}),u&&c.addEventListener("resize",r.update,Aa),function(){a&&f.forEach(function(p){p.removeEventListener("scroll",r.update,Aa)}),u&&c.removeEventListener("resize",r.update,Aa)}}const FF={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:WF,data:{}};var jF={left:"right",right:"left",bottom:"top",top:"bottom"};function qa(e){return e.replace(/left|right|bottom|top/g,function(t){return jF[t]})}var BF={start:"end",end:"start"};function Bp(e){return e.replace(/start|end/g,function(t){return BF[t]})}function Ad(e){var t=Gt(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Id(e){return ki(Cn(e)).left+Ad(e).scrollLeft}function HF(e,t){var r=Gt(e),n=Cn(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,u=0,c=0;if(o){a=o.width,l=o.height;var f=rb();(f||!f&&t==="fixed")&&(u=o.offsetLeft,c=o.offsetTop)}return{width:a,height:l,x:u+Id(e),y:c}}function VF(e){var t,r=Cn(e),n=Ad(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Wn(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Wn(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),u=-n.scrollLeft+Id(e),c=-n.scrollTop;return Zr(o||r).direction==="rtl"&&(u+=Wn(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:u,y:c}}function $d(e){var t=Zr(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function sb(e){return["html","body","#document"].indexOf($r(e))>=0?e.ownerDocument.body:ir(e)&&$d(e)?e:sb(qs(e))}function bo(e,t){var r;t===void 0&&(t=[]);var n=sb(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=Gt(n),l=o?[a].concat(a.visualViewport||[],$d(n)?n:[]):n,u=t.concat(l);return o?u:u.concat(bo(qs(l)))}function fc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function UF(e,t){var r=ki(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Hp(e,t,r){return t===eb?fc(HF(e,r)):Bn(t)?UF(t,r):fc(VF(Cn(e)))}function qF(e){var t=bo(qs(e)),r=["absolute","fixed"].indexOf(Zr(e).position)>=0,n=r&&ir(e)?na(e):e;return Bn(n)?t.filter(function(o){return Bn(o)&&nb(o,n)&&$r(o)!=="body"}):[]}function GF(e,t,r,n){var o=t==="clippingParents"?qF(e):[].concat(t),a=[].concat(o,[r]),l=a[0],u=a.reduce(function(c,f){var p=Hp(e,f,n);return c.top=Wn(p.top,c.top),c.right=ls(p.right,c.right),c.bottom=ls(p.bottom,c.bottom),c.left=Wn(p.left,c.left),c},Hp(e,l,n));return u.width=u.right-u.left,u.height=u.bottom-u.top,u.x=u.left,u.y=u.top,u}function lb(e){var t=e.reference,r=e.element,n=e.placement,o=n?Ir(n):null,a=n?Ni(n):null,l=t.x+t.width/2-r.width/2,u=t.y+t.height/2-r.height/2,c;switch(o){case zt:c={x:l,y:t.y-r.height};break;case ar:c={x:l,y:t.y+t.height};break;case sr:c={x:t.x+t.width,y:u};break;case Wt:c={x:t.x-r.width,y:u};break;default:c={x:t.x,y:t.y}}var f=o?Ld(o):null;if(f!=null){var p=f==="y"?"height":"width";switch(a){case Ri:c[f]=c[f]-(t[p]/2-r[p]/2);break;case Do:c[f]=c[f]+(t[p]/2-r[p]/2);break}}return c}function Lo(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,u=r.boundary,c=u===void 0?hF:u,f=r.rootBoundary,p=f===void 0?eb:f,m=r.elementContext,h=m===void 0?ao:m,g=r.altBoundary,_=g===void 0?!1:g,y=r.padding,x=y===void 0?0:y,S=ob(typeof x!="number"?x:ab(x,ra)),E=h===ao?pF:ao,T=e.rects.popper,C=e.elements[_?E:h],w=GF(Bn(C)?C:C.contextElement||Cn(e.elements.popper),c,p,l),M=ki(e.elements.reference),O=lb({reference:M,element:T,strategy:"absolute",placement:o}),D=fc(Object.assign({},T,O)),A=h===ao?D:M,$={top:w.top-A.top+S.top,bottom:A.bottom-w.bottom+S.bottom,left:w.left-A.left+S.left,right:A.right-w.right+S.right},N=e.modifiersData.offset;if(h===ao&&N){var k=N[o];Object.keys($).forEach(function(F){var j=[sr,ar].indexOf(F)>=0?1:-1,I=[zt,ar].indexOf(F)>=0?"y":"x";$[F]+=k[I]*j})}return $}function YF(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,u=r.flipVariations,c=r.allowedAutoPlacements,f=c===void 0?tb:c,p=Ni(n),m=p?u?Wp:Wp.filter(function(_){return Ni(_)===p}):ra,h=m.filter(function(_){return f.indexOf(_)>=0});h.length===0&&(h=m);var g=h.reduce(function(_,y){return _[y]=Lo(e,{placement:y,boundary:o,rootBoundary:a,padding:l})[Ir(y)],_},{});return Object.keys(g).sort(function(_,y){return g[_]-g[y]})}function XF(e){if(Ir(e)===kd)return[];var t=qa(e);return[Bp(e),t,Bp(t)]}function ZF(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,u=l===void 0?!0:l,c=r.fallbackPlacements,f=r.padding,p=r.boundary,m=r.rootBoundary,h=r.altBoundary,g=r.flipVariations,_=g===void 0?!0:g,y=r.allowedAutoPlacements,x=t.options.placement,S=Ir(x),E=S===x,T=c||(E||!_?[qa(x)]:XF(x)),C=[x].concat(T).reduce(function(K,J){return K.concat(Ir(J)===kd?YF(t,{placement:J,boundary:p,rootBoundary:m,padding:f,flipVariations:_,allowedAutoPlacements:y}):J)},[]),w=t.rects.reference,M=t.rects.popper,O=new Map,D=!0,A=C[0],$=0;$<C.length;$++){var N=C[$],k=Ir(N),F=Ni(N)===Ri,j=[zt,ar].indexOf(k)>=0,I=j?"width":"height",B=Lo(t,{placement:N,boundary:p,rootBoundary:m,altBoundary:h,padding:f}),G=j?F?sr:Wt:F?ar:zt;w[I]>M[I]&&(G=qa(G));var q=qa(G),U=[];if(a&&U.push(B[k]<=0),u&&U.push(B[G]<=0,B[q]<=0),U.every(function(K){return K})){A=N,D=!1;break}O.set(N,U)}if(D)for(var z=_?3:1,H=function(J){var ne=C.find(function(le){var se=O.get(le);if(se)return se.slice(0,J).every(function(ue){return ue})});if(ne)return A=ne,"break"},ee=z;ee>0;ee--){var X=H(ee);if(X==="break")break}t.placement!==A&&(t.modifiersData[n]._skip=!0,t.placement=A,t.reset=!0)}}const KF={name:"flip",enabled:!0,phase:"main",fn:ZF,requiresIfExists:["offset"],data:{_skip:!1}};function Vp(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Up(e){return[zt,sr,ar,Wt].some(function(t){return e[t]>=0})}function QF(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=Lo(t,{elementContext:"reference"}),u=Lo(t,{altBoundary:!0}),c=Vp(l,n),f=Vp(u,o,a),p=Up(c),m=Up(f);t.modifiersData[r]={referenceClippingOffsets:c,popperEscapeOffsets:f,isReferenceHidden:p,hasPopperEscaped:m},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":m})}const JF={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:QF};function e4(e,t,r){var n=Ir(e),o=[Wt,zt].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],u=a[1];return l=l||0,u=(u||0)*o,[Wt,sr].indexOf(n)>=0?{x:u,y:l}:{x:l,y:u}}function t4(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=tb.reduce(function(p,m){return p[m]=e4(m,t.rects,a),p},{}),u=l[t.placement],c=u.x,f=u.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const r4={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:t4};function n4(e){var t=e.state,r=e.name;t.modifiersData[r]=lb({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const i4={name:"popperOffsets",enabled:!0,phase:"read",fn:n4,data:{}};function o4(e){return e==="x"?"y":"x"}function a4(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,u=l===void 0?!1:l,c=r.boundary,f=r.rootBoundary,p=r.altBoundary,m=r.padding,h=r.tether,g=h===void 0?!0:h,_=r.tetherOffset,y=_===void 0?0:_,x=Lo(t,{boundary:c,rootBoundary:f,padding:m,altBoundary:p}),S=Ir(t.placement),E=Ni(t.placement),T=!E,C=Ld(S),w=o4(C),M=t.modifiersData.popperOffsets,O=t.rects.reference,D=t.rects.popper,A=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,$=typeof A=="number"?{mainAxis:A,altAxis:A}:Object.assign({mainAxis:0,altAxis:0},A),N=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(M){if(a){var F,j=C==="y"?zt:Wt,I=C==="y"?ar:sr,B=C==="y"?"height":"width",G=M[C],q=G+x[j],U=G-x[I],z=g?-D[B]/2:0,H=E===Ri?O[B]:D[B],ee=E===Ri?-D[B]:-O[B],X=t.elements.arrow,K=g&&X?Dd(X):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:ib(),ne=J[j],le=J[I],se=yo(0,O[B],K[B]),ue=T?O[B]/2-z-se-ne-$.mainAxis:H-se-ne-$.mainAxis,fe=T?-O[B]/2+z+se+le+$.mainAxis:ee+se+le+$.mainAxis,pe=t.elements.arrow&&na(t.elements.arrow),ae=pe?C==="y"?pe.clientTop||0:pe.clientLeft||0:0,ve=(F=N==null?void 0:N[C])!=null?F:0,de=G+ue-ve-ae,_e=G+fe-ve,we=yo(g?ls(q,de):q,G,g?Wn(U,_e):U);M[C]=we,k[C]=we-G}if(u){var Ee,Ce=C==="x"?zt:Wt,ct=C==="x"?ar:sr,Ve=M[w],tt=w==="y"?"height":"width",dt=Ve+x[Ce],Ie=Ve-x[ct],Ue=[zt,Wt].indexOf(S)!==-1,St=(Ee=N==null?void 0:N[w])!=null?Ee:0,ft=Ue?dt:Ve-O[tt]-D[tt]-St+$.altAxis,Mt=Ue?Ve+O[tt]+D[tt]-St-$.altAxis:Ie,dr=g&&Ue?OF(ft,Ve,Mt):yo(g?ft:dt,Ve,g?Mt:Ie);M[w]=dr,k[w]=dr-Ve}t.modifiersData[n]=k}}const s4={name:"preventOverflow",enabled:!0,phase:"main",fn:a4,requiresIfExists:["offset"]};function l4(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function u4(e){return e===Gt(e)||!ir(e)?Ad(e):l4(e)}function c4(e){var t=e.getBoundingClientRect(),r=Oi(t.width)/e.offsetWidth||1,n=Oi(t.height)/e.offsetHeight||1;return r!==1||n!==1}function d4(e,t,r){r===void 0&&(r=!1);var n=ir(t),o=ir(t)&&c4(t),a=Cn(t),l=ki(e,o,r),u={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(n||!n&&!r)&&(($r(t)!=="body"||$d(a))&&(u=u4(t)),ir(t)?(c=ki(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Id(a))),{x:l.left+u.scrollLeft-c.x,y:l.top+u.scrollTop-c.y,width:l.width,height:l.height}}function f4(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(u){if(!r.has(u)){var c=t.get(u);c&&o(c)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function h4(e){var t=f4(e);return TF.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function p4(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function m4(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var qp={placement:"bottom",modifiers:[],strategy:"absolute"};function Gp(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function v4(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?qp:o;return function(u,c,f){f===void 0&&(f=a);var p={placement:"bottom",orderedModifiers:[],options:Object.assign({},qp,a),modifiersData:{},elements:{reference:u,popper:c},attributes:{},styles:{}},m=[],h=!1,g={state:p,setOptions:function(S){var E=typeof S=="function"?S(p.options):S;y(),p.options=Object.assign({},a,p.options,E),p.scrollParents={reference:Bn(u)?bo(u):u.contextElement?bo(u.contextElement):[],popper:bo(c)};var T=h4(m4([].concat(n,p.options.modifiers)));return p.orderedModifiers=T.filter(function(C){return C.enabled}),_(),g.update()},forceUpdate:function(){if(!h){var S=p.elements,E=S.reference,T=S.popper;if(Gp(E,T)){p.rects={reference:d4(E,na(T),p.options.strategy==="fixed"),popper:Dd(T)},p.reset=!1,p.placement=p.options.placement,p.orderedModifiers.forEach(function($){return p.modifiersData[$.name]=Object.assign({},$.data)});for(var C=0;C<p.orderedModifiers.length;C++){if(p.reset===!0){p.reset=!1,C=-1;continue}var w=p.orderedModifiers[C],M=w.fn,O=w.options,D=O===void 0?{}:O,A=w.name;typeof M=="function"&&(p=M({state:p,options:D,name:A,instance:g})||p)}}}},update:p4(function(){return new Promise(function(x){g.forceUpdate(),x(p)})}),destroy:function(){y(),h=!0}};if(!Gp(u,c))return g;g.setOptions(f).then(function(x){!h&&f.onFirstUpdate&&f.onFirstUpdate(x)});function _(){p.orderedModifiers.forEach(function(x){var S=x.name,E=x.options,T=E===void 0?{}:E,C=x.effect;if(typeof C=="function"){var w=C({state:p,name:S,instance:g,options:T}),M=function(){};m.push(w||M)}})}function y(){m.forEach(function(x){return x()}),m=[]}return g}}var g4=[FF,i4,zF,MF,r4,KF,s4,LF,JF],y4=v4({defaultModifiers:g4});function b4(e){return typeof e=="function"?e():e}const Ao=Z.forwardRef(function(t,r){const{children:n,container:o,disablePortal:a=!1}=t,[l,u]=Z.useState(null),c=At(Z.isValidElement(n)?n.ref:null,r);if(jn(()=>{a||u(b4(o)||document.body)},[o,a]),jn(()=>{if(l&&!a)return nc(r,l),()=>{nc(r,null)}},[r,l,a]),a){if(Z.isValidElement(n)){const f={ref:c};return Z.cloneElement(n,f)}return V.jsx(Z.Fragment,{children:n})}return V.jsx(Z.Fragment,{children:l&&g0.createPortal(n,l)})});process.env.NODE_ENV!=="production"&&(Ao.propTypes={children:v.node,container:v.oneOfType([Xr,v.func]),disablePortal:v.bool});process.env.NODE_ENV!=="production"&&(Ao.propTypes=gd(Ao.propTypes));const ub="base";function _4(e){return`${ub}--${e}`}function w4(e,t){return`${ub}-${e}-${t}`}function cb(e,t){const r=Tg[t];return r?_4(r):w4(e,t)}function x4(e,t){const r={};return t.forEach(n=>{r[n]=cb(e,n)}),r}const db="Popper";function C4(e){return cb(db,e)}x4(db,["root"]);const T4=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],E4=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function S4(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 us(e){return typeof e=="function"?e():e}function Gs(e){return e.nodeType!==void 0}function M4(e){return!Gs(e)}const P4=()=>ot({root:["root"]},sF(C4)),R4={},O4=Z.forwardRef(function(t,r){var n;const{anchorEl:o,children:a,direction:l,disablePortal:u,modifiers:c,open:f,placement:p,popperOptions:m,popperRef:h,slotProps:g={},slots:_={},TransitionProps:y}=t,x=Se(t,T4),S=Z.useRef(null),E=At(S,r),T=Z.useRef(null),C=At(T,h),w=Z.useRef(C);jn(()=>{w.current=C},[C]),Z.useImperativeHandle(h,()=>T.current,[]);const M=S4(p,l),[O,D]=Z.useState(M),[A,$]=Z.useState(us(o));Z.useEffect(()=>{T.current&&T.current.forceUpdate()}),Z.useEffect(()=>{o&&$(us(o))},[o]),jn(()=>{if(!A||!f)return;const I=q=>{D(q.placement)};if(process.env.NODE_ENV!=="production"&&A&&Gs(A)&&A.nodeType===1){const q=A.getBoundingClientRect();process.env.NODE_ENV!=="test"&&q.top===0&&q.left===0&&q.right===0&&q.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(`
|
|
261
|
+
`))}let B=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:q})=>{I(q)}}];c!=null&&(B=B.concat(c)),m&&m.modifiers!=null&&(B=B.concat(m.modifiers));const G=y4(A,S.current,te({placement:M},m,{modifiers:B}));return w.current(G),()=>{G.destroy(),w.current(null)}},[A,u,c,f,m,M]);const N={placement:O};y!==null&&(N.TransitionProps=y);const k=P4(),F=(n=_.root)!=null?n:"div",j=vn({elementType:F,externalSlotProps:g.root,externalForwardedProps:x,additionalProps:{role:"tooltip",ref:E},ownerState:t,className:k.root});return V.jsx(F,te({},j,{children:typeof a=="function"?a(N):a}))}),fb=Z.forwardRef(function(t,r){const{anchorEl:n,children:o,container:a,direction:l="ltr",disablePortal:u=!1,keepMounted:c=!1,modifiers:f,open:p,placement:m="bottom",popperOptions:h=R4,popperRef:g,style:_,transition:y=!1,slotProps:x={},slots:S={}}=t,E=Se(t,E4),[T,C]=Z.useState(!0),w=()=>{C(!1)},M=()=>{C(!0)};if(!c&&!p&&(!y||T))return null;let O;if(a)O=a;else if(n){const $=us(n);O=$&&Gs($)?Lt($).body:Lt(null).body}const D=!p&&c&&(!y||T)?"none":void 0,A=y?{in:p,onEnter:w,onExited:M}:void 0;return V.jsx(Ao,{disablePortal:u,container:O,children:V.jsx(O4,te({anchorEl:n,direction:l,disablePortal:u,modifiers:f,ref:r,open:y?!T:p,placement:m,popperOptions:h,popperRef:g,slotProps:x,slots:S},E,{style:te({position:"fixed",top:0,left:0,display:D},_),TransitionProps:A,children:o}))})});process.env.NODE_ENV!=="production"&&(fb.propTypes={anchorEl:bn(v.oneOfType([Xr,v.object,v.func]),e=>{if(e.open){const t=us(e.anchorEl);if(t&&Gs(t)&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
262
|
+
`))}else if(!t||typeof t.getBoundingClientRect!="function"||M4(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(`
|
|
263
|
+
`))}return null}),children:v.oneOfType([v.node,v.func]),container:v.oneOfType([Xr,v.func]),direction:v.oneOf(["ltr","rtl"]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.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:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.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:v.oneOf(["absolute","fixed"])}),popperRef:Yo,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),transition:v.bool});var zd={};Object.defineProperty(zd,"__esModule",{value:!0});var hb=zd.default=void 0,k4=D4(Q),N4=Dg;function pb(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,r=new WeakMap;return(pb=function(n){return n?r:t})(e)}function D4(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var r=pb(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=o?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(n,a,l):n[a]=e[a]}return n.default=e,r&&r.set(e,n),n}function L4(e){return Object.keys(e).length===0}function A4(e=null){const t=k4.useContext(N4.ThemeContext);return!t||L4(t)?e:t}hb=zd.default=A4;const Yp=e=>{let t;return e<1?t=5.11916*Vt(e,2):t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},I4=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],$4=ke(fb,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ia=Z.forwardRef(function(t,r){var n;const o=hb(),a=et({props:t,name:"MuiPopper"}),{anchorEl:l,component:u,components:c,componentsProps:f,container:p,disablePortal:m,keepMounted:h,modifiers:g,open:_,placement:y,popperOptions:x,popperRef:S,transition:E,slots:T,slotProps:C}=a,w=Se(a,I4),M=(n=T==null?void 0:T.root)!=null?n:c==null?void 0:c.Root,O=te({anchorEl:l,container:p,disablePortal:m,keepMounted:h,modifiers:g,open:_,placement:y,popperOptions:x,popperRef:S,transition:E},w);return V.jsx($4,te({as:u,direction:o==null?void 0:o.direction,slots:{root:M},slotProps:C!=null?C:f},O,{ref:r}))});process.env.NODE_ENV!=="production"&&(ia.propTypes={anchorEl:v.oneOfType([Xr,v.object,v.func]),children:v.oneOfType([v.node,v.func]),component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Xr,v.func]),disablePortal:v.bool,keepMounted:v.bool,modifiers:v.arrayOf(v.shape({data:v.object,effect:v.func,enabled:v.bool,fn:v.func,name:v.any,options:v.object,phase:v.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:v.arrayOf(v.string),requiresIfExists:v.arrayOf(v.string)})),open:v.bool.isRequired,placement:v.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:v.shape({modifiers:v.array,onFirstUpdate:v.func,placement:v.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:v.oneOf(["absolute","fixed"])}),popperRef:Yo,slotProps:v.shape({root:v.oneOfType([v.func,v.object])}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transition:v.bool});function z4(e){return Je("MuiTooltip",e)}const hn=Ze("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),W4=["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 F4(e){return Math.round(e*1e5)/1e5}const j4=e=>{const{classes:t,disableInteractive:r,arrow:n,touch:o,placement:a}=e,l={popper:["popper",!r&&"popperInteractive",n&&"popperArrow"],tooltip:["tooltip",n&&"tooltipArrow",o&&"touch",`tooltipPlacement${De(a.split("-")[0])}`],arrow:["arrow"]};return ot(l,z4,t)},B4=ke(ia,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.popper,!r.disableInteractive&&t.popperInteractive,r.arrow&&t.popperArrow,!r.open&&t.popperClose]}})(({theme:e,ownerState:t,open:r})=>te({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!r&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${hn.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${hn.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${hn.arrow}`]:te({},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"] .${hn.arrow}`]:te({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),H4=ke("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.tooltip,r.touch&&t.touch,r.arrow&&t.tooltipArrow,t[`tooltipPlacement${De(r.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>te({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:it(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:`${F4(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${hn.popper}[data-popper-placement*="left"] &`]:te({transformOrigin:"right center"},t.isRtl?te({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):te({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${hn.popper}[data-popper-placement*="right"] &`]:te({transformOrigin:"left center"},t.isRtl?te({marginRight:"14px"},t.touch&&{marginRight:"24px"}):te({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${hn.popper}[data-popper-placement*="top"] &`]:te({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${hn.popper}[data-popper-placement*="bottom"] &`]:te({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),V4=ke("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:it(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Ia=!1;const Xp=new Ko;let so={x:0,y:0};function $a(e,t){return(r,...n)=>{t&&t(r,...n),e(r,...n)}}const Ys=Z.forwardRef(function(t,r){var n,o,a,l,u,c,f,p,m,h,g,_,y,x,S,E,T,C,w;const M=et({props:t,name:"MuiTooltip"}),{arrow:O=!1,children:D,components:A={},componentsProps:$={},describeChild:N=!1,disableFocusListener:k=!1,disableHoverListener:F=!1,disableInteractive:j=!1,disableTouchListener:I=!1,enterDelay:B=100,enterNextDelay:G=0,enterTouchDelay:q=700,followCursor:U=!1,id:z,leaveDelay:H=0,leaveTouchDelay:ee=1500,onClose:X,onOpen:K,open:J,placement:ne="bottom",PopperComponent:le,PopperProps:se={},slotProps:ue={},slots:fe={},title:pe,TransitionComponent:ae=No,TransitionProps:ve}=M,de=Se(M,W4),_e=Z.isValidElement(D)?D:V.jsx("span",{children:D}),we=ta(),Ee=pd(),[Ce,ct]=Z.useState(),[Ve,tt]=Z.useState(null),dt=Z.useRef(!1),Ie=j||U,Ue=wi(),St=wi(),ft=wi(),Mt=wi(),[dr,Te]=hd({controlled:J,default:!1,name:"Tooltip",state:"open"});let yt=dr;if(process.env.NODE_ENV!=="production"){const{current:Pe}=Z.useRef(J!==void 0);Z.useEffect(()=>{Ce&&Ce.disabled&&!Pe&&pe!==""&&Ce.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(`
|
|
264
|
+
`))},[pe,Ce,Pe])}const xr=Fg(z),Yt=Z.useRef(),Cr=Gr(()=>{Yt.current!==void 0&&(document.body.style.WebkitUserSelect=Yt.current,Yt.current=void 0),Mt.clear()});Z.useEffect(()=>Cr,[Cr]);const Kr=Pe=>{Xp.clear(),Ia=!0,Te(!0),K&&!yt&&K(Pe)},fr=Gr(Pe=>{Xp.start(800+H,()=>{Ia=!1}),Te(!1),X&&yt&&X(Pe),Ue.start(we.transitions.duration.shortest,()=>{dt.current=!1})}),Fr=Pe=>{dt.current&&Pe.type!=="touchstart"||(Ce&&Ce.removeAttribute("title"),St.clear(),ft.clear(),B||Ia&&G?St.start(Ia?G:B,()=>{Kr(Pe)}):Kr(Pe))},Ht=Pe=>{St.clear(),ft.start(H,()=>{fr(Pe)})},{isFocusVisibleRef:Tn,onBlur:jr,onFocus:Qr,ref:En}=$g(),[,hr]=Z.useState(!1),Sn=Pe=>{jr(Pe),Tn.current===!1&&(hr(!1),Ht(Pe))},Mn=Pe=>{Ce||ct(Pe.currentTarget),Qr(Pe),Tn.current===!0&&(hr(!0),Fr(Pe))},Jr=Pe=>{dt.current=!0;const Rt=_e.props;Rt.onTouchStart&&Rt.onTouchStart(Pe)},Xn=Pe=>{Jr(Pe),ft.clear(),Ue.clear(),Cr(),Yt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Mt.start(q,()=>{document.body.style.WebkitUserSelect=Yt.current,Fr(Pe)})},Zn=Pe=>{_e.props.onTouchEnd&&_e.props.onTouchEnd(Pe),Cr(),ft.start(ee,()=>{fr(Pe)})};Z.useEffect(()=>{if(!yt)return;function Pe(Rt){(Rt.key==="Escape"||Rt.key==="Esc")&&fr(Rt)}return document.addEventListener("keydown",Pe),()=>{document.removeEventListener("keydown",Pe)}},[fr,yt]);const Bi=At(_e.ref,En,ct,r);!pe&&pe!==0&&(yt=!1);const Xt=Z.useRef(),Kn=Pe=>{const Rt=_e.props;Rt.onMouseMove&&Rt.onMouseMove(Pe),so={x:Pe.clientX,y:Pe.clientY},Xt.current&&Xt.current.update()},Br={},en=typeof pe=="string";N?(Br.title=!yt&&en&&!F?pe:null,Br["aria-describedby"]=yt?xr:null):(Br["aria-label"]=en?pe:null,Br["aria-labelledby"]=yt&&!en?xr:null);const _t=te({},Br,de,_e.props,{className:Oe(de.className,_e.props.className),onTouchStart:Jr,ref:Bi},U?{onMouseMove:Kn}:{});process.env.NODE_ENV!=="production"&&(_t["data-mui-internal-clone-element"]=!0,Z.useEffect(()=>{Ce&&!Ce.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(`
|
|
265
|
+
`))},[Ce]));const vt={};I||(_t.onTouchStart=Xn,_t.onTouchEnd=Zn),F||(_t.onMouseOver=$a(Fr,_t.onMouseOver),_t.onMouseLeave=$a(Ht,_t.onMouseLeave),Ie||(vt.onMouseOver=Fr,vt.onMouseLeave=Ht)),k||(_t.onFocus=$a(Mn,_t.onFocus),_t.onBlur=$a(Sn,_t.onBlur),Ie||(vt.onFocus=Mn,vt.onBlur=Sn)),process.env.NODE_ENV!=="production"&&_e.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${_e.props.title}\` or the Tooltip component.`].join(`
|
|
266
|
+
`));const ge=Z.useMemo(()=>{var Pe;let Rt=[{name:"arrow",enabled:!!Ve,options:{element:Ve,padding:4}}];return(Pe=se.popperOptions)!=null&&Pe.modifiers&&(Rt=Rt.concat(se.popperOptions.modifiers)),te({},se.popperOptions,{modifiers:Rt})},[Ve,se]),pr=te({},M,{isRtl:Ee,arrow:O,disableInteractive:Ie,placement:ne,PopperComponentProp:le,touch:dt.current}),tn=j4(pr),Pn=(n=(o=fe.popper)!=null?o:A.Popper)!=null?n:B4,rn=(a=(l=(u=fe.transition)!=null?u:A.Transition)!=null?l:ae)!=null?a:No,nn=(c=(f=fe.tooltip)!=null?f:A.Tooltip)!=null?c:H4,on=(p=(m=fe.arrow)!=null?m:A.Arrow)!=null?p:V4,mr=mo(Pn,te({},se,(h=ue.popper)!=null?h:$.popper,{className:Oe(tn.popper,se==null?void 0:se.className,(g=(_=ue.popper)!=null?_:$.popper)==null?void 0:g.className)}),pr),an=mo(rn,te({},ve,(y=ue.transition)!=null?y:$.transition),pr),Js=mo(nn,te({},(x=ue.tooltip)!=null?x:$.tooltip,{className:Oe(tn.tooltip,(S=(E=ue.tooltip)!=null?E:$.tooltip)==null?void 0:S.className)}),pr),el=mo(on,te({},(T=ue.arrow)!=null?T:$.arrow,{className:Oe(tn.arrow,(C=(w=ue.arrow)!=null?w:$.arrow)==null?void 0:C.className)}),pr);return V.jsxs(Z.Fragment,{children:[Z.cloneElement(_e,_t),V.jsx(Pn,te({as:le!=null?le:ia,placement:ne,anchorEl:U?{getBoundingClientRect:()=>({top:so.y,left:so.x,right:so.x,bottom:so.y,width:0,height:0})}:Ce,popperRef:Xt,open:Ce?yt:!1,id:xr,transition:!0},vt,mr,{popperOptions:ge,children:({TransitionProps:Pe})=>V.jsx(rn,te({timeout:we.transitions.duration.shorter},Pe,an,{children:V.jsxs(nn,te({},Js,{children:[pe,O?V.jsx(on,te({},el,{ref:tt})):null]}))}))}))]})});process.env.NODE_ENV!=="production"&&(Ys.propTypes={arrow:v.bool,children:qn.isRequired,classes:v.object,className:v.string,components:v.shape({Arrow:v.elementType,Popper:v.elementType,Tooltip:v.elementType,Transition:v.elementType}),componentsProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),describeChild:v.bool,disableFocusListener:v.bool,disableHoverListener:v.bool,disableInteractive:v.bool,disableTouchListener:v.bool,enterDelay:v.number,enterNextDelay:v.number,enterTouchDelay:v.number,followCursor:v.bool,id:v.string,leaveDelay:v.number,leaveTouchDelay:v.number,onClose:v.func,onOpen:v.func,open:v.bool,placement:v.oneOf(["bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:v.elementType,PopperProps:v.object,slotProps:v.shape({arrow:v.object,popper:v.object,tooltip:v.object,transition:v.object}),slots:v.shape({arrow:v.elementType,popper:v.elementType,tooltip:v.elementType,transition:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),title:v.node,TransitionComponent:v.elementType,TransitionProps:v.object});const U4=e=>R.isNumber(e)?"right":"left",Zp=({displayValue:e,width:t,padding:r,ellipsizedLength:n,isHtml:o})=>{const a=e.length>n;return V.jsx("div",{className:po.tableCellContent,style:{maxWidth:`${t-r}px`},children:o?V.jsx("div",{dangerouslySetInnerHTML:{__html:e}}):a?V.jsx(Ys,{title:e,children:V.jsx("div",{children:e})}):V.jsx("div",{children:e})})},q4=({dataTable:e,dataOptions:t,height:r,width:n,customStyles:o,themeSettings:a,onSortUpdate:l})=>{var E,T,C;const u=o&&o.showFieldTypeIcon!==void 0?o.showFieldTypeIcon:!0,c=Gy+(u?Yy:0),f=(o==null?void 0:o.paddingVertical)||Ap,p=(o==null?void 0:o.paddingHorizontal)||Ap,m=((E=o==null?void 0:o.columns)==null?void 0:E.width)==="auto"?(n-p*2-1)/t.columns.length:void 0,h=Q.useMemo(()=>t.columns.map(w=>({isHtml:!!w.isHtml,width:m})),[t.columns,m]),[g,_]=Q.useState(((T=document.fonts)==null?void 0:T.status)==="loaded"),y=(C=a.typography)==null?void 0:C.fontFamily,x=Q.useMemo(()=>iF(e,u,h,y),[e,u,h,y,g]);Q.useEffect(()=>{var w;(w=document.fonts)==null||w.ready.then(()=>{_(!0)}).catch(M=>{console.warn("Failed to observe font loading",M)})},[]);const S=Q.useMemo(()=>e.columns.map((w,M)=>{var $;const O=x[M],D=t.columns[M],A=$p({isHeaderCell:!0,themeSettings:a,customStyles:o});return O?V.jsx(La.Column,{maxWidth:uc,minWidth:uc,allowCellsRecycling:!0,width:O,header:V.jsx(La.Cell,{className:ko(po.tableHeader),style:A,children:V.jsx(QW,{column:w,onClick:l,isSelected:!!Math.abs(w.direction),showFieldTypeIcon:u,sortIcon:(o==null?void 0:o.sortIcon)||"standard",children:Zp({displayValue:($=D.title)!=null?$:D.name,width:O,padding:c,ellipsizedLength:rF})})}),cell:F=>{var j=F,{rowIndex:N}=j,k=ai(j,["rowIndex"]);var I;return V.jsx(La.Cell,he(ie({className:ko(po.tableCell),style:$p({colIndex:M,rowIndex:N,themeSettings:a,customStyles:o})},k),{children:Zp({displayValue:e.rows[N][M].displayValue,width:O,padding:Xy,ellipsizedLength:nF,isHtml:(I=D.isHtml)!=null?I:!1})}))},align:U4(w.type)},`col${M}`):null}),[e,x,a,o,l,u,t,c]);return Q.useMemo(()=>V.jsx("div",{className:po.tableWrapper,style:{padding:`${f}px ${p}px`},children:V.jsx(La.Table,{className:po.table,rowHeight:(o==null?void 0:o.rowHeight)||eF,rowsCount:e.rows.length,width:n-p*2,height:r-f*2,headerHeight:(o==null?void 0:o.headerHeight)||JW,children:S})}),[S,o,e,r,p,f,n])},G4="_component_1rw9b_1",Y4={component:G4},X4=(e,t)=>{if(!e.columns.some(l=>R.isNumber(l.type)))return e;const r=e.columns,o=e.rows.map(l=>l.map((u,c)=>{const f=r[c].type,p=R.getCompleteNumberFormatConfig(t.columns[c].numberFormatConfig);if(R.isNumber(f)){const m=R.createCompareValue(u.displayValue,f);return{displayValue:R.applyFormatPlainText(p,m.value),compareValue:m}}else return u}));return{columns:r,rows:o}},Z4=({dataTable:e,dataOptions:t,designOptions:r={},onSortUpdate:n,themeSettings:o,width:a=400,height:l=500})=>{const u=Q.useRef(null),c=Q.useRef(e),f=Q.useMemo(()=>{let m=e;const h=e.columns.find(g=>g.direction!==0);return h&&(m=R.orderBy(e,[h])),X4(m,t)},[e,t]);Q.useLayoutEffect(()=>{c.current=e},[e]);const p=Q.useMemo(()=>ie({sortIcon:"caret",showFieldTypeIcon:!1},r),[r]);return V.jsx("div",{className:Y4.component,ref:u,children:V.jsx(q4,{dataTable:f,dataOptions:t,onSortUpdate:n,height:l,width:a,customStyles:p,themeSettings:o})})},K4=e=>({"& .MuiPaginationItem-circular.Mui-selected":{color:e.chart.textColor},"& .MuiPaginationItem-circular":{color:e.chart.secondaryTextColor,fontFamily:e.typography.fontFamily}});var Q4=Object.prototype,J4=Q4.hasOwnProperty;function ej(e,t){return e!=null&&J4.call(e,t)}var tj=ej,rj=tj,nj=R._hasPath;function ij(e,t){return e!=null&&nj(e,t,rj)}var oj=ij;const aj=R.getDefaultExportFromCjs(oj);function sj(e,t){for(const r of t)aj(e,r)&&console.warn(`Prop '${r}' has been deprecated. Please refer to the documentation at https://sisense.dev/guides/sdk/ for the updated prop and use that instead.`)}const lj=e=>(sj(e,["headersColor","alternatingRowsColor","alternatingColumnsColor"]),{paddingVertical:e.paddingVertical,paddingHorizontal:e.paddingHorizontal,header:ie(ie({},e.headersColor?{color:{enabled:e.headersColor}}:null),e.header),rows:ie(ie({},e.alternatingRowsColor?{alternatingColor:{enabled:e.alternatingRowsColor}}:null),e.rows),columns:ie(ie({},e.alternatingColumnsColor?{alternatingColor:{enabled:e.alternatingColumnsColor}}:null),e.columns)}),uj=25,cj=10,mb=({dataSet:e,dataOptions:t,styleOptions:r={},filters:n})=>{const{rowsPerPage:o=uj,width:a,height:l}=r,{themeSettings:u}=jt(),[c,f]=Q.useState(0),{filters:p,relations:m}=R.getFilterListAndRelations(n),[h,g]=Q.useState(1),_=Q.useRef(null),y=Q.useMemo(()=>ag(t),[t]),x=Q.useMemo(()=>rg(y.columns.filter(R.isValue)),[y]),S=Q.useMemo(()=>lj(r),[r]),[E,T]=Q.useState(y),[C,w]=Q.useState(e),[M,O]=a$({dataSet:C,dataOptions:E,filters:p,filterRelations:m,count:o*cj,offset:c}),D=d$({data:M,innerDataOptions:O,dataColumnNamesMapping:x,needToAggregate:!Fn(C)});Q.useEffect(()=>{T(y),w(e),g(1),f(0)},[e,y]);const A=Q.useCallback(k=>{if(!M)return;Math.floor(M.rows.length/o)===k&&f(M.rows.length),g(k)},[M,o]),$=Q.useCallback(k=>{g(1),f(0),E&&T(u$(E,k))},[E]),N=Q.useMemo(()=>D?{columns:D.columns,rows:D.rows.slice((h-1)*o,h*o)}:void 0,[D,h,o]);return O?V.jsx(Vo,{defaultSize:ed("table"),size:{width:a,height:l},children:k=>{if(!D||!N)return V.jsx(Cs,{themeSettings:u});if(R.isDataTableEmpty(D))return V.jsx(Jc,{iconType:"table"});const F=Math.ceil(D.rows.length/o),j=F>1?32:0;return V.jsxs("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",backgroundColor:u.chart.backgroundColor},"aria-label":"table-root",children:[V.jsx(Z4,{dataTable:N,dataOptions:O,designOptions:S,themeSettings:u,width:k.width,height:k.height-j,onSortUpdate:$}),F>1&&V.jsx(qg,{ref:_,page:h,count:F,onChange:(I,B)=>A(B),sx:K4(u)})]})}}):null},vb=e=>{const{dataSet:t}=e;return!!t&&typeof t!="string"&&"rows"in t&&"columns"in t},dj=e=>{if(!Fn(e.dataSet))throw"error, advanced charts only works against a data model";const t=R.cloneDeep(e.dataOptions),r=t.value.filter(o=>(o==null?void 0:o.trend)!==void 0).map(o=>R.trend(o.column,`${R.TREND_PREFIX}_${o.column.name}`,o.trend));t.value.push(...r);const n=t.value.filter(o=>(o==null?void 0:o.forecast)!==void 0).map(o=>R.forecast(o.column,`${R.FORECAST_PREFIX}_${o.column.name}`,o.forecast));return t.value.push(...n),V.jsx(lg,he(ie({},e),{dataOptions:t}))},gb=Un({componentName:"Chart",shouldSkipSisenseContextWaiting:vb,customContextErrorMessageKey:"errors.chartNoSisenseContext"})(e=>{if(fj(e))return V.jsx(mb,ie({},e));if(hj(e))return V.jsx(dj,ie({},e));if(yb(e))return V.jsx(lg,ie({},e));throw new R.TranslatableError("errors.chartInvalidProps")});function fj(e){return e.chartType==="table"&&"columns"in e.dataOptions}function yb(e){return e.chartType!=="table"}function hj(e){return!yb(e)||!R.isCartesian(e.chartType)?!1:e.dataOptions.value.some(r=>(r==null?void 0:r.forecast)!==void 0||(r==null?void 0:r.trend)!==void 0)}function bb(e,t,r){const n=Qc(e);return typeof e!="object"&&e===n?!1:n==null||(t?t.some(a=>!Pi(n[a],e[a])):!Pi(n,e))?!0:r?r(e,n):!1}const _b="sdkHookInit",pj=(e,t,r,n)=>{if(!r)return;_v(_b,{packageName:t,packageVersion:"1.17.0",hookName:e},r.httpClient).finally(n)};function mj(e){const{tracking:t}=gt(),{trackEvent:r}=Yc(),n=Q.useRef(!1);Q.useEffect(()=>{if(t&&!n.current){const o={packageName:t.packageName||"sdk-ui",packageVersion:"1.17.0",hookName:e};r(_b,o,!t.enabled).finally(()=>n.current=!0)}},[t,e,r])}const vj=e=>t=>(...r)=>(mj(e),t(...r));function gj(e){return yj(e.dataSet)}function yj(e){return!!e&&typeof e!="string"&&"rows"in e&&"columns"in e}const wb=Un({componentName:"Table",shouldSkipSisenseContextWaiting:gj})(e=>V.jsx(mb,ie({},e))),bj=25,_j=10;var xb=(e=>(e.None="",e.Large="30px",e.Medium="20px",e.Small="10px",e))(xb||{}),hc=(e=>(e.None="",e.Light="0.15",e.Medium="0.3",e.Dark="0.7",e))(hc||{}),pc=(e=>(e.None="",e.Large="3px 12px",e.Medium="2px 8px",e.Small="1px 4px",e))(pc||{}),Cb=(e=>(e.None="",e.Large="15px",e.Medium="10px",e.Small="5px",e))(Cb||{});const wj=(e,t)=>{const r=R.get(e,"shadow",t.widget.shadow),n=R.get(e,"spaceAround",t.widget.spaceAround);if(r==="None"||n==="None")return"none";if(r in hc&&n in pc){const o=hc[`${r}`];return`0px ${pc[`${n}`]} rgba(9, 9, 10, ${o})`}return"none"};function xj(e){return Je("MuiDivider",e)}const Kp=Ze("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cj=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Tj=e=>{const{absolute:t,children:r,classes:n,flexItem:o,light:a,orientation:l,textAlign:u,variant:c}=e;return ot({root:["root",t&&"absolute",c,a&&"light",l==="vertical"&&"vertical",o&&"flexItem",r&&"withChildren",r&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},xj,n)},Ej=ke("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.absolute&&t.absolute,t[r.variant],r.light&&t.light,r.orientation==="vertical"&&t.vertical,r.flexItem&&t.flexItem,r.children&&t.withChildren,r.children&&r.orientation==="vertical"&&t.withChildrenVertical,r.textAlign==="right"&&r.orientation!=="vertical"&&t.textAlignRight,r.textAlign==="left"&&r.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>te({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:it(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>te({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>te({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>te({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>te({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Sj=ke("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.wrapper,r.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>te({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),Di=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiDivider"}),{absolute:o=!1,children:a,className:l,component:u=a?"div":"hr",flexItem:c=!1,light:f=!1,orientation:p="horizontal",role:m=u!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=n,_=Se(n,Cj),y=te({},n,{absolute:o,component:u,flexItem:c,light:f,orientation:p,role:m,textAlign:h,variant:g}),x=Tj(y);return V.jsx(Ej,te({as:u,className:Oe(x.root,l),role:m,ref:r,ownerState:y},_,{children:a?V.jsx(Sj,{className:x.wrapper,ownerState:y,children:a}):null}))});Di.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Di.propTypes={absolute:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,flexItem:v.bool,light:v.bool,orientation:v.oneOf(["horizontal","vertical"]),role:v.string,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),textAlign:v.oneOf(["center","left","right"]),variant:v.oneOfType([v.oneOf(["fullWidth","inset","middle"]),v.string])});function Mj(e){return Je("MuiPaper",e)}Ze("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 Pj=["className","component","elevation","square","variant"],Rj=e=>{const{square:t,elevation:r,variant:n,classes:o}=e,a={root:["root",n,!t&&"rounded",n==="elevation"&&`elevation${r}`]};return ot(a,Mj,o)},Oj=ke("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],!r.square&&t.rounded,r.variant==="elevation"&&t[`elevation${r.elevation}`]]}})(({theme:e,ownerState:t})=>{var r;return te({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"&&te({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${it("#fff",Yp(t.elevation))}, ${it("#fff",Yp(t.elevation))})`},e.vars&&{backgroundImage:(r=e.vars.overlays)==null?void 0:r[t.elevation]}))}),Xs=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiPaper"}),{className:o,component:a="div",elevation:l=1,square:u=!1,variant:c="elevation"}=n,f=Se(n,Pj),p=te({},n,{component:a,elevation:l,square:u,variant:c}),m=Rj(p);return process.env.NODE_ENV!=="production"&&ta().shadows[l]===void 0&&console.error([`MUI: The elevation provided <Paper elevation={${l}}> is not available in the theme.`,`Please make sure that \`theme.shadows[${l}]\` is defined.`].join(`
|
|
267
|
+
`)),V.jsx(Oj,te({as:a,ownerState:p,className:Oe(m.root,o),ref:r},f))});process.env.NODE_ENV!=="production"&&(Xs.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,elevation:bn(Rr,e=>{const{elevation:t,variant:r}=e;return t>0&&r==="outlined"?new Error(`MUI: Combining \`elevation={${t}}\` with \`variant="${r}"\` has no effect. Either use \`elevation={0}\` or use a different \`variant\`.`):null}),square:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["elevation","outlined"]),v.string])});function kj(e){return Je("MuiCard",e)}Ze("MuiCard",["root"]);const Nj=["className","raised"],Dj=e=>{const{classes:t}=e;return ot({root:["root"]},kj,t)},Lj=ke(Xs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Tb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiCard"}),{className:o,raised:a=!1}=n,l=Se(n,Nj),u=te({},n,{raised:a}),c=Dj(u);return V.jsx(Lj,te({className:Oe(c.root,o),elevation:a?8:void 0,ref:r,ownerState:u},l))});process.env.NODE_ENV!=="production"&&(Tb.propTypes={children:v.node,classes:v.object,className:v.string,raised:bn(v.bool,e=>e.raised&&e.variant==="outlined"?new Error('MUI: Combining `raised={true}` with `variant="outlined"` has no effect.'):null),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Aj(e){return Je("MuiCardContent",e)}Ze("MuiCardContent",["root"]);const Ij=["className","component"],$j=e=>{const{classes:t}=e;return ot({root:["root"]},Aj,t)},zj=ke("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),Eb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiCardContent"}),{className:o,component:a="div"}=n,l=Se(n,Ij),u=te({},n,{component:a}),c=$j(u);return V.jsx(zj,te({as:a,className:Oe(c.root,o),ownerState:u,ref:r},l))});process.env.NODE_ENV!=="production"&&(Eb.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Wj(e){return Je("MuiIconButton",e)}const Fj=Ze("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),jj=["edge","children","className","color","disabled","disableFocusRipple","size"],Bj=e=>{const{classes:t,disabled:r,color:n,edge:o,size:a}=e,l={root:["root",r&&"disabled",n!=="default"&&`color${De(n)}`,o&&`edge${De(o)}`,`size${De(a)}`]};return ot(l,Wj,t)},Hj=ke(Gn,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],r.edge&&t[`edge${De(r.edge)}`],t[`size${De(r.size)}`]]}})(({theme:e,ownerState:t})=>te({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})`:it(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 r;const n=(r=(e.vars||e).palette)==null?void 0:r[t.color];return te({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&te({color:n==null?void 0:n.main},!t.disableRipple&&{"&:hover":te({},n&&{backgroundColor:e.vars?`rgba(${n.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(n.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)},{[`&.${Fj.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),Li=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiIconButton"}),{edge:o=!1,children:a,className:l,color:u="default",disabled:c=!1,disableFocusRipple:f=!1,size:p="medium"}=n,m=Se(n,jj),h=te({},n,{edge:o,color:u,disabled:c,disableFocusRipple:f,size:p}),g=Bj(h);return V.jsx(Hj,te({className:Oe(g.root,l),centerRipple:!0,focusRipple:!f,disabled:c,ref:r},m,{ownerState:h,children:a}))});process.env.NODE_ENV!=="production"&&(Li.propTypes={children:bn(v.node,e=>Z.Children.toArray(e.children).some(r=>Z.isValidElement(r)&&r.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(`
|
|
268
|
+
`)):null),classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","default","primary","secondary","error","info","success","warning"]),v.string]),disabled:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,edge:v.oneOf(["end","start",!1]),size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function Vj(e){const t=Lt(e);return t.body===e?Oo(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function _o(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Qp(e){return parseInt(Oo(e).getComputedStyle(e).paddingRight,10)||0}function Uj(e){const r=["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 r||n}function Jp(e,t,r,n,o){const a=[t,r,...n];[].forEach.call(e.children,l=>{const u=a.indexOf(l)===-1,c=!Uj(l);u&&c&&_o(l,o)})}function ru(e,t){let r=-1;return e.some((n,o)=>t(n)?(r=o,!0):!1),r}function qj(e,t){const r=[],n=e.container;if(!t.disableScrollLock){if(Vj(n)){const l=jg(Lt(n));r.push({value:n.style.paddingRight,property:"padding-right",el:n}),n.style.paddingRight=`${Qp(n)+l}px`;const u=Lt(n).querySelectorAll(".mui-fixed");[].forEach.call(u,c=>{r.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${Qp(c)+l}px`})}let a;if(n.parentNode instanceof DocumentFragment)a=Lt(n).body;else{const l=n.parentElement,u=Oo(n);a=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:n}r.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{r.forEach(({value:a,el:l,property:u})=>{a?l.style.setProperty(u,a):l.style.removeProperty(u)})}}function Gj(e){const t=[];return[].forEach.call(e.children,r=>{r.getAttribute("aria-hidden")==="true"&&t.push(r)}),t}class Yj{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,r){let n=this.modals.indexOf(t);if(n!==-1)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&_o(t.modalRef,!1);const o=Gj(r);Jp(r,t.mount,t.modalRef,o,!0);const a=ru(this.containers,l=>l.container===r);return a!==-1?(this.containers[a].modals.push(t),n):(this.containers.push({modals:[t],container:r,restore:null,hiddenSiblings:o}),n)}mount(t,r){const n=ru(this.containers,a=>a.modals.indexOf(t)!==-1),o=this.containers[n];o.restore||(o.restore=qj(o,r))}remove(t,r=!0){const n=this.modals.indexOf(t);if(n===-1)return n;const o=ru(this.containers,l=>l.modals.indexOf(t)!==-1),a=this.containers[o];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(n,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&_o(t.modalRef,r),Jp(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(o,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&_o(l.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function Xj(e){return typeof e=="function"?e():e}function Zj(e){return e?e.props.hasOwnProperty("in"):!1}const Kj=new Yj;function Qj(e){const{container:t,disableEscapeKeyDown:r=!1,disableScrollLock:n=!1,manager:o=Kj,closeAfterTransition:a=!1,onTransitionEnter:l,onTransitionExited:u,children:c,onClose:f,open:p,rootRef:m}=e,h=Z.useRef({}),g=Z.useRef(null),_=Z.useRef(null),y=At(_,m),[x,S]=Z.useState(!p),E=Zj(c);let T=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(T=!1);const C=()=>Lt(g.current),w=()=>(h.current.modalRef=_.current,h.current.mount=g.current,h.current),M=()=>{o.mount(w(),{disableScrollLock:n}),_.current&&(_.current.scrollTop=0)},O=Gr(()=>{const B=Xj(t)||C().body;o.add(w(),B),_.current&&M()}),D=Z.useCallback(()=>o.isTopModal(w()),[o]),A=Gr(B=>{g.current=B,B&&(p&&D()?M():_.current&&_o(_.current,T))}),$=Z.useCallback(()=>{o.remove(w(),T)},[T,o]);Z.useEffect(()=>()=>{$()},[$]),Z.useEffect(()=>{p?O():(!E||!a)&&$()},[p,$,E,a,O]);const N=B=>G=>{var q;(q=B.onKeyDown)==null||q.call(B,G),!(G.key!=="Escape"||G.which===229||!D())&&(r||(G.stopPropagation(),f&&f(G,"escapeKeyDown")))},k=B=>G=>{var q;(q=B.onClick)==null||q.call(B,G),G.target===G.currentTarget&&f&&f(G,"backdropClick")};return{getRootProps:(B={})=>{const G=Jy(e);delete G.onTransitionEnter,delete G.onTransitionExited;const q=te({},G,B);return te({role:"presentation"},q,{onKeyDown:N(q),ref:y})},getBackdropProps:(B={})=>{const G=B;return te({"aria-hidden":!0},G,{onClick:k(G),open:p})},getTransitionProps:()=>{const B=()=>{S(!1),l&&l()},G=()=>{S(!0),u&&u(),a&&$()};return{onEnter:yp(B,c==null?void 0:c.props.onEnter),onExited:yp(G,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:A,isTopModal:D,exited:x,hasTransition:E}}const Jj=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function eB(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 tB(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=n=>e.ownerDocument.querySelector(`input[type="radio"]${n}`);let r=t(`[name="${e.name}"]:checked`);return r||(r=t(`[name="${e.name}"]`)),r!==e}function rB(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||tB(e))}function nB(e){const t=[],r=[];return Array.from(e.querySelectorAll(Jj)).forEach((n,o)=>{const a=eB(n);a===-1||!rB(n)||(a===0?t.push(n):r.push({documentOrder:o,tabIndex:a,node:n}))}),r.sort((n,o)=>n.tabIndex===o.tabIndex?n.documentOrder-o.documentOrder:n.tabIndex-o.tabIndex).map(n=>n.node).concat(t)}function iB(){return!0}function cs(e){const{children:t,disableAutoFocus:r=!1,disableEnforceFocus:n=!1,disableRestoreFocus:o=!1,getTabbable:a=nB,isEnabled:l=iB,open:u}=e,c=Z.useRef(!1),f=Z.useRef(null),p=Z.useRef(null),m=Z.useRef(null),h=Z.useRef(null),g=Z.useRef(!1),_=Z.useRef(null),y=At(t.ref,_),x=Z.useRef(null);Z.useEffect(()=>{!u||!_.current||(g.current=!r)},[r,u]),Z.useEffect(()=>{if(!u||!_.current)return;const T=Lt(_.current);return _.current.contains(T.activeElement)||(_.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(`
|
|
269
|
+
`)),_.current.setAttribute("tabIndex","-1")),g.current&&_.current.focus()),()=>{o||(m.current&&m.current.focus&&(c.current=!0,m.current.focus()),m.current=null)}},[u]),Z.useEffect(()=>{if(!u||!_.current)return;const T=Lt(_.current),C=O=>{x.current=O,!(n||!l()||O.key!=="Tab")&&T.activeElement===_.current&&O.shiftKey&&(c.current=!0,p.current&&p.current.focus())},w=()=>{const O=_.current;if(O===null)return;if(!T.hasFocus()||!l()||c.current){c.current=!1;return}if(O.contains(T.activeElement)||n&&T.activeElement!==f.current&&T.activeElement!==p.current)return;if(T.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let D=[];if((T.activeElement===f.current||T.activeElement===p.current)&&(D=a(_.current)),D.length>0){var A,$;const N=!!((A=x.current)!=null&&A.shiftKey&&(($=x.current)==null?void 0:$.key)==="Tab"),k=D[0],F=D[D.length-1];typeof k!="string"&&typeof F!="string"&&(N?F.focus():k.focus())}else O.focus()};T.addEventListener("focusin",w),T.addEventListener("keydown",C,!0);const M=setInterval(()=>{T.activeElement&&T.activeElement.tagName==="BODY"&&w()},50);return()=>{clearInterval(M),T.removeEventListener("focusin",w),T.removeEventListener("keydown",C,!0)}},[r,n,o,l,u,a]);const S=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0,h.current=T.target;const C=t.props.onFocus;C&&C(T)},E=T=>{m.current===null&&(m.current=T.relatedTarget),g.current=!0};return V.jsxs(Z.Fragment,{children:[V.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:f,"data-testid":"sentinelStart"}),Z.cloneElement(t,{ref:y,onFocus:S}),V.jsx("div",{tabIndex:u?0:-1,onFocus:E,ref:p,"data-testid":"sentinelEnd"})]})}process.env.NODE_ENV!=="production"&&(cs.propTypes={children:qn,disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableRestoreFocus:v.bool,getTabbable:v.func,isEnabled:v.func,open:v.bool.isRequired});process.env.NODE_ENV!=="production"&&(cs.propTypes=gd(cs.propTypes));const oB=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],aB={entering:{opacity:1},entered:{opacity:1}},Wd=Z.forwardRef(function(t,r){const n=ta(),o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,easing:c,in:f,onEnter:p,onEntered:m,onEntering:h,onExit:g,onExited:_,onExiting:y,style:x,timeout:S=o,TransitionComponent:E=Wr}=t,T=Se(t,oB),C=Z.useRef(null),w=At(C,u.ref,r),M=j=>I=>{if(j){const B=C.current;I===void 0?j(B):j(B,I)}},O=M(h),D=M((j,I)=>{const B=ss({style:x,timeout:S,easing:c},{mode:"enter"});j.style.webkitTransition=n.transitions.create("opacity",B),j.style.transition=n.transitions.create("opacity",B),p&&p(j,I)}),A=M(m),$=M(y),N=M(j=>{const I=ss({style:x,timeout:S,easing:c},{mode:"exit"});j.style.webkitTransition=n.transitions.create("opacity",I),j.style.transition=n.transitions.create("opacity",I),g&&g(j)}),k=M(_),F=j=>{a&&a(C.current,j)};return V.jsx(E,te({appear:l,in:f,nodeRef:C,onEnter:D,onEntered:A,onEntering:O,onExit:N,onExited:k,onExiting:$,addEndListener:F,timeout:S},T,{children:(j,I)=>Z.cloneElement(u,te({style:te({opacity:0,visibility:j==="exited"&&!f?"hidden":void 0},aB[j],x,u.props.style),ref:w},I))}))});process.env.NODE_ENV!=="production"&&(Wd.propTypes={addEndListener:v.func,appear:v.bool,children:qn.isRequired,easing:v.oneOfType([v.shape({enter:v.string,exit:v.string}),v.string]),in:v.bool,onEnter:v.func,onEntered:v.func,onEntering:v.func,onExit:v.func,onExited:v.func,onExiting:v.func,style:v.object,timeout:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function sB(e){return Je("MuiBackdrop",e)}Ze("MuiBackdrop",["root","invisible"]);const lB=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],uB=e=>{const{classes:t,invisible:r}=e;return ot({root:["root",r&&"invisible"]},sB,t)},cB=ke("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.invisible&&t.invisible]}})(({ownerState:e})=>te({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"})),Fd=Z.forwardRef(function(t,r){var n,o,a;const l=et({props:t,name:"MuiBackdrop"}),{children:u,className:c,component:f="div",components:p={},componentsProps:m={},invisible:h=!1,open:g,slotProps:_={},slots:y={},TransitionComponent:x=Wd,transitionDuration:S}=l,E=Se(l,lB),T=te({},l,{component:f,invisible:h}),C=uB(T),w=(n=_.root)!=null?n:m.root;return V.jsx(x,te({in:g,timeout:S},E,{children:V.jsx(cB,te({"aria-hidden":!0},w,{as:(o=(a=y.root)!=null?a:p.Root)!=null?o:f,className:Oe(C.root,c,w==null?void 0:w.className),ownerState:te({},T,w==null?void 0:w.ownerState),classes:C,ref:r,children:u}))}))});process.env.NODE_ENV!=="production"&&(Fd.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,components:v.shape({Root:v.elementType}),componentsProps:v.shape({root:v.object}),invisible:v.bool,open:v.bool.isRequired,slotProps:v.shape({root:v.object}),slots:v.shape({root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})])});function dB(e){return Je("MuiModal",e)}Ze("MuiModal",["root","hidden","backdrop"]);const fB=["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"],hB=e=>{const{open:t,exited:r,classes:n}=e;return ot({root:["root",!t&&r&&"hidden"],backdrop:["backdrop"]},dB,n)},pB=ke("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.open&&r.exited&&t.hidden]}})(({theme:e,ownerState:t})=>te({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),mB=ke(Fd,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),jd=Z.forwardRef(function(t,r){var n,o,a,l,u,c;const f=et({name:"MuiModal",props:t}),{BackdropComponent:p=mB,BackdropProps:m,className:h,closeAfterTransition:g=!1,children:_,container:y,component:x,components:S={},componentsProps:E={},disableAutoFocus:T=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:w=!1,disablePortal:M=!1,disableRestoreFocus:O=!1,disableScrollLock:D=!1,hideBackdrop:A=!1,keepMounted:$=!1,onBackdropClick:N,open:k,slotProps:F,slots:j}=f,I=Se(f,fB),B=te({},f,{closeAfterTransition:g,disableAutoFocus:T,disableEnforceFocus:C,disableEscapeKeyDown:w,disablePortal:M,disableRestoreFocus:O,disableScrollLock:D,hideBackdrop:A,keepMounted:$}),{getRootProps:G,getBackdropProps:q,getTransitionProps:U,portalRef:z,isTopModal:H,exited:ee,hasTransition:X}=Qj(te({},B,{rootRef:r})),K=te({},B,{exited:ee}),J=hB(K),ne={};if(_.props.tabIndex===void 0&&(ne.tabIndex="-1"),X){const{onEnter:ve,onExited:de}=U();ne.onEnter=ve,ne.onExited=de}const le=(n=(o=j==null?void 0:j.root)!=null?o:S.Root)!=null?n:pB,se=(a=(l=j==null?void 0:j.backdrop)!=null?l:S.Backdrop)!=null?a:p,ue=(u=F==null?void 0:F.root)!=null?u:E.root,fe=(c=F==null?void 0:F.backdrop)!=null?c:E.backdrop,pe=vn({elementType:le,externalSlotProps:ue,externalForwardedProps:I,getSlotProps:G,additionalProps:{ref:r,as:x},ownerState:K,className:Oe(h,ue==null?void 0:ue.className,J==null?void 0:J.root,!K.open&&K.exited&&(J==null?void 0:J.hidden))}),ae=vn({elementType:se,externalSlotProps:fe,additionalProps:m,getSlotProps:ve=>q(te({},ve,{onClick:de=>{N&&N(de),ve!=null&&ve.onClick&&ve.onClick(de)}})),className:Oe(fe==null?void 0:fe.className,m==null?void 0:m.className,J==null?void 0:J.backdrop),ownerState:K});return!$&&!k&&(!X||ee)?null:V.jsx(Ao,{ref:z,container:y,disablePortal:M,children:V.jsxs(le,te({},pe,{children:[!A&&p?V.jsx(se,te({},ae)):null,V.jsx(cs,{disableEnforceFocus:C,disableAutoFocus:T,disableRestoreFocus:O,isEnabled:H,open:k,children:Z.cloneElement(_,ne)})]}))})});process.env.NODE_ENV!=="production"&&(jd.propTypes={BackdropComponent:v.elementType,BackdropProps:v.object,children:qn.isRequired,classes:v.object,className:v.string,closeAfterTransition:v.bool,component:v.elementType,components:v.shape({Backdrop:v.elementType,Root:v.elementType}),componentsProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),container:v.oneOfType([Xr,v.func]),disableAutoFocus:v.bool,disableEnforceFocus:v.bool,disableEscapeKeyDown:v.bool,disablePortal:v.bool,disableRestoreFocus:v.bool,disableScrollLock:v.bool,hideBackdrop:v.bool,keepMounted:v.bool,onBackdropClick:v.func,onClose:v.func,onTransitionEnter:v.func,onTransitionExited:v.func,open:v.bool.isRequired,slotProps:v.shape({backdrop:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({backdrop:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function vB(e){return Je("MuiPopover",e)}Ze("MuiPopover",["root","paper"]);const gB=["onEntering"],yB=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],bB=["slotProps"];function em(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.height/2:t==="bottom"&&(r=e.height),r}function tm(e,t){let r=0;return typeof t=="number"?r=t:t==="center"?r=e.width/2:t==="right"&&(r=e.width),r}function rm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Ga(e){return typeof e=="function"?e():e}const _B=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"]},vB,t)},wB=ke(jd,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Sb=ke(Xs,{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}),Zs=Z.forwardRef(function(t,r){var n,o,a;const l=et({props:t,name:"MuiPopover"}),{action:u,anchorEl:c,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:p,anchorReference:m="anchorEl",children:h,className:g,container:_,elevation:y=8,marginThreshold:x=16,open:S,PaperProps:E={},slots:T,slotProps:C,transformOrigin:w={vertical:"top",horizontal:"left"},TransitionComponent:M=No,transitionDuration:O="auto",TransitionProps:{onEntering:D}={},disableScrollLock:A=!1}=l,$=Se(l.TransitionProps,gB),N=Se(l,yB),k=(n=C==null?void 0:C.paper)!=null?n:E,F=Z.useRef(),j=At(F,k.ref),I=te({},l,{anchorOrigin:f,anchorReference:m,elevation:y,marginThreshold:x,externalPaperSlotProps:k,transformOrigin:w,TransitionComponent:M,transitionDuration:O,TransitionProps:$}),B=_B(I),G=Z.useCallback(()=>{if(m==="anchorPosition")return process.env.NODE_ENV!=="production"&&(p||console.error('MUI: You need to provide a `anchorPosition` prop when using <Popover anchorReference="anchorPosition" />.')),p;const ve=Ga(c),de=ve&&ve.nodeType===1?ve:Lt(F.current).body,_e=de.getBoundingClientRect();if(process.env.NODE_ENV!=="production"){const we=de.getBoundingClientRect();process.env.NODE_ENV!=="test"&&we.top===0&&we.left===0&&we.right===0&&we.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(`
|
|
270
|
+
`))}return{top:_e.top+em(_e,f.vertical),left:_e.left+tm(_e,f.horizontal)}},[c,f.horizontal,f.vertical,p,m]),q=Z.useCallback(ve=>({vertical:em(ve,w.vertical),horizontal:tm(ve,w.horizontal)}),[w.horizontal,w.vertical]),U=Z.useCallback(ve=>{const de={width:ve.offsetWidth,height:ve.offsetHeight},_e=q(de);if(m==="none")return{top:null,left:null,transformOrigin:rm(_e)};const we=G();let Ee=we.top-_e.vertical,Ce=we.left-_e.horizontal;const ct=Ee+de.height,Ve=Ce+de.width,tt=Oo(Ga(c)),dt=tt.innerHeight-x,Ie=tt.innerWidth-x;if(x!==null&&Ee<x){const Ue=Ee-x;Ee-=Ue,_e.vertical+=Ue}else if(x!==null&&ct>dt){const Ue=ct-dt;Ee-=Ue,_e.vertical+=Ue}if(process.env.NODE_ENV!=="production"&&de.height>dt&&de.height&&dt&&console.error(["MUI: The popover component is too tall.",`Some part of it can not be seen on the screen (${de.height-dt}px).`,"Please consider adding a `max-height` to improve the user-experience."].join(`
|
|
271
|
+
`)),x!==null&&Ce<x){const Ue=Ce-x;Ce-=Ue,_e.horizontal+=Ue}else if(Ve>Ie){const Ue=Ve-Ie;Ce-=Ue,_e.horizontal+=Ue}return{top:`${Math.round(Ee)}px`,left:`${Math.round(Ce)}px`,transformOrigin:rm(_e)}},[c,m,G,q,x]),[z,H]=Z.useState(S),ee=Z.useCallback(()=>{const ve=F.current;if(!ve)return;const de=U(ve);de.top!==null&&(ve.style.top=de.top),de.left!==null&&(ve.style.left=de.left),ve.style.transformOrigin=de.transformOrigin,H(!0)},[U]);Z.useEffect(()=>(A&&window.addEventListener("scroll",ee),()=>window.removeEventListener("scroll",ee)),[c,A,ee]);const X=(ve,de)=>{D&&D(ve,de),ee()},K=()=>{H(!1)};Z.useEffect(()=>{S&&ee()}),Z.useImperativeHandle(u,()=>S?{updatePosition:()=>{ee()}}:null,[S,ee]),Z.useEffect(()=>{if(!S)return;const ve=N5(()=>{ee()}),de=Oo(c);return de.addEventListener("resize",ve),()=>{ve.clear(),de.removeEventListener("resize",ve)}},[c,S,ee]);let J=O;O==="auto"&&!M.muiSupportAuto&&(J=void 0);const ne=_||(c?Lt(Ga(c)).body:void 0),le=(o=T==null?void 0:T.root)!=null?o:wB,se=(a=T==null?void 0:T.paper)!=null?a:Sb,ue=vn({elementType:se,externalSlotProps:te({},k,{style:z?k.style:te({},k.style,{opacity:0})}),additionalProps:{elevation:y,ref:j},ownerState:I,className:Oe(B.paper,k==null?void 0:k.className)}),fe=vn({elementType:le,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:N,additionalProps:{ref:r,slotProps:{backdrop:{invisible:!0}},container:ne,open:S},ownerState:I,className:Oe(B.root,g)}),{slotProps:pe}=fe,ae=Se(fe,bB);return V.jsx(le,te({},ae,!Ky(le)&&{slotProps:pe,disableScrollLock:A},{children:V.jsx(M,te({appear:!0,in:S,onEntering:X,onExited:K,timeout:J},$,{children:V.jsx(se,te({},ue,{children:h}))}))}))});process.env.NODE_ENV!=="production"&&(Zs.propTypes={action:Yo,anchorEl:bn(v.oneOfType([Xr,v.func]),e=>{if(e.open&&(!e.anchorReference||e.anchorReference==="anchorEl")){const t=Ga(e.anchorEl);if(t&&t.nodeType===1){const r=t.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.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(`
|
|
272
|
+
`))}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(`
|
|
273
|
+
`))}return null}),anchorOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),anchorPosition:v.shape({left:v.number.isRequired,top:v.number.isRequired}),anchorReference:v.oneOf(["anchorEl","anchorPosition","none"]),children:v.node,classes:v.object,className:v.string,container:v.oneOfType([Xr,v.func]),disableScrollLock:v.bool,elevation:Rr,marginThreshold:v.number,onClose:v.func,open:v.bool.isRequired,PaperProps:v.shape({component:Ng}),slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transformOrigin:v.shape({horizontal:v.oneOfType([v.oneOf(["center","left","right"]),v.number]).isRequired,vertical:v.oneOfType([v.oneOf(["bottom","center","top"]),v.number]).isRequired}),TransitionComponent:v.elementType,transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object});function xB(e){return Je("MuiTypography",e)}Ze("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const CB=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],TB=e=>{const{align:t,gutterBottom:r,noWrap:n,paragraph:o,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${De(t)}`,r&&"gutterBottom",n&&"noWrap",o&&"paragraph"]};return ot(u,xB,l)},EB=ke("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.variant&&t[r.variant],r.align!=="inherit"&&t[`align${De(r.align)}`],r.noWrap&&t.noWrap,r.gutterBottom&&t.gutterBottom,r.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>te({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})),nm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},SB={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},MB=e=>SB[e]||e,_r=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiTypography"}),o=MB(n.color),a=Cg(te({},n,{color:o})),{align:l="inherit",className:u,component:c,gutterBottom:f=!1,noWrap:p=!1,paragraph:m=!1,variant:h="body1",variantMapping:g=nm}=a,_=Se(a,CB),y=te({},a,{align:l,color:o,className:u,component:c,gutterBottom:f,noWrap:p,paragraph:m,variant:h,variantMapping:g}),x=c||(m?"p":g[h]||nm[h])||"span",S=TB(y);return V.jsx(EB,te({as:x,ref:r,ownerState:y,className:Oe(S.root,u)},_))});process.env.NODE_ENV!=="production"&&(_r.propTypes={align:v.oneOf(["center","inherit","justify","left","right"]),children:v.node,classes:v.object,className:v.string,component:v.elementType,gutterBottom:v.bool,noWrap:v.bool,paragraph:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),variant:v.oneOfType([v.oneOf(["body1","body2","button","caption","h1","h2","h3","h4","h5","h6","inherit","overline","subtitle1","subtitle2"]),v.string]),variantMapping:v.object});function PB({title:e,description:t,styleOptions:r,onRefresh:n}){var f,p,m;const[o,a]=Q.useState(null),{themeSettings:l}=jt(),u=h=>{a(h.currentTarget)},c=()=>{a(null)};return V.jsxs(V.Fragment,{children:[V.jsx(Ys,{title:"Click to view full details",style:{color:(f=l.chart)==null?void 0:f.textColor,fontFamily:(p=l.typography)==null?void 0:p.fontFamily},children:V.jsx(Li,{onClick:u,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(r==null?void 0:r.titleTextColor)||l.widget.header.titleTextColor,d:"M11.5 20a7.5 7.5 0 1 1 0-15 7.5 7.5 0 0 1 0 15zm0-1a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13zm-.5-8h1v5h-1v-5zm0-1v-.998h1V10h-1z"})})})}),V.jsx(Zs,{open:!!o,anchorEl:o,onClose:c,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},slotProps:{root:{sx:{".MuiPaper-root":{boxShadow:"0 0 8px 0 rgba(0, 0, 0, 0.25)",borderRadius:0}}}},children:V.jsxs(Tb,{raised:!0,className:"csdk-max-w-xs csdk-w-[300px]",children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-justify-between csdk-items-center csdk-py-[5px] csdk-px-[12px]",style:{backgroundColor:R.getSlightlyDifferentColor(l.general.backgroundColor)},children:[V.jsx(_r,{variant:"subtitle2",sx:{fontWeight:"bold"},style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily},children:"Widget Details"}),V.jsx(Li,{onClick:n,sx:{p:0},children:V.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",children:V.jsx("path",{fill:(m=l.chart)==null?void 0:m.textColor,d:"M20 12a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm0 0a8 8 0 0 1-15.259 3.368l1.004-.222a7 7 0 0 0 13.252-2.925L20 12zm-8-7a7 7 0 0 1 6.267 3.877l1.003-.22A8.001 8.001 0 0 0 4 12l1.003-.22A7 7 0 0 1 12 5zm6.998 3.12A8 8 0 0 0 4 12l1.003-.22a7 7 0 0 1 13.264-2.903l.73-.16v.28l-2.98.016-.017.971h3.985V6h-.987v2.12zm-14.01 9.864H4V14h3.985l-.016.971-2.981.017v2.996z"})})})]}),V.jsx(Di,{sx:{borderColor:l.typography.secondaryTextColor,opacity:.3}}),V.jsxs(Eb,{style:{backgroundColor:l.general.backgroundColor,padding:12},children:[e&&V.jsx(_r,{variant:"body2",style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily,fontSize:13},children:e}),!!t&&V.jsxs(V.Fragment,{children:[V.jsx(Di,{sx:{my:1,borderColor:l.typography.secondaryTextColor,opacity:.3}}),V.jsx(_r,{variant:"body2",style:{color:l.typography.primaryTextColor,fontFamily:l.typography.fontFamily,fontSize:13},children:t})]})]})]})})]})}const RB=({title:e,description:t,dataSetName:r,styleOptions:n,onRefresh:o})=>{var u;const{themeSettings:a}=jt(),l=()=>{var f;const c=V.jsx(V.Fragment,{children:V.jsx(PB,{title:r,description:t,styleOptions:n,onRefresh:o})});return n!=null&&n.renderToolbar?(f=n==null?void 0:n.renderToolbar)==null?void 0:f.call(n,o,c):c};return V.jsxs(V.Fragment,{children:[V.jsxs("div",{className:"csdk-flex csdk-flex-row csdk-items-center csdk-px-2 csdk-min-h-[32px]",style:{backgroundColor:(n==null?void 0:n.backgroundColor)||a.widget.header.backgroundColor},children:[V.jsx("div",{className:"csdk-w-full csdk-whitespace-nowrap csdk-overflow-hidden",style:{textAlign:OB((n==null?void 0:n.titleAlignment)||a.widget.header.titleAlignment),color:(n==null?void 0:n.titleTextColor)||a.widget.header.titleTextColor,fontFamily:(u=a.typography)==null?void 0:u.fontFamily,fontSize:15},children:e||""}),V.jsx("div",{className:"csdk-ml-auto csdk-flex csdk-items-center",children:l()})]}),R.get(n,"dividerLine",a.widget.header.dividerLine)&&V.jsx(Di,{style:{backgroundColor:(n==null?void 0:n.dividerLineColor)||a.widget.header.dividerLineColor||"#d5d5d5"}})]})};function OB(e){return e.toLowerCase()}const Bd=({dataSetName:e,styleOptions:t,title:r,description:n,topSlot:o,bottomSlot:a,children:l,onRefresh:u=()=>{}})=>{var f,p,m;const{themeSettings:c}=jt();return V.jsx("div",{className:"csdk-w-full csdk-h-full csdk-overflow-hidden",children:V.jsx("div",{className:"csdk-h-full",style:{padding:Cb[R.get(t,"spaceAround",c.widget.spaceAround)]||"0px"},children:V.jsxs("div",{className:"csdk-h-full csdk-overflow-hidden",style:{backgroundColor:(t==null?void 0:t.backgroundColor)||"unset",borderWidth:R.get(t,"border",c.widget.border)?"1px":0,borderColor:(t==null?void 0:t.borderColor)||c.widget.borderColor,borderRadius:xb[(t==null?void 0:t.cornerRadius)||c.widget.cornerRadius]||0,boxShadow:wj(t,c),display:"flex",flexDirection:"column"},children:[!((f=t==null?void 0:t.header)!=null&&f.hidden)&&V.jsx(RB,{title:r,description:n,dataSetName:e,styleOptions:t==null?void 0:t.header,onRefresh:u}),o,V.jsx(qv,{theme:{chart:{backgroundColor:(t==null?void 0:t.backgroundColor)||((p=c.chart)==null?void 0:p.backgroundColor)}},children:V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0,backgroundColor:(t==null?void 0:t.backgroundColor)||((m=c.chart)==null?void 0:m.backgroundColor)},children:l})}),a]})})})};function kB(e){return Je("MuiListSubheader",e)}Ze("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const NB=["className","color","component","disableGutters","disableSticky","inset"],DB=e=>{const{classes:t,color:r,disableGutters:n,inset:o,disableSticky:a}=e,l={root:["root",r!=="default"&&`color${De(r)}`,!n&&"gutters",o&&"inset",!a&&"sticky"]};return ot(l,kB,t)},LB=ke("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,r.color!=="default"&&t[`color${De(r.color)}`],!r.disableGutters&&t.gutters,r.inset&&t.inset,!r.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>te({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Hd=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiListSubheader"}),{className:o,color:a="default",component:l="li",disableGutters:u=!1,disableSticky:c=!1,inset:f=!1}=n,p=Se(n,NB),m=te({},n,{color:a,component:l,disableGutters:u,disableSticky:c,inset:f}),h=DB(m);return V.jsx(LB,te({as:l,className:Oe(h.root,o),ref:r,ownerState:m},p))});Hd.muiSkipListHighlight=!0;process.env.NODE_ENV!=="production"&&(Hd.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOf(["default","inherit","primary"]),component:v.elementType,disableGutters:v.bool,disableSticky:v.bool,inset:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const ds=Z.createContext({});process.env.NODE_ENV!=="production"&&(ds.displayName="ListContext");function AB(e){return Je("MuiList",e)}Ze("MuiList",["root","padding","dense","subheader"]);const IB=["children","className","component","dense","disablePadding","subheader"],$B=e=>{const{classes:t,disablePadding:r,dense:n,subheader:o}=e;return ot({root:["root",!r&&"padding",n&&"dense",o&&"subheader"]},AB,t)},zB=ke("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,!r.disablePadding&&t.padding,r.dense&&t.dense,r.subheader&&t.subheader]}})(({ownerState:e})=>te({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Mb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiList"}),{children:o,className:a,component:l="ul",dense:u=!1,disablePadding:c=!1,subheader:f}=n,p=Se(n,IB),m=Z.useMemo(()=>({dense:u}),[u]),h=te({},n,{component:l,dense:u,disablePadding:c}),g=$B(h);return V.jsx(ds.Provider,{value:m,children:V.jsxs(zB,te({as:l,className:Oe(g.root,a),ref:r,ownerState:h},p,{children:[f,o]}))})});process.env.NODE_ENV!=="production"&&(Mb.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disablePadding:v.bool,subheader:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});const WB=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function nu(e,t,r){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:r?null:e.firstChild}function im(e,t,r){return e===t?r?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:r?null:e.lastChild}function Pb(e,t){if(t===void 0)return!0;let r=e.innerText;return r===void 0&&(r=e.textContent),r=r.trim().toLowerCase(),r.length===0?!1:t.repeating?r[0]===t.keys[0]:r.indexOf(t.keys.join(""))===0}function lo(e,t,r,n,o,a){let l=!1,u=o(e,t,t?r:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const c=n?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!Pb(u,a)||c)u=o(e,u,r);else return u.focus(),!0}return!1}const Vd=Z.forwardRef(function(t,r){const{actions:n,autoFocus:o=!1,autoFocusItem:a=!1,children:l,className:u,disabledItemsFocusable:c=!1,disableListWrap:f=!1,onKeyDown:p,variant:m="selectedMenu"}=t,h=Se(t,WB),g=Z.useRef(null),_=Z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jn(()=>{o&&g.current.focus()},[o]),Z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(T,{direction:C})=>{const w=!g.current.style.width;if(T.clientHeight<g.current.clientHeight&&w){const M=`${jg(Lt(T))}px`;g.current.style[C==="rtl"?"paddingLeft":"paddingRight"]=M,g.current.style.width=`calc(100% + ${M})`}return g.current}}),[]);const y=T=>{const C=g.current,w=T.key,M=Lt(C).activeElement;if(w==="ArrowDown")T.preventDefault(),lo(C,M,f,c,nu);else if(w==="ArrowUp")T.preventDefault(),lo(C,M,f,c,im);else if(w==="Home")T.preventDefault(),lo(C,null,f,c,nu);else if(w==="End")T.preventDefault(),lo(C,null,f,c,im);else if(w.length===1){const O=_.current,D=w.toLowerCase(),A=performance.now();O.keys.length>0&&(A-O.lastTime>500?(O.keys=[],O.repeating=!0,O.previousKeyMatched=!0):O.repeating&&D!==O.keys[0]&&(O.repeating=!1)),O.lastTime=A,O.keys.push(D);const $=M&&!O.repeating&&Pb(M,O);O.previousKeyMatched&&($||lo(C,M,!1,c,nu,O))?T.preventDefault():O.previousKeyMatched=!1}p&&p(T)},x=At(g,r);let S=-1;Z.Children.forEach(l,(T,C)=>{if(!Z.isValidElement(T)){S===C&&(S+=1,S>=l.length&&(S=-1));return}process.env.NODE_ENV!=="production"&&Ro.isFragment(T)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
274
|
+
`)),T.props.disabled||(m==="selectedMenu"&&T.props.selected||S===-1)&&(S=C),S===C&&(T.props.disabled||T.props.muiSkipListHighlight||T.type.muiSkipListHighlight)&&(S+=1,S>=l.length&&(S=-1))});const E=Z.Children.map(l,(T,C)=>{if(C===S){const w={};return a&&(w.autoFocus=!0),T.props.tabIndex===void 0&&m==="selectedMenu"&&(w.tabIndex=0),Z.cloneElement(T,w)}return T});return V.jsx(Mb,te({role:"menu",ref:x,className:u,onKeyDown:y,tabIndex:o?0:-1},h,{children:E}))});process.env.NODE_ENV!=="production"&&(Vd.propTypes={autoFocus:v.bool,autoFocusItem:v.bool,children:v.node,className:v.string,disabledItemsFocusable:v.bool,disableListWrap:v.bool,onKeyDown:v.func,variant:v.oneOf(["menu","selectedMenu"])});function FB(e){return Je("MuiMenu",e)}Ze("MuiMenu",["root","paper","list"]);const jB=["onEntering"],BB=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],HB={vertical:"top",horizontal:"right"},VB={vertical:"top",horizontal:"left"},UB=e=>{const{classes:t}=e;return ot({root:["root"],paper:["paper"],list:["list"]},FB,t)},qB=ke(Zs,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),GB=ke(Sb,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),YB=ke(Vd,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),Ud=Z.forwardRef(function(t,r){var n,o;const a=et({props:t,name:"MuiMenu"}),{autoFocus:l=!0,children:u,className:c,disableAutoFocusItem:f=!1,MenuListProps:p={},onClose:m,open:h,PaperProps:g={},PopoverClasses:_,transitionDuration:y="auto",TransitionProps:{onEntering:x}={},variant:S="selectedMenu",slots:E={},slotProps:T={}}=a,C=Se(a.TransitionProps,jB),w=Se(a,BB),M=pd(),O=te({},a,{autoFocus:l,disableAutoFocusItem:f,MenuListProps:p,onEntering:x,PaperProps:g,transitionDuration:y,TransitionProps:C,variant:S}),D=UB(O),A=l&&!f&&h,$=Z.useRef(null),N=(q,U)=>{$.current&&$.current.adjustStyleForScrollbar(q,{direction:M?"rtl":"ltr"}),x&&x(q,U)},k=q=>{q.key==="Tab"&&(q.preventDefault(),m&&m(q,"tabKeyDown"))};let F=-1;Z.Children.map(u,(q,U)=>{Z.isValidElement(q)&&(process.env.NODE_ENV!=="production"&&Ro.isFragment(q)&&console.error(["MUI: The Menu component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
275
|
+
`)),q.props.disabled||(S==="selectedMenu"&&q.props.selected||F===-1)&&(F=U))});const j=(n=E.paper)!=null?n:GB,I=(o=T.paper)!=null?o:g,B=vn({elementType:E.root,externalSlotProps:T.root,ownerState:O,className:[D.root,c]}),G=vn({elementType:j,externalSlotProps:I,ownerState:O,className:D.paper});return V.jsx(qB,te({onClose:m,anchorOrigin:{vertical:"bottom",horizontal:M?"right":"left"},transformOrigin:M?HB:VB,slots:{paper:j,root:E.root},slotProps:{root:B,paper:G},open:h,ref:r,transitionDuration:y,TransitionProps:te({onEntering:N},C),ownerState:O},w,{classes:_,children:V.jsx(YB,te({onKeyDown:k,actions:$,autoFocus:l&&(F===-1||f),autoFocusItem:A,variant:S},p,{className:Oe(D.list,p.className),children:u}))}))});process.env.NODE_ENV!=="production"&&(Ud.propTypes={anchorEl:v.oneOfType([Xr,v.func]),autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,disableAutoFocusItem:v.bool,MenuListProps:v.object,onClose:v.func,open:v.bool.isRequired,PaperProps:v.object,PopoverClasses:v.object,slotProps:v.shape({paper:v.oneOfType([v.func,v.object]),root:v.oneOfType([v.func,v.object])}),slots:v.shape({paper:v.elementType,root:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),transitionDuration:v.oneOfType([v.oneOf(["auto"]),v.number,v.shape({appear:v.number,enter:v.number,exit:v.number})]),TransitionProps:v.object,variant:v.oneOf(["menu","selectedMenu"])});const om=Ze("MuiListItemIcon",["root","alignItemsFlexStart"]),am=Ze("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function XB(e){return Je("MuiMenuItem",e)}const uo=Ze("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),ZB=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],KB=(e,t)=>{const{ownerState:r}=e;return[t.root,r.dense&&t.dense,r.divider&&t.divider,!r.disableGutters&&t.gutters]},QB=e=>{const{disabled:t,dense:r,divider:n,disableGutters:o,selected:a,classes:l}=e,c=ot({root:["root",r&&"dense",t&&"disabled",!o&&"gutters",n&&"divider",a&&"selected"]},XB,l);return te({},l,c)},JB=ke(Gn,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:KB})(({theme:e,ownerState:t})=>te({},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"}},[`&.${uo.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:it(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uo.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:it(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uo.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:it(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})`:it(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${uo.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uo.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Kp.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Kp.inset}`]:{marginLeft:52},[`& .${am.root}`]:{marginTop:0,marginBottom:0},[`& .${am.inset}`]:{paddingLeft:36},[`& .${om.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&te({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${om.root} svg`]:{fontSize:"1.25rem"}}))),qd=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiMenuItem"}),{autoFocus:o=!1,component:a="li",dense:l=!1,divider:u=!1,disableGutters:c=!1,focusVisibleClassName:f,role:p="menuitem",tabIndex:m,className:h}=n,g=Se(n,ZB),_=Z.useContext(ds),y=Z.useMemo(()=>({dense:l||_.dense||!1,disableGutters:c}),[_.dense,l,c]),x=Z.useRef(null);jn(()=>{o&&(x.current?x.current.focus():process.env.NODE_ENV!=="production"&&console.error("MUI: Unable to set focus to a MenuItem whose component has not been rendered."))},[o]);const S=te({},n,{dense:y.dense,divider:u,disableGutters:c}),E=QB(n),T=At(x,r);let C;return n.disabled||(C=m!==void 0?m:-1),V.jsx(ds.Provider,{value:y,children:V.jsx(JB,te({ref:T,role:p,tabIndex:C,component:a,focusVisibleClassName:Oe(E.focusVisible,f),className:Oe(E.root,h)},g,{ownerState:S,classes:E}))})});process.env.NODE_ENV!=="production"&&(qd.propTypes={autoFocus:v.bool,children:v.node,classes:v.object,className:v.string,component:v.elementType,dense:v.bool,disabled:v.bool,disableGutters:v.bool,divider:v.bool,focusVisibleClassName:v.string,role:v.string,selected:v.bool,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),tabIndex:v.number});const Rb=({position:e,closeContextMenu:t,itemSections:r,children:n})=>{const o=!!e;return V.jsxs(Ud,{MenuListProps:{dense:!0},anchorReference:"anchorPosition",anchorPosition:e!=null?e:{left:0,top:0},open:o,onClose:t,children:[r==null?void 0:r.map(({sectionTitle:a,items:l})=>{var c;const u=[];return a&&(u.push(V.jsx(Hd,{children:a},`subheader_${a}`)),u.push(V.jsx(Di,{},`divider_${a}`))),[...u,...(c=l==null?void 0:l.map(f=>{var p;return V.jsx(qd,{onClick:()=>{var m;t(),(m=f.onClick)==null||m.call(f)},children:f.caption},(p=f.key)!=null?p:f.caption)}))!=null?c:[]]}),n]})},eH=Qo(V.jsx("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz"),tH=["slots","slotProps"],rH=ke(Gn)(({theme:e})=>te({display:"flex",marginLeft:`calc(${e.spacing(1)} * 0.5)`,marginRight:`calc(${e.spacing(1)} * 0.5)`},e.palette.mode==="light"?{backgroundColor:e.palette.grey[100],color:e.palette.grey[700]}:{backgroundColor:e.palette.grey[700],color:e.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":te({},e.palette.mode==="light"?{backgroundColor:e.palette.grey[200]}:{backgroundColor:e.palette.grey[600]}),"&:active":te({boxShadow:e.shadows[0]},e.palette.mode==="light"?{backgroundColor:rp(e.palette.grey[200],.12)}:{backgroundColor:rp(e.palette.grey[600],.12)})})),nH=ke(eH)({width:24,height:16});function Ob(e){const{slots:t={},slotProps:r={}}=e,n=Se(e,tH),o=e;return V.jsx("li",{children:V.jsx(rH,te({focusRipple:!0},n,{ownerState:o,children:V.jsx(nH,te({as:t.CollapsedIcon,ownerState:o},r.collapsedIcon))}))})}process.env.NODE_ENV!=="production"&&(Ob.propTypes={slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.object});function iH(e){return Je("MuiBreadcrumbs",e)}const oH=Ze("MuiBreadcrumbs",["root","ol","li","separator"]),aH=["children","className","component","slots","slotProps","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],sH=e=>{const{classes:t}=e;return ot({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},iH,t)},lH=ke(_r,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(e,t)=>[{[`& .${oH.li}`]:t.li},t.root]})({}),uH=ke("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(e,t)=>t.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),cH=ke("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(e,t)=>t.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function dH(e,t,r,n){return e.reduce((o,a,l)=>(l<e.length-1?o=o.concat(a,V.jsx(cH,{"aria-hidden":!0,className:t,ownerState:n,children:r},`separator-${l}`)):o.push(a),o),[])}const kb=Z.forwardRef(function(t,r){const n=et({props:t,name:"MuiBreadcrumbs"}),{children:o,className:a,component:l="nav",slots:u={},slotProps:c={},expandText:f="Show path",itemsAfterCollapse:p=1,itemsBeforeCollapse:m=1,maxItems:h=8,separator:g="/"}=n,_=Se(n,aH),[y,x]=Z.useState(!1),S=te({},n,{component:l,expanded:y,expandText:f,itemsAfterCollapse:p,itemsBeforeCollapse:m,maxItems:h,separator:g}),E=sH(S),T=vn({elementType:u.CollapsedIcon,externalSlotProps:c.collapsedIcon,ownerState:S}),C=Z.useRef(null),w=O=>{const D=()=>{x(!0);const A=C.current.querySelector("a[href],button,[tabindex]");A&&A.focus()};return m+p>=O.length?(process.env.NODE_ENV!=="production"&&console.error(["MUI: You have provided an invalid combination of props to the Breadcrumbs.",`itemsAfterCollapse={${p}} + itemsBeforeCollapse={${m}} >= maxItems={${h}}`].join(`
|
|
276
|
+
`)),O):[...O.slice(0,m),V.jsx(Ob,{"aria-label":f,slots:{CollapsedIcon:u.CollapsedIcon},slotProps:{collapsedIcon:T},onClick:D},"ellipsis"),...O.slice(O.length-p,O.length)]},M=Z.Children.toArray(o).filter(O=>(process.env.NODE_ENV!=="production"&&Ro.isFragment(O)&&console.error(["MUI: The Breadcrumbs component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
|
|
277
|
+
`)),Z.isValidElement(O))).map((O,D)=>V.jsx("li",{className:E.li,children:O},`child-${D}`));return V.jsx(lH,te({ref:r,component:l,color:"text.secondary",className:Oe(E.root,a),ownerState:S},_,{children:V.jsx(uH,{className:E.ol,ref:C,ownerState:S,children:dH(y||h&&M.length<=h?M:w(M),E.separator,g,S)})}))});process.env.NODE_ENV!=="production"&&(kb.propTypes={children:v.node,classes:v.object,className:v.string,component:v.elementType,expandText:v.string,itemsAfterCollapse:Rr,itemsBeforeCollapse:Rr,maxItems:Rr,separator:v.node,slotProps:v.shape({collapsedIcon:v.oneOfType([v.func,v.object])}),slots:v.shape({CollapsedIcon:v.elementType}),sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object])});function fH(e){return Je("MuiButton",e)}const za=Ze("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),Nb=Z.createContext({});process.env.NODE_ENV!=="production"&&(Nb.displayName="ButtonGroupContext");const Db=Z.createContext(void 0);process.env.NODE_ENV!=="production"&&(Db.displayName="ButtonGroupButtonContext");const hH=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],pH=e=>{const{color:t,disableElevation:r,fullWidth:n,size:o,variant:a,classes:l}=e,u={root:["root",a,`${a}${De(t)}`,`size${De(o)}`,`${a}Size${De(o)}`,`color${De(t)}`,r&&"disableElevation",n&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${De(o)}`],endIcon:["icon","endIcon",`iconSize${De(o)}`]},c=ot(u,fH,l);return te({},l,c)},Lb=e=>te({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),mH=ke(Gn,{shouldForwardProp:e=>Zo(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.root,t[r.variant],t[`${r.variant}${De(r.color)}`],t[`size${De(r.size)}`],t[`${r.variant}Size${De(r.size)}`],r.color==="inherit"&&t.colorInherit,r.disableElevation&&t.disableElevation,r.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var r,n;const o=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return te({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":te({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:it(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":te({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${za.focusVisible}`]:te({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${za.disabled}`]:te({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${it(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:o,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${za.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${za.disabled}`]:{boxShadow:"none"}}),vH=ke("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.startIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>te({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Lb(e))),gH=ke("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:r}=e;return[t.endIcon,t[`iconSize${De(r.size)}`]]}})(({ownerState:e})=>te({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Lb(e))),Io=Z.forwardRef(function(t,r){const n=Z.useContext(Nb),o=Z.useContext(Db),a=id(n,t),l=et({props:a,name:"MuiButton"}),{children:u,color:c="primary",component:f="button",className:p,disabled:m=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:_,focusVisibleClassName:y,fullWidth:x=!1,size:S="medium",startIcon:E,type:T,variant:C="text"}=l,w=Se(l,hH),M=te({},l,{color:c,component:f,disabled:m,disableElevation:h,disableFocusRipple:g,fullWidth:x,size:S,type:T,variant:C}),O=pH(M),D=E&&V.jsx(vH,{className:O.startIcon,ownerState:M,children:E}),A=_&&V.jsx(gH,{className:O.endIcon,ownerState:M,children:_}),$=o||"";return V.jsxs(mH,te({ownerState:M,className:Oe(n.className,O.root,p,$),component:f,disabled:m,focusRipple:!g,focusVisibleClassName:Oe(O.focusVisible,y),ref:r,type:T},w,{classes:O,children:[D,u,A]}))});process.env.NODE_ENV!=="production"&&(Io.propTypes={children:v.node,classes:v.object,className:v.string,color:v.oneOfType([v.oneOf(["inherit","primary","secondary","success","error","info","warning"]),v.string]),component:v.elementType,disabled:v.bool,disableElevation:v.bool,disableFocusRipple:v.bool,disableRipple:v.bool,endIcon:v.node,focusVisibleClassName:v.string,fullWidth:v.bool,href:v.string,size:v.oneOfType([v.oneOf(["small","medium","large"]),v.string]),startIcon:v.node,sx:v.oneOfType([v.arrayOf(v.oneOfType([v.func,v.object,v.bool])),v.func,v.object]),type:v.oneOfType([v.oneOf(["button","reset","submit"]),v.string]),variant:v.oneOfType([v.oneOf(["contained","outlined","text"]),v.string])});const yH=({clearDrilldownSelections:e,currentDimension:t,setIsHovered:r,themeProps:n})=>{var p,m;const o=((m=(p=t.expression.match(/\[(.*?)]/))==null?void 0:p[1])==null?void 0:m.split(".")[1])||"",a=wr(Io)`
|
|
278
|
+
&& {
|
|
279
|
+
background-color: ${n.activeDrillBackgroundColor};
|
|
280
|
+
color: ${n.primaryButtonTextColor};
|
|
281
|
+
border-radius: 100%;
|
|
282
|
+
border: 2px solid white;
|
|
283
|
+
min-width: 39px;
|
|
284
|
+
width: 39px;
|
|
285
|
+
height: 39px;
|
|
286
|
+
z-index: 10;
|
|
287
|
+
padding: 7px;
|
|
288
|
+
cursor: pointer;
|
|
289
|
+
text-transform: none;
|
|
290
|
+
margin-right: -5px;
|
|
291
|
+
|
|
292
|
+
&:hover {
|
|
293
|
+
background-color: ${n.activeDrillHoverBackgroundColor};
|
|
294
|
+
color: ${n.primaryTextColor};
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
`,l=wr.svg`
|
|
298
|
+
width: 22px;
|
|
299
|
+
height: 22px;
|
|
300
|
+
fill: #9ea2ab;
|
|
301
|
+
`,u=()=>V.jsx(a,{theme:n,onMouseEnter:()=>r(!0),onMouseLeave:()=>r(!1),onClick:e,children:V.jsx(l,{width:22,height:22,viewBox:"0 0 24 24",children:V.jsx("path",{fill:"#9EA2AB",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"})})}),c=wr(Io)`
|
|
302
|
+
&& {
|
|
303
|
+
position: relative;
|
|
304
|
+
font-family: ${h=>h.theme.fontFamily};
|
|
305
|
+
border-radius: 0;
|
|
306
|
+
border: 1px solid ${Nr};
|
|
307
|
+
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
308
|
+
border-right: none;
|
|
309
|
+
border-left: none;
|
|
310
|
+
color: ${h=>h.theme.secondaryTextColor};
|
|
311
|
+
padding-right: 1.25rem;
|
|
312
|
+
padding-left: 1.875rem;
|
|
313
|
+
height: 1.64rem;
|
|
314
|
+
font-size: 13px;
|
|
315
|
+
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
316
|
+
text-transform: none;
|
|
317
|
+
cursor: auto;
|
|
318
|
+
pointer-events: none;
|
|
319
|
+
white-space: nowrap;
|
|
320
|
+
|
|
321
|
+
&:hover {
|
|
322
|
+
background-color: ${h=>h.theme.chartBackgroundColor};
|
|
323
|
+
border: 1px solid ${Nr};
|
|
324
|
+
border-right: none;
|
|
325
|
+
border-left: none;
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
`;return{CancelButton:u,CurrentDrillButton:()=>V.jsxs(c,{theme:n,children:[o," (All)",V.jsx("span",{className:"flex items-center justify-between",children:V.jsx("span",{className:"csdk-absolute csdk-right-[0px] csdk-top-[3px] csdk-h-[18px] csdk-w-[18px] csdk-transform csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:"transparent",borderTop:`1px solid ${Nr}`,borderRight:`1px solid ${Nr}`}})})]})}},bH={modifiers:[{name:"offset",options:{offset:[0,12]}}]},_H=({themeProps:e,filterDisplayValues:t,currentTable:r,currentColumn:n})=>V.jsxs("div",{className:"csdk-w-50 csdk-px-[12px] csdk-shadow-md csdk-shadow-gray-500 csdk-rounded-md csdk-bg-white",style:{backgroundColor:e.chartBackgroundColor,color:e.primaryTextColor},children:[V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Members"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:t.join(", ")})]}),V.jsxs("div",{className:"csdk-border-b csdk-border-[#e4e4e4] csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Table"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:r})]}),V.jsxs("div",{className:"csdk-p-3 csdk-pl-1",children:[V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:11,children:"Column"}),V.jsx(_r,{variant:"body2",fontFamily:e.fontFamily,fontSize:13,children:n})]})]}),wH=({popperParams:e,currentDimension:t,themeProps:r})=>{const n=t.expression.match(/\[(.*?)]/),[o,a]=n?n[1].split("."):["",""],l=!!e;return V.jsx(ia,{open:l,anchorEl:e==null?void 0:e.anchorEl,placement:"bottom",popperOptions:bH,children:e&&V.jsx(_H,{themeProps:r,filterDisplayValues:e.filterDisplayValues,currentTable:o,currentColumn:a})})},xH=()=>{const{themeSettings:{typography:{primaryTextColor:e,secondaryTextColor:t,fontFamily:r},general:{backgroundColor:n,brandColor:o,primaryButtonTextColor:a},chart:{backgroundColor:l,panelBackgroundColor:u}}}=jt(),c=u!=l?u:rs(u,.3),f=rs(c,.1);return{primaryTextColor:e,secondaryTextColor:t,fontFamily:r,backgroundColor:n,brandColor:o,primaryButtonTextColor:a,chartBackgroundColor:l,activeDrillBackgroundColor:c,activeDrillHoverBackgroundColor:f}},CH=wr(Li)`
|
|
329
|
+
&& {
|
|
330
|
+
position: absolute;
|
|
331
|
+
left: 0;
|
|
332
|
+
right: auto;
|
|
333
|
+
margin: auto;
|
|
334
|
+
bottom: 0;
|
|
335
|
+
top: 0;
|
|
336
|
+
z-index: 10;
|
|
337
|
+
background: linear-gradient(to right, white 30%, rgba(255, 255, 255, 0) 100%);
|
|
338
|
+
display: inline-flex;
|
|
339
|
+
|
|
340
|
+
span[aria-label='prev-item'] {
|
|
341
|
+
width: 0;
|
|
342
|
+
height: 0;
|
|
343
|
+
border-top: 6px solid transparent;
|
|
344
|
+
border-bottom: 6px solid transparent;
|
|
345
|
+
border-right: 5px solid #000;
|
|
346
|
+
color: transparent;
|
|
347
|
+
opacity: 0.3;
|
|
348
|
+
|
|
349
|
+
&:hover {
|
|
350
|
+
opacity: 0.8;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
`,TH=wr(Li)`
|
|
355
|
+
&& {
|
|
356
|
+
position: absolute;
|
|
357
|
+
left: auto;
|
|
358
|
+
right: 0;
|
|
359
|
+
margin: auto;
|
|
360
|
+
bottom: 0;
|
|
361
|
+
top: 0;
|
|
362
|
+
z-index: 10;
|
|
363
|
+
background: linear-gradient(to right, rgba(255, 255, 255, 0) 0, white 70%);
|
|
364
|
+
display: inline-flex;
|
|
365
|
+
|
|
366
|
+
span[aria-label='next-item'] {
|
|
367
|
+
width: 0;
|
|
368
|
+
height: 0;
|
|
369
|
+
border-top: 6px solid transparent;
|
|
370
|
+
border-bottom: 6px solid transparent;
|
|
371
|
+
border-left: 5px solid #000;
|
|
372
|
+
color: transparent;
|
|
373
|
+
opacity: 0.3;
|
|
374
|
+
|
|
375
|
+
&:hover {
|
|
376
|
+
opacity: 0.8;
|
|
377
|
+
}
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
`,EH=({currentDimension:e,children:t})=>{const r=Q.useRef(null),[n,o]=Q.useState(0),[a,l]=Q.useState(0),[u,c]=Q.useState(0),f=()=>{var g;return(g=r.current)==null?void 0:g.querySelector("ol")};Q.useEffect(()=>{const g=f();if(g){const _=g.clientWidth,y=g.scrollWidth,x=g.scrollLeft;o(_),l(y),c(x)}},[e]),Q.useEffect(()=>{const g=f();function _(){if(g){const S=g.clientWidth;o(S)}}function y(){if(g){const S=g.scrollLeft;c(S)}}const x=new ResizeObserver(_);return g?(x.observe(g),g.addEventListener("scroll",y),()=>{x.disconnect(),g.removeEventListener("scroll",y)}):()=>{}},[]);const p=g=>{const y="smooth",x=f();x&&x.scrollBy({left:g==="right"?200:-200,behavior:y})},m=u!=0,h=Math.floor(a-u)>n;return V.jsxs("div",{style:{position:"relative"},children:[m&&V.jsx(CH,{onClick:()=>p("left"),children:V.jsx("span",{"aria-label":"prev-item",children:"Prev"})}),h&&V.jsx(TH,{onClick:()=>p("right"),children:V.jsx("span",{"aria-label":"next-item",children:"Next"})}),V.jsx("div",{ref:r,children:t})]})},Nr="#F2F2F2",SH=wr(Io)`
|
|
381
|
+
&& {
|
|
382
|
+
font-family: ${({theme:e})=>e.fontFamily};
|
|
383
|
+
position: relative;
|
|
384
|
+
border-radius: 0;
|
|
385
|
+
border: 1px solid ${Nr};
|
|
386
|
+
border-right: none;
|
|
387
|
+
color: ${({active:e,theme:t})=>e==="true"?t.primaryTextColor:t.secondaryTextColor};
|
|
388
|
+
background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillBackgroundColor:t.chartBackgroundColor};
|
|
389
|
+
padding-right: 1.25rem;
|
|
390
|
+
padding-left: 1.875rem;
|
|
391
|
+
height: 1.64rem;
|
|
392
|
+
font-size: 13px;
|
|
393
|
+
text-transform: none;
|
|
394
|
+
transition: background-color 0.2s, border-color 0.2s, color 0.2s;
|
|
395
|
+
white-space: nowrap;
|
|
396
|
+
cursor: ${({active:e})=>e==="true"?"pointer":"auto"};
|
|
397
|
+
margin-right: ${({active:e})=>e==="true"?"5px":"0px"};
|
|
398
|
+
|
|
399
|
+
&:hover {
|
|
400
|
+
background-color: ${({active:e,theme:t})=>e==="true"?t.activeDrillHoverBackgroundColor:t.chartBackgroundColor};
|
|
401
|
+
border: 1px solid ${Nr};
|
|
402
|
+
border-right: none;
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
.MuiTouchRipple-root {
|
|
406
|
+
display: none;
|
|
407
|
+
}
|
|
408
|
+
}
|
|
409
|
+
`,MH=wr(kb)`
|
|
410
|
+
.MuiBreadcrumbs-ol {
|
|
411
|
+
flex-wrap: nowrap;
|
|
412
|
+
overflow: hidden;
|
|
413
|
+
}
|
|
414
|
+
.MuiBreadcrumbs-separator {
|
|
415
|
+
display: none;
|
|
416
|
+
}
|
|
417
|
+
`,PH=({isActive:e,filterDisplayValue:t,handleMouseEnter:r,handleMouseLeave:n,handleClick:o,themeProps:a,popperParams:l,index:u})=>V.jsx(SH,{theme:a,active:e.toString(),index:u,onMouseEnter:r,onMouseLeave:n,onClick:o,children:V.jsxs("span",{className:"flex items-center justify-between",children:[V.jsxs("span",{className:"mr-2",children:[t.slice(0,2).join(", "),t.length>2&&", ..."]}),e?V.jsx("span",{className:"csdk-absolute csdk-right-0 csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-translate-x-1/2 csdk-rotate-45",style:{backgroundColor:t===(l==null?void 0:l.filterDisplayValues)?a.activeDrillHoverBackgroundColor:a.activeDrillBackgroundColor,borderTop:`1px solid ${Nr}`,borderRight:`1px solid ${Nr}`,transition:"background-color 0.2s, border-color 0.2s, color 0.2s",zIndex:8}}):void 0,V.jsx("span",{className:`csdk-absolute ${e?"csdk-h-[18px] csdk-w-[18px] csdk-top-[3px] csdk-right-[-15px]":"csdk-h-[10px] csdk-w-[10px] csdk-top-[7px] csdk-right-[-5px]"} csdk-transform translate-x-1/2 csdk-rotate-45`,style:{backgroundColor:a.chartBackgroundColor,borderTop:`1px solid ${Nr}`,borderRight:`1px solid ${Nr}`,zIndex:7,transition:"background-color 0.2s, border-color 0.2s, color 0.2s"}})]})}),Ab=({filtersDisplayValues:e,currentDimension:t,clearDrilldownSelections:r,sliceDrilldownSelections:n})=>{const[o,a]=Q.useState(null),[l,u]=Q.useState(!1),c=xH(),{CancelButton:f,CurrentDrillButton:p}=yH({clearDrilldownSelections:r,currentDimension:t,isHovered:l,setIsHovered:u,themeProps:c}),m=y=>x=>{u(!0),a({filterDisplayValues:y,anchorEl:x.currentTarget})},h=()=>{u(!1),a(null)},g=y=>y<e.length-1,_=y=>y===e.length-2;return e.length?V.jsx(EH,{currentDimension:t,children:V.jsxs(MH,{separator:null,sx:{backgroundColor:c.chartBackgroundColor,padding:"4px"},children:[V.jsx(f,{}),e.map((y,x)=>{const S=g(x),E=_(x);return V.jsx("div",{children:V.jsx(PH,{isActive:S,isLastActive:E,filterDisplayValue:y,handleMouseEnter:m(y),handleMouseLeave:h,handleClick:()=>n(x+1),themeProps:c,popperParams:o,index:x})},x)}),V.jsx(p,{}),V.jsx(wH,{popperParams:o,currentDimension:t,themeProps:c})]})}):null},RH=e=>{const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n=[]}=e;if(!r)throw new Error("Initial dimension has to be specified to use drilldown with custom components");const[o,a]=Q.useState(n),l=bb(e,["drilldownSelections"]);Q.useEffect(()=>{l&&a(n)},[n,a,l]);const u=Q.useMemo(()=>t.filter(({expression:h})=>o.every(({nextDimension:g})=>g.expression!==h)),[t,o]),c=Q.useCallback((h,g)=>{a(_=>[..._,{points:h,nextDimension:g}])},[a]),f=Q.useCallback(h=>{a(g=>g.slice(0,h))},[a]),p=Q.useCallback(()=>{a([])},[a]),m=Q.useMemo(()=>Ib(o,r),[o,r]);return ie({selectDrilldown:c,sliceDrilldownSelections:f,clearDrilldownSelections:p,drilldownSelections:o,availableDrilldowns:u},m)},Ib=(e,t)=>{var a;let r=(a=t.column)!=null?a:t;const n=[],o=[];return e.forEach(({points:l,nextDimension:u})=>{n.push(R.members(r,l.map(kH))),o.push(l.map(OH)),r=u}),{drilldownFilters:n,drilldownFiltersDisplayValues:o,drilldownDimension:r}};function OH(e){return"categoryDisplayValue"in e?`${e.categoryDisplayValue}`:"categoryValue"in e?`${e.categoryValue}`:""}function kH(e){return"categoryValue"in e?`${e.categoryValue}`:""}const $b=Un({componentName:"DrilldownWidget",trackingConfig:{transparent:!0}})(e=>{var A,$;const{drilldownDimensions:t,initialDimension:r,drilldownSelections:n,config:o,children:a}=e,[l,u]=Q.useState([]),[c,f]=Q.useState(null),p=(A=o==null?void 0:o.contextMenuComponent)!=null?A:Rb,m=($=o==null?void 0:o.breadcrumbsComponent)!=null?$:Ab,{selectDrilldown:h,sliceDrilldownSelections:g,clearDrilldownSelections:_,availableDrilldowns:y,drilldownFilters:x,drilldownFiltersDisplayValues:S,drilldownDimension:E}=RH({drilldownDimensions:t,initialDimension:r,drilldownSelections:n}),T=Q.useMemo(()=>E&&V.jsx(m,{filtersDisplayValues:S,currentDimension:E,clearDrilldownSelections:_,sliceDrilldownSelections:g}),[m,_,E,S,g]),C=N=>{f(N)},w=Q.useCallback(()=>{u([]),f(null)},[u]),M=Q.useCallback(N=>{h(l,N)},[h,l]),O=Q.useCallback(N=>{u(N)},[u]),D=Q.useMemo(()=>[...E?[{sectionTitle:E==null?void 0:E.name}]:[],{sectionTitle:"Drill",items:y.map(N=>({caption:N.name,onClick:()=>M(N)}))}],[E,y,M]);return V.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%"},children:[V.jsx(p,{position:c,itemSections:D,closeContextMenu:w}),E&&!(o!=null&&o.isBreadcrumbsDetached)&&T,V.jsx("div",{style:{flexGrow:1,minWidth:0,minHeight:0},children:a({drilldownFilters:x,drilldownDimension:E,onDataPointsSelected:O,onContextMenu:C,breadcrumbsComponent:o!=null&&o.isBreadcrumbsDetached?T:void 0})})]})});function NH({chartType:e,dataOptions:t,enabled:r}){const[n,o]=Q.useState([]),a=Q.useMemo(()=>{var h;const m=R.isCartesian(e)&&((h=t.category)==null?void 0:h.length)===1||R.isScatter(e);return r&&m},[r,e,t]),l=Q.useMemo(()=>{if(n.length===0)return m=>he(ie({},m),{series:m.series.map(h=>he(ie({},h),{data:h.data.map(g=>he(ie({},g),{selected:!1}))}))});if(R.isScatter(e))return m=>he(ie({},m),{series:m.series.map(h=>he(ie({},h),{data:h.data.map(g=>he(ie({},g),{selected:!n.some(_=>{var y,x;return _.x===g.x&&_.y===g.y&&_.size===g.z&&_.breakByPoint===((y=g.custom)==null?void 0:y.maskedBreakByPoint)&&_.breakByColor===((x=g.custom)==null?void 0:x.maskedBreakByColor)})}))}))});{const m=n.reduce((h,{categoryValue:g})=>(g&&(h[`${g}`]=!0),h),{});return h=>he(ie({},h),{series:h.series.map(g=>he(ie({},g),{data:g.data.map(_=>{var y,x;return m[(x=(y=_.custom)==null?void 0:y.xValue)==null?void 0:x[0]]?_:he(ie({},_),{selected:!0})})}))})}},[n,e]),u=Q.useMemo(()=>m=>{var h;return he(ie({},m),{chart:he(ie({},m.chart),{events:he(ie({},(h=m.chart)==null?void 0:h.events),{click:()=>{o([])}})})})},[]),c=Q.useCallback(m=>(a&&(m=l(m),m=u(m)),m),[l,u,a]),f=Q.useCallback(m=>{a&&o(m)},[a]),p=Q.useCallback(m=>{a&&o([m])},[a]);return{onBeforeRender:c,onDataPointsSelected:f,onDataPointClick:p}}var DH=R._apply,LH=R._arrayMap,AH=R._baseIteratee,IH=Ts,$H=R._baseUnary,zH=R._flatRest;function WH(e){return zH(function(t){return t=LH(t,$H(AH)),IH(function(r){var n=this;return e(t,function(o){return DH(o,n,r)})})})}var FH=WH,jH=R._arrayMap,BH=FH,HH=BH(jH),VH=HH;const zb=R.getDefaultExportFromCjs(VH);function wo(e,t=!1){const r=e.filter(n=>R.isFunction(n));return t?bv(r):zb(r)}var UH=Kc;function qH(e){return e&&e.length?UH(e):[]}var GH=qH;const YH=R.getDefaultExportFromCjs(GH);function XH(e,t){return t.all?[]:e.filter(r=>{var n;return!((n=t.ids)!=null&&n.includes(r.guid))})}function Wb(e,t){return e.find(r=>R.isSameAttribute(r.attribute,t))}function ZH(e,t,r){const n=Wb(r,e);return R.members(e,t.map(o=>`${o}`),!1,n==null?void 0:n.guid,void 0,n==null?void 0:n.backgroundFilter)}function Fb(e,t){return R.haveSameAttribute(e,t)&&"members"in e&&"members"in t&&Pi(e.members,t.members)}function Ks(e,t){const n=e.filter(o=>{const a="value"in o&&!R.isUndefined(o.value),l="x"in o&&!R.isUndefined(o.x)||"y"in o&&!R.isUndefined(o.y),u="boxMedian"in o&&!R.isUndefined(o.boxMedian),c="geoName"in o&&!R.isUndefined(o.geoName);return a||l||u||c}).map(t);return YH(n)}function KH(e,t){return e.category.map(R.translateColumnToAttribure).map((n,o)=>({attribute:n,values:Ks(t,a=>o===0?a.categoryValue:a.categoryDisplayValue)}))}function QH(e,t,r){const n=e.category.map(R.translateColumnToAttribure)[0],o=r;return n?[{attribute:n,values:Ks(t,a=>"x"in a?o.point.series.xAxis.categories[a.x]:a.categoryValue)}]:[]}function JH(e,t,r){const n=r,{level:o}=n.point.options.custom,a=o-1;return e.category.map(R.translateColumnToAttribure).map((u,c)=>({attribute:u,values:a===c?[n.point.name]:[]}))}function eV(e,t,r){const n=[],o=r;return o.type==="mouseup"?(console.warn("No cross-filtering support for multi-selection in scatter chart"),n):(e.x&&!R.isMeasureColumn(e.x)&&n.push({attribute:R.translateColumnToAttribure(e.x),values:[o.point.options.custom.maskedX]}),e.y&&!R.isMeasureColumn(e.y)&&n.push({attribute:R.translateColumnToAttribure(e.y),values:[o.point.options.custom.maskedY]}),e.breakByColor&&!R.isMeasureColumn(e.breakByColor)&&n.push({attribute:R.translateColumnToAttribure(e.breakByColor),values:[o.point.options.custom.maskedBreakByColor]}),e.breakByPoint&&n.push({attribute:R.translateColumnToAttribure(e.breakByPoint),values:[o.point.options.custom.maskedBreakByPoint]}),n)}function tV(e,t){return e.geo.map(R.translateColumnToAttribure).map((n,o)=>({attribute:n,values:Ks(t,a=>a.categories[o])}))}function rV(e,t){return e.geo.map(R.translateColumnToAttribure).map(n=>({attribute:n,values:Ks(t,o=>o.geoName)}))}function nV(e,t,r,n){return e==="plugin"?[]:e==="pivot"?[]:e==="treemap"||e==="sunburst"?JH(t,r,n):R.isCartesian(e)||e==="pie"||e==="funnel"?KH(t,r):R.isBoxplot(e)?QH(t,r,n):R.isScatter(e)?eV(t,r,n):R.isScattermap(e)?tV(t,r):R.isAreamap(e)?rV(t,r):[]}function Gd(e,t){let r=[];return e==="plugin"?r=[]:e==="pivot"?r=[...t.rows||[],...t.columns||[]]:R.isCartesian(e)||R.isCategorical(e)||R.isBoxplot(e)||R.isRange(e)?r=[...t.category]:R.isScatter(e)?r=[t.x,t.y,t.breakByPoint,t.breakByColor].filter(n=>!!(n&&!R.isMeasureColumn(n))):(R.isScattermap(e)||R.isAreamap(e))&&(r=[...t.geo]),r.map(R.translateColumnToAttribure)}function iV(e,t){const r=e.map(({attribute:l,values:u})=>ZH(l,u,t)),n=oV(t,r),o=t.filter(l=>!l.disabled);return n.every(l=>{const u=Wb(o,l.attribute);return u&&Fb(l,u)})?n.map(R.clearMembersFilter):n}function oV(e,t){const r=e.filter(n=>n.locked);return r.length?t.filter(n=>!r.some(o=>R.haveSameAttribute(o,n))):t}var aV=Ov,sV=kv,lV=zv,uV=R.toString_1;function cV(e){return function(t){t=uV(t);var r=sV(t)?lV(t):void 0,n=r?r[0]:t.charAt(0),o=r?aV(r,1).join(""):t.slice(1);return n[e]()+o}}var dV=cV,fV=dV,hV=fV("toUpperCase"),pV=hV,mV=R.toString_1,vV=pV;function gV(e){return vV(mV(e).toLowerCase())}var yV=gV;function bV(e){return function(t){return e==null?void 0:e[t]}}var _V=bV,wV=_V,xV={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},CV=wV(xV),TV=CV,EV=TV,SV=R.toString_1,MV=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,PV="\\u0300-\\u036f",RV="\\ufe20-\\ufe2f",OV="\\u20d0-\\u20ff",kV=PV+RV+OV,NV="["+kV+"]",DV=RegExp(NV,"g");function LV(e){return e=SV(e),e&&e.replace(MV,EV).replace(DV,"")}var AV=LV,IV=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function $V(e){return e.match(IV)||[]}var zV=$V,WV=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function FV(e){return WV.test(e)}var jV=FV,jb="\\ud800-\\udfff",BV="\\u0300-\\u036f",HV="\\ufe20-\\ufe2f",VV="\\u20d0-\\u20ff",UV=BV+HV+VV,Bb="\\u2700-\\u27bf",Hb="a-z\\xdf-\\xf6\\xf8-\\xff",qV="\\xac\\xb1\\xd7\\xf7",GV="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YV="\\u2000-\\u206f",XV=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Vb="A-Z\\xc0-\\xd6\\xd8-\\xde",ZV="\\ufe0e\\ufe0f",Ub=qV+GV+YV+XV,qb="['’]",sm="["+Ub+"]",KV="["+UV+"]",Gb="\\d+",QV="["+Bb+"]",Yb="["+Hb+"]",Xb="[^"+jb+Ub+Gb+Bb+Hb+Vb+"]",JV="\\ud83c[\\udffb-\\udfff]",e6="(?:"+KV+"|"+JV+")",t6="[^"+jb+"]",Zb="(?:\\ud83c[\\udde6-\\uddff]){2}",Kb="[\\ud800-\\udbff][\\udc00-\\udfff]",bi="["+Vb+"]",r6="\\u200d",lm="(?:"+Yb+"|"+Xb+")",n6="(?:"+bi+"|"+Xb+")",um="(?:"+qb+"(?:d|ll|m|re|s|t|ve))?",cm="(?:"+qb+"(?:D|LL|M|RE|S|T|VE))?",Qb=e6+"?",Jb="["+ZV+"]?",i6="(?:"+r6+"(?:"+[t6,Zb,Kb].join("|")+")"+Jb+Qb+")*",o6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",s6=Jb+Qb+i6,l6="(?:"+[QV,Zb,Kb].join("|")+")"+s6,u6=RegExp([bi+"?"+Yb+"+"+um+"(?="+[sm,bi,"$"].join("|")+")",n6+"+"+cm+"(?="+[sm,bi+lm,"$"].join("|")+")",bi+"?"+lm+"+"+um,bi+"+"+cm,a6,o6,Gb,l6].join("|"),"g");function c6(e){return e.match(u6)||[]}var d6=c6,f6=zV,h6=jV,p6=R.toString_1,m6=d6;function v6(e,t,r){return e=p6(e),t=r?void 0:t,t===void 0?h6(e)?m6(e):f6(e):e.match(t)||[]}var g6=v6,y6=fy,b6=AV,_6=g6,w6="['’]",x6=RegExp(w6,"g");function C6(e){return function(t){return y6(_6(b6(t).replace(x6,"")),e,"")}}var T6=C6,E6=yV,S6=T6,M6=S6(function(e,t,r){return t=t.toLowerCase(),e+(r?E6(t):t)}),P6=M6;const R6=R.getDefaultExportFromCjs(P6);function O6(e,t){return Gd(e,t)[0]}function k6(e){return[...R.CARTESIAN_CHART_TYPES,...R.CATEGORICAL_CHART_TYPES,...R.SCATTER_CHART_TYPES,...R.BOXPLOT_CHART_TYPES,...R.RANGE_CHART_TYPES].includes(e)}function N6(e,t){return Gd(e,t).length===1}function D6(e,t,r){if(R.isCartesian(e)||R.isCategorical(e)||R.isBoxplot(e)||R.isRange(e))return he(ie({},t),{category:[r]});if(R.isScatter(e)){const n=t,o=["x","y","breakByPoint","breakByColor"];for(const a of o)if(n[a]&&!R.isMeasureColumn(n[a]))return he(ie({},n),{[a]:r})}return t}function dm(e,t,r){return e.map(n=>{const o=["x","y","breakByPoint","breakByColor"],a=[...o,"size"].some(u=>u in n),l=o.find(u=>r[u]&&!R.isMeasureColumn(r[u]));if(a){const u=t,c=u.type==="mouseup";c&&console.warn("No drilldown support for multi-selection in scatter chart");const f=c?n[l]:u.point.options.custom[R6(`{masked ${l}`)];return{categoryValue:f,categoryDisplayValue:f}}return n})}function L6(e){const{drilldownDimension:t,drilldownFilters:r,onDataPointsSelected:n,onContextMenu:o}=e;return function(l){const{chartType:u,dataOptions:c}=l,f=(m,h)=>{const g=dm(m,h,l.dataOptions);n(g,h),o({left:h.clientX,top:h.clientY})},p=(m,h)=>{const g=dm([m],h,c);n(g,h),o({left:h.clientX,top:h.clientY})};return he(ie({},l),{dataOptions:D6(u,c,t),filters:R.mergeFilters(l.filters,r),onDataPointsSelected:wo([f,l.onDataPointsSelected]),onDataPointContextMenu:wo([p,l.onDataPointContextMenu])})}}const A6=Un({componentName:"ChartWidget"})(e=>{var C;const{app:t}=gt(),{chartType:r,dataSource:n=t==null?void 0:t.defaultDataSource,dataOptions:o,styleOptions:a,drilldownOptions:l,highlightSelectionDisabled:u=!1,highlights:c}=e,T=a||{},{width:f,height:p}=T,m=ai(T,["width","height"]),h=td(r,{hasHeader:!((C=a==null?void 0:a.header)!=null&&C.hidden)}),[g,_]=Q.useState(0),y=Q.useMemo(()=>{var M,O;return(((M=l==null?void 0:l.drilldownSelections)==null?void 0:M.length)||((O=l==null?void 0:l.drilldownDimensions)==null?void 0:O.length))&&k6(r)&&N6(r,o)},[l,r,o]),x=NH({chartType:r,dataOptions:o,enabled:!u&&!y&&!(c!=null&&c.length)});if(!r||!o)return null;const S=he(ie({},e),{dataSet:n,styleOptions:m,refreshCounter:g,onDataPointClick:wo([x.onDataPointClick,e.onDataPointClick]),onDataPointsSelected:wo([x.onDataPointsSelected,e.onDataPointsSelected]),onBeforeRender:wo([x.onBeforeRender,e.onBeforeRender],!0)}),E=(w,M)=>V.jsx(Bd,he(ie({},e),{topSlot:V.jsxs(V.Fragment,{children:[e.topSlot,M]}),dataSetName:n&&R.getDataSourceName(n),onRefresh:()=>_(g+1),children:V.jsx(gb,ie({},w))}));return V.jsx(Vo,{defaultSize:h,size:{width:f,height:p},children:y?V.jsx($b,{drilldownDimensions:(l==null?void 0:l.drilldownDimensions)||[],initialDimension:O6(r,o),drilldownSelections:(l==null?void 0:l.drilldownSelections)||[],config:{isBreadcrumbsDetached:!0},children:w=>{const{breadcrumbsComponent:M}=w,O=L6(w);return E(O(S),M)}}):E(S)})}),I6=Un({componentName:"TableWidget"})(e=>{var m;const[t,r]=Q.useState(0),{app:n}=gt(),{styleOptions:o,dataSource:a=n==null?void 0:n.defaultDataSource,dataOptions:l}=e,u=td("table",{hasHeader:!((m=o==null?void 0:o.header)!=null&&m.hidden)}),h=e.styleOptions||{},{width:c,height:f}=h,p=ai(h,["width","height"]);return l?V.jsx(Vo,{defaultSize:u,size:{width:c,height:f},children:V.jsx(Bd,he(ie({},e),{dataSetName:a&&R.getDataSourceName(a),onRefresh:()=>r(t+1),children:V.jsx(wb,{dataSet:e.dataSource,dataOptions:e.dataOptions,styleOptions:p,filters:e.filters,refreshCounter:t})}))}):null});var $6=R._root,z6=function(){return $6.Date.now()},W6=z6,F6=R.isObject_1,iu=W6,fm=R.toNumber_1,j6="Expected a function",B6=Math.max,H6=Math.min;function V6(e,t,r){var n,o,a,l,u,c,f=0,p=!1,m=!1,h=!0;if(typeof e!="function")throw new TypeError(j6);t=fm(t)||0,F6(r)&&(p=!!r.leading,m="maxWait"in r,a=m?B6(fm(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function g(M){var O=n,D=o;return n=o=void 0,f=M,l=e.apply(D,O),l}function _(M){return f=M,u=setTimeout(S,t),p?g(M):l}function y(M){var O=M-c,D=M-f,A=t-O;return m?H6(A,a-D):A}function x(M){var O=M-c,D=M-f;return c===void 0||O>=t||O<0||m&&D>=a}function S(){var M=iu();if(x(M))return E(M);u=setTimeout(S,y(M))}function E(M){return u=void 0,h&&n?g(M):(n=o=void 0,l)}function T(){u!==void 0&&clearTimeout(u),f=0,n=c=o=u=void 0}function C(){return u===void 0?l:E(iu())}function w(){var M=iu(),O=x(M);if(n=arguments,o=this,c=M,O){if(u===void 0)return _(c);if(m)return clearTimeout(u),u=setTimeout(S,t),g(c)}return u===void 0&&(u=setTimeout(S,t)),l}return w.cancel=T,w.flush=C,w}var U6=V6;const q6=R.getDefaultExportFromCjs(U6);class ji{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(t){const r={listener:t};return this.listeners.add(r),this.onSubscribe(),()=>{this.listeners.delete(r),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}const $o=typeof window=="undefined"||"Deno"in window;function tr(){}function G6(e,t){return typeof e=="function"?e(t):e}function mc(e){return typeof e=="number"&&e>=0&&e!==1/0}function e_(e,t){return Math.max(e+(t||0)-Date.now(),0)}function vo(e,t,r){return oa(e)?typeof t=="function"?he(ie({},r),{queryKey:e,queryFn:t}):he(ie({},t),{queryKey:e}):e}function Y6(e,t,r){return oa(e)?he(ie({},t),{mutationKey:e}):typeof e=="function"?he(ie({},t),{mutationFn:e}):ie({},e)}function dn(e,t,r){return oa(e)?[he(ie({},t),{queryKey:e}),r]:[e||{},t]}function hm(e,t){const{type:r="all",exact:n,fetchStatus:o,predicate:a,queryKey:l,stale:u}=e;if(oa(l)){if(n){if(t.queryHash!==Yd(l,t.options))return!1}else if(!xi(t.queryKey,l))return!1}if(r!=="all"){const c=t.isActive();if(r==="active"&&!c||r==="inactive"&&c)return!1}return!(typeof u=="boolean"&&t.isStale()!==u||typeof o!="undefined"&&o!==t.state.fetchStatus||a&&!a(t))}function pm(e,t){const{exact:r,fetching:n,predicate:o,mutationKey:a}=e;if(oa(a)){if(!t.options.mutationKey)return!1;if(r){if(zn(t.options.mutationKey)!==zn(a))return!1}else if(!xi(t.options.mutationKey,a))return!1}return!(typeof n=="boolean"&&t.state.status==="loading"!==n||o&&!o(t))}function Yd(e,t){return((t==null?void 0:t.queryKeyHashFn)||zn)(e)}function zn(e){return JSON.stringify(e,(t,r)=>vc(r)?Object.keys(r).sort().reduce((n,o)=>(n[o]=r[o],n),{}):r)}function xi(e,t){return t_(e,t)}function t_(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(r=>!t_(e[r],t[r])):!1}function r_(e,t){if(e===t)return e;const r=mm(e)&&mm(t);if(r||vc(e)&&vc(t)){const n=r?e.length:Object.keys(e).length,o=r?t:Object.keys(t),a=o.length,l=r?[]:{};let u=0;for(let c=0;c<a;c++){const f=r?c:o[c];l[f]=r_(e[f],t[f]),l[f]===e[f]&&u++}return n===a&&u===n?e:l}return t}function fs(e,t){if(e&&!t||t&&!e)return!1;for(const r in e)if(e[r]!==t[r])return!1;return!0}function mm(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function vc(e){if(!vm(e))return!1;const t=e.constructor;if(typeof t=="undefined")return!0;const r=t.prototype;return!(!vm(r)||!r.hasOwnProperty("isPrototypeOf"))}function vm(e){return Object.prototype.toString.call(e)==="[object Object]"}function oa(e){return Array.isArray(e)}function n_(e){return new Promise(t=>{setTimeout(t,e)})}function gm(e){n_(0).then(e)}function X6(){if(typeof AbortController=="function")return new AbortController}function gc(e,t,r){return r.isDataEqual!=null&&r.isDataEqual(e,t)?e:typeof r.structuralSharing=="function"?r.structuralSharing(e,t):r.structuralSharing!==!1?r_(e,t):t}class Z6 extends ji{constructor(){super(),this.setup=t=>{if(!$o&&window.addEventListener){const r=()=>t();return window.addEventListener("visibilitychange",r,!1),window.addEventListener("focus",r,!1),()=>{window.removeEventListener("visibilitychange",r),window.removeEventListener("focus",r)}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setFocused(n):this.onFocus()})}setFocused(t){this.focused!==t&&(this.focused=t,this.onFocus())}onFocus(){this.listeners.forEach(({listener:t})=>{t()})}isFocused(){return typeof this.focused=="boolean"?this.focused:typeof document=="undefined"?!0:[void 0,"visible","prerender"].includes(document.visibilityState)}}const hs=new Z6,ym=["online","offline"];class K6 extends ji{constructor(){super(),this.setup=t=>{if(!$o&&window.addEventListener){const r=()=>t();return ym.forEach(n=>{window.addEventListener(n,r,!1)}),()=>{ym.forEach(n=>{window.removeEventListener(n,r)})}}}}onSubscribe(){this.cleanup||this.setEventListener(this.setup)}onUnsubscribe(){if(!this.hasListeners()){var t;(t=this.cleanup)==null||t.call(this),this.cleanup=void 0}}setEventListener(t){var r;this.setup=t,(r=this.cleanup)==null||r.call(this),this.cleanup=t(n=>{typeof n=="boolean"?this.setOnline(n):this.onOnline()})}setOnline(t){this.online!==t&&(this.online=t,this.onOnline())}onOnline(){this.listeners.forEach(({listener:t})=>{t()})}isOnline(){return typeof this.online=="boolean"?this.online:typeof navigator=="undefined"||typeof navigator.onLine=="undefined"?!0:navigator.onLine}}const ps=new K6;function Q6(e){return Math.min(1e3*Vt(2,e),3e4)}function Qs(e){return(e!=null?e:"online")==="online"?ps.isOnline():!0}class i_{constructor(t){this.revert=t==null?void 0:t.revert,this.silent=t==null?void 0:t.silent}}function Ya(e){return e instanceof i_}function o_(e){let t=!1,r=0,n=!1,o,a,l;const u=new Promise((x,S)=>{a=x,l=S}),c=x=>{n||(g(new i_(x)),e.abort==null||e.abort())},f=()=>{t=!0},p=()=>{t=!1},m=()=>!hs.isFocused()||e.networkMode!=="always"&&!ps.isOnline(),h=x=>{n||(n=!0,e.onSuccess==null||e.onSuccess(x),o==null||o(),a(x))},g=x=>{n||(n=!0,e.onError==null||e.onError(x),o==null||o(),l(x))},_=()=>new Promise(x=>{o=S=>{const E=n||!m();return E&&x(S),E},e.onPause==null||e.onPause()}).then(()=>{o=void 0,n||e.onContinue==null||e.onContinue()}),y=()=>{if(n)return;let x;try{x=e.fn()}catch(S){x=Promise.reject(S)}Promise.resolve(x).then(h).catch(S=>{var E,T;if(n)return;const C=(E=e.retry)!=null?E:3,w=(T=e.retryDelay)!=null?T:Q6,M=typeof w=="function"?w(r,S):w,O=C===!0||typeof C=="number"&&r<C||typeof C=="function"&&C(r,S);if(t||!O){g(S);return}r++,e.onFail==null||e.onFail(r,S),n_(M).then(()=>{if(m())return _()}).then(()=>{t?g(S):y()})})};return Qs(e.networkMode)?y():_().then(y),{promise:u,cancel:c,continue:()=>(o==null?void 0:o())?u:Promise.resolve(),cancelRetry:f,continueRetry:p}}const Xd=console;function J6(){let e=[],t=0,r=p=>{p()},n=p=>{p()};const o=p=>{let m;t++;try{m=p()}finally{t--,t||u()}return m},a=p=>{t?e.push(p):gm(()=>{r(p)})},l=p=>(...m)=>{a(()=>{p(...m)})},u=()=>{const p=e;e=[],p.length&&gm(()=>{n(()=>{p.forEach(m=>{r(m)})})})};return{batch:o,batchCalls:l,schedule:a,setNotifyFunction:p=>{r=p},setBatchNotifyFunction:p=>{n=p}}}const st=J6();class a_{destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),mc(this.cacheTime)&&(this.gcTimeout=setTimeout(()=>{this.optionalRemove()},this.cacheTime))}updateCacheTime(t){this.cacheTime=Math.max(this.cacheTime||0,t!=null?t:$o?1/0:5*60*1e3)}clearGcTimeout(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)}}class e8 extends a_{constructor(t){super(),this.abortSignalConsumed=!1,this.defaultOptions=t.defaultOptions,this.setOptions(t.options),this.observers=[],this.cache=t.cache,this.logger=t.logger||Xd,this.queryKey=t.queryKey,this.queryHash=t.queryHash,this.initialState=t.state||t8(this.options),this.state=this.initialState,this.scheduleGc()}get meta(){return this.options.meta}setOptions(t){this.options=ie(ie({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&this.cache.remove(this)}setData(t,r){const n=gc(this.state.data,t,this.options);return this.dispatch({data:n,type:"success",dataUpdatedAt:r==null?void 0:r.updatedAt,manual:r==null?void 0:r.manual}),n}setState(t,r){this.dispatch({type:"setState",state:t,setStateOptions:r})}cancel(t){var r;const n=this.promise;return(r=this.retryer)==null||r.cancel(t),n?n.then(tr).catch(tr):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.initialState)}isActive(){return this.observers.some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!e_(this.state.dataUpdatedAt,t)}onFocus(){var t;const r=this.observers.find(n=>n.shouldFetchOnWindowFocus());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}onOnline(){var t;const r=this.observers.find(n=>n.shouldFetchOnReconnect());r&&r.refetch({cancelRefetch:!1}),(t=this.retryer)==null||t.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(r=>r!==t),this.observers.length||(this.retryer&&(this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.scheduleGc()),this.cache.notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.dispatch({type:"invalidate"})}fetch(t,r){var n,o;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&r!=null&&r.cancelRefetch)this.cancel({silent:!0});else if(this.promise){var a;return(a=this.retryer)==null||a.continueRetry(),this.promise}}if(t&&this.setOptions(t),!this.options.queryFn){const g=this.observers.find(_=>_.options.queryFn);g&&this.setOptions(g.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||this.logger.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const l=X6(),u={queryKey:this.queryKey,pageParam:void 0,meta:this.meta},c=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>{if(l)return this.abortSignalConsumed=!0,l.signal}})};c(u);const f=()=>this.options.queryFn?(this.abortSignalConsumed=!1,this.options.queryFn(u)):Promise.reject("Missing queryFn for queryKey '"+this.options.queryHash+"'"),p={fetchOptions:r,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:f};if(c(p),(n=this.options.behavior)==null||n.onFetch(p),this.revertState=this.state,this.state.fetchStatus==="idle"||this.state.fetchMeta!==((o=p.fetchOptions)==null?void 0:o.meta)){var m;this.dispatch({type:"fetch",meta:(m=p.fetchOptions)==null?void 0:m.meta})}const h=g=>{if(Ya(g)&&g.silent||this.dispatch({type:"error",error:g}),!Ya(g)){var _,y,x,S;(_=(y=this.cache.config).onError)==null||_.call(y,g,this),(x=(S=this.cache.config).onSettled)==null||x.call(S,this.state.data,g,this),process.env.NODE_ENV!=="production"&&this.logger.error(g)}this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return this.retryer=o_({fn:p.fetchFn,abort:l==null?void 0:l.abort.bind(l),onSuccess:g=>{var _,y,x,S;if(typeof g=="undefined"){process.env.NODE_ENV!=="production"&&this.logger.error("Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: "+this.queryHash),h(new Error(this.queryHash+" data is undefined"));return}this.setData(g),(_=(y=this.cache.config).onSuccess)==null||_.call(y,g,this),(x=(S=this.cache.config).onSettled)==null||x.call(S,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:h,onFail:(g,_)=>{this.dispatch({type:"failed",failureCount:g,error:_})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:p.options.retry,retryDelay:p.options.retryDelay,networkMode:p.options.networkMode}),this.promise=this.retryer.promise,this.promise}dispatch(t){const r=n=>{var o,a;switch(t.type){case"failed":return he(ie({},n),{fetchFailureCount:t.failureCount,fetchFailureReason:t.error});case"pause":return he(ie({},n),{fetchStatus:"paused"});case"continue":return he(ie({},n),{fetchStatus:"fetching"});case"fetch":return ie(he(ie({},n),{fetchFailureCount:0,fetchFailureReason:null,fetchMeta:(o=t.meta)!=null?o:null,fetchStatus:Qs(this.options.networkMode)?"fetching":"paused"}),!n.dataUpdatedAt&&{error:null,status:"loading"});case"success":return ie(he(ie({},n),{data:t.data,dataUpdateCount:n.dataUpdateCount+1,dataUpdatedAt:(a=t.dataUpdatedAt)!=null?a:Date.now(),error:null,isInvalidated:!1,status:"success"}),!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null});case"error":const l=t.error;return Ya(l)&&l.revert&&this.revertState?he(ie({},this.revertState),{fetchStatus:"idle"}):he(ie({},n),{error:l,errorUpdateCount:n.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:n.fetchFailureCount+1,fetchFailureReason:l,fetchStatus:"idle",status:"error"});case"invalidate":return he(ie({},n),{isInvalidated:!0});case"setState":return ie(ie({},n),t.state)}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onQueryUpdate(t)}),this.cache.notify({query:this,type:"updated",action:t})})}}function t8(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,r=typeof t!="undefined",n=r?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n!=null?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"loading",fetchStatus:"idle"}}class r8 extends ji{constructor(t){super(),this.config=t||{},this.queries=[],this.queriesMap={}}build(t,r,n){var o;const a=r.queryKey,l=(o=r.queryHash)!=null?o:Yd(a,r);let u=this.get(l);return u||(u=new e8({cache:this,logger:t.getLogger(),queryKey:a,queryHash:l,options:t.defaultQueryOptions(r),state:n,defaultOptions:t.getQueryDefaults(a)}),this.add(u)),u}add(t){this.queriesMap[t.queryHash]||(this.queriesMap[t.queryHash]=t,this.queries.push(t),this.notify({type:"added",query:t}))}remove(t){const r=this.queriesMap[t.queryHash];r&&(t.destroy(),this.queries=this.queries.filter(n=>n!==t),r===t&&delete this.queriesMap[t.queryHash],this.notify({type:"removed",query:t}))}clear(){st.batch(()=>{this.queries.forEach(t=>{this.remove(t)})})}get(t){return this.queriesMap[t]}getAll(){return this.queries}find(t,r){const[n]=dn(t,r);return typeof n.exact=="undefined"&&(n.exact=!0),this.queries.find(o=>hm(n,o))}findAll(t,r){const[n]=dn(t,r);return Object.keys(n).length>0?this.queries.filter(o=>hm(n,o)):this.queries}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}onFocus(){st.batch(()=>{this.queries.forEach(t=>{t.onFocus()})})}onOnline(){st.batch(()=>{this.queries.forEach(t=>{t.onOnline()})})}}class n8 extends a_{constructor(t){super(),this.defaultOptions=t.defaultOptions,this.mutationId=t.mutationId,this.mutationCache=t.mutationCache,this.logger=t.logger||Xd,this.observers=[],this.state=t.state||s_(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=ie(ie({},this.defaultOptions),t),this.updateCacheTime(this.options.cacheTime)}get meta(){return this.options.meta}setState(t){this.dispatch({type:"setState",state:t})}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),this.mutationCache.notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){this.observers=this.observers.filter(r=>r!==t),this.scheduleGc(),this.mutationCache.notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){this.observers.length||(this.state.status==="loading"?this.scheduleGc():this.mutationCache.remove(this))}continue(){var t,r;return(t=(r=this.retryer)==null?void 0:r.continue())!=null?t:this.execute()}execute(){return yr(this,null,function*(){const t=()=>{var O;return this.retryer=o_({fn:()=>this.options.mutationFn?this.options.mutationFn(this.state.variables):Promise.reject("No mutationFn found"),onFail:(D,A)=>{this.dispatch({type:"failed",failureCount:D,error:A})},onPause:()=>{this.dispatch({type:"pause"})},onContinue:()=>{this.dispatch({type:"continue"})},retry:(O=this.options.retry)!=null?O:0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode}),this.retryer.promise},r=this.state.status==="loading";try{var n,o,a,l,u,c,f,p;if(!r){var m,h,g,_;this.dispatch({type:"loading",variables:this.options.variables}),yield(m=(h=this.mutationCache.config).onMutate)==null?void 0:m.call(h,this.state.variables,this);const D=yield(g=(_=this.options).onMutate)==null?void 0:g.call(_,this.state.variables);D!==this.state.context&&this.dispatch({type:"loading",context:D,variables:this.state.variables})}const O=yield t();return yield(n=(o=this.mutationCache.config).onSuccess)==null?void 0:n.call(o,O,this.state.variables,this.state.context,this),yield(a=(l=this.options).onSuccess)==null?void 0:a.call(l,O,this.state.variables,this.state.context),yield(u=(c=this.mutationCache.config).onSettled)==null?void 0:u.call(c,O,null,this.state.variables,this.state.context,this),yield(f=(p=this.options).onSettled)==null?void 0:f.call(p,O,null,this.state.variables,this.state.context),this.dispatch({type:"success",data:O}),O}catch(O){try{var y,x,S,E,T,C,w,M;throw yield(y=(x=this.mutationCache.config).onError)==null?void 0:y.call(x,O,this.state.variables,this.state.context,this),process.env.NODE_ENV!=="production"&&this.logger.error(O),yield(S=(E=this.options).onError)==null?void 0:S.call(E,O,this.state.variables,this.state.context),yield(T=(C=this.mutationCache.config).onSettled)==null?void 0:T.call(C,void 0,O,this.state.variables,this.state.context,this),yield(w=(M=this.options).onSettled)==null?void 0:w.call(M,void 0,O,this.state.variables,this.state.context),O}finally{this.dispatch({type:"error",error:O})}}})}dispatch(t){const r=n=>{switch(t.type){case"failed":return he(ie({},n),{failureCount:t.failureCount,failureReason:t.error});case"pause":return he(ie({},n),{isPaused:!0});case"continue":return he(ie({},n),{isPaused:!1});case"loading":return he(ie({},n),{context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!Qs(this.options.networkMode),status:"loading",variables:t.variables});case"success":return he(ie({},n),{data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1});case"error":return he(ie({},n),{data:void 0,error:t.error,failureCount:n.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"});case"setState":return ie(ie({},n),t.state)}};this.state=r(this.state),st.batch(()=>{this.observers.forEach(n=>{n.onMutationUpdate(t)}),this.mutationCache.notify({mutation:this,type:"updated",action:t})})}}function s_(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0}}class i8 extends ji{constructor(t){super(),this.config=t||{},this.mutations=[],this.mutationId=0}build(t,r,n){const o=new n8({mutationCache:this,logger:t.getLogger(),mutationId:++this.mutationId,options:t.defaultMutationOptions(r),state:n,defaultOptions:r.mutationKey?t.getMutationDefaults(r.mutationKey):void 0});return this.add(o),o}add(t){this.mutations.push(t),this.notify({type:"added",mutation:t})}remove(t){this.mutations=this.mutations.filter(r=>r!==t),this.notify({type:"removed",mutation:t})}clear(){st.batch(()=>{this.mutations.forEach(t=>{this.remove(t)})})}getAll(){return this.mutations}find(t){return typeof t.exact=="undefined"&&(t.exact=!0),this.mutations.find(r=>pm(t,r))}findAll(t){return this.mutations.filter(r=>pm(t,r))}notify(t){st.batch(()=>{this.listeners.forEach(({listener:r})=>{r(t)})})}resumePausedMutations(){var t;return this.resuming=((t=this.resuming)!=null?t:Promise.resolve()).then(()=>{const r=this.mutations.filter(n=>n.state.isPaused);return st.batch(()=>r.reduce((n,o)=>n.then(()=>o.continue().catch(tr)),Promise.resolve()))}).then(()=>{this.resuming=void 0}),this.resuming}}function o8(){return{onFetch:e=>{e.fetchFn=()=>{var t,r,n,o,a,l;const u=(t=e.fetchOptions)==null||(r=t.meta)==null?void 0:r.refetchPage,c=(n=e.fetchOptions)==null||(o=n.meta)==null?void 0:o.fetchMore,f=c==null?void 0:c.pageParam,p=(c==null?void 0:c.direction)==="forward",m=(c==null?void 0:c.direction)==="backward",h=((a=e.state.data)==null?void 0:a.pages)||[],g=((l=e.state.data)==null?void 0:l.pageParams)||[];let _=g,y=!1;const x=M=>{Object.defineProperty(M,"signal",{enumerable:!0,get:()=>{var O;if((O=e.signal)!=null&&O.aborted)y=!0;else{var D;(D=e.signal)==null||D.addEventListener("abort",()=>{y=!0})}return e.signal}})},S=e.options.queryFn||(()=>Promise.reject("Missing queryFn for queryKey '"+e.options.queryHash+"'")),E=(M,O,D,A)=>(_=A?[O,..._]:[..._,O],A?[D,...M]:[...M,D]),T=(M,O,D,A)=>{if(y)return Promise.reject("Cancelled");if(typeof D=="undefined"&&!O&&M.length)return Promise.resolve(M);const $={queryKey:e.queryKey,pageParam:D,meta:e.options.meta};x($);const N=S($);return Promise.resolve(N).then(F=>E(M,D,F,A))};let C;if(!h.length)C=T([]);else if(p){const M=typeof f!="undefined",O=M?f:bm(e.options,h);C=T(h,M,O)}else if(m){const M=typeof f!="undefined",O=M?f:a8(e.options,h);C=T(h,M,O,!0)}else{_=[];const M=typeof e.options.getNextPageParam=="undefined";C=(u&&h[0]?u(h[0],0,h):!0)?T([],M,g[0]):Promise.resolve(E([],g[0],h[0]));for(let D=1;D<h.length;D++)C=C.then(A=>{if(u&&h[D]?u(h[D],D,h):!0){const N=M?g[D]:bm(e.options,A);return T(A,M,N)}return Promise.resolve(E(A,g[D],h[D]))})}return C.then(M=>({pages:M,pageParams:_}))}}}}function bm(e,t){return e.getNextPageParam==null?void 0:e.getNextPageParam(t[t.length-1],t)}function a8(e,t){return e.getPreviousPageParam==null?void 0:e.getPreviousPageParam(t[0],t)}class s8{constructor(t={}){this.queryCache=t.queryCache||new r8,this.mutationCache=t.mutationCache||new i8,this.logger=t.logger||Xd,this.defaultOptions=t.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[],this.mountCount=0,process.env.NODE_ENV!=="production"&&t.logger&&this.logger.error("Passing a custom logger has been deprecated and will be removed in the next major version.")}mount(){this.mountCount++,this.mountCount===1&&(this.unsubscribeFocus=hs.subscribe(()=>{hs.isFocused()&&(this.resumePausedMutations(),this.queryCache.onFocus())}),this.unsubscribeOnline=ps.subscribe(()=>{ps.isOnline()&&(this.resumePausedMutations(),this.queryCache.onOnline())}))}unmount(){var t,r;this.mountCount--,this.mountCount===0&&((t=this.unsubscribeFocus)==null||t.call(this),this.unsubscribeFocus=void 0,(r=this.unsubscribeOnline)==null||r.call(this),this.unsubscribeOnline=void 0)}isFetching(t,r){const[n]=dn(t,r);return n.fetchStatus="fetching",this.queryCache.findAll(n).length}isMutating(t){return this.mutationCache.findAll(he(ie({},t),{fetching:!0})).length}getQueryData(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state.data}ensureQueryData(t,r,n){const o=vo(t,r,n),a=this.getQueryData(o.queryKey);return a?Promise.resolve(a):this.fetchQuery(o)}getQueriesData(t){return this.getQueryCache().findAll(t).map(({queryKey:r,state:n})=>{const o=n.data;return[r,o]})}setQueryData(t,r,n){const o=this.queryCache.find(t),a=o==null?void 0:o.state.data,l=G6(r,a);if(typeof l=="undefined")return;const u=vo(t),c=this.defaultQueryOptions(u);return this.queryCache.build(this,c).setData(l,he(ie({},n),{manual:!0}))}setQueriesData(t,r,n){return st.batch(()=>this.getQueryCache().findAll(t).map(({queryKey:o})=>[o,this.setQueryData(o,r,n)]))}getQueryState(t,r){var n;return(n=this.queryCache.find(t,r))==null?void 0:n.state}removeQueries(t,r){const[n]=dn(t,r),o=this.queryCache;st.batch(()=>{o.findAll(n).forEach(a=>{o.remove(a)})})}resetQueries(t,r,n){const[o,a]=dn(t,r,n),l=this.queryCache,u=ie({type:"active"},o);return st.batch(()=>(l.findAll(o).forEach(c=>{c.reset()}),this.refetchQueries(u,a)))}cancelQueries(t,r,n){const[o,a={}]=dn(t,r,n);typeof a.revert=="undefined"&&(a.revert=!0);const l=st.batch(()=>this.queryCache.findAll(o).map(u=>u.cancel(a)));return Promise.all(l).then(tr).catch(tr)}invalidateQueries(t,r,n){const[o,a]=dn(t,r,n);return st.batch(()=>{var l,u;if(this.queryCache.findAll(o).forEach(f=>{f.invalidate()}),o.refetchType==="none")return Promise.resolve();const c=he(ie({},o),{type:(l=(u=o.refetchType)!=null?u:o.type)!=null?l:"active"});return this.refetchQueries(c,a)})}refetchQueries(t,r,n){const[o,a]=dn(t,r,n),l=st.batch(()=>this.queryCache.findAll(o).filter(c=>!c.isDisabled()).map(c=>{var f;return c.fetch(void 0,he(ie({},a),{cancelRefetch:(f=a==null?void 0:a.cancelRefetch)!=null?f:!0,meta:{refetchPage:o.refetchPage}}))}));let u=Promise.all(l).then(tr);return a!=null&&a.throwOnError||(u=u.catch(tr)),u}fetchQuery(t,r,n){const o=vo(t,r,n),a=this.defaultQueryOptions(o);typeof a.retry=="undefined"&&(a.retry=!1);const l=this.queryCache.build(this,a);return l.isStaleByTime(a.staleTime)?l.fetch(a):Promise.resolve(l.state.data)}prefetchQuery(t,r,n){return this.fetchQuery(t,r,n).then(tr).catch(tr)}fetchInfiniteQuery(t,r,n){const o=vo(t,r,n);return o.behavior=o8(),this.fetchQuery(o)}prefetchInfiniteQuery(t,r,n){return this.fetchInfiniteQuery(t,r,n).then(tr).catch(tr)}resumePausedMutations(){return this.mutationCache.resumePausedMutations()}getQueryCache(){return this.queryCache}getMutationCache(){return this.mutationCache}getLogger(){return this.logger}getDefaultOptions(){return this.defaultOptions}setDefaultOptions(t){this.defaultOptions=t}setQueryDefaults(t,r){const n=this.queryDefaults.find(o=>zn(t)===zn(o.queryKey));n?n.defaultOptions=r:this.queryDefaults.push({queryKey:t,defaultOptions:r})}getQueryDefaults(t){if(!t)return;const r=this.queryDefaults.find(n=>xi(t,n.queryKey));return process.env.NODE_ENV!=="production"&&this.queryDefaults.filter(o=>xi(t,o.queryKey)).length>1&&this.logger.error("[QueryClient] Several query defaults match with key '"+JSON.stringify(t)+"'. The first matching query defaults are used. Please check how query defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetquerydefaults."),r==null?void 0:r.defaultOptions}setMutationDefaults(t,r){const n=this.mutationDefaults.find(o=>zn(t)===zn(o.mutationKey));n?n.defaultOptions=r:this.mutationDefaults.push({mutationKey:t,defaultOptions:r})}getMutationDefaults(t){if(!t)return;const r=this.mutationDefaults.find(n=>xi(t,n.mutationKey));return process.env.NODE_ENV!=="production"&&this.mutationDefaults.filter(o=>xi(t,o.mutationKey)).length>1&&this.logger.error("[QueryClient] Several mutation defaults match with key '"+JSON.stringify(t)+"'. The first matching mutation defaults are used. Please check how mutation defaults are registered. Order does matter here. cf. https://react-query.tanstack.com/reference/QueryClient#queryclientsetmutationdefaults."),r==null?void 0:r.defaultOptions}defaultQueryOptions(t){if(t!=null&&t._defaulted)return t;const r=he(ie(ie(ie({},this.defaultOptions.queries),this.getQueryDefaults(t==null?void 0:t.queryKey)),t),{_defaulted:!0});return!r.queryHash&&r.queryKey&&(r.queryHash=Yd(r.queryKey,r)),typeof r.refetchOnReconnect=="undefined"&&(r.refetchOnReconnect=r.networkMode!=="always"),typeof r.useErrorBoundary=="undefined"&&(r.useErrorBoundary=!!r.suspense),r}defaultMutationOptions(t){return t!=null&&t._defaulted?t:he(ie(ie(ie({},this.defaultOptions.mutations),this.getMutationDefaults(t==null?void 0:t.mutationKey)),t),{_defaulted:!0})}clear(){this.queryCache.clear(),this.mutationCache.clear()}}class l8 extends ji{constructor(t,r){super(),this.client=t,this.options=r,this.trackedProps=new Set,this.selectError=null,this.bindMethods(),this.setOptions(r)}bindMethods(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.currentQuery.addObserver(this),_m(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return yc(this.currentQuery,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return yc(this.currentQuery,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.clearStaleTimeout(),this.clearRefetchInterval(),this.currentQuery.removeObserver(this)}setOptions(t,r){const n=this.options,o=this.currentQuery;if(this.options=this.client.defaultQueryOptions(t),process.env.NODE_ENV!=="production"&&typeof(t==null?void 0:t.isDataEqual)!="undefined"&&this.client.getLogger().error("The isDataEqual option has been deprecated and will be removed in the next major version. You can achieve the same functionality by passing a function as the structuralSharing option"),fs(n,this.options)||this.client.getQueryCache().notify({type:"observerOptionsUpdated",query:this.currentQuery,observer:this}),typeof this.options.enabled!="undefined"&&typeof this.options.enabled!="boolean")throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();const a=this.hasListeners();a&&wm(this.currentQuery,o,this.options,n)&&this.executeFetch(),this.updateResult(r),a&&(this.currentQuery!==o||this.options.enabled!==n.enabled||this.options.staleTime!==n.staleTime)&&this.updateStaleTimeout();const l=this.computeRefetchInterval();a&&(this.currentQuery!==o||this.options.enabled!==n.enabled||l!==this.currentRefetchInterval)&&this.updateRefetchInterval(l)}getOptimisticResult(t){const r=this.client.getQueryCache().build(this.client,t),n=this.createResult(r,t);return c8(this,n,t)&&(this.currentResult=n,this.currentResultOptions=this.options,this.currentResultState=this.currentQuery.state),n}getCurrentResult(){return this.currentResult}trackResult(t){const r={};return Object.keys(t).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackedProps.add(n),t[n])})}),r}getCurrentQuery(){return this.currentQuery}remove(){this.client.getQueryCache().remove(this.currentQuery)}refetch(n={}){var o=n,{refetchPage:t}=o,r=ai(o,["refetchPage"]);return this.fetch(he(ie({},r),{meta:{refetchPage:t}}))}fetchOptimistic(t){const r=this.client.defaultQueryOptions(t),n=this.client.getQueryCache().build(this.client,r);return n.isFetchingOptimistic=!0,n.fetch().then(()=>this.createResult(n,r))}fetch(t){var r;return this.executeFetch(he(ie({},t),{cancelRefetch:(r=t.cancelRefetch)!=null?r:!0})).then(()=>(this.updateResult(),this.currentResult))}executeFetch(t){this.updateQuery();let r=this.currentQuery.fetch(this.options,t);return t!=null&&t.throwOnError||(r=r.catch(tr)),r}updateStaleTimeout(){if(this.clearStaleTimeout(),$o||this.currentResult.isStale||!mc(this.options.staleTime))return;const r=e_(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout(()=>{this.currentResult.isStale||this.updateResult()},r)}computeRefetchInterval(){var t;return typeof this.options.refetchInterval=="function"?this.options.refetchInterval(this.currentResult.data,this.currentQuery):(t=this.options.refetchInterval)!=null?t:!1}updateRefetchInterval(t){this.clearRefetchInterval(),this.currentRefetchInterval=t,!($o||this.options.enabled===!1||!mc(this.currentRefetchInterval)||this.currentRefetchInterval===0)&&(this.refetchIntervalId=setInterval(()=>{(this.options.refetchIntervalInBackground||hs.isFocused())&&this.executeFetch()},this.currentRefetchInterval))}updateTimers(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())}clearStaleTimeout(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)}clearRefetchInterval(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)}createResult(t,r){const n=this.currentQuery,o=this.options,a=this.currentResult,l=this.currentResultState,u=this.currentResultOptions,c=t!==n,f=c?t.state:this.currentQueryInitialState,p=c?this.currentResult:this.previousQueryResult,{state:m}=t;let{dataUpdatedAt:h,error:g,errorUpdatedAt:_,fetchStatus:y,status:x}=m,S=!1,E=!1,T;if(r._optimisticResults){const D=this.hasListeners(),A=!D&&_m(t,r),$=D&&wm(t,n,r,o);(A||$)&&(y=Qs(t.options.networkMode)?"fetching":"paused",h||(x="loading")),r._optimisticResults==="isRestoring"&&(y="idle")}if(r.keepPreviousData&&!m.dataUpdatedAt&&p!=null&&p.isSuccess&&x!=="error")T=p.data,h=p.dataUpdatedAt,x=p.status,S=!0;else if(r.select&&typeof m.data!="undefined")if(a&&m.data===(l==null?void 0:l.data)&&r.select===this.selectFn)T=this.selectResult;else try{this.selectFn=r.select,T=r.select(m.data),T=gc(a==null?void 0:a.data,T,r),this.selectResult=T,this.selectError=null}catch(D){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(D),this.selectError=D}else T=m.data;if(typeof r.placeholderData!="undefined"&&typeof T=="undefined"&&x==="loading"){let D;if(a!=null&&a.isPlaceholderData&&r.placeholderData===(u==null?void 0:u.placeholderData))D=a.data;else if(D=typeof r.placeholderData=="function"?r.placeholderData():r.placeholderData,r.select&&typeof D!="undefined")try{D=r.select(D),this.selectError=null}catch(A){process.env.NODE_ENV!=="production"&&this.client.getLogger().error(A),this.selectError=A}typeof D!="undefined"&&(x="success",T=gc(a==null?void 0:a.data,D,r),E=!0)}this.selectError&&(g=this.selectError,T=this.selectResult,_=Date.now(),x="error");const C=y==="fetching",w=x==="loading",M=x==="error";return{status:x,fetchStatus:y,isLoading:w,isSuccess:x==="success",isError:M,isInitialLoading:w&&C,data:T,dataUpdatedAt:h,error:g,errorUpdatedAt:_,failureCount:m.fetchFailureCount,failureReason:m.fetchFailureReason,errorUpdateCount:m.errorUpdateCount,isFetched:m.dataUpdateCount>0||m.errorUpdateCount>0,isFetchedAfterMount:m.dataUpdateCount>f.dataUpdateCount||m.errorUpdateCount>f.errorUpdateCount,isFetching:C,isRefetching:C&&!w,isLoadingError:M&&m.dataUpdatedAt===0,isPaused:y==="paused",isPlaceholderData:E,isPreviousData:S,isRefetchError:M&&m.dataUpdatedAt!==0,isStale:Zd(t,r),refetch:this.refetch,remove:this.remove}}updateResult(t){const r=this.currentResult,n=this.createResult(this.currentQuery,this.options);if(this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,fs(n,r))return;this.currentResult=n;const o={cache:!0},a=()=>{if(!r)return!0;const{notifyOnChangeProps:l}=this.options,u=typeof l=="function"?l():l;if(u==="all"||!u&&!this.trackedProps.size)return!0;const c=new Set(u!=null?u:this.trackedProps);return this.options.useErrorBoundary&&c.add("error"),Object.keys(this.currentResult).some(f=>{const p=f;return this.currentResult[p]!==r[p]&&c.has(p)})};(t==null?void 0:t.listeners)!==!1&&a()&&(o.listeners=!0),this.notify(ie(ie({},o),t))}updateQuery(){const t=this.client.getQueryCache().build(this.client,this.options);if(t===this.currentQuery)return;const r=this.currentQuery;this.currentQuery=t,this.currentQueryInitialState=t.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(r==null||r.removeObserver(this),t.addObserver(this))}onQueryUpdate(t){const r={};t.type==="success"?r.onSuccess=!t.manual:t.type==="error"&&!Ya(t.error)&&(r.onError=!0),this.updateResult(r),this.hasListeners()&&this.updateTimers()}notify(t){st.batch(()=>{if(t.onSuccess){var r,n,o,a;(r=(n=this.options).onSuccess)==null||r.call(n,this.currentResult.data),(o=(a=this.options).onSettled)==null||o.call(a,this.currentResult.data,null)}else if(t.onError){var l,u,c,f;(l=(u=this.options).onError)==null||l.call(u,this.currentResult.error),(c=(f=this.options).onSettled)==null||c.call(f,void 0,this.currentResult.error)}t.listeners&&this.listeners.forEach(({listener:p})=>{p(this.currentResult)}),t.cache&&this.client.getQueryCache().notify({query:this.currentQuery,type:"observerResultsUpdated"})})}}function u8(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function _m(e,t){return u8(e,t)||e.state.dataUpdatedAt>0&&yc(e,t,t.refetchOnMount)}function yc(e,t,r){if(t.enabled!==!1){const n=typeof r=="function"?r(e):r;return n==="always"||n!==!1&&Zd(e,t)}return!1}function wm(e,t,r,n){return r.enabled!==!1&&(e!==t||n.enabled===!1)&&(!r.suspense||e.state.status!=="error")&&Zd(e,r)}function Zd(e,t){return e.isStaleByTime(t.staleTime)}function c8(e,t,r){return r.keepPreviousData?!1:r.placeholderData!==void 0?t.isPlaceholderData:!fs(e.getCurrentResult(),t)}var bc={exports:{}},ou={};/**
|
|
418
|
+
* @license React
|
|
419
|
+
* use-sync-external-store-shim.production.min.js
|
|
420
|
+
*
|
|
421
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
422
|
+
*
|
|
423
|
+
* This source code is licensed under the MIT license found in the
|
|
424
|
+
* LICENSE file in the root directory of this source tree.
|
|
425
|
+
*/var xm;function d8(){if(xm)return ou;xm=1;var e=Q;function t(m,h){return m===h&&(m!==0||1/m===1/h)||m!==m&&h!==h}var r=typeof Object.is=="function"?Object.is:t,n=e.useState,o=e.useEffect,a=e.useLayoutEffect,l=e.useDebugValue;function u(m,h){var g=h(),_=n({inst:{value:g,getSnapshot:h}}),y=_[0].inst,x=_[1];return a(function(){y.value=g,y.getSnapshot=h,c(y)&&x({inst:y})},[m,g,h]),o(function(){return c(y)&&x({inst:y}),m(function(){c(y)&&x({inst:y})})},[m]),l(g),g}function c(m){var h=m.getSnapshot;m=m.value;try{var g=h();return!r(m,g)}catch(_){return!0}}function f(m,h){return h()}var p=typeof window=="undefined"||typeof window.document=="undefined"||typeof window.document.createElement=="undefined"?f:u;return ou.useSyncExternalStore=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:p,ou}var au={};/**
|
|
426
|
+
* @license React
|
|
427
|
+
* use-sync-external-store-shim.development.js
|
|
428
|
+
*
|
|
429
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
430
|
+
*
|
|
431
|
+
* This source code is licensed under the MIT license found in the
|
|
432
|
+
* LICENSE file in the root directory of this source tree.
|
|
433
|
+
*/var Cm;function f8(){return Cm||(Cm=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=Q,t=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function r(T){{for(var C=arguments.length,w=new Array(C>1?C-1:0),M=1;M<C;M++)w[M-1]=arguments[M];n("error",T,w)}}function n(T,C,w){{var M=t.ReactDebugCurrentFrame,O=M.getStackAddendum();O!==""&&(C+="%s",w=w.concat([O]));var D=w.map(function(A){return String(A)});D.unshift("Warning: "+C),Function.prototype.apply.call(console[T],console,D)}}function o(T,C){return T===C&&(T!==0||1/T===1/C)||T!==T&&C!==C}var a=typeof Object.is=="function"?Object.is:o,l=e.useState,u=e.useEffect,c=e.useLayoutEffect,f=e.useDebugValue,p=!1,m=!1;function h(T,C,w){p||e.startTransition!==void 0&&(p=!0,r("You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."));var M=C();if(!m){var O=C();a(M,O)||(r("The result of getSnapshot should be cached to avoid an infinite loop"),m=!0)}var D=l({inst:{value:M,getSnapshot:C}}),A=D[0].inst,$=D[1];return c(function(){A.value=M,A.getSnapshot=C,g(A)&&$({inst:A})},[T,M,C]),u(function(){g(A)&&$({inst:A});var N=function(){g(A)&&$({inst:A})};return T(N)},[T]),f(M),M}function g(T){var C=T.getSnapshot,w=T.value;try{var M=C();return!a(w,M)}catch(O){return!0}}function _(T,C,w){return C()}var y=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined",x=!y,S=x?_:h,E=e.useSyncExternalStore!==void 0?e.useSyncExternalStore:S;au.useSyncExternalStore=E,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__!="undefined"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),au}process.env.NODE_ENV==="production"?bc.exports=d8():bc.exports=f8();var h8=bc.exports;const l_=h8.useSyncExternalStore,Tm=Z.createContext(void 0),u_=Z.createContext(!1);function c_(e,t){return e||(t&&typeof window!="undefined"?(window.ReactQueryClientContext||(window.ReactQueryClientContext=Tm),window.ReactQueryClientContext):Tm)}const d_=({context:e}={})=>{const t=Z.useContext(c_(e,Z.useContext(u_)));if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},p8=({client:e,children:t,context:r,contextSharing:n=!1})=>{Z.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),process.env.NODE_ENV!=="production"&&n&&e.getLogger().error("The contextSharing option has been deprecated and will be removed in the next major version");const o=c_(r,n);return Z.createElement(u_.Provider,{value:!r&&n},Z.createElement(o.Provider,{value:e},t))},m8=Z.createContext(!1),v8=()=>Z.useContext(m8);function g8(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}const y8=Z.createContext(g8()),b8=()=>Z.useContext(y8);function f_(e,t){return typeof e=="function"?e(...t):!!e}const _8=(e,t)=>{(e.suspense||e.useErrorBoundary)&&(t.isReset()||(e.retryOnMount=!1))},w8=e=>{Z.useEffect(()=>{e.clearReset()},[e])},x8=({result:e,errorResetBoundary:t,useErrorBoundary:r,query:n})=>e.isError&&!t.isReset()&&!e.isFetching&&f_(r,[e.error,n]),C8=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},T8=(e,t)=>e.isLoading&&e.isFetching&&!t,E8=(e,t,r)=>(e==null?void 0:e.suspense)&&T8(t,r),S8=(e,t,r)=>t.fetchOptimistic(e).then(({data:n})=>{e.onSuccess==null||e.onSuccess(n),e.onSettled==null||e.onSettled(n,null)}).catch(n=>{r.clearReset(),e.onError==null||e.onError(n),e.onSettled==null||e.onSettled(void 0,n)});function M8(e,t){const r=d_({context:e.context}),n=v8(),o=b8(),a=r.defaultQueryOptions(e);a._optimisticResults=n?"isRestoring":"optimistic",a.onError&&(a.onError=st.batchCalls(a.onError)),a.onSuccess&&(a.onSuccess=st.batchCalls(a.onSuccess)),a.onSettled&&(a.onSettled=st.batchCalls(a.onSettled)),C8(a),_8(a,o),w8(o);const[l]=Z.useState(()=>new t(r,a)),u=l.getOptimisticResult(a);if(l_(Z.useCallback(c=>{const f=n?()=>{}:l.subscribe(st.batchCalls(c));return l.updateResult(),f},[l,n]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),Z.useEffect(()=>{l.setOptions(a,{listeners:!1})},[a,l]),E8(a,u,n))throw S8(a,l,o);if(x8({result:u,errorResetBoundary:o,useErrorBoundary:a.useErrorBoundary,query:l.getCurrentQuery()}))throw u.error;return a.notifyOnChangeProps?u:l.trackResult(u)}function P8(e,t,r){const n=vo(e,t,r);return M8(n,l8)}exports.Backdrop=Fd;exports.Button=Io;exports.ButtonBase=Gn;exports.CacheProvider=qm;exports.Chart=gb;exports.ChartWidget=A6;exports.ContextMenu=Rb;exports.DEFAULT_PIVOT_TABLE_SIZE=Jv;exports.DEFAULT_TABLE_ROWS_PER_PAGE=bj;exports.DrilldownBreadcrumbs=Ab;exports.DrilldownWidget=$b;exports.DynamicSizeContainer=Vo;exports.ErrorBoundary=Ev;exports.ExclamationMarkIcon=Tv;exports.Fade=Wd;exports.Global=Rc;exports.I18nProvider=Mv;exports.IconButton=Li;exports.LEGACY_DESIGN_TYPES=co;exports.LoadingIndicator=Cs;exports.LoadingOverlay=fo;exports.Menu=Ud;exports.MenuItem=qd;exports.MenuList=Vd;exports.Modal=jd;exports.NoResultsOverlay=Jc;exports.PAGES_BATCH_SIZE=_j;exports.Paper=Xs;exports.Popover=Zs;exports.Popper=ia;exports.PropTypes=v;exports.QueryClient=s8;exports.QueryClientProvider=p8;exports.RestApi=eg;exports.SisenseContext=Gc;exports.Subscribable=ji;exports.Table=wb;exports.TableWidget=I6;exports.ThemeContext=gn;exports.ThemeContext$1=Xc;exports.ThemeProvider=qv;exports.Tooltip=Ys;exports.WidgetContainer=Bd;exports._baseEach=Ws;exports._baseRest=Ts;exports._baseUniq=Kc;exports._extends=te;exports._isIterateeCall=Xm;exports._objectWithoutPropertiesLoose=Se;exports.alpha_1=it;exports.applyDateFormat=Wc;exports.asSisenseComponent=Un;exports.boxWhiskerProcessResult=oL;exports.capitalize=De;exports.classNames=ko;exports.clearExecuteQueryCache=QP;exports.clsx=Oe;exports.composeClasses=ot;exports.convertToThemeSettings=dv;exports.createCommonFiltersOverSelections=iV;exports.createExecuteQueryCacheKey=mv;exports.createValueColorOptions=Pv;exports.createValueToColorMap=Rv;exports.createValueToColorMultiColumnsMap=yO;exports.css=Oc;exports.darken_1=rs;exports.debounce=q6;exports.defaultDateConfig=zc;exports.elementAcceptingRef=qn;exports.exactProp=gd;exports.executeCsvQuery=qP;exports.executePivotQuery=GP;exports.executeQuery=Bo;exports.executeQueryWithCache=Hc;exports.generateUtilityClass=Je;exports.generateUtilityClasses=Ze;exports.getAllowedFilters=XH;exports.getBaseDateFnsLocale=Dc;exports.getDefaultState=s_;exports.getDefaultThemeSettings=xs;exports.getJaqlQueryPayload=Om;exports.getLegacyPalette=pv;exports.getPaletteName=fv;exports.getPivotJaqlQueryPayload=U0;exports.getSelectableWidgetAttributes=Gd;exports.getTableAttributesAndMeasures=Gg;exports.getThemeSettingsByOid=hv;exports.getTranslatedDataOptions=sg;exports.getWidgetDefaultSize=td;exports.getWidgetSelections=nV;exports.isArrayLikeObject_1=Fv;exports.isEqual=Pi;exports.isEqualMembersFilters=Fb;exports.isEqualWith=Zv;exports.isThemeOid=Uv;exports.keyframes=Wo;exports.lighten_1=Sg;exports.newStyled=wr;exports.notifyManager=st;exports.over=zb;exports.ownerDocument=Lt;exports.parseMutationArgs=Y6;exports.processDrilldownSelections=Ib;exports.refType=Yo;exports.rootShouldForwardProp=Zo;exports.shallowEqualObjects=fs;exports.shouldSkipSisenseContextWaiting=vb;exports.shouldThrowError=f_;exports.styled=ke;exports.trackHook=pj;exports.translatePivotTableDataOptions=xL;exports.translateTableDataOptions=ag;exports.useControlled=hd;exports.useEventCallback=Gr;exports.useForkRef=At;exports.useGetApi=tg;exports.useHasChanged=bb;exports.useId=Fg;exports.usePrevious=Qc;exports.useQuery=P8;exports.useQueryClient=d_;exports.useSetError=rd;exports.useSisenseContext=gt;exports.useSyncExternalStore=l_;exports.useTheme=ta;exports.useThemeContext=jt;exports.useThemeProps=et;exports.useTranslation=ms;exports.withTracking=vj;
|