identity-admin 1.5.0 → 1.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +126 -126
  2. package/lib/Dashboard.d.ts +14 -14
  3. package/lib/Dashboard.js +95 -88
  4. package/lib/container/helpers/HelperInversify.d.ts +6 -6
  5. package/lib/container/helpers/HelperInversify.js +10 -10
  6. package/lib/container/helpers/HelperTypes.d.ts +5 -5
  7. package/lib/container/helpers/HelperTypes.js +7 -7
  8. package/lib/container/index.d.ts +1 -1
  9. package/lib/container/index.js +14 -14
  10. package/lib/container/repositories/RepositoryInversify.d.ts +4 -4
  11. package/lib/container/repositories/RepositoryInversify.js +13 -13
  12. package/lib/container/repositories/RepositoryTypes.d.ts +4 -4
  13. package/lib/container/repositories/RepositoryTypes.js +6 -6
  14. package/lib/container/types.d.ts +8 -8
  15. package/lib/container/types.js +9 -9
  16. package/lib/controllers/ActionController.d.ts +8 -8
  17. package/lib/controllers/ActionController.js +79 -79
  18. package/lib/controllers/DashboardController.d.ts +37 -36
  19. package/lib/controllers/DashboardController.js +388 -337
  20. package/lib/controllers/ResourceController.d.ts +11 -9
  21. package/lib/controllers/ResourceController.js +109 -104
  22. package/lib/helpers/ActionsGenerator.d.ts +9 -9
  23. package/lib/helpers/ActionsGenerator.js +101 -77
  24. package/lib/helpers/FiltersHelper.d.ts +7 -0
  25. package/lib/helpers/FiltersHelper.js +71 -0
  26. package/lib/helpers/LocalesHelper.d.ts +4 -4
  27. package/lib/helpers/LocalesHelper.js +73 -73
  28. package/lib/helpers/LocalizedStringHelper.d.ts +9 -0
  29. package/lib/helpers/LocalizedStringHelper.js +57 -0
  30. package/lib/helpers/ResourceGenerator.d.ts +4 -4
  31. package/lib/helpers/ResourceGenerator.js +110 -68
  32. package/lib/helpers/ResourceHelper.d.ts +23 -22
  33. package/lib/helpers/ResourceHelper.js +305 -286
  34. package/lib/helpers/SchemaGenerator.d.ts +5 -5
  35. package/lib/helpers/SchemaGenerator.js +92 -87
  36. package/lib/helpers/SchemaHelper.d.ts +5 -5
  37. package/lib/helpers/SchemaHelper.js +21 -21
  38. package/lib/locales/ar.json +1 -0
  39. package/lib/locales/en.json +50 -10
  40. package/lib/middlewares/isAuth.d.ts +13 -13
  41. package/lib/middlewares/isAuth.js +43 -43
  42. package/lib/models/ModelNames.d.ts +4 -4
  43. package/lib/models/ModelNames.js +7 -7
  44. package/lib/models/request-log/IRequestLog.d.ts +22 -22
  45. package/lib/models/request-log/IRequestLog.js +2 -2
  46. package/lib/models/request-log/RequestLog.d.ts +3 -3
  47. package/lib/models/request-log/RequestLog.js +51 -51
  48. package/lib/repositories/DashboardRepository.d.ts +5 -5
  49. package/lib/repositories/DashboardRepository.js +12 -12
  50. package/lib/repositories/Repository.d.ts +68 -68
  51. package/lib/repositories/Repository.js +212 -212
  52. package/lib/repositories/RequestLogRepository.d.ts +10 -10
  53. package/lib/repositories/RequestLogRepository.js +54 -54
  54. package/lib/repositories/SaveResult.d.ts +14 -14
  55. package/lib/repositories/SaveResult.js +18 -18
  56. package/lib/router/index.d.ts +8 -8
  57. package/lib/router/index.js +97 -97
  58. package/lib/types/DashbordConfig.d.ts +21 -19
  59. package/lib/types/DashbordConfig.js +2 -2
  60. package/lib/types/IConfigurationFile.d.ts +5 -0
  61. package/lib/types/IConfigurationFile.js +2 -0
  62. package/lib/types/IResourceFile.d.ts +182 -131
  63. package/lib/types/IResourceFile.js +2 -2
  64. package/lib/types/helpers.d.ts +32 -15
  65. package/lib/types/helpers.js +39 -21
  66. package/lib/utils/ResourceUtils.d.ts +2 -2
  67. package/lib/utils/ResourceUtils.js +7 -7
  68. package/lib/utils/ResponseUtils.d.ts +10 -10
  69. package/lib/utils/ResponseUtils.js +38 -38
  70. package/lib/utils/StringUtils.d.ts +9 -9
  71. package/lib/utils/StringUtils.js +46 -46
  72. package/lib/view/asset-manifest.json +13 -13
  73. package/lib/view/assets/icons/delete_icon.svg +3 -3
  74. package/lib/view/assets/icons/flags/ic_flag_cn.svg +9 -9
  75. package/lib/view/assets/icons/flags/ic_flag_sa.svg +9 -9
  76. package/lib/view/assets/icons/flags/ic_flag_vn.svg +9 -9
  77. package/lib/view/assets/icons/info_icon.svg +3 -3
  78. package/lib/view/assets/icons/navbar/ic_banking.svg +5 -5
  79. package/lib/view/assets/icons/navbar/ic_invoice.svg +4 -4
  80. package/lib/view/assets/icons/navbar/ic_kanban.svg +7 -7
  81. package/lib/view/assets/icons/navbar/ic_menu_item.svg +8 -8
  82. package/lib/view/assets/icons/small_info_icon.svg +3 -3
  83. package/lib/view/assets/illustrations/Group 16.svg +4 -4
  84. package/lib/view/assets/illustrations/logo.svg +5 -5
  85. package/lib/view/favicon/browserconfig.xml +9 -9
  86. package/lib/view/favicon/safari-pinned-tab.svg +182 -182
  87. package/lib/view/favicon/site.webmanifest +19 -19
  88. package/lib/view/fonts/index.css +18 -18
  89. package/lib/view/index.html +1 -1
  90. package/lib/view/manifest.json +20 -20
  91. package/lib/view/robots.txt +3 -3
  92. package/lib/view/static/js/{148.b6f24fc9.chunk.js → 148.b05fe2c8.chunk.js} +1 -1
  93. package/lib/view/static/js/{705.b2b55cc3.chunk.js → 705.f86db82e.chunk.js} +1 -1
  94. package/lib/view/static/js/802.3f287a2c.chunk.js +1 -0
  95. package/lib/view/static/js/main.da8f09ec.js +2 -0
  96. package/lib/view/static/js/{main.bc5ec798.js.LICENSE.txt → main.da8f09ec.js.LICENSE.txt} +225 -223
  97. package/package.json +51 -51
  98. package/lib/view/static/js/939.f35326c5.chunk.js +0 -1
  99. package/lib/view/static/js/main.bc5ec798.js +0 -2
@@ -1,223 +1,225 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
- /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
8
- * @license MIT */
9
-
10
- /*!
11
- * CSSJanus. https://github.com/cssjanus/cssjanus
12
- *
13
- * Copyright 2014 Trevor Parscal
14
- * Copyright 2010 Roan Kattouw
15
- * Copyright 2008 Google Inc.
16
- *
17
- * Licensed under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License.
19
- * You may obtain a copy of the License at
20
- *
21
- * http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software
24
- * distributed under the License is distributed on an "AS IS" BASIS,
25
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
- * See the License for the specific language governing permissions and
27
- * limitations under the License.
28
- */
29
-
30
- /*!
31
- * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
32
- * SPDX-License-Identifier: Apache-2.0
33
- */
34
-
35
- /*!
36
- * JavaScript Cookie v2.2.1
37
- * https://github.com/js-cookie/js-cookie
38
- *
39
- * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
40
- * Released under the MIT license
41
- */
42
-
43
- /*!
44
- * Quill Editor v1.3.7
45
- * https://quilljs.com/
46
- * Copyright (c) 2014, Jason Chen
47
- * Copyright (c) 2013, salesforce.com
48
- */
49
-
50
- /*!
51
- * The buffer module from node.js, for the browser.
52
- *
53
- * @author Feross Aboukhadijeh <http://feross.org>
54
- * @license MIT
55
- */
56
-
57
- /*!
58
- * cookie
59
- * Copyright(c) 2012-2014 Roman Shtylman
60
- * Copyright(c) 2015 Douglas Christopher Wilson
61
- * MIT Licensed
62
- */
63
-
64
- /*! *****************************************************************************
65
- Copyright (c) Microsoft Corporation.
66
-
67
- Permission to use, copy, modify, and/or distribute this software for any
68
- purpose with or without fee is hereby granted.
69
-
70
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
71
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
72
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
73
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
74
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
75
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
76
- PERFORMANCE OF THIS SOFTWARE.
77
- ***************************************************************************** */
78
-
79
- /*! @preserve
80
- * numeral.js
81
- * version : 2.0.6
82
- * author : Adam Draper
83
- * license : MIT
84
- * http://adamwdraper.github.com/Numeral-js/
85
- */
86
-
87
- /*! https://mths.be/punycode v1.3.2 by @mathias */
88
-
89
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
90
-
91
- /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
92
-
93
- /**
94
- * @license
95
- * Lodash <https://lodash.com/>
96
- * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
97
- * Released under MIT license <https://lodash.com/license>
98
- * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
99
- * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
100
- */
101
-
102
- /**
103
- * @license React
104
- * react-is.production.min.js
105
- *
106
- * Copyright (c) Facebook, Inc. and its affiliates.
107
- *
108
- * This source code is licensed under the MIT license found in the
109
- * LICENSE file in the root directory of this source tree.
110
- */
111
-
112
- /**
113
- * @license React
114
- * use-sync-external-store-shim.production.min.js
115
- *
116
- * Copyright (c) Facebook, Inc. and its affiliates.
117
- *
118
- * This source code is licensed under the MIT license found in the
119
- * LICENSE file in the root directory of this source tree.
120
- */
121
-
122
- /**
123
- * @license React
124
- * use-sync-external-store-shim/with-selector.production.min.js
125
- *
126
- * Copyright (c) Facebook, Inc. and its affiliates.
127
- *
128
- * This source code is licensed under the MIT license found in the
129
- * LICENSE file in the root directory of this source tree.
130
- */
131
-
132
- /**
133
- * @remix-run/router v1.0.0
134
- *
135
- * Copyright (c) Remix Software Inc.
136
- *
137
- * This source code is licensed under the MIT license found in the
138
- * LICENSE.md file in the root directory of this source tree.
139
- *
140
- * @license MIT
141
- */
142
-
143
- /**
144
- * React Router DOM v6.4.0
145
- *
146
- * Copyright (c) Remix Software Inc.
147
- *
148
- * This source code is licensed under the MIT license found in the
149
- * LICENSE.md file in the root directory of this source tree.
150
- *
151
- * @license MIT
152
- */
153
-
154
- /**
155
- * React Router v6.4.0
156
- *
157
- * Copyright (c) Remix Software Inc.
158
- *
159
- * This source code is licensed under the MIT license found in the
160
- * LICENSE.md file in the root directory of this source tree.
161
- *
162
- * @license MIT
163
- */
164
-
165
- /** @license MUI v5.8.7
166
- *
167
- * This source code is licensed under the MIT license found in the
168
- * LICENSE file in the root directory of this source tree.
169
- */
170
-
171
- /** @license React v0.20.2
172
- * scheduler.production.min.js
173
- *
174
- * Copyright (c) Facebook, Inc. and its affiliates.
175
- *
176
- * This source code is licensed under the MIT license found in the
177
- * LICENSE file in the root directory of this source tree.
178
- */
179
-
180
- /** @license React v16.13.1
181
- * react-is.production.min.js
182
- *
183
- * Copyright (c) Facebook, Inc. and its affiliates.
184
- *
185
- * This source code is licensed under the MIT license found in the
186
- * LICENSE file in the root directory of this source tree.
187
- */
188
-
189
- /** @license React v17.0.2
190
- * react-dom.production.min.js
191
- *
192
- * Copyright (c) Facebook, Inc. and its affiliates.
193
- *
194
- * This source code is licensed under the MIT license found in the
195
- * LICENSE file in the root directory of this source tree.
196
- */
197
-
198
- /** @license React v17.0.2
199
- * react-is.production.min.js
200
- *
201
- * Copyright (c) Facebook, Inc. and its affiliates.
202
- *
203
- * This source code is licensed under the MIT license found in the
204
- * LICENSE file in the root directory of this source tree.
205
- */
206
-
207
- /** @license React v17.0.2
208
- * react-jsx-runtime.production.min.js
209
- *
210
- * Copyright (c) Facebook, Inc. and its affiliates.
211
- *
212
- * This source code is licensed under the MIT license found in the
213
- * LICENSE file in the root directory of this source tree.
214
- */
215
-
216
- /** @license React v17.0.2
217
- * react.production.min.js
218
- *
219
- * Copyright (c) Facebook, Inc. and its affiliates.
220
- *
221
- * This source code is licensed under the MIT license found in the
222
- * LICENSE file in the root directory of this source tree.
223
- */
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /* NProgress, (c) 2013, 2014 Rico Sta. Cruz - http://ricostacruz.com/nprogress
8
+ * @license MIT */
9
+
10
+ /*!
11
+ * CSSJanus. https://github.com/cssjanus/cssjanus
12
+ *
13
+ * Copyright 2014 Trevor Parscal
14
+ * Copyright 2010 Roan Kattouw
15
+ * Copyright 2008 Google Inc.
16
+ *
17
+ * Licensed under the Apache License, Version 2.0 (the "License");
18
+ * you may not use this file except in compliance with the License.
19
+ * You may obtain a copy of the License at
20
+ *
21
+ * http://www.apache.org/licenses/LICENSE-2.0
22
+ *
23
+ * Unless required by applicable law or agreed to in writing, software
24
+ * distributed under the License is distributed on an "AS IS" BASIS,
25
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
+ * See the License for the specific language governing permissions and
27
+ * limitations under the License.
28
+ */
29
+
30
+ /*!
31
+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
32
+ * SPDX-License-Identifier: Apache-2.0
33
+ */
34
+
35
+ /*!
36
+ * JavaScript Cookie v2.2.1
37
+ * https://github.com/js-cookie/js-cookie
38
+ *
39
+ * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
40
+ * Released under the MIT license
41
+ */
42
+
43
+ /*!
44
+ * Quill Editor v1.3.7
45
+ * https://quilljs.com/
46
+ * Copyright (c) 2014, Jason Chen
47
+ * Copyright (c) 2013, salesforce.com
48
+ */
49
+
50
+ /*!
51
+ * The buffer module from node.js, for the browser.
52
+ *
53
+ * @author Feross Aboukhadijeh <http://feross.org>
54
+ * @license MIT
55
+ */
56
+
57
+ /*!
58
+ * cookie
59
+ * Copyright(c) 2012-2014 Roman Shtylman
60
+ * Copyright(c) 2015 Douglas Christopher Wilson
61
+ * MIT Licensed
62
+ */
63
+
64
+ /*! *****************************************************************************
65
+ Copyright (c) Microsoft Corporation.
66
+
67
+ Permission to use, copy, modify, and/or distribute this software for any
68
+ purpose with or without fee is hereby granted.
69
+
70
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
71
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
72
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
73
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
74
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
75
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
76
+ PERFORMANCE OF THIS SOFTWARE.
77
+ ***************************************************************************** */
78
+
79
+ /*! @preserve
80
+ * numeral.js
81
+ * version : 2.0.6
82
+ * author : Adam Draper
83
+ * license : MIT
84
+ * http://adamwdraper.github.com/Numeral-js/
85
+ */
86
+
87
+ /*! https://mths.be/punycode v1.3.2 by @mathias */
88
+
89
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
90
+
91
+ /*! js-cookie v3.0.1 | MIT */
92
+
93
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
94
+
95
+ /**
96
+ * @license
97
+ * Lodash <https://lodash.com/>
98
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
99
+ * Released under MIT license <https://lodash.com/license>
100
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
101
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
102
+ */
103
+
104
+ /**
105
+ * @license React
106
+ * react-is.production.min.js
107
+ *
108
+ * Copyright (c) Facebook, Inc. and its affiliates.
109
+ *
110
+ * This source code is licensed under the MIT license found in the
111
+ * LICENSE file in the root directory of this source tree.
112
+ */
113
+
114
+ /**
115
+ * @license React
116
+ * use-sync-external-store-shim.production.min.js
117
+ *
118
+ * Copyright (c) Facebook, Inc. and its affiliates.
119
+ *
120
+ * This source code is licensed under the MIT license found in the
121
+ * LICENSE file in the root directory of this source tree.
122
+ */
123
+
124
+ /**
125
+ * @license React
126
+ * use-sync-external-store-shim/with-selector.production.min.js
127
+ *
128
+ * Copyright (c) Facebook, Inc. and its affiliates.
129
+ *
130
+ * This source code is licensed under the MIT license found in the
131
+ * LICENSE file in the root directory of this source tree.
132
+ */
133
+
134
+ /**
135
+ * @remix-run/router v1.0.0
136
+ *
137
+ * Copyright (c) Remix Software Inc.
138
+ *
139
+ * This source code is licensed under the MIT license found in the
140
+ * LICENSE.md file in the root directory of this source tree.
141
+ *
142
+ * @license MIT
143
+ */
144
+
145
+ /**
146
+ * React Router DOM v6.4.0
147
+ *
148
+ * Copyright (c) Remix Software Inc.
149
+ *
150
+ * This source code is licensed under the MIT license found in the
151
+ * LICENSE.md file in the root directory of this source tree.
152
+ *
153
+ * @license MIT
154
+ */
155
+
156
+ /**
157
+ * React Router v6.4.0
158
+ *
159
+ * Copyright (c) Remix Software Inc.
160
+ *
161
+ * This source code is licensed under the MIT license found in the
162
+ * LICENSE.md file in the root directory of this source tree.
163
+ *
164
+ * @license MIT
165
+ */
166
+
167
+ /** @license MUI v5.8.7
168
+ *
169
+ * This source code is licensed under the MIT license found in the
170
+ * LICENSE file in the root directory of this source tree.
171
+ */
172
+
173
+ /** @license React v0.20.2
174
+ * scheduler.production.min.js
175
+ *
176
+ * Copyright (c) Facebook, Inc. and its affiliates.
177
+ *
178
+ * This source code is licensed under the MIT license found in the
179
+ * LICENSE file in the root directory of this source tree.
180
+ */
181
+
182
+ /** @license React v16.13.1
183
+ * react-is.production.min.js
184
+ *
185
+ * Copyright (c) Facebook, Inc. and its affiliates.
186
+ *
187
+ * This source code is licensed under the MIT license found in the
188
+ * LICENSE file in the root directory of this source tree.
189
+ */
190
+
191
+ /** @license React v17.0.2
192
+ * react-dom.production.min.js
193
+ *
194
+ * Copyright (c) Facebook, Inc. and its affiliates.
195
+ *
196
+ * This source code is licensed under the MIT license found in the
197
+ * LICENSE file in the root directory of this source tree.
198
+ */
199
+
200
+ /** @license React v17.0.2
201
+ * react-is.production.min.js
202
+ *
203
+ * Copyright (c) Facebook, Inc. and its affiliates.
204
+ *
205
+ * This source code is licensed under the MIT license found in the
206
+ * LICENSE file in the root directory of this source tree.
207
+ */
208
+
209
+ /** @license React v17.0.2
210
+ * react-jsx-runtime.production.min.js
211
+ *
212
+ * Copyright (c) Facebook, Inc. and its affiliates.
213
+ *
214
+ * This source code is licensed under the MIT license found in the
215
+ * LICENSE file in the root directory of this source tree.
216
+ */
217
+
218
+ /** @license React v17.0.2
219
+ * react.production.min.js
220
+ *
221
+ * Copyright (c) Facebook, Inc. and its affiliates.
222
+ *
223
+ * This source code is licensed under the MIT license found in the
224
+ * LICENSE file in the root directory of this source tree.
225
+ */
package/package.json CHANGED
@@ -1,51 +1,51 @@
1
- {
2
- "name": "identity-admin",
3
- "version": "1.5.0",
4
- "description": "",
5
- "main": "lib/Dashboard.js",
6
- "types": "lib/Dashbord.d.ts",
7
- "scripts": {
8
- "build": "tsc",
9
- "format": "prettier --write \"src/**/*.ts\"",
10
- "lint": "tslint -p tsconfig.json",
11
- "prepare": "npm run build",
12
- "preversion": "npm run lint",
13
- "version": "npm run format && git add -A src",
14
- "postversion": "git push && git push --tags",
15
- "test": "jest --config jestconfig.json --runInBand"
16
- },
17
- "files": [
18
- "lib/**/*"
19
- ],
20
- "repository": {
21
- "type": "git",
22
- "url": "git+https://github.com/identity-skeleton/identity-admin.git"
23
- },
24
- "author": "mismail",
25
- "license": "ISC",
26
- "devDependencies": {
27
- "@types/express": "^4.17.14",
28
- "@types/i18n": "^0.13.4",
29
- "@types/mongoose": "^5.11.97",
30
- "@types/passport-local-mongoose": "^6.1.1",
31
- "express": "^4.18.1",
32
- "express-validator": "^6.14.2",
33
- "i18n": "^0.15.0",
34
- "inversify": "^6.0.1",
35
- "inversify-express-utils": "^6.4.3",
36
- "mongodb": "^4.9.1",
37
- "mongoose": "^6.6.0",
38
- "passport-local-mongoose": "^7.1.2",
39
- "reflect-metadata": "^0.1.13"
40
- },
41
- "dependencies": {
42
- "@types/express-session": "^1.17.5",
43
- "bcryptjs": "^2.4.3",
44
- "connect-mongo": "^4.6.0",
45
- "cookie-parser": "^1.4.6",
46
- "express-session": "^1.17.3",
47
- "passport": "^0.6.0",
48
- "passport-local": "^1.0.0",
49
- "pluralize": "^8.0.0"
50
- }
51
- }
1
+ {
2
+ "name": "identity-admin",
3
+ "version": "1.7.0",
4
+ "description": "",
5
+ "main": "lib/Dashboard.js",
6
+ "types": "lib/Dashbord.d.ts",
7
+ "scripts": {
8
+ "build": "tsc",
9
+ "format": "prettier --write \"src/**/*.ts\"",
10
+ "lint": "tslint -p tsconfig.json",
11
+ "prepare": "npm run build",
12
+ "preversion": "npm run lint",
13
+ "version": "npm run format && git add -A src",
14
+ "postversion": "git push && git push --tags",
15
+ "test": "jest --config jestconfig.json --runInBand"
16
+ },
17
+ "files": [
18
+ "lib/**/*"
19
+ ],
20
+ "repository": {
21
+ "type": "git",
22
+ "url": "git+https://github.com/identity-skeleton/identity-admin.git"
23
+ },
24
+ "author": "mismail",
25
+ "license": "ISC",
26
+ "devDependencies": {
27
+ "@types/express": "^4.17.14",
28
+ "@types/i18n": "^0.13.4",
29
+ "@types/mongoose": "^5.11.97",
30
+ "@types/passport-local-mongoose": "^6.1.1",
31
+ "express": "^4.18.1",
32
+ "express-validator": "^6.14.2",
33
+ "i18n": "^0.15.0",
34
+ "inversify": "^6.0.1",
35
+ "inversify-express-utils": "^6.4.3",
36
+ "mongodb": "^4.9.1",
37
+ "mongoose": "^6.6.0",
38
+ "passport-local-mongoose": "^7.1.2",
39
+ "reflect-metadata": "^0.1.13"
40
+ },
41
+ "dependencies": {
42
+ "@types/express-session": "^1.17.5",
43
+ "bcryptjs": "^2.4.3",
44
+ "connect-mongo": "^4.6.0",
45
+ "cookie-parser": "^1.4.6",
46
+ "express-session": "^1.17.3",
47
+ "passport": "^0.6.0",
48
+ "passport-local": "^1.0.0",
49
+ "pluralize": "^8.0.0"
50
+ }
51
+ }
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_minimal_material_kit_react=self.webpackChunk_minimal_material_kit_react||[]).push([[939],{26939:function(t,n,e){e.d(n,{g:function(){return Qn}});var r=e(66797),i=e(47313),o=e(42461);function a(t){return"undefined"!==typeof PointerEvent&&t instanceof PointerEvent?!("mouse"!==t.pointerType):t instanceof MouseEvent}function u(t){return!!t.touches}var s={pageX:0,pageY:0};function l(t,n){void 0===n&&(n="page");var e=t.touches[0]||t.changedTouches[0]||s;return{x:e[n+"X"],y:e[n+"Y"]}}function c(t,n){return void 0===n&&(n="page"),{x:t[n+"X"],y:t[n+"Y"]}}function v(t,n){return void 0===n&&(n="page"),{point:u(t)?l(t,n):c(t,n)}}var d=function(t,n){void 0===n&&(n=!1);var e,r=function(n){return t(n,v(n))};return n?(e=r,function(t){var n=t instanceof MouseEvent;(!n||n&&0===t.button)&&e(t)}):r},f=e(28135),p=e(8175);function m(t,n,e,r){return t.addEventListener(n,e,r),function(){return t.removeEventListener(n,e,r)}}function h(t,n,e,r){(0,i.useEffect)((function(){var i=t.current;if(e&&i)return m(i,n,e,r)}),[t,n,e,r])}var g=e(88207),y={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},E={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function x(t){return g.j&&null===window.onpointerdown?t:g.j&&null===window.ontouchstart?E[t]:g.j&&null===window.onmousedown?y[t]:t}function P(t,n,e,r){return m(t,x(n),d(e,"pointerdown"===n),r)}function V(t,n,e,r){return h(t,x(n),e&&d(e,"pointerdown"===n),r)}var w=e(87988),A=e(45525),b=function(){function t(t,n,e){var i=this,o=(void 0===e?{}:e).transformPagePoint;if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var t=R(i.lastMoveEventInfo,i.history),n=null!==i.startEvent,e=(0,w.T)(t.offset,{x:0,y:0})>=3;if(n||e){var o=t.point,a=(0,f.$B)().timestamp;i.history.push((0,r.pi)((0,r.pi)({},o),{timestamp:a}));var u=i.handlers,s=u.onStart,l=u.onMove;n||(s&&s(i.lastMoveEvent,t),i.startEvent=i.lastMoveEvent),l&&l(i.lastMoveEvent,t)}}},this.handlePointerMove=function(t,n){i.lastMoveEvent=t,i.lastMoveEventInfo=C(n,i.transformPagePoint),a(t)&&0===t.buttons?i.handlePointerUp(t,n):f.ZP.update(i.updatePoint,!0)},this.handlePointerUp=function(t,n){i.end();var e=i.handlers,r=e.onEnd,o=e.onSessionEnd,a=R(C(n,i.transformPagePoint),i.history);i.startEvent&&r&&r(t,a),o&&o(t,a)},!(u(t)&&t.touches.length>1)){this.handlers=n,this.transformPagePoint=o;var s=C(v(t),this.transformPagePoint),l=s.point,c=(0,f.$B)().timestamp;this.history=[(0,r.pi)((0,r.pi)({},l),{timestamp:c})];var d=n.onSessionStart;d&&d(t,R(s,this.history)),this.removeListeners=(0,A.z)(P(window,"pointermove",this.handlePointerMove),P(window,"pointerup",this.handlePointerUp),P(window,"pointercancel",this.handlePointerUp))}}return t.prototype.updateHandlers=function(t){this.handlers=t},t.prototype.end=function(){this.removeListeners&&this.removeListeners(),f.qY.update(this.updatePoint)},t}();function C(t,n){return n?{point:n(t.point)}:t}function T(t,n){return{x:t.x-n.x,y:t.y-n.y}}function R(t,n){var e=t.point;return{point:e,delta:T(e,M(n)),offset:T(e,S(n)),velocity:L(n,.1)}}function S(t){return t[0]}function M(t){return t[t.length-1]}function L(t,n){if(t.length<2)return{x:0,y:0};for(var e=t.length-1,r=null,i=M(t);e>=0&&(r=t[e],!(i.timestamp-r.timestamp>(0,p.w)(n)));)e--;if(!r)return{x:0,y:0};var o=(i.timestamp-r.timestamp)/1e3;if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function k(t){var n=null;return function(){return null===n&&(n=t,function(){n=null})}}var D=k("dragHorizontal"),I=k("dragVertical");function B(t){var n=!1;if("y"===t)n=I();else if("x"===t)n=D();else{var e=D(),r=I();e&&r?n=function(){e(),r()}:(e&&e(),r&&r())}return n}function F(){var t=B(!0);return!t||(t(),!1)}var U=e(74269),j=e(62866),O=e(72261),_=e(67284),G=e(61239);function H(t,n,e){return{min:void 0!==n?t.min+n:void 0,max:void 0!==e?t.max+e-(t.max-t.min):void 0}}function z(t,n){var e,i=n.min-t.min,o=n.max-t.max;return n.max-n.min<t.max-t.min&&(i=(e=(0,r.CR)([o,i],2))[0],o=e[1]),{min:i,max:o}}var N,$=.35;function W(t,n,e){return{min:Y(t,n),max:Y(t,e)}}function Y(t,n){var e;return"number"===typeof t?t:null!==(e=t[n])&&void 0!==e?e:0}!function(t){t.Animate="animate",t.Hover="whileHover",t.Tap="whileTap",t.Drag="whileDrag",t.Focus="whileFocus",t.InView="whileInView",t.Exit="exit"}(N||(N={}));var K=e(21126),Z=e(87399);function q(t){var n=t.top;return{x:{min:t.left,max:t.right},y:{min:n,max:t.bottom}}}var J=e(64605);function X(t,n){return q(function(t,n){if(!n)return t;var e=n({x:t.left,y:t.top}),r=n({x:t.right,y:t.bottom});return{top:e.y,left:e.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),n))}var Q=e(27719),tt=e(30716),nt=new WeakMap,et=function(){function t(t){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=(0,K.dO)(),this.visualElement=t}return t.prototype.start=function(t,n){var e=this,r=(void 0===n?{}:n).snapToCursor,i=void 0!==r&&r;if(!1!==this.visualElement.isPresent){this.panSession=new b(t,{onSessionStart:function(t){e.stopAnimation(),i&&e.snapToCursor(v(t,"page").point)},onStart:function(t,n){var r,i=e.getProps(),o=i.drag,a=i.dragPropagation,u=i.onDragStart;(!o||a||(e.openGlobalLock&&e.openGlobalLock(),e.openGlobalLock=B(o),e.openGlobalLock))&&(e.isDragging=!0,e.currentDirection=null,e.resolveConstraints(),e.visualElement.projection&&(e.visualElement.projection.isAnimationBlocked=!0,e.visualElement.projection.target=void 0),(0,Z.U)((function(t){var n,r,i=e.getAxisMotionValue(t).get()||0;if(tt.aQ.test(i)){var o=null===(r=null===(n=e.visualElement.projection)||void 0===n?void 0:n.layout)||void 0===r?void 0:r.actual[t];if(o)i=(0,G.JO)(o)*(parseFloat(i)/100)}e.originPoint[t]=i})),null===u||void 0===u||u(t,n),null===(r=e.visualElement.animationState)||void 0===r||r.setActive(N.Drag,!0))},onMove:function(t,n){var r=e.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,u=r.onDrag;if(i||e.openGlobalLock){var s=n.offset;if(o&&null===e.currentDirection)return e.currentDirection=function(t,n){void 0===n&&(n=10);var e=null;Math.abs(t.y)>n?e="y":Math.abs(t.x)>n&&(e="x");return e}(s),void(null!==e.currentDirection&&(null===a||void 0===a||a(e.currentDirection)));e.updateAxis("x",n.point,s),e.updateAxis("y",n.point,s),e.visualElement.syncRender(),null===u||void 0===u||u(t,n)}},onSessionEnd:function(t,n){return e.stop(t,n)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}},t.prototype.stop=function(t,n){var e=this.isDragging;if(this.cancel(),e){var r=n.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;null===i||void 0===i||i(t,n)}},t.prototype.cancel=function(){var t,n;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),null===(t=this.panSession)||void 0===t||t.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),null===(n=this.visualElement.animationState)||void 0===n||n.setActive(N.Drag,!1)},t.prototype.updateAxis=function(t,n,e){var r=this.getProps().drag;if(e&&rt(t,r,this.currentDirection)){var i=this.getAxisMotionValue(t),o=this.originPoint[t]+e[t];this.constraints&&this.constraints[t]&&(o=function(t,n,e){var r=n.min,i=n.max;return void 0!==r&&t<r?t=e?(0,j.C)(r,t,e.min):Math.max(t,r):void 0!==i&&t>i&&(t=e?(0,j.C)(i,t,e.max):Math.min(t,i)),t}(o,this.constraints[t],this.elastic[t])),i.set(o)}},t.prototype.resolveConstraints=function(){var t=this,n=this.getProps(),e=n.dragConstraints,r=n.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;e&&(0,U.I)(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!i)&&function(t,n){var e=n.top,r=n.left,i=n.bottom,o=n.right;return{x:H(t.x,r,o),y:H(t.y,e,i)}}(i.actual,e),this.elastic=function(t){return void 0===t&&(t=$),!1===t?t=0:!0===t&&(t=$),{x:W(t,"left","right"),y:W(t,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&(0,Z.U)((function(n){t.getAxisMotionValue(n)&&(t.constraints[n]=function(t,n){var e={};return void 0!==n.min&&(e.min=n.min-t.min),void 0!==n.max&&(e.max=n.max-t.min),e}(i.actual[n],t.constraints[n]))}))},t.prototype.resolveRefConstraints=function(){var t=this.getProps(),n=t.dragConstraints,e=t.onMeasureDragConstraints;if(!n||!(0,U.I)(n))return!1;var r=n.current;(0,o.k)(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var a=function(t,n,e){var r=X(t,e),i=n.scroll;return i&&((0,J.am)(r.x,i.x),(0,J.am)(r.y,i.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),u=function(t,n){return{x:z(t.x,n.x),y:z(t.y,n.y)}}(i.layout.actual,a);if(e){var s=e(function(t){var n=t.x,e=t.y;return{top:e.min,right:n.max,bottom:e.max,left:n.min}}(u));this.hasMutatedConstraints=!!s,s&&(u=q(s))}return u},t.prototype.startAnimation=function(t){var n=this,e=this.getProps(),i=e.drag,o=e.dragMomentum,a=e.dragElastic,u=e.dragTransition,s=e.dragSnapToOrigin,l=e.onDragTransitionEnd,c=this.constraints||{},v=(0,Z.U)((function(e){var l;if(rt(e,i,n.currentDirection)){var v=null!==(l=null===c||void 0===c?void 0:c[e])&&void 0!==l?l:{};s&&(v={min:0,max:0});var d=a?200:1e6,f=a?40:1e7,p=(0,r.pi)((0,r.pi)({type:"inertia",velocity:o?t[e]:0,bounceStiffness:d,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},u),v);return n.startAxisValueAnimation(e,p)}}));return Promise.all(v).then(l)},t.prototype.startAxisValueAnimation=function(t,n){var e=this.getAxisMotionValue(t);return(0,Q.b8)(t,e,0,n)},t.prototype.stopAnimation=function(){var t=this;(0,Z.U)((function(n){return t.getAxisMotionValue(n).stop()}))},t.prototype.getAxisMotionValue=function(t){var n,e,r="_drag"+t.toUpperCase(),i=this.visualElement.getProps()[r];return i||this.visualElement.getValue(t,null!==(e=null===(n=this.visualElement.getProps().initial)||void 0===n?void 0:n[t])&&void 0!==e?e:0)},t.prototype.snapToCursor=function(t){var n=this;(0,Z.U)((function(e){if(rt(e,n.getProps().drag,n.currentDirection)){var r=n.visualElement.projection,i=n.getAxisMotionValue(e);if(r&&r.layout){var o=r.layout.actual[e],a=o.min,u=o.max;i.set(t[e]-(0,j.C)(a,u,.5))}}}))},t.prototype.scalePositionWithinConstraints=function(){var t,n=this,e=this.getProps(),r=e.drag,i=e.dragConstraints,o=this.visualElement.projection;if((0,U.I)(i)&&o&&this.constraints){this.stopAnimation();var a={x:0,y:0};(0,Z.U)((function(t){var e=n.getAxisMotionValue(t);if(e){var r=e.get();a[t]=function(t,n){var e=.5,r=(0,G.JO)(t),i=(0,G.JO)(n);return i>r?e=(0,O.Y)(n.min,n.max-r,t.min):r>i&&(e=(0,O.Y)(t.min,t.max-i,n.min)),(0,_.u)(0,1,e)}({min:r,max:r},n.constraints[t])}}));var u=this.visualElement.getProps().transformTemplate;this.visualElement.getInstance().style.transform=u?u({},""):"none",null===(t=o.root)||void 0===t||t.updateScroll(),o.updateLayout(),this.resolveConstraints(),(0,Z.U)((function(t){if(rt(t,r,null)){var e=n.getAxisMotionValue(t),i=n.constraints[t],o=i.min,u=i.max;e.set((0,j.C)(o,u,a[t]))}}))}},t.prototype.addListeners=function(){var t,n=this;nt.set(this.visualElement,this);var e=P(this.visualElement.getInstance(),"pointerdown",(function(t){var e=n.getProps(),r=e.drag,i=e.dragListener;r&&(void 0===i||i)&&n.start(t)})),r=function(){var t=n.getProps().dragConstraints;(0,U.I)(t)&&(n.constraints=n.resolveRefConstraints())},i=this.visualElement.projection,o=i.addEventListener("measure",r);i&&!i.layout&&(null===(t=i.root)||void 0===t||t.updateScroll(),i.updateLayout()),r();var a=m(window,"resize",(function(){n.scalePositionWithinConstraints()}));return i.addEventListener("didUpdate",(function(t){var e=t.delta,r=t.hasLayoutChanged;n.isDragging&&r&&((0,Z.U)((function(t){var r=n.getAxisMotionValue(t);r&&(n.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),n.visualElement.syncRender())})),function(){a(),e(),o()}},t.prototype.getProps=function(){var t=this.visualElement.getProps(),n=t.drag,e=void 0!==n&&n,i=t.dragDirectionLock,o=void 0!==i&&i,a=t.dragPropagation,u=void 0!==a&&a,s=t.dragConstraints,l=void 0!==s&&s,c=t.dragElastic,v=void 0===c?$:c,d=t.dragMomentum,f=void 0===d||d;return(0,r.pi)((0,r.pi)({},t),{drag:e,dragDirectionLock:o,dragPropagation:u,dragConstraints:l,dragElastic:v,dragMomentum:f})},t}();function rt(t,n,e){return(!0===n||n===t)&&(null===e||e===t)}var it=e(78998);var ot=e(48473);function at(t){return(0,i.useEffect)((function(){return function(){return t()}}),[])}var ut=function(t){return function(n){return t(n),null}},st={pan:ut((function(t){var n=t.onPan,e=t.onPanStart,r=t.onPanEnd,o=t.onPanSessionStart,a=t.visualElement,u=n||e||r||o,s=(0,i.useRef)(null),l=(0,i.useContext)(ot._).transformPagePoint,c={onSessionStart:o,onStart:e,onMove:n,onEnd:function(t,n){s.current=null,r&&r(t,n)}};(0,i.useEffect)((function(){null!==s.current&&s.current.updateHandlers(c)})),V(a,"pointerdown",u&&function(t){s.current=new b(t,c,{transformPagePoint:l})}),at((function(){return s.current&&s.current.end()}))})),drag:ut((function(t){var n=t.dragControls,e=t.visualElement,r=(0,it.h)((function(){return new et(e)}));(0,i.useEffect)((function(){return n&&n.subscribe(r)}),[r,n]),(0,i.useEffect)((function(){return r.addListeners()}),[r])}))},lt=e(9806),ct=0,vt=function(){return ct++};function dt(){var t=(0,i.useContext)(lt.O);if(null===t)return[!0,null];var n=t.isPresent,e=t.onExitComplete,r=t.register,o=(0,it.h)(vt);(0,i.useEffect)((function(){return r(o)}),[]);return!n&&e?[!1,function(){return null===e||void 0===e?void 0:e(o)}]:[!0]}var ft=e(32492),pt=e(24714),mt=e(94705);function ht(t,n){return n.max===n.min?0:t/(n.max-n.min)*100}var gt={correct:function(t,n){if(!n.target)return t;if("string"===typeof t){if(!tt.px.test(t))return t;t=parseFloat(t)}var e=ht(t,n.target.x),r=ht(t,n.target.y);return"".concat(e,"% ").concat(r,"%")}},yt=e(42346);function Et(t){return"string"===typeof t&&t.startsWith("var(--")}var xt=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function Pt(t,n,e){void 0===e&&(e=1),(0,o.k)(e<=4,'Max CSS variable fallback depth detected in property "'.concat(t,'". This may indicate a circular fallback dependency.'));var i=(0,r.CR)(function(t){var n=xt.exec(t);if(!n)return[,];var e=(0,r.CR)(n,3);return[e[1],e[2]]}(t),2),a=i[0],u=i[1];if(a){var s=window.getComputedStyle(n).getPropertyValue(a);return s?s.trim():Et(u)?Pt(u,n,e+1):u}}var Vt="_$css",wt={correct:function(t,n){var e=n.treeScale,r=n.projectionDelta,i=t,o=t.includes("var("),a=[];o&&(t=t.replace(xt,(function(t){return a.push(t),Vt})));var u=yt.P.parse(t);if(u.length>5)return i;var s=yt.P.createTransformer(t),l="number"!==typeof u[0]?1:0,c=r.x.scale*e.x,v=r.y.scale*e.y;u[0+l]/=c,u[1+l]/=v;var d=(0,j.C)(c,v,.5);"number"===typeof u[2+l]&&(u[2+l]/=d),"number"===typeof u[3+l]&&(u[3+l]/=d);var f=s(u);if(o){var p=0;f=f.replace(Vt,(function(){var t=a[p];return p++,t}))}return f}},At=e(37948),bt=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,r.ZT)(n,t),n.prototype.componentDidMount=function(){var t=this,n=this.props,e=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,u=e.projection;(0,At.B)(Ct),u&&((null===i||void 0===i?void 0:i.group)&&i.group.add(u),(null===o||void 0===o?void 0:o.register)&&a&&o.register(u),u.root.didUpdate(),u.addEventListener("animationComplete",(function(){t.safeToRemove()})),u.setOptions((0,r.pi)((0,r.pi)({},u.options),{onExitComplete:function(){return t.safeToRemove()}}))),mt.VN.hasEverUpdated=!0},n.prototype.getSnapshotBeforeUpdate=function(t){var n=this,e=this.props,r=e.layoutDependency,i=e.visualElement,o=e.drag,a=e.isPresent,u=i.projection;return u?(u.isPresent=a,o||t.layoutDependency!==r||void 0===r?u.willUpdate():this.safeToRemove(),t.isPresent!==a&&(a?u.promote():u.relegate()||f.ZP.postRender((function(){var t;(null===(t=u.getStack())||void 0===t?void 0:t.members.length)||n.safeToRemove()}))),null):null},n.prototype.componentDidUpdate=function(){var t=this.props.visualElement.projection;t&&(t.root.didUpdate(),!t.currentAnimation&&t.isLead()&&this.safeToRemove())},n.prototype.componentWillUnmount=function(){var t=this.props,n=t.visualElement,e=t.layoutGroup,r=t.switchLayoutGroup,i=n.projection;i&&(i.scheduleCheckAfterUnmount(),(null===e||void 0===e?void 0:e.group)&&e.group.remove(i),(null===r||void 0===r?void 0:r.deregister)&&r.deregister(i))},n.prototype.safeToRemove=function(){var t=this.props.safeToRemove;null===t||void 0===t||t()},n.prototype.render=function(){return null},n}(i.Component);var Ct={borderRadius:(0,r.pi)((0,r.pi)({},gt),{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:gt,borderTopRightRadius:gt,borderBottomLeftRadius:gt,borderBottomRightRadius:gt,boxShadow:wt},Tt={measureLayout:function(t){var n=(0,r.CR)(dt(),2),e=n[0],o=n[1],a=(0,i.useContext)(ft.p);return i.createElement(bt,(0,r.pi)({},t,{layoutGroup:a,switchLayoutGroup:(0,i.useContext)(pt.g),isPresent:e,safeToRemove:o}))}},Rt=e(49233),St=e(16494);function Mt(t,n){if(!Array.isArray(n))return!1;var e=n.length;if(e!==t.length)return!1;for(var r=0;r<e;r++)if(n[r]!==t[r])return!1;return!0}var Lt=function(t){return/^0[^.\s]+$/.test(t)},kt=e(75196),Dt=e(33618),It=e(91260),Bt=e(47337),Ft=e(81158),Ut=function(t){return function(n){return n.test(t)}},jt=[Ft.Rx,tt.px,tt.aQ,tt.RW,tt.vw,tt.vh,{test:function(t){return"auto"===t},parse:function(t){return t}}],Ot=function(t){return jt.find(Ut(t))},_t=(0,r.ev)((0,r.ev)([],(0,r.CR)(jt),!1),[Bt.$,yt.P],!1),Gt=function(t){return _t.find(Ut(t))},Ht=e(30745);function zt(t,n,e){t.hasValue(n)?t.getValue(n).set(e):t.addValue(n,(0,Dt.B)(e))}function Nt(t,n){var e=(0,Ht.x5)(t,n),i=e?t.makeTargetAnimatable(e,!1):{},o=i.transitionEnd,a=void 0===o?{}:o;i.transition;var u=(0,r._T)(i,["transitionEnd","transition"]);for(var s in u=(0,r.pi)((0,r.pi)({},u),a)){zt(t,s,(0,kt.Y)(u[s]))}}function $t(t,n){if(n)return(n[t]||n.default||n).from}var Wt=e(11863);function Yt(t,n,e){var i;void 0===e&&(e={});var o=(0,Ht.x5)(t,n,e.custom),a=(o||{}).transition,u=void 0===a?t.getDefaultTransition()||{}:a;e.transitionOverride&&(u=e.transitionOverride);var s=o?function(){return Kt(t,o,e)}:function(){return Promise.resolve()},l=(null===(i=t.variantChildren)||void 0===i?void 0:i.size)?function(i){void 0===i&&(i=0);var o=u.delayChildren,a=void 0===o?0:o,s=u.staggerChildren,l=u.staggerDirection;return function(t,n,e,i,o,a){void 0===e&&(e=0);void 0===i&&(i=0);void 0===o&&(o=1);var u=[],s=(t.variantChildren.size-1)*i,l=1===o?function(t){return void 0===t&&(t=0),t*i}:function(t){return void 0===t&&(t=0),s-t*i};return Array.from(t.variantChildren).sort(Zt).forEach((function(t,i){u.push(Yt(t,n,(0,r.pi)((0,r.pi)({},a),{delay:e+l(i)})).then((function(){return t.notifyAnimationComplete(n)})))})),Promise.all(u)}(t,n,a+i,s,l,e)}:function(){return Promise.resolve()},c=u.when;if(c){var v=(0,r.CR)("beforeChildren"===c?[s,l]:[l,s],2),d=v[0],f=v[1];return d().then(f)}return Promise.all([s(),l(e.delay)])}function Kt(t,n,e){var i,o=void 0===e?{}:e,a=o.delay,u=void 0===a?0:a,s=o.transitionOverride,l=o.type,c=t.makeTargetAnimatable(n),v=c.transition,d=void 0===v?t.getDefaultTransition():v,f=c.transitionEnd,p=(0,r._T)(c,["transition","transitionEnd"]);s&&(d=s);var m=[],h=l&&(null===(i=t.animationState)||void 0===i?void 0:i.getState()[l]);for(var g in p){var y=t.getValue(g),E=p[g];if(!(!y||void 0===E||h&&qt(h,g))){var x=(0,r.pi)({delay:u},d);t.shouldReduceMotion&&(0,Wt._c)(g)&&(x=(0,r.pi)((0,r.pi)({},x),{type:!1,delay:0}));var P=(0,Q.b8)(g,y,E,x);m.push(P)}}return Promise.all(m).then((function(){f&&Nt(t,f)}))}function Zt(t,n){return t.sortNodePosition(n)}function qt(t,n){var e=t.protectedKeys,r=t.needsAnimating,i=e.hasOwnProperty(n)&&!0!==r[n];return r[n]=!1,i}var Jt=[N.Animate,N.InView,N.Focus,N.Hover,N.Tap,N.Drag,N.Exit],Xt=(0,r.ev)([],(0,r.CR)(Jt),!1).reverse(),Qt=Jt.length;function tn(t){return function(n){return Promise.all(n.map((function(n){var e=n.animation,r=n.options;return function(t,n,e){var r;if(void 0===e&&(e={}),t.notifyAnimationStart(n),Array.isArray(n)){var i=n.map((function(n){return Yt(t,n,e)}));r=Promise.all(i)}else if("string"===typeof n)r=Yt(t,n,e);else{var o="function"===typeof n?(0,Ht.x5)(t,n,e.custom):n;r=Kt(t,o,e)}return r.then((function(){return t.notifyAnimationComplete(n)}))}(t,e,r)})))}}function nn(t){var n=tn(t),e=function(){var t;return(t={})[N.Animate]=en(!0),t[N.InView]=en(),t[N.Hover]=en(),t[N.Tap]=en(),t[N.Drag]=en(),t[N.Focus]=en(),t[N.Exit]=en(),t}(),i={},o=!0,a=function(n,e){var i=(0,Ht.x5)(t,e);if(i){i.transition;var o=i.transitionEnd,a=(0,r._T)(i,["transition","transitionEnd"]);n=(0,r.pi)((0,r.pi)((0,r.pi)({},n),a),o)}return n};function u(u,s){for(var l,c=t.getProps(),v=t.getVariantContext(!0)||{},d=[],f=new Set,p={},m=1/0,h=function(n){var i=Xt[n],h=e[i],g=null!==(l=c[i])&&void 0!==l?l:v[i],y=(0,Ht.$L)(g),E=i===s?h.isActive:null;!1===E&&(m=n);var x=g===v[i]&&g!==c[i]&&y;if(x&&o&&t.manuallyAnimateOnMount&&(x=!1),h.protectedKeys=(0,r.pi)({},p),!h.isActive&&null===E||!g&&!h.prevProp||(0,Rt.H)(g)||"boolean"===typeof g)return"continue";var P=function(t,n){if("string"===typeof n)return n!==t;if((0,Ht.A0)(n))return!Mt(n,t);return!1}(h.prevProp,g),V=P||i===s&&h.isActive&&!x&&y||n>m&&y,w=Array.isArray(g)?g:[g],A=w.reduce(a,{});!1===E&&(A={});var b=h.prevResolvedValues,C=void 0===b?{}:b,T=(0,r.pi)((0,r.pi)({},C),A),R=function(t){V=!0,f.delete(t),h.needsAnimating[t]=!0};for(var S in T){var M=A[S],L=C[S];p.hasOwnProperty(S)||(M!==L?(0,St.C)(M)&&(0,St.C)(L)?!Mt(M,L)||P?R(S):h.protectedKeys[S]=!0:void 0!==M?R(S):f.add(S):void 0!==M&&f.has(S)?R(S):h.protectedKeys[S]=!0)}h.prevProp=g,h.prevResolvedValues=A,h.isActive&&(p=(0,r.pi)((0,r.pi)({},p),A)),o&&t.blockInitialAnimation&&(V=!1),V&&!x&&d.push.apply(d,(0,r.ev)([],(0,r.CR)(w.map((function(t){return{animation:t,options:(0,r.pi)({type:i},u)}}))),!1))},g=0;g<Qt;g++)h(g);if(i=(0,r.pi)({},p),f.size){var y={};f.forEach((function(n){var e=t.getBaseTarget(n);void 0!==e&&(y[n]=e)})),d.push({animation:y})}var E=Boolean(d.length);return o&&!1===c.initial&&!t.manuallyAnimateOnMount&&(E=!1),o=!1,E?n(d):Promise.resolve()}return{isAnimated:function(t){return void 0!==i[t]},animateChanges:u,setActive:function(n,r,i){var o;if(e[n].isActive===r)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((function(t){var e;return null===(e=t.animationState)||void 0===e?void 0:e.setActive(n,r)})),e[n].isActive=r;var a=u(i,n);for(var s in e)e[s].protectedKeys={};return a},setAnimateFunction:function(e){n=e(t)},getState:function(){return e}}}function en(t){return void 0===t&&(t=!1),{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var rn={animation:ut((function(t){var n=t.visualElement,e=t.animate;n.animationState||(n.animationState=nn(n)),(0,Rt.H)(e)&&(0,i.useEffect)((function(){return e.subscribe(n)}),[e])})),exit:ut((function(t){var n=t.custom,e=t.visualElement,o=(0,r.CR)(dt(),2),a=o[0],u=o[1],s=(0,i.useContext)(lt.O);(0,i.useEffect)((function(){var t,r;e.isPresent=a;var i=null===(t=e.animationState)||void 0===t?void 0:t.setActive(N.Exit,!a,{custom:null!==(r=null===s||void 0===s?void 0:s.custom)&&void 0!==r?r:n});!a&&(null===i||void 0===i||i.then(u))}),[a])}))};function on(t,n,e){return function(r,i){var o;a(r)&&!F()&&(null===(o=t.animationState)||void 0===o||o.setActive(N.Hover,n),null===e||void 0===e||e(r,i))}}var an=function t(n,e){return!!e&&(n===e||t(n,e.parentElement))};var un=new WeakMap,sn=new WeakMap,ln=function(t){var n;null===(n=un.get(t.target))||void 0===n||n(t)},cn=function(t){t.forEach(ln)};function vn(t,n,e){var i=function(t){var n=t.root,e=(0,r._T)(t,["root"]),i=n||document;sn.has(i)||sn.set(i,{});var o=sn.get(i),a=JSON.stringify(e);return o[a]||(o[a]=new IntersectionObserver(cn,(0,r.pi)({root:n},e))),o[a]}(n);return un.set(t,e),i.observe(t),function(){un.delete(t),i.unobserve(t)}}var dn={some:0,all:1};function fn(t,n,e,r){var o=r.root,a=r.margin,u=r.amount,s=void 0===u?"some":u,l=r.once;(0,i.useEffect)((function(){if(t){var r={root:null===o||void 0===o?void 0:o.current,rootMargin:a,threshold:"number"===typeof s?s:dn[s]};return vn(e.getInstance(),r,(function(t){var r,i=t.isIntersecting;if(n.isInView!==i&&(n.isInView=i,!l||i||!n.hasEnteredView)){i&&(n.hasEnteredView=!0),null===(r=e.animationState)||void 0===r||r.setActive(N.InView,i);var o=e.getProps(),a=i?o.onViewportEnter:o.onViewportLeave;null===a||void 0===a||a(t)}}))}}),[t,o,a,s])}function pn(t,n,e,r){var o=r.fallback,a=void 0===o||o;(0,i.useEffect)((function(){t&&a&&requestAnimationFrame((function(){var t;n.hasEnteredView=!0;var r=e.getProps().onViewportEnter;null===r||void 0===r||r(null),null===(t=e.animationState)||void 0===t||t.setActive(N.InView,!0)}))}),[t])}var mn={inView:ut((function(t){var n=t.visualElement,e=t.whileInView,r=t.onViewportEnter,o=t.onViewportLeave,a=t.viewport,u=void 0===a?{}:a,s=(0,i.useRef)({hasEnteredView:!1,isInView:!1}),l=Boolean(e||r||o);u.once&&s.current.hasEnteredView&&(l=!1),("undefined"===typeof IntersectionObserver?pn:fn)(l,s.current,n,u)})),tap:ut((function(t){var n=t.onTap,e=t.onTapStart,r=t.onTapCancel,o=t.whileTap,a=t.visualElement,u=n||e||r||o,s=(0,i.useRef)(!1),l=(0,i.useRef)(null);function c(){var t;null===(t=l.current)||void 0===t||t.call(l),l.current=null}function v(){var t;return c(),s.current=!1,null===(t=a.animationState)||void 0===t||t.setActive(N.Tap,!1),!F()}function d(t,e){v()&&(an(a.getInstance(),t.target)?null===n||void 0===n||n(t,e):null===r||void 0===r||r(t,e))}function f(t,n){v()&&(null===r||void 0===r||r(t,n))}V(a,"pointerdown",u?function(t,n){var r;c(),s.current||(s.current=!0,l.current=(0,A.z)(P(window,"pointerup",d),P(window,"pointercancel",f)),null===(r=a.animationState)||void 0===r||r.setActive(N.Tap,!0),null===e||void 0===e||e(t,n))}:void 0),at(c)})),focus:ut((function(t){var n=t.whileFocus,e=t.visualElement;h(e,"focus",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(N.Focus,!0)}:void 0),h(e,"blur",n?function(){var t;null===(t=e.animationState)||void 0===t||t.setActive(N.Focus,!1)}:void 0)})),hover:ut((function(t){var n=t.onHoverStart,e=t.onHoverEnd,r=t.whileHover,i=t.visualElement;V(i,"pointerenter",n||r?on(i,!0,n):void 0),V(i,"pointerleave",e||r?on(i,!1,e):void 0)}))},hn=e(20745),gn=e(28191),yn=["LayoutMeasure","BeforeLayoutMeasure","LayoutUpdate","ViewportBoxUpdate","Update","Render","AnimationComplete","LayoutAnimationComplete","AnimationStart","SetAxisTarget","Unmount"];var En,xn=function(t){var n=t.treeType,e=void 0===n?"":n,i=t.build,o=t.getBaseTarget,a=t.makeTargetAnimatable,u=t.measureViewportBox,s=t.render,l=t.readValueFromInstance,c=t.removeValueFromRenderState,v=t.sortNodePosition,d=t.scrapeMotionValuesFromProps;return function(t,n){var p=t.parent,m=t.props,h=t.presenceId,g=t.blockInitialAnimation,y=t.visualState,E=t.shouldReduceMotion;void 0===n&&(n={});var x,P,V=!1,w=y.latestValues,A=y.renderState,b=function(){var t=yn.map((function(){return new gn.L})),n={},e={clearAllListeners:function(){return t.forEach((function(t){return t.clear()}))},updatePropListeners:function(t){yn.forEach((function(r){var i,o="on"+r,a=t[o];null===(i=n[r])||void 0===i||i.call(n),a&&(n[r]=e[o](a))}))}};return t.forEach((function(t,n){e["on"+yn[n]]=function(n){return t.add(n)},e["notify"+yn[n]]=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.notify.apply(t,(0,r.ev)([],(0,r.CR)(n),!1))}})),e}(),C=new Map,T=new Map,R={},S=(0,r.pi)({},w);function M(){x&&V&&(L(),s(x,A,m.style,O.projection))}function L(){i(O,A,w,n,m)}function k(){b.notifyUpdate(w)}function D(t,n){var e=n.onChange((function(n){w[t]=n,m.onUpdate&&f.ZP.update(k,!1,!0)})),r=n.onRenderRequest(O.scheduleRender);T.set(t,(function(){e(),r()}))}var I=d(m);for(var B in I){var F=I[B];void 0!==w[B]&&(0,hn.i)(F)&&F.set(w[B],!1)}var U=(0,Ht.O6)(m),j=(0,Ht.e8)(m),O=(0,r.pi)((0,r.pi)({treeType:e,current:null,depth:p?p.depth+1:0,parent:p,children:new Set,presenceId:h,shouldReduceMotion:E,variantChildren:j?new Set:void 0,isVisible:void 0,manuallyAnimateOnMount:Boolean(null===p||void 0===p?void 0:p.isMounted()),blockInitialAnimation:g,isMounted:function(){return Boolean(x)},mount:function(t){V=!0,x=O.current=t,O.projection&&O.projection.mount(t),j&&p&&!U&&(P=null===p||void 0===p?void 0:p.addVariantChild(O)),C.forEach((function(t,n){return D(n,t)})),null===p||void 0===p||p.children.add(O),O.setProps(m)},unmount:function(){var t;null===(t=O.projection)||void 0===t||t.unmount(),f.qY.update(k),f.qY.render(M),T.forEach((function(t){return t()})),null===P||void 0===P||P(),null===p||void 0===p||p.children.delete(O),b.clearAllListeners(),x=void 0,V=!1},addVariantChild:function(t){var n,e=O.getClosestVariantNode();if(e)return null===(n=e.variantChildren)||void 0===n||n.add(t),function(){return e.variantChildren.delete(t)}},sortNodePosition:function(t){return v&&e===t.treeType?v(O.getInstance(),t.getInstance()):0},getClosestVariantNode:function(){return j?O:null===p||void 0===p?void 0:p.getClosestVariantNode()},getLayoutId:function(){return m.layoutId},getInstance:function(){return x},getStaticValue:function(t){return w[t]},setStaticValue:function(t,n){return w[t]=n},getLatestValues:function(){return w},setVisibility:function(t){O.isVisible!==t&&(O.isVisible=t,O.scheduleRender())},makeTargetAnimatable:function(t,n){return void 0===n&&(n=!0),a(O,t,m,n)},measureViewportBox:function(){return u(x,m)},addValue:function(t,n){O.hasValue(t)&&O.removeValue(t),C.set(t,n),w[t]=n.get(),D(t,n)},removeValue:function(t){var n;C.delete(t),null===(n=T.get(t))||void 0===n||n(),T.delete(t),delete w[t],c(t,A)},hasValue:function(t){return C.has(t)},getValue:function(t,n){var e=C.get(t);return void 0===e&&void 0!==n&&(e=(0,Dt.B)(n),O.addValue(t,e)),e},forEachValue:function(t){return C.forEach(t)},readValue:function(t){var e;return null!==(e=w[t])&&void 0!==e?e:l(x,t,n)},setBaseTarget:function(t,n){S[t]=n},getBaseTarget:function(t){if(o){var n=o(m,t);if(void 0!==n&&!(0,hn.i)(n))return n}return S[t]}},b),{build:function(){return L(),A},scheduleRender:function(){f.ZP.render(M,!1,!0)},syncRender:M,setProps:function(t){(t.transformTemplate||m.transformTemplate)&&O.scheduleRender(),m=t,b.updatePropListeners(t),R=function(t,n,e){var r;for(var i in n){var o=n[i],a=e[i];if((0,hn.i)(o))t.addValue(i,o);else if((0,hn.i)(a))t.addValue(i,(0,Dt.B)(o));else if(a!==o)if(t.hasValue(i)){var u=t.getValue(i);!u.hasAnimated&&u.set(o)}else t.addValue(i,(0,Dt.B)(null!==(r=t.getStaticValue(i))&&void 0!==r?r:o))}for(var i in e)void 0===n[i]&&t.removeValue(i);return n}(O,d(m),R)},getProps:function(){return m},getVariant:function(t){var n;return null===(n=m.variants)||void 0===n?void 0:n[t]},getDefaultTransition:function(){return m.transition},getTransformPagePoint:function(){return m.transformPagePoint},getVariantContext:function(t){if(void 0===t&&(t=!1),t)return null===p||void 0===p?void 0:p.getVariantContext();if(!U){var n=(null===p||void 0===p?void 0:p.getVariantContext())||{};return void 0!==m.initial&&(n.initial=m.initial),n}for(var e={},r=0;r<Vn;r++){var i=Pn[r],o=m[i];((0,Ht.$L)(o)||!1===o)&&(e[i]=o)}return e}});return O}},Pn=(0,r.ev)(["initial"],(0,r.CR)(Jt),!1),Vn=Pn.length,wn=e(50357),An=e(5865),bn=new Set(["width","height","top","left","right","bottom","x","y"]),Cn=function(t){return bn.has(t)},Tn=function(t,n){t.set(n,!1),t.set(n)},Rn=function(t){return t===Ft.Rx||t===tt.px};!function(t){t.width="width",t.height="height",t.left="left",t.right="right",t.top="top",t.bottom="bottom"}(En||(En={}));var Sn=function(t,n){return parseFloat(t.split(", ")[n])},Mn=function(t,n){return function(e,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Sn(o[1],n);var a=i.match(/^matrix\((.+)\)$/);return a?Sn(a[1],t):0}},Ln=new Set(["x","y","z"]),kn=Wt.Gl.filter((function(t){return!Ln.has(t)}));var Dn={width:function(t,n){var e=t.x,r=n.paddingLeft,i=void 0===r?"0":r,o=n.paddingRight,a=void 0===o?"0":o;return e.max-e.min-parseFloat(i)-parseFloat(a)},height:function(t,n){var e=t.y,r=n.paddingTop,i=void 0===r?"0":r,o=n.paddingBottom,a=void 0===o?"0":o;return e.max-e.min-parseFloat(i)-parseFloat(a)},top:function(t,n){var e=n.top;return parseFloat(e)},left:function(t,n){var e=n.left;return parseFloat(e)},bottom:function(t,n){var e=t.y,r=n.top;return parseFloat(r)+(e.max-e.min)},right:function(t,n){var e=t.x,r=n.left;return parseFloat(r)+(e.max-e.min)},x:Mn(4,13),y:Mn(5,14)},In=function(t,n,e,i){void 0===e&&(e={}),void 0===i&&(i={}),n=(0,r.pi)({},n),i=(0,r.pi)({},i);var a=Object.keys(n).filter(Cn),u=[],s=!1,l=[];if(a.forEach((function(r){var a=t.getValue(r);if(t.hasValue(r)){var c,v=e[r],d=Ot(v),f=n[r];if((0,St.C)(f)){var p=f.length,m=null===f[0]?1:0;v=f[m],d=Ot(v);for(var h=m;h<p;h++)c?(0,o.k)(Ot(f[h])===c,"All keyframes must be of the same type"):(c=Ot(f[h]),(0,o.k)(c===d||Rn(d)&&Rn(c),"Keyframes must be of the same dimension as the current value"))}else c=Ot(f);if(d!==c)if(Rn(d)&&Rn(c)){var g=a.get();"string"===typeof g&&a.set(parseFloat(g)),"string"===typeof f?n[r]=parseFloat(f):Array.isArray(f)&&c===tt.px&&(n[r]=f.map(parseFloat))}else(null===d||void 0===d?void 0:d.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===v||0===f)?0===v?a.set(c.transform(v)):n[r]=d.transform(f):(s||(u=function(t){var n=[];return kn.forEach((function(e){var r=t.getValue(e);void 0!==r&&(n.push([e,r.get()]),r.set(e.startsWith("scale")?1:0))})),n.length&&t.syncRender(),n}(t),s=!0),l.push(r),i[r]=void 0!==i[r]?i[r]:n[r],Tn(a,f))}})),l.length){var c=function(t,n,e){var r=n.measureViewportBox(),i=n.getInstance(),o=getComputedStyle(i),a=o.display,u={};"none"===a&&n.setStaticValue("display",t.display||"block"),e.forEach((function(t){u[t]=Dn[t](r,o)})),n.syncRender();var s=n.measureViewportBox();return e.forEach((function(e){var r=n.getValue(e);Tn(r,u[e]),t[e]=Dn[e](s,o)})),t}(n,t,l);return u.length&&u.forEach((function(n){var e=(0,r.CR)(n,2),i=e[0],o=e[1];t.getValue(i).set(o)})),t.syncRender(),{target:c,transitionEnd:i}}return{target:n,transitionEnd:i}};function Bn(t,n,e,r){return function(t){return Object.keys(t).some(Cn)}(n)?In(t,n,e,r):{target:n,transitionEnd:r}}var Fn=function(t,n,e,i){var o=function(t,n,e){var i,o=(0,r._T)(n,[]),a=t.getInstance();if(!(a instanceof Element))return{target:o,transitionEnd:e};for(var u in e&&(e=(0,r.pi)({},e)),t.forEachValue((function(t){var n=t.get();if(Et(n)){var e=Pt(n,a);e&&t.set(e)}})),o){var s=o[u];if(Et(s)){var l=Pt(s,a);l&&(o[u]=l,e&&(null!==(i=e[u])&&void 0!==i||(e[u]=s)))}}return{target:o,transitionEnd:e}}(t,n,i);return Bn(t,n=o.target,e,i=o.transitionEnd)},Un=e(18329),jn=e(69726),On=e(87669);var _n={treeType:"dom",readValueFromInstance:function(t,n){if((0,Wt._c)(n)){var e=(0,On.A)(n);return e&&e.default||0}var r,i=(r=t,window.getComputedStyle(r));return((0,An.o)(n)?i.getPropertyValue(n):i[n])||0},sortNodePosition:function(t,n){return 2&t.compareDocumentPosition(n)?1:-1},getBaseTarget:function(t,n){var e;return null===(e=t.style)||void 0===e?void 0:e[n]},measureViewportBox:function(t,n){return X(t,n.transformPagePoint)},resetTransform:function(t,n,e){var r=e.transformTemplate;n.style.transform=r?r({},""):"none",t.scheduleRender()},restoreTransform:function(t,n){t.style.transform=n.style.transform},removeValueFromRenderState:function(t,n){var e=n.vars,r=n.style;delete e[t],delete r[t]},makeTargetAnimatable:function(t,n,e,i){var o=e.transformValues;void 0===i&&(i=!0);var a=n.transition,u=n.transitionEnd,s=(0,r._T)(n,["transition","transitionEnd"]),l=function(t,n,e){var r,i,o={};for(var a in t)o[a]=null!==(r=$t(a,n))&&void 0!==r?r:null===(i=e.getValue(a))||void 0===i?void 0:i.get();return o}(s,a||{},t);if(o&&(u&&(u=o(u)),s&&(s=o(s)),l&&(l=o(l))),i){!function(t,n,e){var r,i,o,a,u=Object.keys(n).filter((function(n){return!t.hasValue(n)})),s=u.length;if(s)for(var l=0;l<s;l++){var c=u[l],v=n[c],d=null;Array.isArray(v)&&(d=v[0]),null===d&&(d=null!==(i=null!==(r=e[c])&&void 0!==r?r:t.readValue(c))&&void 0!==i?i:n[c]),void 0!==d&&null!==d&&("string"===typeof d&&(/^\-?\d*\.?\d+$/.test(d)||Lt(d))?d=parseFloat(d):!Gt(d)&&yt.P.test(v)&&(d=(0,It.T)(c,v)),t.addValue(c,(0,Dt.B)(d)),null!==(o=(a=e)[c])&&void 0!==o||(a[c]=d),t.setBaseTarget(c,d))}}(t,s,l);var c=Fn(t,s,l,u);u=c.transitionEnd,s=c.target}return(0,r.pi)({transition:a,transitionEnd:u},s)},scrapeMotionValuesFromProps:Un.U,build:function(t,n,e,r,i){void 0!==t.isVisible&&(n.style.visibility=t.isVisible?"visible":"hidden"),(0,wn.r)(n,e,r,i.transformTemplate)},render:jn.N},Gn=xn(_n),Hn=e(40491),zn=e(52411),Nn=e(90918),$n=e(24605),Wn=e(31537),Yn=xn((0,r.pi)((0,r.pi)({},_n),{getBaseTarget:function(t,n){return t[n]},readValueFromInstance:function(t,n){var e;return(0,Wt._c)(n)?(null===(e=(0,On.A)(n))||void 0===e?void 0:e.default)||0:(n=$n.s.has(n)?n:(0,Nn.D)(n),t.getAttribute(n))},scrapeMotionValuesFromProps:Hn.U,build:function(t,n,e,r,i){(0,zn.i)(n,e,r,i.transformTemplate)},render:Wn.K})),Kn=e(99622),Zn=(0,r.pi)((0,r.pi)({renderer:function(t,n){return(0,Kn.q)(t)?Yn(n,{enableHardwareAcceleration:!1}):Gn(n,{enableHardwareAcceleration:!0})}},rn),mn),qn=(0,mt.yV)({attachResizeListener:function(t,n){return t.addEventListener("resize",n,{passive:!0}),function(){return t.removeEventListener("resize",n)}},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}}}),Jn={current:void 0},Xn=(0,mt.yV)({measureScroll:function(t){return{x:t.scrollLeft,y:t.scrollTop}},defaultParent:function(){if(!Jn.current){var t=new qn(0,{});t.mount(window),t.setOptions({layoutScroll:!0}),Jn.current=t}return Jn.current},resetTransform:function(t,n){t.style.transform=null!==n&&void 0!==n?n:"none"}}),Qn=(0,r.pi)((0,r.pi)((0,r.pi)((0,r.pi)({},Zn),st),Tt),{projectionNodeConstructor:Xn})}}]);