@perses-dev/greptimedb-plugin 0.1.0 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/__mf/js/{GreptimeDB.d666b53a.js → GreptimeDB.f1e3a072.js} +4 -4
- package/__mf/js/async/121.caec175a.js +2 -0
- package/__mf/js/async/181.d4d87a1f.js +2 -0
- package/__mf/js/async/186.c1dea752.js +102 -0
- package/__mf/js/async/192.b9279059.js +1 -0
- package/__mf/js/async/2.dbc0a9c4.js +1 -0
- package/__mf/js/async/235.7a774edc.js +1 -0
- package/__mf/js/async/274.d5a294d9.js +2 -0
- package/__mf/js/async/356.21b667a3.js +1 -0
- package/__mf/js/async/392.201e515e.js +2 -0
- package/__mf/js/async/43.ebbb8652.js +2 -0
- package/__mf/js/async/440.f6c55d74.js +2 -0
- package/__mf/js/async/45.04388bc3.js +1 -0
- package/__mf/js/async/470.f896cf06.js +2 -0
- package/__mf/js/async/496.91780bef.js +1 -0
- package/__mf/js/async/529.6c76a9cd.js +43 -0
- package/__mf/js/async/{1589.a4d4fad9.js.LICENSE.txt → 529.6c76a9cd.js.LICENSE.txt} +41 -1
- package/__mf/js/async/562.15460f81.js +2 -0
- package/__mf/js/async/587.445bbdb5.js +1 -0
- package/__mf/js/async/588.2c301420.js +1 -0
- package/__mf/js/async/616.ef1089bf.js +1 -0
- package/__mf/js/async/628.6ea4a812.js +3 -0
- package/__mf/js/async/71.9f52cdd7.js +1 -0
- package/__mf/js/async/77.51ac6fa8.js +1 -0
- package/__mf/js/async/862.d29af04f.js +2 -0
- package/__mf/js/async/873.d5028ea7.js +1 -0
- package/__mf/js/async/941.6221d54d.js +2 -0
- package/__mf/js/async/944.89173f4a.js +10 -0
- package/__mf/js/async/968.6f0ebddf.js +1 -0
- package/__mf/js/async/978.4589faec.js +1 -0
- package/__mf/js/async/__federation_expose_GreptimeDBDatasource.ec9b176f.js +2 -0
- package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.96bef921.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.f4171877.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.e0ffd686.js +21 -0
- package/__mf/js/{main.7dfdd439.js → main.993845fa.js} +3 -3
- package/lib/bootstrap.js +2 -2
- package/lib/components/GreptimeDBQLEditor.d.ts +2 -2
- package/lib/components/GreptimeDBQLEditor.d.ts.map +1 -1
- package/lib/components/GreptimeDBQLEditor.js +3 -3
- package/lib/components/GreptimeDBQLEditor.js.map +1 -1
- package/lib/components/index.js +2 -2
- package/lib/components/index.js.map +1 -1
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts +2 -2
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.d.ts.map +1 -1
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js +4 -4
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasource.js.map +1 -1
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts +2 -2
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.d.ts.map +1 -1
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +1 -1
- package/lib/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js.map +1 -1
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts +4 -4
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.d.ts.map +1 -1
- package/lib/datasources/greptimedb-datasource/greptimedb-datasource-types.js.map +1 -1
- package/lib/datasources/greptimedb-datasource/index.js +3 -3
- package/lib/datasources/greptimedb-datasource/index.js.map +1 -1
- package/lib/datasources/index.js +1 -1
- package/lib/datasources/index.js.map +1 -1
- package/lib/getPluginModule.d.ts +1 -1
- package/lib/getPluginModule.d.ts.map +1 -1
- package/lib/getPluginModule.js +3 -1
- package/lib/getPluginModule.js.map +1 -1
- package/lib/index-federation.js +1 -1
- package/lib/index.js +3 -3
- package/lib/index.js.map +1 -1
- package/lib/model/greptimedb-client.d.ts +3 -3
- package/lib/model/greptimedb-client.d.ts.map +1 -1
- package/lib/model/greptimedb-client.js +4 -2
- package/lib/model/greptimedb-client.js.map +1 -1
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts +2 -2
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.d.ts.map +1 -1
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js +4 -6
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQuery.js.map +1 -1
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts +3 -3
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.d.ts.map +1 -1
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +8 -8
- package/lib/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js.map +1 -1
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts +2 -2
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.d.ts.map +1 -1
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js +2 -2
- package/lib/queries/greptimedb-log-query/get-greptimedb-log-data.js.map +1 -1
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts +1 -1
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.d.ts.map +1 -1
- package/lib/queries/greptimedb-log-query/greptimedb-log-query-types.js.map +1 -1
- package/lib/queries/greptimedb-log-query/index.js +4 -4
- package/lib/queries/greptimedb-log-query/index.js.map +1 -1
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts +2 -2
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.d.ts.map +1 -1
- package/lib/queries/greptimedb-log-query/log-query-plugin-interface.js.map +1 -1
- package/lib/queries/greptimedb-query-data-model.d.ts +3 -3
- package/lib/queries/greptimedb-query-data-model.d.ts.map +1 -1
- package/lib/queries/greptimedb-query-data-model.js +4 -4
- package/lib/queries/greptimedb-query-data-model.js.map +1 -1
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts +2 -2
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.d.ts.map +1 -1
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js +4 -6
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQuery.js.map +1 -1
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts +3 -3
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.d.ts.map +1 -1
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +8 -8
- package/lib/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js.map +1 -1
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts +2 -2
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.d.ts.map +1 -1
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js +3 -5
- package/lib/queries/greptimedb-time-series-query/get-greptimedb-data.js.map +1 -1
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts +1 -1
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.d.ts.map +1 -1
- package/lib/queries/greptimedb-time-series-query/greptimedb-query-types.js.map +1 -1
- package/lib/queries/greptimedb-time-series-query/index.js +4 -4
- package/lib/queries/greptimedb-time-series-query/index.js.map +1 -1
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts +2 -2
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.d.ts.map +1 -1
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +3 -3
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js.map +1 -1
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts +3 -3
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.d.ts.map +1 -1
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +7 -7
- package/lib/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js.map +1 -1
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts +2 -2
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.d.ts.map +1 -1
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +6 -6
- package/lib/queries/greptimedb-trace-query/get-greptimedb-trace-data.js.map +1 -1
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts +1 -1
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.d.ts.map +1 -1
- package/lib/queries/greptimedb-trace-query/greptimedb-trace-query-types.js.map +1 -1
- package/lib/queries/greptimedb-trace-query/index.js +4 -4
- package/lib/queries/greptimedb-trace-query/index.js.map +1 -1
- package/lib/queries/index.js +3 -3
- package/lib/queries/index.js.map +1 -1
- package/lib/queries/query-editor-model.js +2 -2
- package/lib/queries/query-editor-model.js.map +1 -1
- package/lib/setup-tests.d.ts +1 -1
- package/lib/setup-tests.d.ts.map +1 -1
- package/lib/setup-tests.js +2 -2
- package/lib/setup-tests.js.map +1 -1
- package/mf-manifest.json +68 -100
- package/mf-stats.json +68 -104
- package/package.json +20 -12
- package/__mf/js/async/1589.a4d4fad9.js +0 -2
- package/__mf/js/async/1616.d071703e.js +0 -1
- package/__mf/js/async/2043.e37a8242.js +0 -2
- package/__mf/js/async/2386.84002e8c.js +0 -2
- package/__mf/js/async/3181.9e8e9ef5.js +0 -2
- package/__mf/js/async/392.614cab68.js +0 -2
- package/__mf/js/async/3944.f35af5a7.js +0 -10
- package/__mf/js/async/3981.66746f5c.js +0 -3
- package/__mf/js/async/4121.f8820bd7.js +0 -2
- package/__mf/js/async/4233.a3ff3ed2.js +0 -7
- package/__mf/js/async/4233.a3ff3ed2.js.LICENSE.txt +0 -39
- package/__mf/js/async/4475.52c68e1f.js +0 -101
- package/__mf/js/async/5002.ff5efed5.js +0 -1
- package/__mf/js/async/5071.72c3afda.js +0 -1
- package/__mf/js/async/5440.f8cb71c0.js +0 -2
- package/__mf/js/async/5481.0c2e941f.js +0 -2
- package/__mf/js/async/5562.fc9fccc9.js +0 -2
- package/__mf/js/async/5587.82a12128.js +0 -1
- package/__mf/js/async/6045.2b2dd0f6.js +0 -1
- package/__mf/js/async/6274.b682460a.js +0 -2
- package/__mf/js/async/629.e085c447.js +0 -1
- package/__mf/js/async/7177.746de250.js +0 -1
- package/__mf/js/async/7192.8effb0f3.js +0 -1
- package/__mf/js/async/7968.d3024d8d.js +0 -1
- package/__mf/js/async/7978.f72fcb59.js +0 -1
- package/__mf/js/async/7984.802dfa3c.js +0 -22
- package/__mf/js/async/7984.802dfa3c.js.LICENSE.txt +0 -19
- package/__mf/js/async/8356.42f66891.js +0 -1
- package/__mf/js/async/8470.8d2d3f35.js +0 -2
- package/__mf/js/async/873.9041549c.js +0 -1
- package/__mf/js/async/9235.8d75321e.js +0 -1
- package/__mf/js/async/941.6703c1a7.js +0 -2
- package/__mf/js/async/9558.97ad4633.js +0 -1
- package/__mf/js/async/9588.925f1ab4.js +0 -1
- package/__mf/js/async/9877.a7b7fb44.js +0 -38
- package/__mf/js/async/__federation_expose_GreptimeDBDatasource.7d12e7b8.js +0 -2
- package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.f7fa9b26.js +0 -21
- package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js +0 -21
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.a1f7328d.js +0 -21
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.a1f7328d.js.LICENSE.txt +0 -9
- package/lib/cjs/bootstrap.js +0 -26
- package/lib/cjs/components/GreptimeDBQLEditor.js +0 -72
- package/lib/cjs/components/constants.js +0 -42
- package/lib/cjs/components/index.js +0 -31
- package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasource.js +0 -53
- package/lib/cjs/datasources/greptimedb-datasource/GreptimeDBDatasourceEditor.js +0 -51
- package/lib/cjs/datasources/greptimedb-datasource/greptimedb-datasource-types.js +0 -16
- package/lib/cjs/datasources/greptimedb-datasource/index.js +0 -32
- package/lib/cjs/datasources/index.js +0 -30
- package/lib/cjs/env.d.js +0 -14
- package/lib/cjs/getPluginModule.js +0 -39
- package/lib/cjs/index-federation.js +0 -55
- package/lib/cjs/index.js +0 -38
- package/lib/cjs/model/greptimedb-client.js +0 -76
- package/lib/cjs/model/greptimedb-data-types.js +0 -16
- package/lib/cjs/queries/constants.js +0 -34
- package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQuery.js +0 -43
- package/lib/cjs/queries/greptimedb-log-query/GreptimeDBLogQueryEditor.js +0 -108
- package/lib/cjs/queries/greptimedb-log-query/get-greptimedb-log-data.js +0 -103
- package/lib/cjs/queries/greptimedb-log-query/greptimedb-log-query-types.js +0 -16
- package/lib/cjs/queries/greptimedb-log-query/index.js +0 -33
- package/lib/cjs/queries/greptimedb-log-query/log-query-plugin-interface.js +0 -16
- package/lib/cjs/queries/greptimedb-query-data-model.js +0 -152
- package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQuery.js +0 -43
- package/lib/cjs/queries/greptimedb-time-series-query/GreptimeDBQueryEditor.js +0 -107
- package/lib/cjs/queries/greptimedb-time-series-query/get-greptimedb-data.js +0 -184
- package/lib/cjs/queries/greptimedb-time-series-query/greptimedb-query-types.js +0 -16
- package/lib/cjs/queries/greptimedb-time-series-query/index.js +0 -33
- package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQuery.js +0 -40
- package/lib/cjs/queries/greptimedb-trace-query/GreptimeDBTraceQueryEditor.js +0 -79
- package/lib/cjs/queries/greptimedb-trace-query/get-greptimedb-trace-data.js +0 -518
- package/lib/cjs/queries/greptimedb-trace-query/greptimedb-trace-query-types.js +0 -16
- package/lib/cjs/queries/greptimedb-trace-query/index.js +0 -33
- package/lib/cjs/queries/greptimedb-trace-query/trace-query-sql.js +0 -25
- package/lib/cjs/queries/index.js +0 -32
- package/lib/cjs/queries/query-editor-model.js +0 -47
- package/lib/cjs/setup-tests.js +0 -19
- /package/__mf/css/async/{4233.85c2cbf6.css → 529.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{4121.f8820bd7.js.LICENSE.txt → 121.caec175a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2386.84002e8c.js.LICENSE.txt → 181.d4d87a1f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.b682460a.js.LICENSE.txt → 274.d5a294d9.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.614cab68.js.LICENSE.txt → 392.201e515e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2043.e37a8242.js.LICENSE.txt → 43.ebbb8652.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5440.f8cb71c0.js.LICENSE.txt → 440.f6c55d74.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.8d2d3f35.js.LICENSE.txt → 470.f896cf06.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3181.9e8e9ef5.js.LICENSE.txt → 562.15460f81.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5481.0c2e941f.js.LICENSE.txt → 862.d29af04f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5562.fc9fccc9.js.LICENSE.txt → 941.6221d54d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3944.f35af5a7.js.LICENSE.txt → 944.89173f4a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.6703c1a7.js.LICENSE.txt → __federation_expose_GreptimeDBDatasource.ec9b176f.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBDatasource.7d12e7b8.js.LICENSE.txt → __federation_expose_GreptimeDBLogQuery.96bef921.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBLogQuery.f7fa9b26.js.LICENSE.txt → __federation_expose_GreptimeDBTimeSeriesQuery.f4171877.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js.LICENSE.txt → __federation_expose_GreptimeDBTraceQuery.e0ffd686.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*! For license information please see 529.6c76a9cd.js.LICENSE.txt */
|
|
2
|
+
(self.chunk_GreptimeDB_0_2_0_beta_2=self.chunk_GreptimeDB_0_2_0_beta_2||[]).push([["529"],{70158(e,t,n){"use strict";var r=this&&this.__assign||function(){return(r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.bindAll=void 0;var o=n(96844);function i(e){if(void 0!==e)return"boolean"==typeof e?{capture:e}:e}t.bindAll=function(e,t,n){var a=t.map(function(t){var a=null==n?t:r(r({},t),{options:r(r({},i(n)),i(t.options))});return(0,o.bind)(e,a)});return function(){a.forEach(function(e){return e()})}}},96844(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bind=void 0,t.bind=function(e,t){var n=t.type,r=t.listener,o=t.options;return e.addEventListener(n,r,o),function(){e.removeEventListener(n,r,o)}}},96907(e,t,n){"use strict";t.bindAll=t.bind=void 0;var r=n(96844);Object.defineProperty(t,"bind",{enumerable:!0,get:function(){return r.bind}});var o=n(70158);Object.defineProperty(t,"bindAll",{enumerable:!0,get:function(){return o.bindAll}})},1416(e,t,n){e.exports=n(99138)(n(41433),"DataView")},9073(e,t,n){var r=n(82316),o=n(76458),i=n(2149),a=n(44297),s=n(33121);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},72707(e,t,n){var r=n(39714),o=n(33812),i=n(14727),a=n(8379),s=n(8291);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},91955(e,t,n){e.exports=n(99138)(n(41433),"Map")},90369(e,t,n){var r=n(72092),o=n(49626),i=n(79925),a=n(26809),s=n(94385);function l(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}l.prototype.clear=r,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},42616(e,t,n){e.exports=n(99138)(n(41433),"Promise")},60157(e,t,n){e.exports=n(99138)(n(41433),"Set")},61527(e,t,n){var r=n(90369),o=n(79912),i=n(23767);function a(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},86469(e,t,n){var r=n(72707),o=n(71848),i=n(17406),a=n(58569),s=n(43109),l=n(73389);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},32781(e,t,n){e.exports=n(41433).Symbol},28944(e,t,n){e.exports=n(41433).Uint8Array},78499(e,t,n){e.exports=n(99138)(n(41433),"WeakMap")},96701(e){e.exports=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}},61414(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var a=e[n];t(a,n,e)&&(i[o++]=a)}return i}},31163(e,t,n){var r=n(36204),o=n(21256),i=n(6397),a=n(30492),s=n(42845),l=n(47995),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),c=!n&&o(e),d=!n&&!c&&a(e),p=!n&&!c&&!d&&l(e),f=n||c||d||p,h=f?r(e.length,String):[],m=h.length;for(var g in e)(t||u.call(e,g))&&!(f&&("length"==g||d&&("offset"==g||"parent"==g)||p&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,m)))&&h.push(g);return h}},78740(e){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}},57260(e){e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},61617(e,t,n){var r=n(14772),o=n(39316);e.exports=function(e,t,n){(void 0===n||o(e[t],n))&&(void 0!==n||t in e)||r(e,t,n)}},82863(e,t,n){var r=n(14772),o=n(39316),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){var a=e[t];i.call(e,t)&&o(a,n)&&(void 0!==n||t in e)||r(e,t,n)}},58301(e,t,n){var r=n(39316);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return -1}},14772(e,t,n){var r=n(18559);e.exports=function(e,t,n){"__proto__"==t&&r?r(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}},23508(e,t,n){var r=n(58953),o=Object.create;e.exports=function(){function e(){}return function(t){if(!r(t))return{};if(o)return o(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}()},61469(e,t,n){e.exports=n(15409)()},74403(e,t,n){var r=n(78740),o=n(6397);e.exports=function(e,t,n){var i=t(e);return o(e)?i:r(i,n(e))}},87148(e,t,n){var r=n(32781),o=n(17903),i=n(71738),a=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},79250(e,t,n){var r=n(87148),o=n(22934);e.exports=function(e){return o(e)&&"[object Arguments]"==r(e)}},22122(e,t,n){var r=n(42032),o=n(22934);e.exports=function e(t,n,i,a,s){return t===n||(null!=t&&null!=n&&(o(t)||o(n))?r(t,n,i,a,e,s):t!=t&&n!=n)}},42032(e,t,n){var r=n(86469),o=n(44075),i=n(64622),a=n(62677),s=n(31201),l=n(6397),u=n(30492),c=n(47995),d="[object Arguments]",p="[object Array]",f="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),x=l(t),b=y?p:s(e),w=x?p:s(t);b=b==d?f:b,w=w==d?f:w;var A=b==f,C=w==f,S=b==w;if(S&&u(e)){if(!u(t))return!1;y=!0,A=!1}if(S&&!A)return v||(v=new r),y||c(e)?o(e,t,n,m,g,v):i(e,t,b,n,m,g,v);if(!(1&n)){var M=A&&h.call(e,"__wrapped__"),T=C&&h.call(t,"__wrapped__");if(M||T){var k=M?e.value():e,I=T?t.value():t;return v||(v=new r),g(k,I,n,m,v)}}return!!S&&(v||(v=new r),a(e,t,n,m,g,v))}},16567(e,t,n){var r=n(18446),o=n(18092),i=n(58953),a=n(81485),s=/^\[object .+?Constructor\]$/,l=Object.prototype,u=Function.prototype.toString,c=l.hasOwnProperty,d=RegExp("^"+u.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?d:s).test(a(e))}},97129(e,t,n){var r=n(87148),o=n(3330),i=n(22934),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[r(e)]}},81452(e,t,n){var r=n(67499),o=n(9566),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return o(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},41491(e,t,n){var r=n(58953),o=n(67499),i=n(68201),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return i(e);var t=o(e),n=[];for(var s in e)"constructor"==s&&(t||!a.call(e,s))||n.push(s);return n}},99702(e,t,n){var r=n(86469),o=n(61617),i=n(61469),a=n(80708),s=n(58953),l=n(15405),u=n(29874);e.exports=function e(t,n,c,d,p){t!==n&&i(n,function(i,l){if(p||(p=new r),s(i))a(t,n,l,c,e,d,p);else{var f=d?d(u(t,l),i,l+"",t,n,p):void 0;void 0===f&&(f=i),o(t,l,f)}},l)}},80708(e,t,n){var r=n(61617),o=n(87030),i=n(76733),a=n(68835),s=n(19181),l=n(21256),u=n(6397),c=n(75569),d=n(30492),p=n(18446),f=n(58953),h=n(54679),m=n(47995),g=n(29874),v=n(47264);e.exports=function(e,t,n,y,x,b,w){var A=g(e,n),C=g(t,n),S=w.get(C);if(S)return void r(e,n,S);var M=b?b(A,C,n+"",e,t,w):void 0,T=void 0===M;if(T){var k=u(C),I=!k&&d(C),E=!k&&!I&&m(C);M=C,k||I||E?u(A)?M=A:c(A)?M=a(A):I?(T=!1,M=o(C,!0)):E?(T=!1,M=i(C,!0)):M=[]:h(C)||l(C)?(M=A,l(A)?M=v(A):(!f(A)||p(A))&&(M=s(C))):T=!1}T&&(w.set(C,M),x(M,C,y,b,w),w.delete(C)),r(e,n,M)}},71506(e,t,n){var r=n(74796),o=n(25265),i=n(26805);e.exports=function(e,t){return i(o(e,t,r),e+"")}},7310(e,t,n){var r=n(53122),o=n(18559),i=n(74796);e.exports=o?function(e,t){return o(e,"toString",{configurable:!0,enumerable:!1,value:r(t),writable:!0})}:i},36204(e){e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},68812(e,t,n){var r=n(62140),o=/^\s+/;e.exports=function(e){return e?e.slice(0,r(e)+1).replace(o,""):e}},30041(e){e.exports=function(e){return function(t){return e(t)}}},79151(e){e.exports=function(e,t){return e.has(t)}},57177(e,t,n){var r=n(28944);e.exports=function(e){var t=new e.constructor(e.byteLength);return new r(t).set(new r(e)),t}},87030(e,t,n){e=n.nmd(e);var r=n(41433),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?r.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}},76733(e,t,n){var r=n(57177);e.exports=function(e,t){var n=t?r(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}},68835(e){e.exports=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}},42083(e,t,n){var r=n(82863),o=n(14772);e.exports=function(e,t,n,i){var a=!n;n||(n={});for(var s=-1,l=t.length;++s<l;){var u=t[s],c=i?i(n[u],e[u],u,n,e):void 0;void 0===c&&(c=e[u]),a?o(n,u,c):r(n,u,c)}return n}},38109(e,t,n){e.exports=n(41433)["__core-js_shared__"]},54171(e,t,n){var r=n(71506),o=n(66220);e.exports=function(e){return r(function(t,n){var r=-1,i=n.length,a=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(a=e.length>3&&"function"==typeof a?(i--,a):void 0,s&&o(n[0],n[1],s)&&(a=i<3?void 0:a,i=1),t=Object(t);++r<i;){var l=n[r];l&&e(t,l,r,a)}return t})}},15409(e){e.exports=function(e){return function(t,n,r){for(var o=-1,i=Object(t),a=r(t),s=a.length;s--;){var l=a[e?s:++o];if(!1===n(i[l],l,i))break}return t}}},18559(e,t,n){var r=n(99138);e.exports=function(){try{var e=r(Object,"defineProperty");return e({},"",{}),e}catch(e){}}()},44075(e,t,n){var r=n(61527),o=n(57260),i=n(79151);e.exports=function(e,t,n,a,s,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var p=l.get(e),f=l.get(t);if(p&&f)return p==t&&f==e;var h=-1,m=!0,g=2&n?new r:void 0;for(l.set(e,t),l.set(t,e);++h<c;){var v=e[h],y=t[h];if(a)var x=u?a(y,v,h,t,e,l):a(v,y,h,e,t,l);if(void 0!==x){if(x)continue;m=!1;break}if(g){if(!o(t,function(e,t){if(!i(g,t)&&(v===e||s(v,e,n,a,l)))return g.push(t)})){m=!1;break}}else if(!(v===y||s(v,y,n,a,l))){m=!1;break}}return l.delete(e),l.delete(t),m}},64622(e,t,n){var r=n(32781),o=n(28944),i=n(39316),a=n(44075),s=n(90953),l=n(15851),u=r?r.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,d,p){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!d(new o(e),new o(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=s;case"[object Set]":var h=1&r;if(f||(f=l),e.size!=t.size&&!h)break;var m=p.get(e);if(m)return m==t;r|=2,p.set(e,t);var g=a(f(e),f(t),r,u,d,p);return p.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},62677(e,t,n){var r=n(90966),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,a,s){var l=1&n,u=r(e),c=u.length;if(c!=r(t).length&&!l)return!1;for(var d=c;d--;){var p=u[d];if(!(l?p in t:o.call(t,p)))return!1}var f=s.get(e),h=s.get(t);if(f&&h)return f==t&&h==e;var m=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<c;){var v=e[p=u[d]],y=t[p];if(i)var x=l?i(y,v,p,t,e,s):i(v,y,p,e,t,s);if(!(void 0===x?v===y||a(v,y,n,i,s):x)){m=!1;break}g||(g="constructor"==p)}if(m&&!g){var b=e.constructor,w=t.constructor;b!=w&&"constructor"in e&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(m=!1)}return s.delete(e),s.delete(t),m}},75380(e,t,n){e.exports="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g},90966(e,t,n){var r=n(74403),o=n(88876),i=n(31178);e.exports=function(e){return r(e,i,o)}},15535(e,t,n){var r=n(95662);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},99138(e,t,n){var r=n(16567),o=n(6772);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},13347(e,t,n){e.exports=n(51019)(Object.getPrototypeOf,Object)},17903(e,t,n){var r=n(32781),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[s]=n:delete e[s]),o}},88876(e,t,n){var r=n(61414),o=n(53629),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;e.exports=a?function(e){return null==e?[]:r(a(e=Object(e)),function(t){return i.call(e,t)})}:o},31201(e,t,n){var r=n(1416),o=n(91955),i=n(42616),a=n(60157),s=n(78499),l=n(87148),u=n(81485),c="[object Map]",d="[object Promise]",p="[object Set]",f="[object WeakMap]",h="[object DataView]",m=u(r),g=u(o),v=u(i),y=u(a),x=u(s),b=l;(r&&b(new r(new ArrayBuffer(1)))!=h||o&&b(new o)!=c||i&&b(i.resolve())!=d||a&&b(new a)!=p||s&&b(new s)!=f)&&(b=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case m:return h;case g:return c;case v:return d;case y:return p;case x:return f}return t}),e.exports=b},6772(e){e.exports=function(e,t){return null==e?void 0:e[t]}},82316(e,t,n){var r=n(4558);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},76458(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=!!t,t}},2149(e,t,n){var r=n(4558),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(t,e)?t[e]:void 0}},44297(e,t,n){var r=n(4558),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:o.call(t,e)}},33121(e,t,n){var r=n(4558);e.exports=function(e,t){var n=this.__data__;return this.size+=+!this.has(e),n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},19181(e,t,n){var r=n(23508),o=n(13347),i=n(67499);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:r(o(e))}},42845(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?0x1fffffffffffff:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},66220(e,t,n){var r=n(39316),o=n(18330),i=n(42845),a=n(58953);e.exports=function(e,t,n){if(!a(n))return!1;var s=typeof t;return("number"==s?!!(o(n)&&i(t,n.length)):"string"==s&&t in n)&&r(n[t],e)}},95662(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},18092(e,t,n){var r,o=n(38109),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},67499(e){var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},39714(e){e.exports=function(){this.__data__=[],this.size=0}},33812(e,t,n){var r=n(58301),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():o.call(t,n,1),--this.size,!0)}},14727(e,t,n){var r=n(58301);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},8379(e,t,n){var r=n(58301);e.exports=function(e){return r(this.__data__,e)>-1}},8291(e,t,n){var r=n(58301);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},72092(e,t,n){var r=n(9073),o=n(72707),i=n(91955);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},49626(e,t,n){var r=n(15535);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=!!t,t}},79925(e,t,n){var r=n(15535);e.exports=function(e){return r(this,e).get(e)}},26809(e,t,n){var r=n(15535);e.exports=function(e){return r(this,e).has(e)}},94385(e,t,n){var r=n(15535);e.exports=function(e,t){var n=r(this,e),o=n.size;return n.set(e,t),this.size+=+(n.size!=o),this}},90953(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}},4558(e,t,n){e.exports=n(99138)(Object,"create")},9566(e,t,n){e.exports=n(51019)(Object.keys,Object)},68201(e){e.exports=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}},23685(e,t,n){e=n.nmd(e);var r=n(75380),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&r.process,s=function(){try{var e=i&&i.require&&i.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},71738(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},51019(e){e.exports=function(e,t){return function(n){return e(t(n))}}},25265(e,t,n){var r=n(96701),o=Math.max;e.exports=function(e,t,n){return t=o(void 0===t?e.length-1:t,0),function(){for(var i=arguments,a=-1,s=o(i.length-t,0),l=Array(s);++a<s;)l[a]=i[t+a];a=-1;for(var u=Array(t+1);++a<t;)u[a]=i[a];return u[t]=n(l),r(e,this,u)}}},41433(e,t,n){var r=n(75380),o="object"==typeof self&&self&&self.Object===Object&&self;e.exports=r||o||Function("return this")()},29874(e){e.exports=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}},79912(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},23767(e){e.exports=function(e){return this.__data__.has(e)}},15851(e){e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},26805(e,t,n){var r=n(7310);e.exports=n(23983)(r)},23983(e){var t=Date.now;e.exports=function(e){var n=0,r=0;return function(){var o=t(),i=16-(o-r);if(r=o,i>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},71848(e,t,n){var r=n(72707);e.exports=function(){this.__data__=new r,this.size=0}},17406(e){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},58569(e){e.exports=function(e){return this.__data__.get(e)}},43109(e){e.exports=function(e){return this.__data__.has(e)}},73389(e,t,n){var r=n(72707),o=n(91955),i=n(90369);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},81485(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},62140(e){var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},53122(e){e.exports=function(e){return function(){return e}}},46177(e,t,n){var r=n(58953),o=n(43664),i=n(95378),a=Math.max,s=Math.min;e.exports=function(e,t,n){var l,u,c,d,p,f,h=0,m=!1,g=!1,v=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var n=l,r=u;return l=u=void 0,h=t,d=e.apply(r,n)}function x(e){var n=e-f,r=e-h;return void 0===f||n>=t||n<0||g&&r>=c}function b(){var e,n,r,i=o();if(x(i))return w(i);p=setTimeout(b,(e=i-f,n=i-h,r=t-e,g?s(r,c-n):r))}function w(e){return(p=void 0,v&&l)?y(e):(l=u=void 0,d)}function A(){var e,n=o(),r=x(n);if(l=arguments,u=this,f=n,r){if(void 0===p)return h=e=f,p=setTimeout(b,t),m?y(e):d;if(g)return clearTimeout(p),p=setTimeout(b,t),y(f)}return void 0===p&&(p=setTimeout(b,t)),d}return t=i(t)||0,r(n)&&(m=!!n.leading,c=(g="maxWait"in n)?a(i(n.maxWait)||0,t):c,v="trailing"in n?!!n.trailing:v),A.cancel=function(){void 0!==p&&clearTimeout(p),h=0,l=f=u=p=void 0},A.flush=function(){return void 0===p?d:w(o())},A}},39316(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},74796(e){e.exports=function(e){return e}},21256(e,t,n){var r=n(79250),o=n(22934),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")}},6397(e){e.exports=Array.isArray},18330(e,t,n){var r=n(18446),o=n(3330);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},75569(e,t,n){var r=n(18330),o=n(22934);e.exports=function(e){return o(e)&&r(e)}},30492(e,t,n){e=n.nmd(e);var r=n(41433),o=n(80659),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?r.Buffer:void 0,l=s?s.isBuffer:void 0;e.exports=l||o},18264(e,t,n){var r=n(22122);e.exports=function(e,t){return r(e,t)}},18446(e,t,n){var r=n(87148),o=n(58953);e.exports=function(e){if(!o(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3330(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=0x1fffffffffffff}},58953(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},22934(e){e.exports=function(e){return null!=e&&"object"==typeof e}},54679(e,t,n){var r=n(87148),o=n(13347),i=n(22934),a=Object.prototype,s=Function.prototype.toString,l=a.hasOwnProperty,u=s.call(Object);e.exports=function(e){if(!i(e)||"[object Object]"!=r(e))return!1;var t=o(e);if(null===t)return!0;var n=l.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&s.call(n)==u}},75414(e,t,n){var r=n(87148),o=n(22934);e.exports=function(e){return"symbol"==typeof e||o(e)&&"[object Symbol]"==r(e)}},47995(e,t,n){var r=n(97129),o=n(30041),i=n(23685),a=i&&i.isTypedArray;e.exports=a?o(a):r},31178(e,t,n){var r=n(31163),o=n(81452),i=n(18330);e.exports=function(e){return i(e)?r(e):o(e)}},15405(e,t,n){var r=n(31163),o=n(41491),i=n(18330);e.exports=function(e){return i(e)?r(e,!0):o(e)}},25632(e,t,n){var r=n(99702);e.exports=n(54171)(function(e,t,n){r(e,t,n)})},43664(e,t,n){var r=n(41433);e.exports=function(){return r.Date.now()}},53629(e){e.exports=function(){return[]}},80659(e){e.exports=function(){return!1}},95378(e,t,n){var r=n(68812),o=n(58953),i=n(75414),a=0/0,s=/^[-+]0x[0-9a-f]+$/i,l=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(i(e))return a;if(o(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=o(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=r(e);var n=l.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):s.test(e)?a:+e}},47264(e,t,n){var r=n(42083),o=n(15405);e.exports=function(e){return r(e,o(e))}},24300(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z","Calendar")},29618(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","Circle")},98029(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z","Delete")},53064(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M7,19V17H9V19H7M11,19V17H13V19H11M15,19V17H17V19H15M7,15V13H9V15H7M11,15V13H13V15H11M15,15V13H17V15H15M7,11V9H9V11H7M11,11V9H13V11H11M15,11V9H17V11H15M7,7V5H9V7H7M11,7V5H13V7H11M15,7V5H17V7H15Z","Drag")},26684(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M17.9,17.39C17.64,16.59 16.89,16 16,16H15V13A1,1 0 0,0 14,12H8V10H10A1,1 0 0,0 11,9V7H13A2,2 0 0,0 15,5V4.59C17.93,5.77 20,8.64 20,12C20,14.08 19.2,15.97 17.9,17.39M11,19.93C7.05,19.44 4,16.08 4,12C4,11.38 4.08,10.78 4.21,10.21L9,15V16A2,2 0 0,0 11,18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z","Earth")},78536(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z","EyeOffOutline")},1355(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z","EyeOutline")},98599(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z","Magnify")},4491(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12Z","Pin")},29917(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M16,12V4H17V2H7V4H8V12L6,14V16H11.2V22H12.8V16H18V14L16,12M8.8,14L10,12.8V4H14V12.8L15.2,14H8.8Z","PinOutline")},16979(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M16.59,5.41L15.17,4L12,7.17L8.83,4L7.41,5.41L12,10M7.41,18.59L8.83,20L12,16.83L15.17,20L16.58,18.59L12,14L7.41,18.59Z","UnfoldLessHorizontal")},9323(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M12,18.17L8.83,15L7.42,16.41L12,21L16.59,16.41L15.17,15M12,5.83L15.17,9L16.58,7.59L12,3L7.41,7.59L8.83,9L12,5.83Z","UnfoldMoreHorizontal")},12933(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=(0,((r=n(1448))&&r.__esModule?r:{default:r}).default)("M16,5V18H21V5M4,18H9V5H4M10,18H15V5H10V18Z","ViewColumn")},40362(e,t,n){"use strict";var r=n(56441);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},62688(e,t,n){e.exports=n(40362)()},56441(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},77440(e,t,n){!function(e,t){"use strict";var n=function(e){if(e&&e.__esModule)return e;var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}(t);function r(e,t){return(r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}var o={error:null},i=function(e){function t(){for(var t,n=arguments.length,r=Array(n),i=0;i<n;i++)r[i]=arguments[i];return(t=e.call.apply(e,[this].concat(r))||this).state=o,t.resetErrorBoundary=function(){for(var e,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];null==t.props.onReset||(e=t.props).onReset.apply(e,r),t.reset()},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,r(t,e),t.getDerivedStateFromError=function(e){return{error:e}};var i=t.prototype;return i.reset=function(){this.setState(o)},i.componentDidCatch=function(e,t){var n,r;null==(n=(r=this.props).onError)||n.call(r,e,t)},i.componentDidUpdate=function(e,t){var n,r,o,i,a=this.state.error,s=this.props.resetKeys;null!==a&&null!==t.error&&(void 0===(n=e.resetKeys)&&(n=[]),void 0===(r=s)&&(r=[]),n.length!==r.length||n.some(function(e,t){return!Object.is(e,r[t])}))&&(null==(o=(i=this.props).onResetKeysChange)||o.call(i,e.resetKeys,s),this.reset())},i.render=function(){var e=this.state.error,t=this.props,r=t.fallbackRender,o=t.FallbackComponent,i=t.fallback;if(null!==e){var a={error:e,resetErrorBoundary:this.resetErrorBoundary};if(n.isValidElement(i))return i;if("function"==typeof r)return r(a);if(o)return n.createElement(o,a);else throw Error("react-error-boundary requires either a fallback, fallbackRender, or FallbackComponent prop")}return this.props.children},t}(n.Component);e.ErrorBoundary=i,e.useErrorHandler=function(e){var t=n.useState(null),r=t[0],o=t[1];if(null!=e)throw e;if(null!=r)throw r;return o},e.withErrorBoundary=function(e,t){var r=function(r){return n.createElement(i,t,n.createElement(e,r))};return r.displayName="withErrorBoundary("+(e.displayName||e.name||"Unknown")+")",r},Object.defineProperty(e,"__esModule",{value:!0})}(t,n(70451))},23420(e){function t(){}t.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function o(){r.off(e,o),t.apply(n,arguments)}return o._=t,this.on(e,o,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,o=n.length;r<o;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],o=[];if(r&&t)for(var i=0,a=r.length;i<a;i++)r[i].fn!==t&&r[i].fn._!==t&&o.push(r[i]);return o.length?n[e]=o:delete n[e],this}},e.exports=t,e.exports.TinyEmitter=t},42915(e){"use strict";var t;t=function(){function e(){return!0}function t(){return!1}function n(){}return function r(){var o=[{name:"number",test:function(e){return"number"==typeof e}},{name:"string",test:function(e){return"string"==typeof e}},{name:"boolean",test:function(e){return"boolean"==typeof e}},{name:"Function",test:function(e){return"function"==typeof e}},{name:"Array",test:Array.isArray},{name:"Date",test:function(e){return e instanceof Date}},{name:"RegExp",test:function(e){return e instanceof RegExp}},{name:"Object",test:function(e){return"object"==typeof e&&null!==e&&e.constructor===Object}},{name:"null",test:function(e){return null===e}},{name:"undefined",test:function(e){return void 0===e}}],i={name:"any",test:e},a=[],s=[],l={types:o,conversions:s,ignore:a};function u(e){var t=F(l.types,function(t){return t.name===e});if(t)return t;if("any"===e)return i;var n=F(l.types,function(t){return t.name.toLowerCase()===e.toLowerCase()});throw TypeError('Unknown type "'+e+'"'+(n?'. Did you mean "'+n.name+'"?':""))}function c(e){return e===i?999:l.types.indexOf(e)}function d(e){var t=F(l.types,function(t){return t.test(e)});if(t)return t.name;throw TypeError("Value has unknown type. Value: "+e)}function p(e){return e.map(function(e){var t=e.types.map(y);return(e.restParam?"...":"")+t.join("|")}).join(",")}function f(e){var t=P(e);return!!t&&t.restParam}function h(e){return e.types.some(function(e){return null!=e.conversion})}function m(t){if(!t||0===t.types.length)return e;if(1===t.types.length)return u(t.types[0].name).test;if(2===t.types.length){var n=u(t.types[0].name).test,r=u(t.types[1].name).test;return function(e){return n(e)||r(e)}}var o=t.types.map(function(e){return u(e.name).test});return function(e){for(var t=0;t<o.length;t++)if(o[t](e))return!0;return!1}}function g(e,t){return t<e.params.length?e.params[t]:f(e.params)?P(e.params):null}function v(e,t,n){var r=g(e,t);return(r?n?r.types.filter(x):r.types:[]).map(y)}function y(e){return e.name}function x(e){return null===e.conversion||void 0===e.conversion}function b(e,t){var n=function(e){for(var t={},n=0;n<e.length;n++)t[e[n]]=!0;return Object.keys(t)}(_(e,function(e){return v(e,t,!1)}));return -1!==n.indexOf("any")?["any"]:n}function w(e,t,n){var r,o,i,a=e||"unnamed",s=n;for(i=0;i<t.length;i++){var l=s.filter(function(e){var n=m(g(e,i));return(i<e.params.length||f(e.params))&&n(t[i])});if(0===l.length){if((o=b(s,i)).length>0){var u=d(t[i]);return(r=TypeError("Unexpected type of argument in function "+a+" (expected: "+o.join(" or ")+", actual: "+u+", index: "+i+")")).data={category:"wrongType",fn:a,index:i,actual:u,expected:o},r}}else s=l}var c=s.map(function(e){return f(e.params)?1/0:e.params.length});if(t.length<Math.min.apply(null,c))return(r=TypeError("Too few arguments in function "+a+" (expected: "+(o=b(s,i)).join(" or ")+", index: "+t.length+")")).data={category:"tooFewArgs",fn:a,index:t.length,expected:o},r;var p=Math.max.apply(null,c);return t.length>p?(r=TypeError("Too many arguments in function "+a+" (expected: "+p+", actual: "+t.length+")")).data={category:"tooManyArgs",fn:a,index:t.length,expectedLength:p}:(r=TypeError('Arguments of type "'+t.join(", ")+'" do not match any of the defined signatures of function '+a+".")).data={category:"mismatch",actual:t.map(d)},r}function A(e){for(var t=999,n=0;n<e.types.length;n++)x(e.types[n])&&(t=Math.min(t,e.types[n].typeIndex));return t}function C(e){for(var t=999,n=0;n<e.types.length;n++)x(e.types[n])||(t=Math.min(t,e.types[n].conversionIndex));return t}function S(e,t){var n,r,o=Math.min(e.params.length,t.params.length);if(0!=(r=e.params.some(h)-t.params.some(h)))return r;for(n=0;n<o;n++)if(0!=(r=h(e.params[n])-h(t.params[n])))return r;for(n=0;n<o;n++)if(0!==(r=function(e,t){var n;return 0!=(n=e.restParam-t.restParam)||0!=(n=h(e)-h(t))||0!=(n=A(e)-A(t))?n:C(e)-C(t)}(e.params[n],t.params[n])))return r;return e.params.length-t.params.length}function M(e){var t,n,r,o,i=[],a=[];switch(e.types.forEach(function(e){e.conversion&&(i.push(u(e.conversion.from).test),a.push(e.conversion.convert))}),a.length){case 0:return function(e){return e};case 1:return t=i[0],r=a[0],function(e){return t(e)?r(e):e};case 2:return t=i[0],n=i[1],r=a[0],o=a[1],function(e){return t(e)?r(e):n(e)?o(e):e};default:return function(e){for(var t=0;t<a.length;t++)if(i[t](e))return a[t](e);return e}}}function T(e,t){return function e(n,r,o){if(!(r<n.length))return[o.map(function(e,t){return{types:e,restParam:t===n.length-1&&f(n)}})];var i,a=n[r],s=t?a.types.filter(x):a.types;if(a.restParam){var l=s.filter(x);i=l.length<s.length?[l,s]:[s]}else i=s.map(function(e){return[e]});return _(i,function(t){return e(n,r+1,o.concat([t]))})}(e,0,[])}function k(e,r){if(0===Object.keys(r).length)throw SyntaxError("No signatures provided");var o,i=[];Object.keys(r).map(function(e){var t,n,o;return t=r[e],n=l.conversions,o=[],(""!==e.trim()&&(o=e.split(",").map(R).map(function(e,t,r){var o,i,a,s,l,d,p,f,h=(o=n,i=l=((s=0===e.indexOf("..."))?e.length>3?e.slice(3):"any":e).split("|").map(R).filter(D).filter(E),a={},o.forEach(function(e){-1!==i.indexOf(e.from)||-1===i.indexOf(e.to)||a[e.from]||(a[e.from]=e)}),d=Object.keys(a).map(function(e){return a[e]}),p=l.map(function(e){var t=u(e);return{name:e,typeIndex:c(t),test:t.test,conversion:null,conversionIndex:-1}}),f=d.map(function(e){var t=u(e.from);return{name:e.from,typeIndex:c(t),test:t.test,conversion:e,conversionIndex:n.indexOf(e)}}),{types:p.concat(f),restParam:s});if(h.restParam&&t!==r.length-1)throw SyntaxError('Unexpected rest parameter "'+e+'": only allowed for the last parameter');return h})),o.some(j))?null:{params:o,fn:t}}).filter(O).forEach(function(e){var t=F(i,function(t){return function(e,t){for(var n=Math.max(e.params.length,t.params.length),r=0;r<n;r++)if(!function(e,t){for(var n,r=0;r<e.length;r++)if(n=e[r],-1!==t.indexOf(n))return!0;return!1}(v(e,r,!0),v(t,r,!0)))return!1;var o=e.params.length,i=t.params.length,a=f(e.params),s=f(t.params);return a?s?o===i:i>=o:s?o>=i:o===i}(t,e)});if(t)throw TypeError('Conflicting signatures "'+p(t.params)+'" and "'+p(e.params)+'".');i.push(e)});var a=_(i,function(e){return(e?T(e.params,!1):[]).map(function(t){return{params:t,fn:e.fn}})}).filter(O);a.sort(S);var s=a[0]&&a[0].params.length<=2&&!f(a[0].params),d=a[1]&&a[1].params.length<=2&&!f(a[1].params),g=a[2]&&a[2].params.length<=2&&!f(a[2].params),y=a[3]&&a[3].params.length<=2&&!f(a[3].params),x=a[4]&&a[4].params.length<=2&&!f(a[4].params),b=a[5]&&a[5].params.length<=2&&!f(a[5].params),w=a.map(function(e){return function(e){var t,n,r;if(f(e)){var o,i=(t=(o=e).slice(0,o.length-1).map(m)).length,a=m(P(e)),s=function(e){for(var t=i;t<e.length;t++)if(!a(e[t]))return!1;return!0};return function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return s(e)&&e.length>=i+1}}return 0===e.length?function(e){return 0===e.length}:1===e.length?(n=m(e[0]),function(e){return n(e[0])&&1===e.length}):2===e.length?(n=m(e[0]),r=m(e[1]),function(e){return n(e[0])&&r(e[1])&&2===e.length}):(t=e.map(m),function(e){for(var n=0;n<t.length;n++)if(!t[n](e[n]))return!1;return e.length===t.length})}(e.params)}),A=s?m(a[0].params[0]):t,C=d?m(a[1].params[0]):t,k=g?m(a[2].params[0]):t,I=y?m(a[3].params[0]):t,L=x?m(a[4].params[0]):t,z=b?m(a[5].params[0]):t,B=s?m(a[0].params[1]):t,V=d?m(a[1].params[1]):t,$=g?m(a[2].params[1]):t,H=y?m(a[3].params[1]):t,W=x?m(a[4].params[1]):t,U=b?m(a[5].params[1]):t,G=a.map(function(e){return function(e,t){var n=t;if(e.some(h)){var r=f(e),o=e.map(M);n=function(){for(var e=[],n=r?arguments.length-1:arguments.length,i=0;i<n;i++)e[i]=o[i](arguments[i]);return r&&(e[n]=arguments[n].map(o[n])),t.apply(this,e)}}var i=n;if(f(e)){var a=e.length-1;i=function(){return n.apply(this,N(arguments,0,a).concat([N(arguments,a)]))}}return i}(e.params,e.fn)}),q=s?G[0]:n,Y=d?G[1]:n,Z=g?G[2]:n,X=y?G[3]:n,K=x?G[4]:n,Q=b?G[5]:n,J=s?a[0].params.length:-1,ee=d?a[1].params.length:-1,et=g?a[2].params.length:-1,en=y?a[3].params.length:-1,er=x?a[4].params.length:-1,eo=b?a[5].params.length:-1,ei=6*!!(s&&d&&g&&y&&x&&b),ea=a.length,es=function(){for(var t=ei;t<ea;t++)if(w[t](arguments))return G[t].apply(this,arguments);return l.onMismatch(e,arguments,a)},el=function e(t,n){return arguments.length===J&&A(t)&&B(n)?q.apply(e,arguments):arguments.length===ee&&C(t)&&V(n)?Y.apply(e,arguments):arguments.length===et&&k(t)&&$(n)?Z.apply(e,arguments):arguments.length===en&&I(t)&&H(n)?X.apply(e,arguments):arguments.length===er&&L(t)&&W(n)?K.apply(e,arguments):arguments.length===eo&&z(t)&&U(n)?Q.apply(e,arguments):es.apply(e,arguments)};try{Object.defineProperty(el,"name",{value:e})}catch(e){}return o={},a.forEach(function(e){e.params.some(h)||T(e.params,!0).forEach(function(t){o[p(t)]=e.fn})}),el.signatures=o,el}function I(e,t,n){throw w(e,t,n)}function E(e){return -1===l.ignore.indexOf(e)}function R(e){return e.trim()}function D(e){return!!e}function O(e){return null!==e}function j(e){return 0===e.types.length}function P(e){return e[e.length-1]}function N(e,t,n){return Array.prototype.slice.call(e,t,n)}function F(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return e[n]}function _(e,t){return Array.prototype.concat.apply([],e.map(t))}function L(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(("object"==typeof r.signatures||"string"==typeof r.signature)&&""!==r.name){if(""===t)t=r.name;else if(t!==r.name){var o=Error("Function names do not match (expected: "+t+", actual: "+r.name+")");throw o.data={actual:r.name,expected:t},o}}}return t}function z(e){var t,n={};function r(e,r){if(n.hasOwnProperty(e)&&r!==n[e])throw(t=Error('Signature "'+e+'" is defined twice')).data={signature:e},t}for(var o=0;o<e.length;o++){var i=e[o];if("object"==typeof i.signatures)for(var a in i.signatures)i.signatures.hasOwnProperty(a)&&(r(a,i.signatures[a]),n[a]=i.signatures[a]);else if("string"==typeof i.signature)r(i.signature,i),n[i.signature]=i;else throw(t=TypeError("Function is no typed-function (index: "+o+")")).data={index:o},t}return n}return(l=k("typed",{"string, Object":k,Object:function(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push(e[n]);return k(L(t),e)},"...Function":function(e){return k(L(e),z(e))},"string, ...Function":function(e,t){return k(e,z(t))}})).create=r,l.types=o,l.conversions=s,l.ignore=a,l.onMismatch=I,l.throwMismatchError=I,l.createError=w,l.convert=function(e,t){var n=d(e);if(t===n)return e;for(var r=0;r<l.conversions.length;r++){var o=l.conversions[r];if(o.from===n&&o.to===t)return o.convert(e)}throw Error("Cannot convert from "+n+" to "+t)},l.find=function(e,t){if(!e.signatures)throw TypeError("Function is no typed-function");if("string"==typeof t){n=t.split(",");for(var n,r=0;r<n.length;r++)n[r]=n[r].trim()}else if(Array.isArray(t))n=t;else throw TypeError("String array or a comma separated string expected");var o=n.join(","),i=e.signatures[o];if(i)return i;throw TypeError("Signature not found (signature: "+(e.name||"unnamed")+"("+n.join(", ")+"))")},l.addType=function(e,t){if(!e||"string"!=typeof e.name||"function"!=typeof e.test)throw TypeError("Object with properties {name: string, test: function} expected");if(!1!==t){for(var n=0;n<l.types.length;n++)if("Object"===l.types[n].name)return void l.types.splice(n,0,e)}l.types.push(e)},l.addConversion=function(e){if(!e||"string"!=typeof e.from||"string"!=typeof e.to||"function"!=typeof e.convert)throw TypeError("Object with properties {from: string, to: string, convert: function} expected");l.conversions.push(e)},l}()},"function"==typeof define&&define.amd?define([],t):e.exports=t()},85180(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>i});var r=n(70451);function o(e,t,n){return e[t]?e[t][0]?e[t][0][n]:e[t][n]:"contentBoxSize"===t?e.contentRect["inlineSize"===n?"width":"height"]:void 0}function i(e){void 0===e&&(e={});var t,n,i,a,s,l,u=e.onResize,c=(0,r.useRef)(void 0);c.current=u;var d=e.round||Math.round,p=(0,r.useRef)(),f=(0,r.useState)({width:void 0,height:void 0}),h=f[0],m=f[1],g=(0,r.useRef)(!1);(0,r.useEffect)(function(){return g.current=!1,function(){g.current=!0}},[]);var v=(0,r.useRef)({width:void 0,height:void 0}),y=(t=(0,r.useCallback)(function(t){return p.current&&p.current.box===e.box&&p.current.round===d||(p.current={box:e.box,round:d,instance:new ResizeObserver(function(t){var n=t[0],r="border-box"===e.box?"borderBoxSize":"device-pixel-content-box"===e.box?"devicePixelContentBoxSize":"contentBoxSize",i=o(n,r,"inlineSize"),a=o(n,r,"blockSize"),s=i?d(i):void 0,l=a?d(a):void 0;if(v.current.width!==s||v.current.height!==l){var u={width:s,height:l};v.current.width=s,v.current.height=l,c.current?c.current(u):g.current||m(u)}})}),p.current.instance.observe(t,{box:e.box}),function(){p.current&&p.current.instance.unobserve(t)}},[e.box,d]),n=e.ref,i=(0,r.useRef)(null),(a=(0,r.useRef)(null)).current=n,s=(0,r.useRef)(null),(0,r.useEffect)(function(){l()}),l=(0,r.useCallback)(function(){var e=s.current,n=a.current,r=e||(n?n instanceof Element?n:n.current:null);i.current&&i.current.element===r&&i.current.subscriber===t||(i.current&&i.current.cleanup&&i.current.cleanup(),i.current={element:r,subscriber:t,cleanup:r?t(r):void 0})},[t]),(0,r.useEffect)(function(){return function(){i.current&&i.current.cleanup&&(i.current.cleanup(),i.current=null)}},[]),(0,r.useCallback)(function(e){s.current=e,l()},[l]));return(0,r.useMemo)(function(){return{ref:y,width:h.width,height:h.height}},[y,h.width,h.height])}},90664(e,t,n){"use strict";n.r(t),n.d(t,{generateChartsTheme:()=>og,DensitySelector:()=>hG,applyMergeIndexedColumnsTransform:()=>ob,interpolateSelectionIndividual:()=>oh,DragButton:()=>m$,TimeRangeSelector:()=>Cu,getFormatterStats:()=>t9,OptionsEditorGrid:()=>hB,TOOLTIP_MAX_HEIGHT:()=>Cm,useMousePosition:()=>CT,TextOverlay:()=>vf,isValidLegendSize:()=>t0,isValidLegendMode:()=>tJ,isDateUnit:()=>rv,parseVariables:()=>rL,UnitSelector:()=>C5,PERCENT_UNIT_CONFIG:()=>nQ,RepeatGrid:()=>ST,PERCENT_GROUP_CONFIG:()=>nX,YAxisLabel:()=>C6,replaceVariablesForDisplay:()=>rV,TOOLTIP_MIN_WIDTH:()=>Cf,useId:()=>rO,getTitleAction:()=>tq,getYBuffer:()=>Cq,PINNED_CROSSHAIR_SERIES_NAME:()=>tV,getPixelXFromGrid:()=>CN,getFormattedAxisLabel:()=>oi,clearHighlightedSeries:()=>rM,FALLBACK_CHART_WIDTH:()=>Cx,restoreChart:()=>rS,FormatControls:()=>C3,transformData:()=>oA,getTimeSeriesValues:()=>lc,DEFAULT_LEGEND:()=>t1,OptionsEditorControl:()=>hz,formatDecimal:()=>n6,DiscardChangesConfirmationDialog:()=>hR,formatTime:()=>ns,SelectionProvider:()=>eT,TimeChartTooltip:()=>CJ,legendModes:()=>tX,EMPTY_TOOLTIP_DATA:()=>CM,isThroughputUnit:()=>rm,applyJoinTransform:()=>oy,TextField:()=>hs,SeriesInfo:()=>CR,getClosestTimestamp:()=>rE,DropIndicator:()=>hq,applyMergeColumnsTransform:()=>ox,isTemperatureUnit:()=>ry,limitDecimalPlaces:()=>ne,useSnackbar:()=>tL,dateFormatOptionsWithTimeZone:()=>on,calculateBarYBounds:()=>Cz,DEFAULT_COLUMN_HEIGHT:()=>40,parseVariablesAndFormat:()=>rz,getCommonTimeScale:()=>ld,isBytesUnit:()=>rd,ModeSelector:()=>vo,OptionsEditorColumn:()=>hO,DECIMAL_UNIT_CONFIG:()=>n3,DEFAULT_PINNED_CROSSHAIR:()=>t$,TEMPERATURE_GROUP_CONFIG:()=>n1,NoDataOverlay:()=>vh,getResourceExtendedDisplayName:()=>lh,InterpolationFormat:()=>rj,ErrorBoundary:()=>gR.ErrorBoundary,hasDataFieldPatterns:()=>rJ,CURRENCY_UNIT_CONFIG:()=>nY,ToolbarIconButton:()=>C1,DEFAULT_TOOLTIP_CONFIG:()=>Ck,TRANSFORM_TEXT:()=>rx,calculateBarBandwidth:()=>C_,ItemActionsProvider:()=>eb,isWithinPercentageRange:()=>CG,OPTIMIZED_MODE_SERIES_LIMIT:()=>1e3,legendPositions:()=>tZ,TIME_GROUP_CONFIG:()=>nn,defaultCursorData:()=>CS,createTimezoneAwareAxisFormatter:()=>gk,RefreshIntervalPicker:()=>SM,legendSizes:()=>tK,BITS_GROUP_CONFIG:()=>nz,TOOLTIP_LABELS_MAX_WIDTH:()=>Cg,applyValueMapping:()=>ov,UNIT_GROUP_CONFIG:()=>rn,batchDispatchNearbySeriesActions:()=>rk,DEFAULT_COLUMN_WIDTH:()=>150,getGMTOffset:()=>oo,getPointInGrid:()=>rT,InfoTooltip:()=>hF,AlignSelector:()=>D,JSONEditor:()=>ve,CURRENCY_GROUP_CONFIG:()=>nq,TooltipHeader:()=>CQ,SeriesMarker:()=>Cd,FontSizeSelector:()=>gO,THROUGHPUT_UNIT_CONFIG:()=>n8,DEFAULT_COLUMN_MAX_WIDTH:()=>1e3,TOOLTIP_PADDING:()=>Cy,TimeZoneContext:()=>lm,TimeZoneProvider:()=>lg,useDeepMemo:()=>ou,TransformsEditor:()=>SS,combineSx:()=>rD,getFormatterFromCache:()=>t6,applyMergeSeriesTransform:()=>ow,Legend:()=>hb,Dialog:()=>hE,getFormattedMultipleYAxes:()=>rw,replaceVariables:()=>rB,DECIMAL_GROUP_CONFIG:()=>n4,getResourceDisplayName:()=>lf,SnackbarProvider:()=>t_,formatBytes:()=>nW,getUnitConfig:()=>ri,LoadingOverlay:()=>vm,formatWithTimeZone:()=>or,legacyCheckforNearbySeries:()=>CW,replaceVariable:()=>rF,UNIT_CONFIG:()=>rr,testChartsTheme:()=>C7,TOOLTIP_ADJUST_Y_POS_MULTIPLIER:()=>Cv,interpolate:()=>rN,THROUGHPUT_GROUP_CONFIG:()=>n9,BYTES_UNIT_CONFIG:()=>nH,useChartsTheme:()=>ey,calculateBarSegmentBounds:()=>CL,checkCrosshairPinnedStatus:()=>rI,mockChartsContext:()=>C8,checkforNearbyTimeSeries:()=>CH,TOOLTIP_DATE_FORMAT:()=>CC,hasDecimalPlaces:()=>t8,isCurrencyUnit:()=>rg,DEFAULT_COLUMN_MIN_WIDTH:()=>60,handleMoveUp:()=>mB,ContentWithLegend:()=>hA,OptionsEditorGroup:()=>hV,isUnitWithDecimalPlaces:()=>rf,SeriesLabelsStack:()=>Cp,getDateAndTime:()=>oa,getTableCellLayout:()=>pD,ChartsThemeContext:()=>eg,TooltipContent:()=>CY,isValidTraceId:()=>lp,formatCurrency:()=>nZ,ValueMappingsEditor:()=>SR,BYTES_GROUP_CONFIG:()=>n$,interpolateSelectionBatch:()=>om,isLegendItemVisuallySelected:()=>lC,getFormattedAxis:()=>rb,getClosestTimestampInFullDataset:()=>rR,ChartsProvider:()=>em,TimeZoneSelector:()=>Cc,LinkEditorForm:()=>vn,SortSelector:()=>vv,formatValue:()=>ro,persesColumnsToTanstackColumns:()=>pO,NEARBY_SERIES_DESCRIPTION:()=>Cb,calculateVisualYForSeries:()=>CF,hasIndexedPatterns:()=>rQ,ColorPicker:()=>ep,useItemActions:()=>eC,getUnitGroup:()=>ra,formatThroughput:()=>re,getTheme:()=>Sf,shouldShortenValues:()=>t7,MIN_STEP_INTERVAL_MS:()=>lu,buildRelativeTimeOption:()=>tU,useSelection:()=>eE,TEMPERATURE_UNIT_CONFIG:()=>n2,SortSelectorButtons:()=>vy,formatBits:()=>nV,getTimeZoneOptions:()=>tG,DYNAMIC_NEARBY_SERIES_MULTIPLIER:()=>CV,isUnitWithShortValues:()=>rh,getTooltipStyles:()=>CP,interpolateHeaders:()=>op,ErrorAlert:()=>gE,OptionsColorPicker:()=>ly,getUnitGroupConfig:()=>rs,TOOLTIP_BG_COLOR_FALLBACK:()=>CA,TOOLTIP_MAX_WIDTH:()=>Ch,DragAndDropElement:()=>mL,extractFieldNames:()=>r0,isBitsUnit:()=>rp,SHOW_FEWER_SERIES_LIMIT:()=>C$,TIME_UNIT_CONFIG:()=>nr,INCREASE_NEARBY_SERIES_MULTIPLIER:()=>CB,isPercentUnit:()=>ru,getLegendSize:()=>t4,getSubmitText:()=>tY,handleMoveDown:()=>mV,PIN_TOOLTIP_HELP_TEXT:()=>CI,Table:()=>hm,typography:()=>Sd,formatPercent:()=>nJ,assembleTransform:()=>Cj,formatTemperature:()=>n5,useTimeZone:()=>lv,createRegexFromString:()=>od,hasBatchPatterns:()=>rK,PersesTimeToIntlTime:()=>no,parseFormat:()=>rY,FormActions:()=>gj,getNearbySeriesData:()=>CU,useMemoized:()=>ol,isValidLegendPosition:()=>tQ,getLegendMode:()=>t5,EMPHASIZED_SERIES_DESCRIPTION:()=>Cw,replaceDataFields:()=>rZ,Drawer:()=>gt,getLegendPosition:()=>t2,BITS_UNIT_CONFIG:()=>nB,EChart:()=>gM,isTimeUnit:()=>rl,useChartsContext:()=>ev,interpolateQueryParams:()=>of,UNPIN_TOOLTIP_HELP_TEXT:()=>CE,DateTimeRangePicker:()=>Cl,SettingsAutocomplete:()=>hW,ThresholdsEditor:()=>vM,isDecimalUnit:()=>rc,enableDataZoom:()=>rC,replaceDataFieldsBatch:()=>rX,useDragAndDropMonitor:()=>m_,useLocalStorage:()=>rA,isRegexPattern:()=>oc});var r,o,i,a,s,l,u,c=n(62540),d=n(70451),p=n.n(d),f=n(11750),h=n(81023),m=n(59238),g=n(41953),v=n(24726),y=n(77308),x=n(23434),b=n(26952),w=n(72052),A=n(29009),C=n(46733);function S(e){return(0,C.Ay)("MuiButtonGroup",e)}let M=(0,A.A)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","firstButton","fullWidth","horizontal","vertical","colorPrimary","colorSecondary","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary","lastButton","middleButton"]);var T=n(94580),k=n(30016);let I=(0,y.A)("div",{name:"MuiButtonGroup",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${M.grouped}`]:t.grouped},{[`& .${M.grouped}`]:t[`grouped${(0,v.A)(n.orientation)}`]},{[`& .${M.grouped}`]:t[`grouped${(0,v.A)(n.variant)}`]},{[`& .${M.grouped}`]:t[`grouped${(0,v.A)(n.variant)}${(0,v.A)(n.orientation)}`]},{[`& .${M.grouped}`]:t[`grouped${(0,v.A)(n.variant)}${(0,v.A)(n.color)}`]},{[`& .${M.firstButton}`]:t.firstButton},{[`& .${M.lastButton}`]:t.lastButton},{[`& .${M.middleButton}`]:t.middleButton},t.root,t[n.variant],!0===n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,"vertical"===n.orientation&&t.vertical]}})((0,x.A)(({theme:e})=>({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius,variants:[{props:{variant:"contained"},style:{boxShadow:(e.vars||e).shadows[2]}},{props:{disableElevation:!0},style:{boxShadow:"none"}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{orientation:"vertical"},style:{flexDirection:"column",[`& .${M.lastButton},& .${M.middleButton}`]:{borderTopRightRadius:0,borderTopLeftRadius:0},[`& .${M.firstButton},& .${M.middleButton}`]:{borderBottomRightRadius:0,borderBottomLeftRadius:0}}},{props:{orientation:"horizontal"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${M.lastButton},& .${M.middleButton}`]:{borderTopLeftRadius:0,borderBottomLeftRadius:0}}},{props:{variant:"text",orientation:"horizontal"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderRight:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${M.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"text",orientation:"vertical"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderBottom:e.vars?`1px solid rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:`1px solid ${"light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"}`,[`&.${M.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((0,b.A)()).flatMap(([t])=>[{props:{variant:"text",color:t},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.5)`:(0,m.X4)(e.palette[t].main,.5)}}}]),{props:{variant:"outlined",orientation:"horizontal"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderRightColor:"transparent","&:hover":{borderRightColor:"currentColor"}},[`& .${M.lastButton},& .${M.middleButton}`]:{marginLeft:-1}}},{props:{variant:"outlined",orientation:"vertical"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderBottomColor:"transparent","&:hover":{borderBottomColor:"currentColor"}},[`& .${M.lastButton},& .${M.middleButton}`]:{marginTop:-1}}},{props:{variant:"contained",orientation:"horizontal"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderRight:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${M.disabled}`]:{borderRight:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},{props:{variant:"contained",orientation:"vertical"},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderBottom:`1px solid ${(e.vars||e).palette.grey[400]}`,[`&.${M.disabled}`]:{borderBottom:`1px solid ${(e.vars||e).palette.action.disabled}`}}}},...Object.entries(e.palette).filter((0,b.A)(["dark"])).map(([t])=>({props:{variant:"contained",color:t},style:{[`& .${M.firstButton},& .${M.middleButton}`]:{borderColor:(e.vars||e).palette[t].dark}}}))],[`& .${M.grouped}`]:{minWidth:40,boxShadow:"none",props:{variant:"contained"},style:{"&:hover":{boxShadow:"none"}}}}))),E=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiButtonGroup"}),{children:r,className:o,color:i="primary",component:a="div",disabled:s=!1,disableElevation:l=!1,disableFocusRipple:u=!1,disableRipple:p=!1,fullWidth:m=!1,orientation:y="horizontal",size:x="medium",variant:b="outlined",...A}=n,C={...n,color:i,component:a,disabled:s,disableElevation:l,disableFocusRipple:u,disableRipple:p,fullWidth:m,orientation:y,size:x,variant:b},M=(e=>{let{classes:t,color:n,disabled:r,disableElevation:o,fullWidth:i,orientation:a,variant:s}=e,l={root:["root",s,a,i&&"fullWidth",o&&"disableElevation",`color${(0,v.A)(n)}`],grouped:["grouped",`grouped${(0,v.A)(a)}`,`grouped${(0,v.A)(s)}`,`grouped${(0,v.A)(s)}${(0,v.A)(a)}`,`grouped${(0,v.A)(s)}${(0,v.A)(n)}`,r&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return(0,h.A)(l,S,t)})(C),E=d.useMemo(()=>({className:M.grouped,color:i,disabled:s,disableElevation:l,disableFocusRipple:u,disableRipple:p,fullWidth:m,size:x,variant:b}),[i,s,l,u,p,m,x,b,M.grouped]),R=(0,g.A)(r),D=R.length;return(0,c.jsx)(I,{as:a,role:"group",className:(0,f.A)(M.root,o),ref:t,ownerState:C,...A,children:(0,c.jsx)(T.A.Provider,{value:E,children:R.map((e,t)=>{let n,r;return(0,c.jsx)(k.A.Provider,{value:(n=0===t,r=t===D-1,n&&r?"":n?M.firstButton:r?M.lastButton:M.middleButton),children:e},t)})})})});var R=n(7013);function D({onChange:e,value:t="left",...n}){let r=t=>{e(t)};return(0,c.jsxs)(E,{"aria-label":"Alignement",...n,children:[(0,c.jsx)(R.A,{onClick:()=>r("left"),variant:"left"===t?"contained":"outlined",children:"Left"},"left"),(0,c.jsx)(R.A,{onClick:()=>r("center"),variant:"center"===t?"contained":"outlined",children:"Center"},"center"),(0,c.jsx)(R.A,{onClick:()=>r("right"),variant:"right"===t?"contained":"outlined",children:"Right"},"right")]})}var O=n(315),j=n(47095),P=n(93648),N=n(29618),F=n(98029);function _(){return(_=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function L(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)t.indexOf(n=i[r])>=0||(o[n]=e[n]);return o}function z(e){var t=(0,d.useRef)(e),n=(0,d.useRef)(function(e){t.current&&t.current(e)});return t.current=e,n.current}var B,V=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e<t?t:e},$=function(e){return"touches"in e},H=function(e){return e&&e.ownerDocument.defaultView||self},W=function(e,t,n){var r=e.getBoundingClientRect(),o=$(t)?function(e,t){for(var n=0;n<e.length;n++)if(e[n].identifier===t)return e[n];return e[0]}(t.touches,n):t;return{left:V((o.pageX-(r.left+H(e).pageXOffset))/r.width),top:V((o.pageY-(r.top+H(e).pageYOffset))/r.height)}},U=function(e){$(e)||e.preventDefault()},G=p().memo(function(e){var t=e.onMove,n=e.onKey,r=e.onEnd,o=L(e,["onMove","onKey","onEnd"]),i=(0,d.useRef)(null),a=z(t),s=z(n),l=z(r),u=(0,d.useRef)(null),c=(0,d.useRef)(!1),f=(0,d.useMemo)(function(){var e=function(e){U(e),($(e)?e.touches.length>0:e.buttons>0)&&i.current?a(W(i.current,e,u.current)):(n(!1),l())},t=function(){n(!1),l()};function n(n){var r=c.current,o=H(i.current),a=n?o.addEventListener:o.removeEventListener;a(r?"touchmove":"mousemove",e),a(r?"touchend":"mouseup",t)}return[function(e){var t=e.nativeEvent,r=i.current;if(r&&(U(t),(!c.current||$(t))&&r)){if($(t)){c.current=!0;var o=t.changedTouches||[];o.length&&(u.current=o[0].identifier)}r.focus(),a(W(r,t,u.current)),n(!0)}},function(e){var t=e.which||e.keyCode;t<37||t>40||(e.preventDefault(),s({left:39===t?.05:37===t?-.05:0,top:40===t?.05:38===t?-.05:0}))},function(e){var t=e.which||e.keyCode;t>=37&&t<=40&&l()},n]},[s,a,l]),h=f[0],m=f[1],g=f[2],v=f[3];return(0,d.useEffect)(function(){return v},[v]),p().createElement("div",_({},o,{onTouchStart:h,onMouseDown:h,className:"react-colorful__interactive",ref:i,onKeyDown:m,onKeyUp:g,tabIndex:0,role:"slider"}))}),q=function(e){return e.filter(Boolean).join(" ")},Y=function(e){var t=e.color,n=e.left,r=e.top,o=q(["react-colorful__pointer",e.className]);return p().createElement("div",{className:o,style:{top:100*(void 0===r?.5:r)+"%",left:100*n+"%"}},p().createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},Z=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n},X=function(e){return"#"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?Z(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?Z(parseInt(e.substring(6,8),16)/255,2):1}},K=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:Z(e.h),s:Z(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:Z(o/2),a:Z(r,2)}},Q=function(e){var t=K(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},J=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),s=r*(1-(t-i)*n),l=r*(1-(1-t+i)*n),u=i%6;return{r:Z(255*[r,s,a,a,l,r][u]),g:Z(255*[l,r,r,s,a,a][u]),b:Z(255*[a,a,l,r,r,s][u]),a:Z(o,2)}},ee=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},et=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=o<1?ee(Z(255*o)):"";return"#"+ee(t)+ee(n)+ee(r)+i},en=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),s=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:Z(60*(s<0?s+6:s)),s:Z(i?a/i*100:0),v:Z(i/255*100),a:o}},er=p().memo(function(e){var t=e.hue,n=e.onChange,r=e.onChangeEnd,o=q(["react-colorful__hue",e.className]);return p().createElement("div",{className:o},p().createElement(G,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:V(t+360*e.left,0,360)})},onEnd:r,"aria-label":"Hue","aria-valuenow":Z(t),"aria-valuemax":"360","aria-valuemin":"0"},p().createElement(Y,{className:"react-colorful__hue-pointer",left:t/360,color:Q({h:t,s:100,v:100,a:1})})))}),eo=p().memo(function(e){var t=e.hsva,n=e.onChange,r=e.onChangeEnd,o={backgroundColor:Q({h:t.h,s:100,v:100,a:1})};return p().createElement("div",{className:"react-colorful__saturation",style:o},p().createElement(G,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:V(t.s+100*e.left,0,100),v:V(t.v-100*e.top,0,100)})},onEnd:r,"aria-label":"Color","aria-valuetext":"Saturation "+Z(t.s)+"%, Brightness "+Z(t.v)+"%"},p().createElement(Y,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:Q(t)})))}),ei=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},ea="u">typeof window?d.useLayoutEffect:d.useEffect,es=new Map,el=function(e){ea(function(){var t=e.current?e.current.ownerDocument:document;if(void 0!==t&&!es.has(t)){var r=t.createElement("style");r.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\'data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill-opacity=".05"><path d="M8 0h8v8H8zM0 8h8v8H0z"/></svg>\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',es.set(t,r);var o=B||n.nc;o&&r.setAttribute("nonce",o),t.head.appendChild(r)}},[])},eu=function(e){var t,n,r,o,i,a,s,l=e.className,u=e.colorModel,c=e.color,f=void 0===c?u.defaultColor:c,h=e.onChange,m=e.onChangeEnd,g=L(e,["className","colorModel","color","onChange","onChangeEnd"]),v=(0,d.useRef)(null);el(v);var y=(t=z(h),n=z(m),o=(r=(0,d.useState)(function(){return u.toHsva(f)}))[0],i=r[1],a=(0,d.useRef)({color:f,hsva:o}),s=(0,d.useRef)(!1),(0,d.useEffect)(function(){if(!u.equal(f,a.current.color)){var e=u.toHsva(f);a.current={hsva:e,color:f},i(e),s.current=!1}},[f,u]),(0,d.useEffect)(function(){var e;ei(o,a.current.hsva)||u.equal(e=u.fromHsva(o),a.current.color)||(a.current={hsva:o,color:e},t(e),s.current=!0)},[o,u,t]),[o,(0,d.useCallback)(function(e){i(function(t){return Object.assign({},t,e)})},[]),(0,d.useCallback)(function(){s.current&&(s.current=!1,n(a.current.color))},[n])]),x=y[0],b=y[1],w=y[2],A=q(["react-colorful",l]);return p().createElement("div",_({},g,{ref:v,className:A}),p().createElement(eo,{hsva:x,onChange:b,onChangeEnd:w}),p().createElement(er,{hue:x.h,onChange:b,onChangeEnd:w,className:"react-colorful__last-control"}))},ec={defaultColor:"000",toHsva:function(e){return en(X(e))},fromHsva:function(e){return et(J({h:e.h,s:e.s,v:e.v,a:1}))},equal:function(e,t){return e.toLowerCase()===t.toLowerCase()||ei(X(e),X(t))}},ed=function(e){return p().createElement(eu,_({},e,{colorModel:ec}))};let ep=({color:e,onChange:t,onClear:n,palette:r})=>{let[o,i]=(0,d.useState)(e),a=e=>{i(e),t?.(e)};return(0,c.jsxs)(O.A,{spacing:1,children:[(0,c.jsx)(ed,{color:e,onChange:a,style:{width:"100%"}}),(0,c.jsx)(O.A,{direction:"row",flexWrap:"wrap",justifyContent:"space-evenly",width:"200px",children:r&&r.map((e,t)=>(0,c.jsx)(j.A,{size:"small","aria-label":`change color to ${e}`,sx:{color:e},onClick:()=>a(e),children:(0,c.jsx)(N,{})},t))}),(0,c.jsxs)(O.A,{direction:"row",gap:1,alignItems:"center",children:[(0,c.jsx)(P.A,{inputProps:{"aria-label":"enter hex color"},fullWidth:!0,value:o,onChange:e=>{let n=e.target.value.replace(/([^0-9A-F]+)/gi,"").substring(0,8);i(`#${n}`),ef(e.target.value)&&t?.(e.target.value)}}),n&&(0,c.jsx)(j.A,{onClick:n,children:(0,c.jsx)(F,{})})]})]})},ef=(e,t)=>{let n=/^#?([0-9A-F]{3,8})$/i.exec(e),r=n&&n[1]?n[1].length:0;return 3===r||6===r||!!t&&4===r||!!t&&8===r};var eh=n(91823);function em(e){let{children:t,chartsTheme:n,enablePinning:r=!1,enableSyncGrouping:o=!0}=e,[i,a]=(0,d.useState)(null),s=(0,d.useMemo)(()=>({chartsTheme:n,enablePinning:r,lastTooltipPinnedCoords:i,enableSyncGrouping:o,setLastTooltipPinnedCoords:a}),[n,r,o,i,a]);return(0,c.jsx)(eg.Provider,{value:s,children:t})}let eg=(0,d.createContext)(void 0);function ev(){let e=(0,d.useContext)(eg);if(void 0===e)throw Error("No ChartsThemeContext found. Did you forget a Provider?");return e}function ey(){return ev().chartsTheme}let ex=(0,d.createContext)(void 0);function eb({children:e}){let[t,n]=(0,d.useState)(new Map),r=(0,d.useCallback)((e,t,r)=>{n(n=>{let o=new Map(n),i=o.get(e)||{loading:!1};if(void 0!==r){let n=new Map(i.itemStatuses||new Map),a=n.get(r)||{loading:!1};n.set(r,{...a,...t}),o.set(e,{...i,itemStatuses:n})}else o.set(e,{...i,...t});return o})},[]),o=(0,d.useCallback)(e=>{n(t=>{if(void 0===e)return new Map;if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]),i=(0,d.useMemo)(()=>({actionStatuses:t,setActionStatus:r,clearActionStatus:o}),[t,r,o]);return(0,c.jsx)(ex.Provider,{value:i,children:e})}let ew=()=>{},eA={actionStatuses:new Map,setActionStatus:ew,clearActionStatus:ew,hasContext:!1};function eC(){let e=(0,d.useContext)(ex);return(0,d.useMemo)(()=>e?{...e,hasContext:!0}:eA,[e])}let eS=(0,d.createContext)(void 0),eM=(e,t)=>t;function eT({children:e}){let[t,n]=(0,d.useState)(new Map),r=(0,d.useRef)(eM),o=(0,d.useCallback)(e=>{r.current=e},[]),i=(0,d.useCallback)(e=>{let t=new Map;e.forEach(({item:e,id:n})=>t.set(n,e)),n(t)},[]),a=(0,d.useCallback)((e,t)=>{n(n=>{let r=new Map(n);return r.has(t)?r.delete(t):r.set(t,e),r})},[]),s=(0,d.useCallback)(e=>{n(t=>{if(!t.has(e))return t;let n=new Map(t);return n.delete(e),n})},[]),l=(0,d.useCallback)(()=>n(new Map),[]),u=(0,d.useCallback)((e,n)=>t.has(r.current(e,n)),[t]),p=(0,d.useMemo)(()=>({selectionMap:t,setSelection:i,toggleSelection:a,removeFromSelection:s,clearSelection:l,isSelected:u,registerGetId:o}),[t,i,a,s,l,u,o]);return(0,c.jsx)(eS.Provider,{value:p,children:e})}let ek=()=>{},eI={selectionMap:new Map,setSelection:ek,toggleSelection:ek,removeFromSelection:ek,clearSelection:ek,isSelected:()=>!1,hasContext:!1};function eE(e){let t=(0,d.useContext)(eS);return(0,d.useEffect)(()=>{t&&e?.getId&&t.registerGetId(e.getId)},[t,e?.getId]),(0,d.useMemo)(()=>{if(!t)return eI;let{registerGetId:e,...n}=t;return{...n,hasContext:!0}},[t])}var eR=n(20231),eD=n.n(eR);let eO=function(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(o&&(o+=" "),o+=r);else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}(e))&&(r&&(r+=" "),r+=t);return r},ej={data:""},eP=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,eN=/\/\*[^]*?\*\/| +/g,eF=/\n+/g,e_=(e,t)=>{let n="",r="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?n=i+" "+a+";":r+="f"==i[1]?e_(a,i):i+"{"+e_(a,"k"==i[1]?"":t)+"}":"object"==typeof a?r+=e_(a,t?t.replace(/([^,])+/g,e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)):i):null!=a&&(i="-"==i[1]?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=e_.p?e_.p(i,a):i+":"+a+";")}return n+(t&&o?t+"{"+o+"}":o)+r},eL={},ez=e=>{if("object"==typeof e){let t="";for(let n in e)t+=n+ez(e[n]);return t}return e};function eB(e){let t,n,r=this||{},o=e.call?e(r.p):e;return((e,t,n,r,o)=>{var i;let a=ez(e),s=eL[a]||(eL[a]=(e=>{let t=0,n=11;for(;t<e.length;)n=101*n+e.charCodeAt(t++)>>>0;return"go"+n})(a));if(!eL[s]){let t=a!==e?e:(e=>{let t,n,r=[{}];for(;t=eP.exec(e.replace(eN,""));)t[4]?r.shift():t[3]?(n=t[3].replace(eF," ").trim(),r.unshift(r[0][n]=r[0][n]||{})):r[0][t[1]]=t[2].replace(eF," ").trim();return r[0]})(e);eL[s]=e_(o?{["@keyframes "+s]:t}:t,n?"":"."+s)}let l=n&&eL.g;return n&&(eL.g=eL[s]),i=eL[s],l?t.data=t.data.replace(l,i):-1===t.data.indexOf(i)&&(t.data=r?i+t.data:t.data+i),s})(o.unshift?o.raw?(t=[].slice.call(arguments,1),n=r.p,o.reduce((e,r,o)=>{let i=t[o];if(i&&i.call){let e=i(n),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":e_(e,""):!1===e?"":e}return e+r+(null==i?"":i)},"")):o.reduce((e,t)=>Object.assign(e,t&&t.call?t(r.p):t),{}):o,(e=>{if("object"==typeof window){let t=(e?e.querySelector("#_goober"):window._goober)||Object.assign(document.createElement("style"),{innerHTML:" ",id:"_goober"});return t.nonce=window.__nonce__,t.parentNode||(e||document.head).appendChild(t),t.firstChild}return e||ej})(r.target),r.g,r.o,r.k)}function eV(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function e$(e,t,n){return t&&eV(e.prototype,t),n&&eV(e,n),e}function eH(){return(eH=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function eW(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function eU(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}function eG(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}eB.bind({g:1}),eB.bind({k:1});var eq=function(){return""},eY=p().createContext({enqueueSnackbar:eq,closeSnackbar:eq}),eZ="@media (max-width:599.95px)",eX="@media (min-width:600px)",eK=function(e){return e.charAt(0).toUpperCase()+e.slice(1)},eQ=function(e){return""+eK(e.vertical)+eK(e.horizontal)},eJ=function(e){return!!e||0===e},e0="unmounted",e1="exited",e2="entering",e5="entered",e4="exiting",e3=function(e){function t(t){var n,r=e.call(this,t)||this,o=t.appear;return r.appearStatus=null,t.in?o?(n=e1,r.appearStatus=e2):n=e5:n=t.unmountOnExit||t.mountOnEnter?e0:e1,r.state={status:n},r.nextCallback=null,r}eW(t,e),t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===e0?{status:e1}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==e2&&n!==e5&&(t=e2):(n===e2||n===e5)&&(t=e4)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=e,n=e;return null!=e&&"number"!=typeof e&&"string"!=typeof e&&(n=e.exit,t=e.enter),{exit:n,enter:t}},n.updateStatus=function(e,t){void 0===e&&(e=!1),null!==t?(this.cancelNextCallback(),t===e2?this.performEnter(e):this.performExit()):this.props.unmountOnExit&&this.state.status===e1&&this.setState({status:e0})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.getTimeouts();e||n?(this.props.onEnter&&this.props.onEnter(this.node,e),this.safeSetState({status:e2},function(){t.props.onEntering&&t.props.onEntering(t.node,e),t.onTransitionEnd(r.enter,function(){t.safeSetState({status:e5},function(){t.props.onEntered&&t.props.onEntered(t.node,e)})})})):this.safeSetState({status:e5},function(){t.props.onEntered&&t.props.onEntered(t.node,e)})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts();t?(this.props.onExit&&this.props.onExit(this.node),this.safeSetState({status:e4},function(){e.props.onExiting&&e.props.onExiting(e.node),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:e1},function(){e.props.onExited&&e.props.onExited(e.node)})})})):this.safeSetState({status:e1},function(){e.props.onExited&&e.props.onExited(e.node)})},n.cancelNextCallback=function(){null!==this.nextCallback&&this.nextCallback.cancel&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(){n&&(n=!1,t.nextCallback=null,e())},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=null==e&&!this.props.addEndListener;!this.node||n?setTimeout(this.nextCallback,0):(this.props.addEndListener&&this.props.addEndListener(this.node,this.nextCallback),null!=e&&setTimeout(this.nextCallback,e))},n.render=function(){var e=this.state.status;if(e===e0)return null;var t=this.props;return(0,t.children)(e,eU(t,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]))},e$(t,[{key:"node",get:function(){var e,t=null==(e=this.props.nodeRef)?void 0:e.current;if(!t)throw Error("notistack - Custom snackbar is not refForwarding");return t}}]),t}(p().Component);function e6(){}function e9(e,t){"function"==typeof e?e(t):e&&(e.current=t)}function e7(e,t){return(0,d.useMemo)(function(){return null==e&&null==t?null:function(n){e9(e,n),e9(t,n)}},[e,t])}function e8(e){var t=e.timeout,n=e.style,r=void 0===n?{}:n,o=e.mode;return{duration:"object"==typeof t?t[o]||0:t,easing:r.transitionTimingFunction,delay:r.transitionDelay}}e3.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:e6,onEntering:e6,onEntered:e6,onExit:e6,onExiting:e6,onExited:e6};var te=function(e){e.scrollTop=e.scrollTop},tt=function(e){return Math.round(e)+"ms"};function tn(e,t){void 0===e&&(e=["all"]);var n=t||{},r=n.duration,o=void 0===r?300:r,i=n.easing,a=void 0===i?"cubic-bezier(0.4, 0, 0.2, 1)":i,s=n.delay,l=void 0===s?0:s;return(Array.isArray(e)?e:[e]).map(function(e){return e+" "+("string"==typeof o?o:tt(o))+" "+a+" "+("string"==typeof l?l:tt(l))}).join(",")}function tr(e){return(e&&e.ownerDocument||document).defaultView||window}function to(e,t){if(t){var n=function(e,t){var n,r=t.getBoundingClientRect(),o=tr(t);if(t.fakeTransform)n=t.fakeTransform;else{var i=o.getComputedStyle(t);n=i.getPropertyValue("-webkit-transform")||i.getPropertyValue("transform")}var a=0,s=0;if(n&&"none"!==n&&"string"==typeof n){var l=n.split("(")[1].split(")")[0].split(",");a=parseInt(l[4],10),s=parseInt(l[5],10)}switch(e){case"left":return"translateX("+(o.innerWidth+a-r.left)+"px)";case"right":return"translateX(-"+(r.left+r.width-a)+"px)";case"up":return"translateY("+(o.innerHeight+s-r.top)+"px)";default:return"translateY(-"+(r.top+r.height-s)+"px)"}}(e,t);n&&(t.style.webkitTransform=n,t.style.transform=n)}}var ti=(0,d.forwardRef)(function(e,t){var n=e.children,r=e.direction,o=void 0===r?"down":r,i=e.in,a=e.style,s=e.timeout,l=void 0===s?0:s,u=e.onEnter,c=e.onEntered,p=e.onExit,f=e.onExited,h=eU(e,["children","direction","in","style","timeout","onEnter","onEntered","onExit","onExited"]),m=(0,d.useRef)(null),g=e7(n.ref,m),v=e7(g,t),y=(0,d.useCallback)(function(){m.current&&to(o,m.current)},[o]);return(0,d.useEffect)(function(){if(!i&&"down"!==o&&"right"!==o){var e=function(e,t){var n;function r(){for(var r=this,o=arguments.length,i=Array(o),a=0;a<o;a++)i[a]=arguments[a];clearTimeout(n),n=setTimeout(function(){e.apply(r,i)},t)}return void 0===t&&(t=166),r.clear=function(){clearTimeout(n)},r}(function(){m.current&&to(o,m.current)}),t=tr(m.current);return t.addEventListener("resize",e),function(){e.clear(),t.removeEventListener("resize",e)}}},[o,i]),(0,d.useEffect)(function(){i||y()},[i,y]),(0,d.createElement)(e3,Object.assign({appear:!0,nodeRef:m,onEnter:function(e,t){to(o,e),te(e),u&&u(e,t)},onEntered:c,onEntering:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||"cubic-bezier(0.0, 0, 0.2, 1)",n=e8({timeout:l,mode:"enter",style:eH({},a,{transitionTimingFunction:t})});e.style.webkitTransition=tn("-webkit-transform",n),e.style.transition=tn("transform",n),e.style.webkitTransform="none",e.style.transform="none"},onExit:function(e){var t=(null==a?void 0:a.transitionTimingFunction)||"cubic-bezier(0.4, 0, 0.6, 1)",n=e8({timeout:l,mode:"exit",style:eH({},a,{transitionTimingFunction:t})});e.style.webkitTransition=tn("-webkit-transform",n),e.style.transition=tn("transform",n),to(o,e),p&&p(e)},onExited:function(e){e.style.webkitTransition="",e.style.transition="",f&&f(e)},in:i,timeout:l},h),function(e,t){return(0,d.cloneElement)(n,eH({ref:v,style:eH({visibility:"exited"!==e||i?void 0:"hidden"},a,{},n.props.style)},t))})});ti.displayName="Slide";var ta=function(e){return p().createElement("svg",Object.assign({viewBox:"0 0 24 24",focusable:"false",style:{fontSize:20,marginInlineEnd:8,userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0}},e))},ts={maxSnack:3,persist:!1,hideIconVariant:!1,disableWindowBlurListener:!1,variant:"default",autoHideDuration:5e3,iconVariant:{default:void 0,success:p().createElement(function(){return p().createElement(ta,null,p().createElement("path",{d:"M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41\n 10.59L10 14.17L17.59 6.58L19 8L10 17Z"}))},null),warning:p().createElement(function(){return p().createElement(ta,null,p().createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},null),error:p().createElement(function(){return p().createElement(ta,null,p().createElement("path",{d:"M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,\n 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,\n 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z"}))},null),info:p().createElement(function(){return p().createElement(ta,null,p().createElement("path",{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,\n 0 22,12A10,10 0 0,0 12,2Z"}))},null)},anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:ti,transitionDuration:{enter:225,exit:195}},tl=function(e,t){var n=function(e){return"number"==typeof e||null===e};return n(e)?e:n(t)?t:ts.autoHideDuration},tu=function(e,t){var n=function(e,t){return t.some(function(t){return typeof e===t})};return n(e,["string","number"])?e:n(e,["object"])?eH({},ts.transitionDuration,{},n(t,["object"])&&t,{},e):n(t,["string","number"])?t:n(t,["object"])?eH({},ts.transitionDuration,{},t):ts.transitionDuration};function tc(e){return Object.entries(e).reduce(function(e,t){var n,r=t[0],o=t[1];return eH({},e,((n={})[r]=eB(o),n))},{})}var td="notistack-CollapseWrapper",tp=tc({root:{height:0},entered:{height:"auto"}}),tf=(0,d.forwardRef)(function(e,t){var n=e.children,r=e.in,o=e.onExited,i=(0,d.useRef)(null),a=(0,d.useRef)(null),s=e7(t,a),l=function(){return i.current?i.current.clientHeight:0};return(0,d.createElement)(e3,{in:r,unmountOnExit:!0,onEnter:function(e){e.style.height="0px"},onEntered:function(e){e.style.height="auto"},onEntering:function(e){var t=l(),n=e8({timeout:175,mode:"enter"}),r=n.duration,o=n.easing;e.style.transitionDuration="string"==typeof r?r:r+"ms",e.style.height=t+"px",e.style.transitionTimingFunction=o||""},onExit:function(e){e.style.height=l()+"px"},onExited:o,onExiting:function(e){te(e);var t=e8({timeout:175,mode:"exit"}),n=t.duration,r=t.easing;e.style.transitionDuration="string"==typeof n?n:n+"ms",e.style.height="0px",e.style.transitionTimingFunction=r||""},nodeRef:a,timeout:175},function(e,t){return(0,d.createElement)("div",Object.assign({ref:s,className:eO(tp.root,"entered"===e&&tp.entered),style:eH({pointerEvents:"all",overflow:"hidden",minHeight:"0px",transition:tn("height")},"entered"===e&&{overflow:"visible"},{},"exited"===e&&!r&&{visibility:"hidden"})},t),(0,d.createElement)("div",{ref:i,className:td,style:{display:"flex",width:"100%"}},n))})});tf.displayName="Collapse";var th={right:"left",left:"right",bottom:"up",top:"down"},tm=function(e){void 0===e&&(e={});var t={containerRoot:!0,containerAnchorOriginTopCenter:!0,containerAnchorOriginBottomCenter:!0,containerAnchorOriginTopRight:!0,containerAnchorOriginBottomRight:!0,containerAnchorOriginTopLeft:!0,containerAnchorOriginBottomLeft:!0};return Object.keys(e).filter(function(e){return!t[e]}).reduce(function(t,n){var r;return eH({},t,((r={})[n]=e[n],r))},{})},tg=function(){};function tv(e,t){return e.reduce(function(e,n){return null==n?e:function(){for(var r=arguments.length,o=Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=[].concat(o);t&&-1===a.indexOf(t)&&a.push(t),e.apply(this,a),n.apply(this,a)}},tg)}var ty="u">typeof window?d.useLayoutEffect:d.useEffect;function tx(e){var t=(0,d.useRef)(e);return ty(function(){t.current=e}),(0,d.useCallback)(function(){return t.current.apply(void 0,arguments)},[])}var tb=(0,d.forwardRef)(function(e,t){var n=e.children,r=e.className,o=e.autoHideDuration,i=e.disableWindowBlurListener,a=void 0!==i&&i,s=e.onClose,l=e.id,u=e.open,c=e.SnackbarProps,p=void 0===c?{}:c,f=(0,d.useRef)(),h=tx(function(){s&&s.apply(void 0,arguments)}),m=tx(function(e){s&&null!=e&&(f.current&&clearTimeout(f.current),f.current=setTimeout(function(){h(null,"timeout",l)},e))});(0,d.useEffect)(function(){return u&&m(o),function(){f.current&&clearTimeout(f.current)}},[u,o,m]);var g=function(){f.current&&clearTimeout(f.current)},v=(0,d.useCallback)(function(){null!=o&&m(.5*o)},[o,m]);return(0,d.useEffect)(function(){if(!a&&u)return window.addEventListener("focus",v),window.addEventListener("blur",g),function(){window.removeEventListener("focus",v),window.removeEventListener("blur",g)}},[a,v,u]),(0,d.createElement)("div",Object.assign({ref:t},p,{className:eO("notistack-Snackbar",r),onMouseEnter:function(e){p.onMouseEnter&&p.onMouseEnter(e),g()},onMouseLeave:function(e){p.onMouseLeave&&p.onMouseLeave(e),v()}}),n)});tb.displayName="Snackbar";var tw=tc({root:((iH={display:"flex",flexWrap:"wrap",flexGrow:1})[eX]={flexGrow:"initial",minWidth:"288px"},iH)}),tA=(0,d.forwardRef)(function(e,t){var n=e.className,r=eU(e,["className"]);return p().createElement("div",Object.assign({ref:t,className:eO(tw.root,n)},r))});tA.displayName="SnackbarContent";var tC=tc({root:{backgroundColor:"#313131",fontSize:"0.875rem",lineHeight:1.43,letterSpacing:"0.01071em",color:"#fff",alignItems:"center",padding:"6px 16px",borderRadius:"4px",boxShadow:"0px 3px 5px -1px rgba(0,0,0,0.2),0px 6px 10px 0px rgba(0,0,0,0.14),0px 1px 18px 0px rgba(0,0,0,0.12)"},lessPadding:{paddingLeft:"20px"},default:{backgroundColor:"#313131"},success:{backgroundColor:"#43a047"},error:{backgroundColor:"#d32f2f"},warning:{backgroundColor:"#ff9800"},info:{backgroundColor:"#2196f3"},message:{display:"flex",alignItems:"center",padding:"8px 0"},action:{display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:"16px",marginRight:"-8px"}}),tS="notistack-snackbar",tM=(0,d.forwardRef)(function(e,t){var n=e.id,r=e.message,o=e.action,i=e.iconVariant,a=e.variant,s=e.hideIconVariant,l=e.style,u=e.className,c=i[a],d=o;return"function"==typeof d&&(d=d(n)),p().createElement(tA,{ref:t,role:"alert","aria-describedby":tS,style:l,className:eO("notistack-MuiContent","notistack-MuiContent-"+a,tC.root,tC[a],u,!s&&c&&tC.lessPadding)},p().createElement("div",{id:tS,className:tC.message},s?null:c,r),d&&p().createElement("div",{className:tC.action},d))});tM.displayName="MaterialDesignContent";var tT=(0,d.memo)(tM),tk=tc({wrappedRoot:{width:"100%",position:"relative",transform:"translateX(0)",top:0,right:0,bottom:0,left:0,minWidth:"288px"}}),tI=function(e){var t,n=(0,d.useRef)(),r=(0,d.useState)(!0),o=r[0],i=r[1],a=tv([e.snack.onClose,e.onClose]),s=(0,d.useCallback)(function(){n.current=setTimeout(function(){i(function(e){return!e})},125)},[]);(0,d.useEffect)(function(){return function(){n.current&&clearTimeout(n.current)}},[]);var l=e.snack,u=e.classes,c=e.Component,f=(0,d.useMemo)(function(){return tm(u)},[u]),h=l.open,m=l.SnackbarProps,g=l.TransitionComponent,v=l.TransitionProps,y=l.transitionDuration,x=l.disableWindowBlurListener,b=l.content,w=eU(l,["open","SnackbarProps","TransitionComponent","TransitionProps","transitionDuration","disableWindowBlurListener","content","entered","requestClose","onEnter","onEntered","onExit","onExited"]),A=eH({direction:"center"!==(t=w.anchorOrigin).horizontal?th[t.horizontal]:th[t.vertical],timeout:y},v),C=b;"function"==typeof C&&(C=C(w.id,w.message));var S=["onEnter","onEntered","onExit","onExited"].reduce(function(t,n){var r;return eH({},t,((r={})[n]=tv([e.snack[n],e[n]],w.id),r))},{});return p().createElement(tf,{in:o,onExited:S.onExited},p().createElement(tb,{open:h,id:w.id,disableWindowBlurListener:x,autoHideDuration:w.autoHideDuration,className:eO(tk.wrappedRoot,f.root,f["anchorOrigin"+eQ(w.anchorOrigin)]),SnackbarProps:m,onClose:a},p().createElement(g,Object.assign({},A,{appear:!0,in:h,onExit:S.onExit,onExited:s,onEnter:S.onEnter,onEntered:tv([S.onEntered,function(){e.snack.requestClose&&a(null,"instructed",e.snack.id)}],w.id)}),C||p().createElement(void 0===c?tT:c,Object.assign({},w)))))},tE=20,tR=6,tD=2,tO="."+td,tj=tc({root:((iW={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:1400,height:"auto",width:"auto",transition:tn(["top","right","bottom","left","max-width"],{duration:300,easing:"ease"}),pointerEvents:"none"})[tO]={padding:tR+"px 0px",transition:"padding 300ms ease 0ms"},iW.maxWidth="calc(100% - "+2*tE+"px)",iW[eZ]={width:"100%",maxWidth:"calc(100% - 32px)"},iW),rootDense:((iU={})[tO]={padding:tD+"px 0px"},iU),top:{top:tE-tR+"px",flexDirection:"column"},bottom:{bottom:tE-tR+"px",flexDirection:"column-reverse"},left:((iG={left:tE+"px"})[eX]={alignItems:"flex-start"},iG[eZ]={left:"16px"},iG),right:((iq={right:tE+"px"})[eX]={alignItems:"flex-end"},iq[eZ]={right:"16px"},iq),center:((iY={left:"50%",transform:"translateX(-50%)"})[eX]={alignItems:"center"},iY)}),tP=(0,d.memo)(function(e){var t=e.classes,n=void 0===t?{}:t,r=e.anchorOrigin,o=e.dense,i=e.children,a=eO("notistack-SnackbarContainer",tj[r.vertical],tj[r.horizontal],tj.root,n.containerRoot,n["containerAnchorOrigin"+eQ(r)],o&&tj.rootDense);return p().createElement("div",{className:a},i)}),tN=function(e){return!("string"==typeof e||(0,d.isValidElement)(e))},tF=function(e){function t(t){var n;return(n=e.call(this,t)||this).enqueueSnackbar=function(e,t){if(void 0===t&&(t={}),null==e)throw Error("enqueueSnackbar called with invalid argument");var r,o=tN(e)?e:t,i=tN(e)?e.message:e,a=o.key,s=o.preventDuplicate,l=eU(o,["key","preventDuplicate"]),u=eJ(a),c=u?a:new Date().getTime()+Math.random(),d=(r=n.props,function(e,t){return(void 0===t&&(t=!1),t)?eH({},ts[e],{},r[e],{},l[e]):"autoHideDuration"===e?tl(l.autoHideDuration,r.autoHideDuration):"transitionDuration"===e?tu(l.transitionDuration,r.transitionDuration):l[e]||r[e]||ts[e]}),p=eH({id:c},l,{message:i,open:!0,entered:!1,requestClose:!1,persist:d("persist"),action:d("action"),content:d("content"),variant:d("variant"),anchorOrigin:d("anchorOrigin"),disableWindowBlurListener:d("disableWindowBlurListener"),autoHideDuration:d("autoHideDuration"),hideIconVariant:d("hideIconVariant"),TransitionComponent:d("TransitionComponent"),transitionDuration:d("transitionDuration"),TransitionProps:d("TransitionProps",!0),iconVariant:d("iconVariant",!0),style:d("style",!0),SnackbarProps:d("SnackbarProps",!0),className:eO(n.props.className,l.className)});return p.persist&&(p.autoHideDuration=void 0),n.setState(function(e){if(void 0===s&&n.props.preventDuplicate||s){var t=function(e){return u?e.id===c:e.message===i},r=e.queue.findIndex(t)>-1,o=e.snacks.findIndex(t)>-1;if(r||o)return e}return n.handleDisplaySnack(eH({},e,{queue:[].concat(e.queue,[p])}))}),c},n.handleDisplaySnack=function(e){return e.snacks.length>=n.maxSnack?n.handleDismissOldest(e):n.processQueue(e)},n.processQueue=function(e){var t=e.queue,n=e.snacks;return t.length>0?eH({},e,{snacks:[].concat(n,[t[0]]),queue:t.slice(1,t.length)}):e},n.handleDismissOldest=function(e){if(e.snacks.some(function(e){return!e.open||e.requestClose}))return e;var t=!1,r=!1;e.snacks.reduce(function(e,t){return e+(t.open&&t.persist?1:0)},0)===n.maxSnack&&(r=!0);var o=e.snacks.map(function(e){return t||e.persist&&!r?eH({},e):(t=!0,e.entered)?(e.onClose&&e.onClose(null,"maxsnack",e.id),n.props.onClose&&n.props.onClose(null,"maxsnack",e.id),eH({},e,{open:!1})):eH({},e,{requestClose:!0})});return eH({},e,{snacks:o})},n.handleEnteredSnack=function(e,t,r){if(!eJ(r))throw Error("handleEnteredSnack Cannot be called with undefined key");n.setState(function(e){return{snacks:e.snacks.map(function(e){return e.id===r?eH({},e,{entered:!0}):eH({},e)})}})},n.handleCloseSnack=function(e,t,r){n.props.onClose&&n.props.onClose(e,t,r);var o=void 0===r;n.setState(function(e){var t=e.snacks,n=e.queue;return{snacks:t.map(function(e){return o||e.id===r?e.entered?eH({},e,{open:!1}):eH({},e,{requestClose:!0}):eH({},e)}),queue:n.filter(function(e){return e.id!==r})}})},n.closeSnackbar=function(e){var t=n.state.snacks.find(function(t){return t.id===e});eJ(e)&&t&&t.onClose&&t.onClose(null,"instructed",e),n.handleCloseSnack(null,"instructed",e)},n.handleExitedSnack=function(e,t){if(!eJ(t))throw Error("handleExitedSnack Cannot be called with undefined key");n.setState(function(e){var r=n.processQueue(eH({},e,{snacks:e.snacks.filter(function(e){return e.id!==t})}));return 0===r.queue.length?r:n.handleDismissOldest(r)})},n.enqueueSnackbar,n.closeSnackbar,n.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:n.enqueueSnackbar.bind(eG(n)),closeSnackbar:n.closeSnackbar.bind(eG(n))}},n}return eW(t,e),t.prototype.render=function(){var e=this,t=this.state.contextValue,n=this.props,r=n.domRoot,o=n.children,i=n.dense,a=void 0!==i&&i,s=n.Components,l=void 0===s?{}:s,u=n.classes,c=this.state.snacks.reduce(function(e,t){var n,r=eQ(t.anchorOrigin),o=e[r]||[];return eH({},e,((n={})[r]=[].concat(o,[t]),n))},{}),d=Object.keys(c).map(function(t){var n=c[t],r=n[0];return p().createElement(tP,{key:t,dense:a,anchorOrigin:r.anchorOrigin,classes:u},n.map(function(t){return p().createElement(tI,{key:t.id,snack:t,classes:u,Component:l[t.variant],onClose:e.handleCloseSnack,onEnter:e.props.onEnter,onExit:e.props.onExit,onExited:tv([e.handleExitedSnack,e.props.onExited],t.id),onEntered:tv([e.handleEnteredSnack,e.props.onEntered],t.id)})}))});return p().createElement(eY.Provider,{value:t},o,r?(0,eR.createPortal)(d,r):d)},e$(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||ts.maxSnack}}]),t}(d.Component);function t_({children:e,...t}){return(0,c.jsx)(tF,{...t,Components:{error:(0,y.A)(tT)(()=>({"&.notistack-MuiContent-error":{whiteSpace:"pre-wrap"}}))},children:e})}function tL(){let{enqueueSnackbar:e,closeSnackbar:t}=(0,d.useContext)(eY),n=tz(e,"error"),r=tz(e,"info"),o=tz(e,"warning"),i=tz(e,"success"),a=(0,d.useCallback)((e,t)=>n(e instanceof Error?e.message:`An unexpected error occurred: ${e}`,t),[n]);return{enqueueSnackbar:e,closeSnackbar:t,errorSnackbar:n,infoSnackbar:r,warningSnackbar:o,successSnackbar:i,exceptionSnackbar:a}}function tz(e,t){return(0,d.useCallback)((n,r)=>e(n,{...r,variant:t}),[e,t])}var tB=n(25632);let tV="Pinned Crosshair",t$={name:tV,type:"line",markLine:{data:[],lineStyle:{type:"dashed",width:2},emphasis:{lineStyle:{width:2,opacity:1}},blur:{lineStyle:{width:2,opacity:1}}}};var tH=n(97618),tW=n(94461);function tU(e){return{value:{pastDuration:e},display:`Last ${(0,tW.formatDuration)((0,tH.pW)(e),{delimiter:", "})}`}}function tG(){return["local","UTC",...Intl.supportedValuesOf?.("timeZone")??[]].filter((e,t,n)=>n.indexOf(e)===t).map(e=>({value:e,display:"local"===e?"Local":e.replace(/_/g," ")}))}function tq(e,t){return"read"===e?"View":t&&"create"===e?"Add":t||"create"!==e?"update"===e?"Edit":"":"Create"}function tY(e,t){return t&&"create"===e?"Add":t&&"update"===e?"Apply":t?"":"Save"}let tZ=["bottom","right"],tX=["list","table"],tK=["small","medium"];function tQ(e){return tZ.includes(e)}function tJ(e){return tX.includes(e)}function t0(e){return tK.includes(e)}let t1={position:"bottom",mode:"list",size:"medium"};function t2(e){return void 0===e?t1.position:tQ(e)?e:t1.position}function t5(e){return e&&tJ(e)?e:t1.mode}function t4(e){return e&&t0(e)?e:t1.size}let t3=new Map([["time",new Map],["decimal",new Map],["bits",new Map],["bytes",new Map],["currency",new Map],["percent",new Map],["temperature",new Map],["throughput",new Map]]);function t6(e,t,n,r="en-US"){let o=`${e.filter(e=>![void 0,null,"",NaN].includes(e)).join("|")}|${r}`,i=t3.get(t);if(!i)throw Error("No formatter found for the input type");let a=i.get(o);if(a)return a.format;let s=Intl.NumberFormat(r,n);return i?.set(`${o}`,s),s.format}let t9=()=>({countCacheItems:e=>"all"!==e?t3.get(e)?.size??0:Array.from(t3.values()).reduce((e,t)=>e+(t?.size??0),0),getKeys:e=>[...t3.get(e)?.keys()||[]]});function t7(e){return!1!==e}function t8(e){return"number"==typeof e}function ne(e){return e&&(e<0?e=0:e>20&&(e=20)),e}let nt="Time",nn={label:"Time",decimalPlaces:!0},nr={nanoseconds:{group:nt,label:"Nanoseconds"},microseconds:{group:nt,label:"Microseconds"},milliseconds:{group:nt,label:"Milliseconds"},seconds:{group:nt,label:"Seconds"},minutes:{group:nt,label:"Minutes"},hours:{group:nt,label:"Hours"},days:{group:nt,label:"Days"},weeks:{group:nt,label:"Weeks"},months:{group:nt,label:"Months"},years:{group:nt,label:"Years"}};var no=((iV={}).nanoseconds="nanosecond",iV.microseconds="microsecond",iV.milliseconds="millisecond",iV.seconds="second",iV.minutes="minute",iV.hours="hour",iV.days="day",iV.weeks="week",iV.months="month",iV.years="year",iV);let ni={years:31536e3,months:2592e3,weeks:604800,days:86400,hours:3600,minutes:60,seconds:1,milliseconds:.001,microseconds:1e-6,nanoseconds:1e-9},na=["years","months","weeks","days","hours","minutes","seconds","milliseconds","microseconds","nanoseconds"];function ns(e,{unit:t,decimalPlaces:n}){var r;if(0===e)return"0s";let o=function(e,t){let n=e*ni[t],r=na[0]||"years",o=r,i=n/ni[r];for(o of na)if((i=n/ni[o])>=1)break;return{value:i,unit:o}}(e,t??"seconds"),i={style:"unit",unit:no[o.unit],unitDisplay:"months"===(r=o.unit)||"years"===r?"long":"narrow"};return t8(n)?(i.minimumFractionDigits=ne(n),i.maximumFractionDigits=ne(n)):i.maximumSignificantDigits=3,t6([i.style,i.unit,i.unitDisplay,i.maximumSignificantDigits,n,t??"seconds"],"time",i,"en-US")(o.value)}var nl="u">typeof globalThis?globalThis:"u">typeof window?window:void 0!==n.g?n.g:"u">typeof self?self:{};function nu(){if(iQ)return iK;iQ=1;let e=[{key:"ZiB",factor:11805916207174113e5},{key:"ZB",factor:1e21},{key:"YiB",factor:12089258196146292e8},{key:"YB",factor:1e24},{key:"TiB",factor:0x10000000000},{key:"TB",factor:1e12},{key:"PiB",factor:0x4000000000000},{key:"PB",factor:1e15},{key:"MiB",factor:1048576},{key:"MB",factor:1e6},{key:"KiB",factor:1024},{key:"KB",factor:1e3},{key:"GiB",factor:0x40000000},{key:"GB",factor:1e9},{key:"EiB",factor:0x1000000000000000},{key:"EB",factor:1e18},{key:"B",factor:1}];function t(e){return e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&")}return iK={unformat:function(n,r){let o,i=np(),a=i.currentDelimiters(),s=i.currentCurrency().symbol,l=i.currentOrdinal(),u=i.getZeroFormat(),c=i.currentAbbreviations();if("string"==typeof n)if(function(e,t){if(!(e.indexOf(":")&&":"!==t.thousands))return!1;let n=e.split(":");if(3!==n.length)return!1;let r=+n[0],o=+n[1],i=+n[2];return!isNaN(r)&&!isNaN(o)&&!isNaN(i)}(n,a)){let e,t,r;t=+(e=n.split(":"))[0],r=+e[1],o=+e[2]+60*r+3600*t}else o=function(n,r,o="",i,a,s){if(""!==n)return n===a?0:function n(r,o,i,a,s,l,u){if(!isNaN(+r))return+r;let c="",d=r.replace(/(^[^(]*)\((.*)\)([^)]*$)/,"$1$2$3");if(d!==r)return -1*n(d,o,i,a,s,l);for(let t=0;t<e.length;t++){let u=e[t];if((c=r.replace(RegExp(`([0-9 ])(${u.key})$`),"$1"))!==r)return n(c,o,i,a,s,l)*u.factor}if((c=r.replace("%",""))!==r)return n(c,o,i,a,s,l)/100;let p=parseFloat(r);if(isNaN(p))return;let f=a(p);if(f&&"."!==f&&(c=r.replace(RegExp(`${t(f)}$`),""))!==r)return n(c,o,i,a,s,l);let h={};Object.keys(l).forEach(e=>{h[l[e]]=e});let m=Object.keys(h).sort().reverse(),g=m.length;for(let e=0;e<g;e++){let t=m[e],u=h[t];if((c=r.replace(t,""))!==r){let e;switch(u){case"thousand":e=1e3;break;case"million":e=1e6;break;case"billion":e=1e9;break;case"trillion":e=1e12}return n(c,o,i,a,s,l)*e}}}(n.replace(o,"").replace(RegExp(`([0-9])${t(r.thousands)}([0-9])`,"g"),"$1$2").replace(r.decimal,"."),r,o,i,a,s)}(n,a,s,l,u,c);else{if("number"!=typeof n)return;o=n}if(void 0!==o)return o}}}function nc(){if(i0)return iJ;i0=1;let e=nu(),t=/^[a-z]{2,3}(-[a-zA-Z]{4})?(-([A-Z]{2}|[0-9]{3}))?$/,n={output:{type:"string",validValues:["currency","percent","byte","time","ordinal","number"]},base:{type:"string",validValues:["decimal","binary","general"],restriction:(e,t)=>"byte"===t.output,message:"`base` must be provided only when the output is `byte`",mandatory:e=>"byte"===e.output},characteristic:{type:"number",restriction:e=>e>=0,message:"value must be positive"},prefix:"string",postfix:"string",forceAverage:{type:"string",validValues:["trillion","billion","million","thousand"]},average:"boolean",lowPrecision:{type:"boolean",restriction:(e,t)=>!0===t.average,message:"`lowPrecision` must be provided only when the option `average` is set"},currencyPosition:{type:"string",validValues:["prefix","infix","postfix"]},currencySymbol:"string",totalLength:{type:"number",restrictions:[{restriction:e=>e>=0,message:"value must be positive"},{restriction:(e,t)=>!t.exponential,message:"`totalLength` is incompatible with `exponential`"}]},mantissa:{type:"number",restriction:e=>e>=0,message:"value must be positive"},optionalMantissa:"boolean",trimMantissa:"boolean",roundingFunction:"function",optionalCharacteristic:"boolean",thousandSeparated:"boolean",spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",spaceSeparatedAbbreviation:"boolean",abbreviations:{type:"object",children:{thousand:"string",million:"string",billion:"string",trillion:"string"}},negative:{type:"string",validValues:["sign","parenthesis"]},forceSign:"boolean",exponential:{type:"boolean"},prefixSymbol:{type:"boolean",restriction:(e,t)=>"percent"===t.output,message:"`prefixSymbol` can be provided only when the output is `percent`"}},r={languageTag:{type:"string",mandatory:!0,restriction:e=>e.match(t),message:"the language tag must follow the BCP 47 specification (see https://tools.ieft.org/html/bcp47)"},delimiters:{type:"object",children:{thousands:"string",decimal:"string",thousandsSize:"number"},mandatory:!0},abbreviations:{type:"object",children:{thousand:{type:"string",mandatory:!0},million:{type:"string",mandatory:!0},billion:{type:"string",mandatory:!0},trillion:{type:"string",mandatory:!0}},mandatory:!0},spaceSeparated:"boolean",spaceSeparatedCurrency:"boolean",ordinal:{type:"function",mandatory:!0},bytes:{type:"object",children:{binarySuffixes:"object",decimalSuffixes:"object"}},currency:{type:"object",children:{symbol:"string",position:"string",code:"string"},mandatory:!0},defaults:"format",ordinalFormat:"format",byteFormat:"format",percentageFormat:"format",currencyFormat:"format",timeDefaults:"format",formats:{type:"object",children:{fourDigits:{type:"format",mandatory:!0},fullWithTwoDecimals:{type:"format",mandatory:!0},fullWithTwoDecimalsNoCurrency:{type:"format",mandatory:!0},fullWithNoDecimals:{type:"format",mandatory:!0}}}};function o(t){return void 0!==e.unformat(t)}function i(e,t,r,o=!1){let a=Object.keys(e).map(o=>{if(!t[o])return console.error(`${r} Invalid key: ${o}`),!1;let a=e[o],s=t[o];if("string"==typeof s&&(s={type:s}),"format"===s.type){if(!i(a,n,`[Validate ${o}]`,!0))return!1}else if(typeof a!==s.type)return console.error(`${r} ${o} type mismatched: "${s.type}" expected, "${typeof a}" provided`),!1;if(s.restrictions&&s.restrictions.length){let t=s.restrictions.length;for(let n=0;n<t;n++){let{restriction:t,message:i}=s.restrictions[n];if(!t(a,e))return console.error(`${r} ${o} invalid value: ${i}`),!1}}return s.restriction&&!s.restriction(a,e)?(console.error(`${r} ${o} invalid value: ${s.message}`),!1):s.validValues&&-1===s.validValues.indexOf(a)?(console.error(`${r} ${o} invalid value: must be among ${JSON.stringify(s.validValues)}, "${a}" provided`),!1):(!s.children||!!i(a,s.children,`[Validate ${o}]`))&&!0});return o||a.push(...Object.keys(t).map(n=>{let o=t[n];if("string"==typeof o&&(o={type:o}),o.mandatory){let t=o.mandatory;if("function"==typeof t&&(t=t(e)),t&&void 0===e[n])return console.error(`${r} Missing mandatory key "${n}"`),!1}return!0})),a.reduce((e,t)=>e&&t,!0)}function a(e){return i(e,n,"[Validate format]")}return iJ={validate:function(e,t){let n=o(e),r=a(t);return n&&r},validateFormat:a,validateInput:o,validateLanguage:function(e){return i(e,r,"[Validate language]")}}}var nd=function(e,t={}){var n,r,o,i,a,s;let l,u,c,d,p;if("string"!=typeof e)return e;r=e=(l=(n=e).match(/^{([^}]*)}/))?(t.prefix=l[1],n.slice(l[0].length)):n,function(e,t){if(-1!==e.indexOf("$")){t.output="currency";return}if(-1!==e.indexOf("%")){t.output="percent";return}if(-1!==e.indexOf("bd")){t.output="byte",t.base="general";return}if(-1!==e.indexOf("b")){t.output="byte",t.base="binary";return}if(-1!==e.indexOf("d")){t.output="byte",t.base="decimal";return}if(-1!==e.indexOf(":")){t.output="time";return}-1!==e.indexOf("o")&&(t.output="ordinal")}(e=(u=r.match(/{([^}]*)}$/))?(t.postfix=u[1],r.slice(0,-u[0].length)):r,t),(c=e.match(/[1-9]+[0-9]*/))&&(t.totalLength=+c[0]),(d=e.split(".")[0].match(/0+/))&&(t.characteristic=d[0].length),-1!==(o=e).indexOf(".")&&(t.optionalCharacteristic=-1===o.split(".")[0].indexOf("0")),-1!==e.indexOf("a")&&(t.average=!0),-1!==(i=e).indexOf("K")?t.forceAverage="thousand":-1!==i.indexOf("M")?t.forceAverage="million":-1!==i.indexOf("B")?t.forceAverage="billion":-1!==i.indexOf("T")&&(t.forceAverage="trillion");let f=e.split(".")[1];if(f){let e=f.match(/0+/);e&&(t.mantissa=e[0].length)}return(a=e).match(/\[\.]/)?t.optionalMantissa=!0:a.match(/\./)&&(t.optionalMantissa=!1),(p=e.split(".")[1])&&(t.trimMantissa=-1!==p.indexOf("[")),-1!==e.indexOf(",")&&(t.thousandSeparated=!0),-1!==e.indexOf(" ")&&(t.spaceSeparated=!0,t.spaceSeparatedCurrency=!0,(t.average||t.forceAverage)&&(t.spaceSeparatedAbbreviation=!0)),(s=e).match(/^\+?\([^)]*\)$/)&&(t.negative="parenthesis"),s.match(/^\+?-/)&&(t.negative="sign"),e.match(/^\+/)&&(t.forceSign=!0),t};function np(){let e;if(i2)return i1;i2=1;let t=iX?iZ:(iX=1,iZ={languageTag:"en-US",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},spaceSeparated:!1,ordinal:function(e){let t=e%10;return 1==~~(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th"},bytes:{binarySuffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"],decimalSuffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},currency:{symbol:"$",position:"prefix",code:"USD"},currencyFormat:{thousandSeparated:!0,totalLength:4,spaceSeparated:!0,spaceSeparatedCurrency:!0},formats:{fourDigits:{totalLength:4,spaceSeparated:!0},fullWithTwoDecimals:{output:"currency",thousandSeparated:!0,mantissa:2},fullWithTwoDecimalsNoCurrency:{thousandSeparated:!0,mantissa:2},fullWithNoDecimals:{output:"currency",thousandSeparated:!0,mantissa:0}}}),n=nc(),r={},o={},i=null,a={};function s(){return o[e]}return r.languages=()=>Object.assign({},o),r.currentLanguage=()=>e,r.currentBytes=()=>s().bytes||{},r.currentCurrency=()=>s().currency,r.currentAbbreviations=()=>s().abbreviations,r.currentDelimiters=()=>s().delimiters,r.currentOrdinal=()=>s().ordinal,r.currentDefaults=()=>Object.assign({},s().defaults,a),r.currentOrdinalDefaultFormat=()=>Object.assign({},r.currentDefaults(),s().ordinalFormat),r.currentByteDefaultFormat=()=>Object.assign({},r.currentDefaults(),s().byteFormat),r.currentPercentageDefaultFormat=()=>Object.assign({},r.currentDefaults(),s().percentageFormat),r.currentCurrencyDefaultFormat=()=>Object.assign({},r.currentDefaults(),s().currencyFormat),r.currentTimeDefaultFormat=()=>Object.assign({},r.currentDefaults(),s().timeFormat),r.setDefaults=e=>{e=nd(e),n.validateFormat(e)&&(a=e)},r.getZeroFormat=()=>i,r.setZeroFormat=e=>i="string"==typeof e?e:null,r.hasZeroFormat=()=>null!==i,r.languageData=e=>{if(e){if(o[e])return o[e];throw Error(`Unknown tag "${e}"`)}return s()},r.registerLanguage=(t,r=!1)=>{if(!n.validateLanguage(t))throw Error("Invalid language data");o[t.languageTag]=t,r&&(e=t.languageTag)},r.setLanguage=(n,r=t.languageTag)=>{if(!o[n]){let t=n.split("-")[0],i=Object.keys(o).find(e=>e.split("-")[0]===t);return o[i]?void(e=i):void(e=r)}e=n},r.registerLanguage(t),e=t.languageTag,i1=r}var nf={exports:{}};(function(e){var t,n=/^-?(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?$/i,r=Math.ceil,o=Math.floor,i="[BigNumber Error] ",a=i+"Number primitive has more than 15 significant digits: ",s=[1,10,100,1e3,1e4,1e5,1e6,1e7,1e8,1e9,1e10,1e11,1e12,1e13];function l(e){var t=0|e;return e>0||e===t?t:t-1}function u(e){for(var t,n,r=1,o=e.length,i=e[0]+"";r<o;){for(n=14-(t=e[r++]+"").length;n--;t="0"+t);i+=t}for(o=i.length;48===i.charCodeAt(--o););return i.slice(0,o+1||1)}function c(e,t){var n,r,o=e.c,i=t.c,a=e.s,s=t.s,l=e.e,u=t.e;if(!a||!s)return null;if(n=o&&!o[0],r=i&&!i[0],n||r)return n?r?0:-s:a;if(a!=s)return a;if(n=a<0,r=l==u,!o||!i)return r?0:!o^n?1:-1;if(!r)return l>u^n?1:-1;for(a=0,s=(l=o.length)<(u=i.length)?l:u;a<s;a++)if(o[a]!=i[a])return o[a]>i[a]^n?1:-1;return l==u?0:l>u^n?1:-1}function d(e,t,n,r){if(e<t||e>n||e!==o(e))throw Error(i+(r||"Argument")+("number"==typeof e?e<t||e>n?" out of range: ":" not an integer: ":" not a primitive number: ")+String(e))}function p(e){var t=e.c.length-1;return l(e.e/14)==t&&e.c[t]%2!=0}function f(e,t){return(e.length>1?e.charAt(0)+"."+e.slice(1):e)+(t<0?"e":"e+")+t}function h(e,t,n){var r,o;if(t<0){for(o=n+".";++t;o+=n);e=o+e}else if(r=e.length,++t>r){for(o=n,t-=r;--t;o+=n);e+=o}else t<r&&(e=e.slice(0,t)+"."+e.slice(t));return e}(t=function e(t){var m,g,v,y,x,b,w,A,C,S=L.prototype={constructor:L,toString:null,valueOf:null},M=new L(1),T=20,k=4,I=-7,E=21,R=-1e7,D=1e7,O=!1,j=1,P=0,N={prefix:"",groupSize:3,secondaryGroupSize:0,groupSeparator:",",decimalSeparator:".",fractionGroupSize:0,fractionGroupSeparator:"\xa0",suffix:""},F="0123456789abcdefghijklmnopqrstuvwxyz",_=!0;function L(e,t){var r,i,s,l,u,c,p,f,h=this;if(!(h instanceof L))return new L(e,t);if(null==t){if(e&&!0===e._isBigNumber){h.s=e.s,!e.c||e.e>D?h.c=h.e=null:e.e<R?h.c=[h.e=0]:(h.e=e.e,h.c=e.c.slice());return}if((c="number"==typeof e)&&0*e==0){if(h.s=1/e<0?(e=-e,-1):1,e===~~e){for(l=0,u=e;u>=10;u/=10,l++);l>D?h.c=h.e=null:(h.e=l,h.c=[e]);return}f=String(e)}else{if(!n.test(f=String(e)))return C(h,f,c);h.s=45==f.charCodeAt(0)?(f=f.slice(1),-1):1}(l=f.indexOf("."))>-1&&(f=f.replace(".","")),(u=f.search(/e/i))>0?(l<0&&(l=u),l+=+f.slice(u+1),f=f.substring(0,u)):l<0&&(l=f.length)}else{if(d(t,2,F.length,"Base"),10==t&&_)return $(h=new L(e),T+h.e+1,k);if(f=String(e),c="number"==typeof e){if(0*e!=0)return C(h,f,c,t);if(h.s=1/e<0?(f=f.slice(1),-1):1,L.DEBUG&&f.replace(/^0\.0*|\./,"").length>15)throw Error(a+e)}else h.s=45===f.charCodeAt(0)?(f=f.slice(1),-1):1;for(r=F.slice(0,t),l=u=0,p=f.length;u<p;u++)if(0>r.indexOf(i=f.charAt(u))){if("."==i){if(u>l){l=p;continue}}else if(!s&&(f==f.toUpperCase()&&(f=f.toLowerCase())||f==f.toLowerCase()&&(f=f.toUpperCase()))){s=!0,u=-1,l=0;continue}return C(h,String(e),c,t)}c=!1,(l=(f=A(f,t,10,h.s)).indexOf("."))>-1?f=f.replace(".",""):l=f.length}for(u=0;48===f.charCodeAt(u);u++);for(p=f.length;48===f.charCodeAt(--p););if(f=f.slice(u,++p)){if(p-=u,c&&L.DEBUG&&p>15&&(e>0x1fffffffffffff||e!==o(e)))throw Error(a+h.s*e);if((l=l-u-1)>D)h.c=h.e=null;else if(l<R)h.c=[h.e=0];else{if(h.e=l,h.c=[],u=(l+1)%14,l<0&&(u+=14),u<p){for(u&&h.c.push(+f.slice(0,u)),p-=14;u<p;)h.c.push(+f.slice(u,u+=14));u=14-(f=f.slice(u)).length}else u-=p;for(;u--;f+="0");h.c.push(+f)}}else h.c=[h.e=0]}function z(e,t,n,r){var o,i,a,s,l;if(null==n?n=k:d(n,0,8),!e.c)return e.toString();if(o=e.c[0],a=e.e,null==t)l=u(e.c),l=1==r||2==r&&(a<=I||a>=E)?f(l,a):h(l,a,"0");else if(i=(e=$(new L(e),t,n)).e,s=(l=u(e.c)).length,1==r||2==r&&(t<=i||i<=I)){for(;s<t;l+="0",s++);l=f(l,i)}else if(t-=a,l=h(l,i,"0"),i+1>s){if(--t>0)for(l+=".";t--;l+="0");}else if((t+=i-s)>0)for(i+1==s&&(l+=".");t--;l+="0");return e.s<0&&o?"-"+l:l}function B(e,t){for(var n,r,o=1,i=new L(e[0]);o<e.length;o++)(r=new L(e[o])).s&&(n=c(i,r))!==t&&(0!==n||i.s!==t)||(i=r);return i}function V(e,t,n){for(var r=1,o=t.length;!t[--o];t.pop());for(o=t[0];o>=10;o/=10,r++);return(n=r+14*n-1)>D?e.c=e.e=null:n<R?e.c=[e.e=0]:(e.e=n,e.c=t),e}function $(e,t,n,i){var a,l,u,c,d,p,f,h=e.c;if(h){e:{for(a=1,c=h[0];c>=10;c/=10,a++);if((l=t-a)<0)l+=14,u=t,f=o((d=h[p=0])/s[a-u-1]%10);else if((p=r((l+1)/14))>=h.length)if(i){for(;h.length<=p;h.push(0));d=f=0,a=1,l%=14,u=l-14+1}else break e;else{for(a=1,d=c=h[p];c>=10;c/=10,a++);l%=14,f=(u=l-14+a)<0?0:o(d/s[a-u-1]%10)}if(i=i||t<0||null!=h[p+1]||(u<0?d:d%s[a-u-1]),i=n<4?(f||i)&&(0==n||n==(e.s<0?3:2)):f>5||5==f&&(4==n||i||6==n&&(l>0?u>0?d/s[a-u]:0:h[p-1])%10&1||n==(e.s<0?8:7)),t<1||!h[0])return h.length=0,i?(t-=e.e+1,h[0]=s[(14-t%14)%14],e.e=-t||0):h[0]=e.e=0,e;if(0==l?(h.length=p,c=1,p--):(h.length=p+1,c=s[14-l],h[p]=u>0?o(d/s[a-u]%s[u])*c:0),i)for(;;)if(0==p){for(l=1,u=h[0];u>=10;u/=10,l++);for(u=h[0]+=c,c=1;u>=10;u/=10,c++);l!=c&&(e.e++,1e14==h[0]&&(h[0]=1));break}else{if(h[p]+=c,1e14!=h[p])break;h[p--]=0,c=1}for(l=h.length;0===h[--l];h.pop());}e.e>D?e.c=e.e=null:e.e<R&&(e.c=[e.e=0])}return e}function H(e){var t,n=e.e;return null===n?e.toString():(t=u(e.c),t=n<=I||n>=E?f(t,n):h(t,n,"0"),e.s<0?"-"+t:t)}return L.clone=e,L.ROUND_UP=0,L.ROUND_DOWN=1,L.ROUND_CEIL=2,L.ROUND_FLOOR=3,L.ROUND_HALF_UP=4,L.ROUND_HALF_DOWN=5,L.ROUND_HALF_EVEN=6,L.ROUND_HALF_CEIL=7,L.ROUND_HALF_FLOOR=8,L.EUCLID=9,L.config=L.set=function(e){var t,n;if(null!=e)if("object"==typeof e){if(e.hasOwnProperty(t="DECIMAL_PLACES")&&(d(n=e[t],0,1e9,t),T=n),e.hasOwnProperty(t="ROUNDING_MODE")&&(d(n=e[t],0,8,t),k=n),e.hasOwnProperty(t="EXPONENTIAL_AT")&&((n=e[t])&&n.pop?(d(n[0],-1e9,0,t),d(n[1],0,1e9,t),I=n[0],E=n[1]):(d(n,-1e9,1e9,t),I=-(E=n<0?-n:n))),e.hasOwnProperty(t="RANGE"))if((n=e[t])&&n.pop)d(n[0],-1e9,-1,t),d(n[1],1,1e9,t),R=n[0],D=n[1];else if(d(n,-1e9,1e9,t),n)R=-(D=n<0?-n:n);else throw Error(i+t+" cannot be zero: "+n);if(e.hasOwnProperty(t="CRYPTO"))if(!!(n=e[t])===n)if(n)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))O=n;else throw O=!n,Error(i+"crypto unavailable");else O=n;else throw Error(i+t+" not true or false: "+n);if(e.hasOwnProperty(t="MODULO_MODE")&&(d(n=e[t],0,9,t),j=n),e.hasOwnProperty(t="POW_PRECISION")&&(d(n=e[t],0,1e9,t),P=n),e.hasOwnProperty(t="FORMAT"))if("object"==typeof(n=e[t]))N=n;else throw Error(i+t+" not an object: "+n);if(e.hasOwnProperty(t="ALPHABET")){if("string"!=typeof(n=e[t])||/^.?$|[+\-.\s]|(.).*\1/.test(n))throw Error(i+t+" invalid: "+n);_="0123456789"==n.slice(0,10),F=n}}else throw Error(i+"Object expected: "+e);return{DECIMAL_PLACES:T,ROUNDING_MODE:k,EXPONENTIAL_AT:[I,E],RANGE:[R,D],CRYPTO:O,MODULO_MODE:j,POW_PRECISION:P,FORMAT:N,ALPHABET:F}},L.isBigNumber=function(e){if(!e||!0!==e._isBigNumber)return!1;if(!L.DEBUG)return!0;var t,n,r=e.c,a=e.e,s=e.s;e:if("[object Array]"==({}).toString.call(r)){if((1===s||-1===s)&&a>=-1e9&&a<=1e9&&a===o(a)){if(0===r[0]){if(0===a&&1===r.length)return!0;break e}if((t=(a+1)%14)<1&&(t+=14),String(r[0]).length==t){for(t=0;t<r.length;t++)if((n=r[t])<0||n>=1e14||n!==o(n))break e;if(0!==n)return!0}}}else if(null===r&&null===a&&(null===s||1===s||-1===s))return!0;throw Error(i+"Invalid BigNumber: "+e)},L.maximum=L.max=function(){return B(arguments,-1)},L.minimum=L.min=function(){return B(arguments,1)},m=0x20000000000000*Math.random()&2097151?function(){return o(0x20000000000000*Math.random())}:function(){return(0x40000000*Math.random()|0)*8388608+(8388608*Math.random()|0)},L.random=function(e){var t,n,a,l,u,c=0,p=[],f=new L(M);if(null==e?e=T:d(e,0,1e9),l=r(e/14),O)if(crypto.getRandomValues){for(t=crypto.getRandomValues(new Uint32Array(l*=2));c<l;)(u=131072*t[c]+(t[c+1]>>>11))>=9e15?(n=crypto.getRandomValues(new Uint32Array(2)),t[c]=n[0],t[c+1]=n[1]):(p.push(u%1e14),c+=2);c=l/2}else if(crypto.randomBytes){for(t=crypto.randomBytes(l*=7);c<l;)(u=(31&t[c])*0x1000000000000+0x10000000000*t[c+1]+0x100000000*t[c+2]+0x1000000*t[c+3]+(t[c+4]<<16)+(t[c+5]<<8)+t[c+6])>=9e15?crypto.randomBytes(7).copy(t,c):(p.push(u%1e14),c+=7);c=l/7}else throw O=!1,Error(i+"crypto unavailable");if(!O)for(;c<l;)(u=m())<9e15&&(p[c++]=u%1e14);for(l=p[--c],e%=14,l&&e&&(u=s[14-e],p[c]=o(l/u)*u);0===p[c];p.pop(),c--);if(c<0)p=[a=0];else{for(a=-1;0===p[0];p.splice(0,1),a-=14);for(c=1,u=p[0];u>=10;u/=10,c++);c<14&&(a-=14-c)}return f.e=a,f.c=p,f},L.sum=function(){for(var e=1,t=arguments,n=new L(t[0]);e<t.length;)n=n.plus(t[e++]);return n},A=function(){var e="0123456789";function t(e,t,n,r){for(var o,i,a=[0],s=0,l=e.length;s<l;){for(i=a.length;i--;a[i]*=t);for(a[0]+=r.indexOf(e.charAt(s++)),o=0;o<a.length;o++)a[o]>n-1&&(null==a[o+1]&&(a[o+1]=0),a[o+1]+=a[o]/n|0,a[o]%=n)}return a.reverse()}return function(n,r,o,i,a){var s,l,c,d,p,f,m,g,v=n.indexOf("."),y=T,x=k;for(v>=0&&(d=P,P=0,n=n.replace(".",""),f=(g=new L(r)).pow(n.length-v),P=d,g.c=t(h(u(f.c),f.e,"0"),10,o,e),g.e=g.c.length),c=d=(m=t(n,r,o,a?(s=F,e):(s=e,F))).length;0==m[--d];m.pop());if(!m[0])return s.charAt(0);if(v<0?--c:(f.c=m,f.e=c,f.s=i,m=(f=w(f,g,y,x,o)).c,p=f.r,c=f.e),v=m[l=c+y+1],d=o/2,p=p||l<0||null!=m[l+1],p=x<4?(null!=v||p)&&(0==x||x==(f.s<0?3:2)):v>d||v==d&&(4==x||p||6==x&&1&m[l-1]||x==(f.s<0?8:7)),l<1||!m[0])n=p?h(s.charAt(1),-y,s.charAt(0)):s.charAt(0);else{if(m.length=l,p)for(--o;++m[--l]>o;)m[l]=0,l||(++c,m=[1].concat(m));for(d=m.length;!m[--d];);for(v=0,n="";v<=d;n+=s.charAt(m[v++]));n=h(n,c,s.charAt(0))}return n}}(),w=function(){function e(e,t,n){var r,o,i,a,s=0,l=e.length,u=t%1e7,c=t/1e7|0;for(e=e.slice();l--;)r=c*(i=e[l]%1e7)+(a=e[l]/1e7|0)*u,s=((o=u*i+r%1e7*1e7+s)/n|0)+(r/1e7|0)+c*a,e[l]=o%n;return s&&(e=[s].concat(e)),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=+(e[n]<t[n]),e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;e.splice(0,1));}return function(r,i,a,s,u){var c,d,p,f,h,m,g,v,y,x,b,w,A,C,S,M,T,k=r.s==i.s?1:-1,I=r.c,E=i.c;if(!I||!I[0]||!E||!E[0])return new L(!r.s||!i.s||(I?E&&I[0]==E[0]:!E)?NaN:I&&0==I[0]||!E?0*k:k/0);for(y=(v=new L(k)).c=[],k=a+(d=r.e-i.e)+1,u||(u=1e14,d=l(r.e/14)-l(i.e/14),k=k/14|0),p=0;E[p]==(I[p]||0);p++);if(E[p]>(I[p]||0)&&d--,k<0)y.push(1),f=!0;else{for(C=I.length,M=E.length,p=0,k+=2,(h=o(u/(E[0]+1)))>1&&(E=e(E,h,u),I=e(I,h,u),M=E.length,C=I.length),A=M,b=(x=I.slice(0,M)).length;b<M;x[b++]=0);T=[0].concat(T=E.slice()),S=E[0],E[1]>=u/2&&S++;do{if(h=0,(c=t(E,x,M,b))<0){if(w=x[0],M!=b&&(w=w*u+(x[1]||0)),(h=o(w/S))>1)for(h>=u&&(h=u-1),g=(m=e(E,h,u)).length,b=x.length;1==t(m,x,g,b);)h--,n(m,M<g?T:E,g,u),g=m.length,c=1;else 0==h&&(c=h=1),g=(m=E.slice()).length;if(g<b&&(m=[0].concat(m)),n(x,m,b,u),b=x.length,-1==c)for(;1>t(E,x,M,b);)h++,n(x,M<b?T:E,b,u),b=x.length}else 0===c&&(h++,x=[0]);y[p++]=h,x[0]?x[b++]=I[A]||0:(x=[I[A]],b=1)}while((A++<C||null!=x[0])&&k--);f=null!=x[0],y[0]||y.splice(0,1)}if(1e14==u){for(p=1,k=y[0];k>=10;k/=10,p++);$(v,a+(v.e=p+14*d-1)+1,s,f)}else v.e=d,v.r=+f;return v}}(),g=/^(-?)0([xbo])(?=\w[\w.]*$)/i,v=/^([^.]+)\.$/,y=/^\.([^.]+)$/,x=/^-?(Infinity|NaN)$/,b=/^\s*\+(?=[\w.])|^\s+|\s+$/g,C=function(e,t,n,r){var o,a=n?t:t.replace(b,"");if(x.test(a))e.s=isNaN(a)?null:a<0?-1:1;else{if(!n&&(a=a.replace(g,function(e,t,n){return o="x"==(n=n.toLowerCase())?16:"b"==n?2:8,r&&r!=o?e:t}),r&&(o=r,a=a.replace(v,"$1").replace(y,"0.$1")),t!=a))return new L(a,o);if(L.DEBUG)throw Error(i+"Not a"+(r?" base "+r:"")+" number: "+t);e.s=null}e.c=e.e=null},S.absoluteValue=S.abs=function(){var e=new L(this);return e.s<0&&(e.s=1),e},S.comparedTo=function(e,t){return c(this,new L(e,t))},S.decimalPlaces=S.dp=function(e,t){var n,r,o;if(null!=e)return d(e,0,1e9),null==t?t=k:d(t,0,8),$(new L(this),e+this.e+1,t);if(!(n=this.c))return null;if(r=((o=n.length-1)-l(this.e/14))*14,o=n[o])for(;o%10==0;o/=10,r--);return r<0&&(r=0),r},S.dividedBy=S.div=function(e,t){return w(this,new L(e,t),T,k)},S.dividedToIntegerBy=S.idiv=function(e,t){return w(this,new L(e,t),0,1)},S.exponentiatedBy=S.pow=function(e,t){var n,a,s,l,u,c,d,f,h,m=this;if((e=new L(e)).c&&!e.isInteger())throw Error(i+"Exponent not an integer: "+H(e));if(null!=t&&(t=new L(t)),c=e.e>14,!m.c||!m.c[0]||1==m.c[0]&&!m.e&&1==m.c.length||!e.c||!e.c[0])return h=new L(Math.pow(+H(m),c?e.s*(2-p(e)):+H(e))),t?h.mod(t):h;if(d=e.s<0,t){if(t.c?!t.c[0]:!t.s)return new L(NaN);(a=!d&&m.isInteger()&&t.isInteger())&&(m=m.mod(t))}else{if(e.e>9&&(m.e>0||m.e<-1||(0==m.e?m.c[0]>1||c&&m.c[1]>=24e7:m.c[0]<8e13||c&&m.c[0]<=9999975e7)))return l=m.s<0&&p(e)?-0:0,m.e>-1&&(l=1/l),new L(d?1/l:l);P&&(l=r(P/14+2))}for(c?(n=new L(.5),d&&(e.s=1),f=p(e)):f=(s=Math.abs(+H(e)))%2,h=new L(M);;){if(f){if(!(h=h.times(m)).c)break;l?h.c.length>l&&(h.c.length=l):a&&(h=h.mod(t))}if(s){if(0===(s=o(s/2)))break;f=s%2}else if($(e=e.times(n),e.e+1,1),e.e>14)f=p(e);else{if(0==(s=+H(e)))break;f=s%2}m=m.times(m),l?m.c&&m.c.length>l&&(m.c.length=l):a&&(m=m.mod(t))}return a?h:(d&&(h=M.div(h)),t?h.mod(t):l?$(h,P,k,u):h)},S.integerValue=function(e){var t=new L(this);return null==e?e=k:d(e,0,8),$(t,t.e+1,e)},S.isEqualTo=S.eq=function(e,t){return 0===c(this,new L(e,t))},S.isFinite=function(){return!!this.c},S.isGreaterThan=S.gt=function(e,t){return c(this,new L(e,t))>0},S.isGreaterThanOrEqualTo=S.gte=function(e,t){return 1===(t=c(this,new L(e,t)))||0===t},S.isInteger=function(){return!!this.c&&l(this.e/14)>this.c.length-2},S.isLessThan=S.lt=function(e,t){return 0>c(this,new L(e,t))},S.isLessThanOrEqualTo=S.lte=function(e,t){return -1===(t=c(this,new L(e,t)))||0===t},S.isNaN=function(){return!this.s},S.isNegative=function(){return this.s<0},S.isPositive=function(){return this.s>0},S.isZero=function(){return!!this.c&&0==this.c[0]},S.minus=function(e,t){var n,r,o,i,a=this.s;if(t=(e=new L(e,t)).s,!a||!t)return new L(NaN);if(a!=t)return e.s=-t,this.plus(e);var s=this.e/14,u=e.e/14,c=this.c,d=e.c;if(!s||!u){if(!c||!d)return c?(e.s=-t,e):new L(d?this:NaN);if(!c[0]||!d[0])return d[0]?(e.s=-t,e):new L(c[0]?this:3==k?-0:0)}if(s=l(s),u=l(u),c=c.slice(),a=s-u){for((i=a<0)?(a=-a,o=c):(u=s,o=d),o.reverse(),t=a;t--;o.push(0));o.reverse()}else for(r=(i=(a=c.length)<(t=d.length))?a:t,a=t=0;t<r;t++)if(c[t]!=d[t]){i=c[t]<d[t];break}if(i&&(o=c,c=d,d=o,e.s=-e.s),(t=(r=d.length)-(n=c.length))>0)for(;t--;c[n++]=0);for(t=1e14-1;r>a;){if(c[--r]<d[r]){for(n=r;n&&!c[--n];c[n]=t);--c[n],c[r]+=1e14}c[r]-=d[r]}for(;0==c[0];c.splice(0,1),--u);return c[0]?V(e,c,u):(e.s=3==k?-1:1,e.c=[e.e=0],e)},S.modulo=S.mod=function(e,t){var n,r;return(e=new L(e,t),this.c&&e.s&&(!e.c||e.c[0]))?e.c&&(!this.c||this.c[0])?(9==j?(r=e.s,e.s=1,n=w(this,e,0,3),e.s=r,n.s*=r):n=w(this,e,0,j),(e=this.minus(n.times(e))).c[0]||1!=j||(e.s=this.s),e):new L(this):new L(NaN)},S.multipliedBy=S.times=function(e,t){var n,r,o,i,a,s,u,c,d,p,f,h,m,g=this.c,v=(e=new L(e,t)).c;if(!g||!v||!g[0]||!v[0])return this.s&&e.s&&(!g||g[0]||v)&&(!v||v[0]||g)?(e.s*=this.s,g&&v?(e.c=[0],e.e=0):e.c=e.e=null):e.c=e.e=e.s=null,e;for(r=l(this.e/14)+l(e.e/14),e.s*=this.s,(u=g.length)<(p=v.length)&&(m=g,g=v,v=m,o=u,u=p,p=o),o=u+p,m=[];o--;m.push(0));for(o=p;--o>=0;){for(n=0,f=v[o]%1e7,h=v[o]/1e7|0,i=o+(a=u);i>o;)s=h*(c=g[--a]%1e7)+(d=g[a]/1e7|0)*f,n=((c=f*c+s%1e7*1e7+m[i]+n)/1e14|0)+(s/1e7|0)+h*d,m[i--]=c%1e14;m[i]=n}return n?++r:m.splice(0,1),V(e,m,r)},S.negated=function(){var e=new L(this);return e.s=-e.s||null,e},S.plus=function(e,t){var n,r=this.s;if(t=(e=new L(e,t)).s,!r||!t)return new L(NaN);if(r!=t)return e.s=-t,this.minus(e);var o=this.e/14,i=e.e/14,a=this.c,s=e.c;if(!o||!i){if(!a||!s)return new L(r/0);if(!a[0]||!s[0])return s[0]?e:new L(a[0]?this:0*r)}if(o=l(o),i=l(i),a=a.slice(),r=o-i){for(r>0?(i=o,n=s):(r=-r,n=a),n.reverse();r--;n.push(0));n.reverse()}for((r=a.length)-(t=s.length)<0&&(n=s,s=a,a=n,t=r),r=0;t;)r=(a[--t]=a[t]+s[t]+r)/1e14|0,a[t]=1e14===a[t]?0:a[t]%1e14;return r&&(a=[r].concat(a),++i),V(e,a,i)},S.precision=S.sd=function(e,t){var n,r,o;if(null!=e&&!!e!==e)return d(e,1,1e9),null==t?t=k:d(t,0,8),$(new L(this),e,t);if(!(n=this.c))return null;if(r=14*(o=n.length-1)+1,o=n[o]){for(;o%10==0;o/=10,r--);for(o=n[0];o>=10;o/=10,r++);}return e&&this.e+1>r&&(r=this.e+1),r},S.shiftedBy=function(e){return d(e,-0x1fffffffffffff,0x1fffffffffffff),this.times("1e"+e)},S.squareRoot=S.sqrt=function(){var e,t,n,r,o,i=this.c,a=this.s,s=this.e,c=T+4,d=new L("0.5");if(1!==a||!i||!i[0])return new L(!a||a<0&&(!i||i[0])?NaN:i?this:1/0);if(0==(a=Math.sqrt(+H(this)))||a==1/0?(((t=u(i)).length+s)%2==0&&(t+="0"),a=Math.sqrt(+t),s=l((s+1)/2)-(s<0||s%2),n=new L(t=a==1/0?"5e"+s:(t=a.toExponential()).slice(0,t.indexOf("e")+1)+s)):n=new L(a+""),n.c[0]){for((a=(s=n.e)+c)<3&&(a=0);;)if(o=n,n=d.times(o.plus(w(this,o,c,1))),u(o.c).slice(0,a)===(t=u(n.c)).slice(0,a)){if(n.e<s&&--a,"9999"!=(t=t.slice(a-3,a+1))&&(r||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||($(n,n.e+T+2,1),e=!n.times(n).eq(this));break}if(!r&&($(o,o.e+T+2,0),o.times(o).eq(this))){n=o;break}c+=4,a+=4,r=1}}return $(n,n.e+T+1,k,e)},S.toExponential=function(e,t){return null!=e&&(d(e,0,1e9),e++),z(this,e,t,1)},S.toFixed=function(e,t){return null!=e&&(d(e,0,1e9),e=e+this.e+1),z(this,e,t)},S.toFormat=function(e,t,n){var r;if(null==n)null!=e&&t&&"object"==typeof t?(n=t,t=null):e&&"object"==typeof e?(n=e,e=t=null):n=N;else if("object"!=typeof n)throw Error(i+"Argument not an object: "+n);if(r=this.toFixed(e,t),this.c){var o,a=r.split("."),s=+n.groupSize,l=+n.secondaryGroupSize,u=n.groupSeparator||"",c=a[0],d=a[1],p=this.s<0,f=p?c.slice(1):c,h=f.length;if(l&&(o=s,s=l,l=o,h-=o),s>0&&h>0){for(o=h%s||s,c=f.substr(0,o);o<h;o+=s)c+=u+f.substr(o,s);l>0&&(c+=u+f.slice(o)),p&&(c="-"+c)}r=d?c+(n.decimalSeparator||"")+((l=+n.fractionGroupSize)?d.replace(RegExp("\\d{"+l+"}\\B","g"),"$&"+(n.fractionGroupSeparator||"")):d):c}return(n.prefix||"")+r+(n.suffix||"")},S.toFraction=function(e){var t,n,r,o,a,l,c,d,p,f,h,m,g=this.c;if(null!=e&&(!(c=new L(e)).isInteger()&&(c.c||1!==c.s)||c.lt(M)))throw Error(i+"Argument "+(c.isInteger()?"out of range: ":"not an integer: ")+H(c));if(!g)return new L(this);for(t=new L(M),p=n=new L(M),r=d=new L(M),m=u(g),a=t.e=m.length-this.e-1,t.c[0]=s[(l=a%14)<0?14+l:l],e=!e||c.comparedTo(t)>0?a>0?t:p:c,l=D,D=1/0,c=new L(m),d.c[0]=0;f=w(c,t,0,1),1!=(o=n.plus(f.times(r))).comparedTo(e);)n=r,r=o,p=d.plus(f.times(o=p)),d=o,t=c.minus(f.times(o=t)),c=o;return o=w(e.minus(n),r,0,1),d=d.plus(o.times(p)),n=n.plus(o.times(r)),d.s=p.s=this.s,a*=2,h=1>w(p,r,a,k).minus(this).abs().comparedTo(w(d,n,a,k).minus(this).abs())?[p,r]:[d,n],D=l,h},S.toNumber=function(){return+H(this)},S.toPrecision=function(e,t){return null!=e&&d(e,1,1e9),z(this,e,t,2)},S.toString=function(e){var t,n=this,r=n.s,o=n.e;return null===o?r?(t="Infinity",r<0&&(t="-"+t)):t="NaN":(null==e?t=o<=I||o>=E?f(u(n.c),o):h(u(n.c),o,"0"):10===e&&_?t=h(u((n=$(new L(n),T+o+1,k)).c),n.e,"0"):(d(e,2,F.length,"Base"),t=A(h(u(n.c),o,"0"),10,e,r,!0)),r<0&&n.c[0]&&(t="-"+t)),t},S.valueOf=S.toJSON=function(){return H(this)},S._isBigNumber=!0,null!=t&&L.set(t),L}()).default=t.BigNumber=t,nf.exports?nf.exports=t:(e||(e="u">typeof self&&self?self:window),e.BigNumber=t)})(nl);var nh=nf.exports;let nm=np(),ng=nc(),nv={trillion:1e12,billion:1e9,million:1e6,thousand:1e3},ny={totalLength:0,characteristic:0,forceAverage:!1,average:!1,mantissa:-1,optionalMantissa:!0,thousandSeparated:!1,spaceSeparated:!1,negative:"sign",forceSign:!1,roundingFunction:Math.round,spaceSeparatedAbbreviation:!1},{binarySuffixes:nx,decimalSuffixes:nb}=nm.currentBytes(),nw={scale:1024,suffixes:nb,marker:"bd"},nA={scale:1024,suffixes:nx,marker:"b"},nC={scale:1e3,suffixes:nb,marker:"d"};function nS(e,t,n){let r=t[0],o=Math.abs(e);if(o>=n){for(let i=1;i<t.length;++i){let a=Math.pow(n,i),s=Math.pow(n,i+1);if(o>=a&&o<s){r=t[i],e/=a;break}}r===t[0]&&(e/=Math.pow(n,t.length-1),r=t[t.length-1])}return{value:e,suffix:r}}function nM(e){let t="";for(let n=0;n<e;n++)t+="0";return t}function nT({instance:e,providedFormat:t,state:n=nm,decimalSeparator:r,defaults:o=n.currentDefaults()}){var i,a,s,l,u;let c,d,p,f,h,m,g,v=e._value;if(0===v&&n.hasZeroFormat())return n.getZeroFormat();if(!isFinite(v))return v.toString();let y=Object.assign({},ny,o,t),x=y.totalLength,b=x?0:y.characteristic,w=y.optionalCharacteristic,A=y.forceAverage,C=y.lowPrecision,S=!!x||!!A||y.average,M=x?-1:S&&void 0===t.mantissa?0:y.mantissa,T=!x&&(void 0===t.optionalMantissa?-1===M:y.optionalMantissa),k=y.trimMantissa,I=y.thousandSeparated,E=y.spaceSeparated,R=y.negative,D=y.forceSign,O=y.exponential,j=y.roundingFunction,P="";if(S){let e=function({value:e,forceAverage:t,lowPrecision:n=!0,abbreviations:r,spaceSeparated:o=!1,totalLength:i=0,roundingFunction:a=Math.round}){let s="",l=Math.abs(e),u=-1;if(t&&r[t]&&nv[t]?(s=r[t],e/=nv[t]):l>=nv.trillion||n&&1===a(l/nv.trillion)?(s=r.trillion,e/=nv.trillion):l<nv.trillion&&l>=nv.billion||n&&1===a(l/nv.billion)?(s=r.billion,e/=nv.billion):l<nv.billion&&l>=nv.million||n&&1===a(l/nv.million)?(s=r.million,e/=nv.million):(l<nv.million&&l>=nv.thousand||n&&1===a(l/nv.thousand))&&(s=r.thousand,e/=nv.thousand),s&&(s=(o?" ":"")+s),i){let t=e<0,n=e.toString().split(".")[0];u=Math.max(i-(t?n.length-1:n.length),0)}return{value:e,abbreviation:s,mantissaPrecision:u}}({value:v,forceAverage:A,lowPrecision:C,abbreviations:n.currentAbbreviations(),spaceSeparated:E,roundingFunction:j,totalLength:x});v=e.value,P+=e.abbreviation,x&&(M=e.mantissaPrecision)}if(O){let e=function({value:e,characteristicPrecision:t}){let[n,r]=e.toExponential().split("e"),o=+n;return t&&1<t&&(o*=Math.pow(10,t-1),r-=t-1,r=r>=0?`+${r}`:r),{value:o,abbreviation:`e${r}`}}({value:v,characteristicPrecision:b});v=e.value,P=e.abbreviation+P}let N=function(e,t,n,r,o,i){if(-1===r)return e;let a=function(e,t,n=Math.round){return -1!==e.toString().indexOf("e")?function(e,t){let n=e.toString(),[r,o]=n.split("e"),[i,a=""]=r.split(".");if(+o>0)n=i+a+nM(o-a.length);else{let e=".";e=0>+i?`-0${e}`:`0${e}`;let r=(nM(-o-1)+Math.abs(i)+a).substr(0,t);r.length<t&&(r+=nM(t-r.length)),n=e+r}return+o>0&&t>0&&(n+=`.${nM(t)}`),n}(e,t):new nh(n(+`${e}e+${t}`)/Math.pow(10,t)).toFixed(t)}(t,r,i),[s,l=""]=a.toString().split(".");if(l.match(/^0+$/)&&(n||o))return s;let u=l.match(/0+$/);return o&&u?`${s}.${l.toString().slice(0,u.index)}`:a.toString()}(v.toString(),v,T,M,k,j);return i=N=function(e,t,n,r){let o=e,[i,a]=o.toString().split(".");if(i.match(/^-?0$/)&&n)return a?`${i.replace("0","")}.${a}`:i.replace("0","");let s=t<0&&0===i.indexOf("-");if(s&&(i=i.slice(1),o=o.slice(1)),i.length<r){let e=r-i.length;for(let t=0;t<e;t++)o=`0${o}`}return s&&(o=`-${o}`),o.toString()}(N,v,w,b),a=v,s=r,d=(c=n.currentDelimiters()).thousands,s=s||c.decimal,p=c.thousandsSize||3,h=(f=i.toString()).split(".")[0],m=f.split(".")[1],g=a<0&&0===h.indexOf("-"),I&&(g&&(h=h.slice(1)),(function(e,t){let n=[],r=0;for(let o=e;o>0;o--)r===t&&(n.unshift(o),r=0),r++;return n})(h.length,p).forEach((e,t)=>{h=h.slice(0,e+t)+d+h.slice(e+t)}),g&&(h=`-${h}`)),N=f=m?h+s+m:h,(S||O)&&(N+=P),(D||v<0)&&(l=N,N=0===(u=v)?l:0==+l?l.replace("-",""):u>0?`+${l}`:"sign"===R?l:`(${l.replace("-","")})`),N}function nk(e,t){if(!e)return t;let n=Object.keys(e);return 1===n.length&&"output"===n[0]?t:e}function nI(e,t,n){let r=new nh(e._value),o=t;return n.isNumbro(t)&&(o=t._value),o=new nh(o),e._value=r.minus(o).toNumber(),e}let nE=np(),nR=nc(),nD={loadLanguagesInNode:e=>{e.forEach(e=>{let t;try{t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../languages/${e}`)}catch(t){console.error(`Unable to load "${e}". No matching language file found.`)}t&&n_.registerLanguage(t)})}},nO=nu(),nj={format:(...e)=>(function(e,t={},n){if("string"==typeof t&&(t=nd(t)),!ng.validateFormat(t))return"ERROR: invalid format";let r=t.prefix||"",o=t.postfix||"",i=function(e,t,n){var r,o,i;switch(t.output){case"currency":let a,s,l,u,c,d,p,f,h,m;return r=t=nk(t,nm.currentCurrencyDefaultFormat()),a=nm.currentCurrency(),l=Object.assign({},ny,s=Object.assign({},r)),c="",d=!!l.totalLength||!!l.forceAverage||l.average,p=s.currencyPosition||a.position,f=s.currencySymbol||a.symbol,h=void 0!==l.spaceSeparatedCurrency?l.spaceSeparatedCurrency:l.spaceSeparated,void 0===s.lowPrecision&&(s.lowPrecision=!1),h&&(c=" "),"infix"===p&&(u=c+f+c),m=nT({instance:e,providedFormat:s,state:nm,decimalSeparator:u}),"prefix"===p&&(m=e._value<0&&"sign"===l.negative?`-${c}${f}${m.slice(1)}`:e._value>0&&l.forceSign?`+${c}${f}${m.slice(1)}`:f+c+m),p&&"postfix"!==p||(m=m+(c=!l.spaceSeparatedAbbreviation&&d?"":c)+f),m;case"percent":let g,v,y;return o=t=nk(t,nm.currentPercentageDefaultFormat()),g=o.prefixSymbol,v=nT({instance:n(100*e._value),providedFormat:o,state:nm}),y=Object.assign({},ny,o),g?`%${y.spaceSeparated?" ":""}${v}`:`${v}${y.spaceSeparated?" ":""}%`;case"byte":return function(e,t,n,r){let o=t.base||"binary",i=Object.assign({},ny,t),{binarySuffixes:a,decimalSuffixes:s}=n.currentBytes(),l={general:{scale:1024,suffixes:s||nb,marker:"bd"},binary:{scale:1024,suffixes:a||nx,marker:"b"},decimal:{scale:1e3,suffixes:s||nb,marker:"d"}}[o],{value:u,suffix:c}=nS(e._value,l.suffixes,l.scale),d=nT({instance:r(u),providedFormat:t,state:n,defaults:n.currentByteDefaultFormat()});return`${d}${i.spaceSeparated?" ":""}${c}`}(e,t=nk(t,nm.currentByteDefaultFormat()),nm,n);case"time":let x,b,w;return t=nk(t,nm.currentTimeDefaultFormat()),x=Math.floor(e._value/60/60),b=Math.floor((e._value-60*x*60)/60),w=Math.round(e._value-60*x*60-60*b),`${x}:${b<10?"0":""}${b}:${w<10?"0":""}${w}`;case"ordinal":let A,C,S,M;return i=t=nk(t,nm.currentOrdinalDefaultFormat()),A=nm.currentOrdinal(),C=Object.assign({},ny,i),S=nT({instance:e,providedFormat:i,state:nm}),M=A(e._value),`${S}${C.spaceSeparated?" ":""}${M}`;default:return nT({instance:e,providedFormat:t,numbro:n})}}(e,t,n);return(i=r+i)+o})(...e,n_),getByteUnit:(...e)=>(function(e){return nS(e._value,nw.suffixes,nw.scale).suffix})(...e),getBinaryByteUnit:(...e)=>(function(e){return nS(e._value,nA.suffixes,nA.scale).suffix})(...e),getDecimalByteUnit:(...e)=>(function(e){return nS(e._value,nC.suffixes,nC.scale).suffix})(...e),formatOrDefault:nk},nP={add:(e,t)=>{let n,r;return n=new nh(e._value),r=t,n_.isNumbro(t)&&(r=t._value),r=new nh(r),e._value=n.plus(r).toNumber(),e},subtract:(e,t)=>nI(e,t,n_),multiply:(e,t)=>{let n,r;return n=new nh(e._value),r=t,n_.isNumbro(t)&&(r=t._value),r=new nh(r),e._value=n.times(r).toNumber(),e},divide:(e,t)=>{let n,r;return n=new nh(e._value),r=t,n_.isNumbro(t)&&(r=t._value),r=new nh(r),e._value=n.dividedBy(r).toNumber(),e},set:(e,t)=>{let n;return n=t,n_.isNumbro(t)&&(n=t._value),e._value=n,e},difference:(e,t)=>{let n;return nI(n=n_(e._value),t,n_),Math.abs(n._value)},BigNumber:nh};class nN{constructor(e){this._value=e}clone(){return n_(this._value)}format(e={}){return nj.format(this,e)}formatCurrency(e){return"string"==typeof e&&(e=nd(e)),(e=nj.formatOrDefault(e,nE.currentCurrencyDefaultFormat())).output="currency",nj.format(this,e)}formatTime(e={}){return e.output="time",nj.format(this,e)}binaryByteUnits(){return nj.getBinaryByteUnit(this)}decimalByteUnits(){return nj.getDecimalByteUnit(this)}byteUnits(){return nj.getByteUnit(this)}difference(e){return nP.difference(this,e)}add(e){return nP.add(this,e)}subtract(e){return nP.subtract(this,e)}multiply(e){return nP.multiply(this,e)}divide(e){return nP.divide(this,e)}set(e){return nP.set(this,nF(e))}value(){return this._value}valueOf(){return this._value}}function nF(e){let t=e;return n_.isNumbro(e)?t=e._value:"string"==typeof e?t=n_.unformat(e):isNaN(e)&&(t=NaN),t}function n_(e){return new nN(nF(e))}n_.version="2.5.0",n_.isNumbro=function(e){return e instanceof nN},n_.language=nE.currentLanguage,n_.registerLanguage=nE.registerLanguage,n_.setLanguage=nE.setLanguage,n_.languages=nE.languages,n_.languageData=nE.languageData,n_.zeroFormat=nE.setZeroFormat,n_.defaultFormat=nE.currentDefaults,n_.setDefaults=nE.setDefaults,n_.defaultCurrencyFormat=nE.currentCurrencyDefaultFormat,n_.validate=nR.validate,n_.loadLanguagesInNode=nD.loadLanguagesInNode,n_.unformat=nO.unformat,n_.BigNumber=nP.BigNumber;var nL=n_&&n_.__esModule&&Object.prototype.hasOwnProperty.call(n_,"default")?n_.default:n_;let nz={label:"Bits",decimalPlaces:!0,shortValues:!0},nB={bits:{group:"Bits",label:"Bits (IEC)"},decbits:{group:"Bits",label:"Bits (SI)"}};function nV(e,{unit:t="bits",shortValues:n,decimalPlaces:r}){let o="decbits"===t;if(!t7(n)||Math.abs(e)<(o?1e3:1024)){let o={style:"decimal",useGrouping:!0};t8(r)?(o.minimumFractionDigits=ne(r),o.maximumFractionDigits=ne(r)):t7(n)&&(o.maximumSignificantDigits=3);let i=[o.style,o.useGrouping,o.maximumSignificantDigits,r,n,t];return`${t6(i,"bits",o,"en-US")(e)} bits`}return nL(e).format({output:"byte",base:o?"decimal":"binary",spaceSeparated:!0,mantissa:t8(r)?r:2,trimMantissa:!t8(r),optionalMantissa:!t8(r)}).replace(/KB/g,"Kb").replace(/MB/g,"Mb").replace(/GB/g,"Gb").replace(/TB/g,"Tb").replace(/PB/g,"Pb").replace(/EB/g,"Eb").replace(/KiB/g,"Kib").replace(/MiB/g,"Mib").replace(/GiB/g,"Gib").replace(/TiB/g,"Tib").replace(/PiB/g,"Pib").replace(/EiB/g,"Eib")}let n$={label:"Bytes",decimalPlaces:!0,shortValues:!0},nH={bytes:{group:"Bytes",label:"Bytes (IEC)"},decbytes:{group:"Bytes",label:"Bytes (SI)"}};function nW(e,{unit:t="bytes",shortValues:n,decimalPlaces:r}){let o="decbytes"===t;if(!t7(n)||Math.abs(e)<(o?1e3:1024)){let o={style:"unit",unit:"byte",unitDisplay:"long",useGrouping:!0};return t8(r)?(o.minimumFractionDigits=ne(r),o.maximumFractionDigits=ne(r)):t7(n)&&(o.maximumSignificantDigits=3),t6([o.style,o.unit,o.unitDisplay,o.useGrouping,o.maximumSignificantDigits,r,n,t],"bytes",o,"en-US")(e)}return nL(e).format({output:"byte",base:o?"decimal":"binary",spaceSeparated:!0,mantissa:t8(r)?r:2,trimMantissa:!t8(r),optionalMantissa:!t8(r)})}var nU=n(40224);let nG="Currency",nq={label:"Currency",decimalPlaces:!0},nY={aud:{group:nG,label:"Australian Dollar (A$)"},cad:{group:nG,label:"Canadian Dollar (CA$)"},chf:{group:nG,label:"Swiss Franc (CHF)"},cny:{group:nG,label:"Renminbi (CN\xa5)"},eur:{group:nG,label:"Euro (€)"},gbp:{group:nG,label:"Pound (\xa3)"},hkd:{group:nG,label:"Hong Kong Dollar (HK$)"},inr:{group:nG,label:"Indian Rupee (₹)"},jpy:{group:nG,label:"Yen (\xa5)"},krw:{group:nG,label:"South Korean Won (₩)"},nok:{group:nG,label:"Norwegian Krone (NOK)"},nzd:{group:nG,label:"New Zealand Dollar (NZ$)"},sek:{group:nG,label:"Swedish Krona (SEK)"},sgd:{group:nG,label:"Singapore Dollar (S$)"},usd:{group:nG,label:"US Dollar ($)"}};function nZ(e,{unit:t,decimalPlaces:n}){let r={style:"currency",currency:(0,nU.toUpper)(t),currencyDisplay:"symbol"};return t8(n)?(r.minimumFractionDigits=ne(n),r.maximumFractionDigits=ne(n)):r.maximumSignificantDigits=3,t6([r.style,r.currency,r.currencyDisplay,r.maximumSignificantDigits,n,t],"currency",r,"en-US")(e)}let nX={label:"percent",decimalPlaces:!0},nK="Percent",nQ={percent:{group:nK,label:"Percent (0-100)"},"percent-decimal":{group:nK,label:"Percent (0.0-1.0)"},"%":{disableSelectorOption:!0,group:nK,label:"%"}};function nJ(e,{unit:t,decimalPlaces:n}){let r={style:"percent",useGrouping:!0};return t8(n)?(r.minimumFractionDigits=ne(n),r.maximumFractionDigits=ne(n)):r.maximumSignificantDigits=3,"percent"===t&&(e/=100),t6([r.style,r.useGrouping,r.maximumSignificantDigits,n,t],"percent",r,"en-US")(e)}let n0="Temperature",n1={label:n0,decimalPlaces:!0},n2={celsius:{group:n0,label:"Celsius (\xb0C)"},fahrenheit:{group:n0,label:"Fahrenheit (\xb0F)"}},n5=(e,{unit:t,decimalPlaces:n})=>{let r={unit:t,style:"unit"};t8(n)?(r.minimumFractionDigits=ne(n),r.maximumFractionDigits=ne(n)):r.maximumSignificantDigits=3;let o="celsius"===t?"en-GB":"en-US";return t6([r.style,r.unit,r.maximumSignificantDigits,n,o],"temperature",r,o)(e)},n4={label:"Decimal",decimalPlaces:!0,shortValues:!0},n3={decimal:{group:"Decimal",label:"Decimal"}};function n6(e,{shortValues:t,decimalPlaces:n}){let r={style:"decimal",useGrouping:!0};return t7(t)&&(r.notation="compact"),t8(n)?(r.minimumFractionDigits=ne(n),r.maximumFractionDigits=ne(n)):t7(t)&&(r.maximumSignificantDigits=3),t6([r.style,r.useGrouping,r.notation,r.maximumSignificantDigits,n],"decimal",r,"en-US")(e)}let n9={label:"Throughput",decimalPlaces:!0},n7="Throughput",n8={"bits/sec":{group:n7,label:"Bits/sec (IEC)"},"decbits/sec":{group:n7,label:"Bits/sec (SI)"},"bytes/sec":{group:n7,label:"Bytes/sec (IEC)"},"decbytes/sec":{group:n7,label:"Bytes/sec (SI)"},"counts/sec":{group:n7,label:"Counts/sec"},"events/sec":{group:n7,label:"Events/sec"},"messages/sec":{group:n7,label:"Messages/sec"},"ops/sec":{group:n7,label:"Ops/sec"},"packets/sec":{group:n7,label:"Packets/sec"},"reads/sec":{group:n7,label:"Reads/sec"},"requests/sec":{group:n7,label:"Requests/sec"},"records/sec":{group:n7,label:"Records/sec"},"rows/sec":{group:n7,label:"Rows/sec"},"writes/sec":{group:n7,label:"Writes/sec"}};function re(e,{unit:t,shortValues:n,decimalPlaces:r}){if("bits/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return nV(e,{unit:"bits",shortValues:n,decimalPlaces:r})+"/"+t}if("decbits/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return nV(e,{unit:"decbits",shortValues:n,decimalPlaces:r})+"/"+t}if("decbytes/sec"===t){let t=1e3>Math.abs(e)?"sec":"s";return nW(e,{unit:"decbytes",shortValues:n,decimalPlaces:r})+"/"+t}if("bytes/sec"===t){let t=1024>Math.abs(e)?"sec":"s";return nW(e,{unit:"bytes",shortValues:n,decimalPlaces:r})+"/"+t}let o={style:"decimal",useGrouping:!0};t7(n)&&(o.notation="compact"),t8(r)?(o.minimumFractionDigits=ne(r),o.maximumFractionDigits=ne(r)):t7(n)&&(o.maximumSignificantDigits=3);let i=[o.style,o.useGrouping,o.notation,o.maximumSignificantDigits,r,n,t];return`${t6(i,"throughput",o,"en-US")(e)} ${t}`}let rt="Date",rn={Time:nn,Percent:nX,Decimal:n4,Bytes:n$,Bits:nz,Throughput:n9,Currency:nq,Temperature:n1,Date:{label:"Date & Time"}},rr={...nr,...nQ,...n3,...nH,...nB,...n8,...nY,...n2,"datetime-iso":{group:rt,label:"DateTime (GMT)"},"datetime-us":{group:rt,label:"DateTime (US-East)"},"datetime-local":{group:rt,label:"DateTime (Browser Local)"},"date-iso":{group:rt,label:"Date (GMT)"},"date-us":{group:rt,label:"Date (US-East)"},"date-local":{group:rt,label:"Date (Browser Local)"},"time-local":{group:rt,label:"Time (Browser Local)"},"time-iso":{group:rt,label:"Time (GMT)"},"time-us":{group:rt,label:"Time (US-East)"},"relative-time":{group:rt,label:"Relative Time"},"unix-timestamp":{group:rt,label:"Unix Timestamp (s)"},"unix-timestamp-ms":{group:rt,label:"Unix Timestamp (ms)"}};function ro(e,t){if(!t)return e.toString();if(rd(t))return nW(e,t);if(rp(t))return nV(e,t);if(rc(t))return n6(e,t);if(ru(t))return nJ(e,t);if(rl(t))return ns(e,t);if(rm(t))return re(e,t);if(rg(t))return nZ(e,t);if(rv(t))return function(e,t={}){let n=Intl.DateTimeFormat().resolvedOptions().timeZone,{unit:r="datetime-local",locale:o=(()=>{if("u">typeof navigator){if(navigator.language)return navigator.language;if(navigator.languages&&navigator.languages.length>0){let e=navigator.languages[0];if(e)return e}let e=navigator;if(e.userLanguage)return e.userLanguage;if(e.browserLanguage)return e.browserLanguage;if(e.systemLanguage)return e.systemLanguage}return Intl.DateTimeFormat().resolvedOptions().locale||"en-US"})(),timeZone:i=n,referenceTime:a=Date.now()}=t;if("unix-timestamp"===r)return(e>1e12?Math.floor(e/1e3):e).toString();if("unix-timestamp-ms"===r)return Math.floor(e<1e11?1e3*e:e).toString();let s=function(e){if(e<0)if(Math.abs(e)>1e10)return new Date(e);else return new Date(1e3*e);if(e>=25e10&&e<=26e10){let t=new Date(1e3*e);if(t.getUTCFullYear()>=9999)return t}return new Date(e<1e10?1e3*e:e)}(e);if("relative-time"===r){let e=new Date(a),t=s.getTime()-e.getTime();for(let{unit:e,ms:n}of[{unit:"year",ms:31536e6},{unit:"month",ms:2592e6},{unit:"week",ms:6048e5},{unit:"day",ms:864e5},{unit:"hour",ms:36e5},{unit:"minute",ms:6e4},{unit:"second",ms:1e3}]){let r=Math.round(t/n);if(Math.abs(r)>=1)return new Intl.RelativeTimeFormat(o,{numeric:"auto"}).format(r,e)}return new Intl.RelativeTimeFormat(o,{numeric:"auto"}).format(0,"second")}let l={timeZone:i};switch(r){case"datetime-iso":return s.toISOString();case"datetime-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);case"datetime-local":l.year="numeric",l.month="2-digit",l.day="2-digit",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"date-iso":return s.toISOString().split("T")[0];case"date-us":return l.timeZone="America/New_York",l.year="numeric",l.month="2-digit",l.day="2-digit",new Intl.DateTimeFormat("en-US",l).format(s);case"date-local":l.year="numeric",l.month="2-digit",l.day="2-digit";break;case"time-local":l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!1;break;case"time-iso":return s.toISOString().split("T")[1].replace("Z","");case"time-us":return l.timeZone="America/New_York",l.hour="2-digit",l.minute="2-digit",l.second="2-digit",l.hour12=!0,new Intl.DateTimeFormat("en-US",l).format(s);default:throw Error(`Unknown date unit: ${r}`)}return new Intl.DateTimeFormat(o,l).format(s)}(e,t);if(ry(t))return n5(e,t);throw Error(`Unknown unit options ${t}`)}function ri(e){return rr[e.unit??"decimal"]}function ra(e){return ri(e).group??"Decimal"}function rs(e){return rn[ri(e).group??"Decimal"]}function rl(e){return"Time"===ra(e)}function ru(e){return"Percent"===ra(e)}function rc(e){return"Decimal"===ra(e)}function rd(e){return"Bytes"===ra(e)}function rp(e){return"Bits"===ra(e)}function rf(e){return!!rs(e).decimalPlaces}function rh(e){return!!rs(e).shortValues}function rm(e){return"Throughput"===ra(e)}function rg(e){return"Currency"===ra(e)}function rv(e){return"Date"===ra(e)}function ry(e){return"Temperature"===ra(e)}let rx={JoinByColumnValue:"Join by column value",MergeColumns:"Merge columns",MergeIndexedColumns:"Merge indexed columns",MergeSeries:"Merge series",ExtractColumnFields:"Extract column fields"};function rb(e,t){return[tB({type:"value",boundaryGap:[0,"10%"],axisLabel:{formatter:e=>ro(e,t)}},e)]}function rw(e,t,n,r){let o=[],i=tB({type:"value",position:"left",boundaryGap:[0,"10%"],axisLabel:{formatter:e=>ro(e,t),overflow:"truncate"}},e);o.push(i);let a=0;return n.forEach((t,n)=>{let i,s,l={type:"value",position:"right",offset:a,boundaryGap:[0,"10%"],axisLabel:{formatter:e=>ro(e,t)},splitLine:{show:!1},show:e?.show};o.push(l),r&&(a+=(i=ro(r[n]??1e3,t),((s=document.createElement("canvas").getContext("2d"))?(s.font="12px sans-serif",s.measureText(i).width):6*i.length)+10))}),o}function rA(e,t){let{value:n,setValueAndStore:r}=function(e,t,n){let[r,o]=(0,d.useState)(()=>{try{let n=e.getItem(t);if(null!==n)return JSON.parse(n)}catch{}return e.setItem(t,JSON.stringify(n)),n}),i=(0,d.useCallback)(n=>{o(n),e.setItem(t,JSON.stringify(n))},[o,e,t]);return{value:r,setValue:o,setValueAndStore:i}}(window.localStorage,e,t);return[n,r]}function rC(e){let t=e._model;void 0!==t&&void 0!==t.option.toolbox&&t.option.toolbox.length>0&&"normal"===t.option.toolbox[0].feature.dataZoom.iconStatus.zoom&&e.dispatchAction({type:"takeGlobalCursor",key:"dataZoomSelect",dataZoomSelectActive:!0})}function rS(e){e.dispatchAction({type:"restore"})}function rM(e){void 0!==e.dispatchAction&&(e.dispatchAction({type:"unselect"}),e.dispatchAction({type:"downplay"}))}function rT(e,t,n){if(void 0===n)return null;let r=[e,t];return n.containPixel("grid",r)?n.convertFromPixel("grid",r):null}function rk(e,t,n,r,o,i){let a=i.length>0?i[i.length-1]:o[o.length-1];void 0!==a&&e.dispatchAction({type:"select",seriesIndex:a.seriesIndex,dataIndex:a.dataIndex,escapeConnect:!0}),e.dispatchAction({type:"downplay"}),r.length>0&&e.dispatchAction({type:"downplay",seriesIndex:r}),n.length>0?e.dispatchAction({type:"highlight",seriesIndex:n,notBlur:!1,escapeConnect:!0}):(e.dispatchAction({type:"highlight",seriesIndex:t,notBlur:!0,escapeConnect:!0}),e.dispatchAction({type:"toggleSelect"}))}function rI(e){return e[e.length-1]?.name===tV}function rE(e,t){if(void 0===e||void 0===t)return null;let n=null,r=1/0;for(let[o]of e){let e=Math.abs(o-t);e<r&&(n=o,r=e)}return n}function rR(e,t){if(void 0===t)return null;let n=e.length,r=null;for(let o=0;o<n;o++){let i=n>0?e[o]:null;if(!i)break;r=rE(i.values,t)}return r}function rD(...e){return e.flatMap(e=>void 0===e?[]:Array.isArray(e)?e:[e])}function rO(e){void 0===globalThis.useIdValue&&(globalThis.useIdValue=0);let t=(0,d.useRef)(void 0);return void 0===t.current&&(t.current=`${e}-${globalThis.useIdValue++}`),t.current}var rj=((i$={}).CSV="csv",i$.DISTRIBUTED="distributed",i$.DOUBLEQUOTE="doublequote",i$.GLOB="glob",i$.JSON="json",i$.LUCENE="lucene",i$.PERCENTENCODE="percentencode",i$.PIPE="pipe",i$.PROMETHEUS="prometheus",i$.RAW="raw",i$.REGEX="regex",i$.SINGLEQUOTE="singlequote",i$.SQLSTRING="sqlstring",i$.TEXT="text",i$.QUERYPARAM="queryparam",i$.REGEX_LITERAL="regexliteral",i$);function rP(e){if(!e)return;let t=e.toLowerCase();return Object.values(rj).find(e=>e===t)||void 0}function rN(e,t,n){switch(n){case"csv":case"raw":return e.join(",");case"distributed":{let[n,...r]=e;return`${[n,...r.map(e=>`${t}=${e}`)].join(",")}`}case"doublequote":return e.map(e=>`"${e}"`).join(",");case"glob":return`{${e.join(",")}}`;case"json":return JSON.stringify(e.map(e=>{try{return JSON.parse(e)}catch{return e}}));case"lucene":return`(${e.map(e=>`"${e}"`).join(" OR ")})`;case"percentencode":return encodeURIComponent(e.join(","));case"pipe":return e.join("|");case"regex":{let t=e.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"));return`(${t.join("|")})`}case"regexliteral":{let t=e.map(e=>e.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\\\$&"));return`(${t.join("|")})`}case"singlequote":return e.map(e=>`'${e}'`).join(",");case"sqlstring":return e.map(e=>`'${e.replace(/'/g,"''")}'`).join(",");case"text":return e.join(" + ");case"queryparam":return e.map(e=>`${t}=${encodeURIComponent(e)}`).join("&");default:return`(${e.join("|")})`}}function rF(e,t,n,r){let o="$"+t,i="${"+t+(r?":"+r:"")+"}",a="";return Array.isArray(n)&&(a=rN(n,t,r||"prometheus")),"string"==typeof n&&(a=rN([n],t,r||"raw")),(e=e.replaceAll(o,a)).replaceAll(i,a)}let r_=/\$(\w+)|\${(\w+)(?:\.([^:^}]+))?(?::([^}]+))?}/gm;function rL(e){let t,n=new Set;for(;null!==(t=r_.exec(e));)t&&(t[1]?n.add(t[1]):t[2]&&n.add(t[2]));return Array.from(n.values())}function rz(e){let t,n=new Map;for(;null!==(t=r_.exec(e));)if(t){let e;t[4]&&(e=t[4]),t[1]?n.set(t[1],rP(e)):t[2]&&n.set(t[2],rP(e))}return n}function rB(e,t){let n=rz(e),r=Array.from(n.keys()),o=e;return r.toSorted((e,t)=>t.length-e.length).forEach(e=>{let r=t[e];r&&void 0!==r.value&&(o=rF(o,e,r?.value,n.get(e)))}),o}function rV(e,t){let n={};for(let[e,r]of Object.entries(t))n[e]=void 0===r.displayValue?r:{...r,value:r.displayValue};return rB(e,n)}let r$=/\$\{__data\.fields(?:\[(?:"|')([^"']+)(?:"|')\]|\.([a-zA-Z_][a-zA-Z0-9_]*))(?::([a-z]+))?\}/g,rH=/\$\{__data\[(\d+)\]\.fields\[(?:"|')([^"']+)(?:"|')\]\}/g,rW=/\$\{__data\.index\}/g,rU=/\$\{__data\.count\}/g,rG=/("|')?\$\{__data(?::([a-z]+))?\}("|')?/g;function rq(e,t){if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];return null==n?"":"object"==typeof n?JSON.stringify(n):String(n)}if(t.includes(".")){let n=t.split("."),r=e;for(let e of n){if(null==r||"object"!=typeof r)return"";r=r[e]}return null==r?"":"object"==typeof r?JSON.stringify(r):String(r)}return""}function rY(e){if(!e)return;let t=e.toLowerCase();return Object.values(rj).find(e=>e===t)}function rZ(e,t,n={}){let{urlEncode:r=!0,index:o,count:i}=n,a=e,s=[];return void 0!==o&&(a=a.replaceAll(rW,String(o))),void 0!==i&&(a=a.replaceAll(rU,String(i))),a=a.replaceAll(rG,(e,n,r,o)=>{let i=rY(r)??rj.RAW;return i===rj.JSON?JSON.stringify(t):rN(Object.values(t).map(e=>JSON.stringify(e)),"",i)}),r$.lastIndex=0,{text:a=a.replaceAll(r$,(e,n,o,i)=>{let a=n??o??"",l=rq(t,a);""===l&&void 0===t[a]&&s.push(`Field "${a}" not found in data`);let u=rY(i);if(u)return rN([l],a,u);if(r){if(u===rj.RAW)return l;if(u!==rj.QUERYPARAM&&u!==rj.PERCENTENCODE)return encodeURIComponent(l)}return l}),errors:s.length>0?s:void 0}}function rX(e,t,n={}){let{urlEncode:r=!0}=n,o=e,i=[];return o=o.replaceAll(rU,String(t.length)),rH.lastIndex=0,r$.lastIndex=0,{text:o=(o=(o=o.replaceAll(rG,(e,n,r,o)=>{let i=rY(r)??rj.RAW,a=rN(Object.values(t).map(e=>JSON.stringify(e)),"",i);return n&&o?a:`${n??""}${a}${o??""}`})).replaceAll(rH,(e,n,o)=>{let a=parseInt(n,10);if(a<0||a>=t.length)return i.push(`Index ${a} out of bounds (0-${t.length-1})`),e;let s=rq(t[a],o);return""===s&&void 0===t[a][o]&&i.push(`Field "${o}" not found in data at index ${a}`),r?encodeURIComponent(s):s})).replaceAll(r$,(e,n,r,o)=>{let i=n??r??"";return rN(t.map(e=>rq(e,i)),i,rY(o)||rj.CSV)}),errors:i.length>0?i:void 0}}function rK(e){return rH.lastIndex=0,rH.test(e)||/\$\{__data\.fields(?:\[["'][^"']+["']\]|\.[a-zA-Z_][a-zA-Z0-9_]*):[a-z]+\}/.test(e)}function rQ(e){return rH.lastIndex=0,rH.test(e)}function rJ(e){return r$.lastIndex=0,rH.lastIndex=0,r$.test(e)||rH.test(e)}function r0(e){let t,n=new Set;for(r$.lastIndex=0,rH.lastIndex=0;null!==(t=r$.exec(e));)n.add(t[1]??t[2]);for(;null!==(t=rH.exec(e));)n.add(t[2]);return Array.from(n)}Symbol.for("constructDateFrom");let r1={},r2={};function r5(e,t){try{let n=(r1[e]||=new Intl.DateTimeFormat("en-US",{timeZone:e,timeZoneName:"longOffset"}).format)(t).split("GMT")[1];if(n in r2)return r2[n];return r3(n,n.split(":"))}catch{if(e in r2)return r2[e];let t=e?.match(r4);if(t)return r3(e,t.slice(1));return NaN}}let r4=/([+-]\d\d):?(\d\d)?/;function r3(e,t){let n=+(t[0]||0),r=+(t[1]||0),o=(t[2]||0)/60;return r2[e]=60*n+r>0?60*n+r+o:60*n-r-o}class r6 extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(r5(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),r8(this,e)):this.setTime(Date.now())}static tz(e,...t){return t.length?new r6(...t,e):new r6(Date.now(),e)}withTimeZone(e){return new r6(+this,e)}getTimezoneOffset(){let e=-r5(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),r7(this),+this}[Symbol.for("constructDateFrom")](e){return new r6(+new Date(e),this.timeZone)}}let r9=/^(get|set)(?!UTC)/;function r7(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-(60*r5(e.timeZone,e))))}function r8(e,t){var n;let r=Array.isArray(t)?Date.UTC((n=t)[0],n.length>1?n[1]:0,n.length>2?n[2]:1,...n.slice(3)):+e.internal,o=r5(e.timeZone,e),i=o>0?Math.floor(o):Math.ceil(o),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let s=-new Date(+e).getTimezoneOffset(),l=-new Date(+a).getTimezoneOffset(),u=s;if(s-l&&s!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=s-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=r5(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(u=l)}let c=u-i;c&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+c);let d=new Date(+e);d.setUTCSeconds(0);let p=s>0?d.getSeconds():(d.getSeconds()-60)%60,f=Math.round(-(60*r5(e.timeZone,e)))%60;(f||p)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+f+p);let h=r5(e.timeZone,e),m=h>0?Math.floor(h):Math.ceil(h),g=-new Date(+e).getTimezoneOffset()-m-c,v=m-i,y=v>0&&oe(e)-r==60*v*1e3&&oe(e,r-60*m*1e3)!==r;if(m!==i&&g&&!y){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+g);let t=r5(e.timeZone,e),n=m-(t>0?Math.floor(t):Math.ceil(t));n&&g<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}r7(e);let x=(t?r:r+1e3*f)-e.internal;x&&18e5>Math.abs(x)&&(Date.prototype.setTime.call(e,+e+x),r7(e))}function oe(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-(60*r5(e.timeZone,n)))),+n}Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!r9.test(e))return;let t=e.replace(r9,"$1UTC");r6.prototype[t]&&(e.startsWith("get")?r6.prototype[e]=function(){return this.internal[t]()}:(r6.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),r8(e),+this},r6.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),r7(this),+this}))});class ot extends r6{static tz(e,...t){return t.length?new ot(...t,e):new ot(Date.now(),e)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(" ")[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${function(e,t,n="long"){return new Intl.DateTimeFormat("en-US",{hour:"numeric",timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(" ")}(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset(),t=String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),n=String(Math.abs(e)%60).padStart(2,"0");return[e>0?"-":"+",t,n]}withTimeZone(e){return new ot(+this,e)}[Symbol.for("constructDateFrom")](e){return new ot(+new Date(e),this.timeZone)}}function on(e,t){if(t){let n=t.toLowerCase();if("local"!==n&&"browser"!==n)return{...e,timeZone:"utc"===n?"UTC":t}}return e}function or(e,t,n){let r,o=n?.toLowerCase();if(!n||"local"===o||"browser"===o)return(0,tW.format)(e,t);return(0,tW.format)(e,t,{in:(r="utc"===o?"UTC":n,e=>ot.tz(r,+new Date(e)))})}function oo(e){let t=e?.toLowerCase(),n=e;e&&"local"!==t&&"browser"!==t?"utc"===t&&(n="UTC"):n=Intl.DateTimeFormat().resolvedOptions().timeZone;try{let e=new Intl.DateTimeFormat("en-US",{timeZone:n,timeZoneName:"shortOffset"}).formatToParts(new Date).find(e=>"timeZoneName"===e.type),t=e?.value??"";if("GMT"===t)return"GMT+0";return t}catch{return"GMT+0"}}function oi(e){return e>15768e7?"{yyyy}":e>63072e6?"{MMM} {yyyy}":e>432e6&&e<1577664e4?"{MM}/{dd}":e>1728e5&&e<=432e6?"{MM}/{dd} {HH}:{mm}":{year:"{yearStyle|{yyyy}}\n{monthStyle|{MMM}}",month:"{MMM}",day:"{MM}/{dd}"}}let oa=(e,t)=>{if(!e)return{formattedDate:"",formattedTime:""};let n=new Date(e);return{formattedDate:t?t(n,"MMM dd, yyyy"):(0,tW.format)(n,"MMM dd, yyyy"),formattedTime:t?t(n,"HH:mm:ss"):(0,tW.format)(n,"HH:mm:ss")}};var os=n(18264);function ol(e,t){let n=(0,d.useRef)(),r=!0;for(let e=0;e<t.length;e++)if(n.current?.deps[e]!==t[e]){r=!1;break}return(void 0===n.current||!1===r)&&(n.current={value:e(),deps:t}),n.current.value}function ou(e,t){let n=(0,d.useRef)();return(void 0===n.current||!1===os(t,n.current.deps))&&(n.current={value:e(),deps:t}),n.current.value}function oc(e){return!!e?.startsWith("/")}function od(e){if(!e)throw Error("Input string cannot be empty");if(!oc(e))return RegExp(`^${e}$`);let t=e.match(/^\/(.+)\/([gimy]*)$/);if(!t)throw Error(`Invalid regular expression format: ${e}`);let[,n="",r=""]=t;try{return new RegExp(n,r)}catch(e){throw Error(`Failed to create RegExp ${e}`,{cause:e})}}function op(e,t){let n={};for(let[r,o]of Object.entries(e))n[r]=rB(o,t);return n}function of(e,t){let n={};for(let[r,o]of Object.entries(e))Array.isArray(o)?n[r]=o.map(e=>rB(e,t)):n[r]=function e(t,n){if(Array.isArray(t))return t.map(t=>e(t,n));for(let[e,r]of rz(t)){let o,i=n[e];if(!i)continue;let a=i.options??[],s=a.map(e=>e.value),l=Array.isArray(i.value),u=void 0!==i.customAllValue;if(l)o=i.value;else if(u)try{let e=od(i.customAllValue),t=a.filter(t=>e.test(t.value)).map(e=>e.value);o=t.length>0?t:s}catch{o=s}if(o&&(!r||r===rj.QUERYPARAM)){let i="$"+e,a=r?"${"+e+":"+r+"}":"${"+e+"}";return o.map(e=>{let r=t;return rB(r=(r=r.replaceAll(a,e)).replaceAll(i,e),n)})}}return rB(t,n)}(o,t);return n}function oh(e,t,n,r,o){let i=rZ(e,t,{index:n,count:r}),a=i.text,s=[];return i.errors&&s.push(...i.errors.map(e=>e.replace("in data","in selection data"))),o&&(a=rB(a,o)),{text:a,errors:s.length>0?s:void 0}}function om(e,t,n){let r=rX(e,t),o=r.text,i=[];return r.errors&&i.push(...r.errors.map(e=>e.replace("in data","in selection data"))),n&&(o=rB(o,n)),{text:o,errors:i.length>0?i:void 0}}function og(e,t){let n=e.palette.text?.primary??"#222";return tB({echartsTheme:{title:{show:!1},textStyle:{color:n,fontFamily:e.typography.fontFamily,fontSize:12},grid:{top:5,right:20,bottom:0,left:20,containLabel:!0},color:["#56B4E9","#009E73","#0072B2","#CC79A7","#F0E442","#E69F00","#D55E00"],categoryAxis:{show:!0,axisLabel:{show:!0,color:n,margin:15},axisTick:{show:!1,length:6,lineStyle:{color:e.palette.grey[600]}},axisLine:{show:!0,lineStyle:{color:e.palette.grey[600]}},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.4}},splitArea:{show:!1,areaStyle:{color:[e.palette.grey[300]]}}},timeAxis:{show:!0,axisLabel:{show:!0,color:n,margin:15},axisTick:{show:!1,length:6,lineStyle:{color:e.palette.grey[600]}},axisLine:{show:!0,lineStyle:{color:e.palette.grey[600]}},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.4}},splitArea:{show:!1,areaStyle:{color:[e.palette.grey[300]]}}},valueAxis:{show:!0,axisLabel:{color:n,margin:12},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{width:.5,color:e.palette.grey[300],opacity:.6}}},legend:{orient:"horizontal",textStyle:{color:n},pageTextStyle:{color:e.palette.grey[600]},pageIconColor:e?.palette?.action?.active,pageIconInactiveColor:e?.palette?.action?.disabled},toolbox:{show:!0,top:10,right:10,iconStyle:{borderColor:n}},tooltip:{backgroundColor:e.palette.designSystem?.grey[800],borderColor:e.palette.designSystem?.grey[800],textStyle:{color:"#fff",fontSize:11}},axisPointer:{lineStyle:{color:e.palette.grey[500]}},markLine:{symbol:"none",symbolSize:0,itemStyle:{color:e.palette.grey[500]},lineStyle:{type:"dashed",width:1}},line:{showSymbol:!1,symbol:"circle",symbolSize:4,smooth:!1,lineStyle:{width:1},emphasis:{lineStyle:{width:1.5}}},bar:{barMaxWidth:150,itemStyle:{borderWidth:0,borderRadius:0,borderColor:e.palette.grey[300]},label:{show:!1,color:n}},gauge:{detail:{fontSize:18,fontWeight:600,valueAnimation:!1},splitLine:{distance:0,length:4,lineStyle:{width:1}},splitNumber:12}},noDataOption:{title:{show:!0,textStyle:{color:n,fontSize:16,fontWeight:400},text:"No data",left:"center",top:"center"},xAxis:{show:!1},yAxis:{show:!1}},sparkline:{width:2,color:"#1976d2"},container:{padding:{default:parseInt(e.spacing(1.5),10)}},thresholds:{defaultColor:e.palette.success.main,palette:["#FFCC00",e.palette.warning.main,e.palette.error.main]}},t)}function ov(e,t=[]){if(!t.length)return{value:e};let n={value:e};return t.forEach(t=>{switch(t.kind){case"Value":{let r=t.spec;String(r.value)===String(e)&&(n.value=r.result.value||n.value,n.color=r.result.color);break}case"Range":{let r=t.spec;if(void 0===r.from&&void 0===r.to)break;let o=void 0!==r.from?r.from:-1/0,i=void 0!==r.to?r.to:1/0;e>=o&&e<=i&&(n.value=r.result.value||n.value,n.color=r.result.color);break}case"Regex":{let r=t.spec,o=e.toString();if(!r.pattern)break;let i=od(r.pattern);o.match(i)&&null!==r.result.value&&(n.value=o.replace(i,r.result.value.toString()||"")||n.value,n.color=r.result.color);break}case"Misc":{let r=t.spec;(function(e,t){switch(e){case"empty":return""===t;case"null":return null==t;case"NaN":return Number.isNaN(t);case"true":return!0===t;case"false":return!1===t;default:return!1}})(r.value,e)&&(n.value=r.result.value||n.value,n.color=r.result.color)}}}),n}function oy(e,t){if(0===t.length)return e;let n={};for(let r of e){let e=Object.keys(r).filter(e=>t.includes(e)).map(e=>r[e]).join("|"),o=n[e];o?n[e]={...o,...r}:n[e]={...r}}return Object.values(n)}function ox(e,t,n){let r=[];for(let o of e){let e=Object.keys(o).filter(e=>t.includes(e)),i={};for(let t of e)i[t]=o[t],delete o[t];for(let t of e)r.push({...o,[n]:i[t]});0===e.length&&r.push(o)}return r}function ob(e,t){let n=[];for(let r of e){let e=Object.keys(r).filter(e=>RegExp("^(("+t+" #\\d+)|("+t+"))$").test(e)),o={};for(let t of e)o[t]=r[t],delete r[t];for(let i of e)n.push({...r,[t]:o[i]});0===e.length&&n.push(r)}return n}function ow(e){let t=[...e],n=Array.from(new Set(e.flatMap(Object.keys).map(e=>e.replace(/ #\d+/,"")).filter(e=>"value"!==e)));for(let e of n)t=ob(t,e);return oy(t,n)}function oA(e,t){let n=e;for(let e of t??[])if(!e.spec.disabled)switch(e.kind){case"JoinByColumnValue":e.spec.columns&&e.spec.columns.length>0&&(n=oy(n,e.spec.columns));break;case"MergeIndexedColumns":e.spec.column&&(n=ob(n,e.spec.column));break;case"MergeColumns":e.spec.columns&&e.spec.columns.length>0&&e.spec.name&&(n=ox(n,e.spec.columns,e.spec.name));break;case"MergeSeries":n=ow(n)}return n.map(e=>Object.keys(e).toSorted().reduce((t,n)=>(t[n]=e[n],t),{}))}var oC=n(68102);function oS(e){return"number"==typeof e}function oM(e){return!!e&&"object"==typeof e&&"function"==typeof e.constructor&&(!0===e.isBigNumber&&"object"==typeof e.constructor.prototype&&!0===e.constructor.prototype.isBigNumber||"function"==typeof e.constructor.isDecimal&&!0===e.constructor.isDecimal(e))}function oT(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isComplex||!1}function ok(e){return e&&"object"==typeof e&&!0===Object.getPrototypeOf(e).isFraction||!1}function oI(e){return e&&!0===e.constructor.prototype.isUnit||!1}function oE(e){return"string"==typeof e}var oR=Array.isArray;function oD(e){return e&&!0===e.constructor.prototype.isMatrix||!1}function oO(e){return Array.isArray(e)||oD(e)}function oj(e){return e&&e.isDenseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function oP(e){return e&&e.isSparseMatrix&&!0===e.constructor.prototype.isMatrix||!1}function oN(e){return e&&!0===e.constructor.prototype.isRange||!1}function oF(e){return e&&!0===e.constructor.prototype.isIndex||!1}function o_(e){return"boolean"==typeof e}function oL(e){return e&&!0===e.constructor.prototype.isResultSet||!1}function oz(e){return e&&!0===e.constructor.prototype.isHelp||!1}function oB(e){return"function"==typeof e}function oV(e){return e instanceof Date}function o$(e){return e instanceof RegExp}function oH(e){return!!(e&&"object"==typeof e&&e.constructor===Object&&!oT(e)&&!ok(e))}function oW(e){return null===e}function oU(e){return void 0===e}function oG(e){return e&&!0===e.isAccessorNode&&!0===e.constructor.prototype.isNode||!1}function oq(e){return e&&!0===e.isArrayNode&&!0===e.constructor.prototype.isNode||!1}function oY(e){return e&&!0===e.isAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function oZ(e){return e&&!0===e.isBlockNode&&!0===e.constructor.prototype.isNode||!1}function oX(e){return e&&!0===e.isConditionalNode&&!0===e.constructor.prototype.isNode||!1}function oK(e){return e&&!0===e.isConstantNode&&!0===e.constructor.prototype.isNode||!1}function oQ(e){return e&&!0===e.isFunctionAssignmentNode&&!0===e.constructor.prototype.isNode||!1}function oJ(e){return e&&!0===e.isFunctionNode&&!0===e.constructor.prototype.isNode||!1}function o0(e){return e&&!0===e.isIndexNode&&!0===e.constructor.prototype.isNode||!1}function o1(e){return e&&!0===e.isNode&&!0===e.constructor.prototype.isNode||!1}function o2(e){return e&&!0===e.isObjectNode&&!0===e.constructor.prototype.isNode||!1}function o5(e){return e&&!0===e.isOperatorNode&&!0===e.constructor.prototype.isNode||!1}function o4(e){return e&&!0===e.isParenthesisNode&&!0===e.constructor.prototype.isNode||!1}function o3(e){return e&&!0===e.isRangeNode&&!0===e.constructor.prototype.isNode||!1}function o6(e){return e&&!0===e.isSymbolNode&&!0===e.constructor.prototype.isNode||!1}function o9(e){return e&&!0===e.constructor.prototype.isChain||!1}function o7(e){var t=typeof e;return"object"===t?null===e?"null":Array.isArray(e)?"Array":e instanceof Date?"Date":e instanceof RegExp?"RegExp":oM(e)?"BigNumber":oT(e)?"Complex":ok(e)?"Fraction":oD(e)?"Matrix":oI(e)?"Unit":oF(e)?"Index":oN(e)?"Range":oL(e)?"ResultSet":o1(e)?e.type:o9(e)?"Chain":oz(e)?"Help":"Object":"function"===t?"Function":t}function o8(e){var t=typeof e;if("number"===t||"string"===t||"boolean"===t||null==e)return e;if("function"==typeof e.clone)return e.clone();if(Array.isArray(e))return e.map(function(e){return o8(e)});if(e instanceof Date)return new Date(e.valueOf());if(oM(e))return e;if(e instanceof RegExp)throw TypeError("Cannot clone "+e);return ie(e,o8)}function ie(e,t){var n={};for(var r in e)io(e,r)&&(n[r]=t(e[r]));return n}function it(e,t){var n,r,o;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(r=0,o=e.length;r<o;r++)if(!it(e[r],t[r]))return!1;return!0}if("function"==typeof e)return e===t;if(!(e instanceof Object))return e===t;if(Array.isArray(t)||!(t instanceof Object))return!1;for(n in e)if(!(n in t)||!it(e[n],t[n]))return!1;for(n in t)if(!(n in e))return!1;return!0}function ir(e,t,n){var r,o=!0;Object.defineProperty(e,t,{get:function(){return o&&(r=n(),o=!1),r},set:function(e){r=e,o=!1},configurable:!0,enumerable:!0})}function io(e,t){return e&&Object.hasOwnProperty.call(e,t)}function ii(e){return Object.keys(e).map(t=>e[t])}var ia=n(23420);function is(e,t,n,r){function o(r){var o=function(e,t){for(var n={},r=0;r<t.length;r++){var o=t[r],i=e[o];void 0!==i&&(n[o]=i)}return n}(r,t.map(iu));return function(e,t,n){if(!t.filter(e=>{var t;return!((t=e)&&"?"===t[0])}).every(e=>void 0!==n[e])){var r=t.filter(e=>void 0===n[e]);throw Error('Cannot create function "'.concat(e,'", ')+"some dependencies are missing: ".concat(r.map(e=>'"'.concat(e,'"')).join(", "),"."))}}(e,t,r),n(o)}return o.isFactory=!0,o.fn=e,o.dependencies=t.slice().sort(),r&&(o.meta=r),o}function il(e){return"function"==typeof e&&"string"==typeof e.fn&&Array.isArray(e.dependencies)}function iu(e){return e&&"?"===e[0]?e.slice(1):e}function ic(e){return"boolean"==typeof e||!!isFinite(e)&&e===Math.round(e)}function id(e,t,n){var r="";if(n){if(n<1)throw Error("size must be in greater than 0");if(!ic(n))throw Error("size must be an integer");if(e>2**(n-1)-1||e<-(2**(n-1)))throw Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!ic(e))throw Error("Value must be an integer");e<0&&(e+=2**n),r="i".concat(n)}var o="";return e<0&&(e=-e,o="-"),"".concat(o).concat({2:"0b",8:"0o",16:"0x"}[t]).concat(e.toString(t)).concat(r)}function ip(e,t){if("function"==typeof t)return t(e);if(e===1/0)return"Infinity";if(e===-1/0)return"-Infinity";if(isNaN(e))return"NaN";var n,r,o="auto";if(t&&(t.notation&&(o=t.notation),oS(t)?n=t:oS(t.precision)&&(n=t.precision),t.wordSize)&&"number"!=typeof(r=t.wordSize))throw Error('Option "wordSize" must be a number');switch(o){case"fixed":return im(e,n);case"exponential":return ig(e,n);case"engineering":return function(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=iv(ih(e),t),r=n.exponent,o=n.coefficients,i=r%3==0?r:r<0?r-3-r%3:r-r%3;if(oS(t))for(;t>o.length||r-i+1>o.length;)o.push(0);else for(var a=Math.abs(r-i)-(o.length-1),s=0;s<a;s++)o.push(0);for(var l=Math.abs(r-i),u=1;l>0;)u++,l--;var c=o.slice(u).join(""),d=oS(t)&&c.length||c.match(/[1-9]/)?"."+c:"",p=o.slice(0,u).join("")+d+"e"+(r>=0?"+":"")+i.toString();return n.sign+p}(e,n);case"bin":return id(e,2,r);case"oct":return id(e,8,r);case"hex":return id(e,16,r);case"auto":return(function(e,t,n){if(isNaN(e)||!isFinite(e))return String(e);var r=n&&void 0!==n.lowerExp?n.lowerExp:-3,o=n&&void 0!==n.upperExp?n.upperExp:5,i=ih(e),a=t?iv(i,t):i;if(a.exponent<r||a.exponent>=o)return ig(e,t);var s=a.coefficients,l=a.exponent;s.length<t&&(s=s.concat(iy(t-s.length))),s=s.concat(iy(l-s.length+1+(s.length<t?t-s.length:0))),s=iy(-l).concat(s);var u=l>0?l:0;return u<s.length-1&&s.splice(u+1,0,"."),a.sign+s.join("")})(e,n,t&&t).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+o+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}function ih(e){var t=String(e).toLowerCase().match(/^(-?)(\d+\.?\d*)(e([+-]?\d+))?$/);if(!t)throw SyntaxError("Invalid number "+e);var n=t[1],r=t[2],o=parseFloat(t[4]||"0"),i=r.indexOf(".");o+=-1!==i?i-1:r.length-1;var a=r.replace(".","").replace(/^0*/,function(e){return o-=e.length,""}).replace(/0*$/,"").split("").map(function(e){return parseInt(e)});return 0===a.length&&(a.push(0),o++),{sign:n,coefficients:a,exponent:o}}function im(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ih(e),r="number"==typeof t?iv(n,n.exponent+1+t):n,o=r.coefficients,i=r.exponent+1,a=i+(t||0);return o.length<a&&(o=o.concat(iy(a-o.length))),i<0&&(o=iy(-i+1).concat(o),i=1),i<o.length&&o.splice(i,0,0===i?"0.":"."),r.sign+o.join("")}function ig(e,t){if(isNaN(e)||!isFinite(e))return String(e);var n=ih(e),r=t?iv(n,t):n,o=r.coefficients,i=r.exponent;o.length<t&&(o=o.concat(iy(t-o.length)));var a=o.shift();return r.sign+a+(o.length>0?"."+o.join(""):"")+"e"+(i>=0?"+":"")+i}function iv(e,t){for(var n={sign:e.sign,coefficients:e.coefficients,exponent:e.exponent},r=n.coefficients;t<=0;)r.unshift(0),n.exponent++,t++;if(r.length>t&&r.splice(t,r.length-t)[0]>=5){var o=t-1;for(r[o]++;10===r[o];)r.pop(),0===o&&(r.unshift(0),n.exponent++,o++),o--,r[o]++}return n}function iy(e){for(var t=[],n=0;n<e;n++)t.push(0);return t}var ix=Number.EPSILON||2220446049250313e-31;function ib(e,t,n){if(null==n)return e===t;if(e===t)return!0;if(isNaN(e)||isNaN(t))return!1;if(isFinite(e)&&isFinite(t)){var r=Math.abs(e-t);return r<ix||r<=Math.max(Math.abs(e),Math.abs(t))*n}return!1}function iw(e,t,n){var r=new e.constructor(2),o="";if(n){if(n<1)throw Error("size must be in greater than 0");if(!ic(n))throw Error("size must be an integer");if(e.greaterThan(r.pow(n-1).sub(1))||e.lessThan(r.pow(n-1).mul(-1)))throw Error("Value must be in range [-2^".concat(n-1,", 2^").concat(n-1,"-1]"));if(!e.isInteger())throw Error("Value must be an integer");e.lessThan(0)&&(e=e.add(r.pow(n))),o="i".concat(n)}switch(t){case 2:return"".concat(e.toBinary()).concat(o);case 8:return"".concat(e.toOctal()).concat(o);case 16:return"".concat(e.toHexadecimal()).concat(o);default:throw Error("Base ".concat(t," not supported "))}}function iA(e,t){return void 0!==t?e.toExponential(t-1):e.toExponential()}function iC(e,t){var n=function(e,t){var n;if("number"==typeof e)return ip(e,t);if(oM(e))return function(e,t){if("function"==typeof t)return t(e);if(!e.isFinite())return e.isNaN()?"NaN":e.gt(0)?"Infinity":"-Infinity";var n="auto";if(void 0!==t&&(t.notation&&(n=t.notation),"number"==typeof t?d=t:t.precision&&(d=t.precision),t.wordSize)&&"number"!=typeof(p=t.wordSize))throw Error('Option "wordSize" must be a number');switch(n){case"fixed":return r=e,o=d,r.toFixed(o);case"exponential":return iA(e,d);case"engineering":return i=e,a=d,l=(s=i.e)%3==0?s:s<0?s-3-s%3:s-s%3,-1!==(c=(u=i.mul(Math.pow(10,-l))).toPrecision(a)).indexOf("e")&&(c=u.toString()),c+"e"+(s>=0?"+":"")+l.toString();case"bin":return iw(e,2,p);case"oct":return iw(e,8,p);case"hex":return iw(e,16,p);case"auto":var r,o,i,a,s,l,u,c,d,p,f=t&&void 0!==t.lowerExp?t.lowerExp:-3,h=t&&void 0!==t.upperExp?t.upperExp:5;if(e.isZero())return"0";var m=e.toSignificantDigits(d),g=m.e;return(g>=f&&g<h?m.toFixed():iA(e,d)).replace(/((\.\d*?)(0+))($|e)/,function(){var e=arguments[2],t=arguments[4];return"."!==e?e+t:t});default:throw Error('Unknown notation "'+n+'". Choose "auto", "exponential", "fixed", "bin", "oct", or "hex.')}}(e,t);if((n=e)&&"object"==typeof n&&"number"==typeof n.s&&"number"==typeof n.n&&"number"==typeof n.d)if(!t||"decimal"!==t.fraction)return e.s*e.n+"/"+e.d;else return e.toString();if(Array.isArray(e))return function e(t,n){if(!Array.isArray(t))return iC(t,n);for(var r="[",o=t.length,i=0;i<o;i++)0!==i&&(r+=", "),r+=e(t[i],n);return r+"]"}(e,t);if(oE(e))return'"'+e+'"';if("function"==typeof e)return e.syntax?String(e.syntax):"function";if(e&&"object"==typeof e)if("function"==typeof e.format)return e.format(t);else return e&&e.toString(t)!==({}).toString()?e.toString(t):"{"+Object.keys(e).map(n=>'"'+n+'": '+iC(e[n],t)).join(", ")+"}";return String(e)}(e,t);return t&&"object"==typeof t&&"truncate"in t&&n.length>t.truncate?n.substring(0,t.truncate-3)+"...":n}function iS(e,t,n){if(!(this instanceof iS))throw SyntaxError("Constructor must be called with the new operator");this.actual=e,this.expected=t,this.relation=n,this.message="Dimension mismatch ("+(Array.isArray(e)?"["+e.join(", ")+"]":e)+" "+(this.relation||"!=")+" "+(Array.isArray(t)?"["+t.join(", ")+"]":t)+")",this.stack=Error().stack}function iM(e,t,n){if(!(this instanceof iM))throw SyntaxError("Constructor must be called with the new operator");this.index=e,arguments.length<3?(this.min=0,this.max=t):(this.min=t,this.max=n),void 0!==this.min&&this.index<this.min?this.message="Index out of range ("+this.index+" < "+this.min+")":void 0!==this.max&&this.index>=this.max?this.message="Index out of range ("+this.index+" > "+(this.max-1)+")":this.message="Index out of range ("+this.index+")",this.stack=Error().stack}function iT(e){for(var t=[];Array.isArray(e);)t.push(e.length),e=e[0];return t}function ik(e,t){if(0===t.length){if(Array.isArray(e))throw new iS(e.length,0)}else!function e(t,n,r){var o,i=t.length;if(i!==n[r])throw new iS(i,n[r]);if(r<n.length-1){var a=r+1;for(o=0;o<i;o++){if(!Array.isArray(t[o]))throw new iS(n.length-1,n.length,"<");e(t[o],n,a)}}else for(o=0;o<i;o++)if(Array.isArray(t[o]))throw new iS(n.length+1,n.length,">")}(e,t,0)}function iI(e,t){if(!oS(e)||!ic(e))throw TypeError("Index must be an integer (value: "+e+")");if(e<0||"number"==typeof t&&e>=t)throw new iM(e,t)}function iE(e,t,n){if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw Error("Resizing to scalar is not supported");return t.forEach(function(e){if(!oS(e)||!ic(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+iC(t)+")")}),function e(t,n,r,o){var i,a,s=t.length,l=n[r],u=Math.min(s,l);if(t.length=l,r<n.length-1){var c=r+1;for(i=0;i<u;i++)Array.isArray(a=t[i])||(a=[a],t[i]=a),e(a,n,c,o);for(i=u;i<l;i++)a=[],t[i]=a,e(a,n,c,o)}else{for(i=0;i<u;i++)for(;Array.isArray(t[i]);)t[i]=t[i][0];for(i=u;i<l;i++)t[i]=o}}(e,t,0,void 0!==n?n:0),e}function iR(e,t){var n=iD(e),r=e.slice(),o=e.indexOf(-1);if(e.indexOf(-1,o+1)>=0)throw Error("More than one wildcard in sizes");if(o>=0)if(t%n==0)r[o]=-t/n;else throw Error("Could not replace wildcard, since "+t+" is no multiple of "+-n);return r}function iD(e){return e.reduce((e,t)=>e*t,1)}function iO(e,t,n,r){var o=r||iT(e);if(n)for(var i=0;i<n;i++)e=[e],o.unshift(1);for(e=function e(t,n,r){var o,i;if(Array.isArray(t)){var a=r+1;for(o=0,i=t.length;o<i;o++)t[o]=e(t[o],n,a)}else for(var s=r;s<n;s++)t=[t];return t}(e,t,0);o.length<t;)o.push(1);return e}function ij(e,t){for(var n,r=0,o=0;o<e.length;o++){var i=e[o],a=Array.isArray(i);if(0===o&&a&&(r=i.length),a&&i.length!==r)return;var s=a?ij(i,t):t(i);if(void 0===n)n=s;else if(n!==s)return"mixed"}return n}function iP(e,t){return -1!==e.indexOf(t)}function iN(e,t,n,r){if(!(this instanceof iN))throw SyntaxError("Constructor must be called with the new operator");this.fn=e,this.count=t,this.min=n,this.max=r,this.message="Wrong number of arguments in function "+e+" ("+t+" provided, "+n+(null!=r?"-"+r:"")+" expected)",this.stack=Error().stack}iS.prototype=RangeError(),iS.prototype.constructor=RangeError,iS.prototype.name="DimensionError",iS.prototype.isDimensionError=!0,iM.prototype=RangeError(),iM.prototype.constructor=RangeError,iM.prototype.name="IndexError",iM.prototype.isIndexError=!0,iN.prototype=Error(),iN.prototype.constructor=Error,iN.prototype.name="ArgumentsError",iN.prototype.isArgumentsError=!0;var iF={epsilon:1e-12,matrix:"Matrix",number:"number",precision:64,predictable:!1,randomSeed:null},i_=["Matrix","Array"],iL=["number","BigNumber","Fraction"];function iz(e,t,n){var r;void 0!==e[t]&&(r=e[t],-1===n.indexOf(r))&&console.warn('Warning: Unknown value "'+e[t]+'" for configuration option "'+t+'". Available options: '+n.map(e=>JSON.stringify(e)).join(", ")+".")}function iB(e,t){var n,r,o,i=(0,oC.A)({},iF,t);if("function"!=typeof Object.create)throw Error("ES5 not supported by this JavaScript engine. Please load the es5-shim and es5-sham library for compatibility.");var a=((n={isNumber:oS,isComplex:oT,isBigNumber:oM,isFraction:ok,isUnit:oI,isString:oE,isArray:oR,isMatrix:oD,isCollection:oO,isDenseMatrix:oj,isSparseMatrix:oP,isRange:oN,isIndex:oF,isBoolean:o_,isResultSet:oL,isHelp:oz,isFunction:oB,isDate:oV,isRegExp:o$,isObject:oH,isNull:oW,isUndefined:oU,isAccessorNode:oG,isArrayNode:oq,isAssignmentNode:oY,isBlockNode:oZ,isConditionalNode:oX,isConstantNode:oK,isFunctionAssignmentNode:oQ,isFunctionNode:oJ,isIndexNode:o0,isNode:o1,isObjectNode:o2,isOperatorNode:o5,isParenthesisNode:o4,isRangeNode:o3,isSymbolNode:o6,isChain:o9}).on=(r=new ia).on.bind(r),n.off=r.off.bind(r),n.once=r.once.bind(r),n.emit=r.emit.bind(r),n);a.config=function(e,t){function n(n){if(!n)return ie(e,o8);var r=ie(e,o8);iz(n,"matrix",i_),iz(n,"number",iL),function e(t,n){if(Array.isArray(n))throw TypeError("Arrays are not supported by deepExtend");for(var r in n)if(io(n,r)&&!(r in Object.prototype)&&!(r in Function.prototype))if(n[r]&&n[r].constructor===Object)void 0===t[r]&&(t[r]={}),t[r]&&t[r].constructor===Object?e(t[r],n[r]):t[r]=n[r];else if(Array.isArray(n[r]))throw TypeError("Arrays are not supported by deepExtend");else t[r]=n[r];return t}(e,n);var o=ie(e,o8);return t("config",o,r,ie(n,o8)),o}return n.MATRIX_OPTIONS=i_,n.NUMBER_OPTIONS=iL,Object.keys(iF).forEach(t=>{Object.defineProperty(n,t,{get:()=>e[t],enumerable:!0,configurable:!0})}),n}(i,a.emit),a.expression={transform:{},mathWithTransform:{config:a.config}};var s={},l=function(e,t,n){function r(e,n){n&&"function"==typeof n.transform?(t.expression.transform[e]=n.transform,io(a,e)||(t.expression.mathWithTransform[e]=n.transform)):(delete t.expression.transform[e],io(a,e)||(t.expression.mathWithTransform[e]=n))}function o(e){return"function"==typeof e&&"object"==typeof e.signatures}function i(e){return void 0!==e&&void 0!==e.meta&&!0===e.meta.isTransformFunction}var a={expression:!0,type:!0,docs:!0,error:!0,json:!0,chain:!0};return function(s,l){var u=arguments.length;if(1!==u&&2!==u)throw new iN("import",u,1,2);l||(l={});var c={};for(var d in!function e(t,n,r){if(Array.isArray(n))n.forEach(n=>e(t,n));else if("object"==typeof n)for(var o in n)io(n,o)&&e(t,n[o],o);else if(il(n)||void 0!==r){var a=il(n)?i(n)?n.fn+".transform":n.fn:r;if(io(t,a)&&t[a]!==n&&!l.silent)throw Error('Cannot import "'+a+'" twice');t[a]=n}else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}(c,s),c)if(io(c,d)){var p,f=c[d];if(il(f))!function(r,s){var l,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:r.fn;if(iP(u,"."))throw Error("Factory name should not contain a nested path. Name: "+JSON.stringify(u));var c=i(r)?t.expression.transform:t,d=u in t.expression.transform,p=io(c,u)?c[u]:void 0,f=function(){var n={};r.dependencies.map(iu).forEach(e=>{if(iP(e,"."))throw Error("Factory dependency should not contain a nested path. Name: "+JSON.stringify(e));"math"===e?n.math=t:"mathWithTransform"===e?n.mathWithTransform=t.expression.mathWithTransform:"classes"===e?n.classes=t:n[e]=t[e]});var i=r(n);if(i&&"function"==typeof i.transform)throw Error('Transforms cannot be attached to factory functions. Please create a separate function for it with exports.path="expression.transform"');if(void 0===p||s.override)return i;if(o(p)&&o(i))return e(p,i);if(s.silent)return p;throw Error('Cannot import "'+u+'": already exists')};r.meta&&!1===r.meta.lazy?c[u]=f():ir(c,u,f),p&&d?function(e){delete t.expression.transform[e],io(a,e)?delete t.expression.mathWithTransform[e]:t.expression.mathWithTransform[e]=t[e]}(u):!i(r)&&(-1!==(l=r).fn.indexOf(".")||io(a,l.fn)||l.meta&&l.meta.isClass)||ir(t.expression.mathWithTransform,u,()=>c[u]),n[u]=r,t.emit("import",u,f)}(f,l);else{if("function"==typeof(p=f)||"number"==typeof p||"string"==typeof p||"boolean"==typeof p||null===p||oI(p)||oT(p)||oM(p)||ok(p)||oD(p)||Array.isArray(p))!function(i,a,s){var l;if(s.wrap&&"function"==typeof a&&(a=function(e){var n=function(){for(var n=[],r=0,o=arguments.length;r<o;r++){var i=arguments[r];n[r]=i&&i.valueOf()}return e.apply(t,n)};return e.transform&&(n.transform=e.transform),n}(a)),"function"==typeof(l=a)&&"string"==typeof l.signature&&(a=e(i,{[a.signature]:a})),o(t[i])&&o(a)){a=s.override?e(i,a.signatures):e(t[i],a),t[i]=a,delete n[i],r(i,a),t.emit("import",i,function(){return a});return}if(void 0===t[i]||s.override){t[i]=a,delete n[i],r(i,a),t.emit("import",i,function(){return a});return}if(!s.silent)throw Error('Cannot import "'+i+'": already exists')}(d,f,l);else if(!l.silent)throw TypeError("Factory, Object, or Array expected")}}}}(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return a.typed.apply(a.typed,t)},a,s);return a.import=l,a.on("config",()=>{ii(s).forEach(e=>{e&&e.meta&&e.meta.recreateOnConfigChange&&l(e,{override:!0})})}),a.create=iB.bind(null,e),a.factory=is,a.import(ii((function e(t,n){for(var r in t)if(io(t,r)){var o=t[r];"object"==typeof o&&null!==o?e(o,n):n[r]=o}}(e,o={}),o))),a.ArgumentsError=iN,a.DimensionError=iS,a.IndexError=iM,a}var iV,i$,iH,iW,iU,iG,iq,iY,iZ,iX,iK,iQ,iJ,i0,i1,i2,i5,i4,i3="0123456789abcdef",i6="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",i9="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",i7={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-9e15,maxE:9e15,crypto:!1},i8=!0,ae="[DecimalError] ",at=ae+"Invalid argument: ",an=ae+"Precision limit exceeded",ar=ae+"crypto unavailable",ao="[object Decimal]",ai=Math.floor,aa=Math.pow,as=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,al=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,au=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,ac=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,ad=i6.length-1,ap=i9.length-1,af={toStringTag:ao};function ah(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)(n=7-(r=e[t]+"").length)&&(i+=aM(n)),i+=r;(n=7-(r=(a=e[t])+"").length)&&(i+=aM(n))}else if(0===a)return"0";for(;a%10==0;)a/=10;return i+a}function am(e,t,n){if(e!==~~e||e<t||e>n)throw Error(at+e)}function ag(e,t,n,r){var o,i,a,s;for(i=e[0];i>=10;i/=10)--t;return--t<0?(t+=7,o=0):(o=Math.ceil((t+1)/7),t%=7),i=aa(10,7-t),s=e[o]%i|0,null==r?t<3?(0==t?s=s/100|0:1==t&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==i||n>3&&s+1==i/2)&&(e[o+1]/i/100|0)==aa(10,t-2)-1||(s==i/2||0==s)&&(e[o+1]/i/100|0)==0:t<4?(0==t?s=s/1e3|0:1==t?s=s/100|0:2==t&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==i||!r&&n>3&&s+1==i/2)&&(e[o+1]/i/1e3|0)==aa(10,t-3)-1,a}function av(e,t,n){for(var r,o,i=[0],a=0,s=e.length;a<s;){for(o=i.length;o--;)i[o]*=t;for(i[0]+=i3.indexOf(e.charAt(a++)),r=0;r<i.length;r++)i[r]>n-1&&(void 0===i[r+1]&&(i[r+1]=0),i[r+1]+=i[r]/n|0,i[r]%=n)}return i.reverse()}af.absoluteValue=af.abs=function(){var e=new this.constructor(this);return e.s<0&&(e.s=1),ax(e)},af.ceil=function(){return ax(new this.constructor(this),this.e+1,2)},af.clampedTo=af.clamp=function(e,t){var n=this.constructor;if(e=new n(e),t=new n(t),!e.s||!t.s)return new n(NaN);if(e.gt(t))throw Error(at+t);return 0>this.cmp(e)?e:this.cmp(t)>0?t:new n(this)},af.comparedTo=af.cmp=function(e){var t,n,r,o,i=this.d,a=(e=new this.constructor(e)).d,s=this.s,l=e.s;if(!i||!a)return s&&l?s!==l?s:i===a?0:!i^s<0?1:-1:NaN;if(!i[0]||!a[0])return i[0]?s:a[0]?-l:0;if(s!==l)return s;if(this.e!==e.e)return this.e>e.e^s<0?1:-1;for(t=0,n=(r=i.length)<(o=a.length)?r:o;t<n;++t)if(i[t]!==a[t])return i[t]>a[t]^s<0?1:-1;return r===o?0:r>o^s<0?1:-1},af.cosine=af.cos=function(){var e,t,n=this,r=n.constructor;return n.d?n.d[0]?(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r,o;if(t.isZero())return t;(r=t.d.length)<32?o=(1/aP(4,n=Math.ceil(r/3))).toString():(n=16,o="2.3283064365386962890625e-10"),e.precision+=n,t=aj(e,1,t.times(o),new e(1));for(var i=n;i--;){var a=t.times(t);t=a.times(a).minus(a).times(8).plus(1)}return e.precision-=n,t}(r,aN(r,n)),r.precision=e,r.rounding=t,ax(2==i4||3==i4?n.neg():n,e,t,!0)):new r(1):new r(NaN)},af.cubeRoot=af.cbrt=function(){var e,t,n,r,o,i,a,s,l,u,c=this.constructor;if(!this.isFinite()||this.isZero())return new c(this);for(i8=!1,(i=this.s*aa(this.s*this,1/3))&&Math.abs(i)!=1/0?r=new c(i.toString()):(n=ah(this.d),(i=((e=this.e)-n.length+1)%3)&&(n+=1==i||-2==i?"0":"00"),i=aa(n,1/3),e=ai((e+1)/3)-(e%3==(e<0?-1:2)),(r=new c(n=i==1/0?"5e"+e:(n=i.toExponential()).slice(0,n.indexOf("e")+1)+e)).s=this.s),a=(e=c.precision)+3;;)if(r=ay((u=(l=(s=r).times(s).times(s)).plus(this)).plus(this).times(s),u.plus(l),a+2,1),ah(s.d).slice(0,a)===(n=ah(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(o||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(ax(r,e+1,1),t=!r.times(r).times(r).eq(this));break}if(!o&&(ax(s,e+1,0),s.times(s).times(s).eq(this))){r=s;break}a+=4,o=1}return i8=!0,ax(r,e,c.rounding,t)},af.decimalPlaces=af.dp=function(){var e,t=this.d,n=NaN;if(t){if(n=((e=t.length-1)-ai(this.e/7))*7,e=t[e])for(;e%10==0;e/=10)n--;n<0&&(n=0)}return n},af.dividedBy=af.div=function(e){return ay(this,new this.constructor(e))},af.dividedToIntegerBy=af.divToInt=function(e){var t=this.constructor;return ax(ay(this,new t(e),0,1,1),t.precision,t.rounding)},af.equals=af.eq=function(e){return 0===this.cmp(e)},af.floor=function(){return ax(new this.constructor(this),this.e+1,3)},af.greaterThan=af.gt=function(e){return this.cmp(e)>0},af.greaterThanOrEqualTo=af.gte=function(e){var t=this.cmp(e);return 1==t||0===t},af.hyperbolicCosine=af.cosh=function(){var e,t,n,r,o,i=this,a=i.constructor,s=new a(1);if(!i.isFinite())return new a(i.s?1/0:NaN);if(i.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(i.e,i.sd())+4,a.rounding=1,(o=i.d.length)<32?t=(1/aP(4,e=Math.ceil(o/3))).toString():(e=16,t="2.3283064365386962890625e-10"),i=aj(a,1,i.times(t),new a(1),!0);for(var l,u=e,c=new a(8);u--;)l=i.times(i),i=s.minus(l.times(c.minus(l.times(c))));return ax(i,a.precision=n,a.rounding=r,!0)},af.hyperbolicSine=af.sinh=function(){var e,t,n,r,o=this,i=o.constructor;if(!o.isFinite()||o.isZero())return new i(o);if(t=i.precision,n=i.rounding,i.precision=t+Math.max(o.e,o.sd())+4,i.rounding=1,(r=o.d.length)<3)o=aj(i,2,o,o,!0);else{e=(e=1.4*Math.sqrt(r))>16?16:0|e,o=aj(i,2,o=o.times(1/aP(5,e)),o,!0);for(var a,s=new i(5),l=new i(16),u=new i(20);e--;)a=o.times(o),o=o.times(s.plus(a.times(l.times(a).plus(u))))}return i.precision=t,i.rounding=n,ax(o,t,n,!0)},af.hyperbolicTangent=af.tanh=function(){var e,t,n=this.constructor;return this.isFinite()?this.isZero()?new n(this):(e=n.precision,t=n.rounding,n.precision=e+7,n.rounding=1,ay(this.sinh(),this.cosh(),n.precision=e,n.rounding=t)):new n(this.s)},af.inverseCosine=af.acos=function(){var e=this,t=e.constructor,n=e.abs().cmp(1),r=t.precision,o=t.rounding;return -1!==n?0===n?e.isNeg()?aC(t,r,o):new t(0):new t(NaN):e.isZero()?aC(t,r+4,o).times(.5):(t.precision=r+6,t.rounding=1,e=new t(1).minus(e).div(e.plus(1)).sqrt().atan(),t.precision=r,t.rounding=o,e.times(2))},af.inverseHyperbolicCosine=af.acosh=function(){var e,t,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(e=r.precision,t=r.rounding,r.precision=e+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,i8=!1,n=n.times(n).minus(1).sqrt().plus(n),i8=!0,r.precision=e,r.rounding=t,n.ln()):new r(n)},af.inverseHyperbolicSine=af.asinh=function(){var e,t,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,i8=!1,n=n.times(n).plus(1).sqrt().plus(n),i8=!0,r.precision=e,r.rounding=t,n.ln())},af.inverseHyperbolicTangent=af.atanh=function(){var e,t,n,r,o=this,i=o.constructor;return o.isFinite()?o.e>=0?new i(o.abs().eq(1)?o.s/0:o.isZero()?o:NaN):(e=i.precision,t=i.rounding,Math.max(r=o.sd(),e)<-(2*o.e)-1)?ax(new i(o),e,t,!0):(i.precision=n=r-o.e,o=ay(o.plus(1),new i(1).minus(o),n+e,1),i.precision=e+4,i.rounding=1,o=o.ln(),i.precision=e,i.rounding=t,o.times(.5)):new i(NaN)},af.inverseSine=af.asin=function(){var e,t,n,r,o=this,i=o.constructor;return o.isZero()?new i(o):(t=o.abs().cmp(1),n=i.precision,r=i.rounding,-1!==t)?0===t?((e=aC(i,n+4,r).times(.5)).s=o.s,e):new i(NaN):(i.precision=n+6,i.rounding=1,o=o.div(new i(1).minus(o.times(o)).sqrt().plus(1)).atan(),i.precision=n,i.rounding=r,o.times(2))},af.inverseTangent=af.atan=function(){var e,t,n,r,o,i,a,s,l,u=this,c=u.constructor,d=c.precision,p=c.rounding;if(u.isFinite()){if(u.isZero())return new c(u);else if(u.abs().eq(1)&&d+4<=ap)return(a=aC(c,d+4,p).times(.25)).s=u.s,a}else{if(!u.s)return new c(NaN);if(d+4<=ap)return(a=aC(c,d+4,p).times(.5)).s=u.s,a}for(c.precision=s=d+10,c.rounding=1,e=n=Math.min(28,s/7+2|0);e;--e)u=u.div(u.times(u).plus(1).sqrt().plus(1));for(i8=!1,t=Math.ceil(s/7),r=1,l=u.times(u),a=new c(u),o=u;-1!==e;)if(o=o.times(l),i=a.minus(o.div(r+=2)),o=o.times(l),void 0!==(a=i.plus(o.div(r+=2))).d[t])for(e=t;a.d[e]===i.d[e]&&e--;);return n&&(a=a.times(2<<n-1)),i8=!0,ax(a,c.precision=d,c.rounding=p,!0)},af.isFinite=function(){return!!this.d},af.isInteger=af.isInt=function(){return!!this.d&&ai(this.e/7)>this.d.length-2},af.isNaN=function(){return!this.s},af.isNegative=af.isNeg=function(){return this.s<0},af.isPositive=af.isPos=function(){return this.s>0},af.isZero=function(){return!!this.d&&0===this.d[0]},af.lessThan=af.lt=function(e){return 0>this.cmp(e)},af.lessThanOrEqualTo=af.lte=function(e){return 1>this.cmp(e)},af.logarithm=af.log=function(e){var t,n,r,o,i,a,s,l=this.constructor,u=l.precision,c=l.rounding;if(null==e)e=new l(10),t=!0;else{if(n=(e=new l(e)).d,e.s<0||!n||!n[0]||e.eq(1))return new l(NaN);t=e.eq(10)}if(n=this.d,this.s<0||!n||!n[0]||this.eq(1))return new l(n&&!n[0]?-1/0:1!=this.s?NaN:n?0:1/0);if(t)if(n.length>1)o=!0;else{for(r=n[0];r%10==0;)r/=10;o=1!==r}if(i8=!1,ag((s=ay(i=aR(this,a=u+5),t?aA(l,a+10):aR(e,a),a,1)).d,r=u,c))do if(a+=10,s=ay(i=aR(this,a),t?aA(l,a+10):aR(e,a),a,1),!o){+ah(s.d).slice(r+1,r+15)+1==1e14&&(s=ax(s,u+1,0));break}while(ag(s.d,r+=10,c));return i8=!0,ax(s,u,c)},af.minus=af.sub=function(e){var t,n,r,o,i,a,s,l,u,c,d,p,f=this.constructor;if(e=new f(e),!this.d||!e.d)return this.s&&e.s?this.d?e.s=-e.s:e=new f(e.d||this.s!==e.s?this:NaN):e=new f(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.plus(e);if(u=this.d,p=e.d,s=f.precision,l=f.rounding,!u[0]||!p[0]){if(p[0])e.s=-e.s;else{if(!u[0])return new f(3===l?-0:0);e=new f(this)}return i8?ax(e,s,l):e}if(n=ai(e.e/7),c=ai(this.e/7),u=u.slice(),i=c-n){for((d=i<0)?(t=u,i=-i,a=p.length):(t=p,n=c,a=u.length),i>(r=Math.max(Math.ceil(s/7),a)+2)&&(i=r,t.length=1),t.reverse(),r=i;r--;)t.push(0);t.reverse()}else{for((d=(r=u.length)<(a=p.length))&&(a=r),r=0;r<a;r++)if(u[r]!=p[r]){d=u[r]<p[r];break}i=0}for(d&&(t=u,u=p,p=t,e.s=-e.s),a=u.length,r=p.length-a;r>0;--r)u[a++]=0;for(r=p.length;r>i;){if(u[--r]<p[r]){for(o=r;o&&0===u[--o];)u[o]=1e7-1;--u[o],u[r]+=1e7}u[r]-=p[r]}for(;0===u[--a];)u.pop();for(;0===u[0];u.shift())--n;return u[0]?(e.d=u,e.e=aw(u,n),i8?ax(e,s,l):e):new f(3===l?-0:0)},af.modulo=af.mod=function(e){var t,n=this.constructor;return(e=new n(e),this.d&&e.s&&(!e.d||e.d[0]))?e.d&&(!this.d||this.d[0])?(i8=!1,9==n.modulo?(t=ay(this,e.abs(),0,3,1),t.s*=e.s):t=ay(this,e,0,n.modulo,1),t=t.times(e),i8=!0,this.minus(t)):ax(new n(this),n.precision,n.rounding):new n(NaN)},af.naturalExponential=af.exp=function(){return aE(this)},af.naturalLogarithm=af.ln=function(){return aR(this)},af.negated=af.neg=function(){var e=new this.constructor(this);return e.s=-e.s,ax(e)},af.plus=af.add=function(e){var t,n,r,o,i,a,s,l,u,c,d=this.constructor;if(e=new d(e),!this.d||!e.d)return this.s&&e.s?this.d||(e=new d(e.d||this.s===e.s?this:NaN)):e=new d(NaN),e;if(this.s!=e.s)return e.s=-e.s,this.minus(e);if(u=this.d,c=e.d,s=d.precision,l=d.rounding,!u[0]||!c[0])return c[0]||(e=new d(this)),i8?ax(e,s,l):e;if(i=ai(this.e/7),r=ai(e.e/7),u=u.slice(),o=i-r){for(o<0?(n=u,o=-o,a=c.length):(n=c,r=i,a=u.length),o>(a=(i=Math.ceil(s/7))>a?i+1:a+1)&&(o=a,n.length=1),n.reverse();o--;)n.push(0);n.reverse()}for((a=u.length)-(o=c.length)<0&&(o=a,n=c,c=u,u=n),t=0;o;)t=(u[--o]=u[o]+c[o]+t)/1e7|0,u[o]%=1e7;for(t&&(u.unshift(t),++r),a=u.length;0==u[--a];)u.pop();return e.d=u,e.e=aw(u,r),i8?ax(e,s,l):e},af.precision=af.sd=function(e){var t;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(at+e);return this.d?(t=aS(this.d),e&&this.e+1>t&&(t=this.e+1)):t=NaN,t},af.round=function(){var e=this.constructor;return ax(new e(this),this.e+1,e.rounding)},af.sine=af.sin=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(e,t){var n,r=t.d.length;if(r<3)return t.isZero()?t:aj(e,2,t,t);n=(n=1.4*Math.sqrt(r))>16?16:0|n,t=aj(e,2,t=t.times(1/aP(5,n)),t);for(var o,i=new e(5),a=new e(16),s=new e(20);n--;)o=t.times(t),t=t.times(i.plus(o.times(a.times(o).minus(s))));return t}(r,aN(r,n)),r.precision=e,r.rounding=t,ax(i4>2?n.neg():n,e,t,!0)):new r(NaN)},af.squareRoot=af.sqrt=function(){var e,t,n,r,o,i,a=this.d,s=this.e,l=this.s,u=this.constructor;if(1!==l||!a||!a[0])return new u(!l||l<0&&(!a||a[0])?NaN:a?this:1/0);for(i8=!1,0==(l=Math.sqrt(+this))||l==1/0?(((t=ah(a)).length+s)%2==0&&(t+="0"),l=Math.sqrt(t),s=ai((s+1)/2)-(s<0||s%2),r=new u(t=l==1/0?"5e"+s:(t=l.toExponential()).slice(0,t.indexOf("e")+1)+s)):r=new u(l.toString()),n=(s=u.precision)+3;;)if(r=(i=r).plus(ay(this,i,n+2,1)).times(.5),ah(i.d).slice(0,n)===(t=ah(r.d)).slice(0,n)){if("9999"!=(t=t.slice(n-3,n+1))&&(o||"4999"!=t)){+t&&(+t.slice(1)||"5"!=t.charAt(0))||(ax(r,s+1,1),e=!r.times(r).eq(this));break}if(!o&&(ax(i,s+1,0),i.times(i).eq(this))){r=i;break}n+=4,o=1}return i8=!0,ax(r,s,u.rounding,e)},af.tangent=af.tan=function(){var e,t,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(e=r.precision,t=r.rounding,r.precision=e+10,r.rounding=1,(n=n.sin()).s=1,n=ay(n,new r(1).minus(n.times(n)).sqrt(),e+10,0),r.precision=e,r.rounding=t,ax(2==i4||4==i4?n.neg():n,e,t,!0)):new r(NaN)},af.times=af.mul=function(e){var t,n,r,o,i,a,s,l,u,c=this.constructor,d=this.d,p=(e=new c(e)).d;if(e.s*=this.s,!d||!d[0]||!p||!p[0])return new c(!e.s||d&&!d[0]&&!p||p&&!p[0]&&!d?NaN:!d||!p?e.s/0:0*e.s);for(n=ai(this.e/7)+ai(e.e/7),(l=d.length)<(u=p.length)&&(i=d,d=p,p=i,a=l,l=u,u=a),i=[],r=a=l+u;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+p[r]*d[o-r-1]+t,i[o--]=s%1e7|0,t=s/1e7|0;i[o]=(i[o]+t)%1e7|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=aw(i,n),i8?ax(e,c.precision,c.rounding):e},af.toBinary=function(e,t){return aF(this,2,e,t)},af.toDecimalPlaces=af.toDP=function(e,t){var n=this,r=n.constructor;return(n=new r(n),void 0===e)?n:(am(e,0,1e9),void 0===t?t=r.rounding:am(t,0,8),ax(n,e+n.e+1,t))},af.toExponential=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=ab(r,!0):(am(e,0,1e9),void 0===t?t=o.rounding:am(t,0,8),n=ab(r=ax(new o(r),e+1,t),!0,e+1)),r.isNeg()&&!r.isZero()?"-"+n:n},af.toFixed=function(e,t){var n,r,o=this.constructor;return void 0===e?n=ab(this):(am(e,0,1e9),void 0===t?t=o.rounding:am(t,0,8),n=ab(r=ax(new o(this),e+this.e+1,t),!1,e+r.e+1)),this.isNeg()&&!this.isZero()?"-"+n:n},af.toFraction=function(e){var t,n,r,o,i,a,s,l,u,c,d,p,f=this.d,h=this.constructor;if(!f)return new h(this);if(u=n=new h(1),r=l=new h(0),a=(i=(t=new h(r)).e=aS(f)-this.e-1)%7,t.d[0]=aa(10,a<0?7+a:a),null==e)e=i>0?t:u;else{if(!(s=new h(e)).isInt()||s.lt(u))throw Error(at+s);e=s.gt(t)?i>0?t:u:s}for(i8=!1,s=new h(ah(f)),c=h.precision,h.precision=i=7*f.length*2;d=ay(s,t,0,1,1),1!=(o=n.plus(d.times(r))).cmp(e);)n=r,r=o,o=u,u=l.plus(d.times(o)),l=o,o=t,t=s.minus(d.times(o)),s=o;return o=ay(e.minus(n),r,0,1,1),l=l.plus(o.times(u)),n=n.plus(o.times(r)),l.s=u.s=this.s,p=1>ay(u,r,i,1).minus(this).abs().cmp(ay(l,n,i,1).minus(this).abs())?[u,r]:[l,n],h.precision=c,i8=!0,p},af.toHexadecimal=af.toHex=function(e,t){return aF(this,16,e,t)},af.toNearest=function(e,t){var n=this,r=n.constructor;if(n=new r(n),null==e){if(!n.d)return n;e=new r(1),t=r.rounding}else{if(e=new r(e),void 0===t?t=r.rounding:am(t,0,8),!n.d)return e.s?n:e;if(!e.d)return e.s&&(e.s=n.s),e}return e.d[0]?(i8=!1,n=ay(n,e,0,t,1).times(e),i8=!0,ax(n)):(e.s=n.s,n=e),n},af.toNumber=function(){return+this},af.toOctal=function(e,t){return aF(this,8,e,t)},af.toPower=af.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,u=+(e=new l(e));if(!s.d||!e.d||!s.d[0]||!e.d[0])return new l(aa(+s,u));if((s=new l(s)).eq(1))return s;if(r=l.precision,i=l.rounding,e.eq(1))return ax(s,r,i);if((t=ai(e.e/7))>=e.d.length-1&&(n=u<0?-u:u)<=0x1fffffffffffff)return o=aT(l,s,n,r),e.s<0?new l(1).div(o):ax(o,r,i);if((a=s.s)<0){if(t<e.d.length-1)return new l(NaN);if((1&e.d[t])==0&&(a=1),0==s.e&&1==s.d[0]&&1==s.d.length)return s.s=a,s}return(t=0!=(n=aa(+s,u))&&isFinite(n)?new l(n+"").e:ai(u*(Math.log("0."+ah(s.d))/Math.LN10+s.e+1)))>l.maxE+1||t<l.minE-1?new l(t>0?a/0:0):(i8=!1,l.rounding=s.s=1,n=Math.min(12,(t+"").length),(o=aE(e.times(aR(s,r+n)),r)).d&&ag((o=ax(o,r+5,1)).d,r,i)&&(t=r+10,+ah((o=ax(aE(e.times(aR(s,t+n)),t),t+5,1)).d).slice(r+1,r+15)+1==1e14&&(o=ax(o,r+1,0))),o.s=a,i8=!0,l.rounding=i,ax(o,r,i))},af.toPrecision=function(e,t){var n,r=this,o=r.constructor;return void 0===e?n=ab(r,r.e<=o.toExpNeg||r.e>=o.toExpPos):(am(e,1,1e9),void 0===t?t=o.rounding:am(t,0,8),n=ab(r=ax(new o(r),e,t),e<=r.e||r.e<=o.toExpNeg,e)),r.isNeg()&&!r.isZero()?"-"+n:n},af.toSignificantDigits=af.toSD=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(am(e,1,1e9),void 0===t?t=n.rounding:am(t,0,8)),ax(new n(this),e,t)},af.toString=function(){var e=this.constructor,t=ab(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()&&!this.isZero()?"-"+t:t},af.truncated=af.trunc=function(){return ax(new this.constructor(this),this.e+1,1)},af.valueOf=af.toJSON=function(){var e=this.constructor,t=ab(this,this.e<=e.toExpNeg||this.e>=e.toExpPos);return this.isNeg()?"-"+t:t};var ay=function(){function e(e,t,n){var r,o=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+o,e[i]=r%n|0,o=r/n|0;return o&&e.unshift(o),e}function t(e,t,n,r){var o,i;if(n!=r)i=n>r?1:-1;else for(o=i=0;o<n;o++)if(e[o]!=t[o]){i=e[o]>t[o]?1:-1;break}return i}function n(e,t,n,r){for(var o=0;n--;)e[n]-=o,o=+(e[n]<t[n]),e[n]=o*r+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,o,i,a,s,l){var u,c,d,p,f,h,m,g,v,y,x,b,w,A,C,S,M,T,k,I,E=r.constructor,R=r.s==o.s?1:-1,D=r.d,O=o.d;if(!D||!D[0]||!O||!O[0])return new E(!r.s||!o.s||(D?O&&D[0]==O[0]:!O)?NaN:D&&0==D[0]||!O?0*R:R/0);for(l?(f=1,c=r.e-o.e):(l=1e7,f=7,c=ai(r.e/f)-ai(o.e/f)),k=O.length,M=D.length,y=(v=new E(R)).d=[],d=0;O[d]==(D[d]||0);d++);if(O[d]>(D[d]||0)&&c--,null==i?(A=i=E.precision,a=E.rounding):A=s?i+(r.e-o.e)+1:i,A<0)y.push(1),h=!0;else{if(A=A/f+2|0,d=0,1==k){for(p=0,O=O[0],A++;(d<M||p)&&A--;d++)C=p*l+(D[d]||0),y[d]=C/O|0,p=C%O|0;h=p||d<M}else{for((p=l/(O[0]+1)|0)>1&&(O=e(O,p,l),D=e(D,p,l),k=O.length,M=D.length),S=k,b=(x=D.slice(0,k)).length;b<k;)x[b++]=0;(I=O.slice()).unshift(0),T=O[0],O[1]>=l/2&&++T;do p=0,(u=t(O,x,k,b))<0?(w=x[0],k!=b&&(w=w*l+(x[1]||0)),(p=w/T|0)>1?(p>=l&&(p=l-1),g=(m=e(O,p,l)).length,b=x.length,1==(u=t(m,x,g,b))&&(p--,n(m,k<g?I:O,g,l))):(0==p&&(u=p=1),m=O.slice()),(g=m.length)<b&&m.unshift(0),n(x,m,b,l),-1==u&&(b=x.length,(u=t(O,x,k,b))<1&&(p++,n(x,k<b?I:O,b,l))),b=x.length):0===u&&(p++,x=[0]),y[d++]=p,u&&x[0]?x[b++]=D[S]||0:(x=[D[S]],b=1);while((S++<M||void 0!==x[0])&&A--);h=void 0!==x[0]}y[0]||y.shift()}if(1==f)v.e=c,i5=h;else{for(d=1,p=y[0];p>=10;p/=10)d++;v.e=d+c*f-1,ax(v,s?i+v.e+1:i,a,h)}return v}}();function ax(e,t,n,r){var o,i,a,s,l,u,c,d,p,f=e.constructor;e:if(null!=t){if(!(d=e.d))return e;for(o=1,s=d[0];s>=10;s/=10)o++;if((i=t-o)<0)i+=7,a=t,l=(c=d[p=0])/aa(10,o-a-1)%10|0;else if((p=Math.ceil((i+1)/7))>=(s=d.length))if(r){for(;s++<=p;)d.push(0);c=l=0,o=1,i%=7,a=i-7+1}else break e;else{for(o=1,c=s=d[p];s>=10;s/=10)o++;i%=7,l=(a=i-7+o)<0?0:c/aa(10,o-a-1)%10|0}if(r=r||t<0||void 0!==d[p+1]||(a<0?c:c%aa(10,o-a-1)),u=n<4?(l||r)&&(0==n||n==(e.s<0?3:2)):l>5||5==l&&(4==n||r||6==n&&(i>0?a>0?c/aa(10,o-a):0:d[p-1])%10&1||n==(e.s<0?8:7)),t<1||!d[0])return d.length=0,u?(t-=e.e+1,d[0]=aa(10,(7-t%7)%7),e.e=-t||0):d[0]=e.e=0,e;if(0==i?(d.length=p,s=1,p--):(d.length=p+1,s=aa(10,7-i),d[p]=a>0?(c/aa(10,o-a)%aa(10,a)|0)*s:0),u)for(;;)if(0==p){for(i=1,a=d[0];a>=10;a/=10)i++;for(a=d[0]+=s,s=1;a>=10;a/=10)s++;i!=s&&(e.e++,1e7==d[0]&&(d[0]=1));break}else{if(d[p]+=s,1e7!=d[p])break;d[p--]=0,s=1}for(i=d.length;0===d[--i];)d.pop()}return i8&&(e.e>f.maxE?(e.d=null,e.e=NaN):e.e<f.minE&&(e.e=0,e.d=[0])),e}function ab(e,t,n){if(!e.isFinite())return aD(e);var r,o=e.e,i=ah(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+aM(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(e.e<0?"e":"e+")+e.e):o<0?(i="0."+aM(-o-1)+i,n&&(r=n-a)>0&&(i+=aM(r))):o>=a?(i+=aM(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+aM(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=aM(r))),i}function aw(e,t){var n=e[0];for(t*=7;n>=10;n/=10)t++;return t}function aA(e,t,n){if(t>ad)throw i8=!0,n&&(e.precision=n),Error(an);return ax(new e(i6),t,1,!0)}function aC(e,t,n){if(t>ap)throw Error(an);return ax(new e(i9),t,n,!0)}function aS(e){var t=e.length-1,n=7*t+1;if(t=e[t]){for(;t%10==0;t/=10)n--;for(t=e[0];t>=10;t/=10)n++}return n}function aM(e){for(var t="";e--;)t+="0";return t}function aT(e,t,n,r){var o,i=new e(1),a=Math.ceil(r/7+4);for(i8=!1;;){if(n%2&&a_((i=i.times(t)).d,a)&&(o=!0),0===(n=ai(n/2))){n=i.d.length-1,o&&0===i.d[n]&&++i.d[n];break}a_((t=t.times(t)).d,a)}return i8=!0,i}function ak(e){return 1&e.d[e.d.length-1]}function aI(e,t,n){for(var r,o,i=new e(t[0]),a=0;++a<t.length;){if(!(o=new e(t[a])).s){i=o;break}((r=i.cmp(o))===n||0===r&&i.s===n)&&(i=o)}return i}function aE(e,t){var n,r,o,i,a,s,l,u=0,c=0,d=0,p=e.constructor,f=p.rounding,h=p.precision;if(!e.d||!e.d[0]||e.e>17)return new p(e.d?!e.d[0]?1:e.s<0?0:1/0:e.s?e.s<0?0:e:0/0);for(null==t?(i8=!1,l=h):l=t,s=new p(.03125);e.e>-2;)e=e.times(s),d+=5;for(l+=r=Math.log(aa(2,d))/Math.LN10*2+5|0,n=i=a=new p(1),p.precision=l;;){if(i=ax(i.times(e),l,1),n=n.times(++c),ah((s=a.plus(ay(i,n,l,1))).d).slice(0,l)===ah(a.d).slice(0,l)){for(o=d;o--;)a=ax(a.times(a),l,1);if(null!=t)return p.precision=h,a;if(!(u<3&&ag(a.d,l-r,f,u)))return ax(a,p.precision=h,f,i8=!0);p.precision=l+=10,n=i=s=new p(1),c=0,u++}a=s}}function aR(e,t){var n,r,o,i,a,s,l,u,c,d,p,f=1,h=e,m=h.d,g=h.constructor,v=g.rounding,y=g.precision;if(h.s<0||!m||!m[0]||!h.e&&1==m[0]&&1==m.length)return new g(m&&!m[0]?-1/0:1!=h.s?NaN:m?0:h);if(null==t?(i8=!1,c=y):c=t,g.precision=c+=10,r=(n=ah(m)).charAt(0),!(15e14>Math.abs(i=h.e)))return u=aA(g,c+2,y).times(i+""),h=aR(new g(r+"."+n.slice(1)),c-10).plus(u),g.precision=y,null==t?ax(h,y,v,i8=!0):h;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=ah((h=h.times(e)).d)).charAt(0),f++;for(i=h.e,r>1?(h=new g("0."+n),i++):h=new g(r+"."+n.slice(1)),d=h,l=a=h=ay(h.minus(1),h.plus(1),c,1),p=ax(h.times(h),c,1),o=3;;){if(a=ax(a.times(p),c,1),ah((u=l.plus(ay(a,new g(o),c,1))).d).slice(0,c)===ah(l.d).slice(0,c)){if(l=l.times(2),0!==i&&(l=l.plus(aA(g,c+2,y).times(i+""))),l=ay(l,new g(f),c,1),null!=t)return g.precision=y,l;if(!ag(l.d,c-10,v,s))return ax(l,g.precision=y,v,i8=!0);g.precision=c+=10,u=a=h=ay(d.minus(1),d.plus(1),c,1),p=ax(h.times(h),c,1),o=s=1}l=u,o+=2}}function aD(e){return String(e.s*e.s/0)}function aO(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);r++);for(o=t.length;48===t.charCodeAt(o-1);--o);if(t=t.slice(r,o)){if(o-=r,e.e=n=n-r-1,e.d=[],r=(n+1)%7,n<0&&(r+=7),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=7;r<o;)e.d.push(+t.slice(r,r+=7));r=7-(t=t.slice(r)).length}else r-=o;for(;r--;)t+="0";e.d.push(+t),i8&&(e.e>e.constructor.maxE?(e.d=null,e.e=NaN):e.e<e.constructor.minE&&(e.e=0,e.d=[0]))}else e.e=0,e.d=[0];return e}function aj(e,t,n,r,o){var i,a,s,l,u=e.precision,c=Math.ceil(u/7);for(i8=!1,l=n.times(n),s=new e(r);;){if(a=ay(s.times(l),new e(t++*t++),u,1),s=o?r.plus(a):r.minus(a),r=ay(a.times(l),new e(t++*t++),u,1),void 0!==(a=s.plus(r)).d[c]){for(i=c;a.d[i]===s.d[i]&&i--;);if(-1==i)break}i=s,s=r,r=a,a=i}return i8=!0,a.d.length=c+1,a}function aP(e,t){for(var n=e;--t;)n*=e;return n}function aN(e,t){var n,r=t.s<0,o=aC(e,e.precision,1),i=o.times(.5);if((t=t.abs()).lte(i))return i4=r?4:1,t;if((n=t.divToInt(o)).isZero())i4=r?3:2;else{if((t=t.minus(n.times(o))).lte(i))return i4=ak(n)?r?2:3:r?4:1,t;i4=ak(n)?r?1:4:r?3:2}return t.minus(o).abs()}function aF(e,t,n,r){var o,i,a,s,l,u,c,d,p,f=e.constructor,h=void 0!==n;if(h?(am(n,1,1e9),void 0===r?r=f.rounding:am(r,0,8)):(n=f.precision,r=f.rounding),e.isFinite()){for(a=(c=ab(e)).indexOf("."),h?(o=2,16==t?n=4*n-3:8==t&&(n=3*n-2)):o=t,a>=0&&(c=c.replace(".",""),(p=new f(1)).e=c.length-a,p.d=av(ab(p),10,o),p.e=p.d.length),i=l=(d=av(c,10,o)).length;0==d[--l];)d.pop();if(d[0]){if(a<0?i--:((e=new f(e)).d=d,e.e=i,d=(e=ay(e,p,n,r,0,o)).d,i=e.e,u=i5),a=d[n],s=o/2,u=u||void 0!==d[n+1],u=r<4?(void 0!==a||u)&&(0===r||r===(e.s<0?3:2)):a>s||a===s&&(4===r||u||6===r&&1&d[n-1]||r===(e.s<0?8:7)),d.length=n,u)for(;++d[--n]>o-1;)d[n]=0,n||(++i,d.unshift(1));for(l=d.length;!d[l-1];--l);for(a=0,c="";a<l;a++)c+=i3.charAt(d[a]);if(h){if(l>1)if(16==t||8==t){for(a=16==t?4:3,--l;l%a;l++)c+="0";for(l=(d=av(c,o,t)).length;!d[l-1];--l);for(a=1,c="1.";a<l;a++)c+=i3.charAt(d[a])}else c=c.charAt(0)+"."+c.slice(1);c=c+(i<0?"p":"p+")+i}else if(i<0){for(;++i;)c="0"+c;c="0."+c}else if(++i>l)for(i-=l;i--;)c+="0";else i<l&&(c=c.slice(0,i)+"."+c.slice(i))}else c=h?"0p+0":"0";c=(16==t?"0x":2==t?"0b":8==t?"0o":"")+c}else c=aD(e);return e.s<0?"-"+c:c}function a_(e,t){if(e.length>t)return e.length=t,!0}function aL(e){return new this(e).abs()}function az(e){return new this(e).acos()}function aB(e){return new this(e).acosh()}function aV(e,t){return new this(e).plus(t)}function a$(e){return new this(e).asin()}function aH(e){return new this(e).asinh()}function aW(e){return new this(e).atan()}function aU(e){return new this(e).atanh()}function aG(e,t){e=new this(e),t=new this(t);var n,r=this.precision,o=this.rounding,i=r+4;return e.s&&t.s?e.d||t.d?!t.d||e.isZero()?(n=t.s<0?aC(this,r,o):new this(0)).s=e.s:!e.d||t.isZero()?(n=aC(this,i,1).times(.5)).s=e.s:t.s<0?(this.precision=i,this.rounding=1,n=this.atan(ay(e,t,i,1)),t=aC(this,i,1),this.precision=r,this.rounding=o,n=e.s<0?n.minus(t):n.plus(t)):n=this.atan(ay(e,t,i,1)):(n=aC(this,i,1).times(t.s>0?.25:.75)).s=e.s:n=new this(NaN),n}function aq(e){return new this(e).cbrt()}function aY(e){return ax(e=new this(e),e.e+1,2)}function aZ(e,t,n){return new this(e).clamp(t,n)}function aX(e){if(!e||"object"!=typeof e)throw Error(ae+"Object expected");var t,n,r,o=!0===e.defaults,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-9e15,0,"toExpPos",0,9e15,"maxE",0,9e15,"minE",-9e15,0,"modulo",0,9];for(t=0;t<i.length;t+=3)if(n=i[t],o&&(this[n]=i7[n]),void 0!==(r=e[n]))if(ai(r)===r&&r>=i[t+1]&&r<=i[t+2])this[n]=r;else throw Error(at+n+": "+r);if(n="crypto",o&&(this[n]=i7[n]),void 0!==(r=e[n]))if(!0===r||!1===r||0===r||1===r)if(r)if("u">typeof crypto&&crypto&&(crypto.getRandomValues||crypto.randomBytes))this[n]=!0;else throw Error(ar);else this[n]=!1;else throw Error(at+n+": "+r);return this}function aK(e){return new this(e).cos()}function aQ(e){return new this(e).cosh()}function aJ(e,t){return new this(e).div(t)}function a0(e){return new this(e).exp()}function a1(e){return ax(e=new this(e),e.e+1,3)}function a2(){var e,t,n=new this(0);for(e=0,i8=!1;e<arguments.length;)if(t=new this(arguments[e++]),t.d)n.d&&(n=n.plus(t.times(t)));else{if(t.s)return i8=!0,new this(1/0);n=t}return i8=!0,n.sqrt()}function a5(e){return e instanceof sh||e&&e.toStringTag===ao||!1}function a4(e){return new this(e).ln()}function a3(e,t){return new this(e).log(t)}function a6(e){return new this(e).log(2)}function a9(e){return new this(e).log(10)}function a7(){return aI(this,arguments,-1)}function a8(){return aI(this,arguments,1)}function se(e,t){return new this(e).mod(t)}function st(e,t){return new this(e).mul(t)}function sn(e,t){return new this(e).pow(t)}function sr(e){var t,n,r,o,i=0,a=new this(1),s=[];if(void 0===e?e=this.precision:am(e,1,1e9),r=Math.ceil(e/7),this.crypto)if(crypto.getRandomValues)for(t=crypto.getRandomValues(new Uint32Array(r));i<r;)(o=t[i])>=429e7?t[i]=crypto.getRandomValues(new Uint32Array(1))[0]:s[i++]=o%1e7;else if(crypto.randomBytes){for(t=crypto.randomBytes(r*=4);i<r;)(o=t[i]+(t[i+1]<<8)+(t[i+2]<<16)+((127&t[i+3])<<24))>=214e7?crypto.randomBytes(4).copy(t,i):(s.push(o%1e7),i+=4);i=r/4}else throw Error(ar);else for(;i<r;)s[i++]=1e7*Math.random()|0;for(r=s[--i],e%=7,r&&e&&(o=aa(10,7-e),s[i]=(r/o|0)*o);0===s[i];i--)s.pop();if(i<0)n=0,s=[0];else{for(n=-1;0===s[0];n-=7)s.shift();for(r=1,o=s[0];o>=10;o/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function so(e){return ax(e=new this(e),e.e+1,this.rounding)}function si(e){return(e=new this(e)).d?e.d[0]?e.s:0*e.s:e.s||NaN}function sa(e){return new this(e).sin()}function ss(e){return new this(e).sinh()}function sl(e){return new this(e).sqrt()}function su(e,t){return new this(e).sub(t)}function sc(){var e=0,t=arguments,n=new this(t[0]);for(i8=!1;n.s&&++e<t.length;)n=n.plus(t[e]);return i8=!0,ax(n,this.precision,this.rounding)}function sd(e){return new this(e).tan()}function sp(e){return new this(e).tanh()}function sf(e){return ax(e=new this(e),e.e+1,1)}af[Symbol.for("nodejs.util.inspect.custom")]=af.toString,af[Symbol.toStringTag]="Decimal";var sh=af.constructor=function e(t){var n,r,o;function i(e){var t,n,r;if(!(this instanceof i))return new i(e);if(this.constructor=i,a5(e)){this.s=e.s,i8?!e.d||e.e>i.maxE?(this.e=NaN,this.d=null):e.e<i.minE?(this.e=0,this.d=[0]):(this.e=e.e,this.d=e.d.slice()):(this.e=e.e,this.d=e.d?e.d.slice():e.d);return}if("number"==(r=typeof e)){if(0===e){this.s=1/e<0?-1:1,this.e=0,this.d=[0];return}if(e<0?(e=-e,this.s=-1):this.s=1,e===~~e&&e<1e7){for(t=0,n=e;n>=10;n/=10)t++;i8?t>i.maxE?(this.e=NaN,this.d=null):t<i.minE?(this.e=0,this.d=[0]):(this.e=t,this.d=[e]):(this.e=t,this.d=[e]);return}if(0*e!=0){e||(this.s=NaN),this.e=NaN,this.d=null;return}return aO(this,e.toString())}if("string"===r)return 45===(n=e.charCodeAt(0))?(e=e.slice(1),this.s=-1):(43===n&&(e=e.slice(1)),this.s=1),ac.test(e)?aO(this,e):function(e,t){var n,r,o,i,a,s,l,u,c;if(t.indexOf("_")>-1){if(t=t.replace(/(\d)_(?=\d)/g,"$1"),ac.test(t))return aO(e,t)}else if("Infinity"===t||"NaN"===t)return+t||(e.s=NaN),e.e=NaN,e.d=null,e;if(al.test(t))n=16,t=t.toLowerCase();else if(as.test(t))n=2;else if(au.test(t))n=8;else throw Error(at+t);for((i=t.search(/p/i))>0?(l=+t.slice(i+1),t=t.substring(2,i)):t=t.slice(2),a=(i=t.indexOf("."))>=0,r=e.constructor,a&&(i=(s=(t=t.replace(".","")).length)-i,o=aT(r,new r(n),i,2*i)),i=c=(u=av(t,n,1e7)).length-1;0===u[i];--i)u.pop();return i<0?new r(0*e.s):(e.e=aw(u,c),e.d=u,i8=!1,a&&(e=ay(e,o,4*s)),l&&(e=e.times(54>Math.abs(l)?aa(2,l):sh.pow(2,l))),i8=!0,e)}(this,e);if("bigint"===r)return e<0?(e=-e,this.s=-1):this.s=1,aO(this,e.toString());throw Error(at+e)}if(i.prototype=af,i.ROUND_UP=0,i.ROUND_DOWN=1,i.ROUND_CEIL=2,i.ROUND_FLOOR=3,i.ROUND_HALF_UP=4,i.ROUND_HALF_DOWN=5,i.ROUND_HALF_EVEN=6,i.ROUND_HALF_CEIL=7,i.ROUND_HALF_FLOOR=8,i.EUCLID=9,i.config=i.set=aX,i.clone=e,i.isDecimal=a5,i.abs=aL,i.acos=az,i.acosh=aB,i.add=aV,i.asin=a$,i.asinh=aH,i.atan=aW,i.atanh=aU,i.atan2=aG,i.cbrt=aq,i.ceil=aY,i.clamp=aZ,i.cos=aK,i.cosh=aQ,i.div=aJ,i.exp=a0,i.floor=a1,i.hypot=a2,i.ln=a4,i.log=a3,i.log10=a9,i.log2=a6,i.max=a7,i.min=a8,i.mod=se,i.mul=st,i.pow=sn,i.random=sr,i.round=so,i.sign=si,i.sin=sa,i.sinh=ss,i.sqrt=sl,i.sub=su,i.sum=sc,i.tan=sd,i.tanh=sp,i.trunc=sf,void 0===t&&(t={}),t&&!0!==t.defaults)for(n=0,o=["precision","rounding","toExpNeg","toExpPos","maxE","minE","modulo","crypto"];n<o.length;)t.hasOwnProperty(r=o[n++])||(t[r]=this[r]);return i.config(t),i}(i7);i6=new sh(i6),i9=new sh(i9);var sm={createBigNumberClass:is("BigNumber",["?on","config"],e=>{var{on:t,config:n}=e,r=sh.clone({precision:n.precision,modulo:sh.EUCLID});return r.prototype=Object.create(r.prototype),r.prototype.type="BigNumber",r.prototype.isBigNumber=!0,r.prototype.toJSON=function(){return{mathjs:"BigNumber",value:this.toString()}},r.fromJSON=function(e){return new r(e.value)},t&&t("config",function(e,t){e.precision!==t.precision&&r.config({precision:e.precision})}),r},{isClass:!0})},sg={createMatrixClass:is("Matrix",[],()=>{function e(){if(!(this instanceof e))throw SyntaxError("Constructor must be called with the new operator")}return e.prototype.type="Matrix",e.prototype.isMatrix=!0,e.prototype.storage=function(){throw Error("Cannot invoke storage on a Matrix interface")},e.prototype.datatype=function(){throw Error("Cannot invoke datatype on a Matrix interface")},e.prototype.create=function(e,t){throw Error("Cannot invoke create on a Matrix interface")},e.prototype.subset=function(e,t,n){throw Error("Cannot invoke subset on a Matrix interface")},e.prototype.get=function(e){throw Error("Cannot invoke get on a Matrix interface")},e.prototype.set=function(e,t,n){throw Error("Cannot invoke set on a Matrix interface")},e.prototype.resize=function(e,t){throw Error("Cannot invoke resize on a Matrix interface")},e.prototype.reshape=function(e,t){throw Error("Cannot invoke reshape on a Matrix interface")},e.prototype.clone=function(){throw Error("Cannot invoke clone on a Matrix interface")},e.prototype.size=function(){throw Error("Cannot invoke size on a Matrix interface")},e.prototype.map=function(e,t){throw Error("Cannot invoke map on a Matrix interface")},e.prototype.forEach=function(e){throw Error("Cannot invoke forEach on a Matrix interface")},e.prototype[Symbol.iterator]=function(){throw Error("Cannot iterate a Matrix interface")},e.prototype.toArray=function(){throw Error("Cannot invoke toArray on a Matrix interface")},e.prototype.valueOf=function(){throw Error("Cannot invoke valueOf on a Matrix interface")},e.prototype.format=function(e){throw Error("Cannot invoke format on a Matrix interface")},e.prototype.toString=function(){throw Error("Cannot invoke toString on a Matrix interface")},e},{isClass:!0})},sv={MatrixDependencies:sg,createDenseMatrixClass:is("DenseMatrix",["Matrix"],e=>{var{Matrix:t}=e;function n(e,t){if(!(this instanceof n))throw SyntaxError("Constructor must be called with the new operator");if(t&&!oE(t))throw Error("Invalid datatype: "+t);if(oD(e))"DenseMatrix"===e.type?(this._data=o8(e._data),this._size=o8(e._size)):(this._data=e.toArray(),this._size=e.size()),this._datatype=t||e._datatype;else if(e&&oR(e.data)&&oR(e.size))this._data=e.data,this._size=e.size,ik(this._data,this._size),this._datatype=t||e.datatype;else if(oR(e))this._data=function e(t){for(var n=0,r=t.length;n<r;n++){var o=t[n];oR(o)?t[n]=e(o):o&&!0===o.isMatrix&&(t[n]=e(o.valueOf()))}return t}(e),this._size=iT(this._data),ik(this._data,this._size),this._datatype=t;else if(e)throw TypeError("Unsupported type of data ("+o7(e)+")");else this._data=[],this._size=[0],this._datatype=t}function r(e,t,n){if(0===t.length){for(var r=e._data;oR(r);)r=r[0];return r}return e._size=t.slice(0),e._data=iE(e._data,e._size,n),e}function o(e,t,n){for(var o=e._size.slice(0),i=!1;o.length<t.length;)o.push(0),i=!0;for(var a=0,s=t.length;a<s;a++)t[a]>o[a]&&(o[a]=t[a],i=!0);i&&r(e,o,n)}return n.prototype=new t,n.prototype.createDenseMatrix=function(e,t){return new n(e,t)},n.prototype.type="DenseMatrix",n.prototype.isDenseMatrix=!0,n.prototype.getDataType=function(){return ij(this._data,o7)},n.prototype.storage=function(){return"dense"},n.prototype.datatype=function(){return this._datatype},n.prototype.create=function(e,t){return new n(e,t)},n.prototype.subset=function(e,t,r){switch(arguments.length){case 1:return function(e,t){if(!oF(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var r=t.size();if(r.length!==e._size.length)throw new iS(r.length,e._size.length);for(var o=t.min(),i=t.max(),a=0,s=e._size.length;a<s;a++)iI(o[a],e._size[a]),iI(i[a],e._size[a]);return new n(function e(t,n,r,o){var i=o===r-1,a=n.dimension(o);return i?a.map(function(e){return iI(e,t.length),t[e]}).valueOf():a.map(function(i){return iI(i,t.length),e(t[i],n,r,o+1)}).valueOf()}(e._data,t,r.length,0),e._datatype)}(this,e);case 2:case 3:return function(e,t,n,r){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var i,a=t.size(),s=t.isScalar();if(oD(n)?(i=n.size(),n=n.valueOf()):i=iT(n),s){if(0!==i.length)throw TypeError("Scalar expected");e.set(t.min(),n,r)}else{if(a.length<e._size.length)throw new iS(a.length,e._size.length,"<");if(i.length<a.length){for(var l=0,u=0;1===a[l]&&1===i[l];)l++;for(;1===a[l];)u++,l++;n=iO(n,a.length,u,i)}if(!it(a,i))throw new iS(a,i,">");o(e,t.max().map(function(e){return e+1}),r);var c=a.length;!function e(t,n,r,o,i){var a=i===o-1,s=n.dimension(i);a?s.forEach(function(e,n){iI(e),t[e]=r[n[0]]}):s.forEach(function(a,s){iI(a),e(t[a],n,r[s[0]],o,i+1)})}(e._data,t,n,c,0)}return e}(this,e,t,r);default:throw SyntaxError("Wrong number of arguments")}},n.prototype.get=function(e){if(!oR(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new iS(e.length,this._size.length);for(var t=0;t<e.length;t++)iI(e[t],this._size[t]);for(var n=this._data,r=0,o=e.length;r<o;r++){var i=e[r];iI(i,n.length),n=n[i]}return n},n.prototype.set=function(e,t,n){if(!oR(e))throw TypeError("Array expected");if(e.length<this._size.length)throw new iS(e.length,this._size.length,"<");o(this,e.map(function(e){return e+1}),n);var r,i,a,s=this._data;for(r=0,i=e.length-1;r<i;r++)iI(a=e[r],s.length),s=s[a];return iI(a=e[e.length-1],s.length),s[a]=t,this},n.prototype.resize=function(e,t,n){if(!oO(e))throw TypeError("Array or Matrix expected");var o=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);return r(n?this.clone():this,o,t)},n.prototype.reshape=function(e,t){var n=t?this.clone():this;n._data=function(e,t){var n=function(e){if(!Array.isArray(e))return e;var t=[];return e.forEach(function e(n){Array.isArray(n)?n.forEach(e):t.push(n)}),t}(e),r=n.length;if(!Array.isArray(e)||!Array.isArray(t))throw TypeError("Array expected");if(0===t.length)throw new iS(0,r,"!=");var o=iD(t=iR(t,r));if(r!==o)throw new iS(o,r,"!=");try{return function(e,t){for(var n,r=e,o=t.length-1;o>0;o--){var i=t[o];n=[];for(var a=r.length/i,s=0;s<a;s++)n.push(r.slice(s*i,(s+1)*i));r=n}return r}(n,t)}catch(e){if(e instanceof iS)throw new iS(o,r,"!=");throw e}}(n._data,e);var r=n._size.reduce((e,t)=>e*t);return n._size=iR(e,r),n},n.prototype.clone=function(){return new n({data:o8(this._data),size:o8(this._size),datatype:this._datatype})},n.prototype.size=function(){return this._size.slice(0)},n.prototype.map=function(e){var t=this,r=function n(r,o){return oR(r)?r.map(function(e,t){return n(e,o.concat(t))}):e(r,o,t)}(this._data,[]),o=void 0!==this._datatype?ij(r,o7):void 0;return new n(r,o)},n.prototype.forEach=function(e){var t=this;!function n(r,o){oR(r)?r.forEach(function(e,t){n(e,o.concat(t))}):e(r,o,t)}(this._data,[])},n.prototype[Symbol.iterator]=function*(){var e=function* e(t,n){if(oR(t))for(var r=0;r<t.length;r++)yield*e(t[r],n.concat(r));else yield{value:t,index:n}};yield*e(this._data,[])},n.prototype.rows=function(){var e=[];if(2!==this.size().length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var t of this._data)e.push(new n([t],this._datatype));return e},n.prototype.columns=function(){var e=this,t=[],r=this.size();if(2!==r.length)throw TypeError("Rows can only be returned for a 2D matrix.");for(var o=this._data,i=function(r){var i=o.map(e=>[e[r]]);t.push(new n(i,e._datatype))},a=0;a<r[1];a++)i(a);return t},n.prototype.toArray=function(){return o8(this._data)},n.prototype.valueOf=function(){return this._data},n.prototype.format=function(e){return iC(this._data,e)},n.prototype.toString=function(){return iC(this._data)},n.prototype.toJSON=function(){return{mathjs:"DenseMatrix",data:this._data,size:this._size,datatype:this._datatype}},n.prototype.diagonal=function(e){if(e){if(oM(e)&&(e=e.toNumber()),!oS(e)||!ic(e))throw TypeError("The parameter k must be an integer number")}else e=0;for(var t=e>0?e:0,r=e<0?-e:0,o=Math.min(this._size[0]-r,this._size[1]-t),i=[],a=0;a<o;a++)i[a]=this._data[a+r][a+t];return new n({data:i,size:[o],datatype:this._datatype})},n.diagonal=function(e,t,r,o){if(!oR(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if(oM(e)&&(e=e.toNumber()),!oS(e)||!ic(e)||e<1)throw Error("Size values must be positive integers");return e}),r){if(oM(r)&&(r=r.toNumber()),!oS(r)||!ic(r))throw TypeError("The parameter k must be an integer number")}else r=0;var i,a=r>0?r:0,s=r<0?-r:0,l=e[0],u=e[1],c=Math.min(l-s,u-a);if(oR(t)){if(t.length!==c)throw Error("Invalid value array length");i=function(e){return t[e]}}else if(oD(t)){var d=t.size();if(1!==d.length||d[0]!==c)throw Error("Invalid matrix length");i=function(e){return t.get([e])}}else i=function(){return t};o||(o=oM(i(0))?i(0).mul(0):0);var p=[];if(e.length>0){p=iE(p,e,o);for(var f=0;f<c;f++)p[f+s][f+a]=i(f)}return new n({data:p,size:[l,u]})},n.fromJSON=function(e){return new n(e)},n.prototype.swapRows=function(e,t){if(!oS(e)||!ic(e)||!oS(t)||!ic(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return iI(e,this._size[0]),iI(t,this._size[0]),n._swapRows(e,t,this._data),this},n._swapRows=function(e,t,n){var r=n[e];n[e]=n[t],n[t]=r},n},{isClass:!0})};let sy=Math.cosh||function(e){return 1e-9>Math.abs(e)?1-e:(Math.exp(e)+Math.exp(-e))*.5},sx=Math.sinh||function(e){return 1e-9>Math.abs(e)?e:(Math.exp(e)-Math.exp(-e))*.5},sb=function(e,t){return((e=Math.abs(e))<(t=Math.abs(t))&&([e,t]=[t,e]),e<1e8)?Math.sqrt(e*e+t*t):(t/=e,e*Math.sqrt(1+t*t))},sw=function(){throw SyntaxError("Invalid Param")};function sA(e,t){let n=Math.abs(e),r=Math.abs(t);return 0===e?Math.log(r):0===t?Math.log(n):n<3e3&&r<3e3?.5*Math.log(e*e+t*t):.5*Math.log((e*=.5)*e+(t*=.5)*t)+Math.LN2}let sC={re:0,im:0},sS=function(e,t){if(null==e)sC.re=sC.im=0;else if(void 0!==t)sC.re=e,sC.im=t;else switch(typeof e){case"object":if("im"in e&&"re"in e)sC.re=e.re,sC.im=e.im;else if("abs"in e&&"arg"in e){if(!isFinite(e.abs)&&isFinite(e.arg))return sM.INFINITY;sC.re=e.abs*Math.cos(e.arg),sC.im=e.abs*Math.sin(e.arg)}else if("r"in e&&"phi"in e){if(!isFinite(e.r)&&isFinite(e.phi))return sM.INFINITY;sC.re=e.r*Math.cos(e.phi),sC.im=e.r*Math.sin(e.phi)}else 2===e.length?(sC.re=e[0],sC.im=e[1]):sw();break;case"string":sC.im=sC.re=0;let n=e.replace(/_/g,"").match(/\d+\.?\d*e[+-]?\d+|\d+\.?\d*|\.\d+|./g),r=1,o=0;null===n&&sw();for(let e=0;e<n.length;e++){let t=n[e];" "===t||" "===t||"\n"===t||("+"===t?r++:"-"===t?o++:("i"===t||"I"===t?(r+o===0&&sw()," "===n[e+1]||isNaN(n[e+1])?sC.im+=parseFloat((o%2?"-":"")+"1"):(sC.im+=parseFloat((o%2?"-":"")+n[e+1]),e++)):((r+o===0||isNaN(t))&&sw(),"i"===n[e+1]||"I"===n[e+1]?(sC.im+=parseFloat((o%2?"-":"")+t),e++):sC.re+=parseFloat((o%2?"-":"")+t)),r=o=0))}r+o>0&&sw();break;case"number":sC.im=0,sC.re=e;break;default:sw()}return isNaN(sC.re)||isNaN(sC.im),sC};function sM(e,t){if(!(this instanceof sM))return new sM(e,t);let n=sS(e,t);this.re=n.re,this.im=n.im}sM.prototype={re:0,im:0,sign:function(){let e=sb(this.re,this.im);return new sM(this.re/e,this.im/e)},add:function(e,t){let n=sS(e,t),r=this.isInfinite(),o=!(isFinite(n.re)&&isFinite(n.im));return r||o?r&&o?sM.NAN:sM.INFINITY:new sM(this.re+n.re,this.im+n.im)},sub:function(e,t){let n=sS(e,t),r=this.isInfinite(),o=!(isFinite(n.re)&&isFinite(n.im));return r||o?r&&o?sM.NAN:sM.INFINITY:new sM(this.re-n.re,this.im-n.im)},mul:function(e,t){let n=sS(e,t),r=this.isInfinite(),o=!(isFinite(n.re)&&isFinite(n.im)),i=0===this.re&&0===this.im,a=0===n.re&&0===n.im;return r&&a||o&&i?sM.NAN:r||o?sM.INFINITY:0===n.im&&0===this.im?new sM(this.re*n.re,0):new sM(this.re*n.re-this.im*n.im,this.re*n.im+this.im*n.re)},div:function(e,t){let n=sS(e,t),r=this.isInfinite(),o=!(isFinite(n.re)&&isFinite(n.im)),i=0===this.re&&0===this.im,a=0===n.re&&0===n.im;if(i&&a||r&&o)return sM.NAN;if(a||r)return sM.INFINITY;if(i||o)return sM.ZERO;if(0===n.im)return new sM(this.re/n.re,this.im/n.re);if(Math.abs(n.re)<Math.abs(n.im)){let e=n.re/n.im,t=n.re*e+n.im;return new sM((this.re*e+this.im)/t,(this.im*e-this.re)/t)}{let e=n.im/n.re,t=n.im*e+n.re;return new sM((this.re+this.im*e)/t,(this.im-this.re*e)/t)}},pow:function(e,t){let n=sS(e,t),r=0===this.re&&0===this.im;if(0===n.re&&0===n.im)return sM.ONE;if(0===n.im){if(0===this.im&&this.re>0)return new sM(Math.pow(this.re,n.re),0);else if(0===this.re)switch((n.re%4+4)%4){case 0:return new sM(Math.pow(this.im,n.re),0);case 1:return new sM(0,Math.pow(this.im,n.re));case 2:return new sM(-Math.pow(this.im,n.re),0);case 3:return new sM(0,-Math.pow(this.im,n.re))}}if(r&&n.re>0)return sM.ZERO;let o=Math.atan2(this.im,this.re),i=sA(this.re,this.im),a=Math.exp(n.re*i-n.im*o),s=n.im*i+n.re*o;return new sM(a*Math.cos(s),a*Math.sin(s))},sqrt:function(){let e=this.re,t=this.im;if(0===t)if(e>=0)return new sM(Math.sqrt(e),0);else return new sM(0,Math.sqrt(-e));let n=Math.sqrt(.5*(sb(e,t)+Math.abs(e))),r=Math.abs(t)/(2*n);return e>=0?new sM(n,t<0?-r:r):new sM(r,t<0?-n:n)},exp:function(){let e=Math.exp(this.re);return 0===this.im?new sM(e,0):new sM(e*Math.cos(this.im),e*Math.sin(this.im))},expm1:function(){let e,t=this.re,n=this.im;return new sM(Math.expm1(t)*Math.cos(n)+-2*(e=Math.sin(.5*n))*e,Math.exp(t)*Math.sin(n))},log:function(){let e=this.re,t=this.im;return 0===t&&e>0?new sM(Math.log(e),0):new sM(sA(e,t),Math.atan2(t,e))},abs:function(){return sb(this.re,this.im)},arg:function(){return Math.atan2(this.im,this.re)},sin:function(){let e=this.re,t=this.im;return new sM(Math.sin(e)*sy(t),Math.cos(e)*sx(t))},cos:function(){let e=this.re,t=this.im;return new sM(Math.cos(e)*sy(t),-Math.sin(e)*sx(t))},tan:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)+sy(t);return new sM(Math.sin(e)/n,sx(t)/n)},cot:function(){let e=2*this.re,t=2*this.im,n=Math.cos(e)-sy(t);return new sM(-Math.sin(e)/n,sx(t)/n)},sec:function(){let e=this.re,t=this.im,n=.5*sy(2*t)+.5*Math.cos(2*e);return new sM(Math.cos(e)*sy(t)/n,Math.sin(e)*sx(t)/n)},csc:function(){let e=this.re,t=this.im,n=.5*sy(2*t)-.5*Math.cos(2*e);return new sM(Math.sin(e)*sy(t)/n,-Math.cos(e)*sx(t)/n)},asin:function(){let e=this.re,t=this.im,n=new sM(t*t-e*e+1,-2*e*t).sqrt(),r=new sM(n.re-t,n.im+e).log();return new sM(r.im,-r.re)},acos:function(){let e=this.re,t=this.im,n=new sM(t*t-e*e+1,-2*e*t).sqrt(),r=new sM(n.re-t,n.im+e).log();return new sM(Math.PI/2-r.im,r.re)},atan:function(){let e=this.re,t=this.im;if(0===e){if(1===t)return new sM(0,1/0);if(-1===t)return new sM(0,-1/0)}let n=e*e+(1-t)*(1-t),r=new sM((1-t*t-e*e)/n,-2*e/n).log();return new sM(-.5*r.im,.5*r.re)},acot:function(){let e=this.re,t=this.im;if(0===t)return new sM(Math.atan2(1,e),0);let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).atan():new sM(0!==e?e/0:0,0!==t?-t/0:0).atan()},asec:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new sM(0,1/0);let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).acos():new sM(0!==e?e/0:0,0!==t?-t/0:0).acos()},acsc:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new sM(Math.PI/2,1/0);let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).asin():new sM(0!==e?e/0:0,0!==t?-t/0:0).asin()},sinh:function(){let e=this.re,t=this.im;return new sM(sx(e)*Math.cos(t),sy(e)*Math.sin(t))},cosh:function(){let e=this.re,t=this.im;return new sM(sy(e)*Math.cos(t),sx(e)*Math.sin(t))},tanh:function(){let e=2*this.re,t=2*this.im,n=sy(e)+Math.cos(t);return new sM(sx(e)/n,Math.sin(t)/n)},coth:function(){let e=2*this.re,t=2*this.im,n=sy(e)-Math.cos(t);return new sM(sx(e)/n,-Math.sin(t)/n)},csch:function(){let e=this.re,t=this.im,n=Math.cos(2*t)-sy(2*e);return new sM(-2*sx(e)*Math.cos(t)/n,2*sy(e)*Math.sin(t)/n)},sech:function(){let e=this.re,t=this.im,n=Math.cos(2*t)+sy(2*e);return new sM(2*sy(e)*Math.cos(t)/n,-2*sx(e)*Math.sin(t)/n)},asinh:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new sM(0,0);let t=Math.abs(e),n=Math.log(t+Math.sqrt(t*t+1));return new sM(e<0?-n:n,0)}let n=new sM(e*e-t*t+1,2*e*t).sqrt();return new sM(e+n.re,t+n.im).log()},acosh:function(){let e=this.re,t=this.im;if(0===t){if(e>1)return new sM(Math.log(e+Math.sqrt(e-1)*Math.sqrt(e+1)),0);if(e<-1){let t=Math.sqrt(e*e-1);return new sM(Math.log(-e+t),Math.PI)}return new sM(0,Math.acos(e))}let n=new sM(e-1,t).sqrt(),r=new sM(e+1,t).sqrt();return new sM(e+n.re*r.re-n.im*r.im,t+n.re*r.im+n.im*r.re).log()},atanh:function(){let e=this.re,t=this.im;if(0===t)return 0===e?new sM(0,0):1===e?new sM(1/0,0):-1===e?new sM(-1/0,0):-1<e&&e<1?new sM(.5*Math.log((1+e)/(1-e)),0):e>1?new sM(.5*Math.log((e+1)/(e-1)),-Math.PI/2):new sM(.5*Math.log(-((1+e)/(1-e))),Math.PI/2);let n=1-e,r=1+e,o=n*n+t*t;if(0===o)return new sM(-1!==e?e/0:0,0!==t?t/0:0);let i=(r*n-t*t)/o,a=(t*n+r*t)/o;return new sM(sA(i,a)/2,Math.atan2(a,i)/2)},acoth:function(){let e=this.re,t=this.im;if(0===e&&0===t)return new sM(0,Math.PI/2);let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).atanh():new sM(0!==e?e/0:0,0!==t?-t/0:0).atanh()},acsch:function(){let e=this.re,t=this.im;if(0===t){if(0===e)return new sM(1/0,0);let t=1/e;return new sM(Math.log(t+Math.sqrt(t*t+1)),0)}let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).asinh():new sM(0!==e?e/0:0,0!==t?-t/0:0).asinh()},asech:function(){let e=this.re,t=this.im;if(this.isZero())return sM.INFINITY;let n=e*e+t*t;return 0!==n?new sM(e/n,-t/n).acosh():new sM(0!==e?e/0:0,0!==t?-t/0:0).acosh()},inverse:function(){if(this.isZero())return sM.INFINITY;if(this.isInfinite())return sM.ZERO;let e=this.re,t=this.im,n=e*e+t*t;return new sM(e/n,-t/n)},conjugate:function(){return new sM(this.re,-this.im)},neg:function(){return new sM(-this.re,-this.im)},ceil:function(e){return e=Math.pow(10,e||0),new sM(Math.ceil(this.re*e)/e,Math.ceil(this.im*e)/e)},floor:function(e){return e=Math.pow(10,e||0),new sM(Math.floor(this.re*e)/e,Math.floor(this.im*e)/e)},round:function(e){return e=Math.pow(10,e||0),new sM(Math.round(this.re*e)/e,Math.round(this.im*e)/e)},equals:function(e,t){let n=sS(e,t);return Math.abs(n.re-this.re)<=sM.EPSILON&&Math.abs(n.im-this.im)<=sM.EPSILON},clone:function(){return new sM(this.re,this.im)},toString:function(){let e=this.re,t=this.im,n="";return this.isNaN()?"NaN":this.isInfinite()?"Infinity":(Math.abs(e)<sM.EPSILON&&(e=0),Math.abs(t)<sM.EPSILON&&(t=0),0===t)?n+e:(0!==e?(n+=e,n+=" ",t<0?(t=-t,n+="-"):n+="+",n+=" "):t<0&&(t=-t,n+="-"),1!==t&&(n+=t),n+"i")},toVector:function(){return[this.re,this.im]},valueOf:function(){return 0===this.im?this.re:null},isNaN:function(){return isNaN(this.re)||isNaN(this.im)},isZero:function(){return 0===this.im&&0===this.re},isFinite:function(){return isFinite(this.re)&&isFinite(this.im)},isInfinite:function(){return!this.isFinite()}},sM.ZERO=new sM(0,0),sM.ONE=new sM(1,0),sM.I=new sM(0,1),sM.PI=new sM(Math.PI,0),sM.E=new sM(Math.E,0),sM.INFINITY=new sM(1/0,1/0),sM.NAN=new sM(NaN,NaN),sM.EPSILON=1e-15;var sT=is("Complex",[],()=>(sM.prototype.type="Complex",sM.prototype.isComplex=!0,sM.prototype.toJSON=function(){return{mathjs:"Complex",re:this.re,im:this.im}},sM.prototype.toPolar=function(){return{r:this.abs(),phi:this.arg()}},sM.prototype.format=function(e){var t=this.im,n=this.re,r=ip(this.re,e),o=ip(this.im,e),i=oS(e)?e:e?e.precision:null;if(null!==i){var a=Math.pow(10,-i);Math.abs(n/t)<a&&(n=0),Math.abs(t/n)<a&&(t=0)}return 0===t?r:0===n?1===t?"i":-1===t?"-i":o+"i":t<0?-1===t?r+" - i":r+" - "+o.substring(1)+"i":1===t?r+" + i":r+" + "+o+"i"},sM.fromPolar=function(e){switch(arguments.length){case 1:var t=arguments[0];if("object"==typeof t)return sM(t);throw TypeError("Input has to be an object with r and phi keys.");case 2:var n=arguments[0],r=arguments[1];if(oS(n)){if(oI(r)&&r.hasBase("ANGLE")&&(r=r.toNumber("rad")),oS(r))return new sM({r:n,phi:r});throw TypeError("Phi is not a number nor an angle unit.")}throw TypeError("Radius r is not a number.");default:throw SyntaxError("Wrong number of arguments in function fromPolar")}},sM.prototype.valueOf=sM.prototype.toString,sM.fromJSON=function(e){return new sM(e)},sM.compare=function(e,t){return e.re>t.re?1:e.re<t.re?-1:e.im>t.im?1:e.im<t.im?-1:0},sM),{isClass:!0}),sk={s:1,n:0,d:1};function sI(e,t){if(isNaN(e=parseInt(e,10)))throw sN();return e*t}function sE(e,t){if(0===t)throw sP();var n=Object.create(sj.prototype);n.s=e<0?-1:1;var r=sO(e=e<0?-e:e,t);return n.n=e/r,n.d=t/r,n}function sR(e){for(var t={},n=e,r=2,o=4;o<=n;){for(;n%r==0;)n/=r,t[r]=(t[r]||0)+1;o+=1+2*r++}return n!==e?n>1&&(t[n]=(t[n]||0)+1):t[e]=(t[e]||0)+1,t}var sD=function(e,t){var n,r=0,o=1,i=1,a=0,s=0,l=0,u=1,c=1,d=0,p=1,f=1,h=1;if(null==e);else if(void 0!==t){if(i=(r=e)*(o=t),r%1!=0||o%1!=0)throw sF()}else switch(typeof e){case"object":if("d"in e&&"n"in e)r=e.n,o=e.d,"s"in e&&(r*=e.s);else if(0 in e)r=e[0],1 in e&&(o=e[1]);else throw sN();i=r*o;break;case"number":if(e<0&&(i=e,e=-e),e%1==0)r=e;else if(e>0){for(e>=1&&(c=Math.pow(10,Math.floor(1+Math.log(e)/Math.LN10)),e/=c);p<=1e7&&h<=1e7;){if(e===(n=(d+f)/(p+h))){p+h<=1e7?(r=d+f,o=p+h):h>p?(r=f,o=h):(r=d,o=p);break}e>n?(d+=f,p+=h):(f+=d,h+=p),p>1e7?(r=f,o=h):(r=d,o=p)}r*=c}else(isNaN(e)||isNaN(t))&&(o=r=NaN);break;case"string":if(null===(p=e.match(/\d+|./g)))throw sN();if("-"===p[d]?(i=-1,d++):"+"===p[d]&&d++,p.length===d+1?s=sI(p[d++],i):"."===p[d+1]||"."===p[d]?("."!==p[d]&&(a=sI(p[d++],i)),(++d+1===p.length||"("===p[d+1]&&")"===p[d+3]||"'"===p[d+1]&&"'"===p[d+3])&&(s=sI(p[d],i),u=Math.pow(10,p[d].length),d++),("("===p[d]&&")"===p[d+2]||"'"===p[d]&&"'"===p[d+2])&&(l=sI(p[d+1],i),c=Math.pow(10,p[d+1].length)-1,d+=3)):"/"===p[d+1]||":"===p[d+1]?(s=sI(p[d],i),u=sI(p[d+2],1),d+=3):"/"===p[d+3]&&" "===p[d+1]&&(a=sI(p[d],i),s=sI(p[d+2],i),u=sI(p[d+4],1),d+=5),p.length<=d){i=r=l+(o=u*c)*a+c*s;break}default:throw sN()}if(0===o)throw sP();sk.s=i<0?-1:1,sk.n=Math.abs(r),sk.d=Math.abs(o)};function sO(e,t){if(!e)return t;if(!t)return e;for(;;){if(!(e%=t))return t;if(!(t%=e))return e}}function sj(e,t){if(sD(e,t),!(this instanceof sj))return sE(sk.s*sk.n,sk.d);e=sO(sk.d,sk.n),this.s=sk.s,this.n=sk.n/e,this.d=sk.d/e}var sP=function(){return Error("Division by Zero")},sN=function(){return Error("Invalid argument")},sF=function(){return Error("Parameters must be integer")};sj.prototype={s:1,n:0,d:1,abs:function(){return sE(this.n,this.d)},neg:function(){return sE(-this.s*this.n,this.d)},add:function(e,t){return sD(e,t),sE(this.s*this.n*sk.d+sk.s*this.d*sk.n,this.d*sk.d)},sub:function(e,t){return sD(e,t),sE(this.s*this.n*sk.d-sk.s*this.d*sk.n,this.d*sk.d)},mul:function(e,t){return sD(e,t),sE(this.s*sk.s*this.n*sk.n,this.d*sk.d)},div:function(e,t){return sD(e,t),sE(this.s*sk.s*this.n*sk.d,this.d*sk.n)},clone:function(){return sE(this.s*this.n,this.d)},mod:function(e,t){if(isNaN(this.n)||isNaN(this.d))return new sj(NaN);if(void 0===e)return sE(this.s*this.n%this.d,1);if(sD(e,t),0===sk.n&&0===this.d)throw sP();return sE(this.s*(sk.d*this.n)%(sk.n*this.d),sk.d*this.d)},gcd:function(e,t){return sD(e,t),sE(sO(sk.n,this.n)*sO(sk.d,this.d),sk.d*this.d)},lcm:function(e,t){return(sD(e,t),0===sk.n&&0===this.n)?sE(0,1):sE(sk.n*this.n,sO(sk.n,this.n)*sO(sk.d,this.d))},ceil:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new sj(NaN):sE(Math.ceil(e*this.s*this.n/this.d),e)},floor:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new sj(NaN):sE(Math.floor(e*this.s*this.n/this.d),e)},round:function(e){return(e=Math.pow(10,e||0),isNaN(this.n)||isNaN(this.d))?new sj(NaN):sE(Math.round(e*this.s*this.n/this.d),e)},roundTo:function(e,t){return sD(e,t),sE(this.s*Math.round(this.n*sk.d/(this.d*sk.n))*sk.n,sk.d)},inverse:function(){return sE(this.s*this.d,this.n)},pow:function(e,t){if(sD(e,t),1===sk.d)if(sk.s<0)return sE(Math.pow(this.s*this.d,sk.n),Math.pow(this.n,sk.n));else return sE(Math.pow(this.s*this.n,sk.n),Math.pow(this.d,sk.n));if(this.s<0)return null;var n=sR(this.n),r=sR(this.d),o=1,i=1;for(var a in n)if("1"!==a){if("0"===a){o=0;break}if(n[a]*=sk.n,n[a]%sk.d!=0)return null;n[a]/=sk.d,o*=Math.pow(a,n[a])}for(var a in r)if("1"!==a){if(r[a]*=sk.n,r[a]%sk.d!=0)return null;r[a]/=sk.d,i*=Math.pow(a,r[a])}return sk.s<0?sE(i,o):sE(o,i)},equals:function(e,t){return sD(e,t),this.s*this.n*sk.d==sk.s*sk.n*this.d},compare:function(e,t){sD(e,t);var n=this.s*this.n*sk.d-sk.s*sk.n*this.d;return(0<n)-(n<0)},simplify:function(e){if(isNaN(this.n)||isNaN(this.d))return this;e=e||.001;for(var t=this.abs(),n=t.toContinued(),r=1;r<n.length;r++){for(var o=sE(n[r-1],1),i=r-2;i>=0;i--)o=o.inverse().add(n[i]);if(Math.abs(o.sub(t).valueOf())<e)return o.mul(this.s)}return this},divisible:function(e,t){return sD(e,t),!(!(sk.n*this.d)||this.n*sk.d%(sk.n*this.d))},valueOf:function(){return this.s*this.n/this.d},toFraction:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,n+=" ",r%=o),n+=r,n+="/",n+=o),n},toLatex:function(e){var t,n="",r=this.n,o=this.d;return this.s<0&&(n+="-"),1===o?n+=r:(e&&(t=Math.floor(r/o))>0&&(n+=t,r%=o),n+="\\frac{",n+=r,n+="}{",n+=o,n+="}"),n},toContinued:function(){var e,t=this.n,n=this.d,r=[];if(isNaN(t)||isNaN(n))return r;do r.push(Math.floor(t/n)),e=t%n,t=n,n=e;while(1!==t);return r},toString:function(e){var t=this.n,n=this.d;if(isNaN(t)||isNaN(n))return"NaN";e=e||15;var r=function(e){for(;e%2==0;e/=2);for(;e%5==0;e/=5);if(1===e)return 0;for(var t=10%e,n=1;1!==t;n++)if(t=10*t%e,n>2e3)return 0;return n}(n),o=function(e,t){for(var n=1,r=function(e,t,n){for(var r=1;t>0;e=e*e%n,t>>=1)1&t&&(r=r*e%n);return r}(10,t,e),o=0;o<300;o++){if(n===r)return o;n=10*n%e,r=10*r%e}return 0}(n,r),i=this.s<0?"-":"";if(i+=t/n|0,t%=n,(t*=10)&&(i+="."),r){for(var a=o;a--;)i+=t/n|0,t%=n,t*=10;i+="(";for(var a=r;a--;)i+=t/n|0,t%=n,t*=10;i+=")"}else for(var a=e;t&&a--;)i+=t/n|0,t%=n,t*=10;return i}};var s_=is("Fraction",[],()=>(sj.prototype.type="Fraction",sj.prototype.isFraction=!0,sj.prototype.toJSON=function(){return{mathjs:"Fraction",n:this.s*this.n,d:this.d}},sj.fromJSON=function(e){return new sj(e)},sj),{isClass:!0}),sL=n(42915);function sz(e,t){return!!e&&"object"==typeof e&&(!!io(sV,t)||!(t in Object.prototype)&&!(t in Function.prototype))}function sB(e){return"object"==typeof e&&e&&e.constructor===Object}var sV={length:!0,name:!0},s$={toString:!0,valueOf:!0,toLocaleString:!0};class sH{constructor(e){this.wrappedObject=e}keys(){return Object.keys(this.wrappedObject)}get(e){var t,n,r=this.wrappedObject;if(sB(r)&&sz(r,e))return r[e];if("function"==typeof r[e]&&(t=r,n=e,!(null==t||"function"!=typeof t[n]||io(t,n)&&Object.getPrototypeOf&&n in Object.getPrototypeOf(t))&&(io(s$,n)||!(n in Object.prototype)&&!(n in Function.prototype))))throw Error('Cannot access method "'+e+'" as a property');throw Error('No access to property "'+e+'"')}set(e,t){return!function(e,t,n){if(sB(e)&&sz(e,t))return e[t]=n;throw Error('No access to property "'+t+'"')}(this.wrappedObject,e,t),this}has(e){return e in this.wrappedObject}}function sW(e){return!!e&&(e instanceof Map||e instanceof sH||"function"==typeof e.set&&"function"==typeof e.get&&"function"==typeof e.keys&&"function"==typeof e.has)}var sU=function(){return sU=sL.create,sL};function sG(e){throw Error("Cannot convert value ".concat(e," into a BigNumber: no class 'BigNumber' provided"))}function sq(e){throw Error("Cannot convert value ".concat(e," into a Complex number: no class 'Complex' provided"))}function sY(e){throw Error("Cannot convert value ".concat(e," into a Fraction, no class 'Fraction' provided."))}var sZ={BigNumberDependencies:sm,ComplexDependencies:{createComplexClass:sT},DenseMatrixDependencies:sv,FractionDependencies:{createFractionClass:s_},createTyped:is("typed",["?BigNumber","?Complex","?DenseMatrix","?Fraction"],function(e){var{BigNumber:t,Complex:n,DenseMatrix:r,Fraction:o}=e,i=sU();return i.types=[{name:"number",test:oS},{name:"Complex",test:oT},{name:"BigNumber",test:oM},{name:"Fraction",test:ok},{name:"Unit",test:oI},{name:"string",test:oE},{name:"Chain",test:o9},{name:"Array",test:oR},{name:"Matrix",test:oD},{name:"DenseMatrix",test:oj},{name:"SparseMatrix",test:oP},{name:"Range",test:oN},{name:"Index",test:oF},{name:"boolean",test:o_},{name:"ResultSet",test:oL},{name:"Help",test:oz},{name:"function",test:oB},{name:"Date",test:oV},{name:"RegExp",test:o$},{name:"null",test:oW},{name:"undefined",test:oU},{name:"AccessorNode",test:oG},{name:"ArrayNode",test:oq},{name:"AssignmentNode",test:oY},{name:"BlockNode",test:oZ},{name:"ConditionalNode",test:oX},{name:"ConstantNode",test:oK},{name:"FunctionNode",test:oJ},{name:"FunctionAssignmentNode",test:oQ},{name:"IndexNode",test:o0},{name:"Node",test:o1},{name:"ObjectNode",test:o2},{name:"OperatorNode",test:o5},{name:"ParenthesisNode",test:o4},{name:"RangeNode",test:o3},{name:"SymbolNode",test:o6},{name:"Map",test:sW},{name:"Object",test:oH}],i.conversions=[{from:"number",to:"BigNumber",convert:function(e){if(t||sG(e),e.toExponential().replace(/e.*$/,"").replace(/^0\.?0*|\./,"").length>15)throw TypeError("Cannot implicitly convert a number with >15 significant digits to BigNumber (value: "+e+"). Use function bignumber(x) to convert to BigNumber.");return new t(e)}},{from:"number",to:"Complex",convert:function(e){return n||sq(e),new n(e,0)}},{from:"number",to:"string",convert:function(e){return e+""}},{from:"BigNumber",to:"Complex",convert:function(e){return n||sq(e),new n(e.toNumber(),0)}},{from:"Fraction",to:"BigNumber",convert:function(e){throw TypeError("Cannot implicitly convert a Fraction to BigNumber or vice versa. Use function bignumber(x) to convert to BigNumber or fraction(x) to convert to Fraction.")}},{from:"Fraction",to:"Complex",convert:function(e){return n||sq(e),new n(e.valueOf(),0)}},{from:"number",to:"Fraction",convert:function(e){o||sY(e);var t=new o(e);if(t.valueOf()!==e)throw TypeError("Cannot implicitly convert a number to a Fraction when there will be a loss of precision (value: "+e+"). Use function fraction(x) to convert to Fraction.");return t}},{from:"string",to:"number",convert:function(e){var t=Number(e);if(isNaN(t))throw Error('Cannot convert "'+e+'" to a number');return t}},{from:"string",to:"BigNumber",convert:function(e){t||sG(e);try{return new t(e)}catch(t){throw Error('Cannot convert "'+e+'" to BigNumber')}}},{from:"string",to:"Fraction",convert:function(e){o||sY(e);try{return new o(e)}catch(t){throw Error('Cannot convert "'+e+'" to Fraction')}}},{from:"string",to:"Complex",convert:function(e){n||sq(e);try{return new n(e)}catch(t){throw Error('Cannot convert "'+e+'" to Complex')}}},{from:"boolean",to:"number",convert:function(e){return+e}},{from:"boolean",to:"BigNumber",convert:function(e){return t||sG(e),new t(+e)}},{from:"boolean",to:"Fraction",convert:function(e){return o||sY(e),new o(+e)}},{from:"boolean",to:"string",convert:function(e){return String(e)}},{from:"Array",to:"Matrix",convert:function(e){return r||function(){throw Error("Cannot convert array into a Matrix: no class 'DenseMatrix' provided")}(),new r(e)}},{from:"Matrix",to:"Array",convert:function(e){return e.valueOf()}}],i})},sX="equalScalar",sK=is(sX,["typed","config"],e=>{var{typed:t,config:n}=e;return t(sX,{"boolean, boolean":function(e,t){return e===t},"number, number":function(e,t){return ib(e,t,n.epsilon)},"BigNumber, BigNumber":function(e,t){return e.eq(t)||function(e,t,n){if(null==n)return e.eq(t);if(e.eq(t))return!0;if(e.isNaN()||t.isNaN())return!1;if(e.isFinite()&&t.isFinite()){var r=e.minus(t).abs();if(r.isZero())return!0;var o=e.constructor.max(e.abs(),t.abs());return r.lte(o.times(n))}return!1}(e,t,n.epsilon)},"Fraction, Fraction":function(e,t){return e.equals(t)},"Complex, Complex":function(e,t){var r;return r=n.epsilon,ib(e.re,t.re,r)&&ib(e.im,t.im,r)},"Unit, Unit":function(e,t){if(!e.equalBase(t))throw Error("Cannot compare units with different base");return this(e.value,t.value)}})});is(sX,["typed","config"],e=>{var{typed:t,config:n}=e;return t(sX,{"number, number":function(e,t){return ib(e,t,n.epsilon)}})});var sQ={typedDependencies:sZ,createEqualScalar:sK},sJ=is("SparseMatrix",["typed","equalScalar","Matrix"],e=>{var{typed:t,equalScalar:n,Matrix:r}=e;function o(e,t){if(!(this instanceof o))throw SyntaxError("Constructor must be called with the new operator");if(t&&!oE(t))throw Error("Invalid datatype: "+t);if(oD(e)){var n,r,a;n=this,r=e,a=t,"SparseMatrix"===r.type?(n._values=r._values?o8(r._values):void 0,n._index=o8(r._index),n._ptr=o8(r._ptr),n._size=o8(r._size),n._datatype=a||r._datatype):i(n,r.valueOf(),a||r._datatype)}else if(e&&oR(e.index)&&oR(e.ptr)&&oR(e.size))this._values=e.values,this._index=e.index,this._ptr=e.ptr,this._size=e.size,this._datatype=t||e.datatype;else if(oR(e))i(this,e,t);else if(e)throw TypeError("Unsupported type of data ("+o7(e)+")");else this._values=[],this._index=[],this._ptr=[0],this._size=[0,0],this._datatype=t}function i(e,r,o){e._values=[],e._index=[],e._ptr=[],e._datatype=o;var i=r.length,a=0,s=n,l=0;if(oE(o)&&(s=t.find(n,[o,o])||n,l=t.convert(0,o)),i>0){var u=0;do{e._ptr.push(e._index.length);for(var c=0;c<i;c++){var d=r[c];if(oR(d)){if(0===u&&a<d.length&&(a=d.length),u<d.length){var p=d[u];s(p,l)||(e._values.push(p),e._index.push(c))}}else 0===u&&a<1&&(a=1),s(d,l)||(e._values.push(d),e._index.push(c))}u++}while(u<a)}e._ptr.push(e._index.length),e._size=[i,a]}function a(e,t,n,r){if(n-t==0)return n;for(var o=t;o<n;o++)if(r[o]===e)return o;return t}function s(e,t,n,r,o,i,a){o.splice(e,0,r),i.splice(e,0,t);for(var s=n+1;s<a.length;s++)a[s]++}function l(e,r,o,i){var a,s,l,u=i||0,c=n,d=0;oE(e._datatype)&&(c=t.find(n,[e._datatype,e._datatype])||n,d=t.convert(0,e._datatype),u=t.convert(u,e._datatype));var p=!c(u,d),f=e._size[0],h=e._size[1];if(o>h){for(s=h;s<o;s++)if(e._ptr[s]=e._values.length,p)for(a=0;a<f;a++)e._values.push(u),e._index.push(a);e._ptr[o]=e._values.length}else o<h&&(e._ptr.splice(o+1,h-o),e._values.splice(e._ptr[o],e._values.length),e._index.splice(e._ptr[o],e._index.length));if(h=o,r>f){if(p){var m=0;for(s=0;s<h;s++){e._ptr[s]=e._ptr[s]+m,l=e._ptr[s+1]+m;var g=0;for(a=f;a<r;a++,g++)e._values.splice(l+g,0,u),e._index.splice(l+g,0,a),m++}e._ptr[h]=e._values.length}}else if(r<f){var v=0;for(s=0;s<h;s++){e._ptr[s]=e._ptr[s]-v;var y=e._ptr[s],x=e._ptr[s+1]-v;for(l=y;l<x;l++)(a=e._index[l])>r-1&&(e._values.splice(l,1),e._index.splice(l,1),v++)}e._ptr[s]=e._values.length}return e._size[0]=r,e._size[1]=o,e}function u(e,t,n,r,o){var i,a,s=r[0],l=r[1],u=[];for(i=0;i<s;i++)for(a=0,u[i]=[];a<l;a++)u[i][a]=0;for(a=0;a<l;a++)for(var c=n[a],d=n[a+1],p=c;p<d;p++)u[i=t[p]][a]=e?o?o8(e[p]):e[p]:1;return u}return o.prototype=new r,o.prototype.createSparseMatrix=function(e,t){return new o(e,t)},o.prototype.type="SparseMatrix",o.prototype.isSparseMatrix=!0,o.prototype.getDataType=function(){return ij(this._values,o7)},o.prototype.storage=function(){return"sparse"},o.prototype.datatype=function(){return this._datatype},o.prototype.create=function(e,t){return new o(e,t)},o.prototype.density=function(){var e=this._size[0],t=this._size[1];return 0!==e&&0!==t?this._index.length/(e*t):0},o.prototype.subset=function(e,t,n){if(!this._values)throw Error("Cannot invoke subset on a Pattern only matrix");switch(arguments.length){case 1:return function(e,t){if(!oF(t))throw TypeError("Invalid index");if(t.isScalar())return e.get(t.min());var n,r,i,a,s=t.size();if(s.length!==e._size.length)throw new iS(s.length,e._size.length);var l=t.min(),u=t.max();for(n=0,r=e._size.length;n<r;n++)iI(l[n],e._size[n]),iI(u[n],e._size[n]);var c=e._values,d=e._index,p=e._ptr,f=t.dimension(0),h=t.dimension(1),m=[],g=[];f.forEach(function(e,t){g[e]=t[0],m[e]=!0});var v=c?[]:void 0,y=[],x=[];return h.forEach(function(e){for(x.push(y.length),i=p[e],a=p[e+1];i<a;i++)!0===m[n=d[i]]&&(y.push(g[n]),v&&v.push(c[i]))}),x.push(y.length),new o({values:v,index:y,ptr:x,size:s,datatype:e._datatype})}(this,e);case 2:case 3:return function(e,t,n,r){if(!t||!0!==t.isIndex)throw TypeError("Invalid index");var o,i=t.size(),a=t.isScalar();if(oD(n)?(o=n.size(),n=n.toArray()):o=iT(n),a){if(0!==o.length)throw TypeError("Scalar expected");e.set(t.min(),n,r)}else{if(1!==i.length&&2!==i.length)throw new iS(i.length,e._size.length,"<");if(o.length<i.length){for(var s=0,l=0;1===i[s]&&1===o[s];)s++;for(;1===i[s];)l++,s++;n=iO(n,i.length,l,o)}if(!it(i,o))throw new iS(i,o,">");if(1===i.length)t.dimension(0).forEach(function(t,o){iI(t),e.set([t,0],n[o[0]],r)});else{var u=t.dimension(0),c=t.dimension(1);u.forEach(function(t,o){iI(t),c.forEach(function(i,a){iI(i),e.set([t,i],n[o[0]][a[0]],r)})})}}return e}(this,e,t,n);default:throw SyntaxError("Wrong number of arguments")}},o.prototype.get=function(e){if(!oR(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new iS(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke get on a Pattern only matrix");var t=e[0],n=e[1];iI(t,this._size[0]),iI(n,this._size[1]);var r=a(t,this._ptr[n],this._ptr[n+1],this._index);return r<this._ptr[n+1]&&this._index[r]===t?this._values[r]:0},o.prototype.set=function(e,r,o){if(!oR(e))throw TypeError("Array expected");if(e.length!==this._size.length)throw new iS(e.length,this._size.length);if(!this._values)throw Error("Cannot invoke set on a Pattern only matrix");var i=e[0],u=e[1],c=this._size[0],d=this._size[1],p=n,f=0;oE(this._datatype)&&(p=t.find(n,[this._datatype,this._datatype])||n,f=t.convert(0,this._datatype)),(i>c-1||u>d-1)&&(l(this,Math.max(i+1,c),Math.max(u+1,d),o),c=this._size[0],d=this._size[1]),iI(i,c),iI(u,d);var h=a(i,this._ptr[u],this._ptr[u+1],this._index);return h<this._ptr[u+1]&&this._index[h]===i?p(r,f)?function(e,t,n,r,o){n.splice(e,1),r.splice(e,1);for(var i=t+1;i<o.length;i++)o[i]--}(h,u,this._values,this._index,this._ptr):this._values[h]=r:s(h,i,u,r,this._values,this._index,this._ptr),this},o.prototype.resize=function(e,t,n){if(!oO(e))throw TypeError("Array or Matrix expected");var r=e.valueOf().map(e=>Array.isArray(e)&&1===e.length?e[0]:e);if(2!==r.length)throw Error("Only two dimensions matrix are supported");return r.forEach(function(e){if(!oS(e)||!ic(e)||e<0)throw TypeError("Invalid size, must contain positive integers (size: "+iC(r)+")")}),l(n?this.clone():this,r[0],r[1],t)},o.prototype.reshape=function(e,t){if(!oR(e))throw TypeError("Array expected");if(2!==e.length)throw Error("Sparse matrices can only be reshaped in two dimensions");e.forEach(function(t){if(!oS(t)||!ic(t)||t<=-2||0===t)throw TypeError("Invalid size, must contain positive integers or -1 (size: "+iC(e)+")")});var n=this._size[0]*this._size[1],r=(e=iR(e,n))[0]*e[1];if(n!==r)throw Error("Reshaping sparse matrix will result in the wrong number of elements");var o=t?this.clone():this;if(this._size[0]===e[0]&&this._size[1]===e[1])return o;for(var i=[],l=0;l<o._ptr.length;l++)for(var u=0;u<o._ptr[l+1]-o._ptr[l];u++)i.push(l);for(var c=o._values.slice(),d=o._index.slice(),p=0;p<o._index.length;p++){var f=d[p],h=i[p],m=f*o._size[1]+h;i[p]=m%e[1],d[p]=Math.floor(m/e[1])}o._values.length=0,o._index.length=0,o._ptr.length=e[1]+1,o._size=e.slice();for(var g=0;g<o._ptr.length;g++)o._ptr[g]=0;for(var v=0;v<c.length;v++){var y=d[v],x=i[v],b=c[v];s(a(y,o._ptr[x],o._ptr[x+1],o._index),y,x,b,o._values,o._index,o._ptr)}return o},o.prototype.clone=function(){return new o({values:this._values?o8(this._values):void 0,index:o8(this._index),ptr:o8(this._ptr),size:o8(this._size),datatype:this._datatype})},o.prototype.size=function(){return this._size.slice(0)},o.prototype.map=function(e,r){if(!this._values)throw Error("Cannot invoke map on a Pattern only matrix");var i=this;return function(e,r,i,a,s){var l=[],u=[],c=[],d=n,p=0;oE(e._datatype)&&(d=t.find(n,[e._datatype,e._datatype])||n,p=t.convert(0,e._datatype));for(var f=function(e,t,n){e=a(e,t,n),d(e,p)||(l.push(e),u.push(t))},h=0;h<=i;h++){c.push(l.length);var m=e._ptr[h],g=e._ptr[h+1];if(s)for(var v=m;v<g;v++){var y=e._index[v];y>=0&&y<=r&&f(e._values[v],y-0,h-0)}else{for(var x={},b=m;b<g;b++)x[e._index[b]]=e._values[b];for(var w=0;w<=r;w++)f(w in x?x[w]:0,w-0,h-0)}}return c.push(l.length),new o({values:l,index:u,ptr:c,size:[r-0+1,i-0+1]})}(this,this._size[0]-1,this._size[1]-1,function(t,n,r){return e(t,[n,r],i)},r)},o.prototype.forEach=function(e,t){if(!this._values)throw Error("Cannot invoke forEach on a Pattern only matrix");for(var n=this._size[0],r=this._size[1],o=0;o<r;o++){var i=this._ptr[o],a=this._ptr[o+1];if(t)for(var s=i;s<a;s++){var l=this._index[s];e(this._values[s],[l,o],this)}else{for(var u={},c=i;c<a;c++)u[this._index[c]]=this._values[c];for(var d=0;d<n;d++)e(d in u?u[d]:0,[d,o],this)}}},o.prototype[Symbol.iterator]=function*(){if(!this._values)throw Error("Cannot iterate a Pattern only matrix");for(var e=this._size[1],t=0;t<e;t++)for(var n=this._ptr[t],r=this._ptr[t+1],o=n;o<r;o++){var i=this._index[o];yield{value:this._values[o],index:[i,t]}}},o.prototype.toArray=function(){return u(this._values,this._index,this._ptr,this._size,!0)},o.prototype.valueOf=function(){return u(this._values,this._index,this._ptr,this._size,!1)},o.prototype.format=function(e){for(var t=this._size[0],n=this._size[1],r=this.density(),o="Sparse Matrix ["+iC(t,e)+" x "+iC(n,e)+"] density: "+iC(r,e)+"\n",i=0;i<n;i++)for(var a=this._ptr[i],s=this._ptr[i+1],l=a;l<s;l++)o+="\n ("+iC(this._index[l],e)+", "+iC(i,e)+") ==> "+(this._values?iC(this._values[l],e):"X");return o},o.prototype.toString=function(){return iC(this.toArray())},o.prototype.toJSON=function(){return{mathjs:"SparseMatrix",values:this._values,index:this._index,ptr:this._ptr,size:this._size,datatype:this._datatype}},o.prototype.diagonal=function(e){if(e){if(oM(e)&&(e=e.toNumber()),!oS(e)||!ic(e))throw TypeError("The parameter k must be an integer number")}else e=0;var t=e>0?e:0,n=e<0?-e:0,r=this._size[0],i=this._size[1],a=Math.min(r-n,i-t),s=[],l=[],u=[];u[0]=0;for(var c=t;c<i&&s.length<a;c++)for(var d=this._ptr[c],p=this._ptr[c+1],f=d;f<p;f++){var h=this._index[f];if(h===c-t+n){s.push(this._values[f]),l[s.length-1]=h-n;break}}return u.push(s.length),new o({values:s,index:l,ptr:u,size:[a,1]})},o.fromJSON=function(e){return new o(e)},o.diagonal=function(e,r,i,a,s){if(!oR(e))throw TypeError("Array expected, size parameter");if(2!==e.length)throw Error("Only two dimensions matrix are supported");if(e=e.map(function(e){if(oM(e)&&(e=e.toNumber()),!oS(e)||!ic(e)||e<1)throw Error("Size values must be positive integers");return e}),i){if(oM(i)&&(i=i.toNumber()),!oS(i)||!ic(i))throw TypeError("The parameter k must be an integer number")}else i=0;var l,u=n,c=0;oE(s)&&(u=t.find(n,[s,s])||n,c=t.convert(0,s));var d=i>0?i:0,p=i<0?-i:0,f=e[0],h=e[1],m=Math.min(f-p,h-d);if(oR(r)){if(r.length!==m)throw Error("Invalid value array length");l=function(e){return r[e]}}else if(oD(r)){var g=r.size();if(1!==g.length||g[0]!==m)throw Error("Invalid matrix length");l=function(e){return r.get([e])}}else l=function(){return r};for(var v=[],y=[],x=[],b=0;b<h;b++){x.push(v.length);var w=b-d;if(w>=0&&w<m){var A=l(w);u(A,c)||(y.push(w+p),v.push(A))}}return x.push(v.length),new o({values:v,index:y,ptr:x,size:[f,h]})},o.prototype.swapRows=function(e,t){if(!oS(e)||!ic(e)||!oS(t)||!ic(t))throw Error("Row index must be positive integers");if(2!==this._size.length)throw Error("Only two dimensional matrix is supported");return iI(e,this._size[0]),iI(t,this._size[0]),o._swapRows(e,t,this._size[1],this._values,this._index,this._ptr),this},o._forEachRow=function(e,t,n,r,o){for(var i=r[e],a=r[e+1],s=i;s<a;s++)o(n[s],t[s])},o._swapRows=function(e,t,n,r,o,i){for(var s=0;s<n;s++){var l=i[s],u=i[s+1],c=a(e,l,u,o),d=a(t,l,u,o);if(c<u&&d<u&&o[c]===e&&o[d]===t){if(r){var p=r[c];r[c]=r[d],r[d]=p}continue}if(c<u&&o[c]===e&&(d>=u||o[d]!==t)){var f=r?r[c]:void 0;o.splice(d,0,t),r&&r.splice(d,0,f),o.splice(d<=c?c+1:c,1),r&&r.splice(d<=c?c+1:c,1);continue}if(d<u&&o[d]===t&&(c>=u||o[c]!==e)){var h=r?r[d]:void 0;o.splice(c,0,e),r&&r.splice(c,0,h),o.splice(c<=d?d+1:d,1),r&&r.splice(c<=d?d+1:d,1)}}},o},{isClass:!0}),s0="matrix",s1={DenseMatrixDependencies:sv,MatrixDependencies:sg,SparseMatrixDependencies:{MatrixDependencies:sg,equalScalarDependencies:sQ,typedDependencies:sZ,createSparseMatrixClass:sJ},typedDependencies:sZ,createMatrix:is(s0,["typed","Matrix","DenseMatrix","SparseMatrix"],e=>{var{typed:t,Matrix:n,DenseMatrix:r,SparseMatrix:o}=e;return t(s0,{"":function(){return i([])},string:function(e){return i([],e)},"string, string":function(e,t){return i([],e,t)},Array:function(e){return i(e)},Matrix:function(e){return i(e,e.storage())},"Array | Matrix, string":i,"Array | Matrix, string, string":i});function i(e,t,n){if("dense"===t||"default"===t||void 0===t)return new r(e,n);if("sparse"===t)return new o(e,n);throw TypeError("Unknown matrix type "+JSON.stringify(t)+".")}})},s2="zeros",s5=is(s2,["typed","config","matrix","BigNumber"],e=>{var{typed:t,config:n,matrix:r,BigNumber:o}=e;return t(s2,{"":function(){return"Array"===n.matrix?i([]):i([],"default")},"...number | BigNumber | string":function(e){if("string"==typeof e[e.length-1]){var t=e.pop();return i(e,t)}return"Array"===n.matrix?i(e):i(e,"default")},Array:i,Matrix:function(e){var t=e.storage();return i(e.valueOf(),t)},"Array | Matrix, string":function(e,t){return i(e.valueOf(),t)}});function i(e,t){var n,i=(n=!1,e.forEach(function(e,t,r){oM(e)&&(n=!0,r[t]=e.toNumber())}),n)?new o(0):0;if(e.forEach(function(e){if("number"!=typeof e||!ic(e)||e<0)throw Error("Parameters in function zeros must be positive integers")}),t){var a=r(t);return e.length>0?a.resize(e,i):a}var s=[];return e.length>0?iE(s,e,i):s}}),s4=is("algorithm11",["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,o,i){var a,s=e._values,l=e._index,u=e._ptr,c=e._size,d=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],f=c[1],h=n,m=0,g=o;"string"==typeof d&&(a=d,h=t.find(n,[a,a]),m=t.convert(0,a),r=t.convert(r,a),g=t.find(o,[a,a]));for(var v=[],y=[],x=[],b=0;b<f;b++){x[b]=y.length;for(var w=u[b],A=u[b+1],C=w;C<A;C++){var S=l[C],M=i?g(r,s[C]):g(s[C],r);h(M,m)||(y.push(S),v.push(M))}}return x[f]=y.length,e.createSparseMatrix({values:v,index:y,ptr:x,size:[p,f],datatype:a})}}),s3=is("algorithm12",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,o,i){var a,s=e._values,l=e._index,u=e._ptr,c=e._size,d=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],f=c[1],h=o;"string"==typeof d&&(a=d,r=t.convert(r,a),h=t.find(o,[a,a]));for(var m=[],g=[],v=[],y=0;y<f;y++){for(var x=y+1,b=u[y],w=u[y+1],A=b;A<w;A++){var C=l[A];g[C]=s[A],v[C]=x}for(var S=0;S<p;S++)0===y&&(m[S]=[]),v[S]===x?m[S][y]=i?h(r,g[S]):h(g[S],r):m[S][y]=i?h(r,0):h(0,r)}return new n({data:m,size:[p,f],datatype:a})}}),s6=is("algorithm14",["typed"],e=>{var{typed:t}=e;return function(e,n,r,o){var i,a=e._data,s=e._size,l=e._datatype,u=r;"string"==typeof l&&(i=l,n=t.convert(n,i),u=t.find(r,[i,i]));var c=s.length>0?function e(t,n,r,o,i,a,s){var l=[];if(n===r.length-1)for(var u=0;u<o;u++)l[u]=s?t(a,i[u]):t(i[u],a);else for(var c=0;c<o;c++)l[c]=e(t,n+1,r,r[n+1],i[c],a,s);return l}(u,0,s,s[0],a,n,o):[];return e.createDenseMatrix({data:c,size:o8(s),datatype:i})}});function s9(e,t){var n;if(!ic(e)||!ic(t))throw Error("Parameters in function gcd must be integer numbers");for(;0!==t;)n=e%t,e=t,t=n;return e<0?-e:e}function s7(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!ic(t)||t<0||t>15)throw Error("Number of decimals in function round must be an integer from 0 to 15 inclusive");return parseFloat(im(e,t))}s9.signature="number, number";var s8="Number of decimals in function round must be an integer",le="round",lt=is(le,["typed","matrix","equalScalar","zeros","BigNumber","DenseMatrix"],e=>{var{typed:t,matrix:n,equalScalar:r,zeros:o,BigNumber:i,DenseMatrix:a}=e,s=s4({typed:t,equalScalar:r}),l=s3({typed:t,DenseMatrix:a}),u=s6({typed:t});return t(le,{number:s7,"number, number":s7,"number, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(s8);return new i(e).toDecimalPlaces(t.toNumber())},Complex:function(e){return e.round()},"Complex, number":function(e,t){if(t%1)throw TypeError(s8);return e.round(t)},"Complex, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(s8);var n=t.toNumber();return e.round(n)},BigNumber:function(e){return e.toDecimalPlaces(0)},"BigNumber, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(s8);return e.toDecimalPlaces(t.toNumber())},Fraction:function(e){return e.round()},"Fraction, number":function(e,t){if(t%1)throw TypeError(s8);return e.round(t)},"Fraction, BigNumber":function(e,t){if(!t.isInteger())throw TypeError(s8);return e.round(t.toNumber())},"Array | Matrix":function(e){return function e(t,n,r){return t&&"function"==typeof t.map?t.map(function(t){return e(t,n,r)}):n(t)}(e,this,!0)},"SparseMatrix, number | BigNumber":function(e,t){return s(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return u(e,t,this,!1)},"Array, number | BigNumber":function(e,t){return u(n(e),t,this,!1).valueOf()},"number | Complex | BigNumber | Fraction, SparseMatrix":function(e,t){return r(e,0)?o(t.size(),t.storage()):l(t,e,this,!0)},"number | Complex | BigNumber | Fraction, DenseMatrix":function(e,t){return r(e,0)?o(t.size(),t.storage()):u(t,e,this,!0)},"number | Complex | BigNumber | Fraction, Array":function(e,t){return u(n(t),e,this,!0).valueOf()}})}),ln=is("algorithm01",["typed"],e=>{var{typed:t}=e;return function(e,n,r,o){var i,a,s=e._data,l=e._size,u=e._datatype,c=n._values,d=n._index,p=n._ptr,f=n._size,h=n._datatype;if(l.length!==f.length)throw new iS(l.length,f.length);if(l[0]!==f[0]||l[1]!==f[1])throw RangeError("Dimension mismatch. Matrix A ("+l+") must match Matrix B ("+f+")");if(!c)throw Error("Cannot perform operation on Dense Matrix and Pattern Sparse Matrix");var m=l[0],g=l[1],v="string"==typeof u&&u===h?u:void 0,y=v?t.find(r,[v,v]):r,x=[];for(i=0;i<m;i++)x[i]=[];var b=[],w=[];for(a=0;a<g;a++){for(var A=a+1,C=p[a],S=p[a+1],M=C;M<S;M++)b[i=d[M]]=o?y(c[M],s[i][a]):y(s[i][a],c[M]),w[i]=A;for(i=0;i<m;i++)w[i]===A?x[i][a]=b[i]:x[i][a]=s[i][a]}return e.createDenseMatrix({data:x,size:[m,g],datatype:v})}}),lr=is("algorithm04",["typed","equalScalar"],e=>{var{typed:t,equalScalar:n}=e;return function(e,r,o){var i,a,s,l,u,c,d=e._values,p=e._index,f=e._ptr,h=e._size,m=e._datatype,g=r._values,v=r._index,y=r._ptr,x=r._size,b=r._datatype;if(h.length!==x.length)throw new iS(h.length,x.length);if(h[0]!==x[0]||h[1]!==x[1])throw RangeError("Dimension mismatch. Matrix A ("+h+") must match Matrix B ("+x+")");var w=h[0],A=h[1],C=n,S=0,M=o;"string"==typeof m&&m===b&&(i=m,C=t.find(n,[i,i]),S=t.convert(0,i),M=t.find(o,[i,i]));var T=d&&g?[]:void 0,k=[],I=[],E=d&&g?[]:void 0,R=d&&g?[]:void 0,D=[],O=[];for(s=0;s<A;s++){I[s]=k.length;var j=s+1;for(u=f[s],c=f[s+1],l=u;l<c;l++)a=p[l],k.push(a),D[a]=j,E&&(E[a]=d[l]);for(u=y[s],c=y[s+1],l=u;l<c;l++)if(D[a=v[l]]===j){if(E){var P=M(E[a],g[l]);C(P,S)?D[a]=null:E[a]=P}}else k.push(a),O[a]=j,R&&(R[a]=g[l]);if(E&&R)for(l=I[s];l<k.length;)D[a=k[l]]===j?(T[l]=E[a],l++):O[a]===j?(T[l]=R[a],l++):k.splice(l,1)}return I[A]=k.length,e.createSparseMatrix({values:T,index:k,ptr:I,size:[w,A],datatype:i})}}),lo=is("algorithm10",["typed","DenseMatrix"],e=>{var{typed:t,DenseMatrix:n}=e;return function(e,r,o,i){var a,s=e._values,l=e._index,u=e._ptr,c=e._size,d=e._datatype;if(!s)throw Error("Cannot perform operation on Pattern Sparse Matrix and Scalar value");var p=c[0],f=c[1],h=o;"string"==typeof d&&(a=d,r=t.convert(r,a),h=t.find(o,[a,a]));for(var m=[],g=[],v=[],y=0;y<f;y++){for(var x=y+1,b=u[y],w=u[y+1],A=b;A<w;A++){var C=l[A];g[C]=s[A],v[C]=x}for(var S=0;S<p;S++)0===y&&(m[S]=[]),v[S]===x?m[S][y]=i?h(r,g[S]):h(g[S],r):m[S][y]=r}return new n({data:m,size:[p,f],datatype:a})}}),li=is("algorithm13",["typed"],e=>{var{typed:t}=e;return function(e,n,r){var o,i=e._data,a=e._size,s=e._datatype,l=n._data,u=n._size,c=n._datatype,d=[];if(a.length!==u.length)throw new iS(a.length,u.length);for(var p=0;p<a.length;p++){if(a[p]!==u[p])throw RangeError("Dimension mismatch. Matrix A ("+a+") must match Matrix B ("+u+")");d[p]=a[p]}var f=r;"string"==typeof s&&s===c&&(o=s,f=t.find(r,[o,o]));var h=d.length>0?function e(t,n,r,o,i,a){var s=[];if(n===r.length-1)for(var l=0;l<o;l++)s[l]=t(i[l],a[l]);else for(var u=0;u<o;u++)s[u]=e(t,n+1,r,r[n+1],i[u],a[u]);return s}(f,0,d,d[0],i,l):[];return e.createDenseMatrix({data:h,size:d,datatype:o})}}),la=is("gcd",["typed","matrix","equalScalar","BigNumber","DenseMatrix"],e=>{var{typed:t,matrix:n,equalScalar:r,BigNumber:o,DenseMatrix:i}=e,a=ln({typed:t}),s=lr({typed:t,equalScalar:r}),l=lo({typed:t,DenseMatrix:i}),u=li({typed:t}),c=s6({typed:t});return t("gcd",{"number, number":s9,"BigNumber, BigNumber":function(e,t){if(!e.isInt()||!t.isInt())throw Error("Parameters in function gcd must be integer numbers");for(var n=new o(0);!t.isZero();){var r=e.mod(t);e=t,t=r}return e.lt(n)?e.neg():e},"Fraction, Fraction":function(e,t){return e.gcd(t)},"SparseMatrix, SparseMatrix":function(e,t){return s(e,t,this)},"SparseMatrix, DenseMatrix":function(e,t){return a(t,e,this,!0)},"DenseMatrix, SparseMatrix":function(e,t){return a(e,t,this,!1)},"DenseMatrix, DenseMatrix":function(e,t){return u(e,t,this)},"Array, Array":function(e,t){return this(n(e),n(t)).valueOf()},"Array, Matrix":function(e,t){return this(n(e),t)},"Matrix, Array":function(e,t){return this(e,n(t))},"SparseMatrix, number | BigNumber":function(e,t){return l(e,t,this,!1)},"DenseMatrix, number | BigNumber":function(e,t){return c(e,t,this,!1)},"number | BigNumber, SparseMatrix":function(e,t){return l(t,e,this,!0)},"number | BigNumber, DenseMatrix":function(e,t){return c(t,e,this,!0)},"Array, number | BigNumber":function(e,t){return c(n(e),t,this,!1).valueOf()},"number | BigNumber, Array":function(e,t){return c(n(t),e,this,!0).valueOf()},"Array | Matrix | number | BigNumber, Array | Matrix | number | BigNumber, ...Array | Matrix | number | BigNumber":function(e,t,n){for(var r=this(e,t),o=0;o<n.length;o++)r=this(r,n[o]);return r}})});let{round:ls}=iB({roundDependencies:{BigNumberDependencies:sm,DenseMatrixDependencies:sv,equalScalarDependencies:sQ,matrixDependencies:s1,typedDependencies:sZ,zerosDependencies:{BigNumberDependencies:sm,matrixDependencies:s1,typedDependencies:sZ,createZeros:s5},createRound:lt}}),{gcd:ll}=iB({gcdDependencies:{BigNumberDependencies:sm,DenseMatrixDependencies:sv,equalScalarDependencies:sQ,matrixDependencies:s1,typedDependencies:sZ,createGcd:la}}),lu=10;function lc(e,t){let n=t.startMs,r=e.values,o=[];for(let e of r){for(;n<e[0];)o.push([n,null]),n+=t.stepMs;o.push([n,e[1]]),n+=t.stepMs}for(;n<=t.endMs;)o.push([n,null]),n+=t.stepMs;return o}function ld(e){let t,n,r=[];for(let t of e)if(t&&"timeRange"in t){if(void 0===t||void 0===t.timeRange||void 0===t.stepMs)continue;if(r.push(t.stepMs),void 0===n){n=t.timeRange;continue}t.timeRange.start<n.start&&(n.start=t.timeRange.start),t.timeRange.end>n.end&&(n.end=t.timeRange.end)}else if(t&&"values"in t){for(let e=0;e<t.values.length;e++){let r=t.values[e];if(void 0===r)continue;let[o]=r,i=new Date(o),a=new Date(o);if(void 0===n){n={start:i,end:a};continue}i<n.start&&(n.start=i),a>n.end&&(n.end=a)}if(void 0===n)return;let e=n.start.valueOf(),r=n.end.valueOf(),o=r-e;return{startMs:e,endMs:r,rangeMs:o,stepMs:lu}}if(void 0===n)return;if(1===r.length)t=r[0];else{let e=ll(...r);t=e<lu?lu:e}let o=n.start.valueOf(),i=n.end.valueOf();return{startMs:o,endMs:i,stepMs:t,rangeMs:i-o}}function lp(e){return/^[0-9a-fA-F]+$/.test(e)}function lf(e){return e.spec?.spec?.display?.name?e.spec.spec.display.name:e.spec?.display?.name?e.spec.display.name:e.metadata.name}function lh(e){return e.spec?.spec?.display?.name?`${e.spec.spec.display.name} (ID: ${e.metadata.name})`:e.spec?.display?.name?`${e.spec.display.name} (ID: ${e.metadata.name})`:e.metadata.name}let lm=(0,d.createContext)(void 0);function lg(e){let{children:t,timeZone:n}=e;return(0,c.jsx)(lm.Provider,{value:n,children:t})}function lv(){let e=(0,d.useContext)(lm);return{timeZone:e??"local",formatWithUserTimeZone:(t,n)=>or(t,n,e),dateFormatOptionsWithUserTimeZone:t=>on(t,e)}}function ly({label:e,color:t,size:n="small",onColorChange:r,onClear:o}){let[i,a]=(0,d.useState)(null),s=!!i,{thresholds:{defaultColor:l,palette:u}}=ey();return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(lx,{size:n,"aria-label":`change ${e} color`,isSelected:s,iconColor:t,onClick:e=>{a(e.currentTarget)},children:(0,c.jsx)(N,{})}),(0,c.jsx)(eh.Ay,{"data-testid":"options color picker",open:s,anchorEl:i,onClose:()=>{a(null)},slotProps:{paper:{sx:{padding:e=>e.spacing(2)}}},anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:(0,c.jsx)(ep,{color:t,palette:[l,...u],onChange:r,onClear:o})})]})}let lx=(0,y.A)(j.A,{shouldForwardProp:e=>"isSelected"!==e&&"iconColor"!==e})(({iconColor:e,isSelected:t})=>({backgroundColor:t&&e?`${e}3F`:"undefined",color:e}));var lb=n(56599),lw=n(74628),lA=n(38662);function lC(e,t){return"ALL"!==t&&!!t[e.id]}var lS=n(83926),lM=n(1337),lT=n(54382),lk=n(29424),lI=n(67214);function lE(e){return(0,C.Ay)("MuiListItemButton",e)}let lR=(0,A.A)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),lD=(0,y.A)(lM.A,{shouldForwardProp:e=>(0,lS.A)(e)||"classes"===e,name:"MuiListItemButton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]}})((0,x.A)(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${lR.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:(0,m.X4)(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${lR.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:(0,m.X4)(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${lR.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:(0,m.X4)(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})`:(0,m.X4)(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${lR.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${lR.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),lO=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiListItemButton"}),{alignItems:r="center",autoFocus:o=!1,component:i="div",children:a,dense:s=!1,disableGutters:l=!1,divider:u=!1,focusVisibleClassName:p,selected:m=!1,className:g,...v}=n,y=d.useContext(lI.A),x=d.useMemo(()=>({dense:s||y.dense||!1,alignItems:r,disableGutters:l}),[r,y.dense,s,l]),b=d.useRef(null);(0,lT.A)(()=>{o&&b.current&&b.current.focus()},[o]);let A={...n,alignItems:r,dense:x.dense,disableGutters:l,divider:u,selected:m},C=(e=>{let{alignItems:t,classes:n,dense:r,disabled:o,disableGutters:i,divider:a,selected:s}=e,l=(0,h.A)({root:["root",r&&"dense",!i&&"gutters",a&&"divider",o&&"disabled","flex-start"===t&&"alignItemsFlexStart",s&&"selected"]},lE,n);return{...n,...l}})(A),S=(0,lk.A)(b,t);return(0,c.jsx)(lI.A.Provider,{value:x,children:(0,c.jsx)(lD,{ref:S,href:v.href||v.to,component:(v.href||v.to)&&"div"===i?"button":i,focusVisibleClassName:(0,f.A)(C.focusVisible,p),ownerState:A,className:(0,f.A)(C.root,g),...v,classes:C,children:a})})});var lj=n(14045);let lP=(0,d.memo)(function({color:e,sx:t,...n}){return(0,c.jsx)(lw.A,{...n,sx:rD({height:4,width:16,margin:e=>e.spacing(.5)},t),style:{backgroundColor:e}})}),lN=(0,d.forwardRef)(function({item:e,sx:t,truncateLabel:n,onClick:r,isVisuallySelected:o,onMouseOver:i,onMouseOut:a,index:s,...l},u){let[p,f]=(0,d.useState)(n);return(0,c.jsxs)(lO,{...l,role:"listitem",sx:rD({padding:0,cursor:"pointer"},t),dense:!0,onClick:t=>{r(t,e.id),e.onClick?.(t)},onMouseOver:t=>i?.(t,{id:e.id,index:s}),onMouseOut:t=>a?.(t,{id:e.id,index:s}),selected:o,ref:u,children:[(0,c.jsx)(lw.A,{sx:{display:"flex",alignItems:"center"},children:(0,c.jsx)(lP,{color:e.color})}),(0,c.jsx)(lj.A,{primary:e.label,primaryTypographyProps:{noWrap:p},onMouseOver:function(){n&&f(!1)},onMouseOut:function(){n&&f(!0)}})]})}),lF=(0,d.memo)(lN);function l_({height:e,items:t,selectedItems:n,onLegendItemClick:r,onItemMouseOver:o,onItemMouseOut:i}){return(0,c.jsx)(lw.A,{component:"ul",sx:{width:"100%",height:e,padding:[0,1,0,0],overflowY:"scroll",margin:0},children:t.map((e,t)=>(0,c.jsx)(lF,{item:e,index:t,isVisuallySelected:lC(e,n),onMouseOver:o,onMouseOut:i,onClick:r,sx:{width:"auto",float:"left",paddingRight:1.5}},e.id))})}function lL(e){e()}function lz(e,t){return n=>e(t(n))}function lB(e){return void 0!==e}function lV(){}function l$(e,t){return t(e)}function lH(...e){return e}function lW(e){e(2)}function lU(e){return e(4)}function lG(e,t){return e(1,e=>t(0,e))}function lq(e,t){let n=e(1,e=>{n(),t(e)});return n}function lY(e){let t,n;return r=>o=>{t=o,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function lZ(e,t){return e===t}function lX(e=lZ){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function lK(e){return t=>n=>{e(n)&&t(n)}}function lQ(e){return t=>lz(t,e)}function lJ(e){return t=>()=>{t(e)}}function l0(e,...t){let n=function(...e){return t=>e.reduceRight(l$,t)}(...t);return(t,r)=>{switch(t){case 2:lW(e);return;case 1:return e(1,n(r))}}}function l1(e,t){return n=>r=>{n(t=e(t,r))}}function l2(e){return t=>n=>{e>0?e--:t(n)}}function l5(e){let t=null,n;return r=>o=>{t=o,n||(n=setTimeout(()=>{n=void 0,r(t)},e))}}function l4(...e){let t=Array.from({length:e.length}),n=0,r=null,o=2**e.length-1;return e.forEach((e,i)=>{let a=2**i;e(1,e=>{let s=n;n|=a,t[i]=e,s!==o&&n===o&&r&&(r(),r=null)})}),e=>i=>{let a=()=>{e([i].concat(t))};n===o?a():r=a}}function l3(e){let t=e,n=l9();return(e,r)=>{switch(e){case 0:t=r;break;case 1:r(t);break;case 4:return t}return n(e,r)}}function l6(e,t){var n;return n=l3(t),lG(e,n),n}function l9(){let e=[];return(t,n)=>{switch(t){case 0:e.slice().forEach(e=>{e(n)});return;case 2:e.splice(0);return;case 1:return e.push(n),()=>{let t=e.indexOf(n);t>-1&&e.splice(t,1)}}}}function l7(e){var t;return t=l9(),lG(e,t),t}let l8={singleton:!0};function ue(e,t=[],n=l8){let{singleton:r}=n;return{constructor:e,dependencies:t,id:ut(),singleton:r}}let ut=()=>Symbol("id");function un(...e){let t=l9(),n=Array.from({length:e.length}),r=0,o=2**e.length-1;return e.forEach((e,i)=>{let a=2**i;e(1,e=>{n[i]=e,(r|=a)===o&&t(0,n)})}),function(e,i){switch(e){case 2:return void lW(t);case 1:return r===o&&i(n),t(1,i)}}}function ur(e,t=lZ){return l0(e,lX(t))}function uo(...e){return function(t,n){switch(t){case 2:return;case 1:return function(...e){return()=>{e.map(lL)}}(...e.map(e=>e(1,n)))}}}let ui=1,ua={0:"debug",3:"error",[ui]:"log",2:"warn"},us=ue(()=>{let e=l3(3);return{log:l3((t,n,r=ui)=>{r>=((typeof globalThis>"u"?window:globalThis).VIRTUOSO_LOG_LEVEL??lU(e))&&console[ua[r]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}),logLevel:e}},[],{singleton:!0}),ul=new WeakMap;function uu(e){return"self"in e?e.document.documentElement:e}function uc(e){ul.delete(uu(e))}function ud(e,t){return!function(e){let t=uu(e),n=ul.get(t);if(void 0!==n)return n;let r="rtl"===t.ownerDocument.defaultView.getComputedStyle(t).direction;return ul.set(t,r),r}(e)?t:-t}function up(e,t,n){return uf(e,t,n).callbackRef}function uf(e,t,n){let r=p().useRef(null),o=p().useMemo(()=>"u">typeof ResizeObserver?new ResizeObserver(t=>{let r=()=>{let n=t[0].target;null!==n.offsetParent&&e(n)};n?r():requestAnimationFrame(r)}):null,[e,n]);return{callbackRef:e=>{e&&t?(o?.observe(e),r.current=e):(r.current&&o?.unobserve(r.current),r.current=null)},ref:r}}function uh(e,t,n,r,o,i,a,s,l){return uf(p().useCallback(n=>{let l,u=function(e,t,n,r){let o=e.length;if(0===o)return null;let i=[];for(let a=0;a<o;a++){let o=e.item(a);if(void 0===o.dataset.index)continue;let s=parseInt(o.dataset.index,10),l=parseFloat(o.dataset.knownSize),u=t(o,n);if(0===u&&r("Zero-sized element, this should not happen",{child:o},3),u===l)continue;let c=i[i.length-1];0===i.length||c.size!==u||c.endIndex!==s-1?i.push({endIndex:s,size:u,startIndex:s}):i[i.length-1].endIndex++}return i}(n.children,t,s?"offsetWidth":"offsetHeight",o),c=n.parentElement;for(;void 0===c.dataset.virtuosoScroller;)c=c.parentElement;let d=c.lastElementChild?.dataset.viewportType==="window";d&&(l=c.ownerDocument.defaultView);let p=a?s?a.scrollWidth:a.scrollHeight:d?s?l.document.documentElement.scrollWidth:l.document.documentElement.scrollHeight:s?c.scrollWidth:c.scrollHeight,f=a?s?a.offsetWidth:a.offsetHeight:d?s?l.innerWidth:l.innerHeight:s?c.offsetWidth:c.offsetHeight;r({scrollHeight:p,scrollTop:Math.max(a?s?ud(a,a.scrollLeft):a.scrollTop:d?s?ud(l,l.scrollX||l.document.documentElement.scrollLeft):l.scrollY||l.document.documentElement.scrollTop:s?ud(c,c.scrollLeft):c.scrollTop,0),viewportHeight:f}),i?.(s?um("column-gap",getComputedStyle(n).columnGap,o):um("row-gap",getComputedStyle(n).rowGap,o)),null!==u&&e(u)},[e,t,o,i,a,r,s]),n,l)}function um(e,t,n){return"normal"!==t&&t?.endsWith("px")!==!0&&n(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function ug(e,t,n){let r=p().useRef(null),o=p().useCallback(n=>{let o,i;if(!n?.offsetParent)return;let s=n.getBoundingClientRect(),l=s.width;if(t){let e=t.getBoundingClientRect(),n=s.top-e.top;i=e.height-Math.max(0,n),o=n+t.scrollTop}else{let e=a.current.ownerDocument.defaultView;i=e.innerHeight-Math.max(0,s.top),o=s.top+e.scrollY}r.current={listHeight:s.height,offsetTop:o,visibleHeight:i,visibleWidth:l},e(r.current)},[e,t]),{callbackRef:i,ref:a}=uf(o,!0,n),s=p().useCallback(()=>{o(a.current)},[o,a]);return p().useEffect(()=>{if(t){t.addEventListener("scroll",s);let e=new ResizeObserver(()=>{requestAnimationFrame(s)});return e.observe(t),()=>{t.removeEventListener("scroll",s),e.unobserve(t)}}let e=a.current?.ownerDocument.defaultView;return e?.addEventListener("scroll",s),e?.addEventListener("resize",s),()=>{e?.removeEventListener("scroll",s),e?.removeEventListener("resize",s)}},[s,t,a]),i}let uv=ue(()=>{let e=l9(),t=l9(),n=l3(0),r=l9(),o=l3(0),i=l9(),a=l9(),s=l3(0),l=l3(0),u=l3(0),c=l3(0),d=l9(),p=l9(),f=l3(!1),h=l3(!1),m=l3(!1);return lG(l0(e,lQ(({scrollTop:e})=>e)),t),lG(l0(e,lQ(({scrollHeight:e})=>e)),a),lG(t,o),{deviation:n,fixedFooterHeight:u,fixedHeaderHeight:l,footerHeight:c,headerHeight:s,horizontalDirection:h,scrollBy:p,scrollContainerState:e,scrollHeight:a,scrollingInProgress:f,scrollTo:d,scrollTop:t,skipAnimationFrameInResizeObserver:m,smoothScrollTargetReached:r,statefulScrollTop:o,viewportHeight:i}},[],{singleton:!0}),uy={lvl:0};function ux(e,t){let n=e.length;if(0===n)return[];let{index:r,value:o}=t(e[0]),i=[];for(let a=1;a<n;a++){let{index:n,value:s}=t(e[a]);i.push({end:n-1,start:r,value:o}),r=n,o=s}return i.push({end:1/0,start:r,value:o}),i}function ub(e){return e===uy}function uw(e,t){if(!ub(e))return t===e.k?e.v:t<e.k?uw(e.l,t):uw(e.r,t)}function uA(e,t,n="k"){if(ub(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])<t){let r=uA(e.r,t,n);return r[0]===-1/0?[e.k,e.v]:r}return uA(e.l,t,n)}function uC(e,t,n){return ub(e)?uE(t,n,1):t===e.k?uk(e,{k:t,v:n}):t<e.k?uD(uR(uk(e,{l:uC(e.l,t,n)}))):uD(uR(uk(e,{r:uC(e.r,t,n)})))}function uS(e,t,n){if(ub(e))return[];let r=uA(e,t)[0];return ux(function e(t,n,r){if(ub(t))return[];let{k:o,l:i,r:a,v:s}=t,l=[];return o>n&&(l=l.concat(e(i,n,r))),o>=n&&o<=r&&l.push({k:o,v:s}),o<=r&&(l=l.concat(e(a,n,r))),l}(e,r,n),({k:e,v:t})=>({index:e,value:t}))}function uM(e){return ub(e)?[]:[...uM(e.l),{k:e.k,v:e.v},...uM(e.r)]}function uT(e){let{l:t,lvl:n,r:r}=e;if(r.lvl>=n-1&&t.lvl>=n-1)return e;if(n>r.lvl+1){if(uI(t))return uR(uk(e,{lvl:n-1}));if(!ub(t)&&!ub(t.r))return uk(t.r,{l:uk(t,{r:t.r.l}),lvl:n,r:uk(e,{l:t.r.r,lvl:n-1})});throw Error("Unexpected empty nodes")}if(uI(e))return uD(uk(e,{lvl:n-1}));if(!ub(r)&&!ub(r.l)){let t=r.l,o=uI(t)?r.lvl-1:r.lvl;return uk(t,{l:uk(e,{lvl:n-1,r:t.l}),lvl:t.lvl+1,r:uD(uk(r,{l:t.r,lvl:o}))})}throw Error("Unexpected empty nodes")}function uk(e,t){return uE(void 0===t.k?e.k:t.k,void 0===t.v?e.v:t.v,void 0===t.lvl?e.lvl:t.lvl,void 0===t.l?e.l:t.l,void 0===t.r?e.r:t.r)}function uI(e){return ub(e)||e.lvl>e.r.lvl}function uE(e,t,n,r=uy,o=uy){return{k:e,l:r,lvl:n,r:o,v:t}}function uR(e){let{l:t}=e;return ub(t)||t.lvl!==e.lvl?e:uk(t,{r:uk(e,{l:t.r})})}function uD(e){let{lvl:t,r:n}=e;return ub(n)||ub(n.r)||n.lvl!==t||n.r.lvl!==t?e:uk(n,{l:uk(e,{r:n.l}),lvl:t+1})}function uO(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}function uj(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}let uP=ue(()=>({recalcInProgress:l3(!1)}),[],{singleton:!0});function uN(e,t,n,r=0){let o=e.length-1;for(;r<=o;){let i=Math.floor((r+o)/2),a=n(e[i],t);if(0===a)return i;if(-1===a){if(o-r<2)return i-1;o=i-1}else{if(o===r)return i;r=i+1}}throw Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function uF(e,t){return Math.round(e.getBoundingClientRect()[t])}function u_(e){return!ub(e.groupOffsetTree)}function uL({index:e},t){return t===e?0:t<e?-1:1}function uz({offset:e},t){return t===e?0:t<e?-1:1}function uB(e,t,n){if(0===t.length)return 0;let{index:r,offset:o,size:i}=t[uN(t,e,uL)],a=e-r,s=i*a+(a-1)*n+o;return s>0?s+n:s}function uV(e,t){if(!u_(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function u$(e,t,n){if(void 0!==e.groupIndex)return t.groupIndices[e.groupIndex]+1;let r=uV("LAST"===e.index?n:e.index,t);return Math.max(0,Math.min(n,r))}function uH(e,[t,n,r,o]){t.length>0&&r("received item sizes",t,0);let i=e.sizeTree,a=i,s=0;if(n.length>0&&ub(i)&&2===t.length){let e=t[0].size,r=t[1].size;a=n.reduce((t,n)=>uC(uC(t,n,e),n+1,r),a)}else[a,s]=function(e,t){let n=ub(e)?0:1/0;for(let r of t){let{endIndex:t,size:o,startIndex:i}=r;if(n=Math.min(n,i),ub(e)){e=uC(e,0,o);continue}let a=uS(e,i-1,t+1);if(a.some(function(e){let{endIndex:t,size:n,startIndex:r}=e;return e=>e.start===r&&(e.end===t||e.end===1/0)&&e.value===n}(r)))continue;let s=!1,l=!1;for(let{end:n,start:r,value:i}of a)s?(t>=r||o===i)&&(e=function e(t,n){if(ub(t))return uy;let{k:r,l:o,r:i}=t;if(n===r){if(ub(o))return i;if(ub(i))return o;let[e,n]=function e(t){return ub(t.r)?[t.k,t.v]:e(t.r)}(o);return uT(uk(t,{k:e,l:function e(t){return ub(t.r)?t.l:uT(uk(t,{r:e(t.r)}))}(o),v:n}))}return n<r?uT(uk(t,{l:e(o,n)})):uT(uk(t,{r:e(i,n)}))}(e,r)):(l=i!==o,s=!0),n>t&&t>=r&&i!==o&&(e=uC(e,t+1,i));l&&(e=uC(e,i,o))}return[e,n]}(a,t);if(a===i)return e;let{lastIndex:l,lastOffset:u,lastSize:c,offsetTree:d}=uU(e.offsetTree,s,a,o);return{groupIndices:n,groupOffsetTree:n.reduce((e,t)=>uC(e,t,uB(t,d,o)),uy),lastIndex:l,lastOffset:u,lastSize:c,offsetTree:d,sizeTree:a}}function uW(e,t){let n=0,r=0;for(;n<e;)n+=t[r+1]-t[r]-1,r++;return r-(n!==e)}function uU(e,t,n,r){let o=e,i=0,a=0,s=0,l=0;if(0===t)o=[];else{l=uN(o,t-1,uL),s=o[l].offset;let e=uA(n,t-1);i=e[0],a=e[1],o.length&&o[l].size===uA(n,t)[1]&&(l-=1),o=o.slice(0,l+1)}for(let{start:e,value:l}of uS(n,t,1/0)){let t=e-i,n=t*a+s+t*r;o.push({index:e,offset:n,size:l}),i=e,s=n,a=l}return{lastIndex:i,lastOffset:s,lastSize:a,offsetTree:o}}function uG(e){return{index:e.index,value:e}}let uq={offsetHeight:"height",offsetWidth:"width"},uY=ue(([{log:e},{recalcInProgress:t}])=>{let n=l9(),r=l9(),o=l6(r,0),i=l9(),a=l9(),s=l3(0),l=l3([]),u=l3(void 0),c=l3(void 0),d=l3(void 0),p=l3(void 0),f=l3((e,t)=>uF(e,uq[t])),h=l3(void 0),m=l3(0),g={groupIndices:[],groupOffsetTree:uy,lastIndex:0,lastOffset:0,lastSize:0,offsetTree:[],sizeTree:uy},v=l6(l0(n,l4(l,e,m),l1(uH,g),lX()),g),y=l6(l0(l,lX(),l1((e,t)=>({current:t,prev:e.current}),{current:[],prev:[]}),lQ(({prev:e})=>e)),[]);lG(l0(l,lK(e=>e.length>0),l4(v,m),lQ(([e,t,n])=>{let r=e.reduce((e,r,o)=>uC(e,r,uB(r,t.offsetTree,n)||o),uy);return{...t,groupIndices:e,groupOffsetTree:r}})),v),lG(l0(r,l4(v),lK(([e,{lastIndex:t}])=>e<t),lQ(([e,{lastIndex:t,lastSize:n}])=>[{endIndex:t,size:n,startIndex:e}])),n),lG(u,c);let x=l6(l0(u,lQ(e=>void 0===e)),!0);lG(l0(c,lK(e=>void 0!==e&&ub(lU(v).sizeTree)),lQ(e=>{let t=lU(d),n=lU(l).length>0;return void 0!==t&&0!==t?n?[{endIndex:0,size:t,startIndex:0},{endIndex:1,size:e,startIndex:1}]:[]:[{endIndex:0,size:e,startIndex:0}]})),n),lG(l0(p,lK(e=>void 0!==e&&e.length>0&&ub(lU(v).sizeTree)),lQ(e=>{let t=[],n=e[0],r=0;for(let o=1;o<e.length;o++){let i=e[o];i!==n&&(t.push({endIndex:o-1,size:n,startIndex:r}),n=i,r=o)}return t.push({endIndex:e.length-1,size:n,startIndex:r}),t})),n),lG(l0(l,l4(d,c),lK(([,e,t])=>void 0!==e&&void 0!==t),lQ(([e,t,n])=>{let r=[];for(let o=0;o<e.length;o++){let i=e[o],a=e[o+1];r.push({startIndex:i,endIndex:i,size:t}),void 0!==a&&r.push({startIndex:i+1,endIndex:a-1,size:n})}return r})),n);let b=l7(l0(n,l4(v),l1(({sizes:e},[t,n])=>({changed:n!==e,sizes:n}),{changed:!1,sizes:g}),lQ(e=>e.changed)));l0(s,l1((e,t)=>({diff:e.prev-t,prev:t}),{diff:0,prev:0}),lQ(e=>e.diff))(1,e=>{let{groupIndices:n}=lU(v);if(e>0)t(0,!0),i(0,e+uW(e,n));else if(e<0){let t=lU(y);t.length>0&&(e-=uW(-e,t)),a(0,e)}}),l0(s,l4(e))(1,([e,t])=>{e<0&&t("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:s},3)});let w=l7(i);lG(l0(i,l4(v),lQ(([e,t])=>{let n=t.groupIndices.length>0,r=[],o=t.lastSize;if(n){let n=uw(t.sizeTree,0),i=0,a=0;for(;i<e;){let e=t.groupIndices[a],s=t.groupIndices.length===a+1?1/0:t.groupIndices[a+1]-e-1;r.push({endIndex:e,size:n,startIndex:e}),r.push({endIndex:e+1+s-1,size:o,startIndex:e+1}),a++,i+=s+1}let s=uM(t.sizeTree);return i!==e&&s.shift(),s.reduce((t,{k:n,v:r})=>{let o=t.ranges;return 0!==t.prevSize&&(o=[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]),{prevIndex:n+e,prevSize:r,ranges:o}},{prevIndex:e,prevSize:0,ranges:r}).ranges}return uM(t.sizeTree).reduce((t,{k:n,v:r})=>({prevIndex:n+e,prevSize:r,ranges:[...t.ranges,{endIndex:n+e-1,size:t.prevSize,startIndex:t.prevIndex}]}),{prevIndex:0,prevSize:o,ranges:[]}).ranges})),n);let A=l7(l0(a,l4(v,m),lQ(([e,{offsetTree:t},n])=>uB(-e,t,n))));return lG(l0(a,l4(v,m),lQ(([e,t,n])=>{if(t.groupIndices.length>0){if(ub(t.sizeTree))return t;let r=uy,o=lU(y),i=0,a=0,s=0;for(;i<-e;){s=o[a];let e=o[a+1]-s-1;a++,i+=e+1}return r=uM(t.sizeTree).reduce((t,{k:n,v:r})=>uC(t,Math.max(0,n+e),r),r),i!==-e&&(r=uC(r,0,uw(t.sizeTree,s)),r=uC(r,1,uA(t.sizeTree,-e+1)[1])),{...t,sizeTree:r,...uU(t.offsetTree,0,r,n)}}let r=uM(t.sizeTree).reduce((t,{k:n,v:r})=>uC(t,Math.max(0,n+e),r),uy);return{...t,sizeTree:r,...uU(t.offsetTree,0,r,n)}})),v),{beforeUnshiftWith:w,data:h,defaultItemSize:c,firstItemIndex:s,fixedItemSize:u,fixedGroupSize:d,gap:m,groupIndices:l,heightEstimates:p,itemSize:f,listRefresh:b,shiftWith:a,shiftWithOffset:A,sizeRanges:n,sizes:v,statefulTotalCount:o,totalCount:r,trackItemSizes:x,unshiftWith:i}},lH(us,uP),{singleton:!0});function uZ(e){return e.reduce((e,t)=>(e.groupIndices.push(e.totalCount),e.totalCount+=t+1,e),{groupIndices:[],totalCount:0})}let uX=ue(([{groupIndices:e,sizes:t,totalCount:n},{headerHeight:r,scrollTop:o}])=>{let i=l9(),a=l9(),s=l7(l0(i,lQ(uZ)));return lG(l0(s,lQ(e=>e.totalCount)),n),lG(l0(s,lQ(e=>e.groupIndices)),e),lG(l0(un(o,t,r),lK(([e,t])=>u_(t)),lQ(([e,t,n])=>uA(t.groupOffsetTree,Math.max(e-n,0),"v")[0]),lX(),lQ(e=>[e])),a),{groupCounts:i,topItemsIndexes:a}},lH(uY,uv)),uK=ue(([{log:e}])=>{let t=l3(!1),n=l7(l0(t,lK(e=>e),lX()));return t(1,t=>{t&&lU(e)("props updated",{},0)}),{didMount:n,propsReady:t}},lH(us),{singleton:!0}),uQ="u">typeof document&&"scrollBehavior"in document.documentElement.style;function uJ(e){let t="number"==typeof e?{index:e}:{...e};return t.align||(t.align="start"),t.behavior&&uQ||(t.behavior="auto"),void 0===t.offset&&(t.offset=0),t}let u0=ue(([{gap:e,listRefresh:t,sizes:n,totalCount:r},{fixedFooterHeight:o,fixedHeaderHeight:i,footerHeight:a,headerHeight:s,scrollingInProgress:l,scrollTo:u,smoothScrollTargetReached:c,viewportHeight:d},{log:p}])=>{let f=l9(),h=l9(),m=l3(0),g=null,v=null,y=null;function x(){null!==g&&(g(),g=null),null!==y&&(y(),y=null),v&&(clearTimeout(v),v=null),l(0,!1)}return lG(l0(f,l4(n,d,r,m,s,a,p),l4(e,i,o),lQ(([[e,n,r,o,i,a,s,u],d,p,m])=>{let b=uJ(e),{align:w,behavior:A,offset:C}=b,S=o-1,M=u$(b,n,S),T=uB(M,n.offsetTree,d)+a;"end"===w?(T+=p+uA(n.sizeTree,M)[1]-r+m,M===S&&(T+=s)):"center"===w?T+=(p+uA(n.sizeTree,M)[1]-r+m)/2:T-=i,void 0!==C&&0!==C&&(T+=C);let k=t=>{x(),t?(u("retrying to scroll to",{location:e},0),f(0,e)):(h(0,!0),u("list did not change, scroll successful",{},0))};if(x(),"smooth"===A){let e=!1;y=t(1,t=>{e=e||t}),g=lq(c,()=>{k(e)})}else g=lq(l0(t,e=>{let t=setTimeout(()=>{e(!1)},150);return n=>{n&&(e(!0),clearTimeout(t))}}),k);return v=setTimeout(()=>{x()},1200),l(0,!0),u("scrolling from index to",{behavior:A,index:M,top:T},0),{behavior:A,top:T}})),u),{scrollTargetReached:h,scrollToIndex:f,topListHeight:m}},lH(uY,uv,us),{singleton:!0});function u1(e,t){0===e?t():requestAnimationFrame(()=>{u1(e-1,t)})}function u2(e,t){if(void 0===e)return 0;let n=t-1;return Math.max(0,Math.min("number"==typeof e?e:"LAST"===e.index?n:e.index,n))}function u5(e){return void 0===e||("number"==typeof e?0===e:0===e.index&&(void 0===e.align||"start"===e.align)&&(void 0===e.offset||0===e.offset))}let u4=ue(([{defaultItemSize:e,listRefresh:t,sizes:n},{scrollTop:r},{scrollTargetReached:o,scrollToIndex:i},{didMount:a}])=>{let s=l3(!0),l=l3(0),u=l3(!0);return lG(l0(a,l4(l),lK(([e,t])=>!u5(t)),lJ(!1)),s),lG(l0(a,l4(l),lK(([e,t])=>!u5(t)),lJ(!1)),u),l0(un(t,a),l4(s,n,e,u),lK(([[,e],t,{sizeTree:n},r,o])=>e&&(!ub(n)||lB(r))&&!t&&!o),l4(l))(1,([,e])=>{if(void 0===e){s(0,!0),u(0,!0);return}lq(o,()=>{u(0,!0)}),u1(4,()=>{lq(r,()=>{s(0,!0)}),i(0,e)})}),{initialItemFinalLocationReached:u,initialTopMostItemIndex:l,scrolledToInitialItem:s}},lH(uY,uv,u0,uK),{singleton:!0});function u3(e,t){return 1.01>Math.abs(e-t)}let u6="down",u9={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollHeight:0,scrollTop:0,viewportHeight:0}},u7=ue(([{footerHeight:e,headerHeight:t,scrollBy:n,scrollContainerState:r,scrollTop:o,viewportHeight:i}])=>{let a=l3(!1),s=l3(!0),l=l9(),u=l9(),c=l3(4),d=l3(0),p=l6(l0(uo(l0(ur(o),l2(1),lJ(!0)),l0(ur(o),l2(1),lJ(!1),lY(100))),lX()),!1),f=l6(l0(uo(l0(n,lJ(!0)),l0(n,lJ(!1),lY(200))),lX()),!1);lG(l0(un(ur(o),ur(d)),lQ(([e,t])=>e<=t),lX()),s),lG(l0(s,l5(50)),u);let h=l7(l0(un(r,ur(i),ur(t),ur(e),ur(c)),l1((e,[{scrollHeight:t,scrollTop:n},r,o,i,a])=>{let s={scrollHeight:t,scrollTop:n,viewportHeight:r};if(n+r-t>-a){let t,r;return n>e.state.scrollTop?(t="SCROLLED_DOWN",r=e.state.scrollTop-n):(t="SIZE_DECREASED",r=e.state.scrollTop-n||e.scrollTopDelta),{atBottom:!0,atBottomBecause:t,scrollTopDelta:r,state:s}}return{atBottom:!1,notAtBottomBecause:s.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":r<e.state.viewportHeight?"VIEWPORT_HEIGHT_DECREASING":n<e.state.scrollTop?"SCROLLING_UPWARDS":"NOT_FULLY_SCROLLED_TO_LAST_ITEM_BOTTOM",state:s}},u9),lX((e,t)=>void 0!==e&&e.atBottom===t.atBottom))),m=l6(l0(r,l1((e,{scrollHeight:t,scrollTop:n,viewportHeight:r})=>{if(!u3(e.scrollHeight,t)){let o=t-(n+r)<1;return e.scrollTop!==n&&o?{changed:!0,jump:e.scrollTop-n,scrollHeight:t,scrollTop:n}:{changed:!0,jump:0,scrollHeight:t,scrollTop:n}}return{changed:!1,jump:0,scrollHeight:t,scrollTop:n}},{changed:!1,jump:0,scrollHeight:0,scrollTop:0}),lK(e=>e.changed),lQ(e=>e.jump)),0);lG(l0(h,lQ(e=>e.atBottom)),a),lG(l0(a,l5(50)),l);let g=l3(u6);lG(l0(r,lQ(({scrollTop:e})=>e),lX(),l1((e,t)=>lU(f)?{direction:e.direction,prevScrollTop:t}:{direction:t<e.prevScrollTop?"up":u6,prevScrollTop:t},{direction:u6,prevScrollTop:0}),lQ(e=>e.direction)),g),lG(l0(r,l5(50),lJ("none")),g);let v=l3(0);return lG(l0(p,lK(e=>!e),lJ(0)),v),lG(l0(o,l5(100),l4(p),lK(([e,t])=>t),l1(([e,t],[n])=>[t,n],[0,0]),lQ(([e,t])=>t-e)),v),{atBottomState:h,atBottomStateChange:l,atBottomThreshold:c,atTopStateChange:u,atTopThreshold:d,isAtBottom:a,isAtTop:s,isScrolling:p,lastJumpDueToItemResize:m,scrollDirection:g,scrollVelocity:v}},lH(uv)),u8="bottom",ce="none";function ct(e,t,n){return"number"==typeof e?"up"===n&&"top"===t||n===u6&&t===u8?e:0:"up"===n?"top"===t?e.main:e.reverse:t===u8?e.main:e.reverse}function cn(e,t){return"number"==typeof e?e:e[t]??0}let cr=ue(([{deviation:e,fixedHeaderHeight:t,headerHeight:n,scrollTop:r,viewportHeight:o}])=>{let i=l9(),a=l3(0),s=l3(0),l=l3(0),u=l6(l0(un(ur(r),ur(o),ur(n),ur(i,uj),ur(l),ur(a),ur(t),ur(e),ur(s)),lQ(([e,t,n,[r,o],i,a,s,l,u])=>{let c=e-l,d=Math.max(n-c,0),p=ce,f=cn(u,"top"),h=cn(u,u8);return r-=l,r+=n+s,o+=n+s,r>e+(a+s)-f&&(p="up"),(o-=l)<e-d+t+h&&(p=u6),p!==ce?[Math.max(c-n-ct(i,"top",p)-f,0),c-d-s+t+ct(i,u8,p)+h]:null}),lK(e=>null!==e),lX(uj)),[0,0]);return{increaseViewportBy:s,listBoundary:i,overscan:l,topListHeight:a,visibleRange:u}},lH(uv),{singleton:!0}),co={bottom:0,firstItemIndex:0,items:[],offsetBottom:0,offsetTop:0,top:0,topItems:[],topListHeight:0,totalCount:0};function ci(e,t,n,r,o,i){let{lastIndex:a,lastOffset:s,lastSize:l}=o,u=0,c=0;if(e.length>0){u=e[0].offset;let t=e[e.length-1];c=t.offset+t.size}let d=n-a,p=u,f=s+d*l+(d-1)*r-c;return{bottom:c,firstItemIndex:i,items:cs(e,o,i),offsetBottom:f,offsetTop:u,top:p,topItems:cs(t,o,i),topListHeight:t.reduce((e,t)=>t.size+e,0),totalCount:n}}function ca(e,t,n,r,o,i){let a=0;if(n.groupIndices.length>0)for(let t of n.groupIndices){if(t-a>=e)break;a++}let s=e+a,l=u2(t,s);return ci(Array.from({length:s}).map((e,t)=>({data:i[t+l],index:t+l,offset:0,size:0})),[],s,o,n,r)}function cs(e,t,n){if(0===e.length)return[];if(!u_(t))return e.map(e=>({...e,index:e.index+n,originalIndex:e.index}));let r=e[0].index,o=e[e.length-1].index,i=[],a=uS(t.groupOffsetTree,r,o),s,l=0;for(let r of e){let e;(!s||s.end<r.index)&&(s=a.shift(),l=t.groupIndices.indexOf(s.start)),e=r.index===s.start?{index:l,type:"group"}:{groupIndex:l,index:r.index-(l+1)+n},i.push({...e,data:r.data,offset:r.offset,originalIndex:r.index,size:r.size})}return i}function cl(e,t){return void 0===e?0:"number"==typeof e?e:e[t]??0}let cu=ue(([{data:e,firstItemIndex:t,gap:n,sizes:r,totalCount:o},i,{listBoundary:a,topListHeight:s,visibleRange:l},{initialTopMostItemIndex:u,scrolledToInitialItem:c},{topListHeight:d},p,{didMount:f},{recalcInProgress:h}])=>{let m=l3([]),g=l3(0),v=l9(),y=l3(0);lG(i.topItemsIndexes,m);let x=l6(l0(un(f,h,ur(l,uj),ur(o),ur(r),ur(u),c,ur(m),ur(t),ur(n),ur(y),e),lK(([e,t,,n,,,,,,,,r])=>{let o=void 0!==r&&r.length!==n;return e&&!t&&!o}),lQ(([,,[e,t],n,r,o,i,a,s,l,u,c])=>{var d;let{offsetTree:p,sizeTree:f}=r,h=lU(g);if(0===n)return{...co,totalCount:n};if(0===e&&0===t)return 0===h?{...co,totalCount:n}:ca(h,o,r,s,l,c||[]);if(ub(f))return h>0?null:ci(function(e,t,n){if(u_(t)){let r=uV(e,t);return[{index:uA(t.groupOffsetTree,r)[0],offset:0,size:0},{data:n?.[0],index:r,offset:0,size:0}]}return[{data:n?.[0],index:e,offset:0,size:0}]}(u2(o,n),r,c),[],n,l,r,s);let m=[];if(a.length>0){let e=a[0],t=a[a.length-1],n=0;for(let r of uS(f,e,t)){let o=r.value,i=Math.max(r.start,e),a=Math.min(r.end,t);for(let e=i;e<=a;e++)m.push({data:c?.[e],index:e,offset:n,size:o}),n+=o}}if(!i)return ci([],m,n,l,r,s);let v=a.length>0?a[a.length-1]+1:0,y=function(e,t,n,r=0){let o,i;return r>0&&(t=Math.max(t,e[uN(e,r,uL)].offset)),ux((o=uN(e,t,uz),i=uN(e,n,uz,o),e.slice(o,i+1)),uG)}(p,e,t,v);if(0===y.length)return null;let x=n-1,b=((n=>{for(let r of y){let o=r.value,i=o.offset,a=r.start,s=o.size;if(o.offset<e){let t=(a+=Math.floor((e-o.offset+l)/(s+l)))-r.start;i+=t*s+t*l}a<v&&(i+=(v-a)*s,a=v);let u=Math.min(r.end,x);for(let e=a;e<=u&&!(i>=t);e++)n.push({data:c?.[e],index:e,offset:i,size:s}),i+=s+l}})(d=[]),d),w=cl(u,"top"),A=cl(u,u8);if(b.length>0&&(w>0||A>0)){let e=b[0],t=b[b.length-1];if(w>0&&e.index>v){let t=Math.min(w,e.index-v),n=[],r=e.offset;for(let o=e.index-1;o>=e.index-t;o--){let t=uS(f,o,o)[0]?.value??e.size;r-=t+l,n.unshift({data:c?.[o],index:o,offset:r,size:t})}b.unshift(...n)}if(A>0&&t.index<x){let e=Math.min(A,x-t.index),n=t.offset+t.size+l;for(let r=t.index+1;r<=t.index+e;r++){let e=uS(f,r,r)[0]?.value??t.size;b.push({data:c?.[r],index:r,offset:n,size:e}),n+=e+l}}}return ci(b,m,n,l,r,s)}),lK(e=>null!==e),lX()),co);lG(l0(e,lK(lB),lQ(e=>e?.length)),o),lG(l0(x,lQ(e=>e.topListHeight)),d),lG(d,s),lG(l0(x,lQ(e=>[e.top,e.bottom])),a),lG(l0(x,lQ(e=>e.items)),v);let b=l7(l0(x,lK(({items:e})=>e.length>0),l4(o,e),lK(([{items:e},t])=>e[e.length-1].originalIndex===t-1),lQ(([,e,t])=>[e-1,t]),lX(uj),lQ(([e])=>e))),w=l7(l0(x,l5(200),lK(({items:e,topItems:t})=>e.length>0&&e[0].originalIndex===t.length),lQ(({items:e})=>e[0].index),lX())),A=l7(l0(x,lK(({items:e})=>e.length>0),lQ(({items:e})=>{let t=0,n=e.length-1;for(;"group"===e[t].type&&t<n;)t++;for(;"group"===e[n].type&&n>t;)n--;return{endIndex:e[n].index,startIndex:e[t].index}}),lX(uO)));return{endReached:b,initialItemCount:g,itemsRendered:v,listState:x,minOverscanItemCount:y,rangeChanged:A,startReached:w,topItemsIndexes:m,...p}},lH(uY,uX,cr,u4,u0,u7,uK,uP),{singleton:!0}),cc=ue(([{fixedFooterHeight:e,fixedHeaderHeight:t,footerHeight:n,headerHeight:r},{listState:o}])=>{let i=l9(),a=l6(l0(un(n,e,r,t,o),lQ(([e,t,n,r,o])=>e+t+n+r+o.offsetBottom+o.bottom)),0);return lG(ur(a),i),{totalListHeight:a,totalListHeightChanged:i}},lH(uv,cu),{singleton:!0}),cd=ue(([{viewportHeight:e},{totalListHeight:t}])=>{let n=l3(!1),r=l6(l0(un(n,e,t),lK(([e])=>e),lQ(([,e,t])=>Math.max(0,e-t)),l5(0),lX()),0);return{alignToBottom:n,paddingTopAddition:r}},lH(uv,cc),{singleton:!0}),cp=ue(()=>({context:l3(null)})),cf=({itemBottom:e,itemTop:t,locationParams:{align:n,behavior:r,...o},viewportBottom:i,viewportTop:a})=>t<a?{...o,align:n??"start",...void 0===r?{}:{behavior:r}}:e>i?{...o,align:n??"end",...void 0===r?{}:{behavior:r}}:null,ch=ue(([{gap:e,sizes:t,totalCount:n},{fixedFooterHeight:r,fixedHeaderHeight:o,headerHeight:i,scrollingInProgress:a,scrollTop:s,viewportHeight:l},{scrollToIndex:u}])=>{let c=l9();return lG(l0(c,l4(t,l,n,i,o,r,s),l4(e),lQ(([[e,t,n,r,o,i,s,l],u])=>{let{calculateViewLocation:c=cf,done:d,...p}=e,f=u$(e,t,r-1),h=uB(f,t.offsetTree,u)+o+i,m=c({itemBottom:h+uA(t.sizeTree,f)[1],itemTop:h,locationParams:p,viewportBottom:l+n-s,viewportTop:l+i});return null===m?d?.():d&&lq(l0(a,lK(e=>!e),l2(lU(a)?1:2)),d),m}),lK(e=>null!==e)),u),{scrollIntoView:c}},lH(uY,uv,u0,cu,us),{singleton:!0});function cm(e){return!1!==e&&("smooth"===e?"smooth":"auto")}let cg=ue(([{listRefresh:e,totalCount:t,fixedItemSize:n,data:r},{atBottomState:o,isAtBottom:i},{scrollToIndex:a},{scrolledToInitialItem:s},{didMount:l,propsReady:u},{log:c},{scrollingInProgress:d},{context:p},{scrollIntoView:f}])=>{let h=l3(!1),m=l9(),g=null;function v(e){a(0,{align:"end",behavior:e,index:"LAST"})}function y(e){setTimeout(lq(o,t=>{e&&!t.atBottom&&"SIZE_INCREASED"===t.notAtBottomBecause&&null===g&&(lU(c)("scrolling to bottom due to increased size",{},0),v("auto"))}),100)}l0(un(l0(ur(t),l2(1)),l),l4(ur(h),i,s,d),lQ(([[e,t],n,r,o,i])=>{let a,s=t&&o,l="auto";return s&&(a=r||i,l="function"==typeof n?cm(n(a)):a&&cm(n),s=s&&!1!==l),{followOutputBehavior:l,shouldFollow:s,totalCount:e}}),lK(({shouldFollow:e})=>e))(1,({followOutputBehavior:t,totalCount:r})=>{null!==g&&(g(),g=null),void 0===lU(n)?g=lq(e,()=>{lU(c)("following output to ",{totalCount:r},0),v(t),g=null}):requestAnimationFrame(()=>{lU(c)("following output to ",{totalCount:r},0),v(t)})}),l0(un(ur(h),t,u),lK(([e,,t])=>!1!==e&&t),l1(({value:e},[,t])=>({refreshed:e===t,value:t}),{refreshed:!1,value:0}),lK(({refreshed:e})=>e),l4(h,t))(1,([,e])=>{lU(s)&&y(!1!==e)}),m(1,()=>{y(!1!==lU(h))}),un(ur(h),o)(1,([e,t])=>{!1===e||t.atBottom||"VIEWPORT_HEIGHT_DECREASING"!==t.notAtBottomBecause||v("auto")});let x=l3(null),b=l9();return lG(uo(l0(ur(r),lQ(e=>e?.length??0)),l0(ur(t))),b),l0(un(l0(b,l2(1)),l),l4(ur(x),s,d,p),lQ(([[e,t],n,r,o,i])=>t&&r&&n?.({context:i,totalCount:e,scrollingInProgress:o})),lK(e=>!!e),l5(0))(1,t=>{null!==g&&(g(),g=null),void 0===lU(n)?g=lq(e,()=>{lU(c)("scrolling into view",{}),f(0,t),g=null}):requestAnimationFrame(()=>{lU(c)("scrolling into view",{}),f(0,t)})}),{autoscrollToBottom:m,followOutput:h,scrollIntoViewOnChange:x}},lH(uY,u7,u0,u4,uK,us,uv,cp,ch)),cv=ue(([{data:e,firstItemIndex:t,gap:n,sizes:r},{initialTopMostItemIndex:o},{initialItemCount:i,listState:a},{didMount:s}])=>(lG(l0(s,l4(i),lK(([,e])=>0!==e),l4(o,r,t,n,e),lQ(([[,e],t,n,r,o,i=[]])=>ca(e,t,n,r,o,i))),a),{}),lH(uY,u4,cu,uK),{singleton:!0}),cy=ue(([{didMount:e},{scrollTo:t},{listState:n}])=>{let r=l3(0);return l0(e,l4(r),lK(([,e])=>0!==e),lQ(([,e])=>({top:e})))(1,e=>{lq(l0(n,l2(1),lK(e=>e.items.length>1)),()=>{requestAnimationFrame(()=>{t(0,e)})})}),{initialScrollTop:r}},lH(uK,uv,cu),{singleton:!0}),cx=ue(([{scrollVelocity:e}])=>{let t=l3(!1),n=l9(),r=l3(!1);return lG(l0(e,l4(r,t,n),lK(([e,t])=>!1!==t&&void 0!==t),lQ(([e,t,n,r])=>{let{enter:o,exit:i}=t;if(n){if(i(e,r))return!1}else if(o(e,r))return!0;return n}),lX()),t),l0(un(t,e,n),l4(r))(1,([[e,t,n],r])=>{e&&!1!==r&&void 0!==r&&r.change&&r.change(t,n)}),{isSeeking:t,scrollSeekConfiguration:r,scrollSeekRangeChanged:n,scrollVelocity:e}},lH(u7),{singleton:!0}),cb=ue(([{scrollContainerState:e,scrollTo:t}])=>{let n=l9(),r=l9(),o=l9(),i=l3(!1),a=l3(void 0);return lG(l0(un(n,r),lQ(([{scrollTop:e,viewportHeight:t},{offsetTop:n,listHeight:r}])=>({scrollHeight:r,scrollTop:Math.max(0,e-n),viewportHeight:t}))),e),lG(l0(t,l4(r),lQ(([e,{offsetTop:t}])=>({...e,top:e.top+t}))),o),{customScrollParent:a,useWindowScroll:i,windowScrollContainerState:n,windowScrollTo:o,windowViewportRect:r}},lH(uv)),cw=ue(([{sizeRanges:e,sizes:t},{headerHeight:n,scrollTop:r},{initialTopMostItemIndex:o},{didMount:i},{useWindowScroll:a,windowScrollContainerState:s,windowViewportRect:l}])=>{let u=l9(),c=l3(void 0),d=l3(null),p=l3(null);return lG(s,d),lG(l,p),l0(u,l4(t,r,a,d,p,n))(1,([e,t,n,r,o,i,a])=>{let s=uM(t.sizeTree).map(({k:e,v:t},n,r)=>{let o=r[n+1];return{endIndex:void 0===o?1/0:o.k-1,size:t,startIndex:e}});r&&null!==o&&null!==i&&(n=o.scrollTop-i.offsetTop),e({ranges:s,scrollTop:n-=a})}),lG(l0(c,lK(lB),lQ(cA)),o),lG(l0(i,l4(c),lK(([,e])=>void 0!==e),lX(),lQ(([,e])=>e.ranges)),e),{getState:u,restoreStateFrom:c}},lH(uY,uv,u4,uK,cb));function cA(e){return{align:"start",index:0,offset:e.scrollTop}}let cC=ue(([{topItemsIndexes:e}])=>{let t=l3(0);return lG(l0(t,lK(e=>e>=0),lQ(e=>Array.from({length:e}).map((e,t)=>t))),e),{topItemCount:t}},lH(cu));function cS(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}let cM=cS(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),cT=ue(([{deviation:e,scrollBy:t,scrollingInProgress:n,scrollTop:r},{isAtBottom:o,isScrolling:i,lastJumpDueToItemResize:a,scrollDirection:s},{listState:l},{beforeUnshiftWith:u,gap:c,shiftWithOffset:d,sizes:p},{log:f},{recalcInProgress:h}])=>{let m=l7(l0(l,l4(a),l1(([,e,t,n],[{bottom:r,items:o,offsetBottom:i,totalCount:a},s])=>{let l=r+i,u=0;return t===a&&e.length>0&&o.length>0&&(0===o[0].originalIndex&&0===e[0].originalIndex||0!=(u=l-n)&&(u+=s)),[u,o,a,l]},[0,[],0,0]),lK(([e])=>0!==e),l4(r,s,n,o,f,h),lK(([,e,t,n,,,r])=>!r&&!n&&0!==e&&"up"===t),lQ(([[e],,,,,t])=>(t("Upward scrolling compensation",{amount:e},0),e))));function g(n){n>0?(t(0,{behavior:"auto",top:-n}),e(0,0)):(e(0,0),t(0,{behavior:"auto",top:-n}))}return l0(m,l4(e,i))(1,([t,n,r])=>{r&&cM()?e(0,n-t):g(-t)}),l0(un(l6(i,!1),e,h),lK(([e,t,n])=>!e&&!n&&0!==t),lQ(([e,t])=>t),l5(1))(1,g),lG(l0(d,lQ(e=>({top:-e}))),t),l0(u,l4(p,c),lQ(([e,{groupIndices:t,lastSize:n,sizeTree:r},o])=>{if(0===t.length)return e*(n+o);let i=0,a=uw(r,0),s=0,l=0;for(;s<e;){s++,i+=a;let r=t.length===l+1?1/0:t[l+1]-t[l]-1;s+r>e&&(i-=a,r=e-s+1),s+=r,i+=r*(n+o),l++}return i}))(1,n=>{e(0,n),requestAnimationFrame(()=>{t(0,{top:n}),requestAnimationFrame(()=>{e(0,0),h(0,!1)})})}),{deviation:e}},lH(uv,u7,cu,uY,us,uP)),ck=ue(([e,t,n,r,o,i,a,s,l,u,c])=>({...e,...t,...n,...r,...o,...i,...a,...s,...l,...u,...c}),lH(cr,cv,uK,cx,cc,cy,cd,cb,ch,us,cp)),cI=ue(([{data:e,defaultItemSize:t,firstItemIndex:n,fixedItemSize:r,fixedGroupSize:o,gap:i,groupIndices:a,heightEstimates:s,itemSize:l,sizeRanges:u,sizes:c,statefulTotalCount:d,totalCount:p,trackItemSizes:f},{initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:g},v,y,x,b,{scrollToIndex:w},A,{topItemCount:C},{groupCounts:S},M])=>{let{listState:T,minOverscanItemCount:k,topItemsIndexes:I,rangeChanged:E,...R}=b;return lG(E,M.scrollSeekRangeChanged),lG(l0(M.windowViewportRect,lQ(e=>e.visibleHeight)),v.viewportHeight),{data:e,defaultItemHeight:t,firstItemIndex:n,fixedItemHeight:r,fixedGroupHeight:o,gap:i,groupCounts:S,heightEstimates:s,initialItemFinalLocationReached:h,initialTopMostItemIndex:m,scrolledToInitialItem:g,sizeRanges:u,topItemCount:C,topItemsIndexes:I,totalCount:p,...x,groupIndices:a,itemSize:l,listState:T,minOverscanItemCount:k,scrollToIndex:w,statefulTotalCount:d,trackItemSizes:f,rangeChanged:E,...R,...M,...v,sizes:c,...y}},lH(uY,u4,uv,cw,cg,cu,u0,cT,cC,uX,ck)),cE=typeof document>"u"?p().useEffect:p().useLayoutEffect;function cR(e,t,n){let r=Object.keys(t.required||{}),o=Object.keys(t.optional||{}),i=Object.keys(t.methods||{}),a=Object.keys(t.events||{}),s=p().createContext({});function l(e,n){for(let o of(void 0!==e.propsReady&&(0,e.propsReady)(0,!1),r))(0,e[t.required[o]])(0,n[o]);for(let r of o)r in n&&(0,e[t.optional[r]])(0,n[r]);void 0!==e.propsReady&&(0,e.propsReady)(0,!0)}function u(e){return a.reduce((n,r)=>{var o;let i,a,s;return n[r]=(o=e[t.events[r]],s=()=>i?.(),function(e,t){switch(e){case 1:return t?a===t?void 0:(s(),a=t,i=o(1,t)):(s(),lV);case 2:s(),a=null;return}}),n},{})}return{Component:p().forwardRef(function(d,f){var h;let{children:m,...g}=d,[v]=p().useState(()=>{var t;let n,r;return n=new Map,l(t=(r=({constructor:e,dependencies:t,id:o,singleton:i})=>{if(i&&n.has(o))return n.get(o);let a=e(t.map(e=>r(e)));return i&&n.set(o,a),a})(e),g),t}),[y]=p().useState(()=>u(v));return cE(()=>{for(let e of a)e in g&&(0,y[e])(1,g[e]);return()=>{Object.values(y).map(lW)}},[g,y,v]),cE(()=>{l(v,g)}),p().useImperativeHandle(f,(h=i.reduce((e,n)=>(e[n]=e=>{(0,v[t.methods[n]])(0,e)},e),{}),()=>h)),(0,c.jsx)(s.Provider,{value:v,children:void 0===n?m:(0,c.jsx)(n,{...function(e,t){let n={},r={},o=0,i=e.length;for(;o<i;)r[e[o]]=1,o+=1;for(let e in t)Object.hasOwn(r,e)||(n[e]=t[e]);return n}([...r,...o,...a],g),children:m})})}),useEmitter:(e,t)=>{let n=p().useContext(s)[e];cE(()=>n(1,t),[t,n])},useEmitterValue:parseInt(p().version,10)>=18?e=>{let t=p().useContext(s)[e],n=p().useCallback(e=>t(1,e),[t]);return p().useSyncExternalStore(n,()=>lU(t),()=>lU(t))}:e=>{let t=p().useContext(s)[e],[n,r]=p().useState(()=>lU(t));return cE(()=>t(1,e=>{e!==n&&r(()=>e)}),[t,n]),n},usePublisher:e=>{let t=p().useContext(s);return p().useCallback(n=>{(0,t[e])(0,n)},[t,e])}}}let cD=p().createContext(void 0),cO=p().createContext(void 0),cj="-webkit-sticky",cP="sticky",cN=cS(()=>{if(typeof document>"u")return cP;let e=document.createElement("div");return e.style.position=cj,e.style.position===cj?cj:cP}),cF=typeof document>"u"?p().useEffect:p().useLayoutEffect;function c_(e){return"self"in e}function cL(e,t,n,r=lV,o,i){let a=p().useRef(null),s=p().useRef(null),l=p().useRef(null),u=p().useCallback(n=>{let r,o,a,u=n.target;if("body"in u||c_(u)){let e=c_(u)?u:u.defaultView;a=!0===i?ud(e,e.scrollX):e.scrollY,r=!0===i?e.document.documentElement.scrollWidth:e.document.documentElement.scrollHeight,o=!0===i?e.innerWidth:e.innerHeight}else a=!0===i?ud(u,u.scrollLeft):u.scrollTop,r=!0===i?u.scrollWidth:u.scrollHeight,o=!0===i?u.offsetWidth:u.offsetHeight;let c=()=>{e({scrollHeight:r,scrollTop:Math.max(a,0),viewportHeight:o})};!0===n.suppressFlushSync?c():eD().flushSync(c),null!==s.current&&(a===s.current||a<=0||a===r-o)&&(s.current=null,t(!0),l.current&&(clearTimeout(l.current),l.current=null))},[e,t,i]);return p().useEffect(()=>{let e=o??a.current;return uc(e),r(o??a.current),u({suppressFlushSync:!0,target:e}),e.addEventListener("scroll",u,{passive:!0}),()=>{uc(e),r(null),e.removeEventListener("scroll",u)}},[a,u,n,r,o]),{scrollByCallback:function(e){!0===i&&(e={...void 0===e.behavior?{}:{behavior:e.behavior},...void 0===e.top?{}:{left:ud(a.current,e.top)}}),a.current.scrollBy(e)},scrollerRef:a,scrollToCallback:function(n){let r,o,u,c=a.current;if(!c||(!0===i?"offsetWidth"in c&&0===c.offsetWidth:"offsetHeight"in c&&0===c.offsetHeight))return;let d="smooth"===n.behavior;c_(c)?(o=Math.max(uF(c.document.documentElement,!0===i?"width":"height"),!0===i?c.document.documentElement.scrollWidth:c.document.documentElement.scrollHeight),r=!0===i?c.innerWidth:c.innerHeight,u=!0===i?ud(c,c.scrollX):c.scrollY):(o=c[!0===i?"scrollWidth":"scrollHeight"],r=uF(c,!0===i?"width":"height"),u=!0===i?ud(c,c.scrollLeft):c.scrollTop);let p=o-r;if(void 0===n.top)return void c.scrollTo(n);let f=Math.ceil(Math.max(Math.min(p,n.top),0));if(n.top=f,u3(r,o)||f===u){e({scrollHeight:o,scrollTop:u,viewportHeight:r}),d&&t(!0);return}d?(s.current=f,l.current&&clearTimeout(l.current),l.current=setTimeout(()=>{l.current=null,s.current=null,t(!0)},1e3)):s.current=null,!0===i&&(n={...void 0===n.behavior?{}:{behavior:n.behavior},left:ud(c,f)}),c.scrollTo(n)}}}function cz(e){return e}let cB=ue(()=>{let e=l3(e=>`Item ${e}`),t=l3(e=>`Group ${e}`),n=l3({}),r=l3(cz),o=l3("div"),i=l3(lV),a=(e,t=null)=>l6(l0(n,lQ(t=>t[e]),lX()),t);return{components:n,computeItemKey:r,EmptyPlaceholder:a("EmptyPlaceholder"),FooterComponent:a("Footer"),GroupComponent:a("Group","div"),groupContent:t,HeaderComponent:a("Header"),HeaderFooterTag:o,ItemComponent:a("Item","div"),itemContent:e,ListComponent:a("List","div"),ScrollerComponent:a("Scroller","div"),scrollerRef:i,ScrollSeekPlaceholder:a("ScrollSeekPlaceholder"),TopItemListComponent:a("TopItemList")}}),cV=ue(([e,t])=>({...e,...t}),lH(cI,cB)),c$=({height:e})=>(0,c.jsx)("div",{style:{height:e}}),cH={overflowAnchor:"none",position:cN(),zIndex:1},cW={overflowAnchor:"none"},cU={...cW,display:"inline-block",height:"100%"},cG=p().memo(function({showTopList:e=!1}){let t=c8("listState"),n=de("sizeRanges"),r=c8("useWindowScroll"),o=c8("customScrollParent"),i=de("windowScrollContainerState"),a=de("scrollContainerState"),s=c8("itemContent"),l=c8("context"),u=c8("groupContent"),f=c8("trackItemSizes"),h=c8("itemSize"),m=c8("log"),g=de("gap"),v=c8("horizontalDirection"),{callbackRef:y}=uh(n,h,f,e?lV:o||r?i:a,m,g,o,v,c8("skipAnimationFrameInResizeObserver")),[x,b]=p().useState(0);c7("deviation",e=>{x!==e&&b(e)});let w=c8("EmptyPlaceholder"),A=c8("ScrollSeekPlaceholder")??c$,C=c8("ListComponent"),S=c8("ItemComponent"),M=c8("GroupComponent"),T=c8("computeItemKey"),k=c8("isSeeking"),I=c8("groupIndices").length>0,E=c8("alignToBottom"),R=c8("initialItemFinalLocationReached"),D=e?{}:{boxSizing:"border-box",...v?{display:"inline-block",height:"100%",marginInlineStart:0===x?E?"auto":0:x,paddingInlineEnd:t.offsetBottom,paddingInlineStart:t.offsetTop,whiteSpace:"nowrap"}:{marginTop:0===x?E?"auto":0:x,paddingBottom:t.offsetBottom,paddingTop:t.offsetTop},...R?{}:{visibility:"hidden"}};return e||0!==t.totalCount||null==w?(0,c.jsx)(C,{...cQ(C,l),"data-testid":e?"virtuoso-top-item-list":"virtuoso-item-list",ref:y,style:D,children:(e?t.topItems:t.items).map(e=>{let n=e.originalIndex,r=T(n+t.firstItemIndex,e.data,l);return k?(0,d.createElement)(A,{...cQ(A,l),height:e.size,index:e.index,key:r,type:e.type||"item",..."group"===e.type?{}:{groupIndex:e.groupIndex}}):"group"===e.type?(0,d.createElement)(M,{...cQ(M,l),"data-index":n,"data-item-index":e.index,"data-known-size":e.size,key:r,style:cH},u(e.index,l)):(0,d.createElement)(S,{...cQ(S,l),...cJ(S,e.data),"data-index":n,"data-item-group-index":e.groupIndex,"data-item-index":e.index,"data-known-size":e.size,key:r,style:v?cU:cW},I?s(e.index,e.groupIndex,e.data,l):s(e.index,e.data,l))})}):(0,c.jsx)(w,{...cQ(w,l)})}),cq={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},cY={outline:"none",overflowX:"auto",position:"relative"},cZ=e=>({height:"100%",position:"absolute",top:0,width:"100%",...e?{display:"flex",flexDirection:"column"}:void 0}),cX=(e,t,n=0)=>({...cZ(e),position:t?"relative":"absolute",top:t?-n:0}),cK={position:cN(),top:0,width:"100%",zIndex:1};function cQ(e,t){if("string"!=typeof e)return{context:t}}function cJ(e,t){return{item:"string"==typeof e?void 0:t}}let c0=p().memo(function(){let e=c8("HeaderComponent"),t=de("headerHeight"),n=c8("HeaderFooterTag"),r=up(p().useMemo(()=>e=>{t(uF(e,"height"))},[t]),!0,c8("skipAnimationFrameInResizeObserver")),o=c8("context");return null!=e?(0,c.jsx)(n,{ref:r,children:(0,c.jsx)(e,{...cQ(e,o)})}):null}),c1=p().memo(function(){let e=c8("FooterComponent"),t=de("footerHeight"),n=c8("HeaderFooterTag"),r=up(p().useMemo(()=>e=>{t(uF(e,"height"))},[t]),!0,c8("skipAnimationFrameInResizeObserver")),o=c8("context");return null!=e?(0,c.jsx)(n,{ref:r,children:(0,c.jsx)(e,{...cQ(e,o)})}):null});function c2({useEmitter:e,useEmitterValue:t,usePublisher:n}){return p().memo(function({children:r,style:o,context:i,...a}){let s=n("scrollContainerState"),l=t("ScrollerComponent"),u=n("smoothScrollTargetReached"),d=t("scrollerRef"),p=t("horizontalDirection")||!1,{scrollByCallback:f,scrollerRef:h,scrollToCallback:m}=cL(s,u,l,d,void 0,p);return e("scrollTo",m),e("scrollBy",f),(0,c.jsx)(l,{"data-testid":"virtuoso-scroller","data-virtuoso-scroller":!0,ref:h,style:{...p?cY:cq,...o},tabIndex:0,...a,...cQ(l,i),children:r})})}function c5({useEmitter:e,useEmitterValue:t,usePublisher:n}){return p().memo(function({children:r,style:o,context:i,...a}){let s=n("windowScrollContainerState"),l=t("ScrollerComponent"),u=n("smoothScrollTargetReached"),d=t("totalListHeight"),f=t("deviation"),h=t("customScrollParent"),m=p().useRef(null),{scrollByCallback:g,scrollerRef:v,scrollToCallback:y}=cL(s,u,l,t("scrollerRef"),h);return cF(()=>(v.current=h??m.current?.ownerDocument.defaultView,()=>{v.current=null}),[v,h]),e("windowScrollTo",y),e("scrollBy",g),(0,c.jsx)(l,{ref:m,"data-virtuoso-scroller":!0,style:{position:"relative",...o,...0===d?void 0:{height:d+f}},...a,...cQ(l,i),children:r})})}let c4=({children:e})=>{let t=p().useContext(cD),n=de("viewportHeight"),r=de("fixedItemHeight"),o=c8("alignToBottom"),i=c8("horizontalDirection"),a=up(p().useMemo(()=>lz(n,e=>uF(e,i?"width":"height")),[n,i]),!0,c8("skipAnimationFrameInResizeObserver"));return p().useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,c.jsx)("div",{"data-viewport-type":"element",ref:a,style:cZ(o),children:e})},c3=({children:e})=>{let t=p().useContext(cD),n=de("windowViewportRect"),r=de("fixedItemHeight"),o=c8("customScrollParent"),i=c8("useWindowScroll"),a=c8("topListHeight"),s=ug(n,o,c8("skipAnimationFrameInResizeObserver")),l=c8("alignToBottom");return p().useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,c.jsx)("div",{"data-viewport-type":"window",ref:s,style:cX(l,i,a),children:e})},c6=({children:e})=>{let t=c8("TopItemListComponent")??"div",n=c8("headerHeight"),r={...cK,marginTop:`${n}px`},o=c8("context");return(0,c.jsx)(t,{style:r,...cQ(t,o),children:e})},{Component:c9,useEmitter:c7,useEmitterValue:c8,usePublisher:de}=cR(cV,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",scrollIntoViewOnChange:"scrollIntoViewOnChange",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",heightEstimates:"heightEstimates",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"HeaderFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",horizontalDirection:"horizontalDirection",skipAnimationFrameInResizeObserver:"skipAnimationFrameInResizeObserver"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},p().memo(function(e){let t=c8("useWindowScroll"),n=c8("topItemsIndexes").length>0,r=c8("customScrollParent"),o=c8("context");return(0,c.jsxs)(r||t?dn:dt,{...e,context:o,children:[n&&(0,c.jsx)(c6,{children:(0,c.jsx)(cG,{showTopList:!0})}),(0,c.jsxs)(r||t?c3:c4,{children:[(0,c.jsx)(c0,{}),(0,c.jsx)(cG,{}),(0,c.jsx)(c1,{})]})]})})),dt=c2({useEmitter:c7,useEmitterValue:c8,usePublisher:de}),dn=c5({useEmitter:c7,useEmitterValue:c8,usePublisher:de}),dr=ue(()=>{let e=l3(e=>(0,c.jsxs)("td",{children:["Item $",e]})),t=l3(null),n=l3(e=>(0,c.jsxs)("td",{colSpan:1e3,children:["Group ",e]})),r=l3(null),o=l3(null),i=l3({}),a=l3(cz),s=l3(lV),l=(e,t=null)=>l6(l0(i,lQ(t=>t[e]),lX()),t);return{components:i,computeItemKey:a,context:t,EmptyPlaceholder:l("EmptyPlaceholder"),FillerRow:l("FillerRow"),fixedFooterContent:o,fixedHeaderContent:r,itemContent:e,groupContent:n,ScrollerComponent:l("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder"),TableBodyComponent:l("TableBody","tbody"),TableComponent:l("Table","table"),TableFooterComponent:l("TableFoot","tfoot"),TableHeadComponent:l("TableHead","thead"),TableRowComponent:l("TableRow","tr"),GroupComponent:l("Group","tr")}}),di=ue(([e,t])=>({...e,...t}),lH(cI,dr)),da=({height:e})=>(0,c.jsx)("tr",{children:(0,c.jsx)("td",{style:{height:e}})}),ds=({height:e})=>(0,c.jsx)("tr",{children:(0,c.jsx)("td",{style:{border:0,height:e,padding:0}})}),dl={overflowAnchor:"none"},du={position:cN(),zIndex:2,overflowAnchor:"none"},dc=p().memo(function({showTopList:e=!1}){let t=dg("listState"),n=dg("computeItemKey"),r=dg("firstItemIndex"),o=dg("context"),i=dg("isSeeking"),a=dg("fixedHeaderHeight"),s=dg("groupIndices").length>0,l=dg("itemContent"),u=dg("groupContent"),c=dg("ScrollSeekPlaceholder")??da,p=dg("GroupComponent"),f=dg("TableRowComponent"),h=(e?t.topItems:[]).reduce((e,t,n)=>(0===n?e.push(t.size):e.push(e[n-1]+t.size),e),[]);return(e?t.topItems:t.items).map(t=>{let m=t.originalIndex,g=n(m+r,t.data,o),v=e?0===m?0:h[m-1]:0;return i?(0,d.createElement)(c,{...cQ(c,o),height:t.size,index:t.index,key:g,type:t.type||"item"}):"group"===t.type?(0,d.createElement)(p,{...cQ(p,o),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,key:g,style:{...du,top:a}},u(t.index,o)):(0,d.createElement)(f,{...cQ(f,o),...cJ(f,t.data),"data-index":m,"data-item-index":t.index,"data-known-size":t.size,"data-item-group-index":t.groupIndex,key:g,style:e?{...du,top:a+v}:dl},s?l(t.index,t.groupIndex,t.data,o):l(t.index,t.data,o))})}),dd=p().memo(function(){let e=dg("listState"),t=dg("topItemsIndexes").length>0,n=dv("sizeRanges"),r=dg("useWindowScroll"),o=dg("customScrollParent"),i=dv("windowScrollContainerState"),a=dv("scrollContainerState"),s=dg("trackItemSizes"),{callbackRef:l,ref:u}=uh(n,dg("itemSize"),s,o||r?i:a,dg("log"),void 0,o,!1,dg("skipAnimationFrameInResizeObserver")),[d,f]=p().useState(0);dm("deviation",e=>{d!==e&&(u.current.style.marginTop=`${e}px`,f(e))});let h=dg("EmptyPlaceholder"),m=dg("FillerRow")??ds,g=dg("TableBodyComponent"),v=dg("paddingTopAddition"),y=dg("statefulTotalCount"),x=dg("context");if(0===y&&null!=h)return(0,c.jsx)(h,{...cQ(h,x)});let b=(t?e.topItems:[]).reduce((e,t)=>e+t.size,0),w=e.offsetTop+v+d-b,A=e.offsetBottom,C=w>0?(0,c.jsx)(m,{context:x,height:w},"padding-top"):null,S=A>0?(0,c.jsx)(m,{context:x,height:A},"padding-bottom"):null;return(0,c.jsxs)(g,{"data-testid":"virtuoso-item-list",ref:l,...cQ(g,x),children:[C,t&&(0,c.jsx)(dc,{showTopList:!0}),(0,c.jsx)(dc,{}),S]})}),dp=({children:e})=>{let t=p().useContext(cD),n=dv("viewportHeight"),r=dv("fixedItemHeight"),o=up(p().useMemo(()=>lz(n,e=>uF(e,"height")),[n]),!0,dg("skipAnimationFrameInResizeObserver"));return p().useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),(0,c.jsx)("div",{"data-viewport-type":"element",ref:o,style:cZ(!1),children:e})},df=({children:e})=>{let t=p().useContext(cD),n=dv("windowViewportRect"),r=dv("fixedItemHeight"),o=dg("customScrollParent"),i=dg("useWindowScroll"),a=ug(n,o,dg("skipAnimationFrameInResizeObserver"));return p().useEffect(()=>{t&&(r(t.itemHeight),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),(0,c.jsx)("div",{"data-viewport-type":"window",ref:a,style:cX(!1,i),children:e})},{Component:dh,useEmitter:dm,useEmitterValue:dg,usePublisher:dv}=cR(di,{optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",groupContent:"groupContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",minOverscanItemCount:"minOverscanItemCount",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedGroupHeight:"fixedGroupHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},p().memo(function(e){let t=dg("useWindowScroll"),n=dg("customScrollParent"),r=dv("fixedHeaderHeight"),o=dv("fixedFooterHeight"),i=dg("fixedHeaderContent"),a=dg("fixedFooterContent"),s=dg("context"),l=up(p().useMemo(()=>lz(r,e=>uF(e,"height")),[r]),!0,dg("skipAnimationFrameInResizeObserver")),u=up(p().useMemo(()=>lz(o,e=>uF(e,"height")),[o]),!0,dg("skipAnimationFrameInResizeObserver")),d=n||t?dx:dy,f=n||t?df:dp,h=dg("TableComponent"),m=dg("TableHeadComponent"),g=dg("TableFooterComponent"),v=i?(0,c.jsx)(m,{ref:l,style:{position:"sticky",top:0,zIndex:2},...cQ(m,s),children:i()},"TableHead"):null,y=a?(0,c.jsx)(g,{ref:u,style:{bottom:0,position:"sticky",zIndex:1},...cQ(g,s),children:a()},"TableFoot"):null;return(0,c.jsx)(d,{...e,...cQ(d,s),children:(0,c.jsx)(f,{children:(0,c.jsxs)(h,{style:{borderSpacing:0,overflowAnchor:"none"},...cQ(h,s),children:[v,(0,c.jsx)(dd,{},"TableBody"),y]})})})})),dy=c2({useEmitter:dm,useEmitterValue:dg,usePublisher:dv}),dx=c5({useEmitter:dm,useEmitterValue:dg,usePublisher:dv}),db={bottom:0,itemHeight:0,items:[],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},dw={bottom:0,itemHeight:0,items:[{index:0}],itemWidth:0,offsetBottom:0,offsetTop:0,top:0},{ceil:dA,floor:dC,max:dS,min:dM,round:dT}=Math;function dk(e,t,n){return Array.from({length:t-e+1}).map((t,r)=>({data:null===n?null:n[r+e],index:r+e}))}function dI(e,t){return void 0!==e&&e.width===t.width&&e.height===t.height}function dE(e,t){return void 0!==e&&e.column===t.column&&e.row===t.row}let dR=ue(([{increaseViewportBy:e,listBoundary:t,overscan:n,visibleRange:r},{footerHeight:o,headerHeight:i,scrollBy:a,scrollContainerState:s,scrollTo:l,scrollTop:u,smoothScrollTargetReached:c,viewportHeight:d},p,f,{didMount:h,propsReady:m},{customScrollParent:g,useWindowScroll:v,windowScrollContainerState:y,windowScrollTo:x,windowViewportRect:b},w])=>{let A=l3(0),C=l3(0),S=l3(db),M=l3({height:0,width:0}),T=l3({height:0,width:0}),k=l9(),I=l9(),E=l3(0),R=l3(null),D=l3({column:0,row:0}),O=l9(),j=l9(),P=l3(!1),N=l3(0),F=l3(!0),_=l3(!1),L=l3(!1);l0(h,l4(N),lK(([e,t])=>!u5(t)))(1,()=>{F(0,!1)}),l0(un(h,F,T,M,N,_),lK(([e,t,n,r,,o])=>e&&!t&&0!==n.height&&0!==r.height&&!o))(1,([,,,,e])=>{void 0===e?F(0,!0):(_(0,!0),u1(1,()=>{k(0,e)}),lq(l0(u),()=>{t(0,[0,0]),F(0,!0)}))}),lG(l0(j,lK(e=>null!=e&&e.scrollTop>0),lJ(0)),C),l0(h,l4(j),lK(([,e])=>null!=e))(1,([,e])=>{e&&(M(0,e.viewport),T(0,e.item),D(0,e.gap),e.scrollTop>0&&(P(0,!0),lq(l0(u,l2(1)),e=>{P(0,!1)}),l(0,{top:e.scrollTop})))}),lG(l0(M,lQ(({height:e})=>e)),d),lG(l0(un(ur(M,dI),ur(T,dI),ur(D,(e,t)=>void 0!==e&&e.column===t.column&&e.row===t.row),ur(u)),lQ(([e,t,n,r])=>({gap:n,item:t,scrollTop:r,viewport:e}))),O),lG(l0(un(ur(A),r,ur(D,dE),ur(T,dI),ur(M,dI),ur(R),ur(C),ur(P),ur(F),ur(N)),lK(([,,,,,,,e])=>!e),lQ(([e,[t,n],r,o,i,a,s,,l,u])=>{let c,d,{column:p,row:f}=r,{height:h,width:m}=o,{width:g}=i;if(0===s&&(0===e||0===g))return db;if(0===m){var v;let t=u2(u,e),n=t+Math.max(s-1,0);return v=dk(t,n,a),{...dw,items:v}}let y=dD(g,m,p);l?0===t&&0===n&&s>0?(c=0,d=s-1):(c=y*dC((t+f)/(h+f)),d=dM(e-1,dS(d=y*dA((n+f)/(h+f))-1,y-1)),c=dM(d,dS(0,c))):(c=0,d=-1);let x=dk(c,d,a),{bottom:b,top:w}=dO(i,r,o,x),A=dA(e/y);return{bottom:b,itemHeight:h,items:x,itemWidth:m,offsetBottom:A*h+(A-1)*f-b,offsetTop:w,top:w}})),S),lG(l0(R,lK(e=>null!==e),lQ(e=>e.length)),A),lG(l0(un(M,T,S,D),lK(([e,t,{items:n}])=>n.length>0&&0!==t.height&&0!==e.height),lQ(([e,t,{items:n},r])=>{let{bottom:o,top:i}=dO(e,r,t,n);return[i,o]}),lX(uj)),t);let z=l3(!1);lG(l0(u,l4(z),lQ(([e,t])=>t||0!==e)),z);let B=l7(l0(un(S,A),lK(([{items:e}])=>e.length>0),l4(z),lK(([[e,t],n])=>{let r=e.items[e.items.length-1].index===t-1;return(n||e.bottom>0&&e.itemHeight>0&&0===e.offsetBottom&&e.items.length===t)&&r}),lQ(([[,e]])=>e-1),lX())),V=l7(l0(ur(S),lK(({items:e})=>e.length>0&&0===e[0].index),lJ(0),lX())),$=l7(l0(ur(S),l4(P),lK(([{items:e},t])=>e.length>0&&!t),lQ(([{items:e}])=>({endIndex:e[e.length-1].index,startIndex:e[0].index})),lX(uO),l5(0)));lG($,f.scrollSeekRangeChanged),lG(l0(k,l4(M,T,A,D),lQ(([e,t,n,r,o])=>{let i=uJ(e),{align:a,behavior:s,offset:l}=i,u=i.index;"LAST"===u&&(u=r-1);let c=dj(t,o,n,u=dS(0,u,dM(r-1,u)));return"end"===a?c=dT(c-t.height+n.height):"center"===a&&(c=dT(c-t.height/2+n.height/2)),void 0!==l&&0!==l&&(c+=l),{behavior:s,top:c}})),l);let H=l6(l0(S,lQ(e=>e.offsetBottom+e.bottom)),0);return lG(l0(b,lQ(e=>({height:e.visibleHeight,width:e.visibleWidth}))),M),{customScrollParent:g,data:R,deviation:E,footerHeight:o,gap:D,headerHeight:i,increaseViewportBy:e,initialItemCount:C,itemDimensions:T,overscan:n,restoreStateFrom:j,scrollBy:a,scrollContainerState:s,scrollHeight:I,scrollTo:l,scrollToIndex:k,scrollTop:u,smoothScrollTargetReached:c,totalCount:A,useWindowScroll:v,viewportDimensions:M,windowScrollContainerState:y,windowScrollTo:x,windowViewportRect:b,...f,gridState:S,horizontalDirection:L,initialTopMostItemIndex:N,totalListHeight:H,...p,endReached:B,propsReady:m,rangeChanged:$,startReached:V,stateChanged:O,stateRestoreInProgress:P,...w}},lH(cr,uv,u7,cx,uK,cb,us));function dD(e,t,n){return dS(1,dC((e+n)/(dC(t)+n)))}function dO(e,t,n,r){let{height:o}=n;if(void 0===o||0===r.length)return{bottom:0,top:0};let i=dj(e,t,n,r[0].index);return{bottom:dj(e,t,n,r[r.length-1].index)+o,top:i}}function dj(e,t,n,r){let o=dC(r/dD(e.width,n.width,t.column)),i=o*n.height+dS(0,o-1)*t.row;return i>0?i+t.row:i}let dP=ue(()=>{let e=l3(e=>`Item ${e}`),t=l3({}),n=l3(null),r=l3("virtuoso-grid-item"),o=l3("virtuoso-grid-list"),i=l3(cz),a=l3("div"),s=l3(lV),l=(e,n=null)=>l6(l0(t,lQ(t=>t[e]),lX()),n),u=l3(!1),c=l3(!1);return lG(ur(c),u),{components:t,computeItemKey:i,context:n,FooterComponent:l("Footer"),HeaderComponent:l("Header"),headerFooterTag:a,itemClassName:r,ItemComponent:l("Item","div"),itemContent:e,listClassName:o,ListComponent:l("List","div"),readyStateChanged:u,reportReadyState:c,ScrollerComponent:l("Scroller","div"),scrollerRef:s,ScrollSeekPlaceholder:l("ScrollSeekPlaceholder","div")}}),dN=ue(([e,t])=>({...e,...t}),lH(dR,dP)),dF=p().memo(function(){let e=d$("gridState"),t=d$("listClassName"),n=d$("itemClassName"),r=d$("itemContent"),o=d$("computeItemKey"),i=d$("isSeeking"),a=dH("scrollHeight"),s=d$("ItemComponent"),l=d$("ListComponent"),u=d$("ScrollSeekPlaceholder"),f=d$("context"),h=dH("itemDimensions"),m=dH("gap"),g=d$("log"),v=d$("stateRestoreInProgress"),y=dH("reportReadyState"),x=up(p().useMemo(()=>e=>{a(e.parentElement.parentElement.scrollHeight);let t=e.firstChild;if(null!==t){let{height:e,width:n}=t.getBoundingClientRect();h({height:e,width:n})}m({column:dG("column-gap",getComputedStyle(e).columnGap,g),row:dG("row-gap",getComputedStyle(e).rowGap,g)})},[a,h,m,g]),!0,!1);return cF(()=>{e.itemHeight>0&&e.itemWidth>0&&y(!0)},[e]),v?null:(0,c.jsx)(l,{className:t,ref:x,...cQ(l,f),"data-testid":"virtuoso-item-list",style:{paddingBottom:e.offsetBottom,paddingTop:e.offsetTop},children:e.items.map(t=>{let a=o(t.index,t.data,f);return i?(0,c.jsx)(u,{...cQ(u,f),height:e.itemHeight,index:t.index,width:e.itemWidth},a):(0,d.createElement)(s,{...cQ(s,f),className:n,"data-index":t.index,key:a},r(t.index,t.data,f))})})}),d_=p().memo(function(){let e=d$("HeaderComponent"),t=dH("headerHeight"),n=d$("headerFooterTag"),r=up(p().useMemo(()=>e=>{t(uF(e,"height"))},[t]),!0,!1),o=d$("context");return null!=e?(0,c.jsx)(n,{ref:r,children:(0,c.jsx)(e,{...cQ(e,o)})}):null}),dL=p().memo(function(){let e=d$("FooterComponent"),t=dH("footerHeight"),n=d$("headerFooterTag"),r=up(p().useMemo(()=>e=>{t(uF(e,"height"))},[t]),!0,!1),o=d$("context");return null!=e?(0,c.jsx)(n,{ref:r,children:(0,c.jsx)(e,{...cQ(e,o)})}):null}),dz=({children:e})=>{let t=p().useContext(cO),n=dH("itemDimensions"),r=dH("viewportDimensions"),o=up(p().useMemo(()=>e=>{r(e.getBoundingClientRect())},[r]),!0,!1);return p().useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),(0,c.jsx)("div",{ref:o,style:cZ(!1),children:e})},dB=({children:e})=>{let t=p().useContext(cO),n=dH("windowViewportRect"),r=dH("itemDimensions"),o=d$("customScrollParent"),i=d$("useWindowScroll"),a=ug(n,o,!1);return p().useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({listHeight:0,offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),(0,c.jsx)("div",{ref:a,style:cX(!1,i),children:e})},{useEmitter:dV,useEmitterValue:d$,usePublisher:dH}=cR(dN,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex",increaseViewportBy:"increaseViewportBy"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged",readyStateChanged:"readyStateChanged"}},p().memo(function({...e}){let t=d$("useWindowScroll"),n=d$("customScrollParent"),r=n||t?dU:dW,o=n||t?dB:dz,i=d$("context");return(0,c.jsx)(r,{...e,...cQ(r,i),children:(0,c.jsxs)(o,{children:[(0,c.jsx)(d_,{}),(0,c.jsx)(dF,{}),(0,c.jsx)(dL,{})]})})})),dW=c2({useEmitter:dV,useEmitterValue:d$,usePublisher:dH}),dU=c5({useEmitter:dV,useEmitterValue:d$,usePublisher:dH});function dG(e,t,n){return"normal"!==t&&t?.endsWith("px")!==!0&&n(`${e} was not resolved to pixel value correctly`,t,2),"normal"===t?0:parseInt(t??"0",10)}function dq({items:e,height:t,width:n,selectedItems:r,onLegendItemClick:o,onItemMouseOver:i,onItemMouseOut:a}){let s=e.length>5;return(0,c.jsx)(c9,{style:{height:t,width:n},data:e,itemContent:(e,t)=>(0,c.jsx)(lF,{item:t,index:e,truncateLabel:s,isVisuallySelected:lC(t,r),onClick:o,onMouseOver:i,onMouseOut:a,sx:{width:"100%",wordBreak:"break-word",overflow:"hidden"}},t.id),role:"list"})}function dY(e,t){return"function"==typeof e?e(t):e}function dZ(e,t){return n=>{t.setState(t=>({...t,[e]:dY(n,t[e])}))}}function dX(e){return e instanceof Function}function dK(e,t,n){let r,o=[];return i=>{let a,s;n.key&&n.debug&&(a=Date.now());let l=e(i);if(!(l.length!==o.length||l.some((e,t)=>o[t]!==e)))return r;if(o=l,n.key&&n.debug&&(s=Date.now()),r=t(...l),null==n||null==n.onChange||n.onChange(r),n.key&&n.debug&&null!=n&&n.debug()){let e=Math.round((Date.now()-a)*100)/100,t=Math.round((Date.now()-s)*100)/100,r=t/16,o=(e,t)=>{for(e=String(e);e.length<t;)e=" "+e;return e};console.info(`%c⏱ ${o(t,5)} /${o(e,5)} ms`,`
|
|
3
|
+
font-size: .6rem;
|
|
4
|
+
font-weight: bold;
|
|
5
|
+
color: hsl(${Math.max(0,Math.min(120-120*r,120))}deg 100% 31%);`,null==n?void 0:n.key)}return r}}function dQ(e,t,n,r){return{debug:()=>{var n;return null!=(n=null==e?void 0:e.debugAll)?n:e[t]},key:!1,onChange:r}}let dJ="debugHeaders";function d0(e,t,n){var r;let o={id:null!=(r=n.id)?r:t.id,column:t,index:n.index,isPlaceholder:!!n.isPlaceholder,placeholderId:n.placeholderId,depth:n.depth,subHeaders:[],colSpan:0,rowSpan:0,headerGroup:null,getLeafHeaders:()=>{let e=[],t=n=>{n.subHeaders&&n.subHeaders.length&&n.subHeaders.map(t),e.push(n)};return t(o),e},getContext:()=>({table:e,header:o,column:t})};return e._features.forEach(t=>{null==t.createHeader||t.createHeader(o,e)}),o}function d1(e,t,n,r){var o,i;let a=0,s=function(e,t){void 0===t&&(t=1),a=Math.max(a,t),e.filter(e=>e.getIsVisible()).forEach(e=>{var n;null!=(n=e.columns)&&n.length&&s(e.columns,t+1)},0)};s(e);let l=[],u=(e,t)=>{let o={depth:t,id:[r,`${t}`].filter(Boolean).join("_"),headers:[]},i=[];e.forEach(e=>{let a,s=[...i].reverse()[0],l=e.column.depth===o.depth,u=!1;if(l&&e.column.parent?a=e.column.parent:(a=e.column,u=!0),s&&(null==s?void 0:s.column)===a)s.subHeaders.push(e);else{let o=d0(n,a,{id:[r,t,a.id,null==e?void 0:e.id].filter(Boolean).join("_"),isPlaceholder:u,placeholderId:u?`${i.filter(e=>e.column===a).length}`:void 0,depth:t,index:i.length});o.subHeaders.push(e),i.push(o)}o.headers.push(e),e.headerGroup=o}),l.push(o),t>0&&u(i,t-1)};u(t.map((e,t)=>d0(n,e,{depth:a,index:t})),a-1),l.reverse();let c=e=>e.filter(e=>e.column.getIsVisible()).map(e=>{let t=0,n=0,r=[0];return e.subHeaders&&e.subHeaders.length?(r=[],c(e.subHeaders).forEach(e=>{let{colSpan:n,rowSpan:o}=e;t+=n,r.push(o)})):t=1,n+=Math.min(...r),e.colSpan=t,e.rowSpan=n,{colSpan:t,rowSpan:n}});return c(null!=(o=null==(i=l[0])?void 0:i.headers)?o:[]),l}let d2=(e,t,n,r,o,i,a)=>{let s={id:t,index:r,original:n,depth:o,parentId:a,_valuesCache:{},_uniqueValuesCache:{},getValue:t=>{if(s._valuesCache.hasOwnProperty(t))return s._valuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return s._valuesCache[t]=n.accessorFn(s.original,r),s._valuesCache[t]},getUniqueValues:t=>{if(s._uniqueValuesCache.hasOwnProperty(t))return s._uniqueValuesCache[t];let n=e.getColumn(t);if(null!=n&&n.accessorFn)return n.columnDef.getUniqueValues?s._uniqueValuesCache[t]=n.columnDef.getUniqueValues(s.original,r):s._uniqueValuesCache[t]=[s.getValue(t)],s._uniqueValuesCache[t]},renderValue:t=>{var n;return null!=(n=s.getValue(t))?n:e.options.renderFallbackValue},subRows:null!=i?i:[],getLeafRows:()=>{var e,t;let n,r;return e=s.subRows,t=e=>e.subRows,n=[],(r=e=>{e.forEach(e=>{n.push(e);let o=t(e);null!=o&&o.length&&r(o)})})(e),n},getParentRow:()=>s.parentId?e.getRow(s.parentId,!0):void 0,getParentRows:()=>{let e=[],t=s;for(;;){let n=t.getParentRow();if(!n)break;e.push(n),t=n}return e.reverse()},getAllCells:dK(()=>[e.getAllLeafColumns()],t=>t.map(t=>{var n;let r;return n=t.id,r={id:`${s.id}_${t.id}`,row:s,column:t,getValue:()=>s.getValue(n),renderValue:()=>{var t;return null!=(t=r.getValue())?t:e.options.renderFallbackValue},getContext:dK(()=>[e,t,s,r],(e,t,n,r)=>({table:e,column:t,row:n,cell:r,getValue:r.getValue,renderValue:r.renderValue}),dQ(e.options,"debugCells","cell.getContext"))},e._features.forEach(n=>{null==n.createCell||n.createCell(r,t,s,e)},{}),r}),dQ(e.options,"debugRows","getAllCells")),_getAllCellsByColumnId:dK(()=>[s.getAllCells()],e=>e.reduce((e,t)=>(e[t.column.id]=t,e),{}),dQ(e.options,"debugRows","getAllCellsByColumnId"))};for(let t=0;t<e._features.length;t++){let n=e._features[t];null==n||null==n.createRow||n.createRow(s,e)}return s},d5=(e,t,n)=>{var r,o;let i=null==n||null==(r=n.toString())?void 0:r.toLowerCase();return!!(null==(o=e.getValue(t))||null==(o=o.toString())||null==(o=o.toLowerCase())?void 0:o.includes(i))};d5.autoRemove=e=>pr(e);let d4=(e,t,n)=>{var r;return!!(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.includes(n))};d4.autoRemove=e=>pr(e);let d3=(e,t,n)=>{var r;return(null==(r=e.getValue(t))||null==(r=r.toString())?void 0:r.toLowerCase())===(null==n?void 0:n.toLowerCase())};d3.autoRemove=e=>pr(e);let d6=(e,t,n)=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)};d6.autoRemove=e=>pr(e);let d9=(e,t,n)=>!n.some(n=>{var r;return!(null!=(r=e.getValue(t))&&r.includes(n))});d9.autoRemove=e=>pr(e)||!(null!=e&&e.length);let d7=(e,t,n)=>n.some(n=>{var r;return null==(r=e.getValue(t))?void 0:r.includes(n)});d7.autoRemove=e=>pr(e)||!(null!=e&&e.length);let d8=(e,t,n)=>e.getValue(t)===n;d8.autoRemove=e=>pr(e);let pe=(e,t,n)=>e.getValue(t)==n;pe.autoRemove=e=>pr(e);let pt=(e,t,n)=>{let[r,o]=n,i=e.getValue(t);return i>=r&&i<=o};pt.resolveFilterValue=e=>{let[t,n]=e,r="number"!=typeof t?parseFloat(t):t,o="number"!=typeof n?parseFloat(n):n,i=null===t||Number.isNaN(r)?-1/0:r,a=null===n||Number.isNaN(o)?1/0:o;if(i>a){let e=i;i=a,a=e}return[i,a]},pt.autoRemove=e=>pr(e)||pr(e[0])&&pr(e[1]);let pn={includesString:d5,includesStringSensitive:d4,equalsString:d3,arrIncludes:d6,arrIncludesAll:d9,arrIncludesSome:d7,equals:d8,weakEquals:pe,inNumberRange:pt};function pr(e){return null==e||""===e}function po(e,t,n){return!!e&&!!e.autoRemove&&e.autoRemove(t,n)||void 0===t||"string"==typeof t&&!t}let pi={sum:(e,t,n)=>n.reduce((t,n)=>{let r=n.getValue(e);return t+("number"==typeof r?r:0)},0),min:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r>n||void 0===r&&n>=n)&&(r=n)}),r},max:(e,t,n)=>{let r;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(r<n||void 0===r&&n>=n)&&(r=n)}),r},extent:(e,t,n)=>{let r,o;return n.forEach(t=>{let n=t.getValue(e);null!=n&&(void 0===r?n>=n&&(r=o=n):(r>n&&(r=n),o<n&&(o=n)))}),[r,o]},mean:(e,t)=>{let n=0,r=0;if(t.forEach(t=>{let o=t.getValue(e);null!=o&&(o*=1)>=o&&(++n,r+=o)}),n)return r/n},median:(e,t)=>{if(!t.length)return;let n=t.map(t=>t.getValue(e));if(!(Array.isArray(n)&&n.every(e=>"number"==typeof e)))return;if(1===n.length)return n[0];let r=Math.floor(n.length/2),o=n.sort((e,t)=>e-t);return n.length%2!=0?o[r]:(o[r-1]+o[r])/2},unique:(e,t)=>Array.from(new Set(t.map(t=>t.getValue(e))).values()),uniqueCount:(e,t)=>new Set(t.map(t=>t.getValue(e))).size,count:(e,t)=>t.length},pa=()=>({left:[],right:[]}),ps={size:150,minSize:20,maxSize:Number.MAX_SAFE_INTEGER},pl=()=>({startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,isResizingColumn:!1,columnSizingStart:[]}),pu=null;function pc(e){return"touchstart"===e.type}function pd(e,t){return t?"center"===t?e.getCenterVisibleLeafColumns():"left"===t?e.getLeftVisibleLeafColumns():e.getRightVisibleLeafColumns():e.getVisibleLeafColumns()}let pp=()=>({pageIndex:0,pageSize:10}),pf=()=>({top:[],bottom:[]}),ph=(e,t,n,r,o)=>{var i;let a=o.getRow(t,!0);n?(a.getCanMultiSelect()||Object.keys(e).forEach(t=>delete e[t]),a.getCanSelect()&&(e[t]=!0)):delete e[t],r&&null!=(i=a.subRows)&&i.length&&a.getCanSelectSubRows()&&a.subRows.forEach(t=>ph(e,t.id,n,r,o))};function pm(e,t){let n=e.getState().rowSelection,r=[],o={},i=function(e,t){return e.map(e=>{var t;let a=pg(e,n);if(a&&(r.push(e),o[e.id]=e),null!=(t=e.subRows)&&t.length&&(e={...e,subRows:i(e.subRows)}),a)return e}).filter(Boolean)};return{rows:i(t.rows),flatRows:r,rowsById:o}}function pg(e,t){var n;return null!=(n=t[e.id])&&n}function pv(e,t,n){var r;if(!(null!=(r=e.subRows)&&r.length))return!1;let o=!0,i=!1;return e.subRows.forEach(e=>{if((!i||o)&&(e.getCanSelect()&&(pg(e,t)?i=!0:o=!1),e.subRows&&e.subRows.length)){let n=pv(e,t);"all"===n?i=!0:("some"===n&&(i=!0),o=!1)}}),o?"all":!!i&&"some"}let py=/([0-9]+)/gm;function px(e,t){return e===t?0:e>t?1:-1}function pb(e){return"number"==typeof e?isNaN(e)||e===1/0||e===-1/0?"":String(e):"string"==typeof e?e:""}function pw(e,t){let n=e.split(py).filter(Boolean),r=t.split(py).filter(Boolean);for(;n.length&&r.length;){let e=n.shift(),t=r.shift(),o=parseInt(e,10),i=parseInt(t,10),a=[o,i].sort();if(isNaN(a[0])){if(e>t)return 1;if(t>e)return -1;continue}if(isNaN(a[1]))return isNaN(o)?-1:1;if(o>i)return 1;if(i>o)return -1}return n.length-r.length}let pA={alphanumeric:(e,t,n)=>pw(pb(e.getValue(n)).toLowerCase(),pb(t.getValue(n)).toLowerCase()),alphanumericCaseSensitive:(e,t,n)=>pw(pb(e.getValue(n)),pb(t.getValue(n))),text:(e,t,n)=>px(pb(e.getValue(n)).toLowerCase(),pb(t.getValue(n)).toLowerCase()),textCaseSensitive:(e,t,n)=>px(pb(e.getValue(n)),pb(t.getValue(n))),datetime:(e,t,n)=>{let r=e.getValue(n),o=t.getValue(n);return r>o?1:r<o?-1:0},basic:(e,t,n)=>px(e.getValue(n),t.getValue(n))},pC=[{createTable:e=>{e.getHeaderGroups=dK(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>{var i,a;let s=null!=(i=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?i:[],l=null!=(a=null==o?void 0:o.map(e=>n.find(t=>t.id===e)).filter(Boolean))?a:[];return d1(t,[...s,...n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),...l],e)},dQ(e.options,dJ,"getHeaderGroups")),e.getCenterHeaderGroups=dK(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(t,n,r,o)=>d1(t,n=n.filter(e=>!(null!=r&&r.includes(e.id))&&!(null!=o&&o.includes(e.id))),e,"center"),dQ(e.options,dJ,"getCenterHeaderGroups")),e.getLeftHeaderGroups=dK(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.left],(t,n,r)=>{var o;return d1(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"left")},dQ(e.options,dJ,"getLeftHeaderGroups")),e.getRightHeaderGroups=dK(()=>[e.getAllColumns(),e.getVisibleLeafColumns(),e.getState().columnPinning.right],(t,n,r)=>{var o;return d1(t,null!=(o=null==r?void 0:r.map(e=>n.find(t=>t.id===e)).filter(Boolean))?o:[],e,"right")},dQ(e.options,dJ,"getRightHeaderGroups")),e.getFooterGroups=dK(()=>[e.getHeaderGroups()],e=>[...e].reverse(),dQ(e.options,dJ,"getFooterGroups")),e.getLeftFooterGroups=dK(()=>[e.getLeftHeaderGroups()],e=>[...e].reverse(),dQ(e.options,dJ,"getLeftFooterGroups")),e.getCenterFooterGroups=dK(()=>[e.getCenterHeaderGroups()],e=>[...e].reverse(),dQ(e.options,dJ,"getCenterFooterGroups")),e.getRightFooterGroups=dK(()=>[e.getRightHeaderGroups()],e=>[...e].reverse(),dQ(e.options,dJ,"getRightFooterGroups")),e.getFlatHeaders=dK(()=>[e.getHeaderGroups()],e=>e.map(e=>e.headers).flat(),dQ(e.options,dJ,"getFlatHeaders")),e.getLeftFlatHeaders=dK(()=>[e.getLeftHeaderGroups()],e=>e.map(e=>e.headers).flat(),dQ(e.options,dJ,"getLeftFlatHeaders")),e.getCenterFlatHeaders=dK(()=>[e.getCenterHeaderGroups()],e=>e.map(e=>e.headers).flat(),dQ(e.options,dJ,"getCenterFlatHeaders")),e.getRightFlatHeaders=dK(()=>[e.getRightHeaderGroups()],e=>e.map(e=>e.headers).flat(),dQ(e.options,dJ,"getRightFlatHeaders")),e.getCenterLeafHeaders=dK(()=>[e.getCenterFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),dQ(e.options,dJ,"getCenterLeafHeaders")),e.getLeftLeafHeaders=dK(()=>[e.getLeftFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),dQ(e.options,dJ,"getLeftLeafHeaders")),e.getRightLeafHeaders=dK(()=>[e.getRightFlatHeaders()],e=>e.filter(e=>{var t;return!(null!=(t=e.subHeaders)&&t.length)}),dQ(e.options,dJ,"getRightLeafHeaders")),e.getLeafHeaders=dK(()=>[e.getLeftHeaderGroups(),e.getCenterHeaderGroups(),e.getRightHeaderGroups()],(e,t,n)=>{var r,o,i,a,s,l;return[...null!=(r=null==(o=e[0])?void 0:o.headers)?r:[],...null!=(i=null==(a=t[0])?void 0:a.headers)?i:[],...null!=(s=null==(l=n[0])?void 0:l.headers)?s:[]].map(e=>e.getLeafHeaders()).flat()},dQ(e.options,dJ,"getLeafHeaders"))}},{getInitialState:e=>({columnVisibility:{},...e}),getDefaultOptions:e=>({onColumnVisibilityChange:dZ("columnVisibility",e)}),createColumn:(e,t)=>{e.toggleVisibility=n=>{e.getCanHide()&&t.setColumnVisibility(t=>({...t,[e.id]:null!=n?n:!e.getIsVisible()}))},e.getIsVisible=()=>{var n,r;let o=e.columns;return null==(n=o.length?o.some(e=>e.getIsVisible()):null==(r=t.getState().columnVisibility)?void 0:r[e.id])||n},e.getCanHide=()=>{var n,r;return(null==(n=e.columnDef.enableHiding)||n)&&(null==(r=t.options.enableHiding)||r)},e.getToggleVisibilityHandler=()=>t=>{null==e.toggleVisibility||e.toggleVisibility(t.target.checked)}},createRow:(e,t)=>{e._getAllVisibleCells=dK(()=>[e.getAllCells(),t.getState().columnVisibility],e=>e.filter(e=>e.column.getIsVisible()),dQ(t.options,"debugRows","_getAllVisibleCells")),e.getVisibleCells=dK(()=>[e.getLeftVisibleCells(),e.getCenterVisibleCells(),e.getRightVisibleCells()],(e,t,n)=>[...e,...t,...n],dQ(t.options,"debugRows","getVisibleCells"))},createTable:e=>{let t=(t,n)=>dK(()=>[n(),n().filter(e=>e.getIsVisible()).map(e=>e.id).join("_")],e=>e.filter(e=>null==e.getIsVisible?void 0:e.getIsVisible()),dQ(e.options,"debugColumns",t));e.getVisibleFlatColumns=t("getVisibleFlatColumns",()=>e.getAllFlatColumns()),e.getVisibleLeafColumns=t("getVisibleLeafColumns",()=>e.getAllLeafColumns()),e.getLeftVisibleLeafColumns=t("getLeftVisibleLeafColumns",()=>e.getLeftLeafColumns()),e.getRightVisibleLeafColumns=t("getRightVisibleLeafColumns",()=>e.getRightLeafColumns()),e.getCenterVisibleLeafColumns=t("getCenterVisibleLeafColumns",()=>e.getCenterLeafColumns()),e.setColumnVisibility=t=>null==e.options.onColumnVisibilityChange?void 0:e.options.onColumnVisibilityChange(t),e.resetColumnVisibility=t=>{var n;e.setColumnVisibility(t?{}:null!=(n=e.initialState.columnVisibility)?n:{})},e.toggleAllColumnsVisible=t=>{var n;t=null!=(n=t)?n:!e.getIsAllColumnsVisible(),e.setColumnVisibility(e.getAllLeafColumns().reduce((e,n)=>({...e,[n.id]:t||!(null!=n.getCanHide&&n.getCanHide())}),{}))},e.getIsAllColumnsVisible=()=>!e.getAllLeafColumns().some(e=>!(null!=e.getIsVisible&&e.getIsVisible())),e.getIsSomeColumnsVisible=()=>e.getAllLeafColumns().some(e=>null==e.getIsVisible?void 0:e.getIsVisible()),e.getToggleAllColumnsVisibilityHandler=()=>t=>{var n;e.toggleAllColumnsVisible(null==(n=t.target)?void 0:n.checked)}}},{getInitialState:e=>({columnOrder:[],...e}),getDefaultOptions:e=>({onColumnOrderChange:dZ("columnOrder",e)}),createColumn:(e,t)=>{e.getIndex=dK(e=>[pd(t,e)],t=>t.findIndex(t=>t.id===e.id),dQ(t.options,"debugColumns","getIndex")),e.getIsFirstColumn=n=>{var r;return(null==(r=pd(t,n)[0])?void 0:r.id)===e.id},e.getIsLastColumn=n=>{var r;let o=pd(t,n);return(null==(r=o[o.length-1])?void 0:r.id)===e.id}},createTable:e=>{e.setColumnOrder=t=>null==e.options.onColumnOrderChange?void 0:e.options.onColumnOrderChange(t),e.resetColumnOrder=t=>{var n;e.setColumnOrder(t?[]:null!=(n=e.initialState.columnOrder)?n:[])},e._getOrderColumnsFn=dK(()=>[e.getState().columnOrder,e.getState().grouping,e.options.groupedColumnMode],(e,t,n)=>r=>{let o=[];if(null!=e&&e.length){let t=[...e],n=[...r];for(;n.length&&t.length;){let e=t.shift(),r=n.findIndex(t=>t.id===e);r>-1&&o.push(n.splice(r,1)[0])}o=[...o,...n]}else o=r;var i=o;if(!(null!=t&&t.length)||!n)return i;let a=i.filter(e=>!t.includes(e.id));return"remove"===n?a:[...t.map(e=>i.find(t=>t.id===e)).filter(Boolean),...a]},dQ(e.options,"debugTable","_getOrderColumnsFn"))}},{getInitialState:e=>({columnPinning:pa(),...e}),getDefaultOptions:e=>({onColumnPinningChange:dZ("columnPinning",e)}),createColumn:(e,t)=>{e.pin=n=>{let r=e.getLeafColumns().map(e=>e.id).filter(Boolean);t.setColumnPinning(e=>{var t,o,i,a,s,l;return"right"===n?{left:(null!=(i=null==e?void 0:e.left)?i:[]).filter(e=>!(null!=r&&r.includes(e))),right:[...(null!=(a=null==e?void 0:e.right)?a:[]).filter(e=>!(null!=r&&r.includes(e))),...r]}:"left"===n?{left:[...(null!=(s=null==e?void 0:e.left)?s:[]).filter(e=>!(null!=r&&r.includes(e))),...r],right:(null!=(l=null==e?void 0:e.right)?l:[]).filter(e=>!(null!=r&&r.includes(e)))}:{left:(null!=(t=null==e?void 0:e.left)?t:[]).filter(e=>!(null!=r&&r.includes(e))),right:(null!=(o=null==e?void 0:e.right)?o:[]).filter(e=>!(null!=r&&r.includes(e)))}})},e.getCanPin=()=>e.getLeafColumns().some(e=>{var n,r,o;return(null==(n=e.columnDef.enablePinning)||n)&&(null==(r=null!=(o=t.options.enableColumnPinning)?o:t.options.enablePinning)||r)}),e.getIsPinned=()=>{let n=e.getLeafColumns().map(e=>e.id),{left:r,right:o}=t.getState().columnPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"left":!!a&&"right"},e.getPinnedIndex=()=>{var n,r;let o=e.getIsPinned();return o?null!=(n=null==(r=t.getState().columnPinning)||null==(r=r[o])?void 0:r.indexOf(e.id))?n:-1:0}},createRow:(e,t)=>{e.getCenterVisibleCells=dK(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left,t.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.column.id))},dQ(t.options,"debugRows","getCenterVisibleCells")),e.getLeftVisibleCells=dK(()=>[e._getAllVisibleCells(),t.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"left"})),dQ(t.options,"debugRows","getLeftVisibleCells")),e.getRightVisibleCells=dK(()=>[e._getAllVisibleCells(),t.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.column.id===t)).filter(Boolean).map(e=>({...e,position:"right"})),dQ(t.options,"debugRows","getRightVisibleCells"))},createTable:e=>{e.setColumnPinning=t=>null==e.options.onColumnPinningChange?void 0:e.options.onColumnPinningChange(t),e.resetColumnPinning=t=>{var n,r;return e.setColumnPinning(t?pa():null!=(n=null==(r=e.initialState)?void 0:r.columnPinning)?n:pa())},e.getIsSomeColumnsPinned=t=>{var n,r,o;let i=e.getState().columnPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.left)?void 0:r.length)||(null==(o=i.right)?void 0:o.length))},e.getLeftLeafColumns=dK(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),dQ(e.options,"debugColumns","getLeftLeafColumns")),e.getRightLeafColumns=dK(()=>[e.getAllLeafColumns(),e.getState().columnPinning.right],(e,t)=>(null!=t?t:[]).map(t=>e.find(e=>e.id===t)).filter(Boolean),dQ(e.options,"debugColumns","getRightLeafColumns")),e.getCenterLeafColumns=dK(()=>[e.getAllLeafColumns(),e.getState().columnPinning.left,e.getState().columnPinning.right],(e,t,n)=>{let r=[...null!=t?t:[],...null!=n?n:[]];return e.filter(e=>!r.includes(e.id))},dQ(e.options,"debugColumns","getCenterLeafColumns"))}},{createColumn:(e,t)=>{e._getFacetedRowModel=t.options.getFacetedRowModel&&t.options.getFacetedRowModel(t,e.id),e.getFacetedRowModel=()=>e._getFacetedRowModel?e._getFacetedRowModel():t.getPreFilteredRowModel(),e._getFacetedUniqueValues=t.options.getFacetedUniqueValues&&t.options.getFacetedUniqueValues(t,e.id),e.getFacetedUniqueValues=()=>e._getFacetedUniqueValues?e._getFacetedUniqueValues():new Map,e._getFacetedMinMaxValues=t.options.getFacetedMinMaxValues&&t.options.getFacetedMinMaxValues(t,e.id),e.getFacetedMinMaxValues=()=>{if(e._getFacetedMinMaxValues)return e._getFacetedMinMaxValues()}}},{getDefaultColumnDef:()=>({filterFn:"auto"}),getInitialState:e=>({columnFilters:[],...e}),getDefaultOptions:e=>({onColumnFiltersChange:dZ("columnFilters",e),filterFromLeafRows:!1,maxLeafRowFilterDepth:100}),createColumn:(e,t)=>{e.getAutoFilterFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"string"==typeof r?pn.includesString:"number"==typeof r?pn.inNumberRange:"boolean"==typeof r||null!==r&&"object"==typeof r?pn.equals:Array.isArray(r)?pn.arrIncludes:pn.weakEquals},e.getFilterFn=()=>{var n,r;return dX(e.columnDef.filterFn)?e.columnDef.filterFn:"auto"===e.columnDef.filterFn?e.getAutoFilterFn():null!=(n=null==(r=t.options.filterFns)?void 0:r[e.columnDef.filterFn])?n:pn[e.columnDef.filterFn]},e.getCanFilter=()=>{var n,r,o;return(null==(n=e.columnDef.enableColumnFilter)||n)&&(null==(r=t.options.enableColumnFilters)||r)&&(null==(o=t.options.enableFilters)||o)&&!!e.accessorFn},e.getIsFiltered=()=>e.getFilterIndex()>-1,e.getFilterValue=()=>{var n;return null==(n=t.getState().columnFilters)||null==(n=n.find(t=>t.id===e.id))?void 0:n.value},e.getFilterIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().columnFilters)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.setFilterValue=n=>{t.setColumnFilters(t=>{var r,o;let i=e.getFilterFn(),a=null==t?void 0:t.find(t=>t.id===e.id),s=dY(n,a?a.value:void 0);if(po(i,s,e))return null!=(r=null==t?void 0:t.filter(t=>t.id!==e.id))?r:[];let l={id:e.id,value:s};return a?null!=(o=null==t?void 0:t.map(t=>t.id===e.id?l:t))?o:[]:null!=t&&t.length?[...t,l]:[l]})}},createRow:(e,t)=>{e.columnFilters={},e.columnFiltersMeta={}},createTable:e=>{e.setColumnFilters=t=>{let n=e.getAllLeafColumns();null==e.options.onColumnFiltersChange||e.options.onColumnFiltersChange(e=>{var r;return null==(r=dY(t,e))?void 0:r.filter(e=>{let t=n.find(t=>t.id===e.id);return!(t&&po(t.getFilterFn(),e.value,t))&&!0})})},e.resetColumnFilters=t=>{var n,r;e.setColumnFilters(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.columnFilters)?n:[])},e.getPreFilteredRowModel=()=>e.getCoreRowModel(),e.getFilteredRowModel=()=>(!e._getFilteredRowModel&&e.options.getFilteredRowModel&&(e._getFilteredRowModel=e.options.getFilteredRowModel(e)),e.options.manualFiltering||!e._getFilteredRowModel)?e.getPreFilteredRowModel():e._getFilteredRowModel()}},{createTable:e=>{e._getGlobalFacetedRowModel=e.options.getFacetedRowModel&&e.options.getFacetedRowModel(e,"__global__"),e.getGlobalFacetedRowModel=()=>e.options.manualFiltering||!e._getGlobalFacetedRowModel?e.getPreFilteredRowModel():e._getGlobalFacetedRowModel(),e._getGlobalFacetedUniqueValues=e.options.getFacetedUniqueValues&&e.options.getFacetedUniqueValues(e,"__global__"),e.getGlobalFacetedUniqueValues=()=>e._getGlobalFacetedUniqueValues?e._getGlobalFacetedUniqueValues():new Map,e._getGlobalFacetedMinMaxValues=e.options.getFacetedMinMaxValues&&e.options.getFacetedMinMaxValues(e,"__global__"),e.getGlobalFacetedMinMaxValues=()=>{if(e._getGlobalFacetedMinMaxValues)return e._getGlobalFacetedMinMaxValues()}}},{getInitialState:e=>({globalFilter:void 0,...e}),getDefaultOptions:e=>({onGlobalFilterChange:dZ("globalFilter",e),globalFilterFn:"auto",getColumnCanGlobalFilter:t=>{var n;let r=null==(n=e.getCoreRowModel().flatRows[0])||null==(n=n._getAllCellsByColumnId()[t.id])?void 0:n.getValue();return"string"==typeof r||"number"==typeof r}}),createColumn:(e,t)=>{e.getCanGlobalFilter=()=>{var n,r,o,i;return(null==(n=e.columnDef.enableGlobalFilter)||n)&&(null==(r=t.options.enableGlobalFilter)||r)&&(null==(o=t.options.enableFilters)||o)&&(null==(i=null==t.options.getColumnCanGlobalFilter?void 0:t.options.getColumnCanGlobalFilter(e))||i)&&!!e.accessorFn}},createTable:e=>{e.getGlobalAutoFilterFn=()=>pn.includesString,e.getGlobalFilterFn=()=>{var t,n;let{globalFilterFn:r}=e.options;return dX(r)?r:"auto"===r?e.getGlobalAutoFilterFn():null!=(t=null==(n=e.options.filterFns)?void 0:n[r])?t:pn[r]},e.setGlobalFilter=t=>{null==e.options.onGlobalFilterChange||e.options.onGlobalFilterChange(t)},e.resetGlobalFilter=t=>{e.setGlobalFilter(t?void 0:e.initialState.globalFilter)}}},{getInitialState:e=>({sorting:[],...e}),getDefaultColumnDef:()=>({sortingFn:"auto",sortUndefined:1}),getDefaultOptions:e=>({onSortingChange:dZ("sorting",e),isMultiSortEvent:e=>e.shiftKey}),createColumn:(e,t)=>{e.getAutoSortingFn=()=>{let n=t.getFilteredRowModel().flatRows.slice(10),r=!1;for(let t of n){let n=null==t?void 0:t.getValue(e.id);if("[object Date]"===Object.prototype.toString.call(n))return pA.datetime;if("string"==typeof n&&(r=!0,n.split(py).length>1))return pA.alphanumeric}return r?pA.text:pA.basic},e.getAutoSortDir=()=>{let n=t.getFilteredRowModel().flatRows[0];return"string"==typeof(null==n?void 0:n.getValue(e.id))?"asc":"desc"},e.getSortingFn=()=>{var n,r;if(!e)throw Error();return dX(e.columnDef.sortingFn)?e.columnDef.sortingFn:"auto"===e.columnDef.sortingFn?e.getAutoSortingFn():null!=(n=null==(r=t.options.sortingFns)?void 0:r[e.columnDef.sortingFn])?n:pA[e.columnDef.sortingFn]},e.toggleSorting=(n,r)=>{let o=e.getNextSortingOrder(),i=null!=n;t.setSorting(a=>{let s,l=null==a?void 0:a.find(t=>t.id===e.id),u=null==a?void 0:a.findIndex(t=>t.id===e.id),c=[],d=i?n:"desc"===o;if("toggle"!=(s=null!=a&&a.length&&e.getCanMultiSort()&&r?l?"toggle":"add":null!=a&&a.length&&u!==a.length-1?"replace":l?"toggle":"replace")||i||o||(s="remove"),"add"===s){var p;(c=[...a,{id:e.id,desc:d}]).splice(0,c.length-(null!=(p=t.options.maxMultiSortColCount)?p:Number.MAX_SAFE_INTEGER))}else c="toggle"===s?a.map(t=>t.id===e.id?{...t,desc:d}:t):"remove"===s?a.filter(t=>t.id!==e.id):[{id:e.id,desc:d}];return c})},e.getFirstSortDir=()=>{var n,r;return(null!=(n=null!=(r=e.columnDef.sortDescFirst)?r:t.options.sortDescFirst)?n:"desc"===e.getAutoSortDir())?"desc":"asc"},e.getNextSortingOrder=n=>{var r,o;let i=e.getFirstSortDir(),a=e.getIsSorted();return a?(a===i||null!=(r=t.options.enableSortingRemoval)&&!r||!!n&&null!=(o=t.options.enableMultiRemove)&&!o)&&("desc"===a?"asc":"desc"):i},e.getCanSort=()=>{var n,r;return(null==(n=e.columnDef.enableSorting)||n)&&(null==(r=t.options.enableSorting)||r)&&!!e.accessorFn},e.getCanMultiSort=()=>{var n,r;return null!=(n=null!=(r=e.columnDef.enableMultiSort)?r:t.options.enableMultiSort)?n:!!e.accessorFn},e.getIsSorted=()=>{var n;let r=null==(n=t.getState().sorting)?void 0:n.find(t=>t.id===e.id);return!!r&&(r.desc?"desc":"asc")},e.getSortIndex=()=>{var n,r;return null!=(n=null==(r=t.getState().sorting)?void 0:r.findIndex(t=>t.id===e.id))?n:-1},e.clearSorting=()=>{t.setSorting(t=>null!=t&&t.length?t.filter(t=>t.id!==e.id):[])},e.getToggleSortingHandler=()=>{let n=e.getCanSort();return r=>{n&&(null==r.persist||r.persist(),null==e.toggleSorting||e.toggleSorting(void 0,!!e.getCanMultiSort()&&(null==t.options.isMultiSortEvent?void 0:t.options.isMultiSortEvent(r))))}}},createTable:e=>{e.setSorting=t=>null==e.options.onSortingChange?void 0:e.options.onSortingChange(t),e.resetSorting=t=>{var n,r;e.setSorting(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.sorting)?n:[])},e.getPreSortedRowModel=()=>e.getGroupedRowModel(),e.getSortedRowModel=()=>(!e._getSortedRowModel&&e.options.getSortedRowModel&&(e._getSortedRowModel=e.options.getSortedRowModel(e)),e.options.manualSorting||!e._getSortedRowModel)?e.getPreSortedRowModel():e._getSortedRowModel()}},{getDefaultColumnDef:()=>({aggregatedCell:e=>{var t,n;return null!=(t=null==(n=e.getValue())||null==n.toString?void 0:n.toString())?t:null},aggregationFn:"auto"}),getInitialState:e=>({grouping:[],...e}),getDefaultOptions:e=>({onGroupingChange:dZ("grouping",e),groupedColumnMode:"reorder"}),createColumn:(e,t)=>{e.toggleGrouping=()=>{t.setGrouping(t=>null!=t&&t.includes(e.id)?t.filter(t=>t!==e.id):[...null!=t?t:[],e.id])},e.getCanGroup=()=>{var n,r;return(null==(n=e.columnDef.enableGrouping)||n)&&(null==(r=t.options.enableGrouping)||r)&&(!!e.accessorFn||!!e.columnDef.getGroupingValue)},e.getIsGrouped=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.includes(e.id)},e.getGroupedIndex=()=>{var n;return null==(n=t.getState().grouping)?void 0:n.indexOf(e.id)},e.getToggleGroupingHandler=()=>{let t=e.getCanGroup();return()=>{t&&e.toggleGrouping()}},e.getAutoAggregationFn=()=>{let n=t.getCoreRowModel().flatRows[0],r=null==n?void 0:n.getValue(e.id);return"number"==typeof r?pi.sum:"[object Date]"===Object.prototype.toString.call(r)?pi.extent:void 0},e.getAggregationFn=()=>{var n,r;if(!e)throw Error();return dX(e.columnDef.aggregationFn)?e.columnDef.aggregationFn:"auto"===e.columnDef.aggregationFn?e.getAutoAggregationFn():null!=(n=null==(r=t.options.aggregationFns)?void 0:r[e.columnDef.aggregationFn])?n:pi[e.columnDef.aggregationFn]}},createTable:e=>{e.setGrouping=t=>null==e.options.onGroupingChange?void 0:e.options.onGroupingChange(t),e.resetGrouping=t=>{var n,r;e.setGrouping(t?[]:null!=(n=null==(r=e.initialState)?void 0:r.grouping)?n:[])},e.getPreGroupedRowModel=()=>e.getFilteredRowModel(),e.getGroupedRowModel=()=>(!e._getGroupedRowModel&&e.options.getGroupedRowModel&&(e._getGroupedRowModel=e.options.getGroupedRowModel(e)),e.options.manualGrouping||!e._getGroupedRowModel)?e.getPreGroupedRowModel():e._getGroupedRowModel()},createRow:(e,t)=>{e.getIsGrouped=()=>!!e.groupingColumnId,e.getGroupingValue=n=>{if(e._groupingValuesCache.hasOwnProperty(n))return e._groupingValuesCache[n];let r=t.getColumn(n);return null!=r&&r.columnDef.getGroupingValue?(e._groupingValuesCache[n]=r.columnDef.getGroupingValue(e.original),e._groupingValuesCache[n]):e.getValue(n)},e._groupingValuesCache={}},createCell:(e,t,n,r)=>{e.getIsGrouped=()=>t.getIsGrouped()&&t.id===n.groupingColumnId,e.getIsPlaceholder=()=>!e.getIsGrouped()&&t.getIsGrouped(),e.getIsAggregated=()=>{var t;return!e.getIsGrouped()&&!e.getIsPlaceholder()&&!!(null!=(t=n.subRows)&&t.length)}}},{getInitialState:e=>({expanded:{},...e}),getDefaultOptions:e=>({onExpandedChange:dZ("expanded",e),paginateExpandedRows:!0}),createTable:e=>{let t=!1,n=!1;e._autoResetExpanded=()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetExpanded)?r:!e.options.manualExpanding){if(n)return;n=!0,e._queue(()=>{e.resetExpanded(),n=!1})}},e.setExpanded=t=>null==e.options.onExpandedChange?void 0:e.options.onExpandedChange(t),e.toggleAllRowsExpanded=t=>{(null!=t?t:!e.getIsAllRowsExpanded())?e.setExpanded(!0):e.setExpanded({})},e.resetExpanded=t=>{var n,r;e.setExpanded(t?{}:null!=(n=null==(r=e.initialState)?void 0:r.expanded)?n:{})},e.getCanSomeRowsExpand=()=>e.getPrePaginationRowModel().flatRows.some(e=>e.getCanExpand()),e.getToggleAllRowsExpandedHandler=()=>t=>{null==t.persist||t.persist(),e.toggleAllRowsExpanded()},e.getIsSomeRowsExpanded=()=>{let t=e.getState().expanded;return!0===t||Object.values(t).some(Boolean)},e.getIsAllRowsExpanded=()=>{let t=e.getState().expanded;return"boolean"==typeof t?!0===t:!(!Object.keys(t).length||e.getRowModel().flatRows.some(e=>!e.getIsExpanded()))},e.getExpandedDepth=()=>{let t=0;return(!0===e.getState().expanded?Object.keys(e.getRowModel().rowsById):Object.keys(e.getState().expanded)).forEach(e=>{let n=e.split(".");t=Math.max(t,n.length)}),t},e.getPreExpandedRowModel=()=>e.getSortedRowModel(),e.getExpandedRowModel=()=>(!e._getExpandedRowModel&&e.options.getExpandedRowModel&&(e._getExpandedRowModel=e.options.getExpandedRowModel(e)),e.options.manualExpanding||!e._getExpandedRowModel)?e.getPreExpandedRowModel():e._getExpandedRowModel()},createRow:(e,t)=>{e.toggleExpanded=n=>{t.setExpanded(r=>{var o;let i=!0===r||!!(null!=r&&r[e.id]),a={};if(!0===r?Object.keys(t.getRowModel().rowsById).forEach(e=>{a[e]=!0}):a=r,n=null!=(o=n)?o:!i,!i&&n)return{...a,[e.id]:!0};if(i&&!n){let{[e.id]:t,...n}=a;return n}return r})},e.getIsExpanded=()=>{var n;let r=t.getState().expanded;return!!(null!=(n=null==t.options.getIsRowExpanded?void 0:t.options.getIsRowExpanded(e))?n:!0===r||(null==r?void 0:r[e.id]))},e.getCanExpand=()=>{var n,r,o;return null!=(n=null==t.options.getRowCanExpand?void 0:t.options.getRowCanExpand(e))?n:(null==(r=t.options.enableExpanding)||r)&&!!(null!=(o=e.subRows)&&o.length)},e.getIsAllParentsExpanded=()=>{let n=!0,r=e;for(;n&&r.parentId;)n=(r=t.getRow(r.parentId,!0)).getIsExpanded();return n},e.getToggleExpandedHandler=()=>{let t=e.getCanExpand();return()=>{t&&e.toggleExpanded()}}}},{getInitialState:e=>({...e,pagination:{...pp(),...null==e?void 0:e.pagination}}),getDefaultOptions:e=>({onPaginationChange:dZ("pagination",e)}),createTable:e=>{let t=!1,n=!1;e._autoResetPageIndex=()=>{var r,o;if(!t)return void e._queue(()=>{t=!0});if(null!=(r=null!=(o=e.options.autoResetAll)?o:e.options.autoResetPageIndex)?r:!e.options.manualPagination){if(n)return;n=!0,e._queue(()=>{e.resetPageIndex(),n=!1})}},e.setPagination=t=>null==e.options.onPaginationChange?void 0:e.options.onPaginationChange(e=>dY(t,e)),e.resetPagination=t=>{var n;e.setPagination(t?pp():null!=(n=e.initialState.pagination)?n:pp())},e.setPageIndex=t=>{e.setPagination(n=>{let r=dY(t,n.pageIndex);return r=Math.max(0,Math.min(r,void 0===e.options.pageCount||-1===e.options.pageCount?Number.MAX_SAFE_INTEGER:e.options.pageCount-1)),{...n,pageIndex:r}})},e.resetPageIndex=t=>{var n,r;e.setPageIndex(t?0:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageIndex)?n:0)},e.resetPageSize=t=>{var n,r;e.setPageSize(t?10:null!=(n=null==(r=e.initialState)||null==(r=r.pagination)?void 0:r.pageSize)?n:10)},e.setPageSize=t=>{e.setPagination(e=>{let n=Math.max(1,dY(t,e.pageSize)),r=Math.floor(e.pageSize*e.pageIndex/n);return{...e,pageIndex:r,pageSize:n}})},e.setPageCount=t=>e.setPagination(n=>{var r;let o=dY(t,null!=(r=e.options.pageCount)?r:-1);return"number"==typeof o&&(o=Math.max(-1,o)),{...n,pageCount:o}}),e.getPageOptions=dK(()=>[e.getPageCount()],e=>{let t=[];return e&&e>0&&(t=[...Array(e)].fill(null).map((e,t)=>t)),t},dQ(e.options,"debugTable","getPageOptions")),e.getCanPreviousPage=()=>e.getState().pagination.pageIndex>0,e.getCanNextPage=()=>{let{pageIndex:t}=e.getState().pagination,n=e.getPageCount();return -1===n||0!==n&&t<n-1},e.previousPage=()=>e.setPageIndex(e=>e-1),e.nextPage=()=>e.setPageIndex(e=>e+1),e.firstPage=()=>e.setPageIndex(0),e.lastPage=()=>e.setPageIndex(e.getPageCount()-1),e.getPrePaginationRowModel=()=>e.getExpandedRowModel(),e.getPaginationRowModel=()=>(!e._getPaginationRowModel&&e.options.getPaginationRowModel&&(e._getPaginationRowModel=e.options.getPaginationRowModel(e)),e.options.manualPagination||!e._getPaginationRowModel)?e.getPrePaginationRowModel():e._getPaginationRowModel(),e.getPageCount=()=>{var t;return null!=(t=e.options.pageCount)?t:Math.ceil(e.getRowCount()/e.getState().pagination.pageSize)},e.getRowCount=()=>{var t;return null!=(t=e.options.rowCount)?t:e.getPrePaginationRowModel().rows.length}}},{getInitialState:e=>({rowPinning:pf(),...e}),getDefaultOptions:e=>({onRowPinningChange:dZ("rowPinning",e)}),createRow:(e,t)=>{e.pin=(n,r,o)=>{let i=r?e.getLeafRows().map(e=>{let{id:t}=e;return t}):[],a=new Set([...o?e.getParentRows().map(e=>{let{id:t}=e;return t}):[],e.id,...i]);t.setRowPinning(e=>{var t,r,o,i,s,l;return"bottom"===n?{top:(null!=(o=null==e?void 0:e.top)?o:[]).filter(e=>!(null!=a&&a.has(e))),bottom:[...(null!=(i=null==e?void 0:e.bottom)?i:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)]}:"top"===n?{top:[...(null!=(s=null==e?void 0:e.top)?s:[]).filter(e=>!(null!=a&&a.has(e))),...Array.from(a)],bottom:(null!=(l=null==e?void 0:e.bottom)?l:[]).filter(e=>!(null!=a&&a.has(e)))}:{top:(null!=(t=null==e?void 0:e.top)?t:[]).filter(e=>!(null!=a&&a.has(e))),bottom:(null!=(r=null==e?void 0:e.bottom)?r:[]).filter(e=>!(null!=a&&a.has(e)))}})},e.getCanPin=()=>{var n;let{enableRowPinning:r,enablePinning:o}=t.options;return"function"==typeof r?r(e):null==(n=null!=r?r:o)||n},e.getIsPinned=()=>{let n=[e.id],{top:r,bottom:o}=t.getState().rowPinning,i=n.some(e=>null==r?void 0:r.includes(e)),a=n.some(e=>null==o?void 0:o.includes(e));return i?"top":!!a&&"bottom"},e.getPinnedIndex=()=>{var n,r;let o=e.getIsPinned();if(!o)return -1;let i=null==(n="top"===o?t.getTopRows():t.getBottomRows())?void 0:n.map(e=>{let{id:t}=e;return t});return null!=(r=null==i?void 0:i.indexOf(e.id))?r:-1}},createTable:e=>{e.setRowPinning=t=>null==e.options.onRowPinningChange?void 0:e.options.onRowPinningChange(t),e.resetRowPinning=t=>{var n,r;return e.setRowPinning(t?pf():null!=(n=null==(r=e.initialState)?void 0:r.rowPinning)?n:pf())},e.getIsSomeRowsPinned=t=>{var n,r,o;let i=e.getState().rowPinning;return t?!!(null==(n=i[t])?void 0:n.length):!!((null==(r=i.top)?void 0:r.length)||(null==(o=i.bottom)?void 0:o.length))},e._getPinnedRows=(t,n,r)=>{var o;return(null==(o=e.options.keepPinnedRows)||o?(null!=n?n:[]).map(t=>{let n=e.getRow(t,!0);return n.getIsAllParentsExpanded()?n:null}):(null!=n?n:[]).map(e=>t.find(t=>t.id===e))).filter(Boolean).map(e=>({...e,position:r}))},e.getTopRows=dK(()=>[e.getRowModel().rows,e.getState().rowPinning.top],(t,n)=>e._getPinnedRows(t,n,"top"),dQ(e.options,"debugRows","getTopRows")),e.getBottomRows=dK(()=>[e.getRowModel().rows,e.getState().rowPinning.bottom],(t,n)=>e._getPinnedRows(t,n,"bottom"),dQ(e.options,"debugRows","getBottomRows")),e.getCenterRows=dK(()=>[e.getRowModel().rows,e.getState().rowPinning.top,e.getState().rowPinning.bottom],(e,t,n)=>{let r=new Set([...null!=t?t:[],...null!=n?n:[]]);return e.filter(e=>!r.has(e.id))},dQ(e.options,"debugRows","getCenterRows"))}},{getInitialState:e=>({rowSelection:{},...e}),getDefaultOptions:e=>({onRowSelectionChange:dZ("rowSelection",e),enableRowSelection:!0,enableMultiRowSelection:!0,enableSubRowSelection:!0}),createTable:e=>{e.setRowSelection=t=>null==e.options.onRowSelectionChange?void 0:e.options.onRowSelectionChange(t),e.resetRowSelection=t=>{var n;return e.setRowSelection(t?{}:null!=(n=e.initialState.rowSelection)?n:{})},e.toggleAllRowsSelected=t=>{e.setRowSelection(n=>{t=void 0!==t?t:!e.getIsAllRowsSelected();let r={...n},o=e.getPreGroupedRowModel().flatRows;return t?o.forEach(e=>{e.getCanSelect()&&(r[e.id]=!0)}):o.forEach(e=>{delete r[e.id]}),r})},e.toggleAllPageRowsSelected=t=>e.setRowSelection(n=>{let r=void 0!==t?t:!e.getIsAllPageRowsSelected(),o={...n};return e.getRowModel().rows.forEach(t=>{ph(o,t.id,r,!0,e)}),o}),e.getPreSelectedRowModel=()=>e.getCoreRowModel(),e.getSelectedRowModel=dK(()=>[e.getState().rowSelection,e.getCoreRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},dQ(e.options,"debugTable","getSelectedRowModel")),e.getFilteredSelectedRowModel=dK(()=>[e.getState().rowSelection,e.getFilteredRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},dQ(e.options,"debugTable","getFilteredSelectedRowModel")),e.getGroupedSelectedRowModel=dK(()=>[e.getState().rowSelection,e.getSortedRowModel()],(t,n)=>Object.keys(t).length?pm(e,n):{rows:[],flatRows:[],rowsById:{}},dQ(e.options,"debugTable","getGroupedSelectedRowModel")),e.getIsAllRowsSelected=()=>{let t=e.getFilteredRowModel().flatRows,{rowSelection:n}=e.getState(),r=!!(t.length&&Object.keys(n).length);return r&&t.some(e=>e.getCanSelect()&&!n[e.id])&&(r=!1),r},e.getIsAllPageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows.filter(e=>e.getCanSelect()),{rowSelection:n}=e.getState(),r=!!t.length;return r&&t.some(e=>!n[e.id])&&(r=!1),r},e.getIsSomeRowsSelected=()=>{var t;let n=Object.keys(null!=(t=e.getState().rowSelection)?t:{}).length;return n>0&&n<e.getFilteredRowModel().flatRows.length},e.getIsSomePageRowsSelected=()=>{let t=e.getPaginationRowModel().flatRows;return!e.getIsAllPageRowsSelected()&&t.filter(e=>e.getCanSelect()).some(e=>e.getIsSelected()||e.getIsSomeSelected())},e.getToggleAllRowsSelectedHandler=()=>t=>{e.toggleAllRowsSelected(t.target.checked)},e.getToggleAllPageRowsSelectedHandler=()=>t=>{e.toggleAllPageRowsSelected(t.target.checked)}},createRow:(e,t)=>{e.toggleSelected=(n,r)=>{let o=e.getIsSelected();t.setRowSelection(i=>{var a;if(n=void 0!==n?n:!o,e.getCanSelect()&&o===n)return i;let s={...i};return ph(s,e.id,n,null==(a=null==r?void 0:r.selectChildren)||a,t),s})},e.getIsSelected=()=>{let{rowSelection:n}=t.getState();return pg(e,n)},e.getIsSomeSelected=()=>{let{rowSelection:n}=t.getState();return"some"===pv(e,n)},e.getIsAllSubRowsSelected=()=>{let{rowSelection:n}=t.getState();return"all"===pv(e,n)},e.getCanSelect=()=>{var n;return"function"==typeof t.options.enableRowSelection?t.options.enableRowSelection(e):null==(n=t.options.enableRowSelection)||n},e.getCanSelectSubRows=()=>{var n;return"function"==typeof t.options.enableSubRowSelection?t.options.enableSubRowSelection(e):null==(n=t.options.enableSubRowSelection)||n},e.getCanMultiSelect=()=>{var n;return"function"==typeof t.options.enableMultiRowSelection?t.options.enableMultiRowSelection(e):null==(n=t.options.enableMultiRowSelection)||n},e.getToggleSelectedHandler=()=>{let t=e.getCanSelect();return n=>{var r;t&&e.toggleSelected(null==(r=n.target)?void 0:r.checked)}}}},{getDefaultColumnDef:()=>ps,getInitialState:e=>({columnSizing:{},columnSizingInfo:pl(),...e}),getDefaultOptions:e=>({columnResizeMode:"onEnd",columnResizeDirection:"ltr",onColumnSizingChange:dZ("columnSizing",e),onColumnSizingInfoChange:dZ("columnSizingInfo",e)}),createColumn:(e,t)=>{e.getSize=()=>{var n,r,o;let i=t.getState().columnSizing[e.id];return Math.min(Math.max(null!=(n=e.columnDef.minSize)?n:ps.minSize,null!=(r=null!=i?i:e.columnDef.size)?r:ps.size),null!=(o=e.columnDef.maxSize)?o:ps.maxSize)},e.getStart=dK(e=>[e,pd(t,e),t.getState().columnSizing],(t,n)=>n.slice(0,e.getIndex(t)).reduce((e,t)=>e+t.getSize(),0),dQ(t.options,"debugColumns","getStart")),e.getAfter=dK(e=>[e,pd(t,e),t.getState().columnSizing],(t,n)=>n.slice(e.getIndex(t)+1).reduce((e,t)=>e+t.getSize(),0),dQ(t.options,"debugColumns","getAfter")),e.resetSize=()=>{t.setColumnSizing(t=>{let{[e.id]:n,...r}=t;return r})},e.getCanResize=()=>{var n,r;return(null==(n=e.columnDef.enableResizing)||n)&&(null==(r=t.options.enableColumnResizing)||r)},e.getIsResizing=()=>t.getState().columnSizingInfo.isResizingColumn===e.id},createHeader:(e,t)=>{e.getSize=()=>{let t=0,n=e=>{if(e.subHeaders.length)e.subHeaders.forEach(n);else{var r;t+=null!=(r=e.column.getSize())?r:0}};return n(e),t},e.getStart=()=>{if(e.index>0){let t=e.headerGroup.headers[e.index-1];return t.getStart()+t.getSize()}return 0},e.getResizeHandler=n=>{let r=t.getColumn(e.column.id),o=null==r?void 0:r.getCanResize();return i=>{if(!r||!o||(null==i.persist||i.persist(),pc(i)&&i.touches&&i.touches.length>1))return;let a=e.getSize(),s=e?e.getLeafHeaders().map(e=>[e.column.id,e.column.getSize()]):[[r.id,r.getSize()]],l=pc(i)?Math.round(i.touches[0].clientX):i.clientX,u={},c=(e,n)=>{"number"==typeof n&&(t.setColumnSizingInfo(e=>{var r,o;let i="rtl"===t.options.columnResizeDirection?-1:1,a=(n-(null!=(r=null==e?void 0:e.startOffset)?r:0))*i,s=Math.max(a/(null!=(o=null==e?void 0:e.startSize)?o:0),-.999999);return e.columnSizingStart.forEach(e=>{let[t,n]=e;u[t]=Math.round(100*Math.max(n+n*s,0))/100}),{...e,deltaOffset:a,deltaPercentage:s}}),("onChange"===t.options.columnResizeMode||"end"===e)&&t.setColumnSizing(e=>({...e,...u})))},d=e=>{c("end",e),t.setColumnSizingInfo(e=>({...e,isResizingColumn:!1,startOffset:null,startSize:null,deltaOffset:null,deltaPercentage:null,columnSizingStart:[]}))},p=n||("u">typeof document?document:null),f={moveHandler:e=>c("move",e.clientX),upHandler:e=>{null==p||p.removeEventListener("mousemove",f.moveHandler),null==p||p.removeEventListener("mouseup",f.upHandler),d(e.clientX)}},h={moveHandler:e=>(e.cancelable&&(e.preventDefault(),e.stopPropagation()),c("move",e.touches[0].clientX),!1),upHandler:e=>{var t;null==p||p.removeEventListener("touchmove",h.moveHandler),null==p||p.removeEventListener("touchend",h.upHandler),e.cancelable&&(e.preventDefault(),e.stopPropagation()),d(null==(t=e.touches[0])?void 0:t.clientX)}},m=!!function(){if("boolean"==typeof pu)return pu;let e=!1;try{let t=()=>{};window.addEventListener("test",t,{get passive(){return e=!0,!1}}),window.removeEventListener("test",t)}catch(t){e=!1}return pu=e}()&&{passive:!1};pc(i)?(null==p||p.addEventListener("touchmove",h.moveHandler,m),null==p||p.addEventListener("touchend",h.upHandler,m)):(null==p||p.addEventListener("mousemove",f.moveHandler,m),null==p||p.addEventListener("mouseup",f.upHandler,m)),t.setColumnSizingInfo(e=>({...e,startOffset:l,startSize:a,deltaOffset:0,deltaPercentage:0,columnSizingStart:s,isResizingColumn:r.id}))}}},createTable:e=>{e.setColumnSizing=t=>null==e.options.onColumnSizingChange?void 0:e.options.onColumnSizingChange(t),e.setColumnSizingInfo=t=>null==e.options.onColumnSizingInfoChange?void 0:e.options.onColumnSizingInfoChange(t),e.resetColumnSizing=t=>{var n;e.setColumnSizing(t?{}:null!=(n=e.initialState.columnSizing)?n:{})},e.resetHeaderSizeInfo=t=>{var n;e.setColumnSizingInfo(t?pl():null!=(n=e.initialState.columnSizingInfo)?n:pl())},e.getTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getLeftTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getLeftHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getCenterTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getCenterHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0},e.getRightTotalSize=()=>{var t,n;return null!=(t=null==(n=e.getRightHeaderGroups()[0])?void 0:n.headers.reduce((e,t)=>e+t.getSize(),0))?t:0}}}];function pS(e){let t=[],n=e=>{var r;t.push(e),null!=(r=e.subRows)&&r.length&&e.getIsExpanded()&&e.subRows.forEach(n)};return e.rows.forEach(n),{rows:t,flatRows:e.flatRows,rowsById:e.rowsById}}let pM={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"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",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z"},pT=RegExp(Object.keys(pM).join("|"),"g"),pk={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function pI(e,t,n){let r;return(e=pE(e,n),(t=pE(t,n)).length>e.length)?pk.NO_MATCH:e===t?pk.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase())===(t=t.toLowerCase())?pk.EQUAL:e.startsWith(t)?pk.STARTS_WITH:e.includes(` ${t}`)?pk.WORD_STARTS_WITH:e.includes(t)?pk.CONTAINS:1===t.length?pk.NO_MATCH:(r="",e.split(" ").forEach(e=>{e.split("-").forEach(e=>{r+=e.substr(0,1)})}),r).includes(t)?pk.ACRONYM:function(e,t){var n;let r,o=0,i=0;function a(e,t,n){for(let r=n,i=t.length;r<i;r++)if(t[r]===e)return o+=1,r+1;return -1}let s=a(t[0],e,0);if(s<0)return pk.NO_MATCH;i=s;for(let n=1,r=t.length;n<r;n++)if(!((i=a(t[n],e,i))>-1))return pk.NO_MATCH;return n=i-s,r=o/t.length,pk.MATCHES+1/n*r}(e,t)}function pE(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=e.replace(pT,e=>pM[e])),e}let pR={maxRanking:1/0,minRanking:-1/0};function pD(e,t,{isHeader:n,isLastColumn:r,isFirstColumn:o,defaultColumnHeight:i}={}){var a,s;let l=e.spacing(1),u=e.spacing(1.25),c=e.spacing(2),d=o?c:u,p=r?c:u,f=e.typography.body1.lineHeight,h=e.typography.body1.fontSize;"compact"===t&&(l=e.spacing(.5),u=e.spacing(.5),c=e.spacing(1),d=o?c:u,p=r?c:u,f=e.typography.body2.lineHeight,h=e.typography.body2.fontSize),"comfortable"===t&&(l=e.spacing(2),u=e.spacing(1.5),c=e.spacing(2),d=o?c:u,p=r?c:u,f=e.typography.body1.lineHeight,h=e.typography.body1.fontSize);let m=n||!i||"auto"===i?(a=f,s=l,("string"==typeof a?parseInt(a,10):a??0)+2*("string"==typeof s?parseInt(s,10):s)):i;return{padding:`${l} ${p} ${l} ${d}`,height:m,fontSize:h,lineHeight:f}}function pO(e,t){return e.map(({width:e,align:n,headerDescription:r,cellDescription:o,enableSorting:i,dataLink:a,enableResizing:s,...l})=>{var u,c,d,p,f,h,m;let g=s??t?.enableResizing??!1,v="auto"===e||void 0===e?(u=g,c=t?.minWidth,d=t?.maxWidth,u?{size:150,minSize:c??60,maxSize:d??1e3}:{size:0,minSize:0,maxSize:0}):(p=g,f=e,h=t?.minWidth,m=t?.maxWidth,p?{size:f,minSize:h??60,maxSize:m??1e3}:{size:f});return{...l,...v,enableSorting:!!i,enableResizing:g,meta:{align:n,headerDescription:r,cellDescription:o,dataLink:a}}})}var pj=n(32560),pP=n(22402);let pN=(0,pP.A)((0,c.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),pF=(0,pP.A)((0,c.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),p_=(0,pP.A)((0,c.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function pL(e){return(0,C.Ay)("MuiCheckbox",e)}let pz=(0,A.A)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]);var pB=n(64606),pV=n(73397);let p$=(0,y.A)(pj.A,{shouldForwardProp:e=>(0,lS.A)(e)||"classes"===e,name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${(0,v.A)(n.size)}`],"default"!==n.color&&t[`color${(0,v.A)(n.color)}`]]}})((0,x.A)(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette.action.active,e.palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter((0,b.A)()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette[t].main,e.palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter((0,b.A)()).map(([t])=>({props:{color:t},style:{[`&.${pz.checked}, &.${pz.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${pz.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),pH=(0,c.jsx)(pF,{}),pW=(0,c.jsx)(pN,{}),pU=(0,c.jsx)(p_,{}),pG=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiCheckbox"}),{checkedIcon:r=pH,color:o="primary",icon:i=pW,indeterminate:a=!1,indeterminateIcon:s=pU,inputProps:l,size:u="medium",disableRipple:p=!1,className:m,slots:g={},slotProps:y={},...x}=n,b=a?s:i,A=a?s:r,C={...n,disableRipple:p,color:o,indeterminate:a,size:u},S=(e=>{let{classes:t,indeterminate:n,color:r,size:o}=e,i={root:["root",n&&"indeterminate",`color${(0,v.A)(r)}`,`size${(0,v.A)(o)}`]},a=(0,h.A)(i,pL,t);return{...t,...a}})(C),M=y.input??l,[T,k]=(0,pV.A)("root",{ref:t,elementType:p$,className:(0,f.A)(S.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:g,slotProps:y,...x},ownerState:C,additionalProps:{type:"checkbox",icon:d.cloneElement(b,{fontSize:b.props.fontSize??u}),checkedIcon:d.cloneElement(A,{fontSize:A.props.fontSize??u}),disableRipple:p,slots:g,slotProps:{input:(0,pB.A)("function"==typeof M?M(C):M,{"data-indeterminate":a})}}});return(0,c.jsx)(T,{...k,classes:S})});function pq({color:e,density:t,...n}){let r="compact"===t;return(0,c.jsx)(pG,{size:r?"small":"medium",...n,focusRipple:!1,tabIndex:-1,sx:{color:e,padding:e=>e.spacing(r?.25:.5),position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)","&.Mui-checked":{color:e},"&.Mui-focusVisible":{background:e?(0,m.X4)(e,.5):void 0},"& .MuiSvgIcon-root":{fontSize:r?16:18}}})}var pY=n(3399),pZ=n(76746),pX=n(97653),pK=n(76795),pQ=n(45271);function pJ(e){return(0,C.Ay)("MuiToolbar",e)}(0,A.A)("MuiToolbar",["root","gutters","regular","dense"]);let p0=(0,y.A)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})((0,x.A)(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:"dense"},style:{minHeight:48}},{props:{variant:"regular"},style:e.mixins.toolbar}]}))),p1=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiToolbar"}),{className:r,component:o="div",disableGutters:i=!1,variant:a="regular",...s}=n,l={...n,component:o,disableGutters:i,variant:a},u=(e=>{let{classes:t,disableGutters:n,variant:r}=e;return(0,h.A)({root:["root",!n&&"gutters",r]},pJ,t)})(l);return(0,c.jsx)(p0,{as:o,className:(0,f.A)(u.root,r),ref:t,ownerState:l,...s})});var p2=n(35216),p5=n(96913),p4=n(70776);let p3=(0,pP.A)((0,c.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),p6=(0,pP.A)((0,c.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),p9=d.forwardRef(function(e,t){let{backIconButtonProps:n,count:r,disabled:o=!1,getItemAriaLabel:i,nextIconButtonProps:a,onPageChange:s,page:l,rowsPerPage:u,showFirstButton:d,showLastButton:p,slots:f={},slotProps:h={},...m}=e,g=(0,p2.I)(),v=f.firstButton??j.A,y=f.lastButton??j.A,x=f.nextButton??j.A,b=f.previousButton??j.A,w=f.firstButtonIcon??p6,A=f.lastButtonIcon??p3,C=f.nextButtonIcon??p4.A,S=f.previousButtonIcon??p5.A,M=g?y:v,T=g?x:b,k=g?b:x,I=g?v:y,E=g?h.lastButton:h.firstButton,R=g?h.nextButton:h.previousButton,D=g?h.previousButton:h.nextButton,O=g?h.firstButton:h.lastButton;return(0,c.jsxs)("div",{ref:t,...m,children:[d&&(0,c.jsx)(M,{onClick:e=>{s(e,0)},disabled:o||0===l,"aria-label":i("first",l),title:i("first",l),...E,children:g?(0,c.jsx)(A,{...h.lastButtonIcon}):(0,c.jsx)(w,{...h.firstButtonIcon})}),(0,c.jsx)(T,{onClick:e=>{s(e,l-1)},disabled:o||0===l,color:"inherit","aria-label":i("previous",l),title:i("previous",l),...R??n,children:g?(0,c.jsx)(C,{...h.nextButtonIcon}):(0,c.jsx)(S,{...h.previousButtonIcon})}),(0,c.jsx)(k,{onClick:e=>{s(e,l+1)},disabled:o||-1!==r&&l>=Math.ceil(r/u)-1,color:"inherit","aria-label":i("next",l),title:i("next",l),...D??a,children:g?(0,c.jsx)(S,{...h.previousButtonIcon}):(0,c.jsx)(C,{...h.nextButtonIcon})}),p&&(0,c.jsx)(I,{onClick:e=>{s(e,Math.max(0,Math.ceil(r/u)-1))},disabled:o||l>=Math.ceil(r/u)-1,"aria-label":i("last",l),title:i("last",l),...O,children:g?(0,c.jsx)(w,{...h.firstButtonIcon}):(0,c.jsx)(A,{...h.lastButtonIcon})})]})});var p7=n(63392);function p8(e){return(0,C.Ay)("MuiTablePagination",e)}let fe=(0,A.A)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]),ft=(0,y.A)(pQ.A,{name:"MuiTablePagination",slot:"Root",overridesResolver:(e,t)=>t.root})((0,x.A)(({theme:e})=>({overflow:"auto",color:(e.vars||e).palette.text.primary,fontSize:e.typography.pxToRem(14),"&:last-child":{padding:0}}))),fn=(0,y.A)(p1,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(e,t)=>({[`& .${fe.actions}`]:t.actions,...t.toolbar})})((0,x.A)(({theme:e})=>({minHeight:52,paddingRight:2,[`${e.breakpoints.up("xs")} and (orientation: landscape)`]:{minHeight:52},[e.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},[`& .${fe.actions}`]:{flexShrink:0,marginLeft:20}}))),fr=(0,y.A)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})({flex:"1 1 100%"}),fo=(0,y.A)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(e,t)=>t.selectLabel})((0,x.A)(({theme:e})=>({...e.typography.body2,flexShrink:0}))),fi=(0,y.A)(pK.A,{name:"MuiTablePagination",slot:"Select",overridesResolver:(e,t)=>({[`& .${fe.selectIcon}`]:t.selectIcon,[`& .${fe.select}`]:t.select,...t.input,...t.selectRoot})})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,[`& .${fe.select}`]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),fa=(0,y.A)(pX.A,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(e,t)=>t.menuItem})({}),fs=(0,y.A)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(e,t)=>t.displayedRows})((0,x.A)(({theme:e})=>({...e.typography.body2,flexShrink:0})));function fl({from:e,to:t,count:n}){return`${e}–${t} of ${-1!==n?n:`more than ${t}`}`}function fu(e){return`Go to ${e} page`}let fc=d.forwardRef(function(e,t){let n,r=(0,w.b)({props:e,name:"MuiTablePagination"}),{ActionsComponent:o=p9,backIconButtonProps:i,colSpan:a,component:s=pQ.A,count:l,disabled:p=!1,getItemAriaLabel:m=fu,labelDisplayedRows:g=fl,labelRowsPerPage:v="Rows per page:",nextIconButtonProps:y,onPageChange:x,onRowsPerPageChange:b,page:A,rowsPerPage:C,rowsPerPageOptions:S=[10,25,50,100],SelectProps:M={},showFirstButton:T=!1,showLastButton:k=!1,slotProps:I={},slots:E={},...R}=r,D=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},p8,t)})(r),O=I?.select??M,j=O.native?"option":fa;(s===pQ.A||"td"===s)&&(n=a||1e3);let P=(0,p7.A)(O.id),N=(0,p7.A)(O.labelId),F={slots:E,slotProps:I},[_,L]=(0,pV.A)("root",{ref:t,className:D.root,elementType:ft,externalForwardedProps:{...F,component:s,...R},ownerState:r,additionalProps:{colSpan:n}}),[z,B]=(0,pV.A)("toolbar",{className:D.toolbar,elementType:fn,externalForwardedProps:F,ownerState:r}),[V,$]=(0,pV.A)("spacer",{className:D.spacer,elementType:fr,externalForwardedProps:F,ownerState:r}),[H,W]=(0,pV.A)("selectLabel",{className:D.selectLabel,elementType:fo,externalForwardedProps:F,ownerState:r,additionalProps:{id:N}}),[U,G]=(0,pV.A)("select",{className:D.select,elementType:fi,externalForwardedProps:F,ownerState:r}),[q,Y]=(0,pV.A)("menuItem",{className:D.menuItem,elementType:j,externalForwardedProps:F,ownerState:r}),[Z,X]=(0,pV.A)("displayedRows",{className:D.displayedRows,elementType:fs,externalForwardedProps:F,ownerState:r});return(0,c.jsx)(_,{...L,children:(0,c.jsxs)(z,{...B,children:[(0,c.jsx)(V,{...$}),S.length>1&&(0,c.jsx)(H,{...W,children:v}),S.length>1&&(0,c.jsx)(U,{variant:"standard",...!O.variant&&{input:u||(u=(0,c.jsx)(pZ.Ay,{}))},value:C,onChange:b,id:P,labelId:N,...O,classes:{...O.classes,root:(0,f.A)(D.input,D.selectRoot,(O.classes||{}).root),select:(0,f.A)(D.select,(O.classes||{}).select),icon:(0,f.A)(D.selectIcon,(O.classes||{}).icon)},disabled:p,...G,children:S.map(e=>(0,d.createElement)(q,{...Y,key:e.label?e.label:e,value:e.value?e.value:e},e.label?e.label:e))}),(0,c.jsx)(Z,{...X,children:g({from:0===l?0:A*C+1,to:-1===l?(A+1)*C:-1===C?l:Math.min(l,(A+1)*C),count:-1===l?-1:l,page:A})}),(0,c.jsx)(o,{className:D.actions,backIconButtonProps:i,count:l,nextIconButtonProps:y,onPageChange:x,page:A,rowsPerPage:C,showFirstButton:T,showLastButton:k,slotProps:I.actions,slots:E.actions,getItemAriaLabel:m,disabled:p})]})})}),fd={row:0,column:0},fp=new Set(["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"]);var ff=n(91394);let fh=(0,y.A)(ff.A)(({theme:e})=>({tableLayout:"fixed",borderCollapse:"separate",backgroundColor:e.palette.background.default})),fm={compact:"small",standard:"medium",comfortable:"medium"},fg=(0,d.forwardRef)(function({density:e,...t},n){return(0,c.jsx)(fh,{...t,tabIndex:-1,size:fm[e],ref:n,sx:{width:"100%"}})});var fv=n(5139);let fy=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(fv.A,{...e,ref:t})});var fx=n(93399),fb=n(88091);function fw(e){return(0,C.Ay)("MuiLink",e)}let fA=(0,A.A)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]);var fC=n(95279);let fS={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},fM=(0,y.A)(fb.A,{name:"MuiLink",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${(0,v.A)(n.underline)}`],"button"===n.component&&t.button]}})((0,x.A)(({theme:e})=>({variants:[{props:{underline:"none"},style:{textDecoration:"none"}},{props:{underline:"hover"},style:{textDecoration:"none","&:hover":{textDecoration:"underline"}}},{props:{underline:"always"},style:{textDecoration:"underline","&:hover":{textDecorationColor:"inherit"}}},{props:({underline:e,ownerState:t})=>"always"===e&&"inherit"!==t.color,style:{textDecorationColor:"var(--Link-underlineColor)"}},...Object.entries(e.palette).filter((0,b.A)()).map(([t])=>({props:{underline:"always",color:t},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette[t].mainChannel} / 0.4)`:(0,m.X4)(e.palette[t].main,.4)}})),{props:{underline:"always",color:"textPrimary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:(0,m.X4)(e.palette.text.primary,.4)}},{props:{underline:"always",color:"textSecondary"},style:{"--Link-underlineColor":e.vars?`rgba(${e.vars.palette.text.secondaryChannel} / 0.4)`:(0,m.X4)(e.palette.text.secondary,.4)}},{props:{underline:"always",color:"textDisabled"},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:"button"},style:{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},[`&.${fA.focusVisible}`]:{outline:"auto"}}}]}))),fT=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiLink"}),r=(0,lb.A)(),{className:o,color:i="primary",component:a="a",onBlur:s,onFocus:l,TypographyClasses:u,underline:p="always",variant:g="inherit",sx:y,...x}=n,[b,A]=d.useState(!1),C={...n,color:i,component:a,focusVisible:b,underline:p,variant:g},S=(e=>{let{classes:t,component:n,focusVisible:r,underline:o}=e,i={root:["root",`underline${(0,v.A)(o)}`,"button"===n&&"button",r&&"focusVisible"]};return(0,h.A)(i,fw,t)})(C);return(0,c.jsx)(fM,{color:i,className:(0,f.A)(S.root,o),classes:u,component:a,onBlur:e=>{(0,fx.A)(e.target)||A(!1),s&&s(e)},onFocus:e=>{(0,fx.A)(e.target)&&A(!0),l&&l(e)},ref:t,ownerState:C,variant:g,...x,sx:[...void 0===fS[i]?[{color:i}]:[],...Array.isArray(y)?y:[y]],style:{...x.style,..."always"===p&&"inherit"!==i&&!fS[i]&&{"--Link-underlineColor":(({theme:e,ownerState:t})=>{let n=t.color,r=(0,fC.Yn)(e,`palette.${n}.main`,!1)||(0,fC.Yn)(e,`palette.${n}`,!1)||t.color,o=(0,fC.Yn)(e,`palette.${n}.mainChannel`)||(0,fC.Yn)(e,`palette.${n}Channel`);return"vars"in e&&o?`rgba(${o} / 0.4)`:(0,m.X4)(r,.4)})({theme:r,ownerState:C})}}})}),fk=(0,y.A)(pQ.A)(({theme:e})=>({padding:0,backgroundColor:"inherit","&.MuiTableCell-head":{backgroundColor:e.palette.background.default},"&:focus-visible":{outline:`solid 1px ${e.palette.primary.main}`,outlineOffset:"-1px",borderRadius:0}}));function fI({children:e,density:t,variant:n,width:r,defaultColumnHeight:o,focusState:i="none",onFocusTrigger:a,isFirstColumn:s,isLastColumn:l,description:u,align:p,color:f,backgroundColor:h,dataLink:m,adjacentCellsValuesMap:g,...v}){let y=(0,lb.A)(),x=(0,d.useRef)(),b="head"===n;(0,d.useEffect)(()=>{"trigger-focus"===i&&x.current&&x.current.focus()},[i]);let w=e=>{a?.(e)},A=(0,d.useMemo)(()=>{if(m){if(g&&rJ(m.url)){let{text:e}=rZ(m.url,g,{urlEncode:!0});return{...m,url:e}}return m}},[m,g]);return(0,c.jsx)(fk,{...v,tabIndex:"none"!==i?0:-1,onFocus:e=>{let t=e.currentTarget?.querySelector('a[href], button, input, textarea, select, details,[role="button"]');t&&t.focus()},onClick:w,onKeyUp:w,style:{width:r},sx:{position:"relative",borderBottom:b?`solid 1px ${y.palette.grey[100]}`:`solid 1px ${y.palette.grey[50]}`,"&:hover #original-cell":{position:"absolute",top:0,left:0,zIndex:10,width:"fit-content",minWidth:"100%",whiteSpace:"nowrap",overflow:"visible",backgroundColor:`${h??y.palette.background.default} !important`,outline:`solid 1px ${y.palette.info.main}`,outlineOffset:"-1px"}},ref:x,children:(0,c.jsx)(lw.A,{id:"original-cell",sx:{...pD(y,t,{isHeader:b,isLastColumn:l,isFirstColumn:s,defaultColumnHeight:o}),position:"relative",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",flexDirection:"inherit"},style:{backgroundColor:h??"inherit",color:f??"inherit"},title:u,"aria-label":u,textAlign:p,children:A?(0,c.jsx)(fT,{href:A.url,target:A.targetBlank?"_blank":"_self",rel:A.targetBlank?"noopener noreferrer":void 0,children:e}):e})})}var fE=n(91644);function fR(e){return(0,C.Ay)("MuiTableFooter",e)}(0,A.A)("MuiTableFooter",["root"]);let fD=(0,y.A)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-footer-group"}),fO={variant:"footer"},fj="tfoot",fP=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiTableFooter"}),{className:r,component:o=fj,...i}=n,a={...n,component:o},s=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},fR,t)})(a);return(0,c.jsx)(fE.A.Provider,{value:fO,children:(0,c.jsx)(fD,{as:o,className:(0,f.A)(s.root,r),ref:t,role:o===fj?null:"rowgroup",ownerState:a,...i})})}),fN=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(fP,{...e,ref:t})});var fF=n(70561);let f_=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(fF.A,{...e,ref:t})}),fL=(0,pP.A)((0,c.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function fz(e){return(0,C.Ay)("MuiTableSortLabel",e)}let fB=(0,A.A)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc","directionDesc","directionAsc"]),fV=(0,y.A)(lM.A,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})((0,x.A)(({theme:e})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${fB.icon}`]:{opacity:.5}},[`&.${fB.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${fB.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),f$=(0,y.A)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,t[`iconDirection${(0,v.A)(n.direction)}`]]}})((0,x.A)(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:e.transitions.create(["opacity","transform"],{duration:e.transitions.duration.shorter}),userSelect:"none",variants:[{props:{direction:"desc"},style:{transform:"rotate(0deg)"}},{props:{direction:"asc"},style:{transform:"rotate(180deg)"}}]}))),fH=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiTableSortLabel"}),{active:r=!1,children:o,className:i,direction:a="asc",hideSortIcon:s=!1,IconComponent:l=fL,slots:u={},slotProps:d={},...p}=n,m={...n,active:r,direction:a,hideSortIcon:s,IconComponent:l},g=(e=>{let{classes:t,direction:n,active:r}=e,o={root:["root",r&&"active",`direction${(0,v.A)(n)}`],icon:["icon",`iconDirection${(0,v.A)(n)}`]};return(0,h.A)(o,fz,t)})(m),y={slots:u,slotProps:d},[x,b]=(0,pV.A)("root",{elementType:fV,externalForwardedProps:y,ownerState:m,className:(0,f.A)(g.root,i),ref:t}),[A,C]=(0,pV.A)("icon",{elementType:f$,externalForwardedProps:y,ownerState:m,className:g.icon});return(0,c.jsxs)(x,{disableRipple:!0,component:"span",...b,...p,children:[o,s&&!r?null:(0,c.jsx)(A,{as:l,...C})]})});var fW=n(6227);function fU({onSort:e,sortDirection:t,nextSortDirection:n,children:r,resizeConfig:o,...i}){let a=!!e,s=(0,c.jsx)(fb.A,{noWrap:!0,variant:"inherit",component:"div",color:"inherit",children:r}),l=!!t;return(0,c.jsxs)(fI,{...i,children:[a?(0,c.jsx)(fH,{onClick:e,direction:l?t:n,active:l,sx:{verticalAlign:"unset",maxWidth:"100%","&:focus-visible":{[`& .${fB.icon}`]:{opacity:l?1:.5}}},children:s}):s,o&&(0,c.jsx)(lw.A,{onMouseDown:e=>{2===e.detail?o.resetSizeHandler():o.resizeHandler(e)},onTouchStart:o.resizeHandler,sx:{position:"absolute",height:"100%",top:0,right:"4px",cursor:"col-resize"},children:(0,c.jsx)(fW.A,{flexItem:!0,orientation:"vertical",sx:e=>({backgroundColor:o.isResizing?e.palette.action.active:e.palette.divider,borderRadius:"2px",borderWidth:"2px",height:"100%",touchAction:"none",transform:"translateX(4px)",userSelect:"none"})})})]})}let fG=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(pY.A,{...e,ref:t,sx:{backgroundColor:e=>e.palette.background.default,"&:hover":{backgroundColor:e=>(0,m.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}}})});var fq=n(2582),fY=n(3725),fZ=n(30443),fX=n(46823),fK=n(48865),fQ=n(32398),fJ=n(2203);function f0(e){return(0,C.Ay)("MuiTooltip",e)}let f1=(0,A.A)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),f2=(0,y.A)(fK.A,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})((0,x.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:e})=>!e.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:e})=>!e,style:{pointerEvents:"none"}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${f1.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${f1.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${f1.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${f1.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="right"] .${f1.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="right"] .${f1.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!e.isRtl,style:{[`&[data-popper-placement*="left"] .${f1.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:e})=>e.arrow&&!!e.isRtl,style:{[`&[data-popper-placement*="left"] .${f1.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),f5=(0,y.A)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${(0,v.A)(n.placement.split("-")[0])}`]]}})((0,x.A)(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:(0,m.X4)(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,[`.${f1.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${f1.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${f1.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${f1.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:e})=>e.arrow,style:{position:"relative",margin:0}},{props:({ownerState:e})=>e.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${Math.round(16/14*1e5)/1e5}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>!e.isRtl,style:{[`.${f1.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${f1.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:e})=>!e.isRtl&&e.touch,style:{[`.${f1.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${f1.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:e})=>!!e.isRtl,style:{[`.${f1.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${f1.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:e})=>!!e.isRtl&&e.touch,style:{[`.${f1.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${f1.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${f1.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:e})=>e.touch,style:{[`.${f1.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),f4=(0,y.A)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})((0,x.A)(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:(0,m.X4)(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}))),f3=!1,f6=new fY.E,f9={x:0,y:0};function f7(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}let f8=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiTooltip"}),{arrow:r=!1,children:o,classes:i,components:a={},componentsProps:s={},describeChild:l=!1,disableFocusListener:u=!1,disableHoverListener:p=!1,disableInteractive:m=!1,disableTouchListener:g=!1,enterDelay:y=100,enterNextDelay:x=0,enterTouchDelay:b=700,followCursor:A=!1,id:C,leaveDelay:S=0,leaveTouchDelay:M=1500,onClose:T,onOpen:k,open:I,placement:E="bottom",PopperComponent:R,PopperProps:D={},slotProps:O={},slots:j={},title:P,TransitionComponent:N,TransitionProps:F,..._}=n,L=d.isValidElement(o)?o:(0,c.jsx)("span",{children:o}),z=(0,lb.A)(),B=(0,p2.I)(),[V,$]=d.useState(),[H,W]=d.useState(null),U=d.useRef(!1),G=m||A,q=(0,fY.A)(),Y=(0,fY.A)(),Z=(0,fY.A)(),X=(0,fY.A)(),[K,Q]=(0,fJ.A)({controlled:I,default:!1,name:"Tooltip",state:"open"}),J=K,ee=(0,p7.A)(C),et=d.useRef(),en=(0,fQ.A)(()=>{void 0!==et.current&&(document.body.style.WebkitUserSelect=et.current,et.current=void 0),X.clear()});d.useEffect(()=>en,[en]);let er=e=>{f6.clear(),f3=!0,Q(!0),k&&!J&&k(e)},eo=(0,fQ.A)(e=>{f6.start(800+S,()=>{f3=!1}),Q(!1),T&&J&&T(e),q.start(z.transitions.duration.shortest,()=>{U.current=!1})}),ei=e=>{U.current&&"touchstart"!==e.type||(V&&V.removeAttribute("title"),Y.clear(),Z.clear(),y||f3&&x?Y.start(f3?x:y,()=>{er(e)}):er(e))},ea=e=>{Y.clear(),Z.start(S,()=>{eo(e)})},[,es]=d.useState(!1),el=e=>{(0,fx.A)(e.target)||(es(!1),ea(e))},eu=e=>{V||$(e.currentTarget),(0,fx.A)(e.target)&&(es(!0),ei(e))},ec=e=>{U.current=!0;let t=L.props;t.onTouchStart&&t.onTouchStart(e)};d.useEffect(()=>{if(J)return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e)};function e(e){"Escape"===e.key&&eo(e)}},[eo,J]);let ed=(0,lk.A)((0,fZ.A)(L),$,t);P||0===P||(J=!1);let ep=d.useRef(),ef={},eh="string"==typeof P;l?(ef.title=J||!eh||p?null:P,ef["aria-describedby"]=J?ee:null):(ef["aria-label"]=eh?P:null,ef["aria-labelledby"]=J&&!eh?ee:null);let em={...ef,..._,...L.props,className:(0,f.A)(_.className,L.props.className),onTouchStart:ec,ref:ed,...A?{onMouseMove:e=>{let t=L.props;t.onMouseMove&&t.onMouseMove(e),f9={x:e.clientX,y:e.clientY},ep.current&&ep.current.update()}}:{}},eg={};g||(em.onTouchStart=e=>{ec(e),Z.clear(),q.clear(),en(),et.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",X.start(b,()=>{document.body.style.WebkitUserSelect=et.current,ei(e)})},em.onTouchEnd=e=>{L.props.onTouchEnd&&L.props.onTouchEnd(e),en(),Z.start(M,()=>{eo(e)})}),!p&&(em.onMouseOver=f7(ei,em.onMouseOver),em.onMouseLeave=f7(ea,em.onMouseLeave),G||(eg.onMouseOver=ei,eg.onMouseLeave=ea)),!u&&(em.onFocus=f7(eu,em.onFocus),em.onBlur=f7(el,em.onBlur),G||(eg.onFocus=eu,eg.onBlur=el));let ev={...n,isRtl:B,arrow:r,disableInteractive:G,placement:E,PopperComponentProp:R,touch:U.current},ey="function"==typeof O.popper?O.popper(ev):O.popper,ex=d.useMemo(()=>{let e=[{name:"arrow",enabled:!!H,options:{element:H,padding:4}}];return D.popperOptions?.modifiers&&(e=e.concat(D.popperOptions.modifiers)),ey?.popperOptions?.modifiers&&(e=e.concat(ey.popperOptions.modifiers)),{...D.popperOptions,...ey?.popperOptions,modifiers:e}},[H,D.popperOptions,ey?.popperOptions]),eb=(e=>{let{classes:t,disableInteractive:n,arrow:r,touch:o,placement:i}=e,a={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",o&&"touch",`tooltipPlacement${(0,v.A)(i.split("-")[0])}`],arrow:["arrow"]};return(0,h.A)(a,f0,t)})(ev),ew="function"==typeof O.transition?O.transition(ev):O.transition,eA={slots:{popper:a.Popper,transition:a.Transition??N,tooltip:a.Tooltip,arrow:a.Arrow,...j},slotProps:{arrow:O.arrow??s.arrow,popper:{...D,...ey??s.popper},tooltip:O.tooltip??s.tooltip,transition:{...F,...ew??s.transition}}},[eC,eS]=(0,pV.A)("popper",{elementType:f2,externalForwardedProps:eA,ownerState:ev,className:(0,f.A)(eb.popper,D?.className)}),[eM,eT]=(0,pV.A)("transition",{elementType:fX.A,externalForwardedProps:eA,ownerState:ev}),[ek,eI]=(0,pV.A)("tooltip",{elementType:f5,className:eb.tooltip,externalForwardedProps:eA,ownerState:ev}),[eE,eR]=(0,pV.A)("arrow",{elementType:f4,className:eb.arrow,externalForwardedProps:eA,ownerState:ev,ref:W});return(0,c.jsxs)(d.Fragment,{children:[d.cloneElement(L,em),(0,c.jsx)(eC,{as:R??fK.A,placement:E,anchorEl:A?{getBoundingClientRect:()=>({top:f9.y,left:f9.x,right:f9.x,bottom:f9.y,width:0,height:0})}:V,popperRef:ep,open:!!V&&J,id:ee,transition:!0,...eg,...eS,popperOptions:ex,children:({TransitionProps:e})=>(0,c.jsx)(eM,{timeout:z.transitions.duration.shorter,...e,...eT,children:(0,c.jsxs)(ek,{...eI,children:[P,r?(0,c.jsx)(eE,{...eR}):null]})})})]})});var he=n(58597),ht=n(7800),hn=n(98599),hr=n(16979),ho=n(9323),hi=n(12933),ha=n(46177);let hs=(0,d.forwardRef)(function({debounceMs:e=250,value:t,onChange:n,...r},o){let[i,a]=(0,d.useState)(t),s=(0,d.useCallback)(e=>{n?.(e)},[n]),l=(0,d.useMemo)(()=>ha(s,e),[e,s]);return(0,c.jsx)(P.A,{ref:o,value:i,onChange:function(e){a(e.target.value),l(e.target.value)},...r})});function hl({isSearchEnabled:e,globalFilter:t,onGlobalFilterChange:n,isColumnFilterEnabled:r,columns:o,width:i,columnFilterMenuMaxHeight:a=400,isExpandAllEnabled:s,isAllExpanded:l,onExpandAllChange:u}){let[p,f]=(0,d.useState)(null),h=!!p,[m,g]=(0,d.useState)(0),v=(0,d.useCallback)(()=>{n(""),g(e=>e+1)},[n]);return e||r||s?(0,c.jsxs)(O.A,{direction:"row",gap:1,alignItems:"center",justifyContent:"flex-end",width:i,padding:"0.5rem",sx:{backgroundColor:e=>e.palette.background.default},children:[e&&(0,c.jsx)(hs,{placeholder:"Search...",value:t,onChange:n,variant:"standard",slotProps:{htmlInput:{"aria-label":"search table"},input:{startAdornment:(0,c.jsx)(fq.A,{position:"start",children:(0,c.jsx)(hn,{fontSize:"small"})}),endAdornment:""!==t&&(0,c.jsx)(fq.A,{position:"end",children:(0,c.jsx)(j.A,{onClick:v,children:(0,c.jsx)(ht,{fontSize:"small"})})})}},sx:{flexGrow:1}},m),s&&(0,c.jsx)(f8,{title:l?"Collapse all":"Expand all",children:(0,c.jsx)(j.A,{onClick:u,color:"info","aria-label":l?"collapse all rows":"expand all rows",children:l?(0,c.jsx)(hr,{}):(0,c.jsx)(ho,{})})}),r&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.A,{onClick:e=>f(e.currentTarget),"aria-haspopup":"listbox","aria-expanded":h,color:"info",children:(0,c.jsx)(hi,{})}),(0,c.jsx)(he.A,{anchorEl:p,open:h,onClose:()=>f(null),slotProps:{list:{dense:!0}},sx:{maxHeight:a},children:o.map(e=>{let t=e.columnDef.header,n="string"==typeof t?t:e.id;return(0,c.jsxs)(pX.A,{disabled:!e.getCanHide(),onClick:e.getCanHide()?e.getToggleVisibilityHandler():void 0,dense:!0,children:[(0,c.jsx)(pG,{checked:e.getIsVisible(),disabled:!e.getCanHide(),size:"small",disableRipple:!0,sx:{p:0,mr:1}}),(0,c.jsx)(lj.A,{primary:n})]},e.id)})})]})]}):null}hs.displayName="TextField";var hu=n(347);let hc=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(hu.A,{...e,tabIndex:-1,ref:t,sx:rD({flexGrow:1},e.sx)})});function hd({width:e,height:t,density:n,defaultColumnWidth:r,defaultColumnHeight:o,onRowClick:i,onRowMouseOver:a,onRowMouseOut:s,rows:l,columns:u,headers:p,columnSizing:f,columnSizingInfo:h,cellConfigs:m,pagination:g,onPaginationChange:v,rowCount:y,toolbarConfig:x}){let b=(0,d.useRef)(null),w=(0,d.useRef)({startIndex:0,endIndex:0}),A=function({visibleRange:e,virtualTable:t,maxRows:n,maxColumns:r}){return function({maxRows:e,maxColumns:t,onActiveCellChange:n}){let[r,o]=(0,d.useState)(fd),[i,a]=(0,d.useState)(!1);return{activeCell:r,isActive:i,onTableKeyDown:(0,d.useCallback)(r=>{let i=r.key;(fp.has(i)||"Home"===i||"End"===i||"PageDown"===i||"PageUp"===i)&&o(o=>{let a=o.row,s=o.column;"ArrowRight"===i&&s<t-1?(r.preventDefault(),s+=1):"ArrowLeft"===i&&s>0?(r.preventDefault(),s-=1):"ArrowDown"===i&&a<e-1?(r.preventDefault(),a+=1):"ArrowUp"===i&&a>0?(r.preventDefault(),a-=1):"Home"===i?(r.preventDefault(),a=0,s=0):"End"===i&&(r.preventDefault(),a=e-1,s=t-1);let l={column:s,row:a},u=n?.(r,o,l)||l;return u.row===o.row&&u.column===o.column?o:u})},[t,e,n]),onCellFocus:e=>{e.column===r.column&&e.row===r.row&&i||(a(!0),o(e))},onTableBlur:(0,d.useCallback)(e=>{e.currentTarget.contains(e.relatedTarget)||(a(!1),o(fd))},[])}}({maxRows:n,maxColumns:r,onActiveCellChange:(r,o,i)=>{let a=r.key,s=i&&(o.column!==i.column||o.row!==i.row),l=i?.row??o.row;if("ArrowDown"===a&&s)(l-1<e.current.startIndex||l-1>e.current.endIndex)&&t.current?.scrollToIndex({index:l-1,align:"end"});else if("ArrowUp"===a&&s)(l-1<e.current.startIndex||l-1>e.current.endIndex)&&t.current?.scrollToIndex({index:l-1,align:"start"});else if(s&&("Home"===a||"End"===a))t.current?.scrollToIndex({index:Math.max(l-1,0),align:"start"});else if("PageDown"===a){r.preventDefault();let i=o.row;return i=Math.min(n-1,e.current.endIndex+1),t.current?.scrollToIndex({index:i-1,align:"start"}),{row:i,column:o.column}}else if("PageUp"===a){let n=o.row;return n=Math.max(0,e.current.startIndex-1),t.current?.scrollToIndex({index:n-1,align:"end"}),{row:n,column:o.column}}return i}})}({visibleRange:w,virtualTable:b,maxRows:l.length+1,maxColumns:u.length}),C=e=>e.row===A.activeCell.row&&e.column===A.activeCell.column?A.isActive?"trigger-focus":"focus-next":"none",S=(0,d.useMemo)(()=>({Scroller:hc,Table:t=>(0,c.jsx)(fg,{...t,width:e,density:n,onKeyDown:A.onTableKeyDown,onBlur:A.onTableBlur}),TableHead:f_,TableFoot:fN,TableRow:({item:e,...t})=>{let r=l[t["data-index"]];if(!r)return null;let o={id:r.id,index:r.index};return(0,c.jsx)(fG,{...t,onClick:e=>i(e,r.id),density:n,onMouseOver:e=>{a?.(e,o)},onMouseOut:e=>{s?.(e,o)}})},TableBody:fy}),[n,A.onTableKeyDown,A.onTableBlur,i,s,a,l,e]),M=(e,t)=>{g&&v&&v({...g,pageIndex:t})},T=e=>{g&&v&&v({pageIndex:0,pageSize:parseInt(e.target.value,10)})},k=(0,d.useMemo)(()=>{let e={};return p.forEach(t=>{t.headers.filter(e=>e.column.getCanResize()).forEach(t=>{e[`--header-${t.id}-size`]=t.getSize(),e[`--col-${t.column.id}-size`]=t.column.getSize()})}),e},[h,f,p]);return(0,c.jsxs)(lw.A,{style:{width:e,height:t,...k},children:[(0,c.jsx)(hl,{...x,width:e}),(0,c.jsx)(dh,{ref:b,totalCount:l.length,components:S,rangeChanged:e=>{w.current=e},fixedHeaderContent:()=>(0,c.jsx)(c.Fragment,{children:p.map(e=>(0,c.jsx)(fG,{density:n,children:e.headers.map((e,t,i)=>{var a,s,l,u,p;let f,h=e.column,m={row:0,column:t},g=h.getIsSorted(),v=h.getNextSortingOrder();return(0,c.jsx)(fU,{onSort:h.getCanSort()?h.getToggleSortingHandler():void 0,sortDirection:"string"==typeof g?g:void 0,nextSortDirection:"string"==typeof v?v:void 0,width:e.column.getCanResize()?`calc(var(--header-${e?.id}-size) * 1px)`:h.getSize()||r,defaultColumnHeight:o,align:h.columnDef.meta?.align,variant:"head",density:n,description:h.columnDef.meta?.headerDescription,focusState:C(m),onFocusTrigger:()=>A.onCellFocus(m),isFirstColumn:0===t,isLastColumn:t===i.length-1,resizeConfig:e.column.getCanResize()?{resizeHandler:e.getResizeHandler(),resetSizeHandler:e.column.resetSize,isResizing:e.column.getIsResizing()}:void 0,children:(a=h.columnDef.header,s=e.getContext(),a?"function"==typeof(u=l=a)&&(f=Object.getPrototypeOf(u)).prototype&&f.prototype.isReactComponent||"function"==typeof l||"object"==typeof(p=l)&&"symbol"==typeof p.$$typeof&&["react.memo","react.forward_ref"].includes(p.$$typeof.description)?d.createElement(a,s):a:null)},e.id)})},e.id))}),fixedFooterContent:g?()=>(0,c.jsx)(pY.A,{sx:{backgroundColor:e=>e.palette.background.default},children:(0,c.jsx)(fc,{colSpan:u.length,count:y,page:g.pageIndex,rowsPerPage:g.pageSize,onPageChange:M,onRowsPerPageChange:T})}):void 0,itemContent:e=>{let t=l[e];return t?(0,c.jsx)(c.Fragment,{children:t.getVisibleCells().map((i,a,s)=>{let l,u={row:e+1,column:a},d=i.getContext(),p=m?.[d.cell.id],f=i.column.columnDef.cell,h="function"==typeof f?f(d):null,g=i.column.columnDef.meta?.cellDescription;"function"==typeof g?l=g(d):g&&"string"==typeof h&&(l=h);let v=Object.entries(t.original)?.filter(([e,t])=>["string","number"].includes(typeof t)).reduce((e,[t,n])=>({...e,[t]:String(n)}),{});return(0,c.jsx)(fI,{"data-testid":i.id,title:l||p?.text||h,width:i.column.getCanResize()?`calc(var(--col-${i.column.id}-size) * 1px)`:i.column.getSize()||r,defaultColumnHeight:o,align:i.column.columnDef.meta?.align,density:n,focusState:C(u),onFocusTrigger:()=>A.onCellFocus(u),isFirstColumn:0===a,isLastColumn:a===s.length-1,description:l,color:p?.textColor??void 0,backgroundColor:p?.backgroundColor??void 0,dataLink:i.column.columnDef.meta?.dataLink,adjacentCellsValuesMap:v,children:p?.text||h},i.id)})}):null}})]})}let hp=(e,t)=>`${t}`,hf={},hh=[];function hm({data:e,columns:t,cellConfigs:n,density:r="standard",defaultColumnWidth:o=150,defaultColumnHeight:i="auto",checkboxSelection:a,onRowSelectionChange:s,onSortingChange:l,getCheckboxColor:u,getRowId:p=hp,rowSelection:f=hf,sorting:h=hh,getItemActions:m,hasItemActions:g,pagination:v,onPaginationChange:y,rowSelectionVariant:x="standard",getSubRows:b,hiddenColumns:w,tableToolbarConfig:A,columnResizeMode:C="onChange",defaultColumnConfig:S,...M}){let T=(0,lb.A)(),k=!!b,[I,E]=(0,d.useState)({}),{globalFilter:R,setGlobalFilter:D,fuzzySearchOptions:j}=function(e,t,n,r){let[o,i]=(0,d.useState)(""),[a,s]=(0,d.useState)(n),l=(0,d.useCallback)(e=>{i(t=>(t?t&&!e&&r(a):(s(n),r(!0)),e))},[n,a,r]);return{globalFilter:o,setGlobalFilter:l,fuzzySearchOptions:{filterFns:{fuzzy:(e,n,r,o)=>{let i=function(e,t,n){var r;if((n=n||{}).threshold=null!=(r=n.threshold)?r:pk.MATCHES,!n.accessors){let r=pI(e,t,n);return{rankedValue:e,rank:r,accessorIndex:-1,accessorThreshold:n.threshold,passed:r>=n.threshold}}let o=function(e,t){let n=[];for(let r=0,o=t.length;r<o;r++){let o=t[r],i="function"==typeof o?pR:{...pR,...o},a=function(e,t){let n=t;"object"==typeof t&&(n=t.accessor);let r=n(e);return null==r?[]:Array.isArray(r)?r:[String(r)]}(e,o);for(let e=0,t=a.length;e<t;e++)n.push({itemValue:a[e],attributes:i})}return n}(e,n.accessors),i={rankedValue:e,rank:pk.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let e=0;e<o.length;e++){let r=o[e],a=pI(r.itemValue,t,n),{minRanking:s,maxRanking:l,threshold:u=n.threshold}=r.attributes;a<s&&a>=pk.MATCHES?a=s:a>l&&(a=l),(a=Math.min(a,l))>=u&&a>i.rank&&(i.rank=a,i.passed=!0,i.accessorIndex=e,i.accessorThreshold=u,i.rankedValue=r.itemValue)}return i}(e.getValue(n),r,{threshold:pk[t]});return o({itemRank:i}),i.passed}},globalFilterFn:e?"fuzzy":void 0,getFilteredRowModel:e?e=>dK(()=>[e.getPreFilteredRowModel(),e.getState().columnFilters,e.getState().globalFilter],(t,n,r)=>{var o,i,a,s,l,u,c,d,p,f;let h,m,g,v,y,x,b,w,A,C;if(!t.rows.length||!(null!=n&&n.length)&&!r){for(let e=0;e<t.flatRows.length;e++)t.flatRows[e].columnFilters={},t.flatRows[e].columnFiltersMeta={};return t}let S=[],M=[];(null!=n?n:[]).forEach(t=>{var n;let r=e.getColumn(t.id);if(!r)return;let o=r.getFilterFn();o&&S.push({id:t.id,filterFn:o,resolvedValue:null!=(n=null==o.resolveFilterValue?void 0:o.resolveFilterValue(t.value))?n:t.value})});let T=(null!=n?n:[]).map(e=>e.id),k=e.getGlobalFilterFn(),I=e.getAllLeafColumns().filter(e=>e.getCanGlobalFilter());r&&k&&I.length&&(T.push("__global__"),I.forEach(e=>{var t;M.push({id:e.id,filterFn:k,resolvedValue:null!=(t=null==k.resolveFilterValue?void 0:k.resolveFilterValue(r))?t:r})}));for(let e=0;e<t.flatRows.length;e++){let n=t.flatRows[e];if(n.columnFilters={},S.length)for(let e=0;e<S.length;e++){let t=(h=S[e]).id;n.columnFilters[t]=h.filterFn(n,t,h.resolvedValue,e=>{n.columnFiltersMeta[t]=e})}if(M.length){for(let e=0;e<M.length;e++){let t=(m=M[e]).id;if(m.filterFn(n,t,m.resolvedValue,e=>{n.columnFiltersMeta[t]=e})){n.columnFilters.__global__=!0;break}}!0!==n.columnFilters.__global__&&(n.columnFilters.__global__=!1)}}return o=t.rows,i=e=>{for(let t=0;t<T.length;t++)if(!1===e.columnFilters[T[t]])return!1;return!0},e.options.filterFromLeafRows?(a=o,s=i,g=[],v={},y=null!=(u=(l=e).options.maxLeafRowFilterDepth)?u:100,{rows:(x=function(e,t){void 0===t&&(t=0);let n=[];for(let o=0;o<e.length;o++){var r;let i=e[o],a=d2(l,i.id,i.original,i.index,i.depth,void 0,i.parentId);if(a.columnFilters=i.columnFilters,null!=(r=i.subRows)&&r.length&&t<y){if(a.subRows=x(i.subRows,t+1),s(i=a)&&!a.subRows.length||s(i)||a.subRows.length){n.push(i),v[i.id]=i,g.push(i);continue}}else s(i=a)&&(n.push(i),v[i.id]=i,g.push(i))}return n})(a),flatRows:g,rowsById:v}):(c=o,d=i,b=[],w={},A=null!=(f=(p=e).options.maxLeafRowFilterDepth)?f:100,{rows:(C=function(e,t){void 0===t&&(t=0);let n=[];for(let o=0;o<e.length;o++){let i=e[o];if(d(i)){var r;if(null!=(r=i.subRows)&&r.length&&t<A){let e=d2(p,i.id,i.original,i.index,i.depth,void 0,i.parentId);e.subRows=C(i.subRows,t+1),i=e}n.push(i),b.push(i),w[i.id]=i}}return n})(c),flatRows:b,rowsById:w})},dQ(e.options,"debugTable","getFilteredRowModel",()=>e._autoResetPageIndex())):void 0,filterFromLeafRows:e,onGlobalFilterChange:l}}}(A?.isSearchEnabled,A?.fuzzyMatchThreshold??"CONTAINS",I,E),[P,N]=(0,d.useState)(w?.reduce((e,t)=>({...e,[t]:!1}),{})??{}),F=(0,d.useCallback)((e,t,n)=>{"standard"===x||n?t.toggleSelected():t.getIsSelected()&&!e.getIsAllRowsSelected()?e.toggleAllRowsSelected():s?.({[t.id]:!0})},[s,x]),_=(0,d.useCallback)((e,t,n)=>{let r=e.nativeEvent&&(e.nativeEvent instanceof MouseEvent||e.nativeEvent instanceof KeyboardEvent)?e.nativeEvent:void 0;F(t,n,!!r?.metaKey||!!r?.shiftKey)},[F]),L=(0,d.useMemo)(()=>({id:"itemActions",header:"Actions",cell:({row:e})=>(0,c.jsx)(O.A,{direction:"row",alignItems:"center",children:m?.({id:e.id,data:e.original})}),enableSorting:!1,enableResizing:!1}),[m]),z=(0,d.useMemo)(()=>({id:"checkboxRowSelect",size:28,header:({table:e})=>(0,c.jsx)(pq,{checked:e.getIsAllRowsSelected(),indeterminate:e.getIsSomeRowsSelected(),onChange:e.getToggleAllRowsSelectedHandler(),color:T.palette.text.primary,density:r}),cell:({row:e,table:t})=>(0,c.jsx)(pq,{checked:e.getIsSelected(),indeterminate:e.getIsSomeSelected(),onChange:n=>{_(n,t,e)},color:u?.(e.original),density:r}),enableSorting:!1,enableResizing:!1}),[T.palette.text.primary,r,u,_]),B=function(e){let t={state:{},onStateChange:()=>{},renderFallbackValue:null,...e},[n]=d.useState(()=>({current:function(e){var t,n;let r=[...pC,...null!=(t=e._features)?t:[]],o={_features:r},i=o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultOptions?void 0:t.getDefaultOptions(o)),{}),a={...null!=(n=e.initialState)?n:{}};o._features.forEach(e=>{var t;a=null!=(t=null==e.getInitialState?void 0:e.getInitialState(a))?t:a});let s=[],l=!1,u={_features:r,options:{...i,...e},initialState:a,_queue:e=>{s.push(e),l||(l=!0,Promise.resolve().then(()=>{for(;s.length;)s.shift()();l=!1}).catch(e=>setTimeout(()=>{throw e})))},reset:()=>{o.setState(o.initialState)},setOptions:e=>{var t;t=dY(e,o.options),o.options=o.options.mergeOptions?o.options.mergeOptions(i,t):{...i,...t}},getState:()=>o.options.state,setState:e=>{null==o.options.onStateChange||o.options.onStateChange(e)},_getRowId:(e,t,n)=>{var r;return null!=(r=null==o.options.getRowId?void 0:o.options.getRowId(e,t,n))?r:`${n?[n.id,t].join("."):t}`},getCoreRowModel:()=>(o._getCoreRowModel||(o._getCoreRowModel=o.options.getCoreRowModel(o)),o._getCoreRowModel()),getRowModel:()=>o.getPaginationRowModel(),getRow:(e,t)=>{let n=(t?o.getPrePaginationRowModel():o.getRowModel()).rowsById[e];if(!n&&!(n=o.getCoreRowModel().rowsById[e]))throw Error();return n},_getDefaultColumnDef:dK(()=>[o.options.defaultColumn],e=>{var t;return e=null!=(t=e)?t:{},{header:e=>{let t=e.header.column.columnDef;return t.accessorKey?t.accessorKey:t.accessorFn?t.id:null},cell:e=>{var t,n;return null!=(t=null==(n=e.renderValue())||null==n.toString?void 0:n.toString())?t:null},...o._features.reduce((e,t)=>Object.assign(e,null==t.getDefaultColumnDef?void 0:t.getDefaultColumnDef()),{}),...e}},dQ(e,"debugColumns","_getDefaultColumnDef")),_getColumnDefs:()=>o.options.columns,getAllColumns:dK(()=>[o._getColumnDefs()],e=>{let t=function(e,n,r){return void 0===r&&(r=0),e.map(e=>{let i=function(e,t,n,r){var o,i;let a,s={...e._getDefaultColumnDef(),...t},l=s.accessorKey,u=null!=(o=null!=(i=s.id)?i:l?"function"==typeof String.prototype.replaceAll?l.replaceAll(".","_"):l.replace(/\./g,"_"):void 0)?o:"string"==typeof s.header?s.header:void 0;if(s.accessorFn?a=s.accessorFn:l&&(a=l.includes(".")?e=>{let t=e;for(let e of l.split(".")){var n;t=null==(n=t)?void 0:n[e]}return t}:e=>e[s.accessorKey]),!u)throw Error();let c={id:`${String(u)}`,accessorFn:a,parent:r,depth:n,columnDef:s,columns:[],getFlatColumns:dK(()=>[!0],()=>{var e;return[c,...null==(e=c.columns)?void 0:e.flatMap(e=>e.getFlatColumns())]},dQ(e.options,"debugColumns","column.getFlatColumns")),getLeafColumns:dK(()=>[e._getOrderColumnsFn()],e=>{var t;return null!=(t=c.columns)&&t.length?e(c.columns.flatMap(e=>e.getLeafColumns())):[c]},dQ(e.options,"debugColumns","column.getLeafColumns"))};for(let t of e._features)null==t.createColumn||t.createColumn(c,e);return c}(o,e,r,n);return i.columns=e.columns?t(e.columns,i,r+1):[],i})};return t(e)},dQ(e,"debugColumns","getAllColumns")),getAllFlatColumns:dK(()=>[o.getAllColumns()],e=>e.flatMap(e=>e.getFlatColumns()),dQ(e,"debugColumns","getAllFlatColumns")),_getAllFlatColumnsById:dK(()=>[o.getAllFlatColumns()],e=>e.reduce((e,t)=>(e[t.id]=t,e),{}),dQ(e,"debugColumns","getAllFlatColumnsById")),getAllLeafColumns:dK(()=>[o.getAllColumns(),o._getOrderColumnsFn()],(e,t)=>t(e.flatMap(e=>e.getLeafColumns())),dQ(e,"debugColumns","getAllLeafColumns")),getColumn:e=>o._getAllFlatColumnsById()[e]};Object.assign(o,u);for(let e=0;e<o._features.length;e++){let t=o._features[e];null==t||null==t.createTable||t.createTable(o)}return o}(t)})),[r,o]=d.useState(()=>n.current.initialState);return n.current.setOptions(t=>({...t,...e,state:{...r,...e.state},onStateChange:t=>{o(t),null==e.onStateChange||e.onStateChange(t)}})),n.current}({data:e,columns:(0,d.useMemo)(()=>{let e=pO(t,S);return g&&e.unshift(L),a&&e.unshift(z),e},[t,S,g,a,L,z]),getRowId:p,getCoreRowModel:e=>dK(()=>[e.options.data],t=>{let n={rows:[],flatRows:[],rowsById:{}},r=function(t,o,i){void 0===o&&(o=0);let a=[];for(let l=0;l<t.length;l++){let u=d2(e,e._getRowId(t[l],l,i),t[l],l,o,void 0,null==i?void 0:i.id);if(n.flatRows.push(u),n.rowsById[u.id]=u,a.push(u),e.options.getSubRows){var s;u.originalSubRows=e.options.getSubRows(t[l],l),null!=(s=u.originalSubRows)&&s.length&&(u.subRows=r(u.originalSubRows,o+1,u))}}return a};return n.rows=r(t),n},dQ(e.options,"debugTable","getRowModel",()=>e._autoResetPageIndex())),getSortedRowModel:e=>dK(()=>[e.getState().sorting,e.getPreSortedRowModel()],(t,n)=>{if(!n.rows.length||!(null!=t&&t.length))return n;let r=e.getState().sorting,o=[],i=r.filter(t=>{var n;return null==(n=e.getColumn(t.id))?void 0:n.getCanSort()}),a={};i.forEach(t=>{let n=e.getColumn(t.id);n&&(a[t.id]={sortUndefined:n.columnDef.sortUndefined,invertSorting:n.columnDef.invertSorting,sortingFn:n.getSortingFn()})});let s=e=>{let t=e.map(e=>({...e}));return t.sort((e,t)=>{for(let r=0;r<i.length;r+=1){var n;let o=i[r],s=a[o.id],l=s.sortUndefined,u=null!=(n=null==o?void 0:o.desc)&&n,c=0;if(l){let n=e.getValue(o.id),r=t.getValue(o.id),i=void 0===n,a=void 0===r;if(i||a){if("first"===l)return i?-1:1;if("last"===l)return i?1:-1;c=i&&a?0:i?l:-l}}if(0===c&&(c=s.sortingFn(e,t,o.id)),0!==c)return u&&(c*=-1),s.invertSorting&&(c*=-1),c}return e.index-t.index}),t.forEach(e=>{var t;o.push(e),null!=(t=e.subRows)&&t.length&&(e.subRows=s(e.subRows))}),t};return{rows:s(n.rows),flatRows:o,rowsById:n.rowsById}},dQ(e.options,"debugTable","getSortedRowModel",()=>e._autoResetPageIndex())),getPaginationRowModel:v?e=>dK(()=>[e.getState().pagination,e.getPrePaginationRowModel(),e.options.paginateExpandedRows?void 0:e.getState().expanded],(t,n)=>{let r;if(!n.rows.length)return n;let{pageSize:o,pageIndex:i}=t,{rows:a,flatRows:s,rowsById:l}=n,u=o*i;a=a.slice(u,u+o),(r=e.options.paginateExpandedRows?{rows:a,flatRows:s,rowsById:l}:pS({rows:a,flatRows:s,rowsById:l})).flatRows=[];let c=e=>{r.flatRows.push(e),e.subRows.length&&e.subRows.forEach(c)};return r.rows.forEach(c),r},dQ(e.options,"debugTable","getPaginationRowModel")):void 0,manualPagination:!v,enableRowSelection:!!a,onRowSelectionChange:e=>{let t="function"==typeof e?e(f):e;s?.(t)},onSortingChange:e=>{let t="function"==typeof e?e(h):e;l?.(t)},onColumnVisibilityChange:N,getSubRows:b,getExpandedRowModel:k?e=>dK(()=>[e.getState().expanded,e.getPreExpandedRowModel(),e.options.paginateExpandedRows],(e,t,n)=>t.rows.length&&(!0===e||Object.keys(null!=e?e:{}).length)&&n?pS(t):t,dQ(e.options,"debugTable","getExpandedRowModel")):void 0,...j,sortDescFirst:!0,columnResizeMode:C,onExpandedChange:E,state:{rowSelection:f,sorting:h,globalFilter:A?.isSearchEnabled?R:void 0,columnVisibility:P,...v?{pagination:v}:{},expanded:I}}),V=(0,d.useCallback)((e,t)=>{let n=B.getRow(t);F(B,n,e.metaKey||e.shiftKey)},[F,B]);return(0,c.jsx)(hd,{...M,density:r,defaultColumnWidth:o,defaultColumnHeight:i,onRowClick:V,rows:B.getRowModel().rows,columns:B.getVisibleFlatColumns(),columnSizing:B.getState().columnSizing,columnSizingInfo:B.getState().columnSizingInfo,headers:B.getHeaderGroups(),cellConfigs:n,pagination:v,onPaginationChange:y,rowCount:B.getRowCount(),toolbarConfig:{isSearchEnabled:A?.isSearchEnabled,globalFilter:R,onGlobalFilterChange:D,isColumnFilterEnabled:A?.isColumnFilterEnabled,columns:B.getAllColumns(),columnFilterMenuMaxHeight:A?.columnFilterMenuMaxHeight,isExpandAllEnabled:k,isAllExpanded:B.getIsAllRowsExpanded(),onExpandAllChange:B.getToggleAllRowsExpandedHandler()}})}let hg=[{accessorKey:"label",header:"Name",enableSorting:!0,enableResizing:!0,cell:({getValue:e})=>(0,c.jsx)("span",{title:e(),children:e()})}],hv=e=>e.id,hy=e=>e.color;function hx({items:e,selectedItems:t,onSelectedItemsChange:n,onItemMouseOver:r,onItemMouseOut:o,height:i,width:a,columns:s=[],sorting:l,onSortingChange:u}){let p=(0,d.useMemo)(()=>"string"!=typeof t?t:e.reduce((e,t,n)=>(e[hv(t,n)]=!0,e),{}),[t,e]),f=(0,d.useMemo)(()=>{let e=Math.max(a-(s?.reduce((e,t)=>e+("number"==typeof t.width?t.width:150),0)??0)-45,60*hg.length)/hg.length;return[...hg.map(t=>({...t,width:e})),...s]},[s,a]);return(0,c.jsx)(hm,{height:i,width:a,rowSelection:p,onRowSelectionChange:n,onRowMouseOver:r,onRowMouseOut:o,sorting:l,onSortingChange:u,data:e,columns:f,density:"compact",defaultColumnWidth:"auto",getRowId:hv,getCheckboxColor:hy,checkboxSelection:!0,rowSelectionVariant:"legend"})}function hb({width:e,height:t,options:n,data:r,selectedItems:o,onSelectedItemsChange:i,onItemMouseOver:a,onItemMouseOut:s,tableProps:l}){let u,d=(e,t)=>{let n=e.metaKey||e.shiftKey;i((0,lA.produce)(o,e=>{if("ALL"===e)return{[t]:!0};let r=!!e[t];return n?(r?delete e[t]:e[t]=!0,e):r?"ALL":{[t]:!0}}))},p=t5(n.mode),f=r.length>=500,h={height:t,items:r,selectedItems:o,onLegendItemClick:d,onItemMouseOver:a,onItemMouseOut:s};return(u="table"===p?(0,c.jsx)(hx,{...h,onSelectedItemsChange:i,width:e,...l}):"right"===n.position||f?(0,c.jsx)(dq,{...h,width:e,onLegendItemClick:d}):(0,c.jsx)(l_,{...h,onLegendItemClick:d}),"right"===n.position)?(0,c.jsx)(lw.A,{style:{width:e,height:t},sx:{position:"absolute",top:0,right:0,backgroundColor:e=>`${e.palette.background.default}`},children:u}):(0,c.jsx)(lw.A,{style:{width:e,height:t},sx:{position:"absolute",bottom:0,backgroundColor:e=>`${e.palette.background.default}`},children:u})}let hw={medium:{bottom:6,right:250},small:{bottom:4,right:150}};function hA({children:e,legendProps:t,width:n,height:r,spacing:o=0,legendSize:i,minChildrenWidth:a=100,minChildrenHeight:s=100}){let{content:l,legend:u,margin:d}=function({width:e,height:t,legendProps:n,legendSize:r,minChildrenHeight:o,minChildrenWidth:i,spacing:a,theme:s}){let l,u,c=n?.options,d={legend:{show:!1,width:0,height:0},content:{width:e,height:t},margin:{right:0,bottom:0}};if(!c)return d;let{position:p}=c;if("list"===t5(c.mode))l="right"===p?200:e,u=40,"right"===p?u=t:t>=300&&(u=100);else{let o=pD(s,"compact"),i=(n?.tableProps?.columns||[]).reduce((e,t)=>("number"==typeof t.width&&(e+=t.width),e),0);l="right"===p?hw[r].right+i:e;let a=Math.min(hw[r].bottom,n.data.length+1);u="bottom"===p?a*o.height:t}let f="right"===p?e-l-a:e,h="bottom"===p?t-u-a:t;return"right"===p&&f<i||"bottom"===p&&h<o?d:{legend:{width:l,height:u,show:!0},content:{width:f,height:h},margin:{right:"right"===p?a:0,bottom:"bottom"===p?a:0}}}({width:n,height:r,legendProps:t,minChildrenHeight:s,minChildrenWidth:a,spacing:o,theme:(0,lb.A)(),legendSize:t4(i)});return(0,c.jsxs)(lw.A,{style:{width:n,height:r},sx:{position:"relative",overflow:"hidden"},children:[(0,c.jsx)(lw.A,{style:{width:l.width,height:l.height},sx:{marginRight:`${d.right}px`,marginBottom:`${d.bottom}px`},children:"function"==typeof e?e({width:l.width,height:l.height}):e}),t&&u.show&&(0,c.jsx)(hb,{...t,height:u.height,width:u.width})]})}var hC=n(91467),hS=n(66834),hM=n(92890),hT=n(39750);let hk=(0,y.A)("form")({overflowY:"auto",display:"flex",flexDirection:"column"}),hI=e=>({position:"absolute",top:e.spacing(.5),right:e.spacing(.5)}),hE=({children:e,...t})=>(0,c.jsx)(hM.A,{...t,children:e});hE.Header=({children:e,onClose:t,...n})=>(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(hC.A,{style:{textOverflow:"ellipsis",overflow:"hidden"},...n,children:e}),t&&(0,c.jsx)(j.A,{"aria-label":"Close",onClick:t,sx:hI,children:(0,c.jsx)(ht,{})})]}),hE.Form=hk,hE.Content=({children:e,sx:t,...n})=>(0,c.jsx)(hS.A,{dividers:!0,...n,sx:rD({minWidth:"500px",textWrap:"balance"},t),children:e}),hE.PrimaryButton=({children:e,...t})=>(0,c.jsx)(R.A,{variant:"contained",type:"submit",...t,children:e}),hE.SecondaryButton=({children:e,...t})=>(0,c.jsx)(R.A,{variant:"outlined",color:"secondary",...t,children:e}),hE.Actions=hT.A;let hR=e=>{let{description:t,isOpen:n,onCancel:r,onDiscardChanges:o}=e;return(0,c.jsxs)(hE,{open:n,"aria-labelledby":"discard-dialog",children:[(0,c.jsx)(hE.Header,{children:"Discard Changes"}),(0,c.jsx)(hE.Content,{children:t}),(0,c.jsxs)(hE.Actions,{children:[(0,c.jsx)(R.A,{variant:"contained",onClick:o,children:"Discard Changes"}),(0,c.jsx)(R.A,{variant:"outlined",color:"secondary",onClick:r,children:"Cancel"})]})]})};var hD=n(66395);let hO=({children:e})=>(0,c.jsx)(hD.Ay,{item:!0,xs:4,children:(0,c.jsx)(O.A,{spacing:3,children:e})});var hj=n(67987),hP=n(9799),hN=n(17366);let hF=({id:e,title:t,description:n,placement:r,children:o,enterDelay:i,enterNextDelay:a})=>{let s=(0,c.jsx)("span",{children:o});return(0,c.jsx)(hL,{arrow:!0,id:e,placement:r??"top",title:(0,c.jsx)(h_,{title:t,description:n}),enterDelay:i??500,enterNextDelay:a??500,children:s})},h_=({title:e,description:t})=>(0,c.jsxs)(c.Fragment,{children:[e&&(0,c.jsx)(fb.A,{variant:"body2",sx:e=>({color:e.palette.text.primary,fontWeight:e.typography.fontWeightMedium}),children:e}),(0,c.jsx)(fb.A,{variant:"caption",sx:e=>({color:e.palette.text.primary,whiteSpace:"pre-line"}),children:t})]}),hL=(0,y.A)(({className:e,...t})=>(0,c.jsx)(f8,{...t,classes:{popper:e}}))(({theme:e})=>({[`& .${f1.tooltip}`]:{backgroundColor:e.palette.background.tooltip,color:e.palette.text.primary,maxWidth:"300px",padding:e.spacing(1),boxShadow:e.shadows[1]},[`& .${f1.arrow}`]:{color:e.palette.background.tooltip}})),hz=({label:e,control:t,description:n})=>{let r=rO("EditorSectionControl"),o=`${r}-control`,i=`${r}-label`;return(0,c.jsx)(hj.A,{children:(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",justifyContent:"space-between",children:[(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",justifyContent:"center",children:[(0,c.jsx)(hP.A,{id:i,htmlFor:o,children:e}),n&&(0,c.jsx)(hF,{description:n,enterDelay:100,children:(0,c.jsx)(j.A,{size:"small",sx:e=>({borderRadius:e.shape.borderRadius,padding:"4x",margin:"0 2px"}),children:(0,c.jsx)(hN,{"aria-describedby":"info-tooltip","aria-hidden":!1,fontSize:"inherit",sx:{color:e=>e.palette.grey[700]}})})})]}),(0,c.jsxs)(lw.A,{sx:{width:"180px",textAlign:"right"},children:[" ",p().cloneElement(t,{id:o,"aria-labelledby":i})]})]})})},hB=({children:e})=>(0,c.jsx)(hD.Ay,{container:!0,spacing:8,children:e}),hV=({title:e,children:t,icon:n})=>(0,c.jsxs)(lw.A,{children:[(0,c.jsxs)(lw.A,{display:"flex",borderBottom:1,borderColor:"grey.300",marginBottom:e=>e.spacing(1),children:[(0,c.jsx)(fb.A,{variant:"overline",component:"h4",children:e}),n&&(0,c.jsx)(lw.A,{sx:{marginLeft:"auto"},children:n})]}),(0,c.jsx)(O.A,{spacing:1,children:t})]});var h$=n(31271),hH=n(81227);function hW({options:e,renderInput:t=e=>(0,c.jsx)(P.A,{...e}),id:n,"aria-labelledby":r,...o}){let i=e=>e.label??e.id;return(0,c.jsx)(h$.A,{isOptionEqualToValue:(e,t)=>e.id===t.id,getOptionDisabled:e=>!!e.disabled,getOptionLabel:i,options:e,renderInput:e=>t({...e,inputProps:{...e.inputProps,id:n,"aria-labelledby":r}}),renderOption:({key:e,...t},n)=>(0,c.jsx)("li",{...t,children:(0,c.jsxs)("div",{children:[(0,c.jsx)(fb.A,{variant:"body1",component:"div",children:i(n)}),n.description&&(0,c.jsx)(fb.A,{variant:"body2",component:"div",sx:{color:e=>e.palette.text.secondary},children:n.description})]})},e),filterOptions:(0,hH.Z)({stringify:e=>`${i(e)} ${e.description||""}`}),...o})}let hU=[{id:"compact",label:"Compact"},{id:"standard",label:"Standard"},{id:"comfortable",label:"Comfortable"}];function hG({onChange:e,value:t="standard"}){return(0,c.jsx)(hz,{label:"Density",control:(0,c.jsx)(hW,{value:hU.find(e=>e.id===t),options:hU,getOptionLabel:e=>e.label,onChange:(t,{id:n})=>{e(n)},disableClearable:!0})})}function hq(){return(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",children:[(0,c.jsx)(lw.A,{sx:{content:'""',width:8,height:8,boxSizing:"border-box",position:"absolute",backgroundColor:e=>e.palette.background.default,border:e=>`2px solid ${e.palette.info.main}`,borderRadius:"50%"}}),(0,c.jsx)(lw.A,{sx:{content:'""',height:2,background:e=>e.palette.info.main,width:"100%"}})]})}function hY(e){return(hY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function hZ(e,t,n){var r;return(r=function(e,t){if("object"!=hY(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=hY(r))return r;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(t,"string"),(t="symbol"==hY(r)?r:r+"")in e)?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function hK(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?hX(Object(n),!0).forEach(function(t){hZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}var hQ={top:function(e,t){return Math.abs(t.y-e.top)},right:function(e,t){return Math.abs(e.right-t.x)},bottom:function(e,t){return Math.abs(e.bottom-t.y)},left:function(e,t){return Math.abs(t.x-e.left)}},hJ=Symbol("closestEdge");function h0(e){var t;return null!=(t=e[hJ])?t:null}function h1(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function h2(e,t){if(e){if("string"==typeof e)return h1(e,t);var n=({}).toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h1(e,t):void 0}}function h5(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||h2(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function h4(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(){t.forEach(function(e){return e()})}}var h3=n(96907),h6="data-pdnd-honey-pot";function h9(e){return e instanceof Element&&e.hasAttribute(h6)}function h7(e){var t=h5(document.elementsFromPoint(e.x,e.y),2),n=t[0],r=t[1];return n?h9(n)?null!=r?r:null:n:null}var h8={inset:"unset",border:"none",padding:0,margin:0,overflow:"visible",color:"inherit",background:"transparent"};function me(e){var t=null;return function(){if(!t){for(var n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];t={result:e.apply(this,r)}}return t.result}}var mt=me(function(){return"u">typeof HTMLElement&&"function"==typeof HTMLElement.prototype.showPopover});function mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(n),!0).forEach(function(t){hZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mn(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mo(e){var t,n,r,o,i={x:Math.min((o={x:Math.max((r={x:(n={x:Math.floor((t=e.client).x),y:Math.floor(t.y)}).x-1,y:n.y-1}).x,0),y:Math.max(r.y,0)}).x,window.innerWidth-2),y:Math.min(o.y,window.innerHeight-2)};return DOMRect.fromRect({x:i.x,y:i.y,width:2,height:2})}function mi(e){var t=e.clientRect;return{left:"".concat(t.left,"px"),top:"".concat(t.top,"px"),width:"".concat(t.width,"px"),height:"".concat(t.height,"px")}}function ma(e){return function(e){if(Array.isArray(e))return h1(e)}(e)||function(e){if("u">typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||h2(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var ms=me(function(){return navigator.userAgent.includes("Firefox")}),ml=me(function(){var e=navigator.userAgent;return e.includes("AppleWebKit")&&!e.includes("Chrome")}),mu={isLeavingWindow:Symbol("leaving"),isEnteringWindow:Symbol("entering")};if(!("u"<typeof window)&&ml()){var mc=md();(0,h3.bindAll)(window,[{type:"dragstart",listener:function(){mc.enterCount=0,mc.isOverWindow=!0}},{type:"drop",listener:mp},{type:"dragend",listener:mp},{type:"dragenter",listener:function(e){mc.isOverWindow||0!==mc.enterCount||(e[mu.isEnteringWindow]=!0),mc.isOverWindow=!0,mc.enterCount++}},{type:"dragleave",listener:function(e){mc.enterCount--,mc.isOverWindow&&0===mc.enterCount&&(e[mu.isLeavingWindow]=!0,mc.isOverWindow=!1)}}],{capture:!0})}function md(){return{enterCount:0,isOverWindow:!1}}function mp(){mc=md()}function mf(e){return{altKey:e.altKey,button:e.button,buttons:e.buttons,ctrlKey:e.ctrlKey,metaKey:e.metaKey,shiftKey:e.shiftKey,clientX:e.clientX,clientY:e.clientY,pageX:e.pageX,pageY:e.pageY}}var mh=(r=function(e){return e()},o=[],i=null,(a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];o=t,i||(i=requestAnimationFrame(function(){i=null,r.apply(void 0,o)}))}).cancel=function(){i&&(cancelAnimationFrame(i),i=null)},a),mm=(s=null,{schedule:function(e){s={frameId:requestAnimationFrame(function(){s=null,e()}),fn:e}},flush:function(){s&&(cancelAnimationFrame(s.frameId),s.fn(),s=null)}}),mg={isActive:!1};function mv(){return!mg.isActive}function my(e){var t,n=e.event,r=null==(t=e.current[0])?void 0:t.dropEffect;null!=r&&n.dataTransfer&&(n.dataTransfer.dropEffect=r)}var mx=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,o=e.dispatchEvent;if(mv()){var i,a,s=function(e){var t=e.event,n=e.dragType,r=e.getDropTargetsOver,o=mf(t);if("external"===n.startedFrom)return{input:o,dropTargets:[]};var i=r({input:o,source:n.payload,target:t.target,current:[]});return{input:o,dropTargets:i}}({event:t,dragType:n,getDropTargetsOver:r});mg.isActive=!0;var l={current:s};my({event:t,current:s.dropTargets});var u=function(e){var t=e.source,n=e.initial,r=e.dispatchEvent,o={dropTargets:[]};function i(e){r(e),o={dropTargets:e.payload.location.current.dropTargets}}return{start:function(e){var r=e.nativeSetDragImage,a={current:n,previous:o,initial:n};i({eventName:"onGenerateDragPreview",payload:{source:t,location:a,nativeSetDragImage:r}}),mm.schedule(function(){i({eventName:"onDragStart",payload:{source:t,location:a}})})},dragUpdate:function(e){var r=e.current;mm.flush(),mh.cancel(),i({eventName:"onDropTargetChange",payload:{source:t,location:{initial:n,previous:o,current:r}}})},drag:function(e){var r=e.current;mh(function(){mm.flush(),i({eventName:"onDrag",payload:{source:t,location:{initial:n,previous:o,current:r}}})})},drop:function(e){var r=e.current,a=e.updatedSourcePayload;mm.flush(),mh.cancel(),i({eventName:"onDrop",payload:{source:null!=a?a:t,location:{current:r,previous:o,initial:n}}})}}}({source:n.payload,dispatchEvent:o,initial:s}),c=(0,h3.bindAll)(window,[{type:"dragover",listener:function(e){p(e),u.drag({current:l.current})}},{type:"dragenter",listener:p},{type:"dragleave",listener:function(e){(function(e){var t=e.dragLeave,n=t.type,r=t.relatedTarget;return"dragleave"===n&&(ml()?!!ml()&&t.hasOwnProperty(mu.isLeavingWindow):null==r||(ms()?"nodeName"in r&&r.ownerDocument!==document:r instanceof HTMLIFrameElement))})({dragLeave:e})&&(d({input:l.current.input,dropTargets:[]}),"external"===n.startedFrom&&f())}},{type:"drop",listener:function(e){(l.current={dropTargets:l.current.dropTargets,input:mf(e)},l.current.dropTargets.length)?(e.preventDefault(),my({event:e,current:l.current.dropTargets}),u.drop({current:l.current,updatedSourcePayload:"external"===n.type?n.getDropPayload(e):null}),h()):f()}},{type:"dragend",listener:function(e){l.current={dropTargets:l.current.dropTargets,input:mf(e)},f()}}].concat(ma([{type:"pointermove",listener:(a=0,function(){a<20?a++:i()})},{type:"pointerdown",listener:i=f}])),{capture:!0});u.start({nativeSetDragImage:t.dataTransfer?t.dataTransfer.setDragImage.bind(t.dataTransfer):null})}function d(e){var t=function(e){var t=e.current,n=e.next;if(t.length!==n.length)return!0;for(var r=0;r<t.length;r++)if(t[r].element!==n[r].element)return!0;return!1}({current:l.current.dropTargets,next:e.dropTargets});l.current=e,t&&u.dragUpdate({current:l.current})}function p(e){var t=mf(e),o=r({target:h9(e.target)?h7({x:t.clientX,y:t.clientY}):e.target,input:t,source:n.payload,current:l.current.dropTargets});o.length&&(e.preventDefault(),my({event:e,current:o})),d({dropTargets:o,input:t})}function f(){l.current.dropTargets.length&&d({dropTargets:[],input:l.current.input}),u.drop({current:l.current,updatedSourcePayload:null}),h()}function h(){mg.isActive=!1,c()}},mb=new Map;function mw(e,t){var n=t.attribute,r=t.value;return e.setAttribute(n,r),function(){return e.removeAttribute(n)}}function mA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function mC(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mA(Object(n),!0).forEach(function(t){hZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mA(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mS(e,t){var n="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e){if(e){if("string"==typeof e)return mM(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mM(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,o=function(){};return{s:o,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function mM(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mT(e){return e.slice(0).reverse()}function mk(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function mI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}var mE=me(function(){return navigator.userAgent.toLocaleLowerCase().includes("android")}),mR="text/plain",mD=new WeakMap,mO=(l=null,{bindEvents:function(){return l=null,(0,h3.bind)(window,{type:"pointermove",listener:function(e){l={x:e.clientX,y:e.clientY}},options:{capture:!0}})},getOnPostDispatch:function(){var e=null;return function(t){var n=t.eventName,r=t.payload;if("onDragStart"===n){var o,i,a,s=r.location.initial.input,u=null!=l?l:{x:s.clientX,y:s.clientY};(o=document.createElement("div")).setAttribute(h6,"true"),mt()&&o.setAttribute("popover","manual"),i=mo({client:u}),Object.assign(o.style,mr(mr({position:"fixed"},mt()?h8:{zIndex:0x7fffffff}),{},{backgroundColor:"transparent",padding:0,margin:0,boxSizing:"border-box",pointerEvents:"auto"},mi({clientRect:i}))),document.body.appendChild(o),mt()&&o.showPopover(),a=(0,h3.bind)(window,{type:"pointermove",listener:function(e){i=mo({client:{x:e.clientX,y:e.clientY}}),Object.assign(o.style,mi({clientRect:i}))},options:{capture:!0}}),e=function(e){var t,n,r,s=e.current;if(a(),n=(t={client:s,clientRect:i}).client,r=t.clientRect,n.x>=r.x&&n.x<=r.x+r.width&&n.y>=r.y&&n.y<=r.y+r.height)return void o.remove();function l(){u(),o.remove()}var u=(0,h3.bindAll)(window,[{type:"pointerdown",listener:l},{type:"pointermove",listener:l},{type:"focusin",listener:l},{type:"focusout",listener:l},{type:"dragstart",listener:l},{type:"dragenter",listener:l},{type:"dragover",listener:l}],{capture:!0})}}if("onDrop"===n){var c,d=r.location.current.input;null==(c=e)||c({current:{x:d.clientX,y:d.clientY}}),e=null,l=null}}}}),mj=function(e){var t=e.typeKey,n=e.mount,r=e.dispatchEventToSource,o=e.onPostDispatch,i=e.defaultDropEffect,a=function(){var e=new Set,t=null;function n(e){t&&(!e.canMonitor||e.canMonitor(t.canMonitorArgs))&&t.active.add(e)}return{dispatchEvent:function(r){var o=r.eventName,i=r.payload;if("onGenerateDragPreview"===o){t={canMonitorArgs:{initial:i.location.initial,source:i.source},active:new Set};var a,s=function(e){var t="u">typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e){if(e){if("string"==typeof e)return mk(e,void 0);var t=({}).toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mk(e,void 0):void 0}}(e))){t&&(e=t);var n=0,r=function(){};return{s:r,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(e){throw e},f:r}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(e);try{for(s.s();!(a=s.n()).done;){var l=a.value;n(l)}}catch(e){s.e(e)}finally{s.f()}}if(t){for(var u=Array.from(t.active),c=0;c<u.length;c++){var d,p=u[c];t.active.has(p)&&(null==(d=p[o])||d.call(p,i))}"onDrop"===o&&(t.active.clear(),t=null)}},monitorForConsumers:function(r){var o=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mI(Object(n),!0).forEach(function(t){hZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r);return e.add(o),n(o),me(function(){e.delete(o),t&&t.active.delete(o)})}}}(),s=function(e){var t=e.typeKey,n=e.defaultDropEffect,r=new WeakMap,o="data-drop-target-for-".concat(t),i="[".concat(o,"]");function a(e){var t,n=e.eventName,o=e.payload,i=mS(o.location.current.dropTargets);try{for(i.s();!(t=i.n()).done;){var a,s=t.value,l=r.get(s.element),u=mC(mC({},o),{},{self:s});null==l||null==(a=l[n])||a.call(l,u)}}catch(e){i.e(e)}finally{i.f()}}var s={onGenerateDragPreview:a,onDrag:a,onDragStart:a,onDrop:a,onDropTargetChange:function(e){var t,n=e.payload,o=new Set(n.location.current.dropTargets.map(function(e){return e.element})),i=new Set,a=mS(n.location.previous.dropTargets);try{for(a.s();!(t=a.n()).done;){var s,l,u=t.value;i.add(u.element);var c=r.get(u.element),d=o.has(u.element),p=mC(mC({},n),{},{self:u});null==c||null==(s=c.onDropTargetChange)||s.call(c,p),d||null==c||null==(l=c.onDragLeave)||l.call(c,p)}}catch(e){a.e(e)}finally{a.f()}var f,h=mS(n.location.current.dropTargets);try{for(h.s();!(f=h.n()).done;){var m,g,v=f.value;if(!i.has(v.element)){var y=mC(mC({},n),{},{self:v}),x=r.get(v.element);null==x||null==(m=x.onDropTargetChange)||m.call(x,y),null==x||null==(g=x.onDragEnter)||g.call(x,y)}}}catch(e){h.e(e)}finally{h.f()}}};return{dropTargetForConsumers:function(e){return me(h4(mw(e.element,{attribute:o,value:"true"}),(r.set(e.element,e),function(){return r.delete(e.element)})))},getIsOver:function(e){var t=e.source,o=e.target,a=e.input,s=e.current,l=function e(t){var o,a,s,l,u=t.source,c=t.target,d=t.input,p=t.result,f=void 0===p?[]:p;if(null==c)return f;if(!(c instanceof Element))return c instanceof Node?e({source:u,target:c.parentElement,input:d,result:f}):f;var h=c.closest(i);if(null==h)return f;var m=r.get(h);if(null==m)return f;var g={input:d,source:u,element:m.element};if(m.canDrop&&!m.canDrop(g))return e({source:u,target:m.element.parentElement,input:d,result:f});var v=null!=(o=null==(a=m.getData)?void 0:a.call(m,g))?o:{},y=null!=(s=null==(l=m.getDropEffect)?void 0:l.call(m,g))?s:n,x={data:v,element:m.element,dropEffect:y,isActiveDueToStickiness:!1};return e({source:u,target:m.element.parentElement,input:d,result:[].concat(ma(f),[x])})}({source:t,target:o,input:a});if(l.length>=s.length)return l;for(var u=mT(s),c=mT(l),d=[],p=0;p<u.length;p++){var f,h=u[p],m=c[p];if(null!=m){d.push(m);continue}var g=d[p-1],v=u[p-1];if((null==g?void 0:g.element)!==(null==v?void 0:v.element))break;var y=r.get(h.element);if(!y)break;var x={input:a,source:t,element:y.element};if(y.canDrop&&!y.canDrop(x)||!(null!=(f=y.getIsSticky)&&f.call(y,x)))break;d.push(mC(mC({},h),{},{isActiveDueToStickiness:!0}))}return mT(d)},dispatchEvent:function(e){s[e.eventName](e)}}}({typeKey:t,defaultDropEffect:i});function l(e){null==r||r(e),s.dispatchEvent(e),a.dispatchEvent(e),null==o||o(e)}function u(e){mx({event:e.event,dragType:e.dragType,getDropTargetsOver:s.getIsOver,dispatchEvent:l})}return{registerUsage:function(){var e,r;return r=function(e){var t=e.typeKey,n=e.mount,r=mb.get(t);if(r)return r.usageCount++,r;var o={typeKey:t,unmount:n(),usageCount:1};return mb.set(t,o),o}(e={typeKey:t,mount:function(){return n({canStart:mv,start:u})}}),function(){r.usageCount--,r.usageCount>0||(r.unmount(),mb.delete(e.typeKey))}},dropTarget:s.dropTargetForConsumers,monitor:a.monitorForConsumers}}({typeKey:"element",defaultDropEffect:"move",mount:function(e){return h4(mO.bindEvents(),(0,h3.bind)(document,{type:"dragstart",listener:function(t){if(e.canStart(t)&&!t.defaultPrevented&&t.dataTransfer){var n,r,o,i,a,s,l=t.target;if(l instanceof HTMLElement){var u=mD.get(l);if(u){var c=mf(t),d={element:u.element,dragHandle:null!=(n=u.dragHandle)?n:null,input:c};if(u.canDrag&&!u.canDrag(d))return void t.preventDefault();if(u.dragHandle){var p=h7({x:c.clientX,y:c.clientY});if(!u.dragHandle.contains(p))return void t.preventDefault()}var f=null!=(r=null==(o=u.getInitialDataForExternal)?void 0:o.call(u,d))?r:null;if(f)for(var h=0,m=Object.entries(f);h<m.length;h++){var g=h5(m[h],2),v=g[0],y=g[1];t.dataTransfer.setData(v,null!=y?y:"")}!mE()||t.dataTransfer.types.includes(mR)||t.dataTransfer.types.includes("text/uri-list")||t.dataTransfer.setData(mR,"pdnd:android-fallback"),t.dataTransfer.setData("application/vnd.pdnd","");var x={element:u.element,dragHandle:null!=(i=u.dragHandle)?i:null,data:null!=(a=null==(s=u.getInitialData)?void 0:s.call(u,d))?a:{}};e.start({event:t,dragType:{type:"element",payload:x,startedFrom:"internal"}})}}}}}))},dispatchEventToSource:function(e){var t,n,r=e.eventName,o=e.payload;null==(t=mD.get(o.source.element))||null==(n=t[r])||n.call(t,o)},onPostDispatch:mO.getOnPostDispatch()}),mP=mj.dropTarget,mN=mj.monitor;let mF={type:"idle"};function m_({elements:e,accessKey:t,axis:n="vertical",onChange:r}){return(0,d.useEffect)(()=>mN({onDrop({location:o,source:i}){var a,s;let l=o.current.dropTargets[0];if(!l)return;let u=i.data,c=l.data,d=e.findIndex(e=>e[t]===u[t]),p=e.findIndex(e=>e[t]===c[t]);p<0||d<0||r(function(e){var t=e.list,n=e.startIndex,r=e.finishIndex;if(-1===n||-1===r)return Array.from(t);var o=Array.from(t),i=h5(o.splice(n,1),1)[0];return o.splice(r,0,i),o}({list:(a={list:e,startIndex:d,indexOfTarget:p,closestEdgeOfTarget:h0(c),axis:n}).list,startIndex:s=a.startIndex,finishIndex:function(e){var t=e.startIndex,n=e.closestEdgeOfTarget,r=e.indexOfTarget,o=e.axis;if(-1===t||-1===r||t===r)return t;if(null==n)return r;var i="vertical"===o&&"bottom"===n||"horizontal"===o&&"right"===n;return t<r?i?r:r-1:i?r+1:r}({closestEdgeOfTarget:a.closestEdgeOfTarget,startIndex:s,indexOfTarget:a.indexOfTarget,axis:a.axis})}))}}),[t,n,e,r])}function mL({children:e,data:t}){let n=(0,d.useRef)(null),[r,o]=(0,d.useState)(mF);return(0,d.useEffect)(()=>{let e=n.current;if(e){var r;return h4((r={element:e,getInitialData:()=>t,onDragStart(){o({type:"is-dragging"})},onDrop(){o(mF)}},me(h4(mj.registerUsage(),(mD.set(r.element,r),function(){mD.delete(r.element)}),mw(r.element,{attribute:"draggable",value:"true"})))),mP({element:e,canDrop:({source:t})=>t.element!==e,getData:({input:n})=>{var r,o,i,a,s,l,u,c,d;return a=(r={element:e,input:n,allowedEdges:["top","bottom"]}).element,s=r.input,l=r.allowedEdges,u={x:s.clientX,y:s.clientY},c=a.getBoundingClientRect(),d=null!=(o=null==(i=l.map(function(e){return{edge:e,value:hQ[e](c,u)}}).sort(function(e,t){return e.value-t.value})[0])?void 0:i.edge)?o:null,hK(hK({},t),{},hZ({},hJ,d))},getIsSticky:()=>!0,onDragEnter({self:e}){o({type:"is-dragging-over",closestEdge:h0(e.data)})},onDrag({self:e}){let t=h0(e.data);o(e=>"is-dragging-over"===e.type&&e.closestEdge===t?e:{type:"is-dragging-over",closestEdge:t})},onDragLeave(){o(mF)},onDrop(){o(mF)}}))}},[t]),(0,c.jsxs)(O.A,{ref:n,spacing:1,style:{opacity:"is-dragging"===r.type?.5:"unset"},children:["is-dragging-over"===r.type&&"top"===r.closestEdge?(0,c.jsx)(hq,{}):null,e,"is-dragging-over"===r.type&&"bottom"===r.closestEdge?(0,c.jsx)(hq,{}):null]})}var mz=n(53064);function mB(e,t){let n=t.indexOf(e);if(0===n)return t;let r=[...t];return r.splice(n,1),r.splice(n-1,0,e),r}function mV(e,t){let n=t.indexOf(e);if(n===t.length-1)return t;let r=[...t];return r.splice(n,1),r.splice(n+1,0,e),r}let m$=(0,d.forwardRef)(function({onMoveUp:e,onMoveDown:t,onMoveLeft:n,onMoveRight:r,menuSx:o,...i},a){let[s,l]=(0,d.useState)(null),u=!!s;function p(e){l(null),e?.()}return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(j.A,{...i,ref:a,"aria-label":"move","aria-haspopup":!0,"aria-expanded":u,size:"small",onClick:function(e){l(e.currentTarget)},children:(0,c.jsx)(mz,{})}),(e||t||n||r)&&(0,c.jsxs)(he.A,{id:"drag-button-menu",MenuListProps:{"aria-labelledby":"drag-button-menu"},anchorEl:s,open:u,onClose:()=>p(void 0),sx:o,children:[e&&(0,c.jsx)(pX.A,{onClick:()=>p(e),children:"Move Up"}),t&&(0,c.jsx)(pX.A,{onClick:()=>p(t),children:"Move Down"}),n&&(0,c.jsx)(pX.A,{onClick:()=>p(n),children:"Move Left"}),r&&(0,c.jsx)(pX.A,{onClick:()=>p(r),children:"Move Right"}),r&&(0,c.jsx)(pX.A,{onClick:()=>p(r),children:"Move Right"})]})]})});var mH=n(31789),mW=n(70320),mU=n(45827);let mG={...d}.useSyncExternalStore;function mq(e={}){let{themeId:t}=e;return function(e,n={}){let r=(0,mU.A)();r&&t&&(r=r[t]||r);let o="u">typeof window&&void 0!==window.matchMedia,{defaultMatches:i=!1,matchMedia:a=o?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:l=!1}=(0,mW.A)({name:"MuiUseMediaQuery",props:n,theme:r}),u="function"==typeof e?e(r):e;return(u=u.replace(/^@media( ?)/m,"")).includes("print")&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(void 0!==mG?function(e,t,n,r,o){let i=d.useCallback(()=>t,[t]),a=d.useMemo(()=>{if(o&&n)return()=>n(e).matches;if(null!==r){let{matches:t}=r(e);return()=>t}return i},[i,e,r,o,n]),[s,l]=d.useMemo(()=>{if(null===n)return[i,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener("change",e),()=>{t.removeEventListener("change",e)})]},[i,n,e]);return mG(l,s,a)}:function(e,t,n,r,o){let[i,a]=d.useState(()=>o&&n?n(e).matches:r?r(e).matches:t);return(0,mH.A)(()=>{if(!n)return;let t=n(e),r=()=>{a(t.matches)};return r(),t.addEventListener("change",r),()=>{t.removeEventListener("change",r)}},[e,n]),i})(u,i,a,s,l)}}mq();var mY=n(93724);let mZ=mq({themeId:mY.A});var mX=n(10972),mK=n(46477),mQ=n(55403),mJ=n(32494),m0=n(63025);function m1(e,t,n){let r=function(e,t,n){let r,o=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=(0,m0.A)(t);if(t.fakeTransform)r=t.fakeTransform;else{let e=a.getComputedStyle(t);r=e.getPropertyValue("-webkit-transform")||e.getPropertyValue("transform")}let s=0,l=0;if(r&&"none"!==r&&"string"==typeof r){let e=r.split("(")[1].split(")")[0].split(",");s=parseInt(e[4],10),l=parseInt(e[5],10)}return"left"===e?i?`translateX(${i.right+s-o.left}px)`:`translateX(${a.innerWidth+s-o.left}px)`:"right"===e?i?`translateX(-${o.right-i.left-s}px)`:`translateX(-${o.left+o.width-s}px)`:"up"===e?i?`translateY(${i.bottom+l-o.top}px)`:`translateY(${a.innerHeight+l-o.top}px)`:i?`translateY(-${o.top-i.top+o.height-l}px)`:`translateY(-${o.top+o.height-l}px)`}(e,t,"function"==typeof n?n():n);r&&(t.style.webkitTransform=r,t.style.transform=r)}let m2=d.forwardRef(function(e,t){let n=(0,lb.A)(),r={enter:n.transitions.easing.easeOut,exit:n.transitions.easing.sharp},o={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:s,container:l,direction:u="down",easing:p=r,in:f,onEnter:h,onEntered:m,onEntering:g,onExit:v,onExited:y,onExiting:x,style:b,timeout:w=o,TransitionComponent:A=mK.Ay,...C}=e,S=d.useRef(null),M=(0,lk.A)((0,fZ.A)(s),S,t),T=e=>t=>{e&&(void 0===t?e(S.current):e(S.current,t))},k=T((e,t)=>{m1(u,e,l),(0,mJ.q)(e),h&&h(e,t)}),I=T((e,t)=>{let r=(0,mJ.c)({timeout:w,style:b,easing:p},{mode:"enter"});e.style.webkitTransition=n.transitions.create("-webkit-transform",{...r}),e.style.transition=n.transitions.create("transform",{...r}),e.style.webkitTransform="none",e.style.transform="none",g&&g(e,t)}),E=T(m),R=T(x),D=T(e=>{let t=(0,mJ.c)({timeout:w,style:b,easing:p},{mode:"exit"});e.style.webkitTransition=n.transitions.create("-webkit-transform",t),e.style.transition=n.transitions.create("transform",t),m1(u,e,l),v&&v(e)}),O=T(e=>{e.style.webkitTransition="",e.style.transition="",y&&y(e)}),j=d.useCallback(()=>{S.current&&m1(u,S.current,l)},[u,l]);return d.useEffect(()=>{if(f||"down"===u||"right"===u)return;let e=(0,mQ.A)(()=>{S.current&&m1(u,S.current,l)}),t=(0,m0.A)(S.current);return t.addEventListener("resize",e),()=>{e.clear(),t.removeEventListener("resize",e)}},[u,f,l]),d.useEffect(()=>{f||j()},[f,j]),(0,c.jsx)(A,{nodeRef:S,onEnter:k,onEntered:E,onEntering:I,onExit:D,onExited:O,onExiting:R,addEndListener:e=>{i&&i(S.current,e)},appear:a,in:f,timeout:w,...C,children:(e,{ownerState:t,...n})=>d.cloneElement(s,{ref:M,style:{visibility:"exited"!==e||f?void 0:"hidden",...b,...s.props.style},...n})})});var m5=n(11502);function m4(e){return(0,C.Ay)("MuiDrawer",e)}(0,A.A)("MuiDrawer",["root","docked","paper","anchorLeft","anchorRight","anchorTop","anchorBottom","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);let m3=(e,t)=>{let{ownerState:n}=e;return[t.root,("permanent"===n.variant||"persistent"===n.variant)&&t.docked,t.modal]},m6=(0,y.A)(mX.A,{name:"MuiDrawer",slot:"Root",overridesResolver:m3})((0,x.A)(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer}))),m9=(0,y.A)("div",{shouldForwardProp:lS.A,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:m3})({flex:"0 0 auto"}),m7=(0,y.A)(m5.A,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperAnchor${(0,v.A)(n.anchor)}`],"temporary"!==n.variant&&t[`paperAnchorDocked${(0,v.A)(n.anchor)}`]]}})((0,x.A)(({theme:e})=>({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(e.vars||e).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0,variants:[{props:{anchor:"left"},style:{left:0}},{props:{anchor:"top"},style:{top:0,left:0,right:0,height:"auto",maxHeight:"100%"}},{props:{anchor:"right"},style:{right:0}},{props:{anchor:"bottom"},style:{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"}},{props:({ownerState:e})=>"left"===e.anchor&&"temporary"!==e.variant,style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"top"===e.anchor&&"temporary"!==e.variant,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"right"===e.anchor&&"temporary"!==e.variant,style:{borderLeft:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>"bottom"===e.anchor&&"temporary"!==e.variant,style:{borderTop:`1px solid ${(e.vars||e).palette.divider}`}}]}))),m8={left:"right",right:"left",top:"down",bottom:"up"},ge=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiDrawer"}),r=(0,lb.A)(),o=(0,p2.I)(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{anchor:a="left",BackdropProps:s,children:l,className:u,elevation:p=16,hideBackdrop:m=!1,ModalProps:{BackdropProps:g,...y}={},onClose:x,open:b=!1,PaperProps:A={},SlideProps:C,TransitionComponent:S,transitionDuration:M=i,variant:T="temporary",slots:k={},slotProps:I={},...E}=n,R=d.useRef(!1);d.useEffect(()=>{R.current=!0},[]);let D=function({direction:e},t){return"rtl"===e&&["left","right"].includes(t)?m8[t]:t}({direction:o?"rtl":"ltr"},a),O={...n,anchor:a,elevation:p,open:b,variant:T,...E},j=(e=>{let{classes:t,anchor:n,variant:r}=e,o={root:["root",`anchor${(0,v.A)(n)}`],docked:[("permanent"===r||"persistent"===r)&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${(0,v.A)(n)}`,"temporary"!==r&&`paperAnchorDocked${(0,v.A)(n)}`]};return(0,h.A)(o,m4,t)})(O),P={slots:{transition:S,...k},slotProps:{paper:A,transition:C,...I,backdrop:(0,pB.A)(I.backdrop||{...s,...g},{transitionDuration:M})}},[N,F]=(0,pV.A)("root",{ref:t,elementType:m6,className:(0,f.A)(j.root,j.modal,u),shouldForwardComponentProp:!0,ownerState:O,externalForwardedProps:{...P,...E,...y},additionalProps:{open:b,onClose:x,hideBackdrop:m,slots:{backdrop:P.slots.backdrop},slotProps:{backdrop:P.slotProps.backdrop}}}),[_,L]=(0,pV.A)("paper",{elementType:m7,shouldForwardComponentProp:!0,className:(0,f.A)(j.paper,A.className),ownerState:O,externalForwardedProps:P,additionalProps:{elevation:"temporary"===T?p:0,square:!0}}),[z,B]=(0,pV.A)("docked",{elementType:m9,ref:t,className:(0,f.A)(j.root,j.docked,u),ownerState:O,externalForwardedProps:P,additionalProps:E}),[V,$]=(0,pV.A)("transition",{elementType:m2,ownerState:O,externalForwardedProps:P,additionalProps:{in:b,direction:m8[D],timeout:M,appear:R.current}}),H=(0,c.jsx)(_,{...L,children:l});if("permanent"===T)return(0,c.jsx)(z,{...B,children:H});let W=(0,c.jsx)(V,{...$,children:H});return"persistent"===T?(0,c.jsx)(z,{...B,children:W}):(0,c.jsx)(N,{...F,children:W})}),gt=({anchor:e="right",isOpen:t,onClose:n,PaperProps:r,children:o,...i})=>{let a=mZ("(max-width:1080px)");return(0,c.jsx)(ge,{...i,open:t,onClose:n,anchor:e,PaperProps:{...r,sx:rD({width:a?"100%":"1080px",overflow:"hidden"},r?.sx)},"aria-hidden":!t,children:o})};var gn=n(31373),gr=n(62707),go=n(49828),gi=n(76545),ga=n(32741),gs=n(23670),gl=n(9356),gu=n(90652),gc=n(61305),gd=n(50944),gp=n(59738),gf=n(72106),gh=n(40988),gm=n(55875),gg=n(46182),gv=n(64404),gy=n(28502),gx=n(48683),gb=n(74653),gw=n(31950),gA=n(37573);(0,gb.Y)([gu.a,gc.a,gd.a,gn.a,gr.a,go.a,gi.a,ga.a,gs.a,gl.a,gp.a,gf.a,gh.a,gm.a,gA.a,gg.a,gv.a,gy.a,gx.a]);let gC=["click","dblclick","mousedown","mousemove","mouseup","mouseover","mouseout","globalout","contextmenu"],gS=["datazoom","downplay","highlight"],gM=(0,d.memo)(function({option:e,theme:t,renderer:n,sx:r,style:o,onEvents:i,_instance:a,syncGroup:s,onChartInitialized:l}){let u=(0,d.useRef)(e),p=(0,d.useRef)(e),f=(0,d.useRef)(null),h=(0,d.useRef)(null);return(0,d.useLayoutEffect)(()=>{if(null!==f.current&&null===h.current&&(h.current=(0,gw.Ts)(f.current,t,{renderer:n??"canvas"}),void 0!==h.current))return h.current.setOption(u.current,!0),l?.(h.current),void 0!==a&&(a.current=h.current),()=>{null!==h.current&&(h.current.dispose(),h.current=null)}},[a,l,t,n]),(0,d.useEffect)(()=>{h.current&&s&&(h.current.group=s,(0,gw.Ng)([h.current]))},[s,h]),(0,d.useEffect)(()=>{void 0===p.current||os(p.current,e)||h.current&&(h.current.setOption(e,!0),p.current=e)},[e]),(0,d.useLayoutEffect)(()=>{let e=ha(()=>{h.current&&h.current.resize()},200);return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),(0,d.useEffect)(()=>{let e=h.current;if(e&&void 0!==i)return function(e,t){if(void 0!==t){for(let n in t)if(Object.prototype.hasOwnProperty.call(t,n)){let r=t[n]??null;r&&function(t,n){var r,o;"function"==typeof n&&((r=t,gC.includes(r))?e.on(t,t=>n(t,e)):(o=t,gS.includes(o))?e.on(t,e=>n(e)):e.on(t,()=>n(null,e)))}(n,r)}}}(e,i),()=>{if(void 0!==e&&!0!==e.isDisposed())for(let t in i)e.off(t)}},[i]),(0,d.useEffect)(()=>{ha(()=>{h.current&&h.current.resize()},200,{leading:!0})()},[r,o]),(0,c.jsx)(lw.A,{ref:f,sx:r,style:o})});var gT=n(17157);function gk(e,t){return function(n){let r=new Date(Number(n));return e>15768e7?(0,gT.formatWithTimeZone)(r,"yyyy",t):e>15552e6?(0,gT.formatWithTimeZone)(r,"MMM yyyy",t):e>864e6?(0,gT.formatWithTimeZone)(r,"dd.MM",t):e>1728e5?(0,gT.formatWithTimeZone)(r,"dd.MM HH:mm",t):(0,gT.formatWithTimeZone)(r,"HH:mm",t)}}var gI=n(34007);function gE(e){let{error:t}=e;return(0,c.jsx)(gI.A,{severity:"error",children:t.message})}var gR=n(77440);let gD=[{id:"default",label:"Default",value:void 0},{id:"12",label:"12",value:12},{id:"14",label:"14",value:14},{id:"16",label:"16",value:16},{id:"20",label:"20",value:20},{id:"24",label:"24",value:24},{id:"28",label:"28",value:28},{id:"32",label:"32",value:32},{id:"36",label:"36",value:36},{id:"40",label:"40",value:40},{id:"48",label:"48",value:48},{id:"56",label:"56",value:56},{id:"64",label:"64",value:64},{id:"72",label:"72",value:72},{id:"96",label:"96",value:96},{id:"128",label:"128",value:128},{id:"160",label:"160",value:160},{id:"192",label:"192",value:192}];function gO({value:e,onChange:t}){return(0,c.jsx)(hz,{label:"Font Size",control:(0,c.jsx)(hW,{value:gD.find(t=>t.value===e),options:gD,getOptionLabel:e=>e.label,onChange:(e,{value:n})=>{t(n)},disableClearable:!0})})}function gj({action:e,submitText:t="Save",cancelText:n="Cancel",isReadonly:r,isValid:o,onActionChange:i,onSubmit:a,onDelete:s,onCancel:l,...u}){return(0,c.jsx)(O.A,{direction:"row",gap:1,sx:{marginLeft:"auto"},...u,children:"read"===e?(0,c.jsxs)(c.Fragment,{children:[i&&(0,c.jsx)(R.A,{disabled:r,variant:"contained",onClick:()=>i("update"),children:"Edit"}),s&&(0,c.jsx)(R.A,{color:"error",disabled:r,variant:"outlined",onClick:s,children:"Delete"}),l&&(a||s)&&(0,c.jsx)(fW.A,{orientation:"vertical",flexItem:!0,sx:{borderColor:e=>e.palette.grey["500"],"&.MuiDivider-root":{marginLeft:2,marginRight:1}}}),l&&(0,c.jsx)(R.A,{color:"secondary",variant:"outlined",onClick:l,children:n})]}):(0,c.jsxs)(c.Fragment,{children:[a&&(0,c.jsx)(R.A,{variant:"contained",disabled:!o,onClick:a,children:t}),l&&(0,c.jsx)(R.A,{color:"secondary",variant:"outlined",onClick:l,children:n})]})})}var gP=n(17203);class gN{constructor(e,t,n,r,o,i,a,s,l,u=0,c){this.p=e,this.stack=t,this.state=n,this.reducePos=r,this.pos=o,this.score=i,this.buffer=a,this.bufferBase=s,this.curContext=l,this.lookAhead=u,this.parent=c}toString(){return`[${this.stack.filter((e,t)=>t%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(e,t,n=0){let r=e.parser.context;return new gN(e,[],t,n,n,0,[],0,r?new gF(r,r.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(e,t){this.stack.push(this.state,t,this.bufferBase+this.buffer.length),this.state=e}reduce(e){var t;let n=e>>19,r=65535&e,{parser:o}=this.p,i=this.reducePos<this.pos-25&&this.setLookAhead(this.pos),a=o.dynamicPrecedence(r);if(a&&(this.score+=a),0==n){r<o.minRepeatTerm&&this.reducePos<this.pos&&(this.reducePos=this.pos),this.pushState(o.getGoto(this.state,r,!0),this.reducePos),r<o.minRepeatTerm&&this.storeNode(r,this.reducePos,this.reducePos,i?8:4,!0),this.reduceContext(r,this.reducePos);return}let s=this.stack.length-(n-1)*3-(262144&e?6:0),l=s?this.stack[s-2]:this.p.ranges[0].from;r<o.minRepeatTerm&&l==this.reducePos&&this.reducePos<this.pos&&(this.reducePos=this.pos);let u=this.reducePos-l;u>=2e3&&!(null==(t=this.p.parser.nodeSet.types[r])?void 0:t.isAnonymous)&&(l==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=u):this.p.lastBigReductionSize<u&&(this.p.bigReductionCount=1,this.p.lastBigReductionStart=l,this.p.lastBigReductionSize=u));let c=s?this.stack[s-1]:0,d=this.bufferBase+this.buffer.length-c;if(r<o.minRepeatTerm||131072&e){let e=o.stateFlag(this.state,1)?this.pos:this.reducePos;this.storeNode(r,l,e,d+4,!0)}if(262144&e)this.state=this.stack[s];else{let e=this.stack[s-3];this.state=o.getGoto(e,r,!0)}for(;this.stack.length>s;)this.stack.pop();this.reduceContext(r,l)}storeNode(e,t,n,r=4,o=!1){if(0==e&&(!this.stack.length||this.stack[this.stack.length-1]<this.buffer.length+this.bufferBase)){let e=this.buffer.length;if(e>0&&0==this.buffer[e-4]&&this.buffer[e-1]>-1){if(t==n)return;if(this.buffer[e-2]>=t){this.buffer[e-2]=n;return}}}if(o&&this.pos!=n){let o=this.buffer.length;if(o>0&&(0!=this.buffer[o-4]||this.buffer[o-1]<0)){let e=!1;for(let t=o;t>0&&this.buffer[t-2]>n;t-=4)if(this.buffer[t-1]>=0){e=!0;break}if(e)for(;o>0&&this.buffer[o-2]>n;)this.buffer[o]=this.buffer[o-4],this.buffer[o+1]=this.buffer[o-3],this.buffer[o+2]=this.buffer[o-2],this.buffer[o+3]=this.buffer[o-1],o-=4,r>4&&(r-=4)}this.buffer[o]=e,this.buffer[o+1]=t,this.buffer[o+2]=n,this.buffer[o+3]=r}else this.buffer.push(e,t,n,r)}shift(e,t,n,r){if(131072&e)this.pushState(65535&e,this.pos);else if((262144&e)==0){let{parser:o}=this.p;this.pos=r;let i=o.stateFlag(e,1);!i&&(r>n||t<=o.maxNode)&&(this.reducePos=r),this.pushState(e,i?n:Math.min(n,this.reducePos)),this.shiftContext(t,n),t<=o.maxNode&&this.buffer.push(t,n,r,4)}else this.pos=r,this.shiftContext(t,n),t<=this.p.parser.maxNode&&this.buffer.push(t,n,r,4)}apply(e,t,n,r){65536&e?this.reduce(e):this.shift(e,t,n,r)}useNode(e,t){let n=this.p.reused.length-1;(n<0||this.p.reused[n]!=e)&&(this.p.reused.push(e),n++);let r=this.pos;this.reducePos=this.pos=r+e.length,this.pushState(t,r),this.buffer.push(n,r,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,e,this,this.p.stream.reset(this.pos-e.length)))}split(){let e=this,t=e.buffer.length;for(t&&0==e.buffer[t-4]&&(t-=4);t>0&&e.buffer[t-2]>e.reducePos;)t-=4;let n=e.buffer.slice(t),r=e.bufferBase+t;for(;e&&r==e.bufferBase;)e=e.parent;return new gN(this.p,this.stack.slice(),this.state,this.reducePos,this.pos,this.score,n,r,this.curContext,this.lookAhead,e)}recoverByDelete(e,t){let n=e<=this.p.parser.maxNode;n&&this.storeNode(e,this.pos,t,4),this.storeNode(0,this.pos,t,n?8:4),this.pos=this.reducePos=t,this.score-=190}canShift(e){for(let t=new g_(this);;){let n=this.p.parser.stateSlot(t.state,4)||this.p.parser.hasAction(t.state,e);if(0==n)return!1;if((65536&n)==0)return!0;t.reduce(n)}}recoverByInsert(e){if(this.stack.length>=300)return[];let t=this.p.parser.nextStates(this.state);if(t.length>8||this.stack.length>=120){let n=[];for(let r=0,o;r<t.length;r+=2)(o=t[r+1])!=this.state&&this.p.parser.hasAction(o,e)&&n.push(t[r],o);if(this.stack.length<120)for(let e=0;n.length<8&&e<t.length;e+=2){let r=t[e+1];n.some((e,t)=>1&t&&e==r)||n.push(t[e],r)}t=n}let n=[];for(let e=0;e<t.length&&n.length<4;e+=2){let r=t[e+1];if(r==this.state)continue;let o=this.split();o.pushState(r,this.pos),o.storeNode(0,o.pos,o.pos,4,!0),o.shiftContext(t[e],this.pos),o.reducePos=this.pos,o.score-=200,n.push(o)}return n}forceReduce(){let{parser:e}=this.p,t=e.stateSlot(this.state,5);if((65536&t)==0)return!1;if(!e.validAction(this.state,t)){let n=t>>19,r=65535&t,o=this.stack.length-3*n;if(o<0||0>e.getGoto(this.stack[o],r,!1)){let e=this.findForcedReduction();if(null==e)return!1;t=e}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(t),!0}findForcedReduction(){let{parser:e}=this.p,t=[],n=(r,o)=>{if(!t.includes(r))return t.push(r),e.allActions(r,t=>{if(393216&t);else if(65536&t){let n=(t>>19)-o;if(n>1){let r=65535&t,o=this.stack.length-3*n;if(o>=0&&e.getGoto(this.stack[o],r,!1)>=0)return n<<19|65536|r}}else{let e=n(t,o+1);if(null!=e)return e}})};return n(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(3!=this.stack.length)return!1;let{parser:e}=this.p;return 65535==e.data[e.stateSlot(this.state,1)]&&!e.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(e){if(this.state!=e.state||this.stack.length!=e.stack.length)return!1;for(let t=0;t<this.stack.length;t+=3)if(this.stack[t]!=e.stack[t])return!1;return!0}get parser(){return this.p.parser}dialectEnabled(e){return this.p.parser.dialect.flags[e]}shiftContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.shift(this.curContext.context,e,this,this.p.stream.reset(t)))}reduceContext(e,t){this.curContext&&this.updateContext(this.curContext.tracker.reduce(this.curContext.context,e,this,this.p.stream.reset(t)))}emitContext(){let e=this.buffer.length-1;(e<0||-3!=this.buffer[e])&&this.buffer.push(this.curContext.hash,this.pos,this.pos,-3)}emitLookAhead(){let e=this.buffer.length-1;(e<0||-4!=this.buffer[e])&&this.buffer.push(this.lookAhead,this.pos,this.pos,-4)}updateContext(e){if(e!=this.curContext.context){let t=new gF(this.curContext.tracker,e);t.hash!=this.curContext.hash&&this.emitContext(),this.curContext=t}}setLookAhead(e){return!(e<=this.lookAhead)&&(this.emitLookAhead(),this.lookAhead=e,!0)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class gF{constructor(e,t){this.tracker=e,this.context=t,this.hash=e.strict?e.hash(t):0}}class g_{constructor(e){this.start=e,this.state=e.state,this.stack=e.stack,this.base=this.stack.length}reduce(e){let t=e>>19;0==t?(this.stack==this.start.stack&&(this.stack=this.stack.slice()),this.stack.push(this.state,0,0),this.base+=3):this.base-=(t-1)*3;let n=this.start.p.parser.getGoto(this.stack[this.base-3],65535&e,!0);this.state=n}}class gL{constructor(e,t,n){this.stack=e,this.pos=t,this.index=n,this.buffer=e.buffer,0==this.index&&this.maybeNext()}static create(e,t=e.bufferBase+e.buffer.length){return new gL(e,t,t-e.bufferBase)}maybeNext(){let e=this.stack.parent;null!=e&&(this.index=this.stack.bufferBase-e.bufferBase,this.stack=e,this.buffer=e.buffer)}get id(){return this.buffer[this.index-4]}get start(){return this.buffer[this.index-3]}get end(){return this.buffer[this.index-2]}get size(){return this.buffer[this.index-1]}next(){this.index-=4,this.pos-=4,0==this.index&&this.maybeNext()}fork(){return new gL(this.stack,this.pos,this.index)}}function gz(e,t=Uint16Array){if("string"!=typeof e)return e;let n=null;for(let r=0,o=0;r<e.length;){let i=0;for(;;){let t=e.charCodeAt(r++),n=!1;if(126==t){i=65535;break}t>=92&&t--,t>=34&&t--;let o=t-32;if(o>=46&&(o-=46,n=!0),i+=o,n)break;i*=46}n?n[o++]=i:n=new t(i)}return n}class gB{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}let gV=new gB;class g${constructor(e,t){this.input=e,this.ranges=t,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=gV,this.rangeIndex=0,this.pos=this.chunkPos=t[0].from,this.range=t[0],this.end=t[t.length-1].to,this.readNext()}resolveOffset(e,t){let n=this.range,r=this.rangeIndex,o=this.pos+e;for(;o<n.from;){if(!r)return null;let e=this.ranges[--r];o-=n.from-e.to,n=e}for(;t<0?o>n.to:o>=n.to;){if(r==this.ranges.length-1)return null;let e=this.ranges[++r];o+=e.from-n.to,n=e}return o}clipPos(e){if(e>=this.range.from&&e<this.range.to)return e;for(let t of this.ranges)if(t.to>e)return Math.max(e,t.from);return this.end}peek(e){let t=this.chunkOff+e,n,r;if(t>=0&&t<this.chunk.length)n=this.pos+e,r=this.chunk.charCodeAt(t);else{let t=this.resolveOffset(e,1);if(null==t)return -1;if((n=t)>=this.chunk2Pos&&n<this.chunk2Pos+this.chunk2.length)r=this.chunk2.charCodeAt(n-this.chunk2Pos);else{let e=this.rangeIndex,t=this.range;for(;t.to<=n;)t=this.ranges[++e];this.chunk2=this.input.chunk(this.chunk2Pos=n),n+this.chunk2.length>t.to&&(this.chunk2=this.chunk2.slice(0,t.to-n)),r=this.chunk2.charCodeAt(0)}}return n>=this.token.lookAhead&&(this.token.lookAhead=n+1),r}acceptToken(e,t=0){let n=t?this.resolveOffset(t,-1):this.pos;if(null==n||n<this.token.start)throw RangeError("Token end out of bounds");this.token.value=e,this.token.end=n}acceptTokenTo(e,t){this.token.value=e,this.token.end=t}getChunk(){if(this.pos>=this.chunk2Pos&&this.pos<this.chunk2Pos+this.chunk2.length){let{chunk:e,chunkPos:t}=this;this.chunk=this.chunk2,this.chunkPos=this.chunk2Pos,this.chunk2=e,this.chunk2Pos=t,this.chunkOff=this.pos-this.chunkPos}else{this.chunk2=this.chunk,this.chunk2Pos=this.chunkPos;let e=this.input.chunk(this.pos),t=this.pos+e.length;this.chunk=t>this.range.to?e.slice(0,this.range.to-this.pos):e,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(e=1){for(this.chunkOff+=e;this.pos+e>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();e-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=e,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(e,t){if(t?(this.token=t,t.start=e,t.lookAhead=e+1,t.value=t.extended=-1):this.token=gV,this.pos!=e){if(this.pos=e,e==this.end)return this.setDone(),this;for(;e<this.range.from;)this.range=this.ranges[--this.rangeIndex];for(;e>=this.range.to;)this.range=this.ranges[++this.rangeIndex];e>=this.chunkPos&&e<this.chunkPos+this.chunk.length?this.chunkOff=e-this.chunkPos:(this.chunk="",this.chunkOff=0),this.readNext()}return this}read(e,t){if(e>=this.chunkPos&&t<=this.chunkPos+this.chunk.length)return this.chunk.slice(e-this.chunkPos,t-this.chunkPos);if(e>=this.chunk2Pos&&t<=this.chunk2Pos+this.chunk2.length)return this.chunk2.slice(e-this.chunk2Pos,t-this.chunk2Pos);if(e>=this.range.from&&t<=this.range.to)return this.input.read(e,t);let n="";for(let r of this.ranges){if(r.from>=t)break;r.to>e&&(n+=this.input.read(Math.max(r.from,e),Math.min(r.to,t)))}return n}}class gH{constructor(e,t){this.data=e,this.id=t}token(e,t){let{parser:n}=t.p;gW(this.data,e,t,this.id,n.data,n.tokenPrecTable)}}function gW(e,t,n,r,o,i){let a=0,s=1<<r,{dialect:l}=n.p.parser;t:for(;(s&e[a])!=0;){let n=e[a+1];for(let r=a+3;r<n;r+=2)if((e[r+1]&s)>0){let n=e[r];if(l.allows(n)&&(-1==t.token.value||t.token.value==n||function(e,t,n,r){let o=gU(n,r,t);return o<0||gU(n,r,e)<o}(n,t.token.value,o,i))){t.acceptToken(n);break}}let r=t.next,u=0,c=e[a+2];if(t.next<0&&c>u&&65535==e[n+3*c-3]){a=e[n+3*c-1];continue}for(;u<c;){let o=u+c>>1,i=n+o+(o<<1),s=e[i],l=e[i+1]||65536;if(r<s)c=o;else if(r>=l)u=o+1;else{a=e[i+2],t.advance();continue t}}break}}function gU(e,t,n){for(let r=t,o;65535!=(o=e[r]);r++)if(o==n)return r-t;return -1}gH.prototype.contextual=gH.prototype.fallback=gH.prototype.extend=!1,(class{constructor(e,t,n){this.precTable=t,this.elseToken=n,this.data="string"==typeof e?gz(e):e}token(e,t){let n=e.pos,r=0;for(;;){let n=e.next<0,o=e.resolveOffset(1,1);if(gW(this.data,e,t,0,this.data,this.precTable),e.token.value>-1)break;if(null==this.elseToken)return;if(!n&&r++,null==o)break;e.reset(o,e.token)}r&&(e.reset(n,e.token),e.acceptToken(this.elseToken,r))}}).prototype.contextual=gH.prototype.fallback=gH.prototype.extend=!1;let gG="u">typeof process&&process.env&&/\bparse\b/.test(process.env.LOG),gq=null;function gY(e,t,n){let r=e.cursor(gP.Qj.IncludeAnonymous);for(r.moveTo(t);;)if(!(n<0?r.childBefore(t):r.childAfter(t)))for(;;){if((n<0?r.to<t:r.from>t)&&!r.type.isError)return n<0?Math.max(0,Math.min(r.to-1,t-25)):Math.min(e.length,Math.max(r.from+1,t+25));if(n<0?r.prevSibling():r.nextSibling())break;if(!r.parent())return n<0?0:e.length}}class gZ{constructor(e,t){this.fragments=e,this.nodeSet=t,this.i=0,this.fragment=null,this.safeFrom=-1,this.safeTo=-1,this.trees=[],this.start=[],this.index=[],this.nextFragment()}nextFragment(){let e=this.fragment=this.i==this.fragments.length?null:this.fragments[this.i++];if(e){for(this.safeFrom=e.openStart?gY(e.tree,e.from+e.offset,1)-e.offset:e.from,this.safeTo=e.openEnd?gY(e.tree,e.to+e.offset,-1)-e.offset:e.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(e.tree),this.start.push(-e.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(e){if(e<this.nextStart)return null;for(;this.fragment&&this.safeTo<=e;)this.nextFragment();if(!this.fragment)return null;for(;;){let t=this.trees.length-1;if(t<0)return this.nextFragment(),null;let n=this.trees[t],r=this.index[t];if(r==n.children.length){this.trees.pop(),this.start.pop(),this.index.pop();continue}let o=n.children[r],i=this.start[t]+n.positions[r];if(i>e)return this.nextStart=i,null;if(o instanceof gP.PH){if(i==e){if(i<this.safeFrom)return null;let e=i+o.length;if(e<=this.safeTo){let t=o.prop(gP.uY.lookAhead);if(!t||e+t<this.fragment.to)return o}}this.index[t]++,i+o.length>=Math.max(this.safeFrom,e)&&(this.trees.push(o),this.start.push(i),this.index.push(0))}else this.index[t]++,this.nextStart=i+o.length}}}class gX{constructor(e,t){this.stream=t,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=e.tokenizers.map(e=>new gB)}getActions(e){let t=0,n=null,{parser:r}=e.p,{tokenizers:o}=r,i=r.stateSlot(e.state,3),a=e.curContext?e.curContext.hash:0,s=0;for(let r=0;r<o.length;r++){if((1<<r&i)==0)continue;let l=o[r],u=this.tokens[r];if((!n||l.fallback)&&((l.contextual||u.start!=e.pos||u.mask!=i||u.context!=a)&&(this.updateCachedToken(u,l,e),u.mask=i,u.context=a),u.lookAhead>u.end+25&&(s=Math.max(u.lookAhead,s)),0!=u.value)){let r=t;if(u.extended>-1&&(t=this.addActions(e,u.extended,u.end,t)),t=this.addActions(e,u.value,u.end,t),!l.extend&&(n=u,t>r))break}}for(;this.actions.length>t;)this.actions.pop();return s&&e.setLookAhead(s),n||e.pos!=this.stream.end||((n=new gB).value=e.p.parser.eofTerm,n.start=n.end=e.pos,t=this.addActions(e,n.value,n.end,t)),this.mainToken=n,this.actions}getMainToken(e){if(this.mainToken)return this.mainToken;let t=new gB,{pos:n,p:r}=e;return t.start=n,t.end=Math.min(n+1,r.stream.end),t.value=n==r.stream.end?r.parser.eofTerm:0,t}updateCachedToken(e,t,n){let r=this.stream.clipPos(n.pos);if(t.token(this.stream.reset(r,e),n),e.value>-1){let{parser:t}=n.p;for(let r=0;r<t.specialized.length;r++)if(t.specialized[r]==e.value){let o=t.specializers[r](this.stream.read(e.start,e.end),n);if(o>=0&&n.p.parser.dialect.allows(o>>1)){(1&o)==0?e.value=o>>1:e.extended=o>>1;break}}}else e.value=0,e.end=this.stream.clipPos(r+1)}putAction(e,t,n,r){for(let t=0;t<r;t+=3)if(this.actions[t]==e)return r;return this.actions[r++]=e,this.actions[r++]=t,this.actions[r++]=n,r}addActions(e,t,n,r){let{state:o}=e,{parser:i}=e.p,{data:a}=i;for(let e=0;e<2;e++)for(let s=i.stateSlot(o,e?2:1);;s+=3){if(65535==a[s])if(1==a[s+1])s=g1(a,s+2);else{0==r&&2==a[s+1]&&(r=this.putAction(g1(a,s+2),t,n,r));break}a[s]==t&&(r=this.putAction(g1(a,s+1),t,n,r))}return r}}class gK{constructor(e,t,n,r){this.parser=e,this.input=t,this.ranges=r,this.recovering=0,this.nextStackID=9812,this.minStackPos=0,this.reused=[],this.stoppedAt=null,this.lastBigReductionStart=-1,this.lastBigReductionSize=0,this.bigReductionCount=0,this.stream=new g$(t,r),this.tokens=new gX(e,this.stream),this.topTerm=e.top[1];let{from:o}=r[0];this.stacks=[gN.start(this,e.top[0],o)],this.fragments=n.length&&this.stream.end-o>4*e.bufferLength?new gZ(n,e.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let e,t,n=this.stacks,r=this.minStackPos,o=this.stacks=[];if(this.bigReductionCount>300&&1==n.length){let[e]=n;for(;e.forceReduce()&&e.stack.length&&e.stack[e.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let i=0;i<n.length;i++){let a=n[i];for(;;){if(this.tokens.mainToken=null,a.pos>r)o.push(a);else{if(this.advanceStack(a,o,n))continue;e||(e=[],t=[]),e.push(a);let r=this.tokens.getMainToken(a);t.push(r.value,r.end)}break}}if(!o.length){let t=e&&function(e){let t=null;for(let n of e){let e=n.p.stoppedAt;(n.pos==n.p.stream.end||null!=e&&n.pos>e)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.score<n.score)&&(t=n)}return t}(e);if(t)return gG&&console.log("Finish with "+this.stackID(t)),this.stackToTree(t);if(this.parser.strict)throw gG&&e&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),SyntaxError("No parse at "+r);this.recovering||(this.recovering=5)}if(this.recovering&&e){let n=null!=this.stoppedAt&&e[0].pos>this.stoppedAt?e[0]:this.runRecovery(e,t,o);if(n)return gG&&console.log("Force-finish "+this.stackID(n)),this.stackToTree(n.forceAll())}if(this.recovering){let e=1==this.recovering?1:3*this.recovering;if(o.length>e)for(o.sort((e,t)=>t.score-e.score);o.length>e;)o.pop();o.some(e=>e.reducePos>r)&&this.recovering--}else if(o.length>1){n:for(let e=0;e<o.length-1;e++){let t=o[e];for(let n=e+1;n<o.length;n++){let r=o[n];if(t.sameState(r)||t.buffer.length>500&&r.buffer.length>500)if((t.score-r.score||t.buffer.length-r.buffer.length)>0)o.splice(n--,1);else{o.splice(e--,1);continue n}}}o.length>12&&(o.sort((e,t)=>t.score-e.score),o.splice(12,o.length-12))}this.minStackPos=o[0].pos;for(let e=1;e<o.length;e++)o[e].pos<this.minStackPos&&(this.minStackPos=o[e].pos);return null}stopAt(e){if(null!=this.stoppedAt&&this.stoppedAt<e)throw RangeError("Can't move stoppedAt forward");this.stoppedAt=e}advanceStack(e,t,n){let r=e.pos,{parser:o}=this,i=gG?this.stackID(e)+" -> ":"";if(null!=this.stoppedAt&&r>this.stoppedAt)return e.forceReduce()?e:null;if(this.fragments){let t=e.curContext&&e.curContext.tracker.strict,n=t?e.curContext.hash:0;for(let a=this.fragments.nodeAt(r);a;){let r=this.parser.nodeSet.types[a.type.id]==a.type?o.getGoto(e.state,a.type.id):-1;if(r>-1&&a.length&&(!t||(a.prop(gP.uY.contextHash)||0)==n))return e.useNode(a,r),gG&&console.log(i+this.stackID(e)+` (via reuse of ${o.getName(a.type.id)})`),!0;if(!(a instanceof gP.PH)||0==a.children.length||a.positions[0]>0)break;let s=a.children[0];if(s instanceof gP.PH&&0==a.positions[0])a=s;else break}}let a=o.stateSlot(e.state,4);if(a>0)return e.reduce(a),gG&&console.log(i+this.stackID(e)+` (via always-reduce ${o.getName(65535&a)})`),!0;if(e.stack.length>=8400)for(;e.stack.length>6e3&&e.forceReduce(););let s=this.tokens.getActions(e);for(let a=0;a<s.length;){let l=s[a++],u=s[a++],c=s[a++],d=a==s.length||!n,p=d?e:e.split(),f=this.tokens.mainToken;if(p.apply(l,u,f?f.start:p.pos,c),gG&&console.log(i+this.stackID(p)+` (via ${(65536&l)==0?"shift":`reduce of ${o.getName(65535&l)}`} for ${o.getName(u)} @ ${r}${p==e?"":", split"})`),d)return!0;p.pos>r?t.push(p):n.push(p)}return!1}advanceFully(e,t){let n=e.pos;for(;;){if(!this.advanceStack(e,null,null))return!1;if(e.pos>n)return gQ(e,t),!0}}runRecovery(e,t,n){let r=null,o=!1;for(let i=0;i<e.length;i++){let a=e[i],s=t[i<<1],l=t[(i<<1)+1],u=gG?this.stackID(a)+" -> ":"";if(a.deadEnd&&(o||(o=!0,a.restart(),gG&&console.log(u+this.stackID(a)+" (restarted)"),this.advanceFully(a,n))))continue;let c=a.split(),d=u;for(let e=0;e<10&&c.forceReduce()&&(gG&&console.log(d+this.stackID(c)+" (via force-reduce)"),!this.advanceFully(c,n));e++)gG&&(d=this.stackID(c)+" -> ");for(let e of a.recoverByInsert(s))gG&&console.log(u+this.stackID(e)+" (via recover-insert)"),this.advanceFully(e,n);this.stream.end>a.pos?(l==a.pos&&(l++,s=0),a.recoverByDelete(s,l),gG&&console.log(u+this.stackID(a)+` (via recover-delete ${this.parser.getName(s)})`),gQ(a,n)):(!r||r.score<c.score)&&(r=c)}return r}stackToTree(e){return e.close(),gP.PH.build({buffer:gL.create(e),nodeSet:this.parser.nodeSet,topID:this.topTerm,maxBufferLength:this.parser.bufferLength,reused:this.reused,start:this.ranges[0].from,length:e.pos-this.ranges[0].from,minRepeatType:this.parser.minRepeatTerm})}stackID(e){let t=(gq||(gq=new WeakMap)).get(e);return t||gq.set(e,t=String.fromCodePoint(this.nextStackID++)),t+e}}function gQ(e,t){for(let n=0;n<t.length;n++){let r=t[n];if(r.pos==e.pos&&r.sameState(e)){t[n].score<e.score&&(t[n]=e);return}}t.push(e)}class gJ{constructor(e,t,n){this.source=e,this.flags=t,this.disabled=n}allows(e){return!this.disabled||0==this.disabled[e]}}class g0 extends gP.iX{constructor(e){if(super(),this.wrappers=[],14!=e.version)throw RangeError(`Parser version (${e.version}) doesn't match runtime version (14)`);let t=e.nodeNames.split(" ");this.minRepeatTerm=t.length;for(let n=0;n<e.repeatNodeCount;n++)t.push("");let n=Object.keys(e.topRules).map(t=>e.topRules[t][1]),r=[];for(let e=0;e<t.length;e++)r.push([]);function o(e,t,n){r[e].push([t,t.deserialize(String(n))])}if(e.nodeProps)for(let t of e.nodeProps){let e=t[0];"string"==typeof e&&(e=gP.uY[e]);for(let n=1;n<t.length;){let r=t[n++];if(r>=0)o(r,e,t[n++]);else{let i=t[n+-r];for(let a=-r;a>0;a--)o(t[n++],e,i);n++}}}this.nodeSet=new gP.fI(t.map((t,o)=>gP.Z6.define({name:o>=this.minRepeatTerm?void 0:t,id:o,props:r[o],top:n.indexOf(o)>-1,error:0==o,skipped:e.skippedNodes&&e.skippedNodes.indexOf(o)>-1}))),e.propSources&&(this.nodeSet=this.nodeSet.extend(...e.propSources)),this.strict=!1,this.bufferLength=1024;let i=gz(e.tokenData);this.context=e.context,this.specializerSpecs=e.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let e=0;e<this.specializerSpecs.length;e++)this.specialized[e]=this.specializerSpecs[e].term;this.specializers=this.specializerSpecs.map(g2),this.states=gz(e.states,Uint32Array),this.data=gz(e.stateData),this.goto=gz(e.goto),this.maxTerm=e.maxTerm,this.tokenizers=e.tokenizers.map(e=>"number"==typeof e?new gH(i,e):e),this.topRules=e.topRules,this.dialects=e.dialects||{},this.dynamicPrecedences=e.dynamicPrecedences||null,this.tokenPrecTable=e.tokenPrec,this.termNames=e.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(e,t,n){let r=new gK(this,e,t,n);for(let o of this.wrappers)r=o(r,e,t,n);return r}getGoto(e,t,n=!1){let r=this.goto;if(t>=r[0])return -1;for(let o=r[t+1];;){let t=r[o++],i=1&t,a=r[o++];if(i&&n)return a;for(let n=o+(t>>1);o<n;o++)if(r[o]==e)return a;if(i)return -1}}hasAction(e,t){let n=this.data;for(let r=0;r<2;r++)for(let o=this.stateSlot(e,r?2:1),i;;o+=3){if(65535==(i=n[o]))if(1==n[o+1])i=n[o=g1(n,o+2)];else if(2==n[o+1])return g1(n,o+2);else break;if(i==t||0==i)return g1(n,o+1)}return 0}stateSlot(e,t){return this.states[6*e+t]}stateFlag(e,t){return(this.stateSlot(e,0)&t)>0}validAction(e,t){return!!this.allActions(e,e=>e==t||null)}allActions(e,t){let n=this.stateSlot(e,4),r=n?t(n):void 0;for(let n=this.stateSlot(e,1);null==r;n+=3){if(65535==this.data[n])if(1==this.data[n+1])n=g1(this.data,n+2);else break;r=t(g1(this.data,n+1))}return r}nextStates(e){let t=[];for(let n=this.stateSlot(e,1);;n+=3){if(65535==this.data[n])if(1==this.data[n+1])n=g1(this.data,n+2);else break;if((1&this.data[n+2])==0){let e=this.data[n+1];t.some((t,n)=>1&n&&t==e)||t.push(this.data[n],e)}}return t}configure(e){let t=Object.assign(Object.create(g0.prototype),this);if(e.props&&(t.nodeSet=this.nodeSet.extend(...e.props)),e.top){let n=this.topRules[e.top];if(!n)throw RangeError(`Invalid top rule name ${e.top}`);t.top=n}return e.tokenizers&&(t.tokenizers=this.tokenizers.map(t=>{let n=e.tokenizers.find(e=>e.from==t);return n?n.to:t})),e.specializers&&(t.specializers=this.specializers.slice(),t.specializerSpecs=this.specializerSpecs.map((n,r)=>{let o=e.specializers.find(e=>e.from==n.external);if(!o)return n;let i=Object.assign(Object.assign({},n),{external:o.to});return t.specializers[r]=g2(i),i})),e.contextTracker&&(t.context=e.contextTracker),e.dialect&&(t.dialect=this.parseDialect(e.dialect)),null!=e.strict&&(t.strict=e.strict),e.wrap&&(t.wrappers=t.wrappers.concat(e.wrap)),null!=e.bufferLength&&(t.bufferLength=e.bufferLength),t}hasWrappers(){return this.wrappers.length>0}getName(e){return this.termNames?this.termNames[e]:String(e<=this.maxNode&&this.nodeSet.types[e].name||e)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(e){let t=this.dynamicPrecedences;return null==t?0:t[e]||0}parseDialect(e){let t=Object.keys(this.dialects),n=t.map(()=>!1);if(e)for(let r of e.split(" ")){let e=t.indexOf(r);e>=0&&(n[e]=!0)}let r=null;for(let e=0;e<t.length;e++)if(!n[e])for(let n=this.dialects[t[e]],o;65535!=(o=this.data[n++]);)(r||(r=new Uint8Array(this.maxTerm+1)))[o]=1;return new gJ(e,n,r)}static deserialize(e){return new g0(e)}}function g1(e,t){return e[t]|e[t+1]<<16}function g2(e){if(e.external){let t=+!!e.extend;return(n,r)=>e.external(n,r)<<1|t}return e.get}var g5=n(31650);let g4=(0,g5.pn)({String:g5._A.string,Number:g5._A.number,"True False":g5._A.bool,PropertyName:g5._A.propertyName,Null:g5._A.null,", :":g5._A.separator,"[ ]":g5._A.squareBracket,"{ }":g5._A.brace}),g3=g0.deserialize({version:14,states:"$bOVQPOOOOQO'#Cb'#CbOnQPO'#CeOvQPO'#ClOOQO'#Cr'#CrQOQPOOOOQO'#Cg'#CgO}QPO'#CfO!SQPO'#CtOOQO,59P,59PO![QPO,59PO!aQPO'#CuOOQO,59W,59WO!iQPO,59WOVQPO,59QOqQPO'#CmO!nQPO,59`OOQO1G.k1G.kOVQPO'#CnO!vQPO,59aOOQO1G.r1G.rOOQO1G.l1G.lOOQO,59X,59XOOQO-E6k-E6kOOQO,59Y,59YOOQO-E6l-E6l",stateData:"#O~OeOS~OQSORSOSSOTSOWQO_ROgPO~OVXOgUO~O^[O~PVO[^O~O]_OVhX~OVaO~O]bO^iX~O^dO~O]_OVha~O]bO^ia~O",goto:"!kjPPPPPPkPPkqwPPPPk{!RPPP!XP!e!hXSOR^bQWQRf_TVQ_Q`WRg`QcZRicQTOQZRQe^RhbRYQR]R",nodeNames:"⚠ JsonText True False Null Number String } { Object Property PropertyName : , ] [ Array",maxTerm:25,nodeProps:[["isolate",-2,6,11,""],["openedBy",7,"{",14,"["],["closedBy",8,"}",15,"]"]],propSources:[g4],skippedNodes:[0],repeatNodeCount:2,tokenData:"(|~RaXY!WYZ!W]^!Wpq!Wrs!]|}$u}!O$z!Q!R%T!R![&c![!]&t!}#O&y#P#Q'O#Y#Z'T#b#c'r#h#i(Z#o#p(r#q#r(w~!]Oe~~!`Wpq!]qr!]rs!xs#O!]#O#P!}#P;'S!];'S;=`$o<%lO!]~!}Og~~#QXrs!]!P!Q!]#O#P!]#U#V!]#Y#Z!]#b#c!]#f#g!]#h#i!]#i#j#m~#pR!Q![#y!c!i#y#T#Z#y~#|R!Q![$V!c!i$V#T#Z$V~$YR!Q![$c!c!i$c#T#Z$c~$fR!Q![!]!c!i!]#T#Z!]~$rP;=`<%l!]~$zO]~~$}Q!Q!R%T!R![&c~%YRT~!O!P%c!g!h%w#X#Y%w~%fP!Q![%i~%nRT~!Q![%i!g!h%w#X#Y%w~%zR{|&T}!O&T!Q![&Z~&WP!Q![&Z~&`PT~!Q![&Z~&hST~!O!P%c!Q![&c!g!h%w#X#Y%w~&yO[~~'OO_~~'TO^~~'WP#T#U'Z~'^P#`#a'a~'dP#g#h'g~'jP#X#Y'm~'rOR~~'uP#i#j'x~'{P#`#a(O~(RP#`#a(U~(ZOS~~(^P#f#g(a~(dP#i#j(g~(jP#X#Y(m~(rOQ~~(wOW~~(|OV~",tokenizers:[0],topRules:{JsonText:[0,1]},tokenPrec:0});var g6=n(63960);let g9=g6.bj.define({name:"json",parser:g3.configure({props:[g6.Oh.add({Object:(0,g6.mz)({except:/^\s*\}/}),Array:(0,g6.mz)({except:/^\s*\]/})}),g6.b_.add({"Object Array":g6.yd})]}),languageData:{closeBrackets:{brackets:["[","{",'"']},indentOnInput:/^\s*[\}\]]$/}});var g7=n(13313),g8=n(29068);function ve(e){let t=(0,lb.A)(),n="dark"===t.palette.mode,[r,o]=(0,d.useState)(()=>JSON.stringify(e.value,null,2)),[i,a]=(0,d.useState)(r);return(0,c.jsx)(g8.Ay,{...e,style:{border:`1px solid ${t.palette.divider}`},theme:n?"dark":"light",extensions:[new g6.Yy(g9),(0,g7.bu)(e=>{try{JSON.parse(e.state.doc.toString())}catch(o){var t;let n;if(!(o instanceof SyntaxError))throw o;let r=(t=e.state.doc,(n=o.message.match(/at position (\d+)/))?Math.min(+n[1],t.length):(n=o.message.match(/at line (\d+) column (\d+)/))?Math.min(t.line(+n[1]).from+ +n[2]-1,t.length):0);return[{from:r,message:o.message,severity:"error",to:r}]}return[]}),(0,g7.pJ)()],value:r,onChange:t=>{o(t),e.onChange&&e.onChange(t)},onBlur:()=>{i!==r&&void 0!==e.onChange&&(e.onChange(r),a(r))},placeholder:e.placeholder})}var vt=n(10740);let vn=e=>{let{mode:t,url:n,name:r,newTabOpen:o,renderVariables:i,tooltip:a}=e;return(0,c.jsxs)(O.A,{direction:"column",gap:2,flexGrow:1,children:[(0,c.jsx)(hs,{label:n.label,error:n.error?.hasError,helperText:n.error?.helperText,onChange:n.onChange,placeholder:n.placeholder,multiline:!0,maxRows:5,required:!0,fullWidth:!0,value:n.value}),(r||a)&&(0,c.jsxs)(O.A,{gap:1,direction:"inline"===t?"row":"column",children:[r&&(0,c.jsx)(hs,{sx:{flexGrow:"1"},label:r.label,onChange:r?.onChange,placeholder:r?.placeholder,value:r?.value}),a&&(0,c.jsx)(hs,{sx:{flexGrow:"1"},label:a.label,onChange:a?.onChange,placeholder:a?.placeholder,value:a?.value})]}),(0,c.jsxs)(O.A,{direction:"row",gap:1,children:[i&&(0,c.jsx)(vt.A,{label:i.label,control:(0,c.jsx)(pG,{checked:i.value,onChange:e=>{i?.onChange(e.target.checked)}})}),(0,c.jsx)(vt.A,{label:o.label,control:(0,c.jsx)(pG,{checked:o.value,onChange:e=>{o?.onChange(e.target.checked)}})})]})]})},vr=[{id:"value",label:"Value"},{id:"percentage",label:"Percentage"}];function vo({disablePercentageMode:e,onChange:t,value:n="value"}){return(0,c.jsx)(hz,{label:"Mode",control:(0,c.jsx)(hW,{value:vr.find(e=>e.id===n),options:vr,getOptionLabel:e=>e.label,getOptionDisabled:t=>"percentage"===t.id&&e,onChange:(e,{id:n})=>{t(n)},disableClearable:!0})})}var vi=n(69402);function va(e){return(0,C.Ay)("MuiSkeleton",e)}(0,A.A)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);let vs=(0,vi.keyframes)`
|
|
6
|
+
0% {
|
|
7
|
+
opacity: 1;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
50% {
|
|
11
|
+
opacity: 0.4;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
100% {
|
|
15
|
+
opacity: 1;
|
|
16
|
+
}
|
|
17
|
+
`,vl=(0,vi.keyframes)`
|
|
18
|
+
0% {
|
|
19
|
+
transform: translateX(-100%);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
50% {
|
|
23
|
+
/* +0.5s of delay between each loop */
|
|
24
|
+
transform: translateX(100%);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
100% {
|
|
28
|
+
transform: translateX(100%);
|
|
29
|
+
}
|
|
30
|
+
`,vu="string"!=typeof vs?(0,vi.css)`
|
|
31
|
+
animation: ${vs} 2s ease-in-out 0.5s infinite;
|
|
32
|
+
`:null,vc="string"!=typeof vl?(0,vi.css)`
|
|
33
|
+
&::after {
|
|
34
|
+
animation: ${vl} 2s linear 0.5s infinite;
|
|
35
|
+
}
|
|
36
|
+
`:null,vd=(0,y.A)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!1!==n.animation&&t[n.animation],n.hasChildren&&t.withChildren,n.hasChildren&&!n.width&&t.fitContent,n.hasChildren&&!n.height&&t.heightAuto]}})((0,x.A)(({theme:e})=>{let t=String(e.shape.borderRadius).match(/[\d.\-+]*\s*(.*)/)[1]||"px",n=parseFloat(e.shape.borderRadius);return{display:"block",backgroundColor:e.vars?e.vars.palette.Skeleton.bg:(0,m.X4)(e.palette.text.primary,"light"===e.palette.mode?.11:.13),height:"1.2em",variants:[{props:{variant:"text"},style:{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${n}${t}/${Math.round(n/.6*10)/10}${t}`,"&:empty:before":{content:'"\\00a0"'}}},{props:{variant:"circular"},style:{borderRadius:"50%"}},{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:({ownerState:e})=>e.hasChildren,style:{"& > *":{visibility:"hidden"}}},{props:({ownerState:e})=>e.hasChildren&&!e.width,style:{maxWidth:"fit-content"}},{props:({ownerState:e})=>e.hasChildren&&!e.height,style:{height:"auto"}},{props:{animation:"pulse"},style:vu||{animation:`${vs} 2s ease-in-out 0.5s infinite`}},{props:{animation:"wave"},style:{position:"relative",overflow:"hidden",WebkitMaskImage:"-webkit-radial-gradient(white, black)","&::after":{background:`linear-gradient(
|
|
37
|
+
90deg,
|
|
38
|
+
transparent,
|
|
39
|
+
${(e.vars||e).palette.action.hover},
|
|
40
|
+
transparent
|
|
41
|
+
)`,content:'""',position:"absolute",transform:"translateX(-100%)",bottom:0,left:0,right:0,top:0}}},{props:{animation:"wave"},style:vc||{"&::after":{animation:`${vl} 2s linear 0.5s infinite`}}}]}})),vp=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiSkeleton"}),{animation:r="pulse",className:o,component:i="span",height:a,style:s,variant:l="text",width:u,...d}=n,p={...n,animation:r,component:i,variant:l,hasChildren:!!d.children},m=(e=>{let{classes:t,variant:n,animation:r,hasChildren:o,width:i,height:a}=e;return(0,h.A)({root:["root",n,r,o&&"withChildren",o&&!i&&"fitContent",o&&!a&&"heightAuto"]},va,t)})(p);return(0,c.jsx)(vd,{as:i,ref:t,className:(0,f.A)(m.root,o),ownerState:p,...d,style:{width:u,height:a,...s}})});function vf(e){let{message:t}=e;return(0,c.jsx)(O.A,{sx:{height:"100%",alignItems:"center",justifyContent:"center"},children:(0,c.jsx)(fb.A,{children:t})})}function vh(e){let{resource:t}=e;return(0,c.jsx)(vf,{message:`No ${t}`})}function vm(e){let{variant:t="rounded"}=e;return(0,c.jsx)(O.A,{sx:{height:"100%",alignItems:"center",justifyContent:"center",px:1},children:(0,c.jsx)(vp,{variant:t,width:"100%",height:"30%","aria-label":"Loading..."})})}let vg=[{id:"asc",label:"Ascending"},{id:"desc",label:"Descending"}];function vv({onChange:e,value:t="desc"}){return(0,c.jsx)(hz,{label:"Sort",control:(0,c.jsx)(hW,{value:vg.find(e=>e.id===t),options:vg,getOptionLabel:e=>e.label,onChange:(t,{id:n})=>{e(n)},disableClearable:!0})})}function vy({onChange:e,value:t,...n}){let r=t=>{e(t)};return(0,c.jsxs)(E,{"aria-label":"Sort",...n,children:[(0,c.jsx)(R.A,{onClick:()=>r(void 0),variant:void 0===t?"contained":"outlined",children:"None"}),(0,c.jsx)(R.A,{onClick:()=>r("asc"),variant:"asc"===t?"contained":"outlined",children:"Asc"}),(0,c.jsx)(R.A,{onClick:()=>r("desc"),variant:"desc"===t?"contained":"outlined",children:"Desc"})]})}var vx=n(61375),vb=n(31729);let vw=(0,n(68335).A)();var vA=n(86742),vC=n(86067);function vS({inputRef:e,label:t,color:n,value:r,mode:o,onChange:i,onColorChange:a,onBlur:s,onDelete:l}){let[u,p]=(0,d.useState)(0);return(0,c.jsxs)(O.A,{flex:1,direction:"row",alignItems:"center",justifyContent:"space-between",spacing:1,children:[(0,c.jsx)(ly,{label:t,color:n,onColorChange:a}),(0,c.jsx)(hP.A,{htmlFor:t,children:t}),(0,c.jsx)(P.A,{id:t,inputRef:e,type:"number",value:0===r?"":r,placeholder:"0",onChange:i,onBlur:s,onKeyDown:e=>{"Enter"===e.key&&(s(),p(u+1))},InputProps:{endAdornment:"percent"===o?(0,c.jsx)(lw.A,{paddingX:1,children:"%"}):void 0}},u),(0,c.jsx)(j.A,{"aria-label":`delete threshold ${t}`,size:"small",onClick:l,children:(0,c.jsx)(vC,{})})]})}function vM({thresholds:e,onChange:t,hideDefault:n,disablePercentMode:r}){let{thresholds:{defaultColor:o,palette:i}}=ey(),a=e?.defaultColor??o,s=e?.steps,l=(0,d.useRef)(null),u=(0,d.useRef)(!1);(0,d.useEffect)(()=>{l.current&&u.current&&(l.current?.focus(),u.current=!1)},[s?.length]);let p=()=>{if(void 0!==s){let n=[...s];n.sort((e,t)=>e.value-t.value),void 0!==e&&t((0,lA.produce)(e,e=>{e.steps=n}))}};return(0,c.jsxs)(hV,{title:"Thresholds",icon:(0,c.jsx)(hF,{description:"Add threshold",children:(0,c.jsx)(j.A,{size:"small","aria-label":"add threshold",onClick:()=>{u.current=!0,void 0===e?t({steps:[{value:10}]}):e&&void 0===e.steps?t((0,lA.produce)(e,e=>{e.steps=[{value:10}]})):t((0,lA.produce)(e,e=>{let t=e.steps;if(t?.length){let e=t[t.length-1],n=i[t.length]??vT();t.push({color:n,value:(e?.value??0)+10})}else t&&t.push({value:10})}))},children:(0,c.jsx)(vA,{})})}),children:[(0,c.jsx)(hz,{label:"Mode",description:"Percentage means thresholds relative to min & max",control:(0,c.jsxs)(vx.A,{exclusive:!0,disabled:r,value:e?.mode??"absolute",onChange:(n,r)=>{let o="percent"===r?"percent":void 0;void 0!==e?t((0,lA.produce)(e,e=>{e.mode=o})):t({mode:o})},sx:{height:"36px",marginLeft:"auto"},children:[(0,c.jsx)(vb.A,{"aria-label":"absolute",value:"absolute",sx:{fontWeight:500},children:"Absolute"}),(0,c.jsx)(vb.A,{"aria-label":"percent",value:"percent",sx:{fontWeight:500},children:"Percent"})]})}),s&&s.map((n,r)=>(0,c.jsx)(vS,{inputRef:r===s.length-1?l:void 0,label:`T${r+1}`,color:n.color??i[r]??a,value:n.value,mode:e?.mode,onColorChange:n=>{void 0!==e&&t((0,lA.produce)(e,e=>{if(void 0!==e.steps){let t=e.steps[r];t&&(t.color=n)}}))},onChange:n=>{void 0!==e&&t((0,lA.produce)(e,e=>{let t=e.steps?.[r];t&&(t.value=Number(n.target.value))}))},onDelete:()=>{void 0!==e&&t((0,lA.produce)(e,e=>{e.steps&&e.steps.splice(r,1)}))},onBlur:p},r)).toReversed(),!n&&(0,c.jsxs)(vw,{flex:1,direction:"row",alignItems:"center",spacing:1,children:[(0,c.jsx)(ly,{label:"default",color:a,onColorChange:n=>{void 0!==e?t((0,lA.produce)(e,e=>{e.defaultColor=n})):t({defaultColor:n})}}),(0,c.jsx)(fb.A,{children:"Default"})]})]})}let vT=()=>"#"+Math.floor(0x1000000*Math.random()).toString(16).padStart(6,"0");var vk=n(24300),vI=n(26684),vE=n(49257),vR=n(51327),vD=n(87169);function vO({props:e,name:t}){return(0,vR.A)({props:e,name:t,defaultTheme:vD.A,themeId:mY.A})}let vj=["localeText"],vP=d.createContext(null),vN=function(e){let{localeText:t}=e,n=(0,vE.A)(e,vj),{utils:r,localeText:o}=d.useContext(vP)??{utils:void 0,localeText:void 0},{children:i,dateAdapter:a,dateFormats:s,dateLibInstance:l,adapterLocale:u,localeText:p}=vO({props:n,name:"MuiLocalizationProvider"}),f=d.useMemo(()=>(0,oC.A)({},p,o,t),[p,o,t]),h=d.useMemo(()=>{if(!a)return r||null;let e=new a({locale:u,formats:s,instance:l});if(!e.isMUIAdapter)throw Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`","For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`","More information on the installation documentation: https://mui.com/x/react-date-pickers/getting-started/#installation"].join(`
|
|
42
|
+
`));return e},[a,u,s,l,r]),m=d.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),g=d.useMemo(()=>({utils:h,defaultDates:m,localeText:f}),[m,h,f]);return(0,c.jsx)(vP.Provider,{value:g,children:i})};var vF=n(62688),v_=n.n(vF);let vL={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"Open previous view",openNextView:"Open next view",calendarViewSwitchingButtonAriaLabel:e=>"year"===e?"year view is open, switch to calendar view":"calendar view is open, switch to year view",start:"Start",end:"End",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerToolbarTitle:"Select date",dateTimePickerToolbarTitle:"Select date & time",timePickerToolbarTitle:"Select time",dateRangePickerToolbarTitle:"Select date range",clockLabelText:(e,t,n,r)=>`Select ${e}. ${!r&&(null===t||!n.isValid(t))?"No time selected":`Selected time is ${r??n.format(t,"fullTime")}`}`,hoursClockNumberText:e=>`${e} hours`,minutesClockNumberText:e=>`${e} minutes`,secondsClockNumberText:e=>`${e} seconds`,selectViewText:e=>`Select ${e}`,calendarWeekNumberHeaderLabel:"Week number",calendarWeekNumberHeaderText:"#",calendarWeekNumberAriaLabelText:e=>`Week ${e}`,calendarWeekNumberText:e=>`${e}`,openDatePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||null!==e&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",timeTableLabel:"pick time",dateTableLabel:"pick date",fieldYearPlaceholder:e=>"Y".repeat(e.digitAmount),fieldMonthPlaceholder:e=>"letter"===e.contentType?"MMMM":"MM",fieldDayPlaceholder:()=>"DD",fieldWeekDayPlaceholder:e=>"letter"===e.contentType?"EEEE":"EE",fieldHoursPlaceholder:()=>"hh",fieldMinutesPlaceholder:()=>"mm",fieldSecondsPlaceholder:()=>"ss",fieldMeridiemPlaceholder:()=>"aa",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"};(0,oC.A)({},vL);let vz=()=>{let e=d.useContext(vP);if(null===e)throw Error("MUI X: Can not find the date and time pickers localization context.\nIt looks like you forgot to wrap your component in LocalizationProvider.\nThis can also happen if you are bundling multiple versions of the `@mui/x-date-pickers` package");if(null===e.utils)throw Error("MUI X: Can not find the date and time pickers adapter from its localization context.\nIt looks like you forgot to pass a `dateAdapter` to your LocalizationProvider.");let t=d.useMemo(()=>(0,oC.A)({},vL,e.localeText),[e.localeText]);return d.useMemo(()=>(0,oC.A)({},e,{localeText:t}),[e,t])},vB=e=>{let t=vz().utils,n=d.useRef(void 0);return void 0===n.current&&(n.current=t.date(void 0,e)),n.current},vV=(e,t,n)=>{let r=t;return r=e.setHours(r,e.getHours(n)),r=e.setMinutes(r,e.getMinutes(n)),r=e.setSeconds(r,e.getSeconds(n)),r=e.setMilliseconds(r,e.getMilliseconds(n))},v$=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:o,isDateDisabled:i,utils:a,timezone:s})=>{let l=vV(a,a.date(void 0,s),e);n&&a.isBefore(o,l)&&(o=l),t&&a.isAfter(r,l)&&(r=l);let u=e,c=e;for(a.isBefore(e,o)&&(u=o,c=null),a.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&a.isAfter(u,r)&&(u=null),c&&a.isBefore(c,o)&&(c=null),u){if(!i(u))return u;u=a.addDays(u,1)}if(c){if(!i(c))return c;c=a.addDays(c,-1)}}return null},vH=(e,t,n)=>null!=t&&e.isValid(t)?t:n,vW=(e,t)=>{let n=[e.startOfYear(t)];for(;n.length<12;){let t=n[n.length-1];n.push(e.addMonths(t,1))}return n},vU=(e,t,n)=>"date"===n?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),vG=(e,t)=>{let n=e.setHours(e.date(),"am"===t?2:14);return e.format(n,"meridiem")},vq=["year","month","day"],vY=e=>vq.includes(e);var vZ=n(33868),vX=n(87034),vK=n(22857);let vQ=(0,pP.A)((0,c.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vJ=(0,pP.A)((0,c.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),v0=(0,pP.A)((0,c.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight");(0,pP.A)((0,c.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),(0,pP.A)((0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,c.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock");let v1=(0,pP.A)((0,c.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),v2=(0,pP.A)((0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),(0,c.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),v5=(0,pP.A)((0,c.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Clear");function v4(e){return(0,C.Ay)("MuiDateTimePickerTabs",e)}(0,A.A)("MuiDateTimePickerTabs",["root"]);let v3=(0,y.A)(vX.A,{name:"MuiDateTimePickerTabs",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({boxShadow:`0 -1px 0 0 inset ${(e.vars||e).palette.divider}`,"&:last-child":{boxShadow:`0 1px 0 0 inset ${(e.vars||e).palette.divider}`,[`& .${vK.A.indicator}`]:{bottom:"auto",top:0}}})),v6=function(e){let t=vO({props:e,name:"MuiDateTimePickerTabs"}),{dateIcon:n=(0,c.jsx)(v1,{}),onViewChange:r,timeIcon:o=(0,c.jsx)(v2,{}),view:i,hidden:a="u"<typeof window||window.innerHeight<667,className:s,sx:l}=t,u=vz().localeText,p=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},v4,t)})(t);return a?null:(0,c.jsxs)(v3,{ownerState:t,variant:"fullWidth",value:vY(i)?"date":"time",onChange:(e,t)=>{r("date"===t?"day":"hours")},className:(0,f.A)(s,p.root),sx:l,children:[(0,c.jsx)(vZ.A,{value:"date","aria-label":u.dateTableLabel,icon:(0,c.jsx)(d.Fragment,{children:n})}),(0,c.jsx)(vZ.A,{value:"time","aria-label":u.timeTableLabel,icon:(0,c.jsx)(d.Fragment,{children:o})})]})};function v9(e){return(0,C.Ay)("MuiPickersToolbarText",e)}let v7=(0,A.A)("MuiPickersToolbarText",["root","selected"]),v8=["className","selected","value"],ye=(0,y.A)(fb.A,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${v7.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${v7.selected}`]:{color:(e.vars||e).palette.text.primary}})),yt=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersToolbarText"}),{className:r,value:o}=n,i=(0,vE.A)(n,v8),a=(e=>{let{classes:t,selected:n}=e;return(0,h.A)({root:["root",n&&"selected"]},v9,t)})(n);return(0,c.jsx)(ye,(0,oC.A)({ref:t,className:(0,f.A)(a.root,r),component:"span"},i,{children:o}))});function yn(e){return(0,C.Ay)("MuiPickersToolbar",e)}let yr=(0,A.A)("MuiPickersToolbar",["root","content"]),yo=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],yi=(0,y.A)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),ya=(0,y.A)("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),ys=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersToolbar"}),{children:r,className:o,toolbarTitle:i,hidden:a,titleId:s}=n,l=(0,vE.A)(n,yo),u=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],content:["content"]},yn,t)})(n);return a?null:(0,c.jsxs)(yi,(0,oC.A)({ref:t,className:(0,f.A)(u.root,o),ownerState:n},l,{children:[(0,c.jsx)(fb.A,{color:"text.secondary",variant:"overline",id:s,children:i}),(0,c.jsx)(ya,{className:u.content,ownerState:n,children:r})]}))}),yl=["align","className","selected","typographyClassName","value","variant","width"],yu=(0,y.A)(R.A,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),yc=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersToolbarButton"}),{align:r,className:o,selected:i,typographyClassName:a,value:s,variant:l,width:u}=n,d=(0,vE.A)(n,yl),p=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},yn,t)})(n);return(0,c.jsx)(yu,(0,oC.A)({variant:"text",ref:t,className:(0,f.A)(p.root,o)},u?{sx:{width:u}}:{},d,{children:(0,c.jsx)(yt,{align:r,className:a,variant:l,value:s,selected:i})}))});function yd(e){return(0,C.Ay)("MuiDateTimePickerToolbar",e)}let yp=(0,A.A)("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),yf=["hours","minutes","seconds"],yh=e=>yf.includes(e),ym=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?"am"===t?e-12:e+12:e,yg=(e,t)=>3600*t.getHours(e)+60*t.getMinutes(e)+t.getSeconds(e),yv=(e,t)=>(n,r)=>e?t.isAfter(n,r):yg(n,t)>yg(r,t);function yy(e,t,n,r){let o=vz().utils;return{meridiemMode:e?o.getHours(e)>=12?"pm":"am":null,handleMeridiemChange:d.useCallback(i=>{var a;let s;n(null==e?null:(a=!!t,s=ym(o.getHours(e),i,a),o.setHours(e,s)),r??"partial")},[t,e,n,r,o])}}let yx=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant","toolbarTitle","className"],yb=(0,y.A)(ys,{name:"MuiDateTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({paddingLeft:16,paddingRight:16,justifyContent:"space-around",position:"relative",variants:[{props:{toolbarVariant:"desktop"},style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,[`& .${yr.content} .${v7.selected}`]:{color:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightBold}}},{props:{toolbarVariant:"desktop",isLandscape:!0},style:{borderRight:`1px solid ${(e.vars||e).palette.divider}`}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{paddingLeft:24,paddingRight:0}}]})),yw=(0,y.A)("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),yA=(0,y.A)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})({display:"flex",flexDirection:"row",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop",isLandscape:!1},style:{gap:9,marginRight:4,alignSelf:"flex-end"}},{props:({isLandscape:e,toolbarVariant:t})=>e&&"desktop"!==t,style:{flexDirection:"column"}},{props:({isLandscape:e,toolbarVariant:t,isRtl:n})=>e&&"desktop"!==t&&n,style:{flexDirection:"column-reverse"}}]}),yC=(0,y.A)("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})({display:"flex",variants:[{props:{isRtl:!0},style:{flexDirection:"row-reverse"}},{props:{toolbarVariant:"desktop"},style:{gap:1.5}}]}),yS=(0,y.A)(yt,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({margin:"0 4px 0 2px",cursor:"default",variants:[{props:{toolbarVariant:"desktop"},style:{margin:0}}]}),yM=(0,y.A)("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${yp.ampmLabel}`]:t.ampmLabel},{[`&.${yp.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12,[`& .${yp.ampmLabel}`]:{fontSize:17},variants:[{props:{isLandscape:!0},style:{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"}}]});function yT(e){let t=vO({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:o,onChange:i,view:a,isLandscape:s,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:p="––",views:m,disabled:g,readOnly:v,toolbarVariant:y="mobile",toolbarTitle:x,className:b}=t,w=(0,vE.A)(t,yx),A=(0,p2.I)(),C=(0,oC.A)({},t,{isRtl:A}),S=vz().utils,{meridiemMode:M,handleMeridiemChange:T}=yy(o,n,i),k=!!(n&&!r),I="desktop"===y,E=vz().localeText,R=(e=>{let{classes:t,isLandscape:n,isRtl:r}=e;return(0,h.A)({root:["root"],dateContainer:["dateContainer"],timeContainer:["timeContainer",r&&"timeLabelReverse"],timeDigitsContainer:["timeDigitsContainer",r&&"timeLabelReverse"],separator:["separator"],ampmSelection:["ampmSelection",n&&"ampmLandscape"],ampmLabel:["ampmLabel"]},yd,t)})(C),D=x??E.dateTimePickerToolbarTitle,O=d.useMemo(()=>o?u?S.formatByString(o,u):S.format(o,"shortDate"):p,[o,u,p,S]);return(0,c.jsxs)(yb,(0,oC.A)({isLandscape:s,className:(0,f.A)(R.root,b),toolbarTitle:D},w,{ownerState:C,children:[(0,c.jsxs)(yw,{className:R.dateContainer,ownerState:C,children:[m.includes("year")&&(0,c.jsx)(yc,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:"year"===a,value:o?S.format(o,"year"):"–"}),m.includes("day")&&(0,c.jsx)(yc,{tabIndex:-1,variant:I?"h5":"h4",onClick:()=>l("day"),selected:"day"===a,value:O})]}),(0,c.jsxs)(yA,{className:R.timeContainer,ownerState:C,children:[(0,c.jsxs)(yC,{className:R.timeDigitsContainer,ownerState:C,children:[m.includes("hours")&&(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)(yc,{variant:I?"h5":"h3",width:I&&!s?48:void 0,onClick:()=>l("hours"),selected:"hours"===a,value:o?n?S.format(o,"hours12h"):S.format(o,"hours24h"):"--"}),(0,c.jsx)(yS,{variant:I?"h5":"h3",value:":",className:R.separator,ownerState:C}),(0,c.jsx)(yc,{variant:I?"h5":"h3",width:I&&!s?48:void 0,onClick:()=>l("minutes"),selected:"minutes"===a||!m.includes("minutes")&&"hours"===a,value:o?S.format(o,"minutes"):"--",disabled:!m.includes("minutes")})]}),m.includes("seconds")&&(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)(yS,{variant:I?"h5":"h3",value:":",className:R.separator,ownerState:C}),(0,c.jsx)(yc,{variant:I?"h5":"h3",width:I&&!s?48:void 0,onClick:()=>l("seconds"),selected:"seconds"===a,value:o?S.format(o,"seconds"):"--"})]})]}),k&&!I&&(0,c.jsxs)(yM,{className:R.ampmSelection,ownerState:C,children:[(0,c.jsx)(yc,{variant:"subtitle2",selected:"am"===M,typographyClassName:R.ampmLabel,value:vG(S,"am"),onClick:v?void 0:()=>T("am"),disabled:g}),(0,c.jsx)(yc,{variant:"subtitle2",selected:"pm"===M,typographyClassName:R.ampmLabel,value:vG(S,"pm"),onClick:v?void 0:()=>T("pm"),disabled:g})]}),n&&I&&(0,c.jsx)(yc,{variant:"h5",onClick:()=>l("meridiem"),selected:"meridiem"===a,value:o&&M?vG(S,M):"--",width:48})]})]}))}var yk=n(54553),yI=n(77893);function yE(e){return(0,C.Ay)("MuiPickersArrowSwitcher",e)}(0,A.A)("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);let yR=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],yD=["ownerState"],yO=["ownerState"],yj=(0,y.A)("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),yP=(0,y.A)("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),yN=(0,y.A)(j.A,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),yF=d.forwardRef(function(e,t){let n=(0,p2.I)(),r=vO({props:e,name:"MuiPickersArrowSwitcher"}),{children:o,className:i,slots:a,slotProps:s,isNextDisabled:l,isNextHidden:u,onGoToNext:d,nextLabel:p,isPreviousDisabled:m,isPreviousHidden:g,onGoToPrevious:v,previousLabel:y,labelId:x}=r,b=(0,vE.A)(r,yR),w=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},yE,t)})(r),A=a?.previousIconButton??yN,C=(0,yI.A)({elementType:A,externalSlotProps:s?.previousIconButton,additionalProps:{size:"medium",title:y,"aria-label":y,disabled:m,edge:"end",onClick:v},ownerState:(0,oC.A)({},r,{hidden:g}),className:(0,f.A)(w.button,w.previousIconButton)}),S=a?.nextIconButton??yN,M=(0,yI.A)({elementType:S,externalSlotProps:s?.nextIconButton,additionalProps:{size:"medium",title:p,"aria-label":p,disabled:l,edge:"start",onClick:d},ownerState:(0,oC.A)({},r,{hidden:u}),className:(0,f.A)(w.button,w.nextIconButton)}),T=a?.leftArrowIcon??vJ,k=(0,yI.A)({elementType:T,externalSlotProps:s?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:r,className:w.leftArrowIcon}),I=(0,vE.A)(k,yD),E=a?.rightArrowIcon??v0,R=(0,yI.A)({elementType:E,externalSlotProps:s?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:r,className:w.rightArrowIcon}),D=(0,vE.A)(R,yO);return(0,c.jsxs)(yj,(0,oC.A)({ref:t,className:(0,f.A)(w.root,i),ownerState:r},b,{children:[(0,c.jsx)(A,(0,oC.A)({},C,{children:n?(0,c.jsx)(E,(0,oC.A)({},D)):(0,c.jsx)(T,(0,oC.A)({},I))})),o?(0,c.jsx)(fb.A,{variant:"subtitle1",component:"span",id:x,children:o}):(0,c.jsx)(yP,{className:w.spacer,ownerState:r}),(0,c.jsx)(S,(0,oC.A)({},M,{children:n?(0,c.jsx)(T,(0,oC.A)({},I)):(0,c.jsx)(E,(0,oC.A)({},D))}))]}))});var y_=n(83183),yL=n(89369);function yz({onChange:e,onViewChange:t,openTo:n,view:r,views:o,autoFocus:i,focusedView:a,onFocusedViewChange:s}){let l=d.useRef(n),u=d.useRef(o),c=d.useRef(o.includes(n)?n:o[0]),[p,f]=(0,yL.A)({name:"useViews",state:"view",controlled:r,default:c.current}),h=d.useRef(i?p:null),[m,g]=(0,yL.A)({name:"useViews",state:"focusedView",controlled:a,default:h.current});d.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(e=>!o.includes(e)))&&(f(o.includes(n)?n:o[0]),u.current=o,l.current=n)},[n,f,p,o]);let v=o.indexOf(p),y=o[v-1]??null,x=o[v+1]??null,b=(0,y_.A)((e,t)=>{t?g(e):g(t=>e===t?null:t),s?.(e,t)}),w=(0,y_.A)(e=>{b(e,!0),e!==p&&(f(e),t&&t(e))}),A=(0,y_.A)(()=>{x&&w(x)}),C=(0,y_.A)((t,n,r)=>{let i="finish"===n,a=r?o.indexOf(r)<o.length-1:!!x;if(e(t,i&&a?"partial":n,r),r&&r!==p){let e=o[o.indexOf(r)+1];e&&w(e)}else i&&A()});return{view:p,setView:w,focusedView:m,setFocusedView:b,nextView:x,previousView:y,defaultView:o.includes(n)?n:o[0],goToNextView:A,setValueAndGoToNextView:C}}let yB=(0,y.A)("div")({overflow:"hidden",width:320,maxHeight:336,display:"flex",flexDirection:"column",margin:"0 auto"});function yV(e){return(0,C.Ay)("MuiTimeClock",e)}function y$(e){return(0,C.Ay)("MuiClockPointer",e)}(0,A.A)("MuiTimeClock",["root","arrowSwitcher"]),(0,A.A)("MuiClockPointer",["root","thumb"]);let yH=["className","hasSelected","isInner","type","viewValue"],yW=(0,y.A)("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({width:2,backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",left:"calc(50% - 1px)",bottom:"50%",transformOrigin:"center bottom 0px",variants:[{props:{shouldAnimate:!0},style:{transition:e.transitions.create(["transform","height"])}}]})),yU=(0,y.A)("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:"calc(50% - 18px)",border:`16px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box",variants:[{props:{hasSelected:!0},style:{backgroundColor:(e.vars||e).palette.primary.main}}]}));function yG(e){let t,n=vO({props:e,name:"MuiClockPointer"}),{className:r,isInner:o,type:i,viewValue:a}=n,s=(0,vE.A)(n,yH),l=d.useRef(i);d.useEffect(()=>{l.current=i},[i]);let u=(0,oC.A)({},n,{shouldAnimate:l.current!==i}),p=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],thumb:["thumb"]},y$,t)})(u);return(0,c.jsx)(yW,(0,oC.A)({style:(t=360/("hours"===i?12:60)*a,"hours"===i&&a>12&&(t-=360),{height:Math.round((o?.26:.4)*220),transform:`rotateZ(${t}deg)`}),className:(0,f.A)(p.root,r),ownerState:u},s,{children:(0,c.jsx)(yU,{ownerState:u,className:p.thumb})}))}let yq=110,yY=110,yZ=yq,yX=0,yK=yZ-yq,yQ=yX-yY,yJ=(e,t,n)=>{let r=t-yq,o=n-yY,i=180/Math.PI*(Math.atan2(yK,yQ)-Math.atan2(r,o));return{value:Math.floor((i=Math.round(i/e)*e%360)/e)||0,distance:Math.sqrt(r**2+o**2)}};function y0(e){return(0,C.Ay)("MuiClock",e)}(0,A.A)("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText","selected"]);let y1=(0,y.A)("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),y2=(0,y.A)("div",{name:"MuiClock",slot:"Clock",overridesResolver:(e,t)=>t.clock})({backgroundColor:"rgba(0,0,0,.07)",borderRadius:"50%",height:220,width:220,flexShrink:0,position:"relative",pointerEvents:"none"}),y5=(0,y.A)("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),y4=(0,y.A)("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})({width:"100%",height:"100%",position:"absolute",pointerEvents:"auto",outline:0,touchAction:"none",userSelect:"none",variants:[{props:{disabled:!1},style:{"@media (pointer: fine)":{cursor:"pointer",borderRadius:"50%"},"&:active":{cursor:"move"}}}]}),y3=(0,y.A)("div",{name:"MuiClock",slot:"Pin",overridesResolver:(e,t)=>t.pin})(({theme:e})=>({width:6,height:6,borderRadius:"50%",backgroundColor:(e.vars||e).palette.primary.main,position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)"})),y6=(e,t)=>({zIndex:1,bottom:8,paddingLeft:4,paddingRight:4,width:36,variants:[{props:{meridiemMode:t},style:{backgroundColor:(e.vars||e).palette.primary.main,color:(e.vars||e).palette.primary.contrastText,"&:hover":{backgroundColor:(e.vars||e).palette.primary.light}}}]}),y9=(0,y.A)(j.A,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e})=>(0,oC.A)({},y6(e,"am"),{position:"absolute",left:8})),y7=(0,y.A)(j.A,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e})=>(0,oC.A)({},y6(e,"pm"),{position:"absolute",right:8})),y8=(0,y.A)(fb.A,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function xe(e){let t=vO({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:o,children:i,value:a,handleMeridiemChange:s,isTimeDisabled:l,meridiemMode:u,minutesStep:p=1,onChange:m,selectedId:g,type:v,viewValue:y,viewRange:[x,b],disabled:w=!1,readOnly:A,className:C}=t,S=vz().utils,M=vz().localeText,T=d.useRef(!1),k=(e=>{let{classes:t,meridiemMode:n}=e;return(0,h.A)({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton","am"===n&&"selected"],pmButton:["pmButton","pm"===n&&"selected"],meridiemText:["meridiemText"]},y0,t)})(t),I=l(y,v),E=!n&&"hours"===v&&(y<1||y>12),R=(e,t)=>{w||A||l(e,v)||m(e,t)},D=(e,t)=>{let{offsetX:r,offsetY:o}=e;if(void 0===r){let t=e.target.getBoundingClientRect();r=e.changedTouches[0].clientX-t.left,o=e.changedTouches[0].clientY-t.top}R("seconds"===v||"minutes"===v?((e,t,n=1)=>{let{value:r}=yJ(6*n,e,t);return r*n%60})(r,o,p):((e,t,n)=>{let{value:r,distance:o}=yJ(30,e,t),i=r||12;return n?i%=12:o<74&&(i+=12,i%=24),i})(r,o,!!n),t)},O=e=>{T.current=!0,D(e,"shallow")},j=d.useMemo(()=>"hours"===v||y%5==0,[v,y]),P="minutes"===v?p:1,N=d.useRef(null);(0,mH.A)(()=>{o&&N.current.focus()},[o]);let F=e=>Math.max(x,Math.min(b,e)),_=e=>(e+(b+1))%(b+1);return(0,c.jsxs)(y1,{className:(0,f.A)(k.root,C),children:[(0,c.jsxs)(y2,{className:k.clock,children:[(0,c.jsx)(y4,{onTouchMove:O,onTouchStart:O,onTouchEnd:e=>{T.current&&(D(e,"finish"),T.current=!1),e.preventDefault()},onMouseUp:e=>{T.current&&(T.current=!1),D(e.nativeEvent,"finish")},onMouseMove:e=>{e.buttons>0&&D(e.nativeEvent,"shallow")},ownerState:{disabled:w},className:k.squareMask}),!I&&(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)(y3,{className:k.pin}),null!=a&&(0,c.jsx)(yG,{type:v,viewValue:y,isInner:E,hasSelected:j})]}),(0,c.jsx)(y5,{"aria-activedescendant":g,"aria-label":M.clockLabelText(v,a,S,null==a?null:S.format(a,"fullTime")),ref:N,role:"listbox",onKeyDown:e=>{if(!T.current)switch(e.key){case"Home":R(x,"partial"),e.preventDefault();break;case"End":R(b,"partial"),e.preventDefault();break;case"ArrowUp":R(_(y+P),"partial"),e.preventDefault();break;case"ArrowDown":R(_(y-P),"partial"),e.preventDefault();break;case"PageUp":R(F(y+5),"partial"),e.preventDefault();break;case"PageDown":R(F(y-5),"partial"),e.preventDefault();break;case"Enter":case" ":R(y,"finish"),e.preventDefault()}},tabIndex:0,className:k.wrapper,children:i})]}),n&&r&&(0,c.jsxs)(d.Fragment,{children:[(0,c.jsx)(y9,{onClick:A?void 0:()=>s("am"),disabled:w||null===u,ownerState:t,className:k.amButton,title:vG(S,"am"),children:(0,c.jsx)(y8,{variant:"caption",className:k.meridiemText,children:vG(S,"am")})}),(0,c.jsx)(y7,{disabled:w||null===u,onClick:A?void 0:()=>s("pm"),ownerState:t,className:k.pmButton,title:vG(S,"pm"),children:(0,c.jsx)(y8,{variant:"caption",className:k.meridiemText,children:vG(S,"pm")})})]})]})}function xt(e){return(0,C.Ay)("MuiClockNumber",e)}let xn=(0,A.A)("MuiClockNumber",["root","selected","disabled"]),xr=["className","disabled","index","inner","label","selected"],xo=(0,y.A)("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${xn.disabled}`]:t.disabled},{[`&.${xn.selected}`]:t.selected}]})(({theme:e})=>({height:36,width:36,position:"absolute",left:"calc((100% - 36px) / 2)",display:"inline-flex",justifyContent:"center",alignItems:"center",borderRadius:"50%",color:(e.vars||e).palette.text.primary,fontFamily:e.typography.fontFamily,"&:focused":{backgroundColor:(e.vars||e).palette.background.paper},[`&.${xn.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${xn.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled},variants:[{props:{inner:!0},style:(0,oC.A)({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})}]}));function xi(e){let t=vO({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:o,inner:i,label:a,selected:s}=t,l=(0,vE.A)(t,xr),u=(e=>{let{classes:t,selected:n,disabled:r}=e;return(0,h.A)({root:["root",n&&"selected",r&&"disabled"]},xt,t)})(t),d=o%12/12*Math.PI*2-Math.PI/2,p=91*(i?.65:1),m=Math.round(Math.cos(d)*p),g=Math.round(Math.sin(d)*p);return(0,c.jsx)(xo,(0,oC.A)({className:(0,f.A)(u.root,n),"aria-disabled":!!r||void 0,"aria-selected":!!s||void 0,role:"option",style:{transform:`translate(${m}px, ${g+92}px`},ownerState:t},l,{children:a}))}let xa=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:o})=>{let i=e.formatNumber;return[[5,i("05")],[10,i("10")],[15,i("15")],[20,i("20")],[25,i("25")],[30,i("30")],[35,i("35")],[40,i("40")],[45,i("45")],[50,i("50")],[55,i("55")],[0,i("00")]].map(([e,i],a)=>{let s=e===t;return(0,c.jsx)(xi,{label:i,id:s?o:void 0,index:a+1,inner:!1,disabled:n(e),selected:s,"aria-label":r(i)},e)})},xs=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:o,valueManager:i})=>{let a,s=vz().utils,l=d.useRef(n),u=t??l.current??i.emptyValue,c=d.useMemo(()=>i.getTimezone(s,u),[s,i,u]),p=(0,y_.A)(e=>null==c?e:i.setTimezone(s,c,e));return a=e||c||(r?s.getTimezone(r):"default"),{value:d.useMemo(()=>i.setTimezone(s,a,u),[i,s,a,u]),handleValueChange:(0,y_.A)((e,...t)=>{let n=p(e);o?.(n,...t)}),timezone:a}},xl=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:o,onChange:i,valueManager:a})=>{let[s,l]=(0,yL.A)({name:e,state:"value",controlled:n,default:r??a.emptyValue});return xs({timezone:t,value:s,defaultValue:void 0,referenceDate:o,onChange:(0,y_.A)((e,...t)=>{l(e),i?.(e,...t)}),valueManager:a})},xu={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},xc=(e,t,n)=>{if(t===xu.year)return e.startOfYear(n);if(t===xu.month)return e.startOfMonth(n);if(t===xu.day)return e.startOfDay(n);let r=n;return t<xu.minutes&&(r=e.setMinutes(r,0)),t<xu.seconds&&(r=e.setSeconds(r,0)),t<xu.milliseconds&&(r=e.setMilliseconds(r,0)),r},xd=(e,t)=>{let n=e.formatTokenMap[t];if(null==n)throw Error(`MUI X: The token "${t}" is not supported by the Date and Time Pickers.
|
|
43
|
+
Please try using another token or open an issue on https://github.com/mui/mui-x/issues/new/choose if you think it should be supported.`);return"string"==typeof n?{type:n,contentType:"meridiem"===n?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},xp=(e,t)=>{let n=[],r=e.date(void 0,"default"),o=e.startOfWeek(r),i=e.endOfWeek(r),a=o;for(;e.isBefore(a,i);)n.push(a),a=e.addDays(a,1);return n.map(n=>e.formatByString(n,t))},xf=(e,t,n,r)=>{switch(n){case"month":return vW(e,e.date(void 0,t)).map(t=>e.formatByString(t,r));case"weekDay":return xp(e,r);case"meridiem":{let n=e.date(void 0,t);return[e.startOfDay(n),e.endOfDay(n)].map(t=>e.formatByString(t,r))}default:return[]}},xh=["0","1","2","3","4","5","6","7","8","9"],xm=(e,t)=>{if("0"===t[0])return e;let n=[],r="";for(let o=0;o<e.length;o+=1){r+=e[o];let i=t.indexOf(r);i>-1&&(n.push(i.toString()),r="")}return n.join("")},xg=(e,t)=>"0"===t[0]?e:e.split("").map(e=>t[Number(e)]).join(""),xv=(e,t)=>{let n=xm(e,t);return" "!==n&&!Number.isNaN(Number(n))},xy=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},xx=(e,t,n,r,o)=>{if("day"===o.type&&"digit-with-letter"===o.contentType){let r=e.setDate(n.longestMonth,t);return e.formatByString(r,o.format)}let i=t.toString();return o.hasLeadingZerosInInput&&(i=xy(i,o.maxLength)),xg(i,r)},xb=(e,t,n)=>{let r=e.value||e.placeholder,o="non-input"===t?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return"non-input"===t&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number(xm(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&"digit"===e.contentType&&!o&&1===r.length&&(r=`${r}\u200e`),"input-rtl"===t&&(r=`\u2068${r}\u2069`),r},xw=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),xA=(e,t,n,r)=>{if("digit"!==t)return!1;let o=e.date(void 0,"default");switch(n){case"year":if("dayjs"===e.lib&&"YY"===r)return!0;return e.formatByString(e.setYear(o,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(o),r).length>1;case"day":return e.formatByString(e.startOfMonth(o),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(o),r).length>1;case"hours":return e.formatByString(e.setHours(o,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(o,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(o,1),r).length>1;default:throw Error("Invalid section type")}},xC=(e,t)=>{},xS={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},xM=(e,t,n,r,o)=>[...n].sort((e,t)=>xS[e.type]-xS[t.type]).reduce((n,r)=>!o||r.modified?((e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{let r=xp(e,t.format),o=e.formatByString(n,t.format),i=r.indexOf(o),a=r.indexOf(t.value);return e.addDays(n,a-i)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{let t=12>e.getHours(n),o=e.getHours(r);if(t&&o>=12)return e.addHours(r,-12);if(!t&&o<12)return e.addHours(r,12);return r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}})(e,r,t,n):n,r),xT=(e,t)=>{if(null==e)return null;if("all"===e)return"all";if("string"==typeof e){let n=t.findIndex(t=>t.type===e);return -1===n?null:n}return e},xk=["value","referenceDate"],xI={emptyValue:null,getTodayValue:vU,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=(0,vE.A)(e,xk);return null!=t&&r.utils.isValid(t)?t:null!=n?n:(({props:e,utils:t,granularity:n,timezone:r,getTodayDate:o})=>{let i=o?o():xc(t,n,vU(t,r));null!=e.minDate&&t.isAfterDay(e.minDate,i)&&(i=xc(t,n,e.minDate)),null!=e.maxDate&&t.isBeforeDay(e.maxDate,i)&&(i=xc(t,n,e.maxDate));let a=yv(e.disableIgnoringDatePartForTimeValidation??!1,t);return null!=e.minTime&&a(e.minTime,i)&&(i=xc(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:vV(t,i,e.minTime))),null!=e.maxTime&&a(i,e.maxTime)&&(i=xc(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:vV(t,i,e.maxTime))),i})(r)},cleanValue:(e,t)=>null!=t&&e.isValid(t)?t:null,areValuesEqual:(e,t,n)=>!(e.isValid(t)||null==t||e.isValid(n))&&null!=n||e.isEqual(t,n),isSameError:(e,t)=>e===t,hasError:e=>null!=e,defaultErrorState:null,getTimezone:(e,t)=>null!=t&&e.isValid(t)?e.getTimezone(t):null,setTimezone:(e,t,n)=>null==n?null:e.setTimezone(n,t)},xE={updateReferenceValue:(e,t,n)=>null!=t&&e.isValid(t)?t:n,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&n?n:r(t),getV7HiddenInputValueFromSections:e=>e.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),getV6InputValueFromSections:(e,t,n)=>{let r=e.map(e=>{let r=xb(e,n?"input-rtl":"input-ltr",t);return`${e.startSeparator}${r}${e.endSeparator}`}).join("");return n?`\u2066${r}\u2069`:r},getActiveDateManager:(e,t)=>({date:t.value,referenceDate:t.referenceValue,getSections:e=>e,getNewValuesFromNewActiveDate:n=>({value:n,referenceValue:null!=n&&e.isValid(n)?n:t.referenceValue})}),parseValueStr:(e,t,n)=>n(e.trim(),t)},xR=["ampm","ampmInClock","autoFocus","slots","slotProps","value","defaultValue","referenceDate","disableIgnoringDatePartForTimeValidation","maxTime","minTime","disableFuture","disablePast","minutesStep","shouldDisableTime","showViewSwitcher","onChange","view","views","openTo","onViewChange","focusedView","onFocusedViewChange","className","disabled","readOnly","timezone"],xD=(0,y.A)(yB,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),xO=(0,y.A)(yF,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),xj=["hours","minutes"],xP=d.forwardRef(function(e,t){let n=vz().utils,r=vO({props:e,name:"MuiTimeClock"}),{ampm:o=n.is12HourCycleInCurrentLocale(),ampmInClock:i=!1,autoFocus:a,slots:s,slotProps:l,value:u,defaultValue:p,referenceDate:m,disableIgnoringDatePartForTimeValidation:g=!1,maxTime:v,minTime:y,disableFuture:x,disablePast:b,minutesStep:w=1,shouldDisableTime:A,showViewSwitcher:C,onChange:S,view:M,views:T=xj,openTo:k,onViewChange:I,focusedView:E,onFocusedViewChange:R,className:D,disabled:O,readOnly:j,timezone:P}=r,N=(0,vE.A)(r,xR),{value:F,handleValueChange:_,timezone:L}=xl({name:"TimeClock",timezone:P,value:u,defaultValue:p,referenceDate:m,onChange:S,valueManager:xI}),z=(({value:e,referenceDate:t,utils:n,props:r,timezone:o})=>{let i=d.useMemo(()=>xI.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:xu.day,timezone:o,getTodayDate:()=>vU(n,o,"date")}),[]);return e??i})({value:F,referenceDate:m,utils:n,props:r,timezone:L}),B=vz().localeText,V=vB(L),{view:$,setView:H,previousView:W,nextView:U,setValueAndGoToNextView:G}=yz({view:M,views:T,openTo:k,onViewChange:I,onChange:_,focusedView:E,onFocusedViewChange:R}),{meridiemMode:q,handleMeridiemChange:Y}=yy(z,o,G),Z=d.useCallback((e,t)=>{let r=yv(g,n),i="hours"===t||"minutes"===t&&T.includes("seconds"),a=({start:e,end:t})=>!(y&&r(y,t)||v&&r(e,v)||x&&r(e,V)||b&&r(V,i?t:e)),s=(e,r=1)=>{if(e%r!=0)return!1;if(A)switch(t){case"hours":return!A(n.setHours(z,e),"hours");case"minutes":return!A(n.setMinutes(z,e),"minutes");case"seconds":return!A(n.setSeconds(z,e),"seconds");default:return!1}return!0};switch(t){case"hours":{let t=ym(e,q,o),r=n.setHours(z,t);if(n.getHours(r)!==t)return!0;return!a({start:n.setSeconds(n.setMinutes(r,0),0),end:n.setSeconds(n.setMinutes(r,59),59)})||!s(t)}case"minutes":{let t=n.setMinutes(z,e);return!a({start:n.setSeconds(t,0),end:n.setSeconds(t,59)})||!s(e,w)}case"seconds":{let t=n.setSeconds(z,e);return!a({start:t,end:t})||!s(e)}default:throw Error("not supported")}},[o,z,g,v,q,y,w,A,n,x,b,V,T]),X=(0,yk.A)(),K=d.useMemo(()=>{switch($){case"hours":{let e,t=(e,t)=>{let r=ym(e,q,o);G(n.setHours(z,r),t,"hours")},r=n.getHours(z);return e=o?r>12?[12,23]:[0,11]:[0,23],{onChange:t,viewValue:r,children:(({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:o,utils:i})=>{let a=t?i.getHours(t):null,s=[],l=+!!e,u=e?12:23,d=t=>null!==a&&(e?12===t?12===a||0===a:a===t||a-12===t:a===t);for(let t=l;t<=u;t+=1){let a=t.toString();0===t&&(a="00");let l=!e&&(0===t||t>12);a=i.formatNumber(a);let u=d(t);s.push((0,c.jsx)(xi,{id:u?o:void 0,index:t,inner:l,selected:u,disabled:r(t),label:a,"aria-label":n(a)},t))}return s})({value:F,utils:n,ampm:o,onChange:t,getClockNumberText:B.hoursClockNumberText,isDisabled:e=>O||Z(e,"hours"),selectedId:X}),viewRange:e}}case"minutes":{let e=n.getMinutes(z),t=(e,t)=>{G(n.setMinutes(z,e),t,"minutes")};return{viewValue:e,onChange:t,children:xa({utils:n,value:e,onChange:t,getClockNumberText:B.minutesClockNumberText,isDisabled:e=>O||Z(e,"minutes"),selectedId:X}),viewRange:[0,59]}}case"seconds":{let e=n.getSeconds(z),t=(e,t)=>{G(n.setSeconds(z,e),t,"seconds")};return{viewValue:e,onChange:t,children:xa({utils:n,value:e,onChange:t,getClockNumberText:B.secondsClockNumberText,isDisabled:e=>O||Z(e,"seconds"),selectedId:X}),viewRange:[0,59]}}default:throw Error("You must provide the type for ClockView")}},[$,n,F,o,B.hoursClockNumberText,B.minutesClockNumberText,B.secondsClockNumberText,q,G,z,Z,X,O]),Q=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],arrowSwitcher:["arrowSwitcher"]},yV,t)})(r);return(0,c.jsxs)(xD,(0,oC.A)({ref:t,className:(0,f.A)(Q.root,D),ownerState:r},N,{children:[(0,c.jsx)(xe,(0,oC.A)({autoFocus:a??!!E,ampmInClock:i&&T.includes("hours"),value:F,type:$,ampm:o,minutesStep:w,isTimeDisabled:Z,meridiemMode:q,handleMeridiemChange:Y,selectedId:X,disabled:O,readOnly:j},K)),C&&(0,c.jsx)(xO,{className:Q.arrowSwitcher,slots:s,slotProps:l,onGoToPrevious:()=>H(W),isPreviousDisabled:!W,previousLabel:B.openPreviousView,onGoToNext:()=>H(U),isNextDisabled:!U,nextLabel:B.openNextView,ownerState:r})]}))}),xN=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:v,ampm:y,ampmInClock:x,slots:b,slotProps:w,readOnly:A,disabled:C,sx:S,autoFocus:M,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:k,timezone:I})=>(0,c.jsx)(xP,{view:e,onViewChange:t,focusedView:n&&yh(n)?n:null,onFocusedViewChange:r,views:o.filter(yh),value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:d,disableFuture:p,disablePast:f,minTime:h,maxTime:m,shouldDisableTime:g,minutesStep:v,ampm:y,ampmInClock:x,slots:b,slotProps:w,readOnly:A,disabled:C,sx:S,autoFocus:M,showViewSwitcher:T,disableIgnoringDatePartForTimeValidation:k,timezone:I}),xF=({props:e,value:t,timezone:n,adapter:r})=>{if(null===t)return null;let{shouldDisableDate:o,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:l}=e,u=r.utils.date(void 0,n),c=vH(r.utils,e.minDate,r.defaultDates.minDate),d=vH(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(o&&o(t)):return"shouldDisableDate";case!!(i&&i(t)):return"shouldDisableMonth";case!!(a&&a(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(s&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};xF.valueManager=xI;let x_=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a,timezone:s})=>{let l=vz();return d.useCallback(u=>null!==xF({adapter:l,value:u,timezone:s,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:o,disableFuture:i,disablePast:a}}),[l,e,t,n,r,o,i,a,s])};var xL=n(44394),xz=n(96313);let xB=e=>(0,C.Ay)("MuiPickersFadeTransitionGroup",e);(0,A.A)("MuiPickersFadeTransitionGroup",["root"]);let xV=(0,y.A)(xL.A,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function x$(e){let t=vO({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},xB,t)})(t),s=(0,lb.A)();return o?n:(0,c.jsx)(xV,{className:(0,f.A)(a.root,r),children:(0,c.jsx)(xz.A,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:s.transitions.duration.enteringScreen,enter:s.transitions.duration.enteringScreen,exit:0},children:n},i)})}var xH=n(95591);function xW(e){return(0,C.Ay)("MuiPickersDay",e)}let xU=(0,A.A)("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),xG=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],xq=({theme:e})=>(0,oC.A)({},e.typography.caption,{width:36,height:36,borderRadius:"50%",padding:0,backgroundColor:"transparent",transition:e.transitions.create("background-color",{duration:e.transitions.duration.short}),color:(e.vars||e).palette.text.primary,"@media (pointer: fine)":{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:(0,m.X4)(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${xU.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xU.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,fontWeight:e.typography.fontWeightMedium,"&:hover":{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${xU.disabled}:not(.${xU.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${xU.disabled}&.${xU.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:"0 2px"}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${xU.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),xY=(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableMargin&&t.dayWithMargin,!n.disableHighlightToday&&n.today&&t.today,!n.outsideCurrentMonth&&n.showDaysOutsideCurrentMonth&&t.dayOutsideMonth,n.outsideCurrentMonth&&!n.showDaysOutsideCurrentMonth&&t.hiddenDaySpacingFiller]},xZ=(0,y.A)(lM.A,{name:"MuiPickersDay",slot:"Root",overridesResolver:xY})(xq),xX=(0,y.A)("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:xY})(({theme:e})=>(0,oC.A)({},xq({theme:e}),{opacity:0,pointerEvents:"none"})),xK=()=>{},xQ=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersDay"}),{autoFocus:r=!1,className:o,day:i,disabled:a=!1,disableHighlightToday:s=!1,disableMargin:l=!1,isAnimating:u,onClick:p,onDaySelect:m,onFocus:g=xK,onBlur:v=xK,onKeyDown:y=xK,onMouseDown:x=xK,onMouseEnter:b=xK,outsideCurrentMonth:w,selected:A=!1,showDaysOutsideCurrentMonth:C=!1,children:S,today:M=!1}=n,T=(0,vE.A)(n,xG),k=(0,oC.A)({},n,{autoFocus:r,disabled:a,disableHighlightToday:s,disableMargin:l,selected:A,showDaysOutsideCurrentMonth:C,today:M}),I=(e=>{let{selected:t,disableMargin:n,disableHighlightToday:r,today:o,disabled:i,outsideCurrentMonth:a,showDaysOutsideCurrentMonth:s,classes:l}=e,u=a&&!s;return(0,h.A)({root:["root",t&&!u&&"selected",i&&"disabled",!n&&"dayWithMargin",!r&&o&&"today",a&&s&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},xW,l)})(k),E=vz().utils,R=d.useRef(null),D=(0,xH.A)(R,t);return((0,mH.A)(()=>{!r||a||u||w||R.current.focus()},[r,a,u,w]),w&&!C)?(0,c.jsx)(xX,{className:(0,f.A)(I.root,I.hiddenDaySpacingFiller,o),ownerState:k,role:T.role}):(0,c.jsx)(xZ,(0,oC.A)({className:(0,f.A)(I.root,o),ref:D,centerRipple:!0,disabled:a,tabIndex:A?0:-1,onKeyDown:e=>y(e,i),onFocus:e=>g(e,i),onBlur:e=>v(e,i),onMouseEnter:e=>b(e,i),onClick:e=>{a||m(i),w&&e.currentTarget.focus(),p&&p(e)},onMouseDown:e=>{x(e),w&&e.preventDefault()}},T,{ownerState:k,children:S||E.format(i,"dayOfMonth")}))}),xJ=d.memo(xQ);var x0=n(7490);function x1(e,t){return e.replace(RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}var x2=n(64863),x5=function(e,t){return e&&t&&t.split(" ").forEach(function(t){e.classList?e.classList.remove(t):"string"==typeof e.className?e.className=x1(e.className,t):e.setAttribute("class",x1(e.className&&e.className.baseVal||"",t))})},x4=function(e){function t(){for(var t,n=arguments.length,r=Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).appliedClasses={appear:{},enter:{},exit:{}},t.onEnter=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.removeClasses(o,"exit"),t.addClass(o,i?"appear":"enter","base"),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1];t.addClass(o,i?"appear":"enter","active"),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var r=t.resolveArguments(e,n),o=r[0],i=r[1]?"appear":"enter";t.removeClasses(o,i),t.addClass(o,i,"done"),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"appear"),t.removeClasses(n,"enter"),t.addClass(n,"exit","base"),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.resolveArguments(e)[0];t.addClass(n,"exit","active"),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.resolveArguments(e)[0];t.removeClasses(n,"exit"),t.addClass(n,"exit","done"),t.props.onExited&&t.props.onExited(e)},t.resolveArguments=function(e,n){return t.props.nodeRef?[t.props.nodeRef.current,e]:[e,n]},t.getClassNames=function(e){var n=t.props.classNames,r="string"==typeof n,o=r&&n?n+"-":"",i=r?""+o+e:n[e],a=r?i+"-active":n[e+"Active"],s=r?i+"-done":n[e+"Done"];return{baseClassName:i,activeClassName:a,doneClassName:s}},t}(0,x0.A)(t,e);var n=t.prototype;return n.addClass=function(e,t,n){var r,o=this.getClassNames(t)[n+"ClassName"],i=this.getClassNames("enter").doneClassName;"appear"===t&&"done"===n&&i&&(o+=" "+i),"active"===n&&e&&(0,x2.F)(e),o&&(this.appliedClasses[t][n]=o,r=o,e&&r&&r.split(" ").forEach(function(t){e.classList?e.classList.add(t):(e.classList?t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" "))||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}))},n.removeClasses=function(e,t){var n=this.appliedClasses[t],r=n.base,o=n.active,i=n.done;this.appliedClasses[t]={},r&&x5(e,r),o&&x5(e,o),i&&x5(e,i)},n.render=function(){var e=this.props,t=(e.classNames,(0,vE.A)(e,["classNames"]));return p().createElement(mK.Ay,(0,oC.A)({},t,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t}(p().Component);x4.defaultProps={classNames:""},x4.propTypes={};let x3=e=>(0,C.Ay)("MuiPickersSlideTransition",e),x6=(0,A.A)("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),x9=["children","className","reduceAnimations","slideDirection","transKey","classes"],x7=(0,y.A)(xL.A,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${x6["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${x6["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${x6.slideEnterActive}`]:t.slideEnterActive},{[`.${x6.slideExit}`]:t.slideExit},{[`.${x6["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${x6["slideExitActiveLeft-right"]}`]:t["slideExitActiveLeft-right"]}]})(({theme:e})=>{let t=e.transitions.create("transform",{duration:e.transitions.duration.complex,easing:"cubic-bezier(0.35, 0.8, 0.4, 1)"});return{display:"block",position:"relative",overflowX:"hidden","& > *":{position:"absolute",top:0,right:0,left:0},[`& .${x6["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${x6["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${x6.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${x6.slideExit}`]:{transform:"translate(0%)"},[`& .${x6["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${x6["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}}),x8=e=>(0,C.Ay)("MuiDayCalendar",e);(0,A.A)("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);let be=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],bt=["ownerState"],bn=(0,y.A)("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),br=(0,y.A)("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),bo=(0,y.A)(fb.A,{name:"MuiDayCalendar",slot:"WeekDayLabel",overridesResolver:(e,t)=>t.weekDayLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:(e.vars||e).palette.text.secondary})),bi=(0,y.A)(fb.A,{name:"MuiDayCalendar",slot:"WeekNumberLabel",overridesResolver:(e,t)=>t.weekNumberLabel})(({theme:e})=>({width:36,height:40,margin:"0 2px",textAlign:"center",display:"flex",justifyContent:"center",alignItems:"center",color:e.palette.text.disabled})),ba=(0,y.A)(fb.A,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>(0,oC.A)({},e.typography.caption,{width:36,height:36,padding:0,margin:"0 2px",color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),bs=(0,y.A)("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:240}),bl=(0,y.A)(function(e){let t=vO({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:o,transKey:i}=t,a=(0,vE.A)(t,x9),s=(e=>{let{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return(0,h.A)(r,x3,t)})(t),l=(0,lb.A)();if(o)return(0,c.jsx)("div",{className:(0,f.A)(s.root,r),children:n});let u={exit:s.exit,enterActive:s.enterActive,enter:s.enter,exitActive:s.exitActive};return(0,c.jsx)(x7,{className:(0,f.A)(s.root,r),childFactory:e=>d.cloneElement(e,{classNames:u}),role:"presentation",children:(0,c.jsx)(x4,(0,oC.A)({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},a,{children:n}),i)})},{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:240}),bu=(0,y.A)("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),bc=(0,y.A)("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:"2px 0",display:"flex",justifyContent:"center"});function bd(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:o,isDateDisabled:i,currentMonthNumber:a,isViewFocused:s}=e,l=(0,vE.A)(e,be),{disabled:u,disableHighlightToday:p,isMonthSwitchingAnimating:f,showDaysOutsideCurrentMonth:h,slots:m,slotProps:g,timezone:v}=t,y=vz().utils,x=vB(v),b=null!==r&&y.isSameDay(n,r),w=o.some(e=>y.isSameDay(e,n)),A=y.isSameDay(n,x),C=m?.day??xJ,S=(0,yI.A)({elementType:C,externalSlotProps:g?.day,additionalProps:(0,oC.A)({disableHighlightToday:p,showDaysOutsideCurrentMonth:h,role:"gridcell",isAnimating:f,"data-timestamp":y.toJsDate(n).valueOf()},l),ownerState:(0,oC.A)({},t,{day:n,selected:w})}),M=(0,vE.A)(S,bt),T=d.useMemo(()=>u||i(n),[u,i,n]),k=d.useMemo(()=>y.getMonth(n)!==a,[y,n,a]),I=d.useMemo(()=>{let e=y.startOfMonth(y.setMonth(n,a));return h?y.isSameDay(n,y.startOfWeek(e)):y.isSameDay(n,e)},[a,n,h,y]),E=d.useMemo(()=>{let e=y.endOfMonth(y.setMonth(n,a));return h?y.isSameDay(n,y.endOfWeek(e)):y.isSameDay(n,e)},[a,n,h,y]);return(0,c.jsx)(C,(0,oC.A)({},M,{day:n,disabled:T,autoFocus:s&&b,today:A,outsideCurrentMonth:k,isFirstVisibleCell:I,isLastVisibleCell:E,selected:w,tabIndex:b?0:-1,"aria-selected":w,"aria-current":A?"date":void 0}))}function bp(e){let t,n=vO({props:e,name:"MuiDayCalendar"}),r=vz().utils,{onFocusedDayChange:o,className:i,currentMonth:a,selectedDays:s,focusedDay:l,loading:u,onSelectedDaysChange:p,onMonthSwitchingAnimationEnd:m,readOnly:g,reduceAnimations:v,renderLoading:y=()=>(0,c.jsx)("span",{children:"..."}),slideDirection:x,TransitionProps:b,disablePast:w,disableFuture:A,minDate:C,maxDate:S,shouldDisableDate:M,shouldDisableMonth:T,shouldDisableYear:k,dayOfWeekFormatter:I=e=>r.format(e,"weekdayShort").charAt(0).toUpperCase(),hasFocus:E,onFocusedViewChange:R,gridLabelId:D,displayWeekNumber:O,fixedWeekNumber:j,autoFocus:P,timezone:N}=n,F=vB(N),_=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},x8,t)})(n),L=(0,p2.I)(),z=x_({shouldDisableDate:M,shouldDisableMonth:T,shouldDisableYear:k,minDate:C,maxDate:S,disablePast:w,disableFuture:A,timezone:N}),B=vz().localeText,[V,$]=(0,yL.A)({name:"DayCalendar",state:"hasFocus",controlled:E,default:P??!1}),[H,W]=d.useState(()=>l||F),U=(0,y_.A)(e=>{g||p(e)}),G=e=>{z(e)||(o(e),W(e),R?.(!0),$(!0))},q=(0,y_.A)((e,t)=>{switch(e.key){case"ArrowUp":G(r.addDays(t,-7)),e.preventDefault();break;case"ArrowDown":G(r.addDays(t,7)),e.preventDefault();break;case"ArrowLeft":{let n=r.addDays(t,L?1:-1),o=r.addMonths(t,L?1:-1);G(v$({utils:r,date:n,minDate:L?n:r.startOfMonth(o),maxDate:L?r.endOfMonth(o):n,isDateDisabled:z,timezone:N})||n),e.preventDefault();break}case"ArrowRight":{let n=r.addDays(t,L?-1:1),o=r.addMonths(t,L?-1:1);G(v$({utils:r,date:n,minDate:L?r.startOfMonth(o):n,maxDate:L?n:r.endOfMonth(o),isDateDisabled:z,timezone:N})||n),e.preventDefault();break}case"Home":G(r.startOfWeek(t)),e.preventDefault();break;case"End":G(r.endOfWeek(t)),e.preventDefault();break;case"PageUp":G(r.addMonths(t,1)),e.preventDefault();break;case"PageDown":G(r.addMonths(t,-1)),e.preventDefault()}}),Y=(0,y_.A)((e,t)=>G(t)),Z=(0,y_.A)((e,t)=>{V&&r.isSameDay(H,t)&&R?.(!1)}),X=r.getMonth(a),K=r.getYear(a),Q=d.useMemo(()=>s.filter(e=>!!e).map(e=>r.startOfDay(e)),[r,s]),J=`${K}-${X}`,ee=d.useMemo(()=>d.createRef(),[J]),et=d.useMemo(()=>{let e=r.startOfMonth(a),t=r.endOfMonth(a);return z(H)||r.isAfterDay(H,t)||r.isBeforeDay(H,e)?v$({utils:r,date:H,minDate:e,maxDate:t,disablePast:w,disableFuture:A,isDateDisabled:z,timezone:N}):H},[a,A,w,H,z,r,N]),en=d.useMemo(()=>{let e=r.getWeekArray(a),t=r.addMonths(a,1);for(;j&&e.length<j;){let n=r.getWeekArray(t),o=r.isSameDay(e[e.length-1][0],n[0][0]);n.slice(+!!o).forEach(t=>{e.length<j&&e.push(t)}),t=r.addMonths(t,1)}return e},[a,j,r]);return(0,c.jsxs)(bn,{role:"grid","aria-labelledby":D,className:_.root,children:[(0,c.jsxs)(br,{role:"row",className:_.header,children:[O&&(0,c.jsx)(bi,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:_.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),(t=r.startOfWeek(F),[0,1,2,3,4,5,6].map(e=>r.addDays(t,e))).map((e,t)=>(0,c.jsx)(bo,{variant:"caption",role:"columnheader","aria-label":r.format(e,"weekday"),className:_.weekDayLabel,children:I(e)},t.toString()))]}),u?(0,c.jsx)(bs,{className:_.loadingContainer,children:y()}):(0,c.jsx)(bl,(0,oC.A)({transKey:J,onExited:m,reduceAnimations:v,slideDirection:x,className:(0,f.A)(i,_.slideTransition)},b,{nodeRef:ee,children:(0,c.jsx)(bu,{ref:ee,role:"rowgroup",className:_.monthContainer,children:en.map((e,t)=>(0,c.jsxs)(bc,{role:"row",className:_.weekContainer,"aria-rowindex":t+1,children:[O&&(0,c.jsx)(ba,{className:_.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(r.getWeekNumber(e[0])),children:B.calendarWeekNumberText(r.getWeekNumber(e[0]))}),e.map((e,t)=>(0,c.jsx)(bd,{parentProps:n,day:e,selectedDays:Q,focusableDay:et,onKeyDown:q,onFocus:Y,onBlur:Z,onDaySelect:U,isDateDisabled:z,currentMonthNumber:X,isViewFocused:V,"aria-colindex":t+1},e.toString()))]},`week-${e[0]}`))})}))]})}function bf(e){return(0,C.Ay)("MuiPickersMonth",e)}let bh=(0,A.A)("MuiPickersMonth",["root","monthButton","disabled","selected"]),bm=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],bg=(0,y.A)("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),bv=(0,y.A)("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${bh.disabled}`]:t.disabled},{[`&.${bh.selected}`]:t.selected}]})(({theme:e})=>(0,oC.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"8px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bh.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bh.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),by=d.memo(function(e){let t=vO({props:e,name:"MuiPickersMonth"}),{autoFocus:n,className:r,children:o,disabled:i,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":v,"aria-label":y,slots:x,slotProps:b}=t,w=(0,vE.A)(t,bm),A=d.useRef(null),C=(e=>{let{disabled:t,selected:n,classes:r}=e;return(0,h.A)({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},bf,r)})(t);(0,mH.A)(()=>{n&&A.current?.focus()},[n]);let S=x?.monthButton??bv,M=(0,yI.A)({elementType:S,externalSlotProps:b?.monthButton,additionalProps:{children:o,disabled:i,tabIndex:l,ref:A,type:"button",role:"radio","aria-current":v,"aria-checked":a,"aria-label":y,onClick:e=>u(e,s),onKeyDown:e=>p(e,s),onFocus:e=>m(e,s),onBlur:e=>g(e,s)},ownerState:t,className:C.monthButton});return(0,c.jsx)(bg,(0,oC.A)({className:(0,f.A)(C.root,r),ownerState:t},w,{children:(0,c.jsx)(S,(0,oC.A)({},M))}))});function bx(e){return(0,C.Ay)("MuiMonthCalendar",e)}(0,A.A)("MuiMonthCalendar",["root"]);let bb=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],bw=(0,y.A)("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:320,boxSizing:"border-box"}),bA=d.forwardRef(function(e,t){let n,r,o,i=(n=vz().utils,r=vz().defaultDates,o=vO({props:e,name:"MuiMonthCalendar"}),(0,oC.A)({disableFuture:!1,disablePast:!1},o,{minDate:vH(n,o.minDate,r.minDate),maxDate:vH(n,o.maxDate,r.maxDate)})),{className:a,value:s,defaultValue:l,referenceDate:u,disabled:p,disableFuture:m,disablePast:g,maxDate:v,minDate:y,onChange:x,shouldDisableMonth:b,readOnly:w,autoFocus:A=!1,onMonthFocus:C,hasFocus:S,onFocusedViewChange:M,monthsPerRow:T=3,timezone:k,gridLabelId:I,slots:E,slotProps:R}=i,D=(0,vE.A)(i,bb),{value:O,handleValueChange:j,timezone:P}=xl({name:"MonthCalendar",timezone:k,value:s,defaultValue:l,referenceDate:u,onChange:x,valueManager:xI}),N=vB(P),F=(0,p2.I)(),_=vz().utils,L=d.useMemo(()=>xI.getInitialReferenceValue({value:O,utils:_,props:i,timezone:P,referenceDate:u,granularity:xu.month}),[]),z=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},bx,t)})(i),B=d.useMemo(()=>_.getMonth(N),[_,N]),V=d.useMemo(()=>null!=O?_.getMonth(O):null,[O,_]),[$,H]=d.useState(()=>V||_.getMonth(L)),[W,U]=(0,yL.A)({name:"MonthCalendar",state:"hasFocus",controlled:S,default:A??!1}),G=(0,y_.A)(e=>{U(e),M&&M(e)}),q=d.useCallback(e=>{let t=_.startOfMonth(g&&_.isAfter(N,y)?N:y),n=_.startOfMonth(m&&_.isBefore(N,v)?N:v),r=_.startOfMonth(e);return!!(_.isBefore(r,t)||_.isAfter(r,n))||!!b&&b(r)},[m,g,v,y,N,b,_]),Y=(0,y_.A)((e,t)=>{w||j(_.setMonth(O??L,t))}),Z=(0,y_.A)(e=>{!q(_.setMonth(O??L,e))&&(H(e),G(!0),C&&C(e))});d.useEffect(()=>{H(e=>null!==V&&e!==V?V:e)},[V]);let X=(0,y_.A)((e,t)=>{switch(e.key){case"ArrowUp":Z((12+t-3)%12),e.preventDefault();break;case"ArrowDown":Z((12+t+3)%12),e.preventDefault();break;case"ArrowLeft":Z((12+t+(F?1:-1))%12),e.preventDefault();break;case"ArrowRight":Z((12+t+(F?-1:1))%12),e.preventDefault()}}),K=(0,y_.A)((e,t)=>{Z(t)}),Q=(0,y_.A)((e,t)=>{$===t&&G(!1)});return(0,c.jsx)(bw,(0,oC.A)({ref:t,className:(0,f.A)(z.root,a),ownerState:i,role:"radiogroup","aria-labelledby":I},D,{children:vW(_,O??L).map(e=>{let t=_.getMonth(e),n=_.format(e,"monthShort"),r=_.format(e,"month"),o=p||q(e);return(0,c.jsx)(by,{selected:t===V,value:t,onClick:Y,onKeyDown:X,autoFocus:W&&t===$,disabled:o,tabIndex:t!==$||o?-1:0,onFocus:K,onBlur:Q,"aria-current":B===t?"date":void 0,"aria-label":r,monthsPerRow:T,slots:E,slotProps:R,children:n},n)})}))});function bC(e){return(0,C.Ay)("MuiPickersYear",e)}let bS=(0,A.A)("MuiPickersYear",["root","yearButton","selected","disabled"]),bM=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],bT=(0,y.A)("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),bk=(0,y.A)("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${bS.disabled}`]:t.disabled},{[`&.${bS.selected}`]:t.selected}]})(({theme:e})=>(0,oC.A)({color:"unset",backgroundColor:"transparent",border:0,outline:0},e.typography.subtitle1,{margin:"6px 0",height:36,width:72,borderRadius:18,cursor:"pointer","&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.focusOpacity})`:(0,m.X4)(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:(0,m.X4)(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${bS.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${bS.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),bI=d.memo(function(e){let t=vO({props:e,name:"MuiPickersYear"}),{autoFocus:n,className:r,children:o,disabled:i,selected:a,value:s,tabIndex:l,onClick:u,onKeyDown:p,onFocus:m,onBlur:g,"aria-current":v,slots:y,slotProps:x}=t,b=(0,vE.A)(t,bM),w=d.useRef(null),A=(e=>{let{disabled:t,selected:n,classes:r}=e;return(0,h.A)({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},bC,r)})(t);(0,mH.A)(()=>{n&&w.current?.focus()},[n]);let C=y?.yearButton??bk,S=(0,yI.A)({elementType:C,externalSlotProps:x?.yearButton,additionalProps:{children:o,disabled:i,tabIndex:l,ref:w,type:"button",role:"radio","aria-current":v,"aria-checked":a,onClick:e=>u(e,s),onKeyDown:e=>p(e,s),onFocus:e=>m(e,s),onBlur:e=>g(e,s)},ownerState:t,className:A.yearButton});return(0,c.jsx)(bT,(0,oC.A)({className:(0,f.A)(A.root,r),ownerState:t},b,{children:(0,c.jsx)(C,(0,oC.A)({},S))}))});function bE(e){return(0,C.Ay)("MuiYearCalendar",e)}(0,A.A)("MuiYearCalendar",["root"]);let bR=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],bD=(0,y.A)("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:320,maxHeight:280,boxSizing:"border-box",position:"relative"}),bO=d.forwardRef(function(e,t){let n,r,o,i=(n=vz().utils,r=vz().defaultDates,o=vO({props:e,name:"MuiYearCalendar"}),(0,oC.A)({disablePast:!1,disableFuture:!1},o,{yearsPerRow:o.yearsPerRow??3,minDate:vH(n,o.minDate,r.minDate),maxDate:vH(n,o.maxDate,r.maxDate)})),{autoFocus:a,className:s,value:l,defaultValue:u,referenceDate:p,disabled:m,disableFuture:g,disablePast:v,maxDate:y,minDate:x,onChange:b,readOnly:w,shouldDisableYear:A,onYearFocus:C,hasFocus:S,onFocusedViewChange:M,yearsOrder:T="asc",yearsPerRow:k,timezone:I,gridLabelId:E,slots:R,slotProps:D}=i,O=(0,vE.A)(i,bR),{value:j,handleValueChange:P,timezone:N}=xl({name:"YearCalendar",timezone:I,value:l,defaultValue:u,referenceDate:p,onChange:b,valueManager:xI}),F=vB(N),_=(0,p2.I)(),L=vz().utils,z=d.useMemo(()=>xI.getInitialReferenceValue({value:j,utils:L,props:i,timezone:N,referenceDate:p,granularity:xu.year}),[]),B=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"]},bE,t)})(i),V=d.useMemo(()=>L.getYear(F),[L,F]),$=d.useMemo(()=>null!=j?L.getYear(j):null,[j,L]),[H,W]=d.useState(()=>$||L.getYear(z)),[U,G]=(0,yL.A)({name:"YearCalendar",state:"hasFocus",controlled:S,default:a??!1}),q=(0,y_.A)(e=>{G(e),M&&M(e)}),Y=d.useCallback(e=>!!(v&&L.isBeforeYear(e,F)||g&&L.isAfterYear(e,F)||x&&L.isBeforeYear(e,x)||y&&L.isAfterYear(e,y))||!!A&&A(L.startOfYear(e)),[g,v,y,x,F,A,L]),Z=(0,y_.A)((e,t)=>{w||P(L.setYear(j??z,t))}),X=(0,y_.A)(e=>{Y(L.setYear(j??z,e))||(W(e),q(!0),C?.(e))});d.useEffect(()=>{W(e=>null!==$&&e!==$?$:e)},[$]);let K="desc"!==T?+k:-1*k,Q=_&&"asc"===T||!_&&"desc"===T?-1:1,J=(0,y_.A)((e,t)=>{switch(e.key){case"ArrowUp":X(t-K),e.preventDefault();break;case"ArrowDown":X(t+K),e.preventDefault();break;case"ArrowLeft":X(t-Q),e.preventDefault();break;case"ArrowRight":X(t+Q),e.preventDefault()}}),ee=(0,y_.A)((e,t)=>{X(t)}),et=(0,y_.A)((e,t)=>{H===t&&q(!1)}),en=d.useRef(null),er=(0,xH.A)(t,en);d.useEffect(()=>{if(a||null===en.current)return;let e=en.current.querySelector('[tabindex="0"]');if(!e)return;let t=e.offsetHeight,n=e.offsetTop,r=en.current.clientHeight,o=en.current.scrollTop;t>r||n<o||(en.current.scrollTop=n+t-r/2-t/2)},[a]);let eo=L.getYearRange([x,y]);return"desc"===T&&eo.reverse(),(0,c.jsx)(bD,(0,oC.A)({ref:er,className:(0,f.A)(B.root,s),ownerState:i,role:"radiogroup","aria-labelledby":E},O,{children:eo.map(e=>{let t=L.getYear(e),n=m||Y(e);return(0,c.jsx)(bI,{selected:t===$,value:t,onClick:Z,onKeyDown:J,autoFocus:U&&t===H,disabled:n,tabIndex:t!==H||n?-1:0,onFocus:ee,onBlur:et,"aria-current":V===t?"date":void 0,yearsPerRow:k,slots:R,slotProps:D,children:L.format(e,"year")},L.format(e,"year"))})}))}),bj=e=>(0,C.Ay)("MuiPickersCalendarHeader",e),bP=(0,A.A)("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),bN=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],bF=["ownerState"],b_=(0,y.A)("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),bL=(0,y.A)("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>(0,oC.A)({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),bz=(0,y.A)("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),bB=(0,y.A)(j.A,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${bP.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),bV=(0,y.A)(vQ,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),b$=d.forwardRef(function(e,t){let n=vz().localeText,r=vz().utils,o=vO({props:e,name:"MuiPickersCalendarHeader"}),{slots:i,slotProps:a,currentMonth:s,disabled:l,disableFuture:u,disablePast:p,maxDate:m,minDate:g,onMonthChange:v,onViewChange:y,view:x,reduceAnimations:b,views:w,labelId:A,className:C,timezone:S,format:M=`${r.formats.month} ${r.formats.year}`}=o,T=(0,vE.A)(o,bN),k=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},bj,t)})(o),I=i?.switchViewButton??bB,E=(0,yI.A)({elementType:I,externalSlotProps:a?.switchViewButton,additionalProps:{size:"small","aria-label":n.calendarViewSwitchingButtonAriaLabel(x)},ownerState:o,className:k.switchViewButton}),R=i?.switchViewIcon??bV,D=(0,yI.A)({elementType:R,externalSlotProps:a?.switchViewIcon,ownerState:o,className:k.switchViewIcon}),O=(0,vE.A)(D,bF),j=function(e,{disableFuture:t,maxDate:n,timezone:r}){let o=vz().utils;return d.useMemo(()=>{let i=o.date(void 0,r),a=o.startOfMonth(t&&o.isBefore(i,n)?i:n);return!o.isAfter(a,e)},[t,n,e,o,r])}(s,{disableFuture:u,maxDate:m,timezone:S}),P=function(e,{disablePast:t,minDate:n,timezone:r}){let o=vz().utils;return d.useMemo(()=>{let i=o.date(void 0,r),a=o.startOfMonth(t&&o.isAfter(i,n)?i:n);return!o.isBefore(a,e)},[t,n,e,o,r])}(s,{disablePast:p,minDate:g,timezone:S});if(1===w.length&&"year"===w[0])return null;let N=r.formatByString(s,M);return(0,c.jsxs)(b_,(0,oC.A)({},T,{ownerState:o,className:(0,f.A)(k.root,C),ref:t,children:[(0,c.jsxs)(bL,{role:"presentation",onClick:()=>{if(1!==w.length&&y&&!l)if(2===w.length)y(w.find(e=>e!==x)||w[0]);else{let e=+(0===w.indexOf(x));y(w[e])}},ownerState:o,"aria-live":"polite",className:k.labelContainer,children:[(0,c.jsx)(x$,{reduceAnimations:b,transKey:N,children:(0,c.jsx)(bz,{id:A,ownerState:o,className:k.label,children:N})}),w.length>1&&!l&&(0,c.jsx)(I,(0,oC.A)({},E,{children:(0,c.jsx)(R,(0,oC.A)({},O))}))]}),(0,c.jsx)(xz.A,{in:"day"===x,appear:!b,enter:!b,children:(0,c.jsx)(yF,{slots:i,slotProps:a,onGoToPrevious:()=>v(r.addMonths(s,-1),"right"),isPreviousDisabled:P,previousLabel:n.previousMonth,onGoToNext:()=>v(r.addMonths(s,1),"left"),isNextDisabled:j,nextLabel:n.nextMonth})})]}))}),bH="u">typeof navigator&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),bW=bH&&bH[1]?parseInt(bH[1],10):null,bU=bH&&bH[2]?parseInt(bH[2],10):null,bG=bW&&bW<10||bU&&bU<13||!1,bq=e=>(0,C.Ay)("MuiDateCalendar",e);(0,A.A)("MuiDateCalendar",["root","viewTransitionContainer"]);let bY=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],bZ=(0,y.A)(yB,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:336}),bX=(0,y.A)(x$,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),bK=d.forwardRef(function(e,t){let n,r,o,i,a=vz().utils,s=(0,yk.A)(),l=(n=vz().utils,r=vz().defaultDates,o=mZ("@media (prefers-reduced-motion: reduce)",{defaultMatches:!1})||bG,i=vO({props:e,name:"MuiDateCalendar"}),(0,oC.A)({},i,{loading:i.loading??!1,disablePast:i.disablePast??!1,disableFuture:i.disableFuture??!1,openTo:i.openTo??"day",views:i.views??["year","day"],reduceAnimations:i.reduceAnimations??o,renderLoading:i.renderLoading??(()=>(0,c.jsx)("span",{children:"..."})),minDate:vH(n,i.minDate,r.minDate),maxDate:vH(n,i.maxDate,r.maxDate)})),{autoFocus:u,onViewChange:p,value:m,defaultValue:g,referenceDate:v,disableFuture:y,disablePast:x,onChange:b,onYearChange:w,onMonthChange:A,reduceAnimations:C,shouldDisableDate:S,shouldDisableMonth:M,shouldDisableYear:T,view:k,views:I,openTo:E,className:R,disabled:D,readOnly:O,minDate:j,maxDate:P,disableHighlightToday:N,focusedView:F,onFocusedViewChange:_,showDaysOutsideCurrentMonth:L,fixedWeekNumber:z,dayOfWeekFormatter:B,slots:V,slotProps:$,loading:H,renderLoading:W,displayWeekNumber:U,yearsOrder:G,yearsPerRow:q,monthsPerRow:Y,timezone:Z}=l,X=(0,vE.A)(l,bY),{value:K,handleValueChange:Q,timezone:J}=xl({name:"DateCalendar",timezone:Z,value:m,defaultValue:g,referenceDate:v,onChange:b,valueManager:xI}),{view:ee,setView:et,focusedView:en,setFocusedView:er,goToNextView:eo,setValueAndGoToNextView:ei}=yz({view:k,views:I,openTo:E,onChange:Q,onViewChange:p,autoFocus:u,focusedView:F,onFocusedViewChange:_}),{referenceDate:ea,calendarState:es,changeFocusedDay:el,changeMonth:eu,handleChangeMonth:ec,isDateDisabled:ed,onMonthSwitchingAnimationEnd:ep}=(e=>{let t,{value:n,referenceDate:r,disableFuture:o,disablePast:i,disableSwitchToMonthOnDayFocus:a=!1,maxDate:s,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:p,timezone:f}=e,h=vz().utils,m=d.useRef((t=!!c,(e,n)=>{switch(n.type){case"changeMonth":return(0,oC.A)({},e,{slideDirection:n.direction,currentMonth:n.newMonth,isMonthSwitchingAnimating:!t});case"changeMonthTimezone":{let t=n.newTimezone;if(h.getTimezone(e.currentMonth)===t)return e;let r=h.setTimezone(e.currentMonth,t);return h.getMonth(r)!==h.getMonth(e.currentMonth)&&(r=h.setMonth(r,h.getMonth(e.currentMonth))),(0,oC.A)({},e,{currentMonth:r})}case"finishMonthSwitchingAnimation":return(0,oC.A)({},e,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(null!=e.focusedDay&&null!=n.focusedDay&&h.isSameDay(n.focusedDay,e.focusedDay))return e;let r=null!=n.focusedDay&&!a&&!h.isSameMonth(e.currentMonth,n.focusedDay);return(0,oC.A)({},e,{focusedDay:n.focusedDay,isMonthSwitchingAnimating:r&&!t&&!n.withoutMonthSwitchingAnimation,currentMonth:r?h.startOfMonth(n.focusedDay):e.currentMonth,slideDirection:null!=n.focusedDay&&h.isAfterDay(n.focusedDay,e.currentMonth)?"left":"right"})}default:throw Error("missing support")}})).current,g=d.useMemo(()=>xI.getInitialReferenceValue({value:n,utils:h,timezone:f,props:e,referenceDate:r,granularity:xu.day}),[r,f]),[v,y]=d.useReducer(m,{isMonthSwitchingAnimating:!1,focusedDay:g,currentMonth:h.startOfMonth(g),slideDirection:"left"});d.useEffect(()=>{y({type:"changeMonthTimezone",newTimezone:h.getTimezone(g)})},[g,h]);let x=d.useCallback(e=>{y((0,oC.A)({type:"changeMonth"},e)),u&&u(e.newMonth)},[u]),b=d.useCallback(e=>{h.isSameMonth(e,v.currentMonth)||x({newMonth:h.startOfMonth(e),direction:h.isAfterDay(e,v.currentMonth)?"left":"right"})},[v.currentMonth,x,h]),w=x_({shouldDisableDate:p,minDate:l,maxDate:s,disableFuture:o,disablePast:i,timezone:f}),A=d.useCallback(()=>{y({type:"finishMonthSwitchingAnimation"})},[]);return{referenceDate:g,calendarState:v,changeMonth:b,changeFocusedDay:(0,y_.A)((e,t)=>{w(e)||y({type:"changeFocusedDay",focusedDay:e,withoutMonthSwitchingAnimation:t})}),isDateDisabled:w,onMonthSwitchingAnimationEnd:A,handleChangeMonth:x}})({value:K,referenceDate:v,reduceAnimations:C,onMonthChange:A,minDate:j,maxDate:P,shouldDisableDate:S,disablePast:x,disableFuture:y,timezone:J}),ef=D&&K||j,eh=D&&K||P,em=`${s}-grid-label`,eg=null!==en,ev=V?.calendarHeader??b$,ey=(0,yI.A)({elementType:ev,externalSlotProps:$?.calendarHeader,additionalProps:{views:I,view:ee,currentMonth:es.currentMonth,onViewChange:et,onMonthChange:(e,t)=>ec({newMonth:e,direction:t}),minDate:ef,maxDate:eh,disabled:D,disablePast:x,disableFuture:y,reduceAnimations:C,timezone:J,labelId:em},ownerState:l}),ex=(0,y_.A)(e=>{let t=a.startOfMonth(e),n=a.endOfMonth(e),r=ed(e)?v$({utils:a,date:e,minDate:a.isBefore(j,t)?t:j,maxDate:a.isAfter(P,n)?n:P,disablePast:x,disableFuture:y,isDateDisabled:ed,timezone:J}):e;r?(ei(r,"finish"),A?.(t)):(eo(),eu(t)),el(r,!0)}),eb=(0,y_.A)(e=>{let t=a.startOfYear(e),n=a.endOfYear(e),r=ed(e)?v$({utils:a,date:e,minDate:a.isBefore(j,t)?t:j,maxDate:a.isAfter(P,n)?n:P,disablePast:x,disableFuture:y,isDateDisabled:ed,timezone:J}):e;r?(ei(r,"finish"),w?.(r)):(eo(),eu(t)),el(r,!0)}),ew=(0,y_.A)(e=>e?Q(vV(a,e,K??ea),"finish",ee):Q(e,"finish",ee));d.useEffect(()=>{null!=K&&a.isValid(K)&&eu(K)},[K]);let eA=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},bq,t)})(l),eC={disablePast:x,disableFuture:y,maxDate:P,minDate:j},eS={disableHighlightToday:N,readOnly:O,disabled:D,timezone:J,gridLabelId:em,slots:V,slotProps:$},eM=d.useRef(ee);d.useEffect(()=>{eM.current!==ee&&(en===eM.current&&er(ee,!0),eM.current=ee)},[en,er,ee]);let eT=d.useMemo(()=>[K],[K]);return(0,c.jsxs)(bZ,(0,oC.A)({ref:t,className:(0,f.A)(eA.root,R),ownerState:l},X,{children:[(0,c.jsx)(ev,(0,oC.A)({},ey,{slots:V,slotProps:$})),(0,c.jsx)(bX,{reduceAnimations:C,className:eA.viewTransitionContainer,transKey:ee,ownerState:l,children:(0,c.jsxs)("div",{children:["year"===ee&&(0,c.jsx)(bO,(0,oC.A)({},eC,eS,{value:K,onChange:eb,shouldDisableYear:T,hasFocus:eg,onFocusedViewChange:e=>er("year",e),yearsOrder:G,yearsPerRow:q,referenceDate:ea})),"month"===ee&&(0,c.jsx)(bA,(0,oC.A)({},eC,eS,{hasFocus:eg,className:R,value:K,onChange:ex,shouldDisableMonth:M,onFocusedViewChange:e=>er("month",e),monthsPerRow:Y,referenceDate:ea})),"day"===ee&&(0,c.jsx)(bp,(0,oC.A)({},es,eC,eS,{onMonthSwitchingAnimationEnd:ep,onFocusedDayChange:el,reduceAnimations:C,selectedDays:eT,onSelectedDaysChange:ew,shouldDisableDate:S,shouldDisableMonth:M,shouldDisableYear:T,hasFocus:eg,onFocusedViewChange:e=>er("day",e),showDaysOutsideCurrentMonth:L,fixedWeekNumber:z,dayOfWeekFormatter:B,displayWeekNumber:U,loading:H,renderLoading:W}))]})})]}))}),bQ=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:d,disableFuture:p,disablePast:f,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:x,onMonthChange:b,monthsPerRow:w,onYearChange:A,yearsOrder:C,yearsPerRow:S,slots:M,slotProps:T,loading:k,renderLoading:I,disableHighlightToday:E,readOnly:R,disabled:D,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:j,sx:P,autoFocus:N,fixedWeekNumber:F,displayWeekNumber:_,timezone:L})=>(0,c.jsx)(bK,{view:e,onViewChange:t,views:n.filter(vY),focusedView:r&&vY(r)?r:null,onFocusedViewChange:o,value:i,defaultValue:a,referenceDate:s,onChange:l,className:u,classes:d,disableFuture:p,disablePast:f,minDate:h,maxDate:m,shouldDisableDate:g,shouldDisableMonth:v,shouldDisableYear:y,reduceAnimations:x,onMonthChange:b,monthsPerRow:w,onYearChange:A,yearsOrder:C,yearsPerRow:S,slots:M,slotProps:T,loading:k,renderLoading:I,disableHighlightToday:E,readOnly:R,disabled:D,showDaysOutsideCurrentMonth:O,dayOfWeekFormatter:j,sx:P,autoFocus:N,fixedWeekNumber:F,displayWeekNumber:_,timezone:L});function bJ(e){let{props:t,validator:n,value:r,timezone:o,onError:i}=e,a=vz(),s=d.useRef(n.valueManager.defaultErrorState),l=n({adapter:a,value:r,timezone:o,props:t}),u=n.valueManager.hasError(l);return d.useEffect(()=>{i&&!n.valueManager.isSameError(l,s.current)&&i(l,r),s.current=l},[n,i,l,r]),{validationError:l,hasValidationError:u,getValidationErrorForNewValue:(0,y_.A)(e=>n({adapter:a,value:e,timezone:o,props:t}))}}let b0=["className","sx"],b1=(e=document)=>{let t=e.activeElement;return t?t.shadowRoot?b1(t.shadowRoot):t:null};function b2(){return"u"<typeof window?"portrait":window.screen&&window.screen.orientation&&window.screen.orientation.angle?90===Math.abs(window.screen.orientation.angle)?"landscape":"portrait":window.orientation&&90===Math.abs(Number(window.orientation))?"landscape":"portrait"}function b5(e){return(0,C.Ay)("MuiPickersLayout",e)}let b4=(0,A.A)("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),b3=["onAccept","onClear","onCancel","onSetToday","actions"];function b6(e){let{onAccept:t,onClear:n,onCancel:r,onSetToday:o,actions:i}=e,a=(0,vE.A)(e,b3),s=vz().localeText;if(null==i||0===i.length)return null;let l=i?.map(e=>{switch(e){case"clear":return(0,c.jsx)(R.A,{onClick:n,children:s.clearButtonLabel},e);case"cancel":return(0,c.jsx)(R.A,{onClick:r,children:s.cancelButtonLabel},e);case"accept":return(0,c.jsx)(R.A,{onClick:t,children:s.okButtonLabel},e);case"today":return(0,c.jsx)(R.A,{onClick:o,children:s.todayButtonLabel},e);default:return null}});return(0,c.jsx)(hT.A,(0,oC.A)({},a,{children:l}))}var b9=n(76477),b7=n(79223),b8=n(6835);function we(e){return(0,C.Ay)("MuiListItem",e)}function wt(e){return(0,C.Ay)("MuiListItemSecondaryAction",e)}(0,A.A)("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]),(0,A.A)("MuiListItemSecondaryAction",["root","disableGutters"]);let wn=(0,y.A)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),wr=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiListItemSecondaryAction"}),{className:r,...o}=n,i=d.useContext(lI.A),a={...n,disableGutters:i.disableGutters},s=(e=>{let{disableGutters:t,classes:n}=e;return(0,h.A)({root:["root",t&&"disableGutters"]},wt,n)})(a);return(0,c.jsx)(wn,{className:(0,f.A)(s.root,r),ownerState:a,ref:t,...o})});wr.muiName="ListItemSecondaryAction";let wo=(0,y.A)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,"flex-start"===n.alignItems&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding,n.hasSecondaryAction&&t.secondaryAction]}})((0,x.A)(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${lR.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:e})=>e.button,style:{transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:({ownerState:e})=>e.hasSecondaryAction,style:{paddingRight:48}}]}))),wi=(0,y.A)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),wa=d.forwardRef(function(e,t){let n=(0,w.b)({props:e,name:"MuiListItem"}),{alignItems:r="center",children:o,className:i,component:a,components:s={},componentsProps:l={},ContainerComponent:u="li",ContainerProps:{className:p,...m}={},dense:g=!1,disableGutters:v=!1,disablePadding:y=!1,divider:x=!1,secondaryAction:b,slotProps:A={},slots:C={},...S}=n,M=d.useContext(lI.A),T=d.useMemo(()=>({dense:g||M.dense||!1,alignItems:r,disableGutters:v}),[r,M.dense,g,v]),k=d.useRef(null),I=d.Children.toArray(o),E=I.length&&(0,b8.A)(I[I.length-1],["ListItemSecondaryAction"]),R={...n,alignItems:r,dense:T.dense,disableGutters:v,disablePadding:y,divider:x,hasSecondaryAction:E},D=(e=>{let{alignItems:t,classes:n,dense:r,disableGutters:o,disablePadding:i,divider:a,hasSecondaryAction:s}=e;return(0,h.A)({root:["root",r&&"dense",!o&&"gutters",!i&&"padding",a&&"divider","flex-start"===t&&"alignItemsFlexStart",s&&"secondaryAction"],container:["container"]},we,n)})(R),O=(0,lk.A)(k,t),j=C.root||s.Root||wo,P=A.root||l.root||{},N={className:(0,f.A)(D.root,P.className,i),...S},F=a||"li";return E?(F=N.component||a?F:"div","li"===u&&("li"===F?F="div":"li"===N.component&&(N.component="div")),(0,c.jsx)(lI.A.Provider,{value:T,children:(0,c.jsxs)(wi,{as:u,className:(0,f.A)(D.container,p),ref:O,ownerState:R,...m,children:[(0,c.jsx)(j,{...P,...!(0,b7.A)(j)&&{as:F,ownerState:{...R,...P.ownerState}},...N,children:I}),I.pop()]})})):(0,c.jsx)(lI.A.Provider,{value:T,children:(0,c.jsxs)(j,{...P,as:F,ref:O,...!(0,b7.A)(j)&&{ownerState:{...R,...P.ownerState}},...N,children:[I,b&&(0,c.jsx)(wr,{children:b})]})})});var ws=n(47601);let wl=["items","changeImportance","isLandscape","onChange","isValid"],wu=["getValue"];function wc(e){let{items:t,changeImportance:n="accept",onChange:r,isValid:o}=e,i=(0,vE.A)(e,wl);if(null==t||0===t.length)return null;let a=t.map(e=>{let{getValue:t}=e,i=(0,vE.A)(e,wu),a=t({isValid:o});return(0,oC.A)({},i,{label:i.label,onClick:()=>{r(a,n,i)},disabled:!o(a)})});return(0,c.jsx)(b9.A,(0,oC.A)({dense:!0,sx:[{maxHeight:336,maxWidth:200,overflow:"auto"},...Array.isArray(i.sx)?i.sx:[i.sx]]},i,{children:a.map(e=>(0,c.jsx)(wa,{children:(0,c.jsx)(ws.A,(0,oC.A)({},e))},e.id??e.label))}))}let wd=(0,y.A)("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${b4.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${b4.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${b4.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${b4.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${b4.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${b4.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${b4.shortcuts}`]:{gridColumn:3}}}]}),wp=(0,y.A)("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),wf=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersLayout"}),{toolbar:r,content:o,tabs:i,actionBar:a,shortcuts:s}=(e=>{let{wrapperVariant:t,onAccept:n,onClear:r,onCancel:o,onSetToday:i,view:a,views:s,onViewChange:l,value:u,onChange:d,onSelectShortcut:p,isValid:f,isLandscape:m,disabled:g,readOnly:v,children:y,slots:x,slotProps:b}=e,w=(e=>{let{classes:t,isLandscape:n}=e;return(0,h.A)({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},b5,t)})(e),A=x?.actionBar??b6,C=(0,yI.A)({elementType:A,externalSlotProps:b?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:o,onSetToday:i,actions:"desktop"===t?[]:["cancel","accept"]},className:w.actionBar,ownerState:(0,oC.A)({},e,{wrapperVariant:t})}),S=(0,c.jsx)(A,(0,oC.A)({},C)),M=x?.toolbar,T=(0,yI.A)({elementType:M,externalSlotProps:b?.toolbar,additionalProps:{isLandscape:m,onChange:d,value:u,view:a,onViewChange:l,views:s,disabled:g,readOnly:v},className:w.toolbar,ownerState:(0,oC.A)({},e,{wrapperVariant:t})}),k=null!==T.view&&M?(0,c.jsx)(M,(0,oC.A)({},T)):null,I=x?.tabs,E=a&&I?(0,c.jsx)(I,(0,oC.A)({view:a,onViewChange:l,className:w.tabs},b?.tabs)):null,R=x?.shortcuts??wc,D=(0,yI.A)({elementType:R,externalSlotProps:b?.shortcuts,additionalProps:{isValid:f,isLandscape:m,onChange:p},className:w.shortcuts,ownerState:{isValid:f,isLandscape:m,onChange:p,wrapperVariant:t}});return{toolbar:k,content:y,tabs:E,actionBar:S,shortcuts:a&&R?(0,c.jsx)(R,(0,oC.A)({},D)):null}})(n),{sx:l,className:u,isLandscape:p,wrapperVariant:m}=n,g=(e=>{let{isLandscape:t,classes:n}=e;return(0,h.A)({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},b5,n)})(n);return(0,c.jsxs)(wd,{ref:t,sx:l,className:(0,f.A)(g.root,u),ownerState:n,children:[p?s:r,p?r:s,(0,c.jsx)(wp,{className:g.contentWrapper,children:"desktop"===m?(0,c.jsxs)(d.Fragment,{children:[o,i]}):(0,c.jsxs)(d.Fragment,{children:[i,o]})}),a]})}),wh=["props","ref"],wm=(0,y.A)(wf)(({theme:e})=>({overflow:"hidden",minWidth:320,backgroundColor:(e.vars||e).palette.background.paper})),wg=({adapter:e,value:t,timezone:n,props:r})=>{if(null===t)return null;let{minTime:o,maxTime:i,minutesStep:a,shouldDisableTime:s,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c}=r,d=e.utils.date(void 0,n),p=yv(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(o&&p(o,t)):return"minTime";case!!(i&&p(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,d)):return"disableFuture";case!!(u&&e.utils.isBefore(t,d)):return"disablePast";case!!(s&&s(t,"hours")):return"shouldDisableTime-hours";case!!(s&&s(t,"minutes")):return"shouldDisableTime-minutes";case!!(s&&s(t,"seconds")):return"shouldDisableTime-seconds";case!!(a&&e.utils.getMinutes(t)%a!=0):return"minutesStep";default:return null}};wg.valueManager=xI;let wv=({adapter:e,value:t,timezone:n,props:r})=>{let o=xF({adapter:e,value:t,timezone:n,props:r});return null!==o?o:wg({adapter:e,value:t,timezone:n,props:r})};wv.valueManager=xI;let wy=d.forwardRef(function(e,t){let n,r,o,i,a,s=(n=vz().utils,r=vz().defaultDates,i=(o=vO({props:e,name:"MuiStaticDateTimePicker"})).ampm??n.is12HourCycleInCurrentLocale(),a=d.useMemo(()=>o.localeText?.toolbarTitle==null?o.localeText:(0,oC.A)({},o.localeText,{dateTimePickerToolbarTitle:o.localeText.toolbarTitle}),[o.localeText]),(0,oC.A)({},o,(({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{let o,i=n??r;if(null!=e)o=e;else if(i.includes(t))o=t;else if(i.length>0)o=i[0];else throw Error("MUI X: The `views` prop must contain at least one view.");return{views:i,openTo:o}})({views:o.views,openTo:o.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:i,localeText:a,orientation:o.orientation??"portrait",disableIgnoringDatePartForTimeValidation:o.disableIgnoringDatePartForTimeValidation??!!(o.minDateTime||o.maxDateTime||o.disablePast||o.disableFuture),disableFuture:o.disableFuture??!1,disablePast:o.disablePast??!1,minDate:vH(n,o.minDateTime??o.minDate,r.minDate),maxDate:vH(n,o.maxDateTime??o.maxDate,r.maxDate),minTime:o.minDateTime??o.minTime,maxTime:o.maxDateTime??o.maxTime,slots:(0,oC.A)({toolbar:yT,tabs:v6},o.slots),slotProps:(0,oC.A)({},o.slotProps,{toolbar:(0,oC.A)({ampm:i},o.slotProps?.toolbar)})})),l=s.displayStaticWrapperAs??"mobile",u=s.ampmInClock??"desktop"===l,p=(0,oC.A)({day:bQ,month:bQ,year:bQ,hours:xN,minutes:xN,seconds:xN},s.viewRenderers),{renderPicker:h}=(e=>{let{props:t,ref:n}=e,r=(0,vE.A)(e,wh),{localeText:o,slots:i,slotProps:a,className:s,sx:l,displayStaticWrapperAs:u,autoFocus:p}=t,{layoutProps:h,renderCurrentView:m}=(({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:o,validator:i,autoFocusView:a,rendererInterceptor:s,fieldRef:l})=>{let u=(({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o})=>{let{onAccept:i,onChange:a,value:s,defaultValue:l,closeOnSelect:u="desktop"===r,timezone:c,referenceDate:p}=e,{current:f}=d.useRef(l),{current:h}=d.useRef(void 0!==s),[m,g]=d.useState(c),v=vz().utils,y=vz(),{isOpen:x,setIsOpen:b}=(({open:e,onOpen:t,onClose:n})=>{let r=d.useRef("boolean"==typeof e).current,[o,i]=d.useState(!1);return d.useEffect(()=>{if(r){if("boolean"!=typeof e)throw Error("You must not mix controlling and uncontrolled mode for `open` prop");i(e)}},[r,e]),{isOpen:o,setIsOpen:d.useCallback(e=>{r||i(e),e&&t&&t(),!e&&n&&n()},[r,t,n])}})(e),{timezone:w,value:A,handleValueChange:C}=xs({timezone:c,value:s,defaultValue:f,referenceDate:p,onChange:a,valueManager:t}),[S,M]=d.useState(()=>{let e;return{draft:e=void 0!==A?A:void 0!==f?f:t.emptyValue,lastPublishedValue:e,lastCommittedValue:e,lastControlledValue:s,hasBeenModifiedSinceMount:!1}}),T=t.getTimezone(v,S.draft);m!==c&&(g(c),c&&T&&c!==T&&M(e=>(0,oC.A)({},e,{draft:t.setTimezone(v,c,e.draft)})));let{getValidationErrorForNewValue:k}=bJ({props:e,validator:o,timezone:w,value:S.draft,onError:e.onError}),I=(0,y_.A)(e=>{let n={action:e,dateState:S,hasChanged:n=>!t.areValuesEqual(v,e.value,n),isControlled:h,closeOnSelect:u},r=(e=>{let{action:t,hasChanged:n,dateState:r,isControlled:o}=e,i=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromField"===t.name||("setValueFromAction"===t.name?!!(i&&["accept","today","clear"].includes(t.pickerAction))||n(r.lastPublishedValue):("setValueFromView"===t.name&&"shallow"!==t.selectionState||"setValueFromShortcut"===t.name)&&(!!i||n(r.lastPublishedValue)))})(n),o=(e=>{let{action:t,hasChanged:n,dateState:r,isControlled:o,closeOnSelect:i}=e,a=!o&&!r.hasBeenModifiedSinceMount;return"setValueFromAction"===t.name?!!(a&&["accept","today","clear"].includes(t.pickerAction))||n(r.lastCommittedValue):"setValueFromView"===t.name&&"finish"===t.selectionState&&i?!!a||n(r.lastCommittedValue):"setValueFromShortcut"===t.name&&"accept"===t.changeImportance&&n(r.lastCommittedValue)})(n),a=(e=>{let{action:t,closeOnSelect:n}=e;return"setValueFromAction"===t.name||("setValueFromView"===t.name?"finish"===t.selectionState&&n:"setValueFromShortcut"===t.name&&"accept"===t.changeImportance)})(n);M(t=>(0,oC.A)({},t,{draft:e.value,lastPublishedValue:r?e.value:t.lastPublishedValue,lastCommittedValue:o?e.value:t.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let s=null,l=()=>(s||(s={validationError:"setValueFromField"===e.name?e.context.validationError:k(e.value)},"setValueFromShortcut"===e.name&&(s.shortcut=e.shortcut)),s);r&&C(e.value,l()),o&&i&&i(e.value,l()),a&&b(!1)});if(S.lastControlledValue!==s){let e=t.areValuesEqual(v,S.draft,A);M(t=>(0,oC.A)({},t,{lastControlledValue:s},e?{}:{lastCommittedValue:A,lastPublishedValue:A,draft:A,hasBeenModifiedSinceMount:!0}))}let E=(0,y_.A)(()=>{I({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),R=(0,y_.A)(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),D=(0,y_.A)(()=>{I({value:S.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),O=(0,y_.A)(()=>{I({value:S.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),j=(0,y_.A)(()=>{I({value:t.getTodayValue(v,w,n),name:"setValueFromAction",pickerAction:"today"})}),P=(0,y_.A)(e=>{e.preventDefault(),b(!0)}),N=(0,y_.A)(e=>{e?.preventDefault(),b(!1)}),F=(0,y_.A)((e,t="partial")=>I({name:"setValueFromView",value:e,selectionState:t})),_=(0,y_.A)((e,t,n)=>I({name:"setValueFromShortcut",value:e,changeImportance:t,shortcut:n})),L=(0,y_.A)((e,t)=>I({name:"setValueFromField",value:e,context:t})),z={onClear:E,onAccept:R,onDismiss:D,onCancel:O,onSetToday:j,onOpen:P,onClose:N},B={value:S.draft,onChange:L},V=d.useMemo(()=>t.cleanValue(v,S.draft),[v,t,S.draft]),$=(0,oC.A)({},z,{value:V,onChange:F,onSelectShortcut:_,isValid:n=>{let r=o({adapter:y,value:n,timezone:w,props:e});return!t.hasError(r)}}),H=d.useMemo(()=>({onOpen:P,onClose:N,open:x}),[x,N,P]);return{open:x,fieldProps:B,viewProps:{value:V,onChange:F,onClose:N,open:x},layoutProps:$,actions:z,contextValue:H}})({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i}),c=(({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:o,fieldRef:i})=>{let{onChange:a,open:s,onClose:l}=t,{view:u,views:c,openTo:p,onViewChange:f,viewRenderers:h,timezone:m}=e,g=(0,vE.A)(e,b0),{view:v,setView:y,defaultView:x,focusedView:b,setFocusedView:w,setValueAndGoToNextView:A}=yz({view:u,views:c,openTo:p,onChange:a,onViewChange:f,autoFocus:r}),{hasUIView:C,viewModeLookup:S}=d.useMemo(()=>c.reduce((e,t)=>{let n;return n=null!=h[t]?"UI":"field",e.viewModeLookup[t]=n,"UI"===n&&(e.hasUIView=!0),e},{hasUIView:!1,viewModeLookup:{}}),[h,c]),M=d.useMemo(()=>c.reduce((e,t)=>null!=h[t]&&yh(t)?e+1:e,0),[h,c]),T=S[v],k=(0,y_.A)(()=>"UI"===T),[I,E]=d.useState("UI"===T?v:null);return I!==v&&"UI"===S[v]&&E(v),(0,mH.A)(()=>{"field"===T&&s&&(l(),setTimeout(()=>{i?.current?.setSelectedSections(v),i?.current?.focusField(v)}))},[v]),(0,mH.A)(()=>{if(!s)return;let e=v;"field"===T&&null!=I&&(e=I),e!==x&&"UI"===S[e]&&"UI"===S[x]&&(e=x),e!==v&&y(e),w(e,!0)},[s]),{hasUIView:C,shouldRestoreFocus:k,layoutProps:{views:c,view:I,onViewChange:y},renderCurrentView:()=>{if(null==I)return null;let e=h[I];if(null==e)return null;let r=(0,oC.A)({},g,n,t,{views:c,timezone:m,onChange:A,view:I,onViewChange:y,focusedView:b,onFocusedViewChange:w,showViewSwitcher:M>1,timeViewsCount:M});return o?o(h,I,r):e(r)}}})({props:e,additionalViewProps:o,autoFocusView:a,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:s}),p=(({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{let{orientation:o}=e,i=((e,t)=>{var n;let[r,o]=d.useState(b2);return(0,mH.A)(()=>{let e=()=>{o(b2())};return window.addEventListener("orientationchange",e),()=>{window.removeEventListener("orientationchange",e)}},[]),(Array.isArray(n=["hours","minutes","seconds"])?!n.every(t=>-1!==e.indexOf(t)):-1===e.indexOf(n))&&"landscape"===(t||r)})(n.views,o),a=(0,p2.I)();return{layoutProps:(0,oC.A)({},n,t,{isLandscape:i,isRtl:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}})({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:c.layoutProps}),f=function(e){let{props:t,pickerValueResponse:n}=e;return d.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:p.layoutProps,contextValue:u.contextValue,ownerState:f}})((0,oC.A)({},r,{props:t,autoFocusView:p??!1,additionalViewProps:{},wrapperVariant:u})),g=i?.layout??wm;return{renderPicker:()=>(0,c.jsx)(vN,{localeText:o,children:(0,c.jsx)(g,(0,oC.A)({},h,a?.layout,{slots:i,slotProps:a,sx:[...Array.isArray(l)?l:[l],...Array.isArray(a?.layout?.sx)?a.layout.sx:[a?.layout?.sx]],className:(0,f.A)(s,a?.layout?.className),ref:n,children:m()}))})}})({props:(0,oC.A)({},s,{viewRenderers:p,displayStaticWrapperAs:l,ampmInClock:u,yearsPerRow:s.yearsPerRow??("mobile"===l?3:4),slotProps:(0,oC.A)({},s.slotProps,{tabs:(0,oC.A)({hidden:"desktop"===l},s.slotProps?.tabs),toolbar:(0,oC.A)({hidden:"desktop"===l,ampmInClock:u},s.slotProps?.toolbar)})}),valueManager:xI,valueType:"date-time",validator:wv,ref:t});return h()});wy.propTypes={ampm:v_().bool,ampmInClock:v_().bool,autoFocus:v_().bool,className:v_().string,dayOfWeekFormatter:v_().func,defaultValue:v_().object,disabled:v_().bool,disableFuture:v_().bool,disableHighlightToday:v_().bool,disableIgnoringDatePartForTimeValidation:v_().bool,disablePast:v_().bool,displayStaticWrapperAs:v_().oneOf(["desktop","mobile"]),displayWeekNumber:v_().bool,fixedWeekNumber:v_().number,loading:v_().bool,localeText:v_().object,maxDate:v_().object,maxDateTime:v_().object,maxTime:v_().object,minDate:v_().object,minDateTime:v_().object,minTime:v_().object,minutesStep:v_().number,monthsPerRow:v_().oneOf([3,4]),onAccept:v_().func,onChange:v_().func,onClose:v_().func,onError:v_().func,onMonthChange:v_().func,onViewChange:v_().func,onYearChange:v_().func,openTo:v_().oneOf(["day","hours","minutes","month","seconds","year"]),orientation:v_().oneOf(["landscape","portrait"]),readOnly:v_().bool,reduceAnimations:v_().bool,referenceDate:v_().object,renderLoading:v_().func,shouldDisableDate:v_().func,shouldDisableMonth:v_().func,shouldDisableTime:v_().func,shouldDisableYear:v_().func,showDaysOutsideCurrentMonth:v_().bool,slotProps:v_().object,slots:v_().object,sx:v_().oneOfType([v_().arrayOf(v_().oneOfType([v_().func,v_().object,v_().bool])),v_().func,v_().object]),timezone:v_().string,value:v_().object,view:v_().oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:v_().shape({day:v_().func,hours:v_().func,minutes:v_().func,month:v_().func,seconds:v_().func,year:v_().func}),views:v_().arrayOf(v_().oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsOrder:v_().oneOf(["asc","desc"]),yearsPerRow:v_().oneOf([3,4])};let wx=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:o,now:i,token:a,startSeparator:s})=>{if(""===a)throw Error("MUI X: Should not call `commitToken` with an empty token");let l=xd(e,a),u=xA(e,l.contentType,l.type,a),c=n?u:"digit"===l.contentType,d=null!=t&&e.isValid(t),p=d?e.formatByString(t,a):"",f=null;if(c)if(u)f=""===p?e.formatByString(i,a).length:p.length;else{if(null==l.maxLength)throw Error(`MUI X: The token ${a} should have a 'maxDigitNumber' property on it's adapter`);f=l.maxLength,d&&(p=xg(xy(xm(p,o),f),o))}return(0,oC.A)({},l,{format:a,maxLength:f,value:p,placeholder:((e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}})(e,r,l,a),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:c,startSeparator:s,endSeparator:"",modified:!1})},wb=e=>{let t=(({utils:e,format:t})=>{let n=10,r=t,o=e.expandFormat(t);for(;o!==r;)if(r=o,o=e.expandFormat(r),(n-=1)<0)throw Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return o})(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));let n=(({utils:e,expandedFormat:t})=>{let n=[],{start:r,end:o}=e.escapedCharacters,i=RegExp(`(\\${r}[^\\${o}]*\\${o})+`,"g"),a=null;for(;a=i.exec(t);)n.push({start:a.index,end:i.lastIndex-1});return n})((0,oC.A)({},e,{expandedFormat:t})),r=(e=>{let{utils:t,expandedFormat:n,escapedParts:r}=e,o=t.date(void 0),i=[],a="",s=Object.keys(t.formatTokenMap).sort((e,t)=>t.length-e.length),l=/^([a-zA-Z]+)/,u=RegExp(`^(${s.join("|")})*$`),c=RegExp(`^(${s.join("|")})`),d=e=>r.find(t=>t.start<=e&&t.end>=e),p=0;for(;p<n.length;){let t=d(p),r=null!=t,s=l.exec(n.slice(p))?.[1];if(!r&&null!=s&&u.test(s)){let t=s;for(;t.length>0;){let n=c.exec(t)[1];t=t.slice(n.length),i.push(wx((0,oC.A)({},e,{now:o,token:n,startSeparator:a}))),a=""}p+=s.length}else{let e=n[p];r&&t?.start===p||t?.end===p||(0===i.length?a+=e:i[i.length-1].endSeparator+=e),p+=1}}return 0===i.length&&a.length>0&&i.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:a,endSeparator:"",modified:!1}),i})((0,oC.A)({},e,{expandedFormat:t,escapedParts:n}));return(({isRtl:e,formatDensity:t,sections:n})=>n.map(n=>{let r=n=>{let r=n;return e&&null!==r&&r.includes(" ")&&(r=`\u2069${r}\u2066`),"spacious"===t&&["/",".","-"].includes(r)&&(r=` ${r} `),r};return n.startSeparator=r(n.startSeparator),n.endSeparator=r(n.endSeparator),n}))((0,oC.A)({},e,{sections:r}))},ww=e=>{let{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:o,onClick:i,onFocus:a,onInput:s,onPaste:l,focused:u,autoFocus:c=!1},fieldValueManager:p,applyCharacterEditing:f,resetCharacterQuery:h,setSelectedSections:m,parsedSelectedSections:g,state:v,clearActiveSection:y,clearValue:x,updateSectionValue:b,updateValueFromValueStr:w,sectionOrder:A,areAllSectionsEmpty:C,sectionsValueBoundaries:S}=e,M=d.useRef(null),T=(0,xH.A)(r,M),k=vz().localeText,I=vz().utils,E=(0,yk.A)(),[R,D]=d.useState(!1),O=d.useMemo(()=>({syncSelectionToDOM:()=>{let e;if(!M.current)return;let t=document.getSelection();if(!t)return;if(null==g){t.rangeCount>0&&M.current.getRoot().contains(t.getRangeAt(0).startContainer)&&t.removeAllRanges(),R&&M.current.getRoot().blur();return}if(!M.current.getRoot().contains(b1(document)))return;let n=new window.Range;e="all"===g?M.current.getRoot():"empty"===v.sections[g].type?M.current.getSectionContainer(g):M.current.getSectionContent(g),n.selectNodeContents(e),e.focus(),t.removeAllRanges(),t.addRange(n)},getActiveSectionIndexFromDOM:()=>{let e=b1(document);return e&&M.current&&M.current.getRoot().contains(e)?M.current.getSectionIndexFromDOMElement(e):null},focusField:(e=0)=>{if(!M.current||null!=O.getActiveSectionIndexFromDOM())return;let t=xT(e,v.sections);D(!0),M.current.getSectionContent(t).focus()},setSelectedSections:e=>{if(!M.current)return;let t=xT(e,v.sections);D(null!==("all"===t?0:t)),m(e)},isFieldFocused:()=>{let e=b1(document);return!!M.current&&M.current.getRoot().contains(e)}}),[g,m,v.sections,R]),j=(0,y_.A)(e=>{if(!M.current)return;let t=v.sections[e];M.current.getSectionContent(e).innerHTML=t.value||t.placeholder,O.syncSelectionToDOM()}),P=(0,y_.A)((e,...t)=>{!e.isDefaultPrevented()&&M.current&&(D(!0),i?.(e,...t),"all"===g?setTimeout(()=>{let e=document.getSelection().getRangeAt(0).startOffset;if(0===e)return void m(A.startIndex);let t=0,n=0;for(;n<e&&t<v.sections.length;){let e=v.sections[t];t+=1,n+=`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`.length}m(t-1)}):R?M.current.getRoot().contains(e.target)||m(A.startIndex):(D(!0),m(A.startIndex)))}),N=(0,y_.A)(e=>{if(s?.(e),!M.current||"all"!==g)return;let t=e.target.textContent??"";M.current.getRoot().innerHTML=v.sections.map(e=>`${e.startSeparator}${e.value||e.placeholder}${e.endSeparator}`).join(""),O.syncSelectionToDOM(),0===t.length||10===t.charCodeAt(0)?(h(),x(),m("all")):t.length>1?w(t):("all"===g&&m(0),f({keyPressed:t,sectionIndex:0}))}),F=(0,y_.A)(e=>{if(l?.(e),n||"all"!==g)return void e.preventDefault();let t=e.clipboardData.getData("text");e.preventDefault(),h(),w(t)}),_=(0,y_.A)((...e)=>{a?.(...e),R||!M.current||(D(!0),null==M.current.getSectionIndexFromDOMElement(b1(document))&&m(A.startIndex))}),L=(0,y_.A)((...e)=>{o?.(...e),setTimeout(()=>{if(!M.current)return;let e=b1(document);M.current.getRoot().contains(e)||(D(!1),m(null))})}),z=(0,y_.A)(e=>t=>{t.isDefaultPrevented()||m(e)}),B=(0,y_.A)(e=>{e.preventDefault()}),V=(0,y_.A)(e=>()=>{m(e)}),$=(0,y_.A)(e=>{if(e.preventDefault(),n||t||"number"!=typeof g)return;let r=v.sections[g],o=e.clipboardData.getData("text"),i=/^[a-zA-Z]+$/.test(o),a=/^[0-9]+$/.test(o),s=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(o);"letter"===r.contentType&&i||"digit"===r.contentType&&a||"digit-with-letter"===r.contentType&&s?(h(),b({activeSection:r,newSectionValue:o,shouldGoToNextSection:!0})):i||a||(h(),w(o))}),H=(0,y_.A)(e=>{e.preventDefault(),e.dataTransfer.dropEffect="none"}),W=(0,y_.A)(e=>{if(!M.current)return;let t=e.target,r=t.textContent??"",o=M.current.getSectionIndexFromDOMElement(t),i=v.sections[o];if(n||!M.current)return void j(o);if(0===r.length){if(""===i.value)return void j(o);let t=e.nativeEvent.inputType;return"insertParagraph"===t||"insertLineBreak"===t?void j(o):(h(),void y())}f({keyPressed:r,sectionIndex:o}),j(o)});(0,mH.A)(()=>{if(R&&M.current){if("all"===g)M.current.getRoot().focus();else if("number"==typeof g){let e=M.current.getSectionContent(g);e&&e.focus()}}},[g,R]);let U=d.useMemo(()=>v.sections.reduce((e,t)=>(e[t.type]=S[t.type]({currentDate:null,contentType:t.contentType,format:t.format}),e),{}),[S,v.sections]),G="all"===g,q=d.useMemo(()=>v.sections.map((e,r)=>{let o=!G&&!t&&!n;return{container:{"data-sectionindex":r,onClick:z(r)},content:{tabIndex:G||r>0?-1:0,contentEditable:!G&&!t&&!n,role:"spinbutton",id:`${E}-${e.type}`,"aria-labelledby":`${E}-${e.type}`,"aria-readonly":n,"aria-valuenow":((e,t)=>{if(e.value)switch(e.type){case"weekDay":if("letter"===e.contentType)return;return Number(e.value);case"meridiem":{let n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);if(n)return+(t.getHours(n)>=12);return}case"day":return"digit-with-letter"===e.contentType?parseInt(e.value,10):Number(e.value);case"month":{if("digit"===e.contentType)return Number(e.value);let n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return"letter"!==e.contentType?Number(e.value):void 0}})(e,I),"aria-valuemin":U[e.type].minimum,"aria-valuemax":U[e.type].maximum,"aria-valuetext":e.value?((e,t)=>{if(e.value)switch(e.type){case"month":{if("digit"===e.contentType)return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");let n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return"digit"===e.contentType?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;default:return}})(e,I):k.empty,"aria-label":k[e.type],"aria-disabled":t,spellCheck:!o&&void 0,autoCapitalize:o?"off":void 0,autoCorrect:o?"off":void 0,[parseInt(d.version,10)>=17?"enterKeyHint":"enterkeyhint"]:o?"next":void 0,children:e.value||e.placeholder,onInput:W,onPaste:$,onFocus:V(r),onDragOver:H,onMouseUp:B,inputMode:"letter"===e.contentType?"text":"numeric"},before:{children:e.startSeparator},after:{children:e.endSeparator}}}),[v.sections,V,$,H,W,z,B,t,n,G,k,I,U,E]),Y=(0,y_.A)(e=>{w(e.target.value)}),Z=d.useMemo(()=>C?"":p.getV7HiddenInputValueFromSections(v.sections),[C,v.sections,p]);return d.useEffect(()=>{if(null==M.current)throw Error("MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`\nYou probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.\n\nIf you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:\n\n<DatePicker slots={{ textField: MyCustomTextField }} />\n\nLearn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element");c&&M.current&&M.current.getSectionContent(A.startIndex).focus()},[]),{interactions:O,returnedValue:{autoFocus:c,readOnly:n,focused:u??R,sectionListRef:T,onBlur:L,onClick:P,onFocus:_,onInput:N,onPaste:F,enableAccessibleFieldDOMStructure:!0,elements:q,tabIndex:0===g?-1:0,contentEditable:G,value:Z,onChange:Y,areAllSectionsEmpty:C}}},wA=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),wC=e=>{let t=(0,p2.I)(),n=d.useRef(void 0),r=d.useRef(void 0),{forwardedProps:{onFocus:o,onClick:i,onPaste:a,onBlur:s,inputRef:l,placeholder:u},internalProps:{readOnly:c=!1,disabled:p=!1},parsedSelectedSections:f,activeSectionIndex:h,state:m,fieldValueManager:g,valueManager:v,applyCharacterEditing:y,resetCharacterQuery:x,updateSectionValue:b,updateValueFromValueStr:w,clearActiveSection:A,clearValue:C,setTempAndroidValueStr:S,setSelectedSections:M,getSectionsFromValue:T,areAllSectionsEmpty:k,localizedDigits:I}=e,E=d.useRef(null),R=(0,xH.A)(l,E),D=d.useMemo(()=>((e,t,n)=>{let r=0,o=+!!n,i=[];for(let a=0;a<e.length;a+=1){let s=e[a],l=xb(s,n?"input-rtl":"input-ltr",t),u=`${s.startSeparator}${l}${s.endSeparator}`,c=wA(u).length,d=u.length,p=wA(l),f=o+(""===p?0:l.indexOf(p[0]))+s.startSeparator.length,h=f+p.length;i.push((0,oC.A)({},s,{start:r,end:r+c,startInInput:f,endInInput:h})),r+=c,o+=d}return i})(m.sections,I,t),[m.sections,I,t]),O=d.useMemo(()=>({syncSelectionToDOM:()=>{if(!E.current)return;if(null==f){E.current.scrollLeft&&(E.current.scrollLeft=0);return}if(E.current!==b1(document))return;let e=E.current.scrollTop;if("all"===f)E.current.select();else{let e=D[f],t="empty"===e.type?e.startInInput-e.startSeparator.length:e.startInInput,n="empty"===e.type?e.endInInput+e.endSeparator.length:e.endInInput;(t!==E.current.selectionStart||n!==E.current.selectionEnd)&&E.current===b1(document)&&E.current.setSelectionRange(t,n),clearTimeout(r.current),r.current=setTimeout(()=>{E.current&&E.current===b1(document)&&E.current.selectionStart===E.current.selectionEnd&&(E.current.selectionStart!==t||E.current.selectionEnd!==n)&&O.syncSelectionToDOM()})}E.current.scrollTop=e},getActiveSectionIndexFromDOM:()=>{let e=E.current.selectionStart??0,t=E.current.selectionEnd??0;if(0===e&&0===t)return null;let n=e<=D[0].startInInput?1:D.findIndex(t=>t.startInInput-t.startSeparator.length>e);return -1===n?D.length-1:n-1},focusField:(e=0)=>{b1(document)!==E.current&&(E.current?.focus(),M(e))},setSelectedSections:e=>M(e),isFieldFocused:()=>E.current===b1(document)}),[E,f,D,M]),j=()=>{let e,t=E.current.selectionStart??0;M(-1===(e=t<=D[0].startInInput||t>=D[D.length-1].endInInput?1:D.findIndex(e=>e.startInInput-e.startSeparator.length>t))?D.length-1:e-1)},P=(0,y_.A)((...e)=>{o?.(...e);let t=E.current;clearTimeout(n.current),n.current=setTimeout(()=>{t&&t===E.current&&null==h&&(t.value.length&&Number(t.selectionEnd)-Number(t.selectionStart)===t.value.length?M("all"):j())})}),N=(0,y_.A)((e,...t)=>{e.isDefaultPrevented()||(i?.(e,...t),j())}),F=(0,y_.A)(e=>{if(a?.(e),e.preventDefault(),c||p)return;let t=e.clipboardData.getData("text");if("number"==typeof f){let e=m.sections[f],n=/^[a-zA-Z]+$/.test(t),r=/^[0-9]+$/.test(t),o=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(t);if("letter"===e.contentType&&n||"digit"===e.contentType&&r||"digit-with-letter"===e.contentType&&o){x(),b({activeSection:e,newSectionValue:t,shouldGoToNextSection:!0});return}if(n||r)return}x(),w(t)}),_=(0,y_.A)((...e)=>{s?.(...e),M(null)}),L=(0,y_.A)(e=>{let n;if(c)return;let r=e.target.value;if(""===r){x(),C();return}let o=e.nativeEvent.data,i=o&&o.length>1,a=i?o:r,s=wA(a);if("all"===f&&M(h),null==h||i)return void w(i?o:s);if("all"===f&&1===s.length)n=s;else{let e=wA(g.getV6InputValueFromSections(D,I,t)),r=-1,o=-1;for(let t=0;t<e.length;t+=1)-1===r&&e[t]!==s[t]&&(r=t),-1===o&&e[e.length-t-1]!==s[s.length-t-1]&&(o=t);let i=D[h];if(r<i.start||e.length-o-1>i.end)return;let a=s.length-e.length+i.end-wA(i.endSeparator||"").length;n=s.slice(i.start+wA(i.startSeparator||"").length,a)}if(0===n.length){navigator.userAgent.toLowerCase().includes("android")&&S(a),x(),A();return}y({keyPressed:n,sectionIndex:h})}),z=d.useMemo(()=>void 0!==u?u:g.getV6InputValueFromSections(T(v.emptyValue),I,t),[u,g,T,v.emptyValue,I,t]),B=d.useMemo(()=>m.tempValueStrAndroid??g.getV6InputValueFromSections(m.sections,I,t),[m.sections,g,m.tempValueStrAndroid,I,t]);return d.useEffect(()=>(E.current&&E.current===b1(document)&&M("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]),{interactions:O,returnedValue:{readOnly:c,onBlur:_,onClick:N,onFocus:P,onPaste:F,inputRef:R,enableAccessibleFieldDOMStructure:!1,placeholder:z,inputMode:d.useMemo(()=>null==h||"letter"===m.sections[h].contentType?"text":"numeric",[h,m.sections]),autoComplete:"off",value:!(E.current&&E.current===b1(document))&&k?"":B,onChange:L}}},wS=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],wM=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],wT=["minDateTime","maxDateTime"];[...wS,...wM,...wT];let wk=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],wI=["clearable","onClear","InputProps","sx","slots","slotProps"],wE=["ownerState"];var wR=n(54227),wD=n(75472);function wO(e){return(0,C.Ay)("MuiPickersTextField",e)}(0,A.A)("MuiPickersTextField",["root","focused","disabled","error","required"]);var wj=n(42872);function wP(e){return(0,C.Ay)("MuiPickersInputBase",e)}let wN=(0,A.A)("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function wF(e){return(0,C.Ay)("MuiPickersOutlinedInput",e)}let w_=(0,oC.A)({},wN,(0,A.A)("MuiPickersOutlinedInput",["root","notchedOutline","input"])),wL=["children","className","label","notched","shrink"],wz=(0,y.A)("fieldset",{name:"MuiPickersOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),wB=(0,y.A)("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),wV=(0,y.A)("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function w$(e){let{className:t,label:n}=e,r=(0,vE.A)(e,wL),o=null!=n&&""!==n,i=(0,oC.A)({},e,{withLabel:o});return(0,c.jsx)(wz,(0,oC.A)({"aria-hidden":!0,className:t},r,{ownerState:i,children:(0,c.jsx)(wV,{ownerState:i,children:o?(0,c.jsx)(wB,{children:n}):(0,c.jsx)(wB,{className:"notranslate",children:""})})}))}var wH=n(85235);function wW(e){return(0,C.Ay)("MuiPickersSectionList",e)}let wU=(0,A.A)("MuiPickersSectionList",["root","section","sectionContent"]),wG=["slots","slotProps","elements","sectionListRef"],wq=(0,y.A)("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),wY=(0,y.A)("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),wZ=(0,y.A)("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),wX=(0,y.A)("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"});function wK(e){let{slots:t,slotProps:n,element:r,classes:o}=e,i=t?.section??wY,a=(0,yI.A)({elementType:i,externalSlotProps:n?.section,externalForwardedProps:r.container,className:o.section,ownerState:{}}),s=t?.sectionContent??wX,l=(0,yI.A)({elementType:s,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:o.sectionContent,ownerState:{}}),u=t?.sectionSeparator??wZ,d=(0,yI.A)({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),p=(0,yI.A)({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return(0,c.jsxs)(i,(0,oC.A)({},a,{children:[(0,c.jsx)(u,(0,oC.A)({},d)),(0,c.jsx)(s,(0,oC.A)({},l)),(0,c.jsx)(u,(0,oC.A)({},p))]}))}let wQ=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersSectionList"}),{slots:r,slotProps:o,elements:i,sectionListRef:a}=n,s=(0,vE.A)(n,wG),l=(e=>{let{classes:t}=e;return(0,h.A)({root:["root"],section:["section"],sectionContent:["sectionContent"]},wW,t)})(n),u=d.useRef(null),p=(0,xH.A)(t,u),f=e=>{if(!u.current)throw Error(`MUI X: Cannot call sectionListRef.${e} before the mount of the component.`);return u.current};d.useImperativeHandle(a,()=>({getRoot:()=>f("getRoot"),getSectionContainer:e=>f("getSectionContainer").querySelector(`.${wU.section}[data-sectionindex="${e}"]`),getSectionContent:e=>f("getSectionContent").querySelector(`.${wU.section}[data-sectionindex="${e}"] .${wU.sectionContent}`),getSectionIndexFromDOMElement(e){let t=f("getSectionIndexFromDOMElement");if(null==e||!t.contains(e))return null;let n=null;return(e.classList.contains(wU.section)?n=e:e.classList.contains(wU.sectionContent)&&(n=e.parentElement),null==n)?null:Number(n.dataset.sectionindex)}}));let m=r?.root??wq,g=(0,yI.A)({elementType:m,externalSlotProps:o?.root,externalForwardedProps:s,additionalProps:{ref:p,suppressContentEditableWarning:!0},className:l.root,ownerState:{}});return(0,c.jsx)(m,(0,oC.A)({},g,{children:g.contentEditable?i.map(({content:e,before:t,after:n})=>`${t.children}${e.children}${n.children}`).join(""):(0,c.jsx)(d.Fragment,{children:i.map((e,t)=>(0,c.jsx)(wK,{slots:r,slotProps:o,element:e,classes:l},t))})}))}),wJ=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],w0=(0,y.A)("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>(0,oC.A)({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${Math.round(.15/16*1e5)/1e5}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),w1=(0,y.A)(wq,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:e,focused:t,filled:n,label:r})=>!e&&!t&&!n&&null==r,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:"light"===e.palette.mode?.42:.5}}]})),w2=(0,y.A)(wY,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),w5=(0,y.A)(wX,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),w4=(0,y.A)(wZ,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),w3=(0,y.A)("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})((0,oC.A)({},{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"})),w6=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersInputBase"}),{elements:r,areAllSectionsEmpty:o,value:i,onChange:a,id:s,endAdornment:l,startAdornment:u,renderSuffix:p,slots:f,slotProps:m,contentEditable:g,tabIndex:v,onInput:y,onPaste:x,onKeyDown:b,name:w,readOnly:A,inputProps:C,inputRef:S,sectionListRef:M}=n,T=(0,vE.A)(n,wJ),k=d.useRef(null),I=(0,xH.A)(t,k),E=(0,xH.A)(C?.ref,S),R=(0,p2.I)(),D=(0,wj.A)();if(!D)throw Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");d.useEffect(()=>{D&&D.setAdornedStart(!!u)},[D,u]),d.useEffect(()=>{D&&(o?D.onEmpty():D.onFilled())},[D,o]);let O=(0,oC.A)({},n,D,{isRtl:R}),j=(e=>{let{focused:t,disabled:n,error:r,classes:o,fullWidth:i,readOnly:a,color:s,size:l,endAdornment:u,startAdornment:c}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",a&&"readOnly",r&&"error",i&&"fullWidth",`color${(0,wH.A)(s)}`,"small"===l&&"inputSizeSmall",!!c&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return(0,h.A)(d,wP,o)})(O),P=f?.root||w0,N=(0,yI.A)({elementType:P,externalSlotProps:m?.root,externalForwardedProps:T,additionalProps:{"aria-invalid":D.error,ref:I},className:j.root,ownerState:O}),F=f?.input||w1;return(0,c.jsxs)(P,(0,oC.A)({},N,{children:[u,(0,c.jsx)(wQ,{sectionListRef:M,elements:r,contentEditable:g,tabIndex:v,className:j.sectionsContainer,onFocus:e=>{D.disabled?e.stopPropagation():D.onFocus?.(e)},onBlur:D.onBlur,onInput:y,onPaste:x,onKeyDown:b,slots:{root:F,section:w2,sectionContent:w5,sectionSeparator:w4},slotProps:{root:{ownerState:O},sectionContent:{className:wN.sectionContent},sectionSeparator:({position:e})=>({className:"before"===e?wN.sectionBefore:wN.sectionAfter})}}),l,p?p((0,oC.A)({},D)):null,(0,c.jsx)(w3,(0,oC.A)({name:w,className:j.input,value:i,onChange:a,id:s,"aria-hidden":"true",tabIndex:-1,readOnly:A,required:D.required,disabled:D.disabled},C,{ref:E}))]}))}),w9=["label","autoFocus","ownerState","notched"],w7=(0,y.A)(w0,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${w_.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${w_.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${w_.focused} .${w_.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${w_.disabled}`]:{[`& .${w_.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${w_.error} .${w_.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t]?.main??!1).map(t=>({props:{color:t},style:{[`&.${w_.focused}:not(.${w_.error}) .${w_.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}}))}}),w8=(0,y.A)(w1,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),Ae=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersOutlinedInput"}),{label:r,ownerState:o,notched:i}=n,a=(0,vE.A)(n,w9),s=(0,wj.A)(),l=(0,oC.A)({},n,o,s,{color:s?.color||"primary"}),u=(e=>{let{classes:t}=e,n=(0,h.A)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},wF,t);return(0,oC.A)({},t,n)})(l);return(0,c.jsx)(w6,(0,oC.A)({slots:{root:w7,input:w8},renderSuffix:e=>(0,c.jsx)(w$,{shrink:!!(i||e.adornedStart||e.focused||e.filled),notched:!!(i||e.adornedStart||e.focused||e.filled),className:u.notchedOutline,label:null!=r&&""!==r&&s?.required?(0,c.jsxs)(d.Fragment,{children:[r," ","*"]}):r,ownerState:l})},a,{label:r,classes:u,ref:t}))});Ae.muiName="Input";var At=n(57867);function An(e){return(0,C.Ay)("MuiPickersFilledInput",e)}let Ar=(0,oC.A)({},wN,(0,A.A)("MuiPickersFilledInput",["root","underline","input"])),Ao=["label","autoFocus","disableUnderline","ownerState"],Ai=(0,y.A)(w0,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>(0,At.MC)(e)&&"disableUnderline"!==e})(({theme:e})=>{let t="light"===e.palette.mode,n=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)","@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n}},[`&.${Ar.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:n},[`&.${Ar.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)"},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Ar.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ar.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)"}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Ar.disabled}, .${Ar.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Ar.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:12}},{props:({endAdornment:e})=>!!e,style:{paddingRight:12}}]}}),Aa=(0,y.A)(w1,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),As=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersFilledInput"}),{label:r,disableUnderline:o=!1,ownerState:i}=n,a=(0,vE.A)(n,Ao),s=(0,wj.A)(),l=(e=>{let{classes:t,disableUnderline:n}=e,r=(0,h.A)({root:["root",!n&&"underline"],input:["input"]},An,t);return(0,oC.A)({},t,r)})((0,oC.A)({},n,i,s,{color:s?.color||"primary"}));return(0,c.jsx)(w6,(0,oC.A)({slots:{root:Ai,input:Aa},slotProps:{root:{disableUnderline:o}}},a,{label:r,classes:l,ref:t}))});function Al(e){return(0,C.Ay)("MuiPickersFilledInput",e)}As.muiName="Input";let Au=(0,oC.A)({},wN,(0,A.A)("MuiPickersInput",["root","input"])),Ac=["label","autoFocus","disableUnderline","ownerState"],Ad=(0,y.A)(w0,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let t="light"===e.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(t=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(t=>(e.vars??e).palette[t].main).map(t=>({props:{color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${Au.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Au.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${Au.disabled}, .${Au.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Au.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),Ap=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersInput"}),{label:r,disableUnderline:o=!1,ownerState:i}=n,a=(0,vE.A)(n,Ac),s=(0,wj.A)(),l=(e=>{let{classes:t,disableUnderline:n}=e,r=(0,h.A)({root:["root",!n&&"underline"],input:["input"]},Al,t);return(0,oC.A)({},t,r)})((0,oC.A)({},n,i,s,{disableUnderline:o,color:s?.color||"primary"}));return(0,c.jsx)(w6,(0,oC.A)({slots:{root:Ad}},a,{label:r,classes:l,ref:t}))});Ap.muiName="Input";let Af=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],Ah={standard:Ap,filled:As,outlined:Ae},Am=(0,y.A)(hj.A,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),Ag=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiPickersTextField"}),{onFocus:r,onBlur:o,className:i,color:a="primary",disabled:s=!1,error:l=!1,variant:u="outlined",required:p=!1,InputProps:m,inputProps:g,inputRef:v,sectionListRef:y,elements:x,areAllSectionsEmpty:b,onClick:w,onKeyDown:A,onKeyUp:C,onPaste:S,onInput:M,endAdornment:T,startAdornment:k,tabIndex:I,contentEditable:E,focused:R,value:D,onChange:O,fullWidth:j,id:P,name:N,helperText:F,FormHelperTextProps:_,label:L,InputLabelProps:z}=n,B=(0,vE.A)(n,Af),V=d.useRef(null),$=(0,xH.A)(t,V),H=(0,yk.A)(P),W=F&&H?`${H}-helper-text`:void 0,U=L&&H?`${H}-label`:void 0,G=(0,oC.A)({},n,{color:a,disabled:s,error:l,focused:R,required:p,variant:u}),q=(e=>{let{focused:t,disabled:n,classes:r,required:o}=e;return(0,h.A)({root:["root",t&&!n&&"focused",n&&"disabled",o&&"required"]},wO,r)})(G),Y=Ah[u];return(0,c.jsxs)(Am,(0,oC.A)({className:(0,f.A)(q.root,i),ref:$,focused:R,onFocus:r,onBlur:o,disabled:s,variant:u,error:l,color:a,fullWidth:j,required:p,ownerState:G},B,{children:[(0,c.jsx)(wR.A,(0,oC.A)({htmlFor:H,id:U},z,{children:L})),(0,c.jsx)(Y,(0,oC.A)({elements:x,areAllSectionsEmpty:b,onClick:w,onKeyDown:A,onKeyUp:C,onInput:M,onPaste:S,endAdornment:T,startAdornment:k,tabIndex:I,contentEditable:E,value:D,onChange:O,id:H,fullWidth:j,inputProps:g,inputRef:v,sectionListRef:y,label:L,name:N,role:"group","aria-labelledby":U,"aria-describedby":W,"aria-live":W?"polite":void 0},m)),F&&(0,c.jsx)(wD.A,(0,oC.A)({id:W},_,{children:F}))]}))}),Av=["enableAccessibleFieldDOMStructure"],Ay=["InputProps","readOnly"],Ax=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],Ab=["slots","slotProps","InputProps","inputProps"],Aw=d.forwardRef(function(e,t){let n=vO({props:e,name:"MuiDateTimeField"}),{slots:r,slotProps:o,InputProps:i,inputProps:a}=n,s=(0,vE.A)(n,Ab),l=r?.textField??(e.enableAccessibleFieldDOMStructure?Ag:P.A),u=(0,yI.A)({elementType:l,externalSlotProps:o?.textField,externalForwardedProps:s,ownerState:n,additionalProps:{ref:t}});u.inputProps=(0,oC.A)({},a,u.inputProps),u.InputProps=(0,oC.A)({},i,u.InputProps);let p=(e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=(0,vE.A)(e,Av);if(t){let{InputProps:e,readOnly:t}=n,r=(0,vE.A)(n,Ay);return(0,oC.A)({},r,{InputProps:(0,oC.A)({},e??{},{readOnly:t})})}let{onPaste:r,onKeyDown:o,inputMode:i,readOnly:a,InputProps:s,inputProps:l,inputRef:u}=n,c=(0,vE.A)(n,Ax);return(0,oC.A)({},c,{InputProps:(0,oC.A)({},s??{},{readOnly:a}),inputProps:(0,oC.A)({},l??{},{inputMode:i,onPaste:r,onKeyDown:o,ref:u})})})((e=>{let t,n,r,o,i,{forwardedProps:a,internalProps:s}=(t=vz().utils,n=vz().defaultDates,r=e.ampm??t.is12HourCycleInCurrentLocale()?t.formats.keyboardDateTime12h:t.formats.keyboardDateTime24h,o=(0,oC.A)({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??r,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:vH(t,e.minDateTime??e.minDate,n.minDate),maxDate:vH(t,e.maxDateTime??e.maxDate,n.maxDate),minTime:e.minDateTime??e.minTime,maxTime:e.maxDateTime??e.maxTime}),i="date-time",d.useMemo(()=>{let e=(0,oC.A)({},o),t={},n=n=>{e.hasOwnProperty(n)&&(t[n]=e[n],delete e[n])};return wk.forEach(n),wS.forEach(n),wM.forEach(n),wT.forEach(n),{forwardedProps:e,internalProps:t}},[o,i]));return(e=>{let t=vz().utils,{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:o,enableAccessibleFieldDOMStructure:i=!1,disabled:a=!1,readOnly:s=!1},forwardedProps:{onKeyDown:l,error:u,clearable:c,onClear:p},fieldValueManager:f,valueManager:h,validator:m}=e,g=(0,p2.I)(),v=(e=>{let t=vz().utils,n=vz().localeText,r=vz(),o=(0,p2.I)(),{valueManager:i,fieldValueManager:a,valueType:s,validator:l,internalProps:u,internalProps:{value:c,defaultValue:p,referenceDate:f,onChange:h,format:m,formatDensity:g="dense",selectedSections:v,onSelectedSectionsChange:y,shouldRespectLeadingZeros:x=!1,timezone:b,enableAccessibleFieldDOMStructure:w=!1}}=e,{timezone:A,value:C,handleValueChange:S}=xs({timezone:b,value:c,defaultValue:p,referenceDate:f,onChange:h,valueManager:i}),M=d.useMemo(()=>{let e;return e=t.date(void 0),"0"===t.formatByString(t.setSeconds(e,0),"s")?xh:Array.from({length:10}).map((n,r)=>t.formatByString(t.setSeconds(e,r),"s"))},[t]),T=d.useMemo(()=>((e,t,n)=>{let r=e.date(void 0,n),o=e.endOfYear(r),i=e.endOfDay(r),{maxDaysInMonth:a,longestMonth:s}=vW(e,r).reduce((t,n)=>{let r=e.getDaysInMonth(n);return r>t.maxDaysInMonth?{maxDaysInMonth:r,longestMonth:n}:t},{maxDaysInMonth:0,longestMonth:null});return{year:({format:t})=>({minimum:0,maximum:4===e.formatByString(e.date(void 0,"system"),t).length?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(o)+1}),day:({currentDate:t})=>({minimum:1,maximum:null!=t&&e.isValid(t)?e.getDaysInMonth(t):a,longestMonth:s}),weekDay:({format:t,contentType:n})=>{if("digit"===n){let n=xp(e,t).map(Number);return{minimum:Math.min(...n),maximum:Math.max(...n)}}return{minimum:1,maximum:7}},hours:({format:n})=>{let o=e.getHours(i);return xm(e.formatByString(e.endOfDay(r),n),t)!==o.toString()?{minimum:1,maximum:Number(xm(e.formatByString(e.startOfDay(r),n),t))}:{minimum:0,maximum:o}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}})(t,M,A),[t,M,A]),k=d.useCallback((e,r=null)=>a.getSectionsFromValue(t,e,r,e=>wb({utils:t,localeText:n,localizedDigits:M,format:m,date:e,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:w,isRtl:o})),[a,m,n,M,o,x,t,g,w]),[I,E]=d.useState(()=>{let e=k(C);xC(e,s);let n={sections:e,value:C,referenceValue:i.emptyValue,tempValueStrAndroid:null},r=Math.max(...e.map(e=>xu[e.type]??1)),o=i.getInitialReferenceValue({referenceDate:f,value:C,utils:t,props:u,granularity:r,timezone:A});return(0,oC.A)({},n,{referenceValue:o})}),[R,D]=(0,yL.A)({controlled:v,default:null,name:"useField",state:"selectedSections"}),O=e=>{D(e),y?.(e)},j=d.useMemo(()=>xT(R,I.sections),[R,I.sections]),P="all"===j?0:j,N=({value:e,referenceValue:n,sections:o})=>{if(E(t=>(0,oC.A)({},t,{sections:o,value:e,referenceValue:n,tempValueStrAndroid:null})),i.areValuesEqual(t,I.value,e))return;let a={validationError:l({adapter:r,value:e,timezone:A,props:u})};S(e,a)},F=(e,t)=>{let n=[...I.sections];return n[e]=(0,oC.A)({},n[e],{value:t,modified:!0}),n};return d.useEffect(()=>{let e=k(I.value);xC(e,s),E(t=>(0,oC.A)({},t,{sections:e}))},[m,t.locale,o]),d.useEffect(()=>{i.areValuesEqual(t,I.value,C)&&i.getTimezone(t,I.value)===i.getTimezone(t,C)||E(e=>(0,oC.A)({},e,{value:C,referenceValue:a.updateReferenceValue(t,C,e.referenceValue),sections:k(C)}))},[C]),{state:I,activeSectionIndex:P,parsedSelectedSections:j,setSelectedSections:O,clearValue:()=>{N({value:i.emptyValue,referenceValue:I.referenceValue,sections:k(i.emptyValue)})},clearActiveSection:()=>{if(null==P)return;let e=I.sections[P],n=a.getActiveDateManager(t,I,e),r=n.getSections(I.sections).filter(e=>""!==e.value).length===+(""!==e.value),o=F(P,""),i=r?null:t.getInvalidDate(),s=n.getNewValuesFromNewActiveDate(i);N((0,oC.A)({},s,{sections:o}))},updateSectionValue:({activeSection:e,newSectionValue:n,shouldGoToNextSection:r})=>{let o,i;r&&P<I.sections.length-1&&O(P+1);let s=a.getActiveDateManager(t,I,e),l=F(P,n),u=s.getSections(l),c=((e,t,n)=>{let r=t.some(e=>"day"===e.type),o=[],i=[];for(let e=0;e<t.length;e+=1){let a=t[e];r&&"weekDay"===a.type||(o.push(a.format),i.push(xb(a,"non-input",n)))}let a=o.join(" "),s=i.join(" ");return e.parse(s,a)})(t,u,M);if(null!=c&&t.isValid(c)){let e=xM(t,c,u,s.referenceDate,!0);o=s.getNewValuesFromNewActiveDate(e),i=!0}else o=s.getNewValuesFromNewActiveDate(c),i=(null!=c&&!t.isValid(c))!=(null!=s.date&&!t.isValid(s.date));return i?N((0,oC.A)({},o,{sections:l})):E(e=>(0,oC.A)({},e,o,{sections:l,tempValueStrAndroid:null}))},updateValueFromValueStr:e=>{let r=a.parseValueStr(e,I.referenceValue,(e,r)=>{let i=t.parse(e,m);if(null==i||!t.isValid(i))return null;let a=wb({utils:t,localeText:n,localizedDigits:M,format:m,date:i,formatDensity:g,shouldRespectLeadingZeros:x,enableAccessibleFieldDOMStructure:w,isRtl:o});return xM(t,i,a,r,!1)}),i=a.updateReferenceValue(t,r,I.referenceValue);N({value:r,referenceValue:i,sections:k(r,I.sections)})},setTempAndroidValueStr:e=>E(t=>(0,oC.A)({},t,{tempValueStrAndroid:e})),getSectionsFromValue:k,sectionsValueBoundaries:T,localizedDigits:M,timezone:A}})(e),{state:y,activeSectionIndex:x,parsedSelectedSections:b,setSelectedSections:w,clearValue:A,clearActiveSection:C,updateSectionValue:S,setTempAndroidValueStr:M,sectionsValueBoundaries:T,localizedDigits:k,timezone:I}=v,E=(({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:o,timezone:i})=>{let a=vz().utils,[s,l]=d.useState(null),u=(0,y_.A)(()=>l(null));d.useEffect(()=>{null!=s&&e[s.sectionIndex]?.type!==s.sectionType&&u()},[e,s,u]),d.useEffect(()=>{if(null!=s){let e=setTimeout(()=>u(),5e3);return()=>{clearTimeout(e)}}return()=>{}},[s,u]);let c=({keyPressed:t,sectionIndex:n},r,o)=>{let i=t.toLowerCase(),a=e[n];if(null!=s&&(!o||o(s.value))&&s.sectionIndex===n){let e=`${s.value}${i}`,t=r(e,a);if(null==t.saveQuery)return l({sectionIndex:n,value:e,sectionType:a.type}),t}let c=r(i,a);return null==c.saveQuery||c.saveQuery?(l({sectionIndex:n,value:i,sectionType:a.type}),null!=c.saveQuery?null:c):(u(),null)};return{applyCharacterEditing:(0,y_.A)(s=>{var l;let u,d,p,f=e[s.sectionIndex],h=xv(s.keyPressed,r)?(l=(0,oC.A)({},s,{keyPressed:xg(s.keyPressed,r)}),u=(e,t)=>{let o=xm(e,r),i=Number(o),s=n[t.type]({currentDate:null,format:t.format,contentType:t.contentType});if(i>s.maximum)return{saveQuery:!1};if(i<s.minimum)return{saveQuery:!0};let l=10*i>s.maximum||o.length===s.maximum.toString().length;return{sectionValue:xx(a,i,s,r,t),shouldGoToNextSection:l}},c(l,(e,t)=>{if("digit"===t.contentType||"digit-with-letter"===t.contentType)return u(e,t);if("month"===t.type){let n=xA(a,"digit","month","MM"),r=u(e,{type:t.type,format:"MM",hasLeadingZerosInFormat:n,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(null!=r.saveQuery)return r;let o=xw(a,r.sectionValue,"MM",t.format);return(0,oC.A)({},r,{sectionValue:o})}if("weekDay"===t.type){let n=u(e,t);if(null!=n.saveQuery)return n;let r=xp(a,t.format)[Number(n.sectionValue)-1];return(0,oC.A)({},n,{sectionValue:r})}return{saveQuery:!1}},e=>xv(e,r))):(d=(e,t,n)=>{let r=t.filter(e=>e.toLowerCase().startsWith(n));return 0===r.length?{saveQuery:!1}:{sectionValue:r[0],shouldGoToNextSection:1===r.length}},p=(e,t,n,r)=>{let o=e=>xf(a,i,t.type,e);if("letter"===t.contentType)return d(t.format,o(t.format),e);if(n&&null!=r&&"letter"===xd(a,n).contentType){let t=o(n),i=d(n,t,e);return null!=i.saveQuery?{saveQuery:!1}:(0,oC.A)({},i,{sectionValue:r(i.sectionValue,t)})}return{saveQuery:!1}},c(s,(e,t)=>{switch(t.type){case"month":return p(e,t,a.formats.month,e=>xw(a,e,a.formats.month,t.format));case"weekDay":return p(e,t,a.formats.weekday,(e,t)=>t.indexOf(e).toString());case"meridiem":return p(e,t);default:return{saveQuery:!1}}}));null==h?o(null):t({activeSection:f,newSectionValue:h.sectionValue,shouldGoToNextSection:h.shouldGoToNextSection})}),resetCharacterQuery:u}})({sections:y.sections,updateSectionValue:S,sectionsValueBoundaries:T,localizedDigits:k,setTempAndroidValueStr:M,timezone:I}),{resetCharacterQuery:R}=E,D=h.areValuesEqual(t,y.value,h.emptyValue),O=i?ww:wC,j=d.useMemo(()=>((e,t)=>{let n={};if(!t)return e.forEach((t,r)=>{let o=r===e.length-1?null:r+1;n[r]={leftIndex:0===r?null:r-1,rightIndex:o}}),{neighbors:n,startIndex:0,endIndex:e.length-1};let r={},o={},i=0,a=0,s=e.length-1;for(;s>=0;){-1===(a=e.findIndex((e,t)=>t>=i&&e.endSeparator?.includes(" ")&&" / "!==e.endSeparator))&&(a=e.length-1);for(let e=a;e>=i;e-=1)o[e]=s,r[s]=e,s-=1;i=a+1}return e.forEach((t,i)=>{let a=o[i],s=0===a?null:r[a-1],l=a===e.length-1?null:r[a+1];n[i]={leftIndex:s,rightIndex:l}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}})(y.sections,g&&!i),[y.sections,g,i]),{returnedValue:P,interactions:N}=O((0,oC.A)({},e,v,E,{areAllSectionsEmpty:D,sectionOrder:j})),F=(0,y_.A)(e=>{if(l?.(e),!a)switch(!0){case(e.ctrlKey||e.metaKey)&&"A"===String.fromCharCode(e.keyCode)&&!e.shiftKey&&!e.altKey:e.preventDefault(),w("all");break;case"ArrowRight"===e.key:if(e.preventDefault(),null==b)w(j.startIndex);else if("all"===b)w(j.endIndex);else{let e=j.neighbors[b].rightIndex;null!==e&&w(e)}break;case"ArrowLeft"===e.key:if(e.preventDefault(),null==b)w(j.endIndex);else if("all"===b)w(j.startIndex);else{let e=j.neighbors[b].leftIndex;null!==e&&w(e)}break;case"Delete"===e.key:if(e.preventDefault(),s)break;null==b||"all"===b?A():C(),R();break;case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(e.key):{if(e.preventDefault(),s||null==x)break;"all"===b&&w(x);let n=y.sections[x],r=f.getActiveDateManager(t,y,n),i=((e,t,n,r,o,i,a,s)=>{let l=(e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return -1;case"PageUp":return 5;case"PageDown":return -5;default:return 0}})(r),u="Home"===r,c="End"===r,d=""===n.value||u||c;if("digit"===n.contentType||"digit-with-letter"===n.contentType){let r,p=o[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),f="minutes"===n.type&&s?.minutesStep?s.minutesStep:1;if(d){if("year"===n.type&&!c&&!u)return e.formatByString(e.date(void 0,t),n.format);r=l>0||u?p.minimum:p.maximum}else r=parseInt(xm(n.value,i),10)+l*f;return(r%f!=0&&((l<0||u)&&(r+=f-(f+r)%f),(l>0||c)&&(r-=r%f)),r>p.maximum)?xx(e,p.minimum+(r-p.maximum-1)%(p.maximum-p.minimum+1),p,i,n):r<p.minimum?xx(e,p.maximum-(p.minimum-r-1)%(p.maximum-p.minimum+1),p,i,n):xx(e,r,p,i,n)}let p=xf(e,t,n.type,n.format);if(0===p.length)return n.value;if(d)return l>0||u?p[0]:p[p.length-1];let f=((p.indexOf(n.value)+l)%p.length+p.length)%p.length;return p[f]})(t,I,n,e.key,T,k,r.date,{minutesStep:o});S({activeSection:n,newSectionValue:i,shouldGoToNextSection:!1})}}});(0,mH.A)(()=>{N.syncSelectionToDOM()});let{hasValidationError:_}=bJ({props:n,validator:m,timezone:I,value:y.value,onError:n.onError}),L=d.useMemo(()=>void 0!==u?u:_,[_,u]);d.useEffect(()=>{L||null!=x||R()},[y.referenceValue,x,L]),d.useEffect(()=>{null!=y.tempValueStrAndroid&&null!=x&&(R(),C())},[y.sections]),d.useImperativeHandle(r,()=>({getSections:()=>y.sections,getActiveSectionIndex:N.getActiveSectionIndexFromDOM,setSelectedSections:N.setSelectedSections,focusField:N.focusField,isFieldFocused:N.isFieldFocused}));let z={onKeyDown:F,onClear:(0,y_.A)((e,...t)=>{e.preventDefault(),p?.(e,...t),A(),N.isFieldFocused()?w(j.startIndex):N.focusField(0)}),error:L,clearable:!!(c&&!D&&!s&&!a)};return(0,oC.A)({},e.forwardedProps,z,{disabled:a,readOnly:s},P)})({forwardedProps:a,internalProps:s,valueManager:xI,fieldValueManager:xE,validator:wv,valueType:"date-time"})})(u)),f=(e=>{let t=vz().localeText,{clearable:n,onClear:r,InputProps:o,sx:i,slots:a,slotProps:s}=e,l=(0,vE.A)(e,wI),u=a?.clearButton??j.A,p=(0,yI.A)({elementType:u,externalSlotProps:s?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),f=(0,vE.A)(p,wE),h=a?.clearIcon??v5,m=(0,yI.A)({elementType:h,externalSlotProps:s?.clearIcon,ownerState:{}});return(0,oC.A)({},l,{InputProps:(0,oC.A)({},o,{endAdornment:(0,c.jsxs)(d.Fragment,{children:[n&&(0,c.jsx)(fq.A,{position:"end",sx:{marginRight:o?.endAdornment?-1:-1.5},children:(0,c.jsx)(u,(0,oC.A)({},f,{onClick:r,children:(0,c.jsx)(h,(0,oC.A)({fontSize:"small"},m))}))}),o?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(i)?i:[i]]})})((0,oC.A)({},p,{slots:r,slotProps:o}));return(0,c.jsx)(l,(0,oC.A)({},f))});var AA=n(65130),AC=n(43628),AS=n(47196),AM=n(54266),AT=n(54708),Ak=n(38086),AI=n(16299),AE=n(85910),AR=n(44766),AD=n(65043),AO=n(72710),Aj=n(96962),AP=n(47918),AN=n(54354),AF=n(8151),A_=n(91733),AL=n(99042),Az=n(89321),AB=n(51148),AV=n(55578),A$=n(18463),AH=n(54752),AW=n(36163),AU=n(28850),AG=n(45350),Aq=n(67619),AY=n(39270),AZ=n(56756),AX=n(268),AK=n(12282),AQ=n(41042),AJ=n(38267),A0=n(47025),A1=n(30118),A2=n(84253),A5=n(98608),A4=n(8643),A3=n(18109),A6=n(19681),A9=n(73206),A7=n(53819),A8=n(96058),Ce=n(682),Ct=n(67671);let Cn={y:{sectionType:"year",contentType:"digit",maxLength:4},yy:"year",yyy:{sectionType:"year",contentType:"digit",maxLength:4},yyyy:"year",M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMMM:{sectionType:"month",contentType:"letter"},MMM:{sectionType:"month",contentType:"letter"},L:{sectionType:"month",contentType:"digit",maxLength:2},LL:"month",LLL:{sectionType:"month",contentType:"letter"},LLLL:{sectionType:"month",contentType:"letter"},d:{sectionType:"day",contentType:"digit",maxLength:2},dd:"day",do:{sectionType:"day",contentType:"digit-with-letter"},E:{sectionType:"weekDay",contentType:"letter"},EE:{sectionType:"weekDay",contentType:"letter"},EEE:{sectionType:"weekDay",contentType:"letter"},EEEE:{sectionType:"weekDay",contentType:"letter"},EEEEE:{sectionType:"weekDay",contentType:"letter"},i:{sectionType:"weekDay",contentType:"digit",maxLength:1},ii:"weekDay",iii:{sectionType:"weekDay",contentType:"letter"},iiii:{sectionType:"weekDay",contentType:"letter"},e:{sectionType:"weekDay",contentType:"digit",maxLength:1},ee:"weekDay",eee:{sectionType:"weekDay",contentType:"letter"},eeee:{sectionType:"weekDay",contentType:"letter"},eeeee:{sectionType:"weekDay",contentType:"letter"},eeeeee:{sectionType:"weekDay",contentType:"letter"},c:{sectionType:"weekDay",contentType:"digit",maxLength:1},cc:"weekDay",ccc:{sectionType:"weekDay",contentType:"letter"},cccc:{sectionType:"weekDay",contentType:"letter"},ccccc:{sectionType:"weekDay",contentType:"letter"},cccccc:{sectionType:"weekDay",contentType:"letter"},a:"meridiem",aa:"meridiem",aaa:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},Cr={year:"yyyy",month:"LLLL",monthShort:"MMM",dayOfMonth:"d",dayOfMonthFull:"do",weekday:"EEEE",weekdayShort:"EEEEEE",hours24h:"HH",hours12h:"hh",meridiem:"aa",minutes:"mm",seconds:"ss",fullDate:"PP",keyboardDate:"P",shortDate:"MMM d",normalDate:"d MMMM",normalDateWithWeekday:"EEE, MMM d",fullTime:"p",fullTime12h:"hh:mm aa",fullTime24h:"HH:mm",keyboardDateTime:"P p",keyboardDateTime12h:"P hh:mm aa",keyboardDateTime24h:"P HH:mm"};class Co{constructor(e){this.isMUIAdapter=!0,this.isTimezoneCompatible=!1,this.lib=void 0,this.locale=void 0,this.formats=void 0,this.formatTokenMap=Cn,this.escapedCharacters={start:"'",end:"'"},this.longFormatters=void 0,this.date=e=>void 0===e?new Date:null===e?null:new Date(e),this.getInvalidDate=()=>new Date("Invalid Date"),this.getTimezone=()=>"default",this.setTimezone=e=>e,this.toJsDate=e=>e,this.getCurrentLocaleCode=()=>this.locale.code,this.is12HourCycleInCurrentLocale=()=>/a/.test(this.locale.formatLong.time({width:"short"})),this.expandFormat=e=>e.match(/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g).map(e=>{let t=e[0];return"p"===t||"P"===t?(0,this.longFormatters[t])(e,this.locale.formatLong):e}).join(""),this.formatNumber=e=>e,this.getDayOfWeek=e=>e.getDay()+1;const{locale:t,formats:n,longFormatters:r,lib:o}=e;this.locale=t,this.formats=(0,oC.A)({},Cr,n),this.longFormatters=r,this.lib=o||"date-fns"}}class Ci extends Co{constructor({locale:e,formats:t}={}){super({locale:e??Ct.c,formats:t,longFormatters:AO.m}),this.parse=(e,t)=>""===e?null:(0,AK.qg)(e,t,new Date,{locale:this.locale}),this.isValid=e=>null!=e&&(0,AX.f)(e),this.format=(e,t)=>this.formatByString(e,this.formats[t]),this.formatByString=(e,t)=>(0,Aj.GP)(e,t,{locale:this.locale}),this.isEqual=(e,t)=>null===e&&null===t||null!==e&&null!==t&&(0,AU.n)(e,t),this.isSameYear=(e,t)=>(0,Aq.s)(e,t),this.isSameMonth=(e,t)=>(0,AY.t)(e,t),this.isSameDay=(e,t)=>(0,AG.r)(e,t),this.isSameHour=(e,t)=>(0,AZ.l)(e,t),this.isAfter=(e,t)=>(0,AH.d)(e,t),this.isAfterYear=(e,t)=>(0,AH.d)(e,(0,AD.Q)(t)),this.isAfterDay=(e,t)=>(0,AH.d)(e,(0,AE.D)(t)),this.isBefore=(e,t)=>(0,AW.Y)(e,t),this.isBeforeYear=(e,t)=>(0,AW.Y)(e,this.startOfYear(t)),this.isBeforeDay=(e,t)=>(0,AW.Y)(e,this.startOfDay(t)),this.isWithinRange=(e,[t,n])=>(0,Ce.v)(e,{start:t,end:n}),this.startOfYear=e=>(0,A8.D)(e),this.startOfMonth=e=>(0,A6.w)(e),this.startOfWeek=e=>(0,A7.k)(e,{locale:this.locale}),this.startOfDay=e=>(0,A3.o)(e),this.endOfYear=e=>(0,AD.Q)(e),this.endOfMonth=e=>(0,A9.p)(e),this.endOfWeek=e=>(0,AR.$)(e,{locale:this.locale}),this.endOfDay=e=>(0,AE.D)(e),this.addYears=(e,t)=>(0,AI.e)(e,t),this.addMonths=(e,t)=>(0,Ak.P)(e,t),this.addWeeks=(e,t)=>(0,AT.J)(e,t),this.addDays=(e,t)=>(0,AA.f)(e,t),this.addHours=(e,t)=>(0,AM.L)(e,t),this.addMinutes=(e,t)=>(0,AS.z)(e,t),this.addSeconds=(e,t)=>(0,AC.p)(e,t),this.getYear=e=>(0,A$.C)(e),this.getMonth=e=>(0,AL.t)(e),this.getDate=e=>(0,AP.p)(e),this.getHours=e=>(0,AF.q)(e),this.getMinutes=e=>(0,A_.O)(e),this.getSeconds=e=>(0,Az.S)(e),this.getMilliseconds=e=>(0,AB.D)(e),this.setYear=(e,t)=>(0,A4.i)(e,t),this.setMonth=(e,t)=>(0,A1.Z)(e,t),this.setDate=(e,t)=>(0,AQ.X)(e,t),this.setHours=(e,t)=>(0,AJ.a)(e,t),this.setMinutes=(e,t)=>(0,A0.g)(e,t),this.setSeconds=(e,t)=>(0,A2.g)(e,t),this.setMilliseconds=(e,t)=>(0,A5.$)(e,t),this.getDaysInMonth=e=>(0,AN.P)(e),this.getWeekArray=e=>{let t=this.startOfWeek(this.startOfMonth(e)),n=this.endOfWeek(this.endOfMonth(e)),r=0,o=t,i=[];for(;this.isBefore(o,n);){let e=Math.floor(r/7);i[e]=i[e]||[],i[e].push(o),o=this.addDays(o,1),r+=1}return i},this.getWeekNumber=e=>(0,AV.N)(e,{locale:this.locale}),this.getYearRange=([e,t])=>{let n=this.startOfYear(e),r=this.endOfYear(t),o=[],i=n;for(;this.isBefore(i,r);)o.push(i),i=this.addYears(i,1);return o}}}let Ca="yyyy-MM-dd HH:mm:ss";function Cs(e,t){let n,r;return e?(0,tH.bB)(e)?e.pastDuration:(n=or(e.start,Ca,t),r=or(e.end,Ca,t),`${n} - ${r}`):"Custom Time Range"}let Cl=({initialTimeRange:e,onChange:t,onCancel:n,timeZone:r})=>{let o=["local","browser"].includes(r.toLowerCase())?Intl.DateTimeFormat().resolvedOptions().timeZone:r,[i,a]=(0,d.useState)(e),[s,l]=(0,d.useState)(!0),u=(e,t)=>{a(n=>({...n,[t]:e}))},p=e=>{u(e,"start")},f=e=>{u(e,"end")},h=()=>{var e,t;let n={start:i.start,end:i.end};if(e=n.start,t=n.end,(0,tW.isValid)(e)&&(0,tW.isValid)(t)?!!(0,tW.isBefore)(e,t)||(console.error("End Time is before Start Time"),!1):(console.error("Invalid Date"),!1))return n};return(0,c.jsx)(vN,{dateAdapter:Ci,children:(0,c.jsxs)(O.A,{spacing:2,sx:e=>({padding:e.spacing(1,0,2)}),children:[s&&(0,c.jsxs)(lw.A,{sx:e=>({".MuiPickersLayout-contentWrapper":{backgroundColor:e.palette.background.default}}),children:[(0,c.jsx)(fb.A,{variant:"h3",padding:1,paddingLeft:2,children:"Select Start Time"}),(0,c.jsx)(wy,{timezone:o,displayStaticWrapperAs:"desktop",openTo:"day",disableHighlightToday:!0,value:new ot(i.start,o),onChange:e=>{null!==e&&p(e)},onAccept:()=>{l(!1)}})]}),!s&&(0,c.jsxs)(lw.A,{sx:e=>({".MuiPickersLayout-contentWrapper":{backgroundColor:e.palette.background.default}}),children:[(0,c.jsx)(fb.A,{variant:"h3",padding:1,paddingLeft:2,children:"Select End Time"}),(0,c.jsx)(wy,{timezone:o,displayStaticWrapperAs:"desktop",openTo:"day",disableHighlightToday:!0,value:new ot(i.end,o),minDateTime:new ot(i.start,o),onChange:e=>{null!==e&&f(e)},onAccept:e=>{null!==e&&(l(!0),f(e))}})]}),(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",gap:1,pl:1,pr:1,children:[(0,c.jsx)(gR.ErrorBoundary,{FallbackComponent:gE,children:(0,c.jsx)(Aw,{"data-testid":"start_time_input",timezone:o,label:"Start Time",value:new ot(i.start,o),onChange:e=>{e&&p(e)},onBlur:()=>h(),format:Ca})}),(0,c.jsx)(gR.ErrorBoundary,{FallbackComponent:gE,children:(0,c.jsx)(Aw,{"data-testid":"end_time_input",timezone:o,label:"End Time",value:new ot(i.end,o),onChange:e=>{e&&f(e)},onBlur:()=>h(),format:Ca})})]}),(0,c.jsxs)(O.A,{direction:"row",sx:{padding:e=>e.spacing(0,1)},gap:1,children:[(0,c.jsx)(R.A,{variant:"contained",onClick:()=>{let e;(e=h())&&t(e)},fullWidth:!0,children:"Apply"}),(0,c.jsx)(R.A,{variant:"outlined",onClick:()=>n(),fullWidth:!0,children:"Cancel"})]})]})})};function Cu({value:e,timeOptions:t,onChange:n,height:r,showCustomTimeRange:o=!0,timeZone:i,timeZoneOptions:a,onTimeZoneChange:s}){let l,{timeZone:u}=lv(),p=i??u,f=(0,d.useRef)(),[h,m]=(0,d.useState)(!1),g=(0,d.useMemo)(()=>(0,tH.bB)(e)?(0,tH.b5)(e):e,[e]),v=(0,d.useMemo)(()=>{var t;return{value:t=(0,tH.bB)(e)?void 0:e,display:Cs(t,p)}},[e,p]),[y,x]=(0,d.useState)(!1),b=a??tG(),[w,A]=(0,d.useState)(null),C=b.find(e=>e.value===p)?.display??p,S=oo(p),M=oo("local"),T=b.map(e=>({id:e.value,label:e.display}));{let e=b.find(e=>e.value===p);e&&(l={id:e.value,label:e.display})}return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(eh.Ay,{anchorEl:w,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},open:!!w,onClose:()=>A(null),sx:e=>({padding:e.spacing(1)}),children:(0,c.jsx)(lw.A,{sx:{p:1,minWidth:260},onClick:e=>{e.stopPropagation()},children:(0,c.jsx)(hW,{options:T,value:l,onChange:(e,t)=>{if(t){let e=b.find(e=>e.value===t.id);e&&s?.(e)}A(null)},disableClearable:!0,renderInput:e=>(0,c.jsx)(P.A,{...e,placeholder:"Search timezones",size:"small"})})})}),(0,c.jsx)(eh.Ay,{anchorEl:f.current,anchorOrigin:{vertical:"bottom",horizontal:"center"},open:h,onClose:()=>m(!1),sx:e=>({padding:e.spacing(2)}),children:(0,c.jsx)(Cl,{initialTimeRange:g,onChange:e=>{n(e),m(!1),x(!1)},onCancel:()=>m(!1),timeZone:p})}),(0,c.jsx)(lw.A,{ref:f,children:(0,c.jsxs)(pK.A,{open:y,value:Cs(e,p),onClick:()=>x(!y),IconComponent:vk,renderValue:()=>(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",spacing:1,children:[(0,c.jsx)("span",{children:t.find(t=>Cs(t.value,p)===Cs(e,p))?.display??Cs(e,p)}),S!==M&&(0,c.jsxs)(lw.A,{sx:{typography:"caption",color:"text.secondary"},children:["\xb7 ",S]})]}),inputProps:{"aria-label":`Select time range. Currently set to ${e}`},sx:{".MuiSelect-icon":{marginTop:"1px",transform:"none"},".MuiSelect-select.MuiSelect-outlined.MuiInputBase-input":{paddingRight:"36px"},".MuiSelect-select":r?{lineHeight:r,paddingY:0}:{}},children:[(0,c.jsx)(pX.A,{disableRipple:!0,onClick:e=>{e.preventDefault(),e.stopPropagation()},sx:{cursor:"default","&:hover":{backgroundColor:"transparent"},py:.5,px:1},children:(0,c.jsxs)(lw.A,{sx:{display:"flex",alignItems:"center",width:"100%",justifyContent:"space-between"},children:[(0,c.jsxs)(lw.A,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[(0,c.jsx)(lw.A,{sx:{typography:"subtitle1"},children:"Time Range"}),(0,c.jsxs)(lw.A,{sx:{color:"text.secondary",typography:"caption",mt:.25},children:["Timezone: ",C]})]}),(0,c.jsx)(lw.A,{sx:{display:"flex",alignItems:"center",pr:1,ml:1.5},children:(0,c.jsx)(j.A,{size:"small","aria-label":"Select timezone",onClick:e=>{e.preventDefault(),e.stopPropagation(),A(e.currentTarget)},children:(0,c.jsx)(vI,{fontSize:"small"})})})]})}),t.map((e,t)=>(0,c.jsx)(pX.A,{value:Cs(e.value,p),onClick:()=>{n(e.value)},children:e.display},t)),o&&(0,c.jsx)(pX.A,{value:Cs(v.value,p),onClick:()=>m(!0),children:v.display})]})})]})}function Cc({value:e,onChange:t,timeZoneOptions:n,variant:r="standard",heightPx:o,...i}){let a,s=(0,d.useMemo)(()=>n??tG(),[n]);o&&(a="number"==typeof o?`${o}px`:o);let l=(0,d.useMemo)(()=>({minWidth:"compact"===r?"80px":"150px",...a&&{lineHeight:a,paddingY:0},...i.sx}),[r,a,i.sx]);return(0,c.jsx)(pK.A,{...i,value:e,onChange:(e,n)=>{var r;let o;r=e.target.value,(o=s.find(e=>e.value===r))&&t&&t(o)},sx:l,size:"compact"===r?"small":"medium",children:s.map(e=>(0,c.jsx)(pX.A,{value:e.value,children:e.display},e.value))})}function Cd(e){let{markerColor:t,sx:n}=e;return(0,c.jsx)(lw.A,{sx:rD({display:"inline-block",width:"11px",height:"11px",borderRadius:"2px",marginRight:1,verticalAlign:"top"},n),style:{backgroundColor:t}})}function Cp(e){let{formattedY:t,markerColor:n,metricName:r,metricLabels:o}=e;return(0,c.jsxs)(O.A,{spacing:.5,children:[(0,c.jsxs)(lw.A,{sx:e=>({display:"flex",height:"16px",flexDirection:"row",alignItems:"center",justifyContent:"left",color:e.palette.common.white,fontSize:"11px"}),children:[(0,c.jsx)(Cd,{markerColor:n,sx:{marginTop:.25}}),(0,c.jsxs)(lw.A,{component:"span",children:[r,(0,c.jsx)(lw.A,{component:"span",sx:e=>({color:e.palette.common.white,fontWeight:700,paddingLeft:"2px"}),children:t})]})]}),(0,c.jsx)(fW.A,{sx:e=>({borderColor:e.palette.grey["500"]})}),(0,c.jsx)(lw.A,{sx:e=>({color:e.palette.common.white}),children:o.map(e=>{if(e){let[t,n]=e.split("="),r=void 0!==n?`${t}: `:t,o=void 0!==n?n.replace(/(^"|"$)/g,""):n;return(0,c.jsxs)(lw.A,{sx:{display:"flex",gap:"4px"},children:[(0,c.jsx)(fb.A,{sx:{fontSize:"11px"},children:r}),(0,c.jsx)(fb.A,{sx:e=>({color:e.palette.common.white,fontWeight:700,fontSize:"11px"}),children:o})]},e)}})})]})}let Cf=375,Ch=650,Cm=650,Cg=500,Cv=.75,Cy=8,Cx=750,Cb="nearby series showing in tooltip",Cw="emphasized series showing as bold in tooltip",CA="#2E313E",CC=new Intl.DateTimeFormat(void 0,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",hour12:!0}),CS={coords:{plotCanvas:{x:0,y:0},zrender:{x:0,y:0},target:null},chartWidth:0},CM=[],CT=()=>{let[e,t]=(0,d.useState)(null);return(0,d.useEffect)(()=>{let e=e=>t({page:{x:e.pageX,y:e.pageY},client:{x:e.clientX,y:e.clientY},plotCanvas:{x:e.zrX??e.offsetX,y:e.zrY??e.offsetY},target:e.target});return window.addEventListener("mousemove",e),()=>{window.removeEventListener("mousemove",e)}},[]),e},Ck={wrapLabels:!0,enablePinning:!0},CI="Click chart to pin",CE="Click chart to unpin";function CR(e){let{seriesName:t,formattedY:n,markerColor:r,totalSeries:o,emphasizeText:i=!1,wrapLabels:a=!0}=e,s=t.split("{"),l=(s[1]??t).replace(/[{}]/g,"").split(",");if(1===o&&l.length>1){let e=s[0]?`${s[0]}:`:"value:";return(0,c.jsx)(Cp,{formattedY:n,metricName:e,metricLabels:l,markerColor:r})}let u=t.replace(/[,]/g,", ");return(0,c.jsxs)(lw.A,{sx:{display:"table-row",paddingTop:.5},children:[(0,c.jsxs)(lw.A,{sx:{display:"table-cell",maxWidth:"520px"},children:[(0,c.jsx)(Cd,{markerColor:r,sx:{marginTop:.5}}),(0,c.jsx)(lw.A,{component:"span",sx:e=>({display:"inline-block",width:"calc(100% - 20px)",minWidth:150,maxWidth:Cg,overflow:"hidden",color:e.palette.common.white,fontWeight:i?e.typography.fontWeightBold:e.typography.fontWeightRegular,textOverflow:"ellipsis",whiteSpace:a?"normal":"nowrap"}),"aria-label":i?Cw:Cb,children:u})]}),(0,c.jsx)(lw.A,{sx:e=>({display:"table-cell",paddingLeft:1.5,textAlign:"right",verticalAlign:"top",fontWeight:i?e.typography.fontWeightBold:e.typography.fontWeightRegular}),children:n})]})}var CD=n(36961),CO=n(85180);function Cj(e,t,n,r,o){if(null===e||(null!==t&&(e=t),void 0===e.plotCanvas.x))return;let i=n>0?n:Cm,a=r>0?r:Ch,s=e.page.x+32,l=e.page.y+16;if(o){let e=o.getBoundingClientRect();s=s-e.left+o.scrollLeft,l=l-e.top+o.scrollTop;let t=e.top+o.scrollHeight;l+i>t&&(l=Math.max(t-i-16,Cy/2))}else l+i>window.innerHeight+window.scrollY&&(l=Math.max(window.innerHeight+window.scrollY-i-16,Cy/2));return s+a>window.innerWidth&&(s=e.page.x-a-32),s<32&&(s=32),l<Cy/2&&(l=Cy/2),`translate3d(${s}px, ${l}px, 0)`}function CP(e,t,n){return{minWidth:Cf,maxWidth:Ch,maxHeight:(n?n-Cy:void 0)??Cm,padding:0,position:"absolute",top:0,left:0,backgroundColor:e.palette.designSystem?.grey[800]??CA,borderRadius:"6px",color:"#fff",fontSize:"11px",visibility:"visible",opacity:1,transition:"opacity 0.1s ease-out, visibility 0.1s ease-out",zIndex:null!==t?"auto":e.zIndex.tooltip,overflow:"hidden","&:hover":{overflowY:"auto"}}}function CN(e,t){try{let n=t.convertToPixel("grid",[e,0]);return n?.[0]??null}catch{return null}}function CF(e,t,n,r){let o=n[e];if(!o)return t;let i=o.stack;if(!i)return t;let a=i.toString(),s=(r.get(a)??0)+t;return r.set(a,s),s}function C_(e,t,n){let r,o,i=t.indexOf(e);if(-1===i)return 20;let a=i>0?t[i-1]??null:null,s=i<t.length-1?t[i+1]??null:null,l=CN(e,n);if(null===l)return 20;if(null!==a&&null!==s){let e=CN(a,n)??l,t=CN(s,n)??l;r=(l+e)/2,o=(l+t)/2}else if(null!==a){let e=CN(a,n)??l;r=(l+e)/2,o=l+(l-r)}else{if(null===s)return 20;let e=CN(s,n)??l;o=(l+e)/2,r=l-(o-l)}return Math.max(1,o-r)}function CL(e,t,n,r){let o=t/Math.max(1,r),i=n-t/2+e*o;return{left:i,right:i+o}}function Cz(e,t,n){try{let r=n.convertToPixel("grid",[0,e]),o=n.convertToPixel("grid",[0,t]);if(!r||!o||void 0===r[1]||void 0===o[1])return null;return{top:Math.min(o[1],r[1]),bottom:Math.max(o[1],r[1])}}catch{return null}}let CB=5.5,CV=30,C$=5;function CH(e,t,n,r,o,i,a,s,l){let u=n[0]??null,c=n[1]??null;if(null===u||null===c||void 0===o.dispatchAction||!Array.isArray(e))return CM;let d=rE(e[0]?.values,u);if(null===d)return CM;let p=null;if(void 0!==s){let e=o.convertToPixel("grid",[0,c]),t=o.convertToPixel("grid",[0,c+r]);e&&t&&void 0!==e[1]&&void 0!==t[1]&&(p=Math.abs(t[1]-e[1]))}let f=l??CN(d,o),h=function(e,t,n,r,o,i,a,s,l){let u=[],c=e.length,d=new Map,p=[],f=e[0]?.values;if(f&&f.length>0){let e=new Set;for(let[t]of f)e.has(t)||(e.add(t),p.push(t));p=p.toSorted((e,t)=>e-t)}let h=[];for(let e=0;e<c;e++)(t[e]?.type??"line")==="bar"&&h.push(e);let m=null,g=null;h.length>0&&null!==o&&(m=C_(n,p,l),g=CN(n,l));for(let p=0;p<c;p++){let c,f=t[p];if(!f)continue;let v=e[p];if(!v)continue;let y=v.values;if(!y||!Array.isArray(y))continue;let x=f.type??"line",b=f.name?f.name.toString():"",w=f.id?f.id.toString():"",A=(f.color??"#000").toString(),C=-1,S=0;for(let e=0;e<y.length;e++){let t=y[e];if(t&&t[0]===n){C=e,S=t[0],c=t[1];break}}if(-1===C||null==c)continue;let M=!1,T=c,k=1/0;if("line"===x)if(T=CF(p,c,t,d),void 0!==i&&null!==s)try{let e=l.convertToPixel({seriesIndex:p},[C,T]);if(e&&void 0!==e[1]){let t=Math.abs(i-e[1]);M=t<=s,k=t}else{let e=Math.abs(T-r);M=e<=a,k=e}}catch{let e=Math.abs(T-r);M=e<=a,k=e}else{let e=Math.abs(T-r);M=e<=a,k=e}else if("bar"===x){if(null===o||null===m||null===g)continue;let e=h.indexOf(p);if(-1===e)continue;let n=CL(e,m,g,h.length);if(!(o>=n.left&&o<=n.right))continue;let i=f.stack,a=!0;if(i){let e=i.toString(),n=Cz(d.get(e)??0,T=CF(p,c,t,d),l);if(n){let e=l.convertToPixel("grid",[0,r]);e&&void 0!==e[1]&&(a=e[1]>=n.top&&e[1]<=n.bottom)}}else T=c;if(!a)continue;k=Math.abs(o-(n.left+n.right)/2),M=!0}M&&u.push({seriesIdx:p,datumIdx:C,seriesId:w,seriesName:b,date:n,markerColor:A,x:S,y:c,visualY:T,distance:k})}return u}(e,t,d,c,f,s,r,p,o),m=function(e){if(0===e.length)return null;let t=null;for(let n of e)(null===t||n.distance<t.distance)&&(t=n);return t}(h),g=new Set;for(let e of h)g.add(e.seriesIdx);let v=[];for(let t=0;t<e.length;t++)g.has(t)||v.push(t);return function(e,t,n,r,o,i){let a=[],s=[],l=[...i],u=[],c=[],d=new Map,p=[];for(let o of e){let e=r?.get(o.seriesId)??n,i=o.y,f=ro(i,e),h=null!==t&&o.seriesIdx===t.seriesIdx;if(h){s.push(o.seriesIdx);let e=d.get(i)??0;d.set(i,e+1),e>0&&c.push({seriesIndex:o.seriesIdx,dataIndex:o.datumIdx,seriesName:o.seriesName,yValue:i}),u.push({seriesIndex:o.seriesIdx,dataIndex:o.datumIdx,seriesName:o.seriesName,yValue:i})}else l.push(o.seriesIdx);p.push({seriesIdx:o.seriesIdx,datumIdx:o.datumIdx,seriesName:o.seriesName,date:o.date,x:o.x,y:i,formattedY:f,markerColor:o.markerColor,isClosestToCursor:h}),a.push(o.seriesIdx)}return rk(o,a,s,l,u,c),p}(h,m,i,a,o,v)}function CW(e,t,n,r,o){let i=[],a=t[0]??null,s=t[1]??null;if(null===a||null===s)return i;let l=[],u=[],c=[],d=e.timeSeries.length;if(Array.isArray(e.xAxis)&&Array.isArray(e.timeSeries))for(let t=0;t<d;t++){let p=e.timeSeries[t];if(void 0===p||i.length>=1e3)break;let f=p.name?p.name.toString():"",h=p.color??"#000";if(Array.isArray(p.data))for(let m=0;m<p.data.length;m++){let g=e.xAxis[m]??0,v=p.data[m];if(null!=v&&a===m&&"-"!==v&&s<=v+n&&s>=v-n){let e=CG({valueToCheck:s,baseValue:v,percentage:Math.max(d>C$?2:5,100/d)});e?u.push(t):(c.push(t),r?.dispatchAction!==void 0&&r.dispatchAction({type:"downplay",seriesIndex:t}));let n=g>0x174876e7ff?g:1e3*g,a=ro(v,o);i.push({seriesIdx:t,datumIdx:m,seriesName:f,date:n,x:g,y:v,formattedY:a,markerColor:h.toString(),isClosestToCursor:e}),l.push(t)}}}return r?.dispatchAction!==void 0&&(r.dispatchAction({type:"downplay",seriesIndex:c}),u.length>0?r.dispatchAction({type:"highlight",seriesIndex:u,notBlur:!1,escapeConnect:!0}):r.dispatchAction({type:"highlight",seriesIndex:l,notBlur:!0,escapeConnect:!0})),i}function CU({mousePos:e,pinnedPos:t,data:n,seriesMapping:r,chart:o,format:i,seriesFormatMap:a,showAllSeries:s=!1}){if(void 0===o||null===e)return CM;let l=!1;if(null!==e.target){let t=e.target.parentElement;if(null!==t){let e=t.parentElement;null!==e&&o.getDom()===e&&(l=!0)}}if(null!==t&&(e=t,l=!0),!1===l||null===n||void 0===o._model||void 0===e.plotCanvas.x||void 0===e.plotCanvas.y)return CM;let u=e.plotCanvas.y,c=e.plotCanvas.x,d=rT(c,u,o);if(null!==d){let e=o._model.getComponent("yAxis").axis.scale,t="log"===e.type,l=e._interval;if(t&&e.base){let t=e.base,n=e._extent,r=t**n[0];l=(t**n[1]-r)/100}let p=Cq({yInterval:l,totalSeries:n.length,showAllSeries:s}),f=r.some(e=>void 0!==e.yAxisIndex&&e.yAxisIndex>0);return CH(n,r,d,p,o,i,a,f?u:void 0,c)}return CM}function CG({valueToCheck:e,baseValue:t,percentage:n}){let r=n/100*t;return e>=t-r&&e<=t+r}function Cq({yInterval:e,totalSeries:t,showAllSeries:n=!1}){if(n)return 10*e;let r=.3*e;return t>C$?Math.max(r,e*CV/t):Math.max(r,e*CB)}function CY(e){let{series:t,wrapLabels:n}=e,r=(0,d.useMemo)(()=>null===t?null:t.toSorted((e,t)=>e.y>t.y?-1:1),[t]);return null===t||null===r?null:(0,c.jsx)(lw.A,{sx:e=>({display:"table",padding:e.spacing(.5,2)}),children:r.map(({datumIdx:e,seriesIdx:t,seriesName:o,y:i,formattedY:a,markerColor:s,isClosestToCursor:l})=>{if(null===e||null===t)return null;let u=t.toString()+e.toString();return(0,c.jsx)(CR,{seriesName:o,y:i,formattedY:a,markerColor:s,totalSeries:r.length,wrapLabels:n,emphasizeText:l},u)})})}var CZ=n(68003),CX=n(4491),CK=n(29917);let CQ=(0,d.memo)(function({nearbySeries:e,totalSeries:t,isTooltipPinned:n,showAllSeries:r,enablePinning:o=!0,onShowAllClick:i,onUnpinClick:a}){let s,l,u,{formatWithUserTimeZone:d}=lv(),p=e[0]?.date??null;if(null===p)return null;let f=o&&t>5;return(0,c.jsxs)(lw.A,{sx:e=>({width:"100%",maxWidth:Ch,padding:e.spacing(1.5,2,.5,2),backgroundColor:e.palette.designSystem?.grey[800]??CA,position:"sticky",top:0,left:0}),children:[(0,c.jsxs)(lw.A,{sx:{width:"100%",display:"flex",justifyContent:"start",alignItems:"center",paddingBottom:.5},children:[(l=d(s=new Date(p),"MMM dd, yyyy - "),u=d(s,"HH:mm:ss"),(0,c.jsxs)(lw.A,{children:[(0,c.jsx)(fb.A,{variant:"caption",sx:e=>({color:e.palette.common.white}),children:l}),(0,c.jsx)(fb.A,{variant:"caption",children:(0,c.jsx)("strong",{children:u})})]})),(0,c.jsxs)(O.A,{direction:"row",gap:1,sx:{marginLeft:"auto"},children:[f&&(0,c.jsxs)(O.A,{direction:"row",gap:.5,alignItems:"center",sx:{textAlign:"right"},children:[(0,c.jsx)(fb.A,{sx:{fontSize:11},children:"Show All"}),(0,c.jsx)(CZ.A,{checked:r,size:"small",onChange:(e,t)=>{if(void 0!==i)return i(t)},sx:e=>({"& .MuiSwitch-switchBase":{color:e.palette.common.white},"& .MuiSwitch-track":{backgroundColor:e.palette.common.white}})})]}),o&&(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",children:[(0,c.jsx)(fb.A,{sx:{marginRight:.5,fontSize:11,verticalAlign:"middle"},children:n?CE:CI}),n?(0,c.jsx)(CX,{onClick:()=>{void 0!==a&&a()},sx:{fontSize:16,cursor:"pointer"}}):(0,c.jsx)(CK,{sx:{fontSize:16}})]})]})]}),(0,c.jsx)(fW.A,{sx:e=>({width:"100%",borderColor:e.palette.grey["500"]})})]})}),CJ=(0,d.memo)(function({containerId:e,chartRef:t,data:n,seriesMapping:r,enablePinning:o=!0,wrapLabels:i,format:a,seriesFormatMap:s,onUnpinClick:l,pinnedPos:u}){let[p,f]=(0,d.useState)(!1),h=(0,d.useRef)(),m=(0,d.useRef)(null),g=CT(),{height:v,width:y,ref:x}=(0,CO.default)(),b=null!==u&&o,w=(0,d.useCallback)(e=>{m.current=e,x(e)},[x]),A=e?document.querySelector(e):void 0;if((0,d.useLayoutEffect)(()=>{if(null===g)return;let e=m.current;if(!e)return;let t=e.getBoundingClientRect();if(0===t.height||0===t.width)return;let n=Cj(g,u,t.height,t.width,A);n&&n!==h.current&&(h.current=n,e.style.transform=n)}),null===g||null===g.target||null===n||null===u&&"CANVAS"!==g.target.tagName)return null;let C=t.current,S=A?A.getBoundingClientRect().height:void 0;h.current=Cj(g,u,v??0,y??0,A);let M=CU({mousePos:g,data:n,seriesMapping:r,pinnedPos:u,chart:C,format:a,seriesFormatMap:s,showAllSeries:p});if(0===M.length)return null;let T=n.length;return(0,c.jsx)(CD.A,{container:A,children:(0,c.jsx)(lw.A,{ref:w,sx:e=>CP(e,u,S),style:{transform:h.current},children:(0,c.jsxs)(O.A,{spacing:.5,children:[(0,c.jsx)(CQ,{nearbySeries:M,totalSeries:T,enablePinning:o,isTooltipPinned:b,showAllSeries:p,onShowAllClick:e=>f(e),onUnpinClick:l}),(0,c.jsx)(CY,{series:M,wrapLabels:i})]})})})}),C0=(0,y.A)(R.A)(({theme:e})=>({padding:e.spacing(.5),minWidth:"auto"})),C1=(0,d.forwardRef)(function(e,t){return(0,c.jsx)(C0,{ref:t,variant:"outlined",color:"secondary",...e})}),C2=Object.entries(rr).map(([e,t])=>({...t,id:e,group:t.group||"Decimal"})).filter(e=>!e.disableSelectorOption);function C5({value:e,onChange:t,disabled:n=!1,...r}){let o=rr[e?.unit||"decimal"];return(0,c.jsx)(hW,{value:{id:e?.unit||"decimal",...o},options:C2,groupBy:e=>e.group??"Decimal",onChange:(e,n)=>{null===n?t(void 0):t({unit:n.id})},disabled:n,disableClearable:!0,renderInput:({InputProps:e,...r})=>(0,c.jsx)(P.A,{...r,slotProps:{input:{...e,endAdornment:(0,c.jsxs)(c.Fragment,{children:[e.endAdornment,(0,c.jsx)(fq.A,{position:"end",children:(0,c.jsx)(j.A,{size:"small","aria-label":"clear unit",onClick:()=>t(void 0),disabled:n,tabIndex:-1,children:(0,c.jsx)(ht,{fontSize:"small"})})})]})}}}),...r})}let C4=[{id:"default",label:"Default",decimalPlaces:void 0},{id:"0",label:"0",decimalPlaces:0},{id:"1",label:"1",decimalPlaces:1},{id:"2",label:"2",decimalPlaces:2},{id:"3",label:"3",decimalPlaces:3},{id:"4",label:"4",decimalPlaces:4}];function C3({value:e,onChange:t,disabled:n=!1}){var r;let o=rf(e),i=rh(e);return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(hz,{label:"Short values",control:(0,c.jsx)(CZ.A,{checked:!!i&&t7(e.shortValues),onChange:(n,r)=>{i&&t({...e,shortValues:r})},disabled:!i})}),(0,c.jsx)(hz,{label:"Unit",control:(0,c.jsx)(C5,{value:e,onChange:e=>{t(e||{unit:"decimal"})},disabled:n})}),(0,c.jsx)(hz,{label:"Decimals",control:(0,c.jsx)(hW,{value:(r=e.decimalPlaces,C4.find(e=>e.decimalPlaces===r)),options:C4,getOptionLabel:e=>e.label,onChange:(n,r)=>(({decimalPlaces:n})=>{o&&t({...e,decimalPlaces:n})})(r),disabled:!o,disableClearable:!0})})]})}function C6({name:e,height:t}){return(0,c.jsx)(lw.A,{style:{maxWidth:t,top:`calc(${t}px / 2)`},sx:{display:"inline-block",position:"absolute",transform:"translateX(-50%) rotate(-90deg)",transformOrigin:"top",textAlign:"center",zIndex:1},children:(0,c.jsx)(fb.A,{variant:"body1","aria-label":"y axis label",sx:{whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis"},children:e})})}var C9=n(74626);let C7=og((0,C9.A)({}),{echartsTheme:{textStyle:{fontFamily:"Lato"},categoryAxis:{splitLine:{show:!1}},timeAxis:{splitLine:{show:!1}},bar:{barCategoryGap:2}}}),C8={chartsTheme:C7,enablePinning:!1,enableSyncGrouping:!0,lastTooltipPinnedCoords:null,setLastTooltipPinnedCoords:()=>null};var Se=n(52855);let St={defaultProps:{variant:"standard",severity:"success"},styleOverrides:{standardError:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.error.dark,color:e.palette.error.light,[`& .${Se.A.icon}`]:{color:e.palette.error.main}}:{...e.typography.body1,backgroundColor:e.palette.error.light,color:e.palette.error.dark,[`& .${Se.A.icon}`]:{color:e.palette.error.main}},standardInfo:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.info.dark,color:e.palette.info.light,[`& .${Se.A.icon}`]:{color:e.palette.info.main}}:{...e.typography.body1,backgroundColor:e.palette.info.light,color:e.palette.info.dark,[`& .${Se.A.icon}`]:{color:e.palette.info.main}},standardSuccess:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.success.dark,color:e.palette.success.light,[`& .${Se.A.icon}`]:{color:e.palette.success.main}}:{...e.typography.body1,backgroundColor:e.palette.success.light,color:e.palette.success.dark,[`& .${Se.A.icon}`]:{color:e.palette.success.main}},standardWarning:({theme:e})=>"dark"===e.palette.mode?{...e.typography.body1,backgroundColor:e.palette.warning.dark,color:e.palette.warning.light,[`& .${Se.A.icon}`]:{color:e.palette.warning.main}}:{...e.typography.body1,backgroundColor:e.palette.warning.light,color:e.palette.warning.dark,[`& .${Se.A.icon}`]:{color:e.palette.warning.main}},root:{["& ."+fA.root]:{textDecoration:"underline"}}}},Sn={styleOverrides:{root:({theme:e})=>({backgroundColor:e.palette.background.default})}},Sr={50:"#E7F1FC",100:"#D0E3FA",150:"#B8D5F7",200:"#A1C7F5",300:"#72ABF0",400:"#438FEB",500:"#1473E6",600:"#105CB8",700:"#0C458A",800:"#082E5C",850:"#062345",900:"#04172E",950:"#020C17"},So="#FFFFFF",Si={50:"#F0F1F6",100:"#E1E3ED",150:"#D2D5E4",200:"#C3C7DB",300:"#A4ACC8",400:"#8690B6",500:"#717CA4",600:"#535D83",700:"#3E4662",800:"#2A2E42",850:"#1F2331",900:"#151721",950:"#0A0C10"},Sa={50:"#EAF9F1",100:"#D5F2E3",150:"#C1ECD4",200:"#ACE5C6",300:"#82D9AA",400:"#59CC8D",500:"#2FBF71",600:"#26995A",700:"#1C7344",800:"#134C2D",850:"#0E3922",900:"#092617",950:"#05130B"},Ss={50:"#FFF5E8",100:"#FFECD2",150:"#FFE2BB",200:"#FFD9A4",300:"#FFC577",400:"#FFB249",500:"#FF9F1C",600:"#CC7F16",700:"#995F11",800:"#66400B",850:"#4D3008",900:"#332006",950:"#1A1003"},Sl={50:"#EFE9FD",100:"#E0D2FC",150:"#D0BCFA",200:"#C1A6F8",300:"#A179F5",400:"#824DF1",500:"#6320EE",600:"#4F1ABE",700:"#3B138F",800:"#280D5F",850:"#1E0A47",900:"#140630",950:"#0A0318"},Su={50:"#FDEDED",100:"#FBDADA",150:"#F9C8C8",200:"#F7B5B5",300:"#F29191",400:"#EE6C6C",500:"#EA4747",600:"#BD3939",700:"#902B2B",800:"#621D1D",850:"#4C1616",900:"#350F0F",950:"#1F0808"},Sc=e=>"light"===e?{main:Sr["500"],dark:Sr["600"],light:Sr["50"]}:{main:Sr["400"],dark:Sr["800"],light:Sr["200"]},Sd={fontFamily:'Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontWeightLight:300,fontWeightRegular:400,fontWeightMedium:600,fontWeightBold:700,h1:{fontSize:"1.5rem",fontWeight:600,lineHeight:"32px"},h2:{fontSize:"1.25rem",fontWeight:600,lineHeight:"28px"},h3:{fontSize:"1rem",fontWeight:600,lineHeight:"24px"},h4:{fontSize:"0.875rem",fontWeight:600,lineHeight:"22px"},h5:void 0,h6:void 0,body1:{fontSize:"0.875rem",fontWeight:400,lineHeight:"20px"},body2:{fontSize:"0.75rem",fontWeight:400,lineHeight:"18px"},subtitle1:{fontSize:"1rem",fontWeight:400,lineHeight:"24px",letterSpacing:"0.02rem"},subtitle2:{fontSize:"0.875rem",fontWeight:600,lineHeight:"22px",letterSpacing:"0.03rem",textTransform:"uppercase"},button:{fontSize:"0.875rem",fontWeight:600,lineHeight:"1.25rem",textTransform:"none",letterSpacing:"0.03rem"},caption:{fontSize:"0.6875rem",fontWeight:400,lineHeight:"16px"}},Sp=({theme:e})=>({..."light"===e.palette.mode?{}:{backgroundImage:"unset",backgroundColor:e.palette.designSystem.grey[800]}});function Sf(e,t={},n=!1){var r,o;let i;return(0,C9.A)({palette:function(e){let t,n,r,o;return{mode:e,primary:Sc(e),secondary:"light"===e?{main:Si["600"],dark:Si["900"],light:Si["100"]}:{main:So,dark:So,light:So},grey:"light"===e?{50:Si["50"],100:Si["100"],200:Si["200"],300:Si["300"],400:Si["400"],500:Si["500"],600:Si["600"],700:Si["700"],800:Si["800"],900:Si["900"],950:Si["950"]}:{50:Si["950"],100:Si["900"],200:Si["800"],300:Si["700"],400:Si["600"],500:Si["500"],600:Si["400"],700:Si["300"],800:Si["200"],900:Si["100"],950:Si["50"]},background:(t=Sr["150"],n="rgba(21, 23, 33, 0.75)","light"===e?{navigation:t,overlay:n,default:So,paper:Si["50"],code:Si["50"],tooltip:Si["100"],lighter:Si["50"],border:Si["100"]}:{navigation:t,overlay:n,default:Si["900"],paper:Si["850"],code:Si["800"],tooltip:Si["600"],lighter:Si["700"],border:Si["600"]}),text:(r=Si["800"],o=Si["300"],"light"===e?{navigation:r,accent:o,primary:Si["800"],secondary:Si["700"],disabled:Si["300"],link:Sr["500"],linkHover:Sr["600"]}:{navigation:r,accent:o,primary:So,secondary:Si["50"],disabled:Si["600"],link:Sr["400"],linkHover:Sr["500"]}),error:"light"===e?{main:Su["500"],dark:Su["600"],light:Su["50"]}:{main:Su["400"],dark:Su["800"],light:Su["300"]},warning:"light"===e?{main:Ss["500"],dark:Ss["700"],light:Ss["50"]}:{main:Ss["400"],dark:Ss["800"],light:Ss["300"]},info:Sc(e),success:"light"===e?{main:Sa["500"],dark:Sa["700"],light:Sa["50"]}:{main:Sa["400"],dark:Sa["800"],light:Sa["300"]},common:{white:So,black:"#000000"},designSystem:{blue:Sr,green:Sa,grey:Si,orange:Ss,purple:Sl,red:Su}}}(e),typography:Sd,mixins:{},components:(r=e,o=n,i={MuiAlert:St,MuiFormControl:{defaultProps:{size:"small"}},MuiPaper:Sn,MuiTextField:{defaultProps:{size:"small"}},MuiDrawer:{styleOverrides:{paper:Sp}},MuiDialog:{styleOverrides:{paper:Sp}},MuiPopover:{styleOverrides:{paper:Sp}}},o?i:{MuiCssBaseline:{styleOverrides:{body:{colorScheme:r}}},...i}),...t})}var Sh=n(87275),Sm=n(11061),Sg=n(78536),Sv=n(1355);function Sy({value:e,onChange:t}){return(0,c.jsxs)(O.A,{direction:"row",children:[(0,c.jsx)(h$.A,{freeSolo:!0,multiple:!0,id:"join-columns",sx:{width:"100%"},options:[],value:e.spec.columns??[],renderInput:e=>(0,c.jsx)(P.A,{...e,variant:"outlined",label:"Columns",required:!0}),onChange:(n,r)=>{t({...e,spec:{...e.spec,columns:r}})}}),(0,c.jsx)(vt.A,{label:"Enabled",labelPlacement:"start",control:(0,c.jsx)(CZ.A,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function Sx({value:e,onChange:t}){return(0,c.jsxs)(O.A,{direction:"row",gap:1,alignItems:"center",children:[(0,c.jsx)(h$.A,{freeSolo:!0,multiple:!0,id:"merge-columns-columns",sx:{width:"100%"},options:[],value:e.spec.columns??[],renderInput:e=>(0,c.jsx)(P.A,{...e,variant:"outlined",label:"Columns",required:!0}),onChange:(n,r)=>{t({...e,spec:{...e.spec,columns:r}})}}),(0,c.jsx)(hs,{id:"merge-columns-name",variant:"outlined",label:"Output Name",value:e.spec.name??"",sx:{width:"100%"},onChange:n=>{t({...e,spec:{...e.spec,name:n}})},required:!0}),(0,c.jsx)(vt.A,{label:"Enabled",labelPlacement:"start",control:(0,c.jsx)(CZ.A,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function Sb({value:e,onChange:t}){return(0,c.jsxs)(O.A,{direction:"row",children:[(0,c.jsx)(hs,{id:"merge-indexed-columns",variant:"outlined",label:"Column",placeholder:"Example: 'value' for merging 'value #1', 'value #2' and 'value #...'",value:e.spec.column??"",sx:{width:"100%"},onChange:n=>{t({...e,spec:{...e.spec,column:n}})},required:!0}),(0,c.jsx)(vt.A,{label:"Enabled",labelPlacement:"start",control:(0,c.jsx)(CZ.A,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})]})}function Sw({value:e,onChange:t}){return(0,c.jsx)(O.A,{direction:"row",children:(0,c.jsx)(vt.A,{label:"Enabled",labelPlacement:"start",control:(0,c.jsx)(CZ.A,{value:!e.spec.disabled,checked:!e.spec.disabled,onChange:n=>t({...e,spec:{...e.spec,disabled:!n.target.checked}})})})})}function SA({value:e,onChange:t,...n}){return(0,c.jsxs)(O.A,{gap:2,sx:{width:"100%"},mt:1,...n,children:[(0,c.jsxs)(hs,{select:!0,label:"Kind",value:e.kind,onChange:n=>t({...e,kind:n}),children:[(0,c.jsx)(pX.A,{value:"JoinByColumnValue",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Join by column value"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Regroup rows with equal cell value in a column"})]})}),(0,c.jsx)(pX.A,{value:"MergeColumns",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Merge columns"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Multiple columns are merged to one column"})]})}),(0,c.jsx)(pX.A,{value:"MergeIndexedColumns",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Merge indexed columns"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Indexed columns are merged to one column"})]})}),(0,c.jsx)(pX.A,{value:"MergeSeries",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Merge series"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Series will be merged by their labels"})]})})]}),"JoinByColumnValue"===e.kind&&(0,c.jsx)(Sy,{value:e,onChange:t}),"MergeColumns"===e.kind&&(0,c.jsx)(Sx,{value:e,onChange:t}),"MergeIndexedColumns"===e.kind&&(0,c.jsx)(Sb,{value:e,onChange:t}),"MergeSeries"===e.kind&&(0,c.jsx)(Sw,{value:e,onChange:t})]})}function SC({index:e,value:t,isCollapsed:n,onChange:r,onCollapse:o,onDelete:i,...a}){return(0,c.jsxs)(O.A,{...a,children:[(0,c.jsxs)(O.A,{direction:"row",alignItems:"center",borderBottom:1,borderColor:e=>e.palette.divider,justifyContent:"space-between",gap:4,children:[(0,c.jsxs)(O.A,{direction:"row",gap:1,children:[(0,c.jsx)(j.A,{"data-testid":`transform-toggle#${e}`,size:"small",onClick:()=>o(!n),children:n?(0,c.jsx)(Sm,{}):(0,c.jsx)(Sh,{})}),(0,c.jsx)(fb.A,{variant:"overline",component:"h4",sx:{textTransform:"none"},children:t.kind?(0,c.jsx)("span",{children:(0,c.jsx)("strong",{children:rx[t.kind]})}):(0,c.jsx)("strong",{children:"Select a transformation kind"})})]}),(0,c.jsxs)(O.A,{direction:"row",gap:1,children:[n&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(f8,{title:t.spec?.disabled?"Enable transformation":"Disable transformation",placement:"top",children:(0,c.jsx)(j.A,{size:"small",sx:{marginLeft:"auto"},onClick:function(){r({...t,spec:{...t.spec,disabled:!t.spec?.disabled}})},children:t.spec?.disabled?(0,c.jsx)(Sg,{}):(0,c.jsx)(Sv,{})})}),(0,c.jsx)(fW.A,{flexItem:!0,orientation:"vertical",variant:"middle"})]}),(0,c.jsx)(f8,{title:"Remove transformation",placement:"top",children:(0,c.jsx)(j.A,{size:"small",sx:{marginLeft:"auto"},onClick:i,children:(0,c.jsx)(vC,{})})})]})]}),!n&&(0,c.jsx)(SA,{value:t,onChange:r})]})}function SS({value:e,onChange:t,...n}){let[r,o]=(0,d.useState)(e.map(()=>!0));return(0,c.jsxs)(O.A,{gap:1,...n,children:[e.map((n,i)=>(0,c.jsx)(SC,{index:i,value:n,isCollapsed:r[i]??!0,onChange:n=>{let r;(r=[...e])[i]=n,t(r)},onDelete:()=>{let n;(n=[...e]).splice(i,1),t(n),o(e=>(e.splice(i,1),[...e]))},onCollapse:e=>{o(t=>(t[i]=e,[...t]))}},i)),(0,c.jsx)(R.A,{variant:"contained",startIcon:(0,c.jsx)(vA,{}),sx:{marginTop:1},onClick:function(){let n=[...e];n.push({kind:"",spec:{}}),t(n),o(e=>(e.push(!1),[...e]))},children:"Add Transformation"})]})}function SM(e){let{value:t,onChange:n,timeOptions:r,height:o}=e,i=(0,d.useMemo)(()=>{if(t&&!r.some(e=>e.value.pastDuration===t))return(0,c.jsx)(pX.A,{value:t,children:t})},[r,t]);return(0,c.jsx)(hj.A,{children:(0,c.jsx)(lw.A,{children:(0,c.jsxs)(pK.A,{id:"refreshInterval",value:t,onChange:e=>{n(e.target.value)},inputProps:{"aria-label":`Select refresh interval. Currently set to ${t}`},sx:{".MuiSelect-select":o?{lineHeight:o,paddingY:0}:{}},children:[r.map((e,t)=>(0,c.jsx)(pX.A,{value:e.value.pastDuration,children:e.display},t)),i]})})})}function ST({repeatItems:e,maxPer:t,gap:n,renderItem:r,containerSx:o,rowSx:i}){let{rows:a,perRow:s}=(0,d.useMemo)(()=>{let n=Math.max(1,t),r=[];for(let t=0;t<e.length;t+=n)r.push(e.slice(t,t+n));return{rows:r,perRow:n}},[t,e]);return(0,c.jsx)(lw.A,{sx:[{display:"flex",flexDirection:"column",width:"100%",height:"100%",gap:`${n}px`},...Array.isArray(o)?o:[o]],children:a.map((e,t)=>(0,c.jsx)(lw.A,{sx:[{display:"flex",gap:`${n}px`},...Array.isArray(i)?i:[i]],children:e.map((e,o)=>(0,c.jsx)(lw.A,{sx:{width:`calc((100% - ${n*(s-1)}px) / ${s})`,overflow:"hidden"},children:r(e,{rowIndex:t,colIndex:o})},`${t}-${o}`))},t))})}var Sk=n(54381);let SI=({mapping:e,onChange:t,...n})=>{switch(e.kind){case"Value":return(0,c.jsx)(O.A,{gap:1,direction:"row",...n,children:(0,c.jsx)(P.A,{label:"Value",placeholder:"Exact value",value:e.spec?.value??"",onChange:n=>t({...e,spec:{...e.spec,value:n.target.value}}),fullWidth:!0})});case"Range":return(0,c.jsxs)(O.A,{gap:1,direction:"row",...n,children:[(0,c.jsx)(P.A,{label:"From",placeholder:"Start of range",value:e.spec?.from??"",onChange:n=>t({...e,spec:{...e.spec,from:""===n.target.value?void 0:+n.target.value}}),fullWidth:!0}),(0,c.jsx)(P.A,{label:"To",placeholder:"End of range (inclusive)",value:e.spec?.to??"",onChange:n=>t({...e,spec:{...e.spec,to:""===n.target.value?void 0:+n.target.value}}),fullWidth:!0})]});case"Regex":return(0,c.jsx)(O.A,{gap:1,direction:"row",...n,children:(0,c.jsx)(P.A,{label:"Regular Expression",placeholder:"JavaScript regular expression",value:e.spec?.pattern??"",onChange:n=>t({...e,spec:{...e.spec,pattern:n.target.value}}),fullWidth:!0})});case"Misc":return(0,c.jsx)(O.A,{gap:1,direction:"row",...n,children:(0,c.jsxs)(P.A,{select:!0,label:"Value",value:e.spec?.value??"",onChange:n=>t({...e,spec:{value:n.target.value}}),SelectProps:{renderValue:e=>{switch(e){case"empty":return"Empty";case"null":return"Null";case"NaN":return"NaN";case"true":return"True";case"false":return"False";default:return String(e)}}},fullWidth:!0,children:[(0,c.jsx)(pX.A,{value:"empty",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Empty"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Matches empty string"})]})}),(0,c.jsx)(pX.A,{value:"null",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Null"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Matches null or undefined"})]})}),(0,c.jsx)(pX.A,{value:"NaN",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"NaN"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Matches Not a Number value"})]})}),(0,c.jsx)(pX.A,{value:"true",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"True"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Matches true boolean"})]})}),(0,c.jsx)(pX.A,{value:"false",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"False"}),(0,c.jsx)(fb.A,{variant:"caption",children:"Matches false boolean"})]})})]})});default:return null}},SE=({mapping:e,onChange:t,onDelete:n,...r})=>{let o=n=>{t({...e,spec:{...e.spec,result:{...e.spec.result,color:n}}})};return(0,c.jsxs)(Sk.A,{container:!0,spacing:2,...r,children:[(0,c.jsx)(Sk.A,{size:{xs:5},children:(0,c.jsxs)(O.A,{direction:"row",gap:1,width:"100%",children:[(0,c.jsxs)(P.A,{select:!0,label:"Type",value:e.kind,onChange:n=>t({...e,kind:n.target.value}),required:!0,sx:{width:"120px"},children:[(0,c.jsx)(pX.A,{value:"Value",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Value"}),"Value"!==e.kind&&(0,c.jsx)(fb.A,{variant:"caption",children:"Matches an exact text value"})]})}),(0,c.jsx)(pX.A,{value:"Range",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Range"}),"Range"!==e.kind&&(0,c.jsx)(fb.A,{variant:"caption",children:"Matches against a numerical range"})]})}),(0,c.jsx)(pX.A,{value:"Regex",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Regex"}),"Regex"!==e.kind&&(0,c.jsx)(fb.A,{variant:"caption",children:"Matches against a regular expression"})]})}),(0,c.jsx)(pX.A,{value:"Misc",children:(0,c.jsxs)(O.A,{children:[(0,c.jsx)(fb.A,{children:"Misc"}),"Misc"!==e.kind&&(0,c.jsx)(fb.A,{variant:"caption",children:"Matches against empty, null and NaN values"})]})})]}),(0,c.jsx)(SI,{width:"100%",mapping:e,onChange:n=>t({...e,...n})})]})}),(0,c.jsx)(Sk.A,{size:{xs:4},children:(0,c.jsx)(P.A,{label:"Display text",value:e.spec?.result?.value??"",onChange:n=>t({...e,spec:{...e.spec,result:{...e.spec?.result,value:n.target.value}}}),fullWidth:!0})}),(0,c.jsx)(Sk.A,{size:{xs:1},children:(0,c.jsx)(O.A,{direction:"row",justifyContent:"center",gap:1,children:e.spec?.result?.color?(0,c.jsx)(ly,{label:"Color",color:e.spec.result.color??"#000",onColorChange:o,onClear:()=>o(void 0)}):(0,c.jsx)(j.A,{onClick:()=>o("#000"),children:(0,c.jsx)(vA,{})})})}),(0,c.jsx)(Sk.A,{size:{xs:1},textAlign:"end",children:(0,c.jsx)(f8,{title:"Remove mapping settings",placement:"top",children:(0,c.jsx)(j.A,{size:"small",sx:{marginLeft:"auto"},onClick:n,children:(0,c.jsx)(vC,{})})})})]})},SR=({mappings:e,onChange:t})=>{let[n,r]=(0,d.useState)(e);return(0,c.jsxs)(O.A,{spacing:1,children:[(0,c.jsxs)(Sk.A,{container:!0,spacing:2,children:[(0,c.jsx)(Sk.A,{size:{xs:5},children:(0,c.jsx)(fb.A,{variant:"subtitle1",children:"Condition"})}),(0,c.jsx)(Sk.A,{size:{xs:4},children:(0,c.jsx)(fb.A,{variant:"subtitle1",children:"Display Text"})}),(0,c.jsx)(Sk.A,{size:{xs:1},textAlign:"center",children:(0,c.jsx)(fb.A,{variant:"subtitle1",children:"Color"})}),(0,c.jsx)(Sk.A,{size:{xs:1}})]}),(0,c.jsx)(O.A,{gap:1.5,divider:(0,c.jsx)(fW.A,{flexItem:!0,orientation:"horizontal"}),children:n.map((e,o)=>(0,c.jsx)(SE,{mapping:e,onChange:e=>{let i;(i=[...n])[o]=e,r(i),t(i)},onDelete:()=>{let e;(e=[...n]).splice(o,1),r(e),t(e)}},o))}),(0,c.jsx)(R.A,{variant:"contained",startIcon:(0,c.jsx)(vA,{}),sx:{marginTop:1},onClick:function(){let e=[...n];e.push({kind:"Value",spec:{result:{value:""}}}),r(e),t(e)},children:"Add value mappings"})]})}}}]);
|