@skyramp/mcp 0.3.2 → 0.3.4

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 (181) hide show
  1. package/build/index.js +47 -2
  2. package/build/playwright/PlaywrightTraceService.d.ts +8 -0
  3. package/build/playwright/PlaywrightTraceService.js +1 -0
  4. package/build/playwright/registerPlaywrightTools.js +42 -1
  5. package/build/prompts/enhance-assertions/sharedAssertionRules.js +19 -0
  6. package/build/prompts/pom-aware-code-reuse.js +17 -8
  7. package/build/prompts/test-maintenance/actionsInstructions.js +2 -2
  8. package/build/prompts/test-recommendation/analysisOutputPrompt.js +1 -4
  9. package/build/prompts/test-recommendation/recommendationSections.d.ts +1 -1
  10. package/build/prompts/test-recommendation/recommendationSections.js +5 -5
  11. package/build/prompts/test-recommendation/test-recommendation-prompt.js +13 -7
  12. package/build/prompts/testbot/testbot-prompts.d.ts +2 -12
  13. package/build/prompts/testbot/testbot-prompts.js +28 -16
  14. package/build/recommendation/discriminators.d.ts +7 -1
  15. package/build/recommendation/discriminators.js +16 -3
  16. package/build/resources/testbotResource.js +20 -4
  17. package/build/services/ScenarioGenerationService.js +5 -2
  18. package/build/services/TestExecutionService.d.ts +13 -8
  19. package/build/services/TestExecutionService.js +73 -26
  20. package/build/services/TestGenerationService.js +24 -9
  21. package/build/services/containerEnv.d.ts +12 -1
  22. package/build/services/containerEnv.js +118 -1
  23. package/build/tools/executeSkyrampTestTool.d.ts +9 -0
  24. package/build/tools/executeSkyrampTestTool.js +20 -6
  25. package/build/tools/execution-video-state.d.ts +21 -0
  26. package/build/tools/execution-video-state.js +51 -0
  27. package/build/tools/generate-tests/generateBatchScenarioRestTool.js +31 -11
  28. package/build/tools/generate-tests/planGuard.d.ts +5 -5
  29. package/build/tools/generate-tests/planGuard.js +5 -17
  30. package/build/tools/queryProxyMocksTool.js +0 -1
  31. package/build/tools/submitReportTool.d.ts +83 -10
  32. package/build/tools/submitReportTool.js +179 -29
  33. package/build/tools/test-management/actionsTool.js +52 -41
  34. package/build/tools/test-management/analyzeChangesTool.d.ts +11 -0
  35. package/build/tools/test-management/analyzeChangesTool.js +37 -33
  36. package/build/tools/test-management/analyzeTestHealthTool.js +3 -3
  37. package/build/tools/test-management/registerTestPlanTool.js +113 -31
  38. package/build/types/TestAnalysis.d.ts +7 -3
  39. package/build/types/TestExecution.d.ts +14 -0
  40. package/build/types/TestTypes.js +3 -2
  41. package/build/types/TestbotPromptOptions.d.ts +34 -0
  42. package/build/types/TestbotPromptOptions.js +1 -0
  43. package/build/types/TestbotReport.d.ts +10 -0
  44. package/build/types/TestbotReport.js +10 -1
  45. package/build/types/index.d.ts +2 -0
  46. package/build/types/index.js +1 -0
  47. package/build/utils/AnalysisStateManager.d.ts +36 -2
  48. package/build/utils/AnalysisStateManager.js +34 -13
  49. package/build/utils/frontendSelectors.js +0 -1
  50. package/build/utils/gitStaging.d.ts +5 -0
  51. package/build/utils/gitStaging.js +1 -1
  52. package/build/utils/pom-catalog.d.ts +23 -0
  53. package/build/utils/pom-catalog.js +30 -0
  54. package/build/utils/pom-scope/pom-files.d.ts +14 -0
  55. package/build/utils/pom-scope/pom-files.js +32 -6
  56. package/build/utils/pom-scope/testIdDiscovery.d.ts +40 -0
  57. package/build/utils/pom-scope/testIdDiscovery.js +104 -0
  58. package/build/utils/reportVerification.d.ts +7 -2
  59. package/build/utils/reportVerification.js +9 -3
  60. package/build/utils/scenarioDrafting.js +7 -1
  61. package/build/utils/skyrampMdContent.d.ts +1 -1
  62. package/build/utils/skyrampMdContent.js +1 -1
  63. package/build/utils/urlPath.d.ts +37 -0
  64. package/build/utils/urlPath.js +55 -0
  65. package/build/utils/utils.d.ts +45 -0
  66. package/build/utils/utils.js +50 -0
  67. package/build/utils/versions.d.ts +3 -3
  68. package/build/utils/versions.js +1 -1
  69. package/build/utils/workspaceAuth.d.ts +15 -15
  70. package/build/utils/workspaceAuth.js +32 -17
  71. package/build/workspace/queryParamResolution.d.ts +93 -0
  72. package/build/workspace/queryParamResolution.js +201 -0
  73. package/build/workspace/workspace.d.ts +104 -0
  74. package/build/workspace/workspace.js +24 -0
  75. package/node_modules/playwright/ThirdPartyNotices.txt +319 -266
  76. package/node_modules/playwright/lib/dom-analyzer/blueprint.js +154 -27
  77. package/node_modules/playwright/lib/dom-analyzer/crawler.js +2 -2
  78. package/node_modules/playwright/lib/mcp/browser/tools/pageBlueprint.js +1 -1
  79. package/node_modules/playwright/lib/mcp/browser/tools/sitemap.js +6 -2
  80. package/node_modules/playwright/lib/mcp/skyramp/loadTraceTool.js +3 -2
  81. package/node_modules/playwright/lib/mcp/skyramp/resultCode.js +4 -3
  82. package/node_modules/playwright/lib/mcp/skyramp/skyRampImport.js +15 -3
  83. package/node_modules/playwright/lib/mcp/skyramp/specImport.js +781 -0
  84. package/node_modules/playwright/lib/mcp/skyramp/traceRecordingBackend.js +14 -3
  85. package/node_modules/playwright/lib/mcp/test/resultCode.test.js +2 -1
  86. package/node_modules/playwright/lib/mcp/test/skyRampExport.js +1 -1
  87. package/node_modules/playwright/lib/mcp/test/skyRampExport.test.js +30 -0
  88. package/node_modules/playwright/lib/transform/babelBundleImpl.js +200 -199
  89. package/node_modules/playwright/node_modules/playwright-core/ThirdPartyNotices.txt +3 -3
  90. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/.package-lock.json +3 -3
  91. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/adapter/aws-lambda/handler.js +16 -25
  92. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/adapter/bun/websocket.js +3 -1
  93. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/adapter/lambda-edge/handler.js +20 -4
  94. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +16 -25
  95. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/adapter/bun/websocket.js +3 -1
  96. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/adapter/lambda-edge/handler.js +20 -4
  97. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/client/client.js +10 -1
  98. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/client/utils.js +1 -1
  99. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/helper/css/common.js +3 -1
  100. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/helper/css/index.js +9 -1
  101. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/jsx/base.js +8 -14
  102. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/jsx/components.js +41 -21
  103. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/jsx/context.js +131 -5
  104. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/jsx/streaming.js +9 -7
  105. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/bearer-auth/index.js +1 -1
  106. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/cache/index.js +1 -1
  107. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/compress/index.js +2 -1
  108. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/cors/index.js +2 -5
  109. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -1
  110. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/language/language.js +10 -32
  111. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/method-override/index.js +5 -3
  112. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/serve-static/index.js +2 -2
  113. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/middleware/timing/timing.js +3 -1
  114. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/router/trie-router/node.js +9 -0
  115. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/utils/body.js +12 -4
  116. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/utils/buffer.js +2 -1
  117. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/utils/ipaddr.js +6 -1
  118. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/cjs/validator/validator.js +3 -3
  119. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/client/client.js +10 -1
  120. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/client/utils.js +1 -1
  121. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/helper/css/common.js +3 -1
  122. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/helper/css/index.js +9 -1
  123. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/jsx/base.js +15 -15
  124. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/jsx/components.js +42 -22
  125. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/jsx/context.js +129 -5
  126. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/jsx/streaming.js +10 -8
  127. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/bearer-auth/index.js +1 -1
  128. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/cache/index.js +1 -1
  129. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/compress/index.js +2 -1
  130. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/cors/index.js +2 -5
  131. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/etag/index.js +2 -1
  132. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/language/language.js +10 -32
  133. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/method-override/index.js +5 -3
  134. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/serve-static/index.js +2 -2
  135. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/middleware/timing/timing.js +3 -1
  136. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/router/trie-router/node.js +9 -0
  137. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/adapter/aws-lambda/handler.d.ts +1 -1
  138. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/adapter/lambda-edge/handler.d.ts +1 -1
  139. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/helper/websocket/index.d.ts +1 -1
  140. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/jsx/base.d.ts +1 -3
  141. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/jsx/context.d.ts +39 -0
  142. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/middleware/context-storage/index.d.ts +2 -2
  143. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/middleware/language/language.d.ts +18 -0
  144. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/utils/body.d.ts +1 -1
  145. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/types/utils/types.d.ts +1 -1
  146. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/utils/body.js +12 -4
  147. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/utils/buffer.js +2 -1
  148. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/utils/ipaddr.js +6 -1
  149. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/validator/validator.js +3 -3
  150. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/package.json +29 -22
  151. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/package-lock.json +3 -3
  152. package/node_modules/playwright/node_modules/playwright-core/lib/generated/pollingRecorderSource.js +1 -1
  153. package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/jsonlReader.js +5 -1
  154. package/node_modules/playwright/node_modules/playwright-core/lib/server/codegen/skyramp/specReader.js +781 -0
  155. package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/recorderApp.js +25 -6
  156. package/node_modules/playwright/node_modules/playwright-core/lib/server/recorder/skyramp/replayEngine.js +3 -1
  157. package/node_modules/playwright/node_modules/playwright-core/lib/utils.js +2 -0
  158. package/node_modules/playwright/node_modules/playwright-core/lib/vite/htmlReport/index.html +253 -27
  159. package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/{codeMirrorModule-D0BjbCb7.js → codeMirrorModule-DtudTj_v.js} +1 -1
  160. package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-BpDwp16L.js +422 -0
  161. package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/index.html +1 -1
  162. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/{codeMirrorModule-Bzd72-bG.js → codeMirrorModule-FNMuBzX1.js} +1 -1
  163. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-Co9upU5h.js +1035 -0
  164. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.DXNIQ_dx.js +2 -0
  165. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.html +2 -2
  166. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.CIKB3XSv.js +5 -0
  167. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.html +2 -2
  168. package/node_modules/playwright/node_modules/playwright-core/package.json +1 -1
  169. package/node_modules/playwright/node_modules/playwright-core/src/generated/pollingRecorderSource.ts +1 -1
  170. package/node_modules/playwright/node_modules/playwright-core/src/server/codegen/skyramp/jsonlReader.ts +4 -0
  171. package/node_modules/playwright/node_modules/playwright-core/src/server/codegen/skyramp/specReader.ts +1028 -0
  172. package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/recorderApp.ts +31 -8
  173. package/node_modules/playwright/node_modules/playwright-core/src/server/recorder/skyramp/replayEngine.ts +1 -0
  174. package/node_modules/playwright/node_modules/playwright-core/src/utils.ts +1 -0
  175. package/node_modules/playwright/package.json +1 -1
  176. package/package.json +10 -6
  177. package/node_modules/playwright/node_modules/playwright-core/bundles/mcp/node_modules/hono/dist/tsconfig.build.tsbuildinfo +0 -1
  178. package/node_modules/playwright/node_modules/playwright-core/lib/vite/recorder/assets/index-lvTRGFx-.js +0 -193
  179. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/assets/defaultSettingsView-DzxTioTK.js +0 -809
  180. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/index.BGc30U3S.js +0 -2
  181. package/node_modules/playwright/node_modules/playwright-core/lib/vite/traceViewer/uiMode.IaDrb29A.js +0 -5
@@ -0,0 +1,1035 @@
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./codeMirrorModule-FNMuBzX1.js","../codeMirrorModule.DYBRYzYX.css"])))=>i.map(i=>d[i]);
2
+ var d3=Object.defineProperty;var f3=(i,e,r)=>e in i?d3(i,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[e]=r;var Nu=(i,e,r)=>f3(i,typeof e!="symbol"?e+"":e,r);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function r(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(o){if(o.ep)return;o.ep=!0;const l=r(o);fetch(o.href,l)}})();function h3(i){return i&&i.__esModule&&Object.prototype.hasOwnProperty.call(i,"default")?i.default:i}var _b={exports:{}},Ch={},Sb={exports:{}},Hu={exports:{}};Hu.exports;var tT;function m3(){return tT||(tT=1,(function(i,e){/**
3
+ * @license React
4
+ * react.development.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
+ */(function(){function r(C,L){Object.defineProperty(l.prototype,C,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",L[0],L[1])}})}function s(C){return C===null||typeof C!="object"?null:(C=Cn&&C[Cn]||C["@@iterator"],typeof C=="function"?C:null)}function o(C,L){C=(C=C.constructor)&&(C.displayName||C.name)||"ReactClass";var ee=C+"."+L;Xr[ee]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",L,C),Xr[ee]=!0)}function l(C,L,ee){this.props=C,this.context=L,this.refs=Xe,this.updater=ee||$t}function u(){}function d(C,L,ee){this.props=C,this.context=L,this.refs=Xe,this.updater=ee||$t}function m(){}function p(C){return""+C}function v(C){try{p(C);var L=!1}catch{L=!0}if(L){L=console;var ee=L.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&C[Symbol.toStringTag]||C.constructor.name||"Object";return ee.call(L,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),p(C)}}function g(C){if(C==null)return null;if(typeof C=="function")return C.$$typeof===ha?null:C.displayName||C.name||null;if(typeof C=="string")return C;switch(C){case Q:return"Fragment";case ze:return"Profiler";case ve:return"StrictMode";case rt:return"Suspense";case hn:return"SuspenseList";case le:return"Activity"}if(typeof C=="object")switch(typeof C.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),C.$$typeof){case Ge:return"Portal";case gt:return C.displayName||"Context";case Te:return(C._context.displayName||"Context")+".Consumer";case Ze:var L=C.render;return C=C.displayName,C||(C=L.displayName||L.name||"",C=C!==""?"ForwardRef("+C+")":"ForwardRef"),C;case an:return L=C.displayName||null,L!==null?L:g(C.type)||"Memo";case Dr:L=C._payload,C=C._init;try{return g(C(L))}catch{}}return null}function y(C){if(C===Q)return"<>";if(typeof C=="object"&&C!==null&&C.$$typeof===Dr)return"<...>";try{var L=g(C);return L?"<"+L+">":"<...>"}catch{return"<...>"}}function w(){var C=fe.A;return C===null?null:C.getOwner()}function E(){return Error("react-stack-top-frame")}function S(C){if(ms.call(C,"key")){var L=Object.getOwnPropertyDescriptor(C,"key").get;if(L&&L.isReactWarning)return!1}return C.key!==void 0}function T(C,L){function ee(){Mi||(Mi=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",L))}ee.isReactWarning=!0,Object.defineProperty(C,"key",{get:ee,configurable:!0})}function k(){var C=g(this.type);return yo[C]||(yo[C]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),C=this.props.ref,C!==void 0?C:null}function D(C,L,ee,ie,he,Ne){var pe=ee.ref;return C={$$typeof:je,type:C,key:L,props:ee,_owner:ie},(pe!==void 0?pe:null)!==null?Object.defineProperty(C,"ref",{enumerable:!1,get:k}):Object.defineProperty(C,"ref",{enumerable:!1,value:null}),C._store={},Object.defineProperty(C._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(C,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(C,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:he}),Object.defineProperty(C,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ne}),Object.freeze&&(Object.freeze(C.props),Object.freeze(C)),C}function I(C,L){return L=D(C.type,L,C.props,C._owner,C._debugStack,C._debugTask),C._store&&(L._store.validated=C._store.validated),L}function z(C){$(C)?C._store&&(C._store.validated=1):typeof C=="object"&&C!==null&&C.$$typeof===Dr&&(C._payload.status==="fulfilled"?$(C._payload.value)&&C._payload.value._store&&(C._payload.value._store.validated=1):C._store&&(C._store.validated=1))}function $(C){return typeof C=="object"&&C!==null&&C.$$typeof===je}function Z(C){var L={"=":"=0",":":"=2"};return"$"+C.replace(/[=:]/g,function(ee){return L[ee]})}function W(C,L){return typeof C=="object"&&C!==null&&C.key!=null?(v(C.key),Z(""+C.key)):L.toString(36)}function B(C){switch(C.status){case"fulfilled":return C.value;case"rejected":throw C.reason;default:switch(typeof C.status=="string"?C.then(m,m):(C.status="pending",C.then(function(L){C.status==="pending"&&(C.status="fulfilled",C.value=L)},function(L){C.status==="pending"&&(C.status="rejected",C.reason=L)})),C.status){case"fulfilled":return C.value;case"rejected":throw C.reason}}throw C}function H(C,L,ee,ie,he){var Ne=typeof C;(Ne==="undefined"||Ne==="boolean")&&(C=null);var pe=!1;if(C===null)pe=!0;else switch(Ne){case"bigint":case"string":case"number":pe=!0;break;case"object":switch(C.$$typeof){case je:case Ge:pe=!0;break;case Dr:return pe=C._init,H(pe(C._payload),L,ee,ie,he)}}if(pe){pe=C,he=he(pe);var Be=ie===""?"."+W(pe,0):ie;return Jr(he)?(ee="",Be!=null&&(ee=Be.replace(bo,"$&/")+"/"),H(he,L,ee,"",function(mn){return mn})):he!=null&&($(he)&&(he.key!=null&&(pe&&pe.key===he.key||v(he.key)),ee=I(he,ee+(he.key==null||pe&&pe.key===he.key?"":(""+he.key).replace(bo,"$&/")+"/")+Be),ie!==""&&pe!=null&&$(pe)&&pe.key==null&&pe._store&&!pe._store.validated&&(ee._store.validated=2),he=ee),L.push(he)),1}if(pe=0,Be=ie===""?".":ie+":",Jr(C))for(var Ae=0;Ae<C.length;Ae++)ie=C[Ae],Ne=Be+W(ie,Ae),pe+=H(ie,L,ee,Ne,he);else if(Ae=s(C),typeof Ae=="function")for(Ae===C.entries&&(sr||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),sr=!0),C=Ae.call(C),Ae=0;!(ie=C.next()).done;)ie=ie.value,Ne=Be+W(ie,Ae++),pe+=H(ie,L,ee,Ne,he);else if(Ne==="object"){if(typeof C.then=="function")return H(B(C),L,ee,ie,he);throw L=String(C),Error("Objects are not valid as a React child (found: "+(L==="[object Object]"?"object with keys {"+Object.keys(C).join(", ")+"}":L)+"). If you meant to render a collection of children, use an array instead.")}return pe}function J(C,L,ee){if(C==null)return C;var ie=[],he=0;return H(C,ie,"","",function(Ne){return L.call(ee,Ne,he++)}),ie}function ue(C){if(C._status===-1){var L=C._ioInfo;L!=null&&(L.start=L.end=performance.now()),L=C._result;var ee=L();if(ee.then(function(he){if(C._status===0||C._status===-1){C._status=1,C._result=he;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),ee.status===void 0&&(ee.status="fulfilled",ee.value=he)}},function(he){if(C._status===0||C._status===-1){C._status=2,C._result=he;var Ne=C._ioInfo;Ne!=null&&(Ne.end=performance.now()),ee.status===void 0&&(ee.status="rejected",ee.reason=he)}}),L=C._ioInfo,L!=null){L.value=ee;var ie=ee.displayName;typeof ie=="string"&&(L.name=ie)}C._status===-1&&(C._status=0,C._result=ee)}if(C._status===1)return L=C._result,L===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
11
+
12
+ Your code should look like:
13
+ const MyComponent = lazy(() => import('./MyComponent'))
14
+
15
+ Did you accidentally put curly braces around the import?`,L),"default"in L||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
16
+
17
+ Your code should look like:
18
+ const MyComponent = lazy(() => import('./MyComponent'))`,L),L.default;throw C._result}function q(){var C=fe.H;return C===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
19
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
20
+ 2. You might be breaking the Rules of Hooks
21
+ 3. You might have more than one copy of React in the same app
22
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),C}function X(){fe.asyncTransitions--}function se(C){if(Bn===null)try{var L=("require"+Math.random()).slice(0,7);Bn=(i&&i[L]).call(i,"timers").setImmediate}catch{Bn=function(ie){ga===!1&&(ga=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var he=new MessageChannel;he.port1.onmessage=ie,he.port2.postMessage(void 0)}}return Bn(C)}function Fe(C){return 1<C.length&&typeof AggregateError=="function"?new AggregateError(C):C[0]}function ne(C,L){L!==ar-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ar=L}function de(C,L,ee){var ie=fe.actQueue;if(ie!==null)if(ie.length!==0)try{ge(ie),se(function(){return de(C,L,ee)});return}catch(he){fe.thrownErrors.push(he)}else fe.actQueue=null;0<fe.thrownErrors.length?(ie=Fe(fe.thrownErrors),fe.thrownErrors.length=0,ee(ie)):L(C)}function ge(C){if(!gs){gs=!0;var L=0;try{for(;L<C.length;L++){var ee=C[L];do{fe.didUsePromise=!1;var ie=ee(!1);if(ie!==null){if(fe.didUsePromise){C[L]=ee,C.splice(0,L);return}ee=ie}else break}while(!0)}C.length=0}catch(he){C.splice(0,L+1),fe.thrownErrors.push(he)}finally{gs=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var je=Symbol.for("react.transitional.element"),Ge=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),ve=Symbol.for("react.strict_mode"),ze=Symbol.for("react.profiler"),Te=Symbol.for("react.consumer"),gt=Symbol.for("react.context"),Ze=Symbol.for("react.forward_ref"),rt=Symbol.for("react.suspense"),hn=Symbol.for("react.suspense_list"),an=Symbol.for("react.memo"),Dr=Symbol.for("react.lazy"),le=Symbol.for("react.activity"),Cn=Symbol.iterator,Xr={},$t={isMounted:function(){return!1},enqueueForceUpdate:function(C){o(C,"forceUpdate")},enqueueReplaceState:function(C){o(C,"replaceState")},enqueueSetState:function(C){o(C,"setState")}},Rr=Object.assign,Xe={};Object.freeze(Xe),l.prototype.isReactComponent={},l.prototype.setState=function(C,L){if(typeof C!="object"&&typeof C!="function"&&C!=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,C,L,"setState")},l.prototype.forceUpdate=function(C){this.updater.enqueueForceUpdate(this,C,"forceUpdate")};var qt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Wr in qt)qt.hasOwnProperty(Wr)&&r(Wr,qt[Wr]);u.prototype=l.prototype,qt=d.prototype=new u,qt.constructor=d,Rr(qt,l.prototype),qt.isPureReactComponent=!0;var Jr=Array.isArray,ha=Symbol.for("react.client.reference"),fe={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ms=Object.prototype.hasOwnProperty,Wt=console.createTask?console.createTask:function(){return null};qt={react_stack_bottom_frame:function(C){return C()}};var Mi,Kr,yo={},ma=qt.react_stack_bottom_frame.bind(qt,E)(),ps=Wt(y(E)),sr=!1,bo=/\/+/g,pa=typeof reportError=="function"?reportError:function(C){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var L=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof C=="object"&&C!==null&&typeof C.message=="string"?String(C.message):String(C),error:C});if(!window.dispatchEvent(L))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",C);return}console.error(C)},ga=!1,Bn=null,ar=0,or=!1,gs=!1,ys=typeof queueMicrotask=="function"?function(C){queueMicrotask(function(){return queueMicrotask(C)})}:se;qt=Object.freeze({__proto__:null,c:function(C){return q().useMemoCache(C)}});var Wr={map:J,forEach:function(C,L,ee){J(C,function(){L.apply(this,arguments)},ee)},count:function(C){var L=0;return J(C,function(){L++}),L},toArray:function(C){return J(C,function(L){return L})||[]},only:function(C){if(!$(C))throw Error("React.Children.only expected to receive a single React element child.");return C}};e.Activity=le,e.Children=Wr,e.Component=l,e.Fragment=Q,e.Profiler=ze,e.PureComponent=d,e.StrictMode=ve,e.Suspense=rt,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=fe,e.__COMPILER_RUNTIME=qt,e.act=function(C){var L=fe.actQueue,ee=ar;ar++;var ie=fe.actQueue=L!==null?L:[],he=!1;try{var Ne=C()}catch(Ae){fe.thrownErrors.push(Ae)}if(0<fe.thrownErrors.length)throw ne(L,ee),C=Fe(fe.thrownErrors),fe.thrownErrors.length=0,C;if(Ne!==null&&typeof Ne=="object"&&typeof Ne.then=="function"){var pe=Ne;return ys(function(){he||or||(or=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Ae,mn){he=!0,pe.then(function(Qr){if(ne(L,ee),ee===0){try{ge(ie),se(function(){return de(Qr,Ae,mn)})}catch(vo){fe.thrownErrors.push(vo)}if(0<fe.thrownErrors.length){var hd=Fe(fe.thrownErrors);fe.thrownErrors.length=0,mn(hd)}}else Ae(Qr)},function(Qr){ne(L,ee),0<fe.thrownErrors.length&&(Qr=Fe(fe.thrownErrors),fe.thrownErrors.length=0),mn(Qr)})}}}var Be=Ne;if(ne(L,ee),ee===0&&(ge(ie),ie.length!==0&&ys(function(){he||or||(or=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),fe.actQueue=null),0<fe.thrownErrors.length)throw C=Fe(fe.thrownErrors),fe.thrownErrors.length=0,C;return{then:function(Ae,mn){he=!0,ee===0?(fe.actQueue=ie,se(function(){return de(Be,Ae,mn)})):Ae(Be)}}},e.cache=function(C){return function(){return C.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var C=fe.getCurrentStack;return C===null?null:C()},e.cloneElement=function(C,L,ee){if(C==null)throw Error("The argument must be a React element, but you passed "+C+".");var ie=Rr({},C.props),he=C.key,Ne=C._owner;if(L!=null){var pe;e:{if(ms.call(L,"ref")&&(pe=Object.getOwnPropertyDescriptor(L,"ref").get)&&pe.isReactWarning){pe=!1;break e}pe=L.ref!==void 0}pe&&(Ne=w()),S(L)&&(v(L.key),he=""+L.key);for(Be in L)!ms.call(L,Be)||Be==="key"||Be==="__self"||Be==="__source"||Be==="ref"&&L.ref===void 0||(ie[Be]=L[Be])}var Be=arguments.length-2;if(Be===1)ie.children=ee;else if(1<Be){pe=Array(Be);for(var Ae=0;Ae<Be;Ae++)pe[Ae]=arguments[Ae+2];ie.children=pe}for(ie=D(C.type,he,ie,Ne,C._debugStack,C._debugTask),he=2;he<arguments.length;he++)z(arguments[he]);return ie},e.createContext=function(C){return C={$$typeof:gt,_currentValue:C,_currentValue2:C,_threadCount:0,Provider:null,Consumer:null},C.Provider=C,C.Consumer={$$typeof:Te,_context:C},C._currentRenderer=null,C._currentRenderer2=null,C},e.createElement=function(C,L,ee){for(var ie=2;ie<arguments.length;ie++)z(arguments[ie]);ie={};var he=null;if(L!=null)for(Ae in Kr||!("__self"in L)||"key"in L||(Kr=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),S(L)&&(v(L.key),he=""+L.key),L)ms.call(L,Ae)&&Ae!=="key"&&Ae!=="__self"&&Ae!=="__source"&&(ie[Ae]=L[Ae]);var Ne=arguments.length-2;if(Ne===1)ie.children=ee;else if(1<Ne){for(var pe=Array(Ne),Be=0;Be<Ne;Be++)pe[Be]=arguments[Be+2];Object.freeze&&Object.freeze(pe),ie.children=pe}if(C&&C.defaultProps)for(Ae in Ne=C.defaultProps,Ne)ie[Ae]===void 0&&(ie[Ae]=Ne[Ae]);he&&T(ie,typeof C=="function"?C.displayName||C.name||"Unknown":C);var Ae=1e4>fe.recentlyCreatedOwnerStacks++;return D(C,he,ie,w(),Ae?Error("react-stack-top-frame"):ma,Ae?Wt(y(C)):ps)},e.createRef=function(){var C={current:null};return Object.seal(C),C},e.forwardRef=function(C){C!=null&&C.$$typeof===an?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof C!="function"?console.error("forwardRef requires a render function but was given %s.",C===null?"null":typeof C):C.length!==0&&C.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",C.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),C!=null&&C.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var L={$$typeof:Ze,render:C},ee;return Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ie){ee=ie,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ie}),C.displayName=ie)}}),L},e.isValidElement=$,e.lazy=function(C){C={_status:-1,_result:C};var L={$$typeof:Dr,_payload:C,_init:ue},ee={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return C._ioInfo=ee,L._debugInfo=[{awaited:ee}],L},e.memo=function(C,L){C==null&&console.error("memo: The first argument must be a component. Instead received: %s",C===null?"null":typeof C),L={$$typeof:an,type:C,compare:L===void 0?null:L};var ee;return Object.defineProperty(L,"displayName",{enumerable:!1,configurable:!0,get:function(){return ee},set:function(ie){ee=ie,C.name||C.displayName||(Object.defineProperty(C,"name",{value:ie}),C.displayName=ie)}}),L},e.startTransition=function(C){var L=fe.T,ee={};ee._updatedFibers=new Set,fe.T=ee;try{var ie=C(),he=fe.S;he!==null&&he(ee,ie),typeof ie=="object"&&ie!==null&&typeof ie.then=="function"&&(fe.asyncTransitions++,ie.then(X,X),ie.then(m,pa))}catch(Ne){pa(Ne)}finally{L===null&&ee._updatedFibers&&(C=ee._updatedFibers.size,ee._updatedFibers.clear(),10<C&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),L!==null&&ee.types!==null&&(L.types!==null&&L.types!==ee.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),L.types=ee.types),fe.T=L}},e.unstable_useCacheRefresh=function(){return q().useCacheRefresh()},e.use=function(C){return q().use(C)},e.useActionState=function(C,L,ee){return q().useActionState(C,L,ee)},e.useCallback=function(C,L){return q().useCallback(C,L)},e.useContext=function(C){var L=q();return C.$$typeof===Te&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),L.useContext(C)},e.useDebugValue=function(C,L){return q().useDebugValue(C,L)},e.useDeferredValue=function(C,L){return q().useDeferredValue(C,L)},e.useEffect=function(C,L){return C==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useEffect(C,L)},e.useEffectEvent=function(C){return q().useEffectEvent(C)},e.useId=function(){return q().useId()},e.useImperativeHandle=function(C,L,ee){return q().useImperativeHandle(C,L,ee)},e.useInsertionEffect=function(C,L){return C==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useInsertionEffect(C,L)},e.useLayoutEffect=function(C,L){return C==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),q().useLayoutEffect(C,L)},e.useMemo=function(C,L){return q().useMemo(C,L)},e.useOptimistic=function(C,L){return q().useOptimistic(C,L)},e.useReducer=function(C,L,ee){return q().useReducer(C,L,ee)},e.useRef=function(C){return q().useRef(C)},e.useState=function(C){return q().useState(C)},e.useSyncExternalStore=function(C,L,ee){return q().useSyncExternalStore(C,L,ee)},e.useTransition=function(){return q().useTransition()},e.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Hu,Hu.exports)),Hu.exports}var nT;function gm(){return nT||(nT=1,Sb.exports=m3()),Sb.exports}var rT;function p3(){if(rT)return Ch;rT=1;/**
23
+ * @license React
24
+ * react-jsx-dev-runtime.development.js
25
+ *
26
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
27
+ *
28
+ * This source code is licensed under the MIT license found in the
29
+ * LICENSE file in the root directory of this source tree.
30
+ */return(function(){function i(Q){if(Q==null)return null;if(typeof Q=="function")return Q.$$typeof===ue?null:Q.displayName||Q.name||null;if(typeof Q=="string")return Q;switch(Q){case T:return"Fragment";case D:return"Profiler";case k:return"StrictMode";case Z:return"Suspense";case W:return"SuspenseList";case J:return"Activity"}if(typeof Q=="object")switch(typeof Q.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),Q.$$typeof){case S:return"Portal";case z:return Q.displayName||"Context";case I:return(Q._context.displayName||"Context")+".Consumer";case $:var ve=Q.render;return Q=Q.displayName,Q||(Q=ve.displayName||ve.name||"",Q=Q!==""?"ForwardRef("+Q+")":"ForwardRef"),Q;case B:return ve=Q.displayName||null,ve!==null?ve:i(Q.type)||"Memo";case H:ve=Q._payload,Q=Q._init;try{return i(Q(ve))}catch{}}return null}function e(Q){return""+Q}function r(Q){try{e(Q);var ve=!1}catch{ve=!0}if(ve){ve=console;var ze=ve.error,Te=typeof Symbol=="function"&&Symbol.toStringTag&&Q[Symbol.toStringTag]||Q.constructor.name||"Object";return ze.call(ve,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",Te),e(Q)}}function s(Q){if(Q===T)return"<>";if(typeof Q=="object"&&Q!==null&&Q.$$typeof===H)return"<...>";try{var ve=i(Q);return ve?"<"+ve+">":"<...>"}catch{return"<...>"}}function o(){var Q=q.A;return Q===null?null:Q.getOwner()}function l(){return Error("react-stack-top-frame")}function u(Q){if(X.call(Q,"key")){var ve=Object.getOwnPropertyDescriptor(Q,"key").get;if(ve&&ve.isReactWarning)return!1}return Q.key!==void 0}function d(Q,ve){function ze(){ne||(ne=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ve))}ze.isReactWarning=!0,Object.defineProperty(Q,"key",{get:ze,configurable:!0})}function m(){var Q=i(this.type);return de[Q]||(de[Q]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),Q=this.props.ref,Q!==void 0?Q:null}function p(Q,ve,ze,Te,gt,Ze){var rt=ze.ref;return Q={$$typeof:E,type:Q,key:ve,props:ze,_owner:Te},(rt!==void 0?rt:null)!==null?Object.defineProperty(Q,"ref",{enumerable:!1,get:m}):Object.defineProperty(Q,"ref",{enumerable:!1,value:null}),Q._store={},Object.defineProperty(Q._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(Q,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(Q,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:gt}),Object.defineProperty(Q,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Ze}),Object.freeze&&(Object.freeze(Q.props),Object.freeze(Q)),Q}function v(Q,ve,ze,Te,gt,Ze){var rt=ve.children;if(rt!==void 0)if(Te)if(se(rt)){for(Te=0;Te<rt.length;Te++)g(rt[Te]);Object.freeze&&Object.freeze(rt)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else g(rt);if(X.call(ve,"key")){rt=i(Q);var hn=Object.keys(ve).filter(function(Dr){return Dr!=="key"});Te=0<hn.length?"{key: someKey, "+hn.join(": ..., ")+": ...}":"{key: someKey}",Ge[rt+Te]||(hn=0<hn.length?"{"+hn.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
31
+ let props = %s;
32
+ <%s {...props} />
33
+ React keys must be passed directly to JSX without using spread:
34
+ let props = %s;
35
+ <%s key={someKey} {...props} />`,Te,rt,hn,rt),Ge[rt+Te]=!0)}if(rt=null,ze!==void 0&&(r(ze),rt=""+ze),u(ve)&&(r(ve.key),rt=""+ve.key),"key"in ve){ze={};for(var an in ve)an!=="key"&&(ze[an]=ve[an])}else ze=ve;return rt&&d(ze,typeof Q=="function"?Q.displayName||Q.name||"Unknown":Q),p(Q,rt,ze,o(),gt,Ze)}function g(Q){y(Q)?Q._store&&(Q._store.validated=1):typeof Q=="object"&&Q!==null&&Q.$$typeof===H&&(Q._payload.status==="fulfilled"?y(Q._payload.value)&&Q._payload.value._store&&(Q._payload.value._store.validated=1):Q._store&&(Q._store.validated=1))}function y(Q){return typeof Q=="object"&&Q!==null&&Q.$$typeof===E}var w=gm(),E=Symbol.for("react.transitional.element"),S=Symbol.for("react.portal"),T=Symbol.for("react.fragment"),k=Symbol.for("react.strict_mode"),D=Symbol.for("react.profiler"),I=Symbol.for("react.consumer"),z=Symbol.for("react.context"),$=Symbol.for("react.forward_ref"),Z=Symbol.for("react.suspense"),W=Symbol.for("react.suspense_list"),B=Symbol.for("react.memo"),H=Symbol.for("react.lazy"),J=Symbol.for("react.activity"),ue=Symbol.for("react.client.reference"),q=w.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X=Object.prototype.hasOwnProperty,se=Array.isArray,Fe=console.createTask?console.createTask:function(){return null};w={react_stack_bottom_frame:function(Q){return Q()}};var ne,de={},ge=w.react_stack_bottom_frame.bind(w,l)(),je=Fe(s(l)),Ge={};Ch.Fragment=T,Ch.jsxDEV=function(Q,ve,ze,Te){var gt=1e4>q.recentlyCreatedOwnerStacks++;return v(Q,ve,ze,Te,gt?Error("react-stack-top-frame"):ge,gt?Fe(s(Q)):je)}})(),Ch}var iT;function g3(){return iT||(iT=1,_b.exports=p3()),_b.exports}var x=g3(),Y=gm();const sn=h3(Y);function em(i,e,r,s){const[o,l]=sn.useState(r);return sn.useEffect(()=>{let u=!1;return i().then(d=>{u||l(d)}),()=>{u=!0}},e),o}function ho(){const i=sn.useRef(null),[e]=Kb(i);return[e,i]}function Kb(i){const[e,r]=sn.useState(new DOMRect(0,0,10,10)),s=sn.useCallback(()=>{const o=i==null?void 0:i.current;o&&r(o.getBoundingClientRect())},[i]);return sn.useLayoutEffect(()=>{const o=i==null?void 0:i.current;if(!o)return;s();const l=new ResizeObserver(s);return l.observe(o),window.addEventListener("resize",s),()=>{l.disconnect(),window.removeEventListener("resize",s)}},[s,i]),[e,s]}function Nn(i){if(i<0||!isFinite(i))return"-";if(i===0)return"0";if(i<1e3)return i.toFixed(0)+"ms";const e=i/1e3;if(e<60)return e.toFixed(1)+"s";const r=e/60;if(r<60)return r.toFixed(1)+"m";const s=r/60;return s<24?s.toFixed(1)+"h":(s/24).toFixed(1)+"d"}function y3(i){if(i<0||!isFinite(i))return"-";if(i===0)return"0";if(i<1e3)return i.toFixed(0);const e=i/1024;if(e<1e3)return e.toFixed(1)+"K";const r=e/1024;return r<1e3?r.toFixed(1)+"M":(r/1024).toFixed(1)+"G"}function SN(i,e,r,s,o){let l=0,u=i.length;for(;l<u;){const d=l+u>>1;r(e,i[d])>=0?l=d+1:u=d}return u}function sT(i){const e=document.createElement("textarea");e.style.position="absolute",e.style.zIndex="-1000",e.value=i,document.body.appendChild(e),e.select(),document.execCommand("copy"),e.remove()}function Nr(i,e){i&&(e=so.getObject(i,e));const[r,s]=sn.useState(e),o=sn.useCallback(l=>{i?so.setObject(i,l):s(l)},[i,s]);return sn.useEffect(()=>{if(i){const l=()=>s(so.getObject(i,e));return so.onChangeEmitter.addEventListener(i,l),()=>so.onChangeEmitter.removeEventListener(i,l)}},[e,i]),[r,o]}const Wb=new Map,EN=new Map;let tm;function ra(i,e){const[r,s]=sn.useState();EN.set(i,{setter:s,defaultValue:e});const o=sn.useCallback(l=>{const u=Wb.get(tm||"default")||{};u[i]=l,Wb.set(tm||"default",u),s(l)},[i]);return[r,o]}function b3(i){if(tm===i)return;tm=i;const e=Wb.get(i)||{};for(const[r,s]of EN.entries())s.setter(e[r]||s.defaultValue)}class v3{constructor(){this.onChangeEmitter=new EventTarget}getString(e,r){return localStorage[e]||r}setString(e,r){var s;localStorage[e]=r,this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}getObject(e,r){if(!localStorage[e])return r;try{return JSON.parse(localStorage[e])}catch{return r}}setObject(e,r){var s;localStorage[e]=JSON.stringify(r),this.onChangeEmitter.dispatchEvent(new Event(e)),(s=window.saveSettings)==null||s.call(window)}}const so=new v3;function At(...i){return i.filter(Boolean).join(" ")}function xN(i){i&&(i!=null&&i.scrollIntoViewIfNeeded?i.scrollIntoViewIfNeeded(!1):i==null||i.scrollIntoView())}const aT="\\u0000-\\u0020\\u007f-\\u009f",TN=new RegExp("(?:[a-zA-Z][a-zA-Z0-9+.-]{2,}:\\/\\/|www\\.)[^\\s"+aT+'"]{2,}[^\\s'+aT+`"')}\\],:;.!?]`,"ug");function w3(){const[i,e]=sn.useState(!1),r=sn.useCallback(()=>{const s=[];return e(o=>(s.push(setTimeout(()=>e(!1),1e3)),o?(s.push(setTimeout(()=>e(!0),50)),!1):!0)),()=>s.forEach(clearTimeout)},[e]);return[i,r]}const _3="system",NN="theme",S3=[{label:"Dark mode",value:"dark-mode"},{label:"Light mode",value:"light-mode"},{label:"System",value:"system"}],AN=window.matchMedia("(prefers-color-scheme: dark)");function xj(){document.playwrightThemeInitialized||(document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",i=>{i.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",i=>{document.body.classList.add("inactive")},!1),Qb(Zb()),AN.addEventListener("change",()=>{Qb(Zb())}))}const Sv=new Set;function Qb(i){const e=E3(),r=i==="system"?AN.matches?"dark-mode":"light-mode":i;if(e!==r){e&&document.documentElement.classList.remove(e),document.documentElement.classList.add(r);for(const s of Sv)s(r)}}function Tj(i){Sv.add(i)}function Nj(i){Sv.delete(i)}function Zb(){return so.getString(NN,_3)}function E3(){return document.documentElement.classList.contains("dark-mode")?"dark-mode":document.documentElement.classList.contains("light-mode")?"light-mode":null}function x3(){const[i,e]=sn.useState(Zb());return sn.useEffect(()=>{so.setString(NN,i),Qb(i)},[i]),[i,e]}var Eb={exports:{}},Au={},xb={exports:{}},Tb={},oT;function T3(){return oT||(oT=1,(function(i){/**
36
+ * @license React
37
+ * scheduler.development.js
38
+ *
39
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */(function(){function e(){if($=!1,H){var ne=i.unstable_now();q=ne;var de=!0;try{e:{I=!1,z&&(z=!1,W(J),J=-1),D=!0;var ge=k;try{t:{for(u(ne),T=s(w);T!==null&&!(T.expirationTime>ne&&m());){var je=T.callback;if(typeof je=="function"){T.callback=null,k=T.priorityLevel;var Ge=je(T.expirationTime<=ne);if(ne=i.unstable_now(),typeof Ge=="function"){T.callback=Ge,u(ne),de=!0;break t}T===s(w)&&o(w),u(ne)}else o(w);T=s(w)}if(T!==null)de=!0;else{var Q=s(E);Q!==null&&p(d,Q.startTime-ne),de=!1}}break e}finally{T=null,k=ge,D=!1}de=void 0}}finally{de?X():H=!1}}}function r(ne,de){var ge=ne.length;ne.push(de);e:for(;0<ge;){var je=ge-1>>>1,Ge=ne[je];if(0<l(Ge,de))ne[je]=de,ne[ge]=Ge,ge=je;else break e}}function s(ne){return ne.length===0?null:ne[0]}function o(ne){if(ne.length===0)return null;var de=ne[0],ge=ne.pop();if(ge!==de){ne[0]=ge;e:for(var je=0,Ge=ne.length,Q=Ge>>>1;je<Q;){var ve=2*(je+1)-1,ze=ne[ve],Te=ve+1,gt=ne[Te];if(0>l(ze,ge))Te<Ge&&0>l(gt,ze)?(ne[je]=gt,ne[Te]=ge,je=Te):(ne[je]=ze,ne[ve]=ge,je=ve);else if(Te<Ge&&0>l(gt,ge))ne[je]=gt,ne[Te]=ge,je=Te;else break e}}return de}function l(ne,de){var ge=ne.sortIndex-de.sortIndex;return ge!==0?ge:ne.id-de.id}function u(ne){for(var de=s(E);de!==null;){if(de.callback===null)o(E);else if(de.startTime<=ne)o(E),de.sortIndex=de.expirationTime,r(w,de);else break;de=s(E)}}function d(ne){if(z=!1,u(ne),!I)if(s(w)!==null)I=!0,H||(H=!0,X());else{var de=s(E);de!==null&&p(d,de.startTime-ne)}}function m(){return $?!0:!(i.unstable_now()-q<ue)}function p(ne,de){J=Z(function(){ne(i.unstable_now())},de)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),i.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var v=performance;i.unstable_now=function(){return v.now()}}else{var g=Date,y=g.now();i.unstable_now=function(){return g.now()-y}}var w=[],E=[],S=1,T=null,k=3,D=!1,I=!1,z=!1,$=!1,Z=typeof setTimeout=="function"?setTimeout:null,W=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null,H=!1,J=-1,ue=5,q=-1;if(typeof B=="function")var X=function(){B(e)};else if(typeof MessageChannel<"u"){var se=new MessageChannel,Fe=se.port2;se.port1.onmessage=e,X=function(){Fe.postMessage(null)}}else X=function(){Z(e,0)};i.unstable_IdlePriority=5,i.unstable_ImmediatePriority=1,i.unstable_LowPriority=4,i.unstable_NormalPriority=3,i.unstable_Profiling=null,i.unstable_UserBlockingPriority=2,i.unstable_cancelCallback=function(ne){ne.callback=null},i.unstable_forceFrameRate=function(ne){0>ne||125<ne?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ue=0<ne?Math.floor(1e3/ne):5},i.unstable_getCurrentPriorityLevel=function(){return k},i.unstable_next=function(ne){switch(k){case 1:case 2:case 3:var de=3;break;default:de=k}var ge=k;k=de;try{return ne()}finally{k=ge}},i.unstable_requestPaint=function(){$=!0},i.unstable_runWithPriority=function(ne,de){switch(ne){case 1:case 2:case 3:case 4:case 5:break;default:ne=3}var ge=k;k=ne;try{return de()}finally{k=ge}},i.unstable_scheduleCallback=function(ne,de,ge){var je=i.unstable_now();switch(typeof ge=="object"&&ge!==null?(ge=ge.delay,ge=typeof ge=="number"&&0<ge?je+ge:je):ge=je,ne){case 1:var Ge=-1;break;case 2:Ge=250;break;case 5:Ge=1073741823;break;case 4:Ge=1e4;break;default:Ge=5e3}return Ge=ge+Ge,ne={id:S++,callback:de,priorityLevel:ne,startTime:ge,expirationTime:Ge,sortIndex:-1},ge>je?(ne.sortIndex=ge,r(E,ne),s(w)===null&&ne===s(E)&&(z?(W(J),J=-1):z=!0,p(d,ge-je))):(ne.sortIndex=Ge,r(w,ne),I||D||(I=!0,H||(H=!0,X()))),ne},i.unstable_shouldYield=m,i.unstable_wrapCallback=function(ne){var de=k;return function(){var ge=k;k=de;try{return ne.apply(this,arguments)}finally{k=ge}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})(Tb)),Tb}var lT;function N3(){return lT||(lT=1,xb.exports=T3()),xb.exports}var Nb={exports:{}},un={},cT;function A3(){if(cT)return un;cT=1;/**
44
+ * @license React
45
+ * react-dom.development.js
46
+ *
47
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
48
+ *
49
+ * This source code is licensed under the MIT license found in the
50
+ * LICENSE file in the root directory of this source tree.
51
+ */return(function(){function i(){}function e(g){return""+g}function r(g,y,w){var E=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{e(E);var S=!1}catch{S=!0}return S&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol=="function"&&Symbol.toStringTag&&E[Symbol.toStringTag]||E.constructor.name||"Object"),e(E)),{$$typeof:p,key:E==null?null:""+E,children:g,containerInfo:y,implementation:w}}function s(g,y){if(g==="font")return"";if(typeof y=="string")return y==="use-credentials"?y:""}function o(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":'something with type "'+typeof g+'"'}function l(g){return g===null?"`null`":g===void 0?"`undefined`":g===""?"an empty string":typeof g=="string"?JSON.stringify(g):typeof g=="number"?"`"+g+"`":'something with type "'+typeof g+'"'}function u(){var g=v.H;return g===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
52
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
53
+ 2. You might be breaking the Rules of Hooks
54
+ 3. You might have more than one copy of React in the same app
55
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),g}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var d=gm(),m={d:{f:i,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},p=Symbol.for("react.portal"),v=d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),un.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=m,un.createPortal=function(g,y){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!y||y.nodeType!==1&&y.nodeType!==9&&y.nodeType!==11)throw Error("Target container is not a DOM element.");return r(g,y,null,w)},un.flushSync=function(g){var y=v.T,w=m.p;try{if(v.T=null,m.p=2,g)return g()}finally{v.T=y,m.p=w,m.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},un.preconnect=function(g,y){typeof g=="string"&&g?y!=null&&typeof y!="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",l(y)):y!=null&&typeof y.crossOrigin!="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",o(y.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g)),typeof g=="string"&&(y?(y=y.crossOrigin,y=typeof y=="string"?y==="use-credentials"?y:"":void 0):y=null,m.d.C(g,y))},un.prefetchDNS=function(g){if(typeof g!="string"||!g)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g));else if(1<arguments.length){var y=arguments[1];typeof y=="object"&&y.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(y)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",l(y))}typeof g=="string"&&m.d.D(g)},un.preinit=function(g,y){if(typeof g=="string"&&g?y==null||typeof y!="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",l(y)):y.as!=="style"&&y.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',l(y.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",o(g)),typeof g=="string"&&y&&typeof y.as=="string"){var w=y.as,E=s(w,y.crossOrigin),S=typeof y.integrity=="string"?y.integrity:void 0,T=typeof y.fetchPriority=="string"?y.fetchPriority:void 0;w==="style"?m.d.S(g,typeof y.precedence=="string"?y.precedence:void 0,{crossOrigin:E,integrity:S,fetchPriority:T}):w==="script"&&m.d.X(g,{crossOrigin:E,integrity:S,fetchPriority:T,nonce:typeof y.nonce=="string"?y.nonce:void 0})}},un.preinitModule=function(g,y){var w="";if(typeof g=="string"&&g||(w+=" The `href` argument encountered was "+o(g)+"."),y!==void 0&&typeof y!="object"?w+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&y.as!=="script"&&(w+=" The `as` option encountered was "+l(y.as)+"."),w)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",w);else switch(w=y&&typeof y.as=="string"?y.as:"script",w){case"script":break;default:w=l(w),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',w,g)}typeof g=="string"&&(typeof y=="object"&&y!==null?(y.as==null||y.as==="script")&&(w=s(y.as,y.crossOrigin),m.d.M(g,{crossOrigin:w,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0})):y==null&&m.d.M(g))},un.preload=function(g,y){var w="";if(typeof g=="string"&&g||(w+=" The `href` argument encountered was "+o(g)+"."),y==null||typeof y!="object"?w+=" The `options` argument encountered was "+o(y)+".":typeof y.as=="string"&&y.as||(w+=" The `as` option encountered was "+o(y.as)+"."),w&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',w),typeof g=="string"&&typeof y=="object"&&y!==null&&typeof y.as=="string"){w=y.as;var E=s(w,y.crossOrigin);m.d.L(g,w,{crossOrigin:E,integrity:typeof y.integrity=="string"?y.integrity:void 0,nonce:typeof y.nonce=="string"?y.nonce:void 0,type:typeof y.type=="string"?y.type:void 0,fetchPriority:typeof y.fetchPriority=="string"?y.fetchPriority:void 0,referrerPolicy:typeof y.referrerPolicy=="string"?y.referrerPolicy:void 0,imageSrcSet:typeof y.imageSrcSet=="string"?y.imageSrcSet:void 0,imageSizes:typeof y.imageSizes=="string"?y.imageSizes:void 0,media:typeof y.media=="string"?y.media:void 0})}},un.preloadModule=function(g,y){var w="";typeof g=="string"&&g||(w+=" The `href` argument encountered was "+o(g)+"."),y!==void 0&&typeof y!="object"?w+=" The `options` argument encountered was "+o(y)+".":y&&"as"in y&&typeof y.as!="string"&&(w+=" The `as` option encountered was "+o(y.as)+"."),w&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',w),typeof g=="string"&&(y?(w=s(y.as,y.crossOrigin),m.d.m(g,{as:typeof y.as=="string"&&y.as!=="script"?y.as:void 0,crossOrigin:w,integrity:typeof y.integrity=="string"?y.integrity:void 0})):m.d.m(g))},un.requestFormReset=function(g){m.d.r(g)},un.unstable_batchedUpdates=function(g,y){return g(y)},un.useFormState=function(g,y,w){return u().useFormState(g,y,w)},un.useFormStatus=function(){return u().useHostTransitionStatus()},un.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),un}var uT;function C3(){return uT||(uT=1,Nb.exports=A3()),Nb.exports}var dT;function k3(){if(dT)return Au;dT=1;/**
56
+ * @license React
57
+ * react-dom-client.development.js
58
+ *
59
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */return(function(){function i(t,n){for(t=t.memoizedState;t!==null&&0<n;)t=t.next,n--;return t}function e(t,n,a,c){if(a>=n.length)return c;var f=n[a],h=Ht(t)?t.slice():Ue({},t);return h[f]=e(t[f],n,a+1,c),h}function r(t,n,a){if(n.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var c=0;c<a.length-1;c++)if(n[c]!==a[c]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return s(t,n,a,0)}}function s(t,n,a,c){var f=n[c],h=Ht(t)?t.slice():Ue({},t);return c+1===n.length?(h[a[c]]=h[f],Ht(h)?h.splice(f,1):delete h[f]):h[f]=s(t[f],n,a,c+1),h}function o(t,n,a){var c=n[a],f=Ht(t)?t.slice():Ue({},t);return a+1===n.length?(Ht(f)?f.splice(c,1):delete f[c],f):(f[c]=o(t[c],n,a+1),f)}function l(){return!1}function u(){return null}function d(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function m(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function p(){}function v(){}function g(t){var n=[];return t.forEach(function(a){n.push(a)}),n.sort().join(", ")}function y(t,n,a,c){return new Qk(t,n,a,c)}function w(t,n){t.context===Vs&&(Ig(t.current,2,n,t,null,null),Mo())}function E(t,n){if(mr!==null){var a=n.staleFamilies;n=n.updatedFamilies,_c(),ow(t.current,n,a),Mo()}}function S(t){mr=t}function T(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function k(t){var n=t,a=t;if(t.alternate)for(;n.return;)n=n.return;else{t=n;do n=t,(n.flags&4098)!==0&&(a=n.return),t=n.return;while(t)}return n.tag===3?a:null}function D(t){if(t.tag===13){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function I(t){if(t.tag===31){var n=t.memoizedState;if(n===null&&(t=t.alternate,t!==null&&(n=t.memoizedState)),n!==null)return n.dehydrated}return null}function z(t){if(k(t)!==t)throw Error("Unable to find node on an unmounted component.")}function $(t){var n=t.alternate;if(!n){if(n=k(t),n===null)throw Error("Unable to find node on an unmounted component.");return n!==t?null:t}for(var a=t,c=n;;){var f=a.return;if(f===null)break;var h=f.alternate;if(h===null){if(c=f.return,c!==null){a=c;continue}break}if(f.child===h.child){for(h=f.child;h;){if(h===a)return z(f),t;if(h===c)return z(f),n;h=h.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==c.return)a=f,c=h;else{for(var b=!1,_=f.child;_;){if(_===a){b=!0,a=f,c=h;break}if(_===c){b=!0,c=f,a=h;break}_=_.sibling}if(!b){for(_=h.child;_;){if(_===a){b=!0,a=h,c=f;break}if(_===c){b=!0,c=h,a=f;break}_=_.sibling}if(!b)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==c)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?t:n}function Z(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t;for(t=t.child;t!==null;){if(n=Z(t),n!==null)return n;t=t.sibling}return null}function W(t){return t===null||typeof t!="object"?null:(t=m1&&t[m1]||t["@@iterator"],typeof t=="function"?t:null)}function B(t){if(t==null)return null;if(typeof t=="function")return t.$$typeof===wR?null:t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Ho:return"Fragment";case Yg:return"Profiler";case Sf:return"StrictMode";case Jg:return"Suspense";case Kg:return"SuspenseList";case Wg:return"Activity"}if(typeof t=="object")switch(typeof t.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),t.$$typeof){case $o:return"Portal";case gi:return t.displayName||"Context";case Xg:return(t._context.displayName||"Context")+".Consumer";case Rc:var n=t.render;return t=t.displayName,t||(t=n.displayName||n.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Ef:return n=t.displayName||null,n!==null?n:B(t.type)||"Memo";case Wn:n=t._payload,t=t._init;try{return B(t(n))}catch{}}return null}function H(t){return typeof t.tag=="number"?J(t):typeof t.name=="string"?t.name:null}function J(t){var n=t.type;switch(t.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(n._context.displayName||"Context")+".Consumer";case 10:return n.displayName||"Context";case 18:return"DehydratedFragment";case 11:return t=n.render,t=t.displayName||t.name||"",n.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return n;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return B(n);case 8:return n===Sf?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof n=="function")return n.displayName||n.name||null;if(typeof n=="string")return n;break;case 29:if(n=t._debugInfo,n!=null){for(var a=n.length-1;0<=a;a--)if(typeof n[a].name=="string")return n[a].name}if(t.return!==null)return J(t.return)}return null}function ue(t){return{current:t}}function q(t,n){0>Pi?console.error("Unexpected pop."):(n!==Zg[Pi]&&console.error("Unexpected Fiber popped."),t.current=Qg[Pi],Qg[Pi]=null,Zg[Pi]=null,Pi--)}function X(t,n,a){Pi++,Qg[Pi]=t.current,Zg[Pi]=a,t.current=n}function se(t){return t===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),t}function Fe(t,n){X(Rs,n,t),X(Mc,t,t),X(Ds,null,t);var a=n.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",n=(n=n.documentElement)&&(n=n.namespaceURI)?$S(n):rs;break;default:if(a=n.tagName,n=n.namespaceURI)n=$S(n),n=HS(n,a);else switch(a){case"svg":n=vl;break;case"math":n=_h;break;default:n=rs}}a=a.toLowerCase(),a=M0(null,a),a={context:n,ancestorInfo:a},q(Ds,t),X(Ds,a,t)}function ne(t){q(Ds,t),q(Mc,t),q(Rs,t)}function de(){return se(Ds.current)}function ge(t){t.memoizedState!==null&&X(xf,t,t);var n=se(Ds.current),a=t.type,c=HS(n.context,a);a=M0(n.ancestorInfo,a),c={context:c,ancestorInfo:a},n!==c&&(X(Mc,t,t),X(Ds,c,t))}function je(t){Mc.current===t&&(q(Ds,t),q(Mc,t)),xf.current===t&&(q(xf,t),Eu._currentValue=to)}function Ge(){}function Q(){if(Oc===0){p1=console.log,g1=console.info,y1=console.warn,b1=console.error,v1=console.group,w1=console.groupCollapsed,_1=console.groupEnd;var t={configurable:!0,enumerable:!0,value:Ge,writable:!0};Object.defineProperties(console,{info:t,log:t,warn:t,error:t,group:t,groupCollapsed:t,groupEnd:t})}Oc++}function ve(){if(Oc--,Oc===0){var t={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:Ue({},t,{value:p1}),info:Ue({},t,{value:g1}),warn:Ue({},t,{value:y1}),error:Ue({},t,{value:b1}),group:Ue({},t,{value:v1}),groupCollapsed:Ue({},t,{value:w1}),groupEnd:Ue({},t,{value:_1})})}0>Oc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ze(t){var n=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,t=t.stack,Error.prepareStackTrace=n,t.startsWith(`Error: react-stack-top-frame
64
+ `)&&(t=t.slice(29)),n=t.indexOf(`
65
+ `),n!==-1&&(t=t.slice(n+1)),n=t.indexOf("react_stack_bottom_frame"),n!==-1&&(n=t.lastIndexOf(`
66
+ `,n)),n!==-1)t=t.slice(0,n);else return"";return t}function Te(t){if(ey===void 0)try{throw Error()}catch(a){var n=a.stack.trim().match(/\n( *(at )?)/);ey=n&&n[1]||"",S1=-1<a.stack.indexOf(`
67
+ at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
68
+ `+ey+t+S1}function gt(t,n){if(!t||ty)return"";var a=ny.get(t);if(a!==void 0)return a;ty=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var c=null;c=G.H,G.H=null,Q();try{var f={DetermineComponentFrameRoot:function(){try{if(n){var M=function(){throw Error()};if(Object.defineProperty(M.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(M,[])}catch(ae){var P=ae}Reflect.construct(t,[],M)}else{try{M.call()}catch(ae){P=ae}t.call(M.prototype)}}else{try{throw Error()}catch(ae){P=ae}(M=t())&&typeof M.catch=="function"&&M.catch(function(){})}}catch(ae){if(ae&&P&&typeof ae.stack=="string")return[ae.stack,P.stack]}return[null,null]}};f.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var h=Object.getOwnPropertyDescriptor(f.DetermineComponentFrameRoot,"name");h&&h.configurable&&Object.defineProperty(f.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var b=f.DetermineComponentFrameRoot(),_=b[0],N=b[1];if(_&&N){var A=_.split(`
69
+ `),j=N.split(`
70
+ `);for(b=h=0;h<A.length&&!A[h].includes("DetermineComponentFrameRoot");)h++;for(;b<j.length&&!j[b].includes("DetermineComponentFrameRoot");)b++;if(h===A.length||b===j.length)for(h=A.length-1,b=j.length-1;1<=h&&0<=b&&A[h]!==j[b];)b--;for(;1<=h&&0<=b;h--,b--)if(A[h]!==j[b]){if(h!==1||b!==1)do if(h--,b--,0>b||A[h]!==j[b]){var V=`
71
+ `+A[h].replace(" at new "," at ");return t.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",t.displayName)),typeof t=="function"&&ny.set(t,V),V}while(1<=h&&0<=b);break}}}finally{ty=!1,G.H=c,ve(),Error.prepareStackTrace=a}return A=(A=t?t.displayName||t.name:"")?Te(A):"",typeof t=="function"&&ny.set(t,A),A}function Ze(t,n){switch(t.tag){case 26:case 27:case 5:return Te(t.type);case 16:return Te("Lazy");case 13:return t.child!==n&&n!==null?Te("Suspense Fallback"):Te("Suspense");case 19:return Te("SuspenseList");case 0:case 15:return gt(t.type,!1);case 11:return gt(t.type.render,!1);case 1:return gt(t.type,!0);case 31:return Te("Activity");default:return""}}function rt(t){try{var n="",a=null;do{n+=Ze(t,a);var c=t._debugInfo;if(c)for(var f=c.length-1;0<=f;f--){var h=c[f];if(typeof h.name=="string"){var b=n;e:{var _=h.name,N=h.env,A=h.debugLocation;if(A!=null){var j=ze(A),V=j.lastIndexOf(`
72
+ `),M=V===-1?j:j.slice(V+1);if(M.indexOf(_)!==-1){var P=`
73
+ `+M;break e}}P=Te(_+(N?" ["+N+"]":""))}n=b+P}}a=t,t=t.return}while(t);return n}catch(ae){return`
74
+ Error generating stack: `+ae.message+`
75
+ `+ae.stack}}function hn(t){return(t=t?t.displayName||t.name:"")?Te(t):""}function an(){if(Qn===null)return null;var t=Qn._debugOwner;return t!=null?H(t):null}function Dr(){if(Qn===null)return"";var t=Qn;try{var n="";switch(t.tag===6&&(t=t.return),t.tag){case 26:case 27:case 5:n+=Te(t.type);break;case 13:n+=Te("Suspense");break;case 19:n+=Te("SuspenseList");break;case 31:n+=Te("Activity");break;case 30:case 0:case 15:case 1:t._debugOwner||n!==""||(n+=hn(t.type));break;case 11:t._debugOwner||n!==""||(n+=hn(t.type.render))}for(;t;)if(typeof t.tag=="number"){var a=t;t=a._debugOwner;var c=a._debugStack;if(t&&c){var f=ze(c);f!==""&&(n+=`
76
+ `+f)}}else if(t.debugStack!=null){var h=t.debugStack;(t=t.owner)&&h&&(n+=`
77
+ `+ze(h))}else break;var b=n}catch(_){b=`
78
+ Error generating stack: `+_.message+`
79
+ `+_.stack}return b}function le(t,n,a,c,f,h,b){var _=Qn;Cn(t);try{return t!==null&&t._debugTask?t._debugTask.run(n.bind(null,a,c,f,h,b)):n(a,c,f,h,b)}finally{Cn(_)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Cn(t){G.getCurrentStack=t===null?null:Dr,yi=!1,Qn=t}function Xr(t){return typeof Symbol=="function"&&Symbol.toStringTag&&t[Symbol.toStringTag]||t.constructor.name||"Object"}function $t(t){try{return Rr(t),!1}catch{return!0}}function Rr(t){return""+t}function Xe(t,n){if($t(t))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",n,Xr(t)),Rr(t)}function qt(t,n){if($t(t))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",n,Xr(t)),Rr(t)}function Jr(t){if($t(t))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Xr(t)),Rr(t)}function ha(t){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var n=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(n.isDisabled)return!0;if(!n.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{zo=n.inject(t),ln=n}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return!!n.checkDCE}function fe(t){if(typeof AR=="function"&&CR(t),ln&&typeof ln.setStrictMode=="function")try{ln.setStrictMode(zo,t)}catch(n){bi||(bi=!0,console.error("React instrumentation encountered an error: %o",n))}}function ms(t){return t>>>=0,t===0?32:31-(kR(t)/DR|0)|0}function Wt(t){var n=t&42;if(n!==0)return n;switch(t&-t){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 t&261888;case 262144:case 524288:case 1048576:case 2097152:return t&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return t&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return console.error("Should have found matching lanes. This is a bug in React."),t}}function Mi(t,n,a){var c=t.pendingLanes;if(c===0)return 0;var f=0,h=t.suspendedLanes,b=t.pingedLanes;t=t.warmLanes;var _=c&134217727;return _!==0?(c=_&~h,c!==0?f=Wt(c):(b&=_,b!==0?f=Wt(b):a||(a=_&~t,a!==0&&(f=Wt(a))))):(_=c&~h,_!==0?f=Wt(_):b!==0?f=Wt(b):a||(a=c&~t,a!==0&&(f=Wt(a)))),f===0?0:n!==0&&n!==f&&(n&h)===0&&(h=f&-f,a=n&-n,h>=a||h===32&&(a&4194048)!==0)?n:f}function Kr(t,n){return(t.pendingLanes&~(t.suspendedLanes&~t.pingedLanes)&n)===0}function yo(t,n){switch(t){case 1:case 2:case 4:case 8:case 64:return n+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 n+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 console.error("Should have found matching lanes. This is a bug in React."),-1}}function ma(){var t=Af;return Af<<=1,(Af&62914560)===0&&(Af=4194304),t}function ps(t){for(var n=[],a=0;31>a;a++)n.push(t);return n}function sr(t,n){t.pendingLanes|=n,n!==268435456&&(t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0)}function bo(t,n,a,c,f,h){var b=t.pendingLanes;t.pendingLanes=a,t.suspendedLanes=0,t.pingedLanes=0,t.warmLanes=0,t.expiredLanes&=a,t.entangledLanes&=a,t.errorRecoveryDisabledLanes&=a,t.shellSuspendCounter=0;var _=t.entanglements,N=t.expirationTimes,A=t.hiddenUpdates;for(a=b&~a;0<a;){var j=31-gn(a),V=1<<j;_[j]=0,N[j]=-1;var M=A[j];if(M!==null)for(A[j]=null,j=0;j<M.length;j++){var P=M[j];P!==null&&(P.lane&=-536870913)}a&=~V}c!==0&&pa(t,c,0),h!==0&&f===0&&t.tag!==0&&(t.suspendedLanes|=h&~(b&~n))}function pa(t,n,a){t.pendingLanes|=n,t.suspendedLanes&=~n;var c=31-gn(n);t.entangledLanes|=n,t.entanglements[c]=t.entanglements[c]|1073741824|a&261930}function ga(t,n){var a=t.entangledLanes|=n;for(t=t.entanglements;a;){var c=31-gn(a),f=1<<c;f&n|t[c]&n&&(t[c]|=n),a&=~f}}function Bn(t,n){var a=n&-n;return a=(a&42)!==0?1:ar(a),(a&(t.suspendedLanes|n))!==0?0:a}function ar(t){switch(t){case 2:t=1;break;case 8:t=4;break;case 32:t=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:t=128;break;case 268435456:t=134217728;break;default:t=0}return t}function or(t,n,a){if(vi)for(t=t.pendingUpdatersLaneMap;0<a;){var c=31-gn(a),f=1<<c;t[c].add(n),a&=~f}}function gs(t,n){if(vi)for(var a=t.pendingUpdatersLaneMap,c=t.memoizedUpdaters;0<n;){var f=31-gn(n);t=1<<f,f=a[f],0<f.size&&(f.forEach(function(h){var b=h.alternate;b!==null&&c.has(b)||c.add(h)}),f.clear()),n&=~t}}function ys(t){return t&=-t,dr<t?wi<t?(t&134217727)!==0?Bi:Cf:wi:dr}function Wr(){var t=Ke.p;return t!==0?t:(t=window.event,t===void 0?Bi:o1(t.type))}function C(t,n){var a=Ke.p;try{return Ke.p=t,n()}finally{Ke.p=a}}function L(t){delete t[tn],delete t[yn],delete t[oy],delete t[RR],delete t[MR]}function ee(t){var n=t[tn];if(n)return n;for(var a=t.parentNode;a;){if(n=a[Os]||a[tn]){if(a=n.alternate,n.child!==null||a!==null&&a.child!==null)for(t=YS(t);t!==null;){if(a=t[tn])return a;t=YS(t)}return n}t=a,a=t.parentNode}return null}function ie(t){if(t=t[tn]||t[Os]){var n=t.tag;if(n===5||n===6||n===13||n===31||n===26||n===27||n===3)return t}return null}function he(t){var n=t.tag;if(n===5||n===26||n===27||n===6)return t.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function Ne(t){var n=t[E1];return n||(n=t[E1]={hoistableStyles:new Map,hoistableScripts:new Map}),n}function pe(t){t[Lc]=!0}function Be(t,n){Ae(t,n),Ae(t+"Capture",n)}function Ae(t,n){Ma[t]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",t),Ma[t]=n;var a=t.toLowerCase();for(ly[a]=t,t==="onDoubleClick"&&(ly.ondblclick=t),t=0;t<n.length;t++)x1.add(n[t])}function mn(t,n){OR[n.type]||n.onChange||n.onInput||n.readOnly||n.disabled||n.value==null||console.error(t==="select"?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),n.onChange||n.readOnly||n.disabled||n.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Qr(t){return jr.call(N1,t)?!0:jr.call(T1,t)?!1:LR.test(t)?N1[t]=!0:(T1[t]=!0,console.error("Invalid attribute name: `%s`",t),!1)}function hd(t,n,a){if(Qr(n)){if(!t.hasAttribute(n)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}return t=t.getAttribute(n),t===""&&a===!0?!0:(Xe(a,n),t===""+a?a:t)}}function vo(t,n,a){if(Qr(n))if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":t.removeAttribute(n);return;case"boolean":var c=n.toLowerCase().slice(0,5);if(c!=="data-"&&c!=="aria-"){t.removeAttribute(n);return}}Xe(a,n),t.setAttribute(n,""+a)}}function md(t,n,a){if(a===null)t.removeAttribute(n);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(n);return}Xe(a,n),t.setAttribute(n,""+a)}}function Oi(t,n,a,c){if(c===null)t.removeAttribute(a);else{switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":t.removeAttribute(a);return}Xe(c,a),t.setAttributeNS(n,a,""+c)}}function lr(t){switch(typeof t){case"bigint":case"boolean":case"number":case"string":case"undefined":return t;case"object":return Jr(t),t;default:return""}}function b0(t){var n=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(n==="checkbox"||n==="radio")}function kk(t,n,a){var c=Object.getOwnPropertyDescriptor(t.constructor.prototype,n);if(!t.hasOwnProperty(n)&&typeof c<"u"&&typeof c.get=="function"&&typeof c.set=="function"){var f=c.get,h=c.set;return Object.defineProperty(t,n,{configurable:!0,get:function(){return f.call(this)},set:function(b){Jr(b),a=""+b,h.call(this,b)}}),Object.defineProperty(t,n,{enumerable:c.enumerable}),{getValue:function(){return a},setValue:function(b){Jr(b),a=""+b},stopTracking:function(){t._valueTracker=null,delete t[n]}}}}function Im(t){if(!t._valueTracker){var n=b0(t)?"checked":"value";t._valueTracker=kk(t,n,""+t[n])}}function v0(t){if(!t)return!1;var n=t._valueTracker;if(!n)return!0;var a=n.getValue(),c="";return t&&(c=b0(t)?t.checked?"true":"false":t.value),t=c,t!==a?(n.setValue(t),!0):!1}function pd(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function cr(t){return t.replace(UR,function(n){return"\\"+n.charCodeAt(0).toString(16)+" "})}function w0(t,n){n.checked===void 0||n.defaultChecked===void 0||C1||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",an()||"A component",n.type),C1=!0),n.value===void 0||n.defaultValue===void 0||A1||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",an()||"A component",n.type),A1=!0)}function zm(t,n,a,c,f,h,b,_){t.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?(Xe(b,"type"),t.type=b):t.removeAttribute("type"),n!=null?b==="number"?(n===0&&t.value===""||t.value!=n)&&(t.value=""+lr(n)):t.value!==""+lr(n)&&(t.value=""+lr(n)):b!=="submit"&&b!=="reset"||t.removeAttribute("value"),n!=null?Pm(t,b,lr(n)):a!=null?Pm(t,b,lr(a)):c!=null&&t.removeAttribute("value"),f==null&&h!=null&&(t.defaultChecked=!!h),f!=null&&(t.checked=f&&typeof f!="function"&&typeof f!="symbol"),_!=null&&typeof _!="function"&&typeof _!="symbol"&&typeof _!="boolean"?(Xe(_,"name"),t.name=""+lr(_)):t.removeAttribute("name")}function _0(t,n,a,c,f,h,b,_){if(h!=null&&typeof h!="function"&&typeof h!="symbol"&&typeof h!="boolean"&&(Xe(h,"type"),t.type=h),n!=null||a!=null){if(!(h!=="submit"&&h!=="reset"||n!=null)){Im(t);return}a=a!=null?""+lr(a):"",n=n!=null?""+lr(n):a,_||n===t.value||(t.value=n),t.defaultValue=n}c=c??f,c=typeof c!="function"&&typeof c!="symbol"&&!!c,t.checked=_?t.checked:!!c,t.defaultChecked=!!c,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(Xe(b,"name"),t.name=b),Im(t)}function Pm(t,n,a){n==="number"&&pd(t.ownerDocument)===t||t.defaultValue===""+a||(t.defaultValue=""+a)}function S0(t,n){n.value==null&&(typeof n.children=="object"&&n.children!==null?Gg.Children.forEach(n.children,function(a){a==null||typeof a=="string"||typeof a=="number"||typeof a=="bigint"||D1||(D1=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):n.dangerouslySetInnerHTML==null||R1||(R1=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),n.selected==null||k1||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),k1=!0)}function E0(){var t=an();return t?`
80
+
81
+ Check the render method of \``+t+"`.":""}function wo(t,n,a,c){if(t=t.options,n){n={};for(var f=0;f<a.length;f++)n["$"+a[f]]=!0;for(a=0;a<t.length;a++)f=n.hasOwnProperty("$"+t[a].value),t[a].selected!==f&&(t[a].selected=f),f&&c&&(t[a].defaultSelected=!0)}else{for(a=""+lr(a),n=null,f=0;f<t.length;f++){if(t[f].value===a){t[f].selected=!0,c&&(t[f].defaultSelected=!0);return}n!==null||t[f].disabled||(n=t[f])}n!==null&&(n.selected=!0)}}function x0(t,n){for(t=0;t<O1.length;t++){var a=O1[t];if(n[a]!=null){var c=Ht(n[a]);n.multiple&&!c?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,E0()):!n.multiple&&c&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,E0())}}n.value===void 0||n.defaultValue===void 0||M1||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),M1=!0)}function T0(t,n){n.value===void 0||n.defaultValue===void 0||L1||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",an()||"A component"),L1=!0),n.children!=null&&n.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function N0(t,n,a){if(n!=null&&(n=""+lr(n),n!==t.value&&(t.value=n),a==null)){t.defaultValue!==n&&(t.defaultValue=n);return}t.defaultValue=a!=null?""+lr(a):""}function A0(t,n,a,c){if(n==null){if(c!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ht(c)){if(1<c.length)throw Error("<textarea> can only have at most one child.");c=c[0]}a=c}a==null&&(a=""),n=a}a=lr(n),t.defaultValue=a,c=t.textContent,c===a&&c!==""&&c!==null&&(t.value=c),Im(t)}function C0(t,n){return t.serverProps===void 0&&t.serverTail.length===0&&t.children.length===1&&3<t.distanceFromLeaf&&t.distanceFromLeaf>15-n?C0(t.children[0],n):t}function qn(t){return" "+" ".repeat(t)}function _o(t){return"+ "+" ".repeat(t)}function ya(t){return"- "+" ".repeat(t)}function k0(t){switch(t.tag){case 26:case 27:case 5:return t.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return t=t.type,t.displayName||t.name||null;case 11:return t=t.type.render,t.displayName||t.name||null;case 1:return t=t.type,t.displayName||t.name||null;default:return null}}function Wl(t,n){return U1.test(t)?(t=JSON.stringify(t),t.length>n-2?8>n?'{"..."}':"{"+t.slice(0,n-7)+'..."}':"{"+t+"}"):t.length>n?5>n?'{"..."}':t.slice(0,n-3)+"...":t}function gd(t,n,a){var c=120-2*a;if(n===null)return _o(a)+Wl(t,c)+`
82
+ `;if(typeof n=="string"){for(var f=0;f<n.length&&f<t.length&&n.charCodeAt(f)===t.charCodeAt(f);f++);return f>c-8&&10<f&&(t="..."+t.slice(f-8),n="..."+n.slice(f-8)),_o(a)+Wl(t,c)+`
83
+ `+ya(a)+Wl(n,c)+`
84
+ `}return qn(a)+Wl(t,c)+`
85
+ `}function Bm(t){return Object.prototype.toString.call(t).replace(/^\[object (.*)\]$/,function(n,a){return a})}function Ql(t,n){switch(typeof t){case"string":return t=JSON.stringify(t),t.length>n?5>n?'"..."':t.slice(0,n-4)+'..."':t;case"object":if(t===null)return"null";if(Ht(t))return"[...]";if(t.$$typeof===pi)return(n=B(t.type))?"<"+n+">":"<...>";var a=Bm(t);if(a==="Object"){a="",n-=2;for(var c in t)if(t.hasOwnProperty(c)){var f=JSON.stringify(c);if(f!=='"'+c+'"'&&(c=f),n-=c.length-2,f=Ql(t[c],15>n?n:15),n-=f.length,0>n){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+c+":"+f}return"{"+a+"}"}return a;case"function":return(n=t.displayName||t.name)?"function "+n:"function";default:return String(t)}}function So(t,n){return typeof t!="string"||U1.test(t)?"{"+Ql(t,n-2)+"}":t.length>n-2?5>n?'"..."':'"'+t.slice(0,n-5)+'..."':'"'+t+'"'}function qm(t,n,a){var c=120-a.length-t.length,f=[],h;for(h in n)if(n.hasOwnProperty(h)&&h!=="children"){var b=So(n[h],120-a.length-h.length-1);c-=h.length+b.length+2,f.push(h+"="+b)}return f.length===0?a+"<"+t+`>
86
+ `:0<c?a+"<"+t+" "+f.join(" ")+`>
87
+ `:a+"<"+t+`
88
+ `+a+" "+f.join(`
89
+ `+a+" ")+`
90
+ `+a+`>
91
+ `}function Dk(t,n,a){var c="",f=Ue({},n),h;for(h in t)if(t.hasOwnProperty(h)){delete f[h];var b=120-2*a-h.length-2,_=Ql(t[h],b);n.hasOwnProperty(h)?(b=Ql(n[h],b),c+=_o(a)+h+": "+_+`
92
+ `,c+=ya(a)+h+": "+b+`
93
+ `):c+=_o(a)+h+": "+_+`
94
+ `}for(var N in f)f.hasOwnProperty(N)&&(t=Ql(f[N],120-2*a-N.length-2),c+=ya(a)+N+": "+t+`
95
+ `);return c}function Rk(t,n,a,c){var f="",h=new Map;for(A in a)a.hasOwnProperty(A)&&h.set(A.toLowerCase(),A);if(h.size===1&&h.has("children"))f+=qm(t,n,qn(c));else{for(var b in n)if(n.hasOwnProperty(b)&&b!=="children"){var _=120-2*(c+1)-b.length-1,N=h.get(b.toLowerCase());if(N!==void 0){h.delete(b.toLowerCase());var A=n[b];N=a[N];var j=So(A,_);_=So(N,_),typeof A=="object"&&A!==null&&typeof N=="object"&&N!==null&&Bm(A)==="Object"&&Bm(N)==="Object"&&(2<Object.keys(A).length||2<Object.keys(N).length||-1<j.indexOf("...")||-1<_.indexOf("..."))?f+=qn(c+1)+b+`={{
96
+ `+Dk(A,N,c+2)+qn(c+1)+`}}
97
+ `:(f+=_o(c+1)+b+"="+j+`
98
+ `,f+=ya(c+1)+b+"="+_+`
99
+ `)}else f+=qn(c+1)+b+"="+So(n[b],_)+`
100
+ `}h.forEach(function(V){if(V!=="children"){var M=120-2*(c+1)-V.length-1;f+=ya(c+1)+V+"="+So(a[V],M)+`
101
+ `}}),f=f===""?qn(c)+"<"+t+`>
102
+ `:qn(c)+"<"+t+`
103
+ `+f+qn(c)+`>
104
+ `}return t=a.children,n=n.children,typeof t=="string"||typeof t=="number"||typeof t=="bigint"?(h="",(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(h=""+n),f+=gd(h,""+t,c+1)):(typeof n=="string"||typeof n=="number"||typeof n=="bigint")&&(f=t==null?f+gd(""+n,null,c+1):f+gd(""+n,void 0,c+1)),f}function D0(t,n){var a=k0(t);if(a===null){for(a="",t=t.child;t;)a+=D0(t,n),t=t.sibling;return a}return qn(n)+"<"+a+`>
105
+ `}function Fm(t,n){var a=C0(t,n);if(a!==t&&(t.children.length!==1||t.children[0]!==a))return qn(n)+`...
106
+ `+Fm(a,n+1);a="";var c=t.fiber._debugInfo;if(c)for(var f=0;f<c.length;f++){var h=c[f].name;typeof h=="string"&&(a+=qn(n)+"<"+h+`>
107
+ `,n++)}if(c="",f=t.fiber.pendingProps,t.fiber.tag===6)c=gd(f,t.serverProps,n),n++;else if(h=k0(t.fiber),h!==null)if(t.serverProps===void 0){c=n;var b=120-2*c-h.length-2,_="";for(A in f)if(f.hasOwnProperty(A)&&A!=="children"){var N=So(f[A],15);if(b-=A.length+N.length+2,0>b){_+=" ...";break}_+=" "+A+"="+N}c=qn(c)+"<"+h+_+`>
108
+ `,n++}else t.serverProps===null?(c=qm(h,f,_o(n)),n++):typeof t.serverProps=="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(c=Rk(h,f,t.serverProps,n),n++);var A="";for(f=t.fiber.child,h=0;f&&h<t.children.length;)b=t.children[h],b.fiber===f?(A+=Fm(b,n),h++):A+=D0(f,n),f=f.sibling;for(f&&0<t.children.length&&(A+=qn(n)+`...
109
+ `),f=t.serverTail,t.serverProps===null&&n--,t=0;t<f.length;t++)h=f[t],A=typeof h=="string"?A+(ya(n)+Wl(h,120-2*n)+`
110
+ `):A+qm(h.type,h.props,ya(n));return a+c+A}function Gm(t){try{return`
111
+
112
+ `+Fm(t,0)}catch{return""}}function R0(t,n,a){for(var c=n,f=null,h=0;c;)c===t&&(h=0),f={fiber:c,children:f!==null?[f]:[],serverProps:c===n?a:c===t?null:void 0,serverTail:[],distanceFromLeaf:h},h++,c=c.return;return f!==null?Gm(f).replaceAll(/^[+-]/gm,">"):""}function M0(t,n){var a=Ue({},t||V1),c={tag:n};return j1.indexOf(n)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),VR.indexOf(n)!==-1&&(a.pTagInButtonScope=null),jR.indexOf(n)!==-1&&n!=="address"&&n!=="div"&&n!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=c,n==="form"&&(a.formTag=c),n==="a"&&(a.aTagInScope=c),n==="button"&&(a.buttonTagInScope=c),n==="nobr"&&(a.nobrTagInScope=c),n==="p"&&(a.pTagInButtonScope=c),n==="li"&&(a.listItemTagAutoclosing=c),(n==="dd"||n==="dt")&&(a.dlItemTagAutoclosing=c),n==="#document"||n==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=c),t!==null||n!=="#document"&&n!=="html"&&n!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function O0(t,n,a){switch(n){case"select":return t==="hr"||t==="option"||t==="optgroup"||t==="script"||t==="template"||t==="#text";case"optgroup":return t==="option"||t==="#text";case"option":return t==="#text";case"tr":return t==="th"||t==="td"||t==="style"||t==="script"||t==="template";case"tbody":case"thead":case"tfoot":return t==="tr"||t==="style"||t==="script"||t==="template";case"colgroup":return t==="col"||t==="template";case"table":return t==="caption"||t==="colgroup"||t==="tbody"||t==="tfoot"||t==="thead"||t==="style"||t==="script"||t==="template";case"head":return t==="base"||t==="basefont"||t==="bgsound"||t==="link"||t==="meta"||t==="title"||t==="noscript"||t==="noframes"||t==="style"||t==="script"||t==="template";case"html":if(a)break;return t==="head"||t==="body"||t==="frameset";case"frameset":return t==="frame";case"#document":if(!a)return t==="html"}switch(t){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n!=="h1"&&n!=="h2"&&n!=="h3"&&n!=="h4"&&n!=="h5"&&n!=="h6";case"rp":case"rt":return $R.indexOf(n)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return n==null;case"head":return a||n===null;case"html":return a&&n==="#document"||n===null;case"body":return a&&(n==="#document"||n==="html")||n===null}return!0}function Mk(t,n){switch(t){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return n.pTagInButtonScope;case"form":return n.formTag||n.pTagInButtonScope;case"li":return n.listItemTagAutoclosing;case"dd":case"dt":return n.dlItemTagAutoclosing;case"button":return n.buttonTagInScope;case"a":return n.aTagInScope;case"nobr":return n.nobrTagInScope}return null}function L0(t,n){for(;t;){switch(t.tag){case 5:case 26:case 27:if(t.type===n)return t}t=t.return}return null}function Ym(t,n){n=n||V1;var a=n.current;if(n=(a=O0(t,a&&a.tag,n.implicitRootScope)?null:a)?null:Mk(t,n),n=a||n,!n)return!0;var c=n.tag;if(n=String(!!a)+"|"+t+"|"+c,kf[n])return!1;kf[n]=!0;var f=(n=Qn)?L0(n.return,c):null,h=n!==null&&f!==null?R0(f,n,null):"",b="<"+t+">";return a?(a="",c==="table"&&t==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
113
+ This will cause a hydration error.%s`,b,c,a,h)):console.error(`In HTML, %s cannot be a descendant of <%s>.
114
+ This will cause a hydration error.%s`,b,c,h),n&&(t=n.return,f===null||t===null||f===t&&t._debugOwner===n._debugOwner||le(f,function(){console.error(`<%s> cannot contain a nested %s.
115
+ See this log for the ancestor stack trace.`,c,b)})),!1}function yd(t,n,a){if(a||O0("#text",n,!1))return!0;if(a="#text|"+n,kf[a])return!1;kf[a]=!0;var c=(a=Qn)?L0(a,n):null;return a=a!==null&&c!==null?R0(c,a,a.tag!==6?{children:null}:null):"",/\S/.test(t)?console.error(`In HTML, text nodes cannot be a child of <%s>.
116
+ This will cause a hydration error.%s`,n,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
117
+ This will cause a hydration error.%s`,n,a),!1}function Zl(t,n){if(n){var a=t.firstChild;if(a&&a===t.lastChild&&a.nodeType===3){a.nodeValue=n;return}}t.textContent=n}function Ok(t){return t.replace(zR,function(n,a){return a.toUpperCase()})}function U0(t,n,a){var c=n.indexOf("--")===0;c||(-1<n.indexOf("-")?Po.hasOwnProperty(n)&&Po[n]||(Po[n]=!0,console.error("Unsupported style property %s. Did you mean %s?",n,Ok(n.replace(IR,"ms-")))):HR.test(n)?Po.hasOwnProperty(n)&&Po[n]||(Po[n]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",n,n.charAt(0).toUpperCase()+n.slice(1))):!I1.test(a)||uy.hasOwnProperty(a)&&uy[a]||(uy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,n,a.replace(I1,""))),typeof a=="number"&&(isNaN(a)?z1||(z1=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",n)):isFinite(a)||P1||(P1=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",n)))),a==null||typeof a=="boolean"||a===""?c?t.setProperty(n,""):n==="float"?t.cssFloat="":t[n]="":c?t.setProperty(n,a):typeof a!="number"||a===0||B1.has(n)?n==="float"?t.cssFloat=a:(qt(a,n),t[n]=(""+a).trim()):t[n]=a+"px"}function j0(t,n,a){if(n!=null&&typeof n!="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(n&&Object.freeze(n),t=t.style,a!=null){if(n){var c={};if(a){for(var f in a)if(a.hasOwnProperty(f)&&!n.hasOwnProperty(f))for(var h=cy[f]||[f],b=0;b<h.length;b++)c[h[b]]=f}for(var _ in n)if(n.hasOwnProperty(_)&&(!a||a[_]!==n[_]))for(f=cy[_]||[_],h=0;h<f.length;h++)c[f[h]]=_;_={};for(var N in n)for(f=cy[N]||[N],h=0;h<f.length;h++)_[f[h]]=N;N={};for(var A in c)if(f=c[A],(h=_[A])&&f!==h&&(b=f+","+h,!N[b])){N[b]=!0,b=console;var j=n[f];b.error.call(b,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",j==null||typeof j=="boolean"||j===""?"Removing":"Updating",f,h)}}for(var V in a)!a.hasOwnProperty(V)||n!=null&&n.hasOwnProperty(V)||(V.indexOf("--")===0?t.setProperty(V,""):V==="float"?t.cssFloat="":t[V]="");for(var M in n)A=n[M],n.hasOwnProperty(M)&&a[M]!==A&&U0(t,M,A)}else for(c in n)n.hasOwnProperty(c)&&U0(t,c,n[c])}function ec(t){if(t.indexOf("-")===-1)return!1;switch(t){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}}function V0(t){return PR.get(t)||t}function Lk(t,n){if(jr.call(qo,n)&&qo[n])return!0;if(qR.test(n)){if(t="aria-"+n.slice(4).toLowerCase(),t=q1.hasOwnProperty(t)?t:null,t==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",n),qo[n]=!0;if(n!==t)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",n,t),qo[n]=!0}if(BR.test(n)){if(t=n.toLowerCase(),t=q1.hasOwnProperty(t)?t:null,t==null)return qo[n]=!0,!1;n!==t&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",n,t),qo[n]=!0)}return!0}function Uk(t,n){var a=[],c;for(c in n)Lk(t,c)||a.push(c);n=a.map(function(f){return"`"+f+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",n,t)}function jk(t,n,a,c){if(jr.call(bn,n)&&bn[n])return!0;var f=n.toLowerCase();if(f==="onfocusin"||f==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),bn[n]=!0;if(typeof a=="function"&&(t==="form"&&n==="action"||t==="input"&&n==="formAction"||t==="button"&&n==="formAction"))return!0;if(c!=null){if(t=c.possibleRegistrationNames,c.registrationNameDependencies.hasOwnProperty(n))return!0;if(c=t.hasOwnProperty(f)?t[f]:null,c!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",n,c),bn[n]=!0;if(G1.test(n))return console.error("Unknown event handler property `%s`. It will be ignored.",n),bn[n]=!0}else if(G1.test(n))return FR.test(n)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",n),bn[n]=!0;if(GR.test(n)||YR.test(n))return!0;if(f==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),bn[n]=!0;if(f==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),bn[n]=!0;if(f==="is"&&a!==null&&a!==void 0&&typeof a!="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),bn[n]=!0;if(typeof a=="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",n),bn[n]=!0;if(Rf.hasOwnProperty(f)){if(f=Rf[f],f!==n)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",n,f),bn[n]=!0}else if(n!==f)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",n,f),bn[n]=!0;switch(n){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(n){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":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":case"capture":case"download":case"inert":return!0;default:return f=n.toLowerCase().slice(0,5),f==="data-"||f==="aria-"?!0:(a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,n,n,a,n):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,n,n,a,n,n,n),bn[n]=!0)}case"function":case"symbol":return bn[n]=!0,!1;case"string":if(a==="false"||a==="true"){switch(n){case"checked":case"selected":case"multiple":case"muted":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":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,n,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',n,a),bn[n]=!0}}return!0}function Vk(t,n,a){var c=[],f;for(f in n)jk(t,f,n[f],a)||c.push(f);n=c.map(function(h){return"`"+h+"`"}).join(", "),c.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,t):1<c.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",n,t)}function tc(t){return XR.test(""+t)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":t}function Li(){}function Xm(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}function $0(t){var n=ie(t);if(n&&(t=n.stateNode)){var a=t[yn]||null;e:switch(t=n.stateNode,n.type){case"input":if(zm(t,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),n=a.name,a.type==="radio"&&n!=null){for(a=t;a.parentNode;)a=a.parentNode;for(Xe(n,"name"),a=a.querySelectorAll('input[name="'+cr(""+n)+'"][type="radio"]'),n=0;n<a.length;n++){var c=a[n];if(c!==t&&c.form===t.form){var f=c[yn]||null;if(!f)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");zm(c,f.value,f.defaultValue,f.defaultValue,f.checked,f.defaultChecked,f.type,f.name)}}for(n=0;n<a.length;n++)c=a[n],c.form===t.form&&v0(c)}break e;case"textarea":N0(t,a.value,a.defaultValue);break e;case"select":n=a.value,n!=null&&wo(t,!!a.multiple,n,!1)}}}function H0(t,n,a){if(dy)return t(n,a);dy=!0;try{var c=t(n);return c}finally{if(dy=!1,(Fo!==null||Go!==null)&&(Mo(),Fo&&(n=Fo,t=Go,Go=Fo=null,$0(n),t)))for(n=0;n<t.length;n++)$0(t[n])}}function nc(t,n){var a=t.stateNode;if(a===null)return null;var c=a[yn]||null;if(c===null)return null;a=c[n];e:switch(n){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(c=!c.disabled)||(t=t.type,c=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!c;break e;default:t=!1}if(t)return null;if(a&&typeof a!="function")throw Error("Expected `"+n+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function I0(){if(Mf)return Mf;var t,n=hy,a=n.length,c,f="value"in Ls?Ls.value:Ls.textContent,h=f.length;for(t=0;t<a&&n[t]===f[t];t++);var b=a-t;for(c=1;c<=b&&n[a-c]===f[h-c];c++);return Mf=f.slice(t,1<c?1-c:void 0)}function bd(t){var n=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&n===13&&(t=13)):t=n,t===10&&(t=13),32<=t||t===13?t:0}function vd(){return!0}function z0(){return!1}function kn(t){function n(a,c,f,h,b){this._reactName=a,this._targetInst=f,this.type=c,this.nativeEvent=h,this.target=b,this.currentTarget=null;for(var _ in t)t.hasOwnProperty(_)&&(a=t[_],this[_]=a?a(h):h[_]);return this.isDefaultPrevented=(h.defaultPrevented!=null?h.defaultPrevented:h.returnValue===!1)?vd:z0,this.isPropagationStopped=z0,this}return Ue(n.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=vd)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=vd)},persist:function(){},isPersistent:vd}),n}function $k(t){var n=this.nativeEvent;return n.getModifierState?n.getModifierState(t):(t=oM[t])?!!n[t]:!1}function Jm(){return $k}function P0(t,n){switch(t){case"keyup":return vM.indexOf(n.keyCode)!==-1;case"keydown":return n.keyCode!==K1;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function B0(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}function Hk(t,n){switch(t){case"compositionend":return B0(n);case"keypress":return n.which!==Q1?null:(eE=!0,Z1);case"textInput":return t=n.data,t===Z1&&eE?null:t;default:return null}}function Ik(t,n){if(Yo)return t==="compositionend"||!yy&&P0(t,n)?(t=I0(),Mf=hy=Ls=null,Yo=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(n.ctrlKey||n.altKey||n.metaKey)||n.ctrlKey&&n.altKey){if(n.char&&1<n.char.length)return n.char;if(n.which)return String.fromCharCode(n.which)}return null;case"compositionend":return W1&&n.locale!=="ko"?null:n.data;default:return null}}function q0(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n==="input"?!!_M[t.type]:n==="textarea"}function zk(t){if(!_i)return!1;t="on"+t;var n=t in document;return n||(n=document.createElement("div"),n.setAttribute(t,"return;"),n=typeof n[t]=="function"),n}function F0(t,n,a,c){Fo?Go?Go.push(c):Go=[c]:Fo=c,n=ff(n,"onChange"),0<n.length&&(a=new Of("onChange","change",null,a,c),t.push({event:a,listeners:n}))}function Pk(t){AS(t,0)}function wd(t){var n=he(t);if(v0(n))return t}function G0(t,n){if(t==="change")return n}function Y0(){Ic&&(Ic.detachEvent("onpropertychange",X0),zc=Ic=null)}function X0(t){if(t.propertyName==="value"&&wd(zc)){var n=[];F0(n,zc,t,Xm(t)),H0(Pk,n)}}function Bk(t,n,a){t==="focusin"?(Y0(),Ic=n,zc=a,Ic.attachEvent("onpropertychange",X0)):t==="focusout"&&Y0()}function qk(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return wd(zc)}function Fk(t,n){if(t==="click")return wd(n)}function Gk(t,n){if(t==="input"||t==="change")return wd(n)}function Yk(t,n){return t===n&&(t!==0||1/t===1/n)||t!==t&&n!==n}function rc(t,n){if(vn(t,n))return!0;if(typeof t!="object"||t===null||typeof n!="object"||n===null)return!1;var a=Object.keys(t),c=Object.keys(n);if(a.length!==c.length)return!1;for(c=0;c<a.length;c++){var f=a[c];if(!jr.call(n,f)||!vn(t[f],n[f]))return!1}return!0}function J0(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function K0(t,n){var a=J0(t);t=0;for(var c;a;){if(a.nodeType===3){if(c=t+a.textContent.length,t<=n&&c>=n)return{node:a,offset:n-t};t=c}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=J0(a)}}function W0(t,n){return t&&n?t===n?!0:t&&t.nodeType===3?!1:n&&n.nodeType===3?W0(t,n.parentNode):"contains"in t?t.contains(n):t.compareDocumentPosition?!!(t.compareDocumentPosition(n)&16):!1:!1}function Q0(t){t=t!=null&&t.ownerDocument!=null&&t.ownerDocument.defaultView!=null?t.ownerDocument.defaultView:window;for(var n=pd(t.document);n instanceof t.HTMLIFrameElement;){try{var a=typeof n.contentWindow.location.href=="string"}catch{a=!1}if(a)t=n.contentWindow;else break;n=pd(t.document)}return n}function Km(t){var n=t&&t.nodeName&&t.nodeName.toLowerCase();return n&&(n==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||n==="textarea"||t.contentEditable==="true")}function Z0(t,n,a){var c=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;vy||Xo==null||Xo!==pd(c)||(c=Xo,"selectionStart"in c&&Km(c)?c={start:c.selectionStart,end:c.selectionEnd}:(c=(c.ownerDocument&&c.ownerDocument.defaultView||window).getSelection(),c={anchorNode:c.anchorNode,anchorOffset:c.anchorOffset,focusNode:c.focusNode,focusOffset:c.focusOffset}),Pc&&rc(Pc,c)||(Pc=c,c=ff(by,"onSelect"),0<c.length&&(n=new Of("onSelect","select",null,n,a),t.push({event:n,listeners:c}),n.target=Xo)))}function ba(t,n){var a={};return a[t.toLowerCase()]=n.toLowerCase(),a["Webkit"+t]="webkit"+n,a["Moz"+t]="moz"+n,a}function va(t){if(wy[t])return wy[t];if(!Jo[t])return t;var n=Jo[t],a;for(a in n)if(n.hasOwnProperty(a)&&a in nE)return wy[t]=n[a];return t}function Mr(t,n){oE.set(t,n),Be(n,[t])}function Xk(t){for(var n=Uf,a=0;a<t.length;a++){var c=t[a];if(typeof c=="object"&&c!==null)if(Ht(c)&&c.length===2&&typeof c[0]=="string"){if(n!==Uf&&n!==Ty)return Ey;n=Ty}else return Ey;else{if(typeof c=="function"||typeof c=="string"&&50<c.length||n!==Uf&&n!==xy)return Ey;n=xy}}return n}function Wm(t,n,a,c){for(var f in t)jr.call(t,f)&&f[0]!=="_"&&Zr(f,t[f],n,a,c)}function Zr(t,n,a,c,f){switch(typeof n){case"object":if(n===null){n="null";break}else{if(n.$$typeof===pi){var h=B(n.type)||"…",b=n.key;n=n.props;var _=Object.keys(n),N=_.length;if(b==null&&N===0){n="<"+h+" />";break}if(3>c||N===1&&_[0]==="children"&&b==null){n="<"+h+" … />";break}a.push([f+"  ".repeat(c)+t,"<"+h]),b!==null&&Zr("key",b,a,c+1,f),t=!1;for(var A in n)A==="children"?n.children!=null&&(!Ht(n.children)||0<n.children.length)&&(t=!0):jr.call(n,A)&&A[0]!=="_"&&Zr(A,n[A],a,c+1,f);a.push(["",t?">…</"+h+">":"/>"]);return}if(h=Object.prototype.toString.call(n),h=h.slice(8,h.length-1),h==="Array"){if(A=Xk(n),A===xy||A===Uf){n=JSON.stringify(n);break}else if(A===Ty){for(a.push([f+"  ".repeat(c)+t,""]),t=0;t<n.length;t++)h=n[t],Zr(h[0],h[1],a,c+1,f);return}}if(h==="Promise"){if(n.status==="fulfilled"){if(h=a.length,Zr(t,n.value,a,c,f),a.length>h){a=a[h],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(n.status==="rejected"&&(h=a.length,Zr(t,n.reason,a,c,f),a.length>h)){a=a[h],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(c)+t,"Promise"]);return}h==="Object"&&(A=Object.getPrototypeOf(n))&&typeof A.constructor=="function"&&(h=A.constructor.name),a.push([f+"  ".repeat(c)+t,h==="Object"?3>c?"":"…":h]),3>c&&Wm(n,a,c+1,f);return}case"function":n=n.name===""?"() => {}":n.name+"() {}";break;case"string":n=n===CM?"…":JSON.stringify(n);break;case"undefined":n="undefined";break;case"boolean":n=n?"true":"false";break;default:n=String(n)}a.push([f+"  ".repeat(c)+t,n])}function ew(t,n,a,c){var f=!0;for(b in t)b in n||(a.push([jf+"  ".repeat(c)+b,"…"]),f=!1);for(var h in n)if(h in t){var b=t[h],_=n[h];if(b!==_){if(c===0&&h==="children")f="  ".repeat(c)+h,a.push([jf+f,"…"],[Vf+f,"…"]);else{if(!(3<=c)){if(typeof b=="object"&&typeof _=="object"&&b!==null&&_!==null&&b.$$typeof===_.$$typeof)if(_.$$typeof===pi){if(b.type===_.type&&b.key===_.key){b=B(_.type)||"…",f="  ".repeat(c)+h,b="<"+b+" … />",a.push([jf+f,b],[Vf+f,b]),f=!1;continue}}else{var N=Object.prototype.toString.call(b),A=Object.prototype.toString.call(_);if(N===A&&(A==="[object Object]"||A==="[object Array]")){N=[uE+"  ".repeat(c)+h,A==="[object Array]"?"Array":""],a.push(N),A=a.length,ew(b,_,a,c+1)?A===a.length&&(N[1]="Referentially unequal but deeply equal objects. Consider memoization."):f=!1;continue}}else if(typeof b=="function"&&typeof _=="function"&&b.name===_.name&&b.length===_.length&&(N=Function.prototype.toString.call(b),A=Function.prototype.toString.call(_),N===A)){b=_.name===""?"() => {}":_.name+"() {}",a.push([uE+"  ".repeat(c)+h,b+" Referentially unequal function closure. Consider memoization."]);continue}}Zr(h,b,a,c,jf),Zr(h,_,a,c,Vf)}f=!1}}else a.push([Vf+"  ".repeat(c)+h,"…"]),f=!1;return f}function Or(t){Pe=t&63?"Blocking":t&64?"Gesture":t&4194176?"Transition":t&62914560?"Suspense":t&2080374784?"Idle":"Other"}function ei(t,n,a,c){ot&&(js.start=n,js.end=a,qi.color="warning",qi.tooltipText=c,qi.properties=null,(t=t._debugTask)?t.run(performance.measure.bind(performance,c,js)):performance.measure(c,js))}function _d(t,n,a){ei(t,n,a,"Reconnect")}function Sd(t,n,a,c,f){var h=J(t);if(h!==null&&ot){var b=t.alternate,_=t.actualDuration;if(b===null||b.child!==t.child)for(var N=t.child;N!==null;N=N.sibling)_-=N.actualDuration;c=.5>_?c?"tertiary-light":"primary-light":10>_?c?"tertiary":"primary":100>_?c?"tertiary-dark":"primary-dark":"error";var A=t.memoizedProps;_=t._debugTask,A!==null&&b!==null&&b.memoizedProps!==A?(N=[kM],A=ew(b.memoizedProps,A,N,0),1<N.length&&(A&&!Us&&(b.lanes&f)===0&&100<t.actualDuration?(Us=!0,N[0]=DM,qi.color="warning",qi.tooltipText=dE):(qi.color=c,qi.tooltipText=h),qi.properties=N,js.start=n,js.end=a,_!=null?_.run(performance.measure.bind(performance,"​"+h,js)):performance.measure("​"+h,js))):_!=null?_.run(console.timeStamp.bind(console,h,n,a,fr,void 0,c)):console.timeStamp(h,n,a,fr,void 0,c)}}function Qm(t,n,a,c){if(ot){var f=J(t);if(f!==null){for(var h=null,b=[],_=0;_<c.length;_++){var N=c[_];h==null&&N.source!==null&&(h=N.source._debugTask),N=N.value,b.push(["Error",typeof N=="object"&&N!==null&&typeof N.message=="string"?String(N.message):String(N)])}t.key!==null&&Zr("key",t.key,b,0,""),t.memoizedProps!==null&&Wm(t.memoizedProps,b,0,""),h==null&&(h=t._debugTask),t={start:n,end:a,detail:{devtools:{color:"error",track:fr,tooltipText:t.tag===13?"Hydration failed":"Error boundary caught an error",properties:b}}},h?h.run(performance.measure.bind(performance,"​"+f,t)):performance.measure("​"+f,t)}}}function ti(t,n,a,c,f){if(f!==null){if(ot){var h=J(t);if(h!==null){c=[];for(var b=0;b<f.length;b++){var _=f[b].value;c.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}t.key!==null&&Zr("key",t.key,c,0,""),t.memoizedProps!==null&&Wm(t.memoizedProps,c,0,""),n={start:n,end:a,detail:{devtools:{color:"error",track:fr,tooltipText:"A lifecycle or effect errored",properties:c}}},(t=t._debugTask)?t.run(performance.measure.bind(performance,"​"+h,n)):performance.measure("​"+h,n)}}}else h=J(t),h!==null&&ot&&(f=1>c?"secondary-light":100>c?"secondary":500>c?"secondary-dark":"error",(t=t._debugTask)?t.run(console.timeStamp.bind(console,h,n,a,fr,void 0,f)):console.timeStamp(h,n,a,fr,void 0,f))}function Jk(t,n,a,c){if(ot&&!(n<=t)){var f=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",c?c.run(console.timeStamp.bind(console,a,t,n,Pe,He,f)):console.timeStamp(a,t,n,Pe,He,f)}}function tw(t,n,a,c){!ot||n<=t||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Prewarm",t,n,Pe,He,a)):console.timeStamp("Prewarm",t,n,Pe,He,a))}function nw(t,n,a,c){!ot||n<=t||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",c?c.run(console.timeStamp.bind(console,"Suspended",t,n,Pe,He,a)):console.timeStamp("Suspended",t,n,Pe,He,a))}function Kk(t,n,a,c,f,h){if(ot&&!(n<=t)){a=[];for(var b=0;b<c.length;b++){var _=c[b].value;a.push(["Recoverable Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}t={start:t,end:n,detail:{devtools:{color:"primary-dark",track:Pe,trackGroup:He,tooltipText:f?"Hydration Failed":"Recovered after Error",properties:a}}},h?h.run(performance.measure.bind(performance,"Recovered",t)):performance.measure("Recovered",t)}}function Zm(t,n,a,c){!ot||n<=t||(c?c.run(console.timeStamp.bind(console,"Errored",t,n,Pe,He,"error")):console.timeStamp("Errored",t,n,Pe,He,"error"))}function Wk(t,n,a,c){!ot||n<=t||(c?c.run(console.timeStamp.bind(console,a,t,n,Pe,He,"secondary-light")):console.timeStamp(a,t,n,Pe,He,"secondary-light"))}function rw(t,n,a,c,f){if(ot&&!(n<=t)){for(var h=[],b=0;b<a.length;b++){var _=a[b].value;h.push(["Error",typeof _=="object"&&_!==null&&typeof _.message=="string"?String(_.message):String(_)])}t={start:t,end:n,detail:{devtools:{color:"error",track:Pe,trackGroup:He,tooltipText:c?"Remaining Effects Errored":"Commit Errored",properties:h}}},f?f.run(performance.measure.bind(performance,"Errored",t)):performance.measure("Errored",t)}}function ep(t,n,a){!ot||n<=t||console.timeStamp("Animating",t,n,Pe,He,"secondary-dark")}function Ed(){for(var t=Ko,n=Ny=Ko=0;n<t;){var a=hr[n];hr[n++]=null;var c=hr[n];hr[n++]=null;var f=hr[n];hr[n++]=null;var h=hr[n];if(hr[n++]=null,c!==null&&f!==null){var b=c.pending;b===null?f.next=f:(f.next=b.next,b.next=f),c.pending=f}h!==0&&iw(a,f,h)}}function xd(t,n,a,c){hr[Ko++]=t,hr[Ko++]=n,hr[Ko++]=a,hr[Ko++]=c,Ny|=c,t.lanes|=c,t=t.alternate,t!==null&&(t.lanes|=c)}function tp(t,n,a,c){return xd(t,n,a,c),Td(t)}function on(t,n){return xd(t,null,null,n),Td(t)}function iw(t,n,a){t.lanes|=a;var c=t.alternate;c!==null&&(c.lanes|=a);for(var f=!1,h=t.return;h!==null;)h.childLanes|=a,c=h.alternate,c!==null&&(c.childLanes|=a),h.tag===22&&(t=h.stateNode,t===null||t._visibility&Bc||(f=!0)),t=h,h=h.return;return t.tag===3?(h=t.stateNode,f&&n!==null&&(f=31-gn(a),t=h.hiddenUpdates,c=t[f],c===null?t[f]=[n]:c.push(n),n.lane=a|536870912),h):null}function Td(t){if(gu>GM)throw Ja=gu=0,yu=sb=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ja>YM&&(Ja=0,yu=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),t.alternate===null&&(t.flags&4098)!==0&&wS(t);for(var n=t,a=n.return;a!==null;)n.alternate===null&&(n.flags&4098)!==0&&wS(t),n=a,a=n.return;return n.tag===3?n.stateNode:null}function wa(t){if(mr===null)return t;var n=mr(t);return n===void 0?t:n.current}function np(t){if(mr===null)return t;var n=mr(t);return n===void 0?t!=null&&typeof t.render=="function"&&(n=wa(t.render),t.render!==n)?(n={$$typeof:Rc,render:n},t.displayName!==void 0&&(n.displayName=t.displayName),n):t:n.current}function sw(t,n){if(mr===null)return!1;var a=t.elementType;n=n.type;var c=!1,f=typeof n=="object"&&n!==null?n.$$typeof:null;switch(t.tag){case 1:typeof n=="function"&&(c=!0);break;case 0:(typeof n=="function"||f===Wn)&&(c=!0);break;case 11:(f===Rc||f===Wn)&&(c=!0);break;case 14:case 15:(f===Ef||f===Wn)&&(c=!0);break;default:return!1}return!!(c&&(t=mr(a),t!==void 0&&t===mr(n)))}function aw(t){mr!==null&&typeof WeakSet=="function"&&(Wo===null&&(Wo=new WeakSet),Wo.add(t))}function ow(t,n,a){do{var c=t,f=c.alternate,h=c.child,b=c.sibling,_=c.tag;c=c.type;var N=null;switch(_){case 0:case 15:case 1:N=c;break;case 11:N=c.render}if(mr===null)throw Error("Expected resolveFamily to be set during hot reload.");var A=!1;if(c=!1,N!==null&&(N=mr(N),N!==void 0&&(a.has(N)?c=!0:n.has(N)&&(_===1?c=!0:A=!0))),Wo!==null&&(Wo.has(t)||f!==null&&Wo.has(f))&&(c=!0),c&&(t._debugNeedsRemount=!0),(c||A)&&(f=on(t,2),f!==null&&yt(f,t,2)),h===null||c||ow(h,n,a),b===null)break;t=b}while(!0)}function Qk(t,n,a,c){this.tag=t,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=n,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=c,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,fE||typeof Object.preventExtensions!="function"||Object.preventExtensions(this)}function rp(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Ui(t,n){var a=t.alternate;switch(a===null?(a=y(t.tag,n,t.key,t.mode),a.elementType=t.elementType,a.type=t.type,a.stateNode=t.stateNode,a._debugOwner=t._debugOwner,a._debugStack=t._debugStack,a._debugTask=t._debugTask,a._debugHookTypes=t._debugHookTypes,a.alternate=t,t.alternate=a):(a.pendingProps=n,a.type=t.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=t.flags&65011712,a.childLanes=t.childLanes,a.lanes=t.lanes,a.child=t.child,a.memoizedProps=t.memoizedProps,a.memoizedState=t.memoizedState,a.updateQueue=t.updateQueue,n=t.dependencies,a.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},a.sibling=t.sibling,a.index=t.index,a.ref=t.ref,a.refCleanup=t.refCleanup,a.selfBaseDuration=t.selfBaseDuration,a.treeBaseDuration=t.treeBaseDuration,a._debugInfo=t._debugInfo,a._debugNeedsRemount=t._debugNeedsRemount,a.tag){case 0:case 15:a.type=wa(t.type);break;case 1:a.type=wa(t.type);break;case 11:a.type=np(t.type)}return a}function lw(t,n){t.flags&=65011714;var a=t.alternate;return a===null?(t.childLanes=0,t.lanes=n,t.child=null,t.subtreeFlags=0,t.memoizedProps=null,t.memoizedState=null,t.updateQueue=null,t.dependencies=null,t.stateNode=null,t.selfBaseDuration=0,t.treeBaseDuration=0):(t.childLanes=a.childLanes,t.lanes=a.lanes,t.child=a.child,t.subtreeFlags=0,t.deletions=null,t.memoizedProps=a.memoizedProps,t.memoizedState=a.memoizedState,t.updateQueue=a.updateQueue,t.type=a.type,n=a.dependencies,t.dependencies=n===null?null:{lanes:n.lanes,firstContext:n.firstContext,_debugThenableState:n._debugThenableState},t.selfBaseDuration=a.selfBaseDuration,t.treeBaseDuration=a.treeBaseDuration),t}function ip(t,n,a,c,f,h){var b=0,_=t;if(typeof t=="function")rp(t)&&(b=1),_=wa(_);else if(typeof t=="string")b=de(),b=oR(t,a,b)?26:t==="html"||t==="head"||t==="body"?27:5;else e:switch(t){case Wg:return n=y(31,a,n,f),n.elementType=Wg,n.lanes=h,n;case Ho:return _a(a.children,f,h,n);case Sf:b=8,f|=cn,f|=Vr;break;case Yg:return t=a,c=f,typeof t.id!="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof t.id),n=y(12,t,n,c|De),n.elementType=Yg,n.lanes=h,n.stateNode={effectDuration:0,passiveEffectDuration:0},n;case Jg:return n=y(13,a,n,f),n.elementType=Jg,n.lanes=h,n;case Kg:return n=y(19,a,n,f),n.elementType=Kg,n.lanes=h,n;default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case gi:b=10;break e;case Xg:b=9;break e;case Rc:b=11,_=np(_);break e;case Ef:b=14;break e;case Wn:b=16,_=null;break e}_="",(t===void 0||typeof t=="object"&&t!==null&&Object.keys(t).length===0)&&(_+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports."),t===null?a="null":Ht(t)?a="array":t!==void 0&&t.$$typeof===pi?(a="<"+(B(t.type)||"Unknown")+" />",_=" Did you accidentally export a JSX literal instead of a component?"):a=typeof t,(b=c?H(c):null)&&(_+=`
118
+
119
+ Check the render method of \``+b+"`."),b=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+_)),_=null}return n=y(b,a,n,f),n.elementType=t,n.type=_,n.lanes=h,n._debugOwner=c,n}function Nd(t,n,a){return n=ip(t.type,t.key,t.props,t._owner,n,a),n._debugOwner=t._owner,n._debugStack=t._debugStack,n._debugTask=t._debugTask,n}function _a(t,n,a,c){return t=y(7,t,c,n),t.lanes=a,t}function sp(t,n,a){return t=y(6,t,null,n),t.lanes=a,t}function cw(t){var n=y(18,null,null,_e);return n.stateNode=t,n}function ap(t,n,a){return n=y(4,t.children!==null?t.children:[],t.key,n),n.lanes=a,n.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},n}function Fn(t,n){if(typeof t=="object"&&t!==null){var a=Ay.get(t);return a!==void 0?a:(n={value:t,source:n,stack:rt(n)},Ay.set(t,n),n)}return{value:t,source:n,stack:rt(n)}}function ji(t,n){bs(),Qo[Zo++]=qc,Qo[Zo++]=$f,$f=t,qc=n}function uw(t,n,a){bs(),pr[gr++]=Gi,pr[gr++]=Yi,pr[gr++]=La,La=t;var c=Gi;t=Yi;var f=32-gn(c)-1;c&=~(1<<f),a+=1;var h=32-gn(n)+f;if(30<h){var b=f-f%5;h=(c&(1<<b)-1).toString(32),c>>=b,f-=b,Gi=1<<32-gn(n)+f|a<<f|c,Yi=h+t}else Gi=1<<h|a<<f|c,Yi=t}function op(t){bs(),t.return!==null&&(ji(t,1),uw(t,1,0))}function lp(t){for(;t===$f;)$f=Qo[--Zo],Qo[Zo]=null,qc=Qo[--Zo],Qo[Zo]=null;for(;t===La;)La=pr[--gr],pr[gr]=null,Yi=pr[--gr],pr[gr]=null,Gi=pr[--gr],pr[gr]=null}function dw(){return bs(),La!==null?{id:Gi,overflow:Yi}:null}function fw(t,n){bs(),pr[gr++]=Gi,pr[gr++]=Yi,pr[gr++]=La,Gi=n.id,Yi=n.overflow,La=t}function bs(){Ve||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function Sa(t,n){if(t.return===null){if(Zn===null)Zn={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n};else{if(Zn.fiber!==t)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Zn.distanceFromLeaf>n&&(Zn.distanceFromLeaf=n)}return Zn}var a=Sa(t.return,n+1).children;return 0<a.length&&a[a.length-1].fiber===t?(a=a[a.length-1],a.distanceFromLeaf>n&&(a.distanceFromLeaf=n),a):(n={fiber:t,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:n},a.push(n),n)}function hw(){Ve&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function Ad(t,n){Si||(t=Sa(t,0),t.serverProps=null,n!==null&&(n=FS(n),t.serverTail.push(n)))}function vs(t){var n=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",c=Zn;throw c!==null&&(Zn=null,a=Gm(c)),ic(Fn(Error("Hydration failed because the server rendered "+(n?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
120
+
121
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
122
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
123
+ - Date formatting in a user's locale which doesn't match the server.
124
+ - External changing data without sending a snapshot of it along with the HTML.
125
+ - Invalid HTML tag nesting.
126
+
127
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
128
+
129
+ https://react.dev/link/hydration-mismatch`+a),t)),Cy}function mw(t){var n=t.stateNode,a=t.type,c=t.memoizedProps;switch(n[tn]=t,n[yn]=c,Cg(a,c),a){case"dialog":$e("cancel",n),$e("close",n);break;case"iframe":case"object":case"embed":$e("load",n);break;case"video":case"audio":for(a=0;a<bu.length;a++)$e(bu[a],n);break;case"source":$e("error",n);break;case"img":case"image":case"link":$e("error",n),$e("load",n);break;case"details":$e("toggle",n);break;case"input":mn("input",c),$e("invalid",n),w0(n,c),_0(n,c.value,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name,!0);break;case"option":S0(n,c);break;case"select":mn("select",c),$e("invalid",n),x0(n,c);break;case"textarea":mn("textarea",c),$e("invalid",n),T0(n,c),A0(n,c.value,c.defaultValue,c.children)}a=c.children,typeof a!="string"&&typeof a!="number"&&typeof a!="bigint"||n.textContent===""+a||c.suppressHydrationWarning===!0||RS(n.textContent,a)?(c.popover!=null&&($e("beforetoggle",n),$e("toggle",n)),c.onScroll!=null&&$e("scroll",n),c.onScrollEnd!=null&&$e("scrollend",n),c.onClick!=null&&(n.onclick=Li),n=!0):n=!1,n||vs(t,!0)}function pw(t){for(nn=t.return;nn;)switch(nn.tag){case 5:case 31:case 13:yr=!1;return;case 27:case 3:yr=!0;return;default:nn=nn.return}}function Eo(t){if(t!==nn)return!1;if(!Ve)return pw(t),Ve=!0,!1;var n=t.tag,a;if((a=n!==3&&n!==27)&&((a=n===5)&&(a=t.type,a=!(a!=="form"&&a!=="button")||Og(t.type,t.memoizedProps)),a=!a),a&&lt){for(a=lt;a;){var c=Sa(t,0),f=FS(a);c.serverTail.push(f),a=f.type==="Suspense"?Vg(a):Kn(a.nextSibling)}vs(t)}if(pw(t),n===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");lt=Vg(t)}else if(n===31){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");lt=Vg(t)}else n===27?(n=lt,ks(t.type)?(t=yb,yb=null,lt=t):lt=n):lt=nn?Kn(t.stateNode.nextSibling):null;return!0}function Ea(){lt=nn=null,Si=Ve=!1}function cp(){var t=$s;return t!==null&&(En===null?En=t:En.push.apply(En,t),$s=null),t}function ic(t){$s===null?$s=[t]:$s.push(t)}function up(){var t=Zn;if(t!==null){Zn=null;for(var n=Gm(t);0<t.children.length;)t=t.children[0];le(t.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
130
+
131
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
132
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
133
+ - Date formatting in a user's locale which doesn't match the server.
134
+ - External changing data without sending a snapshot of it along with the HTML.
135
+ - Invalid HTML tag nesting.
136
+
137
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
138
+
139
+ %s%s`,"https://react.dev/link/hydration-mismatch",n)})}}function Cd(){el=Hf=null,tl=!1}function ws(t,n,a){X(ky,n._currentValue,t),n._currentValue=a,X(Dy,n._currentRenderer,t),n._currentRenderer!==void 0&&n._currentRenderer!==null&&n._currentRenderer!==mE&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),n._currentRenderer=mE}function Vi(t,n){t._currentValue=ky.current;var a=Dy.current;q(Dy,n),t._currentRenderer=a,q(ky,n)}function dp(t,n,a){for(;t!==null;){var c=t.alternate;if((t.childLanes&n)!==n?(t.childLanes|=n,c!==null&&(c.childLanes|=n)):c!==null&&(c.childLanes&n)!==n&&(c.childLanes|=n),t===a)break;t=t.return}t!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function fp(t,n,a,c){var f=t.child;for(f!==null&&(f.return=t);f!==null;){var h=f.dependencies;if(h!==null){var b=f.child;h=h.firstContext;e:for(;h!==null;){var _=h;h=f;for(var N=0;N<n.length;N++)if(_.context===n[N]){h.lanes|=a,_=h.alternate,_!==null&&(_.lanes|=a),dp(h.return,a,t),c||(b=null);break e}h=_.next}}else if(f.tag===18){if(b=f.return,b===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");b.lanes|=a,h=b.alternate,h!==null&&(h.lanes|=a),dp(b,a,t),b=null}else b=f.child;if(b!==null)b.return=f;else for(b=f;b!==null;){if(b===t){b=null;break}if(f=b.sibling,f!==null){f.return=b.return,b=f;break}b=b.return}f=b}}function xo(t,n,a,c){t=null;for(var f=n,h=!1;f!==null;){if(!h){if((f.flags&524288)!==0)h=!0;else if((f.flags&262144)!==0)break}if(f.tag===10){var b=f.alternate;if(b===null)throw Error("Should have a current fiber. This is a bug in React.");if(b=b.memoizedProps,b!==null){var _=f.type;vn(f.pendingProps.value,b.value)||(t!==null?t.push(_):t=[_])}}else if(f===xf.current){if(b=f.alternate,b===null)throw Error("Should have a current fiber. This is a bug in React.");b.memoizedState.memoizedState!==f.memoizedState.memoizedState&&(t!==null?t.push(Eu):t=[Eu])}f=f.return}t!==null&&fp(n,t,a,c),n.flags|=262144}function kd(t){for(t=t.firstContext;t!==null;){if(!vn(t.context._currentValue,t.memoizedValue))return!0;t=t.next}return!1}function xa(t){Hf=t,el=null,t=t.dependencies,t!==null&&(t.firstContext=null)}function ut(t){return tl&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),gw(Hf,t)}function Dd(t,n){return Hf===null&&xa(t),gw(t,n)}function gw(t,n){var a=n._currentValue;if(n={context:n,memoizedValue:a,next:null},el===null){if(t===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");el=n,t.dependencies={lanes:0,firstContext:n,_debugThenableState:null},t.flags|=524288}else el=el.next=n;return a}function hp(){return{controller:new OM,data:new Map,refCount:0}}function Ta(t){t.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),t.refCount++}function sc(t){t.refCount--,0>t.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),t.refCount===0&&LM(UM,function(){t.controller.abort()})}function ni(t,n,a){(t&127)!==0?0>Ei&&(Ei=Rt(),Gc=If(n),Ry=n,a!=null&&(My=J(a)),(qe&(zt|nr))!==Jt&&(bt=!0,Is=Fc),t=Nc(),n=Tc(),t!==nl||n!==Yc?nl=-1.1:n!==null&&(Is=Fc),Va=t,Yc=n):(t&4194048)!==0&&0>br&&(br=Rt(),Xc=If(n),pE=n,a!=null&&(gE=J(a)),0>Wi)&&(t=Nc(),n=Tc(),(t!==Ps||n!==$a)&&(Ps=-1.1),zs=t,$a=n)}function Zk(t){if(0>Ei){Ei=Rt(),Gc=t._debugTask!=null?t._debugTask:null,(qe&(zt|nr))!==Jt&&(Is=Fc);var n=Nc(),a=Tc();n!==nl||a!==Yc?nl=-1.1:a!==null&&(Is=Fc),Va=n,Yc=a}0>br&&(br=Rt(),Xc=t._debugTask!=null?t._debugTask:null,0>Wi)&&(t=Nc(),n=Tc(),(t!==Ps||n!==$a)&&(Ps=-1.1),zs=t,$a=n)}function $i(){var t=Ua;return Ua=0,t}function Rd(t){var n=Ua;return Ua=t,n}function ac(t){var n=Ua;return Ua+=t,n}function Md(){we=be=-1.1}function Gn(){var t=be;return be=-1.1,t}function Yn(t){0<=t&&(be=t)}function ri(){var t=ht;return ht=-0,t}function ii(t){0<=t&&(ht=t)}function si(){var t=dt;return dt=null,t}function ai(){var t=bt;return bt=!1,t}function mp(t){wn=Rt(),0>t.actualStartTime&&(t.actualStartTime=wn)}function pp(t){if(0<=wn){var n=Rt()-wn;t.actualDuration+=n,t.selfBaseDuration=n,wn=-1}}function yw(t){if(0<=wn){var n=Rt()-wn;t.actualDuration+=n,wn=-1}}function oi(){if(0<=wn){var t=Rt(),n=t-wn;wn=-1,Ua+=n,ht+=n,we=t}}function bw(t){dt===null&&(dt=[]),dt.push(t),Ji===null&&(Ji=[]),Ji.push(t)}function li(){wn=Rt(),0>be&&(be=wn)}function oc(t){for(var n=t.child;n;)t.actualDuration+=n.actualDuration,n=n.sibling}function eD(t,n){if(Kc===null){var a=Kc=[];Ly=0,Ha=xg(),rl={status:"pending",value:void 0,then:function(c){a.push(c)}}}return Ly++,n.then(vw,vw),n}function vw(){if(--Ly===0&&(-1<br||(Wi=-1.1),Kc!==null)){rl!==null&&(rl.status="fulfilled");var t=Kc;Kc=null,Ha=0,rl=null;for(var n=0;n<t.length;n++)(0,t[n])()}}function tD(t,n){var a=[],c={status:"pending",value:null,reason:null,then:function(f){a.push(f)}};return t.then(function(){c.status="fulfilled",c.value=n;for(var f=0;f<a.length;f++)(0,a[f])(n)},function(f){for(c.status="rejected",c.reason=f,f=0;f<a.length;f++)(0,a[f])(void 0)}),c}function gp(){var t=Ia.current;return t!==null?t:nt.pooledCache}function Od(t,n){n===null?X(Ia,Ia.current,t):X(Ia,n.pool,t)}function ww(){var t=gp();return t===null?null:{parent:Dt._currentValue,pool:t}}function _w(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Sw(t){return t=t.status,t==="fulfilled"||t==="rejected"}function Ew(t,n,a){G.actQueue!==null&&(G.didUsePromise=!0);var c=t.thenables;if(a=c[a],a===void 0?c.push(n):a!==n&&(t.didWarnAboutUncachedPromise||(t.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),n.then(Li,Li),n=a),n._debugInfo===void 0){t=performance.now(),c=n.displayName;var f={name:typeof c=="string"?c:"Promise",start:t,end:t,value:n};n._debugInfo=[{awaited:f}],n.status!=="fulfilled"&&n.status!=="rejected"&&(t=function(){f.end=performance.now()},n.then(t,t))}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Tw(t),t;default:if(typeof n.status=="string")n.then(Li,Li);else{if(t=nt,t!==null&&100<t.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");t=n,t.status="pending",t.then(function(h){if(n.status==="pending"){var b=n;b.status="fulfilled",b.value=h}},function(h){if(n.status==="pending"){var b=n;b.status="rejected",b.reason=h}})}switch(n.status){case"fulfilled":return n.value;case"rejected":throw t=n.reason,Tw(t),t}throw Pa=n,ru=!0,il}}function _s(t){try{return IM(t)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Pa=n,ru=!0,il):n}}function xw(){if(Pa===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var t=Pa;return Pa=null,ru=!1,t}function Tw(t){if(t===il||t===Xf)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Qt(t){var n=Re;return t!=null&&(Re=n===null?t:n.concat(t)),n}function yp(){var t=Re;if(t!=null){for(var n=t.length-1;0<=n;n--)if(t[n].name!=null){var a=t[n].debugTask;if(a!=null)return a}}return null}function Ld(t,n,a){for(var c=Object.keys(t.props),f=0;f<c.length;f++){var h=c[f];if(h!=="children"&&h!=="key"){n===null&&(n=Nd(t,a.mode,0),n._debugInfo=Re,n.return=a),le(n,function(b){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",b)},h);break}}}function Ud(t){var n=iu;return iu+=1,sl===null&&(sl=_w()),Ew(sl,t,n)}function lc(t,n){n=n.props.ref,t.ref=n!==void 0?n:null}function Nw(t,n){throw n.$$typeof===bR?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
140
+ - Multiple copies of the "react" package is used.
141
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
142
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(t=Object.prototype.toString.call(n),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(n).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead."))}function jd(t,n){var a=yp();a!==null?a.run(Nw.bind(null,t,n)):Nw(t,n)}function Aw(t,n){var a=J(t)||"Component";jE[a]||(jE[a]=!0,n=n.displayName||n.name||"Component",t.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
143
+ root.render(%s)`,n,n,n):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
144
+ <%s>{%s}</%s>`,n,n,a,n,a))}function Vd(t,n){var a=yp();a!==null?a.run(Aw.bind(null,t,n)):Aw(t,n)}function Cw(t,n){var a=J(t)||"Component";VE[a]||(VE[a]=!0,n=String(n),t.tag===3?console.error(`Symbols are not valid as a React child.
145
+ root.render(%s)`,n):console.error(`Symbols are not valid as a React child.
146
+ <%s>%s</%s>`,a,n,a))}function $d(t,n){var a=yp();a!==null?a.run(Cw.bind(null,t,n)):Cw(t,n)}function kw(t){function n(R,O){if(t){var U=R.deletions;U===null?(R.deletions=[O],R.flags|=16):U.push(O)}}function a(R,O){if(!t)return null;for(;O!==null;)n(R,O),O=O.sibling;return null}function c(R){for(var O=new Map;R!==null;)R.key!==null?O.set(R.key,R):O.set(R.index,R),R=R.sibling;return O}function f(R,O){return R=Ui(R,O),R.index=0,R.sibling=null,R}function h(R,O,U){return R.index=U,t?(U=R.alternate,U!==null?(U=U.index,U<O?(R.flags|=67108866,O):U):(R.flags|=67108866,O)):(R.flags|=1048576,O)}function b(R){return t&&R.alternate===null&&(R.flags|=67108866),R}function _(R,O,U,K){return O===null||O.tag!==6?(O=sp(U,R.mode,K),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Re,O):(O=f(O,U),O.return=R,O._debugInfo=Re,O)}function N(R,O,U,K){var oe=U.type;return oe===Ho?(O=j(R,O,U.props.children,K,U.key),Ld(U,O,R),O):O!==null&&(O.elementType===oe||sw(O,U)||typeof oe=="object"&&oe!==null&&oe.$$typeof===Wn&&_s(oe)===O.type)?(O=f(O,U.props),lc(O,U),O.return=R,O._debugOwner=U._owner,O._debugInfo=Re,O):(O=Nd(U,R.mode,K),lc(O,U),O.return=R,O._debugInfo=Re,O)}function A(R,O,U,K){return O===null||O.tag!==4||O.stateNode.containerInfo!==U.containerInfo||O.stateNode.implementation!==U.implementation?(O=ap(U,R.mode,K),O.return=R,O._debugInfo=Re,O):(O=f(O,U.children||[]),O.return=R,O._debugInfo=Re,O)}function j(R,O,U,K,oe){return O===null||O.tag!==7?(O=_a(U,R.mode,K,oe),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Re,O):(O=f(O,U),O.return=R,O._debugInfo=Re,O)}function V(R,O,U){if(typeof O=="string"&&O!==""||typeof O=="number"||typeof O=="bigint")return O=sp(""+O,R.mode,U),O.return=R,O._debugOwner=R,O._debugTask=R._debugTask,O._debugInfo=Re,O;if(typeof O=="object"&&O!==null){switch(O.$$typeof){case pi:return U=Nd(O,R.mode,U),lc(U,O),U.return=R,R=Qt(O._debugInfo),U._debugInfo=Re,Re=R,U;case $o:return O=ap(O,R.mode,U),O.return=R,O._debugInfo=Re,O;case Wn:var K=Qt(O._debugInfo);return O=_s(O),R=V(R,O,U),Re=K,R}if(Ht(O)||W(O))return U=_a(O,R.mode,U,null),U.return=R,U._debugOwner=R,U._debugTask=R._debugTask,R=Qt(O._debugInfo),U._debugInfo=Re,Re=R,U;if(typeof O.then=="function")return K=Qt(O._debugInfo),R=V(R,Ud(O),U),Re=K,R;if(O.$$typeof===gi)return V(R,Dd(R,O),U);jd(R,O)}return typeof O=="function"&&Vd(R,O),typeof O=="symbol"&&$d(R,O),null}function M(R,O,U,K){var oe=O!==null?O.key:null;if(typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint")return oe!==null?null:_(R,O,""+U,K);if(typeof U=="object"&&U!==null){switch(U.$$typeof){case pi:return U.key===oe?(oe=Qt(U._debugInfo),R=N(R,O,U,K),Re=oe,R):null;case $o:return U.key===oe?A(R,O,U,K):null;case Wn:return oe=Qt(U._debugInfo),U=_s(U),R=M(R,O,U,K),Re=oe,R}if(Ht(U)||W(U))return oe!==null?null:(oe=Qt(U._debugInfo),R=j(R,O,U,K,null),Re=oe,R);if(typeof U.then=="function")return oe=Qt(U._debugInfo),R=M(R,O,Ud(U),K),Re=oe,R;if(U.$$typeof===gi)return M(R,O,Dd(R,U),K);jd(R,U)}return typeof U=="function"&&Vd(R,U),typeof U=="symbol"&&$d(R,U),null}function P(R,O,U,K,oe){if(typeof K=="string"&&K!==""||typeof K=="number"||typeof K=="bigint")return R=R.get(U)||null,_(O,R,""+K,oe);if(typeof K=="object"&&K!==null){switch(K.$$typeof){case pi:return U=R.get(K.key===null?U:K.key)||null,R=Qt(K._debugInfo),O=N(O,U,K,oe),Re=R,O;case $o:return R=R.get(K.key===null?U:K.key)||null,A(O,R,K,oe);case Wn:var Ee=Qt(K._debugInfo);return K=_s(K),O=P(R,O,U,K,oe),Re=Ee,O}if(Ht(K)||W(K))return U=R.get(U)||null,R=Qt(K._debugInfo),O=j(O,U,K,oe,null),Re=R,O;if(typeof K.then=="function")return Ee=Qt(K._debugInfo),O=P(R,O,U,Ud(K),oe),Re=Ee,O;if(K.$$typeof===gi)return P(R,O,U,Dd(O,K),oe);jd(O,K)}return typeof K=="function"&&Vd(O,K),typeof K=="symbol"&&$d(O,K),null}function ae(R,O,U,K){if(typeof U!="object"||U===null)return K;switch(U.$$typeof){case pi:case $o:v(R,O,U);var oe=U.key;if(typeof oe!="string")break;if(K===null){K=new Set,K.add(oe);break}if(!K.has(oe)){K.add(oe);break}le(O,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",oe)});break;case Wn:U=_s(U),ae(R,O,U,K)}return K}function ce(R,O,U,K){for(var oe=null,Ee=null,ye=null,me=O,ke=O=0,ct=null;me!==null&&ke<U.length;ke++){me.index>ke?(ct=me,me=null):ct=me.sibling;var xt=M(R,me,U[ke],K);if(xt===null){me===null&&(me=ct);break}oe=ae(R,xt,U[ke],oe),t&&me&&xt.alternate===null&&n(R,me),O=h(xt,O,ke),ye===null?Ee=xt:ye.sibling=xt,ye=xt,me=ct}if(ke===U.length)return a(R,me),Ve&&ji(R,ke),Ee;if(me===null){for(;ke<U.length;ke++)me=V(R,U[ke],K),me!==null&&(oe=ae(R,me,U[ke],oe),O=h(me,O,ke),ye===null?Ee=me:ye.sibling=me,ye=me);return Ve&&ji(R,ke),Ee}for(me=c(me);ke<U.length;ke++)ct=P(me,R,ke,U[ke],K),ct!==null&&(oe=ae(R,ct,U[ke],oe),t&&ct.alternate!==null&&me.delete(ct.key===null?ke:ct.key),O=h(ct,O,ke),ye===null?Ee=ct:ye.sibling=ct,ye=ct);return t&&me.forEach(function(ss){return n(R,ss)}),Ve&&ji(R,ke),Ee}function st(R,O,U,K){if(U==null)throw Error("An iterable object provided no iterator.");for(var oe=null,Ee=null,ye=O,me=O=0,ke=null,ct=null,xt=U.next();ye!==null&&!xt.done;me++,xt=U.next()){ye.index>me?(ke=ye,ye=null):ke=ye.sibling;var ss=M(R,ye,xt.value,K);if(ss===null){ye===null&&(ye=ke);break}ct=ae(R,ss,xt.value,ct),t&&ye&&ss.alternate===null&&n(R,ye),O=h(ss,O,me),Ee===null?oe=ss:Ee.sibling=ss,Ee=ss,ye=ke}if(xt.done)return a(R,ye),Ve&&ji(R,me),oe;if(ye===null){for(;!xt.done;me++,xt=U.next())ye=V(R,xt.value,K),ye!==null&&(ct=ae(R,ye,xt.value,ct),O=h(ye,O,me),Ee===null?oe=ye:Ee.sibling=ye,Ee=ye);return Ve&&ji(R,me),oe}for(ye=c(ye);!xt.done;me++,xt=U.next())ke=P(ye,R,me,xt.value,K),ke!==null&&(ct=ae(R,ke,xt.value,ct),t&&ke.alternate!==null&&ye.delete(ke.key===null?me:ke.key),O=h(ke,O,me),Ee===null?oe=ke:Ee.sibling=ke,Ee=ke);return t&&ye.forEach(function(u3){return n(R,u3)}),Ve&&ji(R,me),oe}function Ie(R,O,U,K){if(typeof U=="object"&&U!==null&&U.type===Ho&&U.key===null&&(Ld(U,null,R),U=U.props.children),typeof U=="object"&&U!==null){switch(U.$$typeof){case pi:var oe=Qt(U._debugInfo);e:{for(var Ee=U.key;O!==null;){if(O.key===Ee){if(Ee=U.type,Ee===Ho){if(O.tag===7){a(R,O.sibling),K=f(O,U.props.children),K.return=R,K._debugOwner=U._owner,K._debugInfo=Re,Ld(U,K,R),R=K;break e}}else if(O.elementType===Ee||sw(O,U)||typeof Ee=="object"&&Ee!==null&&Ee.$$typeof===Wn&&_s(Ee)===O.type){a(R,O.sibling),K=f(O,U.props),lc(K,U),K.return=R,K._debugOwner=U._owner,K._debugInfo=Re,R=K;break e}a(R,O);break}else n(R,O);O=O.sibling}U.type===Ho?(K=_a(U.props.children,R.mode,K,U.key),K.return=R,K._debugOwner=R,K._debugTask=R._debugTask,K._debugInfo=Re,Ld(U,K,R),R=K):(K=Nd(U,R.mode,K),lc(K,U),K.return=R,K._debugInfo=Re,R=K)}return R=b(R),Re=oe,R;case $o:e:{for(oe=U,U=oe.key;O!==null;){if(O.key===U)if(O.tag===4&&O.stateNode.containerInfo===oe.containerInfo&&O.stateNode.implementation===oe.implementation){a(R,O.sibling),K=f(O,oe.children||[]),K.return=R,R=K;break e}else{a(R,O);break}else n(R,O);O=O.sibling}K=ap(oe,R.mode,K),K.return=R,R=K}return b(R);case Wn:return oe=Qt(U._debugInfo),U=_s(U),R=Ie(R,O,U,K),Re=oe,R}if(Ht(U))return oe=Qt(U._debugInfo),R=ce(R,O,U,K),Re=oe,R;if(W(U)){if(oe=Qt(U._debugInfo),Ee=W(U),typeof Ee!="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var ye=Ee.call(U);return ye===U?(R.tag!==0||Object.prototype.toString.call(R.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(ye)!=="[object Generator]")&&(LE||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),LE=!0):U.entries!==Ee||$y||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),$y=!0),R=st(R,O,ye,K),Re=oe,R}if(typeof U.then=="function")return oe=Qt(U._debugInfo),R=Ie(R,O,Ud(U),K),Re=oe,R;if(U.$$typeof===gi)return Ie(R,O,Dd(R,U),K);jd(R,U)}return typeof U=="string"&&U!==""||typeof U=="number"||typeof U=="bigint"?(oe=""+U,O!==null&&O.tag===6?(a(R,O.sibling),K=f(O,oe),K.return=R,R=K):(a(R,O),K=sp(oe,R.mode,K),K.return=R,K._debugOwner=R,K._debugTask=R._debugTask,K._debugInfo=Re,R=K),b(R)):(typeof U=="function"&&Vd(R,U),typeof U=="symbol"&&$d(R,U),a(R,O))}return function(R,O,U,K){var oe=Re;Re=null;try{iu=0;var Ee=Ie(R,O,U,K);return sl=null,Ee}catch(ct){if(ct===il||ct===Xf)throw ct;var ye=y(29,ct,null,R.mode);ye.lanes=K,ye.return=R;var me=ye._debugInfo=Re;if(ye._debugOwner=R._debugOwner,ye._debugTask=R._debugTask,me!=null){for(var ke=me.length-1;0<=ke;ke--)if(typeof me[ke].stack=="string"){ye._debugOwner=me[ke],ye._debugTask=me[ke].debugTask;break}}return ye}finally{Re=oe}}}function Dw(t,n){var a=Ht(t);return t=!a&&typeof W(t)=="function",a||t?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,n,a),!1):!0}function bp(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vp(t,n){t=t.updateQueue,n.updateQueue===t&&(n.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,callbacks:null})}function Ss(t){return{lane:t,tag:HE,payload:null,callback:null,next:null}}function Es(t,n,a){var c=t.updateQueue;if(c===null)return null;if(c=c.shared,Iy===c&&!PE){var f=J(t);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
147
+
148
+ Please update the following component: %s`,f),PE=!0}return(qe&zt)!==Jt?(f=c.pending,f===null?n.next=n:(n.next=f.next,f.next=n),c.pending=n,n=Td(t),iw(t,null,a),n):(xd(t,c,n,a),Td(t))}function cc(t,n,a){if(n=n.updateQueue,n!==null&&(n=n.shared,(a&4194048)!==0)){var c=n.lanes;c&=t.pendingLanes,a|=c,n.lanes=a,ga(t,a)}}function Hd(t,n){var a=t.updateQueue,c=t.alternate;if(c!==null&&(c=c.updateQueue,a===c)){var f=null,h=null;if(a=a.firstBaseUpdate,a!==null){do{var b={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};h===null?f=h=b:h=h.next=b,a=a.next}while(a!==null);h===null?f=h=n:h=h.next=n}else f=h=n;a={baseState:c.baseState,firstBaseUpdate:f,lastBaseUpdate:h,shared:c.shared,callbacks:c.callbacks},t.updateQueue=a;return}t=a.lastBaseUpdate,t===null?a.firstBaseUpdate=n:t.next=n,a.lastBaseUpdate=n}function uc(){if(zy){var t=rl;if(t!==null)throw t}}function dc(t,n,a,c){zy=!1;var f=t.updateQueue;Bs=!1,Iy=f.shared;var h=f.firstBaseUpdate,b=f.lastBaseUpdate,_=f.shared.pending;if(_!==null){f.shared.pending=null;var N=_,A=N.next;N.next=null,b===null?h=A:b.next=A,b=N;var j=t.alternate;j!==null&&(j=j.updateQueue,_=j.lastBaseUpdate,_!==b&&(_===null?j.firstBaseUpdate=A:_.next=A,j.lastBaseUpdate=N))}if(h!==null){var V=f.baseState;b=0,j=A=N=null,_=h;do{var M=_.lane&-536870913,P=M!==_.lane;if(P?(Me&M)===M:(c&M)===M){M!==0&&M===Ha&&(zy=!0),j!==null&&(j=j.next={lane:0,tag:_.tag,payload:_.payload,callback:null,next:null});e:{M=t;var ae=_,ce=n,st=a;switch(ae.tag){case IE:if(ae=ae.payload,typeof ae=="function"){tl=!0;var Ie=ae.call(st,V,ce);if(M.mode&cn){fe(!0);try{ae.call(st,V,ce)}finally{fe(!1)}}tl=!1,V=Ie;break e}V=ae;break e;case Hy:M.flags=M.flags&-65537|128;case HE:if(Ie=ae.payload,typeof Ie=="function"){if(tl=!0,ae=Ie.call(st,V,ce),M.mode&cn){fe(!0);try{Ie.call(st,V,ce)}finally{fe(!1)}}tl=!1}else ae=Ie;if(ae==null)break e;V=Ue({},V,ae);break e;case zE:Bs=!0}}M=_.callback,M!==null&&(t.flags|=64,P&&(t.flags|=8192),P=f.callbacks,P===null?f.callbacks=[M]:P.push(M))}else P={lane:M,tag:_.tag,payload:_.payload,callback:_.callback,next:null},j===null?(A=j=P,N=V):j=j.next=P,b|=M;if(_=_.next,_===null){if(_=f.shared.pending,_===null)break;P=_,_=P.next,P.next=null,f.lastBaseUpdate=P,f.shared.pending=null}}while(!0);j===null&&(N=V),f.baseState=N,f.firstBaseUpdate=A,f.lastBaseUpdate=j,h===null&&(f.shared.lanes=0),Gs|=b,t.lanes=b,t.memoizedState=V}Iy=null}function Rw(t,n){if(typeof t!="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+t);t.call(n)}function nD(t,n){var a=t.shared.hiddenCallbacks;if(a!==null)for(t.shared.hiddenCallbacks=null,t=0;t<a.length;t++)Rw(a[t],n)}function Mw(t,n){var a=t.callbacks;if(a!==null)for(t.callbacks=null,t=0;t<a.length;t++)Rw(a[t],n)}function Ow(t,n){var a=Ti;X(Kf,a,t),X(al,n,t),Ti=a|n.baseLanes}function wp(t){X(Kf,Ti,t),X(al,al.current,t)}function _p(t){Ti=Kf.current,q(al,t),q(Kf,t)}function xs(t){var n=t.alternate;X(Et,Et.current&ol,t),X(er,t,t),vr===null&&(n===null||al.current!==null||n.memoizedState!==null)&&(vr=t)}function Sp(t){X(Et,Et.current,t),X(er,t,t),vr===null&&(vr=t)}function Lw(t){t.tag===22?(X(Et,Et.current,t),X(er,t,t),vr===null&&(vr=t)):Ts(t)}function Ts(t){X(Et,Et.current,t),X(er,er.current,t)}function Xn(t){q(er,t),vr===t&&(vr=null),q(Et,t)}function Id(t){for(var n=t;n!==null;){if(n.tag===13){var a=n.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Ug(a)||jg(a)))return n}else if(n.tag===19&&(n.memoizedProps.revealOrder==="forwards"||n.memoizedProps.revealOrder==="backwards"||n.memoizedProps.revealOrder==="unstable_legacy-backwards"||n.memoizedProps.revealOrder==="together")){if((n.flags&128)!==0)return n}else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return null;n=n.return}n.sibling.return=n.return,n=n.sibling}return null}function Le(){var t=F;_r===null?_r=[t]:_r.push(t)}function re(){var t=F;if(_r!==null&&(es++,_r[es]!==t)){var n=J(Se);if(!BE.has(n)&&(BE.add(n),_r!==null)){for(var a="",c=0;c<=es;c++){var f=_r[c],h=c===es?t:f;for(f=c+1+". "+f;30>f.length;)f+=" ";f+=h+`
149
+ `,a+=f}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
150
+
151
+ Previous render Next render
152
+ ------------------------------------------------------
153
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
154
+ `,n,a)}}}function To(t){t==null||Ht(t)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",F,typeof t)}function zd(){var t=J(Se);FE.has(t)||(FE.add(t),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",t))}function _t(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
155
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
156
+ 2. You might be breaking the Rules of Hooks
157
+ 3. You might have more than one copy of React in the same app
158
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ep(t,n){if(ou)return!1;if(n===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",F),!1;t.length!==n.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
159
+
160
+ Previous: %s
161
+ Incoming: %s`,F,"["+n.join(", ")+"]","["+t.join(", ")+"]");for(var a=0;a<n.length&&a<t.length;a++)if(!vn(t[a],n[a]))return!1;return!0}function xp(t,n,a,c,f,h){Qi=h,Se=n,_r=t!==null?t._debugHookTypes:null,es=-1,ou=t!==null&&t.type!==n.type,(Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")&&(h=J(Se),Py.has(h)||(Py.add(h),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",h===null?"An unknown Component":"<"+h+">"))),n.memoizedState=null,n.updateQueue=null,n.lanes=0,G.H=t!==null&&t.memoizedState!==null?qy:_r!==null?GE:By,qa=h=(n.mode&cn)!==_e;var b=Uy(a,c,f);if(qa=!1,cl&&(b=Tp(n,a,c,f)),h){fe(!0);try{b=Tp(n,a,c,f)}finally{fe(!1)}}return Uw(t,n),b}function Uw(t,n){n._debugHookTypes=_r,n.dependencies===null?Zi!==null&&(n.dependencies={lanes:0,firstContext:null,_debugThenableState:Zi}):n.dependencies._debugThenableState=Zi,G.H=lu;var a=tt!==null&&tt.next!==null;if(Qi=0,_r=F=Mt=tt=Se=null,es=-1,t!==null&&(t.flags&65011712)!==(n.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Qf=!1,au=0,Zi=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");t===null||Ot||(t=t.dependencies,t!==null&&kd(t)&&(Ot=!0)),ru?(ru=!1,t=!0):t=!1,t&&(n=J(n)||"Unknown",qE.has(n)||Py.has(n)||(qE.add(n),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Tp(t,n,a,c){Se=t;var f=0;do{if(cl&&(Zi=null),au=0,cl=!1,f>=PM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(f+=1,ou=!1,Mt=tt=null,t.updateQueue!=null){var h=t.updateQueue;h.lastEffect=null,h.events=null,h.stores=null,h.memoCache!=null&&(h.memoCache.index=0)}es=-1,G.H=YE,h=Uy(n,a,c)}while(cl);return h}function rD(){var t=G.H,n=t.useState()[0];return n=typeof n.then=="function"?fc(n):n,t=t.useState()[0],(tt!==null?tt.memoizedState:null)!==t&&(Se.flags|=1024),n}function Np(){var t=Zf!==0;return Zf=0,t}function Ap(t,n,a){n.updateQueue=t.updateQueue,n.flags=(n.mode&Vr)!==_e?n.flags&-402655237:n.flags&-2053,t.lanes&=~a}function Cp(t){if(Qf){for(t=t.memoizedState;t!==null;){var n=t.queue;n!==null&&(n.pending=null),t=t.next}Qf=!1}Qi=0,_r=Mt=tt=Se=null,es=-1,F=null,cl=!1,au=Zf=0,Zi=null}function pn(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Mt===null?Se.memoizedState=Mt=t:Mt=Mt.next=t,Mt}function We(){if(tt===null){var t=Se.alternate;t=t!==null?t.memoizedState:null}else t=tt.next;var n=Mt===null?Se.memoizedState:Mt.next;if(n!==null)Mt=n,tt=t;else{if(t===null)throw Se.alternate===null?Error("Update hook called on initial render. This is likely a bug in React. Please file an issue."):Error("Rendered more hooks than during the previous render.");tt=t,t={memoizedState:tt.memoizedState,baseState:tt.baseState,baseQueue:tt.baseQueue,queue:tt.queue,next:null},Mt===null?Se.memoizedState=Mt=t:Mt=Mt.next=t}return Mt}function Pd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function fc(t){var n=au;return au+=1,Zi===null&&(Zi=_w()),t=Ew(Zi,t,n),n=Se,(Mt===null?n.memoizedState:Mt.next)===null&&(n=n.alternate,G.H=n!==null&&n.memoizedState!==null?qy:By),t}function Ns(t){if(t!==null&&typeof t=="object"){if(typeof t.then=="function")return fc(t);if(t.$$typeof===gi)return ut(t)}throw Error("An unsupported type was passed to use(): "+String(t))}function Na(t){var n=null,a=Se.updateQueue;if(a!==null&&(n=a.memoCache),n==null){var c=Se.alternate;c!==null&&(c=c.updateQueue,c!==null&&(c=c.memoCache,c!=null&&(n={data:c.data.map(function(f){return f.slice()}),index:0})))}if(n==null&&(n={data:[],index:0}),a===null&&(a=Pd(),Se.updateQueue=a),a.memoCache=n,a=n.data[n.index],a===void 0||ou)for(a=n.data[n.index]=Array(t),c=0;c<t;c++)a[c]=vR;else a.length!==t&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,t);return n.index++,a}function Lr(t,n){return typeof n=="function"?n(t):n}function kp(t,n,a){var c=pn();if(a!==void 0){var f=a(n);if(qa){fe(!0);try{a(n)}finally{fe(!1)}}}else f=n;return c.memoizedState=c.baseState=f,t={pending:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:f},c.queue=t,t=t.dispatch=lD.bind(null,Se,t),[c.memoizedState,t]}function No(t){var n=We();return Dp(n,tt,t)}function Dp(t,n,a){var c=t.queue;if(c===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");c.lastRenderedReducer=a;var f=t.baseQueue,h=c.pending;if(h!==null){if(f!==null){var b=f.next;f.next=h.next,h.next=b}n.baseQueue!==f&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),n.baseQueue=f=h,c.pending=null}if(h=t.baseState,f===null)t.memoizedState=h;else{n=f.next;var _=b=null,N=null,A=n,j=!1;do{var V=A.lane&-536870913;if(V!==A.lane?(Me&V)===V:(Qi&V)===V){var M=A.revertLane;if(M===0)N!==null&&(N=N.next={lane:0,revertLane:0,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null}),V===Ha&&(j=!0);else if((Qi&M)===M){A=A.next,M===Ha&&(j=!0);continue}else V={lane:0,revertLane:A.revertLane,gesture:null,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},N===null?(_=N=V,b=h):N=N.next=V,Se.lanes|=M,Gs|=M;V=A.action,qa&&a(h,V),h=A.hasEagerState?A.eagerState:a(h,V)}else M={lane:V,revertLane:A.revertLane,gesture:A.gesture,action:A.action,hasEagerState:A.hasEagerState,eagerState:A.eagerState,next:null},N===null?(_=N=M,b=h):N=N.next=M,Se.lanes|=V,Gs|=V;A=A.next}while(A!==null&&A!==n);if(N===null?b=h:N.next=_,!vn(h,t.memoizedState)&&(Ot=!0,j&&(a=rl,a!==null)))throw a;t.memoizedState=h,t.baseState=b,t.baseQueue=N,c.lastRenderedState=h}return f===null&&(c.lanes=0),[t.memoizedState,c.dispatch]}function hc(t){var n=We(),a=n.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=t;var c=a.dispatch,f=a.pending,h=n.memoizedState;if(f!==null){a.pending=null;var b=f=f.next;do h=t(h,b.action),b=b.next;while(b!==f);vn(h,n.memoizedState)||(Ot=!0),n.memoizedState=h,n.baseQueue===null&&(n.baseState=h),a.lastRenderedState=h}return[h,c]}function Rp(t,n,a){var c=Se,f=pn();if(Ve){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var h=a();ll||h===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),ll=!0)}else{if(h=n(),ll||(a=n(),vn(h,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ll=!0)),nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(Me&127)!==0||jw(c,n,h)}return f.memoizedState=h,a={value:h,getSnapshot:n},f.queue=a,Gd($w.bind(null,c,a,t),[t]),c.flags|=2048,Co(wr|Sn,{destroy:void 0},Vw.bind(null,c,a,h,n),null),h}function Bd(t,n,a){var c=Se,f=We(),h=Ve;if(h){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=n(),!ll){var b=n();vn(a,b)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),ll=!0)}(b=!vn((tt||f).memoizedState,a))&&(f.memoizedState=a,Ot=!0),f=f.queue;var _=$w.bind(null,c,f,t);if(Dn(2048,Sn,_,[t]),f.getSnapshot!==n||b||Mt!==null&&Mt.memoizedState.tag&wr){if(c.flags|=2048,Co(wr|Sn,{destroy:void 0},Vw.bind(null,c,f,a,n),null),nt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");h||(Qi&127)!==0||jw(c,n,a)}return a}function jw(t,n,a){t.flags|=16384,t={getSnapshot:n,value:a},n=Se.updateQueue,n===null?(n=Pd(),Se.updateQueue=n,n.stores=[t]):(a=n.stores,a===null?n.stores=[t]:a.push(t))}function Vw(t,n,a,c){n.value=a,n.getSnapshot=c,Hw(n)&&Iw(t)}function $w(t,n,a){return a(function(){Hw(n)&&(ni(2,"updateSyncExternalStore()",t),Iw(t))})}function Hw(t){var n=t.getSnapshot;t=t.value;try{var a=n();return!vn(t,a)}catch{return!0}}function Iw(t){var n=on(t,2);n!==null&&yt(n,t,2)}function Mp(t){var n=pn();if(typeof t=="function"){var a=t;if(t=a(),qa){fe(!0);try{a()}finally{fe(!1)}}}return n.memoizedState=n.baseState=t,n.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:t},n}function Op(t){t=Mp(t);var n=t.queue,a=s_.bind(null,Se,n);return n.dispatch=a,[t.memoizedState,a]}function Lp(t){var n=pn();n.memoizedState=n.baseState=t;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return n.queue=a,n=Xp.bind(null,Se,!0,a),a.dispatch=n,[t,n]}function zw(t,n){var a=We();return Pw(a,tt,t,n)}function Pw(t,n,a,c){return t.baseState=a,Dp(t,tt,typeof c=="function"?c:Lr)}function Bw(t,n){var a=We();return tt!==null?Pw(a,tt,t,n):(a.baseState=t,[t,a.queue.dispatch])}function iD(t,n,a,c,f){if(Qd(t))throw Error("Cannot update form state while rendering.");if(t=n.action,t!==null){var h={payload:f,action:t,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){h.listeners.push(b)}};G.T!==null?a(!0):h.isTransition=!1,c(h),a=n.pending,a===null?(h.next=n.pending=h,qw(n,h)):(h.next=a.next,n.pending=a.next=h)}}function qw(t,n){var a=n.action,c=n.payload,f=t.state;if(n.isTransition){var h=G.T,b={};b._updatedFibers=new Set,G.T=b;try{var _=a(f,c),N=G.S;N!==null&&N(b,_),Fw(t,n,_)}catch(A){Up(t,n,A)}finally{h!==null&&b.types!==null&&(h.types!==null&&h.types!==b.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),h.types=b.types),G.T=h,h===null&&b._updatedFibers&&(t=b._updatedFibers.size,b._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{b=a(f,c),Fw(t,n,b)}catch(A){Up(t,n,A)}}function Fw(t,n,a){a!==null&&typeof a=="object"&&typeof a.then=="function"?(G.asyncTransitions++,a.then(Wd,Wd),a.then(function(c){Gw(t,n,c)},function(c){return Up(t,n,c)}),n.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):Gw(t,n,a)}function Gw(t,n,a){n.status="fulfilled",n.value=a,Yw(n),t.state=a,n=t.pending,n!==null&&(a=n.next,a===n?t.pending=null:(a=a.next,n.next=a,qw(t,a)))}function Up(t,n,a){var c=t.pending;if(t.pending=null,c!==null){c=c.next;do n.status="rejected",n.reason=a,Yw(n),n=n.next;while(n!==c)}t.action=null}function Yw(t){t=t.listeners;for(var n=0;n<t.length;n++)(0,t[n])()}function Xw(t,n){return n}function Ao(t,n){if(Ve){var a=nt.formState;if(a!==null){e:{var c=Se;if(Ve){if(lt){t:{for(var f=lt,h=yr;f.nodeType!==8;){if(!h){f=null;break t}if(f=Kn(f.nextSibling),f===null){f=null;break t}}h=f.data,f=h===hb||h===Mx?f:null}if(f){lt=Kn(f.nextSibling),c=f.data===hb;break e}}vs(c)}c=!1}c&&(n=a[0])}}return a=pn(),a.memoizedState=a.baseState=n,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Xw,lastRenderedState:n},a.queue=c,a=s_.bind(null,Se,c),c.dispatch=a,c=Mp(!1),h=Xp.bind(null,Se,!1,c.queue),c=pn(),f={state:n,dispatch:null,action:t,pending:null},c.queue=f,a=iD.bind(null,Se,f,h,a),f.dispatch=a,c.memoizedState=t,[n,a,!1]}function qd(t){var n=We();return Jw(n,tt,t)}function Jw(t,n,a){if(n=Dp(t,n,Xw)[0],t=No(Lr)[0],typeof n=="object"&&n!==null&&typeof n.then=="function")try{var c=fc(n)}catch(b){throw b===il?Xf:b}else c=n;n=We();var f=n.queue,h=f.dispatch;return a!==n.memoizedState&&(Se.flags|=2048,Co(wr|Sn,{destroy:void 0},sD.bind(null,f,a),null)),[c,h,t]}function sD(t,n){t.action=n}function Fd(t){var n=We(),a=tt;if(a!==null)return Jw(n,a,t);We(),n=n.memoizedState,a=We();var c=a.queue.dispatch;return a.memoizedState=t,[n,c,!1]}function Co(t,n,a,c){return t={tag:t,create:a,deps:c,inst:n,next:null},n=Se.updateQueue,n===null&&(n=Pd(),Se.updateQueue=n),a=n.lastEffect,a===null?n.lastEffect=t.next=t:(c=a.next,a.next=t,t.next=c,n.lastEffect=t),t}function jp(t){var n=pn();return t={current:t},n.memoizedState=t}function Aa(t,n,a,c){var f=pn();Se.flags|=t,f.memoizedState=Co(wr|n,{destroy:void 0},a,c===void 0?null:c)}function Dn(t,n,a,c){var f=We();c=c===void 0?null:c;var h=f.memoizedState.inst;tt!==null&&c!==null&&Ep(c,tt.memoizedState.deps)?f.memoizedState=Co(n,h,a,c):(Se.flags|=t,f.memoizedState=Co(wr|n,h,a,c))}function Gd(t,n){(Se.mode&Vr)!==_e?Aa(276826112,Sn,t,n):Aa(8390656,Sn,t,n)}function aD(t){Se.flags|=4;var n=Se.updateQueue;if(n===null)n=Pd(),Se.updateQueue=n,n.events=[t];else{var a=n.events;a===null?n.events=[t]:a.push(t)}}function Vp(t){var n=pn(),a={impl:t};return n.memoizedState=a,function(){if((qe&zt)!==Jt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Yd(t){var n=We().memoizedState;return aD({ref:n,nextImpl:t}),function(){if((qe&zt)!==Jt)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return n.impl.apply(void 0,arguments)}}function $p(t,n){var a=4194308;return(Se.mode&Vr)!==_e&&(a|=134217728),Aa(a,tr,t,n)}function Kw(t,n){if(typeof n=="function"){t=t();var a=n(t);return function(){typeof a=="function"?a():n(null)}}if(n!=null)return n.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(n).join(", ")+"}"),t=t(),n.current=t,function(){n.current=null}}function Hp(t,n,a){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),a=a!=null?a.concat([t]):null;var c=4194308;(Se.mode&Vr)!==_e&&(c|=134217728),Aa(c,tr,Kw.bind(null,n,t),a)}function Xd(t,n,a){typeof n!="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",n!==null?typeof n:"null"),a=a!=null?a.concat([t]):null,Dn(4,tr,Kw.bind(null,n,t),a)}function Ip(t,n){return pn().memoizedState=[t,n===void 0?null:n],t}function Jd(t,n){var a=We();n=n===void 0?null:n;var c=a.memoizedState;return n!==null&&Ep(n,c[1])?c[0]:(a.memoizedState=[t,n],t)}function zp(t,n){var a=pn();n=n===void 0?null:n;var c=t();if(qa){fe(!0);try{t()}finally{fe(!1)}}return a.memoizedState=[c,n],c}function Kd(t,n){var a=We();n=n===void 0?null:n;var c=a.memoizedState;if(n!==null&&Ep(n,c[1]))return c[0];if(c=t(),qa){fe(!0);try{t()}finally{fe(!1)}}return a.memoizedState=[c,n],c}function Pp(t,n){var a=pn();return Bp(a,t,n)}function Ww(t,n){var a=We();return Zw(a,tt.memoizedState,t,n)}function Qw(t,n){var a=We();return tt===null?Bp(a,t,n):Zw(a,tt.memoizedState,t,n)}function Bp(t,n,a){return a===void 0||(Qi&1073741824)!==0&&(Me&261930)===0?t.memoizedState=n:(t.memoizedState=a,t=eS(),Se.lanes|=t,Gs|=t,a)}function Zw(t,n,a,c){return vn(a,n)?a:al.current!==null?(t=Bp(t,a,c),vn(t,n)||(Ot=!0),t):(Qi&42)===0||(Qi&1073741824)!==0&&(Me&261930)===0?(Ot=!0,t.memoizedState=a):(t=eS(),Se.lanes|=t,Gs|=t,n)}function Wd(){G.asyncTransitions--}function e_(t,n,a,c,f){var h=Ke.p;Ke.p=h!==0&&h<wi?h:wi;var b=G.T,_={};_._updatedFibers=new Set,G.T=_,Xp(t,!1,n,a);try{var N=f(),A=G.S;if(A!==null&&A(_,N),N!==null&&typeof N=="object"&&typeof N.then=="function"){G.asyncTransitions++,N.then(Wd,Wd);var j=tD(N,c);mc(t,n,j,Jn(t))}else mc(t,n,c,Jn(t))}catch(V){mc(t,n,{then:function(){},status:"rejected",reason:V},Jn(t))}finally{Ke.p=h,b!==null&&_.types!==null&&(b.types!==null&&b.types!==_.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),b.types=_.types),G.T=b,b===null&&_._updatedFibers&&(t=_._updatedFibers.size,_._updatedFibers.clear(),10<t&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function qp(t,n,a,c){if(t.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var f=t_(t).queue;Zk(t),e_(t,f,n,to,a===null?p:function(){return n_(t),a(c)})}function t_(t){var n=t.memoizedState;if(n!==null)return n;n={memoizedState:to,baseState:to,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:to},next:null};var a={};return n.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Lr,lastRenderedState:a},next:null},t.memoizedState=n,t=t.alternate,t!==null&&(t.memoizedState=n),n}function n_(t){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var n=t_(t);n.next===null&&(n=t.alternate.memoizedState),mc(t,n.next.queue,{},Jn(t))}function Fp(){var t=Mp(!1);return t=e_.bind(null,Se,t.queue,!0,!1),pn().memoizedState=t,[!1,t]}function r_(){var t=No(Lr)[0],n=We().memoizedState;return[typeof t=="boolean"?t:fc(t),n]}function i_(){var t=hc(Lr)[0],n=We().memoizedState;return[typeof t=="boolean"?t:fc(t),n]}function Ca(){return ut(Eu)}function Gp(){var t=pn(),n=nt.identifierPrefix;if(Ve){var a=Yi,c=Gi;a=(c&~(1<<32-gn(c)-1)).toString(32)+a,n="_"+n+"R_"+a,a=Zf++,0<a&&(n+="H"+a.toString(32)),n+="_"}else a=zM++,n="_"+n+"r_"+a.toString(32)+"_";return t.memoizedState=n}function Yp(){return pn().memoizedState=oD.bind(null,Se)}function oD(t,n){for(var a=t.return;a!==null;){switch(a.tag){case 24:case 3:var c=Jn(a),f=Ss(c),h=Es(a,f,c);h!==null&&(ni(c,"refresh()",t),yt(h,a,c),cc(h,a,c)),t=hp(),n!=null&&h!==null&&console.error("The seed argument is not enabled outside experimental channels."),f.payload={cache:t};return}a=a.return}}function lD(t,n,a){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Jn(t);var f={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Qd(t)?a_(n,f):(f=tp(t,n,f,c),f!==null&&(ni(c,"dispatch()",t),yt(f,t,c),o_(f,n,c)))}function s_(t,n,a){var c=arguments;typeof c[3]=="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),c=Jn(t),mc(t,n,a,c)&&ni(c,"setState()",t)}function mc(t,n,a,c){var f={lane:c,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Qd(t))a_(n,f);else{var h=t.alternate;if(t.lanes===0&&(h===null||h.lanes===0)&&(h=n.lastRenderedReducer,h!==null)){var b=G.H;G.H=Hr;try{var _=n.lastRenderedState,N=h(_,a);if(f.hasEagerState=!0,f.eagerState=N,vn(N,_))return xd(t,n,f,0),nt===null&&Ed(),!1}catch{}finally{G.H=b}}if(a=tp(t,n,f,c),a!==null)return yt(a,t,c),o_(a,n,c),!0}return!1}function Xp(t,n,a,c){if(G.T===null&&Ha===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),c={lane:2,revertLane:xg(),gesture:null,action:c,hasEagerState:!1,eagerState:null,next:null},Qd(t)){if(n)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else n=tp(t,a,c,2),n!==null&&(ni(2,"setOptimistic()",t),yt(n,t,2))}function Qd(t){var n=t.alternate;return t===Se||n!==null&&n===Se}function a_(t,n){cl=Qf=!0;var a=t.pending;a===null?n.next=n:(n.next=a.next,a.next=n),t.pending=n}function o_(t,n,a){if((a&4194048)!==0){var c=n.lanes;c&=t.pendingLanes,a|=c,n.lanes=a,ga(t,a)}}function Jp(t){if(t!==null&&typeof t!="function"){var n=String(t);ix.has(n)||(ix.add(n),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",t))}}function Kp(t,n,a,c){var f=t.memoizedState,h=a(c,f);if(t.mode&cn){fe(!0);try{h=a(c,f)}finally{fe(!1)}}h===void 0&&(n=B(n)||"Component",ex.has(n)||(ex.add(n),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",n))),f=h==null?f:Ue({},f,h),t.memoizedState=f,t.lanes===0&&(t.updateQueue.baseState=f)}function l_(t,n,a,c,f,h,b){var _=t.stateNode;if(typeof _.shouldComponentUpdate=="function"){if(a=_.shouldComponentUpdate(c,h,b),t.mode&cn){fe(!0);try{a=_.shouldComponentUpdate(c,h,b)}finally{fe(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",B(n)||"Component"),a}return n.prototype&&n.prototype.isPureReactComponent?!rc(a,c)||!rc(f,h):!0}function c_(t,n,a,c){var f=n.state;typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps(a,c),typeof n.UNSAFE_componentWillReceiveProps=="function"&&n.UNSAFE_componentWillReceiveProps(a,c),n.state!==f&&(t=J(t)||"Component",JE.has(t)||(JE.add(t),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",t)),Fy.enqueueReplaceState(n,n.state,null))}function ka(t,n){var a=n;if("ref"in n){a={};for(var c in n)c!=="ref"&&(a[c]=n[c])}if(t=t.defaultProps){a===n&&(a=Ue({},a));for(var f in t)a[f]===void 0&&(a[f]=t[f])}return a}function u_(t){Sy(t),console.warn(`%s
162
+
163
+ %s
164
+ `,ul?"An error occurred in the <"+ul+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
165
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function d_(t){var n=ul?"The above error occurred in the <"+ul+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Gy||"Anonymous")+".");if(typeof t=="object"&&t!==null&&typeof t.environmentName=="string"){var c=t.environmentName;t=[`%o
166
+
167
+ %s
168
+
169
+ %s
170
+ `,t,n,a].slice(0),typeof t[0]=="string"?t.splice(0,1,Ix+" "+t[0],zx,xh+c+xh,Px):t.splice(0,0,Ix,zx,xh+c+xh,Px),t.unshift(console),c=l3.apply(console.error,t),c()}else console.error(`%o
171
+
172
+ %s
173
+
174
+ %s
175
+ `,t,n,a)}function f_(t){Sy(t)}function Zd(t,n){try{ul=n.source?J(n.source):null,Gy=null;var a=n.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var c=t.onUncaughtError;c(a,{componentStack:n.stack})}}catch(f){setTimeout(function(){throw f})}}function h_(t,n,a){try{ul=a.source?J(a.source):null,Gy=J(n);var c=t.onCaughtError;c(a.value,{componentStack:a.stack,errorBoundary:n.tag===1?n.stateNode:null})}catch(f){setTimeout(function(){throw f})}}function Wp(t,n,a){return a=Ss(a),a.tag=Hy,a.payload={element:null},a.callback=function(){le(n.source,Zd,t,n)},a}function Qp(t){return t=Ss(t),t.tag=Hy,t}function Zp(t,n,a,c){var f=a.type.getDerivedStateFromError;if(typeof f=="function"){var h=c.value;t.payload=function(){return f(h)},t.callback=function(){aw(a),le(c.source,h_,n,a,c)}}var b=a.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(t.callback=function(){aw(a),le(c.source,h_,n,a,c),typeof f!="function"&&(Xs===null?Xs=new Set([this]):Xs.add(this)),VM(this,c),typeof f=="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",J(a)||"Unknown")})}function cD(t,n,a,c,f){if(a.flags|=32768,vi&&Sc(t,f),c!==null&&typeof c=="object"&&typeof c.then=="function"){if(n=a.alternate,n!==null&&xo(n,a,f,!0),Ve&&(Si=!0),a=er.current,a!==null){switch(a.tag){case 31:case 13:return vr===null?cf():a.alternate===null&&mt===ns&&(mt=nh),a.flags&=-257,a.flags|=65536,a.lanes=f,c===Jf?a.flags|=16384:(n=a.updateQueue,n===null?a.updateQueue=new Set([c]):n.add(c),wg(t,c,f)),!1;case 22:return a.flags|=65536,c===Jf?a.flags|=16384:(n=a.updateQueue,n===null?(n={transitions:null,markerInstances:null,retryQueue:new Set([c])},a.updateQueue=n):(a=n.retryQueue,a===null?n.retryQueue=new Set([c]):a.add(c)),wg(t,c,f)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return wg(t,c,f),cf(),!1}if(Ve)return Si=!0,n=er.current,n!==null?((n.flags&65536)===0&&(n.flags|=256),n.flags|=65536,n.lanes=f,c!==Cy&&ic(Fn(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:c}),a))):(c!==Cy&&ic(Fn(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:c}),a)),t=t.current.alternate,t.flags|=65536,f&=-f,t.lanes|=f,c=Fn(c,a),f=Wp(t.stateNode,c,f),Hd(t,f),mt!==qs&&(mt=Fa)),!1;var h=Fn(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:c}),a);if(mu===null?mu=[h]:mu.push(h),mt!==qs&&(mt=Fa),n===null)return!0;c=Fn(c,a),a=n;do{switch(a.tag){case 3:return a.flags|=65536,t=f&-f,a.lanes|=t,t=Wp(a.stateNode,c,t),Hd(a,t),!1;case 1:if(n=a.type,h=a.stateNode,(a.flags&128)===0&&(typeof n.getDerivedStateFromError=="function"||h!==null&&typeof h.componentDidCatch=="function"&&(Xs===null||!Xs.has(h))))return a.flags|=65536,f&=-f,a.lanes|=f,f=Qp(f),Zp(f,t,a,c),Hd(a,f),!1}a=a.return}while(a!==null);return!1}function Zt(t,n,a,c){n.child=t===null?$E(n,null,a,c):Ba(n,t.child,a,c)}function m_(t,n,a,c,f){a=a.render;var h=n.ref;if("ref"in c){var b={};for(var _ in c)_!=="ref"&&(b[_]=c[_])}else b=c;return xa(n),c=xp(t,n,a,b,h,f),_=Np(),t!==null&&!Ot?(Ap(t,n,f),Hi(t,n,f)):(Ve&&_&&op(n),n.flags|=1,Zt(t,n,c,f),n.child)}function p_(t,n,a,c,f){if(t===null){var h=a.type;return typeof h=="function"&&!rp(h)&&h.defaultProps===void 0&&a.compare===null?(a=wa(h),n.tag=15,n.type=a,tg(n,h),g_(t,n,a,c,f)):(t=ip(a.type,null,c,n,n.mode,f),t.ref=n.ref,t.return=n,n.child=t)}if(h=t.child,!og(t,f)){var b=h.memoizedProps;if(a=a.compare,a=a!==null?a:rc,a(b,c)&&t.ref===n.ref)return Hi(t,n,f)}return n.flags|=1,t=Ui(h,c),t.ref=n.ref,t.return=n,n.child=t}function g_(t,n,a,c,f){if(t!==null){var h=t.memoizedProps;if(rc(h,c)&&t.ref===n.ref&&n.type===t.type)if(Ot=!1,n.pendingProps=c=h,og(t,f))(t.flags&131072)!==0&&(Ot=!0);else return n.lanes=t.lanes,Hi(t,n,f)}return eg(t,n,a,c,f)}function y_(t,n,a,c){var f=c.children,h=t!==null?t.memoizedState:null;if(t===null&&n.stateNode===null&&(n.stateNode={_visibility:Bc,_pendingMarkers:null,_retryCache:null,_transitions:null}),c.mode==="hidden"){if((n.flags&128)!==0){if(h=h!==null?h.baseLanes|a:a,t!==null){for(c=n.child=t.child,f=0;c!==null;)f=f|c.lanes|c.childLanes,c=c.sibling;c=f&~h}else c=0,n.child=null;return b_(t,n,h,a,c)}if((a&536870912)!==0)n.memoizedState={baseLanes:0,cachePool:null},t!==null&&Od(n,h!==null?h.cachePool:null),h!==null?Ow(n,h):wp(n),Lw(n);else return c=n.lanes=536870912,b_(t,n,h!==null?h.baseLanes|a:a,a,c)}else h!==null?(Od(n,h.cachePool),Ow(n,h),Ts(n),n.memoizedState=null):(t!==null&&Od(n,null),wp(n),Ts(n));return Zt(t,n,f,a),n.child}function pc(t,n){return t!==null&&t.tag===22||n.stateNode!==null||(n.stateNode={_visibility:Bc,_pendingMarkers:null,_retryCache:null,_transitions:null}),n.sibling}function b_(t,n,a,c,f){var h=gp();return h=h===null?null:{parent:Dt._currentValue,pool:h},n.memoizedState={baseLanes:a,cachePool:h},t!==null&&Od(n,null),wp(n),Lw(n),t!==null&&xo(t,n,c,!0),n.childLanes=f,null}function ef(t,n){var a=n.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
176
+ - <Activity %s>
177
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),n=nf({mode:n.mode,children:n.children},t.mode),n.ref=t.ref,t.child=n,n.return=t,n}function v_(t,n,a){return Ba(n,t.child,null,a),t=ef(n,n.pendingProps),t.flags|=2,Xn(n),n.memoizedState=null,t}function uD(t,n,a){var c=n.pendingProps,f=(n.flags&128)!==0;if(n.flags&=-129,t===null){if(Ve){if(c.mode==="hidden")return t=ef(n,c),n.lanes=536870912,pc(null,t);if(Sp(n),(t=lt)?(a=qS(t,yr),a=a!==null&&a.data===Wa?a:null,a!==null&&(c={dehydrated:a,treeContext:dw(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=cw(a),c.return=n,n.child=c,nn=n,lt=null)):a=null,a===null)throw Ad(n,t),vs(n);return n.lanes=536870912,null}return ef(n,c)}var h=t.memoizedState;if(h!==null){var b=h.dehydrated;if(Sp(n),f)if(n.flags&256)n.flags&=-257,n=v_(t,n,a);else if(n.memoizedState!==null)n.child=t.child,n.flags|=128,n=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(hw(),(a&536870912)!==0&&lf(n),Ot||xo(t,n,a,!1),f=(a&t.childLanes)!==0,Ot||f){if(c=nt,c!==null&&(b=Bn(c,a),b!==0&&b!==h.retryLane))throw h.retryLane=b,on(t,b),yt(c,t,b),Yy;cf(),n=v_(t,n,a)}else t=h.treeContext,lt=Kn(b.nextSibling),nn=n,Ve=!0,$s=null,Si=!1,Zn=null,yr=!1,t!==null&&fw(n,t),n=ef(n,c),n.flags|=4096;return n}return h=t.child,c={mode:c.mode,children:c.children},(a&536870912)!==0&&(a&t.lanes)!==0&&lf(n),t=Ui(h,c),t.ref=n.ref,n.child=t,t.return=n,t}function tf(t,n){var a=n.ref;if(a===null)t!==null&&t.ref!==null&&(n.flags|=4194816);else{if(typeof a!="function"&&typeof a!="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");(t===null||t.ref!==a)&&(n.flags|=4194816)}}function eg(t,n,a,c,f){if(a.prototype&&typeof a.prototype.render=="function"){var h=B(a)||"Unknown";sx[h]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",h,h),sx[h]=!0)}return n.mode&cn&&$r.recordLegacyContextWarning(n,null),t===null&&(tg(n,n.type),a.contextTypes&&(h=B(a)||"Unknown",ox[h]||(ox[h]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",h)))),xa(n),a=xp(t,n,a,c,void 0,f),c=Np(),t!==null&&!Ot?(Ap(t,n,f),Hi(t,n,f)):(Ve&&c&&op(n),n.flags|=1,Zt(t,n,a,f),n.child)}function w_(t,n,a,c,f,h){return xa(n),es=-1,ou=t!==null&&t.type!==n.type,n.updateQueue=null,a=Tp(n,c,a,f),Uw(t,n),c=Np(),t!==null&&!Ot?(Ap(t,n,h),Hi(t,n,h)):(Ve&&c&&op(n),n.flags|=1,Zt(t,n,a,h),n.child)}function __(t,n,a,c,f){switch(u(n)){case!1:var h=n.stateNode,b=new n.type(n.memoizedProps,h.context).state;h.updater.enqueueSetState(h,b,null);break;case!0:n.flags|=128,n.flags|=65536,h=Error("Simulated error coming from DevTools");var _=f&-f;if(n.lanes|=_,b=nt,b===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");_=Qp(_),Zp(_,b,n,Fn(h,n)),Hd(n,_)}if(xa(n),n.stateNode===null){if(b=Vs,h=a.contextType,"contextType"in a&&h!==null&&(h===void 0||h.$$typeof!==gi)&&!rx.has(a)&&(rx.add(a),_=h===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof h!="object"?" However, it is set to a "+typeof h+".":h.$$typeof===Xg?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(h).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",B(a)||"Component",_)),typeof h=="object"&&h!==null&&(b=ut(h)),h=new a(c,b),n.mode&cn){fe(!0);try{h=new a(c,b)}finally{fe(!1)}}if(b=n.memoizedState=h.state!==null&&h.state!==void 0?h.state:null,h.updater=Fy,n.stateNode=h,h._reactInternals=n,h._reactInternalInstance=XE,typeof a.getDerivedStateFromProps=="function"&&b===null&&(b=B(a)||"Component",KE.has(b)||(KE.add(b),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",b,h.state===null?"null":"undefined",b))),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"){var N=_=b=null;if(typeof h.componentWillMount=="function"&&h.componentWillMount.__suppressDeprecationWarning!==!0?b="componentWillMount":typeof h.UNSAFE_componentWillMount=="function"&&(b="UNSAFE_componentWillMount"),typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps.__suppressDeprecationWarning!==!0?_="componentWillReceiveProps":typeof h.UNSAFE_componentWillReceiveProps=="function"&&(_="UNSAFE_componentWillReceiveProps"),typeof h.componentWillUpdate=="function"&&h.componentWillUpdate.__suppressDeprecationWarning!==!0?N="componentWillUpdate":typeof h.UNSAFE_componentWillUpdate=="function"&&(N="UNSAFE_componentWillUpdate"),b!==null||_!==null||N!==null){h=B(a)||"Component";var A=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";QE.has(h)||(QE.add(h),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
178
+
179
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
180
+
181
+ The above lifecycles should be removed. Learn more about this warning here:
182
+ https://react.dev/link/unsafe-component-lifecycles`,h,A,b!==null?`
183
+ `+b:"",_!==null?`
184
+ `+_:"",N!==null?`
185
+ `+N:""))}}h=n.stateNode,b=B(a)||"Component",h.render||(a.prototype&&typeof a.prototype.render=="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",b):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",b)),!h.getInitialState||h.getInitialState.isReactClassApproved||h.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",b),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",b),h.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",b),a.childContextTypes&&!nx.has(a)&&(nx.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",b)),a.contextTypes&&!tx.has(a)&&(tx.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",b)),typeof h.componentShouldUpdate=="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",b),a.prototype&&a.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",B(a)||"A pure component"),typeof h.componentDidUnmount=="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",b),typeof h.componentDidReceiveProps=="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",b),typeof h.componentWillRecieveProps=="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",b),typeof h.UNSAFE_componentWillRecieveProps=="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",b),_=h.props!==c,h.props!==void 0&&_&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",b),h.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",b,b),typeof h.getSnapshotBeforeUpdate!="function"||typeof h.componentDidUpdate=="function"||WE.has(a)||(WE.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",B(a))),typeof h.getDerivedStateFromProps=="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",b),typeof h.getDerivedStateFromError=="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",b),typeof a.getSnapshotBeforeUpdate=="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",b),(_=h.state)&&(typeof _!="object"||Ht(_))&&console.error("%s.state: must be set to an object or null",b),typeof h.getChildContext=="function"&&typeof a.childContextTypes!="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",b),h=n.stateNode,h.props=c,h.state=n.memoizedState,h.refs={},bp(n),b=a.contextType,h.context=typeof b=="object"&&b!==null?ut(b):Vs,h.state===c&&(b=B(a)||"Component",ZE.has(b)||(ZE.add(b),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",b))),n.mode&cn&&$r.recordLegacyContextWarning(n,h),$r.recordUnsafeLifecycleWarnings(n,h),h.state=n.memoizedState,b=a.getDerivedStateFromProps,typeof b=="function"&&(Kp(n,a,b,c),h.state=n.memoizedState),typeof a.getDerivedStateFromProps=="function"||typeof h.getSnapshotBeforeUpdate=="function"||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(b=h.state,typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount(),b!==h.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",J(n)||"Component"),Fy.enqueueReplaceState(h,h.state,null)),dc(n,c,h,f),uc(),h.state=n.memoizedState),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Vr)!==_e&&(n.flags|=134217728),h=!0}else if(t===null){h=n.stateNode;var j=n.memoizedProps;_=ka(a,j),h.props=_;var V=h.context;N=a.contextType,b=Vs,typeof N=="object"&&N!==null&&(b=ut(N)),A=a.getDerivedStateFromProps,N=typeof A=="function"||typeof h.getSnapshotBeforeUpdate=="function",j=n.pendingProps!==j,N||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(j||V!==b)&&c_(n,h,c,b),Bs=!1;var M=n.memoizedState;h.state=M,dc(n,c,h,f),uc(),V=n.memoizedState,j||M!==V||Bs?(typeof A=="function"&&(Kp(n,a,A,c),V=n.memoizedState),(_=Bs||l_(n,a,_,c,M,V,b))?(N||typeof h.UNSAFE_componentWillMount!="function"&&typeof h.componentWillMount!="function"||(typeof h.componentWillMount=="function"&&h.componentWillMount(),typeof h.UNSAFE_componentWillMount=="function"&&h.UNSAFE_componentWillMount()),typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Vr)!==_e&&(n.flags|=134217728)):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Vr)!==_e&&(n.flags|=134217728),n.memoizedProps=c,n.memoizedState=V),h.props=c,h.state=V,h.context=b,h=_):(typeof h.componentDidMount=="function"&&(n.flags|=4194308),(n.mode&Vr)!==_e&&(n.flags|=134217728),h=!1)}else{h=n.stateNode,vp(t,n),b=n.memoizedProps,N=ka(a,b),h.props=N,A=n.pendingProps,M=h.context,V=a.contextType,_=Vs,typeof V=="object"&&V!==null&&(_=ut(V)),j=a.getDerivedStateFromProps,(V=typeof j=="function"||typeof h.getSnapshotBeforeUpdate=="function")||typeof h.UNSAFE_componentWillReceiveProps!="function"&&typeof h.componentWillReceiveProps!="function"||(b!==A||M!==_)&&c_(n,h,c,_),Bs=!1,M=n.memoizedState,h.state=M,dc(n,c,h,f),uc();var P=n.memoizedState;b!==A||M!==P||Bs||t!==null&&t.dependencies!==null&&kd(t.dependencies)?(typeof j=="function"&&(Kp(n,a,j,c),P=n.memoizedState),(N=Bs||l_(n,a,N,c,M,P,_)||t!==null&&t.dependencies!==null&&kd(t.dependencies))?(V||typeof h.UNSAFE_componentWillUpdate!="function"&&typeof h.componentWillUpdate!="function"||(typeof h.componentWillUpdate=="function"&&h.componentWillUpdate(c,P,_),typeof h.UNSAFE_componentWillUpdate=="function"&&h.UNSAFE_componentWillUpdate(c,P,_)),typeof h.componentDidUpdate=="function"&&(n.flags|=4),typeof h.getSnapshotBeforeUpdate=="function"&&(n.flags|=1024)):(typeof h.componentDidUpdate!="function"||b===t.memoizedProps&&M===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&M===t.memoizedState||(n.flags|=1024),n.memoizedProps=c,n.memoizedState=P),h.props=c,h.state=P,h.context=_,h=N):(typeof h.componentDidUpdate!="function"||b===t.memoizedProps&&M===t.memoizedState||(n.flags|=4),typeof h.getSnapshotBeforeUpdate!="function"||b===t.memoizedProps&&M===t.memoizedState||(n.flags|=1024),h=!1)}if(_=h,tf(t,n),b=(n.flags&128)!==0,_||b){if(_=n.stateNode,Cn(n),b&&typeof a.getDerivedStateFromError!="function")a=null,wn=-1;else if(a=xE(_),n.mode&cn){fe(!0);try{xE(_)}finally{fe(!1)}}n.flags|=1,t!==null&&b?(n.child=Ba(n,t.child,null,f),n.child=Ba(n,null,a,f)):Zt(t,n,a,f),n.memoizedState=_.state,t=n.child}else t=Hi(t,n,f);return f=n.stateNode,h&&f.props!==c&&(dl||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",J(n)||"a component"),dl=!0),t}function S_(t,n,a,c){return Ea(),n.flags|=256,Zt(t,n,a,c),n.child}function tg(t,n){n&&n.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
186
+ %s.childContextTypes = ...`,n.displayName||n.name||"Component"),typeof n.getDerivedStateFromProps=="function"&&(t=B(n)||"Unknown",lx[t]||(console.error("%s: Function components do not support getDerivedStateFromProps.",t),lx[t]=!0)),typeof n.contextType=="object"&&n.contextType!==null&&(n=B(n)||"Unknown",ax[n]||(console.error("%s: Function components do not support contextType.",n),ax[n]=!0))}function ng(t){return{baseLanes:t,cachePool:ww()}}function rg(t,n,a){return t=t!==null?t.childLanes&~a:0,n&&(t|=Un),t}function E_(t,n,a){var c,f=n.pendingProps;l(n)&&(n.flags|=128);var h=!1,b=(n.flags&128)!==0;if((c=b)||(c=t!==null&&t.memoizedState===null?!1:(Et.current&su)!==0),c&&(h=!0,n.flags&=-129),c=(n.flags&32)!==0,n.flags&=-33,t===null){if(Ve){if(h?xs(n):Ts(n),(t=lt)?(a=qS(t,yr),a=a!==null&&a.data!==Wa?a:null,a!==null&&(c={dehydrated:a,treeContext:dw(),retryLane:536870912,hydrationErrors:null},n.memoizedState=c,c=cw(a),c.return=n,n.child=c,nn=n,lt=null)):a=null,a===null)throw Ad(n,t),vs(n);return jg(a)?n.lanes=32:n.lanes=536870912,null}var _=f.children;if(f=f.fallback,h){Ts(n);var N=n.mode;return _=nf({mode:"hidden",children:_},N),f=_a(f,N,a,null),_.return=n,f.return=n,_.sibling=f,n.child=_,f=n.child,f.memoizedState=ng(a),f.childLanes=rg(t,c,a),n.memoizedState=Xy,pc(null,f)}return xs(n),ig(n,_)}var A=t.memoizedState;if(A!==null){var j=A.dehydrated;if(j!==null){if(b)n.flags&256?(xs(n),n.flags&=-257,n=sg(t,n,a)):n.memoizedState!==null?(Ts(n),n.child=t.child,n.flags|=128,n=null):(Ts(n),_=f.fallback,N=n.mode,f=nf({mode:"visible",children:f.children},N),_=_a(_,N,a,null),_.flags|=2,f.return=n,_.return=n,f.sibling=_,n.child=f,Ba(n,t.child,null,a),f=n.child,f.memoizedState=ng(a),f.childLanes=rg(t,c,a),n.memoizedState=Xy,n=pc(null,f));else if(xs(n),hw(),(a&536870912)!==0&&lf(n),jg(j)){if(c=j.nextSibling&&j.nextSibling.dataset,c){_=c.dgst;var V=c.msg;N=c.stck;var M=c.cstck}h=V,c=_,f=N,j=M,_=h,N=j,_=Error(_||"The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),_.stack=f||"",_.digest=c,c=N===void 0?null:N,f={value:_,source:null,stack:c},typeof c=="string"&&Ay.set(_,f),ic(f),n=sg(t,n,a)}else if(Ot||xo(t,n,a,!1),c=(a&t.childLanes)!==0,Ot||c){if(c=nt,c!==null&&(f=Bn(c,a),f!==0&&f!==A.retryLane))throw A.retryLane=f,on(t,f),yt(c,t,f),Yy;Ug(j)||cf(),n=sg(t,n,a)}else Ug(j)?(n.flags|=192,n.child=t.child,n=null):(t=A.treeContext,lt=Kn(j.nextSibling),nn=n,Ve=!0,$s=null,Si=!1,Zn=null,yr=!1,t!==null&&fw(n,t),n=ig(n,f.children),n.flags|=4096);return n}}return h?(Ts(n),_=f.fallback,N=n.mode,M=t.child,j=M.sibling,f=Ui(M,{mode:"hidden",children:f.children}),f.subtreeFlags=M.subtreeFlags&65011712,j!==null?_=Ui(j,_):(_=_a(_,N,a,null),_.flags|=2),_.return=n,f.return=n,f.sibling=_,n.child=f,pc(null,f),f=n.child,_=t.child.memoizedState,_===null?_=ng(a):(N=_.cachePool,N!==null?(M=Dt._currentValue,N=N.parent!==M?{parent:M,pool:M}:N):N=ww(),_={baseLanes:_.baseLanes|a,cachePool:N}),f.memoizedState=_,f.childLanes=rg(t,c,a),n.memoizedState=Xy,pc(t.child,f)):(A!==null&&(a&62914560)===a&&(a&t.lanes)!==0&&lf(n),xs(n),a=t.child,t=a.sibling,a=Ui(a,{mode:"visible",children:f.children}),a.return=n,a.sibling=null,t!==null&&(c=n.deletions,c===null?(n.deletions=[t],n.flags|=16):c.push(t)),n.child=a,n.memoizedState=null,a)}function ig(t,n){return n=nf({mode:"visible",children:n},t.mode),n.return=t,t.child=n}function nf(t,n){return t=y(22,t,null,n),t.lanes=0,t}function sg(t,n,a){return Ba(n,t.child,null,a),t=ig(n,n.pendingProps.children),t.flags|=2,n.memoizedState=null,t}function x_(t,n,a){t.lanes|=n;var c=t.alternate;c!==null&&(c.lanes|=n),dp(t.return,n,a)}function ag(t,n,a,c,f,h){var b=t.memoizedState;b===null?t.memoizedState={isBackwards:n,rendering:null,renderingStartTime:0,last:c,tail:a,tailMode:f,treeForkCount:h}:(b.isBackwards=n,b.rendering=null,b.renderingStartTime=0,b.last=c,b.tail=a,b.tailMode=f,b.treeForkCount=h)}function T_(t,n,a){var c=n.pendingProps,f=c.revealOrder,h=c.tail,b=c.children,_=Et.current;if((c=(_&su)!==0)?(_=_&ol|su,n.flags|=128):_&=ol,X(Et,_,n),_=f??"null",f!=="forwards"&&f!=="unstable_legacy-backwards"&&f!=="together"&&f!=="independent"&&!cx[_])if(cx[_]=!0,f==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(f==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof f=="string")switch(f.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',f,f.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',f,f.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',f)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',f);_=h??"null",th[_]||(h==null?(f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards")&&(th[_]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')):h!=="visible"&&h!=="collapsed"&&h!=="hidden"?(th[_]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',h)):f!=="forwards"&&f!=="backwards"&&f!=="unstable_legacy-backwards"&&(th[_]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',h)));e:if((f==="forwards"||f==="backwards"||f==="unstable_legacy-backwards")&&b!==void 0&&b!==null&&b!==!1)if(Ht(b)){for(_=0;_<b.length;_++)if(!Dw(b[_],_))break e}else if(_=W(b),typeof _=="function"){if(_=_.call(b))for(var N=_.next(),A=0;!N.done;N=_.next()){if(!Dw(N.value,A))break e;A++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',f);if(Zt(t,n,b,a),Ve?(bs(),b=qc):b=0,!c&&t!==null&&(t.flags&128)!==0)e:for(t=n.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&x_(t,a,n);else if(t.tag===19)x_(t,a,n);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===n)break e;for(;t.sibling===null;){if(t.return===null||t.return===n)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}switch(f){case"forwards":for(a=n.child,f=null;a!==null;)t=a.alternate,t!==null&&Id(t)===null&&(f=a),a=a.sibling;a=f,a===null?(f=n.child,n.child=null):(f=a.sibling,a.sibling=null),ag(n,!1,f,a,h,b);break;case"backwards":case"unstable_legacy-backwards":for(a=null,f=n.child,n.child=null;f!==null;){if(t=f.alternate,t!==null&&Id(t)===null){n.child=f;break}t=f.sibling,f.sibling=a,a=f,f=t}ag(n,!0,a,null,h,b);break;case"together":ag(n,!1,null,null,void 0,b);break;default:n.memoizedState=null}return n.child}function Hi(t,n,a){if(t!==null&&(n.dependencies=t.dependencies),wn=-1,Gs|=n.lanes,(a&n.childLanes)===0)if(t!==null){if(xo(t,n,a,!1),(a&n.childLanes)===0)return null}else return null;if(t!==null&&n.child!==t.child)throw Error("Resuming work not yet implemented.");if(n.child!==null){for(t=n.child,a=Ui(t,t.pendingProps),n.child=a,a.return=n;t.sibling!==null;)t=t.sibling,a=a.sibling=Ui(t,t.pendingProps),a.return=n;a.sibling=null}return n.child}function og(t,n){return(t.lanes&n)!==0?!0:(t=t.dependencies,!!(t!==null&&kd(t)))}function dD(t,n,a){switch(n.tag){case 3:Fe(n,n.stateNode.containerInfo),ws(n,Dt,t.memoizedState.cache),Ea();break;case 27:case 5:ge(n);break;case 4:Fe(n,n.stateNode.containerInfo);break;case 10:ws(n,n.type,n.memoizedProps.value);break;case 12:(a&n.childLanes)!==0&&(n.flags|=4),n.flags|=2048;var c=n.stateNode;c.effectDuration=-0,c.passiveEffectDuration=-0;break;case 31:if(n.memoizedState!==null)return n.flags|=128,Sp(n),null;break;case 13:if(c=n.memoizedState,c!==null)return c.dehydrated!==null?(xs(n),n.flags|=128,null):(a&n.child.childLanes)!==0?E_(t,n,a):(xs(n),t=Hi(t,n,a),t!==null?t.sibling:null);xs(n);break;case 19:var f=(t.flags&128)!==0;if(c=(a&n.childLanes)!==0,c||(xo(t,n,a,!1),c=(a&n.childLanes)!==0),f){if(c)return T_(t,n,a);n.flags|=128}if(f=n.memoizedState,f!==null&&(f.rendering=null,f.tail=null,f.lastEffect=null),X(Et,Et.current,n),c)break;return null;case 22:return n.lanes=0,y_(t,n,a,n.pendingProps);case 24:ws(n,Dt,t.memoizedState.cache)}return Hi(t,n,a)}function lg(t,n,a){if(n._debugNeedsRemount&&t!==null){a=ip(n.type,n.key,n.pendingProps,n._debugOwner||null,n.mode,n.lanes),a._debugStack=n._debugStack,a._debugTask=n._debugTask;var c=n.return;if(c===null)throw Error("Cannot swap the root fiber.");if(t.alternate=null,n.alternate=null,a.index=n.index,a.sibling=n.sibling,a.return=n.return,a.ref=n.ref,a._debugInfo=n._debugInfo,n===c.child)c.child=a;else{var f=c.child;if(f===null)throw Error("Expected parent to have a child.");for(;f.sibling!==n;)if(f=f.sibling,f===null)throw Error("Expected to find the previous sibling.");f.sibling=a}return n=c.deletions,n===null?(c.deletions=[t],c.flags|=16):n.push(t),a.flags|=2,a}if(t!==null)if(t.memoizedProps!==n.pendingProps||n.type!==t.type)Ot=!0;else{if(!og(t,a)&&(n.flags&128)===0)return Ot=!1,dD(t,n,a);Ot=(t.flags&131072)!==0}else Ot=!1,(c=Ve)&&(bs(),c=(n.flags&1048576)!==0),c&&(c=n.index,bs(),uw(n,qc,c));switch(n.lanes=0,n.tag){case 16:e:if(c=n.pendingProps,t=_s(n.elementType),n.type=t,typeof t=="function")rp(t)?(c=ka(t,c),n.tag=1,n.type=t=wa(t),n=__(null,n,t,c,a)):(n.tag=0,tg(n,t),n.type=t=wa(t),n=eg(null,n,t,c,a));else{if(t!=null){if(f=t.$$typeof,f===Rc){n.tag=11,n.type=t=np(t),n=m_(null,n,t,c,a);break e}else if(f===Ef){n.tag=14,n=p_(null,n,t,c,a);break e}}throw n="",t!==null&&typeof t=="object"&&t.$$typeof===Wn&&(n=" Did you wrap a component in React.lazy() more than once?"),a=B(t)||t,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+n)}return n;case 0:return eg(t,n,n.type,n.pendingProps,a);case 1:return c=n.type,f=ka(c,n.pendingProps),__(t,n,c,f,a);case 3:e:{if(Fe(n,n.stateNode.containerInfo),t===null)throw Error("Should have a current fiber. This is a bug in React.");c=n.pendingProps;var h=n.memoizedState;f=h.element,vp(t,n),dc(n,c,null,a);var b=n.memoizedState;if(c=b.cache,ws(n,Dt,c),c!==h.cache&&fp(n,[Dt],a,!0),uc(),c=b.element,h.isDehydrated)if(h={element:c,isDehydrated:!1,cache:b.cache},n.updateQueue.baseState=h,n.memoizedState=h,n.flags&256){n=S_(t,n,c,a);break e}else if(c!==f){f=Fn(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),n),ic(f),n=S_(t,n,c,a);break e}else{switch(t=n.stateNode.containerInfo,t.nodeType){case 9:t=t.body;break;default:t=t.nodeName==="HTML"?t.ownerDocument.body:t}for(lt=Kn(t.firstChild),nn=n,Ve=!0,$s=null,Si=!1,Zn=null,yr=!0,a=$E(n,null,c,a),n.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(Ea(),c===f){n=Hi(t,n,a);break e}Zt(t,n,c,a)}n=n.child}return n;case 26:return tf(t,n),t===null?(a=KS(n.type,null,n.pendingProps,null))?n.memoizedState=a:Ve||(a=n.type,t=n.pendingProps,c=se(Rs.current),c=hf(c).createElement(a),c[tn]=n,c[yn]=t,en(c,a,t),pe(c),n.stateNode=c):n.memoizedState=KS(n.type,t.memoizedProps,n.pendingProps,t.memoizedState),null;case 27:return ge(n),t===null&&Ve&&(c=se(Rs.current),f=de(),c=n.stateNode=XS(n.type,n.pendingProps,c,f,!1),Si||(f=jS(c,n.type,n.pendingProps,f),f!==null&&(Sa(n,0).serverProps=f)),nn=n,yr=!0,f=lt,ks(n.type)?(yb=f,lt=Kn(c.firstChild)):lt=f),Zt(t,n,n.pendingProps.children,a),tf(t,n),t===null&&(n.flags|=4194304),n.child;case 5:return t===null&&Ve&&(h=de(),c=Ym(n.type,h.ancestorInfo),f=lt,(b=!f)||(b=ZD(f,n.type,n.pendingProps,yr),b!==null?(n.stateNode=b,Si||(h=jS(b,n.type,n.pendingProps,h),h!==null&&(Sa(n,0).serverProps=h)),nn=n,lt=Kn(b.firstChild),yr=!1,h=!0):h=!1,b=!h),b&&(c&&Ad(n,f),vs(n))),ge(n),f=n.type,h=n.pendingProps,b=t!==null?t.memoizedProps:null,c=h.children,Og(f,h)?c=null:b!==null&&Og(f,b)&&(n.flags|=32),n.memoizedState!==null&&(f=xp(t,n,rD,null,null,a),Eu._currentValue=f),tf(t,n),Zt(t,n,c,a),n.child;case 6:return t===null&&Ve&&(a=n.pendingProps,t=de(),c=t.ancestorInfo.current,a=c!=null?yd(a,c.tag,t.ancestorInfo.implicitRootScope):!0,t=lt,(c=!t)||(c=eR(t,n.pendingProps,yr),c!==null?(n.stateNode=c,nn=n,lt=null,c=!0):c=!1,c=!c),c&&(a&&Ad(n,t),vs(n))),null;case 13:return E_(t,n,a);case 4:return Fe(n,n.stateNode.containerInfo),c=n.pendingProps,t===null?n.child=Ba(n,null,c,a):Zt(t,n,c,a),n.child;case 11:return m_(t,n,n.type,n.pendingProps,a);case 7:return Zt(t,n,n.pendingProps,a),n.child;case 8:return Zt(t,n,n.pendingProps.children,a),n.child;case 12:return n.flags|=4,n.flags|=2048,c=n.stateNode,c.effectDuration=-0,c.passiveEffectDuration=-0,Zt(t,n,n.pendingProps.children,a),n.child;case 10:return c=n.type,f=n.pendingProps,h=f.value,"value"in f||ux||(ux=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ws(n,c,h),Zt(t,n,f.children,a),n.child;case 9:return f=n.type._context,c=n.pendingProps.children,typeof c!="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),xa(n),f=ut(f),c=Uy(c,f,void 0),n.flags|=1,Zt(t,n,c,a),n.child;case 14:return p_(t,n,n.type,n.pendingProps,a);case 15:return g_(t,n,n.type,n.pendingProps,a);case 19:return T_(t,n,a);case 31:return uD(t,n,a);case 22:return y_(t,n,a,n.pendingProps);case 24:return xa(n),c=ut(Dt),t===null?(f=gp(),f===null&&(f=nt,h=hp(),f.pooledCache=h,Ta(h),h!==null&&(f.pooledCacheLanes|=a),f=h),n.memoizedState={parent:c,cache:f},bp(n),ws(n,Dt,f)):((t.lanes&a)!==0&&(vp(t,n),dc(n,null,null,a),uc()),f=t.memoizedState,h=n.memoizedState,f.parent!==c?(f={parent:c,cache:c},n.memoizedState=f,n.lanes===0&&(n.memoizedState=n.updateQueue.baseState=f),ws(n,Dt,c)):(c=h.cache,ws(n,Dt,c),c!==f.cache&&fp(n,[Dt],a,!0))),Zt(t,n,n.pendingProps.children,a),n.child;case 29:throw n.pendingProps}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Ii(t){t.flags|=4}function cg(t,n,a,c,f){if((n=(t.mode&MM)!==_e)&&(n=!1),n){if(t.flags|=16777216,(f&335544128)===f)if(t.stateNode.complete)t.flags|=8192;else if(iS())t.flags|=8192;else throw Pa=Jf,Vy}else t.flags&=-16777217}function N_(t,n){if(n.type!=="stylesheet"||(n.state.loading&Sr)!==eo)t.flags&=-16777217;else if(t.flags|=16777216,!t1(n))if(iS())t.flags|=8192;else throw Pa=Jf,Vy}function rf(t,n){n!==null&&(t.flags|=4),t.flags&16384&&(n=t.tag!==22?ma():536870912,t.lanes|=n,Xa|=n)}function gc(t,n){if(!Ve)switch(t.tailMode){case"hidden":n=t.tail;for(var a=null;n!==null;)n.alternate!==null&&(a=n),n=n.sibling;a===null?t.tail=null:a.sibling=null;break;case"collapsed":a=t.tail;for(var c=null;a!==null;)a.alternate!==null&&(c=a),a=a.sibling;c===null?n||t.tail===null?t.tail=null:t.tail.sibling=null:c.sibling=null}}function it(t){var n=t.alternate!==null&&t.alternate.child===t.child,a=0,c=0;if(n)if((t.mode&De)!==_e){for(var f=t.selfBaseDuration,h=t.child;h!==null;)a|=h.lanes|h.childLanes,c|=h.subtreeFlags&65011712,c|=h.flags&65011712,f+=h.treeBaseDuration,h=h.sibling;t.treeBaseDuration=f}else for(f=t.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags&65011712,c|=f.flags&65011712,f.return=t,f=f.sibling;else if((t.mode&De)!==_e){f=t.actualDuration,h=t.selfBaseDuration;for(var b=t.child;b!==null;)a|=b.lanes|b.childLanes,c|=b.subtreeFlags,c|=b.flags,f+=b.actualDuration,h+=b.treeBaseDuration,b=b.sibling;t.actualDuration=f,t.treeBaseDuration=h}else for(f=t.child;f!==null;)a|=f.lanes|f.childLanes,c|=f.subtreeFlags,c|=f.flags,f.return=t,f=f.sibling;return t.subtreeFlags|=c,t.childLanes=a,n}function fD(t,n,a){var c=n.pendingProps;switch(lp(n),n.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return it(n),null;case 1:return it(n),null;case 3:return a=n.stateNode,c=null,t!==null&&(c=t.memoizedState.cache),n.memoizedState.cache!==c&&(n.flags|=2048),Vi(Dt,n),ne(n),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),(t===null||t.child===null)&&(Eo(n)?(up(),Ii(n)):t===null||t.memoizedState.isDehydrated&&(n.flags&256)===0||(n.flags|=1024,cp())),it(n),null;case 26:var f=n.type,h=n.memoizedState;return t===null?(Ii(n),h!==null?(it(n),N_(n,h)):(it(n),cg(n,f,null,c,a))):h?h!==t.memoizedState?(Ii(n),it(n),N_(n,h)):(it(n),n.flags&=-16777217):(t=t.memoizedProps,t!==c&&Ii(n),it(n),cg(n,f,t,c,a)),null;case 27:if(je(n),a=se(Rs.current),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==c&&Ii(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return it(n),null}t=de(),Eo(n)?mw(n):(t=XS(f,c,a,t,!0),n.stateNode=t,Ii(n))}return it(n),null;case 5:if(je(n),f=n.type,t!==null&&n.stateNode!=null)t.memoizedProps!==c&&Ii(n);else{if(!c){if(n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return it(n),null}var b=de();if(Eo(n))mw(n);else{switch(h=se(Rs.current),Ym(f,b.ancestorInfo),b=b.context,h=hf(h),b){case vl:h=h.createElementNS(Bo,f);break;case _h:h=h.createElementNS(Df,f);break;default:switch(f){case"svg":h=h.createElementNS(Bo,f);break;case"math":h=h.createElementNS(Df,f);break;case"script":h=h.createElement("div"),h.innerHTML="<script><\/script>",h=h.removeChild(h.firstChild);break;case"select":h=typeof c.is=="string"?h.createElement("select",{is:c.is}):h.createElement("select"),c.multiple?h.multiple=!0:c.size&&(h.size=c.size);break;default:h=typeof c.is=="string"?h.createElement(f,{is:c.is}):h.createElement(f),f.indexOf("-")===-1&&(f!==f.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",f),Object.prototype.toString.call(h)!=="[object HTMLUnknownElement]"||jr.call(Lx,f)||(Lx[f]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",f)))}}h[tn]=n,h[yn]=c;e:for(b=n.child;b!==null;){if(b.tag===5||b.tag===6)h.appendChild(b.stateNode);else if(b.tag!==4&&b.tag!==27&&b.child!==null){b.child.return=b,b=b.child;continue}if(b===n)break e;for(;b.sibling===null;){if(b.return===null||b.return===n)break e;b=b.return}b.sibling.return=b.return,b=b.sibling}n.stateNode=h;e:switch(en(h,f,c),f){case"button":case"input":case"select":case"textarea":c=!!c.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&Ii(n)}}return it(n),cg(n,n.type,t===null?null:t.memoizedProps,n.pendingProps,a),null;case 6:if(t&&n.stateNode!=null)t.memoizedProps!==c&&Ii(n);else{if(typeof c!="string"&&n.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(t=se(Rs.current),a=de(),Eo(n)){if(t=n.stateNode,a=n.memoizedProps,f=!Si,c=null,h=nn,h!==null)switch(h.tag){case 3:f&&(f=GS(t,a,c),f!==null&&(Sa(n,0).serverProps=f));break;case 27:case 5:c=h.memoizedProps,f&&(f=GS(t,a,c),f!==null&&(Sa(n,0).serverProps=f))}t[tn]=n,t=!!(t.nodeValue===a||c!==null&&c.suppressHydrationWarning===!0||RS(t.nodeValue,a)),t||vs(n,!0)}else f=a.ancestorInfo.current,f!=null&&yd(c,f.tag,a.ancestorInfo.implicitRootScope),t=hf(t).createTextNode(c),t[tn]=n,n.stateNode=t}return it(n),null;case 31:if(a=n.memoizedState,t===null||t.memoizedState!==null){if(c=Eo(n),a!==null){if(t===null){if(!c)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(t=n.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");t[tn]=n,it(n),(n.mode&De)!==_e&&a!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration))}else up(),Ea(),(n.flags&128)===0&&(a=n.memoizedState=null),n.flags|=4,it(n),(n.mode&De)!==_e&&a!==null&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration));t=!1}else a=cp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=a),t=!0;if(!t)return n.flags&256?(Xn(n),n):(Xn(n),null);if((n.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return it(n),null;case 13:if(c=n.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(f=c,h=Eo(n),f!==null&&f.dehydrated!==null){if(t===null){if(!h)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(h=n.memoizedState,h=h!==null?h.dehydrated:null,!h)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");h[tn]=n,it(n),(n.mode&De)!==_e&&f!==null&&(f=n.child,f!==null&&(n.treeBaseDuration-=f.treeBaseDuration))}else up(),Ea(),(n.flags&128)===0&&(f=n.memoizedState=null),n.flags|=4,it(n),(n.mode&De)!==_e&&f!==null&&(f=n.child,f!==null&&(n.treeBaseDuration-=f.treeBaseDuration));f=!1}else f=cp(),t!==null&&t.memoizedState!==null&&(t.memoizedState.hydrationErrors=f),f=!0;if(!f)return n.flags&256?(Xn(n),n):(Xn(n),null)}return Xn(n),(n.flags&128)!==0?(n.lanes=a,(n.mode&De)!==_e&&oc(n),n):(a=c!==null,t=t!==null&&t.memoizedState!==null,a&&(c=n.child,f=null,c.alternate!==null&&c.alternate.memoizedState!==null&&c.alternate.memoizedState.cachePool!==null&&(f=c.alternate.memoizedState.cachePool.pool),h=null,c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(h=c.memoizedState.cachePool.pool),h!==f&&(c.flags|=2048)),a!==t&&a&&(n.child.flags|=8192),rf(n,n.updateQueue),it(n),(n.mode&De)!==_e&&a&&(t=n.child,t!==null&&(n.treeBaseDuration-=t.treeBaseDuration)),null);case 4:return ne(n),t===null&&Ng(n.stateNode.containerInfo),it(n),null;case 10:return Vi(n.type,n),it(n),null;case 19:if(q(Et,n),c=n.memoizedState,c===null)return it(n),null;if(f=(n.flags&128)!==0,h=c.rendering,h===null)if(f)gc(c,!1);else{if(mt!==ns||t!==null&&(t.flags&128)!==0)for(t=n.child;t!==null;){if(h=Id(t),h!==null){for(n.flags|=128,gc(c,!1),t=h.updateQueue,n.updateQueue=t,rf(n,t),n.subtreeFlags=0,t=a,a=n.child;a!==null;)lw(a,t),a=a.sibling;return X(Et,Et.current&ol|su,n),Ve&&ji(n,c.treeForkCount),n.child}t=t.sibling}c.tail!==null&&Gt()>lh&&(n.flags|=128,f=!0,gc(c,!1),n.lanes=4194304)}else{if(!f)if(t=Id(h),t!==null){if(n.flags|=128,f=!0,t=t.updateQueue,n.updateQueue=t,rf(n,t),gc(c,!0),c.tail===null&&c.tailMode==="hidden"&&!h.alternate&&!Ve)return it(n),null}else 2*Gt()-c.renderingStartTime>lh&&a!==536870912&&(n.flags|=128,f=!0,gc(c,!1),n.lanes=4194304);c.isBackwards?(h.sibling=n.child,n.child=h):(t=c.last,t!==null?t.sibling=h:n.child=h,c.last=h)}return c.tail!==null?(t=c.tail,c.rendering=t,c.tail=t.sibling,c.renderingStartTime=Gt(),t.sibling=null,a=Et.current,a=f?a&ol|su:a&ol,X(Et,a,n),Ve&&ji(n,c.treeForkCount),t):(it(n),null);case 22:case 23:return Xn(n),_p(n),c=n.memoizedState!==null,t!==null?t.memoizedState!==null!==c&&(n.flags|=8192):c&&(n.flags|=8192),c?(a&536870912)!==0&&(n.flags&128)===0&&(it(n),n.subtreeFlags&6&&(n.flags|=8192)):it(n),a=n.updateQueue,a!==null&&rf(n,a.retryQueue),a=null,t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),c=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(c=n.memoizedState.cachePool.pool),c!==a&&(n.flags|=2048),t!==null&&q(Ia,n),null;case 24:return a=null,t!==null&&(a=t.memoizedState.cache),n.memoizedState.cache!==a&&(n.flags|=2048),Vi(Dt,n),it(n),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+n.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function hD(t,n){switch(lp(n),n.tag){case 1:return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&De)!==_e&&oc(n),n):null;case 3:return Vi(Dt,n),ne(n),t=n.flags,(t&65536)!==0&&(t&128)===0?(n.flags=t&-65537|128,n):null;case 26:case 27:case 5:return je(n),null;case 31:if(n.memoizedState!==null){if(Xn(n),n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ea()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&De)!==_e&&oc(n),n):null;case 13:if(Xn(n),t=n.memoizedState,t!==null&&t.dehydrated!==null){if(n.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ea()}return t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&De)!==_e&&oc(n),n):null;case 19:return q(Et,n),null;case 4:return ne(n),null;case 10:return Vi(n.type,n),null;case 22:case 23:return Xn(n),_p(n),t!==null&&q(Ia,n),t=n.flags,t&65536?(n.flags=t&-65537|128,(n.mode&De)!==_e&&oc(n),n):null;case 24:return Vi(Dt,n),null;case 25:return null;default:return null}}function A_(t,n){switch(lp(n),n.tag){case 3:Vi(Dt,n),ne(n);break;case 26:case 27:case 5:je(n);break;case 4:ne(n);break;case 31:n.memoizedState!==null&&Xn(n);break;case 13:Xn(n);break;case 19:q(Et,n);break;case 10:Vi(n.type,n);break;case 22:case 23:Xn(n),_p(n),t!==null&&q(Ia,n);break;case 24:Vi(Dt,n)}}function ci(t){return(t.mode&De)!==_e}function C_(t,n){ci(t)?(li(),yc(n,t),oi()):yc(n,t)}function ug(t,n,a){ci(t)?(li(),ko(a,t,n),oi()):ko(a,t,n)}function yc(t,n){try{var a=n.updateQueue,c=a!==null?a.lastEffect:null;if(c!==null){var f=c.next;a=f;do{if((a.tag&t)===t&&(c=void 0,(t&_n)!==Wf&&(gl=!0),c=le(n,$M,a),(t&_n)!==Wf&&(gl=!1),c!==void 0&&typeof c!="function")){var h=void 0;h=(a.tag&tr)!==0?"useLayoutEffect":(a.tag&_n)!==0?"useInsertionEffect":"useEffect";var b=void 0;b=c===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof c.then=="function"?`
187
+
188
+ It looks like you wrote `+h+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
189
+
190
+ `+h+`(() => {
191
+ async function fetchData() {
192
+ // You can await here
193
+ const response = await MyAPI.getData(someId);
194
+ // ...
195
+ }
196
+ fetchData();
197
+ }, [someId]); // Or [] if effect doesn't need props or state
198
+
199
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+c,le(n,function(_,N){console.error("%s must not return anything besides a function, which is used for clean-up.%s",_,N)},h,b)}a=a.next}while(a!==f)}}catch(_){Je(n,n.return,_)}}function ko(t,n,a){try{var c=n.updateQueue,f=c!==null?c.lastEffect:null;if(f!==null){var h=f.next;c=h;do{if((c.tag&t)===t){var b=c.inst,_=b.destroy;_!==void 0&&(b.destroy=void 0,(t&_n)!==Wf&&(gl=!0),f=n,le(f,HM,f,a,_),(t&_n)!==Wf&&(gl=!1))}c=c.next}while(c!==h)}}catch(N){Je(n,n.return,N)}}function k_(t,n){ci(t)?(li(),yc(n,t),oi()):yc(n,t)}function dg(t,n,a){ci(t)?(li(),ko(a,t,n),oi()):ko(a,t,n)}function D_(t){var n=t.updateQueue;if(n!==null){var a=t.stateNode;t.type.defaultProps||"ref"in t.memoizedProps||dl||(a.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(t)||"instance"),a.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(t)||"instance"));try{le(t,Mw,n,a)}catch(c){Je(t,t.return,c)}}}function mD(t,n,a){return t.getSnapshotBeforeUpdate(n,a)}function pD(t,n){var a=n.memoizedProps,c=n.memoizedState;n=t.stateNode,t.type.defaultProps||"ref"in t.memoizedProps||dl||(n.props!==t.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(t)||"instance"),n.state!==t.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(t)||"instance"));try{var f=ka(t.type,a),h=le(t,mD,n,f,c);a=dx,h!==void 0||a.has(t.type)||(a.add(t.type),le(t,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",J(t))})),n.__reactInternalSnapshotBeforeUpdate=h}catch(b){Je(t,t.return,b)}}function R_(t,n,a){a.props=ka(t.type,t.memoizedProps),a.state=t.memoizedState,ci(t)?(li(),le(t,DE,t,n,a),oi()):le(t,DE,t,n,a)}function gD(t){var n=t.ref;if(n!==null){switch(t.tag){case 26:case 27:case 5:var a=t.stateNode;break;case 30:a=t.stateNode;break;default:a=t.stateNode}if(typeof n=="function")if(ci(t))try{li(),t.refCleanup=n(a)}finally{oi()}else t.refCleanup=n(a);else typeof n=="string"?console.error("String refs are no longer supported."):n.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",J(t)),n.current=a}}function bc(t,n){try{le(t,gD,t)}catch(a){Je(t,n,a)}}function ui(t,n){var a=t.ref,c=t.refCleanup;if(a!==null)if(typeof c=="function")try{if(ci(t))try{li(),le(t,c)}finally{oi(t)}else le(t,c)}catch(f){Je(t,n,f)}finally{t.refCleanup=null,t=t.alternate,t!=null&&(t.refCleanup=null)}else if(typeof a=="function")try{if(ci(t))try{li(),le(t,a,null)}finally{oi(t)}else le(t,a,null)}catch(f){Je(t,n,f)}else a.current=null}function M_(t,n,a,c){var f=t.memoizedProps,h=f.id,b=f.onCommit;f=f.onRender,n=n===null?"mount":"update",Ff&&(n="nested-update"),typeof f=="function"&&f(h,n,t.actualDuration,t.treeBaseDuration,t.actualStartTime,a),typeof b=="function"&&b(h,n,c,a)}function yD(t,n,a,c){var f=t.memoizedProps;t=f.id,f=f.onPostCommit,n=n===null?"mount":"update",Ff&&(n="nested-update"),typeof f=="function"&&f(t,n,c,a)}function O_(t){var n=t.type,a=t.memoizedProps,c=t.stateNode;try{le(t,zD,c,n,a,t)}catch(f){Je(t,t.return,f)}}function fg(t,n,a){try{le(t,BD,t.stateNode,t.type,a,n,t)}catch(c){Je(t,t.return,c)}}function L_(t){return t.tag===5||t.tag===3||t.tag===26||t.tag===27&&ks(t.type)||t.tag===4}function hg(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||L_(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.tag===27&&ks(t.type)||t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function mg(t,n,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,n?(zS(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(t,n)):(zS(a),n=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,n.appendChild(t),a=a._reactRootContainer,a!=null||n.onclick!==null||(n.onclick=Li));else if(c!==4&&(c===27&&ks(t.type)&&(a=t.stateNode,n=null),t=t.child,t!==null))for(mg(t,n,a),t=t.sibling;t!==null;)mg(t,n,a),t=t.sibling}function sf(t,n,a){var c=t.tag;if(c===5||c===6)t=t.stateNode,n?a.insertBefore(t,n):a.appendChild(t);else if(c!==4&&(c===27&&ks(t.type)&&(a=t.stateNode),t=t.child,t!==null))for(sf(t,n,a),t=t.sibling;t!==null;)sf(t,n,a),t=t.sibling}function bD(t){for(var n,a=t.return;a!==null;){if(L_(a)){n=a;break}a=a.return}if(n==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(n.tag){case 27:n=n.stateNode,a=hg(t),sf(t,a,n);break;case 5:a=n.stateNode,n.flags&32&&(IS(a),n.flags&=-33),n=hg(t),sf(t,n,a);break;case 3:case 4:n=n.stateNode.containerInfo,a=hg(t),mg(t,a,n);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function U_(t){var n=t.stateNode,a=t.memoizedProps;try{le(t,sR,t.type,a,n,t)}catch(c){Je(t,t.return,c)}}function j_(t,n){return n.tag===31?(n=n.memoizedState,t.memoizedState!==null&&n===null):n.tag===13?(t=t.memoizedState,n=n.memoizedState,t!==null&&t.dehydrated!==null&&(n===null||n.dehydrated===null)):n.tag===3?t.memoizedState.isDehydrated&&(n.flags&256)===0:!1}function vD(t,n){if(t=t.containerInfo,mb=Th,t=Q0(t),Km(t)){if("selectionStart"in t)var a={start:t.selectionStart,end:t.selectionEnd};else e:{a=(a=t.ownerDocument)&&a.defaultView||window;var c=a.getSelection&&a.getSelection();if(c&&c.rangeCount!==0){a=c.anchorNode;var f=c.anchorOffset,h=c.focusNode;c=c.focusOffset;try{a.nodeType,h.nodeType}catch{a=null;break e}var b=0,_=-1,N=-1,A=0,j=0,V=t,M=null;t:for(;;){for(var P;V!==a||f!==0&&V.nodeType!==3||(_=b+f),V!==h||c!==0&&V.nodeType!==3||(N=b+c),V.nodeType===3&&(b+=V.nodeValue.length),(P=V.firstChild)!==null;)M=V,V=P;for(;;){if(V===t)break t;if(M===a&&++A===f&&(_=b),M===h&&++j===c&&(N=b),(P=V.nextSibling)!==null)break;V=M,M=V.parentNode}V=P}a=_===-1||N===-1?null:{start:_,end:N}}else a=null}a=a||{start:0,end:0}}else a=null;for(pb={focusedElem:t,selectionRange:a},Th=!1,Xt=n;Xt!==null;)if(n=Xt,t=n.child,(n.subtreeFlags&1028)!==0&&t!==null)t.return=n,Xt=t;else for(;Xt!==null;){switch(t=n=Xt,a=t.alternate,f=t.flags,t.tag){case 0:if((f&4)!==0&&(t=t.updateQueue,t=t!==null?t.events:null,t!==null))for(a=0;a<t.length;a++)f=t[a],f.ref.impl=f.nextImpl;break;case 11:case 15:break;case 1:(f&1024)!==0&&a!==null&&pD(t,a);break;case 3:if((f&1024)!==0){if(t=t.stateNode.containerInfo,a=t.nodeType,a===9)Lg(t);else if(a===1)switch(t.nodeName){case"HEAD":case"HTML":case"BODY":Lg(t);break;default:t.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((f&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(t=n.sibling,t!==null){t.return=n.return,Xt=t;break}Xt=n.return}}function V_(t,n,a){var c=Gn(),f=ri(),h=si(),b=ai(),_=a.flags;switch(a.tag){case 0:case 11:case 15:di(t,a),_&4&&C_(a,tr|wr);break;case 1:if(di(t,a),_&4)if(t=a.stateNode,n===null)a.type.defaultProps||"ref"in a.memoizedProps||dl||(t.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(a)||"instance"),t.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(a)||"instance")),ci(a)?(li(),le(a,jy,a,t),oi()):le(a,jy,a,t);else{var N=ka(a.type,n.memoizedProps);n=n.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||dl||(t.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",J(a)||"instance"),t.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",J(a)||"instance")),ci(a)?(li(),le(a,AE,a,t,N,n,t.__reactInternalSnapshotBeforeUpdate),oi()):le(a,AE,a,t,N,n,t.__reactInternalSnapshotBeforeUpdate)}_&64&&D_(a),_&512&&bc(a,a.return);break;case 3:if(n=$i(),di(t,a),_&64&&(_=a.updateQueue,_!==null)){if(N=null,a.child!==null)switch(a.child.tag){case 27:case 5:N=a.child.stateNode;break;case 1:N=a.child.stateNode}try{le(a,Mw,_,N)}catch(j){Je(a,a.return,j)}}t.effectDuration+=Rd(n);break;case 27:n===null&&_&4&&U_(a);case 26:case 5:if(di(t,a),n===null){if(_&4)O_(a);else if(_&64){t=a.type,n=a.memoizedProps,N=a.stateNode;try{le(a,PD,N,t,n,a)}catch(j){Je(a,a.return,j)}}}_&512&&bc(a,a.return);break;case 12:if(_&4){_=$i(),di(t,a),t=a.stateNode,t.effectDuration+=ac(_);try{le(a,M_,a,n,Hs,t.effectDuration)}catch(j){Je(a,a.return,j)}}else di(t,a);break;case 31:di(t,a),_&4&&I_(t,a);break;case 13:di(t,a),_&4&&z_(t,a),_&64&&(t=a.memoizedState,t!==null&&(t=t.dehydrated,t!==null&&(_=CD.bind(null,a),tR(t,_))));break;case 22:if(_=a.memoizedState!==null||ts,!_){n=n!==null&&n.memoizedState!==null||Lt,N=ts;var A=Lt;ts=_,(Lt=n)&&!A?(fi(t,a,(a.subtreeFlags&8772)!==0),(a.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&_d(a,be,we)):di(t,a),ts=N,Lt=A}break;case 30:break;default:di(t,a)}(a.mode&De)!==_e&&0<=be&&0<=we&&((bt||.05<ht)&&ti(a,be,we,ht,dt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&.05<we-be&&(j_(a.return.alternate,a.return)||ei(a,be,we,"Mount"))),Yn(c),ii(f),dt=h,bt=b}function $_(t){var n=t.alternate;n!==null&&(t.alternate=null,$_(n)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(n=t.stateNode,n!==null&&L(n)),t.stateNode=null,t._debugOwner=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function zi(t,n,a){for(a=a.child;a!==null;)H_(t,n,a),a=a.sibling}function H_(t,n,a){if(ln&&typeof ln.onCommitFiberUnmount=="function")try{ln.onCommitFiberUnmount(zo,a)}catch(A){bi||(bi=!0,console.error("React instrumentation encountered an error: %o",A))}var c=Gn(),f=ri(),h=si(),b=ai();switch(a.tag){case 26:Lt||ui(a,n),zi(t,n,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(t=a.stateNode,t.parentNode.removeChild(t));break;case 27:Lt||ui(a,n);var _=Ut,N=On;ks(a.type)&&(Ut=a.stateNode,On=!1),zi(t,n,a),le(a,Ac,a.stateNode),Ut=_,On=N;break;case 5:Lt||ui(a,n);case 6:if(_=Ut,N=On,Ut=null,zi(t,n,a),Ut=_,On=N,Ut!==null)if(On)try{le(a,GD,Ut,a.stateNode)}catch(A){Je(a,n,A)}else try{le(a,FD,Ut,a.stateNode)}catch(A){Je(a,n,A)}break;case 18:Ut!==null&&(On?(t=Ut,PS(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t,a.stateNode),Vo(t)):PS(Ut,a.stateNode));break;case 4:_=Ut,N=On,Ut=a.stateNode.containerInfo,On=!0,zi(t,n,a),Ut=_,On=N;break;case 0:case 11:case 14:case 15:ko(_n,a,n),Lt||ug(a,n,tr),zi(t,n,a);break;case 1:Lt||(ui(a,n),_=a.stateNode,typeof _.componentWillUnmount=="function"&&R_(a,n,_)),zi(t,n,a);break;case 21:zi(t,n,a);break;case 22:Lt=(_=Lt)||a.memoizedState!==null,zi(t,n,a),Lt=_;break;default:zi(t,n,a)}(a.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(a,be,we,ht,dt),Yn(c),ii(f),dt=h,bt=b}function I_(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null))){t=t.dehydrated;try{le(n,rR,t)}catch(a){Je(n,n.return,a)}}}function z_(t,n){if(n.memoizedState===null&&(t=n.alternate,t!==null&&(t=t.memoizedState,t!==null&&(t=t.dehydrated,t!==null))))try{le(n,iR,t)}catch(a){Je(n,n.return,a)}}function wD(t){switch(t.tag){case 31:case 13:case 19:var n=t.stateNode;return n===null&&(n=t.stateNode=new fx),n;case 22:return t=t.stateNode,n=t._retryCache,n===null&&(n=t._retryCache=new fx),n;default:throw Error("Unexpected Suspense handler tag ("+t.tag+"). This is a bug in React.")}}function af(t,n){var a=wD(t);n.forEach(function(c){if(!a.has(c)){if(a.add(c),vi)if(fl!==null&&hl!==null)Sc(hl,fl);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var f=kD.bind(null,t,c);c.then(f,f)}})}function Rn(t,n){var a=n.deletions;if(a!==null)for(var c=0;c<a.length;c++){var f=t,h=n,b=a[c],_=Gn(),N=h;e:for(;N!==null;){switch(N.tag){case 27:if(ks(N.type)){Ut=N.stateNode,On=!1;break e}break;case 5:Ut=N.stateNode,On=!1;break e;case 3:case 4:Ut=N.stateNode.containerInfo,On=!0;break e}N=N.return}if(Ut===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");H_(f,h,b),Ut=null,On=!1,(b.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&ei(b,be,we,"Unmount"),Yn(_),f=b,h=f.alternate,h!==null&&(h.return=null),f.return=null}if(n.subtreeFlags&13886)for(n=n.child;n!==null;)P_(n,t),n=n.sibling}function P_(t,n){var a=Gn(),c=ri(),f=si(),h=ai(),b=t.alternate,_=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:Rn(n,t),Mn(t),_&4&&(ko(_n|wr,t,t.return),yc(_n|wr,t),ug(t,t.return,tr|wr));break;case 1:if(Rn(n,t),Mn(t),_&512&&(Lt||b===null||ui(b,b.return)),_&64&&ts&&(_=t.updateQueue,_!==null&&(b=_.callbacks,b!==null))){var N=_.shared.hiddenCallbacks;_.shared.hiddenCallbacks=N===null?b:N.concat(b)}break;case 26:if(N=Ir,Rn(n,t),Mn(t),_&512&&(Lt||b===null||ui(b,b.return)),_&4){var A=b!==null?b.memoizedState:null;if(_=t.memoizedState,b===null)if(_===null)if(t.stateNode===null){e:{_=t.type,b=t.memoizedProps,N=N.ownerDocument||N;t:switch(_){case"title":A=N.getElementsByTagName("title")[0],(!A||A[Lc]||A[tn]||A.namespaceURI===Bo||A.hasAttribute("itemprop"))&&(A=N.createElement(_),N.head.insertBefore(A,N.querySelector("head > title"))),en(A,_,b),A[tn]=t,pe(A),_=A;break e;case"link":var j=ZS("link","href",N).get(_+(b.href||""));if(j){for(var V=0;V<j.length;V++)if(A=j[V],A.getAttribute("href")===(b.href==null||b.href===""?null:b.href)&&A.getAttribute("rel")===(b.rel==null?null:b.rel)&&A.getAttribute("title")===(b.title==null?null:b.title)&&A.getAttribute("crossorigin")===(b.crossOrigin==null?null:b.crossOrigin)){j.splice(V,1);break t}}A=N.createElement(_),en(A,_,b),N.head.appendChild(A);break;case"meta":if(j=ZS("meta","content",N).get(_+(b.content||""))){for(V=0;V<j.length;V++)if(A=j[V],Xe(b.content,"content"),A.getAttribute("content")===(b.content==null?null:""+b.content)&&A.getAttribute("name")===(b.name==null?null:b.name)&&A.getAttribute("property")===(b.property==null?null:b.property)&&A.getAttribute("http-equiv")===(b.httpEquiv==null?null:b.httpEquiv)&&A.getAttribute("charset")===(b.charSet==null?null:b.charSet)){j.splice(V,1);break t}}A=N.createElement(_),en(A,_,b),N.head.appendChild(A);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+_+'". This is a bug in React.')}A[tn]=t,pe(A),_=A}t.stateNode=_}else e1(N,t.type,t.stateNode);else t.stateNode=QS(N,_,t.memoizedProps);else A!==_?(A===null?b.stateNode!==null&&(b=b.stateNode,b.parentNode.removeChild(b)):A.count--,_===null?e1(N,t.type,t.stateNode):QS(N,_,t.memoizedProps)):_===null&&t.stateNode!==null&&fg(t,t.memoizedProps,b.memoizedProps)}break;case 27:Rn(n,t),Mn(t),_&512&&(Lt||b===null||ui(b,b.return)),b!==null&&_&4&&fg(t,t.memoizedProps,b.memoizedProps);break;case 5:if(Rn(n,t),Mn(t),_&512&&(Lt||b===null||ui(b,b.return)),t.flags&32){N=t.stateNode;try{le(t,IS,N)}catch(ce){Je(t,t.return,ce)}}_&4&&t.stateNode!=null&&(N=t.memoizedProps,fg(t,N,b!==null?b.memoizedProps:N)),_&1024&&(Jy=!0,t.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(Rn(n,t),Mn(t),_&4){if(t.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");_=t.memoizedProps,b=b!==null?b.memoizedProps:_,N=t.stateNode;try{le(t,qD,N,b,_)}catch(ce){Je(t,t.return,ce)}}break;case 3:if(N=$i(),Sh=null,A=Ir,Ir=mf(n.containerInfo),Rn(n,t),Ir=A,Mn(t),_&4&&b!==null&&b.memoizedState.isDehydrated)try{le(t,nR,n.containerInfo)}catch(ce){Je(t,t.return,ce)}Jy&&(Jy=!1,B_(t)),n.effectDuration+=Rd(N);break;case 4:_=Ir,Ir=mf(t.stateNode.containerInfo),Rn(n,t),Mn(t),Ir=_;break;case 12:_=$i(),Rn(n,t),Mn(t),t.stateNode.effectDuration+=ac(_);break;case 31:Rn(n,t),Mn(t),_&4&&(_=t.updateQueue,_!==null&&(t.updateQueue=null,af(t,_)));break;case 13:Rn(n,t),Mn(t),t.child.flags&8192&&t.memoizedState!==null!=(b!==null&&b.memoizedState!==null)&&(oh=Gt()),_&4&&(_=t.updateQueue,_!==null&&(t.updateQueue=null,af(t,_)));break;case 22:N=t.memoizedState!==null;var M=b!==null&&b.memoizedState!==null,P=ts,ae=Lt;if(ts=P||N,Lt=ae||M,Rn(n,t),Lt=ae,ts=P,M&&!N&&!P&&!ae&&(t.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&_d(t,be,we),Mn(t),_&8192)e:for(n=t.stateNode,n._visibility=N?n._visibility&~Bc:n._visibility|Bc,!N||b===null||M||ts||Lt||(Da(t),(t.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&ei(t,be,we,"Disconnect")),b=null,n=t;;){if(n.tag===5||n.tag===26){if(b===null){M=b=n;try{A=M.stateNode,N?le(M,XD,A):le(M,WD,M.stateNode,M.memoizedProps)}catch(ce){Je(M,M.return,ce)}}}else if(n.tag===6){if(b===null){M=n;try{j=M.stateNode,N?le(M,JD,j):le(M,QD,j,M.memoizedProps)}catch(ce){Je(M,M.return,ce)}}}else if(n.tag===18){if(b===null){M=n;try{V=M.stateNode,N?le(M,YD,V):le(M,KD,M.stateNode)}catch(ce){Je(M,M.return,ce)}}}else if((n.tag!==22&&n.tag!==23||n.memoizedState===null||n===t)&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break e;for(;n.sibling===null;){if(n.return===null||n.return===t)break e;b===n&&(b=null),n=n.return}b===n&&(b=null),n.sibling.return=n.return,n=n.sibling}_&4&&(_=t.updateQueue,_!==null&&(b=_.retryQueue,b!==null&&(_.retryQueue=null,af(t,b))));break;case 19:Rn(n,t),Mn(t),_&4&&(_=t.updateQueue,_!==null&&(t.updateQueue=null,af(t,_)));break;case 30:break;case 21:break;default:Rn(n,t),Mn(t)}(t.mode&De)!==_e&&0<=be&&0<=we&&((bt||.05<ht)&&ti(t,be,we,ht,dt),t.alternate===null&&t.return!==null&&t.return.alternate!==null&&.05<we-be&&(j_(t.return.alternate,t.return)||ei(t,be,we,"Mount"))),Yn(a),ii(c),dt=f,bt=h}function Mn(t){var n=t.flags;if(n&2){try{le(t,bD,t)}catch(a){Je(t,t.return,a)}t.flags&=-3}n&4096&&(t.flags&=-4097)}function B_(t){if(t.subtreeFlags&1024)for(t=t.child;t!==null;){var n=t;B_(n),n.tag===5&&n.flags&1024&&n.stateNode.reset(),t=t.sibling}}function di(t,n){if(n.subtreeFlags&8772)for(n=n.child;n!==null;)V_(t,n.alternate,n),n=n.sibling}function q_(t){var n=Gn(),a=ri(),c=si(),f=ai();switch(t.tag){case 0:case 11:case 14:case 15:ug(t,t.return,tr),Da(t);break;case 1:ui(t,t.return);var h=t.stateNode;typeof h.componentWillUnmount=="function"&&R_(t,t.return,h),Da(t);break;case 27:le(t,Ac,t.stateNode);case 26:case 5:ui(t,t.return),Da(t);break;case 22:t.memoizedState===null&&Da(t);break;case 30:Da(t);break;default:Da(t)}(t.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(t,be,we,ht,dt),Yn(n),ii(a),dt=c,bt=f}function Da(t){for(t=t.child;t!==null;)q_(t),t=t.sibling}function F_(t,n,a,c){var f=Gn(),h=ri(),b=si(),_=ai(),N=a.flags;switch(a.tag){case 0:case 11:case 15:fi(t,a,c),C_(a,tr);break;case 1:if(fi(t,a,c),n=a.stateNode,typeof n.componentDidMount=="function"&&le(a,jy,a,n),n=a.updateQueue,n!==null){t=a.stateNode;try{le(a,nD,n,t)}catch(A){Je(a,a.return,A)}}c&&N&64&&D_(a),bc(a,a.return);break;case 27:U_(a);case 26:case 5:fi(t,a,c),c&&n===null&&N&4&&O_(a),bc(a,a.return);break;case 12:if(c&&N&4){N=$i(),fi(t,a,c),c=a.stateNode,c.effectDuration+=ac(N);try{le(a,M_,a,n,Hs,c.effectDuration)}catch(A){Je(a,a.return,A)}}else fi(t,a,c);break;case 31:fi(t,a,c),c&&N&4&&I_(t,a);break;case 13:fi(t,a,c),c&&N&4&&z_(t,a);break;case 22:a.memoizedState===null&&fi(t,a,c),bc(a,a.return);break;case 30:break;default:fi(t,a,c)}(a.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(a,be,we,ht,dt),Yn(f),ii(h),dt=b,bt=_}function fi(t,n,a){for(a=a&&(n.subtreeFlags&8772)!==0,n=n.child;n!==null;)F_(t,n.alternate,n,a),n=n.sibling}function pg(t,n){var a=null;t!==null&&t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(a=t.memoizedState.cachePool.pool),t=null,n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(t=n.memoizedState.cachePool.pool),t!==a&&(t!=null&&Ta(t),a!=null&&sc(a))}function gg(t,n){t=null,n.alternate!==null&&(t=n.alternate.memoizedState.cache),n=n.memoizedState.cache,n!==t&&(Ta(n),t!=null&&sc(t))}function Ur(t,n,a,c,f){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(n=n.child;n!==null;){var h=n.sibling;G_(t,n,a,c,h!==null?h.actualStartTime:f),n=h}}function G_(t,n,a,c,f){var h=Gn(),b=ri(),_=si(),N=ai(),A=Us,j=n.flags;switch(n.tag){case 0:case 11:case 15:(n.mode&De)!==_e&&0<n.actualStartTime&&(n.flags&1)!==0&&Sd(n,n.actualStartTime,f,It,a),Ur(t,n,a,c,f),j&2048&&k_(n,Sn|wr);break;case 1:(n.mode&De)!==_e&&0<n.actualStartTime&&((n.flags&128)!==0?Qm(n,n.actualStartTime,f,[]):(n.flags&1)!==0&&Sd(n,n.actualStartTime,f,It,a)),Ur(t,n,a,c,f);break;case 3:var V=$i(),M=It;It=n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)===0,Ur(t,n,a,c,f),It=M,j&2048&&(a=null,n.alternate!==null&&(a=n.alternate.memoizedState.cache),c=n.memoizedState.cache,c!==a&&(Ta(c),a!=null&&sc(a))),t.passiveEffectDuration+=Rd(V);break;case 12:if(j&2048){j=$i(),Ur(t,n,a,c,f),t=n.stateNode,t.passiveEffectDuration+=ac(j);try{le(n,yD,n,n.alternate,Hs,t.passiveEffectDuration)}catch(P){Je(n,n.return,P)}}else Ur(t,n,a,c,f);break;case 31:j=It,V=n.alternate!==null?n.alternate.memoizedState:null,M=n.memoizedState,V!==null&&M===null?(M=n.deletions,M!==null&&0<M.length&&M[0].tag===18?(It=!1,V=V.hydrationErrors,V!==null&&Qm(n,n.actualStartTime,f,V)):It=!0):It=!1,Ur(t,n,a,c,f),It=j;break;case 13:j=It,V=n.alternate!==null?n.alternate.memoizedState:null,M=n.memoizedState,V===null||V.dehydrated===null||M!==null&&M.dehydrated!==null?It=!1:(M=n.deletions,M!==null&&0<M.length&&M[0].tag===18?(It=!1,V=V.hydrationErrors,V!==null&&Qm(n,n.actualStartTime,f,V)):It=!0),Ur(t,n,a,c,f),It=j;break;case 23:break;case 22:M=n.stateNode,V=n.alternate,n.memoizedState!==null?M._visibility&Fi?Ur(t,n,a,c,f):vc(t,n,a,c,f):M._visibility&Fi?Ur(t,n,a,c,f):(M._visibility|=Fi,Do(t,n,a,c,(n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child),f),(n.mode&De)===_e||It||(t=n.actualStartTime,0<=t&&.05<f-t&&_d(n,t,f),0<=be&&0<=we&&.05<we-be&&_d(n,be,we))),j&2048&&pg(V,n);break;case 24:Ur(t,n,a,c,f),j&2048&&gg(n.alternate,n);break;default:Ur(t,n,a,c,f)}(n.mode&De)!==_e&&((t=!It&&n.alternate===null&&n.return!==null&&n.return.alternate!==null)&&(a=n.actualStartTime,0<=a&&.05<f-a&&ei(n,a,f,"Mount")),0<=be&&0<=we&&((bt||.05<ht)&&ti(n,be,we,ht,dt),t&&.05<we-be&&ei(n,be,we,"Mount"))),Yn(h),ii(b),dt=_,bt=N,Us=A}function Do(t,n,a,c,f,h){for(f=f&&((n.subtreeFlags&10256)!==0||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child)),n=n.child;n!==null;){var b=n.sibling;Y_(t,n,a,c,f,b!==null?b.actualStartTime:h),n=b}}function Y_(t,n,a,c,f,h){var b=Gn(),_=ri(),N=si(),A=ai(),j=Us;f&&(n.mode&De)!==_e&&0<n.actualStartTime&&(n.flags&1)!==0&&Sd(n,n.actualStartTime,h,It,a);var V=n.flags;switch(n.tag){case 0:case 11:case 15:Do(t,n,a,c,f,h),k_(n,Sn);break;case 23:break;case 22:var M=n.stateNode;n.memoizedState!==null?M._visibility&Fi?Do(t,n,a,c,f,h):vc(t,n,a,c,h):(M._visibility|=Fi,Do(t,n,a,c,f,h)),f&&V&2048&&pg(n.alternate,n);break;case 24:Do(t,n,a,c,f,h),f&&V&2048&&gg(n.alternate,n);break;default:Do(t,n,a,c,f,h)}(n.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(n,be,we,ht,dt),Yn(b),ii(_),dt=N,bt=A,Us=j}function vc(t,n,a,c,f){if(n.subtreeFlags&10256||n.actualDuration!==0&&(n.alternate===null||n.alternate.child!==n.child))for(var h=n.child;h!==null;){n=h.sibling;var b=t,_=a,N=c,A=n!==null?n.actualStartTime:f,j=Us;(h.mode&De)!==_e&&0<h.actualStartTime&&(h.flags&1)!==0&&Sd(h,h.actualStartTime,A,It,_);var V=h.flags;switch(h.tag){case 22:vc(b,h,_,N,A),V&2048&&pg(h.alternate,h);break;case 24:vc(b,h,_,N,A),V&2048&&gg(h.alternate,h);break;default:vc(b,h,_,N,A)}Us=j,h=n}}function Ro(t,n,a){if(t.subtreeFlags&cu)for(t=t.child;t!==null;)X_(t,n,a),t=t.sibling}function X_(t,n,a){switch(t.tag){case 26:Ro(t,n,a),t.flags&cu&&t.memoizedState!==null&&lR(a,Ir,t.memoizedState,t.memoizedProps);break;case 5:Ro(t,n,a);break;case 3:case 4:var c=Ir;Ir=mf(t.stateNode.containerInfo),Ro(t,n,a),Ir=c;break;case 22:t.memoizedState===null&&(c=t.alternate,c!==null&&c.memoizedState!==null?(c=cu,cu=16777216,Ro(t,n,a),cu=c):Ro(t,n,a));break;default:Ro(t,n,a)}}function J_(t){var n=t.alternate;if(n!==null&&(t=n.child,t!==null)){n.child=null;do n=t.sibling,t.sibling=null,t=n;while(t!==null)}}function wc(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],f=Gn();Xt=c,Q_(c,t),(c.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&ei(c,be,we,"Unmount"),Yn(f)}J_(t)}if(t.subtreeFlags&10256)for(t=t.child;t!==null;)K_(t),t=t.sibling}function K_(t){var n=Gn(),a=ri(),c=si(),f=ai();switch(t.tag){case 0:case 11:case 15:wc(t),t.flags&2048&&dg(t,t.return,Sn|wr);break;case 3:var h=$i();wc(t),t.stateNode.passiveEffectDuration+=Rd(h);break;case 12:h=$i(),wc(t),t.stateNode.passiveEffectDuration+=ac(h);break;case 22:h=t.stateNode,t.memoizedState!==null&&h._visibility&Fi&&(t.return===null||t.return.tag!==13)?(h._visibility&=~Fi,of(t),(t.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&ei(t,be,we,"Disconnect")):wc(t);break;default:wc(t)}(t.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(t,be,we,ht,dt),Yn(n),ii(a),bt=f,dt=c}function of(t){var n=t.deletions;if((t.flags&16)!==0){if(n!==null)for(var a=0;a<n.length;a++){var c=n[a],f=Gn();Xt=c,Q_(c,t),(c.mode&De)!==_e&&0<=be&&0<=we&&.05<we-be&&ei(c,be,we,"Unmount"),Yn(f)}J_(t)}for(t=t.child;t!==null;)W_(t),t=t.sibling}function W_(t){var n=Gn(),a=ri(),c=si(),f=ai();switch(t.tag){case 0:case 11:case 15:dg(t,t.return,Sn),of(t);break;case 22:var h=t.stateNode;h._visibility&Fi&&(h._visibility&=~Fi,of(t));break;default:of(t)}(t.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(t,be,we,ht,dt),Yn(n),ii(a),bt=f,dt=c}function Q_(t,n){for(;Xt!==null;){var a=Xt,c=a,f=n,h=Gn(),b=ri(),_=si(),N=ai();switch(c.tag){case 0:case 11:case 15:dg(c,f,Sn);break;case 23:case 22:c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(f=c.memoizedState.cachePool.pool,f!=null&&Ta(f));break;case 24:sc(c.memoizedState.cache)}if((c.mode&De)!==_e&&0<=be&&0<=we&&(bt||.05<ht)&&ti(c,be,we,ht,dt),Yn(h),ii(b),bt=N,dt=_,c=a.child,c!==null)c.return=a,Xt=c;else e:for(a=t;Xt!==null;){if(c=Xt,h=c.sibling,b=c.return,$_(c),c===a){Xt=null;break e}if(h!==null){h.return=b,Xt=h;break e}Xt=b}}}function _D(){qM.forEach(function(t){return t()})}function Z_(){var t=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return t||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),t}function Jn(t){if((qe&zt)!==Jt&&Me!==0)return Me&-Me;var n=G.T;return n!==null?(n._updatedFibers||(n._updatedFibers=new Set),n._updatedFibers.add(t),xg()):Wr()}function eS(){if(Un===0)if((Me&536870912)===0||Ve){var t=Nf;Nf<<=1,(Nf&3932160)===0&&(Nf=262144),Un=t}else Un=536870912;return t=er.current,t!==null&&(t.flags|=32),Un}function yt(t,n,a){if(gl&&console.error("useInsertionEffect must not schedule updates."),ab&&(dh=!0),(t===nt&&(Qe===Ga||Qe===Ya)||t.cancelPendingCommit!==null)&&(Oo(t,0),As(t,Me,Un,!1)),sr(t,a),(qe&zt)!==Jt&&t===nt){if(yi)switch(n.tag){case 0:case 11:case 15:t=Oe&&J(Oe)||"Unknown",Ax.has(t)||(Ax.add(t),n=J(n)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",n,t,t));break;case 1:Nx||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),Nx=!0)}}else vi&&or(t,n,a),RD(n),t===nt&&((qe&zt)===Jt&&(Ys|=a),mt===qs&&As(t,Me,Un,!1)),hi(t)}function tS(t,n,a){if((qe&(zt|nr))!==Jt)throw Error("Should not already be working.");if(Me!==0&&Oe!==null){var c=Oe,f=Gt();switch(vE){case fu:case Ga:var h=Jc;ot&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Suspended",h,f,fr,void 0,"primary-light")):console.timeStamp("Suspended",h,f,fr,void 0,"primary-light"));break;case Ya:h=Jc,ot&&((c=c._debugTask)?c.run(console.timeStamp.bind(console,"Action",h,f,fr,void 0,"primary-light")):console.timeStamp("Action",h,f,fr,void 0,"primary-light"));break;default:ot&&(c=f-Jc,3>c||console.timeStamp("Blocked",Jc,f,fr,void 0,5>c?"primary-light":10>c?"primary":100>c?"primary-dark":"error"))}}h=(a=!a&&(n&127)===0&&(n&t.expiredLanes)===0||Kr(t,n))?ED(t,n):bg(t,n,!0);var b=a;do{if(h===ns){ml&&!a&&As(t,n,0,!1),n=Qe,Jc=Rt(),vE=n;break}else{if(c=Gt(),f=t.current.alternate,b&&!SD(f)){Or(n),f=Yt,h=c,!ot||h<=f||(St?St.run(console.timeStamp.bind(console,"Teared Render",f,h,Pe,He,"error")):console.timeStamp("Teared Render",f,h,Pe,He,"error")),Ra(n,c),h=bg(t,n,!1),b=!1;continue}if(h===Fa){if(b=n,t.errorRecoveryDisabledLanes&b)var _=0;else _=t.pendingLanes&-536870913,_=_!==0?_:_&536870912?536870912:0;if(_!==0){Or(n),Zm(Yt,c,n,St),Ra(n,c),n=_;e:{c=t,h=b,b=mu;var N=c.current.memoizedState.isDehydrated;if(N&&(Oo(c,_).flags|=256),_=bg(c,_,!1),_!==Fa){if(Qy&&!N){c.errorRecoveryDisabledLanes|=h,Ys|=h,h=qs;break e}c=En,En=b,c!==null&&(En===null?En=c:En.push.apply(En,c))}h=_}if(b=!1,h!==Fa)continue;c=Gt()}}if(h===du){Or(n),Zm(Yt,c,n,St),Ra(n,c),Oo(t,0),As(t,n,0,!0);break}e:{switch(a=t,h){case ns:case du:throw Error("Root did not complete. This is a bug in React.");case qs:if((n&4194048)!==n)break;case rh:Or(n),tw(Yt,c,n,St),Ra(n,c),f=n,(f&127)!==0?Pf=c:(f&4194048)!==0&&(Bf=c),As(a,n,Un,!Fs);break e;case Fa:En=null;break;case nh:case hx:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)vg(a,f,n,En,pu,ah,Un,Ys,Xa,h,null,null,Yt,c);else{if((n&62914560)===n&&(b=oh+gx-Gt(),10<b)){if(As(a,n,Un,!Fs),Mi(a,0,!0)!==0)break e;zr=n,a.timeoutHandle=Ux(nS.bind(null,a,f,En,pu,ah,n,Un,Ys,Xa,Fs,h,"Throttled",Yt,c),b);break e}nS(a,f,En,pu,ah,n,Un,Ys,Xa,Fs,h,null,Yt,c)}}}break}while(!0);hi(t)}function nS(t,n,a,c,f,h,b,_,N,A,j,V,M,P){t.timeoutHandle=Za;var ae=n.subtreeFlags,ce=null;if((ae&8192||(ae&16785408)===16785408)&&(ce={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Li},X_(n,h,ce),ae=(h&62914560)===h?oh-Gt():(h&4194048)===h?px-Gt():0,ae=cR(ce,ae),ae!==null)){zr=h,t.cancelPendingCommit=ae(vg.bind(null,t,n,h,a,c,f,b,_,N,j,ce,ce.waitingForViewTransition?"Waiting for the previous Animation":0<ce.count?0<ce.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ce.imgCount===1?"Suspended on an Image":0<ce.imgCount?"Suspended on Images":null,M,P)),As(t,h,b,!A);return}vg(t,n,h,a,c,f,b,_,N,j,ce,V,M,P)}function SD(t){for(var n=t;;){var a=n.tag;if((a===0||a===11||a===15)&&n.flags&16384&&(a=n.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var c=0;c<a.length;c++){var f=a[c],h=f.getSnapshot;f=f.value;try{if(!vn(h(),f))return!1}catch{return!1}}if(a=n.child,n.subtreeFlags&16384&&a!==null)a.return=n,n=a;else{if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return!0;n=n.return}n.sibling.return=n.return,n=n.sibling}}return!0}function As(t,n,a,c){n&=~Zy,n&=~Ys,t.suspendedLanes|=n,t.pingedLanes&=~n,c&&(t.warmLanes|=n),c=t.expirationTimes;for(var f=n;0<f;){var h=31-gn(f),b=1<<h;c[h]=-1,f&=~b}a!==0&&pa(t,a,n)}function Mo(){return(qe&(zt|nr))===Jt?(Ec(0),!1):!0}function yg(){if(Oe!==null){if(Qe===Ln)var t=Oe.return;else t=Oe,Cd(),Cp(t),sl=null,iu=0,t=Oe;for(;t!==null;)A_(t.alternate,t),t=t.return;Oe=null}}function Ra(t,n){(t&127)!==0&&(ja=n),(t&4194048)!==0&&(Ki=n),(t&62914560)!==0&&(yE=n),(t&2080374784)!==0&&(bE=n)}function Oo(t,n){ot&&(console.timeStamp("Blocking Track",.003,.003,"Blocking",He,"primary-light"),console.timeStamp("Transition Track",.003,.003,"Transition",He,"primary-light"),console.timeStamp("Suspense Track",.003,.003,"Suspense",He,"primary-light"),console.timeStamp("Idle Track",.003,.003,"Idle",He,"primary-light"));var a=Yt;if(Yt=Rt(),Me!==0&&0<a){if(Or(Me),mt===nh||mt===qs)tw(a,Yt,n,St);else{var c=Yt,f=St;if(ot&&!(c<=a)){var h=(n&738197653)===n?"tertiary-dark":"primary-dark",b=(n&536870912)===n?"Prewarm":(n&201326741)===n?"Interrupted Hydration":"Interrupted Render";f?f.run(console.timeStamp.bind(console,b,a,c,Pe,He,h)):console.timeStamp(b,a,c,Pe,He,h)}}Ra(Me,Yt)}if(a=St,St=null,(n&127)!==0){St=Gc,f=0<=Ei&&Ei<ja?ja:Ei,c=0<=Va&&Va<ja?ja:Va,h=0<=c?c:0<=f?f:Yt,0<=Pf?(Or(2),nw(Pf,h,n,a)):qf&127,a=f;var _=c,N=Yc,A=0<nl,j=Is===Fc,V=Is===zf;if(f=Yt,c=Gc,h=Ry,b=My,ot){if(Pe="Blocking",0<a?a>f&&(a=f):a=f,0<_?_>a&&(_=a):_=a,N!==null&&a>_){var M=A?"secondary-light":"warning";c?c.run(console.timeStamp.bind(console,A?"Consecutive":"Event: "+N,_,a,Pe,He,M)):console.timeStamp(A?"Consecutive":"Event: "+N,_,a,Pe,He,M)}f>a&&(_=j?"error":(n&738197653)===n?"tertiary-light":"primary-light",j=V?"Promise Resolved":j?"Cascading Update":5<f-a?"Update Blocked":"Update",V=[],b!=null&&V.push(["Component name",b]),h!=null&&V.push(["Method name",h]),a={start:a,end:f,detail:{devtools:{properties:V,track:Pe,trackGroup:He,color:_}}},c?c.run(performance.measure.bind(performance,j,a)):performance.measure(j,a))}Ei=-1.1,Is=0,My=Ry=null,Pf=-1.1,nl=Va,Va=-1.1,ja=Rt()}if((n&4194048)!==0&&(St=Xc,f=0<=Wi&&Wi<Ki?Ki:Wi,a=0<=br&&br<Ki?Ki:br,c=0<=zs&&zs<Ki?Ki:zs,h=0<=c?c:0<=a?a:Yt,0<=Bf?(Or(256),nw(Bf,h,n,St)):qf&4194048,V=c,_=$a,N=0<Ps,A=Oy===zf,h=Yt,c=Xc,b=pE,j=gE,ot&&(Pe="Transition",0<a?a>h&&(a=h):a=h,0<f?f>a&&(f=a):f=a,0<V?V>f&&(V=f):V=f,f>V&&_!==null&&(M=N?"secondary-light":"warning",c?c.run(console.timeStamp.bind(console,N?"Consecutive":"Event: "+_,V,f,Pe,He,M)):console.timeStamp(N?"Consecutive":"Event: "+_,V,f,Pe,He,M)),a>f&&(c?c.run(console.timeStamp.bind(console,"Action",f,a,Pe,He,"primary-dark")):console.timeStamp("Action",f,a,Pe,He,"primary-dark")),h>a&&(f=A?"Promise Resolved":5<h-a?"Update Blocked":"Update",V=[],j!=null&&V.push(["Component name",j]),b!=null&&V.push(["Method name",b]),a={start:a,end:h,detail:{devtools:{properties:V,track:Pe,trackGroup:He,color:"primary-light"}}},c?c.run(performance.measure.bind(performance,f,a)):performance.measure(f,a))),br=Wi=-1.1,Oy=0,Bf=-1.1,Ps=zs,zs=-1.1,Ki=Rt()),(n&62914560)!==0&&(qf&62914560)!==0&&(Or(4194304),ep(yE,Yt)),(n&2080374784)!==0&&(qf&2080374784)!==0&&(Or(268435456),ep(bE,Yt)),a=t.timeoutHandle,a!==Za&&(t.timeoutHandle=Za,r3(a)),a=t.cancelPendingCommit,a!==null&&(t.cancelPendingCommit=null,a()),zr=0,yg(),nt=t,Oe=a=Ui(t.current,null),Me=n,Qe=Ln,rr=null,Fs=!1,ml=Kr(t,n),Qy=!1,mt=ns,Xa=Un=Zy=Ys=Gs=0,En=mu=null,ah=!1,(n&8)!==0&&(n|=n&32),c=t.entangledLanes,c!==0)for(t=t.entanglements,c&=n;0<c;)f=31-gn(c),h=1<<f,n|=t[f],c&=~h;return Ti=n,Ed(),t=cE(),1e3<t-lE&&(G.recentlyCreatedOwnerStacks=0,lE=t),$r.discardPendingWarnings(),a}function rS(t,n){Se=null,G.H=lu,G.getCurrentStack=null,yi=!1,Qn=null,n===il||n===Xf?(n=xw(),Qe=fu):n===Vy?(n=xw(),Qe=mx):Qe=n===Yy?Wy:n!==null&&typeof n=="object"&&typeof n.then=="function"?hu:ih,rr=n;var a=Oe;a===null?(mt=du,Zd(t,Fn(n,t.current))):a.mode&De&&pp(a)}function iS(){var t=er.current;return t===null?!0:(Me&4194048)===Me?vr===null:(Me&62914560)===Me||(Me&536870912)!==0?t===vr:!1}function sS(){var t=G.H;return G.H=lu,t===null?lu:t}function aS(){var t=G.A;return G.A=BM,t}function lf(t){St===null&&(St=t._debugTask==null?null:t._debugTask)}function cf(){mt=qs,Fs||(Me&4194048)!==Me&&er.current!==null||(ml=!0),(Gs&134217727)===0&&(Ys&134217727)===0||nt===null||As(nt,Me,Un,!1)}function bg(t,n,a){var c=qe;qe|=zt;var f=sS(),h=aS();if(nt!==t||Me!==n){if(vi){var b=t.memoizedUpdaters;0<b.size&&(Sc(t,Me),b.clear()),gs(t,n)}pu=null,Oo(t,n)}n=!1,b=mt;e:do try{if(Qe!==Ln&&Oe!==null){var _=Oe,N=rr;switch(Qe){case Wy:yg(),b=rh;break e;case fu:case Ga:case Ya:case hu:er.current===null&&(n=!0);var A=Qe;if(Qe=Ln,rr=null,Lo(t,_,N,A),a&&ml){b=ns;break e}break;default:A=Qe,Qe=Ln,rr=null,Lo(t,_,N,A)}}oS(),b=mt;break}catch(j){rS(t,j)}while(!0);return n&&t.shellSuspendCounter++,Cd(),qe=c,G.H=f,G.A=h,Oe===null&&(nt=null,Me=0,Ed()),b}function oS(){for(;Oe!==null;)lS(Oe)}function ED(t,n){var a=qe;qe|=zt;var c=sS(),f=aS();if(nt!==t||Me!==n){if(vi){var h=t.memoizedUpdaters;0<h.size&&(Sc(t,Me),h.clear()),gs(t,n)}pu=null,lh=Gt()+yx,Oo(t,n)}else ml=Kr(t,n);e:do try{if(Qe!==Ln&&Oe!==null)t:switch(n=Oe,h=rr,Qe){case ih:Qe=Ln,rr=null,Lo(t,n,h,ih);break;case Ga:case Ya:if(Sw(h)){Qe=Ln,rr=null,cS(n);break}n=function(){Qe!==Ga&&Qe!==Ya||nt!==t||(Qe=sh),hi(t)},h.then(n,n);break e;case fu:Qe=sh;break e;case mx:Qe=Ky;break e;case sh:Sw(h)?(Qe=Ln,rr=null,cS(n)):(Qe=Ln,rr=null,Lo(t,n,h,sh));break;case Ky:var b=null;switch(Oe.tag){case 26:b=Oe.memoizedState;case 5:case 27:var _=Oe;if(b?t1(b):_.stateNode.complete){Qe=Ln,rr=null;var N=_.sibling;if(N!==null)Oe=N;else{var A=_.return;A!==null?(Oe=A,uf(A)):Oe=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Qe=Ln,rr=null,Lo(t,n,h,Ky);break;case hu:Qe=Ln,rr=null,Lo(t,n,h,hu);break;case Wy:yg(),mt=rh;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?oS():xD();break}catch(j){rS(t,j)}while(!0);return Cd(),G.H=c,G.A=f,qe=a,Oe!==null?ns:(nt=null,Me=0,Ed(),mt)}function xD(){for(;Oe!==null&&!ER();)lS(Oe)}function lS(t){var n=t.alternate;(t.mode&De)!==_e?(mp(t),n=le(t,lg,n,t,Ti),pp(t)):n=le(t,lg,n,t,Ti),t.memoizedProps=t.pendingProps,n===null?uf(t):Oe=n}function cS(t){var n=le(t,TD,t);t.memoizedProps=t.pendingProps,n===null?uf(t):Oe=n}function TD(t){var n=t.alternate,a=(t.mode&De)!==_e;switch(a&&mp(t),t.tag){case 15:case 0:n=w_(n,t,t.pendingProps,t.type,void 0,Me);break;case 11:n=w_(n,t,t.pendingProps,t.type.render,t.ref,Me);break;case 5:Cp(t);default:A_(n,t),t=Oe=lw(t,Ti),n=lg(n,t,Ti)}return a&&pp(t),n}function Lo(t,n,a,c){Cd(),Cp(n),sl=null,iu=0;var f=n.return;try{if(cD(t,f,n,a,Me)){mt=du,Zd(t,Fn(a,t.current)),Oe=null;return}}catch(h){if(f!==null)throw Oe=f,h;mt=du,Zd(t,Fn(a,t.current)),Oe=null;return}n.flags&32768?(Ve||c===ih?t=!0:ml||(Me&536870912)!==0?t=!1:(Fs=t=!0,(c===Ga||c===Ya||c===fu||c===hu)&&(c=er.current,c!==null&&c.tag===13&&(c.flags|=16384))),uS(n,t)):uf(n)}function uf(t){var n=t;do{if((n.flags&32768)!==0){uS(n,Fs);return}var a=n.alternate;if(t=n.return,mp(n),a=le(n,fD,a,n,Ti),(n.mode&De)!==_e&&yw(n),a!==null){Oe=a;return}if(n=n.sibling,n!==null){Oe=n;return}Oe=n=t}while(n!==null);mt===ns&&(mt=hx)}function uS(t,n){do{var a=hD(t.alternate,t);if(a!==null){a.flags&=32767,Oe=a;return}if((t.mode&De)!==_e){yw(t),a=t.actualDuration;for(var c=t.child;c!==null;)a+=c.actualDuration,c=c.sibling;t.actualDuration=a}if(a=t.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!n&&(t=t.sibling,t!==null)){Oe=t;return}Oe=t=a}while(t!==null);mt=rh,Oe=null}function vg(t,n,a,c,f,h,b,_,N,A,j,V,M,P){t.cancelPendingCommit=null;do _c();while(jt!==Js);if($r.flushLegacyContextWarning(),$r.flushPendingUnsafeLifecycleWarnings(),(qe&(zt|nr))!==Jt)throw Error("Should not already be working.");if(Or(a),A===Fa?Zm(M,P,a,St):c!==null?Kk(M,P,a,c,n!==null&&n.alternate!==null&&n.alternate.memoizedState.isDehydrated&&(n.flags&256)!==0,St):Jk(M,P,a,St),n!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),n===t.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(h=n.lanes|n.childLanes,h|=Ny,bo(t,a,h,b,_,N),t===nt&&(Oe=nt=null,Me=0),pl=n,Ks=t,zr=a,nb=h,ib=f,Ex=c,rb=P,xx=V,Pr=ch,Tx=null,n.actualDuration!==0||(n.subtreeFlags&10256)!==0||(n.flags&10256)!==0?(t.callbackNode=null,t.callbackPriority=0,DD(Io,function(){return _u=window.event,Pr===ch&&(Pr=tb),pS(),null})):(t.callbackNode=null,t.callbackPriority=0),Ji=null,Hs=Rt(),V!==null&&Wk(P,Hs,V,St),c=(n.flags&13878)!==0,(n.subtreeFlags&13878)!==0||c){c=G.T,G.T=null,f=Ke.p,Ke.p=dr,b=qe,qe|=nr;try{vD(t,n,a)}finally{qe=b,Ke.p=f,G.T=c}}jt=vx,dS(),fS(),hS()}}function dS(){if(jt===vx){jt=Js;var t=Ks,n=pl,a=zr,c=(n.flags&13878)!==0;if((n.subtreeFlags&13878)!==0||c){c=G.T,G.T=null;var f=Ke.p;Ke.p=dr;var h=qe;qe|=nr;try{fl=a,hl=t,Md(),P_(n,t),hl=fl=null,a=pb;var b=Q0(t.containerInfo),_=a.focusedElem,N=a.selectionRange;if(b!==_&&_&&_.ownerDocument&&W0(_.ownerDocument.documentElement,_)){if(N!==null&&Km(_)){var A=N.start,j=N.end;if(j===void 0&&(j=A),"selectionStart"in _)_.selectionStart=A,_.selectionEnd=Math.min(j,_.value.length);else{var V=_.ownerDocument||document,M=V&&V.defaultView||window;if(M.getSelection){var P=M.getSelection(),ae=_.textContent.length,ce=Math.min(N.start,ae),st=N.end===void 0?ce:Math.min(N.end,ae);!P.extend&&ce>st&&(b=st,st=ce,ce=b);var Ie=K0(_,ce),R=K0(_,st);if(Ie&&R&&(P.rangeCount!==1||P.anchorNode!==Ie.node||P.anchorOffset!==Ie.offset||P.focusNode!==R.node||P.focusOffset!==R.offset)){var O=V.createRange();O.setStart(Ie.node,Ie.offset),P.removeAllRanges(),ce>st?(P.addRange(O),P.extend(R.node,R.offset)):(O.setEnd(R.node,R.offset),P.addRange(O))}}}}for(V=[],P=_;P=P.parentNode;)P.nodeType===1&&V.push({element:P,left:P.scrollLeft,top:P.scrollTop});for(typeof _.focus=="function"&&_.focus(),_=0;_<V.length;_++){var U=V[_];U.element.scrollLeft=U.left,U.element.scrollTop=U.top}}Th=!!mb,pb=mb=null}finally{qe=h,Ke.p=f,G.T=c}}t.current=n,jt=wx}}function fS(){if(jt===wx){jt=Js;var t=Tx;if(t!==null){Hs=Rt();var n=Xi,a=Hs;!ot||a<=n||console.timeStamp(t,n,a,Pe,He,"secondary-light")}t=Ks,n=pl,a=zr;var c=(n.flags&8772)!==0;if((n.subtreeFlags&8772)!==0||c){c=G.T,G.T=null;var f=Ke.p;Ke.p=dr;var h=qe;qe|=nr;try{fl=a,hl=t,Md(),V_(t,n.alternate,n),hl=fl=null}finally{qe=h,Ke.p=f,G.T=c}}t=rb,n=xx,Xi=Rt(),t=n===null?t:Hs,n=Xi,a=Pr===eb,c=St,Ji!==null?rw(t,n,Ji,!1,c):!ot||n<=t||(c?c.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",t,n,Pe,He,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",t,n,Pe,He,a?"error":"secondary-dark")),jt=_x}}function hS(){if(jt===Sx||jt===_x){if(jt===Sx){var t=Xi;Xi=Rt();var n=Xi,a=Pr===eb;!ot||n<=t||console.timeStamp(a?"Interrupted View Transition":"Starting Animation",t,n,Pe,He,a?" error":"secondary-light"),Pr!==eb&&(Pr=bx)}jt=Js,xR(),t=Ks;var c=pl;n=zr,a=Ex;var f=c.actualDuration!==0||(c.subtreeFlags&10256)!==0||(c.flags&10256)!==0;f?jt=uh:(jt=Js,pl=Ks=null,mS(t,t.pendingLanes),Ja=0,yu=null);var h=t.pendingLanes;if(h===0&&(Xs=null),f||vS(t),h=ys(n),c=c.stateNode,ln&&typeof ln.onCommitFiberRoot=="function")try{var b=(c.current.flags&128)===128;switch(h){case dr:var _=iy;break;case wi:_=sy;break;case Bi:_=Io;break;case Cf:_=ay;break;default:_=Io}ln.onCommitFiberRoot(zo,c,_,b)}catch(V){bi||(bi=!0,console.error("React instrumentation encountered an error: %o",V))}if(vi&&t.memoizedUpdaters.clear(),_D(),a!==null){b=G.T,_=Ke.p,Ke.p=dr,G.T=null;try{var N=t.onRecoverableError;for(c=0;c<a.length;c++){var A=a[c],j=ND(A.stack);le(A.source,N,A.value,j)}}finally{G.T=b,Ke.p=_}}(zr&3)!==0&&_c(),hi(t),h=t.pendingLanes,(n&261930)!==0&&(h&42)!==0?(Gf=!0,t===sb?gu++:(gu=0,sb=t)):gu=0,f||Ra(n,Xi),Ec(0)}}function ND(t){return t={componentStack:t},Object.defineProperty(t,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),t}function mS(t,n){(t.pooledCacheLanes&=n)===0&&(n=t.pooledCache,n!=null&&(t.pooledCache=null,sc(n)))}function _c(){return dS(),fS(),hS(),pS()}function pS(){if(jt!==uh)return!1;var t=Ks,n=nb;nb=0;var a=ys(zr),c=Bi>a?Bi:a;a=G.T;var f=Ke.p;try{Ke.p=c,G.T=null;var h=ib;ib=null,c=Ks;var b=zr;if(jt=Js,pl=Ks=null,zr=0,(qe&(zt|nr))!==Jt)throw Error("Cannot flush passive effects while already rendering.");Or(b),ab=!0,dh=!1;var _=0;if(Ji=null,_=Gt(),Pr===bx)ep(Xi,_,jM);else{var N=Xi,A=_,j=Pr===tb;!ot||A<=N||(St?St.run(console.timeStamp.bind(console,j?"Waiting for Paint":"Waiting",N,A,Pe,He,"secondary-light")):console.timeStamp(j?"Waiting for Paint":"Waiting",N,A,Pe,He,"secondary-light"))}N=qe,qe|=nr;var V=c.current;Md(),K_(V);var M=c.current;V=rb,Md(),G_(c,M,b,h,V),vS(c),qe=N;var P=Gt();if(M=_,V=St,Ji!==null?rw(M,P,Ji,!0,V):!ot||P<=M||(V?V.run(console.timeStamp.bind(console,"Remaining Effects",M,P,Pe,He,"secondary-dark")):console.timeStamp("Remaining Effects",M,P,Pe,He,"secondary-dark")),Ra(b,P),Ec(0,!1),dh?c===yu?Ja++:(Ja=0,yu=c):Ja=0,dh=ab=!1,ln&&typeof ln.onPostCommitFiberRoot=="function")try{ln.onPostCommitFiberRoot(zo,c)}catch(ce){bi||(bi=!0,console.error("React instrumentation encountered an error: %o",ce))}var ae=c.current.stateNode;return ae.effectDuration=0,ae.passiveEffectDuration=0,!0}finally{Ke.p=f,G.T=a,mS(t,n)}}function gS(t,n,a){n=Fn(a,n),bw(n),n=Wp(t.stateNode,n,2),t=Es(t,n,2),t!==null&&(sr(t,2),hi(t))}function Je(t,n,a){if(gl=!1,t.tag===3)gS(t,t,a);else{for(;n!==null;){if(n.tag===3){gS(n,t,a);return}if(n.tag===1){var c=n.stateNode;if(typeof n.type.getDerivedStateFromError=="function"||typeof c.componentDidCatch=="function"&&(Xs===null||!Xs.has(c))){t=Fn(a,t),bw(t),a=Qp(2),c=Es(n,a,2),c!==null&&(Zp(a,c,n,t),sr(c,2),hi(c));return}}n=n.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
200
+
201
+ Error message:
202
+
203
+ %s`,a)}}function wg(t,n,a){var c=t.pingCache;if(c===null){c=t.pingCache=new FM;var f=new Set;c.set(n,f)}else f=c.get(n),f===void 0&&(f=new Set,c.set(n,f));f.has(a)||(Qy=!0,f.add(a),c=AD.bind(null,t,n,a),vi&&Sc(t,a),n.then(c,c))}function AD(t,n,a){var c=t.pingCache;c!==null&&c.delete(n),t.pingedLanes|=t.suspendedLanes&a,t.warmLanes&=~a,(a&127)!==0?0>Ei&&(ja=Ei=Rt(),Gc=If("Promise Resolved"),Is=zf):(a&4194048)!==0&&0>br&&(Ki=br=Rt(),Xc=If("Promise Resolved"),Oy=zf),Z_()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
204
+
205
+ When testing, code that resolves suspended data should be wrapped into act(...):
206
+
207
+ act(() => {
208
+ /* finish loading suspended data */
209
+ });
210
+ /* assert on the output */
211
+
212
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),nt===t&&(Me&a)===a&&(mt===qs||mt===nh&&(Me&62914560)===Me&&Gt()-oh<gx?(qe&zt)===Jt&&Oo(t,0):Zy|=a,Xa===Me&&(Xa=0)),hi(t)}function yS(t,n){n===0&&(n=ma()),t=on(t,n),t!==null&&(sr(t,n),hi(t))}function CD(t){var n=t.memoizedState,a=0;n!==null&&(a=n.retryLane),yS(t,a)}function kD(t,n){var a=0;switch(t.tag){case 31:case 13:var c=t.stateNode,f=t.memoizedState;f!==null&&(a=f.retryLane);break;case 19:c=t.stateNode;break;case 22:c=t.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}c!==null&&c.delete(n),yS(t,a)}function _g(t,n,a){if((n.subtreeFlags&67117056)!==0)for(n=n.child;n!==null;){var c=t,f=n,h=f.type===Sf;h=a||h,f.tag!==22?f.flags&67108864?h&&le(f,bS,c,f):_g(c,f,h):f.memoizedState===null&&(h&&f.flags&8192?le(f,bS,c,f):f.subtreeFlags&67108864&&le(f,_g,c,f,h)),n=n.sibling}}function bS(t,n){fe(!0);try{q_(n),W_(n),F_(t,n.alternate,n,!1),Y_(t,n,0,null,!1,0)}finally{fe(!1)}}function vS(t){var n=!0;t.current.mode&(cn|Vr)||(n=!1),_g(t,t.current,n)}function wS(t){if((qe&zt)===Jt){var n=t.tag;if(n===3||n===1||n===0||n===11||n===14||n===15){if(n=J(t)||"ReactComponent",fh!==null){if(fh.has(n))return;fh.add(n)}else fh=new Set([n]);le(t,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function Sc(t,n){vi&&t.memoizedUpdaters.forEach(function(a){or(t,a,n)})}function DD(t,n){var a=G.actQueue;return a!==null?(a.push(n),XM):ry(t,n)}function RD(t){Z_()&&G.actQueue===null&&le(t,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
213
+
214
+ When testing, code that causes React state updates should be wrapped into act(...):
215
+
216
+ act(() => {
217
+ /* fire events that update state */
218
+ });
219
+ /* assert on the output */
220
+
221
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,J(t))})}function hi(t){t!==yl&&t.next===null&&(yl===null?hh=yl=t:yl=yl.next=t),mh=!0,G.actQueue!==null?lb||(lb=!0,xS()):ob||(ob=!0,xS())}function Ec(t,n){if(!cb&&mh){cb=!0;do for(var a=!1,c=hh;c!==null;){if(t!==0){var f=c.pendingLanes;if(f===0)var h=0;else{var b=c.suspendedLanes,_=c.pingedLanes;h=(1<<31-gn(42|t)+1)-1,h&=f&~(b&~_),h=h&201326741?h&201326741|1:h?h|2:0}h!==0&&(a=!0,ES(c,h))}else h=Me,h=Mi(c,c===nt?h:0,c.cancelPendingCommit!==null||c.timeoutHandle!==Za),(h&3)===0||Kr(c,h)||(a=!0,ES(c,h));c=c.next}while(a);cb=!1}}function MD(){_u=window.event,Sg()}function Sg(){mh=lb=ob=!1;var t=0;Ws!==0&&HD()&&(t=Ws);for(var n=Gt(),a=null,c=hh;c!==null;){var f=c.next,h=_S(c,n);h===0?(c.next=null,a===null?hh=f:a.next=f,f===null&&(yl=a)):(a=c,(t!==0||(h&3)!==0)&&(mh=!0)),c=f}jt!==Js&&jt!==uh||Ec(t),Ws!==0&&(Ws=0)}function _S(t,n){for(var a=t.suspendedLanes,c=t.pingedLanes,f=t.expirationTimes,h=t.pendingLanes&-62914561;0<h;){var b=31-gn(h),_=1<<b,N=f[b];N===-1?((_&a)===0||(_&c)!==0)&&(f[b]=yo(_,n)):N<=n&&(t.expiredLanes|=_),h&=~_}if(n=nt,a=Me,a=Mi(t,t===n?a:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Za),c=t.callbackNode,a===0||t===n&&(Qe===Ga||Qe===Ya)||t.cancelPendingCommit!==null)return c!==null&&Eg(c),t.callbackNode=null,t.callbackPriority=0;if((a&3)===0||Kr(t,a)){if(n=a&-a,n!==t.callbackPriority||G.actQueue!==null&&c!==ub)Eg(c);else return n;switch(ys(a)){case dr:case wi:a=sy;break;case Bi:a=Io;break;case Cf:a=ay;break;default:a=Io}return c=SS.bind(null,t),G.actQueue!==null?(G.actQueue.push(c),a=ub):a=ry(a,c),t.callbackPriority=n,t.callbackNode=a,n}return c!==null&&Eg(c),t.callbackPriority=2,t.callbackNode=null,2}function SS(t,n){if(Gf=Ff=!1,_u=window.event,jt!==Js&&jt!==uh)return t.callbackNode=null,t.callbackPriority=0,null;var a=t.callbackNode;if(Pr===ch&&(Pr=tb),_c()&&t.callbackNode!==a)return null;var c=Me;return c=Mi(t,t===nt?c:0,t.cancelPendingCommit!==null||t.timeoutHandle!==Za),c===0?null:(tS(t,c,n),_S(t,Gt()),t.callbackNode!=null&&t.callbackNode===a?SS.bind(null,t):null)}function ES(t,n){if(_c())return null;Ff=Gf,Gf=!1,tS(t,n,!0)}function Eg(t){t!==ub&&t!==null&&SR(t)}function xS(){G.actQueue!==null&&G.actQueue.push(function(){return Sg(),null}),i3(function(){(qe&(zt|nr))!==Jt?ry(iy,MD):Sg()})}function xg(){if(Ws===0){var t=Ha;t===0&&(t=Tf,Tf<<=1,(Tf&261888)===0&&(Tf=256)),Ws=t}return Ws}function TS(t){return t==null||typeof t=="symbol"||typeof t=="boolean"?null:typeof t=="function"?t:(Xe(t,"action"),tc(""+t))}function NS(t,n){var a=n.ownerDocument.createElement("input");return a.name=n.name,a.value=n.value,t.id&&a.setAttribute("form",t.id),n.parentNode.insertBefore(a,n),t=new FormData(t),a.parentNode.removeChild(a),t}function OD(t,n,a,c,f){if(n==="submit"&&a&&a.stateNode===f){var h=TS((f[yn]||null).action),b=c.submitter;b&&(n=(n=b[yn]||null)?TS(n.formAction):b.getAttribute("formAction"),n!==null&&(h=n,b=null));var _=new Of("action","action",null,c,f);t.push({event:_,listeners:[{instance:null,listener:function(){if(c.defaultPrevented){if(Ws!==0){var N=b?NS(f,b):new FormData(f),A={pending:!0,data:N,method:f.method,action:h};Object.freeze(A),qp(a,A,null,N)}}else typeof h=="function"&&(_.preventDefault(),N=b?NS(f,b):new FormData(f),A={pending:!0,data:N,method:f.method,action:h},Object.freeze(A),qp(a,A,h,N))},currentTarget:f}]})}}function df(t,n,a){t.currentTarget=a;try{n(t)}catch(c){Sy(c)}t.currentTarget=null}function AS(t,n){n=(n&4)!==0;for(var a=0;a<t.length;a++){var c=t[a];e:{var f=void 0,h=c.event;if(c=c.listeners,n)for(var b=c.length-1;0<=b;b--){var _=c[b],N=_.instance,A=_.currentTarget;if(_=_.listener,N!==f&&h.isPropagationStopped())break e;N!==null?le(N,df,h,_,A):df(h,_,A),f=N}else for(b=0;b<c.length;b++){if(_=c[b],N=_.instance,A=_.currentTarget,_=_.listener,N!==f&&h.isPropagationStopped())break e;N!==null?le(N,df,h,_,A):df(h,_,A),f=N}}}}function $e(t,n){db.has(t)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',t);var a=n[oy];a===void 0&&(a=n[oy]=new Set);var c=t+"__bubble";a.has(c)||(CS(n,t,2,!1),a.add(c))}function Tg(t,n,a){db.has(t)&&!n&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',t);var c=0;n&&(c|=4),CS(a,t,c,n)}function Ng(t){if(!t[ph]){t[ph]=!0,x1.forEach(function(a){a!=="selectionchange"&&(db.has(a)||Tg(a,!1,t),Tg(a,!0,t))});var n=t.nodeType===9?t:t.ownerDocument;n===null||n[ph]||(n[ph]=!0,Tg("selectionchange",!1,n))}}function CS(t,n,a,c){switch(o1(n)){case dr:var f=hR;break;case wi:f=mR;break;default:f=Pg}a=f.bind(null,n,a,t),f=void 0,!fy||n!=="touchstart"&&n!=="touchmove"&&n!=="wheel"||(f=!0),c?f!==void 0?t.addEventListener(n,a,{capture:!0,passive:f}):t.addEventListener(n,a,!0):f!==void 0?t.addEventListener(n,a,{passive:f}):t.addEventListener(n,a,!1)}function Ag(t,n,a,c,f){var h=c;if((n&1)===0&&(n&2)===0&&c!==null)e:for(;;){if(c===null)return;var b=c.tag;if(b===3||b===4){var _=c.stateNode.containerInfo;if(_===f)break;if(b===4)for(b=c.return;b!==null;){var N=b.tag;if((N===3||N===4)&&b.stateNode.containerInfo===f)return;b=b.return}for(;_!==null;){if(b=ee(_),b===null)return;if(N=b.tag,N===5||N===6||N===26||N===27){c=h=b;continue e}_=_.parentNode}}c=c.return}H0(function(){var A=h,j=Xm(a),V=[];e:{var M=oE.get(t);if(M!==void 0){var P=Of,ae=t;switch(t){case"keypress":if(bd(a)===0)break e;case"keydown":case"keyup":P=cM;break;case"focusin":ae="focus",P=gy;break;case"focusout":ae="blur",P=gy;break;case"beforeblur":case"afterblur":P=gy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":P=Y1;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":P=WR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":P=fM;break;case rE:case iE:case sE:P=eM;break;case aE:P=mM;break;case"scroll":case"scrollend":P=JR;break;case"wheel":P=gM;break;case"copy":case"cut":case"paste":P=nM;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":P=J1;break;case"toggle":case"beforetoggle":P=bM}var ce=(n&4)!==0,st=!ce&&(t==="scroll"||t==="scrollend"),Ie=ce?M!==null?M+"Capture":null:M;ce=[];for(var R=A,O;R!==null;){var U=R;if(O=U.stateNode,U=U.tag,U!==5&&U!==26&&U!==27||O===null||Ie===null||(U=nc(R,Ie),U!=null&&ce.push(xc(R,U,O))),st)break;R=R.return}0<ce.length&&(M=new P(M,ae,null,a,j),V.push({event:M,listeners:ce}))}}if((n&7)===0){e:{if(M=t==="mouseover"||t==="pointerover",P=t==="mouseout"||t==="pointerout",M&&a!==Uc&&(ae=a.relatedTarget||a.fromElement)&&(ee(ae)||ae[Os]))break e;if((P||M)&&(M=j.window===j?j:(M=j.ownerDocument)?M.defaultView||M.parentWindow:window,P?(ae=a.relatedTarget||a.toElement,P=A,ae=ae?ee(ae):null,ae!==null&&(st=k(ae),ce=ae.tag,ae!==st||ce!==5&&ce!==27&&ce!==6)&&(ae=null)):(P=null,ae=A),P!==ae)){if(ce=Y1,U="onMouseLeave",Ie="onMouseEnter",R="mouse",(t==="pointerout"||t==="pointerover")&&(ce=J1,U="onPointerLeave",Ie="onPointerEnter",R="pointer"),st=P==null?M:he(P),O=ae==null?M:he(ae),M=new ce(U,R+"leave",P,a,j),M.target=st,M.relatedTarget=O,U=null,ee(j)===A&&(ce=new ce(Ie,R+"enter",ae,a,j),ce.target=O,ce.relatedTarget=st,U=ce),st=U,P&&ae)t:{for(ce=LD,Ie=P,R=ae,O=0,U=Ie;U;U=ce(U))O++;U=0;for(var K=R;K;K=ce(K))U++;for(;0<O-U;)Ie=ce(Ie),O--;for(;0<U-O;)R=ce(R),U--;for(;O--;){if(Ie===R||R!==null&&Ie===R.alternate){ce=Ie;break t}Ie=ce(Ie),R=ce(R)}ce=null}else ce=null;P!==null&&kS(V,M,P,ce,!1),ae!==null&&st!==null&&kS(V,st,ae,ce,!0)}}e:{if(M=A?he(A):window,P=M.nodeName&&M.nodeName.toLowerCase(),P==="select"||P==="input"&&M.type==="file")var oe=G0;else if(q0(M))if(tE)oe=Gk;else{oe=qk;var Ee=Bk}else P=M.nodeName,!P||P.toLowerCase()!=="input"||M.type!=="checkbox"&&M.type!=="radio"?A&&ec(A.elementType)&&(oe=G0):oe=Fk;if(oe&&(oe=oe(t,A))){F0(V,oe,a,j);break e}Ee&&Ee(t,M,A),t==="focusout"&&A&&M.type==="number"&&A.memoizedProps.value!=null&&Pm(M,"number",M.value)}switch(Ee=A?he(A):window,t){case"focusin":(q0(Ee)||Ee.contentEditable==="true")&&(Xo=Ee,by=A,Pc=null);break;case"focusout":Pc=by=Xo=null;break;case"mousedown":vy=!0;break;case"contextmenu":case"mouseup":case"dragend":vy=!1,Z0(V,a,j);break;case"selectionchange":if(SM)break;case"keydown":case"keyup":Z0(V,a,j)}var ye;if(yy)e:{switch(t){case"compositionstart":var me="onCompositionStart";break e;case"compositionend":me="onCompositionEnd";break e;case"compositionupdate":me="onCompositionUpdate";break e}me=void 0}else Yo?P0(t,a)&&(me="onCompositionEnd"):t==="keydown"&&a.keyCode===K1&&(me="onCompositionStart");me&&(W1&&a.locale!=="ko"&&(Yo||me!=="onCompositionStart"?me==="onCompositionEnd"&&Yo&&(ye=I0()):(Ls=j,hy="value"in Ls?Ls.value:Ls.textContent,Yo=!0)),Ee=ff(A,me),0<Ee.length&&(me=new X1(me,t,null,a,j),V.push({event:me,listeners:Ee}),ye?me.data=ye:(ye=B0(a),ye!==null&&(me.data=ye)))),(ye=wM?Hk(t,a):Ik(t,a))&&(me=ff(A,"onBeforeInput"),0<me.length&&(Ee=new iM("onBeforeInput","beforeinput",null,a,j),V.push({event:Ee,listeners:me}),Ee.data=ye)),OD(V,t,A,a,j)}AS(V,n)})}function xc(t,n,a){return{instance:t,listener:n,currentTarget:a}}function ff(t,n){for(var a=n+"Capture",c=[];t!==null;){var f=t,h=f.stateNode;if(f=f.tag,f!==5&&f!==26&&f!==27||h===null||(f=nc(t,a),f!=null&&c.unshift(xc(t,f,h)),f=nc(t,n),f!=null&&c.push(xc(t,f,h))),t.tag===3)return c;t=t.return}return[]}function LD(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5&&t.tag!==27);return t||null}function kS(t,n,a,c,f){for(var h=n._reactName,b=[];a!==null&&a!==c;){var _=a,N=_.alternate,A=_.stateNode;if(_=_.tag,N!==null&&N===c)break;_!==5&&_!==26&&_!==27||A===null||(N=A,f?(A=nc(a,h),A!=null&&b.unshift(xc(a,A,N))):f||(A=nc(a,h),A!=null&&b.push(xc(a,A,N)))),a=a.return}b.length!==0&&t.push({event:n,listeners:b})}function Cg(t,n){Uk(t,n),t!=="input"&&t!=="textarea"&&t!=="select"||n==null||n.value!==null||F1||(F1=!0,t==="select"&&n.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",t):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",t));var a={registrationNameDependencies:Ma,possibleRegistrationNames:ly};ec(t)||typeof n.is=="string"||Vk(t,n,a),n.contentEditable&&!n.suppressContentEditableWarning&&n.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function Ft(t,n,a,c){n!==a&&(a=Cs(a),Cs(n)!==a&&(c[t]=n))}function UD(t,n,a){n.forEach(function(c){a[MS(c)]=c==="style"?Dg(t):t.getAttribute(c)})}function mi(t,n){n===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",t,t,t):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",t,typeof n)}function DS(t,n){return t=t.namespaceURI===Df||t.namespaceURI===Bo?t.ownerDocument.createElementNS(t.namespaceURI,t.tagName):t.ownerDocument.createElement(t.tagName),t.innerHTML=n,t.innerHTML}function Cs(t){return $t(t)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Xr(t)),Rr(t)),(typeof t=="string"?t:""+t).replace(JM,`
222
+ `).replace(KM,"")}function RS(t,n){return n=Cs(n),Cs(t)===n}function et(t,n,a,c,f,h){switch(a){case"children":typeof c=="string"?(yd(c,n,!1),n==="body"||n==="textarea"&&c===""||Zl(t,c)):(typeof c=="number"||typeof c=="bigint")&&(yd(""+c,n,!1),n!=="body"&&Zl(t,""+c));break;case"className":md(t,"class",c);break;case"tabIndex":md(t,"tabindex",c);break;case"dir":case"role":case"viewBox":case"width":case"height":md(t,a,c);break;case"style":j0(t,c,h);break;case"data":if(n!=="object"){md(t,"data",c);break}case"src":case"href":if(c===""&&(n!=="a"||a!=="href")){console.error(a==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),t.removeAttribute(a);break}if(c==null||typeof c=="function"||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}Xe(c,a),c=tc(""+c),t.setAttribute(a,c);break;case"action":case"formAction":if(c!=null&&(n==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof c=="function"&&(f.encType==null&&f.method==null||bh||(bh=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),f.target==null||yh||(yh=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):n==="input"||n==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):n!=="input"||f.type==="submit"||f.type==="image"||gh?n!=="button"||f.type==null||f.type==="submit"||gh?typeof c=="function"&&(f.name==null||Dx||(Dx=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),f.formEncType==null&&f.formMethod==null||bh||(bh=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),f.formTarget==null||yh||(yh=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(gh=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(gh=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):console.error(a==="action"?"You can only pass the action prop to <form>.":"You can only pass the formAction prop to <input> or <button>.")),typeof c=="function"){t.setAttribute(a,"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 h=="function"&&(a==="formAction"?(n!=="input"&&et(t,n,"name",f.name,f,null),et(t,n,"formEncType",f.formEncType,f,null),et(t,n,"formMethod",f.formMethod,f,null),et(t,n,"formTarget",f.formTarget,f,null)):(et(t,n,"encType",f.encType,f,null),et(t,n,"method",f.method,f,null),et(t,n,"target",f.target,f,null)));if(c==null||typeof c=="symbol"||typeof c=="boolean"){t.removeAttribute(a);break}Xe(c,a),c=tc(""+c),t.setAttribute(a,c);break;case"onClick":c!=null&&(typeof c!="function"&&mi(a,c),t.onclick=Li);break;case"onScroll":c!=null&&(typeof c!="function"&&mi(a,c),$e("scroll",t));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&mi(a,c),$e("scrollend",t));break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=c.__html,a!=null){if(f.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=a}}break;case"multiple":t.multiple=c&&typeof c!="function"&&typeof c!="symbol";break;case"muted":t.muted=c&&typeof c!="function"&&typeof c!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(c==null||typeof c=="function"||typeof c=="boolean"||typeof c=="symbol"){t.removeAttribute("xlink:href");break}Xe(c,a),a=tc(""+c),t.setAttributeNS(Ka,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":c!=null&&typeof c!="function"&&typeof c!="symbol"?(Xe(c,a),t.setAttribute(a,""+c)):t.removeAttribute(a);break;case"inert":c!==""||vh[a]||(vh[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));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":c&&typeof c!="function"&&typeof c!="symbol"?t.setAttribute(a,""):t.removeAttribute(a);break;case"capture":case"download":c===!0?t.setAttribute(a,""):c!==!1&&c!=null&&typeof c!="function"&&typeof c!="symbol"?(Xe(c,a),t.setAttribute(a,c)):t.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":c!=null&&typeof c!="function"&&typeof c!="symbol"&&!isNaN(c)&&1<=c?(Xe(c,a),t.setAttribute(a,c)):t.removeAttribute(a);break;case"rowSpan":case"start":c==null||typeof c=="function"||typeof c=="symbol"||isNaN(c)?t.removeAttribute(a):(Xe(c,a),t.setAttribute(a,c));break;case"popover":$e("beforetoggle",t),$e("toggle",t),vo(t,"popover",c);break;case"xlinkActuate":Oi(t,Ka,"xlink:actuate",c);break;case"xlinkArcrole":Oi(t,Ka,"xlink:arcrole",c);break;case"xlinkRole":Oi(t,Ka,"xlink:role",c);break;case"xlinkShow":Oi(t,Ka,"xlink:show",c);break;case"xlinkTitle":Oi(t,Ka,"xlink:title",c);break;case"xlinkType":Oi(t,Ka,"xlink:type",c);break;case"xmlBase":Oi(t,fb,"xml:base",c);break;case"xmlLang":Oi(t,fb,"xml:lang",c);break;case"xmlSpace":Oi(t,fb,"xml:space",c);break;case"is":h!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),vo(t,"is",c);break;case"innerText":case"textContent":break;case"popoverTarget":Rx||c==null||typeof c!="object"||(Rx=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",c));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=V0(a),vo(t,a,c)):Ma.hasOwnProperty(a)&&c!=null&&typeof c!="function"&&mi(a,c)}}function kg(t,n,a,c,f,h){switch(a){case"style":j0(t,c,h);break;case"dangerouslySetInnerHTML":if(c!=null){if(typeof c!="object"||!("__html"in c))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=c.__html,a!=null){if(f.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");t.innerHTML=a}}break;case"children":typeof c=="string"?Zl(t,c):(typeof c=="number"||typeof c=="bigint")&&Zl(t,""+c);break;case"onScroll":c!=null&&(typeof c!="function"&&mi(a,c),$e("scroll",t));break;case"onScrollEnd":c!=null&&(typeof c!="function"&&mi(a,c),$e("scrollend",t));break;case"onClick":c!=null&&(typeof c!="function"&&mi(a,c),t.onclick=Li);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ma.hasOwnProperty(a))c!=null&&typeof c!="function"&&mi(a,c);else e:{if(a[0]==="o"&&a[1]==="n"&&(f=a.endsWith("Capture"),n=a.slice(2,f?a.length-7:void 0),h=t[yn]||null,h=h!=null?h[a]:null,typeof h=="function"&&t.removeEventListener(n,h,f),typeof c=="function")){typeof h!="function"&&h!==null&&(a in t?t[a]=null:t.hasAttribute(a)&&t.removeAttribute(a)),t.addEventListener(n,c,f);break e}a in t?t[a]=c:c===!0?t.setAttribute(a,""):vo(t,a,c)}}}function en(t,n,a){switch(Cg(n,a),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":$e("error",t),$e("load",t);var c=!1,f=!1,h;for(h in a)if(a.hasOwnProperty(h)){var b=a[h];if(b!=null)switch(h){case"src":c=!0;break;case"srcSet":f=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:et(t,n,h,b,a,null)}}f&&et(t,n,"srcSet",a.srcSet,a,null),c&&et(t,n,"src",a.src,a,null);return;case"input":mn("input",a),$e("invalid",t);var _=h=b=f=null,N=null,A=null;for(c in a)if(a.hasOwnProperty(c)){var j=a[c];if(j!=null)switch(c){case"name":f=j;break;case"type":b=j;break;case"checked":N=j;break;case"defaultChecked":A=j;break;case"value":h=j;break;case"defaultValue":_=j;break;case"children":case"dangerouslySetInnerHTML":if(j!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:et(t,n,c,j,a,null)}}w0(t,a),_0(t,h,_,N,A,b,f,!1);return;case"select":mn("select",a),$e("invalid",t),c=b=h=null;for(f in a)if(a.hasOwnProperty(f)&&(_=a[f],_!=null))switch(f){case"value":h=_;break;case"defaultValue":b=_;break;case"multiple":c=_;default:et(t,n,f,_,a,null)}x0(t,a),n=h,a=b,t.multiple=!!c,n!=null?wo(t,!!c,n,!1):a!=null&&wo(t,!!c,a,!0);return;case"textarea":mn("textarea",a),$e("invalid",t),h=f=c=null;for(b in a)if(a.hasOwnProperty(b)&&(_=a[b],_!=null))switch(b){case"value":c=_;break;case"defaultValue":f=_;break;case"children":h=_;break;case"dangerouslySetInnerHTML":if(_!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:et(t,n,b,_,a,null)}T0(t,a),A0(t,c,f,h);return;case"option":S0(t,a);for(N in a)if(a.hasOwnProperty(N)&&(c=a[N],c!=null))switch(N){case"selected":t.selected=c&&typeof c!="function"&&typeof c!="symbol";break;default:et(t,n,N,c,a,null)}return;case"dialog":$e("beforetoggle",t),$e("toggle",t),$e("cancel",t),$e("close",t);break;case"iframe":case"object":$e("load",t);break;case"video":case"audio":for(c=0;c<bu.length;c++)$e(bu[c],t);break;case"image":$e("error",t),$e("load",t);break;case"details":$e("toggle",t);break;case"embed":case"source":case"link":$e("error",t),$e("load",t);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(A in a)if(a.hasOwnProperty(A)&&(c=a[A],c!=null))switch(A){case"children":case"dangerouslySetInnerHTML":throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:et(t,n,A,c,a,null)}return;default:if(ec(n)){for(j in a)a.hasOwnProperty(j)&&(c=a[j],c!==void 0&&kg(t,n,j,c,a,void 0));return}}for(_ in a)a.hasOwnProperty(_)&&(c=a[_],c!=null&&et(t,n,_,c,a,null))}function jD(t,n,a,c){switch(Cg(n,c),n){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var f=null,h=null,b=null,_=null,N=null,A=null,j=null;for(P in a){var V=a[P];if(a.hasOwnProperty(P)&&V!=null)switch(P){case"checked":break;case"value":break;case"defaultValue":N=V;default:c.hasOwnProperty(P)||et(t,n,P,null,c,V)}}for(var M in c){var P=c[M];if(V=a[M],c.hasOwnProperty(M)&&(P!=null||V!=null))switch(M){case"type":h=P;break;case"name":f=P;break;case"checked":A=P;break;case"defaultChecked":j=P;break;case"value":b=P;break;case"defaultValue":_=P;break;case"children":case"dangerouslySetInnerHTML":if(P!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:P!==V&&et(t,n,M,P,c,V)}}n=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,c=c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null,n||!c||kx||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),kx=!0),!n||c||Cx||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),Cx=!0),zm(t,b,_,N,A,j,h,f);return;case"select":P=b=_=M=null;for(h in a)if(N=a[h],a.hasOwnProperty(h)&&N!=null)switch(h){case"value":break;case"multiple":P=N;default:c.hasOwnProperty(h)||et(t,n,h,null,c,N)}for(f in c)if(h=c[f],N=a[f],c.hasOwnProperty(f)&&(h!=null||N!=null))switch(f){case"value":M=h;break;case"defaultValue":_=h;break;case"multiple":b=h;default:h!==N&&et(t,n,f,h,c,N)}c=_,n=b,a=P,M!=null?wo(t,!!n,M,!1):!!a!=!!n&&(c!=null?wo(t,!!n,c,!0):wo(t,!!n,n?[]:"",!1));return;case"textarea":P=M=null;for(_ in a)if(f=a[_],a.hasOwnProperty(_)&&f!=null&&!c.hasOwnProperty(_))switch(_){case"value":break;case"children":break;default:et(t,n,_,null,c,f)}for(b in c)if(f=c[b],h=a[b],c.hasOwnProperty(b)&&(f!=null||h!=null))switch(b){case"value":M=f;break;case"defaultValue":P=f;break;case"children":break;case"dangerouslySetInnerHTML":if(f!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:f!==h&&et(t,n,b,f,c,h)}N0(t,M,P);return;case"option":for(var ae in a)if(M=a[ae],a.hasOwnProperty(ae)&&M!=null&&!c.hasOwnProperty(ae))switch(ae){case"selected":t.selected=!1;break;default:et(t,n,ae,null,c,M)}for(N in c)if(M=c[N],P=a[N],c.hasOwnProperty(N)&&M!==P&&(M!=null||P!=null))switch(N){case"selected":t.selected=M&&typeof M!="function"&&typeof M!="symbol";break;default:et(t,n,N,M,c,P)}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 ce in a)M=a[ce],a.hasOwnProperty(ce)&&M!=null&&!c.hasOwnProperty(ce)&&et(t,n,ce,null,c,M);for(A in c)if(M=c[A],P=a[A],c.hasOwnProperty(A)&&M!==P&&(M!=null||P!=null))switch(A){case"children":case"dangerouslySetInnerHTML":if(M!=null)throw Error(n+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:et(t,n,A,M,c,P)}return;default:if(ec(n)){for(var st in a)M=a[st],a.hasOwnProperty(st)&&M!==void 0&&!c.hasOwnProperty(st)&&kg(t,n,st,void 0,c,M);for(j in c)M=c[j],P=a[j],!c.hasOwnProperty(j)||M===P||M===void 0&&P===void 0||kg(t,n,j,M,c,P);return}}for(var Ie in a)M=a[Ie],a.hasOwnProperty(Ie)&&M!=null&&!c.hasOwnProperty(Ie)&&et(t,n,Ie,null,c,M);for(V in c)M=c[V],P=a[V],!c.hasOwnProperty(V)||M===P||M==null&&P==null||et(t,n,V,M,c,P)}function MS(t){switch(t){case"class":return"className";case"for":return"htmlFor";default:return t}}function Dg(t){var n={};t=t.style;for(var a=0;a<t.length;a++){var c=t[a];n[c]=t.getPropertyValue(c)}return n}function OS(t,n,a){if(n!=null&&typeof n!="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var c,f=c="",h;for(h in n)if(n.hasOwnProperty(h)){var b=n[h];b!=null&&typeof b!="boolean"&&b!==""&&(h.indexOf("--")===0?(qt(b,h),c+=f+h+":"+(""+b).trim()):typeof b!="number"||b===0||B1.has(h)?(qt(b,h),c+=f+h.replace($1,"-$1").toLowerCase().replace(H1,"-ms-")+":"+(""+b).trim()):c+=f+h.replace($1,"-$1").toLowerCase().replace(H1,"-ms-")+":"+b+"px",f=";")}c=c||null,n=t.getAttribute("style"),n!==c&&(c=Cs(c),Cs(n)!==c&&(a.style=Dg(t)))}}function ur(t,n,a,c,f,h){if(f.delete(a),t=t.getAttribute(a),t===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(Xe(c,n),t===""+c)return}Ft(n,t,c,h)}function LS(t,n,a,c,f,h){if(f.delete(a),t=t.getAttribute(a),t===null){switch(typeof c){case"function":case"symbol":return}if(!c)return}else switch(typeof c){case"function":case"symbol":break;default:if(c)return}Ft(n,t,c,h)}function Rg(t,n,a,c,f,h){if(f.delete(a),t=t.getAttribute(a),t===null)switch(typeof c){case"undefined":case"function":case"symbol":return}else if(c!=null)switch(typeof c){case"function":case"symbol":break;default:if(Xe(c,a),t===""+c)return}Ft(n,t,c,h)}function US(t,n,a,c,f,h){if(f.delete(a),t=t.getAttribute(a),t===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(c))return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(!isNaN(c)&&(Xe(c,n),t===""+c))return}Ft(n,t,c,h)}function Mg(t,n,a,c,f,h){if(f.delete(a),t=t.getAttribute(a),t===null)switch(typeof c){case"undefined":case"function":case"symbol":case"boolean":return}else if(c!=null)switch(typeof c){case"function":case"symbol":case"boolean":break;default:if(Xe(c,n),a=tc(""+c),t===a)return}Ft(n,t,c,h)}function jS(t,n,a,c){for(var f={},h=new Set,b=t.attributes,_=0;_<b.length;_++)switch(b[_].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:h.add(b[_].name)}if(ec(n)){for(var N in a)if(a.hasOwnProperty(N)){var A=a[N];if(A!=null){if(Ma.hasOwnProperty(N))typeof A!="function"&&mi(N,A);else if(a.suppressHydrationWarning!==!0)switch(N){case"children":typeof A!="string"&&typeof A!="number"||Ft("children",t.textContent,A,f);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":b=t.innerHTML,A=A?A.__html:void 0,A!=null&&(A=DS(t,A),Ft(N,b,A,f));continue;case"style":h.delete(N),OS(t,A,f);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":h.delete(N.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",N);continue;case"className":h.delete("class"),b=hd(t,"class",A),Ft("className",b,A,f);continue;default:c.context===rs&&n!=="svg"&&n!=="math"?h.delete(N.toLowerCase()):h.delete(N),b=hd(t,N,A),Ft(N,b,A,f)}}}}else for(A in a)if(a.hasOwnProperty(A)&&(N=a[A],N!=null)){if(Ma.hasOwnProperty(A))typeof N!="function"&&mi(A,N);else if(a.suppressHydrationWarning!==!0)switch(A){case"children":typeof N!="string"&&typeof N!="number"||Ft("children",t.textContent,N,f);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":b=t.innerHTML,N=N?N.__html:void 0,N!=null&&(N=DS(t,N),b!==N&&(f[A]={__html:b}));continue;case"className":ur(t,A,"class",N,h,f);continue;case"tabIndex":ur(t,A,"tabindex",N,h,f);continue;case"style":h.delete(A),OS(t,N,f);continue;case"multiple":h.delete(A),Ft(A,t.multiple,N,f);continue;case"muted":h.delete(A),Ft(A,t.muted,N,f);continue;case"autoFocus":h.delete("autofocus"),Ft(A,t.autofocus,N,f);continue;case"data":if(n!=="object"){h.delete(A),b=t.getAttribute("data"),Ft(A,b,N,f);continue}case"src":case"href":if(!(N!==""||n==="a"&&A==="href"||n==="object"&&A==="data")){console.error(A==="src"?'An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.':'An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',A,A);continue}Mg(t,A,A,N,h,f);continue;case"action":case"formAction":if(b=t.getAttribute(A),typeof N=="function"){h.delete(A.toLowerCase()),A==="formAction"?(h.delete("name"),h.delete("formenctype"),h.delete("formmethod"),h.delete("formtarget")):(h.delete("enctype"),h.delete("method"),h.delete("target"));continue}else if(b===WM){h.delete(A.toLowerCase()),Ft(A,"function",N,f);continue}Mg(t,A,A.toLowerCase(),N,h,f);continue;case"xlinkHref":Mg(t,A,"xlink:href",N,h,f);continue;case"contentEditable":Rg(t,A,"contenteditable",N,h,f);continue;case"spellCheck":Rg(t,A,"spellcheck",N,h,f);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Rg(t,A,A,N,h,f);continue;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":LS(t,A,A.toLowerCase(),N,h,f);continue;case"capture":case"download":e:{_=t;var j=b=A,V=f;if(h.delete(j),_=_.getAttribute(j),_===null)switch(typeof N){case"undefined":case"function":case"symbol":break e;default:if(N===!1)break e}else if(N!=null)switch(typeof N){case"function":case"symbol":break;case"boolean":if(N===!0&&_==="")break e;break;default:if(Xe(N,b),_===""+N)break e}Ft(b,_,N,V)}continue;case"cols":case"rows":case"size":case"span":e:{if(_=t,j=b=A,V=f,h.delete(j),_=_.getAttribute(j),_===null)switch(typeof N){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(N)||1>N)break e}else if(N!=null)switch(typeof N){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(N)||1>N)&&(Xe(N,b),_===""+N))break e}Ft(b,_,N,V)}continue;case"rowSpan":US(t,A,"rowspan",N,h,f);continue;case"start":US(t,A,A,N,h,f);continue;case"xHeight":ur(t,A,"x-height",N,h,f);continue;case"xlinkActuate":ur(t,A,"xlink:actuate",N,h,f);continue;case"xlinkArcrole":ur(t,A,"xlink:arcrole",N,h,f);continue;case"xlinkRole":ur(t,A,"xlink:role",N,h,f);continue;case"xlinkShow":ur(t,A,"xlink:show",N,h,f);continue;case"xlinkTitle":ur(t,A,"xlink:title",N,h,f);continue;case"xlinkType":ur(t,A,"xlink:type",N,h,f);continue;case"xmlBase":ur(t,A,"xml:base",N,h,f);continue;case"xmlLang":ur(t,A,"xml:lang",N,h,f);continue;case"xmlSpace":ur(t,A,"xml:space",N,h,f);continue;case"inert":N!==""||vh[A]||(vh[A]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",A)),LS(t,A,A,N,h,f);continue;default:if(!(2<A.length)||A[0]!=="o"&&A[0]!=="O"||A[1]!=="n"&&A[1]!=="N"){_=V0(A),b=!1,c.context===rs&&n!=="svg"&&n!=="math"?h.delete(_.toLowerCase()):(j=A.toLowerCase(),j=Rf.hasOwnProperty(j)&&Rf[j]||null,j!==null&&j!==A&&(b=!0,h.delete(j)),h.delete(_));e:if(j=t,V=_,_=N,Qr(V))if(j.hasAttribute(V))j=j.getAttribute(V),Xe(_,V),_=j===""+_?_:j;else{switch(typeof _){case"function":case"symbol":break e;case"boolean":if(j=V.toLowerCase().slice(0,5),j!=="data-"&&j!=="aria-")break e}_=_===void 0?void 0:null}else _=void 0;b||Ft(A,_,N,f)}}}return 0<h.size&&a.suppressHydrationWarning!==!0&&UD(t,h,f),Object.keys(f).length===0?null:f}function VD(t,n){switch(t.length){case 0:return"";case 1:return t[0];case 2:return t[0]+" "+n+" "+t[1];default:return t.slice(0,-1).join(", ")+", "+n+" "+t[t.length-1]}}function VS(t){switch(t){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function $D(){if(typeof performance.getEntriesByType=="function"){for(var t=0,n=0,a=performance.getEntriesByType("resource"),c=0;c<a.length;c++){var f=a[c],h=f.transferSize,b=f.initiatorType,_=f.duration;if(h&&_&&VS(b)){for(b=0,_=f.responseEnd,c+=1;c<a.length;c++){var N=a[c],A=N.startTime;if(A>_)break;var j=N.transferSize,V=N.initiatorType;j&&VS(V)&&(N=N.responseEnd,b+=j*(N<_?1:(_-A)/(N-A)))}if(--c,n+=8*(h+b)/(f.duration/1e3),t++,10<t)break}}if(0<t)return n/t/1e6}return navigator.connection&&(t=navigator.connection.downlink,typeof t=="number")?t:5}function hf(t){return t.nodeType===9?t:t.ownerDocument}function $S(t){switch(t){case Bo:return vl;case Df:return _h;default:return rs}}function HS(t,n){if(t===rs)switch(n){case"svg":return vl;case"math":return _h;default:return rs}return t===vl&&n==="foreignObject"?rs:t}function Og(t,n){return t==="textarea"||t==="noscript"||typeof n.children=="string"||typeof n.children=="number"||typeof n.children=="bigint"||typeof n.dangerouslySetInnerHTML=="object"&&n.dangerouslySetInnerHTML!==null&&n.dangerouslySetInnerHTML.__html!=null}function HD(){var t=window.event;return t&&t.type==="popstate"?t===gb?!1:(gb=t,!0):(gb=null,!1)}function Tc(){var t=window.event;return t&&t!==_u?t.type:null}function Nc(){var t=window.event;return t&&t!==_u?t.timeStamp:-1.1}function ID(t){setTimeout(function(){throw t})}function zD(t,n,a){switch(n){case"button":case"input":case"select":case"textarea":a.autoFocus&&t.focus();break;case"img":a.src?t.src=a.src:a.srcSet&&(t.srcset=a.srcSet)}}function PD(){}function BD(t,n,a,c){jD(t,n,a,c),t[yn]=c}function IS(t){Zl(t,"")}function qD(t,n,a){t.nodeValue=a}function zS(t){if(!t.__reactWarnedAboutChildrenConflict){var n=t[yn]||null;if(n!==null){var a=ie(t);a!==null&&(typeof n.children=="string"||typeof n.children=="number"?(t.__reactWarnedAboutChildrenConflict=!0,le(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):n.dangerouslySetInnerHTML!=null&&(t.__reactWarnedAboutChildrenConflict=!0,le(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function ks(t){return t==="head"}function FD(t,n){t.removeChild(n)}function GD(t,n){(t.nodeType===9?t.body:t.nodeName==="HTML"?t.ownerDocument.body:t).removeChild(n)}function PS(t,n){var a=n,c=0;do{var f=a.nextSibling;if(t.removeChild(a),f&&f.nodeType===8)if(a=f.data,a===wu||a===wh){if(c===0){t.removeChild(f),Vo(n);return}c--}else if(a===vu||a===Qs||a===Qa||a===bl||a===Wa)c++;else if(a===ZM)Ac(t.ownerDocument.documentElement);else if(a===t3){a=t.ownerDocument.head,Ac(a);for(var h=a.firstChild;h;){var b=h.nextSibling,_=h.nodeName;h[Lc]||_==="SCRIPT"||_==="STYLE"||_==="LINK"&&h.rel.toLowerCase()==="stylesheet"||a.removeChild(h),h=b}}else a===e3&&Ac(t.ownerDocument.body);a=f}while(a);Vo(n)}function BS(t,n){var a=t;t=0;do{var c=a.nextSibling;if(a.nodeType===1?n?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(n?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),c&&c.nodeType===8)if(a=c.data,a===wu){if(t===0)break;t--}else a!==vu&&a!==Qs&&a!==Qa&&a!==bl||t++;a=c}while(a)}function YD(t){BS(t,!0)}function XD(t){t=t.style,typeof t.setProperty=="function"?t.setProperty("display","none","important"):t.display="none"}function JD(t){t.nodeValue=""}function KD(t){BS(t,!1)}function WD(t,n){n=n[n3],n=n!=null&&n.hasOwnProperty("display")?n.display:null,t.style.display=n==null||typeof n=="boolean"?"":(""+n).trim()}function QD(t,n){t.nodeValue=n}function Lg(t){var n=t.firstChild;for(n&&n.nodeType===10&&(n=n.nextSibling);n;){var a=n;switch(n=n.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Lg(a),L(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}t.removeChild(a)}}function ZD(t,n,a,c){for(;t.nodeType===1;){var f=a;if(t.nodeName.toLowerCase()!==n.toLowerCase()){if(!c&&(t.nodeName!=="INPUT"||t.type!=="hidden"))break}else if(c){if(!t[Lc])switch(n){case"meta":if(!t.hasAttribute("itemprop"))break;return t;case"link":if(h=t.getAttribute("rel"),h==="stylesheet"&&t.hasAttribute("data-precedence"))break;if(h!==f.rel||t.getAttribute("href")!==(f.href==null||f.href===""?null:f.href)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin)||t.getAttribute("title")!==(f.title==null?null:f.title))break;return t;case"style":if(t.hasAttribute("data-precedence"))break;return t;case"script":if(h=t.getAttribute("src"),(h!==(f.src==null?null:f.src)||t.getAttribute("type")!==(f.type==null?null:f.type)||t.getAttribute("crossorigin")!==(f.crossOrigin==null?null:f.crossOrigin))&&h&&t.hasAttribute("async")&&!t.hasAttribute("itemprop"))break;return t;default:return t}}else if(n==="input"&&t.type==="hidden"){Xe(f.name,"name");var h=f.name==null?null:""+f.name;if(f.type==="hidden"&&t.getAttribute("name")===h)return t}else return t;if(t=Kn(t.nextSibling),t===null)break}return null}function eR(t,n,a){if(n==="")return null;for(;t.nodeType!==3;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!a||(t=Kn(t.nextSibling),t===null))return null;return t}function qS(t,n){for(;t.nodeType!==8;)if((t.nodeType!==1||t.nodeName!=="INPUT"||t.type!=="hidden")&&!n||(t=Kn(t.nextSibling),t===null))return null;return t}function Ug(t){return t.data===Qs||t.data===Qa}function jg(t){return t.data===bl||t.data===Qs&&t.ownerDocument.readyState!==Ox}function tR(t,n){var a=t.ownerDocument;if(t.data===Qa)t._reactRetry=n;else if(t.data!==Qs||a.readyState!==Ox)n();else{var c=function(){n(),a.removeEventListener("DOMContentLoaded",c)};a.addEventListener("DOMContentLoaded",c),t._reactRetry=c}}function Kn(t){for(;t!=null;t=t.nextSibling){var n=t.nodeType;if(n===1||n===3)break;if(n===8){if(n=t.data,n===vu||n===bl||n===Qs||n===Qa||n===Wa||n===hb||n===Mx)break;if(n===wu||n===wh)return null}}return t}function FS(t){if(t.nodeType===1){for(var n=t.nodeName.toLowerCase(),a={},c=t.attributes,f=0;f<c.length;f++){var h=c[f];a[MS(h.name)]=h.name.toLowerCase()==="style"?Dg(t):h.value}return{type:n,props:a}}return t.nodeType===8?t.data===Wa?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:t.nodeValue}function GS(t,n,a){return a===null||a[QM]!==!0?(t.nodeValue===n?t=null:(n=Cs(n),t=Cs(t.nodeValue)===n?null:t.nodeValue),t):null}function Vg(t){t=t.nextSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a===wu||a===wh){if(n===0)return Kn(t.nextSibling);n--}else a!==vu&&a!==bl&&a!==Qs&&a!==Qa&&a!==Wa||n++}t=t.nextSibling}return null}function YS(t){t=t.previousSibling;for(var n=0;t;){if(t.nodeType===8){var a=t.data;if(a===vu||a===bl||a===Qs||a===Qa||a===Wa){if(n===0)return t;n--}else a!==wu&&a!==wh||n++}t=t.previousSibling}return null}function nR(t){Vo(t)}function rR(t){Vo(t)}function iR(t){Vo(t)}function XS(t,n,a,c,f){switch(f&&Ym(t,c.ancestorInfo),n=hf(a),t){case"html":if(t=n.documentElement,!t)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"head":if(t=n.head,!t)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return t;case"body":if(t=n.body,!t)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return t;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function sR(t,n,a,c){if(!a[Os]&&ie(a)){var f=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",f,f,f)}switch(t){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(f=a.attributes;f.length;)a.removeAttributeNode(f[0]);en(a,t,n),a[tn]=c,a[yn]=n}function Ac(t){for(var n=t.attributes;n.length;)t.removeAttributeNode(n[0]);L(t)}function mf(t){return typeof t.getRootNode=="function"?t.getRootNode():t.nodeType===9?t:t.ownerDocument}function JS(t,n,a){var c=wl;if(c&&typeof n=="string"&&n){var f=cr(n);f='link[rel="'+t+'"][href="'+f+'"]',typeof a=="string"&&(f+='[crossorigin="'+a+'"]'),Hx.has(f)||(Hx.add(f),t={rel:t,crossOrigin:a,href:n},c.querySelector(f)===null&&(n=c.createElement("link"),en(n,"link",t),pe(n),c.head.appendChild(n)))}}function KS(t,n,a,c){var f=(f=Rs.current)?mf(f):null;if(!f)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(t){case"meta":case"title":return null;case"style":return typeof a.precedence=="string"&&typeof a.href=="string"?(a=Uo(a.href),n=Ne(f).hoistableStyles,c=n.get(a),c||(c={type:"style",instance:null,count:0,state:null},n.set(a,c)),c):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href=="string"&&typeof a.precedence=="string"){t=Uo(a.href);var h=Ne(f).hoistableStyles,b=h.get(t);if(!b&&(f=f.ownerDocument||f,b={type:"stylesheet",instance:null,count:0,state:{loading:eo,preload:null}},h.set(t,b),(h=f.querySelector(Cc(t)))&&!h._p&&(b.instance=h,b.state.loading=Su|Sr),!Er.has(t))){var _={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};Er.set(t,_),h||aR(f,t,_,b.state)}if(n&&c===null)throw a=`
223
+
224
+ - `+pf(n)+`
225
+ + `+pf(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return b}if(n&&c!==null)throw a=`
226
+
227
+ - `+pf(n)+`
228
+ + `+pf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return n=a.async,a=a.src,typeof a=="string"&&n&&typeof n!="function"&&typeof n!="symbol"?(a=jo(a),n=Ne(f).hoistableScripts,c=n.get(a),c||(c={type:"script",instance:null,count:0,state:null},n.set(a,c)),c):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+t+'". this is a bug in React.')}}function pf(t){var n=0,a="<link";return typeof t.rel=="string"?(n++,a+=' rel="'+t.rel+'"'):jr.call(t,"rel")&&(n++,a+=' rel="'+(t.rel===null?"null":"invalid type "+typeof t.rel)+'"'),typeof t.href=="string"?(n++,a+=' href="'+t.href+'"'):jr.call(t,"href")&&(n++,a+=' href="'+(t.href===null?"null":"invalid type "+typeof t.href)+'"'),typeof t.precedence=="string"?(n++,a+=' precedence="'+t.precedence+'"'):jr.call(t,"precedence")&&(n++,a+=" precedence={"+(t.precedence===null?"null":"invalid type "+typeof t.precedence)+"}"),Object.getOwnPropertyNames(t).length>n&&(a+=" ..."),a+" />"}function Uo(t){return'href="'+cr(t)+'"'}function Cc(t){return'link[rel="stylesheet"]['+t+"]"}function WS(t){return Ue({},t,{"data-precedence":t.precedence,precedence:null})}function aR(t,n,a,c){t.querySelector('link[rel="preload"][as="style"]['+n+"]")?c.loading=Su:(n=t.createElement("link"),c.preload=n,n.addEventListener("load",function(){return c.loading|=Su}),n.addEventListener("error",function(){return c.loading|=Vx}),en(n,"link",a),pe(n),t.head.appendChild(n))}function jo(t){return'[src="'+cr(t)+'"]'}function kc(t){return"script[async]"+t}function QS(t,n,a){if(n.count++,n.instance===null)switch(n.type){case"style":var c=t.querySelector('style[data-href~="'+cr(a.href)+'"]');if(c)return n.instance=c,pe(c),c;var f=Ue({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return c=(t.ownerDocument||t).createElement("style"),pe(c),en(c,"style",f),gf(c,a.precedence,t),n.instance=c;case"stylesheet":f=Uo(a.href);var h=t.querySelector(Cc(f));if(h)return n.state.loading|=Sr,n.instance=h,pe(h),h;c=WS(a),(f=Er.get(f))&&$g(c,f),h=(t.ownerDocument||t).createElement("link"),pe(h);var b=h;return b._p=new Promise(function(_,N){b.onload=_,b.onerror=N}),en(h,"link",c),n.state.loading|=Sr,gf(h,a.precedence,t),n.instance=h;case"script":return h=jo(a.src),(f=t.querySelector(kc(h)))?(n.instance=f,pe(f),f):(c=a,(f=Er.get(h))&&(c=Ue({},a),Hg(c,f)),t=t.ownerDocument||t,f=t.createElement("script"),pe(f),en(f,"link",c),t.head.appendChild(f),n.instance=f);case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+n.type+'". this is a bug in React.')}else n.type==="stylesheet"&&(n.state.loading&Sr)===eo&&(c=n.instance,n.state.loading|=Sr,gf(c,a.precedence,t));return n.instance}function gf(t,n,a){for(var c=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),f=c.length?c[c.length-1]:null,h=f,b=0;b<c.length;b++){var _=c[b];if(_.dataset.precedence===n)h=_;else if(h!==f)break}h?h.parentNode.insertBefore(t,h.nextSibling):(n=a.nodeType===9?a.head:a,n.insertBefore(t,n.firstChild))}function $g(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.title==null&&(t.title=n.title)}function Hg(t,n){t.crossOrigin==null&&(t.crossOrigin=n.crossOrigin),t.referrerPolicy==null&&(t.referrerPolicy=n.referrerPolicy),t.integrity==null&&(t.integrity=n.integrity)}function ZS(t,n,a){if(Sh===null){var c=new Map,f=Sh=new Map;f.set(a,c)}else f=Sh,c=f.get(a),c||(c=new Map,f.set(a,c));if(c.has(t))return c;for(c.set(t,null),a=a.getElementsByTagName(t),f=0;f<a.length;f++){var h=a[f];if(!(h[Lc]||h[tn]||t==="link"&&h.getAttribute("rel")==="stylesheet")&&h.namespaceURI!==Bo){var b=h.getAttribute(n)||"";b=t+b;var _=c.get(b);_?_.push(h):c.set(b,[h])}}return c}function e1(t,n,a){t=t.ownerDocument||t,t.head.insertBefore(a,n==="title"?t.querySelector("head > title"):null)}function oR(t,n,a){var c=!a.ancestorInfo.containerTagInScope;if(a.context===vl||n.itemProp!=null)return!c||n.itemProp==null||t!=="meta"&&t!=="title"&&t!=="style"&&t!=="link"&&t!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",t,t),!1;switch(t){case"meta":case"title":return!0;case"style":if(typeof n.precedence!="string"||typeof n.href!="string"||n.href===""){c&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof n.rel!="string"||typeof n.href!="string"||n.href===""||n.onLoad||n.onError){if(n.rel==="stylesheet"&&typeof n.precedence=="string"){t=n.href;var f=n.onError,h=n.disabled;a=[],n.onLoad&&a.push("`onLoad`"),f&&a.push("`onError`"),h!=null&&a.push("`disabled`"),f=VD(a,"and"),f+=a.length===1?" prop":" props",h=a.length===1?"an "+f:"the "+f,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',t,h,f)}c&&(typeof n.rel!="string"||typeof n.href!="string"||n.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(n.onError||n.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(n.rel){case"stylesheet":return t=n.precedence,n=n.disabled,typeof t!="string"&&c&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof t=="string"&&n==null;default:return!0}case"script":if(t=n.async&&typeof n.async!="function"&&typeof n.async!="symbol",!t||n.onLoad||n.onError||!n.src||typeof n.src!="string"){c&&(t?n.onLoad||n.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":c&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",t)}return!1}function t1(t){return!(t.type==="stylesheet"&&(t.state.loading&$x)===eo)}function lR(t,n,a,c){if(a.type==="stylesheet"&&(typeof c.media!="string"||matchMedia(c.media).matches!==!1)&&(a.state.loading&Sr)===eo){if(a.instance===null){var f=Uo(c.href),h=n.querySelector(Cc(f));if(h){n=h._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(t.count++,t=yf.bind(t),n.then(t,t)),a.state.loading|=Sr,a.instance=h,pe(h);return}h=n.ownerDocument||n,c=WS(c),(f=Er.get(f))&&$g(c,f),h=h.createElement("link"),pe(h);var b=h;b._p=new Promise(function(_,N){b.onload=_,b.onerror=N}),en(h,"link",c),a.instance=h}t.stylesheets===null&&(t.stylesheets=new Map),t.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&$x)===eo&&(t.count++,a=yf.bind(t),n.addEventListener("load",a),n.addEventListener("error",a))}}function cR(t,n){return t.stylesheets&&t.count===0&&bf(t,t.stylesheets),0<t.count||0<t.imgCount?function(a){var c=setTimeout(function(){if(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend){var h=t.unsuspend;t.unsuspend=null,h()}},s3+n);0<t.imgBytes&&bb===0&&(bb=125*$D()*o3);var f=setTimeout(function(){if(t.waitingForImages=!1,t.count===0&&(t.stylesheets&&bf(t,t.stylesheets),t.unsuspend)){var h=t.unsuspend;t.unsuspend=null,h()}},(t.imgBytes>bb?50:a3)+n);return t.unsuspend=a,function(){t.unsuspend=null,clearTimeout(c),clearTimeout(f)}}:null}function yf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)bf(this,this.stylesheets);else if(this.unsuspend){var t=this.unsuspend;this.unsuspend=null,t()}}}function bf(t,n){t.stylesheets=null,t.unsuspend!==null&&(t.count++,Eh=new Map,n.forEach(uR,t),Eh=null,yf.call(t))}function uR(t,n){if(!(n.state.loading&Sr)){var a=Eh.get(t);if(a)var c=a.get(vb);else{a=new Map,Eh.set(t,a);for(var f=t.querySelectorAll("link[data-precedence],style[data-precedence]"),h=0;h<f.length;h++){var b=f[h];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(a.set(b.dataset.precedence,b),c=b)}c&&a.set(vb,c)}f=n.instance,b=f.getAttribute("data-precedence"),h=a.get(b)||c,h===c&&a.set(vb,f),a.set(b,f),this.count++,c=yf.bind(this),f.addEventListener("load",c),f.addEventListener("error",c),h?h.parentNode.insertBefore(f,h.nextSibling):(t=t.nodeType===9?t.head:t,t.insertBefore(f,t.firstChild)),n.state.loading|=Sr}}function dR(t,n,a,c,f,h,b,_,N){for(this.tag=1,this.containerInfo=t,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=Za,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ps(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ps(0),this.hiddenUpdates=ps(null),this.identifierPrefix=c,this.onUncaughtError=f,this.onCaughtError=h,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=N,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,t=this.pendingUpdatersLaneMap=[],n=0;31>n;n++)t.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function n1(t,n,a,c,f,h,b,_,N,A,j,V){return t=new dR(t,n,a,b,N,A,j,V,_),n=RM,h===!0&&(n|=cn|Vr),n|=De,h=y(3,null,null,n),t.current=h,h.stateNode=t,n=hp(),Ta(n),t.pooledCache=n,Ta(n),h.memoizedState={element:c,isDehydrated:a,cache:n},bp(h),t}function r1(t){return t?(t=Vs,t):Vs}function Ig(t,n,a,c,f,h){if(ln&&typeof ln.onScheduleFiberRoot=="function")try{ln.onScheduleFiberRoot(zo,c,a)}catch(b){bi||(bi=!0,console.error("React instrumentation encountered an error: %o",b))}f=r1(f),c.context===null?c.context=f:c.pendingContext=f,yi&&Qn!==null&&!Bx&&(Bx=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
229
+
230
+ Check the render method of %s.`,J(Qn)||"Unknown")),c=Ss(n),c.payload={element:a},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",h),c.callback=h),a=Es(t,c,n),a!==null&&(ni(n,"root.render()",null),yt(a,t,n),cc(a,t,n))}function i1(t,n){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var a=t.retryLane;t.retryLane=a!==0&&a<n?a:n}}function zg(t,n){i1(t,n),(t=t.alternate)&&i1(t,n)}function s1(t){if(t.tag===13||t.tag===31){var n=on(t,67108864);n!==null&&yt(n,t,67108864),zg(t,67108864)}}function a1(t){if(t.tag===13||t.tag===31){var n=Jn(t);n=ar(n);var a=on(t,n);a!==null&&yt(a,t,n),zg(t,n)}}function fR(){return Qn}function hR(t,n,a,c){var f=G.T;G.T=null;var h=Ke.p;try{Ke.p=dr,Pg(t,n,a,c)}finally{Ke.p=h,G.T=f}}function mR(t,n,a,c){var f=G.T;G.T=null;var h=Ke.p;try{Ke.p=wi,Pg(t,n,a,c)}finally{Ke.p=h,G.T=f}}function Pg(t,n,a,c){if(Th){var f=Bg(c);if(f===null)Ag(t,n,c,Nh,a),l1(t,c);else if(pR(f,t,n,a,c))c.stopPropagation();else if(l1(t,c),n&4&&-1<c3.indexOf(t)){for(;f!==null;){var h=ie(f);if(h!==null)switch(h.tag){case 3:if(h=h.stateNode,h.current.memoizedState.isDehydrated){var b=Wt(h.pendingLanes);if(b!==0){var _=h;for(_.pendingLanes|=2,_.entangledLanes|=2;b;){var N=1<<31-gn(b);_.entanglements[1]|=N,b&=~N}hi(h),(qe&(zt|nr))===Jt&&(lh=Gt()+yx,Ec(0))}}break;case 31:case 13:_=on(h,2),_!==null&&yt(_,h,2),Mo(),zg(h,2)}if(h=Bg(c),h===null&&Ag(t,n,c,Nh,a),h===f)break;f=h}f!==null&&c.stopPropagation()}else Ag(t,n,c,null,a)}}function Bg(t){return t=Xm(t),qg(t)}function qg(t){if(Nh=null,t=ee(t),t!==null){var n=k(t);if(n===null)t=null;else{var a=n.tag;if(a===13){if(t=D(n),t!==null)return t;t=null}else if(a===31){if(t=I(n),t!==null)return t;t=null}else if(a===3){if(n.stateNode.current.memoizedState.isDehydrated)return n.tag===3?n.stateNode.containerInfo:null;t=null}else n!==t&&(t=null)}}return Nh=t,null}function o1(t){switch(t){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 dr;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 wi;case"message":switch(TR()){case iy:return dr;case sy:return wi;case Io:case NR:return Bi;case ay:return Cf;default:return Bi}default:return Bi}}function l1(t,n){switch(t){case"focusin":case"focusout":Zs=null;break;case"dragenter":case"dragleave":ea=null;break;case"mouseover":case"mouseout":ta=null;break;case"pointerover":case"pointerout":xu.delete(n.pointerId);break;case"gotpointercapture":case"lostpointercapture":Tu.delete(n.pointerId)}}function Dc(t,n,a,c,f,h){return t===null||t.nativeEvent!==h?(t={blockedOn:n,domEventName:a,eventSystemFlags:c,nativeEvent:h,targetContainers:[f]},n!==null&&(n=ie(n),n!==null&&s1(n)),t):(t.eventSystemFlags|=c,n=t.targetContainers,f!==null&&n.indexOf(f)===-1&&n.push(f),t)}function pR(t,n,a,c,f){switch(n){case"focusin":return Zs=Dc(Zs,t,n,a,c,f),!0;case"dragenter":return ea=Dc(ea,t,n,a,c,f),!0;case"mouseover":return ta=Dc(ta,t,n,a,c,f),!0;case"pointerover":var h=f.pointerId;return xu.set(h,Dc(xu.get(h)||null,t,n,a,c,f)),!0;case"gotpointercapture":return h=f.pointerId,Tu.set(h,Dc(Tu.get(h)||null,t,n,a,c,f)),!0}return!1}function c1(t){var n=ee(t.target);if(n!==null){var a=k(n);if(a!==null){if(n=a.tag,n===13){if(n=D(a),n!==null){t.blockedOn=n,C(t.priority,function(){a1(a)});return}}else if(n===31){if(n=I(a),n!==null){t.blockedOn=n,C(t.priority,function(){a1(a)});return}}else if(n===3&&a.stateNode.current.memoizedState.isDehydrated){t.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}t.blockedOn=null}function vf(t){if(t.blockedOn!==null)return!1;for(var n=t.targetContainers;0<n.length;){var a=Bg(t.nativeEvent);if(a===null){a=t.nativeEvent;var c=new a.constructor(a.type,a),f=c;Uc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Uc=f,a.target.dispatchEvent(c),Uc===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Uc=null}else return n=ie(a),n!==null&&s1(n),t.blockedOn=a,!1;n.shift()}return!0}function u1(t,n,a){vf(t)&&a.delete(n)}function gR(){wb=!1,Zs!==null&&vf(Zs)&&(Zs=null),ea!==null&&vf(ea)&&(ea=null),ta!==null&&vf(ta)&&(ta=null),xu.forEach(u1),Tu.forEach(u1)}function wf(t,n){t.blockedOn===n&&(t.blockedOn=null,wb||(wb=!0,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,gR)))}function d1(t){Ah!==t&&(Ah=t,kt.unstable_scheduleCallback(kt.unstable_NormalPriority,function(){Ah===t&&(Ah=null);for(var n=0;n<t.length;n+=3){var a=t[n],c=t[n+1],f=t[n+2];if(typeof c!="function"){if(qg(c||a)===null)continue;break}var h=ie(a);h!==null&&(t.splice(n,3),n-=3,a={pending:!0,data:f,method:a.method,action:c},Object.freeze(a),qp(h,a,c,f))}}))}function Vo(t){function n(N){return wf(N,t)}Zs!==null&&wf(Zs,t),ea!==null&&wf(ea,t),ta!==null&&wf(ta,t),xu.forEach(n),Tu.forEach(n);for(var a=0;a<na.length;a++){var c=na[a];c.blockedOn===t&&(c.blockedOn=null)}for(;0<na.length&&(a=na[0],a.blockedOn===null);)c1(a),a.blockedOn===null&&na.shift();if(a=(t.ownerDocument||t).$$reactFormReplay,a!=null)for(c=0;c<a.length;c+=3){var f=a[c],h=a[c+1],b=f[yn]||null;if(typeof h=="function")b||d1(a);else if(b){var _=null;if(h&&h.hasAttribute("formAction")){if(f=h,b=h[yn]||null)_=b.formAction;else if(qg(f)!==null)continue}else _=b.action;typeof _=="function"?a[c+1]=_:(a.splice(c,3),c-=3),d1(a)}}}function f1(){function t(h){h.canIntercept&&h.info==="react-transition"&&h.intercept({handler:function(){return new Promise(function(b){return f=b})},focusReset:"manual",scroll:"manual"})}function n(){f!==null&&(f(),f=null),c||setTimeout(a,20)}function a(){if(!c&&!navigation.transition){var h=navigation.currentEntry;h&&h.url!=null&&navigation.navigate(h.url,{state:h.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var c=!1,f=null;return navigation.addEventListener("navigate",t),navigation.addEventListener("navigatesuccess",n),navigation.addEventListener("navigateerror",n),setTimeout(a,100),function(){c=!0,navigation.removeEventListener("navigate",t),navigation.removeEventListener("navigatesuccess",n),navigation.removeEventListener("navigateerror",n),f!==null&&(f(),f=null)}}}function Fg(t){this._internalRoot=t}function _f(t){this._internalRoot=t}function h1(t){t[Os]&&(t._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var kt=N3(),Gg=gm(),yR=C3(),Ue=Object.assign,bR=Symbol.for("react.element"),pi=Symbol.for("react.transitional.element"),$o=Symbol.for("react.portal"),Ho=Symbol.for("react.fragment"),Sf=Symbol.for("react.strict_mode"),Yg=Symbol.for("react.profiler"),Xg=Symbol.for("react.consumer"),gi=Symbol.for("react.context"),Rc=Symbol.for("react.forward_ref"),Jg=Symbol.for("react.suspense"),Kg=Symbol.for("react.suspense_list"),Ef=Symbol.for("react.memo"),Wn=Symbol.for("react.lazy"),Wg=Symbol.for("react.activity"),vR=Symbol.for("react.memo_cache_sentinel"),m1=Symbol.iterator,wR=Symbol.for("react.client.reference"),Ht=Array.isArray,G=Gg.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ke=yR.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,_R=Object.freeze({pending:!1,data:null,method:null,action:null}),Qg=[],Zg=[],Pi=-1,Ds=ue(null),Mc=ue(null),Rs=ue(null),xf=ue(null),Oc=0,p1,g1,y1,b1,v1,w1,_1;Ge.__reactDisabledLog=!0;var ey,S1,ty=!1,ny=new(typeof WeakMap=="function"?WeakMap:Map),Qn=null,yi=!1,jr=Object.prototype.hasOwnProperty,ry=kt.unstable_scheduleCallback,SR=kt.unstable_cancelCallback,ER=kt.unstable_shouldYield,xR=kt.unstable_requestPaint,Gt=kt.unstable_now,TR=kt.unstable_getCurrentPriorityLevel,iy=kt.unstable_ImmediatePriority,sy=kt.unstable_UserBlockingPriority,Io=kt.unstable_NormalPriority,NR=kt.unstable_LowPriority,ay=kt.unstable_IdlePriority,AR=kt.log,CR=kt.unstable_setDisableYieldValue,zo=null,ln=null,bi=!1,vi=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",gn=Math.clz32?Math.clz32:ms,kR=Math.log,DR=Math.LN2,Tf=256,Nf=262144,Af=4194304,dr=2,wi=8,Bi=32,Cf=268435456,Ms=Math.random().toString(36).slice(2),tn="__reactFiber$"+Ms,yn="__reactProps$"+Ms,Os="__reactContainer$"+Ms,oy="__reactEvents$"+Ms,RR="__reactListeners$"+Ms,MR="__reactHandles$"+Ms,E1="__reactResources$"+Ms,Lc="__reactMarker$"+Ms,x1=new Set,Ma={},ly={},OR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},LR=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]*$"),T1={},N1={},UR=/[\n"\\]/g,A1=!1,C1=!1,k1=!1,D1=!1,R1=!1,M1=!1,O1=["value","defaultValue"],L1=!1,U1=/["'&<>\n\t]|^\s|\s$/,jR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),j1="applet caption html table td th marquee object template foreignObject desc title".split(" "),VR=j1.concat(["button"]),$R="dd dt li option optgroup p rp rt".split(" "),V1={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},kf={},cy={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},$1=/([A-Z])/g,H1=/^ms-/,HR=/^(?:webkit|moz|o)[A-Z]/,IR=/^-ms-/,zR=/-(.)/g,I1=/;\s*$/,Po={},uy={},z1=!1,P1=!1,B1=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(" ")),Df="http://www.w3.org/1998/Math/MathML",Bo="http://www.w3.org/2000/svg",PR=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"]]),Rf={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},q1={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},qo={},BR=RegExp("^(aria)-[: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]*$"),qR=RegExp("^(aria)[A-Z][: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]*$"),F1=!1,bn={},G1=/^on./,FR=/^on[^A-Z]/,GR=RegExp("^(aria)-[: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]*$"),YR=RegExp("^(aria)[A-Z][: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]*$"),XR=/^[\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,Uc=null,Fo=null,Go=null,dy=!1,_i=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),fy=!1;if(_i)try{var jc={};Object.defineProperty(jc,"passive",{get:function(){fy=!0}}),window.addEventListener("test",jc,jc),window.removeEventListener("test",jc,jc)}catch{fy=!1}var Ls=null,hy=null,Mf=null,Oa={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Of=kn(Oa),Vc=Ue({},Oa,{view:0,detail:0}),JR=kn(Vc),my,py,$c,Lf=Ue({},Vc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Jm,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==$c&&($c&&t.type==="mousemove"?(my=t.screenX-$c.screenX,py=t.screenY-$c.screenY):py=my=0,$c=t),my)},movementY:function(t){return"movementY"in t?t.movementY:py}}),Y1=kn(Lf),KR=Ue({},Lf,{dataTransfer:0}),WR=kn(KR),QR=Ue({},Vc,{relatedTarget:0}),gy=kn(QR),ZR=Ue({},Oa,{animationName:0,elapsedTime:0,pseudoElement:0}),eM=kn(ZR),tM=Ue({},Oa,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),nM=kn(tM),rM=Ue({},Oa,{data:0}),X1=kn(rM),iM=X1,sM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},aM={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"},oM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},lM=Ue({},Vc,{key:function(t){if(t.key){var n=sM[t.key]||t.key;if(n!=="Unidentified")return n}return t.type==="keypress"?(t=bd(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?aM[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Jm,charCode:function(t){return t.type==="keypress"?bd(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?bd(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),cM=kn(lM),uM=Ue({},Lf,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),J1=kn(uM),dM=Ue({},Vc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Jm}),fM=kn(dM),hM=Ue({},Oa,{propertyName:0,elapsedTime:0,pseudoElement:0}),mM=kn(hM),pM=Ue({},Lf,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),gM=kn(pM),yM=Ue({},Oa,{newState:0,oldState:0}),bM=kn(yM),vM=[9,13,27,32],K1=229,yy=_i&&"CompositionEvent"in window,Hc=null;_i&&"documentMode"in document&&(Hc=document.documentMode);var wM=_i&&"TextEvent"in window&&!Hc,W1=_i&&(!yy||Hc&&8<Hc&&11>=Hc),Q1=32,Z1=String.fromCharCode(Q1),eE=!1,Yo=!1,_M={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},Ic=null,zc=null,tE=!1;_i&&(tE=zk("input")&&(!document.documentMode||9<document.documentMode));var vn=typeof Object.is=="function"?Object.is:Yk,SM=_i&&"documentMode"in document&&11>=document.documentMode,Xo=null,by=null,Pc=null,vy=!1,Jo={animationend:ba("Animation","AnimationEnd"),animationiteration:ba("Animation","AnimationIteration"),animationstart:ba("Animation","AnimationStart"),transitionrun:ba("Transition","TransitionRun"),transitionstart:ba("Transition","TransitionStart"),transitioncancel:ba("Transition","TransitionCancel"),transitionend:ba("Transition","TransitionEnd")},wy={},nE={};_i&&(nE=document.createElement("div").style,"AnimationEvent"in window||(delete Jo.animationend.animation,delete Jo.animationiteration.animation,delete Jo.animationstart.animation),"TransitionEvent"in window||delete Jo.transitionend.transition);var rE=va("animationend"),iE=va("animationiteration"),sE=va("animationstart"),EM=va("transitionrun"),xM=va("transitionstart"),TM=va("transitioncancel"),aE=va("transitionend"),oE=new Map,_y="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(" ");_y.push("scrollEnd");var lE=0;if(typeof performance=="object"&&typeof performance.now=="function")var NM=performance,cE=function(){return NM.now()};else{var AM=Date;cE=function(){return AM.now()}}var Sy=typeof reportError=="function"?reportError:function(t){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var n=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof t=="object"&&t!==null&&typeof t.message=="string"?String(t.message):String(t),error:t});if(!window.dispatchEvent(n))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",t);return}console.error(t)},CM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",Uf=0,Ey=1,xy=2,Ty=3,jf="– ",Vf="+ ",uE="  ",ot=typeof console<"u"&&typeof console.timeStamp=="function"&&typeof performance<"u"&&typeof performance.measure=="function",fr="Components ⚛",He="Scheduler ⚛",Pe="Blocking",Us=!1,qi={color:"primary",properties:null,tooltipText:"",track:fr},js={start:-0,end:-0,detail:{devtools:qi}},kM=["Changed Props",""],dE="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",DM=["Changed Props",dE],Bc=1,Fi=2,hr=[],Ko=0,Ny=0,Vs={};Object.freeze(Vs);var mr=null,Wo=null,_e=0,RM=1,De=2,cn=8,Vr=16,MM=32,fE=!1;try{var hE=Object.preventExtensions({})}catch{fE=!0}var Ay=new WeakMap,Qo=[],Zo=0,$f=null,qc=0,pr=[],gr=0,La=null,Gi=1,Yi="",nn=null,lt=null,Ve=!1,Si=!1,Zn=null,$s=null,yr=!1,Cy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),ky=ue(null),Dy=ue(null),mE={},Hf=null,el=null,tl=!1,OM=typeof AbortController<"u"?AbortController:function(){var t=[],n=this.signal={aborted:!1,addEventListener:function(a,c){t.push(c)}};this.abort=function(){n.aborted=!0,t.forEach(function(a){return a()})}},LM=kt.unstable_scheduleCallback,UM=kt.unstable_NormalPriority,Dt={$$typeof:gi,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Rt=kt.unstable_now,If=console.createTask?console.createTask:function(){return null},Fc=1,zf=2,Yt=-0,Hs=-0,Xi=-0,Ji=null,wn=-1.1,Ua=-0,ht=-0,be=-1.1,we=-1.1,dt=null,bt=!1,ja=-0,Ei=-1.1,Gc=null,Is=0,Ry=null,My=null,Va=-1.1,Yc=null,nl=-1.1,Pf=-1.1,Ki=-0,Wi=-1.1,br=-1.1,Oy=0,Xc=null,pE=null,gE=null,zs=-1.1,$a=null,Ps=-1.1,Bf=-1.1,yE=-0,bE=-0,qf=0,jM=null,vE=0,Jc=-1.1,Ff=!1,Gf=!1,Kc=null,Ly=0,Ha=0,rl=null,wE=G.S;G.S=function(t,n){if(px=Gt(),typeof n=="object"&&n!==null&&typeof n.then=="function"){if(0>Wi&&0>br){Wi=Rt();var a=Nc(),c=Tc();(a!==Ps||c!==$a)&&(Ps=-1.1),zs=a,$a=c}eD(t,n)}wE!==null&&wE(t,n)};var Ia=ue(null),$r={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Wc=[],Qc=[],Zc=[],eu=[],tu=[],nu=[],za=new Set;$r.recordUnsafeLifecycleWarnings=function(t,n){za.has(t.type)||(typeof n.componentWillMount=="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0&&Wc.push(t),t.mode&cn&&typeof n.UNSAFE_componentWillMount=="function"&&Qc.push(t),typeof n.componentWillReceiveProps=="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Zc.push(t),t.mode&cn&&typeof n.UNSAFE_componentWillReceiveProps=="function"&&eu.push(t),typeof n.componentWillUpdate=="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0&&tu.push(t),t.mode&cn&&typeof n.UNSAFE_componentWillUpdate=="function"&&nu.push(t))},$r.flushPendingUnsafeLifecycleWarnings=function(){var t=new Set;0<Wc.length&&(Wc.forEach(function(_){t.add(J(_)||"Component"),za.add(_.type)}),Wc=[]);var n=new Set;0<Qc.length&&(Qc.forEach(function(_){n.add(J(_)||"Component"),za.add(_.type)}),Qc=[]);var a=new Set;0<Zc.length&&(Zc.forEach(function(_){a.add(J(_)||"Component"),za.add(_.type)}),Zc=[]);var c=new Set;0<eu.length&&(eu.forEach(function(_){c.add(J(_)||"Component"),za.add(_.type)}),eu=[]);var f=new Set;0<tu.length&&(tu.forEach(function(_){f.add(J(_)||"Component"),za.add(_.type)}),tu=[]);var h=new Set;if(0<nu.length&&(nu.forEach(function(_){h.add(J(_)||"Component"),za.add(_.type)}),nu=[]),0<n.size){var b=g(n);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
231
+
232
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
233
+
234
+ Please update the following components: %s`,b)}0<c.size&&(b=g(c),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
235
+
236
+ * Move data fetching code or side effects to componentDidUpdate.
237
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
238
+
239
+ Please update the following components: %s`,b)),0<h.size&&(b=g(h),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
240
+
241
+ * Move data fetching code or side effects to componentDidUpdate.
242
+
243
+ Please update the following components: %s`,b)),0<t.size&&(b=g(t),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
244
+
245
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
246
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
247
+
248
+ Please update the following components: %s`,b)),0<a.size&&(b=g(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
249
+
250
+ * Move data fetching code or side effects to componentDidUpdate.
251
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
252
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
253
+
254
+ Please update the following components: %s`,b)),0<f.size&&(b=g(f),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
255
+
256
+ * Move data fetching code or side effects to componentDidUpdate.
257
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
258
+
259
+ Please update the following components: %s`,b))};var Yf=new Map,_E=new Set;$r.recordLegacyContextWarning=function(t,n){for(var a=null,c=t;c!==null;)c.mode&cn&&(a=c),c=c.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!_E.has(t.type)&&(c=Yf.get(a),t.type.contextTypes!=null||t.type.childContextTypes!=null||n!==null&&typeof n.getChildContext=="function")&&(c===void 0&&(c=[],Yf.set(a,c)),c.push(t))},$r.flushLegacyContextWarning=function(){Yf.forEach(function(t){if(t.length!==0){var n=t[0],a=new Set;t.forEach(function(f){a.add(J(f)||"Component"),_E.add(f.type)});var c=g(a);le(n,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
260
+
261
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
262
+
263
+ Please update the following components: %s
264
+
265
+ Learn more about this warning here: https://react.dev/link/legacy-context`,c)})}})},$r.discardPendingWarnings=function(){Wc=[],Qc=[],Zc=[],eu=[],tu=[],nu=[],Yf=new Map};var SE={react_stack_bottom_frame:function(t,n,a){var c=yi;yi=!0;try{return t(n,a)}finally{yi=c}}},Uy=SE.react_stack_bottom_frame.bind(SE),EE={react_stack_bottom_frame:function(t){var n=yi;yi=!0;try{return t.render()}finally{yi=n}}},xE=EE.react_stack_bottom_frame.bind(EE),TE={react_stack_bottom_frame:function(t,n){try{n.componentDidMount()}catch(a){Je(t,t.return,a)}}},jy=TE.react_stack_bottom_frame.bind(TE),NE={react_stack_bottom_frame:function(t,n,a,c,f){try{n.componentDidUpdate(a,c,f)}catch(h){Je(t,t.return,h)}}},AE=NE.react_stack_bottom_frame.bind(NE),CE={react_stack_bottom_frame:function(t,n){var a=n.stack;t.componentDidCatch(n.value,{componentStack:a!==null?a:""})}},VM=CE.react_stack_bottom_frame.bind(CE),kE={react_stack_bottom_frame:function(t,n,a){try{a.componentWillUnmount()}catch(c){Je(t,n,c)}}},DE=kE.react_stack_bottom_frame.bind(kE),RE={react_stack_bottom_frame:function(t){var n=t.create;return t=t.inst,n=n(),t.destroy=n}},$M=RE.react_stack_bottom_frame.bind(RE),ME={react_stack_bottom_frame:function(t,n,a){try{a()}catch(c){Je(t,n,c)}}},HM=ME.react_stack_bottom_frame.bind(ME),OE={react_stack_bottom_frame:function(t){var n=t._init;return n(t._payload)}},IM=OE.react_stack_bottom_frame.bind(OE),il=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Vy=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Xf=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Jf={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Pa=null,ru=!1,sl=null,iu=0,Re=null,$y,LE=$y=!1,UE={},jE={},VE={};v=function(t,n,a){if(a!==null&&typeof a=="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var c=J(t),f=c||"null";if(!UE[f]){UE[f]=!0,a=a._owner,t=t._debugOwner;var h="";t&&typeof t.tag=="number"&&(f=J(t))&&(h=`
266
+
267
+ Check the render method of \``+f+"`."),h||c&&(h=`
268
+
269
+ Check the top-level render call using <`+c+">.");var b="";a!=null&&t!==a&&(c=null,typeof a.tag=="number"?c=J(a):typeof a.name=="string"&&(c=a.name),c&&(b=" It was passed a child from "+c+".")),le(n,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',h,b)})}}};var Ba=kw(!0),$E=kw(!1),HE=0,IE=1,zE=2,Hy=3,Bs=!1,PE=!1,Iy=null,zy=!1,al=ue(null),Kf=ue(0),er=ue(null),vr=null,ol=1,su=2,Et=ue(0),Wf=0,wr=1,_n=2,tr=4,Sn=8,ll,BE=new Set,qE=new Set,Py=new Set,FE=new Set,Qi=0,Se=null,tt=null,Mt=null,Qf=!1,cl=!1,qa=!1,Zf=0,au=0,Zi=null,zM=0,PM=25,F=null,_r=null,es=-1,ou=!1,lu={readContext:ut,use:Ns,useCallback:_t,useContext:_t,useEffect:_t,useImperativeHandle:_t,useLayoutEffect:_t,useInsertionEffect:_t,useMemo:_t,useReducer:_t,useRef:_t,useState:_t,useDebugValue:_t,useDeferredValue:_t,useTransition:_t,useSyncExternalStore:_t,useId:_t,useHostTransitionStatus:_t,useFormState:_t,useActionState:_t,useOptimistic:_t,useMemoCache:_t,useCacheRefresh:_t};lu.useEffectEvent=_t;var By=null,GE=null,qy=null,YE=null,xi=null,Hr=null,eh=null;By={readContext:function(t){return ut(t)},use:Ns,useCallback:function(t,n){return F="useCallback",Le(),To(n),Ip(t,n)},useContext:function(t){return F="useContext",Le(),ut(t)},useEffect:function(t,n){return F="useEffect",Le(),To(n),Gd(t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",Le(),To(a),Hp(t,n,a)},useInsertionEffect:function(t,n){F="useInsertionEffect",Le(),To(n),Aa(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",Le(),To(n),$p(t,n)},useMemo:function(t,n){F="useMemo",Le(),To(n);var a=G.H;G.H=xi;try{return zp(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",Le();var c=G.H;G.H=xi;try{return kp(t,n,a)}finally{G.H=c}},useRef:function(t){return F="useRef",Le(),jp(t)},useState:function(t){F="useState",Le();var n=G.H;G.H=xi;try{return Op(t)}finally{G.H=n}},useDebugValue:function(){F="useDebugValue",Le()},useDeferredValue:function(t,n){return F="useDeferredValue",Le(),Pp(t,n)},useTransition:function(){return F="useTransition",Le(),Fp()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",Le(),Rp(t,n,a)},useId:function(){return F="useId",Le(),Gp()},useFormState:function(t,n){return F="useFormState",Le(),zd(),Ao(t,n)},useActionState:function(t,n){return F="useActionState",Le(),Ao(t,n)},useOptimistic:function(t){return F="useOptimistic",Le(),Lp(t)},useHostTransitionStatus:Ca,useMemoCache:Na,useCacheRefresh:function(){return F="useCacheRefresh",Le(),Yp()},useEffectEvent:function(t){return F="useEffectEvent",Le(),Vp(t)}},GE={readContext:function(t){return ut(t)},use:Ns,useCallback:function(t,n){return F="useCallback",re(),Ip(t,n)},useContext:function(t){return F="useContext",re(),ut(t)},useEffect:function(t,n){return F="useEffect",re(),Gd(t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",re(),Hp(t,n,a)},useInsertionEffect:function(t,n){F="useInsertionEffect",re(),Aa(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",re(),$p(t,n)},useMemo:function(t,n){F="useMemo",re();var a=G.H;G.H=xi;try{return zp(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",re();var c=G.H;G.H=xi;try{return kp(t,n,a)}finally{G.H=c}},useRef:function(t){return F="useRef",re(),jp(t)},useState:function(t){F="useState",re();var n=G.H;G.H=xi;try{return Op(t)}finally{G.H=n}},useDebugValue:function(){F="useDebugValue",re()},useDeferredValue:function(t,n){return F="useDeferredValue",re(),Pp(t,n)},useTransition:function(){return F="useTransition",re(),Fp()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",re(),Rp(t,n,a)},useId:function(){return F="useId",re(),Gp()},useActionState:function(t,n){return F="useActionState",re(),Ao(t,n)},useFormState:function(t,n){return F="useFormState",re(),zd(),Ao(t,n)},useOptimistic:function(t){return F="useOptimistic",re(),Lp(t)},useHostTransitionStatus:Ca,useMemoCache:Na,useCacheRefresh:function(){return F="useCacheRefresh",re(),Yp()},useEffectEvent:function(t){return F="useEffectEvent",re(),Vp(t)}},qy={readContext:function(t){return ut(t)},use:Ns,useCallback:function(t,n){return F="useCallback",re(),Jd(t,n)},useContext:function(t){return F="useContext",re(),ut(t)},useEffect:function(t,n){F="useEffect",re(),Dn(2048,Sn,t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",re(),Xd(t,n,a)},useInsertionEffect:function(t,n){return F="useInsertionEffect",re(),Dn(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",re(),Dn(4,tr,t,n)},useMemo:function(t,n){F="useMemo",re();var a=G.H;G.H=Hr;try{return Kd(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",re();var c=G.H;G.H=Hr;try{return No(t,n,a)}finally{G.H=c}},useRef:function(){return F="useRef",re(),We().memoizedState},useState:function(){F="useState",re();var t=G.H;G.H=Hr;try{return No(Lr)}finally{G.H=t}},useDebugValue:function(){F="useDebugValue",re()},useDeferredValue:function(t,n){return F="useDeferredValue",re(),Ww(t,n)},useTransition:function(){return F="useTransition",re(),r_()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",re(),Bd(t,n,a)},useId:function(){return F="useId",re(),We().memoizedState},useFormState:function(t){return F="useFormState",re(),zd(),qd(t)},useActionState:function(t){return F="useActionState",re(),qd(t)},useOptimistic:function(t,n){return F="useOptimistic",re(),zw(t,n)},useHostTransitionStatus:Ca,useMemoCache:Na,useCacheRefresh:function(){return F="useCacheRefresh",re(),We().memoizedState},useEffectEvent:function(t){return F="useEffectEvent",re(),Yd(t)}},YE={readContext:function(t){return ut(t)},use:Ns,useCallback:function(t,n){return F="useCallback",re(),Jd(t,n)},useContext:function(t){return F="useContext",re(),ut(t)},useEffect:function(t,n){F="useEffect",re(),Dn(2048,Sn,t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",re(),Xd(t,n,a)},useInsertionEffect:function(t,n){return F="useInsertionEffect",re(),Dn(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",re(),Dn(4,tr,t,n)},useMemo:function(t,n){F="useMemo",re();var a=G.H;G.H=eh;try{return Kd(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",re();var c=G.H;G.H=eh;try{return hc(t,n,a)}finally{G.H=c}},useRef:function(){return F="useRef",re(),We().memoizedState},useState:function(){F="useState",re();var t=G.H;G.H=eh;try{return hc(Lr)}finally{G.H=t}},useDebugValue:function(){F="useDebugValue",re()},useDeferredValue:function(t,n){return F="useDeferredValue",re(),Qw(t,n)},useTransition:function(){return F="useTransition",re(),i_()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",re(),Bd(t,n,a)},useId:function(){return F="useId",re(),We().memoizedState},useFormState:function(t){return F="useFormState",re(),zd(),Fd(t)},useActionState:function(t){return F="useActionState",re(),Fd(t)},useOptimistic:function(t,n){return F="useOptimistic",re(),Bw(t,n)},useHostTransitionStatus:Ca,useMemoCache:Na,useCacheRefresh:function(){return F="useCacheRefresh",re(),We().memoizedState},useEffectEvent:function(t){return F="useEffectEvent",re(),Yd(t)}},xi={readContext:function(t){return m(),ut(t)},use:function(t){return d(),Ns(t)},useCallback:function(t,n){return F="useCallback",d(),Le(),Ip(t,n)},useContext:function(t){return F="useContext",d(),Le(),ut(t)},useEffect:function(t,n){return F="useEffect",d(),Le(),Gd(t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",d(),Le(),Hp(t,n,a)},useInsertionEffect:function(t,n){F="useInsertionEffect",d(),Le(),Aa(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",d(),Le(),$p(t,n)},useMemo:function(t,n){F="useMemo",d(),Le();var a=G.H;G.H=xi;try{return zp(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",d(),Le();var c=G.H;G.H=xi;try{return kp(t,n,a)}finally{G.H=c}},useRef:function(t){return F="useRef",d(),Le(),jp(t)},useState:function(t){F="useState",d(),Le();var n=G.H;G.H=xi;try{return Op(t)}finally{G.H=n}},useDebugValue:function(){F="useDebugValue",d(),Le()},useDeferredValue:function(t,n){return F="useDeferredValue",d(),Le(),Pp(t,n)},useTransition:function(){return F="useTransition",d(),Le(),Fp()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",d(),Le(),Rp(t,n,a)},useId:function(){return F="useId",d(),Le(),Gp()},useFormState:function(t,n){return F="useFormState",d(),Le(),Ao(t,n)},useActionState:function(t,n){return F="useActionState",d(),Le(),Ao(t,n)},useOptimistic:function(t){return F="useOptimistic",d(),Le(),Lp(t)},useMemoCache:function(t){return d(),Na(t)},useHostTransitionStatus:Ca,useCacheRefresh:function(){return F="useCacheRefresh",Le(),Yp()},useEffectEvent:function(t){return F="useEffectEvent",d(),Le(),Vp(t)}},Hr={readContext:function(t){return m(),ut(t)},use:function(t){return d(),Ns(t)},useCallback:function(t,n){return F="useCallback",d(),re(),Jd(t,n)},useContext:function(t){return F="useContext",d(),re(),ut(t)},useEffect:function(t,n){F="useEffect",d(),re(),Dn(2048,Sn,t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",d(),re(),Xd(t,n,a)},useInsertionEffect:function(t,n){return F="useInsertionEffect",d(),re(),Dn(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",d(),re(),Dn(4,tr,t,n)},useMemo:function(t,n){F="useMemo",d(),re();var a=G.H;G.H=Hr;try{return Kd(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",d(),re();var c=G.H;G.H=Hr;try{return No(t,n,a)}finally{G.H=c}},useRef:function(){return F="useRef",d(),re(),We().memoizedState},useState:function(){F="useState",d(),re();var t=G.H;G.H=Hr;try{return No(Lr)}finally{G.H=t}},useDebugValue:function(){F="useDebugValue",d(),re()},useDeferredValue:function(t,n){return F="useDeferredValue",d(),re(),Ww(t,n)},useTransition:function(){return F="useTransition",d(),re(),r_()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",d(),re(),Bd(t,n,a)},useId:function(){return F="useId",d(),re(),We().memoizedState},useFormState:function(t){return F="useFormState",d(),re(),qd(t)},useActionState:function(t){return F="useActionState",d(),re(),qd(t)},useOptimistic:function(t,n){return F="useOptimistic",d(),re(),zw(t,n)},useMemoCache:function(t){return d(),Na(t)},useHostTransitionStatus:Ca,useCacheRefresh:function(){return F="useCacheRefresh",re(),We().memoizedState},useEffectEvent:function(t){return F="useEffectEvent",d(),re(),Yd(t)}},eh={readContext:function(t){return m(),ut(t)},use:function(t){return d(),Ns(t)},useCallback:function(t,n){return F="useCallback",d(),re(),Jd(t,n)},useContext:function(t){return F="useContext",d(),re(),ut(t)},useEffect:function(t,n){F="useEffect",d(),re(),Dn(2048,Sn,t,n)},useImperativeHandle:function(t,n,a){return F="useImperativeHandle",d(),re(),Xd(t,n,a)},useInsertionEffect:function(t,n){return F="useInsertionEffect",d(),re(),Dn(4,_n,t,n)},useLayoutEffect:function(t,n){return F="useLayoutEffect",d(),re(),Dn(4,tr,t,n)},useMemo:function(t,n){F="useMemo",d(),re();var a=G.H;G.H=Hr;try{return Kd(t,n)}finally{G.H=a}},useReducer:function(t,n,a){F="useReducer",d(),re();var c=G.H;G.H=Hr;try{return hc(t,n,a)}finally{G.H=c}},useRef:function(){return F="useRef",d(),re(),We().memoizedState},useState:function(){F="useState",d(),re();var t=G.H;G.H=Hr;try{return hc(Lr)}finally{G.H=t}},useDebugValue:function(){F="useDebugValue",d(),re()},useDeferredValue:function(t,n){return F="useDeferredValue",d(),re(),Qw(t,n)},useTransition:function(){return F="useTransition",d(),re(),i_()},useSyncExternalStore:function(t,n,a){return F="useSyncExternalStore",d(),re(),Bd(t,n,a)},useId:function(){return F="useId",d(),re(),We().memoizedState},useFormState:function(t){return F="useFormState",d(),re(),Fd(t)},useActionState:function(t){return F="useActionState",d(),re(),Fd(t)},useOptimistic:function(t,n){return F="useOptimistic",d(),re(),Bw(t,n)},useMemoCache:function(t){return d(),Na(t)},useHostTransitionStatus:Ca,useCacheRefresh:function(){return F="useCacheRefresh",re(),We().memoizedState},useEffectEvent:function(t){return F="useEffectEvent",d(),re(),Yd(t)}};var XE={},JE=new Set,KE=new Set,WE=new Set,QE=new Set,ZE=new Set,ex=new Set,tx=new Set,nx=new Set,rx=new Set,ix=new Set;Object.freeze(XE);var Fy={enqueueSetState:function(t,n,a){t=t._reactInternals;var c=Jn(t),f=Ss(c);f.payload=n,a!=null&&(Jp(a),f.callback=a),n=Es(t,f,c),n!==null&&(ni(c,"this.setState()",t),yt(n,t,c),cc(n,t,c))},enqueueReplaceState:function(t,n,a){t=t._reactInternals;var c=Jn(t),f=Ss(c);f.tag=IE,f.payload=n,a!=null&&(Jp(a),f.callback=a),n=Es(t,f,c),n!==null&&(ni(c,"this.replaceState()",t),yt(n,t,c),cc(n,t,c))},enqueueForceUpdate:function(t,n){t=t._reactInternals;var a=Jn(t),c=Ss(a);c.tag=zE,n!=null&&(Jp(n),c.callback=n),n=Es(t,c,a),n!==null&&(ni(a,"this.forceUpdate()",t),yt(n,t,a),cc(n,t,a))}},ul=null,Gy=null,Yy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),Ot=!1,sx={},ax={},ox={},lx={},dl=!1,cx={},th={},Xy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},ux=!1,dx=null;dx=new Set;var ts=!1,Lt=!1,Jy=!1,fx=typeof WeakSet=="function"?WeakSet:Set,Xt=null,fl=null,hl=null,Ut=null,On=!1,Ir=null,It=!1,cu=8192,BM={getCacheForType:function(t){var n=ut(Dt),a=n.data.get(t);return a===void 0&&(a=t(),n.data.set(t,a)),a},cacheSignal:function(){return ut(Dt).controller.signal},getOwner:function(){return Qn}};if(typeof Symbol=="function"&&Symbol.for){var uu=Symbol.for;uu("selector.component"),uu("selector.has_pseudo_class"),uu("selector.role"),uu("selector.test_id"),uu("selector.text")}var qM=[],FM=typeof WeakMap=="function"?WeakMap:Map,Jt=0,zt=2,nr=4,ns=0,du=1,Fa=2,nh=3,qs=4,rh=6,hx=5,qe=Jt,nt=null,Oe=null,Me=0,Ln=0,ih=1,Ga=2,fu=3,mx=4,Ky=5,hu=6,sh=7,Wy=8,Ya=9,Qe=Ln,rr=null,Fs=!1,ml=!1,Qy=!1,Ti=0,mt=ns,Gs=0,Ys=0,Zy=0,Un=0,Xa=0,mu=null,En=null,ah=!1,oh=0,px=0,gx=300,lh=1/0,yx=500,pu=null,St=null,Xs=null,ch=0,eb=1,tb=2,bx=3,Js=0,vx=1,wx=2,_x=3,Sx=4,uh=5,jt=0,Ks=null,pl=null,zr=0,nb=0,rb=-0,ib=null,Ex=null,xx=null,Pr=ch,Tx=null,GM=50,gu=0,sb=null,ab=!1,dh=!1,YM=50,Ja=0,yu=null,gl=!1,fh=null,Nx=!1,Ax=new Set,XM={},hh=null,yl=null,ob=!1,lb=!1,mh=!1,cb=!1,Ws=0,ub={};(function(){for(var t=0;t<_y.length;t++){var n=_y[t],a=n.toLowerCase();n=n[0].toUpperCase()+n.slice(1),Mr(a,"on"+n)}Mr(rE,"onAnimationEnd"),Mr(iE,"onAnimationIteration"),Mr(sE,"onAnimationStart"),Mr("dblclick","onDoubleClick"),Mr("focusin","onFocus"),Mr("focusout","onBlur"),Mr(EM,"onTransitionRun"),Mr(xM,"onTransitionStart"),Mr(TM,"onTransitionCancel"),Mr(aE,"onTransitionEnd")})(),Ae("onMouseEnter",["mouseout","mouseover"]),Ae("onMouseLeave",["mouseout","mouseover"]),Ae("onPointerEnter",["pointerout","pointerover"]),Ae("onPointerLeave",["pointerout","pointerover"]),Be("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Be("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Be("onBeforeInput",["compositionend","keypress","textInput","paste"]),Be("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Be("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Be("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var bu="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(" "),db=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(bu)),ph="_reactListening"+Math.random().toString(36).slice(2),Cx=!1,kx=!1,gh=!1,Dx=!1,yh=!1,bh=!1,Rx=!1,vh={},JM=/\r\n?/g,KM=/\u0000|\uFFFD/g,Ka="http://www.w3.org/1999/xlink",fb="http://www.w3.org/XML/1998/namespace",WM="javascript:throw new Error('React form unexpectedly submitted.')",QM="suppressHydrationWarning",Wa="&",wh="/&",vu="$",wu="/$",Qs="$?",Qa="$~",bl="$!",ZM="html",e3="body",t3="head",hb="F!",Mx="F",Ox="loading",n3="style",rs=0,vl=1,_h=2,mb=null,pb=null,Lx={dialog:!0,webview:!0},gb=null,_u=void 0,Ux=typeof setTimeout=="function"?setTimeout:void 0,r3=typeof clearTimeout=="function"?clearTimeout:void 0,Za=-1,jx=typeof Promise=="function"?Promise:void 0,i3=typeof queueMicrotask=="function"?queueMicrotask:typeof jx<"u"?function(t){return jx.resolve(null).then(t).catch(ID)}:Ux,yb=null,eo=0,Su=1,Vx=2,$x=3,Sr=4,Er=new Map,Hx=new Set,is=Ke.d;Ke.d={f:function(){var t=is.f(),n=Mo();return t||n},r:function(t){var n=ie(t);n!==null&&n.tag===5&&n.type==="form"?n_(n):is.r(t)},D:function(t){is.D(t),JS("dns-prefetch",t,null)},C:function(t,n){is.C(t,n),JS("preconnect",t,n)},L:function(t,n,a){is.L(t,n,a);var c=wl;if(c&&t&&n){var f='link[rel="preload"][as="'+cr(n)+'"]';n==="image"&&a&&a.imageSrcSet?(f+='[imagesrcset="'+cr(a.imageSrcSet)+'"]',typeof a.imageSizes=="string"&&(f+='[imagesizes="'+cr(a.imageSizes)+'"]')):f+='[href="'+cr(t)+'"]';var h=f;switch(n){case"style":h=Uo(t);break;case"script":h=jo(t)}Er.has(h)||(t=Ue({rel:"preload",href:n==="image"&&a&&a.imageSrcSet?void 0:t,as:n},a),Er.set(h,t),c.querySelector(f)!==null||n==="style"&&c.querySelector(Cc(h))||n==="script"&&c.querySelector(kc(h))||(n=c.createElement("link"),en(n,"link",t),pe(n),c.head.appendChild(n)))}},m:function(t,n){is.m(t,n);var a=wl;if(a&&t){var c=n&&typeof n.as=="string"?n.as:"script",f='link[rel="modulepreload"][as="'+cr(c)+'"][href="'+cr(t)+'"]',h=f;switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":h=jo(t)}if(!Er.has(h)&&(t=Ue({rel:"modulepreload",href:t},n),Er.set(h,t),a.querySelector(f)===null)){switch(c){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(kc(h)))return}c=a.createElement("link"),en(c,"link",t),pe(c),a.head.appendChild(c)}}},X:function(t,n){is.X(t,n);var a=wl;if(a&&t){var c=Ne(a).hoistableScripts,f=jo(t),h=c.get(f);h||(h=a.querySelector(kc(f)),h||(t=Ue({src:t,async:!0},n),(n=Er.get(f))&&Hg(t,n),h=a.createElement("script"),pe(h),en(h,"link",t),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}},S:function(t,n,a){is.S(t,n,a);var c=wl;if(c&&t){var f=Ne(c).hoistableStyles,h=Uo(t);n=n||"default";var b=f.get(h);if(!b){var _={loading:eo,preload:null};if(b=c.querySelector(Cc(h)))_.loading=Su|Sr;else{t=Ue({rel:"stylesheet",href:t,"data-precedence":n},a),(a=Er.get(h))&&$g(t,a);var N=b=c.createElement("link");pe(N),en(N,"link",t),N._p=new Promise(function(A,j){N.onload=A,N.onerror=j}),N.addEventListener("load",function(){_.loading|=Su}),N.addEventListener("error",function(){_.loading|=Vx}),_.loading|=Sr,gf(b,n,c)}b={type:"stylesheet",instance:b,count:1,state:_},f.set(h,b)}}},M:function(t,n){is.M(t,n);var a=wl;if(a&&t){var c=Ne(a).hoistableScripts,f=jo(t),h=c.get(f);h||(h=a.querySelector(kc(f)),h||(t=Ue({src:t,async:!0,type:"module"},n),(n=Er.get(f))&&Hg(t,n),h=a.createElement("script"),pe(h),en(h,"link",t),a.head.appendChild(h)),h={type:"script",instance:h,count:1,state:null},c.set(f,h))}}};var wl=typeof document>"u"?null:document,Sh=null,s3=6e4,a3=800,o3=500,bb=0,vb=null,Eh=null,to=_R,Eu={$$typeof:gi,Provider:null,Consumer:null,_currentValue:to,_currentValue2:to,_threadCount:0},Ix="%c%s%c",zx="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",Px="",xh=" ",l3=Function.prototype.bind,Bx=!1,qx=null,Fx=null,Gx=null,Yx=null,Xx=null,Jx=null,Kx=null,Wx=null,Qx=null,Zx=null;qx=function(t,n,a,c){n=i(t,n),n!==null&&(a=e(n.memoizedState,a,0,c),n.memoizedState=a,n.baseState=a,t.memoizedProps=Ue({},t.memoizedProps),a=on(t,2),a!==null&&yt(a,t,2))},Fx=function(t,n,a){n=i(t,n),n!==null&&(a=o(n.memoizedState,a,0),n.memoizedState=a,n.baseState=a,t.memoizedProps=Ue({},t.memoizedProps),a=on(t,2),a!==null&&yt(a,t,2))},Gx=function(t,n,a,c){n=i(t,n),n!==null&&(a=r(n.memoizedState,a,c),n.memoizedState=a,n.baseState=a,t.memoizedProps=Ue({},t.memoizedProps),a=on(t,2),a!==null&&yt(a,t,2))},Yx=function(t,n,a){t.pendingProps=e(t.memoizedProps,n,0,a),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=on(t,2),n!==null&&yt(n,t,2)},Xx=function(t,n){t.pendingProps=o(t.memoizedProps,n,0),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=on(t,2),n!==null&&yt(n,t,2)},Jx=function(t,n,a){t.pendingProps=r(t.memoizedProps,n,a),t.alternate&&(t.alternate.pendingProps=t.pendingProps),n=on(t,2),n!==null&&yt(n,t,2)},Kx=function(t){var n=on(t,2);n!==null&&yt(n,t,2)},Wx=function(t){var n=ma(),a=on(t,n);a!==null&&yt(a,t,n)},Qx=function(t){u=t},Zx=function(t){l=t};var Th=!0,Nh=null,wb=!1,Zs=null,ea=null,ta=null,xu=new Map,Tu=new Map,na=[],c3="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(" "),Ah=null;if(_f.prototype.render=Fg.prototype.render=function(t){var n=this._internalRoot;if(n===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]=="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):T(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=t;var c=n.current,f=Jn(c);Ig(c,f,a,n,null,null)},_f.prototype.unmount=Fg.prototype.unmount=function(){var t=arguments;if(typeof t[0]=="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),t=this._internalRoot,t!==null){this._internalRoot=null;var n=t.containerInfo;(qe&(zt|nr))!==Jt&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Ig(t.current,2,null,t,null,null),Mo(),n[Os]=null}},_f.prototype.unstable_scheduleHydration=function(t){if(t){var n=Wr();t={blockedOn:null,target:t,priority:n};for(var a=0;a<na.length&&n!==0&&n<na[a].priority;a++);na.splice(a,0,t),a===0&&c1(t)}},(function(){var t=Gg.version;if(t!=="19.2.1")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
270
+ - react: `+(t+`
271
+ - react-dom: 19.2.1
272
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map=="function"&&Map.prototype!=null&&typeof Map.prototype.forEach=="function"&&typeof Set=="function"&&Set.prototype!=null&&typeof Set.prototype.clear=="function"&&typeof Set.prototype.forEach=="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),Ke.findDOMNode=function(t){var n=t._reactInternals;if(n===void 0)throw typeof t.render=="function"?Error("Unable to find node on an unmounted component."):(t=Object.keys(t).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+t));return t=$(n),t=t!==null?Z(t):null,t=t===null?null:t.stateNode,t},!(function(){var t={bundleType:1,version:"19.2.1",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.1"};return t.overrideHookState=qx,t.overrideHookStateDeletePath=Fx,t.overrideHookStateRenamePath=Gx,t.overrideProps=Yx,t.overridePropsDeletePath=Xx,t.overridePropsRenamePath=Jx,t.scheduleUpdate=Kx,t.scheduleRetry=Wx,t.setErrorHandler=Qx,t.setSuspenseHandler=Zx,t.scheduleRefresh=E,t.scheduleRoot=w,t.setRefreshHandler=S,t.getCurrentFiber=fR,ha(t)})()&&_i&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var eT=window.location.protocol;/^(https?|file):$/.test(eT)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(eT==="file:"?`
273
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}Au.createRoot=function(t,n){if(!T(t))throw Error("Target container is not a DOM element.");h1(t);var a=!1,c="",f=u_,h=d_,b=f_;return n!=null&&(n.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof n=="object"&&n!==null&&n.$$typeof===pi&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
274
+
275
+ let root = createRoot(domContainer);
276
+ root.render(<App />);`),n.unstable_strictMode===!0&&(a=!0),n.identifierPrefix!==void 0&&(c=n.identifierPrefix),n.onUncaughtError!==void 0&&(f=n.onUncaughtError),n.onCaughtError!==void 0&&(h=n.onCaughtError),n.onRecoverableError!==void 0&&(b=n.onRecoverableError)),n=n1(t,1,!1,null,null,a,c,null,f,h,b,f1),t[Os]=n.current,Ng(t),new Fg(n)},Au.hydrateRoot=function(t,n,a){if(!T(t))throw Error("Target container is not a DOM element.");h1(t),n===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var c=!1,f="",h=u_,b=d_,_=f_,N=null;return a!=null&&(a.unstable_strictMode===!0&&(c=!0),a.identifierPrefix!==void 0&&(f=a.identifierPrefix),a.onUncaughtError!==void 0&&(h=a.onUncaughtError),a.onCaughtError!==void 0&&(b=a.onCaughtError),a.onRecoverableError!==void 0&&(_=a.onRecoverableError),a.formState!==void 0&&(N=a.formState)),n=n1(t,1,!0,n,a??null,c,f,N,h,b,_,f1),n.context=r1(null),a=n.current,c=Jn(a),c=ar(c),f=Ss(c),f.callback=null,Es(a,f,c),ni(c,"hydrateRoot()",null),a=c,n.current.lanes=a,sr(n,a),hi(n),t[Os]=n.current,Ng(t),new _f(n)},Au.version="19.2.1",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})(),Au}var fT;function D3(){return fT||(fT=1,Eb.exports=k3()),Eb.exports}var Aj=D3();const Ev=new Map([["APIRequestContext.fetch",{title:'{method} "{url}"'}],["APIRequestContext.fetchResponseBody",{title:"Get response body",group:"getter"}],["APIRequestContext.fetchLog",{internal:!0}],["APIRequestContext.storageState",{title:"Get storage state"}],["APIRequestContext.disposeAPIResponse",{internal:!0}],["APIRequestContext.dispose",{internal:!0}],["LocalUtils.zip",{internal:!0}],["LocalUtils.harOpen",{internal:!0}],["LocalUtils.harLookup",{internal:!0}],["LocalUtils.harClose",{internal:!0}],["LocalUtils.harUnzip",{internal:!0}],["LocalUtils.connect",{internal:!0}],["LocalUtils.tracingStarted",{internal:!0}],["LocalUtils.addStackToTracingNoReply",{internal:!0}],["LocalUtils.traceDiscarded",{internal:!0}],["LocalUtils.globToRegex",{internal:!0}],["Root.initialize",{internal:!0}],["Playwright.newRequest",{title:"Create request context"}],["DebugController.initialize",{internal:!0}],["DebugController.setReportStateChanged",{internal:!0}],["DebugController.setRecorderMode",{internal:!0}],["DebugController.highlight",{internal:!0}],["DebugController.hideHighlight",{internal:!0}],["DebugController.resume",{internal:!0}],["DebugController.kill",{internal:!0}],["SocksSupport.socksConnected",{internal:!0}],["SocksSupport.socksFailed",{internal:!0}],["SocksSupport.socksData",{internal:!0}],["SocksSupport.socksError",{internal:!0}],["SocksSupport.socksEnd",{internal:!0}],["BrowserType.launch",{title:"Launch browser"}],["BrowserType.launchPersistentContext",{title:"Launch persistent context"}],["BrowserType.connectOverCDP",{title:"Connect over CDP"}],["Browser.close",{title:"Close browser",pausesBeforeAction:!0}],["Browser.killForTests",{internal:!0}],["Browser.defaultUserAgentForTest",{internal:!0}],["Browser.newContext",{title:"Create context"}],["Browser.newContextForReuse",{internal:!0}],["Browser.disconnectFromReusedContext",{internal:!0}],["Browser.newBrowserCDPSession",{title:"Create CDP session",group:"configuration"}],["Browser.startTracing",{title:"Start browser tracing",group:"configuration"}],["Browser.stopTracing",{title:"Stop browser tracing",group:"configuration"}],["EventTarget.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Page.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["Worker.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["WebSocket.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["ElectronApplication.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["AndroidDevice.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["PageAgent.waitForEventInfo",{title:'Wait for event "{info.event}"',snapshot:!0}],["BrowserContext.addCookies",{title:"Add cookies",group:"configuration"}],["BrowserContext.addInitScript",{title:"Add init script",group:"configuration"}],["BrowserContext.clearCookies",{title:"Clear cookies",group:"configuration"}],["BrowserContext.clearPermissions",{title:"Clear permissions",group:"configuration"}],["BrowserContext.close",{title:"Close context",pausesBeforeAction:!0}],["BrowserContext.cookies",{title:"Get cookies",group:"getter"}],["BrowserContext.exposeBinding",{title:"Expose binding",group:"configuration"}],["BrowserContext.grantPermissions",{title:"Grant permissions",group:"configuration"}],["BrowserContext.newPage",{title:"Create page"}],["BrowserContext.registerSelectorEngine",{internal:!0}],["BrowserContext.setTestIdAttributeName",{internal:!0}],["BrowserContext.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["BrowserContext.setGeolocation",{title:"Set geolocation",group:"configuration"}],["BrowserContext.setHTTPCredentials",{title:"Set HTTP credentials",group:"configuration"}],["BrowserContext.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["BrowserContext.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["BrowserContext.setOffline",{title:"Set offline mode"}],["BrowserContext.storageState",{title:"Get storage state"}],["BrowserContext.pause",{title:"Pause"}],["BrowserContext.enableRecorder",{internal:!0}],["BrowserContext.disableRecorder",{internal:!0}],["BrowserContext.exposeConsoleApi",{internal:!0}],["BrowserContext.newCDPSession",{title:"Create CDP session",group:"configuration"}],["BrowserContext.harStart",{internal:!0}],["BrowserContext.harExport",{internal:!0}],["BrowserContext.createTempFiles",{internal:!0}],["BrowserContext.updateSubscription",{internal:!0}],["BrowserContext.clockFastForward",{title:'Fast forward clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockInstall",{title:'Install clock "{timeNumber|timeString}"'}],["BrowserContext.clockPauseAt",{title:'Pause clock "{timeNumber|timeString}"'}],["BrowserContext.clockResume",{title:"Resume clock"}],["BrowserContext.clockRunFor",{title:'Run clock "{ticksNumber|ticksString}"'}],["BrowserContext.clockSetFixedTime",{title:'Set fixed time "{timeNumber|timeString}"'}],["BrowserContext.clockSetSystemTime",{title:'Set system time "{timeNumber|timeString}"'}],["Page.addInitScript",{title:"Add init script",group:"configuration"}],["Page.close",{title:"Close page",pausesBeforeAction:!0}],["Page.consoleMessages",{title:"Get console messages",group:"getter"}],["Page.emulateMedia",{title:"Emulate media",snapshot:!0,pausesBeforeAction:!0}],["Page.exposeBinding",{title:"Expose binding",group:"configuration"}],["Page.goBack",{title:"Go back",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.goForward",{title:"Go forward",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.requestGC",{title:"Request garbage collection",group:"configuration"}],["Page.registerLocatorHandler",{title:"Register locator handler"}],["Page.resolveLocatorHandlerNoReply",{internal:!0}],["Page.unregisterLocatorHandler",{title:"Unregister locator handler"}],["Page.reload",{title:"Reload",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.expectScreenshot",{title:"Expect screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["Page.setExtraHTTPHeaders",{title:"Set extra HTTP headers",group:"configuration"}],["Page.setNetworkInterceptionPatterns",{title:"Route requests",group:"route"}],["Page.setWebSocketInterceptionPatterns",{title:"Route WebSockets",group:"route"}],["Page.setViewportSize",{title:"Set viewport size",snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardDown",{title:'Key down "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardUp",{title:'Key up "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardInsertText",{title:'Insert "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardType",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.keyboardPress",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseMove",{title:"Mouse move",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseDown",{title:"Mouse down",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseUp",{title:"Mouse up",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseClick",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.mouseWheel",{title:"Mouse wheel",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.touchscreenTap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Page.pageErrors",{title:"Get page errors",group:"getter"}],["Page.pdf",{title:"PDF"}],["Page.requests",{title:"Get network requests",group:"getter"}],["Page.snapshotForAI",{internal:!0}],["Page.startJSCoverage",{title:"Start JS coverage",group:"configuration"}],["Page.stopJSCoverage",{title:"Stop JS coverage",group:"configuration"}],["Page.startCSSCoverage",{title:"Start CSS coverage",group:"configuration"}],["Page.stopCSSCoverage",{title:"Stop CSS coverage",group:"configuration"}],["Page.bringToFront",{title:"Bring to front"}],["Page.updateSubscription",{internal:!0}],["Page.agent",{internal:!0}],["Frame.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.addScriptTag",{title:"Add script tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.addStyleTag",{title:"Add style tag",snapshot:!0,pausesBeforeAction:!0}],["Frame.ariaSnapshot",{title:"Aria snapshot",snapshot:!0,pausesBeforeAction:!0}],["Frame.blur",{title:"Blur",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.content",{title:"Get content",snapshot:!0,pausesBeforeAction:!0}],["Frame.dragAndDrop",{title:"Drag and drop",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.dispatchEvent",{title:'Dispatch "{type}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["Frame.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.frameElement",{title:"Get frame element",group:"getter"}],["Frame.resolveSelector",{internal:!0}],["Frame.highlight",{title:"Highlight element",group:"configuration"}],["Frame.getAttribute",{title:'Get attribute "{name}"',snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.goto",{title:'Navigate to "{url}"',slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["Frame.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.querySelector",{title:"Query selector",snapshot:!0}],["Frame.querySelectorAll",{title:"Query selector all",snapshot:!0}],["Frame.queryCount",{title:"Query count",snapshot:!0,pausesBeforeAction:!0}],["Frame.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.setContent",{title:"Set content",snapshot:!0,pausesBeforeAction:!0}],["Frame.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["Frame.title",{title:"Get page title",group:"getter"}],["Frame.type",{title:'Type "{text}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["Frame.waitForTimeout",{title:"Wait for timeout",snapshot:!0}],["Frame.waitForFunction",{title:"Wait for function",snapshot:!0,pausesBeforeAction:!0}],["Frame.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Frame.expect",{title:'Expect "{expression}"',snapshot:!0,pausesBeforeAction:!0}],["Worker.evaluateExpression",{title:"Evaluate"}],["Worker.evaluateExpressionHandle",{title:"Evaluate"}],["Worker.updateSubscription",{internal:!0}],["JSHandle.dispose",{internal:!0}],["ElementHandle.dispose",{internal:!0}],["JSHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpression",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evaluateExpressionHandle",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["JSHandle.getPropertyList",{title:"Get property list",group:"getter"}],["ElementHandle.getPropertyList",{title:"Get property list",group:"getter"}],["JSHandle.getProperty",{title:"Get JS property",group:"getter"}],["ElementHandle.getProperty",{title:"Get JS property",group:"getter"}],["JSHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.jsonValue",{title:"Get JSON value",group:"getter"}],["ElementHandle.evalOnSelector",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.evalOnSelectorAll",{title:"Evaluate",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.boundingBox",{title:"Get bounding box",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.check",{title:"Check",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.click",{title:"Click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.contentFrame",{title:"Get content frame",group:"getter"}],["ElementHandle.dblclick",{title:"Double click",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.dispatchEvent",{title:"Dispatch event",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.fill",{title:'Fill "{value}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.focus",{title:"Focus",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.getAttribute",{title:"Get attribute",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.hover",{title:"Hover",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.innerHTML",{title:"Get HTML",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.innerText",{title:"Get inner text",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.inputValue",{title:"Get input value",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isChecked",{title:"Is checked",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isDisabled",{title:"Is disabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEditable",{title:"Is editable",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isEnabled",{title:"Is enabled",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isHidden",{title:"Is hidden",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.isVisible",{title:"Is visible",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.ownerFrame",{title:"Get owner frame",group:"getter"}],["ElementHandle.press",{title:'Press "{key}"',slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.querySelector",{title:"Query selector",snapshot:!0}],["ElementHandle.querySelectorAll",{title:"Query selector all",snapshot:!0}],["ElementHandle.screenshot",{title:"Screenshot",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.scrollIntoViewIfNeeded",{title:"Scroll into view",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.selectOption",{title:"Select option",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.selectText",{title:"Select text",slowMo:!0,snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.setInputFiles",{title:"Set input files",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.tap",{title:"Tap",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.textContent",{title:"Get text content",snapshot:!0,pausesBeforeAction:!0,group:"getter"}],["ElementHandle.type",{title:"Type",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.uncheck",{title:"Uncheck",slowMo:!0,snapshot:!0,pausesBeforeInput:!0}],["ElementHandle.waitForElementState",{title:"Wait for state",snapshot:!0,pausesBeforeAction:!0}],["ElementHandle.waitForSelector",{title:"Wait for selector",snapshot:!0}],["Request.response",{internal:!0}],["Request.rawRequestHeaders",{internal:!0}],["Route.redirectNavigationRequest",{internal:!0}],["Route.abort",{title:"Abort request",group:"route"}],["Route.continue",{title:"Continue request",group:"route"}],["Route.fulfill",{title:"Fulfill request",group:"route"}],["WebSocketRoute.connect",{title:"Connect WebSocket to server",group:"route"}],["WebSocketRoute.ensureOpened",{internal:!0}],["WebSocketRoute.sendToPage",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.sendToServer",{title:"Send WebSocket message",group:"route"}],["WebSocketRoute.closePage",{internal:!0}],["WebSocketRoute.closeServer",{internal:!0}],["Response.body",{title:"Get response body",group:"getter"}],["Response.securityDetails",{internal:!0}],["Response.serverAddr",{internal:!0}],["Response.rawResponseHeaders",{internal:!0}],["Response.sizes",{internal:!0}],["BindingCall.reject",{internal:!0}],["BindingCall.resolve",{internal:!0}],["Dialog.accept",{title:"Accept dialog"}],["Dialog.dismiss",{title:"Dismiss dialog"}],["Tracing.tracingStart",{title:"Start tracing",group:"configuration"}],["Tracing.tracingStartChunk",{title:"Start tracing",group:"configuration"}],["Tracing.tracingGroup",{title:'Trace "{name}"'}],["Tracing.tracingGroupEnd",{title:"Group end"}],["Tracing.tracingStopChunk",{title:"Stop tracing",group:"configuration"}],["Tracing.tracingStop",{title:"Stop tracing",group:"configuration"}],["Artifact.pathAfterFinished",{internal:!0}],["Artifact.saveAs",{internal:!0}],["Artifact.saveAsStream",{internal:!0}],["Artifact.failure",{internal:!0}],["Artifact.stream",{internal:!0}],["Artifact.cancel",{internal:!0}],["Artifact.delete",{internal:!0}],["Stream.read",{internal:!0}],["Stream.close",{internal:!0}],["WritableStream.write",{internal:!0}],["WritableStream.close",{internal:!0}],["CDPSession.send",{title:"Send CDP command",group:"configuration"}],["CDPSession.detach",{title:"Detach CDP session",group:"configuration"}],["Electron.launch",{title:"Launch electron"}],["ElectronApplication.browserWindow",{internal:!0}],["ElectronApplication.evaluateExpression",{title:"Evaluate"}],["ElectronApplication.evaluateExpressionHandle",{title:"Evaluate"}],["ElectronApplication.updateSubscription",{internal:!0}],["Android.devices",{internal:!0}],["AndroidSocket.write",{internal:!0}],["AndroidSocket.close",{internal:!0}],["AndroidDevice.wait",{title:"Wait"}],["AndroidDevice.fill",{title:'Fill "{text}"'}],["AndroidDevice.tap",{title:"Tap"}],["AndroidDevice.drag",{title:"Drag"}],["AndroidDevice.fling",{title:"Fling"}],["AndroidDevice.longTap",{title:"Long tap"}],["AndroidDevice.pinchClose",{title:"Pinch close"}],["AndroidDevice.pinchOpen",{title:"Pinch open"}],["AndroidDevice.scroll",{title:"Scroll"}],["AndroidDevice.swipe",{title:"Swipe"}],["AndroidDevice.info",{internal:!0}],["AndroidDevice.screenshot",{title:"Screenshot"}],["AndroidDevice.inputType",{title:"Type"}],["AndroidDevice.inputPress",{title:"Press"}],["AndroidDevice.inputTap",{title:"Tap"}],["AndroidDevice.inputSwipe",{title:"Swipe"}],["AndroidDevice.inputDrag",{title:"Drag"}],["AndroidDevice.launchBrowser",{title:"Launch browser"}],["AndroidDevice.open",{title:"Open app"}],["AndroidDevice.shell",{title:"Execute shell command",group:"configuration"}],["AndroidDevice.installApk",{title:"Install apk"}],["AndroidDevice.push",{title:"Push"}],["AndroidDevice.connectToWebView",{title:"Connect to Web View"}],["AndroidDevice.close",{internal:!0}],["JsonPipe.send",{internal:!0}],["JsonPipe.close",{internal:!0}],["PageAgent.perform",{title:'Perform "{task}"'}],["PageAgent.expect",{title:'Expect "{expectation}"'}],["PageAgent.extract",{title:'Extract "{query}"'}],["PageAgent.dispose",{internal:!0}],["PageAgent.usage",{title:"Get agent usage",group:"configuration"}]]);function CN(i,e){var r;return(r=R3(i,e))==null?void 0:r.replaceAll(`
277
+ `,"\\n")}function R3(i,e){if(i)for(const r of e.split("|")){if(r==="url")try{const o=new URL(i[r]);return o.protocol==="data:"?o.protocol:o.protocol==="about:"?i[r]:o.pathname+o.search}catch{if(i[r]!==void 0)return i[r]}if(r==="timeNumber"&&i[r]!==void 0)return new Date(i[r]).toString();const s=M3(i,r);if(s!==void 0)return s}}function M3(i,e){const r=e.split(".");let s=i;for(const o of r){if(typeof s!="object"||s===null)return;s=s[o]}if(s!==void 0)return String(s)}function O3(i){var r;return(i.title??((r=Ev.get(i.type+"."+i.method))==null?void 0:r.title)??i.method).replace(/\{([^}]+)\}/g,(s,o)=>CN(i.params,o)??s)}function L3(i){var e;return(e=Ev.get(i.type+"."+i.method))==null?void 0:e.group}const Iu=Symbol("context"),kN=Symbol("nextInContext"),DN=Symbol("prevByEndTime"),RN=Symbol("nextByStartTime"),hT=Symbol("events");class Cj{constructor(e,r){var o;r.forEach(l=>U3(l));const s=r.find(l=>l.origin==="library");this.traceUri=e,this.browserName=(s==null?void 0:s.browserName)||"",this.sdkLanguage=s==null?void 0:s.sdkLanguage,this.channel=s==null?void 0:s.channel,this.testIdAttributeName=s==null?void 0:s.testIdAttributeName,this.platform=(s==null?void 0:s.platform)||"",this.playwrightVersion=(o=r.find(l=>l.playwrightVersion))==null?void 0:o.playwrightVersion,this.title=(s==null?void 0:s.title)||"",this.options=(s==null?void 0:s.options)||{},this.actions=j3(r),this.pages=[].concat(...r.map(l=>l.pages)),this.wallTime=r.map(l=>l.wallTime).reduce((l,u)=>Math.min(l||Number.MAX_VALUE,u),Number.MAX_VALUE),this.startTime=r.map(l=>l.startTime).reduce((l,u)=>Math.min(l,u),Number.MAX_VALUE),this.endTime=r.map(l=>l.endTime).reduce((l,u)=>Math.max(l,u),Number.MIN_VALUE),this.events=[].concat(...r.map(l=>l.events)),this.stdio=[].concat(...r.map(l=>l.stdio)),this.errors=[].concat(...r.map(l=>l.errors)),this.hasSource=r.some(l=>l.hasSource),this.hasStepData=r.some(l=>l.origin==="testRunner"),this.resources=[...r.map(l=>l.resources)].flat(),this.attachments=this.actions.flatMap(l=>{var u;return((u=l.attachments)==null?void 0:u.map(d=>({...d,callId:l.callId,traceUri:e})))??[]}),this.visibleAttachments=this.attachments.filter(l=>!l.name.startsWith("_")),this.events.sort((l,u)=>l.time-u.time),this.resources.sort((l,u)=>l._monotonicTime-u._monotonicTime),this.errorDescriptors=this.hasStepData?this._errorDescriptorsFromTestRunner():this._errorDescriptorsFromActions(),this.sources=B3(this.actions,this.errorDescriptors),this.actionCounters=new Map;for(const l of this.actions)l.group=l.group??L3({type:l.class,method:l.method}),l.group&&this.actionCounters.set(l.group,1+(this.actionCounters.get(l.group)||0))}createRelativeUrl(e){const r=new URL("http://localhost/"+e);return r.searchParams.set("trace",this.traceUri),r.toString().substring(17)}failedAction(){return this.actions.findLast(e=>e.error)}filteredActions(e){const r=new Set(e);return this.actions.filter(s=>!s.group||r.has(s.group))}renderActionTree(e){const r=this.filteredActions(e??[]),{rootItem:s}=MN(r),o=[],l=(u,d)=>{const m=O3({...u.action,type:u.action.class});o.push(`${d}${m||u.id}`);for(const p of u.children)l(p,d+" ")};return s.children.forEach(u=>l(u,"")),o}_errorDescriptorsFromActions(){var r;const e=[];for(const s of this.actions||[])(r=s.error)!=null&&r.message&&e.push({action:s,stack:s.stack,message:s.error.message});return e}_errorDescriptorsFromTestRunner(){return this.errors.filter(e=>!!e.message).map((e,r)=>({stack:e.stack,message:e.message}))}}function U3(i){for(const r of i.pages)r[Iu]=i;for(let r=0;r<i.actions.length;++r){const s=i.actions[r];s[Iu]=i}let e;for(let r=i.actions.length-1;r>=0;r--){const s=i.actions[r];s[kN]=e,s.class!=="Route"&&(e=s)}for(const r of i.events)r[Iu]=i;for(const r of i.resources)r[Iu]=i}function j3(i){const e=[],r=V3(i);e.push(...r),e.sort((s,o)=>o.parentId===s.callId?1:s.parentId===o.callId?-1:s.endTime-o.endTime);for(let s=1;s<e.length;++s)e[s][DN]=e[s-1];e.sort((s,o)=>o.parentId===s.callId?-1:s.parentId===o.callId?1:s.startTime-o.startTime);for(let s=0;s+1<e.length;++s)e[s][RN]=e[s+1];return e}let mT=0;function V3(i){const e=new Map,r=i.filter(u=>u.origin==="library"),s=i.filter(u=>u.origin==="testRunner");if(!s.length||!r.length)return i.map(u=>u.actions.map(d=>({...d,context:u}))).flat();for(const u of r)for(const d of u.actions)e.set(d.stepId||`tmp-step@${++mT}`,{...d,context:u});const o=H3(s,e);o&&$3(r,o);const l=new Map;for(const u of s)for(const d of u.actions){const m=d.stepId&&e.get(d.stepId);if(m){l.set(d.callId,m.callId),d.error&&(m.error=d.error),d.attachments&&(m.attachments=d.attachments),d.annotations&&(m.annotations=d.annotations),d.parentId&&(m.parentId=l.get(d.parentId)??d.parentId),d.group&&(m.group=d.group),m.startTime=d.startTime,m.endTime=d.endTime;continue}d.parentId&&(d.parentId=l.get(d.parentId)??d.parentId),e.set(d.stepId||`tmp-step@${++mT}`,{...d,context:u})}return[...e.values()]}function $3(i,e){for(const r of i){r.startTime+=e,r.endTime+=e;for(const s of r.actions)s.startTime&&(s.startTime+=e),s.endTime&&(s.endTime+=e);for(const s of r.events)s.time+=e;for(const s of r.stdio)s.timestamp+=e;for(const s of r.pages)for(const o of s.screencastFrames)o.timestamp+=e;for(const s of r.resources)s._monotonicTime&&(s._monotonicTime+=e)}}function H3(i,e){for(const r of i)for(const s of r.actions){if(!s.startTime)continue;const o=s.stepId?e.get(s.stepId):void 0;if(o)return s.startTime-o.startTime}return 0}function MN(i){const e=new Map;for(const o of i)e.set(o.callId,{id:o.callId,parent:void 0,children:[],action:o});const r={action:{...q3},id:"",parent:void 0,children:[]};for(const o of e.values()){r.action.startTime=Math.min(r.action.startTime,o.action.startTime),r.action.endTime=Math.max(r.action.endTime,o.action.endTime);const l=o.action.parentId&&e.get(o.action.parentId)||r;l.children.push(o),o.parent=l}const s=o=>{for(const l of o.children)l.action.stack=l.action.stack??o.action.stack,s(l)};return s(r),{rootItem:r,itemMap:e}}function ON(i){return i[Iu]}function I3(i){return i[kN]}function pT(i){return i[DN]}function gT(i){return i[RN]}function z3(i){let e=0,r=0;for(const s of P3(i)){if(s.type==="console"){const o=s.messageType;o==="warning"?++r:o==="error"&&++e}s.type==="event"&&s.method==="pageError"&&++e}return{errors:e,warnings:r}}function P3(i){let e=i[hT];if(e)return e;const r=I3(i);return e=ON(i).events.filter(s=>s.time>=i.startTime&&(!r||s.time<r.startTime)),i[hT]=e,e}function B3(i,e){var s;const r=new Map;for(const o of i)for(const l of o.stack||[]){let u=r.get(l.file);u||(u={errors:[],content:void 0},r.set(l.file,u))}for(const o of e){const{action:l,stack:u,message:d}=o;!l||!u||(s=r.get(u[0].file))==null||s.errors.push({line:u[0].line||0,message:d})}return r}const q3={type:"action",callId:"",startTime:0,endTime:0,class:"",method:"",params:{},log:[],context:{origin:"library",startTime:0,endTime:0,browserName:"",wallTime:0,options:{},pages:[],resources:[],actions:[],events:[],stdio:[],errors:[],hasSource:!1,contextId:""}},F3=50,nm=({sidebarSize:i,sidebarHidden:e=!1,sidebarIsFirst:r=!1,orientation:s="vertical",minSidebarSize:o=F3,settingName:l,sidebar:u,main:d})=>{const m=Math.max(o,i)*window.devicePixelRatio,[p,v]=Nr(l?l+"."+s+":size":void 0,m),[g,y]=Nr(l?l+"."+s+":size":void 0,m),[w,E]=Y.useState(null),[S,T]=ho();let k;s==="vertical"?(k=g/window.devicePixelRatio,S&&S.height<k&&(k=S.height-10)):(k=p/window.devicePixelRatio,S&&S.width<k&&(k=S.width-10)),document.body.style.userSelect=w?"none":"inherit";let D={};return s==="vertical"?r?D={top:w?0:k-4,bottom:w?0:void 0,height:w?"initial":8}:D={bottom:w?0:k-4,top:w?0:void 0,height:w?"initial":8}:r?D={left:w?0:k-4,right:w?0:void 0,width:w?"initial":8}:D={right:w?0:k-4,left:w?0:void 0,width:w?"initial":8},x.jsxDEV("div",{className:At("split-view",s,r&&"sidebar-first"),ref:T,children:[x.jsxDEV("div",{className:"split-view-main",children:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/splitView.tsx",lineNumber:78,columnNumber:5},void 0),!e&&x.jsxDEV("div",{style:{flexBasis:k},className:"split-view-sidebar",children:u},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/splitView.tsx",lineNumber:79,columnNumber:24},void 0),!e&&x.jsxDEV("div",{style:D,className:"split-view-resizer",onMouseDown:I=>E({offset:s==="vertical"?I.clientY:I.clientX,size:k}),onMouseUp:()=>E(null),onMouseMove:I=>{if(!I.buttons)E(null);else if(w){const $=(s==="vertical"?I.clientY:I.clientX)-w.offset,Z=r?w.size+$:w.size-$,B=I.target.parentElement.getBoundingClientRect(),H=Math.min(Math.max(o,Z),(s==="vertical"?B.height:B.width)-o);s==="vertical"?y(H*window.devicePixelRatio):v(H*window.devicePixelRatio)}}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/splitView.tsx",lineNumber:80,columnNumber:24},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/splitView.tsx",lineNumber:77,columnNumber:10},void 0)},Vt=function(i,e,r){return i>=e&&i<=r};function jn(i){return Vt(i,48,57)}function yT(i){return jn(i)||Vt(i,65,70)||Vt(i,97,102)}function G3(i){return Vt(i,65,90)}function Y3(i){return Vt(i,97,122)}function X3(i){return G3(i)||Y3(i)}function J3(i){return i>=128}function Ih(i){return X3(i)||J3(i)||i===95}function bT(i){return Ih(i)||jn(i)||i===45}function K3(i){return Vt(i,0,8)||i===11||Vt(i,14,31)||i===127}function zh(i){return i===10}function as(i){return zh(i)||i===9||i===32}const W3=1114111;class xv extends Error{constructor(e){super(e),this.name="InvalidCharacterError"}}function Q3(i){const e=[];for(let r=0;r<i.length;r++){let s=i.charCodeAt(r);if(s===13&&i.charCodeAt(r+1)===10&&(s=10,r++),(s===13||s===12)&&(s=10),s===0&&(s=65533),Vt(s,55296,56319)&&Vt(i.charCodeAt(r+1),56320,57343)){const o=s-55296,l=i.charCodeAt(r+1)-56320;s=Math.pow(2,16)+o*Math.pow(2,10)+l,r++}e.push(s)}return e}function Pt(i){if(i<=65535)return String.fromCharCode(i);i-=Math.pow(2,16);const e=Math.floor(i/Math.pow(2,10))+55296,r=i%Math.pow(2,10)+56320;return String.fromCharCode(e)+String.fromCharCode(r)}function LN(i){const e=Q3(i);let r=-1;const s=[];let o;const l=function(q){return q>=e.length?-1:e[q]},u=function(q){if(q===void 0&&(q=1),q>3)throw"Spec Error: no more than three codepoints of lookahead.";return l(r+q)},d=function(q){return q===void 0&&(q=1),r+=q,o=l(r),!0},m=function(){return r-=1,!0},p=function(q){return q===void 0&&(q=o),q===-1},v=function(){if(g(),d(),as(o)){for(;as(u());)d();return new rm}else{if(o===34)return E();if(o===35)if(bT(u())||k(u(1),u(2))){const q=new YN("");return I(u(1),u(2),u(3))&&(q.type="id"),q.value=W(),q}else return new rn(o);else return o===36?u()===61?(d(),new nO):new rn(o):o===39?E():o===40?new qN:o===41?new Tv:o===42?u()===61?(d(),new rO):new rn(o):o===43?Z()?(m(),y()):new rn(o):o===44?new IN:o===45?Z()?(m(),y()):u(1)===45&&u(2)===62?(d(2),new VN):z()?(m(),w()):new rn(o):o===46?Z()?(m(),y()):new rn(o):o===58?new $N:o===59?new HN:o===60?u(1)===33&&u(2)===45&&u(3)===45?(d(3),new jN):new rn(o):o===64?I(u(1),u(2),u(3))?new GN(W()):new rn(o):o===91?new BN:o===92?D()?(m(),w()):new rn(o):o===93?new ev:o===94?u()===61?(d(),new tO):new rn(o):o===123?new zN:o===124?u()===61?(d(),new eO):u()===124?(d(),new FN):new rn(o):o===125?new PN:o===126?u()===61?(d(),new Z3):new rn(o):jn(o)?(m(),y()):Ih(o)?(m(),w()):p()?new Bh:new rn(o)}},g=function(){for(;u(1)===47&&u(2)===42;)for(d(2);;)if(d(),o===42&&u()===47){d();break}else if(p())return},y=function(){const q=B();if(I(u(1),u(2),u(3))){const X=new iO;return X.value=q.value,X.repr=q.repr,X.type=q.type,X.unit=W(),X}else if(u()===37){d();const X=new KN;return X.value=q.value,X.repr=q.repr,X}else{const X=new JN;return X.value=q.value,X.repr=q.repr,X.type=q.type,X}},w=function(){const q=W();if(q.toLowerCase()==="url"&&u()===40){for(d();as(u(1))&&as(u(2));)d();return u()===34||u()===39?new Fu(q):as(u())&&(u(2)===34||u(2)===39)?new Fu(q):S()}else return u()===40?(d(),new Fu(q)):new Nv(q)},E=function(q){q===void 0&&(q=o);let X="";for(;d();){if(o===q||p())return new Av(X);if(zh(o))return m(),new UN;o===92?p(u())||(zh(u())?d():X+=Pt(T())):X+=Pt(o)}throw new Error("Internal error")},S=function(){const q=new XN("");for(;as(u());)d();if(p(u()))return q;for(;d();){if(o===41||p())return q;if(as(o)){for(;as(u());)d();return u()===41||p(u())?(d(),q):(J(),new Ph)}else{if(o===34||o===39||o===40||K3(o))return J(),new Ph;if(o===92)if(D())q.value+=Pt(T());else return J(),new Ph;else q.value+=Pt(o)}}throw new Error("Internal error")},T=function(){if(d(),yT(o)){const q=[o];for(let se=0;se<5&&yT(u());se++)d(),q.push(o);as(u())&&d();let X=parseInt(q.map(function(se){return String.fromCharCode(se)}).join(""),16);return X>W3&&(X=65533),X}else return p()?65533:o},k=function(q,X){return!(q!==92||zh(X))},D=function(){return k(o,u())},I=function(q,X,se){return q===45?Ih(X)||X===45||k(X,se):Ih(q)?!0:q===92?k(q,X):!1},z=function(){return I(o,u(1),u(2))},$=function(q,X,se){return q===43||q===45?!!(jn(X)||X===46&&jn(se)):q===46?!!jn(X):!!jn(q)},Z=function(){return $(o,u(1),u(2))},W=function(){let q="";for(;d();)if(bT(o))q+=Pt(o);else if(D())q+=Pt(T());else return m(),q;throw new Error("Internal parse error")},B=function(){let q="",X="integer";for((u()===43||u()===45)&&(d(),q+=Pt(o));jn(u());)d(),q+=Pt(o);if(u(1)===46&&jn(u(2)))for(d(),q+=Pt(o),d(),q+=Pt(o),X="number";jn(u());)d(),q+=Pt(o);const se=u(1),Fe=u(2),ne=u(3);if((se===69||se===101)&&jn(Fe))for(d(),q+=Pt(o),d(),q+=Pt(o),X="number";jn(u());)d(),q+=Pt(o);else if((se===69||se===101)&&(Fe===43||Fe===45)&&jn(ne))for(d(),q+=Pt(o),d(),q+=Pt(o),d(),q+=Pt(o),X="number";jn(u());)d(),q+=Pt(o);const de=H(q);return{type:X,value:de,repr:q}},H=function(q){return+q},J=function(){for(;d();){if(o===41||p())return;D()&&T()}};let ue=0;for(;!p(u());)if(s.push(v()),ue++,ue>e.length*2)throw new Error("I'm infinite-looping!");return s}class Ct{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class UN extends Ct{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Ph extends Ct{constructor(){super(...arguments),this.tokenType="BADURL"}}class rm extends Ct{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class jN extends Ct{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return"<!--"}}class VN extends Ct{constructor(){super(...arguments),this.tokenType="CDC"}toSource(){return"-->"}}class $N extends Ct{constructor(){super(...arguments),this.tokenType=":"}}class HN extends Ct{constructor(){super(...arguments),this.tokenType=";"}}class IN extends Ct{constructor(){super(...arguments),this.tokenType=","}}class Pl extends Ct{constructor(){super(...arguments),this.value="",this.mirror=""}}class zN extends Pl{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class PN extends Pl{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class BN extends Pl{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class ev extends Pl{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class qN extends Pl{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Tv extends Pl{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class Z3 extends Ct{constructor(){super(...arguments),this.tokenType="~="}}class eO extends Ct{constructor(){super(...arguments),this.tokenType="|="}}class tO extends Ct{constructor(){super(...arguments),this.tokenType="^="}}class nO extends Ct{constructor(){super(...arguments),this.tokenType="$="}}class rO extends Ct{constructor(){super(...arguments),this.tokenType="*="}}class FN extends Ct{constructor(){super(...arguments),this.tokenType="||"}}class Bh extends Ct{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class rn extends Ct{constructor(e){super(),this.tokenType="DELIM",this.value="",this.value=Pt(e)}toString(){return"DELIM("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}toSource(){return this.value==="\\"?`\\
278
+ `:this.value}}class Bl extends Ct{constructor(){super(...arguments),this.value=""}ASCIIMatch(e){return this.value.toLowerCase()===e.toLowerCase()}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e}}class Nv extends Bl{constructor(e){super(),this.tokenType="IDENT",this.value=e}toString(){return"IDENT("+this.value+")"}toSource(){return ld(this.value)}}class Fu extends Bl{constructor(e){super(),this.tokenType="FUNCTION",this.value=e,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return ld(this.value)+"("}}class GN extends Bl{constructor(e){super(),this.tokenType="AT-KEYWORD",this.value=e}toString(){return"AT("+this.value+")"}toSource(){return"@"+ld(this.value)}}class YN extends Bl{constructor(e){super(),this.tokenType="HASH",this.value=e,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e}toSource(){return this.type==="id"?"#"+ld(this.value):"#"+sO(this.value)}}class Av extends Bl{constructor(e){super(),this.tokenType="STRING",this.value=e}toString(){return'"'+WN(this.value)+'"'}}class XN extends Bl{constructor(e){super(),this.tokenType="URL",this.value=e}toString(){return"URL("+this.value+")"}toSource(){return'url("'+WN(this.value)+'")'}}class JN extends Ct{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const e=super.toJSON();return e.value=this.value,e.type=this.type,e.repr=this.repr,e}toSource(){return this.repr}}class KN extends Ct{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.repr=this.repr,e}toSource(){return this.repr+"%"}}class iO extends Ct{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const e=this.constructor.prototype.constructor.prototype.toJSON.call(this);return e.value=this.value,e.type=this.type,e.repr=this.repr,e.unit=this.unit,e}toSource(){const e=this.repr;let r=ld(this.unit);return r[0].toLowerCase()==="e"&&(r[1]==="-"||Vt(r.charCodeAt(1),48,57))&&(r="\\65 "+r.slice(1,r.length)),e+r}}function ld(i){i=""+i;let e="";const r=i.charCodeAt(0);for(let s=0;s<i.length;s++){const o=i.charCodeAt(s);if(o===0)throw new xv("Invalid character: the input contains U+0000.");Vt(o,1,31)||o===127||s===0&&Vt(o,48,57)||s===1&&Vt(o,48,57)&&r===45?e+="\\"+o.toString(16)+" ":o>=128||o===45||o===95||Vt(o,48,57)||Vt(o,65,90)||Vt(o,97,122)?e+=i[s]:e+="\\"+i[s]}return e}function sO(i){i=""+i;let e="";for(let r=0;r<i.length;r++){const s=i.charCodeAt(r);if(s===0)throw new xv("Invalid character: the input contains U+0000.");s>=128||s===45||s===95||Vt(s,48,57)||Vt(s,65,90)||Vt(s,97,122)?e+=i[r]:e+="\\"+s.toString(16)+" "}return e}function WN(i){i=""+i;let e="";for(let r=0;r<i.length;r++){const s=i.charCodeAt(r);if(s===0)throw new xv("Invalid character: the input contains U+0000.");Vt(s,1,31)||s===127?e+="\\"+s.toString(16)+" ":s===34||s===92?e+="\\"+i[r]:e+=i[r]}return e}class Vn extends Error{}function aO(i,e){let r;try{r=LN(i),r[r.length-1]instanceof Bh||r.push(new Bh)}catch(H){const J=H.message+` while parsing css selector "${i}". Did you mean to CSS.escape it?`,ue=(H.stack||"").indexOf(H.message);throw ue!==-1&&(H.stack=H.stack.substring(0,ue)+J+H.stack.substring(ue+H.message.length)),H.message=J,H}const s=r.find(H=>H instanceof GN||H instanceof UN||H instanceof Ph||H instanceof FN||H instanceof jN||H instanceof VN||H instanceof HN||H instanceof zN||H instanceof PN||H instanceof XN||H instanceof KN);if(s)throw new Vn(`Unsupported token "${s.toSource()}" while parsing css selector "${i}". Did you mean to CSS.escape it?`);let o=0;const l=new Set;function u(){return new Vn(`Unexpected token "${r[o].toSource()}" while parsing css selector "${i}". Did you mean to CSS.escape it?`)}function d(){for(;r[o]instanceof rm;)o++}function m(H=o){return r[H]instanceof Nv}function p(H=o){return r[H]instanceof Av}function v(H=o){return r[H]instanceof JN}function g(H=o){return r[H]instanceof IN}function y(H=o){return r[H]instanceof qN}function w(H=o){return r[H]instanceof Tv}function E(H=o){return r[H]instanceof Fu}function S(H=o){return r[H]instanceof rn&&r[H].value==="*"}function T(H=o){return r[H]instanceof Bh}function k(H=o){return r[H]instanceof rn&&[">","+","~"].includes(r[H].value)}function D(H=o){return g(H)||w(H)||T(H)||k(H)||r[H]instanceof rm}function I(){const H=[z()];for(;d(),!!g();)o++,H.push(z());return H}function z(){return d(),v()||p()?r[o++].value:$()}function $(){const H={simples:[]};for(d(),k()?H.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):H.simples.push({selector:Z(),combinator:""});;){if(d(),k())H.simples[H.simples.length-1].combinator=r[o++].value,d();else if(D())break;H.simples.push({combinator:"",selector:Z()})}return H}function Z(){let H="";const J=[];for(;!D();)if(m()||S())H+=r[o++].toSource();else if(r[o]instanceof YN)H+=r[o++].toSource();else if(r[o]instanceof rn&&r[o].value===".")if(o++,m())H+="."+r[o++].toSource();else throw u();else if(r[o]instanceof $N)if(o++,m())if(!e.has(r[o].value.toLowerCase()))H+=":"+r[o++].toSource();else{const ue=r[o++].value.toLowerCase();J.push({name:ue,args:[]}),l.add(ue)}else if(E()){const ue=r[o++].value.toLowerCase();if(e.has(ue)?(J.push({name:ue,args:I()}),l.add(ue)):H+=`:${ue}(${W()})`,d(),!w())throw u();o++}else throw u();else if(r[o]instanceof BN){for(H+="[",o++;!(r[o]instanceof ev)&&!T();)H+=r[o++].toSource();if(!(r[o]instanceof ev))throw u();H+="]",o++}else throw u();if(!H&&!J.length)throw u();return{css:H||void 0,functions:J}}function W(){let H="",J=1;for(;!T()&&((y()||E())&&J++,w()&&J--,!!J);)H+=r[o++].toSource();return H}const B=I();if(!T())throw u();if(B.some(H=>typeof H!="object"||!("simples"in H)))throw new Vn(`Error while parsing css selector "${i}". Did you mean to CSS.escape it?`);return{selector:B,names:Array.from(l)}}const tv=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),oO=new Set(["left-of","right-of","above","below","near"]),QN=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 cd(i){const e=uO(i),r=[];for(const s of e.parts){if(s.name==="css"||s.name==="css:light"){s.name==="css:light"&&(s.body=":light("+s.body+")");const o=aO(s.body,QN);r.push({name:"css",body:o.selector,source:s.body});continue}if(tv.has(s.name)){let o,l;try{const p=JSON.parse("["+s.body+"]");if(!Array.isArray(p)||p.length<1||p.length>2||typeof p[0]!="string")throw new Vn(`Malformed selector: ${s.name}=`+s.body);if(o=p[0],p.length===2){if(typeof p[1]!="number"||!oO.has(s.name))throw new Vn(`Malformed selector: ${s.name}=`+s.body);l=p[1]}}catch{throw new Vn(`Malformed selector: ${s.name}=`+s.body)}const u={name:s.name,source:s.body,body:{parsed:cd(o),distance:l}},d=[...u.body.parsed.parts].reverse().find(p=>p.name==="internal:control"&&p.body==="enter-frame"),m=d?u.body.parsed.parts.indexOf(d):-1;m!==-1&&lO(u.body.parsed.parts.slice(0,m+1),r.slice(0,m+1))&&u.body.parsed.parts.splice(0,m+1),r.push(u);continue}r.push({...s,source:s.body})}if(tv.has(r[0].name))throw new Vn(`"${r[0].name}" selector cannot be first`);return{capture:e.capture,parts:r}}function lO(i,e){return ki({parts:i})===ki({parts:e})}function ki(i,e){return typeof i=="string"?i:i.parts.map((r,s)=>{let o=!0;!e&&s!==i.capture&&(r.name==="css"||r.name==="xpath"&&r.source.startsWith("//")||r.source.startsWith(".."))&&(o=!1);const l=o?r.name+"=":"";return`${s===i.capture?"*":""}${l}${r.source}`}).join(" >> ")}function cO(i,e){const r=(s,o)=>{for(const l of s.parts)e(l,o),tv.has(l.name)&&r(l.body.parsed,!0)};r(i,!1)}function uO(i){let e=0,r,s=0;const o={parts:[]},l=()=>{const d=i.substring(s,e).trim(),m=d.indexOf("=");let p,v;m!==-1&&d.substring(0,m).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(p=d.substring(0,m).trim(),v=d.substring(m+1)):d.length>1&&d[0]==='"'&&d[d.length-1]==='"'||d.length>1&&d[0]==="'"&&d[d.length-1]==="'"?(p="text",v=d):/^\(*\/\//.test(d)||d.startsWith("..")?(p="xpath",v=d):(p="css",v=d);let g=!1;if(p[0]==="*"&&(g=!0,p=p.substring(1)),o.parts.push({name:p,body:v}),g){if(o.capture!==void 0)throw new Vn("Only one of the selectors can capture using * modifier");o.capture=o.parts.length-1}};if(!i.includes(">>"))return e=i.length,l(),o;const u=()=>{const m=i.substring(s,e).match(/^\s*text\s*=(.*)$/);return!!m&&!!m[1]};for(;e<i.length;){const d=i[e];d==="\\"&&e+1<i.length?e+=2:d===r?(r=void 0,e++):!r&&(d==='"'||d==="'"||d==="`")&&!u()?(r=d,e++):!r&&d===">"&&i[e+1]===">"?(l(),e+=2,s=e):e++}return l(),o}function uo(i,e){let r=0,s=i.length===0;const o=()=>i[r]||"",l=()=>{const T=o();return++r,s=r>=i.length,T},u=T=>{throw s?new Vn(`Unexpected end of selector while parsing selector \`${i}\``):new Vn(`Error while parsing selector \`${i}\` - unexpected symbol "${o()}" at position ${r}`+(T?" during "+T:""))};function d(){for(;!s&&/\s/.test(o());)l()}function m(T){return T>="€"||T>="0"&&T<="9"||T>="A"&&T<="Z"||T>="a"&&T<="z"||T>="0"&&T<="9"||T==="_"||T==="-"}function p(){let T="";for(d();!s&&m(o());)T+=l();return T}function v(T){let k=l();for(k!==T&&u("parsing quoted string");!s&&o()!==T;)o()==="\\"&&l(),k+=l();return o()!==T&&u("parsing quoted string"),k+=l(),k}function g(){l()!=="/"&&u("parsing regular expression");let T="",k=!1;for(;!s;){if(o()==="\\")T+=l(),s&&u("parsing regular expression");else if(k&&o()==="]")k=!1;else if(!k&&o()==="[")k=!0;else if(!k&&o()==="/")break;T+=l()}l()!=="/"&&u("parsing regular expression");let D="";for(;!s&&o().match(/[dgimsuy]/);)D+=l();try{return new RegExp(T,D)}catch(I){throw new Vn(`Error while parsing selector \`${i}\`: ${I.message}`)}}function y(){let T="";return d(),o()==="'"||o()==='"'?T=v(o()).slice(1,-1):T=p(),T||u("parsing property path"),T}function w(){d();let T="";return s||(T+=l()),!s&&T!=="="&&(T+=l()),["=","*=","^=","$=","|=","~="].includes(T)||u("parsing operator"),T}function E(){l();const T=[];for(T.push(y()),d();o()===".";)l(),T.push(y()),d();if(o()==="]")return l(),{name:T.join("."),jsonPath:T,op:"<truthy>",value:null,caseSensitive:!1};const k=w();let D,I=!0;if(d(),o()==="/"){if(k!=="=")throw new Vn(`Error while parsing selector \`${i}\` - cannot use ${k} in attribute with regular expression`);D=g()}else if(o()==="'"||o()==='"')D=v(o()).slice(1,-1),d(),o()==="i"||o()==="I"?(I=!1,l()):(o()==="s"||o()==="S")&&(I=!0,l());else{for(D="";!s&&(m(o())||o()==="+"||o()===".");)D+=l();D==="true"?D=!0:D==="false"?D=!1:e||(D=+D,Number.isNaN(D)&&u("parsing attribute value"))}if(d(),o()!=="]"&&u("parsing attribute value"),l(),k!=="="&&typeof D!="string")throw new Vn(`Error while parsing selector \`${i}\` - cannot use ${k} in attribute with non-string matching value - ${D}`);return{name:T.join("."),jsonPath:T,op:k,value:D,caseSensitive:I}}const S={name:"",attributes:[]};for(S.name=p(),d();o()==="[";)S.attributes.push(E()),d();if(s||u(void 0),!S.name&&!S.attributes.length)throw new Vn(`Error while parsing selector \`${i}\` - selector cannot be empty`);return S}function ym(i,e="'"){const r=JSON.stringify(i),s=r.substring(1,r.length-1).replace(/\\"/g,'"');if(e==="'")return e+s.replace(/[']/g,"\\'")+e;if(e==='"')return e+s.replace(/["]/g,'\\"')+e;if(e==="`")return e+s.replace(/[`]/g,"\\`")+e;throw new Error("Invalid escape char")}function im(i){return i.charAt(0).toUpperCase()+i.substring(1)}function ZN(i){return i.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function ia(i){return`"${i.replace(/["\\]/g,e=>"\\"+e)}"`}let no;function dO(){no=new Map}function An(i){let e=no==null?void 0:no.get(i);return e===void 0&&(e=i.replace(/[\u200b\u00ad]/g,"").trim().replace(/\s+/g," "),no==null||no.set(i,e)),e}function bm(i){return i.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function eA(i){return i.unicode||i.unicodeSets?String(i):String(i).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function $n(i,e){return typeof i!="string"?eA(i):`${JSON.stringify(i)}${e?"s":"i"}`}function Hn(i,e){return typeof i!="string"?eA(i):`"${i.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${e?"s":"i"}`}function fO(i,e,r=""){if(i.length<=e)return i;const s=[...i];return s.length>e?s.slice(0,e-r.length).join("")+r:s.join("")}function vT(i,e){return fO(i,e,"…")}function sm(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function hO(i,e){const r=i.length,s=e.length;let o=0,l=0;const u=Array(r+1).fill(null).map(()=>Array(s+1).fill(0));for(let d=1;d<=r;d++)for(let m=1;m<=s;m++)i[d-1]===e[m-1]&&(u[d][m]=u[d-1][m-1]+1,u[d][m]>o&&(o=u[d][m],l=d));return i.slice(l-o,l)}function mO(i,e){try{const r=cd(e),s=pO(r);return s||ao(new nA[i],r,!1,1)[0]}catch{return e}}function pO(i){const e=i.parts[i.parts.length-1];if((e==null?void 0:e.name)==="internal:describe"){const r=JSON.parse(e.body);if(typeof r=="string")return r}}function la(i,e,r=!1){return tA(i,e,r,1)[0]}function tA(i,e,r=!1,s=20,o){try{return ao(new nA[i](o),cd(e),r,s)}catch{return[e]}}function ao(i,e,r=!1,s=20){const o=[...e.parts],l=[];let u=r?"frame-locator":"page";for(let d=0;d<o.length;d++){const m=o[d],p=u;if(u="locator",m.name==="internal:describe")continue;if(m.name==="nth"){m.body==="0"?l.push([i.generateLocator(p,"first",""),i.generateLocator(p,"nth","0")]):m.body==="-1"?l.push([i.generateLocator(p,"last",""),i.generateLocator(p,"nth","-1")]):l.push([i.generateLocator(p,"nth",m.body)]);continue}if(m.name==="visible"){l.push([i.generateLocator(p,"visible",m.body),i.generateLocator(p,"default",`visible=${m.body}`)]);continue}if(m.name==="internal:text"){const{exact:E,text:S}=Cu(m.body);l.push([i.generateLocator(p,"text",S,{exact:E})]);continue}if(m.name==="internal:has-text"){const{exact:E,text:S}=Cu(m.body);if(!E){l.push([i.generateLocator(p,"has-text",S,{exact:E})]);continue}}if(m.name==="internal:has-not-text"){const{exact:E,text:S}=Cu(m.body);if(!E){l.push([i.generateLocator(p,"has-not-text",S,{exact:E})]);continue}}if(m.name==="internal:has"){const E=ao(i,m.body.parsed,!1,s);l.push(E.map(S=>i.generateLocator(p,"has",S)));continue}if(m.name==="internal:has-not"){const E=ao(i,m.body.parsed,!1,s);l.push(E.map(S=>i.generateLocator(p,"hasNot",S)));continue}if(m.name==="internal:and"){const E=ao(i,m.body.parsed,!1,s);l.push(E.map(S=>i.generateLocator(p,"and",S)));continue}if(m.name==="internal:or"){const E=ao(i,m.body.parsed,!1,s);l.push(E.map(S=>i.generateLocator(p,"or",S)));continue}if(m.name==="internal:chain"){const E=ao(i,m.body.parsed,!1,s);l.push(E.map(S=>i.generateLocator(p,"chain",S)));continue}if(m.name==="internal:label"){const{exact:E,text:S}=Cu(m.body);l.push([i.generateLocator(p,"label",S,{exact:E})]);continue}if(m.name==="internal:role"){const E=uo(m.body,!0),S={attrs:[]};for(const T of E.attributes)T.name==="name"?(S.exact=T.caseSensitive,S.name=T.value):(T.name==="level"&&typeof T.value=="string"&&(T.value=+T.value),S.attrs.push({name:T.name==="include-hidden"?"includeHidden":T.name,value:T.value}));l.push([i.generateLocator(p,"role",E.name,S)]);continue}if(m.name==="internal:testid"){const E=uo(m.body,!0),{value:S}=E.attributes[0];l.push([i.generateLocator(p,"test-id",S)]);continue}if(m.name==="internal:attr"){const E=uo(m.body,!0),{name:S,value:T,caseSensitive:k}=E.attributes[0],D=T,I=!!k;if(S==="placeholder"){l.push([i.generateLocator(p,"placeholder",D,{exact:I})]);continue}if(S==="alt"){l.push([i.generateLocator(p,"alt",D,{exact:I})]);continue}if(S==="title"){l.push([i.generateLocator(p,"title",D,{exact:I})]);continue}}if(m.name==="internal:control"&&m.body==="enter-frame"){const E=l[l.length-1],S=o[d-1],T=E.map(k=>i.chainLocators([k,i.generateLocator(p,"frame","")]));["xpath","css"].includes(S.name)&&T.push(i.generateLocator(p,"frame-locator",ki({parts:[S]})),i.generateLocator(p,"frame-locator",ki({parts:[S]},!0))),E.splice(0,E.length,...T),u="frame-locator";continue}const v=o[d+1],g=ki({parts:[m]}),y=i.generateLocator(p,"default",g);if(v&&["internal:has-text","internal:has-not-text"].includes(v.name)){const{exact:E,text:S}=Cu(v.body);if(!E){const T=i.generateLocator("locator",v.name==="internal:has-text"?"has-text":"has-not-text",S,{exact:E}),k={};v.name==="internal:has-text"?k.hasText=S:k.hasNotText=S;const D=i.generateLocator(p,"default",g,k);l.push([i.chainLocators([y,T]),D]),d++;continue}}let w;if(["xpath","css"].includes(m.name)){const E=ki({parts:[m]},!0);w=i.generateLocator(p,"default",E)}l.push([y,w].filter(Boolean))}return gO(i,l,s)}function gO(i,e,r){const s=e.map(()=>""),o=[],l=u=>{if(u===e.length)return o.push(i.chainLocators(s)),o.length<r;for(const d of e[u])if(s[u]=d,!l(u+1))return!1;return!0};return l(0),o}function Cu(i){let e=!1;const r=i.match(/^\/(.*)\/([igm]*)$/);return r?{text:new RegExp(r[1],r[2])}:(i.endsWith('"')?(i=JSON.parse(i),e=!0):i.endsWith('"s')?(i=JSON.parse(i.substring(0,i.length-1)),e=!0):i.endsWith('"i')&&(i=JSON.parse(i.substring(0,i.length-1)),e=!1),{exact:e,text:i})}class yO{constructor(e){this.preferredQuote=e}generateLocator(e,r,s,o={}){switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, { hasText: ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`locator(${this.quote(s)}, { hasNotText: ${this.toHasText(o.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 l=[];Tt(o.name)?l.push(`name: ${this.regexToSourceString(o.name)}`):typeof o.name=="string"&&(l.push(`name: ${this.quote(o.name)}`),o.exact&&l.push("exact: true"));for(const{name:d,value:m}of o.attrs)l.push(`${d}: ${typeof m=="string"?this.quote(m):m}`);const u=l.length?`, { ${l.join(", ")} }`:"";return`getByRole(${this.quote(s)}${u})`;case"has-text":return`filter({ hasText: ${this.toHasText(s)} })`;case"has-not-text":return`filter({ hasNotText: ${this.toHasText(s)} })`;case"has":return`filter({ has: page.${s} })`;case"hasNot":return`filter({ hasNot: page.${s} })`;case"and":return`and(page.${s})`;case"or":return`or(page.${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("getByText",s,!!o.exact);case"alt":return this.toCallWithExact("getByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact("getByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact("getByLabel",s,!!o.exact);case"title":return this.toCallWithExact("getByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(e){return e.join(".")}regexToSourceString(e){return bm(String(e))}toCallWithExact(e,r,s){return Tt(r)?`${e}(${this.regexToSourceString(r)})`:s?`${e}(${this.quote(r)}, { exact: true })`:`${e}(${this.quote(r)})`}toHasText(e){return Tt(e)?this.regexToSourceString(e):this.quote(e)}toTestIdValue(e){return Tt(e)?this.regexToSourceString(e):this.quote(e)}quote(e){return ym(e,this.preferredQuote??"'")}}class bO{generateLocator(e,r,s,o={}){switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, has_text=${this.toHasText(o.hasText)})`:o.hasNotText!==void 0?`locator(${this.quote(s)}, has_not_text=${this.toHasText(o.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 l=[];Tt(o.name)?l.push(`name=${this.regexToString(o.name)}`):typeof o.name=="string"&&(l.push(`name=${this.quote(o.name)}`),o.exact&&l.push("exact=True"));for(const{name:d,value:m}of o.attrs){let p=typeof m=="string"?this.quote(m):m;typeof m=="boolean"&&(p=m?"True":"False"),l.push(`${ZN(d)}=${p}`)}const u=l.length?`, ${l.join(", ")}`:"";return`get_by_role(${this.quote(s)}${u})`;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=page.${s})`;case"hasNot":return`filter(has_not=page.${s})`;case"and":return`and_(page.${s})`;case"or":return`or_(page.${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,!!o.exact);case"alt":return this.toCallWithExact("get_by_alt_text",s,!!o.exact);case"placeholder":return this.toCallWithExact("get_by_placeholder",s,!!o.exact);case"label":return this.toCallWithExact("get_by_label",s,!!o.exact);case"title":return this.toCallWithExact("get_by_title",s,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(e){return e.join(".")}regexToString(e){const r=e.flags.includes("i")?", re.IGNORECASE":"";return`re.compile(r"${bm(e.source).replace(/\\\//,"/").replace(/"/g,'\\"')}"${r})`}toCallWithExact(e,r,s){return Tt(r)?`${e}(${this.regexToString(r)})`:s?`${e}(${this.quote(r)}, exact=True)`:`${e}(${this.quote(r)})`}toHasText(e){return Tt(e)?this.regexToString(e):`${this.quote(e)}`}toTestIdValue(e){return Tt(e)?this.regexToString(e):this.quote(e)}quote(e){return ym(e,'"')}}class vO{generateLocator(e,r,s,o={}){let l;switch(e){case"page":l="Page";break;case"frame-locator":l="FrameLocator";break;case"locator":l="Locator";break}switch(r){case"default":return o.hasText!==void 0?`locator(${this.quote(s)}, new ${l}.LocatorOptions().setHasText(${this.toHasText(o.hasText)}))`:o.hasNotText!==void 0?`locator(${this.quote(s)}, new ${l}.LocatorOptions().setHasNotText(${this.toHasText(o.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 ${l}.FilterOptions().setVisible(${s==="true"?"true":"false"}))`;case"role":const u=[];Tt(o.name)?u.push(`.setName(${this.regexToString(o.name)})`):typeof o.name=="string"&&(u.push(`.setName(${this.quote(o.name)})`),o.exact&&u.push(".setExact(true)"));for(const{name:m,value:p}of o.attrs)u.push(`.set${im(m)}(${typeof p=="string"?this.quote(p):p})`);const d=u.length?`, new ${l}.GetByRoleOptions()${u.join("")}`:"";return`getByRole(AriaRole.${ZN(s).toUpperCase()}${d})`;case"has-text":return`filter(new ${l}.FilterOptions().setHasText(${this.toHasText(s)}))`;case"has-not-text":return`filter(new ${l}.FilterOptions().setHasNotText(${this.toHasText(s)}))`;case"has":return`filter(new ${l}.FilterOptions().setHas(page.${s}))`;case"hasNot":return`filter(new ${l}.FilterOptions().setHasNot(page.${s}))`;case"and":return`and(page.${s})`;case"or":return`or(page.${s})`;case"chain":return`locator(${s})`;case"test-id":return`getByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact(l,"getByText",s,!!o.exact);case"alt":return this.toCallWithExact(l,"getByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact(l,"getByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact(l,"getByLabel",s,!!o.exact);case"title":return this.toCallWithExact(l,"getByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(e){return e.join(".")}regexToString(e){const r=e.flags.includes("i")?", Pattern.CASE_INSENSITIVE":"";return`Pattern.compile(${this.quote(bm(e.source))}${r})`}toCallWithExact(e,r,s,o){return Tt(s)?`${r}(${this.regexToString(s)})`:o?`${r}(${this.quote(s)}, new ${e}.${im(r)}Options().setExact(true))`:`${r}(${this.quote(s)})`}toHasText(e){return Tt(e)?this.regexToString(e):this.quote(e)}toTestIdValue(e){return Tt(e)?this.regexToString(e):this.quote(e)}quote(e){return ym(e,'"')}}class wO{generateLocator(e,r,s,o={}){switch(r){case"default":return o.hasText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasText(o.hasText)} })`:o.hasNotText!==void 0?`Locator(${this.quote(s)}, new() { ${this.toHasNotText(o.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 l=[];Tt(o.name)?l.push(`NameRegex = ${this.regexToString(o.name)}`):typeof o.name=="string"&&(l.push(`Name = ${this.quote(o.name)}`),o.exact&&l.push("Exact = true"));for(const{name:d,value:m}of o.attrs)l.push(`${im(d)} = ${typeof m=="string"?this.quote(m):m}`);const u=l.length?`, new() { ${l.join(", ")} }`:"";return`GetByRole(AriaRole.${im(s)}${u})`;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 = Page.${s} })`;case"hasNot":return`Filter(new() { HasNot = Page.${s} })`;case"and":return`And(Page.${s})`;case"or":return`Or(Page.${s})`;case"chain":return`Locator(${s})`;case"test-id":return`GetByTestId(${this.toTestIdValue(s)})`;case"text":return this.toCallWithExact("GetByText",s,!!o.exact);case"alt":return this.toCallWithExact("GetByAltText",s,!!o.exact);case"placeholder":return this.toCallWithExact("GetByPlaceholder",s,!!o.exact);case"label":return this.toCallWithExact("GetByLabel",s,!!o.exact);case"title":return this.toCallWithExact("GetByTitle",s,!!o.exact);default:throw new Error("Unknown selector kind "+r)}}chainLocators(e){return e.join(".")}regexToString(e){const r=e.flags.includes("i")?", RegexOptions.IgnoreCase":"";return`new Regex(${this.quote(bm(e.source))}${r})`}toCallWithExact(e,r,s){return Tt(r)?`${e}(${this.regexToString(r)})`:s?`${e}(${this.quote(r)}, new() { Exact = true })`:`${e}(${this.quote(r)})`}toHasText(e){return Tt(e)?`HasTextRegex = ${this.regexToString(e)}`:`HasText = ${this.quote(e)}`}toTestIdValue(e){return Tt(e)?this.regexToString(e):this.quote(e)}toHasNotText(e){return Tt(e)?`HasNotTextRegex = ${this.regexToString(e)}`:`HasNotText = ${this.quote(e)}`}quote(e){return ym(e,'"')}}class _O{generateLocator(e,r,s,o={}){return JSON.stringify({kind:r,body:qh(s),options:SO(o)})}chainLocators(e){const r=e.map(s=>JSON.parse(s));for(let s=0;s<r.length-1;++s)r[s].next=r[s+1];return JSON.stringify(r[0])}}function qh(i){return Tt(i)?`/${i.source}/${i.flags}`:i}function SO(i){const e={...i};return Tt(e.name)&&(e.name=qh(e.name)),Tt(e.hasText)&&(e.hasText=qh(e.hasText)),Tt(e.hasNotText)&&(e.hasNotText=qh(e.hasNotText)),e}const nA={javascript:yO,python:bO,java:vO,csharp:wO,jsonl:_O};function Tt(i){return i instanceof RegExp}const wT=new Map;function EO({name:i,rootItem:e,render:r,title:s,icon:o,isError:l,isVisible:u,selectedItem:d,onAccepted:m,onSelected:p,onHighlighted:v,treeState:g,setTreeState:y,noItemsMessage:w,dataTestId:E,autoExpandDepth:S}){const T=Y.useMemo(()=>xO(e,d,g.expandedItems,S||0,u),[e,d,g,S,u]),k=Y.useRef(null),[D,I]=Y.useState(),[z,$]=Y.useState(!1);Y.useEffect(()=>{v==null||v(D)},[v,D]),Y.useEffect(()=>{const B=k.current;if(!B)return;const H=()=>{wT.set(i,B.scrollTop)};return B.addEventListener("scroll",H,{passive:!0}),()=>B.removeEventListener("scroll",H)},[i]),Y.useEffect(()=>{k.current&&(k.current.scrollTop=wT.get(i)||0)},[i]);const Z=Y.useCallback(B=>{const{expanded:H}=T.get(B);if(H){for(let J=d;J;J=J.parent)if(J===B){p==null||p(B);break}g.expandedItems.set(B.id,!1)}else g.expandedItems.set(B.id,!0);y({...g})},[T,d,p,g,y]),W=Y.useCallback(B=>{const{expanded:H}=T.get(B),J=[B];for(;J.length;){const ue=J.pop();J.push(...ue.children),g.expandedItems.set(ue.id,!H)}y({...g})},[T,g,y]);return x.jsxDEV("div",{className:At("tree-view vbox",i+"-tree-view"),"data-testid":E||i+"-tree",children:x.jsxDEV("div",{className:At("tree-view-content"),role:T.size>0?"tree":void 0,tabIndex:0,onKeyDown:B=>{if(d&&B.key==="Enter"){m==null||m(d);return}if(B.key!=="ArrowDown"&&B.key!=="ArrowUp"&&B.key!=="ArrowLeft"&&B.key!=="ArrowRight")return;if(B.stopPropagation(),B.preventDefault(),d&&B.key==="ArrowLeft"){const{expanded:J,parent:ue}=T.get(d);J?(g.expandedItems.set(d.id,!1),y({...g})):ue&&(p==null||p(ue));return}if(d&&B.key==="ArrowRight"){d.children.length&&(g.expandedItems.set(d.id,!0),y({...g}));return}let H=d;if(B.key==="ArrowDown"&&(d?H=T.get(d).next:T.size&&(H=[...T.keys()][0])),B.key==="ArrowUp"){if(d)H=T.get(d).prev;else if(T.size){const J=[...T.keys()];H=J[J.length-1]}}v==null||v(void 0),H&&($(!0),p==null||p(H)),I(void 0)},ref:k,children:[w&&T.size===0&&x.jsxDEV("div",{className:"tree-view-empty",children:w},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:193,columnNumber:50},this),e.children.map(B=>T.get(B)&&x.jsxDEV(rA,{item:B,treeItems:T,selectedItem:d,onSelected:p,onAccepted:m,isError:l,toggleExpanded:Z,toggleSubtree:W,highlightedItem:D,setHighlightedItem:I,render:r,icon:o,title:s,isKeyboardNavigation:z,setIsKeyboardNavigation:$},B.id,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:196,columnNumber:28},this))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:130,columnNumber:5},this)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:129,columnNumber:10},this)}function rA({item:i,treeItems:e,selectedItem:r,onSelected:s,highlightedItem:o,setHighlightedItem:l,isError:u,onAccepted:d,toggleExpanded:m,toggleSubtree:p,render:v,title:g,icon:y,isKeyboardNavigation:w,setIsKeyboardNavigation:E}){const S=Y.useId(),T=Y.useRef(null);Y.useEffect(()=>{r===i&&w&&T.current&&(xN(T.current),E(!1))},[i,r,w,E]);const k=e.get(i),D=k.depth,I=k.expanded;let z="codicon-blank";typeof I=="boolean"&&(z=I?"codicon-chevron-down":"codicon-chevron-right");const $=v(i),Z=I&&i.children.length?i.children:[],W=g==null?void 0:g(i),B=(y==null?void 0:y(i))||"codicon-blank";return x.jsxDEV("div",{ref:T,role:"treeitem","aria-selected":i===r,"aria-expanded":I,"aria-controls":S,title:W,className:"vbox",style:{flex:"none"},children:[x.jsxDEV("div",{onDoubleClick:()=>d==null?void 0:d(i),className:At("tree-view-entry",r===i&&"selected",o===i&&"highlighted",(u==null?void 0:u(i))&&"error"),onClick:()=>s==null?void 0:s(i),onMouseEnter:()=>l(i),onMouseLeave:()=>l(void 0),children:[D?new Array(D).fill(0).map((H,J)=>x.jsxDEV("div",{className:"tree-view-indent"},"indent-"+J,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:285,columnNumber:67},this)):void 0,x.jsxDEV("div",{"aria-hidden":"true",className:"codicon "+z,style:{minWidth:16,marginRight:4},onDoubleClick:H=>{H.preventDefault(),H.stopPropagation()},onClick:H=>{H.stopPropagation(),H.preventDefault(),H.altKey?p(i):m(i)}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:286,columnNumber:7},this),y&&x.jsxDEV("div",{className:"codicon "+B,style:{minWidth:16,marginRight:4},"aria-label":"["+B.replace("codicon","icon")+"]"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:303,columnNumber:16},this),typeof $=="string"?x.jsxDEV("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:$},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:304,columnNumber:39},this):$]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:274,columnNumber:5},this),!!Z.length&&x.jsxDEV("div",{id:S,role:"group",children:Z.map(H=>e.get(H)&&x.jsxDEV(rA,{item:H,treeItems:e,selectedItem:r,onSelected:s,onAccepted:d,isError:u,toggleExpanded:m,toggleSubtree:p,highlightedItem:o,setHighlightedItem:l,render:v,title:g,icon:y,isKeyboardNavigation:w,setIsKeyboardNavigation:E},H.id,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:309,columnNumber:28},this))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:306,columnNumber:27},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/treeView.tsx",lineNumber:273,columnNumber:10},this)}function xO(i,e,r,s,o=()=>!0){if(!o(i))return new Map;const l=new Map,u=new Set;for(let p=e==null?void 0:e.parent;p;p=p.parent)u.add(p.id);let d=null;const m=(p,v)=>{for(const g of p.children){if(!o(g))continue;const y=u.has(g.id)||r.get(g.id),w=s>v&&l.size<25&&y!==!1,E=g.children.length?y??w:void 0,S={depth:v,expanded:E,parent:i===p?null:p,next:null,prev:d};d&&(l.get(d).next=g),d=g,l.set(g,S),E&&m(g,v+1)}};return m(i,0),l}const Pn=Y.forwardRef(function({children:e,title:r="",icon:s,disabled:o=!1,toggled:l=!1,onClick:u=()=>{},style:d,testId:m,className:p,ariaLabel:v},g){return x.jsxDEV("button",{ref:g,className:At(p,"toolbar-button",s,l&&"toggled"),onMouseDown:_T,onClick:u,onDoubleClick:_T,title:r,disabled:!!o,style:d,"data-testid":m,"aria-label":v||r,children:[s&&x.jsxDEV("span",{className:`codicon codicon-${s}`,style:e?{marginRight:5}:{}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/toolbarButton.tsx",lineNumber:58,columnNumber:14},this),e]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/toolbarButton.tsx",lineNumber:46,columnNumber:10},this)}),_T=i=>{i.stopPropagation(),i.preventDefault()};function iA(i){return i==="scheduled"?"codicon-clock":i==="running"?"codicon-loading":i==="failed"?"codicon-error":i==="passed"?"codicon-check":i==="skipped"?"codicon-circle-slash":"codicon-circle-outline"}function TO(i){return i==="scheduled"?"Pending":i==="running"?"Running":i==="failed"?"Failed":i==="passed"?"Passed":i==="skipped"?"Skipped":"Did not run"}const NO=EO,AO=({actions:i,selectedAction:e,selectedTime:r,setSelectedTime:s,treeState:o,setTreeState:l,sdkLanguage:u,onSelected:d,onHighlighted:m,revealConsole:p,revealActionAttachment:v,isLive:g})=>{const{rootItem:y,itemMap:w}=Y.useMemo(()=>MN(i),[i]),{selectedItem:E}=Y.useMemo(()=>({selectedItem:e?w.get(e.callId):void 0}),[w,e]),S=Y.useCallback($=>{var Z;return!!((Z=$.action.error)!=null&&Z.message)},[]),T=Y.useCallback($=>s({minimum:$.action.startTime,maximum:$.action.endTime}),[s]),k=Y.useCallback($=>{var W;const Z=!!v&&!!((W=$.action.attachments)!=null&&W.length);return Cv($.action,{sdkLanguage:u,revealConsole:p,revealActionAttachment:()=>v==null?void 0:v($.action.callId),isLive:g,showDuration:!0,showBadges:!0,showAttachments:Z})},[g,p,v,u]),D=Y.useCallback($=>!r||!$.action||$.action.startTime<=r.maximum&&$.action.endTime>=r.minimum,[r]),I=Y.useCallback($=>{d==null||d($.action)},[d]),z=Y.useCallback($=>{m==null||m($==null?void 0:$.action)},[m]);return x.jsxDEV("div",{className:"vbox",children:[r&&x.jsxDEV("div",{className:"action-list-show-all",onClick:()=>s(void 0),children:[x.jsxDEV("span",{className:"codicon codicon-triangle-left"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:96,columnNumber:103},void 0),"Show all"]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:96,columnNumber:22},void 0),x.jsxDEV(NO,{name:"actions",rootItem:y,treeState:o,setTreeState:l,selectedItem:E,onSelected:I,onHighlighted:z,onAccepted:T,isError:S,isVisible:D,render:k},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:97,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:95,columnNumber:10},void 0)},Cv=(i,e)=>{var T;const{sdkLanguage:r,revealConsole:s,revealActionAttachment:o,isLive:l,showDuration:u,showBadges:d,showAttachments:m}=e,{errors:p,warnings:v}=z3(i),g=i.params.selector?mO(r||"javascript",i.params.selector):void 0,y=i.class==="Test"&&i.method==="test.step"&&((T=i.annotations)==null?void 0:T.some(k=>k.type==="skip"));let w="";i.endTime?w=Nn(i.endTime-i.startTime):i.error?w="Timed out":l||(w="-");const{elements:E,title:S}=sA(i);return x.jsxDEV("div",{className:"action-title vbox",children:[x.jsxDEV("div",{className:"hbox",children:[x.jsxDEV("span",{className:"action-title-method",title:S,children:E},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:140,columnNumber:7},void 0),(u||d||m||y)&&x.jsxDEV("div",{className:"spacer"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:141,columnNumber:72},void 0),m&&x.jsxDEV(Pn,{icon:"attach",title:"Open Attachment",onClick:()=>o==null?void 0:o()},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:142,columnNumber:27},void 0),u&&!y&&x.jsxDEV("div",{className:"action-duration",children:w||x.jsxDEV("span",{className:"codicon codicon-loading"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:143,columnNumber:80},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:143,columnNumber:38},void 0),y&&x.jsxDEV("span",{className:At("action-skipped","codicon",iA("skipped")),title:"skipped"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:144,columnNumber:21},void 0),d&&x.jsxDEV("div",{className:"action-icons",onClick:()=>s==null?void 0:s(),children:[!!p&&x.jsxDEV("div",{className:"action-icon",children:[x.jsxDEV("span",{className:"codicon codicon-error"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:146,columnNumber:51},void 0),x.jsxDEV("span",{className:"action-icon-value",children:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:146,columnNumber:98},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:146,columnNumber:22},void 0),!!v&&x.jsxDEV("div",{className:"action-icon",children:[x.jsxDEV("span",{className:"codicon codicon-warning"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:147,columnNumber:53},void 0),x.jsxDEV("span",{className:"action-icon-value",children:v},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:147,columnNumber:102},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:147,columnNumber:24},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:145,columnNumber:22},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:139,columnNumber:5},void 0),g&&x.jsxDEV("div",{className:"action-title-selector",title:g,children:g},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:150,columnNumber:17},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:138,columnNumber:10},void 0)};function sA(i){var d;let e=i.title??((d=Ev.get(i.class+"."+i.method))==null?void 0:d.title)??i.method;e=e.replace(/\n/g," ");const r=[],s=[];let o=0;const l=/\{([^}]+)\}/g;let u;for(;(u=l.exec(e))!==null;){const[m,p]=u,v=e.slice(o,u.index);r.push(v),s.push(v);const g=CN(i.params,p);g===void 0?(r.push(m),s.push(m)):u.index===0?(r.push(g),s.push(g)):(r.push(x.jsxDEV("span",{className:"action-title-param",children:g},r.length,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/actionList.tsx",lineNumber:179,columnNumber:21},this)),s.push(g)),o=u.index+m.length}if(o<e.length){const m=e.slice(o);r.push(m),s.push(m)}return{elements:r,title:s.join("")}}const kv=({value:i,description:e})=>{const[r,s]=Y.useState("copy"),o=Y.useCallback(()=>{(typeof i=="function"?i():Promise.resolve(i)).then(u=>{navigator.clipboard.writeText(u).then(()=>{s("check"),setTimeout(()=>{s("copy")},3e3)},()=>{s("close")})},()=>{s("close")})},[i]);return x.jsxDEV(Pn,{title:e||"Copy",icon:r,onClick:o},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/copyToClipboard.tsx",lineNumber:44,columnNumber:10},void 0)},Fh=({value:i,description:e,copiedDescription:r=e,style:s})=>{const[o,l]=Y.useState(!1),u=Y.useCallback(async()=>{const d=typeof i=="function"?await i():i;await navigator.clipboard.writeText(d),l(!0),setTimeout(()=>l(!1),3e3)},[i]);return x.jsxDEV(Pn,{style:s,title:e,onClick:u,className:"copy-to-clipboard-text-button",children:o?r:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/copyToClipboard.tsx",lineNumber:61,columnNumber:10},void 0)},mo=({text:i})=>x.jsxDEV("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/placeholderPanel.tsx",lineNumber:22,columnNumber:10},void 0),CO=({action:i,startTimeOffset:e,sdkLanguage:r})=>{const s=Y.useMemo(()=>Object.keys((i==null?void 0:i.params)??{}).filter(d=>d!=="info"),[i]);if(!i)return x.jsxDEV(mo,{text:"No action selected"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:38,columnNumber:12},void 0);const o=i.startTime-e,l=Nn(o),{title:u}=sA(i);return x.jsxDEV("div",{className:"call-tab",children:[x.jsxDEV("div",{className:"call-line",children:u},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:48,columnNumber:7},void 0),x.jsxDEV("div",{className:"call-section",children:"Time"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:49,columnNumber:7},void 0),kh({name:"start",type:"literal",text:l}),kh({name:"duration",type:"literal",text:kO(i)}),!!s.length&&x.jsxDEV(x.Fragment,{children:[x.jsxDEV("div",{className:"call-section",children:"Parameters"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:54,columnNumber:11},void 0),s.map(d=>kh(ST(i,d,i.params[d],r)))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:53,columnNumber:31},void 0),!!i.result&&x.jsxDEV(x.Fragment,{children:[x.jsxDEV("div",{className:"call-section",children:"Return value"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:60,columnNumber:11},void 0),Object.keys(i.result).map(d=>kh(ST(i,d,i.result[d],r)))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:59,columnNumber:28},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:47,columnNumber:5},void 0)};function kO(i){return i.endTime?Nn(i.endTime-i.startTime):i.error?"Timed Out":"Running"}function kh(i){let e=i.text.replace(/\n/g,"↵");return i.type==="string"&&(e=`"${e}"`),x.jsxDEV("div",{className:"call-line",children:[i.name,":",x.jsxDEV("span",{className:At("call-value",i.type),title:i.text,children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:91,columnNumber:23},this),["literal","string","number","object","locator"].includes(i.type)&&x.jsxDEV(kv,{value:i.text},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:93,columnNumber:9},this)]},i.name,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/callTab.tsx",lineNumber:90,columnNumber:5},this)}function ST(i,e,r,s){const o=i.method.includes("eval")||i.method==="waitForFunction";if(e==="files")return{text:"<files>",type:"string",name:e};if((e==="eventInit"||e==="expectedValue"||e==="arg"&&o)&&(r=am(r.value,new Array(10).fill({handle:"<handle>"}))),(e==="value"&&o||e==="received"&&i.method==="expect")&&(r=am(r,new Array(10).fill({handle:"<handle>"}))),e==="selector")return{text:la(s||"javascript",i.params.selector),type:"locator",name:"locator"};const l=typeof r;return l!=="object"||r===null?{text:String(r),type:l,name:e}:r.guid?{text:"<handle>",type:"handle",name:e}:{text:JSON.stringify(r).slice(0,1e3),type:"object",name:e}}function am(i,e){if(i.n!==void 0)return i.n;if(i.s!==void 0)return i.s;if(i.b!==void 0)return i.b;if(i.v!==void 0){if(i.v==="undefined")return;if(i.v==="null")return null;if(i.v==="NaN")return NaN;if(i.v==="Infinity")return 1/0;if(i.v==="-Infinity")return-1/0;if(i.v==="-0")return-0}if(i.d!==void 0)return new Date(i.d);if(i.r!==void 0)return new RegExp(i.r.p,i.r.f);if(i.a!==void 0)return i.a.map(r=>am(r,e));if(i.o!==void 0){const r={};for(const{k:s,v:o}of i.o)r[s]=am(o,e);return r}return i.h!==void 0?e===void 0?"<object>":e[i.h]:"<object>"}const ET=new Map;function vm({name:i,items:e=[],id:r,render:s,icon:o,isError:l,isWarning:u,isInfo:d,selectedItem:m,onAccepted:p,onSelected:v,onHighlighted:g,onIconClicked:y,noItemsMessage:w,dataTestId:E,notSelectable:S,ariaLabel:T}){const k=Y.useRef(null),[D,I]=Y.useState();return Y.useEffect(()=>{g==null||g(D)},[g,D]),Y.useEffect(()=>{const z=k.current;if(!z)return;const $=()=>{ET.set(i,z.scrollTop)};return z.addEventListener("scroll",$,{passive:!0}),()=>z.removeEventListener("scroll",$)},[i]),Y.useEffect(()=>{k.current&&(k.current.scrollTop=ET.get(i)||0)},[i]),x.jsxDEV("div",{className:At("list-view vbox",i+"-list-view"),role:e.length>0?"list":void 0,"aria-label":T,children:x.jsxDEV("div",{className:At("list-view-content",S&&"not-selectable"),tabIndex:0,onKeyDown:z=>{var B;if(m&&z.key==="Enter"){p==null||p(m,e.indexOf(m));return}if(z.key!=="ArrowDown"&&z.key!=="ArrowUp")return;z.stopPropagation(),z.preventDefault();const $=m?e.indexOf(m):-1;let Z=$;z.key==="ArrowDown"&&($===-1?Z=0:Z=Math.min($+1,e.length-1)),z.key==="ArrowUp"&&($===-1?Z=e.length-1:Z=Math.max($-1,0));const W=(B=k.current)==null?void 0:B.children.item(Z);xN(W||void 0),g==null||g(void 0),v==null||v(e[Z],Z),I(void 0)},ref:k,children:[w&&e.length===0&&x.jsxDEV("div",{className:"list-view-empty",children:w},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:123,columnNumber:48},this),e.map((z,$)=>{const Z=s(z,$);return x.jsxDEV("div",{onDoubleClick:()=>p==null?void 0:p(z,$),role:"listitem",className:At("list-view-entry",m===z&&"selected",!S&&D===z&&"highlighted",(l==null?void 0:l(z,$))&&"error",(u==null?void 0:u(z,$))&&"warning",(d==null?void 0:d(z,$))&&"info"),"aria-selected":m===z,onClick:()=>v==null?void 0:v(z,$),onMouseEnter:()=>I(z),onMouseLeave:()=>I(void 0),children:[o&&x.jsxDEV("div",{className:"codicon "+(o(z,$)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:W=>{W.preventDefault(),W.stopPropagation()},onClick:W=>{W.stopPropagation(),W.preventDefault(),y==null||y(z,$)}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:142,columnNumber:20},this),typeof Z=="string"?x.jsxDEV("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:Z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:155,columnNumber:43},this):Z]},(r==null?void 0:r(z,$))||$,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:126,columnNumber:16},this)})]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:86,columnNumber:5},this)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/listView.tsx",lineNumber:85,columnNumber:10},this)}const DO=vm,RO=({action:i,isLive:e})=>{const r=Y.useMemo(()=>{var u;if(!i||!i.log.length)return[];const s=i.log,o=i.context.wallTime-i.context.startTime,l=[];for(let d=0;d<s.length;++d){let m="";if(s[d].time!==-1){const p=(u=s[d])==null?void 0:u.time;d+1<s.length?m=Nn(s[d+1].time-p):i.endTime>0?m=Nn(i.endTime-p):e?m=Nn(Date.now()-o-p):m="-"}l.push({message:s[d].message,time:m})}return l},[i,e]);return r.length?x.jsxDEV(DO,{name:"log",ariaLabel:"Log entries",items:r,render:s=>x.jsxDEV("div",{className:"log-list-item",children:[x.jsxDEV("span",{className:"log-list-duration",children:s.time},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/logTab.tsx",lineNumber:64,columnNumber:7},void 0),s.message]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/logTab.tsx",lineNumber:63,columnNumber:22},void 0),notSelectable:!0},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/logTab.tsx",lineNumber:59,columnNumber:10},void 0):x.jsxDEV(mo,{text:"No log entries"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/logTab.tsx",lineNumber:57,columnNumber:12},void 0)};function td(i,e){const r=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,s=[];let o,l={},u=!1,d=e==null?void 0:e.fg,m=e==null?void 0:e.bg;for(;(o=r.exec(i))!==null;){const[,,p,,v]=o;if(p){const g=+p;switch(g){case 0:l={};break;case 1:l["font-weight"]="bold";break;case 2:l.opacity="0.8";break;case 3:l["font-style"]="italic";break;case 4:l["text-decoration"]="underline";break;case 7:u=!0;break;case 8:l.display="none";break;case 9:l["text-decoration"]="line-through";break;case 22:delete l["font-weight"],delete l["font-style"],delete l.opacity,delete l["text-decoration"];break;case 23:delete l["font-weight"],delete l["font-style"],delete l.opacity;break;case 24:delete l["text-decoration"];break;case 27:u=!1;break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:d=xT[g-30];break;case 39:d=e==null?void 0:e.fg;break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:m=xT[g-40];break;case 49:m=e==null?void 0:e.bg;break;case 53:l["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:d=TT[g-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:m=TT[g-100];break}}else if(v){const g={...l},y=u?m:d;y!==void 0&&(g.color=y);const w=u?d:m;w!==void 0&&(g["background-color"]=w),s.push(`<span style="${OO(g)}">${MO(v)}</span>`)}}return s.join("")}const xT={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)"},TT={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 MO(i){return i.replace(/[&"<>]/g,e=>({"&":"&amp;",'"':"&quot;","<":"&lt;",">":"&gt;"})[e])}function OO(i){return Object.entries(i).map(([e,r])=>`${e}: ${r}`).join("; ")}const LO=({error:i})=>{const e=Y.useMemo(()=>td(i),[i]);return x.jsxDEV("div",{className:"error-message",dangerouslySetInnerHTML:{__html:e||""}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/errorMessage.tsx",lineNumber:25,columnNumber:10},void 0)},aA=({cursor:i,onPaneMouseMove:e,onPaneMouseUp:r,onPaneDoubleClick:s})=>(sn.useEffect(()=>{const o=document.createElement("div");return o.style.position="fixed",o.style.top="0",o.style.right="0",o.style.bottom="0",o.style.left="0",o.style.zIndex="9999",o.style.cursor=i,document.body.appendChild(o),e&&o.addEventListener("mousemove",e),r&&o.addEventListener("mouseup",r),s&&document.body.addEventListener("dblclick",s),()=>{e&&o.removeEventListener("mousemove",e),r&&o.removeEventListener("mouseup",r),s&&document.body.removeEventListener("dblclick",s),document.body.removeChild(o)}},[i,e,r,s]),x.jsxDEV(x.Fragment,{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/glassPane.tsx",lineNumber:55,columnNumber:10},void 0)),UO={position:"absolute",top:0,right:0,bottom:0,left:0},oA=({orientation:i,offsets:e,setOffsets:r,resizerColor:s,resizerWidth:o,minColumnWidth:l})=>{const u=l||0,[d,m]=sn.useState(null),[p,v]=ho(),g={position:"absolute",right:i==="horizontal"?void 0:0,bottom:i==="horizontal"?0:void 0,width:i==="horizontal"?7:void 0,height:i==="horizontal"?void 0:7,borderTopWidth:i==="horizontal"?void 0:(7-o)/2,borderRightWidth:i==="horizontal"?(7-o)/2:void 0,borderBottomWidth:i==="horizontal"?void 0:(7-o)/2,borderLeftWidth:i==="horizontal"?(7-o)/2:void 0,borderColor:"transparent",borderStyle:"solid",cursor:i==="horizontal"?"ew-resize":"ns-resize"};return x.jsxDEV("div",{style:{position:"absolute",top:0,right:0,bottom:0,left:-(7-o)/2,zIndex:100,pointerEvents:"none"},ref:v,children:[!!d&&x.jsxDEV(aA,{cursor:i==="horizontal"?"ew-resize":"ns-resize",onPaneMouseUp:()=>m(null),onPaneMouseMove:y=>{if(!y.buttons)m(null);else if(d){const w=i==="horizontal"?y.clientX-d.clientX:y.clientY-d.clientY,E=d.offset+w,S=d.index>0?e[d.index-1]:0,T=i==="horizontal"?p.width:p.height,k=Math.min(Math.max(S+u,E),T-u)-e[d.index];for(let D=d.index;D<e.length;++D)e[D]=e[D]+k;r([...e])}}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/resizeView.tsx",lineNumber:65,columnNumber:20},void 0),e.map((y,w)=>x.jsxDEV("div",{style:{...g,top:i==="horizontal"?0:y,left:i==="horizontal"?y:0,pointerEvents:"initial"},onMouseDown:E=>m({clientX:E.clientX,clientY:E.clientY,offset:y,index:w}),children:x.jsxDEV("div",{style:{...UO,background:s}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/resizeView.tsx",lineNumber:93,columnNumber:9},void 0)},w,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/resizeView.tsx",lineNumber:84,columnNumber:14},void 0))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/resizeView.tsx",lineNumber:54,columnNumber:10},void 0)};async function Ab(i){const e=new Image;return i&&(e.src=i,await new Promise((r,s)=>{e.onload=r,e.onerror=r})),e}const nv={backgroundImage:`linear-gradient(45deg, #80808020 25%, transparent 25%),
279
+ linear-gradient(-45deg, #80808020 25%, transparent 25%),
280
+ linear-gradient(45deg, transparent 75%, #80808020 75%),
281
+ linear-gradient(-45deg, transparent 75%, #80808020 75%)`,backgroundSize:"20px 20px",backgroundPosition:"0 0, 0 10px, 10px -10px, -10px 0px",boxShadow:`rgb(0 0 0 / 10%) 0px 1.8px 1.9px,
282
+ rgb(0 0 0 / 15%) 0px 6.1px 6.3px,
283
+ rgb(0 0 0 / 10%) 0px -2px 4px,
284
+ rgb(0 0 0 / 15%) 0px -6.1px 12px,
285
+ rgb(0 0 0 / 25%) 0px 6px 12px`},jO=({diff:i,noTargetBlank:e,hideDetails:r})=>{const[s,o]=Y.useState(i.diff?"diff":"actual"),[l,u]=Y.useState(!1),[d,m]=Y.useState(null),[p,v]=Y.useState("Expected"),[g,y]=Y.useState(null),[w,E]=Y.useState(null),[S,T]=ho();Y.useEffect(()=>{(async()=>{var H,J,ue,q;m(await Ab((H=i.expected)==null?void 0:H.attachment.path)),v(((J=i.expected)==null?void 0:J.title)||"Expected"),y(await Ab((ue=i.actual)==null?void 0:ue.attachment.path)),E(await Ab((q=i.diff)==null?void 0:q.attachment.path))})()},[i]);const k=d&&g&&w,D=k?Math.max(d.naturalWidth,g.naturalWidth,200):500,I=k?Math.max(d.naturalHeight,g.naturalHeight,200):500,z=Math.min(1,(S.width-30)/D),$=Math.min(1,(S.width-50)/D/2),Z=D*z,W=I*z,B={flex:"none",margin:"0 10px",cursor:"pointer",userSelect:"none"};return x.jsxDEV("div",{"data-testid":"test-result-image-mismatch",style:{display:"flex",flexDirection:"column",alignItems:"center",flex:"auto"},ref:T,children:k&&x.jsxDEV(x.Fragment,{children:[x.jsxDEV("div",{"data-testid":"test-result-image-mismatch-tabs",style:{display:"flex",margin:"10px 0 20px"},children:[i.diff&&x.jsxDEV("div",{style:{...B,fontWeight:s==="diff"?600:"initial"},onClick:()=>o("diff"),children:"Diff"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:102,columnNumber:23},void 0),x.jsxDEV("div",{style:{...B,fontWeight:s==="actual"?600:"initial"},onClick:()=>o("actual"),children:"Actual"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:103,columnNumber:9},void 0),x.jsxDEV("div",{style:{...B,fontWeight:s==="expected"?600:"initial"},onClick:()=>o("expected"),children:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:104,columnNumber:9},void 0),x.jsxDEV("div",{style:{...B,fontWeight:s==="sxs"?600:"initial"},onClick:()=>o("sxs"),children:"Side by side"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:105,columnNumber:9},void 0),x.jsxDEV("div",{style:{...B,fontWeight:s==="slider"?600:"initial"},onClick:()=>o("slider"),children:"Slider"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:106,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:101,columnNumber:7},void 0),x.jsxDEV("div",{style:{display:"flex",justifyContent:"center",flex:"auto",minHeight:W+60},children:[i.diff&&s==="diff"&&x.jsxDEV(os,{image:w,alt:"Diff",hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:109,columnNumber:42},void 0),i.diff&&s==="actual"&&x.jsxDEV(os,{image:g,alt:"Actual",hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:110,columnNumber:44},void 0),i.diff&&s==="expected"&&x.jsxDEV(os,{image:d,alt:p,hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:111,columnNumber:46},void 0),i.diff&&s==="slider"&&x.jsxDEV(VO,{expectedImage:d,actualImage:g,hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z,expectedTitle:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:112,columnNumber:44},void 0),i.diff&&s==="sxs"&&x.jsxDEV("div",{style:{display:"flex"},children:[x.jsxDEV(os,{image:d,title:p,hideSize:r,canvasWidth:$*D,canvasHeight:$*I,scale:$},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:114,columnNumber:11},void 0),x.jsxDEV(os,{image:l?w:g,title:l?"Diff":"Actual",onClick:()=>u(!l),hideSize:r,canvasWidth:$*D,canvasHeight:$*I,scale:$},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:115,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:113,columnNumber:41},void 0),!i.diff&&s==="actual"&&x.jsxDEV(os,{image:g,title:"Actual",hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:117,columnNumber:45},void 0),!i.diff&&s==="expected"&&x.jsxDEV(os,{image:d,title:p,hideSize:r,canvasWidth:Z,canvasHeight:W,scale:z},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:118,columnNumber:47},void 0),!i.diff&&s==="sxs"&&x.jsxDEV("div",{style:{display:"flex"},children:[x.jsxDEV(os,{image:d,title:p,canvasWidth:$*D,canvasHeight:$*I,scale:$},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:120,columnNumber:11},void 0),x.jsxDEV(os,{image:g,title:"Actual",canvasWidth:$*D,canvasHeight:$*I,scale:$},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:121,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:119,columnNumber:42},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:108,columnNumber:7},void 0),!r&&x.jsxDEV("div",{style:{alignSelf:"start",lineHeight:"18px",marginLeft:"15px"},children:[x.jsxDEV("div",{children:i.diff&&x.jsxDEV("a",{target:"_blank",href:i.diff.attachment.path,rel:"noreferrer",children:i.diff.attachment.name},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:125,columnNumber:28},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:125,columnNumber:9},void 0),x.jsxDEV("div",{children:x.jsxDEV("a",{target:e?"":"_blank",href:i.actual.attachment.path,rel:"noreferrer",children:i.actual.attachment.name},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:126,columnNumber:14},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:126,columnNumber:9},void 0),x.jsxDEV("div",{children:x.jsxDEV("a",{target:e?"":"_blank",href:i.expected.attachment.path,rel:"noreferrer",children:i.expected.attachment.name},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:127,columnNumber:14},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:127,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:124,columnNumber:24},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:100,columnNumber:18},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:99,columnNumber:10},void 0)},VO=({expectedImage:i,actualImage:e,canvasWidth:r,canvasHeight:s,scale:o,expectedTitle:l,hideSize:u})=>{const d={position:"absolute",top:0,left:0},[m,p]=Y.useState(r/2),v=i.naturalWidth===e.naturalWidth&&i.naturalHeight===e.naturalHeight;return x.jsxDEV("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column",userSelect:"none"},children:[!u&&x.jsxDEV("div",{style:{margin:5},children:[!v&&x.jsxDEV("span",{style:{flex:"none",margin:"0 5px"},children:"Expected "},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:153,columnNumber:21},void 0),x.jsxDEV("span",{children:i.naturalWidth},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:154,columnNumber:7},void 0),x.jsxDEV("span",{style:{flex:"none",margin:"0 5px"},children:"x"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:155,columnNumber:7},void 0),x.jsxDEV("span",{children:i.naturalHeight},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:156,columnNumber:7},void 0),!v&&x.jsxDEV("span",{style:{flex:"none",margin:"0 5px 0 15px"},children:"Actual "},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:157,columnNumber:21},void 0),!v&&x.jsxDEV("span",{children:e.naturalWidth},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:158,columnNumber:21},void 0),!v&&x.jsxDEV("span",{style:{flex:"none",margin:"0 5px"},children:"x"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:159,columnNumber:21},void 0),!v&&x.jsxDEV("span",{children:e.naturalHeight},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:160,columnNumber:21},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:152,columnNumber:19},void 0),x.jsxDEV("div",{style:{position:"relative",width:r,height:s,margin:15,...nv},children:[x.jsxDEV(oA,{orientation:"horizontal",offsets:[m],setOffsets:g=>p(g[0]),resizerColor:"#57606a80",resizerWidth:6},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:163,columnNumber:7},void 0),x.jsxDEV("img",{alt:l,style:{width:i.naturalWidth*o,height:i.naturalHeight*o},draggable:"false",src:i.src},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:169,columnNumber:7},void 0),x.jsxDEV("div",{style:{...d,bottom:0,overflow:"hidden",width:m,...nv},children:x.jsxDEV("img",{alt:"Actual",style:{width:e.naturalWidth*o,height:e.naturalHeight*o},draggable:"false",src:e.src},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:174,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:173,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:162,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:151,columnNumber:10},void 0)},os=({image:i,title:e,alt:r,hideSize:s,canvasWidth:o,canvasHeight:l,scale:u,onClick:d})=>x.jsxDEV("div",{style:{flex:"none",display:"flex",alignItems:"center",flexDirection:"column"},children:[!s&&x.jsxDEV("div",{style:{margin:5},children:[e&&x.jsxDEV("span",{style:{flex:"none",margin:"0 5px"},children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:195,columnNumber:17},void 0),x.jsxDEV("span",{children:i.naturalWidth},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:196,columnNumber:7},void 0),x.jsxDEV("span",{style:{flex:"none",margin:"0 5px"},children:"x"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:197,columnNumber:7},void 0),x.jsxDEV("span",{children:i.naturalHeight},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:198,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:194,columnNumber:19},void 0),x.jsxDEV("div",{style:{display:"flex",flex:"none",width:o,height:l,margin:15,...nv},children:x.jsxDEV("img",{width:i.naturalWidth*u,height:i.naturalHeight*u,alt:e||r,style:{cursor:d?"pointer":"initial"},draggable:"false",src:i.src,onClick:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:201,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:200,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/imageDiffView.tsx",lineNumber:193,columnNumber:10},void 0),$O="modulepreload",HO=function(i,e){return new URL(i,e).href},NT={},IO=function(e,r,s){let o=Promise.resolve();if(r&&r.length>0){let u=function(v){return Promise.all(v.map(g=>Promise.resolve(g).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};const d=document.getElementsByTagName("link"),m=document.querySelector("meta[property=csp-nonce]"),p=(m==null?void 0:m.nonce)||(m==null?void 0:m.getAttribute("nonce"));o=u(r.map(v=>{if(v=HO(v,s),v in NT)return;NT[v]=!0;const g=v.endsWith(".css"),y=g?'[rel="stylesheet"]':"";if(!!s)for(let S=d.length-1;S>=0;S--){const T=d[S];if(T.href===v&&(!g||T.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${v}"]${y}`))return;const E=document.createElement("link");if(E.rel=g?"stylesheet":$O,g||(E.as="script"),E.crossOrigin="",E.href=v,p&&E.setAttribute("nonce",p),document.head.appendChild(E),g)return new Promise((S,T)=>{E.addEventListener("load",S),E.addEventListener("error",()=>T(new Error(`Unable to preload CSS for ${v}`)))})}))}function l(u){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=u,window.dispatchEvent(d),!d.defaultPrevented)throw u}return o.then(u=>{for(const d of u||[])d.status==="rejected"&&l(d.reason);return e().catch(l)})},zO=20,$l=({text:i,highlighter:e,mimeType:r,linkify:s,readOnly:o,highlight:l,revealLine:u,lineNumbers:d,isFocused:m,focusOnChange:p,wrapLines:v,onChange:g,dataTestId:y,placeholder:w})=>{const[E,S]=ho(),[T]=Y.useState(IO(()=>import("./codeMirrorModule-FNMuBzX1.js"),__vite__mapDeps([0,1]),import.meta.url).then(z=>z.default)),k=Y.useRef(null),[D,I]=Y.useState();return Y.useEffect(()=>{(async()=>{var B,H;const z=await T;BO(z);const $=S.current;if(!$)return;const Z=FO(e)||qO(r)||(s?"text/linkified":"");if(k.current&&Z===k.current.cm.getOption("mode")&&!!o===k.current.cm.getOption("readOnly")&&d===k.current.cm.getOption("lineNumbers")&&v===k.current.cm.getOption("lineWrapping")&&w===k.current.cm.getOption("placeholder"))return;(H=(B=k.current)==null?void 0:B.cm)==null||H.getWrapperElement().remove();const W=z($,{value:"",mode:Z,readOnly:!!o,lineNumbers:d,lineWrapping:v,placeholder:w,matchBrackets:!0,autoCloseBrackets:!0,extraKeys:{"Ctrl-F":"findPersistent","Cmd-F":"findPersistent"}});return k.current={cm:W},m&&W.focus(),I(W),W})()},[T,D,S,e,r,s,d,v,o,m,w]),Y.useEffect(()=>{k.current&&k.current.cm.setSize(E.width,E.height)},[E]),Y.useLayoutEffect(()=>{var Z;if(!D)return;let z=!1;if(D.getValue()!==i&&(D.setValue(i),z=!0,p&&(D.execCommand("selectAll"),D.focus())),z||JSON.stringify(l)!==JSON.stringify(k.current.highlight)){for(const H of k.current.highlight||[])D.removeLineClass(H.line-1,"wrap");for(const H of l||[])D.addLineClass(H.line-1,"wrap",`source-line-${H.type}`);for(const H of k.current.widgets||[])D.removeLineWidget(H);for(const H of k.current.markers||[])H.clear();const W=[],B=[];for(const H of l||[]){if(H.type!=="subtle-error"&&H.type!=="error")continue;const J=(Z=k.current)==null?void 0:Z.cm.getLine(H.line-1);if(J){const ue={};ue.title=H.message||"",B.push(D.markText({line:H.line-1,ch:0},{line:H.line-1,ch:H.column||J.length},{className:"source-line-error-underline",attributes:ue}))}if(H.type==="error"){const ue=document.createElement("div");ue.innerHTML=td(H.message||""),ue.className="source-line-error-widget",W.push(D.addLineWidget(H.line,ue,{above:!0,coverGutter:!1}))}}k.current.highlight=l,k.current.widgets=W,k.current.markers=B}typeof u=="number"&&k.current.cm.lineCount()>=u&&D.scrollIntoView({line:Math.max(0,u-1),ch:0},50);let $;return g&&($=()=>g(D.getValue()),D.on("change",$)),()=>{$&&D.off("change",$)}},[D,i,l,u,p,g]),x.jsxDEV("div",{"data-testid":y,className:"cm-wrapper",ref:S,onClick:PO},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/codeMirrorWrapper.tsx",lineNumber:201,columnNumber:10},void 0)};function PO(i){var r;if(!(i.target instanceof HTMLElement))return;let e;i.target.classList.contains("cm-linkified")?e=i.target.textContent:i.target.classList.contains("cm-link")&&((r=i.target.nextElementSibling)!=null&&r.classList.contains("cm-url"))&&(e=i.target.nextElementSibling.textContent.slice(1,-1)),e&&(i.preventDefault(),i.stopPropagation(),window.open(e,"_blank"))}let AT=!1;function BO(i){AT||(AT=!0,i.defineSimpleMode("text/linkified",{start:[{regex:TN,token:"linkified"}]}))}function qO(i){if(i){if(i.includes("javascript")||i.includes("json"))return"javascript";if(i.includes("python"))return"python";if(i.includes("csharp"))return"text/x-csharp";if(i.includes("java"))return"text/x-java";if(i.includes("markdown"))return"markdown";if(i.includes("html")||i.includes("svg"))return"htmlmixed";if(i.includes("css"))return"css"}}function FO(i){if(i)return{javascript:"javascript",jsonl:"javascript",python:"python",csharp:"text/x-csharp",java:"text/x-java",markdown:"markdown",html:"htmlmixed",css:"css",yaml:"yaml"}[i]}function GO(i){return!!i.match(/^(application\/json|application\/.*?\+json|text\/(x-)?json)(;\s*charset=.*)?$/)}function YO(i){return!!i.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/)}const lA=({title:i,children:e,setExpanded:r,expanded:s,expandOnTitleClick:o,className:l})=>{const u=Y.useId(),d=Y.useId(),m=Y.useCallback(()=>r(!s),[s,r]),p=x.jsxDEV("div",{className:At("codicon",s?"codicon-chevron-down":"codicon-chevron-right"),style:{cursor:"pointer",color:"var(--vscode-foreground)",marginLeft:"5px"},onClick:o?void 0:m},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/expandable.tsx",lineNumber:33,columnNumber:19},void 0);return x.jsxDEV("div",{className:At("expandable",s&&"expanded",l),children:[o?x.jsxDEV("div",{id:u,role:"button","aria-expanded":s,"aria-controls":d,className:"expandable-title",onClick:m,children:[p,i]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/expandable.tsx",lineNumber:40,columnNumber:7},void 0):x.jsxDEV("div",{className:"expandable-title",children:[p,i]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/expandable.tsx",lineNumber:50,columnNumber:7},void 0),s&&x.jsxDEV("div",{id:d,"aria-labelledby":u,role:"region",className:"expandable-content",children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/expandable.tsx",lineNumber:54,columnNumber:18},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/expandable.tsx",lineNumber:38,columnNumber:10},void 0)};function cA(i){const e=[];let r=0,s;for(;(s=TN.exec(i))!==null;){const l=i.substring(r,s.index);l&&e.push(l);const u=s[0];e.push(XO(u)),r=s.index+u.length}const o=i.substring(r);return o&&e.push(o),e}function XO(i){let e=i;return e.startsWith("www.")&&(e="https://"+e),x.jsxDEV("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/renderUtils.tsx",lineNumber:45,columnNumber:10},this)}const uA=Y.createContext(void 0),hs=()=>Y.useContext(uA),JO=({attachment:i,reveal:e})=>{const r=hs(),[s,o]=Y.useState(!1),[l,u]=Y.useState(null),[d,m]=Y.useState(null),[p,v]=w3(),g=Y.useRef(null),y=YO(i.contentType),w=!!i.sha1||!!i.path;Y.useEffect(()=>{var T;if(e)return(T=g.current)==null||T.scrollIntoView({behavior:"smooth"}),v()},[e,v]),Y.useEffect(()=>{s&&l===null&&d===null&&(m("Loading ..."),fetch(wm(r,i)).then(T=>T.text()).then(T=>{u(T),m(null)}).catch(T=>{m("Failed to load: "+T.message)}))},[r,s,l,d,i]);const E=Y.useMemo(()=>{const T=l?l.split(`
286
+ `).length:0;return Math.min(Math.max(5,T),20)*zO},[l]),S=x.jsxDEV("span",{style:{marginLeft:5},ref:g,"aria-label":i.name,children:[x.jsxDEV("span",{children:cA(i.name)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:71,columnNumber:5},void 0),w&&x.jsxDEV("a",{style:{marginLeft:5},href:Gh(r,i),children:"download"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:72,columnNumber:20},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:70,columnNumber:17},void 0);return!y||!w?x.jsxDEV("div",{style:{marginLeft:20},children:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:76,columnNumber:12},void 0):x.jsxDEV("div",{className:At(p&&"yellow-flash"),children:[x.jsxDEV(lA,{title:S,expanded:s,setExpanded:o,expandOnTitleClick:!0,children:d&&x.jsxDEV("i",{children:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:80,columnNumber:23},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:79,columnNumber:5},void 0),s&&l!==null&&x.jsxDEV("div",{className:"vbox",style:{height:E},children:x.jsxDEV($l,{text:l,readOnly:!0,mimeType:i.contentType,linkify:!0,lineNumbers:!0,wrapLines:!1},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:83,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:82,columnNumber:45},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:78,columnNumber:10},void 0)},KO=({revealedAttachmentCallId:i})=>{const e=hs(),{diffMap:r,screenshots:s,attachments:o}=Y.useMemo(()=>{const l=new Set((e==null?void 0:e.visibleAttachments)??[]),u=new Set,d=new Map;for(const m of l){if(!m.path&&!m.sha1)continue;const p=m.name.match(/^(.*)-(expected|actual|diff)\.png$/);if(p){const v=p[1],g=p[2],y=d.get(v)||{expected:void 0,actual:void 0,diff:void 0};y[g]=m,d.set(v,y),l.delete(m)}else m.contentType.startsWith("image/")&&(u.add(m),l.delete(m))}return{diffMap:d,attachments:l,screenshots:u}},[e]);return!r.size&&!s.size&&!o.size?x.jsxDEV(mo,{text:"No attachments"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:124,columnNumber:12},void 0):x.jsxDEV("div",{className:"attachments-tab",children:[[...r.values()].map(({expected:l,actual:u,diff:d})=>x.jsxDEV(x.Fragment,{children:[l&&u&&x.jsxDEV("div",{className:"attachments-section",children:"Image diff"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:129,columnNumber:32},void 0),l&&u&&x.jsxDEV(jO,{noTargetBlank:!0,diff:{name:"Image diff",expected:{attachment:{...l,path:Gh(e,l)},title:"Expected"},actual:{attachment:{...u,path:Gh(e,u)}},diff:d?{attachment:{...d,path:Gh(e,d)}}:void 0}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:130,columnNumber:32},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:128,columnNumber:14},void 0)),s.size?x.jsxDEV("div",{className:"attachments-section",children:"Screenshots"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:138,columnNumber:25},void 0):void 0,[...s.values()].map((l,u)=>{const d=wm(e,l);return x.jsxDEV("div",{className:"attachment-item",children:[x.jsxDEV("div",{children:x.jsxDEV("img",{draggable:"false",src:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:142,columnNumber:14},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:142,columnNumber:9},void 0),x.jsxDEV("div",{children:x.jsxDEV("a",{target:"_blank",href:d,rel:"noreferrer",children:l.name},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:143,columnNumber:14},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:143,columnNumber:9},void 0)]},`screenshot-${u}`,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:141,columnNumber:14},void 0)}),o.size?x.jsxDEV("div",{className:"attachments-section",children:"Attachments"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:146,columnNumber:25},void 0):void 0,[...o.values()].map((l,u)=>x.jsxDEV("div",{className:"attachment-item",children:x.jsxDEV(JO,{attachment:l,reveal:i&&l.callId===i.callId?i:void 0},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:149,columnNumber:9},void 0)},WO(l,u),!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:148,columnNumber:14},void 0))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/attachmentsTab.tsx",lineNumber:126,columnNumber:10},void 0)};function wm(i,e){return i&&e.sha1?i.createRelativeUrl(`sha1/${e.sha1}`):`file?path=${encodeURIComponent(e.path)}`}function Gh(i,e){let r=e.contentType?`&dn=${encodeURIComponent(e.name)}`:"";return e.contentType&&(r+=`&dct=${encodeURIComponent(e.contentType)}`),wm(i,e)+r}function WO(i,e){return e+"-"+(i.sha1?"sha1-"+i.sha1:"path-"+i.path)}const QO=`
287
+ # Instructions
288
+
289
+ - Following Playwright test failed.
290
+ - Explain why, be concise, respect Playwright best practices.
291
+ - Provide a snippet of code with the fix, if possible.
292
+ `.trimStart();async function ZO({testInfo:i,metadata:e,errorContext:r,errors:s,buildCodeFrame:o,stdout:l,stderr:u}){var g;const d=new Set(s.filter(y=>y.message&&!y.message.includes(`
293
+ `)).map(y=>y.message));for(const y of s)for(const w of d.keys())(g=y.message)!=null&&g.includes(w)&&d.delete(w);const m=s.filter(y=>!(!y.message||!y.message.includes(`
294
+ `)&&!d.has(y.message)));if(!m.length)return;const p=[QO,"# Test info","",i];l&&p.push("","# Stdout","","```",Yh(l),"```"),u&&p.push("","# Stderr","","```",Yh(u),"```"),p.push("","# Error details");for(const y of m)p.push("","```",Yh(y.message||""),"```");r&&p.push(r);const v=await o(m[m.length-1]);return v&&p.push("","# Test source","","```ts",v,"```"),e!=null&&e.gitDiff&&p.push("","# Local changes","","```diff",e.gitDiff,"```"),p.join(`
295
+ `)}const e5=new RegExp("([\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)|(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~])))","g");function Yh(i){return i.replace(e5,"")}const t5=vm,n5=({stack:i,setSelectedFrame:e,selectedFrame:r})=>{const s=i||[];return x.jsxDEV(t5,{name:"stack-trace",ariaLabel:"Stack trace",items:s,selectedItem:s[r],render:o=>{const l=o.file[1]===":"?"\\":"/";return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("span",{className:"stack-trace-frame-function",children:o.function||"(anonymous)"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/stackTrace.tsx",lineNumber:38,columnNumber:9},void 0),x.jsxDEV("span",{className:"stack-trace-frame-location",children:o.file.split(l).pop()},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/stackTrace.tsx",lineNumber:41,columnNumber:9},void 0),x.jsxDEV("span",{className:"stack-trace-frame-line",children:":"+o.line},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/stackTrace.tsx",lineNumber:44,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/stackTrace.tsx",lineNumber:37,columnNumber:14},void 0)},onSelected:o=>e(s.indexOf(o))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/stackTrace.tsx",lineNumber:30,columnNumber:10},void 0)},Dv=({noShadow:i,children:e,noMinHeight:r,className:s,sidebarBackground:o,onClick:l})=>x.jsxDEV("div",{className:At("toolbar",i&&"no-shadow",r&&"no-min-height",s,o&&"toolbar-sidebar-background"),onClick:l,children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/toolbar.tsx",lineNumber:37,columnNumber:10},void 0);function r5(i,e,r,s,o){const l=hs();return em(async()=>{var w,E,S,T;const u=i==null?void 0:i[e],d=u!=null&&u.file?u:o;if(!d)return{source:{file:"",errors:[],content:void 0},targetLine:0,highlight:[]};const m=d.file;let p=r.get(m);p||(p={errors:((w=o==null?void 0:o.source)==null?void 0:w.errors)||[],content:(E=o==null?void 0:o.source)==null?void 0:E.content},r.set(m,p));const v=(d==null?void 0:d.line)||((S=p.errors[0])==null?void 0:S.line)||0,g=s&&m.startsWith(s)?m.substring(s.length+1):m,y=p.errors.map(k=>({type:"error",line:k.line,message:k.message}));if(y.push({line:v,type:"running"}),((T=o==null?void 0:o.source)==null?void 0:T.content)!==void 0)p.content=o.source.content;else if(p.content===void 0||d===o){const k=await dA(m);try{let D=l?await fetch(l.createRelativeUrl(`sha1/src@${k}.txt`)):void 0;(!D||D.status===404)&&(D=await fetch(`file?path=${encodeURIComponent(m)}`)),D.status>=400?p.content="":p.content=await D.text()}catch{p.content=`<Unable to read "${m}">`}}return{model:l,source:p,highlight:y,targetLine:v,fileName:g,location:d}},[i,e,s,o],{source:{errors:[],content:"Loading…"},highlight:[]})}const i5=({stack:i,sources:e,rootDir:r,fallbackLocation:s,stackFrameLocation:o,onOpenExternally:l})=>{const[u,d]=Y.useState(),[m,p]=Y.useState(0);Y.useEffect(()=>{u!==i&&(d(i),p(0))},[i,u,d,p]);const{source:v,highlight:g,targetLine:y,fileName:w,location:E}=r5(i,m,e,r,s),S=Y.useCallback(()=>{E&&(l?l(E):window.location.href=`vscode://file//${E.file}:${E.line}`)},[l,E]),T=((i==null?void 0:i.length)??0)>1,k=s5(w),D=k.endsWith(".md")?"markdown":"javascript";return x.jsxDEV(nm,{sidebarSize:200,orientation:o==="bottom"?"vertical":"horizontal",sidebarHidden:!T,main:x.jsxDEV("div",{className:"vbox","data-testid":"source-code",children:[w&&x.jsxDEV(Dv,{children:[x.jsxDEV("div",{className:"source-tab-file-name",title:w,children:x.jsxDEV("div",{children:k},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:115,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:114,columnNumber:9},void 0),x.jsxDEV(kv,{description:"Copy filename",value:k},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:117,columnNumber:9},void 0),E&&x.jsxDEV(Pn,{icon:"link-external",title:"Open in VS Code",onClick:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:118,columnNumber:22},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:113,columnNumber:21},void 0),x.jsxDEV($l,{text:v.content||"",highlighter:D,highlight:g,revealLine:y,readOnly:!0,lineNumbers:!0,dataTestId:"source-code-mirror"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:112,columnNumber:11},void 0),sidebar:x.jsxDEV(n5,{stack:i,selectedFrame:m,setSelectedFrame:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:122,columnNumber:14},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/sourceTab.tsx",lineNumber:108,columnNumber:10},void 0)};async function dA(i){const e=new TextEncoder().encode(i),r=await crypto.subtle.digest("SHA-1",e),s=[],o=new DataView(r);for(let l=0;l<o.byteLength;l+=1){const u=o.getUint8(l).toString(16).padStart(2,"0");s.push(u)}return s.join("")}function s5(i){if(!i)return"";const e=i!=null&&i.includes("/")?"/":"\\";return(i==null?void 0:i.split(e).pop())??""}const a5=({prompt:i})=>x.jsxDEV(Fh,{value:i,description:"Copy prompt",copiedDescription:x.jsxDEV(x.Fragment,{children:["Copied ",x.jsxDEV("span",{className:"codicon codicon-copy",style:{marginLeft:"5px"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:37,columnNumber:35},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:37,columnNumber:26},void 0),style:{width:"120px",justifyContent:"center"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:34,columnNumber:5},void 0);function o5(i){return Y.useMemo(()=>{if(!i)return{errors:new Map};const e=new Map;for(const r of i.errorDescriptors)e.set(r.message,r);return{errors:e}},[i])}function l5({message:i,error:e,sdkLanguage:r,revealInSource:s}){var d;let o,l;const u=(d=e.stack)==null?void 0:d[0];return u&&(o=u.file.replace(/.*[/\\](.*)/,"$1")+":"+u.line,l=u.file+":"+u.line),x.jsxDEV("div",{style:{display:"flex",flexDirection:"column",overflowX:"clip"},children:[x.jsxDEV("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)",flex:0},children:[e.action&&Cv(e.action,{sdkLanguage:r}),o&&x.jsxDEV("div",{className:"action-location",children:["@ ",x.jsxDEV("span",{title:l,onClick:()=>s(e),children:o},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:79,columnNumber:11},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:78,columnNumber:20},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:69,columnNumber:5},this),x.jsxDEV(LO,{error:i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:83,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:68,columnNumber:10},this)}const c5=({errorsModel:i,sdkLanguage:e,revealInSource:r,wallTime:s,testRunMetadata:o})=>{const l=hs(),u=em(async()=>{const p=l==null?void 0:l.attachments.find(v=>v.name==="error-context");if(p)return await fetch(wm(l,p)).then(v=>v.text())},[l],void 0),d=Y.useCallback(async p=>{var w;const v=(w=p.stack)==null?void 0:w[0];if(!v)return;let g=l?await fetch(l.createRelativeUrl(`sha1/src@${await dA(v.file)}.txt`)):void 0;if((!g||g.status===404)&&(g=await fetch(`file?path=${encodeURIComponent(v.file)}`)),g.status>=400)return;const y=await g.text();return u5({source:y,message:Yh(p.message).split(`
296
+ `)[0]||void 0,location:v,linesAbove:100,linesBelow:100})},[l]),m=em(()=>ZO({testInfo:(l==null?void 0:l.title)??"",metadata:o,errorContext:u,errors:(l==null?void 0:l.errorDescriptors)??[],buildCodeFrame:d}),[u,o,l,d],void 0);return i.errors.size?x.jsxDEV("div",{className:"fill",style:{overflow:"auto"},children:[x.jsxDEV("span",{style:{position:"absolute",right:"5px",top:"5px",zIndex:1},children:m&&x.jsxDEV(a5,{prompt:m},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:143,columnNumber:18},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:142,columnNumber:5},void 0),[...i.errors.entries()].map(([p,v])=>{const g=`error-${s}-${p}`;return x.jsxDEV(l5,{message:p,error:v,revealInSource:r,sdkLanguage:e},g,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:147,columnNumber:14},void 0)})]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:141,columnNumber:10},void 0):x.jsxDEV(mo,{text:"No errors"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/errorsTab.tsx",lineNumber:139,columnNumber:12},void 0)};function u5({source:i,message:e,location:r,linesAbove:s,linesBelow:o}){const l=i.split(`
297
+ `).slice(),u=Math.max(0,r.line-s-1),d=Math.min(l.length,r.line+o),m=l.slice(u,d),p=String(d).length,v=m.map((g,y)=>`${u+y+1===r.line?"> ":" "}${(u+y+1).toString().padEnd(p," ")} | ${g}`);return e&&v.splice(r.line-u,0,`${" ".repeat(p+2)} | ${" ".repeat(r.column-2)} ^ ${e}`),v.join(`
298
+ `)}const d5=vm;function f5(i,e){const{entries:r}=Y.useMemo(()=>{if(!i)return{entries:[]};const o=[];function l(d){var v,g,y,w,E,S;const m=o[o.length-1];m&&((v=d.browserMessage)==null?void 0:v.bodyString)===((g=m.browserMessage)==null?void 0:g.bodyString)&&((y=d.browserMessage)==null?void 0:y.location)===((w=m.browserMessage)==null?void 0:w.location)&&d.browserError===m.browserError&&((E=d.nodeMessage)==null?void 0:E.html)===((S=m.nodeMessage)==null?void 0:S.html)&&d.isError===m.isError&&d.isWarning===m.isWarning&&d.timestamp-m.timestamp<1e3?m.repeat++:o.push({...d,repeat:1})}const u=[...i.events,...i.stdio].sort((d,m)=>{const p="time"in d?d.time:d.timestamp,v="time"in m?m.time:m.timestamp;return p-v});for(const d of u){if(d.type==="console"){const m=d.args&&d.args.length?m5(d.args):fA(d.text),p=d.location.url,g=`${p?p.substring(p.lastIndexOf("/")+1):"<anonymous>"}:${d.location.lineNumber}`;l({browserMessage:{body:m,bodyString:d.text,location:g},isError:d.messageType==="error",isWarning:d.messageType==="warning",timestamp:d.time})}if(d.type==="event"&&d.method==="pageError"&&l({browserError:d.params.error,isError:!0,isWarning:!1,timestamp:d.time}),d.type==="stderr"||d.type==="stdout"){let m="";d.text&&(m=td(d.text.trim())||""),d.base64&&(m=td(atob(d.base64).trim())||""),l({nodeMessage:{html:m},isError:d.type==="stderr",isWarning:!1,timestamp:d.timestamp})}}return{entries:o}},[i]);return{entries:Y.useMemo(()=>e?r.filter(o=>o.timestamp>=e.minimum&&o.timestamp<=e.maximum):r,[r,e])}}const h5=({consoleModel:i,boundaries:e,onEntryHovered:r,onAccepted:s})=>i.entries.length?x.jsxDEV("div",{className:"console-tab",children:x.jsxDEV(d5,{name:"console",onAccepted:s,onHighlighted:o=>r==null?void 0:r(o?i.entries.indexOf(o):void 0),items:i.entries,isError:o=>o.isError,isWarning:o=>o.isWarning,render:o=>{const l=Nn(o.timestamp-e.minimum),u=x.jsxDEV("span",{className:"console-time",children:l},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:149,columnNumber:34},void 0),d=o.isError?"status-error":o.isWarning?"status-warning":"status-none",m=o.browserMessage||o.browserError?x.jsxDEV("span",{className:At("codicon","codicon-browser",d),title:"Browser message"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:151,columnNumber:76},void 0):x.jsxDEV("span",{className:At("codicon","codicon-file",d),title:"Runner message"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:151,columnNumber:176},void 0);let p,v,g,y;const{browserMessage:w,browserError:E,nodeMessage:S}=o;if(w&&(p=w.location,v=w.body),E){const{error:T,value:k}=E;T?(v=T.message,y=T.stack):v=String(k)}return S&&(g=S.html),x.jsxDEV("div",{className:"console-line",children:[u,m,p&&x.jsxDEV("span",{className:"console-location",children:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:179,columnNumber:28},void 0),o.repeat>1&&x.jsxDEV("span",{className:"console-repeat",children:o.repeat},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:180,columnNumber:32},void 0),v&&x.jsxDEV("span",{className:"console-line-message",children:v},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:181,columnNumber:27},void 0),g&&x.jsxDEV("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:g}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:182,columnNumber:32},void 0),y&&x.jsxDEV("div",{className:"console-stack",children:y},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:183,columnNumber:28},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:176,columnNumber:16},void 0)}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:140,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:139,columnNumber:10},void 0):x.jsxDEV(mo,{text:"No console entries"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:137,columnNumber:12},void 0);function m5(i){if(i.length===1)return fA(i[0].preview);const e=typeof i[0].value=="string"&&i[0].value.includes("%"),r=e?i[0].value:"",s=e?i.slice(1):i;let o=0;const l=/%([%sdifoOc])/g;let u;const d=[];let m=[];d.push(x.jsxDEV("span",{children:m},d.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:203,columnNumber:18},this));let p=0;for(;(u=l.exec(r))!==null;){const v=r.substring(p,u.index);m.push(x.jsxDEV("span",{children:v},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:207,columnNumber:17},this)),p=u.index+2;const g=u[0][1];if(g==="%")m.push(x.jsxDEV("span",{children:"%"},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:211,columnNumber:19},this));else if(g==="s"||g==="o"||g==="O"||g==="d"||g==="i"||g==="f"){const y=s[o++],w={};typeof(y==null?void 0:y.value)!="string"&&(w.color="var(--vscode-debugTokenExpression-number)"),m.push(x.jsxDEV("span",{style:w,children:(y==null?void 0:y.preview)||""},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:217,columnNumber:19},this))}else if(g==="c"){m=[];const y=s[o++],w=y?p5(y.preview):{};d.push(x.jsxDEV("span",{style:w,children:m},d.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:222,columnNumber:22},this))}}for(p<r.length&&m.push(x.jsxDEV("span",{children:r.substring(p)},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:226,columnNumber:17},this));o<s.length;o++){const v=s[o],g={};m.length&&m.push(x.jsxDEV("span",{children:" "},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:231,columnNumber:19},this)),typeof(v==null?void 0:v.value)!="string"&&(g.color="var(--vscode-debugTokenExpression-number)"),m.push(x.jsxDEV("span",{style:g,children:(v==null?void 0:v.preview)||""},m.length+1,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:234,columnNumber:17},this))}return d}function fA(i){return[x.jsxDEV("span",{dangerouslySetInnerHTML:{__html:td(i.trim())}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/consoleTab.tsx",lineNumber:241,columnNumber:11},this)]}function p5(i){try{const e={},r=i.split(";");for(const s of r){const o=s.trim();if(!o)continue;let[l,u]=o.split(":");if(l=l.trim(),u=u.trim(),!g5(l))continue;const d=l.replace(/-([a-z])/g,m=>m[1].toUpperCase());e[d]=u}return e}catch{return{}}}function g5(i){return["background","border","color","font","line","margin","padding","text"].some(r=>i.startsWith(r))}const rv=({tabs:i,selectedTab:e,setSelectedTab:r,leftToolbar:s,rightToolbar:o,dataTestId:l,mode:u})=>{const d=Y.useId();return e||(e=i[0].id),u||(u="default"),x.jsxDEV("div",{className:"tabbed-pane","data-testid":l,children:x.jsxDEV("div",{className:"vbox",children:[x.jsxDEV(Dv,{children:[s&&x.jsxDEV("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...s]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:48,columnNumber:26},void 0),u==="default"&&x.jsxDEV("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:[...i.map(m=>x.jsxDEV(hA,{id:m.id,ariaControls:`${d}-${m.id}`,title:m.title,count:m.count,errorCount:m.errorCount,selected:e===m.id,onSelect:r},m.id,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:53,columnNumber:13},void 0))]},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:51,columnNumber:32},void 0),u==="select"&&x.jsxDEV("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},role:"tablist",children:x.jsxDEV("select",{style:{width:"100%",background:"none",cursor:"pointer"},value:e,onChange:m=>{r==null||r(i[m.currentTarget.selectedIndex].id)},children:i.map(m=>{let p="";return m.count&&(p=` (${m.count})`),m.errorCount&&(p=` (${m.errorCount})`),x.jsxDEV("option",{value:m.id,role:"tab","aria-controls":`${d}-${m.id}`,children:[m.title,p]},m.id,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:75,columnNumber:22},void 0)})},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:66,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:65,columnNumber:31},void 0),o&&x.jsxDEV("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...o]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:79,columnNumber:26},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:47,columnNumber:7},void 0),i.map(m=>{const p="tab-content tab-"+m.id;if(m.component)return x.jsxDEV("div",{id:`${d}-${m.id}`,role:"tabpanel","aria-label":m.title,className:p,style:{display:e===m.id?"inherit":"none"},children:m.component},m.id,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:87,columnNumber:20},void 0);if(e===m.id)return x.jsxDEV("div",{id:`${d}-${m.id}`,role:"tabpanel","aria-label":m.title,className:p,children:m.render()},m.id,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:89,columnNumber:20},void 0)})]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:46,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:45,columnNumber:10},void 0)},hA=({id:i,title:e,count:r,errorCount:s,selected:o,onSelect:l,ariaControls:u})=>x.jsxDEV("div",{className:At("tabbed-pane-tab",o&&"selected"),onClick:()=>l==null?void 0:l(i),role:"tab",title:e,"aria-controls":u,"aria-selected":o,children:[x.jsxDEV("div",{className:"tabbed-pane-tab-label",children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:111,columnNumber:5},void 0),!!r&&x.jsxDEV("div",{className:"tabbed-pane-tab-counter",children:r},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:112,columnNumber:17},void 0),!!s&&x.jsxDEV("div",{className:"tabbed-pane-tab-counter error",children:s},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:113,columnNumber:22},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/tabbedPane.tsx",lineNumber:105,columnNumber:10},void 0);async function y5(i,e){const r=navigator.platform.includes("Win")?"win":"unix";let s=[];const o=new Set(["accept-encoding","host","method","path","scheme","version","authority","protocol"]);function l(y){return'^"'+y.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/[^a-zA-Z0-9\s_\-:=+~'\/.',?;()*`]/g,"^$&").replace(/%(?=[a-zA-Z0-9_])/g,"%^").replace(/[^ -~\r\n]/g," ").replace(/\r?\n|\r/g,`^
299
+
300
+ `)+'^"'}function u(y){function w(E){let T=E.charCodeAt(0).toString(16);for(;T.length<4;)T="0"+T;return"\\u"+T}return/[\0-\x1F\x7F-\x9F!]|\'/.test(y)?"$'"+y.replace(/\\/g,"\\\\").replace(/\'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\0-\x1F\x7F-\x9F!]/g,w)+"'":"'"+y+"'"}const d=r==="win"?l:u;s.push(d(e.request.url).replace(/[[{}\]]/g,"\\$&"));let m="GET";const p=[],v=await mA(i,e);v&&(p.push("--data-raw "+d(v)),o.add("content-length"),m="POST"),e.request.method!==m&&s.push("-X "+d(e.request.method));const g=e.request.headers;for(let y=0;y<g.length;y++){const w=g[y],E=w.name.replace(/^:/,"");if(o.has(E.toLowerCase()))continue;const S=w.value;S.trim()?E.toLowerCase()==="cookie"?s.push("-b "+d(S)):s.push("-H "+d(E+": "+S)):s.push("-H "+d(E+";"))}return s=s.concat(p),"curl "+s.join(s.length>=3?r==="win"?` ^
301
+ `:` \\
302
+ `:" ")}async function b5(i,e,r=0){const s=new Set(["method","path","scheme","version","accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via","user-agent"]),o=new Set(["cookie","authorization"]),l=JSON.stringify(e.request.url),u=e.request.headers,d=u.reduce((S,T)=>{const k=T.name;return!s.has(k.toLowerCase())&&!k.includes(":")&&S.append(k,T.value),S},new Headers),m={};for(const S of d)m[S[0]]=S[1];const p=e.request.cookies.length||u.some(({name:S})=>o.has(S.toLowerCase()))?"include":"omit",v=u.find(({name:S})=>S.toLowerCase()==="referer"),g=v?v.value:void 0,y=await mA(i,e),w={headers:Object.keys(m).length?m:void 0,referrer:g,body:y,method:e.request.method,mode:"cors"};if(r===1){const S=u.find(k=>k.name.toLowerCase()==="cookie"),T={};delete w.mode,S&&(T.cookie=S.value),g&&(delete w.referrer,T.Referer=g),Object.keys(T).length&&(w.headers={...m,...T})}else w.credentials=p;const E=JSON.stringify(w,null,2);return`fetch(${l}, ${E});`}async function mA(i,e){var r,s;return i&&((r=e.request.postData)!=null&&r._sha1)?await fetch(i.createRelativeUrl(`sha1/${e.request.postData._sha1}`)).then(o=>o.text()):(s=e.request.postData)==null?void 0:s.text}class v5{generatePlaywrightRequestCall(e,r){let s=e.method.toLowerCase();const o=new URL(e.url),l=`${o.origin}${o.pathname}`,u={};["delete","get","head","post","put","patch"].includes(s)||(u.method=s,s="fetch"),o.searchParams.size&&(u.params=Object.fromEntries(o.searchParams.entries())),r&&(u.data=r),e.headers.length&&(u.headers=Object.fromEntries(e.headers.map(p=>[p.name,p.value])));const d=[`'${l}'`];return Object.keys(u).length>0&&d.push(this.prettyPrintObject(u)),`await page.request.${s}(${d.join(", ")});`}prettyPrintObject(e,r=2,s=0){if(e===null)return"null";if(e===void 0)return"undefined";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const d=" ".repeat(s*r),m=" ".repeat((s+1)*r);return`[
303
+ ${e.map(v=>`${m}${this.prettyPrintObject(v,r,s+1)}`).join(`,
304
+ `)}
305
+ ${d}]`}if(Object.keys(e).length===0)return"{}";const o=" ".repeat(s*r),l=" ".repeat((s+1)*r);return`{
306
+ ${Object.entries(e).map(([d,m])=>{const p=this.prettyPrintObject(m,r,s+1),v=/^[a-zA-Z_$][a-zA-Z0-9_$]*$/.test(d)?d:this.stringLiteral(d);return`${l}${v}: ${p}`}).join(`,
307
+ `)}
308
+ ${o}}`}stringLiteral(e){return e=e.replace(/\\/g,"\\\\").replace(/'/g,"\\'"),e.includes(`
309
+ `)||e.includes("\r")||e.includes(" ")?"`"+e+"`":`'${e}'`}}class w5{generatePlaywrightRequestCall(e,r){const s=new URL(e.url),l=[`"${`${s.origin}${s.pathname}`}"`];let u=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(u)||(l.push(`method="${u}"`),u="fetch"),s.searchParams.size&&l.push(`params=${this.prettyPrintObject(Object.fromEntries(s.searchParams.entries()))}`),r&&l.push(`data=${this.prettyPrintObject(r)}`),e.headers.length&&l.push(`headers=${this.prettyPrintObject(Object.fromEntries(e.headers.map(m=>[m.name,m.value])))}`);const d=l.length===1?l[0]:`
310
+ ${l.map(m=>this.indent(m,2)).join(`,
311
+ `)}
312
+ `;return`await page.request.${u}(${d})`}indent(e,r){return e.split(`
313
+ `).map(s=>" ".repeat(r)+s).join(`
314
+ `)}prettyPrintObject(e,r=2,s=0){if(e===null||e===void 0)return"None";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):typeof e=="boolean"?e?"True":"False":String(e);if(Array.isArray(e)){if(e.length===0)return"[]";const d=" ".repeat(s*r),m=" ".repeat((s+1)*r);return`[
315
+ ${e.map(v=>`${m}${this.prettyPrintObject(v,r,s+1)}`).join(`,
316
+ `)}
317
+ ${d}]`}if(Object.keys(e).length===0)return"{}";const o=" ".repeat(s*r),l=" ".repeat((s+1)*r);return`{
318
+ ${Object.entries(e).map(([d,m])=>{const p=this.prettyPrintObject(m,r,s+1);return`${l}${this.stringLiteral(d)}: ${p}`}).join(`,
319
+ `)}
320
+ ${o}}`}stringLiteral(e){return JSON.stringify(e)}}class _5{generatePlaywrightRequestCall(e,r){const s=new URL(e.url),o=`${s.origin}${s.pathname}`,l={},u=[];let d=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(d)||(l.Method=d,d="fetch"),s.searchParams.size&&(l.Params=Object.fromEntries(s.searchParams.entries())),r&&(l.Data=r),e.headers.length&&(l.Headers=Object.fromEntries(e.headers.map(v=>[v.name,v.value])));const m=[`"${o}"`];return Object.keys(l).length>0&&m.push(this.prettyPrintObject(l)),`${u.join(`
321
+ `)}${u.length?`
322
+ `:""}await request.${this.toFunctionName(d)}(${m.join(", ")});`}toFunctionName(e){return e[0].toUpperCase()+e.slice(1)+"Async"}prettyPrintObject(e,r=2,s=0){if(e===null||e===void 0)return"null";if(typeof e!="object")return typeof e=="string"?this.stringLiteral(e):typeof e=="boolean"?e?"true":"false":String(e);if(Array.isArray(e)){if(e.length===0)return"new object[] {}";const d=" ".repeat(s*r),m=" ".repeat((s+1)*r);return`new object[] {
323
+ ${e.map(v=>`${m}${this.prettyPrintObject(v,r,s+1)}`).join(`,
324
+ `)}
325
+ ${d}}`}if(Object.keys(e).length===0)return"new {}";const o=" ".repeat(s*r),l=" ".repeat((s+1)*r);return`new() {
326
+ ${Object.entries(e).map(([d,m])=>{const p=this.prettyPrintObject(m,r,s+1),v=s===0?d:`[${this.stringLiteral(d)}]`;return`${l}${v} = ${p}`}).join(`,
327
+ `)}
328
+ ${o}}`}stringLiteral(e){return JSON.stringify(e)}}class S5{generatePlaywrightRequestCall(e,r){const s=new URL(e.url),o=[`"${s.origin}${s.pathname}"`],l=[];let u=e.method.toLowerCase();["delete","get","head","post","put","patch"].includes(u)||(l.push(`setMethod("${u}")`),u="fetch");for(const[d,m]of s.searchParams)l.push(`setQueryParam(${this.stringLiteral(d)}, ${this.stringLiteral(m)})`);r&&l.push(`setData(${this.stringLiteral(r)})`);for(const d of e.headers)l.push(`setHeader(${this.stringLiteral(d.name)}, ${this.stringLiteral(d.value)})`);return l.length>0&&o.push(`RequestOptions.create()
329
+ .${l.join(`
330
+ .`)}
331
+ `),`request.${u}(${o.join(", ")});`}stringLiteral(e){return JSON.stringify(e)}}function E5(i){if(i==="javascript")return new v5;if(i==="python")return new w5;if(i==="csharp")return new _5;if(i==="java")return new S5;throw new Error("Unsupported language: "+i)}const x5=({resource:i,sdkLanguage:e,startTimeOffset:r,onClose:s})=>{const[o,l]=Y.useState("headers"),u=hs(),d=em(async()=>{if(u&&i.request.postData){const m=i.request.headers.find(v=>v.name.toLowerCase()==="content-type"),p=m?m.value:"";if(i.request.postData._sha1){const v=await fetch(u.createRelativeUrl(`sha1/${i.request.postData._sha1}`));return{text:iv(await v.text(),p),mimeType:p}}else return{text:iv(i.request.postData.text,p),mimeType:p}}else return null},[i],null);return x.jsxDEV(rv,{leftToolbar:[x.jsxDEV(Pn,{icon:"close",title:"Close",onClick:s},"close",!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:61,columnNumber:19},void 0)],rightToolbar:[x.jsxDEV(T5,{requestBody:d,resource:i,sdkLanguage:e},"dropdown",!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:62,columnNumber:20},void 0)],tabs:[{id:"headers",title:"Headers",render:()=>x.jsxDEV(N5,{resource:i,startTimeOffset:r},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:67,columnNumber:23},void 0)},{id:"payload",title:"Payload",render:()=>x.jsxDEV(A5,{resource:i,requestBody:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:72,columnNumber:23},void 0)},{id:"response",title:"Response",render:()=>x.jsxDEV(C5,{resource:i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:77,columnNumber:23},void 0)}],selectedTab:o,setSelectedTab:l},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:60,columnNumber:10},void 0)},T5=({resource:i,sdkLanguage:e,requestBody:r})=>{const s=hs(),o=x.jsxDEV(x.Fragment,{children:[x.jsxDEV("span",{className:"codicon codicon-check",style:{marginRight:"5px"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:91,columnNumber:31},void 0)," Copied "]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:91,columnNumber:29},void 0),l=async()=>E5(e).generatePlaywrightRequestCall(i.request,r==null?void 0:r.text);return x.jsxDEV("div",{className:"copy-request-dropdown",children:[x.jsxDEV(Pn,{className:"copy-request-dropdown-toggle",children:[x.jsxDEV("span",{className:"codicon codicon-copy",style:{marginRight:"5px"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:96,columnNumber:9},void 0),"Copy request",x.jsxDEV("span",{className:"codicon codicon-chevron-down",style:{marginLeft:"5px"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:98,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:95,columnNumber:7},void 0),x.jsxDEV("div",{className:"copy-request-dropdown-menu",children:[x.jsxDEV(Fh,{description:"Copy as cURL",copiedDescription:o,value:()=>y5(s,i)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:102,columnNumber:9},void 0),x.jsxDEV(Fh,{description:"Copy as Fetch",copiedDescription:o,value:()=>b5(s,i)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:103,columnNumber:9},void 0),x.jsxDEV(Fh,{description:"Copy as Playwright",copiedDescription:o,value:l},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:104,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:101,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:94,columnNumber:5},void 0)},Gu=({title:i,data:e,showCount:r,children:s,className:o})=>{const[l,u]=Nr(`trace-viewer-network-details-${i.replaceAll(" ","-")}`,!0);return x.jsxDEV(lA,{expanded:l,setExpanded:u,expandOnTitleClick:!0,title:x.jsxDEV("span",{className:"network-request-details-header",children:[i,r&&x.jsxDEV("span",{className:"network-request-details-header-count",children:[" × ",(e==null?void 0:e.length)??0]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:124,columnNumber:23},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:123,columnNumber:7},void 0),className:o,children:[e&&x.jsxDEV("table",{className:"network-request-details-table",children:x.jsxDEV("tbody",{children:e.map(({name:d,value:m},p)=>m!==null&&x.jsxDEV("tr",{children:[x.jsxDEV("td",{children:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:134,columnNumber:13},void 0),x.jsxDEV("td",{children:m},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:135,columnNumber:13},void 0)]},p,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:133,columnNumber:12},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:130,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:129,columnNumber:14},void 0),s]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:118,columnNumber:10},void 0)},N5=({resource:i,startTimeOffset:e})=>{const r=Y.useMemo(()=>Object.entries({URL:i.request.url,Method:i.request.method,"Status Code":i.response.status!==-1&&x.jsxDEV("span",{className:D5(i.response.status),children:[" ",i.response.status," ",i.response.statusText]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:152,columnNumber:57},void 0),Start:Nn(e),Duration:Nn(i.time)}).map(([s,o])=>({name:s,value:o})),[i,e]);return x.jsxDEV("div",{className:"vbox network-request-details-tab",children:[x.jsxDEV(Gu,{title:"General",data:r},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:159,columnNumber:5},void 0),x.jsxDEV(Gu,{title:"Request Headers",showCount:!0,data:i.request.headers},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:160,columnNumber:5},void 0),x.jsxDEV(Gu,{title:"Response Headers",showCount:!0,data:i.response.headers},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:161,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:158,columnNumber:10},void 0)},A5=({resource:i,requestBody:e})=>x.jsxDEV("div",{className:"vbox network-request-details-tab",children:[i.request.queryString.length===0&&!e&&x.jsxDEV("em",{className:"network-request-no-payload",children:"No payload for this request."},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:170,columnNumber:67},void 0),i.request.queryString.length>0&&x.jsxDEV(Gu,{title:"Query String Parameters",showCount:!0,data:i.request.queryString},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:171,columnNumber:49},void 0),e&&x.jsxDEV(Gu,{title:"Request Body",className:"network-request-request-body",children:x.jsxDEV($l,{text:e.text,mimeType:e.mimeType,readOnly:!0,lineNumbers:!0},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:173,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:172,columnNumber:21},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:169,columnNumber:10},void 0),C5=({resource:i})=>{const e=hs(),[r,s]=Y.useState(null);return Y.useEffect(()=>{(async()=>{if(e&&i.response.content._sha1){const l=i.response.content.mimeType.includes("image"),u=i.response.content.mimeType.includes("font"),d=await fetch(e.createRelativeUrl(`sha1/${i.response.content._sha1}`));if(l){const m=await d.blob(),p=new FileReader,v=new Promise(g=>p.onload=g);p.readAsDataURL(m),s({dataUrl:(await v).target.result})}else if(u){const m=await d.arrayBuffer();s({font:m})}else{const m=iv(await d.text(),i.response.content.mimeType);s({text:m,mimeType:i.response.content.mimeType})}}else s(null)})()},[i,e]),x.jsxDEV("div",{className:"vbox network-request-details-tab",children:[!i.response.content._sha1&&x.jsxDEV("div",{children:"Response body is not available for this request."},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:212,columnNumber:42},void 0),r&&r.font&&x.jsxDEV(k5,{font:r.font},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:213,columnNumber:43},void 0),r&&r.dataUrl&&x.jsxDEV("div",{children:x.jsxDEV("img",{draggable:"false",src:r.dataUrl},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:214,columnNumber:51},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:214,columnNumber:46},void 0),r&&r.text&&x.jsxDEV($l,{text:r.text,mimeType:r.mimeType,readOnly:!0,lineNumbers:!0},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:215,columnNumber:43},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:211,columnNumber:10},void 0)},k5=({font:i})=>{const[e,r]=Y.useState(!1);return Y.useEffect(()=>{let s;try{s=new FontFace("font-preview",i),s.status==="loaded"&&document.fonts.add(s),s.status==="error"&&r(!0)}catch{r(!0)}return()=>{document.fonts.delete(s)}},[i]),e?x.jsxDEV("div",{className:"network-font-preview-error",children:"Could not load font preview"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:244,columnNumber:12},void 0):x.jsxDEV("div",{className:"network-font-preview",children:["ABCDEFGHIJKLM",x.jsxDEV("br",{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:247,columnNumber:18},void 0),"NOPQRSTUVWXYZ",x.jsxDEV("br",{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:248,columnNumber:18},void 0),"abcdefghijklm",x.jsxDEV("br",{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:249,columnNumber:18},void 0),"nopqrstuvwxyz",x.jsxDEV("br",{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:250,columnNumber:18},void 0),"1234567890"]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkResourceDetails.tsx",lineNumber:246,columnNumber:10},void 0)};function D5(i){return i<300||i===304?"green-circle":i<400?"yellow-circle":"red-circle"}function iv(i,e){if(i===null)return"Loading...";const r=i;if(r==="")return"<Empty>";if(GO(e))try{return JSON.stringify(JSON.parse(r),null,2)}catch{return r}return e.includes("application/x-www-form-urlencoded")?decodeURIComponent(r):r}function R5(i){const[e,r]=Y.useState([]);Y.useEffect(()=>{const l=[];for(let u=0;u<i.columns.length-1;++u){const d=i.columns[u];l[u]=(l[u-1]||0)+i.columnWidths.get(d)}r(l)},[i.columns,i.columnWidths]);function s(l){const u=new Map(i.columnWidths.entries());for(let d=0;d<l.length;++d){const m=l[d]-(l[d-1]||0),p=i.columns[d];u.set(p,m)}i.setColumnWidths(u)}const o=Y.useCallback(l=>{var u,d;(d=i.setSorting)==null||d.call(i,{by:l,negate:((u=i.sorting)==null?void 0:u.by)===l?!i.sorting.negate:!1})},[i]);return x.jsxDEV("div",{className:`grid-view ${i.name}-grid-view`,children:[x.jsxDEV(oA,{orientation:"horizontal",offsets:e,setOffsets:s,resizerColor:"var(--vscode-panel-border)",resizerWidth:1,minColumnWidth:25},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:67,columnNumber:5},this),x.jsxDEV("div",{className:"vbox",children:[x.jsxDEV("div",{className:"grid-view-header",children:i.columns.map((l,u)=>x.jsxDEV("div",{className:"grid-view-header-cell "+M5(l,i.sorting),style:{width:u<i.columns.length-1?i.columnWidths.get(l):void 0},onClick:()=>i.setSorting&&o(l),children:[x.jsxDEV("span",{className:"grid-view-header-cell-title",children:i.columnTitle(l)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:86,columnNumber:13},this),x.jsxDEV("span",{className:"codicon codicon-triangle-up"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:87,columnNumber:13},this),x.jsxDEV("span",{className:"codicon codicon-triangle-down"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:88,columnNumber:13},this)]},i.columnTitle(l),!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:78,columnNumber:18},this))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:76,columnNumber:7},this),x.jsxDEV(vm,{name:i.name,items:i.items,ariaLabel:i.ariaLabel,id:i.id,render:(l,u)=>x.jsxDEV(x.Fragment,{children:i.columns.map((d,m)=>{const{body:p,title:v}=i.render(l,d,u);return x.jsxDEV("div",{className:`grid-view-cell grid-view-column-${String(d)}`,title:v,style:{width:m<i.columns.length-1?i.columnWidths.get(d):void 0},children:p},i.columnTitle(d),!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:101,columnNumber:22},this)})},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:98,columnNumber:18},this),icon:i.icon,isError:i.isError,isWarning:i.isWarning,isInfo:i.isInfo,selectedItem:i.selectedItem,onAccepted:i.onAccepted,onSelected:i.onSelected,onHighlighted:i.onHighlighted,onIconClicked:i.onIconClicked,noItemsMessage:i.noItemsMessage,dataTestId:i.dataTestId,notSelectable:i.notSelectable},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:92,columnNumber:7},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:75,columnNumber:5},this)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/gridView.tsx",lineNumber:66,columnNumber:10},this)}function M5(i,e){return i===(e==null?void 0:e.by)?" filter-"+(e.negate?"negative":"positive"):""}const O5=["Fetch","HTML","JS","CSS","Font","Image"],L5={searchValue:"",resourceTypes:new Set},U5=({filterState:i,onFilterStateChange:e})=>x.jsxDEV("div",{className:"network-filters",children:[x.jsxDEV("input",{type:"search",placeholder:"Filter network",spellCheck:!1,value:i.searchValue,onChange:r=>e({...i,searchValue:r.target.value})},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkFilters.tsx",lineNumber:35,columnNumber:7},void 0),x.jsxDEV("div",{className:"network-filters-resource-types",role:"tablist","aria-multiselectable":"true",children:[x.jsxDEV("div",{title:"All",onClick:()=>e({...i,resourceTypes:new Set}),className:`network-filters-resource-type ${i.resourceTypes.size===0?"selected":""}`,children:"All"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkFilters.tsx",lineNumber:44,columnNumber:9},void 0),O5.map(r=>x.jsxDEV("div",{title:r,onClick:s=>{let o;s.ctrlKey||s.metaKey?o=i.resourceTypes.symmetricDifference(new Set([r])):o=new Set([r]),e({...i,resourceTypes:o})},className:`network-filters-resource-type ${i.resourceTypes.has(r)?"selected":""}`,role:"tab","aria-selected":i.resourceTypes.has(r),children:r},r,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkFilters.tsx",lineNumber:53,columnNumber:11},void 0))]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkFilters.tsx",lineNumber:43,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkFilters.tsx",lineNumber:34,columnNumber:5},void 0),j5=R5;function V5(i,e){const r=Y.useMemo(()=>((i==null?void 0:i.resources)||[]).filter(u=>e?!!u._monotonicTime&&u._monotonicTime>=e.minimum&&u._monotonicTime<=e.maximum:!0),[i,e]),s=Y.useMemo(()=>new B5(i),[i]);return{resources:r,contextIdMap:s}}const $5=({boundaries:i,networkModel:e,onResourceHovered:r,sdkLanguage:s})=>{const[o,l]=Y.useState(void 0),[u,d]=Y.useState(void 0),[m,p]=Y.useState(L5),v=Y.useMemo(()=>u&&e.resources.includes(u.resource)?u:void 0,[u,e.resources]),{renderedEntries:g}=Y.useMemo(()=>{const T=e.resources.map((k,D)=>q5(k,i,e.contextIdMap,D)).filter(J5(m));return o&&G5(T,o),{renderedEntries:T}},[e.resources,e.contextIdMap,m,o,i]),[y,w]=Y.useState(()=>new Map(pA().map(T=>[T,I5(T)]))),E=Y.useCallback(T=>{p(T),d(void 0)},[]);if(!e.resources.length)return x.jsxDEV(mo,{text:"No network calls"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:97,columnNumber:12},void 0);const S=x.jsxDEV(j5,{name:"network",ariaLabel:"Network requests",items:g,selectedItem:v,onSelected:T=>d(T),onHighlighted:T=>r==null?void 0:r(T==null?void 0:T.ordinal),columns:z5(!!v,g),columnTitle:H5,columnWidths:y,setColumnWidths:w,isError:T=>T.status.code>=400||T.status.code===-1,isInfo:T=>!!T.route,render:(T,k)=>P5(T,k),sorting:o,setSorting:l},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:99,columnNumber:16},void 0);return x.jsxDEV(x.Fragment,{children:[x.jsxDEV(U5,{filterState:m,onFilterStateChange:E},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:117,columnNumber:5},void 0),!v&&S,v&&x.jsxDEV(nm,{sidebarSize:y.get("name"),sidebarIsFirst:!0,orientation:"horizontal",settingName:"networkResourceDetails",main:x.jsxDEV(x5,{resource:v.resource,sdkLanguage:s,startTimeOffset:v.start,onClose:()=>d(void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:125,columnNumber:15},void 0),sidebar:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:120,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/networkTab.tsx",lineNumber:116,columnNumber:10},void 0)},H5=i=>i==="contextId"?"Source":i==="name"?"Name":i==="method"?"Method":i==="status"?"Status":i==="contentType"?"Content Type":i==="duration"?"Duration":i==="size"?"Size":i==="start"?"Start":i==="route"?"Route":"",I5=i=>i==="name"?200:i==="method"||i==="status"?60:i==="contentType"?200:i==="contextId"?60:100;function z5(i,e){if(i){const s=["name"];return CT(e)&&s.unshift("contextId"),s}let r=pA();return CT(e)||(r=r.filter(s=>s!=="contextId")),r}function pA(){return["contextId","name","method","status","contentType","duration","size","start","route"]}const P5=(i,e)=>e==="contextId"?{body:i.contextId,title:i.name.url}:e==="name"?{body:i.name.name,title:i.name.url}:e==="method"?{body:i.method}:e==="status"?{body:i.status.code>0?i.status.code:"",title:i.status.text}:e==="contentType"?{body:i.contentType}:e==="duration"?{body:Nn(i.duration)}:e==="size"?{body:y3(i.size)}:e==="start"?{body:Nn(i.start)}:e==="route"?{body:i.route}:{body:""};class B5{constructor(e){Nu(this,"_pagerefToShortId",new Map);Nu(this,"_contextToId",new Map);Nu(this,"_lastPageId",0);Nu(this,"_lastApiRequestContextId",0)}contextId(e){return e.pageref?this._pageId(e.pageref):e._apiRequest?this._apiRequestContextId(e):""}_pageId(e){let r=this._pagerefToShortId.get(e);return r||(++this._lastPageId,r="page#"+this._lastPageId,this._pagerefToShortId.set(e,r)),r}_apiRequestContextId(e){const r=ON(e);if(!r)return"";let s=this._contextToId.get(r);return s||(++this._lastApiRequestContextId,s="api#"+this._lastApiRequestContextId,this._contextToId.set(r,s)),s}}function CT(i){const e=new Set;for(const r of i)if(e.add(r.contextId),e.size>1)return!0;return!1}const q5=(i,e,r,s)=>{const o=F5(i);let l;try{const m=new URL(i.request.url);l=m.pathname.substring(m.pathname.lastIndexOf("/")+1),l||(l=m.host),m.search&&(l+=m.search)}catch{l=i.request.url}let u=i.response.content.mimeType;const d=u.match(/^(.*);\s*charset=.*$/);return d&&(u=d[1]),{ordinal:s,name:{name:l,url:i.request.url},method:i.request.method,status:{code:i.response.status,text:i.response.statusText},contentType:u,duration:i.time,size:i.response._transferSize>0?i.response._transferSize:i.response.bodySize,start:i._monotonicTime-e.minimum,route:o,resource:i,contextId:r.contextId(i)}};function F5(i){return i._wasAborted?"aborted":i._wasContinued?"continued":i._wasFulfilled?"fulfilled":i._apiRequest?"api":""}function G5(i,e){const r=Y5(e==null?void 0:e.by);r&&i.sort(r),e.negate&&i.reverse()}function Y5(i){if(i==="start")return(e,r)=>e.start-r.start;if(i==="duration")return(e,r)=>e.duration-r.duration;if(i==="status")return(e,r)=>e.status.code-r.status.code;if(i==="method")return(e,r)=>{const s=e.method,o=r.method;return s.localeCompare(o)};if(i==="size")return(e,r)=>e.size-r.size;if(i==="contentType")return(e,r)=>e.contentType.localeCompare(r.contentType);if(i==="name")return(e,r)=>e.name.name.localeCompare(r.name.name);if(i==="route")return(e,r)=>e.route.localeCompare(r.route);if(i==="contextId")return(e,r)=>e.contextId.localeCompare(r.contextId)}const X5={Fetch:i=>i==="application/json",HTML:i=>i==="text/html",CSS:i=>i==="text/css",JS:i=>i.includes("javascript"),Font:i=>i.includes("font"),Image:i=>i.includes("image")};function J5({searchValue:i,resourceTypes:e}){return r=>(e.size===0||Array.from(e).some(o=>X5[o](r.contentType)))&&r.name.url.toLowerCase().includes(i.toLowerCase())}function K5(i,e){if(i.role!==e.role||i.name!==e.name||!W5(i,e)||om(i)!==om(e))return!1;const r=Object.keys(i.props),s=Object.keys(e.props);return r.length===s.length&&r.every(o=>i.props[o]===e.props[o])}function om(i){return i.box.cursor==="pointer"}function W5(i,e){return i.active===e.active&&i.checked===e.checked&&i.disabled===e.disabled&&i.expanded===e.expanded&&i.selected===e.selected&&i.level===e.level&&i.pressed===e.pressed}function Rv(i,e,r={}){var y;const s=new i.LineCounter,o={keepSourceTokens:!0,lineCounter:s,...r},l=i.parseDocument(e,o),u=[],d=w=>[s.linePos(w[0]),s.linePos(w[1])],m=w=>{u.push({message:w.message,range:[s.linePos(w.pos[0]),s.linePos(w.pos[1])]})},p=(w,E)=>{for(const S of E.items){if(S instanceof i.Scalar&&typeof S.value=="string"){const D=lm.parse(S,o,u);D&&(w.children=w.children||[],w.children.push(D));continue}if(S instanceof i.YAMLMap){v(w,S);continue}u.push({message:"Sequence items should be strings or maps",range:d(S.range||E.range)})}},v=(w,E)=>{for(const S of E.items){if(w.children=w.children||[],!(S.key instanceof i.Scalar&&typeof S.key.value=="string")){u.push({message:"Only string keys are supported",range:d(S.key.range||E.range)});continue}const k=S.key,D=S.value;if(k.value==="text"){if(!(D instanceof i.Scalar&&typeof D.value=="string")){u.push({message:"Text value should be a string",range:d(S.value.range||E.range)});continue}w.children.push({kind:"text",text:Cb(D.value)});continue}if(k.value==="/children"){if(!(D instanceof i.Scalar&&typeof D.value=="string")||D.value!=="contain"&&D.value!=="equal"&&D.value!=="deep-equal"){u.push({message:'Strict value should be "contain", "equal" or "deep-equal"',range:d(S.value.range||E.range)});continue}w.containerMode=D.value;continue}if(k.value.startsWith("/")){if(!(D instanceof i.Scalar&&typeof D.value=="string")){u.push({message:"Property value should be a string",range:d(S.value.range||E.range)});continue}w.props=w.props??{},w.props[k.value.slice(1)]=Cb(D.value);continue}const I=lm.parse(k,o,u);if(!I)continue;if(D instanceof i.Scalar){const Z=typeof D.value;if(Z!=="string"&&Z!=="number"&&Z!=="boolean"){u.push({message:"Node value should be a string or a sequence",range:d(S.value.range||E.range)});continue}w.children.push({...I,children:[{kind:"text",text:Cb(String(D.value))}]});continue}if(D instanceof i.YAMLSeq){w.children.push(I),p(I,D);continue}u.push({message:"Map values should be strings or sequences",range:d(S.value.range||E.range)})}},g={kind:"role",role:"fragment"};return l.errors.forEach(m),u.length?{errors:u,fragment:g}:(l.contents instanceof i.YAMLSeq||u.push({message:'Aria snapshot must be a YAML sequence, elements starting with " -"',range:l.contents?d(l.contents.range):[{line:0,col:0},{line:0,col:0}]}),u.length?{errors:u,fragment:g}:(p(g,l.contents),u.length?{errors:u,fragment:Q5}:((y=g.children)==null?void 0:y.length)===1&&(!g.containerMode||g.containerMode==="contain")?{fragment:g.children[0],errors:[]}:{fragment:g,errors:[]}))}const Q5={kind:"role",role:"fragment"};function gA(i){return i.replace(/[\u200b\u00ad]/g,"").replace(/[\r\n\s\t]+/g," ").trim()}function Cb(i){return{raw:i,normalized:gA(i)}}class lm{static parse(e,r,s){try{return new lm(e.value)._parse()}catch(o){if(o instanceof kT){const l=r.prettyErrors===!1?o.message:o.message+`:
332
+
333
+ `+e.value+`
334
+ `+" ".repeat(o.pos)+`^
335
+ `;return s.push({message:l,range:[r.lineCounter.linePos(e.range[0]),r.lineCounter.linePos(e.range[0]+o.pos)]}),null}throw o}}constructor(e){this._input=e,this._pos=0,this._length=e.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(e){this._eof()&&this._throwError(`Unexpected end of input when expecting ${e}`);const r=this._pos;for(;!this._eof()&&/[a-zA-Z]/.test(this._peek());)this._pos++;return this._input.slice(r,this._pos)}_readString(){let e="",r=!1;for(;!this._eof();){const s=this._next();if(r)e+=s,r=!1;else if(s==="\\")r=!0;else{if(s==='"')return e;e+=s}}this._throwError("Unterminated string")}_throwError(e,r=0){throw new kT(e,r||this._pos)}_readRegex(){let e="",r=!1,s=!1;for(;!this._eof();){const o=this._next();if(r)e+=o,r=!1;else if(o==="\\")r=!0,e+=o;else{if(o==="/"&&!s)return{pattern:e};o==="["?(s=!0,e+=o):o==="]"&&s?(e+=o,s=!1):e+=o}}this._throwError("Unterminated regex")}_readStringOrRegex(){const e=this._peek();return e==='"'?(this._next(),gA(this._readString())):e==="/"?(this._next(),this._readRegex()):null}_readAttributes(e){let r=this._pos;for(;this._skipWhitespace(),this._peek()==="[";){this._next(),this._skipWhitespace(),r=this._pos;const s=this._readIdentifier("attribute");this._skipWhitespace();let o="";if(this._peek()==="=")for(this._next(),this._skipWhitespace(),r=this._pos;this._peek()!=="]"&&!this._isWhitespace()&&!this._eof();)o+=this._next();this._skipWhitespace(),this._peek()!=="]"&&this._throwError("Expected ]"),this._next(),this._applyAttribute(e,s,o||"true",r)}}_parse(){this._skipWhitespace();const e=this._readIdentifier("role");this._skipWhitespace();const r=this._readStringOrRegex()||"",s={kind:"role",role:e,name:r};return this._readAttributes(s),this._skipWhitespace(),this._eof()||this._throwError("Unexpected input"),s}_applyAttribute(e,r,s,o){if(r==="checked"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "checked" attribute must be a boolean or "mixed"',o),e.checked=s==="true"?!0:s==="false"?!1:"mixed";return}if(r==="disabled"){this._assert(s==="true"||s==="false",'Value of "disabled" attribute must be a boolean',o),e.disabled=s==="true";return}if(r==="expanded"){this._assert(s==="true"||s==="false",'Value of "expanded" attribute must be a boolean',o),e.expanded=s==="true";return}if(r==="active"){this._assert(s==="true"||s==="false",'Value of "active" attribute must be a boolean',o),e.active=s==="true";return}if(r==="level"){this._assert(!isNaN(Number(s)),'Value of "level" attribute must be a number',o),e.level=Number(s);return}if(r==="pressed"){this._assert(s==="true"||s==="false"||s==="mixed",'Value of "pressed" attribute must be a boolean or "mixed"',o),e.pressed=s==="true"?!0:s==="false"?!1:"mixed";return}if(r==="selected"){this._assert(s==="true"||s==="false",'Value of "selected" attribute must be a boolean',o),e.selected=s==="true";return}this._assert(!1,`Unsupported attribute [${r}]`,o)}_assert(e,r,s){e||this._throwError(r||"Assertion error",s)}}class kT extends Error{constructor(e,r){super(e),this.pos=r}}function Z5(i,e){var u,d;function r(m,p,v){let g=1,y=v+g;for(const w of m.children||[])typeof w=="string"?(g++,y++):(g+=r(w,p,y),y+=g);if(!["none","presentation","fragment","iframe","generic"].includes(m.role)&&m.name){let w=p.get(m.role);w||(w=new Map,p.set(m.role,w));const E=w.get(m.name),S=g*100-v;(!E||E.sizeAndPosition<S)&&w.set(m.name,{node:m,sizeAndPosition:S})}return g}const s=new Map;i&&r(i,s,0);const o=new Map;r(e,o,0);const l=[];for(const[m,p]of o)for(const[v,g]of p)((u=s.get(m))==null?void 0:u.get(v))||l.push(g);return l.sort((m,p)=>p.sizeAndPosition-m.sizeAndPosition),(d=l[0])==null?void 0:d.node}function e4(i){return yA(i)?"'"+i.replace(/'/g,"''")+"'":i}function kb(i){return yA(i)?'"'+i.replace(/[\\"\x00-\x1f\x7f-\x9f]/g,e=>{switch(e){case"\\":return"\\\\";case'"':return'\\"';case"\b":return"\\b";case"\f":return"\\f";case`
336
+ `:return"\\n";case"\r":return"\\r";case" ":return"\\t";default:return"\\x"+e.charCodeAt(0).toString(16).padStart(2,"0")}})+'"':i}function yA(i){return!!(i.length===0||/^\s|\s$/.test(i)||/[\x00-\x08\x0b\x0c\x0e-\x1f\x7f-\x9f]/.test(i)||/^-/.test(i)||/[\n:](\s|$)/.test(i)||/\s#/.test(i)||/[\n\r]/.test(i)||/^[&*\],?!>|@"'#%]/.test(i)||/[{}`]/.test(i)||/^\[/.test(i)||!isNaN(Number(i))||["y","n","yes","no","true","false","on","off","null"].includes(i.toLowerCase()))}let bA={};function t4(i){bA=i}function nd(i,e){for(;e;){if(i.contains(e))return!0;e=wA(e)}return!1}function dn(i){if(i.parentElement)return i.parentElement;if(i.parentNode&&i.parentNode.nodeType===11&&i.parentNode.host)return i.parentNode.host}function vA(i){let e=i;for(;e.parentNode;)e=e.parentNode;if(e.nodeType===11||e.nodeType===9)return e}function wA(i){for(;i.parentElement;)i=i.parentElement;return dn(i)}function Cl(i,e,r){for(;i;){const s=i.closest(e);if(r&&s!==r&&(s!=null&&s.contains(r)))return;if(s)return s;i=wA(i)}}function da(i,e){const r=e==="::before"?Ov:e==="::after"?Lv:Mv;if(r&&r.has(i))return r.get(i);const s=i.ownerDocument&&i.ownerDocument.defaultView?i.ownerDocument.defaultView.getComputedStyle(i,e):void 0;return r==null||r.set(i,s),s}function _A(i,e){if(e=e??da(i),!e)return!0;if(Element.prototype.checkVisibility&&bA.browserNameForWorkarounds!=="webkit"){if(!i.checkVisibility())return!1}else{const r=i.closest("details,summary");if(r!==i&&(r==null?void 0:r.nodeName)==="DETAILS"&&!r.open)return!1}return e.visibility==="visible"}function cm(i){const e=da(i);if(!e)return{visible:!0,inline:!1};const r=e.cursor;if(e.display==="contents"){for(let o=i.firstChild;o;o=o.nextSibling){if(o.nodeType===1&&Gr(o))return{visible:!0,inline:!1,cursor:r};if(o.nodeType===3&&SA(o))return{visible:!0,inline:!0,cursor:r}}return{visible:!1,inline:!1,cursor:r}}if(!_A(i,e))return{cursor:r,visible:!1,inline:!1};const s=i.getBoundingClientRect();return{cursor:r,visible:s.width>0&&s.height>0,inline:e.display==="inline"}}function Gr(i){return cm(i).visible}function SA(i){const e=i.ownerDocument.createRange();e.selectNode(i);const r=e.getBoundingClientRect();return r.width>0&&r.height>0}function Nt(i){const e=i.tagName;return typeof e=="string"?e.toUpperCase():i instanceof HTMLFormElement?"FORM":i.tagName.toUpperCase()}let Mv,Ov,Lv,EA=0;function Uv(){++EA,Mv??(Mv=new Map),Ov??(Ov=new Map),Lv??(Lv=new Map)}function jv(){--EA||(Mv=void 0,Ov=void 0,Lv=void 0)}function DT(i){return i.hasAttribute("aria-label")||i.hasAttribute("aria-labelledby")}const RT="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",n4=[["aria-atomic",void 0],["aria-busy",void 0],["aria-controls",void 0],["aria-current",void 0],["aria-describedby",void 0],["aria-details",void 0],["aria-dropeffect",void 0],["aria-flowto",void 0],["aria-grabbed",void 0],["aria-hidden",void 0],["aria-keyshortcuts",void 0],["aria-label",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-labelledby",["caption","code","deletion","emphasis","generic","insertion","paragraph","presentation","strong","subscript","superscript"]],["aria-live",void 0],["aria-owns",void 0],["aria-relevant",void 0],["aria-roledescription",["generic"]]];function xA(i,e){return n4.some(([r,s])=>!(s!=null&&s.includes(e||""))&&i.hasAttribute(r))}function TA(i){return!Number.isNaN(Number(String(i.getAttribute("tabindex"))))}function r4(i){return!VA(i)&&(i4(i)||TA(i))}function i4(i){const e=Nt(i);return["BUTTON","DETAILS","SELECT","TEXTAREA"].includes(e)?!0:e==="A"||e==="AREA"?i.hasAttribute("href"):e==="INPUT"?!i.hidden:!1}const Db={A:i=>i.hasAttribute("href")?"link":null,AREA:i=>i.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:i=>Cl(i,RT)?null:"contentinfo",FORM:i=>DT(i)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:i=>Cl(i,RT)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:i=>i.getAttribute("alt")===""&&!i.getAttribute("title")&&!xA(i)&&!TA(i)?"presentation":"img",INPUT:i=>{const e=i.type.toLowerCase();if(e==="search")return i.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(e)){const r=ql(i,i.getAttribute("list"))[0];return r&&Nt(r)==="DATALIST"?"combobox":"textbox"}return e==="hidden"?null:e==="file"?"button":w4[e]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SEARCH:()=>"search",SECTION:i=>DT(i)?"region":null,SELECT:i=>i.hasAttribute("multiple")||i.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:i=>{const e=Cl(i,"table"),r=e?Vv(e):"";return r==="grid"||r==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:i=>{const e=i.getAttribute("scope");if(e==="col"||e==="colgroup")return"columnheader";if(e==="row"||e==="rowgroup")return"rowheader";const r=i.nextElementSibling,s=i.previousElementSibling,o=i.parentElement&&Nt(i.parentElement)==="TR"?i.parentElement:void 0;if(!r&&!s){if(o){const l=Cl(o,"table");if(l&&l.rows.length<=1)return null}return"columnheader"}return MT(r)&&MT(s)?"columnheader":OT(r)||OT(s)?"rowheader":"columnheader"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"};function MT(i){return!!i&&Nt(i)==="TH"}function OT(i){var e;return!i||Nt(i)!=="TD"?!1:!!((e=i.textContent)!=null&&e.trim()||i.children.length>0)}const s4={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function LT(i){var s;const e=((s=Db[Nt(i)])==null?void 0:s.call(Db,i))||"";if(!e)return null;let r=i;for(;r;){const o=dn(r),l=s4[Nt(r)];if(!l||!o||!l.includes(Nt(o)))break;const u=Vv(o);if((u==="none"||u==="presentation")&&!NA(o,u))return u;r=o}return e}const a4=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","complementary","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","insertion","link","list","listbox","listitem","log","main","mark","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","region","row","rowgroup","rowheader","scrollbar","search","searchbox","separator","slider","spinbutton","status","strong","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem"];function Vv(i){return(i.getAttribute("role")||"").split(" ").map(r=>r.trim()).find(r=>a4.includes(r))||null}function NA(i,e){return xA(i,e)||r4(i)}function Bt(i){const e=Vv(i);if(!e)return LT(i);if(e==="none"||e==="presentation"){const r=LT(i);if(NA(i,r))return r}return e}function AA(i){return i===null?void 0:i.toLowerCase()==="true"}function CA(i){return["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(Nt(i))}function Tr(i){if(CA(i))return!0;const e=da(i),r=i.nodeName==="SLOT";if((e==null?void 0:e.display)==="contents"&&!r){for(let o=i.firstChild;o;o=o.nextSibling)if(o.nodeType===1&&!Tr(o)||o.nodeType===3&&SA(o))return!1;return!0}return!(i.nodeName==="OPTION"&&!!i.closest("select"))&&!r&&!_A(i,e)?!0:kA(i)}function kA(i){let e=sa==null?void 0:sa.get(i);if(e===void 0){if(e=!1,i.parentElement&&i.parentElement.shadowRoot&&!i.assignedSlot&&(e=!0),!e){const r=da(i);e=!r||r.display==="none"||AA(i.getAttribute("aria-hidden"))===!0}if(!e){const r=dn(i);r&&(e=kA(r))}sa==null||sa.set(i,e)}return e}function ql(i,e){if(!e)return[];const r=vA(i);if(!r)return[];try{const s=e.split(" ").filter(l=>!!l),o=[];for(const l of s){const u=r.querySelector("#"+CSS.escape(l));u&&!o.includes(u)&&o.push(u)}return o}catch{return[]}}function ls(i){return i.trim()}function Yu(i){return i.split(" ").map(e=>e.replace(/\r\n/g,`
337
+ `).replace(/[\u200b\u00ad]/g,"").replace(/\s\s*/g," ")).join(" ").trim()}function UT(i,e){const r=[...i.querySelectorAll(e)];for(const s of ql(i,i.getAttribute("aria-owns")))s.matches(e)&&r.push(s),r.push(...s.querySelectorAll(e));return r}function Xu(i,e){const r=e==="::before"?Jv:e==="::after"?Kv:Xv;if(r!=null&&r.has(i))return r==null?void 0:r.get(i);const s=da(i,e);let o;if(s){const l=s.content;l&&l!=="none"&&l!=="normal"&&s.display!=="none"&&s.visibility!=="hidden"&&(o=o4(i,l,!!e))}return e&&o!==void 0&&((s==null?void 0:s.display)||"inline")!=="inline"&&(o=" "+o+" "),r&&r.set(i,o),o}function o4(i,e,r){if(!(!e||e==="none"||e==="normal"))try{let s=LN(e).filter(d=>!(d instanceof rm));const o=s.findIndex(d=>d instanceof rn&&d.value==="/");if(o!==-1)s=s.slice(o+1);else if(!r)return;const l=[];let u=0;for(;u<s.length;)if(s[u]instanceof Av)l.push(s[u].value),u++;else if(u+2<s.length&&s[u]instanceof Fu&&s[u].value==="attr"&&s[u+1]instanceof Nv&&s[u+2]instanceof Tv){const d=s[u+1].value;l.push(i.getAttribute(d)||""),u+=3}else return;return l.join("")}catch{}}function DA(i){const e=i.getAttribute("aria-labelledby");if(e===null)return null;const r=ql(i,e);return r.length?r:null}function l4(i,e){const r=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(i),s=e&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(i);return r||s}function rd(i,e){const r=e?Fv:qv;let s=r==null?void 0:r.get(i);return s===void 0&&(s="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes(Bt(i)||"")||(s=Yu(Fr(i,{includeHidden:e,visitedElements:new Set,embeddedInTargetElement:"self"}))),r==null||r.set(i,s)),s}function jT(i,e){const r=e?Yv:Gv;let s=r==null?void 0:r.get(i);if(s===void 0){if(s="",i.hasAttribute("aria-describedby")){const o=ql(i,i.getAttribute("aria-describedby"));s=Yu(o.map(l=>Fr(l,{includeHidden:e,visitedElements:new Set,embeddedInDescribedBy:{element:l,hidden:Tr(l)}})).join(" "))}else i.hasAttribute("aria-description")?s=Yu(i.getAttribute("aria-description")||""):s=Yu(i.getAttribute("title")||"");r==null||r.set(i,s)}return s}function c4(i){const e=i.getAttribute("aria-invalid");return!e||e.trim()===""||e.toLocaleLowerCase()==="false"?"false":e==="true"||e==="grammar"||e==="spelling"?e:"true"}function u4(i){if("validity"in i){const e=i.validity;return(e==null?void 0:e.valid)===!1}return!1}function d4(i){const e=kl;let r=kl==null?void 0:kl.get(i);if(r===void 0){r="";const s=c4(i)!=="false",o=u4(i);if(s||o){const l=i.getAttribute("aria-errormessage");r=ql(i,l).map(m=>Yu(Fr(m,{visitedElements:new Set,embeddedInDescribedBy:{element:m,hidden:Tr(m)}}))).join(" ").trim()}e==null||e.set(i,r)}return r}function Fr(i,e){var m,p,v,g;if(e.visitedElements.has(i))return"";const r={...e,embeddedInTargetElement:e.embeddedInTargetElement==="self"?"descendant":e.embeddedInTargetElement};if(!e.includeHidden){const y=!!((m=e.embeddedInLabelledBy)!=null&&m.hidden)||!!((p=e.embeddedInDescribedBy)!=null&&p.hidden)||!!((v=e.embeddedInNativeTextAlternative)!=null&&v.hidden)||!!((g=e.embeddedInLabel)!=null&&g.hidden);if(CA(i)||!y&&Tr(i))return e.visitedElements.add(i),""}const s=DA(i);if(!e.embeddedInLabelledBy){const y=(s||[]).map(w=>Fr(w,{...e,embeddedInLabelledBy:{element:w,hidden:Tr(w)},embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0,embeddedInLabel:void 0,embeddedInNativeTextAlternative:void 0})).join(" ");if(y)return y}const o=Bt(i)||"",l=Nt(i);if(e.embeddedInLabel||e.embeddedInLabelledBy||e.embeddedInTargetElement==="descendant"){const y=[...i.labels||[]].includes(i),w=(s||[]).includes(i);if(!y&&!w){if(o==="textbox")return e.visitedElements.add(i),l==="INPUT"||l==="TEXTAREA"?i.value:i.textContent||"";if(["combobox","listbox"].includes(o)){e.visitedElements.add(i);let E;if(l==="SELECT")E=[...i.selectedOptions],!E.length&&i.options.length&&E.push(i.options[0]);else{const S=o==="combobox"?UT(i,"*").find(T=>Bt(T)==="listbox"):i;E=S?UT(S,'[aria-selected="true"]').filter(T=>Bt(T)==="option"):[]}return!E.length&&l==="INPUT"?i.value:E.map(S=>Fr(S,r)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(o))return e.visitedElements.add(i),i.hasAttribute("aria-valuetext")?i.getAttribute("aria-valuetext")||"":i.hasAttribute("aria-valuenow")?i.getAttribute("aria-valuenow")||"":i.getAttribute("value")||"";if(["menu"].includes(o))return e.visitedElements.add(i),""}}const u=i.getAttribute("aria-label")||"";if(ls(u))return e.visitedElements.add(i),u;if(!["presentation","none"].includes(o)){if(l==="INPUT"&&["button","submit","reset"].includes(i.type)){e.visitedElements.add(i);const y=i.value||"";return ls(y)?y:i.type==="submit"?"Submit":i.type==="reset"?"Reset":i.getAttribute("title")||""}if(l==="INPUT"&&i.type==="file"){e.visitedElements.add(i);const y=i.labels||[];return y.length&&!e.embeddedInLabelledBy?ku(y,e):"Choose File"}if(l==="INPUT"&&i.type==="image"){e.visitedElements.add(i);const y=i.labels||[];if(y.length&&!e.embeddedInLabelledBy)return ku(y,e);const w=i.getAttribute("alt")||"";if(ls(w))return w;const E=i.getAttribute("title")||"";return ls(E)?E:"Submit"}if(!s&&l==="BUTTON"){e.visitedElements.add(i);const y=i.labels||[];if(y.length)return ku(y,e)}if(!s&&l==="OUTPUT"){e.visitedElements.add(i);const y=i.labels||[];return y.length?ku(y,e):i.getAttribute("title")||""}if(!s&&(l==="TEXTAREA"||l==="SELECT"||l==="INPUT")){e.visitedElements.add(i);const y=i.labels||[];if(y.length)return ku(y,e);const w=l==="INPUT"&&["text","password","search","tel","email","url"].includes(i.type)||l==="TEXTAREA",E=i.getAttribute("placeholder")||"",S=i.getAttribute("title")||"";return!w||S?S:E}if(!s&&l==="FIELDSET"){e.visitedElements.add(i);for(let w=i.firstElementChild;w;w=w.nextElementSibling)if(Nt(w)==="LEGEND")return Fr(w,{...r,embeddedInNativeTextAlternative:{element:w,hidden:Tr(w)}});return i.getAttribute("title")||""}if(!s&&l==="FIGURE"){e.visitedElements.add(i);for(let w=i.firstElementChild;w;w=w.nextElementSibling)if(Nt(w)==="FIGCAPTION")return Fr(w,{...r,embeddedInNativeTextAlternative:{element:w,hidden:Tr(w)}});return i.getAttribute("title")||""}if(l==="IMG"){e.visitedElements.add(i);const y=i.getAttribute("alt")||"";return ls(y)?y:i.getAttribute("title")||""}if(l==="TABLE"){e.visitedElements.add(i);for(let w=i.firstElementChild;w;w=w.nextElementSibling)if(Nt(w)==="CAPTION")return Fr(w,{...r,embeddedInNativeTextAlternative:{element:w,hidden:Tr(w)}});const y=i.getAttribute("summary")||"";if(y)return y}if(l==="AREA"){e.visitedElements.add(i);const y=i.getAttribute("alt")||"";return ls(y)?y:i.getAttribute("title")||""}if(l==="SVG"||i.ownerSVGElement){e.visitedElements.add(i);for(let y=i.firstElementChild;y;y=y.nextElementSibling)if(Nt(y)==="TITLE"&&y.ownerSVGElement)return Fr(y,{...r,embeddedInLabelledBy:{element:y,hidden:Tr(y)}})}if(i.ownerSVGElement&&l==="A"){const y=i.getAttribute("xlink:title")||"";if(ls(y))return e.visitedElements.add(i),y}}const d=l==="SUMMARY"&&!["presentation","none"].includes(o);if(l4(o,e.embeddedInTargetElement==="descendant")||d||e.embeddedInLabelledBy||e.embeddedInDescribedBy||e.embeddedInLabel||e.embeddedInNativeTextAlternative){e.visitedElements.add(i);const y=f4(i,r);if(e.embeddedInTargetElement==="self"?ls(y):y)return y}if(!["presentation","none"].includes(o)||l==="IFRAME"){e.visitedElements.add(i);const y=i.getAttribute("title")||"";if(ls(y))return y}return e.visitedElements.add(i),""}function f4(i,e){const r=[],s=(l,u)=>{var d;if(!(u&&l.assignedSlot))if(l.nodeType===1){const m=((d=da(l))==null?void 0:d.display)||"inline";let p=Fr(l,e);(m!=="inline"||l.nodeName==="BR")&&(p=" "+p+" "),r.push(p)}else l.nodeType===3&&r.push(l.textContent||"")};r.push(Xu(i,"::before")||"");const o=Xu(i);if(o!==void 0)r.push(o);else{const l=i.nodeName==="SLOT"?i.assignedNodes():[];if(l.length)for(const u of l)s(u,!1);else{for(let u=i.firstChild;u;u=u.nextSibling)s(u,!0);if(i.shadowRoot)for(let u=i.shadowRoot.firstChild;u;u=u.nextSibling)s(u,!0);for(const u of ql(i,i.getAttribute("aria-owns")))s(u,!0)}}return r.push(Xu(i,"::after")||""),r.join("")}const $v=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function RA(i){return Nt(i)==="OPTION"?i.selected:$v.includes(Bt(i)||"")?AA(i.getAttribute("aria-selected"))===!0:!1}const Hv=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function MA(i){const e=Iv(i,!0);return e==="error"?!1:e}function h4(i){return Iv(i,!0)}function m4(i){return Iv(i,!1)}function Iv(i,e){const r=Nt(i);if(e&&r==="INPUT"&&i.indeterminate)return"mixed";if(r==="INPUT"&&["checkbox","radio"].includes(i.type))return i.checked;if(Hv.includes(Bt(i)||"")){const s=i.getAttribute("aria-checked");return s==="true"?!0:e&&s==="mixed"?"mixed":!1}return"error"}const p4=["checkbox","combobox","grid","gridcell","listbox","radiogroup","slider","spinbutton","textbox","columnheader","rowheader","searchbox","switch","treegrid"];function g4(i){const e=Nt(i);return["INPUT","TEXTAREA","SELECT"].includes(e)?i.hasAttribute("readonly"):p4.includes(Bt(i)||"")?i.getAttribute("aria-readonly")==="true":i.isContentEditable?!1:"error"}const zv=["button"];function OA(i){if(zv.includes(Bt(i)||"")){const e=i.getAttribute("aria-pressed");if(e==="true")return!0;if(e==="mixed")return"mixed"}return!1}const Pv=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function LA(i){if(Nt(i)==="DETAILS")return i.open;if(Pv.includes(Bt(i)||"")){const e=i.getAttribute("aria-expanded");return e===null?void 0:e==="true"}}const Bv=["heading","listitem","row","treeitem"];function UA(i){const e={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[Nt(i)];if(e)return e;if(Bv.includes(Bt(i)||"")){const r=i.getAttribute("aria-level"),s=r===null?Number.NaN:Number(r);if(Number.isInteger(s)&&s>=1)return s}return 0}const jA=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function um(i){return VA(i)||$A(i)}function VA(i){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(Nt(i))&&(i.hasAttribute("disabled")||y4(i)||b4(i))}function y4(i){return Nt(i)==="OPTION"&&!!i.closest("OPTGROUP[DISABLED]")}function b4(i){const e=i==null?void 0:i.closest("FIELDSET[DISABLED]");if(!e)return!1;const r=e.querySelector(":scope > LEGEND");return!r||!r.contains(i)}function $A(i,e=!1){if(!i)return!1;if(e||jA.includes(Bt(i)||"")){const r=(i.getAttribute("aria-disabled")||"").toLowerCase();return r==="true"?!0:r==="false"?!1:$A(dn(i),!0)}return!1}function ku(i,e){return[...i].map(r=>Fr(r,{...e,embeddedInLabel:{element:r,hidden:Tr(r)},embeddedInNativeTextAlternative:void 0,embeddedInLabelledBy:void 0,embeddedInDescribedBy:void 0,embeddedInTargetElement:void 0})).filter(r=>!!r).join(" ")}function v4(i){const e=Wv;let r=i,s;const o=[];for(;r;r=dn(r)){const l=e.get(r);if(l!==void 0){s=l;break}o.push(r);const u=da(r);if(!u){s=!0;break}const d=u.pointerEvents;if(d){s=d!=="none";break}}s===void 0&&(s=!0);for(const l of o)e.set(l,s);return s}let qv,Fv,Gv,Yv,kl,sa,Xv,Jv,Kv,Wv,HA=0;function _m(){Uv(),++HA,qv??(qv=new Map),Fv??(Fv=new Map),Gv??(Gv=new Map),Yv??(Yv=new Map),kl??(kl=new Map),sa??(sa=new Map),Xv??(Xv=new Map),Jv??(Jv=new Map),Kv??(Kv=new Map),Wv??(Wv=new Map)}function Sm(){--HA||(qv=void 0,Fv=void 0,Gv=void 0,Yv=void 0,kl=void 0,sa=void 0,Xv=void 0,Jv=void 0,Kv=void 0,Wv=void 0),jv()}const w4={button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"};let _4=0;function IA(i){return i.mode==="ai"?{visibility:"ariaOrVisible",refs:"interactable",refPrefix:i.refPrefix,includeGenericRole:!0,renderActive:!i.doNotRenderActive,renderCursorPointer:!0}:i.mode==="autoexpect"?{visibility:"ariaAndVisible",refs:"none"}:i.mode==="codegen"?{visibility:"aria",refs:"none",renderStringsAsRegex:!0}:{visibility:"aria",refs:"none"}}function Ju(i,e){const r=IA(e),s=new Set,o={root:{role:"fragment",name:"",children:[],props:{},box:cm(i),receivesPointerEvents:!0},elements:new Map,refs:new Map,iframeRefs:[]};sv(o.root,i);const l=(d,m,p)=>{if(s.has(m))return;if(s.add(m),m.nodeType===Node.TEXT_NODE&&m.nodeValue){if(!p)return;const S=m.nodeValue;d.role!=="textbox"&&S&&d.children.push(m.nodeValue||"");return}if(m.nodeType!==Node.ELEMENT_NODE)return;const v=m,g=!Tr(v);let y=g;if(r.visibility==="ariaOrVisible"&&(y=g||Gr(v)),r.visibility==="ariaAndVisible"&&(y=g&&Gr(v)),r.visibility==="aria"&&!y)return;const w=[];if(v.hasAttribute("aria-owns")){const S=v.getAttribute("aria-owns").split(/\s+/);for(const T of S){const k=i.ownerDocument.getElementById(T);k&&w.push(k)}}const E=y?E4(v,r):null;E&&(E.ref&&(o.elements.set(E.ref,v),o.refs.set(v,E.ref),E.role==="iframe"&&o.iframeRefs.push(E.ref)),d.children.push(E)),u(E||d,v,w,y)};function u(d,m,p,v){var E;const y=(((E=da(m))==null?void 0:E.display)||"inline")!=="inline"||m.nodeName==="BR"?" ":"";y&&d.children.push(y),d.children.push(Xu(m,"::before")||"");const w=m.nodeName==="SLOT"?m.assignedNodes():[];if(w.length)for(const S of w)l(d,S,v);else{for(let S=m.firstChild;S;S=S.nextSibling)S.assignedSlot||l(d,S,v);if(m.shadowRoot)for(let S=m.shadowRoot.firstChild;S;S=S.nextSibling)l(d,S,v)}for(const S of p)l(d,S,v);if(d.children.push(Xu(m,"::after")||""),y&&d.children.push(y),d.children.length===1&&d.name===d.children[0]&&(d.children=[]),d.role==="link"&&m.hasAttribute("href")){const S=m.getAttribute("href");d.props.url=S}if(d.role==="textbox"&&m.hasAttribute("placeholder")&&m.getAttribute("placeholder")!==d.name){const S=m.getAttribute("placeholder");d.props.placeholder=S}}_m();try{l(o.root,i,!0)}finally{Sm()}return T4(o.root),x4(o.root),o}function VT(i,e){if(e.refs==="none"||e.refs==="interactable"&&(!i.box.visible||!i.receivesPointerEvents))return;const r=Zv(i);let s=r._ariaRef;(!s||s.role!==i.role||s.name!==i.name)&&(s={role:i.role,name:i.name,ref:(e.refPrefix??"")+"e"+ ++_4},r._ariaRef=s),i.ref=s.ref}function S4(i,e){const r=i.nodeName;if(r==="A"||r==="BUTTON"||e.cursor==="pointer")return!0;const s=i.getAttribute("tabindex");return s!==null&&Number(s)>=0}function E4(i,e){const r=i.ownerDocument.activeElement===i;if(i.nodeName==="IFRAME"){const p={role:"iframe",name:"",children:[],props:{},box:cm(i),receivesPointerEvents:!0,active:r};return sv(p,i),VT(p,e),p}const s=e.includeGenericRole?"generic":null,o=Bt(i)??s;if(!o||o==="presentation"||o==="none")return null;const l=An(rd(i,!1)||""),u=v4(i),d=cm(i);if(o==="generic"&&d.inline&&i.childNodes.length===1&&i.childNodes[0].nodeType===Node.TEXT_NODE&&!S4(i,d))return null;const m={role:o,name:l,children:[],props:{},box:d,receivesPointerEvents:u,active:r};return sv(m,i),VT(m,e),Hv.includes(o)&&(m.checked=MA(i)),jA.includes(o)&&(m.disabled=um(i)),Pv.includes(o)&&(m.expanded=LA(i)),Bv.includes(o)&&(m.level=UA(i)),zv.includes(o)&&(m.pressed=OA(i)),$v.includes(o)&&(m.selected=RA(i)),(i instanceof HTMLInputElement||i instanceof HTMLTextAreaElement)&&i.type!=="checkbox"&&i.type!=="radio"&&i.type!=="file"&&(m.children=[i.value]),m}function x4(i){const e=r=>{const s=[];for(const l of r.children||[]){if(typeof l=="string"){s.push(l);continue}const u=e(l);s.push(...u)}return r.role==="generic"&&!r.name&&s.length<=1&&s.every(l=>typeof l!="string"&&!!l.ref)?s:(r.children=s,[r])};e(i)}function T4(i){const e=(s,o)=>{if(!s.length)return;const l=An(s.join(""));l&&o.push(l),s.length=0},r=s=>{const o=[],l=[];for(const u of s.children||[])typeof u=="string"?l.push(u):(e(l,o),r(u),o.push(u));e(l,o),s.children=o.length?o:[],s.children.length===1&&s.children[0]===s.name&&(s.children=[])};r(i)}function N4(i,e){return e?i?typeof e=="string"?i===e:!!i.match(new RegExp(e.pattern)):!1:!0}function $T(i,e){if(!(e!=null&&e.normalized))return!0;if(!i)return!1;if(i===e.normalized||i===e.raw)return!0;const r=A4(e);return r?!!i.match(r):!1}const Rb=Symbol("cachedRegex");function A4(i){if(i[Rb]!==void 0)return i[Rb];const{raw:e}=i,r=e.startsWith("/")&&e.endsWith("/")&&e.length>1;let s;try{s=r?new RegExp(e.slice(1,-1)):null}catch{s=null}return i[Rb]=s,s}function C4(i,e){const r=Ju(i,{mode:"expect"});return{matches:zA(r.root,e,!1,!1),received:{raw:Ku(r,{mode:"expect"}),regex:Ku(r,{mode:"codegen"})}}}function k4(i,e){const r=Ju(i,{mode:"expect"}).root;return zA(r,e,!0,!1).map(o=>Zv(o))}function Qv(i,e,r){var s;return typeof i=="string"&&e.kind==="text"?$T(i,e.text):i===null||typeof i!="object"||e.kind!=="role"||e.role!=="fragment"&&e.role!==i.role||e.checked!==void 0&&e.checked!==i.checked||e.disabled!==void 0&&e.disabled!==i.disabled||e.expanded!==void 0&&e.expanded!==i.expanded||e.level!==void 0&&e.level!==i.level||e.pressed!==void 0&&e.pressed!==i.pressed||e.selected!==void 0&&e.selected!==i.selected||!N4(i.name,e.name)||!$T(i.props.url,(s=e.props)==null?void 0:s.url)?!1:e.containerMode==="contain"?IT(i.children||[],e.children||[]):e.containerMode==="equal"?HT(i.children||[],e.children||[],!1):e.containerMode==="deep-equal"||r?HT(i.children||[],e.children||[],!0):IT(i.children||[],e.children||[])}function HT(i,e,r){if(e.length!==i.length)return!1;for(let s=0;s<e.length;++s)if(!Qv(i[s],e[s],r))return!1;return!0}function IT(i,e){if(e.length>i.length)return!1;const r=i.slice(),s=e.slice();for(const o of s){let l=r.shift();for(;l&&!Qv(l,o,!1);)l=r.shift();if(!l)return!1}return!0}function zA(i,e,r,s){const o=[],l=(u,d)=>{if(Qv(u,e,s)){const m=typeof u=="string"?d:u;return m&&o.push(m),!r}if(typeof u=="string")return!1;for(const m of u.children||[])if(l(m,u))return!0;return!1};return l(i,null),o}function PA(i,e=new Map){i!=null&&i.ref&&e.set(i.ref,i);for(const r of(i==null?void 0:i.children)||[])typeof r!="string"&&PA(r,e);return e}function D4(i,e){var l;const r=PA(e==null?void 0:e.root),s=new Map,o=(u,d)=>{let m=u.children.length===(d==null?void 0:d.children.length)&&K5(u,d),p=m;for(let v=0;v<u.children.length;v++){const g=u.children[v],y=d==null?void 0:d.children[v];if(typeof g=="string")m&&(m=g===y),p&&(p=g===y);else{let w=typeof y!="string"?y:void 0;g.ref&&(w=r.get(g.ref));const E=o(g,w);(!w||!E&&!g.ref||w!==y)&&(p=!1),m&&(m=E&&w===y)}}return s.set(u,m?"same":p?"skip":"changed"),m};return o(i.root,r.get((l=e==null?void 0:e.root)==null?void 0:l.ref)),s}function R4(i,e){const r=[],s=o=>{const l=e.get(o);if(l!=="same")if(l==="skip")for(const u of o.children)typeof u!="string"&&s(u);else r.push(o)};for(const o of i)typeof o=="string"?r.push(o):s(o);return r}function Ku(i,e,r){const s=IA(e),o=[],l=s.renderStringsAsRegex?O4:()=>!0,u=s.renderStringsAsRegex?M4:w=>w;let d=i.root.role==="fragment"?i.root.children:[i.root];const m=D4(i,r);r&&(d=R4(d,m));const p=(w,E)=>{const S=kb(u(w));S&&o.push(E+"- text: "+S)},v=(w,E)=>{let S=w.role;if(w.name&&w.name.length<=900){const T=u(w.name);if(T){const k=T.startsWith("/")&&T.endsWith("/")?T:JSON.stringify(T);S+=" "+k}}return w.checked==="mixed"&&(S+=" [checked=mixed]"),w.checked===!0&&(S+=" [checked]"),w.disabled&&(S+=" [disabled]"),w.expanded&&(S+=" [expanded]"),w.active&&s.renderActive&&(S+=" [active]"),w.level&&(S+=` [level=${w.level}]`),w.pressed==="mixed"&&(S+=" [pressed=mixed]"),w.pressed===!0&&(S+=" [pressed]"),w.selected===!0&&(S+=" [selected]"),w.ref&&(S+=` [ref=${w.ref}]`,E&&om(w)&&(S+=" [cursor=pointer]")),S},g=w=>(w==null?void 0:w.children.length)===1&&typeof w.children[0]=="string"&&!Object.keys(w.props).length?w.children[0]:void 0,y=(w,E,S)=>{if(m.get(w)==="same"&&w.ref){o.push(E+`- ref=${w.ref} [unchanged]`);return}const T=!!r&&!E,k=E+"- "+(T?"<changed> ":"")+e4(v(w,S)),D=g(w);if(!w.children.length&&!Object.keys(w.props).length)o.push(k);else if(D!==void 0)l(w,D)?o.push(k+": "+kb(u(D))):o.push(k);else{o.push(k+":");for(const[$,Z]of Object.entries(w.props))o.push(E+" - /"+$+": "+kb(Z));const I=E+" ",z=!!w.ref&&S&&om(w);for(const $ of w.children)typeof $=="string"?p(l(w,$)?$:"",I):y($,I,S&&!z)}};for(const w of d)typeof w=="string"?p(w,""):y(w,"",!!s.renderCursorPointer);return o.join(`
338
+ `)}function M4(i){const e=[{regex:/\b[\d,.]+[bkmBKM]+\b/,replacement:"[\\d,.]+[bkmBKM]+"},{regex:/\b\d+[hmsp]+\b/,replacement:"\\d+[hmsp]+"},{regex:/\b[\d,.]+[hmsp]+\b/,replacement:"[\\d,.]+[hmsp]+"},{regex:/\b\d+,\d+\b/,replacement:"\\d+,\\d+"},{regex:/\b\d+\.\d{2,}\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\.\d+\b/,replacement:"\\d+\\.\\d+"},{regex:/\b\d{2,}\b/,replacement:"\\d+"}];let r="",s=0;const o=new RegExp(e.map(l=>"("+l.regex.source+")").join("|"),"g");return i.replace(o,(l,...u)=>{const d=u[u.length-2],m=u.slice(0,-2);r+=sm(i.slice(s,d));for(let p=0;p<m.length;p++)if(m[p]){const{replacement:v}=e[p];r+=v;break}return s=d+l.length,l}),r?(r+=sm(i.slice(s)),String(new RegExp(r))):i}function O4(i,e){if(!e.length)return!1;if(!i.name)return!0;if(i.name.length>e.length)return!1;const r=e.length<=200&&i.name.length<=200?hO(e,i.name):"";let s=e;for(;r&&s.includes(r);)s=s.replace(r,"");return s.trim().length/e.length>.1}const BA=Symbol("element");function Zv(i){return i[BA]}function sv(i,e){i[BA]=e}function L4(i,e){const r=Z5(i,e);return r?Zv(r):void 0}const zT=":host{font-size:13px;font-family:system-ui,Ubuntu,Droid Sans,sans-serif;color:#333}svg{position:absolute;height:0}x-pw-tooltip{-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);background-color:#fff;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:none;font-size:12.8px;font-weight:400;left:0;line-height:1.5;max-width:600px;position:absolute;top:0;padding:0;flex-direction:column;overflow:hidden}x-pw-tooltip-line{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;cursor:pointer}x-pw-tooltip-footer{display:flex;max-width:600px;padding:6px;-webkit-user-select:none;user-select:none;color:#777}x-pw-dialog{background-color:#fff;pointer-events:auto;border-radius:6px;box-shadow:0 .5rem 1.2rem #0000004d;display:flex;flex-direction:column;position:absolute;z-index:10;font-size:13px}x-pw-dialog:not(.autosize){width:400px;min-height:150px;max-height:80vh;max-width:80vw;resize:both;overflow:hidden}x-pw-dialog-body{display:flex;flex-direction:column;flex:auto}x-pw-dialog-body label{margin:5px 8px;display:flex;flex-direction:row;align-items:center}x-pw-highlight{position:absolute;top:0;left:0;width:0;height:0}x-pw-action-point{position:absolute;width:20px;height:20px;background:red;border-radius:10px;margin:-10px 0 0 -10px;z-index:2}x-pw-separator{height:1px;margin:6px 9px;background:#949494e5}x-pw-tool-gripper{height:28px;width:24px;margin:2px 0;cursor:grab}x-pw-tool-gripper:active{cursor:grabbing}x-pw-tool-gripper>x-div{width:16px;height:16px;margin:6px 4px;clip-path:url(#icon-gripper);background-color:#555}x-pw-tools-list>label{display:flex;align-items:center;margin:0 10px;-webkit-user-select:none;user-select:none}x-pw-tools-list{display:flex;width:100%;border-bottom:1px solid #dddddd}x-pw-tool-item{pointer-events:auto;height:28px;width:28px;border-radius:3px}x-pw-tool-item:not(.disabled){cursor:pointer}x-pw-tool-item:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.toggled{background-color:#8acae480}x-pw-tool-item.toggled:not(.disabled):hover{background-color:#8acae4c4}x-pw-tool-item>x-div{width:16px;height:16px;margin:6px;background-color:#3a3a3a}x-pw-tool-item.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.record.toggled{background-color:transparent}x-pw-tool-item.record.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.record.toggled>x-div{background-color:#a1260d}x-pw-tool-item.record.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.accept>x-div{background-color:#388a34}x-pw-tool-item.record>x-div{clip-path:url(#icon-circle-large-filled)}x-pw-tool-item.record.toggled>x-div{clip-path:url(#icon-stop-circle)}x-pw-tool-item.pick-locator>x-div{clip-path:url(#icon-inspect)}x-pw-tool-item.text>x-div{clip-path:url(#icon-whole-word)}x-pw-tool-item.visibility>x-div{clip-path:url(#icon-eye)}x-pw-tool-item.value>x-div{clip-path:url(#icon-symbol-constant)}x-pw-tool-item.snapshot>x-div{clip-path:url(#icon-gist)}x-pw-tool-item.visual-snapshot>x-div{clip-path:url(#icon-snapshot)}x-pw-tool-item.table>x-div{clip-path:url(#icon-table)}x-pw-tool-item.file-upload>x-div{clip-path:url(#icon-file-upload)}x-pw-tool-item.customjson>x-div{clip-path:url(#icon-brackets)}x-pw-tool-item.assert-api-payload>x-div{clip-path:url(#icon-braces-dashes)}x-pw-tool-item.assert-api-payload.toggled>x-div{background-color:#1a73e8}x-pw-tool-item.customjson.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.customjson.disabled.toggled>x-div{opacity:.8}x-pw-tool-item.modular>x-div{clip-path:url(#icon-list-tree);background-color:#3a3a3a}x-pw-tool-item.modular.toggled{background-color:transparent}x-pw-tool-item.modular.toggled:not(.disabled):hover{background-color:#dbdbdb}x-pw-tool-item.modular.toggled>x-div{background-color:#1a73e8}x-pw-tool-item.modular.disabled>x-div{background-color:#61616180;cursor:default}x-pw-tool-item.modular.disabled.toggled>x-div{opacity:.8}@keyframes modular-pulse{0%{box-shadow:0 0 #1a73e866}70%{box-shadow:0 0 0 4px #1a73e800}to{box-shadow:0 0 #1a73e800}}x-pw-tool-item.modular.toggled{animation:modular-pulse 2s infinite}x-pw-tool-item.drag-record>x-div{clip-path:url(#icon-move)}x-pw-tool-item.gojs-link>x-div{clip-path:url(#icon-gojs-link)}x-pw-tool-item.area-select>x-div{clip-path:url(#icon-selection)}x-pw-tool-item.mouse-path>x-div{clip-path:url(#icon-sketch-tool);transform:scale(.16);transform-origin:0 0;width:100px!important;height:100px!important}x-pw-tool-item.mouse-path.toggled>x-div{background-color:#dc3545}x-pw-tool-item.sketch-tool>x-div{clip-path:url(#icon-sketch-tool);transform:scale(.16);transform-origin:0 0;width:100px!important;height:100px!important}x-pw-tool-item.sketch-tool.toggled>x-div{background-color:#dc3545}x-pw-tool-item.pointer-events>x-div{clip-path:url(#icon-layers)}x-pw-tool-item.pointer-events>x-div{clip-path:url(#icon-layers)}.pw-sketch-tool-cursor{cursor:pointer!important}.pw-deletion-trail{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none;z-index:2147483646}.pw-deletion-path{stroke:#dc354580;stroke-width:20;stroke-linecap:round;stroke-linejoin:round;fill:none}x-pw-tool-item.accept>x-div{clip-path:url(#icon-check)}x-pw-tool-item.cancel>x-div{clip-path:url(#icon-close)}x-pw-tool-item.succeeded>x-div{clip-path:url(#icon-pass);background-color:#388a34!important}x-pw-overlay{position:absolute;top:0;max-width:min-content;z-index:2147483647;background:transparent;pointer-events:auto}x-pw-overlay x-pw-tools-list{background-color:#fffd;box-shadow:#0000001a 0 5px 5px;border-radius:3px;border-bottom:none}x-pw-overlay x-pw-tool-item{margin:2px}textarea.text-editor{font-family:system-ui,Ubuntu,Droid Sans,sans-serif;flex:auto;border:none;margin:6px 10px;color:#333;outline:1px solid transparent!important;resize:none;padding:0;font-size:13px}textarea.text-editor.does-not-match{outline:1px solid red!important}x-div{display:block}x-spacer{flex:auto}*{box-sizing:border-box}*[hidden]{display:none!important}x-locator-editor{flex:none;width:100%;height:60px;padding:4px;border-bottom:1px solid #dddddd;outline:1px solid transparent}x-locator-editor.does-not-match{outline:1px solid red}.CodeMirror{width:100%!important;height:100%!important}x-pw-action-list{flex:auto;display:flex;flex-direction:column;-webkit-user-select:none;user-select:none}x-pw-action-item{padding:6px 10px;cursor:pointer;overflow:hidden}x-pw-action-item:hover{background-color:#f2f2f2}x-pw-action-item:last-child{border-bottom-left-radius:6px;border-bottom-right-radius:6px}";class Mb{constructor(e){this._renderedEntries=[],this._language="javascript",this._injectedScript=e;const r=e.document;if(this._isUnderTest=e.isUnderTest,this._glassPaneElement=r.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483647",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent",this._actionPointElement=r.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),typeof this._glassPaneShadow.adoptedStyleSheets.push=="function"){const s=new this._injectedScript.window.CSSStyleSheet;s.replaceSync(zT),this._glassPaneShadow.adoptedStyleSheets.push(s)}else{const s=this._injectedScript.document.createElement("style");s.textContent=zT,this._glassPaneShadow.appendChild(s)}this._glassPaneShadow.appendChild(this._actionPointElement)}install(){this._injectedScript.document.documentElement&&(!this._injectedScript.document.documentElement.contains(this._glassPaneElement)||this._glassPaneElement.nextElementSibling)&&this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(e){this._language=e}runHighlightOnRaf(e){this._rafRequest&&this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest);const r=this._injectedScript.querySelectorAll(e,this._injectedScript.document.documentElement),s=la(this._language,ki(e)),o=r.length>1?"#f6b26b7f":"#6fa8dc7f";this.updateHighlight(r.map((l,u)=>{const d=r.length>1?` [${u+1} of ${r.length}]`:"";return{element:l,color:o,tooltipText:s+d}})),this._rafRequest=this._injectedScript.utils.builtins.requestAnimationFrame(()=>this.runHighlightOnRaf(e))}uninstall(){this._rafRequest&&this._injectedScript.utils.builtins.cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}showActionPoint(e,r){this._actionPointElement.style.top=r+"px",this._actionPointElement.style.left=e+"px",this._actionPointElement.hidden=!1}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var e,r;for(const s of this._renderedEntries)(e=s.highlightElement)==null||e.remove(),(r=s.tooltipElement)==null||r.remove();this._renderedEntries=[]}maskElements(e,r){this.updateHighlight(e.map(s=>({element:s,color:r})))}updateHighlight(e){if(!this._highlightIsUpToDate(e)){this.clearHighlight();for(const r of e){const s=this._createHighlightElement();this._glassPaneShadow.appendChild(s);let o;if(r.tooltipText){o=this._injectedScript.document.createElement("x-pw-tooltip"),this._glassPaneShadow.appendChild(o),o.style.top="0",o.style.left="0",o.style.display="flex";const l=this._injectedScript.document.createElement("x-pw-tooltip-line");l.textContent=r.tooltipText,o.appendChild(l)}this._renderedEntries.push({targetElement:r.element,color:r.color,tooltipElement:o,highlightElement:s})}for(const r of this._renderedEntries){if(r.box=r.targetElement.getBoundingClientRect(),!r.tooltipElement)continue;const{anchorLeft:s,anchorTop:o}=this.tooltipPosition(r.box,r.tooltipElement);r.tooltipTop=o,r.tooltipLeft=s}for(const r of this._renderedEntries){r.tooltipElement&&(r.tooltipElement.style.top=r.tooltipTop+"px",r.tooltipElement.style.left=r.tooltipLeft+"px");const s=r.box;r.highlightElement.style.backgroundColor=r.color,r.highlightElement.style.left=s.x+"px",r.highlightElement.style.top=s.y+"px",r.highlightElement.style.width=s.width+"px",r.highlightElement.style.height=s.height+"px",r.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:s.x,y:s.y,width:s.width,height:s.height}))}}}firstBox(){var e;return(e=this._renderedEntries[0])==null?void 0:e.box}firstTooltipBox(){const e=this._renderedEntries[0];if(!(!e||!e.tooltipElement||e.tooltipLeft===void 0||e.tooltipTop===void 0))return{x:e.tooltipLeft,y:e.tooltipTop,left:e.tooltipLeft,top:e.tooltipTop,width:e.tooltipElement.offsetWidth,height:e.tooltipElement.offsetHeight,bottom:e.tooltipTop+e.tooltipElement.offsetHeight,right:e.tooltipLeft+e.tooltipElement.offsetWidth,toJSON:()=>{}}}tooltipPosition(e,r){const s=r.offsetWidth,o=r.offsetHeight,l=this._glassPaneElement.offsetWidth,u=this._glassPaneElement.offsetHeight;let d=Math.max(5,e.left);d+s>l-5&&(d=l-s-5);let m=Math.max(0,e.bottom)+5;return m+o>u-5&&(Math.max(0,e.top)>o+5?m=Math.max(0,e.top)-o-5:m=u-5-o),{anchorLeft:d,anchorTop:m}}_highlightIsUpToDate(e){if(e.length!==this._renderedEntries.length)return!1;for(let r=0;r<this._renderedEntries.length;++r){if(e[r].element!==this._renderedEntries[r].targetElement||e[r].color!==this._renderedEntries[r].color)return!1;const s=this._renderedEntries[r].box;if(!s)return!1;const o=e[r].element.getBoundingClientRect();if(o.top!==s.top||o.right!==s.right||o.bottom!==s.bottom||o.left!==s.left)return!1}return!0}_createHighlightElement(){return this._injectedScript.document.createElement("x-pw-highlight")}appendChild(e){this._glassPaneShadow.appendChild(e)}onGlassPaneClick(e){this._glassPaneElement.style.pointerEvents="auto",this._glassPaneElement.style.backgroundColor="rgba(0, 0, 0, 0.3)",this._glassPaneElement.addEventListener("click",e)}offGlassPaneClick(e){this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.backgroundColor="transparent",this._glassPaneElement.removeEventListener("click",e)}}function U4(i,e,r){const s=i.left-e.right;if(!(s<0||r!==void 0&&s>r))return s+Math.max(e.bottom-i.bottom,0)+Math.max(i.top-e.top,0)}function j4(i,e,r){const s=e.left-i.right;if(!(s<0||r!==void 0&&s>r))return s+Math.max(e.bottom-i.bottom,0)+Math.max(i.top-e.top,0)}function V4(i,e,r){const s=e.top-i.bottom;if(!(s<0||r!==void 0&&s>r))return s+Math.max(i.left-e.left,0)+Math.max(e.right-i.right,0)}function $4(i,e,r){const s=i.top-e.bottom;if(!(s<0||r!==void 0&&s>r))return s+Math.max(i.left-e.left,0)+Math.max(e.right-i.right,0)}function H4(i,e,r){const s=r===void 0?50:r;let o=0;return i.left-e.right>=0&&(o+=i.left-e.right),e.left-i.right>=0&&(o+=e.left-i.right),e.top-i.bottom>=0&&(o+=e.top-i.bottom),i.top-e.bottom>=0&&(o+=i.top-e.bottom),o>s?void 0:o}const I4=["left-of","right-of","above","below","near"];function qA(i,e,r,s){const o=e.getBoundingClientRect(),l={"left-of":j4,"right-of":U4,above:V4,below:$4,near:H4}[i];let u;for(const d of r){if(d===e)continue;const m=l(o,d.getBoundingClientRect(),s);m!==void 0&&(u===void 0||m<u)&&(u=m)}return u}function FA(i,e){for(const r of e.jsonPath)i!=null&&(i=i[r]);return GA(i,e)}function GA(i,e){const r=typeof i=="string"&&!e.caseSensitive?i.toUpperCase():i,s=typeof e.value=="string"&&!e.caseSensitive?e.value.toUpperCase():e.value;return e.op==="<truthy>"?!!r:e.op==="="?s instanceof RegExp?typeof r=="string"&&!!r.match(s):r===s:typeof r!="string"||typeof s!="string"?!1:e.op==="*="?r.includes(s):e.op==="^="?r.startsWith(s):e.op==="$="?r.endsWith(s):e.op==="|="?r===s||r.startsWith(s+"-"):e.op==="~="?r.split(" ").includes(s):!1}function e0(i){const e=i.ownerDocument;return i.nodeName==="SCRIPT"||i.nodeName==="NOSCRIPT"||i.nodeName==="STYLE"||e.head&&e.head.contains(i)}function zn(i,e){let r=i.get(e);if(r===void 0){if(r={full:"",normalized:"",immediate:[]},!e0(e)){let s="";if(e instanceof HTMLInputElement&&(e.type==="submit"||e.type==="button"))r={full:e.value,normalized:An(e.value),immediate:[e.value]};else{for(let o=e.firstChild;o;o=o.nextSibling)if(o.nodeType===Node.TEXT_NODE)r.full+=o.nodeValue||"",s+=o.nodeValue||"";else{if(o.nodeType===Node.COMMENT_NODE)continue;s&&r.immediate.push(s),s="",o.nodeType===Node.ELEMENT_NODE&&(r.full+=zn(i,o).full)}s&&r.immediate.push(s),e.shadowRoot&&(r.full+=zn(i,e.shadowRoot).full),r.full&&(r.normalized=An(r.full))}}i.set(e,r)}return r}function Em(i,e,r){if(e0(e)||!r(zn(i,e)))return"none";for(let s=e.firstChild;s;s=s.nextSibling)if(s.nodeType===Node.ELEMENT_NODE&&r(zn(i,s)))return"selfAndChildren";return e.shadowRoot&&r(zn(i,e.shadowRoot))?"selfAndChildren":"self"}function YA(i,e){const r=DA(e);if(r)return r.map(l=>zn(i,l));const s=e.getAttribute("aria-label");if(s!==null&&s.trim())return[{full:s,normalized:An(s),immediate:[s]}];const o=e.nodeName==="INPUT"&&e.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(e.nodeName)||o){const l=e.labels;if(l)return[...l].map(u=>zn(i,u))}return[]}function PT(i){return i.displayName||i.name||"Anonymous"}function z4(i){if(i.type)switch(typeof i.type){case"function":return PT(i.type);case"string":return i.type;case"object":return i.type.displayName||(i.type.render?PT(i.type.render):"")}if(i._currentElement){const e=i._currentElement.type;if(typeof e=="string")return e;if(typeof e=="function")return e.displayName||e.name||"Anonymous"}return""}function P4(i){var e;return i.key??((e=i._currentElement)==null?void 0:e.key)}function B4(i){if(i.child){const r=[];for(let s=i.child;s;s=s.sibling)r.push(s);return r}if(!i._currentElement)return[];const e=r=>{var o;const s=(o=r._currentElement)==null?void 0:o.type;return typeof s=="function"||typeof s=="string"};if(i._renderedComponent){const r=i._renderedComponent;return e(r)?[r]:[]}return i._renderedChildren?[...Object.values(i._renderedChildren)].filter(e):[]}function q4(i){var s;const e=i.memoizedProps||((s=i._currentElement)==null?void 0:s.props);if(!e||typeof e=="string")return e;const r={...e};return delete r.children,r}function XA(i){var s;const e={key:P4(i),name:z4(i),children:B4(i).map(XA),rootElements:[],props:q4(i)},r=i.stateNode||i._hostNode||((s=i._renderedComponent)==null?void 0:s._hostNode);if(r instanceof Element)e.rootElements.push(r);else for(const o of e.children)e.rootElements.push(...o.rootElements);return e}function JA(i,e,r=[]){e(i)&&r.push(i);for(const s of i.children)JA(s,e,r);return r}function KA(i,e=[]){const s=(i.ownerDocument||i).createTreeWalker(i,NodeFilter.SHOW_ELEMENT);do{const o=s.currentNode,l=o,u=Object.keys(l).find(m=>m.startsWith("__reactContainer")&&l[m]!==null);if(u)e.push(l[u].stateNode.current);else{const m="_reactRootContainer";l.hasOwnProperty(m)&&l[m]!==null&&e.push(l[m]._internalRoot.current)}if(o instanceof Element&&o.hasAttribute("data-reactroot"))for(const m of Object.keys(o))(m.startsWith("__reactInternalInstance")||m.startsWith("__reactFiber"))&&e.push(o[m]);const d=o instanceof Element?o.shadowRoot:null;d&&KA(d,e)}while(s.nextNode());return e}const F4=()=>({queryAll(i,e){const{name:r,attributes:s}=uo(e,!1),u=KA(i.ownerDocument||i).map(m=>XA(m)).map(m=>JA(m,p=>{const v=p.props??{};if(p.key!==void 0&&(v.key=p.key),r&&p.name!==r||p.rootElements.some(g=>!nd(i,g)))return!1;for(const g of s)if(!FA(v,g))return!1;return!0})).flat(),d=new Set;for(const m of u)for(const p of m.rootElements)d.add(p);return[...d]}}),WA=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];WA.sort();function Du(i,e,r){if(!e.includes(r))throw new Error(`"${i}" attribute is only supported for roles: ${e.slice().sort().map(s=>`"${s}"`).join(", ")}`)}function _l(i,e){if(i.op!=="<truthy>"&&!e.includes(i.value))throw new Error(`"${i.name}" must be one of ${e.map(r=>JSON.stringify(r)).join(", ")}`)}function Sl(i,e){if(!e.includes(i.op))throw new Error(`"${i.name}" does not support "${i.op}" matcher`)}function G4(i,e){const r={role:e};for(const s of i)switch(s.name){case"checked":{Du(s.name,Hv,e),_l(s,[!0,!1,"mixed"]),Sl(s,["<truthy>","="]),r.checked=s.op==="<truthy>"?!0:s.value;break}case"pressed":{Du(s.name,zv,e),_l(s,[!0,!1,"mixed"]),Sl(s,["<truthy>","="]),r.pressed=s.op==="<truthy>"?!0:s.value;break}case"selected":{Du(s.name,$v,e),_l(s,[!0,!1]),Sl(s,["<truthy>","="]),r.selected=s.op==="<truthy>"?!0:s.value;break}case"expanded":{Du(s.name,Pv,e),_l(s,[!0,!1]),Sl(s,["<truthy>","="]),r.expanded=s.op==="<truthy>"?!0:s.value;break}case"level":{if(Du(s.name,Bv,e),typeof s.value=="string"&&(s.value=+s.value),s.op!=="="||typeof s.value!="number"||Number.isNaN(s.value))throw new Error('"level" attribute must be compared to a number');r.level=s.value;break}case"disabled":{_l(s,[!0,!1]),Sl(s,["<truthy>","="]),r.disabled=s.op==="<truthy>"?!0:s.value;break}case"name":{if(s.op==="<truthy>")throw new Error('"name" attribute must have a value');if(typeof s.value!="string"&&!(s.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');r.name=s.value,r.nameOp=s.op,r.exact=s.caseSensitive;break}case"include-hidden":{_l(s,[!0,!1]),Sl(s,["<truthy>","="]),r.includeHidden=s.op==="<truthy>"?!0:s.value;break}default:throw new Error(`Unknown attribute "${s.name}", must be one of ${WA.map(o=>`"${o}"`).join(", ")}.`)}return r}function Y4(i,e,r){const s=[],o=u=>{if(Bt(u)===e.role&&!(e.selected!==void 0&&RA(u)!==e.selected)&&!(e.checked!==void 0&&MA(u)!==e.checked)&&!(e.pressed!==void 0&&OA(u)!==e.pressed)&&!(e.expanded!==void 0&&LA(u)!==e.expanded)&&!(e.level!==void 0&&UA(u)!==e.level)&&!(e.disabled!==void 0&&um(u)!==e.disabled)&&!(!e.includeHidden&&Tr(u))){if(e.name!==void 0){const d=An(rd(u,!!e.includeHidden));if(typeof e.name=="string"&&(e.name=An(e.name)),r&&!e.exact&&e.nameOp==="="&&(e.nameOp="*="),!GA(d,{op:e.nameOp||"=",value:e.name,caseSensitive:!!e.exact}))return}s.push(u)}},l=u=>{const d=[];u.shadowRoot&&d.push(u.shadowRoot);for(const m of u.querySelectorAll("*"))o(m),m.shadowRoot&&d.push(m.shadowRoot);d.forEach(l)};return l(i),s}function BT(i){return{queryAll:(e,r)=>{const s=uo(r,!0),o=s.name.toLowerCase();if(!o)throw new Error("Role must not be empty");const l=G4(s.attributes,o);_m();try{return Y4(e,l,i)}finally{Sm()}}}}class X4{constructor(){this._retainCacheCounter=0,this._cacheText=new Map,this._cacheQueryCSS=new Map,this._cacheMatches=new Map,this._cacheQuery=new Map,this._cacheMatchesSimple=new Map,this._cacheMatchesParents=new Map,this._cacheCallMatches=new Map,this._cacheCallQuery=new Map,this._cacheQuerySimple=new Map,this._engines=new Map,this._engines.set("not",W4),this._engines.set("is",zu),this._engines.set("where",zu),this._engines.set("has",J4),this._engines.set("scope",K4),this._engines.set("light",Q4),this._engines.set("visible",Z4),this._engines.set("text",eL),this._engines.set("text-is",tL),this._engines.set("text-matches",nL),this._engines.set("has-text",rL),this._engines.set("right-of",Ru("right-of")),this._engines.set("left-of",Ru("left-of")),this._engines.set("above",Ru("above")),this._engines.set("below",Ru("below")),this._engines.set("near",Ru("near")),this._engines.set("nth-match",iL);const e=[...this._engines.keys()];e.sort();const r=[...QN];if(r.sort(),e.join("|")!==r.join("|"))throw new Error(`Please keep customCSSNames in sync with evaluator engines: ${e.join("|")} vs ${r.join("|")}`)}begin(){++this._retainCacheCounter}end(){--this._retainCacheCounter,this._retainCacheCounter||(this._cacheQueryCSS.clear(),this._cacheMatches.clear(),this._cacheQuery.clear(),this._cacheMatchesSimple.clear(),this._cacheMatchesParents.clear(),this._cacheCallMatches.clear(),this._cacheCallQuery.clear(),this._cacheQuerySimple.clear(),this._cacheText.clear())}_cached(e,r,s,o){e.has(r)||e.set(r,[]);const l=e.get(r),u=l.find(m=>s.every((p,v)=>m.rest[v]===p));if(u)return u.result;const d=o();return l.push({rest:s,result:d}),d}_checkSelector(e){if(!(typeof e=="object"&&e&&(Array.isArray(e)||"simples"in e&&e.simples.length)))throw new Error(`Malformed selector "${e}"`);return e}matches(e,r,s){const o=this._checkSelector(r);this.begin();try{return this._cached(this._cacheMatches,e,[o,s.scope,s.pierceShadow,s.originalScope],()=>Array.isArray(o)?this._matchesEngine(zu,e,o,s):(this._hasScopeClause(o)&&(s=this._expandContextForScopeMatching(s)),this._matchesSimple(e,o.simples[o.simples.length-1].selector,s)?this._matchesParents(e,o,o.simples.length-2,s):!1))}finally{this.end()}}query(e,r){const s=this._checkSelector(r);this.begin();try{return this._cached(this._cacheQuery,s,[e.scope,e.pierceShadow,e.originalScope],()=>{if(Array.isArray(s))return this._queryEngine(zu,e,s);this._hasScopeClause(s)&&(e=this._expandContextForScopeMatching(e));const o=this._scoreMap;this._scoreMap=new Map;let l=this._querySimple(e,s.simples[s.simples.length-1].selector);return l=l.filter(u=>this._matchesParents(u,s,s.simples.length-2,e)),this._scoreMap.size&&l.sort((u,d)=>{const m=this._scoreMap.get(u),p=this._scoreMap.get(d);return m===p?0:m===void 0?1:p===void 0?-1:m-p}),this._scoreMap=o,l})}finally{this.end()}}_markScore(e,r){this._scoreMap&&this._scoreMap.set(e,r)}_hasScopeClause(e){return e.simples.some(r=>r.selector.functions.some(s=>s.name==="scope"))}_expandContextForScopeMatching(e){if(e.scope.nodeType!==1)return e;const r=dn(e.scope);return r?{...e,scope:r,originalScope:e.originalScope||e.scope}:e}_matchesSimple(e,r,s){return this._cached(this._cacheMatchesSimple,e,[r,s.scope,s.pierceShadow,s.originalScope],()=>{if(e===s.scope||r.css&&!this._matchesCSS(e,r.css))return!1;for(const o of r.functions)if(!this._matchesEngine(this._getEngine(o.name),e,o.args,s))return!1;return!0})}_querySimple(e,r){return r.functions.length?this._cached(this._cacheQuerySimple,r,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=r.css;const o=r.functions;s==="*"&&o.length&&(s=void 0);let l,u=-1;s!==void 0?l=this._queryCSS(e,s):(u=o.findIndex(d=>this._getEngine(d.name).query!==void 0),u===-1&&(u=0),l=this._queryEngine(this._getEngine(o[u].name),e,o[u].args));for(let d=0;d<o.length;d++){if(d===u)continue;const m=this._getEngine(o[d].name);m.matches!==void 0&&(l=l.filter(p=>this._matchesEngine(m,p,o[d].args,e)))}for(let d=0;d<o.length;d++){if(d===u)continue;const m=this._getEngine(o[d].name);m.matches===void 0&&(l=l.filter(p=>this._matchesEngine(m,p,o[d].args,e)))}return l}):this._queryCSS(e,r.css||"*")}_matchesParents(e,r,s,o){return s<0?!0:this._cached(this._cacheMatchesParents,e,[r,s,o.scope,o.pierceShadow,o.originalScope],()=>{const{selector:l,combinator:u}=r.simples[s];if(u===">"){const d=Dh(e,o);return!d||!this._matchesSimple(d,l,o)?!1:this._matchesParents(d,r,s-1,o)}if(u==="+"){const d=Ob(e,o);return!d||!this._matchesSimple(d,l,o)?!1:this._matchesParents(d,r,s-1,o)}if(u===""){let d=Dh(e,o);for(;d;){if(this._matchesSimple(d,l,o)){if(this._matchesParents(d,r,s-1,o))return!0;if(r.simples[s-1].combinator==="")break}d=Dh(d,o)}return!1}if(u==="~"){let d=Ob(e,o);for(;d;){if(this._matchesSimple(d,l,o)){if(this._matchesParents(d,r,s-1,o))return!0;if(r.simples[s-1].combinator==="~")break}d=Ob(d,o)}return!1}if(u===">="){let d=e;for(;d;){if(this._matchesSimple(d,l,o)){if(this._matchesParents(d,r,s-1,o))return!0;if(r.simples[s-1].combinator==="")break}d=Dh(d,o)}return!1}throw new Error(`Unsupported combinator "${u}"`)})}_matchesEngine(e,r,s,o){if(e.matches)return this._callMatches(e,r,s,o);if(e.query)return this._callQuery(e,s,o).includes(r);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(e,r,s){if(e.query)return this._callQuery(e,s,r);if(e.matches)return this._queryCSS(r,"*").filter(o=>this._callMatches(e,o,s,r));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(e,r,s,o){return this._cached(this._cacheCallMatches,r,[e,o.scope,o.pierceShadow,o.originalScope,...s],()=>e.matches(r,s,o,this))}_callQuery(e,r,s){return this._cached(this._cacheCallQuery,e,[s.scope,s.pierceShadow,s.originalScope,...r],()=>e.query(s,r,this))}_matchesCSS(e,r){return e.matches(r)}_queryCSS(e,r){return this._cached(this._cacheQueryCSS,r,[e.scope,e.pierceShadow,e.originalScope],()=>{let s=[];function o(l){if(s=s.concat([...l.querySelectorAll(r)]),!!e.pierceShadow){l.shadowRoot&&o(l.shadowRoot);for(const u of l.querySelectorAll("*"))u.shadowRoot&&o(u.shadowRoot)}}return o(e.scope),s})}_getEngine(e){const r=this._engines.get(e);if(!r)throw new Error(`Unknown selector engine "${e}"`);return r}}const zu={matches(i,e,r,s){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');return e.some(o=>s.matches(i,o,r))},query(i,e,r){if(e.length===0)throw new Error('"is" engine expects non-empty selector list');let s=[];for(const o of e)s=s.concat(r.query(i,o));return e.length===1?s:QA(s)}},J4={matches(i,e,r,s){if(e.length===0)throw new Error('"has" engine expects non-empty selector list');return s.query({...r,scope:i},e).length>0}},K4={matches(i,e,r,s){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const o=r.originalScope||r.scope;return o.nodeType===9?i===o.documentElement:i===o},query(i,e,r){if(e.length!==0)throw new Error('"scope" engine expects no arguments');const s=i.originalScope||i.scope;if(s.nodeType===9){const o=s.documentElement;return o?[o]:[]}return s.nodeType===1?[s]:[]}},W4={matches(i,e,r,s){if(e.length===0)throw new Error('"not" engine expects non-empty selector list');return!s.matches(i,e,r)}},Q4={query(i,e,r){return r.query({...i,pierceShadow:!1},e)},matches(i,e,r,s){return s.matches(i,e,{...r,pierceShadow:!1})}},Z4={matches(i,e,r,s){if(e.length)throw new Error('"visible" engine expects no arguments');return Gr(i)}},eL={matches(i,e,r,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text" engine expects a single string');const o=An(e[0]).toLowerCase(),l=u=>u.normalized.toLowerCase().includes(o);return Em(s._cacheText,i,l)==="self"}},tL={matches(i,e,r,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"text-is" engine expects a single string');const o=An(e[0]),l=u=>!o&&!u.immediate.length?!0:u.immediate.some(d=>An(d)===o);return Em(s._cacheText,i,l)!=="none"}},nL={matches(i,e,r,s){if(e.length===0||typeof e[0]!="string"||e.length>2||e.length===2&&typeof e[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const o=new RegExp(e[0],e.length===2?e[1]:void 0),l=u=>o.test(u.full);return Em(s._cacheText,i,l)==="self"}},rL={matches(i,e,r,s){if(e.length!==1||typeof e[0]!="string")throw new Error('"has-text" engine expects a single string');if(e0(i))return!1;const o=An(e[0]).toLowerCase();return(u=>u.normalized.toLowerCase().includes(o))(zn(s._cacheText,i))}};function Ru(i){return{matches(e,r,s,o){const l=r.length&&typeof r[r.length-1]=="number"?r[r.length-1]:void 0,u=l===void 0?r:r.slice(0,r.length-1);if(r.length<1+(l===void 0?0:1))throw new Error(`"${i}" engine expects a selector list and optional maximum distance in pixels`);const d=o.query(s,u),m=qA(i,e,d,l);return m===void 0?!1:(o._markScore(e,m),!0)}}}const iL={query(i,e,r){let s=e[e.length-1];if(e.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof s!="number"||s<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const o=zu.query(i,e.slice(0,e.length-1),r);return s--,s<o.length?[o[s]]:[]}};function Dh(i,e){if(i!==e.scope)return e.pierceShadow?dn(i):i.parentElement||void 0}function Ob(i,e){if(i!==e.scope)return i.previousElementSibling||void 0}function QA(i){const e=new Map,r=[],s=[];function o(u){let d=e.get(u);if(d)return d;const m=dn(u);return m?o(m).children.push(u):r.push(u),d={children:[],taken:!1},e.set(u,d),d}for(const u of i)o(u).taken=!0;function l(u){const d=e.get(u);if(d.taken&&s.push(u),d.children.length>1){const m=new Set(d.children);d.children=[];let p=u.firstElementChild;for(;p&&d.children.length<m.size;)m.has(p)&&d.children.push(p),p=p.nextElementSibling;for(p=u.shadowRoot?u.shadowRoot.firstElementChild:null;p&&d.children.length<m.size;)m.has(p)&&d.children.push(p),p=p.nextElementSibling}d.children.forEach(l)}return r.forEach(l),s}const qT="(?:jan(?:uary)?|feb(?:ruary)?|mar(?:ch)?|apr(?:il)?|may|jun(?:e)?|jul(?:y)?|aug(?:ust)?|sep(?:t(?:ember)?)?|oct(?:ober)?|nov(?:ember)?|dec(?:ember)?)",t0=new RegExp(["\\d{4}[-/]\\d{1,2}[-/]\\d{1,2}(?:[\\sT,]\\d{1,2}:\\d{1,2}(?::\\d{1,2})?)?",`\\b${qT}\\b\\.?\\s+\\d{1,2}(?:,?\\s*\\d{4})?\\b`,`\\b\\d{1,2}\\s+${qT}\\b\\.?(?:\\s+\\d{4}\\b)?(?!\\s*\\d)`,"\\b(?:today|yesterday|tomorrow|just now)\\b(?!['’])","\\b(?:a few|an?|\\d+)\\s+(?:second|minute|hour|day|week|month|year)s?\\s+ago\\b"].join("|"),"i");function av(i){return t0.test(i)}const sL=/\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[\sT,]\d{1,2}:\d{1,2}(?::\d{1,2})?)?/,FT=new RegExp(t0.source,"iy"),GT=/[\s,;:·|\-–—)]+/y;function ZA(i){let e=0;for(;;){FT.lastIndex=e;const l=FT.exec(i);if(!l)break;GT.lastIndex=e+l[0].length;const u=GT.exec(i);if(!u||(e=e+l[0].length+u[0].length,e>=i.length))return null}const r=e?i.substring(e):i,s=t0.exec(r);return s?r.substring(0,s.index).replace(/[\s,;:·|\-–—(]+$/,"").trim()||null:e&&r.trim()||null}function YT(i){if(sL.test(i)){const e=i.replace(/[\s,]*\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[\sT,]\d{1,2}:\d{1,2}(?::\d{1,2})?)?\s*$/,"").replace(/^\s*\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[\sT,]\d{1,2}:\d{1,2}(?::\d{1,2})?)?[\s,]+/,"").trim();if(e.length>0&&e.length<i.length)return!0}return ZA(i)!==null}const eC=10,Fl=eC/2,XT=1,aL=2,oL=10,lL=50,tC=100,nC=120,rC=140,iC=160,Xh=180,sC=200,JT=250,cL=nC+Fl,uL=rC+Fl,KT=tC+Fl,dL=iC+Fl,fL=Xh+Fl,hL=sC+Fl,mL=300,Lb=500,pL=505,aC=510,gL=515,Ub=520,oC=530,yL=9e6,dm=1e4,bL=1e7,WT=dm+100,vL=1e3;function wL(i,e,r,s,o){const l=Cl(e,"button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link],[role=option],[role=menuitem],[role=tab],[role=treeitem]",o.root);if(l&&Gr(l))return l;const u=20,d=[],v=(o.root??e.ownerDocument).querySelectorAll('button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link],[role=option],[role=menuitem],[role=tab],[role=treeitem],[id$="Button"],[id$="button"]');for(const g of v){if(!Gr(g))continue;const y=g.getBoundingClientRect(),w=y.left+y.width/2,E=y.top+y.height/2,S=Math.sqrt(Math.pow(r-w,2)+Math.pow(s-E,2));S<=u&&d.push({element:g,distance:S})}return d.length===0?null:(d.sort((g,y)=>g.distance-y.distance),d[0].element)}function QT(i,e,r){i._evaluator.begin();const s={allowText:new Map,disallowText:new Map};_m(),Uv();try{let o=[];if(r.forTextExpect){let d=Pu(i,e.ownerDocument.documentElement,r);for(let m=e;m;m=dn(m)){const p=ro(s,i,m,{...r,noText:!0});if(!p)continue;if(io(p)<=vL){d=p;break}}o=[Jh(d)]}else{const d=e.nodeName==="LABEL"?e:e.closest("label");if(d!=null&&d.control&&!e.isContentEditable&&(e=d.control),!e.matches("input,textarea,select")&&!e.isContentEditable){const m=r.__clickX,p=r.__clickY;let v=!1;if(m!==void 0&&p!==void 0){const g=wL(i,e,m,p,r);g&&(e=g,v=!0)}else{const g=Cl(e,"button,select,input,[role=button],[role=checkbox],[role=radio],a,[role=link],[role=option],[role=menuitem],[role=tab],[role=treeitem]",r.root);g&&Gr(g)&&(e=g,v=!0)}if(!v){const g=e.closest("svg"),y=g==null?void 0:g.parentElement;y&&Gr(y)&&(e=y)}}if(r.multiple){const m=ro(s,i,e,r),p=ro(s,i,e,{...r,noText:!0});let v=[m,p];if(s.allowText.clear(),s.disallowText.clear(),m&&jb(m)&&v.push(ro(s,i,e,{...r,noCSSId:!0})),p&&jb(p)&&v.push(ro(s,i,e,{...r,noText:!0,noCSSId:!0})),v=v.filter(Boolean),!v.length){const g=Pu(i,e,r);v.push(g),jb(g)&&v.push(Pu(i,e,{...r,noCSSId:!0}))}o=[...new Set(v.map(g=>Jh(g)))]}else{const m=ro(s,i,e,r)||Pu(i,e,r);o=[Jh(m)]}}const l=o[0],u=i.parseSelector(l);return{selector:l,selectors:o,elements:i.querySelectorAll(u,r.root??e.ownerDocument)}}finally{jv(),Sm(),i._evaluator.end()}}function ro(i,e,r,s){if(s.root&&!nd(s.root,r))throw new Error("Target element must belong to the root's subtree");if(r===s.root)return[{engine:"css",selector:":scope",score:1}];if(r.ownerDocument.documentElement===r)return[{engine:"css",selector:"html",score:1}];let o=null;const l=d=>{(!o||io(d)<io(o))&&(o=d)},u=[];if(!s.noText)for(const d of NL(e,r,!s.isRecursive))u.push({candidate:d,isTextCandidate:!0});for(const d of TL(e,r,s))s.omitInternalEngines&&d.engine.startsWith("internal:")||u.push({candidate:[d],isTextCandidate:!1});u.sort((d,m)=>io(d.candidate)-io(m.candidate));for(const{candidate:d,isTextCandidate:m}of u){const p=e.querySelectorAll(e.parseSelector(Jh(d)),s.root??r.ownerDocument);if(!p.includes(r))continue;if(p.length===1){l(d);break}const v=new Set(["div","span","a","p","section","article","main","aside","header","footer","nav","ul","ol","li"]);if(d.length===1&&d[0].engine==="css"&&v.has(d[0].selector.toLowerCase())&&p.length>1)continue;const y=p.indexOf(r);if(!(y>5)&&(l([...d,{engine:"nth",selector:String(y),score:dm}]),!s.isRecursive))for(let w=dn(r);w&&w!==s.root;w=dn(w)){const E=p.filter($=>nd(w,$)&&$!==w),S=E.indexOf(r);if(E.length>5||S===-1||S===y&&E.length>1)continue;const T=E.length===1?d:[...d,{engine:"nth",selector:String(S),score:dm}];if(o&&io([{engine:"",selector:"",score:1},...T])>=io(o))continue;const D=!!s.noText||m,I=D?i.disallowText:i.allowText;let z=I.get(w);z===void 0&&(z=ro(i,e,w,{...s,isRecursive:!0,noText:D})||Pu(e,w,s),I.set(w,z)),z&&l([...z,...T])}}return o}function _L(i){const e=Bt(i);return e==="dialog"||e==="alertdialog"?!0:i.getAttribute("aria-modal")==="true"}function SL(i){return!!(/^react-aria\d+/.test(i)||/^mui-\d+/.test(i)||/^(mat|cdk)-[a-z]+-\d+$/.test(i)||i.includes(":"))}function lC(i,e){return!!(lv(e)||SL(e)||_L(i)&&/[a-zA-Z]\d{3,}$/.test(e))}function EL(i,e){const r=e.match(/^([A-Za-z][A-Za-z_-]{3,})(\d+)$/);if(!r)return!1;const s=r[1],o=i.ownerDocument;if(!o)return!1;const l=new RegExp(`^${s.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}\\d+$`);let u;try{u=`[id^="${window.CSS&&window.CSS.escape?window.CSS.escape(s):s}"]`}catch{u=`[id^="${s}"]`}const d=o.querySelectorAll(u);for(const m of d){const p=m.id;if(p!==e&&l.test(p))return!0}return!1}function xL(i){return!!(/\d{2,}[_-][a-zA-Z]/.test(i)||/[-_]\d+$/.test(i)||/^react-aria\d+/.test(i)||/^(mui|mat|cdk)-\d+/.test(i)||/^\d+$/.test(i)||/\d{4,}/.test(i)||/[a-zA-Z]\d{3,}$/.test(i)||i.includes(":"))}function TL(i,e,r){const s=[];{for(const v of["data-testid","data-test-id","data-test"])v!==r.testIdAttributeName&&e.getAttribute(v)&&s.push({engine:"css",selector:`[${v}=${ia(e.getAttribute(v))}]`,score:aL});if(!r.noCSSId){const v=e.getAttribute("id");v&&!lC(e,v)&&s.push({engine:"css",selector:cC(v),score:Lb})}const u=/--(?:highlight|hover|active|focus|focused|selected|disabled|open|closed|expanded|collapsed|checked|pressed|dragging|visible|hidden)\b/i;for(const v of e.classList)v.indexOf("__")>0&&!lv(v)&&!u.test(v)&&s.push({engine:"css",selector:`${qr(e)}.${uC(v)}`,score:pL});const d=new Set(["div","span","a","p","section","article","main","aside","header","footer","nav","ul","ol","li"]),m=e.nodeName.toLowerCase(),p=d.has(m);if(s.push({engine:"css",selector:qr(e),score:p?yL:oC}),p){const v=e.querySelectorAll("input[name], input[id], textarea[name], textarea[id], select[name], select[id], button[name], button[id]");for(const g of v){let y="",w="";const E=g.getAttribute("name");if(E)y="name",w=E;else{const T=g.getAttribute("id");T&&!lv(T)&&!EL(g,T)&&(y="id",w=T)}if(!y)continue;const S=g.nodeName.toLowerCase();s.push({engine:"css",selector:`${qr(e)}:has(${S}[${y}=${ia(w)}])`,score:gL});break}}}if(e.nodeName==="IFRAME"){for(const d of["name","title"])e.getAttribute(d)&&s.push({engine:"css",selector:`${qr(e)}[${d}=${ia(e.getAttribute(d))}]`,score:oL});const u=e.id;if(u&&xL(u)){const d=s.findIndex(p=>p.score===Lb);d!==-1&&s.splice(d,1);const m=e.getAttribute("src");if(m){const p=m.trim();if(p&&!/^(data|blob|javascript|about):/i.test(p)){const g=p.split(/[?#]/,1)[0].split("/").filter(Boolean),y=g[g.length-1];y&&s.push({engine:"css",selector:`iframe[src*=${ia(y)}]`,score:Lb})}}}return e.getAttribute(r.testIdAttributeName)&&s.push({engine:"css",selector:`[${r.testIdAttributeName}=${ia(e.getAttribute(r.testIdAttributeName))}]`,score:XT}),ov([s]),s}if(e.getAttribute(r.testIdAttributeName)){const d=`"${e.getAttribute(r.testIdAttributeName).replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"`;s.push({engine:"internal:testid",selector:`[${r.testIdAttributeName}=${d}]`,score:XT})}if(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){const u=e;if(u.placeholder){s.push({engine:"internal:attr",selector:`[placeholder=${Hn(u.placeholder,!0)}]`,score:cL});for(const d of Dl(u.placeholder))s.push({engine:"internal:attr",selector:`[placeholder=${Hn(d.text,!1)}]`,score:nC-d.scoreBonus})}}const o=YA(i._evaluator._cacheText,e);for(const u of o){const d=u.normalized;s.push({engine:"internal:label",selector:$n(d,!0),score:uL});for(const m of Dl(d))s.push({engine:"internal:label",selector:$n(m.text,!1),score:rC-m.scoreBonus})}const l=Bt(e);return l&&!["none","presentation"].includes(l)&&s.push({engine:"internal:role",selector:l,score:aC}),e.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(e.nodeName)&&s.push({engine:"css",selector:`${qr(e)}[name=${ia(e.getAttribute("name"))}]`,score:Ub}),["INPUT","TEXTAREA"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&e.getAttribute("type")&&s.push({engine:"css",selector:`${qr(e)}[type=${ia(e.getAttribute("type"))}]`,score:Ub}),["INPUT","TEXTAREA","SELECT"].includes(e.nodeName)&&e.getAttribute("type")!=="hidden"&&s.push({engine:"css",selector:qr(e),score:Ub+1}),ov([s]),s}function NL(i,e,r){if(e.nodeName==="SELECT")return[];const s=[],o=e.getAttribute("title");if(o){s.push([{engine:"internal:attr",selector:`[title=${Hn(o,!0)}]`,score:hL}]);for(const p of Dl(o))s.push([{engine:"internal:attr",selector:`[title=${Hn(p.text,!1)}]`,score:sC-p.scoreBonus}])}const l=e.getAttribute("alt");if(l&&["APPLET","AREA","IMG","INPUT"].includes(e.nodeName)){s.push([{engine:"internal:attr",selector:`[alt=${Hn(l,!0)}]`,score:dL}]);for(const p of Dl(l))s.push([{engine:"internal:attr",selector:`[alt=${Hn(p.text,!1)}]`,score:iC-p.scoreBonus}])}const u=zn(i._evaluator._cacheText,e).normalized,d=u?Dl(u):[];if(u){const p=YT(u)?WT:0;if(r){u.length<=80&&s.push([{engine:"internal:text",selector:$n(u,!0),score:fL+p}]);for(const g of d)s.push([{engine:"internal:text",selector:$n(g.text,!1),score:Xh-g.scoreBonus}])}const v={engine:"css",selector:qr(e),score:oC};for(const g of d)s.push([v,{engine:"internal:has-text",selector:$n(g.text,!1),score:Xh-g.scoreBonus}]);if(r&&u.length<=80){const g=new RegExp("^"+sm(u)+"$");s.push([v,{engine:"internal:has-text",selector:$n(g,!1),score:JT+p}])}}const m=Bt(e);if(m&&!["none","presentation"].includes(m)){const p=rd(e,!1);if(p&&!p.match(new RegExp("^\\p{Co}+$","u"))){const v=YT(p)?KT+WT:KT,g={engine:"internal:role",selector:`${m}[name=${Hn(p,!0)}]`,score:v};s.push([g]);for(const y of Dl(p))s.push([{engine:"internal:role",selector:`${m}[name=${Hn(y.text,!1)}]`,score:tC-y.scoreBonus}])}else{const v={engine:"internal:role",selector:`${m}`,score:aC};for(const g of d)s.push([v,{engine:"internal:has-text",selector:$n(g.text,!1),score:Xh-g.scoreBonus}]);if(r&&u.length<=80){const g=new RegExp("^"+sm(u)+"$");s.push([v,{engine:"internal:has-text",selector:$n(g,!1),score:JT}])}}}return ov(s),s}function cC(i){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(i)?"#"+i:`[id=${ia(i)}]`}function jb(i){return i.some(e=>e.engine==="css"&&(e.selector.startsWith("#")||e.selector.startsWith('[id="')))}function Pu(i,e,r){const s=r.root??e.ownerDocument,o=[];function l(d){const m=o.slice();d&&m.unshift(d);const p=m.join(" > "),v=i.parseSelector(p);return i.querySelector(v,s,!1)===e?p:void 0}function u(d){const m={engine:"css",selector:d,score:bL},p=i.parseSelector(d),v=i.querySelectorAll(p,s);if(v.length===1)return[m];const g={engine:"nth",selector:String(v.indexOf(e)),score:dm};return[m,g]}for(let d=e;d&&d!==s;d=dn(d)){let m="";if(d.id&&!r.noCSSId&&!lC(d,d.id)){const g=cC(d.id),y=l(g);if(y)return u(y);m=g}const p=d.parentNode,v=[...d.classList].map(uC);for(let g=0;g<v.length;++g){const y="."+v.slice(0,g+1).join("."),w=l(y);if(w)return u(w);!m&&p&&p.querySelectorAll(y).length===1&&(m=y)}if(p){const g=[...p.children],y=d.nodeName,E=g.filter(T=>T.nodeName===y).indexOf(d)===0?qr(d):`${qr(d)}:nth-child(${1+g.indexOf(d)})`,S=l(E);if(S)return u(S);m||(m=E)}else m||(m=qr(d));o.unshift(m)}return u(l())}function ov(i){for(const e of i)for(const r of e)r.score>lL&&r.score<mL&&(r.score+=Math.min(eC,r.selector.length/10|0))}function Jh(i){const e=[];let r="";for(const{engine:s,selector:o}of i)e.length&&(r!=="css"||s!=="css"||o.startsWith(":nth-match("))&&e.push(">>"),r=s,s==="css"?e.push(o):e.push(`${s}=${o}`);return e.join(" ")}function io(i){let e=0;for(let r=0;r<i.length;r++)e+=i[r].score*(i.length-r);return e}function lv(i){if(/^\d+$/.test(i)||/^.+__search_[a-zA-Z0-9]{4,}$/.test(i))return!0;let e,r=0;for(let s=0;s<i.length;++s){const o=i[s];let l;if(!(o==="-"||o==="_")){if(o>="a"&&o<="z"?l="lower":o>="A"&&o<="Z"?l="upper":o>="0"&&o<="9"?l="digit":l="other",l==="lower"&&e==="upper"){e=l;continue}e&&e!==l&&++r,e=l}}return r>=i.length/4}function Mu(i,e){if(i.length<=e)return i;i=i.substring(0,e);const r=i.match(/^(.*)\b(.+?)$/);return r?r[1].trimEnd():""}function Dl(i){let e=[];const r=/^\s*\d{4}[-/]\d{1,2}[-/]\d{1,2}/.test(i),s=/\d{4}[-/]\d{1,2}[-/]\d{1,2}(?:[\sT,]\d{1,2}:\d{1,2}(?::\d{1,2})?)?\s*$/.test(i);{const l=i.match(/^([\d.,]+)[^.,\w]/),u=l?l[1].length:0;if(u&&!r){const d=Mu(i.substring(u).trimStart(),80);av(d)||e.push({text:d,scoreBonus:d.length<=30?2:1})}}{const l=i.match(/[^.,\w]([\d.,]+)$/),u=l?l[1].length:0;if(u&&!s){const d=Mu(i.substring(0,i.length-u).trimEnd(),80);av(d)||e.push({text:d,scoreBonus:d.length<=30?2:1})}}let o=!1;{const l=ZA(i);if(l){const u=Mu(l,80);e.push({text:u,scoreBonus:u.length<=30?2:1}),o=!0}}return o||(i.length<=30?e.push({text:i,scoreBonus:0}):(e.push({text:Mu(i,80),scoreBonus:0}),e.push({text:Mu(i,30),scoreBonus:1}))),e=e.filter(l=>l.text),e.length||e.push({text:i.substring(0,80),scoreBonus:0}),e}function qr(i){return i.nodeName.toLocaleLowerCase().replace(/[:\.]/g,e=>"\\"+e)}function uC(i){let e="";for(let r=0;r<i.length;r++)e+=AL(i,r);return e}function AL(i,e){const r=i.charCodeAt(e);return r===0?"�":r>=1&&r<=31||r>=48&&r<=57&&(e===0||e===1&&i.charCodeAt(0)===45)?"\\"+r.toString(16)+" ":e===0&&r===45&&i.length===1?"\\"+i.charAt(e):r>=128||r===45||r===95||r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122?i.charAt(e):"\\"+i.charAt(e)}function dC(i,e){const r=i.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let s=r.substring(r.lastIndexOf("/")+1);return s.endsWith(e)&&(s=s.substring(0,s.length-e.length)),s}function CL(i,e){return e?e.toUpperCase():""}const kL=/(?:^|[-_/])(\w)/g,fC=i=>i&&i.replace(kL,CL);function DL(i){function e(v){const g=v.name||v._componentTag||v.__playwright_guessedName;if(g)return g;const y=v.__file;if(y)return fC(dC(y,".vue"))}function r(v,g){return v.type.__playwright_guessedName=g,g}function s(v){var y,w,E,S;const g=e(v.type||{});if(g)return g;if(v.root===v)return"Root";for(const T in(w=(y=v.parent)==null?void 0:y.type)==null?void 0:w.components)if(((E=v.parent)==null?void 0:E.type.components[T])===v.type)return r(v,T);for(const T in(S=v.appContext)==null?void 0:S.components)if(v.appContext.components[T]===v.type)return r(v,T);return"Anonymous Component"}function o(v){return v._isBeingDestroyed||v.isUnmounted}function l(v){return v.subTree.type.toString()==="Symbol(Fragment)"}function u(v){const g=[];return v.component&&g.push(v.component),v.suspense&&g.push(...u(v.suspense.activeBranch)),Array.isArray(v.children)&&v.children.forEach(y=>{y.component?g.push(y.component):g.push(...u(y))}),g.filter(y=>{var w;return!o(y)&&!((w=y.type.devtools)!=null&&w.hide)})}function d(v){return l(v)?m(v.subTree):[v.subTree.el]}function m(v){if(!v.children)return[];const g=[];for(let y=0,w=v.children.length;y<w;y++){const E=v.children[y];E.component?g.push(...d(E.component)):E.el&&g.push(E.el)}return g}function p(v){return{name:s(v),children:u(v.subTree).map(p),rootElements:d(v),props:v.props}}return p(i)}function RL(i){function e(l){const u=l.displayName||l.name||l._componentTag;if(u)return u;const d=l.__file;if(d)return fC(dC(d,".vue"))}function r(l){const u=e(l.$options||l.fnOptions||{});return u||(l.$root===l?"Root":"Anonymous Component")}function s(l){return l.$children?l.$children:Array.isArray(l.subTree.children)?l.subTree.children.filter(u=>!!u.component).map(u=>u.component):[]}function o(l){return{name:r(l),children:s(l).map(o),rootElements:[l.$el],props:l._props}}return o(i)}function hC(i,e,r=[]){e(i)&&r.push(i);for(const s of i.children)hC(s,e,r);return r}function mC(i,e=[]){const s=(i.ownerDocument||i).createTreeWalker(i,NodeFilter.SHOW_ELEMENT),o=new Set;do{const l=s.currentNode;l.__vue__&&o.add(l.__vue__.$root),l.__vue_app__&&l._vnode&&l._vnode.component&&e.push({root:l._vnode.component,version:3});const u=l instanceof Element?l.shadowRoot:null;u&&mC(u,e)}while(s.nextNode());for(const l of o)e.push({version:2,root:l});return e}const ML=()=>({queryAll(i,e){const r=i.ownerDocument||i,{name:s,attributes:o}=uo(e,!1),d=mC(r).map(p=>p.version===3?DL(p.root):RL(p.root)).map(p=>hC(p,v=>{if(s&&v.name!==s||v.rootElements.some(g=>!nd(i,g)))return!1;for(const g of o)if(!FA(v.props,g))return!1;return!0})).flat(),m=new Set;for(const p of d)for(const v of p.rootElements)m.add(v);return[...m]}}),ZT={queryAll(i,e){e.startsWith("/")&&i.nodeType!==Node.DOCUMENT_NODE&&(e="."+e);const r=[],s=i.ownerDocument||i;if(!s)return r;const o=s.evaluate(e,i,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let l=o.iterateNext();l;l=o.iterateNext())l.nodeType===Node.ELEMENT_NODE&&r.push(l);return r}};function n0(i,e,r){return`internal:attr=[${i}=${Hn(e,(r==null?void 0:r.exact)||!1)}]`}function OL(i,e){return`internal:testid=[${i}=${Hn(e,!0)}]`}function LL(i,e){return"internal:label="+$n(i,!!(e!=null&&e.exact))}function UL(i,e){return n0("alt",i,e)}function jL(i,e){return n0("title",i,e)}function VL(i,e){return n0("placeholder",i,e)}function $L(i,e){return"internal:text="+$n(i,!!(e!=null&&e.exact))}function HL(i,e={}){const r=[];return e.checked!==void 0&&r.push(["checked",String(e.checked)]),e.disabled!==void 0&&r.push(["disabled",String(e.disabled)]),e.selected!==void 0&&r.push(["selected",String(e.selected)]),e.expanded!==void 0&&r.push(["expanded",String(e.expanded)]),e.includeHidden!==void 0&&r.push(["include-hidden",String(e.includeHidden)]),e.level!==void 0&&r.push(["level",String(e.level)]),e.name!==void 0&&r.push(["name",Hn(e.name,!!e.exact)]),e.pressed!==void 0&&r.push(["pressed",String(e.pressed)]),`internal:role=${i}${r.map(([s,o])=>`[${s}=${o}]`).join("")}`}const Ou=Symbol("selector"),IL=class Bu{constructor(e,r,s){if(s!=null&&s.hasText&&(r+=` >> internal:has-text=${$n(s.hasText,!1)}`),s!=null&&s.hasNotText&&(r+=` >> internal:has-not-text=${$n(s.hasNotText,!1)}`),s!=null&&s.has&&(r+=" >> internal:has="+JSON.stringify(s.has[Ou])),s!=null&&s.hasNot&&(r+=" >> internal:has-not="+JSON.stringify(s.hasNot[Ou])),(s==null?void 0:s.visible)!==void 0&&(r+=` >> visible=${s.visible?"true":"false"}`),this[Ou]=r,r){const u=e.parseSelector(r);this.element=e.querySelector(u,e.document,!1),this.elements=e.querySelectorAll(u,e.document)}const o=r,l=this;l.locator=(u,d)=>new Bu(e,o?o+" >> "+u:u,d),l.getByTestId=u=>l.locator(OL(e.testIdAttributeNameForStrictErrorAndConsoleCodegen(),u)),l.getByAltText=(u,d)=>l.locator(UL(u,d)),l.getByLabel=(u,d)=>l.locator(LL(u,d)),l.getByPlaceholder=(u,d)=>l.locator(VL(u,d)),l.getByText=(u,d)=>l.locator($L(u,d)),l.getByTitle=(u,d)=>l.locator(jL(u,d)),l.getByRole=(u,d={})=>l.locator(HL(u,d)),l.filter=u=>new Bu(e,r,u),l.first=()=>l.locator("nth=0"),l.last=()=>l.locator("nth=-1"),l.nth=u=>l.locator(`nth=${u}`),l.and=u=>new Bu(e,o+" >> internal:and="+JSON.stringify(u[Ou])),l.or=u=>new Bu(e,o+" >> internal:or="+JSON.stringify(u[Ou]))}};let zL=IL;class PL{constructor(e){this._injectedScript=e}install(){this._injectedScript.window.playwright||(this._injectedScript.window.playwright={$:(e,r)=>this._querySelector(e,!!r),$$:e=>this._querySelectorAll(e),inspect:e=>this._inspect(e),selector:e=>this._selector(e),generateLocator:(e,r)=>this._generateLocator(e,r),ariaSnapshot:(e,r)=>this._injectedScript.ariaSnapshot(e||this._injectedScript.document.body,r||{mode:"expect"}),resume:()=>this._resume(),...new zL(this._injectedScript,"")},delete this._injectedScript.window.playwright.filter,delete this._injectedScript.window.playwright.first,delete this._injectedScript.window.playwright.last,delete this._injectedScript.window.playwright.nth,delete this._injectedScript.window.playwright.and,delete this._injectedScript.window.playwright.or)}_querySelector(e,r){if(typeof e!="string")throw new Error("Usage: playwright.query('Playwright >> selector').");const s=this._injectedScript.parseSelector(e);return this._injectedScript.querySelector(s,this._injectedScript.document,r)}_querySelectorAll(e){if(typeof e!="string")throw new Error("Usage: playwright.$$('Playwright >> selector').");const r=this._injectedScript.parseSelector(e);return this._injectedScript.querySelectorAll(r,this._injectedScript.document)}_inspect(e){if(typeof e!="string")throw new Error("Usage: playwright.inspect('Playwright >> selector').");this._injectedScript.window.inspect(this._querySelector(e,!1))}_selector(e){if(!(e instanceof Element))throw new Error("Usage: playwright.selector(element).");return this._injectedScript.generateSelectorSimple(e)}_generateLocator(e,r){if(!(e instanceof Element))throw new Error("Usage: playwright.locator(element).");const s=this._injectedScript.generateSelectorSimple(e);return la(r||"javascript",s)}_resume(){if(!this._injectedScript.window.__pw_resume)return!1;this._injectedScript.window.__pw_resume().catch(()=>{})}}function BL(i){try{return i instanceof RegExp||Object.prototype.toString.call(i)==="[object RegExp]"}catch{return!1}}function qL(i){try{return i instanceof Date||Object.prototype.toString.call(i)==="[object Date]"}catch{return!1}}function FL(i){try{return i instanceof URL||Object.prototype.toString.call(i)==="[object URL]"}catch{return!1}}function GL(i){var e;try{return i instanceof Error||i&&((e=Object.getPrototypeOf(i))==null?void 0:e.name)==="Error"}catch{return!1}}function YL(i,e){try{return i instanceof e||Object.prototype.toString.call(i)===`[object ${e.name}]`}catch{return!1}}const pC={i8:Int8Array,ui8:Uint8Array,ui8c:Uint8ClampedArray,i16:Int16Array,ui16:Uint16Array,i32:Int32Array,ui32:Uint32Array,f32:Float32Array,f64:Float64Array,bi64:BigInt64Array,bui64:BigUint64Array};function XL(i){if("toBase64"in i)return i.toBase64();const e=Array.from(new Uint8Array(i.buffer,i.byteOffset,i.byteLength)).map(r=>String.fromCharCode(r)).join("");return btoa(e)}function JL(i,e){const r=atob(i),s=new Uint8Array(r.length);for(let o=0;o<r.length;o++)s[o]=r.charCodeAt(o);return new e(s.buffer)}function cv(i,e=[],r=new Map){if(!Object.is(i,void 0)){if(typeof i=="object"&&i){if("ref"in i)return r.get(i.ref);if("v"in i)return i.v==="undefined"?void 0:i.v==="null"?null:i.v==="NaN"?NaN:i.v==="Infinity"?1/0:i.v==="-Infinity"?-1/0:i.v==="-0"?-0:void 0;if("d"in i)return new Date(i.d);if("u"in i)return new URL(i.u);if("bi"in i)return BigInt(i.bi);if("e"in i){const s=new Error(i.e.m);return s.name=i.e.n,s.stack=i.e.s,s}if("r"in i)return new RegExp(i.r.p,i.r.f);if("a"in i){const s=[];r.set(i.id,s);for(const o of i.a)s.push(cv(o,e,r));return s}if("o"in i){const s={};r.set(i.id,s);for(const{k:o,v:l}of i.o)o!=="__proto__"&&(s[o]=cv(l,e,r));return s}if("h"in i)return e[i.h];if("ta"in i)return JL(i.ta.b,pC[i.ta.k])}return i}}function KL(i,e){return uv(i,e,{visited:new Map,lastId:0})}function uv(i,e,r){if(i&&typeof i=="object"){if(typeof globalThis.Window=="function"&&i instanceof globalThis.Window)return"ref: <Window>";if(typeof globalThis.Document=="function"&&i instanceof globalThis.Document)return"ref: <Document>";if(typeof globalThis.Node=="function"&&i instanceof globalThis.Node)return"ref: <Node>"}return gC(i,e,r)}function gC(i,e,r){var l;const s=e(i);if("fallThrough"in s)i=s.fallThrough;else return s;if(typeof i=="symbol")return{v:"undefined"};if(Object.is(i,void 0))return{v:"undefined"};if(Object.is(i,null))return{v:"null"};if(Object.is(i,NaN))return{v:"NaN"};if(Object.is(i,1/0))return{v:"Infinity"};if(Object.is(i,-1/0))return{v:"-Infinity"};if(Object.is(i,-0))return{v:"-0"};if(typeof i=="boolean"||typeof i=="number"||typeof i=="string")return i;if(typeof i=="bigint")return{bi:i.toString()};if(GL(i)){let u;return(l=i.stack)!=null&&l.startsWith(i.name+": "+i.message)?u=i.stack:u=`${i.name}: ${i.message}
339
+ ${i.stack}`,{e:{n:i.name,m:i.message,s:u}}}if(qL(i))return{d:i.toJSON()};if(FL(i))return{u:i.toJSON()};if(BL(i))return{r:{p:i.source,f:i.flags}};for(const[u,d]of Object.entries(pC))if(YL(i,d))return{ta:{b:XL(i),k:u}};const o=r.visited.get(i);if(o)return{ref:o};if(Array.isArray(i)){const u=[],d=++r.lastId;r.visited.set(i,d);for(let m=0;m<i.length;++m)u.push(uv(i[m],e,r));return{a:u,id:d}}if(typeof i=="object"){const u=[],d=++r.lastId;r.visited.set(i,d);for(const p of Object.keys(i)){let v;try{v=i[p]}catch{continue}p==="toJSON"&&typeof v=="function"?u.push({k:p,v:{o:[],id:0}}):u.push({k:p,v:uv(v,e,r)})}let m;try{u.length===0&&i.toJSON&&typeof i.toJSON=="function"&&(m={value:i.toJSON()})}catch{}return m?gC(m.value,e,r):{o:u,id:d}}}class WL{constructor(e,r){var s,o,l,u,d,m,p,v;this.global=e,this.isUnderTest=r,e.__pwClock?this.builtins=e.__pwClock.builtins:this.builtins={setTimeout:(s=e.setTimeout)==null?void 0:s.bind(e),clearTimeout:(o=e.clearTimeout)==null?void 0:o.bind(e),setInterval:(l=e.setInterval)==null?void 0:l.bind(e),clearInterval:(u=e.clearInterval)==null?void 0:u.bind(e),requestAnimationFrame:(d=e.requestAnimationFrame)==null?void 0:d.bind(e),cancelAnimationFrame:(m=e.cancelAnimationFrame)==null?void 0:m.bind(e),requestIdleCallback:(p=e.requestIdleCallback)==null?void 0:p.bind(e),cancelIdleCallback:(v=e.cancelIdleCallback)==null?void 0:v.bind(e),performance:e.performance,Intl:e.Intl,Date:e.Date},this.isUnderTest&&(e.builtins=this.builtins)}evaluate(e,r,s,o,...l){const u=l.slice(0,o),d=l.slice(o),m=[];for(let v=0;v<u.length;v++)m[v]=cv(u[v],d);let p=this.global.eval(s);return e===!0?p=p(...m):e===!1?p=p:typeof p=="function"&&(p=p(...m)),r?this._promiseAwareJsonValueNoThrow(p):p}jsonValue(e,r){if(r!==void 0)return KL(r,s=>({fallThrough:s}))}_promiseAwareJsonValueNoThrow(e){const r=s=>{try{return this.jsonValue(!0,s)}catch{return}};return e&&typeof e=="object"&&typeof e.then=="function"?(async()=>{const s=await e;return r(s)})():r(e)}}class yC{constructor(e,r){this._testIdAttributeNameForStrictErrorAndConsoleCodegen="data-testid",this._lastAriaSnapshotForTrack=new Map,this.utils={asLocator:la,cacheNormalizedWhitespaces:dO,elementText:zn,getAriaRole:Bt,getElementAccessibleDescription:jT,getElementAccessibleName:rd,isElementVisible:Gr,isInsideScope:nd,normalizeWhiteSpace:An,parseAriaSnapshot:Rv,generateAriaTree:Ju,findNewElement:L4,builtins:null},this.window=e,this.document=e.document,this.isUnderTest=r.isUnderTest,this.utils.builtins=new WL(e,r.isUnderTest).builtins,this._sdkLanguage=r.sdkLanguage,this._testIdAttributeNameForStrictErrorAndConsoleCodegen=r.testIdAttributeName,this._evaluator=new X4,this.consoleApi=new PL(this),this.onGlobalListenersRemoved=new Set,this._autoClosingTags=new Set(["AREA","BASE","BR","COL","COMMAND","EMBED","HR","IMG","INPUT","KEYGEN","LINK","MENUITEM","META","PARAM","SOURCE","TRACK","WBR"]),this._booleanAttributes=new Set(["checked","selected","disabled","readonly","multiple"]),this._eventTypes=new Map([["auxclick","mouse"],["click","mouse"],["dblclick","mouse"],["mousedown","mouse"],["mouseeenter","mouse"],["mouseleave","mouse"],["mousemove","mouse"],["mouseout","mouse"],["mouseover","mouse"],["mouseup","mouse"],["mouseleave","mouse"],["mousewheel","mouse"],["keydown","keyboard"],["keyup","keyboard"],["keypress","keyboard"],["textInput","keyboard"],["touchstart","touch"],["touchmove","touch"],["touchend","touch"],["touchcancel","touch"],["pointerover","pointer"],["pointerout","pointer"],["pointerenter","pointer"],["pointerleave","pointer"],["pointerdown","pointer"],["pointerup","pointer"],["pointermove","pointer"],["pointercancel","pointer"],["gotpointercapture","pointer"],["lostpointercapture","pointer"],["focus","focus"],["blur","focus"],["drag","drag"],["dragstart","drag"],["dragend","drag"],["dragover","drag"],["dragenter","drag"],["dragleave","drag"],["dragexit","drag"],["drop","drag"],["wheel","wheel"],["deviceorientation","deviceorientation"],["deviceorientationabsolute","deviceorientation"],["devicemotion","devicemotion"]]),this._hoverHitTargetInterceptorEvents=new Set(["mousemove"]),this._tapHitTargetInterceptorEvents=new Set(["pointerdown","pointerup","touchstart","touchend","touchcancel"]),this._mouseHitTargetInterceptorEvents=new Set(["mousedown","mouseup","pointerdown","pointerup","click","auxclick","dblclick","contextmenu"]),this._allHitTargetInterceptorEvents=new Set([...this._hoverHitTargetInterceptorEvents,...this._tapHitTargetInterceptorEvents,...this._mouseHitTargetInterceptorEvents]),this._engines=new Map,this._engines.set("xpath",ZT),this._engines.set("xpath:light",ZT),this._engines.set("_react",F4()),this._engines.set("_vue",ML()),this._engines.set("role",BT(!1)),this._engines.set("text",this._createTextEngine(!0,!1)),this._engines.set("text:light",this._createTextEngine(!1,!1)),this._engines.set("id",this._createAttributeEngine("id",!0)),this._engines.set("id:light",this._createAttributeEngine("id",!1)),this._engines.set("data-testid",this._createAttributeEngine("data-testid",!0)),this._engines.set("data-testid:light",this._createAttributeEngine("data-testid",!1)),this._engines.set("data-test-id",this._createAttributeEngine("data-test-id",!0)),this._engines.set("data-test-id:light",this._createAttributeEngine("data-test-id",!1)),this._engines.set("data-test",this._createAttributeEngine("data-test",!0)),this._engines.set("data-test:light",this._createAttributeEngine("data-test",!1)),this._engines.set("css",this._createCSSEngine()),this._engines.set("nth",{queryAll:()=>[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",BT(!0)),this._engines.set("internal:describe",this._createDescribeEngine()),this._engines.set("aria-ref",this._createAriaRefEngine());for(const{name:s,source:o}of r.customEngines)this._engines.set(s,this.eval(o));this._stableRafCount=r.stableRafCount,this._browserName=r.browserName,this._isUtilityWorld=!!r.isUtilityWorld,t4({browserNameForWorkarounds:r.browserName}),this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),this.isUnderTest&&(this.window.__injectedScript=this)}eval(e){return this.window.eval(e)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(e){const r=cd(e);return cO(r,s=>{if(!this._engines.has(s.name))throw this.createStacklessError(`Unknown engine "${s.name}" while parsing selector ${e}`)}),r}generateSelector(e,r){return QT(this,e,r)}generateSelectorSimple(e,r){return QT(this,e,{...r,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(e,r,s){const o=this.querySelectorAll(e,r);if(s&&o.length>1)throw this.strictModeViolationError(e,o);return this.checkDeprecatedSelectorUsage(e,o),o[0]}_queryNth(e,r){const s=[...e];let o=+r.body;return o===-1&&(o=s.length-1),new Set(s.slice(o,o+1))}_queryLayoutSelector(e,r,s){const o=r.name,l=r.body,u=[],d=this.querySelectorAll(l.parsed,s);for(const m of e){const p=qA(o,m,d,l.distance);p!==void 0&&u.push({element:m,score:p})}return u.sort((m,p)=>m.score-p.score),new Set(u.map(m=>m.element))}ariaSnapshot(e,r){return this.incrementalAriaSnapshot(e,r).full}incrementalAriaSnapshot(e,r){if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Can only capture aria snapshot of Element nodes.");const s=Ju(e,r),o=Ku(s,r);let l;if(r.track){const u=this._lastAriaSnapshotForTrack.get(r.track);u&&(l=Ku(s,r,u)),this._lastAriaSnapshotForTrack.set(r.track,s)}return this._lastAriaSnapshotForQuery=s,{full:o,incremental:l,iframeRefs:s.iframeRefs}}ariaSnapshotForRecorder(){const e=Ju(this.document.body,{mode:"ai"});return{ariaSnapshot:Ku(e,{mode:"ai"}),refs:e.refs}}getAllElementsMatchingExpectAriaTemplate(e,r){return k4(e.documentElement,r)}querySelectorAll(e,r){if(e.capture!==void 0){if(e.parts.some(o=>o.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const s={parts:e.parts.slice(0,e.capture+1)};if(e.capture<e.parts.length-1){const o={parts:e.parts.slice(e.capture+1)},l={name:"internal:has",body:{parsed:o},source:ki(o)};s.parts.push(l)}return this.querySelectorAll(s,r)}if(!r.querySelectorAll)throw this.createStacklessError("Node is not queryable.");if(e.capture!==void 0)throw this.createStacklessError("Internal error: there should not be a capture in the selector.");if(r.nodeType===11&&e.parts.length===1&&e.parts[0].name==="css"&&e.parts[0].source===":scope")return[r];this._evaluator.begin();try{let s=new Set([r]);for(const o of e.parts)if(o.name==="nth")s=this._queryNth(s,o);else if(o.name==="internal:and"){const l=this.querySelectorAll(o.body.parsed,r);s=new Set(l.filter(u=>s.has(u)))}else if(o.name==="internal:or"){const l=this.querySelectorAll(o.body.parsed,r);s=new Set(QA(new Set([...s,...l])))}else if(I4.includes(o.name))s=this._queryLayoutSelector(s,o,r);else{const l=new Set;for(const u of s){const d=this._queryEngineAll(o,u);for(const m of d)l.add(m)}s=l}return[...s]}finally{this._evaluator.end()}}_queryEngineAll(e,r){const s=this._engines.get(e.name).queryAll(r,e.body);for(const o of s)if(!("nodeName"in o))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(o)}`);return s}_createAttributeEngine(e,r){const s=o=>[{simples:[{selector:{css:`[${e}=${JSON.stringify(o)}]`,functions:[]},combinator:""}]}];return{queryAll:(o,l)=>this._evaluator.query({scope:o,pierceShadow:r},s(l))}}_createCSSEngine(){return{queryAll:(e,r)=>this._evaluator.query({scope:e,pierceShadow:!0},r)}}_createTextEngine(e,r){return{queryAll:(o,l)=>{const{matcher:u,kind:d}=Mh(l,r),m=[];let p=null;const v=y=>{if(d==="lax"&&p&&p.contains(y))return!1;const w=Em(this._evaluator._cacheText,y,u);w==="none"&&(p=y),(w==="self"||w==="selfAndChildren"&&d==="strict"&&!r)&&m.push(y)};o.nodeType===Node.ELEMENT_NODE&&v(o);const g=this._evaluator._queryCSS({scope:o,pierceShadow:e},"*");for(const y of g)v(y);return m}}}_createInternalHasTextEngine(){return{queryAll:(e,r)=>{if(e.nodeType!==1)return[];const s=e,o=zn(this._evaluator._cacheText,s),{matcher:l}=Mh(r,!0);return l(o)?[s]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(e,r)=>{if(e.nodeType!==1)return[];const s=e,o=zn(this._evaluator._cacheText,s),{matcher:l}=Mh(r,!0);return l(o)?[]:[s]}}}_createInternalLabelEngine(){return{queryAll:(e,r)=>{const{matcher:s}=Mh(r,!0);return this._evaluator._queryCSS({scope:e,pierceShadow:!0},"*").filter(l=>YA(this._evaluator._cacheText,l).some(u=>s(u)))}}}_createNamedAttributeEngine(){return{queryAll:(r,s)=>{const o=uo(s,!0);if(o.name||o.attributes.length!==1)throw new Error("Malformed attribute selector: "+s);const{name:l,value:u,caseSensitive:d}=o.attributes[0],m=d?null:u.toLowerCase();let p;return u instanceof RegExp?p=g=>!!g.match(u):d?p=g=>g===u:p=g=>g.toLowerCase().includes(m),this._evaluator._queryCSS({scope:r,pierceShadow:!0},`[${l}]`).filter(g=>p(g.getAttribute(l)))}}}_createDescribeEngine(){return{queryAll:r=>r.nodeType!==1?[]:[r]}}_createControlEngine(){return{queryAll(e,r){if(r==="enter-frame")return[];if(r==="return-empty")return[];if(r==="component")return e.nodeType!==1?[]:[e.childElementCount===1?e.firstElementChild:e];throw new Error(`Internal error, unknown internal:control selector ${r}`)}}}_createHasEngine(){return{queryAll:(r,s)=>r.nodeType!==1?[]:!!this.querySelector(s.parsed,r,!1)?[r]:[]}}_createHasNotEngine(){return{queryAll:(r,s)=>r.nodeType!==1?[]:!!this.querySelector(s.parsed,r,!1)?[]:[r]}}_createVisibleEngine(){return{queryAll:(r,s)=>{if(r.nodeType!==1)return[];const o=s==="true";return Gr(r)===o?[r]:[]}}}_createInternalChainEngine(){return{queryAll:(r,s)=>this.querySelectorAll(s.parsed,r)}}extend(e,r){const s=this.window.eval(`
340
+ (() => {
341
+ const module = {};
342
+ ${e}
343
+ return module.exports.default();
344
+ })()`);return new s(this,r)}async viewportRatio(e){return await new Promise(r=>{const s=new IntersectionObserver(o=>{r(o[0].intersectionRatio),s.disconnect()});s.observe(e),this.utils.builtins.requestAnimationFrame(()=>{})})}getElementBorderWidth(e){if(e.nodeType!==Node.ELEMENT_NODE||!e.ownerDocument||!e.ownerDocument.defaultView)return{left:0,top:0};const r=e.ownerDocument.defaultView.getComputedStyle(e);return{left:parseInt(r.borderLeftWidth||"",10),top:parseInt(r.borderTopWidth||"",10)}}describeIFrameStyle(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return"error:notconnected";const r=e.ownerDocument.defaultView;for(let o=e;o;o=dn(o))if(r.getComputedStyle(o).transform!=="none")return"transformed";const s=r.getComputedStyle(e);return{left:parseInt(s.borderLeftWidth||"",10)+parseInt(s.paddingLeft||"",10),top:parseInt(s.borderTopWidth||"",10)+parseInt(s.paddingTop||"",10)}}retarget(e,r){let s=e.nodeType===Node.ELEMENT_NODE?e:e.parentElement;if(!s)return null;if(r==="none")return s;if(!s.matches("input, textarea, select")&&!s.isContentEditable&&(r==="button-link"?s=s.closest("button, [role=button], a, [role=link]")||s:s=s.closest("button, [role=button], [role=checkbox], [role=radio]")||s),r==="follow-label"&&!s.matches("a, input, textarea, button, select, [role=link], [role=button], [role=checkbox], [role=radio]")&&!s.isContentEditable){const o=s.closest("label");o&&o.control&&(s=o.control)}return s}async checkElementStates(e,r){if(r.includes("stable")){const s=await this._checkElementIsStable(e);if(s===!1)return{missingState:"stable"};if(s==="error:notconnected")return"error:notconnected"}for(const s of r)if(s!=="stable"){const o=this.elementState(e,s);if(o.received==="error:notconnected")return"error:notconnected";if(!o.matches)return{missingState:s}}}async _checkElementIsStable(e){const r=Symbol("continuePolling");let s,o=0,l=0;const u=()=>{const g=this.retarget(e,"no-follow-label");if(!g)return"error:notconnected";const y=this.utils.builtins.performance.now();if(this._stableRafCount>1&&y-l<15)return r;l=y;const w=g.getBoundingClientRect(),E={x:w.top,y:w.left,width:w.width,height:w.height};if(s){if(!(E.x===s.x&&E.y===s.y&&E.width===s.width&&E.height===s.height))return!1;if(++o>=this._stableRafCount)return!0}return s=E,r};let d,m;const p=new Promise((g,y)=>{d=g,m=y}),v=()=>{try{const g=u();g!==r?d(g):this.utils.builtins.requestAnimationFrame(v)}catch(g){m(g)}};return this.utils.builtins.requestAnimationFrame(v),p}_createAriaRefEngine(){return{queryAll:(r,s)=>{var l,u;const o=(u=(l=this._lastAriaSnapshotForQuery)==null?void 0:l.elements)==null?void 0:u.get(s);return o&&o.isConnected?[o]:[]}}}elementState(e,r){const s=this.retarget(e,["visible","hidden"].includes(r)?"none":"follow-label");if(!s||!s.isConnected)return r==="hidden"?{matches:!0,received:"hidden"}:{matches:!1,received:"error:notconnected"};if(r==="visible"||r==="hidden"){const o=Gr(s);return{matches:r==="visible"?o:!o,received:o?"visible":"hidden"}}if(r==="disabled"||r==="enabled"){const o=um(s);return{matches:r==="disabled"?o:!o,received:o?"disabled":"enabled"}}if(r==="editable"){const o=um(s),l=g4(s);if(l==="error")throw this.createStacklessError("Element is not an <input>, <textarea>, <select> or [contenteditable] and does not have a role allowing [aria-readonly]");return{matches:!o&&!l,received:o?"disabled":l?"readOnly":"editable"}}if(r==="checked"||r==="unchecked"){const o=r==="checked",l=m4(s);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");const u=s.nodeName==="INPUT"&&s.type==="radio";return{matches:o===l,received:l?"checked":"unchecked",isRadio:u}}if(r==="indeterminate"){const o=h4(s);if(o==="error")throw this.createStacklessError("Not a checkbox or radio button");return{matches:o==="mixed",received:o===!0?"checked":o===!1?"unchecked":"mixed"}}throw this.createStacklessError(`Unexpected element state "${r}"`)}selectOptions(e,r){const s=this.retarget(e,"follow-label");if(!s)return"error:notconnected";if(s.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a <select> element");const o=s,l=[...o.options],u=[];let d=r.slice();for(let m=0;m<l.length;m++){const p=l[m],v=g=>{if(g instanceof Node)return p===g;let y=!0;return g.valueOrLabel!==void 0&&(y=y&&(g.valueOrLabel===p.value||g.valueOrLabel===p.label)),g.value!==void 0&&(y=y&&g.value===p.value),g.label!==void 0&&(y=y&&g.label===p.label),g.index!==void 0&&(y=y&&g.index===m),y};if(d.some(v)){if(!this.elementState(p,"enabled").matches)return"error:optionnotenabled";if(u.push(p),o.multiple)d=d.filter(g=>!v(g));else{d=[];break}}}return d.length?"error:optionsnotfound":(o.value=void 0,u.forEach(m=>m.selected=!0),o.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),o.dispatchEvent(new Event("change",{bubbles:!0})),u.map(m=>m.value))}fill(e,r){const s=this.retarget(e,"follow-label");if(!s)return"error:notconnected";if(s.nodeName.toLowerCase()==="input"){const o=s,l=o.type.toLowerCase(),u=new Set(["color","date","time","datetime-local","month","range","week"]);if(!new Set(["","email","number","password","search","tel","text","url"]).has(l)&&!u.has(l))throw this.createStacklessError(`Input of type "${l}" cannot be filled`);if(l==="number"&&(r=r.trim(),isNaN(Number(r))))throw this.createStacklessError("Cannot type text into input[type=number]");if(l==="color"&&(r=r.toLowerCase()),u.has(l)){if(r=r.trim(),o.focus(),o.value=r,o.value!==r)throw this.createStacklessError("Malformed value");return s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),s.dispatchEvent(new Event("change",{bubbles:!0})),"done"}}else if(s.nodeName.toLowerCase()!=="textarea"){if(!s.isContentEditable)throw this.createStacklessError("Element is not an <input>, <textarea> or [contenteditable] element")}return this.selectText(s),"needsinput"}selectText(e){const r=this.retarget(e,"follow-label");if(!r)return"error:notconnected";if(r.nodeName.toLowerCase()==="input"){const l=r;return l.select(),l.focus(),"done"}if(r.nodeName.toLowerCase()==="textarea"){const l=r;return l.selectionStart=0,l.selectionEnd=l.value.length,l.focus(),"done"}const s=r.ownerDocument.createRange();s.selectNodeContents(r);const o=r.ownerDocument.defaultView.getSelection();return o&&(o.removeAllRanges(),o.addRange(s)),r.focus(),"done"}_activelyFocused(e){const r=e.getRootNode().activeElement,s=r===e&&!!e.ownerDocument&&e.ownerDocument.hasFocus();return{activeElement:r,isFocused:s}}focusNode(e,r){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");const{activeElement:s,isFocused:o}=this._activelyFocused(e);if(e.isContentEditable&&!o&&s&&s.blur&&s.blur(),e.focus(),e.focus(),r&&!o&&e.nodeName.toLowerCase()==="input")try{e.setSelectionRange(0,0)}catch{}return"done"}blurNode(e){if(!e.isConnected)return"error:notconnected";if(e.nodeType!==Node.ELEMENT_NODE)throw this.createStacklessError("Node is not an element");return e.blur(),"done"}setInputFiles(e,r){if(e.nodeType!==Node.ELEMENT_NODE)return"Node is not of type HTMLElement";const s=e;if(s.nodeName!=="INPUT")return"Not an <input> element";const o=s;if((o.getAttribute("type")||"").toLowerCase()!=="file")return"Not an input[type=file] element";const u=r.map(m=>{const p=Uint8Array.from(atob(m.buffer),v=>v.charCodeAt(0));return new File([p],m.name,{type:m.mimeType,lastModified:m.lastModifiedMs})}),d=new DataTransfer;for(const m of u)d.items.add(m);o.files=d.files,o.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),o.dispatchEvent(new Event("change",{bubbles:!0}))}expectHitTarget(e,r){const s=[];let o=r;for(;o;){const v=vA(o);if(!v||(s.push(v),v.nodeType===9))break;o=v.host}let l;for(let v=s.length-1;v>=0;v--){const g=s[v],y=g.elementsFromPoint(e.x,e.y),w=g.elementFromPoint(e.x,e.y);if(w&&y[0]&&dn(w)===y[0]){const S=this.window.getComputedStyle(w);(S==null?void 0:S.display)==="contents"&&y.unshift(w)}y[0]&&y[0].shadowRoot===g&&y[1]===w&&y.shift();const E=y[0];if(!E||(l=E,v&&E!==s[v-1].host))break}const u=[];for(;l&&l!==r;)u.push(l),l=l.assignedSlot??dn(l);if(l===r)return"done";const d=this.previewNode(u[0]||this.document.documentElement);let m,p=r;for(;p;){const v=u.indexOf(p);if(v!==-1){v>1&&(m=this.previewNode(u[v-1]));break}p=dn(p)}return m?{hitTargetDescription:`${d} from ${m} subtree`}:{hitTargetDescription:d}}setupHitTargetInterceptor(e,r,s,o){const l=this.retarget(e,"button-link");if(!l||!l.isConnected)return"error:notconnected";if(s){const v=this.expectHitTarget(s,l);if(v!=="done")return v.hitTargetDescription}if(r==="drag")return{stop:()=>"done"};const u={hover:this._hoverHitTargetInterceptorEvents,tap:this._tapHitTargetInterceptorEvents,mouse:this._mouseHitTargetInterceptorEvents}[r];let d;const m=v=>{if(!u.has(v.type)||!v.isTrusted)return;const g=this.window.TouchEvent&&v instanceof this.window.TouchEvent?v.touches[0]:v;d===void 0&&g&&(d=this.expectHitTarget({x:g.clientX,y:g.clientY},l)),(o||d!=="done"&&d!==void 0)&&(v.preventDefault(),v.stopPropagation(),v.stopImmediatePropagation())},p=()=>(this._hitTargetInterceptor===m&&(this._hitTargetInterceptor=void 0),d||"done");return this._hitTargetInterceptor=m,{stop:p}}dispatchEvent(e,r,s){var u,d,m;let o;const l={bubbles:!0,cancelable:!0,composed:!0,...s};switch(this._eventTypes.get(r)){case"mouse":o=new MouseEvent(r,l);break;case"keyboard":o=new KeyboardEvent(r,l);break;case"touch":{if(this._browserName==="webkit"){const p=g=>{var E,S;if(g instanceof Touch)return g;let y=g.pageX;y===void 0&&g.clientX!==void 0&&(y=g.clientX+(((E=this.document.scrollingElement)==null?void 0:E.scrollLeft)||0));let w=g.pageY;return w===void 0&&g.clientY!==void 0&&(w=g.clientY+(((S=this.document.scrollingElement)==null?void 0:S.scrollTop)||0)),this.document.createTouch(this.window,g.target??e,g.identifier,y,w,g.screenX,g.screenY,g.radiusX,g.radiusY,g.rotationAngle,g.force)},v=g=>g instanceof TouchList||!g?g:this.document.createTouchList(...g.map(p));l.target??(l.target=e),l.touches=v(l.touches),l.targetTouches=v(l.targetTouches),l.changedTouches=v(l.changedTouches),o=new TouchEvent(r,l)}else l.target??(l.target=e),l.touches=(u=l.touches)==null?void 0:u.map(p=>p instanceof Touch?p:new Touch({...p,target:p.target??e})),l.targetTouches=(d=l.targetTouches)==null?void 0:d.map(p=>p instanceof Touch?p:new Touch({...p,target:p.target??e})),l.changedTouches=(m=l.changedTouches)==null?void 0:m.map(p=>p instanceof Touch?p:new Touch({...p,target:p.target??e})),o=new TouchEvent(r,l);break}case"pointer":o=new PointerEvent(r,l);break;case"focus":o=new FocusEvent(r,l);break;case"drag":o=new DragEvent(r,l);break;case"wheel":o=new WheelEvent(r,l);break;case"deviceorientation":try{o=new DeviceOrientationEvent(r,l)}catch{const{bubbles:p,cancelable:v,alpha:g,beta:y,gamma:w,absolute:E}=l;o=this.document.createEvent("DeviceOrientationEvent"),o.initDeviceOrientationEvent(r,p,v,g,y,w,E)}break;case"devicemotion":try{o=new DeviceMotionEvent(r,l)}catch{const{bubbles:p,cancelable:v,acceleration:g,accelerationIncludingGravity:y,rotationRate:w,interval:E}=l;o=this.document.createEvent("DeviceMotionEvent"),o.initDeviceMotionEvent(r,p,v,g,y,w,E)}break;default:o=new Event(r,l);break}e.dispatchEvent(o)}previewNode(e){if(e.nodeType===Node.TEXT_NODE)return Rh(`#text=${e.nodeValue||""}`);if(e.nodeType!==Node.ELEMENT_NODE)return Rh(`<${e.nodeName.toLowerCase()} />`);const r=e,s=[];for(let m=0;m<r.attributes.length;m++){const{name:p,value:v}=r.attributes[m];p!=="style"&&(!v&&this._booleanAttributes.has(p)?s.push(` ${p}`):s.push(` ${p}="${v}"`))}s.sort((m,p)=>m.length-p.length);const o=vT(s.join(""),500);if(this._autoClosingTags.has(r.nodeName))return Rh(`<${r.nodeName.toLowerCase()}${o}/>`);const l=r.childNodes;let u=!1;if(l.length<=5){u=!0;for(let m=0;m<l.length;m++)u=u&&l[m].nodeType===Node.TEXT_NODE}const d=u?r.textContent||"":l.length?"…":"";return Rh(`<${r.nodeName.toLowerCase()}${o}>${vT(d,50)}</${r.nodeName.toLowerCase()}>`)}_generateSelectors(e){this._evaluator.begin(),_m(),Uv();try{const r=this._isUtilityWorld&&this._browserName==="firefox"?2:10;return e.slice(0,r).map(o=>({preview:this.previewNode(o),selector:this.generateSelectorSimple(o)})).map((o,l)=>`${l+1}) ${o.preview} aka ${la(this._sdkLanguage,o.selector)}`)}finally{jv(),Sm(),this._evaluator.end()}}strictModeViolationError(e,r){const s=this._generateSelectors(r).map(o=>`
345
+ `+o);return s.length<r.length&&s.push(`
346
+ ...`),this.createStacklessError(`strict mode violation: ${la(this._sdkLanguage,ki(e))} resolved to ${r.length} elements:${s.join("")}
347
+ `)}checkDeprecatedSelectorUsage(e,r){const s=new Set(["_react","_vue","xpath:light","text:light","id:light","data-testid:light","data-test-id:light","data-test:light"]);if(!r.length)return;const o=e.parts.find(u=>s.has(u.name));if(!o)return;const l=this._generateSelectors(r).map(u=>`
348
+ `+u);throw l.length<r.length&&l.push(`
349
+ ...`),this.createStacklessError(`"${o.name}" selector is not supported: ${la(this._sdkLanguage,ki(e))} resolved to ${r.length} element${r.length===1?"":"s"}:${l.join("")}
350
+ `)}createStacklessError(e){if(this._browserName==="firefox"){const s=new Error("Error: "+e);return s.stack="",s}const r=new Error(e);return delete r.stack,r}createHighlight(){return new Mb(this)}maskSelectors(e,r){this._highlight&&this.hideHighlight(),this._highlight=new Mb(this),this._highlight.install();const s=[];for(const o of e)s.push(this.querySelectorAll(o,this.document.documentElement));this._highlight.maskElements(s.flat(),r)}highlight(e){this._highlight||(this._highlight=new Mb(this),this._highlight.install()),this._highlight.runHighlightOnRaf(e)}hideHighlight(){this._highlight&&(this._highlight.uninstall(),delete this._highlight)}markTargetElements(e,r){var u,d;((u=this._markedElements)==null?void 0:u.callId)!==r&&(this._markedElements=void 0);const s=((d=this._markedElements)==null?void 0:d.elements)||new Set,o=new CustomEvent("__playwright_unmark_target__",{bubbles:!0,cancelable:!0,detail:r,composed:!0});for(const m of s)e.has(m)||m.dispatchEvent(o);const l=new CustomEvent("__playwright_mark_target__",{bubbles:!0,cancelable:!0,detail:r,composed:!0});for(const m of e)s.has(m)||m.dispatchEvent(l);this._markedElements={callId:r,elements:e}}_setupGlobalListenersRemovalDetection(){const e="__playwright_global_listeners_check__";let r=!1;const s=()=>r=!0;this.window.addEventListener(e,s),new MutationObserver(o=>{if(o.some(u=>Array.from(u.addedNodes).includes(this.document.documentElement))&&(r=!1,this.window.dispatchEvent(new CustomEvent(e)),!r)){this.window.addEventListener(e,s);for(const u of this.onGlobalListenersRemoved)u()}}).observe(this.document,{childList:!0})}_setupHitTargetInterceptors(){const e=s=>{var o;return(o=this._hitTargetInterceptor)==null?void 0:o.call(this,s)},r=()=>{for(const s of this._allHitTargetInterceptorEvents)this.window.addEventListener(s,e,{capture:!0,passive:!1})};r(),this.onGlobalListenersRemoved.add(r)}async expect(e,r,s){var l,u;if(r.expression==="to.have.count"||r.expression.endsWith(".array"))return this.expectArray(s,r);if(!e){if(!r.isNot&&r.expression==="to.be.hidden")return{matches:!0};if(r.isNot&&r.expression==="to.be.visible")return{matches:!1};if(!r.isNot&&r.expression==="to.be.detached")return{matches:!0};if(r.isNot&&r.expression==="to.be.attached")return{matches:!1};if(r.isNot&&r.expression==="to.be.in.viewport")return{matches:!1};if(r.expression==="to.have.title"&&((l=r==null?void 0:r.expectedText)!=null&&l[0])){const d=new El(r.expectedText[0]),m=this.document.title;return{received:m,matches:d.matches(m)}}if(r.expression==="to.have.url"&&((u=r==null?void 0:r.expectedText)!=null&&u[0])){const d=new El(r.expectedText[0]),m=this.document.location.href;return{received:m,matches:d.matches(m)}}return{matches:r.isNot,missingReceived:!0}}return await this.expectSingleElement(e,r)}async expectSingleElement(e,r){var o;const s=r.expression;{let l;if(s==="to.have.attribute"){const u=e.hasAttribute(r.expressionArg);l={matches:u,received:u?"attribute present":"attribute not present"}}else if(s==="to.be.checked"){const{checked:u,indeterminate:d}=r.expectedValue;if(d){if(u!==void 0)throw this.createStacklessError("Can't assert indeterminate and checked at the same time");l=this.elementState(e,"indeterminate")}else l=this.elementState(e,u===!1?"unchecked":"checked")}else if(s==="to.be.disabled")l=this.elementState(e,"disabled");else if(s==="to.be.editable")l=this.elementState(e,"editable");else if(s==="to.be.readonly")l=this.elementState(e,"editable"),l.matches=!l.matches;else if(s==="to.be.empty")if(e.nodeName==="INPUT"||e.nodeName==="TEXTAREA"){const u=e.value;l={matches:!u,received:u?"notEmpty":"empty"}}else{const u=(o=e.textContent)==null?void 0:o.trim();l={matches:!u,received:u?"notEmpty":"empty"}}else if(s==="to.be.enabled")l=this.elementState(e,"enabled");else if(s==="to.be.focused"){const u=this._activelyFocused(e).isFocused;l={matches:u,received:u?"focused":"inactive"}}else s==="to.be.hidden"?l=this.elementState(e,"hidden"):s==="to.be.visible"?l=this.elementState(e,"visible"):s==="to.be.attached"?l={matches:!0,received:"attached"}:s==="to.be.detached"&&(l={matches:!1,received:"attached"});if(l){if(l.received==="error:notconnected")throw this.createStacklessError("Element is not connected");return l}}if(s==="to.have.property"){let l=e;const u=r.expressionArg.split(".");for(let p=0;p<u.length-1;p++){if(typeof l!="object"||!(u[p]in l))return{received:void 0,matches:!1};l=l[u[p]]}const d=l[u[u.length-1]],m=dv(d,r.expectedValue);return{received:d,matches:m}}if(s==="to.be.in.viewport"){const l=await this.viewportRatio(e);return{received:`viewport ratio ${l}`,matches:l>0&&l>(r.expectedNumber??0)-1e-9}}if(s==="to.have.values"){if(e=this.retarget(e,"follow-label"),e.nodeName!=="SELECT"||!e.multiple)throw this.createStacklessError("Not a select element with a multiple attribute");const l=[...e.selectedOptions].map(u=>u.value);return l.length!==r.expectedText.length?{received:l,matches:!1}:{received:l,matches:l.map((u,d)=>new El(r.expectedText[d]).matches(u)).every(Boolean)}}if(s==="to.match.aria"){const l=C4(e,r.expectedValue);return{received:l.received,matches:!!l.matches.length}}{let l;if(s==="to.have.attribute.value"){const u=e.getAttribute(r.expressionArg);if(u===null)return{received:null,matches:!1};l=u}else if(["to.have.class","to.contain.class"].includes(s)){if(!r.expectedText)throw this.createStacklessError("Expected text is not provided for "+s);return{received:e.classList.toString(),matches:new El(r.expectedText[0]).matchesClassList(this,e.classList,s==="to.contain.class")}}else if(s==="to.have.css")l=this.window.getComputedStyle(e).getPropertyValue(r.expressionArg);else if(s==="to.have.id")l=e.id;else if(s==="to.have.text")l=r.useInnerText?e.innerText:zn(new Map,e).full;else if(s==="to.have.accessible.name")l=rd(e,!1);else if(s==="to.have.accessible.description")l=jT(e,!1);else if(s==="to.have.accessible.error.message")l=d4(e);else if(s==="to.have.role")l=Bt(e)||"";else if(s==="to.have.value"){if(e=this.retarget(e,"follow-label"),e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"&&e.nodeName!=="SELECT")throw this.createStacklessError("Not an input element");l=e.value}if(l!==void 0&&r.expectedText){const u=new El(r.expectedText[0]);return{received:l,matches:u.matches(l)}}}throw this.createStacklessError("Unknown expect matcher: "+s)}expectArray(e,r){const s=r.expression;if(s==="to.have.count"){const m=e.length,p=m===r.expectedNumber;return{received:m,matches:p}}if(!r.expectedText)throw this.createStacklessError("Expected text is not provided for "+s);if(["to.have.class.array","to.contain.class.array"].includes(s)){const m=e.map(g=>g.classList),p=m.map(String);if(m.length!==r.expectedText.length)return{received:p,matches:!1};const v=this._matchSequentially(r.expectedText,m,(g,y)=>g.matchesClassList(this,y,s==="to.contain.class.array"));return{received:p,matches:v}}if(!["to.contain.text.array","to.have.text.array"].includes(s))throw this.createStacklessError("Unknown expect matcher: "+s);const o=e.map(m=>r.useInnerText?m.innerText:zn(new Map,m).full),l=s!=="to.contain.text.array";if(!(o.length===r.expectedText.length||!l))return{received:o,matches:!1};const d=this._matchSequentially(r.expectedText,o,(m,p)=>m.matches(p));return{received:o,matches:d}}_matchSequentially(e,r,s){const o=e.map(d=>new El(d));let l=0,u=0;for(;l<o.length&&u<r.length;)s(o[l],r[u])&&++l,++u;return l===o.length}}function Rh(i){return i.replace(/\n/g,"↵").replace(/\t/g,"⇆")}function QL(i){if(i=i.substring(1,i.length-1),!i.includes("\\"))return i;const e=[];let r=0;for(;r<i.length;)i[r]==="\\"&&r+1<i.length&&r++,e.push(i[r++]);return e.join("")}function Mh(i,e){if(i[0]==="/"&&i.lastIndexOf("/")>0){const o=i.lastIndexOf("/"),l=new RegExp(i.substring(1,o),i.substring(o+1));return{matcher:u=>l.test(u.full),kind:"regex"}}const r=e?JSON.parse.bind(JSON):QL;let s=!1;return i.length>1&&i[0]==='"'&&i[i.length-1]==='"'?(i=r(i),s=!0):e&&i.length>1&&i[0]==='"'&&i[i.length-2]==='"'&&i[i.length-1]==="i"?(i=r(i.substring(0,i.length-1)),s=!1):e&&i.length>1&&i[0]==='"'&&i[i.length-2]==='"'&&i[i.length-1]==="s"?(i=r(i.substring(0,i.length-1)),s=!0):i.length>1&&i[0]==="'"&&i[i.length-1]==="'"&&(i=r(i),s=!0),i=An(i),s?e?{kind:"strict",matcher:l=>l.normalized===i}:{matcher:l=>!i&&!l.immediate.length?!0:l.immediate.some(u=>An(u)===i),kind:"strict"}:(i=i.toLowerCase(),{kind:"lax",matcher:o=>o.normalized.toLowerCase().includes(i)})}class El{constructor(e){if(this._normalizeWhiteSpace=e.normalizeWhiteSpace,this._ignoreCase=e.ignoreCase,this._string=e.matchSubstring?void 0:this.normalize(e.string),this._substring=e.matchSubstring?this.normalize(e.string):void 0,e.regexSource){const r=new Set((e.regexFlags||"").split(""));e.ignoreCase===!1&&r.delete("i"),e.ignoreCase===!0&&r.add("i"),this._regex=new RegExp(e.regexSource,[...r].join(""))}}matches(e){return this._regex||(e=this.normalize(e)),this._string!==void 0?e===this._string:this._substring!==void 0?e.includes(this._substring):this._regex?!!this._regex.test(e):!1}matchesClassList(e,r,s){if(s){if(this._regex)throw e.createStacklessError("Partial matching does not support regular expressions. Please provide a string value.");return this._string.split(/\s+/g).filter(Boolean).every(o=>r.contains(o))}return this.matches(r.toString())}normalize(e){return e&&(this._normalizeWhiteSpace&&(e=An(e)),this._ignoreCase&&(e=e.toLocaleLowerCase()),e)}}function dv(i,e){if(i===e)return!0;if(i&&e&&typeof i=="object"&&typeof e=="object"){if(i.constructor!==e.constructor)return!1;if(Array.isArray(i)){if(i.length!==e.length)return!1;for(let s=0;s<i.length;++s)if(!dv(i[s],e[s]))return!1;return!0}if(i instanceof RegExp)return i.source===e.source&&i.flags===e.flags;if(i.valueOf!==Object.prototype.valueOf)return i.valueOf()===e.valueOf();if(i.toString!==Object.prototype.toString)return i.toString()===e.toString();const r=Object.keys(i);if(r.length!==Object.keys(e).length)return!1;for(let s=0;s<r.length;++s)if(!e.hasOwnProperty(r[s]))return!1;for(const s of r)if(!dv(i[s],e[s]))return!1;return!0}return typeof i=="number"&&typeof e=="number"?isNaN(i)&&isNaN(e):!1}const ZL={tagName:"svg",children:[{tagName:"defs",children:[{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-gripper"},children:[{tagName:"path",attrs:{d:"M5 3h2v2H5zm0 4h2v2H5zm0 4h2v2H5zm4-8h2v2H9zm0 4h2v2H9zm0 4h2v2H9z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-circle-large-filled"},children:[{tagName:"path",attrs:{d:"M8 1a6.8 6.8 0 0 1 1.86.253 6.899 6.899 0 0 1 3.083 1.805 6.903 6.903 0 0 1 1.804 3.083C14.916 6.738 15 7.357 15 8s-.084 1.262-.253 1.86a6.9 6.9 0 0 1-.704 1.674 7.157 7.157 0 0 1-2.516 2.509 6.966 6.966 0 0 1-1.668.71A6.984 6.984 0 0 1 8 15a6.984 6.984 0 0 1-1.86-.246 7.098 7.098 0 0 1-1.674-.711 7.3 7.3 0 0 1-1.415-1.094 7.295 7.295 0 0 1-1.094-1.415 7.098 7.098 0 0 1-.71-1.675A6.985 6.985 0 0 1 1 8c0-.643.082-1.262.246-1.86a6.968 6.968 0 0 1 .711-1.667 7.156 7.156 0 0 1 2.509-2.516 6.895 6.895 0 0 1 1.675-.704A6.808 6.808 0 0 1 8 1z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-stop-circle"},children:[{tagName:"path",attrs:{d:"M6 6h4v4H6z"}},{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-inspect"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 3l1-1h12l1 1v6h-1V3H2v8h5v1H2l-1-1V3zm14.707 9.707L9 6v9.414l2.707-2.707h4zM10 13V8.414l3.293 3.293h-2L10 13z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-whole-word"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0 11H1V13H15V11H16V14H15H1H0V11Z"}},{tagName:"path",attrs:{d:"M6.84048 11H5.95963V10.1406H5.93814C5.555 10.7995 4.99104 11.1289 4.24625 11.1289C3.69839 11.1289 3.26871 10.9839 2.95718 10.6938C2.64924 10.4038 2.49527 10.0189 2.49527 9.53906C2.49527 8.51139 3.10041 7.91341 4.3107 7.74512L5.95963 7.51416C5.95963 6.57959 5.58186 6.1123 4.82632 6.1123C4.16389 6.1123 3.56591 6.33789 3.03238 6.78906V5.88672C3.57307 5.54297 4.19612 5.37109 4.90152 5.37109C6.19416 5.37109 6.84048 6.05501 6.84048 7.42285V11ZM5.95963 8.21777L4.63297 8.40039C4.22476 8.45768 3.91682 8.55973 3.70914 8.70654C3.50145 8.84977 3.39761 9.10579 3.39761 9.47461C3.39761 9.74316 3.4925 9.96338 3.68228 10.1353C3.87564 10.3035 4.13166 10.3877 4.45035 10.3877C4.8872 10.3877 5.24706 10.2355 5.52994 9.93115C5.8164 9.62321 5.95963 9.2347 5.95963 8.76562V8.21777Z"}},{tagName:"path",attrs:{d:"M9.3475 10.2051H9.32601V11H8.44515V2.85742H9.32601V6.4668H9.3475C9.78076 5.73633 10.4146 5.37109 11.2489 5.37109C11.9543 5.37109 12.5057 5.61816 12.9032 6.1123C13.3042 6.60286 13.5047 7.26172 13.5047 8.08887C13.5047 9.00911 13.2809 9.74674 12.8333 10.3018C12.3857 10.8532 11.7734 11.1289 10.9964 11.1289C10.2695 11.1289 9.71989 10.821 9.3475 10.2051ZM9.32601 7.98682V8.75488C9.32601 9.20964 9.47282 9.59635 9.76644 9.91504C10.0636 10.2301 10.4396 10.3877 10.8944 10.3877C11.4279 10.3877 11.8451 10.1836 12.1458 9.77539C12.4502 9.36719 12.6024 8.79964 12.6024 8.07275C12.6024 7.46045 12.4609 6.98063 12.1781 6.6333C11.8952 6.28597 11.512 6.1123 11.0286 6.1123C10.5166 6.1123 10.1048 6.29134 9.7933 6.64941C9.48177 7.00391 9.32601 7.44971 9.32601 7.98682Z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-eye"},children:[{tagName:"path",attrs:{d:"M7.99993 6.00316C9.47266 6.00316 10.6666 7.19708 10.6666 8.66981C10.6666 10.1426 9.47266 11.3365 7.99993 11.3365C6.52715 11.3365 5.33324 10.1426 5.33324 8.66981C5.33324 7.19708 6.52715 6.00316 7.99993 6.00316ZM7.99993 7.00315C7.07946 7.00315 6.33324 7.74935 6.33324 8.66981C6.33324 9.59028 7.07946 10.3365 7.99993 10.3365C8.9204 10.3365 9.6666 9.59028 9.6666 8.66981C9.6666 7.74935 8.9204 7.00315 7.99993 7.00315ZM7.99993 3.66675C11.0756 3.66675 13.7307 5.76675 14.4673 8.70968C14.5344 8.97755 14.3716 9.24908 14.1037 9.31615C13.8358 9.38315 13.5643 9.22041 13.4973 8.95248C12.8713 6.45205 10.6141 4.66675 7.99993 4.66675C5.38454 4.66675 3.12664 6.45359 2.50182 8.95555C2.43491 9.22341 2.16348 9.38635 1.89557 9.31948C1.62766 9.25255 1.46471 8.98115 1.53162 8.71321C2.26701 5.76856 4.9229 3.66675 7.99993 3.66675Z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-symbol-constant"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 6h8v1H4V6zm8 3H4v1h8V9z"}},{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 4l1-1h12l1 1v8l-1 1H2l-1-1V4zm1 0v8h12V4H2z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-check"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"1",id:"icon-location-pin"},children:[{tagName:"path",attrs:{d:`
351
+ M8 1
352
+ C5.243 1 3 3.243 3 6
353
+ C3 9 8 14 8 14
354
+ C8 14 13 9 13 6
355
+ C13 3.243 10.757 1 8 1
356
+ Z
357
+ M6 6
358
+ A2 2 0 1 1 10 6
359
+ A2 2 0 1 1 6 6
360
+ Z
361
+ `}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-layers"},children:[{tagName:"path",attrs:{d:"M8 2L2 5v1l6 3 6-3V5L8 2zm0 1.18L11.82 5 8 6.82 4.18 5 8 3.18zM2 7.13V8l6 3 6-3v-.87L8 10.2 2 7.13zM2 10.13V11l6 3 6-3v-.87L8 13.2 2 10.13z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-list-tree"},children:[{tagName:"path",attrs:{d:"M2 3.5C2 3.22386 2.22386 3 2.5 3H13.5C13.7761 3 14 3.22386 14 3.5C14 3.77614 13.7761 4 13.5 4H6V6H13.5C13.7761 6 14 6.22386 14 6.5C14 6.77614 13.7761 7 13.5 7H6V9H13.5C13.7761 9 14 9.22386 14 9.5C14 9.77614 13.7761 10 13.5 10H6V12H13.5C13.7761 12 14 12.2239 14 12.5C14 12.7761 13.7761 13 13.5 13H5.5C5.22386 13 5 12.7761 5 12.5V4H2.5C2.22386 4 2 3.77614 2 3.5Z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-brackets"},children:[{tagName:"path",attrs:{d:"M4.5 2H2v12h2.5v-1H3V3h1.5V2zm7 0H14v12h-2.5v-1H13V3h-1.5V2zM6 5h4v1H6V5zm0 3h4v1H6V8zm0 3h4v1H6v-1z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-braces"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3 3.5C3 2.67 3.67 2 4.5 2H5v1h-.5c-.28 0-.5.22-.5.5v3c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5v3c0 .28.22.5.5.5H5v1h-.5C3.67 14 3 13.33 3 12.5v-3c0-.28-.22-.5-.5-.5H2V8h.5c.28 0 .5-.22.5-.5v-3zm10 0C13 2.67 12.33 2 11.5 2H11v1h.5c.28 0 .5.22.5.5v3c0 .83.67 1.5 1.5 1.5-.83 0-1.5.67-1.5 1.5v3c0 .28-.22.5-.5.5H11v1h.5c.83 0 1.5-.67 1.5-1.5v-3c0-.28.22-.5.5-.5H14V8h-.5c-.28 0-.5-.22-.5-.5v-3z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-braces-dashes"},children:[{tagName:"path",attrs:{d:"M3 3.5C3 2.67 3.67 2 4.5 2H5v1h-.5c-.28 0-.5.22-.5.5v3c0 .83-.67 1.5-1.5 1.5.83 0 1.5.67 1.5 1.5v3c0 .28.22.5.5.5H5v1h-.5C3.67 14 3 13.33 3 12.5v-3c0-.28-.22-.5-.5-.5H2V8h.5c.28 0 .5-.22.5-.5v-3zm10 0C13 2.67 12.33 2 11.5 2H11v1h.5c.28 0 .5.22.5.5v3c0 .83.67 1.5 1.5 1.5-.83 0-1.5.67-1.5 1.5v3c0 .28-.22.5-.5.5H11v1h.5c.83 0 1.5-.67 1.5-1.5v-3c0-.28.22-.5.5-.5H14V8h-.5c-.28 0-.5-.22-.5-.5v-3zM6 5h4v1H6V5zm0 3h4v1H6V8zm0 3h4v1H6v-1z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-close"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8 8.707l3.646 3.647.708-.707L8.707 8l3.647-3.646-.707-.708L8 7.293 4.354 3.646l-.707.708L7.293 8l-3.646 3.646.707.708L8 8.707z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-pass"},children:[{tagName:"path",attrs:{d:"M6.27 10.87h.71l4.56-4.56-.71-.71-4.2 4.21-1.92-1.92L4 8.6l2.27 2.27z"}},{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.6 1c1.6.1 3.1.9 4.2 2 1.3 1.4 2 3.1 2 5.1 0 1.6-.6 3.1-1.6 4.4-1 1.2-2.4 2.1-4 2.4-1.6.3-3.2.1-4.6-.7-1.4-.8-2.5-2-3.1-3.5C.9 9.2.8 7.5 1.3 6c.5-1.6 1.4-2.9 2.8-3.8C5.4 1.3 7 .9 8.6 1zm.5 12.9c1.3-.3 2.5-1 3.4-2.1.8-1.1 1.3-2.4 1.2-3.8 0-1.6-.6-3.2-1.7-4.3-1-1-2.2-1.6-3.6-1.7-1.3-.1-2.7.2-3.8 1-1.1.8-1.9 1.9-2.3 3.3-.4 1.3-.4 2.7.2 4 .6 1.3 1.5 2.3 2.7 3 1.2.7 2.6.9 3.9.6z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-gist"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.57 1.14l3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13l.5-.5h7.72l.35.14zM10 5h3l-3-3v3zM3 2v12h10V6H9.5L9 5.5V2H3zm2.062 7.533l1.817-1.828L6.17 7 4 9.179v.707l2.171 2.174.707-.707-1.816-1.82zM8.8 7.714l.7-.709 2.189 2.175v.709L9.5 12.062l-.705-.709 1.831-1.82L8.8 7.714z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-snapshot"},children:[{tagName:"path",attrs:{d:"M2 1.5l.5-.5h7.72l.35.14 3.28 3.3.15.36v9.7l-.5.5h-11l-.5-.5v-13zm1 .5v12h10V6H9.5L9 5.5V2H3zm7 0v3h3l-3-3z"}},{tagName:"path",attrs:{fill:"none",stroke:"currentColor","stroke-width":"0.8",transform:"rotate(7 8 8.7)",d:"M 10 5.2 C 8 5.2, 6 5.7, 6 7.2 C 6 8.7, 7.5 8.7, 8 8.7 C 8.5 8.7, 10 8.7, 10 10.2 C 10 11.7, 8 12.2, 6 12.2"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-move"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 2.5V5.5H7.5V2.5L6.20711 3.79289L5.5 3.08579L8 0.585786L10.5 3.08579L9.79289 3.79289L8.5 2.5ZM7.5 10.5V13.5L6.20711 12.2071L5.5 12.9142L8 15.4142L10.5 12.9142L9.79289 12.2071L8.5 13.5V10.5H7.5ZM10.5 8.5H13.5L12.2071 9.79289L12.9142 10.5L15.4142 8L12.9142 5.5L12.2071 6.20711L13.5 7.5H10.5V8.5ZM5.5 7.5H2.5L3.79289 6.20711L3.08579 5.5L0.585786 8L3.08579 10.5L3.79289 9.79289L2.5 8.5H5.5V7.5Z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-selection"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1 1H3V2H2V3H1V1ZM4 1H6V2H4V1ZM7 1H9V2H7V1ZM10 1H12V2H10V1ZM13 1H15V3H14V2H13V1ZM14 4H15V6H14V4ZM14 7H15V9H14V7ZM14 10H15V12H14V10ZM13 13V14H14V15H13H12V14H13V13H14V12H15V13V15H13ZM10 14H12V15H10V14ZM7 14H9V15H7V14ZM4 14H6V15H4V14ZM1 13H2V14H3V15H1V13ZM1 10H2V12H1V10ZM1 7H2V9H1V7ZM1 4H2V6H1V4Z"}}]},{tagName:"clipPath",attrs:{viewBox:"0 0 16 16",fill:"currentColor",id:"icon-table"},children:[{tagName:"path",attrs:{"fill-rule":"evenodd",d:"M2 3h12v10H2V3zm1 1v8h10V4H3z"}},{tagName:"rect",attrs:{x:"2",y:"6.33",width:"12",height:"1"}},{tagName:"rect",attrs:{x:"2",y:"9.67",width:"12",height:"1"}},{tagName:"rect",attrs:{x:"5.67",y:"3",width:"1",height:"10"}},{tagName:"rect",attrs:{x:"9.33",y:"3",width:"1",height:"10"}}]},{tagName:"clipPath",attrs:{viewBox:"0 0 16 16",fill:"currentColor",id:"icon-file-upload"},children:[{tagName:"path",attrs:{d:"M14.5 3H7.71l-.85-.85L6.51 2h-5l-.5.5v11l.5.5h13l.5-.5v-10L14.5 3zm-.51 8.49V13h-12V7h4.49l.35-.15.86-.86H14v1.5l.001 4zm0-6.49h-6.5l-.35.15-.86.86H2v-3h4.29l.85.85.36.15H14l-.01.99z"}}]},{tagName:"clipPath",attrs:{viewBox:"0 0 16 16",fill:"currentColor",id:"icon-eraser"},children:[{tagName:"path",attrs:{d:"M 13.54 2.70 L 11.30 0.46 C 10.68 -0.15 9.68 -0.15 9.06 0.46 L 3.34 6.18 L 1.46 8.07 C 0.85 8.68 0.85 9.68 1.46 10.30 L 3.70 12.54 C 4.01 12.84 4.41 13 4.82 13 C 5.22 13 5.63 12.84 5.93 12.54 L 7.82 10.66 L 8.26 10.21 L 13.54 4.93 C 13.84 4.64 14 4.24 14 3.82 C 14 3.39 13.84 3.00 13.54 2.70 Z M 7.37 10.21 L 5.49 12.09 C 5.12 12.46 4.51 12.46 4.15 12.09 L 1.91 9.85 C 1.54 9.48 1.54 8.88 1.91 8.51 L 3.79 6.63 L 7.37 10.21 Z M 13.09 4.49 L 7.82 9.76 L 6.03 7.97 L 4.24 6.18 L 9.51 0.91 C 9.88 0.54 10.48 0.54 10.85 0.91 L 13.09 3.15 C 13.27 3.33 13.37 3.56 13.37 3.82 C 13.37 4.07 13.27 4.31 13.09 4.49 Z"}},{tagName:"rect",attrs:{x:"1",y:"13.2",width:"12",height:"1.6"}}]},{tagName:"clipPath",attrs:{viewBox:"0 0 100 100",fill:"currentColor",id:"icon-sketch-tool"},children:[{tagName:"path",attrs:{d:"m37.68 70.594c-0.36328 0.75781-0.66406 1.5508-0.89063 2.3594-0.41406 1.4727-0.58984 3.0195-0.51562 4.5742 0.042968 0.95312-0.58984 1.7852-1.4766 2.0195l-21.281 5.707c-1.0664 0.28516-2.1602-0.34766-2.4453-1.4141-0.09375-0.35156-0.085937-0.70703 0-1.0312l5.7031-21.285c0.25781-0.96094 1.1719-1.5703 2.1289-1.4727 1.5195 0.0625 3.0273-0.11719 4.4688-0.51953 0.80859-0.22656 1.5977-0.52734 2.3594-0.89453-0.64453-0.78516-0.60156-1.9453 0.13281-2.6797l3.7227-3.7227c0.70703-0.70703 1.8086-0.77344 2.5898-0.20312l35.953-35.953c-0.57031-0.78125-0.50391-1.8828 0.20312-2.5898l3.7227-3.7227c0.70703-0.70703 1.8086-0.77344 2.5898-0.20312l6.5039-6.5039c0.78125-0.78125 2.0469-0.78125 2.8281 0l9.2891 9.2891c0.78125 0.78125 0.78125 2.0469 0 2.8281l-6.5039 6.5039c0.57031 0.78125 0.5 1.8828-0.20312 2.5859l-0.49219 0.49219 2.875 2.875c0.78125 0.78125 0.78125 2.0469 0 2.8281l-16.711 16.711c-0.78125 0.78125-2.0469 0.78125-2.8281 0s-0.78125-2.0469 0-2.8281l15.297-15.297-1.4609-1.4609-0.40234 0.40234c-0.70703 0.70703-1.8047 0.77344-2.5859 0.20312l-35.953 35.953c0.56641 0.78125 0.5 1.8828-0.20312 2.5859l-3.7227 3.7227c-0.73438 0.73438-1.8945 0.77734-2.6797 0.13281zm-9.0078-8.9961c-1.3281 0.76562-2.75 1.3594-4.2266 1.7734-1.3711 0.37891-2.7812 0.60547-4.2109 0.66406l-3.375 12.598 5.2109-5.2109c-0.18359-0.51562-0.27734-1.0547-0.27734-1.5938 0-1.1992 0.46094-2.4023 1.3789-3.3203 0.91406-0.91406 2.1211-1.375 3.3203-1.375 1.1953 0 2.3945 0.46094 3.3125 1.375 0.92187 0.92578 1.3828 2.1289 1.3828 3.3203 0 1.1406-0.41797 2.2852-1.25 3.1836-0.88672 0.96875-2.1328 1.5117-3.4453 1.5117-0.53906 0-1.0742-0.09375-1.5898-0.28125l-5.2148 5.2148 12.598-3.375c0.058594-1.4336 0.28516-2.8477 0.66406-4.2109 0.41406-1.4766 1.0078-2.8984 1.7734-4.2266l-6.0508-6.0508zm11.168 3.7227-8.8438-8.8438-0.89453 0.89453 8.8438 8.8438zm37.645-52.945 6.4609 6.4609 5.0742-5.0742-6.4609-6.4609zm-0.089844 13.012-6.4609-6.4609-35.871 35.871 6.4609 6.4609zm4.6367-2.8086-8.293-8.293c-0.12109-0.054687-0.23828-0.125-0.34766-0.20312l-0.82422 0.82422 8.8438 8.8438 0.82031-0.82031c-0.082031-0.10938-0.14844-0.23047-0.20312-0.35156zm-75.164 68.324c-0.83984-0.71094-0.94531-1.9727-0.23438-2.8125 0.71094-0.83984 1.9727-0.94531 2.8125-0.23438 11.77 10.004 24.934 4.5469 38.125-0.91797 14.867-6.1602 29.77-12.34 43.941 0.98828 0.80078 0.75391 0.83984 2.0195 0.085937 2.8203-0.75391 0.80078-2.0195 0.83984-2.8203 0.085937-12.289-11.559-26-5.875-39.676-0.20703-14.32 5.9336-28.609 11.855-42.234 0.27734zm19.625-20.375c0.23437 0 0.37891-0.09375 0.53906-0.24609 0.10156-0.125 0.15625-0.28516 0.15625-0.44922 0-0.18359-0.066406-0.36328-0.19922-0.49609-0.13281-0.13281-0.3125-0.19922-0.49609-0.19922-0.17969 0-0.35938 0.070312-0.49219 0.20312-0.13281 0.13281-0.20312 0.31641-0.20312 0.49219 0 0.17969 0.070313 0.35938 0.20312 0.49219 0.13281 0.13672 0.30078 0.20312 0.49219 0.20312z"}}]},{tagName:"clipPath",attrs:{width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",id:"icon-gojs-link"},children:[{tagName:"path",attrs:{d:"M 0.75 3.5 A 1.75 1.75 0 1 0 4.25 3.5 A 1.75 1.75 0 1 0 0.75 3.5 Z"}},{tagName:"path",attrs:{d:"M 4.25 2.75 L 9.5 2.75 L 9.5 11.75 L 13 11.75 L 13 13.25 L 8 13.25 L 8 4.25 L 4.25 4.25 Z"}},{tagName:"path",attrs:{d:"M 13 11 L 15.5 12.5 L 13 14 Z"}}]}]}]},bC="[Scoping]";function xm(){try{if(typeof window<"u"&&window.__SKYRAMP_DEBUG__||typeof localStorage<"u"&&localStorage.getItem("SKYRAMP_DEBUG")==="true")return!0}catch{}return!1}function te(...i){xm()&&console.log(bC,...i)}function e6(i){xm()&&console.group(`${bC} ${i}`)}function Ni(){xm()&&console.groupEnd()}function Vb(i){xm()&&console.table(i)}const t6=[/card/i,/item/i,/tile/i,/cell/i,/row(?!s)/i,/entry/i,/result/i,/post/i,/product/i,/option/i],n6=[/^col-/i,/^row$/i,/^container/i,/^px-/i,/^py-/i,/^mx-/i,/^my-/i,/^m-/i,/^p-/i,/^d-/i,/^flex/i,/^grid$/i,/^text-/i,/^bg-/i,/^border/i,/^rounded/i,/^shadow/i,/^w-/i,/^h-/i,/^css-/i,/^styled-/i,/^sc-/i,/^emotion-/i,/^MuiGrid/i,/^MuiBox/i,/--[a-f0-9]{16,}$/i,/__[a-f0-9]{16,}$/i,/_[a-f0-9]{16,}$/i,/^app-[a-z0-9]+$/i,/^e[a-z0-9]{6,}\d+$/i];class r6{constructor(e){this._injectedScript=e,te("ScopingHandler initialized (with CSS class pattern support)")}applyScopingHook(e,r,s){e6(`Analyzing: ${r}`);const o=this._needsScoping(e,r,s);if(te("Needs scoping:",o.needed,"| Reason:",o.reason),!o.needed){const S=this._tryStableIdSelector(e,r);return S?(te("Preferring stable ID selector:",S.selector),Ni(),S):(Ni(),null)}const l=this._tryStableIdSelector(e,r);if(l)return te("Using stable ID selector:",l.selector),Ni(),l;const u=this._tryLinkSelector(e,r);if(u)return te("Using link selector:",u.selector),Ni(),u;const d=this._findContainer(e);if(!d){if(te("No container found"),this._hasDynamicSelector(r)){const S=this._generateAlternativeSelector(e,r);if(S)return te("Using alternative selector:",S.selector),Ni(),S}return Ni(),null}te("Container:",d.selector);const m=this._getContainerIndex(d.element,d.selector);if(m===null)return te("Cannot determine container index"),Ni(),null;te("Container index:",m);const p=this._generateRelativeSelector(d.element,e);if(!p)return te("No relative selector found"),Ni(),null;te("Relative selector:",p);const v=this._isFormContainer(d.selector);let g,y=!1;if(v)g=`${d.selector} >> ${p}`,te("Using form container selector (no nth):",g);else{const S=this._getRowHasFilter(d.element,d.selector);if(S)g=`${d.selector} >> internal:has=${S} >> ${p}`,y=!0,te("Using has-filter selector:",g);else{const T=this._getTextFilterForContainer(d.element,d.selector);if(T)g=`${d.selector} >> internal:has-text="${this._escapeTextFilter(T)}"i >> ${p}`,y=!0,te("Using text-filtered selector:",g);else{const k=this._getRowAnchorSelector(d.element,e);k?(g=k,y=!0,te("Using row-anchored selector:",g)):(g=`${d.selector} >> nth=${m} >> ${p}`,te("Using nth-based selector:",g))}}}const w=this._verifySelector(g);if(te("Verification:",w.valid?"PASS":"FAIL","| Matches:",w.count),!w.valid)if(v&&w.count>=1)te("Form container verification relaxed - using selector despite multiple matches");else return te("Verification failed, using original"),Ni(),null;const E={selector:g,container:d.element,elements:w.elements,strategy:"nth",description:v?`${d.selector} >> ${p}`:`${d.selector}.nth(${m}) >> ${p}`,containerSelector:d.selector,containerIndex:m,relativeSelector:p,isFormContainer:v,usesTextFilter:y};return Vb({Original:r,Scoped:g,Container:d.selector,Index:m,Relative:p}),Ni(),E}_needsScoping(e,r,s){if(te("Input match set:",{selector:r,count:s.length}),s.length>1)return{needed:!0,reason:`Non-unique: ${s.length} elements`};if(this._hasDynamicSelector(r))return{needed:!0,reason:"Dynamic selector needs replacement"};const o=this._hasStateDependentName(e,r);if(o.isStateDependent)return{needed:!0,reason:o.reason};const l=["gridcell","row","listitem","option","treeitem","menuitem","cell"],u=e.getAttribute("role");if(u&&l.includes(u)){const m=this._findRepeatingContainer(e);if(m)return{needed:!0,reason:`Repeating role "${u}" inside container: ${m.selector}`}}const d=e.tagName==="TD"?e:e.closest("td");if(d){const m=d.closest("tr");if(m){const p=m.parentElement;if(p&&(p.tagName==="TBODY"||p.tagName==="TABLE")){const v=p.querySelectorAll(":scope > tr");if(v.length>1)return{needed:!0,reason:`Element inside <td> in <tr> with ${v.length} sibling rows`}}}}return{needed:!1,reason:"Selector is unique and not in repeating context"}}_isDynamicId(e){if(/^react-aria\d+/.test(e)||/^mui-\d+/.test(e)||/^(mat|cdk)-[a-z]+-\d+$/.test(e)||/[-_]\d+$/.test(e)||/\d{2,}[_-][a-zA-Z]/.test(e)||/^\d+$/.test(e)||/\d{4,}$/.test(e)||/[-_][0-9a-f]{6,}$/i.test(e))return!0;const r=e.match(/[-_]([0-9a-f]{3,5})$/i);return!!(r&&/[0-9]/.test(r[1])||/[a-zA-Z][0-9]{3,}$/.test(e)||e.includes(":")||/^.+__search_[a-zA-Z0-9]{4,}$/.test(e))}_tryStableIdSelector(e,r){const s=e.id;if(!s||!r.startsWith("internal:role="))return null;if(this._isDynamicId(s))return te("Skipping dynamic ID:",s),null;const o=`#${CSS.escape(s)}`,l=this._verifySelector(o);return!l.valid||l.count!==1?(te("ID selector not unique:",o,"matches:",l.count),null):{selector:o,container:null,elements:l.elements,strategy:"alternative",description:"Stable ID preferred over role selector",containerSelector:"",containerIndex:-1,relativeSelector:"",isAlternativeSelector:!0}}_hasDynamicSelector(e){if(te("_hasDynamicSelector checking:",e),/react-aria\d+/.test(e))return te("MATCHED: React-Aria dynamic ID"),!0;if(/__search_[a-zA-Z0-9]{4,}/.test(e))return te("MATCHED: Vue Tables dynamic search ID"),!0;if(/#[a-zA-Z_-]*\d+/.test(e))return te("MATCHED: Dynamic ID with numeric suffix (CSS)"),!0;if(/internal:attr=\[id="[a-zA-Z_-]*\d+"\]/.test(e))return te("MATCHED: Dynamic ID with numeric suffix (internal:attr)"),!0;if(/\[id="[a-zA-Z_-]*\d+"\]/.test(e))return te("MATCHED: Dynamic ID with numeric suffix (attribute selector)"),!0;if(/\[id="[^"]*\d{2,}[_-][a-zA-Z][^"]*"\]/.test(e))return te("MATCHED: Dynamic ID with mid-string counter (attribute selector)"),!0;if(/internal:attr=\[id="[^"]*\d{2,}[_-][a-zA-Z][^"]*"\]/.test(e))return te("MATCHED: Dynamic ID with mid-string counter (internal:attr)"),!0;if(/\.(app-[a-z0-9]+|e[a-z0-9]{6,}[0-9]+)/.test(e))return te("MATCHED: CSS-in-JS generated class (Emotion)"),!0;const r=(e.match(/>/g)||[]).length;return r>=4?(te("MATCHED: Long CSS path with",r,"child combinators"),!0):/:nth-child\(\d+\)/.test(e)?(te("MATCHED: Contains :nth-child() pattern"),!0):/\[data-testid="[^"]*[-_]\d+"\]/.test(e)||/\[data-test-id="[^"]*[-_]\d+"\]/.test(e)?(te("MATCHED: TestId with numeric suffix (attribute selector)"),!0):/getByTestId\(['"][^'"]*[-_]\d+['"]\)/.test(e)?(te("MATCHED: TestId with numeric suffix (getByTestId)"),!0):/internal:testid=.*[-_]\d+/.test(e)?(te("MATCHED: TestId with numeric suffix (internal:testid)"),!0):/\[name="\d+"[is]?\]/.test(e)||/internal:text="\d+"[is]?/.test(e)?(te("MATCHED: All-numeric text content in selector"),!0):/\[name="[^"]*\d{8,}[^"]*"/.test(e)||/internal:text="[^"]*\d{8,}[^"]*"/.test(e)?(te("MATCHED: Long digit sequence in text content (timestamp/generated)"),!0):/(?:\[name|internal:text)="\/?\d{1,2}\/\d{1,2}"/.test(e)?(te("MATCHED: Partial date pattern in text content"),!0):[...e.matchAll(/(?:\[name|internal:text)="([^"]*)"/g)].map(o=>o[1]).some(o=>this._hasVolatileText(o))?(te("MATCHED: Month-name date in text content (volatile)"),!0):(te("No dynamic patterns found"),!1)}_hasStateDependentName(e,r){const s=r.match(/internal:role=(\w+)\[name=["'](.+?)["'][is]?\]/);if(!s)return{isStateDependent:!1,reason:"Not a role selector with name"};const o=s[1],l=s[2];if(!l||l.length<3)return{isStateDependent:!1,reason:"Name too short"};te("Checking state-dependent name:",{role:o,name:l});const u=this._getSiblingAccessibleNames(e,o);if(u.length===0)return te("No siblings found for state check"),{isStateDependent:!1,reason:"No siblings with same role"};te("Sibling names:",u);for(const d of u)if(d.length>=3&&l.length>d.length&&l.toLowerCase().includes(d.toLowerCase()))return te("State-dependent name detected:",l,"contains",d),{isStateDependent:!0,reason:`Name "${l}" contains sibling name "${d}" - likely hover-dependent`};return{isStateDependent:!1,reason:"Name is unique among siblings"}}_getSiblingAccessibleNames(e,r){const s=[],o=new Set;try{const l=["ul","ol","nav",'[role="list"]','[role="navigation"]','[role="menu"]','[role="tablist"]','[role="grid"]','[role="row"]'];let u=e.parentElement,d=e.ownerDocument.body,m=0;for(;u&&m<5;){const g=u.tagName.toLowerCase(),y=u.getAttribute("role");if(l.some(w=>{var E;if(w.startsWith("[role=")){const S=(E=w.match(/\[role="(.+)"\]/))==null?void 0:E[1];return y===S}return g===w})){d=u;break}u=u.parentElement,m++}te("Sibling search scope:",d.tagName,d.className);const p=`[role="${r}"]`,v=d.querySelectorAll(p);for(const g of v){if(g===e)continue;const y=this._getAccessibleName(g);y&&y.length>=2&&!o.has(y.toLowerCase())&&(o.add(y.toLowerCase()),s.push(y))}}catch(l){te("Error getting sibling names:",l)}return s}_findRepeatingContainer(e){const r=[/^grid[-_]?view[-_]?item$/i,/^gridcell$/i,/^list[-_]?item$/i,/^row[-_]?item$/i,/^item$/i,/^card$/i,/^tile$/i],s=[/^gridview$/i,/^grid[-_]?view$/i,/^listview$/i,/^list[-_]?view$/i,/^container$/i,/^wrapper$/i,/^content$/i,/^main$/i];let o=e.parentElement;for(;o&&o!==e.ownerDocument.body;){const l=this._getTestId(o);if(l&&!s.some(p=>p.test(l))&&r.some(p=>p.test(l))){const p=this._buildTestIdSelector(o,l);if(o.ownerDocument.querySelectorAll(p).length>1)return{element:o,selector:p}}const u=o.getAttribute("role");if(u&&["row","gridcell","listitem","option","treeitem","menuitem"].includes(u)){const p=`[role=${this._quoteCSSAttributeValue(u)}]`;if(o.ownerDocument.querySelectorAll(p).length>1)return{element:o,selector:p}}const d=this._getComponentName(o);if(d&&this._isRepeatingComponentName(d.name)){const p=`[${d.attr}=${this._quoteCSSAttributeValue(d.name)}]`;try{const v=o.ownerDocument.querySelectorAll(p);if(v.length>1&&v.length<100)return te("Found component container:",d.name,"via",d.attr,"with",v.length,"siblings"),{element:o,selector:p}}catch{}}const m=this._findRepeatingContainerByClass(o);if(m)return m;o=o.parentElement}return null}_findRepeatingContainerByClass(e){const r=Array.from(e.classList);for(const s of r)if(!n6.some(o=>o.test(s))&&t6.some(o=>o.test(s))){const o=`.${this._escapeCSS(s)}`;try{const l=e.ownerDocument.querySelectorAll(o);if(l.length>1&&l.length<100){const u=e.tagName.toLowerCase();return te("Found CSS class container:",s,"with",l.length,"siblings, using tag:",u),{element:e,selector:u}}}catch{continue}}return null}_escapeCSS(e){return fv(e)}_quoteCSSAttributeValue(e){return vC(e)}_getTestId(e){return e.getAttribute("data-testid")||e.getAttribute("data-test-id")}_buildTestIdSelector(e,r){return e.getAttribute("data-testid")===r?`[data-testid=${this._quoteCSSAttributeValue(r)}]`:`[data-test-id=${this._quoteCSSAttributeValue(r)}]`}_getComponentName(e){const r=["data-component","data-sentry-component","data-react-component"];for(const s of r){const o=e.getAttribute(s);if(o)return{name:o,attr:s}}return null}_isRepeatingComponentName(e){return[/Card$/i,/Item$/i,/Link$/i,/Row$/i,/Tile$/i,/Option$/i,/Entry$/i].some(s=>s.test(e))}_findContainer(e){const r=[/^grid[-_]?view[-_]?item$/i,/^gridcell$/i,/^list[-_]?item$/i,/^row[-_]?item$/i,/^item$/i,/^card$/i,/^tile$/i],s=[/[-_]input$/i,/[-_]field$/i,/[-_]btn$/i,/[-_]button$/i,/[-_]control$/i,/^input[-_]/i,/^field[-_]/i],o=[/^gridview$/i,/^grid[-_]?view$/i,/^listview$/i,/^list[-_]?view$/i,/^container$/i,/^wrapper$/i,/^content$/i,/^main$/i];let l=e.parentElement,u=null,d=null;for(;l&&l!==e.ownerDocument.body;){const m=this._getTestId(l);if(m){if(o.some(y=>y.test(m))){l=l.parentElement;continue}const g=this._isFragileTestId(m);if(!g&&r.some(y=>y.test(m)))return{element:l,selector:this._buildTestIdSelector(l,m)};if(!g&&s.some(y=>y.test(m)))return te("Found form container by testid pattern:",m),{element:l,selector:this._buildTestIdSelector(l,m)};!u&&!g&&(u={element:l,selector:this._buildTestIdSelector(l,m)})}const p=l.getAttribute("role");if(p&&["row","gridcell","listitem","option","treeitem","menuitem"].includes(p)&&(u||(u={element:l,selector:`[role=${this._quoteCSSAttributeValue(p)}]`})),l.tagName==="TR"){const g=l.parentElement;g&&(g.tagName==="TBODY"||g.tagName==="TABLE")&&g.querySelectorAll(":scope > tr").length>1&&!u&&(u={element:l,selector:"tr"})}const v=this._getComponentName(l);if(v&&this._isRepeatingComponentName(v.name)){const g=`[${v.attr}=${this._quoteCSSAttributeValue(v.name)}]`;try{const y=l.ownerDocument.querySelectorAll(g);if(y.length>1&&y.length<100)return te("Found component container:",v.name,"via",v.attr,"with",y.length,"siblings"),{element:l,selector:g}}catch{}}if(!d){const g=this._findRepeatingContainerByClass(l);g&&(d=g)}l=l.parentElement}return u||d}_isFormContainer(e){const s=[/-input"\]$/i,/-field"\]$/i,/-btn"\]$/i,/-button"\]$/i,/-control"\]$/i,/\[data-test-?id="input-/i,/\[data-test-?id="field-/i].some(o=>o.test(e));return te("_isFormContainer:",e,"=",s),s}_getContainerIndex(e,r){try{const s=e.ownerDocument.querySelectorAll(r),o=Array.from(s).indexOf(e);return o!==-1?o:null}catch{return null}}_getTextFilterForContainer(e,r){var d;const s=e.getAttribute("role");let o=null;if(s==="row"||e.tagName==="TR"||e.classList.contains("a-data-table__row")?o=this._getRowIdentifyingText(e):o=this._getContainerIdentifyingText(e),!o)return te("Text filter: No identifying text found"),null;const l=e.ownerDocument.querySelectorAll(r);let u=0;for(const m of l)(d=m.textContent)!=null&&d.includes(o)&&u++;return u===1?(te("Text filter: Found unique text:",o),o):(te("Text filter: Text not unique, found in",u,"containers"),null)}_getContainerIdentifyingText(e){var d;const r=this._getDirectTextContent(e);if(r&&r.length>=2&&r.length<=100&&!this._isGenericText(r))return r;const s=e.getAttribute("aria-label");if(s&&s.length>=2&&s.length<=100&&!this._isGenericText(s))return s;const o=e.querySelectorAll("span, div, p, h1, h2, h3, h4, h5, h6");for(const m of o){const p=this._getDirectTextContent(m);if(p&&p.length>=2&&p.length<=100&&!this._isGenericText(p))return p}const l=e.querySelector("[aria-label]");if(l){const m=l.getAttribute("aria-label");if(m&&m.length>=2&&m.length<=100&&!this._isGenericText(m))return m}const u=(d=e.textContent)==null?void 0:d.trim();return u&&u.length>=2&&u.length<=100&&!this._isGenericText(u)?u:null}_getRowIdentifyingText(e){var l;const r=(u,d)=>!(!u||u.length<2||u.length>100||this._isGenericText(u)||!d&&this._isDynamic(u));for(const u of[!1,!0]){for(const d of e.querySelectorAll("a")){const m=(l=d.textContent)==null?void 0:l.trim();if(r(m,u))return m}for(const d of e.querySelectorAll('[role="cell"], [role="gridcell"], td')){const m=this._getDirectTextContent(d);if(r(m,u))return m}}const s=e.querySelector("[data-testid], [data-test-id]");if(s){const u=this._getTestId(s);if(u&&!this._isDynamic(u)&&!/^(item|row|cell|grid)/i.test(u))return u}const o=e.querySelector('[aria-label*="menu for"], [aria-label*="actions for"]');if(o){const u=o.getAttribute("aria-label"),d=u==null?void 0:u.match(/(?:menu|actions)\s+for\s+(.+)$/i);if(d&&d[1])return d[1].trim()}return null}_getRowHasFilter(e,r){var l;if(e.getAttribute("role")!=="row"&&e.tagName!=="TR"&&!e.classList.contains("a-data-table__row"))return null;const o=e.querySelectorAll("a");for(const u of o){const d=(l=u.textContent)==null?void 0:l.trim();if(!d||d.length<2||d.length>100||this._isGenericText(d))continue;const p=`internal:role=link[name="${d.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"s]`,v=`${r} >> internal:has=${JSON.stringify(p)}`,g=this._verifySelector(v);if(g.count===1)return te("Has-filter: Found unique link text:",d),JSON.stringify(p);te("Has-filter: Link text not unique:",d,"matches:",g.count)}return null}_getRowAnchorSelector(e,r){var p,v;let s=e.parentElement;for(;s&&s!==r.ownerDocument.body&&!(s.getAttribute("role")==="row"||s.tagName==="TR");)s=s.parentElement;if(!s||s===r.ownerDocument.body)return null;let o=null;const l=this._getRole(r);if(l){const g=`internal:role=${l}`;try{const y=this._injectedScript.parseSelector(g);this._injectedScript.querySelectorAll(y,s).length===1&&(o=g)}catch{}}if(o||(o=this._generateRelativeSelector(s,r)||null),!o)return te("Row anchor: no relative selector within row"),null;const u=g=>!(!g||g.length<2||g.length>50||this._isGenericText(g)||this._isDynamic(g)||this._hasVolatileText(g));let d=s.getAttribute("aria-label");if(!d){const g=s.getAttribute("aria-labelledby");g&&(d=((v=(p=s.ownerDocument.getElementById(g))==null?void 0:p.textContent)==null?void 0:v.trim())||null)}if(u(d)){for(const g of["s","i"]){const y=`internal:role=row[name=${this._quoteCSSAttributeValue(d)}${g}] >> ${o}`;if(this._verifySelector(y).valid)return te("Row anchor: explicit row label ->",y),y}te("Row anchor: explicit row label not unique")}const m=s.querySelector('[role="rowheader"], th');if(m){const g=this._getAccessibleName(m);if(u(g)){const y=s.tagName==="TR"?"tr":'[role="row"]';for(const w of["s","i"]){const E=`internal:role=rowheader[name=${this._quoteCSSAttributeValue(g)}${w}]`,S=`${y} >> internal:has=${JSON.stringify(E)} >> ${o}`;if(this._verifySelector(S).valid)return te("Row anchor: rowheader has-filter ->",S),S}te("Row anchor: rowheader has-filter not unique")}}return null}_getDirectTextContent(e){let r="";for(const s of e.childNodes)s.nodeType===Node.TEXT_NODE&&(r+=s.textContent||"");return r.trim()}_isGenericText(e){return[/^(edit|delete|view|open|close|save|cancel|submit|ok|yes|no)$/i,/^(item|row|cell|column|header|footer)$/i,/^(loading|please wait|...)$/i,/^\d{1,5}$/,/^[\s\-_]+$/].some(s=>s.test(e))}_escapeTextFilter(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}_generateRelativeSelector(e,r){var v;if(e===r||!e.contains(r))return"";if(te("_generateRelativeSelector for:",r.tagName,r.className),["svg","path","circle","rect","line","polygon","polyline","ellipse","g","use"].includes(r.tagName.toLowerCase())){te("Target is SVG or SVG child, walking up to find clickable ancestor");const g=this._findClickableAncestor(e,r);g&&(te("Found clickable ancestor:",g.tagName,g.className),r=g)}const o=this._getTestId(r);if(o&&!this._isFragileTestId(o))return this._buildTestIdSelector(r,o);const l=this._getRole(r),u=r.getAttribute("aria-label");if(l&&u){const y=r.getAttribute("role")?`[role=${this._quoteCSSAttributeValue(l)}][aria-label=${this._quoteCSSAttributeValue(u)}]`:`internal:role=${l}[name=${this._quoteCSSAttributeValue(u)}i]`;try{const w=this._injectedScript.parseSelector(y),E=this._injectedScript.querySelectorAll(w,e);if(E.length===1)return te("Strategy 2: role+aria-label ->",y),y;te("Strategy 2: not unique in container, matches:",E.length)}catch{te("Strategy 2: selector parse failed for",y)}}if(l){const g=`[role=${this._quoteCSSAttributeValue(l)}]`;if(e.querySelectorAll(g).length===1)return g}if(u){const g=`[aria-label=${this._quoteCSSAttributeValue(u)}]`;if(e.querySelectorAll(g).length===1)return g}if(l==="button"||l==="link"||l==="cell"||l==="gridcell"||l==="columnheader"||l==="rowheader"){const g=this._getAccessibleName(r);if(g&&g.length>=2&&g.length<=50&&!this._isGenericText(g)&&!this._isDynamic(g)){const y=`internal:role=${l}[name=${this._quoteCSSAttributeValue(g)}i]`;try{const w=this._injectedScript.parseSelector(y),E=this._injectedScript.querySelectorAll(w,e);if(E.length===1)return te("Strategy 4b: role with accessible name ->",y),y;te("Strategy 4b: not unique in container, matches:",E.length)}catch{te("Strategy 4b: selector parse failed")}}}if(r.tagName==="INPUT"){const g=e.querySelectorAll("input");if(te("Input strategy: found",g.length,"inputs in container"),g.length===1)return te("Using input selector (single input in container)"),"input";const y=r.type||"text",w=`input[type=${this._quoteCSSAttributeValue(y)}]`;return e.querySelectorAll(w).length===1?(te("Using input[type] selector"),w):(te("Multiple inputs found, using input anyway for form container"),"input")}if(e.tagName==="TR"){const g=r.tagName==="TD"?r:r.closest("td");if(g&&e.contains(g)){const y=r!==g?r.closest("a, button, input, select, textarea"):null;if(y&&g.contains(y))te("Strategy 5b: skipping, target is inside interactive element:",y.tagName);else{const E=e.querySelectorAll(":scope > td"),S=Array.from(E).indexOf(g);if(S>=0)return te("Strategy 5b: table cell column index ->",`td >> nth=${S}`),`td >> nth=${S}`}}}const d=r.tagName.toLowerCase();if(e.querySelectorAll(d).length===1)return d;const m=Array.from(r.classList);for(const g of m){if(/^(css|styled|sc|emotion|mui)-/.test(g)||/^Mui[A-Z]/.test(g)||g.length<3)continue;const y=`.${this._escapeCSS(g)}`;if(e.querySelectorAll(y).length===1)return y}const p=(v=r.textContent)==null?void 0:v.trim();if(p&&p.length>=2&&p.length<=100){const g=p.replace(/\s+/g," ");if(!this._isGenericText(g)){const y=`internal:text="${this._escapeTextFilter(g)}"i`;try{const w=this._injectedScript.parseSelector(y),E=this._injectedScript.querySelectorAll(w,e);if(E.length===1)return te("Strategy 8: text content filter ->",y),y;te("Strategy 8: text not unique in container, matches:",E.length)}catch{te("Strategy 8: selector parse failed")}}}return""}_findClickableAncestor(e,r){let s=r.parentElement;const o=["img","presentation","none","graphics-symbol"];for(;s&&s!==e&&e.contains(s);){const l=s.getAttribute("data-testid")||s.getAttribute("data-test-id"),u=s.getAttribute("role"),d=u&&!o.includes(u),m=s.getAttribute("aria-label"),p=["BUTTON","A","INPUT","SELECT"].includes(s.tagName),v=s.hasAttribute("onclick")||s.hasAttribute("data-click");if(l||d||m&&p||p||v)return te("_findClickableAncestor found:",s.tagName,"testid:",l,"role:",u,"isClickable:",p),s;s=s.parentElement}return null}_hasVolatileText(e){return av(e)}_isFragileTestId(e){return this._isDynamic(e)||this._isDynamicId(e)}_isDynamic(e){if(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e)||/[-_][0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(e))return!0;const r=e.match(/[-_]([0-9a-f]{8,})$/i);return!!(r&&/[0-9]/.test(r[1])||/^\d{6,}$/.test(e)||/^\d{10,13}$/.test(e))}_getRole(e){var l;const r=e.getAttribute("role");if(r)return r;const s=e.tagName.toLowerCase(),o={button:"button",a:"link",select:"combobox",textarea:"textbox",img:"img",tr:"row",h1:"heading",h2:"heading",h3:"heading",h4:"heading",h5:"heading",h6:"heading"};if(s==="input"){const u=((l=e.type)==null?void 0:l.toLowerCase())||"text";return{checkbox:"checkbox",radio:"radio",button:"button",submit:"button"}[u]||"textbox"}if(s==="td"){const u=e.closest("table"),d=u==null?void 0:u.getAttribute("role");return d==="grid"||d==="treegrid"?"gridcell":"cell"}return s==="th"?Bt(e):o[s]||null}_verifySelector(e){try{const r=this._injectedScript.parseSelector(e),s=this._injectedScript.querySelectorAll(r,this._injectedScript.document);return{valid:s.length===1,count:s.length,elements:Array.from(s)}}catch{return{valid:!1,count:0,elements:[]}}}_generateAlternativeSelector(e,r){var d;te("_generateAlternativeSelector for:",e.tagName,"original:",r);const s=e.tagName.toUpperCase();let o=null;if(s==="INPUT"||s==="TEXTAREA"||s==="SELECT"){const m=e.getAttribute("name");m&&!this._isDynamic(m)&&(o=`${s.toLowerCase()}[name=${this._quoteCSSAttributeValue(m)}]`,te("Alternative strategy 1: name attribute ->",o))}if(!o){const m=e.getAttribute("aria-label");m&&m.length>=2&&m.length<=100&&(o=`[aria-label=${this._quoteCSSAttributeValue(m)}]`,te("Alternative strategy 2: aria-label ->",o))}if(!o&&(s==="INPUT"||s==="TEXTAREA")){const m=e.placeholder;m&&m.length>=2&&m.length<=100&&(o=`${s.toLowerCase()}[placeholder=${this._quoteCSSAttributeValue(m)}]`,te("Alternative strategy 3: placeholder ->",o))}if(!o&&s==="INPUT"){const m=e.type||"text";if(["email","password","tel","url","search","number","date","time","datetime-local","month","week","color","file"].includes(m)){const v=`input[type=${this._quoteCSSAttributeValue(m)}]`;this._verifySelector(v).valid&&(o=v,te("Alternative strategy 4: unique input type ->",o))}}if(!o&&(s==="BUTTON"||s==="INPUT"&&e.type==="submit")){const m=(d=e.textContent)==null?void 0:d.trim();m&&m.length>=2&&m.length<=50&&!this._isGenericText(m)&&(o=`internal:role=button[name=${this._quoteCSSAttributeValue(m)}i]`,te("Alternative strategy 5: button text ->",o))}if(!o){const m=this._getRole(e),p=m?this._getAccessibleName(e):null;m&&p&&p.length>=2&&p.length<=50&&!this._isGenericText(p)&&!this._isDynamic(p)&&(o=`internal:role=${m}[name=${this._quoteCSSAttributeValue(p)}i]`,te("Alternative strategy 5b: role+name ->",o))}if(!o){const m=e.getAttribute("title");m&&m.length>=2&&m.length<=100&&(o=`[title=${this._quoteCSSAttributeValue(m)}]`,te("Alternative strategy 6: title ->",o))}if(!o)return te("No alternative selector found"),null;const l=this._verifySelector(o);if(te("Alternative verification:",l.valid?"PASS":"FAIL","| Matches:",l.count),!l.valid)if(l.count>1&&s){const m=`${s.toLowerCase()}${o.startsWith("[")?o:" "+o}`;if(this._verifySelector(m).valid)o=m,te("Made unique by adding tag:",o);else return te("Alternative selector not unique, rejecting"),null}else return te("Alternative selector not unique, rejecting"),null;const u={selector:o,container:null,elements:l.elements,strategy:"alternative",description:`Alternative selector for dynamic ID: ${r} -> ${o}`,containerSelector:"",containerIndex:-1,relativeSelector:"",isAlternativeSelector:!0};return Vb({"Original (unstable)":r,"Alternative (stable)":o,Strategy:"alternative",Reason:"Dynamic ID without container"}),u}_tryLinkSelector(e,r){te("_tryLinkSelector checking:",e.tagName);const s=this._findLinkElement(e);if(!s)return te("No link element found"),null;te("Found link element:",s.tagName,"href:",s.getAttribute("href"));let o=null;const l=s.getAttribute("href");if(l&&this._isStableHref(l)){const m=`a[href=${this._quoteCSSAttributeValue(l)}]`,p=this._verifySelector(m);p.valid?(o=m,te("Strategy 7: href selector ->",o)):te("Strategy 7: href not unique, matches:",p.count)}if(!o){const m=this._getAccessibleName(s);if(m&&m.length>=2&&m.length<=50){const p=`internal:role=link[name=${this._quoteCSSAttributeValue(m)}i]`,v=this._verifySelector(p);if(v.valid)o=p,te("Strategy 8: role=link with name ->",o);else if(te("Strategy 8: role=link not unique, matches:",v.count),v.count>1){const g=`internal:role=link[name=${this._quoteCSSAttributeValue(m)}]`;this._verifySelector(g).valid&&(o=g,te("Strategy 8b: role=link with exact name ->",o))}}}if(!o)return te("No suitable link selector found"),null;const u=this._verifySelector(o),d={selector:o,container:null,elements:u.elements,strategy:"alternative",description:`Link selector: ${r} -> ${o}`,containerSelector:"",containerIndex:-1,relativeSelector:"",isAlternativeSelector:!0};return Vb({Original:r,"Link selector":o,Strategy:"link-based (7/8)",Element:s.tagName}),d}_findLinkElement(e){let r=e,s=0;const o=3;for(;r&&s<=o;){if(r.tagName==="A")return r;r.getAttribute("role"),r=r.parentElement,s++}return null}_isStableHref(e){return!(!e||e==="#"||e.startsWith("javascript:")||this._isDynamic(e)||/[a-f0-9]{32,}/i.test(e)||/\/\d{6,}(\/|$)/.test(e))}_getAccessibleName(e){var l,u;const r=e.getAttribute("aria-label");if(r&&r.trim())return r.trim();const s=e.getAttribute("aria-labelledby");if(s){const d=e.ownerDocument.getElementById(s);if(d){const m=(l=d.textContent)==null?void 0:l.trim();if(m)return m}}const o=(u=e.textContent)==null?void 0:u.trim();return o&&o.length<=100?o.replace(/\s+/g," "):null}}function fv(i){return typeof CSS<"u"&&CSS.escape?CSS.escape(i):i.replace(/([!"#$%&'()*+,.\/:;<=>?@[\\\]^`{|}~])/g,"\\$1")}function vC(i){return`"${i.replace(/["\\]/g,e=>"\\"+e)}"`}function id(i,e,r,s){return new r6(i).applyScopingHook(e,r,s)}class i6{constructor(e){this._enabled=!1,this._savedButtonRoles=new Map,this._hiddenDuplicateButtons=[],this._document=e}get enabled(){return this._enabled}toggle(){this._enabled=!this._enabled,this._enabled?this._enableNestedElementAccess():this._disableNestedElementAccess()}_enableNestedElementAccess(){this._document.querySelectorAll('[role="button"]').forEach(r=>{const s=r.getAttribute("role");r.children.length>0&&s&&(this._savedButtonRoles.set(r,s),r.removeAttribute("role"),r.querySelectorAll("button").forEach(l=>{this._createDuplicateButton(l,r)}))})}_disableNestedElementAccess(){this._savedButtonRoles.forEach((e,r)=>{r.setAttribute("role",e)}),this._savedButtonRoles.clear(),this._hiddenDuplicateButtons.forEach(e=>{e.remove()}),this._hiddenDuplicateButtons=[]}_createDuplicateButton(e,r){var d;const s=e.getAttribute("aria-label"),o=(d=e.textContent)==null?void 0:d.trim();if(!(s||o))return;const u=this._document.createElement("button");u.textContent=(o||"")+" dup",s&&u.setAttribute("aria-label",s+" dup"),u.style.cssText="position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; pointer-events: none !important;",u.setAttribute("tabindex","-1"),u.setAttribute("data-pw-nested-button-duplicate","true"),u.disabled=!0,r.appendChild(u),this._hiddenDuplicateButtons.push(u)}handleNestedClick(e,r,s,o){let l=null;if(r.elements&&r.elements.length>0&&(l=r.elements[0]),!(l&&e!==l&&l.contains(e)))return this._isInsideButtonWrapperWithNativeInput(e)?{targetSelector:r.selector,shouldAutoDisable:!0}:null;const d=l.getAttribute("role");if(d!=="checkbox"&&d!=="radio"&&!this._isInsideButtonWrapperWithNativeInput(l))return null;const m=s.generateSelector(e,{testIdAttributeName:o});let p;if(m.selector===r.selector){const v=this._buildChildSelector(e,l,o);if(!v)return null;p=`${r.selector} >> ${v}`}else{const v=r.selector,g=m.selector;v&&g&&!g.startsWith(v)&&!g.includes(">>")?p=`${v} >> ${g}`:p=g}return{targetSelector:p,shouldAutoDisable:!0}}_buildChildSelector(e,r,s){const o=d=>d.tagName.toLowerCase()==="svg",l=d=>{const m=d.tagName.toLowerCase();return m==="path"||m==="g"||m==="circle"||m==="rect"||m==="polygon"||m==="line"||m==="polyline"||m==="ellipse"};let u=e;if(l(e)){let d=e.parentElement;for(;d&&d!==r;){if(o(d)&&d.classList.length>0&&Array.from(d.classList).some(p=>p.includes("chevron")||p.includes("icon")||p.includes("expandable"))){u=d;break}if(!o(d)&&!l(d)&&d.classList.length>0){u=d;break}d=d.parentElement}}else if(o(e)&&e.classList.length===0){let d=e.parentElement;for(;d&&d!==r;){if(d.classList.length>0){u=d;break}d=d.parentElement}}if(u.hasAttribute(s)){const d=u.getAttribute(s)||"";return`[${s}=${vC(d)}]`}if(u.classList.length>0){const d=Array.from(u.classList),m=d.filter(p=>p.includes("expand")||p.includes("chevron")||p.includes("badge")||p.includes("checkmark")||p.includes("heading")||p.includes("status")||p.includes("icon")||p.includes("button")||p.includes("title"));if(m.length>0){const p=m.find(v=>v.includes("chevron")||v.includes("checkmark")||v.includes("badge"))||m[0];return"."+fv(p)}else if(d.length>0)return"."+fv(d[0])}return u.tagName.toLowerCase()}_isInsideButtonWrapperWithNativeInput(e){let r=e;for(;r;){if(this._savedButtonRoles.has(r))return!!r.querySelector('input[type="checkbox"], input[type="radio"]');r=r.parentElement}return!1}cleanup(){this._enabled&&(this._disableNestedElementAccess(),this._enabled=!1)}}class Hl{constructor(e){this._pdfDoc=null,this._canvasElements=[],this._thumbnailElements=[],this._isRendering=!1,this._toolbar=null,this._sidebar=null,this._mainContent=null,this._currentPage=1,this._pageDisplay=null,this._zoomDisplay=null,this._currentZoom=1,this._rotation=0,this._pdfDataUrl="",this._filename="Document.pdf",this._moreMenuElement=null,this._moreMenuCleanup=null,this._twoPageView=!1,this._annotationsVisible=!0,this._container=e}static async loadPdfJs(){if(window.pdfjsLib)return;console.log("[PDF.js] Loading PDF.js library from CDN...");const e=document.createElement("script");return e.src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.min.js",new Promise((r,s)=>{e.onload=()=>{if(!window.pdfjsLib){s(new Error("PDF.js loaded but pdfjsLib not available"));return}window.pdfjsLib.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js",console.log("[PDF.js] ✅ PDF.js library loaded successfully"),r()},e.onerror=()=>s(new Error("Failed to load PDF.js from CDN")),document.head.appendChild(e)})}async renderPdf(e){const{pdfDataUrl:r,filename:s,onReady:o,onError:l}=e;try{this._pdfDataUrl=r,this._filename=s||"Document.pdf",await Hl.loadPdfJs(),console.log("[PDF.js] Rendering PDF..."),this._isRendering=!0;const u=window.pdfjsLib.getDocument(r);this._pdfDoc=await u.promise,console.log(`[PDF.js] PDF loaded: ${this._pdfDoc.numPages} pages`),document.documentElement&&(document.documentElement.style.height="auto"),document.body&&(document.body.style.margin="0",document.body.style.padding="0",document.body.style.width="100%",document.body.style.height="auto",document.body.style.overflow="auto"),this._container.innerHTML="",this._canvasElements=[],this._thumbnailElements=[],this._container.style.cssText=`
362
+ width: 100%;
363
+ min-height: 100vh;
364
+ display: flex;
365
+ flex-direction: column;
366
+ background-color: #525252;
367
+ margin: 0;
368
+ padding: 0;
369
+ `,this._toolbar=document.createElement("div"),this._toolbar.style.cssText=`
370
+ width: 100%;
371
+ height: 56px;
372
+ background-color: #4a4a4a;
373
+ color: #e8eaed;
374
+ display: flex;
375
+ align-items: center;
376
+ justify-content: space-between;
377
+ padding: 0 8px;
378
+ box-sizing: border-box;
379
+ font-family: 'Roboto', Arial, sans-serif;
380
+ font-size: 14px;
381
+ flex-shrink: 0;
382
+ border-bottom: 1px solid #2a2a2a;
383
+ position: sticky;
384
+ top: 0;
385
+ z-index: 10;
386
+ `;const d=document.createElement("div");d.style.cssText="display: flex; align-items: center; gap: 12px;";const m=this._createToolbarButton("≡","Menu",()=>{if(this._sidebar){const J=this._sidebar.style.display==="none";this._sidebar.style.display=J?"block":"none"}});m.style.fontSize="24px",d.appendChild(m);const p=document.createElement("div");p.textContent=s||"Document.pdf",p.style.cssText=`
387
+ color: #e8eaed;
388
+ font-size: 14px;
389
+ font-weight: 400;
390
+ margin-left: 4px;
391
+ `,d.appendChild(p);const v=document.createElement("div");v.style.cssText="display: flex; align-items: center; gap: 12px;";const g=document.createElement("div");g.style.cssText="display: flex; align-items: center; gap: 8px;";const y=document.createElement("span");y.textContent=`1 / ${this._pdfDoc.numPages}`,y.style.cssText="color: #e8eaed; font-size: 13px; min-width: 50px; text-align: center;",g.appendChild(y),v.appendChild(g);const w=document.createElement("div");w.style.cssText="width: 1px; height: 24px; background-color: #5f5f5f;",v.appendChild(w);const E=document.createElement("div");E.style.cssText="display: flex; align-items: center; gap: 8px;";const S=this._createToolbarButton("−","Zoom out",()=>{this._zoom(this._currentZoom-.1)});E.appendChild(S);const T=document.createElement("span");T.textContent="100%",T.style.cssText="color: #e8eaed; font-size: 13px; min-width: 45px; text-align: center; cursor: pointer;",T.title="Reset zoom to 100%",T.addEventListener("click",()=>{this._zoom(1)}),E.appendChild(T);const k=this._createToolbarButton("+","Zoom in",()=>{this._zoom(this._currentZoom+.1)});E.appendChild(k),v.appendChild(E);const D=document.createElement("div");D.style.cssText="width: 1px; height: 24px; background-color: #5f5f5f;",v.appendChild(D);const I=this._createToolbarButton("⊡","Fit to page",()=>{this._fitToPage()});I.style.fontSize="18px",v.appendChild(I);const z=this._createToolbarButton("↻","Rotate clockwise",()=>{this._rotate()});z.style.fontSize="18px",v.appendChild(z);const $=document.createElement("div");$.style.cssText="display: flex; align-items: center; gap: 8px;";const Z=this._createToolbarButton("⬇","Download",()=>{this._download()});Z.style.fontSize="18px",$.appendChild(Z);const W=this._createToolbarButton("🖨","Print",()=>{this._print()});W.style.fontSize="16px",$.appendChild(W);let B;B=this._createToolbarButton("⋮","More options",()=>{this._toggleMoreMenu(B)}),B.style.fontSize="20px",$.appendChild(B),this._toolbar.appendChild(d),this._toolbar.appendChild(v),this._toolbar.appendChild($),this._pageDisplay=y,this._zoomDisplay=T;const H=document.createElement("div");H.style.cssText=`
392
+ width: 100%;
393
+ flex: 1;
394
+ display: flex;
395
+ `,this._sidebar=document.createElement("div"),this._sidebar.style.cssText=`
396
+ width: 294px;
397
+ height: calc(100vh - 56px);
398
+ overflow-y: auto;
399
+ overflow-x: hidden;
400
+ background-color: #3f3f3f;
401
+ border-right: 1px solid #2a2a2a;
402
+ padding: 20px 35px 20px 70px;
403
+ box-sizing: border-box;
404
+ flex-shrink: 0;
405
+ position: sticky;
406
+ top: 56px;
407
+ align-self: flex-start;
408
+ `,this._mainContent=document.createElement("div"),this._mainContent.style.cssText=`
409
+ flex: 1;
410
+ overflow: visible;
411
+ background-color: #525252;
412
+ position: relative;
413
+ padding: 0;
414
+ box-sizing: border-box;
415
+ `,this._container.appendChild(this._toolbar),H.appendChild(this._sidebar),H.appendChild(this._mainContent),this._container.appendChild(H);for(let J=1;J<=this._pdfDoc.numPages;J++)await this._renderPage(J),await this._renderThumbnail(J);this._setupScrollSync(),this._isRendering=!1,console.log("[PDF.js] ✅ All pages rendered successfully"),o&&o()}catch(u){this._isRendering=!1,console.error("[PDF.js] ❌ Failed to render PDF:",u),l&&l(u)}}static _injectTextLayerCss(){if(document.getElementById("pw-pdf-text-layer-styles"))return;const e=document.createElement("style");e.id="pw-pdf-text-layer-styles",e.textContent=`
416
+ div[data-pw-pdf-text-layer] {
417
+ line-height: 1;
418
+ -webkit-text-size-adjust: none;
419
+ -moz-text-size-adjust: none;
420
+ text-size-adjust: none;
421
+ forced-color-adjust: none;
422
+ transform-origin: 0 0;
423
+ }
424
+ div[data-pw-pdf-text-layer] :is(span, br) {
425
+ color: transparent;
426
+ position: absolute;
427
+ white-space: pre;
428
+ cursor: text;
429
+ transform-origin: 0% 0%;
430
+ pointer-events: none;
431
+ }
432
+ div[data-pw-pdf-text-layer] span.markedContent {
433
+ top: 0;
434
+ height: 0;
435
+ }
436
+ `,document.head.appendChild(e)}async _renderPage(e){if(!this._mainContent)return;const r=await this._pdfDoc.getPage(e),s=r.getViewport({scale:1}),o=this._mainContent.clientWidth||800;let l,u;this._twoPageView?(l=(o/2-32)*.95/s.width*this._currentZoom,u="16px auto"):(l=(o-80)*.89/s.width*this._currentZoom,u="16px 20px 16px 80px");const d=r.getViewport({scale:l}),m=document.createElement("div");m.setAttribute("data-page-number",e.toString()),m.style.cssText=`
437
+ position: relative;
438
+ margin: ${u};
439
+ background: white;
440
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 8px rgba(0, 0, 0, 0.15);
441
+ width: ${d.width}px;
442
+ height: ${d.height}px;
443
+ box-sizing: border-box;
444
+ `;const p=document.createElement("canvas");p.width=d.width,p.height=d.height,p.style.cssText=`
445
+ display: block;
446
+ width: 100%;
447
+ height: 100%;
448
+ `,m.appendChild(p),this._mainContent.appendChild(m),this._canvasElements.push(p);const v=p.getContext("2d");if(!v)throw new Error("Failed to get canvas 2D context");const g={canvasContext:v,viewport:d};await r.render(g).promise;try{Hl._injectTextLayerCss();const y=await r.getTextContent(),w=document.createElement("div");w.setAttribute("data-pw-pdf-text-layer",e.toString()),w.style.cssText=`
449
+ position: absolute;
450
+ top: 0;
451
+ left: 0;
452
+ width: ${d.width}px;
453
+ height: ${d.height}px;
454
+ overflow: hidden;
455
+ opacity: 0;
456
+ `,w.style.setProperty("--scale-factor",String(l)),m.appendChild(w),await window.pdfjsLib.renderTextLayer({textContentSource:y,container:w,viewport:d,textDivs:[]}).promise}catch(y){console.warn(`[PDF.js] Text layer render failed for page ${e}:`,y)}console.log(`[PDF.js] Rendered page ${e}/${this._pdfDoc.numPages}`)}async _renderThumbnail(e){if(!this._sidebar)return;const r=await this._pdfDoc.getPage(e),l=118/r.getViewport({scale:1}).width,u=r.getViewport({scale:l}),d=document.createElement("div");d.setAttribute("data-page-number",e.toString()),d.style.cssText=`
457
+ margin: 18px auto;
458
+ background: white;
459
+ cursor: pointer;
460
+ border: 3px solid transparent;
461
+ box-sizing: border-box;
462
+ transition: border-color 0.15s;
463
+ width: fit-content;
464
+ box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
465
+ `,e===1&&(d.style.borderColor="#1a73e8");const m=document.createElement("canvas");m.width=u.width,m.height=u.height,m.style.cssText="display: block; width: 100%; height: auto;";const p=document.createElement("div");p.textContent=e.toString(),p.style.cssText=`
466
+ text-align: center;
467
+ color: #dadce0;
468
+ font-size: 13px;
469
+ padding: 5px;
470
+ background: #3f3f3f;
471
+ font-family: 'Roboto', Arial, sans-serif;
472
+ `,d.appendChild(m),d.appendChild(p),this._sidebar.appendChild(d),this._thumbnailElements.push(d),d.addEventListener("click",()=>{this._scrollToPage(e)});const v=m.getContext("2d");v&&await r.render({canvasContext:v,viewport:u}).promise}_scrollToPage(e){if(!this._mainContent)return;const r=this._mainContent.querySelector(`[data-page-number="${e}"]`);if(r){const s=r.getBoundingClientRect();window.scrollBy({top:s.top-56,behavior:"smooth"}),this._updateCurrentPage(e)}}_updateCurrentPage(e){this._currentPage!==e&&(this._thumbnailElements[this._currentPage-1]&&(this._thumbnailElements[this._currentPage-1].style.borderColor="transparent"),this._thumbnailElements[e-1]&&(this._thumbnailElements[e-1].style.borderColor="#1a73e8"),this._currentPage=e,this._pageDisplay&&(this._pageDisplay.textContent=`${e} / ${this._pdfDoc.numPages}`))}_createToolbarButton(e,r,s){const o=document.createElement("button");return o.textContent=e,o.title=r,o.style.cssText=`
473
+ background: transparent;
474
+ border: none;
475
+ color: #e8eaed;
476
+ cursor: pointer;
477
+ padding: 6px 8px;
478
+ border-radius: 4px;
479
+ font-size: 16px;
480
+ line-height: 1;
481
+ display: flex;
482
+ align-items: center;
483
+ justify-content: center;
484
+ min-width: 32px;
485
+ height: 32px;
486
+ transition: background-color 0.2s;
487
+ `,o.addEventListener("mouseenter",()=>{o.style.backgroundColor="rgba(255, 255, 255, 0.1)"}),o.addEventListener("mouseleave",()=>{o.style.backgroundColor="transparent"}),o.addEventListener("click",l=>{l.preventDefault(),s()}),o}async _zoom(e){if(!this._pdfDoc||!this._mainContent){console.warn("[PDF.js] Cannot zoom: PDF not loaded");return}this._currentZoom=Math.max(.25,Math.min(4,e)),this._zoomDisplay&&(this._zoomDisplay.textContent=`${Math.round(this._currentZoom*100)}%`),console.log(`[PDF.js] Zooming to ${Math.round(this._currentZoom*100)}%...`),await this._rerenderPages(),console.log("[PDF.js] ✅ Zoom complete")}async _rerenderPages(){if(!this._pdfDoc||!this._mainContent)return;const e=window.scrollY/(document.body.scrollHeight||1);this._twoPageView?this._mainContent.style.cssText=`
488
+ flex: 1;
489
+ overflow: visible;
490
+ background-color: #525252;
491
+ position: relative;
492
+ padding: 0;
493
+ box-sizing: border-box;
494
+ display: grid;
495
+ grid-template-columns: 1fr 1fr;
496
+ align-items: start;
497
+ `:this._mainContent.style.cssText=`
498
+ flex: 1;
499
+ overflow: visible;
500
+ background-color: #525252;
501
+ position: relative;
502
+ padding: 0;
503
+ box-sizing: border-box;
504
+ `,this._mainContent.innerHTML="",this._canvasElements=[];for(let r=1;r<=this._pdfDoc.numPages;r++)await this._renderPage(r);setTimeout(()=>{window.scrollTo(0,e*document.body.scrollHeight)},100)}_fitToPage(){this._mainContent&&(this._zoom(1),console.log("[PDF.js] Fit to page"))}_rotate(){var r;this._rotation=(this._rotation+90)%360;const e=(r=this._mainContent)==null?void 0:r.querySelectorAll("[data-page-number]");e&&e.forEach(s=>{s.style.transform=`rotate(${this._rotation}deg)`}),console.log(`[PDF.js] Rotated to ${this._rotation} degrees`)}_download(){if(!this._pdfDataUrl){console.error("[PDF.js] No PDF data URL available for download");return}const e=document.createElement("a");e.href=this._pdfDataUrl,e.download=this._filename,e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),console.log(`[PDF.js] Downloaded: ${this._filename}`)}_print(){if(!this._canvasElements.length){console.error("[PDF.js] No pages rendered to print");return}const e=window.open("","_blank");if(!e){console.warn("[PDF.js] Print window blocked by browser");return}const r=e.document;r.write(`<!DOCTYPE html><html><head>
505
+ <title>${this._filename}</title>
506
+ <style>
507
+ * { margin: 0; padding: 0; box-sizing: border-box; }
508
+ body { background: white; }
509
+ img { display: block; width: 100%; page-break-after: always; page-break-inside: avoid; }
510
+ img:last-child { page-break-after: avoid; }
511
+ </style>
512
+ </head><body>`);for(const s of this._canvasElements){const o=s.toDataURL("image/png");r.write(`<img src="${o}">`)}r.write("</body></html>"),r.close(),e.onload=()=>{e.print(),e.close()},setTimeout(()=>{e.closed||(e.print(),e.close())},1500),console.log("[PDF.js] Print window opened")}_toggleMoreMenu(e){if(this._moreMenuElement){this._closeMoreMenu();return}const r=document.createElement("div");this._moreMenuElement=r,r.style.cssText=`
513
+ position: fixed;
514
+ background: #202124;
515
+ border-radius: 4px;
516
+ box-shadow: 0 2px 10px rgba(0,0,0,0.6);
517
+ z-index: 2147483648;
518
+ min-width: 220px;
519
+ padding: 4px 0;
520
+ font-family: 'Roboto', Arial, sans-serif;
521
+ font-size: 14px;
522
+ color: #e8eaed;
523
+ `;const s=e.getBoundingClientRect();r.style.top=`${s.bottom+4}px`,r.style.right=`${window.innerWidth-s.right}px`;const o=(d,m,p)=>{const v=document.createElement("div");if(v.style.cssText=`
524
+ padding: 10px 16px 10px 44px;
525
+ cursor: pointer;
526
+ position: relative;
527
+ white-space: nowrap;
528
+ `,m!==null){const y=document.createElement("span");y.textContent=m?"✓":"",y.style.cssText=`
529
+ position: absolute;
530
+ left: 16px;
531
+ top: 50%;
532
+ transform: translateY(-50%);
533
+ font-size: 14px;
534
+ `,v.appendChild(y)}const g=document.createElement("span");return g.textContent=d,v.appendChild(g),v.addEventListener("mouseenter",()=>{v.style.backgroundColor="rgba(255,255,255,0.1)"}),v.addEventListener("mouseleave",()=>{v.style.backgroundColor="transparent"}),v.addEventListener("click",()=>{this._closeMoreMenu(),p()}),r.appendChild(v),v},l=()=>{const d=document.createElement("div");d.style.cssText="height: 1px; background: rgba(255,255,255,0.15); margin: 4px 0;",r.appendChild(d)};o("Two page view",this._twoPageView,()=>{this._twoPageView=!this._twoPageView,this._rerenderPages()}),o("Annotations",this._annotationsVisible,()=>{this._annotationsVisible=!this._annotationsVisible,console.log(`[PDF.js] Annotations ${this._annotationsVisible?"shown":"hidden"}`)}),l(),o("Present",null,()=>{this._present()}),o("Document properties",null,()=>{this._showDocumentProperties()});const u=d=>{!r.contains(d.target)&&d.target!==e&&this._closeMoreMenu()};setTimeout(()=>{document.addEventListener("mousedown",u,!0),this._moreMenuCleanup=()=>document.removeEventListener("mousedown",u,!0)},0),document.body.appendChild(r)}_closeMoreMenu(){this._moreMenuElement&&(this._moreMenuElement.remove(),this._moreMenuElement=null),this._moreMenuCleanup&&(this._moreMenuCleanup(),this._moreMenuCleanup=null)}_present(){console.log("[PDF.js] Present: not yet implemented")}async _showDocumentProperties(){if(!this._pdfDoc)return;let e={};try{e=(await this._pdfDoc.getMetadata()).info||{}}catch{}let r="-";if(this._pdfDataUrl)try{const y=this._pdfDataUrl.split(",")[1];if(y){const w=Math.ceil(y.length*3/4);r=w>=1024*1024?`${(w/(1024*1024)).toFixed(1)} MB`:`${(w/1024).toFixed(1)} KB`}}catch{}const s=y=>{if(!y)return"-";const w=y.match(/^D:(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/);if(!w)return y;const E=new Date(`${w[1]}-${w[2]}-${w[3]}T${w[4]}:${w[5]}:${w[6]}`);return isNaN(E.getTime())?y:E.toLocaleString()};let o="-";try{const w=(await this._pdfDoc.getPage(1)).getViewport({scale:1}),E=(w.width/72).toFixed(2),S=(w.height/72).toFixed(2),T=w.width>w.height?"landscape":"portrait";o=`${E} × ${S} in (${T})`}catch{}const l=[[["File name:",this._filename],["File size:",r]],[["Title:",e.Title||"-"],["Author:",e.Author||"-"],["Subject:",e.Subject||"-"],["Keywords:",e.Keywords||"-"],["Created:",s(e.CreationDate||"")],["Modified:",s(e.ModDate||"")],["Application:",e.Creator||"-"]],[["PDF producer:",e.Producer||"-"],["PDF version:",e.PDFFormatVersion||"-"],["Page count:",`${this._pdfDoc.numPages}`],["Page size:",o]],[["Fast web view:","No"]]],u=document.createElement("div");u.style.cssText=`
535
+ position: fixed;
536
+ top: 0; left: 0; right: 0; bottom: 0;
537
+ background: rgba(0,0,0,0.5);
538
+ z-index: 2147483649;
539
+ display: flex;
540
+ align-items: center;
541
+ justify-content: center;
542
+ `;const d=document.createElement("div");d.style.cssText=`
543
+ background: #3c4043;
544
+ border-radius: 12px;
545
+ padding: 24px 24px 16px;
546
+ min-width: 380px;
547
+ max-width: 500px;
548
+ color: #e8eaed;
549
+ font-family: 'Roboto', Arial, sans-serif;
550
+ box-shadow: 0 4px 20px rgba(0,0,0,0.5);
551
+ `;const m=document.createElement("h3");m.textContent="Document properties",m.style.cssText="margin: 0 0 16px; font-size: 18px; font-weight: 500;",d.appendChild(m);const p=(y,w)=>{const E=document.createElement("div");E.style.cssText="display: flex; padding: 7px 0; font-size: 13px;";const S=document.createElement("span");S.textContent=y,S.style.cssText="min-width: 140px; flex-shrink: 0;";const T=document.createElement("span");T.textContent=w,T.style.wordBreak="break-all",E.appendChild(S),E.appendChild(T),d.appendChild(E)},v=()=>{const y=document.createElement("div");y.style.cssText="height: 1px; background: rgba(255,255,255,0.15); margin: 6px 0;",d.appendChild(y)};for(let y=0;y<l.length;y++){for(const[w,E]of l[y])p(w,E);y<l.length-1&&v()}const g=document.createElement("button");g.textContent="Close",g.style.cssText=`
552
+ display: block;
553
+ margin: 20px 0 0 auto;
554
+ padding: 10px 28px;
555
+ background: #8ab4f8;
556
+ border: none;
557
+ border-radius: 24px;
558
+ color: #202124;
559
+ font-size: 14px;
560
+ font-weight: 500;
561
+ cursor: pointer;
562
+ font-family: 'Roboto', Arial, sans-serif;
563
+ `,g.addEventListener("click",()=>u.remove()),d.appendChild(g),u.appendChild(d),u.addEventListener("click",y=>{y.target===u&&u.remove()}),document.body.appendChild(u),console.log("[PDF.js] Document properties dialog opened")}_setupScrollSync(){this._mainContent&&window.addEventListener("scroll",()=>{if(!this._mainContent)return;const e=this._mainContent.querySelectorAll("[data-page-number]"),r=56;for(let s=0;s<e.length;s++){const o=e[s],l=o.getBoundingClientRect();if(l.top<=r+100&&l.bottom>r){const u=parseInt(o.getAttribute("data-page-number")||"1");this._updateCurrentPage(u);break}}},{passive:!0})}cleanup(){this._pdfDoc&&(this._pdfDoc.destroy(),this._pdfDoc=null),this._closeMoreMenu(),this._canvasElements=[],this._thumbnailElements=[],this._toolbar=null,this._sidebar=null,this._mainContent=null,this._currentPage=1,this._container.innerHTML=""}}class eN{static async fetchPdfViaBackend(e){try{if(console.log("[PW-PDF-VIEWER] Fetching PDF via Playwright backend:",e.substring(0,100)),!window.__pw_recorderFetchPdf)throw new Error("__pw_recorderFetchPdf binding not available");const r=await window.__pw_recorderFetchPdf(e);if(!r)throw new Error("Backend returned null (fetch failed)");return console.log("[PW-PDF-VIEWER] ✅ Successfully fetched PDF via backend:",r.substring(0,100)),r}catch(r){return console.error("[PW-PDF-VIEWER] ❌ Failed to fetch PDF via backend:",r),null}}static async renderPdfWithPdfJs(e){const{pdfUrl:r,containerElement:s,onSuccess:o,onError:l}=e;try{console.log("[PW-PDF-VIEWER] Starting PDF render process...");const u=await this.fetchPdfViaBackend(r);if(!u)throw new Error("Failed to fetch PDF from backend");console.log("[PW-PDF-VIEWER] ✅ PDF fetched, initializing PDF.js viewer...");let d="Document.pdf";try{const v=new URL(r).pathname,g=v.lastIndexOf("/");g!==-1&&(d=v.substring(g+1),d=decodeURIComponent(d))}catch(p){console.warn("[PW-PDF-VIEWER] Failed to extract filename from URL:",p)}return await new Hl(s).renderPdf({pdfDataUrl:u,filename:d,onReady:()=>{console.log("[PW-PDF-VIEWER] ✅ PDF rendered successfully!"),o&&o()},onError:p=>{console.error("[PW-PDF-VIEWER] ❌ PDF.js render error:",p),l&&l(p)}}),!0}catch(u){return console.error("[PW-PDF-VIEWER] ❌ Failed to render PDF:",u),l&&l(u),!1}}}class s6{constructor(e){this._pdfEmbeds=new Map,this._pdfPageReplaced=!1,this._mutationObserver=null,this._recorder=e}install(){console.log("[PDF-Tool] Installing PDF viewer tool..."),this._detectAndReplacePdfEmbeds(),this._setupAutomaticPdfDetection()}uninstall(){console.log("[PDF-Tool] Uninstalling PDF viewer tool..."),this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null)}cleanup(){console.log("[PDF-Tool] Cleaning up PDF viewer tool...");for(const[,e]of this._pdfEmbeds.entries())e.viewer.cleanup();this._pdfEmbeds.clear(),this._mutationObserver&&(this._mutationObserver.disconnect(),this._mutationObserver=null)}isWithinPdfViewer(e){if(!e)return!1;let r=e;for(;r;){if(this._pdfEmbeds.has(r)||r.hasAttribute&&r.hasAttribute("data-pw-pdf-viewer")||r.id==="pw-pdf-viewer-container")return!0;r=r.parentNode}return!1}_setupAutomaticPdfDetection(){console.log("[PDF-Tool] Setting up automatic PDF detection..."),this._mutationObserver=new MutationObserver(e=>{for(const r of e)if(r.type==="childList"&&r.addedNodes.length>0){setTimeout(()=>{this._detectAndReplacePdfEmbeds()},100);break}}),this._mutationObserver.observe(this._recorder.document.body,{childList:!0,subtree:!0}),console.log("[PDF-Tool] ✅ Automatic PDF detection active")}async _detectAndReplacePdfEmbeds(){if(console.log("[PDF-Tool] Scanning for PDF embeds..."),this._pdfPageReplaced){console.log("[PDF-Tool] PDF page already replaced, skipping detection");return}if(this._isCurrentPagePdf()){console.log("[PDF-Tool] Current page is a PDF document, replacing with PDF.js viewer..."),await this._replacePdfPage();return}const r=this._recorder.document.querySelectorAll('embed[type="application/pdf"], iframe[src*=".pdf"]');if(r.length===0){console.log("[PDF-Tool] No PDF embeds found");return}console.log(`[PDF-Tool] Found ${r.length} PDF embed(s)`);for(const s of r)await this._replacePdfEmbed(s)}_isCurrentPagePdf(){const e=window.location.href,r=this._recorder.document;return e.toLowerCase().endsWith(".pdf")?(console.log("[PDF-Tool] URL ends with .pdf:",e),!0):r.querySelector('embed[type="application/pdf"]')&&r.body.children.length===1?(console.log("[PDF-Tool] Found full-page PDF embed"),!0):e.includes("s3.amazonaws.com")||e.includes(".s3.")?(console.log("[PDF-Tool] S3 URL detected, likely a PDF:",e),!0):!1}async _replacePdfPage(){try{this._pdfPageReplaced=!0;const e=window.location.href;console.log("[PDF-Tool] Replacing full-page PDF with PDF.js viewer:",e.substring(0,100));const r=this._recorder.document;r.body.innerHTML="";const s=r.createElement("div");s.setAttribute("data-pw-pdf-viewer","true"),s.id="pw-pdf-viewer-container",s.style.cssText=`
564
+ position: fixed;
565
+ top: 0;
566
+ left: 0;
567
+ width: 100%;
568
+ height: 100%;
569
+ z-index: 2147483647;
570
+ background: #525252;
571
+ `,r.body.appendChild(s);const o=new Hl(s);await eN.renderPdfWithPdfJs({pdfUrl:e,containerElement:s,onSuccess:()=>{console.log("[PDF-Tool] ✅ Full-page PDF replaced with PDF.js viewer")},onError:u=>{console.error("[PDF-Tool] ❌ Failed to render full-page PDF:",u)}})||console.error("[PDF-Tool] Failed to render full-page PDF")}catch(e){console.error("[PDF-Tool] Error replacing full-page PDF:",e)}}async _replacePdfEmbed(e){try{if(this._pdfEmbeds.has(e)){console.log("[PDF-Tool] PDF embed already replaced, skipping...");return}let r=e.getAttribute("src");if(!r||r==="about:blank"){if(console.log('[PDF-Tool] Embed has src="about:blank", using page URL as PDF URL...'),r=window.location.href,!r.includes(".pdf")){console.log("[PDF-Tool] Page URL does not appear to be a PDF, skipping");return}console.log("[PDF-Tool] Using page URL as PDF:",r.substring(0,100))}console.log("[PDF-Tool] Replacing PDF embed with PDF.js viewer:",r.substring(0,100));const s=this._recorder.document.createElement("div");s.setAttribute("data-pw-pdf-viewer","true"),s.style.cssText=`
572
+ position: absolute;
573
+ top: ${e.offsetTop}px;
574
+ left: ${e.offsetLeft}px;
575
+ width: ${e.offsetWidth||800}px;
576
+ height: ${e.offsetHeight||600}px;
577
+ z-index: 2147483647;
578
+ background: #525252;
579
+ `;const o=e.parentNode;if(!o)return;o.insertBefore(s,e),e.style.display="none";const l=new Hl(s);this._pdfEmbeds.set(e,{originalParent:o,viewer:l,container:s}),await eN.renderPdfWithPdfJs({pdfUrl:r,containerElement:s,onSuccess:()=>{console.log("[PDF-Tool] ✅ PDF embed replaced successfully")},onError:u=>{console.error("[PDF-Tool] ❌ Failed to render PDF:",u),e.style.display="",s.parentNode&&s.parentNode.removeChild(s),this._pdfEmbeds.delete(e)}})}catch(r){console.error("[PDF-Tool] Error replacing PDF embed:",r)}}}function cs(i,e,r,s){return i.addEventListener(e,r,s),()=>{i.removeEventListener(e,r,s)}}function a6(i){for(const e of i)e();i.splice(0,i.length)}function Kt(i){return i.injectedScript.utils.builtins.Date.now().toString()}const xn=class xn{constructor(e){this._dragState=null,this._listeners=[],this._lastClickTime=0,this._lastClickTimeout=null,this._lastMousePosition=null,this._wheelToggleTimeout=null,this._isWheelSequence=!1,this._wheelAccumulator=null,this._wheelDebounceTimeout=null,this._pdfViewerTool=null,this._goJSAlwaysOnRemovers=[],this._recorder=e}cursor(){return"grab"}install(){this._arm(),this._checkAndActivatePdfViewer(),this._hookGoJSDiagramsAlwaysOn()}uninstall(){this._lastClickTimeout&&(clearTimeout(this._lastClickTimeout),this._lastClickTimeout=null),this._wheelToggleTimeout&&(clearTimeout(this._wheelToggleTimeout),this._wheelToggleTimeout=null),this._flushWheelAction(),this._wheelDebounceTimeout&&(clearTimeout(this._wheelDebounceTimeout),this._wheelDebounceTimeout=null),this._dragState&&this._dragState.source&&this._dragState.target&&this._capture();for(const e of this._goJSAlwaysOnRemovers)e();this._goJSAlwaysOnRemovers=[],delete this._recorder.document.__skyrampGoJSHooked,this._disarm()}cleanup(){this._lastClickTimeout&&(clearTimeout(this._lastClickTimeout),this._lastClickTimeout=null),this._wheelToggleTimeout&&(clearTimeout(this._wheelToggleTimeout),this._wheelToggleTimeout=null),this._flushWheelAction(),this._wheelDebounceTimeout&&(clearTimeout(this._wheelDebounceTimeout),this._wheelDebounceTimeout=null),this._dragState&&this._dragState.source&&this._dragState.target&&this._capture(),this._listeners.length>0&&(this._disarm(),this._arm())}onDblClick(e){this._lastClickTimeout&&(clearTimeout(this._lastClickTimeout),this._lastClickTimeout=null);const r=e.target;if(!(!r||this._isPlaywrightElement(r))){e.preventDefault();try{const s={name:"click",selector:"body",button:"left",modifiers:0,clickCount:2,position:{x:Math.round(e.clientX),y:Math.round(e.clientY)},signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(s),this._deactivate()}catch(s){console.error("[PW-RECORDER] Error recording position-based double-click:",s),this._deactivate()}}}_flushWheelAction(){if(!this._wheelAccumulator)return;const e=Math.abs(this._wheelAccumulator.deltaX),r=Math.abs(this._wheelAccumulator.deltaY);if(e<xn.WHEEL_NOISE_AXIS_THRESHOLD&&r<xn.WHEEL_NOISE_AXIS_THRESHOLD){console.log("[PW-RECORDER] Suppressing Magic Mouse noise wheel:",{deltaX:this._wheelAccumulator.deltaX,deltaY:this._wheelAccumulator.deltaY,accumulatedFor:Date.now()-this._wheelAccumulator.startTime+"ms"}),this._wheelAccumulator=null;return}try{const s={name:"mouse.wheel",position:this._wheelAccumulator.position,deltaX:this._wheelAccumulator.deltaX,deltaY:this._wheelAccumulator.deltaY,deltaZ:this._wheelAccumulator.deltaZ,modifiers:this._wheelAccumulator.modifiers,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(s),console.log("[PW-RECORDER] Flushed accumulated wheel action:",{deltaX:s.deltaX,deltaY:s.deltaY,deltaZ:s.deltaZ,accumulatedFor:Date.now()-this._wheelAccumulator.startTime+"ms"})}catch(s){console.error("[PW-RECORDER] Error flushing wheel action:",s)}this._wheelAccumulator=null}_arm(){var v;this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1},(v=this._recorder.injectedScript.document.body)==null||v.setAttribute("data-pw-cursor","grab");const e=g=>{const y=g;if(this._dragState){const w=this._recorder.document.elementFromPoint(y.clientX,y.clientY);w&&!this._isPlaywrightElement(w)&&(this._dragState.source=this._selectDraggableAncestor(w),this._dragState.sourcePoint={x:y.clientX,y:y.clientY})}},r=g=>{const y=g;if(this._dragState&&this._dragState.source){const w=this._recorder.document.elementFromPoint(y.clientX,y.clientY);if(w&&!this._isPlaywrightElement(w)){const E=this._selectDroppableAncestor(w);E!==this._dragState.source&&(this._dragState.target=E,this._dragState.targetPoint={x:y.clientX,y:y.clientY})}}},s=g=>{const y=g;if(this._dragState&&(this._dragState.source=null,this._dragState.target=null,this._dragState.sourcePoint=null,this._dragState.targetPoint=null,this._dragState.isCanvas=!1,this._dragState.isGoJS=!1,this._dragState.isReactFlow=!1,this._dragState.isSlider=!1,this._dragState.dropDetected=!1,this._dragState.startTime=Date.now()),this._dragState){const w=this._recorder.document.elementFromPoint(y.clientX,y.clientY);if(w&&!this._isPlaywrightElement(w))if(this._isReactFlowElement(w)){this._dragState.isReactFlow=!0;let E=w;for(;E&&!E.classList.contains("react-flow");)E=E.parentElement;this._dragState.source=E||w,this._dragState.sourcePoint={x:y.clientX,y:y.clientY}}else if(this._isGoJSElement(w))this._dragState.isGoJS=!0,this._dragState.source=w,this._dragState.sourcePoint={x:y.clientX,y:y.clientY};else if(this._isCanvasElement(w))this._dragState.isCanvas=!0,this._dragState.source=w,this._dragState.sourcePoint={x:y.clientX,y:y.clientY};else{const E=this._selectDraggableAncestor(w);if(E!==w)this._dragState.source=E,this._dragState.sourcePoint={x:y.clientX,y:y.clientY};else{const S=this._findSliderThumb(w);S?(this._dragState.isSlider=!0,this._dragState.source=S,this._dragState.sourcePoint={x:y.clientX,y:y.clientY}):(this._dragState.source=w,this._dragState.sourcePoint={x:y.clientX,y:y.clientY})}}}},o=g=>{const y=g;if(this._dragState&&this._dragState.source&&y.buttons===1){const w=this._recorder.document.elementFromPoint(y.clientX,y.clientY);if(w&&!this._isPlaywrightElement(w)){if(this._dragState.isReactFlow&&this._isReactFlowElement(w))this._dragState.target=this._dragState.source,this._dragState.targetPoint={x:y.clientX,y:y.clientY};else if(this._dragState.isGoJS&&this._isCanvasElement(w))this._dragState.target=w,this._dragState.targetPoint={x:y.clientX,y:y.clientY};else if(this._dragState.isCanvas&&this._isCanvasElement(w))this._dragState.target=w,this._dragState.targetPoint={x:y.clientX,y:y.clientY};else if(this._dragState.isSlider)this._dragState.target=this._dragState.source,this._dragState.targetPoint={x:y.clientX,y:y.clientY};else if(!this._dragState.isCanvas&&!this._dragState.isReactFlow&&!this._dragState.isSlider){const E=this._selectDroppableAncestor(w);E!==this._dragState.source?(this._dragState.target=E,this._dragState.targetPoint={x:y.clientX,y:y.clientY}):w!==this._dragState.source&&(this._dragState.target=w,this._dragState.targetPoint={x:y.clientX,y:y.clientY})}}}},l=g=>{const y=g;if(this._dragState&&this._dragState.source&&this._dragState.sourcePoint)if(this._dragState.target)this._getSourceColumn(this._dragState.source),this._dragState.target,this._capture();else{const w=Math.sqrt(Math.pow(y.clientX-this._dragState.sourcePoint.x,2)+Math.pow(y.clientY-this._dragState.sourcePoint.y,2));if(w>=5){this._deactivate();return}if(w<5){if(y.button===2)return;this._lastClickTimeout&&clearTimeout(this._lastClickTimeout),this._lastClickTimeout=setTimeout(()=>{try{const E={name:"click",selector:"body",button:"left",modifiers:0,clickCount:1,position:{x:Math.round(y.clientX),y:Math.round(y.clientY)},signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(E),this._deactivate()}catch(E){console.error("[PW-RECORDER] Error recording position-based click:",E),this._deactivate()}this._lastClickTimeout=null},300)}}else console.log("[PW-RECORDER] PointerUp - no valid drag state")},u=g=>{const y=g;if(this._dragState&&this._dragState.source){if(this._dragState.dropDetected=!0,!this._dragState.target){const w=this._recorder.document.elementFromPoint(y.clientX,y.clientY);w&&!this._isPlaywrightElement(w)&&(this._dragState.target=this._selectDroppableAncestor(w),this._dragState.targetPoint={x:y.clientX,y:y.clientY})}this._dragState.target?(this._getSourceColumn(this._dragState.source),this._dragState.target,this._capture()):this._deactivate()}else this._deactivate()},d=g=>{var w;const y=g;if(this._dragState&&this._dragState.source){if(this._dragState.dropDetected){if(!this._dragState.target){const E=this._recorder.document.elementFromPoint(y.clientX,y.clientY);E&&!this._isPlaywrightElement(E)&&(this._dragState.target=this._selectDroppableAncestor(E),this._dragState.targetPoint={x:y.clientX,y:y.clientY})}this._dragState.target&&(this._getSourceColumn(this._dragState.source),this._dragState.target,this._capture())}else{const E=(w=y.dataTransfer)==null?void 0:w.dropEffect;if(E&&E!=="none"){this._deactivate();return}console.log("[PW-RECORDER] Drag cancelled (no drop event), not recording")}this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}},m=g=>{var T;const y=g,w=y.target;if(!w||this._isPlaywrightElement(w)||this._isGoJSElement(w))return;const E=((T=this._pdfViewerTool)==null?void 0:T.isWithinPdfViewer(w))||!1;y.ctrlKey&&!E&&g.preventDefault();let S=0;y.altKey&&(S|=1),y.ctrlKey&&(S|=2),y.metaKey&&(S|=4),y.shiftKey&&(S|=8);try{const k={x:Math.round(y.clientX),y:Math.round(y.clientY)};if(!this._isWheelSequence){this._isWheelSequence=!0;const I={name:"comment",text:"Mouse scrolling block",signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(I);const z={name:"waitForTimeout",duration:xn.WHEEL_SCROLL_TIMEOUT_MS,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(z)}if(!this._lastMousePosition||this._lastMousePosition.x!==k.x||this._lastMousePosition.y!==k.y){const I={name:"mouse.move",position:k,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(I),this._lastMousePosition=k}const D=Date.now();this._wheelAccumulator?(this._wheelAccumulator.deltaX+=y.deltaX,this._wheelAccumulator.deltaY+=y.deltaY,this._wheelAccumulator.deltaZ+=y.deltaZ,this._wheelAccumulator.position=k,this._wheelAccumulator.modifiers=S,D-this._wheelAccumulator.startTime>xn.WHEEL_MAX_ACCUMULATION_MS&&(this._flushWheelAction(),this._wheelAccumulator={deltaX:y.deltaX,deltaY:y.deltaY,deltaZ:y.deltaZ,position:k,modifiers:S,startTime:D})):this._wheelAccumulator={deltaX:y.deltaX,deltaY:y.deltaY,deltaZ:y.deltaZ,position:k,modifiers:S,startTime:D},this._wheelDebounceTimeout&&clearTimeout(this._wheelDebounceTimeout),this._wheelDebounceTimeout=setTimeout(()=>{this._flushWheelAction(),this._wheelDebounceTimeout=null},xn.WHEEL_DEBOUNCE_MS),this._wheelToggleTimeout&&clearTimeout(this._wheelToggleTimeout),this._wheelToggleTimeout=setTimeout(()=>{this._deactivate()},xn.WHEEL_TOOL_DISABLE_MS)}catch(k){console.error("[PW-RECORDER] Error recording wheel event:",k)}},p=g=>{const y=g,w=y.target;if(!(!w||this._isPlaywrightElement(w))){g.preventDefault();try{this._lastMousePosition={x:Math.round(y.clientX),y:Math.round(y.clientY)};const E={name:"click",selector:"body",button:"right",modifiers:0,clickCount:1,position:{x:Math.round(y.clientX),y:Math.round(y.clientY)},signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(E),this._deactivate()}catch(E){console.error("[PW-RECORDER] Error recording right-click:",E),this._deactivate()}}};this._listeners=[cs(this._recorder.document,"dragstart",e,!0),cs(this._recorder.document,"dragover",r,!0),cs(this._recorder.document,"drop",u,!0),cs(this._recorder.document,"dragend",d,!0),cs(this._recorder.document,"pointerdown",s,!0),cs(this._recorder.document,"pointermove",o,!0),cs(this._recorder.document,"pointerup",l,!0),cs(this._recorder.document,"wheel",m,{passive:!1,capture:!0}),cs(this._recorder.document,"contextmenu",p,!0)]}_disarm(){a6(this._listeners),this._listeners=[],this._dragState=null}_deactivate(){this._lastClickTimeout&&(clearTimeout(this._lastClickTimeout),this._lastClickTimeout=null),this._wheelToggleTimeout&&(clearTimeout(this._wheelToggleTimeout),this._wheelToggleTimeout=null),this._wheelDebounceTimeout&&(clearTimeout(this._wheelDebounceTimeout),this._wheelDebounceTimeout=null),this._isWheelSequence=!1,this._wheelAccumulator=null,this._disarm(),this._recorder.state.mode==="recordingDrag"&&this._recorder.setMode("recording")}_checkAndActivatePdfViewer(){const e=this._recorder.document;if(window.__pwPdfViewerInstalled){console.log("[DD-Tool] PDF viewer already installed, skipping");return}const r=e.querySelector('embed[type="application/pdf"], iframe[src*=".pdf"]'),s=window.location.href.toLowerCase().endsWith(".pdf")||window.location.href.includes("s3.amazonaws.com")||window.location.href.includes(".s3.");(r||s)&&(console.log("[DD-Tool] PDF detected, activating PDF viewer tool..."),this._pdfViewerTool=new s6(this._recorder),this._pdfViewerTool.install(),window.__pwPdfViewerInstalled=!0,console.log("[DD-Tool] ✅ PDF viewer tool activated (permanent)"))}_getActualPageElement(e){for(const r of e){const s=r;if(s&&s.nodeType===Node.ELEMENT_NODE&&!this._isPlaywrightElement(s))return s}return null}_isPlaywrightElement(e){var l;const r=((l=e.nodeName)==null?void 0:l.toLowerCase())||"",s=e.id||"";return r.startsWith("x-pw-")||s==="x-pw-glass"||e.classList.contains("playwright-overlay")||e.hasAttribute("data-playwright")}_isCanvasElement(e){var r;return((r=e.tagName)==null?void 0:r.toLowerCase())==="canvas"}_isGoJSElement(e){var s,o;if(((s=e.tagName)==null?void 0:s.toLowerCase())!=="canvas")return!1;const r=(o=e.ownerDocument)==null?void 0:o.defaultView;return!!(r!=null&&r.myDiagram||r!=null&&r.myPalette)}_findGoJSContainer(e){var o,l,u;const r=(o=e.ownerDocument)==null?void 0:o.defaultView;if(!((u=(l=r==null?void 0:r.go)==null?void 0:l.Diagram)!=null&&u.fromDiv))return null;let s=e.parentElement;for(;s&&s!==e.ownerDocument.body;){const d=r.go.Diagram.fromDiv(s);if(d){const m=!!(r.go.Palette&&d instanceof r.go.Palette);let p;if(s.id)p=`#${s.id}`;else if(s.getAttribute("data-testid"))p=`[data-testid="${s.getAttribute("data-testid")}"]`;else{const v=s.parentElement;if(v){const g=Array.from(v.children).indexOf(s)+1;p=`${s.tagName.toLowerCase()}:nth-child(${g})`}else p=s.tagName.toLowerCase()}return{diagram:d,isPalette:m,containerSelector:p}}s=s.parentElement}return null}_buildSelectorFromEl(e){if(e.id)return`#${e.id}`;if(e.getAttribute("data-testid"))return`[data-testid="${e.getAttribute("data-testid")}"]`;const r=e.parentElement;if(r){const s=Array.from(r.children).indexOf(e)+1;return`${e.tagName.toLowerCase()}:nth-child(${s})`}return e.tagName.toLowerCase()}_emitGoJSNodeAdd(e,r,s,o,l,u,d){let m,p,v,g,y,w=1/0;e.nodes.each(S=>{if(!(S!=null&&S.data))return;const T=String(S.data.key??"");if(!T||T===l)return;const k=S.location.x-u,D=S.location.y-d,I=Math.sqrt(k*k+D*D);I<w&&(w=I,m=T,p=Math.round(u-S.location.x),v=Math.round(d-S.location.y),g=Math.round(S.location.x),y=Math.round(S.location.y))});const E={name:"diagramNodeAdd",diagramType:"gojs",sourcePanelSelector:r,targetPanelSelector:s,sourceIsPalette:!0,targetIsPalette:!1,sourceCategory:o,sourceKey:l,targetDocX:Math.round(u),targetDocY:Math.round(d),anchorKey:m,anchorOffsetX:p,anchorOffsetY:v,anchorDocX:g,anchorDocY:y,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(E),this._deactivate()}_emitGoJSLinkAdd(e,r,s,o,l){const u={name:"diagramLinkAdd",diagramType:"gojs",panelSelector:l,fromKey:e,toKey:r,fromPort:s,toPort:o,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(u),this._deactivate()}_hookGoJSDiagramsAlwaysOn(){var l,u;const e=this._recorder.document;if(e.__skyrampGoJSHooked)return;const r=e.defaultView;if(!((u=(l=r==null?void 0:r.go)==null?void 0:l.Diagram)!=null&&u.fromDiv))return;const s=Array.from(e.querySelectorAll("canvas"));if(!s.length)return;const o=new Set;for(const d of s){let m=d.parentElement;for(;m&&m!==e.body;){const p=r.go.Diagram.fromDiv(m);if(p){if(!!!(r.go.Palette&&p instanceof r.go.Palette)&&!o.has(p)){o.add(p);const g=this._buildSelectorFromEl(m),y=E=>{e.__skyrampGojsLinkToolActive||E.subject.each(S=>{if(!(S!=null&&S.data)||S.data.from!==void 0)return;const T=String(S.data.category??""),k=String(S.data.key??""),D=S.location;let I="";try{const z=Array.from(e.querySelectorAll("canvas"));for(const $ of z){let Z=$.parentElement;for(;Z&&Z!==e.body;){const W=r.go.Diagram.fromDiv(Z);if(W&&r.go.Palette&&W instanceof r.go.Palette){I=this._buildSelectorFromEl(Z);break}Z=Z.parentElement}if(I)break}}catch{}setTimeout(()=>{const z=S.location??D;this._emitGoJSNodeAdd(p,I,g,T,k,(z==null?void 0:z.x)??0,(z==null?void 0:z.y)??0)},0)})},w=E=>{if(e.__skyrampGojsLinkToolActive)return;const S=E.subject;if(!(S!=null&&S.data))return;const T=String(S.data.from??""),k=String(S.data.to??"");!T||!k||this._emitGoJSLinkAdd(T,k,String(S.data.fromPort??""),String(S.data.toPort??""),g)};p.addDiagramListener("ExternalObjectsDropped",y),p.addDiagramListener("LinkDrawn",w),this._goJSAlwaysOnRemovers.push(()=>{try{p.removeDiagramListener("ExternalObjectsDropped",y),p.removeDiagramListener("LinkDrawn",w)}catch{}})}break}m=m.parentElement}}o.size>0&&(e.__skyrampGoJSHooked=!0,console.log("[DragDropTool] always-on GoJS listeners registered on",o.size,"diagram(s)"))}_captureGoJSDrag(){var e,r,s,o,l;if(!(!((e=this._dragState)!=null&&e.source)||!((r=this._dragState)!=null&&r.target)||!((s=this._dragState)!=null&&s.sourcePoint)||!((o=this._dragState)!=null&&o.targetPoint))){try{const u=this._dragState.source,d=this._dragState.target,m=(l=u.ownerDocument)==null?void 0:l.defaultView,p=this._findGoJSContainer(u),v=this._findGoJSContainer(d),g=(p==null?void 0:p.containerSelector)??"",y=(v==null?void 0:v.containerSelector)??"",w=(p==null?void 0:p.isPalette)??!1,E=(v==null?void 0:v.isPalette)??!1;let S="",T="";const k=p==null?void 0:p.diagram;if(k&&(m!=null&&m.go)){const W=u.getBoundingClientRect(),B=this._dragState.sourcePoint.x-W.left,H=this._dragState.sourcePoint.y-W.top;try{const J=k.transformViewToDoc(new m.go.Point(B,H)),ue=k.findPartAt(J,!1);ue!=null&&ue.data&&(S=ue.data.category??"",T=String(ue.data.key??""))}catch{}}let D=0,I=0;const z=v==null?void 0:v.diagram;if(z&&(m!=null&&m.go)){const W=d.getBoundingClientRect(),B=this._dragState.targetPoint.x-W.left,H=this._dragState.targetPoint.y-W.top;try{const J=z.transformViewToDoc(new m.go.Point(B,H));D=Math.round(J.x),I=Math.round(J.y)}catch{}}if(!w&&T===""){this._deactivate();return}const $=u.ownerDocument;if(w&&$.__skyrampGoJSHooked){this._deactivate();return}const Z={name:"diagramNodeAdd",diagramType:"gojs",sourcePanelSelector:g,targetPanelSelector:y,sourceIsPalette:w,targetIsPalette:E,sourceCategory:S,sourceKey:T,targetDocX:D,targetDocY:I,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(Z),this._deactivate()}catch(u){console.error("[PW-RECORDER] Error capturing GoJS drag:",u),this._captureCanvasDrag();return}this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}}_isReactFlowElement(e){let r=e;for(;r;){const s=Array.from(r.classList||[]);if(s.includes("react-flow")||s.includes("react-flow__pane")||s.includes("react-flow__viewport"))return!0;r=r.parentElement}return!1}_getSelectorSafeElement(e){var s;let r=e;for(;r;){if((s=r.tagName)==null||s.toLowerCase(),r.namespaceURI==="http://www.w3.org/1999/xhtml")return r;if(r.namespaceURI==="http://www.w3.org/2000/svg"){r=r.parentElement;continue}if(r.hasAttribute("data-testid")||r.hasAttribute("data-item-id")||r.hasAttribute("data-column-id")||r.hasAttribute("draggable"))return r;r=r.parentElement}return e}_isSliderThumb(e){var s,o;const r=typeof e.className=="string"?e.className:((s=e.className)==null?void 0:s.baseVal)||"";return r.includes("MuiSlider-mark")||r.includes("MuiSlider-markLabel")||r.includes("slider-label")||r.includes("slider-mark")?!1:!!(r.includes("MuiSlider-thumb")||e.querySelector('input[type="range"]')||((o=e.tagName)==null?void 0:o.toLowerCase())==="input"&&e.type==="range"||r.includes("slider-thumb")||r.includes("rc-slider-handle")||r.includes("noUi-handle")||e.hasAttribute("role")&&e.getAttribute("role")==="slider")}_findSliderThumb(e){return this._isSliderThumb(e)?e:e.parentElement&&this._isSliderThumb(e.parentElement)?e.parentElement:null}_findSliderRoot(e){var s,o;let r=e;for(let l=0;l<5&&r;l++){const u=typeof r.className=="string"?r.className:((s=r.className)==null?void 0:s.baseVal)||"";if((((o=r.tagName)==null?void 0:o.toLowerCase())||"")==="input"&&r.type==="range"||u.includes("MuiSlider-root")||u.includes("rc-slider")||u.includes("noUi-target")||u.includes("slider-container")||r.hasAttribute("role")&&r.getAttribute("role")==="slider")return r;r=r.parentElement}return null}_shouldIgnoreForSlider(e){var o,l;const r=typeof e.className=="string"?e.className:((o=e.className)==null?void 0:o.baseVal)||"",s=((l=e.tagName)==null?void 0:l.toLowerCase())||"";return!!(r.includes("MuiSlider-markLabel")||r.includes("MuiSlider-mark")||r.includes("MuiSlider-valueLabel")||r.includes("slider-label")||(s==="span"||s==="div")&&!r.includes("MuiSlider-thumb")&&!r.includes("slider-thumb"))}_selectDraggableAncestor(e){var l;const r=["[data-item-id]",'[draggable="true"]',"[data-draggable]",'[role="listitem"]',".draggable",'[data-testid*="drag"]'];let s=e;const o=(l=s.tagName)==null?void 0:l.toLowerCase();(o==="button"||o==="input"||o==="select"||o==="textarea"||o==="a")&&(s=s.parentElement);for(let u=0;u<5&&s;u++){if(s.hasAttribute("data-item-id")||r.some(d=>{var m;return(m=s==null?void 0:s.matches)==null?void 0:m.call(s,d)}))return s;s=s.parentElement}return e}_getSourceColumn(e){const r=e.getAttribute("data-source-column");if(r){const o=this._recorder.document.querySelector(`[data-column-id="${r}"]`);if(o)return o}let s=e;for(let o=0;o<10&&s;o++){if(s.hasAttribute("data-column-id"))return s;s=s.parentElement}return null}_selectDroppableAncestor(e){let r=e;(r.hasAttribute("data-item-id")||r.hasAttribute("draggable"))&&(r=r.parentElement);for(let o=0;o<8&&r;o++){if(r.hasAttribute("data-column-id"))return r;if(r.hasAttribute("data-droppable")&&r.hasAttribute("data-testid")){const l=r.getAttribute("data-testid");if(l&&l.startsWith("column-"))return r}if(r.hasAttribute("data-drop-target-for-element")&&r.hasAttribute("data-testid")){const l=r.getAttribute("data-testid");if(l&&l.startsWith("calendar-cell-"))return r}r=r.parentElement}r=e,(r.hasAttribute("data-item-id")||r.hasAttribute("draggable"))&&(r=r.parentElement);const s=["[data-droppable]","[data-drop-target-for-element]",'[role="list"]','[role="listbox"]','[role="grid"]',".droppable",".drop-zone","[data-drop-zone]",".vue-grid-layout",".react-grid-layout","[data-rbd-droppable-id]","[data-sortable]"];for(let o=0;o<8&&r;o++){if(s.some(l=>{var u;return(u=r==null?void 0:r.matches)==null?void 0:u.call(r,l)}))return r;r=r.parentElement}r=e,(r.hasAttribute("data-item-id")||r.hasAttribute("draggable"))&&(r=r.parentElement);for(let o=0;o<8&&r;o++){if(r.querySelectorAll(':scope > [draggable="true"]').length>=2)return r;r=r.parentElement}return e}_relativePoint(e,r,s){const o=e.getBoundingClientRect();return{x:Math.max(0,Math.min(r-o.left,o.width)),y:Math.max(0,Math.min(s-o.top,o.height))}}_stableIdSelector(e){const r=e.getAttribute("id");return!r||!/^[a-zA-Z]/.test(r)||/\s/.test(r)||!r.split(/[-_]/).every(s=>s.length>0&&/^[a-zA-Z]+$/.test(s))?null:{selector:`#${r}`}}_stableContainerClassSelector(e){const r=["vue-grid-layout","react-grid-layout"];for(const s of r)if(e.classList.contains(s))return{selector:`.${s}`};return null}_extractSourceLabel(e){const r=e.getAttribute("aria-label");if(r&&r.trim())return r.trim().slice(0,80);const o=(e.innerText||e.textContent||"").trim().replace(/\s+/g," ");if(o)return o.slice(0,80);const l=e.getAttribute("title");return l&&l.trim()?l.trim().slice(0,80):""}_isCenter(e,r){const s=r.getBoundingClientRect(),o=s.width/2,l=s.height/2,u=5;return Math.abs(e.x-o)<u&&Math.abs(e.y-l)<u}_capture(){if(!this._dragState||!this._dragState.source||!this._dragState.target||this._dragState.captured)return;if(this._dragState.captured=!0,this._dragState.isReactFlow){this._captureReactFlowDrag();return}if(this._dragState.isGoJS){this._captureGoJSDrag();return}if(this._dragState.isCanvas){this._captureCanvasDrag();return}if(this._dragState.isSlider){this._captureSliderDrag();return}const e=this._getSourceColumn(this._dragState.source),r=this._dragState.target.hasAttribute("data-column-id")?this._dragState.target:this._getSourceColumn(this._dragState.target);e&&r&&(e.getAttribute("data-column-id"),r.getAttribute("data-column-id"));try{const s=this._dragState.source.getAttribute("data-testid")||this._dragState.source.getAttribute("data-item-id"),o=this._dragState.target.getAttribute("data-testid")||this._dragState.target.getAttribute("data-column-id");let l,u;if(s&&o)l={selector:`[data-testid="${s}"]`},u={selector:`[data-testid="${o}"]`};else{const y=this._getSelectorSafeElement(this._dragState.source),w=this._getSelectorSafeElement(this._dragState.target);l=this._stableIdSelector(y)??this._stableContainerClassSelector(y)??this._recorder.injectedScript.generateSelector(y,{testIdAttributeName:this._recorder.state.testIdAttributeName||"data-testid"}),u=this._stableIdSelector(w)??this._stableContainerClassSelector(w)??this._recorder.injectedScript.generateSelector(w,{testIdAttributeName:this._recorder.state.testIdAttributeName||"data-testid"})}const d=this._dragState.sourcePoint?this._relativePoint(this._dragState.source,this._dragState.sourcePoint.x,this._dragState.sourcePoint.y):{x:this._dragState.source.getBoundingClientRect().width/2,y:this._dragState.source.getBoundingClientRect().height/2},m=this._dragState.targetPoint?this._relativePoint(this._dragState.target,this._dragState.targetPoint.x,this._dragState.targetPoint.y):{x:this._dragState.target.getBoundingClientRect().width/2,y:this._dragState.target.getBoundingClientRect().height/2},p=Date.now()-this._dragState.startTime,v={name:"dragTo",selector:l.selector,target:u.selector,signals:[],timestamp:Kt(this._recorder)};this._isCenter(d,this._dragState.source)||(v.sourcePosition={x:Math.round(d.x),y:Math.round(d.y)}),this._isCenter(m,this._dragState.target)||(v.targetPosition={x:Math.round(m.x),y:Math.round(m.y)}),p>500&&(v.duration=p);const g=this._extractSourceLabel(this._dragState.source);g&&(v.sourceLabel=g),this._recorder.recordAction(v),this._deactivate()}catch(s){console.error("[PW-RECORDER] Error generating selectors:",s);try{const o=this._dragState.source.getAttribute("data-testid")||this._dragState.source.getAttribute("data-item-id"),l=this._dragState.target.getAttribute("data-testid")||this._dragState.target.getAttribute("data-column-id");if(o&&l){const u={name:"dragTo",selector:`[data-testid="${o}"]`,target:`[data-testid="${l}"]`,signals:[],timestamp:Kt(this._recorder)},d=this._extractSourceLabel(this._dragState.source);d&&(u.sourceLabel=d),this._recorder.recordAction(u)}}catch(o){console.error("[PW-RECORDER] Fallback also failed:",o)}this._deactivate()}this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}_roundPosition(e){return{x:Math.round(e.x),y:Math.round(e.y)}}_recordMouseDragActions(e,r,s=10){const o={name:"mouse.move",position:this._roundPosition(e),signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(o);const l={name:"mouse.down",signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(l);const u={name:"mouse.move",position:this._roundPosition(r),steps:s,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(u);const d={name:"mouse.up",signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(d)}_captureReactFlowDrag(){if(!(!this._dragState||!this._dragState.source||!this._dragState.target)){try{const r=this._dragState.source.getBoundingClientRect(),s=this._dragState.sourcePoint?{x:this._dragState.sourcePoint.x,y:this._dragState.sourcePoint.y}:{x:r.left+r.width/2,y:r.top+r.height/2},o=this._dragState.targetPoint?{x:this._dragState.targetPoint.x,y:this._dragState.targetPoint.y}:{x:r.left+r.width/2,y:r.top+r.height/2};this._recordMouseDragActions(s,o,10)}catch(e){console.error("[PW-RECORDER] Error capturing React Flow drag:",e)}this._deactivate(),this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}}_captureCanvasDrag(){if(!(!this._dragState||!this._dragState.source||!this._dragState.target)){try{const e=this._dragState.source,r=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName||"data-testid"}),s=this._dragState.sourcePoint?this._relativePoint(e,this._dragState.sourcePoint.x,this._dragState.sourcePoint.y):{x:e.getBoundingClientRect().width/2,y:e.getBoundingClientRect().height/2},o=this._dragState.targetPoint?this._relativePoint(e,this._dragState.targetPoint.x,this._dragState.targetPoint.y):{x:e.getBoundingClientRect().width/2,y:e.getBoundingClientRect().height/2},l=Date.now()-this._dragState.startTime,u={name:"dragTo",selector:r.selector,target:r.selector,sourcePosition:{x:Math.round(s.x),y:Math.round(s.y)},targetPosition:{x:Math.round(o.x),y:Math.round(o.y)},signals:[],timestamp:Kt(this._recorder)};l>500&&(u.duration=l),this._recorder.recordAction(u)}catch(e){console.error("[PW-RECORDER] Error capturing canvas drag:",e)}this._deactivate(),this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}}_captureSliderDrag(){if(!(!this._dragState||!this._dragState.source||!this._dragState.sourcePoint||!this._dragState.targetPoint)){try{const e={x:Math.round(this._dragState.sourcePoint.x),y:Math.round(this._dragState.sourcePoint.y)},r={x:Math.round(this._dragState.targetPoint.x),y:Math.round(this._dragState.targetPoint.y)},s=r.x-e.x,o=r.y-e.y,l=Math.sqrt(s*s+o*o),u=Math.max(1,Math.floor(l/xn.PIXELS_PER_STEP)),d=this._dragState.source;let m="",p="";Math.abs(s)>Math.abs(o)?p=s>0?"right":"left":p=o>0?"down":"up";const v=(w,E=new Set)=>{if(E.has(w))return null;E.add(w);const S=w.getAttribute("aria-valuenow"),T=w.getAttribute("aria-valuemin"),k=w.getAttribute("aria-valuemax");if(S)return{value:S,min:T||void 0,max:k||void 0};if(w instanceof HTMLInputElement&&w.type==="range")return{value:w.value,min:w.min||void 0,max:w.max||void 0};const D=Array.from(w.children);for(const I of D)if(!E.has(I)&&(I instanceof HTMLInputElement&&I.type==="range"||I.hasAttribute("aria-valuenow"))){const z=v(I,E);if(z)return z}if(w.parentElement){const I=Array.from(w.parentElement.children);for(const z of I)if(z!==w&&!E.has(z)&&(z instanceof HTMLInputElement&&z.type==="range"||z.hasAttribute("aria-valuenow"))){const $=v(z,E);if($)return $}if(!E.has(w.parentElement)){const z=w.parentElement.getAttribute("aria-valuenow");if(z)return{value:z,min:w.parentElement.getAttribute("aria-valuemin")||void 0,max:w.parentElement.getAttribute("aria-valuemax")||void 0}}}return null},g=v(d);if(g&&g.value){const w=g.min&&g.max?` (range: ${g.min} to ${g.max})`:"";m=` to value ${g.value}${w}`}const y={name:"comment",text:`Moving slider ${p}${m}`,signals:[],timestamp:Kt(this._recorder)};this._recorder.recordAction(y),this._recordMouseDragActions(e,r,u)}catch(e){console.error("[PW-RECORDER] Error capturing slider drag:",e)}this._deactivate(),this._dragState={source:null,target:null,sourcePoint:null,targetPoint:null,startTime:Date.now(),isCanvas:!1,isGoJS:!1,isReactFlow:!1,isSlider:!1,dropDetected:!1,captured:!1}}}};xn.PIXELS_PER_STEP=5,xn.WHEEL_DEBOUNCE_MS=500,xn.WHEEL_MAX_ACCUMULATION_MS=1e3,xn.WHEEL_TOOL_DISABLE_MS=1e3,xn.WHEEL_SCROLL_TIMEOUT_MS=3e3,xn.WHEEL_NOISE_AXIS_THRESHOLD=30;let hv=xn;function tN(i){return i.injectedScript.utils.builtins.Date.now().toString()}class o6{constructor(e){this._diagramEntries=[],this._keydownRemover=null,this._recorder=e}cursor(){return"crosshair"}install(){console.log("[GoJSLinkTool] install() — document:",this._recorder.document.URL),this._recorder.document.__skyrampGojsLinkToolActive=!0,this._diagramEntries=[];const e=Array.from(this._recorder.document.querySelectorAll("canvas"));console.log("[GoJSLinkTool] found canvases:",e.length);for(const s of e){const o=this._hookDiagram(s);o&&(this._diagramEntries.push(o),console.log("[GoJSLinkTool] hooked diagram, panelSelector:",o.panelSelector))}console.log("[GoJSLinkTool] hooked",this._diagramEntries.length,"diagram(s)");const r=s=>{s.key==="Escape"&&(this._recorder.setMode("recording"),s.preventDefault(),s.stopPropagation())};this._recorder.document.addEventListener("keydown",r,!0),this._keydownRemover=()=>this._recorder.document.removeEventListener("keydown",r,!0)}uninstall(){var e;console.log("[GoJSLinkTool] uninstall() — document:",this._recorder.document.URL),delete this._recorder.document.__skyrampGojsLinkToolActive;for(const r of this._diagramEntries)try{r.diagram.allowMove=r.prevAllowMove;const s=(e=r.diagram.toolManager)==null?void 0:e.linkingTool;s&&(s.isEnabled=r.prevLinkingEnabled),r.diagram.removeDiagramListener("LinkDrawn",r.linkDrawnHandler),r.diagram.removeDiagramListener("ExternalObjectsDropped",r.externalDropHandler),console.log("[GoJSLinkTool] restored diagram, panelSelector:",r.panelSelector)}catch(s){console.log("[GoJSLinkTool] error restoring diagram:",s)}this._diagramEntries=[],this._keydownRemover&&(this._keydownRemover(),this._keydownRemover=null)}_hookDiagram(e){var o,l,u,d;const r=(o=e.ownerDocument)==null?void 0:o.defaultView;if(!((u=(l=r==null?void 0:r.go)==null?void 0:l.Diagram)!=null&&u.fromDiv))return null;let s=e.parentElement;for(;s&&s!==e.ownerDocument.body;){const m=r.go.Diagram.fromDiv(s);if(m){const p=this._buildSelector(s),v=m.allowMove;m.allowMove=!1;const g=(d=m.toolManager)==null?void 0:d.linkingTool,y=(g==null?void 0:g.isEnabled)??!0;g&&(g.isEnabled=!0,(g.portGravity??0)<10&&(g.portGravity=10));const w=S=>{const T=S.subject;if(!(T!=null&&T.data))return;const k=String(T.data.from??""),D=String(T.data.to??"");!k||!D||(console.log("[GoJSLinkTool] LinkDrawn from:",k,"to:",D),this._emitDiagramLinkAdd(k,D,String(T.data.fromPort??""),String(T.data.toPort??""),p))};m.addDiagramListener("LinkDrawn",w);const E=S=>{S.subject.each(T=>{if(!(T!=null&&T.data)||T.data.from!==void 0)return;const k=String(T.data.category??""),D=String(T.data.key??""),I=T.location;console.log("[GoJSLinkTool] ExternalObjectsDropped category:",k,"key:",D,"loc:",I==null?void 0:I.x,I==null?void 0:I.y),setTimeout(()=>{var z,$;this._emitDiagramNodeAdd(m,p,k,D,((z=T.location)==null?void 0:z.x)??(I==null?void 0:I.x)??0,(($=T.location)==null?void 0:$.y)??(I==null?void 0:I.y)??0)},0)})};return m.addDiagramListener("ExternalObjectsDropped",E),{diagram:m,panelSelector:p,prevAllowMove:v,prevLinkingEnabled:y,linkDrawnHandler:w,externalDropHandler:E}}s=s.parentElement}return null}_emitDiagramLinkAdd(e,r,s,o,l){var d;const u={name:"diagramLinkAdd",diagramType:"gojs",panelSelector:l,fromKey:e,toKey:r,fromPort:s,toPort:o,signals:[],timestamp:tN(this._recorder)};this._recorder.recordAction(u),(d=this._recorder.overlay)==null||d.flashToolSucceeded("recordingGoJSLink")}_emitDiagramNodeAdd(e,r,s,o,l,u){var T;const d=this._diagramEntries.find(k=>{var D,I,z;try{const $=(I=(D=k.diagram.div)==null?void 0:D.ownerDocument)==null?void 0:I.defaultView;return((z=$==null?void 0:$.go)==null?void 0:z.Palette)&&k.diagram instanceof $.go.Palette}catch{return!1}}),m=(d==null?void 0:d.panelSelector)??"";let p,v,g,y,w,E=1/0;e.nodes.each(k=>{if(!(k!=null&&k.data))return;const D=String(k.data.key??"");if(!D||D===o)return;const I=k.location.x-l,z=k.location.y-u,$=Math.sqrt(I*I+z*z);$<E&&(E=$,p=D,v=Math.round(l-k.location.x),g=Math.round(u-k.location.y),y=Math.round(k.location.x),w=Math.round(k.location.y))});const S={name:"diagramNodeAdd",diagramType:"gojs",sourcePanelSelector:m,targetPanelSelector:r,sourceIsPalette:!0,targetIsPalette:!1,sourceCategory:s,sourceKey:o,targetDocX:Math.round(l),targetDocY:Math.round(u),anchorKey:p,anchorOffsetX:v,anchorOffsetY:g,anchorDocX:y,anchorDocY:w,signals:[],timestamp:tN(this._recorder)};this._recorder.recordAction(S),(T=this._recorder.overlay)==null||T.flashToolSucceeded("recordingGoJSLink")}_buildSelector(e){if(e.id)return`#${e.id}`;if(e.getAttribute("data-testid"))return`[data-testid="${e.getAttribute("data-testid")}"]`;const r=e.parentElement;if(r){const s=Array.from(r.children).indexOf(e)+1;return`${e.tagName.toLowerCase()}:nth-child(${s})`}return e.tagName.toLowerCase()}}function l6(i){i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()}function nN(i){return i.injectedScript.utils.builtins.Date.now().toString()}class c6{constructor(e){this._triggerElement=null,this._triggerSelector=null,this._input=null,this._pendingFiles=[],this._helperOverlay=null,this._recorder=e}cursor(){return"pointer"}install(){const e=this._recorder.injectedScript.window;e.__pwRecorderFileChooserArmed=r=>{if(!(r.input&&r.triggerElement===r.input)){if(this._triggerElement=r.triggerElement,this._input=r.input,this._triggerSelector=r.triggerSelector||null,!this._triggerSelector&&r.triggerElement)try{this._triggerSelector=this._recorder.injectedScript.generateSelector(r.triggerElement,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1}).selector}catch(s){console.warn("[FileUploadTool] arm-time selector fallback failed:",s)}this._showHelperOverlay("File chooser opening... Please select a file")}},e.__pwRecorderFileChooserResolved=r=>{var s;if(!(r.input&&!this._triggerElement))if(this._pendingFiles=r.files,this._hideHelperOverlay(),this._triggerElement&&r.files.length>0){const o=r.files.map(u=>u.name);let l=this._triggerSelector;if(!l)try{l=this._recorder.injectedScript.generateSelector(this._triggerElement,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1}).selector}catch(u){console.warn("[FileUploadTool] resolved-time selector generation failed:",u)}if(l){const u={name:"fileChooser",selector:l,files:o,signals:[],timestamp:nN(this._recorder)};this._recorder.recordAction(u),this._recorder.setMode("recording"),(s=this._recorder.overlay)==null||s.flashToolSucceeded("fileUpload")}else console.warn("[FileUploadTool] no selector available for trigger element; action not recorded")}else console.warn("[FileUploadTool] Missing trigger element or no files selected")},this._showHelperOverlay("Click a button to upload a file")}uninstall(){const e=this._recorder.injectedScript.window;e.__pwRecorderFileChooserArmed=void 0,e.__pwRecorderFileChooserResolved=void 0,this._hideHelperOverlay(),this._triggerElement=null,this._triggerSelector=null,this._input=null,this._pendingFiles=[]}onClick(e){const r=this._getRecordActionTool();!r||!r.onClick||r.onClick(e)}onInput(e){var s;const r=this._recorder.deepEventTarget(e);if(r.nodeName==="INPUT"&&r.type.toLowerCase()==="file"){if(this._triggerElement)return;const o=r,l=this._recorder.injectedScript.generateSelector(o,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1});this._recorder.recordAction({name:"setInputFiles",selector:l.selector,signals:[],files:[...o.files||[]].map(u=>u.name),timestamp:nN(this._recorder)}),this._recorder.setMode("recording"),(s=this._recorder.overlay)==null||s.flashToolSucceeded("fileUpload")}else{const o=this._getRecordActionTool();o&&o.onInput&&o.onInput(e)}}onKeyDown(e){if(e.key==="Escape"){l6(e),this._recorder.setMode("recording");return}const r=this._getRecordActionTool();r&&r.onKeyDown&&r.onKeyDown(e)}onKeyUp(e){const r=this._getRecordActionTool();r&&r.onKeyUp&&r.onKeyUp(e)}onPointerDown(e){const r=this._getRecordActionTool();r&&r.onPointerDown&&r.onPointerDown(e)}onPointerUp(e){const r=this._getRecordActionTool();r&&r.onPointerUp&&r.onPointerUp(e)}onPointerMove(e){const r=this._getRecordActionTool();r&&r.onPointerMove&&r.onPointerMove(e)}onMouseMove(e){const r=this._getRecordActionTool();r&&r.onMouseMove&&r.onMouseMove(e)}onMouseDown(e){const r=this._getRecordActionTool();r&&r.onMouseDown&&r.onMouseDown(e)}onMouseUp(e){const r=this._getRecordActionTool();r&&r.onMouseUp&&r.onMouseUp(e)}onMouseLeave(e){const r=this._getRecordActionTool();r&&r.onMouseLeave&&r.onMouseLeave(e)}onFocus(e){const r=this._getRecordActionTool();r&&r.onFocus&&r.onFocus(e)}_getRecordActionTool(){var e;return((e=this._recorder._tools)==null?void 0:e.recording)||null}_showHelperOverlay(e){this._hideHelperOverlay();const r=this._recorder.document.createElement("div");r.style.cssText=`
580
+ position: fixed;
581
+ top: 20px;
582
+ left: 50%;
583
+ transform: translateX(-50%);
584
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
585
+ color: white;
586
+ padding: 12px 24px;
587
+ border-radius: 8px;
588
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
589
+ z-index: 2147483645;
590
+ font-family: system-ui, -apple-system, sans-serif;
591
+ font-size: 14px;
592
+ font-weight: 500;
593
+ pointer-events: none;
594
+ animation: pw-slide-down 0.3s ease-out;
595
+ `,r.textContent=`📎 ${e}`;const s=this._recorder.document.createElement("style");s.textContent=`
596
+ @keyframes pw-slide-down {
597
+ from {
598
+ opacity: 0;
599
+ transform: translateX(-50%) translateY(-20px);
600
+ }
601
+ to {
602
+ opacity: 1;
603
+ transform: translateX(-50%) translateY(0);
604
+ }
605
+ }
606
+ `,this._recorder.document.head.appendChild(s),this._recorder.document.body.appendChild(r),this._helperOverlay=r}_hideHelperOverlay(){this._helperOverlay&&(this._helperOverlay.remove(),this._helperOverlay=null)}}function rN(i,e,r,s){return i.addEventListener(e,r,s),()=>{i.removeEventListener(e,r,s)}}function u6(i,e){const r=i.injectedScript.window,s=i.document;let o=null,l=null,u=0;const d=new WeakSet;e.push(rN(s,"click",E=>{var k;const S=E,T=i.deepEventTarget(S);if(S.isTrusted&&!(T.nodeName==="INPUT"&&T.type.toLowerCase()==="file")){o=T,u=Date.now();try{l=i.injectedScript.generateSelector(T,{testIdAttributeName:(k=i.state)==null?void 0:k.testIdAttributeName,multiple:!1}).selector}catch(D){console.warn("[PW-FileUpload] click-capture selector generation failed:",D),l=null}}},!0));const m=E=>{if(d.has(E)||E.type!=="file")return;d.add(E);const S=E.click;E.click=function(){return r.__pwRecorderFileChooserArmed&&r.__pwRecorderFileChooserArmed({triggerElement:o,triggerSelector:l,input:this,timestamp:u}),S.apply(this,arguments)},rN(E,"change",()=>{const T=Array.from(E.files||[]).map(k=>({name:k.name,size:k.size,type:k.type,lastModified:k.lastModified}));r.__pwRecorderFileChooserResolved&&T.length>0&&r.__pwRecorderFileChooserResolved({files:T,input:E})},!0)},p=HTMLInputElement.prototype.click;HTMLInputElement.prototype.click=function(){return this.type==="file"&&(m(this),r.__pwRecorderFileChooserArmed&&r.__pwRecorderFileChooserArmed({triggerElement:o,triggerSelector:l,input:this,timestamp:u})),p.apply(this,arguments)};const v=Document.prototype.createElement;Document.prototype.createElement=function(E,S){const T=v.call(this,E,S);return T instanceof HTMLInputElement&&T.type==="file"&&m(T),T};const g=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"type");if(g&&g.set){const E=g.set;Object.defineProperty(HTMLInputElement.prototype,"type",{...g,set(S){const T=E.call(this,S);return String(S).toLowerCase()==="file"&&m(this),T}})}if("showOpenFilePicker"in r){const E=r.showOpenFilePicker;r.showOpenFilePicker=async function(...S){r.__pwRecorderFileChooserArmed&&r.__pwRecorderFileChooserArmed({triggerElement:o,triggerSelector:l,input:null,timestamp:u});const T=await E.apply(this,S),k=[];try{for(const D of T){const I=await D.getFile();k.push({name:I.name,size:I.size,type:I.type,lastModified:I.lastModified})}}catch(D){console.warn("[PW-FileUpload] Failed to extract file metadata from handles:",D);for(const I of T)k.push({name:I.name||"unknown"})}return r.__pwRecorderFileChooserResolved&&k.length>0&&r.__pwRecorderFileChooserResolved({files:k,input:null}),T}}s.querySelectorAll('input[type="file"]').forEach(E=>{m(E)});const w=new MutationObserver(E=>{for(const S of E)for(const T of S.addedNodes)T instanceof HTMLInputElement&&T.type==="file"&&m(T),T instanceof Element&&T.querySelectorAll('input[type="file"]').forEach(D=>{m(D)})});w.observe(s.documentElement,{childList:!0,subtree:!0}),e.push(()=>{w.disconnect()})}function Lu(i){return i.injectedScript.utils.builtins.Date.now().toString()}class d6{constructor(e){this._isDeleting=!1,this._viewportPath=[],this._lastPointTime=0,this.POINT_THROTTLE_MS=33,this.MIN_DISTANCE=5,this._recorder=e}cursor(){return"pointer"}install(){var e;(e=this._recorder.injectedScript.document.body)==null||e.classList.add("pw-sketch-tool-cursor"),this._createOverlayCanvas()}uninstall(){var e;(e=this._recorder.injectedScript.document.body)==null||e.classList.remove("pw-sketch-tool-cursor"),this._removeOverlayCanvas(),this._isDeleting=!1,this._viewportPath=[]}onPointerDown(e){if(e.button!==0)return;const r=this._recorder.deepEventTarget(e);return this._isDeleting=!0,this._viewportPath=[],this._addPoint(e),this._clearOverlayPath(),this._dispatchRealMouseEvent("mousedown",e,r),!0}onPointerMove(e){if(!this._isDeleting)return;const r=this._recorder.deepEventTarget(e);this._dispatchRealMouseEvent("mousemove",e,r);const s=this._recorder.injectedScript.utils.builtins.Date.now();if(!(s-this._lastPointTime<this.POINT_THROTTLE_MS)&&this._viewportPath.length>0){const o=this._viewportPath[this._viewportPath.length-1];Math.hypot(e.clientX-o.x,e.clientY-o.y)>=this.MIN_DISTANCE&&(this._addPoint(e),this._lastPointTime=s,this._updateOverlayPath())}}onPointerUp(e){var s;if(!this._isDeleting)return;const r=this._recorder.deepEventTarget(e);this._dispatchRealMouseEvent("mouseup",e,r),this._isDeleting=!1,this._viewportPath.length>1&&(this._addPoint(e),this._recordSketchToolAsMouseActions(),(s=this._recorder.overlay)==null||s.flashToolSucceeded("recordingSketchTool")),this._clearOverlayPath(),this._viewportPath=[]}onMouseDown(e){}onMouseUp(e){}onClick(e){}_addPoint(e){this._viewportPath.push({x:Math.round(e.clientX),y:Math.round(e.clientY)})}_recordSketchToolAsMouseActions(){const e=this._optimizePath(this._viewportPath);if(e.length===0)return;const r={name:"comment",text:`Sketch tool with ${e.length} path points`,signals:[],timestamp:Lu(this._recorder)};this._recorder.recordAction(r);const o={name:"mouse.move",position:e[0],signals:[],timestamp:Lu(this._recorder)};this._recorder.recordAction(o);const l={name:"mouse.down",signals:[],timestamp:Lu(this._recorder)};this._recorder.recordAction(l);for(let d=1;d<e.length;d++){const m=e[d],p=e[d-1],v=m.x-p.x,g=m.y-p.y,y=Math.sqrt(v*v+g*g),w=Math.max(1,Math.floor(y/5)),E={name:"mouse.move",position:m,steps:w,signals:[],timestamp:Lu(this._recorder)};this._recorder.recordAction(E)}const u={name:"mouse.up",signals:[],timestamp:Lu(this._recorder)};this._recorder.recordAction(u)}_optimizePath(e){if(e.length<5)return e;const r=this._douglasPeucker(e,2);return r.length<5?this._douglasPeuckerWithMinPoints(e,5):r}_douglasPeucker(e,r){if(e.length<=2)return e;let s=0,o=0;for(let l=1;l<e.length-1;l++){const u=this._perpendicularDistance(e[l],e[0],e[e.length-1]);u>s&&(s=u,o=l)}if(s>r){const l=this._douglasPeucker(e.slice(0,o+1),r),u=this._douglasPeucker(e.slice(o),r);return[...l.slice(0,-1),...u]}else return[e[0],e[e.length-1]]}_douglasPeuckerWithMinPoints(e,r){if(e.length<=r)return e;let s=10,o=this._douglasPeucker(e,s),l=10,u=0;for(;l-u>.1&&o.length!==r;)s=(l+u)/2,o=this._douglasPeucker(e,s),o.length<r?l=s:o.length>r&&(u=s);return o.length<r&&(o=this._sampleEvenly(e,r)),o}_sampleEvenly(e,r){if(e.length<=r)return e;const s=[e[0]],o=(e.length-1)/(r-1);for(let l=1;l<r-1;l++){const u=Math.round(l*o);s.push(e[u])}return s.push(e[e.length-1]),s}_perpendicularDistance(e,r,s){const o=s.x-r.x,l=s.y-r.y;if(o===0&&l===0)return Math.hypot(e.x-r.x,e.y-r.y);const u=Math.hypot(o,l);return Math.abs(l*e.x-o*e.y+s.x*r.y-s.y*r.x)/u}_createOverlayCanvas(){const e=this._recorder.injectedScript.document;this._overlayCanvas=e.createElementNS("http://www.w3.org/2000/svg","svg"),this._overlayCanvas.classList.add("pw-deletion-trail"),this._overlayCanvas.style.position="fixed",this._overlayCanvas.style.top="0",this._overlayCanvas.style.left="0",this._overlayCanvas.style.width="100%",this._overlayCanvas.style.height="100%",this._overlayCanvas.style.pointerEvents="none",this._overlayCanvas.style.zIndex="2147483646",this._overlayPath=e.createElementNS("http://www.w3.org/2000/svg","path"),this._overlayPath.classList.add("pw-deletion-path"),this._overlayPath.setAttribute("stroke","rgba(220, 53, 69, 0.5)"),this._overlayPath.setAttribute("stroke-width","20"),this._overlayPath.setAttribute("stroke-linecap","round"),this._overlayPath.setAttribute("stroke-linejoin","round"),this._overlayPath.setAttribute("fill","none"),this._overlayCanvas.appendChild(this._overlayPath),e.body&&e.body.appendChild(this._overlayCanvas)}_removeOverlayCanvas(){this._overlayCanvas&&(this._overlayCanvas.remove(),this._overlayCanvas=void 0,this._overlayPath=void 0)}_updateOverlayPath(){if(!this._overlayPath||this._viewportPath.length<2)return;const e=this._viewportPath.reduce((r,s,o)=>`${r} ${o===0?"M":"L"}${s.x},${s.y}`,"");this._overlayPath.setAttribute("d",e)}_clearOverlayPath(){this._overlayPath&&this._overlayPath.setAttribute("d","")}_dispatchRealMouseEvent(e,r,s){const o=new MouseEvent(e,{bubbles:!0,cancelable:!0,view:this._recorder.injectedScript.window,detail:r.detail,screenX:r.screenX,screenY:r.screenY,clientX:r.clientX,clientY:r.clientY,ctrlKey:r.ctrlKey,altKey:r.altKey,shiftKey:r.shiftKey,metaKey:r.metaKey,button:r.button,buttons:r.buttons,relatedTarget:r.relatedTarget});s.dispatchEvent(o)}}function Ai(i){i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()}function f6(i){return i.injectedScript.utils.builtins.Date.now().toString()}class h6{constructor(e){this._hoveredTable=null,this._highlightModel=null,this._captured=!1,this._recorder=e}cursor(){return"crosshair"}install(){var e;(e=this._recorder.injectedScript.document.body)==null||e.setAttribute("data-pw-cursor","crosshair"),this._captured=!1}uninstall(){this._hoveredTable=null,this._highlightModel=null,this._captured=!1,this._recorder.clearHighlight()}onKeyDown(e){this._captured||e.key==="Escape"&&(Ai(e),this._hoveredTable=null,this._highlightModel=null,this._recorder.clearHighlight(),this._recorder.setMode("recording"))}onMouseMove(e){if(this._captured)return;Ai(e);const r=this._findTableFromEvent(e);r!==this._hoveredTable&&(this._hoveredTable=r,this._updateHighlight(r))}onMouseEnter(e){this._captured||Ai(e)}onMouseLeave(e){if(this._captured)return;Ai(e);const r=this._recorder.injectedScript.window;r.top!==r&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&(this._hoveredTable=null,this._highlightModel=null,this._recorder.clearHighlight())}onClick(e){if(!this._captured){if(e.button!==0){Ai(e);return}this._hoveredTable&&(Ai(e),this._captureTableSnapshot(this._hoveredTable))}}onPointerDown(e){this._captured||Ai(e)}onPointerUp(e){this._captured||Ai(e)}onMouseDown(e){this._captured||Ai(e)}onMouseUp(e){this._captured||Ai(e)}_findTableFromEvent(e){let r=this._recorder.deepEventTarget(e);for(;r;){if(r.tagName==="TABLE")return r;r=r.parentElement}return null}_updateHighlight(e){if(!e){this._recorder.clearHighlight();return}const r=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1});this._highlightModel={selector:r.selector,elements:r.elements,tooltipText:"Click to assert table cell",color:"#4CAF5080"},this._recorder.updateHighlight(this._highlightModel,!0)}_captureTableSnapshot(e){var l;const r=this._extractTableData(e),o={name:"tableSnapshot",selector:this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName}).selector,tableData:r,signals:[],timestamp:f6(this._recorder)};this._recorder.recordAction(o),this._captured=!0,this._recorder.clearHighlight(),this._recorder.setMode("recording"),(l=this._recorder.overlay)==null||l.flashToolSucceeded("recordingTableSnapshot")}_extractTableData(e){const r={headers:[],rows:[],metadata:{rowCount:0,columnCount:0,hasHeaders:!1,captureTime:new Date().toISOString()}},s=e.querySelector("thead");if(s){const u=s.querySelector("tr");u&&(r.headers=Array.from(u.querySelectorAll("th, td")).map(d=>this._getCellText(d)),r.metadata.hasHeaders=!0)}const l=(e.querySelector("tbody")||e).querySelectorAll("tr");return r.rows=Array.from(l).map(u=>Array.from(u.querySelectorAll("th, td")).map(d=>({text:this._getCellText(d),isHeader:d.tagName==="TH"}))),r.metadata.rowCount=r.rows.length,r.metadata.columnCount=Math.max(r.headers.length,...r.rows.map(u=>u.length)),r}_getCellText(e){var r;return((r=e.innerText)==null?void 0:r.trim())||""}}function m6(i){return i.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}function p6(i){const e=i.rowKey;if(e&&e.value){const r=m6(e.value);return`tr:has(${`${e.tag}:nth-child(${e.colIndex+1}):is(:text-is("${r}"), :has(:text-is("${r}")))`})`}return`tr:nth-child(${i.rowIndex+1})`}function g6(i){const e=p6(i),r=`${i.cellTag}:nth-child(${i.colIndex+1})`,s=`tbody ${e} ${r}`;let o=i.tablePrefix?`${i.tablePrefix} ${s}`:s;return i.isInput&&(o+=" input"),o}function y6(i){return i.injectedScript.utils.builtins.Date.now().toString()}class b6{constructor(e){this._highlightedCell=null,this._cellHighlight=null,this._assertModal=null,this._recorder=e}cursor(){return"pointer"}install(){var e;(e=this._recorder.injectedScript.document.body)==null||e.setAttribute("data-pw-cursor","pointer")}uninstall(){this._removeHighlight(),this._removeModal()}cleanup(){this.uninstall()}onPointerMove(e){const r=this._getCellUnderPointer(e);r&&r!==this._highlightedCell?(this._highlightedCell=r,this._showCellHighlight(r,!0)):!r&&this._highlightedCell&&(this._removeHighlight(),this._highlightedCell=null)}onPointerDown(e){const r=this._getCellUnderPointer(e);r&&(e.preventDefault(),e.stopPropagation(),this._showCellHighlight(r,!1),this._showAssertModal(r))}_getCellUnderPointer(e){const r=e.target;return this._isTableCell(r)?r:r.closest("td, th")}_isTableCell(e){if(!e)return!1;const r=e.tagName.toLowerCase();return r==="td"||r==="th"}_findTable(e){return e.closest("table")}_getCellPosition(e){const r=e.closest("tr"),s=this._findTable(e);if(!r||!s)return{row:0,col:0};const o=s.querySelector("tbody"),u=(o?Array.from(o.querySelectorAll("tr")):Array.from(s.querySelectorAll("tr"))).indexOf(r),m=Array.from(r.querySelectorAll("td, th")).indexOf(e);return{row:u,col:m}}_getRowKey(e,r){const s=Array.from(r.querySelectorAll("td, th")),o=y=>{var w;return((w=y.innerText)==null?void 0:w.trim())||""},l=y=>/^\d+$/.test(y);let u=s.findIndex(y=>o(y)!==""&&!l(o(y)));if(u===-1&&(u=s.findIndex(y=>o(y)!=="")),u===-1)return null;const d=s[u],m=o(d),p=e.querySelector("tbody");return(p?Array.from(p.querySelectorAll("tr")):Array.from(e.querySelectorAll("tr"))).filter(y=>{const w=Array.from(y.querySelectorAll("td, th"))[u];return w&&o(w)===m}).length!==1?null:{tag:d.tagName.toLowerCase(),colIndex:u,value:m}}_showCellHighlight(e,r){this._removeHighlight();const s=this._recorder.injectedScript.document,o=e.getBoundingClientRect();if(this._cellHighlight=s.createElement("div"),this._cellHighlight.style.cssText=`
607
+ position: fixed;
608
+ left: ${o.left}px;
609
+ top: ${o.top}px;
610
+ width: ${o.width}px;
611
+ height: ${o.height}px;
612
+ outline: 2px ${r?"dashed":"solid"} #4285f4;
613
+ outline-offset: -2px;
614
+ background-color: rgba(66, 133, 244, ${r?.05:.15});
615
+ pointer-events: none;
616
+ z-index: 2147483646;
617
+ transition: all 0.15s ease;
618
+ `,!r){const l=s.createElement("div");l.textContent="✓",l.style.cssText=`
619
+ position: absolute;
620
+ top: 2px;
621
+ right: 2px;
622
+ font-size: 14px;
623
+ color: #4285f4;
624
+ font-weight: bold;
625
+ `,this._cellHighlight.appendChild(l)}s.body.appendChild(this._cellHighlight)}_removeHighlight(){this._cellHighlight&&(this._cellHighlight.remove(),this._cellHighlight=null)}_showAssertModal(e){var E;this._removeModal();const r=this._recorder.injectedScript.document;let s="";const o=e.querySelector("input");o?s=o.value||"":s=((E=e.innerText)==null?void 0:E.trim())||"";const l=this._getCellPosition(e),u=r.createElement("div");u.style.cssText=`
626
+ position: fixed;
627
+ top: 0;
628
+ left: 0;
629
+ width: 100%;
630
+ height: 100%;
631
+ background: rgba(0, 0, 0, 0.5);
632
+ z-index: 2147483646;
633
+ display: flex;
634
+ align-items: center;
635
+ justify-content: center;
636
+ `;const d=r.createElement("div");d.style.cssText=`
637
+ background: white;
638
+ border-radius: 8px;
639
+ padding: 24px;
640
+ box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
641
+ max-width: 500px;
642
+ min-width: 400px;
643
+ font-family: system-ui, -apple-system, sans-serif;
644
+ `,d.innerHTML=`
645
+ <div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px;">
646
+ <h3 style="margin: 0; font-size: 18px; font-weight: 600; color: #202124;">Assert Cell Value</h3>
647
+ <button id="pw-modal-close" style="border: none; background: none; font-size: 24px; cursor: pointer; color: #5f6368; padding: 0; width: 24px; height: 24px; line-height: 24px;">&times;</button>
648
+ </div>
649
+ <div style="margin-bottom: 16px;">
650
+ <div style="font-size: 13px; color: #5f6368; margin-bottom: 4px;">Cell: Row ${l.row+1}, Column ${l.col+1}</div>
651
+ <div style="font-size: 13px; color: #5f6368; margin-bottom: 12px;">Current Value: "${s}"</div>
652
+ </div>
653
+ <div style="margin-bottom: 16px;">
654
+ <label style="display: block; font-size: 14px; font-weight: 500; color: #202124; margin-bottom: 8px;">Expected Value:</label>
655
+ <input
656
+ id="pw-expected-value"
657
+ type="text"
658
+ value="${s.replace(/"/g,"&quot;")}"
659
+ style="width: 100%; padding: 10px 12px; border: 1px solid #dadce0; border-radius: 4px; font-size: 14px; box-sizing: border-box;"
660
+ placeholder="Enter expected text..."
661
+ />
662
+ </div>
663
+ <div style="display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px;">
664
+ <button id="pw-modal-cancel" style="padding: 8px 16px; border: 1px solid #dadce0; background: white; color: #1a73e8; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500;">Cancel</button>
665
+ <button id="pw-modal-confirm" style="padding: 8px 16px; border: none; background: #1a73e8; color: white; border-radius: 4px; cursor: pointer; font-size: 14px; font-weight: 500;">Add Assertion</button>
666
+ </div>
667
+ `,u.appendChild(d),r.body.appendChild(u),this._assertModal=u;const m=d.querySelector("#pw-expected-value");m==null||m.focus(),m==null||m.select();const p=d.querySelector("#pw-modal-close"),v=d.querySelector("#pw-modal-cancel"),g=d.querySelector("#pw-modal-confirm"),y=()=>{this._removeModal(),this._removeHighlight(),this._recorder.setMode("recording")},w=()=>{const S=(m==null?void 0:m.value)||s;this._generateAssertion(e,S),y()};p==null||p.addEventListener("click",y),v==null||v.addEventListener("click",y),g==null||g.addEventListener("click",w),m==null||m.addEventListener("keydown",S=>{S.key==="Enter"?(S.preventDefault(),w()):S.key==="Escape"&&(S.preventDefault(),y())}),u.addEventListener("click",S=>{S.target===u&&y()})}_removeModal(){this._assertModal&&(this._assertModal.remove(),this._assertModal=null)}_generateAssertion(e,r){var E;const s=this._findTable(e);if(!s){console.log("[TableAssertTool] No table found for cell");return}const o=this._getCellPosition(e);console.log("[TableAssertTool] Cell position:",o);const u=!!e.querySelector("input"),d=s.getAttribute(`data-${this._recorder.state.testIdAttributeName}`)||s.getAttribute("data-testid"),m=s.id;let p="";d?p=`[data-testid="${d}"]`:m&&(p=`#${m}`);const v=e.closest("tr"),g=v?this._getRowKey(s,v):null,y=g6({tablePrefix:p,cellTag:e.tagName.toLowerCase(),colIndex:o.col,rowIndex:o.row,rowKey:g,isInput:u});console.log("[TableAssertTool] Generated selector:",y,"isInput:",u,"rowKey:",g==null?void 0:g.value);const w={name:"assertTableCell",selector:y,text:r,position:o,isInput:u,signals:[],timestamp:y6(this._recorder)};console.log("[TableAssertTool] Recording action:",w),this._recorder.recordAction(w),(E=this._recorder.overlay)==null||E.flashToolSucceeded("assertingTableCell")}}const $b={snapshot:"#9c7fe480"};function Uu(i){i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()}function ju(i){return i.injectedScript.utils.builtins.Date.now().toString()}function Oh(i,e,r,s){return i.addEventListener(e,r,s),()=>i.removeEventListener(e,r,s)}class oa{constructor(e){this._glassOverlay=null,this._marquee=null,this._dragStart=null,this._dragCurrent=null,this._isDragging=!1,this._hoverHighlight=null,this._listeners=[],this._syntheticHighlightEl=null,this.DOUBLE_TOGGLE_TIMEOUT=1500,this.DRAG_THRESHOLD=8,this.VIEWPORT_THRESHOLD=.8,this._recorder=e}static async getNextCounter(e,r){try{if(typeof e.injectedScript.window.__pw_recorderIncrementCounter=="function")return await e.injectedScript.window.__pw_recorderIncrementCounter(r)}catch(s){console.error("Failed to get counter from server:",s)}return Date.now()%1e3}cursor(){return this._isDragging?"crosshair":"pointer"}install(){var e;this._createGlassOverlay(),(e=this._recorder.injectedScript.document.body)==null||e.setAttribute("data-pw-cursor","pointer")}uninstall(){var e;this._removeGlassOverlay(),this._removeMarquee(),this._cleanup(),(e=this._recorder.injectedScript.document.body)==null||e.removeAttribute("data-pw-cursor")}cleanup(){this._cleanup()}_cleanup(){this._listeners.forEach(e=>e()),this._listeners=[],this._hoverHighlight&&this._recorder&&(this._recorder.updateHighlight(null,!1),this._hoverHighlight=null),this._cleanupSyntheticHighlight(),this._dragStart=null,this._dragCurrent=null,this._isDragging=!1}_cleanupSyntheticHighlight(){this._syntheticHighlightEl&&(this._syntheticHighlightEl.remove(),this._syntheticHighlightEl=null)}onKeyDown(e){e.key==="Escape"&&(Uu(e),this._cancelSnapshot())}_createGlassOverlay(){const e=this._recorder.injectedScript.document;this._glassOverlay=e.createElement("x-pw-glass"),this._glassOverlay.style.cssText=`
668
+ position: fixed !important;
669
+ top: 0 !important;
670
+ left: 0 !important;
671
+ right: 0 !important;
672
+ bottom: 0 !important;
673
+ z-index: 2147483646 !important;
674
+ background: rgba(0, 120, 215, 0.05) !important;
675
+ cursor: pointer !important;
676
+ pointer-events: auto !important;
677
+ `,this._listeners.push(Oh(this._glassOverlay,"pointerdown",r=>this._onGlassPointerDown(r),!0)),this._listeners.push(Oh(this._glassOverlay,"pointermove",r=>this._onGlassPointerMove(r),!0)),this._listeners.push(Oh(this._glassOverlay,"pointerup",r=>this._onGlassPointerUp(r),!0)),this._listeners.push(Oh(this._glassOverlay,"click",r=>Uu(r),!0)),e.body&&e.body.appendChild(this._glassOverlay)}_removeGlassOverlay(){this._glassOverlay&&(this._glassOverlay.remove(),this._glassOverlay=null)}_createMarquee(){if(this._marquee)return;const e=this._recorder.injectedScript.document;this._marquee=e.createElement("x-pw-marquee"),this._marquee.style.cssText=`
678
+ position: fixed !important;
679
+ border: 2px dashed #0078d7 !important;
680
+ background: rgba(0, 120, 215, 0.1) !important;
681
+ z-index: 2147483647 !important;
682
+ pointer-events: none !important;
683
+ `,e.body.appendChild(this._marquee)}_updateMarquee(){if(!this._marquee||!this._dragStart||!this._dragCurrent)return;const e=Math.min(this._dragStart.x,this._dragCurrent.x),r=Math.min(this._dragStart.y,this._dragCurrent.y),s=Math.max(this._dragStart.x,this._dragCurrent.x),o=Math.max(this._dragStart.y,this._dragCurrent.y);this._marquee.style.left=e+"px",this._marquee.style.top=r+"px",this._marquee.style.width=s-e+"px",this._marquee.style.height=o-r+"px"}_removeMarquee(){this._marquee&&(this._marquee.remove(),this._marquee=null)}_onGlassPointerDown(e){Uu(e),this._dragStart={x:e.clientX,y:e.clientY},this._dragCurrent=this._dragStart}_onGlassPointerMove(e){if(Uu(e),!this._dragStart){this._updateHoverHighlight(e);return}this._dragCurrent={x:e.clientX,y:e.clientY},Math.hypot(this._dragCurrent.x-this._dragStart.x,this._dragCurrent.y-this._dragStart.y)>=this.DRAG_THRESHOLD&&!this._isDragging&&(this._isDragging=!0,this._createMarquee(),this._glassOverlay&&(this._glassOverlay.style.cursor="crosshair")),this._isDragging?this._updateMarquee():this._updateHoverHighlight(e)}async _onGlassPointerUp(e){Uu(e),this._isDragging?await this._captureRegionSnapshot():this._dragStart&&await this._captureClickSnapshot(e),this._recorder.setMode("recording")}_updateHoverHighlight(e){var l,u,d,m;if(!this._recorder)return;this._glassOverlay&&(this._glassOverlay.style.display="none");const r=this._recorder.document.elementFromPoint(e.clientX,e.clientY);if(this._glassOverlay&&(this._glassOverlay.style.display=""),!r)return;if(((l=r.tagName)==null?void 0:l.toLowerCase())==="iframe"){const p=r;try{const v=p.getBoundingClientRect(),g=p.contentDocument;if(g){const y=[{iframe:p,selector:this._generateStableSelector(p)}],w=e.clientX-v.left,E=e.clientY-v.top,S=this._findGoJSDiagramRecursive(y,g,w,E,v.left,v.top);if(S){const k=S.containerEl.getBoundingClientRect(),D=S.accOffsetX+k.left,I=S.accOffsetY+k.top;if(this._syntheticHighlightEl){const W=this._syntheticHighlightEl.style;if(W.left===`${D}px`&&W.top===`${I}px`)return}this._cleanupSyntheticHighlight();const z=this._recorder.document,$=z.createElement("x-pw-gojs-highlight");$.style.cssText=["position: fixed","pointer-events: none","z-index: -1",`left: ${D}px`,`top: ${I}px`,`width: ${k.width}px`,`height: ${k.height}px`].join(" !important; ")+" !important;",(u=z.body)==null||u.appendChild($),this._syntheticHighlightEl=$;const Z=this._recorder.injectedScript.generateSelector(p,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoverHighlight={selector:Z.selector,elements:[$],color:$b.snapshot,tooltipText:"GoJS diagram (iframe)"},this._recorder.updateHighlight(this._hoverHighlight,!0);return}const T=this._findElementInIframeRecursive(y,g,w,E,v.left,v.top);if(T){const k=T.element.getBoundingClientRect(),D=T.accOffsetX+k.left,I=T.accOffsetY+k.top;if(this._syntheticHighlightEl){const W=this._syntheticHighlightEl.style;if(W.left===`${D}px`&&W.top===`${I}px`)return}this._cleanupSyntheticHighlight();const z=this._recorder.document,$=z.createElement("x-pw-gojs-highlight");$.style.cssText=["position: fixed","pointer-events: none","z-index: -1",`left: ${D}px`,`top: ${I}px`,`width: ${k.width}px`,`height: ${k.height}px`].join(" !important; ")+" !important;",(d=z.body)==null||d.appendChild($),this._syntheticHighlightEl=$;const Z=this._generateStableSelector(T.element);this._hoverHighlight={selector:Z,elements:[$],color:$b.snapshot,tooltipText:"Element (iframe)"},this._recorder.updateHighlight(this._hoverHighlight,!0);return}}}catch{}this._cleanupSyntheticHighlight()}else this._cleanupSyntheticHighlight();const s=this._resolvePdfTarget(r)||r;if(((m=this._hoverHighlight)==null?void 0:m.elements[0])===s)return;const o=this._recorder.injectedScript.generateSelector(s,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoverHighlight={selector:o.selector,elements:o.elements,color:$b.snapshot},this._recorder.updateHighlight(this._hoverHighlight,!0)}async _captureClickSnapshot(e){var v;const r=this._glassOverlay&&this._glassOverlay.style.display!=="none";this._glassOverlay&&(this._glassOverlay.style.display="none");const s=this._recorder.document.elementFromPoint(e.clientX,e.clientY);if(this._glassOverlay&&r&&(this._glassOverlay.style.display=""),!s)return;if(((v=s.tagName)==null?void 0:v.toLowerCase())==="iframe"){const g=s;try{const y=g.getBoundingClientRect(),w=g.contentDocument;if(w){const E=[{iframe:g,selector:this._generateStableSelector(g)}],S=e.clientX-y.left,T=e.clientY-y.top,k=this._findGoJSDiagramRecursive(E,w,S,T,y.left,y.top);if(k){await this._captureGoJsDiagramSnapshot(k.iframeChain,k.diagramSelector);return}const D=this._findElementInIframeRecursive(E,w,S,T,y.left,y.top);if(D){await this._captureIframeElementSnapshot(D.iframeChain,D.element);return}}}catch{}await this._captureElementSnapshot(g);return}const o=e.altKey,u=e.shiftKey&&s.parentElement?s.parentElement:s,d=this._resolvePdfTarget(u),m=d||u;o||!d&&this._shouldCapturePageSnapshot(m)?await this._capturePageSnapshot():await this._captureElementSnapshot(m)}_resolvePdfTarget(e){const r=e.closest("[data-page-number]");return r||null}_shouldCapturePageSnapshot(e,r){var m;const s=(m=e.tagName)==null?void 0:m.toLowerCase();if(s==="html"||s==="body")return!0;const o=r??this._recorder.injectedScript.window,l=e.getBoundingClientRect(),u=o.innerWidth*o.innerHeight;return l.width*l.height>=u*this.VIEWPORT_THRESHOLD}_buildSelectorFromEl(e){if(e.id)return`#${e.id}`;const r=e.getAttribute("data-testid");if(r)return`[data-testid="${r}"]`;const s=e.parentElement;if(s){const o=Array.from(s.children).indexOf(e)+1;return`${e.tagName.toLowerCase()}:nth-child(${o})`}return e.tagName.toLowerCase()}_findGoJSDiagramRecursive(e,r,s,o,l,u){var y,w,E;const d=r.querySelector("x-pw-glass");d&&(d.style.display="none");let m=null;try{m=r.elementFromPoint(s,o)}catch{return d&&(d.style.display=""),null}if(d&&(d.style.display=""),!m)return null;if(((y=m.tagName)==null?void 0:y.toLowerCase())==="iframe"){const S=m;try{const T=S.contentDocument;if(!T)return null;const k=S.getBoundingClientRect();return this._findGoJSDiagramRecursive([...e,{iframe:S,selector:this._generateStableSelector(S)}],T,s-k.left,o-k.top,l+k.left,u+k.top)}catch{return null}}const p=r.defaultView;if(!((E=(w=p==null?void 0:p.go)==null?void 0:w.Diagram)!=null&&E.fromDiv))return null;const v=r.body;let g=m;for(;g&&g!==v;){if(p.go.Diagram.fromDiv(g))return{containerEl:g,diagramSelector:this._buildSelectorFromEl(g),iframeChain:e,accOffsetX:l,accOffsetY:u};g=g.parentElement}return null}_findElementInIframeRecursive(e,r,s,o,l,u){var p;const d=r.querySelector("x-pw-glass");d&&(d.style.display="none");let m=null;try{m=r.elementFromPoint(s,o)}catch{return d&&(d.style.display=""),null}if(d&&(d.style.display=""),!m)return null;if(((p=m.tagName)==null?void 0:p.toLowerCase())==="iframe"){const v=m;try{const g=v.contentDocument;if(!g)return null;const y=v.getBoundingClientRect();return this._findElementInIframeRecursive([...e,{iframe:v,selector:this._generateStableSelector(v)}],g,s-y.left,o-y.top,l+y.left,u+y.top)}catch{return null}}return{element:m,iframeChain:e,document:r,accOffsetX:l,accOffsetY:u}}_generateStableSelector(e){var r;try{const s=(r=e.ownerDocument)==null?void 0:r.defaultView;if(s!=null&&s.__pw_recorderGenerateSelector){const o=s.__pw_recorderGenerateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName});if(o!=null&&o.selector)return o.selector}}catch{}return this._buildSelectorFromEl(e)}async _captureIframeElementSnapshot(e,r){var d;const s=this._generateStableSelector(r),o=await oa.getNextCounter(this._recorder,"element"),l=`el-${String(o).padStart(3,"0")}.png`,u={name:"visualSnapshot",snapshotType:"element",iframeSelectors:e.map(m=>m.selector),selector:s,filename:l,signals:[],timestamp:ju(this._recorder)};this._recorder.recordAction(u),(d=this._recorder.overlay)==null||d.flashToolSucceeded("assertingVSnapshot")}async _captureGoJsDiagramSnapshot(e,r){var u;const s=await oa.getNextCounter(this._recorder,"element"),o=`gojs-${String(s).padStart(3,"0")}.png`,l={name:"visualSnapshot",snapshotType:"gojsDiagram",iframeSelectors:e.map(d=>d.selector),diagramSelector:r,filename:o,signals:[],timestamp:ju(this._recorder)};this._recorder.recordAction(l),(u=this._recorder.overlay)==null||u.flashToolSucceeded("assertingVSnapshot")}async _capturePageSnapshot(){var o;const e=await oa.getNextCounter(this._recorder,"page"),s={name:"visualSnapshot",snapshotType:"page",filename:`page-${String(e).padStart(3,"0")}.png`,fullPage:!0,signals:[],timestamp:ju(this._recorder)};this._recorder.recordAction(s),(o=this._recorder.overlay)==null||o.flashToolSucceeded("assertingVSnapshot")}async _captureElementSnapshot(e){var u;const r=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName}),s=await oa.getNextCounter(this._recorder,"element"),o=`el-${String(s).padStart(3,"0")}.png`,l={name:"visualSnapshot",snapshotType:"element",selector:r.selector,filename:o,signals:[],timestamp:ju(this._recorder)};this._recorder.recordAction(l),(u=this._recorder.overlay)==null||u.flashToolSucceeded("assertingVSnapshot")}async _captureRegionSnapshot(){var g;if(!this._dragStart||!this._dragCurrent)return;const e=Math.min(this._dragStart.x,this._dragCurrent.x),r=Math.min(this._dragStart.y,this._dragCurrent.y),s=Math.max(this._dragStart.x,this._dragCurrent.x),o=Math.max(this._dragStart.y,this._dragCurrent.y),l=this._recorder.injectedScript.window.scrollX||this._recorder.injectedScript.window.pageXOffset,u=this._recorder.injectedScript.window.scrollY||this._recorder.injectedScript.window.pageYOffset,d={x:Math.round(e+l),y:Math.round(r+u),width:Math.round(s-e),height:Math.round(o-r)},m=await oa.getNextCounter(this._recorder,"region"),p=`region-${String(m).padStart(3,"0")}.png`,v={name:"visualSnapshot",snapshotType:"region",clip:d,filename:p,signals:[],timestamp:ju(this._recorder)};this._recorder.recordAction(v),(g=this._recorder.overlay)==null||g.flashToolSucceeded("assertingVSnapshot")}_cancelSnapshot(){this._recorder.setMode("recording")}}function v6(i){i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()}function iN(i){return i.injectedScript.utils.builtins.Date.now().toString()}function Hb(i,e,r,s){return i.addEventListener(e,r,s),()=>i.removeEventListener(e,r,s)}function w6(i){for(const e of i)e();i.splice(0,i.length)}class _6{constructor(e){this._selectionState=null,this._overlay=null,this._feedbackTooltip=null,this._listeners=[],this._recorder=e,this._initializeConfig()}_initializeConfig(){const e=this._recorder.injectedScript.window;e.__playwrightAreaSelectionConfig||(e.__playwrightAreaSelectionConfig={minDragDistance:3,showFeedback:!0,feedbackDuration:2e3,overlayColor:"#0ea5e9",overlayOpacity:.1,overlayBorderStyle:"dashed",overlayBorderWidth:2},console.log("[AreaSelectionTool] Configuration available at window.__playwrightAreaSelectionConfig"),console.log("[AreaSelectionTool] Adjust minDragDistance (default: 3px) in DevTools to fine-tune sensitivity"))}_getConfig(){return this._recorder.injectedScript.window.__playwrightAreaSelectionConfig}cursor(){return"crosshair"}install(){this._arm()}uninstall(){this._disarm(),this._removeOverlay(),this._removeFeedbackTooltip()}cleanup(){this._selectionState&&(this._disarm(),this._removeOverlay(),this._removeFeedbackTooltip())}onKeyDown(e){e.key==="Escape"&&(v6(e),this._removeOverlay(),this._recorder.setMode("recording"))}_arm(){var o;this._selectionState={startPoint:null,endPoint:null,targetCanvas:null,isSelecting:!1},(o=this._recorder.injectedScript.document.body)==null||o.setAttribute("data-pw-cursor","crosshair"),this._createOverlay();const e=l=>{var p;const u=l;if(!this._selectionState)return;const d=u.target;if(this._isInteractiveElement(d)){console.log("[AreaSelectionTool] Ignoring click on interactive element:",d.tagName,(p=d.textContent)==null?void 0:p.substring(0,30));return}this._selectionState.startPoint={x:u.clientX,y:u.clientY};const m=this._detectCanvasAtPoint({x:u.clientX,y:u.clientY});m?this._selectionState.targetCanvas=m:this._selectionState.targetCanvas=null,this._selectionState.isSelecting=!0},r=l=>{const u=l;this._selectionState&&this._selectionState.isSelecting&&this._selectionState.startPoint&&(this._selectionState.endPoint={x:u.clientX,y:u.clientY},this._updateOverlay(this._selectionState.startPoint,this._selectionState.endPoint))},s=l=>{const u=l;if(this._selectionState&&this._selectionState.isSelecting&&(this._selectionState.endPoint={x:u.clientX,y:u.clientY},this._selectionState.isSelecting=!1,this._selectionState.startPoint&&this._selectionState.endPoint)){const d=this._calculateDistance(this._selectionState.startPoint,this._selectionState.endPoint),p=this._getConfig().minDragDistance;d>=p?(console.log("[AreaSelectionTool] ✓ Capturing area selection, drag distance:",d.toFixed(1),"px (threshold:",p,"px)"),this._showSuccessFeedback(d),this._capture(),this._selectionState.startPoint=null,this._selectionState.endPoint=null,this._selectionState.targetCanvas=null,this._removeOverlay()):(console.warn("[AreaSelectionTool] ✗ Drag too small:",d.toFixed(1),"px (need ≥",p,"px) - staying active for retry"),this._showFailureFeedback(d,p),this._selectionState.startPoint=null,this._selectionState.endPoint=null,this._selectionState.targetCanvas=null,this._removeOverlay())}};this._listeners.push(Hb(this._recorder.document,"pointerdown",e,!1),Hb(this._recorder.document,"pointermove",r,!1),Hb(this._recorder.document,"pointerup",s,!1))}_disarm(){w6(this._listeners),this._listeners=[],this._selectionState=null}_createOverlay(){const e=this._getConfig();this._overlay=this._recorder.document.createElement("div");const r=(s,o)=>{const l=parseInt(s.slice(1,3),16),u=parseInt(s.slice(3,5),16),d=parseInt(s.slice(5,7),16);return`rgba(${l}, ${u}, ${d}, ${o})`};this._overlay.style.cssText=`
684
+ position: fixed;
685
+ border: ${e.overlayBorderWidth}px ${e.overlayBorderStyle} ${e.overlayColor};
686
+ background: ${r(e.overlayColor,e.overlayOpacity)};
687
+ pointer-events: none;
688
+ z-index: 2147483646;
689
+ display: none;
690
+ box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
691
+ transition: opacity 0.15s ease-in-out;
692
+ `,this._recorder.document.body.appendChild(this._overlay)}_updateOverlay(e,r){if(!this._overlay)return;const s=Math.min(e.x,r.x),o=Math.min(e.y,r.y),l=Math.abs(r.x-e.x),u=Math.abs(r.y-e.y);this._overlay.style.left=`${s}px`,this._overlay.style.top=`${o}px`,this._overlay.style.width=`${l}px`,this._overlay.style.height=`${u}px`,this._overlay.style.display="block"}_removeOverlay(){this._overlay&&this._overlay.parentElement&&(this._overlay.parentElement.removeChild(this._overlay),this._overlay=null)}_detectCanvasAtPoint(e){const r=this._recorder.document.elementFromPoint(e.x,e.y);return(r==null?void 0:r.tagName)==="CANVAS"?r:null}_detectCanvasContext(e){const r=this._recorder.document.elementFromPoint(e.x,e.y);if((r==null?void 0:r.tagName)==="CANVAS"){const s=r,o=s.getBoundingClientRect();return{canvas:s,rect:o}}return null}_isInteractiveElement(e){var s,o;if(!e)return!1;let r=e;for(;r&&r!==this._recorder.document.body;){const l=(s=r.tagName)==null?void 0:s.toLowerCase();if(["button","a","input","select","textarea","label"].includes(l))return!0;const u=r.getAttribute("role");if(u&&["button","link","menuitem","tab","checkbox","radio","switch","textbox"].includes(u)||r.hasAttribute("onclick")||r.getAttribute("data-testid")||(((o=r.className)==null?void 0:o.toString())||"").match(/btn|button|link|clickable|action/i))return!0;r=r.parentElement}return!1}_calculateDistance(e,r){const s=r.x-e.x,o=r.y-e.y;return Math.sqrt(s*s+o*o)}_showSuccessFeedback(e){const r=this._getConfig();r.showFeedback&&this._showFeedbackTooltip(`✓ Selection captured (${e.toFixed(1)}px)`,"#10b981",r.feedbackDuration)}_showFailureFeedback(e,r){const s=this._getConfig();s.showFeedback&&this._showFeedbackTooltip(`✗ Drag too small: ${e.toFixed(1)}px (need ≥${r}px)`,"#ef4444",s.feedbackDuration)}_showFeedbackTooltip(e,r,s){this._removeFeedbackTooltip(),this._feedbackTooltip=this._recorder.document.createElement("div"),this._feedbackTooltip.textContent=e,this._feedbackTooltip.style.cssText=`
693
+ position: fixed;
694
+ top: 20px;
695
+ left: 50%;
696
+ transform: translateX(-50%);
697
+ background: ${r};
698
+ color: white;
699
+ padding: 12px 24px;
700
+ border-radius: 6px;
701
+ font-family: system-ui, -apple-system, sans-serif;
702
+ font-size: 14px;
703
+ font-weight: 500;
704
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
705
+ z-index: 2147483647;
706
+ pointer-events: none;
707
+ animation: pwSlideIn 0.3s ease-out;
708
+ `;const o=this._recorder.document.createElement("style");o.textContent=`
709
+ @keyframes pwSlideIn {
710
+ from {
711
+ opacity: 0;
712
+ transform: translateX(-50%) translateY(-10px);
713
+ }
714
+ to {
715
+ opacity: 1;
716
+ transform: translateX(-50%) translateY(0);
717
+ }
718
+ }
719
+ @keyframes pwSlideOut {
720
+ from {
721
+ opacity: 1;
722
+ transform: translateX(-50%) translateY(0);
723
+ }
724
+ to {
725
+ opacity: 0;
726
+ transform: translateX(-50%) translateY(-10px);
727
+ }
728
+ }
729
+ `,this._recorder.document.head.appendChild(o),this._recorder.document.body.appendChild(this._feedbackTooltip),setTimeout(()=>{this._feedbackTooltip&&(this._feedbackTooltip.style.animation="pwSlideOut 0.3s ease-in",setTimeout(()=>this._removeFeedbackTooltip(),300))},s)}_removeFeedbackTooltip(){this._feedbackTooltip&&this._feedbackTooltip.parentElement&&(this._feedbackTooltip.parentElement.removeChild(this._feedbackTooltip),this._feedbackTooltip=null)}_getElementsInRect(e){const r=[],s=this._recorder.document.querySelectorAll("*");for(const o of s){const l=o.getBoundingClientRect();if(!(l.right<e.left||l.left>e.right||l.bottom<e.top||l.top>e.bottom)){const u=o.tagName.toLowerCase();(["button","a","input","select","textarea"].includes(u)||o.hasAttribute("role")||o.hasAttribute("data-testid"))&&r.push(o)}}return r}_capture(){var v,g;const e=this._selectionState.startPoint,r=this._selectionState.endPoint,s=Math.min(e.x,r.x),o=Math.min(e.y,r.y),l=Math.abs(r.x-e.x),u=Math.abs(r.y-e.y),d=new DOMRect(s,o,l,u);let m;const p=this._selectionState.targetCanvas||((v=this._detectCanvasContext({x:s+l/2,y:o+u/2}))==null?void 0:v.canvas);if(p){const y=this._recorder.injectedScript.generateSelector(p,{testIdAttributeName:this._recorder.state.testIdAttributeName});m={name:"selectArea",type:"canvas",startPoint:e,endPoint:r,canvasSelector:y.selector,signals:[],timestamp:iN(this._recorder)}}else{const y=this._getElementsInRect(d),w=y.map(E=>this._recorder.injectedScript.generateSelector(E,{testIdAttributeName:this._recorder.state.testIdAttributeName}).selector);m={name:"selectArea",type:y.length>0?"dom":"hybrid",startPoint:e,endPoint:r,selectors:w.length>0?w:void 0,signals:[],timestamp:iN(this._recorder)}}this._recorder.recordAction(m),this._recorder.setMode("recording"),(g=this._recorder.overlay)==null||g.flashToolSucceeded("recordingArea")}}function S6(i){return i.injectedScript.utils.builtins.Date.now().toString()}class E6{constructor(e){this._actionSequenceCounter=0,this._recorder=e}cursor(){return"default"}install(){this._captureDomSnapshot()}uninstall(){}cleanup(){}_captureDomSnapshot(){const r={name:"domSnapshot",snapshotData:this._serializeDom(),signals:[],timestamp:S6(this._recorder)};this._recorder.recordAction(r),this._recorder.setMode("recording")}_serializeDom(){const e=this._recorder.document,r=this._recorder.injectedScript.window;return{url:e.location.href,timestamp:Date.now(),viewport:{width:r.innerWidth,height:r.innerHeight},dom:this._buildDomTree(e.documentElement),metadata:{actionSequence:this._actionSequenceCounter++,sessionId:`rec-${Date.now()}`}}}_buildDomTree(e,r=0){var u,d;if(r>50)return null;const s=e.tagName.toLowerCase();if(s.startsWith("x-pw-"))return null;const o={tag:s,attributes:this._getAttributes(e)};if(e.childNodes.length===0||e.childNodes.length===1&&((u=e.firstChild)==null?void 0:u.nodeType)===3){const m=(d=e.textContent)==null?void 0:d.trim();m&&(o.text=m)}if(e instanceof HTMLInputElement?(o.value=e.value,o.checked=e.checked,o.type=e.type):e instanceof HTMLTextAreaElement?o.value=e.value:e instanceof HTMLSelectElement&&(o.value=e.value,o.selectedOptions=Array.from(e.selectedOptions).map(m=>m.value)),e.shadowRoot){const m=Array.from(e.shadowRoot.children).map(p=>this._buildDomTree(p,r+1)).filter(Boolean);m.length>0&&(o.shadowRoot=m)}const l=Array.from(e.children).map(m=>this._buildDomTree(m,r+1)).filter(Boolean);return l.length>0&&(o.children=l),o}_getAttributes(e){const r={},s=["id","class","name","type","role","aria-label","aria-describedby","aria-labelledby","data-testid","data-test-id","data-test","placeholder","title","alt","href","src","value","for","action","method"];for(const o of s){const l=e.getAttribute(o);l&&(r[o]=l)}return r}}const x6=1e3,T6=9999;function N6(){try{if(document.querySelector("#modal-root dialog, #modal-root .modal_root")){const e=`
730
+ (() => {
731
+ const S = (window.__pwHideModal__ ||= {});
732
+ const MIN_BLOCKING_Z_INDEX = ${x6};
733
+ const MIN_HIGH_PRIORITY_Z_INDEX = ${T6};
734
+
735
+ // Find ALL dialogs in the modal (main modal + any dropdowns)
736
+ const dialogs = Array.from(document.querySelectorAll('#modal-root dialog, #modal-root .modal_root'));
737
+ if (!dialogs.length) return console.warn('No modal dialogs found.');
738
+
739
+ if (S.hidden) return console.log('Already hidden.');
740
+
741
+ // Remember initial state for ALL dialogs
742
+ S.dialogs = dialogs.map(dlg => ({
743
+ element: dlg,
744
+ wasModal: typeof HTMLDialogElement !== 'undefined'
745
+ && dlg instanceof HTMLDialogElement
746
+ && dlg.matches(':modal')
747
+ }));
748
+
749
+ // Prevent the app from reacting to close/cancel while we hide all dialogs
750
+ S.stopper = e => e.stopImmediatePropagation();
751
+ S.dialogs.forEach(({ element }) => {
752
+ element.addEventListener('close', S.stopper, true);
753
+ element.addEventListener('cancel', S.stopper, true);
754
+ });
755
+
756
+ // Release the top layer without letting the app know for ALL dialogs
757
+ S.dialogs.forEach(({ element, wasModal }) => {
758
+ try {
759
+ if (wasModal && typeof element.close === 'function') element.close('pw-temp-hide');
760
+ else element.removeAttribute('open');
761
+ } catch {}
762
+ });
763
+
764
+ // Visually/interaction-wise hide the whole modal container
765
+ const root = document.getElementById('modal-root') || S.dialogs[0]?.element.closest('#modal-root') || S.dialogs[0]?.element;
766
+ S.root = root;
767
+ S.prevVis = root.style.visibility;
768
+ S.prevPE = root.style.pointerEvents;
769
+ root.style.visibility = 'hidden';
770
+ root.style.pointerEvents = 'none';
771
+
772
+ // Common "page lock" cleanups (store and undo later)
773
+ S.bodyOverflow = document.body.style.overflow;
774
+ document.body.style.overflow = '';
775
+
776
+ S.inertEls = Array.from(document.querySelectorAll('[inert]'));
777
+ S.inertEls.forEach(el => el.removeAttribute('inert'));
778
+
779
+ S.ariaHidden = [];
780
+ Array.from(document.body.children).forEach(el => {
781
+ if (el === root) return;
782
+ const v = el.getAttribute('aria-hidden');
783
+ if (v !== null) { S.ariaHidden.push([el, v]); el.removeAttribute('aria-hidden'); }
784
+ });
785
+
786
+ // Find and neutralize ALL blocking elements, especially dropdown-related overlays
787
+ S.tempPeNone = [];
788
+
789
+ // Check multiple points across the screen for blocking elements
790
+ const testPoints = [
791
+ [innerWidth/2, innerHeight/2], // center
792
+ [innerWidth/4, innerHeight/4], // top-left
793
+ [3*innerWidth/4, innerHeight/4], // top-right
794
+ [innerWidth/4, 3*innerHeight/4], // bottom-left
795
+ [3*innerWidth/4, 3*innerHeight/4], // bottom-right
796
+ [innerWidth/2, innerHeight/4], // top-center
797
+ [innerWidth/2, 3*innerHeight/4], // bottom-center
798
+ ];
799
+
800
+ testPoints.forEach(([x, y]) => {
801
+ const probe = document.elementFromPoint(x, y);
802
+ if (probe && probe !== root && !root.contains(probe) &&
803
+ !probe.tagName?.toLowerCase().startsWith('x-pw-') &&
804
+ probe.id !== 'x-pw-glass' &&
805
+ !S.tempPeNone.includes(probe)) {
806
+
807
+ const cs = getComputedStyle(probe);
808
+ const isBlocking = (
809
+ // Original full-screen check
810
+ (cs.position === 'fixed' &&
811
+ cs.top === '0px' && cs.left === '0px' && cs.right === '0px' && cs.bottom === '0px') ||
812
+ // Dropdown overlay patterns
813
+ (cs.position === 'fixed' && parseInt(cs.zIndex) > MIN_BLOCKING_Z_INDEX) ||
814
+ (cs.position === 'absolute' && parseInt(cs.zIndex) > MIN_BLOCKING_Z_INDEX) ||
815
+ // Common backdrop patterns
816
+ (cs.position === 'fixed' && cs.inset === '0px') ||
817
+ // Elements that cover significant area
818
+ (cs.position === 'fixed' && cs.width && cs.height &&
819
+ parseInt(cs.width) > innerWidth/2 && parseInt(cs.height) > innerHeight/2)
820
+ );
821
+
822
+ if (isBlocking) {
823
+ S.tempPeNone.push(probe);
824
+ probe.style.pointerEvents = 'none';
825
+ console.log('Disabled blocking element at', x, y, ':', probe, 'z-index:', cs.zIndex);
826
+ }
827
+ }
828
+ });
829
+
830
+ // Also scan for high z-index elements that might be blocking
831
+ const highZElements = Array.from(document.querySelectorAll('*')).filter(el => {
832
+ if (el === root || root.contains(el) ||
833
+ el.tagName?.toLowerCase().startsWith('x-pw-') ||
834
+ S.tempPeNone.includes(el)) return false;
835
+
836
+ const cs = getComputedStyle(el);
837
+ return cs.zIndex && parseInt(cs.zIndex) > MIN_HIGH_PRIORITY_Z_INDEX;
838
+ });
839
+
840
+ highZElements.forEach(el => {
841
+ S.tempPeNone.push(el);
842
+ el.style.pointerEvents = 'none';
843
+ console.log('Disabled high z-index element:', el, 'z-index:', getComputedStyle(el).zIndex);
844
+ });
845
+
846
+ S.hidden = true;
847
+ console.log('✅ Modal hidden automatically for text assertion.');
848
+ })();
849
+ `;new Function(e)()}}catch(i){console.warn("Failed to auto-hide modal for assertion:",i)}}function A6(){try{const i=`
850
+ (() => {
851
+ const S = window.__pwHideModal__;
852
+ if (!S?.hidden) return console.warn('Nothing to restore.');
853
+
854
+ const { dialogs, root } = S;
855
+ if (!dialogs?.length || !root || !document.contains(root)) {
856
+ return console.warn('Modal root/dialogs no longer in DOM (app removed it).');
857
+ }
858
+
859
+ // Make container visible/clickable again
860
+ root.style.visibility = S.prevVis ?? '';
861
+ root.style.pointerEvents = S.prevPE ?? '';
862
+
863
+ // Bring ALL dialogs back into the top layer (if they were modal)
864
+ dialogs.forEach(({ element, wasModal }) => {
865
+ try {
866
+ if (wasModal && typeof element.showModal === 'function') element.showModal();
867
+ else element.setAttribute('open', '');
868
+ } catch (e) {
869
+ // Fallback: at least show it
870
+ element.setAttribute('open', '');
871
+ }
872
+ });
873
+
874
+ // Re-apply page locks as they were
875
+ if (S.bodyOverflow !== undefined) document.body.style.overflow = S.bodyOverflow;
876
+ (S.inertEls || []).forEach(el => el.setAttribute('inert', ''));
877
+ (S.ariaHidden || []).forEach(([el, v]) => el.setAttribute('aria-hidden', v));
878
+ (S.tempPeNone || []).forEach(el => el.style.removeProperty('pointer-events'));
879
+
880
+ // Allow the app to receive close/cancel in the future for ALL dialogs
881
+ if (S.stopper) {
882
+ dialogs.forEach(({ element }) => {
883
+ element.removeEventListener('close', S.stopper, true);
884
+ element.removeEventListener('cancel', S.stopper, true);
885
+ });
886
+ }
887
+
888
+ S.hidden = false;
889
+ console.log('✅ Modal restored automatically after text assertion.');
890
+ })();
891
+ `;new Function(i)()}catch(i){console.warn("Failed to auto-show modal after assertion:",i)}}function Lh(...i){typeof window<"u"&&window.__SKYRAMP_DEBUG__&&console.log("[ModalHandler]",...i)}function sN(i){const e=i.getAttribute("data-testid");if(e)return`dialog[data-testid="${e}"]`;if(i.id)return`#${i.id}`;const r=i.getAttribute("aria-label");if(r)return`dialog[aria-label="${r}"]`;const s=i.tagName.toLowerCase(),o=i.className;return typeof o=="string"&&o.trim()?`${s}.${o.trim().split(/\s+/).join(".")}`:s}class C6{constructor(e){this._observer=null,this._enabled=!1,this._activeModal=null,this._document=e}setOnModalOpen(e){this._onModalOpen=e}setOnModalClose(e){this._onModalClose=e}isModalOpen(){return this._activeModal!==null}enable(){this._enabled||(this._enabled=!0,this._document.body&&(this._observer=new MutationObserver(e=>this._handleMutations(e)),this._observer.observe(this._document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["open","aria-modal","class"]}),this._checkExistingModals(),Lh("Enabled — watching for modal lifecycle events")))}disable(){this._enabled&&(this._enabled=!1,this._observer&&(this._observer.disconnect(),this._observer=null),this._activeModal=null,Lh("Disabled"))}_checkExistingModals(){const e=this._document.querySelector("dialog[open]");if(e){this._emitOpen(e);return}const r=this._document.querySelector('[aria-modal="true"]');if(r){this._emitOpen(r);return}const s=this._document.querySelector(".cds--modal.is-visible");if(s){this._emitOpen(s);return}}_handleMutations(e){var r,s,o;if(this._enabled)for(const l of e){if(l.type==="attributes"){const u=l.target;if(l.attributeName==="open"&&u.tagName==="DIALOG"){u.hasAttribute("open")?this._emitOpen(u):this._emitClose(u);continue}if(l.attributeName==="aria-modal"){u.getAttribute("aria-modal")==="true"?this._emitOpen(u):this._activeModal===u&&this._emitClose(u);continue}if(l.attributeName==="class"&&((r=u.classList)!=null&&r.contains("cds--modal"))){u.classList.contains("is-visible")?this._emitOpen(u):this._activeModal===u&&this._emitClose(u);continue}}if(l.type==="childList"){for(const u of l.addedNodes)u instanceof Element&&(u.tagName==="DIALOG"&&u.hasAttribute("open")?this._emitOpen(u):((s=u.getAttribute)==null?void 0:s.call(u,"aria-modal"))==="true"?this._emitOpen(u):(o=u.classList)!=null&&o.contains("cds--modal")&&u.classList.contains("is-visible")&&this._emitOpen(u));if(this._activeModal)for(const u of l.removedNodes)(u===this._activeModal||u instanceof Element&&u.contains(this._activeModal))&&this._emitClose(this._activeModal)}}}_emitOpen(e){var s;if(this._activeModal===e)return;this._activeModal=e;const r=sN(e);Lh("Modal opened:",r),(s=this._onModalOpen)==null||s.call(this,{selector:r})}_emitClose(e){var s;if(this._activeModal!==e)return;const r=sN(e);this._activeModal=null,Lh("Modal closed:",r),(s=this._onModalClose)==null||s.call(this,{selector:r})}}function k6(...i){typeof window<"u"&&window.__SKYRAMP_DEBUG__&&console.log("[IframeHandler]",...i)}function D6(i){return!!(/\d{2,}[_-][a-zA-Z]/.test(i)||/[-_]\d+$/.test(i)||/^react-aria\d+/.test(i)||/^(mui|mat|cdk)-\d+/.test(i)||/^\d+$/.test(i)||/\d{4,}/.test(i)||i.includes(":"))}function aN(i){if(i.title)return`iframe[title="${i.title}"]`;if(i.name)return`iframe[name="${i.name}"]`;if(i.id&&!D6(i.id))return`#${i.id}`;if(i.src){try{const e=new URL(i.src);if((e.protocol==="http:"||e.protocol==="https:")&&e.pathname&&e.pathname!=="/")return`iframe[src*="${e.pathname}"]`}catch{}return`iframe[src="${i.src}"]`}return i.id?`#${i.id}`:"iframe"}class R6{constructor(e){this._observer=null,this._enabled=!1,this._trackedIframes=new WeakSet,this._document=e}setOnIframeLoad(e){this._onIframeLoad=e}enable(){this._enabled||(this._enabled=!0,this._document.body&&(this._observer=new MutationObserver(e=>this._handleMutations(e)),this._observer.observe(this._document.body,{childList:!0,subtree:!0}),this._trackExistingIframes(),console.log("[IframeHandler] Enabled — watching for iframe load events")))}disable(){this._enabled&&(this._enabled=!1,this._observer&&(this._observer.disconnect(),this._observer=null),k6("Disabled"))}_trackExistingIframes(){for(const e of this._document.querySelectorAll("iframe"))this._trackIframe(e)}_handleMutations(e){if(this._enabled){for(const r of e)if(r.type==="childList"){for(const s of r.addedNodes)if(s instanceof HTMLIFrameElement&&this._trackIframe(s),s instanceof Element)for(const o of s.querySelectorAll("iframe"))this._trackIframe(o)}}}_trackIframe(e){var r,s;if(!this._trackedIframes.has(e)){this._trackedIframes.add(e),e.addEventListener("load",()=>{var l;if(!this._enabled)return;const o=aN(e);console.log("[IframeHandler] Iframe loaded:",o),(l=this._onIframeLoad)==null||l.call(this,{selector:o})},{once:!0});try{if(((r=e.contentDocument)==null?void 0:r.readyState)==="complete"){const o=aN(e);console.log("[IframeHandler] Iframe already loaded:",o),(s=this._onIframeLoad)==null||s.call(this,{selector:o})}}catch{}}}}const Ar={multiple:"#f6b26b7f",single:"#6fa8dc7f",assert:"#8acae480",action:"#dc6f6f7f",snapshot:"#9c7fe480"};function M6(i,e,r){const s=i.generateSelector(e,{testIdAttributeName:r});let o=s.selector,l;const u=id(i,e,s.selector,s.elements);return u&&(o=u.selector,!u.isFormContainer&&!u.usesTextFilter&&(l={container:u.containerSelector,index:u.containerIndex,relative:u.relativeSelector})),{selector:o,scoped:l}}class Ib{}class zb{constructor(e,r){this._hoveredModel=null,this._hoveredElement=null,this._recorder=e,this._assertVisibility=r}cursor(){return"pointer"}uninstall(){this._hoveredModel=null,this._hoveredElement=null}onClick(e){var r;ft(e),e.button===0&&(r=this._hoveredModel)!=null&&r.selector&&this._commit(this._hoveredModel.selector,this._hoveredModel)}onPointerDown(e){ft(e)}onPointerUp(e){ft(e)}onMouseDown(e){ft(e)}onMouseUp(e){ft(e)}onMouseMove(e){var o;ft(e);let r=this._recorder.deepEventTarget(e);if(r.isConnected||(r=null),this._hoveredElement===r)return;this._hoveredElement=r;let s=null;if(this._hoveredElement){const l=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName,multiple:!1}),u=id(this._recorder.injectedScript,this._hoveredElement,l.selector,l.elements),d=u?u.selector:l.selector,m=u?u.elements:l.elements;s={selector:d,elements:m,tooltipText:this._recorder.injectedScript.utils.asLocator(this._recorder.state.language,d),color:this._assertVisibility?Ar.assert:Ar.single}}((o=this._hoveredModel)==null?void 0:o.selector)!==(s==null?void 0:s.selector)&&(this._hoveredModel=s,this._recorder.updateHighlight(s,!0))}onMouseEnter(e){ft(e)}onMouseLeave(e){ft(e);const r=this._recorder.injectedScript.window;r.top!==r&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&this._reset(!0)}onKeyDown(e){ft(e),e.key==="Escape"&&this._assertVisibility&&this._recorder.setMode("recording")}onKeyUp(e){ft(e)}onScroll(e){this._reset(!1)}_commit(e,r){var s;this._assertVisibility?(this._recorder.recordAction({name:"assertVisible",selector:e,signals:[],timestamp:Ye(this._recorder)}),this._recorder.setMode("recording"),(s=this._recorder.overlay)==null||s.flashToolSucceeded("assertingVisibility")):this._recorder.elementPicked(e,r)}_reset(e){this._hoveredElement=null,this._hoveredModel=null,this._recorder.updateHighlight(null,e)}}class O6{constructor(e){this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._expectProgrammaticKeyUp=!1,this._observer=null,this._recorder=e,this._performingActions=new Set,this._dialog=new wC(e)}cursor(){return"pointer"}_installObserverIfNeeded(){var e;this._observer||(e=this._recorder.injectedScript.document)!=null&&e.body&&(this._observer=new MutationObserver(r=>{if(this._hoveredElement)for(const s of r)for(const o of s.removedNodes)(o===this._hoveredElement||o.contains(this._hoveredElement))&&this._resetHoveredModel()}),this._observer.observe(this._recorder.injectedScript.document.body,{childList:!0,subtree:!0}))}uninstall(){var e;(e=this._observer)==null||e.disconnect(),this._observer=null,this._hoveredModel=null,this._hoveredElement=null,this._activeModel=null,this._expectProgrammaticKeyUp=!1,this._dialog.close()}onClick(e){var m;if(this._lastClickX=e.clientX,this._lastClickY=e.clientY,this._dialog.isShowing()){e.button===2&&e.type==="auxclick"&&ft(e);return}if(Zu(this._hoveredElement)||this._shouldIgnoreMouseEvent(e))return;const r=this._recorder.deepEventTarget(e),s=this._findFileInput(r);if(s){if(!this._activeModel){const p=((m=this._hoveredModel)==null?void 0:m.selector)??this._recorder.injectedScript.generateSelector(s,{testIdAttributeName:this._recorder.state.testIdAttributeName}).selector;this._activeModel=this._hoveredModel??{selector:p,elements:[s],color:"#dc6f6f7f"}}return}if(this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel))return;if(e.button===2&&e.type==="auxclick"){this._showActionListDialog(this._hoveredModel,e);return}const o=Qu(this._recorder.deepEventTarget(e));if(o&&e.detail===1){this._performAction({name:o.checked?"check":"uncheck",selector:this._hoveredModel.selector,signals:[],timestamp:Ye(this._recorder)});return}this._cancelPendingClickAction();let l=this._hoveredModel.selector,u=!1;if(this._recorder.pointerEventsOverrideEnabled){const p=this._recorder.deepEventTarget(e),v=this._recorder._nestedElementHandler.handleNestedClick(p,this._hoveredModel,this._recorder.injectedScript,this._recorder.state.testIdAttributeName);v&&(l=v.targetSelector,u=v.shouldAutoDisable)}let d;try{d=window!==window.top}catch{d=!0}if(e.detail===1){const p={name:"click",selector:l,position:Wu(e),signals:[],button:pv(e),modifiers:Ul(e),clickCount:e.detail,timestamp:Ye(this._recorder)};this._pendingClickAction={action:p,autoDisableNestedTool:u,timeout:d?0:this._recorder.injectedScript.utils.builtins.setTimeout(()=>this._commitPendingClickAction(),200)},d&&this._commitPendingClickAction()}}onDblClick(e){this._dialog.isShowing()||Zu(this._hoveredElement)||this._shouldIgnoreMouseEvent(e)||this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel)||(this._cancelPendingClickAction(),this._performAction({name:"click",selector:this._hoveredModel.selector,position:Wu(e),signals:[],button:pv(e),modifiers:Ul(e),clickCount:e.detail,timestamp:Ye(this._recorder)}),this._recorder.pointerEventsOverrideEnabled&&this._recorder.togglePointerEventsOverride())}_commitPendingClickAction(){this._pendingClickAction&&(this._performAction(this._pendingClickAction.action),this._pendingClickAction.autoDisableNestedTool&&this._recorder.pointerEventsOverrideEnabled&&this._recorder.togglePointerEventsOverride()),this._cancelPendingClickAction()}_cancelPendingClickAction(){this._pendingClickAction&&this._recorder.injectedScript.utils.builtins.clearTimeout(this._pendingClickAction.timeout),this._pendingClickAction=void 0}onContextMenu(e){if(this._dialog.isShowing()){ft(e);return}this._shouldIgnoreMouseEvent(e)||this._actionInProgress(e)||this._consumedDueToNoModel(e,this._hoveredModel)||this._showActionListDialog(this._hoveredModel,e)}onPointerDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onPointerUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onMouseDown(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||(this._consumeWhenAboutToPerform(e),this._activeModel=this._hoveredModel)}onMouseUp(e){this._dialog.isShowing()||this._shouldIgnoreMouseEvent(e)||this._consumeWhenAboutToPerform(e)}onMouseMove(e){if(this._dialog.isShowing())return;const r=this._recorder.deepEventTarget(e);this._hoveredElement!==r&&(this._hoveredElement=r,this._updateModelForHoveredElement())}onMouseLeave(e){if(this._dialog.isShowing())return;const r=this._recorder.injectedScript.window;r.top!==r&&this._recorder.deepEventTarget(e).nodeType===Node.DOCUMENT_NODE&&(this._hoveredElement=null,this._updateModelForHoveredElement())}onFocus(e){this._dialog.isShowing()||this._onFocus(e.isTrusted)}onInput(e){var s,o,l;if(this._dialog.isShowing())return;const r=this._recorder.deepEventTarget(e);if(r.nodeName==="INPUT"&&r.type.toLowerCase()==="file"){const u=((s=this._activeModel)==null?void 0:s.selector)??this._recorder.injectedScript.generateSelector(r,{testIdAttributeName:this._recorder.state.testIdAttributeName}).selector,d=[...r.files||[]],m=d.map(w=>w.name),p=r.webkitdirectory===!0,v=d.map(w=>w.webkitRelativePath||""),g=(l=(o=this._activeModel)==null?void 0:o.elements)==null?void 0:l[0];if(!(!g||g===r)){this._recordAction({name:"fileChooser",selector:u,signals:[],files:m,webkitdirectory:p,relativePaths:v,timestamp:Ye(this._recorder)});return}this._recordAction({name:"setInputFiles",selector:u,signals:[],files:m,webkitdirectory:p,relativePaths:v,timestamp:Ye(this._recorder)});return}if(Zu(r)){this._recordAction({name:"fill",selector:this._hoveredModel.selector,signals:[],text:r.value,timestamp:Ye(this._recorder)});return}if(["INPUT","TEXTAREA"].includes(r.nodeName)||r.isContentEditable){if(r.nodeName==="INPUT"&&["checkbox","radio"].includes(r.type.toLowerCase())||this._consumedDueWrongTarget(e))return;this._recordAction({name:"fill",selector:this._activeModel.selector,signals:[],text:r.isContentEditable?r.innerText:r.value,isPassword:SC(r)?!0:void 0,timestamp:Ye(this._recorder)})}if(r.nodeName==="SELECT"){const u=r;this._recordAction({name:"select",selector:this._activeModel.selector,options:[...u.selectedOptions].map(d=>d.value),signals:[],timestamp:Ye(this._recorder)})}}onKeyDown(e){if(!this._dialog.isShowing()&&this._shouldGenerateKeyPressFor(e)){if(this._actionInProgress(e)){this._expectProgrammaticKeyUp=!0;return}if(!this._consumedDueWrongTarget(e)){if(e.key===" "){const r=Qu(this._recorder.deepEventTarget(e));if(r&&e.detail===0){this._performAction({name:r.checked?"uncheck":"check",selector:this._activeModel.selector,signals:[],timestamp:Ye(this._recorder)});return}}this._performAction({name:"press",selector:this._activeModel.selector,signals:[],key:e.key,modifiers:Ul(e),timestamp:Ye(this._recorder)})}}}onKeyUp(e){if(!this._dialog.isShowing()&&this._shouldGenerateKeyPressFor(e)){if(!this._expectProgrammaticKeyUp){ft(e);return}this._expectProgrammaticKeyUp=!1}}onScroll(e){this._dialog.isShowing()||this._resetHoveredModel()}_showActionListDialog(e,r){ft(r);const s=Wu(r),o=[{title:"Click",cb:()=>this._performAction({name:"click",selector:e.selector,position:s,signals:[],button:"left",modifiers:0,clickCount:1,timestamp:Ye(this._recorder)})},{title:"Right click",cb:()=>this._performAction({name:"click",selector:e.selector,position:s,signals:[],button:"right",modifiers:0,clickCount:1,timestamp:Ye(this._recorder)})},{title:"Double click",cb:()=>this._performAction({name:"click",selector:e.selector,position:s,signals:[],button:"left",modifiers:0,clickCount:2,timestamp:Ye(this._recorder)})},{title:"Hover",cb:()=>this._performAction({name:"hover",selector:e.selector,position:s,signals:[],timestamp:Ye(this._recorder)})},{title:"Pick locator",cb:()=>this._recorder.elementPicked(e.selector,e)}],l=this._recorder.document.createElement("x-pw-action-list");l.setAttribute("role","list"),l.setAttribute("aria-label","Choose action");for(const p of o){const v=this._recorder.document.createElement("x-pw-action-item");v.setAttribute("role","listitem"),v.textContent=p.title,v.setAttribute("aria-label",p.title),v.addEventListener("click",()=>{this._dialog.close(),p.cb()}),l.appendChild(v)}const u=this._dialog.show({label:"Choose action",body:l,autosize:!0}),d=this._recorder.highlight.firstTooltipBox()||e.elements[0].getBoundingClientRect(),m=this._recorder.highlight.tooltipPosition(d,u);this._dialog.moveTo(m.anchorTop,m.anchorLeft)}_resetHoveredModel(){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!1)}_onFocus(e){const r=_C(this._recorder.document);if(r===this._recorder.document.body)return;const s=r?this._recorder.injectedScript.generateSelector(r,{testIdAttributeName:this._recorder.state.testIdAttributeName}):null;let o=s==null?void 0:s.selector,l=s==null?void 0:s.elements;if(r&&s){const u=id(this._recorder.injectedScript,r,s.selector,s.elements);u&&(o=u.selector,l=u.elements)}this._activeModel=s&&o?{...s,selector:o,elements:l,color:Ar.action}:null,e&&(this._hoveredElement=r,this._updateModelForHoveredElement())}_shouldIgnoreMouseEvent(e){const r=this._recorder.deepEventTarget(e),s=r.nodeName;return!!(s==="SELECT"||s==="OPTION"||s==="INPUT"&&["date","range"].includes(r.type))}_actionInProgress(e){const r=e instanceof KeyboardEvent,s=e instanceof MouseEvent||e instanceof PointerEvent;for(const o of this._performingActions)if(r&&o.name==="press"&&e.key===o.key||s&&(o.name==="click"||o.name==="hover"||o.name==="check"||o.name==="uncheck"))return!0;return ft(e),!1}_consumedDueToNoModel(e,r){return r?!1:(ft(e),!0)}_consumedDueWrongTarget(e){return this._activeModel&&this._activeModel.elements[0]===this._recorder.deepEventTarget(e)?!1:(ft(e),!0)}_findFileInput(e){if(e.nodeName==="INPUT"&&e.type.toLowerCase()==="file")return e;if(e.nodeName==="LABEL"){const s=e.htmlFor;if(s){const o=e.ownerDocument.getElementById(s);if(o&&o.nodeName==="INPUT"&&o.type.toLowerCase()==="file")return o}}const r=e.querySelector('input[type="file"]');return r||null}_consumeWhenAboutToPerform(e){this._performingActions.size||ft(e)}_recordAction(e){this._recorder.recordAction(e)}_performAction(e){this._recorder.updateHighlight(null,!1),this._performingActions.add(e);const r=this._recorder.performAction(e).then(()=>{this._performingActions.delete(e),this._onFocus(!1)});this._recorder.injectedScript.isUnderTest&&r.then(()=>{console.error("Action performed for test: "+JSON.stringify({hovered:this._hoveredModel?this._hoveredModel.selector:null,active:this._activeModel?this._activeModel.selector:null}))})}_shouldGenerateKeyPressFor(e){if(typeof e.key!="string"||e.key==="Enter"&&(this._recorder.deepEventTarget(e).nodeName==="TEXTAREA"||this._recorder.deepEventTarget(e).isContentEditable)||["Backspace","Delete","AltGraph"].includes(e.key)||e.key==="@"&&e.code==="KeyL")return!1;if(navigator.platform.includes("Mac")){if(e.key==="v"&&e.metaKey)return!1}else if(e.key==="v"&&e.ctrlKey||e.key==="Insert"&&e.shiftKey)return!1;if(["Shift","Control","Meta","Alt","Process"].includes(e.key))return!1;const r=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!r?!!Qu(this._recorder.deepEventTarget(e)):!0}_updateModelForHoveredElement(){if(this._installObserverIfNeeded(),this._performingActions.size)return;if(!this._hoveredElement||!this._hoveredElement.isConnected){this._hoveredModel=null,this._hoveredElement=null,this._updateHighlight(!0);return}let{selector:e,elements:r}=this._recorder.injectedScript.generateSelector(this._hoveredElement,{testIdAttributeName:this._recorder.state.testIdAttributeName});const s=id(this._recorder.injectedScript,this._hoveredElement,e,r);s&&(e=s.selector,r=s.elements),!(this._hoveredModel&&this._hoveredModel.selector===e)&&(this._hoveredModel=e?{selector:e,elements:r,color:Ar.action}:null,this._updateHighlight(!0))}_updateHighlight(e){this._recorder.updateHighlight(this._hoveredModel,e)}}class L6{constructor(e){this._recorder=e}install(){this._recorder.clearHighlight()}uninstall(){}onClick(e){const r=this._recorder.deepEventTarget(e);if(Zu(r)||e.button===2&&e.type==="auxclick"||this._shouldIgnoreMouseEvent(e))return;const s=Qu(r),{ariaSnapshot:o,selector:l,ref:u,scoped:d}=this._ariaSnapshot(r);if(s&&e.detail===1){this._recorder.recordAction({name:s.checked?"check":"uncheck",selector:l,ref:u,scoped:d,signals:[],ariaSnapshot:o,timestamp:Ye(this._recorder)});return}this._recorder.recordAction({name:"click",selector:l,ref:u,scoped:d,ariaSnapshot:o,position:Wu(e),signals:[],button:pv(e),modifiers:Ul(e),clickCount:e.detail,timestamp:Ye(this._recorder)})}onContextMenu(e){const r=this._recorder.deepEventTarget(e),{ariaSnapshot:s,selector:o,ref:l,scoped:u}=this._ariaSnapshot(r);this._recorder.recordAction({name:"click",selector:o,ref:l,scoped:u,ariaSnapshot:s,position:Wu(e),signals:[],button:"right",modifiers:Ul(e),clickCount:1,timestamp:Ye(this._recorder)})}onInput(e){const r=this._recorder.deepEventTarget(e),{ariaSnapshot:s,selector:o,ref:l,scoped:u}=this._ariaSnapshot(r);if(Zu(r)){this._recorder.recordAction({name:"fill",selector:o,ref:l,scoped:u,ariaSnapshot:s,signals:[],text:r.value,timestamp:Ye(this._recorder)});return}if(["INPUT","TEXTAREA"].includes(r.nodeName)||r.isContentEditable){if(r.nodeName==="INPUT"&&["checkbox","radio"].includes(r.type.toLowerCase()))return;this._recorder.recordAction({name:"fill",ref:l,selector:o,scoped:u,ariaSnapshot:s,signals:[],text:r.isContentEditable?r.innerText:r.value,isPassword:SC(r)?!0:void 0,timestamp:Ye(this._recorder)});return}if(r.nodeName==="SELECT"){const d=r;this._recorder.recordAction({name:"select",selector:o,ref:l,scoped:u,ariaSnapshot:s,options:[...d.selectedOptions].map(m=>m.value),signals:[],timestamp:Ye(this._recorder)});return}}onKeyDown(e){if(!this._shouldGenerateKeyPressFor(e))return;const r=this._recorder.deepEventTarget(e),{ariaSnapshot:s,selector:o,ref:l,scoped:u}=this._ariaSnapshot(r);if(e.key===" "){const d=Qu(r);if(d&&e.detail===0){this._recorder.recordAction({name:d.checked?"uncheck":"check",selector:o,ref:l,scoped:u,ariaSnapshot:s,signals:[],timestamp:Ye(this._recorder)});return}}this._recorder.recordAction({name:"press",selector:o,ref:l,scoped:u,ariaSnapshot:s,signals:[],key:e.key,modifiers:Ul(e),timestamp:Ye(this._recorder)})}_shouldIgnoreMouseEvent(e){const r=this._recorder.deepEventTarget(e),s=r.nodeName;return!!(s==="SELECT"||s==="OPTION"||s==="INPUT"&&["date","range"].includes(r.type))}_shouldGenerateKeyPressFor(e){if(typeof e.key!="string"||e.key==="Enter"&&(this._recorder.deepEventTarget(e).nodeName==="TEXTAREA"||this._recorder.deepEventTarget(e).isContentEditable)||["Backspace","Delete","AltGraph"].includes(e.key)||e.key==="@"&&e.code==="KeyL")return!1;if(navigator.platform.includes("Mac")){if(e.key==="v"&&e.metaKey)return!1}else if(e.key==="v"&&e.ctrlKey||e.key==="Insert"&&e.shiftKey)return!1;if(["Shift","Control","Meta","Alt","Process"].includes(e.key))return!1;const r=e.ctrlKey||e.altKey||e.metaKey;return e.key.length===1&&!r?!this._isEditable(this._recorder.deepEventTarget(e)):!0}_isEditable(e){return!!(e.nodeName==="TEXTAREA"||e.nodeName==="INPUT"||e.isContentEditable)}_ariaSnapshot(e){const{ariaSnapshot:r,refs:s}=this._recorder.injectedScript.ariaSnapshotForRecorder(),o=e?s.get(e):void 0;let l,u;if(e){const d=M6(this._recorder.injectedScript,e,this._recorder.state.testIdAttributeName);l=d.selector,u=d.scoped}return{ariaSnapshot:r,selector:l,ref:o,scoped:u}}}class Pb{constructor(e,r){this._hoverHighlight=null,this._action=null,this._recorder=e,this._textCache=new Map,this._kind=r,this._dialog=new wC(e)}cursor(){return"pointer"}uninstall(){this._dialog.close(),this._hoverHighlight=null}onClick(e){ft(e),this._kind==="value"?this._commitAssertValue():this._dialog.isShowing()||this._showDialog()}onMouseDown(e){const r=this._recorder.deepEventTarget(e);this._elementHasValue(r)?e.preventDefault():ft(e)}onPointerDown(e){ft(e)}onPointerUp(e){var s;const r=(s=this._hoverHighlight)==null?void 0:s.elements[0];this._kind==="value"&&r&&(r.nodeName==="INPUT"||r.nodeName==="SELECT")&&r.disabled&&this._commitAssertValue()}onMouseMove(e){var s;if(this._dialog.isShowing())return;const r=this._recorder.deepEventTarget(e);if(((s=this._hoverHighlight)==null?void 0:s.elements[0])!==r){if(this._kind==="text"||this._kind==="snapshot")this._hoverHighlight=this._recorder.injectedScript.utils.elementText(this._textCache,r).full?{elements:[r],selector:"",color:Ar.assert}:null;else if(this._elementHasValue(r)){const o=this._recorder.injectedScript.generateSelector(r,{testIdAttributeName:this._recorder.state.testIdAttributeName});this._hoverHighlight={selector:o.selector,elements:o.elements,color:Ar.assert}}else this._hoverHighlight=null;this._recorder.updateHighlight(this._hoverHighlight,!0)}}onKeyDown(e){e.key==="Escape"&&this._recorder.setMode("recording"),ft(e)}onScroll(e){this._recorder.updateHighlight(this._hoverHighlight,!1)}_elementHasValue(e){return e.nodeName==="TEXTAREA"||e.nodeName==="SELECT"||e.nodeName==="INPUT"&&!["button","image","reset","submit"].includes(e.type)}_generateAction(){var r;this._textCache.clear();const e=(r=this._hoverHighlight)==null?void 0:r.elements[0];if(!e)return null;if(this._kind==="value"){if(!this._elementHasValue(e))return null;const{selector:s}=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName});return e.nodeName==="INPUT"&&["checkbox","radio"].includes(e.type.toLowerCase())?{name:"assertChecked",selector:s,signals:[],checked:!e.checked,timestamp:Ye(this._recorder)}:{name:"assertValue",selector:s,signals:[],value:e.value,timestamp:Ye(this._recorder)}}else if(this._kind==="snapshot"){const s=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!0});return this._hoverHighlight={selector:s.selector,elements:s.elements,color:Ar.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:"assertSnapshot",selector:this._hoverHighlight.selector,signals:[],ariaSnapshot:this._recorder.injectedScript.ariaSnapshot(e,{mode:"codegen"}),timestamp:Ye(this._recorder)}}else{const s=e.closest("td"),o=s&&s.closest("tr");let l=this._recorder.injectedScript.generateSelector(e,{testIdAttributeName:this._recorder.state.testIdAttributeName,forTextExpect:!o});const u=id(this._recorder.injectedScript,e,l.selector,l.elements);return u&&(l={selector:u.selector,selectors:[u.selector],elements:u.elements}),this._hoverHighlight={selector:l.selector,elements:l.elements,color:Ar.assert},this._recorder.updateHighlight(this._hoverHighlight,!0),{name:"assertText",selector:this._hoverHighlight.selector,signals:[],text:this._recorder.injectedScript.utils.elementText(this._textCache,e).normalized,substring:!0,timestamp:Ye(this._recorder)}}}_renderValue(e){return(e==null?void 0:e.name)==="assertText"?this._recorder.injectedScript.utils.normalizeWhiteSpace(e.text):(e==null?void 0:e.name)==="assertChecked"?String(e.checked):(e==null?void 0:e.name)==="assertValue"?e.value:(e==null?void 0:e.name)==="assertSnapshot"?e.ariaSnapshot:""}_commit(){!this._action||!this._dialog.isShowing()||(this._dialog.close(),this._recorder.recordAction(this._action),this._recorder.setMode("recording"),A6())}_showDialog(){var e,r,s,o;(e=this._hoverHighlight)!=null&&e.elements[0]&&(N6(),this._action=this._generateAction(),((r=this._action)==null?void 0:r.name)==="assertText"?this._showTextDialog(this._action):((s=this._action)==null?void 0:s.name)==="assertSnapshot"&&(this._recorder.recordAction(this._action),this._recorder.setMode("recording"),(o=this._recorder.overlay)==null||o.flashToolSucceeded("assertingSnapshot")))}_showTextDialog(e){const r=this._recorder.document.createElement("textarea");r.setAttribute("spellcheck","false"),r.value=this._renderValue(e),r.classList.add("text-editor");const s=()=>{var g;const d=this._recorder.injectedScript.utils.normalizeWhiteSpace(r.value),m=(g=this._hoverHighlight)==null?void 0:g.elements[0];if(!m)return;e.text=d;const p=this._recorder.injectedScript.utils.elementText(this._textCache,m).normalized,v=d&&p.includes(d);r.classList.toggle("does-not-match",!v)};r.addEventListener("input",s);const l=this._dialog.show({label:"Assert that element contains text",body:r,onCommit:()=>this._commit()}),u=this._recorder.highlight.tooltipPosition(this._recorder.highlight.firstBox(),l);this._dialog.moveTo(u.anchorTop,u.anchorLeft),r.focus()}_commitAssertValue(){var r;if(this._kind!=="value")return;const e=this._generateAction();e&&(this._recorder.recordAction(e),this._recorder.setMode("recording"),(r=this._recorder.overlay)==null||r.flashToolSucceeded("assertingValue"))}}class U6{constructor(e){this._listeners=[],this._offsetX=0,this._measure={width:0,height:0},this._snapshotToggleTime=null,this._recorder=e;const r=this._recorder.document;this._overlayElement=r.createElement("x-pw-overlay");const s=r.createElement("x-pw-tools-list");this._overlayElement.appendChild(s),this._dragHandle=r.createElement("x-pw-tool-gripper"),this._dragHandle.appendChild(r.createElement("x-div")),s.appendChild(this._dragHandle),this._recordToggle=this._recorder.document.createElement("x-pw-tool-item"),this._recordToggle.title="Record",this._recordToggle.classList.add("record"),this._recordToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._recordToggle),this._pickLocatorToggle=this._recorder.document.createElement("x-pw-tool-item"),this._pickLocatorToggle.title="Pick locator",this._pickLocatorToggle.classList.add("pick-locator"),this._pickLocatorToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._pickLocatorToggle),this._modularityToggle=this._recorder.document.createElement("x-pw-tool-item"),this._modularityToggle.title="Mark block",this._modularityToggle.classList.add("modular"),this._modularityToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._modularityToggle),this._assertApiPayloadToggle=this._recorder.document.createElement("x-pw-tool-item"),this._assertApiPayloadToggle.title="Assert API Request",this._assertApiPayloadToggle.classList.add("assert-api-payload"),this._assertApiPayloadToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._assertApiPayloadToggle),this._fileUploadToggle=this._recorder.document.createElement("x-pw-tool-item"),this._fileUploadToggle.title="Upload file",this._fileUploadToggle.classList.add("file-upload"),this._fileUploadToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._fileUploadToggle),this._dragRecordToggle=this._recorder.document.createElement("x-pw-tool-item"),this._dragRecordToggle.title="Drag and drop",this._dragRecordToggle.classList.add("drag-record"),this._dragRecordToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._dragRecordToggle),this._areaSelectToggle=this._recorder.document.createElement("x-pw-tool-item"),this._areaSelectToggle.title="Select area",this._areaSelectToggle.classList.add("area-select"),this._areaSelectToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._areaSelectToggle),this._sketchToolToggle=this._recorder.document.createElement("x-pw-tool-item"),this._sketchToolToggle.title="Sketch Tool",this._sketchToolToggle.classList.add("sketch-tool"),this._sketchToolToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._sketchToolToggle),this._gojsLinkToggle=this._recorder.document.createElement("x-pw-tool-item"),this._gojsLinkToggle.title="GoJS Link (click source node, then target node)",this._gojsLinkToggle.classList.add("gojs-link"),this._gojsLinkToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._gojsLinkToggle),this._pointerEventsToggle=this._recorder.document.createElement("x-pw-tool-item"),this._pointerEventsToggle.title="Nested element selection",this._pointerEventsToggle.classList.add("pointer-events"),this._pointerEventsToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._pointerEventsToggle),this._assertVisibilityToggle=this._recorder.document.createElement("x-pw-tool-item"),this._assertVisibilityToggle.title="Assert visibility",this._assertVisibilityToggle.classList.add("visibility"),this._assertVisibilityToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._assertVisibilityToggle),this._assertTextToggle=this._recorder.document.createElement("x-pw-tool-item"),this._assertTextToggle.title="Assert text",this._assertTextToggle.classList.add("text"),this._assertTextToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._assertTextToggle),this._assertValuesToggle=this._recorder.document.createElement("x-pw-tool-item"),this._assertValuesToggle.title="Assert value",this._assertValuesToggle.classList.add("value"),this._assertValuesToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._assertValuesToggle),this._tableSnapshotToggle=this._recorder.document.createElement("x-pw-tool-item"),this._tableSnapshotToggle.title="Assert table cell",this._tableSnapshotToggle.classList.add("table"),this._tableSnapshotToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._tableSnapshotToggle),this._assertVSnapshotToggle=this._recorder.document.createElement("x-pw-tool-item"),this._assertVSnapshotToggle.title="Snapshot: Double-toggle for page, Click for element, Drag for region",this._assertVSnapshotToggle.classList.add("visual-snapshot"),this._assertVSnapshotToggle.appendChild(this._recorder.document.createElement("x-div")),s.appendChild(this._assertVSnapshotToggle),this._assertSnapshotToggle=this._recorder.document.createElement("x-pw-tool-item"),this._jsonMarkerButton=this._recorder.document.createElement("x-pw-tool-item"),this._updateVisualPosition(),this._refreshListeners()}_refreshListeners(){EC(this._listeners),this._listeners=[xe(this._dragHandle,"mousedown",e=>{this._dragState={offsetX:this._offsetX,dragStart:{x:e.clientX,y:0}}}),xe(this._recordToggle,"click",()=>{this._recordToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="none"||this._recorder.state.mode==="standby"||this._recorder.state.mode==="inspecting"?"recording":"standby")}),xe(this._pickLocatorToggle,"click",()=>{if(this._pickLocatorToggle.classList.contains("disabled"))return;const e={inspecting:"standby",none:"inspecting",standby:"inspecting",recording:"recording-inspecting","recording-inspecting":"recording",assertingText:"recording-inspecting",assertingVisibility:"recording-inspecting",assertingValue:"recording-inspecting",assertingSnapshot:"recording-inspecting",assertingVSnapshot:"recording-inspecting",assertingTableCell:"recording-inspecting",recordingDrag:"recording",recordingGoJSLink:"recording",recordingArea:"recording",recordingFileUpload:"recording",recordingTableSnapshot:"recording",recordingDomSnapshot:"recording",recordingSketchTool:"recording"};this._recorder.setMode(e[this._recorder.state.mode])}),xe(this._assertVisibilityToggle,"click",()=>{this._assertVisibilityToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="assertingVisibility"?"recording":"assertingVisibility")}),xe(this._assertTextToggle,"click",()=>{this._assertTextToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="assertingText"?"recording":"assertingText")}),xe(this._assertValuesToggle,"click",()=>{this._assertValuesToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="assertingValue"?"recording":"assertingValue")}),xe(this._assertSnapshotToggle,"click",()=>{this._assertSnapshotToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="assertingSnapshot"?"recording":"assertingSnapshot")}),xe(this._assertVSnapshotToggle,"click",()=>{if(this._assertVSnapshotToggle.classList.contains("disabled"))return;if(this._recorder.state.mode==="assertingVSnapshot"){const s=Date.now();this._snapshotToggleTime&&s-this._snapshotToggleTime<1500&&oa.getNextCounter(this._recorder,"page").then(o=>{const l={name:"visualSnapshot",snapshotType:"page",filename:`page-${String(o).padStart(3,"0")}.png`,fullPage:!0,signals:[],timestamp:Ye(this._recorder)};this._recorder.recordAction(l),this.flashToolSucceeded("assertingVSnapshot")}),this._snapshotToggleTime=null,this._recorder.setMode("recording")}else this._snapshotToggleTime=Date.now(),this._recorder.setMode("assertingVSnapshot")}),xe(this._tableSnapshotToggle,"click",()=>{this._tableSnapshotToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="assertingTableCell"?"recording":"assertingTableCell")}),xe(this._fileUploadToggle,"click",()=>{this._fileUploadToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="recordingFileUpload"?"recording":"recordingFileUpload")}),xe(this._pointerEventsToggle,"click",()=>{this._recorder.togglePointerEventsOverride()}),xe(this._modularityToggle,"click",()=>{if(this._modularityToggle.classList.contains("disabled"))return;this._recorder.modularityToggled=!this._recorder.modularityToggled;let e="endBlock";this._recorder.modularityToggled&&(e="beginBlock");const r={name:e,timestamp:Ye(this._recorder),sequence:Math.floor(Math.random()*1e6),signals:[]};this._recorder.recordAction(r)}),xe(this._assertApiPayloadToggle,"click",()=>{if(this._assertApiPayloadToggle.classList.contains("disabled"))return;const e={name:"assertApiRequest",timestamp:Ye(this._recorder),signals:[]};this._recorder.recordAction(e),this._assertApiPayloadToggle.classList.add("toggled"),setTimeout(()=>this._assertApiPayloadToggle.classList.remove("toggled"),1500)}),xe(this._dragRecordToggle,"click",()=>{this._dragRecordToggle.classList.contains("disabled")||this._recorder.setMode(this._recorder.state.mode==="recordingDrag"?"recording":"recordingDrag")}),xe(this._areaSelectToggle,"click",()=>{this._recorder.state.mode==="recordingArea"?this._recorder.setMode("recording"):this._recorder.setMode("recordingArea")}),xe(this._sketchToolToggle,"click",()=>{this._sketchToolToggle.classList.contains("disabled")||(this._recorder.state.mode==="recordingSketchTool"?this._recorder.setMode("recording"):this._recorder.setMode("recordingSketchTool"))}),xe(this._gojsLinkToggle,"click",()=>{if(!this._gojsLinkToggle.classList.contains("disabled")){const e=this._recorder.state.mode;this._recorder.setMode(e==="recordingGoJSLink"?"recording":"recordingGoJSLink")}})]}install(){this._recorder.highlight.appendChild(this._overlayElement),this._refreshListeners(),this._updateVisualPosition();const e=r=>{const s=r.target;s&&(s===this._dragHandle||this._dragHandle.contains(s))&&(r.type==="mousedown"||r.type==="mousemove"||r.type==="mouseup"||r.type==="pointerdown"||r.type==="pointermove"||r.type==="pointerup")||(r.stopPropagation(),r.preventDefault())};this._listeners.push(xe(this._overlayElement,"mousedown",e,!1),xe(this._overlayElement,"mouseup",e,!1),xe(this._overlayElement,"mousemove",e,!1),xe(this._overlayElement,"pointerdown",e,!1),xe(this._overlayElement,"pointerup",e,!1),xe(this._overlayElement,"pointermove",e,!1),xe(this._overlayElement,"click",e,!1),xe(this._overlayElement,"dblclick",e,!1),xe(this._overlayElement,"contextmenu",e,!1),xe(this._overlayElement,"focus",e,!1),xe(this._overlayElement,"blur",e,!1))}contains(e){return this._recorder.injectedScript.utils.isInsideScope(this._overlayElement,e)}setUIState(e){const r=e.mode==="recording"||e.mode==="assertingText"||e.mode==="assertingVisibility"||e.mode==="assertingValue"||e.mode==="assertingSnapshot"||e.mode==="assertingVSnapshot"||e.mode==="assertingTableCell"||e.mode==="recording-inspecting"||e.mode==="recordingDrag"||e.mode==="recordingGoJSLink"||e.mode==="recordingArea"||e.mode==="recordingFileUpload"||e.mode==="recordingSketchTool";this._recordToggle.classList.toggle("toggled",r),this._recordToggle.title=r?"Stop Recording":"Start Recording",this._pickLocatorToggle.classList.toggle("toggled",e.mode==="inspecting"||e.mode==="recording-inspecting"),this._pickLocatorToggle.classList.toggle("disabled",e.mode==="recordingArea"),this._assertVisibilityToggle.classList.toggle("toggled",e.mode==="assertingVisibility"),this._assertVisibilityToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._assertTextToggle.classList.toggle("toggled",e.mode==="assertingText"),this._assertTextToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._assertValuesToggle.classList.toggle("toggled",e.mode==="assertingValue"),this._assertValuesToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._assertSnapshotToggle.classList.toggle("toggled",e.mode==="assertingSnapshot"),this._assertSnapshotToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._assertVSnapshotToggle.classList.toggle("toggled",e.mode==="assertingVSnapshot"),this._assertVSnapshotToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._tableSnapshotToggle.classList.toggle("toggled",e.mode==="assertingTableCell"),this._tableSnapshotToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._fileUploadToggle.classList.toggle("toggled",e.mode==="recordingFileUpload"),this._fileUploadToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._modularityToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._assertApiPayloadToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._dragRecordToggle.classList.toggle("toggled",e.mode==="recordingDrag"),this._dragRecordToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._areaSelectToggle.classList.toggle("toggled",e.mode==="recordingArea"),this._areaSelectToggle.classList.toggle("disabled",e.mode==="none"),this._sketchToolToggle.classList.toggle("toggled",e.mode==="recordingSketchTool"),this._sketchToolToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this._gojsLinkToggle.classList.toggle("toggled",e.mode==="recordingGoJSLink"),this._gojsLinkToggle.classList.toggle("disabled",e.mode==="none"||e.mode==="standby"||e.mode==="inspecting"||e.mode==="recordingArea"),this.updateToolbar(),this._offsetX!==e.overlay.offsetX&&(this._offsetX=e.overlay.offsetX,this._updateVisualPosition()),e.mode==="none"?this._hideOverlay():this._showOverlay()}updateToolbar(){this._pointerEventsToggle.classList.toggle("toggled",this._recorder.pointerEventsOverrideEnabled)}flashToolSucceeded(e){let r;e==="assertingVisibility"?r=this._assertVisibilityToggle:e==="assertingSnapshot"?r=this._assertSnapshotToggle:e==="assertingVSnapshot"?r=this._assertVSnapshotToggle:e==="assertingTableCell"?r=this._tableSnapshotToggle:e==="fileUpload"?r=this._fileUploadToggle:e==="recordingArea"?r=this._areaSelectToggle:e==="recordingTableSnapshot"?r=this._tableSnapshotToggle:e==="recordingSketchTool"?r=this._sketchToolToggle:r=this._assertValuesToggle,r.classList.add("succeeded"),this._recorder.injectedScript.utils.builtins.setTimeout(()=>r.classList.remove("succeeded"),2e3)}_hideOverlay(){this._overlayElement.setAttribute("hidden","true")}_showOverlay(){this._overlayElement.hasAttribute("hidden")&&(this._overlayElement.removeAttribute("hidden"),this._updateVisualPosition())}_updateVisualPosition(){this._measure=this._overlayElement.getBoundingClientRect(),this._overlayElement.style.left=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2+this._offsetX+"px"}onMouseMove(e){if(!e.buttons)return this._dragState=void 0,!1;if(this._dragState){this._offsetX=this._dragState.offsetX+e.clientX-this._dragState.dragStart.x;const r=(this._recorder.injectedScript.window.innerWidth-this._measure.width)/2-10;return this._offsetX=Math.max(-r,Math.min(r,this._offsetX)),this._updateVisualPosition(),this._recorder.setOverlayState({offsetX:this._offsetX}),ft(e),!0}return!1}onMouseUp(e){return this._dragState?(ft(e),!0):!1}onClick(e){return this._dragState?(this._dragState=void 0,ft(e),!0):!1}onDblClick(e){return!1}updateModularityToggleState(e){this._modularityToggle.classList.toggle("toggled",e)}}const us=class us{constructor(e,r){var s,o;this._listeners=[],this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON="undefined",this.state={mode:"none",testIdAttributeName:"data-testid",language:"javascript",overlay:{offsetX:0},modularityToggled:!1},this._delegate={},this._modularityToggled=!1,this._recentHoverTrail=[],this._previousUserActionName=void 0,this.document=e.document,this.injectedScript=e,this.highlight=e.createHighlight(),this._nestedElementHandler=new i6(this.document),this._modalHandler=new C6(this.document),this._modalHandler.setOnModalOpen(({selector:l})=>{this.recordAction({name:"modalOpen",selector:l,signals:[],timestamp:Ye(this)})}),this._modalHandler.setOnModalClose(({selector:l})=>{this.recordAction({name:"modalClose",selector:l,signals:[],timestamp:Ye(this)})}),this._iframeHandler=new R6(this.document),this._iframeHandler.setOnIframeLoad(({selector:l})=>{this.recordAction({name:"iframeLoad",selector:l,signals:[],timestamp:Ye(this)})}),this._tools={none:new Ib,standby:new Ib,inspecting:new zb(this,!1),recording:(r==null?void 0:r.recorderMode)==="api"?new L6(this):new O6(this),"recording-inspecting":new zb(this,!1),assertingText:new Pb(this,"text"),assertingVisibility:new zb(this,!0),assertingValue:new Pb(this,"value"),assertingSnapshot:new Pb(this,"snapshot"),assertingVSnapshot:new oa(this),assertingTableCell:new b6(this),recordingDrag:new hv(this),recordingGoJSLink:new o6(this),recordingArea:new _6(this),recordingFileUpload:new c6(this),recordingTableSnapshot:new h6(this),recordingDomSnapshot:new E6(this),recordingSketchTool:new d6(this),replaying:new Ib},this._currentTool=this._tools.none,(o=(s=this._currentTool).install)==null||o.call(s),e.window.top===e.window&&(r==null?void 0:r.recorderMode)!=="api"&&(this.overlay=new U6(this),this.overlay.setUIState(this.state)),this._stylesheet=new e.window.CSSStyleSheet,this._stylesheet.replaceSync(`
892
+ body[data-pw-cursor=pointer] *, body[data-pw-cursor=pointer] *::after { cursor: pointer !important; }
893
+ body[data-pw-cursor=text] *, body[data-pw-cursor=text] *::after { cursor: text !important; }
894
+ body[data-pw-cursor=crosshair] *, body[data-pw-cursor=crosshair] *::after { cursor: crosshair !important; }
895
+ body[data-pw-cursor=grab] *, body[data-pw-cursor=grab] *::after { cursor: grab !important; }
896
+ `),this.installListeners(),this._installFileUploadHooks(),e.utils.cacheNormalizedWhitespaces(),e.isUnderTest&&(console.error("Recorder script ready for test"),e.window.__pw_recorderToggleNestedElements=()=>{this.togglePointerEventsOverride()}),e.consoleApi.install()}get modularityToggled(){return this._modularityToggled}set modularityToggled(e){this._modularityToggled=e;try{typeof window.__pw_recorderSetModularityToggled=="function"?window.__pw_recorderSetModularityToggled(e):console.warn("Modularity toggle binding not available yet, state may be out of sync")}catch(r){console.error("Failed to set modularity toggle on server:",r)}}get pointerEventsOverrideEnabled(){return this._nestedElementHandler.enabled}togglePointerEventsOverride(){var e;this._nestedElementHandler.toggle(),(e=this.overlay)==null||e.updateToolbar()}installListeners(){var s,o;EC(this._listeners),this._listeners=[xe(this.document,"click",l=>this._onClick(l),!0),xe(this.document,"auxclick",l=>this._onClick(l),!0),xe(this.document,"dblclick",l=>this._onDblClick(l),!0),xe(this.document,"contextmenu",l=>this._onContextMenu(l),!0),xe(this.document,"dragstart",l=>this._onDragStart(l),!0),xe(this.document,"input",l=>this._onInput(l),!0),xe(this.document,"keydown",l=>this._onKeyDown(l),!0),xe(this.document,"keyup",l=>this._onKeyUp(l),!0),xe(this.document,"pointerdown",l=>this._onPointerDown(l),!0),xe(this.document,"pointermove",l=>this._onPointerMove(l),!0),xe(this.document,"pointerup",l=>this._onPointerUp(l),!0),xe(this.document,"mousedown",l=>this._onMouseDown(l),!0),xe(this.document,"mouseup",l=>this._onMouseUp(l),!0),xe(this.document,"mousemove",l=>this._onMouseMove(l),!0),xe(this.document,"mouseleave",l=>this._onMouseLeave(l),!0),xe(this.document,"mouseenter",l=>this._onMouseEnter(l),!0),xe(this.document,"focus",l=>this._onFocus(l),!0),xe(this.document,"scroll",l=>this._onScroll(l),!0)],this.highlight.install();let e;const r=()=>{if(this.highlight.install(),this.overlay){const l=this.overlay._overlayElement,u=this.highlight._glassPaneElement,d=u&&u.isConnected,m=l&&!l.isConnected;d&&m&&this.overlay.install()}e=this.injectedScript.utils.builtins.setTimeout(r,500)};if(e=this.injectedScript.utils.builtins.setTimeout(r,500),this._listeners.push(()=>this.injectedScript.utils.builtins.clearTimeout(e)),this.highlight.appendChild(xC(this.document,ZL)),this.overlay){const l=this.highlight._glassPaneElement;l&&l.isConnected&&this.overlay.install()}(o=(s=this._currentTool)==null?void 0:s.install)==null||o.call(s),this.document.adoptedStyleSheets.push(this._stylesheet)}_installFileUploadHooks(){u6(this,this._listeners)}_switchCurrentTool(){var s,o,l,u,d,m,p,v;const e=this._tools[this.state.mode];if(e===this._currentTool)return;if((o=(s=this._currentTool).uninstall)==null||o.call(s),this.clearHighlight(),this._currentTool=e,(u=(l=this._currentTool).install)==null||u.call(l),this.state.mode==="recording"){const g=_C(this.document);g&&g!==this.document.body&&g!==this.document.documentElement&&((m=(d=this._currentTool).onFocus)==null||m.call(d,new FocusEvent("focus")))}const r=(p=e.cursor)==null?void 0:p.call(e);r&&((v=this.injectedScript.document.body)==null||v.setAttribute("data-pw-cursor",r))}setUIState(e,r){var l,u;this._delegate=r,e.actionPoint&&this.state.actionPoint&&e.actionPoint.x===this.state.actionPoint.x&&e.actionPoint.y===this.state.actionPoint.y||!e.actionPoint&&!this.state.actionPoint||(e.actionPoint?this.highlight.showActionPoint(e.actionPoint.x,e.actionPoint.y):this.highlight.hideActionPoint()),e.modularityToggled!==this._modularityToggled&&(this._modularityToggled=e.modularityToggled,(l=this.overlay)==null||l.updateModularityToggleState(this._modularityToggled)),this.state=e,this.highlight.setLanguage(e.language),this._switchCurrentTool(),(u=this.overlay)==null||u.setUIState(e),e.mode==="recording"?(this._modalHandler.enable(),this._iframeHandler.enable()):(this._modalHandler.disable(),this._iframeHandler.disable());let s="noop";if(e.actionSelector!==this._lastHighlightedSelector){const d=e.actionSelector?j6(this.injectedScript,e.language,e.actionSelector,this.document):null;s=d!=null&&d.length?d:"clear",this._lastHighlightedSelector=d!=null&&d.length?e.actionSelector:void 0}const o=JSON.stringify(e.ariaTemplate);if(this._lastHighlightedAriaTemplateJSON!==o){const d=e.ariaTemplate?this.injectedScript.getAllElementsMatchingExpectAriaTemplate(this.document,e.ariaTemplate):[];if(d.length){const m=d.length>1?Ar.multiple:Ar.single;s=d.map(p=>({element:p,color:m})),this._lastHighlightedAriaTemplateJSON=o}else this._lastHighlightedSelector||(s="clear"),this._lastHighlightedAriaTemplateJSON="undefined"}s==="clear"?this.highlight.clearHighlight():s!=="noop"&&this.highlight.updateHighlight(s)}clearHighlight(){this.updateHighlight(null,!1)}_onClick(e){var r,s,o;e.isTrusted&&((r=this.overlay)!=null&&r.onClick(e)||this._ignoreOverlayEvent(e)||(o=(s=this._currentTool).onClick)==null||o.call(s,e))}_onDblClick(e){var r,s,o;e.isTrusted&&((r=this.overlay)!=null&&r.onDblClick(e)||this._ignoreOverlayEvent(e)||(o=(s=this._currentTool).onDblClick)==null||o.call(s,e))}_onContextMenu(e){var r,s;e.isTrusted&&((s=(r=this._currentTool).onContextMenu)==null||s.call(r,e))}_onDragStart(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onDragStart)==null||s.call(r,e))}_onPointerDown(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onPointerDown)==null||s.call(r,e))}_onPointerUp(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onPointerUp)==null||s.call(r,e))}_onPointerMove(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onPointerMove)==null||s.call(r,e))}_onMouseDown(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onMouseDown)==null||s.call(r,e))}_onMouseUp(e){var r,s,o;e.isTrusted&&((r=this.overlay)!=null&&r.onMouseUp(e)||this._ignoreOverlayEvent(e)||(o=(s=this._currentTool).onMouseUp)==null||o.call(s,e))}_onMouseMove(e){var r,s,o;e.isTrusted&&((r=this.overlay)!=null&&r.onMouseMove(e)||this._ignoreOverlayEvent(e)||(this._trackHoverTrail(e),(o=(s=this._currentTool).onMouseMove)==null||o.call(s,e)))}_onMouseEnter(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onMouseEnter)==null||s.call(r,e))}_trackHoverTrail(e){if(this.state.mode!=="recording")return;const r=this.deepEventTarget(e);if(!r)return;const s=H6(r,this.document);if(!s)return;const o=performance.now(),l=this._recentHoverTrail[this._recentHoverTrail.length-1];if(l&&l.element===s)return;this._recentHoverTrail.push({element:s,timestamp:o});const u=o-us._HOVER_TRAIL_LOOKBACK_MS;for(;this._recentHoverTrail.length>0&&this._recentHoverTrail[0].timestamp<u;)this._recentHoverTrail.shift();this._recentHoverTrail.length>us._HOVER_TRAIL_MAX&&this._recentHoverTrail.splice(0,this._recentHoverTrail.length-us._HOVER_TRAIL_MAX)}_onMouseLeave(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onMouseLeave)==null||s.call(r,e))}_onFocus(e){var r,s;this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onFocus)==null||s.call(r,e)}_onScroll(e){var r,s;e.isTrusted&&(this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON="undefined",this.highlight.hideActionPoint(),(s=(r=this._currentTool).onScroll)==null||s.call(r,e))}_onInput(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onInput)==null||s.call(r,e))}_onKeyDown(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onKeyDown)==null||s.call(r,e))}_onKeyUp(e){var r,s;e.isTrusted&&(this._ignoreOverlayEvent(e)||(s=(r=this._currentTool).onKeyUp)==null||s.call(r,e))}updateHighlight(e,r){this._lastHighlightedSelector=void 0,this._lastHighlightedAriaTemplateJSON="undefined",this._updateHighlight(e,r)}_updateHighlight(e,r){var o,l;let s=e==null?void 0:e.tooltipText;s===void 0&&(e!=null&&e.selector)&&(s=this.injectedScript.utils.asLocator(this.state.language,e.selector)),e?this.highlight.updateHighlight(e.elements.map(u=>({element:u,color:e.color,tooltipText:s}))):this.highlight.clearHighlight(),r&&((l=(o=this._delegate).highlightUpdated)==null||l.call(o))}_ignoreOverlayEvent(e){return e.composedPath().some(r=>(r.nodeName||"").toLowerCase()==="x-pw-glass")}deepEventTarget(e){var r;for(const s of e.composedPath())if(!((r=this.overlay)!=null&&r.contains(s)))return s;return e.composedPath()[0]}setMode(e){var r,s;(s=(r=this._delegate).setMode)==null||s.call(r,e)}_captureAutoExpectSnapshot(){const e=this.injectedScript.document.documentElement;return e?this.injectedScript.utils.generateAriaTree(e,{mode:"autoexpect"}):void 0}async performAction(e){var r,s;this._decorateUserAction(e),await((s=(r=this._delegate).performAction)==null?void 0:s.call(r,e).catch(()=>{}))}_decorateUserAction(e){var o;const r=this._lastActionAutoexpectSnapshot;if(this._lastActionAutoexpectSnapshot=this._captureAutoExpectSnapshot(),V6(e)||!this._lastActionAutoexpectSnapshot)return;const s=this.injectedScript.utils.findNewElement(r==null?void 0:r.root,(o=this._lastActionAutoexpectSnapshot)==null?void 0:o.root);if(!("preconditionSelector"in e)||e.preconditionSelector===void 0){const l=e;l.preconditionSelector=s?this.injectedScript.generateSelector(s,{testIdAttributeName:this.state.testIdAttributeName}).selector:void 0,"selector"in e&&l.preconditionSelector===l.selector&&(l.preconditionSelector=void 0)}e.name==="click"&&e.preconditionSelector&&s&&this._maybeEmitFlyoutHoverBeforeClick(e,s),e.name==="click"&&this._maybeEmitRowRevealHoverBeforeClick(e),this._previousUserActionName=e.name}_maybeEmitRowRevealHoverBeforeClick(e){let r=null;try{const p=this.injectedScript.parseSelector(e.selector);r=this.injectedScript.querySelectorAll(p,this.document)[0]??null}catch{return}if(!r)return;const s=r.closest(us._REVEAL_CONTAINER_SELECTOR);if(!s)return;const o=r.closest('button, [role="button"], [role="menuitem"]');if(!o||!s.contains(o))return;const l=this._findRevealHoverTarget(s)??s;let u;try{u=this.injectedScript.generateSelector(l,{testIdAttributeName:this.state.testIdAttributeName}).selector}catch{return}if(!u)return;const d=parseInt(e.timestamp,10),m={name:"hover",selector:u,signals:[],timestamp:Number.isFinite(d)?(d-1).toString():e.timestamp};this._delegate.recordAction&&this._delegate.recordAction(m).catch(()=>{})}_findRevealHoverTarget(e){const r=e.querySelectorAll('a[href], [role="link"], h1, h2, h3, h4, h5, h6');for(const s of Array.from(r)){const o=(s.innerText||s.textContent||"").trim();if(!(!o||o.length>80))return s}return null}_maybeEmitFlyoutHoverBeforeClick(e,r){if(this._recentHoverTrail.length===0||this._previousUserActionName==="click")return;let s=null;try{const o=this.injectedScript.parseSelector(e.selector);s=this.injectedScript.querySelectorAll(o,this.document)[0]??null}catch{return}if(!(!s||!r.contains(s)))for(let o=this._recentHoverTrail.length-1;o>=0;o--){const l=this._recentHoverTrail[o].element;if(!l.isConnected||l===s||s.contains(l)||l.contains(s)||r.contains(l)||l.contains(r))continue;const u=this.injectedScript.generateSelector(l,{testIdAttributeName:this.state.testIdAttributeName});if(!u.selector)continue;const d=parseInt(e.timestamp,10),m={name:"hover",selector:u.selector,signals:[],timestamp:Number.isFinite(d)?(d-1).toString():e.timestamp};this._delegate.recordAction&&this._delegate.recordAction(m).catch(()=>{}),this._recentHoverTrail=[];return}}recordAction(e){this._decorateUserAction(e),this._delegate.recordAction?this._delegate.recordAction(e):console.warn("[Recorder] No delegate.recordAction available!")}setOverlayState(e){var r,s;(s=(r=this._delegate).setOverlayState)==null||s.call(r,e)}elementPicked(e,r){var o,l;const s=this.injectedScript.ariaSnapshot(r.elements[0],{mode:"expect"});(l=(o=this._delegate).elementPicked)==null||l.call(o,{selector:e,ariaSnapshot:s})}};us._HOVER_TRAIL_MAX=20,us._HOVER_TRAIL_LOOKBACK_MS=1e4,us._REVEAL_CONTAINER_SELECTOR='[role="row"], [data-testid="grid-view-item"], [data-testid$="-item"], [data-testid$="-row"], [draggable="true"], tr';let mv=us,wC=class{constructor(e){this._dialogElement=null,this._recorder=e}isShowing(){return!!this._dialogElement}show(e){const r=this._recorder.document.createElement("x-pw-tool-item");r.title="Accept",r.classList.add("accept"),r.appendChild(this._recorder.document.createElement("x-div")),r.addEventListener("click",()=>{var E;return(E=e.onCommit)==null?void 0:E.call(e)});const s=this._recorder.document.createElement("x-pw-tool-item");s.title="Close",s.classList.add("cancel"),s.appendChild(this._recorder.document.createElement("x-div")),s.addEventListener("click",()=>{var E;this.close(),(E=e.onCancel)==null||E.call(e)}),this._dialogElement=this._recorder.document.createElement("x-pw-dialog"),e.autosize&&this._dialogElement.classList.add("autosize"),this._keyboardListener=E=>{var S;if(E.key==="Escape"){this.close(),(S=e.onCancel)==null||S.call(e);return}if(e.onCommit&&E.key==="Enter"&&(E.ctrlKey||E.metaKey)){this._dialogElement&&e.onCommit();return}},this._onGlassPaneClickHandler=E=>{var S;this._dialogElement&&E.target instanceof Node&&this._dialogElement.contains(E.target)||(this.close(),(S=e.onCancel)==null||S.call(e))},this._dialogElement.addEventListener("click",E=>E.stopPropagation());const o=this._recorder.document.createElement("x-pw-tools-list"),l=this._recorder.document.createElement("label");l.textContent=e.label,o.appendChild(l),o.appendChild(this._recorder.document.createElement("x-spacer")),e.onCommit&&o.appendChild(r),o.appendChild(s),this._dialogElement.appendChild(o);const u=this._recorder.document.createElement("x-pw-dialog-body");u.appendChild(e.body),this._dialogElement.appendChild(u),o.style.cursor="move";let d=0,m=0,p=0,v=0;const g=E=>{this._dialogElement&&(this._dialogElement.style.top=p+E.clientY-m+"px",this._dialogElement.style.left=v+E.clientX-d+"px")},y=()=>{this._recorder.document.removeEventListener("mousemove",g,!0),this._recorder.document.removeEventListener("mouseup",y,!0)};o.addEventListener("mousedown",E=>{E.target.closest("x-pw-tool-item")||(d=E.clientX,m=E.clientY,p=parseInt(this._dialogElement.style.top)||0,v=parseInt(this._dialogElement.style.left)||0,this._recorder.document.addEventListener("mousemove",g,!0),this._recorder.document.addEventListener("mouseup",y,!0),E.stopPropagation(),E.preventDefault())},!1);const w=E=>{E.stopPropagation()};return this._dialogElement.addEventListener("mousedown",w,!1),this._dialogElement.addEventListener("mouseup",w,!1),this._dialogElement.addEventListener("pointerdown",w,!1),this._dialogElement.addEventListener("pointerup",w,!1),this._dialogElement.addEventListener("click",w,!1),this._dialogElement.addEventListener("dblclick",w,!1),u.addEventListener("click",w,!1),this._recorder.highlight.appendChild(this._dialogElement),this._recorder.highlight.onGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.addEventListener("keydown",this._keyboardListener,!0),this._dialogElement}moveTo(e,r){this._dialogElement&&(this._dialogElement.style.top=e+"px",this._dialogElement.style.left=r+"px")}close(){this._dialogElement&&(this._dialogElement.remove(),this._recorder.highlight.offGlassPaneClick(this._onGlassPaneClickHandler),this._recorder.document.removeEventListener("keydown",this._keyboardListener),this._dialogElement=null)}};function _C(i){let e=i.activeElement;for(;e&&e.shadowRoot&&e.shadowRoot.activeElement;)e=e.shadowRoot.activeElement;return e}function Ul(i){return(i.altKey?1:0)|(i.ctrlKey?2:0)|(i.metaKey?4:0)|(i.shiftKey?8:0)}function pv(i){switch(i.which){case 1:return"left";case 2:return"middle";case 3:return"right"}return"left"}function Wu(i){if(i.target.nodeName==="CANVAS")return{x:i.offsetX,y:i.offsetY}}function ft(i){i.preventDefault(),i.stopPropagation(),i.stopImmediatePropagation()}function Qu(i){if(!i||i.nodeName!=="INPUT")return null;const e=i;return["checkbox","radio"].includes(e.type)?e:null}function Zu(i){return!i||i.nodeName!=="INPUT"?!1:i.type.toLowerCase()==="range"}function SC(i){return!i||i.nodeName!=="INPUT"?!1:i.type.toLowerCase()==="password"}function xe(i,e,r,s){return i.addEventListener(e,r,s),()=>{i.removeEventListener(e,r,s)}}function EC(i){for(const e of i)e();i.splice(0,i.length)}function j6(i,e,r,s){try{const o=i.parseSelector(r),l=i.querySelectorAll(o,s),u=l.length>1?Ar.multiple:Ar.single,d=i.utils.asLocator(e,r);return l.map((m,p)=>{const v=l.length>1?` [${p+1} of ${l.length}]`:"";return{element:m,color:u,tooltipText:d+v}})}catch{return[]}}function xC(i,{tagName:e,attrs:r,children:s}){const o=i.createElementNS("http://www.w3.org/2000/svg",e);if(r)for(const[l,u]of Object.entries(r))o.setAttribute(l,u);if(s)for(const l of s)o.appendChild(xC(i,l));return o}function V6(i){return i.name.startsWith("assert")}function $6(i){const e=i.tagName;if(e==="BUTTON"||e==="A"||i.hasAttribute("aria-haspopup")||i.hasAttribute("aria-expanded"))return!0;const r=i.getAttribute("role");return!!(r&&(r==="button"||r==="link"||r==="menuitem"||r==="tab"))}function H6(i,e){let r=i;for(;r&&r!==e.body&&r!==e.documentElement;){if($6(r))return r;r=r.parentElement}return null}function Ye(i){return i.injectedScript.utils.builtins.Date.now().toString()}function I6(i,e){i=i.replace(/AriaRole\s*\.\s*([\w]+)/g,(l,u)=>u.toLowerCase()).replace(/(get_by_role|getByRole)\s*\(\s*(?:["'`])([^'"`]+)['"`]/g,(l,u,d)=>`${u}(${d.toLowerCase()}`);const r=[];let s="";for(let l=0;l<i.length;++l){const u=i[l];if(u!=='"'&&u!=="'"&&u!=="`"&&u!=="/"){s+=u;continue}const d=i[l-1]==="r"||i[l]==="/";++l;let m="";for(;l<i.length;){if(i[l]==="\\"){d?(i[l+1]!==u&&(m+=i[l]),++l,m+=i[l]):(++l,i[l]==="n"?m+=`
897
+ `:i[l]==="r"?m+="\r":i[l]==="t"?m+=" ":m+=i[l]),++l;continue}if(i[l]!==u){m+=i[l++];continue}break}r.push({quote:u,text:m}),s+=(u==="/"?"r":"")+"$"+r.length}s=s.toLowerCase().replace(/get_by_alt_text/g,"getbyalttext").replace(/get_by_test_id/g,"getbytestid").replace(/get_by_([\w]+)/g,"getby$1").replace(/has_not_text/g,"hasnottext").replace(/has_text/g,"hastext").replace(/has_not/g,"hasnot").replace(/frame_locator/g,"framelocator").replace(/content_frame/g,"contentframe").replace(/[{}\s]/g,"").replace(/\bpage\./g,"").replace(/new\(\)/g,"").replace(/new[\w]+\.[\w]+options\(\)/g,"").replace(/\.set/g,",set").replace(/\.or_\(/g,"or(").replace(/\.and_\(/g,"and(").replace(/:/g,"=").replace(/,re\.ignorecase/g,"i").replace(/,pattern.case_insensitive/g,"i").replace(/,regexoptions.ignorecase/g,"i").replace(/re.compile\(([^)]+)\)/g,"$1").replace(/pattern.compile\(([^)]+)\)/g,"r$1").replace(/newregex\(([^)]+)\)/g,"r$1").replace(/string=/g,"=").replace(/regex=/g,"=").replace(/,,/g,",").replace(/,\)/g,")");const o=r.map(l=>l.quote).filter(l=>"'\"`".includes(l))[0];return{selector:TC(s,r,e),preferredQuote:o}}function oN(i){return[...i.matchAll(/\$\d+/g)].length}function lN(i,e){return i.replace(/\$(\d+)/g,(r,s)=>`$${s-e}`)}function TC(i,e,r){for(;;){const o=i.match(/filter\(,?(has=|hasnot=|sethas\(|sethasnot\()/);if(!o)break;const l=o.index+o[0].length;let u=0,d=l;for(;d<i.length&&(i[d]==="("?u++:i[d]===")"&&u--,!(u<0));d++);let m=i.substring(0,l),p=0;["sethas(","sethasnot("].includes(o[1])&&(p=1,m=m.replace(/sethas\($/,"has=").replace(/sethasnot\($/,"hasnot="));const v=oN(i.substring(0,l)),g=lN(i.substring(l,d),v),y=oN(g),w=e.slice(v,v+y),E=JSON.stringify(TC(g,w,r));i=m.replace(/=$/,"2=")+`$${v+1}`+lN(i.substring(d+p),y-1);const S=e.slice(0,v),T=e.slice(v+y);e=S.concat([{quote:'"',text:E}]).concat(T)}i=i.replace(/\,set([\w]+)\(([^)]+)\)/g,(o,l,u)=>","+l.toLowerCase()+"="+u.toLowerCase()).replace(/framelocator\(([^)]+)\)/g,"$1.internal:control=enter-frame").replace(/contentframe(\(\))?/g,"internal:control=enter-frame").replace(/locator\(([^)]+),hastext=([^),]+)\)/g,"locator($1).internal:has-text=$2").replace(/locator\(([^)]+),hasnottext=([^),]+)\)/g,"locator($1).internal:has-not-text=$2").replace(/locator\(([^)]+),hastext=([^),]+)\)/g,"locator($1).internal:has-text=$2").replace(/locator\(([^)]+)\)/g,"$1").replace(/getbyrole\(([^)]+)\)/g,"internal:role=$1").replace(/getbytext\(([^)]+)\)/g,"internal:text=$1").replace(/getbylabel\(([^)]+)\)/g,"internal:label=$1").replace(/getbytestid\(([^)]+)\)/g,`internal:testid=[${r}=$1]`).replace(/getby(placeholder|alt|title)(?:text)?\(([^)]+)\)/g,"internal:attr=[$1=$2]").replace(/first(\(\))?/g,"nth=0").replace(/last(\(\))?/g,"nth=-1").replace(/nth\(([^)]+)\)/g,"nth=$1").replace(/filter\(,?visible=true\)/g,"visible=true").replace(/filter\(,?visible=false\)/g,"visible=false").replace(/filter\(,?hastext=([^)]+)\)/g,"internal:has-text=$1").replace(/filter\(,?hasnottext=([^)]+)\)/g,"internal:has-not-text=$1").replace(/filter\(,?has2=([^)]+)\)/g,"internal:has=$1").replace(/filter\(,?hasnot2=([^)]+)\)/g,"internal:has-not=$1").replace(/,exact=false/g,"").replace(/,exact=true/g,"s").replace(/,includehidden=/g,",include-hidden=").replace(/\,/g,"][");const s=i.split(".");for(let o=0;o<s.length-1;o++)if(s[o]==="internal:control=enter-frame"&&s[o+1].startsWith("nth=")){const[l]=s.splice(o,1);s.splice(o+1,0,l)}return s.map(o=>!o.startsWith("internal:")||o==="internal:control"?o.replace(/\$(\d+)/g,(l,u)=>e[+u-1].text):(o=o.includes("[")?o.replace(/\]/,"")+"]":o,o=o.replace(/(?:r)\$(\d+)(i)?/g,(l,u,d)=>{const m=e[+u-1];return o.startsWith("internal:attr")||o.startsWith("internal:testid")||o.startsWith("internal:role")?Hn(new RegExp(m.text),!1)+(d||""):$n(new RegExp(m.text,d),!1)}).replace(/\$(\d+)(i|s)?/g,(l,u,d)=>{const m=e[+u-1];return o.startsWith("internal:has=")||o.startsWith("internal:has-not=")?m.text:o.startsWith("internal:testid")?Hn(m.text,!0):o.startsWith("internal:attr")||o.startsWith("internal:role")?Hn(m.text,d==="s"):$n(m.text,d==="s")}),o)).join(" >> ")}function z6(i,e,r){try{return P6(i,e,r)}catch{return""}}function P6(i,e,r){try{return cd(e),e}catch{}const{selector:s,preferredQuote:o}=I6(e,r),l=tA(i,s,void 0,void 0,o),u=cN(i,e);return l.some(d=>cN(i,d)===u)?s:""}function cN(i,e){return e=e.replace(/\s/g,""),i==="javascript"&&(e=e.replace(/\\?["`]/g,"'").replace(/,{}/g,"")),e}const B6=({url:i})=>x.jsxDEV("div",{className:"browser-frame-header",children:[x.jsxDEV("div",{className:"browser-traffic-lights",children:[x.jsxDEV("span",{className:"browser-frame-dot",style:{backgroundColor:"rgb(242, 95, 88)"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:26,columnNumber:7},void 0),x.jsxDEV("span",{className:"browser-frame-dot",style:{backgroundColor:"rgb(251, 190, 60)"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:27,columnNumber:7},void 0),x.jsxDEV("span",{className:"browser-frame-dot",style:{backgroundColor:"rgb(88, 203, 66)"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:28,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:25,columnNumber:5},void 0),x.jsxDEV("div",{className:"browser-frame-address-bar",title:i||"about:blank",children:[x.jsxDEV("span",{className:"browser-frame-address",children:i||"about:blank"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:34,columnNumber:7},void 0),i&&x.jsxDEV(kv,{value:i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:36,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:30,columnNumber:5},void 0),x.jsxDEV("div",{style:{marginLeft:"auto"},children:x.jsxDEV("div",{children:[x.jsxDEV("span",{className:"browser-frame-menu-bar"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:41,columnNumber:9},void 0),x.jsxDEV("span",{className:"browser-frame-menu-bar"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:42,columnNumber:9},void 0),x.jsxDEV("span",{className:"browser-frame-menu-bar"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:43,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:40,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:39,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/browserFrame.tsx",lineNumber:24,columnNumber:10},void 0),r0=Symbol.for("yaml.alias"),gv=Symbol.for("yaml.document"),ca=Symbol.for("yaml.map"),NC=Symbol.for("yaml.pair"),Ri=Symbol.for("yaml.scalar"),Gl=Symbol.for("yaml.seq"),kr=Symbol.for("yaml.node.type"),fa=i=>!!i&&typeof i=="object"&&i[kr]===r0,po=i=>!!i&&typeof i=="object"&&i[kr]===gv,Yl=i=>!!i&&typeof i=="object"&&i[kr]===ca,pt=i=>!!i&&typeof i=="object"&&i[kr]===NC,at=i=>!!i&&typeof i=="object"&&i[kr]===Ri,Xl=i=>!!i&&typeof i=="object"&&i[kr]===Gl;function vt(i){if(i&&typeof i=="object")switch(i[kr]){case ca:case Gl:return!0}return!1}function wt(i){if(i&&typeof i=="object")switch(i[kr]){case r0:case ca:case Ri:case Gl:return!0}return!1}const AC=i=>(at(i)||vt(i))&&!!i.anchor,In=Symbol("break visit"),CC=Symbol("skip children"),Di=Symbol("remove node");function go(i,e){const r=kC(e);po(i)?Rl(null,i.contents,r,Object.freeze([i]))===Di&&(i.contents=null):Rl(null,i,r,Object.freeze([]))}go.BREAK=In;go.SKIP=CC;go.REMOVE=Di;function Rl(i,e,r,s){const o=DC(i,e,r,s);if(wt(o)||pt(o))return RC(i,s,o),Rl(i,o,r,s);if(typeof o!="symbol"){if(vt(e)){s=Object.freeze(s.concat(e));for(let l=0;l<e.items.length;++l){const u=Rl(l,e.items[l],r,s);if(typeof u=="number")l=u-1;else{if(u===In)return In;u===Di&&(e.items.splice(l,1),l-=1)}}}else if(pt(e)){s=Object.freeze(s.concat(e));const l=Rl("key",e.key,r,s);if(l===In)return In;l===Di&&(e.key=null);const u=Rl("value",e.value,r,s);if(u===In)return In;u===Di&&(e.value=null)}}return o}async function Tm(i,e){const r=kC(e);po(i)?await Ml(null,i.contents,r,Object.freeze([i]))===Di&&(i.contents=null):await Ml(null,i,r,Object.freeze([]))}Tm.BREAK=In;Tm.SKIP=CC;Tm.REMOVE=Di;async function Ml(i,e,r,s){const o=await DC(i,e,r,s);if(wt(o)||pt(o))return RC(i,s,o),Ml(i,o,r,s);if(typeof o!="symbol"){if(vt(e)){s=Object.freeze(s.concat(e));for(let l=0;l<e.items.length;++l){const u=await Ml(l,e.items[l],r,s);if(typeof u=="number")l=u-1;else{if(u===In)return In;u===Di&&(e.items.splice(l,1),l-=1)}}}else if(pt(e)){s=Object.freeze(s.concat(e));const l=await Ml("key",e.key,r,s);if(l===In)return In;l===Di&&(e.key=null);const u=await Ml("value",e.value,r,s);if(u===In)return In;u===Di&&(e.value=null)}}return o}function kC(i){return typeof i=="object"&&(i.Collection||i.Node||i.Value)?Object.assign({Alias:i.Node,Map:i.Node,Scalar:i.Node,Seq:i.Node},i.Value&&{Map:i.Value,Scalar:i.Value,Seq:i.Value},i.Collection&&{Map:i.Collection,Seq:i.Collection},i):i}function DC(i,e,r,s){var o,l,u,d,m;if(typeof r=="function")return r(i,e,s);if(Yl(e))return(o=r.Map)==null?void 0:o.call(r,i,e,s);if(Xl(e))return(l=r.Seq)==null?void 0:l.call(r,i,e,s);if(pt(e))return(u=r.Pair)==null?void 0:u.call(r,i,e,s);if(at(e))return(d=r.Scalar)==null?void 0:d.call(r,i,e,s);if(fa(e))return(m=r.Alias)==null?void 0:m.call(r,i,e,s)}function RC(i,e,r){const s=e[e.length-1];if(vt(s))s.items[i]=r;else if(pt(s))i==="key"?s.key=r:s.value=r;else if(po(s))s.contents=r;else{const o=fa(s)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const q6={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},F6=i=>i.replace(/[!,[\]{}]/g,e=>q6[e]);class Tn{constructor(e,r){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},Tn.defaultYaml,e),this.tags=Object.assign({},Tn.defaultTags,r)}clone(){const e=new Tn(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new Tn(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:Tn.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},Tn.defaultTags);break}return e}add(e,r){this.atNextDocument&&(this.yaml={explicit:Tn.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},Tn.defaultTags),this.atNextDocument=!1);const s=e.trim().split(/[ \t]+/),o=s.shift();switch(o){case"%TAG":{if(s.length!==2&&(r(0,"%TAG directive should contain exactly two parts"),s.length<2))return!1;const[l,u]=s;return this.tags[l]=u,!0}case"%YAML":{if(this.yaml.explicit=!0,s.length!==1)return r(0,"%YAML directive should contain exactly one part"),!1;const[l]=s;if(l==="1.1"||l==="1.2")return this.yaml.version=l,!0;{const u=/^\d+\.\d+$/.test(l);return r(6,`Unsupported YAML version ${l}`,u),!1}}default:return r(0,`Unknown directive ${o}`,!0),!1}}tagName(e,r){if(e==="!")return"!";if(e[0]!=="!")return r(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const u=e.slice(2,-1);return u==="!"||u==="!!"?(r(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&r("Verbatim tags must end with a >"),u)}const[,s,o]=e.match(/^(.*!)([^!]*)$/s);o||r(`The ${e} tag has no suffix`);const l=this.tags[s];if(l)try{return l+decodeURIComponent(o)}catch(u){return r(String(u)),null}return s==="!"?e:(r(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[r,s]of Object.entries(this.tags))if(e.startsWith(s))return r+F6(e.substring(s.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const r=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],s=Object.entries(this.tags);let o;if(e&&s.length>0&&wt(e.contents)){const l={};go(e.contents,(u,d)=>{wt(d)&&d.tag&&(l[d.tag]=!0)}),o=Object.keys(l)}else o=[];for(const[l,u]of s)l==="!!"&&u==="tag:yaml.org,2002:"||(!e||o.some(d=>d.startsWith(u)))&&r.push(`%TAG ${l} ${u}`);return r.join(`
898
+ `)}}Tn.defaultYaml={explicit:!1,version:"1.2"};Tn.defaultTags={"!!":"tag:yaml.org,2002:"};function MC(i){if(/[\x00-\x19\s,[\]{}]/.test(i)){const r=`Anchor must not contain whitespace or control characters: ${JSON.stringify(i)}`;throw new Error(r)}return!0}function OC(i){const e=new Set;return go(i,{Value(r,s){s.anchor&&e.add(s.anchor)}}),e}function LC(i,e){for(let r=1;;++r){const s=`${i}${r}`;if(!e.has(s))return s}}function G6(i,e){const r=[],s=new Map;let o=null;return{onAnchor:l=>{r.push(l),o??(o=OC(i));const u=LC(e,o);return o.add(u),u},setAnchors:()=>{for(const l of r){const u=s.get(l);if(typeof u=="object"&&u.anchor&&(at(u.node)||vt(u.node)))u.node.anchor=u.anchor;else{const d=new Error("Failed to resolve repeated object (this should not happen)");throw d.source=l,d}}},sourceObjects:s}}function Ol(i,e,r,s){if(s&&typeof s=="object")if(Array.isArray(s))for(let o=0,l=s.length;o<l;++o){const u=s[o],d=Ol(i,s,String(o),u);d===void 0?delete s[o]:d!==u&&(s[o]=d)}else if(s instanceof Map)for(const o of Array.from(s.keys())){const l=s.get(o),u=Ol(i,s,o,l);u===void 0?s.delete(o):u!==l&&s.set(o,u)}else if(s instanceof Set)for(const o of Array.from(s)){const l=Ol(i,s,o,o);l===void 0?s.delete(o):l!==o&&(s.delete(o),s.add(l))}else for(const[o,l]of Object.entries(s)){const u=Ol(i,s,o,l);u===void 0?delete s[o]:u!==l&&(s[o]=u)}return i.call(e,r,s)}function Cr(i,e,r){if(Array.isArray(i))return i.map((s,o)=>Cr(s,String(o),r));if(i&&typeof i.toJSON=="function"){if(!r||!AC(i))return i.toJSON(e,r);const s={aliasCount:0,count:1,res:void 0};r.anchors.set(i,s),r.onCreate=l=>{s.res=l,delete r.onCreate};const o=i.toJSON(e,r);return r.onCreate&&r.onCreate(o),o}return typeof i=="bigint"&&!(r!=null&&r.keep)?Number(i):i}class i0{constructor(e){Object.defineProperty(this,kr,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:r,maxAliasCount:s,onAnchor:o,reviver:l}={}){if(!po(e))throw new TypeError("A document argument is required");const u={anchors:new Map,doc:e,keep:!0,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},d=Cr(this,"",u);if(typeof o=="function")for(const{count:m,res:p}of u.anchors.values())o(p,m);return typeof l=="function"?Ol(l,{"":d},"",d):d}}class Nm extends i0{constructor(e){super(r0),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e,r){let s;r!=null&&r.aliasResolveCache?s=r.aliasResolveCache:(s=[],go(e,{Node:(l,u)=>{(fa(u)||AC(u))&&s.push(u)}}),r&&(r.aliasResolveCache=s));let o;for(const l of s){if(l===this)break;l.anchor===this.source&&(o=l)}return o}toJSON(e,r){if(!r)return{source:this.source};const{anchors:s,doc:o,maxAliasCount:l}=r,u=this.resolve(o,r);if(!u){const m=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(m)}let d=s.get(u);if(d||(Cr(u,null,r),d=s.get(u)),(d==null?void 0:d.res)===void 0){const m="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(m)}if(l>=0&&(d.count+=1,d.aliasCount===0&&(d.aliasCount=Kh(o,u,s)),d.count*d.aliasCount>l)){const m="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(m)}return d.res}toString(e,r,s){const o=`*${this.source}`;if(e){if(MC(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(l)}if(e.implicitKey)return`${o} `}return o}}function Kh(i,e,r){if(fa(e)){const s=e.resolve(i),o=r&&s&&r.get(s);return o?o.count*o.aliasCount:0}else if(vt(e)){let s=0;for(const o of e.items){const l=Kh(i,o,r);l>s&&(s=l)}return s}else if(pt(e)){const s=Kh(i,e.key,r),o=Kh(i,e.value,r);return Math.max(s,o)}return 1}const UC=i=>!i||typeof i!="function"&&typeof i!="object";class Ce extends i0{constructor(e){super(Ri),this.value=e}toJSON(e,r){return r!=null&&r.keep?this.value:Cr(this.value,e,r)}toString(){return String(this.value)}}Ce.BLOCK_FOLDED="BLOCK_FOLDED";Ce.BLOCK_LITERAL="BLOCK_LITERAL";Ce.PLAIN="PLAIN";Ce.QUOTE_DOUBLE="QUOTE_DOUBLE";Ce.QUOTE_SINGLE="QUOTE_SINGLE";const Y6="tag:yaml.org,2002:";function X6(i,e,r){if(e){const s=r.filter(l=>l.tag===e),o=s.find(l=>!l.format)??s[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return r.find(s=>{var o;return((o=s.identify)==null?void 0:o.call(s,i))&&!s.format})}function sd(i,e,r){var g,y,w;if(po(i)&&(i=i.contents),wt(i))return i;if(pt(i)){const E=(y=(g=r.schema[ca]).createNode)==null?void 0:y.call(g,r.schema,null,r);return E.items.push(i),E}(i instanceof String||i instanceof Number||i instanceof Boolean||typeof BigInt<"u"&&i instanceof BigInt)&&(i=i.valueOf());const{aliasDuplicateObjects:s,onAnchor:o,onTagObj:l,schema:u,sourceObjects:d}=r;let m;if(s&&i&&typeof i=="object"){if(m=d.get(i),m)return m.anchor??(m.anchor=o(i)),new Nm(m.anchor);m={anchor:null,node:null},d.set(i,m)}e!=null&&e.startsWith("!!")&&(e=Y6+e.slice(2));let p=X6(i,e,u.tags);if(!p){if(i&&typeof i.toJSON=="function"&&(i=i.toJSON()),!i||typeof i!="object"){const E=new Ce(i);return m&&(m.node=E),E}p=i instanceof Map?u[ca]:Symbol.iterator in Object(i)?u[Gl]:u[ca]}l&&(l(p),delete r.onTagObj);const v=p!=null&&p.createNode?p.createNode(r.schema,i,r):typeof((w=p==null?void 0:p.nodeClass)==null?void 0:w.from)=="function"?p.nodeClass.from(r.schema,i,r):new Ce(i);return e?v.tag=e:p.default||(v.tag=p.tag),m&&(m.node=v),v}function fm(i,e,r){let s=r;for(let o=e.length-1;o>=0;--o){const l=e[o];if(typeof l=="number"&&Number.isInteger(l)&&l>=0){const u=[];u[l]=s,s=u}else s=new Map([[l,s]])}return sd(s,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:i,sourceObjects:new Map})}const qu=i=>i==null||typeof i=="object"&&!!i[Symbol.iterator]().next().done;class jC extends i0{constructor(e,r){super(e),Object.defineProperty(this,"schema",{value:r,configurable:!0,enumerable:!1,writable:!0})}clone(e){const r=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(r.schema=e),r.items=r.items.map(s=>wt(s)||pt(s)?s.clone(e):s),this.range&&(r.range=this.range.slice()),r}addIn(e,r){if(qu(e))this.add(r);else{const[s,...o]=e,l=this.get(s,!0);if(vt(l))l.addIn(o,r);else if(l===void 0&&this.schema)this.set(s,fm(this.schema,o,r));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}deleteIn(e){const[r,...s]=e;if(s.length===0)return this.delete(r);const o=this.get(r,!0);if(vt(o))return o.deleteIn(s);throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}getIn(e,r){const[s,...o]=e,l=this.get(s,!0);return o.length===0?!r&&at(l)?l.value:l:vt(l)?l.getIn(o,r):void 0}hasAllNullValues(e){return this.items.every(r=>{if(!pt(r))return!1;const s=r.value;return s==null||e&&at(s)&&s.value==null&&!s.commentBefore&&!s.comment&&!s.tag})}hasIn(e){const[r,...s]=e;if(s.length===0)return this.has(r);const o=this.get(r,!0);return vt(o)?o.hasIn(s):!1}setIn(e,r){const[s,...o]=e;if(o.length===0)this.set(s,r);else{const l=this.get(s,!0);if(vt(l))l.setIn(o,r);else if(l===void 0&&this.schema)this.set(s,fm(this.schema,o,r));else throw new Error(`Expected YAML collection at ${s}. Remaining path: ${o}`)}}}const J6=i=>i.replace(/^(?!$)(?: $)?/gm,"#");function ds(i,e){return/^\n+$/.test(i)?i.substring(1):e?i.replace(/^(?! *$)/gm,e):i}const oo=(i,e,r)=>i.endsWith(`
899
+ `)?ds(r,e):r.includes(`
900
+ `)?`
901
+ `+ds(r,e):(i.endsWith(" ")?"":" ")+r,VC="flow",yv="block",Wh="quoted";function Am(i,e,r="flow",{indentAtStart:s,lineWidth:o=80,minContentWidth:l=20,onFold:u,onOverflow:d}={}){if(!o||o<0)return i;o<l&&(l=0);const m=Math.max(1+l,1+o-e.length);if(i.length<=m)return i;const p=[],v={};let g=o-e.length;typeof s=="number"&&(s>o-Math.max(2,l)?p.push(0):g=o-s);let y,w,E=!1,S=-1,T=-1,k=-1;r===yv&&(S=uN(i,S,e.length),S!==-1&&(g=S+m));for(let I;I=i[S+=1];){if(r===Wh&&I==="\\"){switch(T=S,i[S+1]){case"x":S+=3;break;case"u":S+=5;break;case"U":S+=9;break;default:S+=1}k=S}if(I===`
902
+ `)r===yv&&(S=uN(i,S,e.length)),g=S+e.length+m,y=void 0;else{if(I===" "&&w&&w!==" "&&w!==`
903
+ `&&w!==" "){const z=i[S+1];z&&z!==" "&&z!==`
904
+ `&&z!==" "&&(y=S)}if(S>=g)if(y)p.push(y),g=y+m,y=void 0;else if(r===Wh){for(;w===" "||w===" ";)w=I,I=i[S+=1],E=!0;const z=S>k+1?S-2:T-1;if(v[z])return i;p.push(z),v[z]=!0,g=z+m,y=void 0}else E=!0}w=I}if(E&&d&&d(),p.length===0)return i;u&&u();let D=i.slice(0,p[0]);for(let I=0;I<p.length;++I){const z=p[I],$=p[I+1]||i.length;z===0?D=`
905
+ ${e}${i.slice(0,$)}`:(r===Wh&&v[z]&&(D+=`${i[z]}\\`),D+=`
906
+ ${e}${i.slice(z+1,$)}`)}return D}function uN(i,e,r){let s=e,o=e+1,l=i[o];for(;l===" "||l===" ";)if(e<o+r)l=i[++e];else{do l=i[++e];while(l&&l!==`
907
+ `);s=e,o=e+1,l=i[o]}return s}const Cm=(i,e)=>({indentAtStart:e?i.indent.length:i.indentAtStart,lineWidth:i.options.lineWidth,minContentWidth:i.options.minContentWidth}),km=i=>/^(%|---|\.\.\.)/m.test(i);function K6(i,e,r){if(!e||e<0)return!1;const s=e-r,o=i.length;if(o<=s)return!1;for(let l=0,u=0;l<o;++l)if(i[l]===`
908
+ `){if(l-u>s)return!0;if(u=l+1,o-u<=s)return!1}return!0}function ed(i,e){const r=JSON.stringify(i);if(e.options.doubleQuotedAsJSON)return r;const{implicitKey:s}=e,o=e.options.doubleQuotedMinMultiLineLength,l=e.indent||(km(i)?" ":"");let u="",d=0;for(let m=0,p=r[m];p;p=r[++m])if(p===" "&&r[m+1]==="\\"&&r[m+2]==="n"&&(u+=r.slice(d,m)+"\\ ",m+=1,d=m,p="\\"),p==="\\")switch(r[m+1]){case"u":{u+=r.slice(d,m);const v=r.substr(m+2,4);switch(v){case"0000":u+="\\0";break;case"0007":u+="\\a";break;case"000b":u+="\\v";break;case"001b":u+="\\e";break;case"0085":u+="\\N";break;case"00a0":u+="\\_";break;case"2028":u+="\\L";break;case"2029":u+="\\P";break;default:v.substr(0,2)==="00"?u+="\\x"+v.substr(2):u+=r.substr(m,6)}m+=5,d=m+1}break;case"n":if(s||r[m+2]==='"'||r.length<o)m+=1;else{for(u+=r.slice(d,m)+`
909
+
910
+ `;r[m+2]==="\\"&&r[m+3]==="n"&&r[m+4]!=='"';)u+=`
911
+ `,m+=2;u+=l,r[m+2]===" "&&(u+="\\"),m+=1,d=m+1}break;default:m+=1}return u=d?u+r.slice(d):r,s?u:Am(u,l,Wh,Cm(e,!1))}function bv(i,e){if(e.options.singleQuote===!1||e.implicitKey&&i.includes(`
912
+ `)||/[ \t]\n|\n[ \t]/.test(i))return ed(i,e);const r=e.indent||(km(i)?" ":""),s="'"+i.replace(/'/g,"''").replace(/\n+/g,`$&
913
+ ${r}`)+"'";return e.implicitKey?s:Am(s,r,VC,Cm(e,!1))}function Ll(i,e){const{singleQuote:r}=e.options;let s;if(r===!1)s=ed;else{const o=i.includes('"'),l=i.includes("'");o&&!l?s=bv:l&&!o?s=ed:s=r?bv:ed}return s(i,e)}let vv;try{vv=new RegExp(`(^|(?<!
914
+ ))
915
+ +(?!
916
+ |$)`,"g")}catch{vv=/\n+(?!\n|$)/g}function Qh({comment:i,type:e,value:r},s,o,l){const{blockQuote:u,commentString:d,lineWidth:m}=s.options;if(!u||/\n[\t ]+$/.test(r))return Ll(r,s);const p=s.indent||(s.forceBlockIndent||km(r)?" ":""),v=u==="literal"?!0:u==="folded"||e===Ce.BLOCK_FOLDED?!1:e===Ce.BLOCK_LITERAL?!0:!K6(r,m,p.length);if(!r)return v?`|
917
+ `:`>
918
+ `;let g,y;for(y=r.length;y>0;--y){const $=r[y-1];if($!==`
919
+ `&&$!==" "&&$!==" ")break}let w=r.substring(y);const E=w.indexOf(`
920
+ `);E===-1?g="-":r===w||E!==w.length-1?(g="+",l&&l()):g="",w&&(r=r.slice(0,-w.length),w[w.length-1]===`
921
+ `&&(w=w.slice(0,-1)),w=w.replace(vv,`$&${p}`));let S=!1,T,k=-1;for(T=0;T<r.length;++T){const $=r[T];if($===" ")S=!0;else if($===`
922
+ `)k=T;else break}let D=r.substring(0,k<T?k+1:T);D&&(r=r.substring(D.length),D=D.replace(/\n+/g,`$&${p}`));let z=(S?p?"2":"1":"")+g;if(i&&(z+=" "+d(i.replace(/ ?[\r\n]+/g," ")),o&&o()),!v){const $=r.replace(/\n+/g,`
923
+ $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${p}`);let Z=!1;const W=Cm(s,!0);u!=="folded"&&e!==Ce.BLOCK_FOLDED&&(W.onOverflow=()=>{Z=!0});const B=Am(`${D}${$}${w}`,p,yv,W);if(!Z)return`>${z}
924
+ ${p}${B}`}return r=r.replace(/\n+/g,`$&${p}`),`|${z}
925
+ ${p}${D}${r}${w}`}function W6(i,e,r,s){const{type:o,value:l}=i,{actualString:u,implicitKey:d,indent:m,indentStep:p,inFlow:v}=e;if(d&&l.includes(`
926
+ `)||v&&/[[\]{},]/.test(l))return Ll(l,e);if(/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(l))return d||v||!l.includes(`
927
+ `)?Ll(l,e):Qh(i,e,r,s);if(!d&&!v&&o!==Ce.PLAIN&&l.includes(`
928
+ `))return Qh(i,e,r,s);if(km(l)){if(m==="")return e.forceBlockIndent=!0,Qh(i,e,r,s);if(d&&m===p)return Ll(l,e)}const g=l.replace(/\n+/g,`$&
929
+ ${m}`);if(u){const y=S=>{var T;return S.default&&S.tag!=="tag:yaml.org,2002:str"&&((T=S.test)==null?void 0:T.test(g))},{compat:w,tags:E}=e.doc.schema;if(E.some(y)||w!=null&&w.some(y))return Ll(l,e)}return d?g:Am(g,m,VC,Cm(e,!1))}function ud(i,e,r,s){const{implicitKey:o,inFlow:l}=e,u=typeof i.value=="string"?i:Object.assign({},i,{value:String(i.value)});let{type:d}=i;d!==Ce.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(u.value)&&(d=Ce.QUOTE_DOUBLE);const m=v=>{switch(v){case Ce.BLOCK_FOLDED:case Ce.BLOCK_LITERAL:return o||l?Ll(u.value,e):Qh(u,e,r,s);case Ce.QUOTE_DOUBLE:return ed(u.value,e);case Ce.QUOTE_SINGLE:return bv(u.value,e);case Ce.PLAIN:return W6(u,e,r,s);default:return null}};let p=m(d);if(p===null){const{defaultKeyType:v,defaultStringType:g}=e.options,y=o&&v||g;if(p=m(y),p===null)throw new Error(`Unsupported default string type ${y}`)}return p}function $C(i,e){const r=Object.assign({blockQuote:!0,commentString:J6,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},i.schema.toStringOptions,e);let s;switch(r.collectionStyle){case"block":s=!1;break;case"flow":s=!0;break;default:s=null}return{anchors:new Set,doc:i,flowCollectionPadding:r.flowCollectionPadding?" ":"",indent:"",indentStep:typeof r.indent=="number"?" ".repeat(r.indent):" ",inFlow:s,options:r}}function Q6(i,e){var o;if(e.tag){const l=i.filter(u=>u.tag===e.tag);if(l.length>0)return l.find(u=>u.format===e.format)??l[0]}let r,s;if(at(e)){s=e.value;let l=i.filter(u=>{var d;return(d=u.identify)==null?void 0:d.call(u,s)});if(l.length>1){const u=l.filter(d=>d.test);u.length>0&&(l=u)}r=l.find(u=>u.format===e.format)??l.find(u=>!u.format)}else s=e,r=i.find(l=>l.nodeClass&&s instanceof l.nodeClass);if(!r){const l=((o=s==null?void 0:s.constructor)==null?void 0:o.name)??(s===null?"null":typeof s);throw new Error(`Tag not resolved for ${l} value`)}return r}function Z6(i,e,{anchors:r,doc:s}){if(!s.directives)return"";const o=[],l=(at(i)||vt(i))&&i.anchor;l&&MC(l)&&(r.add(l),o.push(`&${l}`));const u=i.tag??(e.default?null:e.tag);return u&&o.push(s.directives.tagString(u)),o.join(" ")}function Il(i,e,r,s){var m;if(pt(i))return i.toString(e,r,s);if(fa(i)){if(e.doc.directives)return i.toString(e);if((m=e.resolvedAliases)!=null&&m.has(i))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(i):e.resolvedAliases=new Set([i]),i=i.resolve(e.doc)}let o;const l=wt(i)?i:e.doc.createNode(i,{onTagObj:p=>o=p});o??(o=Q6(e.doc.schema.tags,l));const u=Z6(l,o,e);u.length>0&&(e.indentAtStart=(e.indentAtStart??0)+u.length+1);const d=typeof o.stringify=="function"?o.stringify(l,e,r,s):at(l)?ud(l,e,r,s):l.toString(e,r,s);return u?at(l)||d[0]==="{"||d[0]==="["?`${u} ${d}`:`${u}
930
+ ${e.indent}${d}`:d}function eU({key:i,value:e},r,s,o){const{allNullValues:l,doc:u,indent:d,indentStep:m,options:{commentString:p,indentSeq:v,simpleKeys:g}}=r;let y=wt(i)&&i.comment||null;if(g){if(y)throw new Error("With simple keys, key nodes cannot have comments");if(vt(i)||!wt(i)&&typeof i=="object"){const W="With simple keys, collection cannot be used as a key value";throw new Error(W)}}let w=!g&&(!i||y&&e==null&&!r.inFlow||vt(i)||(at(i)?i.type===Ce.BLOCK_FOLDED||i.type===Ce.BLOCK_LITERAL:typeof i=="object"));r=Object.assign({},r,{allNullValues:!1,implicitKey:!w&&(g||!l),indent:d+m});let E=!1,S=!1,T=Il(i,r,()=>E=!0,()=>S=!0);if(!w&&!r.inFlow&&T.length>1024){if(g)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");w=!0}if(r.inFlow){if(l||e==null)return E&&s&&s(),T===""?"?":w?`? ${T}`:T}else if(l&&!g||e==null&&w)return T=`? ${T}`,y&&!E?T+=oo(T,r.indent,p(y)):S&&o&&o(),T;E&&(y=null),w?(y&&(T+=oo(T,r.indent,p(y))),T=`? ${T}
931
+ ${d}:`):(T=`${T}:`,y&&(T+=oo(T,r.indent,p(y))));let k,D,I;wt(e)?(k=!!e.spaceBefore,D=e.commentBefore,I=e.comment):(k=!1,D=null,I=null,e&&typeof e=="object"&&(e=u.createNode(e))),r.implicitKey=!1,!w&&!y&&at(e)&&(r.indentAtStart=T.length+1),S=!1,!v&&m.length>=2&&!r.inFlow&&!w&&Xl(e)&&!e.flow&&!e.tag&&!e.anchor&&(r.indent=r.indent.substring(2));let z=!1;const $=Il(e,r,()=>z=!0,()=>S=!0);let Z=" ";if(y||k||D){if(Z=k?`
932
+ `:"",D){const W=p(D);Z+=`
933
+ ${ds(W,r.indent)}`}$===""&&!r.inFlow?Z===`
934
+ `&&I&&(Z=`
935
+
936
+ `):Z+=`
937
+ ${r.indent}`}else if(!w&&vt(e)){const W=$[0],B=$.indexOf(`
938
+ `),H=B!==-1,J=r.inFlow??e.flow??e.items.length===0;if(H||!J){let ue=!1;if(H&&(W==="&"||W==="!")){let q=$.indexOf(" ");W==="&"&&q!==-1&&q<B&&$[q+1]==="!"&&(q=$.indexOf(" ",q+1)),(q===-1||B<q)&&(ue=!0)}ue||(Z=`
939
+ ${r.indent}`)}}else($===""||$[0]===`
940
+ `)&&(Z="");return T+=Z+$,r.inFlow?z&&s&&s():I&&!z?T+=oo(T,r.indent,p(I)):S&&o&&o(),T}function HC(i,e){(i==="debug"||i==="warn")&&console.warn(e)}const Uh="<<",fs={identify:i=>i===Uh||typeof i=="symbol"&&i.description===Uh,default:"key",tag:"tag:yaml.org,2002:merge",test:/^<<$/,resolve:()=>Object.assign(new Ce(Symbol(Uh)),{addToJSMap:IC}),stringify:()=>Uh},tU=(i,e)=>(fs.identify(e)||at(e)&&(!e.type||e.type===Ce.PLAIN)&&fs.identify(e.value))&&(i==null?void 0:i.doc.schema.tags.some(r=>r.tag===fs.tag&&r.default));function IC(i,e,r){if(r=i&&fa(r)?r.resolve(i.doc):r,Xl(r))for(const s of r.items)Bb(i,e,s);else if(Array.isArray(r))for(const s of r)Bb(i,e,s);else Bb(i,e,r)}function Bb(i,e,r){const s=i&&fa(r)?r.resolve(i.doc):r;if(!Yl(s))throw new Error("Merge sources must be maps or map aliases");const o=s.toJSON(null,i,Map);for(const[l,u]of o)e instanceof Map?e.has(l)||e.set(l,u):e instanceof Set?e.add(l):Object.prototype.hasOwnProperty.call(e,l)||Object.defineProperty(e,l,{value:u,writable:!0,enumerable:!0,configurable:!0});return e}function zC(i,e,{key:r,value:s}){if(wt(r)&&r.addToJSMap)r.addToJSMap(i,e,s);else if(tU(i,r))IC(i,e,s);else{const o=Cr(r,"",i);if(e instanceof Map)e.set(o,Cr(s,o,i));else if(e instanceof Set)e.add(o);else{const l=nU(r,o,i),u=Cr(s,l,i);l in e?Object.defineProperty(e,l,{value:u,writable:!0,enumerable:!0,configurable:!0}):e[l]=u}}return e}function nU(i,e,r){if(e===null)return"";if(typeof e!="object")return String(e);if(wt(i)&&(r!=null&&r.doc)){const s=$C(r.doc,{});s.anchors=new Set;for(const l of r.anchors.keys())s.anchors.add(l.anchor);s.inFlow=!0,s.inStringifyKey=!0;const o=i.toString(s);if(!r.mapKeyWarned){let l=JSON.stringify(o);l.length>40&&(l=l.substring(0,36)+'..."'),HC(r.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${l}. Set mapAsMap: true to use object keys.`),r.mapKeyWarned=!0}return o}return JSON.stringify(e)}function s0(i,e,r){const s=sd(i,void 0,r),o=sd(e,void 0,r);return new fn(s,o)}class fn{constructor(e,r=null){Object.defineProperty(this,kr,{value:NC}),this.key=e,this.value=r}clone(e){let{key:r,value:s}=this;return wt(r)&&(r=r.clone(e)),wt(s)&&(s=s.clone(e)),new fn(r,s)}toJSON(e,r){const s=r!=null&&r.mapAsMap?new Map:{};return zC(r,s,this)}toString(e,r,s){return e!=null&&e.doc?eU(this,e,r,s):JSON.stringify(this)}}function PC(i,e,r){return(e.inFlow??i.flow?iU:rU)(i,e,r)}function rU({comment:i,items:e},r,{blockItemPrefix:s,flowChars:o,itemIndent:l,onChompKeep:u,onComment:d}){const{indent:m,options:{commentString:p}}=r,v=Object.assign({},r,{indent:l,type:null});let g=!1;const y=[];for(let E=0;E<e.length;++E){const S=e[E];let T=null;if(wt(S))!g&&S.spaceBefore&&y.push(""),hm(r,y,S.commentBefore,g),S.comment&&(T=S.comment);else if(pt(S)){const D=wt(S.key)?S.key:null;D&&(!g&&D.spaceBefore&&y.push(""),hm(r,y,D.commentBefore,g))}g=!1;let k=Il(S,v,()=>T=null,()=>g=!0);T&&(k+=oo(k,l,p(T))),g&&T&&(g=!1),y.push(s+k)}let w;if(y.length===0)w=o.start+o.end;else{w=y[0];for(let E=1;E<y.length;++E){const S=y[E];w+=S?`
941
+ ${m}${S}`:`
942
+ `}}return i?(w+=`
943
+ `+ds(p(i),m),d&&d()):g&&u&&u(),w}function iU({items:i},e,{flowChars:r,itemIndent:s}){const{indent:o,indentStep:l,flowCollectionPadding:u,options:{commentString:d}}=e;s+=l;const m=Object.assign({},e,{indent:s,inFlow:!0,type:null});let p=!1,v=0;const g=[];for(let E=0;E<i.length;++E){const S=i[E];let T=null;if(wt(S))S.spaceBefore&&g.push(""),hm(e,g,S.commentBefore,!1),S.comment&&(T=S.comment);else if(pt(S)){const D=wt(S.key)?S.key:null;D&&(D.spaceBefore&&g.push(""),hm(e,g,D.commentBefore,!1),D.comment&&(p=!0));const I=wt(S.value)?S.value:null;I?(I.comment&&(T=I.comment),I.commentBefore&&(p=!0)):S.value==null&&(D!=null&&D.comment)&&(T=D.comment)}T&&(p=!0);let k=Il(S,m,()=>T=null);p||(p=g.length>v||k.includes(`
944
+ `)),E<i.length-1?k+=",":e.options.trailingComma&&(e.options.lineWidth>0&&(p||(p=g.reduce((D,I)=>D+I.length+2,2)+(k.length+2)>e.options.lineWidth)),p&&(k+=",")),T&&(k+=oo(k,s,d(T))),g.push(k),v=g.length}const{start:y,end:w}=r;if(g.length===0)return y+w;if(!p){const E=g.reduce((S,T)=>S+T.length+2,2);p=e.options.lineWidth>0&&E>e.options.lineWidth}if(p){let E=y;for(const S of g)E+=S?`
945
+ ${l}${o}${S}`:`
946
+ `;return`${E}
947
+ ${o}${w}`}else return`${y}${u}${g.join(" ")}${u}${w}`}function hm({indent:i,options:{commentString:e}},r,s,o){if(s&&o&&(s=s.replace(/^\n+/,"")),s){const l=ds(e(s),i);r.push(l.trimStart())}}function lo(i,e){const r=at(e)?e.value:e;for(const s of i)if(pt(s)&&(s.key===e||s.key===r||at(s.key)&&s.key.value===r))return s}class ir extends jC{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(ca,e),this.items=[]}static from(e,r,s){const{keepUndefined:o,replacer:l}=s,u=new this(e),d=(m,p)=>{if(typeof l=="function")p=l.call(r,m,p);else if(Array.isArray(l)&&!l.includes(m))return;(p!==void 0||o)&&u.items.push(s0(m,p,s))};if(r instanceof Map)for(const[m,p]of r)d(m,p);else if(r&&typeof r=="object")for(const m of Object.keys(r))d(m,r[m]);return typeof e.sortMapEntries=="function"&&u.items.sort(e.sortMapEntries),u}add(e,r){var u;let s;pt(e)?s=e:!e||typeof e!="object"||!("key"in e)?s=new fn(e,e==null?void 0:e.value):s=new fn(e.key,e.value);const o=lo(this.items,s.key),l=(u=this.schema)==null?void 0:u.sortMapEntries;if(o){if(!r)throw new Error(`Key ${s.key} already set`);at(o.value)&&UC(s.value)?o.value.value=s.value:o.value=s.value}else if(l){const d=this.items.findIndex(m=>l(s,m)<0);d===-1?this.items.push(s):this.items.splice(d,0,s)}else this.items.push(s)}delete(e){const r=lo(this.items,e);return r?this.items.splice(this.items.indexOf(r),1).length>0:!1}get(e,r){const s=lo(this.items,e),o=s==null?void 0:s.value;return(!r&&at(o)?o.value:o)??void 0}has(e){return!!lo(this.items,e)}set(e,r){this.add(new fn(e,r),!0)}toJSON(e,r,s){const o=s?new s:r!=null&&r.mapAsMap?new Map:{};r!=null&&r.onCreate&&r.onCreate(o);for(const l of this.items)zC(r,o,l);return o}toString(e,r,s){if(!e)return JSON.stringify(this);for(const o of this.items)if(!pt(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),PC(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:s,onComment:r})}}const Jl={collection:"map",default:!0,nodeClass:ir,tag:"tag:yaml.org,2002:map",resolve(i,e){return Yl(i)||e("Expected a mapping for this tag"),i},createNode:(i,e,r)=>ir.from(i,e,r)};class ua extends jC{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Gl,e),this.items=[]}add(e){this.items.push(e)}delete(e){const r=jh(e);return typeof r!="number"?!1:this.items.splice(r,1).length>0}get(e,r){const s=jh(e);if(typeof s!="number")return;const o=this.items[s];return!r&&at(o)?o.value:o}has(e){const r=jh(e);return typeof r=="number"&&r<this.items.length}set(e,r){const s=jh(e);if(typeof s!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[s];at(o)&&UC(r)?o.value=r:this.items[s]=r}toJSON(e,r){const s=[];r!=null&&r.onCreate&&r.onCreate(s);let o=0;for(const l of this.items)s.push(Cr(l,String(o++),r));return s}toString(e,r,s){return e?PC(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:s,onComment:r}):JSON.stringify(this)}static from(e,r,s){const{replacer:o}=s,l=new this(e);if(r&&Symbol.iterator in Object(r)){let u=0;for(let d of r){if(typeof o=="function"){const m=r instanceof Set?d:String(u++);d=o.call(r,m,d)}l.items.push(sd(d,void 0,s))}}return l}}function jh(i){let e=at(i)?i.value:i;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const Kl={collection:"seq",default:!0,nodeClass:ua,tag:"tag:yaml.org,2002:seq",resolve(i,e){return Xl(i)||e("Expected a sequence for this tag"),i},createNode:(i,e,r)=>ua.from(i,e,r)},Dm={identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify(i,e,r,s){return e=Object.assign({actualString:!0},e),ud(i,e,r,s)}},Rm={identify:i=>i==null,createNode:()=>new Ce(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new Ce(null),stringify:({source:i},e)=>typeof i=="string"&&Rm.test.test(i)?i:e.options.nullStr},a0={identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:i=>new Ce(i[0]==="t"||i[0]==="T"),stringify({source:i,value:e},r){if(i&&a0.test.test(i)){const s=i[0]==="t"||i[0]==="T";if(e===s)return i}return e?r.options.trueStr:r.options.falseStr}};function Yr({format:i,minFractionDigits:e,tag:r,value:s}){if(typeof s=="bigint")return String(s);const o=typeof s=="number"?s:Number(s);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let l=Object.is(s,-0)?"-0":JSON.stringify(s);if(!i&&e&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(l)){let u=l.indexOf(".");u<0&&(u=l.length,l+=".");let d=e-(l.length-u-1);for(;d-- >0;)l+="0"}return l}const BC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Yr},qC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i),stringify(i){const e=Number(i.value);return isFinite(e)?e.toExponential():Yr(i)}},FC={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(i){const e=new Ce(parseFloat(i)),r=i.indexOf(".");return r!==-1&&i[i.length-1]==="0"&&(e.minFractionDigits=i.length-r-1),e},stringify:Yr},Mm=i=>typeof i=="bigint"||Number.isInteger(i),o0=(i,e,r,{intAsBigInt:s})=>s?BigInt(i):parseInt(i.substring(e),r);function GC(i,e,r){const{value:s}=i;return Mm(s)&&s>=0?r+s.toString(e):Yr(i)}const YC={identify:i=>Mm(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(i,e,r)=>o0(i,2,8,r),stringify:i=>GC(i,8,"0o")},XC={identify:Mm,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(i,e,r)=>o0(i,0,10,r),stringify:Yr},JC={identify:i=>Mm(i)&&i>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(i,e,r)=>o0(i,2,16,r),stringify:i=>GC(i,16,"0x")},sU=[Jl,Kl,Dm,Rm,a0,YC,XC,JC,BC,qC,FC];function dN(i){return typeof i=="bigint"||Number.isInteger(i)}const Vh=({value:i})=>JSON.stringify(i),aU=[{identify:i=>typeof i=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:i=>i,stringify:Vh},{identify:i=>i==null,createNode:()=>new Ce(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Vh},{identify:i=>typeof i=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true$|^false$/,resolve:i=>i==="true",stringify:Vh},{identify:dN,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(i,e,{intAsBigInt:r})=>r?BigInt(i):parseInt(i,10),stringify:({value:i})=>dN(i)?i.toString():JSON.stringify(i)},{identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:i=>parseFloat(i),stringify:Vh}],oU={default:!0,tag:"",test:/^/,resolve(i,e){return e(`Unresolved plain scalar ${JSON.stringify(i)}`),i}},lU=[Jl,Kl].concat(aU,oU),l0={identify:i=>i instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(i,e){if(typeof atob=="function"){const r=atob(i.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let o=0;o<r.length;++o)s[o]=r.charCodeAt(o);return s}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),i},stringify({comment:i,type:e,value:r},s,o,l){if(!r)return"";const u=r;let d;if(typeof btoa=="function"){let m="";for(let p=0;p<u.length;++p)m+=String.fromCharCode(u[p]);d=btoa(m)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e??(e=Ce.BLOCK_LITERAL),e!==Ce.QUOTE_DOUBLE){const m=Math.max(s.options.lineWidth-s.indent.length,s.options.minContentWidth),p=Math.ceil(d.length/m),v=new Array(p);for(let g=0,y=0;g<p;++g,y+=m)v[g]=d.substr(y,m);d=v.join(e===Ce.BLOCK_LITERAL?`
948
+ `:" ")}return ud({comment:i,type:e,value:d},s,o,l)}};function KC(i,e){if(Xl(i))for(let r=0;r<i.items.length;++r){let s=i.items[r];if(!pt(s)){if(Yl(s)){s.items.length>1&&e("Each pair must have its own sequence indicator");const o=s.items[0]||new fn(new Ce(null));if(s.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${s.commentBefore}
949
+ ${o.key.commentBefore}`:s.commentBefore),s.comment){const l=o.value??o.key;l.comment=l.comment?`${s.comment}
950
+ ${l.comment}`:s.comment}s=o}i.items[r]=pt(s)?s:new fn(s)}}else e("Expected a sequence for this tag");return i}function WC(i,e,r){const{replacer:s}=r,o=new ua(i);o.tag="tag:yaml.org,2002:pairs";let l=0;if(e&&Symbol.iterator in Object(e))for(let u of e){typeof s=="function"&&(u=s.call(e,String(l++),u));let d,m;if(Array.isArray(u))if(u.length===2)d=u[0],m=u[1];else throw new TypeError(`Expected [key, value] tuple: ${u}`);else if(u&&u instanceof Object){const p=Object.keys(u);if(p.length===1)d=p[0],m=u[d];else throw new TypeError(`Expected tuple with one key, not ${p.length} keys`)}else d=u;o.items.push(s0(d,m,r))}return o}const c0={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:KC,createNode:WC};class jl extends ua{constructor(){super(),this.add=ir.prototype.add.bind(this),this.delete=ir.prototype.delete.bind(this),this.get=ir.prototype.get.bind(this),this.has=ir.prototype.has.bind(this),this.set=ir.prototype.set.bind(this),this.tag=jl.tag}toJSON(e,r){if(!r)return super.toJSON(e);const s=new Map;r!=null&&r.onCreate&&r.onCreate(s);for(const o of this.items){let l,u;if(pt(o)?(l=Cr(o.key,"",r),u=Cr(o.value,l,r)):l=Cr(o,"",r),s.has(l))throw new Error("Ordered maps must not include duplicate keys");s.set(l,u)}return s}static from(e,r,s){const o=WC(e,r,s),l=new this;return l.items=o.items,l}}jl.tag="tag:yaml.org,2002:omap";const u0={collection:"seq",identify:i=>i instanceof Map,nodeClass:jl,default:!1,tag:"tag:yaml.org,2002:omap",resolve(i,e){const r=KC(i,e),s=[];for(const{key:o}of r.items)at(o)&&(s.includes(o.value)?e(`Ordered maps must not include duplicate keys: ${o.value}`):s.push(o.value));return Object.assign(new jl,r)},createNode:(i,e,r)=>jl.from(i,e,r)};function QC({value:i,source:e},r){return e&&(i?ZC:ek).test.test(e)?e:i?r.options.trueStr:r.options.falseStr}const ZC={identify:i=>i===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new Ce(!0),stringify:QC},ek={identify:i=>i===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new Ce(!1),stringify:QC},cU={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:i=>i.slice(-3).toLowerCase()==="nan"?NaN:i[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:Yr},uU={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:i=>parseFloat(i.replace(/_/g,"")),stringify(i){const e=Number(i.value);return isFinite(e)?e.toExponential():Yr(i)}},dU={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(i){const e=new Ce(parseFloat(i.replace(/_/g,""))),r=i.indexOf(".");if(r!==-1){const s=i.substring(r+1).replace(/_/g,"");s[s.length-1]==="0"&&(e.minFractionDigits=s.length)}return e},stringify:Yr},dd=i=>typeof i=="bigint"||Number.isInteger(i);function Om(i,e,r,{intAsBigInt:s}){const o=i[0];if((o==="-"||o==="+")&&(e+=1),i=i.substring(e).replace(/_/g,""),s){switch(r){case 2:i=`0b${i}`;break;case 8:i=`0o${i}`;break;case 16:i=`0x${i}`;break}const u=BigInt(i);return o==="-"?BigInt(-1)*u:u}const l=parseInt(i,r);return o==="-"?-1*l:l}function d0(i,e,r){const{value:s}=i;if(dd(s)){const o=s.toString(e);return s<0?"-"+r+o.substr(1):r+o}return Yr(i)}const fU={identify:dd,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(i,e,r)=>Om(i,2,2,r),stringify:i=>d0(i,2,"0b")},hU={identify:dd,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(i,e,r)=>Om(i,1,8,r),stringify:i=>d0(i,8,"0")},mU={identify:dd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(i,e,r)=>Om(i,0,10,r),stringify:Yr},pU={identify:dd,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(i,e,r)=>Om(i,2,16,r),stringify:i=>d0(i,16,"0x")};class Vl extends ir{constructor(e){super(e),this.tag=Vl.tag}add(e){let r;pt(e)?r=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?r=new fn(e.key,null):r=new fn(e,null),lo(this.items,r.key)||this.items.push(r)}get(e,r){const s=lo(this.items,e);return!r&&pt(s)?at(s.key)?s.key.value:s.key:s}set(e,r){if(typeof r!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof r}`);const s=lo(this.items,e);s&&!r?this.items.splice(this.items.indexOf(s),1):!s&&r&&this.items.push(new fn(e))}toJSON(e,r){return super.toJSON(e,r,Set)}toString(e,r,s){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),r,s);throw new Error("Set items must all have null values")}static from(e,r,s){const{replacer:o}=s,l=new this(e);if(r&&Symbol.iterator in Object(r))for(let u of r)typeof o=="function"&&(u=o.call(r,u,u)),l.items.push(s0(u,null,s));return l}}Vl.tag="tag:yaml.org,2002:set";const f0={collection:"map",identify:i=>i instanceof Set,nodeClass:Vl,default:!1,tag:"tag:yaml.org,2002:set",createNode:(i,e,r)=>Vl.from(i,e,r),resolve(i,e){if(Yl(i)){if(i.hasAllNullValues(!0))return Object.assign(new Vl,i);e("Set items must all have null values")}else e("Expected a mapping for this tag");return i}};function h0(i,e){const r=i[0],s=r==="-"||r==="+"?i.substring(1):i,o=u=>e?BigInt(u):Number(u),l=s.replace(/_/g,"").split(":").reduce((u,d)=>u*o(60)+o(d),o(0));return r==="-"?o(-1)*l:l}function tk(i){let{value:e}=i,r=u=>u;if(typeof e=="bigint")r=u=>BigInt(u);else if(isNaN(e)||!isFinite(e))return Yr(i);let s="";e<0&&(s="-",e*=r(-1));const o=r(60),l=[e%o];return e<60?l.unshift(0):(e=(e-l[0])/o,l.unshift(e%o),e>=60&&(e=(e-l[0])/o,l.unshift(e))),s+l.map(u=>String(u).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const nk={identify:i=>typeof i=="bigint"||Number.isInteger(i),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(i,e,{intAsBigInt:r})=>h0(i,r),stringify:tk},rk={identify:i=>typeof i=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:i=>h0(i,!1),stringify:tk},Lm={identify:i=>i 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(i){const e=i.match(Lm.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,r,s,o,l,u,d]=e.map(Number),m=e[7]?Number((e[7]+"00").substr(1,3)):0;let p=Date.UTC(r,s-1,o,l||0,u||0,d||0,m);const v=e[8];if(v&&v!=="Z"){let g=h0(v,!1);Math.abs(g)<30&&(g*=60),p-=6e4*g}return new Date(p)},stringify:({value:i})=>(i==null?void 0:i.toISOString().replace(/(T00:00:00)?\.000Z$/,""))??""},fN=[Jl,Kl,Dm,Rm,ZC,ek,fU,hU,mU,pU,cU,uU,dU,l0,fs,u0,c0,f0,nk,rk,Lm],hN=new Map([["core",sU],["failsafe",[Jl,Kl,Dm]],["json",lU],["yaml11",fN],["yaml-1.1",fN]]),mN={binary:l0,bool:a0,float:FC,floatExp:qC,floatNaN:BC,floatTime:rk,int:XC,intHex:JC,intOct:YC,intTime:nk,map:Jl,merge:fs,null:Rm,omap:u0,pairs:c0,seq:Kl,set:f0,timestamp:Lm},gU={"tag:yaml.org,2002:binary":l0,"tag:yaml.org,2002:merge":fs,"tag:yaml.org,2002:omap":u0,"tag:yaml.org,2002:pairs":c0,"tag:yaml.org,2002:set":f0,"tag:yaml.org,2002:timestamp":Lm};function qb(i,e,r){const s=hN.get(e);if(s&&!i)return r&&!s.includes(fs)?s.concat(fs):s.slice();let o=s;if(!o)if(Array.isArray(i))o=[];else{const l=Array.from(hN.keys()).filter(u=>u!=="yaml11").map(u=>JSON.stringify(u)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${l} or define customTags array`)}if(Array.isArray(i))for(const l of i)o=o.concat(l);else typeof i=="function"&&(o=i(o.slice()));return r&&(o=o.concat(fs)),o.reduce((l,u)=>{const d=typeof u=="string"?mN[u]:u;if(!d){const m=JSON.stringify(u),p=Object.keys(mN).map(v=>JSON.stringify(v)).join(", ");throw new Error(`Unknown custom tag ${m}; use one of ${p}`)}return l.includes(d)||l.push(d),l},[])}const yU=(i,e)=>i.key<e.key?-1:i.key>e.key?1:0;class Um{constructor({compat:e,customTags:r,merge:s,resolveKnownTags:o,schema:l,sortMapEntries:u,toStringDefaults:d}){this.compat=Array.isArray(e)?qb(e,"compat"):e?qb(null,e):null,this.name=typeof l=="string"&&l||"core",this.knownTags=o?gU:{},this.tags=qb(r,this.name,s),this.toStringOptions=d??null,Object.defineProperty(this,ca,{value:Jl}),Object.defineProperty(this,Ri,{value:Dm}),Object.defineProperty(this,Gl,{value:Kl}),this.sortMapEntries=typeof u=="function"?u:u===!0?yU:null}clone(){const e=Object.create(Um.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function bU(i,e){var m;const r=[];let s=e.directives===!0;if(e.directives!==!1&&i.directives){const p=i.directives.toString(i);p?(r.push(p),s=!0):i.directives.docStart&&(s=!0)}s&&r.push("---");const o=$C(i,e),{commentString:l}=o.options;if(i.commentBefore){r.length!==1&&r.unshift("");const p=l(i.commentBefore);r.unshift(ds(p,""))}let u=!1,d=null;if(i.contents){if(wt(i.contents)){if(i.contents.spaceBefore&&s&&r.push(""),i.contents.commentBefore){const g=l(i.contents.commentBefore);r.push(ds(g,""))}o.forceBlockIndent=!!i.comment,d=i.contents.comment}const p=d?void 0:()=>u=!0;let v=Il(i.contents,o,()=>d=null,p);d&&(v+=oo(v,"",l(d))),(v[0]==="|"||v[0]===">")&&r[r.length-1]==="---"?r[r.length-1]=`--- ${v}`:r.push(v)}else r.push(Il(i.contents,o));if((m=i.directives)!=null&&m.docEnd)if(i.comment){const p=l(i.comment);p.includes(`
951
+ `)?(r.push("..."),r.push(ds(p,""))):r.push(`... ${p}`)}else r.push("...");else{let p=i.comment;p&&u&&(p=p.replace(/^\n+/,"")),p&&((!u||d)&&r[r.length-1]!==""&&r.push(""),r.push(ds(l(p),"")))}return r.join(`
952
+ `)+`
953
+ `}let jm=class ik{constructor(e,r,s){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,kr,{value:gv});let o=null;typeof r=="function"||Array.isArray(r)?o=r:s===void 0&&r&&(s=r,r=void 0);const l=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,stringKeys:!1,uniqueKeys:!0,version:"1.2"},s);this.options=l;let{version:u}=l;s!=null&&s._directives?(this.directives=s._directives.atDocument(),this.directives.yaml.explicit&&(u=this.directives.yaml.version)):this.directives=new Tn({version:u}),this.setSchema(u,s),this.contents=e===void 0?null:this.createNode(e,o,s)}clone(){const e=Object.create(ik.prototype,{[kr]:{value:gv}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=wt(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){xl(this.contents)&&this.contents.add(e)}addIn(e,r){xl(this.contents)&&this.contents.addIn(e,r)}createAlias(e,r){if(!e.anchor){const s=OC(this);e.anchor=!r||s.has(r)?LC(r||"a",s):r}return new Nm(e.anchor)}createNode(e,r,s){let o;if(typeof r=="function")e=r.call({"":e},"",e),o=r;else if(Array.isArray(r)){const T=D=>typeof D=="number"||D instanceof String||D instanceof Number,k=r.filter(T).map(String);k.length>0&&(r=r.concat(k)),o=r}else s===void 0&&r&&(s=r,r=void 0);const{aliasDuplicateObjects:l,anchorPrefix:u,flow:d,keepUndefined:m,onTagObj:p,tag:v}=s??{},{onAnchor:g,setAnchors:y,sourceObjects:w}=G6(this,u||"a"),E={aliasDuplicateObjects:l??!0,keepUndefined:m??!1,onAnchor:g,onTagObj:p,replacer:o,schema:this.schema,sourceObjects:w},S=sd(e,v,E);return d&&vt(S)&&(S.flow=!0),y(),S}createPair(e,r,s={}){const o=this.createNode(e,null,s),l=this.createNode(r,null,s);return new fn(o,l)}delete(e){return xl(this.contents)?this.contents.delete(e):!1}deleteIn(e){return qu(e)?this.contents==null?!1:(this.contents=null,!0):xl(this.contents)?this.contents.deleteIn(e):!1}get(e,r){return vt(this.contents)?this.contents.get(e,r):void 0}getIn(e,r){return qu(e)?!r&&at(this.contents)?this.contents.value:this.contents:vt(this.contents)?this.contents.getIn(e,r):void 0}has(e){return vt(this.contents)?this.contents.has(e):!1}hasIn(e){return qu(e)?this.contents!==void 0:vt(this.contents)?this.contents.hasIn(e):!1}set(e,r){this.contents==null?this.contents=fm(this.schema,[e],r):xl(this.contents)&&this.contents.set(e,r)}setIn(e,r){qu(e)?this.contents=r:this.contents==null?this.contents=fm(this.schema,Array.from(e),r):xl(this.contents)&&this.contents.setIn(e,r)}setSchema(e,r={}){typeof e=="number"&&(e=String(e));let s;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new Tn({version:"1.1"}),s={resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new Tn({version:e}),s={resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,s=null;break;default:{const o=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(r.schema instanceof Object)this.schema=r.schema;else if(s)this.schema=new Um(Object.assign(s,r));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:r,mapAsMap:s,maxAliasCount:o,onAnchor:l,reviver:u}={}){const d={anchors:new Map,doc:this,keep:!e,mapAsMap:s===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},m=Cr(this.contents,r??"",d);if(typeof l=="function")for(const{count:p,res:v}of d.anchors.values())l(v,p);return typeof u=="function"?Ol(u,{"":m},"",m):m}toJSON(e,r){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:r})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const r=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${r}`)}return bU(this,e)}};function xl(i){if(vt(i))return!0;throw new Error("Expected a YAML collection as document contents")}class m0 extends Error{constructor(e,r,s,o){super(),this.name=e,this.code=s,this.message=o,this.pos=r}}class co extends m0{constructor(e,r,s){super("YAMLParseError",e,r,s)}}class sk extends m0{constructor(e,r,s){super("YAMLWarning",e,r,s)}}const mm=(i,e)=>r=>{if(r.pos[0]===-1)return;r.linePos=r.pos.map(d=>e.linePos(d));const{line:s,col:o}=r.linePos[0];r.message+=` at line ${s}, column ${o}`;let l=o-1,u=i.substring(e.lineStarts[s-1],e.lineStarts[s]).replace(/[\n\r]+$/,"");if(l>=60&&u.length>80){const d=Math.min(l-39,u.length-79);u="…"+u.substring(d),l-=d-1}if(u.length>80&&(u=u.substring(0,79)+"…"),s>1&&/^ *$/.test(u.substring(0,l))){let d=i.substring(e.lineStarts[s-2],e.lineStarts[s-1]);d.length>80&&(d=d.substring(0,79)+`…
954
+ `),u=d+u}if(/[^ ]/.test(u)){let d=1;const m=r.linePos[1];(m==null?void 0:m.line)===s&&m.col>o&&(d=Math.max(1,Math.min(m.col-o,80-l)));const p=" ".repeat(l)+"^".repeat(d);r.message+=`:
955
+
956
+ ${u}
957
+ ${p}
958
+ `}};function zl(i,{flow:e,indicator:r,next:s,offset:o,onError:l,parentIndent:u,startOnNewline:d}){let m=!1,p=d,v=d,g="",y="",w=!1,E=!1,S=null,T=null,k=null,D=null,I=null,z=null,$=null;for(const B of i)switch(E&&(B.type!=="space"&&B.type!=="newline"&&B.type!=="comma"&&l(B.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),E=!1),S&&(p&&B.type!=="comment"&&B.type!=="newline"&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),S=null),B.type){case"space":!e&&(r!=="doc-start"||(s==null?void 0:s.type)!=="flow-collection")&&B.source.includes(" ")&&(S=B),v=!0;break;case"comment":{v||l(B,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const H=B.source.substring(1)||" ";g?g+=y+H:g=H,y="",p=!1;break}case"newline":p?g?g+=B.source:(!z||r!=="seq-item-ind")&&(m=!0):y+=B.source,p=!0,w=!0,(T||k)&&(D=B),v=!0;break;case"anchor":T&&l(B,"MULTIPLE_ANCHORS","A node can have at most one anchor"),B.source.endsWith(":")&&l(B.offset+B.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),T=B,$??($=B.offset),p=!1,v=!1,E=!0;break;case"tag":{k&&l(B,"MULTIPLE_TAGS","A node can have at most one tag"),k=B,$??($=B.offset),p=!1,v=!1,E=!0;break}case r:(T||k)&&l(B,"BAD_PROP_ORDER",`Anchors and tags must be after the ${B.source} indicator`),z&&l(B,"UNEXPECTED_TOKEN",`Unexpected ${B.source} in ${e??"collection"}`),z=B,p=r==="seq-item-ind"||r==="explicit-key-ind",v=!1;break;case"comma":if(e){I&&l(B,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),I=B,p=!1,v=!1;break}default:l(B,"UNEXPECTED_TOKEN",`Unexpected ${B.type} token`),p=!1,v=!1}const Z=i[i.length-1],W=Z?Z.offset+Z.source.length:o;return E&&s&&s.type!=="space"&&s.type!=="newline"&&s.type!=="comma"&&(s.type!=="scalar"||s.source!=="")&&l(s.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),S&&(p&&S.indent<=u||(s==null?void 0:s.type)==="block-map"||(s==null?void 0:s.type)==="block-seq")&&l(S,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:I,found:z,spaceBefore:m,comment:g,hasNewline:w,anchor:T,tag:k,newlineAfterProp:D,end:W,start:$??W}}function ad(i){if(!i)return null;switch(i.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(i.source.includes(`
959
+ `))return!0;if(i.end){for(const e of i.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of i.items){for(const r of e.start)if(r.type==="newline")return!0;if(e.sep){for(const r of e.sep)if(r.type==="newline")return!0}if(ad(e.key)||ad(e.value))return!0}return!1;default:return!0}}function wv(i,e,r){if((e==null?void 0:e.type)==="flow-collection"){const s=e.end[0];s.indent===i&&(s.source==="]"||s.source==="}")&&ad(e)&&r(s,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function ak(i,e,r){const{uniqueKeys:s}=i.options;if(s===!1)return!1;const o=typeof s=="function"?s:(l,u)=>l===u||at(l)&&at(u)&&l.value===u.value;return e.some(l=>o(l.key,r))}const pN="All mapping items must start at the same column";function vU({composeNode:i,composeEmptyNode:e},r,s,o,l){var v;const u=(l==null?void 0:l.nodeClass)??ir,d=new u(r.schema);r.atRoot&&(r.atRoot=!1);let m=s.offset,p=null;for(const g of s.items){const{start:y,key:w,sep:E,value:S}=g,T=zl(y,{indicator:"explicit-key-ind",next:w??(E==null?void 0:E[0]),offset:m,onError:o,parentIndent:s.indent,startOnNewline:!0}),k=!T.found;if(k){if(w&&(w.type==="block-seq"?o(m,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in w&&w.indent!==s.indent&&o(m,"BAD_INDENT",pN)),!T.anchor&&!T.tag&&!E){p=T.end,T.comment&&(d.comment?d.comment+=`
960
+ `+T.comment:d.comment=T.comment);continue}(T.newlineAfterProp||ad(w))&&o(w??y[y.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((v=T.found)==null?void 0:v.indent)!==s.indent&&o(m,"BAD_INDENT",pN);r.atKey=!0;const D=T.end,I=w?i(r,w,T,o):e(r,D,y,null,T,o);r.schema.compat&&wv(s.indent,w,o),r.atKey=!1,ak(r,d.items,I)&&o(D,"DUPLICATE_KEY","Map keys must be unique");const z=zl(E??[],{indicator:"map-value-ind",next:S,offset:I.range[2],onError:o,parentIndent:s.indent,startOnNewline:!w||w.type==="block-scalar"});if(m=z.end,z.found){k&&((S==null?void 0:S.type)==="block-map"&&!z.hasNewline&&o(m,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),r.options.strict&&T.start<z.found.offset-1024&&o(I.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const $=S?i(r,S,z,o):e(r,m,E,null,z,o);r.schema.compat&&wv(s.indent,S,o),m=$.range[2];const Z=new fn(I,$);r.options.keepSourceTokens&&(Z.srcToken=g),d.items.push(Z)}else{k&&o(I.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),z.comment&&(I.comment?I.comment+=`
961
+ `+z.comment:I.comment=z.comment);const $=new fn(I);r.options.keepSourceTokens&&($.srcToken=g),d.items.push($)}}return p&&p<m&&o(p,"IMPOSSIBLE","Map comment with trailing content"),d.range=[s.offset,m,p??m],d}function wU({composeNode:i,composeEmptyNode:e},r,s,o,l){const u=(l==null?void 0:l.nodeClass)??ua,d=new u(r.schema);r.atRoot&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let m=s.offset,p=null;for(const{start:v,value:g}of s.items){const y=zl(v,{indicator:"seq-item-ind",next:g,offset:m,onError:o,parentIndent:s.indent,startOnNewline:!0});if(!y.found)if(y.anchor||y.tag||g)(g==null?void 0:g.type)==="block-seq"?o(y.end,"BAD_INDENT","All sequence items must start at the same column"):o(m,"MISSING_CHAR","Sequence item without - indicator");else{p=y.end,y.comment&&(d.comment=y.comment);continue}const w=g?i(r,g,y,o):e(r,y.end,v,null,y,o);r.schema.compat&&wv(s.indent,g,o),m=w.range[2],d.items.push(w)}return d.range=[s.offset,m,p??m],d}function fd(i,e,r,s){let o="";if(i){let l=!1,u="";for(const d of i){const{source:m,type:p}=d;switch(p){case"space":l=!0;break;case"comment":{r&&!l&&s(d,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const v=m.substring(1)||" ";o?o+=u+v:o=v,u="";break}case"newline":o&&(u+=m),l=!0;break;default:s(d,"UNEXPECTED_TOKEN",`Unexpected ${p} at node end`)}e+=m.length}}return{comment:o,offset:e}}const Fb="Block collections are not allowed within flow collections",Gb=i=>i&&(i.type==="block-map"||i.type==="block-seq");function _U({composeNode:i,composeEmptyNode:e},r,s,o,l){var T;const u=s.start.source==="{",d=u?"flow map":"flow sequence",m=(l==null?void 0:l.nodeClass)??(u?ir:ua),p=new m(r.schema);p.flow=!0;const v=r.atRoot;v&&(r.atRoot=!1),r.atKey&&(r.atKey=!1);let g=s.offset+s.start.source.length;for(let k=0;k<s.items.length;++k){const D=s.items[k],{start:I,key:z,sep:$,value:Z}=D,W=zl(I,{flow:d,indicator:"explicit-key-ind",next:z??($==null?void 0:$[0]),offset:g,onError:o,parentIndent:s.indent,startOnNewline:!1});if(!W.found){if(!W.anchor&&!W.tag&&!$&&!Z){k===0&&W.comma?o(W.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`):k<s.items.length-1&&o(W.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${d}`),W.comment&&(p.comment?p.comment+=`
962
+ `+W.comment:p.comment=W.comment),g=W.end;continue}!u&&r.options.strict&&ad(z)&&o(z,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(k===0)W.comma&&o(W.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${d}`);else if(W.comma||o(W.start,"MISSING_CHAR",`Missing , between ${d} items`),W.comment){let B="";e:for(const H of I)switch(H.type){case"comma":case"space":break;case"comment":B=H.source.substring(1);break e;default:break e}if(B){let H=p.items[p.items.length-1];pt(H)&&(H=H.value??H.key),H.comment?H.comment+=`
963
+ `+B:H.comment=B,W.comment=W.comment.substring(B.length+1)}}if(!u&&!$&&!W.found){const B=Z?i(r,Z,W,o):e(r,W.end,$,null,W,o);p.items.push(B),g=B.range[2],Gb(Z)&&o(B.range,"BLOCK_IN_FLOW",Fb)}else{r.atKey=!0;const B=W.end,H=z?i(r,z,W,o):e(r,B,I,null,W,o);Gb(z)&&o(H.range,"BLOCK_IN_FLOW",Fb),r.atKey=!1;const J=zl($??[],{flow:d,indicator:"map-value-ind",next:Z,offset:H.range[2],onError:o,parentIndent:s.indent,startOnNewline:!1});if(J.found){if(!u&&!W.found&&r.options.strict){if($)for(const X of $){if(X===J.found)break;if(X.type==="newline"){o(X,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}W.start<J.found.offset-1024&&o(J.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else Z&&("source"in Z&&((T=Z.source)==null?void 0:T[0])===":"?o(Z,"MISSING_CHAR",`Missing space after : in ${d}`):o(J.start,"MISSING_CHAR",`Missing , or : between ${d} items`));const ue=Z?i(r,Z,J,o):J.found?e(r,J.end,$,null,J,o):null;ue?Gb(Z)&&o(ue.range,"BLOCK_IN_FLOW",Fb):J.comment&&(H.comment?H.comment+=`
964
+ `+J.comment:H.comment=J.comment);const q=new fn(H,ue);if(r.options.keepSourceTokens&&(q.srcToken=D),u){const X=p;ak(r,X.items,H)&&o(B,"DUPLICATE_KEY","Map keys must be unique"),X.items.push(q)}else{const X=new ir(r.schema);X.flow=!0,X.items.push(q);const se=(ue??H).range;X.range=[H.range[0],se[1],se[2]],p.items.push(X)}g=ue?ue.range[2]:J.end}}const y=u?"}":"]",[w,...E]=s.end;let S=g;if((w==null?void 0:w.source)===y)S=w.offset+w.source.length;else{const k=d[0].toUpperCase()+d.substring(1),D=v?`${k} must end with a ${y}`:`${k} in block collection must be sufficiently indented and end with a ${y}`;o(g,v?"MISSING_CHAR":"BAD_INDENT",D),w&&w.source.length!==1&&E.unshift(w)}if(E.length>0){const k=fd(E,S,r.options.strict,o);k.comment&&(p.comment?p.comment+=`
965
+ `+k.comment:p.comment=k.comment),p.range=[s.offset,S,k.offset]}else p.range=[s.offset,S,S];return p}function Yb(i,e,r,s,o,l){const u=r.type==="block-map"?vU(i,e,r,s,l):r.type==="block-seq"?wU(i,e,r,s,l):_U(i,e,r,s,l),d=u.constructor;return o==="!"||o===d.tagName?(u.tag=d.tagName,u):(o&&(u.tag=o),u)}function SU(i,e,r,s,o){var y;const l=s.tag,u=l?e.directives.tagName(l.source,w=>o(l,"TAG_RESOLVE_FAILED",w)):null;if(r.type==="block-seq"){const{anchor:w,newlineAfterProp:E}=s,S=w&&l?w.offset>l.offset?w:l:w??l;S&&(!E||E.offset<S.offset)&&o(S,"MISSING_CHAR","Missing newline after block sequence props")}const d=r.type==="block-map"?"map":r.type==="block-seq"?"seq":r.start.source==="{"?"map":"seq";if(!l||!u||u==="!"||u===ir.tagName&&d==="map"||u===ua.tagName&&d==="seq")return Yb(i,e,r,o,u);let m=e.schema.tags.find(w=>w.tag===u&&w.collection===d);if(!m){const w=e.schema.knownTags[u];if((w==null?void 0:w.collection)===d)e.schema.tags.push(Object.assign({},w,{default:!1})),m=w;else return w?o(l,"BAD_COLLECTION_TYPE",`${w.tag} used for ${d} collection, but expects ${w.collection??"scalar"}`,!0):o(l,"TAG_RESOLVE_FAILED",`Unresolved tag: ${u}`,!0),Yb(i,e,r,o,u)}const p=Yb(i,e,r,o,u,m),v=((y=m.resolve)==null?void 0:y.call(m,p,w=>o(l,"TAG_RESOLVE_FAILED",w),e.options))??p,g=wt(v)?v:new Ce(v);return g.range=p.range,g.tag=u,m!=null&&m.format&&(g.format=m.format),g}function ok(i,e,r){const s=e.offset,o=EU(e,i.options.strict,r);if(!o)return{value:"",type:null,comment:"",range:[s,s,s]};const l=o.mode===">"?Ce.BLOCK_FOLDED:Ce.BLOCK_LITERAL,u=e.source?xU(e.source):[];let d=u.length;for(let S=u.length-1;S>=0;--S){const T=u[S][1];if(T===""||T==="\r")d=S;else break}if(d===0){const S=o.chomp==="+"&&u.length>0?`
966
+ `.repeat(Math.max(1,u.length-1)):"";let T=s+o.length;return e.source&&(T+=e.source.length),{value:S,type:l,comment:o.comment,range:[s,T,T]}}let m=e.indent+o.indent,p=e.offset+o.length,v=0;for(let S=0;S<d;++S){const[T,k]=u[S];if(k===""||k==="\r")o.indent===0&&T.length>m&&(m=T.length);else{T.length<m&&r(p+T.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(m=T.length),v=S,m===0&&!i.atRoot&&r(p,"BAD_INDENT","Block scalar values in collections must be indented");break}p+=T.length+k.length+1}for(let S=u.length-1;S>=d;--S)u[S][0].length>m&&(d=S+1);let g="",y="",w=!1;for(let S=0;S<v;++S)g+=u[S][0].slice(m)+`
967
+ `;for(let S=v;S<d;++S){let[T,k]=u[S];p+=T.length+k.length+1;const D=k[k.length-1]==="\r";if(D&&(k=k.slice(0,-1)),k&&T.length<m){const z=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;r(p-k.length-(D?2:1),"BAD_INDENT",z),T=""}l===Ce.BLOCK_LITERAL?(g+=y+T.slice(m)+k,y=`
968
+ `):T.length>m||k[0]===" "?(y===" "?y=`
969
+ `:!w&&y===`
970
+ `&&(y=`
971
+
972
+ `),g+=y+T.slice(m)+k,y=`
973
+ `,w=!0):k===""?y===`
974
+ `?g+=`
975
+ `:y=`
976
+ `:(g+=y+k,y=" ",w=!1)}switch(o.chomp){case"-":break;case"+":for(let S=d;S<u.length;++S)g+=`
977
+ `+u[S][0].slice(m);g[g.length-1]!==`
978
+ `&&(g+=`
979
+ `);break;default:g+=`
980
+ `}const E=s+o.length+e.source.length;return{value:g,type:l,comment:o.comment,range:[s,E,E]}}function EU({offset:i,props:e},r,s){if(e[0].type!=="block-scalar-header")return s(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=e[0],l=o[0];let u=0,d="",m=-1;for(let y=1;y<o.length;++y){const w=o[y];if(!d&&(w==="-"||w==="+"))d=w;else{const E=Number(w);!u&&E?u=E:m===-1&&(m=i+y)}}m!==-1&&s(m,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let p=!1,v="",g=o.length;for(let y=1;y<e.length;++y){const w=e[y];switch(w.type){case"space":p=!0;case"newline":g+=w.source.length;break;case"comment":r&&!p&&s(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),g+=w.source.length,v=w.source.substring(1);break;case"error":s(w,"UNEXPECTED_TOKEN",w.message),g+=w.source.length;break;default:{const E=`Unexpected token in block scalar header: ${w.type}`;s(w,"UNEXPECTED_TOKEN",E);const S=w.source;S&&typeof S=="string"&&(g+=S.length)}}}return{mode:l,indent:u,chomp:d,comment:v,length:g}}function xU(i){const e=i.split(/\n( *)/),r=e[0],s=r.match(/^( *)/),l=[s!=null&&s[1]?[s[1],r.slice(s[1].length)]:["",r]];for(let u=1;u<e.length;u+=2)l.push([e[u],e[u+1]]);return l}function lk(i,e,r){const{offset:s,type:o,source:l,end:u}=i;let d,m;const p=(y,w,E)=>r(s+y,w,E);switch(o){case"scalar":d=Ce.PLAIN,m=TU(l,p);break;case"single-quoted-scalar":d=Ce.QUOTE_SINGLE,m=NU(l,p);break;case"double-quoted-scalar":d=Ce.QUOTE_DOUBLE,m=AU(l,p);break;default:return r(i,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[s,s+l.length,s+l.length]}}const v=s+l.length,g=fd(u,v,e,r);return{value:m,type:d,comment:g.comment,range:[s,v,g.offset]}}function TU(i,e){let r="";switch(i[0]){case" ":r="a tab character";break;case",":r="flow indicator character ,";break;case"%":r="directive indicator character %";break;case"|":case">":{r=`block scalar indicator ${i[0]}`;break}case"@":case"`":{r=`reserved character ${i[0]}`;break}}return r&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${r}`),ck(i)}function NU(i,e){return(i[i.length-1]!=="'"||i.length===1)&&e(i.length,"MISSING_CHAR","Missing closing 'quote"),ck(i.slice(1,-1)).replace(/''/g,"'")}function ck(i){let e,r;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
981
+ `,"sy"),r=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
982
+ `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,r=/[ \t]*(.*?)[ \t]*\r?\n/sy}let s=e.exec(i);if(!s)return i;let o=s[1],l=" ",u=e.lastIndex;for(r.lastIndex=u;s=r.exec(i);)s[1]===""?l===`
983
+ `?o+=l:l=`
984
+ `:(o+=l+s[1],l=" "),u=r.lastIndex;const d=/[ \t]*(.*)/sy;return d.lastIndex=u,s=d.exec(i),o+l+((s==null?void 0:s[1])??"")}function AU(i,e){let r="";for(let s=1;s<i.length-1;++s){const o=i[s];if(!(o==="\r"&&i[s+1]===`
985
+ `))if(o===`
986
+ `){const{fold:l,offset:u}=CU(i,s);r+=l,s=u}else if(o==="\\"){let l=i[++s];const u=kU[l];if(u)r+=u;else if(l===`
987
+ `)for(l=i[s+1];l===" "||l===" ";)l=i[++s+1];else if(l==="\r"&&i[s+1]===`
988
+ `)for(l=i[++s+1];l===" "||l===" ";)l=i[++s+1];else if(l==="x"||l==="u"||l==="U"){const d={x:2,u:4,U:8}[l];r+=DU(i,s+1,d,e),s+=d}else{const d=i.substr(s-1,2);e(s-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),r+=d}}else if(o===" "||o===" "){const l=s;let u=i[s+1];for(;u===" "||u===" ";)u=i[++s+1];u!==`
989
+ `&&!(u==="\r"&&i[s+2]===`
990
+ `)&&(r+=s>l?i.slice(l,s+1):o)}else r+=o}return(i[i.length-1]!=='"'||i.length===1)&&e(i.length,"MISSING_CHAR",'Missing closing "quote'),r}function CU(i,e){let r="",s=i[e+1];for(;(s===" "||s===" "||s===`
991
+ `||s==="\r")&&!(s==="\r"&&i[e+2]!==`
992
+ `);)s===`
993
+ `&&(r+=`
994
+ `),e+=1,s=i[e+1];return r||(r=" "),{fold:r,offset:e}}const kU={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
995
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function DU(i,e,r,s){const o=i.substr(e,r),u=o.length===r&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(u)){const d=i.substr(e-2,r+2);return s(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${d}`),d}return String.fromCodePoint(u)}function uk(i,e,r,s){const{value:o,type:l,comment:u,range:d}=e.type==="block-scalar"?ok(i,e,s):lk(e,i.options.strict,s),m=r?i.directives.tagName(r.source,g=>s(r,"TAG_RESOLVE_FAILED",g)):null;let p;i.options.stringKeys&&i.atKey?p=i.schema[Ri]:m?p=RU(i.schema,o,m,r,s):e.type==="scalar"?p=MU(i,o,e,s):p=i.schema[Ri];let v;try{const g=p.resolve(o,y=>s(r??e,"TAG_RESOLVE_FAILED",y),i.options);v=at(g)?g:new Ce(g)}catch(g){const y=g instanceof Error?g.message:String(g);s(r??e,"TAG_RESOLVE_FAILED",y),v=new Ce(o)}return v.range=d,v.source=o,l&&(v.type=l),m&&(v.tag=m),p.format&&(v.format=p.format),u&&(v.comment=u),v}function RU(i,e,r,s,o){var d;if(r==="!")return i[Ri];const l=[];for(const m of i.tags)if(!m.collection&&m.tag===r)if(m.default&&m.test)l.push(m);else return m;for(const m of l)if((d=m.test)!=null&&d.test(e))return m;const u=i.knownTags[r];return u&&!u.collection?(i.tags.push(Object.assign({},u,{default:!1,test:void 0})),u):(o(s,"TAG_RESOLVE_FAILED",`Unresolved tag: ${r}`,r!=="tag:yaml.org,2002:str"),i[Ri])}function MU({atKey:i,directives:e,schema:r},s,o,l){const u=r.tags.find(d=>{var m;return(d.default===!0||i&&d.default==="key")&&((m=d.test)==null?void 0:m.test(s))})||r[Ri];if(r.compat){const d=r.compat.find(m=>{var p;return m.default&&((p=m.test)==null?void 0:p.test(s))})??r[Ri];if(u.tag!==d.tag){const m=e.tagString(u.tag),p=e.tagString(d.tag),v=`Value may be parsed as either ${m} or ${p}`;l(o,"TAG_RESOLVE_FAILED",v,!0)}}return u}function OU(i,e,r){if(e){r??(r=e.length);for(let s=r-1;s>=0;--s){let o=e[s];switch(o.type){case"space":case"comment":case"newline":i-=o.source.length;continue}for(o=e[++s];(o==null?void 0:o.type)==="space";)i+=o.source.length,o=e[++s];break}}return i}const LU={composeNode:dk,composeEmptyNode:p0};function dk(i,e,r,s){const o=i.atKey,{spaceBefore:l,comment:u,anchor:d,tag:m}=r;let p,v=!0;switch(e.type){case"alias":p=UU(i,e,s),(d||m)&&s(e,"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=uk(i,e,m,s),d&&(p.anchor=d.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":try{p=SU(LU,i,e,r,s),d&&(p.anchor=d.source.substring(1))}catch(g){const y=g instanceof Error?g.message:String(g);s(e,"RESOURCE_EXHAUSTION",y)}break;default:{const g=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;s(e,"UNEXPECTED_TOKEN",g),v=!1}}return p??(p=p0(i,e.offset,void 0,null,r,s)),d&&p.anchor===""&&s(d,"BAD_ALIAS","Anchor cannot be an empty string"),o&&i.options.stringKeys&&(!at(p)||typeof p.value!="string"||p.tag&&p.tag!=="tag:yaml.org,2002:str")&&s(m??e,"NON_STRING_KEY","With stringKeys, all keys must be strings"),l&&(p.spaceBefore=!0),u&&(e.type==="scalar"&&e.source===""?p.comment=u:p.commentBefore=u),i.options.keepSourceTokens&&v&&(p.srcToken=e),p}function p0(i,e,r,s,{spaceBefore:o,comment:l,anchor:u,tag:d,end:m},p){const v={type:"scalar",offset:OU(e,r,s),indent:-1,source:""},g=uk(i,v,d,p);return u&&(g.anchor=u.source.substring(1),g.anchor===""&&p(u,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(g.spaceBefore=!0),l&&(g.comment=l,g.range[2]=m),g}function UU({options:i},{offset:e,source:r,end:s},o){const l=new Nm(r.substring(1));l.source===""&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),l.source.endsWith(":")&&o(e+r.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const u=e+r.length,d=fd(s,u,i.strict,o);return l.range=[e,u,d.offset],d.comment&&(l.comment=d.comment),l}function jU(i,e,{offset:r,start:s,value:o,end:l},u){const d=Object.assign({_directives:e},i),m=new jm(void 0,d),p={atKey:!1,atRoot:!0,directives:m.directives,options:m.options,schema:m.schema},v=zl(s,{indicator:"doc-start",next:o??(l==null?void 0:l[0]),offset:r,onError:u,parentIndent:0,startOnNewline:!0});v.found&&(m.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!v.hasNewline&&u(v.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),m.contents=o?dk(p,o,v,u):p0(p,v.end,s,null,v,u);const g=m.contents.range[2],y=fd(l,g,!1,u);return y.comment&&(m.comment=y.comment),m.range=[r,g,y.offset],m}function Vu(i){if(typeof i=="number")return[i,i+1];if(Array.isArray(i))return i.length===2?i:[i[0],i[1]];const{offset:e,source:r}=i;return[e,e+(typeof r=="string"?r.length:1)]}function gN(i){var o;let e="",r=!1,s=!1;for(let l=0;l<i.length;++l){const u=i[l];switch(u[0]){case"#":e+=(e===""?"":s?`
996
+
997
+ `:`
998
+ `)+(u.substring(1)||" "),r=!0,s=!1;break;case"%":((o=i[l+1])==null?void 0:o[0])!=="#"&&(l+=1),r=!1;break;default:r||(s=!0),r=!1}}return{comment:e,afterEmptyLine:s}}class g0{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(r,s,o,l)=>{const u=Vu(r);l?this.warnings.push(new sk(u,s,o)):this.errors.push(new co(u,s,o))},this.directives=new Tn({version:e.version||"1.2"}),this.options=e}decorate(e,r){const{comment:s,afterEmptyLine:o}=gN(this.prelude);if(s){const l=e.contents;if(r)e.comment=e.comment?`${e.comment}
999
+ ${s}`:s;else if(o||e.directives.docStart||!l)e.commentBefore=s;else if(vt(l)&&!l.flow&&l.items.length>0){let u=l.items[0];pt(u)&&(u=u.key);const d=u.commentBefore;u.commentBefore=d?`${s}
1000
+ ${d}`:s}else{const u=l.commentBefore;l.commentBefore=u?`${s}
1001
+ ${u}`:s}}r?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:gN(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,r=!1,s=-1){for(const o of e)yield*this.next(o);yield*this.end(r,s)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(r,s,o)=>{const l=Vu(e);l[0]+=r,this.onError(l,"BAD_DIRECTIVE",s,o)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const r=jU(this.options,this.directives,e,this.onError);this.atDirectives&&!r.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(r,!1),this.doc&&(yield this.doc),this.doc=r,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const r=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,s=new co(Vu(e),"UNEXPECTED_TOKEN",r);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 co(Vu(e),"UNEXPECTED_TOKEN",s));break}this.doc.directives.docEnd=!0;const r=fd(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),r.comment){const s=this.doc.comment;this.doc.comment=s?`${s}
1002
+ ${r.comment}`:r.comment}this.doc.range[2]=r.offset;break}default:this.errors.push(new co(Vu(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,r=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const s=Object.assign({_directives:this.directives},this.options),o=new jm(void 0,s);this.atDirectives&&this.onError(r,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,r,r],this.decorate(o,!1),yield o}}}function VU(i,e=!0,r){if(i){const s=(o,l,u)=>{const d=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(r)r(d,l,u);else throw new co([d,d+1],l,u)};switch(i.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return lk(i,e,s);case"block-scalar":return ok({options:{strict:e}},i,s)}}return null}function $U(i,e){const{implicitKey:r=!1,indent:s,inFlow:o=!1,offset:l=-1,type:u="PLAIN"}=e,d=ud({type:u,value:i},{implicitKey:r,indent:s>0?" ".repeat(s):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),m=e.end??[{type:"newline",offset:-1,indent:s,source:`
1003
+ `}];switch(d[0]){case"|":case">":{const p=d.indexOf(`
1004
+ `),v=d.substring(0,p),g=d.substring(p+1)+`
1005
+ `,y=[{type:"block-scalar-header",offset:l,indent:s,source:v}];return fk(y,m)||y.push({type:"newline",offset:-1,indent:s,source:`
1006
+ `}),{type:"block-scalar",offset:l,indent:s,props:y,source:g}}case'"':return{type:"double-quoted-scalar",offset:l,indent:s,source:d,end:m};case"'":return{type:"single-quoted-scalar",offset:l,indent:s,source:d,end:m};default:return{type:"scalar",offset:l,indent:s,source:d,end:m}}}function HU(i,e,r={}){let{afterKey:s=!1,implicitKey:o=!1,inFlow:l=!1,type:u}=r,d="indent"in i?i.indent:null;if(s&&typeof d=="number"&&(d+=2),!u)switch(i.type){case"single-quoted-scalar":u="QUOTE_SINGLE";break;case"double-quoted-scalar":u="QUOTE_DOUBLE";break;case"block-scalar":{const p=i.props[0];if(p.type!=="block-scalar-header")throw new Error("Invalid block scalar header");u=p.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:u="PLAIN"}const m=ud({type:u,value:e},{implicitKey:o||d===null,indent:d!==null&&d>0?" ".repeat(d):"",inFlow:l,options:{blockQuote:!0,lineWidth:-1}});switch(m[0]){case"|":case">":IU(i,m);break;case'"':Xb(i,m,"double-quoted-scalar");break;case"'":Xb(i,m,"single-quoted-scalar");break;default:Xb(i,m,"scalar")}}function IU(i,e){const r=e.indexOf(`
1007
+ `),s=e.substring(0,r),o=e.substring(r+1)+`
1008
+ `;if(i.type==="block-scalar"){const l=i.props[0];if(l.type!=="block-scalar-header")throw new Error("Invalid block scalar header");l.source=s,i.source=o}else{const{offset:l}=i,u="indent"in i?i.indent:-1,d=[{type:"block-scalar-header",offset:l,indent:u,source:s}];fk(d,"end"in i?i.end:void 0)||d.push({type:"newline",offset:-1,indent:u,source:`
1009
+ `});for(const m of Object.keys(i))m!=="type"&&m!=="offset"&&delete i[m];Object.assign(i,{type:"block-scalar",indent:u,props:d,source:o})}}function fk(i,e){if(e)for(const r of e)switch(r.type){case"space":case"comment":i.push(r);break;case"newline":return i.push(r),!0}return!1}function Xb(i,e,r){switch(i.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":i.type=r,i.source=e;break;case"block-scalar":{const s=i.props.slice(1);let o=e.length;i.props[0].type==="block-scalar-header"&&(o-=i.props[0].source.length);for(const l of s)l.offset+=o;delete i.props,Object.assign(i,{type:r,source:e,end:s});break}case"block-map":case"block-seq":{const o={type:"newline",offset:i.offset+e.length,indent:i.indent,source:`
1010
+ `};delete i.items,Object.assign(i,{type:r,source:e,end:[o]});break}default:{const s="indent"in i?i.indent:-1,o="end"in i&&Array.isArray(i.end)?i.end.filter(l=>l.type==="space"||l.type==="comment"||l.type==="newline"):[];for(const l of Object.keys(i))l!=="type"&&l!=="offset"&&delete i[l];Object.assign(i,{type:r,indent:s,source:e,end:o})}}}const zU=i=>"type"in i?pm(i):Zh(i);function pm(i){switch(i.type){case"block-scalar":{let e="";for(const r of i.props)e+=pm(r);return e+i.source}case"block-map":case"block-seq":{let e="";for(const r of i.items)e+=Zh(r);return e}case"flow-collection":{let e=i.start.source;for(const r of i.items)e+=Zh(r);for(const r of i.end)e+=r.source;return e}case"document":{let e=Zh(i);if(i.end)for(const r of i.end)e+=r.source;return e}default:{let e=i.source;if("end"in i&&i.end)for(const r of i.end)e+=r.source;return e}}}function Zh({start:i,key:e,sep:r,value:s}){let o="";for(const l of i)o+=l.source;if(e&&(o+=pm(e)),r)for(const l of r)o+=l.source;return s&&(o+=pm(s)),o}const _v=Symbol("break visit"),PU=Symbol("skip children"),hk=Symbol("remove item");function fo(i,e){"type"in i&&i.type==="document"&&(i={start:i.start,value:i.value}),mk(Object.freeze([]),i,e)}fo.BREAK=_v;fo.SKIP=PU;fo.REMOVE=hk;fo.itemAtPath=(i,e)=>{let r=i;for(const[s,o]of e){const l=r==null?void 0:r[s];if(l&&"items"in l)r=l.items[o];else return}return r};fo.parentCollection=(i,e)=>{const r=fo.itemAtPath(i,e.slice(0,-1)),s=e[e.length-1][0],o=r==null?void 0:r[s];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function mk(i,e,r){let s=r(e,i);if(typeof s=="symbol")return s;for(const o of["key","value"]){const l=e[o];if(l&&"items"in l){for(let u=0;u<l.items.length;++u){const d=mk(Object.freeze(i.concat([[o,u]])),l.items[u],r);if(typeof d=="number")u=d-1;else{if(d===_v)return _v;d===hk&&(l.items.splice(u,1),u-=1)}}typeof s=="function"&&o==="key"&&(s=s(e,i))}}return typeof s=="function"?s(e,i):s}const Vm="\uFEFF",$m="",Hm="",od="",BU=i=>!!i&&"items"in i,qU=i=>!!i&&(i.type==="scalar"||i.type==="single-quoted-scalar"||i.type==="double-quoted-scalar"||i.type==="block-scalar");function FU(i){switch(i){case Vm:return"<BOM>";case $m:return"<DOC>";case Hm:return"<FLOW_END>";case od:return"<SCALAR>";default:return JSON.stringify(i)}}function pk(i){switch(i){case Vm:return"byte-order-mark";case $m:return"doc-mode";case Hm:return"flow-error-end";case od:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
1011
+ `:case`\r
1012
+ `: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(i[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 GU=Object.freeze(Object.defineProperty({__proto__:null,BOM:Vm,DOCUMENT:$m,FLOW_END:Hm,SCALAR:od,createScalarToken:$U,isCollection:BU,isScalar:qU,prettyToken:FU,resolveAsScalar:VU,setScalarValue:HU,stringify:zU,tokenType:pk,visit:fo},Symbol.toStringTag,{value:"Module"}));function Br(i){switch(i){case void 0:case" ":case`
1013
+ `:case"\r":case" ":return!0;default:return!1}}const yN=new Set("0123456789ABCDEFabcdef"),YU=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),$h=new Set(",[]{}"),XU=new Set(` ,[]{}
1014
+ \r `),Jb=i=>!i||XU.has(i);class gk{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(e,r=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null}this.atEnd=!r;let s=this.next??"stream";for(;s&&(r||this.hasChars(1));)s=yield*this.parseNext(s)}atLineEnd(){let e=this.pos,r=this.buffer[e];for(;r===" "||r===" ";)r=this.buffer[++e];return!r||r==="#"||r===`
1015
+ `?!0:r==="\r"?this.buffer[e+1]===`
1016
+ `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let r=this.buffer[e];if(this.indentNext>0){let s=0;for(;r===" ";)r=this.buffer[++s+e];if(r==="\r"){const o=this.buffer[s+e+1];if(o===`
1017
+ `||!o&&!this.atEnd)return e+s+1}return r===`
1018
+ `||s>=this.indentNext||!r&&!this.atEnd?e+s:-1}if(r==="-"||r==="."){const s=this.buffer.substr(e,3);if((s==="---"||s==="...")&&Br(this.buffer[e+3]))return-1}return e}getLine(){let e=this.lineEndPos;return(typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
1019
+ `,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){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 e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Vm&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let r=e.length,s=e.indexOf("#");for(;s!==-1;){const l=e[s-1];if(l===" "||l===" "){r=s-1;break}else s=e.indexOf("#",s+1)}for(;;){const l=e[r-1];if(l===" "||l===" ")r-=1;else break}const o=(yield*this.pushCount(r))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-o),this.pushNewline(),"stream"}if(this.atLineEnd()){const r=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-r),yield*this.pushNewline(),"stream"}return yield $m,yield*this.parseLineStart()}*parseLineStart(){const e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");const r=this.peek(3);if((r==="---"||r==="...")&&Br(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,r==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Br(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){const[e,r]=this.peek(2);if(!r&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Br(r)){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 e=this.getLine();if(e===null)return this.setNext("doc");let r=yield*this.pushIndicators();switch(e[r]){case"#":yield*this.pushCount(e.length-r);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(Jb),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return r+=yield*this.parseBlockScalarHeader(),r+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-r),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,r,s=-1;do e=yield*this.pushNewline(),e>0?(r=yield*this.pushSpaces(!1),this.indentValue=s=r):r=0,r+=yield*this.pushSpaces(!0);while(e+r>0);const o=this.getLine();if(o===null)return this.setNext("flow");if((s!==-1&&s<this.indentNext&&o[0]!=="#"||s===0&&(o.startsWith("---")||o.startsWith("..."))&&Br(o[3]))&&!(s===this.indentNext-1&&this.flowLevel===1&&(o[0]==="]"||o[0]==="}")))return this.flowLevel=0,yield Hm,yield*this.parseLineStart();let l=0;for(;o[l]===",";)l+=yield*this.pushCount(1),l+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(l+=yield*this.pushIndicators(),o[l]){case void 0:return"flow";case"#":return yield*this.pushCount(o.length-l),"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(Jb),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{const u=this.charAt(1);if(this.flowKey||Br(u)||u===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){const e=this.charAt(0);let r=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;r!==-1&&this.buffer[r+1]==="'";)r=this.buffer.indexOf("'",r+2);else for(;r!==-1;){let l=0;for(;this.buffer[r-1-l]==="\\";)l+=1;if(l%2===0)break;r=this.buffer.indexOf('"',r+1)}const s=this.buffer.substring(0,r);let o=s.indexOf(`
1020
+ `,this.pos);if(o!==-1){for(;o!==-1;){const l=this.continueScalar(o+1);if(l===-1)break;o=s.indexOf(`
1021
+ `,l)}o!==-1&&(r=o-(s[o-1]==="\r"?2:1))}if(r===-1){if(!this.atEnd)return this.setNext("quoted-scalar");r=this.buffer.length}return yield*this.pushToIndex(r+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){const r=this.buffer[++e];if(r==="+")this.blockScalarKeep=!0;else if(r>"0"&&r<="9")this.blockScalarIndent=Number(r)-1;else if(r!=="-")break}return yield*this.pushUntil(r=>Br(r)||r==="#")}*parseBlockScalar(){let e=this.pos-1,r=0,s;e:for(let l=this.pos;s=this.buffer[l];++l)switch(s){case" ":r+=1;break;case`
1022
+ `:e=l,r=0;break;case"\r":{const u=this.buffer[l+1];if(!u&&!this.atEnd)return this.setNext("block-scalar");if(u===`
1023
+ `)break}default:break e}if(!s&&!this.atEnd)return this.setNext("block-scalar");if(r>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=r:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{const l=this.continueScalar(e+1);if(l===-1)break;e=this.buffer.indexOf(`
1024
+ `,l)}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length}}let o=e+1;for(s=this.buffer[o];s===" ";)s=this.buffer[++o];if(s===" "){for(;s===" "||s===" "||s==="\r"||s===`
1025
+ `;)s=this.buffer[++o];e=o-1}else if(!this.blockScalarKeep)do{let l=e-1,u=this.buffer[l];u==="\r"&&(u=this.buffer[--l]);const d=l;for(;u===" ";)u=this.buffer[--l];if(u===`
1026
+ `&&l>=this.pos&&l+1+r>d)e=l;else break}while(!0);return yield od,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let r=this.pos-1,s=this.pos-1,o;for(;o=this.buffer[++s];)if(o===":"){const l=this.buffer[s+1];if(Br(l)||e&&$h.has(l))break;r=s}else if(Br(o)){let l=this.buffer[s+1];if(o==="\r"&&(l===`
1027
+ `?(s+=1,o=`
1028
+ `,l=this.buffer[s+1]):r=s),l==="#"||e&&$h.has(l))break;if(o===`
1029
+ `){const u=this.continueScalar(s+1);if(u===-1)break;s=Math.max(s,u-2)}}else{if(e&&$h.has(o))break;r=s}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield od,yield*this.pushToIndex(r+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,r){const s=this.buffer.slice(this.pos,e);return s?(yield s,this.pos+=s.length,s.length):(r&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Jb))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,r=this.charAt(1);if(Br(r)||e&&$h.has(r))return e?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 e=this.pos+2,r=this.buffer[e];for(;!Br(r)&&r!==">";)r=this.buffer[++e];return yield*this.pushToIndex(r===">"?e+1:e,!1)}else{let e=this.pos+1,r=this.buffer[e];for(;r;)if(YU.has(r))r=this.buffer[++e];else if(r==="%"&&yN.has(this.buffer[e+1])&&yN.has(this.buffer[e+2]))r=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
1030
+ `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
1031
+ `?yield*this.pushCount(2):0}*pushSpaces(e){let r=this.pos-1,s;do s=this.buffer[++r];while(s===" "||e&&s===" ");const o=r-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=r),o}*pushUntil(e){let r=this.pos,s=this.buffer[r];for(;!e(s);)s=this.buffer[++r];return yield*this.pushToIndex(r,!1)}}class yk{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let r=0,s=this.lineStarts.length;for(;r<s;){const l=r+s>>1;this.lineStarts[l]<e?r=l+1:s=l}if(this.lineStarts[r]===e)return{line:r+1,col:1};if(r===0)return{line:0,col:e};const o=this.lineStarts[r-1];return{line:r,col:e-o+1}}}}function aa(i,e){for(let r=0;r<i.length;++r)if(i[r].type===e)return!0;return!1}function bN(i){for(let e=0;e<i.length;++e)switch(i[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function bk(i){switch(i==null?void 0:i.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Hh(i){switch(i.type){case"document":return i.start;case"block-map":{const e=i.items[i.items.length-1];return e.sep??e.start}case"block-seq":return i.items[i.items.length-1].start;default:return[]}}function Tl(i){var r;if(i.length===0)return[];let e=i.length;e:for(;--e>=0;)switch(i[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((r=i[++e])==null?void 0:r.type)==="space";);return i.splice(e,i.length)}function vN(i){if(i.start.type==="flow-seq-start")for(const e of i.items)e.sep&&!e.value&&!aa(e.start,"explicit-key-ind")&&!aa(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,bk(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class y0{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new gk,this.onNewLine=e}*parse(e,r=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const s of this.lexer.lex(e,r))yield*this.next(s);r||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const r=pk(e);if(r)if(r==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=r,yield*this.step(),r){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const s=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:s,source:e}),this.offset+=e.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 e=this.peek(1);if(this.type==="doc-end"&&(e==null?void 0:e.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(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const r=e??this.stack.pop();if(!r)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield r;else{const s=this.peek(1);switch(r.type==="block-scalar"?r.indent="indent"in s?s.indent:0:r.type==="flow-collection"&&s.type==="document"&&(r.indent=0),r.type==="flow-collection"&&vN(r),s.type){case"document":s.value=r;break;case"block-scalar":s.props.push(r);break;case"block-map":{const o=s.items[s.items.length-1];if(o.value){s.items.push({start:[],key:r,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=r;else{Object.assign(o,{key:r,sep:[]}),this.onKeyLine=!o.explicitKey;return}break}case"block-seq":{const o=s.items[s.items.length-1];o.value?s.items.push({start:[],value:r}):o.value=r;break}case"flow-collection":{const o=s.items[s.items.length-1];!o||o.value?s.items.push({start:[],key:r,sep:[]}):o.sep?o.value=r:Object.assign(o,{key:r,sep:[]});return}default:yield*this.pop(),yield*this.pop(r)}if((s.type==="document"||s.type==="block-map"||s.type==="block-seq")&&(r.type==="block-map"||r.type==="block-seq")){const o=r.items[r.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&bN(o.start)===-1&&(r.indent===0||o.start.every(l=>l.type!=="comment"||l.indent<r.indent))&&(s.type==="document"?s.end=o.start:s.items.push({start:o.start}),r.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 e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{bN(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const r=this.startBlockValue(e);r?this.stack.push(r):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const r=Hh(this.peek(2)),s=Tl(r);let o;e.end?(o=e.end,o.push(this.sourceToken),delete e.end):o=[this.sourceToken];const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let r=this.source.indexOf(`
1032
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
1033
+ `,r)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var s;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,r.value){const o="end"in r.value?r.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else if(r.sep)r.sep.push(this.sourceToken);else{if(this.atIndentedComment(r.start,e.indent)){const o=e.items[e.items.length-2],l=(s=o==null?void 0:o.value)==null?void 0:s.end;if(Array.isArray(l)){Array.prototype.push.apply(l,r.start),l.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const o=!this.onKeyLine&&this.indent===e.indent,l=o&&(r.sep||r.explicitKey)&&this.type!=="seq-item-ind";let u=[];if(l&&r.sep&&!r.value){const d=[];for(let m=0;m<r.sep.length;++m){const p=r.sep[m];switch(p.type){case"newline":d.push(m);break;case"space":break;case"comment":p.indent>e.indent&&(d.length=0);break;default:d.length=0}}d.length>=2&&(u=r.sep.splice(d[1]))}switch(this.type){case"anchor":case"tag":l||r.value?(u.push(this.sourceToken),e.items.push({start:u}),this.onKeyLine=!0):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"explicit-key-ind":!r.sep&&!r.explicitKey?(r.start.push(this.sourceToken),r.explicitKey=!0):l||r.value?(u.push(this.sourceToken),e.items.push({start:u,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(r.explicitKey)if(r.sep)if(r.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(aa(r.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:u,key:null,sep:[this.sourceToken]}]});else if(bk(r.key)&&!aa(r.sep,"newline")){const d=Tl(r.start),m=r.key,p=r.sep;p.push(this.sourceToken),delete r.key,delete r.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:m,sep:p}]})}else u.length>0?r.sep=r.sep.concat(u,this.sourceToken):r.sep.push(this.sourceToken);else if(aa(r.start,"newline"))Object.assign(r,{key:null,sep:[this.sourceToken]});else{const d=Tl(r.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:d,key:null,sep:[this.sourceToken]}]})}else r.sep?r.value||l?e.items.push({start:u,key:null,sep:[this.sourceToken]}):aa(r.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const d=this.flowScalar(this.type);l||r.value?(e.items.push({start:u,key:d,sep:[]}),this.onKeyLine=!0):r.sep?this.stack.push(d):(Object.assign(r,{key:d,sep:[]}),this.onKeyLine=!0);return}default:{const d=this.startBlockValue(e);if(d){if(d.type==="block-seq"){if(!r.explicitKey&&r.sep&&!aa(r.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 o&&e.items.push({start:u});this.stack.push(d);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var s;const r=e.items[e.items.length-1];switch(this.type){case"newline":if(r.value){const o="end"in r.value?r.value.end:void 0,l=Array.isArray(o)?o[o.length-1]:void 0;(l==null?void 0:l.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else r.start.push(this.sourceToken);return;case"space":case"comment":if(r.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(r.start,e.indent)){const o=e.items[e.items.length-2],l=(s=o==null?void 0:o.value)==null?void 0:s.end;if(Array.isArray(l)){Array.prototype.push.apply(l,r.start),l.push(this.sourceToken),e.items.pop();return}}r.start.push(this.sourceToken)}return;case"anchor":case"tag":if(r.value||this.indent<=e.indent)break;r.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;r.value||aa(r.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return}if(this.indent>e.indent){const o=this.startBlockValue(e);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const r=e.items[e.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(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!r||r.sep?e.items.push({start:[this.sourceToken]}):r.start.push(this.sourceToken);return;case"map-value-ind":!r||r.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):Object.assign(r,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!r||r.value?e.items.push({start:[this.sourceToken]}):r.sep?r.sep.push(this.sourceToken):r.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!r||r.value?e.items.push({start:[],key:o,sep:[]}):r.sep?this.stack.push(o):Object.assign(r,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const s=this.startBlockValue(e);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===e.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 o=Hh(s),l=Tl(o);vN(e);const u=e.end.splice(1,e.end.length);u.push(this.sourceToken);const d={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:l,key:e,sep:u}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=d}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let r=this.source.indexOf(`
1034
+ `)+1;for(;r!==0;)this.onNewLine(this.offset+r),r=this.source.indexOf(`
1035
+ `,r)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){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 r=Hh(e),s=Tl(r);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 r=Hh(e),s=Tl(r);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,r){return this.type!=="comment"||this.indent<=r?!1:e.every(s=>s.type==="newline"||s.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){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:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function vk(i){const e=i.prettyErrors!==!1;return{lineCounter:i.lineCounter||e&&new yk||null,prettyErrors:e}}function JU(i,e={}){const{lineCounter:r,prettyErrors:s}=vk(e),o=new y0(r==null?void 0:r.addNewLine),l=new g0(e),u=Array.from(l.compose(o.parse(i)));if(s&&r)for(const d of u)d.errors.forEach(mm(i,r)),d.warnings.forEach(mm(i,r));return u.length>0?u:Object.assign([],{empty:!0},l.streamInfo())}function wk(i,e={}){const{lineCounter:r,prettyErrors:s}=vk(e),o=new y0(r==null?void 0:r.addNewLine),l=new g0(e);let u=null;for(const d of l.compose(o.parse(i),!0,i.length))if(!u)u=d;else if(u.options.logLevel!=="silent"){u.errors.push(new co(d.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&r&&(u.errors.forEach(mm(i,r)),u.warnings.forEach(mm(i,r))),u}function KU(i,e,r){let s;typeof e=="function"?s=e:r===void 0&&e&&typeof e=="object"&&(r=e);const o=wk(i,r);if(!o)return null;if(o.warnings.forEach(l=>HC(o.options.logLevel,l)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:s},r))}function WU(i,e,r){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:r===void 0&&e&&(r=e),typeof r=="string"&&(r=r.length),typeof r=="number"){const o=Math.round(r);r=o<1?void 0:o>8?{indent:8}:{indent:o}}if(i===void 0){const{keepUndefined:o}=r??e??{};if(!o)return}return po(i)&&!s?i.toString(r):new jm(i,s,r).toString(r)}const _k=Object.freeze(Object.defineProperty({__proto__:null,Alias:Nm,CST:GU,Composer:g0,Document:jm,Lexer:gk,LineCounter:yk,Pair:fn,Parser:y0,Scalar:Ce,Schema:Um,YAMLError:m0,YAMLMap:ir,YAMLParseError:co,YAMLSeq:ua,YAMLWarning:sk,isAlias:fa,isCollection:vt,isDocument:po,isMap:Yl,isNode:wt,isPair:pt,isScalar:at,isSeq:Xl,parse:KU,parseAllDocuments:JU,parseDocument:wk,stringify:WU,visit:go,visitAsync:Tm},Symbol.toStringTag,{value:"Module"})),QU=({action:i,model:e,sdkLanguage:r,testIdAttributeName:s,isInspecting:o,setIsInspecting:l,highlightedElement:u,setHighlightedElement:d})=>{const[m,p]=Y.useState("action"),[v]=Nr("shouldPopulateCanvasFromScreenshot",!1),g=Y.useMemo(()=>nj(i),[i]),{snapshotInfoUrl:y,snapshotUrl:w,popoutUrl:E}=Y.useMemo(()=>{const T=g[m];return e&&T?rj(e.traceUri,T,v):{snapshotInfoUrl:void 0,snapshotUrl:void 0,popoutUrl:void 0}},[g,m,v,e]),S=Y.useMemo(()=>y!==void 0?{snapshotInfoUrl:y,snapshotUrl:w,popoutUrl:E}:void 0,[y,w,E]);return x.jsxDEV("div",{className:"snapshot-tab vbox",children:[x.jsxDEV(Dv,{children:[x.jsxDEV(Pn,{className:"pick-locator",title:"Pick locator",icon:"target",toggled:o,onClick:()=>l(!o)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:68,columnNumber:7},void 0),x.jsxDEV("div",{className:"hbox",style:{height:"100%"},role:"tablist",children:["action","before","after"].map(T=>x.jsxDEV(hA,{id:T,title:tj(T),selected:m===T,onSelect:()=>p(T)},T,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:71,columnNumber:18},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:69,columnNumber:7},void 0),x.jsxDEV("div",{style:{flex:"auto"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:80,columnNumber:7},void 0),x.jsxDEV(Pn,{icon:"link-external",title:"Open snapshot in a new tab",disabled:!(S!=null&&S.popoutUrl),onClick:()=>{const T=window.open((S==null?void 0:S.popoutUrl)||"","_blank");T==null||T.addEventListener("DOMContentLoaded",()=>{new yC(T,{isUnderTest:Ek,sdkLanguage:r,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}).consoleApi.install()})}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:81,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:67,columnNumber:5},void 0),x.jsxDEV(ZU,{snapshotUrls:S,sdkLanguage:r,testIdAttributeName:s,isInspecting:o,setIsInspecting:l,highlightedElement:u,setHighlightedElement:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:89,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:66,columnNumber:10},void 0)},ZU=({snapshotUrls:i,sdkLanguage:e,testIdAttributeName:r,isInspecting:s,setIsInspecting:o,highlightedElement:l,setHighlightedElement:u})=>{const d=Y.useRef(null),m=Y.useRef(null),[p,v]=Y.useState({viewport:xk,url:""}),g=Y.useRef({iteration:0,visibleIframe:0});return Y.useEffect(()=>{(async()=>{const y=g.current.iteration+1,w=1-g.current.visibleIframe;g.current.iteration=y;const E=await ij(i==null?void 0:i.snapshotInfoUrl);if(g.current.iteration!==y)return;const S=[d,m][w].current;if(S){let T=()=>{};const k=new Promise(D=>T=D);try{S.addEventListener("load",T),S.addEventListener("error",T);const D=(i==null?void 0:i.snapshotUrl)||sj;S.contentWindow?S.contentWindow.location.replace(D):S.src=D,await k}catch{}finally{S.removeEventListener("load",T),S.removeEventListener("error",T)}}g.current.iteration===y&&(g.current.visibleIframe=w,v(E))})()},[i]),x.jsxDEV("div",{className:"vbox",tabIndex:0,onKeyDown:y=>{y.key==="Escape"&&s&&o(!1)},children:[x.jsxDEV(wN,{isInspecting:s,sdkLanguage:e,testIdAttributeName:r,highlightedElement:l,setHighlightedElement:u,iframe:d.current,iteration:g.current.iteration},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:168,columnNumber:5},void 0),x.jsxDEV(wN,{isInspecting:s,sdkLanguage:e,testIdAttributeName:r,highlightedElement:l,setHighlightedElement:u,iframe:m.current,iteration:g.current.iteration},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:176,columnNumber:5},void 0),x.jsxDEV(ej,{snapshotInfo:p,children:x.jsxDEV("div",{className:"snapshot-switcher",children:[x.jsxDEV("iframe",{ref:d,name:"snapshot",title:"DOM Snapshot",className:At(g.current.visibleIframe===0&&"snapshot-visible")},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:186,columnNumber:9},void 0),x.jsxDEV("iframe",{ref:m,name:"snapshot",title:"DOM Snapshot",className:At(g.current.visibleIframe===1&&"snapshot-visible")},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:187,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:185,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:184,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:158,columnNumber:10},void 0)},ej=({snapshotInfo:i,children:e})=>{const[r,s]=ho(),o=40,l={width:i.viewport.width,height:i.viewport.height},u={width:Math.max(l.width,480),height:Math.max(l.height+o,320)},d=Math.min(r.width/u.width,r.height/u.height,1),m={x:(r.width-u.width)/2,y:(r.height-u.height)/2};return x.jsxDEV("div",{ref:s,className:"snapshot-wrapper",children:x.jsxDEV("div",{className:"snapshot-container",style:{width:u.width+"px",height:u.height+"px",transform:`translate(${m.x}px, ${m.y}px) scale(${d})`},children:[x.jsxDEV(B6,{url:i.url},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:221,columnNumber:7},void 0),x.jsxDEV("div",{className:"snapshot-browser-body",children:x.jsxDEV("div",{style:{width:l.width+"px",height:l.height+"px"},children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:223,columnNumber:9},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:222,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:216,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:215,columnNumber:10},void 0)};function tj(i){return i==="before"?"Before":i==="after"?"After":i==="action"?"Action":i}const wN=({iframe:i,isInspecting:e,sdkLanguage:r,testIdAttributeName:s,highlightedElement:o,setHighlightedElement:l,iteration:u})=>(Y.useEffect(()=>{const d=o.lastEdited==="ariaSnapshot"?o.ariaSnapshot:void 0,m=o.lastEdited==="locator"?o.locator:void 0,p=!!d||!!m||e,v=[],g=new URLSearchParams(window.location.search).get("isUnderTest")==="true";try{Sk(v,p,r,s,g,"",i==null?void 0:i.contentWindow)}catch{}const y=d?Rv(_k,d):void 0,w=m?z6(r,m,s):void 0;for(const{recorder:E,frameSelector:S}of v){const T=w!=null&&w.startsWith(S)?w.substring(S.length).trim():void 0,k=(y==null?void 0:y.errors.length)===0?y.fragment:void 0;E.setUIState({mode:e?"inspecting":"none",actionSelector:T,ariaTemplate:k,language:r,testIdAttributeName:s,overlay:{offsetX:0}},{async elementPicked(D){l({locator:la(r,S+D.selector),ariaSnapshot:D.ariaSnapshot,lastEdited:"none"})},highlightUpdated(){for(const D of v)D.recorder!==E&&D.recorder.clearHighlight()}})}},[i,e,o,l,r,s,u]),x.jsxDEV(x.Fragment,{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/snapshotTab.tsx",lineNumber:295,columnNumber:10},void 0));function Sk(i,e,r,s,o,l,u){if(!u)return;const d=u;if(!d._recorder&&e){const m=new yC(u,{isUnderTest:o,sdkLanguage:r,testIdAttributeName:s,stableRafCount:1,browserName:"chromium",customEngines:[]}),p=new mv(m);d._injectedScript=m,d._recorder={recorder:p,frameSelector:l},o&&(window._weakRecordersForTest=window._weakRecordersForTest||new Set,window._weakRecordersForTest.add(new WeakRef(p)))}d._recorder&&i.push(d._recorder);for(let m=0;m<u.frames.length;++m){const p=u.frames[m],v=p.frameElement?d._injectedScript.generateSelectorSimple(p.frameElement,{omitInternalEngines:!0,testIdAttributeName:s})+" >> internal:control=enter-frame >> ":"";Sk(i,e,r,s,o,l+v,p)}}const $u=(i,e,r=!1)=>{if(!i)return;const s=i[e];if(s){if(!i.pageId){console.error("snapshot action must have a pageId");return}return{action:i,snapshotName:s,pageId:i.pageId,point:i.point,hasInputTarget:r}}};function nj(i){if(!i)return{};let e=$u(i,"beforeSnapshot");if(!e){for(let o=pT(i);o;o=pT(o))if(o.endTime<=i.startTime&&o.afterSnapshot){e=$u(o,"afterSnapshot");break}}let r=$u(i,"afterSnapshot");if(!r){let o;for(let l=gT(i);l&&l.startTime<=i.endTime;l=gT(l))l.endTime>i.endTime||!l.afterSnapshot||o&&o.endTime>l.endTime||(o=l);o?r=$u(o,"afterSnapshot"):r=e}const s=$u(i,"inputSnapshot",!0)??r;return s&&(s.point=i.point),{action:s,before:e,after:r}}const Ek=new URLSearchParams(window.location.search).has("isUnderTest");function rj(i,e,r){const s=new URLSearchParams;s.set("trace",i),s.set("name",e.snapshotName),Ek&&s.set("isUnderTest","true"),e.point&&(s.set("pointX",String(e.point.x)),s.set("pointY",String(e.point.y)),e.hasInputTarget&&s.set("hasInputTarget","1")),r&&s.set("shouldPopulateCanvasFromScreenshot","1");const o=new URL(`snapshot/${e.pageId}?${s.toString()}`,window.location.href).toString(),l=new URL(`snapshotInfo/${e.pageId}?${s.toString()}`,window.location.href).toString(),u=new URLSearchParams;u.set("r",o),u.set("trace",i);const d=new URL(`snapshot.html?${u.toString()}`,window.location.href).toString();return{snapshotInfoUrl:l,snapshotUrl:o,popoutUrl:d}}async function ij(i){const e={url:"",viewport:xk,timestamp:void 0,wallTime:void 0};if(i){const s=await(await fetch(i)).json();s.error||(e.url=s.url,e.viewport=s.viewport,e.timestamp=s.timestamp,e.wallTime=s.wallTime)}return e}const xk={width:1280,height:720},sj='data:text/html,<body style="background: #ddd"></body>',Tk={width:200,height:45},Al=2.5,aj=Tk.height+Al*2,oj=({boundaries:i,previewPoint:e})=>{var v,g;const r=hs(),[s,o]=ho(),l=Y.useRef(null);let u=0;if(l.current&&e){const y=l.current.getBoundingClientRect();u=(e.clientY-y.top+l.current.scrollTop)/aj|0}const d=(g=(v=r==null?void 0:r.pages)==null?void 0:v[u])==null?void 0:g.screencastFrames;let m,p;if(e!==void 0&&d&&d.length){const y=i.minimum+(i.maximum-i.minimum)*e.x/s.width;m=d[SN(d,y,Nk)-1];const w={width:Math.min(800,window.innerWidth/2|0),height:Math.min(800,window.innerHeight/2|0)};p=m?Ak({width:m.width,height:m.height},w):void 0}return x.jsxDEV("div",{className:"film-strip",ref:o,children:[x.jsxDEV("div",{className:"film-strip-lanes",ref:l,children:r==null?void 0:r.pages.map((y,w)=>y.screencastFrames.length?x.jsxDEV(lj,{boundaries:i,page:y,width:s.width},w,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:67,columnNumber:72},void 0):null)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:66,columnNumber:5},void 0),r&&(e==null?void 0:e.x)!==void 0&&x.jsxDEV("div",{className:"film-strip-hover",style:{top:s.bottom+5,left:Math.min(e.x,s.width-(p?p.width:0)-10)},children:[e.action&&x.jsxDEV("div",{className:"film-strip-hover-title",children:Cv(e.action,e)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:79,columnNumber:33},void 0),m&&p&&x.jsxDEV("div",{style:{width:p.width,height:p.height},children:x.jsxDEV("img",{src:r.createRelativeUrl(`sha1/${m.sha1}`),width:p.width,height:p.height},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:81,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:80,columnNumber:41},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:75,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:65,columnNumber:10},void 0)},lj=({boundaries:i,page:e,width:r})=>{const s=hs(),o={width:0,height:0},l=e.screencastFrames;for(const T of l)o.width=Math.max(o.width,T.width),o.height=Math.max(o.height,T.height);const u=Ak(o,Tk),d=l[0].timestamp,m=l[l.length-1].timestamp,p=i.maximum-i.minimum,v=(d-i.minimum)/p*r,g=(i.maximum-m)/p*r,w=(m-d)/p*r/(u.width+2*Al)|0,E=(m-d)/w,S=[];for(let T=0;d&&E&&T<w;++T){const k=d+E*T,D=SN(l,k,Nk)-1;S.push(x.jsxDEV("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+l[D].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:Al,marginRight:Al}},T,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:115,columnNumber:17},void 0))}return S.push(x.jsxDEV("div",{className:"film-strip-frame",style:{width:u.width,height:u.height,backgroundImage:`url(${s==null?void 0:s.createRelativeUrl("sha1/"+l[l.length-1].sha1)})`,backgroundSize:`${u.width}px ${u.height}px`,margin:Al,marginRight:Al}},S.length,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:125,columnNumber:15},void 0)),x.jsxDEV("div",{className:"film-strip-lane",style:{marginLeft:v+"px",marginRight:g+"px"},children:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/filmStrip.tsx",lineNumber:134,columnNumber:10},void 0)};function Nk(i,e){return i-e.timestamp}function Ak(i,e){const r=Math.max(i.width/e.width,i.height/e.height);return{width:i.width/r|0,height:i.height/r|0}}const cj=({model:i,boundaries:e,consoleEntries:r,networkResources:s,onSelected:o,highlightedAction:l,highlightedResourceOrdinal:u,highlightedConsoleEntryOrdinal:d,selectedTime:m,setSelectedTime:p,sdkLanguage:v})=>{const[g,y]=ho(),[w,E]=Y.useState(),[S,T]=Y.useState(),[k]=Nr("actionsFilter",[]),{offsets:D,curtainLeft:I,curtainRight:z}=Y.useMemo(()=>{let X=m||e;if(w&&w.startX!==w.endX){const de=Ci(g.width,e,w.startX),ge=Ci(g.width,e,w.endX);X={minimum:Math.min(de,ge),maximum:Math.max(de,ge)}}const se=xr(g.width,e,X.minimum),ne=xr(g.width,e,e.maximum)-xr(g.width,e,X.maximum);return{offsets:uj(g.width,e),curtainLeft:se,curtainRight:ne}},[m,e,w,g]),$=Y.useMemo(()=>i==null?void 0:i.filteredActions(k),[i,k]),Z=Y.useMemo(()=>{const X=[];for(const se of $||[])X.push({action:se,leftTime:se.startTime,rightTime:se.endTime||e.maximum,leftPosition:xr(g.width,e,se.startTime),rightPosition:xr(g.width,e,se.endTime||e.maximum),active:!1,error:!!se.error});for(const se of(i==null?void 0:i.resources)||[]){const Fe=se._monotonicTime,ne=se._monotonicTime+se.time;X.push({resource:se,leftTime:Fe,rightTime:ne,leftPosition:xr(g.width,e,Fe),rightPosition:xr(g.width,e,ne),active:!1,error:!1})}for(const se of r||[])X.push({consoleMessage:se,leftTime:se.timestamp,rightTime:se.timestamp,leftPosition:xr(g.width,e,se.timestamp),rightPosition:xr(g.width,e,se.timestamp),active:!1,error:se.isError});return X},[i,$,r,e,g]);Y.useMemo(()=>{for(const X of Z)l?X.active=X.action===l:u!==void 0?X.active=X.resource===(s==null?void 0:s[u]):d!==void 0?X.active=X.consoleMessage===(r==null?void 0:r[d]):X.active=!1},[Z,l,u,d,r,s]);const W=Y.useCallback(X=>{if(T(void 0),!y.current)return;const se=X.clientX-y.current.getBoundingClientRect().left,Fe=Ci(g.width,e,se),ne=m?xr(g.width,e,m.minimum):0,de=m?xr(g.width,e,m.maximum):0;m&&Math.abs(se-ne)<10?E({startX:de,endX:se,type:"resize"}):m&&Math.abs(se-de)<10?E({startX:ne,endX:se,type:"resize"}):m&&Fe>m.minimum&&Fe<m.maximum&&X.clientY-y.current.getBoundingClientRect().top<20?E({startX:ne,endX:de,pivot:se,type:"move"}):E({startX:se,endX:se,type:"resize"})},[e,g,y,m]),B=Y.useCallback(X=>{if(!y.current)return;const se=X.clientX-y.current.getBoundingClientRect().left,Fe=Ci(g.width,e,se),ne=$==null?void 0:$.findLast(Ge=>Ge.startTime<=Fe);if(!X.buttons){E(void 0);return}if(ne&&o(ne),!w)return;let de=w;if(w.type==="resize")de={...w,endX:se};else{const Ge=se-w.pivot;let Q=w.startX+Ge,ve=w.endX+Ge;Q<0&&(Q=0,ve=Q+(w.endX-w.startX)),ve>g.width&&(ve=g.width,Q=ve-(w.endX-w.startX)),de={...w,startX:Q,endX:ve,pivot:se}}E(de);const ge=Ci(g.width,e,de.startX),je=Ci(g.width,e,de.endX);ge!==je&&p({minimum:Math.min(ge,je),maximum:Math.max(ge,je)})},[e,w,g,$,o,y,p]),H=Y.useCallback(()=>{if(T(void 0),!!w){if(w.startX!==w.endX){const X=Ci(g.width,e,w.startX),se=Ci(g.width,e,w.endX);p({minimum:Math.min(X,se),maximum:Math.max(X,se)})}else{const X=Ci(g.width,e,w.startX),se=$==null?void 0:$.findLast(Fe=>Fe.startTime<=X);se&&o(se),p(void 0)}E(void 0)}},[e,w,g,$,p,o]),J=Y.useCallback(X=>{if(!y.current)return;const se=X.clientX-y.current.getBoundingClientRect().left,Fe=Ci(g.width,e,se),ne=$==null?void 0:$.findLast(de=>de.startTime<=Fe);T({x:se,clientY:X.clientY,action:ne,sdkLanguage:v})},[e,g,$,y,v]),ue=Y.useCallback(()=>{T(void 0)},[]),q=Y.useCallback(()=>{p(void 0)},[p]);return x.jsxDEV("div",{className:"timeline-view-container",children:[!!w&&x.jsxDEV(aA,{cursor:(w==null?void 0:w.type)==="resize"?"ew-resize":"grab",onPaneMouseUp:H,onPaneMouseMove:B,onPaneDoubleClick:q},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:236,columnNumber:22},void 0),x.jsxDEV("div",{ref:y,className:"timeline-view",onMouseDown:W,onMouseMove:J,onMouseLeave:ue,children:[x.jsxDEV("div",{className:"timeline-grid",children:D.map((X,se)=>x.jsxDEV("div",{className:"timeline-divider",style:{left:X.position+"px"},children:x.jsxDEV("div",{className:"timeline-time",children:Nn(X.time-e.minimum)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:249,columnNumber:13},void 0)},se,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:248,columnNumber:18},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:246,columnNumber:7},void 0),x.jsxDEV("div",{style:{height:8}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:253,columnNumber:7},void 0),x.jsxDEV(oj,{boundaries:e,previewPoint:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:254,columnNumber:7},void 0),x.jsxDEV("div",{className:"timeline-bars",children:Z.filter(X=>!X.action||X.action.class!=="Test").map((X,se)=>x.jsxDEV("div",{className:At("timeline-bar",X.action&&"action",X.resource&&"network",X.consoleMessage&&"console-message",X.active&&"active",X.error&&"error"),style:{left:X.leftPosition,width:Math.max(5,X.rightPosition-X.leftPosition),top:dj(X),bottom:0}},se,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:259,columnNumber:22},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:255,columnNumber:7},void 0),x.jsxDEV("div",{className:"timeline-marker",style:{display:S!==void 0?"block":"none",left:((S==null?void 0:S.x)||0)+"px"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:275,columnNumber:7},void 0),m&&x.jsxDEV("div",{className:"timeline-window",children:[x.jsxDEV("div",{className:"timeline-window-curtain left",style:{width:I}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:280,columnNumber:9},void 0),x.jsxDEV("div",{className:"timeline-window-resizer",style:{left:-5}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:281,columnNumber:9},void 0),x.jsxDEV("div",{className:"timeline-window-center",children:x.jsxDEV("div",{className:"timeline-window-drag"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:283,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:282,columnNumber:9},void 0),x.jsxDEV("div",{className:"timeline-window-resizer",style:{left:5}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:285,columnNumber:9},void 0),x.jsxDEV("div",{className:"timeline-window-curtain right",style:{width:z}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:286,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:279,columnNumber:24},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:241,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/timeline.tsx",lineNumber:235,columnNumber:10},void 0)};function uj(i,e){let s=i/64;const o=e.maximum-e.minimum,l=i/o;let u=o/s;const d=Math.ceil(Math.log(u)/Math.LN10);u=Math.pow(10,d),u*l>=320&&(u=u/5),u*l>=128&&(u=u/2);const m=e.minimum;let p=e.maximum;p+=64/l,s=Math.ceil((p-m)/u),u||(s=0);const v=[];for(let g=0;g<s;++g){const y=m+u*g;v.push({position:xr(i,e,y),time:y})}return v}function xr(i,e,r){return(r-e.minimum)/(e.maximum-e.minimum)*i}function Ci(i,e,r){return r/i*(e.maximum-e.minimum)+e.minimum}function dj(i){return i.resource?25:20}const fj=({model:i})=>{var r,s;if(!i)return x.jsxDEV(x.Fragment,{},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:26,columnNumber:12},void 0);const e=i.wallTime!==void 0?new Date(i.wallTime).toLocaleString(void 0,{timeZoneName:"short"}):void 0;return x.jsxDEV("div",{style:{flex:"auto",display:"block",overflow:"hidden auto"},children:[x.jsxDEV("div",{className:"call-section",style:{paddingTop:2},children:"Time"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:31,columnNumber:5},void 0),!!e&&x.jsxDEV("div",{className:"call-line",children:["start time:",x.jsxDEV("span",{className:"call-value datetime",title:e,children:e},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:32,columnNumber:58},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:32,columnNumber:20},void 0),x.jsxDEV("div",{className:"call-line",children:["duration:",x.jsxDEV("span",{className:"call-value number",title:Nn(i.endTime-i.startTime),children:Nn(i.endTime-i.startTime)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:33,columnNumber:41},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:33,columnNumber:5},void 0),x.jsxDEV("div",{className:"call-section",children:"Browser"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:34,columnNumber:5},void 0),x.jsxDEV("div",{className:"call-line",children:["engine:",x.jsxDEV("span",{className:"call-value string",title:i.browserName,children:i.browserName},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:35,columnNumber:39},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:35,columnNumber:5},void 0),i.channel&&x.jsxDEV("div",{className:"call-line",children:["channel:",x.jsxDEV("span",{className:"call-value string",title:i.channel,children:i.channel},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:36,columnNumber:58},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:36,columnNumber:23},void 0),i.platform&&x.jsxDEV("div",{className:"call-line",children:["platform:",x.jsxDEV("span",{className:"call-value string",title:i.platform,children:i.platform},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:37,columnNumber:60},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:37,columnNumber:24},void 0),i.playwrightVersion&&x.jsxDEV("div",{className:"call-line",children:["playwright version:",x.jsxDEV("span",{className:"call-value string",title:i.playwrightVersion,children:i.playwrightVersion},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:38,columnNumber:79},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:38,columnNumber:33},void 0),i.options.userAgent&&x.jsxDEV("div",{className:"call-line",children:["user agent:",x.jsxDEV("span",{className:"call-value datetime",title:i.options.userAgent,children:i.options.userAgent},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:39,columnNumber:71},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:39,columnNumber:33},void 0),i.options.baseURL&&x.jsxDEV(x.Fragment,{children:[x.jsxDEV("div",{className:"call-section",style:{paddingTop:2},children:"Config"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:42,columnNumber:9},void 0),x.jsxDEV("div",{className:"call-line",children:["baseURL:",x.jsxDEV("a",{className:"call-value string",href:i.options.baseURL,title:i.options.baseURL,target:"_blank",rel:"noopener noreferrer",children:i.options.baseURL},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:43,columnNumber:44},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:43,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:41,columnNumber:7},void 0),x.jsxDEV("div",{className:"call-section",children:"Viewport"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:46,columnNumber:5},void 0),i.options.viewport&&x.jsxDEV("div",{className:"call-line",children:["width:",x.jsxDEV("span",{className:"call-value number",title:String(!!((r=i.options.viewport)!=null&&r.width)),children:i.options.viewport.width},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:47,columnNumber:65},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:47,columnNumber:32},void 0),i.options.viewport&&x.jsxDEV("div",{className:"call-line",children:["height:",x.jsxDEV("span",{className:"call-value number",title:String(!!((s=i.options.viewport)!=null&&s.height)),children:i.options.viewport.height},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:48,columnNumber:66},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:48,columnNumber:32},void 0),x.jsxDEV("div",{className:"call-line",children:["is mobile:",x.jsxDEV("span",{className:"call-value boolean",title:String(!!i.options.isMobile),children:String(!!i.options.isMobile)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:49,columnNumber:42},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:49,columnNumber:5},void 0),i.options.deviceScaleFactor&&x.jsxDEV("div",{className:"call-line",children:["device scale:",x.jsxDEV("span",{className:"call-value number",title:String(i.options.deviceScaleFactor),children:String(i.options.deviceScaleFactor)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:50,columnNumber:81},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:50,columnNumber:41},void 0),x.jsxDEV("div",{className:"call-section",children:"Counts"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:51,columnNumber:5},void 0),x.jsxDEV("div",{className:"call-line",children:["pages:",x.jsxDEV("span",{className:"call-value number",children:i.pages.length},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:52,columnNumber:38},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:52,columnNumber:5},void 0),x.jsxDEV("div",{className:"call-line",children:["actions:",x.jsxDEV("span",{className:"call-value number",children:i.actions.length},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:53,columnNumber:40},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:53,columnNumber:5},void 0),x.jsxDEV("div",{className:"call-line",children:["events:",x.jsxDEV("span",{className:"call-value number",children:i.events.length},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:54,columnNumber:39},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:54,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/metadataView.tsx",lineNumber:30,columnNumber:10},void 0)},hj=({annotations:i})=>i.length?x.jsxDEV("div",{className:"annotations-tab",children:i.map((e,r)=>x.jsxDEV("div",{className:"annotation-item",children:[x.jsxDEV("span",{style:{fontWeight:"bold"},children:e.type},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/annotationsTab.tsx",lineNumber:33,columnNumber:9},void 0),e.description&&x.jsxDEV("span",{children:[": ",cA(e.description)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/annotationsTab.tsx",lineNumber:34,columnNumber:36},void 0)]},`annotation-${r}`,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/annotationsTab.tsx",lineNumber:32,columnNumber:14},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/annotationsTab.tsx",lineNumber:30,columnNumber:10},void 0):x.jsxDEV(mo,{text:"No annotations"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/annotationsTab.tsx",lineNumber:28,columnNumber:12},void 0),mj=({sdkLanguage:i,isInspecting:e,setIsInspecting:r,highlightedElement:s,setHighlightedElement:o})=>{const[l,u]=Y.useState(),d=Y.useCallback(m=>{const{errors:p}=Rv(_k,m,{prettyErrors:!1}),v=p.map(g=>({message:g.message,line:g.range[1].line,column:g.range[1].col,type:"subtle-error"}));u(v),o({...s,ariaSnapshot:m,lastEdited:"ariaSnapshot"}),r(!1)},[s,o,r]);return x.jsxDEV("div",{style:{flex:"auto",backgroundColor:"var(--vscode-sideBar-background)",padding:"0 10px 10px 10px",overflow:"auto"},children:[x.jsxDEV("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[x.jsxDEV("div",{children:"Locator"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:54,columnNumber:7},void 0),x.jsxDEV(Pn,{style:{margin:"0 4px"},title:"Pick locator",icon:"target",toggled:e,onClick:()=>r(!e)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:55,columnNumber:7},void 0),x.jsxDEV("div",{style:{flex:"auto"}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:56,columnNumber:7},void 0),x.jsxDEV(Pn,{icon:"files",title:"Copy locator",onClick:()=>{sT(s.locator||"")}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:57,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:53,columnNumber:5},void 0),x.jsxDEV("div",{style:{height:50},children:x.jsxDEV($l,{text:s.locator||"",highlighter:i,isFocused:!0,wrapLines:!0,onChange:m=>{o({...s,locator:m,lastEdited:"locator"}),r(!1)}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:62,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:61,columnNumber:5},void 0),x.jsxDEV("div",{className:"hbox",style:{lineHeight:"28px",color:"var(--vscode-editorCodeLens-foreground)"},children:[x.jsxDEV("div",{style:{flex:"auto"},children:"Aria snapshot"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:70,columnNumber:7},void 0),x.jsxDEV(Pn,{icon:"files",title:"Copy snapshot",onClick:()=>{sT(s.ariaSnapshot||"")}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:71,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:69,columnNumber:5},void 0),x.jsxDEV("div",{style:{height:150},children:x.jsxDEV($l,{text:s.ariaSnapshot||"",highlighter:"yaml",wrapLines:!1,highlight:l,onChange:d},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:76,columnNumber:7},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:75,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/inspectorTab.tsx",lineNumber:52,columnNumber:10},void 0)},pj=({className:i,style:e,open:r,isModal:s,minWidth:o,verticalOffset:l,requestClose:u,anchor:d,dataTestId:m,children:p})=>{const v=Y.useRef(null),[g,y]=Y.useState(0),[w]=Kb(v),[E,S]=Kb(d),T=d?gj(w,E,l):void 0;return Y.useEffect(()=>{const k=I=>{!v.current||!(I.target instanceof Node)||v.current.contains(I.target)||u==null||u()},D=I=>{I.key==="Escape"&&(u==null||u())};return r?(document.addEventListener("mousedown",k),document.addEventListener("keydown",D),()=>{document.removeEventListener("mousedown",k),document.removeEventListener("keydown",D)}):()=>{}},[r,u]),Y.useLayoutEffect(()=>S(),[r,S]),Y.useEffect(()=>{const k=()=>y(D=>D+1);return window.addEventListener("resize",k),()=>{window.removeEventListener("resize",k)}},[]),Y.useLayoutEffect(()=>{v.current&&(r?s?v.current.showModal():v.current.show():v.current.close())},[r,s]),x.jsxDEV("dialog",{ref:v,style:{position:"fixed",margin:T?0:void 0,zIndex:110,top:T==null?void 0:T.top,left:T==null?void 0:T.left,minWidth:o||0,...e},className:i,"data-testid":m,children:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/shared/dialog.tsx",lineNumber:107,columnNumber:5},void 0)};function gj(i,e,r=4,s=4){let o=Math.max(s,e.left);o+i.width>window.innerWidth-s&&(o=window.innerWidth-i.width-s);let l=Math.max(0,e.bottom)+r;return l+i.height>window.innerHeight-r&&(Math.max(0,e.top)>i.height+r?l=Math.max(0,e.top)-i.height-r:l=window.innerHeight-r-i.height),{left:o,top:l}}const yj=({title:i,icon:e,buttonChildren:r,anchorRef:s,dialogDataTestId:o,children:l})=>{const u=Y.useRef(null),d=s??u,[m,p]=Y.useState(!1);return x.jsxDEV(x.Fragment,{children:[x.jsxDEV(Pn,{ref:u,icon:e,title:i,onClick:()=>p(v=>!v),children:r},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/dialogToolbarButton.tsx",lineNumber:36,columnNumber:7},void 0),x.jsxDEV(pj,{style:{backgroundColor:"var(--vscode-sideBar-background)",padding:"4px 8px"},open:m,verticalOffset:8,requestClose:()=>p(!1),anchor:d,dataTestId:o,children:l},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/dialogToolbarButton.tsx",lineNumber:45,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/web/src/components/dialogToolbarButton.tsx",lineNumber:35,columnNumber:5},void 0)},Ck=({settings:i})=>x.jsxDEV("div",{className:"vbox settings-view",children:i.map(e=>{const r=`setting-${e.name.replaceAll(/\s+/g,"-")}`;return x.jsxDEV("div",{className:`setting setting-${e.type}`,title:e.title,children:bj(e,r)},e.name,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:44,columnNumber:11},void 0)})},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:39,columnNumber:5},void 0),bj=(i,e)=>{switch(i.type){case"check":return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("input",{type:"checkbox",id:e,checked:i.value,onChange:()=>i.set(!i.value)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:58,columnNumber:11},void 0),x.jsxDEV("label",{htmlFor:e,children:[i.name,!!i.count&&x.jsxDEV("span",{className:"setting-counter",children:i.count},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:64,columnNumber:70},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:64,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:57,columnNumber:9},void 0);case"select":return x.jsxDEV(x.Fragment,{children:[x.jsxDEV("label",{htmlFor:e,children:[i.name,":",!!i.count&&x.jsxDEV("span",{className:"setting-counter",children:i.count},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:70,columnNumber:71},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:70,columnNumber:11},void 0),x.jsxDEV("select",{id:e,value:i.value,onChange:r=>i.set(r.target.value),children:i.options.map(r=>x.jsxDEV("option",{value:r.value,children:r.label},r.value,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:73,columnNumber:15},void 0))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:71,columnNumber:11},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/settingsView.tsx",lineNumber:69,columnNumber:9},void 0);default:return null}},Dj=i=>{var r;const e=_j((r=i.model)==null?void 0:r.traceUri);return x.jsxDEV(uA.Provider,{value:i.model,children:x.jsxDEV(vj,{partition:e,...i},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:68,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:67,columnNumber:10},void 0)},vj=i=>{var C;const{partition:e,model:r,showSourcesFirst:s,rootDir:o,fallbackLocation:l,isLive:u,hideTimeline:d,status:m,annotations:p,inert:v,onOpenExternally:g,revealSource:y,testRunMetadata:w}=i,[E,S]=Nr("navigatorTab","actions"),[T,k]=Nr("propertiesTab",s?"source":"call"),[D,I]=Nr("propertiesSidebarLocation","bottom"),[z]=Nr("actionsFilter",[]),[$,Z]=ra("selectedCallId"),[W,B]=ra("selectedTime"),[H,J]=ra("highlightedCallId"),[ue,q]=ra("revealedErrorKey"),[X,se]=ra("highlightedConsoleMessageOrdinal"),[Fe,ne]=ra("revealedAttachmentCallId"),[de,ge]=ra("highlightedResourceOrdinal"),[je,Ge]=ra("treeState",{expandedItems:new Map});b3(e);const[Q,ve]=Y.useState({lastEdited:"none"}),[ze,Te]=Y.useState(!1),gt=Y.useCallback(L=>{Z(L==null?void 0:L.callId),q(void 0)},[Z,q]),Ze=Y.useMemo(()=>r==null?void 0:r.filteredActions(z),[r,z]),rt=((r==null?void 0:r.actions.length)??0)-((Ze==null?void 0:Ze.length)??0),hn=Y.useMemo(()=>Ze==null?void 0:Ze.find(L=>L.callId===H),[Ze,H]),an=Y.useCallback(L=>{J(L==null?void 0:L.callId)},[J]),Dr=Y.useMemo(()=>(r==null?void 0:r.sources)||new Map,[r]);Y.useEffect(()=>{B(void 0),q(void 0)},[r,B,q]);const le=Y.useMemo(()=>{if($){const ee=Ze==null?void 0:Ze.find(ie=>ie.callId===$);if(ee)return ee}const L=r==null?void 0:r.failedAction();if(L)return L;if(Ze!=null&&Ze.length){let ee=Ze.length-1;for(let ie=0;ie<Ze.length;++ie)if(Ze[ie].title==="After Hooks"&&ie){ee=ie-1;break}return Ze[ee]}},[r,Ze,$]),Cn=Y.useMemo(()=>hn||le,[le,hn]),Xr=Y.useCallback(L=>{gt(L),an(void 0)},[gt,an]),$t=Y.useCallback(L=>{k(L),L!=="inspector"&&Te(!1)},[k]),Rr=Y.useCallback(L=>{!ze&&L&&$t("inspector"),Te(L)},[Te,$t,ze]),Xe=Y.useCallback(L=>{ve(L),$t("inspector")},[$t]),qt=Y.useCallback(L=>{$t("attachments"),ne({callId:L})},[$t,ne]);Y.useEffect(()=>{y&&$t("source")},[y,$t]);const Jr=f5(r,W),ha=V5(r,W),fe=o5(r),ms=Y.useMemo(()=>{var L;return ue!==void 0?(L=fe.errors.get(ue))==null?void 0:L.stack:Cn==null?void 0:Cn.stack},[Cn,ue,fe]),Wt=(r==null?void 0:r.sdkLanguage)||"javascript",Mi={id:"inspector",title:"Locator",render:()=>x.jsxDEV(mj,{sdkLanguage:Wt,isInspecting:ze,setIsInspecting:Rr,highlightedElement:Q,setHighlightedElement:ve},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:196,columnNumber:19},void 0)},Kr={id:"call",title:"Call",render:()=>x.jsxDEV(CO,{action:Cn,startTimeOffset:(r==null?void 0:r.startTime)??0,sdkLanguage:Wt},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:206,columnNumber:19},void 0)},yo={id:"log",title:"Log",render:()=>x.jsxDEV(RO,{action:Cn,isLive:u},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:211,columnNumber:19},void 0)},ma={id:"errors",title:"Errors",errorCount:fe.errors.size,render:()=>x.jsxDEV(c5,{errorsModel:fe,testRunMetadata:w,sdkLanguage:Wt,revealInSource:L=>{L.action?gt(L.action):q(L.message),$t("source")},wallTime:(r==null?void 0:r.wallTime)??0},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:217,columnNumber:19},void 0)};let ps;!le&&l&&(ps=(C=l.source)==null?void 0:C.errors.length);const sr={id:"source",title:"Source",errorCount:ps,render:()=>x.jsxDEV(i5,{stack:ms,sources:Dr,rootDir:o,stackFrameLocation:D==="bottom"?"right":"bottom",fallbackLocation:l,onOpenExternally:g},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:236,columnNumber:19},void 0)},bo={id:"console",title:"Console",count:Jr.entries.length,render:()=>x.jsxDEV(h5,{consoleModel:Jr,boundaries:ar,selectedTime:W,onAccepted:L=>B({minimum:L.timestamp,maximum:L.timestamp}),onEntryHovered:se},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:249,columnNumber:19},void 0)},pa={id:"network",title:"Network",count:ha.resources.length,render:()=>x.jsxDEV($5,{boundaries:ar,networkModel:ha,onResourceHovered:ge,sdkLanguage:(r==null?void 0:r.sdkLanguage)??"javascript"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:261,columnNumber:19},void 0)},ga={id:"attachments",title:"Attachments",count:r==null?void 0:r.visibleAttachments.length,render:()=>x.jsxDEV(KO,{revealedAttachmentCallId:Fe},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:267,columnNumber:19},void 0)},Bn=[Mi,Kr,yo,ma,bo,pa,sr,ga];if(p!==void 0){const L={id:"annotations",title:"Annotations",count:p.length,render:()=>x.jsxDEV(hj,{annotations:p},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:286,columnNumber:21},void 0)};Bn.push(L)}if(s){const L=Bn.indexOf(sr);Bn.splice(L,1),Bn.splice(1,0,sr)}const{boundaries:ar}=Y.useMemo(()=>{const L={minimum:(r==null?void 0:r.startTime)||0,maximum:(r==null?void 0:r.endTime)||3e4};return L.minimum>L.maximum&&(L.minimum=0,L.maximum=3e4),L.maximum+=(L.maximum-L.minimum)/20,{boundaries:L}},[r]);let or=0;!u&&r&&r.endTime>=0?or=r.endTime-r.startTime:r&&r.wallTime&&(or=Date.now()-r.wallTime);const gs={id:"actions",title:"Actions",component:x.jsxDEV("div",{className:"vbox",children:[m&&x.jsxDEV("div",{className:"workbench-run-status","data-testid":"workbench-run-status",children:[x.jsxDEV("span",{className:At("codicon",iA(m))},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:319,columnNumber:9},void 0),x.jsxDEV("div",{children:TO(m)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:320,columnNumber:9},void 0),x.jsxDEV("div",{className:"spacer"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:321,columnNumber:9},void 0),x.jsxDEV("div",{className:"workbench-run-duration",children:or?Nn(or):""},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:322,columnNumber:9},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:318,columnNumber:18},void 0),x.jsxDEV(AO,{sdkLanguage:Wt,actions:Ze||[],selectedAction:r?le:void 0,selectedTime:W,setSelectedTime:B,treeState:je,setTreeState:Ge,onSelected:Xr,onHighlighted:an,revealActionAttachment:qt,revealConsole:()=>$t("console"),isLive:u},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:324,columnNumber:7},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:317,columnNumber:16},void 0)},ys={id:"metadata",title:"Metadata",component:x.jsxDEV(fj,{model:r},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:343,columnNumber:16},void 0)},Wr=E==="actions"&&x.jsxDEV(wj,{counters:r==null?void 0:r.actionCounters,hiddenActionsCount:rt},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:346,columnNumber:72},void 0);return x.jsxDEV("div",{className:"vbox workbench",...v?{inert:!0}:{},children:[!d&&x.jsxDEV(cj,{model:r,consoleEntries:Jr.entries,networkResources:ha.resources,boundaries:ar,highlightedAction:hn,highlightedResourceOrdinal:de,highlightedConsoleEntryOrdinal:X,onSelected:Xr,sdkLanguage:Wt,selectedTime:W,setSelectedTime:B},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:349,columnNumber:23},void 0),x.jsxDEV(nm,{sidebarSize:250,orientation:D==="bottom"?"vertical":"horizontal",settingName:"propertiesSidebar",main:x.jsxDEV(nm,{sidebarSize:250,orientation:"horizontal",sidebarIsFirst:!0,settingName:"actionListSidebar",main:x.jsxDEV(QU,{action:Cn,model:r,sdkLanguage:Wt,testIdAttributeName:(r==null?void 0:r.testIdAttributeName)||"data-testid",isInspecting:ze,setIsInspecting:Rr,highlightedElement:Q,setHighlightedElement:Xe},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:370,columnNumber:15},void 0),sidebar:x.jsxDEV(rv,{tabs:[gs,ys],rightToolbar:[Wr],selectedTab:E,setSelectedTab:S},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:380,columnNumber:11},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:365,columnNumber:13},void 0),sidebar:x.jsxDEV(rv,{tabs:Bn,selectedTab:T,setSelectedTab:$t,rightToolbar:[D==="bottom"?x.jsxDEV(Pn,{title:"Dock to right",icon:"layout-sidebar-right-off",onClick:()=>{I("right")}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:394,columnNumber:13},void 0):x.jsxDEV(Pn,{title:"Dock to bottom",icon:"layout-panel-off",onClick:()=>{I("bottom")}},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:397,columnNumber:13},void 0)],mode:D==="bottom"?"default":"select"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:388,columnNumber:16},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:362,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:348,columnNumber:10},void 0)},wj=({counters:i,hiddenActionsCount:e})=>{const[r,s]=Nr("actionsFilter",[]),o=Y.useRef(null),l=x.jsxDEV(x.Fragment,{children:[e>0&&x.jsxDEV("span",{className:"workbench-actions-hidden-count",title:e+" actions hidden by filters",children:[e," hidden"]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:412,columnNumber:32},void 0),x.jsxDEV("span",{ref:o,className:"codicon codicon-filter"},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:413,columnNumber:5},void 0)]},void 0,!0,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:411,columnNumber:26},void 0);return x.jsxDEV(yj,{title:"Filter actions",dialogDataTestId:"actions-filter-dialog",buttonChildren:l,anchorRef:o,children:x.jsxDEV(Ck,{settings:[{type:"check",value:r.includes("getter"),set:u=>s(u?[...r,"getter"]:r.filter(d=>d!=="getter")),name:"Getters",count:i==null?void 0:i.get("getter")},{type:"check",value:r.includes("route"),set:u=>s(u?[...r,"route"]:r.filter(d=>d!=="route")),name:"Network routes",count:i==null?void 0:i.get("route")},{type:"check",value:r.includes("configuration"),set:u=>s(u?[...r,"configuration"]:r.filter(d=>d!=="configuration")),name:"Configuration",count:i==null?void 0:i.get("configuration")}]},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:417,columnNumber:5},void 0)},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/workbench.tsx",lineNumber:416,columnNumber:10},void 0)};function _j(i){if(!i)return"default";const e=new URL(i,"http://localhost");return e.searchParams.delete("timestamp"),e.toString()}var _N;(i=>{function e(r){for(const s of r.splice(0))s.dispose()}i.disposeAll=e})(_N||(_N={}));class Nl{constructor(){this._listeners=new Set,this.event=(e,r)=>{this._listeners.add(e);let s=!1;const o=this,l={dispose(){s||(s=!0,o._listeners.delete(e))}};return r&&r.push(l),l}}fire(e){const r=!this._deliveryQueue;this._deliveryQueue||(this._deliveryQueue=[]);for(const s of this._listeners)this._deliveryQueue.push({listener:s,event:e});if(r){for(let s=0;s<this._deliveryQueue.length;s++){const{listener:o,event:l}=this._deliveryQueue[s];o.call(null,l)}this._deliveryQueue=void 0}}dispose(){this._listeners.clear(),this._deliveryQueue&&(this._deliveryQueue=[])}}class Sj extends Error{constructor(){super("Test server connection closed")}}class Rj{constructor(e){this._ws=new WebSocket(e)}onmessage(e){this._ws.addEventListener("message",r=>e(r.data.toString()))}onopen(e){this._ws.addEventListener("open",e)}onerror(e){this._ws.addEventListener("error",e)}onclose(e){this._ws.addEventListener("close",e)}send(e){this._ws.send(e)}close(){this._ws.close()}}class Mj{constructor(e){this._onCloseEmitter=new Nl,this._onReportEmitter=new Nl,this._onStdioEmitter=new Nl,this._onTestFilesChangedEmitter=new Nl,this._onLoadTraceRequestedEmitter=new Nl,this._onTestPausedEmitter=new Nl,this._lastId=0,this._callbacks=new Map,this._isClosed=!1,this.onClose=this._onCloseEmitter.event,this.onReport=this._onReportEmitter.event,this.onStdio=this._onStdioEmitter.event,this.onTestFilesChanged=this._onTestFilesChangedEmitter.event,this.onLoadTraceRequested=this._onLoadTraceRequestedEmitter.event,this.onTestPaused=this._onTestPausedEmitter.event,this._transport=e,this._transport.onmessage(s=>{const o=JSON.parse(s),{id:l,result:u,error:d,method:m,params:p}=o;if(l){const v=this._callbacks.get(l);if(!v)return;this._callbacks.delete(l),d?v.reject(new Error(d)):v.resolve(u)}else this._dispatchEvent(m,p)});const r=setInterval(()=>this._sendMessage("ping").catch(()=>{}),3e4);this._connectedPromise=new Promise((s,o)=>{this._transport.onopen(s),this._transport.onerror(o)}),this._transport.onclose(()=>{this._isClosed=!0,this._onCloseEmitter.fire(),clearInterval(r);for(const s of this._callbacks.values())s.reject(new Sj);this._callbacks.clear()})}isClosed(){return this._isClosed}async _sendMessage(e,r){const s=globalThis.__logForTest;s==null||s({method:e,params:r}),await this._connectedPromise;const o=++this._lastId,l={id:o,method:e,params:r};return this._transport.send(JSON.stringify(l)),new Promise((u,d)=>{this._callbacks.set(o,{resolve:u,reject:d})})}_sendMessageNoReply(e,r){this._sendMessage(e,r).catch(()=>{})}_dispatchEvent(e,r){e==="report"?this._onReportEmitter.fire(r):e==="stdio"?this._onStdioEmitter.fire(r):e==="testFilesChanged"?this._onTestFilesChangedEmitter.fire(r):e==="loadTraceRequested"?this._onLoadTraceRequestedEmitter.fire(r):e==="testPaused"&&this._onTestPausedEmitter.fire(r)}async initialize(e){await this._sendMessage("initialize",e)}async ping(e){await this._sendMessage("ping",e)}async pingNoReply(e){this._sendMessageNoReply("ping",e)}async watch(e){await this._sendMessage("watch",e)}watchNoReply(e){this._sendMessageNoReply("watch",e)}async open(e){await this._sendMessage("open",e)}openNoReply(e){this._sendMessageNoReply("open",e)}async resizeTerminal(e){await this._sendMessage("resizeTerminal",e)}resizeTerminalNoReply(e){this._sendMessageNoReply("resizeTerminal",e)}async checkBrowsers(e){return await this._sendMessage("checkBrowsers",e)}async installBrowsers(e){await this._sendMessage("installBrowsers",e)}async runGlobalSetup(e){return await this._sendMessage("runGlobalSetup",e)}async runGlobalTeardown(e){return await this._sendMessage("runGlobalTeardown",e)}async startDevServer(e){return await this._sendMessage("startDevServer",e)}async stopDevServer(e){return await this._sendMessage("stopDevServer",e)}async clearCache(e){return await this._sendMessage("clearCache",e)}async listFiles(e){return await this._sendMessage("listFiles",e)}async listTests(e){return await this._sendMessage("listTests",e)}async runTests(e){return await this._sendMessage("runTests",e)}async findRelatedTestFiles(e){return await this._sendMessage("findRelatedTestFiles",e)}async stopTests(e){await this._sendMessage("stopTests",e)}stopTestsNoReply(e){this._sendMessageNoReply("stopTests",e)}async closeGracefully(e){await this._sendMessage("closeGracefully",e)}close(){try{this._transport.close()}catch{}}}const Oj=({location:i})=>{const[e,r]=Nr("shouldPopulateCanvasFromScreenshot",!1),[s,o]=x3(),[l,u]=Nr("mergeFiles",!1);return x.jsxDEV(Ck,{settings:[{type:"select",value:s,set:o,name:"Theme",options:S3},...i==="ui-mode"?[{type:"check",value:l,set:u,name:"Merge files"}]:[],{type:"check",value:e,set:r,name:"Display canvas content",title:"Attempt to display the captured canvas appearance in the snapshot preview. May not be accurate."}]},void 0,!1,{fileName:"/Users/mrugeshmaster/git/letsramp/playwright/packages/trace-viewer/src/ui/defaultSettingsView.tsx",lineNumber:36,columnNumber:5},void 0)};export{yj as D,lA as E,sn as R,nm as S,Cj as T,Rj as W,IO as _,Mj as a,Oj as b,Dj as c,pj as d,xj as e,Aj as f,E3 as g,Tj as h,Nj as i,x as j,At as k,EO as l,Nn as m,Dv as n,Pn as o,Nr as p,Ck as q,Y as r,so as s,iA as t,ho as u,h3 as v};