@smoothdeploy/playwright-core 1.58.3 → 1.60.0-beta-1780662356000

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (380) hide show
  1. package/ThirdPartyNotices.txt +7 -4070
  2. package/browsers.json +16 -14
  3. package/cli.js +4 -1
  4. package/index.js +1 -1
  5. package/lib/bootstrap.js +77 -0
  6. package/lib/coreBundle.js +70057 -0
  7. package/lib/entry/cliDaemon.js +5 -0
  8. package/lib/entry/dashboardApp.js +3 -0
  9. package/lib/entry/mcp.js +10 -0
  10. package/lib/entry/oopBrowserDownload.js +3 -0
  11. package/lib/{server/deviceDescriptors.js → package.js} +18 -7
  12. package/lib/server/deviceDescriptorsSource.json +137 -137
  13. package/lib/server/electron/loader.js +99 -13
  14. package/lib/serverRegistry.js +7343 -0
  15. package/lib/serverRegistry.js.LICENSE +354 -0
  16. package/lib/tools/cli-client/channelSessions.js +141 -0
  17. package/lib/tools/cli-client/cli.js +6 -0
  18. package/lib/tools/cli-client/help.json +679 -0
  19. package/lib/tools/cli-client/minimist.js +128 -0
  20. package/lib/tools/cli-client/output.js +343 -0
  21. package/lib/tools/cli-client/program.js +380 -0
  22. package/lib/tools/cli-client/registry.js +176 -0
  23. package/lib/tools/cli-client/session.js +265 -0
  24. package/lib/tools/cli-client/skill/SKILL.md +388 -0
  25. package/lib/tools/cli-client/skill/references/element-attributes.md +23 -0
  26. package/lib/tools/cli-client/skill/references/playwright-tests.md +39 -0
  27. package/lib/tools/cli-client/skill/references/request-mocking.md +87 -0
  28. package/lib/tools/cli-client/skill/references/running-code.md +241 -0
  29. package/lib/tools/cli-client/skill/references/session-management.md +225 -0
  30. package/lib/tools/cli-client/skill/references/spec-driven-testing.md +305 -0
  31. package/lib/tools/cli-client/skill/references/storage-state.md +275 -0
  32. package/lib/tools/cli-client/skill/references/test-generation.md +134 -0
  33. package/lib/tools/cli-client/skill/references/tracing.md +139 -0
  34. package/lib/tools/cli-client/skill/references/video-recording.md +143 -0
  35. package/lib/tools/dashboard/appIcon.png +0 -0
  36. package/lib/tools/trace/SKILL.md +171 -0
  37. package/lib/{server/utils/profiler.js → tools/utils/extension.js} +42 -29
  38. package/lib/tools/utils/socketConnection.js +108 -0
  39. package/lib/utilsBundle.js +85377 -68
  40. package/lib/utilsBundle.js.LICENSE +2002 -0
  41. package/lib/vite/dashboard/assets/codicon-DCmgc-ay.ttf +0 -0
  42. package/lib/vite/dashboard/assets/firefox-1bWoP6pv.svg +1 -0
  43. package/lib/vite/dashboard/assets/firefox-beta-k3eOH_eK.svg +1 -0
  44. package/lib/vite/dashboard/assets/firefox-nightly-Cp5nfeDT.svg +1 -0
  45. package/lib/vite/dashboard/assets/index-BY2S1tHT.css +1 -0
  46. package/lib/vite/dashboard/assets/index-DpEq2p62.js +52 -0
  47. package/lib/vite/dashboard/assets/safari-na3_-uQk.svg +1 -0
  48. package/lib/vite/dashboard/index.html +29 -0
  49. package/lib/vite/dashboard/playwright-logo.svg +24 -0
  50. package/lib/vite/htmlReport/index.html +2 -70
  51. package/lib/vite/htmlReport/report.css +1 -0
  52. package/lib/vite/htmlReport/report.js +72 -0
  53. package/lib/vite/recorder/assets/{codeMirrorModule-SGmxtuwi.js → codeMirrorModule-DyIpd_mA.js} +20 -20
  54. package/lib/vite/recorder/assets/index-4ZiSSCmn.css +1 -0
  55. package/lib/vite/recorder/assets/index-5q9Mg4LR.js +195 -0
  56. package/lib/vite/recorder/index.html +2 -2
  57. package/lib/vite/traceViewer/assets/{codeMirrorModule-BOUrQdmH.js → codeMirrorModule-DZq9EItR.js} +20 -20
  58. package/lib/vite/traceViewer/assets/defaultSettingsView-D4EpQvB-.js +262 -0
  59. package/lib/vite/traceViewer/assets/urlMatch-BYQrIQwR.js +1 -0
  60. package/lib/vite/traceViewer/defaultSettingsView.BDKsFU3c.css +1 -0
  61. package/lib/vite/traceViewer/index.CcoKXsOB.js +2 -0
  62. package/lib/vite/traceViewer/{index.BVu7tZDe.css → index.CzXZzn5A.css} +1 -1
  63. package/lib/vite/traceViewer/index.html +5 -4
  64. package/lib/vite/traceViewer/snapshot.html +4 -15
  65. package/lib/vite/traceViewer/snapshot.v8KI4P3m.js +2 -0
  66. package/lib/vite/traceViewer/sw.bundle.js +4 -4
  67. package/lib/vite/traceViewer/uiMode.B1W9rAxj.js +6 -0
  68. package/lib/vite/traceViewer/uiMode.html +4 -3
  69. package/package.json +4 -14
  70. package/types/protocol.d.ts +1084 -343
  71. package/types/types.d.ts +6035 -4360
  72. package/lib/androidServerImpl.js +0 -65
  73. package/lib/browserServerImpl.js +0 -120
  74. package/lib/cli/driver.js +0 -97
  75. package/lib/cli/program.js +0 -589
  76. package/lib/cli/programWithTestStub.js +0 -74
  77. package/lib/client/android.js +0 -361
  78. package/lib/client/api.js +0 -137
  79. package/lib/client/artifact.js +0 -79
  80. package/lib/client/browser.js +0 -161
  81. package/lib/client/browserContext.js +0 -582
  82. package/lib/client/browserType.js +0 -185
  83. package/lib/client/cdpSession.js +0 -51
  84. package/lib/client/channelOwner.js +0 -195
  85. package/lib/client/clientHelper.js +0 -64
  86. package/lib/client/clientInstrumentation.js +0 -65
  87. package/lib/client/clientStackTrace.js +0 -69
  88. package/lib/client/clock.js +0 -68
  89. package/lib/client/connection.js +0 -318
  90. package/lib/client/consoleMessage.js +0 -58
  91. package/lib/client/coverage.js +0 -44
  92. package/lib/client/dialog.js +0 -56
  93. package/lib/client/download.js +0 -62
  94. package/lib/client/electron.js +0 -138
  95. package/lib/client/elementHandle.js +0 -284
  96. package/lib/client/errors.js +0 -77
  97. package/lib/client/eventEmitter.js +0 -314
  98. package/lib/client/events.js +0 -103
  99. package/lib/client/fetch.js +0 -368
  100. package/lib/client/fileChooser.js +0 -46
  101. package/lib/client/fileUtils.js +0 -34
  102. package/lib/client/frame.js +0 -409
  103. package/lib/client/harRouter.js +0 -87
  104. package/lib/client/input.js +0 -84
  105. package/lib/client/jsHandle.js +0 -109
  106. package/lib/client/jsonPipe.js +0 -39
  107. package/lib/client/localUtils.js +0 -60
  108. package/lib/client/locator.js +0 -369
  109. package/lib/client/network.js +0 -747
  110. package/lib/client/page.js +0 -745
  111. package/lib/client/pageAgent.js +0 -64
  112. package/lib/client/platform.js +0 -77
  113. package/lib/client/playwright.js +0 -71
  114. package/lib/client/selectors.js +0 -55
  115. package/lib/client/stream.js +0 -39
  116. package/lib/client/timeoutSettings.js +0 -79
  117. package/lib/client/tracing.js +0 -119
  118. package/lib/client/types.js +0 -28
  119. package/lib/client/video.js +0 -59
  120. package/lib/client/waiter.js +0 -142
  121. package/lib/client/webError.js +0 -39
  122. package/lib/client/webSocket.js +0 -93
  123. package/lib/client/worker.js +0 -85
  124. package/lib/client/writableStream.js +0 -39
  125. package/lib/generated/bindingsControllerSource.js +0 -28
  126. package/lib/generated/clockSource.js +0 -28
  127. package/lib/generated/injectedScriptSource.js +0 -28
  128. package/lib/generated/pollingRecorderSource.js +0 -28
  129. package/lib/generated/storageScriptSource.js +0 -28
  130. package/lib/generated/utilityScriptSource.js +0 -28
  131. package/lib/generated/webSocketMockSource.js +0 -336
  132. package/lib/inProcessFactory.js +0 -60
  133. package/lib/inprocess.js +0 -3
  134. package/lib/mcpBundle.js +0 -84
  135. package/lib/mcpBundleImpl/index.js +0 -147
  136. package/lib/outofprocess.js +0 -76
  137. package/lib/protocol/serializers.js +0 -197
  138. package/lib/protocol/validator.js +0 -3023
  139. package/lib/protocol/validatorPrimitives.js +0 -193
  140. package/lib/remote/playwrightConnection.js +0 -129
  141. package/lib/remote/playwrightServer.js +0 -334
  142. package/lib/server/agent/actionRunner.js +0 -335
  143. package/lib/server/agent/actions.js +0 -128
  144. package/lib/server/agent/codegen.js +0 -111
  145. package/lib/server/agent/context.js +0 -150
  146. package/lib/server/agent/expectTools.js +0 -156
  147. package/lib/server/agent/pageAgent.js +0 -204
  148. package/lib/server/agent/performTools.js +0 -262
  149. package/lib/server/agent/tool.js +0 -109
  150. package/lib/server/android/android.js +0 -465
  151. package/lib/server/android/backendAdb.js +0 -177
  152. package/lib/server/artifact.js +0 -127
  153. package/lib/server/bidi/bidiBrowser.js +0 -549
  154. package/lib/server/bidi/bidiChromium.js +0 -149
  155. package/lib/server/bidi/bidiConnection.js +0 -213
  156. package/lib/server/bidi/bidiDeserializer.js +0 -116
  157. package/lib/server/bidi/bidiExecutionContext.js +0 -267
  158. package/lib/server/bidi/bidiFirefox.js +0 -128
  159. package/lib/server/bidi/bidiInput.js +0 -146
  160. package/lib/server/bidi/bidiNetworkManager.js +0 -383
  161. package/lib/server/bidi/bidiOverCdp.js +0 -102
  162. package/lib/server/bidi/bidiPage.js +0 -583
  163. package/lib/server/bidi/bidiPdf.js +0 -106
  164. package/lib/server/bidi/third_party/bidiCommands.d.js +0 -22
  165. package/lib/server/bidi/third_party/bidiKeyboard.js +0 -256
  166. package/lib/server/bidi/third_party/bidiProtocol.js +0 -24
  167. package/lib/server/bidi/third_party/bidiProtocolCore.js +0 -180
  168. package/lib/server/bidi/third_party/bidiProtocolPermissions.js +0 -42
  169. package/lib/server/bidi/third_party/bidiSerializer.js +0 -148
  170. package/lib/server/bidi/third_party/firefoxPrefs.js +0 -259
  171. package/lib/server/browser.js +0 -149
  172. package/lib/server/browserContext.js +0 -700
  173. package/lib/server/browserType.js +0 -336
  174. package/lib/server/callLog.js +0 -82
  175. package/lib/server/chromium/chromium.js +0 -397
  176. package/lib/server/chromium/chromiumSwitches.js +0 -104
  177. package/lib/server/chromium/crBrowser.js +0 -520
  178. package/lib/server/chromium/crConnection.js +0 -197
  179. package/lib/server/chromium/crCoverage.js +0 -235
  180. package/lib/server/chromium/crDevTools.js +0 -111
  181. package/lib/server/chromium/crDragDrop.js +0 -131
  182. package/lib/server/chromium/crExecutionContext.js +0 -146
  183. package/lib/server/chromium/crInput.js +0 -187
  184. package/lib/server/chromium/crNetworkManager.js +0 -707
  185. package/lib/server/chromium/crPage.js +0 -1001
  186. package/lib/server/chromium/crPdf.js +0 -121
  187. package/lib/server/chromium/crProtocolHelper.js +0 -145
  188. package/lib/server/chromium/crServiceWorker.js +0 -136
  189. package/lib/server/chromium/defaultFontFamilies.js +0 -162
  190. package/lib/server/chromium/protocol.d.js +0 -16
  191. package/lib/server/clock.js +0 -149
  192. package/lib/server/codegen/csharp.js +0 -327
  193. package/lib/server/codegen/java.js +0 -274
  194. package/lib/server/codegen/javascript.js +0 -247
  195. package/lib/server/codegen/jsonl.js +0 -52
  196. package/lib/server/codegen/language.js +0 -133
  197. package/lib/server/codegen/languages.js +0 -68
  198. package/lib/server/codegen/python.js +0 -279
  199. package/lib/server/codegen/types.js +0 -16
  200. package/lib/server/console.js +0 -57
  201. package/lib/server/cookieStore.js +0 -206
  202. package/lib/server/debugController.js +0 -181
  203. package/lib/server/debugger.js +0 -119
  204. package/lib/server/dialog.js +0 -116
  205. package/lib/server/dispatchers/androidDispatcher.js +0 -325
  206. package/lib/server/dispatchers/artifactDispatcher.js +0 -118
  207. package/lib/server/dispatchers/browserContextDispatcher.js +0 -384
  208. package/lib/server/dispatchers/browserDispatcher.js +0 -118
  209. package/lib/server/dispatchers/browserTypeDispatcher.js +0 -64
  210. package/lib/server/dispatchers/cdpSessionDispatcher.js +0 -44
  211. package/lib/server/dispatchers/debugControllerDispatcher.js +0 -78
  212. package/lib/server/dispatchers/dialogDispatcher.js +0 -47
  213. package/lib/server/dispatchers/dispatcher.js +0 -364
  214. package/lib/server/dispatchers/electronDispatcher.js +0 -89
  215. package/lib/server/dispatchers/elementHandlerDispatcher.js +0 -181
  216. package/lib/server/dispatchers/frameDispatcher.js +0 -227
  217. package/lib/server/dispatchers/jsHandleDispatcher.js +0 -85
  218. package/lib/server/dispatchers/jsonPipeDispatcher.js +0 -58
  219. package/lib/server/dispatchers/localUtilsDispatcher.js +0 -149
  220. package/lib/server/dispatchers/networkDispatchers.js +0 -213
  221. package/lib/server/dispatchers/pageAgentDispatcher.js +0 -96
  222. package/lib/server/dispatchers/pageDispatcher.js +0 -393
  223. package/lib/server/dispatchers/playwrightDispatcher.js +0 -108
  224. package/lib/server/dispatchers/streamDispatcher.js +0 -67
  225. package/lib/server/dispatchers/tracingDispatcher.js +0 -68
  226. package/lib/server/dispatchers/webSocketRouteDispatcher.js +0 -165
  227. package/lib/server/dispatchers/writableStreamDispatcher.js +0 -79
  228. package/lib/server/dom.js +0 -815
  229. package/lib/server/download.js +0 -70
  230. package/lib/server/electron/electron.js +0 -273
  231. package/lib/server/errors.js +0 -69
  232. package/lib/server/fetch.js +0 -621
  233. package/lib/server/fileChooser.js +0 -43
  234. package/lib/server/fileUploadUtils.js +0 -84
  235. package/lib/server/firefox/ffBrowser.js +0 -418
  236. package/lib/server/firefox/ffConnection.js +0 -142
  237. package/lib/server/firefox/ffExecutionContext.js +0 -150
  238. package/lib/server/firefox/ffInput.js +0 -159
  239. package/lib/server/firefox/ffNetworkManager.js +0 -256
  240. package/lib/server/firefox/ffPage.js +0 -497
  241. package/lib/server/firefox/firefox.js +0 -114
  242. package/lib/server/firefox/protocol.d.js +0 -16
  243. package/lib/server/formData.js +0 -147
  244. package/lib/server/frameSelectors.js +0 -160
  245. package/lib/server/frames.js +0 -1471
  246. package/lib/server/har/harRecorder.js +0 -147
  247. package/lib/server/har/harTracer.js +0 -607
  248. package/lib/server/harBackend.js +0 -157
  249. package/lib/server/helper.js +0 -96
  250. package/lib/server/index.js +0 -58
  251. package/lib/server/input.js +0 -277
  252. package/lib/server/instrumentation.js +0 -72
  253. package/lib/server/javascript.js +0 -291
  254. package/lib/server/launchApp.js +0 -128
  255. package/lib/server/localUtils.js +0 -214
  256. package/lib/server/macEditingCommands.js +0 -143
  257. package/lib/server/network.js +0 -667
  258. package/lib/server/page.js +0 -830
  259. package/lib/server/pipeTransport.js +0 -89
  260. package/lib/server/playwright.js +0 -69
  261. package/lib/server/progress.js +0 -132
  262. package/lib/server/protocolError.js +0 -52
  263. package/lib/server/recorder/chat.js +0 -161
  264. package/lib/server/recorder/recorderApp.js +0 -366
  265. package/lib/server/recorder/recorderRunner.js +0 -138
  266. package/lib/server/recorder/recorderSignalProcessor.js +0 -83
  267. package/lib/server/recorder/recorderUtils.js +0 -157
  268. package/lib/server/recorder/throttledFile.js +0 -57
  269. package/lib/server/recorder.js +0 -554
  270. package/lib/server/registry/browserFetcher.js +0 -177
  271. package/lib/server/registry/dependencies.js +0 -371
  272. package/lib/server/registry/index.js +0 -1422
  273. package/lib/server/registry/nativeDeps.js +0 -1280
  274. package/lib/server/registry/oopDownloadBrowserMain.js +0 -127
  275. package/lib/server/screencast.js +0 -190
  276. package/lib/server/screenshotCompositor.js +0 -153
  277. package/lib/server/screenshotter.js +0 -333
  278. package/lib/server/selectors.js +0 -112
  279. package/lib/server/socksClientCertificatesInterceptor.js +0 -383
  280. package/lib/server/socksInterceptor.js +0 -95
  281. package/lib/server/trace/recorder/snapshotter.js +0 -147
  282. package/lib/server/trace/recorder/snapshotterInjected.js +0 -561
  283. package/lib/server/trace/recorder/tracing.js +0 -604
  284. package/lib/server/trace/viewer/traceParser.js +0 -72
  285. package/lib/server/trace/viewer/traceViewer.js +0 -245
  286. package/lib/server/transport.js +0 -181
  287. package/lib/server/types.js +0 -28
  288. package/lib/server/usKeyboardLayout.js +0 -145
  289. package/lib/server/utils/ascii.js +0 -44
  290. package/lib/server/utils/comparators.js +0 -139
  291. package/lib/server/utils/crypto.js +0 -216
  292. package/lib/server/utils/debug.js +0 -42
  293. package/lib/server/utils/debugLogger.js +0 -122
  294. package/lib/server/utils/env.js +0 -73
  295. package/lib/server/utils/eventsHelper.js +0 -39
  296. package/lib/server/utils/expectUtils.js +0 -123
  297. package/lib/server/utils/fileUtils.js +0 -191
  298. package/lib/server/utils/happyEyeballs.js +0 -207
  299. package/lib/server/utils/hostPlatform.js +0 -138
  300. package/lib/server/utils/httpServer.js +0 -203
  301. package/lib/server/utils/imageUtils.js +0 -141
  302. package/lib/server/utils/image_tools/colorUtils.js +0 -89
  303. package/lib/server/utils/image_tools/compare.js +0 -109
  304. package/lib/server/utils/image_tools/imageChannel.js +0 -78
  305. package/lib/server/utils/image_tools/stats.js +0 -102
  306. package/lib/server/utils/linuxUtils.js +0 -71
  307. package/lib/server/utils/network.js +0 -242
  308. package/lib/server/utils/nodePlatform.js +0 -154
  309. package/lib/server/utils/pipeTransport.js +0 -84
  310. package/lib/server/utils/processLauncher.js +0 -241
  311. package/lib/server/utils/socksProxy.js +0 -511
  312. package/lib/server/utils/spawnAsync.js +0 -41
  313. package/lib/server/utils/task.js +0 -51
  314. package/lib/server/utils/userAgent.js +0 -98
  315. package/lib/server/utils/wsServer.js +0 -121
  316. package/lib/server/utils/zipFile.js +0 -74
  317. package/lib/server/utils/zones.js +0 -57
  318. package/lib/server/videoRecorder.js +0 -124
  319. package/lib/server/webkit/protocol.d.js +0 -16
  320. package/lib/server/webkit/webkit.js +0 -108
  321. package/lib/server/webkit/wkBrowser.js +0 -335
  322. package/lib/server/webkit/wkConnection.js +0 -144
  323. package/lib/server/webkit/wkExecutionContext.js +0 -154
  324. package/lib/server/webkit/wkInput.js +0 -181
  325. package/lib/server/webkit/wkInterceptableRequest.js +0 -197
  326. package/lib/server/webkit/wkPage.js +0 -1159
  327. package/lib/server/webkit/wkProvisionalPage.js +0 -83
  328. package/lib/server/webkit/wkWorkers.js +0 -105
  329. package/lib/third_party/pixelmatch.js +0 -255
  330. package/lib/utils/isomorphic/ariaSnapshot.js +0 -455
  331. package/lib/utils/isomorphic/assert.js +0 -31
  332. package/lib/utils/isomorphic/colors.js +0 -72
  333. package/lib/utils/isomorphic/cssParser.js +0 -245
  334. package/lib/utils/isomorphic/cssTokenizer.js +0 -1051
  335. package/lib/utils/isomorphic/headers.js +0 -53
  336. package/lib/utils/isomorphic/locatorGenerators.js +0 -689
  337. package/lib/utils/isomorphic/locatorParser.js +0 -176
  338. package/lib/utils/isomorphic/locatorUtils.js +0 -81
  339. package/lib/utils/isomorphic/lruCache.js +0 -51
  340. package/lib/utils/isomorphic/manualPromise.js +0 -114
  341. package/lib/utils/isomorphic/mimeType.js +0 -459
  342. package/lib/utils/isomorphic/multimap.js +0 -80
  343. package/lib/utils/isomorphic/protocolFormatter.js +0 -81
  344. package/lib/utils/isomorphic/protocolMetainfo.js +0 -330
  345. package/lib/utils/isomorphic/rtti.js +0 -43
  346. package/lib/utils/isomorphic/selectorParser.js +0 -386
  347. package/lib/utils/isomorphic/semaphore.js +0 -54
  348. package/lib/utils/isomorphic/stackTrace.js +0 -158
  349. package/lib/utils/isomorphic/stringUtils.js +0 -204
  350. package/lib/utils/isomorphic/time.js +0 -49
  351. package/lib/utils/isomorphic/timeoutRunner.js +0 -66
  352. package/lib/utils/isomorphic/trace/entries.js +0 -16
  353. package/lib/utils/isomorphic/trace/snapshotRenderer.js +0 -499
  354. package/lib/utils/isomorphic/trace/snapshotServer.js +0 -120
  355. package/lib/utils/isomorphic/trace/snapshotStorage.js +0 -89
  356. package/lib/utils/isomorphic/trace/traceLoader.js +0 -131
  357. package/lib/utils/isomorphic/trace/traceModel.js +0 -365
  358. package/lib/utils/isomorphic/trace/traceModernizer.js +0 -400
  359. package/lib/utils/isomorphic/trace/versions/traceV3.js +0 -16
  360. package/lib/utils/isomorphic/trace/versions/traceV4.js +0 -16
  361. package/lib/utils/isomorphic/trace/versions/traceV5.js +0 -16
  362. package/lib/utils/isomorphic/trace/versions/traceV6.js +0 -16
  363. package/lib/utils/isomorphic/trace/versions/traceV7.js +0 -16
  364. package/lib/utils/isomorphic/trace/versions/traceV8.js +0 -16
  365. package/lib/utils/isomorphic/traceUtils.js +0 -58
  366. package/lib/utils/isomorphic/types.js +0 -16
  367. package/lib/utils/isomorphic/urlMatch.js +0 -190
  368. package/lib/utils/isomorphic/utilityScriptSerializers.js +0 -251
  369. package/lib/utils/isomorphic/yaml.js +0 -84
  370. package/lib/utils.js +0 -111
  371. package/lib/utilsBundleImpl/index.js +0 -218
  372. package/lib/vite/recorder/assets/index-BSjZa4pk.css +0 -1
  373. package/lib/vite/recorder/assets/index-xK8wYVpV.js +0 -195
  374. package/lib/vite/traceViewer/assets/defaultSettingsView-k0nPICvc.js +0 -266
  375. package/lib/vite/traceViewer/defaultSettingsView.7ch9cixO.css +0 -1
  376. package/lib/vite/traceViewer/index.DDDCQ_xS.js +0 -2
  377. package/lib/vite/traceViewer/uiMode.C7uDu3VD.js +0 -5
  378. package/lib/zipBundle.js +0 -34
  379. package/lib/zipBundleImpl.js +0 -5
  380. /package/lib/{utilsBundleImpl/xdg-open → xdg-open} +0 -0
@@ -0,0 +1,195 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/codeMirrorModule-DyIpd_mA.js","assets/codeMirrorModule-DYBRYzYX.css"])))=>i.map(i=>d[i]);
2
+ (function(){const l=document.createElement("link").relList;if(l&&l.supports&&l.supports("modulepreload"))return;for(const c of document.querySelectorAll('link[rel="modulepreload"]'))s(c);new MutationObserver(c=>{for(const o of c)if(o.type==="childList")for(const h of o.addedNodes)h.tagName==="LINK"&&h.rel==="modulepreload"&&s(h)}).observe(document,{childList:!0,subtree:!0});function a(c){const o={};return c.integrity&&(o.integrity=c.integrity),c.referrerPolicy&&(o.referrerPolicy=c.referrerPolicy),c.crossOrigin==="use-credentials"?o.credentials="include":c.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(c){if(c.ep)return;c.ep=!0;const o=a(c);fetch(c.href,o)}})();function b1(u){return u&&u.__esModule&&Object.prototype.hasOwnProperty.call(u,"default")?u.default:u}var af={exports:{}},Oa={};/**
3
+ * @license React
4
+ * react-jsx-runtime.production.js
5
+ *
6
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
7
+ *
8
+ * This source code is licensed under the MIT license found in the
9
+ * LICENSE file in the root directory of this source tree.
10
+ */var Wm;function S1(){if(Wm)return Oa;Wm=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.fragment");function a(s,c,o){var h=null;if(o!==void 0&&(h=""+o),c.key!==void 0&&(h=""+c.key),"key"in c){o={};for(var m in c)m!=="key"&&(o[m]=c[m])}else o=c;return c=o.ref,{$$typeof:u,type:s,key:h,ref:c!==void 0?c:null,props:o}}return Oa.Fragment=l,Oa.jsx=a,Oa.jsxs=a,Oa}var Fm;function T1(){return Fm||(Fm=1,af.exports=S1()),af.exports}var X=T1(),sf={exports:{}},se={};/**
11
+ * @license React
12
+ * react.production.js
13
+ *
14
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
15
+ *
16
+ * This source code is licensed under the MIT license found in the
17
+ * LICENSE file in the root directory of this source tree.
18
+ */var Im;function E1(){if(Im)return se;Im=1;var u=Symbol.for("react.transitional.element"),l=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),c=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),h=Symbol.for("react.context"),m=Symbol.for("react.forward_ref"),g=Symbol.for("react.suspense"),p=Symbol.for("react.memo"),T=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),_=Symbol.iterator;function E(w){return w===null||typeof w!="object"?null:(w=_&&w[_]||w["@@iterator"],typeof w=="function"?w:null)}var x={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,A={};function M(w,Y,F){this.props=w,this.context=Y,this.refs=A,this.updater=F||x}M.prototype.isReactComponent={},M.prototype.setState=function(w,Y){if(typeof w!="object"&&typeof w!="function"&&w!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,w,Y,"setState")},M.prototype.forceUpdate=function(w){this.updater.enqueueForceUpdate(this,w,"forceUpdate")};function U(){}U.prototype=M.prototype;function K(w,Y,F){this.props=w,this.context=Y,this.refs=A,this.updater=F||x}var Q=K.prototype=new U;Q.constructor=K,b(Q,M.prototype),Q.isPureReactComponent=!0;var W=Array.isArray;function I(){}var q={H:null,A:null,T:null,S:null},V=Object.prototype.hasOwnProperty;function L(w,Y,F){var ee=F.ref;return{$$typeof:u,type:w,key:Y,ref:ee!==void 0?ee:null,props:F}}function ie(w,Y){return L(w.type,Y,w.props)}function ae(w){return typeof w=="object"&&w!==null&&w.$$typeof===u}function $(w){var Y={"=":"=0",":":"=2"};return"$"+w.replace(/[=:]/g,function(F){return Y[F]})}var J=/\/+/g;function _e(w,Y){return typeof w=="object"&&w!==null&&w.key!=null?$(""+w.key):Y.toString(36)}function et(w){switch(w.status){case"fulfilled":return w.value;case"rejected":throw w.reason;default:switch(typeof w.status=="string"?w.then(I,I):(w.status="pending",w.then(function(Y){w.status==="pending"&&(w.status="fulfilled",w.value=Y)},function(Y){w.status==="pending"&&(w.status="rejected",w.reason=Y)})),w.status){case"fulfilled":return w.value;case"rejected":throw w.reason}}throw w}function R(w,Y,F,ee,ce){var he=typeof w;(he==="undefined"||he==="boolean")&&(w=null);var Ae=!1;if(w===null)Ae=!0;else switch(he){case"bigint":case"string":case"number":Ae=!0;break;case"object":switch(w.$$typeof){case u:case l:Ae=!0;break;case T:return Ae=w._init,R(Ae(w._payload),Y,F,ee,ce)}}if(Ae)return ce=ce(w),Ae=ee===""?"."+_e(w,0):ee,W(ce)?(F="",Ae!=null&&(F=Ae.replace(J,"$&/")+"/"),R(ce,Y,F,"",function(Di){return Di})):ce!=null&&(ae(ce)&&(ce=ie(ce,F+(ce.key==null||w&&w.key===ce.key?"":(""+ce.key).replace(J,"$&/")+"/")+Ae)),Y.push(ce)),1;Ae=0;var rt=ee===""?".":ee+":";if(W(w))for(var He=0;He<w.length;He++)ee=w[He],he=rt+_e(ee,He),Ae+=R(ee,Y,F,he,ce);else if(He=E(w),typeof He=="function")for(w=He.call(w),He=0;!(ee=w.next()).done;)ee=ee.value,he=rt+_e(ee,He++),Ae+=R(ee,Y,F,he,ce);else if(he==="object"){if(typeof w.then=="function")return R(et(w),Y,F,ee,ce);throw Y=String(w),Error("Objects are not valid as a React child (found: "+(Y==="[object Object]"?"object with keys {"+Object.keys(w).join(", ")+"}":Y)+"). If you meant to render a collection of children, use an array instead.")}return Ae}function G(w,Y,F){if(w==null)return w;var ee=[],ce=0;return R(w,ee,"","",function(he){return Y.call(F,he,ce++)}),ee}function Z(w){if(w._status===-1){var Y=w._result;Y=Y(),Y.then(function(F){(w._status===0||w._status===-1)&&(w._status=1,w._result=F)},function(F){(w._status===0||w._status===-1)&&(w._status=2,w._result=F)}),w._status===-1&&(w._status=0,w._result=Y)}if(w._status===1)return w._result.default;throw w._result}var ge=typeof reportError=="function"?reportError:function(w){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var Y=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof w=="object"&&w!==null&&typeof w.message=="string"?String(w.message):String(w),error:w});if(!window.dispatchEvent(Y))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",w);return}console.error(w)},be={map:G,forEach:function(w,Y,F){G(w,function(){Y.apply(this,arguments)},F)},count:function(w){var Y=0;return G(w,function(){Y++}),Y},toArray:function(w){return G(w,function(Y){return Y})||[]},only:function(w){if(!ae(w))throw Error("React.Children.only expected to receive a single React element child.");return w}};return se.Activity=v,se.Children=be,se.Component=M,se.Fragment=a,se.Profiler=c,se.PureComponent=K,se.StrictMode=s,se.Suspense=g,se.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=q,se.__COMPILER_RUNTIME={__proto__:null,c:function(w){return q.H.useMemoCache(w)}},se.cache=function(w){return function(){return w.apply(null,arguments)}},se.cacheSignal=function(){return null},se.cloneElement=function(w,Y,F){if(w==null)throw Error("The argument must be a React element, but you passed "+w+".");var ee=b({},w.props),ce=w.key;if(Y!=null)for(he in Y.key!==void 0&&(ce=""+Y.key),Y)!V.call(Y,he)||he==="key"||he==="__self"||he==="__source"||he==="ref"&&Y.ref===void 0||(ee[he]=Y[he]);var he=arguments.length-2;if(he===1)ee.children=F;else if(1<he){for(var Ae=Array(he),rt=0;rt<he;rt++)Ae[rt]=arguments[rt+2];ee.children=Ae}return L(w.type,ce,ee)},se.createContext=function(w){return w={$$typeof:h,_currentValue:w,_currentValue2:w,_threadCount:0,Provider:null,Consumer:null},w.Provider=w,w.Consumer={$$typeof:o,_context:w},w},se.createElement=function(w,Y,F){var ee,ce={},he=null;if(Y!=null)for(ee in Y.key!==void 0&&(he=""+Y.key),Y)V.call(Y,ee)&&ee!=="key"&&ee!=="__self"&&ee!=="__source"&&(ce[ee]=Y[ee]);var Ae=arguments.length-2;if(Ae===1)ce.children=F;else if(1<Ae){for(var rt=Array(Ae),He=0;He<Ae;He++)rt[He]=arguments[He+2];ce.children=rt}if(w&&w.defaultProps)for(ee in Ae=w.defaultProps,Ae)ce[ee]===void 0&&(ce[ee]=Ae[ee]);return L(w,he,ce)},se.createRef=function(){return{current:null}},se.forwardRef=function(w){return{$$typeof:m,render:w}},se.isValidElement=ae,se.lazy=function(w){return{$$typeof:T,_payload:{_status:-1,_result:w},_init:Z}},se.memo=function(w,Y){return{$$typeof:p,type:w,compare:Y===void 0?null:Y}},se.startTransition=function(w){var Y=q.T,F={};q.T=F;try{var ee=w(),ce=q.S;ce!==null&&ce(F,ee),typeof ee=="object"&&ee!==null&&typeof ee.then=="function"&&ee.then(I,ge)}catch(he){ge(he)}finally{Y!==null&&F.types!==null&&(Y.types=F.types),q.T=Y}},se.unstable_useCacheRefresh=function(){return q.H.useCacheRefresh()},se.use=function(w){return q.H.use(w)},se.useActionState=function(w,Y,F){return q.H.useActionState(w,Y,F)},se.useCallback=function(w,Y){return q.H.useCallback(w,Y)},se.useContext=function(w){return q.H.useContext(w)},se.useDebugValue=function(){},se.useDeferredValue=function(w,Y){return q.H.useDeferredValue(w,Y)},se.useEffect=function(w,Y){return q.H.useEffect(w,Y)},se.useEffectEvent=function(w){return q.H.useEffectEvent(w)},se.useId=function(){return q.H.useId()},se.useImperativeHandle=function(w,Y,F){return q.H.useImperativeHandle(w,Y,F)},se.useInsertionEffect=function(w,Y){return q.H.useInsertionEffect(w,Y)},se.useLayoutEffect=function(w,Y){return q.H.useLayoutEffect(w,Y)},se.useMemo=function(w,Y){return q.H.useMemo(w,Y)},se.useOptimistic=function(w,Y){return q.H.useOptimistic(w,Y)},se.useReducer=function(w,Y,F){return q.H.useReducer(w,Y,F)},se.useRef=function(w){return q.H.useRef(w)},se.useState=function(w){return q.H.useState(w)},se.useSyncExternalStore=function(w,Y,F){return q.H.useSyncExternalStore(w,Y,F)},se.useTransition=function(){return q.H.useTransition()},se.version="19.2.1",se}var Pm;function xf(){return Pm||(Pm=1,sf.exports=E1()),sf.exports}var oe=xf();const wn=b1(oe);function Mg(){const u=wn.useRef(null),[l]=Sf(u);return[l,u]}function Sf(u){const[l,a]=wn.useState(new DOMRect(0,0,10,10)),s=wn.useCallback(()=>{const c=u==null?void 0:u.current;c&&a(c.getBoundingClientRect())},[u]);return wn.useLayoutEffect(()=>{const c=u==null?void 0:u.current;if(!c)return;s();const o=new ResizeObserver(s);return o.observe(c),window.addEventListener("resize",s),()=>{o.disconnect(),window.removeEventListener("resize",s)}},[s,u]),[l,s]}function eg(u){const l=document.createElement("textarea");l.style.position="absolute",l.style.zIndex="-1000",l.value=u,document.body.appendChild(l),l.select(),document.execCommand("copy"),l.remove()}function yu(u,l){u&&(l=Sl.getObject(u,l));const[a,s]=wn.useState(l),c=wn.useCallback(o=>{u?Sl.setObject(u,o):s(o)},[u,s]);return wn.useEffect(()=>{if(u){const o=()=>s(Sl.getObject(u,l));return Sl.onChangeEmitter.addEventListener(u,o),()=>Sl.onChangeEmitter.removeEventListener(u,o)}},[l,u]),[a,c]}class A1{constructor(){this.onChangeEmitter=new EventTarget}getString(l,a){return localStorage[l]||a}setString(l,a){var s;localStorage[l]=a,this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}getObject(l,a){if(!localStorage[l])return a;try{return JSON.parse(localStorage[l])}catch{return a}}setObject(l,a){var s;localStorage[l]=JSON.stringify(a),this.onChangeEmitter.dispatchEvent(new Event(l)),(s=window.saveSettings)==null||s.call(window)}}const Sl=new A1;function wl(...u){return u.filter(Boolean).join(" ")}const tg="\\u0000-\\u0020\\u007f-\\u009f",w1=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+tg+'"]{2,}[^\\s'+tg+`"')}\\],:;.!?]`,"ug"),O1="system",Cg="theme",_1=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],zg=window.matchMedia("(prefers-color-scheme: dark)");function N1(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",u=>{u.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",u=>{document.body.classList.add("inactive")},!1),Tf(Ef()),zg.addEventListener("change",()=>{Tf(Ef())}))}const M1=new Set;function Tf(u){const l=C1(),a=u==="system"?zg.matches?"dark-mode":"light-mode":u;if(l!==a){l&&document.documentElement.classList.remove(l),document.documentElement.classList.add(a);for(const s of M1)s(a)}}function Ef(){return Sl.getString(Cg,O1)}function C1(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function z1(){const[u,l]=wn.useState(Ef());return wn.useEffect(()=>{Sl.setString(Cg,u),Tf(u)},[u]),[u,l]}var uf={exports:{}},_a={},cf={exports:{}},rf={};/**
19
+ * @license React
20
+ * scheduler.production.js
21
+ *
22
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
23
+ *
24
+ * This source code is licensed under the MIT license found in the
25
+ * LICENSE file in the root directory of this source tree.
26
+ */var ng;function x1(){return ng||(ng=1,(function(u){function l(R,G){var Z=R.length;R.push(G);e:for(;0<Z;){var ge=Z-1>>>1,be=R[ge];if(0<c(be,G))R[ge]=G,R[Z]=be,Z=ge;else break e}}function a(R){return R.length===0?null:R[0]}function s(R){if(R.length===0)return null;var G=R[0],Z=R.pop();if(Z!==G){R[0]=Z;e:for(var ge=0,be=R.length,w=be>>>1;ge<w;){var Y=2*(ge+1)-1,F=R[Y],ee=Y+1,ce=R[ee];if(0>c(F,Z))ee<be&&0>c(ce,F)?(R[ge]=ce,R[ee]=Z,ge=ee):(R[ge]=F,R[Y]=Z,ge=Y);else if(ee<be&&0>c(ce,Z))R[ge]=ce,R[ee]=Z,ge=ee;else break e}}return G}function c(R,G){var Z=R.sortIndex-G.sortIndex;return Z!==0?Z:R.id-G.id}if(u.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var o=performance;u.unstable_now=function(){return o.now()}}else{var h=Date,m=h.now();u.unstable_now=function(){return h.now()-m}}var g=[],p=[],T=1,v=null,_=3,E=!1,x=!1,b=!1,A=!1,M=typeof setTimeout=="function"?setTimeout:null,U=typeof clearTimeout=="function"?clearTimeout:null,K=typeof setImmediate<"u"?setImmediate:null;function Q(R){for(var G=a(p);G!==null;){if(G.callback===null)s(p);else if(G.startTime<=R)s(p),G.sortIndex=G.expirationTime,l(g,G);else break;G=a(p)}}function W(R){if(b=!1,Q(R),!x)if(a(g)!==null)x=!0,I||(I=!0,$());else{var G=a(p);G!==null&&et(W,G.startTime-R)}}var I=!1,q=-1,V=5,L=-1;function ie(){return A?!0:!(u.unstable_now()-L<V)}function ae(){if(A=!1,I){var R=u.unstable_now();L=R;var G=!0;try{e:{x=!1,b&&(b=!1,U(q),q=-1),E=!0;var Z=_;try{t:{for(Q(R),v=a(g);v!==null&&!(v.expirationTime>R&&ie());){var ge=v.callback;if(typeof ge=="function"){v.callback=null,_=v.priorityLevel;var be=ge(v.expirationTime<=R);if(R=u.unstable_now(),typeof be=="function"){v.callback=be,Q(R),G=!0;break t}v===a(g)&&s(g),Q(R)}else s(g);v=a(g)}if(v!==null)G=!0;else{var w=a(p);w!==null&&et(W,w.startTime-R),G=!1}}break e}finally{v=null,_=Z,E=!1}G=void 0}}finally{G?$():I=!1}}}var $;if(typeof K=="function")$=function(){K(ae)};else if(typeof MessageChannel<"u"){var J=new MessageChannel,_e=J.port2;J.port1.onmessage=ae,$=function(){_e.postMessage(null)}}else $=function(){M(ae,0)};function et(R,G){q=M(function(){R(u.unstable_now())},G)}u.unstable_IdlePriority=5,u.unstable_ImmediatePriority=1,u.unstable_LowPriority=4,u.unstable_NormalPriority=3,u.unstable_Profiling=null,u.unstable_UserBlockingPriority=2,u.unstable_cancelCallback=function(R){R.callback=null},u.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):V=0<R?Math.floor(1e3/R):5},u.unstable_getCurrentPriorityLevel=function(){return _},u.unstable_next=function(R){switch(_){case 1:case 2:case 3:var G=3;break;default:G=_}var Z=_;_=G;try{return R()}finally{_=Z}},u.unstable_requestPaint=function(){A=!0},u.unstable_runWithPriority=function(R,G){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var Z=_;_=R;try{return G()}finally{_=Z}},u.unstable_scheduleCallback=function(R,G,Z){var ge=u.unstable_now();switch(typeof Z=="object"&&Z!==null?(Z=Z.delay,Z=typeof Z=="number"&&0<Z?ge+Z:ge):Z=ge,R){case 1:var be=-1;break;case 2:be=250;break;case 5:be=1073741823;break;case 4:be=1e4;break;default:be=5e3}return be=Z+be,R={id:T++,callback:G,priorityLevel:R,startTime:Z,expirationTime:be,sortIndex:-1},Z>ge?(R.sortIndex=Z,l(p,R),a(g)===null&&R===a(p)&&(b?(U(q),q=-1):b=!0,et(W,Z-ge))):(R.sortIndex=be,l(g,R),x||E||(x=!0,I||(I=!0,$()))),R},u.unstable_shouldYield=ie,u.unstable_wrapCallback=function(R){var G=_;return function(){var Z=_;_=G;try{return R.apply(this,arguments)}finally{_=Z}}}})(rf)),rf}var lg;function D1(){return lg||(lg=1,cf.exports=x1()),cf.exports}var ff={exports:{}},st={};/**
27
+ * @license React
28
+ * react-dom.production.js
29
+ *
30
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */var ig;function L1(){if(ig)return st;ig=1;var u=xf();function l(g){var p="https://react.dev/errors/"+g;if(1<arguments.length){p+="?args[]="+encodeURIComponent(arguments[1]);for(var T=2;T<arguments.length;T++)p+="&args[]="+encodeURIComponent(arguments[T])}return"Minified React error #"+g+"; visit "+p+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var s={d:{f:a,r:function(){throw Error(l(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},c=Symbol.for("react.portal");function o(g,p,T){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c,key:v==null?null:""+v,children:g,containerInfo:p,implementation:T}}var h=u.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function m(g,p){if(g==="font")return"";if(typeof p=="string")return p==="use-credentials"?p:""}return st.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,st.createPortal=function(g,p){var T=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!p||p.nodeType!==1&&p.nodeType!==9&&p.nodeType!==11)throw Error(l(299));return o(g,p,null,T)},st.flushSync=function(g){var p=h.T,T=s.p;try{if(h.T=null,s.p=2,g)return g()}finally{h.T=p,s.p=T,s.d.f()}},st.preconnect=function(g,p){typeof g=="string"&&(p?(p=p.crossOrigin,p=typeof p=="string"?p==="use-credentials"?p:"":void 0):p=null,s.d.C(g,p))},st.prefetchDNS=function(g){typeof g=="string"&&s.d.D(g)},st.preinit=function(g,p){if(typeof g=="string"&&p&&typeof p.as=="string"){var T=p.as,v=m(T,p.crossOrigin),_=typeof p.integrity=="string"?p.integrity:void 0,E=typeof p.fetchPriority=="string"?p.fetchPriority:void 0;T==="style"?s.d.S(g,typeof p.precedence=="string"?p.precedence:void 0,{crossOrigin:v,integrity:_,fetchPriority:E}):T==="script"&&s.d.X(g,{crossOrigin:v,integrity:_,fetchPriority:E,nonce:typeof p.nonce=="string"?p.nonce:void 0})}},st.preinitModule=function(g,p){if(typeof g=="string")if(typeof p=="object"&&p!==null){if(p.as==null||p.as==="script"){var T=m(p.as,p.crossOrigin);s.d.M(g,{crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0})}}else p==null&&s.d.M(g)},st.preload=function(g,p){if(typeof g=="string"&&typeof p=="object"&&p!==null&&typeof p.as=="string"){var T=p.as,v=m(T,p.crossOrigin);s.d.L(g,T,{crossOrigin:v,integrity:typeof p.integrity=="string"?p.integrity:void 0,nonce:typeof p.nonce=="string"?p.nonce:void 0,type:typeof p.type=="string"?p.type:void 0,fetchPriority:typeof p.fetchPriority=="string"?p.fetchPriority:void 0,referrerPolicy:typeof p.referrerPolicy=="string"?p.referrerPolicy:void 0,imageSrcSet:typeof p.imageSrcSet=="string"?p.imageSrcSet:void 0,imageSizes:typeof p.imageSizes=="string"?p.imageSizes:void 0,media:typeof p.media=="string"?p.media:void 0})}},st.preloadModule=function(g,p){if(typeof g=="string")if(p){var T=m(p.as,p.crossOrigin);s.d.m(g,{as:typeof p.as=="string"&&p.as!=="script"?p.as:void 0,crossOrigin:T,integrity:typeof p.integrity=="string"?p.integrity:void 0})}else s.d.m(g)},st.requestFormReset=function(g){s.d.r(g)},st.unstable_batchedUpdates=function(g,p){return g(p)},st.useFormState=function(g,p,T){return h.H.useFormState(g,p,T)},st.useFormStatus=function(){return h.H.useHostTransitionStatus()},st.version="19.2.1",st}var ag;function U1(){if(ag)return ff.exports;ag=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),ff.exports=L1(),ff.exports}/**
35
+ * @license React
36
+ * react-dom-client.production.js
37
+ *
38
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
39
+ *
40
+ * This source code is licensed under the MIT license found in the
41
+ * LICENSE file in the root directory of this source tree.
42
+ */var sg;function j1(){if(sg)return _a;sg=1;var u=D1(),l=xf(),a=U1();function s(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function h(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function m(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function g(e){if(o(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(s(188));return t!==e?null:e}for(var n=e,i=t;;){var r=n.return;if(r===null)break;var f=r.alternate;if(f===null){if(i=r.return,i!==null){n=i;continue}break}if(r.child===f.child){for(f=r.child;f;){if(f===n)return g(r),e;if(f===i)return g(r),t;f=f.sibling}throw Error(s(188))}if(n.return!==i.return)n=r,i=f;else{for(var d=!1,y=r.child;y;){if(y===n){d=!0,n=r,i=f;break}if(y===i){d=!0,i=r,n=f;break}y=y.sibling}if(!d){for(y=f.child;y;){if(y===n){d=!0,n=f,i=r;break}if(y===i){d=!0,i=f,n=r;break}y=y.sibling}if(!d)throw Error(s(189))}}if(n.alternate!==i)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function T(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=T(e),t!==null)return t;e=e.sibling}return null}var v=Object.assign,_=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),x=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),A=Symbol.for("react.strict_mode"),M=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),K=Symbol.for("react.context"),Q=Symbol.for("react.forward_ref"),W=Symbol.for("react.suspense"),I=Symbol.for("react.suspense_list"),q=Symbol.for("react.memo"),V=Symbol.for("react.lazy"),L=Symbol.for("react.activity"),ie=Symbol.for("react.memo_cache_sentinel"),ae=Symbol.iterator;function $(e){return e===null||typeof e!="object"?null:(e=ae&&e[ae]||e["@@iterator"],typeof e=="function"?e:null)}var J=Symbol.for("react.client.reference");function _e(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===J?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case b:return"Fragment";case M:return"Profiler";case A:return"StrictMode";case W:return"Suspense";case I:return"SuspenseList";case L:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case x:return"Portal";case K:return e.displayName||"Context";case U:return(e._context.displayName||"Context")+".Consumer";case Q:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case q:return t=e.displayName||null,t!==null?t:_e(e.type)||"Memo";case V:t=e._payload,e=e._init;try{return _e(e(t))}catch{}}return null}var et=Array.isArray,R=l.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,G=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Z={pending:!1,data:null,method:null,action:null},ge=[],be=-1;function w(e){return{current:e}}function Y(e){0>be||(e.current=ge[be],ge[be]=null,be--)}function F(e,t){be++,ge[be]=e.current,e.current=t}var ee=w(null),ce=w(null),he=w(null),Ae=w(null);function rt(e,t){switch(F(he,t),F(ce,e),F(ee,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bm(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bm(t),e=Sm(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Y(ee),F(ee,e)}function He(){Y(ee),Y(ce),Y(he)}function Di(e){e.memoizedState!==null&&F(Ae,e);var t=ee.current,n=Sm(t,e.type);t!==n&&(F(ce,e),F(ee,n))}function qa(e){ce.current===e&&(Y(ee),Y(ce)),Ae.current===e&&(Y(Ae),Ta._currentValue=Z)}var Hu,Zf;function tl(e){if(Hu===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Hu=t&&t[1]||"",Zf=-1<n.stack.indexOf(`
43
+ at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
44
+ `+Hu+e+Zf}var Yu=!1;function $u(e,t){if(!e||Yu)return"";Yu=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var i={DetermineComponentFrameRoot:function(){try{if(t){var H=function(){throw Error()};if(Object.defineProperty(H.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(H,[])}catch(j){var D=j}Reflect.construct(e,[],H)}else{try{H.call()}catch(j){D=j}e.call(H.prototype)}}else{try{throw Error()}catch(j){D=j}(H=e())&&typeof H.catch=="function"&&H.catch(function(){})}}catch(j){if(j&&D&&typeof j.stack=="string")return[j.stack,D.stack]}return[null,null]}};i.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var r=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,"name");r&&r.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var f=i.DetermineComponentFrameRoot(),d=f[0],y=f[1];if(d&&y){var S=d.split(`
45
+ `),z=y.split(`
46
+ `);for(r=i=0;i<S.length&&!S[i].includes("DetermineComponentFrameRoot");)i++;for(;r<z.length&&!z[r].includes("DetermineComponentFrameRoot");)r++;if(i===S.length||r===z.length)for(i=S.length-1,r=z.length-1;1<=i&&0<=r&&S[i]!==z[r];)r--;for(;1<=i&&0<=r;i--,r--)if(S[i]!==z[r]){if(i!==1||r!==1)do if(i--,r--,0>r||S[i]!==z[r]){var B=`
47
+ `+S[i].replace(" at new "," at ");return e.displayName&&B.includes("<anonymous>")&&(B=B.replace("<anonymous>",e.displayName)),B}while(1<=i&&0<=r);break}}}finally{Yu=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?tl(n):""}function Wp(e,t){switch(e.tag){case 26:case 27:case 5:return tl(e.type);case 16:return tl("Lazy");case 13:return e.child!==t&&t!==null?tl("Suspense Fallback"):tl("Suspense");case 19:return tl("SuspenseList");case 0:case 15:return $u(e.type,!1);case 11:return $u(e.type.render,!1);case 1:return $u(e.type,!0);case 31:return tl("Activity");default:return""}}function Jf(e){try{var t="",n=null;do t+=Wp(e,n),n=e,e=e.return;while(e);return t}catch(i){return`
48
+ Error generating stack: `+i.message+`
49
+ `+i.stack}}var Gu=Object.prototype.hasOwnProperty,Ku=u.unstable_scheduleCallback,Vu=u.unstable_cancelCallback,Fp=u.unstable_shouldYield,Ip=u.unstable_requestPaint,Et=u.unstable_now,Pp=u.unstable_getCurrentPriorityLevel,Wf=u.unstable_ImmediatePriority,Ff=u.unstable_UserBlockingPriority,ka=u.unstable_NormalPriority,ey=u.unstable_LowPriority,If=u.unstable_IdlePriority,ty=u.log,ny=u.unstable_setDisableYieldValue,Li=null,At=null;function _n(e){if(typeof ty=="function"&&ny(e),At&&typeof At.setStrictMode=="function")try{At.setStrictMode(Li,e)}catch{}}var wt=Math.clz32?Math.clz32:ay,ly=Math.log,iy=Math.LN2;function ay(e){return e>>>=0,e===0?32:31-(ly(e)/iy|0)|0}var Ha=256,Ya=262144,$a=4194304;function nl(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Ga(e,t,n){var i=e.pendingLanes;if(i===0)return 0;var r=0,f=e.suspendedLanes,d=e.pingedLanes;e=e.warmLanes;var y=i&134217727;return y!==0?(i=y&~f,i!==0?r=nl(i):(d&=y,d!==0?r=nl(d):n||(n=y&~e,n!==0&&(r=nl(n))))):(y=i&~f,y!==0?r=nl(y):d!==0?r=nl(d):n||(n=i&~e,n!==0&&(r=nl(n)))),r===0?0:t!==0&&t!==r&&(t&f)===0&&(f=r&-r,n=t&-t,f>=n||f===32&&(n&4194048)!==0)?t:r}function Ui(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function sy(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Pf(){var e=$a;return $a<<=1,($a&62914560)===0&&($a=4194304),e}function Qu(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ji(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function uy(e,t,n,i,r,f){var d=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var y=e.entanglements,S=e.expirationTimes,z=e.hiddenUpdates;for(n=d&~n;0<n;){var B=31-wt(n),H=1<<B;y[B]=0,S[B]=-1;var D=z[B];if(D!==null)for(z[B]=null,B=0;B<D.length;B++){var j=D[B];j!==null&&(j.lane&=-536870913)}n&=~H}i!==0&&eo(e,i,0),f!==0&&r===0&&e.tag!==0&&(e.suspendedLanes|=f&~(d&~t))}function eo(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var i=31-wt(t);e.entangledLanes|=t,e.entanglements[i]=e.entanglements[i]|1073741824|n&261930}function to(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var i=31-wt(n),r=1<<i;r&t|e[i]&t&&(e[i]|=t),n&=~r}}function no(e,t){var n=t&-t;return n=(n&42)!==0?1:Xu(n),(n&(e.suspendedLanes|t))!==0?0:n}function Xu(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Zu(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function lo(){var e=G.p;return e!==0?e:(e=window.event,e===void 0?32:Gm(e.type))}function io(e,t){var n=G.p;try{return G.p=e,t()}finally{G.p=n}}var Nn=Math.random().toString(36).slice(2),tt="__reactFiber$"+Nn,ht="__reactProps$"+Nn,Ml="__reactContainer$"+Nn,Ju="__reactEvents$"+Nn,cy="__reactListeners$"+Nn,ry="__reactHandles$"+Nn,ao="__reactResources$"+Nn,Ri="__reactMarker$"+Nn;function Wu(e){delete e[tt],delete e[ht],delete e[Ju],delete e[cy],delete e[ry]}function Cl(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Ml]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Nm(e);e!==null;){if(n=e[tt])return n;e=Nm(e)}return t}e=n,n=e.parentNode}return null}function zl(e){if(e=e[tt]||e[Ml]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Bi(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function xl(e){var t=e[ao];return t||(t=e[ao]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ie(e){e[Ri]=!0}var so=new Set,uo={};function ll(e,t){Dl(e,t),Dl(e+"Capture",t)}function Dl(e,t){for(uo[e]=t,e=0;e<t.length;e++)so.add(t[e])}var fy=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),co={},ro={};function oy(e){return Gu.call(ro,e)?!0:Gu.call(co,e)?!1:fy.test(e)?ro[e]=!0:(co[e]=!0,!1)}function Ka(e,t,n){if(oy(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var i=t.toLowerCase().slice(0,5);if(i!=="data-"&&i!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Va(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ln(e,t,n,i){if(i===null)e.removeAttribute(n);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+i)}}function Ut(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fo(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function hy(e,t,n){var i=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var r=i.get,f=i.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return r.call(this)},set:function(d){n=""+d,f.call(this,d)}}),Object.defineProperty(e,t,{enumerable:i.enumerable}),{getValue:function(){return n},setValue:function(d){n=""+d},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Fu(e){if(!e._valueTracker){var t=fo(e)?"checked":"value";e._valueTracker=hy(e,t,""+e[t])}}function oo(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),i="";return e&&(i=fo(e)?e.checked?"true":"false":e.value),e=i,e!==n?(t.setValue(e),!0):!1}function Qa(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var dy=/[\n"\\]/g;function jt(e){return e.replace(dy,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Iu(e,t,n,i,r,f,d,y){e.name="",d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"?e.type=d:e.removeAttribute("type"),t!=null?d==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+Ut(t)):e.value!==""+Ut(t)&&(e.value=""+Ut(t)):d!=="submit"&&d!=="reset"||e.removeAttribute("value"),t!=null?Pu(e,d,Ut(t)):n!=null?Pu(e,d,Ut(n)):i!=null&&e.removeAttribute("value"),r==null&&f!=null&&(e.defaultChecked=!!f),r!=null&&(e.checked=r&&typeof r!="function"&&typeof r!="symbol"),y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"?e.name=""+Ut(y):e.removeAttribute("name")}function ho(e,t,n,i,r,f,d,y){if(f!=null&&typeof f!="function"&&typeof f!="symbol"&&typeof f!="boolean"&&(e.type=f),t!=null||n!=null){if(!(f!=="submit"&&f!=="reset"||t!=null)){Fu(e);return}n=n!=null?""+Ut(n):"",t=t!=null?""+Ut(t):n,y||t===e.value||(e.value=t),e.defaultValue=t}i=i??r,i=typeof i!="function"&&typeof i!="symbol"&&!!i,e.checked=y?e.checked:!!i,e.defaultChecked=!!i,d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.name=d),Fu(e)}function Pu(e,t,n){t==="number"&&Qa(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function Ll(e,t,n,i){if(e=e.options,t){t={};for(var r=0;r<n.length;r++)t["$"+n[r]]=!0;for(n=0;n<e.length;n++)r=t.hasOwnProperty("$"+e[n].value),e[n].selected!==r&&(e[n].selected=r),r&&i&&(e[n].defaultSelected=!0)}else{for(n=""+Ut(n),t=null,r=0;r<e.length;r++){if(e[r].value===n){e[r].selected=!0,i&&(e[r].defaultSelected=!0);return}t!==null||e[r].disabled||(t=e[r])}t!==null&&(t.selected=!0)}}function mo(e,t,n){if(t!=null&&(t=""+Ut(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+Ut(n):""}function go(e,t,n,i){if(t==null){if(i!=null){if(n!=null)throw Error(s(92));if(et(i)){if(1<i.length)throw Error(s(93));i=i[0]}n=i}n==null&&(n=""),t=n}n=Ut(t),e.defaultValue=n,i=e.textContent,i===n&&i!==""&&i!==null&&(e.value=i),Fu(e)}function Ul(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var my=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function po(e,t,n){var i=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?i?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":i?e.setProperty(t,n):typeof n!="number"||n===0||my.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function yo(e,t,n){if(t!=null&&typeof t!="object")throw Error(s(62));if(e=e.style,n!=null){for(var i in n)!n.hasOwnProperty(i)||t!=null&&t.hasOwnProperty(i)||(i.indexOf("--")===0?e.setProperty(i,""):i==="float"?e.cssFloat="":e[i]="");for(var r in t)i=t[r],t.hasOwnProperty(r)&&n[r]!==i&&po(e,r,i)}else for(var f in t)t.hasOwnProperty(f)&&po(e,f,t[f])}function ec(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var gy=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),py=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Xa(e){return py.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function an(){}var tc=null;function nc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var jl=null,Rl=null;function vo(e){var t=zl(e);if(t&&(e=t.stateNode)){var n=e[ht]||null;e:switch(e=t.stateNode,t.type){case"input":if(Iu(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+jt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var r=i[ht]||null;if(!r)throw Error(s(90));Iu(i,r.value,r.defaultValue,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name)}}for(t=0;t<n.length;t++)i=n[t],i.form===e.form&&oo(i)}break e;case"textarea":mo(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&Ll(e,!!n.multiple,t,!1)}}}var lc=!1;function bo(e,t,n){if(lc)return e(t,n);lc=!0;try{var i=e(t);return i}finally{if(lc=!1,(jl!==null||Rl!==null)&&(Us(),jl&&(t=jl,e=Rl,Rl=jl=null,vo(t),e)))for(t=0;t<e.length;t++)vo(e[t])}}function qi(e,t){var n=e.stateNode;if(n===null)return null;var i=n[ht]||null;if(i===null)return null;n=i[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(e=e.type,i=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!i;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(s(231,t,typeof n));return n}var sn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ic=!1;if(sn)try{var ki={};Object.defineProperty(ki,"passive",{get:function(){ic=!0}}),window.addEventListener("test",ki,ki),window.removeEventListener("test",ki,ki)}catch{ic=!1}var Mn=null,ac=null,Za=null;function So(){if(Za)return Za;var e,t=ac,n=t.length,i,r="value"in Mn?Mn.value:Mn.textContent,f=r.length;for(e=0;e<n&&t[e]===r[e];e++);var d=n-e;for(i=1;i<=d&&t[n-i]===r[f-i];i++);return Za=r.slice(e,1<i?1-i:void 0)}function Ja(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wa(){return!0}function To(){return!1}function dt(e){function t(n,i,r,f,d){this._reactName=n,this._targetInst=r,this.type=i,this.nativeEvent=f,this.target=d,this.currentTarget=null;for(var y in e)e.hasOwnProperty(y)&&(n=e[y],this[y]=n?n(f):f[y]);return this.isDefaultPrevented=(f.defaultPrevented!=null?f.defaultPrevented:f.returnValue===!1)?Wa:To,this.isPropagationStopped=To,this}return v(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wa)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wa)},persist:function(){},isPersistent:Wa}),t}var il={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Fa=dt(il),Hi=v({},il,{view:0,detail:0}),yy=dt(Hi),sc,uc,Yi,Ia=v({},Hi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Yi&&(Yi&&e.type==="mousemove"?(sc=e.screenX-Yi.screenX,uc=e.screenY-Yi.screenY):uc=sc=0,Yi=e),sc)},movementY:function(e){return"movementY"in e?e.movementY:uc}}),Eo=dt(Ia),vy=v({},Ia,{dataTransfer:0}),by=dt(vy),Sy=v({},Hi,{relatedTarget:0}),cc=dt(Sy),Ty=v({},il,{animationName:0,elapsedTime:0,pseudoElement:0}),Ey=dt(Ty),Ay=v({},il,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),wy=dt(Ay),Oy=v({},il,{data:0}),Ao=dt(Oy),_y={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Ny={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},My={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Cy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=My[e])?!!t[e]:!1}function rc(){return Cy}var zy=v({},Hi,{key:function(e){if(e.key){var t=_y[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Ja(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Ny[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rc,charCode:function(e){return e.type==="keypress"?Ja(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ja(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),xy=dt(zy),Dy=v({},Ia,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wo=dt(Dy),Ly=v({},Hi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rc}),Uy=dt(Ly),jy=v({},il,{propertyName:0,elapsedTime:0,pseudoElement:0}),Ry=dt(jy),By=v({},Ia,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),qy=dt(By),ky=v({},il,{newState:0,oldState:0}),Hy=dt(ky),Yy=[9,13,27,32],fc=sn&&"CompositionEvent"in window,$i=null;sn&&"documentMode"in document&&($i=document.documentMode);var $y=sn&&"TextEvent"in window&&!$i,Oo=sn&&(!fc||$i&&8<$i&&11>=$i),_o=" ",No=!1;function Mo(e,t){switch(e){case"keyup":return Yy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Co(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bl=!1;function Gy(e,t){switch(e){case"compositionend":return Co(t);case"keypress":return t.which!==32?null:(No=!0,_o);case"textInput":return e=t.data,e===_o&&No?null:e;default:return null}}function Ky(e,t){if(Bl)return e==="compositionend"||!fc&&Mo(e,t)?(e=So(),Za=ac=Mn=null,Bl=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Oo&&t.locale!=="ko"?null:t.data;default:return null}}var Vy={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zo(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Vy[e.type]:t==="textarea"}function xo(e,t,n,i){jl?Rl?Rl.push(i):Rl=[i]:jl=i,t=Ys(t,"onChange"),0<t.length&&(n=new Fa("onChange","change",null,n,i),e.push({event:n,listeners:t}))}var Gi=null,Ki=null;function Qy(e){dm(e,0)}function Pa(e){var t=Bi(e);if(oo(t))return e}function Do(e,t){if(e==="change")return t}var Lo=!1;if(sn){var oc;if(sn){var hc="oninput"in document;if(!hc){var Uo=document.createElement("div");Uo.setAttribute("oninput","return;"),hc=typeof Uo.oninput=="function"}oc=hc}else oc=!1;Lo=oc&&(!document.documentMode||9<document.documentMode)}function jo(){Gi&&(Gi.detachEvent("onpropertychange",Ro),Ki=Gi=null)}function Ro(e){if(e.propertyName==="value"&&Pa(Ki)){var t=[];xo(t,Ki,e,nc(e)),bo(Qy,t)}}function Xy(e,t,n){e==="focusin"?(jo(),Gi=t,Ki=n,Gi.attachEvent("onpropertychange",Ro)):e==="focusout"&&jo()}function Zy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Pa(Ki)}function Jy(e,t){if(e==="click")return Pa(t)}function Wy(e,t){if(e==="input"||e==="change")return Pa(t)}function Fy(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Ot=typeof Object.is=="function"?Object.is:Fy;function Vi(e,t){if(Ot(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(i=0;i<n.length;i++){var r=n[i];if(!Gu.call(t,r)||!Ot(e[r],t[r]))return!1}return!0}function Bo(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function qo(e,t){var n=Bo(e);e=0;for(var i;n;){if(n.nodeType===3){if(i=e+n.textContent.length,e<=t&&i>=t)return{node:n,offset:t-e};e=i}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=Bo(n)}}function ko(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?ko(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ho(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qa(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Qa(e.document)}return t}function dc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Iy=sn&&"documentMode"in document&&11>=document.documentMode,ql=null,mc=null,Qi=null,gc=!1;function Yo(e,t,n){var i=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;gc||ql==null||ql!==Qa(i)||(i=ql,"selectionStart"in i&&dc(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Qi&&Vi(Qi,i)||(Qi=i,i=Ys(mc,"onSelect"),0<i.length&&(t=new Fa("onSelect","select",null,t,n),e.push({event:t,listeners:i}),t.target=ql)))}function al(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var kl={animationend:al("Animation","AnimationEnd"),animationiteration:al("Animation","AnimationIteration"),animationstart:al("Animation","AnimationStart"),transitionrun:al("Transition","TransitionRun"),transitionstart:al("Transition","TransitionStart"),transitioncancel:al("Transition","TransitionCancel"),transitionend:al("Transition","TransitionEnd")},pc={},$o={};sn&&($o=document.createElement("div").style,"AnimationEvent"in window||(delete kl.animationend.animation,delete kl.animationiteration.animation,delete kl.animationstart.animation),"TransitionEvent"in window||delete kl.transitionend.transition);function sl(e){if(pc[e])return pc[e];if(!kl[e])return e;var t=kl[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $o)return pc[e]=t[n];return e}var Go=sl("animationend"),Ko=sl("animationiteration"),Vo=sl("animationstart"),Py=sl("transitionrun"),e0=sl("transitionstart"),t0=sl("transitioncancel"),Qo=sl("transitionend"),Xo=new Map,yc="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");yc.push("scrollEnd");function Qt(e,t){Xo.set(e,t),ll(t,[e])}var es=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},Rt=[],Hl=0,vc=0;function ts(){for(var e=Hl,t=vc=Hl=0;t<e;){var n=Rt[t];Rt[t++]=null;var i=Rt[t];Rt[t++]=null;var r=Rt[t];Rt[t++]=null;var f=Rt[t];if(Rt[t++]=null,i!==null&&r!==null){var d=i.pending;d===null?r.next=r:(r.next=d.next,d.next=r),i.pending=r}f!==0&&Zo(n,r,f)}}function ns(e,t,n,i){Rt[Hl++]=e,Rt[Hl++]=t,Rt[Hl++]=n,Rt[Hl++]=i,vc|=i,e.lanes|=i,e=e.alternate,e!==null&&(e.lanes|=i)}function bc(e,t,n,i){return ns(e,t,n,i),ls(e)}function ul(e,t){return ns(e,null,null,t),ls(e)}function Zo(e,t,n){e.lanes|=n;var i=e.alternate;i!==null&&(i.lanes|=n);for(var r=!1,f=e.return;f!==null;)f.childLanes|=n,i=f.alternate,i!==null&&(i.childLanes|=n),f.tag===22&&(e=f.stateNode,e===null||e._visibility&1||(r=!0)),e=f,f=f.return;return e.tag===3?(f=e.stateNode,r&&t!==null&&(r=31-wt(n),e=f.hiddenUpdates,i=e[r],i===null?e[r]=[t]:i.push(t),t.lane=n|536870912),f):null}function ls(e){if(50<ma)throw ma=0,Mr=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Yl={};function n0(e,t,n,i){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function _t(e,t,n,i){return new n0(e,t,n,i)}function Sc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function un(e,t){var n=e.alternate;return n===null?(n=_t(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Jo(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function is(e,t,n,i,r,f){var d=0;if(i=e,typeof e=="function")Sc(e)&&(d=1);else if(typeof e=="string")d=u1(e,n,ee.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case L:return e=_t(31,n,t,r),e.elementType=L,e.lanes=f,e;case b:return cl(n.children,r,f,t);case A:d=8,r|=24;break;case M:return e=_t(12,n,t,r|2),e.elementType=M,e.lanes=f,e;case W:return e=_t(13,n,t,r),e.elementType=W,e.lanes=f,e;case I:return e=_t(19,n,t,r),e.elementType=I,e.lanes=f,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case K:d=10;break e;case U:d=9;break e;case Q:d=11;break e;case q:d=14;break e;case V:d=16,i=null;break e}d=29,n=Error(s(130,e===null?"null":typeof e,"")),i=null}return t=_t(d,n,t,r),t.elementType=e,t.type=i,t.lanes=f,t}function cl(e,t,n,i){return e=_t(7,e,i,t),e.lanes=n,e}function Tc(e,t,n){return e=_t(6,e,null,t),e.lanes=n,e}function Wo(e){var t=_t(18,null,null,0);return t.stateNode=e,t}function Ec(e,t,n){return t=_t(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Fo=new WeakMap;function Bt(e,t){if(typeof e=="object"&&e!==null){var n=Fo.get(e);return n!==void 0?n:(t={value:e,source:t,stack:Jf(t)},Fo.set(e,t),t)}return{value:e,source:t,stack:Jf(t)}}var $l=[],Gl=0,as=null,Xi=0,qt=[],kt=0,Cn=null,Ft=1,It="";function cn(e,t){$l[Gl++]=Xi,$l[Gl++]=as,as=e,Xi=t}function Io(e,t,n){qt[kt++]=Ft,qt[kt++]=It,qt[kt++]=Cn,Cn=e;var i=Ft;e=It;var r=32-wt(i)-1;i&=~(1<<r),n+=1;var f=32-wt(t)+r;if(30<f){var d=r-r%5;f=(i&(1<<d)-1).toString(32),i>>=d,r-=d,Ft=1<<32-wt(t)+r|n<<r|i,It=f+e}else Ft=1<<f|n<<r|i,It=e}function Ac(e){e.return!==null&&(cn(e,1),Io(e,1,0))}function wc(e){for(;e===as;)as=$l[--Gl],$l[Gl]=null,Xi=$l[--Gl],$l[Gl]=null;for(;e===Cn;)Cn=qt[--kt],qt[kt]=null,It=qt[--kt],qt[kt]=null,Ft=qt[--kt],qt[kt]=null}function Po(e,t){qt[kt++]=Ft,qt[kt++]=It,qt[kt++]=Cn,Ft=t.id,It=t.overflow,Cn=e}var nt=null,De=null,ve=!1,zn=null,Ht=!1,Oc=Error(s(519));function xn(e){var t=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Zi(Bt(t,e)),Oc}function eh(e){var t=e.stateNode,n=e.type,i=e.memoizedProps;switch(t[tt]=e,t[ht]=i,n){case"dialog":me("cancel",t),me("close",t);break;case"iframe":case"object":case"embed":me("load",t);break;case"video":case"audio":for(n=0;n<pa.length;n++)me(pa[n],t);break;case"source":me("error",t);break;case"img":case"image":case"link":me("error",t),me("load",t);break;case"details":me("toggle",t);break;case"input":me("invalid",t),ho(t,i.value,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name,!0);break;case"select":me("invalid",t);break;case"textarea":me("invalid",t),go(t,i.value,i.defaultValue,i.children)}n=i.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||i.suppressHydrationWarning===!0||ym(t.textContent,n)?(i.popover!=null&&(me("beforetoggle",t),me("toggle",t)),i.onScroll!=null&&me("scroll",t),i.onScrollEnd!=null&&me("scrollend",t),i.onClick!=null&&(t.onclick=an),t=!0):t=!1,t||xn(e,!0)}function th(e){for(nt=e.return;nt;)switch(nt.tag){case 5:case 31:case 13:Ht=!1;return;case 27:case 3:Ht=!0;return;default:nt=nt.return}}function Kl(e){if(e!==nt)return!1;if(!ve)return th(e),ve=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||Gr(e.type,e.memoizedProps)),n=!n),n&&De&&xn(e),th(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=_m(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(317));De=_m(e)}else t===27?(t=De,Vn(e.type)?(e=Zr,Zr=null,De=e):De=t):De=nt?$t(e.stateNode.nextSibling):null;return!0}function rl(){De=nt=null,ve=!1}function _c(){var e=zn;return e!==null&&(yt===null?yt=e:yt.push.apply(yt,e),zn=null),e}function Zi(e){zn===null?zn=[e]:zn.push(e)}var Nc=w(null),fl=null,rn=null;function Dn(e,t,n){F(Nc,t._currentValue),t._currentValue=n}function fn(e){e._currentValue=Nc.current,Y(Nc)}function Mc(e,t,n){for(;e!==null;){var i=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,i!==null&&(i.childLanes|=t)):i!==null&&(i.childLanes&t)!==t&&(i.childLanes|=t),e===n)break;e=e.return}}function Cc(e,t,n,i){var r=e.child;for(r!==null&&(r.return=e);r!==null;){var f=r.dependencies;if(f!==null){var d=r.child;f=f.firstContext;e:for(;f!==null;){var y=f;f=r;for(var S=0;S<t.length;S++)if(y.context===t[S]){f.lanes|=n,y=f.alternate,y!==null&&(y.lanes|=n),Mc(f.return,n,e),i||(d=null);break e}f=y.next}}else if(r.tag===18){if(d=r.return,d===null)throw Error(s(341));d.lanes|=n,f=d.alternate,f!==null&&(f.lanes|=n),Mc(d,n,e),d=null}else d=r.child;if(d!==null)d.return=r;else for(d=r;d!==null;){if(d===e){d=null;break}if(r=d.sibling,r!==null){r.return=d.return,d=r;break}d=d.return}r=d}}function Vl(e,t,n,i){e=null;for(var r=t,f=!1;r!==null;){if(!f){if((r.flags&524288)!==0)f=!0;else if((r.flags&262144)!==0)break}if(r.tag===10){var d=r.alternate;if(d===null)throw Error(s(387));if(d=d.memoizedProps,d!==null){var y=r.type;Ot(r.pendingProps.value,d.value)||(e!==null?e.push(y):e=[y])}}else if(r===Ae.current){if(d=r.alternate,d===null)throw Error(s(387));d.memoizedState.memoizedState!==r.memoizedState.memoizedState&&(e!==null?e.push(Ta):e=[Ta])}r=r.return}e!==null&&Cc(t,e,n,i),t.flags|=262144}function ss(e){for(e=e.firstContext;e!==null;){if(!Ot(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ol(e){fl=e,rn=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function lt(e){return nh(fl,e)}function us(e,t){return fl===null&&ol(e),nh(e,t)}function nh(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},rn===null){if(e===null)throw Error(s(308));rn=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else rn=rn.next=t;return n}var l0=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,i){e.push(i)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},i0=u.unstable_scheduleCallback,a0=u.unstable_NormalPriority,Ve={$$typeof:K,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zc(){return{controller:new l0,data:new Map,refCount:0}}function Ji(e){e.refCount--,e.refCount===0&&i0(a0,function(){e.controller.abort()})}var Wi=null,xc=0,Ql=0,Xl=null;function s0(e,t){if(Wi===null){var n=Wi=[];xc=0,Ql=Ur(),Xl={status:"pending",value:void 0,then:function(i){n.push(i)}}}return xc++,t.then(lh,lh),t}function lh(){if(--xc===0&&Wi!==null){Xl!==null&&(Xl.status="fulfilled");var e=Wi;Wi=null,Ql=0,Xl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function u0(e,t){var n=[],i={status:"pending",value:null,reason:null,then:function(r){n.push(r)}};return e.then(function(){i.status="fulfilled",i.value=t;for(var r=0;r<n.length;r++)(0,n[r])(t)},function(r){for(i.status="rejected",i.reason=r,r=0;r<n.length;r++)(0,n[r])(void 0)}),i}var ih=R.S;R.S=function(e,t){Yd=Et(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&s0(e,t),ih!==null&&ih(e,t)};var hl=w(null);function Dc(){var e=hl.current;return e!==null?e:ze.pooledCache}function cs(e,t){t===null?F(hl,hl.current):F(hl,t.pool)}function ah(){var e=Dc();return e===null?null:{parent:Ve._currentValue,pool:e}}var Zl=Error(s(460)),Lc=Error(s(474)),rs=Error(s(542)),fs={then:function(){}};function sh(e){return e=e.status,e==="fulfilled"||e==="rejected"}function uh(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(an,an),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e;default:if(typeof t.status=="string")t.then(an,an);else{if(e=ze,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status="pending",e.then(function(i){if(t.status==="pending"){var r=t;r.status="fulfilled",r.value=i}},function(i){if(t.status==="pending"){var r=t;r.status="rejected",r.reason=i}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,rh(e),e}throw ml=t,Zl}}function dl(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(ml=n,Zl):n}}var ml=null;function ch(){if(ml===null)throw Error(s(459));var e=ml;return ml=null,e}function rh(e){if(e===Zl||e===rs)throw Error(s(483))}var Jl=null,Fi=0;function os(e){var t=Fi;return Fi+=1,Jl===null&&(Jl=[]),uh(Jl,e,t)}function Ii(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function hs(e,t){throw t.$$typeof===_?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function fh(e){function t(N,O){if(e){var C=N.deletions;C===null?(N.deletions=[O],N.flags|=16):C.push(O)}}function n(N,O){if(!e)return null;for(;O!==null;)t(N,O),O=O.sibling;return null}function i(N){for(var O=new Map;N!==null;)N.key!==null?O.set(N.key,N):O.set(N.index,N),N=N.sibling;return O}function r(N,O){return N=un(N,O),N.index=0,N.sibling=null,N}function f(N,O,C){return N.index=C,e?(C=N.alternate,C!==null?(C=C.index,C<O?(N.flags|=67108866,O):C):(N.flags|=67108866,O)):(N.flags|=1048576,O)}function d(N){return e&&N.alternate===null&&(N.flags|=67108866),N}function y(N,O,C,k){return O===null||O.tag!==6?(O=Tc(C,N.mode,k),O.return=N,O):(O=r(O,C),O.return=N,O)}function S(N,O,C,k){var ne=C.type;return ne===b?B(N,O,C.props.children,k,C.key):O!==null&&(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===V&&dl(ne)===O.type)?(O=r(O,C.props),Ii(O,C),O.return=N,O):(O=is(C.type,C.key,C.props,null,N.mode,k),Ii(O,C),O.return=N,O)}function z(N,O,C,k){return O===null||O.tag!==4||O.stateNode.containerInfo!==C.containerInfo||O.stateNode.implementation!==C.implementation?(O=Ec(C,N.mode,k),O.return=N,O):(O=r(O,C.children||[]),O.return=N,O)}function B(N,O,C,k,ne){return O===null||O.tag!==7?(O=cl(C,N.mode,k,ne),O.return=N,O):(O=r(O,C),O.return=N,O)}function H(N,O,C){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=Tc(""+O,N.mode,C),O.return=N,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case E:return C=is(O.type,O.key,O.props,null,N.mode,C),Ii(C,O),C.return=N,C;case x:return O=Ec(O,N.mode,C),O.return=N,O;case V:return O=dl(O),H(N,O,C)}if(et(O)||$(O))return O=cl(O,N.mode,C,null),O.return=N,O;if(typeof O.then=="function")return H(N,os(O),C);if(O.$$typeof===K)return H(N,us(N,O),C);hs(N,O)}return null}function D(N,O,C,k){var ne=O!==null?O.key:null;if(typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint")return ne!==null?null:y(N,O,""+C,k);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case E:return C.key===ne?S(N,O,C,k):null;case x:return C.key===ne?z(N,O,C,k):null;case V:return C=dl(C),D(N,O,C,k)}if(et(C)||$(C))return ne!==null?null:B(N,O,C,k,null);if(typeof C.then=="function")return D(N,O,os(C),k);if(C.$$typeof===K)return D(N,O,us(N,C),k);hs(N,C)}return null}function j(N,O,C,k,ne){if(typeof k=="string"&&k!==""||typeof k=="number"||typeof k=="bigint")return N=N.get(C)||null,y(O,N,""+k,ne);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case E:return N=N.get(k.key===null?C:k.key)||null,S(O,N,k,ne);case x:return N=N.get(k.key===null?C:k.key)||null,z(O,N,k,ne);case V:return k=dl(k),j(N,O,C,k,ne)}if(et(k)||$(k))return N=N.get(C)||null,B(O,N,k,ne,null);if(typeof k.then=="function")return j(N,O,C,os(k),ne);if(k.$$typeof===K)return j(N,O,C,us(O,k),ne);hs(O,k)}return null}function P(N,O,C,k){for(var ne=null,Se=null,te=O,fe=O=0,ye=null;te!==null&&fe<C.length;fe++){te.index>fe?(ye=te,te=null):ye=te.sibling;var Te=D(N,te,C[fe],k);if(Te===null){te===null&&(te=ye);break}e&&te&&Te.alternate===null&&t(N,te),O=f(Te,O,fe),Se===null?ne=Te:Se.sibling=Te,Se=Te,te=ye}if(fe===C.length)return n(N,te),ve&&cn(N,fe),ne;if(te===null){for(;fe<C.length;fe++)te=H(N,C[fe],k),te!==null&&(O=f(te,O,fe),Se===null?ne=te:Se.sibling=te,Se=te);return ve&&cn(N,fe),ne}for(te=i(te);fe<C.length;fe++)ye=j(te,N,fe,C[fe],k),ye!==null&&(e&&ye.alternate!==null&&te.delete(ye.key===null?fe:ye.key),O=f(ye,O,fe),Se===null?ne=ye:Se.sibling=ye,Se=ye);return e&&te.forEach(function(Wn){return t(N,Wn)}),ve&&cn(N,fe),ne}function le(N,O,C,k){if(C==null)throw Error(s(151));for(var ne=null,Se=null,te=O,fe=O=0,ye=null,Te=C.next();te!==null&&!Te.done;fe++,Te=C.next()){te.index>fe?(ye=te,te=null):ye=te.sibling;var Wn=D(N,te,Te.value,k);if(Wn===null){te===null&&(te=ye);break}e&&te&&Wn.alternate===null&&t(N,te),O=f(Wn,O,fe),Se===null?ne=Wn:Se.sibling=Wn,Se=Wn,te=ye}if(Te.done)return n(N,te),ve&&cn(N,fe),ne;if(te===null){for(;!Te.done;fe++,Te=C.next())Te=H(N,Te.value,k),Te!==null&&(O=f(Te,O,fe),Se===null?ne=Te:Se.sibling=Te,Se=Te);return ve&&cn(N,fe),ne}for(te=i(te);!Te.done;fe++,Te=C.next())Te=j(te,N,fe,Te.value,k),Te!==null&&(e&&Te.alternate!==null&&te.delete(Te.key===null?fe:Te.key),O=f(Te,O,fe),Se===null?ne=Te:Se.sibling=Te,Se=Te);return e&&te.forEach(function(v1){return t(N,v1)}),ve&&cn(N,fe),ne}function Ce(N,O,C,k){if(typeof C=="object"&&C!==null&&C.type===b&&C.key===null&&(C=C.props.children),typeof C=="object"&&C!==null){switch(C.$$typeof){case E:e:{for(var ne=C.key;O!==null;){if(O.key===ne){if(ne=C.type,ne===b){if(O.tag===7){n(N,O.sibling),k=r(O,C.props.children),k.return=N,N=k;break e}}else if(O.elementType===ne||typeof ne=="object"&&ne!==null&&ne.$$typeof===V&&dl(ne)===O.type){n(N,O.sibling),k=r(O,C.props),Ii(k,C),k.return=N,N=k;break e}n(N,O);break}else t(N,O);O=O.sibling}C.type===b?(k=cl(C.props.children,N.mode,k,C.key),k.return=N,N=k):(k=is(C.type,C.key,C.props,null,N.mode,k),Ii(k,C),k.return=N,N=k)}return d(N);case x:e:{for(ne=C.key;O!==null;){if(O.key===ne)if(O.tag===4&&O.stateNode.containerInfo===C.containerInfo&&O.stateNode.implementation===C.implementation){n(N,O.sibling),k=r(O,C.children||[]),k.return=N,N=k;break e}else{n(N,O);break}else t(N,O);O=O.sibling}k=Ec(C,N.mode,k),k.return=N,N=k}return d(N);case V:return C=dl(C),Ce(N,O,C,k)}if(et(C))return P(N,O,C,k);if($(C)){if(ne=$(C),typeof ne!="function")throw Error(s(150));return C=ne.call(C),le(N,O,C,k)}if(typeof C.then=="function")return Ce(N,O,os(C),k);if(C.$$typeof===K)return Ce(N,O,us(N,C),k);hs(N,C)}return typeof C=="string"&&C!==""||typeof C=="number"||typeof C=="bigint"?(C=""+C,O!==null&&O.tag===6?(n(N,O.sibling),k=r(O,C),k.return=N,N=k):(n(N,O),k=Tc(C,N.mode,k),k.return=N,N=k),d(N)):n(N,O)}return function(N,O,C,k){try{Fi=0;var ne=Ce(N,O,C,k);return Jl=null,ne}catch(te){if(te===Zl||te===rs)throw te;var Se=_t(29,te,null,N.mode);return Se.lanes=k,Se.return=N,Se}finally{}}}var gl=fh(!0),oh=fh(!1),Ln=!1;function Uc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function jc(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Un(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function jn(e,t,n){var i=e.updateQueue;if(i===null)return null;if(i=i.shared,(Ee&2)!==0){var r=i.pending;return r===null?t.next=t:(t.next=r.next,r.next=t),i.pending=t,t=ls(e),Zo(e,null,n),t}return ns(e,i,t,n),ls(e)}function Pi(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,to(e,n)}}function Rc(e,t){var n=e.updateQueue,i=e.alternate;if(i!==null&&(i=i.updateQueue,n===i)){var r=null,f=null;if(n=n.firstBaseUpdate,n!==null){do{var d={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};f===null?r=f=d:f=f.next=d,n=n.next}while(n!==null);f===null?r=f=t:f=f.next=t}else r=f=t;n={baseState:i.baseState,firstBaseUpdate:r,lastBaseUpdate:f,shared:i.shared,callbacks:i.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Bc=!1;function ea(){if(Bc){var e=Xl;if(e!==null)throw e}}function ta(e,t,n,i){Bc=!1;var r=e.updateQueue;Ln=!1;var f=r.firstBaseUpdate,d=r.lastBaseUpdate,y=r.shared.pending;if(y!==null){r.shared.pending=null;var S=y,z=S.next;S.next=null,d===null?f=z:d.next=z,d=S;var B=e.alternate;B!==null&&(B=B.updateQueue,y=B.lastBaseUpdate,y!==d&&(y===null?B.firstBaseUpdate=z:y.next=z,B.lastBaseUpdate=S))}if(f!==null){var H=r.baseState;d=0,B=z=S=null,y=f;do{var D=y.lane&-536870913,j=D!==y.lane;if(j?(pe&D)===D:(i&D)===D){D!==0&&D===Ql&&(Bc=!0),B!==null&&(B=B.next={lane:0,tag:y.tag,payload:y.payload,callback:null,next:null});e:{var P=e,le=y;D=t;var Ce=n;switch(le.tag){case 1:if(P=le.payload,typeof P=="function"){H=P.call(Ce,H,D);break e}H=P;break e;case 3:P.flags=P.flags&-65537|128;case 0:if(P=le.payload,D=typeof P=="function"?P.call(Ce,H,D):P,D==null)break e;H=v({},H,D);break e;case 2:Ln=!0}}D=y.callback,D!==null&&(e.flags|=64,j&&(e.flags|=8192),j=r.callbacks,j===null?r.callbacks=[D]:j.push(D))}else j={lane:D,tag:y.tag,payload:y.payload,callback:y.callback,next:null},B===null?(z=B=j,S=H):B=B.next=j,d|=D;if(y=y.next,y===null){if(y=r.shared.pending,y===null)break;j=y,y=j.next,j.next=null,r.lastBaseUpdate=j,r.shared.pending=null}}while(!0);B===null&&(S=H),r.baseState=S,r.firstBaseUpdate=z,r.lastBaseUpdate=B,f===null&&(r.shared.lanes=0),Hn|=d,e.lanes=d,e.memoizedState=H}}function hh(e,t){if(typeof e!="function")throw Error(s(191,e));e.call(t)}function dh(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)hh(n[e],t)}var Wl=w(null),ds=w(0);function mh(e,t){e=bn,F(ds,e),F(Wl,t),bn=e|t.baseLanes}function qc(){F(ds,bn),F(Wl,Wl.current)}function kc(){bn=ds.current,Y(Wl),Y(ds)}var Nt=w(null),Yt=null;function Rn(e){var t=e.alternate;F(Ye,Ye.current&1),F(Nt,e),Yt===null&&(t===null||Wl.current!==null||t.memoizedState!==null)&&(Yt=e)}function Hc(e){F(Ye,Ye.current),F(Nt,e),Yt===null&&(Yt=e)}function gh(e){e.tag===22?(F(Ye,Ye.current),F(Nt,e),Yt===null&&(Yt=e)):Bn()}function Bn(){F(Ye,Ye.current),F(Nt,Nt.current)}function Mt(e){Y(Nt),Yt===e&&(Yt=null),Y(Ye)}var Ye=w(0);function ms(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||Qr(n)||Xr(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var on=0,re=null,Ne=null,Qe=null,gs=!1,Fl=!1,pl=!1,ps=0,na=0,Il=null,c0=0;function qe(){throw Error(s(321))}function Yc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Ot(e[n],t[n]))return!1;return!0}function $c(e,t,n,i,r,f){return on=f,re=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e===null||e.memoizedState===null?Ih:lr,pl=!1,f=n(i,r),pl=!1,Fl&&(f=yh(t,n,i,r)),ph(e),f}function ph(e){R.H=aa;var t=Ne!==null&&Ne.next!==null;if(on=0,Qe=Ne=re=null,gs=!1,na=0,Il=null,t)throw Error(s(300));e===null||Xe||(e=e.dependencies,e!==null&&ss(e)&&(Xe=!0))}function yh(e,t,n,i){re=e;var r=0;do{if(Fl&&(Il=null),na=0,Fl=!1,25<=r)throw Error(s(301));if(r+=1,Qe=Ne=null,e.updateQueue!=null){var f=e.updateQueue;f.lastEffect=null,f.events=null,f.stores=null,f.memoCache!=null&&(f.memoCache.index=0)}R.H=Ph,f=t(n,i)}while(Fl);return f}function r0(){var e=R.H,t=e.useState()[0];return t=typeof t.then=="function"?la(t):t,e=e.useState()[0],(Ne!==null?Ne.memoizedState:null)!==e&&(re.flags|=1024),t}function Gc(){var e=ps!==0;return ps=0,e}function Kc(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Vc(e){if(gs){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}gs=!1}on=0,Qe=Ne=re=null,Fl=!1,na=ps=0,Il=null}function ft(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Qe===null?re.memoizedState=Qe=e:Qe=Qe.next=e,Qe}function $e(){if(Ne===null){var e=re.alternate;e=e!==null?e.memoizedState:null}else e=Ne.next;var t=Qe===null?re.memoizedState:Qe.next;if(t!==null)Qe=t,Ne=e;else{if(e===null)throw re.alternate===null?Error(s(467)):Error(s(310));Ne=e,e={memoizedState:Ne.memoizedState,baseState:Ne.baseState,baseQueue:Ne.baseQueue,queue:Ne.queue,next:null},Qe===null?re.memoizedState=Qe=e:Qe=Qe.next=e}return Qe}function ys(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function la(e){var t=na;return na+=1,Il===null&&(Il=[]),e=uh(Il,e,t),t=re,(Qe===null?t.memoizedState:Qe.next)===null&&(t=t.alternate,R.H=t===null||t.memoizedState===null?Ih:lr),e}function vs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return la(e);if(e.$$typeof===K)return lt(e)}throw Error(s(438,String(e)))}function Qc(e){var t=null,n=re.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var i=re.alternate;i!==null&&(i=i.updateQueue,i!==null&&(i=i.memoCache,i!=null&&(t={data:i.data.map(function(r){return r.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=ys(),re.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),i=0;i<e;i++)n[i]=ie;return t.index++,n}function hn(e,t){return typeof t=="function"?t(e):t}function bs(e){var t=$e();return Xc(t,Ne,e)}function Xc(e,t,n){var i=e.queue;if(i===null)throw Error(s(311));i.lastRenderedReducer=n;var r=e.baseQueue,f=i.pending;if(f!==null){if(r!==null){var d=r.next;r.next=f.next,f.next=d}t.baseQueue=r=f,i.pending=null}if(f=e.baseState,r===null)e.memoizedState=f;else{t=r.next;var y=d=null,S=null,z=t,B=!1;do{var H=z.lane&-536870913;if(H!==z.lane?(pe&H)===H:(on&H)===H){var D=z.revertLane;if(D===0)S!==null&&(S=S.next={lane:0,revertLane:0,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null}),H===Ql&&(B=!0);else if((on&D)===D){z=z.next,D===Ql&&(B=!0);continue}else H={lane:0,revertLane:z.revertLane,gesture:null,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=H,d=f):S=S.next=H,re.lanes|=D,Hn|=D;H=z.action,pl&&n(f,H),f=z.hasEagerState?z.eagerState:n(f,H)}else D={lane:H,revertLane:z.revertLane,gesture:z.gesture,action:z.action,hasEagerState:z.hasEagerState,eagerState:z.eagerState,next:null},S===null?(y=S=D,d=f):S=S.next=D,re.lanes|=H,Hn|=H;z=z.next}while(z!==null&&z!==t);if(S===null?d=f:S.next=y,!Ot(f,e.memoizedState)&&(Xe=!0,B&&(n=Xl,n!==null)))throw n;e.memoizedState=f,e.baseState=d,e.baseQueue=S,i.lastRenderedState=f}return r===null&&(i.lanes=0),[e.memoizedState,i.dispatch]}function Zc(e){var t=$e(),n=t.queue;if(n===null)throw Error(s(311));n.lastRenderedReducer=e;var i=n.dispatch,r=n.pending,f=t.memoizedState;if(r!==null){n.pending=null;var d=r=r.next;do f=e(f,d.action),d=d.next;while(d!==r);Ot(f,t.memoizedState)||(Xe=!0),t.memoizedState=f,t.baseQueue===null&&(t.baseState=f),n.lastRenderedState=f}return[f,i]}function vh(e,t,n){var i=re,r=$e(),f=ve;if(f){if(n===void 0)throw Error(s(407));n=n()}else n=t();var d=!Ot((Ne||r).memoizedState,n);if(d&&(r.memoizedState=n,Xe=!0),r=r.queue,Fc(Th.bind(null,i,r,e),[e]),r.getSnapshot!==t||d||Qe!==null&&Qe.memoizedState.tag&1){if(i.flags|=2048,Pl(9,{destroy:void 0},Sh.bind(null,i,r,n,t),null),ze===null)throw Error(s(349));f||(on&127)!==0||bh(i,t,n)}return n}function bh(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=re.updateQueue,t===null?(t=ys(),re.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Sh(e,t,n,i){t.value=n,t.getSnapshot=i,Eh(t)&&Ah(e)}function Th(e,t,n){return n(function(){Eh(t)&&Ah(e)})}function Eh(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Ot(e,n)}catch{return!0}}function Ah(e){var t=ul(e,2);t!==null&&vt(t,e,2)}function Jc(e){var t=ft();if(typeof e=="function"){var n=e;if(e=n(),pl){_n(!0);try{n()}finally{_n(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:e},t}function wh(e,t,n,i){return e.baseState=n,Xc(e,Ne,typeof i=="function"?i:hn)}function f0(e,t,n,i,r){if(Es(e))throw Error(s(485));if(e=t.action,e!==null){var f={payload:r,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(d){f.listeners.push(d)}};R.T!==null?n(!0):f.isTransition=!1,i(f),n=t.pending,n===null?(f.next=t.pending=f,Oh(t,f)):(f.next=n.next,t.pending=n.next=f)}}function Oh(e,t){var n=t.action,i=t.payload,r=e.state;if(t.isTransition){var f=R.T,d={};R.T=d;try{var y=n(r,i),S=R.S;S!==null&&S(d,y),_h(e,t,y)}catch(z){Wc(e,t,z)}finally{f!==null&&d.types!==null&&(f.types=d.types),R.T=f}}else try{f=n(r,i),_h(e,t,f)}catch(z){Wc(e,t,z)}}function _h(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(i){Nh(e,t,i)},function(i){return Wc(e,t,i)}):Nh(e,t,n)}function Nh(e,t,n){t.status="fulfilled",t.value=n,Mh(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Oh(e,n)))}function Wc(e,t,n){var i=e.pending;if(e.pending=null,i!==null){i=i.next;do t.status="rejected",t.reason=n,Mh(t),t=t.next;while(t!==i)}e.action=null}function Mh(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Ch(e,t){return t}function zh(e,t){if(ve){var n=ze.formState;if(n!==null){e:{var i=re;if(ve){if(De){t:{for(var r=De,f=Ht;r.nodeType!==8;){if(!f){r=null;break t}if(r=$t(r.nextSibling),r===null){r=null;break t}}f=r.data,r=f==="F!"||f==="F"?r:null}if(r){De=$t(r.nextSibling),i=r.data==="F!";break e}}xn(i)}i=!1}i&&(t=n[0])}}return n=ft(),n.memoizedState=n.baseState=t,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ch,lastRenderedState:t},n.queue=i,n=Jh.bind(null,re,i),i.dispatch=n,i=Jc(!1),f=nr.bind(null,re,!1,i.queue),i=ft(),r={state:t,dispatch:null,action:e,pending:null},i.queue=r,n=f0.bind(null,re,r,f,n),r.dispatch=n,i.memoizedState=e,[t,n,!1]}function xh(e){var t=$e();return Dh(t,Ne,e)}function Dh(e,t,n){if(t=Xc(e,t,Ch)[0],e=bs(hn)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var i=la(t)}catch(d){throw d===Zl?rs:d}else i=t;t=$e();var r=t.queue,f=r.dispatch;return n!==t.memoizedState&&(re.flags|=2048,Pl(9,{destroy:void 0},o0.bind(null,r,n),null)),[i,f,e]}function o0(e,t){e.action=t}function Lh(e){var t=$e(),n=Ne;if(n!==null)return Dh(t,n,e);$e(),t=t.memoizedState,n=$e();var i=n.queue.dispatch;return n.memoizedState=e,[t,i,!1]}function Pl(e,t,n,i){return e={tag:e,create:n,deps:i,inst:t,next:null},t=re.updateQueue,t===null&&(t=ys(),re.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(i=n.next,n.next=e,e.next=i,t.lastEffect=e),e}function Uh(){return $e().memoizedState}function Ss(e,t,n,i){var r=ft();re.flags|=e,r.memoizedState=Pl(1|t,{destroy:void 0},n,i===void 0?null:i)}function Ts(e,t,n,i){var r=$e();i=i===void 0?null:i;var f=r.memoizedState.inst;Ne!==null&&i!==null&&Yc(i,Ne.memoizedState.deps)?r.memoizedState=Pl(t,f,n,i):(re.flags|=e,r.memoizedState=Pl(1|t,f,n,i))}function jh(e,t){Ss(8390656,8,e,t)}function Fc(e,t){Ts(2048,8,e,t)}function h0(e){re.flags|=4;var t=re.updateQueue;if(t===null)t=ys(),re.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Rh(e){var t=$e().memoizedState;return h0({ref:t,nextImpl:e}),function(){if((Ee&2)!==0)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function Bh(e,t){return Ts(4,2,e,t)}function qh(e,t){return Ts(4,4,e,t)}function kh(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Hh(e,t,n){n=n!=null?n.concat([e]):null,Ts(4,4,kh.bind(null,t,e),n)}function Ic(){}function Yh(e,t){var n=$e();t=t===void 0?null:t;var i=n.memoizedState;return t!==null&&Yc(t,i[1])?i[0]:(n.memoizedState=[e,t],e)}function $h(e,t){var n=$e();t=t===void 0?null:t;var i=n.memoizedState;if(t!==null&&Yc(t,i[1]))return i[0];if(i=e(),pl){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[i,t],i}function Pc(e,t,n){return n===void 0||(on&1073741824)!==0&&(pe&261930)===0?e.memoizedState=t:(e.memoizedState=n,e=Gd(),re.lanes|=e,Hn|=e,n)}function Gh(e,t,n,i){return Ot(n,t)?n:Wl.current!==null?(e=Pc(e,n,i),Ot(e,t)||(Xe=!0),e):(on&42)===0||(on&1073741824)!==0&&(pe&261930)===0?(Xe=!0,e.memoizedState=n):(e=Gd(),re.lanes|=e,Hn|=e,t)}function Kh(e,t,n,i,r){var f=G.p;G.p=f!==0&&8>f?f:8;var d=R.T,y={};R.T=y,nr(e,!1,t,n);try{var S=r(),z=R.S;if(z!==null&&z(y,S),S!==null&&typeof S=="object"&&typeof S.then=="function"){var B=u0(S,i);ia(e,t,B,xt(e))}else ia(e,t,i,xt(e))}catch(H){ia(e,t,{then:function(){},status:"rejected",reason:H},xt())}finally{G.p=f,d!==null&&y.types!==null&&(d.types=y.types),R.T=d}}function d0(){}function er(e,t,n,i){if(e.tag!==5)throw Error(s(476));var r=Vh(e).queue;Kh(e,r,t,Z,n===null?d0:function(){return Qh(e),n(i)})}function Vh(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Z,baseState:Z,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:Z},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:hn,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Qh(e){var t=Vh(e);t.next===null&&(t=e.alternate.memoizedState),ia(e,t.next.queue,{},xt())}function tr(){return lt(Ta)}function Xh(){return $e().memoizedState}function Zh(){return $e().memoizedState}function m0(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=xt();e=Un(n);var i=jn(t,e,n);i!==null&&(vt(i,t,n),Pi(i,t,n)),t={cache:zc()},e.payload=t;return}t=t.return}}function g0(e,t,n){var i=xt();n={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Es(e)?Wh(t,n):(n=bc(e,t,n,i),n!==null&&(vt(n,e,i),Fh(n,t,i)))}function Jh(e,t,n){var i=xt();ia(e,t,n,i)}function ia(e,t,n,i){var r={lane:i,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Es(e))Wh(t,r);else{var f=e.alternate;if(e.lanes===0&&(f===null||f.lanes===0)&&(f=t.lastRenderedReducer,f!==null))try{var d=t.lastRenderedState,y=f(d,n);if(r.hasEagerState=!0,r.eagerState=y,Ot(y,d))return ns(e,t,r,0),ze===null&&ts(),!1}catch{}finally{}if(n=bc(e,t,r,i),n!==null)return vt(n,e,i),Fh(n,t,i),!0}return!1}function nr(e,t,n,i){if(i={lane:2,revertLane:Ur(),gesture:null,action:i,hasEagerState:!1,eagerState:null,next:null},Es(e)){if(t)throw Error(s(479))}else t=bc(e,n,i,2),t!==null&&vt(t,e,2)}function Es(e){var t=e.alternate;return e===re||t!==null&&t===re}function Wh(e,t){Fl=gs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fh(e,t,n){if((n&4194048)!==0){var i=t.lanes;i&=e.pendingLanes,n|=i,t.lanes=n,to(e,n)}}var aa={readContext:lt,use:vs,useCallback:qe,useContext:qe,useEffect:qe,useImperativeHandle:qe,useLayoutEffect:qe,useInsertionEffect:qe,useMemo:qe,useReducer:qe,useRef:qe,useState:qe,useDebugValue:qe,useDeferredValue:qe,useTransition:qe,useSyncExternalStore:qe,useId:qe,useHostTransitionStatus:qe,useFormState:qe,useActionState:qe,useOptimistic:qe,useMemoCache:qe,useCacheRefresh:qe};aa.useEffectEvent=qe;var Ih={readContext:lt,use:vs,useCallback:function(e,t){return ft().memoizedState=[e,t===void 0?null:t],e},useContext:lt,useEffect:jh,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Ss(4194308,4,kh.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ss(4194308,4,e,t)},useInsertionEffect:function(e,t){Ss(4,2,e,t)},useMemo:function(e,t){var n=ft();t=t===void 0?null:t;var i=e();if(pl){_n(!0);try{e()}finally{_n(!1)}}return n.memoizedState=[i,t],i},useReducer:function(e,t,n){var i=ft();if(n!==void 0){var r=n(t);if(pl){_n(!0);try{n(t)}finally{_n(!1)}}}else r=t;return i.memoizedState=i.baseState=r,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:r},i.queue=e,e=e.dispatch=g0.bind(null,re,e),[i.memoizedState,e]},useRef:function(e){var t=ft();return e={current:e},t.memoizedState=e},useState:function(e){e=Jc(e);var t=e.queue,n=Jh.bind(null,re,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ic,useDeferredValue:function(e,t){var n=ft();return Pc(n,e,t)},useTransition:function(){var e=Jc(!1);return e=Kh.bind(null,re,e.queue,!0,!1),ft().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var i=re,r=ft();if(ve){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),ze===null)throw Error(s(349));(pe&127)!==0||bh(i,t,n)}r.memoizedState=n;var f={value:n,getSnapshot:t};return r.queue=f,jh(Th.bind(null,i,f,e),[e]),i.flags|=2048,Pl(9,{destroy:void 0},Sh.bind(null,i,f,n,t),null),n},useId:function(){var e=ft(),t=ze.identifierPrefix;if(ve){var n=It,i=Ft;n=(i&~(1<<32-wt(i)-1)).toString(32)+n,t="_"+t+"R_"+n,n=ps++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=c0++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:tr,useFormState:zh,useActionState:zh,useOptimistic:function(e){var t=ft();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=nr.bind(null,re,!0,n),n.dispatch=t,[e,t]},useMemoCache:Qc,useCacheRefresh:function(){return ft().memoizedState=m0.bind(null,re)},useEffectEvent:function(e){var t=ft(),n={impl:e};return t.memoizedState=n,function(){if((Ee&2)!==0)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},lr={readContext:lt,use:vs,useCallback:Yh,useContext:lt,useEffect:Fc,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:$h,useReducer:bs,useRef:Uh,useState:function(){return bs(hn)},useDebugValue:Ic,useDeferredValue:function(e,t){var n=$e();return Gh(n,Ne.memoizedState,e,t)},useTransition:function(){var e=bs(hn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:la(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:tr,useFormState:xh,useActionState:xh,useOptimistic:function(e,t){var n=$e();return wh(n,Ne,e,t)},useMemoCache:Qc,useCacheRefresh:Zh};lr.useEffectEvent=Rh;var Ph={readContext:lt,use:vs,useCallback:Yh,useContext:lt,useEffect:Fc,useImperativeHandle:Hh,useInsertionEffect:Bh,useLayoutEffect:qh,useMemo:$h,useReducer:Zc,useRef:Uh,useState:function(){return Zc(hn)},useDebugValue:Ic,useDeferredValue:function(e,t){var n=$e();return Ne===null?Pc(n,e,t):Gh(n,Ne.memoizedState,e,t)},useTransition:function(){var e=Zc(hn)[0],t=$e().memoizedState;return[typeof e=="boolean"?e:la(e),t]},useSyncExternalStore:vh,useId:Xh,useHostTransitionStatus:tr,useFormState:Lh,useActionState:Lh,useOptimistic:function(e,t){var n=$e();return Ne!==null?wh(n,Ne,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:Qc,useCacheRefresh:Zh};Ph.useEffectEvent=Rh;function ir(e,t,n,i){t=e.memoizedState,n=n(i,t),n=n==null?t:v({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ar={enqueueSetState:function(e,t,n){e=e._reactInternals;var i=xt(),r=Un(i);r.payload=t,n!=null&&(r.callback=n),t=jn(e,r,i),t!==null&&(vt(t,e,i),Pi(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var i=xt(),r=Un(i);r.tag=1,r.payload=t,n!=null&&(r.callback=n),t=jn(e,r,i),t!==null&&(vt(t,e,i),Pi(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=xt(),i=Un(n);i.tag=2,t!=null&&(i.callback=t),t=jn(e,i,n),t!==null&&(vt(t,e,n),Pi(t,e,n))}};function ed(e,t,n,i,r,f,d){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(i,f,d):t.prototype&&t.prototype.isPureReactComponent?!Vi(n,i)||!Vi(r,f):!0}function td(e,t,n,i){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,i),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,i),t.state!==e&&ar.enqueueReplaceState(t,t.state,null)}function yl(e,t){var n=t;if("ref"in t){n={};for(var i in t)i!=="ref"&&(n[i]=t[i])}if(e=e.defaultProps){n===t&&(n=v({},n));for(var r in e)n[r]===void 0&&(n[r]=e[r])}return n}function nd(e){es(e)}function ld(e){console.error(e)}function id(e){es(e)}function As(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(i){setTimeout(function(){throw i})}}function ad(e,t,n){try{var i=e.onCaughtError;i(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(r){setTimeout(function(){throw r})}}function sr(e,t,n){return n=Un(n),n.tag=3,n.payload={element:null},n.callback=function(){As(e,t)},n}function sd(e){return e=Un(e),e.tag=3,e}function ud(e,t,n,i){var r=n.type.getDerivedStateFromError;if(typeof r=="function"){var f=i.value;e.payload=function(){return r(f)},e.callback=function(){ad(t,n,i)}}var d=n.stateNode;d!==null&&typeof d.componentDidCatch=="function"&&(e.callback=function(){ad(t,n,i),typeof r!="function"&&(Yn===null?Yn=new Set([this]):Yn.add(this));var y=i.stack;this.componentDidCatch(i.value,{componentStack:y!==null?y:""})})}function p0(e,t,n,i,r){if(n.flags|=32768,i!==null&&typeof i=="object"&&typeof i.then=="function"){if(t=n.alternate,t!==null&&Vl(t,n,r,!0),n=Nt.current,n!==null){switch(n.tag){case 31:case 13:return Yt===null?js():n.alternate===null&&ke===0&&(ke=3),n.flags&=-257,n.flags|=65536,n.lanes=r,i===fs?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([i]):t.add(i),xr(e,i,r)),!1;case 22:return n.flags|=65536,i===fs?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([i])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([i]):n.add(i)),xr(e,i,r)),!1}throw Error(s(435,n.tag))}return xr(e,i,r),js(),!1}if(ve)return t=Nt.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=r,i!==Oc&&(e=Error(s(422),{cause:i}),Zi(Bt(e,n)))):(i!==Oc&&(t=Error(s(423),{cause:i}),Zi(Bt(t,n))),e=e.current.alternate,e.flags|=65536,r&=-r,e.lanes|=r,i=Bt(i,n),r=sr(e.stateNode,i,r),Rc(e,r),ke!==4&&(ke=2)),!1;var f=Error(s(520),{cause:i});if(f=Bt(f,n),da===null?da=[f]:da.push(f),ke!==4&&(ke=2),t===null)return!0;i=Bt(i,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=r&-r,n.lanes|=e,e=sr(n.stateNode,i,e),Rc(n,e),!1;case 1:if(t=n.type,f=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||f!==null&&typeof f.componentDidCatch=="function"&&(Yn===null||!Yn.has(f))))return n.flags|=65536,r&=-r,n.lanes|=r,r=sd(r),ud(r,e,n,i),Rc(n,r),!1}n=n.return}while(n!==null);return!1}var ur=Error(s(461)),Xe=!1;function it(e,t,n,i){t.child=e===null?oh(t,null,n,i):gl(t,e.child,n,i)}function cd(e,t,n,i,r){n=n.render;var f=t.ref;if("ref"in i){var d={};for(var y in i)y!=="ref"&&(d[y]=i[y])}else d=i;return ol(t),i=$c(e,t,n,d,f,r),y=Gc(),e!==null&&!Xe?(Kc(e,t,r),dn(e,t,r)):(ve&&y&&Ac(t),t.flags|=1,it(e,t,i,r),t.child)}function rd(e,t,n,i,r){if(e===null){var f=n.type;return typeof f=="function"&&!Sc(f)&&f.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=f,fd(e,t,f,i,r)):(e=is(n.type,null,i,t,t.mode,r),e.ref=t.ref,e.return=t,t.child=e)}if(f=e.child,!gr(e,r)){var d=f.memoizedProps;if(n=n.compare,n=n!==null?n:Vi,n(d,i)&&e.ref===t.ref)return dn(e,t,r)}return t.flags|=1,e=un(f,i),e.ref=t.ref,e.return=t,t.child=e}function fd(e,t,n,i,r){if(e!==null){var f=e.memoizedProps;if(Vi(f,i)&&e.ref===t.ref)if(Xe=!1,t.pendingProps=i=f,gr(e,r))(e.flags&131072)!==0&&(Xe=!0);else return t.lanes=e.lanes,dn(e,t,r)}return cr(e,t,n,i,r)}function od(e,t,n,i){var r=i.children,f=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),i.mode==="hidden"){if((t.flags&128)!==0){if(f=f!==null?f.baseLanes|n:n,e!==null){for(i=t.child=e.child,r=0;i!==null;)r=r|i.lanes|i.childLanes,i=i.sibling;i=r&~f}else i=0,t.child=null;return hd(e,t,f,n,i)}if((n&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&cs(t,f!==null?f.cachePool:null),f!==null?mh(t,f):qc(),gh(t);else return i=t.lanes=536870912,hd(e,t,f!==null?f.baseLanes|n:n,n,i)}else f!==null?(cs(t,f.cachePool),mh(t,f),Bn(),t.memoizedState=null):(e!==null&&cs(t,null),qc(),Bn());return it(e,t,r,n),t.child}function sa(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function hd(e,t,n,i,r){var f=Dc();return f=f===null?null:{parent:Ve._currentValue,pool:f},t.memoizedState={baseLanes:n,cachePool:f},e!==null&&cs(t,null),qc(),gh(t),e!==null&&Vl(e,t,i,!0),t.childLanes=r,null}function ws(e,t){return t=_s({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function dd(e,t,n){return gl(t,e.child,null,n),e=ws(t,t.pendingProps),e.flags|=2,Mt(t),t.memoizedState=null,e}function y0(e,t,n){var i=t.pendingProps,r=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(ve){if(i.mode==="hidden")return e=ws(t,i),t.lanes=536870912,sa(null,e);if(Hc(t),(e=De)?(e=Om(e,Ht),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},n=Wo(e),n.return=t,t.child=n,nt=t,De=null)):e=null,e===null)throw xn(t);return t.lanes=536870912,null}return ws(t,i)}var f=e.memoizedState;if(f!==null){var d=f.dehydrated;if(Hc(t),r)if(t.flags&256)t.flags&=-257,t=dd(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(Xe||Vl(e,t,n,!1),r=(n&e.childLanes)!==0,Xe||r){if(i=ze,i!==null&&(d=no(i,n),d!==0&&d!==f.retryLane))throw f.retryLane=d,ul(e,d),vt(i,e,d),ur;js(),t=dd(e,t,n)}else e=f.treeContext,De=$t(d.nextSibling),nt=t,ve=!0,zn=null,Ht=!1,e!==null&&Po(t,e),t=ws(t,i),t.flags|=4096;return t}return e=un(e.child,{mode:i.mode,children:i.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Os(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function cr(e,t,n,i,r){return ol(t),n=$c(e,t,n,i,void 0,r),i=Gc(),e!==null&&!Xe?(Kc(e,t,r),dn(e,t,r)):(ve&&i&&Ac(t),t.flags|=1,it(e,t,n,r),t.child)}function md(e,t,n,i,r,f){return ol(t),t.updateQueue=null,n=yh(t,i,n,r),ph(e),i=Gc(),e!==null&&!Xe?(Kc(e,t,f),dn(e,t,f)):(ve&&i&&Ac(t),t.flags|=1,it(e,t,n,f),t.child)}function gd(e,t,n,i,r){if(ol(t),t.stateNode===null){var f=Yl,d=n.contextType;typeof d=="object"&&d!==null&&(f=lt(d)),f=new n(i,f),t.memoizedState=f.state!==null&&f.state!==void 0?f.state:null,f.updater=ar,t.stateNode=f,f._reactInternals=t,f=t.stateNode,f.props=i,f.state=t.memoizedState,f.refs={},Uc(t),d=n.contextType,f.context=typeof d=="object"&&d!==null?lt(d):Yl,f.state=t.memoizedState,d=n.getDerivedStateFromProps,typeof d=="function"&&(ir(t,n,d,i),f.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof f.getSnapshotBeforeUpdate=="function"||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(d=f.state,typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount(),d!==f.state&&ar.enqueueReplaceState(f,f.state,null),ta(t,i,f,r),ea(),f.state=t.memoizedState),typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!0}else if(e===null){f=t.stateNode;var y=t.memoizedProps,S=yl(n,y);f.props=S;var z=f.context,B=n.contextType;d=Yl,typeof B=="object"&&B!==null&&(d=lt(B));var H=n.getDerivedStateFromProps;B=typeof H=="function"||typeof f.getSnapshotBeforeUpdate=="function",y=t.pendingProps!==y,B||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(y||z!==d)&&td(t,f,i,d),Ln=!1;var D=t.memoizedState;f.state=D,ta(t,i,f,r),ea(),z=t.memoizedState,y||D!==z||Ln?(typeof H=="function"&&(ir(t,n,H,i),z=t.memoizedState),(S=Ln||ed(t,n,S,i,D,z,d))?(B||typeof f.UNSAFE_componentWillMount!="function"&&typeof f.componentWillMount!="function"||(typeof f.componentWillMount=="function"&&f.componentWillMount(),typeof f.UNSAFE_componentWillMount=="function"&&f.UNSAFE_componentWillMount()),typeof f.componentDidMount=="function"&&(t.flags|=4194308)):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=i,t.memoizedState=z),f.props=i,f.state=z,f.context=d,i=S):(typeof f.componentDidMount=="function"&&(t.flags|=4194308),i=!1)}else{f=t.stateNode,jc(e,t),d=t.memoizedProps,B=yl(n,d),f.props=B,H=t.pendingProps,D=f.context,z=n.contextType,S=Yl,typeof z=="object"&&z!==null&&(S=lt(z)),y=n.getDerivedStateFromProps,(z=typeof y=="function"||typeof f.getSnapshotBeforeUpdate=="function")||typeof f.UNSAFE_componentWillReceiveProps!="function"&&typeof f.componentWillReceiveProps!="function"||(d!==H||D!==S)&&td(t,f,i,S),Ln=!1,D=t.memoizedState,f.state=D,ta(t,i,f,r),ea();var j=t.memoizedState;d!==H||D!==j||Ln||e!==null&&e.dependencies!==null&&ss(e.dependencies)?(typeof y=="function"&&(ir(t,n,y,i),j=t.memoizedState),(B=Ln||ed(t,n,B,i,D,j,S)||e!==null&&e.dependencies!==null&&ss(e.dependencies))?(z||typeof f.UNSAFE_componentWillUpdate!="function"&&typeof f.componentWillUpdate!="function"||(typeof f.componentWillUpdate=="function"&&f.componentWillUpdate(i,j,S),typeof f.UNSAFE_componentWillUpdate=="function"&&f.UNSAFE_componentWillUpdate(i,j,S)),typeof f.componentDidUpdate=="function"&&(t.flags|=4),typeof f.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),t.memoizedProps=i,t.memoizedState=j),f.props=i,f.state=j,f.context=S,i=B):(typeof f.componentDidUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=4),typeof f.getSnapshotBeforeUpdate!="function"||d===e.memoizedProps&&D===e.memoizedState||(t.flags|=1024),i=!1)}return f=i,Os(e,t),i=(t.flags&128)!==0,f||i?(f=t.stateNode,n=i&&typeof n.getDerivedStateFromError!="function"?null:f.render(),t.flags|=1,e!==null&&i?(t.child=gl(t,e.child,null,r),t.child=gl(t,null,n,r)):it(e,t,n,r),t.memoizedState=f.state,e=t.child):e=dn(e,t,r),e}function pd(e,t,n,i){return rl(),t.flags|=256,it(e,t,n,i),t.child}var rr={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function fr(e){return{baseLanes:e,cachePool:ah()}}function or(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=zt),e}function yd(e,t,n){var i=t.pendingProps,r=!1,f=(t.flags&128)!==0,d;if((d=f)||(d=e!==null&&e.memoizedState===null?!1:(Ye.current&2)!==0),d&&(r=!0,t.flags&=-129),d=(t.flags&32)!==0,t.flags&=-33,e===null){if(ve){if(r?Rn(t):Bn(),(e=De)?(e=Om(e,Ht),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Cn!==null?{id:Ft,overflow:It}:null,retryLane:536870912,hydrationErrors:null},n=Wo(e),n.return=t,t.child=n,nt=t,De=null)):e=null,e===null)throw xn(t);return Xr(e)?t.lanes=32:t.lanes=536870912,null}var y=i.children;return i=i.fallback,r?(Bn(),r=t.mode,y=_s({mode:"hidden",children:y},r),i=cl(i,r,n,null),y.return=t,i.return=t,y.sibling=i,t.child=y,i=t.child,i.memoizedState=fr(n),i.childLanes=or(e,d,n),t.memoizedState=rr,sa(null,i)):(Rn(t),hr(t,y))}var S=e.memoizedState;if(S!==null&&(y=S.dehydrated,y!==null)){if(f)t.flags&256?(Rn(t),t.flags&=-257,t=dr(e,t,n)):t.memoizedState!==null?(Bn(),t.child=e.child,t.flags|=128,t=null):(Bn(),y=i.fallback,r=t.mode,i=_s({mode:"visible",children:i.children},r),y=cl(y,r,n,null),y.flags|=2,i.return=t,y.return=t,i.sibling=y,t.child=i,gl(t,e.child,null,n),i=t.child,i.memoizedState=fr(n),i.childLanes=or(e,d,n),t.memoizedState=rr,t=sa(null,i));else if(Rn(t),Xr(y)){if(d=y.nextSibling&&y.nextSibling.dataset,d)var z=d.dgst;d=z,i=Error(s(419)),i.stack="",i.digest=d,Zi({value:i,source:null,stack:null}),t=dr(e,t,n)}else if(Xe||Vl(e,t,n,!1),d=(n&e.childLanes)!==0,Xe||d){if(d=ze,d!==null&&(i=no(d,n),i!==0&&i!==S.retryLane))throw S.retryLane=i,ul(e,i),vt(d,e,i),ur;Qr(y)||js(),t=dr(e,t,n)}else Qr(y)?(t.flags|=192,t.child=e.child,t=null):(e=S.treeContext,De=$t(y.nextSibling),nt=t,ve=!0,zn=null,Ht=!1,e!==null&&Po(t,e),t=hr(t,i.children),t.flags|=4096);return t}return r?(Bn(),y=i.fallback,r=t.mode,S=e.child,z=S.sibling,i=un(S,{mode:"hidden",children:i.children}),i.subtreeFlags=S.subtreeFlags&65011712,z!==null?y=un(z,y):(y=cl(y,r,n,null),y.flags|=2),y.return=t,i.return=t,i.sibling=y,t.child=i,sa(null,i),i=t.child,y=e.child.memoizedState,y===null?y=fr(n):(r=y.cachePool,r!==null?(S=Ve._currentValue,r=r.parent!==S?{parent:S,pool:S}:r):r=ah(),y={baseLanes:y.baseLanes|n,cachePool:r}),i.memoizedState=y,i.childLanes=or(e,d,n),t.memoizedState=rr,sa(e.child,i)):(Rn(t),n=e.child,e=n.sibling,n=un(n,{mode:"visible",children:i.children}),n.return=t,n.sibling=null,e!==null&&(d=t.deletions,d===null?(t.deletions=[e],t.flags|=16):d.push(e)),t.child=n,t.memoizedState=null,n)}function hr(e,t){return t=_s({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function _s(e,t){return e=_t(22,e,null,t),e.lanes=0,e}function dr(e,t,n){return gl(t,e.child,null,n),e=hr(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function vd(e,t,n){e.lanes|=t;var i=e.alternate;i!==null&&(i.lanes|=t),Mc(e.return,t,n)}function mr(e,t,n,i,r,f){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:i,tail:n,tailMode:r,treeForkCount:f}:(d.isBackwards=t,d.rendering=null,d.renderingStartTime=0,d.last=i,d.tail=n,d.tailMode=r,d.treeForkCount=f)}function bd(e,t,n){var i=t.pendingProps,r=i.revealOrder,f=i.tail;i=i.children;var d=Ye.current,y=(d&2)!==0;if(y?(d=d&1|2,t.flags|=128):d&=1,F(Ye,d),it(e,t,i,n),i=ve?Xi:0,!y&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&vd(e,n,t);else if(e.tag===19)vd(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(r){case"forwards":for(n=t.child,r=null;n!==null;)e=n.alternate,e!==null&&ms(e)===null&&(r=n),n=n.sibling;n=r,n===null?(r=t.child,t.child=null):(r=n.sibling,n.sibling=null),mr(t,!1,r,n,f,i);break;case"backwards":case"unstable_legacy-backwards":for(n=null,r=t.child,t.child=null;r!==null;){if(e=r.alternate,e!==null&&ms(e)===null){t.child=r;break}e=r.sibling,r.sibling=n,n=r,r=e}mr(t,!0,n,null,f,i);break;case"together":mr(t,!1,null,null,void 0,i);break;default:t.memoizedState=null}return t.child}function dn(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Hn|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Vl(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=un(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=un(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function gr(e,t){return(e.lanes&t)!==0?!0:(e=e.dependencies,!!(e!==null&&ss(e)))}function v0(e,t,n){switch(t.tag){case 3:rt(t,t.stateNode.containerInfo),Dn(t,Ve,e.memoizedState.cache),rl();break;case 27:case 5:Di(t);break;case 4:rt(t,t.stateNode.containerInfo);break;case 10:Dn(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Hc(t),null;break;case 13:var i=t.memoizedState;if(i!==null)return i.dehydrated!==null?(Rn(t),t.flags|=128,null):(n&t.child.childLanes)!==0?yd(e,t,n):(Rn(t),e=dn(e,t,n),e!==null?e.sibling:null);Rn(t);break;case 19:var r=(e.flags&128)!==0;if(i=(n&t.childLanes)!==0,i||(Vl(e,t,n,!1),i=(n&t.childLanes)!==0),r){if(i)return bd(e,t,n);t.flags|=128}if(r=t.memoizedState,r!==null&&(r.rendering=null,r.tail=null,r.lastEffect=null),F(Ye,Ye.current),i)break;return null;case 22:return t.lanes=0,od(e,t,n,t.pendingProps);case 24:Dn(t,Ve,e.memoizedState.cache)}return dn(e,t,n)}function Sd(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Xe=!0;else{if(!gr(e,n)&&(t.flags&128)===0)return Xe=!1,v0(e,t,n);Xe=(e.flags&131072)!==0}else Xe=!1,ve&&(t.flags&1048576)!==0&&Io(t,Xi,t.index);switch(t.lanes=0,t.tag){case 16:e:{var i=t.pendingProps;if(e=dl(t.elementType),t.type=e,typeof e=="function")Sc(e)?(i=yl(e,i),t.tag=1,t=gd(null,t,e,i,n)):(t.tag=0,t=cr(null,t,e,i,n));else{if(e!=null){var r=e.$$typeof;if(r===Q){t.tag=11,t=cd(null,t,e,i,n);break e}else if(r===q){t.tag=14,t=rd(null,t,e,i,n);break e}}throw t=_e(e)||e,Error(s(306,t,""))}}return t;case 0:return cr(e,t,t.type,t.pendingProps,n);case 1:return i=t.type,r=yl(i,t.pendingProps),gd(e,t,i,r,n);case 3:e:{if(rt(t,t.stateNode.containerInfo),e===null)throw Error(s(387));i=t.pendingProps;var f=t.memoizedState;r=f.element,jc(e,t),ta(t,i,null,n);var d=t.memoizedState;if(i=d.cache,Dn(t,Ve,i),i!==f.cache&&Cc(t,[Ve],n,!0),ea(),i=d.element,f.isDehydrated)if(f={element:i,isDehydrated:!1,cache:d.cache},t.updateQueue.baseState=f,t.memoizedState=f,t.flags&256){t=pd(e,t,i,n);break e}else if(i!==r){r=Bt(Error(s(424)),t),Zi(r),t=pd(e,t,i,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(De=$t(e.firstChild),nt=t,ve=!0,zn=null,Ht=!0,n=oh(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(rl(),i===r){t=dn(e,t,n);break e}it(e,t,i,n)}t=t.child}return t;case 26:return Os(e,t),e===null?(n=xm(t.type,null,t.pendingProps,null))?t.memoizedState=n:ve||(n=t.type,e=t.pendingProps,i=$s(he.current).createElement(n),i[tt]=t,i[ht]=e,at(i,n,e),Ie(i),t.stateNode=i):t.memoizedState=xm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Di(t),e===null&&ve&&(i=t.stateNode=Mm(t.type,t.pendingProps,he.current),nt=t,Ht=!0,r=De,Vn(t.type)?(Zr=r,De=$t(i.firstChild)):De=r),it(e,t,t.pendingProps.children,n),Os(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&ve&&((r=i=De)&&(i=Z0(i,t.type,t.pendingProps,Ht),i!==null?(t.stateNode=i,nt=t,De=$t(i.firstChild),Ht=!1,r=!0):r=!1),r||xn(t)),Di(t),r=t.type,f=t.pendingProps,d=e!==null?e.memoizedProps:null,i=f.children,Gr(r,f)?i=null:d!==null&&Gr(r,d)&&(t.flags|=32),t.memoizedState!==null&&(r=$c(e,t,r0,null,null,n),Ta._currentValue=r),Os(e,t),it(e,t,i,n),t.child;case 6:return e===null&&ve&&((e=n=De)&&(n=J0(n,t.pendingProps,Ht),n!==null?(t.stateNode=n,nt=t,De=null,e=!0):e=!1),e||xn(t)),null;case 13:return yd(e,t,n);case 4:return rt(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=gl(t,null,i,n):it(e,t,i,n),t.child;case 11:return cd(e,t,t.type,t.pendingProps,n);case 7:return it(e,t,t.pendingProps,n),t.child;case 8:return it(e,t,t.pendingProps.children,n),t.child;case 12:return it(e,t,t.pendingProps.children,n),t.child;case 10:return i=t.pendingProps,Dn(t,t.type,i.value),it(e,t,i.children,n),t.child;case 9:return r=t.type._context,i=t.pendingProps.children,ol(t),r=lt(r),i=i(r),t.flags|=1,it(e,t,i,n),t.child;case 14:return rd(e,t,t.type,t.pendingProps,n);case 15:return fd(e,t,t.type,t.pendingProps,n);case 19:return bd(e,t,n);case 31:return y0(e,t,n);case 22:return od(e,t,n,t.pendingProps);case 24:return ol(t),i=lt(Ve),e===null?(r=Dc(),r===null&&(r=ze,f=zc(),r.pooledCache=f,f.refCount++,f!==null&&(r.pooledCacheLanes|=n),r=f),t.memoizedState={parent:i,cache:r},Uc(t),Dn(t,Ve,r)):((e.lanes&n)!==0&&(jc(e,t),ta(t,null,null,n),ea()),r=e.memoizedState,f=t.memoizedState,r.parent!==i?(r={parent:i,cache:i},t.memoizedState=r,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=r),Dn(t,Ve,i)):(i=f.cache,Dn(t,Ve,i),i!==r.cache&&Cc(t,[Ve],n,!0))),it(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function mn(e){e.flags|=4}function pr(e,t,n,i,r){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(r&335544128)===r)if(e.stateNode.complete)e.flags|=8192;else if(Xd())e.flags|=8192;else throw ml=fs,Lc}else e.flags&=-16777217}function Td(e,t){if(t.type!=="stylesheet"||(t.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Rm(t))if(Xd())e.flags|=8192;else throw ml=fs,Lc}function Ns(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?Pf():536870912,e.lanes|=t,li|=t)}function ua(e,t){if(!ve)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var i=null;n!==null;)n.alternate!==null&&(i=n),n=n.sibling;i===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:i.sibling=null}}function Le(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,i=0;if(t)for(var r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags&65011712,i|=r.flags&65011712,r.return=e,r=r.sibling;else for(r=e.child;r!==null;)n|=r.lanes|r.childLanes,i|=r.subtreeFlags,i|=r.flags,r.return=e,r=r.sibling;return e.subtreeFlags|=i,e.childLanes=n,t}function b0(e,t,n){var i=t.pendingProps;switch(wc(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Le(t),null;case 1:return Le(t),null;case 3:return n=t.stateNode,i=null,e!==null&&(i=e.memoizedState.cache),t.memoizedState.cache!==i&&(t.flags|=2048),fn(Ve),He(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kl(t)?mn(t):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,_c())),Le(t),null;case 26:var r=t.type,f=t.memoizedState;return e===null?(mn(t),f!==null?(Le(t),Td(t,f)):(Le(t),pr(t,r,null,i,n))):f?f!==e.memoizedState?(mn(t),Le(t),Td(t,f)):(Le(t),t.flags&=-16777217):(e=e.memoizedProps,e!==i&&mn(t),Le(t),pr(t,r,e,i,n)),null;case 27:if(qa(t),n=he.current,r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Le(t),null}e=ee.current,Kl(t)?eh(t):(e=Mm(r,i,n),t.stateNode=e,mn(t))}return Le(t),null;case 5:if(qa(t),r=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(!i){if(t.stateNode===null)throw Error(s(166));return Le(t),null}if(f=ee.current,Kl(t))eh(t);else{var d=$s(he.current);switch(f){case 1:f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case 2:f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;default:switch(r){case"svg":f=d.createElementNS("http://www.w3.org/2000/svg",r);break;case"math":f=d.createElementNS("http://www.w3.org/1998/Math/MathML",r);break;case"script":f=d.createElement("div"),f.innerHTML="<script><\/script>",f=f.removeChild(f.firstChild);break;case"select":f=typeof i.is=="string"?d.createElement("select",{is:i.is}):d.createElement("select"),i.multiple?f.multiple=!0:i.size&&(f.size=i.size);break;default:f=typeof i.is=="string"?d.createElement(r,{is:i.is}):d.createElement(r)}}f[tt]=t,f[ht]=i;e:for(d=t.child;d!==null;){if(d.tag===5||d.tag===6)f.appendChild(d.stateNode);else if(d.tag!==4&&d.tag!==27&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;d=d.return}d.sibling.return=d.return,d=d.sibling}t.stateNode=f;e:switch(at(f,r,i),r){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}i&&mn(t)}}return Le(t),pr(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==i&&mn(t);else{if(typeof i!="string"&&t.stateNode===null)throw Error(s(166));if(e=he.current,Kl(t)){if(e=t.stateNode,n=t.memoizedProps,i=null,r=nt,r!==null)switch(r.tag){case 27:case 5:i=r.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||i!==null&&i.suppressHydrationWarning===!0||ym(e.nodeValue,n)),e||xn(t,!0)}else e=$s(e).createTextNode(i),e[tt]=t,t.stateNode=e}return Le(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(i=Kl(t),n!==null){if(e===null){if(!i)throw Error(s(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(s(557));e[tt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),e=!1}else n=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Mt(t),t):(Mt(t),null);if((t.flags&128)!==0)throw Error(s(558))}return Le(t),null;case 13:if(i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(r=Kl(t),i!==null&&i.dehydrated!==null){if(e===null){if(!r)throw Error(s(318));if(r=t.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(s(317));r[tt]=t}else rl(),(t.flags&128)===0&&(t.memoizedState=null),t.flags|=4;Le(t),r=!1}else r=_c(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=r),r=!0;if(!r)return t.flags&256?(Mt(t),t):(Mt(t),null)}return Mt(t),(t.flags&128)!==0?(t.lanes=n,t):(n=i!==null,e=e!==null&&e.memoizedState!==null,n&&(i=t.child,r=null,i.alternate!==null&&i.alternate.memoizedState!==null&&i.alternate.memoizedState.cachePool!==null&&(r=i.alternate.memoizedState.cachePool.pool),f=null,i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(f=i.memoizedState.cachePool.pool),f!==r&&(i.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ns(t,t.updateQueue),Le(t),null);case 4:return He(),e===null&&qr(t.stateNode.containerInfo),Le(t),null;case 10:return fn(t.type),Le(t),null;case 19:if(Y(Ye),i=t.memoizedState,i===null)return Le(t),null;if(r=(t.flags&128)!==0,f=i.rendering,f===null)if(r)ua(i,!1);else{if(ke!==0||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(f=ms(e),f!==null){for(t.flags|=128,ua(i,!1),e=f.updateQueue,t.updateQueue=e,Ns(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Jo(n,e),n=n.sibling;return F(Ye,Ye.current&1|2),ve&&cn(t,i.treeForkCount),t.child}e=e.sibling}i.tail!==null&&Et()>Ds&&(t.flags|=128,r=!0,ua(i,!1),t.lanes=4194304)}else{if(!r)if(e=ms(f),e!==null){if(t.flags|=128,r=!0,e=e.updateQueue,t.updateQueue=e,Ns(t,e),ua(i,!0),i.tail===null&&i.tailMode==="hidden"&&!f.alternate&&!ve)return Le(t),null}else 2*Et()-i.renderingStartTime>Ds&&n!==536870912&&(t.flags|=128,r=!0,ua(i,!1),t.lanes=4194304);i.isBackwards?(f.sibling=t.child,t.child=f):(e=i.last,e!==null?e.sibling=f:t.child=f,i.last=f)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Et(),e.sibling=null,n=Ye.current,F(Ye,r?n&1|2:n&1),ve&&cn(t,i.treeForkCount),e):(Le(t),null);case 22:case 23:return Mt(t),kc(),i=t.memoizedState!==null,e!==null?e.memoizedState!==null!==i&&(t.flags|=8192):i&&(t.flags|=8192),i?(n&536870912)!==0&&(t.flags&128)===0&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),n=t.updateQueue,n!==null&&Ns(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),i=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(i=t.memoizedState.cachePool.pool),i!==n&&(t.flags|=2048),e!==null&&Y(hl),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),fn(Ve),Le(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function S0(e,t){switch(wc(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return fn(Ve),He(),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return qa(t),null;case 31:if(t.memoizedState!==null){if(Mt(t),t.alternate===null)throw Error(s(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Mt(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));rl()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Y(Ye),null;case 4:return He(),null;case 10:return fn(t.type),null;case 22:case 23:return Mt(t),kc(),e!==null&&Y(hl),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return fn(Ve),null;case 25:return null;default:return null}}function Ed(e,t){switch(wc(t),t.tag){case 3:fn(Ve),He();break;case 26:case 27:case 5:qa(t);break;case 4:He();break;case 31:t.memoizedState!==null&&Mt(t);break;case 13:Mt(t);break;case 19:Y(Ye);break;case 10:fn(t.type);break;case 22:case 23:Mt(t),kc(),e!==null&&Y(hl);break;case 24:fn(Ve)}}function ca(e,t){try{var n=t.updateQueue,i=n!==null?n.lastEffect:null;if(i!==null){var r=i.next;n=r;do{if((n.tag&e)===e){i=void 0;var f=n.create,d=n.inst;i=f(),d.destroy=i}n=n.next}while(n!==r)}}catch(y){Oe(t,t.return,y)}}function qn(e,t,n){try{var i=t.updateQueue,r=i!==null?i.lastEffect:null;if(r!==null){var f=r.next;i=f;do{if((i.tag&e)===e){var d=i.inst,y=d.destroy;if(y!==void 0){d.destroy=void 0,r=t;var S=n,z=y;try{z()}catch(B){Oe(r,S,B)}}}i=i.next}while(i!==f)}}catch(B){Oe(t,t.return,B)}}function Ad(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{dh(t,n)}catch(i){Oe(e,e.return,i)}}}function wd(e,t,n){n.props=yl(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(i){Oe(e,t,i)}}function ra(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var i=e.stateNode;break;case 30:i=e.stateNode;break;default:i=e.stateNode}typeof n=="function"?e.refCleanup=n(i):n.current=i}}catch(r){Oe(e,t,r)}}function Pt(e,t){var n=e.ref,i=e.refCleanup;if(n!==null)if(typeof i=="function")try{i()}catch(r){Oe(e,t,r)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(r){Oe(e,t,r)}else n.current=null}function Od(e){var t=e.type,n=e.memoizedProps,i=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&i.focus();break e;case"img":n.src?i.src=n.src:n.srcSet&&(i.srcset=n.srcSet)}}catch(r){Oe(e,e.return,r)}}function yr(e,t,n){try{var i=e.stateNode;$0(i,e.type,n,t),i[ht]=t}catch(r){Oe(e,e.return,r)}}function _d(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Vn(e.type)||e.tag===4}function vr(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||_d(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Vn(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function br(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=an));else if(i!==4&&(i===27&&Vn(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(br(e,t,n),e=e.sibling;e!==null;)br(e,t,n),e=e.sibling}function Ms(e,t,n){var i=e.tag;if(i===5||i===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(i!==4&&(i===27&&Vn(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Ms(e,t,n),e=e.sibling;e!==null;)Ms(e,t,n),e=e.sibling}function Nd(e){var t=e.stateNode,n=e.memoizedProps;try{for(var i=e.type,r=t.attributes;r.length;)t.removeAttributeNode(r[0]);at(t,i,n),t[tt]=e,t[ht]=n}catch(f){Oe(e,e.return,f)}}var gn=!1,Ze=!1,Sr=!1,Md=typeof WeakSet=="function"?WeakSet:Set,Pe=null;function T0(e,t){if(e=e.containerInfo,Yr=Js,e=Ho(e),dc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var r=i.anchorOffset,f=i.focusNode;i=i.focusOffset;try{n.nodeType,f.nodeType}catch{n=null;break e}var d=0,y=-1,S=-1,z=0,B=0,H=e,D=null;t:for(;;){for(var j;H!==n||r!==0&&H.nodeType!==3||(y=d+r),H!==f||i!==0&&H.nodeType!==3||(S=d+i),H.nodeType===3&&(d+=H.nodeValue.length),(j=H.firstChild)!==null;)D=H,H=j;for(;;){if(H===e)break t;if(D===n&&++z===r&&(y=d),D===f&&++B===i&&(S=d),(j=H.nextSibling)!==null)break;H=D,D=H.parentNode}H=j}n=y===-1||S===-1?null:{start:y,end:S}}else n=null}n=n||{start:0,end:0}}else n=null;for($r={focusedElem:e,selectionRange:n},Js=!1,Pe=t;Pe!==null;)if(t=Pe,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Pe=e;else for(;Pe!==null;){switch(t=Pe,f=t.alternate,e=t.flags,t.tag){case 0:if((e&4)!==0&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)r=e[n],r.ref.impl=r.nextImpl;break;case 11:case 15:break;case 1:if((e&1024)!==0&&f!==null){e=void 0,n=t,r=f.memoizedProps,f=f.memoizedState,i=n.stateNode;try{var P=yl(n.type,r);e=i.getSnapshotBeforeUpdate(P,f),i.__reactInternalSnapshotBeforeUpdate=e}catch(le){Oe(n,n.return,le)}}break;case 3:if((e&1024)!==0){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)Vr(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Vr(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,Pe=e;break}Pe=t.return}}function Cd(e,t,n){var i=n.flags;switch(n.tag){case 0:case 11:case 15:yn(e,n),i&4&&ca(5,n);break;case 1:if(yn(e,n),i&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(d){Oe(n,n.return,d)}else{var r=yl(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(r,t,e.__reactInternalSnapshotBeforeUpdate)}catch(d){Oe(n,n.return,d)}}i&64&&Ad(n),i&512&&ra(n,n.return);break;case 3:if(yn(e,n),i&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{dh(e,t)}catch(d){Oe(n,n.return,d)}}break;case 27:t===null&&i&4&&Nd(n);case 26:case 5:yn(e,n),t===null&&i&4&&Od(n),i&512&&ra(n,n.return);break;case 12:yn(e,n);break;case 31:yn(e,n),i&4&&Dd(e,n);break;case 13:yn(e,n),i&4&&Ld(e,n),i&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=z0.bind(null,n),W0(e,n))));break;case 22:if(i=n.memoizedState!==null||gn,!i){t=t!==null&&t.memoizedState!==null||Ze,r=gn;var f=Ze;gn=i,(Ze=t)&&!f?vn(e,n,(n.subtreeFlags&8772)!==0):yn(e,n),gn=r,Ze=f}break;case 30:break;default:yn(e,n)}}function zd(e){var t=e.alternate;t!==null&&(e.alternate=null,zd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Wu(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Ue=null,mt=!1;function pn(e,t,n){for(n=n.child;n!==null;)xd(e,t,n),n=n.sibling}function xd(e,t,n){if(At&&typeof At.onCommitFiberUnmount=="function")try{At.onCommitFiberUnmount(Li,n)}catch{}switch(n.tag){case 26:Ze||Pt(n,t),pn(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ze||Pt(n,t);var i=Ue,r=mt;Vn(n.type)&&(Ue=n.stateNode,mt=!1),pn(e,t,n),va(n.stateNode),Ue=i,mt=r;break;case 5:Ze||Pt(n,t);case 6:if(i=Ue,r=mt,Ue=null,pn(e,t,n),Ue=i,mt=r,Ue!==null)if(mt)try{(Ue.nodeType===9?Ue.body:Ue.nodeName==="HTML"?Ue.ownerDocument.body:Ue).removeChild(n.stateNode)}catch(f){Oe(n,t,f)}else try{Ue.removeChild(n.stateNode)}catch(f){Oe(n,t,f)}break;case 18:Ue!==null&&(mt?(e=Ue,Am(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),oi(e)):Am(Ue,n.stateNode));break;case 4:i=Ue,r=mt,Ue=n.stateNode.containerInfo,mt=!0,pn(e,t,n),Ue=i,mt=r;break;case 0:case 11:case 14:case 15:qn(2,n,t),Ze||qn(4,n,t),pn(e,t,n);break;case 1:Ze||(Pt(n,t),i=n.stateNode,typeof i.componentWillUnmount=="function"&&wd(n,t,i)),pn(e,t,n);break;case 21:pn(e,t,n);break;case 22:Ze=(i=Ze)||n.memoizedState!==null,pn(e,t,n),Ze=i;break;default:pn(e,t,n)}}function Dd(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{oi(e)}catch(n){Oe(t,t.return,n)}}}function Ld(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{oi(e)}catch(n){Oe(t,t.return,n)}}function E0(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Md),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Md),t;default:throw Error(s(435,e.tag))}}function Cs(e,t){var n=E0(e);t.forEach(function(i){if(!n.has(i)){n.add(i);var r=x0.bind(null,e,i);i.then(r,r)}})}function gt(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var r=n[i],f=e,d=t,y=d;e:for(;y!==null;){switch(y.tag){case 27:if(Vn(y.type)){Ue=y.stateNode,mt=!1;break e}break;case 5:Ue=y.stateNode,mt=!1;break e;case 3:case 4:Ue=y.stateNode.containerInfo,mt=!0;break e}y=y.return}if(Ue===null)throw Error(s(160));xd(f,d,r),Ue=null,mt=!1,f=r.alternate,f!==null&&(f.return=null),r.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Ud(t,e),t=t.sibling}var Xt=null;function Ud(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gt(t,e),pt(e),i&4&&(qn(3,e,e.return),ca(3,e),qn(5,e,e.return));break;case 1:gt(t,e),pt(e),i&512&&(Ze||n===null||Pt(n,n.return)),i&64&&gn&&(e=e.updateQueue,e!==null&&(i=e.callbacks,i!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?i:n.concat(i))));break;case 26:var r=Xt;if(gt(t,e),pt(e),i&512&&(Ze||n===null||Pt(n,n.return)),i&4){var f=n!==null?n.memoizedState:null;if(i=e.memoizedState,n===null)if(i===null)if(e.stateNode===null){e:{i=e.type,n=e.memoizedProps,r=r.ownerDocument||r;t:switch(i){case"title":f=r.getElementsByTagName("title")[0],(!f||f[Ri]||f[tt]||f.namespaceURI==="http://www.w3.org/2000/svg"||f.hasAttribute("itemprop"))&&(f=r.createElement(i),r.head.insertBefore(f,r.querySelector("head > title"))),at(f,i,n),f[tt]=e,Ie(f),i=f;break e;case"link":var d=Um("link","href",r).get(i+(n.href||""));if(d){for(var y=0;y<d.length;y++)if(f=d[y],f.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&f.getAttribute("rel")===(n.rel==null?null:n.rel)&&f.getAttribute("title")===(n.title==null?null:n.title)&&f.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){d.splice(y,1);break t}}f=r.createElement(i),at(f,i,n),r.head.appendChild(f);break;case"meta":if(d=Um("meta","content",r).get(i+(n.content||""))){for(y=0;y<d.length;y++)if(f=d[y],f.getAttribute("content")===(n.content==null?null:""+n.content)&&f.getAttribute("name")===(n.name==null?null:n.name)&&f.getAttribute("property")===(n.property==null?null:n.property)&&f.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&f.getAttribute("charset")===(n.charSet==null?null:n.charSet)){d.splice(y,1);break t}}f=r.createElement(i),at(f,i,n),r.head.appendChild(f);break;default:throw Error(s(468,i))}f[tt]=e,Ie(f),i=f}e.stateNode=i}else jm(r,e.type,e.stateNode);else e.stateNode=Lm(r,i,e.memoizedProps);else f!==i?(f===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):f.count--,i===null?jm(r,e.type,e.stateNode):Lm(r,i,e.memoizedProps)):i===null&&e.stateNode!==null&&yr(e,e.memoizedProps,n.memoizedProps)}break;case 27:gt(t,e),pt(e),i&512&&(Ze||n===null||Pt(n,n.return)),n!==null&&i&4&&yr(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gt(t,e),pt(e),i&512&&(Ze||n===null||Pt(n,n.return)),e.flags&32){r=e.stateNode;try{Ul(r,"")}catch(P){Oe(e,e.return,P)}}i&4&&e.stateNode!=null&&(r=e.memoizedProps,yr(e,r,n!==null?n.memoizedProps:r)),i&1024&&(Sr=!0);break;case 6:if(gt(t,e),pt(e),i&4){if(e.stateNode===null)throw Error(s(162));i=e.memoizedProps,n=e.stateNode;try{n.nodeValue=i}catch(P){Oe(e,e.return,P)}}break;case 3:if(Vs=null,r=Xt,Xt=Gs(t.containerInfo),gt(t,e),Xt=r,pt(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{oi(t.containerInfo)}catch(P){Oe(e,e.return,P)}Sr&&(Sr=!1,jd(e));break;case 4:i=Xt,Xt=Gs(e.stateNode.containerInfo),gt(t,e),pt(e),Xt=i;break;case 12:gt(t,e),pt(e);break;case 31:gt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 13:gt(t,e),pt(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(xs=Et()),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 22:r=e.memoizedState!==null;var S=n!==null&&n.memoizedState!==null,z=gn,B=Ze;if(gn=z||r,Ze=B||S,gt(t,e),Ze=B,gn=z,pt(e),i&8192)e:for(t=e.stateNode,t._visibility=r?t._visibility&-2:t._visibility|1,r&&(n===null||S||gn||Ze||vl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){S=n=t;try{if(f=S.stateNode,r)d=f.style,typeof d.setProperty=="function"?d.setProperty("display","none","important"):d.display="none";else{y=S.stateNode;var H=S.memoizedProps.style,D=H!=null&&H.hasOwnProperty("display")?H.display:null;y.style.display=D==null||typeof D=="boolean"?"":(""+D).trim()}}catch(P){Oe(S,S.return,P)}}}else if(t.tag===6){if(n===null){S=t;try{S.stateNode.nodeValue=r?"":S.memoizedProps}catch(P){Oe(S,S.return,P)}}}else if(t.tag===18){if(n===null){S=t;try{var j=S.stateNode;r?wm(j,!0):wm(S.stateNode,!1)}catch(P){Oe(S,S.return,P)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}i&4&&(i=e.updateQueue,i!==null&&(n=i.retryQueue,n!==null&&(i.retryQueue=null,Cs(e,n))));break;case 19:gt(t,e),pt(e),i&4&&(i=e.updateQueue,i!==null&&(e.updateQueue=null,Cs(e,i)));break;case 30:break;case 21:break;default:gt(t,e),pt(e)}}function pt(e){var t=e.flags;if(t&2){try{for(var n,i=e.return;i!==null;){if(_d(i)){n=i;break}i=i.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var r=n.stateNode,f=vr(e);Ms(e,f,r);break;case 5:var d=n.stateNode;n.flags&32&&(Ul(d,""),n.flags&=-33);var y=vr(e);Ms(e,y,d);break;case 3:case 4:var S=n.stateNode.containerInfo,z=vr(e);br(e,z,S);break;default:throw Error(s(161))}}catch(B){Oe(e,e.return,B)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jd(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;jd(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function yn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Cd(e,t.alternate,t),t=t.sibling}function vl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:qn(4,t,t.return),vl(t);break;case 1:Pt(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&wd(t,t.return,n),vl(t);break;case 27:va(t.stateNode);case 26:case 5:Pt(t,t.return),vl(t);break;case 22:t.memoizedState===null&&vl(t);break;case 30:vl(t);break;default:vl(t)}e=e.sibling}}function vn(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var i=t.alternate,r=e,f=t,d=f.flags;switch(f.tag){case 0:case 11:case 15:vn(r,f,n),ca(4,f);break;case 1:if(vn(r,f,n),i=f,r=i.stateNode,typeof r.componentDidMount=="function")try{r.componentDidMount()}catch(z){Oe(i,i.return,z)}if(i=f,r=i.updateQueue,r!==null){var y=i.stateNode;try{var S=r.shared.hiddenCallbacks;if(S!==null)for(r.shared.hiddenCallbacks=null,r=0;r<S.length;r++)hh(S[r],y)}catch(z){Oe(i,i.return,z)}}n&&d&64&&Ad(f),ra(f,f.return);break;case 27:Nd(f);case 26:case 5:vn(r,f,n),n&&i===null&&d&4&&Od(f),ra(f,f.return);break;case 12:vn(r,f,n);break;case 31:vn(r,f,n),n&&d&4&&Dd(r,f);break;case 13:vn(r,f,n),n&&d&4&&Ld(r,f);break;case 22:f.memoizedState===null&&vn(r,f,n),ra(f,f.return);break;case 30:break;default:vn(r,f,n)}t=t.sibling}}function Tr(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&Ji(n))}function Er(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e))}function Zt(e,t,n,i){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)Rd(e,t,n,i),t=t.sibling}function Rd(e,t,n,i){var r=t.flags;switch(t.tag){case 0:case 11:case 15:Zt(e,t,n,i),r&2048&&ca(9,t);break;case 1:Zt(e,t,n,i);break;case 3:Zt(e,t,n,i),r&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&Ji(e)));break;case 12:if(r&2048){Zt(e,t,n,i),e=t.stateNode;try{var f=t.memoizedProps,d=f.id,y=f.onPostCommit;typeof y=="function"&&y(d,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(S){Oe(t,t.return,S)}}else Zt(e,t,n,i);break;case 31:Zt(e,t,n,i);break;case 13:Zt(e,t,n,i);break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState!==null?f._visibility&2?Zt(e,t,n,i):fa(e,t):f._visibility&2?Zt(e,t,n,i):(f._visibility|=2,ei(e,t,n,i,(t.subtreeFlags&10256)!==0||!1)),r&2048&&Tr(d,t);break;case 24:Zt(e,t,n,i),r&2048&&Er(t.alternate,t);break;default:Zt(e,t,n,i)}}function ei(e,t,n,i,r){for(r=r&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var f=e,d=t,y=n,S=i,z=d.flags;switch(d.tag){case 0:case 11:case 15:ei(f,d,y,S,r),ca(8,d);break;case 23:break;case 22:var B=d.stateNode;d.memoizedState!==null?B._visibility&2?ei(f,d,y,S,r):fa(f,d):(B._visibility|=2,ei(f,d,y,S,r)),r&&z&2048&&Tr(d.alternate,d);break;case 24:ei(f,d,y,S,r),r&&z&2048&&Er(d.alternate,d);break;default:ei(f,d,y,S,r)}t=t.sibling}}function fa(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,i=t,r=i.flags;switch(i.tag){case 22:fa(n,i),r&2048&&Tr(i.alternate,i);break;case 24:fa(n,i),r&2048&&Er(i.alternate,i);break;default:fa(n,i)}t=t.sibling}}var oa=8192;function ti(e,t,n){if(e.subtreeFlags&oa)for(e=e.child;e!==null;)Bd(e,t,n),e=e.sibling}function Bd(e,t,n){switch(e.tag){case 26:ti(e,t,n),e.flags&oa&&e.memoizedState!==null&&c1(n,Xt,e.memoizedState,e.memoizedProps);break;case 5:ti(e,t,n);break;case 3:case 4:var i=Xt;Xt=Gs(e.stateNode.containerInfo),ti(e,t,n),Xt=i;break;case 22:e.memoizedState===null&&(i=e.alternate,i!==null&&i.memoizedState!==null?(i=oa,oa=16777216,ti(e,t,n),oa=i):ti(e,t,n));break;default:ti(e,t,n)}}function qd(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ha(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Pe=i,Hd(i,e)}qd(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)kd(e),e=e.sibling}function kd(e){switch(e.tag){case 0:case 11:case 15:ha(e),e.flags&2048&&qn(9,e,e.return);break;case 3:ha(e);break;case 12:ha(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,zs(e)):ha(e);break;default:ha(e)}}function zs(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var n=0;n<t.length;n++){var i=t[n];Pe=i,Hd(i,e)}qd(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:qn(8,t,t.return),zs(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,zs(t));break;default:zs(t)}e=e.sibling}}function Hd(e,t){for(;Pe!==null;){var n=Pe;switch(n.tag){case 0:case 11:case 15:qn(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var i=n.memoizedState.cachePool.pool;i!=null&&i.refCount++}break;case 24:Ji(n.memoizedState.cache)}if(i=n.child,i!==null)i.return=n,Pe=i;else e:for(n=e;Pe!==null;){i=Pe;var r=i.sibling,f=i.return;if(zd(i),i===n){Pe=null;break e}if(r!==null){r.return=f,Pe=r;break e}Pe=f}}}var A0={getCacheForType:function(e){var t=lt(Ve),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return lt(Ve).controller.signal}},w0=typeof WeakMap=="function"?WeakMap:Map,Ee=0,ze=null,de=null,pe=0,we=0,Ct=null,kn=!1,ni=!1,Ar=!1,bn=0,ke=0,Hn=0,bl=0,wr=0,zt=0,li=0,da=null,yt=null,Or=!1,xs=0,Yd=0,Ds=1/0,Ls=null,Yn=null,We=0,$n=null,ii=null,Sn=0,_r=0,Nr=null,$d=null,ma=0,Mr=null;function xt(){return(Ee&2)!==0&&pe!==0?pe&-pe:R.T!==null?Ur():lo()}function Gd(){if(zt===0)if((pe&536870912)===0||ve){var e=Ya;Ya<<=1,(Ya&3932160)===0&&(Ya=262144),zt=e}else zt=536870912;return e=Nt.current,e!==null&&(e.flags|=32),zt}function vt(e,t,n){(e===ze&&(we===2||we===9)||e.cancelPendingCommit!==null)&&(ai(e,0),Gn(e,pe,zt,!1)),ji(e,n),((Ee&2)===0||e!==ze)&&(e===ze&&((Ee&2)===0&&(bl|=n),ke===4&&Gn(e,pe,zt,!1)),en(e))}function Kd(e,t,n){if((Ee&6)!==0)throw Error(s(327));var i=!n&&(t&127)===0&&(t&e.expiredLanes)===0||Ui(e,t),r=i?N0(e,t):zr(e,t,!0),f=i;do{if(r===0){ni&&!i&&Gn(e,t,0,!1);break}else{if(n=e.current.alternate,f&&!O0(n)){r=zr(e,t,!1),f=!1;continue}if(r===2){if(f=t,e.errorRecoveryDisabledLanes&f)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){t=d;e:{var y=e;r=da;var S=y.current.memoizedState.isDehydrated;if(S&&(ai(y,d).flags|=256),d=zr(y,d,!1),d!==2){if(Ar&&!S){y.errorRecoveryDisabledLanes|=f,bl|=f,r=4;break e}f=yt,yt=r,f!==null&&(yt===null?yt=f:yt.push.apply(yt,f))}r=d}if(f=!1,r!==2)continue}}if(r===1){ai(e,0),Gn(e,t,0,!0);break}e:{switch(i=e,f=r,f){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:Gn(i,t,zt,!kn);break e;case 2:yt=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(r=xs+300-Et(),10<r)){if(Gn(i,t,zt,!kn),Ga(i,0,!0)!==0)break e;Sn=t,i.timeoutHandle=Tm(Vd.bind(null,i,n,yt,Ls,Or,t,zt,bl,li,kn,f,"Throttled",-0,0),r);break e}Vd(i,n,yt,Ls,Or,t,zt,bl,li,kn,f,null,-0,0)}}break}while(!0);en(e)}function Vd(e,t,n,i,r,f,d,y,S,z,B,H,D,j){if(e.timeoutHandle=-1,H=t.subtreeFlags,H&8192||(H&16785408)===16785408){H={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:an},Bd(t,f,H);var P=(f&62914560)===f?xs-Et():(f&4194048)===f?Yd-Et():0;if(P=r1(H,P),P!==null){Sn=f,e.cancelPendingCommit=P(Pd.bind(null,e,t,f,n,i,r,d,y,S,B,H,null,D,j)),Gn(e,f,d,!z);return}}Pd(e,t,f,n,i,r,d,y,S)}function O0(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var i=0;i<n.length;i++){var r=n[i],f=r.getSnapshot;r=r.value;try{if(!Ot(f(),r))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gn(e,t,n,i){t&=~wr,t&=~bl,e.suspendedLanes|=t,e.pingedLanes&=~t,i&&(e.warmLanes|=t),i=e.expirationTimes;for(var r=t;0<r;){var f=31-wt(r),d=1<<f;i[f]=-1,r&=~d}n!==0&&eo(e,n,t)}function Us(){return(Ee&6)===0?(ga(0),!1):!0}function Cr(){if(de!==null){if(we===0)var e=de.return;else e=de,rn=fl=null,Vc(e),Jl=null,Fi=0,e=de;for(;e!==null;)Ed(e.alternate,e),e=e.return;de=null}}function ai(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,V0(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Sn=0,Cr(),ze=e,de=n=un(e.current,null),pe=t,we=0,Ct=null,kn=!1,ni=Ui(e,t),Ar=!1,li=zt=wr=bl=Hn=ke=0,yt=da=null,Or=!1,(t&8)!==0&&(t|=t&32);var i=e.entangledLanes;if(i!==0)for(e=e.entanglements,i&=t;0<i;){var r=31-wt(i),f=1<<r;t|=e[r],i&=~f}return bn=t,ts(),n}function Qd(e,t){re=null,R.H=aa,t===Zl||t===rs?(t=ch(),we=3):t===Lc?(t=ch(),we=4):we=t===ur?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Ct=t,de===null&&(ke=1,As(e,Bt(t,e.current)))}function Xd(){var e=Nt.current;return e===null?!0:(pe&4194048)===pe?Yt===null:(pe&62914560)===pe||(pe&536870912)!==0?e===Yt:!1}function Zd(){var e=R.H;return R.H=aa,e===null?aa:e}function Jd(){var e=R.A;return R.A=A0,e}function js(){ke=4,kn||(pe&4194048)!==pe&&Nt.current!==null||(ni=!0),(Hn&134217727)===0&&(bl&134217727)===0||ze===null||Gn(ze,pe,zt,!1)}function zr(e,t,n){var i=Ee;Ee|=2;var r=Zd(),f=Jd();(ze!==e||pe!==t)&&(Ls=null,ai(e,t)),t=!1;var d=ke;e:do try{if(we!==0&&de!==null){var y=de,S=Ct;switch(we){case 8:Cr(),d=6;break e;case 3:case 2:case 9:case 6:Nt.current===null&&(t=!0);var z=we;if(we=0,Ct=null,si(e,y,S,z),n&&ni){d=0;break e}break;default:z=we,we=0,Ct=null,si(e,y,S,z)}}_0(),d=ke;break}catch(B){Qd(e,B)}while(!0);return t&&e.shellSuspendCounter++,rn=fl=null,Ee=i,R.H=r,R.A=f,de===null&&(ze=null,pe=0,ts()),d}function _0(){for(;de!==null;)Wd(de)}function N0(e,t){var n=Ee;Ee|=2;var i=Zd(),r=Jd();ze!==e||pe!==t?(Ls=null,Ds=Et()+500,ai(e,t)):ni=Ui(e,t);e:do try{if(we!==0&&de!==null){t=de;var f=Ct;t:switch(we){case 1:we=0,Ct=null,si(e,t,f,1);break;case 2:case 9:if(sh(f)){we=0,Ct=null,Fd(t);break}t=function(){we!==2&&we!==9||ze!==e||(we=7),en(e)},f.then(t,t);break e;case 3:we=7;break e;case 4:we=5;break e;case 7:sh(f)?(we=0,Ct=null,Fd(t)):(we=0,Ct=null,si(e,t,f,7));break;case 5:var d=null;switch(de.tag){case 26:d=de.memoizedState;case 5:case 27:var y=de;if(d?Rm(d):y.stateNode.complete){we=0,Ct=null;var S=y.sibling;if(S!==null)de=S;else{var z=y.return;z!==null?(de=z,Rs(z)):de=null}break t}}we=0,Ct=null,si(e,t,f,5);break;case 6:we=0,Ct=null,si(e,t,f,6);break;case 8:Cr(),ke=6;break e;default:throw Error(s(462))}}M0();break}catch(B){Qd(e,B)}while(!0);return rn=fl=null,R.H=i,R.A=r,Ee=n,de!==null?0:(ze=null,pe=0,ts(),ke)}function M0(){for(;de!==null&&!Fp();)Wd(de)}function Wd(e){var t=Sd(e.alternate,e,bn);e.memoizedProps=e.pendingProps,t===null?Rs(e):de=t}function Fd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=md(n,t,t.pendingProps,t.type,void 0,pe);break;case 11:t=md(n,t,t.pendingProps,t.type.render,t.ref,pe);break;case 5:Vc(t);default:Ed(n,t),t=de=Jo(t,bn),t=Sd(n,t,bn)}e.memoizedProps=e.pendingProps,t===null?Rs(e):de=t}function si(e,t,n,i){rn=fl=null,Vc(t),Jl=null,Fi=0;var r=t.return;try{if(p0(e,r,t,n,pe)){ke=1,As(e,Bt(n,e.current)),de=null;return}}catch(f){if(r!==null)throw de=r,f;ke=1,As(e,Bt(n,e.current)),de=null;return}t.flags&32768?(ve||i===1?e=!0:ni||(pe&536870912)!==0?e=!1:(kn=e=!0,(i===2||i===9||i===3||i===6)&&(i=Nt.current,i!==null&&i.tag===13&&(i.flags|=16384))),Id(t,e)):Rs(t)}function Rs(e){var t=e;do{if((t.flags&32768)!==0){Id(t,kn);return}e=t.return;var n=b0(t.alternate,t,bn);if(n!==null){de=n;return}if(t=t.sibling,t!==null){de=t;return}de=t=e}while(t!==null);ke===0&&(ke=5)}function Id(e,t){do{var n=S0(e.alternate,e);if(n!==null){n.flags&=32767,de=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){de=e;return}de=e=n}while(e!==null);ke=6,de=null}function Pd(e,t,n,i,r,f,d,y,S){e.cancelPendingCommit=null;do Bs();while(We!==0);if((Ee&6)!==0)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(f=t.lanes|t.childLanes,f|=vc,uy(e,n,f,d,y,S),e===ze&&(de=ze=null,pe=0),ii=t,$n=e,Sn=n,_r=f,Nr=r,$d=i,(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,D0(ka,function(){return im(),null})):(e.callbackNode=null,e.callbackPriority=0),i=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||i){i=R.T,R.T=null,r=G.p,G.p=2,d=Ee,Ee|=4;try{T0(e,t,n)}finally{Ee=d,G.p=r,R.T=i}}We=1,em(),tm(),nm()}}function em(){if(We===1){We=0;var e=$n,t=ii,n=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||n){n=R.T,R.T=null;var i=G.p;G.p=2;var r=Ee;Ee|=4;try{Ud(t,e);var f=$r,d=Ho(e.containerInfo),y=f.focusedElem,S=f.selectionRange;if(d!==y&&y&&y.ownerDocument&&ko(y.ownerDocument.documentElement,y)){if(S!==null&&dc(y)){var z=S.start,B=S.end;if(B===void 0&&(B=z),"selectionStart"in y)y.selectionStart=z,y.selectionEnd=Math.min(B,y.value.length);else{var H=y.ownerDocument||document,D=H&&H.defaultView||window;if(D.getSelection){var j=D.getSelection(),P=y.textContent.length,le=Math.min(S.start,P),Ce=S.end===void 0?le:Math.min(S.end,P);!j.extend&&le>Ce&&(d=Ce,Ce=le,le=d);var N=qo(y,le),O=qo(y,Ce);if(N&&O&&(j.rangeCount!==1||j.anchorNode!==N.node||j.anchorOffset!==N.offset||j.focusNode!==O.node||j.focusOffset!==O.offset)){var C=H.createRange();C.setStart(N.node,N.offset),j.removeAllRanges(),le>Ce?(j.addRange(C),j.extend(O.node,O.offset)):(C.setEnd(O.node,O.offset),j.addRange(C))}}}}for(H=[],j=y;j=j.parentNode;)j.nodeType===1&&H.push({element:j,left:j.scrollLeft,top:j.scrollTop});for(typeof y.focus=="function"&&y.focus(),y=0;y<H.length;y++){var k=H[y];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}Js=!!Yr,$r=Yr=null}finally{Ee=r,G.p=i,R.T=n}}e.current=t,We=2}}function tm(){if(We===2){We=0;var e=$n,t=ii,n=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||n){n=R.T,R.T=null;var i=G.p;G.p=2;var r=Ee;Ee|=4;try{Cd(e,t.alternate,t)}finally{Ee=r,G.p=i,R.T=n}}We=3}}function nm(){if(We===4||We===3){We=0,Ip();var e=$n,t=ii,n=Sn,i=$d;(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?We=5:(We=0,ii=$n=null,lm(e,e.pendingLanes));var r=e.pendingLanes;if(r===0&&(Yn=null),Zu(n),t=t.stateNode,At&&typeof At.onCommitFiberRoot=="function")try{At.onCommitFiberRoot(Li,t,void 0,(t.current.flags&128)===128)}catch{}if(i!==null){t=R.T,r=G.p,G.p=2,R.T=null;try{for(var f=e.onRecoverableError,d=0;d<i.length;d++){var y=i[d];f(y.value,{componentStack:y.stack})}}finally{R.T=t,G.p=r}}(Sn&3)!==0&&Bs(),en(e),r=e.pendingLanes,(n&261930)!==0&&(r&42)!==0?e===Mr?ma++:(ma=0,Mr=e):ma=0,ga(0)}}function lm(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,Ji(t)))}function Bs(){return em(),tm(),nm(),im()}function im(){if(We!==5)return!1;var e=$n,t=_r;_r=0;var n=Zu(Sn),i=R.T,r=G.p;try{G.p=32>n?32:n,R.T=null,n=Nr,Nr=null;var f=$n,d=Sn;if(We=0,ii=$n=null,Sn=0,(Ee&6)!==0)throw Error(s(331));var y=Ee;if(Ee|=4,kd(f.current),Rd(f,f.current,d,n),Ee=y,ga(0,!1),At&&typeof At.onPostCommitFiberRoot=="function")try{At.onPostCommitFiberRoot(Li,f)}catch{}return!0}finally{G.p=r,R.T=i,lm(e,t)}}function am(e,t,n){t=Bt(n,t),t=sr(e.stateNode,t,2),e=jn(e,t,2),e!==null&&(ji(e,2),en(e))}function Oe(e,t,n){if(e.tag===3)am(e,e,n);else for(;t!==null;){if(t.tag===3){am(t,e,n);break}else if(t.tag===1){var i=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Yn===null||!Yn.has(i))){e=Bt(n,e),n=sd(2),i=jn(t,n,2),i!==null&&(ud(n,i,t,e),ji(i,2),en(i));break}}t=t.return}}function xr(e,t,n){var i=e.pingCache;if(i===null){i=e.pingCache=new w0;var r=new Set;i.set(t,r)}else r=i.get(t),r===void 0&&(r=new Set,i.set(t,r));r.has(n)||(Ar=!0,r.add(n),e=C0.bind(null,e,t,n),t.then(e,e))}function C0(e,t,n){var i=e.pingCache;i!==null&&i.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,ze===e&&(pe&n)===n&&(ke===4||ke===3&&(pe&62914560)===pe&&300>Et()-xs?(Ee&2)===0&&ai(e,0):wr|=n,li===pe&&(li=0)),en(e)}function sm(e,t){t===0&&(t=Pf()),e=ul(e,t),e!==null&&(ji(e,t),en(e))}function z0(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),sm(e,n)}function x0(e,t){var n=0;switch(e.tag){case 31:case 13:var i=e.stateNode,r=e.memoizedState;r!==null&&(n=r.retryLane);break;case 19:i=e.stateNode;break;case 22:i=e.stateNode._retryCache;break;default:throw Error(s(314))}i!==null&&i.delete(t),sm(e,n)}function D0(e,t){return Ku(e,t)}var qs=null,ui=null,Dr=!1,ks=!1,Lr=!1,Kn=0;function en(e){e!==ui&&e.next===null&&(ui===null?qs=ui=e:ui=ui.next=e),ks=!0,Dr||(Dr=!0,U0())}function ga(e,t){if(!Lr&&ks){Lr=!0;do for(var n=!1,i=qs;i!==null;){if(e!==0){var r=i.pendingLanes;if(r===0)var f=0;else{var d=i.suspendedLanes,y=i.pingedLanes;f=(1<<31-wt(42|e)+1)-1,f&=r&~(d&~y),f=f&201326741?f&201326741|1:f?f|2:0}f!==0&&(n=!0,fm(i,f))}else f=pe,f=Ga(i,i===ze?f:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),(f&3)===0||Ui(i,f)||(n=!0,fm(i,f));i=i.next}while(n);Lr=!1}}function L0(){um()}function um(){ks=Dr=!1;var e=0;Kn!==0&&K0()&&(e=Kn);for(var t=Et(),n=null,i=qs;i!==null;){var r=i.next,f=cm(i,t);f===0?(i.next=null,n===null?qs=r:n.next=r,r===null&&(ui=n)):(n=i,(e!==0||(f&3)!==0)&&(ks=!0)),i=r}We!==0&&We!==5||ga(e),Kn!==0&&(Kn=0)}function cm(e,t){for(var n=e.suspendedLanes,i=e.pingedLanes,r=e.expirationTimes,f=e.pendingLanes&-62914561;0<f;){var d=31-wt(f),y=1<<d,S=r[d];S===-1?((y&n)===0||(y&i)!==0)&&(r[d]=sy(y,t)):S<=t&&(e.expiredLanes|=y),f&=~y}if(t=ze,n=pe,n=Ga(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i=e.callbackNode,n===0||e===t&&(we===2||we===9)||e.cancelPendingCommit!==null)return i!==null&&i!==null&&Vu(i),e.callbackNode=null,e.callbackPriority=0;if((n&3)===0||Ui(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(i!==null&&Vu(i),Zu(n)){case 2:case 8:n=Ff;break;case 32:n=ka;break;case 268435456:n=If;break;default:n=ka}return i=rm.bind(null,e),n=Ku(n,i),e.callbackPriority=t,e.callbackNode=n,t}return i!==null&&i!==null&&Vu(i),e.callbackPriority=2,e.callbackNode=null,2}function rm(e,t){if(We!==0&&We!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Bs()&&e.callbackNode!==n)return null;var i=pe;return i=Ga(e,e===ze?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),i===0?null:(Kd(e,i,t),cm(e,Et()),e.callbackNode!=null&&e.callbackNode===n?rm.bind(null,e):null)}function fm(e,t){if(Bs())return null;Kd(e,t,!0)}function U0(){Q0(function(){(Ee&6)!==0?Ku(Wf,L0):um()})}function Ur(){if(Kn===0){var e=Ql;e===0&&(e=Ha,Ha<<=1,(Ha&261888)===0&&(Ha=256)),Kn=e}return Kn}function om(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:Xa(""+e)}function hm(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function j0(e,t,n,i,r){if(t==="submit"&&n&&n.stateNode===r){var f=om((r[ht]||null).action),d=i.submitter;d&&(t=(t=d[ht]||null)?om(t.formAction):d.getAttribute("formAction"),t!==null&&(f=t,d=null));var y=new Fa("action","action",null,i,r);e.push({event:y,listeners:[{instance:null,listener:function(){if(i.defaultPrevented){if(Kn!==0){var S=d?hm(r,d):new FormData(r);er(n,{pending:!0,data:S,method:r.method,action:f},null,S)}}else typeof f=="function"&&(y.preventDefault(),S=d?hm(r,d):new FormData(r),er(n,{pending:!0,data:S,method:r.method,action:f},f,S))},currentTarget:r}]})}}for(var jr=0;jr<yc.length;jr++){var Rr=yc[jr],R0=Rr.toLowerCase(),B0=Rr[0].toUpperCase()+Rr.slice(1);Qt(R0,"on"+B0)}Qt(Go,"onAnimationEnd"),Qt(Ko,"onAnimationIteration"),Qt(Vo,"onAnimationStart"),Qt("dblclick","onDoubleClick"),Qt("focusin","onFocus"),Qt("focusout","onBlur"),Qt(Py,"onTransitionRun"),Qt(e0,"onTransitionStart"),Qt(t0,"onTransitionCancel"),Qt(Qo,"onTransitionEnd"),Dl("onMouseEnter",["mouseout","mouseover"]),Dl("onMouseLeave",["mouseout","mouseover"]),Dl("onPointerEnter",["pointerout","pointerover"]),Dl("onPointerLeave",["pointerout","pointerover"]),ll("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),ll("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),ll("onBeforeInput",["compositionend","keypress","textInput","paste"]),ll("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),ll("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var pa="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),q0=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(pa));function dm(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var i=e[n],r=i.event;i=i.listeners;e:{var f=void 0;if(t)for(var d=i.length-1;0<=d;d--){var y=i[d],S=y.instance,z=y.currentTarget;if(y=y.listener,S!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=S}else for(d=0;d<i.length;d++){if(y=i[d],S=y.instance,z=y.currentTarget,y=y.listener,S!==f&&r.isPropagationStopped())break e;f=y,r.currentTarget=z;try{f(r)}catch(B){es(B)}r.currentTarget=null,f=S}}}}function me(e,t){var n=t[Ju];n===void 0&&(n=t[Ju]=new Set);var i=e+"__bubble";n.has(i)||(mm(t,e,2,!1),n.add(i))}function Br(e,t,n){var i=0;t&&(i|=4),mm(n,e,i,t)}var Hs="_reactListening"+Math.random().toString(36).slice(2);function qr(e){if(!e[Hs]){e[Hs]=!0,so.forEach(function(n){n!=="selectionchange"&&(q0.has(n)||Br(n,!1,e),Br(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Hs]||(t[Hs]=!0,Br("selectionchange",!1,t))}}function mm(e,t,n,i){switch(Gm(t)){case 2:var r=h1;break;case 8:r=d1;break;default:r=Pr}n=r.bind(null,t,n,e),r=void 0,!ic||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(r=!0),i?r!==void 0?e.addEventListener(t,n,{capture:!0,passive:r}):e.addEventListener(t,n,!0):r!==void 0?e.addEventListener(t,n,{passive:r}):e.addEventListener(t,n,!1)}function kr(e,t,n,i,r){var f=i;if((t&1)===0&&(t&2)===0&&i!==null)e:for(;;){if(i===null)return;var d=i.tag;if(d===3||d===4){var y=i.stateNode.containerInfo;if(y===r)break;if(d===4)for(d=i.return;d!==null;){var S=d.tag;if((S===3||S===4)&&d.stateNode.containerInfo===r)return;d=d.return}for(;y!==null;){if(d=Cl(y),d===null)return;if(S=d.tag,S===5||S===6||S===26||S===27){i=f=d;continue e}y=y.parentNode}}i=i.return}bo(function(){var z=f,B=nc(n),H=[];e:{var D=Xo.get(e);if(D!==void 0){var j=Fa,P=e;switch(e){case"keypress":if(Ja(n)===0)break e;case"keydown":case"keyup":j=xy;break;case"focusin":P="focus",j=cc;break;case"focusout":P="blur",j=cc;break;case"beforeblur":case"afterblur":j=cc;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":j=Eo;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":j=by;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":j=Uy;break;case Go:case Ko:case Vo:j=Ey;break;case Qo:j=Ry;break;case"scroll":case"scrollend":j=yy;break;case"wheel":j=qy;break;case"copy":case"cut":case"paste":j=wy;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":j=wo;break;case"toggle":case"beforetoggle":j=Hy}var le=(t&4)!==0,Ce=!le&&(e==="scroll"||e==="scrollend"),N=le?D!==null?D+"Capture":null:D;le=[];for(var O=z,C;O!==null;){var k=O;if(C=k.stateNode,k=k.tag,k!==5&&k!==26&&k!==27||C===null||N===null||(k=qi(O,N),k!=null&&le.push(ya(O,k,C))),Ce)break;O=O.return}0<le.length&&(D=new j(D,P,null,n,B),H.push({event:D,listeners:le}))}}if((t&7)===0){e:{if(D=e==="mouseover"||e==="pointerover",j=e==="mouseout"||e==="pointerout",D&&n!==tc&&(P=n.relatedTarget||n.fromElement)&&(Cl(P)||P[Ml]))break e;if((j||D)&&(D=B.window===B?B:(D=B.ownerDocument)?D.defaultView||D.parentWindow:window,j?(P=n.relatedTarget||n.toElement,j=z,P=P?Cl(P):null,P!==null&&(Ce=o(P),le=P.tag,P!==Ce||le!==5&&le!==27&&le!==6)&&(P=null)):(j=null,P=z),j!==P)){if(le=Eo,k="onMouseLeave",N="onMouseEnter",O="mouse",(e==="pointerout"||e==="pointerover")&&(le=wo,k="onPointerLeave",N="onPointerEnter",O="pointer"),Ce=j==null?D:Bi(j),C=P==null?D:Bi(P),D=new le(k,O+"leave",j,n,B),D.target=Ce,D.relatedTarget=C,k=null,Cl(B)===z&&(le=new le(N,O+"enter",P,n,B),le.target=C,le.relatedTarget=Ce,k=le),Ce=k,j&&P)t:{for(le=k0,N=j,O=P,C=0,k=N;k;k=le(k))C++;k=0;for(var ne=O;ne;ne=le(ne))k++;for(;0<C-k;)N=le(N),C--;for(;0<k-C;)O=le(O),k--;for(;C--;){if(N===O||O!==null&&N===O.alternate){le=N;break t}N=le(N),O=le(O)}le=null}else le=null;j!==null&&gm(H,D,j,le,!1),P!==null&&Ce!==null&&gm(H,Ce,P,le,!0)}}e:{if(D=z?Bi(z):window,j=D.nodeName&&D.nodeName.toLowerCase(),j==="select"||j==="input"&&D.type==="file")var Se=Do;else if(zo(D))if(Lo)Se=Wy;else{Se=Zy;var te=Xy}else j=D.nodeName,!j||j.toLowerCase()!=="input"||D.type!=="checkbox"&&D.type!=="radio"?z&&ec(z.elementType)&&(Se=Do):Se=Jy;if(Se&&(Se=Se(e,z))){xo(H,Se,n,B);break e}te&&te(e,D,z),e==="focusout"&&z&&D.type==="number"&&z.memoizedProps.value!=null&&Pu(D,"number",D.value)}switch(te=z?Bi(z):window,e){case"focusin":(zo(te)||te.contentEditable==="true")&&(ql=te,mc=z,Qi=null);break;case"focusout":Qi=mc=ql=null;break;case"mousedown":gc=!0;break;case"contextmenu":case"mouseup":case"dragend":gc=!1,Yo(H,n,B);break;case"selectionchange":if(Iy)break;case"keydown":case"keyup":Yo(H,n,B)}var fe;if(fc)e:{switch(e){case"compositionstart":var ye="onCompositionStart";break e;case"compositionend":ye="onCompositionEnd";break e;case"compositionupdate":ye="onCompositionUpdate";break e}ye=void 0}else Bl?Mo(e,n)&&(ye="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(ye="onCompositionStart");ye&&(Oo&&n.locale!=="ko"&&(Bl||ye!=="onCompositionStart"?ye==="onCompositionEnd"&&Bl&&(fe=So()):(Mn=B,ac="value"in Mn?Mn.value:Mn.textContent,Bl=!0)),te=Ys(z,ye),0<te.length&&(ye=new Ao(ye,e,null,n,B),H.push({event:ye,listeners:te}),fe?ye.data=fe:(fe=Co(n),fe!==null&&(ye.data=fe)))),(fe=$y?Gy(e,n):Ky(e,n))&&(ye=Ys(z,"onBeforeInput"),0<ye.length&&(te=new Ao("onBeforeInput","beforeinput",null,n,B),H.push({event:te,listeners:ye}),te.data=fe)),j0(H,e,z,n,B)}dm(H,t)})}function ya(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ys(e,t){for(var n=t+"Capture",i=[];e!==null;){var r=e,f=r.stateNode;if(r=r.tag,r!==5&&r!==26&&r!==27||f===null||(r=qi(e,n),r!=null&&i.unshift(ya(e,r,f)),r=qi(e,t),r!=null&&i.push(ya(e,r,f))),e.tag===3)return i;e=e.return}return[]}function k0(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function gm(e,t,n,i,r){for(var f=t._reactName,d=[];n!==null&&n!==i;){var y=n,S=y.alternate,z=y.stateNode;if(y=y.tag,S!==null&&S===i)break;y!==5&&y!==26&&y!==27||z===null||(S=z,r?(z=qi(n,f),z!=null&&d.unshift(ya(n,z,S))):r||(z=qi(n,f),z!=null&&d.push(ya(n,z,S)))),n=n.return}d.length!==0&&e.push({event:t,listeners:d})}var H0=/\r\n?/g,Y0=/\u0000|\uFFFD/g;function pm(e){return(typeof e=="string"?e:""+e).replace(H0,`
50
+ `).replace(Y0,"")}function ym(e,t){return t=pm(t),pm(e)===t}function Me(e,t,n,i,r,f){switch(n){case"children":typeof i=="string"?t==="body"||t==="textarea"&&i===""||Ul(e,i):(typeof i=="number"||typeof i=="bigint")&&t!=="body"&&Ul(e,""+i);break;case"className":Va(e,"class",i);break;case"tabIndex":Va(e,"tabindex",i);break;case"dir":case"role":case"viewBox":case"width":case"height":Va(e,n,i);break;case"style":yo(e,i,f);break;case"data":if(t!=="object"){Va(e,"data",i);break}case"src":case"href":if(i===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(i==null||typeof i=="function"||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xa(""+i),e.setAttribute(n,i);break;case"action":case"formAction":if(typeof i=="function"){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof f=="function"&&(n==="formAction"?(t!=="input"&&Me(e,t,"name",r.name,r,null),Me(e,t,"formEncType",r.formEncType,r,null),Me(e,t,"formMethod",r.formMethod,r,null),Me(e,t,"formTarget",r.formTarget,r,null)):(Me(e,t,"encType",r.encType,r,null),Me(e,t,"method",r.method,r,null),Me(e,t,"target",r.target,r,null)));if(i==null||typeof i=="symbol"||typeof i=="boolean"){e.removeAttribute(n);break}i=Xa(""+i),e.setAttribute(n,i);break;case"onClick":i!=null&&(e.onclick=an);break;case"onScroll":i!=null&&me("scroll",e);break;case"onScrollEnd":i!=null&&me("scrollend",e);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"multiple":e.multiple=i&&typeof i!="function"&&typeof i!="symbol";break;case"muted":e.muted=i&&typeof i!="function"&&typeof i!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(i==null||typeof i=="function"||typeof i=="boolean"||typeof i=="symbol"){e.removeAttribute("xlink:href");break}n=Xa(""+i),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""+i):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":i&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":i===!0?e.setAttribute(n,""):i!==!1&&i!=null&&typeof i!="function"&&typeof i!="symbol"?e.setAttribute(n,i):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":i!=null&&typeof i!="function"&&typeof i!="symbol"&&!isNaN(i)&&1<=i?e.setAttribute(n,i):e.removeAttribute(n);break;case"rowSpan":case"start":i==null||typeof i=="function"||typeof i=="symbol"||isNaN(i)?e.removeAttribute(n):e.setAttribute(n,i);break;case"popover":me("beforetoggle",e),me("toggle",e),Ka(e,"popover",i);break;case"xlinkActuate":ln(e,"http://www.w3.org/1999/xlink","xlink:actuate",i);break;case"xlinkArcrole":ln(e,"http://www.w3.org/1999/xlink","xlink:arcrole",i);break;case"xlinkRole":ln(e,"http://www.w3.org/1999/xlink","xlink:role",i);break;case"xlinkShow":ln(e,"http://www.w3.org/1999/xlink","xlink:show",i);break;case"xlinkTitle":ln(e,"http://www.w3.org/1999/xlink","xlink:title",i);break;case"xlinkType":ln(e,"http://www.w3.org/1999/xlink","xlink:type",i);break;case"xmlBase":ln(e,"http://www.w3.org/XML/1998/namespace","xml:base",i);break;case"xmlLang":ln(e,"http://www.w3.org/XML/1998/namespace","xml:lang",i);break;case"xmlSpace":ln(e,"http://www.w3.org/XML/1998/namespace","xml:space",i);break;case"is":Ka(e,"is",i);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=gy.get(n)||n,Ka(e,n,i))}}function Hr(e,t,n,i,r,f){switch(n){case"style":yo(e,i,f);break;case"dangerouslySetInnerHTML":if(i!=null){if(typeof i!="object"||!("__html"in i))throw Error(s(61));if(n=i.__html,n!=null){if(r.children!=null)throw Error(s(60));e.innerHTML=n}}break;case"children":typeof i=="string"?Ul(e,i):(typeof i=="number"||typeof i=="bigint")&&Ul(e,""+i);break;case"onScroll":i!=null&&me("scroll",e);break;case"onScrollEnd":i!=null&&me("scrollend",e);break;case"onClick":i!=null&&(e.onclick=an);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!uo.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(r=n.endsWith("Capture"),t=n.slice(2,r?n.length-7:void 0),f=e[ht]||null,f=f!=null?f[n]:null,typeof f=="function"&&e.removeEventListener(t,f,r),typeof i=="function")){typeof f!="function"&&f!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,i,r);break e}n in e?e[n]=i:i===!0?e.setAttribute(n,""):Ka(e,n,i)}}}function at(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":me("error",e),me("load",e);var i=!1,r=!1,f;for(f in n)if(n.hasOwnProperty(f)){var d=n[f];if(d!=null)switch(f){case"src":i=!0;break;case"srcSet":r=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,f,d,n,null)}}r&&Me(e,t,"srcSet",n.srcSet,n,null),i&&Me(e,t,"src",n.src,n,null);return;case"input":me("invalid",e);var y=f=d=r=null,S=null,z=null;for(i in n)if(n.hasOwnProperty(i)){var B=n[i];if(B!=null)switch(i){case"name":r=B;break;case"type":d=B;break;case"checked":S=B;break;case"defaultChecked":z=B;break;case"value":f=B;break;case"defaultValue":y=B;break;case"children":case"dangerouslySetInnerHTML":if(B!=null)throw Error(s(137,t));break;default:Me(e,t,i,B,n,null)}}ho(e,f,y,S,z,d,r,!1);return;case"select":me("invalid",e),i=d=f=null;for(r in n)if(n.hasOwnProperty(r)&&(y=n[r],y!=null))switch(r){case"value":f=y;break;case"defaultValue":d=y;break;case"multiple":i=y;default:Me(e,t,r,y,n,null)}t=f,n=d,e.multiple=!!i,t!=null?Ll(e,!!i,t,!1):n!=null&&Ll(e,!!i,n,!0);return;case"textarea":me("invalid",e),f=r=i=null;for(d in n)if(n.hasOwnProperty(d)&&(y=n[d],y!=null))switch(d){case"value":i=y;break;case"defaultValue":r=y;break;case"children":f=y;break;case"dangerouslySetInnerHTML":if(y!=null)throw Error(s(91));break;default:Me(e,t,d,y,n,null)}go(e,i,r,f);return;case"option":for(S in n)if(n.hasOwnProperty(S)&&(i=n[S],i!=null))switch(S){case"selected":e.selected=i&&typeof i!="function"&&typeof i!="symbol";break;default:Me(e,t,S,i,n,null)}return;case"dialog":me("beforetoggle",e),me("toggle",e),me("cancel",e),me("close",e);break;case"iframe":case"object":me("load",e);break;case"video":case"audio":for(i=0;i<pa.length;i++)me(pa[i],e);break;case"image":me("error",e),me("load",e);break;case"details":me("toggle",e);break;case"embed":case"source":case"link":me("error",e),me("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(z in n)if(n.hasOwnProperty(z)&&(i=n[z],i!=null))switch(z){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,t));default:Me(e,t,z,i,n,null)}return;default:if(ec(t)){for(B in n)n.hasOwnProperty(B)&&(i=n[B],i!==void 0&&Hr(e,t,B,i,n,void 0));return}}for(y in n)n.hasOwnProperty(y)&&(i=n[y],i!=null&&Me(e,t,y,i,n,null))}function $0(e,t,n,i){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var r=null,f=null,d=null,y=null,S=null,z=null,B=null;for(j in n){var H=n[j];if(n.hasOwnProperty(j)&&H!=null)switch(j){case"checked":break;case"value":break;case"defaultValue":S=H;default:i.hasOwnProperty(j)||Me(e,t,j,null,i,H)}}for(var D in i){var j=i[D];if(H=n[D],i.hasOwnProperty(D)&&(j!=null||H!=null))switch(D){case"type":f=j;break;case"name":r=j;break;case"checked":z=j;break;case"defaultChecked":B=j;break;case"value":d=j;break;case"defaultValue":y=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(s(137,t));break;default:j!==H&&Me(e,t,D,j,i,H)}}Iu(e,d,y,S,z,B,f,r);return;case"select":j=d=y=D=null;for(f in n)if(S=n[f],n.hasOwnProperty(f)&&S!=null)switch(f){case"value":break;case"multiple":j=S;default:i.hasOwnProperty(f)||Me(e,t,f,null,i,S)}for(r in i)if(f=i[r],S=n[r],i.hasOwnProperty(r)&&(f!=null||S!=null))switch(r){case"value":D=f;break;case"defaultValue":y=f;break;case"multiple":d=f;default:f!==S&&Me(e,t,r,f,i,S)}t=y,n=d,i=j,D!=null?Ll(e,!!n,D,!1):!!i!=!!n&&(t!=null?Ll(e,!!n,t,!0):Ll(e,!!n,n?[]:"",!1));return;case"textarea":j=D=null;for(y in n)if(r=n[y],n.hasOwnProperty(y)&&r!=null&&!i.hasOwnProperty(y))switch(y){case"value":break;case"children":break;default:Me(e,t,y,null,i,r)}for(d in i)if(r=i[d],f=n[d],i.hasOwnProperty(d)&&(r!=null||f!=null))switch(d){case"value":D=r;break;case"defaultValue":j=r;break;case"children":break;case"dangerouslySetInnerHTML":if(r!=null)throw Error(s(91));break;default:r!==f&&Me(e,t,d,r,i,f)}mo(e,D,j);return;case"option":for(var P in n)if(D=n[P],n.hasOwnProperty(P)&&D!=null&&!i.hasOwnProperty(P))switch(P){case"selected":e.selected=!1;break;default:Me(e,t,P,null,i,D)}for(S in i)if(D=i[S],j=n[S],i.hasOwnProperty(S)&&D!==j&&(D!=null||j!=null))switch(S){case"selected":e.selected=D&&typeof D!="function"&&typeof D!="symbol";break;default:Me(e,t,S,D,i,j)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var le in n)D=n[le],n.hasOwnProperty(le)&&D!=null&&!i.hasOwnProperty(le)&&Me(e,t,le,null,i,D);for(z in i)if(D=i[z],j=n[z],i.hasOwnProperty(z)&&D!==j&&(D!=null||j!=null))switch(z){case"children":case"dangerouslySetInnerHTML":if(D!=null)throw Error(s(137,t));break;default:Me(e,t,z,D,i,j)}return;default:if(ec(t)){for(var Ce in n)D=n[Ce],n.hasOwnProperty(Ce)&&D!==void 0&&!i.hasOwnProperty(Ce)&&Hr(e,t,Ce,void 0,i,D);for(B in i)D=i[B],j=n[B],!i.hasOwnProperty(B)||D===j||D===void 0&&j===void 0||Hr(e,t,B,D,i,j);return}}for(var N in n)D=n[N],n.hasOwnProperty(N)&&D!=null&&!i.hasOwnProperty(N)&&Me(e,t,N,null,i,D);for(H in i)D=i[H],j=n[H],!i.hasOwnProperty(H)||D===j||D==null&&j==null||Me(e,t,H,D,i,j)}function vm(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function G0(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),i=0;i<n.length;i++){var r=n[i],f=r.transferSize,d=r.initiatorType,y=r.duration;if(f&&y&&vm(d)){for(d=0,y=r.responseEnd,i+=1;i<n.length;i++){var S=n[i],z=S.startTime;if(z>y)break;var B=S.transferSize,H=S.initiatorType;B&&vm(H)&&(S=S.responseEnd,d+=B*(S<y?1:(y-z)/(S-z)))}if(--i,t+=8*(f+d)/(r.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var Yr=null,$r=null;function $s(e){return e.nodeType===9?e:e.ownerDocument}function bm(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Sm(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function Gr(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Kr=null;function K0(){var e=window.event;return e&&e.type==="popstate"?e===Kr?!1:(Kr=e,!0):(Kr=null,!1)}var Tm=typeof setTimeout=="function"?setTimeout:void 0,V0=typeof clearTimeout=="function"?clearTimeout:void 0,Em=typeof Promise=="function"?Promise:void 0,Q0=typeof queueMicrotask=="function"?queueMicrotask:typeof Em<"u"?function(e){return Em.resolve(null).then(e).catch(X0)}:Tm;function X0(e){setTimeout(function(){throw e})}function Vn(e){return e==="head"}function Am(e,t){var n=t,i=0;do{var r=n.nextSibling;if(e.removeChild(n),r&&r.nodeType===8)if(n=r.data,n==="/$"||n==="/&"){if(i===0){e.removeChild(r),oi(t);return}i--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")i++;else if(n==="html")va(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,va(n);for(var f=n.firstChild;f;){var d=f.nextSibling,y=f.nodeName;f[Ri]||y==="SCRIPT"||y==="STYLE"||y==="LINK"&&f.rel.toLowerCase()==="stylesheet"||n.removeChild(f),f=d}}else n==="body"&&va(e.ownerDocument.body);n=r}while(n);oi(t)}function wm(e,t){var n=e;e=0;do{var i=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=i}while(n)}function Vr(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Vr(n),Wu(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function Z0(e,t,n,i){for(;e.nodeType===1;){var r=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!i&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(i){if(!e[Ri])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(f=e.getAttribute("rel"),f==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(f!==r.rel||e.getAttribute("href")!==(r.href==null||r.href===""?null:r.href)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin)||e.getAttribute("title")!==(r.title==null?null:r.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(f=e.getAttribute("src"),(f!==(r.src==null?null:r.src)||e.getAttribute("type")!==(r.type==null?null:r.type)||e.getAttribute("crossorigin")!==(r.crossOrigin==null?null:r.crossOrigin))&&f&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var f=r.name==null?null:""+r.name;if(r.type==="hidden"&&e.getAttribute("name")===f)return e}else return e;if(e=$t(e.nextSibling),e===null)break}return null}function J0(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=$t(e.nextSibling),e===null))return null;return e}function Om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=$t(e.nextSibling),e===null))return null;return e}function Qr(e){return e.data==="$?"||e.data==="$~"}function Xr(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function W0(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var i=function(){t(),n.removeEventListener("DOMContentLoaded",i)};n.addEventListener("DOMContentLoaded",i),e._reactRetry=i}}function $t(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var Zr=null;function _m(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return $t(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function Nm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function Mm(e,t,n){switch(t=$s(n),e){case"html":if(e=t.documentElement,!e)throw Error(s(452));return e;case"head":if(e=t.head,!e)throw Error(s(453));return e;case"body":if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function va(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Wu(e)}var Gt=new Map,Cm=new Set;function Gs(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tn=G.d;G.d={f:F0,r:I0,D:P0,C:e1,L:t1,m:n1,X:i1,S:l1,M:a1};function F0(){var e=Tn.f(),t=Us();return e||t}function I0(e){var t=zl(e);t!==null&&t.tag===5&&t.type==="form"?Qh(t):Tn.r(e)}var ci=typeof document>"u"?null:document;function zm(e,t,n){var i=ci;if(i&&typeof t=="string"&&t){var r=jt(t);r='link[rel="'+e+'"][href="'+r+'"]',typeof n=="string"&&(r+='[crossorigin="'+n+'"]'),Cm.has(r)||(Cm.add(r),e={rel:e,crossOrigin:n,href:t},i.querySelector(r)===null&&(t=i.createElement("link"),at(t,"link",e),Ie(t),i.head.appendChild(t)))}}function P0(e){Tn.D(e),zm("dns-prefetch",e,null)}function e1(e,t){Tn.C(e,t),zm("preconnect",e,t)}function t1(e,t,n){Tn.L(e,t,n);var i=ci;if(i&&e&&t){var r='link[rel="preload"][as="'+jt(t)+'"]';t==="image"&&n&&n.imageSrcSet?(r+='[imagesrcset="'+jt(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(r+='[imagesizes="'+jt(n.imageSizes)+'"]')):r+='[href="'+jt(e)+'"]';var f=r;switch(t){case"style":f=ri(e);break;case"script":f=fi(e)}Gt.has(f)||(e=v({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),Gt.set(f,e),i.querySelector(r)!==null||t==="style"&&i.querySelector(ba(f))||t==="script"&&i.querySelector(Sa(f))||(t=i.createElement("link"),at(t,"link",e),Ie(t),i.head.appendChild(t)))}}function n1(e,t){Tn.m(e,t);var n=ci;if(n&&e){var i=t&&typeof t.as=="string"?t.as:"script",r='link[rel="modulepreload"][as="'+jt(i)+'"][href="'+jt(e)+'"]',f=r;switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":f=fi(e)}if(!Gt.has(f)&&(e=v({rel:"modulepreload",href:e},t),Gt.set(f,e),n.querySelector(r)===null)){switch(i){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Sa(f)))return}i=n.createElement("link"),at(i,"link",e),Ie(i),n.head.appendChild(i)}}}function l1(e,t,n){Tn.S(e,t,n);var i=ci;if(i&&e){var r=xl(i).hoistableStyles,f=ri(e);t=t||"default";var d=r.get(f);if(!d){var y={loading:0,preload:null};if(d=i.querySelector(ba(f)))y.loading=5;else{e=v({rel:"stylesheet",href:e,"data-precedence":t},n),(n=Gt.get(f))&&Jr(e,n);var S=d=i.createElement("link");Ie(S),at(S,"link",e),S._p=new Promise(function(z,B){S.onload=z,S.onerror=B}),S.addEventListener("load",function(){y.loading|=1}),S.addEventListener("error",function(){y.loading|=2}),y.loading|=4,Ks(d,t,i)}d={type:"stylesheet",instance:d,count:1,state:y},r.set(f,d)}}}function i1(e,t){Tn.X(e,t);var n=ci;if(n&&e){var i=xl(n).hoistableScripts,r=fi(e),f=i.get(r);f||(f=n.querySelector(Sa(r)),f||(e=v({src:e,async:!0},t),(t=Gt.get(r))&&Wr(e,t),f=n.createElement("script"),Ie(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(r,f))}}function a1(e,t){Tn.M(e,t);var n=ci;if(n&&e){var i=xl(n).hoistableScripts,r=fi(e),f=i.get(r);f||(f=n.querySelector(Sa(r)),f||(e=v({src:e,async:!0,type:"module"},t),(t=Gt.get(r))&&Wr(e,t),f=n.createElement("script"),Ie(f),at(f,"link",e),n.head.appendChild(f)),f={type:"script",instance:f,count:1,state:null},i.set(r,f))}}function xm(e,t,n,i){var r=(r=he.current)?Gs(r):null;if(!r)throw Error(s(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=ri(n.href),n=xl(r).hoistableStyles,i=n.get(t),i||(i={type:"style",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=ri(n.href);var f=xl(r).hoistableStyles,d=f.get(e);if(d||(r=r.ownerDocument||r,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},f.set(e,d),(f=r.querySelector(ba(e)))&&!f._p&&(d.instance=f,d.state.loading=5),Gt.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Gt.set(e,n),f||s1(r,e,n,d.state))),t&&i===null)throw Error(s(528,""));return d}if(t&&i!==null)throw Error(s(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=fi(n),n=xl(r).hoistableScripts,i=n.get(t),i||(i={type:"script",instance:null,count:0,state:null},n.set(t,i)),i):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,e))}}function ri(e){return'href="'+jt(e)+'"'}function ba(e){return'link[rel="stylesheet"]['+e+"]"}function Dm(e){return v({},e,{"data-precedence":e.precedence,precedence:null})}function s1(e,t,n,i){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?i.loading=1:(t=e.createElement("link"),i.preload=t,t.addEventListener("load",function(){return i.loading|=1}),t.addEventListener("error",function(){return i.loading|=2}),at(t,"link",n),Ie(t),e.head.appendChild(t))}function fi(e){return'[src="'+jt(e)+'"]'}function Sa(e){return"script[async]"+e}function Lm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var i=e.querySelector('style[data-href~="'+jt(n.href)+'"]');if(i)return t.instance=i,Ie(i),i;var r=v({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return i=(e.ownerDocument||e).createElement("style"),Ie(i),at(i,"style",r),Ks(i,n.precedence,e),t.instance=i;case"stylesheet":r=ri(n.href);var f=e.querySelector(ba(r));if(f)return t.state.loading|=4,t.instance=f,Ie(f),f;i=Dm(n),(r=Gt.get(r))&&Jr(i,r),f=(e.ownerDocument||e).createElement("link"),Ie(f);var d=f;return d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),at(f,"link",i),t.state.loading|=4,Ks(f,n.precedence,e),t.instance=f;case"script":return f=fi(n.src),(r=e.querySelector(Sa(f)))?(t.instance=r,Ie(r),r):(i=n,(r=Gt.get(f))&&(i=v({},n),Wr(i,r)),e=e.ownerDocument||e,r=e.createElement("script"),Ie(r),at(r,"link",i),e.head.appendChild(r),t.instance=r);case"void":return null;default:throw Error(s(443,t.type))}else t.type==="stylesheet"&&(t.state.loading&4)===0&&(i=t.instance,t.state.loading|=4,Ks(i,n.precedence,e));return t.instance}function Ks(e,t,n){for(var i=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),r=i.length?i[i.length-1]:null,f=r,d=0;d<i.length;d++){var y=i[d];if(y.dataset.precedence===t)f=y;else if(f!==r)break}f?f.parentNode.insertBefore(e,f.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Jr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Wr(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Vs=null;function Um(e,t,n){if(Vs===null){var i=new Map,r=Vs=new Map;r.set(n,i)}else r=Vs,i=r.get(n),i||(i=new Map,r.set(n,i));if(i.has(e))return i;for(i.set(e,null),n=n.getElementsByTagName(e),r=0;r<n.length;r++){var f=n[r];if(!(f[Ri]||f[tt]||e==="link"&&f.getAttribute("rel")==="stylesheet")&&f.namespaceURI!=="http://www.w3.org/2000/svg"){var d=f.getAttribute(t)||"";d=e+d;var y=i.get(d);y?y.push(f):i.set(d,[f])}}return i}function jm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function u1(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function Rm(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}function c1(e,t,n,i){if(n.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(n.state.loading&4)===0){if(n.instance===null){var r=ri(i.href),f=t.querySelector(ba(r));if(f){t=f._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Qs.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=f,Ie(f);return}f=t.ownerDocument||t,i=Dm(i),(r=Gt.get(r))&&Jr(i,r),f=f.createElement("link"),Ie(f);var d=f;d._p=new Promise(function(y,S){d.onload=y,d.onerror=S}),at(f,"link",i),n.instance=f}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&(n.state.loading&3)===0&&(e.count++,n=Qs.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var Fr=0;function r1(e,t){return e.stylesheets&&e.count===0&&Zs(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var i=setTimeout(function(){if(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend){var f=e.unsuspend;e.unsuspend=null,f()}},6e4+t);0<e.imgBytes&&Fr===0&&(Fr=62500*G0());var r=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Zs(e,e.stylesheets),e.unsuspend)){var f=e.unsuspend;e.unsuspend=null,f()}},(e.imgBytes>Fr?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(i),clearTimeout(r)}}:null}function Qs(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Zs(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Xs=null;function Zs(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Xs=new Map,t.forEach(f1,e),Xs=null,Qs.call(e))}function f1(e,t){if(!(t.state.loading&4)){var n=Xs.get(e);if(n)var i=n.get(null);else{n=new Map,Xs.set(e,n);for(var r=e.querySelectorAll("link[data-precedence],style[data-precedence]"),f=0;f<r.length;f++){var d=r[f];(d.nodeName==="LINK"||d.getAttribute("media")!=="not all")&&(n.set(d.dataset.precedence,d),i=d)}i&&n.set(null,i)}r=t.instance,d=r.getAttribute("data-precedence"),f=n.get(d)||i,f===i&&n.set(null,r),n.set(d,r),this.count++,i=Qs.bind(this),r.addEventListener("load",i),r.addEventListener("error",i),f?f.parentNode.insertBefore(r,f.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(r,e.firstChild)),t.state.loading|=4}}var Ta={$$typeof:K,Provider:null,Consumer:null,_currentValue:Z,_currentValue2:Z,_threadCount:0};function o1(e,t,n,i,r,f,d,y,S){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Qu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Qu(0),this.hiddenUpdates=Qu(null),this.identifierPrefix=i,this.onUncaughtError=r,this.onCaughtError=f,this.onRecoverableError=d,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=S,this.incompleteTransitions=new Map}function Bm(e,t,n,i,r,f,d,y,S,z,B,H){return e=new o1(e,t,n,d,S,z,B,H,y),t=1,f===!0&&(t|=24),f=_t(3,null,null,t),e.current=f,f.stateNode=e,t=zc(),t.refCount++,e.pooledCache=t,t.refCount++,f.memoizedState={element:i,isDehydrated:n,cache:t},Uc(f),e}function qm(e){return e?(e=Yl,e):Yl}function km(e,t,n,i,r,f){r=qm(r),i.context===null?i.context=r:i.pendingContext=r,i=Un(t),i.payload={element:n},f=f===void 0?null:f,f!==null&&(i.callback=f),n=jn(e,i,t),n!==null&&(vt(n,e,t),Pi(n,e,t))}function Hm(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Ir(e,t){Hm(e,t),(e=e.alternate)&&Hm(e,t)}function Ym(e){if(e.tag===13||e.tag===31){var t=ul(e,67108864);t!==null&&vt(t,e,67108864),Ir(e,67108864)}}function $m(e){if(e.tag===13||e.tag===31){var t=xt();t=Xu(t);var n=ul(e,t);n!==null&&vt(n,e,t),Ir(e,t)}}var Js=!0;function h1(e,t,n,i){var r=R.T;R.T=null;var f=G.p;try{G.p=2,Pr(e,t,n,i)}finally{G.p=f,R.T=r}}function d1(e,t,n,i){var r=R.T;R.T=null;var f=G.p;try{G.p=8,Pr(e,t,n,i)}finally{G.p=f,R.T=r}}function Pr(e,t,n,i){if(Js){var r=ef(i);if(r===null)kr(e,t,i,Ws,n),Km(e,i);else if(g1(r,e,t,n,i))i.stopPropagation();else if(Km(e,i),t&4&&-1<m1.indexOf(e)){for(;r!==null;){var f=zl(r);if(f!==null)switch(f.tag){case 3:if(f=f.stateNode,f.current.memoizedState.isDehydrated){var d=nl(f.pendingLanes);if(d!==0){var y=f;for(y.pendingLanes|=2,y.entangledLanes|=2;d;){var S=1<<31-wt(d);y.entanglements[1]|=S,d&=~S}en(f),(Ee&6)===0&&(Ds=Et()+500,ga(0))}}break;case 31:case 13:y=ul(f,2),y!==null&&vt(y,f,2),Us(),Ir(f,2)}if(f=ef(i),f===null&&kr(e,t,i,Ws,n),f===r)break;r=f}r!==null&&i.stopPropagation()}else kr(e,t,i,null,n)}}function ef(e){return e=nc(e),tf(e)}var Ws=null;function tf(e){if(Ws=null,e=Cl(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=h(t),e!==null)return e;e=null}else if(n===31){if(e=m(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ws=e,null}function Gm(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Pp()){case Wf:return 2;case Ff:return 8;case ka:case ey:return 32;case If:return 268435456;default:return 32}default:return 32}}var nf=!1,Qn=null,Xn=null,Zn=null,Ea=new Map,Aa=new Map,Jn=[],m1="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Km(e,t){switch(e){case"focusin":case"focusout":Qn=null;break;case"dragenter":case"dragleave":Xn=null;break;case"mouseover":case"mouseout":Zn=null;break;case"pointerover":case"pointerout":Ea.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Aa.delete(t.pointerId)}}function wa(e,t,n,i,r,f){return e===null||e.nativeEvent!==f?(e={blockedOn:t,domEventName:n,eventSystemFlags:i,nativeEvent:f,targetContainers:[r]},t!==null&&(t=zl(t),t!==null&&Ym(t)),e):(e.eventSystemFlags|=i,t=e.targetContainers,r!==null&&t.indexOf(r)===-1&&t.push(r),e)}function g1(e,t,n,i,r){switch(t){case"focusin":return Qn=wa(Qn,e,t,n,i,r),!0;case"dragenter":return Xn=wa(Xn,e,t,n,i,r),!0;case"mouseover":return Zn=wa(Zn,e,t,n,i,r),!0;case"pointerover":var f=r.pointerId;return Ea.set(f,wa(Ea.get(f)||null,e,t,n,i,r)),!0;case"gotpointercapture":return f=r.pointerId,Aa.set(f,wa(Aa.get(f)||null,e,t,n,i,r)),!0}return!1}function Vm(e){var t=Cl(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=h(n),t!==null){e.blockedOn=t,io(e.priority,function(){$m(n)});return}}else if(t===31){if(t=m(n),t!==null){e.blockedOn=t,io(e.priority,function(){$m(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fs(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ef(e.nativeEvent);if(n===null){n=e.nativeEvent;var i=new n.constructor(n.type,n);tc=i,n.target.dispatchEvent(i),tc=null}else return t=zl(n),t!==null&&Ym(t),e.blockedOn=n,!1;t.shift()}return!0}function Qm(e,t,n){Fs(e)&&n.delete(t)}function p1(){nf=!1,Qn!==null&&Fs(Qn)&&(Qn=null),Xn!==null&&Fs(Xn)&&(Xn=null),Zn!==null&&Fs(Zn)&&(Zn=null),Ea.forEach(Qm),Aa.forEach(Qm)}function Is(e,t){e.blockedOn===t&&(e.blockedOn=null,nf||(nf=!0,u.unstable_scheduleCallback(u.unstable_NormalPriority,p1)))}var Ps=null;function Xm(e){Ps!==e&&(Ps=e,u.unstable_scheduleCallback(u.unstable_NormalPriority,function(){Ps===e&&(Ps=null);for(var t=0;t<e.length;t+=3){var n=e[t],i=e[t+1],r=e[t+2];if(typeof i!="function"){if(tf(i||n)===null)continue;break}var f=zl(n);f!==null&&(e.splice(t,3),t-=3,er(f,{pending:!0,data:r,method:n.method,action:i},i,r))}}))}function oi(e){function t(S){return Is(S,e)}Qn!==null&&Is(Qn,e),Xn!==null&&Is(Xn,e),Zn!==null&&Is(Zn,e),Ea.forEach(t),Aa.forEach(t);for(var n=0;n<Jn.length;n++){var i=Jn[n];i.blockedOn===e&&(i.blockedOn=null)}for(;0<Jn.length&&(n=Jn[0],n.blockedOn===null);)Vm(n),n.blockedOn===null&&Jn.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(i=0;i<n.length;i+=3){var r=n[i],f=n[i+1],d=r[ht]||null;if(typeof f=="function")d||Xm(n);else if(d){var y=null;if(f&&f.hasAttribute("formAction")){if(r=f,d=f[ht]||null)y=d.formAction;else if(tf(r)!==null)continue}else y=d.action;typeof y=="function"?n[i+1]=y:(n.splice(i,3),i-=3),Xm(n)}}}function Zm(){function e(f){f.canIntercept&&f.info==="react-transition"&&f.intercept({handler:function(){return new Promise(function(d){return r=d})},focusReset:"manual",scroll:"manual"})}function t(){r!==null&&(r(),r=null),i||setTimeout(n,20)}function n(){if(!i&&!navigation.transition){var f=navigation.currentEntry;f&&f.url!=null&&navigation.navigate(f.url,{state:f.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var i=!1,r=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){i=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),r!==null&&(r(),r=null)}}}function lf(e){this._internalRoot=e}eu.prototype.render=lf.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current,i=xt();km(n,i,e,t,null,null)},eu.prototype.unmount=lf.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;km(e.current,2,null,e,null,null),Us(),t[Ml]=null}};function eu(e){this._internalRoot=e}eu.prototype.unstable_scheduleHydration=function(e){if(e){var t=lo();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Jn.length&&t!==0&&t<Jn[n].priority;n++);Jn.splice(n,0,e),n===0&&Vm(e)}};var Jm=l.version;if(Jm!=="19.2.1")throw Error(s(527,Jm,"19.2.1"));G.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(s(188)):(e=Object.keys(e).join(","),Error(s(268,e)));return e=p(t),e=e!==null?T(e):null,e=e===null?null:e.stateNode,e};var y1={bundleType:0,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.2.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var tu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!tu.isDisabled&&tu.supportsFiber)try{Li=tu.inject(y1),At=tu}catch{}}return _a.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,i="",r=nd,f=ld,d=id;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onUncaughtError!==void 0&&(r=t.onUncaughtError),t.onCaughtError!==void 0&&(f=t.onCaughtError),t.onRecoverableError!==void 0&&(d=t.onRecoverableError)),t=Bm(e,1,!1,null,null,n,i,null,r,f,d,Zm),e[Ml]=t.current,qr(e),new lf(t)},_a.hydrateRoot=function(e,t,n){if(!c(e))throw Error(s(299));var i=!1,r="",f=nd,d=ld,y=id,S=null;return n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(r=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(d=n.onCaughtError),n.onRecoverableError!==void 0&&(y=n.onRecoverableError),n.formState!==void 0&&(S=n.formState)),t=Bm(e,1,!0,t,n??null,i,r,S,f,d,y,Zm),t.context=qm(null),n=t.current,i=xt(),i=Xu(i),r=Un(i),r.callback=null,jn(n,r,i),n=i,t.current.lanes=n,ji(t,n),en(t),e[Ml]=t.current,qr(e),new eu(t)},_a.version="19.2.1",_a}var ug;function R1(){if(ug)return uf.exports;ug=1;function u(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(u)}catch(l){console.error(l)}}return u(),uf.exports=j1(),uf.exports}var B1=R1();const q1="modulepreload",k1=function(u){return"/"+u},cg={},H1=function(l,a,s){let c=Promise.resolve();if(a&&a.length>0){let h=function(p){return Promise.all(p.map(T=>Promise.resolve(T).then(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};document.getElementsByTagName("link");const m=document.querySelector("meta[property=csp-nonce]"),g=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));c=h(a.map(p=>{if(p=k1(p),p in cg)return;cg[p]=!0;const T=p.endsWith(".css"),v=T?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${v}`))return;const _=document.createElement("link");if(_.rel=T?"stylesheet":q1,T||(_.as="script"),_.crossOrigin="",_.href=p,g&&_.setAttribute("nonce",g),document.head.appendChild(_),T)return new Promise((E,x)=>{_.addEventListener("load",E),_.addEventListener("error",()=>x(new Error(`Unable to preload CSS for ${p}`)))})}))}function o(h){const m=new Event("vite:preloadError",{cancelable:!0});if(m.payload=h,window.dispatchEvent(m),!m.defaultPrevented)throw h}return c.then(h=>{for(const m of h||[])m.status==="rejected"&&o(m.reason);return l().catch(o)})};function Y1(u,l){const a=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let c,o={},h=!1,m=l==null?void 0:l.fg,g=l==null?void 0:l.bg;for(;(c=a.exec(u))!==null;){const[,,p,,T]=c;if(p){const v=+p;switch(v){case 0:o={};break;case 1:o["font-weight"]="bold";break;case 2:o.opacity="0.8";break;case 3:o["font-style"]="italic";break;case 4:o["text-decoration"]="underline";break;case 7:h=!0;break;case 8:o.display="none";break;case 9:o["text-decoration"]="line-through";break;case 22:delete o["font-weight"],delete o["font-style"],delete o.opacity,delete o["text-decoration"];break;case 23:delete o["font-weight"],delete o["font-style"],delete o.opacity;break;case 24:delete o["text-decoration"];break;case 27:h=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:m=rg[v-30];break;case 39:m=l==null?void 0:l.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:g=rg[v-40];break;case 49:g=l==null?void 0:l.bg;break;case 53:o["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:m=fg[v-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:g=fg[v-100];break}}else if(T){const v={...o},_=h?g:m;_!==void 0&&(v.color=_),h&&m&&(v["background-color"]=m),s.push(`<span style="${G1(v)}">${$1(T)}</span>`)}}return s.join("")}const rg={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},fg={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function $1(u){return u.replace(/[&"<>]/g,l=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[l])}function G1(u){return Object.entries(u).map(([l,a])=>`${l}: ${a}`).join("; ")}const nu=({text:u,highlighter:l,mimeType:a,linkify:s,readOnly:c,highlight:o,revealLine:h,lineNumbers:m,isFocused:g,focusOnChange:p,wrapLines:T,onChange:v,dataTestId:_,placeholder:E})=>{const[x,b]=Mg(),[A]=oe.useState(H1(()=>import("./codeMirrorModule-DyIpd_mA.js"),__vite__mapDeps([0,1])).then(Q=>Q.default)),M=oe.useRef(null),[U,K]=oe.useState();return oe.useEffect(()=>{(async()=>{var V,L;const Q=await A;V1(Q);const W=b.current;if(!W)return;const I=X1(l)||Q1(a)||(s?"text/linkified":"");if(M.current&&I===M.current.cm.getOption("mode")&&!!c===M.current.cm.getOption("readOnly")&&m===M.current.cm.getOption("lineNumbers")&&T===M.current.cm.getOption("lineWrapping")&&E===M.current.cm.getOption("placeholder"))return;(L=(V=M.current)==null?void 0:V.cm)==null||L.getWrapperElement().remove();const q=Q(W,{value:"",mode:I,readOnly:!!c,lineNumbers:m,lineWrapping:T,placeholder:E,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return M.current={cm:q},g&&q.focus(),K(q),q})()},[A,U,b,l,a,s,m,T,c,g,E]),oe.useEffect(()=>{M.current&&M.current.cm.setSize(x.width,x.height)},[x]),oe.useLayoutEffect(()=>{var I;if(!U)return;let Q=!1;if(U.getValue()!==u&&(U.setValue(u),Q=!0,p&&(U.execCommand("selectAll"),U.focus())),Q||JSON.stringify(o)!==JSON.stringify(M.current.highlight)){for(const L of M.current.highlight||[])U.removeLineClass(L.line-1,"wrap");for(const L of o||[])U.addLineClass(L.line-1,"wrap",`source-line-${L.type}`);for(const L of M.current.widgets||[])U.removeLineWidget(L);for(const L of M.current.markers||[])L.clear();const q=[],V=[];for(const L of o||[]){if(L.type!=="subtle-error"&&L.type!=="error")continue;const ie=(I=M.current)==null?void 0:I.cm.getLine(L.line-1);if(ie){const ae={};ae.title=L.message||"",V.push(U.markText({line:L.line-1,ch:0},{line:L.line-1,ch:L.column||ie.length},{className:"source-line-error-underline",attributes:ae}))}if(L.type==="error"){const ae=document.createElement("div");ae.innerHTML=Y1(L.message||"",{bg:"var(--vscode-inputValidation-errorBackground)",fg:"var(--vscode-editor-foreground)"}),ae.className="source-line-error-widget",q.push(U.addLineWidget(L.line,ae,{above:!0,coverGutter:!1}))}}M.current.highlight=o,M.current.widgets=q,M.current.markers=V}typeof h=="number"&&M.current.cm.lineCount()>=h&&U.scrollIntoView({line:Math.max(0,h-1),ch:0},50);let W;return v&&(W=()=>v(U.getValue()),U.on("change",W)),()=>{W&&U.off("change",W)}},[U,u,o,h,p,v]),X.jsx("div",{"data-testid":_,className:"cm-wrapper",ref:b,onClick:K1})};function K1(u){var a;if(!(u.target instanceof HTMLElement))return;let l;u.target.classList.contains("cm-linkified")?l=u.target.textContent:u.target.classList.contains("cm-link")&&((a=u.target.nextElementSibling)!=null&&a.classList.contains("cm-url"))&&(l=u.target.nextElementSibling.textContent.slice(1,-1)),l&&(u.preventDefault(),u.stopPropagation(),window.open(l,"_blank"))}let og=!1;function V1(u){og||(og=!0,u.defineSimpleMode("text/linkified",{start:[{regex:w1,token:"linkified"}]}))}function Q1(u){if(u){if(u.includes("javascript")||u.includes("json"))return"javascript";if(u.includes("python"))return"python";if(u.includes("csharp"))return"text/x-csharp";if(u.includes("java"))return"text/x-java";if(u.includes("markdown"))return"markdown";if(u.includes("html")||u.includes("svg"))return"htmlmixed";if(u.includes("css"))return"css"}}function X1(u){if(u)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[u]}const Z1=50,J1=({sidebarSize:u,sidebarHidden:l=!1,sidebarIsFirst:a=!1,orientation:s="vertical",minSidebarSize:c=Z1,settingName:o,sidebar:h,main:m})=>{const g=Math.max(c,u)*window.devicePixelRatio,[p,T]=yu(o?o+"."+s+":size":void 0,g),[v,_]=yu(o?o+"."+s+":size":void 0,g),[E,x]=oe.useState(null),[b,A]=Mg();let M;s==="vertical"?(M=v/window.devicePixelRatio,b&&b.height<M&&(M=b.height-10)):(M=p/window.devicePixelRatio,b&&b.width<M&&(M=b.width-10)),document.body.style.userSelect=E?"none":"inherit";let U={};return s==="vertical"?a?U={top:E?0:M-4,bottom:E?0:void 0,height:E?"initial":8}:U={bottom:E?0:M-4,top:E?0:void 0,height:E?"initial":8}:a?U={left:E?0:M-4,right:E?0:void 0,width:E?"initial":8}:U={right:E?0:M-4,left:E?0:void 0,width:E?"initial":8},X.jsxs("div",{className:wl("split-view",s,a&&"sidebar-first"),ref:A,children:[X.jsx("div",{className:"split-view-main",children:m}),!l&&X.jsx("div",{style:{flexBasis:M},className:"split-view-sidebar",children:h}),!l&&X.jsx("div",{style:U,className:"split-view-resizer",onMouseDown:K=>x({offset:s==="vertical"?K.clientY:K.clientX,size:M}),onMouseUp:()=>x(null),onMouseMove:K=>{if(!K.buttons)x(null);else if(E){const W=(s==="vertical"?K.clientY:K.clientX)-E.offset,I=a?E.size+W:E.size-W,V=K.target.parentElement.getBoundingClientRect(),L=Math.min(Math.max(c,I),(s==="vertical"?V.height:V.width)-c);s==="vertical"?_(L*window.devicePixelRatio):T(L*window.devicePixelRatio)}}})]})},xg=({noShadow:u,children:l,noMinHeight:a,className:s,sidebarBackground:c,onClick:o})=>X.jsx("div",{className:wl("toolbar",u&&"no-shadow",a&&"no-min-height",s,c&&"toolbar-sidebar-background"),onClick:o,children:l}),W1=({tabs:u,selectedTab:l,setSelectedTab:a,leftToolbar:s,rightToolbar:c,dataTestId:o,mode:h})=>{const m=oe.useId();return l||(l=u[0].id),h||(h="default"),X.jsx("div",{className:"tabbed-pane","data-testid":o,children:X.jsxs("div",{className:"vbox",children:[X.jsxs(xg,{children:[s&&X.jsxs("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]}),h==="default"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...u.map(g=>X.jsx(F1,{id:g.id,ariaControls:`${m}-${g.id}`,title:g.title,count:g.count,errorCount:g.errorCount,selected:l===g.id,onSelect:a},g.id))]}),h==="select"&&X.jsx("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:X.jsx("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:l,onChange:g=>{a==null||a(u[g.currentTarget.selectedIndex].id)},children:u.map(g=>{let p="";return g.count&&(p=` (${g.count})`),g.errorCount&&(p=` (${g.errorCount})`),X.jsxs("option",{value:g.id,role:"tab","aria-controls":`${m}-${g.id}`,children:[g.title,p]},g.id)})})}),c&&X.jsxs("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...c]})]}),u.map(g=>{const p="tab-content tab-"+g.id;if(g.component)return X.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,style:{display:l===g.id?"inherit":"none"},children:g.component},g.id);if(l===g.id)return X.jsx("div",{id:`${m}-${g.id}`,role:"tabpanel","aria-label":g.title,className:p,children:g.render()},g.id)})]})})},F1=({id:u,title:l,count:a,errorCount:s,selected:c,onSelect:o,ariaControls:h})=>X.jsxs("div",{className:wl("tabbed-pane-tab",c&&"selected"),onClick:()=>o==null?void 0:o(u),role:"tab",title:l,"aria-controls":h,"aria-selected":c,children:[X.jsx("div",{className:"tabbed-pane-tab-label",children:l}),!!a&&X.jsx("div",{className:"tabbed-pane-tab-counter",children:a}),!!s&&X.jsx("div",{className:"tabbed-pane-tab-counter error",children:s})]}),I1=({sources:u,fileId:l,setFileId:a})=>X.jsx("select",{className:"source-chooser",hidden:!u.length,title:"Source chooser",value:l,onChange:s=>{a(s.target.selectedOptions[0].value)},children:P1(u)});function P1(u){const l=c=>c.replace(/.*[/\\]([^/\\]+)/,"$1"),a=c=>X.jsx("option",{value:c.id,children:l(c.label)},c.id),s=new Map;for(const c of u){let o=s.get(c.group||"Debugger");o||(o=[],s.set(c.group||"Debugger",o)),o.push(c)}return[...s.entries()].map(([c,o])=>X.jsx("optgroup",{label:c,children:o.filter(h=>(h.group||"Debugger")===c).map(h=>a(h))},c))}function ev(){return{id:"default",isRecorded:!1,text:"",language:"javascript",label:"",highlight:[]}}const Dt=oe.forwardRef(function({children:l,title:a="",icon:s,disabled:c=!1,toggled:o=!1,onClick:h=()=>{},style:m,testId:g,className:p,ariaLabel:T,errorBadge:v},_){const E=oe.useId();return X.jsxs("button",{ref:_,className:wl(p,"toolbar-button",s,o&&"toggled"),onMouseDown:dg,onClick:h,onDoubleClick:dg,title:a,disabled:!!c,style:m,"data-testid":g,"aria-label":T||a,"aria-describedby":v?E:void 0,children:[s&&X.jsx("span",{className:`codicon codicon-${s}`,style:l?{marginRight:5}:{}}),l,v&&X.jsx("span",{id:E,className:"toolbar-button-error-badge",title:v,"aria-label":v})]})}),hg=({style:u})=>X.jsx("div",{className:"toolbar-separator",style:u}),dg=u=>{u.stopPropagation(),u.preventDefault()};function tv(u){if(u<0||!isFinite(u))return"-";if(u===0)return"0ms";if(u<1e3)return u.toFixed(0)+"ms";const l=u/1e3;if(l<60)return l.toFixed(1)+"s";const a=l/60;if(a<60)return a.toFixed(1)+"m";const s=a/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}const Je=function(u,l,a){return u>=l&&u<=a};function bt(u){return Je(u,48,57)}function mg(u){return bt(u)||Je(u,65,70)||Je(u,97,102)}function nv(u){return Je(u,65,90)}function lv(u){return Je(u,97,122)}function iv(u){return nv(u)||lv(u)}function av(u){return u>=128}function cu(u){return iv(u)||av(u)||u===95}function gg(u){return cu(u)||bt(u)||u===45}function sv(u){return Je(u,0,8)||u===11||Je(u,14,31)||u===127}function ru(u){return u===10}function En(u){return ru(u)||u===9||u===32}const uv=1114111;class Df extends Error{constructor(l){super(l),this.name="InvalidCharacterError"}}function cv(u){const l=[];for(let a=0;a<u.length;a++){let s=u.charCodeAt(a);if(s===13&&u.charCodeAt(a+1)===10&&(s=10,a++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Je(s,55296,56319)&&Je(u.charCodeAt(a+1),56320,57343)){const c=s-55296,o=u.charCodeAt(a+1)-56320;s=Math.pow(2,16)+c*Math.pow(2,10)+o,a++}l.push(s)}return l}function Fe(u){if(u<=65535)return String.fromCharCode(u);u-=Math.pow(2,16);const l=Math.floor(u/Math.pow(2,10))+55296,a=u%Math.pow(2,10)+56320;return String.fromCharCode(l)+String.fromCharCode(a)}function rv(u){const l=cv(u);let a=-1;const s=[];let c;const o=function($){return $>=l.length?-1:l[$]},h=function($){if($===void 0&&($=1),$>3)throw"Spec Error: no more than three codepoints of lookahead.";return o(a+$)},m=function($){return $===void 0&&($=1),a+=$,c=o(a),!0},g=function(){return a-=1,!0},p=function($){return $===void 0&&($=c),$===-1},T=function(){if(v(),m(),En(c)){for(;En(h());)m();return new Af}else{if(c===34)return x();if(c===35)if(gg(h())||M(h(1),h(2))){const $=new Qg("");return K(h(1),h(2),h(3))&&($.type="id"),$.value=q(),$}else return new ut(c);else return c===36?h()===61?(m(),new dv):new ut(c):c===39?x():c===40?new Yg:c===41?new $g:c===42?h()===61?(m(),new mv):new ut(c):c===43?I()?(g(),_()):new ut(c):c===44?new Bg:c===45?I()?(g(),_()):h(1)===45&&h(2)===62?(m(2),new Ug):Q()?(g(),E()):new ut(c):c===46?I()?(g(),_()):new ut(c):c===58?new jg:c===59?new Rg:c===60?h(1)===33&&h(2)===45&&h(3)===45?(m(3),new Lg):new ut(c):c===64?K(h(1),h(2),h(3))?new Vg(q()):new ut(c):c===91?new Hg:c===92?U()?(g(),E()):new ut(c):c===93?new wf:c===94?h()===61?(m(),new hv):new ut(c):c===123?new qg:c===124?h()===61?(m(),new ov):h()===124?(m(),new Gg):new ut(c):c===125?new kg:c===126?h()===61?(m(),new fv):new ut(c):bt(c)?(g(),_()):cu(c)?(g(),E()):p()?new ou:new ut(c)}},v=function(){for(;h(1)===47&&h(2)===42;)for(m(2);;)if(m(),c===42&&h()===47){m();break}else if(p())return},_=function(){const $=V();if(K(h(1),h(2),h(3))){const J=new gv;return J.value=$.value,J.repr=$.repr,J.type=$.type,J.unit=q(),J}else if(h()===37){m();const J=new Wg;return J.value=$.value,J.repr=$.repr,J}else{const J=new Jg;return J.value=$.value,J.repr=$.repr,J.type=$.type,J}},E=function(){const $=q();if($.toLowerCase()==="url"&&h()===40){for(m();En(h(1))&&En(h(2));)m();return h()===34||h()===39?new hu($):En(h())&&(h(2)===34||h(2)===39)?new hu($):b()}else return h()===40?(m(),new hu($)):new Kg($)},x=function($){$===void 0&&($=c);let J="";for(;m();){if(c===$||p())return new Xg(J);if(ru(c))return g(),new Dg;c===92?p(h())||(ru(h())?m():J+=Fe(A())):J+=Fe(c)}throw new Error("Internal error")},b=function(){const $=new Zg("");for(;En(h());)m();if(p(h()))return $;for(;m();){if(c===41||p())return $;if(En(c)){for(;En(h());)m();return h()===41||p(h())?(m(),$):(ie(),new fu)}else{if(c===34||c===39||c===40||sv(c))return ie(),new fu;if(c===92)if(U())$.value+=Fe(A());else return ie(),new fu;else $.value+=Fe(c)}}throw new Error("Internal error")},A=function(){if(m(),mg(c)){const $=[c];for(let _e=0;_e<5&&mg(h());_e++)m(),$.push(c);En(h())&&m();let J=parseInt($.map(function(_e){return String.fromCharCode(_e)}).join(""),16);return J>uv&&(J=65533),J}else return p()?65533:c},M=function($,J){return!($!==92||ru(J))},U=function(){return M(c,h())},K=function($,J,_e){return $===45?cu(J)||J===45||M(J,_e):cu($)?!0:$===92?M($,J):!1},Q=function(){return K(c,h(1),h(2))},W=function($,J,_e){return $===43||$===45?!!(bt(J)||J===46&&bt(_e)):$===46?!!bt(J):!!bt($)},I=function(){return W(c,h(1),h(2))},q=function(){let $="";for(;m();)if(gg(c))$+=Fe(c);else if(U())$+=Fe(A());else return g(),$;throw new Error("Internal parse error")},V=function(){let $="",J="integer";for((h()===43||h()===45)&&(m(),$+=Fe(c));bt(h());)m(),$+=Fe(c);if(h(1)===46&&bt(h(2)))for(m(),$+=Fe(c),m(),$+=Fe(c),J="number";bt(h());)m(),$+=Fe(c);const _e=h(1),et=h(2),R=h(3);if((_e===69||_e===101)&&bt(et))for(m(),$+=Fe(c),m(),$+=Fe(c),J="number";bt(h());)m(),$+=Fe(c);else if((_e===69||_e===101)&&(et===43||et===45)&&bt(R))for(m(),$+=Fe(c),m(),$+=Fe(c),m(),$+=Fe(c),J="number";bt(h());)m(),$+=Fe(c);const G=L($);return{type:J,value:G,repr:$}},L=function($){return+$},ie=function(){for(;m();){if(c===41||p())return;U()&&A()}};let ae=0;for(;!p(h());)if(s.push(T()),ae++,ae>l.length*2)throw new Error("I'm infinite-looping!");return s}class Ke{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dg extends Ke{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class fu extends Ke{constructor(){super(...arguments),this.tokenType="BADURL"}}class Af extends Ke{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Lg extends Ke{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class Ug extends Ke{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class jg extends Ke{constructor(){super(...arguments),this.tokenType=":"}}class Rg extends Ke{constructor(){super(...arguments),this.tokenType=";"}}class Bg extends Ke{constructor(){super(...arguments),this.tokenType=","}}class wi extends Ke{constructor(){super(...arguments),this.value="",this.mirror=""}}class qg extends wi{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class kg extends wi{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Hg extends wi{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class wf extends wi{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class Yg extends wi{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class $g extends wi{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class fv extends Ke{constructor(){super(...arguments),this.tokenType="~="}}class ov extends Ke{constructor(){super(...arguments),this.tokenType="|="}}class hv extends Ke{constructor(){super(...arguments),this.tokenType="^="}}class dv extends Ke{constructor(){super(...arguments),this.tokenType="$="}}class mv extends Ke{constructor(){super(...arguments),this.tokenType="*="}}class Gg extends Ke{constructor(){super(...arguments),this.tokenType="||"}}class ou extends Ke{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class ut extends Ke{constructor(l){super(),this.tokenType="DELIM",this.value="",this.value=Fe(l)}toString(){return"DELIM("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}toSource(){return this.value==="\\"?`\\
51
+ `:this.value}}class Oi extends Ke{constructor(){super(...arguments),this.value=""}ASCIIMatch(l){return this.value.toLowerCase()===l.toLowerCase()}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l}}class Kg extends Oi{constructor(l){super(),this.tokenType="IDENT",this.value=l}toString(){return"IDENT("+this.value+")"}toSource(){return Ua(this.value)}}class hu extends Oi{constructor(l){super(),this.tokenType="FUNCTION",this.value=l,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return Ua(this.value)+"("}}class Vg extends Oi{constructor(l){super(),this.tokenType="AT-KEYWORD",this.value=l}toString(){return"AT("+this.value+")"}toSource(){return"@"+Ua(this.value)}}class Qg extends Oi{constructor(l){super(),this.tokenType="HASH",this.value=l,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l}toSource(){return this.type==="id"?"#"+Ua(this.value):"#"+pv(this.value)}}class Xg extends Oi{constructor(l){super(),this.tokenType="STRING",this.value=l}toString(){return'"'+Fg(this.value)+'"'}}class Zg extends Oi{constructor(l){super(),this.tokenType="URL",this.value=l}toString(){return"URL("+this.value+")"}toSource(){return'url("'+Fg(this.value)+'")'}}class Jg extends Ke{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const l=super.toJSON();return l.value=this.value,l.type=this.type,l.repr=this.repr,l}toSource(){return this.repr}}class Wg extends Ke{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.repr=this.repr,l}toSource(){return this.repr+"%"}}class gv extends Ke{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const l=this.constructor.prototype.constructor.prototype.toJSON.call(this);return l.value=this.value,l.type=this.type,l.repr=this.repr,l.unit=this.unit,l}toSource(){const l=this.repr;let a=Ua(this.unit);return a[0].toLowerCase()==="e"&&(a[1]==="-"||Je(a.charCodeAt(1),48,57))&&(a="\\65 "+a.slice(1,a.length)),l+a}}function Ua(u){u=""+u;let l="";const a=u.charCodeAt(0);for(let s=0;s<u.length;s++){const c=u.charCodeAt(s);if(c===0)throw new Df("Invalid character: the input contains U+0000.");Je(c,1,31)||c===127||s===0&&Je(c,48,57)||s===1&&Je(c,48,57)&&a===45?l+="\\"+c.toString(16)+" ":c>=128||c===45||c===95||Je(c,48,57)||Je(c,65,90)||Je(c,97,122)?l+=u[s]:l+="\\"+u[s]}return l}function pv(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Df("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Je(s,48,57)||Je(s,65,90)||Je(s,97,122)?l+=u[a]:l+="\\"+s.toString(16)+" "}return l}function Fg(u){u=""+u;let l="";for(let a=0;a<u.length;a++){const s=u.charCodeAt(a);if(s===0)throw new Df("Invalid character: the input contains U+0000.");Je(s,1,31)||s===127?l+="\\"+s.toString(16)+" ":s===34||s===92?l+="\\"+u[a]:l+=u[a]}return l}class St extends Error{}function yv(u,l){let a;try{a=rv(u),a[a.length-1]instanceof ou||a.push(new ou)}catch(L){const ie=L.message+` while parsing css selector "${u}". Did you mean to CSS.escape it?`,ae=(L.stack||"").indexOf(L.message);throw ae!==-1&&(L.stack=L.stack.substring(0,ae)+ie+L.stack.substring(ae+L.message.length)),L.message=ie,L}const s=a.find(L=>L instanceof Vg||L instanceof Dg||L instanceof fu||L instanceof Gg||L instanceof Lg||L instanceof Ug||L instanceof Rg||L instanceof qg||L instanceof kg||L instanceof Zg||L instanceof Wg);if(s)throw new St(`Unsupported token "${s.toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`);let c=0;const o=new Set;function h(){return new St(`Unexpected token "${a[c].toSource()}" while parsing css selector "${u}". Did you mean to CSS.escape it?`)}function m(){for(;a[c]instanceof Af;)c++}function g(L=c){return a[L]instanceof Kg}function p(L=c){return a[L]instanceof Xg}function T(L=c){return a[L]instanceof Jg}function v(L=c){return a[L]instanceof Bg}function _(L=c){return a[L]instanceof Yg}function E(L=c){return a[L]instanceof $g}function x(L=c){return a[L]instanceof hu}function b(L=c){return a[L]instanceof ut&&a[L].value==="*"}function A(L=c){return a[L]instanceof ou}function M(L=c){return a[L]instanceof ut&&[">","+","~"].includes(a[L].value)}function U(L=c){return v(L)||E(L)||A(L)||M(L)||a[L]instanceof Af}function K(){const L=[Q()];for(;m(),!!v();)c++,L.push(Q());return L}function Q(){return m(),T()||p()?a[c++].value:W()}function W(){const L={simples:[]};for(m(),M()?L.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):L.simples.push({selector:I(),combinator:""});;){if(m(),M())L.simples[L.simples.length-1].combinator=a[c++].value,m();else if(U())break;L.simples.push({combinator:"",selector:I()})}return L}function I(){let L="";const ie=[];for(;!U();)if(g()||b())L+=a[c++].toSource();else if(a[c]instanceof Qg)L+=a[c++].toSource();else if(a[c]instanceof ut&&a[c].value===".")if(c++,g())L+="."+a[c++].toSource();else throw h();else if(a[c]instanceof jg)if(c++,g())if(!l.has(a[c].value.toLowerCase()))L+=":"+a[c++].toSource();else{const ae=a[c++].value.toLowerCase();ie.push({name:ae,args:[]}),o.add(ae)}else if(x()){const ae=a[c++].value.toLowerCase();if(l.has(ae)?(ie.push({name:ae,args:K()}),o.add(ae)):L+=`:${ae}(${q()})`,m(),!E())throw h();c++}else throw h();else if(a[c]instanceof Hg){for(L+="[",c++;!(a[c]instanceof wf)&&!A();)L+=a[c++].toSource();if(!(a[c]instanceof wf))throw h();L+="]",c++}else throw h();if(!L&&!ie.length)throw h();return{css:L||void 0,functions:ie}}function q(){let L="",ie=1;for(;!A()&&((_()||x())&&ie++,E()&&ie--,!!ie);)L+=a[c++].toSource();return L}const V=K();if(!A())throw h();if(V.some(L=>typeof L!="object"||!("simples"in L)))throw new St(`Error while parsing css selector "${u}". Did you mean to CSS.escape it?`);return{selector:V,names:Array.from(o)}}const pg=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),vv=new Set(["left-of","right-of","above","below","near"]),bv=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Ig(u){const l=Tv(u),a=[];for(const s of l.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const c=yv(s.body,bv);a.push({name:"css",body:c.selector,source:s.body});continue}if(pg.has(s.name)){let c,o;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new St(`Malformed selector: ${s.name}=`+s.body);if(c=p[0],p.length===2){if(typeof p[1]!="number"||!vv.has(s.name))throw new St(`Malformed selector: ${s.name}=`+s.body);o=p[1]}}catch{throw new St(`Malformed selector: ${s.name}=`+s.body)}const h={name:s.name,source:s.body,body:{parsed:Ig(c),distance:o}},m=[...h.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),g=m?h.body.parsed.parts.indexOf(m):-1;g!==-1&&Sv(h.body.parsed.parts.slice(0,g+1),a.slice(0,g+1))&&h.body.parsed.parts.splice(0,g+1),a.push(h);continue}a.push({...s,source:s.body})}if(pg.has(a[0].name))throw new St(`"${a[0].name}" selector cannot be first`);return{capture:l.capture,parts:a}}function Sv(u,l){return gi({parts:u})===gi({parts:l})}function gi(u,l){return typeof u=="string"?u:u.parts.map((a,s)=>{let c=!0;!l&&s!==u.capture&&(a.name==="css"||a.name==="xpath"&&a.source.startsWith("//")||a.source.startsWith(".."))&&(c=!1);const o=c?a.name+"=":"";return`${s===u.capture?"*":""}${o}${a.source}`}).join(" >> ")}function Tv(u){let l=0,a,s=0;const c={parts:[]},o=()=>{const m=u.substring(s,l).trim(),g=m.indexOf("=");let p,T;g!==-1&&m.substring(0,g).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=m.substring(0,g).trim(),T=m.substring(g+1)):m.length>1&&m[0]==='"'&&m[m.length-1]==='"'||m.length>1&&m[0]==="'"&&m[m.length-1]==="'"?(p="text",T=m):/^\(*\/\//.test(m)||m.startsWith("..")?(p="xpath",T=m):(p="css",T=m);let v=!1;if(p[0]==="*"&&(v=!0,p=p.substring(1)),c.parts.push({name:p,body:T}),v){if(c.capture!==void 0)throw new St("Only one of the selectors can capture using * modifier");c.capture=c.parts.length-1}};if(!u.includes(">>"))return l=u.length,o(),c;const h=()=>{const g=u.substring(s,l).match(/^\s*text\s*=(.*)$/);return!!g&&!!g[1]};for(;l<u.length;){const m=u[l];m==="\\"&&l+1<u.length?l+=2:m===a?(a=void 0,l++):!a&&(m==='"'||m==="'"||m==="`")&&!h()?(a=m,l++):!a&&m===">"&&u[l+1]===">"?(o(),l+=2,s=l):l++}return o(),c}function of(u,l){let a=0,s=u.length===0;const c=()=>u[a]||"",o=()=>{const A=c();return++a,s=a>=u.length,A},h=A=>{throw s?new St(`Unexpected end of selector while parsing selector \`${u}\``):new St(`Error while parsing selector \`${u}\` - unexpected symbol "${c()}" at position ${a}`+(A?" during "+A:""))};function m(){for(;!s&&/\s/.test(c());)o()}function g(A){return A>="€"||A>="0"&&A<="9"||A>="A"&&A<="Z"||A>="a"&&A<="z"||A>="0"&&A<="9"||A==="_"||A==="-"}function p(){let A="";for(m();!s&&g(c());)A+=o();return A}function T(A){let M=o();for(M!==A&&h("parsing quoted string");!s&&c()!==A;)c()==="\\"&&o(),M+=o();return c()!==A&&h("parsing quoted string"),M+=o(),M}function v(){o()!=="/"&&h("parsing regular expression");let A="",M=!1;for(;!s;){if(c()==="\\")A+=o(),s&&h("parsing regular expression");else if(M&&c()==="]")M=!1;else if(!M&&c()==="[")M=!0;else if(!M&&c()==="/")break;A+=o()}o()!=="/"&&h("parsing regular expression");let U="";for(;!s&&c().match(/[dgimsuy]/);)U+=o();try{return new RegExp(A,U)}catch(K){throw new St(`Error while parsing selector \`${u}\`: ${K.message}`)}}function _(){let A="";return m(),c()==="'"||c()==='"'?A=T(c()).slice(1,-1):A=p(),A||h("parsing property path"),A}function E(){m();let A="";return s||(A+=o()),!s&&A!=="="&&(A+=o()),["=","*=","^=","$=","|=","~="].includes(A)||h("parsing operator"),A}function x(){o();const A=[];for(A.push(_()),m();c()===".";)o(),A.push(_()),m();if(c()==="]")return o(),{name:A.join("."),jsonPath:A,op:"<truthy>",value:null,caseSensitive:!1};const M=E();let U,K=!0;if(m(),c()==="/"){if(M!=="=")throw new St(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with regular expression`);U=v()}else if(c()==="'"||c()==='"')U=T(c()).slice(1,-1),m(),c()==="i"||c()==="I"?(K=!1,o()):(c()==="s"||c()==="S")&&(K=!0,o());else{for(U="";!s&&(g(c())||c()==="+"||c()===".");)U+=o();U==="true"?U=!0:U==="false"&&(U=!1)}if(m(),c()!=="]"&&h("parsing attribute value"),o(),M!=="="&&typeof U!="string")throw new St(`Error while parsing selector \`${u}\` - cannot use ${M} in attribute with non-string matching value - ${U}`);return{name:A.join("."),jsonPath:A,op:M,value:U,caseSensitive:K}}const b={name:"",attributes:[]};for(b.name=p(),m();c()==="[";)b.attributes.push(x()),m();if(s||h(void 0),!b.name&&!b.attributes.length)throw new St(`Error while parsing selector \`${u}\` - selector cannot be empty`);return b}function wu(u,l="'"){const a=JSON.stringify(u),s=a.substring(1,a.length-1).replace(/\\"/g,'"');if(l==="'")return l+s.replace(/[']/g,"\\'")+l;if(l==='"')return l+s.replace(/["]/g,'\\"')+l;if(l==="`")return l+s.replace(/[`]/g,"\\`")+l;throw new Error("Invalid escape char")}function vu(u){return u.charAt(0).toUpperCase()+u.substring(1)}function Pg(u){return u.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function Ou(u){return u.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function ep(u,l,a=!1){return Ev(u,l,a,1)[0]}function Ev(u,l,a=!1,s=20,c){try{return mi(new Cv[u](c),Ig(l),a,s)}catch{return[l]}}function mi(u,l,a=!1,s=20){const c=[...l.parts],o=[];let h=a?"frame-locator":"page";for(let m=0;m<c.length;m++){const g=c[m],p=h;if(h="locator",g.name==="internal:describe")continue;if(g.name==="nth"){g.body==="0"?o.push([u.generateLocator(p,"first",""),u.generateLocator(p,"nth","0")]):g.body==="-1"?o.push([u.generateLocator(p,"last",""),u.generateLocator(p,"nth","-1")]):o.push([u.generateLocator(p,"nth",g.body)]);continue}if(g.name==="visible"){o.push([u.generateLocator(p,"visible",g.body),u.generateLocator(p,"default",`visible=${g.body}`)]);continue}if(g.name==="internal:text"){const{exact:x,text:b}=Na(g.body);o.push([u.generateLocator(p,"text",b,{exact:x})]);continue}if(g.name==="internal:has-text"){const{exact:x,text:b}=Na(g.body);if(!x){o.push([u.generateLocator(p,"has-text",b,{exact:x})]);continue}}if(g.name==="internal:has-not-text"){const{exact:x,text:b}=Na(g.body);if(!x){o.push([u.generateLocator(p,"has-not-text",b,{exact:x})]);continue}}if(g.name==="internal:has"){const x=mi(u,g.body.parsed,!1,s);o.push(x.map(b=>u.generateLocator(p,"has",b)));continue}if(g.name==="internal:has-not"){const x=mi(u,g.body.parsed,!1,s);o.push(x.map(b=>u.generateLocator(p,"hasNot",b)));continue}if(g.name==="internal:and"){const x=mi(u,g.body.parsed,!1,s);o.push(x.map(b=>u.generateLocator(p,"and",b)));continue}if(g.name==="internal:or"){const x=mi(u,g.body.parsed,!1,s);o.push(x.map(b=>u.generateLocator(p,"or",b)));continue}if(g.name==="internal:chain"){const x=mi(u,g.body.parsed,!1,s);o.push(x.map(b=>u.generateLocator(p,"chain",b)));continue}if(g.name==="internal:label"){const{exact:x,text:b}=Na(g.body);o.push([u.generateLocator(p,"label",b,{exact:x})]);continue}if(g.name==="internal:role"){const x=of(g.body),b={attrs:[]};for(const A of x.attributes)A.name==="name"?(b.exact=A.caseSensitive,b.name=A.value):A.name==="description"?(b.exact=A.caseSensitive,b.description=A.value):(A.name==="level"&&typeof A.value=="string"&&(A.value=+A.value),b.attrs.push({name:A.name==="include-hidden"?"includeHidden":A.name,value:A.value}));o.push([u.generateLocator(p,"role",x.name,b)]);continue}if(g.name==="internal:testid"){const x=of(g.body),{value:b}=x.attributes[0];o.push([u.generateLocator(p,"test-id",b)]);continue}if(g.name==="internal:attr"){const x=of(g.body),{name:b,value:A,caseSensitive:M}=x.attributes[0],U=A,K=!!M;if(b==="placeholder"){o.push([u.generateLocator(p,"placeholder",U,{exact:K})]);continue}if(b==="alt"){o.push([u.generateLocator(p,"alt",U,{exact:K})]);continue}if(b==="title"){o.push([u.generateLocator(p,"title",U,{exact:K})]);continue}}if(g.name==="internal:control"&&g.body==="enter-frame"){const x=o[o.length-1],b=c[m-1],A=x.map(M=>u.chainLocators([M,u.generateLocator(p,"frame","")]));["xpath","css"].includes(b.name)&&A.push(u.generateLocator(p,"frame-locator",gi({parts:[b]})),u.generateLocator(p,"frame-locator",gi({parts:[b]},!0))),x.splice(0,x.length,...A),h="frame-locator";continue}const T=c[m+1],v=gi({parts:[g]}),_=u.generateLocator(p,"default",v);if(T&&["internal:has-text","internal:has-not-text"].includes(T.name)){const{exact:x,text:b}=Na(T.body);if(!x){const A=u.generateLocator("locator",T.name==="internal:has-text"?"has-text":"has-not-text",b,{exact:x}),M={};T.name==="internal:has-text"?M.hasText=b:M.hasNotText=b;const U=u.generateLocator(p,"default",v,M);o.push([u.chainLocators([_,A]),U]),m++;continue}}let E;if(["xpath","css"].includes(g.name)){const x=gi({parts:[g]},!0);E=u.generateLocator(p,"default",x)}o.push([_,E].filter(Boolean))}return Av(u,o,s)}function Av(u,l,a){const s=l.map(()=>""),c=[],o=h=>{if(h===l.length)return c.push(u.chainLocators(s)),c.length<a;for(const m of l[h])if(s[h]=m,!o(h+1))return!1;return!0};return o(0),c}function Na(u){let l=!1;const a=u.match(/^\/(.*)\/([igm]*)$/);return a?{text:new RegExp(a[1],a[2])}:(u.endsWith('"')?(u=JSON.parse(u),l=!0):u.endsWith('"s')?(u=JSON.parse(u.substring(0,u.length-1)),l=!0):u.endsWith('"i')&&(u=JSON.parse(u.substring(0,u.length-1)),l=!1),{exact:l,text:u})}class wv{constructor(l){this.preferredQuote=l}generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(c.hasNotText)} })`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter({ visible: ${s==="true"?"true":"false"} })`;case"role":const o=[];Ge(c.name)?o.push(`name: ${this.regexToSourceString(c.name)}`):typeof c.name=="string"&&o.push(`name: ${this.quote(c.name)}`),Ge(c.description)?o.push(`description: ${this.regexToSourceString(c.description)}`):typeof c.description=="string"&&o.push(`description: ${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("exact: true");for(const{name:m,value:g}of c.attrs)o.push(`${m}: ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, { ${o.join(", ")} }`:"";return`getByRole(${this.quote(s)}${h})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: ${s} })`;case"hasNot":return`filter({ hasNot: ${s} })`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!c.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("getByLabel",s,!!c.exact);case"title":return this.toCallWithExact("getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToSourceString(l){return Ou(String(l))}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToSourceString(a)})`:s?`${l}(${this.quote(a)}, { exact: true })`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?this.regexToSourceString(l):this.quote(l)}toTestIdValue(l){return Ge(l)?this.regexToSourceString(l):this.quote(l)}quote(l){return wu(l,this.preferredQuote??"'")}}class Ov{generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(c.hasText)})`:c.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(c.hasNotText)})`:`locator(${this.quote(s)})`;case"frame-locator":return`frame_locator(${this.quote(s)})`;case"frame":return"content_frame";case"nth":return`nth(${s})`;case"first":return"first";case"last":return"last";case"visible":return`filter(visible=${s==="true"?"True":"False"})`;case"role":const o=[];Ge(c.name)?o.push(`name=${this.regexToString(c.name)}`):typeof c.name=="string"&&o.push(`name=${this.quote(c.name)}`),Ge(c.description)?o.push(`description=${this.regexToString(c.description)}`):typeof c.description=="string"&&o.push(`description=${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("exact=True");for(const{name:m,value:g}of c.attrs){let p=typeof g=="string"?this.quote(g):g;typeof g=="boolean"&&(p=g?"True":"False"),o.push(`${Pg(m)}=${p}`)}const h=o.length?`, ${o.join(", ")}`:"";return`get_by_role(${this.quote(s)}${h})`;case"has-text":return`filter(has_text=${this.toHasText(s)})`;case"has-not-text":return`filter(has_not_text=${this.toHasText(s)})`;case"has":return`filter(has=${s})`;case"hasNot":return`filter(has_not=${s})`;case"and":return`and_(${s})`;case"or":return`or_(${s})`;case"chain":return`locator(${s})`;case"test-id":return`get_by_test_id(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("get_by_text",s,!!c.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!c.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!c.exact);case"label":return this.toCallWithExact("get_by_label",s,!!c.exact);case"title":return this.toCallWithExact("get_by_title",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${Ou(l.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${a})`}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, exact=True)`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?this.regexToString(l):`${this.quote(l)}`}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}quote(l){return wu(l,'"')}}class _v{generateLocator(l,a,s,c={}){let o;switch(l){case"page":o="Page";break;case"frame-locator":o="FrameLocator";break;case"locator":o="Locator";break}switch(a){case"default":return c.hasText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasText(${this.toHasText(c.hasText)}))`:c.hasNotText!==void 0?`locator(${this.quote(s)}, new ${o}.LocatorOptions().setHasNotText(${this.toHasText(c.hasNotText)}))`:`locator(${this.quote(s)})`;case"frame-locator":return`frameLocator(${this.quote(s)})`;case"frame":return"contentFrame()";case"nth":return`nth(${s})`;case"first":return"first()";case"last":return"last()";case"visible":return`filter(new ${o}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const h=[];Ge(c.name)?h.push(`.setName(${this.regexToString(c.name)})`):typeof c.name=="string"&&h.push(`.setName(${this.quote(c.name)})`),Ge(c.description)?h.push(`.setDescription(${this.regexToString(c.description)})`):typeof c.description=="string"&&h.push(`.setDescription(${this.quote(c.description)})`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&h.push(".setExact(true)");for(const{name:g,value:p}of c.attrs)h.push(`.set${vu(g)}(${typeof p=="string"?this.quote(p):p})`);const m=h.length?`, new ${o}.GetByRoleOptions()${h.join("")}`:"";return`getByRole(AriaRole.${Pg(s).toUpperCase()}${m})`;case"has-text":return`filter(new ${o}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${o}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${o}.FilterOptions().setHas(${s}))`;case"hasNot":return`filter(new ${o}.FilterOptions().setHasNot(${s}))`;case"and":return`and(${s})`;case"or":return`or(${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(o,"getByText",s,!!c.exact);case"alt":return this.toCallWithExact(o,"getByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact(o,"getByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact(o,"getByLabel",s,!!c.exact);case"title":return this.toCallWithExact(o,"getByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(Ou(l.source))}${a})`}toCallWithExact(l,a,s,c){return Ge(s)?`${a}(${this.regexToString(s)})`:c?`${a}(${this.quote(s)}, new ${l}.${vu(a)}Options().setExact(true))`:`${a}(${this.quote(s)})`}toHasText(l){return Ge(l)?this.regexToString(l):this.quote(l)}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}quote(l){return wu(l,'"')}}class Nv{generateLocator(l,a,s,c={}){switch(a){case"default":return c.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(c.hasText)} })`:c.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(c.hasNotText)} })`:`Locator(${this.quote(s)})`;case"frame-locator":return`FrameLocator(${this.quote(s)})`;case"frame":return"ContentFrame";case"nth":return`Nth(${s})`;case"first":return"First";case"last":return"Last";case"visible":return`Filter(new() { Visible = ${s==="true"?"true":"false"} })`;case"role":const o=[];Ge(c.name)?o.push(`NameRegex = ${this.regexToString(c.name)}`):typeof c.name=="string"&&o.push(`Name = ${this.quote(c.name)}`),Ge(c.description)?o.push(`DescriptionRegex = ${this.regexToString(c.description)}`):typeof c.description=="string"&&o.push(`Description = ${this.quote(c.description)}`),c.exact&&(typeof c.name=="string"||typeof c.description=="string")&&o.push("Exact = true");for(const{name:m,value:g}of c.attrs)o.push(`${vu(m)} = ${typeof g=="string"?this.quote(g):g}`);const h=o.length?`, new() { ${o.join(", ")} }`:"";return`GetByRole(AriaRole.${vu(s)}${h})`;case"has-text":return`Filter(new() { ${this.toHasText(s)} })`;case"has-not-text":return`Filter(new() { ${this.toHasNotText(s)} })`;case"has":return`Filter(new() { Has = ${s} })`;case"hasNot":return`Filter(new() { HasNot = ${s} })`;case"and":return`And(${s})`;case"or":return`Or(${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!c.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!c.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!c.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!c.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!c.exact);default:throw new Error("Unknown selector kind "+a)}}chainLocators(l){return l.join(".")}regexToString(l){const a=l.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(Ou(l.source))}${a})`}toCallWithExact(l,a,s){return Ge(a)?`${l}(${this.regexToString(a)})`:s?`${l}(${this.quote(a)}, new() { Exact = true })`:`${l}(${this.quote(a)})`}toHasText(l){return Ge(l)?`HasTextRegex = ${this.regexToString(l)}`:`HasText = ${this.quote(l)}`}toTestIdValue(l){return Ge(l)?this.regexToString(l):this.quote(l)}toHasNotText(l){return Ge(l)?`HasNotTextRegex = ${this.regexToString(l)}`:`HasNotText = ${this.quote(l)}`}quote(l){return wu(l,'"')}}class Mv{generateLocator(l,a,s,c={}){return JSON.stringify({kind:a,body:s,options:c})}chainLocators(l){const a=l.map(s=>JSON.parse(s));for(let s=0;s<a.length-1;++s)a[s].next=a[s+1];return JSON.stringify(a[0])}}const Cv={javascript:wv,python:Ov,java:_v,csharp:Nv,jsonl:Mv};function Ge(u){return u instanceof RegExp}const zv=({language:u,log:l})=>{const a=oe.useRef(null),[s,c]=oe.useState(new Map);return oe.useLayoutEffect(()=>{var o;l.find(h=>h.reveal)&&((o=a.current)==null||o.scrollIntoView({block:"center",inline:"nearest"}))},[a,l]),X.jsxs("div",{className:"call-log",style:{flex:"auto"},children:[l.map(o=>{const h=s.get(o.id),m=typeof h=="boolean"?h:o.status!=="done",g=o.params.selector?ep(u,o.params.selector):null;let p=o.title,T="";return o.title.startsWith("expect.to")||o.title.startsWith("expect.not.to")?(p="expect(",T=`).${o.title.substring(7)}()`):o.title.startsWith("locator.")?(p="",T=`.${o.title.substring(8)}()`):(g||o.params.url)&&(p=o.title+"(",T=")"),X.jsxs("div",{className:wl("call-log-call",o.status),children:[X.jsxs("div",{className:"call-log-call-header",children:[X.jsx("span",{className:wl("codicon",`codicon-chevron-${m?"down":"right"}`),style:{cursor:"pointer"},onClick:()=>{const v=new Map(s);v.set(o.id,!m),c(v)}}),p,o.params.url?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-url",title:o.params.url,children:o.params.url})}):void 0,g?X.jsx("span",{className:"call-log-details",children:X.jsx("span",{className:"call-log-selector",title:`page.${g}`,children:`page.${g}`})}):void 0,T,X.jsx("span",{className:wl("codicon",xv(o))}),typeof o.duration=="number"?X.jsxs("span",{className:"call-log-time",children:["— ",tv(o.duration)]}):void 0]}),(m?o.messages:[]).map((v,_)=>X.jsx("div",{className:"call-log-message",children:v.trim()},_)),!!o.error&&X.jsx("div",{className:"call-log-message error",hidden:!m,children:o.error})]},o.id)}),X.jsx("div",{ref:a})]})};function xv(u){switch(u.status){case"done":return"codicon-check";case"in-progress":return"codicon-clock";case"paused":return"codicon-debug-pause";case"error":return"codicon-error"}}const Lf=Symbol.for("yaml.alias"),Of=Symbol.for("yaml.document"),In=Symbol.for("yaml.map"),tp=Symbol.for("yaml.pair"),nn=Symbol.for("yaml.scalar"),_i=Symbol.for("yaml.seq"),Vt=Symbol.for("yaml.node.type"),el=u=>!!u&&typeof u=="object"&&u[Vt]===Lf,_l=u=>!!u&&typeof u=="object"&&u[Vt]===Of,Ni=u=>!!u&&typeof u=="object"&&u[Vt]===In,je=u=>!!u&&typeof u=="object"&&u[Vt]===tp,xe=u=>!!u&&typeof u=="object"&&u[Vt]===nn,Mi=u=>!!u&&typeof u=="object"&&u[Vt]===_i;function Re(u){if(u&&typeof u=="object")switch(u[Vt]){case In:case _i:return!0}return!1}function Be(u){if(u&&typeof u=="object")switch(u[Vt]){case Lf:case In:case nn:case _i:return!0}return!1}const np=u=>(xe(u)||Re(u))&&!!u.anchor,Tt=Symbol("break visit"),lp=Symbol("skip children"),tn=Symbol("remove node");function Nl(u,l){const a=ip(l);_l(u)?pi(null,u.contents,a,Object.freeze([u]))===tn&&(u.contents=null):pi(null,u,a,Object.freeze([]))}Nl.BREAK=Tt;Nl.SKIP=lp;Nl.REMOVE=tn;function pi(u,l,a,s){const c=ap(u,l,a,s);if(Be(c)||je(c))return sp(u,s,c),pi(u,c,a,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=pi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===Tt)return Tt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(je(l)){s=Object.freeze(s.concat(l));const o=pi("key",l.key,a,s);if(o===Tt)return Tt;o===tn&&(l.key=null);const h=pi("value",l.value,a,s);if(h===Tt)return Tt;h===tn&&(l.value=null)}}return c}async function _u(u,l){const a=ip(l);_l(u)?await yi(null,u.contents,a,Object.freeze([u]))===tn&&(u.contents=null):await yi(null,u,a,Object.freeze([]))}_u.BREAK=Tt;_u.SKIP=lp;_u.REMOVE=tn;async function yi(u,l,a,s){const c=await ap(u,l,a,s);if(Be(c)||je(c))return sp(u,s,c),yi(u,c,a,s);if(typeof c!="symbol"){if(Re(l)){s=Object.freeze(s.concat(l));for(let o=0;o<l.items.length;++o){const h=await yi(o,l.items[o],a,s);if(typeof h=="number")o=h-1;else{if(h===Tt)return Tt;h===tn&&(l.items.splice(o,1),o-=1)}}}else if(je(l)){s=Object.freeze(s.concat(l));const o=await yi("key",l.key,a,s);if(o===Tt)return Tt;o===tn&&(l.key=null);const h=await yi("value",l.value,a,s);if(h===Tt)return Tt;h===tn&&(l.value=null)}}return c}function ip(u){return typeof u=="object"&&(u.Collection||u.Node||u.Value)?Object.assign({Alias:u.Node,Map:u.Node,Scalar:u.Node,Seq:u.Node},u.Value&&{Map:u.Value,Scalar:u.Value,Seq:u.Value},u.Collection&&{Map:u.Collection,Seq:u.Collection},u):u}function ap(u,l,a,s){var c,o,h,m,g;if(typeof a=="function")return a(u,l,s);if(Ni(l))return(c=a.Map)==null?void 0:c.call(a,u,l,s);if(Mi(l))return(o=a.Seq)==null?void 0:o.call(a,u,l,s);if(je(l))return(h=a.Pair)==null?void 0:h.call(a,u,l,s);if(xe(l))return(m=a.Scalar)==null?void 0:m.call(a,u,l,s);if(el(l))return(g=a.Alias)==null?void 0:g.call(a,u,l,s)}function sp(u,l,a){const s=l[l.length-1];if(Re(s))s.items[u]=a;else if(je(s))u==="key"?s.key=a:s.value=a;else if(_l(s))s.contents=a;else{const c=el(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${c} parent`)}}const Dv={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},Lv=u=>u.replace(/[!,[\]{}]/g,l=>Dv[l]);class ot{constructor(l,a){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},ot.defaultYaml,l),this.tags=Object.assign({},ot.defaultTags,a)}clone(){const l=new ot(this.yaml,this.tags);return l.docStart=this.docStart,l}atDocument(){const l=new ot(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:ot.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},ot.defaultTags);break}return l}add(l,a){this.atNextDocument&&(this.yaml={explicit:ot.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},ot.defaultTags),this.atNextDocument=!1);const s=l.trim().split(/[ \t]+/),c=s.shift();switch(c){case"%TAG":{if(s.length!==2&&(a(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[o,h]=s;return this.tags[o]=h,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return a(0,"%YAML directive should contain exactly one part"),!1;const[o]=s;if(o==="1.1"||o==="1.2")return this.yaml.version=o,!0;{const h=/^\d+\.\d+$/.test(o);return a(6,`Unsupported YAML version ${o}`,h),!1}}default:return a(0,`Unknown directive ${c}`,!0),!1}}tagName(l,a){if(l==="!")return"!";if(l[0]!=="!")return a(`Not a valid tag: ${l}`),null;if(l[1]==="<"){const h=l.slice(2,-1);return h==="!"||h==="!!"?(a(`Verbatim tags aren't resolved, so ${l} is invalid.`),null):(l[l.length-1]!==">"&&a("Verbatim tags must end with a >"),h)}const[,s,c]=l.match(/^(.*!)([^!]*)$/s);c||a(`The ${l} tag has no suffix`);const o=this.tags[s];if(o)try{return o+decodeURIComponent(c)}catch(h){return a(String(h)),null}return s==="!"?l:(a(`Could not resolve tag: ${l}`),null)}tagString(l){for(const[a,s]of Object.entries(this.tags))if(l.startsWith(s))return a+Lv(l.substring(s.length));return l[0]==="!"?l:`!<${l}>`}toString(l){const a=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let c;if(l&&s.length>0&&Be(l.contents)){const o={};Nl(l.contents,(h,m)=>{Be(m)&&m.tag&&(o[m.tag]=!0)}),c=Object.keys(o)}else c=[];for(const[o,h]of s)o==="!!"&&h==="tag:yaml.org,2002:"||(!l||c.some(m=>m.startsWith(h)))&&a.push(`%TAG ${o} ${h}`);return a.join(`
52
+ `)}}ot.defaultYaml={explicit:!1,version:"1.2"};ot.defaultTags={"!!":"tag:yaml.org,2002:"};function up(u){if(/[\x00-\x19\s,[\]{}]/.test(u)){const a=`Anchor must not contain whitespace or control characters: ${JSON.stringify(u)}`;throw new Error(a)}return!0}function cp(u){const l=new Set;return Nl(u,{Value(a,s){s.anchor&&l.add(s.anchor)}}),l}function rp(u,l){for(let a=1;;++a){const s=`${u}${a}`;if(!l.has(s))return s}}function Uv(u,l){const a=[],s=new Map;let c=null;return{onAnchor:o=>{a.push(o),c??(c=cp(u));const h=rp(l,c);return c.add(h),h},setAnchors:()=>{for(const o of a){const h=s.get(o);if(typeof h=="object"&&h.anchor&&(xe(h.node)||Re(h.node)))h.node.anchor=h.anchor;else{const m=new Error("Failed to resolve repeated object (this should not happen)");throw m.source=o,m}}},sourceObjects:s}}function vi(u,l,a,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let c=0,o=s.length;c<o;++c){const h=s[c],m=vi(u,s,String(c),h);m===void 0?delete s[c]:m!==h&&(s[c]=m)}else if(s instanceof Map)for(const c of Array.from(s.keys())){const o=s.get(c),h=vi(u,s,c,o);h===void 0?s.delete(c):h!==o&&s.set(c,h)}else if(s instanceof Set)for(const c of Array.from(s)){const o=vi(u,s,c,c);o===void 0?s.delete(c):o!==c&&(s.delete(c),s.add(o))}else for(const[c,o]of Object.entries(s)){const h=vi(u,s,c,o);h===void 0?delete s[c]:h!==o&&(s[c]=h)}return u.call(l,a,s)}function Kt(u,l,a){if(Array.isArray(u))return u.map((s,c)=>Kt(s,String(c),a));if(u&&typeof u.toJSON=="function"){if(!a||!np(u))return u.toJSON(l,a);const s={aliasCount:0,count:1,res:void 0};a.anchors.set(u,s),a.onCreate=o=>{s.res=o,delete a.onCreate};const c=u.toJSON(l,a);return a.onCreate&&a.onCreate(c),c}return typeof u=="bigint"&&!(a!=null&&a.keep)?Number(u):u}class Uf{constructor(l){Object.defineProperty(this,Vt,{value:l})}clone(){const l=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(l.range=this.range.slice()),l}toJS(l,{mapAsMap:a,maxAliasCount:s,onAnchor:c,reviver:o}={}){if(!_l(l))throw new TypeError("A document argument is required");const h={anchors:new Map,doc:l,keep:!0,mapAsMap:a===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},m=Kt(this,"",h);if(typeof c=="function")for(const{count:g,res:p}of h.anchors.values())c(p,g);return typeof o=="function"?vi(o,{"":m},"",m):m}}class Nu extends Uf{constructor(l){super(Lf),this.source=l,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(l,a){let s;a!=null&&a.aliasResolveCache?s=a.aliasResolveCache:(s=[],Nl(l,{Node:(o,h)=>{(el(h)||np(h))&&s.push(h)}}),a&&(a.aliasResolveCache=s));let c;for(const o of s){if(o===this)break;o.anchor===this.source&&(c=o)}return c}toJSON(l,a){if(!a)return{source:this.source};const{anchors:s,doc:c,maxAliasCount:o}=a,h=this.resolve(c,a);if(!h){const g=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(g)}let m=s.get(h);if(m||(Kt(h,null,a),m=s.get(h)),(m==null?void 0:m.res)===void 0){const g="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(g)}if(o>=0&&(m.count+=1,m.aliasCount===0&&(m.aliasCount=du(c,h,s)),m.count*m.aliasCount>o)){const g="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(g)}return m.res}toString(l,a,s){const c=`*${this.source}`;if(l){if(up(this.source),l.options.verifyAliasOrder&&!l.anchors.has(this.source)){const o=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(o)}if(l.implicitKey)return`${c} `}return c}}function du(u,l,a){if(el(l)){const s=l.resolve(u),c=a&&s&&a.get(s);return c?c.count*c.aliasCount:0}else if(Re(l)){let s=0;for(const c of l.items){const o=du(u,c,a);o>s&&(s=o)}return s}else if(je(l)){const s=du(u,l.key,a),c=du(u,l.value,a);return Math.max(s,c)}return 1}const fp=u=>!u||typeof u!="function"&&typeof u!="object";class ue extends Uf{constructor(l){super(nn),this.value=l}toJSON(l,a){return a!=null&&a.keep?this.value:Kt(this.value,l,a)}toString(){return String(this.value)}}ue.BLOCK_FOLDED="BLOCK_FOLDED";ue.BLOCK_LITERAL="BLOCK_LITERAL";ue.PLAIN="PLAIN";ue.QUOTE_DOUBLE="QUOTE_DOUBLE";ue.QUOTE_SINGLE="QUOTE_SINGLE";const jv="tag:yaml.org,2002:";function Rv(u,l,a){if(l){const s=a.filter(o=>o.tag===l),c=s.find(o=>!o.format)??s[0];if(!c)throw new Error(`Tag ${l} not found`);return c}return a.find(s=>{var c;return((c=s.identify)==null?void 0:c.call(s,u))&&!s.format})}function xa(u,l,a){var v,_,E;if(_l(u)&&(u=u.contents),Be(u))return u;if(je(u)){const x=(_=(v=a.schema[In]).createNode)==null?void 0:_.call(v,a.schema,null,a);return x.items.push(u),x}(u instanceof String||u instanceof Number||u instanceof Boolean||typeof BigInt<"u"&&u instanceof BigInt)&&(u=u.valueOf());const{aliasDuplicateObjects:s,onAnchor:c,onTagObj:o,schema:h,sourceObjects:m}=a;let g;if(s&&u&&typeof u=="object"){if(g=m.get(u),g)return g.anchor??(g.anchor=c(u)),new Nu(g.anchor);g={anchor:null,node:null},m.set(u,g)}l!=null&&l.startsWith("!!")&&(l=jv+l.slice(2));let p=Rv(u,l,h.tags);if(!p){if(u&&typeof u.toJSON=="function"&&(u=u.toJSON()),!u||typeof u!="object"){const x=new ue(u);return g&&(g.node=x),x}p=u instanceof Map?h[In]:Symbol.iterator in Object(u)?h[_i]:h[In]}o&&(o(p),delete a.onTagObj);const T=p!=null&&p.createNode?p.createNode(a.schema,u,a):typeof((E=p==null?void 0:p.nodeClass)==null?void 0:E.from)=="function"?p.nodeClass.from(a.schema,u,a):new ue(u);return l?T.tag=l:p.default||(T.tag=p.tag),g&&(g.node=T),T}function bu(u,l,a){let s=a;for(let c=l.length-1;c>=0;--c){const o=l[c];if(typeof o=="number"&&Number.isInteger(o)&&o>=0){const h=[];h[o]=s,s=h}else s=new Map([[o,s]])}return xa(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:u,sourceObjects:new Map})}const Ca=u=>u==null||typeof u=="object"&&!!u[Symbol.iterator]().next().done;class op extends Uf{constructor(l,a){super(l),Object.defineProperty(this,"schema",{value:a,configurable:!0,enumerable:!1,writable:!0})}clone(l){const a=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return l&&(a.schema=l),a.items=a.items.map(s=>Be(s)||je(s)?s.clone(l):s),this.range&&(a.range=this.range.slice()),a}addIn(l,a){if(Ca(l))this.add(a);else{const[s,...c]=l,o=this.get(s,!0);if(Re(o))o.addIn(c,a);else if(o===void 0&&this.schema)this.set(s,bu(this.schema,c,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}deleteIn(l){const[a,...s]=l;if(s.length===0)return this.delete(a);const c=this.get(a,!0);if(Re(c))return c.deleteIn(s);throw new Error(`Expected YAML collection at ${a}. Remaining path: ${s}`)}getIn(l,a){const[s,...c]=l,o=this.get(s,!0);return c.length===0?!a&&xe(o)?o.value:o:Re(o)?o.getIn(c,a):void 0}hasAllNullValues(l){return this.items.every(a=>{if(!je(a))return!1;const s=a.value;return s==null||l&&xe(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(l){const[a,...s]=l;if(s.length===0)return this.has(a);const c=this.get(a,!0);return Re(c)?c.hasIn(s):!1}setIn(l,a){const[s,...c]=l;if(c.length===0)this.set(s,a);else{const o=this.get(s,!0);if(Re(o))o.setIn(c,a);else if(o===void 0&&this.schema)this.set(s,bu(this.schema,c,a));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${c}`)}}}const Bv=u=>u.replace(/^(?!$)(?: $)?/gm,"#");function An(u,l){return/^\n+$/.test(u)?u.substring(1):l?u.replace(/^(?! *$)/gm,l):u}const Tl=(u,l,a)=>u.endsWith(`
53
+ `)?An(a,l):a.includes(`
54
+ `)?`
55
+ `+An(a,l):(u.endsWith(" ")?"":" ")+a,hp="flow",_f="block",mu="quoted";function Mu(u,l,a="flow",{indentAtStart:s,lineWidth:c=80,minContentWidth:o=20,onFold:h,onOverflow:m}={}){if(!c||c<0)return u;c<o&&(o=0);const g=Math.max(1+o,1+c-l.length);if(u.length<=g)return u;const p=[],T={};let v=c-l.length;typeof s=="number"&&(s>c-Math.max(2,o)?p.push(0):v=c-s);let _,E,x=!1,b=-1,A=-1,M=-1;a===_f&&(b=yg(u,b,l.length),b!==-1&&(v=b+g));for(let K;K=u[b+=1];){if(a===mu&&K==="\\"){switch(A=b,u[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}M=b}if(K===`
56
+ `)a===_f&&(b=yg(u,b,l.length)),v=b+l.length+g,_=void 0;else{if(K===" "&&E&&E!==" "&&E!==`
57
+ `&&E!==" "){const Q=u[b+1];Q&&Q!==" "&&Q!==`
58
+ `&&Q!==" "&&(_=b)}if(b>=v)if(_)p.push(_),v=_+g,_=void 0;else if(a===mu){for(;E===" "||E===" ";)E=K,K=u[b+=1],x=!0;const Q=b>M+1?b-2:A-1;if(T[Q])return u;p.push(Q),T[Q]=!0,v=Q+g,_=void 0}else x=!0}E=K}if(x&&m&&m(),p.length===0)return u;h&&h();let U=u.slice(0,p[0]);for(let K=0;K<p.length;++K){const Q=p[K],W=p[K+1]||u.length;Q===0?U=`
59
+ ${l}${u.slice(0,W)}`:(a===mu&&T[Q]&&(U+=`${u[Q]}\\`),U+=`
60
+ ${l}${u.slice(Q+1,W)}`)}return U}function yg(u,l,a){let s=l,c=l+1,o=u[c];for(;o===" "||o===" ";)if(l<c+a)o=u[++l];else{do o=u[++l];while(o&&o!==`
61
+ `);s=l,c=l+1,o=u[c]}return s}const Cu=(u,l)=>({indentAtStart:l?u.indent.length:u.indentAtStart,lineWidth:u.options.lineWidth,minContentWidth:u.options.minContentWidth}),zu=u=>/^(%|---|\.\.\.)/m.test(u);function qv(u,l,a){if(!l||l<0)return!1;const s=l-a,c=u.length;if(c<=s)return!1;for(let o=0,h=0;o<c;++o)if(u[o]===`
62
+ `){if(o-h>s)return!0;if(h=o+1,c-h<=s)return!1}return!0}function za(u,l){const a=JSON.stringify(u);if(l.options.doubleQuotedAsJSON)return a;const{implicitKey:s}=l,c=l.options.doubleQuotedMinMultiLineLength,o=l.indent||(zu(u)?" ":"");let h="",m=0;for(let g=0,p=a[g];p;p=a[++g])if(p===" "&&a[g+1]==="\\"&&a[g+2]==="n"&&(h+=a.slice(m,g)+"\\ ",g+=1,m=g,p="\\"),p==="\\")switch(a[g+1]){case"u":{h+=a.slice(m,g);const T=a.substr(g+2,4);switch(T){case"0000":h+="\\0";break;case"0007":h+="\\a";break;case"000b":h+="\\v";break;case"001b":h+="\\e";break;case"0085":h+="\\N";break;case"00a0":h+="\\_";break;case"2028":h+="\\L";break;case"2029":h+="\\P";break;default:T.substr(0,2)==="00"?h+="\\x"+T.substr(2):h+=a.substr(g,6)}g+=5,m=g+1}break;case"n":if(s||a[g+2]==='"'||a.length<c)g+=1;else{for(h+=a.slice(m,g)+`
63
+
64
+ `;a[g+2]==="\\"&&a[g+3]==="n"&&a[g+4]!=='"';)h+=`
65
+ `,g+=2;h+=o,a[g+2]===" "&&(h+="\\"),g+=1,m=g+1}break;default:g+=1}return h=m?h+a.slice(m):a,s?h:Mu(h,o,mu,Cu(l,!1))}function Nf(u,l){if(l.options.singleQuote===!1||l.implicitKey&&u.includes(`
66
+ `)||/[ \t]\n|\n[ \t]/.test(u))return za(u,l);const a=l.indent||(zu(u)?" ":""),s="'"+u.replace(/'/g,"''").replace(/\n+/g,`$&
67
+ ${a}`)+"'";return l.implicitKey?s:Mu(s,a,hp,Cu(l,!1))}function bi(u,l){const{singleQuote:a}=l.options;let s;if(a===!1)s=za;else{const c=u.includes('"'),o=u.includes("'");c&&!o?s=Nf:o&&!c?s=za:s=a?Nf:za}return s(u,l)}let Mf;try{Mf=new RegExp(`(^|(?<!
68
+ ))
69
+ +(?!
70
+ |$)`,"g")}catch{Mf=/\n+(?!\n|$)/g}function gu({comment:u,type:l,value:a},s,c,o){const{blockQuote:h,commentString:m,lineWidth:g}=s.options;if(!h||/\n[\t ]+$/.test(a))return bi(a,s);const p=s.indent||(s.forceBlockIndent||zu(a)?" ":""),T=h==="literal"?!0:h==="folded"||l===ue.BLOCK_FOLDED?!1:l===ue.BLOCK_LITERAL?!0:!qv(a,g,p.length);if(!a)return T?`|
71
+ `:`>
72
+ `;let v,_;for(_=a.length;_>0;--_){const W=a[_-1];if(W!==`
73
+ `&&W!==" "&&W!==" ")break}let E=a.substring(_);const x=E.indexOf(`
74
+ `);x===-1?v="-":a===E||x!==E.length-1?(v="+",o&&o()):v="",E&&(a=a.slice(0,-E.length),E[E.length-1]===`
75
+ `&&(E=E.slice(0,-1)),E=E.replace(Mf,`$&${p}`));let b=!1,A,M=-1;for(A=0;A<a.length;++A){const W=a[A];if(W===" ")b=!0;else if(W===`
76
+ `)M=A;else break}let U=a.substring(0,M<A?M+1:A);U&&(a=a.substring(U.length),U=U.replace(/\n+/g,`$&${p}`));let Q=(b?p?"2":"1":"")+v;if(u&&(Q+=" "+m(u.replace(/ ?[\r\n]+/g," ")),c&&c()),!T){const W=a.replace(/\n+/g,`
77
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let I=!1;const q=Cu(s,!0);h!=="folded"&&l!==ue.BLOCK_FOLDED&&(q.onOverflow=()=>{I=!0});const V=Mu(`${U}${W}${E}`,p,_f,q);if(!I)return`>${Q}
78
+ ${p}${V}`}return a=a.replace(/\n+/g,`$&${p}`),`|${Q}
79
+ ${p}${U}${a}${E}`}function kv(u,l,a,s){const{type:c,value:o}=u,{actualString:h,implicitKey:m,indent:g,indentStep:p,inFlow:T}=l;if(m&&o.includes(`
80
+ `)||T&&/[[\]{},]/.test(o))return bi(o,l);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return m||T||!o.includes(`
81
+ `)?bi(o,l):gu(u,l,a,s);if(!m&&!T&&c!==ue.PLAIN&&o.includes(`
82
+ `))return gu(u,l,a,s);if(zu(o)){if(g==="")return l.forceBlockIndent=!0,gu(u,l,a,s);if(m&&g===p)return bi(o,l)}const v=o.replace(/\n+/g,`$&
83
+ ${g}`);if(h){const _=b=>{var A;return b.default&&b.tag!=="tag:yaml.org,2002:str"&&((A=b.test)==null?void 0:A.test(v))},{compat:E,tags:x}=l.doc.schema;if(x.some(_)||E!=null&&E.some(_))return bi(o,l)}return m?v:Mu(v,g,hp,Cu(l,!1))}function ja(u,l,a,s){const{implicitKey:c,inFlow:o}=l,h=typeof u.value=="string"?u:Object.assign({},u,{value:String(u.value)});let{type:m}=u;m!==ue.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(h.value)&&(m=ue.QUOTE_DOUBLE);const g=T=>{switch(T){case ue.BLOCK_FOLDED:case ue.BLOCK_LITERAL:return c||o?bi(h.value,l):gu(h,l,a,s);case ue.QUOTE_DOUBLE:return za(h.value,l);case ue.QUOTE_SINGLE:return Nf(h.value,l);case ue.PLAIN:return kv(h,l,a,s);default:return null}};let p=g(m);if(p===null){const{defaultKeyType:T,defaultStringType:v}=l.options,_=c&&T||v;if(p=g(_),p===null)throw new Error(`Unsupported default string type ${_}`)}return p}function dp(u,l){const a=Object.assign({blockQuote:!0,commentString:Bv,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trailingComma:!1,trueStr:"true",verifyAliasOrder:!0},u.schema.toStringOptions,l);let s;switch(a.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:u,flowCollectionPadding:a.flowCollectionPadding?" ":"",indent:"",indentStep:typeof a.indent=="number"?" ".repeat(a.indent):" ",inFlow:s,options:a}}function Hv(u,l){var c;if(l.tag){const o=u.filter(h=>h.tag===l.tag);if(o.length>0)return o.find(h=>h.format===l.format)??o[0]}let a,s;if(xe(l)){s=l.value;let o=u.filter(h=>{var m;return(m=h.identify)==null?void 0:m.call(h,s)});if(o.length>1){const h=o.filter(m=>m.test);h.length>0&&(o=h)}a=o.find(h=>h.format===l.format)??o.find(h=>!h.format)}else s=l,a=u.find(o=>o.nodeClass&&s instanceof o.nodeClass);if(!a){const o=((c=s==null?void 0:s.constructor)==null?void 0:c.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${o} value`)}return a}function Yv(u,l,{anchors:a,doc:s}){if(!s.directives)return"";const c=[],o=(xe(u)||Re(u))&&u.anchor;o&&up(o)&&(a.add(o),c.push(`&${o}`));const h=u.tag??(l.default?null:l.tag);return h&&c.push(s.directives.tagString(h)),c.join(" ")}function Ei(u,l,a,s){var g;if(je(u))return u.toString(l,a,s);if(el(u)){if(l.doc.directives)return u.toString(l);if((g=l.resolvedAliases)!=null&&g.has(u))throw new TypeError("Cannot stringify circular structure without alias nodes");l.resolvedAliases?l.resolvedAliases.add(u):l.resolvedAliases=new Set([u]),u=u.resolve(l.doc)}let c;const o=Be(u)?u:l.doc.createNode(u,{onTagObj:p=>c=p});c??(c=Hv(l.doc.schema.tags,o));const h=Yv(o,c,l);h.length>0&&(l.indentAtStart=(l.indentAtStart??0)+h.length+1);const m=typeof c.stringify=="function"?c.stringify(o,l,a,s):xe(o)?ja(o,l,a,s):o.toString(l,a,s);return h?xe(o)||m[0]==="{"||m[0]==="["?`${h} ${m}`:`${h}
84
+ ${l.indent}${m}`:m}function $v({key:u,value:l},a,s,c){const{allNullValues:o,doc:h,indent:m,indentStep:g,options:{commentString:p,indentSeq:T,simpleKeys:v}}=a;let _=Be(u)&&u.comment||null;if(v){if(_)throw new Error("With simple keys, key nodes cannot have comments");if(Re(u)||!Be(u)&&typeof u=="object"){const q="With simple keys, collection cannot be used as a key value";throw new Error(q)}}let E=!v&&(!u||_&&l==null&&!a.inFlow||Re(u)||(xe(u)?u.type===ue.BLOCK_FOLDED||u.type===ue.BLOCK_LITERAL:typeof u=="object"));a=Object.assign({},a,{allNullValues:!1,implicitKey:!E&&(v||!o),indent:m+g});let x=!1,b=!1,A=Ei(u,a,()=>x=!0,()=>b=!0);if(!E&&!a.inFlow&&A.length>1024){if(v)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");E=!0}if(a.inFlow){if(o||l==null)return x&&s&&s(),A===""?"?":E?`? ${A}`:A}else if(o&&!v||l==null&&E)return A=`? ${A}`,_&&!x?A+=Tl(A,a.indent,p(_)):b&&c&&c(),A;x&&(_=null),E?(_&&(A+=Tl(A,a.indent,p(_))),A=`? ${A}
85
+ ${m}:`):(A=`${A}:`,_&&(A+=Tl(A,a.indent,p(_))));let M,U,K;Be(l)?(M=!!l.spaceBefore,U=l.commentBefore,K=l.comment):(M=!1,U=null,K=null,l&&typeof l=="object"&&(l=h.createNode(l))),a.implicitKey=!1,!E&&!_&&xe(l)&&(a.indentAtStart=A.length+1),b=!1,!T&&g.length>=2&&!a.inFlow&&!E&&Mi(l)&&!l.flow&&!l.tag&&!l.anchor&&(a.indent=a.indent.substring(2));let Q=!1;const W=Ei(l,a,()=>Q=!0,()=>b=!0);let I=" ";if(_||M||U){if(I=M?`
86
+ `:"",U){const q=p(U);I+=`
87
+ ${An(q,a.indent)}`}W===""&&!a.inFlow?I===`
88
+ `&&K&&(I=`
89
+
90
+ `):I+=`
91
+ ${a.indent}`}else if(!E&&Re(l)){const q=W[0],V=W.indexOf(`
92
+ `),L=V!==-1,ie=a.inFlow??l.flow??l.items.length===0;if(L||!ie){let ae=!1;if(L&&(q==="&"||q==="!")){let $=W.indexOf(" ");q==="&"&&$!==-1&&$<V&&W[$+1]==="!"&&($=W.indexOf(" ",$+1)),($===-1||V<$)&&(ae=!0)}ae||(I=`
93
+ ${a.indent}`)}}else(W===""||W[0]===`
94
+ `)&&(I="");return A+=I+W,a.inFlow?Q&&s&&s():K&&!Q?A+=Tl(A,a.indent,p(K)):b&&c&&c(),A}function mp(u,l){(u==="debug"||u==="warn")&&console.warn(l)}const lu="<<",On={identify:u=>u===lu||typeof u=="symbol"&&u.description===lu,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new ue(Symbol(lu)),{addToJSMap:gp}),stringify:()=>lu},Gv=(u,l)=>(On.identify(l)||xe(l)&&(!l.type||l.type===ue.PLAIN)&&On.identify(l.value))&&(u==null?void 0:u.doc.schema.tags.some(a=>a.tag===On.tag&&a.default));function gp(u,l,a){if(a=u&&el(a)?a.resolve(u.doc):a,Mi(a))for(const s of a.items)hf(u,l,s);else if(Array.isArray(a))for(const s of a)hf(u,l,s);else hf(u,l,a)}function hf(u,l,a){const s=u&&el(a)?a.resolve(u.doc):a;if(!Ni(s))throw new Error("Merge sources must be maps or map aliases");const c=s.toJSON(null,u,Map);for(const[o,h]of c)l instanceof Map?l.has(o)||l.set(o,h):l instanceof Set?l.add(o):Object.prototype.hasOwnProperty.call(l,o)||Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0});return l}function pp(u,l,{key:a,value:s}){if(Be(a)&&a.addToJSMap)a.addToJSMap(u,l,s);else if(Gv(u,a))gp(u,l,s);else{const c=Kt(a,"",u);if(l instanceof Map)l.set(c,Kt(s,c,u));else if(l instanceof Set)l.add(c);else{const o=Kv(a,c,u),h=Kt(s,o,u);o in l?Object.defineProperty(l,o,{value:h,writable:!0,enumerable:!0,configurable:!0}):l[o]=h}}return l}function Kv(u,l,a){if(l===null)return"";if(typeof l!="object")return String(l);if(Be(u)&&(a!=null&&a.doc)){const s=dp(a.doc,{});s.anchors=new Set;for(const o of a.anchors.keys())s.anchors.add(o.anchor);s.inFlow=!0,s.inStringifyKey=!0;const c=u.toString(s);if(!a.mapKeyWarned){let o=JSON.stringify(c);o.length>40&&(o=o.substring(0,36)+'..."'),mp(a.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${o}. Set mapAsMap: true to use object keys.`),a.mapKeyWarned=!0}return c}return JSON.stringify(l)}function jf(u,l,a){const s=xa(u,void 0,a),c=xa(l,void 0,a);return new ct(s,c)}class ct{constructor(l,a=null){Object.defineProperty(this,Vt,{value:tp}),this.key=l,this.value=a}clone(l){let{key:a,value:s}=this;return Be(a)&&(a=a.clone(l)),Be(s)&&(s=s.clone(l)),new ct(a,s)}toJSON(l,a){const s=a!=null&&a.mapAsMap?new Map:{};return pp(a,s,this)}toString(l,a,s){return l!=null&&l.doc?$v(this,l,a,s):JSON.stringify(this)}}function yp(u,l,a){return(l.inFlow??u.flow?Qv:Vv)(u,l,a)}function Vv({comment:u,items:l},a,{blockItemPrefix:s,flowChars:c,itemIndent:o,onChompKeep:h,onComment:m}){const{indent:g,options:{commentString:p}}=a,T=Object.assign({},a,{indent:o,type:null});let v=!1;const _=[];for(let x=0;x<l.length;++x){const b=l[x];let A=null;if(Be(b))!v&&b.spaceBefore&&_.push(""),Su(a,_,b.commentBefore,v),b.comment&&(A=b.comment);else if(je(b)){const U=Be(b.key)?b.key:null;U&&(!v&&U.spaceBefore&&_.push(""),Su(a,_,U.commentBefore,v))}v=!1;let M=Ei(b,T,()=>A=null,()=>v=!0);A&&(M+=Tl(M,o,p(A))),v&&A&&(v=!1),_.push(s+M)}let E;if(_.length===0)E=c.start+c.end;else{E=_[0];for(let x=1;x<_.length;++x){const b=_[x];E+=b?`
95
+ ${g}${b}`:`
96
+ `}}return u?(E+=`
97
+ `+An(p(u),g),m&&m()):v&&h&&h(),E}function Qv({items:u},l,{flowChars:a,itemIndent:s}){const{indent:c,indentStep:o,flowCollectionPadding:h,options:{commentString:m}}=l;s+=o;const g=Object.assign({},l,{indent:s,inFlow:!0,type:null});let p=!1,T=0;const v=[];for(let x=0;x<u.length;++x){const b=u[x];let A=null;if(Be(b))b.spaceBefore&&v.push(""),Su(l,v,b.commentBefore,!1),b.comment&&(A=b.comment);else if(je(b)){const U=Be(b.key)?b.key:null;U&&(U.spaceBefore&&v.push(""),Su(l,v,U.commentBefore,!1),U.comment&&(p=!0));const K=Be(b.value)?b.value:null;K?(K.comment&&(A=K.comment),K.commentBefore&&(p=!0)):b.value==null&&(U!=null&&U.comment)&&(A=U.comment)}A&&(p=!0);let M=Ei(b,g,()=>A=null);p||(p=v.length>T||M.includes(`
98
+ `)),x<u.length-1?M+=",":l.options.trailingComma&&(l.options.lineWidth>0&&(p||(p=v.reduce((U,K)=>U+K.length+2,2)+(M.length+2)>l.options.lineWidth)),p&&(M+=",")),A&&(M+=Tl(M,s,m(A))),v.push(M),T=v.length}const{start:_,end:E}=a;if(v.length===0)return _+E;if(!p){const x=v.reduce((b,A)=>b+A.length+2,2);p=l.options.lineWidth>0&&x>l.options.lineWidth}if(p){let x=_;for(const b of v)x+=b?`
99
+ ${o}${c}${b}`:`
100
+ `;return`${x}
101
+ ${c}${E}`}else return`${_}${h}${v.join(" ")}${h}${E}`}function Su({indent:u,options:{commentString:l}},a,s,c){if(s&&c&&(s=s.replace(/^\n+/,"")),s){const o=An(l(s),u);a.push(o.trimStart())}}function El(u,l){const a=xe(l)?l.value:l;for(const s of u)if(je(s)&&(s.key===l||s.key===a||xe(s.key)&&s.key.value===a))return s}class Lt extends op{static get tagName(){return"tag:yaml.org,2002:map"}constructor(l){super(In,l),this.items=[]}static from(l,a,s){const{keepUndefined:c,replacer:o}=s,h=new this(l),m=(g,p)=>{if(typeof o=="function")p=o.call(a,g,p);else if(Array.isArray(o)&&!o.includes(g))return;(p!==void 0||c)&&h.items.push(jf(g,p,s))};if(a instanceof Map)for(const[g,p]of a)m(g,p);else if(a&&typeof a=="object")for(const g of Object.keys(a))m(g,a[g]);return typeof l.sortMapEntries=="function"&&h.items.sort(l.sortMapEntries),h}add(l,a){var h;let s;je(l)?s=l:!l||typeof l!="object"||!("key"in l)?s=new ct(l,l==null?void 0:l.value):s=new ct(l.key,l.value);const c=El(this.items,s.key),o=(h=this.schema)==null?void 0:h.sortMapEntries;if(c){if(!a)throw new Error(`Key ${s.key} already set`);xe(c.value)&&fp(s.value)?c.value.value=s.value:c.value=s.value}else if(o){const m=this.items.findIndex(g=>o(s,g)<0);m===-1?this.items.push(s):this.items.splice(m,0,s)}else this.items.push(s)}delete(l){const a=El(this.items,l);return a?this.items.splice(this.items.indexOf(a),1).length>0:!1}get(l,a){const s=El(this.items,l),c=s==null?void 0:s.value;return(!a&&xe(c)?c.value:c)??void 0}has(l){return!!El(this.items,l)}set(l,a){this.add(new ct(l,a),!0)}toJSON(l,a,s){const c=s?new s:a!=null&&a.mapAsMap?new Map:{};a!=null&&a.onCreate&&a.onCreate(c);for(const o of this.items)pp(a,c,o);return c}toString(l,a,s){if(!l)return JSON.stringify(this);for(const c of this.items)if(!je(c))throw new Error(`Map items must all be pairs; found ${JSON.stringify(c)} instead`);return!l.allNullValues&&this.hasAllNullValues(!1)&&(l=Object.assign({},l,{allNullValues:!0})),yp(this,l,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:l.indent||"",onChompKeep:s,onComment:a})}}const Ci={collection:"map",default:!0,nodeClass:Lt,tag:"tag:yaml.org,2002:map",resolve(u,l){return Ni(u)||l("Expected a mapping for this tag"),u},createNode:(u,l,a)=>Lt.from(u,l,a)};class Pn extends op{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(l){super(_i,l),this.items=[]}add(l){this.items.push(l)}delete(l){const a=iu(l);return typeof a!="number"?!1:this.items.splice(a,1).length>0}get(l,a){const s=iu(l);if(typeof s!="number")return;const c=this.items[s];return!a&&xe(c)?c.value:c}has(l){const a=iu(l);return typeof a=="number"&&a<this.items.length}set(l,a){const s=iu(l);if(typeof s!="number")throw new Error(`Expected a valid index, not ${l}.`);const c=this.items[s];xe(c)&&fp(a)?c.value=a:this.items[s]=a}toJSON(l,a){const s=[];a!=null&&a.onCreate&&a.onCreate(s);let c=0;for(const o of this.items)s.push(Kt(o,String(c++),a));return s}toString(l,a,s){return l?yp(this,l,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(l.indent||"")+" ",onChompKeep:s,onComment:a}):JSON.stringify(this)}static from(l,a,s){const{replacer:c}=s,o=new this(l);if(a&&Symbol.iterator in Object(a)){let h=0;for(let m of a){if(typeof c=="function"){const g=a instanceof Set?m:String(h++);m=c.call(a,g,m)}o.items.push(xa(m,void 0,s))}}return o}}function iu(u){let l=xe(u)?u.value:u;return l&&typeof l=="string"&&(l=Number(l)),typeof l=="number"&&Number.isInteger(l)&&l>=0?l:null}const zi={collection:"seq",default:!0,nodeClass:Pn,tag:"tag:yaml.org,2002:seq",resolve(u,l){return Mi(u)||l("Expected a sequence for this tag"),u},createNode:(u,l,a)=>Pn.from(u,l,a)},xu={identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify(u,l,a,s){return l=Object.assign({actualString:!0},l),ja(u,l,a,s)}},Du={identify:u=>u==null,createNode:()=>new ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new ue(null),stringify:({source:u},l)=>typeof u=="string"&&Du.test.test(u)?u:l.options.nullStr},Rf={identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:u=>new ue(u[0]==="t"||u[0]==="T"),stringify({source:u,value:l},a){if(u&&Rf.test.test(u)){const s=u[0]==="t"||u[0]==="T";if(l===s)return u}return l?a.options.trueStr:a.options.falseStr}};function Wt({format:u,minFractionDigits:l,tag:a,value:s}){if(typeof s=="bigint")return String(s);const c=typeof s=="number"?s:Number(s);if(!isFinite(c))return isNaN(c)?".nan":c<0?"-.inf":".inf";let o=Object.is(s,-0)?"-0":JSON.stringify(s);if(!u&&l&&(!a||a==="tag:yaml.org,2002:float")&&/^\d/.test(o)){let h=o.indexOf(".");h<0&&(h=o.length,o+=".");let m=l-(o.length-h-1);for(;m-- >0;)o+="0"}return o}const vp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},bp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},Sp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(u){const l=new ue(parseFloat(u)),a=u.indexOf(".");return a!==-1&&u[u.length-1]==="0"&&(l.minFractionDigits=u.length-a-1),l},stringify:Wt},Lu=u=>typeof u=="bigint"||Number.isInteger(u),Bf=(u,l,a,{intAsBigInt:s})=>s?BigInt(u):parseInt(u.substring(l),a);function Tp(u,l,a){const{value:s}=u;return Lu(s)&&s>=0?a+s.toString(l):Wt(u)}const Ep={identify:u=>Lu(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(u,l,a)=>Bf(u,2,8,a),stringify:u=>Tp(u,8,"0o")},Ap={identify:Lu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(u,l,a)=>Bf(u,0,10,a),stringify:Wt},wp={identify:u=>Lu(u)&&u>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(u,l,a)=>Bf(u,2,16,a),stringify:u=>Tp(u,16,"0x")},Xv=[Ci,zi,xu,Du,Rf,Ep,Ap,wp,vp,bp,Sp];function vg(u){return typeof u=="bigint"||Number.isInteger(u)}const au=({value:u})=>JSON.stringify(u),Zv=[{identify:u=>typeof u=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:u=>u,stringify:au},{identify:u=>u==null,createNode:()=>new ue(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:au},{identify:u=>typeof u=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:u=>u==="true",stringify:au},{identify:vg,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(u,l,{intAsBigInt:a})=>a?BigInt(u):parseInt(u,10),stringify:({value:u})=>vg(u)?u.toString():JSON.stringify(u)},{identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:u=>parseFloat(u),stringify:au}],Jv={default:!0,tag:"",test:/^/,resolve(u,l){return l(`Unresolved plain scalar ${JSON.stringify(u)}`),u}},Wv=[Ci,zi].concat(Zv,Jv),qf={identify:u=>u instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(u,l){if(typeof atob=="function"){const a=atob(u.replace(/[\n\r]/g,"")),s=new Uint8Array(a.length);for(let c=0;c<a.length;++c)s[c]=a.charCodeAt(c);return s}else return l("This environment does not support reading binary tags; either Buffer or atob is required"),u},stringify({comment:u,type:l,value:a},s,c,o){if(!a)return"";const h=a;let m;if(typeof btoa=="function"){let g="";for(let p=0;p<h.length;++p)g+=String.fromCharCode(h[p]);m=btoa(g)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(l??(l=ue.BLOCK_LITERAL),l!==ue.QUOTE_DOUBLE){const g=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(m.length/g),T=new Array(p);for(let v=0,_=0;v<p;++v,_+=g)T[v]=m.substr(_,g);m=T.join(l===ue.BLOCK_LITERAL?`
102
+ `:" ")}return ja({comment:u,type:l,value:m},s,c,o)}};function Op(u,l){if(Mi(u))for(let a=0;a<u.items.length;++a){let s=u.items[a];if(!je(s)){if(Ni(s)){s.items.length>1&&l("Each pair must have its own sequence indicator");const c=s.items[0]||new ct(new ue(null));if(s.commentBefore&&(c.key.commentBefore=c.key.commentBefore?`${s.commentBefore}
103
+ ${c.key.commentBefore}`:s.commentBefore),s.comment){const o=c.value??c.key;o.comment=o.comment?`${s.comment}
104
+ ${o.comment}`:s.comment}s=c}u.items[a]=je(s)?s:new ct(s)}}else l("Expected a sequence for this tag");return u}function _p(u,l,a){const{replacer:s}=a,c=new Pn(u);c.tag="tag:yaml.org,2002:pairs";let o=0;if(l&&Symbol.iterator in Object(l))for(let h of l){typeof s=="function"&&(h=s.call(l,String(o++),h));let m,g;if(Array.isArray(h))if(h.length===2)m=h[0],g=h[1];else throw new TypeError(`Expected [key, value] tuple: ${h}`);else if(h&&h instanceof Object){const p=Object.keys(h);if(p.length===1)m=p[0],g=h[m];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else m=h;c.items.push(jf(m,g,a))}return c}const kf={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Op,createNode:_p};class Si extends Pn{constructor(){super(),this.add=Lt.prototype.add.bind(this),this.delete=Lt.prototype.delete.bind(this),this.get=Lt.prototype.get.bind(this),this.has=Lt.prototype.has.bind(this),this.set=Lt.prototype.set.bind(this),this.tag=Si.tag}toJSON(l,a){if(!a)return super.toJSON(l);const s=new Map;a!=null&&a.onCreate&&a.onCreate(s);for(const c of this.items){let o,h;if(je(c)?(o=Kt(c.key,"",a),h=Kt(c.value,o,a)):o=Kt(c,"",a),s.has(o))throw new Error("Ordered maps must not include duplicate keys");s.set(o,h)}return s}static from(l,a,s){const c=_p(l,a,s),o=new this;return o.items=c.items,o}}Si.tag="tag:yaml.org,2002:omap";const Hf={collection:"seq",identify:u=>u instanceof Map,nodeClass:Si,default:!1,tag:"tag:yaml.org,2002:omap",resolve(u,l){const a=Op(u,l),s=[];for(const{key:c}of a.items)xe(c)&&(s.includes(c.value)?l(`Ordered maps must not include duplicate keys: ${c.value}`):s.push(c.value));return Object.assign(new Si,a)},createNode:(u,l,a)=>Si.from(u,l,a)};function Np({value:u,source:l},a){return l&&(u?Mp:Cp).test.test(l)?l:u?a.options.trueStr:a.options.falseStr}const Mp={identify:u=>u===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new ue(!0),stringify:Np},Cp={identify:u=>u===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new ue(!1),stringify:Np},Fv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:u=>u.slice(-3).toLowerCase()==="nan"?NaN:u[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Wt},Iv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:u=>parseFloat(u.replace(/_/g,"")),stringify(u){const l=Number(u.value);return isFinite(l)?l.toExponential():Wt(u)}},Pv={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(u){const l=new ue(parseFloat(u.replace(/_/g,""))),a=u.indexOf(".");if(a!==-1){const s=u.substring(a+1).replace(/_/g,"");s[s.length-1]==="0"&&(l.minFractionDigits=s.length)}return l},stringify:Wt},Ra=u=>typeof u=="bigint"||Number.isInteger(u);function Uu(u,l,a,{intAsBigInt:s}){const c=u[0];if((c==="-"||c==="+")&&(l+=1),u=u.substring(l).replace(/_/g,""),s){switch(a){case 2:u=`0b${u}`;break;case 8:u=`0o${u}`;break;case 16:u=`0x${u}`;break}const h=BigInt(u);return c==="-"?BigInt(-1)*h:h}const o=parseInt(u,a);return c==="-"?-1*o:o}function Yf(u,l,a){const{value:s}=u;if(Ra(s)){const c=s.toString(l);return s<0?"-"+a+c.substr(1):a+c}return Wt(u)}const eb={identify:Ra,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(u,l,a)=>Uu(u,2,2,a),stringify:u=>Yf(u,2,"0b")},tb={identify:Ra,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(u,l,a)=>Uu(u,1,8,a),stringify:u=>Yf(u,8,"0")},nb={identify:Ra,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(u,l,a)=>Uu(u,0,10,a),stringify:Wt},lb={identify:Ra,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(u,l,a)=>Uu(u,2,16,a),stringify:u=>Yf(u,16,"0x")};class Ti extends Lt{constructor(l){super(l),this.tag=Ti.tag}add(l){let a;je(l)?a=l:l&&typeof l=="object"&&"key"in l&&"value"in l&&l.value===null?a=new ct(l.key,null):a=new ct(l,null),El(this.items,a.key)||this.items.push(a)}get(l,a){const s=El(this.items,l);return!a&&je(s)?xe(s.key)?s.key.value:s.key:s}set(l,a){if(typeof a!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof a}`);const s=El(this.items,l);s&&!a?this.items.splice(this.items.indexOf(s),1):!s&&a&&this.items.push(new ct(l))}toJSON(l,a){return super.toJSON(l,a,Set)}toString(l,a,s){if(!l)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},l,{allNullValues:!0}),a,s);throw new Error("Set items must all have null values")}static from(l,a,s){const{replacer:c}=s,o=new this(l);if(a&&Symbol.iterator in Object(a))for(let h of a)typeof c=="function"&&(h=c.call(a,h,h)),o.items.push(jf(h,null,s));return o}}Ti.tag="tag:yaml.org,2002:set";const $f={collection:"map",identify:u=>u instanceof Set,nodeClass:Ti,default:!1,tag:"tag:yaml.org,2002:set",createNode:(u,l,a)=>Ti.from(u,l,a),resolve(u,l){if(Ni(u)){if(u.hasAllNullValues(!0))return Object.assign(new Ti,u);l("Set items must all have null values")}else l("Expected a mapping for this tag");return u}};function Gf(u,l){const a=u[0],s=a==="-"||a==="+"?u.substring(1):u,c=h=>l?BigInt(h):Number(h),o=s.replace(/_/g,"").split(":").reduce((h,m)=>h*c(60)+c(m),c(0));return a==="-"?c(-1)*o:o}function zp(u){let{value:l}=u,a=h=>h;if(typeof l=="bigint")a=h=>BigInt(h);else if(isNaN(l)||!isFinite(l))return Wt(u);let s="";l<0&&(s="-",l*=a(-1));const c=a(60),o=[l%c];return l<60?o.unshift(0):(l=(l-o[0])/c,o.unshift(l%c),l>=60&&(l=(l-o[0])/c,o.unshift(l))),s+o.map(h=>String(h).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const xp={identify:u=>typeof u=="bigint"||Number.isInteger(u),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(u,l,{intAsBigInt:a})=>Gf(u,a),stringify:zp},Dp={identify:u=>typeof u=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:u=>Gf(u,!1),stringify:zp},ju={identify:u=>u instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(u){const l=u.match(ju.test);if(!l)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,a,s,c,o,h,m]=l.map(Number),g=l[7]?Number((l[7]+"00").substr(1,3)):0;let p=Date.UTC(a,s-1,c,o||0,h||0,m||0,g);const T=l[8];if(T&&T!=="Z"){let v=Gf(T,!1);Math.abs(v)<30&&(v*=60),p-=6e4*v}return new Date(p)},stringify:({value:u})=>(u==null?void 0:u.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},bg=[Ci,zi,xu,Du,Mp,Cp,eb,tb,nb,lb,Fv,Iv,Pv,qf,On,Hf,kf,$f,xp,Dp,ju],Sg=new Map([["core",Xv],["failsafe",[Ci,zi,xu]],["json",Wv],["yaml11",bg],["yaml-1.1",bg]]),Tg={binary:qf,bool:Rf,float:Sp,floatExp:bp,floatNaN:vp,floatTime:Dp,int:Ap,intHex:wp,intOct:Ep,intTime:xp,map:Ci,merge:On,null:Du,omap:Hf,pairs:kf,seq:zi,set:$f,timestamp:ju},ib={"tag:yaml.org,2002:binary":qf,"tag:yaml.org,2002:merge":On,"tag:yaml.org,2002:omap":Hf,"tag:yaml.org,2002:pairs":kf,"tag:yaml.org,2002:set":$f,"tag:yaml.org,2002:timestamp":ju};function df(u,l,a){const s=Sg.get(l);if(s&&!u)return a&&!s.includes(On)?s.concat(On):s.slice();let c=s;if(!c)if(Array.isArray(u))c=[];else{const o=Array.from(Sg.keys()).filter(h=>h!=="yaml11").map(h=>JSON.stringify(h)).join(", ");throw new Error(`Unknown schema "${l}"; use one of ${o} or define customTags array`)}if(Array.isArray(u))for(const o of u)c=c.concat(o);else typeof u=="function"&&(c=u(c.slice()));return a&&(c=c.concat(On)),c.reduce((o,h)=>{const m=typeof h=="string"?Tg[h]:h;if(!m){const g=JSON.stringify(h),p=Object.keys(Tg).map(T=>JSON.stringify(T)).join(", ");throw new Error(`Unknown custom tag ${g}; use one of ${p}`)}return o.includes(m)||o.push(m),o},[])}const ab=(u,l)=>u.key<l.key?-1:u.key>l.key?1:0;class Ru{constructor({compat:l,customTags:a,merge:s,resolveKnownTags:c,schema:o,sortMapEntries:h,toStringDefaults:m}){this.compat=Array.isArray(l)?df(l,"compat"):l?df(null,l):null,this.name=typeof o=="string"&&o||"core",this.knownTags=c?ib:{},this.tags=df(a,this.name,s),this.toStringOptions=m??null,Object.defineProperty(this,In,{value:Ci}),Object.defineProperty(this,nn,{value:xu}),Object.defineProperty(this,_i,{value:zi}),this.sortMapEntries=typeof h=="function"?h:h===!0?ab:null}clone(){const l=Object.create(Ru.prototype,Object.getOwnPropertyDescriptors(this));return l.tags=this.tags.slice(),l}}function sb(u,l){var g;const a=[];let s=l.directives===!0;if(l.directives!==!1&&u.directives){const p=u.directives.toString(u);p?(a.push(p),s=!0):u.directives.docStart&&(s=!0)}s&&a.push("---");const c=dp(u,l),{commentString:o}=c.options;if(u.commentBefore){a.length!==1&&a.unshift("");const p=o(u.commentBefore);a.unshift(An(p,""))}let h=!1,m=null;if(u.contents){if(Be(u.contents)){if(u.contents.spaceBefore&&s&&a.push(""),u.contents.commentBefore){const v=o(u.contents.commentBefore);a.push(An(v,""))}c.forceBlockIndent=!!u.comment,m=u.contents.comment}const p=m?void 0:()=>h=!0;let T=Ei(u.contents,c,()=>m=null,p);m&&(T+=Tl(T,"",o(m))),(T[0]==="|"||T[0]===">")&&a[a.length-1]==="---"?a[a.length-1]=`--- ${T}`:a.push(T)}else a.push(Ei(u.contents,c));if((g=u.directives)!=null&&g.docEnd)if(u.comment){const p=o(u.comment);p.includes(`
105
+ `)?(a.push("..."),a.push(An(p,""))):a.push(`... ${p}`)}else a.push("...");else{let p=u.comment;p&&h&&(p=p.replace(/^\n+/,"")),p&&((!h||m)&&a[a.length-1]!==""&&a.push(""),a.push(An(o(p),"")))}return a.join(`
106
+ `)+`
107
+ `}class xi{constructor(l,a,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Vt,{value:Of});let c=null;typeof a=="function"||Array.isArray(a)?c=a:s===void 0&&a&&(s=a,a=void 0);const o=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=o;let{version:h}=o;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(h=this.directives.yaml.version)):this.directives=new ot({version:h}),this.setSchema(h,s),this.contents=l===void 0?null:this.createNode(l,c,s)}clone(){const l=Object.create(xi.prototype,{[Vt]:{value:Of}});return l.commentBefore=this.commentBefore,l.comment=this.comment,l.errors=this.errors.slice(),l.warnings=this.warnings.slice(),l.options=Object.assign({},this.options),this.directives&&(l.directives=this.directives.clone()),l.schema=this.schema.clone(),l.contents=Be(this.contents)?this.contents.clone(l.schema):this.contents,this.range&&(l.range=this.range.slice()),l}add(l){hi(this.contents)&&this.contents.add(l)}addIn(l,a){hi(this.contents)&&this.contents.addIn(l,a)}createAlias(l,a){if(!l.anchor){const s=cp(this);l.anchor=!a||s.has(a)?rp(a||"a",s):a}return new Nu(l.anchor)}createNode(l,a,s){let c;if(typeof a=="function")l=a.call({"":l},"",l),c=a;else if(Array.isArray(a)){const A=U=>typeof U=="number"||U instanceof String||U instanceof Number,M=a.filter(A).map(String);M.length>0&&(a=a.concat(M)),c=a}else s===void 0&&a&&(s=a,a=void 0);const{aliasDuplicateObjects:o,anchorPrefix:h,flow:m,keepUndefined:g,onTagObj:p,tag:T}=s??{},{onAnchor:v,setAnchors:_,sourceObjects:E}=Uv(this,h||"a"),x={aliasDuplicateObjects:o??!0,keepUndefined:g??!1,onAnchor:v,onTagObj:p,replacer:c,schema:this.schema,sourceObjects:E},b=xa(l,T,x);return m&&Re(b)&&(b.flow=!0),_(),b}createPair(l,a,s={}){const c=this.createNode(l,null,s),o=this.createNode(a,null,s);return new ct(c,o)}delete(l){return hi(this.contents)?this.contents.delete(l):!1}deleteIn(l){return Ca(l)?this.contents==null?!1:(this.contents=null,!0):hi(this.contents)?this.contents.deleteIn(l):!1}get(l,a){return Re(this.contents)?this.contents.get(l,a):void 0}getIn(l,a){return Ca(l)?!a&&xe(this.contents)?this.contents.value:this.contents:Re(this.contents)?this.contents.getIn(l,a):void 0}has(l){return Re(this.contents)?this.contents.has(l):!1}hasIn(l){return Ca(l)?this.contents!==void 0:Re(this.contents)?this.contents.hasIn(l):!1}set(l,a){this.contents==null?this.contents=bu(this.schema,[l],a):hi(this.contents)&&this.contents.set(l,a)}setIn(l,a){Ca(l)?this.contents=a:this.contents==null?this.contents=bu(this.schema,Array.from(l),a):hi(this.contents)&&this.contents.setIn(l,a)}setSchema(l,a={}){typeof l=="number"&&(l=String(l));let s;switch(l){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new ot({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=l:this.directives=new ot({version:l}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const c=JSON.stringify(l);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${c}`)}}if(a.schema instanceof Object)this.schema=a.schema;else if(s)this.schema=new Ru(Object.assign(s,a));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:l,jsonArg:a,mapAsMap:s,maxAliasCount:c,onAnchor:o,reviver:h}={}){const m={anchors:new Map,doc:this,keep:!l,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof c=="number"?c:100},g=Kt(this.contents,a??"",m);if(typeof o=="function")for(const{count:p,res:T}of m.anchors.values())o(T,p);return typeof h=="function"?vi(h,{"":g},"",g):g}toJSON(l,a){return this.toJS({json:!0,jsonArg:l,mapAsMap:!1,onAnchor:a})}toString(l={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in l&&(!Number.isInteger(l.indent)||Number(l.indent)<=0)){const a=JSON.stringify(l.indent);throw new Error(`"indent" option must be a positive integer, not ${a}`)}return sb(this,l)}}function hi(u){if(Re(u))return!0;throw new Error("Expected a YAML collection as document contents")}class Kf extends Error{constructor(l,a,s,c){super(),this.name=l,this.code=s,this.message=c,this.pos=a}}class Al extends Kf{constructor(l,a,s){super("YAMLParseError",l,a,s)}}class Lp extends Kf{constructor(l,a,s){super("YAMLWarning",l,a,s)}}const Tu=(u,l)=>a=>{if(a.pos[0]===-1)return;a.linePos=a.pos.map(m=>l.linePos(m));const{line:s,col:c}=a.linePos[0];a.message+=` at line ${s}, column ${c}`;let o=c-1,h=u.substring(l.lineStarts[s-1],l.lineStarts[s]).replace(/[\n\r]+$/,"");if(o>=60&&h.length>80){const m=Math.min(o-39,h.length-79);h="…"+h.substring(m),o-=m-1}if(h.length>80&&(h=h.substring(0,79)+"…"),s>1&&/^ *$/.test(h.substring(0,o))){let m=u.substring(l.lineStarts[s-2],l.lineStarts[s-1]);m.length>80&&(m=m.substring(0,79)+`…
108
+ `),h=m+h}if(/[^ ]/.test(h)){let m=1;const g=a.linePos[1];(g==null?void 0:g.line)===s&&g.col>c&&(m=Math.max(1,Math.min(g.col-c,80-o)));const p=" ".repeat(o)+"^".repeat(m);a.message+=`:
109
+
110
+ ${h}
111
+ ${p}
112
+ `}};function Ai(u,{flow:l,indicator:a,next:s,offset:c,onError:o,parentIndent:h,startOnNewline:m}){let g=!1,p=m,T=m,v="",_="",E=!1,x=!1,b=null,A=null,M=null,U=null,K=null,Q=null,W=null;for(const V of u)switch(x&&(V.type!=="space"&&V.type!=="newline"&&V.type!=="comma"&&o(V.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),x=!1),b&&(p&&V.type!=="comment"&&V.type!=="newline"&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),b=null),V.type){case"space":!l&&(a!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&V.source.includes(" ")&&(b=V),T=!0;break;case"comment":{T||o(V,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const L=V.source.substring(1)||" ";v?v+=_+L:v=L,_="",p=!1;break}case"newline":p?v?v+=V.source:(!Q||a!=="seq-item-ind")&&(g=!0):_+=V.source,p=!0,E=!0,(A||M)&&(U=V),T=!0;break;case"anchor":A&&o(V,"MULTIPLE_ANCHORS","A node can have at most one anchor"),V.source.endsWith(":")&&o(V.offset+V.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),A=V,W??(W=V.offset),p=!1,T=!1,x=!0;break;case"tag":{M&&o(V,"MULTIPLE_TAGS","A node can have at most one tag"),M=V,W??(W=V.offset),p=!1,T=!1,x=!0;break}case a:(A||M)&&o(V,"BAD_PROP_ORDER",`Anchors and tags must be after the ${V.source} indicator`),Q&&o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.source} in ${l??"collection"}`),Q=V,p=a==="seq-item-ind"||a==="explicit-key-ind",T=!1;break;case"comma":if(l){K&&o(V,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`),K=V,p=!1,T=!1;break}default:o(V,"UNEXPECTED_TOKEN",`Unexpected ${V.type} token`),p=!1,T=!1}const I=u[u.length-1],q=I?I.offset+I.source.length:c;return x&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&o(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),b&&(p&&b.indent<=h||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&o(b,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:K,found:Q,spaceBefore:g,comment:v,hasNewline:E,anchor:A,tag:M,newlineAfterProp:U,end:q,start:W??q}}function Da(u){if(!u)return null;switch(u.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(u.source.includes(`
113
+ `))return!0;if(u.end){for(const l of u.end)if(l.type==="newline")return!0}return!1;case"flow-collection":for(const l of u.items){for(const a of l.start)if(a.type==="newline")return!0;if(l.sep){for(const a of l.sep)if(a.type==="newline")return!0}if(Da(l.key)||Da(l.value))return!0}return!1;default:return!0}}function Cf(u,l,a){if((l==null?void 0:l.type)==="flow-collection"){const s=l.end[0];s.indent===u&&(s.source==="]"||s.source==="}")&&Da(l)&&a(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Up(u,l,a){const{uniqueKeys:s}=u.options;if(s===!1)return!1;const c=typeof s=="function"?s:(o,h)=>o===h||xe(o)&&xe(h)&&o.value===h.value;return l.some(o=>c(o.key,a))}const Eg="All mapping items must start at the same column";function ub({composeNode:u,composeEmptyNode:l},a,s,c,o){var T;const h=(o==null?void 0:o.nodeClass)??Lt,m=new h(a.schema);a.atRoot&&(a.atRoot=!1);let g=s.offset,p=null;for(const v of s.items){const{start:_,key:E,sep:x,value:b}=v,A=Ai(_,{indicator:"explicit-key-ind",next:E??(x==null?void 0:x[0]),offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0}),M=!A.found;if(M){if(E&&(E.type==="block-seq"?c(g,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in E&&E.indent!==s.indent&&c(g,"BAD_INDENT",Eg)),!A.anchor&&!A.tag&&!x){p=A.end,A.comment&&(m.comment?m.comment+=`
114
+ `+A.comment:m.comment=A.comment);continue}(A.newlineAfterProp||Da(E))&&c(E??_[_.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((T=A.found)==null?void 0:T.indent)!==s.indent&&c(g,"BAD_INDENT",Eg);a.atKey=!0;const U=A.end,K=E?u(a,E,A,c):l(a,U,_,null,A,c);a.schema.compat&&Cf(s.indent,E,c),a.atKey=!1,Up(a,m.items,K)&&c(U,"DUPLICATE_KEY","Map keys must be unique");const Q=Ai(x??[],{indicator:"map-value-ind",next:b,offset:K.range[2],onError:c,parentIndent:s.indent,startOnNewline:!E||E.type==="block-scalar"});if(g=Q.end,Q.found){M&&((b==null?void 0:b.type)==="block-map"&&!Q.hasNewline&&c(g,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),a.options.strict&&A.start<Q.found.offset-1024&&c(K.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const W=b?u(a,b,Q,c):l(a,g,x,null,Q,c);a.schema.compat&&Cf(s.indent,b,c),g=W.range[2];const I=new ct(K,W);a.options.keepSourceTokens&&(I.srcToken=v),m.items.push(I)}else{M&&c(K.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),Q.comment&&(K.comment?K.comment+=`
115
+ `+Q.comment:K.comment=Q.comment);const W=new ct(K);a.options.keepSourceTokens&&(W.srcToken=v),m.items.push(W)}}return p&&p<g&&c(p,"IMPOSSIBLE","Map comment with trailing content"),m.range=[s.offset,g,p??g],m}function cb({composeNode:u,composeEmptyNode:l},a,s,c,o){const h=(o==null?void 0:o.nodeClass)??Pn,m=new h(a.schema);a.atRoot&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let g=s.offset,p=null;for(const{start:T,value:v}of s.items){const _=Ai(T,{indicator:"seq-item-ind",next:v,offset:g,onError:c,parentIndent:s.indent,startOnNewline:!0});if(!_.found)if(_.anchor||_.tag||v)(v==null?void 0:v.type)==="block-seq"?c(_.end,"BAD_INDENT","All sequence items must start at the same column"):c(g,"MISSING_CHAR","Sequence item without - indicator");else{p=_.end,_.comment&&(m.comment=_.comment);continue}const E=v?u(a,v,_,c):l(a,_.end,T,null,_,c);a.schema.compat&&Cf(s.indent,v,c),g=E.range[2],m.items.push(E)}return m.range=[s.offset,g,p??g],m}function Ba(u,l,a,s){let c="";if(u){let o=!1,h="";for(const m of u){const{source:g,type:p}=m;switch(p){case"space":o=!0;break;case"comment":{a&&!o&&s(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const T=g.substring(1)||" ";c?c+=h+T:c=T,h="";break}case"newline":c&&(h+=g),o=!0;break;default:s(m,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}l+=g.length}}return{comment:c,offset:l}}const mf="Block collections are not allowed within flow collections",gf=u=>u&&(u.type==="block-map"||u.type==="block-seq");function rb({composeNode:u,composeEmptyNode:l},a,s,c,o){var A;const h=s.start.source==="{",m=h?"flow map":"flow sequence",g=(o==null?void 0:o.nodeClass)??(h?Lt:Pn),p=new g(a.schema);p.flow=!0;const T=a.atRoot;T&&(a.atRoot=!1),a.atKey&&(a.atKey=!1);let v=s.offset+s.start.source.length;for(let M=0;M<s.items.length;++M){const U=s.items[M],{start:K,key:Q,sep:W,value:I}=U,q=Ai(K,{flow:m,indicator:"explicit-key-ind",next:Q??(W==null?void 0:W[0]),offset:v,onError:c,parentIndent:s.indent,startOnNewline:!1});if(!q.found){if(!q.anchor&&!q.tag&&!W&&!I){M===0&&q.comma?c(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`):M<s.items.length-1&&c(q.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${m}`),q.comment&&(p.comment?p.comment+=`
116
+ `+q.comment:p.comment=q.comment),v=q.end;continue}!h&&a.options.strict&&Da(Q)&&c(Q,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(M===0)q.comma&&c(q.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${m}`);else if(q.comma||c(q.start,"MISSING_CHAR",`Missing , between ${m} items`),q.comment){let V="";e:for(const L of K)switch(L.type){case"comma":case"space":break;case"comment":V=L.source.substring(1);break e;default:break e}if(V){let L=p.items[p.items.length-1];je(L)&&(L=L.value??L.key),L.comment?L.comment+=`
117
+ `+V:L.comment=V,q.comment=q.comment.substring(V.length+1)}}if(!h&&!W&&!q.found){const V=I?u(a,I,q,c):l(a,q.end,W,null,q,c);p.items.push(V),v=V.range[2],gf(I)&&c(V.range,"BLOCK_IN_FLOW",mf)}else{a.atKey=!0;const V=q.end,L=Q?u(a,Q,q,c):l(a,V,K,null,q,c);gf(Q)&&c(L.range,"BLOCK_IN_FLOW",mf),a.atKey=!1;const ie=Ai(W??[],{flow:m,indicator:"map-value-ind",next:I,offset:L.range[2],onError:c,parentIndent:s.indent,startOnNewline:!1});if(ie.found){if(!h&&!q.found&&a.options.strict){if(W)for(const J of W){if(J===ie.found)break;if(J.type==="newline"){c(J,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}q.start<ie.found.offset-1024&&c(ie.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else I&&("source"in I&&((A=I.source)==null?void 0:A[0])===":"?c(I,"MISSING_CHAR",`Missing space after : in ${m}`):c(ie.start,"MISSING_CHAR",`Missing , or : between ${m} items`));const ae=I?u(a,I,ie,c):ie.found?l(a,ie.end,W,null,ie,c):null;ae?gf(I)&&c(ae.range,"BLOCK_IN_FLOW",mf):ie.comment&&(L.comment?L.comment+=`
118
+ `+ie.comment:L.comment=ie.comment);const $=new ct(L,ae);if(a.options.keepSourceTokens&&($.srcToken=U),h){const J=p;Up(a,J.items,L)&&c(V,"DUPLICATE_KEY","Map keys must be unique"),J.items.push($)}else{const J=new Lt(a.schema);J.flow=!0,J.items.push($);const _e=(ae??L).range;J.range=[L.range[0],_e[1],_e[2]],p.items.push(J)}v=ae?ae.range[2]:ie.end}}const _=h?"}":"]",[E,...x]=s.end;let b=v;if((E==null?void 0:E.source)===_)b=E.offset+E.source.length;else{const M=m[0].toUpperCase()+m.substring(1),U=T?`${M} must end with a ${_}`:`${M} in block collection must be sufficiently indented and end with a ${_}`;c(v,T?"MISSING_CHAR":"BAD_INDENT",U),E&&E.source.length!==1&&x.unshift(E)}if(x.length>0){const M=Ba(x,b,a.options.strict,c);M.comment&&(p.comment?p.comment+=`
119
+ `+M.comment:p.comment=M.comment),p.range=[s.offset,b,M.offset]}else p.range=[s.offset,b,b];return p}function pf(u,l,a,s,c,o){const h=a.type==="block-map"?ub(u,l,a,s,o):a.type==="block-seq"?cb(u,l,a,s,o):rb(u,l,a,s,o),m=h.constructor;return c==="!"||c===m.tagName?(h.tag=m.tagName,h):(c&&(h.tag=c),h)}function fb(u,l,a,s,c){var _;const o=s.tag,h=o?l.directives.tagName(o.source,E=>c(o,"TAG_RESOLVE_FAILED",E)):null;if(a.type==="block-seq"){const{anchor:E,newlineAfterProp:x}=s,b=E&&o?E.offset>o.offset?E:o:E??o;b&&(!x||x.offset<b.offset)&&c(b,"MISSING_CHAR","Missing newline after block sequence props")}const m=a.type==="block-map"?"map":a.type==="block-seq"?"seq":a.start.source==="{"?"map":"seq";if(!o||!h||h==="!"||h===Lt.tagName&&m==="map"||h===Pn.tagName&&m==="seq")return pf(u,l,a,c,h);let g=l.schema.tags.find(E=>E.tag===h&&E.collection===m);if(!g){const E=l.schema.knownTags[h];if((E==null?void 0:E.collection)===m)l.schema.tags.push(Object.assign({},E,{default:!1})),g=E;else return E?c(o,"BAD_COLLECTION_TYPE",`${E.tag} used for ${m} collection, but expects ${E.collection??"scalar"}`,!0):c(o,"TAG_RESOLVE_FAILED",`Unresolved tag: ${h}`,!0),pf(u,l,a,c,h)}const p=pf(u,l,a,c,h,g),T=((_=g.resolve)==null?void 0:_.call(g,p,E=>c(o,"TAG_RESOLVE_FAILED",E),l.options))??p,v=Be(T)?T:new ue(T);return v.range=p.range,v.tag=h,g!=null&&g.format&&(v.format=g.format),v}function jp(u,l,a){const s=l.offset,c=ob(l,u.options.strict,a);if(!c)return{value:"",type:null,comment:"",range:[s,s,s]};const o=c.mode===">"?ue.BLOCK_FOLDED:ue.BLOCK_LITERAL,h=l.source?hb(l.source):[];let m=h.length;for(let b=h.length-1;b>=0;--b){const A=h[b][1];if(A===""||A==="\r")m=b;else break}if(m===0){const b=c.chomp==="+"&&h.length>0?`
120
+ `.repeat(Math.max(1,h.length-1)):"";let A=s+c.length;return l.source&&(A+=l.source.length),{value:b,type:o,comment:c.comment,range:[s,A,A]}}let g=l.indent+c.indent,p=l.offset+c.length,T=0;for(let b=0;b<m;++b){const[A,M]=h[b];if(M===""||M==="\r")c.indent===0&&A.length>g&&(g=A.length);else{A.length<g&&a(p+A.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),c.indent===0&&(g=A.length),T=b,g===0&&!u.atRoot&&a(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=A.length+M.length+1}for(let b=h.length-1;b>=m;--b)h[b][0].length>g&&(m=b+1);let v="",_="",E=!1;for(let b=0;b<T;++b)v+=h[b][0].slice(g)+`
121
+ `;for(let b=T;b<m;++b){let[A,M]=h[b];p+=A.length+M.length+1;const U=M[M.length-1]==="\r";if(U&&(M=M.slice(0,-1)),M&&A.length<g){const Q=`Block scalar lines must not be less indented than their ${c.indent?"explicit indentation indicator":"first line"}`;a(p-M.length-(U?2:1),"BAD_INDENT",Q),A=""}o===ue.BLOCK_LITERAL?(v+=_+A.slice(g)+M,_=`
122
+ `):A.length>g||M[0]===" "?(_===" "?_=`
123
+ `:!E&&_===`
124
+ `&&(_=`
125
+
126
+ `),v+=_+A.slice(g)+M,_=`
127
+ `,E=!0):M===""?_===`
128
+ `?v+=`
129
+ `:_=`
130
+ `:(v+=_+M,_=" ",E=!1)}switch(c.chomp){case"-":break;case"+":for(let b=m;b<h.length;++b)v+=`
131
+ `+h[b][0].slice(g);v[v.length-1]!==`
132
+ `&&(v+=`
133
+ `);break;default:v+=`
134
+ `}const x=s+c.length+l.source.length;return{value:v,type:o,comment:c.comment,range:[s,x,x]}}function ob({offset:u,props:l},a,s){if(l[0].type!=="block-scalar-header")return s(l[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:c}=l[0],o=c[0];let h=0,m="",g=-1;for(let _=1;_<c.length;++_){const E=c[_];if(!m&&(E==="-"||E==="+"))m=E;else{const x=Number(E);!h&&x?h=x:g===-1&&(g=u+_)}}g!==-1&&s(g,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${c}`);let p=!1,T="",v=c.length;for(let _=1;_<l.length;++_){const E=l[_];switch(E.type){case"space":p=!0;case"newline":v+=E.source.length;break;case"comment":a&&!p&&s(E,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),v+=E.source.length,T=E.source.substring(1);break;case"error":s(E,"UNEXPECTED_TOKEN",E.message),v+=E.source.length;break;default:{const x=`Unexpected token in block scalar header: ${E.type}`;s(E,"UNEXPECTED_TOKEN",x);const b=E.source;b&&typeof b=="string"&&(v+=b.length)}}}return{mode:o,indent:h,chomp:m,comment:T,length:v}}function hb(u){const l=u.split(/\n( *)/),a=l[0],s=a.match(/^( *)/),o=[s!=null&&s[1]?[s[1],a.slice(s[1].length)]:["",a]];for(let h=1;h<l.length;h+=2)o.push([l[h],l[h+1]]);return o}function Rp(u,l,a){const{offset:s,type:c,source:o,end:h}=u;let m,g;const p=(_,E,x)=>a(s+_,E,x);switch(c){case"scalar":m=ue.PLAIN,g=db(o,p);break;case"single-quoted-scalar":m=ue.QUOTE_SINGLE,g=mb(o,p);break;case"double-quoted-scalar":m=ue.QUOTE_DOUBLE,g=gb(o,p);break;default:return a(u,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${c}`),{value:"",type:null,comment:"",range:[s,s+o.length,s+o.length]}}const T=s+o.length,v=Ba(h,T,l,a);return{value:g,type:m,comment:v.comment,range:[s,T,v.offset]}}function db(u,l){let a="";switch(u[0]){case" ":a="a tab character";break;case",":a="flow indicator character ,";break;case"%":a="directive indicator character %";break;case"|":case">":{a=`block scalar indicator ${u[0]}`;break}case"@":case"`":{a=`reserved character ${u[0]}`;break}}return a&&l(0,"BAD_SCALAR_START",`Plain value cannot start with ${a}`),Bp(u)}function mb(u,l){return(u[u.length-1]!=="'"||u.length===1)&&l(u.length,"MISSING_CHAR","Missing closing 'quote"),Bp(u.slice(1,-1)).replace(/''/g,"'")}function Bp(u){let l,a;try{l=new RegExp(`(.*?)(?<![ ])[ ]*\r?
135
+ `,"sy"),a=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
136
+ `,"sy")}catch{l=/(.*?)[ \t]*\r?\n/sy,a=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=l.exec(u);if(!s)return u;let c=s[1],o=" ",h=l.lastIndex;for(a.lastIndex=h;s=a.exec(u);)s[1]===""?o===`
137
+ `?c+=o:o=`
138
+ `:(c+=o+s[1],o=" "),h=a.lastIndex;const m=/[ \t]*(.*)/sy;return m.lastIndex=h,s=m.exec(u),c+o+((s==null?void 0:s[1])??"")}function gb(u,l){let a="";for(let s=1;s<u.length-1;++s){const c=u[s];if(!(c==="\r"&&u[s+1]===`
139
+ `))if(c===`
140
+ `){const{fold:o,offset:h}=pb(u,s);a+=o,s=h}else if(c==="\\"){let o=u[++s];const h=yb[o];if(h)a+=h;else if(o===`
141
+ `)for(o=u[s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="\r"&&u[s+1]===`
142
+ `)for(o=u[++s+1];o===" "||o===" ";)o=u[++s+1];else if(o==="x"||o==="u"||o==="U"){const m={x:2,u:4,U:8}[o];a+=vb(u,s+1,m,l),s+=m}else{const m=u.substr(s-1,2);l(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),a+=m}}else if(c===" "||c===" "){const o=s;let h=u[s+1];for(;h===" "||h===" ";)h=u[++s+1];h!==`
143
+ `&&!(h==="\r"&&u[s+2]===`
144
+ `)&&(a+=s>o?u.slice(o,s+1):c)}else a+=c}return(u[u.length-1]!=='"'||u.length===1)&&l(u.length,"MISSING_CHAR",'Missing closing "quote'),a}function pb(u,l){let a="",s=u[l+1];for(;(s===" "||s===" "||s===`
145
+ `||s==="\r")&&!(s==="\r"&&u[l+2]!==`
146
+ `);)s===`
147
+ `&&(a+=`
148
+ `),l+=1,s=u[l+1];return a||(a=" "),{fold:a,offset:l}}const yb={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
149
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function vb(u,l,a,s){const c=u.substr(l,a),h=c.length===a&&/^[0-9a-fA-F]+$/.test(c)?parseInt(c,16):NaN;if(isNaN(h)){const m=u.substr(l-2,a+2);return s(l-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${m}`),m}return String.fromCodePoint(h)}function qp(u,l,a,s){const{value:c,type:o,comment:h,range:m}=l.type==="block-scalar"?jp(u,l,s):Rp(l,u.options.strict,s),g=a?u.directives.tagName(a.source,v=>s(a,"TAG_RESOLVE_FAILED",v)):null;let p;u.options.stringKeys&&u.atKey?p=u.schema[nn]:g?p=bb(u.schema,c,g,a,s):l.type==="scalar"?p=Sb(u,c,l,s):p=u.schema[nn];let T;try{const v=p.resolve(c,_=>s(a??l,"TAG_RESOLVE_FAILED",_),u.options);T=xe(v)?v:new ue(v)}catch(v){const _=v instanceof Error?v.message:String(v);s(a??l,"TAG_RESOLVE_FAILED",_),T=new ue(c)}return T.range=m,T.source=c,o&&(T.type=o),g&&(T.tag=g),p.format&&(T.format=p.format),h&&(T.comment=h),T}function bb(u,l,a,s,c){var m;if(a==="!")return u[nn];const o=[];for(const g of u.tags)if(!g.collection&&g.tag===a)if(g.default&&g.test)o.push(g);else return g;for(const g of o)if((m=g.test)!=null&&m.test(l))return g;const h=u.knownTags[a];return h&&!h.collection?(u.tags.push(Object.assign({},h,{default:!1,test:void 0})),h):(c(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${a}`,a!=="tag:yaml.org,2002:str"),u[nn])}function Sb({atKey:u,directives:l,schema:a},s,c,o){const h=a.tags.find(m=>{var g;return(m.default===!0||u&&m.default==="key")&&((g=m.test)==null?void 0:g.test(s))})||a[nn];if(a.compat){const m=a.compat.find(g=>{var p;return g.default&&((p=g.test)==null?void 0:p.test(s))})??a[nn];if(h.tag!==m.tag){const g=l.tagString(h.tag),p=l.tagString(m.tag),T=`Value may be parsed as either ${g} or ${p}`;o(c,"TAG_RESOLVE_FAILED",T,!0)}}return h}function Tb(u,l,a){if(l){a??(a=l.length);for(let s=a-1;s>=0;--s){let c=l[s];switch(c.type){case"space":case"comment":case"newline":u-=c.source.length;continue}for(c=l[++s];(c==null?void 0:c.type)==="space";)u+=c.source.length,c=l[++s];break}}return u}const Eb={composeNode:kp,composeEmptyNode:Vf};function kp(u,l,a,s){const c=u.atKey,{spaceBefore:o,comment:h,anchor:m,tag:g}=a;let p,T=!0;switch(l.type){case"alias":p=Ab(u,l,s),(m||g)&&s(l,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":p=qp(u,l,g,s),m&&(p.anchor=m.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{p=fb(Eb,u,l,a,s),m&&(p.anchor=m.source.substring(1))}catch(v){const _=v instanceof Error?v.message:String(v);s(l,"RESOURCE_EXHAUSTION",_)}break;default:{const v=l.type==="error"?l.message:`Unsupported token (type: ${l.type})`;s(l,"UNEXPECTED_TOKEN",v),T=!1}}return p??(p=Vf(u,l.offset,void 0,null,a,s)),m&&p.anchor===""&&s(m,"BAD_ALIAS","Anchor cannot be an empty string"),c&&u.options.stringKeys&&(!xe(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&s(g??l,"NON_STRING_KEY","With stringKeys, all keys must be strings"),o&&(p.spaceBefore=!0),h&&(l.type==="scalar"&&l.source===""?p.comment=h:p.commentBefore=h),u.options.keepSourceTokens&&T&&(p.srcToken=l),p}function Vf(u,l,a,s,{spaceBefore:c,comment:o,anchor:h,tag:m,end:g},p){const T={type:"scalar",offset:Tb(l,a,s),indent:-1,source:""},v=qp(u,T,m,p);return h&&(v.anchor=h.source.substring(1),v.anchor===""&&p(h,"BAD_ALIAS","Anchor cannot be an empty string")),c&&(v.spaceBefore=!0),o&&(v.comment=o,v.range[2]=g),v}function Ab({options:u},{offset:l,source:a,end:s},c){const o=new Nu(a.substring(1));o.source===""&&c(l,"BAD_ALIAS","Alias cannot be an empty string"),o.source.endsWith(":")&&c(l+a.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const h=l+a.length,m=Ba(s,h,u.strict,c);return o.range=[l,h,m.offset],m.comment&&(o.comment=m.comment),o}function wb(u,l,{offset:a,start:s,value:c,end:o},h){const m=Object.assign({_directives:l},u),g=new xi(void 0,m),p={atKey:!1,atRoot:!0,directives:g.directives,options:g.options,schema:g.schema},T=Ai(s,{indicator:"doc-start",next:c??(o==null?void 0:o[0]),offset:a,onError:h,parentIndent:0,startOnNewline:!0});T.found&&(g.directives.docStart=!0,c&&(c.type==="block-map"||c.type==="block-seq")&&!T.hasNewline&&h(T.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),g.contents=c?kp(p,c,T,h):Vf(p,T.end,s,null,T,h);const v=g.contents.range[2],_=Ba(o,v,!1,h);return _.comment&&(g.comment=_.comment),g.range=[a,v,_.offset],g}function Ma(u){if(typeof u=="number")return[u,u+1];if(Array.isArray(u))return u.length===2?u:[u[0],u[1]];const{offset:l,source:a}=u;return[l,l+(typeof a=="string"?a.length:1)]}function Ag(u){var c;let l="",a=!1,s=!1;for(let o=0;o<u.length;++o){const h=u[o];switch(h[0]){case"#":l+=(l===""?"":s?`
150
+
151
+ `:`
152
+ `)+(h.substring(1)||" "),a=!0,s=!1;break;case"%":((c=u[o+1])==null?void 0:c[0])!=="#"&&(o+=1),a=!1;break;default:a||(s=!0),a=!1}}return{comment:l,afterEmptyLine:s}}class Qf{constructor(l={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(a,s,c,o)=>{const h=Ma(a);o?this.warnings.push(new Lp(h,s,c)):this.errors.push(new Al(h,s,c))},this.directives=new ot({version:l.version||"1.2"}),this.options=l}decorate(l,a){const{comment:s,afterEmptyLine:c}=Ag(this.prelude);if(s){const o=l.contents;if(a)l.comment=l.comment?`${l.comment}
153
+ ${s}`:s;else if(c||l.directives.docStart||!o)l.commentBefore=s;else if(Re(o)&&!o.flow&&o.items.length>0){let h=o.items[0];je(h)&&(h=h.key);const m=h.commentBefore;h.commentBefore=m?`${s}
154
+ ${m}`:s}else{const h=o.commentBefore;o.commentBefore=h?`${s}
155
+ ${h}`:s}}a?(Array.prototype.push.apply(l.errors,this.errors),Array.prototype.push.apply(l.warnings,this.warnings)):(l.errors=this.errors,l.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:Ag(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(l,a=!1,s=-1){for(const c of l)yield*this.next(c);yield*this.end(a,s)}*next(l){switch(l.type){case"directive":this.directives.add(l.source,(a,s,c)=>{const o=Ma(l);o[0]+=a,this.onError(o,"BAD_DIRECTIVE",s,c)}),this.prelude.push(l.source),this.atDirectives=!0;break;case"document":{const a=wb(this.options,this.directives,l,this.onError);this.atDirectives&&!a.directives.docStart&&this.onError(l,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(a,!1),this.doc&&(yield this.doc),this.doc=a,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(l.source);break;case"error":{const a=l.source?`${l.message}: ${JSON.stringify(l.source)}`:l.message,s=new Al(Ma(l),"UNEXPECTED_TOKEN",a);this.atDirectives||!this.doc?this.errors.push(s):this.doc.errors.push(s);break}case"doc-end":{if(!this.doc){const s="Unexpected doc-end without preceding document";this.errors.push(new Al(Ma(l),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const a=Ba(l.end,l.offset+l.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),a.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
156
+ ${a.comment}`:a.comment}this.doc.range[2]=a.offset;break}default:this.errors.push(new Al(Ma(l),"UNEXPECTED_TOKEN",`Unsupported token ${l.type}`))}}*end(l=!1,a=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(l){const s=Object.assign({_directives:this.directives},this.options),c=new xi(void 0,s);this.atDirectives&&this.onError(a,"MISSING_CHAR","Missing directives-end indicator line"),c.range=[0,a,a],this.decorate(c,!1),yield c}}}function Ob(u,l=!0,a){if(u){const s=(c,o,h)=>{const m=typeof c=="number"?c:Array.isArray(c)?c[0]:c.offset;if(a)a(m,o,h);else throw new Al([m,m+1],o,h)};switch(u.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Rp(u,l,s);case"block-scalar":return jp({options:{strict:l}},u,s)}}return null}function _b(u,l){const{implicitKey:a=!1,indent:s,inFlow:c=!1,offset:o=-1,type:h="PLAIN"}=l,m=ja({type:h,value:u},{implicitKey:a,indent:s>0?" ".repeat(s):"",inFlow:c,options:{blockQuote:!0,lineWidth:-1}}),g=l.end??[{type:"newline",offset:-1,indent:s,source:`
157
+ `}];switch(m[0]){case"|":case">":{const p=m.indexOf(`
158
+ `),T=m.substring(0,p),v=m.substring(p+1)+`
159
+ `,_=[{type:"block-scalar-header",offset:o,indent:s,source:T}];return Hp(_,g)||_.push({type:"newline",offset:-1,indent:s,source:`
160
+ `}),{type:"block-scalar",offset:o,indent:s,props:_,source:v}}case'"':return{type:"double-quoted-scalar",offset:o,indent:s,source:m,end:g};case"'":return{type:"single-quoted-scalar",offset:o,indent:s,source:m,end:g};default:return{type:"scalar",offset:o,indent:s,source:m,end:g}}}function Nb(u,l,a={}){let{afterKey:s=!1,implicitKey:c=!1,inFlow:o=!1,type:h}=a,m="indent"in u?u.indent:null;if(s&&typeof m=="number"&&(m+=2),!h)switch(u.type){case"single-quoted-scalar":h="QUOTE_SINGLE";break;case"double-quoted-scalar":h="QUOTE_DOUBLE";break;case"block-scalar":{const p=u.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");h=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:h="PLAIN"}const g=ja({type:h,value:l},{implicitKey:c||m===null,indent:m!==null&&m>0?" ".repeat(m):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}});switch(g[0]){case"|":case">":Mb(u,g);break;case'"':yf(u,g,"double-quoted-scalar");break;case"'":yf(u,g,"single-quoted-scalar");break;default:yf(u,g,"scalar")}}function Mb(u,l){const a=l.indexOf(`
161
+ `),s=l.substring(0,a),c=l.substring(a+1)+`
162
+ `;if(u.type==="block-scalar"){const o=u.props[0];if(o.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o.source=s,u.source=c}else{const{offset:o}=u,h="indent"in u?u.indent:-1,m=[{type:"block-scalar-header",offset:o,indent:h,source:s}];Hp(m,"end"in u?u.end:void 0)||m.push({type:"newline",offset:-1,indent:h,source:`
163
+ `});for(const g of Object.keys(u))g!=="type"&&g!=="offset"&&delete u[g];Object.assign(u,{type:"block-scalar",indent:h,props:m,source:c})}}function Hp(u,l){if(l)for(const a of l)switch(a.type){case"space":case"comment":u.push(a);break;case"newline":return u.push(a),!0}return!1}function yf(u,l,a){switch(u.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":u.type=a,u.source=l;break;case"block-scalar":{const s=u.props.slice(1);let c=l.length;u.props[0].type==="block-scalar-header"&&(c-=u.props[0].source.length);for(const o of s)o.offset+=c;delete u.props,Object.assign(u,{type:a,source:l,end:s});break}case"block-map":case"block-seq":{const c={type:"newline",offset:u.offset+l.length,indent:u.indent,source:`
164
+ `};delete u.items,Object.assign(u,{type:a,source:l,end:[c]});break}default:{const s="indent"in u?u.indent:-1,c="end"in u&&Array.isArray(u.end)?u.end.filter(o=>o.type==="space"||o.type==="comment"||o.type==="newline"):[];for(const o of Object.keys(u))o!=="type"&&o!=="offset"&&delete u[o];Object.assign(u,{type:a,indent:s,source:l,end:c})}}}const Cb=u=>"type"in u?Eu(u):pu(u);function Eu(u){switch(u.type){case"block-scalar":{let l="";for(const a of u.props)l+=Eu(a);return l+u.source}case"block-map":case"block-seq":{let l="";for(const a of u.items)l+=pu(a);return l}case"flow-collection":{let l=u.start.source;for(const a of u.items)l+=pu(a);for(const a of u.end)l+=a.source;return l}case"document":{let l=pu(u);if(u.end)for(const a of u.end)l+=a.source;return l}default:{let l=u.source;if("end"in u&&u.end)for(const a of u.end)l+=a.source;return l}}}function pu({start:u,key:l,sep:a,value:s}){let c="";for(const o of u)c+=o.source;if(l&&(c+=Eu(l)),a)for(const o of a)c+=o.source;return s&&(c+=Eu(s)),c}const zf=Symbol("break visit"),zb=Symbol("skip children"),Yp=Symbol("remove item");function Ol(u,l){"type"in u&&u.type==="document"&&(u={start:u.start,value:u.value}),$p(Object.freeze([]),u,l)}Ol.BREAK=zf;Ol.SKIP=zb;Ol.REMOVE=Yp;Ol.itemAtPath=(u,l)=>{let a=u;for(const[s,c]of l){const o=a==null?void 0:a[s];if(o&&"items"in o)a=o.items[c];else return}return a};Ol.parentCollection=(u,l)=>{const a=Ol.itemAtPath(u,l.slice(0,-1)),s=l[l.length-1][0],c=a==null?void 0:a[s];if(c&&"items"in c)return c;throw new Error("Parent collection not found")};function $p(u,l,a){let s=a(l,u);if(typeof s=="symbol")return s;for(const c of["key","value"]){const o=l[c];if(o&&"items"in o){for(let h=0;h<o.items.length;++h){const m=$p(Object.freeze(u.concat([[c,h]])),o.items[h],a);if(typeof m=="number")h=m-1;else{if(m===zf)return zf;m===Yp&&(o.items.splice(h,1),h-=1)}}typeof s=="function"&&c==="key"&&(s=s(l,u))}}return typeof s=="function"?s(l,u):s}const Bu="\uFEFF",qu="",ku="",La="",xb=u=>!!u&&"items"in u,Db=u=>!!u&&(u.type==="scalar"||u.type==="single-quoted-scalar"||u.type==="double-quoted-scalar"||u.type==="block-scalar");function Lb(u){switch(u){case Bu:return"<BOM>";case qu:return"<DOC>";case ku:return"<FLOW_END>";case La:return"<SCALAR>";default:return JSON.stringify(u)}}function Gp(u){switch(u){case Bu:return"byte-order-mark";case qu:return"doc-mode";case ku:return"flow-error-end";case La:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
165
+ `:case`\r
166
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(u[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const Ub=Object.freeze(Object.defineProperty({__proto__:null,BOM:Bu,DOCUMENT:qu,FLOW_END:ku,SCALAR:La,createScalarToken:_b,isCollection:xb,isScalar:Db,prettyToken:Lb,resolveAsScalar:Ob,setScalarValue:Nb,stringify:Cb,tokenType:Gp,visit:Ol},Symbol.toStringTag,{value:"Module"}));function Jt(u){switch(u){case void 0:case" ":case`
167
+ `:case"\r":case" ":return!0;default:return!1}}const wg=new Set("0123456789ABCDEFabcdef"),jb=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),su=new Set(",[]{}"),Rb=new Set(` ,[]{}
168
+ \r `),vf=u=>!u||Rb.has(u);class Kp{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(l,a=!1){if(l){if(typeof l!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+l:l,this.lineEndPos=null}this.atEnd=!a;let s=this.next??"stream";for(;s&&(a||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let l=this.pos,a=this.buffer[l];for(;a===" "||a===" ";)a=this.buffer[++l];return!a||a==="#"||a===`
169
+ `?!0:a==="\r"?this.buffer[l+1]===`
170
+ `:!1}charAt(l){return this.buffer[this.pos+l]}continueScalar(l){let a=this.buffer[l];if(this.indentNext>0){let s=0;for(;a===" ";)a=this.buffer[++s+l];if(a==="\r"){const c=this.buffer[s+l+1];if(c===`
171
+ `||!c&&!this.atEnd)return l+s+1}return a===`
172
+ `||s>=this.indentNext||!a&&!this.atEnd?l+s:-1}if(a==="-"||a==="."){const s=this.buffer.substr(l,3);if((s==="---"||s==="...")&&Jt(this.buffer[l+3]))return-1}return l}getLine(){let l=this.lineEndPos;return(typeof l!="number"||l!==-1&&l<this.pos)&&(l=this.buffer.indexOf(`
173
+ `,this.pos),this.lineEndPos=l),l===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[l-1]==="\r"&&(l-=1),this.buffer.substring(this.pos,l))}hasChars(l){return this.pos+l<=this.buffer.length}setNext(l){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=l,null}peek(l){return this.buffer.substr(this.pos,l)}*parseNext(l){switch(l){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let l=this.getLine();if(l===null)return this.setNext("stream");if(l[0]===Bu&&(yield*this.pushCount(1),l=l.substring(1)),l[0]==="%"){let a=l.length,s=l.indexOf("#");for(;s!==-1;){const o=l[s-1];if(o===" "||o===" "){a=s-1;break}else s=l.indexOf("#",s+1)}for(;;){const o=l[a-1];if(o===" "||o===" ")a-=1;else break}const c=(yield*this.pushCount(a))+(yield*this.pushSpaces(!0));return yield*this.pushCount(l.length-c),this.pushNewline(),"stream"}if(this.atLineEnd()){const a=yield*this.pushSpaces(!0);return yield*this.pushCount(l.length-a),yield*this.pushNewline(),"stream"}return yield qu,yield*this.parseLineStart()}*parseLineStart(){const l=this.charAt(0);if(!l&&!this.atEnd)return this.setNext("line-start");if(l==="-"||l==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const a=this.peek(3);if((a==="---"||a==="...")&&Jt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,a==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Jt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[l,a]=this.peek(2);if(!a&&!this.atEnd)return this.setNext("block-start");if((l==="-"||l==="?"||l===":")&&Jt(a)){const s=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=s,yield*this.parseBlockStart()}return"doc"}*parseDocument(){yield*this.pushSpaces(!0);const l=this.getLine();if(l===null)return this.setNext("doc");let a=yield*this.pushIndicators();switch(l[a]){case"#":yield*this.pushCount(l.length-a);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(vf),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return a+=yield*this.parseBlockScalarHeader(),a+=yield*this.pushSpaces(!0),yield*this.pushCount(l.length-a),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let l,a,s=-1;do l=yield*this.pushNewline(),l>0?(a=yield*this.pushSpaces(!1),this.indentValue=s=a):a=0,a+=yield*this.pushSpaces(!0);while(l+a>0);const c=this.getLine();if(c===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&c[0]!=="#"||s===0&&(c.startsWith("---")||c.startsWith("..."))&&Jt(c[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(c[0]==="]"||c[0]==="}")))return this.flowLevel=0,yield ku,yield*this.parseLineStart();let o=0;for(;c[o]===",";)o+=yield*this.pushCount(1),o+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(o+=yield*this.pushIndicators(),c[o]){case void 0:return"flow";case"#":return yield*this.pushCount(c.length-o),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(vf),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const h=this.charAt(1);if(this.flowKey||Jt(h)||h===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const l=this.charAt(0);let a=this.buffer.indexOf(l,this.pos+1);if(l==="'")for(;a!==-1&&this.buffer[a+1]==="'";)a=this.buffer.indexOf("'",a+2);else for(;a!==-1;){let o=0;for(;this.buffer[a-1-o]==="\\";)o+=1;if(o%2===0)break;a=this.buffer.indexOf('"',a+1)}const s=this.buffer.substring(0,a);let c=s.indexOf(`
174
+ `,this.pos);if(c!==-1){for(;c!==-1;){const o=this.continueScalar(c+1);if(o===-1)break;c=s.indexOf(`
175
+ `,o)}c!==-1&&(a=c-(s[c-1]==="\r"?2:1))}if(a===-1){if(!this.atEnd)return this.setNext("quoted-scalar");a=this.buffer.length}return yield*this.pushToIndex(a+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let l=this.pos;for(;;){const a=this.buffer[++l];if(a==="+")this.blockScalarKeep=!0;else if(a>"0"&&a<="9")this.blockScalarIndent=Number(a)-1;else if(a!=="-")break}return yield*this.pushUntil(a=>Jt(a)||a==="#")}*parseBlockScalar(){let l=this.pos-1,a=0,s;e:for(let o=this.pos;s=this.buffer[o];++o)switch(s){case" ":a+=1;break;case`
176
+ `:l=o,a=0;break;case"\r":{const h=this.buffer[o+1];if(!h&&!this.atEnd)return this.setNext("block-scalar");if(h===`
177
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(a>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=a:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const o=this.continueScalar(l+1);if(o===-1)break;l=this.buffer.indexOf(`
178
+ `,o)}while(l!==-1);if(l===-1){if(!this.atEnd)return this.setNext("block-scalar");l=this.buffer.length}}let c=l+1;for(s=this.buffer[c];s===" ";)s=this.buffer[++c];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
179
+ `;)s=this.buffer[++c];l=c-1}else if(!this.blockScalarKeep)do{let o=l-1,h=this.buffer[o];h==="\r"&&(h=this.buffer[--o]);const m=o;for(;h===" ";)h=this.buffer[--o];if(h===`
180
+ `&&o>=this.pos&&o+1+a>m)l=o;else break}while(!0);return yield La,yield*this.pushToIndex(l+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const l=this.flowLevel>0;let a=this.pos-1,s=this.pos-1,c;for(;c=this.buffer[++s];)if(c===":"){const o=this.buffer[s+1];if(Jt(o)||l&&su.has(o))break;a=s}else if(Jt(c)){let o=this.buffer[s+1];if(c==="\r"&&(o===`
181
+ `?(s+=1,c=`
182
+ `,o=this.buffer[s+1]):a=s),o==="#"||l&&su.has(o))break;if(c===`
183
+ `){const h=this.continueScalar(s+1);if(h===-1)break;s=Math.max(s,h-2)}}else{if(l&&su.has(c))break;a=s}return!c&&!this.atEnd?this.setNext("plain-scalar"):(yield La,yield*this.pushToIndex(a+1,!0),l?"flow":"doc")}*pushCount(l){return l>0?(yield this.buffer.substr(this.pos,l),this.pos+=l,l):0}*pushToIndex(l,a){const s=this.buffer.slice(this.pos,l);return s?(yield s,this.pos+=s.length,s.length):(a&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(vf))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const l=this.flowLevel>0,a=this.charAt(1);if(Jt(a)||l&&su.has(a))return l?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let l=this.pos+2,a=this.buffer[l];for(;!Jt(a)&&a!==">";)a=this.buffer[++l];return yield*this.pushToIndex(a===">"?l+1:l,!1)}else{let l=this.pos+1,a=this.buffer[l];for(;a;)if(jb.has(a))a=this.buffer[++l];else if(a==="%"&&wg.has(this.buffer[l+1])&&wg.has(this.buffer[l+2]))a=this.buffer[l+=3];else break;return yield*this.pushToIndex(l,!1)}}*pushNewline(){const l=this.buffer[this.pos];return l===`
184
+ `?yield*this.pushCount(1):l==="\r"&&this.charAt(1)===`
185
+ `?yield*this.pushCount(2):0}*pushSpaces(l){let a=this.pos-1,s;do s=this.buffer[++a];while(s===" "||l&&s===" ");const c=a-this.pos;return c>0&&(yield this.buffer.substr(this.pos,c),this.pos=a),c}*pushUntil(l){let a=this.pos,s=this.buffer[a];for(;!l(s);)s=this.buffer[++a];return yield*this.pushToIndex(a,!1)}}class Vp{constructor(){this.lineStarts=[],this.addNewLine=l=>this.lineStarts.push(l),this.linePos=l=>{let a=0,s=this.lineStarts.length;for(;a<s;){const o=a+s>>1;this.lineStarts[o]<l?a=o+1:s=o}if(this.lineStarts[a]===l)return{line:a+1,col:1};if(a===0)return{line:0,col:l};const c=this.lineStarts[a-1];return{line:a,col:l-c+1}}}}function Fn(u,l){for(let a=0;a<u.length;++a)if(u[a].type===l)return!0;return!1}function Og(u){for(let l=0;l<u.length;++l)switch(u[l].type){case"space":case"comment":case"newline":break;default:return l}return-1}function Qp(u){switch(u==null?void 0:u.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function uu(u){switch(u.type){case"document":return u.start;case"block-map":{const l=u.items[u.items.length-1];return l.sep??l.start}case"block-seq":return u.items[u.items.length-1].start;default:return[]}}function di(u){var a;if(u.length===0)return[];let l=u.length;e:for(;--l>=0;)switch(u[l].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((a=u[++l])==null?void 0:a.type)==="space";);return u.splice(l,u.length)}function _g(u){if(u.start.type==="flow-seq-start")for(const l of u.items)l.sep&&!l.value&&!Fn(l.start,"explicit-key-ind")&&!Fn(l.sep,"map-value-ind")&&(l.key&&(l.value=l.key),delete l.key,Qp(l.value)?l.value.end?Array.prototype.push.apply(l.value.end,l.sep):l.value.end=l.sep:Array.prototype.push.apply(l.start,l.sep),delete l.sep)}class Xf{constructor(l){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Kp,this.onNewLine=l}*parse(l,a=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(l,a))yield*this.next(s);a||(yield*this.end())}*next(l){if(this.source=l,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=l.length;return}const a=Gp(l);if(a)if(a==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=a,yield*this.step(),a){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+l.length);break;case"space":this.atNewLine&&l[0]===" "&&(this.indent+=l.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=l.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=l.length}else{const s=`Not a YAML token: ${l}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:l}),this.offset+=l.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const l=this.peek(1);if(this.type==="doc-end"&&(l==null?void 0:l.type)!=="doc-end"){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!l)return yield*this.stream();switch(l.type){case"document":return yield*this.document(l);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(l);case"block-scalar":return yield*this.blockScalar(l);case"block-map":return yield*this.blockMap(l);case"block-seq":return yield*this.blockSequence(l);case"flow-collection":return yield*this.flowCollection(l);case"doc-end":return yield*this.documentEnd(l)}yield*this.pop()}peek(l){return this.stack[this.stack.length-l]}*pop(l){const a=l??this.stack.pop();if(!a)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield a;else{const s=this.peek(1);switch(a.type==="block-scalar"?a.indent="indent"in s?s.indent:0:a.type==="flow-collection"&&s.type==="document"&&(a.indent=0),a.type==="flow-collection"&&_g(a),s.type){case"document":s.value=a;break;case"block-scalar":s.props.push(a);break;case"block-map":{const c=s.items[s.items.length-1];if(c.value){s.items.push({start:[],key:a,sep:[]}),this.onKeyLine=!0;return}else if(c.sep)c.value=a;else{Object.assign(c,{key:a,sep:[]}),this.onKeyLine=!c.explicitKey;return}break}case"block-seq":{const c=s.items[s.items.length-1];c.value?s.items.push({start:[],value:a}):c.value=a;break}case"flow-collection":{const c=s.items[s.items.length-1];!c||c.value?s.items.push({start:[],key:a,sep:[]}):c.sep?c.value=a:Object.assign(c,{key:a,sep:[]});return}default:yield*this.pop(),yield*this.pop(a)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(a.type==="block-map"||a.type==="block-seq")){const c=a.items[a.items.length-1];c&&!c.sep&&!c.value&&c.start.length>0&&Og(c.start)===-1&&(a.indent===0||c.start.every(o=>o.type!=="comment"||o.indent<a.indent))&&(s.type==="document"?s.end=c.start:s.items.push({start:c.start}),a.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const l={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&l.start.push(this.sourceToken),this.stack.push(l);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(l){if(l.value)return yield*this.lineEnd(l);switch(this.type){case"doc-start":{Og(l.start)!==-1?(yield*this.pop(),yield*this.step()):l.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":l.start.push(this.sourceToken);return}const a=this.startBlockValue(l);a?this.stack.push(a):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(l){if(this.type==="map-value-ind"){const a=uu(this.peek(2)),s=di(a);let c;l.end?(c=l.end,c.push(this.sourceToken),delete l.end):c=[this.sourceToken];const o={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:s,key:l,sep:c}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=o}else yield*this.lineEnd(l)}*blockScalar(l){switch(this.type){case"space":case"comment":case"newline":l.props.push(this.sourceToken);return;case"scalar":if(l.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let a=this.source.indexOf(`
186
+ `)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
187
+ `,a)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,a.value){const c="end"in a.value?a.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else if(a.sep)a.sep.push(this.sourceToken);else{if(this.atIndentedComment(a.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return}if(this.indent>=l.indent){const c=!this.onKeyLine&&this.indent===l.indent,o=c&&(a.sep||a.explicitKey)&&this.type!=="seq-item-ind";let h=[];if(o&&a.sep&&!a.value){const m=[];for(let g=0;g<a.sep.length;++g){const p=a.sep[g];switch(p.type){case"newline":m.push(g);break;case"space":break;case"comment":p.indent>l.indent&&(m.length=0);break;default:m.length=0}}m.length>=2&&(h=a.sep.splice(m[1]))}switch(this.type){case"anchor":case"tag":o||a.value?(h.push(this.sourceToken),l.items.push({start:h}),this.onKeyLine=!0):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"explicit-key-ind":!a.sep&&!a.explicitKey?(a.start.push(this.sourceToken),a.explicitKey=!0):o||a.value?(h.push(this.sourceToken),l.items.push({start:h,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(a.explicitKey)if(a.sep)if(a.value)l.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Fn(a.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:h,key:null,sep:[this.sourceToken]}]});else if(Qp(a.key)&&!Fn(a.sep,"newline")){const m=di(a.start),g=a.key,p=a.sep;p.push(this.sourceToken),delete a.key,delete a.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:g,sep:p}]})}else h.length>0?a.sep=a.sep.concat(h,this.sourceToken):a.sep.push(this.sourceToken);else if(Fn(a.start,"newline"))Object.assign(a,{key:null,sep:[this.sourceToken]});else{const m=di(a.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:m,key:null,sep:[this.sourceToken]}]})}else a.sep?a.value||o?l.items.push({start:h,key:null,sep:[this.sourceToken]}):Fn(a.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const m=this.flowScalar(this.type);o||a.value?(l.items.push({start:h,key:m,sep:[]}),this.onKeyLine=!0):a.sep?this.stack.push(m):(Object.assign(a,{key:m,sep:[]}),this.onKeyLine=!0);return}default:{const m=this.startBlockValue(l);if(m){if(m.type==="block-seq"){if(!a.explicitKey&&a.sep&&!Fn(a.sep,"newline")){yield*this.pop({type:"error",offset:this.offset,message:"Unexpected block-seq-ind on same line with key",source:this.source});return}}else c&&l.items.push({start:h});this.stack.push(m);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(l){var s;const a=l.items[l.items.length-1];switch(this.type){case"newline":if(a.value){const c="end"in a.value?a.value.end:void 0,o=Array.isArray(c)?c[c.length-1]:void 0;(o==null?void 0:o.type)==="comment"?c==null||c.push(this.sourceToken):l.items.push({start:[this.sourceToken]})}else a.start.push(this.sourceToken);return;case"space":case"comment":if(a.value)l.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(a.start,l.indent)){const c=l.items[l.items.length-2],o=(s=c==null?void 0:c.value)==null?void 0:s.end;if(Array.isArray(o)){Array.prototype.push.apply(o,a.start),o.push(this.sourceToken),l.items.pop();return}}a.start.push(this.sourceToken)}return;case"anchor":case"tag":if(a.value||this.indent<=l.indent)break;a.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==l.indent)break;a.value||Fn(a.start,"seq-item-ind")?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return}if(this.indent>l.indent){const c=this.startBlockValue(l);if(c){this.stack.push(c);return}}yield*this.pop(),yield*this.step()}*flowCollection(l){const a=l.items[l.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while((s==null?void 0:s.type)==="flow-collection")}else if(l.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!a||a.sep?l.items.push({start:[this.sourceToken]}):a.start.push(this.sourceToken);return;case"map-value-ind":!a||a.value?l.items.push({start:[],key:null,sep:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):Object.assign(a,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!a||a.value?l.items.push({start:[this.sourceToken]}):a.sep?a.sep.push(this.sourceToken):a.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const c=this.flowScalar(this.type);!a||a.value?l.items.push({start:[],key:c,sep:[]}):a.sep?this.stack.push(c):Object.assign(a,{key:c,sep:[]});return}case"flow-map-end":case"flow-seq-end":l.end.push(this.sourceToken);return}const s=this.startBlockValue(l);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{const s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===l.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){const c=uu(s),o=di(c);_g(l);const h=l.end.splice(1,l.end.length);h.push(this.sourceToken);const m={type:"block-map",offset:l.offset,indent:l.indent,items:[{start:o,key:l,sep:h}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=m}else yield*this.lineEnd(l)}}flowScalar(l){if(this.onNewLine){let a=this.source.indexOf(`
188
+ `)+1;for(;a!==0;)this.onNewLine(this.offset+a),a=this.source.indexOf(`
189
+ `,a)+1}return{type:l,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(l){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const a=uu(l),s=di(a);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;const a=uu(l),s=di(a);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(l,a){return this.type!=="comment"||this.indent<=a?!1:l.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(l){this.type!=="doc-mode"&&(l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(l){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:l.end?l.end.push(this.sourceToken):l.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function Xp(u){const l=u.prettyErrors!==!1;return{lineCounter:u.lineCounter||l&&new Vp||null,prettyErrors:l}}function Bb(u,l={}){const{lineCounter:a,prettyErrors:s}=Xp(l),c=new Xf(a==null?void 0:a.addNewLine),o=new Qf(l),h=Array.from(o.compose(c.parse(u)));if(s&&a)for(const m of h)m.errors.forEach(Tu(u,a)),m.warnings.forEach(Tu(u,a));return h.length>0?h:Object.assign([],{empty:!0},o.streamInfo())}function Zp(u,l={}){const{lineCounter:a,prettyErrors:s}=Xp(l),c=new Xf(a==null?void 0:a.addNewLine),o=new Qf(l);let h=null;for(const m of o.compose(c.parse(u),!0,u.length))if(!h)h=m;else if(h.options.logLevel!=="silent"){h.errors.push(new Al(m.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&a&&(h.errors.forEach(Tu(u,a)),h.warnings.forEach(Tu(u,a))),h}function qb(u,l,a){let s;typeof l=="function"?s=l:a===void 0&&l&&typeof l=="object"&&(a=l);const c=Zp(u,a);if(!c)return null;if(c.warnings.forEach(o=>mp(c.options.logLevel,o)),c.errors.length>0){if(c.options.logLevel!=="silent")throw c.errors[0];c.errors=[]}return c.toJS(Object.assign({reviver:s},a))}function kb(u,l,a){let s=null;if(typeof l=="function"||Array.isArray(l)?s=l:a===void 0&&l&&(a=l),typeof a=="string"&&(a=a.length),typeof a=="number"){const c=Math.round(a);a=c<1?void 0:c>8?{indent:8}:{indent:c}}if(u===void 0){const{keepUndefined:c}=a??l??{};if(!c)return}return _l(u)&&!s?u.toString(a):new xi(u,s,a).toString(a)}const Hb=Object.freeze(Object.defineProperty({__proto__:null,Alias:Nu,CST:Ub,Composer:Qf,Document:xi,Lexer:Kp,LineCounter:Vp,Pair:ct,Parser:Xf,Scalar:ue,Schema:Ru,YAMLError:Kf,YAMLMap:Lt,YAMLParseError:Al,YAMLSeq:Pn,YAMLWarning:Lp,isAlias:el,isCollection:Re,isDocument:_l,isMap:Ni,isNode:Be,isPair:je,isScalar:xe,isSeq:Mi,parse:qb,parseAllDocuments:Bb,parseDocument:Zp,stringify:kb,visit:Nl,visitAsync:_u},Symbol.toStringTag,{value:"Module"}));function Yb(u,l,a={}){var _;const s=new u.LineCounter,c={keepSourceTokens:!0,lineCounter:s,...a},o=u.parseDocument(l,c),h=[],m=E=>[s.linePos(E[0]),s.linePos(E[1])],g=E=>{h.push({message:E.message,range:[s.linePos(E.pos[0]),s.linePos(E.pos[1])]})},p=(E,x)=>{for(const b of x.items){if(b instanceof u.Scalar&&typeof b.value=="string"){const U=Au.parse(b,c,h);U&&(E.children=E.children||[],E.children.push(U));continue}if(b instanceof u.YAMLMap){T(E,b);continue}h.push({message:"Sequence items should be strings or maps",range:m(b.range||x.range)})}},T=(E,x)=>{for(const b of x.items){if(E.children=E.children||[],!(b.key instanceof u.Scalar&&typeof b.key.value=="string")){h.push({message:"Only string keys are supported",range:m(b.key.range||x.range)});continue}const M=b.key,U=b.value;if(M.value==="text"){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Text value should be a string",range:m(b.value.range||x.range)});continue}E.children.push({kind:"text",text:bf(U.value)});continue}if(M.value==="/children"){if(!(U instanceof u.Scalar&&typeof U.value=="string")||U.value!=="contain"&&U.value!=="equal"&&U.value!=="deep-equal"){h.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:m(b.value.range||x.range)});continue}E.containerMode=U.value;continue}if(M.value.startsWith("/")){if(!(U instanceof u.Scalar&&typeof U.value=="string")){h.push({message:"Property value should be a string",range:m(b.value.range||x.range)});continue}E.props=E.props??{},E.props[M.value.slice(1)]=bf(U.value);continue}const K=Au.parse(M,c,h);if(!K)continue;if(U instanceof u.Scalar){const I=typeof U.value;if(I!=="string"&&I!=="number"&&I!=="boolean"){h.push({message:"Node value should be a string or a sequence",range:m(b.value.range||x.range)});continue}E.children.push({...K,children:[{kind:"text",text:bf(String(U.value))}]});continue}if(U instanceof u.YAMLSeq){E.children.push(K),p(K,U);continue}h.push({message:"Map values should be strings or sequences",range:m(b.value.range||x.range)})}},v={kind:"role",role:"fragment"};return o.errors.forEach(g),h.length?{errors:h,fragment:v}:(o.contents instanceof u.YAMLSeq||h.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:o.contents?m(o.contents.range):[{line:0,col:0},{line:0,col:0}]}),h.length?{errors:h,fragment:v}:(p(v,o.contents),h.length?{errors:h,fragment:$b}:((_=v.children)==null?void 0:_.length)===1&&(!v.containerMode||v.containerMode==="contain")?{fragment:v.children[0],errors:[]}:{fragment:v,errors:[]}))}const $b={kind:"role",role:"fragment"};function Jp(u){return u.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function bf(u){return{raw:u,normalized:Jp(u)}}class Au{static parse(l,a,s){try{return new Au(l.value)._parse()}catch(c){if(c instanceof Ng){const o=a.prettyErrors===!1?c.message:c.message+`:
190
+
191
+ `+l.value+`
192
+ `+" ".repeat(c.pos)+`^
193
+ `;return s.push({message:o,range:[a.lineCounter.linePos(l.range[0]),a.lineCounter.linePos(l.range[0]+c.pos)]}),null}throw c}}constructor(l){this._input=l,this._pos=0,this._length=l.length}_peek(){return this._input[this._pos]||""}_next(){return this._pos<this._length?this._input[this._pos++]:null}_eof(){return this._pos>=this._length}_isWhitespace(){return!this._eof()&&/\s/.test(this._peek())}_skipWhitespace(){for(;this._isWhitespace();)this._pos++}_readIdentifier(l){this._eof()&&this._throwError(`Unexpected end of input when expecting ${l}`);const a=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(a,this._pos)}_readString(){let l="",a=!1;for(;!this._eof();){const s=this._next();if(a)l+=s,a=!1;else if(s==="\\")a=!0;else{if(s==='"')return l;l+=s}}this._throwError("Unterminated string")}_throwError(l,a=0){throw new Ng(l,a||this._pos)}_readRegex(){let l="",a=!1,s=!1;for(;!this._eof();){const c=this._next();if(a)l+=c,a=!1;else if(c==="\\")a=!0,l+=c;else{if(c==="/"&&!s)return{pattern:l};c==="["?(s=!0,l+=c):c==="]"&&s?(l+=c,s=!1):l+=c}}this._throwError("Unterminated regex")}_readStringOrRegex(){const l=this._peek();return l==='"'?(this._next(),Jp(this._readString())):l==="/"?(this._next(),this._readRegex()):null}_readAttributes(l){let a=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),a=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let c="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),a=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)c+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(l,s,c||"true",a)}}_parse(){this._skipWhitespace();const l=this._readIdentifier("role");this._skipWhitespace();const a=this._readStringOrRegex()||"",s={kind:"role",role:l,name:a};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(l,a,s,c){if(a==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',c),l.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',c),l.disabled=s==="true";return}if(a==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',c),l.expanded=s==="true";return}if(a==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',c),l.active=s==="true";return}if(a==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',c),l.level=Number(s);return}if(a==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',c),l.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(a==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',c),l.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${a}]`,c)}_assert(l,a,s){l||this._throwError(a||"Assertion error",s)}}class Ng extends Error{constructor(l,a){super(l),this.pos=a}}const Gb=({className:u,style:l,open:a,isModal:s,minWidth:c,verticalOffset:o,requestClose:h,anchor:m,dataTestId:g,children:p})=>{const T=oe.useRef(null),[v,_]=oe.useState(0),[E]=Sf(T),[x,b]=Sf(m),A=m?Kb(E,x,o):void 0;return oe.useEffect(()=>{const M=K=>{!T.current||!(K.target instanceof Node)||T.current.contains(K.target)||h==null||h()},U=K=>{K.key==="Escape"&&(h==null||h())};return a?(document.addEventListener("mousedown",M),document.addEventListener("keydown",U),()=>{document.removeEventListener("mousedown",M),document.removeEventListener("keydown",U)}):()=>{}},[a,h]),oe.useLayoutEffect(()=>b(),[a,b]),oe.useEffect(()=>{const M=()=>_(U=>U+1);return window.addEventListener("resize",M),()=>{window.removeEventListener("resize",M)}},[]),oe.useLayoutEffect(()=>{T.current&&(a?s?T.current.showModal():T.current.show():T.current.close())},[a,s]),X.jsx("dialog",{ref:T,style:{position:"fixed",margin:A?0:void 0,zIndex:110,top:A==null?void 0:A.top,left:A==null?void 0:A.left,minWidth:c||0,...l},className:u,"data-testid":g,children:p})};function Kb(u,l,a=4,s=4){let c=Math.max(s,l.left);c+u.width>window.innerWidth-s&&(c=window.innerWidth-u.width-s);let o=Math.max(0,l.bottom)+a;return o+u.height>window.innerHeight-a&&(Math.max(0,l.top)>u.height+a?o=Math.max(0,l.top)-u.height-a:o=window.innerHeight-a-u.height),{left:c,top:o}}const Vb=({})=>{const[u,l]=oe.useState([]),[a,s]=oe.useState(!1),[c,o]=oe.useState(new Map),[h,m]=oe.useState("none"),[g,p]=oe.useState(),[T,v]=yu("recorderPropertiesTab","log"),[_,E]=oe.useState(),[x,b]=oe.useState(),[A,M]=oe.useState(!1),[U,K]=z1(),[Q,W]=yu("autoExpect",!1),I=oe.useRef(null),q=oe.useMemo(Qb,[]),[V,L]=oe.useState(""),[ie,ae]=oe.useState([]),$=oe.useRef(null),J=oe.useMemo(()=>u.find(Z=>Z.id===g)??ev(),[u,g]);oe.useLayoutEffect(()=>{const G={modeChanged:({mode:Z})=>m(Z),sourcesUpdated:({sources:Z})=>{l(Z),window.playwrightSourcesEchoForTest=Z},pageNavigated:({url:Z})=>{document.title=Z?`Playwright Inspector - ${Z}`:"Playwright Inspector"},pauseStateChanged:({paused:Z})=>s(Z),callLogsUpdated:({callLogs:Z})=>{o(ge=>{const be=new Map(ge);for(const w of Z)w.reveal=!ge.has(w.id),be.set(w.id,w);return be})},sourceRevealRequested:({sourceId:Z})=>p(Z),elementPicked:({elementInfo:Z,userGesture:ge})=>{const be=J.language;L(ep(be,Z.selector)),ae(Z.selectors??[Z.selector]),E(Z.ariaSnapshot),b([]),ge&&T!=="locator"&&T!=="aria"&&T!=="selectors"&&v("selectors"),h==="inspecting"&&T==="aria"||q.setMode({mode:h==="inspecting"?"standby":"recording"}).catch(()=>{})}};window.dispatch=Z=>{G[Z.method].call(G,Z.params)}},[q,h,T,v,J]),oe.useEffect(()=>{q.setAutoExpect({autoExpect:Q})},[Q,q]),oe.useLayoutEffect(()=>{var G;(G=$.current)==null||G.scrollIntoView({block:"center",inline:"nearest"})},[$]),oe.useLayoutEffect(()=>{const G=Z=>{switch(Z.key){case"F8":Z.preventDefault(),a?q.resume():q.pause();break;case"F10":Z.preventDefault(),a&&q.step();break}};return document.addEventListener("keydown",G),()=>document.removeEventListener("keydown",G)},[a,q]);const _e=oe.useCallback(G=>{(h==="none"||h==="inspecting")&&q.setMode({mode:"standby"}),L(G),q.highlightRequested({selector:G})},[h,q]),et=oe.useCallback(G=>{(h==="none"||h==="inspecting")&&q.setMode({mode:"standby"});const{fragment:Z,errors:ge}=Yb(Hb,G,{prettyErrors:!1}),be=ge.map(w=>({message:w.message,line:w.range[1].line,column:w.range[1].col,type:"subtle-error"}));b(be),E(G),ge.length||q.highlightRequested({ariaTemplate:Z})},[h,q]),R=h==="recording"||h==="recording-inspecting"||h==="assertingText"||h==="assertingVisibility";return X.jsxs("div",{className:"recorder",children:[X.jsxs(xg,{children:[X.jsx(Dt,{icon:R?"stop-circle":"circle-large-filled",title:R?"Stop Recording":"Start Recording",toggled:R,onClick:()=>{q.setMode({mode:h==="none"||h==="standby"||h==="inspecting"?"recording":"standby"})},children:"Record"}),X.jsx(hg,{}),X.jsx(Dt,{icon:"inspect",title:"Pick locator",toggled:h==="inspecting"||h==="recording-inspecting",onClick:()=>{const G={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting"}[h];q.setMode({mode:G}).catch(()=>{})}}),X.jsx(Dt,{icon:"eye",title:"Assert visibility",toggled:h==="assertingVisibility",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{q.setMode({mode:h==="assertingVisibility"?"recording":"assertingVisibility"})}}),X.jsx(Dt,{icon:"whole-word",title:"Assert text",toggled:h==="assertingText",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{q.setMode({mode:h==="assertingText"?"recording":"assertingText"})}}),X.jsx(Dt,{icon:"symbol-constant",title:"Assert value",toggled:h==="assertingValue",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{q.setMode({mode:h==="assertingValue"?"recording":"assertingValue"})}}),X.jsx(Dt,{icon:"gist",title:"Assert snapshot",toggled:h==="assertingSnapshot",disabled:h==="none"||h==="standby"||h==="inspecting",onClick:()=>{q.setMode({mode:h==="assertingSnapshot"?"recording":"assertingSnapshot"})}}),X.jsx(hg,{}),X.jsx(Dt,{icon:"files",title:"Copy",disabled:!J||!J.text,onClick:()=>{eg(J.text)}}),X.jsx(Dt,{icon:"debug-continue",title:"Resume (F8)",ariaLabel:"Resume",disabled:!a,onClick:()=>{q.resume()}}),X.jsx(Dt,{icon:"debug-pause",title:"Pause (F8)",ariaLabel:"Pause",disabled:a,onClick:()=>{q.pause()}}),X.jsx(Dt,{icon:"debug-step-over",title:"Step over (F10)",ariaLabel:"Step over",disabled:!a,onClick:()=>{q.step()}}),X.jsx("div",{style:{flex:"auto"}}),X.jsx("div",{children:"Target:"}),X.jsx(I1,{fileId:J.id,sources:u,setFileId:G=>{p(G),q.fileChanged({fileId:G})}}),X.jsx(Dt,{icon:"clear-all",title:"Clear",disabled:!J||!J.text,onClick:()=>{q.clear()}}),X.jsx(Dt,{ref:I,icon:"settings-gear",title:"Settings",onClick:()=>M(G=>!G)}),X.jsxs(Gb,{style:{padding:"4px 8px"},open:A,verticalOffset:8,requestClose:()=>M(!1),anchor:I,dataTestId:"settings-dialog",children:[X.jsxs("div",{className:"setting setting-theme",children:[X.jsx("label",{htmlFor:"dark-mode-setting",children:"Theme:"}),X.jsx("select",{id:"dark-mode-setting",value:U,onChange:G=>K(G.target.value),children:_1.map(G=>X.jsx("option",{value:G.value,children:G.label},G.value))})]},"dark-mode-setting"),X.jsxs("div",{className:"setting",title:"Automatically generate assertions while recording",children:[X.jsx("input",{type:"checkbox",id:"auto-expect-setting",checked:Q,onChange:()=>{q.setAutoExpect({autoExpect:!Q}),W(!Q)}}),X.jsx("label",{htmlFor:"auto-expect-setting",children:"Generate assertions"})]},"auto-expect-setting")]})]}),X.jsx(J1,{sidebarSize:200,main:X.jsx(nu,{text:J.text,highlighter:J.language,highlight:J.highlight,revealLine:J.revealLine,readOnly:!0,lineNumbers:!0}),sidebar:X.jsx(W1,{rightToolbar:T==="locator"||T==="aria"||T==="selectors"?[X.jsx(Dt,{icon:"files",title:"Copy",onClick:()=>eg(T==="selectors"?ie.join(`
194
+ `):(T==="locator"?V:_)||"")},1)]:[],tabs:[{id:"selectors",title:"Selectors",render:()=>X.jsx(nu,{text:ie.join(`
195
+ `),placeholder:"Pick an element to see selectors",highlighter:J.language,readOnly:!0,wrapLines:!0})},{id:"locator",title:"Locator",render:()=>X.jsx(nu,{text:V,placeholder:"Type locator to inspect",highlighter:J.language,focusOnChange:!0,onChange:_e,wrapLines:!0})},{id:"log",title:"Log",render:()=>X.jsx(zv,{language:J.language,log:Array.from(c.values())})},{id:"aria",title:"Aria",render:()=>X.jsx(nu,{text:_||"",placeholder:"Type aria template to match",highlighter:"yaml",onChange:et,highlight:x,wrapLines:!0})}],selectedTab:T,setSelectedTab:v})})]})};function Qb(){return new Proxy({},{get:(u,l)=>{if(typeof l=="string")return a=>window.sendCommand({method:l,params:a})}})}(async()=>(N1(),B1.createRoot(document.querySelector("#root")).render(X.jsx(Vb,{}))))();export{b1 as g};