@perses-dev/greptimedb-plugin 0.1.0 → 0.2.0-beta.1
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.9dbe6a08.js +7 -0
- package/__mf/js/async/121.56bb37a5.js +2 -0
- package/__mf/js/async/181.0b23bdde.js +2 -0
- package/__mf/js/async/186.d822e51e.js +102 -0
- package/__mf/js/async/192.1c56a673.js +1 -0
- package/__mf/js/async/2.881f5426.js +1 -0
- package/__mf/js/async/235.2d160014.js +1 -0
- package/__mf/js/async/274.12deba12.js +2 -0
- package/__mf/js/async/325.5fbc70db.js +3 -0
- package/__mf/js/async/356.a0a4fb90.js +1 -0
- package/__mf/js/async/372.3eb7b91b.js +43 -0
- package/__mf/js/async/372.3eb7b91b.js.LICENSE.txt +102 -0
- package/__mf/js/async/392.0e81d95d.js +2 -0
- package/__mf/js/async/440.6f26c824.js +2 -0
- package/__mf/js/async/45.24cdf2be.js +1 -0
- package/__mf/js/async/470.cb0667bf.js +2 -0
- package/__mf/js/async/562.35b9aa36.js +2 -0
- package/__mf/js/async/587.6faed243.js +1 -0
- package/__mf/js/async/616.f724c0e3.js +1 -0
- package/__mf/js/async/663.febe982d.js +1 -0
- package/__mf/js/async/862.ed1d2219.js +2 -0
- package/__mf/js/async/941.2b0202f8.js +2 -0
- package/__mf/js/async/944.cab11a95.js +10 -0
- package/__mf/js/async/968.9c6b03ae.js +1 -0
- package/__mf/js/async/__federation_expose_GreptimeDBDatasource.6be8459e.js +2 -0
- package/__mf/js/async/__federation_expose_GreptimeDBLogQuery.f24d7d8a.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTimeSeriesQuery.29aad4a4.js +21 -0
- package/__mf/js/async/__federation_expose_GreptimeDBTraceQuery.99448480.js +21 -0
- package/__mf/js/{main.7dfdd439.js → main.0b36b2c2.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 +50 -138
- package/mf-stats.json +50 -150
- package/package.json +20 -12
- package/__mf/js/GreptimeDB.d666b53a.js +0 -7
- package/__mf/js/async/1589.a4d4fad9.js +0 -2
- package/__mf/js/async/1589.a4d4fad9.js.LICENSE.txt +0 -37
- package/__mf/js/async/1616.d071703e.js +0 -1
- package/__mf/js/async/2043.e37a8242.js +0 -2
- package/__mf/js/async/2043.e37a8242.js.LICENSE.txt +0 -24
- 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 → 372.85c2cbf6.css} +0 -0
- /package/__mf/js/async/{4121.f8820bd7.js.LICENSE.txt → 121.56bb37a5.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{2386.84002e8c.js.LICENSE.txt → 181.0b23bdde.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{6274.b682460a.js.LICENSE.txt → 274.12deba12.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{392.614cab68.js.LICENSE.txt → 392.0e81d95d.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5440.f8cb71c0.js.LICENSE.txt → 440.6f26c824.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{8470.8d2d3f35.js.LICENSE.txt → 470.cb0667bf.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3181.9e8e9ef5.js.LICENSE.txt → 562.35b9aa36.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5481.0c2e941f.js.LICENSE.txt → 862.ed1d2219.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{5562.fc9fccc9.js.LICENSE.txt → 941.2b0202f8.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{3944.f35af5a7.js.LICENSE.txt → 944.cab11a95.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{941.6703c1a7.js.LICENSE.txt → __federation_expose_GreptimeDBDatasource.6be8459e.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBDatasource.7d12e7b8.js.LICENSE.txt → __federation_expose_GreptimeDBLogQuery.f24d7d8a.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBLogQuery.f7fa9b26.js.LICENSE.txt → __federation_expose_GreptimeDBTimeSeriesQuery.29aad4a4.js.LICENSE.txt} +0 -0
- /package/__mf/js/async/{__federation_expose_GreptimeDBTimeSeriesQuery.867c743e.js.LICENSE.txt → __federation_expose_GreptimeDBTraceQuery.99448480.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* Copyright (c) 2017 Benjamin Van Ryseghem<benjamin@vanryseghem.com>
|
|
3
|
+
*
|
|
4
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
* in the Software without restriction, including without limitation the rights
|
|
7
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
* furnished to do so, subject to the following conditions:
|
|
10
|
+
*
|
|
11
|
+
* The above copyright notice and this permission notice shall be included in
|
|
12
|
+
* all copies or substantial portions of the Software.
|
|
13
|
+
*
|
|
14
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
* SOFTWARE.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/*!
|
|
24
|
+
* ZRender, a high performance 2d drawing library.
|
|
25
|
+
*
|
|
26
|
+
* Copyright (c) 2013, Baidu Inc.
|
|
27
|
+
* All rights reserved.
|
|
28
|
+
*
|
|
29
|
+
* LICENSE
|
|
30
|
+
* https://github.com/ecomfe/zrender/blob/master/LICENSE.txt
|
|
31
|
+
*/
|
|
32
|
+
|
|
33
|
+
/*!
|
|
34
|
+
* decimal.js v10.6.0
|
|
35
|
+
* An arbitrary-precision Decimal type for JavaScript.
|
|
36
|
+
* https://github.com/MikeMcl/decimal.js
|
|
37
|
+
* Copyright (c) 2025 Michael Mclaughlin <M8ch88l@gmail.com>
|
|
38
|
+
* MIT Licence
|
|
39
|
+
*/
|
|
40
|
+
|
|
41
|
+
/*! *****************************************************************************
|
|
42
|
+
Copyright (c) Microsoft Corporation.
|
|
43
|
+
|
|
44
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
45
|
+
purpose with or without fee is hereby granted.
|
|
46
|
+
|
|
47
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
48
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
49
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
50
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
51
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
52
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
53
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
54
|
+
***************************************************************************** */
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* match-sorter-utils
|
|
58
|
+
*
|
|
59
|
+
* Copyright (c) TanStack
|
|
60
|
+
*
|
|
61
|
+
* This source code is licensed under the MIT license found in the
|
|
62
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
63
|
+
*
|
|
64
|
+
* @license MIT
|
|
65
|
+
*/
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* react-table
|
|
69
|
+
*
|
|
70
|
+
* Copyright (c) TanStack
|
|
71
|
+
*
|
|
72
|
+
* This source code is licensed under the MIT license found in the
|
|
73
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
74
|
+
*
|
|
75
|
+
* @license MIT
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* table-core
|
|
80
|
+
*
|
|
81
|
+
* Copyright (c) TanStack
|
|
82
|
+
*
|
|
83
|
+
* This source code is licensed under the MIT license found in the
|
|
84
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
85
|
+
*
|
|
86
|
+
* @license MIT
|
|
87
|
+
*/
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* @license Fraction.js v4.3.7 31/08/2023
|
|
91
|
+
* https://www.xarg.org/2014/03/rational-numbers-in-javascript/
|
|
92
|
+
*
|
|
93
|
+
* Copyright (c) 2023, Robert Eisele (robert@raw.org)
|
|
94
|
+
* Dual licensed under the MIT or GPL Version 2 licenses.
|
|
95
|
+
**/
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* @name match-sorter
|
|
99
|
+
* @license MIT license.
|
|
100
|
+
* @copyright (c) 2099 Kent C. Dodds
|
|
101
|
+
* @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
|
|
102
|
+
*/
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 392.0e81d95d.js.LICENSE.txt */
|
|
2
|
+
(self.chunk_GreptimeDB_0_2_0_beta_1=self.chunk_GreptimeDB_0_2_0_beta_1||[]).push([["392"],{17243(n,t,r){n=r.nmd(n),(function(){var e,u="Expected a function",i="__lodash_hash_undefined__",o="__lodash_placeholder__",f=1/0,a=0/0,c=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]],l="[object Arguments]",s="[object Array]",h="[object Boolean]",p="[object Date]",v="[object Error]",_="[object Function]",g="[object GeneratorFunction]",y="[object Map]",d="[object Number]",b="[object Object]",w="[object Promise]",m="[object RegExp]",x="[object Set]",j="[object String]",A="[object Symbol]",k="[object WeakMap]",I="[object ArrayBuffer]",O="[object DataView]",R="[object Float32Array]",z="[object Float64Array]",E="[object Int8Array]",S="[object Int16Array]",W="[object Int32Array]",L="[object Uint8Array]",C="[object Uint8ClampedArray]",B="[object Uint16Array]",U="[object Uint32Array]",T=/\b__p \+= '';/g,D=/\b(__p \+=) '' \+/g,$=/(__e\(.*?\)|\b__t\)) \+\n'';/g,M=/&(?:amp|lt|gt|quot|#39);/g,F=/[&<>"']/g,N=RegExp(M.source),P=RegExp(F.source),q=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,G=/<%=([\s\S]+?)%>/g,K=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,V=/^\w*$/,H=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,J=/[\\^$.*+?()[\]{}|]/g,Y=RegExp(J.source),Q=/^\s+/,X=/\s/,nn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,nt=/\{\n\/\* \[wrapped with (.+)\] \*/,nr=/,? & /,ne=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,nu=/[()=,{}\[\]\/\s]/,ni=/\\(\\)?/g,no=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nf=/\w*$/,na=/^[-+]0x[0-9a-f]+$/i,nc=/^0b[01]+$/i,nl=/^\[object .+?Constructor\]$/,ns=/^0o[0-7]+$/i,nh=/^(?:0|[1-9]\d*)$/,np=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,nv=/($^)/,n_=/['\n\r\u2028\u2029\\]/g,ng="\\ud800-\\udfff",ny="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",nd="\\u2700-\\u27bf",nb="a-z\\xdf-\\xf6\\xf8-\\xff",nw="A-Z\\xc0-\\xd6\\xd8-\\xde",nm="\\ufe0e\\ufe0f",nx="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",nj="['’]",nA="["+nx+"]",nk="["+ny+"]",nI="["+nb+"]",nO="[^"+ng+nx+"\\d+"+nd+nb+nw+"]",nR="\\ud83c[\\udffb-\\udfff]",nz="[^"+ng+"]",nE="(?:\\ud83c[\\udde6-\\uddff]){2}",nS="[\\ud800-\\udbff][\\udc00-\\udfff]",nW="["+nw+"]",nL="\\u200d",nC="(?:"+nI+"|"+nO+")",nB="(?:"+nW+"|"+nO+")",nU="(?:"+nj+"(?:d|ll|m|re|s|t|ve))?",nT="(?:"+nj+"(?:D|LL|M|RE|S|T|VE))?",nD="(?:"+nk+"|"+nR+")?",n$="["+nm+"]?",nM="(?:"+nL+"(?:"+[nz,nE,nS].join("|")+")"+n$+nD+")*",nF=n$+nD+nM,nN="(?:"+["["+nd+"]",nE,nS].join("|")+")"+nF,nP="(?:"+[nz+nk+"?",nk,nE,nS,"["+ng+"]"].join("|")+")",nq=RegExp(nj,"g"),nZ=RegExp(nk,"g"),nG=RegExp(nR+"(?="+nR+")|"+nP+nF,"g"),nK=RegExp([nW+"?"+nI+"+"+nU+"(?="+[nA,nW,"$"].join("|")+")",nB+"+"+nT+"(?="+[nA,nW+nC,"$"].join("|")+")",nW+"?"+nC+"+"+nU,nW+"+"+nT,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])|\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])|\\d+",nN].join("|"),"g"),nV=RegExp("["+nL+ng+ny+nm+"]"),nH=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,nJ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],nY=-1,nQ={};nQ[R]=nQ[z]=nQ[E]=nQ[S]=nQ[W]=nQ[L]=nQ[C]=nQ[B]=nQ[U]=!0,nQ[l]=nQ[s]=nQ[I]=nQ[h]=nQ[O]=nQ[p]=nQ[v]=nQ[_]=nQ[y]=nQ[d]=nQ[b]=nQ[m]=nQ[x]=nQ[j]=nQ[k]=!1;var nX={};nX[l]=nX[s]=nX[I]=nX[O]=nX[h]=nX[p]=nX[R]=nX[z]=nX[E]=nX[S]=nX[W]=nX[y]=nX[d]=nX[b]=nX[m]=nX[x]=nX[j]=nX[A]=nX[L]=nX[C]=nX[B]=nX[U]=!0,nX[v]=nX[_]=nX[k]=!1;var n0={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},n1=parseFloat,n2=parseInt,n3="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,n8="object"==typeof self&&self&&self.Object===Object&&self,n4=n3||n8||Function("return this")(),n6=t&&!t.nodeType&&t,n9=n6&&n&&!n.nodeType&&n,n5=n9&&n9.exports===n6,n7=n5&&n3.process,tn=function(){try{var n=n9&&n9.require&&n9.require("util").types;if(n)return n;return n7&&n7.binding&&n7.binding("util")}catch(n){}}(),tt=tn&&tn.isArrayBuffer,tr=tn&&tn.isDate,te=tn&&tn.isMap,tu=tn&&tn.isRegExp,ti=tn&&tn.isSet,to=tn&&tn.isTypedArray;function tf(n,t,r){switch(r.length){case 0:return n.call(t);case 1:return n.call(t,r[0]);case 2:return n.call(t,r[0],r[1]);case 3:return n.call(t,r[0],r[1],r[2])}return n.apply(t,r)}function ta(n,t,r,e){for(var u=-1,i=null==n?0:n.length;++u<i;){var o=n[u];t(e,o,r(o),n)}return e}function tc(n,t){for(var r=-1,e=null==n?0:n.length;++r<e&&!1!==t(n[r],r,n););return n}function tl(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(!t(n[r],r,n))return!1;return!0}function ts(n,t){for(var r=-1,e=null==n?0:n.length,u=0,i=[];++r<e;){var o=n[r];t(o,r,n)&&(i[u++]=o)}return i}function th(n,t){return!!(null==n?0:n.length)&&tx(n,t,0)>-1}function tp(n,t,r){for(var e=-1,u=null==n?0:n.length;++e<u;)if(r(t,n[e]))return!0;return!1}function tv(n,t){for(var r=-1,e=null==n?0:n.length,u=Array(e);++r<e;)u[r]=t(n[r],r,n);return u}function t_(n,t){for(var r=-1,e=t.length,u=n.length;++r<e;)n[u+r]=t[r];return n}function tg(n,t,r,e){var u=-1,i=null==n?0:n.length;for(e&&i&&(r=n[++u]);++u<i;)r=t(r,n[u],u,n);return r}function ty(n,t,r,e){var u=null==n?0:n.length;for(e&&u&&(r=n[--u]);u--;)r=t(r,n[u],u,n);return r}function td(n,t){for(var r=-1,e=null==n?0:n.length;++r<e;)if(t(n[r],r,n))return!0;return!1}var tb=tI("length");function tw(n,t,r){var e;return r(n,function(n,r,u){if(t(n,r,u))return e=r,!1}),e}function tm(n,t,r,e){for(var u=n.length,i=r+(e?1:-1);e?i--:++i<u;)if(t(n[i],i,n))return i;return -1}function tx(n,t,r){return t==t?function(n,t,r){for(var e=r-1,u=n.length;++e<u;)if(n[e]===t)return e;return -1}(n,t,r):tm(n,tA,r)}function tj(n,t,r,e){for(var u=r-1,i=n.length;++u<i;)if(e(n[u],t))return u;return -1}function tA(n){return n!=n}function tk(n,t){var r=null==n?0:n.length;return r?tz(n,t)/r:a}function tI(n){return function(t){return null==t?e:t[n]}}function tO(n){return function(t){return null==n?e:n[t]}}function tR(n,t,r,e,u){return u(n,function(n,u,i){r=e?(e=!1,n):t(r,n,u,i)}),r}function tz(n,t){for(var r,u=-1,i=n.length;++u<i;){var o=t(n[u]);e!==o&&(r=e===r?o:r+o)}return r}function tE(n,t){for(var r=-1,e=Array(n);++r<n;)e[r]=t(r);return e}function tS(n){return n?n.slice(0,tK(n)+1).replace(Q,""):n}function tW(n){return function(t){return n(t)}}function tL(n,t){return tv(t,function(t){return n[t]})}function tC(n,t){return n.has(t)}function tB(n,t){for(var r=-1,e=n.length;++r<e&&tx(t,n[r],0)>-1;);return r}function tU(n,t){for(var r=n.length;r--&&tx(t,n[r],0)>-1;);return r}var tT=tO({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),tD=tO({"&":"&","<":"<",">":">",'"':""","'":"'"});function t$(n){return"\\"+n0[n]}function tM(n){return nV.test(n)}function tF(n){var t=-1,r=Array(n.size);return n.forEach(function(n,e){r[++t]=[e,n]}),r}function tN(n,t){return function(r){return n(t(r))}}function tP(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var f=n[r];(f===t||f===o)&&(n[r]=o,i[u++]=r)}return i}function tq(n){var t=-1,r=Array(n.size);return n.forEach(function(n){r[++t]=n}),r}function tZ(n){return tM(n)?function(n){for(var t=nG.lastIndex=0;nG.test(n);)++t;return t}(n):tb(n)}function tG(n){return tM(n)?n.match(nG)||[]:n.split("")}function tK(n){for(var t=n.length;t--&&X.test(n.charAt(t)););return t}var tV=tO({"&":"&","<":"<",">":">",""":'"',"'":"'"}),tH=function n(t){var r,X,ng,ny,nd=(t=null==t?n4:tH.defaults(n4.Object(),t,tH.pick(n4,nJ))).Array,nb=t.Date,nw=t.Error,nm=t.Function,nx=t.Math,nj=t.Object,nA=t.RegExp,nk=t.String,nI=t.TypeError,nO=nd.prototype,nR=nm.prototype,nz=nj.prototype,nE=t["__core-js_shared__"],nS=nR.toString,nW=nz.hasOwnProperty,nL=0,nC=(r=/[^.]+$/.exec(nE&&nE.keys&&nE.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",nB=nz.toString,nU=nS.call(nj),nT=n4._,nD=nA("^"+nS.call(nW).replace(J,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),n$=n5?t.Buffer:e,nM=t.Symbol,nF=t.Uint8Array,nN=n$?n$.allocUnsafe:e,nP=tN(nj.getPrototypeOf,nj),nG=nj.create,nV=nz.propertyIsEnumerable,n0=nO.splice,n3=nM?nM.isConcatSpreadable:e,n8=nM?nM.iterator:e,n6=nM?nM.toStringTag:e,n9=function(){try{var n=uh(nj,"defineProperty");return n({},"",{}),n}catch(n){}}(),n7=t.clearTimeout!==n4.clearTimeout&&t.clearTimeout,tn=nb&&nb.now!==n4.Date.now&&nb.now,tb=t.setTimeout!==n4.setTimeout&&t.setTimeout,tO=nx.ceil,tJ=nx.floor,tY=nj.getOwnPropertySymbols,tQ=n$?n$.isBuffer:e,tX=t.isFinite,t0=nO.join,t1=tN(nj.keys,nj),t2=nx.max,t3=nx.min,t8=nb.now,t4=t.parseInt,t6=nx.random,t9=nO.reverse,t5=uh(t,"DataView"),t7=uh(t,"Map"),rn=uh(t,"Promise"),rt=uh(t,"Set"),rr=uh(t,"WeakMap"),re=uh(nj,"create"),ru=rr&&new rr,ri={},ro=uT(t5),rf=uT(t7),ra=uT(rn),rc=uT(rt),rl=uT(rr),rs=nM?nM.prototype:e,rh=rs?rs.valueOf:e,rp=rs?rs.toString:e;function rv(n){if(iV(n)&&!iT(n)&&!(n instanceof rd)){if(n instanceof ry)return n;if(nW.call(n,"__wrapped__"))return uD(n)}return new ry(n)}var r_=function(){function n(){}return function(t){if(!iK(t))return{};if(nG)return nG(t);n.prototype=t;var r=new n;return n.prototype=e,r}}();function rg(){}function ry(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=e}function rd(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=0xffffffff,this.__views__=[]}function rb(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function rw(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function rm(n){var t=-1,r=null==n?0:n.length;for(this.clear();++t<r;){var e=n[t];this.set(e[0],e[1])}}function rx(n){var t=-1,r=null==n?0:n.length;for(this.__data__=new rm;++t<r;)this.add(n[t])}function rj(n){var t=this.__data__=new rw(n);this.size=t.size}function rA(n,t){var r=iT(n),e=!r&&iU(n),u=!r&&!e&&iF(n),i=!r&&!e&&!u&&i2(n),o=r||e||u||i,f=o?tE(n.length,nk):[],a=f.length;for(var c in n)(t||nW.call(n,c))&&!(o&&("length"==c||u&&("offset"==c||"parent"==c)||i&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||ub(c,a)))&&f.push(c);return f}function rk(n){var t=n.length;return t?n[ec(0,t-1)]:e}rv.templateSettings={escape:q,evaluate:Z,interpolate:G,variable:"",imports:{_:rv}},rv.prototype=rg.prototype,rv.prototype.constructor=rv,ry.prototype=r_(rg.prototype),ry.prototype.constructor=ry,rd.prototype=r_(rg.prototype),rd.prototype.constructor=rd,rb.prototype.clear=function(){this.__data__=re?re(null):{},this.size=0},rb.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=!!t,t},rb.prototype.get=function(n){var t=this.__data__;if(re){var r=t[n];return r===i?e:r}return nW.call(t,n)?t[n]:e},rb.prototype.has=function(n){var t=this.__data__;return re?t[n]!==e:nW.call(t,n)},rb.prototype.set=function(n,t){var r=this.__data__;return this.size+=+!this.has(n),r[n]=re&&e===t?i:t,this},rw.prototype.clear=function(){this.__data__=[],this.size=0},rw.prototype.delete=function(n){var t=this.__data__,r=rR(t,n);return!(r<0)&&(r==t.length-1?t.pop():n0.call(t,r,1),--this.size,!0)},rw.prototype.get=function(n){var t=this.__data__,r=rR(t,n);return r<0?e:t[r][1]},rw.prototype.has=function(n){return rR(this.__data__,n)>-1},rw.prototype.set=function(n,t){var r=this.__data__,e=rR(r,n);return e<0?(++this.size,r.push([n,t])):r[e][1]=t,this},rm.prototype.clear=function(){this.size=0,this.__data__={hash:new rb,map:new(t7||rw),string:new rb}},rm.prototype.delete=function(n){var t=ul(this,n).delete(n);return this.size-=!!t,t},rm.prototype.get=function(n){return ul(this,n).get(n)},rm.prototype.has=function(n){return ul(this,n).has(n)},rm.prototype.set=function(n,t){var r=ul(this,n),e=r.size;return r.set(n,t),this.size+=+(r.size!=e),this},rx.prototype.add=rx.prototype.push=function(n){return this.__data__.set(n,i),this},rx.prototype.has=function(n){return this.__data__.has(n)};function rI(n,t,r){(e===r||iL(n[t],r))&&(e!==r||t in n)||rS(n,t,r)}function rO(n,t,r){var u=n[t];nW.call(n,t)&&iL(u,r)&&(e!==r||t in n)||rS(n,t,r)}function rR(n,t){for(var r=n.length;r--;)if(iL(n[r][0],t))return r;return -1}function rz(n,t,r,e){return rD(n,function(n,u,i){t(e,n,r(n),i)}),e}function rE(n,t){return n&&eF(t,ov(t),n)}function rS(n,t,r){"__proto__"==t&&n9?n9(n,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[t]=r}function rW(n,t){for(var r=-1,u=t.length,i=nd(u),o=null==n;++r<u;)i[r]=o?e:oc(n,t[r]);return i}function rL(n,t,r){return n==n&&(e!==r&&(n=n<=r?n:r),e!==t&&(n=n>=t?n:t)),n}function rC(n,t,r,u,i,o){var f,a=1&t,c=2&t,s=4&t;if(r&&(f=i?r(n,u,i,o):r(n)),e!==f)return f;if(!iK(n))return n;var v=iT(n);if(v){if(k=(w=n).length,T=new w.constructor(k),k&&"string"==typeof w[0]&&nW.call(w,"index")&&(T.index=w.index,T.input=w.input),f=T,!a)return eM(n,f)}else{var w,k,T,D,$,M,F,N,P=u_(n),q=P==_||P==g;if(iF(n))return eC(n,a);if(P==b||P==l||q&&!i){if(f=c||q?{}:uy(n),!a){return c?(D=n,$=(N=f)&&eF(n,o_(n),N),eF(D,uv(D),$)):(M=n,F=rE(f,n),eF(M,up(M),F))}}else{if(!nX[P])return i?n:{};f=function(n,t,r){var e,u,i=n.constructor;switch(t){case I:return eB(n);case h:case p:return new i(+n);case O:return e=r?eB(n.buffer):n.buffer,new n.constructor(e,n.byteOffset,n.byteLength);case R:case z:case E:case S:case W:case L:case C:case B:case U:return eU(n,r);case y:return new i;case d:case j:return new i(n);case m:return(u=new n.constructor(n.source,nf.exec(n))).lastIndex=n.lastIndex,u;case x:return new i;case A:return rh?nj(rh.call(n)):{}}}(n,P,a)}}o||(o=new rj);var Z=o.get(n);if(Z)return Z;o.set(n,f),iX(n)?n.forEach(function(e){f.add(rC(e,t,r,e,n,o))}):iH(n)&&n.forEach(function(e,u){f.set(u,rC(e,t,r,u,n,o))});var G=s?c?ui:uu:c?o_:ov,K=v?e:G(n);return tc(K||n,function(e,u){K&&(e=n[u=e]),rO(f,u,rC(e,t,r,u,n,o))}),f}function rB(n,t,r){var u=r.length;if(null==n)return!u;for(n=nj(n);u--;){var i=r[u],o=t[i],f=n[i];if(e===f&&!(i in n)||!o(f))return!1}return!0}function rU(n,t,r){if("function"!=typeof n)throw new nI(u);return uE(function(){n.apply(e,r)},t)}function rT(n,t,r,e){var u=-1,i=th,o=!0,f=n.length,a=[],c=t.length;if(!f)return a;r&&(t=tv(t,tW(r))),e?(i=tp,o=!1):t.length>=200&&(i=tC,o=!1,t=new rx(t));n:for(;++u<f;){var l=n[u],s=null==r?l:r(l);if(l=e||0!==l?l:0,o&&s==s){for(var h=c;h--;)if(t[h]===s)continue n;a.push(l)}else i(t,s,e)||a.push(l)}return a}rj.prototype.clear=function(){this.__data__=new rw,this.size=0},rj.prototype.delete=function(n){var t=this.__data__,r=t.delete(n);return this.size=t.size,r},rj.prototype.get=function(n){return this.__data__.get(n)},rj.prototype.has=function(n){return this.__data__.has(n)},rj.prototype.set=function(n,t){var r=this.__data__;if(r instanceof rw){var e=r.__data__;if(!t7||e.length<199)return e.push([n,t]),this.size=++r.size,this;r=this.__data__=new rm(e)}return r.set(n,t),this.size=r.size,this};var rD=eq(rG),r$=eq(rK,!0);function rM(n,t){var r=!0;return rD(n,function(n,e,u){return r=!!t(n,e,u)}),r}function rF(n,t,r){for(var u=-1,i=n.length;++u<i;){var o=n[u],f=t(o);if(null!=f&&(e===a?f==f&&!i1(f):r(f,a)))var a=f,c=o}return c}function rN(n,t){var r=[];return rD(n,function(n,e,u){t(n,e,u)&&r.push(n)}),r}function rP(n,t,r,e,u){var i=-1,o=n.length;for(r||(r=ud),u||(u=[]);++i<o;){var f=n[i];t>0&&r(f)?t>1?rP(f,t-1,r,e,u):t_(u,f):e||(u[u.length]=f)}return u}var rq=eZ(),rZ=eZ(!0);function rG(n,t){return n&&rq(n,t,ov)}function rK(n,t){return n&&rZ(n,t,ov)}function rV(n,t){return ts(t,function(t){return iq(n[t])})}function rH(n,t){t=eS(t,n);for(var r=0,u=t.length;null!=n&&r<u;)n=n[uU(t[r++])];return r&&r==u?n:e}function rJ(n,t,r){var e=t(n);return iT(n)?e:t_(e,r(n))}function rY(n){var t;return null==n?e===n?"[object Undefined]":"[object Null]":n6&&n6 in nj(n)?function(n){var t=nW.call(n,n6),r=n[n6];try{n[n6]=e;var u=!0}catch(n){}var i=nB.call(n);return u&&(t?n[n6]=r:delete n[n6]),i}(n):(t=n,nB.call(t))}function rQ(n,t){return n>t}function rX(n,t){return null!=n&&nW.call(n,t)}function r0(n,t){return null!=n&&t in nj(n)}function r1(n,t,r){for(var u=r?tp:th,i=n[0].length,o=n.length,f=o,a=nd(o),c=1/0,l=[];f--;){var s=n[f];f&&t&&(s=tv(s,tW(t))),c=t3(s.length,c),a[f]=!r&&(t||i>=120&&s.length>=120)?new rx(f&&s):e}s=n[0];var h=-1,p=a[0];n:for(;++h<i&&l.length<c;){var v=s[h],_=t?t(v):v;if(v=r||0!==v?v:0,!(p?tC(p,_):u(l,_,r))){for(f=o;--f;){var g=a[f];if(!(g?tC(g,_):u(n[f],_,r)))continue n}p&&p.push(_),l.push(v)}}return l}function r2(n,t,r){t=eS(t,n);var u=null==(n=uO(n,t))?n:n[uU(uH(t))];return null==u?e:tf(u,n,r)}function r3(n){return iV(n)&&rY(n)==l}function r8(n,t,r,u,i){return n===t||(null!=n&&null!=t&&(iV(n)||iV(t))?function(n,t,r,u,i,o){var f=iT(n),a=iT(t),c=f?s:u_(n),_=a?s:u_(t);c=c==l?b:c,_=_==l?b:_;var g=c==b,w=_==b,k=c==_;if(k&&iF(n)){if(!iF(t))return!1;f=!0,g=!1}if(k&&!g)return o||(o=new rj),f||i2(n)?ur(n,t,r,u,i,o):function(n,t,r,e,u,i,o){switch(r){case O:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)break;n=n.buffer,t=t.buffer;case I:if(n.byteLength!=t.byteLength||!i(new nF(n),new nF(t)))break;return!0;case h:case p:case d:return iL(+n,+t);case v:return n.name==t.name&&n.message==t.message;case m:case j:return n==t+"";case y:var f=tF;case x:var a=1&e;if(f||(f=tq),n.size!=t.size&&!a)break;var c=o.get(n);if(c)return c==t;e|=2,o.set(n,t);var l=ur(f(n),f(t),e,u,i,o);return o.delete(n),l;case A:if(rh)return rh.call(n)==rh.call(t)}return!1}(n,t,c,r,u,i,o);if(!(1&r)){var R=g&&nW.call(n,"__wrapped__"),z=w&&nW.call(t,"__wrapped__");if(R||z){var E=R?n.value():n,S=z?t.value():t;return o||(o=new rj),i(E,S,r,u,o)}}return!!k&&(o||(o=new rj),function(n,t,r,u,i,o){var f=1&r,a=uu(n),c=a.length;if(c!=uu(t).length&&!f)return!1;for(var l=c;l--;){var s=a[l];if(!(f?s in t:nW.call(t,s)))return!1}var h=o.get(n),p=o.get(t);if(h&&p)return h==t&&p==n;var v=!0;o.set(n,t),o.set(t,n);for(var _=f;++l<c;){var g=n[s=a[l]],y=t[s];if(u)var d=f?u(y,g,s,t,n,o):u(g,y,s,n,t,o);if(!(e===d?g===y||i(g,y,r,u,o):d)){v=!1;break}_||(_="constructor"==s)}if(v&&!_){var b=n.constructor,w=t.constructor;b!=w&&"constructor"in n&&"constructor"in t&&!("function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w)&&(v=!1)}return o.delete(n),o.delete(t),v}(n,t,r,u,i,o))}(n,t,r,u,r8,i):n!=n&&t!=t)}function r4(n,t,r,u){var i=r.length,o=i,f=!u;if(null==n)return!o;for(n=nj(n);i--;){var a=r[i];if(f&&a[2]?a[1]!==n[a[0]]:!(a[0]in n))return!1}for(;++i<o;){var c=(a=r[i])[0],l=n[c],s=a[1];if(f&&a[2]){if(e===l&&!(c in n))return!1}else{var h=new rj;if(u)var p=u(l,s,c,n,t,h);if(!(e===p?r8(s,l,3,u,h):p))return!1}}return!0}function r6(n){var t;return!(!iK(n)||(t=n,nC&&nC in t))&&(iq(n)?nD:nl).test(uT(n))}function r9(n){return"function"==typeof n?n:null==n?oM:"object"==typeof n?iT(n)?er(n[0],n[1]):et(n):oH(n)}function r5(n){if(!uA(n))return t1(n);var t=[];for(var r in nj(n))nW.call(n,r)&&"constructor"!=r&&t.push(r);return t}function r7(n,t){return n<t}function en(n,t){var r=-1,e=i$(n)?nd(n.length):[];return rD(n,function(n,u,i){e[++r]=t(n,u,i)}),e}function et(n){var t=us(n);return 1==t.length&&t[0][2]?uk(t[0][0],t[0][1]):function(r){return r===n||r4(r,n,t)}}function er(n,t){var r;return um(n)&&(r=t)==r&&!iK(r)?uk(uU(n),t):function(r){var u=oc(r,n);return e===u&&u===t?ol(r,n):r8(t,u,3)}}function ee(n,t,r,u,i){n!==t&&rq(t,function(o,f){if(i||(i=new rj),iK(o))!function(n,t,r,u,i,o,f){var a=uR(n,r),c=uR(t,r),l=f.get(c);if(l)return rI(n,r,l);var s=o?o(a,c,r+"",n,t,f):e,h=e===s;if(h){var p=iT(c),v=!p&&iF(c),_=!p&&!v&&i2(c);s=c,p||v||_?iT(a)?s=a:iM(a)?s=eM(a):v?(h=!1,s=eC(c,!0)):_?(h=!1,s=eU(c,!0)):s=[]:iY(c)||iU(c)?(s=a,iU(a)?s=on(a):(!iK(a)||iq(a))&&(s=uy(c))):h=!1}h&&(f.set(c,s),i(s,c,u,o,f),f.delete(c)),rI(n,r,s)}(n,t,f,r,ee,u,i);else{var a=u?u(uR(n,f),o,f+"",n,t,i):e;e===a&&(a=o),rI(n,f,a)}},o_)}function eu(n,t){var r=n.length;if(r)return ub(t+=t<0?r:0,r)?n[t]:e}function ei(n,t,r){t=t.length?tv(t,function(n){return iT(n)?function(t){return rH(t,1===n.length?n[0]:n)}:n}):[oM];var e=-1;t=tv(t,tW(uc()));var u=en(n,function(n,r,u){return{criteria:tv(t,function(t){return t(n)}),index:++e,value:n}}),i=u.length;for(u.sort(function(n,t){return function(n,t,r){for(var e=-1,u=n.criteria,i=t.criteria,o=u.length,f=r.length;++e<o;){var a=eT(u[e],i[e]);if(a){if(e>=f)return a;return a*("desc"==r[e]?-1:1)}}return n.index-t.index}(n,t,r)});i--;)u[i]=u[i].value;return u}function eo(n,t,r){for(var e=-1,u=t.length,i={};++e<u;){var o=t[e],f=rH(n,o);r(f,o)&&eh(i,eS(o,n),f)}return i}function ef(n,t,r,e){var u=e?tj:tx,i=-1,o=t.length,f=n;for(n===t&&(t=eM(t)),r&&(f=tv(n,tW(r)));++i<o;)for(var a=0,c=t[i],l=r?r(c):c;(a=u(f,l,a,e))>-1;)f!==n&&n0.call(f,a,1),n0.call(n,a,1);return n}function ea(n,t){for(var r=n?t.length:0,e=r-1;r--;){var u=t[r];if(r==e||u!==i){var i=u;ub(u)?n0.call(n,u,1):ej(n,u)}}return n}function ec(n,t){return n+tJ(t6()*(t-n+1))}function el(n,t){var r="";if(!n||t<1||t>0x1fffffffffffff)return r;do t%2&&(r+=n),(t=tJ(t/2))&&(n+=n);while(t);return r}function es(n,t){return uS(uI(n,t,oM),n+"")}function eh(n,t,r,u){if(!iK(n))return n;t=eS(t,n);for(var i=-1,o=t.length,f=o-1,a=n;null!=a&&++i<o;){var c=uU(t[i]),l=r;if("__proto__"===c||"constructor"===c||"prototype"===c)break;if(i!=f){var s=a[c];l=u?u(s,c,a):e,e===l&&(l=iK(s)?s:ub(t[i+1])?[]:{})}rO(a,c,l),a=a[c]}return n}var ep=ru?function(n,t){return ru.set(n,t),n}:oM,ev=n9?function(n,t){return n9(n,"toString",{configurable:!0,enumerable:!1,value:oT(t),writable:!0})}:oM;function e_(n,t,r){var e=-1,u=n.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var i=nd(u);++e<u;)i[e]=n[e+t];return i}function eg(n,t){var r;return rD(n,function(n,e,u){return!(r=t(n,e,u))}),!!r}function ey(n,t,r){var e=0,u=null==n?e:n.length;if("number"==typeof t&&t==t&&u<=0x7fffffff){for(;e<u;){var i=e+u>>>1,o=n[i];null!==o&&!i1(o)&&(r?o<=t:o<t)?e=i+1:u=i}return u}return ed(n,t,oM,r)}function ed(n,t,r,u){var i=0,o=null==n?0:n.length;if(0===o)return 0;for(var f=(t=r(t))!=t,a=null===t,c=i1(t),l=e===t;i<o;){var s=tJ((i+o)/2),h=r(n[s]),p=e!==h,v=null===h,_=h==h,g=i1(h);if(f)var y=u||_;else y=l?_&&(u||p):a?_&&p&&(u||!v):c?_&&p&&!v&&(u||!g):!v&&!g&&(u?h<=t:h<t);y?i=s+1:o=s}return t3(o,0xfffffffe)}function eb(n,t){for(var r=-1,e=n.length,u=0,i=[];++r<e;){var o=n[r],f=t?t(o):o;if(!r||!iL(f,a)){var a=f;i[u++]=0===o?0:o}}return i}function ew(n){return"number"==typeof n?n:i1(n)?a:+n}function em(n){if("string"==typeof n)return n;if(iT(n))return tv(n,em)+"";if(i1(n))return rp?rp.call(n):"";var t=n+"";return"0"==t&&1/n==-f?"-0":t}function ex(n,t,r){var e=-1,u=th,i=n.length,o=!0,f=[],a=f;if(r)o=!1,u=tp;else if(i>=200){var c=t?null:e6(n);if(c)return tq(c);o=!1,u=tC,a=new rx}else a=t?[]:f;n:for(;++e<i;){var l=n[e],s=t?t(l):l;if(l=r||0!==l?l:0,o&&s==s){for(var h=a.length;h--;)if(a[h]===s)continue n;t&&a.push(s),f.push(l)}else u(a,s,r)||(a!==f&&a.push(s),f.push(l))}return f}function ej(n,t){t=eS(t,n);var r=-1,e=t.length;if(!e)return!0;for(;++r<e;){var u=uU(t[r]);if("__proto__"===u&&!nW.call(n,"__proto__")||("constructor"===u||"prototype"===u)&&r<e-1)return!1}var i=uO(n,t);return null==i||delete i[uU(uH(t))]}function eA(n,t,r,e){return eh(n,t,r(rH(n,t)),e)}function ek(n,t,r,e){for(var u=n.length,i=e?u:-1;(e?i--:++i<u)&&t(n[i],i,n););return r?e_(n,e?0:i,e?i+1:u):e_(n,e?i+1:0,e?u:i)}function eI(n,t){var r=n;return r instanceof rd&&(r=r.value()),tg(t,function(n,t){return t.func.apply(t.thisArg,t_([n],t.args))},r)}function eO(n,t,r){var e=n.length;if(e<2)return e?ex(n[0]):[];for(var u=-1,i=nd(e);++u<e;)for(var o=n[u],f=-1;++f<e;)f!=u&&(i[u]=rT(i[u]||o,n[f],t,r));return ex(rP(i,1),t,r)}function eR(n,t,r){for(var u=-1,i=n.length,o=t.length,f={};++u<i;){var a=u<o?t[u]:e;r(f,n[u],a)}return f}function ez(n){return iM(n)?n:[]}function eE(n){return"function"==typeof n?n:oM}function eS(n,t){return iT(n)?n:um(n,t)?[n]:uB(ot(n))}function eW(n,t,r){var u=n.length;return r=e===r?u:r,!t&&r>=u?n:e_(n,t,r)}var eL=n7||function(n){return n4.clearTimeout(n)};function eC(n,t){if(t)return n.slice();var r=n.length,e=nN?nN(r):new n.constructor(r);return n.copy(e),e}function eB(n){var t=new n.constructor(n.byteLength);return new nF(t).set(new nF(n)),t}function eU(n,t){var r=t?eB(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}function eT(n,t){if(n!==t){var r=e!==n,u=null===n,i=n==n,o=i1(n),f=e!==t,a=null===t,c=t==t,l=i1(t);if(!a&&!l&&!o&&n>t||o&&f&&c&&!a&&!l||u&&f&&c||!r&&c||!i)return 1;if(!u&&!o&&!l&&n<t||l&&r&&i&&!u&&!o||a&&r&&i||!f&&i||!c)return -1}return 0}function eD(n,t,r,e){for(var u=-1,i=n.length,o=r.length,f=-1,a=t.length,c=t2(i-o,0),l=nd(a+c),s=!e;++f<a;)l[f]=t[f];for(;++u<o;)(s||u<i)&&(l[r[u]]=n[u]);for(;c--;)l[f++]=n[u++];return l}function e$(n,t,r,e){for(var u=-1,i=n.length,o=-1,f=r.length,a=-1,c=t.length,l=t2(i-f,0),s=nd(l+c),h=!e;++u<l;)s[u]=n[u];for(var p=u;++a<c;)s[p+a]=t[a];for(;++o<f;)(h||u<i)&&(s[p+r[o]]=n[u++]);return s}function eM(n,t){var r=-1,e=n.length;for(t||(t=nd(e));++r<e;)t[r]=n[r];return t}function eF(n,t,r,u){var i=!r;r||(r={});for(var o=-1,f=t.length;++o<f;){var a=t[o],c=u?u(r[a],n[a],a,r,n):e;e===c&&(c=n[a]),i?rS(r,a,c):rO(r,a,c)}return r}function eN(n,t){return function(r,e){var u=iT(r)?ta:rz,i=t?t():{};return u(r,n,uc(e,2),i)}}function eP(n){return es(function(t,r){var u=-1,i=r.length,o=i>1?r[i-1]:e,f=i>2?r[2]:e;for(o=n.length>3&&"function"==typeof o?(i--,o):e,f&&uw(r[0],r[1],f)&&(o=i<3?e:o,i=1),t=nj(t);++u<i;){var a=r[u];a&&n(t,a,u,o)}return t})}function eq(n,t){return function(r,e){if(null==r)return r;if(!i$(r))return n(r,e);for(var u=r.length,i=t?u:-1,o=nj(r);(t?i--:++i<u)&&!1!==e(o[i],i,o););return r}}function eZ(n){return function(t,r,e){for(var u=-1,i=nj(t),o=e(t),f=o.length;f--;){var a=o[n?f:++u];if(!1===r(i[a],a,i))break}return t}}function eG(n){return function(t){var r=tM(t=ot(t))?tG(t):e,u=r?r[0]:t.charAt(0),i=r?eW(r,1).join(""):t.slice(1);return u[n]()+i}}function eK(n){return function(t){return tg(oC(oI(t).replace(nq,"")),n,"")}}function eV(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var r=r_(n.prototype),e=n.apply(r,t);return iK(e)?e:r}}function eH(n){return function(t,r,u){var i=nj(t);if(!i$(t)){var o=uc(r,3);t=ov(t),r=function(n){return o(i[n],n,i)}}var f=n(t,r,u);return f>-1?i[o?t[f]:f]:e}}function eJ(n){return ue(function(t){var r=t.length,i=r,o=ry.prototype.thru;for(n&&t.reverse();i--;){var f=t[i];if("function"!=typeof f)throw new nI(u);if(o&&!a&&"wrapper"==uf(f))var a=new ry([],!0)}for(i=a?i:r;++i<r;){var c=uf(f=t[i]),l="wrapper"==c?uo(f):e;a=l&&ux(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?a[uf(l[0])].apply(a,l[3]):1==f.length&&ux(f)?a[c]():a.thru(f)}return function(){var n=arguments,e=n[0];if(a&&1==n.length&&iT(e))return a.plant(e).value();for(var u=0,i=r?t[u].apply(this,n):e;++u<r;)i=t[u].call(this,i);return i}})}function eY(n,t,r,u,i,o,f,a,c,l){var s=128&t,h=1&t,p=2&t,v=24&t,_=512&t,g=p?e:eV(n);function y(){for(var d=arguments.length,b=nd(d),w=d;w--;)b[w]=arguments[w];if(v)var m=ua(y),x=function(n,t){for(var r=n.length,e=0;r--;)n[r]===t&&++e;return e}(b,m);if(u&&(b=eD(b,u,i,v)),o&&(b=e$(b,o,f,v)),d-=x,v&&d<l){var j=tP(b,m);return e8(n,t,eY,y.placeholder,r,b,j,a,c,l-d)}var A=h?r:this,k=p?A[n]:n;return d=b.length,a?b=function(n,t){for(var r=n.length,u=t3(t.length,r),i=eM(n);u--;){var o=t[u];n[u]=ub(o,r)?i[o]:e}return n}(b,a):_&&d>1&&b.reverse(),s&&c<d&&(b.length=c),this&&this!==n4&&this instanceof y&&(k=g||eV(k)),k.apply(A,b)}return y}function eQ(n,t){return function(r,e){var u,i;return u=t(e),i={},rG(r,function(t,r,e){n(i,u(t),r,e)}),i}}function eX(n,t){return function(r,u){var i;if(e===r&&e===u)return t;if(e!==r&&(i=r),e!==u){if(e===i)return u;"string"==typeof r||"string"==typeof u?(r=em(r),u=em(u)):(r=ew(r),u=ew(u)),i=n(r,u)}return i}}function e0(n){return ue(function(t){return t=tv(t,tW(uc())),es(function(r){var e=this;return n(t,function(n){return tf(n,e,r)})})})}function e1(n,t){var r=(t=e===t?" ":em(t)).length;if(r<2)return r?el(t,n):t;var u=el(t,tO(n/tZ(t)));return tM(t)?eW(tG(u),0,n).join(""):u.slice(0,n)}function e2(n){return function(t,r,u){u&&"number"!=typeof u&&uw(t,r,u)&&(r=u=e),t=i6(t),e===r?(r=t,t=0):r=i6(r),u=e===u?t<r?1:-1:i6(u);for(var i=t,o=r,f=u,a=-1,c=t2(tO((o-i)/(f||1)),0),l=nd(c);c--;)l[n?c:++a]=i,i+=f;return l}}function e3(n){return function(t,r){return("string"!=typeof t||"string"!=typeof r)&&(t=i7(t),r=i7(r)),n(t,r)}}function e8(n,t,r,u,i,o,f,a,c,l){var s=8&t,h=s?f:e,p=s?e:f,v=s?o:e,_=s?e:o;t|=s?32:64,4&(t&=~(s?64:32))||(t&=-4);var g=[n,t,i,v,h,_,p,a,c,l],y=r.apply(e,g);return ux(n)&&uz(y,g),y.placeholder=u,uW(y,n,t)}function e4(n){var t=nx[n];return function(n,r){if(n=i7(n),(r=null==r?0:t3(i9(r),292))&&tX(n)){var e=(ot(n)+"e").split("e");return+((e=(ot(t(e[0]+"e"+(+e[1]+r)))+"e").split("e"))[0]+"e"+(e[1]-r))}return t(n)}}var e6=rt&&1/tq(new rt([,-0]))[1]==f?function(n){return new rt(n)}:oZ;function e9(n){return function(t){var r,e,u=u_(t);return u==y?tF(t):u==x?(r=-1,e=Array(t.size),t.forEach(function(n){e[++r]=[n,n]}),e):tv(n(t),function(n){return[n,t[n]]})}}function e5(n,t,r,i,f,a,c,l){var s=2&t;if(!s&&"function"!=typeof n)throw new nI(u);var h=i?i.length:0;if(h||(t&=-97,i=f=e),c=e===c?c:t2(i9(c),0),l=e===l?l:i9(l),h-=f?f.length:0,64&t){var p=i,v=f;i=f=e}var _=s?e:uo(n),g=[n,t,r,i,f,p,v,a,c,l];if(_&&function(n,t){var r=n[1],e=t[1],u=r|e,i=u<131,f=128==e&&8==r||128==e&&256==r&&n[7].length<=t[8]||384==e&&t[7].length<=t[8]&&8==r;if(i||f){1&e&&(n[2]=t[2],u|=1&r?0:4);var a=t[3];if(a){var c=n[3];n[3]=c?eD(c,a,t[4]):a,n[4]=c?tP(n[3],o):t[4]}(a=t[5])&&(c=n[5],n[5]=c?e$(c,a,t[6]):a,n[6]=c?tP(n[5],o):t[6]),(a=t[7])&&(n[7]=a),128&e&&(n[8]=null==n[8]?t[8]:t3(n[8],t[8])),null==n[9]&&(n[9]=t[9]),n[0]=t[0],n[1]=u}}(g,_),n=g[0],t=g[1],r=g[2],i=g[3],f=g[4],(l=g[9]=g[9]===e?s?0:n.length:t2(g[9]-h,0))||!(24&t)||(t&=-25),t&&1!=t)8==t||16==t?R=function(n,t,r){var u=eV(n);function i(){for(var o=arguments.length,f=nd(o),a=o,c=ua(i);a--;)f[a]=arguments[a];var l=o<3&&f[0]!==c&&f[o-1]!==c?[]:tP(f,c);return(o-=l.length)<r?e8(n,t,eY,i.placeholder,e,f,l,e,e,r-o):tf(this&&this!==n4&&this instanceof i?u:n,this,f)}return i}(n,t,l):32!=t&&33!=t||f.length?R=eY.apply(e,g):(y=n,d=t,b=r,w=i,m=1&d,x=eV(y),R=function n(){for(var t=-1,r=arguments.length,e=-1,u=w.length,i=nd(u+r),o=this&&this!==n4&&this instanceof n?x:y;++e<u;)i[e]=w[e];for(;r--;)i[e++]=arguments[++t];return tf(o,m?b:this,i)});else var y,d,b,w,m,x,j,A,k,I,O,R=(j=n,A=t,k=r,I=1&A,O=eV(j),function n(){return(this&&this!==n4&&this instanceof n?O:j).apply(I?k:this,arguments)});return uW((_?ep:uz)(R,g),n,t)}function e7(n,t,r,u){return e===n||iL(n,nz[r])&&!nW.call(u,r)?t:n}function un(n,t,r,u,i,o){return iK(n)&&iK(t)&&(o.set(t,n),ee(n,t,e,un,o),o.delete(t)),n}function ut(n){return iY(n)?e:n}function ur(n,t,r,u,i,o){var f=1&r,a=n.length,c=t.length;if(a!=c&&!(f&&c>a))return!1;var l=o.get(n),s=o.get(t);if(l&&s)return l==t&&s==n;var h=-1,p=!0,v=2&r?new rx:e;for(o.set(n,t),o.set(t,n);++h<a;){var _=n[h],g=t[h];if(u)var y=f?u(g,_,h,t,n,o):u(_,g,h,n,t,o);if(e!==y){if(y)continue;p=!1;break}if(v){if(!td(t,function(n,t){if(!tC(v,t)&&(_===n||i(_,n,r,u,o)))return v.push(t)})){p=!1;break}}else if(!(_===g||i(_,g,r,u,o))){p=!1;break}}return o.delete(n),o.delete(t),p}function ue(n){return uS(uI(n,e,uq),n+"")}function uu(n){return rJ(n,ov,up)}function ui(n){return rJ(n,o_,uv)}var uo=ru?function(n){return ru.get(n)}:oZ;function uf(n){for(var t=n.name+"",r=ri[t],e=nW.call(ri,t)?r.length:0;e--;){var u=r[e],i=u.func;if(null==i||i==n)return u.name}return t}function ua(n){return(nW.call(rv,"placeholder")?rv:n).placeholder}function uc(){var n=rv.iteratee||oF;return n=n===oF?r9:n,arguments.length?n(arguments[0],arguments[1]):n}function ul(n,t){var r,e,u=n.__data__;return("string"==(e=typeof(r=t))||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==r:null===r)?u["string"==typeof t?"string":"hash"]:u.map}function us(n){for(var t=ov(n),r=t.length;r--;){var e,u=t[r],i=n[u];t[r]=[u,i,(e=i)==e&&!iK(e)]}return t}function uh(n,t){var r=null==n?e:n[t];return r6(r)?r:e}var up=tY?function(n){return null==n?[]:ts(tY(n=nj(n)),function(t){return nV.call(n,t)})}:oQ,uv=tY?function(n){for(var t=[];n;)t_(t,up(n)),n=nP(n);return t}:oQ,u_=rY;function ug(n,t,r){t=eS(t,n);for(var e=-1,u=t.length,i=!1;++e<u;){var o=uU(t[e]);if(!(i=null!=n&&r(n,o)))break;n=n[o]}return i||++e!=u?i:!!(u=null==n?0:n.length)&&iG(u)&&ub(o,u)&&(iT(n)||iU(n))}function uy(n){return"function"!=typeof n.constructor||uA(n)?{}:r_(nP(n))}function ud(n){return iT(n)||iU(n)||!!(n3&&n&&n[n3])}function ub(n,t){var r=typeof n;return!!(t=null==t?0x1fffffffffffff:t)&&("number"==r||"symbol"!=r&&nh.test(n))&&n>-1&&n%1==0&&n<t}function uw(n,t,r){if(!iK(r))return!1;var e=typeof t;return("number"==e?!!(i$(r)&&ub(t,r.length)):"string"==e&&t in r)&&iL(r[t],n)}function um(n,t){if(iT(n))return!1;var r=typeof n;return!!("number"==r||"symbol"==r||"boolean"==r||null==n||i1(n))||V.test(n)||!K.test(n)||null!=t&&n in nj(t)}function ux(n){var t=uf(n),r=rv[t];if("function"!=typeof r||!(t in rd.prototype))return!1;if(n===r)return!0;var e=uo(r);return!!e&&n===e[0]}(t5&&u_(new t5(new ArrayBuffer(1)))!=O||t7&&u_(new t7)!=y||rn&&u_(rn.resolve())!=w||rt&&u_(new rt)!=x||rr&&u_(new rr)!=k)&&(u_=function(n){var t=rY(n),r=t==b?n.constructor:e,u=r?uT(r):"";if(u)switch(u){case ro:return O;case rf:return y;case ra:return w;case rc:return x;case rl:return k}return t});var uj=nE?iq:oX;function uA(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||nz)}function uk(n,t){return function(r){return null!=r&&r[n]===t&&(e!==t||n in nj(r))}}function uI(n,t,r){return t=t2(e===t?n.length-1:t,0),function(){for(var e=arguments,u=-1,i=t2(e.length-t,0),o=nd(i);++u<i;)o[u]=e[t+u];u=-1;for(var f=nd(t+1);++u<t;)f[u]=e[u];return f[t]=r(o),tf(n,this,f)}}function uO(n,t){return t.length<2?n:rH(n,e_(t,0,-1))}function uR(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}var uz=uL(ep),uE=tb||function(n,t){return n4.setTimeout(n,t)},uS=uL(ev);function uW(n,t,r){var e,u,i,o=t+"";return uS(n,function(n,t){var r=t.length;if(!r)return n;var e=r-1;return t[e]=(r>1?"& ":"")+t[e],t=t.join(r>2?", ":" "),n.replace(nn,"{\n/* [wrapped with "+t+"] */\n")}(o,(e=(i=o.match(nt))?i[1].split(nr):[],u=r,tc(c,function(n){var t="_."+n[0];u&n[1]&&!th(e,t)&&e.push(t)}),e.sort())))}function uL(n){var t=0,r=0;return function(){var u=t8(),i=16-(u-r);if(r=u,i>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(e,arguments)}}function uC(n,t){var r=-1,u=n.length,i=u-1;for(t=e===t?u:t;++r<t;){var o=ec(r,i),f=n[o];n[o]=n[r],n[r]=f}return n.length=t,n}var uB=(ng=(X=iO(function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(H,function(n,r,e,u){t.push(e?u.replace(ni,"$1"):r||n)}),t},function(n){return 500===ng.size&&ng.clear(),n})).cache,X);function uU(n){if("string"==typeof n||i1(n))return n;var t=n+"";return"0"==t&&1/n==-f?"-0":t}function uT(n){if(null!=n){try{return nS.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function uD(n){if(n instanceof rd)return n.clone();var t=new ry(n.__wrapped__,n.__chain__);return t.__actions__=eM(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var u$=es(function(n,t){return iM(n)?rT(n,rP(t,1,iM,!0)):[]}),uM=es(function(n,t){var r=uH(t);return iM(r)&&(r=e),iM(n)?rT(n,rP(t,1,iM,!0),uc(r,2)):[]}),uF=es(function(n,t){var r=uH(t);return iM(r)&&(r=e),iM(n)?rT(n,rP(t,1,iM,!0),e,r):[]});function uN(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:i9(r);return u<0&&(u=t2(e+u,0)),tm(n,uc(t,3),u)}function uP(n,t,r){var u=null==n?0:n.length;if(!u)return -1;var i=u-1;return e!==r&&(i=i9(r),i=r<0?t2(u+i,0):t3(i,u-1)),tm(n,uc(t,3),i,!0)}function uq(n){return(null==n?0:n.length)?rP(n,1):[]}function uZ(n){return n&&n.length?n[0]:e}var uG=es(function(n){var t=tv(n,ez);return t.length&&t[0]===n[0]?r1(t):[]}),uK=es(function(n){var t=uH(n),r=tv(n,ez);return t===uH(r)?t=e:r.pop(),r.length&&r[0]===n[0]?r1(r,uc(t,2)):[]}),uV=es(function(n){var t=uH(n),r=tv(n,ez);return(t="function"==typeof t?t:e)&&r.pop(),r.length&&r[0]===n[0]?r1(r,e,t):[]});function uH(n){var t=null==n?0:n.length;return t?n[t-1]:e}var uJ=es(uY);function uY(n,t){return n&&n.length&&t&&t.length?ef(n,t):n}var uQ=ue(function(n,t){var r=null==n?0:n.length,e=rW(n,t);return ea(n,tv(t,function(n){return ub(n,r)?+n:n}).sort(eT)),e});function uX(n){return null==n?n:t9.call(n)}var u0=es(function(n){return ex(rP(n,1,iM,!0))}),u1=es(function(n){var t=uH(n);return iM(t)&&(t=e),ex(rP(n,1,iM,!0),uc(t,2))}),u2=es(function(n){var t=uH(n);return t="function"==typeof t?t:e,ex(rP(n,1,iM,!0),e,t)});function u3(n){if(!(n&&n.length))return[];var t=0;return n=ts(n,function(n){if(iM(n))return t=t2(n.length,t),!0}),tE(t,function(t){return tv(n,tI(t))})}function u8(n,t){if(!(n&&n.length))return[];var r=u3(n);return null==t?r:tv(r,function(n){return tf(t,e,n)})}var u4=es(function(n,t){return iM(n)?rT(n,t):[]}),u6=es(function(n){return eO(ts(n,iM))}),u9=es(function(n){var t=uH(n);return iM(t)&&(t=e),eO(ts(n,iM),uc(t,2))}),u5=es(function(n){var t=uH(n);return t="function"==typeof t?t:e,eO(ts(n,iM),e,t)}),u7=es(u3),it=es(function(n){var t=n.length,r=t>1?n[t-1]:e;return r="function"==typeof r?(n.pop(),r):e,u8(n,r)});function ir(n){var t=rv(n);return t.__chain__=!0,t}function ie(n,t){return t(n)}var iu=ue(function(n){var t=n.length,r=t?n[0]:0,u=this.__wrapped__,i=function(t){return rW(t,n)};return!(t>1)&&!this.__actions__.length&&u instanceof rd&&ub(r)?((u=u.slice(r,+r+ +!!t)).__actions__.push({func:ie,args:[i],thisArg:e}),new ry(u,this.__chain__).thru(function(n){return t&&!n.length&&n.push(e),n})):this.thru(i)}),ii=eN(function(n,t,r){nW.call(n,r)?++n[r]:rS(n,r,1)}),io=eH(uN),ia=eH(uP);function ic(n,t){return(iT(n)?tc:rD)(n,uc(t,3))}function il(n,t){return(iT(n)?function(n,t){for(var r=null==n?0:n.length;r--&&!1!==t(n[r],r,n););return n}:r$)(n,uc(t,3))}var is=eN(function(n,t,r){nW.call(n,r)?n[r].push(t):rS(n,r,[t])}),ih=es(function(n,t,r){var e=-1,u="function"==typeof t,i=i$(n)?nd(n.length):[];return rD(n,function(n){i[++e]=u?tf(t,n,r):r2(n,t,r)}),i}),ip=eN(function(n,t,r){rS(n,r,t)});function iv(n,t){return(iT(n)?tv:en)(n,uc(t,3))}var i_=eN(function(n,t,r){n[+!r].push(t)},function(){return[[],[]]}),ig=es(function(n,t){if(null==n)return[];var r=t.length;return r>1&&uw(n,t[0],t[1])?t=[]:r>2&&uw(t[0],t[1],t[2])&&(t=[t[0]]),ei(n,rP(t,1),[])}),iy=tn||function(){return n4.Date.now()};function id(n,t,r){return t=r?e:t,t=n&&null==t?n.length:t,e5(n,128,e,e,e,e,t)}function ib(n,t){var r;if("function"!=typeof t)throw new nI(u);return n=i9(n),function(){return--n>0&&(r=t.apply(this,arguments)),n<=1&&(t=e),r}}var iw=es(function(n,t,r){var e=1;if(r.length){var u=tP(r,ua(iw));e|=32}return e5(n,e,t,r,u)}),im=es(function(n,t,r){var e=3;if(r.length){var u=tP(r,ua(im));e|=32}return e5(t,e,n,r,u)});function ix(n,t,r){t=r?e:t;var u=e5(n,8,e,e,e,e,e,t);return u.placeholder=ix.placeholder,u}function ij(n,t,r){t=r?e:t;var u=e5(n,16,e,e,e,e,e,t);return u.placeholder=ij.placeholder,u}function iA(n,t,r){var i,o,f,a,c,l,s=0,h=!1,p=!1,v=!0;if("function"!=typeof n)throw new nI(u);function _(t){var r=i,u=o;return i=o=e,s=t,a=n.apply(u,r)}function g(n){var r=n-l,u=n-s;return e===l||r>=t||r<0||p&&u>=f}function y(){var n,r,e,u=iy();if(g(u))return d(u);c=uE(y,(n=u-l,r=u-s,e=t-n,p?t3(e,f-r):e))}function d(n){return(c=e,v&&i)?_(n):(i=o=e,a)}function b(){var n,r=iy(),u=g(r);if(i=arguments,o=this,l=r,u){if(e===c)return s=n=l,c=uE(y,t),h?_(n):a;if(p)return eL(c),c=uE(y,t),_(l)}return e===c&&(c=uE(y,t)),a}return t=i7(t)||0,iK(r)&&(h=!!r.leading,f=(p="maxWait"in r)?t2(i7(r.maxWait)||0,t):f,v="trailing"in r?!!r.trailing:v),b.cancel=function(){e!==c&&eL(c),s=0,i=l=o=c=e},b.flush=function(){return e===c?a:d(iy())},b}var ik=es(function(n,t){return rU(n,1,t)}),iI=es(function(n,t,r){return rU(n,i7(t)||0,r)});function iO(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new nI(u);var r=function(){var e=arguments,u=t?t.apply(this,e):e[0],i=r.cache;if(i.has(u))return i.get(u);var o=n.apply(this,e);return r.cache=i.set(u,o)||i,o};return r.cache=new(iO.Cache||rm),r}function iR(n){if("function"!=typeof n)throw new nI(u);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}iO.Cache=rm;var iz=es(function(n,t){var r=(t=1==t.length&&iT(t[0])?tv(t[0],tW(uc())):tv(rP(t,1),tW(uc()))).length;return es(function(e){for(var u=-1,i=t3(e.length,r);++u<i;)e[u]=t[u].call(this,e[u]);return tf(n,this,e)})}),iE=es(function(n,t){var r=tP(t,ua(iE));return e5(n,32,e,t,r)}),iS=es(function(n,t){var r=tP(t,ua(iS));return e5(n,64,e,t,r)}),iW=ue(function(n,t){return e5(n,256,e,e,e,t)});function iL(n,t){return n===t||n!=n&&t!=t}var iC=e3(rQ),iB=e3(function(n,t){return n>=t}),iU=r3(function(){return arguments}())?r3:function(n){return iV(n)&&nW.call(n,"callee")&&!nV.call(n,"callee")},iT=nd.isArray,iD=tt?tW(tt):function(n){return iV(n)&&rY(n)==I};function i$(n){return null!=n&&iG(n.length)&&!iq(n)}function iM(n){return iV(n)&&i$(n)}var iF=tQ||oX,iN=tr?tW(tr):function(n){return iV(n)&&rY(n)==p};function iP(n){if(!iV(n))return!1;var t=rY(n);return t==v||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!iY(n)}function iq(n){if(!iK(n))return!1;var t=rY(n);return t==_||t==g||"[object AsyncFunction]"==t||"[object Proxy]"==t}function iZ(n){return"number"==typeof n&&n==i9(n)}function iG(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=0x1fffffffffffff}function iK(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function iV(n){return null!=n&&"object"==typeof n}var iH=te?tW(te):function(n){return iV(n)&&u_(n)==y};function iJ(n){return"number"==typeof n||iV(n)&&rY(n)==d}function iY(n){if(!iV(n)||rY(n)!=b)return!1;var t=nP(n);if(null===t)return!0;var r=nW.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&nS.call(r)==nU}var iQ=tu?tW(tu):function(n){return iV(n)&&rY(n)==m},iX=ti?tW(ti):function(n){return iV(n)&&u_(n)==x};function i0(n){return"string"==typeof n||!iT(n)&&iV(n)&&rY(n)==j}function i1(n){return"symbol"==typeof n||iV(n)&&rY(n)==A}var i2=to?tW(to):function(n){return iV(n)&&iG(n.length)&&!!nQ[rY(n)]},i3=e3(r7),i8=e3(function(n,t){return n<=t});function i4(n){if(!n)return[];if(i$(n))return i0(n)?tG(n):eM(n);if(n8&&n[n8]){for(var t,r=n[n8](),e=[];!(t=r.next()).done;)e.push(t.value);return e}var u=u_(n);return(u==y?tF:u==x?tq:oj)(n)}function i6(n){return n?(n=i7(n))===f||n===-f?(n<0?-1:1)*17976931348623157e292:n==n?n:0:0===n?n:0}function i9(n){var t=i6(n),r=t%1;return t==t?r?t-r:t:0}function i5(n){return n?rL(i9(n),0,0xffffffff):0}function i7(n){if("number"==typeof n)return n;if(i1(n))return a;if(iK(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=iK(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=tS(n);var r=nc.test(n);return r||ns.test(n)?n2(n.slice(2),r?2:8):na.test(n)?a:+n}function on(n){return eF(n,o_(n))}function ot(n){return null==n?"":em(n)}var or=eP(function(n,t){if(uA(t)||i$(t))return void eF(t,ov(t),n);for(var r in t)nW.call(t,r)&&rO(n,r,t[r])}),oe=eP(function(n,t){eF(t,o_(t),n)}),ou=eP(function(n,t,r,e){eF(t,o_(t),n,e)}),oi=eP(function(n,t,r,e){eF(t,ov(t),n,e)}),oo=ue(rW),of=es(function(n,t){n=nj(n);var r=-1,u=t.length,i=u>2?t[2]:e;for(i&&uw(t[0],t[1],i)&&(u=1);++r<u;)for(var o=t[r],f=o_(o),a=-1,c=f.length;++a<c;){var l=f[a],s=n[l];(e===s||iL(s,nz[l])&&!nW.call(n,l))&&(n[l]=o[l])}return n}),oa=es(function(n){return n.push(e,un),tf(oy,e,n)});function oc(n,t,r){var u=null==n?e:rH(n,t);return e===u?r:u}function ol(n,t){return null!=n&&ug(n,t,r0)}var os=eQ(function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=nB.call(t)),n[t]=r},oT(oM)),oh=eQ(function(n,t,r){null!=t&&"function"!=typeof t.toString&&(t=nB.call(t)),nW.call(n,t)?n[t].push(r):n[t]=[r]},uc),op=es(r2);function ov(n){return i$(n)?rA(n):r5(n)}function o_(n){return i$(n)?rA(n,!0):function(n){if(!iK(n)){var t=n,r=[];if(null!=t)for(var e in nj(t))r.push(e);return r}var u=uA(n),i=[];for(var o in n)"constructor"==o&&(u||!nW.call(n,o))||i.push(o);return i}(n)}var og=eP(function(n,t,r){ee(n,t,r)}),oy=eP(function(n,t,r,e){ee(n,t,r,e)}),od=ue(function(n,t){var r={};if(null==n)return r;var e=!1;t=tv(t,function(t){return t=eS(t,n),e||(e=t.length>1),t}),eF(n,ui(n),r),e&&(r=rC(r,7,ut));for(var u=t.length;u--;)ej(r,t[u]);return r}),ob=ue(function(n,t){return null==n?{}:eo(n,t,function(t,r){return ol(n,r)})});function ow(n,t){if(null==n)return{};var r=tv(ui(n),function(n){return[n]});return t=uc(t),eo(n,r,function(n,r){return t(n,r[0])})}var om=e9(ov),ox=e9(o_);function oj(n){return null==n?[]:tL(n,ov(n))}var oA=eK(function(n,t,r){return t=t.toLowerCase(),n+(r?ok(t):t)});function ok(n){return oL(ot(n).toLowerCase())}function oI(n){return(n=ot(n))&&n.replace(np,tT).replace(nZ,"")}var oO=eK(function(n,t,r){return n+(r?"-":"")+t.toLowerCase()}),oR=eK(function(n,t,r){return n+(r?" ":"")+t.toLowerCase()}),oz=eG("toLowerCase"),oE=eK(function(n,t,r){return n+(r?"_":"")+t.toLowerCase()}),oS=eK(function(n,t,r){return n+(r?" ":"")+oL(t)}),oW=eK(function(n,t,r){return n+(r?" ":"")+t.toUpperCase()}),oL=eG("toUpperCase");function oC(n,t,r){if(n=ot(n),t=r?e:t,e===t){var u;return(u=n,nH.test(u))?n.match(nK)||[]:n.match(ne)||[]}return n.match(t)||[]}var oB=es(function(n,t){try{return tf(n,e,t)}catch(n){return iP(n)?n:new nw(n)}}),oU=ue(function(n,t){return tc(t,function(t){rS(n,t=uU(t),iw(n[t],n))}),n});function oT(n){return function(){return n}}var oD=eJ(),o$=eJ(!0);function oM(n){return n}function oF(n){return r9("function"==typeof n?n:rC(n,1))}var oN=es(function(n,t){return function(r){return r2(r,n,t)}}),oP=es(function(n,t){return function(r){return r2(n,r,t)}});function oq(n,t,r){var e=ov(t),u=rV(t,e);null!=r||iK(t)&&(u.length||!e.length)||(r=t,t=n,n=this,u=rV(t,ov(t)));var i=!(iK(r)&&"chain"in r)||!!r.chain,o=iq(n);return tc(u,function(r){var e=t[r];n[r]=e,o&&(n.prototype[r]=function(){var t=this.__chain__;if(i||t){var r=n(this.__wrapped__);return(r.__actions__=eM(this.__actions__)).push({func:e,args:arguments,thisArg:n}),r.__chain__=t,r}return e.apply(n,t_([this.value()],arguments))})}),n}function oZ(){}var oG=e0(tv),oK=e0(tl),oV=e0(td);function oH(n){return um(n)?tI(uU(n)):function(t){return rH(t,n)}}var oJ=e2(),oY=e2(!0);function oQ(){return[]}function oX(){return!1}var o0=eX(function(n,t){return n+t},0),o1=e4("ceil"),o2=eX(function(n,t){return n/t},1),o3=e4("floor"),o8=eX(function(n,t){return n*t},1),o4=e4("round"),o6=eX(function(n,t){return n-t},0);return rv.after=function(n,t){if("function"!=typeof t)throw new nI(u);return n=i9(n),function(){if(--n<1)return t.apply(this,arguments)}},rv.ary=id,rv.assign=or,rv.assignIn=oe,rv.assignInWith=ou,rv.assignWith=oi,rv.at=oo,rv.before=ib,rv.bind=iw,rv.bindAll=oU,rv.bindKey=im,rv.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return iT(n)?n:[n]},rv.chain=ir,rv.chunk=function(n,t,r){t=(r?uw(n,t,r):e===t)?1:t2(i9(t),0);var u=null==n?0:n.length;if(!u||t<1)return[];for(var i=0,o=0,f=nd(tO(u/t));i<u;)f[o++]=e_(n,i,i+=t);return f},rv.compact=function(n){for(var t=-1,r=null==n?0:n.length,e=0,u=[];++t<r;){var i=n[t];i&&(u[e++]=i)}return u},rv.concat=function(){var n=arguments.length;if(!n)return[];for(var t=nd(n-1),r=arguments[0],e=n;e--;)t[e-1]=arguments[e];return t_(iT(r)?eM(r):[r],rP(t,1))},rv.cond=function(n){var t=null==n?0:n.length,r=uc();return n=t?tv(n,function(n){if("function"!=typeof n[1])throw new nI(u);return[r(n[0]),n[1]]}):[],es(function(r){for(var e=-1;++e<t;){var u=n[e];if(tf(u[0],this,r))return tf(u[1],this,r)}})},rv.conforms=function(n){var t,r;return r=ov(t=rC(n,1)),function(n){return rB(n,t,r)}},rv.constant=oT,rv.countBy=ii,rv.create=function(n,t){var r=r_(n);return null==t?r:rE(r,t)},rv.curry=ix,rv.curryRight=ij,rv.debounce=iA,rv.defaults=of,rv.defaultsDeep=oa,rv.defer=ik,rv.delay=iI,rv.difference=u$,rv.differenceBy=uM,rv.differenceWith=uF,rv.drop=function(n,t,r){var u=null==n?0:n.length;return u?e_(n,(t=r||e===t?1:i9(t))<0?0:t,u):[]},rv.dropRight=function(n,t,r){var u=null==n?0:n.length;return u?e_(n,0,(t=u-(t=r||e===t?1:i9(t)))<0?0:t):[]},rv.dropRightWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!0,!0):[]},rv.dropWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!0):[]},rv.fill=function(n,t,r,u){var i=null==n?0:n.length;if(!i)return[];r&&"number"!=typeof r&&uw(n,t,r)&&(r=0,u=i);var o=r,f=u,a=n.length;for((o=i9(o))<0&&(o=-o>a?0:a+o),(f=e===f||f>a?a:i9(f))<0&&(f+=a),f=o>f?0:i5(f);o<f;)n[o++]=t;return n},rv.filter=function(n,t){return(iT(n)?ts:rN)(n,uc(t,3))},rv.flatMap=function(n,t){return rP(iv(n,t),1)},rv.flatMapDeep=function(n,t){return rP(iv(n,t),f)},rv.flatMapDepth=function(n,t,r){return r=e===r?1:i9(r),rP(iv(n,t),r)},rv.flatten=uq,rv.flattenDeep=function(n){return(null==n?0:n.length)?rP(n,f):[]},rv.flattenDepth=function(n,t){return(null==n?0:n.length)?rP(n,t=e===t?1:i9(t)):[]},rv.flip=function(n){return e5(n,512)},rv.flow=oD,rv.flowRight=o$,rv.fromPairs=function(n){for(var t=-1,r=null==n?0:n.length,e={};++t<r;){var u=n[t];rS(e,u[0],u[1])}return e},rv.functions=function(n){return null==n?[]:rV(n,ov(n))},rv.functionsIn=function(n){return null==n?[]:rV(n,o_(n))},rv.groupBy=is,rv.initial=function(n){return(null==n?0:n.length)?e_(n,0,-1):[]},rv.intersection=uG,rv.intersectionBy=uK,rv.intersectionWith=uV,rv.invert=os,rv.invertBy=oh,rv.invokeMap=ih,rv.iteratee=oF,rv.keyBy=ip,rv.keys=ov,rv.keysIn=o_,rv.map=iv,rv.mapKeys=function(n,t){var r={};return t=uc(t,3),rG(n,function(n,e,u){rS(r,t(n,e,u),n)}),r},rv.mapValues=function(n,t){var r={};return t=uc(t,3),rG(n,function(n,e,u){rS(r,e,t(n,e,u))}),r},rv.matches=function(n){return et(rC(n,1))},rv.matchesProperty=function(n,t){return er(n,rC(t,1))},rv.memoize=iO,rv.merge=og,rv.mergeWith=oy,rv.method=oN,rv.methodOf=oP,rv.mixin=oq,rv.negate=iR,rv.nthArg=function(n){return n=i9(n),es(function(t){return eu(t,n)})},rv.omit=od,rv.omitBy=function(n,t){return ow(n,iR(uc(t)))},rv.once=function(n){return ib(2,n)},rv.orderBy=function(n,t,r,u){return null==n?[]:(iT(t)||(t=null==t?[]:[t]),iT(r=u?e:r)||(r=null==r?[]:[r]),ei(n,t,r))},rv.over=oG,rv.overArgs=iz,rv.overEvery=oK,rv.overSome=oV,rv.partial=iE,rv.partialRight=iS,rv.partition=i_,rv.pick=ob,rv.pickBy=ow,rv.property=oH,rv.propertyOf=function(n){return function(t){return null==n?e:rH(n,t)}},rv.pull=uJ,rv.pullAll=uY,rv.pullAllBy=function(n,t,r){return n&&n.length&&t&&t.length?ef(n,t,uc(r,2)):n},rv.pullAllWith=function(n,t,r){return n&&n.length&&t&&t.length?ef(n,t,e,r):n},rv.pullAt=uQ,rv.range=oJ,rv.rangeRight=oY,rv.rearg=iW,rv.reject=function(n,t){return(iT(n)?ts:rN)(n,iR(uc(t,3)))},rv.remove=function(n,t){var r=[];if(!(n&&n.length))return r;var e=-1,u=[],i=n.length;for(t=uc(t,3);++e<i;){var o=n[e];t(o,e,n)&&(r.push(o),u.push(e))}return ea(n,u),r},rv.rest=function(n,t){if("function"!=typeof n)throw new nI(u);return es(n,t=e===t?t:i9(t))},rv.reverse=uX,rv.sampleSize=function(n,t,r){return t=(r?uw(n,t,r):e===t)?1:i9(t),(iT(n)?function(n,t){return uC(eM(n),rL(t,0,n.length))}:function(n,t){var r=oj(n);return uC(r,rL(t,0,r.length))})(n,t)},rv.set=function(n,t,r){return null==n?n:eh(n,t,r)},rv.setWith=function(n,t,r,u){return u="function"==typeof u?u:e,null==n?n:eh(n,t,r,u)},rv.shuffle=function(n){return(iT(n)?function(n){return uC(eM(n))}:function(n){return uC(oj(n))})(n)},rv.slice=function(n,t,r){var u=null==n?0:n.length;return u?(r&&"number"!=typeof r&&uw(n,t,r)?(t=0,r=u):(t=null==t?0:i9(t),r=e===r?u:i9(r)),e_(n,t,r)):[]},rv.sortBy=ig,rv.sortedUniq=function(n){return n&&n.length?eb(n):[]},rv.sortedUniqBy=function(n,t){return n&&n.length?eb(n,uc(t,2)):[]},rv.split=function(n,t,r){return(r&&"number"!=typeof r&&uw(n,t,r)&&(t=r=e),r=e===r?0xffffffff:r>>>0)?(n=ot(n))&&("string"==typeof t||null!=t&&!iQ(t))&&!(t=em(t))&&tM(n)?eW(tG(n),0,r):n.split(t,r):[]},rv.spread=function(n,t){if("function"!=typeof n)throw new nI(u);return t=null==t?0:t2(i9(t),0),es(function(r){var e=r[t],u=eW(r,0,t);return e&&t_(u,e),tf(n,this,u)})},rv.tail=function(n){var t=null==n?0:n.length;return t?e_(n,1,t):[]},rv.take=function(n,t,r){return n&&n.length?e_(n,0,(t=r||e===t?1:i9(t))<0?0:t):[]},rv.takeRight=function(n,t,r){var u=null==n?0:n.length;return u?e_(n,(t=u-(t=r||e===t?1:i9(t)))<0?0:t,u):[]},rv.takeRightWhile=function(n,t){return n&&n.length?ek(n,uc(t,3),!1,!0):[]},rv.takeWhile=function(n,t){return n&&n.length?ek(n,uc(t,3)):[]},rv.tap=function(n,t){return t(n),n},rv.throttle=function(n,t,r){var e=!0,i=!0;if("function"!=typeof n)throw new nI(u);return iK(r)&&(e="leading"in r?!!r.leading:e,i="trailing"in r?!!r.trailing:i),iA(n,t,{leading:e,maxWait:t,trailing:i})},rv.thru=ie,rv.toArray=i4,rv.toPairs=om,rv.toPairsIn=ox,rv.toPath=function(n){return iT(n)?tv(n,uU):i1(n)?[n]:eM(uB(ot(n)))},rv.toPlainObject=on,rv.transform=function(n,t,r){var e=iT(n),u=e||iF(n)||i2(n);if(t=uc(t,4),null==r){var i=n&&n.constructor;r=u?e?new i:[]:iK(n)&&iq(i)?r_(nP(n)):{}}return(u?tc:rG)(n,function(n,e,u){return t(r,n,e,u)}),r},rv.unary=function(n){return id(n,1)},rv.union=u0,rv.unionBy=u1,rv.unionWith=u2,rv.uniq=function(n){return n&&n.length?ex(n):[]},rv.uniqBy=function(n,t){return n&&n.length?ex(n,uc(t,2)):[]},rv.uniqWith=function(n,t){return t="function"==typeof t?t:e,n&&n.length?ex(n,e,t):[]},rv.unset=function(n,t){return null==n||ej(n,t)},rv.unzip=u3,rv.unzipWith=u8,rv.update=function(n,t,r){return null==n?n:eA(n,t,eE(r))},rv.updateWith=function(n,t,r,u){return u="function"==typeof u?u:e,null==n?n:eA(n,t,eE(r),u)},rv.values=oj,rv.valuesIn=function(n){return null==n?[]:tL(n,o_(n))},rv.without=u4,rv.words=oC,rv.wrap=function(n,t){return iE(eE(t),n)},rv.xor=u6,rv.xorBy=u9,rv.xorWith=u5,rv.zip=u7,rv.zipObject=function(n,t){return eR(n||[],t||[],rO)},rv.zipObjectDeep=function(n,t){return eR(n||[],t||[],eh)},rv.zipWith=it,rv.entries=om,rv.entriesIn=ox,rv.extend=oe,rv.extendWith=ou,oq(rv,rv),rv.add=o0,rv.attempt=oB,rv.camelCase=oA,rv.capitalize=ok,rv.ceil=o1,rv.clamp=function(n,t,r){return e===r&&(r=t,t=e),e!==r&&(r=(r=i7(r))==r?r:0),e!==t&&(t=(t=i7(t))==t?t:0),rL(i7(n),t,r)},rv.clone=function(n){return rC(n,4)},rv.cloneDeep=function(n){return rC(n,5)},rv.cloneDeepWith=function(n,t){return rC(n,5,t="function"==typeof t?t:e)},rv.cloneWith=function(n,t){return rC(n,4,t="function"==typeof t?t:e)},rv.conformsTo=function(n,t){return null==t||rB(n,t,ov(t))},rv.deburr=oI,rv.defaultTo=function(n,t){return null==n||n!=n?t:n},rv.divide=o2,rv.endsWith=function(n,t,r){n=ot(n),t=em(t);var u=n.length,i=r=e===r?u:rL(i9(r),0,u);return(r-=t.length)>=0&&n.slice(r,i)==t},rv.eq=iL,rv.escape=function(n){return(n=ot(n))&&P.test(n)?n.replace(F,tD):n},rv.escapeRegExp=function(n){return(n=ot(n))&&Y.test(n)?n.replace(J,"\\$&"):n},rv.every=function(n,t,r){var u=iT(n)?tl:rM;return r&&uw(n,t,r)&&(t=e),u(n,uc(t,3))},rv.find=io,rv.findIndex=uN,rv.findKey=function(n,t){return tw(n,uc(t,3),rG)},rv.findLast=ia,rv.findLastIndex=uP,rv.findLastKey=function(n,t){return tw(n,uc(t,3),rK)},rv.floor=o3,rv.forEach=ic,rv.forEachRight=il,rv.forIn=function(n,t){return null==n?n:rq(n,uc(t,3),o_)},rv.forInRight=function(n,t){return null==n?n:rZ(n,uc(t,3),o_)},rv.forOwn=function(n,t){return n&&rG(n,uc(t,3))},rv.forOwnRight=function(n,t){return n&&rK(n,uc(t,3))},rv.get=oc,rv.gt=iC,rv.gte=iB,rv.has=function(n,t){return null!=n&&ug(n,t,rX)},rv.hasIn=ol,rv.head=uZ,rv.identity=oM,rv.includes=function(n,t,r,e){n=i$(n)?n:oj(n),r=r&&!e?i9(r):0;var u=n.length;return r<0&&(r=t2(u+r,0)),i0(n)?r<=u&&n.indexOf(t,r)>-1:!!u&&tx(n,t,r)>-1},rv.indexOf=function(n,t,r){var e=null==n?0:n.length;if(!e)return -1;var u=null==r?0:i9(r);return u<0&&(u=t2(e+u,0)),tx(n,t,u)},rv.inRange=function(n,t,r){var u,i,o;return t=i6(t),e===r?(r=t,t=0):r=i6(r),(u=n=i7(n))>=t3(i=t,o=r)&&u<t2(i,o)},rv.invoke=op,rv.isArguments=iU,rv.isArray=iT,rv.isArrayBuffer=iD,rv.isArrayLike=i$,rv.isArrayLikeObject=iM,rv.isBoolean=function(n){return!0===n||!1===n||iV(n)&&rY(n)==h},rv.isBuffer=iF,rv.isDate=iN,rv.isElement=function(n){return iV(n)&&1===n.nodeType&&!iY(n)},rv.isEmpty=function(n){if(null==n)return!0;if(i$(n)&&(iT(n)||"string"==typeof n||"function"==typeof n.splice||iF(n)||i2(n)||iU(n)))return!n.length;var t=u_(n);if(t==y||t==x)return!n.size;if(uA(n))return!r5(n).length;for(var r in n)if(nW.call(n,r))return!1;return!0},rv.isEqual=function(n,t){return r8(n,t)},rv.isEqualWith=function(n,t,r){var u=(r="function"==typeof r?r:e)?r(n,t):e;return e===u?r8(n,t,e,r):!!u},rv.isError=iP,rv.isFinite=function(n){return"number"==typeof n&&tX(n)},rv.isFunction=iq,rv.isInteger=iZ,rv.isLength=iG,rv.isMap=iH,rv.isMatch=function(n,t){return n===t||r4(n,t,us(t))},rv.isMatchWith=function(n,t,r){return r="function"==typeof r?r:e,r4(n,t,us(t),r)},rv.isNaN=function(n){return iJ(n)&&n!=+n},rv.isNative=function(n){if(uj(n))throw new nw("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return r6(n)},rv.isNil=function(n){return null==n},rv.isNull=function(n){return null===n},rv.isNumber=iJ,rv.isObject=iK,rv.isObjectLike=iV,rv.isPlainObject=iY,rv.isRegExp=iQ,rv.isSafeInteger=function(n){return iZ(n)&&n>=-0x1fffffffffffff&&n<=0x1fffffffffffff},rv.isSet=iX,rv.isString=i0,rv.isSymbol=i1,rv.isTypedArray=i2,rv.isUndefined=function(n){return e===n},rv.isWeakMap=function(n){return iV(n)&&u_(n)==k},rv.isWeakSet=function(n){return iV(n)&&"[object WeakSet]"==rY(n)},rv.join=function(n,t){return null==n?"":t0.call(n,t)},rv.kebabCase=oO,rv.last=uH,rv.lastIndexOf=function(n,t,r){var u=null==n?0:n.length;if(!u)return -1;var i=u;return e!==r&&(i=(i=i9(r))<0?t2(u+i,0):t3(i,u-1)),t==t?function(n,t,r){for(var e=r+1;e--&&n[e]!==t;);return e}(n,t,i):tm(n,tA,i,!0)},rv.lowerCase=oR,rv.lowerFirst=oz,rv.lt=i3,rv.lte=i8,rv.max=function(n){return n&&n.length?rF(n,oM,rQ):e},rv.maxBy=function(n,t){return n&&n.length?rF(n,uc(t,2),rQ):e},rv.mean=function(n){return tk(n,oM)},rv.meanBy=function(n,t){return tk(n,uc(t,2))},rv.min=function(n){return n&&n.length?rF(n,oM,r7):e},rv.minBy=function(n,t){return n&&n.length?rF(n,uc(t,2),r7):e},rv.stubArray=oQ,rv.stubFalse=oX,rv.stubObject=function(){return{}},rv.stubString=function(){return""},rv.stubTrue=function(){return!0},rv.multiply=o8,rv.nth=function(n,t){return n&&n.length?eu(n,i9(t)):e},rv.noConflict=function(){return n4._===this&&(n4._=nT),this},rv.noop=oZ,rv.now=iy,rv.pad=function(n,t,r){n=ot(n);var e=(t=i9(t))?tZ(n):0;if(!t||e>=t)return n;var u=(t-e)/2;return e1(tJ(u),r)+n+e1(tO(u),r)},rv.padEnd=function(n,t,r){n=ot(n);var e=(t=i9(t))?tZ(n):0;return t&&e<t?n+e1(t-e,r):n},rv.padStart=function(n,t,r){n=ot(n);var e=(t=i9(t))?tZ(n):0;return t&&e<t?e1(t-e,r)+n:n},rv.parseInt=function(n,t,r){return r||null==t?t=0:t&&(t*=1),t4(ot(n).replace(Q,""),t||0)},rv.random=function(n,t,r){if(r&&"boolean"!=typeof r&&uw(n,t,r)&&(t=r=e),e===r&&("boolean"==typeof t?(r=t,t=e):"boolean"==typeof n&&(r=n,n=e)),e===n&&e===t?(n=0,t=1):(n=i6(n),e===t?(t=n,n=0):t=i6(t)),n>t){var u=n;n=t,t=u}if(r||n%1||t%1){var i=t6();return t3(n+i*(t-n+n1("1e-"+((i+"").length-1))),t)}return ec(n,t)},rv.reduce=function(n,t,r){var e=iT(n)?tg:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,rD)},rv.reduceRight=function(n,t,r){var e=iT(n)?ty:tR,u=arguments.length<3;return e(n,uc(t,4),r,u,r$)},rv.repeat=function(n,t,r){return t=(r?uw(n,t,r):e===t)?1:i9(t),el(ot(n),t)},rv.replace=function(){var n=arguments,t=ot(n[0]);return n.length<3?t:t.replace(n[1],n[2])},rv.result=function(n,t,r){t=eS(t,n);var u=-1,i=t.length;for(i||(i=1,n=e);++u<i;){var o=null==n?e:n[uU(t[u])];e===o&&(u=i,o=r),n=iq(o)?o.call(n):o}return n},rv.round=o4,rv.runInContext=n,rv.sample=function(n){return(iT(n)?rk:function(n){return rk(oj(n))})(n)},rv.size=function(n){if(null==n)return 0;if(i$(n))return i0(n)?tZ(n):n.length;var t=u_(n);return t==y||t==x?n.size:r5(n).length},rv.snakeCase=oE,rv.some=function(n,t,r){var u=iT(n)?td:eg;return r&&uw(n,t,r)&&(t=e),u(n,uc(t,3))},rv.sortedIndex=function(n,t){return ey(n,t)},rv.sortedIndexBy=function(n,t,r){return ed(n,t,uc(r,2))},rv.sortedIndexOf=function(n,t){var r=null==n?0:n.length;if(r){var e=ey(n,t);if(e<r&&iL(n[e],t))return e}return -1},rv.sortedLastIndex=function(n,t){return ey(n,t,!0)},rv.sortedLastIndexBy=function(n,t,r){return ed(n,t,uc(r,2),!0)},rv.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var r=ey(n,t,!0)-1;if(iL(n[r],t))return r}return -1},rv.startCase=oS,rv.startsWith=function(n,t,r){return n=ot(n),r=null==r?0:rL(i9(r),0,n.length),t=em(t),n.slice(r,r+t.length)==t},rv.subtract=o6,rv.sum=function(n){return n&&n.length?tz(n,oM):0},rv.sumBy=function(n,t){return n&&n.length?tz(n,uc(t,2)):0},rv.template=function(n,t,r){var u=rv.templateSettings;r&&uw(n,t,r)&&(t=e),n=ot(n),t=oi({},t,u,e7);var i=oi({},t.imports,u.imports,e7),o=ov(i),f=tL(i,o);tc(o,function(n){if(nu.test(n))throw new nw("Invalid `imports` option passed into `_.template`")});var a,c,l=0,s=t.interpolate||nv,h="__p += '",p=nA((t.escape||nv).source+"|"+s.source+"|"+(s===G?no:nv).source+"|"+(t.evaluate||nv).source+"|$","g"),v="//# sourceURL="+(nW.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nY+"]")+"\n";n.replace(p,function(t,r,e,u,i,o){return e||(e=u),h+=n.slice(l,o).replace(n_,t$),r&&(a=!0,h+="' +\n__e("+r+") +\n'"),i&&(c=!0,h+="';\n"+i+";\n__p += '"),e&&(h+="' +\n((__t = ("+e+")) == null ? '' : __t) +\n'"),l=o+t.length,t}),h+="';\n";var _=nW.call(t,"variable")&&t.variable;if(_){if(nu.test(_))throw new nw("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(c?h.replace(T,""):h).replace(D,"$1").replace($,"$1;"),h="function("+(_||"obj")+") {\n"+(_?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(c?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=oB(function(){return nm(o,v+"return "+h).apply(e,f)});if(g.source=h,iP(g))throw g;return g},rv.times=function(n,t){if((n=i9(n))<1||n>0x1fffffffffffff)return[];var r=0xffffffff,e=t3(n,0xffffffff);t=uc(t),n-=0xffffffff;for(var u=tE(e,t);++r<n;)t(r);return u},rv.toFinite=i6,rv.toInteger=i9,rv.toLength=i5,rv.toLower=function(n){return ot(n).toLowerCase()},rv.toNumber=i7,rv.toSafeInteger=function(n){return n?rL(i9(n),-0x1fffffffffffff,0x1fffffffffffff):0===n?n:0},rv.toString=ot,rv.toUpper=function(n){return ot(n).toUpperCase()},rv.trim=function(n,t,r){if((n=ot(n))&&(r||e===t))return tS(n);if(!n||!(t=em(t)))return n;var u=tG(n),i=tG(t),o=tB(u,i),f=tU(u,i)+1;return eW(u,o,f).join("")},rv.trimEnd=function(n,t,r){if((n=ot(n))&&(r||e===t))return n.slice(0,tK(n)+1);if(!n||!(t=em(t)))return n;var u=tG(n),i=tU(u,tG(t))+1;return eW(u,0,i).join("")},rv.trimStart=function(n,t,r){if((n=ot(n))&&(r||e===t))return n.replace(Q,"");if(!n||!(t=em(t)))return n;var u=tG(n),i=tB(u,tG(t));return eW(u,i).join("")},rv.truncate=function(n,t){var r=30,u="...";if(iK(t)){var i="separator"in t?t.separator:i;r="length"in t?i9(t.length):r,u="omission"in t?em(t.omission):u}var o=(n=ot(n)).length;if(tM(n)){var f=tG(n);o=f.length}if(r>=o)return n;var a=r-tZ(u);if(a<1)return u;var c=f?eW(f,0,a).join(""):n.slice(0,a);if(e===i)return c+u;if(f&&(a+=c.length-a),iQ(i)){if(n.slice(a).search(i)){var l,s=c;for(i.global||(i=nA(i.source,ot(nf.exec(i))+"g")),i.lastIndex=0;l=i.exec(s);)var h=l.index;c=c.slice(0,e===h?a:h)}}else if(n.indexOf(em(i),a)!=a){var p=c.lastIndexOf(i);p>-1&&(c=c.slice(0,p))}return c+u},rv.unescape=function(n){return(n=ot(n))&&N.test(n)?n.replace(M,tV):n},rv.uniqueId=function(n){var t=++nL;return ot(n)+t},rv.upperCase=oW,rv.upperFirst=oL,rv.each=ic,rv.eachRight=il,rv.first=uZ,oq(rv,(ny={},rG(rv,function(n,t){nW.call(rv.prototype,t)||(ny[t]=n)}),ny),{chain:!1}),rv.VERSION="4.18.1",tc(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){rv[n].placeholder=rv}),tc(["drop","take"],function(n,t){rd.prototype[n]=function(r){r=e===r?1:t2(i9(r),0);var u=this.__filtered__&&!t?new rd(this):this.clone();return u.__filtered__?u.__takeCount__=t3(r,u.__takeCount__):u.__views__.push({size:t3(r,0xffffffff),type:n+(u.__dir__<0?"Right":"")}),u},rd.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}}),tc(["filter","map","takeWhile"],function(n,t){var r=t+1,e=1==r||3==r;rd.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:uc(n,3),type:r}),t.__filtered__=t.__filtered__||e,t}}),tc(["head","last"],function(n,t){var r="take"+(t?"Right":"");rd.prototype[n]=function(){return this[r](1).value()[0]}}),tc(["initial","tail"],function(n,t){var r="drop"+(t?"":"Right");rd.prototype[n]=function(){return this.__filtered__?new rd(this):this[r](1)}}),rd.prototype.compact=function(){return this.filter(oM)},rd.prototype.find=function(n){return this.filter(n).head()},rd.prototype.findLast=function(n){return this.reverse().find(n)},rd.prototype.invokeMap=es(function(n,t){return"function"==typeof n?new rd(this):this.map(function(r){return r2(r,n,t)})}),rd.prototype.reject=function(n){return this.filter(iR(uc(n)))},rd.prototype.slice=function(n,t){n=i9(n);var r=this;return r.__filtered__&&(n>0||t<0)?new rd(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),e!==t&&(r=(t=i9(t))<0?r.dropRight(-t):r.take(t-n)),r)},rd.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},rd.prototype.toArray=function(){return this.take(0xffffffff)},rG(rd.prototype,function(n,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),u=/^(?:head|last)$/.test(t),i=rv[u?"take"+("last"==t?"Right":""):t],o=u||/^find/.test(t);i&&(rv.prototype[t]=function(){var t=this.__wrapped__,f=u?[1]:arguments,a=t instanceof rd,c=f[0],l=a||iT(t),s=function(n){var t=i.apply(rv,t_([n],f));return u&&h?t[0]:t};l&&r&&"function"==typeof c&&1!=c.length&&(a=l=!1);var h=this.__chain__,p=!!this.__actions__.length,v=o&&!h,_=a&&!p;if(!o&&l){t=_?t:new rd(this);var g=n.apply(t,f);return g.__actions__.push({func:ie,args:[s],thisArg:e}),new ry(g,h)}return v&&_?n.apply(this,f):(g=this.thru(s),v?u?g.value()[0]:g.value():g)})}),tc(["pop","push","shift","sort","splice","unshift"],function(n){var t=nO[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",e=/^(?:pop|shift)$/.test(n);rv.prototype[n]=function(){var n=arguments;if(e&&!this.__chain__){var u=this.value();return t.apply(iT(u)?u:[],n)}return this[r](function(r){return t.apply(iT(r)?r:[],n)})}}),rG(rd.prototype,function(n,t){var r=rv[t];if(r){var e=r.name+"";nW.call(ri,e)||(ri[e]=[]),ri[e].push({name:t,func:r})}}),ri[eY(e,2).name]=[{name:"wrapper",func:e}],rd.prototype.clone=function(){var n=new rd(this.__wrapped__);return n.__actions__=eM(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=eM(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=eM(this.__views__),n},rd.prototype.reverse=function(){if(this.__filtered__){var n=new rd(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n},rd.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,r=iT(n),e=t<0,u=r?n.length:0,i=function(n,t,r){for(var e=-1,u=r.length;++e<u;){var i=r[e],o=i.size;switch(i.type){case"drop":n+=o;break;case"dropRight":t-=o;break;case"take":t=t3(t,n+o);break;case"takeRight":n=t2(n,t-o)}}return{start:n,end:t}}(0,u,this.__views__),o=i.start,f=i.end,a=f-o,c=e?f:o-1,l=this.__iteratees__,s=l.length,h=0,p=t3(a,this.__takeCount__);if(!r||!e&&u==a&&p==a)return eI(n,this.__actions__);var v=[];n:for(;a--&&h<p;){for(var _=-1,g=n[c+=t];++_<s;){var y=l[_],d=y.iteratee,b=y.type,w=d(g);if(2==b)g=w;else if(!w)if(1==b)continue n;else break n}v[h++]=g}return v},rv.prototype.at=iu,rv.prototype.chain=function(){return ir(this)},rv.prototype.commit=function(){return new ry(this.value(),this.__chain__)},rv.prototype.next=function(){this.__values__===e&&(this.__values__=i4(this.value()));var n=this.__index__>=this.__values__.length,t=n?e:this.__values__[this.__index__++];return{done:n,value:t}},rv.prototype.plant=function(n){for(var t,r=this;r instanceof rg;){var u=uD(r);u.__index__=0,u.__values__=e,t?i.__wrapped__=u:t=u;var i=u;r=r.__wrapped__}return i.__wrapped__=n,t},rv.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof rd){var t=n;return this.__actions__.length&&(t=new rd(this)),(t=t.reverse()).__actions__.push({func:ie,args:[uX],thisArg:e}),new ry(t,this.__chain__)}return this.thru(uX)},rv.prototype.toJSON=rv.prototype.valueOf=rv.prototype.value=function(){return eI(this.__wrapped__,this.__actions__)},rv.prototype.first=rv.prototype.head,n8&&(rv.prototype[n8]=function(){return this}),rv}();"function"==typeof define&&"object"==typeof define.amd&&define.amd?(n4._=tH,define(function(){return tH})):n9?((n9.exports=tH)._=tH,n6._=tH):n4._=tH}).call(this)}}]);
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/*! For license information please see 440.6f26c824.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.chunk_GreptimeDB_0_2_0_beta_1=self.chunk_GreptimeDB_0_2_0_beta_1||[]).push([["440"],{53299(e,t,r){r.r(t),r.d(t,{useFetchers:()=>rU,unstable_HistoryRouter:()=>rv,useLoaderData:()=>tk,ScrollRestoration:()=>rS,Route:()=>tW,MemoryRouter:()=>tI,useMatches:()=>tL,redirect:()=>et,useOutletContext:()=>tc,createRoutesFromElements:()=>tG,useLinkClickHandler:()=>rC,useRouteError:()=>tU,generatePath:()=>M,replace:()=>en,useHref:()=>tr,useParams:()=>th,UNSAFE_ViewTransitionContext:()=>ro,useRoutes:()=>tp,useSubmit:()=>rk,UNSAFE_NavigationContext:()=>e8,Navigate:()=>tz,UNSAFE_ErrorResponseImpl:()=>ea,UNSAFE_FetchersContext:()=>ri,useAsyncError:()=>tj,createRoutesFromChildren:()=>tG,unstable_usePrompt:()=>rF,useFetcher:()=>rA,useBlocker:()=>tO,createHashRouter:()=>rn,UNSAFE_useRouteId:()=>tC,useMatch:()=>ti,useNavigation:()=>tP,HashRouter:()=>rm,useFormAction:()=>r_,useResolvedPath:()=>tf,defer:()=>ee,Router:()=>t$,Routes:()=>tV,useActionData:()=>tA,useRouteLoaderData:()=>t_,Await:()=>tJ,matchPath:()=>O,UNSAFE_DataRouterContext:()=>e3,BrowserRouter:()=>rp,NavigationType:()=>c,Form:()=>rE,UNSAFE_RouteContext:()=>te,createSearchParams:()=>t3,RouterProvider:()=>rh,UNSAFE_LocationContext:()=>e6,parsePath:()=>P,Outlet:()=>tH,createMemoryRouter:()=>t0,UNSAFE_useScrollRestoration:()=>rM,useNavigate:()=>ts,matchRoutes:()=>_,createPath:()=>C,resolvePath:()=>I,useInRouterContext:()=>tn,useOutlet:()=>td,useAsyncValue:()=>tT,useViewTransitionState:()=>rN,Link:()=>rw,AbortedDeferredError:()=>Q,renderMatches:()=>tQ,NavLink:()=>rb,UNSAFE_DataRouterStateContext:()=>e5,json:()=>G,useSearchParams:()=>rP,redirectDocument:()=>er,useBeforeUnload:()=>rO,useLocation:()=>ta,createBrowserRouter:()=>rr,isRouteErrorResponse:()=>eo,useNavigationType:()=>to,useRevalidator:()=>tD});var n,a,o,i,l,s,u,c,d,h,f,p=r(70451),m=r(20231);function v(){return(v=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}(n=c||(c={})).Pop="POP",n.Push="PUSH",n.Replace="REPLACE";let y="popstate";function g(e){let t;void 0===e&&(e={});let{initialEntries:r=["/"],initialIndex:n,v5Compat:a=!1}=e;t=r.map((e,t)=>u(e,"string"==typeof e?null:e.state,0===t?"default":void 0));let o=s(null==n?t.length-1:n),i=c.Pop,l=null;function s(e){return Math.min(Math.max(e,0),t.length-1)}function u(e,r,n){void 0===r&&(r=null);let a=x(t?t[o].pathname:"/",e,r,n);return S("/"===a.pathname.charAt(0),"relative pathnames are not supported in memory history: "+JSON.stringify(e)),a}function d(e){return"string"==typeof e?e:C(e)}return{get index(){return o},get action(){return i},get location(){return t[o]},createHref:d,createURL:e=>new URL(d(e),"http://localhost"),encodeLocation(e){let t="string"==typeof e?P(e):e;return{pathname:t.pathname||"",search:t.search||"",hash:t.hash||""}},push(e,r){i=c.Push;let n=u(e,r);o+=1,t.splice(o,t.length,n),a&&l&&l({action:i,location:n,delta:1})},replace(e,r){i=c.Replace;let n=u(e,r);t[o]=n,a&&l&&l({action:i,location:n,delta:0})},go(e){i=c.Pop;let r=s(o+e),n=t[r];o=r,l&&l({action:i,location:n,delta:e})},listen:e=>(l=e,()=>{l=null})}}function w(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r,search:n,hash:a}=e.location;return x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){return"string"==typeof t?t:C(t)},null,e)}function b(e){return void 0===e&&(e={}),D(function(e,t){let{pathname:r="/",search:n="",hash:a=""}=P(e.location.hash.substr(1));return r.startsWith("/")||r.startsWith(".")||(r="/"+r),x("",{pathname:r,search:n,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||"default")},function(e,t){let r=e.document.querySelector("base"),n="";if(r&&r.getAttribute("href")){let t=e.location.href,r=t.indexOf("#");n=-1===r?t:t.slice(0,r)}return n+"#"+("string"==typeof t?t:C(t))},function(e,t){S("/"===e.pathname.charAt(0),"relative pathnames are not supported in hash history.push("+JSON.stringify(t)+")")},e)}function E(e,t){if(!1===e||null==e)throw Error(t)}function S(e,t){if(!e){"u">typeof console&&console.warn(t);try{throw Error(t)}catch(e){}}}function R(e,t){return{usr:e.state,key:e.key,idx:t}}function x(e,t,r,n){return void 0===r&&(r=null),v({pathname:"string"==typeof e?e:e.pathname,search:"",hash:""},"string"==typeof t?P(t):t,{state:r,key:t&&t.key||n||Math.random().toString(36).substr(2,8)})}function C(e){let{pathname:t="/",search:r="",hash:n=""}=e;return r&&"?"!==r&&(t+="?"===r.charAt(0)?r:"?"+r),n&&"#"!==n&&(t+="#"===n.charAt(0)?n:"#"+n),t}function P(e){let t={};if(e){let r=e.indexOf("#");r>=0&&(t.hash=e.substr(r),e=e.substr(0,r));let n=e.indexOf("?");n>=0&&(t.search=e.substr(n),e=e.substr(0,n)),e&&(t.pathname=e)}return t}function D(e,t,r,n){void 0===n&&(n={});let{window:a=document.defaultView,v5Compat:o=!1}=n,i=a.history,l=c.Pop,s=null,u=d();function d(){return(i.state||{idx:null}).idx}function h(){l=c.Pop;let e=d(),t=null==e?null:e-u;u=e,s&&s({action:l,location:p.location,delta:t})}function f(e){let t="null"!==a.location.origin?a.location.origin:a.location.href,r="string"==typeof e?e:C(e);return E(t,"No window.location.(origin|href) available to create URL for href: "+(r=r.replace(/ $/,"%20"))),new URL(r,t)}null==u&&(u=0,i.replaceState(v({},i.state,{idx:u}),""));let p={get action(){return l},get location(){return e(a,i)},listen(e){if(s)throw Error("A history only accepts one active listener");return a.addEventListener(y,h),s=e,()=>{a.removeEventListener(y,h),s=null}},createHref:e=>t(a,e),createURL:f,encodeLocation(e){let t=f(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:function(e,t){l=c.Push;let n=x(p.location,e,t);r&&r(n,e);let h=R(n,u=d()+1),f=p.createHref(n);try{i.pushState(h,"",f)}catch(e){if(e instanceof DOMException&&"DataCloneError"===e.name)throw e;a.location.assign(f)}o&&s&&s({action:l,location:p.location,delta:1})},replace:function(e,t){l=c.Replace;let n=x(p.location,e,t);r&&r(n,e);let a=R(n,u=d()),h=p.createHref(n);i.replaceState(a,"",h),o&&s&&s({action:l,location:p.location,delta:0})},go:e=>i.go(e)};return p}(a=d||(d={})).data="data",a.deferred="deferred",a.redirect="redirect",a.error="error";let L=new Set(["lazy","caseSensitive","path","id","index","children"]);function k(e,t,r,n){return void 0===r&&(r=[]),void 0===n&&(n={}),e.map((e,a)=>{let o=[...r,String(a)],i="string"==typeof e.id?e.id:o.join("-");if(E(!0!==e.index||!e.children,"Cannot specify children on an index route"),E(!n[i],'Found a route id collision on id "'+i+"\". Route id's must be globally unique within Data Router usages"),!0===e.index){let r=v({},e,t(e),{id:i});return n[i]=r,r}{let r=v({},e,t(e),{id:i,children:void 0});return n[i]=r,e.children&&(r.children=k(e.children,t,o,n)),r}})}function _(e,t,r){return void 0===r&&(r="/"),A(e,t,r,!1)}function A(e,t,r,n){let a=N(("string"==typeof t?P(t):t).pathname||"/",r);if(null==a)return null;let o=function e(t,r,n,a){void 0===r&&(r=[]),void 0===n&&(n=[]),void 0===a&&(a="");let o=(t,o,i)=>{var l,s;let u,c,d={relativePath:void 0===i?t.path||"":i,caseSensitive:!0===t.caseSensitive,childrenIndex:o,route:t};d.relativePath.startsWith("/")&&(E(d.relativePath.startsWith(a),'Absolute route path "'+d.relativePath+'" nested under path "'+a+'" is not valid. An absolute child route path must start with the combined path of all its parent routes.'),d.relativePath=d.relativePath.slice(a.length));let h=K([a,d.relativePath]),f=n.concat(d);t.children&&t.children.length>0&&(E(!0!==t.index,'Index routes must not have child routes. Please remove all child routes from route path "'+h+'".'),e(t.children,r,f,h)),(null!=t.path||t.index)&&r.push({path:h,score:(l=h,s=t.index,c=(u=l.split("/")).length,u.some(j)&&(c+=-2),s&&(c+=2),u.filter(e=>!j(e)).reduce((e,t)=>e+(T.test(t)?3:""===t?1:10),c)),routesMeta:f})};return t.forEach((e,t)=>{var r;if(""!==e.path&&null!=(r=e.path)&&r.includes("?"))for(let r of function e(t){let r=t.split("/");if(0===r.length)return[];let[n,...a]=r,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(0===a.length)return o?[i,""]:[i];let l=e(a.join("/")),s=[];return s.push(...l.map(e=>""===e?i:[i,e].join("/"))),o&&s.push(...l),s.map(e=>t.startsWith("/")&&""===e?"/":e)}(e.path))o(e,t,r);else o(e,t)}),r}(e);o.sort((e,t)=>{var r,n;return e.score!==t.score?t.score-e.score:(r=e.routesMeta.map(e=>e.childrenIndex),n=t.routesMeta.map(e=>e.childrenIndex),r.length===n.length&&r.slice(0,-1).every((e,t)=>e===n[t])?r[r.length-1]-n[n.length-1]:0)});let i=null,l=F(a);for(let e=0;null==i&&e<o.length;++e)i=function(e,t,r){void 0===r&&(r=!1);let{routesMeta:n}=e,a={},o="/",i=[];for(let e=0;e<n.length;++e){let l=n[e],s=e===n.length-1,u="/"===o?t:t.slice(o.length)||"/",c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:s},u),d=l.route;if(!c&&s&&r&&!n[n.length-1].route.index&&(c=O({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},u)),!c)return null;Object.assign(a,c.params),i.push({params:a,pathname:K([o,c.pathname]),pathnameBase:Y(K([o,c.pathnameBase])),route:d}),"/"!==c.pathnameBase&&(o=K([o,c.pathnameBase]))}return i}(o[e],l,n);return i}function U(e,t){let{route:r,pathname:n,params:a}=e;return{id:r.id,pathname:n,params:a,data:t[r.id],handle:r.handle}}let T=/^:[\w-]+$/,j=e=>"*"===e;function M(e,t){void 0===t&&(t={});let r=e;r.endsWith("*")&&"*"!==r&&!r.endsWith("/*")&&(S(!1,'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),r=r.replace(/\*$/,"/*"));let n=r.startsWith("/")?"/":"",a=e=>null==e?"":"string"==typeof e?e:String(e);return n+r.split(/\/+/).map((e,r,n)=>{if(r===n.length-1&&"*"===e)return a(t["*"]);let o=e.match(/^:([\w-]+)(\??)$/);if(o){let[,e,r]=o,n=t[e];return E("?"===r||null!=n,'Missing ":'+e+'" param'),a(n)}return e.replace(/\?$/g,"")}).filter(e=>!!e).join("/")}function O(e,t){var r,n,a;let o,i;"string"==typeof e&&(e={path:e,caseSensitive:!1,end:!0});let[l,s]=(r=e.path,n=e.caseSensitive,a=e.end,void 0===n&&(n=!1),void 0===a&&(a=!0),S("*"===r||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were "'+r.replace(/\*$/,"/*")+'" because the `*` character must always follow a `/` in the pattern. To get rid of this warning, please change the route path to "'+r.replace(/\*$/,"/*")+'".'),o=[],i="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(e,t,r)=>(o.push({paramName:t,isOptional:null!=r}),r?"/?([^\\/]+)?":"/([^\\/]+)")),r.endsWith("*")?(o.push({paramName:"*"}),i+="*"===r||"/*"===r?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?i+="\\/*$":""!==r&&"/"!==r&&(i+="(?:(?=\\/|$))"),[new RegExp(i,n?void 0:"i"),o]),u=t.match(l);if(!u)return null;let c=u[0],d=c.replace(/(.)\/+$/,"$1"),h=u.slice(1);return{params:s.reduce((e,t,r)=>{let{paramName:n,isOptional:a}=t;if("*"===n){let e=h[r]||"";d=c.slice(0,c.length-e.length).replace(/(.)\/+$/,"$1")}let o=h[r];return a&&!o?e[n]=void 0:e[n]=(o||"").replace(/%2F/g,"/"),e},{}),pathname:c,pathnameBase:d,pattern:e}}function F(e){try{return e.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(t){return S(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent encoding ('+t+")."),e}}function N(e,t){if("/"===t)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let r=t.endsWith("/")?t.length-1:t.length,n=e.charAt(r);return n&&"/"!==n?null:e.slice(r)||"/"}let B=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function I(e,t){let r;void 0===t&&(t="/");let{pathname:n,search:a="",hash:o=""}="string"==typeof e?P(e):e;if(n){let e;(e=n,B.test(e))?r=n:(n.includes("//")&&S(!1,"Pathnames cannot have embedded double slashes - normalizing "+n+" -> "+(n=J(n))),r=n.startsWith("/")?z(n.substring(1),"/"):z(n,t))}else r=t;return{pathname:r,search:q(a),hash:X(o)}}function z(e,t){let r=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(e=>{".."===e?r.length>1&&r.pop():"."!==e&&r.push(e)}),r.length>1?r.join("/"):"/"}function H(e,t,r,n){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field [")+JSON.stringify(n)+"]. Please separate it out to the `to."+r+'` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.'}function W(e){return e.filter((e,t)=>0===t||e.route.path&&e.route.path.length>0)}function $(e,t){let r=W(e);return t?r.map((e,t)=>t===r.length-1?e.pathname:e.pathnameBase):r.map(e=>e.pathnameBase)}function V(e,t,r,n){let a,o;void 0===n&&(n=!1),"string"==typeof e?a=P(e):(E(!(a=v({},e)).pathname||!a.pathname.includes("?"),H("?","pathname","search",a)),E(!a.pathname||!a.pathname.includes("#"),H("#","pathname","hash",a)),E(!a.search||!a.search.includes("#"),H("#","search","hash",a)));let i=""===e||""===a.pathname,l=i?"/":a.pathname;if(null==l)o=r;else{let e=t.length-1;if(!n&&l.startsWith("..")){let t=l.split("/");for(;".."===t[0];)t.shift(),e-=1;a.pathname=t.join("/")}o=e>=0?t[e]:"/"}let s=I(a,o),u=l&&"/"!==l&&l.endsWith("/"),c=(i||"."===l)&&r.endsWith("/");return!s.pathname.endsWith("/")&&(u||c)&&(s.pathname+="/"),s}let J=e=>e.replace(/\/\/+/g,"/"),K=e=>J(e.join("/")),Y=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),q=e=>e&&"?"!==e?e.startsWith("?")?e:"?"+e:"",X=e=>e&&"#"!==e?e.startsWith("#")?e:"#"+e:"",G=function(e,t){void 0===t&&(t={});let r="number"==typeof t?{status:t}:t,n=new Headers(r.headers);return n.has("Content-Type")||n.set("Content-Type","application/json; charset=utf-8"),new Response(JSON.stringify(e),v({},r,{headers:n}))};class Q extends Error{}class Z{constructor(e,t){let r;this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],E(e&&"object"==typeof e&&!Array.isArray(e),"defer() only accepts plain objects"),this.abortPromise=new Promise((e,t)=>r=t),this.controller=new AbortController;let n=()=>r(new Q("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:this.trackPromise(r,n)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let r=Promise.race([t,this.abortPromise]).then(t=>this.onSettle(r,e,void 0,t),t=>this.onSettle(r,e,t));return r.catch(()=>{}),Object.defineProperty(r,"_tracked",{get:()=>!0}),r}onSettle(e,t,r,n){if(this.controller.signal.aborted&&r instanceof Q)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>r}),Promise.reject(r);if(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),void 0===r&&void 0===n){let r=Error('Deferred data for key "'+t+'" resolved/rejected with `undefined`, you must resolve/reject with a value or `null`.');return Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)}return void 0===n?(Object.defineProperty(e,"_error",{get:()=>r}),this.emit(!1,t),Promise.reject(r)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n)}emit(e,t){this.subscribers.forEach(r=>r(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let r=()=>this.cancel();e.addEventListener("abort",r),t=await new Promise(t=>{this.subscribe(n=>{e.removeEventListener("abort",r),(n||this.done)&&t(n)})})}return t}get done(){return 0===this.pendingKeysSet.size}get unwrappedData(){return E(null!==this.data&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[r,n]=t;return Object.assign(e,{[r]:function(e){if(!(e instanceof Promise&&!0===e._tracked))return e;if(e._error)throw e._error;return e._data}(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}let ee=function(e,t){return void 0===t&&(t={}),new Z(e,"number"==typeof t?{status:t}:t)},et=function(e,t){void 0===t&&(t=302);let r=t;"number"==typeof r?r={status:r}:void 0===r.status&&(r.status=302);let n=new Headers(r.headers);return n.set("Location",e),new Response(null,v({},r,{headers:n}))},er=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Reload-Document","true"),r},en=(e,t)=>{let r=et(e,t);return r.headers.set("X-Remix-Replace","true"),r};class ea{constructor(e,t,r,n){void 0===n&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function eo(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"boolean"==typeof e.internal&&"data"in e}let ei=["post","put","patch","delete"],el=new Set(ei),es=new Set(["get",...ei]),eu=new Set([301,302,303,307,308]),ec=new Set([307,308]),ed={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},eh={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ef={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ep=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,em=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),ev="remix-router-transitions";function ey(e){let t,r,n,a,o,i,l=e.window?e.window:"u">typeof window?window:void 0,s=void 0!==l&&void 0!==l.document&&void 0!==l.document.createElement,u=!s;if(E(e.routes.length>0,"You must provide a non-empty routes array to createRouter"),e.mapRouteProperties)t=e.mapRouteProperties;else if(e.detectErrorBoundary){let r=e.detectErrorBoundary;t=e=>({hasErrorBoundary:r(e)})}else t=em;let h={},f=k(e.routes,t,void 0,h),p=e.basename||"/",m=e.dataStrategy||eD,y=e.patchRoutesOnNavigation,g=v({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),w=null,b=new Set,R=null,C=null,P=null,D=null!=e.hydrationData,L=_(f,e.history.location,p),T=!1,j=null;if(null==L&&!y){let t=eI(404,{pathname:e.history.location.pathname}),{matches:r,route:n}=eB(f);L=r,j={[n.id]:t}}if(L&&!e.hydrationData&&to(L,f,e.history.location.pathname).active&&(L=null),L)if(L.some(e=>e.route.lazy))n=!1;else if(L.some(e=>e.route.loader))if(g.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,r=e.hydrationData?e.hydrationData.errors:null;if(r){let e=L.findIndex(e=>void 0!==r[e.route.id]);n=L.slice(0,e+1).every(e=>!eS(e.route,t,r))}else n=L.every(e=>!eS(e.route,t,r))}else n=null!=e.hydrationData;else n=!0;else if(n=!1,L=[],g.v7_partialHydration){let t=to(null,f,e.history.location.pathname);t.active&&t.matches&&(T=!0,L=t.matches)}let M={historyAction:e.history.action,location:e.history.location,matches:L,initialized:n,navigation:ed,restoreScrollPosition:null==e.hydrationData&&null,preventScrollReset:!1,revalidation:"idle",loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||j,fetchers:new Map,blockers:new Map},O=c.Pop,F=!1,B=!1,I=new Map,z=null,H=!1,W=!1,$=[],V=new Set,J=new Map,K=0,Y=-1,q=new Map,X=new Set,G=new Map,Q=new Map,Z=new Set,ee=new Map,et=new Map;function er(e,t){void 0===t&&(t={}),M=v({},M,e);let r=[],n=[];g.v7_fetcherPersist&&M.fetchers.forEach((e,t)=>{"idle"===e.state&&(Z.has(t)?n.push(t):r.push(t))}),Z.forEach(e=>{M.fetchers.has(e)||J.has(e)||n.push(e)}),[...b].forEach(e=>e(M,{deletedFetchers:n,viewTransitionOpts:t.viewTransitionOpts,flushSync:!0===t.flushSync})),g.v7_fetcherPersist?(r.forEach(e=>M.fetchers.delete(e)),n.forEach(e=>eQ(e))):n.forEach(e=>Z.delete(e))}function en(t,n,a){var o,i;let l,s,{flushSync:u}=void 0===a?{}:a,d=null!=M.actionData&&null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&"loading"===M.navigation.state&&(null==(o=t.state)?void 0:o._isRedirect)!==!0;l=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:d?M.actionData:null;let h=n.loaderData?eO(M.loaderData,n.loaderData,n.matches||[],n.errors):M.loaderData,p=M.blockers;p.size>0&&(p=new Map(p)).forEach((e,t)=>p.set(t,ef));let m=!0===F||null!=M.navigation.formMethod&&eY(M.navigation.formMethod)&&(null==(i=t.state)?void 0:i._isRedirect)!==!0;if(r&&(f=r,r=void 0),H||O===c.Pop||(O===c.Push?e.history.push(t,t.state):O===c.Replace&&e.history.replace(t,t.state)),O===c.Pop){let e=I.get(M.location.pathname);e&&e.has(t.pathname)?s={currentLocation:M.location,nextLocation:t}:I.has(t.pathname)&&(s={currentLocation:t,nextLocation:M.location})}else if(B){let e=I.get(M.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),I.set(M.location.pathname,e)),s={currentLocation:M.location,nextLocation:t}}er(v({},n,{actionData:l,loaderData:h,historyAction:O,location:t,initialized:!0,navigation:ed,revalidation:"idle",restoreScrollPosition:ta(t,n.matches||M.matches),preventScrollReset:m,blockers:p}),{viewTransitionOpts:s,flushSync:!0===u}),O=c.Pop,F=!1,B=!1,H=!1,W=!1,$=[]}async function ea(t,r){if("number"==typeof t)return void e.history.go(t);let n=eg(M.location,M.matches,p,g.v7_prependBasename,t,g.v7_relativeSplatPath,null==r?void 0:r.fromRouteId,null==r?void 0:r.relative),{path:a,submission:o,error:i}=ew(g.v7_normalizeFormMethod,!1,n,r),l=M.location,s=x(M.location,a,r&&r.state);s=v({},s,e.history.encodeLocation(s));let u=r&&null!=r.replace?r.replace:void 0,d=c.Push;!0===u?d=c.Replace:!1===u||null!=o&&eY(o.formMethod)&&o.formAction===M.location.pathname+M.location.search&&(d=c.Replace);let h=r&&"preventScrollReset"in r?!0===r.preventScrollReset:void 0,f=!0===(r&&r.flushSync),m=te({currentLocation:l,nextLocation:s,historyAction:d});return m?void e6(m,{state:"blocked",location:s,proceed(){e6(m,{state:"proceeding",proceed:void 0,reset:void 0,location:s}),ea(t,r)},reset(){let e=new Map(M.blockers);e.set(m,ef),er({blockers:e})}}):await ei(d,s,{submission:o,pendingError:i,preventScrollReset:h,replace:r&&r.replace,enableViewTransition:r&&r.viewTransition,flushSync:f})}async function ei(t,n,a){var i,l,s,u;let c;o&&o.abort(),o=null,O=t,H=!0===(a&&a.startUninterruptedRevalidation),i=M.location,l=M.matches,R&&P&&(R[tn(i,l)]=P()),F=!0===(a&&a.preventScrollReset),B=!0===(a&&a.enableViewTransition);let h=r||f,m=a&&a.overrideNavigation,y=null!=a&&a.initialHydration&&M.matches&&M.matches.length>0&&!T?M.matches:_(h,n,p),g=!0===(a&&a.flushSync);if(y&&M.initialized&&!W&&(s=M.location,u=n,s.pathname===u.pathname&&s.search===u.search&&(""===s.hash?""!==u.hash:s.hash===u.hash||""!==u.hash||!1))&&!(a&&a.submission&&eY(a.submission.formMethod)))return void en(n,{matches:y},{flushSync:g});let w=to(y,h,n.pathname);if(w.active&&w.matches&&(y=w.matches),!y){let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);en(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:g});return}o=new AbortController;let b=eU(e.history,n,o.signal,a&&a.submission);if(a&&a.pendingError)c=[eN(y).route.id,{type:d.error,error:a.pendingError}];else if(a&&a.submission&&eY(a.submission.formMethod)){let t=await el(b,n,a.submission,y,w.active,{replace:a.replace,flushSync:g});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(e$(r)&&eo(r.error)&&404===r.error.status){o=null,en(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}y=t.matches||y,c=t.pendingActionResult,m=e1(n,a.submission),g=!1,w.active=!1,b=eU(e.history,b.url,b.signal)}let{shortCircuited:E,matches:S,loaderData:x,errors:C}=await es(b,n,y,w.active,m,a&&a.submission,a&&a.fetcherSubmission,a&&a.replace,a&&!0===a.initialHydration,g,c);E||(o=null,en(n,v({matches:S||y},eF(c),{loaderData:x,errors:C})))}async function el(t,r,n,a,o,i){var l;let s;if(void 0===i&&(i={}),eT(),er({navigation:{state:"submitting",location:r,formMethod:(l=n).formMethod,formAction:l.formAction,formEncType:l.formEncType,formData:l.formData,json:l.json,text:l.text}},{flushSync:!0===i.flushSync}),o){let e=await ti(a,r.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:d.error,error:e.error}]}}if(e.matches)a=e.matches;else{let{notFoundMatches:e,error:t,route:n}=tt(r.pathname);return{matches:e,pendingActionResult:[n.id,{type:d.error,error:t}]}}}let u=eZ(a,r);if(u.route.action||u.route.lazy){if(s=(await eP("action",M,t,[u],a,null))[u.route.id],t.signal.aborted)return{shortCircuited:!0}}else s={type:d.error,error:eI(405,{method:t.method,pathname:r.pathname,routeId:u.route.id})};if(eV(s)){let r;return r=i&&null!=i.replace?i.replace:eA(s.response.headers.get("Location"),new URL(t.url),p,e.history)===M.location.pathname+M.location.search,await ex(t,s,!0,{submission:n,replace:r}),{shortCircuited:!0}}if(eW(s))throw eI(400,{type:"defer-action"});if(e$(s)){let e=eN(a,u.route.id);return!0!==(i&&i.replace)&&(O=c.Push),{matches:a,pendingActionResult:[e.route.id,s]}}return{matches:a,pendingActionResult:[u.route.id,s]}}async function es(t,n,a,i,l,s,u,c,d,h,m){let y=l||e1(n,s),w=s||u||e0(y),b=!H&&(!g.v7_partialHydration||!d);if(i){if(b){let e=ey(m);er(v({navigation:y},void 0!==e?{actionData:e}:{}),{flushSync:h})}let e=await ti(a,n.pathname,t.signal);if("aborted"===e.type)return{shortCircuited:!0};if("error"===e.type){let t=eN(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)a=e.matches;else{let{error:e,notFoundMatches:t,route:r}=tt(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let E=r||f,[S,R]=eE(e.history,M,a,w,n,g.v7_partialHydration&&!0===d,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,E,p,m);if(tr(e=>!(a&&a.some(t=>t.route.id===e))||S&&S.some(t=>t.route.id===e)),Y=++K,0===S.length&&0===R.length){let e=e5();return en(n,v({matches:a,loaderData:{},errors:m&&e$(m[1])?{[m[0]]:m[1].error}:null},eF(m),e?{fetchers:new Map(M.fetchers)}:{}),{flushSync:h}),{shortCircuited:!0}}if(b){let e={};if(!i){e.navigation=y;let t=ey(m);void 0!==t&&(e.actionData=t)}R.length>0&&(R.forEach(e=>{let t=M.fetchers.get(e.key),r=e7(void 0,t?t.data:void 0);M.fetchers.set(e.key,r)}),e.fetchers=new Map(M.fetchers)),er(e,{flushSync:h})}R.forEach(e=>{e2(e.key),e.controller&&J.set(e.key,e.controller)});let x=()=>R.forEach(e=>e2(e.key));o&&o.signal.addEventListener("abort",x);let{loaderResults:C,fetcherResults:P}=await ek(M,a,S,R,t);if(t.signal.aborted)return{shortCircuited:!0};o&&o.signal.removeEventListener("abort",x),R.forEach(e=>J.delete(e.key));let D=ez(C);if(D)return await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};if(D=ez(P))return X.add(D.key),await ex(t,D.result,!0,{replace:c}),{shortCircuited:!0};let{loaderData:L,errors:k}=eM(M,a,C,m,R,P,ee);ee.forEach((e,t)=>{e.subscribe(r=>{(r||e.done)&&ee.delete(t)})}),g.v7_partialHydration&&d&&M.errors&&(k=v({},M.errors,k));let _=e5(),A=e9(Y),U=_||A||R.length>0;return v({matches:a,loaderData:L,errors:k},U?{fetchers:new Map(M.fetchers)}:{})}function ey(e){if(e&&!e$(e[1]))return{[e[0]]:e[1].data};if(M.actionData)if(0===Object.keys(M.actionData).length)return null;else return M.actionData}async function eb(t,n,a,i,l,s,u,c,d){var h,m;function v(e){if(!e.route.action&&!e.route.lazy){let e=eI(405,{method:d.formMethod,pathname:a,routeId:n});return eH(t,n,e,{flushSync:u}),!0}return!1}if(eT(),G.delete(t),!s&&v(i))return;let y=M.fetchers.get(t);ej(t,(h=d,m=y,{state:"submitting",formMethod:h.formMethod,formAction:h.formAction,formEncType:h.formEncType,formData:h.formData,json:h.json,text:h.text,data:m?m.data:void 0}),{flushSync:u});let w=new AbortController,b=eU(e.history,a,w.signal,d);if(s){let e=await ti(l,new URL(b.url).pathname,b.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,n,e.error,{flushSync:u});if(!e.matches)return void eH(t,n,eI(404,{pathname:a}),{flushSync:u});if(v(i=eZ(l=e.matches,a)))return}J.set(t,w);let S=K,R=(await eP("action",M,b,[i],l,t))[i.route.id];if(b.signal.aborted){J.get(t)===w&&J.delete(t);return}if(g.v7_fetcherPersist&&Z.has(t)){if(eV(R)||e$(R))return void ej(t,e4(void 0))}else{if(eV(R))return(J.delete(t),Y>S)?void ej(t,e4(void 0)):(X.add(t),ej(t,e7(d)),ex(b,R,!1,{fetcherSubmission:d,preventScrollReset:c}));if(e$(R))return void eH(t,n,R.error)}if(eW(R))throw eI(400,{type:"defer-action"});let x=M.navigation.location||M.location,C=eU(e.history,x,w.signal),P=r||f,D="idle"!==M.navigation.state?_(P,M.navigation.location,p):M.matches;E(D,"Didn't find any matches after fetcher action");let L=++K;q.set(t,L);let k=e7(d,R.data);M.fetchers.set(t,k);let[A,U]=eE(e.history,M,D,d,x,!1,g.v7_skipActionErrorRevalidation,W,$,V,Z,G,X,P,p,[i.route.id,R]);U.filter(e=>e.key!==t).forEach(e=>{let t=e.key,r=M.fetchers.get(t),n=e7(void 0,r?r.data:void 0);M.fetchers.set(t,n),e2(t),e.controller&&J.set(t,e.controller)}),er({fetchers:new Map(M.fetchers)});let T=()=>U.forEach(e=>e2(e.key));w.signal.addEventListener("abort",T);let{loaderResults:j,fetcherResults:F}=await ek(M,D,A,U,C);if(w.signal.aborted)return;w.signal.removeEventListener("abort",T),q.delete(t),J.delete(t),U.forEach(e=>J.delete(e.key));let N=ez(j);if(N)return ex(C,N.result,!1,{preventScrollReset:c});if(N=ez(F))return X.add(N.key),ex(C,N.result,!1,{preventScrollReset:c});let{loaderData:B,errors:I}=eM(M,D,j,void 0,U,F,ee);if(M.fetchers.has(t)){let e=e4(R.data);M.fetchers.set(t,e)}e9(L),"loading"===M.navigation.state&&L>Y?(E(O,"Expected pending action"),o&&o.abort(),en(M.navigation.location,{matches:D,loaderData:B,errors:I,fetchers:new Map(M.fetchers)})):(er({errors:I,loaderData:eO(M.loaderData,B,D,I),fetchers:new Map(M.fetchers)}),W=!1)}async function eR(t,r,n,a,o,i,l,s,u){let c=M.fetchers.get(t);ej(t,e7(u,c?c.data:void 0),{flushSync:l});let d=new AbortController,h=eU(e.history,n,d.signal);if(i){let e=await ti(o,new URL(h.url).pathname,h.signal,t);if("aborted"===e.type)return;if("error"===e.type)return void eH(t,r,e.error,{flushSync:l});if(!e.matches)return void eH(t,r,eI(404,{pathname:n}),{flushSync:l});a=eZ(o=e.matches,n)}J.set(t,d);let f=K,p=(await eP("loader",M,h,[a],o,t))[a.route.id];if(eW(p)&&(p=await eG(p,h.signal,!0)||p),J.get(t)===d&&J.delete(t),!h.signal.aborted){if(Z.has(t))return void ej(t,e4(void 0));if(eV(p))if(Y>f)return void ej(t,e4(void 0));else{X.add(t),await ex(h,p,!1,{preventScrollReset:s});return}if(e$(p))return void eH(t,r,p.error);E(!eW(p),"Unhandled fetcher deferred data"),ej(t,e4(p.data))}}async function ex(t,r,n,a){let{submission:i,fetcherSubmission:u,preventScrollReset:d,replace:h}=void 0===a?{}:a;r.response.headers.has("X-Remix-Revalidate")&&(W=!0);let f=r.response.headers.get("Location");E(f,"Expected a Location header on the redirect Response"),f=eA(f,new URL(t.url),p,e.history);let m=x(M.location,f,{_isRedirect:!0});if(s){let t=!1;if(r.response.headers.has("X-Remix-Reload-Document"))t=!0;else if(ep.test(f)){let r=e.history.createURL(f);t=r.origin!==l.location.origin||null==N(r.pathname,p)}if(t)return void(h?l.location.replace(f):l.location.assign(f))}o=null;let y=!0===h||r.response.headers.has("X-Remix-Replace")?c.Replace:c.Push,{formMethod:g,formAction:w,formEncType:b}=M.navigation;!i&&!u&&g&&w&&b&&(i=e0(M.navigation));let S=i||u;if(ec.has(r.response.status)&&S&&eY(S.formMethod))await ei(y,m,{submission:v({},S,{formAction:f}),preventScrollReset:d||F,enableViewTransition:n?B:void 0});else{let e=e1(m,i);await ei(y,m,{overrideNavigation:e,fetcherSubmission:u,preventScrollReset:d||F,enableViewTransition:n?B:void 0})}}async function eP(e,r,n,a,o,i){let l,s={};try{l=await eL(m,e,r,n,a,o,i,h,t)}catch(e){return a.forEach(t=>{s[t.route.id]={type:d.error,error:e}}),s}for(let[e,t]of Object.entries(l)){var u;if(eK((u=t).result)&&eu.has(u.result.status)){let r=t.result;s[e]={type:d.redirect,response:function(e,t,r,n,a,o){let i=e.headers.get("Location");if(E(i,"Redirects returned/thrown from loaders/actions must have a Location header"),!ep.test(i)){let l=n.slice(0,n.findIndex(e=>e.route.id===r)+1);i=eg(new URL(t.url),l,a,!0,i,o),e.headers.set("Location",i)}return e}(r,n,e,o,p,g.v7_relativeSplatPath)}}else s[e]=await e_(t)}return s}async function ek(t,r,n,a,o){let i=t.matches,l=eP("loader",t,o,n,r,null),s=Promise.all(a.map(async r=>{if(!r.matches||!r.match||!r.controller)return Promise.resolve({[r.key]:{type:d.error,error:eI(404,{pathname:r.path})}});{let n=(await eP("loader",t,eU(e.history,r.path,r.controller.signal),[r.match],r.matches,r.key))[r.match.route.id];return{[r.key]:n}}})),u=await l,c=(await s).reduce((e,t)=>Object.assign(e,t),{});return await Promise.all([eq(r,u,o.signal,i,t.loaderData),eX(r,c,a)]),{loaderResults:u,fetcherResults:c}}function eT(){W=!0,$.push(...tr()),G.forEach((e,t)=>{J.has(t)&&V.add(t),e2(t)})}function ej(e,t,r){void 0===r&&(r={}),M.fetchers.set(e,t),er({fetchers:new Map(M.fetchers)},{flushSync:!0===(r&&r.flushSync)})}function eH(e,t,r,n){void 0===n&&(n={});let a=eN(M.matches,t);eQ(e),er({errors:{[a.route.id]:r},fetchers:new Map(M.fetchers)},{flushSync:!0===(n&&n.flushSync)})}function eJ(e){return Q.set(e,(Q.get(e)||0)+1),Z.has(e)&&Z.delete(e),M.fetchers.get(e)||eh}function eQ(e){let t=M.fetchers.get(e);J.has(e)&&!(t&&"loading"===t.state&&q.has(e))&&e2(e),G.delete(e),q.delete(e),X.delete(e),g.v7_fetcherPersist&&Z.delete(e),V.delete(e),M.fetchers.delete(e)}function e2(e){let t=J.get(e);t&&(t.abort(),J.delete(e))}function e3(e){for(let t of e){let e=e4(eJ(t).data);M.fetchers.set(t,e)}}function e5(){let e=[],t=!1;for(let r of X){let n=M.fetchers.get(r);E(n,"Expected fetcher: "+r),"loading"===n.state&&(X.delete(r),e.push(r),t=!0)}return e3(e),t}function e9(e){let t=[];for(let[r,n]of q)if(n<e){let e=M.fetchers.get(r);E(e,"Expected fetcher: "+r),"loading"===e.state&&(e2(r),q.delete(r),t.push(r))}return e3(t),t.length>0}function e8(e){M.blockers.delete(e),et.delete(e)}function e6(e,t){let r=M.blockers.get(e)||ef;E("unblocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"blocked"===t.state||"blocked"===r.state&&"proceeding"===t.state||"blocked"===r.state&&"unblocked"===t.state||"proceeding"===r.state&&"unblocked"===t.state,"Invalid blocker state transition: "+r.state+" -> "+t.state);let n=new Map(M.blockers);n.set(e,t),er({blockers:n})}function te(e){let{currentLocation:t,nextLocation:r,historyAction:n}=e;if(0===et.size)return;et.size>1&&S(!1,"A router only supports one blocker at a time");let a=Array.from(et.entries()),[o,i]=a[a.length-1],l=M.blockers.get(o);if((!l||"proceeding"!==l.state)&&i({currentLocation:t,nextLocation:r,historyAction:n}))return o}function tt(e){let t=eI(404,{pathname:e}),{matches:n,route:a}=eB(r||f);return tr(),{notFoundMatches:n,route:a,error:t}}function tr(e){let t=[];return ee.forEach((r,n)=>{(!e||e(n))&&(r.cancel(),t.push(n),ee.delete(n))}),t}function tn(e,t){return C&&C(e,t.map(e=>U(e,M.loaderData)))||e.key}function ta(e,t){if(R){let r=R[tn(e,t)];if("number"==typeof r)return r}return null}function to(e,t,r){if(y){if(!e)return{active:!0,matches:A(t,r,p,!0)||[]};else if(Object.keys(e[0].params).length>0)return{active:!0,matches:A(t,r,p,!0)}}return{active:!1,matches:null}}async function ti(e,n,a,o){if(!y)return{type:"success",matches:e};let i=e;for(;;){let e=null==r,l=r||f,s=h;try{await y({signal:a,path:n,matches:i,fetcherKey:o,patch:(e,r)=>{a.aborted||eC(e,r,l,s,t)}})}catch(e){return{type:"error",error:e,partialMatches:i}}finally{e&&!a.aborted&&(f=[...f])}if(a.aborted)return{type:"aborted"};let u=_(l,n,p);if(u)return{type:"success",matches:u};let c=A(l,n,p,!0);if(!c||i.length===c.length&&i.every((e,t)=>e.route.id===c[t].route.id))return{type:"success",matches:null};i=c}}return a={get basename(){return p},get future(){return g},get state(){return M},get routes(){return f},get window(){return l},initialize:function(){if(w=e.history.listen(t=>{let{action:r,location:n,delta:a}=t;if(i){i(),i=void 0;return}S(0===et.size||null!=a,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let o=te({currentLocation:M.location,nextLocation:n,historyAction:r});if(o&&null!=a){let t=new Promise(e=>{i=e});e.history.go(-1*a),e6(o,{state:"blocked",location:n,proceed(){e6(o,{state:"proceeding",proceed:void 0,reset:void 0,location:n}),t.then(()=>e.history.go(a))},reset(){let e=new Map(M.blockers);e.set(o,ef),er({blockers:e})}});return}return ei(r,n)}),s){var t=l,r=I;try{let e=t.sessionStorage.getItem(ev);if(e){let t=JSON.parse(e);for(let[e,n]of Object.entries(t||{}))n&&Array.isArray(n)&&r.set(e,new Set(n||[]))}}catch(e){}let e=()=>(function(e,t){if(t.size>0){let r={};for(let[e,n]of t)r[e]=[...n];try{e.sessionStorage.setItem(ev,JSON.stringify(r))}catch(e){S(!1,"Failed to save applied view transitions in sessionStorage ("+e+").")}}})(l,I);l.addEventListener("pagehide",e),z=()=>l.removeEventListener("pagehide",e)}return M.initialized||ei(c.Pop,M.location,{initialHydration:!0}),a},subscribe:function(e){return b.add(e),()=>b.delete(e)},enableScrollRestoration:function(e,t,r){if(R=e,P=t,C=r||null,!D&&M.navigation===ed){D=!0;let e=ta(M.location,M.matches);null!=e&&er({restoreScrollPosition:e})}return()=>{R=null,P=null,C=null}},navigate:ea,fetch:function(e,t,n,a){if(u)throw Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");e2(e);let o=!0===(a&&a.flushSync),i=r||f,l=eg(M.location,M.matches,p,g.v7_prependBasename,n,g.v7_relativeSplatPath,t,null==a?void 0:a.relative),s=_(i,l,p),c=to(s,i,l);if(c.active&&c.matches&&(s=c.matches),!s)return void eH(e,t,eI(404,{pathname:l}),{flushSync:o});let{path:d,submission:h,error:m}=ew(g.v7_normalizeFormMethod,!0,l,a);if(m)return void eH(e,t,m,{flushSync:o});let v=eZ(s,d),y=!0===(a&&a.preventScrollReset);h&&eY(h.formMethod)?eb(e,t,d,v,s,c.active,o,y,h):(G.set(e,{routeId:t,path:d}),eR(e,t,d,v,s,c.active,o,y,h))},revalidate:function(){if(eT(),er({revalidation:"loading"}),"submitting"!==M.navigation.state){if("idle"===M.navigation.state)return void ei(M.historyAction,M.location,{startUninterruptedRevalidation:!0});ei(O||M.historyAction,M.navigation.location,{overrideNavigation:M.navigation,enableViewTransition:!0===B})}},createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:eJ,deleteFetcher:function(e){let t=(Q.get(e)||0)-1;t<=0?(Q.delete(e),Z.add(e),g.v7_fetcherPersist||eQ(e)):Q.set(e,t),er({fetchers:new Map(M.fetchers)})},dispose:function(){w&&w(),z&&z(),b.clear(),o&&o.abort(),M.fetchers.forEach((e,t)=>eQ(t)),M.blockers.forEach((e,t)=>e8(t))},getBlocker:function(e,t){let r=M.blockers.get(e)||ef;return et.get(e)!==t&&et.set(e,t),r},deleteBlocker:e8,patchRoutes:function(e,n){let a=null==r;eC(e,n,r||f,h,t),a&&(f=[...f],er({}))},_internalFetchControllers:J,_internalActiveDeferreds:ee,_internalSetRoutes:function(e){r=k(e,t,void 0,h={})}}}function eg(e,t,r,n,a,o,i,l){let s,u;if(i){for(let e of(s=[],t))if(s.push(e),e.route.id===i){u=e;break}}else s=t,u=t[t.length-1];let c=V(a||".",$(s,o),N(e.pathname,r)||e.pathname,"path"===l);if(null==a&&(c.search=e.search,c.hash=e.hash),(null==a||""===a||"."===a)&&u){let e=eQ(c.search);if(u.route.index&&!e)c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index";else if(!u.route.index&&e){let e=new URLSearchParams(c.search),t=e.getAll("index");e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();c.search=r?"?"+r:""}}return n&&"/"!==r&&(c.pathname="/"===c.pathname?r:K([r,c.pathname])),C(c)}function ew(e,t,r,n){var a;let o,i;if(!n||!(null!=n&&("formData"in n&&null!=n.formData||"body"in n&&void 0!==n.body)))return{path:r};if(n.formMethod&&(a=n.formMethod,!es.has(a.toLowerCase())))return{path:r,error:eI(405,{method:n.formMethod})};let l=()=>({path:r,error:eI(400,{type:"invalid-body"})}),s=n.formMethod||"get",u=e?s.toUpperCase():s.toLowerCase(),c=eH(r);if(void 0!==n.body){if("text/plain"===n.formEncType){if(!eY(u))return l();let e="string"==typeof n.body?n.body:n.body instanceof FormData||n.body instanceof URLSearchParams?Array.from(n.body.entries()).reduce((e,t)=>{let[r,n]=t;return""+e+r+"="+n+"\n"},""):String(n.body);return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:void 0,text:e}}}else if("application/json"===n.formEncType){if(!eY(u))return l();try{let e="string"==typeof n.body?JSON.parse(n.body):n.body;return{path:r,submission:{formMethod:u,formAction:c,formEncType:n.formEncType,formData:void 0,json:e,text:void 0}}}catch(e){return l()}}}if(E("function"==typeof FormData,"FormData is not available in this environment"),n.formData)o=eT(n.formData),i=n.formData;else if(n.body instanceof FormData)o=eT(n.body),i=n.body;else if(n.body instanceof URLSearchParams)i=ej(o=n.body);else if(null==n.body)o=new URLSearchParams,i=new FormData;else try{o=new URLSearchParams(n.body),i=ej(o)}catch(e){return l()}let d={formMethod:u,formAction:c,formEncType:n&&n.formEncType||"application/x-www-form-urlencoded",formData:i,json:void 0,text:void 0};if(eY(d.formMethod))return{path:r,submission:d};let h=P(r);return t&&h.search&&eQ(h.search)&&o.append("index",""),h.search="?"+o,{path:C(h),submission:d}}function eb(e,t,r){void 0===r&&(r=!1);let n=e.findIndex(e=>e.route.id===t);return n>=0?e.slice(0,r?n+1:n):e}function eE(e,t,r,n,a,o,i,l,s,u,c,d,h,f,p,m){let y=m?e$(m[1])?m[1].error:m[1].data:void 0,g=e.createURL(t.location),w=e.createURL(a),b=r;o&&t.errors?b=eb(r,Object.keys(t.errors)[0],!0):m&&e$(m[1])&&(b=eb(r,m[0]));let E=m?m[1].statusCode:void 0,S=i&&E&&E>=400,R=b.filter((e,r)=>{var a,i,u;let c,d,{route:h}=e;if(h.lazy)return!0;if(null==h.loader)return!1;if(o)return eS(h,t.loaderData,t.errors);if(a=t.loaderData,i=t.matches[r],u=e,c=!i||u.route.id!==i.route.id,d=void 0===a[u.route.id],c||d||s.some(t=>t===e.route.id))return!0;let f=t.matches[r];return ex(e,v({currentUrl:g,currentParams:f.params,nextUrl:w,nextParams:e.params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&(l||g.pathname+g.search===w.pathname+w.search||g.search!==w.search||eR(f,e))}))}),x=[];return d.forEach((e,a)=>{if(o||!r.some(t=>t.route.id===e.routeId)||c.has(a))return;let i=_(f,e.path,p);if(!i)return void x.push({key:a,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});let s=t.fetchers.get(a),d=eZ(i,e.path),m=!1;h.has(a)?m=!1:u.has(a)?(u.delete(a),m=!0):m=s&&"idle"!==s.state&&void 0===s.data?l:ex(d,v({currentUrl:g,currentParams:t.matches[t.matches.length-1].params,nextUrl:w,nextParams:r[r.length-1].params},n,{actionResult:y,actionStatus:E,defaultShouldRevalidate:!S&&l})),m&&x.push({key:a,routeId:e.routeId,path:e.path,matches:i,match:d,controller:new AbortController})}),[R,x]}function eS(e,t,r){if(e.lazy)return!0;if(!e.loader)return!1;let n=null!=t&&void 0!==t[e.id],a=null!=r&&void 0!==r[e.id];return(!!n||!a)&&("function"==typeof e.loader&&!0===e.loader.hydrate||!n&&!a)}function eR(e,t){let r=e.route.path;return e.pathname!==t.pathname||null!=r&&r.endsWith("*")&&e.params["*"]!==t.params["*"]}function ex(e,t){if(e.route.shouldRevalidate){let r=e.route.shouldRevalidate(t);if("boolean"==typeof r)return r}return t.defaultShouldRevalidate}function eC(e,t,r,n,a){var o;let i;if(e){let t=n[e];E(t,"No route found to patch children into: routeId = "+e),t.children||(t.children=[]),i=t.children}else i=r;let l=k(t.filter(e=>!i.some(t=>(function e(t,r){return"id"in t&&"id"in r&&t.id===r.id||t.index===r.index&&t.path===r.path&&t.caseSensitive===r.caseSensitive&&((!t.children||0===t.children.length)&&(!r.children||0===r.children.length)||t.children.every((t,n)=>{var a;return null==(a=r.children)?void 0:a.some(r=>e(t,r))}))})(e,t))),a,[e||"_","patch",String((null==(o=i)?void 0:o.length)||"0")],n);i.push(...l)}async function eP(e,t,r){if(!e.lazy)return;let n=await e.lazy();if(!e.lazy)return;let a=r[e.id];E(a,"No route found in manifest");let o={};for(let e in n){let t=void 0!==a[e]&&"hasErrorBoundary"!==e;S(!t,'Route "'+a.id+'" has a static property "'+e+'" defined but its lazy function is also returning a value for this property. The lazy route property "'+e+'" will be ignored.'),t||L.has(e)||(o[e]=n[e])}Object.assign(a,o),Object.assign(a,v({},t(a),{lazy:void 0}))}async function eD(e){let{matches:t}=e,r=t.filter(e=>e.shouldLoad);return(await Promise.all(r.map(e=>e.resolve()))).reduce((e,t,n)=>Object.assign(e,{[r[n].route.id]:t}),{})}async function eL(e,t,r,n,a,o,i,l,s,u){let c=o.map(e=>e.route.lazy?eP(e.route,s,l):void 0),h=o.map((e,r)=>{let o=c[r],i=a.some(t=>t.route.id===e.route.id),l=async r=>(r&&"GET"===n.method&&(e.route.lazy||e.route.loader)&&(i=!0),i?ek(t,n,e,o,r,u):Promise.resolve({type:d.data,result:void 0}));return v({},e,{shouldLoad:i,resolve:l})}),f=await e({matches:h,request:n,params:o[0].params,fetcherKey:i,context:u});try{await Promise.all(c)}catch(e){}return f}async function ek(e,t,r,n,a,o){let i,l,s=n=>{let i,s=new Promise((e,t)=>i=t);l=()=>i(),t.signal.addEventListener("abort",l);let u=a=>"function"!=typeof n?Promise.reject(Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: ')+r.route.id+"]")):n({request:t,params:r.params,context:o},...void 0!==a?[a]:[]);return Promise.race([(async()=>{try{let e=await (a?a(e=>u(e)):u());return{type:"data",result:e}}catch(e){return{type:"error",result:e}}})(),s])};try{let a=r.route[e];if(n)if(a){let e,[t]=await Promise.all([s(a).catch(t=>{e=t}),n]);if(void 0!==e)throw e;i=t}else if(await n,a=r.route[e])i=await s(a);else{if("action"!==e)return{type:d.data,result:void 0};let n=new URL(t.url),a=n.pathname+n.search;throw eI(405,{method:t.method,pathname:a,routeId:r.route.id})}else if(a)i=await s(a);else{let e=new URL(t.url),r=e.pathname+e.search;throw eI(404,{pathname:r})}E(void 0!==i.result,"You defined "+("action"===e?"an action":"a loader")+" for route "+('"'+r.route.id+"\" but didn't return anything from your `")+e+"` function. Please return a value or `null`.")}catch(e){return{type:d.error,result:e}}finally{l&&t.signal.removeEventListener("abort",l)}return i}async function e_(e){var t,r,n,a,o,i,l,s,u;let{result:c,type:h}=e;if(eK(c)){let e;try{let t=c.headers.get("Content-Type");e=t&&/\bapplication\/json\b/.test(t)?null==c.body?null:await c.json():await c.text()}catch(e){return{type:d.error,error:e}}return h===d.error?{type:d.error,error:new ea(c.status,c.statusText,e),statusCode:c.status,headers:c.headers}:{type:d.data,data:e,statusCode:c.status,headers:c.headers}}if(h===d.error)return eJ(c)?c.data instanceof Error?{type:d.error,error:c.data,statusCode:null==(n=c.init)?void 0:n.status,headers:null!=(a=c.init)&&a.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:new ea((null==(t=c.init)?void 0:t.status)||500,void 0,c.data),statusCode:eo(c)?c.status:void 0,headers:null!=(r=c.init)&&r.headers?new Headers(c.init.headers):void 0}:{type:d.error,error:c,statusCode:eo(c)?c.status:void 0};return(u=c)&&"object"==typeof u&&"object"==typeof u.data&&"function"==typeof u.subscribe&&"function"==typeof u.cancel&&"function"==typeof u.resolveData?{type:d.deferred,deferredData:c,statusCode:null==(o=c.init)?void 0:o.status,headers:(null==(i=c.init)?void 0:i.headers)&&new Headers(c.init.headers)}:eJ(c)?{type:d.data,data:c.data,statusCode:null==(l=c.init)?void 0:l.status,headers:null!=(s=c.init)&&s.headers?new Headers(c.init.headers):void 0}:{type:d.data,data:c}}function eA(e,t,r,n){let a=["about:","blob:","chrome:","chrome-untrusted:","content:","data:","devtools:","file:","filesystem:","javascript:"];if(ep.test(e)){let n=new URL(e.startsWith("//")?t.protocol+e:e);if(a.includes(n.protocol))throw Error("Invalid redirect location");let o=null!=N(n.pathname,r);if(n.origin===t.origin&&o)return J(n.pathname)+n.search+n.hash}try{let t=n.createURL(e);if(a.includes(t.protocol))throw Error("Invalid redirect location")}catch(e){}return e}function eU(e,t,r,n){let a=e.createURL(eH(t)).toString(),o={signal:r};if(n&&eY(n.formMethod)){let{formMethod:e,formEncType:t}=n;o.method=e.toUpperCase(),"application/json"===t?(o.headers=new Headers({"Content-Type":t}),o.body=JSON.stringify(n.json)):"text/plain"===t?o.body=n.text:"application/x-www-form-urlencoded"===t&&n.formData?o.body=eT(n.formData):o.body=n.formData}return new Request(a,o)}function eT(e){let t=new URLSearchParams;for(let[r,n]of e.entries())t.append(r,"string"==typeof n?n:n.name);return t}function ej(e){let t=new FormData;for(let[r,n]of e.entries())t.append(r,n);return t}function eM(e,t,r,n,a,o,i){let l,s,u,c,d,h,{loaderData:f,errors:p}=(s={},u=null,c=!1,d={},h=n&&e$(n[1])?n[1].error:void 0,t.forEach(e=>{if(!(e.route.id in r))return;let n=e.route.id,a=r[n];if(E(!eV(a),"Cannot handle redirect results in processLoaderData"),e$(a)){let e=a.error;void 0!==h&&(e=h,h=void 0),u=u||{},1;{let r=eN(t,n);null==u[r.route.id]&&(u[r.route.id]=e)}s[n]=void 0,c||(c=!0,l=eo(a.error)?a.error.status:500),a.headers&&(d[n]=a.headers)}else eW(a)?(i.set(n,a.deferredData),s[n]=a.deferredData.data,null==a.statusCode||200===a.statusCode||c||(l=a.statusCode)):(s[n]=a.data,a.statusCode&&200!==a.statusCode&&!c&&(l=a.statusCode)),a.headers&&(d[n]=a.headers)}),void 0!==h&&n&&(u={[n[0]]:h},s[n[0]]=void 0),{loaderData:s,errors:u,statusCode:l||200,loaderHeaders:d});return a.forEach(t=>{let{key:r,match:n,controller:a}=t,i=o[r];if(E(i,"Did not find corresponding fetcher result"),!a||!a.signal.aborted)if(e$(i)){let t=eN(e.matches,null==n?void 0:n.route.id);p&&p[t.route.id]||(p=v({},p,{[t.route.id]:i.error})),e.fetchers.delete(r)}else if(eV(i))E(!1,"Unhandled fetcher revalidation redirect");else if(eW(i))E(!1,"Unhandled fetcher deferred data");else{let t=e4(i.data);e.fetchers.set(r,t)}}),{loaderData:f,errors:p}}function eO(e,t,r,n){let a=v({},t);for(let o of r){let r=o.route.id;if(t.hasOwnProperty(r)?void 0!==t[r]&&(a[r]=t[r]):void 0!==e[r]&&o.route.loader&&(a[r]=e[r]),n&&n.hasOwnProperty(r))break}return a}function eF(e){return e?e$(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function eN(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>!0===e.route.hasErrorBoundary)||e[0]}function eB(e){let t=1===e.length?e[0]:e.find(e=>e.index||!e.path||"/"===e.path)||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:t}],route:t}}function eI(e,t){let{pathname:r,routeId:n,method:a,type:o,message:i}=void 0===t?{}:t,l="Unknown Server Error",s="Unknown @remix-run/router error";return 400===e?(l="Bad Request",a&&r&&n?s="You made a "+a+' request to "'+r+'" but did not provide a `loader` for route "'+n+'", so there is no way to handle the request.':"defer-action"===o?s="defer() is not supported in actions":"invalid-body"===o&&(s="Unable to encode submission body")):403===e?(l="Forbidden",s='Route "'+n+'" does not match URL "'+r+'"'):404===e?(l="Not Found",s='No route matches URL "'+r+'"'):405===e&&(l="Method Not Allowed",a&&r&&n?s="You made a "+a.toUpperCase()+' request to "'+r+'" but did not provide an `action` for route "'+n+'", so there is no way to handle the request.':a&&(s='Invalid request method "'+a.toUpperCase()+'"')),new ea(e||500,l,Error(s),!0)}function ez(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[r,n]=t[e];if(eV(n))return{key:r,result:n}}}function eH(e){let t="string"==typeof e?P(e):e;return C(v({},t,{hash:""}))}function eW(e){return e.type===d.deferred}function e$(e){return e.type===d.error}function eV(e){return(e&&e.type)===d.redirect}function eJ(e){return"object"==typeof e&&null!=e&&"type"in e&&"data"in e&&"init"in e&&"DataWithResponseInit"===e.type}function eK(e){return null!=e&&"number"==typeof e.status&&"string"==typeof e.statusText&&"object"==typeof e.headers&&void 0!==e.body}function eY(e){return el.has(e.toLowerCase())}async function eq(e,t,r,n,a){let o=Object.entries(t);for(let i=0;i<o.length;i++){let[l,s]=o[i],u=e.find(e=>(null==e?void 0:e.route.id)===l);if(!u)continue;let c=n.find(e=>e.route.id===u.route.id),d=null!=c&&!eR(c,u)&&(a&&a[u.route.id])!==void 0;eW(s)&&d&&await eG(s,r,!1).then(e=>{e&&(t[l]=e)})}}async function eX(e,t,r){for(let n=0;n<r.length;n++){let{key:a,routeId:o,controller:i}=r[n],l=t[a];e.find(e=>(null==e?void 0:e.route.id)===o)&&eW(l)&&(E(i,"Expected an AbortController for revalidating fetcher deferred result"),await eG(l,i.signal,!0).then(e=>{e&&(t[a]=e)}))}}async function eG(e,t,r){if(void 0===r&&(r=!1),!await e.deferredData.resolveData(t)){if(r)try{return{type:d.data,data:e.deferredData.unwrappedData}}catch(e){return{type:d.error,error:e}}return{type:d.data,data:e.deferredData.data}}}function eQ(e){return new URLSearchParams(e).getAll("index").some(e=>""===e)}function eZ(e,t){let r="string"==typeof t?P(t).search:t.search;if(e[e.length-1].route.index&&eQ(r||""))return e[e.length-1];let n=W(e);return n[n.length-1]}function e0(e){let{formMethod:t,formAction:r,formEncType:n,text:a,formData:o,json:i}=e;if(t&&r&&n){if(null!=a)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:void 0,text:a};else if(null!=o)return{formMethod:t,formAction:r,formEncType:n,formData:o,json:void 0,text:void 0};else if(void 0!==i)return{formMethod:t,formAction:r,formEncType:n,formData:void 0,json:i,text:void 0}}}function e1(e,t){return t?{state:"loading",location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:"loading",location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function e7(e,t){return e?{state:"loading",formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function e4(e){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function e2(){return(e2=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}Symbol("deferred");let e3=p.createContext(null),e5=p.createContext(null),e9=p.createContext(null),e8=p.createContext(null),e6=p.createContext(null),te=p.createContext({outlet:null,matches:[],isDataRoute:!1}),tt=p.createContext(null);function tr(e,t){let{relative:r}=void 0===t?{}:t;tn()||E(!1);let{basename:n,navigator:a}=p.useContext(e8),{hash:o,pathname:i,search:l}=tf(e,{relative:r}),s=i;return"/"!==n&&(s="/"===i?n:K([n,i])),a.createHref({pathname:s,search:l,hash:o})}function tn(){return null!=p.useContext(e6)}function ta(){return tn()||E(!1),p.useContext(e6).location}function to(){return p.useContext(e6).navigationType}function ti(e){tn()||E(!1);let{pathname:t}=ta();return p.useMemo(()=>O(e,F(t)),[t,e])}function tl(e){p.useContext(e8).static||p.useLayoutEffect(e)}function ts(){let{isDataRoute:e}=p.useContext(te);return e?function(){let{router:e}=tS(tb.UseNavigateStable),t=tx(tE.UseNavigateStable),r=p.useRef(!1);return tl(()=>{r.current=!0}),p.useCallback(function(n,a){void 0===a&&(a={}),r.current&&("number"==typeof n?e.navigate(n):e.navigate(n,e2({fromRouteId:t},a)))},[e,t])}():function(){tn()||E(!1);let e=p.useContext(e3),{basename:t,future:r,navigator:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,r.v7_relativeSplatPath)),l=p.useRef(!1);return tl(()=>{l.current=!0}),p.useCallback(function(r,a){if(void 0===a&&(a={}),!l.current)return;if("number"==typeof r)return void n.go(r);let s=V(r,JSON.parse(i),o,"path"===a.relative);null==e&&"/"!==t&&(s.pathname="/"===s.pathname?t:K([t,s.pathname])),(a.replace?n.replace:n.push)(s,a.state,a)},[t,n,i,o,e])}()}let tu=p.createContext(null);function tc(){return p.useContext(tu)}function td(e){let t=p.useContext(te).outlet;return t?p.createElement(tu.Provider,{value:e},t):t}function th(){let{matches:e}=p.useContext(te),t=e[e.length-1];return t?t.params:{}}function tf(e,t){let{relative:r}=void 0===t?{}:t,{future:n}=p.useContext(e8),{matches:a}=p.useContext(te),{pathname:o}=ta(),i=JSON.stringify($(a,n.v7_relativeSplatPath));return p.useMemo(()=>V(e,JSON.parse(i),o,"path"===r),[e,i,o,r])}function tp(e,t){return tm(e,t)}function tm(e,t,r,n){let a;tn()||E(!1);let{navigator:o}=p.useContext(e8),{matches:i}=p.useContext(te),l=i[i.length-1],s=l?l.params:{};l&&l.pathname;let u=l?l.pathnameBase:"/";l&&l.route;let d=ta();if(t){var h;let e="string"==typeof t?P(t):t;"/"===u||(null==(h=e.pathname)?void 0:h.startsWith(u))||E(!1),a=e}else a=d;let f=a.pathname||"/",m=f;if("/"!==u){let e=u.replace(/^\//,"").split("/");m="/"+f.replace(/^\//,"").split("/").slice(e.length).join("/")}let v=_(e,{pathname:m}),y=tw(v&&v.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:K([u,o.encodeLocation?o.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:"/"===e.pathnameBase?u:K([u,o.encodeLocation?o.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),i,r,n);return t&&y?p.createElement(e6.Provider,{value:{location:e2({pathname:"/",search:"",hash:"",state:null,key:"default"},a),navigationType:c.Pop}},y):y}let tv=p.createElement(function(){let e=tU(),t=eo(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),r=e instanceof Error?e.stack:null;return p.createElement(p.Fragment,null,p.createElement("h2",null,"Unexpected Application Error!"),p.createElement("h3",{style:{fontStyle:"italic"}},t),r?p.createElement("pre",{style:{padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"}},r):null,null)},null);class ty extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||"idle"!==t.revalidation&&"idle"===e.revalidation?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:void 0!==e.error?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return void 0!==this.state.error?p.createElement(te.Provider,{value:this.props.routeContext},p.createElement(tt.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function tg(e){let{routeContext:t,match:r,children:n}=e,a=p.useContext(e3);return a&&a.static&&a.staticContext&&(r.route.errorElement||r.route.ErrorBoundary)&&(a.staticContext._deepestRenderedBoundaryId=r.route.id),p.createElement(te.Provider,{value:t},n)}function tw(e,t,r,n){var a,o;if(void 0===t&&(t=[]),void 0===r&&(r=null),void 0===n&&(n=null),null==e){if(!r)return null;if(r.errors)e=r.matches;else{if(null==(o=n)||!o.v7_partialHydration||0!==t.length||r.initialized||!(r.matches.length>0))return null;e=r.matches}}let i=e,l=null==(a=r)?void 0:a.errors;if(null!=l){let e=i.findIndex(e=>e.route.id&&(null==l?void 0:l[e.route.id])!==void 0);e>=0||E(!1),i=i.slice(0,Math.min(i.length,e+1))}let s=!1,u=-1;if(r&&n&&n.v7_partialHydration)for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(u=e),t.route.id){let{loaderData:e,errors:n}=r,a=t.route.loader&&void 0===e[t.route.id]&&(!n||void 0===n[t.route.id]);if(t.route.lazy||a){s=!0,i=u>=0?i.slice(0,u+1):[i[0]];break}}}return i.reduceRight((e,n,a)=>{var o;let c,d=!1,h=null,f=null;r&&(c=l&&n.route.id?l[n.route.id]:void 0,h=n.route.errorElement||tv,s&&(u<0&&0===a?(o="route-fallback",tF[o]||(tF[o]=!0),d=!0,f=null):u===a&&(d=!0,f=n.route.hydrateFallbackElement||null)));let m=t.concat(i.slice(0,a+1)),v=()=>{let t;return t=c?h:d?f:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(tg,{match:n,routeContext:{outlet:e,matches:m,isDataRoute:null!=r},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||0===a)?p.createElement(ty,{location:r.location,revalidation:r.revalidation,component:h,error:c,children:v(),routeContext:{outlet:null,matches:m,isDataRoute:!0}}):v()},null)}var tb=((o=tb||{}).UseBlocker="useBlocker",o.UseRevalidator="useRevalidator",o.UseNavigateStable="useNavigate",o),tE=((i=tE||{}).UseBlocker="useBlocker",i.UseLoaderData="useLoaderData",i.UseActionData="useActionData",i.UseRouteError="useRouteError",i.UseNavigation="useNavigation",i.UseRouteLoaderData="useRouteLoaderData",i.UseMatches="useMatches",i.UseRevalidator="useRevalidator",i.UseNavigateStable="useNavigate",i.UseRouteId="useRouteId",i);function tS(e){let t=p.useContext(e3);return t||E(!1),t}function tR(e){let t=p.useContext(e5);return t||E(!1),t}function tx(e){let t,r=((t=p.useContext(te))||E(!1),t),n=r.matches[r.matches.length-1];return n.route.id||E(!1),n.route.id}function tC(){return tx(tE.UseRouteId)}function tP(){return tR(tE.UseNavigation).navigation}function tD(){let e=tS(tb.UseRevalidator),t=tR(tE.UseRevalidator);return p.useMemo(()=>({revalidate:e.router.revalidate,state:t.revalidation}),[e.router.revalidate,t.revalidation])}function tL(){let{matches:e,loaderData:t}=tR(tE.UseMatches);return p.useMemo(()=>e.map(e=>U(e,t)),[e,t])}function tk(){let e=tR(tE.UseLoaderData),t=tx(tE.UseLoaderData);return e.errors&&null!=e.errors[t]?void console.error("You cannot `useLoaderData` in an errorElement (routeId: "+t+")"):e.loaderData[t]}function t_(e){return tR(tE.UseRouteLoaderData).loaderData[e]}function tA(){let e=tR(tE.UseActionData),t=tx(tE.UseLoaderData);return e.actionData?e.actionData[t]:void 0}function tU(){var e;let t=p.useContext(tt),r=tR(tE.UseRouteError),n=tx(tE.UseRouteError);return void 0!==t?t:null==(e=r.errors)?void 0:e[n]}function tT(){let e=p.useContext(e9);return null==e?void 0:e._data}function tj(){let e=p.useContext(e9);return null==e?void 0:e._error}let tM=0;function tO(e){let{router:t,basename:r}=tS(tb.UseBlocker),n=tR(tE.UseBlocker),[a,o]=p.useState(""),i=p.useCallback(t=>{if("function"!=typeof e)return!!e;if("/"===r)return e(t);let{currentLocation:n,nextLocation:a,historyAction:o}=t;return e({currentLocation:e2({},n,{pathname:N(n.pathname,r)||n.pathname}),nextLocation:e2({},a,{pathname:N(a.pathname,r)||a.pathname}),historyAction:o})},[r,e]);return p.useEffect(()=>{let e=String(++tM);return o(e),()=>t.deleteBlocker(e)},[t]),p.useEffect(()=>{""!==a&&t.getBlocker(a,i)},[t,a,i]),a&&n.blockers.has(a)?n.blockers.get(a):ef}let tF={};function tN(e,t){(null==e||e.v7_startTransition,(null==e?void 0:e.v7_relativeSplatPath)!==void 0||t&&void 0!==t.v7_relativeSplatPath,t)&&(t.v7_fetcherPersist,t.v7_normalizeFormMethod,t.v7_partialHydration,t.v7_skipActionErrorRevalidation)}let tB=p.startTransition;function tI(e){let{basename:t,children:r,initialEntries:n,initialIndex:a,future:o}=e,i=p.useRef();null==i.current&&(i.current=g({initialEntries:n,initialIndex:a,v5Compat:!0}));let l=i.current,[s,u]=p.useState({action:l.action,location:l.location}),{v7_startTransition:c}=o||{},d=p.useCallback(e=>{c&&tB?tB(()=>u(e)):u(e)},[u,c]);return p.useLayoutEffect(()=>l.listen(d),[l,d]),p.useEffect(()=>tN(o),[o]),p.createElement(t$,{basename:t,children:r,location:s.location,navigationType:s.action,navigator:l,future:o})}function tz(e){let{to:t,replace:r,state:n,relative:a}=e;tn()||E(!1);let{future:o,static:i}=p.useContext(e8),{matches:l}=p.useContext(te),{pathname:s}=ta(),u=ts(),c=JSON.stringify(V(t,$(l,o.v7_relativeSplatPath),s,"path"===a));return p.useEffect(()=>u(JSON.parse(c),{replace:r,state:n,relative:a}),[u,c,a,r,n]),null}function tH(e){return td(e.context)}function tW(e){E(!1)}function t$(e){let{basename:t="/",children:r=null,location:n,navigationType:a=c.Pop,navigator:o,static:i=!1,future:l}=e;tn()&&E(!1);let s=t.replace(/^\/*/,"/"),u=p.useMemo(()=>({basename:s,navigator:o,static:i,future:e2({v7_relativeSplatPath:!1},l)}),[s,l,o,i]);"string"==typeof n&&(n=P(n));let{pathname:d="/",search:h="",hash:f="",state:m=null,key:v="default"}=n,y=p.useMemo(()=>{let e=N(d,s);return null==e?null:{location:{pathname:e,search:h,hash:f,state:m,key:v},navigationType:a}},[s,d,h,f,m,v,a]);return null==y?null:p.createElement(e8.Provider,{value:u},p.createElement(e6.Provider,{children:r,value:y}))}function tV(e){let{children:t,location:r}=e;return tm(tG(t),r)}function tJ(e){let{children:t,errorElement:r,resolve:n}=e;return p.createElement(tq,{resolve:n,errorElement:r},p.createElement(tX,null,t))}var tK=((l=tK||{})[l.pending=0]="pending",l[l.success=1]="success",l[l.error=2]="error",l);let tY=new Promise(()=>{});class tq extends p.Component{constructor(e){super(e),this.state={error:null}}static getDerivedStateFromError(e){return{error:e}}componentDidCatch(e,t){console.error("<Await> caught the following error during render",e,t)}render(){let{children:e,errorElement:t,resolve:r}=this.props,n=null,a=tK.pending;if(r instanceof Promise)if(this.state.error){a=tK.error;let e=this.state.error;Object.defineProperty(n=Promise.reject().catch(()=>{}),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_error",{get:()=>e})}else r._tracked?a="_error"in(n=r)?tK.error:"_data"in n?tK.success:tK.pending:(a=tK.pending,Object.defineProperty(r,"_tracked",{get:()=>!0}),n=r.then(e=>Object.defineProperty(r,"_data",{get:()=>e}),e=>Object.defineProperty(r,"_error",{get:()=>e})));else a=tK.success,Object.defineProperty(n=Promise.resolve(),"_tracked",{get:()=>!0}),Object.defineProperty(n,"_data",{get:()=>r});if(a===tK.error&&n._error instanceof Q)throw tY;if(a===tK.error&&!t)throw n._error;if(a===tK.error)return p.createElement(e9.Provider,{value:n,children:t});if(a===tK.success)return p.createElement(e9.Provider,{value:n,children:e});throw n}}function tX(e){let{children:t}=e,r=tT(),n="function"==typeof t?t(r):t;return p.createElement(p.Fragment,null,n)}function tG(e,t){void 0===t&&(t=[]);let r=[];return p.Children.forEach(e,(e,n)=>{if(!p.isValidElement(e))return;let a=[...t,n];if(e.type===p.Fragment)return void r.push.apply(r,tG(e.props.children,a));e.type!==tW&&E(!1),e.props.index&&e.props.children&&E(!1);let o={id:e.props.id||a.join("-"),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,loader:e.props.loader,action:e.props.action,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:null!=e.props.ErrorBoundary||null!=e.props.errorElement,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(o.children=tG(e.props.children,a)),r.push(o)}),r}function tQ(e){return tw(e)}function tZ(e){let t={hasErrorBoundary:null!=e.ErrorBoundary||null!=e.errorElement};return e.Component&&Object.assign(t,{element:p.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:p.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:p.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function t0(e,t){return ey({basename:null==t?void 0:t.basename,future:e2({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:g({initialEntries:null==t?void 0:t.initialEntries,initialIndex:null==t?void 0:t.initialIndex}),hydrationData:null==t?void 0:t.hydrationData,routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation}).initialize()}function t1(){return(t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function t7(e,t){if(null==e)return{};var r={};for(var n in e)if(({}).hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}let t4="application/x-www-form-urlencoded";function t2(e){return null!=e&&"string"==typeof e.tagName}function t3(e){return void 0===e&&(e=""),new URLSearchParams("string"==typeof e||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,r)=>{let n=e[r];return t.concat(Array.isArray(n)?n.map(e=>[r,e]):[[r,n]])},[]))}let t5=null,t9=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function t8(e){return null==e||t9.has(e)?e:null}let t6=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","viewTransition"],re=["aria-current","caseSensitive","className","end","style","to","viewTransition","children"],rt=["fetcherKey","navigate","reloadDocument","replace","state","method","action","onSubmit","relative","preventScrollReset","viewTransition"];try{window.__reactRouterVersion="6"}catch(e){}function rr(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:w({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function rn(e,t){return ey({basename:null==t?void 0:t.basename,future:t1({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:b({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||ra(),routes:e,mapRouteProperties:tZ,dataStrategy:null==t?void 0:t.dataStrategy,patchRoutesOnNavigation:null==t?void 0:t.patchRoutesOnNavigation,window:null==t?void 0:t.window}).initialize()}function ra(){var e;let t=null==(e=window)?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=t1({},t,{errors:function(e){if(!e)return null;let t=Object.entries(e),r={};for(let[e,n]of t)if(n&&"RouteErrorResponse"===n.__type)r[e]=new ea(n.status,n.statusText,n.data,!0===n.internal);else if(n&&"Error"===n.__type){if(n.__subType){let t=window[n.__subType];if("function"==typeof t)try{let a=new t(n.message);a.stack="",r[e]=a}catch(e){}}if(null==r[e]){let t=Error(n.message);t.stack="",r[e]=t}}else r[e]=n;return r}(t.errors)})),t}let ro=p.createContext({isTransitioning:!1}),ri=p.createContext(new Map),rl=p.startTransition,rs=m.flushSync,ru=p.useId;function rc(e){rs?rs(e):e()}class rd{constructor(){this.status="pending",this.promise=new Promise((e,t)=>{this.resolve=t=>{"pending"===this.status&&(this.status="resolved",e(t))},this.reject=e=>{"pending"===this.status&&(this.status="rejected",t(e))}})}}function rh(e){let{fallbackElement:t,router:r,future:n}=e,[a,o]=p.useState(r.state),[i,l]=p.useState(),[s,u]=p.useState({isTransitioning:!1}),[c,d]=p.useState(),[h,f]=p.useState(),[m,v]=p.useState(),y=p.useRef(new Map),{v7_startTransition:g}=n||{},w=p.useCallback(e=>{if(g)rl?rl(e):e();else e()},[g]),b=p.useCallback((e,t)=>{let{deletedFetchers:n,flushSync:a,viewTransitionOpts:i}=t;e.fetchers.forEach((e,t)=>{void 0!==e.data&&y.current.set(t,e.data)}),n.forEach(e=>y.current.delete(e));let s=null==r.window||null==r.window.document||"function"!=typeof r.window.document.startViewTransition;if(!i||s)return void(a?rc(()=>o(e)):w(()=>o(e)));if(a){rc(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:i.currentLocation,nextLocation:i.nextLocation})});let t=r.window.document.startViewTransition(()=>{rc(()=>o(e))});t.finished.finally(()=>{rc(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})})}),rc(()=>f(t));return}h?(c&&c.resolve(),h.skipTransition(),v({state:e,currentLocation:i.currentLocation,nextLocation:i.nextLocation})):(l(e),u({isTransitioning:!0,flushSync:!1,currentLocation:i.currentLocation,nextLocation:i.nextLocation}))},[r.window,h,c,y,w]);p.useLayoutEffect(()=>r.subscribe(b),[r,b]),p.useEffect(()=>{s.isTransitioning&&!s.flushSync&&d(new rd)},[s]),p.useEffect(()=>{if(c&&i&&r.window){let e=c.promise,t=r.window.document.startViewTransition(async()=>{w(()=>o(i)),await e});t.finished.finally(()=>{d(void 0),f(void 0),l(void 0),u({isTransitioning:!1})}),f(t)}},[w,i,c,r.window]),p.useEffect(()=>{c&&i&&a.location.key===i.location.key&&c.resolve()},[c,h,a.location,i]),p.useEffect(()=>{!s.isTransitioning&&m&&(l(m.state),u({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),v(void 0))},[s.isTransitioning,m]),p.useEffect(()=>{},[]);let E=p.useMemo(()=>({createHref:r.createHref,encodeLocation:r.encodeLocation,go:e=>r.navigate(e),push:(e,t,n)=>r.navigate(e,{state:t,preventScrollReset:null==n?void 0:n.preventScrollReset}),replace:(e,t,n)=>r.navigate(e,{replace:!0,state:t,preventScrollReset:null==n?void 0:n.preventScrollReset})}),[r]),S=r.basename||"/",R=p.useMemo(()=>({router:r,navigator:E,static:!1,basename:S}),[r,E,S]),x=p.useMemo(()=>({v7_relativeSplatPath:r.future.v7_relativeSplatPath}),[r.future.v7_relativeSplatPath]);return p.useEffect(()=>tN(n,r.future),[n,r.future]),p.createElement(p.Fragment,null,p.createElement(e3.Provider,{value:R},p.createElement(e5.Provider,{value:a},p.createElement(ri.Provider,{value:y.current},p.createElement(ro.Provider,{value:s},p.createElement(t$,{basename:S,location:a.location,navigationType:a.historyAction,navigator:E,future:x},a.initialized||r.future.v7_partialHydration?p.createElement(rf,{routes:r.routes,future:r.future,state:a}):t))))),null)}let rf=p.memo(function(e){let{routes:t,future:r,state:n}=e;return tm(t,void 0,n,r)});function rp(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=w({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rm(e){let{basename:t,children:r,future:n,window:a}=e,o=p.useRef();null==o.current&&(o.current=b({window:a,v5Compat:!0}));let i=o.current,[l,s]=p.useState({action:i.action,location:i.location}),{v7_startTransition:u}=n||{},c=p.useCallback(e=>{u&&rl?rl(()=>s(e)):s(e)},[s,u]);return p.useLayoutEffect(()=>i.listen(c),[i,c]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:l.location,navigationType:l.action,navigator:i,future:n})}function rv(e){let{basename:t,children:r,future:n,history:a}=e,[o,i]=p.useState({action:a.action,location:a.location}),{v7_startTransition:l}=n||{},s=p.useCallback(e=>{l&&rl?rl(()=>i(e)):i(e)},[i,l]);return p.useLayoutEffect(()=>a.listen(s),[a,s]),p.useEffect(()=>tN(n),[n]),p.createElement(t$,{basename:t,children:r,location:o.location,navigationType:o.action,navigator:a,future:n})}let ry="u">typeof window&&void 0!==window.document&&void 0!==window.document.createElement,rg=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,rw=p.forwardRef(function(e,t){let r,{onClick:n,relative:a,reloadDocument:o,replace:i,state:l,target:s,to:u,preventScrollReset:c,viewTransition:d}=e,h=t7(e,t6),{basename:f}=p.useContext(e8),m=!1;if("string"==typeof u&&rg.test(u)&&(r=u,ry))try{let e=new URL(window.location.href),t=new URL(u.startsWith("//")?e.protocol+u:u),r=N(t.pathname,f);t.origin===e.origin&&null!=r?u=r+t.search+t.hash:m=!0}catch(e){}let v=tr(u,{relative:a}),y=rC(u,{replace:i,state:l,target:s,preventScrollReset:c,relative:a,viewTransition:d});return p.createElement("a",t1({},h,{href:r||v,onClick:m||o?n:function(e){n&&n(e),e.defaultPrevented||y(e)},ref:t,target:s}))}),rb=p.forwardRef(function(e,t){let r,{"aria-current":n="page",caseSensitive:a=!1,className:o="",end:i=!1,style:l,to:s,viewTransition:u,children:c}=e,d=t7(e,re),h=tf(s,{relative:d.relative}),f=ta(),m=p.useContext(e5),{navigator:v,basename:y}=p.useContext(e8),g=null!=m&&rN(h)&&!0===u,w=v.encodeLocation?v.encodeLocation(h).pathname:h.pathname,b=f.pathname,E=m&&m.navigation&&m.navigation.location?m.navigation.location.pathname:null;a||(b=b.toLowerCase(),E=E?E.toLowerCase():null,w=w.toLowerCase()),E&&y&&(E=N(E,y)||E);let S="/"!==w&&w.endsWith("/")?w.length-1:w.length,R=b===w||!i&&b.startsWith(w)&&"/"===b.charAt(S),x=null!=E&&(E===w||!i&&E.startsWith(w)&&"/"===E.charAt(w.length)),C={isActive:R,isPending:x,isTransitioning:g},P=R?n:void 0;r="function"==typeof o?o(C):[o,R?"active":null,x?"pending":null,g?"transitioning":null].filter(Boolean).join(" ");let D="function"==typeof l?l(C):l;return p.createElement(rw,t1({},d,{"aria-current":P,className:r,ref:t,style:D,to:s,viewTransition:u}),"function"==typeof c?c(C):c)}),rE=p.forwardRef((e,t)=>{let{fetcherKey:r,navigate:n,reloadDocument:a,replace:o,state:i,method:l="get",action:s,onSubmit:u,relative:c,preventScrollReset:d,viewTransition:h}=e,f=t7(e,rt),m=rk(),v=r_(s,{relative:c}),y="get"===l.toLowerCase()?"get":"post";return p.createElement("form",t1({ref:t,method:y,action:v,onSubmit:a?u:e=>{if(u&&u(e),e.defaultPrevented)return;e.preventDefault();let t=e.nativeEvent.submitter,a=(null==t?void 0:t.getAttribute("formmethod"))||l;m(t||e.currentTarget,{fetcherKey:r,method:a,navigate:n,replace:o,state:i,relative:c,preventScrollReset:d,viewTransition:h})}},f))});function rS(e){let{getKey:t,storageKey:r}=e;return rM({getKey:t,storageKey:r}),null}function rR(e){let t=p.useContext(e3);return t||E(!1),t}function rx(e){let t=p.useContext(e5);return t||E(!1),t}function rC(e,t){let{target:r,replace:n,state:a,preventScrollReset:o,relative:i,viewTransition:l}=void 0===t?{}:t,s=ts(),u=ta(),c=tf(e,{relative:i});return p.useCallback(t=>{0!==t.button||r&&"_self"!==r||t.metaKey||t.altKey||t.ctrlKey||t.shiftKey||(t.preventDefault(),s(e,{replace:void 0!==n?n:C(u)===C(c),state:a,preventScrollReset:o,relative:i,viewTransition:l}))},[u,s,c,n,a,r,e,o,i,l])}function rP(e){let t=p.useRef(t3(e)),r=p.useRef(!1),n=ta(),a=p.useMemo(()=>{var e,a;let o;return e=n.search,a=r.current?null:t.current,o=t3(e),a&&a.forEach((e,t)=>{o.has(t)||a.getAll(t).forEach(e=>{o.append(t,e)})}),o},[n.search]),o=ts(),i=p.useCallback((e,t)=>{let n=t3("function"==typeof e?e(a):e);r.current=!0,o("?"+n,t)},[o,a]);return[a,i]}(s=h||(h={})).UseScrollRestoration="useScrollRestoration",s.UseSubmit="useSubmit",s.UseSubmitFetcher="useSubmitFetcher",s.UseFetcher="useFetcher",s.useViewTransitionState="useViewTransitionState",(u=f||(f={})).UseFetcher="useFetcher",u.UseFetchers="useFetchers",u.UseScrollRestoration="useScrollRestoration";let rD=0,rL=()=>"__"+String(++rD)+"__";function rk(){let{router:e}=rR(h.UseSubmit),{basename:t}=p.useContext(e8),r=tC();return p.useCallback(function(n,a){if(void 0===a&&(a={}),"u"<typeof document)throw Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.");let{action:o,method:i,encType:l,formData:s,body:u}=function(e,t){let r,n,a,o,i;if(t2(e)&&"form"===e.tagName.toLowerCase()){let i=e.getAttribute("action");n=i?N(i,t):null,r=e.getAttribute("method")||"get",a=t8(e.getAttribute("enctype"))||t4,o=new FormData(e)}else if(t2(e)&&"button"===e.tagName.toLowerCase()||t2(e)&&"input"===e.tagName.toLowerCase()&&("submit"===e.type||"image"===e.type)){let i=e.form;if(null==i)throw Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||i.getAttribute("action");if(n=l?N(l,t):null,r=e.getAttribute("formmethod")||i.getAttribute("method")||"get",a=t8(e.getAttribute("formenctype"))||t8(i.getAttribute("enctype"))||t4,o=new FormData(i,e),!function(){if(null===t5)try{new FormData(document.createElement("form"),0),t5=!1}catch(e){t5=!0}return t5}()){let{name:t,type:r,value:n}=e;if("image"===r){let e=t?t+".":"";o.append(e+"x","0"),o.append(e+"y","0")}else t&&o.append(t,n)}}else if(t2(e))throw Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');else r="get",n=null,a=t4,i=e;return o&&"text/plain"===a&&(i=o,o=void 0),{action:n,method:r.toLowerCase(),encType:a,formData:o,body:i}}(n,t);if(!1===a.navigate){let t=a.fetcherKey||rL();e.fetch(t,r,a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,flushSync:a.flushSync})}else e.navigate(a.action||o,{preventScrollReset:a.preventScrollReset,formData:s,body:u,formMethod:a.method||i,formEncType:a.encType||l,replace:a.replace,state:a.state,fromRouteId:r,flushSync:a.flushSync,viewTransition:a.viewTransition})},[e,t,r])}function r_(e,t){let{relative:r}=void 0===t?{}:t,{basename:n}=p.useContext(e8),a=p.useContext(te);a||E(!1);let[o]=a.matches.slice(-1),i=t1({},tf(e||".",{relative:r})),l=ta();if(null==e){i.search=l.search;let e=new URLSearchParams(i.search),t=e.getAll("index");if(t.some(e=>""===e)){e.delete("index"),t.filter(e=>e).forEach(t=>e.append("index",t));let r=e.toString();i.search=r?"?"+r:""}}return(!e||"."===e)&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),"/"!==n&&(i.pathname="/"===i.pathname?n:K([n,i.pathname])),C(i)}function rA(e){var t;let{key:r}=void 0===e?{}:e,{router:n}=rR(h.UseFetcher),a=rx(f.UseFetcher),o=p.useContext(ri),i=p.useContext(te),l=null==(t=i.matches[i.matches.length-1])?void 0:t.route.id;o||E(!1),i||E(!1),null==l&&E(!1);let s=ru?ru():"",[u,c]=p.useState(r||s);r&&r!==u?c(r):u||c(rL()),p.useEffect(()=>(n.getFetcher(u),()=>{n.deleteFetcher(u)}),[n,u]);let d=p.useCallback((e,t)=>{l||E(!1),n.fetch(u,l,e,t)},[u,l,n]),m=rk(),v=p.useCallback((e,t)=>{m(e,t1({},t,{navigate:!1,fetcherKey:u}))},[u,m]),y=p.useMemo(()=>p.forwardRef((e,t)=>p.createElement(rE,t1({},e,{navigate:!1,fetcherKey:u,ref:t}))),[u]),g=a.fetchers.get(u)||eh,w=o.get(u);return p.useMemo(()=>t1({Form:y,submit:v,load:d},g,{data:w}),[y,v,d,g,w])}function rU(){return Array.from(rx(f.UseFetchers).fetchers.entries()).map(e=>{let[t,r]=e;return t1({},r,{key:t})})}let rT="react-router-scroll-positions",rj={};function rM(e){let{getKey:t,storageKey:r}=void 0===e?{}:e,{router:n}=rR(h.UseScrollRestoration),{restoreScrollPosition:a,preventScrollReset:o}=rx(f.UseScrollRestoration),{basename:i}=p.useContext(e8),l=ta(),s=tL(),u=tP();p.useEffect(()=>(window.history.scrollRestoration="manual",()=>{window.history.scrollRestoration="auto"}),[]),function(e){let{capture:t}={};p.useEffect(()=>{let r=null!=t?{capture:t}:void 0;return window.addEventListener("pagehide",e,r),()=>{window.removeEventListener("pagehide",e,r)}},[e,t])}(p.useCallback(()=>{"idle"===u.state&&(rj[(t?t(l,s):null)||l.key]=window.scrollY);try{sessionStorage.setItem(r||rT,JSON.stringify(rj))}catch(e){}window.history.scrollRestoration="auto"},[r,t,u.state,l,s])),"u">typeof document&&(p.useLayoutEffect(()=>{try{let e=sessionStorage.getItem(r||rT);e&&(rj=JSON.parse(e))}catch(e){}},[r]),p.useLayoutEffect(()=>{let e=t&&"/"!==i?(e,r)=>t(t1({},e,{pathname:N(e.pathname,i)||e.pathname}),r):t,r=null==n?void 0:n.enableScrollRestoration(rj,()=>window.scrollY,e);return()=>r&&r()},[n,i,t]),p.useLayoutEffect(()=>{if(!1!==a){if("number"==typeof a)return void window.scrollTo(0,a);if(l.hash){let e=document.getElementById(decodeURIComponent(l.hash.slice(1)));if(e)return void e.scrollIntoView()}!0!==o&&window.scrollTo(0,0)}},[l,a,o]))}function rO(e,t){let{capture:r}=t||{};p.useEffect(()=>{let t=null!=r?{capture:r}:void 0;return window.addEventListener("beforeunload",e,t),()=>{window.removeEventListener("beforeunload",e,t)}},[e,r])}function rF(e){let{when:t,message:r}=e,n=tO(t);p.useEffect(()=>{"blocked"===n.state&&(window.confirm(r)?setTimeout(n.proceed,0):n.reset())},[n,r]),p.useEffect(()=>{"blocked"!==n.state||t||n.reset()},[n,t])}function rN(e,t){void 0===t&&(t={});let r=p.useContext(ro);null==r&&E(!1);let{basename:n}=rR(h.useViewTransitionState),a=tf(e,{relative:t.relative});if(!r.isTransitioning)return!1;let o=N(r.currentLocation.pathname,n)||r.currentLocation.pathname,i=N(r.nextLocation.pathname,n)||r.nextLocation.pathname;return null!=O(a.pathname,i)||null!=O(a.pathname,o)}}}]);
|