@devflow-tools/devflow 0.18.36 → 0.18.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/dashboard/404.html +1 -1
- package/dist/dashboard/__next.__PAGE__.txt +33 -20
- package/dist/dashboard/__next._full.txt +28 -15
- package/dist/dashboard/__next._tree.txt +2 -1
- package/dist/dashboard/_next/static/chunks/136-ed087d45d4c57def.js +1 -0
- package/dist/dashboard/_next/static/chunks/567-54b277a64dd332a4.js +1 -0
- package/dist/dashboard/_next/static/chunks/73-2dc4c435f0e3bd94.js +1 -0
- package/dist/dashboard/_next/static/chunks/{820-9606b69ff6f7f9b9.js → 820-b9d442e4990c267b.js} +1 -1
- package/dist/dashboard/_next/static/chunks/825-c8f40c7b7d482f83.js +1 -0
- package/dist/dashboard/_next/static/chunks/87c73c54-8350361388fba170.js +1 -0
- package/dist/dashboard/_next/static/chunks/968-e7efadf9f1a30259.js +52 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/knowledge/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/memory/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/app/intelligence/page-d74930294a785071.js +1 -0
- package/dist/dashboard/_next/static/chunks/main-09b1ccc91836f96c.js +5 -0
- package/dist/dashboard/_next/static/chunks/{webpack-c52cf5cbd2898ec1.js → webpack-a90fe7e6c3b4bb45.js} +1 -1
- package/dist/dashboard/_not-found/__next._full.txt +28 -16
- package/dist/dashboard/_not-found/__next._not-found.__PAGE__.txt +34 -22
- package/dist/dashboard/_not-found/__next._tree.txt +3 -1
- package/dist/dashboard/_not-found.html +1 -1
- package/dist/dashboard/_not-found.txt +28 -16
- package/dist/dashboard/accuracy/__next._full.txt +30 -17
- package/dist/dashboard/accuracy/__next._tree.txt +3 -1
- package/dist/dashboard/accuracy/__next.accuracy.__PAGE__.txt +35 -22
- package/dist/dashboard/accuracy.html +1 -1
- package/dist/dashboard/accuracy.txt +30 -17
- package/dist/dashboard/benchmark/__next._full.txt +32 -17
- package/dist/dashboard/benchmark/__next._tree.txt +3 -1
- package/dist/dashboard/benchmark/__next.benchmark.__PAGE__.txt +37 -22
- package/dist/dashboard/benchmark.html +1 -1
- package/dist/dashboard/benchmark.txt +32 -17
- package/dist/dashboard/context/__next._full.txt +30 -17
- package/dist/dashboard/context/__next._tree.txt +3 -1
- package/dist/dashboard/context/__next.context.__PAGE__.txt +35 -22
- package/dist/dashboard/context.html +1 -1
- package/dist/dashboard/context.txt +30 -17
- package/dist/dashboard/doctor/__next._full.txt +30 -17
- package/dist/dashboard/doctor/__next._tree.txt +3 -1
- package/dist/dashboard/doctor/__next.doctor.__PAGE__.txt +35 -22
- package/dist/dashboard/doctor.html +1 -1
- package/dist/dashboard/doctor.txt +30 -17
- package/dist/dashboard/executions/__next._full.txt +30 -17
- package/dist/dashboard/executions/__next._tree.txt +3 -1
- package/dist/dashboard/executions/__next.executions.__PAGE__.txt +35 -22
- package/dist/dashboard/executions.html +1 -1
- package/dist/dashboard/executions.txt +30 -17
- package/dist/dashboard/graph/__next._full.txt +32 -17
- package/dist/dashboard/graph/__next._tree.txt +3 -1
- package/dist/dashboard/graph/__next.graph.__PAGE__.txt +38 -23
- package/dist/dashboard/graph.html +1 -1
- package/dist/dashboard/graph.txt +32 -17
- package/dist/dashboard/index.html +1 -1
- package/dist/dashboard/index.txt +28 -15
- package/dist/dashboard/intelligence/__next._full.txt +31 -17
- package/dist/dashboard/intelligence/__next._tree.txt +3 -1
- package/dist/dashboard/intelligence/__next.intelligence.__PAGE__.txt +36 -22
- package/dist/dashboard/intelligence/knowledge/__next._full.txt +32 -17
- package/dist/dashboard/intelligence/knowledge/__next._tree.txt +4 -1
- package/dist/dashboard/intelligence/knowledge/__next.intelligence.knowledge.__PAGE__.txt +38 -23
- package/dist/dashboard/intelligence/knowledge.html +1 -1
- package/dist/dashboard/intelligence/knowledge.txt +32 -17
- package/dist/dashboard/intelligence/memory/__next._full.txt +32 -17
- package/dist/dashboard/intelligence/memory/__next._tree.txt +4 -1
- package/dist/dashboard/intelligence/memory/__next.intelligence.memory.__PAGE__.txt +38 -23
- package/dist/dashboard/intelligence/memory.html +1 -1
- package/dist/dashboard/intelligence/memory.txt +32 -17
- package/dist/dashboard/intelligence.html +1 -1
- package/dist/dashboard/intelligence.txt +31 -17
- package/dist/dashboard/knowledge/__next._full.txt +30 -17
- package/dist/dashboard/knowledge/__next._tree.txt +3 -1
- package/dist/dashboard/knowledge/__next.knowledge.__PAGE__.txt +35 -22
- package/dist/dashboard/knowledge.html +1 -1
- package/dist/dashboard/knowledge.txt +30 -17
- package/dist/dashboard/memory/__next._full.txt +32 -17
- package/dist/dashboard/memory/__next._tree.txt +3 -1
- package/dist/dashboard/memory/__next.memory.__PAGE__.txt +37 -22
- package/dist/dashboard/memory.html +1 -1
- package/dist/dashboard/memory.txt +32 -17
- package/dist/dashboard/replay/__next._full.txt +30 -17
- package/dist/dashboard/replay/__next._tree.txt +3 -1
- package/dist/dashboard/replay/__next.replay.__PAGE__.txt +35 -22
- package/dist/dashboard/replay.html +1 -1
- package/dist/dashboard/replay.txt +30 -17
- package/dist/dashboard/runs/_/__next._full.txt +31 -17
- package/dist/dashboard/runs/_/__next._tree.txt +4 -1
- package/dist/dashboard/runs/_/__next.runs.$d$id.__PAGE__.txt +37 -23
- package/dist/dashboard/runs/_.html +1 -1
- package/dist/dashboard/runs/_.txt +31 -17
- package/dist/dashboard/runs/__next._full.txt +30 -17
- package/dist/dashboard/runs/__next._tree.txt +3 -1
- package/dist/dashboard/runs/__next.runs.__PAGE__.txt +35 -22
- package/dist/dashboard/runs.html +1 -1
- package/dist/dashboard/runs.txt +30 -17
- package/dist/dashboard/settings/__next._full.txt +33 -17
- package/dist/dashboard/settings/__next._tree.txt +3 -1
- package/dist/dashboard/settings/__next.settings.__PAGE__.txt +38 -22
- package/dist/dashboard/settings.html +1 -1
- package/dist/dashboard/settings.txt +33 -17
- package/dist/dashboard/timeline/__next._full.txt +30 -17
- package/dist/dashboard/timeline/__next._tree.txt +3 -1
- package/dist/dashboard/timeline/__next.timeline.__PAGE__.txt +35 -22
- package/dist/dashboard/timeline.html +1 -1
- package/dist/dashboard/timeline.txt +30 -17
- package/dist/dashboard/tool-metrics/__next._full.txt +30 -17
- package/dist/dashboard/tool-metrics/__next._tree.txt +3 -1
- package/dist/dashboard/tool-metrics/__next.tool-metrics.__PAGE__.txt +35 -22
- package/dist/dashboard/tool-metrics.html +1 -1
- package/dist/dashboard/tool-metrics.txt +30 -17
- package/dist/dashboard/workflows/__next._full.txt +30 -17
- package/dist/dashboard/workflows/__next._tree.txt +3 -1
- package/dist/dashboard/workflows/__next.workflows.__PAGE__.txt +35 -22
- package/dist/dashboard/workflows.html +1 -1
- package/dist/dashboard/workflows.txt +30 -17
- package/dist/plugin/.claude-plugin/plugin.json +1 -1
- package/dist/plugin/dist/command-registry.json +7 -7
- package/dist/plugin/dist/runtime-manifest.json +5 -5
- package/dist/plugin/package.json +13 -13
- package/dist/plugin/skills/delivery/SKILL.md +2 -0
- package/package.json +21 -21
- package/plugin-registry.json +29 -29
- package/dist/dashboard/_next/static/chunks/136-c55134e877048a37.js +0 -1
- package/dist/dashboard/_next/static/chunks/567-65014d15b90b623c.js +0 -1
- package/dist/dashboard/_next/static/chunks/73-0fe34a8ce87c82ea.js +0 -1
- package/dist/dashboard/_next/static/chunks/825-8d69033cd30489b9.js +0 -1
- package/dist/dashboard/_next/static/chunks/87c73c54-5c63d5698583b654.js +0 -1
- package/dist/dashboard/_next/static/chunks/968-97d3f66d7aab7532.js +0 -52
- package/dist/dashboard/_next/static/chunks/app/intelligence/knowledge/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/intelligence/memory/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/app/intelligence/page-e6a21c234798623f.js +0 -1
- package/dist/dashboard/_next/static/chunks/main-09803f06c26fe6d9.js +0 -5
- /package/dist/dashboard/_next/static/{UGVjnrlWvo7D-4jHOsQs6 → quL_DVtAGjOvYaGr44WOx}/_buildManifest.js +0 -0
- /package/dist/dashboard/_next/static/{UGVjnrlWvo7D-4jHOsQs6 → quL_DVtAGjOvYaGr44WOx}/_ssgManifest.js +0 -0
package/plugin-registry.json
CHANGED
|
@@ -1,118 +1,118 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "1.0.0",
|
|
3
|
-
"lastUpdated": "2026-
|
|
3
|
+
"lastUpdated": "2026-10-09T08:20:48.625Z",
|
|
4
4
|
"plugins": [
|
|
5
5
|
{
|
|
6
6
|
"name": "@devflow-tools/plugin-animation",
|
|
7
|
-
"version": "0.18.
|
|
7
|
+
"version": "0.18.37",
|
|
8
8
|
"description": "Animation analysis and generation tools for DevFlow.",
|
|
9
9
|
"tags": [],
|
|
10
10
|
"compatibleStacks": [
|
|
11
11
|
"animation"
|
|
12
12
|
],
|
|
13
|
-
"size": "
|
|
13
|
+
"size": "82231 B",
|
|
14
14
|
"author": "DevFlow Team",
|
|
15
15
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
16
16
|
},
|
|
17
17
|
{
|
|
18
18
|
"name": "@devflow-tools/plugin-css",
|
|
19
|
-
"version": "0.18.
|
|
19
|
+
"version": "0.18.37",
|
|
20
20
|
"description": "CSS analysis and selector audit tools for DevFlow.",
|
|
21
21
|
"tags": [],
|
|
22
22
|
"compatibleStacks": [
|
|
23
23
|
"css"
|
|
24
24
|
],
|
|
25
|
-
"size": "
|
|
25
|
+
"size": "69304 B",
|
|
26
26
|
"author": "DevFlow Team",
|
|
27
27
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
30
|
"name": "@devflow-tools/plugin-docker",
|
|
31
|
-
"version": "0.18.
|
|
31
|
+
"version": "0.18.37",
|
|
32
32
|
"description": "Docker configuration and diagnostic tools for DevFlow.",
|
|
33
33
|
"tags": [],
|
|
34
34
|
"compatibleStacks": [
|
|
35
35
|
"docker"
|
|
36
36
|
],
|
|
37
|
-
"size": "
|
|
37
|
+
"size": "98083 B",
|
|
38
38
|
"author": "DevFlow Team",
|
|
39
39
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"name": "@devflow-tools/plugin-electron",
|
|
43
|
-
"version": "0.18.
|
|
43
|
+
"version": "0.18.37",
|
|
44
44
|
"description": "Electron application analysis and implementation tools for DevFlow.",
|
|
45
45
|
"tags": [],
|
|
46
46
|
"compatibleStacks": [
|
|
47
47
|
"electron"
|
|
48
48
|
],
|
|
49
|
-
"size": "
|
|
49
|
+
"size": "113923 B",
|
|
50
50
|
"author": "DevFlow Team",
|
|
51
51
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
54
|
"name": "@devflow-tools/plugin-git",
|
|
55
|
-
"version": "0.18.
|
|
55
|
+
"version": "0.18.37",
|
|
56
56
|
"description": "Git repository analysis and workflow tools for DevFlow.",
|
|
57
57
|
"tags": [],
|
|
58
58
|
"compatibleStacks": [
|
|
59
59
|
"git"
|
|
60
60
|
],
|
|
61
|
-
"size": "
|
|
61
|
+
"size": "79625 B",
|
|
62
62
|
"author": "DevFlow Team",
|
|
63
63
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
64
64
|
},
|
|
65
65
|
{
|
|
66
66
|
"name": "@devflow-tools/plugin-graphql",
|
|
67
|
-
"version": "0.18.
|
|
67
|
+
"version": "0.18.37",
|
|
68
68
|
"description": "GraphQL schema and operation tools for DevFlow.",
|
|
69
69
|
"tags": [],
|
|
70
70
|
"compatibleStacks": [
|
|
71
71
|
"graphql"
|
|
72
72
|
],
|
|
73
|
-
"size": "
|
|
73
|
+
"size": "81844 B",
|
|
74
74
|
"author": "DevFlow Team",
|
|
75
75
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
76
76
|
},
|
|
77
77
|
{
|
|
78
78
|
"name": "@devflow-tools/plugin-nest",
|
|
79
|
-
"version": "0.18.
|
|
79
|
+
"version": "0.18.37",
|
|
80
80
|
"description": "NestJS analysis and implementation tools for DevFlow.",
|
|
81
81
|
"tags": [],
|
|
82
82
|
"compatibleStacks": [
|
|
83
83
|
"nest"
|
|
84
84
|
],
|
|
85
|
-
"size": "
|
|
85
|
+
"size": "118484 B",
|
|
86
86
|
"author": "DevFlow Team",
|
|
87
87
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
88
88
|
},
|
|
89
89
|
{
|
|
90
90
|
"name": "@devflow-tools/plugin-nextjs",
|
|
91
|
-
"version": "0.18.
|
|
91
|
+
"version": "0.18.37",
|
|
92
92
|
"description": "Next.js analysis and implementation tools for DevFlow.",
|
|
93
93
|
"tags": [],
|
|
94
94
|
"compatibleStacks": [
|
|
95
95
|
"nextjs"
|
|
96
96
|
],
|
|
97
|
-
"size": "
|
|
97
|
+
"size": "80182 B",
|
|
98
98
|
"author": "DevFlow Team",
|
|
99
99
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
100
100
|
},
|
|
101
101
|
{
|
|
102
102
|
"name": "@devflow-tools/plugin-performance",
|
|
103
|
-
"version": "0.18.
|
|
103
|
+
"version": "0.18.37",
|
|
104
104
|
"description": "Web performance audit and optimization tools for DevFlow.",
|
|
105
105
|
"tags": [],
|
|
106
106
|
"compatibleStacks": [
|
|
107
107
|
"performance"
|
|
108
108
|
],
|
|
109
|
-
"size": "
|
|
109
|
+
"size": "130623 B",
|
|
110
110
|
"author": "DevFlow Team",
|
|
111
111
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
112
112
|
},
|
|
113
113
|
{
|
|
114
114
|
"name": "@devflow-tools/plugin-react",
|
|
115
|
-
"version": "0.18.
|
|
115
|
+
"version": "0.18.37",
|
|
116
116
|
"description": "React analysis, audit, and component tools for DevFlow.",
|
|
117
117
|
"tags": [],
|
|
118
118
|
"compatibleStacks": [
|
|
@@ -124,55 +124,55 @@
|
|
|
124
124
|
"path": "scripts/run-capability.mjs",
|
|
125
125
|
"timeoutMs": 30000
|
|
126
126
|
},
|
|
127
|
-
"size": "
|
|
127
|
+
"size": "277064 B",
|
|
128
128
|
"author": "DevFlow Team",
|
|
129
129
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
130
130
|
},
|
|
131
131
|
{
|
|
132
132
|
"name": "@devflow-tools/plugin-tailwind",
|
|
133
|
-
"version": "0.18.
|
|
133
|
+
"version": "0.18.37",
|
|
134
134
|
"description": "Tailwind CSS analysis and component tools for DevFlow.",
|
|
135
135
|
"tags": [],
|
|
136
136
|
"compatibleStacks": [
|
|
137
137
|
"tailwind"
|
|
138
138
|
],
|
|
139
|
-
"size": "
|
|
139
|
+
"size": "86611 B",
|
|
140
140
|
"author": "DevFlow Team",
|
|
141
141
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
142
142
|
},
|
|
143
143
|
{
|
|
144
144
|
"name": "@devflow-tools/plugin-taro",
|
|
145
|
-
"version": "0.18.
|
|
145
|
+
"version": "0.18.37",
|
|
146
146
|
"description": "Taro application analysis and implementation tools for DevFlow.",
|
|
147
147
|
"tags": [],
|
|
148
148
|
"compatibleStacks": [
|
|
149
149
|
"taro"
|
|
150
150
|
],
|
|
151
|
-
"size": "
|
|
151
|
+
"size": "90169 B",
|
|
152
152
|
"author": "DevFlow Team",
|
|
153
153
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
154
154
|
},
|
|
155
155
|
{
|
|
156
156
|
"name": "@devflow-tools/plugin-ui-layout",
|
|
157
|
-
"version": "0.18.
|
|
157
|
+
"version": "0.18.37",
|
|
158
158
|
"description": "UI layout analysis and implementation tools for DevFlow.",
|
|
159
159
|
"tags": [],
|
|
160
160
|
"compatibleStacks": [
|
|
161
161
|
"ui-layout"
|
|
162
162
|
],
|
|
163
|
-
"size": "
|
|
163
|
+
"size": "67609 B",
|
|
164
164
|
"author": "DevFlow Team",
|
|
165
165
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
"name": "@devflow-tools/plugin-vue",
|
|
169
|
-
"version": "0.18.
|
|
169
|
+
"version": "0.18.37",
|
|
170
170
|
"description": "Vue analysis, audit, and component tools for DevFlow.",
|
|
171
171
|
"tags": [],
|
|
172
172
|
"compatibleStacks": [
|
|
173
173
|
"vue"
|
|
174
174
|
],
|
|
175
|
-
"size": "
|
|
175
|
+
"size": "98276 B",
|
|
176
176
|
"author": "DevFlow Team",
|
|
177
177
|
"homepage": "https://github.com/shilongfeicool/dev-flow#readme"
|
|
178
178
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[136],{794:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(81007).A)("Pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]])},25296:(e,t,n)=>{let r;n.d(t,{bm:()=>e7,UC:()=>e$,hJ:()=>eZ,ZL:()=>eH,bL:()=>eK,hE:()=>e5,l9:()=>ez});var o,a,i,u,c,s,l,d,f=n(7620),p=n(37188),v=n(33670),m=n(55556),h=n(30586),y=n(3198),g=n(78858),b=n(55222),E=n(54568),w="dismissableLayer.update",C=f.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),k=f.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:u,onDismiss:c,...s}=e,d=f.useContext(C),[m,h]=f.useState(null),y=m?.ownerDocument??globalThis?.document,[,k]=f.useState({}),L=(0,v.s)(t,h),D=Array.from(d.layers),[N]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),O=N?D.indexOf(N):-1,P=m?D.indexOf(m):-1,A=d.layersWithOutsidePointerEventsDisabled.size>0,T=P>=O,M=f.useRef(!1),j=function(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:o,dismissableSurfaces:a,shouldHandlePointerDownOutside:i=S}=t,u=(0,b.c)(e),c=f.useRef(!1),s=f.useRef(!1),l=f.useRef(new Map),d=f.useRef(()=>{});return f.useEffect(()=>{function e(){s.current=!1,o.current=!1,l.current.clear()}function t(e){if(!s.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||l.current.set(e.type,!0),"click"===e.type&&window.setTimeout(()=>{s.current&&d.current()},0)}function f(e){s.current&&l.current.set(e.type,!1)}let p=t=>{if(t.target&&!c.current){let a=function(){n.removeEventListener("click",d.current);let t=Array.from(l.current.values()).some(Boolean);e(),t||x("dismissableLayer.pointerDownOutside",u,f,{discrete:!0})};if(!i(t.target)){n.removeEventListener("click",d.current),e(),c.current=!1;return}let f={originalEvent:t};s.current=!0,o.current=r&&0===t.button,l.current.clear(),r&&0===t.button?(n.removeEventListener("click",d.current),d.current=a,n.addEventListener("click",d.current,{once:!0})):a()}else n.removeEventListener("click",d.current),e();c.current=!1},v=["pointerup","mousedown","mouseup","touchstart","touchend","click"];for(let e of v)n.addEventListener(e,t,!0),n.addEventListener(e,f);let m=window.setTimeout(()=>{n.addEventListener("pointerdown",p)},0);return()=>{for(let e of(window.clearTimeout(m),n.removeEventListener("pointerdown",p),n.removeEventListener("click",d.current),v))n.removeEventListener(e,t,!0),n.removeEventListener(e,f)}},[n,u,r,o,a,i]),{onPointerDownCapture:()=>c.current=!0}}(e=>{a?.(e),u?.(e),e.defaultPrevented||c?.()},{ownerDocument:y,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:M,dismissableSurfaces:d.dismissableSurfaces,shouldHandlePointerDownOutside:f.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...d.branches].some(t=>t.contains(e));return T&&!t},[d.branches,T])}),F=function(e,t=globalThis?.document){let n=(0,b.c)(e),r=f.useRef(!1);return f.useEffect(()=>{let e=e=>{e.target&&!r.current&&x("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{if(r&&M.current)return;let t=e.target;![...d.branches].some(e=>e.contains(t))&&(i?.(e),u?.(e),e.defaultPrevented||c?.())},y),I=!!m&&P===D.length-1,W=(0,b.c)(e=>{"Escape"===e.key&&(o?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return f.useEffect(()=>{if(I)return y.addEventListener("keydown",W,{capture:!0}),()=>y.removeEventListener("keydown",W,{capture:!0})},[y,I,W]),f.useEffect(()=>{if(m)return n&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(l=y.body.style.pointerEvents,y.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(m)),d.layers.add(m),R(),()=>{n&&(d.layersWithOutsidePointerEventsDisabled.delete(m),0===d.layersWithOutsidePointerEventsDisabled.size&&(y.body.style.pointerEvents=l))}},[m,y,n,d]),f.useEffect(()=>()=>{m&&(d.layers.delete(m),d.layersWithOutsidePointerEventsDisabled.delete(m),R())},[m,d]),f.useEffect(()=>{let e=()=>k({});return document.addEventListener(w,e),()=>document.removeEventListener(w,e)},[]),(0,E.jsx)(g.sG.div,{...s,ref:L,style:{pointerEvents:A?T?"auto":"none":void 0,...e.style},onFocusCapture:(0,p.mK)(e.onFocusCapture,F.onFocusCapture),onBlurCapture:(0,p.mK)(e.onBlurCapture,F.onBlurCapture),onPointerDownCapture:(0,p.mK)(e.onPointerDownCapture,j.onPointerDownCapture)})});k.displayName="DismissableLayer",f.forwardRef((e,t)=>{let n=f.useContext(C),r=f.useRef(null),o=(0,v.s)(t,r);return f.useEffect(()=>{let e=r.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),(0,E.jsx)(g.sG.div,{...e,ref:o})}).displayName="DismissableLayerBranch";var S=()=>!0;function R(){let e=new CustomEvent(w);document.dispatchEvent(e)}function x(e,t,n,{discrete:r}){let o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?(0,g.hO)(o,a):o.dispatchEvent(a)}var L="focusScope.autoFocusOnMount",D="focusScope.autoFocusOnUnmount",N={bubbles:!1,cancelable:!0},O=f.forwardRef((e,t)=>{let{loop:n=!1,trapped:r=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...i}=e,[u,c]=f.useState(null),s=(0,b.c)(o),l=(0,b.c)(a),d=f.useRef(null),p=(0,v.s)(t,c),m=f.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;f.useEffect(()=>{if(r){let e=function(e){if(m.paused||!u)return;let t=e.target;u.contains(t)?d.current=t:T(d.current,{select:!0})},t=function(e){if(m.paused||!u)return;let t=e.relatedTarget;null!==t&&(u.contains(t)||T(d.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&T(u)});return u&&n.observe(u,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[r,u,m.paused]),f.useEffect(()=>{if(u){M.add(m);let e=document.activeElement;if(!u.contains(e)){let t=new CustomEvent(L,N);u.addEventListener(L,s),u.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(T(r,{select:t}),document.activeElement!==n)return}(P(u).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&T(u))}return()=>{u.removeEventListener(L,s),setTimeout(()=>{let t=new CustomEvent(D,N);u.addEventListener(D,l),u.dispatchEvent(t),t.defaultPrevented||T(e??document.body,{select:!0}),u.removeEventListener(D,l),M.remove(m)},0)}}},[u,s,l,m]);let h=f.useCallback(e=>{if(!n&&!r||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,o=document.activeElement;if(t&&o){var a;let t,r=e.currentTarget,[i,u]=[A(t=P(a=r),a),A(t.reverse(),a)];i&&u?e.shiftKey||o!==u?e.shiftKey&&o===i&&(e.preventDefault(),n&&T(u,{select:!0})):(e.preventDefault(),n&&T(i,{select:!0})):o===r&&e.preventDefault()}},[n,r,m.paused]);return(0,E.jsx)(g.sG.div,{tabIndex:-1,...i,ref:p,onKeyDown:h})});function P(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function A(e,t){let n="function"==typeof t.checkVisibility&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(r,{upTo:t})))return r}function T(e,{select:t=!1}={}){if(e&&e.focus){var n;let r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}O.displayName="FocusScope";var M=(r=[],{add(e){let t=r[0];e!==t&&t?.pause(),(r=j(r,e)).unshift(e)},remove(e){r=j(r,e),r[0]?.resume()}});function j(e,t){let n=[...e],r=n.indexOf(t);return -1!==r&&n.splice(r,1),n}var F=n(97509),I=n(58009),W=f.forwardRef((e,t)=>{let{container:n,...r}=e,[o,a]=f.useState(!1);(0,I.N)(()=>a(!0),[]);let i=n||o&&globalThis?.document?.body;return i?F.createPortal((0,E.jsx)(g.sG.div,{...r,ref:t}),i):null});W.displayName="Portal";var _=n(98386),B=0,K=null;function G(){let e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var z=function(){return(z=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function V(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var o=0,r=Object.getOwnPropertySymbols(e);o<r.length;o++)0>t.indexOf(r[o])&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]]);return n}var X=("function"==typeof SuppressedError&&SuppressedError,"right-scroll-bar-position"),Y="width-before-scroll-bar";function H(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var U="u">typeof window?f.useLayoutEffect:f.useEffect,Z=new WeakMap,q=(void 0===o&&(o={}),(void 0===a&&(a=function(e){return e}),i=[],u=!1,c={read:function(){if(u)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return i.length?i[i.length-1]:null},useMedium:function(e){var t=a(e,u);return i.push(t),function(){i=i.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(u=!0;i.length;){var t=i;i=[],t.forEach(e)}i={push:function(t){return e(t)},filter:function(){return i}}},assignMedium:function(e){u=!0;var t=[];if(i.length){var n=i;i=[],n.forEach(e),t=i}var r=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(r)};o(),i={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),i}}}}).options=z({async:!0,ssr:!1},o),c),J=function(){},Q=f.forwardRef(function(e,t){var n,r,o,a,i=f.useRef(null),u=f.useState({onScrollCapture:J,onWheelCapture:J,onTouchMoveCapture:J}),c=u[0],s=u[1],l=e.forwardProps,d=e.children,p=e.className,v=e.removeScrollBar,m=e.enabled,h=e.shards,y=e.sideCar,g=e.noRelative,b=e.noIsolation,E=e.inert,w=e.allowPinchZoom,C=e.as,k=e.gapMode,S=V(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),R=(n=[i,t],r=function(e){return n.forEach(function(t){return H(t,e)})},(o=(0,f.useState)(function(){return{value:null,callback:r,facade:{get current(){return o.value},set current(value){var e=o.value;e!==value&&(o.value=value,o.callback(value,e))}}}})[0]).callback=r,a=o.facade,U(function(){var e=Z.get(a);if(e){var t=new Set(e),r=new Set(n),o=a.current;t.forEach(function(e){r.has(e)||H(e,null)}),r.forEach(function(e){t.has(e)||H(e,o)})}Z.set(a,n)},[n]),a),x=z(z({},S),c);return f.createElement(f.Fragment,null,m&&f.createElement(y,{sideCar:q,removeScrollBar:v,shards:h,noRelative:g,noIsolation:b,inert:E,setCallbacks:s,allowPinchZoom:!!w,lockRef:i,gapMode:k}),l?f.cloneElement(f.Children.only(d),z(z({},x),{ref:R})):f.createElement(void 0===C?"div":C,z({},x,{className:p,ref:R}),d))});Q.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Q.classNames={fullWidth:Y,zeroRight:X};var $=function(e){var t=e.sideCar,n=V(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error("Sidecar medium not found");return f.createElement(r,z({},n))};$.isSideCarExport=!0;var ee=function(){var e=0,t=null;return{add:function(r){if(0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=d||n.nc;return t&&e.setAttribute("nonce",t),e}())){var o,a;(o=t).styleSheet?o.styleSheet.cssText=r:o.appendChild(document.createTextNode(r)),a=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(a)}e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},et=function(){var e=ee();return function(t,n){f.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},en=function(){var e=et();return function(t){return e(t.styles,t.dynamic),null}},er={left:0,top:0,right:0,gap:0},eo=function(e){return parseInt(e||"",10)||0},ea=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[eo(n),eo(r),eo(o)]},ei=function(e){if(void 0===e&&(e="margin"),"u"<typeof window)return er;var t=ea(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},eu=en(),ec="data-scroll-locked",es=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,u=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(u,"px ").concat(r,";\n }\n body[").concat(ec,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(u,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(u,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(X," {\n right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(Y," {\n margin-right: ").concat(u,"px ").concat(r,";\n }\n \n .").concat(X," .").concat(X," {\n right: 0 ").concat(r,";\n }\n \n .").concat(Y," .").concat(Y," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(ec,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(u,"px;\n }\n")},el=function(){var e=parseInt(document.body.getAttribute(ec)||"0",10);return isFinite(e)?e:0},ed=function(){f.useEffect(function(){return document.body.setAttribute(ec,(el()+1).toString()),function(){var e=el()-1;e<=0?document.body.removeAttribute(ec):document.body.setAttribute(ec,e.toString())}},[])},ef=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;ed();var a=f.useMemo(function(){return ei(o)},[o]);return f.createElement(eu,{styles:es(a,!t,o,n?"":"!important")})},ep=!1;if("u">typeof window)try{var ev=Object.defineProperty({},"passive",{get:function(){return ep=!0,!0}});window.addEventListener("test",ev,ev),window.removeEventListener("test",ev,ev)}catch(e){ep=!1}var em=!!ep&&{passive:!1},eh=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&(n.overflowY!==n.overflowX||"TEXTAREA"===e.tagName||"visible"!==n[t])},ey=function(e,t){var n=t.ownerDocument,r=t;do{if("u">typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eg(e,r)){var o=eb(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eg=function(e,t){return"v"===e?eh(t,"overflowY"):eh(t,"overflowX")},eb=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},eE=function(e,t,n,r,o){var a,i=(a=window.getComputedStyle(t).direction,"h"===e&&"rtl"===a?-1:1),u=i*r,c=n.target,s=t.contains(c),l=!1,d=u>0,f=0,p=0;do{if(!c)break;var v=eb(e,c),m=v[0],h=v[1]-v[2]-i*m;(m||h)&&eg(e,c)&&(f+=h,p+=m);var y=c.parentNode;c=y&&y.nodeType===Node.DOCUMENT_FRAGMENT_NODE?y.host:y}while(!s&&c!==document.body||s&&(t.contains(c)||t===c));return d&&(o&&1>Math.abs(f)||!o&&u>f)?l=!0:!d&&(o&&1>Math.abs(p)||!o&&-u>p)&&(l=!0),l},ew=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eC=function(e){return[e.deltaX,e.deltaY]},ek=function(e){return e&&"current"in e?e.current:e},eS=0,eR=[];let ex=(s=function(e){var t=f.useRef([]),n=f.useRef([0,0]),r=f.useRef(),o=f.useState(eS++)[0],a=f.useState(en)[0],i=f.useRef(e);f.useEffect(function(){i.current=e},[e]),f.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=(function(e,t,n){if(n||2==arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(ek),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var u=f.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=ew(e),u=n.current,c="deltaX"in e?e.deltaX:u[0]-a[0],s="deltaY"in e?e.deltaY:u[1]-a[1],l=e.target,d=Math.abs(c)>Math.abs(s)?"h":"v";if("touches"in e&&"h"===d&&"range"===l.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===l||p.contains(l)))return!1;var v=ey(d,l);if(!v)return!0;if(v?o=d:(o="v"===d?"h":"v",v=ey(d,l)),!v)return!1;if(!r.current&&"changedTouches"in e&&(c||s)&&(r.current=o),!o)return!0;var m=r.current||o;return eE(m,t,e,"h"===m?c:s,!0)},[]),c=f.useCallback(function(e){if(eR.length&&eR[eR.length-1]===a){var n="deltaY"in e?eC(e):ew(e),r=t.current.filter(function(t){var r;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(r=t.delta,r[0]===n[0]&&r[1]===n[1])})[0];if(r&&r.should){e.cancelable&&e.preventDefault();return}if(!r){var o=(i.current.shards||[]).map(ek).filter(Boolean).filter(function(t){return t.contains(e.target)});(o.length>0?u(e,o[0]):!i.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),s=f.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),l=f.useCallback(function(e){n.current=ew(e),r.current=void 0},[]),d=f.useCallback(function(t){s(t.type,eC(t),t.target,u(t,e.lockRef.current))},[]),p=f.useCallback(function(t){s(t.type,ew(t),t.target,u(t,e.lockRef.current))},[]);f.useEffect(function(){return eR.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",c,em),document.addEventListener("touchmove",c,em),document.addEventListener("touchstart",l,em),function(){eR=eR.filter(function(e){return e!==a}),document.removeEventListener("wheel",c,em),document.removeEventListener("touchmove",c,em),document.removeEventListener("touchstart",l,em)}},[]);var v=e.removeScrollBar,m=e.inert;return f.createElement(f.Fragment,null,m?f.createElement(a,{styles:"\n .block-interactivity-".concat(o," {pointer-events: none;}\n .allow-interactivity-").concat(o," {pointer-events: all;}\n")}):null,v?f.createElement(ef,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},q.useMedium(s),$);var eL=f.forwardRef(function(e,t){return f.createElement(Q,z({},e,{ref:t,sideCar:ex}))});eL.classNames=Q.classNames;var eD=new WeakMap,eN=new WeakMap,eO={},eP=0,eA=function(e){return e&&(e.host||eA(e.parentNode))},eT=function(e,t,n,r){var o=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=eA(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});eO[n]||(eO[n]=new WeakMap);var a=eO[n],i=[],u=new Set,c=new Set(o),s=function(e){!e||u.has(e)||(u.add(e),s(e.parentNode))};o.forEach(s);var l=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(u.has(e))l(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,c=(eD.get(e)||0)+1,s=(a.get(e)||0)+1;eD.set(e,c),a.set(e,s),i.push(e),1===c&&o&&eN.set(e,!0),1===s&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return l(t),u.clear(),eP++,function(){i.forEach(function(e){var t=eD.get(e)-1,o=a.get(e)-1;eD.set(e,t),a.set(e,o),t||(eN.has(e)||e.removeAttribute(r),eN.delete(e)),o||e.removeAttribute(n)}),--eP||(eD=new WeakMap,eD=new WeakMap,eN=new WeakMap,eO={})}},eM=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||("u"<typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),eT(r,o,n,"aria-hidden")):function(){return null}},ej=n(78347),eF="Dialog",[eI,eW]=(0,m.A)(eF),[e_,eB]=eI(eF),eK=e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:o,onOpenChange:a,modal:i=!0}=e,u=f.useRef(null),c=f.useRef(null),[s,l]=(0,y.i)({prop:r,defaultProp:o??!1,onChange:a,caller:eF});return(0,E.jsx)(e_,{scope:t,triggerRef:u,contentRef:c,contentId:(0,h.B)(),titleId:(0,h.B)(),descriptionId:(0,h.B)(),open:s,onOpenChange:l,onOpenToggle:f.useCallback(()=>l(e=>!e),[l]),modal:i,children:n})};eK.displayName=eF;var eG="DialogTrigger",ez=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eB(eG,n),a=(0,v.s)(t,o.triggerRef);return(0,E.jsx)(g.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":e6(o.open),...r,ref:a,onClick:(0,p.mK)(e.onClick,o.onOpenToggle)})});ez.displayName=eG;var eV="DialogPortal",[eX,eY]=eI(eV,{forceMount:void 0}),eH=e=>{let{__scopeDialog:t,forceMount:n,children:r,container:o}=e,a=eB(eV,t);return(0,E.jsx)(eX,{scope:t,forceMount:n,children:f.Children.map(r,e=>(0,E.jsx)(_.C,{present:n||a.open,children:(0,E.jsx)(W,{asChild:!0,container:o,children:e})}))})};eH.displayName=eV;var eU="DialogOverlay",eZ=f.forwardRef((e,t)=>{let n=eY(eU,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eB(eU,e.__scopeDialog);return a.modal?(0,E.jsx)(_.C,{present:r||a.open,children:(0,E.jsx)(eJ,{...o,ref:t})}):null});eZ.displayName=eU;var eq=(0,ej.TL)("DialogOverlay.RemoveScroll"),eJ=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eB(eU,n),a=function(){let e=f.useContext(C),[t,n]=f.useState(null);return f.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}(),i=(0,v.s)(t,a);return(0,E.jsx)(eL,{as:eq,allowPinchZoom:!0,shards:[o.contentRef],children:(0,E.jsx)(g.sG.div,{"data-state":e6(o.open),...r,ref:i,style:{pointerEvents:"auto",...r.style}})})}),eQ="DialogContent",e$=f.forwardRef((e,t)=>{let n=eY(eQ,e.__scopeDialog),{forceMount:r=n.forceMount,...o}=e,a=eB(eQ,e.__scopeDialog);return(0,E.jsx)(_.C,{present:r||a.open,children:a.modal?(0,E.jsx)(e0,{...o,ref:t}):(0,E.jsx)(e1,{...o,ref:t})})});e$.displayName=eQ;var e0=f.forwardRef((e,t)=>{let n=eB(eQ,e.__scopeDialog),r=f.useRef(null),o=(0,v.s)(t,n.contentRef,r);return f.useEffect(()=>{let e=r.current;if(e)return eM(e)},[]),(0,E.jsx)(e2,{...e,ref:o,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:(0,p.mK)(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:(0,p.mK)(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:(0,p.mK)(e.onFocusOutside,e=>e.preventDefault())})}),e1=f.forwardRef((e,t)=>{let n=eB(eQ,e.__scopeDialog),r=f.useRef(!1),o=f.useRef(!1);return(0,E.jsx)(e2,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,o.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,"pointerdown"===t.detail.originalEvent.type&&(o.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&o.current&&t.preventDefault()}})}),e2=f.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:o,onCloseAutoFocus:a,...i}=e,u=eB(eQ,n);return f.useEffect(()=>{K||(K={start:G(),end:G()});let{start:e,end:t}=K;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement("afterbegin",e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement("beforeend",t),B++,()=>{1===B&&(K?.start.remove(),K?.end.remove(),K=null),B=Math.max(0,B-1)}},[]),(0,E.jsx)(E.Fragment,{children:(0,E.jsx)(O,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:o,onUnmountAutoFocus:a,children:(0,E.jsx)(k,{role:"dialog",id:u.contentId,"aria-describedby":u.descriptionId,"aria-labelledby":u.titleId,"data-state":e6(u.open),...i,ref:t,deferPointerDownOutside:!0,onDismiss:()=>u.onOpenChange(!1)})})})}),e8="DialogTitle",e5=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eB(e8,n);return(0,E.jsx)(g.sG.h2,{id:o.titleId,...r,ref:t})});e5.displayName=e8;var e3="DialogDescription";f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eB(e3,n);return(0,E.jsx)(g.sG.p,{id:o.descriptionId,...r,ref:t})}).displayName=e3;var e4="DialogClose",e7=f.forwardRef((e,t)=>{let{__scopeDialog:n,...r}=e,o=eB(e4,n);return(0,E.jsx)(g.sG.button,{type:"button",...r,ref:t,onClick:(0,p.mK)(e.onClick,()=>o.onOpenChange(!1))})});function e6(e){return e?"open":"closed"}e7.displayName=e4},44968:(e,t,n)=>{n.d(t,{A:()=>r});let r=(0,n(81007).A)("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]])}}]);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[567],{16574:(e,t,s)=>{"use strict";e.exports=s(92597)},34927:e=>{e.exports={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0}},58202:(e,t,s)=>{"use strict";s.d(t,{Ay:()=>z});let i=e=>"string"==typeof e,r=()=>{let e,t,s=new Promise((s,i)=>{e=s,t=i});return s.resolve=e,s.reject=t,s},a=e=>null==e?"":String(e),o=/###/g,n=e=>e&&e.includes("###")?e.replace(o,"."):e,l=e=>!e||i(e),u=(e,t,s)=>{let r=i(t)?t.split("."):t,a=0;for(;a<r.length-1;){if(l(e))return{};let t=n(r[a]);!e[t]&&s&&(e[t]=new s),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++a}return l(e)?{}:{obj:e,k:n(r[a])}},p=(e,t,s)=>{let{obj:i,k:r}=u(e,t,Object);if(void 0!==i||1===t.length){i[r]=s;return}let a=t[t.length-1],o=t.slice(0,t.length-1),n=u(e,o,Object);for(;void 0===n.obj&&o.length;)a=`${o[o.length-1]}.${a}`,n=u(e,o=o.slice(0,o.length-1),Object),n?.obj&&void 0!==n.obj[`${n.k}.${a}`]&&(n.obj=void 0);n.obj[`${n.k}.${a}`]=s},h=(e,t)=>{let{obj:s,k:i}=u(e,t);if(s&&Object.prototype.hasOwnProperty.call(s,i))return s[i]},c=(e,t,s)=>{for(let r in t)"__proto__"!==r&&"constructor"!==r&&(Object.prototype.hasOwnProperty.call(e,r)?i(e[r])||e[r]instanceof String||i(t[r])||t[r]instanceof String?s&&(e[r]=t[r]):c(e[r],t[r],s):e[r]=t[r]);return e},g={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"},d=e=>i(e)?e.replace(/[&<>"'\/]/g,e=>g[e]):e;class f{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(void 0!==t)return t;let s=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,s),this.regExpQueue.push(e),s}}let m=[" ",",","?","!",";"],y=new f(20),v=(e,t,s=".")=>{if(!e)return;if(e[t]){if(!Object.prototype.hasOwnProperty.call(e,t))return;return e[t]}let i=t.split(s),r=e;for(let e=0;e<i.length;){let t;if(!r||"object"!=typeof r)return;let a="";for(let o=e;o<i.length;++o)if(o!==e&&(a+=s),a+=i[o],void 0!==(t=r[a])){if(["string","number","boolean"].includes(typeof t)&&o<i.length-1)continue;e+=o-e+1;break}r=t}return r},b=e=>e?.replace(/_/g,"-"),x={type:"logger",log(e){this.output("log",e)},warn(e){this.output("warn",e)},error(e){this.output("error",e)},output(e,t){console?.[e]?.apply?.(console,t)}};class S{constructor(e,t={}){this.init(e,t)}init(e,t={}){this.prefix=t.prefix||"i18next:",this.logger=e||x,this.options=t,this.debug=t.debug}log(...e){return this.forward(e,"log","",!0)}warn(...e){return this.forward(e,"warn","",!0)}error(...e){return this.forward(e,"error","")}deprecate(...e){return this.forward(e,"warn","WARNING DEPRECATED: ",!0)}forward(e,t,s,r){return r&&!this.debug?null:(e=e.map(e=>i(e)?e.replace(/[\r\n\x00-\x1F\x7F]/g," "):e),i(e[0])&&(e[0]=`${s}${this.prefix} ${e[0]}`),this.logger[t](e))}create(e){return new S(this.logger,{...{prefix:`${this.prefix}:${e}:`},...this.options})}clone(e){return(e=e||this.options).prefix=e.prefix||this.prefix,new S(this.logger,e)}}var k=new S;class L{constructor(){this.observers={}}on(e,t){return e.split(" ").forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let s=this.observers[e].get(t)||0;this.observers[e].set(t,s+1)}),this}off(e,t){if(this.observers[e]){if(!t)return void delete this.observers[e];this.observers[e].delete(t)}}once(e,t){let s=(...i)=>{t(...i),this.off(e,s)};return this.on(e,s),this}emit(e,...t){this.observers[e]&&Array.from(this.observers[e].entries()).forEach(([e,s])=>{for(let i=0;i<s;i++)e(...t)}),this.observers["*"]&&Array.from(this.observers["*"].entries()).forEach(([s,i])=>{for(let r=0;r<i;r++)s(e,...t)})}}class $ extends L{constructor(e,t={ns:["translation"],defaultNS:"translation"}){super(),this.data=e||{},this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),void 0===this.options.ignoreJSONStructure&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.includes(e)||this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,s,r={}){let a,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,n=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure;e.includes(".")?a=e.split("."):(a=[e,t],s&&(Array.isArray(s)?a.push(...s):i(s)&&o?a.push(...s.split(o)):a.push(s)));let l=h(this.data,a);return(!l&&!t&&!s&&e.includes(".")&&(e=a[0],t=a[1],s=a.slice(2).join(".")),!l&&n&&i(s))?v(this.data?.[e]?.[t],s,o):l}addResource(e,t,s,i,r={silent:!1}){let a=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=[e,t];s&&(o=o.concat(a?s.split(a):s)),e.includes(".")&&(o=e.split("."),i=t,t=o[1]),this.addNamespaces(t),p(this.data,o,i),r.silent||this.emit("added",e,t,s,i)}addResources(e,t,s,r={silent:!1}){for(let r in s)(i(s[r])||Array.isArray(s[r]))&&this.addResource(e,t,r,s[r],{silent:!0});r.silent||this.emit("added",e,t,s)}addResourceBundle(e,t,s,i,r,a={silent:!1,skipCopy:!1}){let o=[e,t];e.includes(".")&&(o=e.split("."),i=s,s=t,t=o[1]),this.addNamespaces(t);let n=h(this.data,o)||{};a.skipCopy||(s=JSON.parse(JSON.stringify(s))),i?c(n,s,r):n={...n,...s},p(this.data,o,n),a.silent||this.emit("added",e,t,s)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}hasResourceBundle(e,t){return void 0!==this.getResource(e,t)}getResourceBundle(e,t){return t||(t=this.options.defaultNS),this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}}var w={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,s,i,r){return e.forEach(e=>{t=this.processors[e]?.process(t,s,i,r)??t}),t}};let O=Symbol("i18next/PATH_KEY");function R(e,t){let s,i,r,{[O]:a}=e((i=[],(r=Object.create(null)).get=(e,t)=>(s?.revoke?.(),t===O)?i:(i.push(t),(s=Proxy.revocable(e,r)).proxy),Proxy.revocable(Object.create(null),r).proxy)),o=t?.keySeparator??".",n=t?.nsSeparator??":",l=t?.enableSelector==="strict";if(a.length>1&&n){let e=t?.ns,s=l?Array.isArray(e)?e:e?[e]:null:Array.isArray(e)?e:null;if(s&&(l?s:s.length>1?s.slice(1):[]).includes(a[0]))return`${a[0]}${n}${a.slice(1).join(o)}`}return a.join(o)}let N=e=>!i(e)&&"boolean"!=typeof e&&"number"!=typeof e;class C extends L{constructor(e,t={}){super(),((e,t,s)=>{e.forEach(e=>{t[e]&&(s[e]=t[e])})})(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,this),this.options=t,void 0===this.options.keySeparator&&(this.options.keySeparator="."),this.logger=k.create("translator"),this.checkedLoadedFor={}}changeLanguage(e){e&&(this.language=e)}exists(e,t={interpolation:{}}){let s={...t};if(null==e)return!1;let i=this.resolve(e,s);if(i?.res===void 0)return!1;let r=N(i.res);return!1!==s.returnObjects||!r}extractFromKey(e,t){let s=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===s&&(s=":");let r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,a=t.ns||this.options.defaultNS||[],o=s&&e.includes(s),n=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!((e,t,s)=>{t=t||"",s=s||"";let i=m.filter(e=>!t.includes(e)&&!s.includes(e));if(0===i.length)return!0;let r=y.getRegExp(`(${i.map(e=>"?"===e?"\\?":e).join("|")})`),a=!r.test(e);if(!a){let t=e.indexOf(s);t>0&&!r.test(e.substring(0,t))&&(a=!0)}return a})(e,s,r);if(o&&!n){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:i(a)?[a]:a};let o=e.split(s);(s!==r||s===r&&this.options.ns.includes(o[0]))&&(a=o.shift()),e=o.join(r)}return{key:e,namespaces:i(a)?[a]:a}}translate(e,t,s){let r="object"==typeof t?{...t}:t;if("object"!=typeof r&&this.options.overloadTranslationOptionHandler&&(r=this.options.overloadTranslationOptionHandler(arguments)),"object"==typeof r&&(r={...r}),r||(r={}),null==e)return"";"function"==typeof e&&(e=R(e,{...this.options,...r})),Array.isArray(e)||(e=[String(e)]),e=e.map(e=>"function"==typeof e?R(e,{...this.options,...r}):String(e));let a=void 0!==r.returnDetails?r.returnDetails:this.options.returnDetails,o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,{key:n,namespaces:l}=this.extractFromKey(e[e.length-1],r),u=l[l.length-1],p=void 0!==r.nsSeparator?r.nsSeparator:this.options.nsSeparator;void 0===p&&(p=":");let h=r.lng||this.language,c=r.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h?.toLowerCase()==="cimode")return c?a?{res:`${u}${p}${n}`,usedKey:n,exactUsedKey:n,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:`${u}${p}${n}`:a?{res:n,usedKey:n,exactUsedKey:n,usedLng:h,usedNS:u,usedParams:this.getUsedParamsDetails(r)}:n;let g=this.resolve(e,r),d=g?.res,f=g?.usedKey||n,m=g?.exactUsedKey||n,y=void 0!==r.joinArrays?r.joinArrays:this.options.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,b=void 0!==r.count&&!i(r.count),x=C.hasDefaultValue(r),S=b?this.pluralResolver.getSuffix(h,r.count,r):"",k=r.ordinal&&b?this.pluralResolver.getSuffix(h,r.count,{ordinal:!1}):"",L=b&&!r.ordinal&&0===r.count,$=L&&r[`defaultValue${this.options.pluralSeparator}zero`]||r[`defaultValue${S}`]||r[`defaultValue${k}`]||r.defaultValue,w=d;v&&!d&&x&&(w=$);let O=N(w),P=Object.prototype.toString.apply(w);if(v&&w&&O&&!["[object Number]","[object Function]","[object RegExp]"].includes(P)&&!(i(y)&&Array.isArray(w))){if(!r.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(f,w,{...r,ns:l}):`key '${n} (${this.language})' returned an object instead of string.`;return a?(g.res=e,g.usedParams=this.getUsedParamsDetails(r),g):e}if(o){let e=Array.isArray(w),t=e?[]:{},s=e?m:f;for(let e in w)if(Object.prototype.hasOwnProperty.call(w,e)){let i=`${s}${o}${e}`;x&&!d?t[e]=this.translate(i,{...r,defaultValue:N($)?$[e]:void 0,...{joinArrays:!1,ns:l}}):t[e]=this.translate(i,{...r,joinArrays:!1,ns:l}),t[e]===i&&(t[e]=w[e])}d=t}}else if(v&&i(y)&&Array.isArray(d))(d=d.join(y))&&(d=this.extendTranslation(d,e,r,s));else{let t=!1,i=!1;!this.isValidLookup(d)&&x&&(t=!0,d=$),this.isValidLookup(d)||(i=!0,d=n);let a=(r.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&i?void 0:d,l=x&&$!==d&&this.options.updateMissing;if(i||t||l){if(this.logger.log(l?"updateKey":"missingKey",h,u,b&&!l?`${n}${this.pluralResolver.getSuffix(h,r.count,r)}`:n,l?$:d),o){let e=this.resolve(n,{...r,keySeparator:!1});e&&e.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,r.lng||this.language);if("fallback"===this.options.saveMissingTo&&t&&t[0])for(let s=0;s<t.length;s++)e.push(t[s]);else"all"===this.options.saveMissingTo?e=this.languageUtils.toResolveHierarchy(r.lng||this.language):e.push(r.lng||this.language);let s=(e,t,s)=>{let i=x&&s!==d?s:a;this.options.missingKeyHandler?this.options.missingKeyHandler(e,u,t,i,l,r):this.backendConnector?.saveMissing&&this.backendConnector.saveMissing(e,u,t,i,l,r),this.emit("missingKey",e,u,t,d)};this.options.saveMissing&&(this.options.saveMissingPlurals&&b?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,r);L&&r[`defaultValue${this.options.pluralSeparator}zero`]&&!t.includes(`${this.options.pluralSeparator}zero`)&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{s([e],n+t,r[`defaultValue${t}`]||$)})}):s(e,n,$))}d=this.extendTranslation(d,e,r,g,s),i&&d===n&&this.options.appendNamespaceToMissingKey&&(d=`${u}${p}${n}`),(i||t)&&this.options.parseMissingKeyHandler&&(d=this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${u}${p}${n}`:n,t?d:void 0,r))}return a?(g.res=d,g.usedParams=this.getUsedParamsDetails(r),g):d}extendTranslation(e,t,s,r,a){if(this.i18nFormat?.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...s},s.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!s.skipInterpolation){let o;s.interpolation&&this.interpolator.init({...s,...{interpolation:{...this.options.interpolation,...s.interpolation}}});let n=i(e)&&(s?.interpolation?.skipOnVariables!==void 0?s.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(n){let t=e.match(this.interpolator.nestingRegexp);o=t&&t.length}let l=s.replace&&!i(s.replace)?s.replace:s;if(this.options.interpolation.defaultVariables&&(l={...this.options.interpolation.defaultVariables,...l}),e=this.interpolator.interpolate(e,l,s.lng||this.language||r.usedLng,s),n){let t=e.match(this.interpolator.nestingRegexp);o<(t&&t.length)&&(s.nest=!1)}!s.lng&&r&&r.res&&(s.lng=this.language||r.usedLng),!1!==s.nest&&(e=this.interpolator.nest(e,(...e)=>a?.[0]!==e[0]||s.context?this.translate(...e,t):(this.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null),s)),s.interpolation&&this.interpolator.reset()}let o=s.postProcess||this.options.postProcess,n=i(o)?[o]:o;return null!=e&&n?.length&&!1!==s.applyPostProcessor&&(e=w.handle(n,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(s)},...s}:s,this)),e}resolve(e,t={}){let s,r,a,o,n;return i(e)&&(e=[e]),Array.isArray(e)&&(e=e.map(e=>"function"==typeof e?R(e,{...this.options,...t}):e)),e.forEach(e=>{if(this.isValidLookup(s))return;let l=this.extractFromKey(e,t),u=l.key;r=u;let p=l.namespaces;this.options.fallbackNS&&(p=p.concat(this.options.fallbackNS));let h=void 0!==t.count&&!i(t.count),c=h&&!t.ordinal&&0===t.count,g=void 0!==t.context&&(i(t.context)||"number"==typeof t.context)&&""!==t.context,d=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);p.forEach(e=>{this.isValidLookup(s)||(n=e,!this.checkedLoadedFor[`${d[0]}-${e}`]&&this.utils?.hasLoadedNamespace&&!this.utils?.hasLoadedNamespace(n)&&(this.checkedLoadedFor[`${d[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${d.join(", ")}" won't get resolved as namespace "${n}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),d.forEach(i=>{let r;if(this.isValidLookup(s))return;o=i;let n=[u];if(this.i18nFormat?.addLookupKeys)this.i18nFormat.addLookupKeys(n,u,i,e,t);else{let e;h&&(e=this.pluralResolver.getSuffix(i,t.count,t));let s=`${this.options.pluralSeparator}zero`,r=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(h&&(t.ordinal&&e.startsWith(r)&&n.push(u+e.replace(r,this.options.pluralSeparator)),n.push(u+e),c&&n.push(u+s)),g){let i=`${u}${this.options.contextSeparator||"_"}${t.context}`;n.push(i),h&&(t.ordinal&&e.startsWith(r)&&n.push(i+e.replace(r,this.options.pluralSeparator)),n.push(i+e),c&&n.push(i+s))}}for(;r=n.pop();)this.isValidLookup(s)||(a=r,s=this.getResource(i,e,r,t))}))})}),{res:s,usedKey:r,exactUsedKey:a,usedLng:o,usedNS:n}}isValidLookup(e){return void 0!==e&&!(!this.options.returnNull&&null===e)&&!(!this.options.returnEmptyString&&""===e)}getResource(e,t,s,i={}){return this.i18nFormat?.getResource?this.i18nFormat.getResource(e,t,s,i):this.resourceStore.getResource(e,t,s,i)}getUsedParamsDetails(e={}){let t=e.replace&&!i(e.replace),s=t?e.replace:e;if(t&&void 0!==e.count&&(s.count=e.count),this.options.interpolation.defaultVariables&&(s={...this.options.interpolation.defaultVariables,...s}),!t)for(let e of(s={...s},["defaultValue","ordinal","context","replace","lng","lngs","fallbackLng","ns","keySeparator","nsSeparator","returnObjects","returnDetails","joinArrays","postProcess","interpolation"]))delete s[e];return s}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.startsWith("defaultValue")&&void 0!==e[t])return!0;return!1}}class P{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=k.create("languageUtils")}getScriptPartFromCode(e){if(!(e=b(e))||!e.includes("-"))return null;let t=e.split("-");return 2===t.length||(t.pop(),"x"===t[t.length-1].toLowerCase())?null:this.formatLanguageCode(t.join("-"))}getLanguagePartFromCode(e){if(!(e=b(e))||!e.includes("-"))return e;let t=e.split("-");return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(i(e)&&e.includes("-")){let t;try{t=Intl.getCanonicalLocales(e)[0]}catch(e){}return(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)?t:this.options.lowerCaseLng?e.toLowerCase():e}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.includes(e)}getBestMatchFromCodes(e){let t;return e?(e.forEach(e=>{if(t)return;let s=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(s))&&(t=s)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let s=this.getScriptPartFromCode(e);if(this.isSupportedCode(s))return t=s;let i=this.getLanguagePartFromCode(e);if(this.isSupportedCode(i))return t=i;t=this.options.supportedLngs.find(e=>e===i||(!!e.includes("-")||!!i.includes("-"))&&!!(e.includes("-")&&!i.includes("-")&&e.slice(0,e.indexOf("-"))===i||e.startsWith(i)&&i.length>1))}),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}getFallbackCodes(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),i(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let s=e[t];return s||(s=e[this.getScriptPartFromCode(t)]),s||(s=e[this.formatLanguageCode(t)]),s||(s=e[this.getLanguagePartFromCode(t)]),s||(s=e.default),s||[]}toResolveHierarchy(e,t){let s=this.getFallbackCodes((!1===t?[]:t)||this.options.fallbackLng||[],e),r=[],a=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return i(e)&&(e.includes("-")||e.includes("_"))?("languageOnly"!==this.options.load&&a(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&a(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&a(this.getLanguagePartFromCode(e))):i(e)&&a(this.formatLanguageCode(e)),s.forEach(e=>{r.includes(e)||a(this.formatLanguageCode(e))}),r}}let j={zero:0,one:1,two:2,few:3,many:4,other:5},E={select:e=>1===e?"one":"other",resolvedOptions:()=>({pluralCategories:["one","other"]})};class F{constructor(e,t={}){this.languageUtils=e,this.options=t,this.logger=k.create("pluralResolver"),this.pluralRulesCache={}}clearCache(){this.pluralRulesCache={}}getRule(e,t={}){let s,i=b("dev"===e?"en":e),r=t.ordinal?"ordinal":"cardinal",a=JSON.stringify({cleanedCode:i,type:r});if(a in this.pluralRulesCache)return this.pluralRulesCache[a];try{s=new Intl.PluralRules(i,{type:r})}catch(r){if("u"<typeof Intl)return this.logger.error("No Intl support, please use an Intl polyfill!"),E;if(!e.match(/-|_/))return E;let i=this.languageUtils.getLanguagePartFromCode(e);s=this.getRule(i,t)}return this.pluralRulesCache[a]=s,s}needsPlural(e,t={}){let s=this.getRule(e,t);return s||(s=this.getRule("dev",t)),s?.resolvedOptions().pluralCategories.length>1}getPluralFormsOfKey(e,t,s={}){return this.getSuffixes(e,s).map(e=>`${t}${e}`)}getSuffixes(e,t={}){let s=this.getRule(e,t);return(s||(s=this.getRule("dev",t)),s)?s.resolvedOptions().pluralCategories.sort((e,t)=>j[e]-j[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:""}${e}`):[]}getSuffix(e,t,s={}){let i=this.getRule(e,s);return i?`${this.options.prepend}${s.ordinal?`ordinal${this.options.prepend}`:""}${i.select(t)}`:(this.logger.warn(`no plural rule found for: ${e}`),this.getSuffix("dev",t,s))}}let T=(e,t,s,r=".",a=!0)=>{let o,n=void 0!==(o=h(e,s))?o:h(t,s);return!n&&a&&i(s)&&void 0===(n=v(e,s,r))&&(n=v(t,s,r)),n};class A{constructor(e={}){this.logger=k.create("interpolator"),this.options=e,this.format=e?.interpolation?.format||(e=>e),this.init(e)}init(e={}){e.interpolation||(e.interpolation={escapeValue:!0});let{escape:t,escapeValue:s,useRawValueToEscape:i,prefix:r,prefixEscaped:a,suffix:o,suffixEscaped:n,formatSeparator:l,unescapeSuffix:u,unescapePrefix:p,nestingPrefix:h,nestingPrefixEscaped:c,nestingSuffix:g,nestingSuffixEscaped:f,nestingOptionsSeparator:m,maxReplaces:y,alwaysFormat:v}=e.interpolation;this.escape=void 0!==t?t:d,this.escapeValue=void 0===s||s,this.useRawValueToEscape=void 0!==i&&i,this.prefix=r?r.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):a||"{{",this.suffix=o?o.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):n||"}}",this.formatSeparator=l||",",this.unescapePrefix=u?"":p?p.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"-",this.unescapeSuffix=this.unescapePrefix?"":u?u.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):"",this.nestingPrefix=h?h.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):c||"$t(".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingSuffix=g?g.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"):f||")".replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&"),this.nestingOptionsSeparator=m||",",this.maxReplaces=y||1e3,this.alwaysFormat=void 0!==v&&v,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e?.source===t?(e.lastIndex=0,e):RegExp(t,"g");this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}((?:[^()"']+|"[^"]*"|'[^']*'|\\((?:[^()]|"[^"]*"|'[^']*')*\\))*?)${this.nestingSuffix}`)}interpolate(e,t,s,r){let o,n,l,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},p=e=>{if(!e.includes(this.formatSeparator)){let i=T(t,u,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,s,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(T(t,u,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,s,{...r,...t,interpolationkey:a})};this.resetRegExp(),!this.escapeValue&&"string"==typeof e&&/\$t\([^)]*\{[^}]*\{\{/.test(e)&&this.logger.warn("nesting options string contains interpolated variables with escapeValue: false — if any of those values are attacker-controlled they can inject additional nesting options (e.g. redirect lng/ns). Sanitise untrusted input before passing it to t(), or keep escapeValue: true.");let h=r?.missingInterpolationHandler||this.options.missingInterpolationHandler,c=r?.interpolation?.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>e.replace(/\$/g,"$$$$")},{regex:this.regexp,safeValue:e=>this.escapeValue?this.escape(e).replace(/\$/g,"$$$$"):e.replace(/\$/g,"$$$$")}].forEach(t=>{for(l=0;o=t.regex.exec(e);){let s=o[1].trim();if(void 0===(n=p(s)))if("function"==typeof h){let t=h(e,o,r);n=i(t)?t:""}else if(r&&Object.prototype.hasOwnProperty.call(r,s))n="";else if(c){n=o[0];continue}else this.logger.warn(`missed to pass in variable ${s} for interpolating ${e}`),n="";else i(n)||this.useRawValueToEscape||(n=a(n));let u=t.safeValue(n);if(e=e.replace(o[0],u),c?(t.regex.lastIndex+=n.length,t.regex.lastIndex-=o[0].length):t.regex.lastIndex=0,++l>=this.maxReplaces)break}}),e}nest(e,t,s={}){let r,o,n,l=(e,t)=>{let s=this.nestingOptionsSeparator;if(!e.includes(s))return e;let i=e.split(RegExp(`${s.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}[ ]*{`)),r=`{${i[1]}`;e=i[0];let a=(r=this.interpolate(r,n)).match(/'/g),o=r.match(/"/g);((a?.length??0)%2!=0||o)&&(o?.length??0)%2==0||(r=r.replace(/'/g,'"'));try{n=JSON.parse(r),t&&(n={...t,...n})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${s}${r}`}return n.defaultValue&&n.defaultValue.includes(this.prefix)&&delete n.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let u=[];(n=(n={...s}).replace&&!i(n.replace)?n.replace:n).applyPostProcessor=!1,delete n.defaultValue;let p=/{.*}/.test(r[1])?r[1].lastIndexOf("}")+1:r[1].indexOf(this.formatSeparator);if(-1!==p&&(u=r[1].slice(p).split(this.formatSeparator).map(e=>e.trim()).filter(Boolean),r[1]=r[1].slice(0,p)),(o=t(l.call(this,r[1].trim(),n),n))&&r[0]===e&&!i(o))return o;i(o)||(o=a(o)),o||(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),o=""),u.length&&(o=u.reduce((e,t)=>this.format(e,t,s.lng,{...s,interpolationkey:r[1].trim()}),o.trim())),e=e.replace(r[0],o),this.regexp.lastIndex=0}return e}}let I=e=>{let t={};return(s,i,r)=>{let a=r;r&&r.interpolationkey&&r.formatParams&&r.formatParams[r.interpolationkey]&&r[r.interpolationkey]&&(a={...a,[r.interpolationkey]:void 0});let o=i+JSON.stringify(a),n=t[o];return n||(n=e(b(i),r),t[o]=n),n(s)}},V=e=>(t,s,i)=>e(b(s),i)(t);class D{constructor(e={}){this.logger=k.create("formatter"),this.options=e,this.init(e)}init(e,t={interpolation:{}}){this.formatSeparator=t.interpolation.formatSeparator||",";let s=t.cacheInBuiltFormats?I:V;this.formats={number:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t});return e=>s.format(e)}),currency:s((e,t)=>{let s=new Intl.NumberFormat(e,{...t,style:"currency"});return e=>s.format(e)}),datetime:s((e,t)=>{let s=new Intl.DateTimeFormat(e,{...t});return e=>s.format(e)}),relativetime:s((e,t)=>{let s=new Intl.RelativeTimeFormat(e,{...t});return e=>s.format(e,t.range||"day")}),list:s((e,t)=>{let s=new Intl.ListFormat(e,{...t});return e=>s.format(e)})}}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=I(t)}format(e,t,s,i={}){if(!t||null==e)return e;let r=t.split(this.formatSeparator),a=[];for(let e=0;e<r.length;e++){let t=r[e];for(;t.indexOf("(")>-1&&!t.includes(")")&&e+1<r.length;)t=`${t}${this.formatSeparator}${r[++e]}`;a.push(t)}return a.reduce((e,t)=>{let{formatName:r,formatOptions:a}=(e=>{let t=e.toLowerCase().trim(),s={};if(e.includes("(")){let i=e.split("(");t=i[0].toLowerCase().trim();let r=i[1].slice(0,-1);"currency"!==t||r.includes(":")?"relativetime"!==t||r.includes(":")?r.split(";").forEach(e=>{if(e){let[t,...i]=e.split(":"),r=i.join(":").trim().replace(/^'+|'+$/g,""),a=t.trim();s[a]||(s[a]=r),"false"===r&&(s[a]=!1),"true"===r&&(s[a]=!0),isNaN(r)||(s[a]=parseInt(r,10))}}):s.range||(s.range=r.trim()):s.currency||(s.currency=r.trim())}return{formatName:t,formatOptions:s}})(t);if(this.formats[r]){let t=e;try{let o=i?.formatParams?.[i.interpolationkey]||{},n=o.locale||o.lng||i.locale||i.lng||s;t=this.formats[r](e,n,{...a,...i,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${r}`),e},e)}}class U extends L{constructor(e,t,s,i={}){super(),this.backend=e,this.store=t,this.services=s,this.languageUtils=s.languageUtils,this.options=i,this.logger=k.create("backendConnector"),this.waitingReads=[],this.maxParallelReads=i.maxParallelReads||10,this.readingCalls=0,this.maxRetries=i.maxRetries>=0?i.maxRetries:5,this.retryTimeout=i.retryTimeout>=1?i.retryTimeout:350,this.state={},this.queue=[],this.backend?.init?.(s,i.backend,i)}queueLoad(e,t,s,i){let r={},a={},o={},n={};return e.forEach(e=>{let i=!0;t.forEach(t=>{let o=`${e}|${t}`;!s.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(1===this.state[o]?void 0===a[o]&&(a[o]=!0):(this.state[o]=1,i=!1,void 0===a[o]&&(a[o]=!0),void 0===r[o]&&(r[o]=!0),void 0===n[t]&&(n[t]=!0)))}),i||(o[e]=!0)}),(Object.keys(r).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:i}),{toLoad:Object.keys(r),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(n)}}loaded(e,t,s){let i=e.split("|"),r=i[0],a=i[1];t&&this.emit("failedLoading",r,a,t),!t&&s&&this.store.addResourceBundle(r,a,s,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&s&&(this.state[e]=0);let o={};this.queue.forEach(s=>{((e,t,s)=>{let{obj:i,k:r}=u(e,t,Object);i[r]=i[r]||[],i[r].push(s)})(s.loaded,[r],a),void 0!==s.pending[e]&&(delete s.pending[e],s.pendingCount--),t&&s.errors.push(t),0!==s.pendingCount||s.done||(Object.keys(s.loaded).forEach(e=>{o[e]||(o[e]={});let t=s.loaded[e];t.length&&t.forEach(t=>{void 0===o[e][t]&&(o[e][t]=!0)})}),s.done=!0,s.errors.length?s.callback(s.errors):s.callback())}),this.emit("loaded",o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,s,i=0,r=this.retryTimeout,a){if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads)return void this.waitingReads.push({lng:e,ns:t,fcName:s,tried:i,wait:r,callback:a});this.readingCalls++;let o=(o,n)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}o&&n&&i<this.maxRetries?setTimeout(()=>{this.read(e,t,s,i+1,2*r,a)},r):a(o,n)},n=this.backend[s].bind(this.backend);if(2===n.length){try{let s=n(e,t);s&&"function"==typeof s.then?s.then(e=>o(null,e)).catch(o):o(null,s)}catch(e){o(e)}return}return n(e,t,o)}prepareLoading(e,t,s={},r){if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r();i(e)&&(e=this.languageUtils.toResolveHierarchy(e)),i(t)&&(t=[t]);let a=this.queueLoad(e,t,s,r);if(!a.toLoad.length)return a.pending.length||r(),null;a.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,s){this.prepareLoading(e,t,{},s)}reload(e,t,s){this.prepareLoading(e,t,{reload:!0},s)}loadOne(e,t=""){let s=e.split("|"),i=s[0],r=s[1];this.read(i,r,"read",void 0,void 0,(s,a)=>{s&&this.logger.warn(`${t}loading namespace ${r} for language ${i} failed`,s),!s&&a&&this.logger.log(`${t}loaded namespace ${r} for language ${i}`,a),this.loaded(e,s,a)})}saveMissing(e,t,s,i,r,a={},o=()=>{}){if(this.services?.utils?.hasLoadedNamespace&&!this.services?.utils?.hasLoadedNamespace(t))return void this.logger.warn(`did not save key "${s}" as the namespace "${t}" was not yet loaded`,"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!");if(null!=s&&""!==s){if(this.backend?.create){let n={...a,isUpdate:r},l=this.backend.create.bind(this.backend);if(l.length<6)try{let r;(r=5===l.length?l(e,t,s,i,n):l(e,t,s,i))&&"function"==typeof r.then?r.then(e=>o(null,e)).catch(o):o(null,r)}catch(e){o(e)}else l(e,t,s,i,o,n)}e&&e[0]&&this.store.addResource(e[0],t,s,i)}}}let K=()=>({debug:!1,initAsync:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",enableSelector:!1,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if("object"==typeof e[1]&&(t=e[1]),i(e[1])&&(t.defaultValue=e[1]),i(e[2])&&(t.tDescription=e[2]),"object"==typeof e[2]||"object"==typeof e[3]){let s=e[3]||e[2];Object.keys(s).forEach(e=>{t[e]=s[e]})}return t},interpolation:{escapeValue:!0,prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!0},cacheInBuiltFormats:!0}),M=e=>(i(e.ns)&&(e.ns=[e.ns]),i(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),i(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&!e.supportedLngs.includes("cimode")&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e),_=()=>{};class H extends L{constructor(e={},t){if(super(),this.options=M(e),this.services={},this.logger=k,this.modules={external:[]},(e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{"function"==typeof e[t]&&(e[t]=e[t].bind(e))})})(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initAsync)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(e={},t){this.isInitializing=!0,"function"==typeof e&&(t=e,e={}),null==e.defaultNS&&e.ns&&(i(e.ns)?e.defaultNS=e.ns:e.ns.includes("translation")||(e.defaultNS=e.ns[0]));let s=K();this.options={...s,...this.options,...M(e)},this.options.interpolation={...s.interpolation,...this.options.interpolation},void 0!==e.keySeparator&&(this.options.userDefinedKeySeparator=e.keySeparator),void 0!==e.nsSeparator&&(this.options.userDefinedNsSeparator=e.nsSeparator),"function"!=typeof this.options.overloadTranslationOptionHandler&&(this.options.overloadTranslationOptionHandler=s.overloadTranslationOptionHandler);let a=e=>e?"function"==typeof e?new e:e:null;if(!this.options.isClone){let e;this.modules.logger?k.init(a(this.modules.logger),this.options):k.init(null,this.options),e=this.modules.formatter?this.modules.formatter:D;let t=new P(this.options);this.store=new $(this.options.resources,this.options);let s=this.services;s.logger=k,s.resourceStore=this.store,s.languageUtils=t,s.pluralResolver=new F(t,{prepend:this.options.pluralSeparator}),e&&(s.formatter=a(e),s.formatter.init&&s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new A(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(a(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.languageDetector&&(s.languageDetector=a(this.modules.languageDetector),s.languageDetector.init&&s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=a(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new C(this.services,this.options),this.translator.on("*",(e,...t)=>{this.emit(e,...t)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,t||(t=_),this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&"dev"!==e[0]&&(this.options.lng=e[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach(e=>{this[e]=(...t)=>this.store[e](...t)}),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach(e=>{this[e]=(...t)=>(this.store[e](...t),this)});let o=r(),n=()=>{let e=(e,s)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn("init: i18next is already initialized. You should call init just once!"),this.isInitialized=!0,this.options.isClone||this.logger.log("initialized",this.options),this.emit("initialized",this.options),o.resolve(s),t(e,s)};if((this.languages||this.isLanguageChangingTo)&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initAsync?n():setTimeout(n,0),o}loadResources(e,t=_){let s=t,r=i(e)?e:this.language;if("function"==typeof e&&(s=e),!this.options.resources||this.options.partialBundledLanguages){if(r?.toLowerCase()==="cimode"&&(!this.options.preload||0===this.options.preload.length))return s();let e=[],t=t=>{t&&"cimode"!==t&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{"cimode"!==t&&(e.includes(t)||e.push(t))})};r?t(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>t(e)),this.options.preload?.forEach?.(e=>t(e)),this.services.backendConnector.load(e,this.options.ns,e=>{e||this.resolvedLanguage||!this.language||this.setResolvedLanguage(this.language),s(e)})}else s(null)}reloadResources(e,t,s){let i=r();return"function"==typeof e&&(s=e,e=void 0),"function"==typeof t&&(s=t,t=void 0),e||(e=this.languages),t||(t=this.options.ns),s||(s=_),this.services.backendConnector.reload(e,t,e=>{i.resolve(),s(e)}),i}use(e){if(!e)throw Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&w.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}setResolvedLanguage(e){if(e&&this.languages&&!["cimode","dev"].includes(e)){for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!["cimode","dev"].includes(t)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}!this.resolvedLanguage&&!this.languages.includes(e)&&this.store.hasLanguageSomeTranslations(e)&&(this.resolvedLanguage=e,this.languages.unshift(e))}}changeLanguage(e,t){this.isLanguageChangingTo=e;let s=r();this.emit("languageChanging",e);let a=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},o=(i,r)=>{r?this.isLanguageChangingTo===e&&(a(r),this.translator.changeLanguage(r),this.isLanguageChangingTo=void 0,this.emit("languageChanged",r),this.logger.log("languageChanged",r)):this.isLanguageChangingTo=void 0,s.resolve((...e)=>this.t(...e)),t&&t(i,(...e)=>this.t(...e))},n=t=>{e||t||!this.services.languageDetector||(t=[]);let s=i(t)?t:t&&t[0],r=this.store.hasLanguageSomeTranslations(s)?s:this.services.languageUtils.getBestMatchFromCodes(i(t)?[t]:t);r&&(this.language||a(r),this.translator.language||this.translator.changeLanguage(r),this.services.languageDetector?.cacheUserLanguage?.(r)),this.loadResources(r,e=>{o(e,r)})};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?0===this.services.languageDetector.detect.length?this.services.languageDetector.detect().then(n):this.services.languageDetector.detect(n):n(e):n(this.services.languageDetector.detect()),s}getFixedT(e,t,s,r){let a=r?.scopeNs,o=(e,t,...i)=>{let r,n;(r="object"!=typeof t?this.options.overloadTranslationOptionHandler([e,t].concat(i)):{...t}).lng=r.lng||o.lng,r.lngs=r.lngs||o.lngs;let l=void 0!==r.ns&&null!==r.ns;r.ns=r.ns||o.ns,""!==r.keyPrefix&&(r.keyPrefix=r.keyPrefix||s||o.keyPrefix);let u={...this.options,...r};Array.isArray(a)&&!l&&(u.ns=a),"function"==typeof r.keyPrefix&&(r.keyPrefix=R(r.keyPrefix,u));let p=this.options.keySeparator||".";return r.keyPrefix&&Array.isArray(e)?n=e.map(e=>("function"==typeof e&&(e=R(e,u)),`${r.keyPrefix}${p}${e}`)):("function"==typeof e&&(e=R(e,u)),n=r.keyPrefix?`${r.keyPrefix}${p}${e}`:e),this.t(n,r)};return i(e)?o.lng=e:o.lngs=e,o.ns=t,o.keyPrefix=s,o}t(...e){return this.translator?.translate(...e)}exists(...e){return this.translator?.exists(...e)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e,t={}){if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;let s=t.lng||this.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,r=this.languages[this.languages.length-1];if("cimode"===s.toLowerCase())return!0;let a=(e,t)=>{let s=this.services.backendConnector.state[`${e}|${t}`];return -1===s||0===s||2===s};if(t.precheck){let e=t.precheck(this,a);if(void 0!==e)return e}return!!(this.hasResourceBundle(s,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(s,e)&&(!i||a(r,e)))}loadNamespaces(e,t){let s=r();return this.options.ns?(i(e)&&(e=[e]),e.forEach(e=>{this.options.ns.includes(e)||this.options.ns.push(e)}),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}loadLanguages(e,t){let s=r();i(e)&&(e=[e]);let a=this.options.preload||[],o=e.filter(e=>!a.includes(e)&&this.services.languageUtils.isSupportedCode(e));return o.length?(this.options.preload=a.concat(o),this.loadResources(e=>{s.resolve(),t&&t(e)}),s):(t&&t(),Promise.resolve())}dir(e){if(e||(e=this.resolvedLanguage||(this.languages?.length>0?this.languages[0]:this.language)),!e)return"rtl";try{let t=new Intl.Locale(e);if(t&&t.getTextInfo){let e=t.getTextInfo();if(e&&e.direction)return e.direction}}catch(e){}let t=this.services?.languageUtils||new P(K());return e.toLowerCase().indexOf("-latn")>1?"ltr":["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam","ckb"].includes(t.getLanguagePartFromCode(e))||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}static createInstance(e={},t){let s=new H(e,t);return s.createInstance=H.createInstance,s}cloneInstance(e={},t=_){let s=e.forkResourceStore;s&&delete e.forkResourceStore;let i={...this.options,...e,isClone:!0},r=new H(i);if((void 0!==e.debug||void 0!==e.prefix)&&(r.logger=r.logger.clone(e)),["store","services","language"].forEach(e=>{r[e]=this[e]}),r.services={...this.services},r.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},s&&(r.store=new $(Object.keys(this.store.data).reduce((e,t)=>(e[t]={...this.store.data[t]},e[t]=Object.keys(e[t]).reduce((s,i)=>(s[i]={...e[t][i]},s),e[t]),e),{}),i),r.services.resourceStore=r.store),e.interpolation){let t={...K().interpolation,...this.options.interpolation,...e.interpolation},s={...i,interpolation:t};r.services.interpolator=new A(s)}return r.translator=new C(r.services,i),r.translator.on("*",(e,...t)=>{r.emit(e,...t)}),r.init(i,t),r.translator.options=i,r.translator.backendConnector.services.utils={hasLoadedNamespace:r.hasLoadedNamespace.bind(r)},r}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}let z=H.createInstance();z.createInstance,z.dir,z.init,z.loadResources,z.reloadResources,z.use,z.changeLanguage,z.getFixedT,z.t,z.exists,z.setDefaultNamespace,z.hasLoadedNamespace,z.loadNamespaces,z.loadLanguages},64567:(e,t,s)=>{"use strict";let i;s.d(t,{r9:()=>m,Bd:()=>$});var r=s(7620);s(58202),s(34927),Object.create(null);let a=(e,t,s,i)=>{let r=[s,{code:t,...i||{}}];if(e?.services?.logger?.forward)return e.services.logger.forward(r,"warn","react-i18next::",!0);h(r[0])&&(r[0]=`react-i18next:: ${r[0]}`),e?.services?.logger?.warn?e.services.logger.warn(...r):console?.warn&&console.warn(...r)},o={},n=(e,t,s,i)=>{h(s)&&o[s]||(h(s)&&(o[s]=new Date),a(e,t,s,i))},l=(e,t)=>()=>{if(e.isInitialized)t();else{let s=()=>{setTimeout(()=>{e.off("initialized",s)},0),t()};e.on("initialized",s)}},u=(e,t,s)=>{e.loadNamespaces(t,l(e,s))},p=(e,t,s,i)=>{if(h(s)&&(s=[s]),e.options.preload&&e.options.preload.indexOf(t)>-1)return u(e,s,i);s.forEach(t=>{0>e.options.ns.indexOf(t)&&e.options.ns.push(t)}),e.loadLanguages(t,l(e,i))},h=e=>"string"==typeof e,c=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,g={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"\xa9","©":"\xa9","®":"\xae","®":"\xae","…":"…","…":"…","/":"/","/":"/"},d=e=>g[e],f={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:e=>e.replace(c,d),transDefaultProps:void 0},m={type:"3rdParty",init(e){((e={})=>{f={...f,...e}})(e.options.react),i=e}},y=(0,r.createContext)();class v{constructor(){this.usedNamespaces={}}addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces(){return Object.keys(this.usedNamespaces)}}let b={" ":"\xa0","&":"&","<":"<",">":">",""":'"',"'":"'","©":"\xa9","®":"\xae","™":"™","…":"…","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","•":"•","′":"′","″":"″","‹":"‹","›":"›","§":"\xa7","¶":"\xb6","·":"\xb7"," ":" "," ":" "," ":" ","€":"€","£":"\xa3","¥":"\xa5","¢":"\xa2","¤":"\xa4","×":"\xd7","÷":"\xf7","−":"−","±":"\xb1","≠":"≠","≤":"≤","≥":"≥","≈":"≈","≡":"≡","∞":"∞","∫":"∫","∑":"∑","∏":"∏","√":"√","∂":"∂","‰":"‰","°":"\xb0","µ":"\xb5","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","À":"\xc0","Á":"\xc1","Â":"\xc2","Ã":"\xc3","Ä":"\xc4","Å":"\xc5","Æ":"\xc6","Ç":"\xc7","È":"\xc8","É":"\xc9","Ê":"\xca","Ë":"\xcb","Ì":"\xcc","Í":"\xcd","Î":"\xce","Ï":"\xcf","Ð":"\xd0","Ñ":"\xd1","Ò":"\xd2","Ó":"\xd3","Ô":"\xd4","Õ":"\xd5","Ö":"\xd6","Ø":"\xd8","Ù":"\xd9","Ú":"\xda","Û":"\xdb","Ü":"\xdc","Ý":"\xdd","Þ":"\xde","ß":"\xdf","à":"\xe0","á":"\xe1","â":"\xe2","ã":"\xe3","ä":"\xe4","å":"\xe5","æ":"\xe6","ç":"\xe7","è":"\xe8","é":"\xe9","ê":"\xea","ë":"\xeb","ì":"\xec","í":"\xed","î":"\xee","ï":"\xef","ð":"\xf0","ñ":"\xf1","ò":"\xf2","ó":"\xf3","ô":"\xf4","õ":"\xf5","ö":"\xf6","ø":"\xf8","ù":"\xf9","ú":"\xfa","û":"\xfb","ü":"\xfc","ý":"\xfd","þ":"\xfe","ÿ":"\xff","¡":"\xa1","¿":"\xbf","ƒ":"ƒ","ˆ":"ˆ","˜":"˜","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ª":"\xaa","º":"\xba","¯":"\xaf","´":"\xb4","¸":"\xb8","¹":"\xb9","²":"\xb2","³":"\xb3","¼":"\xbc","½":"\xbd","¾":"\xbe","♠":"♠","♣":"♣","♥":"♥","♦":"♦","◊":"◊","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","ℵ":"ℵ"},x=RegExp(Object.keys(b).map(e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")).join("|"),"g");var S=s(16574);let k={t:(e,t)=>{if(h(t))return t;if("object"==typeof t&&null!==t&&h(t.defaultValue))return t.defaultValue;if("function"==typeof e)return"";if(Array.isArray(e)){let t=e[e.length-1];return"function"==typeof t?"":t}return e},ready:!1},L=()=>()=>{},$=(e,t={})=>{let{i18n:s}=t,{i18n:a,defaultNS:o}=(0,r.useContext)(y)||{},l=s||a||i;l&&!l.reportNamespaces&&(l.reportNamespaces=new v),l||n(l,"NO_I18NEXT_INSTANCE","useTranslation: You will need to pass in an i18next instance by using initReactI18next");let c=(0,r.useMemo)(()=>({...f,...l?.options?.react,...t}),[l,t]),{useSuspense:g,keyPrefix:d}=c,m=e||o||l?.options?.defaultNS,b=h(m)?[m]:m||["translation"],x=(0,r.useMemo)(()=>b,b);l?.reportNamespaces?.addUsedNamespaces?.(x);let $=(0,r.useRef)(0),w=(0,r.useCallback)(e=>{if(!l)return L;let{bindI18n:t,bindI18nStore:s}=c,i=()=>{$.current+=1,e()};return t&&l.on(t,i),s&&l.store.on(s,i),()=>{t&&t.split(" ").forEach(e=>l.off(e,i)),s&&s.split(" ").forEach(e=>l.store.off(e,i))}},[l,c]),O=(0,r.useRef)(),R=(0,r.useCallback)(()=>{if(!l)return k;let e=!!(l.isInitialized||l.initializedStoreOnce)&&x.every(e=>((e,t,s={})=>t.languages&&t.languages.length?t.hasLoadedNamespace(e,{lng:s.lng,precheck:(t,i)=>{if(s.bindI18n&&s.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!i(t.isLanguageChangingTo,e))return!1}}):(n(t,"NO_LANGUAGES","i18n.languages were undefined or empty",{languages:t.languages}),!0))(e,l,c)),s=t.lng||l.language,i=$.current,r=O.current;if(r&&r.ready===e&&r.lng===s&&r.keyPrefix===d&&r.revision===i)return r;let a={t:l.getFixedT(s,"fallback"===c.nsMode?x:x[0],d,{scopeNs:x}),ready:e,lng:s,keyPrefix:d,revision:i};return O.current=a,a},[l,x,d,c,t.lng]),[N,C]=(0,r.useState)(0),{t:P,ready:j}=(0,S.useSyncExternalStore)(w,R,R);(0,r.useEffect)(()=>{if(l&&!j&&!g){let e=()=>C(e=>e+1);t.lng?p(l,t.lng,x,e):u(l,x,e)}},[l,t.lng,x,j,g,N]);let E=l||{},F=(0,r.useRef)(null),T=(0,r.useRef)(),A=e=>{let t=Object.getOwnPropertyDescriptors(e);t.__original&&delete t.__original;let s=Object.create(Object.getPrototypeOf(e),t);if(!Object.prototype.hasOwnProperty.call(s,"__original"))try{Object.defineProperty(s,"__original",{value:e,writable:!1,enumerable:!1,configurable:!1})}catch(e){}return s},I=(0,r.useMemo)(()=>{let e=E?.language,t=E;E&&(F.current&&F.current.__original===E?T.current!==e?(F.current=t=A(E),T.current=e):t=F.current:(F.current=t=A(E),T.current=e));let s=j||g?P:(...e)=>(n(l,"USE_T_BEFORE_READY","useTranslation: t was called before ready. When using useSuspense: false, make sure to check the ready flag before using t."),P(...e)),i=[s,t,j];return i.t=s,i.i18n=t,i.ready=j,i},[P,E,j,E.resolvedLanguage,E.language,E.languages]);if(l&&g&&!j)throw new Promise(e=>{let s=()=>e();t.lng?p(l,t.lng,x,s):u(l,x,s)});return I}},92597:(e,t,s)=>{"use strict";var i=s(7620),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=i.useState,o=i.useEffect,n=i.useLayoutEffect,l=i.useDebugValue;function u(e){var t=e.getSnapshot;e=e.value;try{var s=t();return!r(e,s)}catch(e){return!0}}var p="u"<typeof window||void 0===window.document||void 0===window.document.createElement?function(e,t){return t()}:function(e,t){var s=t(),i=a({inst:{value:s,getSnapshot:t}}),r=i[0].inst,p=i[1];return n(function(){r.value=s,r.getSnapshot=t,u(r)&&p({inst:r})},[e,s,t]),o(function(){return u(r)&&p({inst:r}),e(function(){u(r)&&p({inst:r})})},[e]),l(s),s};t.useSyncExternalStore=void 0!==i.useSyncExternalStore?i.useSyncExternalStore:p}}]);
|