@redocly/openapi-docs 3.0.0-alpha.12 → 3.0.0-alpha.14

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 (952) hide show
  1. package/dist/console.redocly-openapi-docs.min.js +507 -0
  2. package/dist/oauth2-redirect.js +3 -3
  3. package/dist/redocly-openapi-docs.min.js +6792 -0
  4. package/lib/components/ApiInfo/ApiInfo.d.ts +1 -4
  5. package/lib/components/ApiInfo/ApiInfo.js +1 -1
  6. package/lib/components/ApiInfo/index.d.ts +0 -1
  7. package/lib/components/ApiInfo/styled.d.ts +3 -1
  8. package/lib/components/ApiInfo/styled.js +1 -1
  9. package/lib/components/ApiInfo/types.d.ts +9 -4
  10. package/lib/components/CallbackSamples/CallbackSamples.d.ts +2 -3
  11. package/lib/components/CallbackSamples/CallbackSamples.js +1 -1
  12. package/lib/components/Callbacks/CallbackDetails.d.ts +1 -1
  13. package/lib/components/Callbacks/CallbackDetails.js +1 -1
  14. package/lib/components/Callbacks/CallbackOperation.js +1 -1
  15. package/lib/components/Callbacks/CallbacksList.js +1 -1
  16. package/lib/components/ChangeViewButton/ChangeViewButton.d.ts +1 -0
  17. package/lib/components/ChangeViewButton/ChangeViewButton.js +2 -0
  18. package/lib/components/ChangeViewButton/index.d.ts +1 -0
  19. package/lib/components/ChangeViewButton/index.js +2 -0
  20. package/lib/components/ChangeViewButton/styled.d.ts +3 -0
  21. package/lib/components/ChangeViewButton/styled.js +18 -0
  22. package/lib/components/ContentItem/ContentItem.d.ts +6 -6
  23. package/lib/components/ContentItem/ContentItem.js +1 -1
  24. package/lib/components/ContentItems/ContentItems.d.ts +10 -4
  25. package/lib/components/ContentItems/ContentItems.js +1 -1
  26. package/lib/components/ContentItems/helpers.d.ts +11 -0
  27. package/lib/components/ContentItems/helpers.js +2 -0
  28. package/lib/components/ContentItems/useAutoScroll.d.ts +1 -0
  29. package/lib/components/ContentItems/useAutoScroll.js +2 -0
  30. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +2 -2
  31. package/lib/components/DiscriminatorDropdown/DiscriminatorDropdown.js +1 -1
  32. package/lib/components/Download/DownloadButtonWithLabel.d.ts +3 -4
  33. package/lib/components/Download/DownloadButtonWithLabel.js +1 -1
  34. package/lib/components/Download/types.d.ts +12 -0
  35. package/lib/components/Download/useDownloadInfo.d.ts +2 -0
  36. package/lib/components/Download/useDownloadInfo.js +2 -0
  37. package/lib/components/Endpoint/Endpoint.js +1 -1
  38. package/lib/components/Endpoint/ServerList.js +1 -1
  39. package/lib/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  40. package/lib/components/ExternalDocumentation/ExternalDocumentation.js +2 -2
  41. package/lib/components/Fields/DescriptionEnums.js +1 -1
  42. package/lib/components/Fields/EnumValues.js +1 -1
  43. package/lib/components/Fields/Examples.js +1 -1
  44. package/lib/components/Fields/Extensions.js +2 -2
  45. package/lib/components/Fields/Field.d.ts +3 -2
  46. package/lib/components/Fields/Field.js +1 -1
  47. package/lib/components/Fields/FieldDetails.d.ts +2 -3
  48. package/lib/components/Fields/FieldDetails.js +1 -1
  49. package/lib/components/Fields/SimpleEnums.js +1 -1
  50. package/lib/components/Fields/types.d.ts +0 -1
  51. package/lib/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
  52. package/lib/components/Markdown/Markdown.d.ts +1 -1
  53. package/lib/components/Markdown/Markdown.js +1 -1
  54. package/lib/components/Markdown/index.d.ts +0 -2
  55. package/lib/components/Markdown/index.js +1 -1
  56. package/lib/components/Markdown/styled.js +1 -3
  57. package/lib/components/Markdown/types.d.ts +5 -13
  58. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  59. package/lib/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  60. package/lib/components/NextSectionButton/NextSectionButton.d.ts +8 -0
  61. package/lib/components/NextSectionButton/NextSectionButton.js +2 -0
  62. package/lib/components/NextSectionButton/index.d.ts +1 -0
  63. package/lib/components/NextSectionButton/index.js +2 -0
  64. package/lib/components/NextSectionButton/styled.d.ts +1 -0
  65. package/lib/components/NextSectionButton/styled.js +18 -0
  66. package/lib/components/OperationItem/OperationItem.d.ts +3 -0
  67. package/lib/components/OperationItem/OperationItem.js +9 -0
  68. package/lib/components/OperationItem/index.d.ts +2 -0
  69. package/lib/components/OperationItem/index.js +2 -0
  70. package/lib/components/OperationItem/types.d.ts +4 -0
  71. package/lib/components/{Operation → OperationItem}/types.js +0 -0
  72. package/lib/components/Overlay.d.ts +2 -7
  73. package/lib/components/Overlay.js +1 -1
  74. package/lib/components/Panel/ResponsePanel.js +2 -2
  75. package/lib/components/Parameters/BodyContent.d.ts +3 -2
  76. package/lib/components/Parameters/BodyContent.js +1 -1
  77. package/lib/components/Parameters/ParametersGroup.js +1 -1
  78. package/lib/components/PayloadSamples/MediaTypeSamples.d.ts +2 -3
  79. package/lib/components/PayloadSamples/MediaTypeSamples.js +1 -1
  80. package/lib/components/PayloadSamples/PayloadSamples.d.ts +2 -3
  81. package/lib/components/PayloadSamples/PayloadSamples.js +1 -1
  82. package/lib/components/PayloadSamples/types.d.ts +1 -2
  83. package/lib/components/PayloadSamples/useExternalExample.js +1 -1
  84. package/lib/components/RedoclyOpenAPIDocs/Providers.d.ts +6 -0
  85. package/lib/components/RedoclyOpenAPIDocs/Providers.js +2 -0
  86. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +4 -0
  87. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +2 -0
  88. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +2 -0
  89. package/lib/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +2 -0
  90. package/lib/components/RedoclyOpenAPIDocs/index.d.ts +5 -0
  91. package/lib/components/RedoclyOpenAPIDocs/index.js +2 -0
  92. package/lib/components/RedoclyOpenAPIDocs/styled.d.ts +13 -0
  93. package/lib/components/RedoclyOpenAPIDocs/styled.js +170 -0
  94. package/lib/components/RedoclyOpenAPIDocs/types.d.ts +63 -0
  95. package/lib/components/{types.js → RedoclyOpenAPIDocs/types.js} +0 -0
  96. package/lib/components/RedoclyOpenAPIDocs/utils.d.ts +10 -0
  97. package/lib/components/RedoclyOpenAPIDocs/utils.js +2 -0
  98. package/lib/components/RequestSamples/CodeSample.d.ts +1 -1
  99. package/lib/components/RequestSamples/CodeSample.js +1 -1
  100. package/lib/components/RequestSamples/Example.d.ts +2 -2
  101. package/lib/components/RequestSamples/Example.js +1 -1
  102. package/lib/components/RequestSamples/RequestSamples.d.ts +1 -1
  103. package/lib/components/RequestSamples/RequestSamples.js +1 -1
  104. package/lib/components/ResponseSamples/ResponseSamples.d.ts +4 -1
  105. package/lib/components/ResponseSamples/ResponseSamples.js +1 -1
  106. package/lib/components/Responses/Response.d.ts +1 -3
  107. package/lib/components/Responses/Response.js +1 -1
  108. package/lib/components/Responses/ResponseSummary.js +14 -1
  109. package/lib/components/Responses/styled.js +2 -2
  110. package/lib/components/Samples/SamplesTabs.d.ts +3 -2
  111. package/lib/components/Samples/SamplesTabs.js +1 -1
  112. package/lib/components/Samples/use-example-key.d.ts +1 -1
  113. package/lib/components/Samples/use-example-key.js +1 -1
  114. package/lib/components/Schema/ObjectSchema.d.ts +1 -1
  115. package/lib/components/Schema/ObjectSchema.js +1 -1
  116. package/lib/components/Schema/OneOfSchema.d.ts +1 -1
  117. package/lib/components/Schema/OneOfSchema.js +1 -1
  118. package/lib/components/Schema/RecursiveSchema.d.ts +1 -1
  119. package/lib/components/Schema/RecursiveSchema.js +1 -1
  120. package/lib/components/Schema/Schema.d.ts +1 -1
  121. package/lib/components/Schema/Schema.js +1 -1
  122. package/lib/components/SchemaDefinition/SchemaDefinition.d.ts +1 -7
  123. package/lib/components/SchemaDefinition/SchemaDefinition.js +1 -1
  124. package/lib/components/Search/MenuItemSearch.d.ts +2 -0
  125. package/lib/components/Search/MenuItemSearch.js +2 -0
  126. package/lib/components/Search/Search.d.ts +3 -0
  127. package/lib/components/Search/Search.js +2 -0
  128. package/lib/components/Search/SearchBox.d.ts +2 -8
  129. package/lib/components/Search/SearchBox.js +1 -1
  130. package/lib/components/Search/index.d.ts +1 -0
  131. package/lib/components/Search/index.js +1 -1
  132. package/lib/components/Search/types.d.ts +11 -8
  133. package/lib/components/Search/utils.js +1 -1
  134. package/lib/components/SectionContent/SectionContent.d.ts +15 -0
  135. package/lib/components/SectionContent/SectionContent.js +2 -0
  136. package/lib/components/SectionContent/index.d.ts +1 -0
  137. package/lib/components/SectionContent/index.js +2 -0
  138. package/lib/components/SectionItem/SectionItem.d.ts +2 -3
  139. package/lib/components/SectionItem/SectionItem.js +1 -1
  140. package/lib/components/SecurityRequirement/PanelDescription.d.ts +1 -6
  141. package/lib/components/SecurityRequirement/RequirementElement.d.ts +2 -7
  142. package/lib/components/SecurityRequirement/RequirementElement.js +3 -3
  143. package/lib/components/SecurityRequirement/SecurityDefs.d.ts +1 -7
  144. package/lib/components/SecurityRequirement/SecurityDefs.js +1 -1
  145. package/lib/components/SecurityRequirement/SecurityRequirement.d.ts +3 -6
  146. package/lib/components/SecurityRequirement/SecurityRequirement.js +1 -1
  147. package/lib/components/SecurityRequirement/constants.d.ts +6 -6
  148. package/lib/components/SecurityRequirement/constants.js +1 -1
  149. package/lib/components/SecurityRequirement/types.d.ts +19 -0
  150. package/lib/components/SecurityRequirement/types.js +2 -0
  151. package/lib/components/SecurityRequirement/useSecurityRequirements.d.ts +3 -0
  152. package/lib/components/SecurityRequirement/useSecurityRequirements.js +2 -0
  153. package/lib/components/SecuritySchemes/OAuthFlow.d.ts +3 -0
  154. package/lib/components/SecuritySchemes/OAuthFlow.js +2 -0
  155. package/lib/components/SecuritySchemes/helpers.d.ts +1 -1
  156. package/lib/components/SecuritySchemes/index.d.ts +1 -1
  157. package/lib/components/SecuritySchemes/index.js +1 -1
  158. package/lib/components/SecuritySchemes/types.d.ts +0 -1
  159. package/lib/components/SideMenu/MenuItem.d.ts +7 -5
  160. package/lib/components/SideMenu/MenuItem.js +1 -1
  161. package/lib/components/SideMenu/MenuItemEternalLink.d.ts +1 -2
  162. package/lib/components/SideMenu/MenuItemEternalLink.js +1 -1
  163. package/lib/components/SideMenu/MenuItemLink.d.ts +3 -0
  164. package/lib/components/SideMenu/MenuItemLink.js +2 -0
  165. package/lib/components/SideMenu/MenuItems.d.ts +2 -1
  166. package/lib/components/SideMenu/MenuItems.js +1 -1
  167. package/lib/components/SideMenu/MenuOperationItemContent.d.ts +5 -3
  168. package/lib/components/SideMenu/MenuOperationItemContent.js +2 -2
  169. package/lib/components/SideMenu/SideMenu.d.ts +8 -5
  170. package/lib/components/SideMenu/SideMenu.js +1 -1
  171. package/lib/components/SideMenu/styled.d.ts +10 -5
  172. package/lib/components/SideMenu/styled.js +12 -12
  173. package/lib/components/SideMenu/types.d.ts +10 -4
  174. package/lib/components/SideMenu/useMenuItemLink.d.ts +18 -0
  175. package/lib/components/SideMenu/useMenuItemLink.js +2 -0
  176. package/lib/components/StickySidebar/StickyResponsiveSidebar.d.ts +4 -6
  177. package/lib/components/StickySidebar/StickyResponsiveSidebar.js +2 -3
  178. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -1
  179. package/lib/components/Tabs/CollapsingTabs/CollapsingTabs.js +1 -1
  180. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
  181. package/lib/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  182. package/lib/components/TagItem/TagItem.d.ts +2 -0
  183. package/lib/components/TagItem/TagItem.js +2 -0
  184. package/lib/components/TagItem/index.d.ts +1 -0
  185. package/lib/components/TagItem/index.js +2 -0
  186. package/lib/components/TagItems/TagItems.d.ts +13 -0
  187. package/lib/components/TagItems/TagItems.js +2 -0
  188. package/lib/components/TagItems/index.d.ts +1 -0
  189. package/lib/components/TagItems/index.js +2 -0
  190. package/lib/components/ToggleRightPanelButton/ToggleRightPanelButton.d.ts +1 -0
  191. package/lib/components/ToggleRightPanelButton/ToggleRightPanelButton.js +2 -0
  192. package/lib/components/ToggleRightPanelButton/index.d.ts +1 -0
  193. package/lib/components/ToggleRightPanelButton/index.js +2 -0
  194. package/lib/components/ToggleRightPanelButton/styled.d.ts +3 -0
  195. package/lib/components/ToggleRightPanelButton/styled.js +17 -0
  196. package/lib/components/VersionSwitcher.d.ts +4 -3
  197. package/lib/components/VersionSwitcher.js +1 -1
  198. package/lib/components/common/Dropdown/Dropdown.js +2 -2
  199. package/lib/components/common/Fields/fields-layout.d.ts +0 -1
  200. package/lib/components/common/Fields/fields-layout.js +1 -6
  201. package/lib/components/common/LinkToField.d.ts +11 -2
  202. package/lib/components/common/LinkToField.js +9 -22
  203. package/lib/components/common/Portal/Portal.d.ts +6 -0
  204. package/lib/components/common/Portal/Portal.js +2 -0
  205. package/lib/components/common/Portal/index.d.ts +1 -0
  206. package/lib/components/common/Portal/index.js +2 -0
  207. package/lib/components/{ContentItems → common/Skeleton}/Skeleton.d.ts +0 -0
  208. package/lib/components/{ContentItems → common/Skeleton}/Skeleton.js +2 -2
  209. package/lib/components/common/Skeleton/index.d.ts +1 -0
  210. package/lib/components/common/Skeleton/index.js +2 -0
  211. package/lib/components/common/headers.d.ts +0 -6
  212. package/lib/components/common/headers.js +1 -25
  213. package/lib/components/common/index.d.ts +4 -2
  214. package/lib/components/common/index.js +1 -1
  215. package/lib/components/common/linkify.d.ts +3 -7
  216. package/lib/components/common/linkify.js +6 -51
  217. package/lib/components/common/panels.js +7 -4
  218. package/lib/components/common/perfect-scrollbar.js +2 -2
  219. package/lib/components/icons/LockIcon.d.ts +1 -1
  220. package/lib/components/icons/Spinner.d.ts +1 -1
  221. package/lib/components/index.d.ts +8 -9
  222. package/lib/components/index.js +1 -1
  223. package/lib/components/pluggable/PullRight.d.ts +3 -2
  224. package/lib/components/pluggable/PullRight.js +1 -55
  225. package/lib/components/pluggable/RedocExample.d.ts +1 -3
  226. package/lib/components/pluggable/RedocExample.js +1 -1
  227. package/lib/components/pluggable/RedocRequestBody.d.ts +1 -3
  228. package/lib/components/pluggable/RedocRequestBody.js +1 -1
  229. package/lib/components/pluggable/RedocResponse.d.ts +1 -3
  230. package/lib/components/pluggable/RedocResponse.js +1 -1
  231. package/lib/components/pluggable/RedocSchema.d.ts +1 -3
  232. package/lib/components/pluggable/RedocSchema.js +1 -1
  233. package/lib/components/rightPanel/CodemirrorInput/CodemirrorInput.js +1 -1
  234. package/lib/components/rightPanel/CodemirrorInput/helpers.d.ts +1 -10
  235. package/lib/components/rightPanel/CodemirrorInput/helpers.js +1 -1
  236. package/lib/components/rightPanel/Console/Console.d.ts +2 -2
  237. package/lib/components/rightPanel/Console/Console.js +1 -1
  238. package/lib/components/rightPanel/Console/ConsoleLazy.js +1 -1
  239. package/lib/components/rightPanel/Console/ConsoleWrapper.d.ts +5 -2
  240. package/lib/components/rightPanel/Console/ConsoleWrapper.js +1 -1
  241. package/lib/components/rightPanel/Console/Request.d.ts +3 -12
  242. package/lib/components/rightPanel/Console/Request.js +1 -1
  243. package/lib/components/rightPanel/Console/types.d.ts +14 -3
  244. package/lib/components/rightPanel/OAuth2Flow/OAuth2Flow.js +1 -1
  245. package/lib/components/rightPanel/OpenIDConnect.d.ts +2 -2
  246. package/lib/components/rightPanel/RequestBody/Body.d.ts +1 -1
  247. package/lib/components/rightPanel/RequestBody/Body.js +1 -1
  248. package/lib/components/rightPanel/RequestBody/RequestBody.d.ts +1 -1
  249. package/lib/components/rightPanel/RequestBody/RequestBody.js +1 -1
  250. package/lib/components/rightPanel/RequestBody/types.d.ts +1 -0
  251. package/lib/components/rightPanel/RequestBodyForm.d.ts +6 -3
  252. package/lib/components/rightPanel/RequestBodyForm.js +1 -1
  253. package/lib/components/rightPanel/ResponseHeadersList.js +1 -1
  254. package/lib/components/rightPanel/ServerVariable.d.ts +1 -1
  255. package/lib/components/rightPanel/ServerVariable.js +1 -1
  256. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +2 -1
  257. package/lib/components/rightPanel/ServersDropdown/ServersDropdown.js +1 -1
  258. package/lib/components/rightPanel/utils.d.ts +3 -2
  259. package/lib/components/rightPanel/utils.js +1 -1
  260. package/lib/constants.d.ts +0 -2
  261. package/lib/constants.js +1 -1
  262. package/lib/events/codeSampleCopy.js +1 -1
  263. package/lib/events/types.d.ts +2 -2
  264. package/lib/hoc/types.d.ts +38 -0
  265. package/lib/hoc/types.js +2 -0
  266. package/lib/hoc/utils.d.ts +2 -0
  267. package/lib/hoc/utils.js +2 -0
  268. package/lib/hoc/withRouter.d.ts +3 -0
  269. package/lib/hoc/withRouter.js +2 -0
  270. package/lib/hooks/index.d.ts +4 -0
  271. package/lib/hooks/index.js +1 -1
  272. package/lib/hooks/useActivateExample.d.ts +2 -0
  273. package/lib/hooks/useActivateExample.js +2 -0
  274. package/lib/hooks/useContentItems.d.ts +12 -0
  275. package/lib/hooks/useContentItems.js +2 -0
  276. package/lib/hooks/useLicense.d.ts +5 -0
  277. package/lib/hooks/useLicense.js +2 -0
  278. package/lib/hooks/useRouter.d.ts +11 -0
  279. package/lib/hooks/useRouter.js +2 -0
  280. package/lib/index.d.ts +2 -1
  281. package/lib/index.js +1 -1
  282. package/lib/models/callback.d.ts +5 -0
  283. package/lib/models/callback.js +2 -0
  284. package/lib/models/example.d.ts +10 -0
  285. package/lib/models/example.js +2 -0
  286. package/lib/models/field.d.ts +7 -0
  287. package/lib/models/field.js +2 -0
  288. package/lib/models/group.d.ts +4 -0
  289. package/lib/models/group.js +2 -0
  290. package/lib/models/index.d.ts +13 -14
  291. package/lib/models/index.js +1 -1
  292. package/lib/models/mediaContent.d.ts +7 -0
  293. package/lib/models/mediaContent.js +2 -0
  294. package/lib/models/mediaType.d.ts +20 -0
  295. package/lib/models/mediaType.js +2 -0
  296. package/lib/models/operation.d.ts +18 -0
  297. package/lib/models/operation.js +2 -0
  298. package/lib/models/request.d.ts +12 -0
  299. package/lib/models/request.js +2 -0
  300. package/lib/models/response.d.ts +15 -0
  301. package/lib/models/response.js +2 -0
  302. package/lib/models/schema.d.ts +14 -0
  303. package/lib/models/schema.js +2 -0
  304. package/lib/models/security.d.ts +13 -0
  305. package/lib/models/security.js +2 -0
  306. package/lib/models/types.d.ts +233 -3
  307. package/lib/recoil/app.d.ts +32 -0
  308. package/lib/recoil/app.js +2 -0
  309. package/lib/recoil/operation.d.ts +11 -0
  310. package/lib/recoil/operation.js +2 -0
  311. package/lib/recoil/store.d.ts +19 -0
  312. package/lib/recoil/store.js +2 -0
  313. package/lib/services/OpenAPIParser.d.ts +1 -1
  314. package/lib/services/OpenAPIParser.js +1 -1
  315. package/lib/services/Options/index.d.ts +1 -1
  316. package/lib/services/Options/index.js +1 -1
  317. package/lib/services/Options/{NormalizedOptions.d.ts → normalizeOptions.d.ts} +1 -1
  318. package/lib/services/Options/normalizeOptions.js +2 -0
  319. package/lib/services/Options/types.d.ts +31 -15
  320. package/lib/services/code-samples/generator.js +1 -1
  321. package/lib/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  322. package/lib/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  323. package/lib/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  324. package/lib/services/code-samples/types.d.ts +2 -2
  325. package/lib/services/history/helpers.d.ts +1 -1
  326. package/lib/services/history/helpers.js +1 -1
  327. package/lib/services/history/index.d.ts +1 -4
  328. package/lib/services/history/index.js +1 -1
  329. package/lib/services/index.d.ts +2 -7
  330. package/lib/services/index.js +1 -1
  331. package/lib/services/menu/builder.d.ts +9 -0
  332. package/lib/services/menu/builder.js +2 -0
  333. package/lib/services/menu/helpers.d.ts +6 -0
  334. package/lib/services/menu/helpers.js +2 -0
  335. package/lib/services/menu/index.d.ts +1 -0
  336. package/lib/services/menu/index.js +2 -0
  337. package/lib/services/menu/markdown.d.ts +11 -0
  338. package/lib/services/menu/markdown.js +2 -0
  339. package/lib/services/menu/operation.d.ts +13 -0
  340. package/lib/services/menu/operation.js +2 -0
  341. package/lib/services/menu/tags.d.ts +27 -0
  342. package/lib/services/menu/tags.js +2 -0
  343. package/lib/services/search/DeepSearchStore.d.ts +3 -3
  344. package/lib/services/search/DeepSearchStore.js +1 -1
  345. package/lib/services/search/SearchStore.d.ts +1 -1
  346. package/lib/services/search/useSearch.d.ts +13 -0
  347. package/lib/services/search/useSearch.js +2 -0
  348. package/lib/services/types.d.ts +42 -91
  349. package/lib/services/types.js +1 -1
  350. package/lib/services/utils.d.ts +1 -0
  351. package/lib/services/utils.js +1 -1
  352. package/lib/standalone.d.ts +5 -5
  353. package/lib/standalone.js +1 -1
  354. package/lib/testProviders.d.ts +2 -2
  355. package/lib/testProviders.js +1 -1
  356. package/lib/types/app.d.ts +1 -0
  357. package/lib/types/app.js +2 -0
  358. package/lib/types/index.d.ts +1 -0
  359. package/lib/types/index.js +1 -1
  360. package/lib/types/open-api.d.ts +15 -15
  361. package/lib/utils/compose.d.ts +1 -0
  362. package/lib/utils/compose.js +2 -0
  363. package/lib/utils/helpers.d.ts +2 -1
  364. package/lib/utils/helpers.js +1 -1
  365. package/lib/utils/index.d.ts +3 -2
  366. package/lib/utils/index.js +1 -1
  367. package/lib/utils/local-storage.js +1 -1
  368. package/lib/utils/openapi.d.ts +11 -7
  369. package/lib/utils/openapi.js +1 -1
  370. package/lib/utils/saveTextBeforeHeading.d.ts +1 -0
  371. package/lib/utils/saveTextBeforeHeading.js +2 -0
  372. package/lib/utils/typeGuards.d.ts +3 -0
  373. package/lib/utils/typeGuards.js +2 -0
  374. package/lib-esm/components/ApiInfo/ApiInfo.d.ts +1 -4
  375. package/lib-esm/components/ApiInfo/ApiInfo.js +1 -1
  376. package/lib-esm/components/ApiInfo/index.d.ts +0 -1
  377. package/lib-esm/components/ApiInfo/styled.d.ts +3 -1
  378. package/lib-esm/components/ApiInfo/styled.js +1 -1
  379. package/lib-esm/components/ApiInfo/types.d.ts +9 -4
  380. package/lib-esm/components/CallbackSamples/CallbackSamples.d.ts +2 -3
  381. package/lib-esm/components/CallbackSamples/CallbackSamples.js +1 -1
  382. package/lib-esm/components/Callbacks/CallbackDetails.d.ts +1 -1
  383. package/lib-esm/components/Callbacks/CallbackDetails.js +1 -1
  384. package/lib-esm/components/Callbacks/CallbackOperation.js +1 -1
  385. package/lib-esm/components/Callbacks/CallbacksList.js +1 -1
  386. package/lib-esm/components/ChangeViewButton/ChangeViewButton.d.ts +1 -0
  387. package/lib-esm/components/ChangeViewButton/ChangeViewButton.js +2 -0
  388. package/lib-esm/components/ChangeViewButton/index.d.ts +1 -0
  389. package/lib-esm/components/ChangeViewButton/index.js +2 -0
  390. package/lib-esm/components/ChangeViewButton/styled.d.ts +3 -0
  391. package/lib-esm/components/ChangeViewButton/styled.js +18 -0
  392. package/lib-esm/components/ContentItem/ContentItem.d.ts +6 -6
  393. package/lib-esm/components/ContentItem/ContentItem.js +1 -1
  394. package/lib-esm/components/ContentItems/ContentItems.d.ts +10 -4
  395. package/lib-esm/components/ContentItems/ContentItems.js +1 -1
  396. package/lib-esm/components/ContentItems/helpers.d.ts +11 -0
  397. package/lib-esm/components/ContentItems/helpers.js +2 -0
  398. package/lib-esm/components/ContentItems/useAutoScroll.d.ts +1 -0
  399. package/lib-esm/components/ContentItems/useAutoScroll.js +2 -0
  400. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.d.ts +2 -2
  401. package/lib-esm/components/DiscriminatorDropdown/DiscriminatorDropdown.js +1 -1
  402. package/lib-esm/components/Download/DownloadButtonWithLabel.d.ts +3 -4
  403. package/lib-esm/components/Download/DownloadButtonWithLabel.js +1 -1
  404. package/lib-esm/components/Download/types.d.ts +12 -0
  405. package/lib-esm/components/Download/useDownloadInfo.d.ts +2 -0
  406. package/lib-esm/components/Download/useDownloadInfo.js +2 -0
  407. package/lib-esm/components/Endpoint/Endpoint.js +1 -1
  408. package/lib-esm/components/Endpoint/ServerList.js +1 -1
  409. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.d.ts +2 -2
  410. package/lib-esm/components/ExternalDocumentation/ExternalDocumentation.js +3 -3
  411. package/lib-esm/components/Fields/DescriptionEnums.js +1 -1
  412. package/lib-esm/components/Fields/EnumValues.js +1 -1
  413. package/lib-esm/components/Fields/Examples.js +1 -1
  414. package/lib-esm/components/Fields/Extensions.js +2 -2
  415. package/lib-esm/components/Fields/Field.d.ts +3 -2
  416. package/lib-esm/components/Fields/Field.js +1 -1
  417. package/lib-esm/components/Fields/FieldDetails.d.ts +2 -3
  418. package/lib-esm/components/Fields/FieldDetails.js +1 -1
  419. package/lib-esm/components/Fields/SimpleEnums.js +1 -1
  420. package/lib-esm/components/Fields/types.d.ts +0 -1
  421. package/lib-esm/components/GenericChildrenSwitcher/GenericChildrenSwitcher.js +1 -1
  422. package/lib-esm/components/Markdown/Markdown.d.ts +1 -1
  423. package/lib-esm/components/Markdown/Markdown.js +1 -1
  424. package/lib-esm/components/Markdown/index.d.ts +0 -2
  425. package/lib-esm/components/Markdown/index.js +1 -1
  426. package/lib-esm/components/Markdown/styled.js +1 -3
  427. package/lib-esm/components/Markdown/types.d.ts +5 -13
  428. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.d.ts +2 -2
  429. package/lib-esm/components/MediaTypeSwitch/MediaTypesSwitch.js +1 -1
  430. package/lib-esm/components/NextSectionButton/NextSectionButton.d.ts +8 -0
  431. package/lib-esm/components/NextSectionButton/NextSectionButton.js +2 -0
  432. package/lib-esm/components/NextSectionButton/index.d.ts +1 -0
  433. package/lib-esm/components/NextSectionButton/index.js +2 -0
  434. package/lib-esm/components/NextSectionButton/styled.d.ts +1 -0
  435. package/lib-esm/components/NextSectionButton/styled.js +18 -0
  436. package/lib-esm/components/OperationItem/OperationItem.d.ts +3 -0
  437. package/lib-esm/components/OperationItem/OperationItem.js +9 -0
  438. package/lib-esm/components/OperationItem/index.d.ts +2 -0
  439. package/lib-esm/components/OperationItem/index.js +2 -0
  440. package/lib-esm/components/OperationItem/types.d.ts +4 -0
  441. package/lib-esm/components/{Operation → OperationItem}/types.js +0 -0
  442. package/lib-esm/components/Overlay.d.ts +2 -7
  443. package/lib-esm/components/Overlay.js +1 -1
  444. package/lib-esm/components/Panel/ResponsePanel.js +1 -1
  445. package/lib-esm/components/Parameters/BodyContent.d.ts +3 -2
  446. package/lib-esm/components/Parameters/BodyContent.js +1 -1
  447. package/lib-esm/components/Parameters/ParametersGroup.js +1 -1
  448. package/lib-esm/components/PayloadSamples/MediaTypeSamples.d.ts +2 -3
  449. package/lib-esm/components/PayloadSamples/MediaTypeSamples.js +1 -1
  450. package/lib-esm/components/PayloadSamples/PayloadSamples.d.ts +2 -3
  451. package/lib-esm/components/PayloadSamples/PayloadSamples.js +1 -1
  452. package/lib-esm/components/PayloadSamples/types.d.ts +1 -2
  453. package/lib-esm/components/PayloadSamples/useExternalExample.js +1 -1
  454. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.d.ts +6 -0
  455. package/lib-esm/components/RedoclyOpenAPIDocs/Providers.js +2 -0
  456. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.d.ts +4 -0
  457. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocs.js +2 -0
  458. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.d.ts +2 -0
  459. package/lib-esm/components/RedoclyOpenAPIDocs/RedoclyOpenAPIDocsMultiStandalone.js +2 -0
  460. package/lib-esm/components/RedoclyOpenAPIDocs/index.d.ts +5 -0
  461. package/lib-esm/components/RedoclyOpenAPIDocs/index.js +2 -0
  462. package/lib-esm/components/RedoclyOpenAPIDocs/styled.d.ts +13 -0
  463. package/lib-esm/components/RedoclyOpenAPIDocs/styled.js +170 -0
  464. package/lib-esm/components/RedoclyOpenAPIDocs/types.d.ts +63 -0
  465. package/lib-esm/components/{types.js → RedoclyOpenAPIDocs/types.js} +0 -0
  466. package/lib-esm/components/RedoclyOpenAPIDocs/utils.d.ts +10 -0
  467. package/lib-esm/components/RedoclyOpenAPIDocs/utils.js +2 -0
  468. package/lib-esm/components/RequestSamples/CodeSample.d.ts +1 -1
  469. package/lib-esm/components/RequestSamples/CodeSample.js +1 -1
  470. package/lib-esm/components/RequestSamples/Example.d.ts +2 -2
  471. package/lib-esm/components/RequestSamples/Example.js +1 -1
  472. package/lib-esm/components/RequestSamples/RequestSamples.d.ts +1 -1
  473. package/lib-esm/components/RequestSamples/RequestSamples.js +1 -1
  474. package/lib-esm/components/ResponseSamples/ResponseSamples.d.ts +4 -1
  475. package/lib-esm/components/ResponseSamples/ResponseSamples.js +1 -1
  476. package/lib-esm/components/Responses/Response.d.ts +1 -3
  477. package/lib-esm/components/Responses/Response.js +1 -1
  478. package/lib-esm/components/Responses/ResponseSummary.js +14 -1
  479. package/lib-esm/components/Responses/styled.js +2 -2
  480. package/lib-esm/components/Samples/SamplesTabs.d.ts +3 -2
  481. package/lib-esm/components/Samples/SamplesTabs.js +1 -1
  482. package/lib-esm/components/Samples/use-example-key.d.ts +1 -1
  483. package/lib-esm/components/Samples/use-example-key.js +1 -1
  484. package/lib-esm/components/Schema/ObjectSchema.d.ts +1 -1
  485. package/lib-esm/components/Schema/ObjectSchema.js +1 -1
  486. package/lib-esm/components/Schema/OneOfSchema.d.ts +1 -1
  487. package/lib-esm/components/Schema/OneOfSchema.js +1 -1
  488. package/lib-esm/components/Schema/RecursiveSchema.d.ts +1 -1
  489. package/lib-esm/components/Schema/RecursiveSchema.js +1 -1
  490. package/lib-esm/components/Schema/Schema.d.ts +1 -1
  491. package/lib-esm/components/Schema/Schema.js +1 -1
  492. package/lib-esm/components/SchemaDefinition/SchemaDefinition.d.ts +1 -7
  493. package/lib-esm/components/SchemaDefinition/SchemaDefinition.js +1 -1
  494. package/lib-esm/components/Search/MenuItemSearch.d.ts +2 -0
  495. package/lib-esm/components/Search/MenuItemSearch.js +2 -0
  496. package/lib-esm/components/Search/Search.d.ts +3 -0
  497. package/lib-esm/components/Search/Search.js +2 -0
  498. package/lib-esm/components/Search/SearchBox.d.ts +2 -8
  499. package/lib-esm/components/Search/SearchBox.js +1 -1
  500. package/lib-esm/components/Search/index.d.ts +1 -0
  501. package/lib-esm/components/Search/index.js +1 -1
  502. package/lib-esm/components/Search/types.d.ts +11 -8
  503. package/lib-esm/components/Search/utils.js +1 -1
  504. package/lib-esm/components/SectionContent/SectionContent.d.ts +15 -0
  505. package/lib-esm/components/SectionContent/SectionContent.js +2 -0
  506. package/lib-esm/components/SectionContent/index.d.ts +1 -0
  507. package/lib-esm/components/SectionContent/index.js +2 -0
  508. package/lib-esm/components/SectionItem/SectionItem.d.ts +2 -3
  509. package/lib-esm/components/SectionItem/SectionItem.js +1 -1
  510. package/lib-esm/components/SecurityRequirement/PanelDescription.d.ts +1 -6
  511. package/lib-esm/components/SecurityRequirement/RequirementElement.d.ts +2 -7
  512. package/lib-esm/components/SecurityRequirement/RequirementElement.js +1 -1
  513. package/lib-esm/components/SecurityRequirement/SecurityDefs.d.ts +1 -7
  514. package/lib-esm/components/SecurityRequirement/SecurityDefs.js +1 -1
  515. package/lib-esm/components/SecurityRequirement/SecurityRequirement.d.ts +3 -6
  516. package/lib-esm/components/SecurityRequirement/SecurityRequirement.js +1 -1
  517. package/lib-esm/components/SecurityRequirement/constants.d.ts +6 -6
  518. package/lib-esm/components/SecurityRequirement/constants.js +1 -1
  519. package/lib-esm/components/SecurityRequirement/types.d.ts +19 -0
  520. package/lib-esm/components/SecurityRequirement/types.js +2 -0
  521. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.d.ts +3 -0
  522. package/lib-esm/components/SecurityRequirement/useSecurityRequirements.js +2 -0
  523. package/lib-esm/components/SecuritySchemes/OAuthFlow.d.ts +3 -0
  524. package/lib-esm/components/SecuritySchemes/OAuthFlow.js +2 -0
  525. package/lib-esm/components/SecuritySchemes/helpers.d.ts +1 -1
  526. package/lib-esm/components/SecuritySchemes/index.d.ts +1 -1
  527. package/lib-esm/components/SecuritySchemes/index.js +1 -1
  528. package/lib-esm/components/SecuritySchemes/types.d.ts +0 -1
  529. package/lib-esm/components/SideMenu/MenuItem.d.ts +7 -5
  530. package/lib-esm/components/SideMenu/MenuItem.js +1 -1
  531. package/lib-esm/components/SideMenu/MenuItemEternalLink.d.ts +1 -2
  532. package/lib-esm/components/SideMenu/MenuItemEternalLink.js +1 -1
  533. package/lib-esm/components/SideMenu/MenuItemLink.d.ts +3 -0
  534. package/lib-esm/components/SideMenu/MenuItemLink.js +2 -0
  535. package/lib-esm/components/SideMenu/MenuItems.d.ts +2 -1
  536. package/lib-esm/components/SideMenu/MenuItems.js +1 -1
  537. package/lib-esm/components/SideMenu/MenuOperationItemContent.d.ts +5 -3
  538. package/lib-esm/components/SideMenu/MenuOperationItemContent.js +2 -2
  539. package/lib-esm/components/SideMenu/SideMenu.d.ts +8 -5
  540. package/lib-esm/components/SideMenu/SideMenu.js +1 -1
  541. package/lib-esm/components/SideMenu/styled.d.ts +10 -5
  542. package/lib-esm/components/SideMenu/styled.js +12 -12
  543. package/lib-esm/components/SideMenu/types.d.ts +10 -4
  544. package/lib-esm/components/SideMenu/useMenuItemLink.d.ts +18 -0
  545. package/lib-esm/components/SideMenu/useMenuItemLink.js +2 -0
  546. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.d.ts +4 -6
  547. package/lib-esm/components/StickySidebar/StickyResponsiveSidebar.js +2 -3
  548. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.d.ts +2 -1
  549. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabs.js +1 -1
  550. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.d.ts +1 -1
  551. package/lib-esm/components/Tabs/CollapsingTabs/CollapsingTabsBase.js +1 -1
  552. package/lib-esm/components/TagItem/TagItem.d.ts +2 -0
  553. package/lib-esm/components/TagItem/TagItem.js +2 -0
  554. package/lib-esm/components/TagItem/index.d.ts +1 -0
  555. package/lib-esm/components/TagItem/index.js +2 -0
  556. package/lib-esm/components/TagItems/TagItems.d.ts +13 -0
  557. package/lib-esm/components/TagItems/TagItems.js +2 -0
  558. package/lib-esm/components/TagItems/index.d.ts +1 -0
  559. package/lib-esm/components/TagItems/index.js +2 -0
  560. package/lib-esm/components/ToggleRightPanelButton/ToggleRightPanelButton.d.ts +1 -0
  561. package/lib-esm/components/ToggleRightPanelButton/ToggleRightPanelButton.js +2 -0
  562. package/lib-esm/components/ToggleRightPanelButton/index.d.ts +1 -0
  563. package/lib-esm/components/ToggleRightPanelButton/index.js +2 -0
  564. package/lib-esm/components/ToggleRightPanelButton/styled.d.ts +3 -0
  565. package/lib-esm/components/ToggleRightPanelButton/styled.js +17 -0
  566. package/lib-esm/components/VersionSwitcher.d.ts +4 -3
  567. package/lib-esm/components/VersionSwitcher.js +1 -1
  568. package/lib-esm/components/common/Dropdown/Dropdown.js +2 -2
  569. package/lib-esm/components/common/Fields/fields-layout.d.ts +0 -1
  570. package/lib-esm/components/common/Fields/fields-layout.js +0 -5
  571. package/lib-esm/components/common/LinkToField.d.ts +11 -2
  572. package/lib-esm/components/common/LinkToField.js +9 -22
  573. package/lib-esm/components/common/Portal/Portal.d.ts +6 -0
  574. package/lib-esm/components/common/Portal/Portal.js +2 -0
  575. package/lib-esm/components/common/Portal/index.d.ts +1 -0
  576. package/lib-esm/components/common/Portal/index.js +2 -0
  577. package/lib-esm/components/{ContentItems → common/Skeleton}/Skeleton.d.ts +0 -0
  578. package/lib-esm/components/{ContentItems → common/Skeleton}/Skeleton.js +1 -1
  579. package/lib-esm/components/common/Skeleton/index.d.ts +1 -0
  580. package/lib-esm/components/common/Skeleton/index.js +2 -0
  581. package/lib-esm/components/common/headers.d.ts +0 -6
  582. package/lib-esm/components/common/headers.js +1 -25
  583. package/lib-esm/components/common/index.d.ts +4 -2
  584. package/lib-esm/components/common/index.js +1 -1
  585. package/lib-esm/components/common/linkify.d.ts +3 -7
  586. package/lib-esm/components/common/linkify.js +6 -51
  587. package/lib-esm/components/common/panels.js +13 -10
  588. package/lib-esm/components/common/perfect-scrollbar.js +2 -2
  589. package/lib-esm/components/icons/LockIcon.d.ts +1 -1
  590. package/lib-esm/components/icons/Spinner.d.ts +1 -1
  591. package/lib-esm/components/index.d.ts +8 -9
  592. package/lib-esm/components/index.js +1 -1
  593. package/lib-esm/components/pluggable/PullRight.d.ts +3 -2
  594. package/lib-esm/components/pluggable/PullRight.js +1 -55
  595. package/lib-esm/components/pluggable/RedocExample.d.ts +1 -3
  596. package/lib-esm/components/pluggable/RedocExample.js +1 -1
  597. package/lib-esm/components/pluggable/RedocRequestBody.d.ts +1 -3
  598. package/lib-esm/components/pluggable/RedocRequestBody.js +1 -1
  599. package/lib-esm/components/pluggable/RedocResponse.d.ts +1 -3
  600. package/lib-esm/components/pluggable/RedocResponse.js +1 -1
  601. package/lib-esm/components/pluggable/RedocSchema.d.ts +1 -3
  602. package/lib-esm/components/pluggable/RedocSchema.js +1 -1
  603. package/lib-esm/components/rightPanel/CodemirrorInput/CodemirrorInput.js +1 -1
  604. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.d.ts +1 -10
  605. package/lib-esm/components/rightPanel/CodemirrorInput/helpers.js +1 -1
  606. package/lib-esm/components/rightPanel/Console/Console.d.ts +2 -2
  607. package/lib-esm/components/rightPanel/Console/Console.js +1 -1
  608. package/lib-esm/components/rightPanel/Console/ConsoleLazy.js +1 -1
  609. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.d.ts +5 -2
  610. package/lib-esm/components/rightPanel/Console/ConsoleWrapper.js +1 -1
  611. package/lib-esm/components/rightPanel/Console/Request.d.ts +3 -12
  612. package/lib-esm/components/rightPanel/Console/Request.js +1 -1
  613. package/lib-esm/components/rightPanel/Console/types.d.ts +14 -3
  614. package/lib-esm/components/rightPanel/OAuth2Flow/OAuth2Flow.js +1 -1
  615. package/lib-esm/components/rightPanel/OpenIDConnect.d.ts +2 -2
  616. package/lib-esm/components/rightPanel/RequestBody/Body.d.ts +1 -1
  617. package/lib-esm/components/rightPanel/RequestBody/Body.js +1 -1
  618. package/lib-esm/components/rightPanel/RequestBody/RequestBody.d.ts +1 -1
  619. package/lib-esm/components/rightPanel/RequestBody/RequestBody.js +1 -1
  620. package/lib-esm/components/rightPanel/RequestBody/types.d.ts +1 -0
  621. package/lib-esm/components/rightPanel/RequestBodyForm.d.ts +6 -3
  622. package/lib-esm/components/rightPanel/RequestBodyForm.js +1 -1
  623. package/lib-esm/components/rightPanel/ResponseHeadersList.js +1 -1
  624. package/lib-esm/components/rightPanel/ServerVariable.d.ts +1 -1
  625. package/lib-esm/components/rightPanel/ServerVariable.js +1 -1
  626. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.d.ts +2 -1
  627. package/lib-esm/components/rightPanel/ServersDropdown/ServersDropdown.js +1 -1
  628. package/lib-esm/components/rightPanel/utils.d.ts +3 -2
  629. package/lib-esm/components/rightPanel/utils.js +1 -1
  630. package/lib-esm/constants.d.ts +0 -2
  631. package/lib-esm/constants.js +1 -1
  632. package/lib-esm/events/codeSampleCopy.js +1 -1
  633. package/lib-esm/events/types.d.ts +2 -2
  634. package/lib-esm/hoc/types.d.ts +38 -0
  635. package/lib-esm/hoc/types.js +2 -0
  636. package/lib-esm/hoc/utils.d.ts +2 -0
  637. package/lib-esm/hoc/utils.js +2 -0
  638. package/lib-esm/hoc/withRouter.d.ts +3 -0
  639. package/lib-esm/hoc/withRouter.js +2 -0
  640. package/lib-esm/hooks/index.d.ts +4 -0
  641. package/lib-esm/hooks/index.js +1 -1
  642. package/lib-esm/hooks/useActivateExample.d.ts +2 -0
  643. package/lib-esm/hooks/useActivateExample.js +2 -0
  644. package/lib-esm/hooks/useContentItems.d.ts +12 -0
  645. package/lib-esm/hooks/useContentItems.js +2 -0
  646. package/lib-esm/hooks/useLicense.d.ts +5 -0
  647. package/lib-esm/hooks/useLicense.js +2 -0
  648. package/lib-esm/hooks/useRouter.d.ts +11 -0
  649. package/lib-esm/hooks/useRouter.js +2 -0
  650. package/lib-esm/index.d.ts +2 -1
  651. package/lib-esm/index.js +1 -1
  652. package/lib-esm/models/callback.d.ts +5 -0
  653. package/lib-esm/models/callback.js +2 -0
  654. package/lib-esm/models/example.d.ts +10 -0
  655. package/lib-esm/models/example.js +2 -0
  656. package/lib-esm/models/field.d.ts +7 -0
  657. package/lib-esm/models/field.js +2 -0
  658. package/lib-esm/models/group.d.ts +4 -0
  659. package/lib-esm/models/group.js +2 -0
  660. package/lib-esm/models/index.d.ts +13 -14
  661. package/lib-esm/models/index.js +1 -1
  662. package/lib-esm/models/mediaContent.d.ts +7 -0
  663. package/lib-esm/models/mediaContent.js +2 -0
  664. package/lib-esm/models/mediaType.d.ts +20 -0
  665. package/lib-esm/models/mediaType.js +2 -0
  666. package/lib-esm/models/operation.d.ts +18 -0
  667. package/lib-esm/models/operation.js +2 -0
  668. package/lib-esm/models/request.d.ts +12 -0
  669. package/lib-esm/models/request.js +2 -0
  670. package/lib-esm/models/response.d.ts +15 -0
  671. package/lib-esm/models/response.js +2 -0
  672. package/lib-esm/models/schema.d.ts +14 -0
  673. package/lib-esm/models/schema.js +2 -0
  674. package/lib-esm/models/security.d.ts +13 -0
  675. package/lib-esm/models/security.js +2 -0
  676. package/lib-esm/models/types.d.ts +233 -3
  677. package/lib-esm/recoil/app.d.ts +32 -0
  678. package/lib-esm/recoil/app.js +2 -0
  679. package/lib-esm/recoil/operation.d.ts +11 -0
  680. package/lib-esm/recoil/operation.js +2 -0
  681. package/lib-esm/recoil/store.d.ts +19 -0
  682. package/lib-esm/recoil/store.js +2 -0
  683. package/lib-esm/services/OpenAPIParser.d.ts +1 -1
  684. package/lib-esm/services/OpenAPIParser.js +1 -1
  685. package/lib-esm/services/Options/index.d.ts +1 -1
  686. package/lib-esm/services/Options/index.js +1 -1
  687. package/lib-esm/services/Options/{NormalizedOptions.d.ts → normalizeOptions.d.ts} +1 -1
  688. package/lib-esm/services/Options/normalizeOptions.js +2 -0
  689. package/lib-esm/services/Options/types.d.ts +31 -15
  690. package/lib-esm/services/code-samples/generator.js +1 -1
  691. package/lib-esm/services/code-samples/httpsnippet/targets/index.d.ts +1 -1
  692. package/lib-esm/services/code-samples/httpsnippet/targets/javascript/index.d.ts +1 -1
  693. package/lib-esm/services/code-samples/httpsnippet/targets/shell/curl.d.ts +2 -2
  694. package/lib-esm/services/code-samples/types.d.ts +2 -2
  695. package/lib-esm/services/history/helpers.d.ts +1 -1
  696. package/lib-esm/services/history/helpers.js +1 -1
  697. package/lib-esm/services/history/index.d.ts +1 -4
  698. package/lib-esm/services/history/index.js +1 -1
  699. package/lib-esm/services/index.d.ts +2 -7
  700. package/lib-esm/services/index.js +1 -1
  701. package/lib-esm/services/menu/builder.d.ts +9 -0
  702. package/lib-esm/services/menu/builder.js +2 -0
  703. package/lib-esm/services/menu/helpers.d.ts +6 -0
  704. package/lib-esm/services/menu/helpers.js +2 -0
  705. package/lib-esm/services/menu/index.d.ts +1 -0
  706. package/lib-esm/services/menu/index.js +2 -0
  707. package/lib-esm/services/menu/markdown.d.ts +11 -0
  708. package/lib-esm/services/menu/markdown.js +2 -0
  709. package/lib-esm/services/menu/operation.d.ts +13 -0
  710. package/lib-esm/services/menu/operation.js +2 -0
  711. package/lib-esm/services/menu/tags.d.ts +27 -0
  712. package/lib-esm/services/menu/tags.js +2 -0
  713. package/lib-esm/services/search/DeepSearchStore.d.ts +3 -3
  714. package/lib-esm/services/search/DeepSearchStore.js +1 -1
  715. package/lib-esm/services/search/SearchStore.d.ts +1 -1
  716. package/lib-esm/services/search/useSearch.d.ts +13 -0
  717. package/lib-esm/services/search/useSearch.js +2 -0
  718. package/lib-esm/services/types.d.ts +42 -91
  719. package/lib-esm/services/types.js +1 -1
  720. package/lib-esm/services/utils.d.ts +1 -0
  721. package/lib-esm/services/utils.js +1 -1
  722. package/lib-esm/standalone.d.ts +5 -5
  723. package/lib-esm/standalone.js +1 -1
  724. package/lib-esm/testProviders.d.ts +2 -2
  725. package/lib-esm/testProviders.js +1 -1
  726. package/lib-esm/types/app.d.ts +1 -0
  727. package/lib-esm/types/app.js +2 -0
  728. package/lib-esm/types/index.d.ts +1 -0
  729. package/lib-esm/types/index.js +1 -1
  730. package/lib-esm/types/open-api.d.ts +15 -15
  731. package/lib-esm/utils/compose.d.ts +1 -0
  732. package/lib-esm/utils/compose.js +2 -0
  733. package/lib-esm/utils/helpers.d.ts +2 -1
  734. package/lib-esm/utils/helpers.js +1 -1
  735. package/lib-esm/utils/index.d.ts +3 -2
  736. package/lib-esm/utils/index.js +1 -1
  737. package/lib-esm/utils/local-storage.js +1 -1
  738. package/lib-esm/utils/openapi.d.ts +11 -7
  739. package/lib-esm/utils/openapi.js +1 -1
  740. package/lib-esm/utils/saveTextBeforeHeading.d.ts +1 -0
  741. package/lib-esm/utils/saveTextBeforeHeading.js +2 -0
  742. package/lib-esm/utils/typeGuards.d.ts +3 -0
  743. package/lib-esm/utils/typeGuards.js +2 -0
  744. package/package.json +13 -17
  745. package/bin/cli/assets/redoc-fast-scroll.js +0 -22
  746. package/bin/cli/assets/template.hbs +0 -24
  747. package/bin/cli/commands/redocly-docs-cli.min.js +0 -6130
  748. package/bin/cli/commands/redocly-docs-cli.min.js.LICENSE.txt +0 -325
  749. package/dist/console.redocly-reference-docs.min.js +0 -507
  750. package/dist/redocly-reference-docs.min.js +0 -6218
  751. package/lib/cli/assets/redoc-fast-scroll.d.ts +0 -0
  752. package/lib/cli/assets/redoc-fast-scroll.js +0 -2
  753. package/lib/cli/cli.d.ts +0 -2
  754. package/lib/cli/cli.js +0 -3
  755. package/lib/cli/commands/bundle.d.ts +0 -1
  756. package/lib/cli/commands/bundle.js +0 -2
  757. package/lib/cli/commands/index.d.ts +0 -1
  758. package/lib/cli/commands/index.js +0 -2
  759. package/lib/cli/constants.d.ts +0 -3
  760. package/lib/cli/constants.js +0 -2
  761. package/lib/cli/utils.d.ts +0 -16
  762. package/lib/cli/utils.js +0 -2
  763. package/lib/components/Markdown/AdvancedMarkdown.d.ts +0 -2
  764. package/lib/components/Markdown/AdvancedMarkdown.js +0 -2
  765. package/lib/components/Markdown/SanitizedMarkdownHTML.d.ts +0 -6
  766. package/lib/components/Markdown/SanitizedMarkdownHTML.js +0 -2
  767. package/lib/components/NextSectionButton.d.ts +0 -13
  768. package/lib/components/NextSectionButton.js +0 -8
  769. package/lib/components/Operation/Operation.d.ts +0 -4
  770. package/lib/components/Operation/Operation.js +0 -8
  771. package/lib/components/Operation/index.d.ts +0 -2
  772. package/lib/components/Operation/index.js +0 -2
  773. package/lib/components/Operation/types.d.ts +0 -6
  774. package/lib/components/ProProviders.d.ts +0 -9
  775. package/lib/components/ProProviders.js +0 -2
  776. package/lib/components/RedoclyReferenceDocs.d.ts +0 -26
  777. package/lib/components/RedoclyReferenceDocs.js +0 -54
  778. package/lib/components/RedoclyReferenceDocsMultiStandalone.d.ts +0 -7
  779. package/lib/components/RedoclyReferenceDocsMultiStandalone.js +0 -2
  780. package/lib/components/Search/MenuItemProSearch.d.ts +0 -2
  781. package/lib/components/Search/MenuItemProSearch.js +0 -2
  782. package/lib/components/SecuritySchemes/SecuritySchemes.d.ts +0 -3
  783. package/lib/components/SecuritySchemes/SecuritySchemes.js +0 -2
  784. package/lib/components/SideMenu/MenuItemLinkOrLabel.d.ts +0 -7
  785. package/lib/components/SideMenu/MenuItemLinkOrLabel.js +0 -2
  786. package/lib/components/StoreProvider.d.ts +0 -22
  787. package/lib/components/StoreProvider.js +0 -2
  788. package/lib/components/styled.elements.d.ts +0 -19
  789. package/lib/components/styled.elements.js +0 -166
  790. package/lib/components/types.d.ts +0 -8
  791. package/lib/context/OptionsProvider.d.ts +0 -6
  792. package/lib/context/OptionsProvider.js +0 -2
  793. package/lib/context/StoreProvider.d.ts +0 -6
  794. package/lib/context/StoreProvider.js +0 -2
  795. package/lib/context/index.d.ts +0 -2
  796. package/lib/context/index.js +0 -2
  797. package/lib/models/ApiInfo.d.ts +0 -17
  798. package/lib/models/ApiInfo.js +0 -2
  799. package/lib/models/Callback.d.ts +0 -11
  800. package/lib/models/Callback.js +0 -2
  801. package/lib/models/Example.d.ts +0 -17
  802. package/lib/models/Example.js +0 -2
  803. package/lib/models/Field.d.ts +0 -34
  804. package/lib/models/Field.js +0 -2
  805. package/lib/models/Group.d.ts +0 -26
  806. package/lib/models/Group.js +0 -2
  807. package/lib/models/MediaContent.d.ts +0 -31
  808. package/lib/models/MediaContent.js +0 -2
  809. package/lib/models/MediaType.d.ts +0 -27
  810. package/lib/models/MediaType.js +0 -2
  811. package/lib/models/Operation.d.ts +0 -92
  812. package/lib/models/Operation.js +0 -2
  813. package/lib/models/RequestBody.d.ts +0 -18
  814. package/lib/models/RequestBody.js +0 -2
  815. package/lib/models/Response.d.ts +0 -28
  816. package/lib/models/Response.js +0 -2
  817. package/lib/models/Schema.d.ts +0 -78
  818. package/lib/models/Schema.js +0 -2
  819. package/lib/models/SecurityRequirement.d.ts +0 -12
  820. package/lib/models/SecurityRequirement.js +0 -2
  821. package/lib/models/SecuritySchemes.d.ts +0 -25
  822. package/lib/models/SecuritySchemes.js +0 -2
  823. package/lib/models/Webhook.d.ts +0 -8
  824. package/lib/models/Webhook.js +0 -2
  825. package/lib/services/MarkdownRenderer.d.ts +0 -23
  826. package/lib/services/MarkdownRenderer.js +0 -2
  827. package/lib/services/MenuBuilder.d.ts +0 -63
  828. package/lib/services/MenuBuilder.js +0 -2
  829. package/lib/services/Options/NormalizedOptions.js +0 -2
  830. package/lib/services/ProMenu.d.ts +0 -108
  831. package/lib/services/ProMenu.js +0 -2
  832. package/lib/services/ProStore.d.ts +0 -92
  833. package/lib/services/ProStore.js +0 -2
  834. package/lib/services/ScrollService.d.ts +0 -18
  835. package/lib/services/ScrollService.js +0 -2
  836. package/lib/services/SpecStore.d.ts +0 -18
  837. package/lib/services/SpecStore.js +0 -2
  838. package/lib/services/VersionedSpecStore.d.ts +0 -42
  839. package/lib/services/VersionedSpecStore.js +0 -2
  840. package/lib/services/history/FakeHistoryService.d.ts +0 -20
  841. package/lib/services/history/FakeHistoryService.js +0 -2
  842. package/lib/services/history/HistoryService.d.ts +0 -15
  843. package/lib/services/history/HistoryService.js +0 -2
  844. package/lib/services/history/ProHashHistoryService.d.ts +0 -25
  845. package/lib/services/history/ProHashHistoryService.js +0 -2
  846. package/lib/services/history/PushStateHistoryService.d.ts +0 -24
  847. package/lib/services/history/PushStateHistoryService.js +0 -2
  848. package/lib/utils/memoize.d.ts +0 -1
  849. package/lib/utils/memoize.js +0 -2
  850. package/lib/utils/store.d.ts +0 -3
  851. package/lib/utils/store.js +0 -2
  852. package/lib-esm/cli/assets/redoc-fast-scroll.d.ts +0 -0
  853. package/lib-esm/cli/assets/redoc-fast-scroll.js +0 -2
  854. package/lib-esm/cli/cli.d.ts +0 -2
  855. package/lib-esm/cli/cli.js +0 -3
  856. package/lib-esm/cli/commands/bundle.d.ts +0 -1
  857. package/lib-esm/cli/commands/bundle.js +0 -2
  858. package/lib-esm/cli/commands/index.d.ts +0 -1
  859. package/lib-esm/cli/commands/index.js +0 -2
  860. package/lib-esm/cli/constants.d.ts +0 -3
  861. package/lib-esm/cli/constants.js +0 -2
  862. package/lib-esm/cli/utils.d.ts +0 -16
  863. package/lib-esm/cli/utils.js +0 -2
  864. package/lib-esm/components/Markdown/AdvancedMarkdown.d.ts +0 -2
  865. package/lib-esm/components/Markdown/AdvancedMarkdown.js +0 -2
  866. package/lib-esm/components/Markdown/SanitizedMarkdownHTML.d.ts +0 -6
  867. package/lib-esm/components/Markdown/SanitizedMarkdownHTML.js +0 -2
  868. package/lib-esm/components/NextSectionButton.d.ts +0 -13
  869. package/lib-esm/components/NextSectionButton.js +0 -8
  870. package/lib-esm/components/Operation/Operation.d.ts +0 -4
  871. package/lib-esm/components/Operation/Operation.js +0 -8
  872. package/lib-esm/components/Operation/index.d.ts +0 -2
  873. package/lib-esm/components/Operation/index.js +0 -2
  874. package/lib-esm/components/Operation/types.d.ts +0 -6
  875. package/lib-esm/components/ProProviders.d.ts +0 -9
  876. package/lib-esm/components/ProProviders.js +0 -2
  877. package/lib-esm/components/RedoclyReferenceDocs.d.ts +0 -26
  878. package/lib-esm/components/RedoclyReferenceDocs.js +0 -54
  879. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.d.ts +0 -7
  880. package/lib-esm/components/RedoclyReferenceDocsMultiStandalone.js +0 -2
  881. package/lib-esm/components/Search/MenuItemProSearch.d.ts +0 -2
  882. package/lib-esm/components/Search/MenuItemProSearch.js +0 -2
  883. package/lib-esm/components/SecuritySchemes/SecuritySchemes.d.ts +0 -3
  884. package/lib-esm/components/SecuritySchemes/SecuritySchemes.js +0 -2
  885. package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.d.ts +0 -7
  886. package/lib-esm/components/SideMenu/MenuItemLinkOrLabel.js +0 -2
  887. package/lib-esm/components/StoreProvider.d.ts +0 -22
  888. package/lib-esm/components/StoreProvider.js +0 -2
  889. package/lib-esm/components/styled.elements.d.ts +0 -19
  890. package/lib-esm/components/styled.elements.js +0 -166
  891. package/lib-esm/components/types.d.ts +0 -8
  892. package/lib-esm/context/OptionsProvider.d.ts +0 -6
  893. package/lib-esm/context/OptionsProvider.js +0 -2
  894. package/lib-esm/context/StoreProvider.d.ts +0 -6
  895. package/lib-esm/context/StoreProvider.js +0 -2
  896. package/lib-esm/context/index.d.ts +0 -2
  897. package/lib-esm/context/index.js +0 -2
  898. package/lib-esm/models/ApiInfo.d.ts +0 -17
  899. package/lib-esm/models/ApiInfo.js +0 -2
  900. package/lib-esm/models/Callback.d.ts +0 -11
  901. package/lib-esm/models/Callback.js +0 -2
  902. package/lib-esm/models/Example.d.ts +0 -17
  903. package/lib-esm/models/Example.js +0 -2
  904. package/lib-esm/models/Field.d.ts +0 -34
  905. package/lib-esm/models/Field.js +0 -2
  906. package/lib-esm/models/Group.d.ts +0 -26
  907. package/lib-esm/models/Group.js +0 -2
  908. package/lib-esm/models/MediaContent.d.ts +0 -31
  909. package/lib-esm/models/MediaContent.js +0 -2
  910. package/lib-esm/models/MediaType.d.ts +0 -27
  911. package/lib-esm/models/MediaType.js +0 -2
  912. package/lib-esm/models/Operation.d.ts +0 -92
  913. package/lib-esm/models/Operation.js +0 -2
  914. package/lib-esm/models/RequestBody.d.ts +0 -18
  915. package/lib-esm/models/RequestBody.js +0 -2
  916. package/lib-esm/models/Response.d.ts +0 -28
  917. package/lib-esm/models/Response.js +0 -2
  918. package/lib-esm/models/Schema.d.ts +0 -78
  919. package/lib-esm/models/Schema.js +0 -2
  920. package/lib-esm/models/SecurityRequirement.d.ts +0 -12
  921. package/lib-esm/models/SecurityRequirement.js +0 -2
  922. package/lib-esm/models/SecuritySchemes.d.ts +0 -25
  923. package/lib-esm/models/SecuritySchemes.js +0 -2
  924. package/lib-esm/models/Webhook.d.ts +0 -8
  925. package/lib-esm/models/Webhook.js +0 -2
  926. package/lib-esm/services/MarkdownRenderer.d.ts +0 -23
  927. package/lib-esm/services/MarkdownRenderer.js +0 -2
  928. package/lib-esm/services/MenuBuilder.d.ts +0 -63
  929. package/lib-esm/services/MenuBuilder.js +0 -2
  930. package/lib-esm/services/Options/NormalizedOptions.js +0 -2
  931. package/lib-esm/services/ProMenu.d.ts +0 -108
  932. package/lib-esm/services/ProMenu.js +0 -2
  933. package/lib-esm/services/ProStore.d.ts +0 -92
  934. package/lib-esm/services/ProStore.js +0 -2
  935. package/lib-esm/services/ScrollService.d.ts +0 -18
  936. package/lib-esm/services/ScrollService.js +0 -2
  937. package/lib-esm/services/SpecStore.d.ts +0 -18
  938. package/lib-esm/services/SpecStore.js +0 -2
  939. package/lib-esm/services/VersionedSpecStore.d.ts +0 -42
  940. package/lib-esm/services/VersionedSpecStore.js +0 -2
  941. package/lib-esm/services/history/FakeHistoryService.d.ts +0 -20
  942. package/lib-esm/services/history/FakeHistoryService.js +0 -2
  943. package/lib-esm/services/history/HistoryService.d.ts +0 -15
  944. package/lib-esm/services/history/HistoryService.js +0 -2
  945. package/lib-esm/services/history/ProHashHistoryService.d.ts +0 -25
  946. package/lib-esm/services/history/ProHashHistoryService.js +0 -2
  947. package/lib-esm/services/history/PushStateHistoryService.d.ts +0 -24
  948. package/lib-esm/services/history/PushStateHistoryService.js +0 -2
  949. package/lib-esm/utils/memoize.d.ts +0 -1
  950. package/lib-esm/utils/memoize.js +0 -2
  951. package/lib-esm/utils/store.d.ts +0 -3
  952. package/lib-esm/utils/store.js +0 -2
@@ -0,0 +1,507 @@
1
+ /*!
2
+ * Redocly OpenAPI Docs
3
+ * (c) Copyright 2018 Redocly LLC, all rights reserved.
4
+ * -------------------------------------------------------------
5
+ * Version: "3.0.0-alpha.14"
6
+ */(this.webpackChunkRedoclyOpenAPIDocs=this.webpackChunkRedoclyOpenAPIDocs||[]).push([[290],{62680:(h,O,o)=>{"use strict";var d=o(67286),x=o(89429),w=x(d("String.prototype.indexOf"));h.exports=function(T,F){var U=d(T,!!F);return typeof U=="function"&&w(T,".prototype.")>-1?x(U):U}},89429:(h,O,o)=>{"use strict";var d=o(4090),x=o(67286),w=x("%Function.prototype.apply%"),C=x("%Function.prototype.call%"),T=x("%Reflect.apply%",!0)||d.call(C,w),F=x("%Object.getOwnPropertyDescriptor%",!0),U=x("%Object.defineProperty%",!0),Z=x("%Math.max%");if(U)try{U({},"a",{value:1})}catch(ue){U=null}h.exports=function(ne){var ie=T(d,C,arguments);if(F&&U){var Y=F(ie,"length");Y.configurable&&U(ie,"length",{value:1+Z(0,ne.length-(arguments.length-1))})}return ie};var ee=function(){return T(d,w,arguments)};U?U(h.exports,"apply",{value:ee}):h.exports.apply=ee},61682:(h,O,o)=>{(function(d){d(o(23326))})(function(d){var x={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},w=d.Pos;d.defineOption("autoCloseBrackets",!1,function(N,E,k){k&&k!=d.Init&&(N.removeKeyMap(T),N.state.closeBrackets=null),E&&(F(C(E,"pairs")),N.state.closeBrackets=E,N.addKeyMap(T))});function C(N,E){return E=="pairs"&&typeof N=="string"?N:typeof N=="object"&&N[E]!=null?N[E]:x[E]}var T={Backspace:ee,Enter:ue};function F(N){for(var E=0;E<N.length;E++){var k=N.charAt(E),V="'"+k+"'";T[V]||(T[V]=U(k))}}F(x.pairs+"`");function U(N){return function(E){return Y(E,N)}}function Z(N){var E=N.state.closeBrackets;if(!E||E.override)return E;var k=N.getModeAt(N.getCursor());return k.closeBrackets||E}function ee(N){var E=Z(N);if(!E||N.getOption("disableInput"))return d.Pass;for(var k=C(E,"pairs"),V=N.listSelections(),$=0;$<V.length;$++){if(!V[$].empty())return d.Pass;var Q=A(N,V[$].head);if(!Q||k.indexOf(Q)%2!=0)return d.Pass}for(var $=V.length-1;$>=0;$--){var W=V[$].head;N.replaceRange("",w(W.line,W.ch-1),w(W.line,W.ch+1),"+delete")}}function ue(N){var E=Z(N),k=E&&C(E,"explode");if(!k||N.getOption("disableInput"))return d.Pass;for(var V=N.listSelections(),$=0;$<V.length;$++){if(!V[$].empty())return d.Pass;var Q=A(N,V[$].head);if(!Q||k.indexOf(Q)%2!=0)return d.Pass}N.operation(function(){var W=N.lineSeparator()||`
7
+ `;N.replaceSelection(W+W,null),ne(N,-1),V=N.listSelections();for(var re=0;re<V.length;re++){var K=V[re].head.line;N.indentLine(K,null,!0),N.indentLine(K+1,null,!0)}})}function ne(N,E){for(var k=[],V=N.listSelections(),$=0,Q=0;Q<V.length;Q++){var W=V[Q];W.head==N.getCursor()&&($=Q);var re=W.head.ch||E>0?{line:W.head.line,ch:W.head.ch+E}:{line:W.head.line-1};k.push({anchor:re,head:re})}N.setSelections(k,$)}function ie(N){var E=d.cmpPos(N.anchor,N.head)>0;return{anchor:new w(N.anchor.line,N.anchor.ch+(E?-1:1)),head:new w(N.head.line,N.head.ch+(E?1:-1))}}function Y(N,E){var k=Z(N);if(!k||N.getOption("disableInput"))return d.Pass;var V=C(k,"pairs"),$=V.indexOf(E);if($==-1)return d.Pass;for(var Q=C(k,"closeBefore"),W=C(k,"triples"),re=V.charAt($+1)==E,K=N.listSelections(),H=$%2==0,fe,he=0;he<K.length;he++){var _=K[he],X=_.head,z,ge=N.getRange(X,w(X.line,X.ch+1));if(H&&!_.empty())z="surround";else if((re||!H)&&ge==E)re&&J(N,X)?z="both":W.indexOf(E)>=0&&N.getRange(X,w(X.line,X.ch+3))==E+E+E?z="skipThree":z="skip";else if(re&&X.ch>1&&W.indexOf(E)>=0&&N.getRange(w(X.line,X.ch-2),X)==E+E){if(X.ch>2&&/\bstring/.test(N.getTokenTypeAt(w(X.line,X.ch-2))))return d.Pass;z="addFour"}else if(re){var Oe=X.ch==0?" ":N.getRange(w(X.line,X.ch-1),X);if(!d.isWordChar(ge)&&Oe!=E&&!d.isWordChar(Oe))z="both";else return d.Pass}else if(H&&(ge.length===0||/\s/.test(ge)||Q.indexOf(ge)>-1))z="both";else return d.Pass;if(!fe)fe=z;else if(fe!=z)return d.Pass}var Ue=$%2?V.charAt($-1):E,Fe=$%2?E:V.charAt($+1);N.operation(function(){if(fe=="skip")ne(N,1);else if(fe=="skipThree")ne(N,3);else if(fe=="surround"){for(var at=N.getSelections(),Xe=0;Xe<at.length;Xe++)at[Xe]=Ue+at[Xe]+Fe;N.replaceSelections(at,"around"),at=N.listSelections().slice();for(var Xe=0;Xe<at.length;Xe++)at[Xe]=ie(at[Xe]);N.setSelections(at)}else fe=="both"?(N.replaceSelection(Ue+Fe,null),N.triggerElectric(Ue+Fe),ne(N,-1)):fe=="addFour"&&(N.replaceSelection(Ue+Ue+Ue+Ue,"before"),ne(N,1))})}function A(N,E){var k=N.getRange(w(E.line,E.ch-1),w(E.line,E.ch+1));return k.length==2?k:null}function J(N,E){var k=N.getTokenAt(w(E.line,E.ch+1));return/\bstring/.test(k.type)&&k.start==E.ch&&(E.ch==0||!/\bstring/.test(N.getTokenTypeAt(E)))}})},32407:(h,O,o)=>{(function(d){d(o(23326))})(function(d){var x=/MSIE \d/.test(navigator.userAgent)&&(document.documentMode==null||document.documentMode<8),w=d.Pos,C={"(":")>",")":"(<","[":"]>","]":"[<","{":"}>","}":"{<","<":">>",">":"<<"};function T(ne){return ne&&ne.bracketRegex||/[(){}[\]]/}function F(ne,ie,Y){var A=ne.getLineHandle(ie.line),J=ie.ch-1,N=Y&&Y.afterCursor;N==null&&(N=/(^| )cm-fat-cursor($| )/.test(ne.getWrapperElement().className));var E=T(Y),k=!N&&J>=0&&E.test(A.text.charAt(J))&&C[A.text.charAt(J)]||E.test(A.text.charAt(J+1))&&C[A.text.charAt(++J)];if(!k)return null;var V=k.charAt(1)==">"?1:-1;if(Y&&Y.strict&&V>0!=(J==ie.ch))return null;var $=ne.getTokenTypeAt(w(ie.line,J+1)),Q=U(ne,w(ie.line,J+(V>0?1:0)),V,$,Y);return Q==null?null:{from:w(ie.line,J),to:Q&&Q.pos,match:Q&&Q.ch==k.charAt(0),forward:V>0}}function U(ne,ie,Y,A,J){for(var N=J&&J.maxScanLineLength||1e4,E=J&&J.maxScanLines||1e3,k=[],V=T(J),$=Y>0?Math.min(ie.line+E,ne.lastLine()+1):Math.max(ne.firstLine()-1,ie.line-E),Q=ie.line;Q!=$;Q+=Y){var W=ne.getLine(Q);if(!!W){var re=Y>0?0:W.length-1,K=Y>0?W.length:-1;if(!(W.length>N))for(Q==ie.line&&(re=ie.ch-(Y<0?1:0));re!=K;re+=Y){var H=W.charAt(re);if(V.test(H)&&(A===void 0||(ne.getTokenTypeAt(w(Q,re+1))||"")==(A||""))){var fe=C[H];if(fe&&fe.charAt(1)==">"==Y>0)k.push(H);else if(k.length)k.pop();else return{pos:w(Q,re),ch:H}}}}}return Q-Y==(Y>0?ne.lastLine():ne.firstLine())?!1:null}function Z(ne,ie,Y){for(var A=ne.state.matchBrackets.maxHighlightLineLength||1e3,J=Y&&Y.highlightNonMatching,N=[],E=ne.listSelections(),k=0;k<E.length;k++){var V=E[k].empty()&&F(ne,E[k].head,Y);if(V&&(V.match||J!==!1)&&ne.getLine(V.from.line).length<=A){var $=V.match?"CodeMirror-matchingbracket":"CodeMirror-nonmatchingbracket";N.push(ne.markText(V.from,w(V.from.line,V.from.ch+1),{className:$})),V.to&&ne.getLine(V.to.line).length<=A&&N.push(ne.markText(V.to,w(V.to.line,V.to.ch+1),{className:$}))}}if(N.length){x&&ne.state.focused&&ne.focus();var Q=function(){ne.operation(function(){for(var W=0;W<N.length;W++)N[W].clear()})};if(ie)setTimeout(Q,800);else return Q}}function ee(ne){ne.operation(function(){ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null),ne.state.matchBrackets.currentlyHighlighted=Z(ne,!1,ne.state.matchBrackets)})}function ue(ne){ne.state.matchBrackets&&ne.state.matchBrackets.currentlyHighlighted&&(ne.state.matchBrackets.currentlyHighlighted(),ne.state.matchBrackets.currentlyHighlighted=null)}d.defineOption("matchBrackets",!1,function(ne,ie,Y){Y&&Y!=d.Init&&(ne.off("cursorActivity",ee),ne.off("focus",ee),ne.off("blur",ue),ue(ne)),ie&&(ne.state.matchBrackets=typeof ie=="object"?ie:{},ne.on("cursorActivity",ee),ne.on("focus",ee),ne.on("blur",ue))}),d.defineExtension("matchBrackets",function(){Z(this,!0)}),d.defineExtension("findMatchingBracket",function(ne,ie,Y){return(Y||typeof ie=="boolean")&&(Y?(Y.strict=ie,ie=Y):ie=ie?{strict:!0}:null),F(this,ne,ie)}),d.defineExtension("scanForBracket",function(ne,ie,Y,A){return U(this,ne,ie,Y,A)})})},22130:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-hint",w="CodeMirror-hint-active";d.showHint=function(N,E,k){if(!E)return N.showHint(k);k&&k.async&&(E.async=!0);var V={hint:E};if(k)for(var $ in k)V[$]=k[$];return N.showHint(V)},d.defineExtension("showHint",function(N){N=U(this,this.getCursor("start"),N);var E=this.listSelections();if(!(E.length>1)){if(this.somethingSelected()){if(!N.hint.supportsSelection)return;for(var k=0;k<E.length;k++)if(E[k].head.line!=E[k].anchor.line)return}this.state.completionActive&&this.state.completionActive.close();var V=this.state.completionActive=new C(this,N);!V.options.hint||(d.signal(this,"startCompletion",this),V.update(!0))}}),d.defineExtension("closeHint",function(){this.state.completionActive&&this.state.completionActive.close()});function C(N,E){if(this.cm=N,this.options=E,this.widget=null,this.debounce=0,this.tick=0,this.startPos=this.cm.getCursor("start"),this.startLen=this.cm.getLine(this.startPos.line).length-this.cm.getSelection().length,this.options.updateOnCursorActivity){var k=this;N.on("cursorActivity",this.activityFunc=function(){k.cursorActivity()})}}var T=window.requestAnimationFrame||function(N){return setTimeout(N,1e3/60)},F=window.cancelAnimationFrame||clearTimeout;C.prototype={close:function(){!this.active()||(this.cm.state.completionActive=null,this.tick=null,this.options.updateOnCursorActivity&&this.cm.off("cursorActivity",this.activityFunc),this.widget&&this.data&&d.signal(this.data,"close"),this.widget&&this.widget.close(),d.signal(this.cm,"endCompletion",this.cm))},active:function(){return this.cm.state.completionActive==this},pick:function(N,E){var k=N.list[E],V=this;this.cm.operation(function(){k.hint?k.hint(V.cm,N,k):V.cm.replaceRange(Z(k),k.from||N.from,k.to||N.to,"complete"),d.signal(N,"pick",k),V.cm.scrollIntoView()}),this.options.closeOnPick&&this.close()},cursorActivity:function(){this.debounce&&(F(this.debounce),this.debounce=0);var N=this.startPos;this.data&&(N=this.data.from);var E=this.cm.getCursor(),k=this.cm.getLine(E.line);if(E.line!=this.startPos.line||k.length-E.ch!=this.startLen-this.startPos.ch||E.ch<N.ch||this.cm.somethingSelected()||!E.ch||this.options.closeCharacters.test(k.charAt(E.ch-1)))this.close();else{var V=this;this.debounce=T(function(){V.update()}),this.widget&&this.widget.disable()}},update:function(N){if(this.tick!=null){var E=this,k=++this.tick;Y(this.options.hint,this.cm,this.options,function(V){E.tick==k&&E.finishUpdate(V,N)})}},finishUpdate:function(N,E){this.data&&d.signal(this.data,"update");var k=this.widget&&this.widget.picked||E&&this.options.completeSingle;this.widget&&this.widget.close(),this.data=N,N&&N.list.length&&(k&&N.list.length==1?this.pick(N,0):(this.widget=new ne(this,N),d.signal(N,"shown")))}};function U(N,E,k){var V=N.options.hintOptions,$={};for(var Q in J)$[Q]=J[Q];if(V)for(var Q in V)V[Q]!==void 0&&($[Q]=V[Q]);if(k)for(var Q in k)k[Q]!==void 0&&($[Q]=k[Q]);return $.hint.resolve&&($.hint=$.hint.resolve(N,E)),$}function Z(N){return typeof N=="string"?N:N.text}function ee(N,E){var k={Up:function(){E.moveFocus(-1)},Down:function(){E.moveFocus(1)},PageUp:function(){E.moveFocus(-E.menuSize()+1,!0)},PageDown:function(){E.moveFocus(E.menuSize()-1,!0)},Home:function(){E.setFocus(0)},End:function(){E.setFocus(E.length-1)},Enter:E.pick,Tab:E.pick,Esc:E.close},V=/Mac/.test(navigator.platform);V&&(k["Ctrl-P"]=function(){E.moveFocus(-1)},k["Ctrl-N"]=function(){E.moveFocus(1)});var $=N.options.customKeys,Q=$?{}:k;function W(H,fe){var he;typeof fe!="string"?he=function(_){return fe(_,E)}:k.hasOwnProperty(fe)?he=k[fe]:he=fe,Q[H]=he}if($)for(var re in $)$.hasOwnProperty(re)&&W(re,$[re]);var K=N.options.extraKeys;if(K)for(var re in K)K.hasOwnProperty(re)&&W(re,K[re]);return Q}function ue(N,E){for(;E&&E!=N;){if(E.nodeName.toUpperCase()==="LI"&&E.parentNode==N)return E;E=E.parentNode}}function ne(N,E){this.id="cm-complete-"+Math.floor(Math.random(1e6)),this.completion=N,this.data=E,this.picked=!1;var k=this,V=N.cm,$=V.getInputField().ownerDocument,Q=$.defaultView||$.parentWindow,W=this.hints=$.createElement("ul");W.setAttribute("role","listbox"),W.setAttribute("aria-expanded","true"),W.id=this.id;var re=N.cm.options.theme;W.className="CodeMirror-hints "+re,this.selectedHint=E.selectedHint||0;for(var K=E.list,H=0;H<K.length;++H){var fe=W.appendChild($.createElement("li")),he=K[H],_=x+(H!=this.selectedHint?"":" "+w);he.className!=null&&(_=he.className+" "+_),fe.className=_,H==this.selectedHint&&fe.setAttribute("aria-selected","true"),fe.id=this.id+"-"+H,fe.setAttribute("role","option"),he.render?he.render(fe,E,he):fe.appendChild($.createTextNode(he.displayText||Z(he))),fe.hintId=H}var X=N.options.container||$.body,z=V.cursorCoords(N.options.alignWithWord?E.from:null),ge=z.left,Oe=z.bottom,Ue=!0,Fe=0,at=0;if(X!==$.body){var Xe=["absolute","relative","fixed"].indexOf(Q.getComputedStyle(X).position)!==-1,xt=Xe?X:X.offsetParent,Pt=xt.getBoundingClientRect(),Ct=$.body.getBoundingClientRect();Fe=Pt.left-Ct.left-xt.scrollLeft,at=Pt.top-Ct.top-xt.scrollTop}W.style.left=ge-Fe+"px",W.style.top=Oe-at+"px";var Le=Q.innerWidth||Math.max($.body.offsetWidth,$.documentElement.offsetWidth),Ce=Q.innerHeight||Math.max($.body.offsetHeight,$.documentElement.offsetHeight);X.appendChild(W),V.getInputField().setAttribute("aria-autocomplete","list"),V.getInputField().setAttribute("aria-owns",this.id),V.getInputField().setAttribute("aria-activedescendant",this.id+"-"+this.selectedHint);var Se=N.options.moveOnOverlap?W.getBoundingClientRect():new DOMRect,De=N.options.paddingForScrollbar?W.scrollHeight>W.clientHeight+1:!1,$e;setTimeout(function(){$e=V.getScrollInfo()});var tt=Se.bottom-Ce;if(tt>0){var _e=Se.bottom-Se.top,St=Se.top-(z.bottom-z.top)-2;Ce-Se.top<St?(_e>St&&(W.style.height=(_e=St)+"px"),W.style.top=(Oe=z.top-_e)+at+"px",Ue=!1):W.style.height=Ce-Se.top-2+"px"}var It=Se.right-Le;if(De&&(It+=V.display.nativeBarWidth),It>0&&(Se.right-Se.left>Le&&(W.style.width=Le-5+"px",It-=Se.right-Se.left-Le),W.style.left=(ge=Math.max(z.left-It-Fe,0))+"px"),De)for(var Wt=W.firstChild;Wt;Wt=Wt.nextSibling)Wt.style.paddingRight=V.display.nativeBarWidth+"px";if(V.addKeyMap(this.keyMap=ee(N,{moveFocus:function(Ot,ot){k.changeActive(k.selectedHint+Ot,ot)},setFocus:function(Ot){k.changeActive(Ot)},menuSize:function(){return k.screenAmount()},length:K.length,close:function(){N.close()},pick:function(){k.pick()},data:E})),N.options.closeOnUnfocus){var $t;V.on("blur",this.onBlur=function(){$t=setTimeout(function(){N.close()},100)}),V.on("focus",this.onFocus=function(){clearTimeout($t)})}V.on("scroll",this.onScroll=function(){var Ot=V.getScrollInfo(),ot=V.getWrapperElement().getBoundingClientRect();$e||($e=V.getScrollInfo());var qr=Oe+$e.top-Ot.top,Qe=qr-(Q.pageYOffset||($.documentElement||$.body).scrollTop);if(Ue||(Qe+=W.offsetHeight),Qe<=ot.top||Qe>=ot.bottom)return N.close();W.style.top=qr+"px",W.style.left=ge+$e.left-Ot.left+"px"}),d.on(W,"dblclick",function(Ot){var ot=ue(W,Ot.target||Ot.srcElement);ot&&ot.hintId!=null&&(k.changeActive(ot.hintId),k.pick())}),d.on(W,"click",function(Ot){var ot=ue(W,Ot.target||Ot.srcElement);ot&&ot.hintId!=null&&(k.changeActive(ot.hintId),N.options.completeOnSingleClick&&k.pick())}),d.on(W,"mousedown",function(){setTimeout(function(){V.focus()},20)});var We=this.getSelectedHintRange();return(We.from!==0||We.to!==0)&&this.scrollToActive(),d.signal(E,"select",K[this.selectedHint],W.childNodes[this.selectedHint]),!0}ne.prototype={close:function(){if(this.completion.widget==this){this.completion.widget=null,this.hints.parentNode&&this.hints.parentNode.removeChild(this.hints),this.completion.cm.removeKeyMap(this.keyMap);var N=this.completion.cm.getInputField();N.removeAttribute("aria-activedescendant"),N.removeAttribute("aria-owns");var E=this.completion.cm;this.completion.options.closeOnUnfocus&&(E.off("blur",this.onBlur),E.off("focus",this.onFocus)),E.off("scroll",this.onScroll)}},disable:function(){this.completion.cm.removeKeyMap(this.keyMap);var N=this;this.keyMap={Enter:function(){N.picked=!0}},this.completion.cm.addKeyMap(this.keyMap)},pick:function(){this.completion.pick(this.data,this.selectedHint)},changeActive:function(N,E){if(N>=this.data.list.length?N=E?this.data.list.length-1:0:N<0&&(N=E?0:this.data.list.length-1),this.selectedHint!=N){var k=this.hints.childNodes[this.selectedHint];k&&(k.className=k.className.replace(" "+w,""),k.removeAttribute("aria-selected")),k=this.hints.childNodes[this.selectedHint=N],k.className+=" "+w,k.setAttribute("aria-selected","true"),this.completion.cm.getInputField().setAttribute("aria-activedescendant",k.id),this.scrollToActive(),d.signal(this.data,"select",this.data.list[this.selectedHint],k)}},scrollToActive:function(){var N=this.getSelectedHintRange(),E=this.hints.childNodes[N.from],k=this.hints.childNodes[N.to],V=this.hints.firstChild;E.offsetTop<this.hints.scrollTop?this.hints.scrollTop=E.offsetTop-V.offsetTop:k.offsetTop+k.offsetHeight>this.hints.scrollTop+this.hints.clientHeight&&(this.hints.scrollTop=k.offsetTop+k.offsetHeight-this.hints.clientHeight+V.offsetTop)},screenAmount:function(){return Math.floor(this.hints.clientHeight/this.hints.firstChild.offsetHeight)||1},getSelectedHintRange:function(){var N=this.completion.options.scrollMargin||0;return{from:Math.max(0,this.selectedHint-N),to:Math.min(this.data.list.length-1,this.selectedHint+N)}}};function ie(N,E){if(!N.somethingSelected())return E;for(var k=[],V=0;V<E.length;V++)E[V].supportsSelection&&k.push(E[V]);return k}function Y(N,E,k,V){if(N.async)N(E,V,k);else{var $=N(E,k);$&&$.then?$.then(V):V($)}}function A(N,E){var k=N.getHelpers(E,"hint"),V;if(k.length){var $=function(Q,W,re){var K=ie(Q,k);function H(fe){if(fe==K.length)return W(null);Y(K[fe],Q,re,function(he){he&&he.list.length>0?W(he):H(fe+1)})}H(0)};return $.async=!0,$.supportsSelection=!0,$}else return(V=N.getHelper(N.getCursor(),"hintWords"))?function(Q){return d.hint.fromList(Q,{words:V})}:d.hint.anyword?function(Q,W){return d.hint.anyword(Q,W)}:function(){}}d.registerHelper("hint","auto",{resolve:A}),d.registerHelper("hint","fromList",function(N,E){var k=N.getCursor(),V=N.getTokenAt(k),$,Q=d.Pos(k.line,V.start),W=k;V.start<k.ch&&/\w/.test(V.string.charAt(k.ch-V.start-1))?$=V.string.substr(0,k.ch-V.start):($="",Q=k);for(var re=[],K=0;K<E.words.length;K++){var H=E.words[K];H.slice(0,$.length)==$&&re.push(H)}if(re.length)return{list:re,from:Q,to:W}}),d.commands.autocomplete=d.showHint;var J={hint:d.hint.auto,completeSingle:!0,alignWithWord:!0,closeCharacters:/[\s()\[\]{};:>,]/,closeOnPick:!0,closeOnUnfocus:!0,updateOnCursorActivity:!0,completeOnSingleClick:!0,container:null,customKeys:null,extraKeys:null,paddingForScrollbar:!0,moveOnOverlap:!0};d.defineOption("hintOptions",null)})},29387:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x="CodeMirror-lint-markers",w="CodeMirror-lint-line-";function C(W,re,K){var H=document.createElement("div");H.className="CodeMirror-lint-tooltip cm-s-"+W.options.theme,H.appendChild(K.cloneNode(!0)),W.state.lint.options.selfContain?W.getWrapperElement().appendChild(H):document.body.appendChild(H);function fe(he){if(!H.parentNode)return d.off(document,"mousemove",fe);H.style.top=Math.max(0,he.clientY-H.offsetHeight-5)+"px",H.style.left=he.clientX+5+"px"}return d.on(document,"mousemove",fe),fe(re),H.style.opacity!=null&&(H.style.opacity=1),H}function T(W){W.parentNode&&W.parentNode.removeChild(W)}function F(W){!W.parentNode||(W.style.opacity==null&&T(W),W.style.opacity=0,setTimeout(function(){T(W)},600))}function U(W,re,K,H){var fe=C(W,re,K);function he(){d.off(H,"mouseout",he),fe&&(F(fe),fe=null)}var _=setInterval(function(){if(fe)for(var X=H;;X=X.parentNode){if(X&&X.nodeType==11&&(X=X.host),X==document.body)return;if(!X){he();break}}if(!fe)return clearInterval(_)},400);d.on(H,"mouseout",he)}function Z(W,re,K){this.marked=[],re instanceof Function&&(re={getAnnotations:re}),(!re||re===!0)&&(re={}),this.options={},this.linterOptions=re.options||{};for(var H in ee)this.options[H]=ee[H];for(var H in re)ee.hasOwnProperty(H)?re[H]!=null&&(this.options[H]=re[H]):re.options||(this.linterOptions[H]=re[H]);this.timeout=null,this.hasGutter=K,this.onMouseOver=function(fe){Q(W,fe)},this.waitingFor=0}var ee={highlightLines:!1,tooltips:!0,delay:500,lintOnChange:!0,getAnnotations:null,async:!1,selfContain:null,formatAnnotation:null,onUpdateLinting:null};function ue(W){var re=W.state.lint;re.hasGutter&&W.clearGutter(x),re.options.highlightLines&&ne(W);for(var K=0;K<re.marked.length;++K)re.marked[K].clear();re.marked.length=0}function ne(W){W.eachLine(function(re){var K=re.wrapClass&&/\bCodeMirror-lint-line-\w+\b/.exec(re.wrapClass);K&&W.removeLineClass(re,"wrap",K[0])})}function ie(W,re,K,H,fe){var he=document.createElement("div"),_=he;return he.className="CodeMirror-lint-marker CodeMirror-lint-marker-"+K,H&&(_=he.appendChild(document.createElement("div")),_.className="CodeMirror-lint-marker CodeMirror-lint-marker-multiple"),fe!=!1&&d.on(_,"mouseover",function(X){U(W,X,re,_)}),he}function Y(W,re){return W=="error"?W:re}function A(W){for(var re=[],K=0;K<W.length;++K){var H=W[K],fe=H.from.line;(re[fe]||(re[fe]=[])).push(H)}return re}function J(W){var re=W.severity;re||(re="error");var K=document.createElement("div");return K.className="CodeMirror-lint-message CodeMirror-lint-message-"+re,typeof W.messageHTML!="undefined"?K.innerHTML=W.messageHTML:K.appendChild(document.createTextNode(W.message)),K}function N(W,re){var K=W.state.lint,H=++K.waitingFor;function fe(){H=-1,W.off("change",fe)}W.on("change",fe),re(W.getValue(),function(he,_){W.off("change",fe),K.waitingFor==H&&(_&&he instanceof d&&(he=_),W.operation(function(){k(W,he)}))},K.linterOptions,W)}function E(W){var re=W.state.lint;if(!!re){var K=re.options,H=K.getAnnotations||W.getHelper(d.Pos(0,0),"lint");if(!!H)if(K.async||H.async)N(W,H);else{var fe=H(W.getValue(),re.linterOptions,W);if(!fe)return;fe.then?fe.then(function(he){W.operation(function(){k(W,he)})}):W.operation(function(){k(W,fe)})}}}function k(W,re){var K=W.state.lint;if(!!K){var H=K.options;ue(W);for(var fe=A(re),he=0;he<fe.length;++he){var _=fe[he];if(!!_){var X=[];_=_.filter(function(at){return X.indexOf(at.message)>-1?!1:X.push(at.message)});for(var z=null,ge=K.hasGutter&&document.createDocumentFragment(),Oe=0;Oe<_.length;++Oe){var Ue=_[Oe],Fe=Ue.severity;Fe||(Fe="error"),z=Y(z,Fe),H.formatAnnotation&&(Ue=H.formatAnnotation(Ue)),K.hasGutter&&ge.appendChild(J(Ue)),Ue.to&&K.marked.push(W.markText(Ue.from,Ue.to,{className:"CodeMirror-lint-mark CodeMirror-lint-mark-"+Fe,__annotation:Ue}))}K.hasGutter&&W.setGutterMarker(he,x,ie(W,ge,z,fe[he].length>1,H.tooltips)),H.highlightLines&&W.addLineClass(he,"wrap",w+z)}}H.onUpdateLinting&&H.onUpdateLinting(re,fe,W)}}function V(W){var re=W.state.lint;!re||(clearTimeout(re.timeout),re.timeout=setTimeout(function(){E(W)},re.options.delay))}function $(W,re,K){for(var H=K.target||K.srcElement,fe=document.createDocumentFragment(),he=0;he<re.length;he++){var _=re[he];fe.appendChild(J(_))}U(W,K,fe,H)}function Q(W,re){var K=re.target||re.srcElement;if(!!/\bCodeMirror-lint-mark-/.test(K.className)){for(var H=K.getBoundingClientRect(),fe=(H.left+H.right)/2,he=(H.top+H.bottom)/2,_=W.findMarksAt(W.coordsChar({left:fe,top:he},"client")),X=[],z=0;z<_.length;++z){var ge=_[z].__annotation;ge&&X.push(ge)}X.length&&$(W,X,re)}}d.defineOption("lint",!1,function(W,re,K){if(K&&K!=d.Init&&(ue(W),W.state.lint.options.lintOnChange!==!1&&W.off("change",V),d.off(W.getWrapperElement(),"mouseover",W.state.lint.onMouseOver),clearTimeout(W.state.lint.timeout),delete W.state.lint),re){for(var H=W.getOption("gutters"),fe=!1,he=0;he<H.length;++he)H[he]==x&&(fe=!0);var _=W.state.lint=new Z(W,re,fe);_.options.lintOnChange&&W.on("change",V),_.options.tooltips!=!1&&_.options.tooltips!="gutter"&&d.on(W.getWrapperElement(),"mouseover",_.onMouseOver),E(W)}}),d.defineExtension("performLint",function(){E(this)})})},19757:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";var x=d.Pos;function w(E){var k=E.flags;return k!=null?k:(E.ignoreCase?"i":"")+(E.global?"g":"")+(E.multiline?"m":"")}function C(E,k){for(var V=w(E),$=V,Q=0;Q<k.length;Q++)$.indexOf(k.charAt(Q))==-1&&($+=k.charAt(Q));return V==$?E:new RegExp(E.source,$)}function T(E){return/\\s|\\n|\n|\\W|\\D|\[\^/.test(E.source)}function F(E,k,V){k=C(k,"g");for(var $=V.line,Q=V.ch,W=E.lastLine();$<=W;$++,Q=0){k.lastIndex=Q;var re=E.getLine($),K=k.exec(re);if(K)return{from:x($,K.index),to:x($,K.index+K[0].length),match:K}}}function U(E,k,V){if(!T(k))return F(E,k,V);k=C(k,"gm");for(var $,Q=1,W=V.line,re=E.lastLine();W<=re;){for(var K=0;K<Q&&!(W>re);K++){var H=E.getLine(W++);$=$==null?H:$+`
8
+ `+H}Q=Q*2,k.lastIndex=V.ch;var fe=k.exec($);if(fe){var he=$.slice(0,fe.index).split(`
9
+ `),_=fe[0].split(`
10
+ `),X=V.line+he.length-1,z=he[he.length-1].length;return{from:x(X,z),to:x(X+_.length-1,_.length==1?z+_[0].length:_[_.length-1].length),match:fe}}}}function Z(E,k,V){for(var $,Q=0;Q<=E.length;){k.lastIndex=Q;var W=k.exec(E);if(!W)break;var re=W.index+W[0].length;if(re>E.length-V)break;(!$||re>$.index+$[0].length)&&($=W),Q=W.index+1}return $}function ee(E,k,V){k=C(k,"g");for(var $=V.line,Q=V.ch,W=E.firstLine();$>=W;$--,Q=-1){var re=E.getLine($),K=Z(re,k,Q<0?0:re.length-Q);if(K)return{from:x($,K.index),to:x($,K.index+K[0].length),match:K}}}function ue(E,k,V){if(!T(k))return ee(E,k,V);k=C(k,"gm");for(var $,Q=1,W=E.getLine(V.line).length-V.ch,re=V.line,K=E.firstLine();re>=K;){for(var H=0;H<Q&&re>=K;H++){var fe=E.getLine(re--);$=$==null?fe:fe+`
11
+ `+$}Q*=2;var he=Z($,k,W);if(he){var _=$.slice(0,he.index).split(`
12
+ `),X=he[0].split(`
13
+ `),z=re+_.length,ge=_[_.length-1].length;return{from:x(z,ge),to:x(z+X.length-1,X.length==1?ge+X[0].length:X[X.length-1].length),match:he}}}}var ne,ie;String.prototype.normalize?(ne=function(E){return E.normalize("NFD").toLowerCase()},ie=function(E){return E.normalize("NFD")}):(ne=function(E){return E.toLowerCase()},ie=function(E){return E});function Y(E,k,V,$){if(E.length==k.length)return V;for(var Q=0,W=V+Math.max(0,E.length-k.length);;){if(Q==W)return Q;var re=Q+W>>1,K=$(E.slice(0,re)).length;if(K==V)return re;K>V?W=re:Q=re+1}}function A(E,k,V,$){if(!k.length)return null;var Q=$?ne:ie,W=Q(k).split(/\r|\n\r?/);e:for(var re=V.line,K=V.ch,H=E.lastLine()+1-W.length;re<=H;re++,K=0){var fe=E.getLine(re).slice(K),he=Q(fe);if(W.length==1){var _=he.indexOf(W[0]);if(_==-1)continue e;var V=Y(fe,he,_,Q)+K;return{from:x(re,Y(fe,he,_,Q)+K),to:x(re,Y(fe,he,_+W[0].length,Q)+K)}}else{var X=he.length-W[0].length;if(he.slice(X)!=W[0])continue e;for(var z=1;z<W.length-1;z++)if(Q(E.getLine(re+z))!=W[z])continue e;var ge=E.getLine(re+W.length-1),Oe=Q(ge),Ue=W[W.length-1];if(Oe.slice(0,Ue.length)!=Ue)continue e;return{from:x(re,Y(fe,he,X,Q)+K),to:x(re+W.length-1,Y(ge,Oe,Ue.length,Q))}}}}function J(E,k,V,$){if(!k.length)return null;var Q=$?ne:ie,W=Q(k).split(/\r|\n\r?/);e:for(var re=V.line,K=V.ch,H=E.firstLine()-1+W.length;re>=H;re--,K=-1){var fe=E.getLine(re);K>-1&&(fe=fe.slice(0,K));var he=Q(fe);if(W.length==1){var _=he.lastIndexOf(W[0]);if(_==-1)continue e;return{from:x(re,Y(fe,he,_,Q)),to:x(re,Y(fe,he,_+W[0].length,Q))}}else{var X=W[W.length-1];if(he.slice(0,X.length)!=X)continue e;for(var z=1,V=re-W.length+1;z<W.length-1;z++)if(Q(E.getLine(V+z))!=W[z])continue e;var ge=E.getLine(re+1-W.length),Oe=Q(ge);if(Oe.slice(Oe.length-W[0].length)!=W[0])continue e;return{from:x(re+1-W.length,Y(ge,Oe,ge.length-W[0].length,Q)),to:x(re,Y(fe,he,X.length,Q))}}}}function N(E,k,V,$){this.atOccurrence=!1,this.afterEmptyMatch=!1,this.doc=E,V=V?E.clipPos(V):x(0,0),this.pos={from:V,to:V};var Q;typeof $=="object"?Q=$.caseFold:(Q=$,$=null),typeof k=="string"?(Q==null&&(Q=!1),this.matches=function(W,re){return(W?J:A)(E,k,re,Q)}):(k=C(k,"gm"),!$||$.multiline!==!1?this.matches=function(W,re){return(W?ue:U)(E,k,re)}:this.matches=function(W,re){return(W?ee:F)(E,k,re)})}N.prototype={findNext:function(){return this.find(!1)},findPrevious:function(){return this.find(!0)},find:function(E){var k=this.doc.clipPos(E?this.pos.from:this.pos.to);if(this.afterEmptyMatch&&this.atOccurrence&&(k=x(k.line,k.ch),E?(k.ch--,k.ch<0&&(k.line--,k.ch=(this.doc.getLine(k.line)||"").length)):(k.ch++,k.ch>(this.doc.getLine(k.line)||"").length&&(k.ch=0,k.line++)),d.cmpPos(k,this.doc.clipPos(k))!=0))return this.atOccurrence=!1;var V=this.matches(E,k);if(this.afterEmptyMatch=V&&d.cmpPos(V.from,V.to)==0,V)return this.pos=V,this.atOccurrence=!0,this.pos.match||!0;var $=x(E?this.doc.firstLine():this.doc.lastLine()+1,0);return this.pos={from:$,to:$},this.atOccurrence=!1},from:function(){if(this.atOccurrence)return this.pos.from},to:function(){if(this.atOccurrence)return this.pos.to},replace:function(E,k){if(!!this.atOccurrence){var V=d.splitLines(E);this.doc.replaceRange(V,this.pos.from,this.pos.to,k),this.pos.to=x(this.pos.from.line+V.length-1,V[V.length-1].length+(V.length==1?this.pos.from.ch:0))}}},d.defineExtension("getSearchCursor",function(E,k,V){return new N(this.doc,E,k,V)}),d.defineDocExtension("getSearchCursor",function(E,k,V){return new N(this,E,k,V)}),d.defineExtension("selectMatches",function(E,k){for(var V=[],$=this.getSearchCursor(E,this.getCursor("from"),k);$.findNext()&&!(d.cmpPos($.to(),this.getCursor("to"))>0);)V.push({anchor:$.from(),head:$.to()});V.length&&this.setSelections(V,0)})})},23326:function(h){(function(O,o){h.exports=o()})(this,function(){"use strict";var O=navigator.userAgent,o=navigator.platform,d=/gecko\/\d/i.test(O),x=/MSIE \d/.test(O),w=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(O),C=/Edge\/(\d+)/.exec(O),T=x||w||C,F=T&&(x?document.documentMode||6:+(C||w)[1]),U=!C&&/WebKit\//.test(O),Z=U&&/Qt\/\d+\.\d+/.test(O),ee=!C&&/Chrome\/(\d+)/.exec(O),ue=ee&&+ee[1],ne=/Opera\//.test(O),ie=/Apple Computer/.test(navigator.vendor),Y=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(O),A=/PhantomJS/.test(O),J=ie&&(/Mobile\/\w+/.test(O)||navigator.maxTouchPoints>2),N=/Android/.test(O),E=J||N||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(O),k=J||/Mac/.test(o),V=/\bCrOS\b/.test(O),$=/win/i.test(o),Q=ne&&O.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(ne=!1,U=!0);var W=k&&(Z||ne&&(Q==null||Q<12.11)),re=d||T&&F>=9;function K(t){return new RegExp("(^|\\s)"+t+"(?:$|\\s)\\s*")}var H=function(t,i){var u=t.className,l=K(i).exec(u);if(l){var f=u.slice(l.index+l[0].length);t.className=u.slice(0,l.index)+(f?l[1]+f:"")}};function fe(t){for(var i=t.childNodes.length;i>0;--i)t.removeChild(t.firstChild);return t}function he(t,i){return fe(t).appendChild(i)}function _(t,i,u,l){var f=document.createElement(t);if(u&&(f.className=u),l&&(f.style.cssText=l),typeof i=="string")f.appendChild(document.createTextNode(i));else if(i)for(var m=0;m<i.length;++m)f.appendChild(i[m]);return f}function X(t,i,u,l){var f=_(t,i,u,l);return f.setAttribute("role","presentation"),f}var z;document.createRange?z=function(t,i,u,l){var f=document.createRange();return f.setEnd(l||t,u),f.setStart(t,i),f}:z=function(t,i,u){var l=document.body.createTextRange();try{l.moveToElementText(t.parentNode)}catch(f){return l}return l.collapse(!0),l.moveEnd("character",u),l.moveStart("character",i),l};function ge(t,i){if(i.nodeType==3&&(i=i.parentNode),t.contains)return t.contains(i);do if(i.nodeType==11&&(i=i.host),i==t)return!0;while(i=i.parentNode)}function Oe(t){var i;try{i=t.activeElement}catch(u){i=t.body||null}for(;i&&i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Ue(t,i){var u=t.className;K(i).test(u)||(t.className+=(u?" ":"")+i)}function Fe(t,i){for(var u=t.split(" "),l=0;l<u.length;l++)u[l]&&!K(u[l]).test(i)&&(i+=" "+u[l]);return i}var at=function(t){t.select()};J?at=function(t){t.selectionStart=0,t.selectionEnd=t.value.length}:T&&(at=function(t){try{t.select()}catch(i){}});function Xe(t){return t.display.wrapper.ownerDocument}function xt(t){return Xe(t).defaultView}function Pt(t){var i=Array.prototype.slice.call(arguments,1);return function(){return t.apply(null,i)}}function Ct(t,i,u){i||(i={});for(var l in t)t.hasOwnProperty(l)&&(u!==!1||!i.hasOwnProperty(l))&&(i[l]=t[l]);return i}function Le(t,i,u,l,f){i==null&&(i=t.search(/[^\s\u00a0]/),i==-1&&(i=t.length));for(var m=l||0,S=f||0;;){var P=t.indexOf(" ",m);if(P<0||P>=i)return S+(i-m);S+=P-m,S+=u-S%u,m=P+1}}var Ce=function(){this.id=null,this.f=null,this.time=0,this.handler=Pt(this.onTimeout,this)};Ce.prototype.onTimeout=function(t){t.id=0,t.time<=+new Date?t.f():setTimeout(t.handler,t.time-+new Date)},Ce.prototype.set=function(t,i){this.f=i;var u=+new Date+t;(!this.id||u<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,t),this.time=u)};function Se(t,i){for(var u=0;u<t.length;++u)if(t[u]==i)return u;return-1}var De=50,$e={toString:function(){return"CodeMirror.Pass"}},tt={scroll:!1},_e={origin:"*mouse"},St={origin:"+move"};function It(t,i,u){for(var l=0,f=0;;){var m=t.indexOf(" ",l);m==-1&&(m=t.length);var S=m-l;if(m==t.length||f+S>=i)return l+Math.min(S,i-f);if(f+=m-l,f+=u-f%u,l=m+1,f>=i)return l}}var Wt=[""];function $t(t){for(;Wt.length<=t;)Wt.push(We(Wt)+" ");return Wt[t]}function We(t){return t[t.length-1]}function Ot(t,i){for(var u=[],l=0;l<t.length;l++)u[l]=i(t[l],l);return u}function ot(t,i,u){for(var l=0,f=u(i);l<t.length&&u(t[l])<=f;)l++;t.splice(l,0,i)}function qr(){}function Qe(t,i){var u;return Object.create?u=Object.create(t):(qr.prototype=t,u=new qr),i&&Ct(i,u),u}var un=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Ir(t){return/\w/.test(t)||t>"\x80"&&(t.toUpperCase()!=t.toLowerCase()||un.test(t))}function Or(t,i){return i?i.source.indexOf("\\w")>-1&&Ir(t)?!0:i.test(t):Ir(t)}function pr(t){for(var i in t)if(t.hasOwnProperty(i)&&t[i])return!1;return!0}var et=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function mt(t){return t.charCodeAt(0)>=768&&et.test(t)}function Mt(t,i,u){for(;(u<0?i>0:i<t.length)&&mt(t.charAt(i));)i+=u;return i}function Tt(t,i,u){for(var l=i>u?-1:1;;){if(i==u)return i;var f=(i+u)/2,m=l<0?Math.ceil(f):Math.floor(f);if(m==i)return t(m)?i:u;t(m)?u=m:i=m+l}}function Rt(t,i,u,l){if(!t)return l(i,u,"ltr",0);for(var f=!1,m=0;m<t.length;++m){var S=t[m];(S.from<u&&S.to>i||i==u&&S.to==i)&&(l(Math.max(S.from,i),Math.min(S.to,u),S.level==1?"rtl":"ltr",m),f=!0)}f||l(i,u,"ltr")}var dt=null;function gt(t,i,u){var l;dt=null;for(var f=0;f<t.length;++f){var m=t[f];if(m.from<i&&m.to>i)return f;m.to==i&&(m.from!=m.to&&u=="before"?l=f:dt=f),m.from==i&&(m.from!=m.to&&u!="before"?l=f:dt=f)}return l!=null?l:dt}var kt=function(){var t="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function u(j){return j<=247?t.charAt(j):1424<=j&&j<=1524?"R":1536<=j&&j<=1785?i.charAt(j-1536):1774<=j&&j<=2220?"r":8192<=j&&j<=8203?"w":j==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,f=/[stwN]/,m=/[LRr]/,S=/[Lb1n]/,P=/[1n]/;function R(j,se,de){this.level=j,this.from=se,this.to=de}return function(j,se){var de=se=="ltr"?"L":"R";if(j.length==0||se=="ltr"&&!l.test(j))return!1;for(var we=j.length,ye=[],Ie=0;Ie<we;++Ie)ye.push(u(j.charCodeAt(Ie)));for(var Ne=0,ze=de;Ne<we;++Ne){var Ye=ye[Ne];Ye=="m"?ye[Ne]=ze:ze=Ye}for(var Ze=0,Je=de;Ze<we;++Ze){var rt=ye[Ze];rt=="1"&&Je=="r"?ye[Ze]="n":m.test(rt)&&(Je=rt,rt=="r"&&(ye[Ze]="R"))}for(var vt=1,pt=ye[0];vt<we-1;++vt){var Dt=ye[vt];Dt=="+"&&pt=="1"&&ye[vt+1]=="1"?ye[vt]="1":Dt==","&&pt==ye[vt+1]&&(pt=="1"||pt=="n")&&(ye[vt]=pt),pt=Dt}for(var ur=0;ur<we;++ur){var Ur=ye[ur];if(Ur==",")ye[ur]="N";else if(Ur=="%"){var wr=void 0;for(wr=ur+1;wr<we&&ye[wr]=="%";++wr);for(var Gt=ur&&ye[ur-1]=="!"||wr<we&&ye[wr]=="1"?"1":"N",yn=ur;yn<wr;++yn)ye[yn]=Gt;ur=wr-1}}for(var Fr=0,L=de;Fr<we;++Fr){var Bt=ye[Fr];L=="L"&&Bt=="1"?ye[Fr]="L":m.test(Bt)&&(L=Bt)}for(var hr=0;hr<we;++hr)if(f.test(ye[hr])){var ct=void 0;for(ct=hr+1;ct<we&&f.test(ye[ct]);++ct);for(var yr=(hr?ye[hr-1]:de)=="L",Ar=(ct<we?ye[ct]:de)=="L",Fa=yr==Ar?yr?"L":"R":de,Ti=hr;Ti<ct;++Ti)ye[Ti]=Fa;hr=ct-1}for(var Jr=[],Jn,Nr=0;Nr<we;)if(S.test(ye[Nr])){var ao=Nr;for(++Nr;Nr<we&&S.test(ye[Nr]);++Nr);Jr.push(new R(0,ao,Nr))}else{var Pi=Nr,Ji=Jr.length,Xi=se=="rtl"?1:0;for(++Nr;Nr<we&&ye[Nr]!="L";++Nr);for(var Xr=Pi;Xr<Nr;)if(P.test(ye[Xr])){Pi<Xr&&(Jr.splice(Ji,0,new R(1,Pi,Xr)),Ji+=Xi);var oo=Xr;for(++Xr;Xr<Nr&&P.test(ye[Xr]);++Xr);Jr.splice(Ji,0,new R(2,oo,Xr)),Ji+=Xi,Pi=Xr}else++Xr;Pi<Nr&&Jr.splice(Ji,0,new R(1,Pi,Nr))}return se=="ltr"&&(Jr[0].level==1&&(Jn=j.match(/^\s+/))&&(Jr[0].from=Jn[0].length,Jr.unshift(new R(0,0,Jn[0].length))),We(Jr).level==1&&(Jn=j.match(/\s+$/))&&(We(Jr).to-=Jn[0].length,Jr.push(new R(0,we-Jn[0].length,we)))),se=="rtl"?Jr.reverse():Jr}}();function st(t,i){var u=t.order;return u==null&&(u=t.order=kt(t.text,i)),u}var Ve=[],ce=function(t,i,u){if(t.addEventListener)t.addEventListener(i,u,!1);else if(t.attachEvent)t.attachEvent("on"+i,u);else{var l=t._handlers||(t._handlers={});l[i]=(l[i]||Ve).concat(u)}};function be(t,i){return t._handlers&&t._handlers[i]||Ve}function Be(t,i,u){if(t.removeEventListener)t.removeEventListener(i,u,!1);else if(t.detachEvent)t.detachEvent("on"+i,u);else{var l=t._handlers,f=l&&l[i];if(f){var m=Se(f,u);m>-1&&(l[i]=f.slice(0,m).concat(f.slice(m+1)))}}}function Ke(t,i){var u=be(t,i);if(!!u.length)for(var l=Array.prototype.slice.call(arguments,2),f=0;f<u.length;++f)u[f].apply(null,l)}function lt(t,i,u){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Ke(t,u||i.type,t,i),jn(i)||i.codemirrorIgnore}function nt(t){var i=t._handlers&&t._handlers.cursorActivity;if(!!i)for(var u=t.curOp.cursorActivityHandlers||(t.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Se(u,i[l])==-1&&u.push(i[l])}function _t(t,i){return be(t,i).length>0}function lr(t){t.prototype.on=function(i,u){ce(this,i,u)},t.prototype.off=function(i,u){Be(this,i,u)}}function At(t){t.preventDefault?t.preventDefault():t.returnValue=!1}function Cr(t){t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}function jn(t){return t.defaultPrevented!=null?t.defaultPrevented:t.returnValue==!1}function $r(t){At(t),Cr(t)}function Kr(t){return t.target||t.srcElement}function hi(t){var i=t.which;return i==null&&(t.button&1?i=1:t.button&2?i=3:t.button&4&&(i=2)),k&&t.ctrlKey&&i==1&&(i=3),i}var _r=function(){if(T&&F<9)return!1;var t=_("div");return"draggable"in t||"dragDrop"in t}(),vi;function gi(t){if(vi==null){var i=_("span","\u200B");he(t,_("span",[i,document.createTextNode("x")])),t.firstChild.offsetHeight!=0&&(vi=i.offsetWidth<=1&&i.offsetHeight>2&&!(T&&F<8))}var u=vi?_("span","\u200B"):_("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return u.setAttribute("cm-text",""),u}var er;function mi(t){if(er!=null)return er;var i=he(t,document.createTextNode("A\u062EA")),u=z(i,0,1).getBoundingClientRect(),l=z(i,1,2).getBoundingClientRect();return fe(t),!u||u.left==u.right?!1:er=l.right-u.right<3}var _n=`
14
+
15
+ b`.split(/\n/).length!=3?function(t){for(var i=0,u=[],l=t.length;i<=l;){var f=t.indexOf(`
16
+ `,i);f==-1&&(f=t.length);var m=t.slice(i,t.charAt(f-1)=="\r"?f-1:f),S=m.indexOf("\r");S!=-1?(u.push(m.slice(0,S)),i+=S+1):(u.push(m),i=f+1)}return u}:function(t){return t.split(/\r\n?|\n/)},ei=window.getSelection?function(t){try{return t.selectionStart!=t.selectionEnd}catch(i){return!1}}:function(t){var i;try{i=t.ownerDocument.selection.createRange()}catch(u){}return!i||i.parentElement()!=t?!1:i.compareEndPoints("StartToEnd",i)!=0},na=function(){var t=_("div");return"oncopy"in t?!0:(t.setAttribute("oncopy","return;"),typeof t.oncopy=="function")}(),pn=null;function fn(t){if(pn!=null)return pn;var i=he(t,_("span","x")),u=i.getBoundingClientRect(),l=z(i,0,1).getBoundingClientRect();return pn=Math.abs(u.left-l.left)>1}var hn={},vn={};function An(t,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),hn[t]=i}function ho(t,i){vn[t]=i}function Vn(t){if(typeof t=="string"&&vn.hasOwnProperty(t))t=vn[t];else if(t&&typeof t.name=="string"&&vn.hasOwnProperty(t.name)){var i=vn[t.name];typeof i=="string"&&(i={name:i}),t=Qe(i,t),t.name=i.name}else{if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(t))return Vn("application/xml");if(typeof t=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(t))return Vn("application/json")}return typeof t=="string"?{name:t}:t||{name:"null"}}function en(t,i){i=Vn(i);var u=hn[i.name];if(!u)return en(t,"text/plain");var l=u(t,i);if(kr.hasOwnProperty(i.name)){var f=kr[i.name];for(var m in f)!f.hasOwnProperty(m)||(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=f[m])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var S in i.modeProps)l[S]=i.modeProps[S];return l}var kr={};function yi(t,i){var u=kr.hasOwnProperty(t)?kr[t]:kr[t]={};Ct(i,u)}function Cn(t,i){if(i===!0)return i;if(t.copyState)return t.copyState(i);var u={};for(var l in i){var f=i[l];f instanceof Array&&(f=f.concat([])),u[l]=f}return u}function ia(t,i){for(var u;t.innerMode&&(u=t.innerMode(i),!(!u||u.mode==t));)i=u.state,t=u.mode;return u||{mode:t,state:i}}function is(t,i,u){return t.startState?t.startState(i,u):!0}var mr=function(t,i,u){this.pos=this.start=0,this.string=t,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=u};mr.prototype.eol=function(){return this.pos>=this.string.length},mr.prototype.sol=function(){return this.pos==this.lineStart},mr.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},mr.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},mr.prototype.eat=function(t){var i=this.string.charAt(this.pos),u;if(typeof t=="string"?u=i==t:u=i&&(t.test?t.test(i):t(i)),u)return++this.pos,i},mr.prototype.eatWhile=function(t){for(var i=this.pos;this.eat(t););return this.pos>i},mr.prototype.eatSpace=function(){for(var t=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>t},mr.prototype.skipToEnd=function(){this.pos=this.string.length},mr.prototype.skipTo=function(t){var i=this.string.indexOf(t,this.pos);if(i>-1)return this.pos=i,!0},mr.prototype.backUp=function(t){this.pos-=t},mr.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Le(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.indentation=function(){return Le(this.string,null,this.tabSize)-(this.lineStart?Le(this.string,this.lineStart,this.tabSize):0)},mr.prototype.match=function(t,i,u){if(typeof t=="string"){var l=function(S){return u?S.toLowerCase():S},f=this.string.substr(this.pos,t.length);if(l(f)==l(t))return i!==!1&&(this.pos+=t.length),!0}else{var m=this.string.slice(this.pos).match(t);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},mr.prototype.current=function(){return this.string.slice(this.start,this.pos)},mr.prototype.hideFirstChars=function(t,i){this.lineStart+=t;try{return i()}finally{this.lineStart-=t}},mr.prototype.lookAhead=function(t){var i=this.lineOracle;return i&&i.lookAhead(t)},mr.prototype.baseToken=function(){var t=this.lineOracle;return t&&t.baseToken(this.pos)};function ut(t,i){if(i-=t.first,i<0||i>=t.size)throw new Error("There is no line "+(i+t.first)+" in the document.");for(var u=t;!u.lines;)for(var l=0;;++l){var f=u.children[l],m=f.chunkSize();if(i<m){u=f;break}i-=m}return u.lines[i]}function bi(t,i,u){var l=[],f=i.line;return t.iter(i.line,u.line+1,function(m){var S=m.text;f==u.line&&(S=S.slice(0,u.ch)),f==i.line&&(S=S.slice(i.ch)),l.push(S),++f}),l}function aa(t,i,u){var l=[];return t.iter(i,u,function(f){l.push(f.text)}),l}function En(t,i){var u=i-t.height;if(u)for(var l=t;l;l=l.parent)l.height+=u}function Kt(t){if(t.parent==null)return null;for(var i=t.parent,u=Se(i.lines,t),l=i.parent;l;i=l,l=l.parent)for(var f=0;l.children[f]!=i;++f)u+=l.children[f].chunkSize();return u+i.first}function xi(t,i){var u=t.first;e:do{for(var l=0;l<t.children.length;++l){var f=t.children[l],m=f.height;if(i<m){t=f;continue e}i-=m,u+=f.chunkSize()}return u}while(!t.lines);for(var S=0;S<t.lines.length;++S){var P=t.lines[S],R=P.height;if(i<R)break;i-=R}return u+S}function oa(t,i){return i>=t.first&&i<t.first+t.size}function Va(t,i){return String(t.lineNumberFormatter(i+t.firstLineNumber))}function D(t,i,u){if(u===void 0&&(u=null),!(this instanceof D))return new D(t,i,u);this.line=t,this.ch=i,this.sticky=u}function oe(t,i){return t.line-i.line||t.ch-i.ch}function Me(t,i){return t.sticky==i.sticky&&oe(t,i)==0}function He(t){return D(t.line,t.ch)}function Ft(t,i){return oe(t,i)<0?i:t}function jt(t,i){return oe(t,i)<0?t:i}function tr(t,i){return Math.max(t.first,Math.min(i,t.first+t.size-1))}function ft(t,i){if(i.line<t.first)return D(t.first,0);var u=t.first+t.size-1;return i.line>u?D(u,ut(t,u).text.length):On(i,ut(t,i.line).text.length)}function On(t,i){var u=t.ch;return u==null||u>i?D(t.line,i):u<0?D(t.line,0):t}function as(t,i){for(var u=[],l=0;l<i.length;l++)u[l]=ft(t,i[l]);return u}var os=function(t,i){this.state=t,this.lookAhead=i},Un=function(t,i,u,l){this.state=i,this.doc=t,this.line=u,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Un.prototype.lookAhead=function(t){var i=this.doc.getLine(this.line+t);return i!=null&&t>this.maxLookAhead&&(this.maxLookAhead=t),i},Un.prototype.baseToken=function(t){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=t;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-t}},Un.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Un.fromSaved=function(t,i,u){return i instanceof os?new Un(t,Cn(t.mode,i.state),u,i.lookAhead):new Un(t,Cn(t.mode,i),u)},Un.prototype.save=function(t){var i=t!==!1?Cn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new os(i,this.maxLookAhead):i};function Hu(t,i,u,l){var f=[t.state.modeGen],m={};Ku(t,i.text,t.doc.mode,u,function(j,se){return f.push(j,se)},m,l);for(var S=u.state,P=function(j){u.baseTokens=f;var se=t.state.overlays[j],de=1,we=0;u.state=!0,Ku(t,i.text,se.mode,u,function(ye,Ie){for(var Ne=de;we<ye;){var ze=f[de];ze>ye&&f.splice(de,1,ye,f[de+1],ze),de+=2,we=Math.min(ye,ze)}if(!!Ie)if(se.opaque)f.splice(Ne,de-Ne,ye,"overlay "+Ie),de=Ne+2;else for(;Ne<de;Ne+=2){var Ye=f[Ne+1];f[Ne+1]=(Ye?Ye+" ":"")+"overlay "+Ie}},m),u.state=S,u.baseTokens=null,u.baseTokenPos=1},R=0;R<t.state.overlays.length;++R)P(R);return{styles:f,classes:m.bgClass||m.textClass?m:null}}function cl(t,i,u){if(!i.styles||i.styles[0]!=t.state.modeGen){var l=sa(t,Kt(i)),f=i.text.length>t.options.maxHighlightLength&&Cn(t.doc.mode,l.state),m=Hu(t,i,l);f&&(l.state=f),i.stateAfter=l.save(!f),i.styles=m.styles,m.classes?i.styleClasses=m.classes:i.styleClasses&&(i.styleClasses=null),u===t.doc.highlightFrontier&&(t.doc.modeFrontier=Math.max(t.doc.modeFrontier,++t.doc.highlightFrontier))}return i.styles}function sa(t,i,u){var l=t.doc,f=t.display;if(!l.mode.startState)return new Un(l,!0,i);var m=Kc(t,i,u),S=m>l.first&&ut(l,m-1).stateAfter,P=S?Un.fromSaved(l,S,m):new Un(l,is(l.mode),m);return l.iter(m,i,function(R){dl(t,R.text,P);var j=P.line;R.stateAfter=j==i-1||j%5==0||j>=f.viewFrom&&j<f.viewTo?P.save():null,P.nextLine()}),u&&(l.modeFrontier=P.line),P}function dl(t,i,u,l){var f=t.doc.mode,m=new mr(i,t.options.tabSize,u);for(m.start=m.pos=l||0,i==""&&zu(f,u.state);!m.eol();)pl(f,m,u.state),m.start=m.pos}function zu(t,i){if(t.blankLine)return t.blankLine(i);if(!!t.innerMode){var u=ia(t,i);if(u.mode.blankLine)return u.mode.blankLine(u.state)}}function pl(t,i,u,l){for(var f=0;f<10;f++){l&&(l[0]=ia(t,u).mode);var m=t.token(i,u);if(i.pos>i.start)return m}throw new Error("Mode "+t.name+" failed to advance stream.")}var Gu=function(t,i,u){this.start=t.start,this.end=t.pos,this.string=t.current(),this.type=i||null,this.state=u};function hl(t,i,u,l){var f=t.doc,m=f.mode,S;i=ft(f,i);var P=ut(f,i.line),R=sa(t,i.line,u),j=new mr(P.text,t.options.tabSize,R),se;for(l&&(se=[]);(l||j.pos<i.ch)&&!j.eol();)j.start=j.pos,S=pl(m,j,R.state),l&&se.push(new Gu(j,S,Cn(f.mode,R.state)));return l?se:new Gu(j,S,R.state)}function $u(t,i){if(t)for(;;){var u=t.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!u)break;t=t.slice(0,u.index)+t.slice(u.index+u[0].length);var l=u[1]?"bgClass":"textClass";i[l]==null?i[l]=u[2]:new RegExp("(?:^|\\s)"+u[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+u[2])}return t}function Ku(t,i,u,l,f,m,S){var P=u.flattenSpans;P==null&&(P=t.options.flattenSpans);var R=0,j=null,se=new mr(i,t.options.tabSize,l),de,we=t.options.addModeClass&&[null];for(i==""&&$u(zu(u,l.state),m);!se.eol();){if(se.pos>t.options.maxHighlightLength?(P=!1,S&&dl(t,i,l,se.pos),se.pos=i.length,de=null):de=$u(pl(u,se,l.state,we),m),we){var ye=we[0].name;ye&&(de="m-"+(de?ye+" "+de:ye))}if(!P||j!=de){for(;R<se.start;)R=Math.min(se.start,R+5e3),f(R,j);j=de}se.start=se.pos}for(;R<se.pos;){var Ie=Math.min(se.pos,R+5e3);f(Ie,j),R=Ie}}function Kc(t,i,u){for(var l,f,m=t.doc,S=u?-1:i-(t.doc.mode.innerMode?1e3:100),P=i;P>S;--P){if(P<=m.first)return m.first;var R=ut(m,P-1),j=R.stateAfter;if(j&&(!u||P+(j instanceof os?j.lookAhead:0)<=m.modeFrontier))return P;var se=Le(R.text,null,t.options.tabSize);(f==null||l>se)&&(f=P-1,l=se)}return f}function Yc(t,i){if(t.modeFrontier=Math.min(t.modeFrontier,i),!(t.highlightFrontier<i-10)){for(var u=t.first,l=i-1;l>u;l--){var f=ut(t,l).stateAfter;if(f&&(!(f instanceof os)||l+f.lookAhead<i)){u=l+1;break}}t.highlightFrontier=Math.min(t.highlightFrontier,u)}}var vl=!1,Si=!1;function Jc(){vl=!0}function Xc(){Si=!0}function vo(t,i,u){this.marker=t,this.from=i,this.to=u}function go(t,i){if(t)for(var u=0;u<t.length;++u){var l=t[u];if(l.marker==i)return l}}function Qc(t,i){for(var u,l=0;l<t.length;++l)t[l]!=i&&(u||(u=[])).push(t[l]);return u}function Zc(t,i,u){var l=u&&window.WeakSet&&(u.markedSpans||(u.markedSpans=new WeakSet));l&&t.markedSpans&&l.has(t.markedSpans)?t.markedSpans.push(i):(t.markedSpans=t.markedSpans?t.markedSpans.concat([i]):[i],l&&l.add(t.markedSpans)),i.marker.attachLine(t)}function Yu(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);if(P||m.from==i&&S.type=="bookmark"&&(!u||!m.marker.insertLeft)){var R=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new vo(S,m.from,R?null:m.to))}}return l}function gl(t,i,u){var l;if(t)for(var f=0;f<t.length;++f){var m=t[f],S=m.marker,P=m.to==null||(S.inclusiveRight?m.to>=i:m.to>i);if(P||m.from==i&&S.type=="bookmark"&&(!u||m.marker.insertLeft)){var R=m.from==null||(S.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new vo(S,R?null:m.from-i,m.to==null?null:m.to-i))}}return l}function ti(t,i){if(i.full)return null;var u=oa(t,i.from.line)&&ut(t,i.from.line).markedSpans,l=oa(t,i.to.line)&&ut(t,i.to.line).markedSpans;if(!u&&!l)return null;var f=i.from.ch,m=i.to.ch,S=oe(i.from,i.to)==0,P=Yu(u,f,S),R=gl(l,m,S),j=i.text.length==1,se=We(i.text).length+(j?f:0);if(P)for(var de=0;de<P.length;++de){var we=P[de];if(we.to==null){var ye=go(R,we.marker);ye?j&&(we.to=ye.to==null?null:ye.to+se):we.to=f}}if(R)for(var Ie=0;Ie<R.length;++Ie){var Ne=R[Ie];if(Ne.to!=null&&(Ne.to+=se),Ne.from==null){var ze=go(P,Ne.marker);ze||(Ne.from=se,j&&(P||(P=[])).push(Ne))}else Ne.from+=se,j&&(P||(P=[])).push(Ne)}P&&(P=mo(P)),R&&R!=P&&(R=mo(R));var Ye=[P];if(!j){var Ze=i.text.length-2,Je;if(Ze>0&&P)for(var rt=0;rt<P.length;++rt)P[rt].to==null&&(Je||(Je=[])).push(new vo(P[rt].marker,null,null));for(var vt=0;vt<Ze;++vt)Ye.push(Je);Ye.push(R)}return Ye}function mo(t){for(var i=0;i<t.length;++i){var u=t[i];u.from!=null&&u.from==u.to&&u.marker.clearWhenEmpty!==!1&&t.splice(i--,1)}return t.length?t:null}function Ju(t,i,u){var l=null;if(t.iter(i.line,u.line+1,function(ye){if(ye.markedSpans)for(var Ie=0;Ie<ye.markedSpans.length;++Ie){var Ne=ye.markedSpans[Ie].marker;Ne.readOnly&&(!l||Se(l,Ne)==-1)&&(l||(l=[])).push(Ne)}}),!l)return null;for(var f=[{from:i,to:u}],m=0;m<l.length;++m)for(var S=l[m],P=S.find(0),R=0;R<f.length;++R){var j=f[R];if(!(oe(j.to,P.from)<0||oe(j.from,P.to)>0)){var se=[R,1],de=oe(j.from,P.from),we=oe(j.to,P.to);(de<0||!S.inclusiveLeft&&!de)&&se.push({from:j.from,to:P.from}),(we>0||!S.inclusiveRight&&!we)&&se.push({from:P.to,to:j.to}),f.splice.apply(f,se),R+=se.length-3}}return f}function ml(t){var i=t.markedSpans;if(!!i){for(var u=0;u<i.length;++u)i[u].marker.detachLine(t);t.markedSpans=null}}function yo(t,i){if(!!i){for(var u=0;u<i.length;++u)i[u].marker.attachLine(t);t.markedSpans=i}}function Ua(t){return t.inclusiveLeft?-1:0}function ss(t){return t.inclusiveRight?1:0}function ls(t,i){var u=t.lines.length-i.lines.length;if(u!=0)return u;var l=t.find(),f=i.find(),m=oe(l.from,f.from)||Ua(t)-Ua(i);if(m)return-m;var S=oe(l.to,f.to)||ss(t)-ss(i);return S||i.id-t.id}function Xu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=void 0,m=0;m<u.length;++m)f=u[m],f.marker.collapsed&&(i?f.from:f.to)==null&&(!l||ls(l,f.marker)<0)&&(l=f.marker);return l}function Qu(t){return Xu(t,!0)}function us(t){return Xu(t,!1)}function Zu(t,i){var u=Si&&t.markedSpans,l;if(u)for(var f=0;f<u.length;++f){var m=u[f];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||ls(l,m.marker)<0)&&(l=m.marker)}return l}function yl(t,i,u,l,f){var m=ut(t,i),S=Si&&m.markedSpans;if(S)for(var P=0;P<S.length;++P){var R=S[P];if(!!R.marker.collapsed){var j=R.marker.find(0),se=oe(j.from,u)||Ua(R.marker)-Ua(f),de=oe(j.to,l)||ss(R.marker)-ss(f);if(!(se>=0&&de<=0||se<=0&&de>=0)&&(se<=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?oe(j.to,u)>=0:oe(j.to,u)>0)||se>=0&&(R.marker.inclusiveRight&&f.inclusiveLeft?oe(j.from,l)<=0:oe(j.from,l)<0)))return!0}}}function Tn(t){for(var i;i=Qu(t);)t=i.find(-1,!0).line;return t}function ri(t){for(var i;i=us(t);)t=i.find(1,!0).line;return t}function la(t){for(var i,u;i=us(t);)t=i.find(1,!0).line,(u||(u=[])).push(t);return u}function tn(t,i){var u=ut(t,i),l=Tn(u);return u==l?i:Kt(l)}function ua(t,i){if(i>t.lastLine())return i;var u=ut(t,i),l;if(!Li(t,u))return i;for(;l=us(u);)u=l.find(1,!0).line;return Kt(u)+1}function Li(t,i){var u=Si&&i.markedSpans;if(u){for(var l=void 0,f=0;f<u.length;++f)if(l=u[f],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&bl(t,i,l))return!0}}}function bl(t,i,u){if(u.to==null){var l=u.marker.find(1,!0);return bl(t,l.line,go(l.line.markedSpans,u.marker))}if(u.marker.inclusiveRight&&u.to==i.text.length)return!0;for(var f=void 0,m=0;m<i.markedSpans.length;++m)if(f=i.markedSpans[m],f.marker.collapsed&&!f.marker.widgetNode&&f.from==u.to&&(f.to==null||f.to!=u.from)&&(f.marker.inclusiveLeft||u.marker.inclusiveRight)&&bl(t,i,f))return!0}function wi(t){t=Tn(t);for(var i=0,u=t.parent,l=0;l<u.lines.length;++l){var f=u.lines[l];if(f==t)break;i+=f.height}for(var m=u.parent;m;u=m,m=u.parent)for(var S=0;S<m.children.length;++S){var P=m.children[S];if(P==u)break;i+=P.height}return i}function bo(t){if(t.height==0)return 0;for(var i=t.text.length,u,l=t;u=Qu(l);){var f=u.find(0,!0);l=f.from.line,i+=f.from.ch-f.to.ch}for(l=t;u=us(l);){var m=u.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function xl(t){var i=t.display,u=t.doc;i.maxLine=ut(u,u.first),i.maxLineLength=bo(i.maxLine),i.maxLineChanged=!0,u.iter(function(l){var f=bo(l);f>i.maxLineLength&&(i.maxLineLength=f,i.maxLine=l)})}var fa=function(t,i,u){this.text=t,yo(this,i),this.height=u?u(this):1};fa.prototype.lineNo=function(){return Kt(this)},lr(fa);function qu(t,i,u,l){t.text=i,t.stateAfter&&(t.stateAfter=null),t.styles&&(t.styles=null),t.order!=null&&(t.order=null),ml(t),yo(t,u);var f=l?l(t):1;f!=t.height&&En(t,f)}function Wa(t){t.parent=null,ml(t)}var qc={},_u={};function yt(t,i){if(!t||/^\s*$/.test(t))return null;var u=i.addModeClass?_u:qc;return u[t]||(u[t]=t.replace(/\S+/g,"cm-$&"))}function xo(t,i){var u=X("span",null,null,U?"padding-right: .1px":null),l={pre:X("pre",[u],"CodeMirror-line"),content:u,col:0,pos:0,cm:t,trailingSpace:!1,splitSpaces:t.getOption("lineWrapping")};i.measure={};for(var f=0;f<=(i.rest?i.rest.length:0);f++){var m=f?i.rest[f-1]:i.line,S=void 0;l.pos=0,l.addToken=Ni,mi(t.display.measure)&&(S=st(m,t.doc.direction))&&(l.addToken=Ha(l.addToken,S)),l.map=[];var P=i!=t.display.externalMeasured&&Kt(m);Mr(m,l,cl(t,m,P)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Fe(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Fe(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(gi(t.display.measure))),f==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(U){var R=l.content.lastChild;(/\bcm-tab\b/.test(R.className)||R.querySelector&&R.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Ke(t,"renderLine",t,i.line,l.pre),l.pre.className&&(l.textClass=Fe(l.pre.className,l.textClass||"")),l}function ef(t){var i=_("span","\u2022","cm-invalidchar");return i.title="\\u"+t.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function Ni(t,i,u,l,f,m,S){if(!!i){var P=t.splitSpaces?tf(i,t.trailingSpace):i,R=t.cm.state.specialChars,j=!1,se;if(!R.test(i))t.col+=i.length,se=document.createTextNode(P),t.map.push(t.pos,t.pos+i.length,se),T&&F<9&&(j=!0),t.pos+=i.length;else{se=document.createDocumentFragment();for(var de=0;;){R.lastIndex=de;var we=R.exec(i),ye=we?we.index-de:i.length-de;if(ye){var Ie=document.createTextNode(P.slice(de,de+ye));T&&F<9?se.appendChild(_("span",[Ie])):se.appendChild(Ie),t.map.push(t.pos,t.pos+ye,Ie),t.col+=ye,t.pos+=ye}if(!we)break;de+=ye+1;var Ne=void 0;if(we[0]==" "){var ze=t.cm.options.tabSize,Ye=ze-t.col%ze;Ne=se.appendChild(_("span",$t(Ye),"cm-tab")),Ne.setAttribute("role","presentation"),Ne.setAttribute("cm-text"," "),t.col+=Ye}else we[0]=="\r"||we[0]==`
17
+ `?(Ne=se.appendChild(_("span",we[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),Ne.setAttribute("cm-text",we[0]),t.col+=1):(Ne=t.cm.options.specialCharPlaceholder(we[0]),Ne.setAttribute("cm-text",we[0]),T&&F<9?se.appendChild(_("span",[Ne])):se.appendChild(Ne),t.col+=1);t.map.push(t.pos,t.pos+1,Ne),t.pos++}}if(t.trailingSpace=P.charCodeAt(i.length-1)==32,u||l||f||j||m||S){var Ze=u||"";l&&(Ze+=l),f&&(Ze+=f);var Je=_("span",[se],Ze,m);if(S)for(var rt in S)S.hasOwnProperty(rt)&&rt!="style"&&rt!="class"&&Je.setAttribute(rt,S[rt]);return t.content.appendChild(Je)}t.content.appendChild(se)}}function tf(t,i){if(t.length>1&&!/ /.test(t))return t;for(var u=i,l="",f=0;f<t.length;f++){var m=t.charAt(f);m==" "&&u&&(f==t.length-1||t.charCodeAt(f+1)==32)&&(m="\xA0"),l+=m,u=m==" "}return l}function Ha(t,i){return function(u,l,f,m,S,P,R){f=f?f+" cm-force-border":"cm-force-border";for(var j=u.pos,se=j+l.length;;){for(var de=void 0,we=0;we<i.length&&(de=i[we],!(de.to>j&&de.from<=j));we++);if(de.to>=se)return t(u,l,f,m,S,P,R);t(u,l.slice(0,de.to-j),f,m,null,P,R),m=null,l=l.slice(de.to-j),j=de.to}}}function fs(t,i,u,l){var f=!l&&u.widgetNode;f&&t.map.push(t.pos,t.pos+i,f),!l&&t.cm.display.input.needsContentAttribute&&(f||(f=t.content.appendChild(document.createElement("span"))),f.setAttribute("cm-marker",u.id)),f&&(t.cm.display.input.setUneditable(f),t.content.appendChild(f)),t.pos+=i,t.trailingSpace=!1}function Mr(t,i,u){var l=t.markedSpans,f=t.text,m=0;if(!l){for(var S=1;S<u.length;S+=2)i.addToken(i,f.slice(m,m=u[S]),yt(u[S+1],i.cm.options));return}for(var P=f.length,R=0,j=1,se="",de,we,ye=0,Ie,Ne,ze,Ye,Ze;;){if(ye==R){Ie=Ne=ze=we="",Ze=null,Ye=null,ye=1/0;for(var Je=[],rt=void 0,vt=0;vt<l.length;++vt){var pt=l[vt],Dt=pt.marker;if(Dt.type=="bookmark"&&pt.from==R&&Dt.widgetNode)Je.push(Dt);else if(pt.from<=R&&(pt.to==null||pt.to>R||Dt.collapsed&&pt.to==R&&pt.from==R)){if(pt.to!=null&&pt.to!=R&&ye>pt.to&&(ye=pt.to,Ne=""),Dt.className&&(Ie+=" "+Dt.className),Dt.css&&(we=(we?we+";":"")+Dt.css),Dt.startStyle&&pt.from==R&&(ze+=" "+Dt.startStyle),Dt.endStyle&&pt.to==ye&&(rt||(rt=[])).push(Dt.endStyle,pt.to),Dt.title&&((Ze||(Ze={})).title=Dt.title),Dt.attributes)for(var ur in Dt.attributes)(Ze||(Ze={}))[ur]=Dt.attributes[ur];Dt.collapsed&&(!Ye||ls(Ye.marker,Dt)<0)&&(Ye=pt)}else pt.from>R&&ye>pt.from&&(ye=pt.from)}if(rt)for(var Ur=0;Ur<rt.length;Ur+=2)rt[Ur+1]==ye&&(Ne+=" "+rt[Ur]);if(!Ye||Ye.from==R)for(var wr=0;wr<Je.length;++wr)fs(i,0,Je[wr]);if(Ye&&(Ye.from||0)==R){if(fs(i,(Ye.to==null?P+1:Ye.to)-R,Ye.marker,Ye.from==null),Ye.to==null)return;Ye.to==R&&(Ye=!1)}}if(R>=P)break;for(var Gt=Math.min(P,ye);;){if(se){var yn=R+se.length;if(!Ye){var Fr=yn>Gt?se.slice(0,Gt-R):se;i.addToken(i,Fr,de?de+Ie:Ie,ze,R+Fr.length==ye?Ne:"",we,Ze)}if(yn>=Gt){se=se.slice(Gt-R),R=Gt;break}R=yn,ze=""}se=f.slice(m,m=u[j++]),de=yt(u[j++],i.cm.options)}}}function So(t,i,u){this.line=i,this.rest=la(i),this.size=this.rest?Kt(We(this.rest))-u+1:1,this.node=this.text=null,this.hidden=Li(t,i)}function za(t,i,u){for(var l=[],f,m=i;m<u;m=f){var S=new So(t.doc,ut(t.doc,m),m);f=m+S.size,l.push(S)}return l}var Ga=null;function _c(t){Ga?Ga.ops.push(t):t.ownsGroup=Ga={ops:[t],delayedCallbacks:[]}}function ed(t){var i=t.delayedCallbacks,u=0;do{for(;u<i.length;u++)i[u].call(null);for(var l=0;l<t.ops.length;l++){var f=t.ops[l];if(f.cursorActivityHandlers)for(;f.cursorActivityCalled<f.cursorActivityHandlers.length;)f.cursorActivityHandlers[f.cursorActivityCalled++].call(null,f.cm)}}while(u<i.length)}function td(t,i){var u=t.ownsGroup;if(!!u)try{ed(u)}finally{Ga=null,i(u)}}var wo=null;function Lr(t,i){var u=be(t,i);if(!!u.length){var l=Array.prototype.slice.call(arguments,2),f;Ga?f=Ga.delayedCallbacks:wo?f=wo:(f=wo=[],setTimeout(rd,0));for(var m=function(P){f.push(function(){return u[P].apply(null,l)})},S=0;S<u.length;++S)m(S)}}function rd(){var t=wo;wo=null;for(var i=0;i<t.length;++i)t[i]()}function rf(t,i,u,l){for(var f=0;f<i.changes.length;f++){var m=i.changes[f];m=="text"?id(t,i):m=="gutter"?nf(t,i,u,l):m=="class"?cs(t,i):m=="widget"&&ad(t,i,l)}i.changes=null}function Ao(t){return t.node==t.text&&(t.node=_("div",null,null,"position: relative"),t.text.parentNode&&t.text.parentNode.replaceChild(t.node,t.text),t.node.appendChild(t.text),T&&F<8&&(t.node.style.zIndex=2)),t.node}function nd(t,i){var u=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(u&&(u+=" CodeMirror-linebackground"),i.background)u?i.background.className=u:(i.background.parentNode.removeChild(i.background),i.background=null);else if(u){var l=Ao(i);i.background=l.insertBefore(_("div",null,u),l.firstChild),t.display.input.setUneditable(i.background)}}function ca(t,i){var u=t.display.externalMeasured;return u&&u.line==i.line?(t.display.externalMeasured=null,i.measure=u.measure,u.built):xo(t,i)}function id(t,i){var u=i.text.className,l=ca(t,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,cs(t,i)):u&&(i.text.className=u)}function cs(t,i){nd(t,i),i.line.wrapClass?Ao(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var u=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=u||""}function nf(t,i,u,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var f=Ao(i);i.gutterBackground=_("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),t.display.input.setUneditable(i.gutterBackground),f.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(t.options.lineNumbers||m){var S=Ao(i),P=i.gutter=_("div",null,"CodeMirror-gutter-wrapper","left: "+(t.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(P.setAttribute("aria-hidden","true"),t.display.input.setUneditable(P),S.insertBefore(P,i.text),i.line.gutterClass&&(P.className+=" "+i.line.gutterClass),t.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=P.appendChild(_("div",Va(t.options,u),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+t.display.lineNumInnerWidth+"px"))),m)for(var R=0;R<t.display.gutterSpecs.length;++R){var j=t.display.gutterSpecs[R].className,se=m.hasOwnProperty(j)&&m[j];se&&P.appendChild(_("div",[se],"CodeMirror-gutter-elt","left: "+l.gutterLeft[j]+"px; width: "+l.gutterWidth[j]+"px"))}}}function ad(t,i,u){i.alignable&&(i.alignable=null);for(var l=K("CodeMirror-linewidget"),f=i.node.firstChild,m=void 0;f;f=m)m=f.nextSibling,l.test(f.className)&&i.node.removeChild(f);af(t,i,u)}function od(t,i,u,l){var f=ca(t,i);return i.text=i.node=f.pre,f.bgClass&&(i.bgClass=f.bgClass),f.textClass&&(i.textClass=f.textClass),cs(t,i),nf(t,i,u,l),af(t,i,l),i.node}function af(t,i,u){if(Sl(t,i.line,i,u,!0),i.rest)for(var l=0;l<i.rest.length;l++)Sl(t,i.rest[l],i,u,!1)}function Sl(t,i,u,l,f){if(!!i.widgets)for(var m=Ao(u),S=0,P=i.widgets;S<P.length;++S){var R=P[S],j=_("div",[R.node],"CodeMirror-linewidget"+(R.className?" "+R.className:""));R.handleMouseEvents||j.setAttribute("cm-ignore-events","true"),of(R,j,u,l),t.display.input.setUneditable(j),f&&R.above?m.insertBefore(j,u.gutter||u.text):m.appendChild(j),Lr(R,"redraw")}}function of(t,i,u,l){if(t.noHScroll){(u.alignable||(u.alignable=[])).push(i);var f=l.wrapperWidth;i.style.left=l.fixedPos+"px",t.coverGutter||(f-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=f+"px"}t.coverGutter&&(i.style.zIndex=5,i.style.position="relative",t.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function $a(t){if(t.height!=null)return t.height;var i=t.doc.cm;if(!i)return 0;if(!ge(document.body,t.node)){var u="position: relative;";t.coverGutter&&(u+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),t.noHScroll&&(u+="width: "+i.display.wrapper.clientWidth+"px;"),he(i.display.measure,_("div",[t.node],null,u))}return t.height=t.node.parentNode.offsetHeight}function Wn(t,i){for(var u=Kr(i);u!=t.wrapper;u=u.parentNode)if(!u||u.nodeType==1&&u.getAttribute("cm-ignore-events")=="true"||u.parentNode==t.sizer&&u!=t.mover)return!0}function ds(t){return t.lineSpace.offsetTop}function da(t){return t.mover.offsetHeight-t.lineSpace.offsetHeight}function sf(t){if(t.cachedPaddingH)return t.cachedPaddingH;var i=he(t.measure,_("pre","x","CodeMirror-line-like")),u=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(u.paddingLeft),right:parseInt(u.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(t.cachedPaddingH=l),l}function ni(t){return De-t.display.nativeBarWidth}function pa(t){return t.display.scroller.clientWidth-ni(t)-t.display.barWidth}function wl(t){return t.display.scroller.clientHeight-ni(t)-t.display.barHeight}function Al(t,i,u){var l=t.options.lineWrapping,f=l&&pa(t);if(!i.measure.heights||l&&i.measure.width!=f){var m=i.measure.heights=[];if(l){i.measure.width=f;for(var S=i.text.firstChild.getClientRects(),P=0;P<S.length-1;P++){var R=S[P],j=S[P+1];Math.abs(R.bottom-j.bottom)>2&&m.push((R.bottom+j.top)/2-u.top)}}m.push(u.bottom-u.top)}}function lf(t,i,u){if(t.line==i)return{map:t.measure.map,cache:t.measure.cache};if(t.rest){for(var l=0;l<t.rest.length;l++)if(t.rest[l]==i)return{map:t.measure.maps[l],cache:t.measure.caches[l]};for(var f=0;f<t.rest.length;f++)if(Kt(t.rest[f])>u)return{map:t.measure.maps[f],cache:t.measure.caches[f],before:!0}}}function sd(t,i){i=Tn(i);var u=Kt(i),l=t.display.externalMeasured=new So(t.doc,i,u);l.lineN=u;var f=l.built=xo(t,l);return l.text=f.pre,he(t.display.lineMeasure,f.pre),l}function uf(t,i,u,l){return ii(t,ha(t,i),u,l)}function Cl(t,i){if(i>=t.display.viewFrom&&i<t.display.viewTo)return t.display.view[Bi(t,i)];var u=t.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size)return u}function ha(t,i){var u=Kt(i),l=Cl(t,u);l&&!l.text?l=null:l&&l.changes&&(rf(t,l,u,kl(t)),t.curOp.forceUpdate=!0),l||(l=sd(t,i));var f=lf(l,i,u);return{line:i,view:l,rect:null,map:f.map,cache:f.cache,before:f.before,hasHeights:!1}}function ii(t,i,u,l,f){i.before&&(u=-1);var m=u+(l||""),S;return i.cache.hasOwnProperty(m)?S=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(Al(t,i.view,i.rect),i.hasHeights=!0),S=ud(t,i,u,l),S.bogus||(i.cache[m]=S)),{left:S.left,right:S.right,top:f?S.rtop:S.top,bottom:f?S.rbottom:S.bottom}}var Co={left:0,right:0,top:0,bottom:0};function ff(t,i,u){for(var l,f,m,S,P,R,j=0;j<t.length;j+=3)if(P=t[j],R=t[j+1],i<P?(f=0,m=1,S="left"):i<R?(f=i-P,m=f+1):(j==t.length-3||i==R&&t[j+3]>i)&&(m=R-P,f=m-1,i>=R&&(S="right")),f!=null){if(l=t[j+2],P==R&&u==(l.insertLeft?"left":"right")&&(S=u),u=="left"&&f==0)for(;j&&t[j-2]==t[j-3]&&t[j-1].insertLeft;)l=t[(j-=3)+2],S="left";if(u=="right"&&f==R-P)for(;j<t.length-3&&t[j+3]==t[j+4]&&!t[j+5].insertLeft;)l=t[(j+=3)+2],S="right";break}return{node:l,start:f,end:m,collapse:S,coverStart:P,coverEnd:R}}function ld(t,i){var u=Co;if(i=="left")for(var l=0;l<t.length&&(u=t[l]).left==u.right;l++);else for(var f=t.length-1;f>=0&&(u=t[f]).left==u.right;f--);return u}function ud(t,i,u,l){var f=ff(i.map,u,l),m=f.node,S=f.start,P=f.end,R=f.collapse,j;if(m.nodeType==3){for(var se=0;se<4;se++){for(;S&&mt(i.line.text.charAt(f.coverStart+S));)--S;for(;f.coverStart+P<f.coverEnd&&mt(i.line.text.charAt(f.coverStart+P));)++P;if(T&&F<9&&S==0&&P==f.coverEnd-f.coverStart?j=m.parentNode.getBoundingClientRect():j=ld(z(m,S,P).getClientRects(),l),j.left||j.right||S==0)break;P=S,S=S-1,R="right"}T&&F<11&&(j=fd(t.display.measure,j))}else{S>0&&(R=l="right");var de;t.options.lineWrapping&&(de=m.getClientRects()).length>1?j=de[l=="right"?de.length-1:0]:j=m.getBoundingClientRect()}if(T&&F<9&&!S&&(!j||!j.left&&!j.right)){var we=m.parentNode.getClientRects()[0];we?j={left:we.left,right:we.left+Ka(t.display),top:we.top,bottom:we.bottom}:j=Co}for(var ye=j.top-i.rect.top,Ie=j.bottom-i.rect.top,Ne=(ye+Ie)/2,ze=i.view.measure.heights,Ye=0;Ye<ze.length-1&&!(Ne<ze[Ye]);Ye++);var Ze=Ye?ze[Ye-1]:0,Je=ze[Ye],rt={left:(R=="right"?j.right:j.left)-i.rect.left,right:(R=="left"?j.left:j.right)-i.rect.left,top:Ze,bottom:Je};return!j.left&&!j.right&&(rt.bogus=!0),t.options.singleCursorHeightPerLine||(rt.rtop=ye,rt.rbottom=Ie),rt}function fd(t,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!fn(t))return i;var u=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*u,right:i.right*u,top:i.top*l,bottom:i.bottom*l}}function El(t){if(t.measure&&(t.measure.cache={},t.measure.heights=null,t.rest))for(var i=0;i<t.rest.length;i++)t.measure.caches[i]={}}function Ol(t){t.display.externalMeasure=null,fe(t.display.lineMeasure);for(var i=0;i<t.display.view.length;i++)El(t.display.view[i])}function Eo(t){Ol(t),t.display.cachedCharWidth=t.display.cachedTextHeight=t.display.cachedPaddingH=null,t.options.lineWrapping||(t.display.maxLineChanged=!0),t.display.lineNumChars=null}function Tl(t){return ee&&N?-(t.body.getBoundingClientRect().left-parseInt(getComputedStyle(t.body).marginLeft)):t.defaultView.pageXOffset||(t.documentElement||t.body).scrollLeft}function cf(t){return ee&&N?-(t.body.getBoundingClientRect().top-parseInt(getComputedStyle(t.body).marginTop)):t.defaultView.pageYOffset||(t.documentElement||t.body).scrollTop}function ps(t){var i=Tn(t),u=i.widgets,l=0;if(u)for(var f=0;f<u.length;++f)u[f].above&&(l+=$a(u[f]));return l}function jr(t,i,u,l,f){if(!f){var m=ps(i);u.top+=m,u.bottom+=m}if(l=="line")return u;l||(l="local");var S=wi(i);if(l=="local"?S+=ds(t.display):S-=t.display.viewOffset,l=="page"||l=="window"){var P=t.display.lineSpace.getBoundingClientRect();S+=P.top+(l=="window"?0:cf(Xe(t)));var R=P.left+(l=="window"?0:Tl(Xe(t)));u.left+=R,u.right+=R}return u.top+=S,u.bottom+=S,u}function df(t,i,u){if(u=="div")return i;var l=i.left,f=i.top;if(u=="page")l-=Tl(Xe(t)),f-=cf(Xe(t));else if(u=="local"||!u){var m=t.display.sizer.getBoundingClientRect();l+=m.left,f+=m.top}var S=t.display.lineSpace.getBoundingClientRect();return{left:l-S.left,top:f-S.top}}function hs(t,i,u,l,f){return l||(l=ut(t.doc,i.line)),jr(t,l,uf(t,l,i.ch,f),u)}function Hn(t,i,u,l,f,m){l=l||ut(t.doc,i.line),f||(f=ha(t,l));function S(Ie,Ne){var ze=ii(t,f,Ie,Ne?"right":"left",m);return Ne?ze.left=ze.right:ze.right=ze.left,jr(t,l,ze,u)}var P=st(l,t.doc.direction),R=i.ch,j=i.sticky;if(R>=l.text.length?(R=l.text.length,j="before"):R<=0&&(R=0,j="after"),!P)return S(j=="before"?R-1:R,j=="before");function se(Ie,Ne,ze){var Ye=P[Ne],Ze=Ye.level==1;return S(ze?Ie-1:Ie,Ze!=ze)}var de=gt(P,R,j),we=dt,ye=se(R,de,j=="before");return we!=null&&(ye.other=se(R,we,j!="before")),ye}function pf(t,i){var u=0;i=ft(t.doc,i),t.options.lineWrapping||(u=Ka(t.display)*i.ch);var l=ut(t.doc,i.line),f=wi(l)+ds(t.display);return{left:u,right:u,top:f,bottom:f+l.height}}function Pl(t,i,u,l,f){var m=D(t,i,u);return m.xRel=f,l&&(m.outside=l),m}function va(t,i,u){var l=t.doc;if(u+=t.display.viewOffset,u<0)return Pl(l.first,0,null,-1,-1);var f=xi(l,u),m=l.first+l.size-1;if(f>m)return Pl(l.first+l.size-1,ut(l,m).text.length,null,1,1);i<0&&(i=0);for(var S=ut(l,f);;){var P=cd(t,S,f,i,u),R=Zu(S,P.ch+(P.xRel>0||P.outside>0?1:0));if(!R)return P;var j=R.find(1);if(j.line==f)return j;S=ut(l,f=j.line)}}function hf(t,i,u,l){l-=ps(i);var f=i.text.length,m=Tt(function(S){return ii(t,u,S-1).bottom<=l},f,0);return f=Tt(function(S){return ii(t,u,S).top>l},m,f),{begin:m,end:f}}function Il(t,i,u,l){u||(u=ha(t,i));var f=jr(t,i,ii(t,u,l),"line").top;return hf(t,i,u,f)}function Oo(t,i,u,l){return t.bottom<=u?!1:t.top>u?!0:(l?t.left:t.right)>i}function cd(t,i,u,l,f){f-=wi(i);var m=ha(t,i),S=ps(i),P=0,R=i.text.length,j=!0,se=st(i,t.doc.direction);if(se){var de=(t.options.lineWrapping?To:vs)(t,i,u,m,se,l,f);j=de.level!=1,P=j?de.from:de.to-1,R=j?de.to:de.from-1}var we=null,ye=null,Ie=Tt(function(vt){var pt=ii(t,m,vt);return pt.top+=S,pt.bottom+=S,Oo(pt,l,f,!1)?(pt.top<=f&&pt.left<=l&&(we=vt,ye=pt),!0):!1},P,R),Ne,ze,Ye=!1;if(ye){var Ze=l-ye.left<ye.right-l,Je=Ze==j;Ie=we+(Je?0:1),ze=Je?"after":"before",Ne=Ze?ye.left:ye.right}else{!j&&(Ie==R||Ie==P)&&Ie++,ze=Ie==0?"after":Ie==i.text.length?"before":ii(t,m,Ie-(j?1:0)).bottom+S<=f==j?"after":"before";var rt=Hn(t,D(u,Ie,ze),"line",i,m);Ne=rt.left,Ye=f<rt.top?-1:f>=rt.bottom?1:0}return Ie=Mt(i.text,Ie,1),Pl(u,Ie,ze,Ye,l-Ne)}function vs(t,i,u,l,f,m,S){var P=Tt(function(de){var we=f[de],ye=we.level!=1;return Oo(Hn(t,D(u,ye?we.to:we.from,ye?"before":"after"),"line",i,l),m,S,!0)},0,f.length-1),R=f[P];if(P>0){var j=R.level!=1,se=Hn(t,D(u,j?R.from:R.to,j?"after":"before"),"line",i,l);Oo(se,m,S,!0)&&se.top>S&&(R=f[P-1])}return R}function To(t,i,u,l,f,m,S){var P=hf(t,i,l,S),R=P.begin,j=P.end;/\s/.test(i.text.charAt(j-1))&&j--;for(var se=null,de=null,we=0;we<f.length;we++){var ye=f[we];if(!(ye.from>=j||ye.to<=R)){var Ie=ye.level!=1,Ne=ii(t,l,Ie?Math.min(j,ye.to)-1:Math.max(R,ye.from)).right,ze=Ne<m?m-Ne+1e9:Ne-m;(!se||de>ze)&&(se=ye,de=ze)}}return se||(se=f[f.length-1]),se.from<R&&(se={from:R,to:se.to,level:se.level}),se.to>j&&(se={from:se.from,to:j,level:se.level}),se}var Di;function ga(t){if(t.cachedTextHeight!=null)return t.cachedTextHeight;if(Di==null){Di=_("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)Di.appendChild(document.createTextNode("x")),Di.appendChild(_("br"));Di.appendChild(document.createTextNode("x"))}he(t.measure,Di);var u=Di.offsetHeight/50;return u>3&&(t.cachedTextHeight=u),fe(t.measure),u||1}function Ka(t){if(t.cachedCharWidth!=null)return t.cachedCharWidth;var i=_("span","xxxxxxxxxx"),u=_("pre",[i],"CodeMirror-line-like");he(t.measure,u);var l=i.getBoundingClientRect(),f=(l.right-l.left)/10;return f>2&&(t.cachedCharWidth=f),f||10}function kl(t){for(var i=t.display,u={},l={},f=i.gutters.clientLeft,m=i.gutters.firstChild,S=0;m;m=m.nextSibling,++S){var P=t.display.gutterSpecs[S].className;u[P]=m.offsetLeft+m.clientLeft+f,l[P]=m.clientWidth}return{fixedPos:ma(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:u,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function ma(t){return t.scroller.getBoundingClientRect().left-t.sizer.getBoundingClientRect().left}function Fl(t){var i=ga(t.display),u=t.options.lineWrapping,l=u&&Math.max(5,t.display.scroller.clientWidth/Ka(t.display)-3);return function(f){if(Li(t.doc,f))return 0;var m=0;if(f.widgets)for(var S=0;S<f.widgets.length;S++)f.widgets[S].height&&(m+=f.widgets[S].height);return u?m+(Math.ceil(f.text.length/l)||1)*i:m+i}}function gs(t){var i=t.doc,u=Fl(t);i.iter(function(l){var f=u(l);f!=l.height&&En(l,f)})}function Ai(t,i,u,l){var f=t.display;if(!u&&Kr(i).getAttribute("cm-not-content")=="true")return null;var m,S,P=f.lineSpace.getBoundingClientRect();try{m=i.clientX-P.left,S=i.clientY-P.top}catch(de){return null}var R=va(t,m,S),j;if(l&&R.xRel>0&&(j=ut(t.doc,R.line).text).length==R.ch){var se=Le(j,j.length,t.options.tabSize)-j.length;R=D(R.line,Math.max(0,Math.round((m-sf(t.display).left)/Ka(t.display))-se))}return R}function Bi(t,i){if(i>=t.display.viewTo||(i-=t.display.viewFrom,i<0))return null;for(var u=t.display.view,l=0;l<u.length;l++)if(i-=u[l].size,i<0)return l}function rn(t,i,u,l){i==null&&(i=t.doc.first),u==null&&(u=t.doc.first+t.doc.size),l||(l=0);var f=t.display;if(l&&u<f.viewTo&&(f.updateLineNumbers==null||f.updateLineNumbers>i)&&(f.updateLineNumbers=i),t.curOp.viewChanged=!0,i>=f.viewTo)Si&&tn(t.doc,i)<f.viewTo&&ji(t);else if(u<=f.viewFrom)Si&&ua(t.doc,u+l)>f.viewFrom?ji(t):(f.viewFrom+=l,f.viewTo+=l);else if(i<=f.viewFrom&&u>=f.viewTo)ji(t);else if(i<=f.viewFrom){var m=ms(t,u,u+l,1);m?(f.view=f.view.slice(m.index),f.viewFrom=m.lineN,f.viewTo+=l):ji(t)}else if(u>=f.viewTo){var S=ms(t,i,i,-1);S?(f.view=f.view.slice(0,S.index),f.viewTo=S.lineN):ji(t)}else{var P=ms(t,i,i,-1),R=ms(t,u,u+l,1);P&&R?(f.view=f.view.slice(0,P.index).concat(za(t,P.lineN,R.lineN)).concat(f.view.slice(R.index)),f.viewTo+=l):ji(t)}var j=f.externalMeasured;j&&(u<j.lineN?j.lineN+=l:i<j.lineN+j.size&&(f.externalMeasured=null))}function Sn(t,i,u){t.curOp.viewChanged=!0;var l=t.display,f=t.display.externalMeasured;if(f&&i>=f.lineN&&i<f.lineN+f.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[Bi(t,i)];if(m.node!=null){var S=m.changes||(m.changes=[]);Se(S,u)==-1&&S.push(u)}}}function ji(t){t.display.viewFrom=t.display.viewTo=t.doc.first,t.display.view=[],t.display.viewOffset=0}function ms(t,i,u,l){var f=Bi(t,i),m,S=t.display.view;if(!Si||u==t.doc.first+t.doc.size)return{index:f,lineN:u};for(var P=t.display.viewFrom,R=0;R<f;R++)P+=S[R].size;if(P!=i){if(l>0){if(f==S.length-1)return null;m=P+S[f].size-i,f++}else m=P-i;i+=m,u+=m}for(;tn(t.doc,u)!=u;){if(f==(l<0?0:S.length-1))return null;u+=l*S[f-(l<0?1:0)].size,f+=l}return{index:f,lineN:u}}function vf(t,i,u){var l=t.display,f=l.view;f.length==0||i>=l.viewTo||u<=l.viewFrom?(l.view=za(t,i,u),l.viewFrom=i):(l.viewFrom>i?l.view=za(t,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(Bi(t,i))),l.viewFrom=i,l.viewTo<u?l.view=l.view.concat(za(t,l.viewTo,u)):l.viewTo>u&&(l.view=l.view.slice(0,Bi(t,u)))),l.viewTo=u}function Rl(t){for(var i=t.display.view,u=0,l=0;l<i.length;l++){var f=i[l];!f.hidden&&(!f.node||f.changes)&&++u}return u}function Po(t){t.display.input.showSelection(t.display.input.prepareSelection())}function Ml(t,i){i===void 0&&(i=!0);var u=t.doc,l={},f=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),S=t.options.$customCursor;S&&(i=!0);for(var P=0;P<u.sel.ranges.length;P++)if(!(!i&&P==u.sel.primIndex)){var R=u.sel.ranges[P];if(!(R.from().line>=t.display.viewTo||R.to().line<t.display.viewFrom)){var j=R.empty();if(S){var se=S(t,R);se&&Ll(t,se,f)}else(j||t.options.showCursorWhenSelecting)&&Ll(t,R.head,f);j||gf(t,R,m)}}return l}function Ll(t,i,u){var l=Hn(t,i,"div",null,null,!t.options.singleCursorHeightPerLine),f=u.appendChild(_("div","\xA0","CodeMirror-cursor"));if(f.style.left=l.left+"px",f.style.top=l.top+"px",f.style.height=Math.max(0,l.bottom-l.top)*t.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(t.getWrapperElement().className)){var m=hs(t,i,"div",null,null),S=m.right-m.left;f.style.width=(S>0?S:t.defaultCharWidth())+"px"}if(l.other){var P=u.appendChild(_("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));P.style.display="",P.style.left=l.other.left+"px",P.style.top=l.other.top+"px",P.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function ys(t,i){return t.top-i.top||t.left-i.left}function gf(t,i,u){var l=t.display,f=t.doc,m=document.createDocumentFragment(),S=sf(t.display),P=S.left,R=Math.max(l.sizerWidth,pa(t)-l.sizer.offsetLeft)-S.right,j=f.direction=="ltr";function se(Je,rt,vt,pt){rt<0&&(rt=0),rt=Math.round(rt),pt=Math.round(pt),m.appendChild(_("div",null,"CodeMirror-selected","position: absolute; left: "+Je+`px;
18
+ top: `+rt+"px; width: "+(vt==null?R-Je:vt)+`px;
19
+ height: `+(pt-rt)+"px"))}function de(Je,rt,vt){var pt=ut(f,Je),Dt=pt.text.length,ur,Ur;function wr(Fr,L){return hs(t,D(Je,Fr),"div",pt,L)}function Gt(Fr,L,Bt){var hr=Il(t,pt,null,Fr),ct=L=="ltr"==(Bt=="after")?"left":"right",yr=Bt=="after"?hr.begin:hr.end-(/\s/.test(pt.text.charAt(hr.end-1))?2:1);return wr(yr,ct)[ct]}var yn=st(pt,f.direction);return Rt(yn,rt||0,vt==null?Dt:vt,function(Fr,L,Bt,hr){var ct=Bt=="ltr",yr=wr(Fr,ct?"left":"right"),Ar=wr(L-1,ct?"right":"left"),Fa=rt==null&&Fr==0,Ti=vt==null&&L==Dt,Jr=hr==0,Jn=!yn||hr==yn.length-1;if(Ar.top-yr.top<=3){var Nr=(j?Fa:Ti)&&Jr,ao=(j?Ti:Fa)&&Jn,Pi=Nr?P:(ct?yr:Ar).left,Ji=ao?R:(ct?Ar:yr).right;se(Pi,yr.top,Ji-Pi,yr.bottom)}else{var Xi,Xr,oo,Zs;ct?(Xi=j&&Fa&&Jr?P:yr.left,Xr=j?R:Gt(Fr,Bt,"before"),oo=j?P:Gt(L,Bt,"after"),Zs=j&&Ti&&Jn?R:Ar.right):(Xi=j?Gt(Fr,Bt,"before"):P,Xr=!j&&Fa&&Jr?R:yr.right,oo=!j&&Ti&&Jn?P:Ar.left,Zs=j?Gt(L,Bt,"after"):R),se(Xi,yr.top,Xr-Xi,yr.bottom),yr.bottom<Ar.top&&se(P,yr.bottom,null,Ar.top),se(oo,Ar.top,Zs-oo,Ar.bottom)}(!ur||ys(yr,ur)<0)&&(ur=yr),ys(Ar,ur)<0&&(ur=Ar),(!Ur||ys(yr,Ur)<0)&&(Ur=yr),ys(Ar,Ur)<0&&(Ur=Ar)}),{start:ur,end:Ur}}var we=i.from(),ye=i.to();if(we.line==ye.line)de(we.line,we.ch,ye.ch);else{var Ie=ut(f,we.line),Ne=ut(f,ye.line),ze=Tn(Ie)==Tn(Ne),Ye=de(we.line,we.ch,ze?Ie.text.length+1:null).end,Ze=de(ye.line,ze?0:null,ye.ch).start;ze&&(Ye.top<Ze.top-2?(se(Ye.right,Ye.top,null,Ye.bottom),se(P,Ze.top,Ze.left,Ze.bottom)):se(Ye.right,Ye.top,Ze.left-Ye.right,Ye.bottom)),Ye.bottom<Ze.top&&se(P,Ye.bottom,null,Ze.top)}u.appendChild(m)}function Nl(t){if(!!t.state.focused){var i=t.display;clearInterval(i.blinker);var u=!0;i.cursorDiv.style.visibility="",t.options.cursorBlinkRate>0?i.blinker=setInterval(function(){t.hasFocus()||Ya(t),i.cursorDiv.style.visibility=(u=!u)?"":"hidden"},t.options.cursorBlinkRate):t.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function mf(t){t.hasFocus()||(t.display.input.focus(),t.state.focused||zn(t))}function bs(t){t.state.delayingBlurEvent=!0,setTimeout(function(){t.state.delayingBlurEvent&&(t.state.delayingBlurEvent=!1,t.state.focused&&Ya(t))},100)}function zn(t,i){t.state.delayingBlurEvent&&!t.state.draggingText&&(t.state.delayingBlurEvent=!1),t.options.readOnly!="nocursor"&&(t.state.focused||(Ke(t,"focus",t,i),t.state.focused=!0,Ue(t.display.wrapper,"CodeMirror-focused"),!t.curOp&&t.display.selForContextMenu!=t.doc.sel&&(t.display.input.reset(),U&&setTimeout(function(){return t.display.input.reset(!0)},20)),t.display.input.receivedFocus()),Nl(t))}function Ya(t,i){t.state.delayingBlurEvent||(t.state.focused&&(Ke(t,"blur",t,i),t.state.focused=!1,H(t.display.wrapper,"CodeMirror-focused")),clearInterval(t.display.blinker),setTimeout(function(){t.state.focused||(t.display.shift=!1)},150))}function Ja(t){for(var i=t.display,u=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),f=i.lineDiv.getBoundingClientRect().top,m=0,S=0;S<i.view.length;S++){var P=i.view[S],R=t.options.lineWrapping,j=void 0,se=0;if(!P.hidden){if(f+=P.line.height,T&&F<8){var de=P.node.offsetTop+P.node.offsetHeight;j=de-u,u=de}else{var we=P.node.getBoundingClientRect();j=we.bottom-we.top,!R&&P.text.firstChild&&(se=P.text.firstChild.getBoundingClientRect().right-we.left-1)}var ye=P.line.height-j;if((ye>.005||ye<-.005)&&(f<l&&(m-=ye),En(P.line,j),yf(P.line),P.rest))for(var Ie=0;Ie<P.rest.length;Ie++)yf(P.rest[Ie]);if(se>t.display.sizerWidth){var Ne=Math.ceil(se/Ka(t.display));Ne>t.display.maxLineLength&&(t.display.maxLineLength=Ne,t.display.maxLine=P.line,t.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function yf(t){if(t.widgets)for(var i=0;i<t.widgets.length;++i){var u=t.widgets[i],l=u.node.parentNode;l&&(u.height=l.offsetHeight)}}function xs(t,i,u){var l=u&&u.top!=null?Math.max(0,u.top):t.scroller.scrollTop;l=Math.floor(l-ds(t));var f=u&&u.bottom!=null?u.bottom:l+t.wrapper.clientHeight,m=xi(i,l),S=xi(i,f);if(u&&u.ensure){var P=u.ensure.from.line,R=u.ensure.to.line;P<m?(m=P,S=xi(i,wi(ut(i,P))+t.wrapper.clientHeight)):Math.min(R,i.lastLine())>=S&&(m=xi(i,wi(ut(i,R))-t.wrapper.clientHeight),S=R)}return{from:m,to:Math.max(S,m+1)}}function dd(t,i){if(!lt(t,"scrollCursorIntoView")){var u=t.display,l=u.sizer.getBoundingClientRect(),f=null,m=u.wrapper.ownerDocument;if(i.top+l.top<0?f=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(f=!1),f!=null&&!A){var S=_("div","\u200B",null,`position: absolute;
20
+ top: `+(i.top-u.viewOffset-ds(t.display))+`px;
21
+ height: `+(i.bottom-i.top+ni(t)+u.barHeight)+`px;
22
+ left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");t.display.lineSpace.appendChild(S),S.scrollIntoView(f),t.display.lineSpace.removeChild(S)}}}function Dl(t,i,u,l){l==null&&(l=0);var f;!t.options.lineWrapping&&i==u&&(u=i.sticky=="before"?D(i.line,i.ch+1,"before"):i,i=i.ch?D(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var S=!1,P=Hn(t,i),R=!u||u==i?P:Hn(t,u);f={left:Math.min(P.left,R.left),top:Math.min(P.top,R.top)-l,right:Math.max(P.left,R.left),bottom:Math.max(P.bottom,R.bottom)+l};var j=Bl(t,f),se=t.doc.scrollTop,de=t.doc.scrollLeft;if(j.scrollTop!=null&&(ko(t,j.scrollTop),Math.abs(t.doc.scrollTop-se)>1&&(S=!0)),j.scrollLeft!=null&&(ya(t,j.scrollLeft),Math.abs(t.doc.scrollLeft-de)>1&&(S=!0)),!S)break}return f}function pd(t,i){var u=Bl(t,i);u.scrollTop!=null&&ko(t,u.scrollTop),u.scrollLeft!=null&&ya(t,u.scrollLeft)}function Bl(t,i){var u=t.display,l=ga(t.display);i.top<0&&(i.top=0);var f=t.curOp&&t.curOp.scrollTop!=null?t.curOp.scrollTop:u.scroller.scrollTop,m=wl(t),S={};i.bottom-i.top>m&&(i.bottom=i.top+m);var P=t.doc.height+da(u),R=i.top<l,j=i.bottom>P-l;if(i.top<f)S.scrollTop=R?0:i.top;else if(i.bottom>f+m){var se=Math.min(i.top,(j?P:i.bottom)-m);se!=f&&(S.scrollTop=se)}var de=t.options.fixedGutter?0:u.gutters.offsetWidth,we=t.curOp&&t.curOp.scrollLeft!=null?t.curOp.scrollLeft:u.scroller.scrollLeft-de,ye=pa(t)-u.gutters.offsetWidth,Ie=i.right-i.left>ye;return Ie&&(i.right=i.left+ye),i.left<10?S.scrollLeft=0:i.left<we?S.scrollLeft=Math.max(0,i.left+de-(Ie?0:10)):i.right>ye+we-3&&(S.scrollLeft=i.right+(Ie?0:10)-ye),S}function jl(t,i){i!=null&&(Ss(t),t.curOp.scrollTop=(t.curOp.scrollTop==null?t.doc.scrollTop:t.curOp.scrollTop)+i)}function Xa(t){Ss(t);var i=t.getCursor();t.curOp.scrollToPos={from:i,to:i,margin:t.options.cursorScrollMargin}}function Io(t,i,u){(i!=null||u!=null)&&Ss(t),i!=null&&(t.curOp.scrollLeft=i),u!=null&&(t.curOp.scrollTop=u)}function hd(t,i){Ss(t),t.curOp.scrollToPos=i}function Ss(t){var i=t.curOp.scrollToPos;if(i){t.curOp.scrollToPos=null;var u=pf(t,i.from),l=pf(t,i.to);bf(t,u,l,i.margin)}}function bf(t,i,u,l){var f=Bl(t,{left:Math.min(i.left,u.left),top:Math.min(i.top,u.top)-l,right:Math.max(i.right,u.right),bottom:Math.max(i.bottom,u.bottom)+l});Io(t,f.scrollLeft,f.scrollTop)}function ko(t,i){Math.abs(t.doc.scrollTop-i)<2||(d||Hl(t,{top:i}),xf(t,i,!0),d&&Hl(t),Mo(t,100))}function xf(t,i,u){i=Math.max(0,Math.min(t.display.scroller.scrollHeight-t.display.scroller.clientHeight,i)),!(t.display.scroller.scrollTop==i&&!u)&&(t.doc.scrollTop=i,t.display.scrollbars.setScrollTop(i),t.display.scroller.scrollTop!=i&&(t.display.scroller.scrollTop=i))}function ya(t,i,u,l){i=Math.max(0,Math.min(i,t.display.scroller.scrollWidth-t.display.scroller.clientWidth)),!((u?i==t.doc.scrollLeft:Math.abs(t.doc.scrollLeft-i)<2)&&!l)&&(t.doc.scrollLeft=i,Os(t),t.display.scroller.scrollLeft!=i&&(t.display.scroller.scrollLeft=i),t.display.scrollbars.setScrollLeft(i))}function Fo(t){var i=t.display,u=i.gutters.offsetWidth,l=Math.round(t.doc.height+da(t.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:t.options.fixedGutter?u:0,docHeight:l,scrollHeight:l+ni(t)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:u}}var ba=function(t,i,u){this.cm=u;var l=this.vert=_("div",[_("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),f=this.horiz=_("div",[_("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=f.tabIndex=-1,t(l),t(f),ce(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),ce(f,"scroll",function(){f.clientWidth&&i(f.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,T&&F<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};ba.prototype.update=function(t){var i=t.scrollWidth>t.clientWidth+1,u=t.scrollHeight>t.clientHeight+1,l=t.nativeBarWidth;if(u){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var f=t.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,t.scrollHeight-t.clientHeight+f)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=u?l+"px":"0",this.horiz.style.left=t.barLeft+"px";var m=t.viewWidth-t.barLeft-(u?l:0);this.horiz.firstChild.style.width=Math.max(0,t.scrollWidth-t.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&t.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:u?l:0,bottom:i?l:0}},ba.prototype.setScrollLeft=function(t){this.horiz.scrollLeft!=t&&(this.horiz.scrollLeft=t),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},ba.prototype.setScrollTop=function(t){this.vert.scrollTop!=t&&(this.vert.scrollTop=t),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},ba.prototype.zeroWidthHack=function(){var t=k&&!Y?"12px":"18px";this.horiz.style.height=this.vert.style.width=t,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new Ce,this.disableVert=new Ce},ba.prototype.enableZeroWidthBar=function(t,i,u){t.style.visibility="";function l(){var f=t.getBoundingClientRect(),m=u=="vert"?document.elementFromPoint(f.right-1,(f.top+f.bottom)/2):document.elementFromPoint((f.right+f.left)/2,f.bottom-1);m!=t?t.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},ba.prototype.clear=function(){var t=this.horiz.parentNode;t.removeChild(this.horiz),t.removeChild(this.vert)};var Ro=function(){};Ro.prototype.update=function(){return{bottom:0,right:0}},Ro.prototype.setScrollLeft=function(){},Ro.prototype.setScrollTop=function(){},Ro.prototype.clear=function(){};function Qa(t,i){i||(i=Fo(t));var u=t.display.barWidth,l=t.display.barHeight;Vl(t,i);for(var f=0;f<4&&u!=t.display.barWidth||l!=t.display.barHeight;f++)u!=t.display.barWidth&&t.options.lineWrapping&&Ja(t),Vl(t,Fo(t)),u=t.display.barWidth,l=t.display.barHeight}function Vl(t,i){var u=t.display,l=u.scrollbars.update(i);u.sizer.style.paddingRight=(u.barWidth=l.right)+"px",u.sizer.style.paddingBottom=(u.barHeight=l.bottom)+"px",u.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(u.scrollbarFiller.style.display="block",u.scrollbarFiller.style.height=l.bottom+"px",u.scrollbarFiller.style.width=l.right+"px"):u.scrollbarFiller.style.display="",l.bottom&&t.options.coverGutterNextToScrollbar&&t.options.fixedGutter?(u.gutterFiller.style.display="block",u.gutterFiller.style.height=l.bottom+"px",u.gutterFiller.style.width=i.gutterWidth+"px"):u.gutterFiller.style.display=""}var Sf={native:ba,null:Ro};function Ul(t){t.display.scrollbars&&(t.display.scrollbars.clear(),t.display.scrollbars.addClass&&H(t.display.wrapper,t.display.scrollbars.addClass)),t.display.scrollbars=new Sf[t.options.scrollbarStyle](function(i){t.display.wrapper.insertBefore(i,t.display.scrollbarFiller),ce(i,"mousedown",function(){t.state.focused&&setTimeout(function(){return t.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,u){u=="horizontal"?ya(t,i):ko(t,i)},t),t.display.scrollbars.addClass&&Ue(t.display.wrapper,t.display.scrollbars.addClass)}var ws=0;function Vi(t){t.curOp={cm:t,viewChanged:!1,startHeight:t.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++ws,markArrays:null},_c(t.curOp)}function xa(t){var i=t.curOp;i&&td(i,function(u){for(var l=0;l<u.ops.length;l++)u.ops[l].cm.curOp=null;vd(u)})}function vd(t){for(var i=t.ops,u=0;u<i.length;u++)gd(i[u]);for(var l=0;l<i.length;l++)Sa(i[l]);for(var f=0;f<i.length;f++)md(i[f]);for(var m=0;m<i.length;m++)Gn(i[m]);for(var S=0;S<i.length;S++)yd(i[S])}function gd(t){var i=t.cm,u=i.display;xd(i),t.updateMaxLine&&xl(i),t.mustUpdate=t.viewChanged||t.forceUpdate||t.scrollTop!=null||t.scrollToPos&&(t.scrollToPos.from.line<u.viewFrom||t.scrollToPos.to.line>=u.viewTo)||u.maxLineChanged&&i.options.lineWrapping,t.update=t.mustUpdate&&new As(i,t.mustUpdate&&{top:t.scrollTop,ensure:t.scrollToPos},t.forceUpdate)}function Sa(t){t.updatedDisplay=t.mustUpdate&&Lo(t.cm,t.update)}function md(t){var i=t.cm,u=i.display;t.updatedDisplay&&Ja(i),t.barMeasure=Fo(i),u.maxLineChanged&&!i.options.lineWrapping&&(t.adjustWidthTo=uf(i,u.maxLine,u.maxLine.text.length).left+3,i.display.sizerWidth=t.adjustWidthTo,t.barMeasure.scrollWidth=Math.max(u.scroller.clientWidth,u.sizer.offsetLeft+t.adjustWidthTo+ni(i)+i.display.barWidth),t.maxScrollLeft=Math.max(0,u.sizer.offsetLeft+t.adjustWidthTo-pa(i))),(t.updatedDisplay||t.selectionChanged)&&(t.preparedSelection=u.input.prepareSelection())}function Gn(t){var i=t.cm;t.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=t.adjustWidthTo+"px",t.maxScrollLeft<i.doc.scrollLeft&&ya(i,Math.min(i.display.scroller.scrollLeft,t.maxScrollLeft),!0),i.display.maxLineChanged=!1);var u=t.focus&&t.focus==Oe(Xe(i));t.preparedSelection&&i.display.input.showSelection(t.preparedSelection,u),(t.updatedDisplay||t.startHeight!=i.doc.height)&&Qa(i,t.barMeasure),t.updatedDisplay&&Es(i,t.barMeasure),t.selectionChanged&&Nl(i),i.state.focused&&t.updateInput&&i.display.input.reset(t.typing),u&&mf(t.cm)}function yd(t){var i=t.cm,u=i.display,l=i.doc;if(t.updatedDisplay&&wf(i,t.update),u.wheelStartX!=null&&(t.scrollTop!=null||t.scrollLeft!=null||t.scrollToPos)&&(u.wheelStartX=u.wheelStartY=null),t.scrollTop!=null&&xf(i,t.scrollTop,t.forceScroll),t.scrollLeft!=null&&ya(i,t.scrollLeft,!0,!0),t.scrollToPos){var f=Dl(i,ft(l,t.scrollToPos.from),ft(l,t.scrollToPos.to),t.scrollToPos.margin);dd(i,f)}var m=t.maybeHiddenMarkers,S=t.maybeUnhiddenMarkers;if(m)for(var P=0;P<m.length;++P)m[P].lines.length||Ke(m[P],"hide");if(S)for(var R=0;R<S.length;++R)S[R].lines.length&&Ke(S[R],"unhide");u.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),t.changeObjs&&Ke(i,"changes",i,t.changeObjs),t.update&&t.update.finish()}function gn(t,i){if(t.curOp)return i();Vi(t);try{return i()}finally{xa(t)}}function Sr(t,i){return function(){if(t.curOp)return i.apply(t,arguments);Vi(t);try{return i.apply(t,arguments)}finally{xa(t)}}}function zr(t){return function(){if(this.curOp)return t.apply(this,arguments);Vi(this);try{return t.apply(this,arguments)}finally{xa(this)}}}function Vr(t){return function(){var i=this.cm;if(!i||i.curOp)return t.apply(this,arguments);Vi(i);try{return t.apply(this,arguments)}finally{xa(i)}}}function Mo(t,i){t.doc.highlightFrontier<t.display.viewTo&&t.state.highlight.set(i,Pt(bd,t))}function bd(t){var i=t.doc;if(!(i.highlightFrontier>=t.display.viewTo)){var u=+new Date+t.options.workTime,l=sa(t,i.highlightFrontier),f=[];i.iter(l.line,Math.min(i.first+i.size,t.display.viewTo+500),function(m){if(l.line>=t.display.viewFrom){var S=m.styles,P=m.text.length>t.options.maxHighlightLength?Cn(i.mode,l.state):null,R=Hu(t,m,l,!0);P&&(l.state=P),m.styles=R.styles;var j=m.styleClasses,se=R.classes;se?m.styleClasses=se:j&&(m.styleClasses=null);for(var de=!S||S.length!=m.styles.length||j!=se&&(!j||!se||j.bgClass!=se.bgClass||j.textClass!=se.textClass),we=0;!de&&we<S.length;++we)de=S[we]!=m.styles[we];de&&f.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=t.options.maxHighlightLength&&dl(t,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>u)return Mo(t,t.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),f.length&&gn(t,function(){for(var m=0;m<f.length;m++)Sn(t,f[m],"text")})}}var As=function(t,i,u){var l=t.display;this.viewport=i,this.visible=xs(l,t.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=pa(t),this.force=u,this.dims=kl(t),this.events=[]};As.prototype.signal=function(t,i){_t(t,i)&&this.events.push(arguments)},As.prototype.finish=function(){for(var t=0;t<this.events.length;t++)Ke.apply(null,this.events[t])};function xd(t){var i=t.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=ni(t)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=ni(t)+"px",i.scrollbarsClipped=!0)}function Wl(t){if(t.hasFocus())return null;var i=Oe(Xe(t));if(!i||!ge(t.display.lineDiv,i))return null;var u={activeElt:i};if(window.getSelection){var l=xt(t).getSelection();l.anchorNode&&l.extend&&ge(t.display.lineDiv,l.anchorNode)&&(u.anchorNode=l.anchorNode,u.anchorOffset=l.anchorOffset,u.focusNode=l.focusNode,u.focusOffset=l.focusOffset)}return u}function Cs(t){if(!(!t||!t.activeElt||t.activeElt==Oe(t.activeElt.ownerDocument))&&(t.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(t.activeElt.nodeName)&&t.anchorNode&&ge(document.body,t.anchorNode)&&ge(document.body,t.focusNode))){var i=t.activeElt.ownerDocument,u=i.defaultView.getSelection(),l=i.createRange();l.setEnd(t.anchorNode,t.anchorOffset),l.collapse(!1),u.removeAllRanges(),u.addRange(l),u.extend(t.focusNode,t.focusOffset)}}function Lo(t,i){var u=t.display,l=t.doc;if(i.editorIsHidden)return ji(t),!1;if(!i.force&&i.visible.from>=u.viewFrom&&i.visible.to<=u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo)&&u.renderedView==u.view&&Rl(t)==0)return!1;Gl(t)&&(ji(t),i.dims=kl(t));var f=l.first+l.size,m=Math.max(i.visible.from-t.options.viewportMargin,l.first),S=Math.min(f,i.visible.to+t.options.viewportMargin);u.viewFrom<m&&m-u.viewFrom<20&&(m=Math.max(l.first,u.viewFrom)),u.viewTo>S&&u.viewTo-S<20&&(S=Math.min(f,u.viewTo)),Si&&(m=tn(t.doc,m),S=ua(t.doc,S));var P=m!=u.viewFrom||S!=u.viewTo||u.lastWrapHeight!=i.wrapperHeight||u.lastWrapWidth!=i.wrapperWidth;vf(t,m,S),u.viewOffset=wi(ut(t.doc,u.viewFrom)),t.display.mover.style.top=u.viewOffset+"px";var R=Rl(t);if(!P&&R==0&&!i.force&&u.renderedView==u.view&&(u.updateLineNumbers==null||u.updateLineNumbers>=u.viewTo))return!1;var j=Wl(t);return R>4&&(u.lineDiv.style.display="none"),Af(t,u.updateLineNumbers,i.dims),R>4&&(u.lineDiv.style.display=""),u.renderedView=u.view,Cs(j),fe(u.cursorDiv),fe(u.selectionDiv),u.gutters.style.height=u.sizer.style.minHeight=0,P&&(u.lastWrapHeight=i.wrapperHeight,u.lastWrapWidth=i.wrapperWidth,Mo(t,400)),u.updateLineNumbers=null,!0}function wf(t,i){for(var u=i.viewport,l=!0;;l=!1){if(!l||!t.options.lineWrapping||i.oldDisplayWidth==pa(t)){if(u&&u.top!=null&&(u={top:Math.min(t.doc.height+da(t.display)-wl(t),u.top)}),i.visible=xs(t.display,t.doc,u),i.visible.from>=t.display.viewFrom&&i.visible.to<=t.display.viewTo)break}else l&&(i.visible=xs(t.display,t.doc,u));if(!Lo(t,i))break;Ja(t);var f=Fo(t);Po(t),Qa(t,f),Es(t,f),i.force=!1}i.signal(t,"update",t),(t.display.viewFrom!=t.display.reportedViewFrom||t.display.viewTo!=t.display.reportedViewTo)&&(i.signal(t,"viewportChange",t,t.display.viewFrom,t.display.viewTo),t.display.reportedViewFrom=t.display.viewFrom,t.display.reportedViewTo=t.display.viewTo)}function Hl(t,i){var u=new As(t,i);if(Lo(t,u)){Ja(t),wf(t,u);var l=Fo(t);Po(t),Qa(t,l),Es(t,l),u.finish()}}function Af(t,i,u){var l=t.display,f=t.options.lineNumbers,m=l.lineDiv,S=m.firstChild;function P(Ie){var Ne=Ie.nextSibling;return U&&k&&t.display.currentWheelTarget==Ie?Ie.style.display="none":Ie.parentNode.removeChild(Ie),Ne}for(var R=l.view,j=l.viewFrom,se=0;se<R.length;se++){var de=R[se];if(!de.hidden)if(!de.node||de.node.parentNode!=m){var we=od(t,de,j,u);m.insertBefore(we,S)}else{for(;S!=de.node;)S=P(S);var ye=f&&i!=null&&i<=j&&de.lineNumber;de.changes&&(Se(de.changes,"gutter")>-1&&(ye=!1),rf(t,de,j,u)),ye&&(fe(de.lineNumber),de.lineNumber.appendChild(document.createTextNode(Va(t.options,j)))),S=de.node.nextSibling}j+=de.size}for(;S;)S=P(S)}function zl(t){var i=t.gutters.offsetWidth;t.sizer.style.marginLeft=i+"px",Lr(t,"gutterChanged",t)}function Es(t,i){t.display.sizer.style.minHeight=i.docHeight+"px",t.display.heightForcer.style.top=i.docHeight+"px",t.display.gutters.style.height=i.docHeight+t.display.barHeight+ni(t)+"px"}function Os(t){var i=t.display,u=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!t.options.fixedGutter))){for(var l=ma(i)-i.scroller.scrollLeft+t.doc.scrollLeft,f=i.gutters.offsetWidth,m=l+"px",S=0;S<u.length;S++)if(!u[S].hidden){t.options.fixedGutter&&(u[S].gutter&&(u[S].gutter.style.left=m),u[S].gutterBackground&&(u[S].gutterBackground.style.left=m));var P=u[S].alignable;if(P)for(var R=0;R<P.length;R++)P[R].style.left=m}t.options.fixedGutter&&(i.gutters.style.left=l+f+"px")}}function Gl(t){if(!t.options.lineNumbers)return!1;var i=t.doc,u=Va(t.options,i.first+i.size-1),l=t.display;if(u.length!=l.lineNumChars){var f=l.measure.appendChild(_("div",[_("div",u)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=f.firstChild.offsetWidth,S=f.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-S)+1,l.lineNumWidth=l.lineNumInnerWidth+S,l.lineNumChars=l.lineNumInnerWidth?u.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",zl(t.display),!0}return!1}function $l(t,i){for(var u=[],l=!1,f=0;f<t.length;f++){var m=t[f],S=null;if(typeof m!="string"&&(S=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;u.push({className:m,style:S})}return i&&!l&&u.push({className:"CodeMirror-linenumbers",style:null}),u}function Cf(t){var i=t.gutters,u=t.gutterSpecs;fe(i),t.lineGutter=null;for(var l=0;l<u.length;++l){var f=u[l],m=f.className,S=f.style,P=i.appendChild(_("div",null,"CodeMirror-gutter "+m));S&&(P.style.cssText=S),m=="CodeMirror-linenumbers"&&(t.lineGutter=P,P.style.width=(t.lineNumWidth||1)+"px")}i.style.display=u.length?"":"none",zl(t)}function Za(t){Cf(t.display),rn(t),Os(t)}function Ef(t,i,u,l){var f=this;this.input=u,f.scrollbarFiller=_("div",null,"CodeMirror-scrollbar-filler"),f.scrollbarFiller.setAttribute("cm-not-content","true"),f.gutterFiller=_("div",null,"CodeMirror-gutter-filler"),f.gutterFiller.setAttribute("cm-not-content","true"),f.lineDiv=X("div",null,"CodeMirror-code"),f.selectionDiv=_("div",null,null,"position: relative; z-index: 1"),f.cursorDiv=_("div",null,"CodeMirror-cursors"),f.measure=_("div",null,"CodeMirror-measure"),f.lineMeasure=_("div",null,"CodeMirror-measure"),f.lineSpace=X("div",[f.measure,f.lineMeasure,f.selectionDiv,f.cursorDiv,f.lineDiv],null,"position: relative; outline: none");var m=X("div",[f.lineSpace],"CodeMirror-lines");f.mover=_("div",[m],null,"position: relative"),f.sizer=_("div",[f.mover],"CodeMirror-sizer"),f.sizerWidth=null,f.heightForcer=_("div",null,null,"position: absolute; height: "+De+"px; width: 1px;"),f.gutters=_("div",null,"CodeMirror-gutters"),f.lineGutter=null,f.scroller=_("div",[f.sizer,f.heightForcer,f.gutters],"CodeMirror-scroll"),f.scroller.setAttribute("tabIndex","-1"),f.wrapper=_("div",[f.scrollbarFiller,f.gutterFiller,f.scroller],"CodeMirror"),ee&&ue>=105&&(f.wrapper.style.clipPath="inset(0px)"),f.wrapper.setAttribute("translate","no"),T&&F<8&&(f.gutters.style.zIndex=-1,f.scroller.style.paddingRight=0),!U&&!(d&&E)&&(f.scroller.draggable=!0),t&&(t.appendChild?t.appendChild(f.wrapper):t(f.wrapper)),f.viewFrom=f.viewTo=i.first,f.reportedViewFrom=f.reportedViewTo=i.first,f.view=[],f.renderedView=null,f.externalMeasured=null,f.viewOffset=0,f.lastWrapHeight=f.lastWrapWidth=0,f.updateLineNumbers=null,f.nativeBarWidth=f.barHeight=f.barWidth=0,f.scrollbarsClipped=!1,f.lineNumWidth=f.lineNumInnerWidth=f.lineNumChars=null,f.alignWidgets=!1,f.cachedCharWidth=f.cachedTextHeight=f.cachedPaddingH=null,f.maxLine=null,f.maxLineLength=0,f.maxLineChanged=!1,f.wheelDX=f.wheelDY=f.wheelStartX=f.wheelStartY=null,f.shift=!1,f.selForContextMenu=null,f.activeTouch=null,f.gutterSpecs=$l(l.gutters,l.lineNumbers),Cf(f),u.init(f)}var Ts=0,ai=null;T?ai=-.53:d?ai=15:ee?ai=-.7:ie&&(ai=-1/3);function Kl(t){var i=t.wheelDeltaX,u=t.wheelDeltaY;return i==null&&t.detail&&t.axis==t.HORIZONTAL_AXIS&&(i=t.detail),u==null&&t.detail&&t.axis==t.VERTICAL_AXIS?u=t.detail:u==null&&(u=t.wheelDelta),{x:i,y:u}}function Sd(t){var i=Kl(t);return i.x*=ai,i.y*=ai,i}function Yl(t,i){ee&&ue==102&&(t.display.chromeScrollHack==null?t.display.sizer.style.pointerEvents="none":clearTimeout(t.display.chromeScrollHack),t.display.chromeScrollHack=setTimeout(function(){t.display.chromeScrollHack=null,t.display.sizer.style.pointerEvents=""},100));var u=Kl(i),l=u.x,f=u.y,m=ai;i.deltaMode===0&&(l=i.deltaX,f=i.deltaY,m=1);var S=t.display,P=S.scroller,R=P.scrollWidth>P.clientWidth,j=P.scrollHeight>P.clientHeight;if(!!(l&&R||f&&j)){if(f&&k&&U){e:for(var se=i.target,de=S.view;se!=P;se=se.parentNode)for(var we=0;we<de.length;we++)if(de[we].node==se){t.display.currentWheelTarget=se;break e}}if(l&&!d&&!ne&&m!=null){f&&j&&ko(t,Math.max(0,P.scrollTop+f*m)),ya(t,Math.max(0,P.scrollLeft+l*m)),(!f||f&&j)&&At(i),S.wheelStartX=null;return}if(f&&m!=null){var ye=f*m,Ie=t.doc.scrollTop,Ne=Ie+S.wrapper.clientHeight;ye<0?Ie=Math.max(0,Ie+ye-50):Ne=Math.min(t.doc.height,Ne+ye+50),Hl(t,{top:Ie,bottom:Ne})}Ts<20&&i.deltaMode!==0&&(S.wheelStartX==null?(S.wheelStartX=P.scrollLeft,S.wheelStartY=P.scrollTop,S.wheelDX=l,S.wheelDY=f,setTimeout(function(){if(S.wheelStartX!=null){var ze=P.scrollLeft-S.wheelStartX,Ye=P.scrollTop-S.wheelStartY,Ze=Ye&&S.wheelDY&&Ye/S.wheelDY||ze&&S.wheelDX&&ze/S.wheelDX;S.wheelStartX=S.wheelStartY=null,Ze&&(ai=(ai*Ts+Ze)/(Ts+1),++Ts)}},200)):(S.wheelDX+=l,S.wheelDY+=f))}}var mn=function(t,i){this.ranges=t,this.primIndex=i};mn.prototype.primary=function(){return this.ranges[this.primIndex]},mn.prototype.equals=function(t){if(t==this)return!0;if(t.primIndex!=this.primIndex||t.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var u=this.ranges[i],l=t.ranges[i];if(!Me(u.anchor,l.anchor)||!Me(u.head,l.head))return!1}return!0},mn.prototype.deepCopy=function(){for(var t=[],i=0;i<this.ranges.length;i++)t[i]=new Qt(He(this.ranges[i].anchor),He(this.ranges[i].head));return new mn(t,this.primIndex)},mn.prototype.somethingSelected=function(){for(var t=0;t<this.ranges.length;t++)if(!this.ranges[t].empty())return!0;return!1},mn.prototype.contains=function(t,i){i||(i=t);for(var u=0;u<this.ranges.length;u++){var l=this.ranges[u];if(oe(i,l.from())>=0&&oe(t,l.to())<=0)return u}return-1};var Qt=function(t,i){this.anchor=t,this.head=i};Qt.prototype.from=function(){return jt(this.anchor,this.head)},Qt.prototype.to=function(){return Ft(this.anchor,this.head)},Qt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function $n(t,i,u){var l=t&&t.options.selectionsMayTouch,f=i[u];i.sort(function(we,ye){return oe(we.from(),ye.from())}),u=Se(i,f);for(var m=1;m<i.length;m++){var S=i[m],P=i[m-1],R=oe(P.to(),S.from());if(l&&!S.empty()?R>0:R>=0){var j=jt(P.from(),S.from()),se=Ft(P.to(),S.to()),de=P.empty()?S.from()==S.head:P.from()==P.head;m<=u&&--u,i.splice(--m,2,new Qt(de?se:j,de?j:se))}}return new mn(i,u)}function Ui(t,i){return new mn([new Qt(t,i||t)],0)}function Wi(t){return t.text?D(t.from.line+t.text.length-1,We(t.text).length+(t.text.length==1?t.from.ch:0)):t.to}function Hi(t,i){if(oe(t,i.from)<0)return t;if(oe(t,i.to)<=0)return Wi(i);var u=t.line+i.text.length-(i.to.line-i.from.line)-1,l=t.ch;return t.line==i.to.line&&(l+=Wi(i).ch-i.to.ch),D(u,l)}function Jl(t,i){for(var u=[],l=0;l<t.sel.ranges.length;l++){var f=t.sel.ranges[l];u.push(new Qt(Hi(f.anchor,i),Hi(f.head,i)))}return $n(t.cm,u,t.sel.primIndex)}function Of(t,i,u){return t.line==i.line?D(u.line,t.ch-i.ch+u.ch):D(u.line+(t.line-i.line),t.ch)}function wd(t,i,u){for(var l=[],f=D(t.first,0),m=f,S=0;S<i.length;S++){var P=i[S],R=Of(P.from,f,m),j=Of(Wi(P),f,m);if(f=P.to,m=j,u=="around"){var se=t.sel.ranges[S],de=oe(se.head,se.anchor)<0;l[S]=new Qt(de?j:R,de?R:j)}else l[S]=new Qt(R,R)}return new mn(l,t.sel.primIndex)}function Xl(t){t.doc.mode=en(t.options,t.doc.modeOption),zi(t)}function zi(t){t.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),t.doc.modeFrontier=t.doc.highlightFrontier=t.doc.first,Mo(t,100),t.state.modeGen++,t.curOp&&rn(t)}function Ps(t,i){return i.from.ch==0&&i.to.ch==0&&We(i.text)==""&&(!t.cm||t.cm.options.wholeLineUpdateBefore)}function cn(t,i,u,l){function f(Ze){return u?u[Ze]:null}function m(Ze,Je,rt){qu(Ze,Je,rt,l),Lr(Ze,"change",Ze,i)}function S(Ze,Je){for(var rt=[],vt=Ze;vt<Je;++vt)rt.push(new fa(j[vt],f(vt),l));return rt}var P=i.from,R=i.to,j=i.text,se=ut(t,P.line),de=ut(t,R.line),we=We(j),ye=f(j.length-1),Ie=R.line-P.line;if(i.full)t.insert(0,S(0,j.length)),t.remove(j.length,t.size-j.length);else if(Ps(t,i)){var Ne=S(0,j.length-1);m(de,de.text,ye),Ie&&t.remove(P.line,Ie),Ne.length&&t.insert(P.line,Ne)}else if(se==de)if(j.length==1)m(se,se.text.slice(0,P.ch)+we+se.text.slice(R.ch),ye);else{var ze=S(1,j.length-1);ze.push(new fa(we+se.text.slice(R.ch),ye,l)),m(se,se.text.slice(0,P.ch)+j[0],f(0)),t.insert(P.line+1,ze)}else if(j.length==1)m(se,se.text.slice(0,P.ch)+j[0]+de.text.slice(R.ch),f(0)),t.remove(P.line+1,Ie);else{m(se,se.text.slice(0,P.ch)+j[0],f(0)),m(de,we+de.text.slice(R.ch),ye);var Ye=S(1,j.length-1);Ie>1&&t.remove(P.line+1,Ie-1),t.insert(P.line+1,Ye)}Lr(t,"change",t,i)}function oi(t,i,u){function l(f,m,S){if(f.linked)for(var P=0;P<f.linked.length;++P){var R=f.linked[P];if(R.doc!=m){var j=S&&R.sharedHist;u&&!j||(i(R.doc,j),l(R.doc,f,j))}}}l(t,null,!0)}function si(t,i){if(i.cm)throw new Error("This document is already in use.");t.doc=i,i.cm=t,gs(t),Xl(t),Ql(t),t.options.direction=i.direction,t.options.lineWrapping||xl(t),t.options.mode=i.modeOption,rn(t)}function Ql(t){(t.doc.direction=="rtl"?Ue:H)(t.display.lineDiv,"CodeMirror-rtl")}function Tf(t){gn(t,function(){Ql(t),rn(t)})}function Zl(t){this.done=[],this.undone=[],this.undoDepth=t?t.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=t?t.maxGeneration:1}function No(t,i){var u={from:He(i.from),to:Wi(i),text:bi(t,i.from,i.to)};return _a(t,u,i.from.line,i.to.line+1),oi(t,function(l){return _a(l,u,i.from.line,i.to.line+1)},!0),u}function ql(t){for(;t.length;){var i=We(t);if(i.ranges)t.pop();else break}}function Pf(t,i){if(i)return ql(t.done),We(t.done);if(t.done.length&&!We(t.done).ranges)return We(t.done);if(t.done.length>1&&!t.done[t.done.length-2].ranges)return t.done.pop(),We(t.done)}function Er(t,i,u,l){var f=t.history;f.undone.length=0;var m=+new Date,S,P;if((f.lastOp==l||f.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&f.lastModTime>m-(t.cm?t.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(S=Pf(f,f.lastOp==l)))P=We(S.changes),oe(i.from,i.to)==0&&oe(i.from,P.to)==0?P.to=Wi(i):S.changes.push(No(t,i));else{var R=We(f.done);for((!R||!R.ranges)&&Is(t.sel,f.done),S={changes:[No(t,i)],generation:f.generation},f.done.push(S);f.done.length>f.undoDepth;)f.done.shift(),f.done[0].ranges||f.done.shift()}f.done.push(u),f.generation=++f.maxGeneration,f.lastModTime=f.lastSelTime=m,f.lastOp=f.lastSelOp=l,f.lastOrigin=f.lastSelOrigin=i.origin,P||Ke(t,"historyAdded")}function Ad(t,i,u,l){var f=i.charAt(0);return f=="*"||f=="+"&&u.ranges.length==l.ranges.length&&u.somethingSelected()==l.somethingSelected()&&new Date-t.history.lastSelTime<=(t.cm?t.cm.options.historyEventDelay:500)}function qa(t,i,u,l){var f=t.history,m=l&&l.origin;u==f.lastSelOp||m&&f.lastSelOrigin==m&&(f.lastModTime==f.lastSelTime&&f.lastOrigin==m||Ad(t,m,We(f.done),i))?f.done[f.done.length-1]=i:Is(i,f.done),f.lastSelTime=+new Date,f.lastSelOrigin=m,f.lastSelOp=u,l&&l.clearRedo!==!1&&ql(f.undone)}function Is(t,i){var u=We(i);u&&u.ranges&&u.equals(t)||i.push(t)}function _a(t,i,u,l){var f=i["spans_"+t.id],m=0;t.iter(Math.max(t.first,u),Math.min(t.first+t.size,l),function(S){S.markedSpans&&((f||(f=i["spans_"+t.id]={}))[m]=S.markedSpans),++m})}function wa(t){if(!t)return null;for(var i,u=0;u<t.length;++u)t[u].marker.explicitlyCleared?i||(i=t.slice(0,u)):i&&i.push(t[u]);return i?i.length?i:null:t}function Gi(t,i){var u=i["spans_"+t.id];if(!u)return null;for(var l=[],f=0;f<i.text.length;++f)l.push(wa(u[f]));return l}function If(t,i){var u=Gi(t,i),l=ti(t,i);if(!u)return l;if(!l)return u;for(var f=0;f<u.length;++f){var m=u[f],S=l[f];if(m&&S){e:for(var P=0;P<S.length;++P){for(var R=S[P],j=0;j<m.length;++j)if(m[j].marker==R.marker)continue e;m.push(R)}}else S&&(u[f]=S)}return u}function Ci(t,i,u){for(var l=[],f=0;f<t.length;++f){var m=t[f];if(m.ranges){l.push(u?mn.prototype.deepCopy.call(m):m);continue}var S=m.changes,P=[];l.push({changes:P});for(var R=0;R<S.length;++R){var j=S[R],se=void 0;if(P.push({from:j.from,to:j.to,text:j.text}),i)for(var de in j)(se=de.match(/^spans_(\d+)$/))&&Se(i,Number(se[1]))>-1&&(We(P)[de]=j[de],delete j[de])}}return l}function ks(t,i,u,l){if(l){var f=t.anchor;if(u){var m=oe(i,f)<0;m!=oe(u,f)<0?(f=i,i=u):m!=oe(i,u)<0&&(i=u)}return new Qt(f,i)}else return new Qt(u||i,i)}function $i(t,i,u,l,f){f==null&&(f=t.cm&&(t.cm.display.shift||t.extend)),Yr(t,new mn([ks(t.sel.primary(),i,u,f)],0),l)}function Fs(t,i,u){for(var l=[],f=t.cm&&(t.cm.display.shift||t.extend),m=0;m<t.sel.ranges.length;m++)l[m]=ks(t.sel.ranges[m],i[m],null,f);var S=$n(t.cm,l,t.sel.primIndex);Yr(t,S,u)}function _l(t,i,u,l){var f=t.sel.ranges.slice(0);f[i]=u,Yr(t,$n(t.cm,f,t.sel.primIndex),l)}function kf(t,i,u,l){Yr(t,Ui(i,u),l)}function Cd(t,i,u){var l={ranges:i.ranges,update:function(f){this.ranges=[];for(var m=0;m<f.length;m++)this.ranges[m]=new Qt(ft(t,f[m].anchor),ft(t,f[m].head))},origin:u&&u.origin};return Ke(t,"beforeSelectionChange",t,l),t.cm&&Ke(t.cm,"beforeSelectionChange",t.cm,l),l.ranges!=i.ranges?$n(t.cm,l.ranges,l.ranges.length-1):i}function Ff(t,i,u){var l=t.history.done,f=We(l);f&&f.ranges?(l[l.length-1]=i,Rs(t,i,u)):Yr(t,i,u)}function Yr(t,i,u){Rs(t,i,u),qa(t,t.sel,t.cm?t.cm.curOp.id:NaN,u)}function Rs(t,i,u){(_t(t,"beforeSelectionChange")||t.cm&&_t(t.cm,"beforeSelectionChange"))&&(i=Cd(t,i,u));var l=u&&u.bias||(oe(i.primary().head,t.sel.primary().head)<0?-1:1);Rf(t,Ls(t,i,l,!0)),!(u&&u.scroll===!1)&&t.cm&&t.cm.getOption("readOnly")!="nocursor"&&Xa(t.cm)}function Rf(t,i){i.equals(t.sel)||(t.sel=i,t.cm&&(t.cm.curOp.updateInput=1,t.cm.curOp.selectionChanged=!0,nt(t.cm)),Lr(t,"cursorActivity",t))}function Ms(t){Rf(t,Ls(t,t.sel,null,!1))}function Ls(t,i,u,l){for(var f,m=0;m<i.ranges.length;m++){var S=i.ranges[m],P=i.ranges.length==t.sel.ranges.length&&t.sel.ranges[m],R=eu(t,S.anchor,P&&P.anchor,u,l),j=S.head==S.anchor?R:eu(t,S.head,P&&P.head,u,l);(f||R!=S.anchor||j!=S.head)&&(f||(f=i.ranges.slice(0,m)),f[m]=new Qt(R,j))}return f?$n(t.cm,f,i.primIndex):i}function eo(t,i,u,l,f){var m=ut(t,i.line);if(m.markedSpans)for(var S=0;S<m.markedSpans.length;++S){var P=m.markedSpans[S],R=P.marker,j="selectLeft"in R?!R.selectLeft:R.inclusiveLeft,se="selectRight"in R?!R.selectRight:R.inclusiveRight;if((P.from==null||(j?P.from<=i.ch:P.from<i.ch))&&(P.to==null||(se?P.to>=i.ch:P.to>i.ch))){if(f&&(Ke(R,"beforeCursorEnter"),R.explicitlyCleared))if(m.markedSpans){--S;continue}else break;if(!R.atomic)continue;if(u){var de=R.find(l<0?1:-1),we=void 0;if((l<0?se:j)&&(de=Mf(t,de,-l,de&&de.line==i.line?m:null)),de&&de.line==i.line&&(we=oe(de,u))&&(l<0?we<0:we>0))return eo(t,de,i,l,f)}var ye=R.find(l<0?-1:1);return(l<0?j:se)&&(ye=Mf(t,ye,l,ye.line==i.line?m:null)),ye?eo(t,ye,i,l,f):null}}return i}function eu(t,i,u,l,f){var m=l||1,S=eo(t,i,u,m,f)||!f&&eo(t,i,u,m,!0)||eo(t,i,u,-m,f)||!f&&eo(t,i,u,-m,!0);return S||(t.cantEdit=!0,D(t.first,0))}function Mf(t,i,u,l){return u<0&&i.ch==0?i.line>t.first?ft(t,D(i.line-1)):null:u>0&&i.ch==(l||ut(t,i.line)).text.length?i.line<t.first+t.size-1?D(i.line+1,0):null:new D(i.line,i.ch+u)}function tu(t){t.setSelection(D(t.firstLine(),0),D(t.lastLine()),tt)}function ir(t,i,u){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return u&&(l.update=function(f,m,S,P){f&&(l.from=ft(t,f)),m&&(l.to=ft(t,m)),S&&(l.text=S),P!==void 0&&(l.origin=P)}),Ke(t,"beforeChange",t,l),t.cm&&Ke(t.cm,"beforeChange",t.cm,l),l.canceled?(t.cm&&(t.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function to(t,i,u){if(t.cm){if(!t.cm.curOp)return Sr(t.cm,to)(t,i,u);if(t.cm.state.suppressEdits)return}if(!((_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"))&&(i=ir(t,i,!0),!i))){var l=vl&&!u&&Ju(t,i.from,i.to);if(l)for(var f=l.length-1;f>=0;--f)ru(t,{from:l[f].from,to:l[f].to,text:f?[""]:i.text,origin:i.origin});else ru(t,i)}}function ru(t,i){if(!(i.text.length==1&&i.text[0]==""&&oe(i.from,i.to)==0)){var u=Jl(t,i);Er(t,i,u,t.cm?t.cm.curOp.id:NaN),Bo(t,i,u,ti(t,i));var l=[];oi(t,function(f,m){!m&&Se(l,f.history)==-1&&(Df(f.history,i),l.push(f.history)),Bo(f,i,null,ti(f,i))})}}function Ns(t,i,u){var l=t.cm&&t.cm.state.suppressEdits;if(!(l&&!u)){for(var f=t.history,m,S=t.sel,P=i=="undo"?f.done:f.undone,R=i=="undo"?f.undone:f.done,j=0;j<P.length&&(m=P[j],!(u?m.ranges&&!m.equals(t.sel):!m.ranges));j++);if(j!=P.length){for(f.lastOrigin=f.lastSelOrigin=null;;)if(m=P.pop(),m.ranges){if(Is(m,R),u&&!m.equals(t.sel)){Yr(t,m,{clearRedo:!1});return}S=m}else if(l){P.push(m);return}else break;var se=[];Is(S,R),R.push({changes:se,generation:f.generation}),f.generation=m.generation||++f.maxGeneration;for(var de=_t(t,"beforeChange")||t.cm&&_t(t.cm,"beforeChange"),we=function(Ne){var ze=m.changes[Ne];if(ze.origin=i,de&&!ir(t,ze,!1))return P.length=0,{};se.push(No(t,ze));var Ye=Ne?Jl(t,ze):We(P);Bo(t,ze,Ye,If(t,ze)),!Ne&&t.cm&&t.cm.scrollIntoView({from:ze.from,to:Wi(ze)});var Ze=[];oi(t,function(Je,rt){!rt&&Se(Ze,Je.history)==-1&&(Df(Je.history,ze),Ze.push(Je.history)),Bo(Je,ze,null,If(Je,ze))})},ye=m.changes.length-1;ye>=0;--ye){var Ie=we(ye);if(Ie)return Ie.v}}}}function Do(t,i){if(i!=0&&(t.first+=i,t.sel=new mn(Ot(t.sel.ranges,function(f){return new Qt(D(f.anchor.line+i,f.anchor.ch),D(f.head.line+i,f.head.ch))}),t.sel.primIndex),t.cm)){rn(t.cm,t.first,t.first-i,i);for(var u=t.cm.display,l=u.viewFrom;l<u.viewTo;l++)Sn(t.cm,l,"gutter")}}function Bo(t,i,u,l){if(t.cm&&!t.cm.curOp)return Sr(t.cm,Bo)(t,i,u,l);if(i.to.line<t.first){Do(t,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>t.lastLine())){if(i.from.line<t.first){var f=i.text.length-1-(t.first-i.from.line);Do(t,f),i={from:D(t.first,0),to:D(i.to.line+f,i.to.ch),text:[We(i.text)],origin:i.origin}}var m=t.lastLine();i.to.line>m&&(i={from:i.from,to:D(m,ut(t,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=bi(t,i.from,i.to),u||(u=Jl(t,i)),t.cm?Ed(t.cm,i,l):cn(t,i,l),Rs(t,u,tt),t.cantEdit&&eu(t,D(t.firstLine(),0))&&(t.cantEdit=!1)}}function Ed(t,i,u){var l=t.doc,f=t.display,m=i.from,S=i.to,P=!1,R=m.line;t.options.lineWrapping||(R=Kt(Tn(ut(l,m.line))),l.iter(R,S.line+1,function(ye){if(ye==f.maxLine)return P=!0,!0})),l.sel.contains(i.from,i.to)>-1&&nt(t),cn(l,i,u,Fl(t)),t.options.lineWrapping||(l.iter(R,m.line+i.text.length,function(ye){var Ie=bo(ye);Ie>f.maxLineLength&&(f.maxLine=ye,f.maxLineLength=Ie,f.maxLineChanged=!0,P=!1)}),P&&(t.curOp.updateMaxLine=!0)),Yc(l,m.line),Mo(t,400);var j=i.text.length-(S.line-m.line)-1;i.full?rn(t):m.line==S.line&&i.text.length==1&&!Ps(t.doc,i)?Sn(t,m.line,"text"):rn(t,m.line,S.line+1,j);var se=_t(t,"changes"),de=_t(t,"change");if(de||se){var we={from:m,to:S,text:i.text,removed:i.removed,origin:i.origin};de&&Lr(t,"change",t,we),se&&(t.curOp.changeObjs||(t.curOp.changeObjs=[])).push(we)}t.display.selForContextMenu=null}function ro(t,i,u,l,f){var m;l||(l=u),oe(l,u)<0&&(m=[l,u],u=m[0],l=m[1]),typeof i=="string"&&(i=t.splitLines(i)),to(t,{from:u,to:l,text:i,origin:f})}function Lf(t,i,u,l){u<t.line?t.line+=l:i<t.line&&(t.line=i,t.ch=0)}function Nf(t,i,u,l){for(var f=0;f<t.length;++f){var m=t[f],S=!0;if(m.ranges){m.copied||(m=t[f]=m.deepCopy(),m.copied=!0);for(var P=0;P<m.ranges.length;P++)Lf(m.ranges[P].anchor,i,u,l),Lf(m.ranges[P].head,i,u,l);continue}for(var R=0;R<m.changes.length;++R){var j=m.changes[R];if(u<j.from.line)j.from=D(j.from.line+l,j.from.ch),j.to=D(j.to.line+l,j.to.ch);else if(i<=j.to.line){S=!1;break}}S||(t.splice(0,f+1),f=0)}}function Df(t,i){var u=i.from.line,l=i.to.line,f=i.text.length-(l-u)-1;Nf(t.done,u,l,f),Nf(t.undone,u,l,f)}function no(t,i,u,l){var f=i,m=i;return typeof i=="number"?m=ut(t,tr(t,i)):f=Kt(i),f==null?null:(l(m,f)&&t.cm&&Sn(t.cm,f,u),m)}function Aa(t){this.lines=t,this.parent=null;for(var i=0,u=0;u<t.length;++u)t[u].parent=this,i+=t[u].height;this.height=i}Aa.prototype={chunkSize:function(){return this.lines.length},removeInner:function(t,i){for(var u=t,l=t+i;u<l;++u){var f=this.lines[u];this.height-=f.height,Wa(f),Lr(f,"delete")}this.lines.splice(t,i)},collapse:function(t){t.push.apply(t,this.lines)},insertInner:function(t,i,u){this.height+=u,this.lines=this.lines.slice(0,t).concat(i).concat(this.lines.slice(t));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(t,i,u){for(var l=t+i;t<l;++t)if(u(this.lines[t]))return!0}};function Ca(t){this.children=t;for(var i=0,u=0,l=0;l<t.length;++l){var f=t[l];i+=f.chunkSize(),u+=f.height,f.parent=this}this.size=i,this.height=u,this.parent=null}Ca.prototype={chunkSize:function(){return this.size},removeInner:function(t,i){this.size-=i;for(var u=0;u<this.children.length;++u){var l=this.children[u],f=l.chunkSize();if(t<f){var m=Math.min(i,f-t),S=l.height;if(l.removeInner(t,m),this.height-=S-l.height,f==m&&(this.children.splice(u--,1),l.parent=null),(i-=m)==0)break;t=0}else t-=f}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Aa))){var P=[];this.collapse(P),this.children=[new Aa(P)],this.children[0].parent=this}},collapse:function(t){for(var i=0;i<this.children.length;++i)this.children[i].collapse(t)},insertInner:function(t,i,u){this.size+=i.length,this.height+=u;for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<=m){if(f.insertInner(t,i,u),f.lines&&f.lines.length>50){for(var S=f.lines.length%25+25,P=S;P<f.lines.length;){var R=new Aa(f.lines.slice(P,P+=25));f.height-=R.height,this.children.splice(++l,0,R),R.parent=this}f.lines=f.lines.slice(0,S),this.maybeSpill()}break}t-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var t=this;do{var i=t.children.splice(t.children.length-5,5),u=new Ca(i);if(t.parent){t.size-=u.size,t.height-=u.height;var f=Se(t.parent.children,t);t.parent.children.splice(f+1,0,u)}else{var l=new Ca(t.children);l.parent=t,t.children=[l,u],t=l}u.parent=t.parent}while(t.children.length>10);t.parent.maybeSpill()}},iterN:function(t,i,u){for(var l=0;l<this.children.length;++l){var f=this.children[l],m=f.chunkSize();if(t<m){var S=Math.min(i,m-t);if(f.iterN(t,S,u))return!0;if((i-=S)==0)break;t=0}else t-=m}}};var jo=function(t,i,u){if(u)for(var l in u)u.hasOwnProperty(l)&&(this[l]=u[l]);this.doc=t,this.node=i};jo.prototype.clear=function(){var t=this.doc.cm,i=this.line.widgets,u=this.line,l=Kt(u);if(!(l==null||!i)){for(var f=0;f<i.length;++f)i[f]==this&&i.splice(f--,1);i.length||(u.widgets=null);var m=$a(this);En(u,Math.max(0,u.height-m)),t&&(gn(t,function(){Bf(t,u,-m),Sn(t,l,"widget")}),Lr(t,"lineWidgetCleared",t,this,l))}},jo.prototype.changed=function(){var t=this,i=this.height,u=this.doc.cm,l=this.line;this.height=null;var f=$a(this)-i;!f||(Li(this.doc,l)||En(l,l.height+f),u&&gn(u,function(){u.curOp.forceUpdate=!0,Bf(u,l,f),Lr(u,"lineWidgetChanged",u,t,Kt(l))}))},lr(jo);function Bf(t,i,u){wi(i)<(t.curOp&&t.curOp.scrollTop||t.doc.scrollTop)&&jl(t,u)}function Od(t,i,u,l){var f=new jo(t,u,l),m=t.cm;return m&&f.noHScroll&&(m.display.alignWidgets=!0),no(t,i,"widget",function(S){var P=S.widgets||(S.widgets=[]);if(f.insertAt==null?P.push(f):P.splice(Math.min(P.length,Math.max(0,f.insertAt)),0,f),f.line=S,m&&!Li(t,S)){var R=wi(S)<t.scrollTop;En(S,S.height+$a(f)),R&&jl(m,f.height),m.curOp.forceUpdate=!0}return!0}),m&&Lr(m,"lineWidgetAdded",m,f,typeof i=="number"?i:Kt(i)),f}var nu=0,Pn=function(t,i){this.lines=[],this.type=i,this.doc=t,this.id=++nu};Pn.prototype.clear=function(){if(!this.explicitlyCleared){var t=this.doc.cm,i=t&&!t.curOp;if(i&&Vi(t),_t(this,"clear")){var u=this.find();u&&Lr(this,"clear",u.from,u.to)}for(var l=null,f=null,m=0;m<this.lines.length;++m){var S=this.lines[m],P=go(S.markedSpans,this);t&&!this.collapsed?Sn(t,Kt(S),"text"):t&&(P.to!=null&&(f=Kt(S)),P.from!=null&&(l=Kt(S))),S.markedSpans=Qc(S.markedSpans,P),P.from==null&&this.collapsed&&!Li(this.doc,S)&&t&&En(S,ga(t.display))}if(t&&this.collapsed&&!t.options.lineWrapping)for(var R=0;R<this.lines.length;++R){var j=Tn(this.lines[R]),se=bo(j);se>t.display.maxLineLength&&(t.display.maxLine=j,t.display.maxLineLength=se,t.display.maxLineChanged=!0)}l!=null&&t&&this.collapsed&&rn(t,l,f+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,t&&Ms(t.doc)),t&&Lr(t,"markerCleared",t,this,l,f),i&&xa(t),this.parent&&this.parent.clear()}},Pn.prototype.find=function(t,i){t==null&&this.type=="bookmark"&&(t=1);for(var u,l,f=0;f<this.lines.length;++f){var m=this.lines[f],S=go(m.markedSpans,this);if(S.from!=null&&(u=D(i?m:Kt(m),S.from),t==-1))return u;if(S.to!=null&&(l=D(i?m:Kt(m),S.to),t==1))return l}return u&&{from:u,to:l}},Pn.prototype.changed=function(){var t=this,i=this.find(-1,!0),u=this,l=this.doc.cm;!i||!l||gn(l,function(){var f=i.line,m=Kt(i.line),S=Cl(l,m);if(S&&(El(S),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Li(u.doc,f)&&u.height!=null){var P=u.height;u.height=null;var R=$a(u)-P;R&&En(f,f.height+R)}Lr(l,"markerChanged",l,t)})},Pn.prototype.attachLine=function(t){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||Se(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(t)},Pn.prototype.detachLine=function(t){if(this.lines.splice(Se(this.lines,t),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},lr(Pn);function Ea(t,i,u,l,f){if(l&&l.shared)return Td(t,i,u,l,f);if(t.cm&&!t.cm.curOp)return Sr(t.cm,Ea)(t,i,u,l,f);var m=new Pn(t,f),S=oe(i,u);if(l&&Ct(l,m,!1),S>0||S==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=X("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(yl(t,i.line,i,u,m)||i.line!=u.line&&yl(t,u.line,i,u,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");Xc()}m.addToHistory&&Er(t,{from:i,to:u,origin:"markText"},t.sel,NaN);var P=i.line,R=t.cm,j;if(t.iter(P,u.line+1,function(de){R&&m.collapsed&&!R.options.lineWrapping&&Tn(de)==R.display.maxLine&&(j=!0),m.collapsed&&P!=i.line&&En(de,0),Zc(de,new vo(m,P==i.line?i.ch:null,P==u.line?u.ch:null),t.cm&&t.cm.curOp),++P}),m.collapsed&&t.iter(i.line,u.line+1,function(de){Li(t,de)&&En(de,0)}),m.clearOnEnter&&ce(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(Jc(),(t.history.done.length||t.history.undone.length)&&t.clearHistory()),m.collapsed&&(m.id=++nu,m.atomic=!0),R){if(j&&(R.curOp.updateMaxLine=!0),m.collapsed)rn(R,i.line,u.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var se=i.line;se<=u.line;se++)Sn(R,se,"text");m.atomic&&Ms(R.doc),Lr(R,"markerAdded",R,m)}return m}var Kn=function(t,i){this.markers=t,this.primary=i;for(var u=0;u<t.length;++u)t[u].parent=this};Kn.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var t=0;t<this.markers.length;++t)this.markers[t].clear();Lr(this,"clear")}},Kn.prototype.find=function(t,i){return this.primary.find(t,i)},lr(Kn);function Td(t,i,u,l,f){l=Ct(l),l.shared=!1;var m=[Ea(t,i,u,l,f)],S=m[0],P=l.widgetNode;return oi(t,function(R){P&&(l.widgetNode=P.cloneNode(!0)),m.push(Ea(R,ft(R,i),ft(R,u),l,f));for(var j=0;j<R.linked.length;++j)if(R.linked[j].isParent)return;S=We(m)}),new Kn(m,S)}function iu(t){return t.findMarks(D(t.first,0),t.clipPos(D(t.lastLine())),function(i){return i.parent})}function Pd(t,i){for(var u=0;u<i.length;u++){var l=i[u],f=l.find(),m=t.clipPos(f.from),S=t.clipPos(f.to);if(oe(m,S)){var P=Ea(t,m,S,l.primary,l.primary.type);l.markers.push(P),P.parent=l}}}function jf(t){for(var i=function(l){var f=t[l],m=[f.primary.doc];oi(f.primary.doc,function(R){return m.push(R)});for(var S=0;S<f.markers.length;S++){var P=f.markers[S];Se(m,P.doc)==-1&&(P.parent=null,f.markers.splice(S--,1))}},u=0;u<t.length;u++)i(u)}var Id=0,nn=function(t,i,u,l,f){if(!(this instanceof nn))return new nn(t,i,u,l,f);u==null&&(u=0),Ca.call(this,[new Aa([new fa("",null)])]),this.first=u,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=u;var m=D(u,0);this.sel=Ui(m),this.history=new Zl(null),this.id=++Id,this.modeOption=i,this.lineSep=l,this.direction=f=="rtl"?"rtl":"ltr",this.extend=!1,typeof t=="string"&&(t=this.splitLines(t)),cn(this,{from:m,to:m,text:t}),Yr(this,Ui(m),tt)};nn.prototype=Qe(Ca.prototype,{constructor:nn,iter:function(t,i,u){u?this.iterN(t-this.first,i-t,u):this.iterN(this.first,this.first+this.size,t)},insert:function(t,i){for(var u=0,l=0;l<i.length;++l)u+=i[l].height;this.insertInner(t-this.first,i,u)},remove:function(t,i){this.removeInner(t-this.first,i)},getValue:function(t){var i=aa(this,this.first,this.first+this.size);return t===!1?i:i.join(t||this.lineSeparator())},setValue:Vr(function(t){var i=D(this.first,0),u=this.first+this.size-1;to(this,{from:i,to:D(u,ut(this,u).text.length),text:this.splitLines(t),origin:"setValue",full:!0},!0),this.cm&&Io(this.cm,0,0),Yr(this,Ui(i),tt)}),replaceRange:function(t,i,u,l){i=ft(this,i),u=u?ft(this,u):i,ro(this,t,i,u,l)},getRange:function(t,i,u){var l=bi(this,ft(this,t),ft(this,i));return u===!1?l:u===""?l.join(""):l.join(u||this.lineSeparator())},getLine:function(t){var i=this.getLineHandle(t);return i&&i.text},getLineHandle:function(t){if(oa(this,t))return ut(this,t)},getLineNumber:function(t){return Kt(t)},getLineHandleVisualStart:function(t){return typeof t=="number"&&(t=ut(this,t)),Tn(t)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(t){return ft(this,t)},getCursor:function(t){var i=this.sel.primary(),u;return t==null||t=="head"?u=i.head:t=="anchor"?u=i.anchor:t=="end"||t=="to"||t===!1?u=i.to():u=i.from(),u},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:Vr(function(t,i,u){kf(this,ft(this,typeof t=="number"?D(t,i||0):t),null,u)}),setSelection:Vr(function(t,i,u){kf(this,ft(this,t),ft(this,i||t),u)}),extendSelection:Vr(function(t,i,u){$i(this,ft(this,t),i&&ft(this,i),u)}),extendSelections:Vr(function(t,i){Fs(this,as(this,t),i)}),extendSelectionsBy:Vr(function(t,i){var u=Ot(this.sel.ranges,t);Fs(this,as(this,u),i)}),setSelections:Vr(function(t,i,u){if(!!t.length){for(var l=[],f=0;f<t.length;f++)l[f]=new Qt(ft(this,t[f].anchor),ft(this,t[f].head||t[f].anchor));i==null&&(i=Math.min(t.length-1,this.sel.primIndex)),Yr(this,$n(this.cm,l,i),u)}}),addSelection:Vr(function(t,i,u){var l=this.sel.ranges.slice(0);l.push(new Qt(ft(this,t),ft(this,i||t))),Yr(this,$n(this.cm,l,l.length-1),u)}),getSelection:function(t){for(var i=this.sel.ranges,u,l=0;l<i.length;l++){var f=bi(this,i[l].from(),i[l].to());u=u?u.concat(f):f}return t===!1?u:u.join(t||this.lineSeparator())},getSelections:function(t){for(var i=[],u=this.sel.ranges,l=0;l<u.length;l++){var f=bi(this,u[l].from(),u[l].to());t!==!1&&(f=f.join(t||this.lineSeparator())),i[l]=f}return i},replaceSelection:function(t,i,u){for(var l=[],f=0;f<this.sel.ranges.length;f++)l[f]=t;this.replaceSelections(l,i,u||"+input")},replaceSelections:Vr(function(t,i,u){for(var l=[],f=this.sel,m=0;m<f.ranges.length;m++){var S=f.ranges[m];l[m]={from:S.from(),to:S.to(),text:this.splitLines(t[m]),origin:u}}for(var P=i&&i!="end"&&wd(this,l,i),R=l.length-1;R>=0;R--)to(this,l[R]);P?Ff(this,P):this.cm&&Xa(this.cm)}),undo:Vr(function(){Ns(this,"undo")}),redo:Vr(function(){Ns(this,"redo")}),undoSelection:Vr(function(){Ns(this,"undo",!0)}),redoSelection:Vr(function(){Ns(this,"redo",!0)}),setExtending:function(t){this.extend=t},getExtending:function(){return this.extend},historySize:function(){for(var t=this.history,i=0,u=0,l=0;l<t.done.length;l++)t.done[l].ranges||++i;for(var f=0;f<t.undone.length;f++)t.undone[f].ranges||++u;return{undo:i,redo:u}},clearHistory:function(){var t=this;this.history=new Zl(this.history),oi(this,function(i){return i.history=t.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(t){return t&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(t){return this.history.generation==(t||this.cleanGeneration)},getHistory:function(){return{done:Ci(this.history.done),undone:Ci(this.history.undone)}},setHistory:function(t){var i=this.history=new Zl(this.history);i.done=Ci(t.done.slice(0),null,!0),i.undone=Ci(t.undone.slice(0),null,!0)},setGutterMarker:Vr(function(t,i,u){return no(this,t,"gutter",function(l){var f=l.gutterMarkers||(l.gutterMarkers={});return f[i]=u,!u&&pr(f)&&(l.gutterMarkers=null),!0})}),clearGutter:Vr(function(t){var i=this;this.iter(function(u){u.gutterMarkers&&u.gutterMarkers[t]&&no(i,u,"gutter",function(){return u.gutterMarkers[t]=null,pr(u.gutterMarkers)&&(u.gutterMarkers=null),!0})})}),lineInfo:function(t){var i;if(typeof t=="number"){if(!oa(this,t)||(i=t,t=ut(this,t),!t))return null}else if(i=Kt(t),i==null)return null;return{line:i,handle:t,text:t.text,gutterMarkers:t.gutterMarkers,textClass:t.textClass,bgClass:t.bgClass,wrapClass:t.wrapClass,widgets:t.widgets}},addLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[f])l[f]=u;else{if(K(u).test(l[f]))return!1;l[f]+=" "+u}return!0})}),removeLineClass:Vr(function(t,i,u){return no(this,t,i=="gutter"?"gutter":"class",function(l){var f=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[f];if(m)if(u==null)l[f]=null;else{var S=m.match(K(u));if(!S)return!1;var P=S.index+S[0].length;l[f]=m.slice(0,S.index)+(!S.index||P==m.length?"":" ")+m.slice(P)||null}else return!1;return!0})}),addLineWidget:Vr(function(t,i,u){return Od(this,t,i,u)}),removeLineWidget:function(t){t.clear()},markText:function(t,i,u){return Ea(this,ft(this,t),ft(this,i),u,u&&u.type||"range")},setBookmark:function(t,i){var u={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return t=ft(this,t),Ea(this,t,t,u,"bookmark")},findMarksAt:function(t){t=ft(this,t);var i=[],u=ut(this,t.line).markedSpans;if(u)for(var l=0;l<u.length;++l){var f=u[l];(f.from==null||f.from<=t.ch)&&(f.to==null||f.to>=t.ch)&&i.push(f.marker.parent||f.marker)}return i},findMarks:function(t,i,u){t=ft(this,t),i=ft(this,i);var l=[],f=t.line;return this.iter(t.line,i.line+1,function(m){var S=m.markedSpans;if(S)for(var P=0;P<S.length;P++){var R=S[P];!(R.to!=null&&f==t.line&&t.ch>=R.to||R.from==null&&f!=t.line||R.from!=null&&f==i.line&&R.from>=i.ch)&&(!u||u(R.marker))&&l.push(R.marker.parent||R.marker)}++f}),l},getAllMarks:function(){var t=[];return this.iter(function(i){var u=i.markedSpans;if(u)for(var l=0;l<u.length;++l)u[l].from!=null&&t.push(u[l].marker)}),t},posFromIndex:function(t){var i,u=this.first,l=this.lineSeparator().length;return this.iter(function(f){var m=f.text.length+l;if(m>t)return i=t,!0;t-=m,++u}),ft(this,D(u,i))},indexFromPos:function(t){t=ft(this,t);var i=t.ch;if(t.line<this.first||t.ch<0)return 0;var u=this.lineSeparator().length;return this.iter(this.first,t.line,function(l){i+=l.text.length+u}),i},copy:function(t){var i=new nn(aa(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,t&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(t){t||(t={});var i=this.first,u=this.first+this.size;t.from!=null&&t.from>i&&(i=t.from),t.to!=null&&t.to<u&&(u=t.to);var l=new nn(aa(this,i,u),t.mode||this.modeOption,i,this.lineSep,this.direction);return t.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:t.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:t.sharedHist}],Pd(l,iu(this)),l},unlinkDoc:function(t){if(t instanceof br&&(t=t.doc),this.linked)for(var i=0;i<this.linked.length;++i){var u=this.linked[i];if(u.doc==t){this.linked.splice(i,1),t.unlinkDoc(this),jf(iu(this));break}}if(t.history==this.history){var l=[t.id];oi(t,function(f){return l.push(f.id)},!0),t.history=new Zl(null),t.history.done=Ci(this.history.done,l),t.history.undone=Ci(this.history.undone,l)}},iterLinkedDocs:function(t){oi(this,t)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(t){return this.lineSep?t.split(this.lineSep):_n(t)},lineSeparator:function(){return this.lineSep||`
23
+ `},setDirection:Vr(function(t){t!="rtl"&&(t="ltr"),t!=this.direction&&(this.direction=t,this.iter(function(i){return i.order=null}),this.cm&&Tf(this.cm))})}),nn.prototype.eachLine=nn.prototype.iter;var Vo=0;function kd(t){var i=this;if(Vf(i),!(lt(i,t)||Wn(i.display,t))){At(t),T&&(Vo=+new Date);var u=Ai(i,t,!0),l=t.dataTransfer.files;if(!(!u||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var f=l.length,m=Array(f),S=0,P=function(){++S==f&&Sr(i,function(){u=ft(i.doc,u);var ye={from:u,to:u,text:i.doc.splitLines(m.filter(function(Ie){return Ie!=null}).join(i.doc.lineSeparator())),origin:"paste"};to(i.doc,ye),Ff(i.doc,Ui(ft(i.doc,u),ft(i.doc,Wi(ye))))})()},R=function(ye,Ie){if(i.options.allowDropFileTypes&&Se(i.options.allowDropFileTypes,ye.type)==-1){P();return}var Ne=new FileReader;Ne.onerror=function(){return P()},Ne.onload=function(){var ze=Ne.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(ze)){P();return}m[Ie]=ze,P()},Ne.readAsText(ye)},j=0;j<l.length;j++)R(l[j],j);else{if(i.state.draggingText&&i.doc.sel.contains(u)>-1){i.state.draggingText(t),setTimeout(function(){return i.display.input.focus()},20);return}try{var se=t.dataTransfer.getData("Text");if(se){var de;if(i.state.draggingText&&!i.state.draggingText.copy&&(de=i.listSelections()),Rs(i.doc,Ui(u,u)),de)for(var we=0;we<de.length;++we)ro(i.doc,"",de[we].anchor,de[we].head,"drag");i.replaceSelection(se,"around","paste"),i.display.input.focus()}}catch(ye){}}}}function Ds(t,i){if(T&&(!t.state.draggingText||+new Date-Vo<100)){$r(i);return}if(!(lt(t,i)||Wn(t.display,i))&&(i.dataTransfer.setData("Text",t.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!ie)){var u=_("img",null,null,"position: fixed; left: 0; top: 0;");u.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",ne&&(u.width=u.height=1,t.display.wrapper.appendChild(u),u._top=u.offsetTop),i.dataTransfer.setDragImage(u,0,0),ne&&u.parentNode.removeChild(u)}}function au(t,i){var u=Ai(t,i);if(!!u){var l=document.createDocumentFragment();Ll(t,u,l),t.display.dragCursor||(t.display.dragCursor=_("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),t.display.lineSpace.insertBefore(t.display.dragCursor,t.display.cursorDiv)),he(t.display.dragCursor,l)}}function Vf(t){t.display.dragCursor&&(t.display.lineSpace.removeChild(t.display.dragCursor),t.display.dragCursor=null)}function Uf(t){if(!!document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),u=[],l=0;l<i.length;l++){var f=i[l].CodeMirror;f&&u.push(f)}u.length&&u[0].operation(function(){for(var m=0;m<u.length;m++)t(u[m])})}}var Wf=!1;function Hf(){Wf||(zf(),Wf=!0)}function zf(){var t;ce(window,"resize",function(){t==null&&(t=setTimeout(function(){t=null,Uf(Fd)},100))}),ce(window,"blur",function(){return Uf(Ya)})}function Fd(t){var i=t.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,t.setSize()}for(var Ki={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Uo=0;Uo<10;Uo++)Ki[Uo+48]=Ki[Uo+96]=String(Uo);for(var Bs=65;Bs<=90;Bs++)Ki[Bs]=String.fromCharCode(Bs);for(var Wo=1;Wo<=12;Wo++)Ki[Wo+111]=Ki[Wo+63235]="F"+Wo;var Ei={};Ei.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},Ei.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},Ei.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},Ei.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},Ei.default=k?Ei.macDefault:Ei.pcDefault;function Gf(t){var i=t.split(/-(?!$)/);t=i[i.length-1];for(var u,l,f,m,S=0;S<i.length-1;S++){var P=i[S];if(/^(cmd|meta|m)$/i.test(P))m=!0;else if(/^a(lt)?$/i.test(P))u=!0;else if(/^(c|ctrl|control)$/i.test(P))l=!0;else if(/^s(hift)?$/i.test(P))f=!0;else throw new Error("Unrecognized modifier name: "+P)}return u&&(t="Alt-"+t),l&&(t="Ctrl-"+t),m&&(t="Cmd-"+t),f&&(t="Shift-"+t),t}function Rd(t){var i={};for(var u in t)if(t.hasOwnProperty(u)){var l=t[u];if(/^(name|fallthrough|(de|at)tach)$/.test(u))continue;if(l=="..."){delete t[u];continue}for(var f=Ot(u.split(" "),Gf),m=0;m<f.length;m++){var S=void 0,P=void 0;m==f.length-1?(P=f.join(" "),S=l):(P=f.slice(0,m+1).join(" "),S="...");var R=i[P];if(!R)i[P]=S;else if(R!=S)throw new Error("Inconsistent bindings for "+P)}delete t[u]}for(var j in i)t[j]=i[j];return t}function Yi(t,i,u,l){i=In(i);var f=i.call?i.call(t,l):i[t];if(f===!1)return"nothing";if(f==="...")return"multi";if(f!=null&&u(f))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return Yi(t,i.fallthrough,u,l);for(var m=0;m<i.fallthrough.length;m++){var S=Yi(t,i.fallthrough[m],u,l);if(S)return S}}}function ou(t){var i=typeof t=="string"?t:Ki[t.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function $f(t,i,u){var l=t;return i.altKey&&l!="Alt"&&(t="Alt-"+t),(W?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(t="Ctrl-"+t),(W?i.ctrlKey:i.metaKey)&&l!="Mod"&&(t="Cmd-"+t),!u&&i.shiftKey&&l!="Shift"&&(t="Shift-"+t),t}function Oa(t,i){if(ne&&t.keyCode==34&&t.char)return!1;var u=Ki[t.keyCode];return u==null||t.altGraphKey?!1:(t.keyCode==3&&t.code&&(u=t.code),$f(u,t,i))}function In(t){return typeof t=="string"?Ei[t]:t}function Ta(t,i){for(var u=t.doc.sel.ranges,l=[],f=0;f<u.length;f++){for(var m=i(u[f]);l.length&&oe(m.from,We(l).to)<=0;){var S=l.pop();if(oe(S.from,m.from)<0){m.from=S.from;break}}l.push(m)}gn(t,function(){for(var P=l.length-1;P>=0;P--)ro(t.doc,"",l[P].from,l[P].to,"+delete");Xa(t)})}function su(t,i,u){var l=Mt(t.text,i+u,u);return l<0||l>t.text.length?null:l}function lu(t,i,u){var l=su(t,i.ch,u);return l==null?null:new D(i.line,l,u<0?"after":"before")}function uu(t,i,u,l,f){if(t){i.doc.direction=="rtl"&&(f=-f);var m=st(u,i.doc.direction);if(m){var S=f<0?We(m):m[0],P=f<0==(S.level==1),R=P?"after":"before",j;if(S.level>0||i.doc.direction=="rtl"){var se=ha(i,u);j=f<0?u.text.length-1:0;var de=ii(i,se,j).top;j=Tt(function(we){return ii(i,se,we).top==de},f<0==(S.level==1)?S.from:S.to-1,j),R=="before"&&(j=su(u,j,1))}else j=f<0?S.to:S.from;return new D(l,j,R)}}return new D(l,f<0?u.text.length:0,f<0?"before":"after")}function Kf(t,i,u,l){var f=st(i,t.doc.direction);if(!f)return lu(i,u,l);u.ch>=i.text.length?(u.ch=i.text.length,u.sticky="before"):u.ch<=0&&(u.ch=0,u.sticky="after");var m=gt(f,u.ch,u.sticky),S=f[m];if(t.doc.direction=="ltr"&&S.level%2==0&&(l>0?S.to>u.ch:S.from<u.ch))return lu(i,u,l);var P=function(Ye,Ze){return su(i,Ye instanceof D?Ye.ch:Ye,Ze)},R,j=function(Ye){return t.options.lineWrapping?(R=R||ha(t,i),Il(t,i,R,Ye)):{begin:0,end:i.text.length}},se=j(u.sticky=="before"?P(u,-1):u.ch);if(t.doc.direction=="rtl"||S.level==1){var de=S.level==1==l<0,we=P(u,de?1:-1);if(we!=null&&(de?we<=S.to&&we<=se.end:we>=S.from&&we>=se.begin)){var ye=de?"before":"after";return new D(u.line,we,ye)}}var Ie=function(Ye,Ze,Je){for(var rt=function(ur,Ur){return Ur?new D(u.line,P(ur,1),"before"):new D(u.line,ur,"after")};Ye>=0&&Ye<f.length;Ye+=Ze){var vt=f[Ye],pt=Ze>0==(vt.level!=1),Dt=pt?Je.begin:P(Je.end,-1);if(vt.from<=Dt&&Dt<vt.to||(Dt=pt?vt.from:P(vt.to,-1),Je.begin<=Dt&&Dt<Je.end))return rt(Dt,pt)}},Ne=Ie(m+l,l,se);if(Ne)return Ne;var ze=l>0?se.end:P(se.begin,-1);return ze!=null&&!(l>0&&ze==i.text.length)&&(Ne=Ie(l>0?0:f.length-1,l,j(ze)),Ne)?Ne:null}var Ho={selectAll:tu,singleSelection:function(t){return t.setSelection(t.getCursor("anchor"),t.getCursor("head"),tt)},killLine:function(t){return Ta(t,function(i){if(i.empty()){var u=ut(t.doc,i.head.line).text.length;return i.head.ch==u&&i.head.line<t.lastLine()?{from:i.head,to:D(i.head.line+1,0)}:{from:i.head,to:D(i.head.line,u)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(t){return Ta(t,function(i){return{from:D(i.from().line,0),to:ft(t.doc,D(i.to().line+1,0))}})},delLineLeft:function(t){return Ta(t,function(i){return{from:D(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(t){return Ta(t,function(i){var u=t.charCoords(i.head,"div").top+5,l=t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div");return{from:i.from(),to:l}})},undo:function(t){return t.undo()},redo:function(t){return t.redo()},undoSelection:function(t){return t.undoSelection()},redoSelection:function(t){return t.redoSelection()},goDocStart:function(t){return t.extendSelection(D(t.firstLine(),0))},goDocEnd:function(t){return t.extendSelection(D(t.lastLine()))},goLineStart:function(t){return t.extendSelectionsBy(function(i){return fu(t,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(t){return t.extendSelectionsBy(function(i){return du(t,i.head)},{origin:"+move",bias:1})},goLineEnd:function(t){return t.extendSelectionsBy(function(i){return cu(t,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:t.display.lineDiv.offsetWidth+100,top:u},"div")},St)},goLineLeft:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5;return t.coordsChar({left:0,top:u},"div")},St)},goLineLeftSmart:function(t){return t.extendSelectionsBy(function(i){var u=t.cursorCoords(i.head,"div").top+5,l=t.coordsChar({left:0,top:u},"div");return l.ch<t.getLine(l.line).search(/\S/)?du(t,i.head):l},St)},goLineUp:function(t){return t.moveV(-1,"line")},goLineDown:function(t){return t.moveV(1,"line")},goPageUp:function(t){return t.moveV(-1,"page")},goPageDown:function(t){return t.moveV(1,"page")},goCharLeft:function(t){return t.moveH(-1,"char")},goCharRight:function(t){return t.moveH(1,"char")},goColumnLeft:function(t){return t.moveH(-1,"column")},goColumnRight:function(t){return t.moveH(1,"column")},goWordLeft:function(t){return t.moveH(-1,"word")},goGroupRight:function(t){return t.moveH(1,"group")},goGroupLeft:function(t){return t.moveH(-1,"group")},goWordRight:function(t){return t.moveH(1,"word")},delCharBefore:function(t){return t.deleteH(-1,"codepoint")},delCharAfter:function(t){return t.deleteH(1,"char")},delWordBefore:function(t){return t.deleteH(-1,"word")},delWordAfter:function(t){return t.deleteH(1,"word")},delGroupBefore:function(t){return t.deleteH(-1,"group")},delGroupAfter:function(t){return t.deleteH(1,"group")},indentAuto:function(t){return t.indentSelection("smart")},indentMore:function(t){return t.indentSelection("add")},indentLess:function(t){return t.indentSelection("subtract")},insertTab:function(t){return t.replaceSelection(" ")},insertSoftTab:function(t){for(var i=[],u=t.listSelections(),l=t.options.tabSize,f=0;f<u.length;f++){var m=u[f].from(),S=Le(t.getLine(m.line),m.ch,l);i.push($t(l-S%l))}t.replaceSelections(i)},defaultTab:function(t){t.somethingSelected()?t.indentSelection("add"):t.execCommand("insertTab")},transposeChars:function(t){return gn(t,function(){for(var i=t.listSelections(),u=[],l=0;l<i.length;l++)if(!!i[l].empty()){var f=i[l].head,m=ut(t.doc,f.line).text;if(m){if(f.ch==m.length&&(f=new D(f.line,f.ch-1)),f.ch>0)f=new D(f.line,f.ch+1),t.replaceRange(m.charAt(f.ch-1)+m.charAt(f.ch-2),D(f.line,f.ch-2),f,"+transpose");else if(f.line>t.doc.first){var S=ut(t.doc,f.line-1).text;S&&(f=new D(f.line,1),t.replaceRange(m.charAt(0)+t.doc.lineSeparator()+S.charAt(S.length-1),D(f.line-1,S.length-1),f,"+transpose"))}}u.push(new Qt(f,f))}t.setSelections(u)})},newlineAndIndent:function(t){return gn(t,function(){for(var i=t.listSelections(),u=i.length-1;u>=0;u--)t.replaceRange(t.doc.lineSeparator(),i[u].anchor,i[u].head,"+input");i=t.listSelections();for(var l=0;l<i.length;l++)t.indentLine(i[l].from().line,null,!0);Xa(t)})},openLine:function(t){return t.replaceSelection(`
24
+ `,"start")},toggleOverwrite:function(t){return t.toggleOverwrite()}};function fu(t,i){var u=ut(t.doc,i),l=Tn(u);return l!=u&&(i=Kt(l)),uu(!0,t,l,i,1)}function cu(t,i){var u=ut(t.doc,i),l=ri(u);return l!=u&&(i=Kt(l)),uu(!0,t,u,i,-1)}function du(t,i){var u=fu(t,i.line),l=ut(t.doc,u.line),f=st(l,t.doc.direction);if(!f||f[0].level==0){var m=Math.max(u.ch,l.text.search(/\S/)),S=i.line==u.line&&i.ch<=m&&i.ch;return D(u.line,S?0:m,u.sticky)}return u}function zo(t,i,u){if(typeof i=="string"&&(i=Ho[i],!i))return!1;t.display.input.ensurePolled();var l=t.display.shift,f=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),u&&(t.display.shift=!1),f=i(t)!=$e}finally{t.display.shift=l,t.state.suppressEdits=!1}return f}function Md(t,i,u){for(var l=0;l<t.state.keyMaps.length;l++){var f=Yi(i,t.state.keyMaps[l],u,t);if(f)return f}return t.options.extraKeys&&Yi(i,t.options.extraKeys,u,t)||Yi(i,t.options.keyMap,u,t)}var Yf=new Ce;function Go(t,i,u,l){var f=t.state.keySeq;if(f){if(ou(i))return"handled";if(/\'$/.test(i)?t.state.keySeq=null:Yf.set(50,function(){t.state.keySeq==f&&(t.state.keySeq=null,t.display.input.reset())}),js(t,f+" "+i,u,l))return!0}return js(t,i,u,l)}function js(t,i,u,l){var f=Md(t,i,l);return f=="multi"&&(t.state.keySeq=i),f=="handled"&&Lr(t,"keyHandled",t,i,u),(f=="handled"||f=="multi")&&(At(u),Nl(t)),!!f}function Vs(t,i){var u=Oa(i,!0);return u?i.shiftKey&&!t.state.keySeq?Go(t,"Shift-"+u,i,function(l){return zo(t,l,!0)})||Go(t,u,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return zo(t,l)}):Go(t,u,i,function(l){return zo(t,l)}):!1}function Jf(t,i,u){return Go(t,"'"+u+"'",i,function(l){return zo(t,l,!0)})}var Us=null;function Xf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&(i.curOp.focus=Oe(Xe(i)),!lt(i,t))){T&&F<11&&t.keyCode==27&&(t.returnValue=!1);var u=t.keyCode;i.display.shift=u==16||t.shiftKey;var l=Vs(i,t);ne&&(Us=l?u:null,!l&&u==88&&!na&&(k?t.metaKey:t.ctrlKey)&&i.replaceSelection("",null,"cut")),d&&!k&&!l&&u==46&&t.shiftKey&&!t.ctrlKey&&document.execCommand&&document.execCommand("cut"),u==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&Ld(i)}}function Ld(t){var i=t.display.lineDiv;Ue(i,"CodeMirror-crosshair");function u(l){(l.keyCode==18||!l.altKey)&&(H(i,"CodeMirror-crosshair"),Be(document,"keyup",u),Be(document,"mouseover",u))}ce(document,"keyup",u),ce(document,"mouseover",u)}function Ws(t){t.keyCode==16&&(this.doc.sel.shift=!1),lt(this,t)}function Qf(t){var i=this;if(!(t.target&&t.target!=i.display.input.getField())&&!(Wn(i.display,t)||lt(i,t)||t.ctrlKey&&!t.altKey||k&&t.metaKey)){var u=t.keyCode,l=t.charCode;if(ne&&u==Us){Us=null,At(t);return}if(!(ne&&(!t.which||t.which<10)&&Vs(i,t))){var f=String.fromCharCode(l==null?u:l);f!="\b"&&(Jf(i,t,f)||i.display.input.onKeyPress(t))}}}var Nd=400,pu=function(t,i,u){this.time=t,this.pos=i,this.button=u};pu.prototype.compare=function(t,i,u){return this.time+Nd>t&&oe(i,this.pos)==0&&u==this.button};var $o,Ko;function Dd(t,i){var u=+new Date;return Ko&&Ko.compare(u,t,i)?($o=Ko=null,"triple"):$o&&$o.compare(u,t,i)?(Ko=new pu(u,t,i),$o=null,"double"):($o=new pu(u,t,i),Ko=null,"single")}function Hs(t){var i=this,u=i.display;if(!(lt(i,t)||u.activeTouch&&u.input.supportsTouch())){if(u.input.ensurePolled(),u.shift=t.shiftKey,Wn(u,t)){U||(u.scroller.draggable=!1,setTimeout(function(){return u.scroller.draggable=!0},100));return}if(!Gs(i,t)){var l=Ai(i,t),f=hi(t),m=l?Dd(l,f):"single";xt(i).focus(),f==1&&i.state.selectingText&&i.state.selectingText(t),!(l&&zs(i,f,l,m,t))&&(f==1?l?qf(i,l,m,t):Kr(t)==u.scroller&&At(t):f==2?(l&&$i(i.doc,l),setTimeout(function(){return u.input.focus()},20)):f==3&&(re?i.display.input.onContextMenu(t):bs(i)))}}}function zs(t,i,u,l,f){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Go(t,$f(m,f),f,function(S){if(typeof S=="string"&&(S=Ho[S]),!S)return!1;var P=!1;try{t.isReadOnly()&&(t.state.suppressEdits=!0),P=S(t,u)!=$e}finally{t.state.suppressEdits=!1}return P})}function Zf(t,i,u){var l=t.getOption("configureMouse"),f=l?l(t,i,u):{};if(f.unit==null){var m=V?u.shiftKey&&u.metaKey:u.altKey;f.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(f.extend==null||t.doc.extend)&&(f.extend=t.doc.extend||u.shiftKey),f.addNew==null&&(f.addNew=k?u.metaKey:u.ctrlKey),f.moveOnDrag==null&&(f.moveOnDrag=!(k?u.altKey:u.ctrlKey)),f}function qf(t,i,u,l){T?setTimeout(Pt(mf,t),0):t.curOp.focus=Oe(Xe(t));var f=Zf(t,u,l),m=t.doc.sel,S;t.options.dragDrop&&_r&&!t.isReadOnly()&&u=="single"&&(S=m.contains(i))>-1&&(oe((S=m.ranges[S]).from(),i)<0||i.xRel>0)&&(oe(S.to(),i)>0||i.xRel<0)?Bd(t,l,i,f):Pa(t,l,i,f)}function Bd(t,i,u,l){var f=t.display,m=!1,S=Sr(t,function(j){U&&(f.scroller.draggable=!1),t.state.draggingText=!1,t.state.delayingBlurEvent&&(t.hasFocus()?t.state.delayingBlurEvent=!1:bs(t)),Be(f.wrapper.ownerDocument,"mouseup",S),Be(f.wrapper.ownerDocument,"mousemove",P),Be(f.scroller,"dragstart",R),Be(f.scroller,"drop",S),m||(At(j),l.addNew||$i(t.doc,u,null,null,l.extend),U&&!ie||T&&F==9?setTimeout(function(){f.wrapper.ownerDocument.body.focus({preventScroll:!0}),f.input.focus()},20):f.input.focus())}),P=function(j){m=m||Math.abs(i.clientX-j.clientX)+Math.abs(i.clientY-j.clientY)>=10},R=function(){return m=!0};U&&(f.scroller.draggable=!0),t.state.draggingText=S,S.copy=!l.moveOnDrag,ce(f.wrapper.ownerDocument,"mouseup",S),ce(f.wrapper.ownerDocument,"mousemove",P),ce(f.scroller,"dragstart",R),ce(f.scroller,"drop",S),t.state.delayingBlurEvent=!0,setTimeout(function(){return f.input.focus()},20),f.scroller.dragDrop&&f.scroller.dragDrop()}function _f(t,i,u){if(u=="char")return new Qt(i,i);if(u=="word")return t.findWordAt(i);if(u=="line")return new Qt(D(i.line,0),ft(t.doc,D(i.line+1,0)));var l=u(t,i);return new Qt(l.from,l.to)}function Pa(t,i,u,l){T&&bs(t);var f=t.display,m=t.doc;At(i);var S,P,R=m.sel,j=R.ranges;if(l.addNew&&!l.extend?(P=m.sel.contains(u),P>-1?S=j[P]:S=new Qt(u,u)):(S=m.sel.primary(),P=m.sel.primIndex),l.unit=="rectangle")l.addNew||(S=new Qt(u,u)),u=Ai(t,i,!0,!0),P=-1;else{var se=_f(t,u,l.unit);l.extend?S=ks(S,se.anchor,se.head,l.extend):S=se}l.addNew?P==-1?(P=j.length,Yr(m,$n(t,j.concat([S]),P),{scroll:!1,origin:"*mouse"})):j.length>1&&j[P].empty()&&l.unit=="char"&&!l.extend?(Yr(m,$n(t,j.slice(0,P).concat(j.slice(P+1)),0),{scroll:!1,origin:"*mouse"}),R=m.sel):_l(m,P,S,_e):(P=0,Yr(m,new mn([S],0),_e),R=m.sel);var de=u;function we(Je){if(oe(de,Je)!=0)if(de=Je,l.unit=="rectangle"){for(var rt=[],vt=t.options.tabSize,pt=Le(ut(m,u.line).text,u.ch,vt),Dt=Le(ut(m,Je.line).text,Je.ch,vt),ur=Math.min(pt,Dt),Ur=Math.max(pt,Dt),wr=Math.min(u.line,Je.line),Gt=Math.min(t.lastLine(),Math.max(u.line,Je.line));wr<=Gt;wr++){var yn=ut(m,wr).text,Fr=It(yn,ur,vt);ur==Ur?rt.push(new Qt(D(wr,Fr),D(wr,Fr))):yn.length>Fr&&rt.push(new Qt(D(wr,Fr),D(wr,It(yn,Ur,vt))))}rt.length||rt.push(new Qt(u,u)),Yr(m,$n(t,R.ranges.slice(0,P).concat(rt),P),{origin:"*mouse",scroll:!1}),t.scrollIntoView(Je)}else{var L=S,Bt=_f(t,Je,l.unit),hr=L.anchor,ct;oe(Bt.anchor,hr)>0?(ct=Bt.head,hr=jt(L.from(),Bt.anchor)):(ct=Bt.anchor,hr=Ft(L.to(),Bt.head));var yr=R.ranges.slice(0);yr[P]=ec(t,new Qt(ft(m,hr),ct)),Yr(m,$n(t,yr,P),_e)}}var ye=f.wrapper.getBoundingClientRect(),Ie=0;function Ne(Je){var rt=++Ie,vt=Ai(t,Je,!0,l.unit=="rectangle");if(!!vt)if(oe(vt,de)!=0){t.curOp.focus=Oe(Xe(t)),we(vt);var pt=xs(f,m);(vt.line>=pt.to||vt.line<pt.from)&&setTimeout(Sr(t,function(){Ie==rt&&Ne(Je)}),150)}else{var Dt=Je.clientY<ye.top?-20:Je.clientY>ye.bottom?20:0;Dt&&setTimeout(Sr(t,function(){Ie==rt&&(f.scroller.scrollTop+=Dt,Ne(Je))}),50)}}function ze(Je){t.state.selectingText=!1,Ie=1/0,Je&&(At(Je),f.input.focus()),Be(f.wrapper.ownerDocument,"mousemove",Ye),Be(f.wrapper.ownerDocument,"mouseup",Ze),m.history.lastSelOrigin=null}var Ye=Sr(t,function(Je){Je.buttons===0||!hi(Je)?ze(Je):Ne(Je)}),Ze=Sr(t,ze);t.state.selectingText=Ze,ce(f.wrapper.ownerDocument,"mousemove",Ye),ce(f.wrapper.ownerDocument,"mouseup",Ze)}function ec(t,i){var u=i.anchor,l=i.head,f=ut(t.doc,u.line);if(oe(u,l)==0&&u.sticky==l.sticky)return i;var m=st(f);if(!m)return i;var S=gt(m,u.ch,u.sticky),P=m[S];if(P.from!=u.ch&&P.to!=u.ch)return i;var R=S+(P.from==u.ch==(P.level!=1)?0:1);if(R==0||R==m.length)return i;var j;if(l.line!=u.line)j=(l.line-u.line)*(t.doc.direction=="ltr"?1:-1)>0;else{var se=gt(m,l.ch,l.sticky),de=se-S||(l.ch-u.ch)*(P.level==1?-1:1);se==R-1||se==R?j=de<0:j=de>0}var we=m[R+(j?-1:0)],ye=j==(we.level==1),Ie=ye?we.from:we.to,Ne=ye?"after":"before";return u.ch==Ie&&u.sticky==Ne?i:new Qt(new D(u.line,Ie,Ne),l)}function hu(t,i,u,l){var f,m;if(i.touches)f=i.touches[0].clientX,m=i.touches[0].clientY;else try{f=i.clientX,m=i.clientY}catch(we){return!1}if(f>=Math.floor(t.display.gutters.getBoundingClientRect().right))return!1;l&&At(i);var S=t.display,P=S.lineDiv.getBoundingClientRect();if(m>P.bottom||!_t(t,u))return jn(i);m-=P.top-S.viewOffset;for(var R=0;R<t.display.gutterSpecs.length;++R){var j=S.gutters.childNodes[R];if(j&&j.getBoundingClientRect().right>=f){var se=xi(t.doc,m),de=t.display.gutterSpecs[R];return Ke(t,u,t,se,de.className,i),jn(i)}}}function Gs(t,i){return hu(t,i,"gutterClick",!0)}function jd(t,i){Wn(t.display,i)||$s(t,i)||lt(t,i,"contextmenu")||re||t.display.input.onContextMenu(i)}function $s(t,i){return _t(t,"gutterContextMenu")?hu(t,i,"gutterContextMenu",!1):!1}function tc(t){t.display.wrapper.className=t.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+t.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Eo(t)}var Ia={toString:function(){return"CodeMirror.Init"}},rc={},Ks={};function nc(t){var i=t.optionHandlers;function u(l,f,m,S){t.defaults[l]=f,m&&(i[l]=S?function(P,R,j){j!=Ia&&m(P,R,j)}:m)}t.defineOption=u,t.Init=Ia,u("value","",function(l,f){return l.setValue(f)},!0),u("mode",null,function(l,f){l.doc.modeOption=f,Xl(l)},!0),u("indentUnit",2,Xl,!0),u("indentWithTabs",!1),u("smartIndent",!0),u("tabSize",4,function(l){zi(l),Eo(l),rn(l)},!0),u("lineSeparator",null,function(l,f){if(l.doc.lineSep=f,!!f){var m=[],S=l.doc.first;l.doc.iter(function(R){for(var j=0;;){var se=R.text.indexOf(f,j);if(se==-1)break;j=se+f.length,m.push(D(S,se))}S++});for(var P=m.length-1;P>=0;P--)ro(l.doc,f,m[P],D(m[P].line,m[P].ch+f.length))}}),u("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,f,m){l.state.specialChars=new RegExp(f.source+(f.test(" ")?"":"| "),"g"),m!=Ia&&l.refresh()}),u("specialCharPlaceholder",ef,function(l){return l.refresh()},!0),u("electricChars",!0),u("inputStyle",E?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),u("spellcheck",!1,function(l,f){return l.getInputField().spellcheck=f},!0),u("autocorrect",!1,function(l,f){return l.getInputField().autocorrect=f},!0),u("autocapitalize",!1,function(l,f){return l.getInputField().autocapitalize=f},!0),u("rtlMoveVisually",!$),u("wholeLineUpdateBefore",!0),u("theme","default",function(l){tc(l),Za(l)},!0),u("keyMap","default",function(l,f,m){var S=In(f),P=m!=Ia&&In(m);P&&P.detach&&P.detach(l,S),S.attach&&S.attach(l,P||null)}),u("extraKeys",null),u("configureMouse",null),u("lineWrapping",!1,ac,!0),u("gutters",[],function(l,f){l.display.gutterSpecs=$l(f,l.options.lineNumbers),Za(l)},!0),u("fixedGutter",!0,function(l,f){l.display.gutters.style.left=f?ma(l.display)+"px":"0",l.refresh()},!0),u("coverGutterNextToScrollbar",!1,function(l){return Qa(l)},!0),u("scrollbarStyle","native",function(l){Ul(l),Qa(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),u("lineNumbers",!1,function(l,f){l.display.gutterSpecs=$l(l.options.gutters,f),Za(l)},!0),u("firstLineNumber",1,Za,!0),u("lineNumberFormatter",function(l){return l},Za,!0),u("showCursorWhenSelecting",!1,Po,!0),u("resetSelectionOnContextMenu",!0),u("lineWiseCopyCut",!0),u("pasteLinesPerSelection",!0),u("selectionsMayTouch",!1),u("readOnly",!1,function(l,f){f=="nocursor"&&(Ya(l),l.display.input.blur()),l.display.input.readOnlyChanged(f)}),u("screenReaderLabel",null,function(l,f){f=f===""?null:f,l.display.input.screenReaderLabelChanged(f)}),u("disableInput",!1,function(l,f){f||l.display.input.reset()},!0),u("dragDrop",!0,ic),u("allowDropFileTypes",null),u("cursorBlinkRate",530),u("cursorScrollMargin",0),u("cursorHeight",1,Po,!0),u("singleCursorHeightPerLine",!0,Po,!0),u("workTime",100),u("workDelay",100),u("flattenSpans",!0,zi,!0),u("addModeClass",!1,zi,!0),u("pollInterval",100),u("undoDepth",200,function(l,f){return l.doc.history.undoDepth=f}),u("historyEventDelay",1250),u("viewportMargin",10,function(l){return l.refresh()},!0),u("maxHighlightLength",1e4,zi,!0),u("moveInputWithCursor",!0,function(l,f){f||l.display.input.resetPosition()}),u("tabindex",null,function(l,f){return l.display.input.getField().tabIndex=f||""}),u("autofocus",null),u("direction","ltr",function(l,f){return l.doc.setDirection(f)},!0),u("phrases",null)}function ic(t,i,u){var l=u&&u!=Ia;if(!i!=!l){var f=t.display.dragFunctions,m=i?ce:Be;m(t.display.scroller,"dragstart",f.start),m(t.display.scroller,"dragenter",f.enter),m(t.display.scroller,"dragover",f.over),m(t.display.scroller,"dragleave",f.leave),m(t.display.scroller,"drop",f.drop)}}function ac(t){t.options.lineWrapping?(Ue(t.display.wrapper,"CodeMirror-wrap"),t.display.sizer.style.minWidth="",t.display.sizerWidth=null):(H(t.display.wrapper,"CodeMirror-wrap"),xl(t)),gs(t),rn(t),Eo(t),setTimeout(function(){return Qa(t)},100)}function br(t,i){var u=this;if(!(this instanceof br))return new br(t,i);this.options=i=i?Ct(i):{},Ct(rc,i,!1);var l=i.value;typeof l=="string"?l=new nn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var f=new br.inputStyles[i.inputStyle](this),m=this.display=new Ef(t,l,f,i);m.wrapper.CodeMirror=this,tc(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ul(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new Ce,keySeq:null,specialChars:null},i.autofocus&&!E&&m.input.focus(),T&&F<11&&setTimeout(function(){return u.display.input.reset(!0)},20),oc(this),Hf(),Vi(this),this.curOp.forceUpdate=!0,si(this,l),i.autofocus&&!E||this.hasFocus()?setTimeout(function(){u.hasFocus()&&!u.state.focused&&zn(u)},20):Ya(this);for(var S in Ks)Ks.hasOwnProperty(S)&&Ks[S](this,i[S],Ia);Gl(this),i.finishInit&&i.finishInit(this);for(var P=0;P<vu.length;++P)vu[P](this);xa(this),U&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}br.defaults=rc,br.optionHandlers=Ks;function oc(t){var i=t.display;ce(i.scroller,"mousedown",Sr(t,Hs)),T&&F<11?ce(i.scroller,"dblclick",Sr(t,function(R){if(!lt(t,R)){var j=Ai(t,R);if(!(!j||Gs(t,R)||Wn(t.display,R))){At(R);var se=t.findWordAt(j);$i(t.doc,se.anchor,se.head)}}})):ce(i.scroller,"dblclick",function(R){return lt(t,R)||At(R)}),ce(i.scroller,"contextmenu",function(R){return jd(t,R)}),ce(i.input.getField(),"contextmenu",function(R){i.scroller.contains(R.target)||jd(t,R)});var u,l={end:0};function f(){i.activeTouch&&(u=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(R){if(R.touches.length!=1)return!1;var j=R.touches[0];return j.radiusX<=1&&j.radiusY<=1}function S(R,j){if(j.left==null)return!0;var se=j.left-R.left,de=j.top-R.top;return se*se+de*de>20*20}ce(i.scroller,"touchstart",function(R){if(!lt(t,R)&&!m(R)&&!Gs(t,R)){i.input.ensurePolled(),clearTimeout(u);var j=+new Date;i.activeTouch={start:j,moved:!1,prev:j-l.end<=300?l:null},R.touches.length==1&&(i.activeTouch.left=R.touches[0].pageX,i.activeTouch.top=R.touches[0].pageY)}}),ce(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),ce(i.scroller,"touchend",function(R){var j=i.activeTouch;if(j&&!Wn(i,R)&&j.left!=null&&!j.moved&&new Date-j.start<300){var se=t.coordsChar(i.activeTouch,"page"),de;!j.prev||S(j,j.prev)?de=new Qt(se,se):!j.prev.prev||S(j,j.prev.prev)?de=t.findWordAt(se):de=new Qt(D(se.line,0),ft(t.doc,D(se.line+1,0))),t.setSelection(de.anchor,de.head),t.focus(),At(R)}f()}),ce(i.scroller,"touchcancel",f),ce(i.scroller,"scroll",function(){i.scroller.clientHeight&&(ko(t,i.scroller.scrollTop),ya(t,i.scroller.scrollLeft,!0),Ke(t,"scroll",t))}),ce(i.scroller,"mousewheel",function(R){return Yl(t,R)}),ce(i.scroller,"DOMMouseScroll",function(R){return Yl(t,R)}),ce(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(R){lt(t,R)||$r(R)},over:function(R){lt(t,R)||(au(t,R),$r(R))},start:function(R){return Ds(t,R)},drop:Sr(t,kd),leave:function(R){lt(t,R)||Vf(t)}};var P=i.input.getField();ce(P,"keyup",function(R){return Ws.call(t,R)}),ce(P,"keydown",Sr(t,Xf)),ce(P,"keypress",Sr(t,Qf)),ce(P,"focus",function(R){return zn(t,R)}),ce(P,"blur",function(R){return Ya(t,R)})}var vu=[];br.defineInitHook=function(t){return vu.push(t)};function Oi(t,i,u,l){var f=t.doc,m;u==null&&(u="add"),u=="smart"&&(f.mode.indent?m=sa(t,i).state:u="prev");var S=t.options.tabSize,P=ut(f,i),R=Le(P.text,null,S);P.stateAfter&&(P.stateAfter=null);var j=P.text.match(/^\s*/)[0],se;if(!l&&!/\S/.test(P.text))se=0,u="not";else if(u=="smart"&&(se=f.mode.indent(m,P.text.slice(j.length),P.text),se==$e||se>150)){if(!l)return;u="prev"}u=="prev"?i>f.first?se=Le(ut(f,i-1).text,null,S):se=0:u=="add"?se=R+t.options.indentUnit:u=="subtract"?se=R-t.options.indentUnit:typeof u=="number"&&(se=R+u),se=Math.max(0,se);var de="",we=0;if(t.options.indentWithTabs)for(var ye=Math.floor(se/S);ye;--ye)we+=S,de+=" ";if(we<se&&(de+=$t(se-we)),de!=j)return ro(f,de,D(i,0),D(i,j.length),"+input"),P.stateAfter=null,!0;for(var Ie=0;Ie<f.sel.ranges.length;Ie++){var Ne=f.sel.ranges[Ie];if(Ne.head.line==i&&Ne.head.ch<j.length){var ze=D(i,j.length);_l(f,Ie,new Qt(ze,ze));break}}}var Yn=null;function io(t){Yn=t}function gu(t,i,u,l,f){var m=t.doc;t.display.shift=!1,l||(l=m.sel);var S=+new Date-200,P=f=="paste"||t.state.pasteIncoming>S,R=_n(i),j=null;if(P&&l.ranges.length>1)if(Yn&&Yn.text.join(`
25
+ `)==i){if(l.ranges.length%Yn.text.length==0){j=[];for(var se=0;se<Yn.text.length;se++)j.push(m.splitLines(Yn.text[se]))}}else R.length==l.ranges.length&&t.options.pasteLinesPerSelection&&(j=Ot(R,function(Ye){return[Ye]}));for(var de=t.curOp.updateInput,we=l.ranges.length-1;we>=0;we--){var ye=l.ranges[we],Ie=ye.from(),Ne=ye.to();ye.empty()&&(u&&u>0?Ie=D(Ie.line,Ie.ch-u):t.state.overwrite&&!P?Ne=D(Ne.line,Math.min(ut(m,Ne.line).text.length,Ne.ch+We(R).length)):P&&Yn&&Yn.lineWise&&Yn.text.join(`
26
+ `)==R.join(`
27
+ `)&&(Ie=Ne=D(Ie.line,0)));var ze={from:Ie,to:Ne,text:j?j[we%j.length]:R,origin:f||(P?"paste":t.state.cutIncoming>S?"cut":"+input")};to(t.doc,ze),Lr(t,"inputRead",t,ze)}i&&!P&&Yo(t,i),Xa(t),t.curOp.updateInput<2&&(t.curOp.updateInput=de),t.curOp.typing=!0,t.state.pasteIncoming=t.state.cutIncoming=-1}function sc(t,i){var u=t.clipboardData&&t.clipboardData.getData("Text");if(u)return t.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&gn(i,function(){return gu(i,u,0,null,"paste")}),!0}function Yo(t,i){if(!(!t.options.electricChars||!t.options.smartIndent))for(var u=t.doc.sel,l=u.ranges.length-1;l>=0;l--){var f=u.ranges[l];if(!(f.head.ch>100||l&&u.ranges[l-1].head.line==f.head.line)){var m=t.getModeAt(f.head),S=!1;if(m.electricChars){for(var P=0;P<m.electricChars.length;P++)if(i.indexOf(m.electricChars.charAt(P))>-1){S=Oi(t,f.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(ut(t.doc,f.head.line).text.slice(0,f.head.ch))&&(S=Oi(t,f.head.line,"smart"));S&&Lr(t,"electricInput",t,f.head.line)}}}function lc(t){for(var i=[],u=[],l=0;l<t.doc.sel.ranges.length;l++){var f=t.doc.sel.ranges[l].head.line,m={anchor:D(f,0),head:D(f+1,0)};u.push(m),i.push(t.getRange(m.anchor,m.head))}return{text:i,ranges:u}}function uc(t,i,u,l){t.setAttribute("autocorrect",u?"on":"off"),t.setAttribute("autocapitalize",l?"on":"off"),t.setAttribute("spellcheck",!!i)}function fc(){var t=_("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=_("div",[t],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return U?t.style.width="1000px":t.setAttribute("wrap","off"),J&&(t.style.border="1px solid black"),i}function Vd(t){var i=t.optionHandlers,u=t.helpers={};t.prototype={constructor:t,focus:function(){xt(this).focus(),this.display.input.focus()},setOption:function(l,f){var m=this.options,S=m[l];m[l]==f&&l!="mode"||(m[l]=f,i.hasOwnProperty(l)&&Sr(this,i[l])(this,f,S),Ke(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,f){this.state.keyMaps[f?"push":"unshift"](In(l))},removeKeyMap:function(l){for(var f=this.state.keyMaps,m=0;m<f.length;++m)if(f[m]==l||f[m].name==l)return f.splice(m,1),!0},addOverlay:zr(function(l,f){var m=l.token?l:t.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");ot(this.state.overlays,{mode:m,modeSpec:l,opaque:f&&f.opaque,priority:f&&f.priority||0},function(S){return S.priority}),this.state.modeGen++,rn(this)}),removeOverlay:zr(function(l){for(var f=this.state.overlays,m=0;m<f.length;++m){var S=f[m].modeSpec;if(S==l||typeof l=="string"&&S.name==l){f.splice(m,1),this.state.modeGen++,rn(this);return}}}),indentLine:zr(function(l,f,m){typeof f!="string"&&typeof f!="number"&&(f==null?f=this.options.smartIndent?"smart":"prev":f=f?"add":"subtract"),oa(this.doc,l)&&Oi(this,l,f,m)}),indentSelection:zr(function(l){for(var f=this.doc.sel.ranges,m=-1,S=0;S<f.length;S++){var P=f[S];if(P.empty())P.head.line>m&&(Oi(this,P.head.line,l,!0),m=P.head.line,S==this.doc.sel.primIndex&&Xa(this));else{var R=P.from(),j=P.to(),se=Math.max(m,R.line);m=Math.min(this.lastLine(),j.line-(j.ch?0:1))+1;for(var de=se;de<m;++de)Oi(this,de,l);var we=this.doc.sel.ranges;R.ch==0&&f.length==we.length&&we[S].from().ch>0&&_l(this.doc,S,new Qt(R,we[S].to()),tt)}}}),getTokenAt:function(l,f){return hl(this,l,f)},getLineTokens:function(l,f){return hl(this,D(l),f,!0)},getTokenTypeAt:function(l){l=ft(this.doc,l);var f=cl(this,ut(this.doc,l.line)),m=0,S=(f.length-1)/2,P=l.ch,R;if(P==0)R=f[2];else for(;;){var j=m+S>>1;if((j?f[j*2-1]:0)>=P)S=j;else if(f[j*2+1]<P)m=j+1;else{R=f[j*2+2];break}}var se=R?R.indexOf("overlay "):-1;return se<0?R:se==0?null:R.slice(0,se-1)},getModeAt:function(l){var f=this.doc.mode;return f.innerMode?t.innerMode(f,this.getTokenAt(l).state).mode:f},getHelper:function(l,f){return this.getHelpers(l,f)[0]},getHelpers:function(l,f){var m=[];if(!u.hasOwnProperty(f))return m;var S=u[f],P=this.getModeAt(l);if(typeof P[f]=="string")S[P[f]]&&m.push(S[P[f]]);else if(P[f])for(var R=0;R<P[f].length;R++){var j=S[P[f][R]];j&&m.push(j)}else P.helperType&&S[P.helperType]?m.push(S[P.helperType]):S[P.name]&&m.push(S[P.name]);for(var se=0;se<S._global.length;se++){var de=S._global[se];de.pred(P,this)&&Se(m,de.val)==-1&&m.push(de.val)}return m},getStateAfter:function(l,f){var m=this.doc;return l=tr(m,l==null?m.first+m.size-1:l),sa(this,l+1,f).state},cursorCoords:function(l,f){var m,S=this.doc.sel.primary();return l==null?m=S.head:typeof l=="object"?m=ft(this.doc,l):m=l?S.from():S.to(),Hn(this,m,f||"page")},charCoords:function(l,f){return hs(this,ft(this.doc,l),f||"page")},coordsChar:function(l,f){return l=df(this,l,f||"page"),va(this,l.left,l.top)},lineAtHeight:function(l,f){return l=df(this,{top:l,left:0},f||"page").top,xi(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,f,m){var S=!1,P;if(typeof l=="number"){var R=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>R&&(l=R,S=!0),P=ut(this.doc,l)}else P=l;return jr(this,P,{top:0,left:0},f||"page",m||S).top+(S?this.doc.height-wi(P):0)},defaultTextHeight:function(){return ga(this.display)},defaultCharWidth:function(){return Ka(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,f,m,S,P){var R=this.display;l=Hn(this,ft(this.doc,l));var j=l.bottom,se=l.left;if(f.style.position="absolute",f.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(f),R.sizer.appendChild(f),S=="over")j=l.top;else if(S=="above"||S=="near"){var de=Math.max(R.wrapper.clientHeight,this.doc.height),we=Math.max(R.sizer.clientWidth,R.lineSpace.clientWidth);(S=="above"||l.bottom+f.offsetHeight>de)&&l.top>f.offsetHeight?j=l.top-f.offsetHeight:l.bottom+f.offsetHeight<=de&&(j=l.bottom),se+f.offsetWidth>we&&(se=we-f.offsetWidth)}f.style.top=j+"px",f.style.left=f.style.right="",P=="right"?(se=R.sizer.clientWidth-f.offsetWidth,f.style.right="0px"):(P=="left"?se=0:P=="middle"&&(se=(R.sizer.clientWidth-f.offsetWidth)/2),f.style.left=se+"px"),m&&pd(this,{left:se,top:j,right:se+f.offsetWidth,bottom:j+f.offsetHeight})},triggerOnKeyDown:zr(Xf),triggerOnKeyPress:zr(Qf),triggerOnKeyUp:Ws,triggerOnMouseDown:zr(Hs),execCommand:function(l){if(Ho.hasOwnProperty(l))return Ho[l].call(null,this)},triggerElectric:zr(function(l){Yo(this,l)}),findPosH:function(l,f,m,S){var P=1;f<0&&(P=-1,f=-f);for(var R=ft(this.doc,l),j=0;j<f&&(R=Ys(this.doc,R,P,m,S),!R.hitSide);++j);return R},moveH:zr(function(l,f){var m=this;this.extendSelectionsBy(function(S){return m.display.shift||m.doc.extend||S.empty()?Ys(m.doc,S.head,l,f,m.options.rtlMoveVisually):l<0?S.from():S.to()},St)}),deleteH:zr(function(l,f){var m=this.doc.sel,S=this.doc;m.somethingSelected()?S.replaceSelection("",null,"+delete"):Ta(this,function(P){var R=Ys(S,P.head,l,f,!1);return l<0?{from:R,to:P.head}:{from:P.head,to:R}})}),findPosV:function(l,f,m,S){var P=1,R=S;f<0&&(P=-1,f=-f);for(var j=ft(this.doc,l),se=0;se<f;++se){var de=Hn(this,j,"div");if(R==null?R=de.left:de.left=R,j=cc(this,de,P,m),j.hitSide)break}return j},moveV:zr(function(l,f){var m=this,S=this.doc,P=[],R=!this.display.shift&&!S.extend&&S.sel.somethingSelected();if(S.extendSelectionsBy(function(se){if(R)return l<0?se.from():se.to();var de=Hn(m,se.head,"div");se.goalColumn!=null&&(de.left=se.goalColumn),P.push(de.left);var we=cc(m,de,l,f);return f=="page"&&se==S.sel.primary()&&jl(m,hs(m,we,"div").top-de.top),we},St),P.length)for(var j=0;j<S.sel.ranges.length;j++)S.sel.ranges[j].goalColumn=P[j]}),findWordAt:function(l){var f=this.doc,m=ut(f,l.line).text,S=l.ch,P=l.ch;if(m){var R=this.getHelper(l,"wordChars");(l.sticky=="before"||P==m.length)&&S?--S:++P;for(var j=m.charAt(S),se=Or(j,R)?function(de){return Or(de,R)}:/\s/.test(j)?function(de){return/\s/.test(de)}:function(de){return!/\s/.test(de)&&!Or(de)};S>0&&se(m.charAt(S-1));)--S;for(;P<m.length&&se(m.charAt(P));)++P}return new Qt(D(l.line,S),D(l.line,P))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Ue(this.display.cursorDiv,"CodeMirror-overwrite"):H(this.display.cursorDiv,"CodeMirror-overwrite"),Ke(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Oe(Xe(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:zr(function(l,f){Io(this,l,f)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-ni(this)-this.display.barHeight,width:l.scrollWidth-ni(this)-this.display.barWidth,clientHeight:wl(this),clientWidth:pa(this)}},scrollIntoView:zr(function(l,f){l==null?(l={from:this.doc.sel.primary().head,to:null},f==null&&(f=this.options.cursorScrollMargin)):typeof l=="number"?l={from:D(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=f||0,l.from.line!=null?hd(this,l):bf(this,l.from,l.to,l.margin)}),setSize:zr(function(l,f){var m=this,S=function(R){return typeof R=="number"||/^\d+$/.test(String(R))?R+"px":R};l!=null&&(this.display.wrapper.style.width=S(l)),f!=null&&(this.display.wrapper.style.height=S(f)),this.options.lineWrapping&&Ol(this);var P=this.display.viewFrom;this.doc.iter(P,this.display.viewTo,function(R){if(R.widgets){for(var j=0;j<R.widgets.length;j++)if(R.widgets[j].noHScroll){Sn(m,P,"widget");break}}++P}),this.curOp.forceUpdate=!0,Ke(this,"refresh",this)}),operation:function(l){return gn(this,l)},startOperation:function(){return Vi(this)},endOperation:function(){return xa(this)},refresh:zr(function(){var l=this.display.cachedTextHeight;rn(this),this.curOp.forceUpdate=!0,Eo(this),Io(this,this.doc.scrollLeft,this.doc.scrollTop),zl(this.display),(l==null||Math.abs(l-ga(this.display))>.5||this.options.lineWrapping)&&gs(this),Ke(this,"refresh",this)}),swapDoc:zr(function(l){var f=this.doc;return f.cm=null,this.state.selectingText&&this.state.selectingText(),si(this,l),Eo(this),this.display.input.reset(),Io(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Lr(this,"swapDoc",this,f),f}),phrase:function(l){var f=this.options.phrases;return f&&Object.prototype.hasOwnProperty.call(f,l)?f[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},lr(t),t.registerHelper=function(l,f,m){u.hasOwnProperty(l)||(u[l]=t[l]={_global:[]}),u[l][f]=m},t.registerGlobalHelper=function(l,f,m,S){t.registerHelper(l,f,S),u[l]._global.push({pred:m,val:S})}}function Ys(t,i,u,l,f){var m=i,S=u,P=ut(t,i.line),R=f&&t.direction=="rtl"?-u:u;function j(){var Ze=i.line+R;return Ze<t.first||Ze>=t.first+t.size?!1:(i=new D(Ze,i.ch,i.sticky),P=ut(t,Ze))}function se(Ze){var Je;if(l=="codepoint"){var rt=P.text.charCodeAt(i.ch+(u>0?0:-1));if(isNaN(rt))Je=null;else{var vt=u>0?rt>=55296&&rt<56320:rt>=56320&&rt<57343;Je=new D(i.line,Math.max(0,Math.min(P.text.length,i.ch+u*(vt?2:1))),-u)}}else f?Je=Kf(t.cm,P,i,u):Je=lu(P,i,u);if(Je==null)if(!Ze&&j())i=uu(f,t.cm,P,i.line,R);else return!1;else i=Je;return!0}if(l=="char"||l=="codepoint")se();else if(l=="column")se(!0);else if(l=="word"||l=="group")for(var de=null,we=l=="group",ye=t.cm&&t.cm.getHelper(i,"wordChars"),Ie=!0;!(u<0&&!se(!Ie));Ie=!1){var Ne=P.text.charAt(i.ch)||`
28
+ `,ze=Or(Ne,ye)?"w":we&&Ne==`
29
+ `?"n":!we||/\s/.test(Ne)?null:"p";if(we&&!Ie&&!ze&&(ze="s"),de&&de!=ze){u<0&&(u=1,se(),i.sticky="after");break}if(ze&&(de=ze),u>0&&!se(!Ie))break}var Ye=eu(t,i,m,S,!0);return Me(m,Ye)&&(Ye.hitSide=!0),Ye}function cc(t,i,u,l){var f=t.doc,m=i.left,S;if(l=="page"){var P=Math.min(t.display.wrapper.clientHeight,xt(t).innerHeight||f(t).documentElement.clientHeight),R=Math.max(P-.5*ga(t.display),3);S=(u>0?i.bottom:i.top)+u*R}else l=="line"&&(S=u>0?i.bottom+3:i.top-3);for(var j;j=va(t,m,S),!!j.outside;){if(u<0?S<=0:S>=f.height){j.hitSide=!0;break}S+=u*5}return j}var or=function(t){this.cm=t,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new Ce,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};or.prototype.init=function(t){var i=this,u=this,l=u.cm,f=u.div=t.lineDiv;f.contentEditable=!0,uc(f,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(P){for(var R=P.target;R;R=R.parentNode){if(R==f)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(R.className))break}return!1}ce(f,"paste",function(P){!m(P)||lt(l,P)||sc(P,l)||F<=11&&setTimeout(Sr(l,function(){return i.updateFromDOM()}),20)}),ce(f,"compositionstart",function(P){i.composing={data:P.data,done:!1}}),ce(f,"compositionupdate",function(P){i.composing||(i.composing={data:P.data,done:!1})}),ce(f,"compositionend",function(P){i.composing&&(P.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),ce(f,"touchstart",function(){return u.forceCompositionEnd()}),ce(f,"input",function(){i.composing||i.readFromDOMSoon()});function S(P){if(!(!m(P)||lt(l,P))){if(l.somethingSelected())io({lineWise:!1,text:l.getSelections()}),P.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var R=lc(l);io({lineWise:!0,text:R.text}),P.type=="cut"&&l.operation(function(){l.setSelections(R.ranges,0,tt),l.replaceSelection("",null,"cut")})}else return;if(P.clipboardData){P.clipboardData.clearData();var j=Yn.text.join(`
30
+ `);if(P.clipboardData.setData("Text",j),P.clipboardData.getData("Text")==j){P.preventDefault();return}}var se=fc(),de=se.firstChild;uc(de),l.display.lineSpace.insertBefore(se,l.display.lineSpace.firstChild),de.value=Yn.text.join(`
31
+ `);var we=Oe(f.ownerDocument);at(de),setTimeout(function(){l.display.lineSpace.removeChild(se),we.focus(),we==f&&u.showPrimarySelection()},50)}}ce(f,"copy",S),ce(f,"cut",S)},or.prototype.screenReaderLabelChanged=function(t){t?this.div.setAttribute("aria-label",t):this.div.removeAttribute("aria-label")},or.prototype.prepareSelection=function(){var t=Ml(this.cm,!1);return t.focus=Oe(this.div.ownerDocument)==this.div,t},or.prototype.showSelection=function(t,i){!t||!this.cm.display.view.length||((t.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(t))},or.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},or.prototype.showPrimarySelection=function(){var t=this.getSelection(),i=this.cm,u=i.doc.sel.primary(),l=u.from(),f=u.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||f.line<i.display.viewFrom){t.removeAllRanges();return}var m=Js(i,t.anchorNode,t.anchorOffset),S=Js(i,t.focusNode,t.focusOffset);if(!(m&&!m.bad&&S&&!S.bad&&oe(jt(m,S),l)==0&&oe(Ft(m,S),f)==0)){var P=i.display.view,R=l.line>=i.display.viewFrom&&dc(i,l)||{node:P[0].measure.map[2],offset:0},j=f.line<i.display.viewTo&&dc(i,f);if(!j){var se=P[P.length-1].measure,de=se.maps?se.maps[se.maps.length-1]:se.map;j={node:de[de.length-1],offset:de[de.length-2]-de[de.length-3]}}if(!R||!j){t.removeAllRanges();return}var we=t.rangeCount&&t.getRangeAt(0),ye;try{ye=z(R.node,R.offset,j.offset,j.node)}catch(Ie){}ye&&(!d&&i.state.focused?(t.collapse(R.node,R.offset),ye.collapsed||(t.removeAllRanges(),t.addRange(ye))):(t.removeAllRanges(),t.addRange(ye)),we&&t.anchorNode==null?t.addRange(we):d&&this.startGracePeriod()),this.rememberSelection()}},or.prototype.startGracePeriod=function(){var t=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){t.gracePeriod=!1,t.selectionChanged()&&t.cm.operation(function(){return t.cm.curOp.selectionChanged=!0})},20)},or.prototype.showMultipleSelections=function(t){he(this.cm.display.cursorDiv,t.cursors),he(this.cm.display.selectionDiv,t.selection)},or.prototype.rememberSelection=function(){var t=this.getSelection();this.lastAnchorNode=t.anchorNode,this.lastAnchorOffset=t.anchorOffset,this.lastFocusNode=t.focusNode,this.lastFocusOffset=t.focusOffset},or.prototype.selectionInEditor=function(){var t=this.getSelection();if(!t.rangeCount)return!1;var i=t.getRangeAt(0).commonAncestorContainer;return ge(this.div,i)},or.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||Oe(this.div.ownerDocument)!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},or.prototype.blur=function(){this.div.blur()},or.prototype.getField=function(){return this.div},or.prototype.supportsTouch=function(){return!0},or.prototype.receivedFocus=function(){var t=this,i=this;this.selectionInEditor()?setTimeout(function(){return t.pollSelection()},20):gn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function u(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,u))}this.polling.set(this.cm.options.pollInterval,u)},or.prototype.selectionChanged=function(){var t=this.getSelection();return t.anchorNode!=this.lastAnchorNode||t.anchorOffset!=this.lastAnchorOffset||t.focusNode!=this.lastFocusNode||t.focusOffset!=this.lastFocusOffset},or.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var t=this.getSelection(),i=this.cm;if(N&&ee&&this.cm.display.gutterSpecs.length&&pc(t.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var u=Js(i,t.anchorNode,t.anchorOffset),l=Js(i,t.focusNode,t.focusOffset);u&&l&&gn(i,function(){Yr(i.doc,Ui(u,l),tt),(u.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},or.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var t=this.cm,i=t.display,u=t.doc.sel.primary(),l=u.from(),f=u.to();if(l.ch==0&&l.line>t.firstLine()&&(l=D(l.line-1,ut(t.doc,l.line-1).length)),f.ch==ut(t.doc,f.line).text.length&&f.line<t.lastLine()&&(f=D(f.line+1,0)),l.line<i.viewFrom||f.line>i.viewTo-1)return!1;var m,S,P;l.line==i.viewFrom||(m=Bi(t,l.line))==0?(S=Kt(i.view[0].line),P=i.view[0].node):(S=Kt(i.view[m].line),P=i.view[m-1].node.nextSibling);var R=Bi(t,f.line),j,se;if(R==i.view.length-1?(j=i.viewTo-1,se=i.lineDiv.lastChild):(j=Kt(i.view[R+1].line)-1,se=i.view[R+1].node.previousSibling),!P)return!1;for(var de=t.doc.splitLines(Ud(t,P,se,S,j)),we=bi(t.doc,D(S,0),D(j,ut(t.doc,j).text.length));de.length>1&&we.length>1;)if(We(de)==We(we))de.pop(),we.pop(),j--;else if(de[0]==we[0])de.shift(),we.shift(),S++;else break;for(var ye=0,Ie=0,Ne=de[0],ze=we[0],Ye=Math.min(Ne.length,ze.length);ye<Ye&&Ne.charCodeAt(ye)==ze.charCodeAt(ye);)++ye;for(var Ze=We(de),Je=We(we),rt=Math.min(Ze.length-(de.length==1?ye:0),Je.length-(we.length==1?ye:0));Ie<rt&&Ze.charCodeAt(Ze.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)++Ie;if(de.length==1&&we.length==1&&S==l.line)for(;ye&&ye>l.ch&&Ze.charCodeAt(Ze.length-Ie-1)==Je.charCodeAt(Je.length-Ie-1);)ye--,Ie++;de[de.length-1]=Ze.slice(0,Ze.length-Ie).replace(/^\u200b+/,""),de[0]=de[0].slice(ye).replace(/\u200b+$/,"");var vt=D(S,ye),pt=D(j,we.length?We(we).length-Ie:0);if(de.length>1||de[0]||oe(vt,pt))return ro(t.doc,de,vt,pt,"+input"),!0},or.prototype.ensurePolled=function(){this.forceCompositionEnd()},or.prototype.reset=function(){this.forceCompositionEnd()},or.prototype.forceCompositionEnd=function(){!this.composing||(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},or.prototype.readFromDOMSoon=function(){var t=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(t.readDOMTimeout=null,t.composing)if(t.composing.done)t.composing=null;else return;t.updateFromDOM()},80))},or.prototype.updateFromDOM=function(){var t=this;(this.cm.isReadOnly()||!this.pollContent())&&gn(this.cm,function(){return rn(t.cm)})},or.prototype.setUneditable=function(t){t.contentEditable="false"},or.prototype.onKeyPress=function(t){t.charCode==0||this.composing||(t.preventDefault(),this.cm.isReadOnly()||Sr(this.cm,gu)(this.cm,String.fromCharCode(t.charCode==null?t.keyCode:t.charCode),0))},or.prototype.readOnlyChanged=function(t){this.div.contentEditable=String(t!="nocursor")},or.prototype.onContextMenu=function(){},or.prototype.resetPosition=function(){},or.prototype.needsContentAttribute=!0;function dc(t,i){var u=Cl(t,i.line);if(!u||u.hidden)return null;var l=ut(t.doc,i.line),f=lf(u,l,i.line),m=st(l,t.doc.direction),S="left";if(m){var P=gt(m,i.ch);S=P%2?"right":"left"}var R=ff(f.map,i.ch,S);return R.offset=R.collapse=="right"?R.end:R.start,R}function pc(t){for(var i=t;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function ka(t,i){return i&&(t.bad=!0),t}function Ud(t,i,u,l,f){var m="",S=!1,P=t.doc.lineSeparator(),R=!1;function j(ye){return function(Ie){return Ie.id==ye}}function se(){S&&(m+=P,R&&(m+=P),S=R=!1)}function de(ye){ye&&(se(),m+=ye)}function we(ye){if(ye.nodeType==1){var Ie=ye.getAttribute("cm-text");if(Ie){de(Ie);return}var Ne=ye.getAttribute("cm-marker"),ze;if(Ne){var Ye=t.findMarks(D(l,0),D(f+1,0),j(+Ne));Ye.length&&(ze=Ye[0].find(0))&&de(bi(t.doc,ze.from,ze.to).join(P));return}if(ye.getAttribute("contenteditable")=="false")return;var Ze=/^(pre|div|p|li|table|br)$/i.test(ye.nodeName);if(!/^br$/i.test(ye.nodeName)&&ye.textContent.length==0)return;Ze&&se();for(var Je=0;Je<ye.childNodes.length;Je++)we(ye.childNodes[Je]);/^(pre|p)$/i.test(ye.nodeName)&&(R=!0),Ze&&(S=!0)}else ye.nodeType==3&&de(ye.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;we(i),i!=u;)i=i.nextSibling,R=!1;return m}function Js(t,i,u){var l;if(i==t.display.lineDiv){if(l=t.display.lineDiv.childNodes[u],!l)return ka(t.clipPos(D(t.display.viewTo-1)),!0);i=null,u=0}else for(l=i;;l=l.parentNode){if(!l||l==t.display.lineDiv)return null;if(l.parentNode&&l.parentNode==t.display.lineDiv)break}for(var f=0;f<t.display.view.length;f++){var m=t.display.view[f];if(m.node==l)return Wd(m,i,u)}}function Wd(t,i,u){var l=t.text.firstChild,f=!1;if(!i||!ge(l,i))return ka(D(Kt(t.line),0),!0);if(i==l&&(f=!0,i=l.childNodes[u],u=0,!i)){var m=t.rest?We(t.rest):t.line;return ka(D(Kt(m),m.text.length),f)}var S=i.nodeType==3?i:null,P=i;for(!S&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(S=i.firstChild,u&&(u=S.nodeValue.length));P.parentNode!=l;)P=P.parentNode;var R=t.measure,j=R.maps;function se(ze,Ye,Ze){for(var Je=-1;Je<(j?j.length:0);Je++)for(var rt=Je<0?R.map:j[Je],vt=0;vt<rt.length;vt+=3){var pt=rt[vt+2];if(pt==ze||pt==Ye){var Dt=Kt(Je<0?t.line:t.rest[Je]),ur=rt[vt]+Ze;return(Ze<0||pt!=ze)&&(ur=rt[vt+(Ze?1:0)]),D(Dt,ur)}}}var de=se(S,P,u);if(de)return ka(de,f);for(var we=P.nextSibling,ye=S?S.nodeValue.length-u:0;we;we=we.nextSibling){if(de=se(we,we.firstChild,0),de)return ka(D(de.line,de.ch-ye),f);ye+=we.textContent.length}for(var Ie=P.previousSibling,Ne=u;Ie;Ie=Ie.previousSibling){if(de=se(Ie,Ie.firstChild,-1),de)return ka(D(de.line,de.ch+Ne),f);Ne+=Ie.textContent.length}}var Tr=function(t){this.cm=t,this.prevInput="",this.pollingFast=!1,this.polling=new Ce,this.hasSelection=!1,this.composing=null,this.resetting=!1};Tr.prototype.init=function(t){var i=this,u=this,l=this.cm;this.createField(t);var f=this.textarea;t.wrapper.insertBefore(this.wrapper,t.wrapper.firstChild),J&&(f.style.width="0px"),ce(f,"input",function(){T&&F>=9&&i.hasSelection&&(i.hasSelection=null),u.poll()}),ce(f,"paste",function(S){lt(l,S)||sc(S,l)||(l.state.pasteIncoming=+new Date,u.fastPoll())});function m(S){if(!lt(l,S)){if(l.somethingSelected())io({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var P=lc(l);io({lineWise:!0,text:P.text}),S.type=="cut"?l.setSelections(P.ranges,null,tt):(u.prevInput="",f.value=P.text.join(`
32
+ `),at(f))}else return;S.type=="cut"&&(l.state.cutIncoming=+new Date)}}ce(f,"cut",m),ce(f,"copy",m),ce(t.scroller,"paste",function(S){if(!(Wn(t,S)||lt(l,S))){if(!f.dispatchEvent){l.state.pasteIncoming=+new Date,u.focus();return}var P=new Event("paste");P.clipboardData=S.clipboardData,f.dispatchEvent(P)}}),ce(t.lineSpace,"selectstart",function(S){Wn(t,S)||At(S)}),ce(f,"compositionstart",function(){var S=l.getCursor("from");u.composing&&u.composing.range.clear(),u.composing={start:S,range:l.markText(S,l.getCursor("to"),{className:"CodeMirror-composing"})}}),ce(f,"compositionend",function(){u.composing&&(u.poll(),u.composing.range.clear(),u.composing=null)})},Tr.prototype.createField=function(t){this.wrapper=fc(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;uc(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Tr.prototype.screenReaderLabelChanged=function(t){t?this.textarea.setAttribute("aria-label",t):this.textarea.removeAttribute("aria-label")},Tr.prototype.prepareSelection=function(){var t=this.cm,i=t.display,u=t.doc,l=Ml(t);if(t.options.moveInputWithCursor){var f=Hn(t,u.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),S=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,f.top+S.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,f.left+S.left-m.left))}return l},Tr.prototype.showSelection=function(t){var i=this.cm,u=i.display;he(u.cursorDiv,t.cursors),he(u.selectionDiv,t.selection),t.teTop!=null&&(this.wrapper.style.top=t.teTop+"px",this.wrapper.style.left=t.teLeft+"px")},Tr.prototype.reset=function(t){if(!(this.contextMenuPending||this.composing&&t)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var u=i.getSelection();this.textarea.value=u,i.state.focused&&at(this.textarea),T&&F>=9&&(this.hasSelection=u)}else t||(this.prevInput=this.textarea.value="",T&&F>=9&&(this.hasSelection=null));this.resetting=!1}},Tr.prototype.getField=function(){return this.textarea},Tr.prototype.supportsTouch=function(){return!1},Tr.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!E||Oe(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch(t){}},Tr.prototype.blur=function(){this.textarea.blur()},Tr.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Tr.prototype.receivedFocus=function(){this.slowPoll()},Tr.prototype.slowPoll=function(){var t=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){t.poll(),t.cm.state.focused&&t.slowPoll()})},Tr.prototype.fastPoll=function(){var t=!1,i=this;i.pollingFast=!0;function u(){var l=i.poll();!l&&!t?(t=!0,i.polling.set(60,u)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,u)},Tr.prototype.poll=function(){var t=this,i=this.cm,u=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||ei(u)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var f=u.value;if(f==l&&!i.somethingSelected())return!1;if(T&&F>=9&&this.hasSelection===f||k&&/[\uf700-\uf7ff]/.test(f))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=f.charCodeAt(0);if(m==8203&&!l&&(l="\u200B"),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var S=0,P=Math.min(l.length,f.length);S<P&&l.charCodeAt(S)==f.charCodeAt(S);)++S;return gn(i,function(){gu(i,f.slice(S),l.length-S,null,t.composing?"*compose":null),f.length>1e3||f.indexOf(`
33
+ `)>-1?u.value=t.prevInput="":t.prevInput=f,t.composing&&(t.composing.range.clear(),t.composing.range=i.markText(t.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Tr.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Tr.prototype.onKeyPress=function(){T&&F>=9&&(this.hasSelection=null),this.fastPoll()},Tr.prototype.onContextMenu=function(t){var i=this,u=i.cm,l=u.display,f=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=Ai(u,t),S=l.scroller.scrollTop;if(!m||ne)return;var P=u.options.resetSelectionOnContextMenu;P&&u.doc.sel.contains(m)==-1&&Sr(u,Yr)(u.doc,Ui(m),tt);var R=f.style.cssText,j=i.wrapper.style.cssText,se=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",f.style.cssText=`position: absolute; width: 30px; height: 30px;
34
+ top: `+(t.clientY-se.top-5)+"px; left: "+(t.clientX-se.left-5)+`px;
35
+ z-index: 1000; background: `+(T?"rgba(255, 255, 255, .05)":"transparent")+`;
36
+ outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var de;U&&(de=f.ownerDocument.defaultView.scrollY),l.input.focus(),U&&f.ownerDocument.defaultView.scrollTo(null,de),l.input.reset(),u.somethingSelected()||(f.value=i.prevInput=" "),i.contextMenuPending=ye,l.selForContextMenu=u.doc.sel,clearTimeout(l.detectingSelectAll);function we(){if(f.selectionStart!=null){var Ne=u.somethingSelected(),ze="\u200B"+(Ne?f.value:"");f.value="\u21DA",f.value=ze,i.prevInput=Ne?"":"\u200B",f.selectionStart=1,f.selectionEnd=ze.length,l.selForContextMenu=u.doc.sel}}function ye(){if(i.contextMenuPending==ye&&(i.contextMenuPending=!1,i.wrapper.style.cssText=j,f.style.cssText=R,T&&F<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=S),f.selectionStart!=null)){(!T||T&&F<9)&&we();var Ne=0,ze=function(){l.selForContextMenu==u.doc.sel&&f.selectionStart==0&&f.selectionEnd>0&&i.prevInput=="\u200B"?Sr(u,tu)(u):Ne++<10?l.detectingSelectAll=setTimeout(ze,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(ze,200)}}if(T&&F>=9&&we(),re){$r(t);var Ie=function(){Be(window,"mouseup",Ie),setTimeout(ye,20)};ce(window,"mouseup",Ie)}else setTimeout(ye,50)},Tr.prototype.readOnlyChanged=function(t){t||this.reset(),this.textarea.disabled=t=="nocursor",this.textarea.readOnly=!!t},Tr.prototype.setUneditable=function(){},Tr.prototype.needsContentAttribute=!1;function Hd(t,i){if(i=i?Ct(i):{},i.value=t.value,!i.tabindex&&t.tabIndex&&(i.tabindex=t.tabIndex),!i.placeholder&&t.placeholder&&(i.placeholder=t.placeholder),i.autofocus==null){var u=Oe(t.ownerDocument);i.autofocus=u==t||t.getAttribute("autofocus")!=null&&u==document.body}function l(){t.value=P.getValue()}var f;if(t.form&&(ce(t.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=t.form;f=m.submit;try{var S=m.submit=function(){l(),m.submit=f,m.submit(),m.submit=S}}catch(R){}}i.finishInit=function(R){R.save=l,R.getTextArea=function(){return t},R.toTextArea=function(){R.toTextArea=isNaN,l(),t.parentNode.removeChild(R.getWrapperElement()),t.style.display="",t.form&&(Be(t.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof t.form.submit=="function"&&(t.form.submit=f))}},t.style.display="none";var P=br(function(R){return t.parentNode.insertBefore(R,t.nextSibling)},i);return P}function zd(t){t.off=Be,t.on=ce,t.wheelEventPixels=Sd,t.Doc=nn,t.splitLines=_n,t.countColumn=Le,t.findColumn=It,t.isWordChar=Ir,t.Pass=$e,t.signal=Ke,t.Line=fa,t.changeEnd=Wi,t.scrollbarModel=Sf,t.Pos=D,t.cmpPos=oe,t.modes=hn,t.mimeModes=vn,t.resolveMode=Vn,t.getMode=en,t.modeExtensions=kr,t.extendMode=yi,t.copyState=Cn,t.startState=is,t.innerMode=ia,t.commands=Ho,t.keyMap=Ei,t.keyName=Oa,t.isModifierKey=ou,t.lookupKey=Yi,t.normalizeKeyMap=Rd,t.StringStream=mr,t.SharedTextMarker=Kn,t.TextMarker=Pn,t.LineWidget=jo,t.e_preventDefault=At,t.e_stopPropagation=Cr,t.e_stop=$r,t.addClass=Ue,t.contains=ge,t.rmClass=H,t.keyNames=Ki}nc(br),Vd(br);var Xs="iter insert remove copy getEditor constructor".split(" ");for(var Qs in nn.prototype)nn.prototype.hasOwnProperty(Qs)&&Se(Xs,Qs)<0&&(br.prototype[Qs]=function(t){return function(){return t.apply(this.doc,arguments)}}(nn.prototype[Qs]));return lr(nn),br.inputStyles={textarea:Tr,contenteditable:or},br.defineMode=function(t){!br.defaults.mode&&t!="null"&&(br.defaults.mode=t),An.apply(this,arguments)},br.defineMIME=ho,br.defineMode("null",function(){return{token:function(t){return t.skipToEnd()}}}),br.defineMIME("text/plain","null"),br.defineExtension=function(t,i){br.prototype[t]=i},br.defineDocExtension=function(t,i){nn.prototype[t]=i},br.fromTextArea=Hd,zd(br),br.version="5.65.11",br})},49055:(h,O,o)=>{(function(d){d(o(23326))})(function(d){"use strict";d.defineMode("javascript",function(x,w){var C=x.indentUnit,T=w.statementIndent,F=w.jsonld,U=w.json||F,Z=w.trackScope!==!1,ee=w.typescript,ue=w.wordCharacters||/[\w$\xa1-\uffff]/,ne=function(){function D(ft){return{type:ft,style:"keyword"}}var oe=D("keyword a"),Me=D("keyword b"),He=D("keyword c"),Ft=D("keyword d"),jt=D("operator"),tr={type:"atom",style:"atom"};return{if:D("if"),while:oe,with:oe,else:Me,do:Me,try:Me,finally:Me,return:Ft,break:Ft,continue:Ft,new:D("new"),delete:He,void:He,throw:He,debugger:D("debugger"),var:D("var"),const:D("var"),let:D("var"),function:D("function"),catch:D("catch"),for:D("for"),switch:D("switch"),case:D("case"),default:D("default"),in:jt,typeof:jt,instanceof:jt,true:tr,false:tr,null:tr,undefined:tr,NaN:tr,Infinity:tr,this:D("this"),class:D("class"),super:D("atom"),yield:He,export:D("export"),import:D("import"),extends:He,await:He}}(),ie=/[+\-*&%=<>!?|~^@]/,Y=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function A(D){for(var oe=!1,Me,He=!1;(Me=D.next())!=null;){if(!oe){if(Me=="/"&&!He)return;Me=="["?He=!0:He&&Me=="]"&&(He=!1)}oe=!oe&&Me=="\\"}}var J,N;function E(D,oe,Me){return J=D,N=Me,oe}function k(D,oe){var Me=D.next();if(Me=='"'||Me=="'")return oe.tokenize=V(Me),oe.tokenize(D,oe);if(Me=="."&&D.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return E("number","number");if(Me=="."&&D.match(".."))return E("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(Me))return E(Me);if(Me=="="&&D.eat(">"))return E("=>","operator");if(Me=="0"&&D.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return E("number","number");if(/\d/.test(Me))return D.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),E("number","number");if(Me=="/")return D.eat("*")?(oe.tokenize=$,$(D,oe)):D.eat("/")?(D.skipToEnd(),E("comment","comment")):Va(D,oe,1)?(A(D),D.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),E("regexp","string-2")):(D.eat("="),E("operator","operator",D.current()));if(Me=="`")return oe.tokenize=Q,Q(D,oe);if(Me=="#"&&D.peek()=="!")return D.skipToEnd(),E("meta","meta");if(Me=="#"&&D.eatWhile(ue))return E("variable","property");if(Me=="<"&&D.match("!--")||Me=="-"&&D.match("->")&&!/\S/.test(D.string.slice(0,D.start)))return D.skipToEnd(),E("comment","comment");if(ie.test(Me))return(Me!=">"||!oe.lexical||oe.lexical.type!=">")&&(D.eat("=")?(Me=="!"||Me=="=")&&D.eat("="):/[<>*+\-|&?]/.test(Me)&&(D.eat(Me),Me==">"&&D.eat(Me))),Me=="?"&&D.eat(".")?E("."):E("operator","operator",D.current());if(ue.test(Me)){D.eatWhile(ue);var He=D.current();if(oe.lastType!="."){if(ne.propertyIsEnumerable(He)){var Ft=ne[He];return E(Ft.type,Ft.style,He)}if(He=="async"&&D.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return E("async","keyword",He)}return E("variable","variable",He)}}function V(D){return function(oe,Me){var He=!1,Ft;if(F&&oe.peek()=="@"&&oe.match(Y))return Me.tokenize=k,E("jsonld-keyword","meta");for(;(Ft=oe.next())!=null&&!(Ft==D&&!He);)He=!He&&Ft=="\\";return He||(Me.tokenize=k),E("string","string")}}function $(D,oe){for(var Me=!1,He;He=D.next();){if(He=="/"&&Me){oe.tokenize=k;break}Me=He=="*"}return E("comment","comment")}function Q(D,oe){for(var Me=!1,He;(He=D.next())!=null;){if(!Me&&(He=="`"||He=="$"&&D.eat("{"))){oe.tokenize=k;break}Me=!Me&&He=="\\"}return E("quasi","string-2",D.current())}var W="([{}])";function re(D,oe){oe.fatArrowAt&&(oe.fatArrowAt=null);var Me=D.string.indexOf("=>",D.start);if(!(Me<0)){if(ee){var He=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(D.string.slice(D.start,Me));He&&(Me=He.index)}for(var Ft=0,jt=!1,tr=Me-1;tr>=0;--tr){var ft=D.string.charAt(tr),On=W.indexOf(ft);if(On>=0&&On<3){if(!Ft){++tr;break}if(--Ft==0){ft=="("&&(jt=!0);break}}else if(On>=3&&On<6)++Ft;else if(ue.test(ft))jt=!0;else if(/["'\/`]/.test(ft))for(;;--tr){if(tr==0)return;var as=D.string.charAt(tr-1);if(as==ft&&D.string.charAt(tr-2)!="\\"){tr--;break}}else if(jt&&!Ft){++tr;break}}jt&&!Ft&&(oe.fatArrowAt=tr)}}var K={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function H(D,oe,Me,He,Ft,jt){this.indented=D,this.column=oe,this.type=Me,this.prev=Ft,this.info=jt,He!=null&&(this.align=He)}function fe(D,oe){if(!Z)return!1;for(var Me=D.localVars;Me;Me=Me.next)if(Me.name==oe)return!0;for(var He=D.context;He;He=He.prev)for(var Me=He.vars;Me;Me=Me.next)if(Me.name==oe)return!0}function he(D,oe,Me,He,Ft){var jt=D.cc;for(_.state=D,_.stream=Ft,_.marked=null,_.cc=jt,_.style=oe,D.lexical.hasOwnProperty("align")||(D.lexical.align=!0);;){var tr=jt.length?jt.pop():U?_e:$e;if(tr(Me,He)){for(;jt.length&&jt[jt.length-1].lex;)jt.pop()();return _.marked?_.marked:Me=="variable"&&fe(D,He)?"variable-2":oe}}}var _={state:null,column:null,marked:null,cc:null};function X(){for(var D=arguments.length-1;D>=0;D--)_.cc.push(arguments[D])}function z(){return X.apply(null,arguments),!0}function ge(D,oe){for(var Me=oe;Me;Me=Me.next)if(Me.name==D)return!0;return!1}function Oe(D){var oe=_.state;if(_.marked="def",!!Z){if(oe.context){if(oe.lexical.info=="var"&&oe.context&&oe.context.block){var Me=Ue(D,oe.context);if(Me!=null){oe.context=Me;return}}else if(!ge(D,oe.localVars)){oe.localVars=new Xe(D,oe.localVars);return}}w.globalVars&&!ge(D,oe.globalVars)&&(oe.globalVars=new Xe(D,oe.globalVars))}}function Ue(D,oe){if(oe)if(oe.block){var Me=Ue(D,oe.prev);return Me?Me==oe.prev?oe:new at(Me,oe.vars,!0):null}else return ge(D,oe.vars)?oe:new at(oe.prev,new Xe(D,oe.vars),!1);else return null}function Fe(D){return D=="public"||D=="private"||D=="protected"||D=="abstract"||D=="readonly"}function at(D,oe,Me){this.prev=D,this.vars=oe,this.block=Me}function Xe(D,oe){this.name=D,this.next=oe}var xt=new Xe("this",new Xe("arguments",null));function Pt(){_.state.context=new at(_.state.context,_.state.localVars,!1),_.state.localVars=xt}function Ct(){_.state.context=new at(_.state.context,_.state.localVars,!0),_.state.localVars=null}Pt.lex=Ct.lex=!0;function Le(){_.state.localVars=_.state.context.vars,_.state.context=_.state.context.prev}Le.lex=!0;function Ce(D,oe){var Me=function(){var He=_.state,Ft=He.indented;if(He.lexical.type=="stat")Ft=He.lexical.indented;else for(var jt=He.lexical;jt&&jt.type==")"&&jt.align;jt=jt.prev)Ft=jt.indented;He.lexical=new H(Ft,_.stream.column(),D,null,He.lexical,oe)};return Me.lex=!0,Me}function Se(){var D=_.state;D.lexical.prev&&(D.lexical.type==")"&&(D.indented=D.lexical.indented),D.lexical=D.lexical.prev)}Se.lex=!0;function De(D){function oe(Me){return Me==D?z():D==";"||Me=="}"||Me==")"||Me=="]"?X():z(oe)}return oe}function $e(D,oe){return D=="var"?z(Ce("vardef",oe),hi,De(";"),Se):D=="keyword a"?z(Ce("form"),It,$e,Se):D=="keyword b"?z(Ce("form"),$e,Se):D=="keyword d"?_.stream.match(/^\s*$/,!1)?z():z(Ce("stat"),$t,De(";"),Se):D=="debugger"?z(De(";")):D=="{"?z(Ce("}"),Ct,kt,Se,Le):D==";"?z():D=="if"?(_.state.lexical.info=="else"&&_.state.cc[_.state.cc.length-1]==Se&&_.state.cc.pop()(),z(Ce("form"),It,$e,Se,_n)):D=="function"?z(fn):D=="for"?z(Ce("form"),Ct,ei,$e,Le,Se):D=="class"||ee&&oe=="interface"?(_.marked="keyword",z(Ce("form",D=="class"?D:oe),Vn,Se)):D=="variable"?ee&&oe=="declare"?(_.marked="keyword",z($e)):ee&&(oe=="module"||oe=="enum"||oe=="type")&&_.stream.match(/^\s*\w/,!1)?(_.marked="keyword",oe=="enum"?z(Kt):oe=="type"?z(vn,De("operator"),Be,De(";")):z(Ce("form"),_r,De("{"),Ce("}"),kt,Se,Se)):ee&&oe=="namespace"?(_.marked="keyword",z(Ce("form"),_e,$e,Se)):ee&&oe=="abstract"?(_.marked="keyword",z($e)):z(Ce("stat"),et):D=="switch"?z(Ce("form"),It,De("{"),Ce("}","switch"),Ct,kt,Se,Se,Le):D=="case"?z(_e,De(":")):D=="default"?z(De(":")):D=="catch"?z(Ce("form"),Pt,tt,$e,Se,Le):D=="export"?z(Ce("stat"),Cn,Se):D=="import"?z(Ce("stat"),is,Se):D=="async"?z($e):oe=="@"?z(_e,$e):X(Ce("stat"),_e,De(";"),Se)}function tt(D){if(D=="(")return z(An,De(")"))}function _e(D,oe){return Wt(D,oe,!1)}function St(D,oe){return Wt(D,oe,!0)}function It(D){return D!="("?X():z(Ce(")"),$t,De(")"),Se)}function Wt(D,oe,Me){if(_.state.fatArrowAt==_.stream.start){var He=Me?un:Qe;if(D=="(")return z(Pt,Ce(")"),dt(An,")"),Se,De("=>"),He,Le);if(D=="variable")return X(Pt,_r,De("=>"),He,Le)}var Ft=Me?Ot:We;return K.hasOwnProperty(D)?z(Ft):D=="function"?z(fn,Ft):D=="class"||ee&&oe=="interface"?(_.marked="keyword",z(Ce("form"),ho,Se)):D=="keyword c"||D=="async"?z(Me?St:_e):D=="("?z(Ce(")"),$t,De(")"),Se,Ft):D=="operator"||D=="spread"?z(Me?St:_e):D=="["?z(Ce("]"),En,Se,Ft):D=="{"?gt(Mt,"}",null,Ft):D=="quasi"?X(ot,Ft):D=="new"?z(Ir(Me)):z()}function $t(D){return D.match(/[;\}\)\],]/)?X():X(_e)}function We(D,oe){return D==","?z($t):Ot(D,oe,!1)}function Ot(D,oe,Me){var He=Me==!1?We:Ot,Ft=Me==!1?_e:St;if(D=="=>")return z(Pt,Me?un:Qe,Le);if(D=="operator")return/\+\+|--/.test(oe)||ee&&oe=="!"?z(He):ee&&oe=="<"&&_.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?z(Ce(">"),dt(Be,">"),Se,He):oe=="?"?z(_e,De(":"),Ft):z(Ft);if(D=="quasi")return X(ot,He);if(D!=";"){if(D=="(")return gt(St,")","call",He);if(D==".")return z(mt,He);if(D=="[")return z(Ce("]"),$t,De("]"),Se,He);if(ee&&oe=="as")return _.marked="keyword",z(Be,He);if(D=="regexp")return _.state.lastType=_.marked="operator",_.stream.backUp(_.stream.pos-_.stream.start-1),z(Ft)}}function ot(D,oe){return D!="quasi"?X():oe.slice(oe.length-2)!="${"?z(ot):z($t,qr)}function qr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=Q,z(ot)}function Qe(D){return re(_.stream,_.state),X(D=="{"?$e:_e)}function un(D){return re(_.stream,_.state),X(D=="{"?$e:St)}function Ir(D){return function(oe){return oe=="."?z(D?pr:Or):oe=="variable"&&ee?z(jn,D?Ot:We):X(D?St:_e)}}function Or(D,oe){if(oe=="target")return _.marked="keyword",z(We)}function pr(D,oe){if(oe=="target")return _.marked="keyword",z(Ot)}function et(D){return D==":"?z(Se,$e):X(We,De(";"),Se)}function mt(D){if(D=="variable")return _.marked="property",z()}function Mt(D,oe){if(D=="async")return _.marked="property",z(Mt);if(D=="variable"||_.style=="keyword"){if(_.marked="property",oe=="get"||oe=="set")return z(Tt);var Me;return ee&&_.state.fatArrowAt==_.stream.start&&(Me=_.stream.match(/^\s*:\s*/,!1))&&(_.state.fatArrowAt=_.stream.pos+Me[0].length),z(Rt)}else{if(D=="number"||D=="string")return _.marked=F?"property":_.style+" property",z(Rt);if(D=="jsonld-keyword")return z(Rt);if(ee&&Fe(oe))return _.marked="keyword",z(Mt);if(D=="[")return z(_e,st,De("]"),Rt);if(D=="spread")return z(St,Rt);if(oe=="*")return _.marked="keyword",z(Mt);if(D==":")return X(Rt)}}function Tt(D){return D!="variable"?X(Rt):(_.marked="property",z(fn))}function Rt(D){if(D==":")return z(St);if(D=="(")return X(fn)}function dt(D,oe,Me){function He(Ft,jt){if(Me?Me.indexOf(Ft)>-1:Ft==","){var tr=_.state.lexical;return tr.info=="call"&&(tr.pos=(tr.pos||0)+1),z(function(ft,On){return ft==oe||On==oe?X():X(D)},He)}return Ft==oe||jt==oe?z():Me&&Me.indexOf(";")>-1?X(D):z(De(oe))}return function(Ft,jt){return Ft==oe||jt==oe?z():X(D,He)}}function gt(D,oe,Me){for(var He=3;He<arguments.length;He++)_.cc.push(arguments[He]);return z(Ce(oe,Me),dt(D,oe),Se)}function kt(D){return D=="}"?z():X($e,kt)}function st(D,oe){if(ee){if(D==":")return z(Be);if(oe=="?")return z(st)}}function Ve(D,oe){if(ee&&(D==":"||oe=="in"))return z(Be)}function ce(D){if(ee&&D==":")return _.stream.match(/^\s*\w+\s+is\b/,!1)?z(_e,be,Be):z(Be)}function be(D,oe){if(oe=="is")return _.marked="keyword",z()}function Be(D,oe){if(oe=="keyof"||oe=="typeof"||oe=="infer"||oe=="readonly")return _.marked="keyword",z(oe=="typeof"?St:Be);if(D=="variable"||oe=="void")return _.marked="type",z(Cr);if(oe=="|"||oe=="&")return z(Be);if(D=="string"||D=="number"||D=="atom")return z(Cr);if(D=="[")return z(Ce("]"),dt(Be,"]",","),Se,Cr);if(D=="{")return z(Ce("}"),lt,Se,Cr);if(D=="(")return z(dt(At,")"),Ke,Cr);if(D=="<")return z(dt(Be,">"),Be);if(D=="quasi")return X(_t,Cr)}function Ke(D){if(D=="=>")return z(Be)}function lt(D){return D.match(/[\}\)\]]/)?z():D==","||D==";"?z(lt):X(nt,lt)}function nt(D,oe){if(D=="variable"||_.style=="keyword")return _.marked="property",z(nt);if(oe=="?"||D=="number"||D=="string")return z(nt);if(D==":")return z(Be);if(D=="[")return z(De("variable"),Ve,De("]"),nt);if(D=="(")return X(hn,nt);if(!D.match(/[;\}\)\],]/))return z()}function _t(D,oe){return D!="quasi"?X():oe.slice(oe.length-2)!="${"?z(_t):z(Be,lr)}function lr(D){if(D=="}")return _.marked="string-2",_.state.tokenize=Q,z(_t)}function At(D,oe){return D=="variable"&&_.stream.match(/^\s*[?:]/,!1)||oe=="?"?z(At):D==":"?z(Be):D=="spread"?z(At):X(Be)}function Cr(D,oe){if(oe=="<")return z(Ce(">"),dt(Be,">"),Se,Cr);if(oe=="|"||D=="."||oe=="&")return z(Be);if(D=="[")return z(Be,De("]"),Cr);if(oe=="extends"||oe=="implements")return _.marked="keyword",z(Be);if(oe=="?")return z(Be,De(":"),Be)}function jn(D,oe){if(oe=="<")return z(Ce(">"),dt(Be,">"),Se,Cr)}function $r(){return X(Be,Kr)}function Kr(D,oe){if(oe=="=")return z(Be)}function hi(D,oe){return oe=="enum"?(_.marked="keyword",z(Kt)):X(_r,st,er,mi)}function _r(D,oe){if(ee&&Fe(oe))return _.marked="keyword",z(_r);if(D=="variable")return Oe(oe),z();if(D=="spread")return z(_r);if(D=="[")return gt(gi,"]");if(D=="{")return gt(vi,"}")}function vi(D,oe){return D=="variable"&&!_.stream.match(/^\s*:/,!1)?(Oe(oe),z(er)):(D=="variable"&&(_.marked="property"),D=="spread"?z(_r):D=="}"?X():D=="["?z(_e,De("]"),De(":"),vi):z(De(":"),_r,er))}function gi(){return X(_r,er)}function er(D,oe){if(oe=="=")return z(St)}function mi(D){if(D==",")return z(hi)}function _n(D,oe){if(D=="keyword b"&&oe=="else")return z(Ce("form","else"),$e,Se)}function ei(D,oe){if(oe=="await")return z(ei);if(D=="(")return z(Ce(")"),na,Se)}function na(D){return D=="var"?z(hi,pn):D=="variable"?z(pn):X(pn)}function pn(D,oe){return D==")"?z():D==";"?z(pn):oe=="in"||oe=="of"?(_.marked="keyword",z(_e,pn)):X(_e,pn)}function fn(D,oe){if(oe=="*")return _.marked="keyword",z(fn);if(D=="variable")return Oe(oe),z(fn);if(D=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,$e,Le);if(ee&&oe=="<")return z(Ce(">"),dt($r,">"),Se,fn)}function hn(D,oe){if(oe=="*")return _.marked="keyword",z(hn);if(D=="variable")return Oe(oe),z(hn);if(D=="(")return z(Pt,Ce(")"),dt(An,")"),Se,ce,Le);if(ee&&oe=="<")return z(Ce(">"),dt($r,">"),Se,hn)}function vn(D,oe){if(D=="keyword"||D=="variable")return _.marked="type",z(vn);if(oe=="<")return z(Ce(">"),dt($r,">"),Se)}function An(D,oe){return oe=="@"&&z(_e,An),D=="spread"?z(An):ee&&Fe(oe)?(_.marked="keyword",z(An)):ee&&D=="this"?z(st,er):X(_r,st,er)}function ho(D,oe){return D=="variable"?Vn(D,oe):en(D,oe)}function Vn(D,oe){if(D=="variable")return Oe(oe),z(en)}function en(D,oe){if(oe=="<")return z(Ce(">"),dt($r,">"),Se,en);if(oe=="extends"||oe=="implements"||ee&&D==",")return oe=="implements"&&(_.marked="keyword"),z(ee?Be:_e,en);if(D=="{")return z(Ce("}"),kr,Se)}function kr(D,oe){if(D=="async"||D=="variable"&&(oe=="static"||oe=="get"||oe=="set"||ee&&Fe(oe))&&_.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return _.marked="keyword",z(kr);if(D=="variable"||_.style=="keyword")return _.marked="property",z(yi,kr);if(D=="number"||D=="string")return z(yi,kr);if(D=="[")return z(_e,st,De("]"),yi,kr);if(oe=="*")return _.marked="keyword",z(kr);if(ee&&D=="(")return X(hn,kr);if(D==";"||D==",")return z(kr);if(D=="}")return z();if(oe=="@")return z(_e,kr)}function yi(D,oe){if(oe=="!"||oe=="?")return z(yi);if(D==":")return z(Be,er);if(oe=="=")return z(St);var Me=_.state.lexical.prev,He=Me&&Me.info=="interface";return X(He?hn:fn)}function Cn(D,oe){return oe=="*"?(_.marked="keyword",z(aa,De(";"))):oe=="default"?(_.marked="keyword",z(_e,De(";"))):D=="{"?z(dt(ia,"}"),aa,De(";")):X($e)}function ia(D,oe){if(oe=="as")return _.marked="keyword",z(De("variable"));if(D=="variable")return X(St,ia)}function is(D){return D=="string"?z():D=="("?X(_e):D=="."?X(We):X(mr,ut,aa)}function mr(D,oe){return D=="{"?gt(mr,"}"):(D=="variable"&&Oe(oe),oe=="*"&&(_.marked="keyword"),z(bi))}function ut(D){if(D==",")return z(mr,ut)}function bi(D,oe){if(oe=="as")return _.marked="keyword",z(mr)}function aa(D,oe){if(oe=="from")return _.marked="keyword",z(_e)}function En(D){return D=="]"?z():X(dt(St,"]"))}function Kt(){return X(Ce("form"),_r,De("{"),Ce("}"),dt(xi,"}"),Se,Se)}function xi(){return X(_r,er)}function oa(D,oe){return D.lastType=="operator"||D.lastType==","||ie.test(oe.charAt(0))||/[,.]/.test(oe.charAt(0))}function Va(D,oe,Me){return oe.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(oe.lastType)||oe.lastType=="quasi"&&/\{\s*$/.test(D.string.slice(0,D.pos-(Me||0)))}return{startState:function(D){var oe={tokenize:k,lastType:"sof",cc:[],lexical:new H((D||0)-C,0,"block",!1),localVars:w.localVars,context:w.localVars&&new at(null,null,!1),indented:D||0};return w.globalVars&&typeof w.globalVars=="object"&&(oe.globalVars=w.globalVars),oe},token:function(D,oe){if(D.sol()&&(oe.lexical.hasOwnProperty("align")||(oe.lexical.align=!1),oe.indented=D.indentation(),re(D,oe)),oe.tokenize!=$&&D.eatSpace())return null;var Me=oe.tokenize(D,oe);return J=="comment"?Me:(oe.lastType=J=="operator"&&(N=="++"||N=="--")?"incdec":J,he(oe,Me,J,N,D))},indent:function(D,oe){if(D.tokenize==$||D.tokenize==Q)return d.Pass;if(D.tokenize!=k)return 0;var Me=oe&&oe.charAt(0),He=D.lexical,Ft;if(!/^\s*else\b/.test(oe))for(var jt=D.cc.length-1;jt>=0;--jt){var tr=D.cc[jt];if(tr==Se)He=He.prev;else if(tr!=_n&&tr!=Le)break}for(;(He.type=="stat"||He.type=="form")&&(Me=="}"||(Ft=D.cc[D.cc.length-1])&&(Ft==We||Ft==Ot)&&!/^[,\.=+\-*:?[\(]/.test(oe));)He=He.prev;T&&He.type==")"&&He.prev.type=="stat"&&(He=He.prev);var ft=He.type,On=Me==ft;return ft=="vardef"?He.indented+(D.lastType=="operator"||D.lastType==","?He.info.length+1:0):ft=="form"&&Me=="{"?He.indented:ft=="form"?He.indented+C:ft=="stat"?He.indented+(oa(D,oe)?T||C:0):He.info=="switch"&&!On&&w.doubleIndentSwitch!=!1?He.indented+(/^(?:case|default)\b/.test(oe)?C:2*C):He.align?He.column+(On?0:1):He.indented+(On?0:C)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:U?null:"/*",blockCommentEnd:U?null:"*/",blockCommentContinue:U?null:" * ",lineComment:U?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:U?"json":"javascript",jsonldMode:F,jsonMode:U,expressionAllowed:Va,skipExpression:function(D){he(D,"atom","atom","true",new d.StringStream("",2,null))}}}),d.registerHelper("wordChars","javascript",/[\w$]/),d.defineMIME("text/javascript","javascript"),d.defineMIME("text/ecmascript","javascript"),d.defineMIME("application/javascript","javascript"),d.defineMIME("application/x-javascript","javascript"),d.defineMIME("application/ecmascript","javascript"),d.defineMIME("application/json",{name:"javascript",json:!0}),d.defineMIME("application/x-json",{name:"javascript",json:!0}),d.defineMIME("application/manifest+json",{name:"javascript",json:!0}),d.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),d.defineMIME("text/typescript",{name:"javascript",typescript:!0}),d.defineMIME("application/typescript",{name:"javascript",typescript:!0})})},13421:(h,O)=>{"use strict";/*!
37
+ * cookie
38
+ * Copyright(c) 2012-2014 Roman Shtylman
39
+ * Copyright(c) 2015 Douglas Christopher Wilson
40
+ * MIT Licensed
41
+ */O.parse=x,O.serialize=w;var o=Object.prototype.toString,d=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function x(Z,ee){if(typeof Z!="string")throw new TypeError("argument str must be a string");for(var ue={},ne=ee||{},ie=ne.decode||C,Y=0;Y<Z.length;){var A=Z.indexOf("=",Y);if(A===-1)break;var J=Z.indexOf(";",Y);if(J===-1)J=Z.length;else if(J<A){Y=Z.lastIndexOf(";",A-1)+1;continue}var N=Z.slice(Y,A).trim();if(ue[N]===void 0){var E=Z.slice(A+1,J).trim();E.charCodeAt(0)===34&&(E=E.slice(1,-1)),ue[N]=U(E,ie)}Y=J+1}return ue}function w(Z,ee,ue){var ne=ue||{},ie=ne.encode||T;if(typeof ie!="function")throw new TypeError("option encode is invalid");if(!d.test(Z))throw new TypeError("argument name is invalid");var Y=ie(ee);if(Y&&!d.test(Y))throw new TypeError("argument val is invalid");var A=Z+"="+Y;if(ne.maxAge!=null){var J=ne.maxAge-0;if(isNaN(J)||!isFinite(J))throw new TypeError("option maxAge is invalid");A+="; Max-Age="+Math.floor(J)}if(ne.domain){if(!d.test(ne.domain))throw new TypeError("option domain is invalid");A+="; Domain="+ne.domain}if(ne.path){if(!d.test(ne.path))throw new TypeError("option path is invalid");A+="; Path="+ne.path}if(ne.expires){var N=ne.expires;if(!F(N)||isNaN(N.valueOf()))throw new TypeError("option expires is invalid");A+="; Expires="+N.toUTCString()}if(ne.httpOnly&&(A+="; HttpOnly"),ne.secure&&(A+="; Secure"),ne.priority){var E=typeof ne.priority=="string"?ne.priority.toLowerCase():ne.priority;switch(E){case"low":A+="; Priority=Low";break;case"medium":A+="; Priority=Medium";break;case"high":A+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(ne.sameSite){var k=typeof ne.sameSite=="string"?ne.sameSite.toLowerCase():ne.sameSite;switch(k){case!0:A+="; SameSite=Strict";break;case"lax":A+="; SameSite=Lax";break;case"strict":A+="; SameSite=Strict";break;case"none":A+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return A}function C(Z){return Z.indexOf("%")!==-1?decodeURIComponent(Z):Z}function T(Z){return encodeURIComponent(Z)}function F(Z){return o.call(Z)==="[object Date]"||Z instanceof Date}function U(Z,ee){try{return ee(Z)}catch(ue){return Z}}},27129:(h,O,o)=>{var d=o(53822);h.exports=d},86250:(h,O,o)=>{var d=o(21434);h.exports=d},61347:(h,O,o)=>{var d=o(27710);h.exports=d},42142:(h,O,o)=>{var d=o(31585);h.exports=d},21106:(h,O,o)=>{var d=o(55603);h.exports=d},97497:(h,O,o)=>{var d=o(31206);h.exports=d},28385:(h,O,o)=>{var d=o(26174);h.exports=d},85874:(h,O,o)=>{var d=o(87511);h.exports=d},86843:(h,O,o)=>{var d=o(24741);h.exports=d},37528:(h,O,o)=>{var d=o(4963);h.exports=d},81471:(h,O,o)=>{var d=o(21025);h.exports=d},5271:(h,O,o)=>{var d=o(27820);h.exports=d},87275:(h,O,o)=>{var d=o(74194);h.exports=d},13772:(h,O,o)=>{var d=o(32854);h.exports=d},97574:(h,O,o)=>{var d=o(60002);h.exports=d},69373:(h,O,o)=>{var d=o(28980);h.exports=d},70033:(h,O,o)=>{var d=o(45636);h.exports=d},77443:(h,O,o)=>{var d=o(66672);h.exports=d},88362:(h,O,o)=>{var d=o(46618);h.exports=d},89821:(h,O,o)=>{var d=o(42285);o(9031),h.exports=d},8008:(h,O,o)=>{var d=o(58535);h.exports=d},30164:(h,O,o)=>{var d=o(16042);h.exports=d},52221:(h,O,o)=>{o(5454),o(19173);var d=o(57545);h.exports=d.Array.from},75078:(h,O,o)=>{o(8118);var d=o(57545);h.exports=d.Array.isArray},66135:(h,O,o)=>{o(59106);var d=o(45607);h.exports=d("Array").concat},77237:(h,O,o)=>{o(98939),o(46663);var d=o(45607);h.exports=d("Array").entries},83971:(h,O,o)=>{o(73436);var d=o(45607);h.exports=d("Array").filter},42087:(h,O,o)=>{o(10880);var d=o(45607);h.exports=d("Array").find},60098:(h,O,o)=>{o(9823);var d=o(45607);h.exports=d("Array").forEach},54216:(h,O,o)=>{o(70024);var d=o(45607);h.exports=d("Array").includes},92089:(h,O,o)=>{o(62276);var d=o(45607);h.exports=d("Array").indexOf},6209:(h,O,o)=>{o(63838);var d=o(45607);h.exports=d("Array").map},49922:(h,O,o)=>{o(99523);var d=o(45607);h.exports=d("Array").reverse},52671:(h,O,o)=>{o(65818);var d=o(45607);h.exports=d("Array").slice},51375:(h,O,o)=>{o(12178);var d=o(45607);h.exports=d("Array").splice},65739:(h,O,o)=>{o(98939),o(5454);var d=o(78703);h.exports=d},74030:(h,O,o)=>{o(25067),h.exports=o(98576)},41484:(h,O,o)=>{var d=o(8902),x=o(66135),w=Array.prototype;h.exports=function(C){var T=C.concat;return C===w||d(w,C)&&T===w.concat?x:T}},53669:(h,O,o)=>{var d=o(8902),x=o(83971),w=Array.prototype;h.exports=function(C){var T=C.filter;return C===w||d(w,C)&&T===w.filter?x:T}},37506:(h,O,o)=>{var d=o(8902),x=o(42087),w=Array.prototype;h.exports=function(C){var T=C.find;return C===w||d(w,C)&&T===w.find?x:T}},13173:(h,O,o)=>{var d=o(8902),x=o(54216),w=o(62840),C=Array.prototype,T=String.prototype;h.exports=function(F){var U=F.includes;return F===C||d(C,F)&&U===C.includes?x:typeof F=="string"||F===T||d(T,F)&&U===T.includes?w:U}},92604:(h,O,o)=>{var d=o(8902),x=o(92089),w=Array.prototype;h.exports=function(C){var T=C.indexOf;return C===w||d(w,C)&&T===w.indexOf?x:T}},263:(h,O,o)=>{var d=o(8902),x=o(6209),w=Array.prototype;h.exports=function(C){var T=C.map;return C===w||d(w,C)&&T===w.map?x:T}},80432:(h,O,o)=>{var d=o(8902),x=o(49922),w=Array.prototype;h.exports=function(C){var T=C.reverse;return C===w||d(w,C)&&T===w.reverse?x:T}},77663:(h,O,o)=>{var d=o(8902),x=o(52671),w=Array.prototype;h.exports=function(C){var T=C.slice;return C===w||d(w,C)&&T===w.slice?x:T}},45063:(h,O,o)=>{var d=o(8902),x=o(51375),w=Array.prototype;h.exports=function(C){var T=C.splice;return C===w||d(w,C)&&T===w.splice?x:T}},7769:(h,O,o)=>{var d=o(8902),x=o(14820),w=String.prototype;h.exports=function(C){var T=C.startsWith;return typeof C=="string"||C===w||d(w,C)&&T===w.startsWith?x:T}},96056:(h,O,o)=>{o(59704);var d=o(57545),x=o(86298);d.JSON||(d.JSON={stringify:JSON.stringify}),h.exports=function(C,T,F){return x(d.JSON.stringify,null,arguments)}},99936:(h,O,o)=>{o(93582);var d=o(57545);h.exports=d.Object.assign},23213:(h,O,o)=>{o(73113);var d=o(57545),x=d.Object;h.exports=function(C,T){return x.create(C,T)}},38724:(h,O,o)=>{o(57585);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.defineProperties(T,F)};x.defineProperties.sham&&(w.sham=!0)},63512:(h,O,o)=>{o(20297);var d=o(57545),x=d.Object,w=h.exports=function(T,F,U){return x.defineProperty(T,F,U)};x.defineProperty.sham&&(w.sham=!0)},2335:(h,O,o)=>{o(27442);var d=o(57545);h.exports=d.Object.entries},60632:(h,O,o)=>{o(89189);var d=o(57545),x=d.Object,w=h.exports=function(T,F){return x.getOwnPropertyDescriptor(T,F)};x.getOwnPropertyDescriptor.sham&&(w.sham=!0)},81056:(h,O,o)=>{o(62509);var d=o(57545);h.exports=d.Object.getOwnPropertyDescriptors},12921:(h,O,o)=>{o(36187);var d=o(57545);h.exports=d.Object.getOwnPropertySymbols},8168:(h,O,o)=>{o(19234);var d=o(57545);h.exports=d.Object.getPrototypeOf},38651:(h,O,o)=>{o(92647);var d=o(57545);h.exports=d.Object.keys},33083:(h,O,o)=>{o(13222);var d=o(57545);h.exports=d.Object.setPrototypeOf},93154:(h,O,o)=>{o(4242),o(98939),o(46663),o(59021),o(97884),o(78885),o(91868),o(5454);var d=o(57545);h.exports=d.Promise},62840:(h,O,o)=>{o(39247);var d=o(45607);h.exports=d("String").includes},14820:(h,O,o)=>{o(32991);var d=o(45607);h.exports=d("String").startsWith},85008:(h,O,o)=>{o(59106),o(46663),o(36187),o(19781),o(50492),o(66681),o(29594),o(63665),o(29017),o(11250),o(79786),o(90503),o(16565),o(69322),o(13610),o(36886),o(33514),o(68671),o(58556),o(71367);var d=o(57545);h.exports=d.Symbol},994:(h,O,o)=>{o(98939),o(46663),o(5454),o(63665);var d=o(89207);h.exports=d.f("iterator")},30290:(h,O,o)=>{o(12432),o(13610);var d=o(89207);h.exports=d.f("toPrimitive")},31293:(h,O,o)=>{o(98939),o(46663),o(33983);var d=o(57545);h.exports=d.WeakMap},62813:(h,O,o)=>{h.exports=o(52708)},68664:(h,O,o)=>{h.exports=o(58541)},21457:(h,O,o)=>{h.exports=o(37020)},36516:(h,O,o)=>{h.exports=o(79987)},87611:(h,O,o)=>{h.exports=o(86812)},4161:(h,O,o)=>{h.exports=o(51024)},75159:(h,O,o)=>{h.exports=o(32747)},87708:(h,O,o)=>{h.exports=o(85918)},42937:(h,O,o)=>{h.exports=o(21626)},69297:(h,O,o)=>{h.exports=o(77021)},10353:(h,O,o)=>{h.exports=o(18281)},8026:(h,O,o)=>{h.exports=o(90229)},67362:(h,O,o)=>{h.exports=o(53949)},57532:(h,O,o)=>{h.exports=o(11795)},61903:(h,O,o)=>{h.exports=o(75090)},42044:(h,O,o)=>{h.exports=o(27994)},60902:(h,O,o)=>{h.exports=o(45483)},2214:(h,O,o)=>{h.exports=o(35796)},983:(h,O,o)=>{h.exports=o(79918)},59256:(h,O,o)=>{h.exports=o(82185)},95659:(h,O,o)=>{h.exports=o(39982)},93698:(h,O,o)=>{h.exports=o(88241)},52708:(h,O,o)=>{var d=o(27129);h.exports=d},58541:(h,O,o)=>{var d=o(86250);h.exports=d},37020:(h,O,o)=>{var d=o(61347);h.exports=d},79987:(h,O,o)=>{o(5363);var d=o(42142);h.exports=d},86812:(h,O,o)=>{var d=o(21106);h.exports=d},51024:(h,O,o)=>{var d=o(97497);h.exports=d},32747:(h,O,o)=>{var d=o(28385);h.exports=d},85918:(h,O,o)=>{var d=o(85874);h.exports=d},21626:(h,O,o)=>{var d=o(86843);h.exports=d},77021:(h,O,o)=>{var d=o(37528);h.exports=d},18281:(h,O,o)=>{var d=o(81471);h.exports=d},90229:(h,O,o)=>{var d=o(5271);h.exports=d},53949:(h,O,o)=>{var d=o(87275);h.exports=d},11795:(h,O,o)=>{var d=o(13772);h.exports=d},75090:(h,O,o)=>{var d=o(97574);h.exports=d},27994:(h,O,o)=>{var d=o(69373);h.exports=d},45483:(h,O,o)=>{var d=o(70033);h.exports=d},35796:(h,O,o)=>{var d=o(77443);h.exports=d},79918:(h,O,o)=>{var d=o(88362);o(12752),o(14562),o(25363),o(69355),h.exports=d},82185:(h,O,o)=>{var d=o(89821);o(60177),o(96658),o(54212),o(18658),o(71875),o(54592),o(26680),h.exports=d},39982:(h,O,o)=>{var d=o(8008);h.exports=d},88241:(h,O,o)=>{var d=o(30164);h.exports=d},66235:(h,O,o)=>{var d=o(16447),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a function")}},71404:(h,O,o)=>{var d=o(22091),x=o(79288),w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not a constructor")}},7757:(h,O,o)=>{var d=o(16447),x=String,w=TypeError;h.exports=function(C){if(typeof C=="object"||d(C))return C;throw w("Can't set "+x(C)+" as a prototype")}},67423:h=>{h.exports=function(){}},46961:(h,O,o)=>{var d=o(8902),x=TypeError;h.exports=function(w,C){if(d(C,w))return w;throw x("Incorrect invocation")}},31138:(h,O,o)=>{var d=o(35744),x=String,w=TypeError;h.exports=function(C){if(d(C))return C;throw w(x(C)+" is not an object")}},80410:(h,O,o)=>{var d=o(76192);h.exports=d(function(){if(typeof ArrayBuffer=="function"){var x=new ArrayBuffer(8);Object.isExtensible(x)&&Object.defineProperty(x,"a",{value:8})}})},87397:(h,O,o)=>{"use strict";var d=o(50454).forEach,x=o(10424),w=x("forEach");h.exports=w?[].forEach:function(T){return d(this,T,arguments.length>1?arguments[1]:void 0)}},20841:(h,O,o)=>{"use strict";var d=o(8043),x=o(18922),w=o(71795),C=o(21635),T=o(96109),F=o(22091),U=o(84104),Z=o(49361),ee=o(61669),ue=o(78703),ne=Array;h.exports=function(Y){var A=w(Y),J=F(this),N=arguments.length,E=N>1?arguments[1]:void 0,k=E!==void 0;k&&(E=d(E,N>2?arguments[2]:void 0));var V=ue(A),$=0,Q,W,re,K,H,fe;if(V&&!(this===ne&&T(V)))for(K=ee(A,V),H=K.next,W=J?new this:[];!(re=x(H,K)).done;$++)fe=k?C(K,E,[re.value,$],!0):re.value,Z(W,$,fe);else for(Q=U(A),W=J?new this(Q):ne(Q);Q>$;$++)fe=k?E(A[$],$):A[$],Z(W,$,fe);return W.length=$,W}},48180:(h,O,o)=>{var d=o(20101),x=o(97739),w=o(84104),C=function(T){return function(F,U,Z){var ee=d(F),ue=w(ee),ne=x(Z,ue),ie;if(T&&U!=U){for(;ue>ne;)if(ie=ee[ne++],ie!=ie)return!0}else for(;ue>ne;ne++)if((T||ne in ee)&&ee[ne]===U)return T||ne||0;return!T&&-1}};h.exports={includes:C(!0),indexOf:C(!1)}},50454:(h,O,o)=>{var d=o(8043),x=o(84120),w=o(2202),C=o(71795),T=o(84104),F=o(71321),U=x([].push),Z=function(ee){var ue=ee==1,ne=ee==2,ie=ee==3,Y=ee==4,A=ee==6,J=ee==7,N=ee==5||A;return function(E,k,V,$){for(var Q=C(E),W=w(Q),re=d(k,V),K=T(W),H=0,fe=$||F,he=ue?fe(E,K):ne||J?fe(E,0):void 0,_,X;K>H;H++)if((N||H in W)&&(_=W[H],X=re(_,H,Q),ee))if(ue)he[H]=X;else if(X)switch(ee){case 3:return!0;case 5:return _;case 6:return H;case 2:U(he,_)}else switch(ee){case 4:return!1;case 7:U(he,_)}return A?-1:ie||Y?Y:he}};h.exports={forEach:Z(0),map:Z(1),filter:Z(2),some:Z(3),every:Z(4),find:Z(5),findIndex:Z(6),filterReject:Z(7)}},90242:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(14218),C=x("species");h.exports=function(T){return w>=51||!d(function(){var F=[],U=F.constructor={};return U[C]=function(){return{foo:1}},F[T](Boolean).foo!==1})}},10424:(h,O,o)=>{"use strict";var d=o(76192);h.exports=function(x,w){var C=[][x];return!!C&&d(function(){C.call(null,w||function(){return 1},1)})}},95072:(h,O,o)=>{"use strict";var d=o(50069),x=o(34770),w=TypeError,C=Object.getOwnPropertyDescriptor,T=d&&!function(){if(this!==void 0)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(F){return F instanceof TypeError}}();h.exports=T?function(F,U){if(x(F)&&!C(F,"length").writable)throw w("Cannot set read only .length");return F.length=U}:function(F,U){return F.length=U}},1923:(h,O,o)=>{var d=o(97739),x=o(84104),w=o(49361),C=Array,T=Math.max;h.exports=function(F,U,Z){for(var ee=x(F),ue=d(U,ee),ne=d(Z===void 0?ee:Z,ee),ie=C(T(ne-ue,0)),Y=0;ue<ne;ue++,Y++)w(ie,Y,F[ue]);return ie.length=Y,ie}},93096:(h,O,o)=>{var d=o(84120);h.exports=d([].slice)},6614:(h,O,o)=>{var d=o(1923),x=Math.floor,w=function(F,U){var Z=F.length,ee=x(Z/2);return Z<8?C(F,U):T(F,w(d(F,0,ee),U),w(d(F,ee),U),U)},C=function(F,U){for(var Z=F.length,ee=1,ue,ne;ee<Z;){for(ne=ee,ue=F[ee];ne&&U(F[ne-1],ue)>0;)F[ne]=F[--ne];ne!==ee++&&(F[ne]=ue)}return F},T=function(F,U,Z,ee){for(var ue=U.length,ne=Z.length,ie=0,Y=0;ie<ue||Y<ne;)F[ie+Y]=ie<ue&&Y<ne?ee(U[ie],Z[Y])<=0?U[ie++]:Z[Y++]:ie<ue?U[ie++]:Z[Y++];return F};h.exports=w},83712:(h,O,o)=>{var d=o(34770),x=o(22091),w=o(35744),C=o(18182),T=C("species"),F=Array;h.exports=function(U){var Z;return d(U)&&(Z=U.constructor,x(Z)&&(Z===F||d(Z.prototype))?Z=void 0:w(Z)&&(Z=Z[T],Z===null&&(Z=void 0))),Z===void 0?F:Z}},71321:(h,O,o)=>{var d=o(83712);h.exports=function(x,w){return new(d(x))(w===0?0:w)}},21635:(h,O,o)=>{var d=o(31138),x=o(66639);h.exports=function(w,C,T,F){try{return F?C(d(T)[0],T[1]):C(T)}catch(U){x(w,"throw",U)}}},19770:(h,O,o)=>{var d=o(18182),x=d("iterator"),w=!1;try{var C=0,T={next:function(){return{done:!!C++}},return:function(){w=!0}};T[x]=function(){return this},Array.from(T,function(){throw 2})}catch(F){}h.exports=function(F,U){if(!U&&!w)return!1;var Z=!1;try{var ee={};ee[x]=function(){return{next:function(){return{done:Z=!0}}}},F(ee)}catch(ue){}return Z}},29272:(h,O,o)=>{var d=o(84120),x=d({}.toString),w=d("".slice);h.exports=function(C){return w(x(C),8,-1)}},4696:(h,O,o)=>{var d=o(83471),x=o(16447),w=o(29272),C=o(18182),T=C("toStringTag"),F=Object,U=w(function(){return arguments}())=="Arguments",Z=function(ee,ue){try{return ee[ue]}catch(ne){}};h.exports=d?w:function(ee){var ue,ne,ie;return ee===void 0?"Undefined":ee===null?"Null":typeof(ne=Z(ue=F(ee),T))=="string"?ne:U?w(ue):(ie=w(ue))=="Object"&&x(ue.callee)?"Arguments":ie}},51057:(h,O,o)=>{"use strict";var d=o(84120),x=o(35090),w=o(32861).getWeakData,C=o(46961),T=o(31138),F=o(75646),U=o(35744),Z=o(33442),ee=o(50454),ue=o(64500),ne=o(73326),ie=ne.set,Y=ne.getterFor,A=ee.find,J=ee.findIndex,N=d([].splice),E=0,k=function(Q){return Q.frozen||(Q.frozen=new V)},V=function(){this.entries=[]},$=function(Q,W){return A(Q.entries,function(re){return re[0]===W})};V.prototype={get:function(Q){var W=$(this,Q);if(W)return W[1]},has:function(Q){return!!$(this,Q)},set:function(Q,W){var re=$(this,Q);re?re[1]=W:this.entries.push([Q,W])},delete:function(Q){var W=J(this.entries,function(re){return re[0]===Q});return~W&&N(this.entries,W,1),!!~W}},h.exports={getConstructor:function(Q,W,re,K){var H=Q(function(X,z){C(X,fe),ie(X,{type:W,id:E++,frozen:void 0}),F(z)||Z(z,X[K],{that:X,AS_ENTRIES:re})}),fe=H.prototype,he=Y(W),_=function(X,z,ge){var Oe=he(X),Ue=w(T(z),!0);return Ue===!0?k(Oe).set(z,ge):Ue[Oe.id]=ge,X};return x(fe,{delete:function(X){var z=he(this);if(!U(X))return!1;var ge=w(X);return ge===!0?k(z).delete(X):ge&&ue(ge,z.id)&&delete ge[z.id]},has:function(z){var ge=he(this);if(!U(z))return!1;var Oe=w(z);return Oe===!0?k(ge).has(z):Oe&&ue(Oe,ge.id)}}),x(fe,re?{get:function(z){var ge=he(this);if(U(z)){var Oe=w(z);return Oe===!0?k(ge).get(z):Oe?Oe[ge.id]:void 0}},set:function(z,ge){return _(this,z,ge)}}:{add:function(z){return _(this,z,!0)}}),H}}},34535:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(32861),C=o(76192),T=o(98711),F=o(33442),U=o(46961),Z=o(16447),ee=o(35744),ue=o(11284),ne=o(42760).f,ie=o(50454).forEach,Y=o(50069),A=o(73326),J=A.set,N=A.getterFor;h.exports=function(E,k,V){var $=E.indexOf("Map")!==-1,Q=E.indexOf("Weak")!==-1,W=$?"set":"add",re=x[E],K=re&&re.prototype,H={},fe;if(!Y||!Z(re)||!(Q||K.forEach&&!C(function(){new re().entries().next()})))fe=V.getConstructor(k,E,$,W),w.enable();else{fe=k(function(X,z){J(U(X,he),{type:E,collection:new re}),z!=null&&F(z,X[W],{that:X,AS_ENTRIES:$})});var he=fe.prototype,_=N(E);ie(["add","clear","delete","forEach","get","has","set","keys","values","entries"],function(X){var z=X=="add"||X=="set";X in K&&!(Q&&X=="clear")&&T(he,X,function(ge,Oe){var Ue=_(this).collection;if(!z&&Q&&!ee(ge))return X=="get"?void 0:!1;var Fe=Ue[X](ge===0?0:ge,Oe);return z?this:Fe})}),Q||ne(he,"size",{configurable:!0,get:function(){return _(this).collection.size}})}return ue(fe,E,!1,!0),H[E]=fe,d({global:!0,forced:!0},H),Q||V.setStrong(fe,E,$),fe}},97987:(h,O,o)=>{var d=o(64500),x=o(93011),w=o(5141),C=o(42760);h.exports=function(T,F,U){for(var Z=x(F),ee=C.f,ue=w.f,ne=0;ne<Z.length;ne++){var ie=Z[ne];!d(T,ie)&&!(U&&d(U,ie))&&ee(T,ie,ue(F,ie))}}},83519:(h,O,o)=>{var d=o(18182),x=d("match");h.exports=function(w){var C=/./;try{"/./"[w](C)}catch(T){try{return C[x]=!1,"/./"[w](C)}catch(F){}}return!1}},4635:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){function x(){}return x.prototype.constructor=null,Object.getPrototypeOf(new x)!==x.prototype})},87271:h=>{h.exports=function(O,o){return{value:O,done:o}}},98711:(h,O,o)=>{var d=o(50069),x=o(42760),w=o(90774);h.exports=d?function(C,T,F){return x.f(C,T,w(1,F))}:function(C,T,F){return C[T]=F,C}},90774:h=>{h.exports=function(O,o){return{enumerable:!(O&1),configurable:!(O&2),writable:!(O&4),value:o}}},49361:(h,O,o)=>{"use strict";var d=o(40077),x=o(42760),w=o(90774);h.exports=function(C,T,F){var U=d(T);U in C?x.f(C,U,w(0,F)):C[U]=F}},59362:(h,O,o)=>{var d=o(98711);h.exports=function(x,w,C,T){return T&&T.enumerable?x[w]=C:d(x,w,C),x}},35090:(h,O,o)=>{var d=o(59362);h.exports=function(x,w,C){for(var T in w)C&&C.unsafe&&x[T]?x[T]=w[T]:d(x,T,w[T],C);return x}},65098:(h,O,o)=>{var d=o(98576),x=Object.defineProperty;h.exports=function(w,C){try{x(d,w,{value:C,configurable:!0,writable:!0})}catch(T){d[w]=C}return C}},29970:(h,O,o)=>{"use strict";var d=o(79288),x=TypeError;h.exports=function(w,C){if(!delete w[C])throw x("Cannot delete property "+d(C)+" of "+d(w))}},50069:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},58382:h=>{var O=typeof document=="object"&&document.all,o=typeof O=="undefined"&&O!==void 0;h.exports={all:O,IS_HTMLDDA:o}},67449:(h,O,o)=>{var d=o(98576),x=o(35744),w=d.document,C=x(w)&&x(w.createElement);h.exports=function(T){return C?w.createElement(T):{}}},29425:h=>{var O=TypeError,o=9007199254740991;h.exports=function(d){if(d>o)throw O("Maximum allowed index exceeded");return d}},17365:h=>{h.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},82957:(h,O,o)=>{var d=o(60659),x=o(58189);h.exports=!d&&!x&&typeof window=="object"&&typeof document=="object"},60659:h=>{h.exports=typeof Deno=="object"&&Deno&&typeof Deno.version=="object"},29347:(h,O,o)=>{var d=o(78989),x=o(98576);h.exports=/ipad|iphone|ipod/i.test(d)&&x.Pebble!==void 0},69536:(h,O,o)=>{var d=o(78989);h.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(d)},58189:(h,O,o)=>{var d=o(29272),x=o(98576);h.exports=d(x.process)=="process"},5914:(h,O,o)=>{var d=o(78989);h.exports=/web0s(?!.*chrome)/i.test(d)},78989:(h,O,o)=>{var d=o(10150);h.exports=d("navigator","userAgent")||""},14218:(h,O,o)=>{var d=o(98576),x=o(78989),w=d.process,C=d.Deno,T=w&&w.versions||C&&C.version,F=T&&T.v8,U,Z;F&&(U=F.split("."),Z=U[0]>0&&U[0]<4?1:+(U[0]+U[1])),!Z&&x&&(U=x.match(/Edge\/(\d+)/),(!U||U[1]>=74)&&(U=x.match(/Chrome\/(\d+)/),U&&(Z=+U[1]))),h.exports=Z},45607:(h,O,o)=>{var d=o(57545);h.exports=function(x){return d[x+"Prototype"]}},82952:h=>{h.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},14503:(h,O,o)=>{var d=o(84120),x=Error,w=d("".replace),C=function(U){return String(x(U).stack)}("zxcasd"),T=/\n\s*at [^:]*:[^\n]*/,F=T.test(C);h.exports=function(U,Z){if(F&&typeof U=="string"&&!x.prepareStackTrace)for(;Z--;)U=w(U,T,"");return U}},50274:(h,O,o)=>{var d=o(76192),x=o(90774);h.exports=!d(function(){var w=Error("a");return"stack"in w?(Object.defineProperty(w,"stack",x(1,7)),w.stack!==7):!0})},93085:(h,O,o)=>{"use strict";var d=o(98576),x=o(86298),w=o(14914),C=o(16447),T=o(5141).f,F=o(89245),U=o(57545),Z=o(8043),ee=o(98711),ue=o(64500),ne=function(ie){var Y=function(A,J,N){if(this instanceof Y){switch(arguments.length){case 0:return new ie;case 1:return new ie(A);case 2:return new ie(A,J)}return new ie(A,J,N)}return x(ie,this,arguments)};return Y.prototype=ie.prototype,Y};h.exports=function(ie,Y){var A=ie.target,J=ie.global,N=ie.stat,E=ie.proto,k=J?d:N?d[A]:(d[A]||{}).prototype,V=J?U:U[A]||ee(U,A,{})[A],$=V.prototype,Q,W,re,K,H,fe,he,_,X;for(K in Y)Q=F(J?K:A+(N?".":"#")+K,ie.forced),W=!Q&&k&&ue(k,K),fe=V[K],W&&(ie.dontCallGetSet?(X=T(k,K),he=X&&X.value):he=k[K]),H=W&&he?he:Y[K],!(W&&typeof fe==typeof H)&&(ie.bind&&W?_=Z(H,d):ie.wrap&&W?_=ne(H):E&&C(H)?_=w(H):_=H,(ie.sham||H&&H.sham||fe&&fe.sham)&&ee(_,"sham",!0),ee(V,K,_),E&&(re=A+"Prototype",ue(U,re)||ee(U,re,{}),ee(U[re],K,H),ie.real&&$&&(Q||!$[K])&&ee($,K,H)))}},76192:h=>{h.exports=function(O){try{return!!O()}catch(o){return!0}}},47636:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){return Object.isExtensible(Object.preventExtensions({}))})},86298:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.apply,C=x.call;h.exports=typeof Reflect=="object"&&Reflect.apply||(d?C.bind(w):function(){return C.apply(w,arguments)})},8043:(h,O,o)=>{var d=o(14914),x=o(66235),w=o(22784),C=d(d.bind);h.exports=function(T,F){return x(T),F===void 0?T:w?C(T,F):function(){return T.apply(F,arguments)}}},22784:(h,O,o)=>{var d=o(76192);h.exports=!d(function(){var x=function(){}.bind();return typeof x!="function"||x.hasOwnProperty("prototype")})},18922:(h,O,o)=>{var d=o(22784),x=Function.prototype.call;h.exports=d?x.bind(x):function(){return x.apply(x,arguments)}},22282:(h,O,o)=>{var d=o(50069),x=o(64500),w=Function.prototype,C=d&&Object.getOwnPropertyDescriptor,T=x(w,"name"),F=T&&function(){}.name==="something",U=T&&(!d||d&&C(w,"name").configurable);h.exports={EXISTS:T,PROPER:F,CONFIGURABLE:U}},14914:(h,O,o)=>{var d=o(29272),x=o(84120);h.exports=function(w){if(d(w)==="Function")return x(w)}},84120:(h,O,o)=>{var d=o(22784),x=Function.prototype,w=x.call,C=d&&x.bind.bind(w,w);h.exports=d?C:function(T){return function(){return w.apply(T,arguments)}}},10150:(h,O,o)=>{var d=o(57545),x=o(98576),w=o(16447),C=function(T){return w(T)?T:void 0};h.exports=function(T,F){return arguments.length<2?C(d[T])||C(x[T]):d[T]&&d[T][F]||x[T]&&x[T][F]}},78703:(h,O,o)=>{var d=o(4696),x=o(75037),w=o(75646),C=o(47771),T=o(18182),F=T("iterator");h.exports=function(U){if(!w(U))return x(U,F)||x(U,"@@iterator")||C[d(U)]}},61669:(h,O,o)=>{var d=o(18922),x=o(66235),w=o(31138),C=o(79288),T=o(78703),F=TypeError;h.exports=function(U,Z){var ee=arguments.length<2?T(U):Z;if(x(ee))return w(d(ee,U));throw F(C(U)+" is not iterable")}},75037:(h,O,o)=>{var d=o(66235),x=o(75646);h.exports=function(w,C){var T=w[C];return x(T)?void 0:d(T)}},98576:(h,O,o)=>{var d=function(x){return x&&x.Math==Math&&x};h.exports=d(typeof globalThis=="object"&&globalThis)||d(typeof window=="object"&&window)||d(typeof self=="object"&&self)||d(typeof o.g=="object"&&o.g)||function(){return this}()||Function("return this")()},64500:(h,O,o)=>{var d=o(84120),x=o(71795),w=d({}.hasOwnProperty);h.exports=Object.hasOwn||function(T,F){return w(x(T),F)}},14535:h=>{h.exports={}},63681:(h,O,o)=>{var d=o(98576);h.exports=function(x,w){var C=d.console;C&&C.error&&(arguments.length==1?C.error(x):C.error(x,w))}},47403:(h,O,o)=>{var d=o(10150);h.exports=d("document","documentElement")},80188:(h,O,o)=>{var d=o(50069),x=o(76192),w=o(67449);h.exports=!d&&!x(function(){return Object.defineProperty(w("div"),"a",{get:function(){return 7}}).a!=7})},2202:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(29272),C=Object,T=d("".split);h.exports=x(function(){return!C("z").propertyIsEnumerable(0)})?function(F){return w(F)=="String"?T(F,""):C(F)}:C},19516:(h,O,o)=>{var d=o(84120),x=o(16447),w=o(46434),C=d(Function.toString);x(w.inspectSource)||(w.inspectSource=function(T){return C(T)}),h.exports=w.inspectSource},10273:(h,O,o)=>{var d=o(35744),x=o(98711);h.exports=function(w,C){d(C)&&"cause"in C&&x(w,"cause",C.cause)}},32861:(h,O,o)=>{var d=o(93085),x=o(84120),w=o(14535),C=o(35744),T=o(64500),F=o(42760).f,U=o(92092),Z=o(24052),ee=o(4532),ue=o(42759),ne=o(47636),ie=!1,Y=ue("meta"),A=0,J=function(Q){F(Q,Y,{value:{objectID:"O"+A++,weakData:{}}})},N=function(Q,W){if(!C(Q))return typeof Q=="symbol"?Q:(typeof Q=="string"?"S":"P")+Q;if(!T(Q,Y)){if(!ee(Q))return"F";if(!W)return"E";J(Q)}return Q[Y].objectID},E=function(Q,W){if(!T(Q,Y)){if(!ee(Q))return!0;if(!W)return!1;J(Q)}return Q[Y].weakData},k=function(Q){return ne&&ie&&ee(Q)&&!T(Q,Y)&&J(Q),Q},V=function(){$.enable=function(){},ie=!0;var Q=U.f,W=x([].splice),re={};re[Y]=1,Q(re).length&&(U.f=function(K){for(var H=Q(K),fe=0,he=H.length;fe<he;fe++)if(H[fe]===Y){W(H,fe,1);break}return H},d({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:Z.f}))},$=h.exports={enable:V,fastKey:N,getWeakData:E,onFreeze:k};w[Y]=!0},73326:(h,O,o)=>{var d=o(55278),x=o(98576),w=o(35744),C=o(98711),T=o(64500),F=o(46434),U=o(69766),Z=o(14535),ee="Object already initialized",ue=x.TypeError,ne=x.WeakMap,ie,Y,A,J=function(V){return A(V)?Y(V):ie(V,{})},N=function(V){return function($){var Q;if(!w($)||(Q=Y($)).type!==V)throw ue("Incompatible receiver, "+V+" required");return Q}};if(d||F.state){var E=F.state||(F.state=new ne);E.get=E.get,E.has=E.has,E.set=E.set,ie=function(V,$){if(E.has(V))throw ue(ee);return $.facade=V,E.set(V,$),$},Y=function(V){return E.get(V)||{}},A=function(V){return E.has(V)}}else{var k=U("state");Z[k]=!0,ie=function(V,$){if(T(V,k))throw ue(ee);return $.facade=V,C(V,k,$),$},Y=function(V){return T(V,k)?V[k]:{}},A=function(V){return T(V,k)}}h.exports={set:ie,get:Y,has:A,enforce:J,getterFor:N}},96109:(h,O,o)=>{var d=o(18182),x=o(47771),w=d("iterator"),C=Array.prototype;h.exports=function(T){return T!==void 0&&(x.Array===T||C[w]===T)}},34770:(h,O,o)=>{var d=o(29272);h.exports=Array.isArray||function(w){return d(w)=="Array"}},16447:(h,O,o)=>{var d=o(58382),x=d.all;h.exports=d.IS_HTMLDDA?function(w){return typeof w=="function"||w===x}:function(w){return typeof w=="function"}},22091:(h,O,o)=>{var d=o(84120),x=o(76192),w=o(16447),C=o(4696),T=o(10150),F=o(19516),U=function(){},Z=[],ee=T("Reflect","construct"),ue=/^\s*(?:class|function)\b/,ne=d(ue.exec),ie=!ue.exec(U),Y=function(N){if(!w(N))return!1;try{return ee(U,Z,N),!0}catch(E){return!1}},A=function(N){if(!w(N))return!1;switch(C(N)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ie||!!ne(ue,F(N))}catch(E){return!0}};A.sham=!0,h.exports=!ee||x(function(){var J;return Y(Y.call)||!Y(Object)||!Y(function(){J=!0})||J})?A:Y},89245:(h,O,o)=>{var d=o(76192),x=o(16447),w=/#|\.prototype\./,C=function(ee,ue){var ne=F[T(ee)];return ne==Z?!0:ne==U?!1:x(ue)?d(ue):!!ue},T=C.normalize=function(ee){return String(ee).replace(w,".").toLowerCase()},F=C.data={},U=C.NATIVE="N",Z=C.POLYFILL="P";h.exports=C},75646:h=>{h.exports=function(O){return O==null}},35744:(h,O,o)=>{var d=o(16447),x=o(58382),w=x.all;h.exports=x.IS_HTMLDDA?function(C){return typeof C=="object"?C!==null:d(C)||C===w}:function(C){return typeof C=="object"?C!==null:d(C)}},85546:h=>{h.exports=!0},94352:(h,O,o)=>{var d=o(35744),x=o(29272),w=o(18182),C=w("match");h.exports=function(T){var F;return d(T)&&((F=T[C])!==void 0?!!F:x(T)=="RegExp")}},23236:(h,O,o)=>{var d=o(10150),x=o(16447),w=o(8902),C=o(50615),T=Object;h.exports=C?function(F){return typeof F=="symbol"}:function(F){var U=d("Symbol");return x(U)&&w(U.prototype,T(F))}},33442:(h,O,o)=>{var d=o(8043),x=o(18922),w=o(31138),C=o(79288),T=o(96109),F=o(84104),U=o(8902),Z=o(61669),ee=o(78703),ue=o(66639),ne=TypeError,ie=function(A,J){this.stopped=A,this.result=J},Y=ie.prototype;h.exports=function(A,J,N){var E=N&&N.that,k=!!(N&&N.AS_ENTRIES),V=!!(N&&N.IS_RECORD),$=!!(N&&N.IS_ITERATOR),Q=!!(N&&N.INTERRUPTED),W=d(J,E),re,K,H,fe,he,_,X,z=function(Oe){return re&&ue(re,"normal",Oe),new ie(!0,Oe)},ge=function(Oe){return k?(w(Oe),Q?W(Oe[0],Oe[1],z):W(Oe[0],Oe[1])):Q?W(Oe,z):W(Oe)};if(V)re=A.iterator;else if($)re=A;else{if(K=ee(A),!K)throw ne(C(A)+" is not iterable");if(T(K)){for(H=0,fe=F(A);fe>H;H++)if(he=ge(A[H]),he&&U(Y,he))return he;return new ie(!1)}re=Z(A,K)}for(_=V?A.next:re.next;!(X=x(_,re)).done;){try{he=ge(X.value)}catch(Oe){ue(re,"throw",Oe)}if(typeof he=="object"&&he&&U(Y,he))return he}return new ie(!1)}},66639:(h,O,o)=>{var d=o(18922),x=o(31138),w=o(75037);h.exports=function(C,T,F){var U,Z;x(C);try{if(U=w(C,"return"),!U){if(T==="throw")throw F;return F}U=d(U,C)}catch(ee){Z=!0,U=ee}if(T==="throw")throw F;if(Z)throw U;return x(U),F}},25695:(h,O,o)=>{"use strict";var d=o(54413).IteratorPrototype,x=o(52853),w=o(90774),C=o(11284),T=o(47771),F=function(){return this};h.exports=function(U,Z,ee,ue){var ne=Z+" Iterator";return U.prototype=x(d,{next:w(+!ue,ee)}),C(U,ne,!1,!0),T[ne]=F,U}},65297:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(85546),C=o(22282),T=o(16447),F=o(25695),U=o(89341),Z=o(24469),ee=o(11284),ue=o(98711),ne=o(59362),ie=o(18182),Y=o(47771),A=o(54413),J=C.PROPER,N=C.CONFIGURABLE,E=A.IteratorPrototype,k=A.BUGGY_SAFARI_ITERATORS,V=ie("iterator"),$="keys",Q="values",W="entries",re=function(){return this};h.exports=function(K,H,fe,he,_,X,z){F(fe,H,he);var ge=function(Ce){if(Ce===_&&Xe)return Xe;if(!k&&Ce in Fe)return Fe[Ce];switch(Ce){case $:return function(){return new fe(this,Ce)};case Q:return function(){return new fe(this,Ce)};case W:return function(){return new fe(this,Ce)}}return function(){return new fe(this)}},Oe=H+" Iterator",Ue=!1,Fe=K.prototype,at=Fe[V]||Fe["@@iterator"]||_&&Fe[_],Xe=!k&&at||ge(_),xt=H=="Array"&&Fe.entries||at,Pt,Ct,Le;if(xt&&(Pt=U(xt.call(new K)),Pt!==Object.prototype&&Pt.next&&(!w&&U(Pt)!==E&&(Z?Z(Pt,E):T(Pt[V])||ne(Pt,V,re)),ee(Pt,Oe,!0,!0),w&&(Y[Oe]=re))),J&&_==Q&&at&&at.name!==Q&&(!w&&N?ue(Fe,"name",Q):(Ue=!0,Xe=function(){return x(at,this)})),_)if(Ct={values:ge(Q),keys:X?Xe:ge($),entries:ge(W)},z)for(Le in Ct)(k||Ue||!(Le in Fe))&&ne(Fe,Le,Ct[Le]);else d({target:H,proto:!0,forced:k||Ue},Ct);return(!w||z)&&Fe[V]!==Xe&&ne(Fe,V,Xe,{name:_}),Y[H]=Xe,Ct}},54413:(h,O,o)=>{"use strict";var d=o(76192),x=o(16447),w=o(35744),C=o(52853),T=o(89341),F=o(59362),U=o(18182),Z=o(85546),ee=U("iterator"),ue=!1,ne,ie,Y;[].keys&&(Y=[].keys(),"next"in Y?(ie=T(T(Y)),ie!==Object.prototype&&(ne=ie)):ue=!0);var A=!w(ne)||d(function(){var J={};return ne[ee].call(J)!==J});A?ne={}:Z&&(ne=C(ne)),x(ne[ee])||F(ne,ee,function(){return this}),h.exports={IteratorPrototype:ne,BUGGY_SAFARI_ITERATORS:ue}},47771:h=>{h.exports={}},84104:(h,O,o)=>{var d=o(8445);h.exports=function(x){return d(x.length)}},77679:h=>{var O=Math.ceil,o=Math.floor;h.exports=Math.trunc||function(x){var w=+x;return(w>0?o:O)(w)}},12950:(h,O,o)=>{var d=o(98576),x=o(8043),w=o(5141).f,C=o(67160).set,T=o(69536),F=o(29347),U=o(5914),Z=o(58189),ee=d.MutationObserver||d.WebKitMutationObserver,ue=d.document,ne=d.process,ie=d.Promise,Y=w(d,"queueMicrotask"),A=Y&&Y.value,J,N,E,k,V,$,Q,W;A||(J=function(){var re,K;for(Z&&(re=ne.domain)&&re.exit();N;){K=N.fn,N=N.next;try{K()}catch(H){throw N?k():E=void 0,H}}E=void 0,re&&re.enter()},!T&&!Z&&!U&&ee&&ue?(V=!0,$=ue.createTextNode(""),new ee(J).observe($,{characterData:!0}),k=function(){$.data=V=!V}):!F&&ie&&ie.resolve?(Q=ie.resolve(void 0),Q.constructor=ie,W=x(Q.then,Q),k=function(){W(J)}):Z?k=function(){ne.nextTick(J)}:(C=x(C,d),k=function(){C(J)})),h.exports=A||function(re){var K={fn:re,next:void 0};E&&(E.next=K),N||(N=K,k()),E=K}},99438:(h,O,o)=>{"use strict";var d=o(66235),x=TypeError,w=function(C){var T,F;this.promise=new C(function(U,Z){if(T!==void 0||F!==void 0)throw x("Bad Promise constructor");T=U,F=Z}),this.resolve=d(T),this.reject=d(F)};h.exports.f=function(C){return new w(C)}},36016:(h,O,o)=>{var d=o(44845);h.exports=function(x,w){return x===void 0?arguments.length<2?"":w:d(x)}},9703:(h,O,o)=>{var d=o(94352),x=TypeError;h.exports=function(w){if(d(w))throw x("The method doesn't accept regular expressions");return w}},52503:(h,O,o)=>{"use strict";var d=o(50069),x=o(84120),w=o(18922),C=o(76192),T=o(57653),F=o(84750),U=o(56007),Z=o(71795),ee=o(2202),ue=Object.assign,ne=Object.defineProperty,ie=x([].concat);h.exports=!ue||C(function(){if(d&&ue({b:1},ue(ne({},"a",{enumerable:!0,get:function(){ne(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var Y={},A={},J=Symbol(),N="abcdefghijklmnopqrst";return Y[J]=7,N.split("").forEach(function(E){A[E]=E}),ue({},Y)[J]!=7||T(ue({},A)).join("")!=N})?function(A,J){for(var N=Z(A),E=arguments.length,k=1,V=F.f,$=U.f;E>k;)for(var Q=ee(arguments[k++]),W=V?ie(T(Q),V(Q)):T(Q),re=W.length,K=0,H;re>K;)H=W[K++],(!d||w($,Q,H))&&(N[H]=Q[H]);return N}:ue},52853:(h,O,o)=>{var d=o(31138),x=o(11187),w=o(82952),C=o(14535),T=o(47403),F=o(67449),U=o(69766),Z=">",ee="<",ue="prototype",ne="script",ie=U("IE_PROTO"),Y=function(){},A=function(V){return ee+ne+Z+V+ee+"/"+ne+Z},J=function(V){V.write(A("")),V.close();var $=V.parentWindow.Object;return V=null,$},N=function(){var V=F("iframe"),$="java"+ne+":",Q;return V.style.display="none",T.appendChild(V),V.src=String($),Q=V.contentWindow.document,Q.open(),Q.write(A("document.F=Object")),Q.close(),Q.F},E,k=function(){try{E=new ActiveXObject("htmlfile")}catch($){}k=typeof document!="undefined"?document.domain&&E?J(E):N():J(E);for(var V=w.length;V--;)delete k[ue][w[V]];return k()};C[ie]=!0,h.exports=Object.create||function($,Q){var W;return $!==null?(Y[ue]=d($),W=new Y,Y[ue]=null,W[ie]=$):W=k(),Q===void 0?W:x.f(W,Q)}},11187:(h,O,o)=>{var d=o(50069),x=o(69600),w=o(42760),C=o(31138),T=o(20101),F=o(57653);O.f=d&&!x?Object.defineProperties:function(Z,ee){C(Z);for(var ue=T(ee),ne=F(ee),ie=ne.length,Y=0,A;ie>Y;)w.f(Z,A=ne[Y++],ue[A]);return Z}},42760:(h,O,o)=>{var d=o(50069),x=o(80188),w=o(69600),C=o(31138),T=o(40077),F=TypeError,U=Object.defineProperty,Z=Object.getOwnPropertyDescriptor,ee="enumerable",ue="configurable",ne="writable";O.f=d?w?function(Y,A,J){if(C(Y),A=T(A),C(J),typeof Y=="function"&&A==="prototype"&&"value"in J&&ne in J&&!J[ne]){var N=Z(Y,A);N&&N[ne]&&(Y[A]=J.value,J={configurable:ue in J?J[ue]:N[ue],enumerable:ee in J?J[ee]:N[ee],writable:!1})}return U(Y,A,J)}:U:function(Y,A,J){if(C(Y),A=T(A),C(J),x)try{return U(Y,A,J)}catch(N){}if("get"in J||"set"in J)throw F("Accessors not supported");return"value"in J&&(Y[A]=J.value),Y}},5141:(h,O,o)=>{var d=o(50069),x=o(18922),w=o(56007),C=o(90774),T=o(20101),F=o(40077),U=o(64500),Z=o(80188),ee=Object.getOwnPropertyDescriptor;O.f=d?ee:function(ne,ie){if(ne=T(ne),ie=F(ie),Z)try{return ee(ne,ie)}catch(Y){}if(U(ne,ie))return C(!x(w.f,ne,ie),ne[ie])}},24052:(h,O,o)=>{var d=o(29272),x=o(20101),w=o(92092).f,C=o(1923),T=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],F=function(U){try{return w(U)}catch(Z){return C(T)}};h.exports.f=function(Z){return T&&d(Z)=="Window"?F(Z):w(x(Z))}},92092:(h,O,o)=>{var d=o(57934),x=o(82952),w=x.concat("length","prototype");O.f=Object.getOwnPropertyNames||function(T){return d(T,w)}},84750:(h,O)=>{O.f=Object.getOwnPropertySymbols},89341:(h,O,o)=>{var d=o(64500),x=o(16447),w=o(71795),C=o(69766),T=o(4635),F=C("IE_PROTO"),U=Object,Z=U.prototype;h.exports=T?U.getPrototypeOf:function(ee){var ue=w(ee);if(d(ue,F))return ue[F];var ne=ue.constructor;return x(ne)&&ue instanceof ne?ne.prototype:ue instanceof U?Z:null}},4532:(h,O,o)=>{var d=o(76192),x=o(35744),w=o(29272),C=o(80410),T=Object.isExtensible,F=d(function(){T(1)});h.exports=F||C?function(Z){return!x(Z)||C&&w(Z)=="ArrayBuffer"?!1:T?T(Z):!0}:T},8902:(h,O,o)=>{var d=o(84120);h.exports=d({}.isPrototypeOf)},57934:(h,O,o)=>{var d=o(84120),x=o(64500),w=o(20101),C=o(48180).indexOf,T=o(14535),F=d([].push);h.exports=function(U,Z){var ee=w(U),ue=0,ne=[],ie;for(ie in ee)!x(T,ie)&&x(ee,ie)&&F(ne,ie);for(;Z.length>ue;)x(ee,ie=Z[ue++])&&(~C(ne,ie)||F(ne,ie));return ne}},57653:(h,O,o)=>{var d=o(57934),x=o(82952);h.exports=Object.keys||function(C){return d(C,x)}},56007:(h,O)=>{"use strict";var o={}.propertyIsEnumerable,d=Object.getOwnPropertyDescriptor,x=d&&!o.call({1:2},1);O.f=x?function(C){var T=d(this,C);return!!T&&T.enumerable}:o},24469:(h,O,o)=>{var d=o(84120),x=o(31138),w=o(7757);h.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var C=!1,T={},F;try{F=d(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set),F(T,[]),C=T instanceof Array}catch(U){}return function(Z,ee){return x(Z),w(ee),C?F(Z,ee):Z.__proto__=ee,Z}}():void 0)},75370:(h,O,o)=>{var d=o(50069),x=o(84120),w=o(57653),C=o(20101),T=o(56007).f,F=x(T),U=x([].push),Z=function(ee){return function(ue){for(var ne=C(ue),ie=w(ne),Y=ie.length,A=0,J=[],N;Y>A;)N=ie[A++],(!d||F(ne,N))&&U(J,ee?[N,ne[N]]:ne[N]);return J}};h.exports={entries:Z(!0),values:Z(!1)}},40158:(h,O,o)=>{"use strict";var d=o(83471),x=o(4696);h.exports=d?{}.toString:function(){return"[object "+x(this)+"]"}},380:(h,O,o)=>{var d=o(18922),x=o(16447),w=o(35744),C=TypeError;h.exports=function(T,F){var U,Z;if(F==="string"&&x(U=T.toString)&&!w(Z=d(U,T))||x(U=T.valueOf)&&!w(Z=d(U,T))||F!=="string"&&x(U=T.toString)&&!w(Z=d(U,T)))return Z;throw C("Can't convert object to primitive value")}},93011:(h,O,o)=>{var d=o(10150),x=o(84120),w=o(92092),C=o(84750),T=o(31138),F=x([].concat);h.exports=d("Reflect","ownKeys")||function(Z){var ee=w.f(T(Z)),ue=C.f;return ue?F(ee,ue(Z)):ee}},57545:h=>{h.exports={}},70892:h=>{h.exports=function(O){try{return{error:!1,value:O()}}catch(o){return{error:!0,value:o}}}},30511:(h,O,o)=>{var d=o(98576),x=o(15813),w=o(16447),C=o(89245),T=o(19516),F=o(18182),U=o(82957),Z=o(60659),ee=o(85546),ue=o(14218),ne=x&&x.prototype,ie=F("species"),Y=!1,A=w(d.PromiseRejectionEvent),J=C("Promise",function(){var N=T(x),E=N!==String(x);if(!E&&ue===66||ee&&!(ne.catch&&ne.finally))return!0;if(!ue||ue<51||!/native code/.test(N)){var k=new x(function(Q){Q(1)}),V=function(Q){Q(function(){},function(){})},$=k.constructor={};if($[ie]=V,Y=k.then(function(){})instanceof V,!Y)return!0}return!E&&(U||Z)&&!A});h.exports={CONSTRUCTOR:J,REJECTION_EVENT:A,SUBCLASSING:Y}},15813:(h,O,o)=>{var d=o(98576);h.exports=d.Promise},19126:(h,O,o)=>{var d=o(31138),x=o(35744),w=o(99438);h.exports=function(C,T){if(d(C),x(T)&&T.constructor===C)return T;var F=w.f(C),U=F.resolve;return U(T),F.promise}},52775:(h,O,o)=>{var d=o(15813),x=o(19770),w=o(30511).CONSTRUCTOR;h.exports=w||!x(function(C){d.all(C).then(void 0,function(){})})},6412:h=>{var O=function(){this.head=null,this.tail=null};O.prototype={add:function(o){var d={item:o,next:null};this.head?this.tail.next=d:this.head=d,this.tail=d},get:function(){var o=this.head;if(o)return this.head=o.next,this.tail===o&&(this.tail=null),o.item}},h.exports=O},13209:(h,O,o)=>{var d=o(75646),x=TypeError;h.exports=function(w){if(d(w))throw x("Can't call method on "+w);return w}},63656:(h,O,o)=>{"use strict";var d=o(10150),x=o(42760),w=o(18182),C=o(50069),T=w("species");h.exports=function(F){var U=d(F),Z=x.f;C&&U&&!U[T]&&Z(U,T,{configurable:!0,get:function(){return this}})}},11284:(h,O,o)=>{var d=o(83471),x=o(42760).f,w=o(98711),C=o(64500),T=o(40158),F=o(18182),U=F("toStringTag");h.exports=function(Z,ee,ue,ne){if(Z){var ie=ue?Z:Z.prototype;C(ie,U)||x(ie,U,{configurable:!0,value:ee}),ne&&!d&&w(ie,"toString",T)}}},69766:(h,O,o)=>{var d=o(98717),x=o(42759),w=d("keys");h.exports=function(C){return w[C]||(w[C]=x(C))}},46434:(h,O,o)=>{var d=o(98576),x=o(65098),w="__core-js_shared__",C=d[w]||x(w,{});h.exports=C},98717:(h,O,o)=>{var d=o(85546),x=o(46434);(h.exports=function(w,C){return x[w]||(x[w]=C!==void 0?C:{})})("versions",[]).push({version:"3.27.1",mode:d?"pure":"global",copyright:"\xA9 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.27.1/LICENSE",source:"https://github.com/zloirock/core-js"})},84743:(h,O,o)=>{var d=o(31138),x=o(71404),w=o(75646),C=o(18182),T=C("species");h.exports=function(F,U){var Z=d(F).constructor,ee;return Z===void 0||w(ee=d(Z)[T])?U:x(ee)}},863:(h,O,o)=>{var d=o(84120),x=o(41941),w=o(44845),C=o(13209),T=d("".charAt),F=d("".charCodeAt),U=d("".slice),Z=function(ee){return function(ue,ne){var ie=w(C(ue)),Y=x(ne),A=ie.length,J,N;return Y<0||Y>=A?ee?"":void 0:(J=F(ie,Y),J<55296||J>56319||Y+1===A||(N=F(ie,Y+1))<56320||N>57343?ee?T(ie,Y):J:ee?U(ie,Y,Y+2):(J-55296<<10)+(N-56320)+65536)}};h.exports={codeAt:Z(!1),charAt:Z(!0)}},36770:(h,O,o)=>{var d=o(14218),x=o(76192);h.exports=!!Object.getOwnPropertySymbols&&!x(function(){var w=Symbol();return!String(w)||!(Object(w)instanceof Symbol)||!Symbol.sham&&d&&d<41})},93407:(h,O,o)=>{var d=o(18922),x=o(10150),w=o(18182),C=o(59362);h.exports=function(){var T=x("Symbol"),F=T&&T.prototype,U=F&&F.valueOf,Z=w("toPrimitive");F&&!F[Z]&&C(F,Z,function(ee){return d(U,this)},{arity:1})}},20031:(h,O,o)=>{var d=o(36770);h.exports=d&&!!Symbol.for&&!!Symbol.keyFor},67160:(h,O,o)=>{var d=o(98576),x=o(86298),w=o(8043),C=o(16447),T=o(64500),F=o(76192),U=o(47403),Z=o(93096),ee=o(67449),ue=o(67822),ne=o(69536),ie=o(58189),Y=d.setImmediate,A=d.clearImmediate,J=d.process,N=d.Dispatch,E=d.Function,k=d.MessageChannel,V=d.String,$=0,Q={},W="onreadystatechange",re,K,H,fe;try{re=d.location}catch(ge){}var he=function(ge){if(T(Q,ge)){var Oe=Q[ge];delete Q[ge],Oe()}},_=function(ge){return function(){he(ge)}},X=function(ge){he(ge.data)},z=function(ge){d.postMessage(V(ge),re.protocol+"//"+re.host)};(!Y||!A)&&(Y=function(Oe){ue(arguments.length,1);var Ue=C(Oe)?Oe:E(Oe),Fe=Z(arguments,1);return Q[++$]=function(){x(Ue,void 0,Fe)},K($),$},A=function(Oe){delete Q[Oe]},ie?K=function(ge){J.nextTick(_(ge))}:N&&N.now?K=function(ge){N.now(_(ge))}:k&&!ne?(H=new k,fe=H.port2,H.port1.onmessage=X,K=w(fe.postMessage,fe)):d.addEventListener&&C(d.postMessage)&&!d.importScripts&&re&&re.protocol!=="file:"&&!F(z)?(K=z,d.addEventListener("message",X,!1)):W in ee("script")?K=function(ge){U.appendChild(ee("script"))[W]=function(){U.removeChild(this),he(ge)}}:K=function(ge){setTimeout(_(ge),0)}),h.exports={set:Y,clear:A}},97739:(h,O,o)=>{var d=o(41941),x=Math.max,w=Math.min;h.exports=function(C,T){var F=d(C);return F<0?x(F+T,0):w(F,T)}},20101:(h,O,o)=>{var d=o(2202),x=o(13209);h.exports=function(w){return d(x(w))}},41941:(h,O,o)=>{var d=o(77679);h.exports=function(x){var w=+x;return w!==w||w===0?0:d(w)}},8445:(h,O,o)=>{var d=o(41941),x=Math.min;h.exports=function(w){return w>0?x(d(w),9007199254740991):0}},71795:(h,O,o)=>{var d=o(13209),x=Object;h.exports=function(w){return x(d(w))}},97888:(h,O,o)=>{var d=o(18922),x=o(35744),w=o(23236),C=o(75037),T=o(380),F=o(18182),U=TypeError,Z=F("toPrimitive");h.exports=function(ee,ue){if(!x(ee)||w(ee))return ee;var ne=C(ee,Z),ie;if(ne){if(ue===void 0&&(ue="default"),ie=d(ne,ee,ue),!x(ie)||w(ie))return ie;throw U("Can't convert object to primitive value")}return ue===void 0&&(ue="number"),T(ee,ue)}},40077:(h,O,o)=>{var d=o(97888),x=o(23236);h.exports=function(w){var C=d(w,"string");return x(C)?C:C+""}},83471:(h,O,o)=>{var d=o(18182),x=d("toStringTag"),w={};w[x]="z",h.exports=String(w)==="[object z]"},44845:(h,O,o)=>{var d=o(4696),x=String;h.exports=function(w){if(d(w)==="Symbol")throw TypeError("Cannot convert a Symbol value to a string");return x(w)}},79288:h=>{var O=String;h.exports=function(o){try{return O(o)}catch(d){return"Object"}}},42759:(h,O,o)=>{var d=o(84120),x=0,w=Math.random(),C=d(1 .toString);h.exports=function(T){return"Symbol("+(T===void 0?"":T)+")_"+C(++x+w,36)}},58552:(h,O,o)=>{var d=o(76192),x=o(18182),w=o(85546),C=x("iterator");h.exports=!d(function(){var T=new URL("b?a=1&b=2&c=3","http://a"),F=T.searchParams,U="";return T.pathname="c%20d",F.forEach(function(Z,ee){F.delete("b"),U+=ee+Z}),w&&!T.toJSON||!F.sort||T.href!=="http://a/c%20d?a=1&c=3"||F.get("c")!=="3"||String(new URLSearchParams("?a=1"))!=="a=1"||!F[C]||new URL("https://a@b").username!=="a"||new URLSearchParams(new URLSearchParams("a=b")).get("a")!=="b"||new URL("http://\u0442\u0435\u0441\u0442").host!=="xn--e1aybc"||new URL("http://a#\u0431").hash!=="#%D0%B1"||U!=="a1c3"||new URL("http://x",void 0).host!=="x"})},50615:(h,O,o)=>{var d=o(36770);h.exports=d&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},69600:(h,O,o)=>{var d=o(50069),x=o(76192);h.exports=d&&x(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!=42})},67822:h=>{var O=TypeError;h.exports=function(o,d){if(o<d)throw O("Not enough arguments");return o}},55278:(h,O,o)=>{var d=o(98576),x=o(16447),w=d.WeakMap;h.exports=x(w)&&/native code/.test(String(w))},48332:(h,O,o)=>{var d=o(57545),x=o(64500),w=o(89207),C=o(42760).f;h.exports=function(T){var F=d.Symbol||(d.Symbol={});x(F,T)||C(F,T,{value:w.f(T)})}},89207:(h,O,o)=>{var d=o(18182);O.f=d},18182:(h,O,o)=>{var d=o(98576),x=o(98717),w=o(64500),C=o(42759),T=o(36770),F=o(50615),U=x("wks"),Z=d.Symbol,ee=Z&&Z.for,ue=F?Z:Z&&Z.withoutSetter||C;h.exports=function(ne){if(!w(U,ne)||!(T||typeof U[ne]=="string")){var ie="Symbol."+ne;T&&w(Z,ne)?U[ne]=Z[ne]:F&&ee?U[ne]=ee(ie):U[ne]=ue(ie)}return U[ne]}},93820:(h,O,o)=>{"use strict";var d=o(93085),x=o(8902),w=o(89341),C=o(24469),T=o(97987),F=o(52853),U=o(98711),Z=o(90774),ee=o(14503),ue=o(10273),ne=o(33442),ie=o(36016),Y=o(18182),A=o(50274),J=Y("toStringTag"),N=Error,E=[].push,k=function(Q,W){var re=arguments.length>2?arguments[2]:void 0,K=x(V,this),H;C?H=C(N(),K?w(this):V):(H=K?this:F(V),U(H,J,"Error")),W!==void 0&&U(H,"message",ie(W)),A&&U(H,"stack",ee(H.stack,1)),ue(H,re);var fe=[];return ne(Q,E,{that:fe}),U(H,"errors",fe),H};C?C(k,N):T(k,N,{name:!0});var V=k.prototype=F(N.prototype,{constructor:Z(1,k),message:Z(1,""),name:Z(1,"AggregateError")});d({global:!0,constructor:!0,arity:2},{AggregateError:k})},4242:(h,O,o)=>{o(93820)},59106:(h,O,o)=>{"use strict";var d=o(93085),x=o(76192),w=o(34770),C=o(35744),T=o(71795),F=o(84104),U=o(29425),Z=o(49361),ee=o(71321),ue=o(90242),ne=o(18182),ie=o(14218),Y=ne("isConcatSpreadable"),A=ie>=51||!x(function(){var k=[];return k[Y]=!1,k.concat()[0]!==k}),J=ue("concat"),N=function(k){if(!C(k))return!1;var V=k[Y];return V!==void 0?!!V:w(k)},E=!A||!J;d({target:"Array",proto:!0,arity:1,forced:E},{concat:function(V){var $=T(this),Q=ee($,0),W=0,re,K,H,fe,he;for(re=-1,H=arguments.length;re<H;re++)if(he=re===-1?$:arguments[re],N(he))for(fe=F(he),U(W+fe),K=0;K<fe;K++,W++)K in he&&Z(Q,W,he[K]);else U(W+1),Z(Q,W++,he);return Q.length=W,Q}})},73436:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).filter,w=o(90242),C=w("filter");d({target:"Array",proto:!0,forced:!C},{filter:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},10880:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).find,w=o(67423),C="find",T=!0;C in[]&&Array(1)[C](function(){T=!1}),d({target:"Array",proto:!0,forced:T},{find:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),w(C)},9823:(h,O,o)=>{"use strict";var d=o(93085),x=o(87397);d({target:"Array",proto:!0,forced:[].forEach!=x},{forEach:x})},19173:(h,O,o)=>{var d=o(93085),x=o(20841),w=o(19770),C=!w(function(T){Array.from(T)});d({target:"Array",stat:!0,forced:C},{from:x})},70024:(h,O,o)=>{"use strict";var d=o(93085),x=o(48180).includes,w=o(76192),C=o(67423),T=w(function(){return!Array(1).includes()});d({target:"Array",proto:!0,forced:T},{includes:function(U){return x(this,U,arguments.length>1?arguments[1]:void 0)}}),C("includes")},62276:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(48180).indexOf,C=o(10424),T=x([].indexOf),F=!!T&&1/T([1],1,-0)<0,U=C("indexOf");d({target:"Array",proto:!0,forced:F||!U},{indexOf:function(ee){var ue=arguments.length>1?arguments[1]:void 0;return F?T(this,ee,ue)||0:w(this,ee,ue)}})},8118:(h,O,o)=>{var d=o(93085),x=o(34770);d({target:"Array",stat:!0},{isArray:x})},98939:(h,O,o)=>{"use strict";var d=o(20101),x=o(67423),w=o(47771),C=o(73326),T=o(42760).f,F=o(65297),U=o(87271),Z=o(85546),ee=o(50069),ue="Array Iterator",ne=C.set,ie=C.getterFor(ue);h.exports=F(Array,"Array",function(A,J){ne(this,{type:ue,target:d(A),index:0,kind:J})},function(){var A=ie(this),J=A.target,N=A.kind,E=A.index++;return!J||E>=J.length?(A.target=void 0,U(void 0,!0)):N=="keys"?U(E,!1):N=="values"?U(J[E],!1):U([E,J[E]],!1)},"values");var Y=w.Arguments=w.Array;if(x("keys"),x("values"),x("entries"),!Z&&ee&&Y.name!=="values")try{T(Y,"name",{value:"values"})}catch(A){}},63838:(h,O,o)=>{"use strict";var d=o(93085),x=o(50454).map,w=o(90242),C=w("map");d({target:"Array",proto:!0,forced:!C},{map:function(F){return x(this,F,arguments.length>1?arguments[1]:void 0)}})},99523:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(34770),C=x([].reverse),T=[1,2];d({target:"Array",proto:!0,forced:String(T)===String(T.reverse())},{reverse:function(){return w(this)&&(this.length=this.length),C(this)}})},65818:(h,O,o)=>{"use strict";var d=o(93085),x=o(34770),w=o(22091),C=o(35744),T=o(97739),F=o(84104),U=o(20101),Z=o(49361),ee=o(18182),ue=o(90242),ne=o(93096),ie=ue("slice"),Y=ee("species"),A=Array,J=Math.max;d({target:"Array",proto:!0,forced:!ie},{slice:function(E,k){var V=U(this),$=F(V),Q=T(E,$),W=T(k===void 0?$:k,$),re,K,H;if(x(V)&&(re=V.constructor,w(re)&&(re===A||x(re.prototype))?re=void 0:C(re)&&(re=re[Y],re===null&&(re=void 0)),re===A||re===void 0))return ne(V,Q,W);for(K=new(re===void 0?A:re)(J(W-Q,0)),H=0;Q<W;Q++,H++)Q in V&&Z(K,H,V[Q]);return K.length=H,K}})},12178:(h,O,o)=>{"use strict";var d=o(93085),x=o(71795),w=o(97739),C=o(41941),T=o(84104),F=o(95072),U=o(29425),Z=o(71321),ee=o(49361),ue=o(29970),ne=o(90242),ie=ne("splice"),Y=Math.max,A=Math.min;d({target:"Array",proto:!0,forced:!ie},{splice:function(N,E){var k=x(this),V=T(k),$=w(N,V),Q=arguments.length,W,re,K,H,fe,he;for(Q===0?W=re=0:Q===1?(W=0,re=V-$):(W=Q-2,re=A(Y(C(E),0),V-$)),U(V+W-re),K=Z(k,re),H=0;H<re;H++)fe=$+H,fe in k&&ee(K,H,k[fe]);if(K.length=re,W<re){for(H=$;H<V-re;H++)fe=H+re,he=H+W,fe in k?k[he]=k[fe]:ue(k,he);for(H=V;H>V-re+W;H--)ue(k,H-1)}else if(W>re)for(H=V-re;H>$;H--)fe=H+re-1,he=H+W-1,fe in k?k[he]=k[fe]:ue(k,he);for(H=0;H<W;H++)k[H+$]=arguments[H+2];return F(k,V-re+W),K}})},12432:()=>{},25067:(h,O,o)=>{var d=o(93085),x=o(98576);d({global:!0,forced:x.globalThis!==x},{globalThis:x})},59704:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(86298),C=o(18922),T=o(84120),F=o(76192),U=o(34770),Z=o(16447),ee=o(35744),ue=o(23236),ne=o(93096),ie=o(36770),Y=x("JSON","stringify"),A=T(/./.exec),J=T("".charAt),N=T("".charCodeAt),E=T("".replace),k=T(1 .toString),V=/[\uD800-\uDFFF]/g,$=/^[\uD800-\uDBFF]$/,Q=/^[\uDC00-\uDFFF]$/,W=!ie||F(function(){var fe=x("Symbol")();return Y([fe])!="[null]"||Y({a:fe})!="{}"||Y(Object(fe))!="{}"}),re=F(function(){return Y("\uDF06\uD834")!=='"\\udf06\\ud834"'||Y("\uDEAD")!=='"\\udead"'}),K=function(fe,he){var _=ne(arguments),X=he;if(!(!ee(he)&&fe===void 0||ue(fe)))return U(he)||(he=function(z,ge){if(Z(X)&&(ge=C(X,this,z,ge)),!ue(ge))return ge}),_[1]=he,w(Y,null,_)},H=function(fe,he,_){var X=J(_,he-1),z=J(_,he+1);return A($,fe)&&!A(Q,z)||A(Q,fe)&&!A($,X)?"\\u"+k(N(fe,0),16):fe};Y&&d({target:"JSON",stat:!0,arity:3,forced:W||re},{stringify:function(he,_,X){var z=ne(arguments),ge=w(W?K:Y,null,z);return re&&typeof ge=="string"?E(ge,V,H):ge}})},68671:(h,O,o)=>{var d=o(98576),x=o(11284);x(d.JSON,"JSON",!0)},58556:()=>{},93582:(h,O,o)=>{var d=o(93085),x=o(52503);d({target:"Object",stat:!0,arity:2,forced:Object.assign!==x},{assign:x})},73113:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(52853);d({target:"Object",stat:!0,sham:!x},{create:w})},57585:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(11187).f;d({target:"Object",stat:!0,forced:Object.defineProperties!==w,sham:!x},{defineProperties:w})},20297:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(42760).f;d({target:"Object",stat:!0,forced:Object.defineProperty!==w,sham:!x},{defineProperty:w})},27442:(h,O,o)=>{var d=o(93085),x=o(75370).entries;d({target:"Object",stat:!0},{entries:function(C){return x(C)}})},89189:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(20101),C=o(5141).f,T=o(50069),F=x(function(){C(1)}),U=!T||F;d({target:"Object",stat:!0,forced:U,sham:!T},{getOwnPropertyDescriptor:function(ee,ue){return C(w(ee),ue)}})},62509:(h,O,o)=>{var d=o(93085),x=o(50069),w=o(93011),C=o(20101),T=o(5141),F=o(49361);d({target:"Object",stat:!0,sham:!x},{getOwnPropertyDescriptors:function(Z){for(var ee=C(Z),ue=T.f,ne=w(ee),ie={},Y=0,A,J;ne.length>Y;)J=ue(ee,A=ne[Y++]),J!==void 0&&F(ie,A,J);return ie}})},17895:(h,O,o)=>{var d=o(93085),x=o(36770),w=o(76192),C=o(84750),T=o(71795),F=!x||w(function(){C.f(1)});d({target:"Object",stat:!0,forced:F},{getOwnPropertySymbols:function(Z){var ee=C.f;return ee?ee(T(Z)):[]}})},19234:(h,O,o)=>{var d=o(93085),x=o(76192),w=o(71795),C=o(89341),T=o(4635),F=x(function(){C(1)});d({target:"Object",stat:!0,forced:F,sham:!T},{getPrototypeOf:function(Z){return C(w(Z))}})},92647:(h,O,o)=>{var d=o(93085),x=o(71795),w=o(57653),C=o(76192),T=C(function(){w(1)});d({target:"Object",stat:!0,forced:T},{keys:function(U){return w(x(U))}})},13222:(h,O,o)=>{var d=o(93085),x=o(24469);d({target:"Object",stat:!0},{setPrototypeOf:x})},46663:()=>{},97884:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442);d({target:"Promise",stat:!0},{allSettled:function(Z){var ee=this,ue=C.f(ee),ne=ue.resolve,ie=ue.reject,Y=T(function(){var A=w(ee.resolve),J=[],N=0,E=1;F(Z,function(k){var V=N++,$=!1;E++,x(A,ee,k).then(function(Q){$||($=!0,J[V]={status:"fulfilled",value:Q},--E||ne(J))},function(Q){$||($=!0,J[V]={status:"rejected",reason:Q},--E||ne(J))})}),--E||ne(J)});return Y.error&&ie(Y.value),ue.promise}})},89701:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{all:function(ee){var ue=this,ne=C.f(ue),ie=ne.resolve,Y=ne.reject,A=T(function(){var J=w(ue.resolve),N=[],E=0,k=1;F(ee,function(V){var $=E++,Q=!1;k++,x(J,ue,V).then(function(W){Q||(Q=!0,N[$]=W,--k||ie(N))},Y)}),--k||ie(N)});return A.error&&Y(A.value),ne.promise}})},78885:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(10150),T=o(99438),F=o(70892),U=o(33442),Z="No one promise resolved";d({target:"Promise",stat:!0},{any:function(ue){var ne=this,ie=C("AggregateError"),Y=T.f(ne),A=Y.resolve,J=Y.reject,N=F(function(){var E=w(ne.resolve),k=[],V=0,$=1,Q=!1;U(ue,function(W){var re=V++,K=!1;$++,x(E,ne,W).then(function(H){K||Q||(Q=!0,A(H))},function(H){K||Q||(K=!0,k[re]=H,--$||J(new ie(k,Z)))})}),--$||J(new ie(k,Z))});return N.error&&J(N.value),Y.promise}})},34025:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(30511).CONSTRUCTOR,C=o(15813),T=o(10150),F=o(16447),U=o(59362),Z=C&&C.prototype;if(d({target:"Promise",proto:!0,forced:w,real:!0},{catch:function(ue){return this.then(void 0,ue)}}),!x&&F(C)){var ee=T("Promise").prototype.catch;Z.catch!==ee&&U(Z,"catch",ee,{unsafe:!0})}},60268:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(58189),C=o(98576),T=o(18922),F=o(59362),U=o(24469),Z=o(11284),ee=o(63656),ue=o(66235),ne=o(16447),ie=o(35744),Y=o(46961),A=o(84743),J=o(67160).set,N=o(12950),E=o(63681),k=o(70892),V=o(6412),$=o(73326),Q=o(15813),W=o(30511),re=o(99438),K="Promise",H=W.CONSTRUCTOR,fe=W.REJECTION_EVENT,he=W.SUBCLASSING,_=$.getterFor(K),X=$.set,z=Q&&Q.prototype,ge=Q,Oe=z,Ue=C.TypeError,Fe=C.document,at=C.process,Xe=re.f,xt=Xe,Pt=!!(Fe&&Fe.createEvent&&C.dispatchEvent),Ct="unhandledrejection",Le="rejectionhandled",Ce=0,Se=1,De=2,$e=1,tt=2,_e,St,It,Wt,$t=function(et){var mt;return ie(et)&&ne(mt=et.then)?mt:!1},We=function(et,mt){var Mt=mt.value,Tt=mt.state==Se,Rt=Tt?et.ok:et.fail,dt=et.resolve,gt=et.reject,kt=et.domain,st,Ve,ce;try{Rt?(Tt||(mt.rejection===tt&&un(mt),mt.rejection=$e),Rt===!0?st=Mt:(kt&&kt.enter(),st=Rt(Mt),kt&&(kt.exit(),ce=!0)),st===et.promise?gt(Ue("Promise-chain cycle")):(Ve=$t(st))?T(Ve,st,dt,gt):dt(st)):gt(Mt)}catch(be){kt&&!ce&&kt.exit(),gt(be)}},Ot=function(et,mt){et.notified||(et.notified=!0,N(function(){for(var Mt=et.reactions,Tt;Tt=Mt.get();)We(Tt,et);et.notified=!1,mt&&!et.rejection&&qr(et)}))},ot=function(et,mt,Mt){var Tt,Rt;Pt?(Tt=Fe.createEvent("Event"),Tt.promise=mt,Tt.reason=Mt,Tt.initEvent(et,!1,!0),C.dispatchEvent(Tt)):Tt={promise:mt,reason:Mt},!fe&&(Rt=C["on"+et])?Rt(Tt):et===Ct&&E("Unhandled promise rejection",Mt)},qr=function(et){T(J,C,function(){var mt=et.facade,Mt=et.value,Tt=Qe(et),Rt;if(Tt&&(Rt=k(function(){w?at.emit("unhandledRejection",Mt,mt):ot(Ct,mt,Mt)}),et.rejection=w||Qe(et)?tt:$e,Rt.error))throw Rt.value})},Qe=function(et){return et.rejection!==$e&&!et.parent},un=function(et){T(J,C,function(){var mt=et.facade;w?at.emit("rejectionHandled",mt):ot(Le,mt,et.value)})},Ir=function(et,mt,Mt){return function(Tt){et(mt,Tt,Mt)}},Or=function(et,mt,Mt){et.done||(et.done=!0,Mt&&(et=Mt),et.value=mt,et.state=De,Ot(et,!0))},pr=function(et,mt,Mt){if(!et.done){et.done=!0,Mt&&(et=Mt);try{if(et.facade===mt)throw Ue("Promise can't be resolved itself");var Tt=$t(mt);Tt?N(function(){var Rt={done:!1};try{T(Tt,mt,Ir(pr,Rt,et),Ir(Or,Rt,et))}catch(dt){Or(Rt,dt,et)}}):(et.value=mt,et.state=Se,Ot(et,!1))}catch(Rt){Or({done:!1},Rt,et)}}};if(H&&(ge=function(mt){Y(this,Oe),ue(mt),T(_e,this);var Mt=_(this);try{mt(Ir(pr,Mt),Ir(Or,Mt))}catch(Tt){Or(Mt,Tt)}},Oe=ge.prototype,_e=function(mt){X(this,{type:K,done:!1,notified:!1,parent:!1,reactions:new V,rejection:!1,state:Ce,value:void 0})},_e.prototype=F(Oe,"then",function(mt,Mt){var Tt=_(this),Rt=Xe(A(this,ge));return Tt.parent=!0,Rt.ok=ne(mt)?mt:!0,Rt.fail=ne(Mt)&&Mt,Rt.domain=w?at.domain:void 0,Tt.state==Ce?Tt.reactions.add(Rt):N(function(){We(Rt,Tt)}),Rt.promise}),St=function(){var et=new _e,mt=_(et);this.promise=et,this.resolve=Ir(pr,mt),this.reject=Ir(Or,mt)},re.f=Xe=function(et){return et===ge||et===It?new St(et):xt(et)},!x&&ne(Q)&&z!==Object.prototype)){Wt=z.then,he||F(z,"then",function(mt,Mt){var Tt=this;return new ge(function(Rt,dt){T(Wt,Tt,Rt,dt)}).then(mt,Mt)},{unsafe:!0});try{delete z.constructor}catch(et){}U&&U(z,Oe)}d({global:!0,constructor:!0,wrap:!0,forced:H},{Promise:ge}),Z(ge,K,!1,!0),ee(K)},91868:(h,O,o)=>{"use strict";var d=o(93085),x=o(85546),w=o(15813),C=o(76192),T=o(10150),F=o(16447),U=o(84743),Z=o(19126),ee=o(59362),ue=w&&w.prototype,ne=!!w&&C(function(){ue.finally.call({then:function(){}},function(){})});if(d({target:"Promise",proto:!0,real:!0,forced:ne},{finally:function(Y){var A=U(this,T("Promise")),J=F(Y);return this.then(J?function(N){return Z(A,Y()).then(function(){return N})}:Y,J?function(N){return Z(A,Y()).then(function(){throw N})}:Y)}}),!x&&F(w)){var ie=T("Promise").prototype.finally;ue.finally!==ie&&ee(ue,"finally",ie,{unsafe:!0})}},59021:(h,O,o)=>{o(60268),o(89701),o(34025),o(67196),o(85873),o(22931)},67196:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(66235),C=o(99438),T=o(70892),F=o(33442),U=o(52775);d({target:"Promise",stat:!0,forced:U},{race:function(ee){var ue=this,ne=C.f(ue),ie=ne.reject,Y=T(function(){var A=w(ue.resolve);F(ee,function(J){x(A,ue,J).then(ne.resolve,ie)})});return Y.error&&ie(Y.value),ne.promise}})},85873:(h,O,o)=>{"use strict";var d=o(93085),x=o(18922),w=o(99438),C=o(30511).CONSTRUCTOR;d({target:"Promise",stat:!0,forced:C},{reject:function(F){var U=w.f(this);return x(U.reject,void 0,F),U.promise}})},22931:(h,O,o)=>{"use strict";var d=o(93085),x=o(10150),w=o(85546),C=o(15813),T=o(30511).CONSTRUCTOR,F=o(19126),U=x("Promise"),Z=w&&!T;d({target:"Promise",stat:!0,forced:w||T},{resolve:function(ue){return F(Z&&this===U?C:this,ue)}})},71367:()=>{},39247:(h,O,o)=>{"use strict";var d=o(93085),x=o(84120),w=o(9703),C=o(13209),T=o(44845),F=o(83519),U=x("".indexOf);d({target:"String",proto:!0,forced:!F("includes")},{includes:function(ee){return!!~U(T(C(this)),T(w(ee)),arguments.length>1?arguments[1]:void 0)}})},5454:(h,O,o)=>{"use strict";var d=o(863).charAt,x=o(44845),w=o(73326),C=o(65297),T=o(87271),F="String Iterator",U=w.set,Z=w.getterFor(F);C(String,"String",function(ee){U(this,{type:F,string:x(ee),index:0})},function(){var ue=Z(this),ne=ue.string,ie=ue.index,Y;return ie>=ne.length?T(void 0,!0):(Y=d(ne,ie),ue.index+=Y.length,T(Y,!1))})},32991:(h,O,o)=>{"use strict";var d=o(93085),x=o(14914),w=o(5141).f,C=o(8445),T=o(44845),F=o(9703),U=o(13209),Z=o(83519),ee=o(85546),ue=x("".startsWith),ne=x("".slice),ie=Math.min,Y=Z("startsWith"),A=!ee&&!Y&&!!function(){var J=w(String.prototype,"startsWith");return J&&!J.writable}();d({target:"String",proto:!0,forced:!A&&!Y},{startsWith:function(N){var E=T(U(this));F(N);var k=C(ie(arguments.length>1?arguments[1]:void 0,E.length)),V=T(N);return ue?ue(E,V,k):ne(E,k,k+V.length)===V}})},19781:(h,O,o)=>{var d=o(48332);d("asyncIterator")},49351:(h,O,o)=>{"use strict";var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(85546),F=o(50069),U=o(36770),Z=o(76192),ee=o(64500),ue=o(8902),ne=o(31138),ie=o(20101),Y=o(40077),A=o(44845),J=o(90774),N=o(52853),E=o(57653),k=o(92092),V=o(24052),$=o(84750),Q=o(5141),W=o(42760),re=o(11187),K=o(56007),H=o(59362),fe=o(98717),he=o(69766),_=o(14535),X=o(42759),z=o(18182),ge=o(89207),Oe=o(48332),Ue=o(93407),Fe=o(11284),at=o(73326),Xe=o(50454).forEach,xt=he("hidden"),Pt="Symbol",Ct="prototype",Le=at.set,Ce=at.getterFor(Pt),Se=Object[Ct],De=x.Symbol,$e=De&&De[Ct],tt=x.TypeError,_e=x.QObject,St=Q.f,It=W.f,Wt=V.f,$t=K.f,We=C([].push),Ot=fe("symbols"),ot=fe("op-symbols"),qr=fe("wks"),Qe=!_e||!_e[Ct]||!_e[Ct].findChild,un=F&&Z(function(){return N(It({},"a",{get:function(){return It(this,"a",{value:7}).a}})).a!=7})?function(dt,gt,kt){var st=St(Se,gt);st&&delete Se[gt],It(dt,gt,kt),st&&dt!==Se&&It(Se,gt,st)}:It,Ir=function(dt,gt){var kt=Ot[dt]=N($e);return Le(kt,{type:Pt,tag:dt,description:gt}),F||(kt.description=gt),kt},Or=function(gt,kt,st){gt===Se&&Or(ot,kt,st),ne(gt);var Ve=Y(kt);return ne(st),ee(Ot,Ve)?(st.enumerable?(ee(gt,xt)&&gt[xt][Ve]&&(gt[xt][Ve]=!1),st=N(st,{enumerable:J(0,!1)})):(ee(gt,xt)||It(gt,xt,J(1,{})),gt[xt][Ve]=!0),un(gt,Ve,st)):It(gt,Ve,st)},pr=function(gt,kt){ne(gt);var st=ie(kt),Ve=E(st).concat(Rt(st));return Xe(Ve,function(ce){(!F||w(mt,st,ce))&&Or(gt,ce,st[ce])}),gt},et=function(gt,kt){return kt===void 0?N(gt):pr(N(gt),kt)},mt=function(gt){var kt=Y(gt),st=w($t,this,kt);return this===Se&&ee(Ot,kt)&&!ee(ot,kt)?!1:st||!ee(this,kt)||!ee(Ot,kt)||ee(this,xt)&&this[xt][kt]?st:!0},Mt=function(gt,kt){var st=ie(gt),Ve=Y(kt);if(!(st===Se&&ee(Ot,Ve)&&!ee(ot,Ve))){var ce=St(st,Ve);return ce&&ee(Ot,Ve)&&!(ee(st,xt)&&st[xt][Ve])&&(ce.enumerable=!0),ce}},Tt=function(gt){var kt=Wt(ie(gt)),st=[];return Xe(kt,function(Ve){!ee(Ot,Ve)&&!ee(_,Ve)&&We(st,Ve)}),st},Rt=function(dt){var gt=dt===Se,kt=Wt(gt?ot:ie(dt)),st=[];return Xe(kt,function(Ve){ee(Ot,Ve)&&(!gt||ee(Se,Ve))&&We(st,Ot[Ve])}),st};U||(De=function(){if(ue($e,this))throw tt("Symbol is not a constructor");var gt=!arguments.length||arguments[0]===void 0?void 0:A(arguments[0]),kt=X(gt),st=function(Ve){this===Se&&w(st,ot,Ve),ee(this,xt)&&ee(this[xt],kt)&&(this[xt][kt]=!1),un(this,kt,J(1,Ve))};return F&&Qe&&un(Se,kt,{configurable:!0,set:st}),Ir(kt,gt)},$e=De[Ct],H($e,"toString",function(){return Ce(this).tag}),H(De,"withoutSetter",function(dt){return Ir(X(dt),dt)}),K.f=mt,W.f=Or,re.f=pr,Q.f=Mt,k.f=V.f=Tt,$.f=Rt,ge.f=function(dt){return Ir(z(dt),dt)},F&&(It($e,"description",{configurable:!0,get:function(){return Ce(this).description}}),T||H(Se,"propertyIsEnumerable",mt,{unsafe:!0}))),d({global:!0,constructor:!0,wrap:!0,forced:!U,sham:!U},{Symbol:De}),Xe(E(qr),function(dt){Oe(dt)}),d({target:Pt,stat:!0,forced:!U},{useSetter:function(){Qe=!0},useSimple:function(){Qe=!1}}),d({target:"Object",stat:!0,forced:!U,sham:!F},{create:et,defineProperty:Or,defineProperties:pr,getOwnPropertyDescriptor:Mt}),d({target:"Object",stat:!0,forced:!U},{getOwnPropertyNames:Tt}),Ue(),Fe(De,Pt),_[xt]=!0},50492:()=>{},19148:(h,O,o)=>{var d=o(93085),x=o(10150),w=o(64500),C=o(44845),T=o(98717),F=o(20031),U=T("string-to-symbol-registry"),Z=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{for:function(ee){var ue=C(ee);if(w(U,ue))return U[ue];var ne=x("Symbol")(ue);return U[ue]=ne,Z[ne]=ue,ne}})},66681:(h,O,o)=>{var d=o(48332);d("hasInstance")},29594:(h,O,o)=>{var d=o(48332);d("isConcatSpreadable")},63665:(h,O,o)=>{var d=o(48332);d("iterator")},36187:(h,O,o)=>{o(49351),o(19148),o(15991),o(59704),o(17895)},15991:(h,O,o)=>{var d=o(93085),x=o(64500),w=o(23236),C=o(79288),T=o(98717),F=o(20031),U=T("symbol-to-string-registry");d({target:"Symbol",stat:!0,forced:!F},{keyFor:function(ee){if(!w(ee))throw TypeError(C(ee)+" is not a symbol");if(x(U,ee))return U[ee]}})},11250:(h,O,o)=>{var d=o(48332);d("matchAll")},29017:(h,O,o)=>{var d=o(48332);d("match")},79786:(h,O,o)=>{var d=o(48332);d("replace")},90503:(h,O,o)=>{var d=o(48332);d("search")},16565:(h,O,o)=>{var d=o(48332);d("species")},69322:(h,O,o)=>{var d=o(48332);d("split")},13610:(h,O,o)=>{var d=o(48332),x=o(93407);d("toPrimitive"),x()},36886:(h,O,o)=>{var d=o(10150),x=o(48332),w=o(11284);x("toStringTag"),w(d("Symbol"),"Symbol")},33514:(h,O,o)=>{var d=o(48332);d("unscopables")},10572:(h,O,o)=>{"use strict";var d=o(47636),x=o(98576),w=o(84120),C=o(35090),T=o(32861),F=o(34535),U=o(51057),Z=o(35744),ee=o(73326).enforce,ue=o(76192),ne=o(55278),ie=Object,Y=Array.isArray,A=ie.isExtensible,J=ie.isFrozen,N=ie.isSealed,E=ie.freeze,k=ie.seal,V={},$={},Q=!x.ActiveXObject&&"ActiveXObject"in x,W,re=function(ge){return function(){return ge(this,arguments.length?arguments[0]:void 0)}},K=F("WeakMap",re,U),H=K.prototype,fe=w(H.set),he=function(){return d&&ue(function(){var ge=E([]);return fe(new K,ge,1),!J(ge)})};if(ne)if(Q){W=U.getConstructor(re,"WeakMap",!0),T.enable();var _=w(H.delete),X=w(H.has),z=w(H.get);C(H,{delete:function(ge){if(Z(ge)&&!A(ge)){var Oe=ee(this);return Oe.frozen||(Oe.frozen=new W),_(this,ge)||Oe.frozen.delete(ge)}return _(this,ge)},has:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)||Ue.frozen.has(Oe)}return X(this,Oe)},get:function(Oe){if(Z(Oe)&&!A(Oe)){var Ue=ee(this);return Ue.frozen||(Ue.frozen=new W),X(this,Oe)?z(this,Oe):Ue.frozen.get(Oe)}return z(this,Oe)},set:function(Oe,Ue){if(Z(Oe)&&!A(Oe)){var Fe=ee(this);Fe.frozen||(Fe.frozen=new W),X(this,Oe)?fe(this,Oe,Ue):Fe.frozen.set(Oe,Ue)}else fe(this,Oe,Ue);return this}})}else he()&&C(H,{set:function(Oe,Ue){var Fe;return Y(Oe)&&(J(Oe)?Fe=V:N(Oe)&&(Fe=$)),fe(this,Oe,Ue),Fe==V&&E(Oe),Fe==$&&k(Oe),this}})},33983:(h,O,o)=>{o(10572)},12752:(h,O,o)=>{o(4242)},5363:(h,O,o)=>{o(25067)},14562:(h,O,o)=>{o(97884)},69355:(h,O,o)=>{o(78885)},25363:(h,O,o)=>{"use strict";var d=o(93085),x=o(99438),w=o(70892);d({target:"Promise",stat:!0,forced:!0},{try:function(C){var T=x.f(this),F=w(C);return(F.error?T.reject:T.resolve)(F.value),T.promise}})},60177:(h,O,o)=>{var d=o(48332);d("asyncDispose")},9031:(h,O,o)=>{var d=o(48332);d("dispose")},96658:(h,O,o)=>{var d=o(48332);d("matcher")},54212:(h,O,o)=>{var d=o(48332);d("metadataKey")},71875:(h,O,o)=>{var d=o(48332);d("metadata")},18658:(h,O,o)=>{var d=o(48332);d("observable")},54592:(h,O,o)=>{var d=o(48332);d("patternMatch")},26680:(h,O,o)=>{var d=o(48332);d("replaceAll")},80162:(h,O,o)=>{o(98939);var d=o(17365),x=o(98576),w=o(4696),C=o(98711),T=o(47771),F=o(18182),U=F("toStringTag");for(var Z in d){var ee=x[Z],ue=ee&&ee.prototype;ue&&w(ue)!==U&&C(ue,U,Z),T[Z]=T.Array}},67054:(h,O,o)=>{"use strict";o(98939);var d=o(93085),x=o(98576),w=o(18922),C=o(84120),T=o(50069),F=o(58552),U=o(59362),Z=o(35090),ee=o(11284),ue=o(25695),ne=o(73326),ie=o(46961),Y=o(16447),A=o(64500),J=o(8043),N=o(4696),E=o(31138),k=o(35744),V=o(44845),$=o(52853),Q=o(90774),W=o(61669),re=o(78703),K=o(67822),H=o(18182),fe=o(6614),he=H("iterator"),_="URLSearchParams",X=_+"Iterator",z=ne.set,ge=ne.getterFor(_),Oe=ne.getterFor(X),Ue=Object.getOwnPropertyDescriptor,Fe=function(Ve){if(!T)return x[Ve];var ce=Ue(x,Ve);return ce&&ce.value},at=Fe("fetch"),Xe=Fe("Request"),xt=Fe("Headers"),Pt=Xe&&Xe.prototype,Ct=xt&&xt.prototype,Le=x.RegExp,Ce=x.TypeError,Se=x.decodeURIComponent,De=x.encodeURIComponent,$e=C("".charAt),tt=C([].join),_e=C([].push),St=C("".replace),It=C([].shift),Wt=C([].splice),$t=C("".split),We=C("".slice),Ot=/\+/g,ot=Array(4),qr=function(Ve){return ot[Ve-1]||(ot[Ve-1]=Le("((?:%[\\da-f]{2}){"+Ve+"})","gi"))},Qe=function(Ve){try{return Se(Ve)}catch(ce){return Ve}},un=function(Ve){var ce=St(Ve,Ot," "),be=4;try{return Se(ce)}catch(Be){for(;be;)ce=St(ce,qr(be--),Qe);return ce}},Ir=/[!'()~]|%20/g,Or={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pr=function(Ve){return Or[Ve]},et=function(Ve){return St(De(Ve),Ir,pr)},mt=ue(function(ce,be){z(this,{type:X,iterator:W(ge(ce).entries),kind:be})},"Iterator",function(){var ce=Oe(this),be=ce.kind,Be=ce.iterator.next(),Ke=Be.value;return Be.done||(Be.value=be==="keys"?Ke.key:be==="values"?Ke.value:[Ke.key,Ke.value]),Be},!0),Mt=function(Ve){this.entries=[],this.url=null,Ve!==void 0&&(k(Ve)?this.parseObject(Ve):this.parseQuery(typeof Ve=="string"?$e(Ve,0)==="?"?We(Ve,1):Ve:V(Ve)))};Mt.prototype={type:_,bindURL:function(Ve){this.url=Ve,this.update()},parseObject:function(Ve){var ce=re(Ve),be,Be,Ke,lt,nt,_t,lr;if(ce)for(be=W(Ve,ce),Be=be.next;!(Ke=w(Be,be)).done;){if(lt=W(E(Ke.value)),nt=lt.next,(_t=w(nt,lt)).done||(lr=w(nt,lt)).done||!w(nt,lt).done)throw Ce("Expected sequence with length 2");_e(this.entries,{key:V(_t.value),value:V(lr.value)})}else for(var At in Ve)A(Ve,At)&&_e(this.entries,{key:At,value:V(Ve[At])})},parseQuery:function(Ve){if(Ve)for(var ce=$t(Ve,"&"),be=0,Be,Ke;be<ce.length;)Be=ce[be++],Be.length&&(Ke=$t(Be,"="),_e(this.entries,{key:un(It(Ke)),value:un(tt(Ke,"="))}))},serialize:function(){for(var Ve=this.entries,ce=[],be=0,Be;be<Ve.length;)Be=Ve[be++],_e(ce,et(Be.key)+"="+et(Be.value));return tt(ce,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Tt=function(){ie(this,Rt);var ce=arguments.length>0?arguments[0]:void 0;z(this,new Mt(ce))},Rt=Tt.prototype;if(Z(Rt,{append:function(ce,be){K(arguments.length,2);var Be=ge(this);_e(Be.entries,{key:V(ce),value:V(be)}),Be.updateURL()},delete:function(Ve){K(arguments.length,1);for(var ce=ge(this),be=ce.entries,Be=V(Ve),Ke=0;Ke<be.length;)be[Ke].key===Be?Wt(be,Ke,1):Ke++;ce.updateURL()},get:function(ce){K(arguments.length,1);for(var be=ge(this).entries,Be=V(ce),Ke=0;Ke<be.length;Ke++)if(be[Ke].key===Be)return be[Ke].value;return null},getAll:function(ce){K(arguments.length,1);for(var be=ge(this).entries,Be=V(ce),Ke=[],lt=0;lt<be.length;lt++)be[lt].key===Be&&_e(Ke,be[lt].value);return Ke},has:function(ce){K(arguments.length,1);for(var be=ge(this).entries,Be=V(ce),Ke=0;Ke<be.length;)if(be[Ke++].key===Be)return!0;return!1},set:function(ce,be){K(arguments.length,1);for(var Be=ge(this),Ke=Be.entries,lt=!1,nt=V(ce),_t=V(be),lr=0,At;lr<Ke.length;lr++)At=Ke[lr],At.key===nt&&(lt?Wt(Ke,lr--,1):(lt=!0,At.value=_t));lt||_e(Ke,{key:nt,value:_t}),Be.updateURL()},sort:function(){var ce=ge(this);fe(ce.entries,function(be,Be){return be.key>Be.key?1:-1}),ce.updateURL()},forEach:function(ce){for(var be=ge(this).entries,Be=J(ce,arguments.length>1?arguments[1]:void 0),Ke=0,lt;Ke<be.length;)lt=be[Ke++],Be(lt.value,lt.key,this)},keys:function(){return new mt(this,"keys")},values:function(){return new mt(this,"values")},entries:function(){return new mt(this,"entries")}},{enumerable:!0}),U(Rt,he,Rt.entries,{name:"entries"}),U(Rt,"toString",function(){return ge(this).serialize()},{enumerable:!0}),ee(Tt,_),d({global:!0,constructor:!0,forced:!F},{URLSearchParams:Tt}),!F&&Y(xt)){var dt=C(Ct.has),gt=C(Ct.set),kt=function(Ve){if(k(Ve)){var ce=Ve.body,be;if(N(ce)===_)return be=Ve.headers?new xt(Ve.headers):new xt,dt(be,"content-type")||gt(be,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),$(Ve,{body:Q(0,V(ce)),headers:Q(0,be)})}return Ve};if(Y(at)&&d({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(ce){return at(ce,arguments.length>1?kt(arguments[1]):{})}}),Y(Xe)){var st=function(ce){return ie(this,Pt),new Xe(ce,arguments.length>1?kt(arguments[1]):{})};Pt.constructor=st,st.prototype=Pt,d({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:st})}}h.exports={URLSearchParams:Tt,getState:ge}},69336:(h,O,o)=>{o(67054)},53822:(h,O,o)=>{var d=o(52221);h.exports=d},21434:(h,O,o)=>{var d=o(75078);h.exports=d},51629:(h,O,o)=>{var d=o(77237);h.exports=d},46899:(h,O,o)=>{var d=o(60098);h.exports=d},27710:(h,O,o)=>{var d=o(65739);o(80162),h.exports=d},31585:(h,O,o)=>{var d=o(74030);h.exports=d},44877:(h,O,o)=>{var d=o(41484);h.exports=d},10140:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(51629),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.entries;return U===T||w(T,U)&&Z===T.entries||x(F,d(U))?C:Z}},55603:(h,O,o)=>{var d=o(53669);h.exports=d},76237:(h,O,o)=>{var d=o(37506);h.exports=d},31206:(h,O,o)=>{o(80162);var d=o(4696),x=o(64500),w=o(8902),C=o(46899),T=Array.prototype,F={DOMTokenList:!0,NodeList:!0};h.exports=function(U){var Z=U.forEach;return U===T||w(T,U)&&Z===T.forEach||x(F,d(U))?C:Z}},56515:(h,O,o)=>{var d=o(13173);h.exports=d},26174:(h,O,o)=>{var d=o(92604);h.exports=d},20057:(h,O,o)=>{var d=o(263);h.exports=d},87511:(h,O,o)=>{var d=o(80432);h.exports=d},24741:(h,O,o)=>{var d=o(77663);h.exports=d},8368:(h,O,o)=>{var d=o(45063);h.exports=d},342:(h,O,o)=>{var d=o(7769);h.exports=d},392:(h,O,o)=>{var d=o(96056);h.exports=d},28478:(h,O,o)=>{var d=o(99936);h.exports=d},4963:(h,O,o)=>{var d=o(23213);h.exports=d},21025:(h,O,o)=>{var d=o(38724);h.exports=d},27820:(h,O,o)=>{var d=o(63512);h.exports=d},58202:(h,O,o)=>{var d=o(2335);h.exports=d},74194:(h,O,o)=>{var d=o(60632);h.exports=d},32854:(h,O,o)=>{var d=o(81056);h.exports=d},60002:(h,O,o)=>{var d=o(12921);h.exports=d},28980:(h,O,o)=>{var d=o(8168);h.exports=d},45636:(h,O,o)=>{var d=o(38651);h.exports=d},66672:(h,O,o)=>{var d=o(33083);h.exports=d},46618:(h,O,o)=>{var d=o(93154);o(80162),h.exports=d},42285:(h,O,o)=>{var d=o(85008);o(80162),h.exports=d},58535:(h,O,o)=>{var d=o(994);o(80162),h.exports=d},16042:(h,O,o)=>{var d=o(30290);h.exports=d},72946:(h,O,o)=>{var d=o(32004);o(80162),h.exports=d},11235:(h,O,o)=>{var d=o(31293);o(80162),h.exports=d},32004:(h,O,o)=>{o(69336);var d=o(57545);h.exports=d.URLSearchParams},43616:function(){(function(h){var O=function(o){var d={searchParams:"URLSearchParams"in h,iterable:"Symbol"in h&&"iterator"in Symbol,blob:"FileReader"in h&&"Blob"in h&&function(){try{return new Blob,!0}catch(K){return!1}}(),formData:"FormData"in h,arrayBuffer:"ArrayBuffer"in h};function x(K){return K&&DataView.prototype.isPrototypeOf(K)}if(d.arrayBuffer)var w=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],C=ArrayBuffer.isView||function(K){return K&&w.indexOf(Object.prototype.toString.call(K))>-1};function T(K){if(typeof K!="string"&&(K=String(K)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(K))throw new TypeError("Invalid character in header field name");return K.toLowerCase()}function F(K){return typeof K!="string"&&(K=String(K)),K}function U(K){var H={next:function(){var fe=K.shift();return{done:fe===void 0,value:fe}}};return d.iterable&&(H[Symbol.iterator]=function(){return H}),H}function Z(K){this.map={},K instanceof Z?K.forEach(function(H,fe){this.append(fe,H)},this):Array.isArray(K)?K.forEach(function(H){this.append(H[0],H[1])},this):K&&Object.getOwnPropertyNames(K).forEach(function(H){this.append(H,K[H])},this)}Z.prototype.append=function(K,H){K=T(K),H=F(H);var fe=this.map[K];this.map[K]=fe?fe+", "+H:H},Z.prototype.delete=function(K){delete this.map[T(K)]},Z.prototype.get=function(K){return K=T(K),this.has(K)?this.map[K]:null},Z.prototype.has=function(K){return this.map.hasOwnProperty(T(K))},Z.prototype.set=function(K,H){this.map[T(K)]=F(H)},Z.prototype.forEach=function(K,H){for(var fe in this.map)this.map.hasOwnProperty(fe)&&K.call(H,this.map[fe],fe,this)},Z.prototype.keys=function(){var K=[];return this.forEach(function(H,fe){K.push(fe)}),U(K)},Z.prototype.values=function(){var K=[];return this.forEach(function(H){K.push(H)}),U(K)},Z.prototype.entries=function(){var K=[];return this.forEach(function(H,fe){K.push([fe,H])}),U(K)},d.iterable&&(Z.prototype[Symbol.iterator]=Z.prototype.entries);function ee(K){if(K.bodyUsed)return Promise.reject(new TypeError("Already read"));K.bodyUsed=!0}function ue(K){return new Promise(function(H,fe){K.onload=function(){H(K.result)},K.onerror=function(){fe(K.error)}})}function ne(K){var H=new FileReader,fe=ue(H);return H.readAsArrayBuffer(K),fe}function ie(K){var H=new FileReader,fe=ue(H);return H.readAsText(K),fe}function Y(K){for(var H=new Uint8Array(K),fe=new Array(H.length),he=0;he<H.length;he++)fe[he]=String.fromCharCode(H[he]);return fe.join("")}function A(K){if(K.slice)return K.slice(0);var H=new Uint8Array(K.byteLength);return H.set(new Uint8Array(K)),H.buffer}function J(){return this.bodyUsed=!1,this._initBody=function(K){this._bodyInit=K,K?typeof K=="string"?this._bodyText=K:d.blob&&Blob.prototype.isPrototypeOf(K)?this._bodyBlob=K:d.formData&&FormData.prototype.isPrototypeOf(K)?this._bodyFormData=K:d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)?this._bodyText=K.toString():d.arrayBuffer&&d.blob&&x(K)?(this._bodyArrayBuffer=A(K.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):d.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(K)||C(K))?this._bodyArrayBuffer=A(K):this._bodyText=K=Object.prototype.toString.call(K):this._bodyText="",this.headers.get("content-type")||(typeof K=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):d.searchParams&&URLSearchParams.prototype.isPrototypeOf(K)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},d.blob&&(this.blob=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?ee(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(ne)}),this.text=function(){var K=ee(this);if(K)return K;if(this._bodyBlob)return ie(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(Y(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},d.formData&&(this.formData=function(){return this.text().then(V)}),this.json=function(){return this.text().then(JSON.parse)},this}var N=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function E(K){var H=K.toUpperCase();return N.indexOf(H)>-1?H:K}function k(K,H){H=H||{};var fe=H.body;if(K instanceof k){if(K.bodyUsed)throw new TypeError("Already read");this.url=K.url,this.credentials=K.credentials,H.headers||(this.headers=new Z(K.headers)),this.method=K.method,this.mode=K.mode,this.signal=K.signal,!fe&&K._bodyInit!=null&&(fe=K._bodyInit,K.bodyUsed=!0)}else this.url=String(K);if(this.credentials=H.credentials||this.credentials||"same-origin",(H.headers||!this.headers)&&(this.headers=new Z(H.headers)),this.method=E(H.method||this.method||"GET"),this.mode=H.mode||this.mode||null,this.signal=H.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&fe)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(fe)}k.prototype.clone=function(){return new k(this,{body:this._bodyInit})};function V(K){var H=new FormData;return K.trim().split("&").forEach(function(fe){if(fe){var he=fe.split("="),_=he.shift().replace(/\+/g," "),X=he.join("=").replace(/\+/g," ");H.append(decodeURIComponent(_),decodeURIComponent(X))}}),H}function $(K){var H=new Z,fe=K.replace(/\r?\n[\t ]+/g," ");return fe.split(/\r?\n/).forEach(function(he){var _=he.split(":"),X=_.shift().trim();if(X){var z=_.join(":").trim();H.append(X,z)}}),H}J.call(k.prototype);function Q(K,H){H||(H={}),this.type="default",this.status=H.status===void 0?200:H.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in H?H.statusText:"OK",this.headers=new Z(H.headers),this.url=H.url||"",this._initBody(K)}J.call(Q.prototype),Q.prototype.clone=function(){return new Q(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Z(this.headers),url:this.url})},Q.error=function(){var K=new Q(null,{status:0,statusText:""});return K.type="error",K};var W=[301,302,303,307,308];Q.redirect=function(K,H){if(W.indexOf(H)===-1)throw new RangeError("Invalid status code");return new Q(null,{status:H,headers:{location:K}})},o.DOMException=h.DOMException;try{new o.DOMException}catch(K){o.DOMException=function(H,fe){this.message=H,this.name=fe;var he=Error(H);this.stack=he.stack},o.DOMException.prototype=Object.create(Error.prototype),o.DOMException.prototype.constructor=o.DOMException}function re(K,H){return new Promise(function(fe,he){var _=new k(K,H);if(_.signal&&_.signal.aborted)return he(new o.DOMException("Aborted","AbortError"));var X=new XMLHttpRequest;function z(){X.abort()}X.onload=function(){var ge={status:X.status,statusText:X.statusText,headers:$(X.getAllResponseHeaders()||"")};ge.url="responseURL"in X?X.responseURL:ge.headers.get("X-Request-URL");var Oe="response"in X?X.response:X.responseText;fe(new Q(Oe,ge))},X.onerror=function(){he(new TypeError("Network request failed"))},X.ontimeout=function(){he(new TypeError("Network request failed"))},X.onabort=function(){he(new o.DOMException("Aborted","AbortError"))},X.open(_.method,_.url,!0),_.credentials==="include"?X.withCredentials=!0:_.credentials==="omit"&&(X.withCredentials=!1),"responseType"in X&&d.blob&&(X.responseType="blob"),_.headers.forEach(function(ge,Oe){X.setRequestHeader(Oe,ge)}),_.signal&&(_.signal.addEventListener("abort",z),X.onreadystatechange=function(){X.readyState===4&&_.signal.removeEventListener("abort",z)}),X.send(typeof _._bodyInit=="undefined"?null:_._bodyInit)})}return re.polyfill=!0,h.fetch||(h.fetch=re,h.Headers=Z,h.Request=k,h.Response=Q),o.Headers=Z,o.Request=k,o.Response=Q,o.fetch=re,Object.defineProperty(o,"__esModule",{value:!0}),o}({})})(typeof self!="undefined"?self:this)},96279:function(h,O){var o=typeof self!="undefined"?self:this,d=function(){function w(){this.fetch=!1,this.DOMException=o.DOMException}return w.prototype=o,new w}();(function(w){var C=function(T){var F={searchParams:"URLSearchParams"in w,iterable:"Symbol"in w&&"iterator"in Symbol,blob:"FileReader"in w&&"Blob"in w&&function(){try{return new Blob,!0}catch(X){return!1}}(),formData:"FormData"in w,arrayBuffer:"ArrayBuffer"in w};function U(X){return X&&DataView.prototype.isPrototypeOf(X)}if(F.arrayBuffer)var Z=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],ee=ArrayBuffer.isView||function(X){return X&&Z.indexOf(Object.prototype.toString.call(X))>-1};function ue(X){if(typeof X!="string"&&(X=String(X)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(X))throw new TypeError("Invalid character in header field name");return X.toLowerCase()}function ne(X){return typeof X!="string"&&(X=String(X)),X}function ie(X){var z={next:function(){var ge=X.shift();return{done:ge===void 0,value:ge}}};return F.iterable&&(z[Symbol.iterator]=function(){return z}),z}function Y(X){this.map={},X instanceof Y?X.forEach(function(z,ge){this.append(ge,z)},this):Array.isArray(X)?X.forEach(function(z){this.append(z[0],z[1])},this):X&&Object.getOwnPropertyNames(X).forEach(function(z){this.append(z,X[z])},this)}Y.prototype.append=function(X,z){X=ue(X),z=ne(z);var ge=this.map[X];this.map[X]=ge?ge+", "+z:z},Y.prototype.delete=function(X){delete this.map[ue(X)]},Y.prototype.get=function(X){return X=ue(X),this.has(X)?this.map[X]:null},Y.prototype.has=function(X){return this.map.hasOwnProperty(ue(X))},Y.prototype.set=function(X,z){this.map[ue(X)]=ne(z)},Y.prototype.forEach=function(X,z){for(var ge in this.map)this.map.hasOwnProperty(ge)&&X.call(z,this.map[ge],ge,this)},Y.prototype.keys=function(){var X=[];return this.forEach(function(z,ge){X.push(ge)}),ie(X)},Y.prototype.values=function(){var X=[];return this.forEach(function(z){X.push(z)}),ie(X)},Y.prototype.entries=function(){var X=[];return this.forEach(function(z,ge){X.push([ge,z])}),ie(X)},F.iterable&&(Y.prototype[Symbol.iterator]=Y.prototype.entries);function A(X){if(X.bodyUsed)return Promise.reject(new TypeError("Already read"));X.bodyUsed=!0}function J(X){return new Promise(function(z,ge){X.onload=function(){z(X.result)},X.onerror=function(){ge(X.error)}})}function N(X){var z=new FileReader,ge=J(z);return z.readAsArrayBuffer(X),ge}function E(X){var z=new FileReader,ge=J(z);return z.readAsText(X),ge}function k(X){for(var z=new Uint8Array(X),ge=new Array(z.length),Oe=0;Oe<z.length;Oe++)ge[Oe]=String.fromCharCode(z[Oe]);return ge.join("")}function V(X){if(X.slice)return X.slice(0);var z=new Uint8Array(X.byteLength);return z.set(new Uint8Array(X)),z.buffer}function $(){return this.bodyUsed=!1,this._initBody=function(X){this._bodyInit=X,X?typeof X=="string"?this._bodyText=X:F.blob&&Blob.prototype.isPrototypeOf(X)?this._bodyBlob=X:F.formData&&FormData.prototype.isPrototypeOf(X)?this._bodyFormData=X:F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)?this._bodyText=X.toString():F.arrayBuffer&&F.blob&&U(X)?(this._bodyArrayBuffer=V(X.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):F.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(X)||ee(X))?this._bodyArrayBuffer=V(X):this._bodyText=X=Object.prototype.toString.call(X):this._bodyText="",this.headers.get("content-type")||(typeof X=="string"?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):F.searchParams&&URLSearchParams.prototype.isPrototypeOf(X)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},F.blob&&(this.blob=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?A(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(N)}),this.text=function(){var X=A(this);if(X)return X;if(this._bodyBlob)return E(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(k(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},F.formData&&(this.formData=function(){return this.text().then(K)}),this.json=function(){return this.text().then(JSON.parse)},this}var Q=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function W(X){var z=X.toUpperCase();return Q.indexOf(z)>-1?z:X}function re(X,z){z=z||{};var ge=z.body;if(X instanceof re){if(X.bodyUsed)throw new TypeError("Already read");this.url=X.url,this.credentials=X.credentials,z.headers||(this.headers=new Y(X.headers)),this.method=X.method,this.mode=X.mode,this.signal=X.signal,!ge&&X._bodyInit!=null&&(ge=X._bodyInit,X.bodyUsed=!0)}else this.url=String(X);if(this.credentials=z.credentials||this.credentials||"same-origin",(z.headers||!this.headers)&&(this.headers=new Y(z.headers)),this.method=W(z.method||this.method||"GET"),this.mode=z.mode||this.mode||null,this.signal=z.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&ge)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(ge)}re.prototype.clone=function(){return new re(this,{body:this._bodyInit})};function K(X){var z=new FormData;return X.trim().split("&").forEach(function(ge){if(ge){var Oe=ge.split("="),Ue=Oe.shift().replace(/\+/g," "),Fe=Oe.join("=").replace(/\+/g," ");z.append(decodeURIComponent(Ue),decodeURIComponent(Fe))}}),z}function H(X){var z=new Y,ge=X.replace(/\r?\n[\t ]+/g," ");return ge.split(/\r?\n/).forEach(function(Oe){var Ue=Oe.split(":"),Fe=Ue.shift().trim();if(Fe){var at=Ue.join(":").trim();z.append(Fe,at)}}),z}$.call(re.prototype);function fe(X,z){z||(z={}),this.type="default",this.status=z.status===void 0?200:z.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in z?z.statusText:"OK",this.headers=new Y(z.headers),this.url=z.url||"",this._initBody(X)}$.call(fe.prototype),fe.prototype.clone=function(){return new fe(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new Y(this.headers),url:this.url})},fe.error=function(){var X=new fe(null,{status:0,statusText:""});return X.type="error",X};var he=[301,302,303,307,308];fe.redirect=function(X,z){if(he.indexOf(z)===-1)throw new RangeError("Invalid status code");return new fe(null,{status:z,headers:{location:X}})},T.DOMException=w.DOMException;try{new T.DOMException}catch(X){T.DOMException=function(z,ge){this.message=z,this.name=ge;var Oe=Error(z);this.stack=Oe.stack},T.DOMException.prototype=Object.create(Error.prototype),T.DOMException.prototype.constructor=T.DOMException}function _(X,z){return new Promise(function(ge,Oe){var Ue=new re(X,z);if(Ue.signal&&Ue.signal.aborted)return Oe(new T.DOMException("Aborted","AbortError"));var Fe=new XMLHttpRequest;function at(){Fe.abort()}Fe.onload=function(){var Xe={status:Fe.status,statusText:Fe.statusText,headers:H(Fe.getAllResponseHeaders()||"")};Xe.url="responseURL"in Fe?Fe.responseURL:Xe.headers.get("X-Request-URL");var xt="response"in Fe?Fe.response:Fe.responseText;ge(new fe(xt,Xe))},Fe.onerror=function(){Oe(new TypeError("Network request failed"))},Fe.ontimeout=function(){Oe(new TypeError("Network request failed"))},Fe.onabort=function(){Oe(new T.DOMException("Aborted","AbortError"))},Fe.open(Ue.method,Ue.url,!0),Ue.credentials==="include"?Fe.withCredentials=!0:Ue.credentials==="omit"&&(Fe.withCredentials=!1),"responseType"in Fe&&F.blob&&(Fe.responseType="blob"),Ue.headers.forEach(function(Xe,xt){Fe.setRequestHeader(xt,Xe)}),Ue.signal&&(Ue.signal.addEventListener("abort",at),Fe.onreadystatechange=function(){Fe.readyState===4&&Ue.signal.removeEventListener("abort",at)}),Fe.send(typeof Ue._bodyInit=="undefined"?null:Ue._bodyInit)})}return _.polyfill=!0,w.fetch||(w.fetch=_,w.Headers=Y,w.Request=re,w.Response=fe),T.Headers=Y,T.Request=re,T.Response=fe,T.fetch=_,Object.defineProperty(T,"__esModule",{value:!0}),T}({})})(d),d.fetch.ponyfill=!0,delete d.fetch.polyfill;var x=d;O=x.fetch,O.default=x.fetch,O.fetch=x.fetch,O.Headers=x.Headers,O.Request=x.Request,O.Response=x.Response,h.exports=O},45957:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.CodeMirror-hints{position:absolute;z-index:10;overflow:hidden;list-style:none;margin:0;padding:2px;-webkit-box-shadow:2px 3px 5px rgba(0,0,0,.2);-moz-box-shadow:2px 3px 5px rgba(0,0,0,.2);box-shadow:2px 3px 5px #0003;border-radius:3px;border:1px solid silver;background:white;font-size:90%;font-family:monospace;max-height:20em;overflow-y:auto;box-sizing:border-box}.CodeMirror-hint{margin:0;padding:0 4px;border-radius:2px;white-space:pre;color:#000;cursor:pointer}li.CodeMirror-hint-active{background:#08f;color:#fff}
42
+ `,""]);const F=T},73792:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>k});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=o(78991),F=o.n(T),U=new URL(o(17735),o.b),Z=new URL(o(56089),o.b),ee=new URL(o(46050),o.b),ue=new URL(o(71090),o.b),ne=new URL(o(96192),o.b),ie=C()(x()),Y=F()(U),A=F()(Z),J=F()(ee),N=F()(ue),E=F()(ne);ie.push([h.id,".CodeMirror-lint-markers{width:16px}.CodeMirror-lint-tooltip{background-color:#ffd;border:1px solid black;border-radius:4px;color:#000;font-family:monospace;font-size:10pt;overflow:hidden;padding:2px 5px;position:fixed;white-space:pre;white-space:pre-wrap;z-index:100;max-width:600px;opacity:0;transition:opacity .4s;-moz-transition:opacity .4s;-webkit-transition:opacity .4s;-o-transition:opacity .4s;-ms-transition:opacity .4s}.CodeMirror-lint-mark{background-position:left bottom;background-repeat:repeat-x}.CodeMirror-lint-mark-warning{background-image:url("+Y+")}.CodeMirror-lint-mark-error{background-image:url("+A+")}.CodeMirror-lint-marker{background-position:center center;background-repeat:no-repeat;cursor:pointer;display:inline-block;height:16px;width:16px;vertical-align:middle;position:relative}.CodeMirror-lint-message{padding-left:18px;background-position:top left;background-repeat:no-repeat}.CodeMirror-lint-marker-warning,.CodeMirror-lint-message-warning{background-image:url("+J+")}.CodeMirror-lint-marker-error,.CodeMirror-lint-message-error{background-image:url("+N+")}.CodeMirror-lint-marker-multiple{background-image:url("+E+`);background-repeat:no-repeat;background-position:right bottom;width:100%;height:100%}.CodeMirror-lint-line-error{background-color:#b74c5114}.CodeMirror-lint-line-warning{background-color:#ffd3001a}
43
+ `,""]);const k=ie},59062:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.CodeMirror{font-family:monospace;height:300px;color:#000;direction:ltr}.CodeMirror-lines{padding:4px 0}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{padding:0 4px}.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{background-color:#fff}.CodeMirror-gutters{border-right:1px solid #ddd;background-color:#f7f7f7;white-space:nowrap}.CodeMirror-linenumber{padding:0 3px 0 5px;min-width:20px;text-align:right;color:#999;white-space:nowrap}.CodeMirror-guttermarker{color:#000}.CodeMirror-guttermarker-subtle{color:#999}.CodeMirror-cursor{border-left:1px solid black;border-right:none;width:0}.CodeMirror div.CodeMirror-secondarycursor{border-left:1px solid silver}.cm-fat-cursor .CodeMirror-cursor{width:auto;border:0!important;background:#7e7}.cm-fat-cursor div.CodeMirror-cursors{z-index:1}.cm-fat-cursor .CodeMirror-line::selection,.cm-fat-cursor .CodeMirror-line>span::selection,.cm-fat-cursor .CodeMirror-line>span>span::selection{background:transparent}.cm-fat-cursor .CodeMirror-line::-moz-selection,.cm-fat-cursor .CodeMirror-line>span::-moz-selection,.cm-fat-cursor .CodeMirror-line>span>span::-moz-selection{background:transparent}.cm-fat-cursor{caret-color:transparent}@-moz-keyframes blink{50%{background-color:transparent}}@-webkit-keyframes blink{50%{background-color:transparent}}@keyframes blink{50%{background-color:transparent}}.cm-tab{display:inline-block;text-decoration:inherit}.CodeMirror-rulers{position:absolute;inset:-50px 0 0;overflow:hidden}.CodeMirror-ruler{border-left:1px solid #ccc;top:0;bottom:0;position:absolute}.cm-s-default .cm-header{color:#00f}.cm-s-default .cm-quote{color:#090}.cm-negative{color:#d44}.cm-positive{color:#292}.cm-header,.cm-strong{font-weight:700}.cm-em{font-style:italic}.cm-link{text-decoration:underline}.cm-strikethrough{text-decoration:line-through}.cm-s-default .cm-keyword{color:#708}.cm-s-default .cm-atom{color:#219}.cm-s-default .cm-number{color:#164}.cm-s-default .cm-def{color:#00f}.cm-s-default .cm-variable-2{color:#05a}.cm-s-default .cm-variable-3,.cm-s-default .cm-type{color:#085}.cm-s-default .cm-comment{color:#a50}.cm-s-default .cm-string{color:#a11}.cm-s-default .cm-string-2{color:#f50}.cm-s-default .cm-meta,.cm-s-default .cm-qualifier{color:#555}.cm-s-default .cm-builtin{color:#30a}.cm-s-default .cm-bracket{color:#997}.cm-s-default .cm-tag{color:#170}.cm-s-default .cm-attribute{color:#00c}.cm-s-default .cm-hr{color:#999}.cm-s-default .cm-link{color:#00c}.cm-s-default .cm-error,.cm-invalidchar{color:red}.CodeMirror-composing{border-bottom:2px solid}div.CodeMirror span.CodeMirror-matchingbracket{color:#0b0}div.CodeMirror span.CodeMirror-nonmatchingbracket{color:#a22}.CodeMirror-matchingtag{background:rgba(255,150,0,.3)}.CodeMirror-activeline-background{background:#e8f2ff}.CodeMirror{position:relative;overflow:hidden;background:white}.CodeMirror-scroll{overflow:scroll!important;margin-bottom:-50px;margin-right:-50px;padding-bottom:50px;height:100%;outline:none;position:relative;z-index:0}.CodeMirror-sizer{position:relative;border-right:50px solid transparent}.CodeMirror-vscrollbar,.CodeMirror-hscrollbar,.CodeMirror-scrollbar-filler,.CodeMirror-gutter-filler{position:absolute;z-index:6;display:none;outline:none}.CodeMirror-vscrollbar{right:0;top:0;overflow-x:hidden;overflow-y:scroll}.CodeMirror-hscrollbar{bottom:0;left:0;overflow-y:hidden;overflow-x:scroll}.CodeMirror-scrollbar-filler{right:0;bottom:0}.CodeMirror-gutter-filler{left:0;bottom:0}.CodeMirror-gutters{position:absolute;left:0;top:0;min-height:100%;z-index:3}.CodeMirror-gutter{white-space:normal;height:100%;display:inline-block;vertical-align:top;margin-bottom:-50px}.CodeMirror-gutter-wrapper{position:absolute;z-index:4;background:none!important;border:none!important}.CodeMirror-gutter-background{position:absolute;top:0;bottom:0;z-index:4}.CodeMirror-gutter-elt{position:absolute;cursor:default;z-index:4}.CodeMirror-gutter-wrapper ::selection{background-color:transparent}.CodeMirror-gutter-wrapper ::-moz-selection{background-color:transparent}.CodeMirror-lines{cursor:text;min-height:1px}.CodeMirror pre.CodeMirror-line,.CodeMirror pre.CodeMirror-line-like{-moz-border-radius:0;-webkit-border-radius:0;border-radius:0;border-width:0;background:transparent;font-family:inherit;font-size:inherit;margin:0;white-space:pre;word-wrap:normal;line-height:inherit;color:inherit;z-index:2;position:relative;overflow:visible;-webkit-tap-highlight-color:transparent;-webkit-font-variant-ligatures:contextual;font-variant-ligatures:contextual}.CodeMirror-wrap pre.CodeMirror-line,.CodeMirror-wrap pre.CodeMirror-line-like{word-wrap:break-word;white-space:pre-wrap;word-break:normal}.CodeMirror-linebackground{position:absolute;inset:0;z-index:0}.CodeMirror-linewidget{position:relative;z-index:2;padding:.1px}.CodeMirror-rtl pre{direction:rtl}.CodeMirror-code{outline:none}.CodeMirror-scroll,.CodeMirror-sizer,.CodeMirror-gutter,.CodeMirror-gutters,.CodeMirror-linenumber{-moz-box-sizing:content-box;box-sizing:content-box}.CodeMirror-measure{position:absolute;width:100%;height:0;overflow:hidden;visibility:hidden}.CodeMirror-cursor{position:absolute;pointer-events:none}.CodeMirror-measure pre{position:static}div.CodeMirror-cursors{visibility:hidden;position:relative;z-index:3}div.CodeMirror-dragcursors,.CodeMirror-focused div.CodeMirror-cursors{visibility:visible}.CodeMirror-selected{background:#d9d9d9}.CodeMirror-focused .CodeMirror-selected{background:#d7d4f0}.CodeMirror-crosshair{cursor:crosshair}.CodeMirror-line::selection,.CodeMirror-line>span::selection,.CodeMirror-line>span>span::selection{background:#d7d4f0}.CodeMirror-line::-moz-selection,.CodeMirror-line>span::-moz-selection,.CodeMirror-line>span>span::-moz-selection{background:#d7d4f0}.cm-searching{background-color:#ffa;background-color:#ff06}.cm-force-border{padding-right:.1px}@media print{.CodeMirror div.CodeMirror-cursors{visibility:hidden}}.cm-tab-wrap-hack:after{content:""}span.CodeMirror-selectedtext{background:none}
44
+ `,""]);const F=T},32024:(h,O,o)=>{"use strict";o.r(O),o.d(O,{default:()=>F});var d=o(39601),x=o.n(d),w=o(82609),C=o.n(w),T=C()(x());T.push([h.id,`.cm-s-material.CodeMirror{background-color:#263238;color:#eff}.cm-s-material .CodeMirror-gutters{background:#263238;color:#546e7a;border:none}.cm-s-material .CodeMirror-guttermarker,.cm-s-material .CodeMirror-guttermarker-subtle,.cm-s-material .CodeMirror-linenumber{color:#546e7a}.cm-s-material .CodeMirror-cursor{border-left:1px solid #FFCC00}.cm-s-material.cm-fat-cursor .CodeMirror-cursor,.cm-s-material .cm-animate-fat-cursor{background-color:#5d6d5c80!important}.cm-s-material div.CodeMirror-selected,.cm-s-material.CodeMirror-focused div.CodeMirror-selected{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::selection,.cm-s-material .CodeMirror-line>span::selection,.cm-s-material .CodeMirror-line>span>span::selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-line::-moz-selection,.cm-s-material .CodeMirror-line>span::-moz-selection,.cm-s-material .CodeMirror-line>span>span::-moz-selection{background:rgba(128,203,196,.2)}.cm-s-material .CodeMirror-activeline-background{background:rgba(0,0,0,.5)}.cm-s-material .cm-keyword{color:#c792ea}.cm-s-material .cm-operator{color:#89ddff}.cm-s-material .cm-variable-2{color:#eff}.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#f07178}.cm-s-material .cm-builtin{color:#ffcb6b}.cm-s-material .cm-atom{color:#f78c6c}.cm-s-material .cm-number{color:#ff5370}.cm-s-material .cm-def{color:#82aaff}.cm-s-material .cm-string{color:#c3e88d}.cm-s-material .cm-string-2{color:#f07178}.cm-s-material .cm-comment{color:#546e7a}.cm-s-material .cm-variable{color:#f07178}.cm-s-material .cm-tag{color:#ff5370}.cm-s-material .cm-meta{color:#ffcb6b}.cm-s-material .cm-attribute,.cm-s-material .cm-property{color:#c792ea}.cm-s-material .cm-qualifier,.cm-s-material .cm-variable-3,.cm-s-material .cm-type{color:#decb6b}.cm-s-material .cm-error{color:#fff;background-color:#ff5370}.cm-s-material .CodeMirror-matchingbracket{text-decoration:underline;color:#fff!important}
45
+ `,""]);const F=T},78991:h=>{"use strict";h.exports=function(O,o){return o||(o={}),O&&(O=String(O.__esModule?O.default:O),/^['"].*['"]$/.test(O)&&(O=O.slice(1,-1)),o.hash&&(O+=o.hash),/["'() \t\n]|(%20)/.test(O)||o.needQuotes?'"'.concat(O.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):O)}},77668:(h,O,o)=>{"use strict";o.r(O),o.d(O,{Console:()=>Hx});var d={};o.r(d),o.d(d,{JsonPatchError:()=>Er,_areEquals:()=>$i,applyOperation:()=>wa,applyPatch:()=>Gi,applyReducer:()=>If,deepClone:()=>Ad,getValueByPointer:()=>_a,validate:()=>ks,validator:()=>Ci});var x={};o.r(x),o.d(x,{compare:()=>eo,generate:()=>Ms,observe:()=>Rf,unobserve:()=>Rs});var w={};o.r(w),o.d(w,{cookie:()=>l,header:()=>u,path:()=>Qs,query:()=>t});var C=o(25575),T=o(24463),F=o(84870),U=o(79494),Z=o(48145),ee=o(11807),ue=o(45055),ne=o(49800),ie=o(57829),Y=o(92876);function A(e){return A=typeof ie=="function"&&typeof Y=="symbol"?function(r){return typeof r}:function(r){return r&&typeof ie=="function"&&r.constructor===ie&&r!==ie.prototype?"symbol":typeof r},A(e)}var J=o(92903);function N(e,r){if(A(e)!=="object"||e===null)return e;var n=e[J];if(n!==void 0){var a=n.call(e,r||"default");if(A(a)!=="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}function E(e){var r=N(e,"string");return A(r)==="symbol"?r:String(r)}function k(e,r,n){return r=E(r),r in e?ne(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function V(e,r){var n=C(e);if(T){var a=T(e);r&&(a=F(a).call(a,function(s){return U(e,s).enumerable})),n.push.apply(n,a)}return n}function $(e){for(var r=1;r<arguments.length;r++){var n,a,s=arguments[r]!=null?arguments[r]:{};r%2?Z(n=V(Object(s),!0)).call(n,function(c){k(e,c,s[c])}):ee?ue(e,ee(s)):Z(a=V(Object(s))).call(a,function(c){ne(e,c,U(s,c))})}return e}var Q=o(45932),W=o.n(Q),re=o(51661),K=o.n(re),H=o(883),fe=o(5490),he=o(72010),_=o(72383),X=o(50557);function z(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function ge(e,r){var n;if(!!e){if(typeof e=="string")return z(e,r);var a=_(n=Object.prototype.toString.call(e)).call(n,8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return X(e);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return z(e,r)}}function Oe(e,r){var n=typeof ie!="undefined"&&fe(e)||e["@@iterator"];if(!n){if(he(e)||(n=ge(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(y){throw y},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
46
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,g;return{s:function(){n=n.call(e)},n:function(){var y=n.next();return c=y.done,y},e:function(y){p=!0,g=y},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw g}}}}function Ue(e){if(he(e))return e}function Fe(e,r){var n=e==null?null:typeof ie!="undefined"&&fe(e)||e["@@iterator"];if(n!=null){var a,s,c,p,g=[],v=!0,y=!1;try{if(c=(n=n.call(e)).next,r===0){if(Object(n)!==n)return;v=!1}else for(;!(v=(a=c.call(n)).done)&&(g.push(a.value),g.length!==r);v=!0);}catch(b){y=!0,s=b}finally{try{if(!v&&n.return!=null&&(p=n.return(),Object(p)!==p))return}finally{if(y)throw s}}return g}}function at(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
47
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Xe(e,r){return Ue(e)||Fe(e,r)||ge(e,r)||at()}var xt=o(64772);function Pt(e,r,n,a,s,c,p){try{var g=e[c](p),v=g.value}catch(y){n(y);return}g.done?r(v):xt.resolve(v).then(a,s)}function Ct(e){return function(){var r=this,n=arguments;return new xt(function(a,s){var c=e.apply(r,n);function p(v){Pt(c,a,s,p,g,"next",v)}function g(v){Pt(c,a,s,p,g,"throw",v)}p(void 0)})}}var Le=o(99732),Ce=o.n(Le),Se=o(82985),De=o.n(Se),$e=o(42126),tt=o.n($e),_e=o(48621),St=o.n(_e),It=o(85337),Wt=o.n(It),$t=o(14903),We=o.n($t),Ot=o(2921),ot=o.n(Ot),qr=o(40192),Qe=o.n(qr),un=o(31175),Ir=o.n(un),Or=o(40453),pr=o.n(Or),et=o(43616),mt=o(37794),Mt=o.n(mt);/*! js-yaml 4.1.0 https://github.com/nodeca/js-yaml @license MIT */function Tt(e){return typeof e=="undefined"||e===null}function Rt(e){return typeof e=="object"&&e!==null}function dt(e){return Array.isArray(e)?e:Tt(e)?[]:[e]}function gt(e,r){var n,a,s,c;if(r)for(c=Object.keys(r),n=0,a=c.length;n<a;n+=1)s=c[n],e[s]=r[s];return e}function kt(e,r){var n="",a;for(a=0;a<r;a+=1)n+=e;return n}function st(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Ve=Tt,ce=Rt,be=dt,Be=kt,Ke=st,lt=gt,nt={isNothing:Ve,isObject:ce,toArray:be,repeat:Be,isNegativeZero:Ke,extend:lt};function _t(e,r){var n="",a=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(n+='in "'+e.mark.name+'" '),n+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!r&&e.mark.snippet&&(n+=`
48
+
49
+ `+e.mark.snippet),a+" "+n):a}function lr(e,r){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=r,this.message=_t(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}lr.prototype=Object.create(Error.prototype),lr.prototype.constructor=lr,lr.prototype.toString=function(r){return this.name+": "+_t(this,r)};var At=lr;function Cr(e,r,n,a,s){var c="",p="",g=Math.floor(s/2)-1;return a-r>g&&(c=" ... ",r=a-g+c.length),n-a>g&&(p=" ...",n=a+g-p.length),{str:c+e.slice(r,n).replace(/\t/g,"\u2192")+p,pos:a-r+c.length}}function jn(e,r){return nt.repeat(" ",r-e.length)+e}function $r(e,r){if(r=Object.create(r||null),!e.buffer)return null;r.maxLength||(r.maxLength=79),typeof r.indent!="number"&&(r.indent=1),typeof r.linesBefore!="number"&&(r.linesBefore=3),typeof r.linesAfter!="number"&&(r.linesAfter=2);for(var n=/\r?\n|\r|\0/g,a=[0],s=[],c,p=-1;c=n.exec(e.buffer);)s.push(c.index),a.push(c.index+c[0].length),e.position<=c.index&&p<0&&(p=a.length-2);p<0&&(p=a.length-1);var g="",v,y,b=Math.min(e.line+r.linesAfter,s.length).toString().length,I=r.maxLength-(r.indent+b+3);for(v=1;v<=r.linesBefore&&!(p-v<0);v++)y=Cr(e.buffer,a[p-v],s[p-v],e.position-(a[p]-a[p-v]),I),g=nt.repeat(" ",r.indent)+jn((e.line-v+1).toString(),b)+" | "+y.str+`
50
+ `+g;for(y=Cr(e.buffer,a[p],s[p],e.position,I),g+=nt.repeat(" ",r.indent)+jn((e.line+1).toString(),b)+" | "+y.str+`
51
+ `,g+=nt.repeat("-",r.indent+b+3+y.pos)+`^
52
+ `,v=1;v<=r.linesAfter&&!(p+v>=s.length);v++)y=Cr(e.buffer,a[p+v],s[p+v],e.position-(a[p]-a[p+v]),I),g+=nt.repeat(" ",r.indent)+jn((e.line+v+1).toString(),b)+" | "+y.str+`
53
+ `;return g.replace(/\n$/,"")}var Kr=$r,hi=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],_r=["scalar","sequence","mapping"];function vi(e){var r={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(a){r[String(a)]=n})}),r}function gi(e,r){if(r=r||{},Object.keys(r).forEach(function(n){if(hi.indexOf(n)===-1)throw new At('Unknown option "'+n+'" is met in definition of "'+e+'" YAML type.')}),this.options=r,this.tag=e,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.representName=r.representName||null,this.defaultStyle=r.defaultStyle||null,this.multi=r.multi||!1,this.styleAliases=vi(r.styleAliases||null),_r.indexOf(this.kind)===-1)throw new At('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var er=gi;function mi(e,r){var n=[];return e[r].forEach(function(a){var s=n.length;n.forEach(function(c,p){c.tag===a.tag&&c.kind===a.kind&&c.multi===a.multi&&(s=p)}),n[s]=a}),n}function _n(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},r,n;function a(s){s.multi?(e.multi[s.kind].push(s),e.multi.fallback.push(s)):e[s.kind][s.tag]=e.fallback[s.tag]=s}for(r=0,n=arguments.length;r<n;r+=1)arguments[r].forEach(a);return e}function ei(e){return this.extend(e)}ei.prototype.extend=function(r){var n=[],a=[];if(r instanceof er)a.push(r);else if(Array.isArray(r))a=a.concat(r);else if(r&&(Array.isArray(r.implicit)||Array.isArray(r.explicit)))r.implicit&&(n=n.concat(r.implicit)),r.explicit&&(a=a.concat(r.explicit));else throw new At("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");n.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(c.loadKind&&c.loadKind!=="scalar")throw new At("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(c.multi)throw new At("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),a.forEach(function(c){if(!(c instanceof er))throw new At("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var s=Object.create(ei.prototype);return s.implicit=(this.implicit||[]).concat(n),s.explicit=(this.explicit||[]).concat(a),s.compiledImplicit=mi(s,"implicit"),s.compiledExplicit=mi(s,"explicit"),s.compiledTypeMap=_n(s.compiledImplicit,s.compiledExplicit),s};var na=ei,pn=new er("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),fn=new er("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),hn=new er("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),vn=new na({explicit:[pn,fn,hn]});function An(e){if(e===null)return!0;var r=e.length;return r===1&&e==="~"||r===4&&(e==="null"||e==="Null"||e==="NULL")}function ho(){return null}function Vn(e){return e===null}var en=new er("tag:yaml.org,2002:null",{kind:"scalar",resolve:An,construct:ho,predicate:Vn,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function kr(e){if(e===null)return!1;var r=e.length;return r===4&&(e==="true"||e==="True"||e==="TRUE")||r===5&&(e==="false"||e==="False"||e==="FALSE")}function yi(e){return e==="true"||e==="True"||e==="TRUE"}function Cn(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var ia=new er("tag:yaml.org,2002:bool",{kind:"scalar",resolve:kr,construct:yi,predicate:Cn,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function is(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function mr(e){return 48<=e&&e<=55}function ut(e){return 48<=e&&e<=57}function bi(e){if(e===null)return!1;var r=e.length,n=0,a=!1,s;if(!r)return!1;if(s=e[n],(s==="-"||s==="+")&&(s=e[++n]),s==="0"){if(n+1===r)return!0;if(s=e[++n],s==="b"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(s!=="0"&&s!=="1")return!1;a=!0}return a&&s!=="_"}if(s==="x"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!is(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}if(s==="o"){for(n++;n<r;n++)if(s=e[n],s!=="_"){if(!mr(e.charCodeAt(n)))return!1;a=!0}return a&&s!=="_"}}if(s==="_")return!1;for(;n<r;n++)if(s=e[n],s!=="_"){if(!ut(e.charCodeAt(n)))return!1;a=!0}return!(!a||s==="_")}function aa(e){var r=e,n=1,a;if(r.indexOf("_")!==-1&&(r=r.replace(/_/g,"")),a=r[0],(a==="-"||a==="+")&&(a==="-"&&(n=-1),r=r.slice(1),a=r[0]),r==="0")return 0;if(a==="0"){if(r[1]==="b")return n*parseInt(r.slice(2),2);if(r[1]==="x")return n*parseInt(r.slice(2),16);if(r[1]==="o")return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)}function En(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!nt.isNegativeZero(e)}var Kt=new er("tag:yaml.org,2002:int",{kind:"scalar",resolve:bi,construct:aa,predicate:En,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),xi=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function oa(e){return!(e===null||!xi.test(e)||e[e.length-1]==="_")}function Va(e){var r,n;return r=e.replace(/_/g,"").toLowerCase(),n=r[0]==="-"?-1:1,"+-".indexOf(r[0])>=0&&(r=r.slice(1)),r===".inf"?n===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:r===".nan"?NaN:n*parseFloat(r,10)}var D=/^[-+]?[0-9]+e/;function oe(e,r){var n;if(isNaN(e))switch(r){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(r){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(r){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(nt.isNegativeZero(e))return"-0.0";return n=e.toString(10),D.test(n)?n.replace("e",".e"):n}function Me(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||nt.isNegativeZero(e))}var He=new er("tag:yaml.org,2002:float",{kind:"scalar",resolve:oa,construct:Va,predicate:Me,represent:oe,defaultStyle:"lowercase"}),Ft=vn.extend({implicit:[en,ia,Kt,He]}),jt=Ft,tr=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),ft=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function On(e){return e===null?!1:tr.exec(e)!==null||ft.exec(e)!==null}function as(e){var r,n,a,s,c,p,g,v=0,y=null,b,I,M;if(r=tr.exec(e),r===null&&(r=ft.exec(e)),r===null)throw new Error("Date resolve error");if(n=+r[1],a=+r[2]-1,s=+r[3],!r[4])return new Date(Date.UTC(n,a,s));if(c=+r[4],p=+r[5],g=+r[6],r[7]){for(v=r[7].slice(0,3);v.length<3;)v+="0";v=+v}return r[9]&&(b=+r[10],I=+(r[11]||0),y=(b*60+I)*6e4,r[9]==="-"&&(y=-y)),M=new Date(Date.UTC(n,a,s,c,p,g,v)),y&&M.setTime(M.getTime()-y),M}function os(e){return e.toISOString()}var Un=new er("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:On,construct:as,instanceOf:Date,represent:os});function Hu(e){return e==="<<"||e===null}var cl=new er("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Hu}),sa=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
54
+ \r`;function dl(e){if(e===null)return!1;var r,n,a=0,s=e.length,c=sa;for(n=0;n<s;n++)if(r=c.indexOf(e.charAt(n)),!(r>64)){if(r<0)return!1;a+=6}return a%8===0}function zu(e){var r,n,a=e.replace(/[\r\n=]/g,""),s=a.length,c=sa,p=0,g=[];for(r=0;r<s;r++)r%4===0&&r&&(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)),p=p<<6|c.indexOf(a.charAt(r));return n=s%4*6,n===0?(g.push(p>>16&255),g.push(p>>8&255),g.push(p&255)):n===18?(g.push(p>>10&255),g.push(p>>2&255)):n===12&&g.push(p>>4&255),new Uint8Array(g)}function pl(e){var r="",n=0,a,s,c=e.length,p=sa;for(a=0;a<c;a++)a%3===0&&a&&(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]),n=(n<<8)+e[a];return s=c%3,s===0?(r+=p[n>>18&63],r+=p[n>>12&63],r+=p[n>>6&63],r+=p[n&63]):s===2?(r+=p[n>>10&63],r+=p[n>>4&63],r+=p[n<<2&63],r+=p[64]):s===1&&(r+=p[n>>2&63],r+=p[n<<4&63],r+=p[64],r+=p[64]),r}function Gu(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var hl=new er("tag:yaml.org,2002:binary",{kind:"scalar",resolve:dl,construct:zu,predicate:Gu,represent:pl}),$u=Object.prototype.hasOwnProperty,Ku=Object.prototype.toString;function Kc(e){if(e===null)return!0;var r=[],n,a,s,c,p,g=e;for(n=0,a=g.length;n<a;n+=1){if(s=g[n],p=!1,Ku.call(s)!=="[object Object]")return!1;for(c in s)if($u.call(s,c))if(!p)p=!0;else return!1;if(!p)return!1;if(r.indexOf(c)===-1)r.push(c);else return!1}return!0}function Yc(e){return e!==null?e:[]}var vl=new er("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kc,construct:Yc}),Si=Object.prototype.toString;function Jc(e){if(e===null)return!0;var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1){if(a=p[r],Si.call(a)!=="[object Object]"||(s=Object.keys(a),s.length!==1))return!1;c[r]=[s[0],a[s[0]]]}return!0}function Xc(e){if(e===null)return[];var r,n,a,s,c,p=e;for(c=new Array(p.length),r=0,n=p.length;r<n;r+=1)a=p[r],s=Object.keys(a),c[r]=[s[0],a[s[0]]];return c}var vo=new er("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:Jc,construct:Xc}),go=Object.prototype.hasOwnProperty;function Qc(e){if(e===null)return!0;var r,n=e;for(r in n)if(go.call(n,r)&&n[r]!==null)return!1;return!0}function Zc(e){return e!==null?e:{}}var Yu=new er("tag:yaml.org,2002:set",{kind:"mapping",resolve:Qc,construct:Zc}),gl=jt.extend({implicit:[Un,cl],explicit:[hl,vl,vo,Yu]}),ti=Object.prototype.hasOwnProperty,mo=1,Ju=2,ml=3,yo=4,Ua=1,ss=2,ls=3,Xu=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Qu=/[\x85\u2028\u2029]/,us=/[,\[\]\{\}]/,Zu=/^(?:!|!!|![a-z\-]+!)$/i,yl=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Tn(e){return Object.prototype.toString.call(e)}function ri(e){return e===10||e===13}function la(e){return e===9||e===32}function tn(e){return e===9||e===32||e===10||e===13}function ua(e){return e===44||e===91||e===93||e===123||e===125}function Li(e){var r;return 48<=e&&e<=57?e-48:(r=e|32,97<=r&&r<=102?r-97+10:-1)}function bl(e){return e===120?2:e===117?4:e===85?8:0}function wi(e){return 48<=e&&e<=57?e-48:-1}function bo(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
55
+ `:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function xl(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}for(var fa=new Array(256),qu=new Array(256),Wa=0;Wa<256;Wa++)fa[Wa]=bo(Wa)?1:0,qu[Wa]=bo(Wa);function qc(e,r){this.input=e,this.filename=r.filename||null,this.schema=r.schema||gl,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.json=r.json||!1,this.listener=r.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function _u(e,r){var n={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return n.snippet=Kr(n),new At(r,n)}function yt(e,r){throw _u(e,r)}function xo(e,r){e.onWarning&&e.onWarning.call(null,_u(e,r))}var ef={YAML:function(r,n,a){var s,c,p;r.version!==null&&yt(r,"duplication of %YAML directive"),a.length!==1&&yt(r,"YAML directive accepts exactly one argument"),s=/^([0-9]+)\.([0-9]+)$/.exec(a[0]),s===null&&yt(r,"ill-formed argument of the YAML directive"),c=parseInt(s[1],10),p=parseInt(s[2],10),c!==1&&yt(r,"unacceptable YAML version of the document"),r.version=a[0],r.checkLineBreaks=p<2,p!==1&&p!==2&&xo(r,"unsupported YAML version of the document")},TAG:function(r,n,a){var s,c;a.length!==2&&yt(r,"TAG directive accepts exactly two arguments"),s=a[0],c=a[1],Zu.test(s)||yt(r,"ill-formed tag handle (first argument) of the TAG directive"),ti.call(r.tagMap,s)&&yt(r,'there is a previously declared suffix for "'+s+'" tag handle'),yl.test(c)||yt(r,"ill-formed tag prefix (second argument) of the TAG directive");try{c=decodeURIComponent(c)}catch(p){yt(r,"tag prefix is malformed: "+c)}r.tagMap[s]=c}};function Ni(e,r,n,a){var s,c,p,g;if(r<n){if(g=e.input.slice(r,n),a)for(s=0,c=g.length;s<c;s+=1)p=g.charCodeAt(s),p===9||32<=p&&p<=1114111||yt(e,"expected valid JSON character");else Xu.test(g)&&yt(e,"the stream contains non-printable characters");e.result+=g}}function tf(e,r,n,a){var s,c,p,g;for(nt.isObject(n)||yt(e,"cannot merge mappings; the provided source object is unacceptable"),s=Object.keys(n),p=0,g=s.length;p<g;p+=1)c=s[p],ti.call(r,c)||(r[c]=n[c],a[c]=!0)}function Ha(e,r,n,a,s,c,p,g,v){var y,b;if(Array.isArray(s))for(s=Array.prototype.slice.call(s),y=0,b=s.length;y<b;y+=1)Array.isArray(s[y])&&yt(e,"nested arrays are not supported inside keys"),typeof s=="object"&&Tn(s[y])==="[object Object]"&&(s[y]="[object Object]");if(typeof s=="object"&&Tn(s)==="[object Object]"&&(s="[object Object]"),s=String(s),r===null&&(r={}),a==="tag:yaml.org,2002:merge")if(Array.isArray(c))for(y=0,b=c.length;y<b;y+=1)tf(e,r,c[y],n);else tf(e,r,c,n);else!e.json&&!ti.call(n,s)&&ti.call(r,s)&&(e.line=p||e.line,e.lineStart=g||e.lineStart,e.position=v||e.position,yt(e,"duplicated mapping key")),s==="__proto__"?Object.defineProperty(r,s,{configurable:!0,enumerable:!0,writable:!0,value:c}):r[s]=c,delete n[s];return r}function fs(e){var r;r=e.input.charCodeAt(e.position),r===10?e.position++:r===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):yt(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Mr(e,r,n){for(var a=0,s=e.input.charCodeAt(e.position);s!==0;){for(;la(s);)s===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(r&&s===35)do s=e.input.charCodeAt(++e.position);while(s!==10&&s!==13&&s!==0);if(ri(s))for(fs(e),s=e.input.charCodeAt(e.position),a++,e.lineIndent=0;s===32;)e.lineIndent++,s=e.input.charCodeAt(++e.position);else break}return n!==-1&&a!==0&&e.lineIndent<n&&xo(e,"deficient indentation"),a}function So(e){var r=e.position,n;return n=e.input.charCodeAt(r),!!((n===45||n===46)&&n===e.input.charCodeAt(r+1)&&n===e.input.charCodeAt(r+2)&&(r+=3,n=e.input.charCodeAt(r),n===0||tn(n)))}function za(e,r){r===1?e.result+=" ":r>1&&(e.result+=nt.repeat(`
56
+ `,r-1))}function Ga(e,r,n){var a,s,c,p,g,v,y,b,I=e.kind,M=e.result,B;if(B=e.input.charCodeAt(e.position),tn(B)||ua(B)||B===35||B===38||B===42||B===33||B===124||B===62||B===39||B===34||B===37||B===64||B===96||(B===63||B===45)&&(s=e.input.charCodeAt(e.position+1),tn(s)||n&&ua(s)))return!1;for(e.kind="scalar",e.result="",c=p=e.position,g=!1;B!==0;){if(B===58){if(s=e.input.charCodeAt(e.position+1),tn(s)||n&&ua(s))break}else if(B===35){if(a=e.input.charCodeAt(e.position-1),tn(a))break}else{if(e.position===e.lineStart&&So(e)||n&&ua(B))break;if(ri(B))if(v=e.line,y=e.lineStart,b=e.lineIndent,Mr(e,!1,-1),e.lineIndent>=r){g=!0,B=e.input.charCodeAt(e.position);continue}else{e.position=p,e.line=v,e.lineStart=y,e.lineIndent=b;break}}g&&(Ni(e,c,p,!1),za(e,e.line-v),c=p=e.position,g=!1),la(B)||(p=e.position+1),B=e.input.charCodeAt(++e.position)}return Ni(e,c,p,!1),e.result?!0:(e.kind=I,e.result=M,!1)}function _c(e,r){var n,a,s;if(n=e.input.charCodeAt(e.position),n!==39)return!1;for(e.kind="scalar",e.result="",e.position++,a=s=e.position;(n=e.input.charCodeAt(e.position))!==0;)if(n===39)if(Ni(e,a,e.position,!0),n=e.input.charCodeAt(++e.position),n===39)a=e.position,e.position++,s=e.position;else return!0;else ri(n)?(Ni(e,a,s,!0),za(e,Mr(e,!1,r)),a=s=e.position):e.position===e.lineStart&&So(e)?yt(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);yt(e,"unexpected end of the stream within a single quoted scalar")}function ed(e,r){var n,a,s,c,p,g;if(g=e.input.charCodeAt(e.position),g!==34)return!1;for(e.kind="scalar",e.result="",e.position++,n=a=e.position;(g=e.input.charCodeAt(e.position))!==0;){if(g===34)return Ni(e,n,e.position,!0),e.position++,!0;if(g===92){if(Ni(e,n,e.position,!0),g=e.input.charCodeAt(++e.position),ri(g))Mr(e,!1,r);else if(g<256&&fa[g])e.result+=qu[g],e.position++;else if((p=bl(g))>0){for(s=p,c=0;s>0;s--)g=e.input.charCodeAt(++e.position),(p=Li(g))>=0?c=(c<<4)+p:yt(e,"expected hexadecimal character");e.result+=xl(c),e.position++}else yt(e,"unknown escape sequence");n=a=e.position}else ri(g)?(Ni(e,n,a,!0),za(e,Mr(e,!1,r)),n=a=e.position):e.position===e.lineStart&&So(e)?yt(e,"unexpected end of the document within a double quoted scalar"):(e.position++,a=e.position)}yt(e,"unexpected end of the stream within a double quoted scalar")}function td(e,r){var n=!0,a,s,c,p=e.tag,g,v=e.anchor,y,b,I,M,B,G=Object.create(null),te,q,le,ae;if(ae=e.input.charCodeAt(e.position),ae===91)b=93,B=!1,g=[];else if(ae===123)b=125,B=!0,g={};else return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=g),ae=e.input.charCodeAt(++e.position);ae!==0;){if(Mr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===b)return e.position++,e.tag=p,e.anchor=v,e.kind=B?"mapping":"sequence",e.result=g,!0;n?ae===44&&yt(e,"expected the node content, but found ','"):yt(e,"missed comma between flow collection entries"),q=te=le=null,I=M=!1,ae===63&&(y=e.input.charCodeAt(e.position+1),tn(y)&&(I=M=!0,e.position++,Mr(e,!0,r))),a=e.line,s=e.lineStart,c=e.position,ca(e,r,mo,!1,!0),q=e.tag,te=e.result,Mr(e,!0,r),ae=e.input.charCodeAt(e.position),(M||e.line===a)&&ae===58&&(I=!0,ae=e.input.charCodeAt(++e.position),Mr(e,!0,r),ca(e,r,mo,!1,!0),le=e.result),B?Ha(e,g,G,q,te,le,a,s,c):I?g.push(Ha(e,null,G,q,te,le,a,s,c)):g.push(te),Mr(e,!0,r),ae=e.input.charCodeAt(e.position),ae===44?(n=!0,ae=e.input.charCodeAt(++e.position)):n=!1}yt(e,"unexpected end of the stream within a flow collection")}function wo(e,r){var n,a,s=Ua,c=!1,p=!1,g=r,v=0,y=!1,b,I;if(I=e.input.charCodeAt(e.position),I===124)a=!1;else if(I===62)a=!0;else return!1;for(e.kind="scalar",e.result="";I!==0;)if(I=e.input.charCodeAt(++e.position),I===43||I===45)Ua===s?s=I===43?ls:ss:yt(e,"repeat of a chomping mode identifier");else if((b=wi(I))>=0)b===0?yt(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):p?yt(e,"repeat of an indentation width identifier"):(g=r+b-1,p=!0);else break;if(la(I)){do I=e.input.charCodeAt(++e.position);while(la(I));if(I===35)do I=e.input.charCodeAt(++e.position);while(!ri(I)&&I!==0)}for(;I!==0;){for(fs(e),e.lineIndent=0,I=e.input.charCodeAt(e.position);(!p||e.lineIndent<g)&&I===32;)e.lineIndent++,I=e.input.charCodeAt(++e.position);if(!p&&e.lineIndent>g&&(g=e.lineIndent),ri(I)){v++;continue}if(e.lineIndent<g){s===ls?e.result+=nt.repeat(`
57
+ `,c?1+v:v):s===Ua&&c&&(e.result+=`
58
+ `);break}for(a?la(I)?(y=!0,e.result+=nt.repeat(`
59
+ `,c?1+v:v)):y?(y=!1,e.result+=nt.repeat(`
60
+ `,v+1)):v===0?c&&(e.result+=" "):e.result+=nt.repeat(`
61
+ `,v):e.result+=nt.repeat(`
62
+ `,c?1+v:v),c=!0,p=!0,v=0,n=e.position;!ri(I)&&I!==0;)I=e.input.charCodeAt(++e.position);Ni(e,n,e.position,!1)}return!0}function Lr(e,r){var n,a=e.tag,s=e.anchor,c=[],p,g=!1,v;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),v=e.input.charCodeAt(e.position);v!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,yt(e,"tab characters must not be used in indentation")),!(v!==45||(p=e.input.charCodeAt(e.position+1),!tn(p))));){if(g=!0,e.position++,Mr(e,!0,-1)&&e.lineIndent<=r){c.push(null),v=e.input.charCodeAt(e.position);continue}if(n=e.line,ca(e,r,ml,!1,!0),c.push(e.result),Mr(e,!0,-1),v=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>r)&&v!==0)yt(e,"bad indentation of a sequence entry");else if(e.lineIndent<r)break}return g?(e.tag=a,e.anchor=s,e.kind="sequence",e.result=c,!0):!1}function rd(e,r,n){var a,s,c,p,g,v,y=e.tag,b=e.anchor,I={},M=Object.create(null),B=null,G=null,te=null,q=!1,le=!1,ae;if(e.firstTabInLine!==-1)return!1;for(e.anchor!==null&&(e.anchorMap[e.anchor]=I),ae=e.input.charCodeAt(e.position);ae!==0;){if(!q&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,yt(e,"tab characters must not be used in indentation")),a=e.input.charCodeAt(e.position+1),c=e.line,(ae===63||ae===58)&&tn(a))ae===63?(q&&(Ha(e,I,M,B,G,null,p,g,v),B=G=te=null),le=!0,q=!0,s=!0):q?(q=!1,s=!0):yt(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,ae=a;else{if(p=e.line,g=e.lineStart,v=e.position,!ca(e,n,Ju,!1,!0))break;if(e.line===c){for(ae=e.input.charCodeAt(e.position);la(ae);)ae=e.input.charCodeAt(++e.position);if(ae===58)ae=e.input.charCodeAt(++e.position),tn(ae)||yt(e,"a whitespace character is expected after the key-value separator within a block mapping"),q&&(Ha(e,I,M,B,G,null,p,g,v),B=G=te=null),le=!0,q=!1,s=!1,B=e.tag,G=e.result;else if(le)yt(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=y,e.anchor=b,!0}else if(le)yt(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=y,e.anchor=b,!0}if((e.line===c||e.lineIndent>r)&&(q&&(p=e.line,g=e.lineStart,v=e.position),ca(e,r,yo,!0,s)&&(q?G=e.result:te=e.result),q||(Ha(e,I,M,B,G,te,p,g,v),B=G=te=null),Mr(e,!0,-1),ae=e.input.charCodeAt(e.position)),(e.line===c||e.lineIndent>r)&&ae!==0)yt(e,"bad indentation of a mapping entry");else if(e.lineIndent<r)break}return q&&Ha(e,I,M,B,G,null,p,g,v),le&&(e.tag=y,e.anchor=b,e.kind="mapping",e.result=I),le}function rf(e){var r,n=!1,a=!1,s,c,p;if(p=e.input.charCodeAt(e.position),p!==33)return!1;if(e.tag!==null&&yt(e,"duplication of a tag property"),p=e.input.charCodeAt(++e.position),p===60?(n=!0,p=e.input.charCodeAt(++e.position)):p===33?(a=!0,s="!!",p=e.input.charCodeAt(++e.position)):s="!",r=e.position,n){do p=e.input.charCodeAt(++e.position);while(p!==0&&p!==62);e.position<e.length?(c=e.input.slice(r,e.position),p=e.input.charCodeAt(++e.position)):yt(e,"unexpected end of the stream within a verbatim tag")}else{for(;p!==0&&!tn(p);)p===33&&(a?yt(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(r-1,e.position+1),Zu.test(s)||yt(e,"named tag handle cannot contain such characters"),a=!0,r=e.position+1)),p=e.input.charCodeAt(++e.position);c=e.input.slice(r,e.position),us.test(c)&&yt(e,"tag suffix cannot contain flow indicator characters")}c&&!yl.test(c)&&yt(e,"tag name cannot contain such characters: "+c);try{c=decodeURIComponent(c)}catch(g){yt(e,"tag name is malformed: "+c)}return n?e.tag=c:ti.call(e.tagMap,s)?e.tag=e.tagMap[s]+c:s==="!"?e.tag="!"+c:s==="!!"?e.tag="tag:yaml.org,2002:"+c:yt(e,'undeclared tag handle "'+s+'"'),!0}function Ao(e){var r,n;if(n=e.input.charCodeAt(e.position),n!==38)return!1;for(e.anchor!==null&&yt(e,"duplication of an anchor property"),n=e.input.charCodeAt(++e.position),r=e.position;n!==0&&!tn(n)&&!ua(n);)n=e.input.charCodeAt(++e.position);return e.position===r&&yt(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(r,e.position),!0}function nd(e){var r,n,a;if(a=e.input.charCodeAt(e.position),a!==42)return!1;for(a=e.input.charCodeAt(++e.position),r=e.position;a!==0&&!tn(a)&&!ua(a);)a=e.input.charCodeAt(++e.position);return e.position===r&&yt(e,"name of an alias node must contain at least one character"),n=e.input.slice(r,e.position),ti.call(e.anchorMap,n)||yt(e,'unidentified alias "'+n+'"'),e.result=e.anchorMap[n],Mr(e,!0,-1),!0}function ca(e,r,n,a,s){var c,p,g,v=1,y=!1,b=!1,I,M,B,G,te,q;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,c=p=g=yo===n||ml===n,a&&Mr(e,!0,-1)&&(y=!0,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)),v===1)for(;rf(e)||Ao(e);)Mr(e,!0,-1)?(y=!0,g=c,e.lineIndent>r?v=1:e.lineIndent===r?v=0:e.lineIndent<r&&(v=-1)):g=!1;if(g&&(g=y||s),(v===1||yo===n)&&(mo===n||Ju===n?te=r:te=r+1,q=e.position-e.lineStart,v===1?g&&(Lr(e,q)||rd(e,q,te))||td(e,te)?b=!0:(p&&wo(e,te)||_c(e,te)||ed(e,te)?b=!0:nd(e)?(b=!0,(e.tag!==null||e.anchor!==null)&&yt(e,"alias node should not have any properties")):Ga(e,te,mo===n)&&(b=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):v===0&&(b=g&&Lr(e,q))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&yt(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),I=0,M=e.implicitTypes.length;I<M;I+=1)if(G=e.implicitTypes[I],G.resolve(e.result)){e.result=G.construct(e.result),e.tag=G.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(ti.call(e.typeMap[e.kind||"fallback"],e.tag))G=e.typeMap[e.kind||"fallback"][e.tag];else for(G=null,B=e.typeMap.multi[e.kind||"fallback"],I=0,M=B.length;I<M;I+=1)if(e.tag.slice(0,B[I].tag.length)===B[I].tag){G=B[I];break}G||yt(e,"unknown tag !<"+e.tag+">"),e.result!==null&&G.kind!==e.kind&&yt(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+G.kind+'", not "'+e.kind+'"'),G.resolve(e.result,e.tag)?(e.result=G.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):yt(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||b}function id(e){var r=e.position,n,a,s,c=!1,p;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(p=e.input.charCodeAt(e.position))!==0&&(Mr(e,!0,-1),p=e.input.charCodeAt(e.position),!(e.lineIndent>0||p!==37));){for(c=!0,p=e.input.charCodeAt(++e.position),n=e.position;p!==0&&!tn(p);)p=e.input.charCodeAt(++e.position);for(a=e.input.slice(n,e.position),s=[],a.length<1&&yt(e,"directive name must not be less than one character in length");p!==0;){for(;la(p);)p=e.input.charCodeAt(++e.position);if(p===35){do p=e.input.charCodeAt(++e.position);while(p!==0&&!ri(p));break}if(ri(p))break;for(n=e.position;p!==0&&!tn(p);)p=e.input.charCodeAt(++e.position);s.push(e.input.slice(n,e.position))}p!==0&&fs(e),ti.call(ef,a)?ef[a](e,a,s):xo(e,'unknown document directive "'+a+'"')}if(Mr(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,Mr(e,!0,-1)):c&&yt(e,"directives end mark is expected"),ca(e,e.lineIndent-1,yo,!1,!0),Mr(e,!0,-1),e.checkLineBreaks&&Qu.test(e.input.slice(r,e.position))&&xo(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&So(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,Mr(e,!0,-1));return}if(e.position<e.length-1)yt(e,"end of the stream or a document separator is expected");else return}function cs(e,r){e=String(e),r=r||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
63
+ `),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new qc(e,r),a=e.indexOf("\0");for(a!==-1&&(n.position=a,yt(n,"null byte is not allowed in input")),n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)id(n);return n.documents}function nf(e,r,n){r!==null&&typeof r=="object"&&typeof n=="undefined"&&(n=r,r=null);var a=cs(e,n);if(typeof r!="function")return a;for(var s=0,c=a.length;s<c;s+=1)r(a[s])}function ad(e,r){var n=cs(e,r);if(n.length!==0){if(n.length===1)return n[0];throw new At("expected a single document in the stream, but found more")}}var od=nf,af=ad,Sl={loadAll:od,load:af},of=Object.prototype.toString,$a=Object.prototype.hasOwnProperty,Wn=65279,ds=9,da=10,sf=13,ni=32,pa=33,wl=34,Al=35,lf=37,sd=38,uf=39,Cl=42,ha=44,ii=45,Co=58,ff=61,ld=62,ud=63,fd=64,El=91,Ol=93,Eo=96,Tl=123,cf=124,ps=125,jr={};jr[0]="\\0",jr[7]="\\a",jr[8]="\\b",jr[9]="\\t",jr[10]="\\n",jr[11]="\\v",jr[12]="\\f",jr[13]="\\r",jr[27]="\\e",jr[34]='\\"',jr[92]="\\\\",jr[133]="\\N",jr[160]="\\_",jr[8232]="\\L",jr[8233]="\\P";var df=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],hs=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Hn(e,r){var n,a,s,c,p,g,v;if(r===null)return{};for(n={},a=Object.keys(r),s=0,c=a.length;s<c;s+=1)p=a[s],g=String(r[p]),p.slice(0,2)==="!!"&&(p="tag:yaml.org,2002:"+p.slice(2)),v=e.compiledTypeMap.fallback[p],v&&$a.call(v.styleAliases,g)&&(g=v.styleAliases[g]),n[p]=g;return n}function pf(e){var r,n,a;if(r=e.toString(16).toUpperCase(),e<=255)n="x",a=2;else if(e<=65535)n="u",a=4;else if(e<=4294967295)n="U",a=8;else throw new At("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+n+nt.repeat("0",a-r.length)+r}var Pl=1,va=2;function hf(e){this.schema=e.schema||gl,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=nt.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Hn(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType=e.quotingType==='"'?va:Pl,this.forceQuotes=e.forceQuotes||!1,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function Il(e,r){for(var n=nt.repeat(" ",r),a=0,s=-1,c="",p,g=e.length;a<g;)s=e.indexOf(`
64
+ `,a),s===-1?(p=e.slice(a),a=g):(p=e.slice(a,s+1),a=s+1),p.length&&p!==`
65
+ `&&(c+=n),c+=p;return c}function Oo(e,r){return`
66
+ `+nt.repeat(" ",e.indent*r)}function cd(e,r){var n,a,s;for(n=0,a=e.implicitTypes.length;n<a;n+=1)if(s=e.implicitTypes[n],s.resolve(r))return!0;return!1}function vs(e){return e===ni||e===ds}function To(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Wn||65536<=e&&e<=1114111}function Di(e){return To(e)&&e!==Wn&&e!==sf&&e!==da}function ga(e,r,n){var a=Di(e),s=a&&!vs(e);return(n?a:a&&e!==ha&&e!==El&&e!==Ol&&e!==Tl&&e!==ps)&&e!==Al&&!(r===Co&&!s)||Di(r)&&!vs(r)&&e===Al||r===Co&&s}function Ka(e){return To(e)&&e!==Wn&&!vs(e)&&e!==ii&&e!==ud&&e!==Co&&e!==ha&&e!==El&&e!==Ol&&e!==Tl&&e!==ps&&e!==Al&&e!==sd&&e!==Cl&&e!==pa&&e!==cf&&e!==ff&&e!==ld&&e!==uf&&e!==wl&&e!==lf&&e!==fd&&e!==Eo}function kl(e){return!vs(e)&&e!==Co}function ma(e,r){var n=e.charCodeAt(r),a;return n>=55296&&n<=56319&&r+1<e.length&&(a=e.charCodeAt(r+1),a>=56320&&a<=57343)?(n-55296)*1024+a-56320+65536:n}function Fl(e){var r=/^\n* /;return r.test(e)}var gs=1,Ai=2,Bi=3,rn=4,Sn=5;function ji(e,r,n,a,s,c,p,g){var v,y=0,b=null,I=!1,M=!1,B=a!==-1,G=-1,te=Ka(ma(e,0))&&kl(ma(e,e.length-1));if(r||p)for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=ma(e,v),!To(y))return Sn;te=te&&ga(y,b,g),b=y}else{for(v=0;v<e.length;y>=65536?v+=2:v++){if(y=ma(e,v),y===da)I=!0,B&&(M=M||v-G-1>a&&e[G+1]!==" ",G=v);else if(!To(y))return Sn;te=te&&ga(y,b,g),b=y}M=M||B&&v-G-1>a&&e[G+1]!==" "}return!I&&!M?te&&!p&&!s(e)?gs:c===va?Sn:Ai:n>9&&Fl(e)?Sn:p?c===va?Sn:Ai:M?rn:Bi}function ms(e,r,n,a,s){e.dump=function(){if(r.length===0)return e.quotingType===va?'""':"''";if(!e.noCompatMode&&(df.indexOf(r)!==-1||hs.test(r)))return e.quotingType===va?'"'+r+'"':"'"+r+"'";var c=e.indent*Math.max(1,n),p=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-c),g=a||e.flowLevel>-1&&n>=e.flowLevel;function v(y){return cd(e,y)}switch(ji(r,g,e.indent,p,v,e.quotingType,e.forceQuotes&&!a,s)){case gs:return r;case Ai:return"'"+r.replace(/'/g,"''")+"'";case Bi:return"|"+vf(r,e.indent)+Rl(Il(r,c));case rn:return">"+vf(r,e.indent)+Rl(Il(Po(r,p),c));case Sn:return'"'+Ll(r)+'"';default:throw new At("impossible error: invalid scalar style")}}()}function vf(e,r){var n=Fl(e)?String(r):"",a=e[e.length-1]===`
67
+ `,s=a&&(e[e.length-2]===`
68
+ `||e===`
69
+ `),c=s?"+":a?"":"-";return n+c+`
70
+ `}function Rl(e){return e[e.length-1]===`
71
+ `?e.slice(0,-1):e}function Po(e,r){for(var n=/(\n+)([^\n]*)/g,a=function(){var y=e.indexOf(`
72
+ `);return y=y!==-1?y:e.length,n.lastIndex=y,Ml(e.slice(0,y),r)}(),s=e[0]===`
73
+ `||e[0]===" ",c,p;p=n.exec(e);){var g=p[1],v=p[2];c=v[0]===" ",a+=g+(!s&&!c&&v!==""?`
74
+ `:"")+Ml(v,r),s=c}return a}function Ml(e,r){if(e===""||e[0]===" ")return e;for(var n=/ [^ ]/g,a,s=0,c,p=0,g=0,v="";a=n.exec(e);)g=a.index,g-s>r&&(c=p>s?p:g,v+=`
75
+ `+e.slice(s,c),s=c+1),p=g;return v+=`
76
+ `,e.length-s>r&&p>s?v+=e.slice(s,p)+`
77
+ `+e.slice(p+1):v+=e.slice(s),v.slice(1)}function Ll(e){for(var r="",n=0,a,s=0;s<e.length;n>=65536?s+=2:s++)n=ma(e,s),a=jr[n],!a&&To(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=a||pf(n);return r}function ys(e,r,n){var a="",s=e.tag,c,p,g;for(c=0,p=n.length;c<p;c+=1)g=n[c],e.replacer&&(g=e.replacer.call(n,String(c),g)),(zn(e,r,g,!1,!1)||typeof g=="undefined"&&zn(e,r,null,!1,!1))&&(a!==""&&(a+=","+(e.condenseFlow?"":" ")),a+=e.dump);e.tag=s,e.dump="["+a+"]"}function gf(e,r,n,a){var s="",c=e.tag,p,g,v;for(p=0,g=n.length;p<g;p+=1)v=n[p],e.replacer&&(v=e.replacer.call(n,String(p),v)),(zn(e,r+1,v,!0,!0,!1,!0)||typeof v=="undefined"&&zn(e,r+1,null,!0,!0,!1,!0))&&((!a||s!=="")&&(s+=Oo(e,r)),e.dump&&da===e.dump.charCodeAt(0)?s+="-":s+="- ",s+=e.dump);e.tag=c,e.dump=s||"[]"}function Nl(e,r,n){var a="",s=e.tag,c=Object.keys(n),p,g,v,y,b;for(p=0,g=c.length;p<g;p+=1)b="",a!==""&&(b+=", "),e.condenseFlow&&(b+='"'),v=c[p],y=n[v],e.replacer&&(y=e.replacer.call(n,v,y)),zn(e,r,v,!1,!1)&&(e.dump.length>1024&&(b+="? "),b+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),zn(e,r,y,!1,!1)&&(b+=e.dump,a+=b));e.tag=s,e.dump="{"+a+"}"}function mf(e,r,n,a){var s="",c=e.tag,p=Object.keys(n),g,v,y,b,I,M;if(e.sortKeys===!0)p.sort();else if(typeof e.sortKeys=="function")p.sort(e.sortKeys);else if(e.sortKeys)throw new At("sortKeys must be a boolean or a function");for(g=0,v=p.length;g<v;g+=1)M="",(!a||s!=="")&&(M+=Oo(e,r)),y=p[g],b=n[y],e.replacer&&(b=e.replacer.call(n,y,b)),zn(e,r+1,y,!0,!0,!0)&&(I=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,I&&(e.dump&&da===e.dump.charCodeAt(0)?M+="?":M+="? "),M+=e.dump,I&&(M+=Oo(e,r)),zn(e,r+1,b,!0,I)&&(e.dump&&da===e.dump.charCodeAt(0)?M+=":":M+=": ",M+=e.dump,s+=M));e.tag=c,e.dump=s||"{}"}function bs(e,r,n){var a,s,c,p,g,v;for(s=n?e.explicitTypes:e.implicitTypes,c=0,p=s.length;c<p;c+=1)if(g=s[c],(g.instanceOf||g.predicate)&&(!g.instanceOf||typeof r=="object"&&r instanceof g.instanceOf)&&(!g.predicate||g.predicate(r))){if(n?g.multi&&g.representName?e.tag=g.representName(r):e.tag=g.tag:e.tag="?",g.represent){if(v=e.styleMap[g.tag]||g.defaultStyle,of.call(g.represent)==="[object Function]")a=g.represent(r,v);else if($a.call(g.represent,v))a=g.represent[v](r,v);else throw new At("!<"+g.tag+'> tag resolver accepts not "'+v+'" style');e.dump=a}return!0}return!1}function zn(e,r,n,a,s,c,p){e.tag=null,e.dump=n,bs(e,n,!1)||bs(e,n,!0);var g=of.call(e.dump),v=a,y;a&&(a=e.flowLevel<0||e.flowLevel>r);var b=g==="[object Object]"||g==="[object Array]",I,M;if(b&&(I=e.duplicates.indexOf(n),M=I!==-1),(e.tag!==null&&e.tag!=="?"||M||e.indent!==2&&r>0)&&(s=!1),M&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(b&&M&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),g==="[object Object]")a&&Object.keys(e.dump).length!==0?(mf(e,r,e.dump,s),M&&(e.dump="&ref_"+I+e.dump)):(Nl(e,r,e.dump),M&&(e.dump="&ref_"+I+" "+e.dump));else if(g==="[object Array]")a&&e.dump.length!==0?(e.noArrayIndent&&!p&&r>0?gf(e,r-1,e.dump,s):gf(e,r,e.dump,s),M&&(e.dump="&ref_"+I+e.dump)):(ys(e,r,e.dump),M&&(e.dump="&ref_"+I+" "+e.dump));else if(g==="[object String]")e.tag!=="?"&&ms(e,e.dump,r,c,v);else{if(g==="[object Undefined]")return!1;if(e.skipInvalid)return!1;throw new At("unacceptable kind of an object to dump "+g)}e.tag!==null&&e.tag!=="?"&&(y=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?y="!"+y:y.slice(0,18)==="tag:yaml.org,2002:"?y="!!"+y.slice(18):y="!<"+y+">",e.dump=y+" "+e.dump)}return!0}function Ya(e,r){var n=[],a=[],s,c;for(Ja(e,n,a),s=0,c=a.length;s<c;s+=1)r.duplicates.push(n[a[s]]);r.usedDuplicates=new Array(c)}function Ja(e,r,n){var a,s,c;if(e!==null&&typeof e=="object")if(s=r.indexOf(e),s!==-1)n.indexOf(s)===-1&&n.push(s);else if(r.push(e),Array.isArray(e))for(s=0,c=e.length;s<c;s+=1)Ja(e[s],r,n);else for(a=Object.keys(e),s=0,c=a.length;s<c;s+=1)Ja(e[a[s]],r,n)}function yf(e,r){r=r||{};var n=new hf(r);n.noRefs||Ya(e,n);var a=e;return n.replacer&&(a=n.replacer.call({"":a},"",a)),zn(n,0,a,!0,!0)?n.dump+`
78
+ `:""}var xs=yf,dd={dump:xs};function Dl(e,r){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+r+" instead, which is now safe by default.")}}var pd=er,Bl=na,jl=vn,Xa=Ft,Io=jt,hd=gl,Ss=Sl.load,bf=Sl.loadAll,ko=dd.dump,xf=At,ya={binary:hl,float:He,map:hn,null:en,pairs:vo,set:Yu,timestamp:Un,bool:ia,int:Kt,merge:cl,omap:vl,seq:fn,str:pn},Fo=Dl("safeLoad","load"),ba=Dl("safeLoadAll","loadAll"),Ro=Dl("safeDump","dump"),Qa={Type:pd,Schema:Bl,FAILSAFE_SCHEMA:jl,JSON_SCHEMA:Xa,CORE_SCHEMA:Io,DEFAULT_SCHEMA:hd,load:Ss,loadAll:bf,dump:ko,YAMLException:xf,types:ya,safeLoad:Fo,safeLoadAll:ba,safeDump:Ro};const Vl=Qa,Sf=function(){return typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:window}(),{FormData:Ul,Blob:ws,File:Vi}=Sf;function xa(e){if(he(e))return z(e)}function vd(e){if(typeof ie!="undefined"&&fe(e)!=null||e["@@iterator"]!=null)return X(e)}function gd(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
79
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Sa(e){return xa(e)||vd(e)||ge(e)||gd()}var md=o(71488),Gn=o.n(md),yd=function(r){return":/?#[]@!$&'()*+,;=".indexOf(r)>-1},gn=function(r){return/^[a-z0-9\-._~]+$/i.test(r)};function Sr(e){var r,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=n.escape,s=arguments.length>2?arguments[2]:void 0;return typeof e=="number"&&(e=e.toString()),typeof e!="string"||!e.length||!a?e:s?JSON.parse(e):We()(r=Sa(e)).call(r,function(c){var p,g;if(gn(c)||yd(c)&&a==="unsafe")return c;var v=new TextEncoder,y=We()(p=We()(g=St()(v.encode(c))).call(g,function(b){var I;return Gn()(I="0".concat(b.toString(16).toUpperCase())).call(I,-2)})).call(p,function(b){return"%".concat(b)}).join("");return y}).join("")}function zr(e){var r=e.value;return Array.isArray(r)?Vr(e):A(r)==="object"?Mo(e):bd(e)}function Vr(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(I){return Sr(I,{escape:c})};if(a==="simple")return We()(n).call(n,function(b){return p(b)}).join(",");if(a==="label")return".".concat(We()(n).call(n,function(b){return p(b)}).join("."));if(a==="matrix")return We()(n).call(n,function(b){return p(b)}).reduce(function(b,I){var M;if(!b||s){var B,G;return Qe()(B=Qe()(G="".concat(b||"",";")).call(G,r,"=")).call(B,I)}return Qe()(M="".concat(b,",")).call(M,I)},"");if(a==="form"){var g=s?"&".concat(r,"="):",";return We()(n).call(n,function(b){return p(b)}).join(g)}if(a==="spaceDelimited"){var v=s?"".concat(r,"="):"";return We()(n).call(n,function(b){return p(b)}).join(" ".concat(v))}if(a==="pipeDelimited"){var y=s?"".concat(r,"="):"";return We()(n).call(n,function(b){return p(b)}).join("|".concat(y))}}function Mo(e){var r=e.key,n=e.value,a=e.style,s=e.explode,c=e.escape,p=function(y){return Sr(y,{escape:c})},g=ot()(n);if(a==="simple")return g.reduce(function(v,y){var b,I,M,B=p(n[y]),G=s?"=":",",te=v?"".concat(v,","):"";return Qe()(b=Qe()(I=Qe()(M="".concat(te)).call(M,y)).call(I,G)).call(b,B)},"");if(a==="label")return g.reduce(function(v,y){var b,I,M,B=p(n[y]),G=s?"=":".",te=v?"".concat(v,"."):".";return Qe()(b=Qe()(I=Qe()(M="".concat(te)).call(M,y)).call(I,G)).call(b,B)},"");if(a==="matrix"&&s)return g.reduce(function(v,y){var b,I,M=p(n[y]),B=v?"".concat(v,";"):";";return Qe()(b=Qe()(I="".concat(B)).call(I,y,"=")).call(b,M)},"");if(a==="matrix")return g.reduce(function(v,y){var b,I,M=p(n[y]),B=v?"".concat(v,","):";".concat(r,"=");return Qe()(b=Qe()(I="".concat(B)).call(I,y,",")).call(b,M)},"");if(a==="form")return g.reduce(function(v,y){var b,I,M,B,G=p(n[y]),te=v?Qe()(b="".concat(v)).call(b,s?"&":","):"",q=s?"=":",";return Qe()(I=Qe()(M=Qe()(B="".concat(te)).call(B,y)).call(M,q)).call(I,G)},"")}function bd(e){var r=e.key,n=e.value,a=e.style,s=e.escape,c=function(v){return Sr(v,{escape:s})};if(a==="simple")return c(n);if(a==="label")return".".concat(c(n));if(a==="matrix"){var p;return Qe()(p=";".concat(r,"=")).call(p,c(n))}if(a==="form")return c(n);if(a==="deepObject")return c(n,{},!0)}var As=function(r,n){n.body=r};const xd=As;var Wl={serializeRes:Af,mergeInQueryOrForm:Kl};function Cs(e){return Lo.apply(this,arguments)}function Lo(){return Lo=Ct(Ce().mark(function e(r){var n,a,s,c,p,g=arguments;return Ce().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(n=g.length>1&&g[1]!==void 0?g[1]:{},A(r)==="object"&&(n=r,r=n.url),n.headers=n.headers||{},Wl.mergeInQueryOrForm(n),n.headers&&ot()(n.headers).forEach(function(b){var I=n.headers[b];typeof I=="string"&&(n.headers[b]=I.replace(/\n+/g," "))}),!n.requestInterceptor){y.next=12;break}return y.next=8,n.requestInterceptor(n);case 8:if(y.t0=y.sent,y.t0){y.next=11;break}y.t0=n;case 11:n=y.t0;case 12:return a=n.headers["content-type"]||n.headers["Content-Type"],/multipart\/form-data/i.test(a)&&n.body instanceof Ul&&(delete n.headers["content-type"],delete n.headers["Content-Type"]),y.prev=14,y.next=17,(n.userFetch||fetch)(n.url,n);case 17:return s=y.sent,y.next=20,Wl.serializeRes(s,r,n);case 20:if(s=y.sent,!n.responseInterceptor){y.next=28;break}return y.next=24,n.responseInterceptor(s);case 24:if(y.t1=y.sent,y.t1){y.next=27;break}y.t1=s;case 27:s=y.t1;case 28:y.next=39;break;case 30:if(y.prev=30,y.t2=y.catch(14),s){y.next=34;break}throw y.t2;case 34:throw c=new Error(s.statusText||"response status is ".concat(s.status)),c.status=s.status,c.statusCode=s.status,c.responseError=y.t2,c;case 39:if(s.ok){y.next=45;break}throw p=new Error(s.statusText||"response status is ".concat(s.status)),p.status=s.status,p.statusCode=s.status,p.response=s,p;case 45:return y.abrupt("return",s);case 46:case"end":return y.stop()}},e,null,[[14,30]])})),Lo.apply(this,arguments)}var wf=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return/(json|xml|yaml|text)\b/.test(r)};function Hl(e,r){return r&&(r.indexOf("application/json")===0||r.indexOf("+json")>0)?JSON.parse(e):Vl.load(e)}function Af(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.loadSpec,s=a===void 0?!1:a,c={ok:e.ok,url:e.url||r,status:e.status,statusText:e.statusText,headers:Es(e.headers)},p=c.headers["content-type"],g=s||wf(p),v=g?e.text:e.blob||e.buffer;return v.call(e).then(function(y){if(c.text=y,c.data=y,g)try{var b=Hl(y,p);c.body=b,c.obj=b}catch(I){c.parseError=I}return c})}function zl(e){var r=De()(e).call(e,", ");return r?e.split(", "):e}function Es(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return typeof tt()(e)!="function"?{}:St()(tt()(e).call(e)).reduce(function(r,n){var a=Xe(n,2),s=a[0],c=a[1];return r[s]=zl(c),r},{})}function Os(e,r){return!r&&typeof navigator!="undefined"&&(r=navigator),r&&r.product==="ReactNative"?!!(e&&A(e)==="object"&&typeof e.uri=="string"):typeof Vi!="undefined"&&e instanceof Vi||typeof ws!="undefined"&&e instanceof ws||ArrayBuffer.isView(e)?!0:e!==null&&A(e)==="object"&&typeof e.pipe=="function"}function Gl(e,r){return Array.isArray(e)&&e.some(function(n){return Os(n,r)})}var $l={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Cf={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function Za(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=r.collectionFormat,s=r.allowEmptyValue,c=r.serializationOption,p=r.encoding,g=A(r)==="object"&&!Array.isArray(r)?r.value:r,v=n?function(G){return G.toString()}:function(G){return encodeURIComponent(G)},y=v(e);if(typeof g=="undefined"&&s)return[[y,""]];if(Os(g)||Gl(g))return[[y,g]];if(c)return Ef(e,g,n,c);if(p){if([A(p.style),A(p.explode),A(p.allowReserved)].some(function(G){return G!=="undefined"})){var b=p.style,I=p.explode,M=p.allowReserved;return Ef(e,g,n,{style:b,explode:I,allowReserved:M})}if(p.contentType){if(p.contentType==="application/json"){var B=typeof g=="string"?g:Wt()(g);return[[y,v(B)]]}return[[y,v(g.toString())]]}return A(g)!=="object"?[[y,v(g)]]:Array.isArray(g)&&g.every(function(G){return A(G)!=="object"})?[[y,We()(g).call(g,v).join(",")]]:[[y,v(Wt()(g))]]}return A(g)!=="object"?[[y,v(g)]]:Array.isArray(g)?a==="multi"?[[y,We()(g).call(g,v)]]:[[y,We()(g).call(g,v).join(Cf[a||"csv"])]]:[[y,""]]}function Ef(e,r,n,a){var s,c=a.style||"form",p=typeof a.explode=="undefined"?c==="form":a.explode,g=n?!1:a&&a.allowReserved?"unsafe":"reserved",v=function(B){return Sr(B,{escape:g})},y=n?function(M){return M}:function(M){return Sr(M,{escape:g})};if(A(r)!=="object")return[[y(e),v(r)]];if(Array.isArray(r))return p?[[y(e),We()(r).call(r,v)]]:[[y(e),We()(r).call(r,v).join($l[c])]];if(c==="deepObject"){var b;return We()(b=ot()(r)).call(b,function(M){var B;return[y(Qe()(B="".concat(e,"[")).call(B,M,"]")),v(r[M])]})}if(p){var I;return We()(I=ot()(r)).call(I,function(M){return[y(M),v(r[M])]})}return[[y(e),We()(s=ot()(r)).call(s,function(M){var B;return[Qe()(B="".concat(y(M),",")).call(B,v(r[M]))]}).join(",")]]}function Ts(e){return Ir()(e).reduce(function(r,n){var a=Xe(n,2),s=a[0],c=a[1],p=Oe(Za(s,c,!0)),g;try{for(p.s();!(g=p.n()).done;){var v=Xe(g.value,2),y=v[0],b=v[1];if(Array.isArray(b)){var I=Oe(b),M;try{for(I.s();!(M=I.n()).done;){var B=M.value;if(ArrayBuffer.isView(B)){var G=new ws([B]);r.append(y,G)}else r.append(y,B)}}catch(q){I.e(q)}finally{I.f()}}else if(ArrayBuffer.isView(b)){var te=new ws([b]);r.append(y,te)}else r.append(y,b)}}catch(q){p.e(q)}finally{p.f()}return r},new Ul)}function ai(e){var r=ot()(e).reduce(function(n,a){var s=Oe(Za(a,e[a])),c;try{for(s.s();!(c=s.n()).done;){var p=Xe(c.value,2),g=p[0],v=p[1];n[g]=v}}catch(y){s.e(y)}finally{s.f()}return n},{});return Mt().stringify(r,{encode:!1,indices:!1})||""}function Kl(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=e.url,n=r===void 0?"":r,a=e.query,s=e.form,c=function(){for(var ae=arguments.length,pe=new Array(ae),ve=0;ve<ae;ve++)pe[ve]=arguments[ve];var me=pr()(pe).call(pe,function(Te){return Te}).join("&");return me?"?".concat(me):""};if(s){var p=ot()(s).some(function(le){var ae=s[le].value;return Os(ae)||Gl(ae)}),g=e.headers["content-type"]||e.headers["Content-Type"];if(p||/multipart\/form-data/i.test(g)){var v=Ts(e.form);xd(v,e)}else e.body=ai(s);delete e.form}if(a){var y=n.split("?"),b=Xe(y,2),I=b[0],M=b[1],B="";if(M){var G=Mt().parse(M),te=ot()(a);te.forEach(function(le){return delete G[le]}),B=Mt().stringify(G,{encode:!0})}var q=c(B,ai(a));e.url=I+q,delete e.query}return e}function Sd(e,r,n){return n=n||function(a){return a},r=r||function(a){return a},function(a){return typeof a=="string"&&(a={url:a}),Wl.mergeInQueryOrForm(a),a=r(a),n(e(a))}}function Yl(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function mn(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),ne(e,E(a.key),a)}}function Qt(e,r,n){return r&&mn(e.prototype,r),n&&mn(e,n),ne(e,"prototype",{writable:!1}),e}var $n=o(35784),Ui=o.n($n),Wi=o(22583),Hi=o.n(Wi),Jl=o(93963),Of=o.n(Jl);/*!
80
+ * https://github.com/Starcounter-Jack/JSON-Patch
81
+ * (c) 2017-2022 Joachim Wester
82
+ * MIT licensed
83
+ */var wd=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Xl=Object.prototype.hasOwnProperty;function zi(e,r){return Xl.call(e,r)}function Ps(e){if(Array.isArray(e)){for(var r=new Array(e.length),n=0;n<r.length;n++)r[n]=""+n;return r}if(Object.keys)return Object.keys(e);var a=[];for(var s in e)zi(e,s)&&a.push(s);return a}function cn(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function oi(e){for(var r=0,n=e.length,a;r<n;){if(a=e.charCodeAt(r),a>=48&&a<=57){r++;continue}return!1}return!0}function si(e){return e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Ql(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Tf(e,r){var n;for(var a in e)if(zi(e,a)){if(e[a]===r)return si(a)+"/";if(typeof e[a]=="object"&&(n=Tf(e[a],r),n!=""))return si(a)+"/"+n}return""}function Zl(e,r){if(e===r)return"/";var n=Tf(e,r);if(n==="")throw new Error("Object not found in root");return"/"+n}function No(e){if(e===void 0)return!0;if(e){if(Array.isArray(e)){for(var r=0,n=e.length;r<n;r++)if(No(e[r]))return!0}else if(typeof e=="object"){for(var a=Ps(e),s=a.length,c=0;c<s;c++)if(No(e[a[c]]))return!0}}return!1}function ql(e,r){var n=[e];for(var a in r){var s=typeof r[a]=="object"?JSON.stringify(r[a],null,2):r[a];typeof s!="undefined"&&n.push(a+": "+s)}return n.join(`
84
+ `)}var Pf=function(e){wd(r,e);function r(n,a,s,c,p){var g=this.constructor,v=e.call(this,ql(n,{name:a,index:s,operation:c,tree:p}))||this;return v.name=a,v.index=s,v.operation=c,v.tree=p,Object.setPrototypeOf(v,g.prototype),v.message=ql(n,{name:a,index:s,operation:c,tree:p}),v}return r}(Error),Er=Pf,Ad=cn,qa={add:function(e,r,n){return e[r]=this.value,{newDocument:n}},remove:function(e,r,n){var a=e[r];return delete e[r],{newDocument:n,removed:a}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:function(e,r,n){var a=_a(n,this.path);a&&(a=cn(a));var s=wa(n,{op:"remove",path:this.from}).removed;return wa(n,{op:"add",path:this.path,value:s}),{newDocument:n,removed:a}},copy:function(e,r,n){var a=_a(n,this.from);return wa(n,{op:"add",path:this.path,value:cn(a)}),{newDocument:n}},test:function(e,r,n){return{newDocument:n,test:$i(e[r],this.value)}},_get:function(e,r,n){return this.value=e[r],{newDocument:n}}},Is={add:function(e,r,n){return oi(r)?e.splice(r,0,this.value):e[r]=this.value,{newDocument:n,index:r}},remove:function(e,r,n){var a=e.splice(r,1);return{newDocument:n,removed:a[0]}},replace:function(e,r,n){var a=e[r];return e[r]=this.value,{newDocument:n,removed:a}},move:qa.move,copy:qa.copy,test:qa.test,_get:qa._get};function _a(e,r){if(r=="")return e;var n={op:"_get",path:r};return wa(e,n),n.value}function wa(e,r,n,a,s,c){if(n===void 0&&(n=!1),a===void 0&&(a=!0),s===void 0&&(s=!0),c===void 0&&(c=0),n&&(typeof n=="function"?n(r,0,e,r.path):Ci(r,0)),r.path===""){var p={newDocument:e};if(r.op==="add")return p.newDocument=r.value,p;if(r.op==="replace")return p.newDocument=r.value,p.removed=e,p;if(r.op==="move"||r.op==="copy")return p.newDocument=_a(e,r.from),r.op==="move"&&(p.removed=e),p;if(r.op==="test"){if(p.test=$i(e,r.value),p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p.newDocument=e,p}else{if(r.op==="remove")return p.removed=e,p.newDocument=null,p;if(r.op==="_get")return r.value=e,p;if(n)throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",c,r,e);return p}}else{a||(e=cn(e));var g=r.path||"",v=g.split("/"),y=e,b=1,I=v.length,M=void 0,B=void 0,G=void 0;for(typeof n=="function"?G=n:G=Ci;;){if(B=v[b],B&&B.indexOf("~")!=-1&&(B=Ql(B)),s&&(B=="__proto__"||B=="prototype"&&b>0&&v[b-1]=="constructor"))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(n&&M===void 0&&(y[B]===void 0?M=v.slice(0,b).join("/"):b==I-1&&(M=r.path),M!==void 0&&G(r,0,e,M)),b++,Array.isArray(y)){if(B==="-")B=y.length;else{if(n&&!oi(B))throw new Er("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",c,r,e);oi(B)&&(B=~~B)}if(b>=I){if(n&&r.op==="add"&&B>y.length)throw new Er("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",c,r,e);var p=Is[r.op].call(r,y,B,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}}else if(b>=I){var p=qa[r.op].call(r,y,B,e);if(p.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",c,r,e);return p}if(y=y[B],n&&b<I&&(!y||typeof y!="object"))throw new Er("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",c,r,e)}}}function Gi(e,r,n,a,s){if(a===void 0&&(a=!0),s===void 0&&(s=!0),n&&!Array.isArray(r))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");a||(e=cn(e));for(var c=new Array(r.length),p=0,g=r.length;p<g;p++)c[p]=wa(e,r[p],n,!0,s,p),e=c[p].newDocument;return c.newDocument=e,c}function If(e,r,n){var a=wa(e,r);if(a.test===!1)throw new Er("Test operation failed","TEST_OPERATION_FAILED",n,r,e);return a.newDocument}function Ci(e,r,n,a){if(typeof e!="object"||e===null||Array.isArray(e))throw new Er("Operation is not an object","OPERATION_NOT_AN_OBJECT",r,e,n);if(qa[e.op]){if(typeof e.path!="string")throw new Er("Operation `path` property is not a string","OPERATION_PATH_INVALID",r,e,n);if(e.path.indexOf("/")!==0&&e.path.length>0)throw new Er('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",r,e,n);if((e.op==="move"||e.op==="copy")&&typeof e.from!="string")throw new Er("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&e.value===void 0)throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",r,e,n);if((e.op==="add"||e.op==="replace"||e.op==="test")&&No(e.value))throw new Er("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",r,e,n);if(n){if(e.op=="add"){var s=e.path.split("/").length,c=a.split("/").length;if(s!==c+1&&s!==c)throw new Er("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",r,e,n)}else if(e.op==="replace"||e.op==="remove"||e.op==="_get"){if(e.path!==a)throw new Er("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",r,e,n)}else if(e.op==="move"||e.op==="copy"){var p={op:"_get",path:e.from,value:void 0},g=ks([p],n);if(g&&g.name==="OPERATION_PATH_UNRESOLVABLE")throw new Er("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",r,e,n)}}}else throw new Er("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",r,e,n)}function ks(e,r,n){try{if(!Array.isArray(e))throw new Er("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(r)Gi(cn(r),cn(e),n||!0);else{n=n||Ci;for(var a=0;a<e.length;a++)n(e[a],a,r,void 0)}}catch(s){if(s instanceof Er)return s;throw s}}function $i(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){var n=Array.isArray(e),a=Array.isArray(r),s,c,p;if(n&&a){if(c=e.length,c!=r.length)return!1;for(s=c;s--!==0;)if(!$i(e[s],r[s]))return!1;return!0}if(n!=a)return!1;var g=Object.keys(e);if(c=g.length,c!==Object.keys(r).length)return!1;for(s=c;s--!==0;)if(!r.hasOwnProperty(g[s]))return!1;for(s=c;s--!==0;)if(p=g[s],!$i(e[p],r[p]))return!1;return!0}return e!==e&&r!==r}/*!
85
+ * https://github.com/Starcounter-Jack/JSON-Patch
86
+ * (c) 2017-2021 Joachim Wester
87
+ * MIT license
88
+ */var Fs=new WeakMap,_l=function(){function e(r){this.observers=new Map,this.obj=r}return e}(),kf=function(){function e(r,n){this.callback=r,this.observer=n}return e}();function Cd(e){return Fs.get(e)}function Ff(e,r){return e.observers.get(r)}function Yr(e,r){e.observers.delete(r.callback)}function Rs(e,r){r.unobserve()}function Rf(e,r){var n=[],a,s=Cd(e);if(!s)s=new _l(e),Fs.set(e,s);else{var c=Ff(s,r);a=c&&c.observer}if(a)return a;if(a={},s.value=cn(e),r){a.callback=r,a.next=null;var p=function(){Ms(a)},g=function(){clearTimeout(a.next),a.next=setTimeout(p)};typeof window!="undefined"&&(window.addEventListener("mouseup",g),window.addEventListener("keyup",g),window.addEventListener("mousedown",g),window.addEventListener("keydown",g),window.addEventListener("change",g))}return a.patches=n,a.object=e,a.unobserve=function(){Ms(a),clearTimeout(a.next),Yr(s,a),typeof window!="undefined"&&(window.removeEventListener("mouseup",g),window.removeEventListener("keyup",g),window.removeEventListener("mousedown",g),window.removeEventListener("keydown",g),window.removeEventListener("change",g))},s.observers.set(r,new kf(r,a)),a}function Ms(e,r){r===void 0&&(r=!1);var n=Fs.get(e.object);Ls(n.value,e.object,e.patches,"",r),e.patches.length&&Gi(n.value,e.patches);var a=e.patches;return a.length>0&&(e.patches=[],e.callback&&e.callback(a)),a}function Ls(e,r,n,a,s){if(r!==e){typeof r.toJSON=="function"&&(r=r.toJSON());for(var c=Ps(r),p=Ps(e),g=!1,v=!1,y=p.length-1;y>=0;y--){var b=p[y],I=e[b];if(zi(r,b)&&!(r[b]===void 0&&I!==void 0&&Array.isArray(r)===!1)){var M=r[b];typeof I=="object"&&I!=null&&typeof M=="object"&&M!=null&&Array.isArray(I)===Array.isArray(M)?Ls(I,M,n,a+"/"+si(b),s):I!==M&&(g=!0,s&&n.push({op:"test",path:a+"/"+si(b),value:cn(I)}),n.push({op:"replace",path:a+"/"+si(b),value:cn(M)}))}else Array.isArray(e)===Array.isArray(r)?(s&&n.push({op:"test",path:a+"/"+si(b),value:cn(I)}),n.push({op:"remove",path:a+"/"+si(b)}),v=!0):(s&&n.push({op:"test",path:a,value:e}),n.push({op:"replace",path:a,value:r}),g=!0)}if(!(!v&&c.length==p.length))for(var y=0;y<c.length;y++){var b=c[y];!zi(e,b)&&r[b]!==void 0&&n.push({op:"add",path:a+"/"+si(b),value:cn(r[b])})}}}function eo(e,r,n){n===void 0&&(n=!1);var a=[];return Ls(e,r,a,"",n),a}const eu=Object.assign({},d,x,{JsonPatchError:Pf,deepClone:cn,escapePathComponent:si,unescapePathComponent:Ql});var Mf=o(39714),tu=o.n(Mf);const ir={add:Ns,replace:Do,remove:Bo,merge:Ed,mergeDeep:ro,context:Lf,getIn:Bf,applyPatch:to,parentPathMatch:jo,flatten:Pn,fullyNormalizeArray:Od,normalizeArray:nu,isPromise:Td,forEachNew:Nf,forEachNewPrimitive:Df,isJsonPatch:jf,isContextPatch:kd,isPatch:Ds,isMutation:nn,isAdditiveMutation:Vo,isGenerator:Id,isFunction:iu,isObject:Kn,isError:Pd};function to(e,r,n){if(n=n||{},r=$($({},r),{},{path:r.path&&ru(r.path)}),r.op==="merge"){var a=au(e,r.path);W()(a,r.value),Gi(e,[Do(r.path,a)])}else if(r.op==="mergeDeep"){var s=au(e,r.path),c=tu()(s,r.value);e=Gi(e,[Do(r.path,c)]).newDocument}else if(r.op==="add"&&r.path===""&&Kn(r.value)){var p=ot()(r.value).reduce(function(I,M){return I.push({op:"add",path:"/".concat(ru(M)),value:r.value[M]}),I},[]);Gi(e,p)}else if(r.op==="replace"&&r.path===""){var g=r,v=g.value;n.allowMetaPatches&&r.meta&&Vo(r)&&(Array.isArray(r.value)||Kn(r.value))&&(v=$($({},v),r.meta)),e=v}else if(Gi(e,[r]),n.allowMetaPatches&&r.meta&&Vo(r)&&(Array.isArray(r.value)||Kn(r.value))){var y=au(e,r.path),b=$($({},y),r.meta);Gi(e,[Do(r.path,b)])}return e}function ru(e){return Array.isArray(e)?e.length<1?"":"/".concat(We()(e).call(e,function(r){return(r+"").replace(/~/g,"~0").replace(/\//g,"~1")}).join("/")):e}function Ns(e,r){return{op:"add",path:e,value:r}}function Do(e,r,n){return{op:"replace",path:e,value:r,meta:n}}function Bo(e){return{op:"remove",path:e}}function Ed(e,r){return{type:"mutation",op:"merge",path:e,value:r}}function ro(e,r){return{type:"mutation",op:"mergeDeep",path:e,value:r}}function Lf(e,r){return{type:"context",path:e,value:r}}function Nf(e,r){try{return no(e,Ca,r)}catch(n){return n}}function Df(e,r){try{return no(e,Aa,r)}catch(n){return n}}function no(e,r,n){var a,s=We()(a=pr()(e).call(e,Vo)).call(a,function(g){return r(g.value,n,g.path)})||[],c=Pn(s),p=Ea(c);return p}function Aa(e,r,n){if(n=n||[],Array.isArray(e))return We()(e).call(e,function(s,c){return Aa(s,r,Qe()(n).call(n,c))});if(Kn(e)){var a;return We()(a=ot()(e)).call(a,function(s){return Aa(e[s],r,Qe()(n).call(n,s))})}return r(e,n[n.length-1],n)}function Ca(e,r,n){n=n||[];var a=[];if(n.length>0){var s=r(e,n[n.length-1],n);s&&(a=Qe()(a).call(a,s))}if(Array.isArray(e)){var c=We()(e).call(e,function(v,y){return Ca(v,r,Qe()(n).call(n,y))});c&&(a=Qe()(a).call(a,c))}else if(Kn(e)){var p,g=We()(p=ot()(e)).call(p,function(v){return Ca(e[v],r,Qe()(n).call(n,v))});g&&(a=Qe()(a).call(a,g))}return a=Pn(a),a}function jo(e,r){if(!Array.isArray(r))return!1;for(var n=0,a=r.length;n<a;n+=1)if(r[n]!==e[n])return!1;return!0}function Bf(e,r){return r.reduce(function(n,a){return typeof a!="undefined"&&n?n[a]:n},e)}function Od(e){return Ea(Pn(nu(e)))}function nu(e){return Array.isArray(e)?e:[e]}function Pn(e){var r;return Qe()(r=[]).apply(r,Sa(We()(e).call(e,function(n){return Array.isArray(n)?Pn(n):n})))}function Ea(e){return pr()(e).call(e,function(r){return typeof r!="undefined"})}function Kn(e){return e&&A(e)==="object"}function Td(e){return Kn(e)&&iu(e.then)}function iu(e){return e&&typeof e=="function"}function Pd(e){return e instanceof Error}function jf(e){if(Ds(e)){var r=e.op;return r==="add"||r==="remove"||r==="replace"}return!1}function Id(e){return Object.prototype.toString.call(e)==="[object GeneratorFunction]"}function nn(e){return jf(e)||Ds(e)&&e.type==="mutation"}function Vo(e){return nn(e)&&(e.op==="add"||e.op==="replace"||e.op==="merge"||e.op==="mergeDeep")}function kd(e){return Ds(e)&&e.type==="context"}function Ds(e){return e&&A(e)==="object"}function au(e,r){try{return _a(e,r)}catch(n){return console.error(n),{}}}var Vf=o(36394),Uf=o.n(Vf),Wf=o(8304),Hf=o.n(Wf);function zf(e,r){function n(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack;for(var a=arguments.length,s=new Array(a),c=0;c<a;c++)s[c]=arguments[c];this.message=s[0],r&&r.apply(this,s)}return n.prototype=new Error,n.prototype.name=e,n.prototype.constructor=n,n}var Fd=o(56855),Ki=o.n(Fd),Uo=["properties"],Bs=["properties"],Wo=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Ei=["schema/example","items/example"];function Gf(e){var r=e[e.length-1],n=e[e.length-2],a=e.join("/");return Uo.indexOf(r)>-1&&Bs.indexOf(n)===-1||Wo.indexOf(a)>-1||Ei.some(function(s){return a.indexOf(s)>-1})}function Rd(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=n.specmap,s=n.getBaseUrlForNodePath,c=s===void 0?function(y){var b;return a.getContext(Qe()(b=[]).call(b,Sa(r),Sa(y))).baseDoc}:s,p=n.targetKeys,g=p===void 0?["$ref","$$ref"]:p,v=[];return Ki()(e).forEach(function(){if(De()(g).call(g,this.key)&&typeof this.node=="string"){var b=this.path,I=Qe()(r).call(r,this.path),M=Yi(this.node,c(b));v.push(a.replace(I,M))}}),v}function Yi(e,r){var n,a=e.split("#"),s=Xe(a,2),c=s[0],p=s[1],g=H.resolve(c||"",r||"");return p?Qe()(n="".concat(g,"#")).call(n,p):g}var ou="application/json, application/yaml",$f=/^([a-z]+:\/\/|\/\/)/i,Oa=zf("JSONRefError",function(r,n,a){this.originalError=a,W()(this,n||{})}),In={},Ta=new(Uf()),su=[function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example"},function(e){return e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example"},function(e){return e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"}],lu=function(r){return su.some(function(n){return n(r)})},uu={key:"$ref",plugin:function(r,n,a,s){var c=s.getInstance(),p=Gn()(a).call(a,0,-1);if(!(Gf(p)||lu(p))){var g=s.getContext(a),v=g.baseDoc;if(typeof r!="string")return new Oa("$ref: must be a string (JSON-Ref)",{$ref:r,baseDoc:v,fullPath:a});var y=du(r),b=y[0],I=y[1]||"",M;try{M=v||b?fu(b,v):null}catch(ae){return cu(ae,{pointer:I,$ref:r,basePath:M,fullPath:a})}var B,G;if(Qf(I,M,p,s)&&!c.useCircularStructures){var te=Yi(r,M);return r===te?null:ir.replace(a,te)}if(M==null?(G=Vs(I),B=s.get(G),typeof B=="undefined"&&(B=new Oa("Could not resolve reference: ".concat(r),{pointer:I,$ref:r,baseDoc:v,fullPath:a}))):(B=zo(M,I),B.__value!=null?B=B.__value:B=B.catch(function(ae){throw cu(ae,{pointer:I,$ref:r,baseDoc:v,fullPath:a})})),B instanceof Error)return[ir.remove(a),B];var q=Yi(r,M),le=ir.replace(p,B,{$$ref:q});if(M&&M!==v)return[le,ir.context(p,{baseDoc:M})];try{if(!Nd(s.state,le)||c.useCircularStructures)return le}catch(ae){return null}}}},Kf=W()(uu,{docCache:In,absoluteify:fu,clearCache:Md,JSONRefError:Oa,wrapError:cu,getDoc:Yf,split:du,extractFromDoc:zo,fetchJSON:Go,extract:js,jsonPointerToArray:Vs,unescapeJsonPointerToken:Jf});const Ho=Kf;function fu(e,r){if(!$f.test(e)){if(!r){var n;throw new Oa(Qe()(n="Tried to resolve a relative URL, without having a basePath. path: '".concat(e,"' basePath: '")).call(n,r,"'"))}return H.resolve(r,e)}return e}function cu(e,r){var n;if(e&&e.response&&e.response.body){var a;n=Qe()(a="".concat(e.response.body.code," ")).call(a,e.response.body.message)}else n=e.message;return new Oa("Could not resolve reference: ".concat(n),r,e)}function du(e){return(e+"").split("#")}function zo(e,r){var n=In[e];if(n&&!ir.isPromise(n))try{var a=js(r,n);return W()(Hi().resolve(a),{__value:a})}catch(s){return Hi().reject(s)}return Yf(e).then(function(s){return js(r,s)})}function Md(e){typeof e!="undefined"?delete In[e]:ot()(In).forEach(function(r){delete In[r]})}function Yf(e){var r=In[e];return r?ir.isPromise(r)?r:Hi().resolve(r):(In[e]=Kf.fetchJSON(e).then(function(n){return In[e]=n,n}),In[e])}function Go(e){return fetch(e,{headers:{Accept:ou},loadSpec:!0}).then(function(r){return r.text()}).then(function(r){return Vl.load(r)})}function js(e,r){var n=Vs(e);if(n.length<1)return r;var a=ir.getIn(r,n);if(typeof a=="undefined")throw new Oa("Could not resolve pointer: ".concat(e," does not exist in document"),{pointer:e});return a}function Vs(e){var r;if(typeof e!="string")throw new TypeError("Expected a string, got a ".concat(A(e)));return e[0]==="/"&&(e=e.substr(1)),e===""?[]:We()(r=e.split("/")).call(r,Jf)}function Jf(e){if(typeof e!="string")return e;var r=new(Hf())("=".concat(e.replace(/~1/g,"/").replace(/~0/g,"~")));return r.get("")}function Us(e){var r,n=new(Hf())([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]);return Gn()(r=n.toString()).call(r,1)}function Xf(e){return e.length===0?"":"/".concat(We()(e).call(e,Us).join("/"))}var Ld=function(r){return!r||r==="/"||r==="#"};function Ws(e,r){if(Ld(r))return!0;var n=e.charAt(r.length),a=Gn()(r).call(r,-1);return e.indexOf(r)===0&&(!n||n==="/"||n==="#")&&a!=="#"}function Qf(e,r,n,a){var s,c,p=Ta.get(a);p||(p={},Ta.set(a,p));var g=Xf(n),v=Qe()(s="".concat(r||"<specmap-base>","#")).call(s,e),y=g.replace(/allOf\/\d+\/?/g,""),b=a.contextTree.get([]).baseDoc;if(r===b&&Ws(y,e))return!0;var I="",M=n.some(function(B){var G;return I=Qe()(G="".concat(I,"/")).call(G,Us(B)),p[I]&&p[I].some(function(te){return Ws(te,v)||Ws(v,te)})});if(M)return!0;p[y]=Qe()(c=p[y]||[]).call(c,v)}function Nd(e,r){var n=[e];return r.path.reduce(function(s,c){return n.push(s[c]),s[c]},e),a(r.value);function a(s){return ir.isObject(s)&&(n.indexOf(s)>=0||ot()(s).some(function(c){return a(s[c])}))}}const pu={key:"allOf",plugin:function(r,n,a,s,c){if(!(c.meta&&c.meta.$$ref)){var p=Gn()(a).call(a,0,-1);if(!Gf(p)){if(!Array.isArray(r)){var g=new TypeError("allOf must be an array");return g.fullPath=a,g}var v=!1,y=c.value;if(p.forEach(function(B){!y||(y=y[B])}),y=$({},y),ot()(y).length!==0){delete y.allOf;var b=[];if(b.push(s.replace(p,{})),r.forEach(function(B,G){if(!s.isObject(B)){if(v)return null;v=!0;var te=new TypeError("Elements in allOf must be objects");return te.fullPath=a,b.push(te)}b.push(s.mergeDeep(p,B));var q=Gn()(a).call(a,0,-1),le=Rd(B,q,{getBaseUrlForNodePath:function(pe){var ve;return s.getContext(Qe()(ve=[]).call(ve,Sa(a),[G],Sa(pe))).baseDoc},specmap:s});b.push.apply(b,Sa(le))}),y.example){var I;b.push(s.remove(Qe()(I=[]).call(I,p,"example")))}if(b.push(s.mergeDeep(p,y)),!y.$$ref){var M;b.push(s.remove(Qe()(M=[]).call(M,p,"$$ref")))}return b}}}}},$o={key:"parameters",plugin:function(r,n,a,s){if(Array.isArray(r)&&r.length){var c=W()([],r),p=Gn()(a).call(a,0,-1),g=$({},ir.getIn(s.spec,p));return r.forEach(function(v,y){try{c[y].default=s.parameterMacro(g,v)}catch(I){var b=new Error(I);return b.fullPath=a,b}}),ir.replace(a,c)}return ir.replace(a,r)}},Ko={key:"properties",plugin:function(r,n,a,s){var c=$({},r);for(var p in r)try{c[p].default=s.modelPropertyMacro(c[p])}catch(y){var g=new Error(y);return g.fullPath=a,g}var v=ir.replace(a,c);return v}};var Dd=function(){function e(r){Yl(this,e),this.root=Hs(r||{})}return Qt(e,[{key:"set",value:function(n,a){var s=this.getParent(n,!0);if(!s){zs(this.root,a,null);return}var c=n[n.length-1],p=s.children;if(p[c]){zs(p[c],a,s);return}p[c]=Hs(a,s)}},{key:"get",value:function(n){if(n=n||[],n.length<1)return this.root.value;for(var a=this.root,s,c,p=0;p<n.length&&(c=n[p],s=a.children,!!s[c]);p+=1)a=s[c];return a&&a.protoValue}},{key:"getParent",value:function(n,a){return!n||n.length<1?null:n.length<2?this.root:Gn()(n).call(n,0,-1).reduce(function(s,c){if(!s)return s;var p=s.children;return!p[c]&&a&&(p[c]=Hs(null,s)),p[c]},this.root)}}]),e}();function Hs(e,r){return zs({children:{}},e,r)}function zs(e,r,n){return e.value=r||{},e.protoValue=n?$($({},n.protoValue),e.value):e.value,ot()(e.children).forEach(function(a){var s=e.children[a];e.children[a]=zs(s,s.value,e)}),e}var Zf=100,qf=function(){},Bd=function(){function e(r){var n=this,a,s;Yl(this,e),W()(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Dd,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:W()(Object.create(this),ir,{getInstance:function(){return n}}),allowMetaPatches:!1},r),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=pr()(a=We()(s=this.plugins).call(s,this.wrapPlugin.bind(this))).call(a,ir.isFunction),this.patches.push(ir.add([],this.spec)),this.patches.push(ir.context([],this.context)),this.updatePatches(this.patches)}return Qt(e,[{key:"debug",value:function(n){if(this.debugLevel===n){for(var a,s=arguments.length,c=new Array(s>1?s-1:0),p=1;p<s;p++)c[p-1]=arguments[p];(a=console).log.apply(a,c)}}},{key:"verbose",value:function(n){if(this.debugLevel==="verbose"){for(var a,s,c=arguments.length,p=new Array(c>1?c-1:0),g=1;g<c;g++)p[g-1]=arguments[g];(a=console).log.apply(a,Qe()(s=["[".concat(n,"] ")]).call(s,p))}}},{key:"wrapPlugin",value:function(n,a){var s=this.pathDiscriminator,c=null,p;return n[this.pluginProp]?(c=n,p=n[this.pluginProp]):ir.isFunction(n)?p=n:ir.isObject(n)&&(p=g(n)),W()(p.bind(c),{pluginName:n.name||a,isGenerator:ir.isGenerator(p)});function g(v){var y=function(I,M){return Array.isArray(I)?I.every(function(B,G){return B===M[G]}):!0};return Ce().mark(function b(I,M){var B,G,te,q,le,ae;return Ce().wrap(function(ve){for(;;)switch(ve.prev=ve.next){case 0:ae=function(Te,Ae,xe){var Ee,ke,Re,je,Ge,bt,qe,Zt,sr,gr,Pr,fr,Ut;return Ce().wrap(function(Nt){for(;;)switch(Nt.prev=Nt.next){case 0:if(ir.isObject(Te)){Nt.next=6;break}if(v.key!==Ae[Ae.length-1]){Nt.next=4;break}return Nt.next=4,v.plugin(Te,v.key,Ae,M);case 4:Nt.next=30;break;case 6:Ee=Ae.length-1,ke=Ae[Ee],Re=Ae.indexOf("properties"),je=ke==="properties"&&Ee===Re,Ge=M.allowMetaPatches&&G[Te.$$ref],bt=0,qe=ot()(Te);case 12:if(!(bt<qe.length)){Nt.next=30;break}if(Zt=qe[bt],sr=Te[Zt],gr=Qe()(Ae).call(Ae,Zt),Pr=ir.isObject(sr),fr=Te.$$ref,Ge){Nt.next=22;break}if(!Pr){Nt.next=22;break}return M.allowMetaPatches&&fr&&(G[fr]=!0),Nt.delegateYield(ae(sr,gr,xe),"t0",22);case 22:if(!(!je&&Zt===v.key)){Nt.next=27;break}if(Ut=y(s,Ae),!(!s||Ut)){Nt.next=27;break}return Nt.next=27,v.plugin(sr,Zt,gr,M,xe);case 27:bt++,Nt.next=12;break;case 30:case"end":return Nt.stop()}},B)},B=Ce().mark(ae),G={},te=Oe(pr()(I).call(I,ir.isAdditiveMutation)),ve.prev=4,te.s();case 6:if((q=te.n()).done){ve.next=11;break}return le=q.value,ve.delegateYield(ae(le.value,le.path,le),"t0",9);case 9:ve.next=6;break;case 11:ve.next=16;break;case 13:ve.prev=13,ve.t1=ve.catch(4),te.e(ve.t1);case 16:return ve.prev=16,te.f(),ve.finish(16);case 19:case"end":return ve.stop()}},b,null,[[4,13,16,19]])})}}},{key:"nextPlugin",value:function(){var n,a=this;return Ui()(n=this.wrappedPlugins).call(n,function(s){var c=a.getMutationsForPlugin(s);return c.length>0})}},{key:"nextPromisedPatch",value:function(){if(this.promisedPatches.length>0){var n;return Hi().race(We()(n=this.promisedPatches).call(n,function(a){return a.value}))}}},{key:"getPluginHistory",value:function(n){var a=this.constructor.getPluginName(n);return this.pluginHistory[a]||[]}},{key:"getPluginRunCount",value:function(n){return this.getPluginHistory(n).length}},{key:"getPluginHistoryTip",value:function(n){var a=this.getPluginHistory(n),s=a&&a[a.length-1];return s||{}}},{key:"getPluginMutationIndex",value:function(n){var a=this.getPluginHistoryTip(n).mutationIndex;return typeof a!="number"?-1:a}},{key:"updatePluginHistory",value:function(n,a){var s=this.constructor.getPluginName(n);this.pluginHistory[s]=this.pluginHistory[s]||[],this.pluginHistory[s].push(a)}},{key:"updatePatches",value:function(n){var a=this;ir.normalizeArray(n).forEach(function(s){if(s instanceof Error){a.errors.push(s);return}try{if(!ir.isObject(s)){a.debug("updatePatches","Got a non-object patch",s);return}if(a.showDebug&&a.allPatches.push(s),ir.isPromise(s.value)){a.promisedPatches.push(s),a.promisedPatchThen(s);return}if(ir.isContextPatch(s)){a.setContext(s.path,s.value);return}if(ir.isMutation(s)){a.updateMutations(s);return}}catch(c){console.error(c),a.errors.push(c)}})}},{key:"updateMutations",value:function(n){A(n.value)==="object"&&!Array.isArray(n.value)&&this.allowMetaPatches&&(n.value=$({},n.value));var a=ir.applyPatch(this.state,n,{allowMetaPatches:this.allowMetaPatches});a&&(this.mutations.push(n),this.state=a)}},{key:"removePromisedPatch",value:function(n){var a,s=this.promisedPatches.indexOf(n);if(s<0){this.debug("Tried to remove a promisedPatch that isn't there!");return}Of()(a=this.promisedPatches).call(a,s,1)}},{key:"promisedPatchThen",value:function(n){var a=this;return n.value=n.value.then(function(s){var c=$($({},n),{},{value:s});a.removePromisedPatch(n),a.updatePatches(c)}).catch(function(s){a.removePromisedPatch(n),a.updatePatches(s)}),n.value}},{key:"getMutations",value:function(n,a){var s;return n=n||0,typeof a!="number"&&(a=this.mutations.length),Gn()(s=this.mutations).call(s,n,a)}},{key:"getCurrentMutations",value:function(){return this.getMutationsForPlugin(this.getCurrentPlugin())}},{key:"getMutationsForPlugin",value:function(n){var a=this.getPluginMutationIndex(n);return this.getMutations(a+1)}},{key:"getCurrentPlugin",value:function(){return this.currentPlugin}},{key:"getLib",value:function(){return this.libMethods}},{key:"_get",value:function(n){return ir.getIn(this.state,n)}},{key:"_getContext",value:function(n){return this.contextTree.get(n)}},{key:"setContext",value:function(n,a){return this.contextTree.set(n,a)}},{key:"_hasRun",value:function(n){var a=this.getPluginRunCount(this.getCurrentPlugin());return a>(n||0)}},{key:"dispatch",value:function(){var n=this,a=this,s=this.nextPlugin();if(!s){var c=this.nextPromisedPatch();if(c)return c.then(function(){return n.dispatch()}).catch(function(){return n.dispatch()});var p={spec:this.state,errors:this.errors};return this.showDebug&&(p.patches=this.allPatches),Hi().resolve(p)}if(a.pluginCount=a.pluginCount||{},a.pluginCount[s]=(a.pluginCount[s]||0)+1,a.pluginCount[s]>Zf){var g;return Hi().resolve({spec:a.state,errors:Qe()(g=a.errors).call(g,new Error("We've reached a hard limit of ".concat(Zf," plugin runs")))})}if(s!==this.currentPlugin&&this.promisedPatches.length){var v,y=We()(v=this.promisedPatches).call(v,function(M){return M.value});return Hi().all(We()(y).call(y,function(M){return M.then(qf,qf)})).then(function(){return n.dispatch()})}return b();function b(){a.currentPlugin=s;var M=a.getCurrentMutations(),B=a.mutations.length-1;try{if(s.isGenerator){var G=Oe(s(M,a.getLib())),te;try{for(G.s();!(te=G.n()).done;){var q=te.value;I(q)}}catch(ae){G.e(ae)}finally{G.f()}}else{var le=s(M,a.getLib());I(le)}}catch(ae){console.error(ae),I([W()(Object.create(ae),{plugin:s})])}finally{a.updatePluginHistory(s,{mutationIndex:B})}return a.dispatch()}function I(M){M&&(M=ir.fullyNormalizeArray(M),a.updatePatches(M,s))}}}],[{key:"getPluginName",value:function(n){return n.pluginName}},{key:"getPatchesOfType",value:function(n,a){return pr()(n).call(n,a)}}]),e}();function _f(e){return new Bd(e).dispatch()}var Pa={refs:Ho,allOf:pu,parameters:$o,properties:Ko},ec=function(r){return String.prototype.toLowerCase.call(r)},hu=function(r){return r.replace(/[^\w]/gi,"_")};function Gs(e){var r=e.openapi;return r?K()(r).call(r,"3"):!1}function jd(e){var r=e.swagger;return r?_startsWithInstanceProperty(r).call(r,"2"):!1}function $s(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"",a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},s=a.v2OperationIdCompatibilityMode;if(!e||A(e)!=="object")return null;var c=(e.operationId||"").replace(/\s/g,"");return c.length?hu(e.operationId):tc(r,n,{v2OperationIdCompatibilityMode:s})}function tc(e,r){var n,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=a.v2OperationIdCompatibilityMode;if(s){var c,p,g=Qe()(c="".concat(r.toLowerCase(),"_")).call(c,e).replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return g=g||Qe()(p="".concat(e.substring(1),"_")).call(p,r),g.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return Qe()(n="".concat(ec(r))).call(n,hu(e))}function Ia(e,r){var n;return Qe()(n="".concat(ec(r),"-")).call(n,e)}function rc(e,r){return!e||!e.paths?null:Ks(e,function(n){var a=n.pathName,s=n.method,c=n.operation;if(!c||A(c)!=="object")return!1;var p=c.operationId,g=$s(c,a,s),v=Ia(a,s);return[g,v,p].some(function(y){return y&&y===r})})}function Ks(e,r){return nc(e,r,!0)||null}function nc(e,r,n){if(!e||A(e)!=="object"||!e.paths||A(e.paths)!=="object")return null;var a=e.paths;for(var s in a)for(var c in a[s])if(c.toUpperCase()!=="PARAMETERS"){var p=a[s][c];if(!(!p||A(p)!=="object")){var g={spec:e,pathName:s,method:c.toUpperCase(),operation:p},v=r(g);if(n&&v)return g}}}function ic(e){var r=e.spec,n=r.paths,a={};if(!n||r.$$normalized)return e;for(var s in n){var c,p=n[s];if(!(p==null||!De()(c=["object","function"]).call(c,A(p)))){var g=p.parameters,v=function(M){var B,G=p[M];if(G==null||!De()(B=["object","function"]).call(B,A(G)))return"continue";var te=$s(G,s,M);if(te){a[te]?a[te].push(G):a[te]=[G];var q=a[te];if(q.length>1)q.forEach(function(je,Ge){var bt;je.__originalOperationId=je.__originalOperationId||je.operationId,je.operationId=Qe()(bt="".concat(te)).call(bt,Ge+1)});else if(typeof G.operationId!="undefined"){var le=q[0];le.__originalOperationId=le.__originalOperationId||G.operationId,le.operationId=te}}if(M!=="parameters"){var ae=[],pe={};for(var ve in r)(ve==="produces"||ve==="consumes"||ve==="security")&&(pe[ve]=r[ve],ae.push(pe));if(g&&(pe.parameters=g,ae.push(pe)),ae.length){var me=Oe(ae),Te;try{for(me.s();!(Te=me.n()).done;){var Ae=Te.value;for(var xe in Ae)if(!G[xe])G[xe]=Ae[xe];else if(xe==="parameters"){var Ee=Oe(Ae[xe]),ke;try{var Re=function(){var Ge=ke.value,bt=G[xe].some(function(qe){return qe.name&&qe.name===Ge.name||qe.$ref&&qe.$ref===Ge.$ref||qe.$$ref&&qe.$$ref===Ge.$$ref||qe===Ge});bt||G[xe].push(Ge)};for(Ee.s();!(ke=Ee.n()).done;)Re()}catch(je){Ee.e(je)}finally{Ee.f()}}}}catch(je){me.e(je)}finally{me.f()}}}};for(var y in p)var b=v(y)}}return r.$$normalized=!0,e}function ac(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=r.requestInterceptor,a=r.responseInterceptor,s=e.withCredentials?"include":"same-origin";return function(c){return e({url:c,loadSpec:!0,requestInterceptor:n,responseInterceptor:a,headers:{Accept:ou},credentials:s}).then(function(p){return p.body})}}function br(){Pa.refs.clearCache()}function oc(e){var r=e.fetch,n=e.spec,a=e.url,s=e.mode,c=e.allowMetaPatches,p=c===void 0?!0:c,g=e.pathDiscriminator,v=e.modelPropertyMacro,y=e.parameterMacro,b=e.requestInterceptor,I=e.responseInterceptor,M=e.skipNormalization,B=e.useCircularStructures,G=e.http,te=e.baseDoc;if(te=te||a,G=r||G||Cs,!n)return ac(G,{requestInterceptor:b,responseInterceptor:I})(te).then(q);return q(n);function q(le){te&&(Pa.refs.docCache[te]=le),Pa.refs.fetchJSON=ac(G,{requestInterceptor:b,responseInterceptor:I});var ae=[Pa.refs];return typeof y=="function"&&ae.push(Pa.parameters),typeof v=="function"&&ae.push(Pa.properties),s!=="strict"&&ae.push(Pa.allOf),_f({spec:le,context:{baseDoc:te},plugins:ae,allowMetaPatches:p,pathDiscriminator:g,parameterMacro:y,modelPropertyMacro:v,useCircularStructures:B}).then(M?function(){var pe=Ct(Ce().mark(function ve(me){return Ce().wrap(function(Ae){for(;;)switch(Ae.prev=Ae.next){case 0:return Ae.abrupt("return",me);case 1:case"end":return Ae.stop()}},ve)}));return function(ve){return pe.apply(this,arguments)}}():ic)}}var vu=o(72579),Oi=o.n(vu);function Yn(e,r){return io.apply(this,arguments)}function io(){return io=Ct(Ce().mark(function e(r,n){var a,s,c,p,g,v,y,b,I,M,B,G,te=arguments;return Ce().wrap(function(le){for(;;)switch(le.prev=le.next){case 0:return a=te.length>2&&te[2]!==void 0?te[2]:{},s=a.returnEntireTree,c=a.baseDoc,p=a.requestInterceptor,g=a.responseInterceptor,v=a.parameterMacro,y=a.modelPropertyMacro,b=a.useCircularStructures,I={pathDiscriminator:n,baseDoc:c,requestInterceptor:p,responseInterceptor:g,parameterMacro:v,modelPropertyMacro:y,useCircularStructures:b},M=ic({spec:r}),B=M.spec,le.next=6,oc($($({},I),{},{spec:B,allowMetaPatches:!0,skipNormalization:!0}));case 6:return G=le.sent,!s&&Array.isArray(n)&&n.length&&(G.spec=Oi()(G.spec,n)||null),le.abrupt("return",G);case 9:case"end":return le.stop()}},e)})),io.apply(this,arguments)}var gu=function(){return null},sc=function(r){return Array.isArray(r)?r:[r]},Yo={mapTagOperations:Vd,makeExecute:lc};function lc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return function(r){var n=r.pathName,a=r.method,s=r.operationId;return function(c){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},g=e.requestInterceptor,v=e.responseInterceptor,y=e.userFetch;return e.execute($({spec:e.spec,requestInterceptor:g,responseInterceptor:v,userFetch:y,pathName:n,method:a,parameters:c,operationId:s},p))}}}function uc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Yo.makeExecute(e),n=Yo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r}),a={};for(var s in n){a[s]={operations:{}};for(var c in n[s])a[s].operations[c]={execute:n[s][c]}}return{apis:a}}function fc(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=Yo.makeExecute(e);return{apis:Yo.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:r})}}function Vd(e){var r=e.spec,n=e.cb,a=n===void 0?gu:n,s=e.defaultTag,c=s===void 0?"default":s,p=e.v2OperationIdCompatibilityMode,g={},v={};return nc(r,function(y){var b=y.pathName,I=y.method,M=y.operation,B=M.tags?sc(M.tags):[c];B.forEach(function(G){if(typeof G=="string"){v[G]=v[G]||{};var te=v[G],q=$s(M,b,I,{v2OperationIdCompatibilityMode:p}),le=a({spec:r,pathName:b,method:I,operation:M,operationId:q});if(g[q]){var ae;g[q]+=1,te[Qe()(ae="".concat(q)).call(ae,g[q])]=le}else if(typeof te[q]!="undefined"){var pe,ve,me=g[q]||1;g[q]=me+1,te[Qe()(pe="".concat(q)).call(pe,g[q])]=le;var Te=te[q];delete te[q],te[Qe()(ve="".concat(q)).call(ve,me)]=Te}else te[q]=le}})}),v}var Ys=o(26405);function cc(e,r){if(e==null)return{};var n={},a=C(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(Ys(r).call(r,s)>=0)&&(n[s]=e[s]);return n}function or(e,r){if(e==null)return{};var n=cc(e,r),a,s;if(T){var c=T(e);for(s=0;s<c.length;s++)a=c[s],!(Ys(r).call(r,a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}var dc=o(13421);/*!
89
+ * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
90
+ *
91
+ * Copyright (c) 2014-2017, Jon Schlinkert.
92
+ * Released under the MIT License.
93
+ */function pc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ka(e){var r,n;return pc(e)===!1?!1:(r=e.constructor,r===void 0?!0:(n=r.prototype,!(pc(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)))}const Ud={body:Js,header:Tr,query:zd,path:Hd,formData:Wd};function Js(e){var r=e.req,n=e.value;r.body=n}function Wd(e){var r=e.req,n=e.value,a=e.parameter;(n||a.allowEmptyValue)&&(r.form=r.form||{},r.form[a.name]={value:n,allowEmptyValue:a.allowEmptyValue,collectionFormat:a.collectionFormat})}function Tr(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{},typeof a!="undefined"&&(r.headers[n.name]=a)}function Hd(e){var r=e.req,n=e.value,a=e.parameter;r.url=r.url.split("{".concat(a.name,"}")).join(encodeURIComponent(n))}function zd(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},n===!1&&a.type==="boolean"&&(n="false"),n===0&&["number","integer"].indexOf(a.type)>-1&&(n="0"),n)r.query[a.name]={collectionFormat:a.collectionFormat,value:n};else if(a.allowEmptyValue&&n!==void 0){var s=a.name;r.query[s]=r.query[s]||{},r.query[s].allowEmptyValue=!0}}function Xs(e,r){return De()(r).call(r,"application/json")?typeof e=="string"?e:Wt()(e):e.toString()}function Qs(e){var r=e.req,n=e.value,a=e.parameter,s=a.name,c=a.style,p=a.explode,g=a.content;if(g){var v=ot()(g)[0];r.url=r.url.split("{".concat(s,"}")).join(Sr(Xs(n,v),{escape:!0}));return}var y=zr({key:a.name,value:n,style:c||"simple",explode:p||!1,escape:!0});r.url=r.url.split("{".concat(s,"}")).join(y)}function t(e){var r=e.req,n=e.value,a=e.parameter;if(r.query=r.query||{},a.content){var s=ot()(a.content)[0];r.query[a.name]=Xs(n,s);return}if(n===!1&&(n="false"),n===0&&(n="0"),n){var c=a.style,p=a.explode,g=a.allowReserved;r.query[a.name]={value:n,serializationOption:{style:c,explode:p,allowReserved:g}}}else if(a.allowEmptyValue&&n!==void 0){var v=a.name;r.query[v]=r.query[v]||{},r.query[v].allowEmptyValue=!0}}var i=["accept","authorization","content-type"];function u(e){var r=e.req,n=e.parameter,a=e.value;if(r.headers=r.headers||{},!(i.indexOf(n.name.toLowerCase())>-1)){if(n.content){var s=ot()(n.content)[0];r.headers[n.name]=Xs(a,s);return}typeof a!="undefined"&&(r.headers[n.name]=zr({key:n.name,value:a,style:n.style||"simple",explode:typeof n.explode=="undefined"?!1:n.explode,escape:!1}))}}function l(e){var r=e.req,n=e.parameter,a=e.value;r.headers=r.headers||{};var s=A(a);if(n.content){var c,p=ot()(n.content)[0];r.headers.Cookie=Qe()(c="".concat(n.name,"=")).call(c,Xs(a,p));return}if(s!=="undefined"){var g=s==="object"&&!Array.isArray(a)&&n.explode?"":"".concat(n.name,"=");r.headers.Cookie=g+zr({key:n.name,value:a,escape:!1,style:n.style||"form",explode:typeof n.explode=="undefined"?!1:n.explode})}}var f=o(1858),m=o.n(f),S=function(){return typeof m()!="undefined"?m():typeof self!="undefined"?self:window}(),P=S.btoa;const R=P;function j(e,r){var n=e.operation,a=e.requestBody,s=e.securities,c=e.spec,p=e.attachContentTypeForEmptyPayload,g=e.requestContentType;r=se({request:r,securities:s,operation:n,spec:c});var v=n.requestBody||{},y=ot()(v.content||{}),b=g&&y.indexOf(g)>-1;if(a||p){if(g&&b)r.headers["Content-Type"]=g;else if(!g){var I=y[0];I&&(r.headers["Content-Type"]=I,g=I)}}else g&&b&&(r.headers["Content-Type"]=g);if(!e.responseContentType&&n.responses){var M,B=pr()(M=Ir()(n.responses)).call(M,function(te){var q=Xe(te,2),le=q[0],ae=q[1],pe=parseInt(le,10);return pe>=200&&pe<300&&ka(ae.content)}).reduce(function(te,q){var le=Xe(q,2),ae=le[1];return Qe()(te).call(te,ot()(ae.content))},[]);B.length>0&&(r.headers.accept=B.join(", "))}if(a)if(g){if(y.indexOf(g)>-1)if(g==="application/x-www-form-urlencoded"||g==="multipart/form-data")if(A(a)==="object"){var G=(v.content[g]||{}).encoding||{};r.form={},ot()(a).forEach(function(te){r.form[te]={value:a[te],encoding:G[te]||{}}})}else r.form=a;else r.body=a}else r.body=a;return r}function se(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=$({},r),v=a.authorized,y=v===void 0?{}:v,b=c.security||p.security||[],I=y&&!!ot()(y).length,M=Oi()(p,["components","securitySchemes"])||{};return g.headers=g.headers||{},g.query=g.query||{},!ot()(a).length||!I||!b||Array.isArray(c.security)&&!c.security.length?r:(b.forEach(function(B){ot()(B).forEach(function(G){var te=y[G],q=M[G];if(!!te){var le=te.value||te,ae=q.type;if(te){if(ae==="apiKey")q.in==="query"&&(g.query[q.name]=le),q.in==="header"&&(g.headers[q.name]=le),q.in==="cookie"&&(g.cookies[q.name]=le);else if(ae==="http"){if(/^basic$/i.test(q.scheme)){var pe,ve=le.username||"",me=le.password||"",Te=R(Qe()(pe="".concat(ve,":")).call(pe,me));g.headers.Authorization="Basic ".concat(Te)}/^bearer$/i.test(q.scheme)&&(g.headers.Authorization="Bearer ".concat(le))}else if(ae==="oauth2"||ae==="openIdConnect"){var Ae,xe=te.token||{},Ee=q["x-tokenName"]||"access_token",ke=xe[Ee],Re=xe.token_type;(!Re||Re.toLowerCase()==="bearer")&&(Re="Bearer"),g.headers.Authorization=Qe()(Ae="".concat(Re," ")).call(Ae,ke)}}}})}),g)}function de(e,r){var n=e.spec,a=e.operation,s=e.securities,c=e.requestContentType,p=e.responseContentType,g=e.attachContentTypeForEmptyPayload;if(r=we({request:r,securities:s,operation:a,spec:n}),r.body||r.form||g){var v,y;if(c)r.headers["Content-Type"]=c;else if(Array.isArray(a.consumes)){var b=Xe(a.consumes,1);r.headers["Content-Type"]=b[0]}else if(Array.isArray(n.consumes)){var I=Xe(n.consumes,1);r.headers["Content-Type"]=I[0]}else a.parameters&&pr()(v=a.parameters).call(v,function(q){return q.type==="file"}).length?r.headers["Content-Type"]="multipart/form-data":a.parameters&&pr()(y=a.parameters).call(y,function(q){return q.in==="formData"}).length&&(r.headers["Content-Type"]="application/x-www-form-urlencoded")}else if(c){var M,B,G=a.parameters&&pr()(M=a.parameters).call(M,function(q){return q.in==="body"}).length>0,te=a.parameters&&pr()(B=a.parameters).call(B,function(q){return q.in==="formData"}).length>0;(G||te)&&(r.headers["Content-Type"]=c)}return!p&&Array.isArray(a.produces)&&a.produces.length>0&&(r.headers.accept=a.produces.join(", ")),r}function we(e){var r=e.request,n=e.securities,a=n===void 0?{}:n,s=e.operation,c=s===void 0?{}:s,p=e.spec,g=$({},r),v=a.authorized,y=v===void 0?{}:v,b=a.specSecurity,I=b===void 0?[]:b,M=c.security||I,B=y&&!!ot()(y).length,G=p.securityDefinitions;return g.headers=g.headers||{},g.query=g.query||{},!ot()(a).length||!B||!M||Array.isArray(c.security)&&!c.security.length?r:(M.forEach(function(te){ot()(te).forEach(function(q){var le=y[q];if(!!le){var ae=le.token,pe=le.value||le,ve=G[q],me=ve.type,Te=ve["x-tokenName"]||"access_token",Ae=ae&&ae[Te],xe=ae&&ae.token_type;if(le){if(me==="apiKey"){var Ee=ve.in==="query"?"query":"headers";g[Ee]=g[Ee]||{},g[Ee][ve.name]=pe}else if(me==="basic")if(pe.header)g.headers.authorization=pe.header;else{var ke,Re=pe.username||"",je=pe.password||"";pe.base64=R(Qe()(ke="".concat(Re,":")).call(ke,je)),g.headers.authorization="Basic ".concat(pe.base64)}else if(me==="oauth2"&&Ae){var Ge;xe=!xe||xe.toLowerCase()==="bearer"?"Bearer":xe,g.headers.authorization=Qe()(Ge="".concat(xe," ")).call(Ge,Ae)}}}})}),g)}var ye=["http","fetch","spec","operationId","pathName","method","parameters","securities"],Ie=function(r){return Array.isArray(r)?r:[]},Ne=zf("OperationNotFoundError",function(r,n,a){this.originalError=a,W()(this,n||{})}),ze=function(r,n){return pr()(n).call(n,function(a){return a.name===r})},Ye=function(r){var n={};r.forEach(function(s){n[s.in]||(n[s.in]={}),n[s.in][s.name]=s});var a=[];return ot()(n).forEach(function(s){ot()(n[s]).forEach(function(c){a.push(n[s][c])})}),a},Ze={buildRequest:rt};function Je(e){var r=e.http,n=e.fetch,a=e.spec,s=e.operationId,c=e.pathName,p=e.method,g=e.parameters,v=e.securities,y=or(e,ye),b=r||n||Cs;c&&p&&!s&&(s=Ia(c,p));var I=Ze.buildRequest($({spec:a,operationId:s,parameters:g,securities:v,http:b},y));return I.body&&(ka(I.body)||Array.isArray(I.body))&&(I.body=Wt()(I.body)),b(I)}function rt(e){var r,n,a=e.spec,s=e.operationId,c=e.responseContentType,p=e.scheme,g=e.requestInterceptor,v=e.responseInterceptor,y=e.contextUrl,b=e.userFetch,I=e.server,M=e.serverVariables,B=e.http,G=e.signal,te=e.parameters,q=e.parameterBuilders,le=Gs(a);q||(le?q=w:q=Ud);var ae=B&&B.withCredentials?"include":"same-origin",pe={url:"",credentials:ae,headers:{},cookies:{}};G&&(pe.signal=G),g&&(pe.requestInterceptor=g),v&&(pe.responseInterceptor=v),b&&(pe.userFetch=b);var ve=rc(a,s);if(!ve)throw new Ne("Operation ".concat(s," not found"));var me=ve.operation,Te=me===void 0?{}:me,Ae=ve.method,xe=ve.pathName;if(pe.url+=pt({spec:a,scheme:p,contextUrl:y,server:I,serverVariables:M,pathName:xe,method:Ae}),!s)return delete pe.cookies,pe;pe.url+=xe,pe.method="".concat(Ae).toUpperCase(),te=te||{};var Ee=a.paths[xe]||{};c&&(pe.headers.accept=c);var ke=Ye(Qe()(r=Qe()(n=[]).call(n,Ie(Te.parameters))).call(r,Ie(Ee.parameters)));ke.forEach(function(Ge){var bt=q[Ge.in],qe;if(Ge.in==="body"&&Ge.schema&&Ge.schema.properties&&(qe=te),qe=Ge&&Ge.name&&te[Ge.name],typeof qe=="undefined"){var Zt;qe=Ge&&Ge.name&&te[Qe()(Zt="".concat(Ge.in,".")).call(Zt,Ge.name)]}else if(ze(Ge.name,ke).length>1){var sr;console.warn(Qe()(sr="Parameter '".concat(Ge.name,"' is ambiguous because the defined spec has more than one parameter with the name: '")).call(sr,Ge.name,"' and the passed-in parameter values did not define an 'in' value."))}if(qe!==null){if(typeof Ge.default!="undefined"&&typeof qe=="undefined"&&(qe=Ge.default),typeof qe=="undefined"&&Ge.required&&!Ge.allowEmptyValue)throw new Error("Required parameter ".concat(Ge.name," is not provided"));if(le&&Ge.schema&&Ge.schema.type==="object"&&typeof qe=="string")try{qe=JSON.parse(qe)}catch(gr){throw new Error("Could not parse object parameter value string as JSON")}bt&&bt({req:pe,parameter:Ge,value:qe,operation:Te,spec:a})}});var Re=$($({},e),{},{operation:Te});if(le?pe=j(Re,pe):pe=de(Re,pe),pe.cookies&&ot()(pe.cookies).length){var je=ot()(pe.cookies).reduce(function(Ge,bt){var qe=pe.cookies[bt],Zt=Ge?"&":"",sr=dc.serialize(bt,qe);return Ge+Zt+sr},"");pe.headers.Cookie=je}return pe.cookies&&delete pe.cookies,Kl(pe),pe}var vt=function(r){return r?r.replace(/\W/g,""):null};function pt(e){var r=Gs(e.spec);return r?Dt(e):wr(e)}function Dt(e){var r=e.spec,n=e.pathName,a=e.method,s=e.server,c=e.contextUrl,p=e.serverVariables,g=p===void 0?{}:p,v=Oi()(r,["paths",n,(a||"").toLowerCase(),"servers"])||Oi()(r,["paths",n,"servers"])||Oi()(r,["servers"]),y="",b=null;if(s&&v&&v.length){var I=We()(v).call(v,function(G){return G.url});I.indexOf(s)>-1&&(y=s,b=v[I.indexOf(s)])}if(!y&&v&&v.length){y=v[0].url;var M=Xe(v,1);b=M[0]}if(y.indexOf("{")>-1){var B=Ur(y);B.forEach(function(G){if(b.variables&&b.variables[G]){var te=b.variables[G],q=g[G]||te.default,le=new RegExp("{".concat(G,"}"),"g");y=y.replace(le,q)}})}return ur(y,c)}function ur(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",n=e&&r?H.parse(H.resolve(r,e)):H.parse(e),a=H.parse(r),s=vt(n.protocol)||vt(a.protocol)||"",c=n.host||a.host,p=n.pathname||"",g;if(s&&c){var v;g=Qe()(v="".concat(s,"://")).call(v,c+p)}else g=p;return g[g.length-1]==="/"?Gn()(g).call(g,0,-1):g}function Ur(e){for(var r=[],n=/{([^}]+)}/g,a;a=n.exec(e);)r.push(a[1]);return r}function wr(e){var r=e.spec,n=e.scheme,a=e.contextUrl,s=a===void 0?"":a,c=H.parse(s),p=Array.isArray(r.schemes)?r.schemes[0]:null,g=n||p||vt(c.protocol)||"http",v=r.host||c.host||"",y=r.basePath||"",b;if(g&&v){var I;b=Qe()(I="".concat(g,"://")).call(I,v+y)}else b=y;return b[b.length-1]==="/"?Gn()(b).call(b,0,-1):b}Gt.http=Cs,Gt.makeHttp=Sd.bind(null,Gt.http),Gt.resolve=oc,Gt.resolveSubtree=Yn,Gt.execute=Je,Gt.serializeRes=Af,Gt.serializeHeaders=Es,Gt.clearCache=br,Gt.makeApisTagOperation=fc,Gt.buildRequest=rt,Gt.helpers={opId:$s},Gt.getBaseUrl=pt;function Gt(e){var r=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(typeof e=="string"?n.url=e:n=e,!(this instanceof Gt))return new Gt(n);W()(this,n);var a=this.resolve().then(function(){return r.disableInterfaces||W()(r,Gt.makeApisTagOperation(r)),r});return a.client=this,a}Gt.prototype={http:Cs,execute:function(r){return this.applyDefaults(),Gt.execute($({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:typeof this.url=="string"?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null},r))},resolve:function(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Gt.resolve($({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1},n)).then(function(a){return r.originalSpec=r.spec,r.spec=a.spec,r.errors=a.errors,r})}},Gt.prototype.applyDefaults=function(){var r=this.spec,n=this.url;if(n&&K()(n).call(n,"http")){var a=H.parse(n);r.host||(r.host=a.host),r.schemes||(r.schemes=[a.protocol.replace(":","")]),r.basePath||(r.basePath="/")}};var yn=Gt.helpers;const Fr=Gt;var L=o(2784),Bt=o(72510),hr=o(53476),ct=o(23268),yr=o(18445),Ar=o(23708),Fa=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});const Ti=Object.values(Ar.FileUploadFormats),Jr=["application/octet-stream","application/pdf","application/gzip","application/zip"],Jn=["image/","audio/","video/"];function Nr(e){if(Jn.some(r=>e.startsWith(r)))return e}function ao(e){return Jr.includes(e)?!0:Jn.some(r=>e.startsWith(r))}function Pi(e){const r=e.type==="array"?e.items:e;if(!r||!r.type||(r==null?void 0:r.type)==="any")return!0;const n=r.contentMediaType||"",a=r.format||r.contentEncoding||(ao(n)?"binary":"");return r.type===Ar.DefinitionTypes.STRING&&Ti.includes(a)}function Ji(e,r){if(!e||!e.type||e.type==="any")return ao(r);const n=e.format||e.contentEncoding||"";return e.type===Ar.DefinitionTypes.STRING&&Ti.includes(n)}function Xi(e){return new Promise((r,n)=>{const a=new FileReader;a.onload=()=>{const c=a.result.replace(/data:.*\/.*;base64,/g,"");r(c)},a.onerror=()=>n(a.error),a.readAsDataURL(e)})}function Xr({format:e,contentEncoding:r,contentMediaType:n}){return[e,r,n].includes(Ar.FileUploadFormats.BASE64)}function oo(e,r){return Fa(this,null,function*(){const n=Object.values(e);let a=n.length===1?n[0]:n;return r.type===Ar.DefinitionTypes.STRING&&Xr(r)?a=yield Xi(n[0]):r.type===Ar.DefinitionTypes.ARRAY&&r.items&&(Xr(r.items)?a=yield Promise.all(n.map(c=>Fa(this,null,function*(){return yield Xi(c)}))):a=n),a})}var Zs=o(93892),Yt=o(80127),Jt=o(70669),kn=o(43284),Ng=o(16610);function Dg({response:e}){return L.createElement(L.Fragment,null,L.createElement(kn.EE,null," Body: "),Bg(e))}function Bg(e){return e.body?L.createElement(Bt.JsonViewer,{data:e.body,jsonSampleExpandLevel:1}):e.fileInfo?L.createElement(Ng.s,{fileInfo:e.fileInfo}):e.data!==null?e.data?L.createElement(Bt.SourceCode,{lang:(0,ct.M)(e.headers["Content-Type"]||"text/plain"),source:e.data,withCopyButton:!0}):L.createElement(kn.w3,null,L.createElement("i",null,"(no content)")):null}var mu=o(26141);function jg({headers:e}){const r=(0,hr.useRecoilValue)(mu.lk),[n,a]=(0,L.useState)(!0),{maxResponseHeadersToShowInTryIt:s}=r,c=Object.keys(e),p=!!s&&c.length>s,g=p&&n?[...c].splice(0,s):[...c],v=()=>{a(!n)};return L.createElement(L.Fragment,null,L.createElement(kn.EE,null," Headers: "),L.createElement(kn.w3,null,g.map(y=>L.createElement("div",{key:y},L.createElement(jp,null,y,":"),L.createElement("code",null,e[y]))),p&&L.createElement(Vp,{onClick:v},n?"Show more...":"Hide headers")))}const jp=Jt.ZP.strong`
94
+ text-transform: capitalize;
95
+ display: inline-block;
96
+ padding-right: 5px;
97
+ `,Vp=Jt.ZP.div`
98
+ cursor: pointer;
99
+ margin-top: 5px;
100
+ font-size: 14px;
101
+ `;jp.displayName="HeaderName",Vp.displayName="StyledShowMoreLabel";const Vg=Jt.ZP.div`
102
+ margin-bottom: 10px;
103
+ `,Gd=Jt.ZP.div`
104
+ display: inline-block;
105
+ margin-right: 20px;
106
+ padding: 2px 0;
107
+ text-align: center;
108
+ color: var(--text-color-inverse);
109
+ `,Ug=(0,Jt.ZP)(Gd)`
110
+ color: ${({code:e})=>e>=200&&e<300?"var(--response-success-text-color)":e>=300&&e<400?"var(--response-redirect-text-color)":e>400?"var(--response-error-text-color)":"var(--response-info-text-color)"};
111
+ `,Up=Jt.ZP.header`
112
+ font-weight: bold;
113
+ margin-bottom: 10px;
114
+ `,Wg=Jt.ZP.code`
115
+ border-left: 3px solid #ff4040;
116
+ padding-left: 5px;
117
+ `,Hg=({error:e,response:r,time:n})=>{const a=r||e&&e.response,s=a&&a.data&&a.data.length||0;let c;return s>1e6?c=(s/1e6).toFixed(2)+" MB":s>1e3?c=(s/1e3).toFixed(2)+" KB":c=s+" B",e&&!e.response||!a?L.createElement(L.Fragment,null,L.createElement(Up,null," Could not get any response "),L.createElement(Wg,null,e&&e.message||"Unknown error"),L.createElement("br",null),L.createElement(Up,null," Why this might have happened:"),L.createElement("div",null," - CORS is misconfigured on the server"),L.createElement("div",null," - The server couldn't send a response"),L.createElement("div",null," - No internet access"),L.createElement("div",null," - Documentation issue - contact API owner"),L.createElement("div",null," - Misconfigured security definition")):a?L.createElement(L.Fragment,null,L.createElement(Vg,null,L.createElement(Ug,{code:a.status},L.createElement("span",null," Status: "),a.status," ",a.statusText),L.createElement(Gd,null,L.createElement("span",null," Time: "),n,"ms"),L.createElement(Gd,null,L.createElement("span",null," Size: "),c)),L.createElement("div",null,L.createElement(jg,{headers:a.headers}),L.createElement(Dg,{response:a}))):L.createElement(L.Fragment,null,"Something went wrong")},zg=Jt.ZP.div`
118
+ display: flex;
119
+ font-size: 12px;
120
+ button {
121
+ margin: 0;
122
+ }
123
+ `,Wp=Jt.ZP.button`
124
+ outline: none;
125
+ border: none;
126
+ background-color: var(--panel-try-it-tabs-background-color);
127
+ text-align: center;
128
+ cursor: pointer;
129
+ color: var(--panel-try-it-tabs-text-color);
130
+ min-width: 80px;
131
+ min-height: 30px;
132
+ border-radius: var(--border-radius);
133
+ font-size: var(--panel-try-it-tabs-font-size);
134
+ font-family: var(--panel-try-it-tabs-font-family);
135
+ font-weight: var(--panel-try-it-tabs-font-weight);
136
+ padding: 0 10px;
137
+ border-bottom: 4px solid var(--panel-try-it-tabs-border-color);
138
+
139
+ &:first-child {
140
+ border-radius: var(--border-radius) 0 0 var(--border-radius);
141
+ }
142
+
143
+ &:last-child {
144
+ border-radius: 0 var(--border-radius) var(--border-radius) 0;
145
+ }
146
+
147
+ &:hover:not(:disabled) {
148
+ border-color: var(--panel-try-it-tabs-hover-border-color);
149
+ background-color: var(--panel-try-it-tabs-hover-background-color);
150
+ }
151
+
152
+ ${({active:e})=>e&&Jt.iv`
153
+ border-color: var(--panel-try-it-tabs-active-border-color);
154
+ background-color: var(--panel-try-it-tabs-active-background-color);
155
+ `||""}
156
+
157
+ ${({disabled:e})=>e&&Jt.iv`
158
+ cursor: default;
159
+ border-color: var(--panel-try-it-tabs-disables-border-color)
160
+ background-color: var(--panel-try-it-tabs-disabled-background-color);
161
+ color: var(--panel-try-it-tabs-disabled-text-color);
162
+ `||""}
163
+ `;function Gg({onChange:e,active:r,hasResponse:n}){return L.createElement(zg,null,L.createElement(Wp,{onClick:()=>e(0),active:r===0},n?"Edit Request":"Request"),L.createElement(Wp,{onClick:()=>n&&e(1),active:r===1,disabled:!n}," ","Response"," "))}var Hp=o(46521),zp=o(50397);function $g(e,r,n){const a=r.path||{},s=r.query||{},c=Object.keys(s);let p=(0,Yt.v5)(e,a);const g=v=>n.find(y=>y.name===v&&y.in==="query");return c.length&&(p+="?"+c.map(v=>{if(!s[v])return"";const y=g(v);return y?(0,ct.d$)(y,s[v]):`${v}=${encodeURIComponent(s[v])}`}).filter(Boolean).join("&")),p}const Kg=({loading:e,operation:r,hasResponse:n,execute:a,params:s={}})=>L.createElement(yr.k1,null,L.createElement(Hp.__,null,L.createElement(zp.FH,{type:r.httpVerb},r.httpVerb),L.createElement(Hp.y$,{wrap:"true"},$g(r.path,s,r.parameters))),L.createElement(Yg,{"data-cy":"send-button",color:"primary",blinking:e,onClick:()=>!e&&a()},e?"Sending...":n?"Resend":"Send")),Yg=(0,Jt.ZP)(Bt.Button)`
164
+ width: var(--panel-try-it-action-button-width);
165
+ `,Jg=(0,L.memo)(Kg);function $d(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function Gp(e,r){for(var n=0;n<r.length;n++){var a=r[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function Kd(e,r,n){return r&&Gp(e.prototype,r),n&&Gp(e,n),e}function Xg(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function Dr(){return Dr=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},Dr.apply(this,arguments)}function $p(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,a)}return n}function Lt(e){for(var r=1;r<arguments.length;r++){var n=arguments[r]!=null?arguments[r]:{};r%2?$p(Object(n),!0).forEach(function(a){Xg(e,a,n[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$p(Object(n)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(n,a))})}return e}function Qg(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),r&&Yd(e,r)}function hc(e){return hc=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},hc(e)}function Yd(e,r){return Yd=Object.setPrototypeOf||function(a,s){return a.__proto__=s,a},Yd(e,r)}function Zg(){if(typeof Reflect=="undefined"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function qg(e,r){if(e==null)return{};var n={},a=Object.keys(e),s,c;for(c=0;c<a.length;c++)s=a[c],!(r.indexOf(s)>=0)&&(n[s]=e[s]);return n}function Br(e,r){if(e==null)return{};var n=qg(e,r),a,s;if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(e);for(s=0;s<c.length;s++)a=c[s],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(n[a]=e[a]))}return n}function _g(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function em(e,r){return r&&(typeof r=="object"||typeof r=="function")?r:_g(e)}function tm(e){var r=Zg();return function(){var a=hc(e),s;if(r){var c=hc(this).constructor;s=Reflect.construct(a,arguments,c)}else s=a.apply(this,arguments);return em(this,s)}}function Rr(e,r){return nm(e)||am(e,r)||Jd(e,r)||sm()}function an(e){return rm(e)||im(e)||Jd(e)||om()}function rm(e){if(Array.isArray(e))return Xd(e)}function nm(e){if(Array.isArray(e))return e}function im(e){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(e))return Array.from(e)}function am(e,r){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(e)))){var n=[],a=!0,s=!1,c=void 0;try{for(var p=e[Symbol.iterator](),g;!(a=(g=p.next()).done)&&(n.push(g.value),!(r&&n.length===r));a=!0);}catch(v){s=!0,c=v}finally{try{!a&&p.return!=null&&p.return()}finally{if(s)throw c}}return n}}function Jd(e,r){if(!!e){if(typeof e=="string")return Xd(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Xd(e,r)}}function Xd(e,r){(r==null||r>e.length)&&(r=e.length);for(var n=0,a=new Array(r);n<r;n++)a[n]=e[n];return a}function om(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
166
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sm(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
167
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lm(e,r){var n;if(typeof Symbol=="undefined"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Jd(e))||r&&e&&typeof e.length=="number"){n&&(e=n);var a=0,s=function(){};return{s,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(v){throw v},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
168
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var c=!0,p=!1,g;return{s:function(){n=e[Symbol.iterator]()},n:function(){var v=n.next();return c=v.done,v},e:function(v){p=!0,g=v},f:function(){try{!c&&n.return!=null&&n.return()}finally{if(p)throw g}}}}function um(e,r){return r={exports:{}},e(r,r.exports),r.exports}var Qi=um(function(e){function r(b,I){for(var M=0,B=0;B<b.length;B++)M=(M<<5)-M+b.charCodeAt(B),M|=0;return I[Math.abs(M)%I.length]}function n(b,I){var M=I.namespace;if(I.useColors){var B=I.color,G="\x1B[3"+(B<8?B:"8;5;"+B),te=" ".concat(G,";1m").concat(M," \x1B[0m");b[0]=te+b[0].split(`
169
+ `).join(`
170
+ `+te)}else b[0]=M+" "+b[0]}function a(b,I){if(b[0]=(I.useColors?"%c":"")+I.namespace,!!I.useColors){var M="color: "+I.color,B=0,G=0;b[0].replace(/%[a-zA-Z%]/g,function(te){te!=="%%"&&(B++,te==="%c"&&(G=B))}),b.splice(G,0,M)}}var s=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function c(){var b;try{b=localStorage.getItem("debug")}catch(I){}return!b&&typeof process!="undefined"&&"env"in process&&(b={}.DEBUG),{namespaces:b||"",colors:s,useColors:!0,formatArgs:a}}function p(){return{namespaces:{}.DEBUG||"",colors:[6,2,3,4,5,1],useColors:!0,formatArgs:n}}function g(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null,I=arguments.length>1?arguments[1]:void 0;return function(){for(var M=arguments.length,B=new Array(M),G=0;G<M;G++)B[G]=arguments[G];b&&B.unshift(b);var te=I.namespaces.split(",").map(function(pe){return pe[pe.length-1]==="*"?new RegExp("^"+pe.slice(0,pe.length-1)+".*$"):new RegExp("^"+pe+"$")}),q=te.some(function(pe){return pe.test(b)}),le={color:r(b,I.colors),namespace:b,useColors:I.useColors};if(!1)var ae}}function v(b){return g(b,p())}function y(b){return g(b,c())}typeof process=="undefined"||process.type==="renderer"||process.browser===!0||process.__nwjs?e.exports=y:e.exports=v}),Jo=Qi("informed:ObjMap "),vc=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return String.prototype.replace.call(r,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean)},gc=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0,s=String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(c,p){return c!=null?c[p]:c},r);return s===void 0||s===r?a:s},Kp=function(r){return".".concat(r).replace(/(.*)[.[].*/,"$1").replace(/\./,"")},fm=function(r){return r.replace(Kp(r),"").replace(/\./,"")},cm=function(r,n){var a=Kp(n),s=fm(n),c=a?gc(r,a):r;return!!(c&&Object.hasOwnProperty.call(c,s.replace(/\[(.*)\]/,"$1")))},Yp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=arguments.length>2?arguments[2]:void 0;String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,g){return p===g.length-1?(s[c]=a,s[c]):s[c]===void 0?(Number.isInteger(+g[p+1])?s[c]=[]:s[c]={},s[c]):(Number.isInteger(+g[p+1])&&!Array.isArray(s[c])&&(s[c]=[]),s[c])},r)},Jp=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a=!1;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,g){return s===void 0?s:(p===g.length-1&&(delete s[c],a=!0),s[c])},r),a},dm=function(r){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"",a;return String.prototype.replace.call(n,/\['(.+?)'\]/g,".$1").split(/[,[\].]+?/).filter(Boolean).reduce(function(s,c,p,g){return s===void 0?s:(p===g.length-1&&Array.isArray(s)&&(a=s.splice(c,1)),s[c])},r),a},pm=function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=Object.keys(r);return n.map(function(a){return r[a]})},Qd=function(r){var n=vc(r);return Number.isInteger(+n[n.length-1])},Et=function(){function e(){$d(this,e)}return Kd(e,null,[{key:"empty",value:function(n){return pm(n).length===0}},{key:"get",value:function(n,a){var s=gc(n,a);return s}},{key:"has",value:function(n,a){return cm(n,a)}},{key:"set",value:function(n,a,s){if(s!==void 0)Jo("SETTING",a,s),Yp(n,a,s);else if(Qd(a)&&e.get(n,a)!==void 0){Jo("Special case SETTING",a,"to undefined"),Yp(n,a,void 0);var c=vc(a);c=c.slice(0,c.length-1),mc(n,c)}else!Qd(a)&&e.get(n,a)!==void 0&&(Jo("Special case REMOVING",a,"from object completley"),e.delete(n,a))}},{key:"delete",value:function(n,a){Jo("DELETE",a),Qd(a)?(Jo("ARRAY",a),this.pullOut(n,a)):Jp(n,a);var s=vc(a);s=s.slice(0,s.length-1),mc(n,s)}},{key:"pullOut",value:function(n,a){var s=vc(a),c=s[s.length-1];s=s.slice(0,s.length-1),Jo("Pulling out:",s,"index",c);var p=gc(n,s);Jo("Array",p),Array.isArray(p)&&dm(p,c),mc(n,s)}}]),e}();function mc(e,r){if(r.length!==0){var n=gc(e,r);(Array.isArray(n)?n.every(function(a){return a==null}):JSON.stringify(n)==="{}")&&Jp(e,r),mc(e,r.slice(0,r.length-1))}}var Xn=L.createContext({register:function(){},deregister:function(){},setValue:function(){},setTouched:function(){},setError:function(){},update:function(){},getField:function(){},expectRemoval:function(){},getInitialValue:function(){},getSavedValue:function(){}}),yu=L.createContext({}),bu=L.createContext({getFullField:function(){},getValues:function(){},getOptions:function(){return{}},setInitialValue:function(){},getInitialValue:function(){},getDerrivedValue:function(){},getSavedValue:function(){},removeSavedState:function(){}}),Xp=L.createContext(),Qp=L.createContext(),Zp=L.createContext(),Zd=L.createContext(),qp=L.createContext(),_p=L.createContext(),eh=L.createContext(),th=L.createContext();function Ii(){var e=(0,L.useContext)(bu);return e}function Ra(e){var r=(0,L.useRef)(),n=(0,L.useRef)(!0),a=(0,L.useState)(e),s=Rr(a,2),c=s[0],p=s[1];r.current=c;var g=function(b){r.current=b,n.current&&p(b)},v=function(){return r.current};return(0,L.useEffect)(function(){return function(){n.current=!1}},[]),[c,g,v]}var rh=function(r){return r.type&&r.type.name?r.type.name:r.displayName||r.name||"Component"},nh=function(r){var n={};if(r.inner){if(r.inner.length===0){Et.set(n,r.path,r.message);return}var a=lm(r.inner),s;try{for(a.s();!(s=a.n()).done;){var c=s.value;Et.get(n,c.path)||Et.set(n,c.path,c.message)}}catch(p){a.e(p)}finally{a.f()}}return n},ih=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(s){var a=nh(s);return a}},ah=function(r){if(r.inner){if(r.inner.length===0)return;var n=r.inner[0];return n.message}},oh=function(r,n){try{r.validateSync(n,{abortEarly:!1})}catch(a){return ah(a)}},sh=function(r,n){r(n);var a={};return r.errors&&r.errors.forEach(function(s){var c=s.message,p=s.dataPath,g=s.keyword,v=s.params,y=p;g==="required"&&(y="".concat(y,".").concat(v.missingProperty)),y=y.replace(".",""),Et.set(a,y,c)}),a},Xo=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(r){var n=Math.random()*16|0,a=r=="x"?n:n&3|8;return a.toString(16)})},hm=function(r,n){var a;return function(){for(var c=arguments.length,p=new Array(c),g=0;g<c;g++)p[g]=arguments[g];var v=function(){clearTimeout(a),r.apply(void 0,p)};clearTimeout(a),a=setTimeout(v,n)}},qd=function(r,n,a){var s=n["ui:control"],c=n["informed:props"],p=n["input:props"],g=n["ui:before"],v=n["ui:after"],y=n.oneOf,b=n.items,I=n.enum,M=n.title,B=n.minimum,G=n.maximum,te=n.minLength,q=n.maxLength,le=n.pattern,ae=n.type,pe=n.properties,ve=Xo();p&&p.id&&(ve=p.id);var me={componentType:s,field:a?"".concat(a,".").concat(r):r,type:ae,uiBefore:g,uiAfter:v,properties:ae==="object"?pe:void 0,items:ae==="array"?b:void 0,props:Lt(Lt({label:M,id:ve,min:B,max:G,minLength:te,maxLength:q,pattern:le},c),p)};if(y){var Te=n.oneOf.map(function(Ee){var ke=Ee["input:props"],Re=ke===void 0?{}:ke;return Lt({value:Ee.const,label:Ee.title},Re)});me.props.options=Te}if(I){var Ae=n.enum.map(function(Ee){return{value:Ee,label:Ee}});me.props.options=Ae}if(b&&b.oneOf){var xe=b.oneOf.map(function(Ee){var ke=Ee["input:props"],Re=ke===void 0?{}:ke;return Lt({value:Ee.const,label:Ee.title},Re)});me.props.options=xe}return me},lh=function(r,n,a){if(!r||n)return[];var s=r.properties,c=s===void 0?{}:s,p=r.allOf,g=r.propertyOrder,v=g===void 0?[]:g;if(Object.keys(c).length>0){var y=Object.keys(c).sort(function(b,I){var M=v.indexOf(b),B=v.indexOf(I);return(M>-1?M:v.length+1)-(B>-1?B:v.length+1)}).map(function(b){var I=c[b],M=qd(b,I,a);return M});return p&&y.push({componentType:"conditionals",allOf:p}),y}return[]},uh=function(r){var n=r.replace(/\./g,".properties.").replace(/\[/g,".itmes[");return n="properties.".concat(n),n},vm=function(r,n){if(typeof r=="string")return r.split("").map(function(a){return a==="#"?/\d/:a==="*"?/[\w]/:a});if(typeof r=="function")return r(n);if(Array.isArray(r))return r;throw new Error("Formatter must be string, array, or function")},gm=function(r,n){for(var a=0,s=-1,c=!0;c&&a<r.length;)r[a]==n[a]?s=a:c=!1,a=a+1;return s},yc=function(r,n){if(!r)return{val:r,offset:0};var a="".concat(r),s=vm(n,a),c=s.findIndex(function(q){return typeof q!="string"}),p=s.length-an(s).reverse().findIndex(function(q){return typeof q!="string"}),g=[],v=a.split(""),y=0,b=0,I=gm(s.slice(0,c),v.slice(0,c));I>-1&&(y=I+1,g=g.concat(s.slice(0,I+1)),b=I+1),I<0&&(g=g.concat(s.slice(0,c)),b=c);for(var M=b;M<s.length;M++){var B=s[M];if(y!=v.length){var G=v[y];if(typeof B=="function")g.push(B(G)),y=y+1;else{var te=typeof B=="string"?B===G:B.test(G);te&&typeof B=="string"?(g.push(B),y=y+1):!te&&typeof B=="string"?y!=v.length&&g.push(B):te&&typeof B!="string"?(g.push(G),y=y+1):!te&&typeof B!="string"&&(y=y+1,M=M-1)}}else if(typeof B=="string"&&M>=p)g.push(B);else break}return{value:g.join(""),offset:a?g.length-a.length:0}},mm=function(r,n){var a,s,c=new Intl.NumberFormat(r,n),p=new Intl.NumberFormat(r),g=(a=(s=p.formatToParts(.1).find(function(q){var le=q.type;return le==="decimal"}))===null||s===void 0?void 0:s.value)!==null&&a!==void 0?a:".";function v(q,le){return q instanceof RegExp&&le instanceof RegExp&&q.source===le.source&&q.global===le.global&&q.ignoreCase===le.ignoreCase&&q.multiline===le.multiline}function y(q,le){for(var ae=q.length;ae--;)if(le(q[ae]))return ae;return-1}function b(q,le,ae){var pe=an(q);return Array.isArray(ae)?pe.splice.apply(pe,[le,0].concat(an(ae))):pe.splice(le,0,ae),pe}function I(q){return"".concat(q).replace(/\D/g,"")}function M(q){return"".concat(q).split(g).map(function(le){return I(le)}).join(".")}function B(q){if(typeof q=="number")return q;var le=parseFloat(M(q));return Number.isNaN(le)?void 0:le}function G(q){var le=M(q),ae="".concat(le).split(".")[1],pe=c.formatToParts(Number(le));ae==="0"&&pe.push({type:"decimal",value:g},{type:"fraction",value:ae});var ve=pe.reduce(function(Ae,xe){var Ee=xe.type,ke=xe.value;return["decimal","fraction"].includes(Ee)&&ae==null?Ae:["integer","fraction"].includes(Ee)?[].concat(an(Ae),an(ke.split("").filter(function(Re,je){return Ee==="fraction"?je<ae.length:!0}).map(function(){return/\d/}))):Ee==="currency"?[].concat(an(Ae),an(ke.split(""))):[].concat(an(Ae),[ke])},[]),me=y(ve,function(Ae){return v(Ae,/\d/)});ve.indexOf(g)===-1&&"".concat(q).indexOf(g)!==-1&&(ve=b(ve,me+1,[g,"[]"]),me+=2);var Te=ve.slice(me+1).join("");return ve=[].concat(an(ve.slice(0,me+1)),[Te]),ve}var te=function(le){if(le!=null)return B(le)};return{formatter:G,parser:te}},o1=Object.freeze({__proto__:null,getChildDisplayName:rh,yupToFormErrors:nh,validateYupSchema:ih,yupToFormError:ah,validateYupField:oh,validateAjvSchema:sh,uuidv4:Xo,debounce:hm,computeFieldFromProperty:qd,computeFieldsFromSchema:lh,getSchemaPathFromJsonPath:uh,informedFormat:yc,createIntlNumberFormatter:mm}),ki=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined"?L.useLayoutEffect:L.useEffect,ym=function(r){var n=r.value,a=r.inputRef,s=r.maintainCursor,c=s===void 0?!0:s,p=Ra(0),g=Rr(p,3),v=g[0],y=g[1],b=g[2],I=Ra(0),M=Rr(I,3),B=M[0],G=M[1],te=M[2];return ki(function(){if(a.current!=null&&b()){var q=b()+te();te()!=0&&c?a.current.setSelectionRange(q+1,q+1):c&&a.current.setSelectionRange(q,q)}},[n]),{setCursorOffset:G,setCursor:y,cursor:v,getCursor:b,cursorOffset:B}},bm=function(r,n){var a=(0,L.useRef)(!0),s=a.current;(0,L.useEffect)(function(){if(s)a.current=!1;else return r()},n)},Fn=Qi("informed:useField "),fh=function(r,n,a,s,c){if(r!=null){if(c)return c(r);if(n)return n(r);if(a&&!s){var p=yc(r,a);return p.value}return r}},xm=function(r,n,a,s){if(n&&a)return n(r);if(s){var c=yc(r,s);return c.value}return r},Sm=function(r,n,a){var s=a.required;if(r||n)return function(c,p){if(n)return oh(n,c);if(r)return r(c,p)};if(s)return function(c){return Om(c,s)}},wm=function(r){var n=r.fieldType,a=r.setValue,s=r.onChange,c=r.multiple,p=r.ref,g=function(y){return a(y)};return(n==="text"||n==="textArea"||n==="number")&&(g=function(y){return a(y.target.value,y)}),n==="select"&&(g=function(){var y=Array.from(p.current).filter(function(b){return b.selected}).map(function(b){return b.value});a(c?y:y[0]||"")}),n==="checkbox"&&(g=function(y){a(y.target.checked),s&&s(y)}),function(v){g(v)}},Am=function(r){var n=r.setTouched,a=r.onBlur;return function(s){n(!0),a&&a(s)}},Cm=function(r){var n=r.fieldType,a=r.maskedValue,s=r.multiple,c=r.value;switch(n){case"text":case"number":return!a&&a!==0?"":a;case"textArea":return a||"";case"select":return c||(s?[]:"");case"checkbox":return!!c;default:return c}},Em=function(r){switch(r){case"text":return r;case"number":return r;case"checkbox":return r;default:return}},Om=function(r,n){if(n&&(r==null||r===""))return typeof n=="string"?n:"This field is required"};function xu(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,n=e.field,a=e.validate,s=e.asyncValidate,c=e.validationSchema,p=e.mask,g=e.maskWithCursorOffset,v=e.format,y=e.parse,b=e.formatter,I=e.parser,M=e.initialValue,B=e.validateOnChange,G=e.validateOnBlur,te=e.validateOnMount,q=e.asyncValidateOnBlur,le=e.maskOnBlur,ae=e.allowEmptyString,pe=e.onValueChange,ve=e.notify,me=e.keepState,Te=e.maintainCursor,Ae=e.debug,xe=e.shadow,Ee=e.step,ke=e.fieldType,Re=e.multiple,je=e.onChange,Ge=e.onBlur,bt=e.formController,qe=e.relevant,Zt=e.required,sr=e.keepStateIfRelevant,gr=e.initialize,Pr=e.formatterDependencies,fr=Pr===void 0?[]:Pr,Ut=Br(e,["field","validate","asyncValidate","validationSchema","mask","maskWithCursorOffset","format","parse","formatter","parser","initialValue","validateOnChange","validateOnBlur","validateOnMount","asyncValidateOnBlur","maskOnBlur","allowEmptyString","onValueChange","notify","keepState","maintainCursor","debug","shadow","step","fieldType","multiple","onChange","onBlur","formController","relevant","required","keepStateIfRelevant","initialize","formatterDependencies"]),cr=(0,L.useState)(Xo()),Nt=Rr(cr,1),it=Nt[0],wt=(0,L.useContext)(Xn),zt=(0,L.useContext)(th),nr=zt||sr,Ht=Ii(),xn=(0,L.useRef)(),_i=(0,L.useRef)(!0),qn=(0,L.useRef)(),on=(0,L.useRef)(!1),po=function(){return!on.current},es=function(){return on.current};bt&&(wt=bt.updater,Ht=bt.getFormApi());var Nn=Sm(a,c,{required:Zt}),Da=(0,L.useState)(function(){return wt.getInitialValue(n)}),Gc=Rr(Da,1),Mi=Gc[0],ll=wt.getSavedValue(n),ea,Ba;(me||nr)&&ll?(Fn("Setting field ".concat(Bp,"'s kept state"),ll),ea=ll.value,Ba=ll.touched,Ht.removeSavedState(Bp)):M!=null?ea=M:ea=Mi;var Ep=Ra(fh(ea,p,b,I,gr)),ta=Rr(Ep,3),sn=ta[0],ul=ta[1],Du=ta[2],Op=Ra(te?Nn(sn):void 0),Bu=Rr(Op,3),ci=Bu[0],ja=Bu[1],fl=Bu[2],ju=Ra(Ba),ts=Rr(ju,3),qt=ts[0],di=ts[1],Pg=ts[2],zx=(0,L.useState)(function(){return xm(sn,v,y,b)}),Ig=Rr(zx,2),Tp=Ig[0],Pp=Ig[1],kg=(0,L.useRef)();kg.current=Tp;var Fg=(0,L.useRef)(M),rs=(0,L.useRef)(n),Rg=(0,L.useRef)();Fg.current=M,rs.current=n;var Gx=(0,L.useRef)(null),ra=L.useMemo(function(){return r||Gx},[]),Ip=ym({value:sn,inputRef:ra,maintainCursor:!!Te}),kp=Ip.getCursor,$x=Ip.setCursor,Fp=Ip.setCursorOffset,Kx=function(){return!0},Rp=function(dr){var ln=qe||Kx,Dn=Ht.getFullField(rs.current)||rs.current,Xt={path:Dn,parentPath:Dn.replace(/(.*)[.[].*/,"$1"),get:function(Bn,Wu){return Et.get(Bn,Wu)}};return zt&&zt.relevant?ln(dr,Xt)&&zt.relevant(dr,Xt):ln(dr,Xt)},Yx=Ra(Rp(Ht.getValues())),Mp=Rr(Yx,3),$c=Mp[0],Jx=Mp[1],Mg=Mp[2],Xx=function(dr){return zt&&zt.relevant?zt.relevant(dr):!0},Qx=function(){var dr=Rp(Ht.getValues()),ln=Mg();return dr!=ln&&Jx(dr),dr};(0,L.useEffect)(function(){!$c&&!me&&xn.current.reset()},[$c]);var pi=function(){return xe?Ht.getDerrivedValue(n):Du()},Vu=function(dr){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=ln.preventUpdate;Ee&&Ht.getStep()<Ee?(Fn("Setting ".concat(n,"'s error to undefined as we are not at that step")),ja(void 0),wt.setError(it,void 0,!Dn)):(Fn("Setting ".concat(n,"'s error to ").concat(dr)),ja(dr),wt.setError(it,dr,!Dn))},Lp=function(dr,ln){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=dr;on.current=!0,Fn("Setting ".concat(n," to ").concat(Xt)),gr&&(Xt=gr(Xt));var ns=Ht.getOptions(),Bn=Xt;if(Xt===""&&!ae&&!Dn.allowEmptyString&&!ns.allowEmptyStrings&&(Xt=void 0),(e.type==="number"||ke==="number")&&Xt!==void 0&&(Xt=+Xt),ln&&ln.target&&ln.target.selectionStart&&$x(ln.target.selectionStart),p&&!le&&(Bn=p(Xt,kp()),Xt=p(Xt,kp())),g&&!le){var Wu=g(Xt,kp());Bn=Wu.value,Xt=Wu.value,Fp(Wu.offset)}if(v&&y&&(Xt=y(Xt),Bn=v(Xt)),b){var Lg=yc(Xt,b);Fp(Lg.offset),Bn=Lg.value,Xt=Bn}I&&(Xt=Xt!=null?I(Xt):Xt),Nn&&B&&!Dn.initial&&(Fn("Validating after change ".concat(n," ").concat(Xt)),Vu(Nn(Xt,Ht.getValues()))),ul(Xt),Pp(Bn),pe&&pe(Xt),wt.setValue(it,Xt,!Dn.preventUpdate)};bm(function(){xn.current.setValue(kg.current)},an(fr));var Np=function(dr,ln){var Dn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xt=Dn.preventUpdate;if(Fn("Field ".concat(n," has been touched")),Nn&&G&&!ln&&dr&&(Fn("Validating after blur ".concat(n," ").concat(pi())),Vu(Nn(pi(),Ht.getValues()))),s&&q&&!ln&&dr&&(Fn("Validating async after blur ".concat(n," ").concat(pi())),s(pi(),Ht.getValues())),p&&le){var ns=p(pi());ul(ns),Pp(ns),pe&&pe(ns),wt.setValue(it,ns,!Xt)}if(g&&le){var Bn=g(pi());Fp(Bn.offset),ul(Bn.value),Pp(Bn.value),pe&&pe(Bn.value),wt.setValue(it,Bn.value,!Xt)}di(dr),wt.setTouched(it,dr,!Xt)},Zx=function(){var dr=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},ln=dr.preventUpdate,Dn=fh(Fg.current||wt.getInitialValue(rs.current),p,b,I,gr);Lp(Dn,null,{initial:!0,preventUpdate:ln}),Vu(te?Nn(Dn):void 0,{preventUpdate:ln}),Np(void 0,!0,{preventUpdate:ln}),on.current=!1},qx=function(dr){Nn&&(Fn("Field validating ".concat(n," ").concat(pi())),Vu(Nn(pi(),dr||Ht.getValues())))},_x=function(dr){s&&(Fn("Field async validating ".concat(n," ").concat(pi())),s(pi(),dr||Ht.getValues()))},Dp={setValue:Lp,setTouched:Np,setError:Vu,reset:Zx,validate:qx,asyncValidate:_x,getValue:pi,getTouched:Pg,getError:fl,getIsRelevant:Mg,getDirty:es,getPristine:po,getFieldState:function(){return{value:pi(),touched:Pg(),dirty:es(),pristine:po()}},relevant:Rp,multistepRelevant:Xx,checkRelevant:Qx};xn.current=Dp;var Uu={value:sn,error:ci,touched:qt,maskedValue:Tp,isRelevant:$c,dirty:on.current,pristine:!on.current};xe&&(Uu={error:ci,touched:qt}),Fn("Render",Ht.getFullField(n),Uu),ki(function(){var Zr=Ht.getFullField(rs.current);return Fn("Register",it,rs.current),qn.current={field:Zr,fieldId:it,fieldApi:Dp,fieldState:Uu,notify:ve,keepState:me,inMultistep:nr,shadow:xe},wt.register(it,qn.current),function(){var dr=Ht.getFullField(rs.current);Fn("Deregister",it,dr),wt.deregister(it)}},[]),(0,L.useEffect)(function(){var Zr=Ht.getFullField(n);return _i.current?_i.current=!1:(Fn("Update",n,nr),qn.current.field=Zr,wt.update(it,qn.current,Rg.current)),function(){Rg.current=Zr}},[n]),ki(function(){Ae&&ra&&(ra.current.style.border="5px solid orange",setTimeout(function(){ra.current.style.borderWidth="2px",ra.current.style.borderStyle="inset",ra.current.style.borderColor="initial",ra.current.style.borderImage="initial"},500))});var e1=[].concat(an(Object.values(Uu)),an(Object.values(e)),an(Object.values(Ut))),t1=function(dr){return(0,L.useMemo)(function(){return $c?dr:null},an(e1))},Bp=n,r1=wm({fieldType:ke,setValue:Lp,onChange:je,multiple:Re,ref:ra}),n1=Am({setTouched:Np,onBlur:Ge}),i1=Cm({fieldType:ke,maskedValue:Tp,multiple:Re,value:sn}),a1=Em(ke);return{fieldState:Uu,fieldApi:Dp,render:t1,ref:ra,userProps:Lt(Lt({},Ut),{},{multiple:Re,onChange:je,onBlur:Ge,id:Ut.id||it}),informed:Lt({name:Bp,multiple:Re,onChange:r1,onBlur:n1,value:i1,ref:ra,type:a1,id:Ut.id||it},Ut)}}var Ma=function(r){var n=L.forwardRef(function(a,s){var c=xu(a,s),p=c.fieldState,g=c.fieldApi,v=c.render,y=c.ref,b=c.userProps;return v(L.createElement(r,Dr({fieldApi:g,fieldState:p,field:a.field,forwardedRef:y,debug:a.debug,type:a.type},b)))});return n.displayName="asField(".concat(rh(r),")"),n},Tm=Qi("informed:Text "),Pm=function(r){var n=r.fieldApi,a=r.fieldState,s=Br(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,g=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,M=s.forwardedRef,B=s.debug,G=s.label,te=s.title,q=s.id,le=Br(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","title","id"]);return Tm("Render",b),ki(function(){B&&M&&(M.current.style.background="red",setTimeout(function(){M.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:q}," ",G," "):null,L.createElement("input",Dr({},le,{id:q,name:b,ref:M,value:!c&&c!==0?"":c,onChange:function(pe){p(pe.target.value,pe),v&&v(pe)},onBlur:function(pe){g(!0),y&&y(pe)}})))},Im=Ma(Pm),km=function(r){var n=r.fieldApi,a=r.fieldState,s=Br(r,["fieldApi","fieldState"]),c=a.maskedValue,p=n.setValue,g=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,M=s.forwardedRef,B=s.debug,G=s.label,te=s.id,q=Br(s,["onChange","onBlur","field","initialValue","forwardedRef","debug","label","id"]);return ki(function(){B&&M&&(M.current.style.background="red",setTimeout(function(){M.current.style.background="white"},500))}),L.createElement(L.Fragment,null,G?L.createElement("label",{htmlFor:te}," ",G," "):null,L.createElement("textarea",Dr({},q,{id:te,name:b,ref:M,value:c||"",onChange:function(ae){p(ae.target.value,ae),v&&v(ae)},onBlur:function(ae){g(!0),y&&y(ae)}})))},Fm=Ma(km),Rm=Qi("informed:Select "),Mm=function(r){var n=r.fieldApi,a=r.fieldState,s=Br(r,["fieldApi","fieldState"]),c=a.value,p=n.setTouched,g=s.onChange,v=s.onBlur,y=s.field,b=s.initialValue,I=s.options,M=s.children,B=s.forwardedRef,G=s.debug,te=s.multiple,q=s.label,le=s.id,ae=Br(s,["onChange","onBlur","field","initialValue","options","children","forwardedRef","debug","multiple","label","id"]),pe=(0,L.useRef)(),ve=function(Te){var Ae=Array.from((B||pe).current).filter(function(xe){return xe.selected}).map(function(xe){return xe.value});n.setValue(te?Ae:Ae[0]||""),g&&Te&&g(Te)};return ki(function(){G&&B&&(B.current.style.background="red",setTimeout(function(){B.current.style.background="white"},500))}),Rm("Render",y,c),L.createElement(L.Fragment,null,q?L.createElement("label",{htmlFor:le}," ",q," "):null,L.createElement("select",Dr({},ae,{id:le,multiple:te,name:y,ref:B||pe,value:c||(te?[]:""),onChange:ve,onBlur:function(Te){p(!0),v&&v(Te)}}),I?I.map(function(me){return L.createElement("option",{key:me.value,value:me.value,disabled:me.disabled},me.label)}):M))},Lm=Ma(Mm),Nm=function(r){var n=r.fieldApi,a=r.fieldState,s=Br(r,["fieldApi","fieldState"]),c=a.value,p=n.setValue,g=n.setTouched,v=s.onChange,y=s.onBlur,b=s.field,I=s.initialValue,M=s.debug,B=s.forwardedRef,G=s.id,te=s.label,q=Br(s,["onChange","onBlur","field","initialValue","debug","forwardedRef","id","label"]);return L.createElement(L.Fragment,null,te?L.createElement("label",{htmlFor:G}," ",te," "):null,L.createElement("input",Dr({},q,{id:G,name:b,ref:B,checked:!!c,onChange:function(ae){p(ae.target.checked),v&&v(ae)},onBlur:function(ae){g(!0),y&&y(ae)},type:"checkbox"})))},Dm=Ma(Nm),Bm=function(r){return L.forwardRef(function(n,a){return L.createElement(Xp.Consumer,null,function(s){var c=s.radioGroupApi,p=s.radioGroupState;return L.createElement(r,Dr({radioGroupApi:c,radioGroupState:p,ref:a},n))})})},jm=function(r){var n=r.radioGroupApi,a=r.radioGroupState,s=Br(r,["radioGroupApi","radioGroupState"]),c=a.value,p=n.setValue,g=n.setTouched,v=n.onChange,y=n.onBlur,b=s.value,I=s.onChange,M=s.onBlur,B=s.field,G=s.initialValue,te=s.forwardedRef,q=Br(s,["value","onChange","onBlur","field","initialValue","forwardedRef"]);return L.createElement("input",Dr({},q,{name:B,ref:te,value:b,checked:c===b,onChange:function(ae){!ae.target.checked||(p(b),I&&I(ae),v&&v(ae))},onBlur:function(ae){g(!0),M&&M(ae),y&&y(ae)},type:"radio"}))},Vm=Bm(jm),Um=function(e){Qg(n,e);var r=tm(n);function n(){return $d(this,n),r.apply(this,arguments)}return Kd(n,[{key:"render",value:function(){var s=this.props,c=s.options,p=s.children;return L.createElement(Xp.Provider,{value:this.groupContext},c?c.map(function(g){return L.createElement("label",{key:g.value},g.label," ",L.createElement(Vm,{value:g.value}))}):p)}},{key:"groupContext",get:function(){return{radioGroupApi:Lt(Lt({},this.props.fieldApi),{},{onChange:this.props.onChange,onBlur:this.props.onBlur}),radioGroupState:this.props.fieldState}}}]),n}(L.Component),Wm=Ma(Um);function Hm(){return(0,L.useContext)(Zp)}var zm=function(){var r=Hm(),n=r.add;return L.createElement("button",{onClick:function(){n()},type:"button"},"Add")};function Gm(){return(0,L.useContext)(Zd)}var $m=function(){var r=Gm(),n=r.remove;return L.createElement("button",{onClick:function(){n()},type:"button"},"Remove")},bc=Qi("informed:useArrayField "),Km=function(r){var n=r.field,a=r.initialValue,s=r.validate,c=r.arrayFieldApiRef,p=Br(r,["field","initialValue","validate","arrayFieldApiRef"]),g=Ii(),v=(0,L.useState)(new Map),y=Rr(v,1),b=y[0],I=(0,L.useContext)(Xn),M=g.getFullField(n),B=I.getInitialValue(n)||a||[],G=g.getSavedValue(M)&&g.getSavedValue(M).value,te=Ra(G||B),q=Rr(te,3),le=q[0],ae=q[1],pe=q[2],ve=le?le.map(function(){return Xo()}):[],me=Ra(ve),Te=Rr(me,3),Ae=Te[0],xe=Te[1],Ee=Te[2],ke=(0,L.useMemo)(function(){return function(Nt,it){var wt=Ee()==null?0:Ee().length;return s?s(Nt,wt,it):void 0}}),Re=xu(Lt({field:n,validate:s?ke:void 0,shadow:!0},p)),je=Re.fieldApi;ki(function(){var Nt=function(wt){wt!==M&&(bc("".concat(M," changed")),RegExp("".concat(M,"\\[[0-9]+\\]")).test(wt)&&je.validate())};return g.emitter.on("value",Nt),function(){g.emitter.removeListener("value",Nt)}},[n]);var Ge=function(it){bc("EXPECTING REMOVAL OF","".concat(n,"[").concat(it,"] and ").concat(n,"[").concat(Ae.length-1,"]")),I.expectRemoval("".concat(n,"[").concat(it,"]")),I.expectRemoval("".concat(n,"[").concat(Ae.length-1,"]"));var wt=Ae.slice(0,it).concat(Ae.slice(it+1,Ae.length));xe(wt);var zt=pe(),nr=zt.slice(0,it).concat(zt.slice(it+1,zt.length));ae(nr)},bt=function(it,wt){bc("Swapping","".concat(n,"[").concat(it,"] and ").concat(n,"[").concat(wt,"]"));var zt=an(Ae);Ae[it]&&Ae[wt]?(zt[it]=Ae[wt],zt[wt]=Ae[it]):console.warn("Attempted to swap ".concat(it," with ").concat(wt," but one of them does not exist :(")),xe(zt)},qe=function(){Ae.push(Xo()),xe(an(Ae))},Zt=function(it){Ae.push(Xo()),xe(an(Ae));var wt=an(pe());wt[Ae.length-1]=it,ae(wt)},sr=function(){var it=I.getInitialValue(n)||a||[];ae(it);var wt=it?it.map(function(){return Xo()}):[];xe(wt)},gr=Ae.map(function(Nt,it){var wt={remove:function(){return Ge(it)}},zt={initialValue:le&&le[it],key:Nt,field:"".concat(n,"[").concat(it,"]"),index:it};return Lt(Lt({arrayFieldItemApi:wt,arrayFieldItemState:zt},wt),zt)}),Pr={add:qe,swap:bt,addWithInitialValue:Zt,reset:sr};c&&(c.current=Pr);var fr={fields:gr,field:n},Ut=Lt(Lt({},I),{},{register:function(it,wt){b.set(it,wt);for(var zt=arguments.length,nr=new Array(zt>2?zt-2:0),Ht=2;Ht<zt;Ht++)nr[Ht-2]=arguments[Ht];I.register.apply(I,[it,wt].concat(nr))},deregister:function(it){b.delete(it);for(var wt=arguments.length,zt=new Array(wt>1?wt-1:0),nr=1;nr<wt;nr++)zt[nr-1]=arguments[nr];I.deregister.apply(I,[it].concat(zt))},getInitialValue:function(it){if(RegExp("".concat(M,"\\[[0-9]+\\]")).test(it)){var wt=it.replace(n,""),zt=Et.get(pe(),wt);return bc("Resetting ".concat(wt," to ").concat(zt)),zt}return I.getInitialValue(it)}}),cr=function(it){return L.createElement(Xn.Provider,{value:Ut},L.createElement(Zp.Provider,{value:Pr},L.createElement(Qp.Provider,{value:fr},it)))};return{render:cr,add:qe,swap:bt,addWithInitialValue:Zt,fields:gr,arrayFieldState:fr,arrayFieldApi:Pr,field:n}},Ym=function(r,n){return Lt(Lt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getSavedValue:function(s){return n.getSavedValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})};function Jm(e){var r=Ii(),n=(0,L.useMemo)(function(){return Ym(e,r)},[e]);return n}function xc(){var e=(0,L.useContext)(yu);return e}var ch=function(r){var n=r.when,a=r.children,s=xc(),c=n(s);return c?a:null},_d=function(r){var n=r.relevant,a=r.field,s=Br(r,["relevant","field"]),c=Ii();if(n){var p=c.getFullField(a),g={path:p,parentPath:p.replace(/(.*)[.[].*/,"$1"),get:function(b,I){return Et.get(b,I)}},v=function(b){var I=b.values;return n(I,g)};return L.createElement(ch,{when:v},L.createElement(dh,Dr({field:a},s)))}else return L.createElement(dh,Dr({field:a},s))},dh=function(r){var n=r.children,a=Br(r,["children"]),s=Km(a),c=s.render,p=s.arrayFieldState,g=s.arrayFieldApi,v=s.field;return c(typeof n=="function"?n(Lt(Lt({field:v,arrayFieldApi:g,arrayFieldState:p},g),p)):n)},Xm=function(r){var n=r.arrayFieldItemState,a=r.arrayFieldItemApi,s=r.children,c=(0,L.useContext)(Xn),p=Ii(),g=(0,L.useState)(0),v=Rr(g,2),y=v[0],b=v[1],I=(0,L.useState)(new Map),M=Rr(I,1),B=M[0],G=n.field,te=Jm(G),q=function(){var Ae=p.getState(),xe=Ae.values,Ee=Ae.errors,ke=Ae.touched,Re={values:Et.get(xe,G),errors:Et.get(Ee,G),touched:Et.get(ke,G)};return Re};(0,L.useEffect)(function(){var Te=function(xe){var Ee=xe.slice(0,xe.lastIndexOf("[")!=-1?xe.lastIndexOf("]")+1:xe.length);Ee===G&&b(Math.random())};return p.emitter.on("value",Te),function(){p.emitter.removeListener("value",Te)}},[G]);var le=function(){B.forEach(function(Ae){Ae.fieldApi.reset()})},ae=q(),pe=Lt(Lt({},c),{},{register:function(Ae,xe,Ee){B.set(Ae,xe),c.register(Ae,xe,Ee)},deregister:function(Ae){B.delete(Ae);for(var xe=arguments.length,Ee=new Array(xe>1?xe-1:0),ke=1;ke<xe;ke++)Ee[ke-1]=arguments[ke];c.deregister.apply(c,[Ae].concat(Ee))}}),ve=Lt(Lt(Lt({},a),te),{},{reset:le}),me=Lt(Lt({},n),ae);return typeof s=="function"?L.createElement(Xn.Provider,{value:pe},L.createElement(Zd.Provider,{value:ve},L.createElement(qp.Provider,{value:me},s(Lt(Lt({arrayFieldItemApi:ve,arrayFieldItemState:me},ve),me))))):L.createElement(Xn.Provider,{value:pe},L.createElement(Zd.Provider,{value:ve},L.createElement(qp.Provider,{value:me},s)))};_d.Items=function(e){var r=e.children,n=(0,L.useContext)(Qp),a=n.fields;return a.map(function(s){var c=s.arrayFieldItemState,p=s.arrayFieldItemApi,g=c.key;return L.createElement(Xm,{key:g,arrayFieldItemApi:p,arrayFieldItemState:c},r)})};var Sc=function(r){var n=r.components,a=(0,L.useContext)(Xn),s=a.fieldMap;return n?n.map(function(c,p){var g=c["ui:control"],v=s[g];return L.createElement(v,{key:"ui-comp-".concat(p)})}):null},Qm=Qi("informed:FormFields "),ep=function e(r){var n=r.schema,a=r.prefix,s=r.onlyValidateSchema,c=(0,L.useContext)(Xn),p=c.fieldMap,g=(0,L.useMemo)(function(){var v=lh(n,s,a),y=v.map(function(b,I){var M=b.field,B=b.props,G=b.type,te=b.properties,q=b.items,le=b.componentType,ae=b.uiBefore,pe=b.uiAfter,ve=b.allOf,me=p[le];return Qm("Rendering Field",M,b),!me&&G==="object"&&te?L.createElement(e,{schema:b,prefix:M,key:"ScheamField-".concat(I)}):!me&&G==="array"&&q?L.createElement(ph,Dr({key:"ScheamField-".concat(I),field:M,items:q,uiBefore:ae,uiAfter:pe},B)):me&&le==="array"&&q&&G==="array"?L.createElement(me,Dr({key:"ScheamField-".concat(I),field:M,items:q,uiBefore:ae,uiAfter:pe},B)):le==="conditionals"?ve.map(function(Te){var Ae=Te.then,xe=Te.if.properties,Ee=function(Re){var je=Re.values;return Object.keys(xe).every(function(Ge){var bt=xe[Ge];return je[Ge]===bt.const})};return L.createElement(ch,{key:"ScheamField-".concat(I),when:Ee},L.createElement(e,{schema:Ae}))}):me?L.createElement(me,Dr({key:"ScheamField-".concat(I),field:M},B)):null});return y},[n,a]);return g},ph=function(r){var n=r.field,a=r.items,s=r.uiBefore,c=r.uiAfter,p=Br(r,["field","items","uiBefore","uiAfter"]);return L.createElement(_d,Dr({field:n},p),L.createElement(Sc,{components:s}),L.createElement(_d.Items,null,function(g){var v=g.field;return L.createElement(L.Fragment,null,L.createElement(Sc,{components:a["ui:before"]}),L.createElement(ep,{schema:a,prefix:v}),L.createElement(Sc,{components:a["ui:after"]}))}),L.createElement(Sc,{components:c}))},Zm={select:Lm,input:Im,textarea:Fm,checkbox:Dm,radio:Wm,add:zm,remove:$m,array:ph},vr=Qi("informed:Controller "),qm=function(r,n){var a=Object.keys(n).find(function(c){return r.includes(c)});if(!!a){var s=r.slice(0,a.length);return s===a}},li=function(){},_m=function(){function e(){var r=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};$d(this,e),this.options=n,this.subscriptions=new Map;var a=n.ajv,s=n.schema,c=n.fieldMap;this.ajv=a?new a({allErrors:!0}):null,this.ajvValidate=a?this.ajv.compile(s):null,this.fieldMap=c||Zm,this.fieldsById=new Map,this.fieldsByName={get:function(g){var v;return r.fieldsById.forEach(function(y){y&&y.field===g&&(v=y)}),v}},this.onScreen={},this.expectedRemovals={},this.pulledOut={},this.savedValues={},this.state={pristine:!0,dirty:!1,invalid:!1,submits:0,step:0,validating:0,submitting:!1,values:{},errors:{},touched:{}},this.dummyField={fieldApi:{setValue:li,setTouched:li,setError:li,reset:li,validate:li,getValue:li,getTouched:li,getError:li,getFieldState:li,checkRelevant:li,getPristine:li,getDirty:li}},this.deregister=this.deregister.bind(this),this.register=this.register.bind(this),this.getValue=this.getValue.bind(this),this.getTouched=this.getTouched.bind(this),this.getError=this.getError.bind(this),this.getErrors=this.getErrors.bind(this),this.setValue=this.setValue.bind(this),this.getValues=this.getValues.bind(this),this.getStep=this.getStep.bind(this),this.setStep=this.setStep.bind(this),this.back=this.back.bind(this),this.next=this.next.bind(this),this.setCurrent=this.setCurrent.bind(this),this.setTouched=this.setTouched.bind(this),this.setError=this.setError.bind(this),this.setFormError=this.setFormError.bind(this),this.submitForm=this.submitForm.bind(this),this.reset=this.reset.bind(this),this.update=this.update.bind(this),this.validate=this.validate.bind(this),this.screenValid=this.screenValid.bind(this),this.keyDown=this.keyDown.bind(this),this.getField=this.getField.bind(this),this.getInitialValue=this.getInitialValue.bind(this),this.setInitialValue=this.setInitialValue.bind(this),this.getOptions=this.getOptions.bind(this),this.getFormState=this.getFormState.bind(this),this.expectRemoval=this.expectRemoval.bind(this),this.getSavedValue=this.getSavedValue.bind(this),this.removeSavedState=this.removeSavedState.bind(this),this.getDerrivedValue=this.getDerrivedValue.bind(this),this.setValues=this.setValues.bind(this),this.resetField=this.resetField.bind(this),this.fieldExists=this.fieldExists.bind(this),this.validateField=this.validateField.bind(this),this.notify=this.notify.bind(this),this.validating=this.validating.bind(this),this.validated=this.validated.bind(this),this.getDirty=this.getDirty.bind(this),this.getPristine=this.getPristine.bind(this),this.on=this.on.bind(this),this.emit=this.emit.bind(this),this.removeListener=this.removeListener.bind(this),this.updater={register:this.register,deregister:this.deregister,getField:this.getField,update:this.update,fieldMap:this.fieldMap,setValue:function(g,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(g);b.shadow||Et.set(r.state.values,b.field,b.fieldApi.getValue()),b.fieldApi.relevant(r.state.values)||Et.delete(r.state.values,b.field),r.fieldsById.forEach(function(I){var M=I.fieldApi.checkRelevant();(!I.fieldApi.multistepRelevant(r.state.values)||!M&&!I.keepState)&&(Et.delete(r.state.values,I.field),Et.delete(r.state.touched,I.field),Et.delete(r.state.errors,I.field))}),y&&(r.emit("change"),r.emit("field",b.field),r.emit("value",b.field,v))},setTouched:function(g,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(g);!b.shadow&&b.fieldApi.getIsRelevant()&&Et.set(r.state.touched,b.field,b.fieldApi.getTouched()),b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)&&Et.set(r.state.touched,b.field,b.fieldApi.getTouched()),y&&(r.emit("change"),r.emit("field",b.field))},setError:function(g,v){var y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,b=r.fieldsById.get(g);!b.shadow&&b.fieldApi.getIsRelevant()&&Et.set(r.state.errors,b.field,b.fieldApi.getError());var I=Et.get(r.state.errors,b.field);(b.shadow&&b.fieldApi.getError()!=null&&b.fieldApi.relevant(r.state.values)||b.shadow&&b.fieldApi.getError()===void 0&&b.fieldApi.relevant(r.state.values)&&typeof I=="string")&&Et.set(r.state.errors,b.field,b.fieldApi.getError()),y&&(r.emit("change"),r.emit("field",b.field))},expectRemoval:this.expectRemoval,getInitialValue:this.getInitialValue,getSavedValue:this.getSavedValue},this.formApi={setValue:this.setValue,setTouched:this.setTouched,setError:this.setError,setFormError:this.setFormError,setValues:this.setValues,setInitialValue:this.setInitialValue,getValue:this.getValue,getTouched:this.getTouched,getError:this.getError,reset:this.reset,submitForm:this.submitForm,getState:this.getFormState,getValues:this.getValues,getFullField:this.getFullField,fieldExists:this.fieldExists,getInitialValue:this.getInitialValue,validate:this.validate,validateField:this.validateField,screenValid:this.screenValid,resetField:this.resetField,getOptions:this.getOptions,emitter:this,getSavedValue:this.getSavedValue,removeSavedState:this.removeSavedState,getDerrivedValue:this.getDerrivedValue,getStep:this.getStep,setStep:this.setStep,next:this.next,back:this.back,setCurrent:this.setCurrent,validated:this.validated,validating:this.validating,getDirty:this.getDirty,getPristine:this.getPristine,getField:this.getField},this.on("value",function(p){delete r.state.error,r.notify(p)})}return Kd(e,[{key:"emit",value:function(n){for(var a=arguments.length,s=new Array(a>1?a-1:0),c=1;c<a;c++)s[c-1]=arguments[c];var p=this.subscriptions.get(n);p&&p.forEach(function(g){return g.apply(void 0,s)})}},{key:"on",value:function(n,a){this.subscriptions.get(n)||this.subscriptions.set(n,new Set);var s=this.subscriptions.get(n);s.add(a)}},{key:"removeListener",value:function(n,a){var s=this.subscriptions.get(n);s.delete(a)}},{key:"setOptions",value:function(n){this.options=n}},{key:"setValue",value:function(n,a,s){this.getField(n).fieldApi.setValue(a,null,Lt({allowEmptyString:this.options.allowEmptyStrings},s))}},{key:"setTouched",value:function(n,a){this.getField(n).fieldApi.setTouched(a)}},{key:"setError",value:function(n,a){this.getField(n).fieldApi.setError(a)}},{key:"setFormError",value:function(n){this.state.error=n,this.emit("change")}},{key:"validating",value:function(){this.state.validating=this.state.validating+1,this.emit("change")}},{key:"validated",value:function(n,a){if(this.state.validating=this.state.validating-1,this.getError(n)||this.setError(n,a),this.state.validating>0){this.emit("change");return}this.state.submitting&&(this.valid()?(vr("Submit",this.state),this.emit("submit")):(vr("Submit",this.state),this.emit("failure")),this.state.submitting=!1),this.emit("change")}},{key:"setStep",value:function(n){this.state.step=n,this.emit("change")}},{key:"setCurrent",value:function(n){this.state.Current=n,this.emit("change")}},{key:"back",value:function(n){this.state.step=this.state.step-1,this.state.Current=n,this.emit("change")}},{key:"next",value:function(n){this.validate(),this.screenValid()&&(this.state.step=this.state.step+1,this.state.Current=n),this.emit("change")}},{key:"setInitialValue",value:function(n,a){Et.set(this.options.initialValues,n,a)}},{key:"getFormState",value:function(){return vr("Returning form state"),Lt(Lt({},this.state),{},{pristine:this.pristine(),dirty:this.dirty(),invalid:this.invalid()})}},{key:"getFormApi",value:function(){return this.formApi}},{key:"getDerrivedValue",value:function(n){var a=this.getValues();return Et.get(a,n)}},{key:"getValue",value:function(n){var a=this.getField(n).fieldApi.getValue();return vr("Getting value for",n,a),a}},{key:"getTouched",value:function(n){var a=this.getField(n).fieldApi.getTouched();return vr("Getting touched for",n,a),a}},{key:"getError",value:function(n){var a=this.getField(n).fieldApi.getError();return vr("Getting error for",n,a),a}},{key:"getDirty",value:function(n){var a=this.getField(n).fieldApi.getDirty();return vr("Getting dirty for",n,a),a}},{key:"getPristine",value:function(n){var a=this.getField(n).fieldApi.getPristine();return vr("Getting pristine for",n,a),a}},{key:"getValues",value:function(){return vr("Gettings values"),this.state.values}},{key:"getAllTouched",value:function(){return vr("Gettings touched"),this.state.touched}},{key:"getErrors",value:function(){return vr("Gettings errors"),this.state.errors}},{key:"getOptions",value:function(){return this.options}},{key:"getStep",value:function(){return this.state.step}},{key:"getSavedValue",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?Et.get(this.savedValues,"shadow-".concat(n)):Et.get(this.savedValues,n)}},{key:"removeSavedState",value:function(n){var a=this.fieldsByName.get(n);return a&&a.shadow?Et.delete(this.savedValues,"shadow-".concat(n)):Et.delete(this.savedValues,n)}},{key:"getFullField",value:function(n){return n}},{key:"getInitialValue",value:function(n){return Et.get(this.options.initialValues,n)}},{key:"getField",value:function(n){vr("Getting Field",n);var a=this.fieldsByName.get(n);return a||(console.warn("Attempting to get field ".concat(n," but it does not exist")),this.dummyField)}},{key:"notify",value:function(n){var a=this,s=this.getField(n);s&&s.notify&&s.notify.forEach(function(c){var p=".".concat(n),g="".concat(p.replace(/(.*)[.[].*/,"$1"),".").concat(c).slice(1),v=a.getField(g);v&&(vr("Notifying",v.field),v.fieldApi.validate(),v.fieldApi.checkRelevant())})}},{key:"validateField",value:function(n){this.getField(n).fieldApi.validate()}},{key:"resetField",value:function(n){this.getField(n).fieldApi.reset()}},{key:"fieldExists",value:function(n){return this.fieldsByName.get(n)!=null}},{key:"valid",value:function(){var n=this.getErrors();return!!(Et.empty(n)&&!this.state.error)}},{key:"screenValid",value:function(){var n=Object.entries(this.onScreen).some(function(a){var s=Rr(a,2),c=s[1];return c.fieldApi.getError()});return!n}},{key:"invalid",value:function(){var n=this.getErrors();return!!(!Et.empty(n)||this.state.error)}},{key:"pristine",value:function(){var n=!0;return this.fieldsById.forEach(function(a){a.fieldApi.getPristine()||(n=!1)}),n}},{key:"dirty",value:function(){return!this.pristine()}},{key:"reset",value:function(){vr("Resetting"),this.fieldsById.forEach(function(n){n.fieldApi.reset({preventUpdate:!0})}),this.emit("reset"),this.emit("change")}},{key:"setValues",value:function(n){vr("Setting values"),this.fieldsById.forEach(function(a){var s=Et.get(n,a.field);s!==void 0&&a.fieldApi.setValue(s,null,{preventUpdate:!0})}),this.emit("change")}},{key:"validate",value:function(){var n=this;vr("Validating all fields");var a=this.getValues();if(this.options.validationSchema){var s=ih(this.options.validationSchema,a);this.fieldsById.forEach(function(v){if(Et.has(s,v.field)){var y=Et.get(s,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.options.schema&&this.options.ajv){var c=sh(this.ajvValidate,a);this.fieldsById.forEach(function(v){if(Et.has(c,v.field)){var y=Et.get(c,v.field);n.setError(v.field,y)}else n.setError(v.field,void 0)})}if(this.fieldsById.forEach(function(v){v.fieldApi.validate(a),v.fieldApi.setTouched(!0,!0)}),this.options.validate){var p=this.options.validate(a);this.setFormError(p)}if(this.options.validateFields){var g=this.options.validateFields(a);this.fieldsById.forEach(function(v){if(Et.has(g,v.field)){var y=Et.get(g,v.field);n.setError(v.field,y)}})}}},{key:"asyncValidate",value:function(){vr("Async Validating all fields");var n=this.getValues();this.fieldsById.forEach(function(a){a.fieldApi.asyncValidate(n)})}},{key:"keyDown",value:function(n){if(n.keyCode==13&&this.options.preventEnter)return n.preventDefault(n),!1}},{key:"submitForm",value:function(n){this.state.submits=this.state.submits+1,this.state.submitting=!0,!this.options.dontPreventDefault&&n&&n.preventDefault(n),this.validate(),this.emit("change"),this.asyncValidate(),!(this.state.validating>0)&&(this.valid()?(vr("Submit",this.state),this.emit("submit")):(vr("Submit",this.state),this.emit("failure")),this.state.submitting=!1,this.emit("change"))}},{key:"mount",value:function(){var n=this;this.fieldsById.forEach(function(a){n.emit("field",a.field)})}},{key:"register",value:function(n,a,s){var c=a.field,p=a.state;vr("Register ID:",n,"Name:",c,p,"Initial",s);var g=c.slice(0,c.lastIndexOf("[")!=-1?c.lastIndexOf("]")+1:c.length),v;this.fieldsById.forEach(function(y,b){y&&y.field===c&&(v=b)}),v&&(a.keepState||a.inMultistep)?(vr("Already Registered",c),this.fieldsById.delete(v)):v&&(!a.keepState||!a.inMultistep)&&console.warn("Check to make sure you have not registered two fields with the fieldName",c),vr("Fields Registered",this.fieldsById.size),this.onScreen[n]=a,this.fieldsById.set(n,a),vr("clearing expected removal",g),delete this.expectedRemovals[g],delete this.pulledOut[g],!a.shadow&&(this.updater.setValue(n,a.fieldApi.getValue(),!1),this.updater.setError(n,a.fieldApi.getError(),!1),this.updater.setTouched(n,a.fieldApi.getTouched(),!1),s||this.emit("change"),this.emit("field",c))}},{key:"deregister",value:function(n){var a=this.fieldsById.get(n),s=a.field;vr("Deregister",n,s),delete this.onScreen[n];var c=qm(s,this.expectedRemovals),p=s.slice(0,s.lastIndexOf("[")!=-1?s.lastIndexOf("]")+1:s.length);(a.keepState||a.inMultistep)&&!c&&(vr("Saving field ".concat(s,"'s value"),a.fieldApi.getFieldState()),a.shadow?Et.set(this.savedValues,"shadow-".concat(s),a.fieldApi.getFieldState()):Et.set(this.savedValues,s,a.fieldApi.getFieldState())),(c||!a.keepState&&!a.inMultistep||!a.fieldApi.getIsRelevant()&&!a.keepState)&&(vr("Removing field",s),this.fieldsById.delete(n),c||(Et.delete(this.state.values,s),Et.delete(this.state.touched,s),Et.delete(this.state.errors,s),a.shadow?Et.delete(this.savedValues,"shadow-".concat(s)):Et.delete(this.savedValues,s)),c&&this.pulledOut[p]&&(vr("Pulling out",s,"with magic value",p),Et.pullOut(this.state.values,p),Et.pullOut(this.state.touched,p),Et.pullOut(this.state.errors,p),Et.pullOut(this.savedValues,p),delete this.pulledOut[p])),this.emit("change")}},{key:"expectRemoval",value:function(n){vr("Expecting removal of",n),this.expectedRemovals[n]=!0,this.pulledOut[n]=!0}},{key:"update",value:function(n,a,s){vr("Update",n,a.field,s,a.fieldState.value);var c=a.fieldApi.getValue(),p=a.fieldApi.getError(),g=a.fieldApi.getTouched(),v=this.fieldsByName.get(s);s&&!v&&(Et.set(this.state.values,s),Et.set(this.state.errors,s),Et.set(this.state.touched,s)),Et.set(this.state.values,a.field,c),Et.set(this.state.errors,a.field,p),Et.set(this.state.touched,a.field,g),this.emit("change")}}]),e}(),tp=Qi("informed:FormProvider "),ey=function(r){var n=r.children,a=r.formApi,s=r.formController,c=r.formState,p=Br(r,["children","formApi","formController","formState"]);if(tp("Render FormProvider"),a)return tp("Render FormProvider with given values"),L.createElement(Xn.Provider,{value:s.updater},L.createElement(bu.Provider,{value:a},L.createElement(yu.Provider,{value:c},n)));tp("Render FormProvider with generated values");var g=vh(p);return L.createElement(Xn.Provider,{value:g.formController.updater},L.createElement(bu.Provider,{value:g.formApi},L.createElement(yu.Provider,{value:g.formState},n)))},hh=Qi("informed:useForm "),vh=function(r){var n=r.dontPreventDefault,a=r.initialValues,s=r.validate,c=r.validateFields,p=r.allowEmptyStrings,g=r.preventEnter,v=r.getApi,y=r.apiRef,b=r.onChange,I=r.onReset,M=r.onSubmit,B=r.onValueChange,G=r.onSubmitFailure,te=r.validationSchema,q=r.schema,le=r.ajv,ae=r.fieldMap,pe=r.onlyValidateSchema,ve=Br(r,["dontPreventDefault","initialValues","validate","validateFields","allowEmptyStrings","preventEnter","getApi","apiRef","onChange","onReset","onSubmit","onValueChange","onSubmitFailure","validationSchema","schema","ajv","fieldMap","onlyValidateSchema"]);hh("Render useForm");var me=(0,L.useMemo)(function(){return{dontPreventDefault:n,initialValues:a,validate:s,validateFields:c,allowEmptyStrings:p,preventEnter:g,validationSchema:te,schema:q,ajv:le,fieldMap:ae}},[n,a,s,c,p,g,te,q,le,ae]),Te=(0,L.useState)(function(){return new _m(me)}),Ae=Rr(Te,1),xe=Ae[0];(0,L.useEffect)(function(){xe.setOptions(me)},[me]),ki(function(){xe.mount()},[]);var Ee=(0,L.useState)(function(){return xe.getFormState()}),ke=Rr(Ee,2),Re=ke[0],je=ke[1];ki(function(){var sr=function(){return b&&b(xe.getFormState())},gr=function(){return I&&I()},Pr=function(){return M&&M(xe.getFormState().values)},fr=function(){return B&&B(xe.getFormState().values)},Ut=function(){return G&&G(xe.getFormState().errors)};return xe.on("change",sr),xe.on("reset",gr),xe.on("submit",Pr),xe.on("value",fr),xe.on("failure",Ut),function(){xe.removeListener("change",sr),xe.removeListener("reset",gr),xe.removeListener("submit",Pr),xe.removeListener("value",fr),xe.removeListener("failure",Ut)}},[b,I,M,B,G]),(0,L.useState)(function(){var sr=function(){hh("Setting form state"),je(xe.getFormState())};xe.on("change",sr),v&&v(xe.getFormApi()),y&&(y.current=xe.getFormApi())});var Ge=(0,L.useState)(function(){return xe.getFormApi()}),bt=Rr(Ge,1),qe=bt[0],Zt=function(gr){return L.createElement(ey,{formApi:qe,formState:Re,formController:xe},L.createElement(L.Fragment,null,gr||L.createElement(ep,{schema:q,onlyValidateSchema:pe})))};return{formApi:qe,formState:Re,formController:xe,render:Zt,userProps:ve}},ty=Qi("informed:Form "),ry=function(r){var n=r.children,a=r.render,s=r.component,c=Br(r,["children","render","component"]);ty("Render FORM");var p=vh(c),g=p.formApi,v=p.formController,y=p.formState,b=p.render,I=p.userProps,M=function(){var G={formState:y,formApi:g};return s?L.createElement(s,G,n):a?a(G):typeof n=="function"?n(G):n};return b(L.createElement("form",Dr({},I,{onReset:v.reset,onSubmit:v.submitForm,onKeyDown:v.keyDown}),M()))},ny=function(r,n){return Lt(Lt({},n),{},{getValue:function(s){return n.getValue("".concat(r,".").concat(s))},getTouched:function(s){return n.getTouched("".concat(r,".").concat(s))},getError:function(s){return n.getError("".concat(r,".").concat(s))},setValue:function(s,c){return n.setValue("".concat(r,".").concat(s),c)},setTouched:function(s,c){return n.setTouched("".concat(r,".").concat(s),c)},setError:function(s,c){return n.setError("".concat(r,".").concat(s),c)},getInitialValue:function(s){return n.getInitialValue("".concat(r,".").concat(s))},getFullField:function(s){return"".concat(n.getFullField(r),".").concat(s)}})},iy=function(r,n){var a=n.register,s=n.deregister,c=n.setValue,p=n.setTouched,g=n.setError,v=n.update,y=n.getField,b=n.expectRemoval,I=n.getInitialValue,M=n.fieldMap,B=n.getSavedValue;return{register:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return a.apply(void 0,["".concat(r,".").concat(te)].concat(le))},deregister:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return s.apply(void 0,["".concat(r,".").concat(te)].concat(le))},update:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return v.apply(void 0,["".concat(r,".").concat(te)].concat(le))},setValue:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return c.apply(void 0,["".concat(r,".").concat(te)].concat(le))},setTouched:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return p.apply(void 0,["".concat(r,".").concat(te)].concat(le))},setError:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return g.apply(void 0,["".concat(r,".").concat(te)].concat(le))},getField:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return y.apply(void 0,["".concat(r,".").concat(te)].concat(le))},expectRemoval:function(te){for(var q=arguments.length,le=new Array(q>1?q-1:0),ae=1;ae<q;ae++)le[ae-1]=arguments[ae];return b.apply(void 0,["".concat(r,".").concat(te)].concat(le))},getInitialValue:function(te){return I("".concat(r,".").concat(te))},getSavedValue:function(te){return B("".concat(r,".").concat(te))},fieldMap:M}},s1=function(r){var n=r.scope,a=r.children,s=useContext(Xn),c=Ii(),p=xc(),g=useMemo(function(){return ny(n,c)},[n]),v=useMemo(function(){return iy(n,s)},[n]);return React.createElement(Xn.Provider,{value:v},React.createElement(bu.Provider,{value:g},React.createElement(yu.Provider,{value:p},a)))},l1=function(r){var n=xc(),a={};Object.keys(r).length>0?Object.keys(r).forEach(function(B){a[B]=n[B]}):a=n;var s=a,c=s.pristine,p=s.dirty,g=s.invalid,v=s.values,y=s.errors,b=s.touched,I=s.validating,M=s.submitting;return React.createElement("pre",null,React.createElement("code",null,JSON.stringify({pristine:c,dirty:p,invalid:g,values:v,errors:y,touched:b,validating:I,submitting:M},null,2)))},ay=function(r){var n=r.initialStep,a=r.multistepApiRef,s=Ii(),c=s.getValues,p=s.validate,g=s.screenValid,v=(0,L.useState)(new Map),y=Rr(v,1),b=y[0],I=(0,L.useRef)(0),M=Ra({current:n,steps:[],goal:null}),B=Rr(M,3),G=B[0],te=B[1],q=B[2],le=(0,L.useState)(function(){var me=function(){var xe=q(),Ee=xe.current,ke=b.get(Ee);return ke},Te={getState:function(){return q()},getCurrentStep:me,getStep:function(xe){return b.get(xe)},getNumberOfSteps:function(){return b.size},next:function(){if(p(),g()){var xe=me(),Ee=xe.getNext,ke=Ee(),Re=typeof ke=="function"?ke(c()):ke;Re&&te(function(je){return Lt(Lt({},je),{},{current:Re})})}},back:function(){var xe=me(),Ee=xe.getPrevious,ke=Ee(),Re=typeof ke=="function"?ke(c()):ke;Re&&te(function(je){return Lt(Lt({},je),{},{current:Re})})},setCurrent:function(xe){if(xe){var Ee=b.get(xe).index;Ee<me().index?te(function(ke){return Lt(Lt({},ke),{},{current:xe,goal:null})}):te(function(ke){return Lt(Lt({},ke),{},{goal:xe})})}},register:function(xe,Ee,ke){ke?(I.current=I.current+1,b.set(xe,Lt(Lt({},Ee),{},{index:I.current}))):te(function(Re){return Lt(Lt({},Re),{},{steps:Array.from(b.keys())})})},deregister:function(xe){b.delete(xe),I.current=I.current-1,te(function(Ee){return Lt(Lt({},Ee),{},{steps:Array.from(b.keys())})})}};return a&&(a.current=Te),Te}),ae=Rr(le,1),pe=ae[0],ve=function(Te){return L.createElement(eh.Provider,{value:pe},L.createElement(_p.Provider,{value:G},Te))};return Lt(Lt(Lt({},pe),G),{},{render:ve})};function oy(){return(0,L.useContext)(_p)}function sy(){return(0,L.useContext)(eh)}var ly=function(r){var n=r.step,a=r.next,s=r.previous,c=r.relevant,p=xc(),g=p.values,v=oy(),y=v.current,b=v.goal,I=sy(),M=I.register,B=I.deregister,G=I.next,te=n===y,q=c?c(g):!0,le=(0,L.useRef)(a),ae=(0,L.useRef)(s),pe=(0,L.useRef)();le.current=a,ae.current=s,pe.current=c,(0,L.useState)(function(){M(n,{name:n,getNext:function(){return le.current},getPrevious:function(){return ae.current}},!0)}),(0,L.useEffect)(function(){return M(n,{name:n,getNext:function(){return le.current},getPrevious:function(){return ae.current}}),function(){B(n)}},[n]),(0,L.useEffect)(function(){b&&te&&b!==n&&G()},[b,te]);var ve=function(Te){return L.createElement(th.Provider,{value:{relevant:function(xe){return pe.current?pe.current(xe):!0},multistep:!0}},te&&q?Te:null)};return{isCurrent:te,isRelevant:q,step:n,render:ve}};function uy(e){var r=e.children,n=Br(e,["children"]),a=ay(n),s=a.render,c=Br(a,["render"]);return s(typeof r=="function"?r(c):r)}uy.Step=function(r){var n=r.children,a=Br(r,["children"]),s=ly(a),c=s.render;return c(n)};var u1=function(r){var n=r.field,a=useContext(Xn),s=a.fieldMap,c=Ii(),p=c.getFullField,g=c.getOptions,v=p(n),y=g(),b=y.schema,I=uh(v),M=Et.get(b,I);if(!M)return null;var B=qd(n,M),G=B.props,te=B.componentType,q=s[te];return React.createElement(q,Dr({field:n},G))},f1=function(){var r=Ii(),n=r.getOptions,a=n(),s=a.schema;return React.createElement(ep,{schema:s})},c1=function(r){return React.forwardRef(function(n,a){return React.createElement(bu.Consumer,null,function(s){return React.createElement(r,Dr({formApi:s,ref:a},n))})})},d1=function(r){return React.forwardRef(function(n,a){return React.createElement(yu.Consumer,null,function(s){return React.createElement(r,Dr({formState:s,ref:a},n))})})},fy=function(r,n){return{getValue:function(){return r.getValue(n)},setValue:function(s){return r.setValue(n,s)},getTouched:function(){return r.getTouched(n)},setTouched:function(s){return r.setTouched(n,s)},getError:function(){return r.getError(n)},setError:function(s){return r.setError(n,s)},reset:function(){return r.resetField(n)},validate:function(){return r.validateField(n)},exists:function(){return r.fieldExists(n)},getDirty:function(){return r.getDirty(n)},getPristine:function(){return r.getPristine(n)},getFieldState:function(){return r.getField(n).fieldApi.getFieldState()}}};function gh(e){var r=Ii(),n=useMemo(function(){return fy(r,e)},[e]);return n}function cy(e){var r=gh(e),n=Ii(),a=React.useState(),s=Rr(a,2),c=s[1],p=React.useCallback(function(){return c({})},[]);return ki(function(){var g=function(y){y===e&&p()};return n.emitter.on("field",g),function(){n.emitter.removeListener("field",g)}},[]),ki(function(){p()},[]),r.getFieldState()||{}}var p1=function(r){return function(n){return function(a){var s=cy(r);return React.createElement(n,Dr({fieldState:s},a))}}},h1=function(r){return function(n){return function(a){var s=gh(r);return React.createElement(n,Dr({fieldApi:s},a))}}},v1=function(r){var n=r.value,a=r.forwardedRef,s=r.children,c=Br(r,["value","forwardedRef","children"]);return React.createElement("option",Dr({ref:a,value:n,key:n},c),s)},g1=null,mh=o(56642),so=o(67262),dy=Object.defineProperty,py=Object.defineProperties,hy=Object.getOwnPropertyDescriptors,yh=Object.getOwnPropertySymbols,vy=Object.prototype.hasOwnProperty,gy=Object.prototype.propertyIsEnumerable,bh=(e,r,n)=>r in e?dy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Su=(e,r)=>{for(var n in r||(r={}))vy.call(r,n)&&bh(e,n,r[n]);if(yh)for(var n of yh(r))gy.call(r,n)&&bh(e,n,r[n]);return e},my=(e,r)=>py(e,hy(r)),wc=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});const xh="/oauth2-redirect.html";class Fi{static authorizeImplicit({authorizationUrl:r,clientId:n,scopes:a,extraParams:s={},routingBasePath:c,redirectUri:p,successCallback:g,errorCallback:v}){const y=(0,so.p8)({date:new Date().toString()}),b=new URL(r),I=c==="/"?"":c,M=`${window.location.origin}${I}${xh}`;b.searchParams.set("client_id",n),b.searchParams.set("redirect_uri",p||M),b.searchParams.set("response_type","token"),b.searchParams.set("state",y),Array.isArray(a)&&b.searchParams.set("scope",a.join(" "));for(const B in s)b.searchParams.set(B,s[B]);window.redirectOAuth2={flow:"implicit",data:{authorizationUrl:r,clientId:n,scopes:a},state:y,successCallback:B=>{g(B),Fi.clearRedirectData("implicit")},errorCallback:B=>{v(B),Fi.clearRedirectData("implicit")}},window.open(b.toString())}static authorizeAuthorizationCode({authorizationUrl:r,tokenUrl:n,clientId:a,clientSecret:s,codeVerifier:c,codeChallenge:p,scopes:g,extraParams:v={},extraHeaders:y={},routingBasePath:b,redirectUri:I,successCallback:M,errorCallback:B}){const G=new URL(r),te=b==="/"?"":b,q=`${window.location.origin}${te}${xh}`,le=(0,so.p8)({date:new Date().toString()});G.searchParams.set("client_id",a),G.searchParams.set("redirect_uri",I||q),G.searchParams.set("response_type","code"),G.searchParams.set("state",le),Array.isArray(g)&&G.searchParams.set("scope",g.join(" ")),p&&(G.searchParams.set("code_challenge",p),G.searchParams.set("code_challenge_method","S256"));for(const ae in v)G.searchParams.set(ae,v[ae]);window.redirectOAuth2={flow:"authorizationCode",data:{authorizationUrl:r,clientId:a,scopes:g},state:le,successCallback:ae=>wc(this,[ae],function*({auth_code:pe}){try{const ve=yield fetch(n,{method:"POST",headers:Su({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},y),body:mh.stringify(Su(my(Su({client_id:a,client_secret:s},c&&{code_verifier:c}),{code:pe,grant_type:"authorization_code",redirect_uri:I||q}),v))});yield Sh(ve,M,B)}catch(ve){B(ve)}Fi.clearRedirectData("authorizationCode")}),errorCallback:ae=>{B(ae),Fi.clearRedirectData("authorizationCode")}},window.open(G.toString())}static clearRedirectData(r){window.redirectOAuth2={flow:r,data:{authorizationUrl:"",clientId:"",scopes:[]},state:"",successCallback:()=>{},errorCallback:()=>{}}}static authorizeClientCredentials(r){return wc(this,arguments,function*({tokenUrl:n,clientId:a,clientSecret:s,scopes:c=[],extraParams:p={},extraHeaders:g={},successCallback:v,errorCallback:y}){try{const b=JSON.parse(JSON.stringify(Su({client_id:a,client_secret:s,grant_type:"client_credentials",scope:Array.isArray(c)&&c.length?c.join(" "):void 0},p))),I=yield fetch(n,{method:"POST",headers:Su({"Content-Type":"application/x-www-form-urlencoded;charset=UTF-8"},g),body:mh.stringify(b)});yield Sh(I,v,y)}catch(b){y(b)}})}}const m1=new Fi;function Sh(e,r,n){return wc(this,null,function*(){if(e.ok){const a=yield e.json();r(a)}else n(new Error((e.headers.get("Content-Type")||"").indexOf("json")>-1?JSON.stringify(yield e.json()):yield e.text()))})}function wh(e){return wc(this,null,function*(){return(0,so.rS)(yield(0,so.JQ)(e))})}var wu=o(3682),ht=o(45091),yy=o(11594),by=o(43454),xy=Object.defineProperty,Sy=Object.defineProperties,wy=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Ah=Object.prototype.hasOwnProperty,Ch=Object.prototype.propertyIsEnumerable,Eh=(e,r,n)=>r in e?xy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Cc=(e,r)=>{for(var n in r||(r={}))Ah.call(r,n)&&Eh(e,n,r[n]);if(Ac)for(var n of Ac(r))Ch.call(r,n)&&Eh(e,n,r[n]);return e},Ay=(e,r)=>Sy(e,wy(r)),Cy=(e,r)=>{var n={};for(var a in e)Ah.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ac)for(var a of Ac(e))r.indexOf(a)<0&&Ch.call(e,a)&&(n[a]=e[a]);return n};const Oh=e=>Jt.iv`
171
+ border: var(--input-border);
172
+ outline: none;
173
+ padding: var(--input-padding);
174
+ border-radius: var(--input-border-radius);
175
+ background-color: var(--panel-${e}-input-background-color);
176
+ color: var(--input-text-color);
177
+ font-family: var(--input-font-family);
178
+ font-size: var(--input-font-size);
179
+ line-height: var(--input-line-height);
180
+
181
+ &::placeholder {
182
+ opacity: 0.6;
183
+ color: var(--input-placeholder-text-color);
184
+ }
185
+
186
+ &:hover {
187
+ color: var(--input-hover-text-color);
188
+ border: var(--input-hover-border);
189
+ }
190
+
191
+ &:focus {
192
+ color: var(--input-focus-text-color);
193
+ border: var(--input-focus-border);
194
+ }
195
+
196
+ &:-webkit-autofill {
197
+ background-color: var(--panel-${e}-input-background-color);
198
+ }
199
+ `,Th=Jt.ZP.div`
200
+ display: ${({type:e})=>e==="hidden"?"none":"inline-block"};
201
+ ${({fullWidth:e})=>e?"width: 100%;":""}
202
+ `,Ey=Jt.ZP.div`
203
+ position: relative;
204
+ `,Oy=Jt.ZP.input`
205
+ ${({panel:e})=>Oh(e)}
206
+ ${({inputType:e,inputActionButton:r})=>e==="password"||r?"padding-right: 40px;":""};
207
+ ${({fullWidth:e})=>e?"width: 100%;":""}
208
+ `,Ph=Jt.ZP.span`
209
+ position: absolute;
210
+ right: 0;
211
+ line-height: normal;
212
+
213
+ font-size: 0.8em;
214
+ padding: calc(8px / 0.8);
215
+ cursor: pointer;
216
+ text-align: center;
217
+ color: var(--panel-samples-text-color);
218
+ `;function Ty(e,r){var n=e,{fullWidth:a,errorMessage:s,type:c,inputActionButton:p,panel:g="samples"}=n,v=Cy(n,["fullWidth","errorMessage","type","inputActionButton","panel"]);const[y,b]=(0,L.useState)(c==="password"),I=(0,L.useCallback)(()=>{b(!y)},[y]);return L.createElement(Th,{fullWidth:a,type:c},L.createElement(Ey,null,L.createElement(Oy,Cc({fullWidth:a,inputActionButton:p,type:y?"password":"text",inputType:c,ref:r,panel:g},v)),p?L.createElement(Ph,{onClick:p.onClick},p.label):c==="password"?L.createElement(Ph,{onClick:I},y?"show":"hide"):null),s?L.createElement(ht.Xq,null,s):null)}const Au=(0,L.forwardRef)(Ty);function Rn(e){const r=xu(Cc({fieldType:"text"},e)),{userProps:n,render:a,fieldState:s}=r,c=r.informed;return a(L.createElement(Au,Ay(Cc(Cc({},n),c),{errorMessage:s.error})))}const Cu=Ma(({initValue:e,options:r,fieldApi:n,fieldState:a})=>{const s=r.map((y,b)=>({value:y.title||y.value,idx:b,origValue:y.value})),c=s.find(y=>y.origValue===e),[p,g]=(0,L.useState)(c==null?void 0:c.value);(0,Bt.useMount)(()=>{e&&n.setValue(e)});const v=(0,L.useCallback)(y=>{n.setValue(s[y.idx].origValue),g(s[y.idx].value)},[n,s]);return L.createElement(Th,{fullWidth:!0},L.createElement(by.Dropdown,{fullWidth:!0,variant:"dark",value:p,options:s,onChange:v}),a.error?L.createElement(ht.Xq,null,a.error):null)});function Py({name:e,value:r,description:n,variableEnum:a,onChange:s,defaultValue:c}){const p=(0,L.useCallback)(y=>s(y.target.value),[s]),g=(0,L.useCallback)(y=>s(y.value),[s]),v=a?a.map((y,b)=>({value:y,idx:b})):[];return L.createElement(ht.NI,null,L.createElement(ht.lX,null,e,":"),v&&v.length?L.createElement(kn.VD,{fullWidth:!0,variant:"dark",value:r,options:v,onChange:g}):L.createElement(Au,{fullWidth:!0,value:r,onChange:p,placeholder:c,panel:"try-it"}),n&&L.createElement(Iy,{source:n}))}const Iy=(0,Jt.ZP)(yy.Markdown)`
219
+ margin-top: 5px;
220
+ color: #d0d0d0;
221
+ `;var ky=Object.defineProperty,Fy=Object.defineProperties,Ry=Object.getOwnPropertyDescriptors,Ih=Object.getOwnPropertySymbols,My=Object.prototype.hasOwnProperty,Ly=Object.prototype.propertyIsEnumerable,kh=(e,r,n)=>r in e?ky(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fh=(e,r)=>{for(var n in r||(r={}))My.call(r,n)&&kh(e,n,r[n]);if(Ih)for(var n of Ih(r))Ly.call(r,n)&&kh(e,n,r[n]);return e},Rh=(e,r)=>Fy(e,Ry(r));function Ny({operation:e,onChange:r}){const n=(0,ct.YQ)("serverUrl"),a=e.servers.findIndex(M=>M.url===n),[s,c]=(0,L.useState)(a<0?0:a),[p,g]=(0,L.useState)({});(0,Bt.useMount)(()=>{const M=(0,Yt.fz)(e.servers,s);r(M),g(M.variables)});const v=M=>{const B=e.servers.find(q=>q.url===M.serverUrl),G=e.servers.findIndex(q=>q.url===M.serverUrl),te=(0,Yt.mj)(B);r({url:M.serverUrl||"",variables:te}),(0,ct.WW)("serverUrl",M.serverUrl||""),c(G),g(te)},y=(M,B)=>{const G=e.servers[s],te=B||B===""?B:(0,Yt.mj)(G)[M],q=Rh(Fh({},p),{[M]:te});g(q),(0,Yt.UY)(M,te),r(Rh(Fh({},G),{variables:q}))},b=e.servers.map((M,B)=>({idx:B,serverUrl:M.url,value:`
222
+ ${(0,Yt.nq)((0,Yt.v5)(M.url,p),M.variables)}
223
+ - ${M.description||"Default"}
224
+ `})),I=Object.keys(p);return L.createElement(By,{"data-cy":"console-target-server"},L.createElement(ht.lX,{htmlFor:"server"},"Target server: "),L.createElement(ht.NI,null,L.createElement(kn.VD,{variant:"dark",value:b[s].value,options:b,fullWidth:!0,onChange:v})),I==null?void 0:I.map(M=>{var B;const G=(B=e.servers[s].variables)==null?void 0:B[M];if(G)return L.createElement(Py,{key:M,name:M,value:p[M],defaultValue:G.default,onChange:te=>y(M,te),variableEnum:G.enum,description:G.description})}))}const Dy=(0,L.memo)(Ny),By=Jt.ZP.div`
225
+ margin-bottom: 20px;
226
+ `;var Mh=o(27341),jy=Object.defineProperty,Vy=Object.defineProperties,Uy=Object.getOwnPropertyDescriptors,Ec=Object.getOwnPropertySymbols,Lh=Object.prototype.hasOwnProperty,Nh=Object.prototype.propertyIsEnumerable,Dh=(e,r,n)=>r in e?jy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wy=(e,r)=>{for(var n in r||(r={}))Lh.call(r,n)&&Dh(e,n,r[n]);if(Ec)for(var n of Ec(r))Nh.call(r,n)&&Dh(e,n,r[n]);return e},Hy=(e,r)=>Vy(e,Uy(r)),zy=(e,r)=>{var n={};for(var a in e)Lh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Ec)for(var a of Ec(e))r.indexOf(a)<0&&Nh.call(e,a)&&(n[a]=e[a]);return n};function rp(e){var r=e,{header:n,error:a,success:s}=r,c=zy(r,["header","error","success"]);const p=({toggle:g,expanded:v=!1})=>L.createElement(Bt.PanelHeader,{onClick:g,expanded:v,"data-cy":c["data-cy"]},L.createElement(yr.xz,null,L.createElement(Bt.PanelHeaderTitle,null,n),L.createElement(Bt.ShelfIcon,{direction:v?"down":"right"})),a&&L.createElement(Mh.CrossIcon,{size:"14px",color:"--color-error-500"})||null,s&&L.createElement(Mh.LockIcon,{size:"14px",color:"--color-success-500"})||null);return L.createElement(Gy,Hy(Wy({className:"panel-try-it-nested"},c),{header:p}))}const Gy=(0,Jt.ZP)(Bt.Panel)`
227
+ ${Bt.PanelHeader} {
228
+ border: 1px solid
229
+ ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-heading-border-color)"};
230
+ padding: 10px;
231
+ }
232
+
233
+ ${Bt.PanelBody} {
234
+ border: 1px solid
235
+ ${({error:e})=>e?"var(--color-error-300)":"var(--panel-try-it-nested-body-border-color)"};
236
+ border-top: 0;
237
+ }
238
+ `;var $y=o(76479),Ky=o(78051),Yy=o(50786);const Jy=(0,Jt.ZP)(zp.A3)`
239
+ border-radius: var(--panel-border-radius);
240
+ margin-bottom: 10px;
241
+ `;var Oc=o(41199),np=o(74032),Xy=o(89430),Qy=Object.defineProperty,Tc=Object.getOwnPropertySymbols,Bh=Object.prototype.hasOwnProperty,jh=Object.prototype.propertyIsEnumerable,Vh=(e,r,n)=>r in e?Qy(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Zy=(e,r)=>{for(var n in r||(r={}))Bh.call(r,n)&&Vh(e,n,r[n]);if(Tc)for(var n of Tc(r))jh.call(r,n)&&Vh(e,n,r[n]);return e},Uh=(e,r)=>{var n={};for(var a in e)Bh.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&Tc)for(var a of Tc(e))r.indexOf(a)<0&&jh.call(e,a)&&(n[a]=e[a]);return n},qy=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});const Wh=(0,L.forwardRef)((e,r)=>{var n=Uh(e,[]);const a=n,{schema:s,contentName:c,onChange:p,name:g}=a,v=Uh(a,["schema","contentName","onChange","name"]),{render:y}=xu(Zy({field:g},v)),b=I=>qy(void 0,null,function*(){const M=yield oo(I.target.files,s);p(c,M)});return y(L.createElement("input",{"data-cy":"file-upload-input",type:"file",id:n.id,className:n.className,name:n.name,onChange:b,multiple:n.multiple,accept:n.accept,ref:r}))});Wh.displayName="FileUpload";var ip=o(78122);function _y({mediaType:e,onChange:r,formApi:n}){var a;const s=e.examples||{},{exampleKey:c}=(0,np.C6)(e.operation,s),p=(a=s[c])==null?void 0:a.rawValue,g=t0(e);(0,L.useEffect)(()=>n&&g.forEach(y=>{var b,I;const M=p==null?void 0:p[y.name],B=(I=(b=y.example)!=null?b:M==null?void 0:M.example)!=null?I:M,G=typeof B=="object"?JSON.stringify(B):B;B!==void 0&&n.setValue("body."+y.name,`${G}`)}),[c]);const v=e.schema||{};return Ji(v,e.name)?L.createElement(Hh,null,L.createElement(ht.NI,null,L.createElement(zh,{fullWidth:!0,id:`body.${e.name}`,name:`body.${e.name}`,accept:Nr(e.name),schema:v,contentName:e.name,onChange:r}))):v.type!==Ar.DefinitionTypes.OBJECT&&!g?(console.warn(`Invalid schema for request body and mime type: "${e.name}"`,v),null):L.createElement(Hh,null,g.map(y=>{const b=y.schema||{contentMediaType:"",type:"",description:""},I=e.name===Oc.Tr.MULTIPART&&Pi(b),M=b.contentMediaType||"",B=I?L.createElement(zh,{fullWidth:!0,id:"body."+y.name,name:"body."+y.name,accept:Nr(M),multiple:b.type==="array",schema:b,contentName:y.name,onChange:r}):L.createElement(Rn,{fullWidth:!0,id:"body."+y.name,field:"body."+y.name,placeholder:(0,ct.bG)(b.description)||y.name,panel:"try-it"});return L.createElement(ht.NI,{key:y.name},L.createElement(ht.lX,null,y.name,":"),B)}))}const e0=(0,L.memo)(_y);function t0(e){var r,n,a,s;const{activeOneOf:c}=(0,Xy.$l)((0,ip.N)(e.operation.pointer));return((n=(r=e.schema)==null?void 0:r.oneOf)!=null&&n.length?((a=e.schema)==null?void 0:a.oneOf[c].fields)||[]:((s=e.schema)==null?void 0:s.fields)||[]).filter(p=>!p.schema.readOnly)}const Hh=Jt.ZP.div`
242
+ > div {
243
+ margin-top: 10px;
244
+ }
245
+ `,zh=(0,Jt.ZP)(Wh)`
246
+ ${Oh("try-it")};
247
+ ${({inputType:e})=>e==="password"?"padding-right: 40px;":""};
248
+ ${({fullWidth:e})=>e?"width: 100%;":""}
249
+ `;var r0=o(63277);function Pc(e,r){r===void 0&&(r=!1);var n=e.length,a=0,s="",c=0,p=16,g=0,v=0,y=0,b=0,I=0;function M(pe,ve){for(var me=0,Te=0;me<pe||!ve;){var Ae=e.charCodeAt(a);if(Ae>=48&&Ae<=57)Te=Te*16+Ae-48;else if(Ae>=65&&Ae<=70)Te=Te*16+Ae-65+10;else if(Ae>=97&&Ae<=102)Te=Te*16+Ae-97+10;else break;a++,me++}return me<pe&&(Te=-1),Te}function B(pe){a=pe,s="",c=0,p=16,I=0}function G(){var pe=a;if(e.charCodeAt(a)===48)a++;else for(a++;a<e.length&&qs(e.charCodeAt(a));)a++;if(a<e.length&&e.charCodeAt(a)===46)if(a++,a<e.length&&qs(e.charCodeAt(a)))for(a++;a<e.length&&qs(e.charCodeAt(a));)a++;else return I=3,e.substring(pe,a);var ve=a;if(a<e.length&&(e.charCodeAt(a)===69||e.charCodeAt(a)===101))if(a++,(a<e.length&&e.charCodeAt(a)===43||e.charCodeAt(a)===45)&&a++,a<e.length&&qs(e.charCodeAt(a))){for(a++;a<e.length&&qs(e.charCodeAt(a));)a++;ve=a}else I=3;return e.substring(pe,ve)}function te(){for(var pe="",ve=a;;){if(a>=n){pe+=e.substring(ve,a),I=2;break}var me=e.charCodeAt(a);if(me===34){pe+=e.substring(ve,a),a++;break}if(me===92){if(pe+=e.substring(ve,a),a++,a>=n){I=2;break}var Te=e.charCodeAt(a++);switch(Te){case 34:pe+='"';break;case 92:pe+="\\";break;case 47:pe+="/";break;case 98:pe+="\b";break;case 102:pe+="\f";break;case 110:pe+=`
250
+ `;break;case 114:pe+="\r";break;case 116:pe+=" ";break;case 117:var Ae=M(4,!0);Ae>=0?pe+=String.fromCharCode(Ae):I=4;break;default:I=5}ve=a;continue}if(me>=0&&me<=31)if(Eu(me)){pe+=e.substring(ve,a),I=2;break}else I=6;a++}return pe}function q(){if(s="",I=0,c=a,v=g,b=y,a>=n)return c=n,p=17;var pe=e.charCodeAt(a);if(ap(pe)){do a++,s+=String.fromCharCode(pe),pe=e.charCodeAt(a);while(ap(pe));return p=15}if(Eu(pe))return a++,s+=String.fromCharCode(pe),pe===13&&e.charCodeAt(a)===10&&(a++,s+=`
251
+ `),g++,y=a,p=14;switch(pe){case 123:return a++,p=1;case 125:return a++,p=2;case 91:return a++,p=3;case 93:return a++,p=4;case 58:return a++,p=6;case 44:return a++,p=5;case 34:return a++,s=te(),p=10;case 47:var ve=a-1;if(e.charCodeAt(a+1)===47){for(a+=2;a<n&&!Eu(e.charCodeAt(a));)a++;return s=e.substring(ve,a),p=12}if(e.charCodeAt(a+1)===42){a+=2;for(var me=n-1,Te=!1;a<me;){var Ae=e.charCodeAt(a);if(Ae===42&&e.charCodeAt(a+1)===47){a+=2,Te=!0;break}a++,Eu(Ae)&&(Ae===13&&e.charCodeAt(a)===10&&a++,g++,y=a)}return Te||(a++,I=1),s=e.substring(ve,a),p=13}return s+=String.fromCharCode(pe),a++,p=16;case 45:if(s+=String.fromCharCode(pe),a++,a===n||!qs(e.charCodeAt(a)))return p=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return s+=G(),p=11;default:for(;a<n&&le(pe);)a++,pe=e.charCodeAt(a);if(c!==a){switch(s=e.substring(c,a),s){case"true":return p=8;case"false":return p=9;case"null":return p=7}return p=16}return s+=String.fromCharCode(pe),a++,p=16}}function le(pe){if(ap(pe)||Eu(pe))return!1;switch(pe){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function ae(){var pe;do pe=q();while(pe>=12&&pe<=15);return pe}return{setPosition:B,getPosition:function(){return a},scan:r?ae:q,getToken:function(){return p},getTokenValue:function(){return s},getTokenOffset:function(){return c},getTokenLength:function(){return a-c},getTokenStartLine:function(){return v},getTokenStartCharacter:function(){return c-b},getTokenError:function(){return I}}}function ap(e){return e===32||e===9||e===11||e===12||e===160||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Eu(e){return e===10||e===13||e===8232||e===8233}function qs(e){return e>=48&&e<=57}function n0(e,r,n){var a,s,c,p,g;if(r){for(p=r.offset,g=p+r.length,c=p;c>0&&!Gh(e,c-1);)c--;for(var v=g;v<e.length&&!Gh(e,v);)v++;s=e.substring(c,v),a=i0(s,n)}else s=e,a=0,c=0,p=0,g=e.length;var y=a0(n,e),b=!1,I=0,M;n.insertSpaces?M=op(" ",n.tabSize||4):M=" ";var B=Pc(s,!1),G=!1;function te(){return y+op(M,a+I)}function q(){var Re=B.scan();for(b=!1;Re===15||Re===14;)b=b||Re===14,Re=B.scan();return G=Re===16||B.getTokenError()!==0,Re}var le=[];function ae(Re,je,Ge){!G&&je<g&&Ge>p&&e.substring(je,Ge)!==Re&&le.push({offset:je,length:Ge-je,content:Re})}var pe=q();if(pe!==17){var ve=B.getTokenOffset()+c,me=op(M,a);ae(me,c,ve)}for(;pe!==17;){for(var Te=B.getTokenOffset()+B.getTokenLength()+c,Ae=q(),xe="";!b&&(Ae===12||Ae===13);){var Ee=B.getTokenOffset()+c;ae(" ",Te,Ee),Te=B.getTokenOffset()+B.getTokenLength()+c,xe=Ae===12?te():"",Ae=q()}if(Ae===2)pe!==1&&(I--,xe=te());else if(Ae===4)pe!==3&&(I--,xe=te());else{switch(pe){case 3:case 1:I++,xe=te();break;case 5:case 12:xe=te();break;case 13:b?xe=te():xe=" ";break;case 6:xe=" ";break;case 10:if(Ae===6){xe="";break}case 7:case 8:case 9:case 11:case 2:case 4:Ae===12||Ae===13?xe=" ":Ae!==5&&Ae!==17&&(G=!0);break;case 16:G=!0;break}b&&(Ae===12||Ae===13)&&(xe=te())}var ke=B.getTokenOffset()+c;ae(xe,Te,ke),pe=Ae}return le}function op(e,r){for(var n="",a=0;a<r;a++)n+=e;return n}function i0(e,r){for(var n=0,a=0,s=r.tabSize||4;n<e.length;){var c=e.charAt(n);if(c===" ")a++;else if(c===" ")a+=s;else break;n++}return Math.floor(a/s)}function a0(e,r){for(var n=0;n<r.length;n++){var a=r.charAt(n);if(a==="\r")return n+1<r.length&&r.charAt(n+1)===`
252
+ `?`\r
253
+ `:"\r";if(a===`
254
+ `)return`
255
+ `}return e&&e.eol||`
256
+ `}function Gh(e,r){return`\r
257
+ `.indexOf(e.charAt(r))!==-1}var Ou;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Ou||(Ou={}));function o0(e,r){var n=[],a=new Object,s=void 0,c={value:{},offset:0,length:0,type:"object",parent:void 0},p=!1;function g(v,y,b,I){c.value=v,c.offset=y,c.length=b,c.type=I,c.colonOffset=void 0,s=c}try{Ic(e,{onObjectBegin:function(v,y){if(r<=v)throw a;s=void 0,p=r>v,n.push("")},onObjectProperty:function(v,y,b){if(r<y||(g(v,y,b,"property"),n[n.length-1]=v,r<=y+b))throw a},onObjectEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onArrayBegin:function(v,y){if(r<=v)throw a;s=void 0,n.push(0)},onArrayEnd:function(v,y){if(r<=v)throw a;s=void 0,n.pop()},onLiteralValue:function(v,y,b){if(r<y||(g(v,y,b,Yh(v)),r<=y+b))throw a},onSeparator:function(v,y,b){if(r<=y)throw a;if(v===":"&&s&&s.type==="property")s.colonOffset=y,p=!1,s=void 0;else if(v===","){var I=n[n.length-1];typeof I=="number"?n[n.length-1]=I+1:(p=!0,n[n.length-1]=""),s=void 0}}})}catch(v){if(v!==a)throw v}return{path:n,previousNode:s,isAtPropertyKey:p,matches:function(v){for(var y=0,b=0;y<v.length&&b<n.length;b++)if(v[y]===n[b]||v[y]==="*")y++;else if(v[y]!=="**")return!1;return y===v.length}}}function s0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Ou.DEFAULT);var a=null,s=[],c=[];function p(v){Array.isArray(s)?s.push(v):a!==null&&(s[a]=v)}var g={onObjectBegin:function(){var v={};p(v),c.push(s),s=v,a=null},onObjectProperty:function(v){a=v},onObjectEnd:function(){s=c.pop()},onArrayBegin:function(){var v=[];p(v),c.push(s),s=v,a=null},onArrayEnd:function(){s=c.pop()},onLiteralValue:p,onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};return Ic(e,g,n),s[0]}function l0(e,r,n){r===void 0&&(r=[]),n===void 0&&(n=Ou.DEFAULT);var a={type:"array",offset:-1,length:-1,children:[],parent:void 0};function s(v){a.type==="property"&&(a.length=v-a.offset,a=a.parent)}function c(v){return a.children.push(v),v}var p={onObjectBegin:function(v){a=c({type:"object",offset:v,length:-1,parent:a,children:[]})},onObjectProperty:function(v,y,b){a=c({type:"property",offset:y,length:-1,parent:a,children:[]}),a.children.push({type:"string",value:v,offset:y,length:b,parent:a})},onObjectEnd:function(v,y){s(v+y),a.length=v+y-a.offset,a=a.parent,s(v+y)},onArrayBegin:function(v,y){a=c({type:"array",offset:v,length:-1,parent:a,children:[]})},onArrayEnd:function(v,y){a.length=v+y-a.offset,a=a.parent,s(v+y)},onLiteralValue:function(v,y,b){c({type:Yh(v),offset:y,length:b,parent:a,value:v}),s(y+b)},onSeparator:function(v,y,b){a.type==="property"&&(v===":"?a.colonOffset=y:v===","&&s(y))},onError:function(v,y,b){r.push({error:v,offset:y,length:b})}};Ic(e,p,n);var g=a.children[0];return g&&delete g.parent,g}function u0(e,r){if(!!e){for(var n=e,a=0,s=r;a<s.length;a++){var c=s[a];if(typeof c=="string"){if(n.type!=="object"||!Array.isArray(n.children))return;for(var p=!1,g=0,v=n.children;g<v.length;g++){var y=v[g];if(Array.isArray(y.children)&&y.children[0].value===c){n=y.children[1],p=!0;break}}if(!p)return}else{var b=c;if(n.type!=="array"||b<0||!Array.isArray(n.children)||b>=n.children.length)return;n=n.children[b]}}return n}}function $h(e){if(!e.parent||!e.parent.children)return[];var r=$h(e.parent);if(e.parent.type==="property"){var n=e.parent.children[0].value;r.push(n)}else if(e.parent.type==="array"){var a=e.parent.children.indexOf(e);a!==-1&&r.push(a)}return r}function sp(e){switch(e.type){case"array":return e.children.map(sp);case"object":for(var r=Object.create(null),n=0,a=e.children;n<a.length;n++){var s=a[n],c=s.children[1];c&&(r[s.children[0].value]=sp(c))}return r;case"null":case"string":case"number":case"boolean":return e.value;default:return}}function f0(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}function Kh(e,r,n){if(n===void 0&&(n=!1),f0(e,r,n)){var a=e.children;if(Array.isArray(a))for(var s=0;s<a.length&&a[s].offset<=r;s++){var c=Kh(a[s],r,n);if(c)return c}return e}}function Ic(e,r,n){n===void 0&&(n=Ou.DEFAULT);var a=Pc(e,!1);function s(Ee){return Ee?function(){return Ee(a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}function c(Ee){return Ee?function(ke){return Ee(ke,a.getTokenOffset(),a.getTokenLength(),a.getTokenStartLine(),a.getTokenStartCharacter())}:function(){return!0}}var p=s(r.onObjectBegin),g=c(r.onObjectProperty),v=s(r.onObjectEnd),y=s(r.onArrayBegin),b=s(r.onArrayEnd),I=c(r.onLiteralValue),M=c(r.onSeparator),B=s(r.onComment),G=c(r.onError),te=n&&n.disallowComments,q=n&&n.allowTrailingComma;function le(){for(;;){var Ee=a.scan();switch(a.getTokenError()){case 4:ae(14);break;case 5:ae(15);break;case 3:ae(13);break;case 1:te||ae(11);break;case 2:ae(12);break;case 6:ae(16);break}switch(Ee){case 12:case 13:te?ae(10):B();break;case 16:ae(1);break;case 15:case 14:break;default:return Ee}}}function ae(Ee,ke,Re){if(ke===void 0&&(ke=[]),Re===void 0&&(Re=[]),G(Ee),ke.length+Re.length>0)for(var je=a.getToken();je!==17;){if(ke.indexOf(je)!==-1){le();break}else if(Re.indexOf(je)!==-1)break;je=le()}}function pe(Ee){var ke=a.getTokenValue();return Ee?I(ke):g(ke),le(),!0}function ve(){switch(a.getToken()){case 11:var Ee=a.getTokenValue(),ke=Number(Ee);isNaN(ke)&&(ae(2),ke=0),I(ke);break;case 7:I(null);break;case 8:I(!0);break;case 9:I(!1);break;default:return!1}return le(),!0}function me(){return a.getToken()!==10?(ae(3,[],[2,5]),!1):(pe(!1),a.getToken()===6?(M(":"),le(),xe()||ae(4,[],[2,5])):ae(5,[],[2,5]),!0)}function Te(){p(),le();for(var Ee=!1;a.getToken()!==2&&a.getToken()!==17;){if(a.getToken()===5){if(Ee||ae(4,[],[]),M(","),le(),a.getToken()===2&&q)break}else Ee&&ae(6,[],[]);me()||ae(4,[],[2,5]),Ee=!0}return v(),a.getToken()!==2?ae(7,[2],[]):le(),!0}function Ae(){y(),le();for(var Ee=!1;a.getToken()!==4&&a.getToken()!==17;){if(a.getToken()===5){if(Ee||ae(4,[],[]),M(","),le(),a.getToken()===4&&q)break}else Ee&&ae(6,[],[]);xe()||ae(4,[],[4,5]),Ee=!0}return b(),a.getToken()!==4?ae(8,[4],[]):le(),!0}function xe(){switch(a.getToken()){case 3:return Ae();case 1:return Te();case 10:return pe(!0);default:return ve()}}return le(),a.getToken()===17?n.allowEmptyContent?!0:(ae(4,[],[]),!1):xe()?(a.getToken()!==17&&ae(9,[],[]),!0):(ae(4,[],[]),!1)}function c0(e,r){var n=Pc(e),a=[],s,c=0,p;do switch(p=n.getPosition(),s=n.scan(),s){case 12:case 13:case 17:c!==p&&a.push(e.substring(c,p)),r!==void 0&&a.push(n.getTokenValue().replace(/[^\r\n]/g,r)),c=n.getPosition();break}while(s!==17);return a.join("")}function Yh(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"object":{if(e){if(Array.isArray(e))return"array"}else return"null";return"object"}default:return"null"}}function b1(e,r,n){return d0(e,r,void 0,n)}function d0(e,r,n,a){for(var s,c=r.slice(),p=[],g=parseTree(e,p),v=void 0,y=void 0;c.length>0&&(y=c.pop(),v=findNodeAtLocation(g,c),v===void 0&&n!==void 0);)typeof y=="string"?n=(s={},s[y]=n,s):n=[n];if(v)if(v.type==="object"&&typeof y=="string"&&Array.isArray(v.children)){var b=findNodeAtLocation(v,[y]);if(b!==void 0)if(n===void 0){if(!b.parent)throw new Error("Malformed AST");var I=v.children.indexOf(b.parent),M=void 0,B=b.parent.offset+b.parent.length;if(I>0){var G=v.children[I-1];M=G.offset+G.length}else if(M=v.offset+1,v.children.length>1){var te=v.children[1];B=te.offset}return Qo(e,{offset:M,length:B-M,content:""},a)}else return Qo(e,{offset:b.offset,length:b.length,content:JSON.stringify(n)},a);else{if(n===void 0)return[];var q=JSON.stringify(y)+": "+JSON.stringify(n),le=a.getInsertionIndex?a.getInsertionIndex(v.children.map(function(Ee){return Ee.children[0].value})):v.children.length,ae=void 0;if(le>0){var G=v.children[le-1];ae={offset:G.offset+G.length,length:0,content:","+q}}else v.children.length===0?ae={offset:v.offset+1,length:0,content:q}:ae={offset:v.offset+1,length:0,content:q+","};return Qo(e,ae,a)}}else if(v.type==="array"&&typeof y=="number"&&Array.isArray(v.children)){var pe=y;if(pe===-1){var q=""+JSON.stringify(n),ae=void 0;if(v.children.length===0)ae={offset:v.offset+1,length:0,content:q};else{var G=v.children[v.children.length-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Qo(e,ae,a)}else if(n===void 0&&v.children.length>=0){var ve=y,me=v.children[ve],ae=void 0;if(v.children.length===1)ae={offset:v.offset+1,length:v.length-2,content:""};else if(v.children.length-1===ve){var G=v.children[ve-1],Te=G.offset+G.length,Ae=v.offset+v.length;ae={offset:Te,length:Ae-2-Te,content:""}}else ae={offset:me.offset,length:v.children[ve+1].offset-me.offset,content:""};return Qo(e,ae,a)}else if(n!==void 0){var ae=void 0,q=""+JSON.stringify(n);if(!a.isArrayInsertion&&v.children.length>y){var xe=v.children[y];ae={offset:xe.offset,length:xe.length,content:q}}else if(v.children.length===0||y===0)ae={offset:v.offset+1,length:0,content:v.children.length===0?q:q+","};else{var le=y>v.children.length?v.children.length:y,G=v.children[le-1];ae={offset:G.offset+G.length,length:0,content:","+q}}return Qo(e,ae,a)}else throw new Error("Can not "+(n===void 0?"remove":a.isArrayInsertion?"insert":"modify")+" Array index "+pe+" as length is not sufficient")}else throw new Error("Can not add "+(typeof y!="number"?"index":"property")+" to parent of type "+v.type);else{if(n===void 0)throw new Error("Can not delete in empty document");return Qo(e,{offset:g?g.offset:0,length:g?g.length:0,content:JSON.stringify(n)},a)}}function Qo(e,r,n){if(!n.formattingOptions)return[r];var a=Jh(e,r),s=r.offset,c=r.offset+r.content.length;if(r.length===0||r.content.length===0){for(;s>0&&!isEOL(a,s-1);)s--;for(;c<a.length&&!isEOL(a,c);)c++}for(var p=format(a,{offset:s,length:c-s},n.formattingOptions),g=p.length-1;g>=0;g--){var v=p[g];a=Jh(a,v),s=Math.min(s,v.offset),c=Math.max(c,v.offset+v.length),c+=v.content.length-v.length}var y=e.length-(a.length-c)-s;return[{offset:s,length:y,content:a.substring(s,c)}]}function Jh(e,r){return e.substring(0,r.offset)+r.content+e.substring(r.offset+r.length)}function x1(e,r){return`\r
258
+ `.indexOf(e.charAt(r))!==-1}var _s=Pc,S1=o0,p0=s0,w1=l0,A1=u0,h0=Kh,v0=$h,g0=sp,C1=Ic,E1=c0;function O1(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}function m0(e,r,n){return n0(e,r,n)}function T1(e,r,n,a){return edit.setProperty(e,r,n,a)}function P1(e,r){for(var n=r.length-1;n>=0;n--)e=edit.applyEdit(e,r[n]);return e}function Tu(e,r){if(e===r)return!0;if(e==null||r===null||r===void 0||typeof e!=typeof r||typeof e!="object"||Array.isArray(e)!==Array.isArray(r))return!1;var n,a;if(Array.isArray(e)){if(e.length!==r.length)return!1;for(n=0;n<e.length;n++)if(!Tu(e[n],r[n]))return!1}else{var s=[];for(a in e)s.push(a);s.sort();var c=[];for(a in r)c.push(a);if(c.sort(),!Tu(s,c))return!1;for(n=0;n<s.length;n++)if(!Tu(e[s[n]],r[s[n]]))return!1}return!0}function Qn(e){return typeof e=="number"}function La(e){return typeof e!="undefined"}function Zi(e){return typeof e=="boolean"}function y0(e){return typeof e=="string"}var Xh;(function(e){function r(n){return typeof n=="string"}e.is=r})(Xh||(Xh={}));var lp;(function(e){function r(n){return typeof n=="string"}e.is=r})(lp||(lp={}));var Qh;(function(e){e.MIN_VALUE=-2147483648,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(Qh||(Qh={}));var kc;(function(e){e.MIN_VALUE=0,e.MAX_VALUE=2147483647;function r(n){return typeof n=="number"&&e.MIN_VALUE<=n&&n<=e.MAX_VALUE}e.is=r})(kc||(kc={}));var ui;(function(e){function r(a,s){return a===Number.MAX_VALUE&&(a=kc.MAX_VALUE),s===Number.MAX_VALUE&&(s=kc.MAX_VALUE),{line:a,character:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.line)&&Pe.uinteger(s.character)}e.is=n})(ui||(ui={}));var ar;(function(e){function r(a,s,c,p){if(Pe.uinteger(a)&&Pe.uinteger(s)&&Pe.uinteger(c)&&Pe.uinteger(p))return{start:ui.create(a,s),end:ui.create(c,p)};if(ui.is(a)&&ui.is(s))return{start:a,end:s};throw new Error("Range#create called with invalid arguments[".concat(a,", ").concat(s,", ").concat(c,", ").concat(p,"]"))}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ui.is(s.start)&&ui.is(s.end)}e.is=n})(ar||(ar={}));var el;(function(e){function r(a,s){return{uri:a,range:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ar.is(s.range)&&(Pe.string(s.uri)||Pe.undefined(s.uri))}e.is=n})(el||(el={}));var Zh;(function(e){function r(a,s,c,p){return{targetUri:a,targetRange:s,targetSelectionRange:c,originSelectionRange:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ar.is(s.targetRange)&&Pe.string(s.targetUri)&&ar.is(s.targetSelectionRange)&&(ar.is(s.originSelectionRange)||Pe.undefined(s.originSelectionRange))}e.is=n})(Zh||(Zh={}));var up;(function(e){function r(a,s,c,p){return{red:a,green:s,blue:c,alpha:p}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.numberRange(s.red,0,1)&&Pe.numberRange(s.green,0,1)&&Pe.numberRange(s.blue,0,1)&&Pe.numberRange(s.alpha,0,1)}e.is=n})(up||(up={}));var qh;(function(e){function r(a,s){return{range:a,color:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ar.is(s.range)&&up.is(s.color)}e.is=n})(qh||(qh={}));var _h;(function(e){function r(a,s,c){return{label:a,textEdit:s,additionalTextEdits:c}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.undefined(s.textEdit)||fi.is(s))&&(Pe.undefined(s.additionalTextEdits)||Pe.typedArray(s.additionalTextEdits,fi.is))}e.is=n})(_h||(_h={}));var Pu;(function(e){e.Comment="comment",e.Imports="imports",e.Region="region"})(Pu||(Pu={}));var ev;(function(e){function r(a,s,c,p,g,v){var y={startLine:a,endLine:s};return Pe.defined(c)&&(y.startCharacter=c),Pe.defined(p)&&(y.endCharacter=p),Pe.defined(g)&&(y.kind=g),Pe.defined(v)&&(y.collapsedText=v),y}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.uinteger(s.startLine)&&Pe.uinteger(s.startLine)&&(Pe.undefined(s.startCharacter)||Pe.uinteger(s.startCharacter))&&(Pe.undefined(s.endCharacter)||Pe.uinteger(s.endCharacter))&&(Pe.undefined(s.kind)||Pe.string(s.kind))}e.is=n})(ev||(ev={}));var fp;(function(e){function r(a,s){return{location:a,message:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&el.is(s.location)&&Pe.string(s.message)}e.is=n})(fp||(fp={}));var Vt;(function(e){e.Error=1,e.Warning=2,e.Information=3,e.Hint=4})(Vt||(Vt={}));var tv;(function(e){e.Unnecessary=1,e.Deprecated=2})(tv||(tv={}));var rv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&Pe.string(a.href)}e.is=r})(rv||(rv={}));var Na;(function(e){function r(a,s,c,p,g,v){var y={range:a,message:s};return Pe.defined(c)&&(y.severity=c),Pe.defined(p)&&(y.code=p),Pe.defined(g)&&(y.source=g),Pe.defined(v)&&(y.relatedInformation=v),y}e.create=r;function n(a){var s,c=a;return Pe.defined(c)&&ar.is(c.range)&&Pe.string(c.message)&&(Pe.number(c.severity)||Pe.undefined(c.severity))&&(Pe.integer(c.code)||Pe.string(c.code)||Pe.undefined(c.code))&&(Pe.undefined(c.codeDescription)||Pe.string((s=c.codeDescription)===null||s===void 0?void 0:s.href))&&(Pe.string(c.source)||Pe.undefined(c.source))&&(Pe.undefined(c.relatedInformation)||Pe.typedArray(c.relatedInformation,fp.is))}e.is=n})(Na||(Na={}));var tl;(function(e){function r(a,s){for(var c=[],p=2;p<arguments.length;p++)c[p-2]=arguments[p];var g={title:a,command:s};return Pe.defined(c)&&c.length>0&&(g.arguments=c),g}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.title)&&Pe.string(s.command)}e.is=n})(tl||(tl={}));var fi;(function(e){function r(c,p){return{range:c,newText:p}}e.replace=r;function n(c,p){return{range:{start:c,end:c},newText:p}}e.insert=n;function a(c){return{range:c,newText:""}}e.del=a;function s(c){var p=c;return Pe.objectLiteral(p)&&Pe.string(p.newText)&&ar.is(p.range)}e.is=s})(fi||(fi={}));var rl;(function(e){function r(a,s,c){var p={label:a};return s!==void 0&&(p.needsConfirmation=s),c!==void 0&&(p.description=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&Pe.string(s.label)&&(Pe.boolean(s.needsConfirmation)||s.needsConfirmation===void 0)&&(Pe.string(s.description)||s.description===void 0)}e.is=n})(rl||(rl={}));var bn;(function(e){function r(n){var a=n;return Pe.string(a)}e.is=r})(bn||(bn={}));var lo;(function(e){function r(c,p,g){return{range:c,newText:p,annotationId:g}}e.replace=r;function n(c,p,g){return{range:{start:c,end:c},newText:p,annotationId:g}}e.insert=n;function a(c,p){return{range:c,newText:"",annotationId:p}}e.del=a;function s(c){var p=c;return fi.is(p)&&(rl.is(p.annotationId)||bn.is(p.annotationId))}e.is=s})(lo||(lo={}));var Fc;(function(e){function r(a,s){return{textDocument:a,edits:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Mc.is(s.textDocument)&&Array.isArray(s.edits)}e.is=n})(Fc||(Fc={}));var Iu;(function(e){function r(a,s,c){var p={kind:"create",uri:a};return s!==void 0&&(s.overwrite!==void 0||s.ignoreIfExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="create"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}e.is=n})(Iu||(Iu={}));var ku;(function(e){function r(a,s,c,p){var g={kind:"rename",oldUri:a,newUri:s};return c!==void 0&&(c.overwrite!==void 0||c.ignoreIfExists!==void 0)&&(g.options=c),p!==void 0&&(g.annotationId=p),g}e.create=r;function n(a){var s=a;return s&&s.kind==="rename"&&Pe.string(s.oldUri)&&Pe.string(s.newUri)&&(s.options===void 0||(s.options.overwrite===void 0||Pe.boolean(s.options.overwrite))&&(s.options.ignoreIfExists===void 0||Pe.boolean(s.options.ignoreIfExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}e.is=n})(ku||(ku={}));var Fu;(function(e){function r(a,s,c){var p={kind:"delete",uri:a};return s!==void 0&&(s.recursive!==void 0||s.ignoreIfNotExists!==void 0)&&(p.options=s),c!==void 0&&(p.annotationId=c),p}e.create=r;function n(a){var s=a;return s&&s.kind==="delete"&&Pe.string(s.uri)&&(s.options===void 0||(s.options.recursive===void 0||Pe.boolean(s.options.recursive))&&(s.options.ignoreIfNotExists===void 0||Pe.boolean(s.options.ignoreIfNotExists)))&&(s.annotationId===void 0||bn.is(s.annotationId))}e.is=n})(Fu||(Fu={}));var cp;(function(e){function r(n){var a=n;return a&&(a.changes!==void 0||a.documentChanges!==void 0)&&(a.documentChanges===void 0||a.documentChanges.every(function(s){return Pe.string(s.kind)?Iu.is(s)||ku.is(s)||Fu.is(s):Fc.is(s)}))}e.is=r})(cp||(cp={}));var Rc=function(){function e(r,n){this.edits=r,this.changeAnnotations=n}return e.prototype.insert=function(r,n,a){var s,c;if(a===void 0?s=fi.insert(r,n):bn.is(a)?(c=a,s=lo.insert(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=lo.insert(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.replace=function(r,n,a){var s,c;if(a===void 0?s=fi.replace(r,n):bn.is(a)?(c=a,s=lo.replace(r,n,a)):(this.assertChangeAnnotations(this.changeAnnotations),c=this.changeAnnotations.manage(a),s=lo.replace(r,n,c)),this.edits.push(s),c!==void 0)return c},e.prototype.delete=function(r,n){var a,s;if(n===void 0?a=fi.del(r):bn.is(n)?(s=n,a=lo.del(r,n)):(this.assertChangeAnnotations(this.changeAnnotations),s=this.changeAnnotations.manage(n),a=lo.del(r,s)),this.edits.push(a),s!==void 0)return s},e.prototype.add=function(r){this.edits.push(r)},e.prototype.all=function(){return this.edits},e.prototype.clear=function(){this.edits.splice(0,this.edits.length)},e.prototype.assertChangeAnnotations=function(r){if(r===void 0)throw new Error("Text edit change is not configured to manage change annotations.")},e}(),nv=function(){function e(r){this._annotations=r===void 0?Object.create(null):r,this._counter=0,this._size=0}return e.prototype.all=function(){return this._annotations},Object.defineProperty(e.prototype,"size",{get:function(){return this._size},enumerable:!1,configurable:!0}),e.prototype.manage=function(r,n){var a;if(bn.is(r)?a=r:(a=this.nextId(),n=r),this._annotations[a]!==void 0)throw new Error("Id ".concat(a," is already in use."));if(n===void 0)throw new Error("No annotation provided for id ".concat(a));return this._annotations[a]=n,this._size++,a},e.prototype.nextId=function(){return this._counter++,this._counter.toString()},e}(),I1=function(){function e(r){var n=this;this._textEditChanges=Object.create(null),r!==void 0?(this._workspaceEdit=r,r.documentChanges?(this._changeAnnotations=new nv(r.changeAnnotations),r.changeAnnotations=this._changeAnnotations.all(),r.documentChanges.forEach(function(a){if(Fc.is(a)){var s=new Rc(a.edits,n._changeAnnotations);n._textEditChanges[a.textDocument.uri]=s}})):r.changes&&Object.keys(r.changes).forEach(function(a){var s=new Rc(r.changes[a]);n._textEditChanges[a]=s})):this._workspaceEdit={}}return Object.defineProperty(e.prototype,"edit",{get:function(){return this.initDocumentChanges(),this._changeAnnotations!==void 0&&(this._changeAnnotations.size===0?this._workspaceEdit.changeAnnotations=void 0:this._workspaceEdit.changeAnnotations=this._changeAnnotations.all()),this._workspaceEdit},enumerable:!1,configurable:!0}),e.prototype.getTextEditChange=function(r){if(Mc.is(r)){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var n={uri:r.uri,version:r.version},a=this._textEditChanges[n.uri];if(!a){var s=[],c={textDocument:n,edits:s};this._workspaceEdit.documentChanges.push(c),a=new Rc(s,this._changeAnnotations),this._textEditChanges[n.uri]=a}return a}else{if(this.initChanges(),this._workspaceEdit.changes===void 0)throw new Error("Workspace edit is not configured for normal text edit changes.");var a=this._textEditChanges[r];if(!a){var s=[];this._workspaceEdit.changes[r]=s,a=new Rc(s),this._textEditChanges[r]=a}return a}},e.prototype.initDocumentChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._changeAnnotations=new nv,this._workspaceEdit.documentChanges=[],this._workspaceEdit.changeAnnotations=this._changeAnnotations.all())},e.prototype.initChanges=function(){this._workspaceEdit.documentChanges===void 0&&this._workspaceEdit.changes===void 0&&(this._workspaceEdit.changes=Object.create(null))},e.prototype.createFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;rl.is(n)||bn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=Iu.create(r,a):(p=bn.is(s)?s:this._changeAnnotations.manage(s),c=Iu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e.prototype.renameFile=function(r,n,a,s){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var c;rl.is(a)||bn.is(a)?c=a:s=a;var p,g;if(c===void 0?p=ku.create(r,n,s):(g=bn.is(c)?c:this._changeAnnotations.manage(c),p=ku.create(r,n,s,g)),this._workspaceEdit.documentChanges.push(p),g!==void 0)return g},e.prototype.deleteFile=function(r,n,a){if(this.initDocumentChanges(),this._workspaceEdit.documentChanges===void 0)throw new Error("Workspace edit is not configured for document changes.");var s;rl.is(n)||bn.is(n)?s=n:a=n;var c,p;if(s===void 0?c=Fu.create(r,a):(p=bn.is(s)?s:this._changeAnnotations.manage(s),c=Fu.create(r,a,p)),this._workspaceEdit.documentChanges.push(c),p!==void 0)return p},e}(),iv;(function(e){function r(a){return{uri:a}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)}e.is=n})(iv||(iv={}));var av;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.integer(s.version)}e.is=n})(av||(av={}));var Mc;(function(e){function r(a,s){return{uri:a,version:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&(s.version===null||Pe.integer(s.version))}e.is=n})(Mc||(Mc={}));var ov;(function(e){function r(a,s,c,p){return{uri:a,languageId:s,version:c,text:p}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.string(s.uri)&&Pe.string(s.languageId)&&Pe.integer(s.version)&&Pe.string(s.text)}e.is=n})(ov||(ov={}));var Zo;(function(e){e.PlainText="plaintext",e.Markdown="markdown";function r(n){var a=n;return a===e.PlainText||a===e.Markdown}e.is=r})(Zo||(Zo={}));var Ru;(function(e){function r(n){var a=n;return Pe.objectLiteral(n)&&Zo.is(a.kind)&&Pe.string(a.value)}e.is=r})(Ru||(Ru={}));var Zn;(function(e){e.Text=1,e.Method=2,e.Function=3,e.Constructor=4,e.Field=5,e.Variable=6,e.Class=7,e.Interface=8,e.Module=9,e.Property=10,e.Unit=11,e.Value=12,e.Enum=13,e.Keyword=14,e.Snippet=15,e.Color=16,e.File=17,e.Reference=18,e.Folder=19,e.EnumMember=20,e.Constant=21,e.Struct=22,e.Event=23,e.Operator=24,e.TypeParameter=25})(Zn||(Zn={}));var Qr;(function(e){e.PlainText=1,e.Snippet=2})(Qr||(Qr={}));var sv;(function(e){e.Deprecated=1})(sv||(sv={}));var lv;(function(e){function r(a,s,c){return{newText:a,insert:s,replace:c}}e.create=r;function n(a){var s=a;return s&&Pe.string(s.newText)&&ar.is(s.insert)&&ar.is(s.replace)}e.is=n})(lv||(lv={}));var uv;(function(e){e.asIs=1,e.adjustIndentation=2})(uv||(uv={}));var fv;(function(e){function r(n){var a=n;return a&&(Pe.string(a.detail)||a.detail===void 0)&&(Pe.string(a.description)||a.description===void 0)}e.is=r})(fv||(fv={}));var dp;(function(e){function r(n){return{label:n}}e.create=r})(dp||(dp={}));var cv;(function(e){function r(n,a){return{items:n||[],isIncomplete:!!a}}e.create=r})(cv||(cv={}));var Lc;(function(e){function r(a){return a.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}e.fromPlainText=r;function n(a){var s=a;return Pe.string(s)||Pe.objectLiteral(s)&&Pe.string(s.language)&&Pe.string(s.value)}e.is=n})(Lc||(Lc={}));var dv;(function(e){function r(n){var a=n;return!!a&&Pe.objectLiteral(a)&&(Ru.is(a.contents)||Lc.is(a.contents)||Pe.typedArray(a.contents,Lc.is))&&(n.range===void 0||ar.is(n.range))}e.is=r})(dv||(dv={}));var pv;(function(e){function r(n,a){return a?{label:n,documentation:a}:{label:n}}e.create=r})(pv||(pv={}));var hv;(function(e){function r(n,a){for(var s=[],c=2;c<arguments.length;c++)s[c-2]=arguments[c];var p={label:n};return Pe.defined(a)&&(p.documentation=a),Pe.defined(s)?p.parameters=s:p.parameters=[],p}e.create=r})(hv||(hv={}));var vv;(function(e){e.Text=1,e.Read=2,e.Write=3})(vv||(vv={}));var gv;(function(e){function r(n,a){var s={range:n};return Pe.number(a)&&(s.kind=a),s}e.create=r})(gv||(gv={}));var qi;(function(e){e.File=1,e.Module=2,e.Namespace=3,e.Package=4,e.Class=5,e.Method=6,e.Property=7,e.Field=8,e.Constructor=9,e.Enum=10,e.Interface=11,e.Function=12,e.Variable=13,e.Constant=14,e.String=15,e.Number=16,e.Boolean=17,e.Array=18,e.Object=19,e.Key=20,e.Null=21,e.EnumMember=22,e.Struct=23,e.Event=24,e.Operator=25,e.TypeParameter=26})(qi||(qi={}));var mv;(function(e){e.Deprecated=1})(mv||(mv={}));var yv;(function(e){function r(n,a,s,c,p){var g={name:n,kind:a,location:{uri:c,range:s}};return p&&(g.containerName=p),g}e.create=r})(yv||(yv={}));var bv;(function(e){function r(n,a,s,c){return c!==void 0?{name:n,kind:a,location:{uri:s,range:c}}:{name:n,kind:a,location:{uri:s}}}e.create=r})(bv||(bv={}));var xv;(function(e){function r(a,s,c,p,g,v){var y={name:a,detail:s,kind:c,range:p,selectionRange:g};return v!==void 0&&(y.children=v),y}e.create=r;function n(a){var s=a;return s&&Pe.string(s.name)&&Pe.number(s.kind)&&ar.is(s.range)&&ar.is(s.selectionRange)&&(s.detail===void 0||Pe.string(s.detail))&&(s.deprecated===void 0||Pe.boolean(s.deprecated))&&(s.children===void 0||Array.isArray(s.children))&&(s.tags===void 0||Array.isArray(s.tags))}e.is=n})(xv||(xv={}));var Sv;(function(e){e.Empty="",e.QuickFix="quickfix",e.Refactor="refactor",e.RefactorExtract="refactor.extract",e.RefactorInline="refactor.inline",e.RefactorRewrite="refactor.rewrite",e.Source="source",e.SourceOrganizeImports="source.organizeImports",e.SourceFixAll="source.fixAll"})(Sv||(Sv={}));var Nc;(function(e){e.Invoked=1,e.Automatic=2})(Nc||(Nc={}));var wv;(function(e){function r(a,s,c){var p={diagnostics:a};return s!=null&&(p.only=s),c!=null&&(p.triggerKind=c),p}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.typedArray(s.diagnostics,Na.is)&&(s.only===void 0||Pe.typedArray(s.only,Pe.string))&&(s.triggerKind===void 0||s.triggerKind===Nc.Invoked||s.triggerKind===Nc.Automatic)}e.is=n})(wv||(wv={}));var Av;(function(e){function r(a,s,c){var p={title:a},g=!0;return typeof s=="string"?(g=!1,p.kind=s):tl.is(s)?p.command=s:p.edit=s,g&&c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return s&&Pe.string(s.title)&&(s.diagnostics===void 0||Pe.typedArray(s.diagnostics,Na.is))&&(s.kind===void 0||Pe.string(s.kind))&&(s.edit!==void 0||s.command!==void 0)&&(s.command===void 0||tl.is(s.command))&&(s.isPreferred===void 0||Pe.boolean(s.isPreferred))&&(s.edit===void 0||cp.is(s.edit))}e.is=n})(Av||(Av={}));var Cv;(function(e){function r(a,s){var c={range:a};return Pe.defined(s)&&(c.data=s),c}e.create=r;function n(a){var s=a;return Pe.defined(s)&&ar.is(s.range)&&(Pe.undefined(s.command)||tl.is(s.command))}e.is=n})(Cv||(Cv={}));var Ev;(function(e){function r(a,s){return{tabSize:a,insertSpaces:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&Pe.uinteger(s.tabSize)&&Pe.boolean(s.insertSpaces)}e.is=n})(Ev||(Ev={}));var Ov;(function(e){function r(a,s,c){return{range:a,target:s,data:c}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&ar.is(s.range)&&(Pe.undefined(s.target)||Pe.string(s.target))}e.is=n})(Ov||(Ov={}));var Dc;(function(e){function r(a,s){return{range:a,parent:s}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ar.is(s.range)&&(s.parent===void 0||e.is(s.parent))}e.is=n})(Dc||(Dc={}));var Tv;(function(e){e.namespace="namespace",e.type="type",e.class="class",e.enum="enum",e.interface="interface",e.struct="struct",e.typeParameter="typeParameter",e.parameter="parameter",e.variable="variable",e.property="property",e.enumMember="enumMember",e.event="event",e.function="function",e.method="method",e.macro="macro",e.keyword="keyword",e.modifier="modifier",e.comment="comment",e.string="string",e.number="number",e.regexp="regexp",e.operator="operator",e.decorator="decorator"})(Tv||(Tv={}));var Pv;(function(e){e.declaration="declaration",e.definition="definition",e.readonly="readonly",e.static="static",e.deprecated="deprecated",e.abstract="abstract",e.async="async",e.modification="modification",e.documentation="documentation",e.defaultLibrary="defaultLibrary"})(Pv||(Pv={}));var Iv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&(a.resultId===void 0||typeof a.resultId=="string")&&Array.isArray(a.data)&&(a.data.length===0||typeof a.data[0]=="number")}e.is=r})(Iv||(Iv={}));var kv;(function(e){function r(a,s){return{range:a,text:s}}e.create=r;function n(a){var s=a;return s!=null&&ar.is(s.range)&&Pe.string(s.text)}e.is=n})(kv||(kv={}));var Fv;(function(e){function r(a,s,c){return{range:a,variableName:s,caseSensitiveLookup:c}}e.create=r;function n(a){var s=a;return s!=null&&ar.is(s.range)&&Pe.boolean(s.caseSensitiveLookup)&&(Pe.string(s.variableName)||s.variableName===void 0)}e.is=n})(Fv||(Fv={}));var Rv;(function(e){function r(a,s){return{range:a,expression:s}}e.create=r;function n(a){var s=a;return s!=null&&ar.is(s.range)&&(Pe.string(s.expression)||s.expression===void 0)}e.is=n})(Rv||(Rv={}));var Mv;(function(e){function r(a,s){return{frameId:a,stoppedLocation:s}}e.create=r;function n(a){var s=a;return Pe.defined(s)&&ar.is(a.stoppedLocation)}e.is=n})(Mv||(Mv={}));var pp;(function(e){e.Type=1,e.Parameter=2;function r(n){return n===1||n===2}e.is=r})(pp||(pp={}));var hp;(function(e){function r(a){return{value:a}}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&(s.tooltip===void 0||Pe.string(s.tooltip)||Ru.is(s.tooltip))&&(s.location===void 0||el.is(s.location))&&(s.command===void 0||tl.is(s.command))}e.is=n})(hp||(hp={}));var Lv;(function(e){function r(a,s,c){var p={position:a,label:s};return c!==void 0&&(p.kind=c),p}e.create=r;function n(a){var s=a;return Pe.objectLiteral(s)&&ui.is(s.position)&&(Pe.string(s.label)||Pe.typedArray(s.label,hp.is))&&(s.kind===void 0||pp.is(s.kind))&&s.textEdits===void 0||Pe.typedArray(s.textEdits,fi.is)&&(s.tooltip===void 0||Pe.string(s.tooltip)||Ru.is(s.tooltip))&&(s.paddingLeft===void 0||Pe.boolean(s.paddingLeft))&&(s.paddingRight===void 0||Pe.boolean(s.paddingRight))}e.is=n})(Lv||(Lv={}));var Nv;(function(e){function r(n){var a=n;return Pe.objectLiteral(a)&&lp.is(a.uri)&&Pe.string(a.name)}e.is=r})(Nv||(Nv={}));var k1=null,Dv;(function(e){function r(c,p,g,v){return new b0(c,p,g,v)}e.create=r;function n(c){var p=c;return!!(Pe.defined(p)&&Pe.string(p.uri)&&(Pe.undefined(p.languageId)||Pe.string(p.languageId))&&Pe.uinteger(p.lineCount)&&Pe.func(p.getText)&&Pe.func(p.positionAt)&&Pe.func(p.offsetAt))}e.is=n;function a(c,p){for(var g=c.getText(),v=s(p,function(G,te){var q=G.range.start.line-te.range.start.line;return q===0?G.range.start.character-te.range.start.character:q}),y=g.length,b=v.length-1;b>=0;b--){var I=v[b],M=c.offsetAt(I.range.start),B=c.offsetAt(I.range.end);if(B<=y)g=g.substring(0,M)+I.newText+g.substring(B,g.length);else throw new Error("Overlapping edit");y=M}return g}e.applyEdits=a;function s(c,p){if(c.length<=1)return c;var g=c.length/2|0,v=c.slice(0,g),y=c.slice(g);s(v,p),s(y,p);for(var b=0,I=0,M=0;b<v.length&&I<y.length;){var B=p(v[b],y[I]);B<=0?c[M++]=v[b++]:c[M++]=y[I++]}for(;b<v.length;)c[M++]=v[b++];for(;I<y.length;)c[M++]=y[I++];return c}})(Dv||(Dv={}));var b0=function(){function e(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}return Object.defineProperty(e.prototype,"uri",{get:function(){return this._uri},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"languageId",{get:function(){return this._languageId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"version",{get:function(){return this._version},enumerable:!1,configurable:!0}),e.prototype.getText=function(r){if(r){var n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content},e.prototype.update=function(r,n){this._content=r.text,this._version=n,this._lineOffsets=void 0},e.prototype.getLineOffsets=function(){if(this._lineOffsets===void 0){for(var r=[],n=this._content,a=!0,s=0;s<n.length;s++){a&&(r.push(s),a=!1);var c=n.charAt(s);a=c==="\r"||c===`
259
+ `,c==="\r"&&s+1<n.length&&n.charAt(s+1)===`
260
+ `&&s++}a&&n.length>0&&r.push(n.length),this._lineOffsets=r}return this._lineOffsets},e.prototype.positionAt=function(r){r=Math.max(Math.min(r,this._content.length),0);var n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return ui.create(0,r);for(;a<s;){var c=Math.floor((a+s)/2);n[c]>r?s=c:a=c+1}var p=a-1;return ui.create(p,r-n[p])},e.prototype.offsetAt=function(r){var n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;var a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)},Object.defineProperty(e.prototype,"lineCount",{get:function(){return this.getLineOffsets().length},enumerable:!1,configurable:!0}),e}(),Pe;(function(e){var r=Object.prototype.toString;function n(B){return typeof B!="undefined"}e.defined=n;function a(B){return typeof B=="undefined"}e.undefined=a;function s(B){return B===!0||B===!1}e.boolean=s;function c(B){return r.call(B)==="[object String]"}e.string=c;function p(B){return r.call(B)==="[object Number]"}e.number=p;function g(B,G,te){return r.call(B)==="[object Number]"&&G<=B&&B<=te}e.numberRange=g;function v(B){return r.call(B)==="[object Number]"&&-2147483648<=B&&B<=2147483647}e.integer=v;function y(B){return r.call(B)==="[object Number]"&&0<=B&&B<=2147483647}e.uinteger=y;function b(B){return r.call(B)==="[object Function]"}e.func=b;function I(B){return B!==null&&typeof B=="object"}e.objectLiteral=I;function M(B,G){return Array.isArray(B)&&B.every(G)}e.typedArray=M})(Pe||(Pe={}));class Mu{constructor(r,n,a,s){this._uri=r,this._languageId=n,this._version=a,this._content=s,this._lineOffsets=void 0}get uri(){return this._uri}get languageId(){return this._languageId}get version(){return this._version}getText(r){if(r){const n=this.offsetAt(r.start),a=this.offsetAt(r.end);return this._content.substring(n,a)}return this._content}update(r,n){for(let a of r)if(Mu.isIncremental(a)){const s=jv(a.range),c=this.offsetAt(s.start),p=this.offsetAt(s.end);this._content=this._content.substring(0,c)+a.text+this._content.substring(p,this._content.length);const g=Math.max(s.start.line,0),v=Math.max(s.end.line,0);let y=this._lineOffsets;const b=Bv(a.text,!1,c);if(v-g===b.length)for(let M=0,B=b.length;M<B;M++)y[M+g+1]=b[M];else b.length<1e4?y.splice(g+1,v-g,...b):this._lineOffsets=y=y.slice(0,g+1).concat(b,y.slice(v+1));const I=a.text.length-(p-c);if(I!==0)for(let M=g+1+b.length,B=y.length;M<B;M++)y[M]=y[M]+I}else if(Mu.isFull(a))this._content=a.text,this._lineOffsets=void 0;else throw new Error("Unknown change event received");this._version=n}getLineOffsets(){return this._lineOffsets===void 0&&(this._lineOffsets=Bv(this._content,!0)),this._lineOffsets}positionAt(r){r=Math.max(Math.min(r,this._content.length),0);let n=this.getLineOffsets(),a=0,s=n.length;if(s===0)return{line:0,character:r};for(;a<s;){let p=Math.floor((a+s)/2);n[p]>r?s=p:a=p+1}let c=a-1;return{line:c,character:r-n[c]}}offsetAt(r){let n=this.getLineOffsets();if(r.line>=n.length)return this._content.length;if(r.line<0)return 0;let a=n[r.line],s=r.line+1<n.length?n[r.line+1]:this._content.length;return Math.max(Math.min(a+r.character,s),a)}get lineCount(){return this.getLineOffsets().length}static isIncremental(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range!==void 0&&(n.rangeLength===void 0||typeof n.rangeLength=="number")}static isFull(r){let n=r;return n!=null&&typeof n.text=="string"&&n.range===void 0&&n.rangeLength===void 0}}var Bc;(function(e){function r(s,c,p,g){return new Mu(s,c,p,g)}e.create=r;function n(s,c,p){if(s instanceof Mu)return s.update(c,p),s;throw new Error("TextDocument.update: document must be created by TextDocument.create")}e.update=n;function a(s,c){let p=s.getText(),g=vp(c.map(x0),(b,I)=>{let M=b.range.start.line-I.range.start.line;return M===0?b.range.start.character-I.range.start.character:M}),v=0;const y=[];for(const b of g){let I=s.offsetAt(b.range.start);if(I<v)throw new Error("Overlapping edit");I>v&&y.push(p.substring(v,I)),b.newText.length&&y.push(b.newText),v=s.offsetAt(b.range.end)}return y.push(p.substr(v)),y.join("")}e.applyEdits=a})(Bc||(Bc={}));function vp(e,r){if(e.length<=1)return e;const n=e.length/2|0,a=e.slice(0,n),s=e.slice(n);vp(a,r),vp(s,r);let c=0,p=0,g=0;for(;c<a.length&&p<s.length;)r(a[c],s[p])<=0?e[g++]=a[c++]:e[g++]=s[p++];for(;c<a.length;)e[g++]=a[c++];for(;p<s.length;)e[g++]=s[p++];return e}function Bv(e,r,n=0){const a=r?[n]:[];for(let s=0;s<e.length;s++){let c=e.charCodeAt(s);(c===13||c===10)&&(c===13&&s+1<e.length&&e.charCodeAt(s+1)===10&&s++,a.push(n+s+1))}return a}function jv(e){const r=e.start,n=e.end;return r.line>n.line||r.line===n.line&&r.character>n.character?{start:n,end:r}:e}function x0(e){const r=jv(e.range);return r!==e.range?{newText:e.newText,range:r}:e}var rr;(function(e){e[e.Undefined=0]="Undefined",e[e.EnumValueMismatch=1]="EnumValueMismatch",e[e.UnexpectedEndOfComment=257]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=258]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=259]="UnexpectedEndOfNumber",e[e.InvalidUnicode=260]="InvalidUnicode",e[e.InvalidEscapeCharacter=261]="InvalidEscapeCharacter",e[e.InvalidCharacter=262]="InvalidCharacter",e[e.PropertyExpected=513]="PropertyExpected",e[e.CommaExpected=514]="CommaExpected",e[e.ColonExpected=515]="ColonExpected",e[e.ValueExpected=516]="ValueExpected",e[e.CommaOrCloseBacketExpected=517]="CommaOrCloseBacketExpected",e[e.CommaOrCloseBraceExpected=518]="CommaOrCloseBraceExpected",e[e.TrailingComma=519]="TrailingComma",e[e.DuplicateKey=520]="DuplicateKey",e[e.CommentNotPermitted=521]="CommentNotPermitted",e[e.SchemaResolveError=768]="SchemaResolveError"})(rr||(rr={}));var Vv;(function(e){e.LATEST={textDocument:{completion:{completionItem:{documentationFormat:[Zo.Markdown,Zo.PlainText],commitCharactersSupport:!0}}}}})(Vv||(Vv={}));var qo=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),S0={"color-hex":{errorMessage:"Invalid color format. Use #RGB, #RGBA, #RRGGBB or #RRGGBBAA.",pattern:/^#([0-9A-Fa-f]{3,4}|([0-9A-Fa-f]{2}){3,4})$/},"date-time":{errorMessage:"String is not a RFC3339 date-time.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])T([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},date:{errorMessage:"String is not a RFC3339 date.",pattern:/^(\d{4})-(0[1-9]|1[0-2])-(0[1-9]|[12][0-9]|3[01])$/i},time:{errorMessage:"String is not a RFC3339 time.",pattern:/^([01][0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)([01][0-9]|2[0-3]):([0-5][0-9]))$/i},email:{errorMessage:"String is not an e-mail address.",pattern:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/}},_o=function(){function e(r,n,a){this.offset=n,this.length=a,this.parent=r}return Object.defineProperty(e.prototype,"children",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.toString=function(){return"type: "+this.type+" ("+this.offset+"/"+this.length+")"+(this.parent?" parent: {"+this.parent.toString()+"}":"")},e}(),w0=function(e){qo(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="null",s.value=null,s}return r}(_o),Uv=function(e){qo(r,e);function r(n,a,s){var c=e.call(this,n,s)||this;return c.type="boolean",c.value=a,c}return r}(_o),A0=function(e){qo(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="array",s.items=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.items},enumerable:!0,configurable:!0}),r}(_o),C0=function(e){qo(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="number",s.isInteger=!0,s.value=Number.NaN,s}return r}(_o),Wv=function(e){qo(r,e);function r(n,a,s){var c=e.call(this,n,a,s)||this;return c.type="string",c.value="",c}return r}(_o),E0=function(e){qo(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="property",s.colonOffset=-1,s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.valueNode?[this.keyNode,this.valueNode]:[this.keyNode]},enumerable:!0,configurable:!0}),r}(_o),O0=function(e){qo(r,e);function r(n,a){var s=e.call(this,n,a)||this;return s.type="object",s.properties=[],s}return Object.defineProperty(r.prototype,"children",{get:function(){return this.properties},enumerable:!0,configurable:!0}),r}(_o);function Mn(e){return Zi(e)?e?{}:{not:{}}:e}var Hv;(function(e){e[e.Key=0]="Key",e[e.Enum=1]="Enum"})(Hv||(Hv={}));var T0=function(){function e(r,n){r===void 0&&(r=-1),n===void 0&&(n=null),this.focusOffset=r,this.exclude=n,this.schemas=[]}return e.prototype.add=function(r){this.schemas.push(r)},e.prototype.merge=function(r){var n;(n=this.schemas).push.apply(n,r.schemas)},e.prototype.include=function(r){return(this.focusOffset===-1||zv(r,this.focusOffset))&&r!==this.exclude},e.prototype.newSub=function(){return new e(-1,this.exclude)},e}(),gp=function(){function e(){}return Object.defineProperty(e.prototype,"schemas",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.add=function(r){},e.prototype.merge=function(r){},e.prototype.include=function(r){return!0},e.prototype.newSub=function(){return this},e.instance=new e,e}(),Ln=function(){function e(){this.problems=[],this.propertiesMatches=0,this.propertiesValueMatches=0,this.primaryValueMatches=0,this.enumValueMatch=!1,this.enumValues=null}return e.prototype.hasProblems=function(){return!!this.problems.length},e.prototype.mergeAll=function(r){for(var n=0,a=r;n<a.length;n++){var s=a[n];this.merge(s)}},e.prototype.merge=function(r){this.problems=this.problems.concat(r.problems)},e.prototype.mergeEnumValues=function(r){if(!this.enumValueMatch&&!r.enumValueMatch&&this.enumValues&&r.enumValues){this.enumValues=this.enumValues.concat(r.enumValues);for(var n=0,a=this.problems;n<a.length;n++){var s=a[n];s.code===rr.EnumValueMismatch&&(s.message="Value is not accepted. Valid values: "+this.enumValues.map(function(c){return JSON.stringify(c)}).join(", ")+".")}}},e.prototype.mergePropertyMatch=function(r){this.merge(r),this.propertiesMatches++,(r.enumValueMatch||!r.hasProblems()&&r.propertiesMatches)&&this.propertiesValueMatches++,r.enumValueMatch&&r.enumValues&&r.enumValues.length===1&&this.primaryValueMatches++},e.prototype.compare=function(r){var n=this.hasProblems();return n!==r.hasProblems()?n?-1:1:this.enumValueMatch!==r.enumValueMatch?r.enumValueMatch?-1:1:this.primaryValueMatches!==r.primaryValueMatches?this.primaryValueMatches-r.primaryValueMatches:this.propertiesValueMatches!==r.propertiesValueMatches?this.propertiesValueMatches-r.propertiesValueMatches:this.propertiesMatches-r.propertiesMatches},e}();function P0(e,r){return r===void 0&&(r=[]),new Gv(e,r,[])}function uo(e){return g0(e)}function mp(e){return v0(e)}function zv(e,r,n){return n===void 0&&(n=!1),r>=e.offset&&r<e.offset+e.length||n&&r===e.offset+e.length}var Gv=function(){function e(r,n,a){n===void 0&&(n=[]),a===void 0&&(a=[]),this.root=r,this.syntaxErrors=n,this.comments=a}return e.prototype.getNodeFromOffset=function(r,n){if(n===void 0&&(n=!1),this.root)return h0(this.root,r,n)},e.prototype.visit=function(r){if(this.root){var n=function(a){var s=r(a),c=a.children;if(Array.isArray(c))for(var p=0;p<c.length&&s;p++)s=n(c[p]);return s};n(this.root)}},e.prototype.validate=function(r,n){if(this.root&&n){var a=new Ln;return dn(this.root,n,a,gp.instance),a.problems.map(function(s){var c=ar.create(r.positionAt(s.location.offset),r.positionAt(s.location.offset+s.location.length));return Na.create(c,s.message,s.severity,s.code)})}return null},e.prototype.getMatchingSchemas=function(r,n,a){n===void 0&&(n=-1),a===void 0&&(a=null);var s=new T0(n,a);return this.root&&r&&dn(this.root,r,new Ln,s),s.schemas},e}();function dn(e,r,n,a){if(!e||!a.include(e))return;switch(e.type){case"object":v(e,r,n,a);break;case"array":g(e,r,n,a);break;case"string":p(e,r,n,a);break;case"number":c(e,r,n,a);break;case"property":return dn(e.valueNode,r,n,a)}s(),a.add({node:e,schema:r});function s(){function y(je){return e.type===je||je==="integer"&&e.type==="number"&&e.isInteger||r.nullable&&e.value===null}if(Array.isArray(r.type)?r.type.some(y)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Vt.Warning,message:r.errorMessage||"Incorrect type. Expected one of "+r.type.join(", ")+"."}):r.type&&(y(r.type)||n.problems.push({location:{offset:e.offset,length:e.length},severity:Vt.Warning,message:r.errorMessage||'Incorrect type. Expected "'+r.type+'".'})),Array.isArray(r.allOf))for(var b=0,I=r.allOf;b<I.length;b++){var M=I[b];dn(e,Mn(M),n,a)}var B=Mn(r.not);if(B){var G=new Ln,te=a.newSub();dn(e,B,G,te),G.hasProblems()||n.problems.push({location:{offset:e.offset,length:e.length},severity:Vt.Warning,message:"Matches a schema that is not allowed."});for(var q=0,le=te.schemas;q<le.length;q++){var ae=le[q];ae.inverted=!ae.inverted,a.add(ae)}}var pe=function(je,Ge){for(var bt=[],qe=null,Zt=0,sr=je;Zt<sr.length;Zt++){var gr=sr[Zt],Pr=Mn(gr),fr=new Ln,Ut=a.newSub();if(dn(e,Pr,fr,Ut),fr.hasProblems()||bt.push(Pr),!qe)qe={schema:Pr,validationResult:fr,matchingSchemas:Ut};else if(!Ge&&!fr.hasProblems()&&!qe.validationResult.hasProblems())qe.matchingSchemas.merge(Ut),qe.validationResult.propertiesMatches+=fr.propertiesMatches,qe.validationResult.propertiesValueMatches+=fr.propertiesValueMatches;else{var cr=fr.compare(qe.validationResult);cr>0?qe={schema:Pr,validationResult:fr,matchingSchemas:Ut}:cr===0&&(qe.matchingSchemas.merge(Ut),qe.validationResult.mergeEnumValues(fr))}}return bt.length>1&&Ge&&n.problems.push({location:{offset:e.offset,length:1},severity:Vt.Warning,message:"Matches multiple schemas when only one must validate."}),qe!==null&&(n.merge(qe.validationResult),n.propertiesMatches+=qe.validationResult.propertiesMatches,n.propertiesValueMatches+=qe.validationResult.propertiesValueMatches,a.merge(qe.matchingSchemas)),bt.length};Array.isArray(r.anyOf)&&pe(r.anyOf,!1),Array.isArray(r.oneOf)&&pe(r.oneOf,!0);var ve=function(je){var Ge=new Ln,bt=a.newSub();dn(e,Mn(je),Ge,bt),n.merge(Ge),n.propertiesMatches+=Ge.propertiesMatches,n.propertiesValueMatches+=Ge.propertiesValueMatches,a.merge(bt)},me=function(je,Ge,bt){var qe=Mn(je),Zt=new Ln,sr=a.newSub();dn(e,qe,Zt,sr),a.merge(sr),Zt.hasProblems()?bt&&ve(bt):Ge&&ve(Ge)},Te=Mn(r.if);if(Te&&me(Te,Mn(r.then),Mn(r.else)),Array.isArray(r.enum)){for(var Ae=uo(e),xe=!1,Ee=0,ke=r.enum;Ee<ke.length;Ee++){var Re=ke[Ee];if(Tu(Ae,Re)){xe=!0;break}}n.enumValues=r.enum,n.enumValueMatch=xe,xe||n.problems.push({location:{offset:e.offset,length:e.length},severity:Vt.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value is not accepted. Valid values: "+r.enum.map(function(je){return JSON.stringify(je)}).join(", ")+"."})}if(La(r.const)){var Ae=uo(e);Tu(Ae,r.const)?n.enumValueMatch=!0:(n.problems.push({location:{offset:e.offset,length:e.length},severity:Vt.Warning,code:rr.EnumValueMismatch,message:r.errorMessage||"Value must be "+JSON.stringify(r.const)+"."}),n.enumValueMatch=!1),n.enumValues=[r.const]}r.deprecationMessage&&e.parent&&n.problems.push({location:{offset:e.parent.offset,length:e.parent.length},severity:Vt.Warning,message:r.deprecationMessage})}function c(y,b,I,M){var B=y.value;Qn(b.multipleOf)&&B%b.multipleOf!==0&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Value is not divisible by "+b.multipleOf+"."});function G(ve,me){if(Qn(me))return me;if(Zi(me)&&me)return ve}function te(ve,me){if(!Zi(me)||!me)return ve}var q=G(b.minimum,b.exclusiveMinimum);Qn(q)&&B<=q&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Value is below the exclusive minimum of "+q+"."});var le=G(b.maximum,b.exclusiveMaximum);Qn(le)&&B>=le&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Value is above the exclusive maximum of "+le+"."});var ae=te(b.minimum,b.exclusiveMinimum);Qn(ae)&&B<ae&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Value is below the minimum of "+ae+"."});var pe=te(b.maximum,b.exclusiveMaximum);Qn(pe)&&B>pe&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Value is above the maximum of "+pe+"."})}function p(y,b,I,M){if(Qn(b.minLength)&&y.value.length<b.minLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"String is shorter than the minimum length of "+b.minLength+"."}),Qn(b.maxLength)&&y.value.length>b.maxLength&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"String is longer than the maximum length of "+b.maxLength+"."}),y0(b.pattern)){var B=new RegExp(b.pattern);B.test(y.value)||I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:b.patternErrorMessage||b.errorMessage||'String does not match the pattern of "'+b.pattern+'".'})}if(b.format)switch(b.format){case"uri":case"uri-reference":{var G=void 0;if(!y.value)G="URI expected.";else{var te=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/.exec(y.value);te?!te[2]&&b.format==="uri"&&(G="URI with a scheme is expected."):G="URI is expected."}G&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:b.patternErrorMessage||b.errorMessage||"String is not a URI: "+G})}break;case"color-hex":case"date-time":case"date":case"time":case"email":var q=S0[b.format];(!y.value||!q.pattern.exec(y.value))&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:b.patternErrorMessage||b.errorMessage||q.errorMessage});break;default:}}function g(y,b,I,M){if(Array.isArray(b.items)){for(var B=b.items,G=0;G<B.length;G++){var te=B[G],q=Mn(te),le=new Ln,ae=y.items[G];ae?(dn(ae,q,le,M),I.mergePropertyMatch(le)):y.items.length>=B.length&&I.propertiesValueMatches++}if(y.items.length>B.length)if(typeof b.additionalItems=="object")for(var pe=B.length;pe<y.items.length;pe++){var le=new Ln;dn(y.items[pe],b.additionalItems,le,M),I.mergePropertyMatch(le)}else b.additionalItems===!1&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Array has too many items according to schema. Expected "+B.length+" or fewer."})}else{var ve=Mn(b.items);if(ve)for(var me=0,Te=y.items;me<Te.length;me++){var ae=Te[me],le=new Ln;dn(ae,ve,le,M),I.mergePropertyMatch(le)}}var Ae=Mn(b.contains);if(Ae){var xe=y.items.some(function(Re){var je=new Ln;return dn(Re,Ae,je,gp.instance),!je.hasProblems()});xe||I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:b.errorMessage||"Array does not contain required item."})}if(Qn(b.minItems)&&y.items.length<b.minItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Array has too few items. Expected "+b.minItems+" or more."}),Qn(b.maxItems)&&y.items.length>b.maxItems&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Array has too many items. Expected "+b.maxItems+" or fewer."}),b.uniqueItems===!0){var Ee=uo(y),ke=Ee.some(function(Re,je){return je!==Ee.lastIndexOf(Re)});ke&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Array has duplicate items."})}}function v(y,b,I,M){for(var B=Object.create(null),G=[],te=0,q=y.properties;te<q.length;te++){var le=q[te],ae=le.keyNode.value;B[ae]=le.valueNode,G.push(ae)}if(Array.isArray(b.required))for(var pe=0,ve=b.required;pe<ve.length;pe++){var me=ve[pe];if(!B[me]){var Te=y.parent&&y.parent.type==="property"&&y.parent.keyNode,Ae=Te?{offset:Te.offset,length:Te.length}:{offset:y.offset,length:1};I.problems.push({location:Ae,severity:Vt.Warning,message:'Missing property "'+me+'".'})}}var xe=function(Nn){for(var Da=G.indexOf(Nn);Da>=0;)G.splice(Da,1),Da=G.indexOf(Nn)};if(b.properties)for(var Ee=0,ke=Object.keys(b.properties);Ee<ke.length;Ee++){var me=ke[Ee];xe(me);var Re=b.properties[me],je=B[me];if(je)if(Zi(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var le=je.parent;I.problems.push({location:{offset:le.keyNode.offset,length:le.keyNode.length},severity:Vt.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var Ge=new Ln;dn(je,Re,Ge,M),I.mergePropertyMatch(Ge)}}if(b.patternProperties)for(var bt=0,qe=Object.keys(b.patternProperties);bt<qe.length;bt++)for(var Zt=qe[bt],sr=new RegExp(Zt),gr=0,Pr=G.slice(0);gr<Pr.length;gr++){var me=Pr[gr];if(sr.test(me)){xe(me);var je=B[me];if(je){var Re=b.patternProperties[Zt];if(Zi(Re))if(Re)I.propertiesMatches++,I.propertiesValueMatches++;else{var le=je.parent;I.problems.push({location:{offset:le.keyNode.offset,length:le.keyNode.length},severity:Vt.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}else{var Ge=new Ln;dn(je,Re,Ge,M),I.mergePropertyMatch(Ge)}}}}if(typeof b.additionalProperties=="object")for(var fr=0,Ut=G;fr<Ut.length;fr++){var me=Ut[fr],je=B[me];if(je){var Ge=new Ln;dn(je,b.additionalProperties,Ge,M),I.mergePropertyMatch(Ge)}}else if(b.additionalProperties===!1&&G.length>0)for(var cr=0,Nt=G;cr<Nt.length;cr++){var me=Nt[cr],je=B[me];if(je){var le=je.parent;I.problems.push({location:{offset:le.keyNode.offset,length:le.keyNode.length},severity:Vt.Warning,message:b.errorMessage||"Property "+me+" is not allowed."})}}if(Qn(b.maxProperties)&&y.properties.length>b.maxProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Object has more properties than limit of "+b.maxProperties+"."}),Qn(b.minProperties)&&y.properties.length<b.minProperties&&I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Object has fewer properties than the required number of "+b.minProperties}),b.dependencies)for(var it=0,wt=Object.keys(b.dependencies);it<wt.length;it++){var ae=wt[it],zt=B[ae];if(zt){var nr=b.dependencies[ae];if(Array.isArray(nr))for(var Ht=0,xn=nr;Ht<xn.length;Ht++){var _i=xn[Ht];B[_i]?I.propertiesValueMatches++:I.problems.push({location:{offset:y.offset,length:y.length},severity:Vt.Warning,message:"Object is missing property "+_i+" required by property {$key}."})}else{var Re=Mn(nr);if(Re){var Ge=new Ln;dn(y,Re,Ge,M),I.mergePropertyMatch(Ge)}}}}var qn=Mn(b.propertyNames);if(qn)for(var on=0,po=y.properties;on<po.length;on++){var es=po[on],ae=es.keyNode;ae&&dn(ae,qn,I,gp.instance)}}}function I0(e,r){var n=[],a=-1,s=e.getText(),c=_s(s,!1),p=r&&r.collectComments?[]:void 0;function g(){for(;;){var Te=c.scan();switch(I(),Te){case 12:case 13:Array.isArray(p)&&p.push(ar.create(e.positionAt(c.getTokenOffset()),e.positionAt(c.getTokenOffset()+c.getTokenLength())));break;case 15:case 14:break;default:return Te}}}function v(Te){return c.getToken()===Te?(g(),!0):!1}function y(Te,Ae,xe,Ee,ke){if(ke===void 0&&(ke=Vt.Error),n.length===0||xe!==a){var Re=ar.create(e.positionAt(xe),e.positionAt(Ee));n.push(Na.create(Re,Te,ke,Ae,e.languageId)),a=xe}}function b(Te,Ae,xe,Ee,ke){xe===void 0&&(xe=null),Ee===void 0&&(Ee=[]),ke===void 0&&(ke=[]);var Re=c.getTokenOffset(),je=c.getTokenOffset()+c.getTokenLength();if(Re===je&&Re>0){for(Re--;Re>0&&/\s/.test(s.charAt(Re));)Re--;je=Re+1}if(y(Te,Ae,Re,je),xe&&M(xe,!1),Ee.length+ke.length>0)for(var Ge=c.getToken();Ge!==17;){if(Ee.indexOf(Ge)!==-1){g();break}else if(ke.indexOf(Ge)!==-1)break;Ge=g()}return xe}function I(){switch(c.getTokenError()){case 4:return b("Invalid unicode sequence in string.",rr.InvalidUnicode),!0;case 5:return b("Invalid escape character in string.",rr.InvalidEscapeCharacter),!0;case 3:return b("Unexpected end of number.",rr.UnexpectedEndOfNumber),!0;case 1:return b("Unexpected end of comment.",rr.UnexpectedEndOfComment),!0;case 2:return b("Unexpected end of string.",rr.UnexpectedEndOfString),!0;case 6:return b("Invalid characters in string. Control characters must be escaped.",rr.InvalidCharacter),!0}return!1}function M(Te,Ae){return Te.length=c.getTokenOffset()+c.getTokenLength()-Te.offset,Ae&&g(),Te}function B(Te){if(c.getToken()!==3)return null;var Ae=new A0(Te,c.getTokenOffset());g();for(var xe=0,Ee=!1;c.getToken()!==4&&c.getToken()!==17;){if(c.getToken()===5){Ee||b("Value expected",rr.ValueExpected);var ke=c.getTokenOffset();if(g(),c.getToken()===4){Ee&&y("Trailing comma",rr.TrailingComma,ke,ke+1);continue}}else Ee&&b("Expected comma",rr.CommaExpected);var Re=pe(Ae,xe++);Re?Ae.items.push(Re):b("Value expected",rr.ValueExpected,null,[],[4,5]),Ee=!0}return c.getToken()!==4?b("Expected comma or closing bracket",rr.CommaOrCloseBacketExpected,Ae):M(Ae,!0)}function G(Te,Ae){var xe=new E0(Te,c.getTokenOffset()),Ee=q(xe);if(!Ee)if(c.getToken()===16){b("Property keys must be doublequoted",rr.Undefined);var ke=new Wv(xe,c.getTokenOffset(),c.getTokenLength());ke.value=c.getTokenValue(),Ee=ke,g()}else return null;xe.keyNode=Ee;var Re=Ae[Ee.value];if(Re?(y("Duplicate object key",rr.DuplicateKey,xe.keyNode.offset,xe.keyNode.offset+xe.keyNode.length,Vt.Warning),typeof Re=="object"&&y("DuplicateKeyWarning",rr.DuplicateKey,Re.keyNode.offset,Re.keyNode.offset+Re.keyNode.length,Vt.Warning),Ae[Ee.value]=!0):Ae[Ee.value]=xe,c.getToken()===6)xe.colonOffset=c.getTokenOffset(),g();else if(b("Colon expected",rr.ColonExpected),c.getToken()===10&&e.positionAt(Ee.offset+Ee.length).line<e.positionAt(c.getTokenOffset()).line)return xe.length=Ee.length,xe;var je=pe(xe,Ee.value);return je?(xe.valueNode=je,xe.length=je.offset+je.length-xe.offset,xe):b("Value expected",rr.ValueExpected,xe,[],[2,5])}function te(Te){if(c.getToken()!==1)return null;var Ae=new O0(Te,c.getTokenOffset()),xe=Object.create(null);g();for(var Ee=!1;c.getToken()!==2&&c.getToken()!==17;){if(c.getToken()===5){Ee||b("Property expected",rr.PropertyExpected);var ke=c.getTokenOffset();if(g(),c.getToken()===2){Ee&&y("Trailing comma",rr.TrailingComma,ke,ke+1);continue}}else Ee&&b("Expected comma",rr.CommaExpected);var Re=G(Ae,xe);Re?Ae.properties.push(Re):b("Property expected",rr.PropertyExpected,null,[],[2,5]),Ee=!0}return c.getToken()!==2?b("Expected comma or closing brace",rr.CommaOrCloseBraceExpected,Ae):M(Ae,!0)}function q(Te){if(c.getToken()!==10)return null;var Ae=new Wv(Te,c.getTokenOffset());return Ae.value=c.getTokenValue(),M(Ae,!0)}function le(Te){if(c.getToken()!==11)return null;var Ae=new C0(Te,c.getTokenOffset());if(c.getTokenError()===0){var xe=c.getTokenValue();try{var Ee=JSON.parse(xe);if(!Qn(Ee))return b("Invalid number format.",rr.Undefined,Ae);Ae.value=Ee}catch(ke){return b("Invalid number format.",rr.Undefined,Ae)}Ae.isInteger=xe.indexOf(".")===-1}return M(Ae,!0)}function ae(Te){var Ae;switch(c.getToken()){case 7:return M(new w0(Te,c.getTokenOffset()),!0);case 8:return M(new Uv(Te,!0,c.getTokenOffset()),!0);case 9:return M(new Uv(Te,!1,c.getTokenOffset()),!0);default:return null}}function pe(Te,Ae){return B(Te)||te(Te)||q(Te)||le(Te)||ae(Te)}var ve=null,me=g();return me!==17&&(ve=pe(null,null),ve?c.getToken()!==17&&b("End of file expected.",rr.Undefined):b("Expected a JSON object, array or literal.",rr.Undefined)),new Gv(ve,n,p)}function yp(e,r,n){if(e!==null&&typeof e=="object"){var a=r+" ";if(Array.isArray(e)){if(e.length===0)return"[]";for(var s=`[
261
+ `,c=0;c<e.length;c++)s+=a+yp(e[c],a,n),c<e.length-1&&(s+=","),s+=`
262
+ `;return s+=r+"]",s}else{var p=Object.keys(e);if(p.length===0)return"{}";for(var s=`{
263
+ `,c=0;c<p.length;c++){var g=p[c];s+=a+JSON.stringify(g)+": "+yp(e[g],a,n),c<p.length-1&&(s+=","),s+=`
264
+ `}return s+=r+"}",s}}return n(e)}function k0(e,r){if(e.length<r.length)return!1;for(var n=0;n<r.length;n++)if(e[n]!==r[n])return!1;return!0}function bp(e,r){var n=e.length-r.length;return n>0?e.lastIndexOf(r)===n:n===0?e===r:!1}function F0(e){return e.replace(/[\-\\\{\}\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&").replace(/[\*]/g,".*")}function F1(e,r){for(var n="";r>0;)(r&1)===1&&(n+=e),e+=e,r=r>>>1;return n}var R0=[",","}","]"],M0=[":"],L0=function(){function e(r,n,a,s){n===void 0&&(n=[]),a===void 0&&(a=Promise),s===void 0&&(s={}),this.schemaService=r,this.contributions=n,this.promiseConstructor=a,this.clientCapabilities=s,this.templateVarIdCounter=0}return e.prototype.doResolve=function(r){for(var n=this.contributions.length-1;n>=0;n--)if(this.contributions[n].resolveCompletion){var a=this.contributions[n].resolveCompletion(r);if(a)return a}return this.promiseConstructor.resolve(r)},e.prototype.doComplete=function(r,n,a){var s=this,c={items:[],isIncomplete:!1},p=r.getText(),g=r.offsetAt(n),v=a.getNodeFromOffset(g,!0);if(this.isInComment(r,v?v.offset:0,g))return Promise.resolve(c);if(v&&g===v.offset+v.length&&g>0){var y=p[g-1];(v.type==="object"&&y==="}"||v.type==="array"&&y==="]")&&(v=v.parent)}var b=this.getCurrentWord(r,g),I=null;if(v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null"))I=ar.create(r.positionAt(v.offset),r.positionAt(v.offset+v.length));else{var M=g-b.length;M>0&&p[M-1]==='"'&&M--,I=ar.create(r.positionAt(M),n)}var B=this.doesSupportsCommitCharacters(),G={},te={add:function(q){var le=G[q.label];le?le.documentation||(le.documentation=q.documentation):(G[q.label]=q,I&&(q.textEdit=fi.replace(I,q.insertText)),B&&(q.commitCharacters=q.kind===Zn.Property?M0:R0),c.items.push(q))},setAsIncomplete:function(){c.isIncomplete=!0},error:function(q){console.error(q)},log:function(q){console.log(q)},getNumberOfProposals:function(){return c.items.length}};return this.schemaService.getSchemaForResource(r.uri,a).then(function(q){var le=[],ae=!0,pe="",ve=null;if(v&&v.type==="string"){var me=v.parent;me&&me.type==="property"&&me.keyNode===v&&(ae=!me.valueNode,ve=me,pe=p.substr(v.offset+1,v.length-2),me&&(v=me.parent))}if(v&&v.type==="object"){if(v.offset===g)return c;var Te=v.properties;Te.forEach(function(ke){(!ve||ve!==ke)&&(G[ke.keyNode.value]=dp.create("__"))});var Ae="";ae&&(Ae=s.evaluateSeparatorAfter(r,r.offsetAt(I.end))),q?s.getPropertyCompletions(q,a,v,ae,Ae,te):s.getSchemaLessPropertyCompletions(a,v,pe,te);var xe=mp(v);s.contributions.forEach(function(ke){var Re=ke.collectPropertyCompletions(r.uri,xe,b,ae,Ae==="",te);Re&&le.push(Re)}),!q&&b.length>0&&p.charAt(g-b.length-1)!=='"'&&(te.add({kind:Zn.Property,label:s.getLabelForValue(b),insertText:s.getInsertTextForProperty(b,null,!1,Ae),insertTextFormat:Qr.Snippet,documentation:""}),te.setAsIncomplete())}var Ee={};return q?s.getValueCompletions(q,a,v,g,r,te,Ee):s.getSchemaLessValueCompletions(a,v,g,r,te),s.contributions.length>0&&s.getContributedValueCompletions(a,v,g,r,te,le),s.promiseConstructor.all(le).then(function(){if(te.getNumberOfProposals()===0){var ke=g;v&&(v.type==="string"||v.type==="number"||v.type==="boolean"||v.type==="null")&&(ke=v.offset+v.length);var Re=s.evaluateSeparatorAfter(r,ke);s.addFillerValueCompletions(Ee,Re,te)}return c})})},e.prototype.getPropertyCompletions=function(r,n,a,s,c,p){var g=this,v=n.getMatchingSchemas(r.schema,a.offset);v.forEach(function(y){if(y.node===a&&!y.inverted){var b=y.schema.properties;b&&Object.keys(b).forEach(function(I){var M=b[I],B=!1;if(typeof M=="object"&&M.allOf)for(var G=0,te=M.allOf;G<te.length;G++){var q=te[G];if(q.readOnly){B=!0;break}}if(typeof M=="object"&&!M.deprecationMessage&&!M.doNotSuggest&&!B){var le={kind:Zn.Property,label:g.sanitizeLabel(I),insertText:g.getInsertTextForProperty(I,M,s,c),insertTextFormat:Qr.Snippet,filterText:g.getFilterTextForValue(I),documentation:g.fromMarkup(M.markdownDescription)||M.description||""};bp(le.insertText,"$1"+c)&&(le.command={title:"Suggest",command:"editor.action.triggerSuggest"}),p.add(le)}})}})},e.prototype.getSchemaLessPropertyCompletions=function(r,n,a,s){var c=this,p=function(v){v.properties.forEach(function(y){var b=y.keyNode.value;s.add({kind:Zn.Property,label:c.sanitizeLabel(b),insertText:c.getInsertTextForValue(b,""),insertTextFormat:Qr.Snippet,filterText:c.getFilterTextForValue(b),documentation:""})})};if(n.parent)if(n.parent.type==="property"){var g=n.parent.keyNode.value;r.visit(function(v){return v.type==="property"&&v!==n.parent&&v.keyNode.value===g&&v.valueNode&&v.valueNode.type==="object"&&p(v.valueNode),!0})}else n.parent.type==="array"&&n.parent.items.forEach(function(v){v.type==="object"&&v!==n&&p(v)});else n.type==="object"&&s.add({kind:Zn.Property,label:"$schema",insertText:this.getInsertTextForProperty("$schema",null,!0,""),insertTextFormat:Qr.Snippet,documentation:"",filterText:this.getFilterTextForValue("$schema")})},e.prototype.getSchemaLessValueCompletions=function(r,n,a,s,c){var p=this,g=a;if(n&&(n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(g=n.offset+n.length,n=n.parent),!n){c.add({kind:this.getSuggestionKind("object"),label:"Empty object",insertText:this.getInsertTextForValue({},""),insertTextFormat:Qr.Snippet,documentation:""}),c.add({kind:this.getSuggestionKind("array"),label:"Empty array",insertText:this.getInsertTextForValue([],""),insertTextFormat:Qr.Snippet,documentation:""});return}var v=this.evaluateSeparatorAfter(s,g),y=function(B){zv(B.parent,a,!0)||c.add({kind:p.getSuggestionKind(B.type),label:p.getLabelTextForMatchingNode(B,s),insertText:p.getInsertTextForMatchingNode(B,s,v),insertTextFormat:Qr.Snippet,documentation:""}),B.type==="boolean"&&p.addBooleanValueCompletion(!B.value,v,c)};if(n.type==="property"&&a>n.colonOffset){var b=n.valueNode;if(b&&(a>b.offset+b.length||b.type==="object"||b.type==="array"))return;var I=n.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===I&&B.valueNode&&y(B.valueNode),!0}),I==="$schema"&&n.parent&&!n.parent.parent&&this.addDollarSchemaCompletions(v,c)}if(n.type==="array")if(n.parent&&n.parent.type==="property"){var M=n.parent.keyNode.value;r.visit(function(B){return B.type==="property"&&B.keyNode.value===M&&B.valueNode&&B.valueNode.type==="array"&&B.valueNode.items.forEach(y),!0})}else n.items.forEach(y)},e.prototype.getValueCompletions=function(r,n,a,s,c,p,g){var v=this,y=s,b=null,I=null;if(a&&(a.type==="string"||a.type==="number"||a.type==="boolean"||a.type==="null")&&(y=a.offset+a.length,I=a,a=a.parent),!a){this.addSchemaValueCompletions(r.schema,"",p,g);return}if(a.type==="property"&&s>a.colonOffset){var M=a.valueNode;if(M&&s>M.offset+M.length)return;b=a.keyNode.value,a=a.parent}if(a&&(b!==null||a.type==="array")){var B=this.evaluateSeparatorAfter(c,y),G=n.getMatchingSchemas(r.schema,a.offset,I);G.forEach(function(te){if(te.node===a&&!te.inverted&&te.schema){if(a.type==="array"&&te.schema.items)if(Array.isArray(te.schema.items)){var q=v.findItemAtOffset(a,c,s);q<te.schema.items.length&&v.addSchemaValueCompletions(te.schema.items[q],B,p,g)}else v.addSchemaValueCompletions(te.schema.items,B,p,g);if(te.schema.properties){var le=te.schema.properties[b];le&&v.addSchemaValueCompletions(le,B,p,g)}}}),b==="$schema"&&!a.parent&&this.addDollarSchemaCompletions(B,p),g.boolean&&(this.addBooleanValueCompletion(!0,B,p),this.addBooleanValueCompletion(!1,B,p)),g.null&&this.addNullValueCompletion(B,p)}},e.prototype.getContributedValueCompletions=function(r,n,a,s,c,p){if(!n)this.contributions.forEach(function(b){var I=b.collectDefaultCompletions(s.uri,c);I&&p.push(I)});else if((n.type==="string"||n.type==="number"||n.type==="boolean"||n.type==="null")&&(n=n.parent),n.type==="property"&&a>n.colonOffset){var g=n.keyNode.value,v=n.valueNode;if(!v||a<=v.offset+v.length){var y=mp(n.parent);this.contributions.forEach(function(b){var I=b.collectValueCompletions(s.uri,y,g,c);I&&p.push(I)})}}},e.prototype.addSchemaValueCompletions=function(r,n,a,s){var c=this;typeof r=="object"&&(this.addEnumValueCompletions(r,n,a),this.addDefaultValueCompletions(r,n,a),this.collectTypes(r,s),Array.isArray(r.allOf)&&r.allOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.anyOf)&&r.anyOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}),Array.isArray(r.oneOf)&&r.oneOf.forEach(function(p){return c.addSchemaValueCompletions(p,n,a,s)}))},e.prototype.addDefaultValueCompletions=function(r,n,a,s){var c=this;s===void 0&&(s=0);var p=!1;if(La(r.default)){for(var g=r.type,v=r.default,y=s;y>0;y--)v=[v],g="array";a.add({kind:this.getSuggestionKind(g),label:this.getLabelForValue(v),insertText:this.getInsertTextForValue(v,n),insertTextFormat:Qr.Snippet}),p=!0}Array.isArray(r.examples)&&r.examples.forEach(function(b){for(var I=r.type,M=b,B=s;B>0;B--)M=[M],I="array";a.add({kind:c.getSuggestionKind(I),label:c.getLabelForValue(M),insertText:c.getInsertTextForValue(M,n),insertTextFormat:Qr.Snippet}),p=!0}),Array.isArray(r.defaultSnippets)&&r.defaultSnippets.forEach(function(b){var I=r.type,M=b.body,B=b.label,G,te;if(La(M)){for(var q=r.type,le=s;le>0;le--)M=[M],q="array";G=c.getInsertTextForSnippetValue(M,n),te=c.getFilterTextForSnippetValue(M),B=B||c.getLabelForSnippetValue(M)}else if(typeof b.bodyText=="string"){for(var ae="",pe="",ve="",le=s;le>0;le--)ae=ae+ve+`[
265
+ `,pe=pe+`
266
+ `+ve+"]",ve+=" ",I="array";G=ae+ve+b.bodyText.split(`
267
+ `).join(`
268
+ `+ve)+pe+n,B=B||c.sanitizeLabel(G),te=G.replace(/[\n]/g,"")}a.add({kind:c.getSuggestionKind(I),label:B,documentation:c.fromMarkup(b.markdownDescription)||b.description,insertText:G,insertTextFormat:Qr.Snippet,filterText:te}),p=!0}),!p&&typeof r.items=="object"&&!Array.isArray(r.items)&&this.addDefaultValueCompletions(r.items,n,a,s+1)},e.prototype.addEnumValueCompletions=function(r,n,a){if(La(r.const)&&a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(r.const),insertText:this.getInsertTextForValue(r.const,n),insertTextFormat:Qr.Snippet,documentation:this.fromMarkup(r.markdownDescription)||r.description}),Array.isArray(r.enum))for(var s=0,c=r.enum.length;s<c;s++){var p=r.enum[s],g=this.fromMarkup(r.markdownDescription)||r.description;r.markdownEnumDescriptions&&s<r.markdownEnumDescriptions.length&&this.doesSupportMarkdown()?g=this.fromMarkup(r.markdownEnumDescriptions[s]):r.enumDescriptions&&s<r.enumDescriptions.length&&(g=r.enumDescriptions[s]),a.add({kind:this.getSuggestionKind(r.type),label:this.getLabelForValue(p),insertText:this.getInsertTextForValue(p,n),insertTextFormat:Qr.Snippet,documentation:g})}},e.prototype.collectTypes=function(r,n){if(!(Array.isArray(r.enum)||La(r.const))){var a=r.type;Array.isArray(a)?a.forEach(function(s){return n[s]=!0}):n[a]=!0}},e.prototype.addFillerValueCompletions=function(r,n,a){r.object&&a.add({kind:this.getSuggestionKind("object"),label:"{}",insertText:this.getInsertTextForGuessedValue({},n),insertTextFormat:Qr.Snippet,detail:"New object",documentation:""}),r.array&&a.add({kind:this.getSuggestionKind("array"),label:"[]",insertText:this.getInsertTextForGuessedValue([],n),insertTextFormat:Qr.Snippet,detail:"New array",documentation:""})},e.prototype.addBooleanValueCompletion=function(r,n,a){a.add({kind:this.getSuggestionKind("boolean"),label:r?"true":"false",insertText:this.getInsertTextForValue(r,n),insertTextFormat:Qr.Snippet,documentation:""})},e.prototype.addNullValueCompletion=function(r,n){n.add({kind:this.getSuggestionKind("null"),label:"null",insertText:"null"+r,insertTextFormat:Qr.Snippet,documentation:""})},e.prototype.addDollarSchemaCompletions=function(r,n){var a=this,s=this.schemaService.getRegisteredSchemaIds(function(c){return c==="http"||c==="https"});s.forEach(function(c){return n.add({kind:Zn.Module,label:a.getLabelForValue(c),filterText:a.getFilterTextForValue(c),insertText:a.getInsertTextForValue(c,r),insertTextFormat:Qr.Snippet,documentation:""})})},e.prototype.sanitizeLabel=function(r){return r=r.replace(/[\n]/g,"\u21B5"),r.length>57&&(r=r.substr(0,57).trim()+"..."),r},e.prototype.getLabelForValue=function(r){return this.sanitizeLabel(JSON.stringify(r))},e.prototype.getFilterTextForValue=function(r){return JSON.stringify(r)},e.prototype.getFilterTextForSnippetValue=function(r){return JSON.stringify(r).replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1")},e.prototype.getLabelForSnippetValue=function(r){var n=JSON.stringify(r);return n=n.replace(/\$\{\d+:([^}]+)\}|\$\d+/g,"$1"),this.sanitizeLabel(n)},e.prototype.getInsertTextForPlainText=function(r){return r.replace(/[\\\$\}]/g,"\\$&")},e.prototype.getInsertTextForValue=function(r,n){var a=JSON.stringify(r,null," ");return a==="{}"?"{$1}"+n:a==="[]"?"[$1]"+n:this.getInsertTextForPlainText(a+n)},e.prototype.getInsertTextForSnippetValue=function(r,n){var a=function(s){return typeof s=="string"&&s[0]==="^"?s.substr(1):JSON.stringify(s)};return yp(r,"",a)+n},e.prototype.getInsertTextForGuessedValue=function(r,n){switch(typeof r){case"object":return r===null?"${1:null}"+n:this.getInsertTextForValue(r,n);case"string":var a=JSON.stringify(r);return a=a.substr(1,a.length-2),a=this.getInsertTextForPlainText(a),'"${1:'+a+'}"'+n;case"number":case"boolean":return"${1:"+JSON.stringify(r)+"}"+n}return this.getInsertTextForValue(r,n)},e.prototype.getSuggestionKind=function(r){if(Array.isArray(r)){var n=r;r=n.length>0?n[0]:null}if(!r)return Zn.Value;switch(r){case"string":return Zn.Value;case"object":return Zn.Module;case"property":return Zn.Property;default:return Zn.Value}},e.prototype.getLabelTextForMatchingNode=function(r,n){switch(r.type){case"array":return"[]";case"object":return"{}";default:var a=n.getText().substr(r.offset,r.length);return a}},e.prototype.getInsertTextForMatchingNode=function(r,n,a){switch(r.type){case"array":return this.getInsertTextForValue([],a);case"object":return this.getInsertTextForValue({},a);default:var s=n.getText().substr(r.offset,r.length)+a;return this.getInsertTextForPlainText(s)}},e.prototype.getInsertTextForProperty=function(r,n,a,s){var c=this.getInsertTextForValue(r,"");if(!a)return c;var p=c+": ",g,v=0;if(n){if(Array.isArray(n.defaultSnippets)){if(n.defaultSnippets.length===1){var y=n.defaultSnippets[0].body;La(y)&&(g=this.getInsertTextForSnippetValue(y,""))}v+=n.defaultSnippets.length}if(n.enum&&(!g&&n.enum.length===1&&(g=this.getInsertTextForGuessedValue(n.enum[0],"")),v+=n.enum.length),La(n.default)&&(g||(g=this.getInsertTextForGuessedValue(n.default,"")),v++),v===0){var b=Array.isArray(n.type)?n.type[0]:n.type;switch(b||(n.properties?b="object":n.items&&(b="array")),b){case"boolean":g="$1";break;case"string":g='"$1"';break;case"object":g="{$1}";break;case"array":g="[$1]";break;case"number":case"integer":g="${1:0}";break;case"null":g="${1:null}";break;default:return c}}}return(!g||v>1)&&(g="$1"),p+g+s},e.prototype.getCurrentWord=function(r,n){for(var a=n-1,s=r.getText();a>=0&&`
269
+ \r\v":{[,]}`.indexOf(s.charAt(a))===-1;)a--;return s.substring(a+1,n)},e.prototype.evaluateSeparatorAfter=function(r,n){var a=_s(r.getText(),!0);a.setPosition(n);var s=a.scan();switch(s){case 5:case 2:case 4:case 17:return"";default:return","}},e.prototype.findItemAtOffset=function(r,n,a){for(var s=_s(n.getText(),!0),c=r.items,p=c.length-1;p>=0;p--){var g=c[p];if(a>g.offset+g.length){s.setPosition(g.offset+g.length);var v=s.scan();return v===5&&a>=s.getTokenOffset()+s.getTokenLength()?p+1:p}else if(a>=g.offset)return p}return 0},e.prototype.isInComment=function(r,n,a){var s=_s(r.getText(),!1);s.setPosition(n);for(var c=s.scan();c!==17&&s.getTokenOffset()+s.getTokenLength()<a;)c=s.scan();return(c===12||c===13)&&s.getTokenOffset()<=a},e.prototype.fromMarkup=function(r){if(r&&this.doesSupportMarkdown())return{kind:Zo.Markdown,value:r}},e.prototype.doesSupportMarkdown=function(){if(!La(this.supportsMarkdown)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsMarkdown=r&&r.completionItem&&Array.isArray(r.completionItem.documentationFormat)&&r.completionItem.documentationFormat.indexOf(Zo.Markdown)!==-1}return this.supportsMarkdown},e.prototype.doesSupportsCommitCharacters=function(){if(!La(this.supportsCommitCharacters)){var r=this.clientCapabilities.textDocument&&this.clientCapabilities.textDocument.completion;this.supportsCommitCharacters=r&&r.completionItem&&!!r.completionItem.commitCharactersSupport}return this.supportsCommitCharacters},e}(),N0=function(){function e(r,n,a){n===void 0&&(n=[]),this.schemaService=r,this.contributions=n,this.promise=a||Promise}return e.prototype.doHover=function(r,n,a){var s=r.offsetAt(n),c=a.getNodeFromOffset(s);if(!c||(c.type==="object"||c.type==="array")&&s>c.offset+1&&s<c.offset+c.length-1)return this.promise.resolve(null);var p=c;if(c.type==="string"){var g=c.parent;if(g&&g.type==="property"&&g.keyNode===c&&(c=g.valueNode,!c))return this.promise.resolve(null)}for(var v=ar.create(r.positionAt(p.offset),r.positionAt(p.offset+p.length)),y=function(G){var te={contents:G,range:v};return te},b=mp(c),I=this.contributions.length-1;I>=0;I--){var M=this.contributions[I],B=M.getInfoContribution(r.uri,b);if(B)return B.then(function(G){return y(G)})}return this.schemaService.getSchemaForResource(r.uri,a).then(function(G){if(G){var te=a.getMatchingSchemas(G.schema,c.offset),q=null,le=null,ae=null,pe=null;te.every(function(me){if(me.node===c&&!me.inverted&&me.schema&&(q=q||me.schema.title,le=le||me.schema.markdownDescription||xp(me.schema.description),me.schema.enum)){var Te=me.schema.enum.indexOf(uo(c));me.schema.markdownEnumDescriptions?ae=me.schema.markdownEnumDescriptions[Te]:me.schema.enumDescriptions&&(ae=xp(me.schema.enumDescriptions[Te])),ae&&(pe=me.schema.enum[Te],typeof pe!="string"&&(pe=JSON.stringify(pe)))}return!0});var ve="";return q&&(ve=xp(q)),le&&(ve.length>0&&(ve+=`
270
+
271
+ `),ve+=le),ae&&(ve.length>0&&(ve+=`
272
+
273
+ `),ve+="`"+D0(pe)+"`: "+ae),y([ve])}return null})},e}();function xp(e){if(e){var r=e.replace(/([^\n\r])(\r?\n)([^\n\r])/gm,`$1
274
+
275
+ $3`);return r.replace(/[\\`*_{}[\]()#+\-.!]/g,"\\$&")}}function D0(e){return e.indexOf("`")!==-1?"`` "+e+" ``":e}var B0=function(){var e=function(r,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,s){a.__proto__=s}||function(a,s){for(var c in s)s.hasOwnProperty(c)&&(a[c]=s[c])},e(r,n)};return function(r,n){e(r,n);function a(){this.constructor=r}r.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}(),Wr,Lu;if(typeof process=="object")Lu=!1;else if(typeof navigator=="object"){var j0=navigator.userAgent;Lu=j0.indexOf("Windows")>=0}function R1(e){return 55296<=e&&e<=56319}function M1(e){return 56320<=e&&e<=57343}function L1(e){return e>=97&&e<=102}function V0(e){return e>=97&&e<=122}function U0(e){return e>=65&&e<=90}function N1(e){return V0(e)||U0(e)}var W0=/^\w[\w\d+.-]*$/,H0=/^\//,z0=/^\/\//;function G0(e,r){if(!e.scheme&&r)throw new Error('[UriError]: Scheme is missing: {scheme: "", authority: "'+e.authority+'", path: "'+e.path+'", query: "'+e.query+'", fragment: "'+e.fragment+'"}');if(e.scheme&&!W0.test(e.scheme))throw new Error("[UriError]: Scheme contains illegal characters.");if(e.path){if(e.authority){if(!H0.test(e.path))throw new Error('[UriError]: If a URI contains an authority component, then the path component must either be empty or begin with a slash ("/") character')}else if(z0.test(e.path))throw new Error('[UriError]: If a URI does not contain an authority component, then the path cannot begin with two slash characters ("//")')}}function $0(e,r){return!e&&!r?"file":e}function K0(e,r){switch(e){case"https":case"http":case"file":r?r[0]!==Ri&&(r=Ri+r):r=Ri;break}return r}var xr="",Ri="/",Y0=/^(([^:/?#]+?):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?/,Sp=function(){function e(r,n,a,s,c,p){p===void 0&&(p=!1),typeof r=="object"?(this.scheme=r.scheme||xr,this.authority=r.authority||xr,this.path=r.path||xr,this.query=r.query||xr,this.fragment=r.fragment||xr):(this.scheme=$0(r,p),this.authority=n||xr,this.path=K0(this.scheme,a||xr),this.query=s||xr,this.fragment=c||xr,G0(this,p))}return e.isUri=function(r){return r instanceof e?!0:r?typeof r.authority=="string"&&typeof r.fragment=="string"&&typeof r.path=="string"&&typeof r.query=="string"&&typeof r.scheme=="string"&&typeof r.fsPath=="function"&&typeof r.with=="function"&&typeof r.toString=="function":!1},Object.defineProperty(e.prototype,"fsPath",{get:function(){return Jv(this,!1)},enumerable:!0,configurable:!0}),e.prototype.with=function(r){if(!r)return this;var n=r.scheme,a=r.authority,s=r.path,c=r.query,p=r.fragment;return n===void 0?n=this.scheme:n===null&&(n=xr),a===void 0?a=this.authority:a===null&&(a=xr),s===void 0?s=this.path:s===null&&(s=xr),c===void 0?c=this.query:c===null&&(c=xr),p===void 0?p=this.fragment:p===null&&(p=xr),n===this.scheme&&a===this.authority&&s===this.path&&c===this.query&&p===this.fragment?this:new nl(n,a,s,c,p)},e.parse=function(r,n){n===void 0&&(n=!1);var a=Y0.exec(r);return a?new nl(a[2]||xr,jc(a[4]||xr),jc(a[5]||xr),jc(a[7]||xr),jc(a[9]||xr),n):new nl(xr,xr,xr,xr,xr)},e.file=function(r){var n=xr;if(Lu&&(r=r.replace(/\\/g,Ri)),r[0]===Ri&&r[1]===Ri){var a=r.indexOf(Ri,2);a===-1?(n=r.substring(2),r=Ri):(n=r.substring(2,a),r=r.substring(a)||Ri)}return new nl("file",n,r,xr,xr)},e.from=function(r){return new nl(r.scheme,r.authority,r.path,r.query,r.fragment)},e.prototype.toString=function(r){return r===void 0&&(r=!1),wp(this,r)},e.prototype.toJSON=function(){return this},e.revive=function(r){if(r){if(r instanceof e)return r;var n=new nl(r);return n._formatted=r.external,n._fsPath=r._sep===$v?r.fsPath:null,n}else return r},e}(),$v=Lu?1:void 0,nl=function(e){B0(r,e);function r(){var n=e!==null&&e.apply(this,arguments)||this;return n._formatted=null,n._fsPath=null,n}return Object.defineProperty(r.prototype,"fsPath",{get:function(){return this._fsPath||(this._fsPath=Jv(this,!1)),this._fsPath},enumerable:!0,configurable:!0}),r.prototype.toString=function(n){return n===void 0&&(n=!1),n?wp(this,!0):(this._formatted||(this._formatted=wp(this,!1)),this._formatted)},r.prototype.toJSON=function(){var n={$mid:1};return this._fsPath&&(n.fsPath=this._fsPath,n._sep=$v),this._formatted&&(n.external=this._formatted),this.path&&(n.path=this.path),this.scheme&&(n.scheme=this.scheme),this.authority&&(n.authority=this.authority),this.query&&(n.query=this.query),this.fragment&&(n.fragment=this.fragment),n},r}(Sp),Kv=(Wr={},Wr[58]="%3A",Wr[47]="%2F",Wr[63]="%3F",Wr[35]="%23",Wr[91]="%5B",Wr[93]="%5D",Wr[64]="%40",Wr[33]="%21",Wr[36]="%24",Wr[38]="%26",Wr[39]="%27",Wr[40]="%28",Wr[41]="%29",Wr[42]="%2A",Wr[43]="%2B",Wr[44]="%2C",Wr[59]="%3B",Wr[61]="%3D",Wr[32]="%20",Wr);function Yv(e,r){for(var n=void 0,a=-1,s=0;s<e.length;s++){var c=e.charCodeAt(s);if(c>=97&&c<=122||c>=65&&c<=90||c>=48&&c<=57||c===45||c===46||c===95||c===126||r&&c===47)a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n!==void 0&&(n+=e.charAt(s));else{n===void 0&&(n=e.substr(0,s));var p=Kv[c];p!==void 0?(a!==-1&&(n+=encodeURIComponent(e.substring(a,s)),a=-1),n+=p):a===-1&&(a=s)}}return a!==-1&&(n+=encodeURIComponent(e.substring(a))),n!==void 0?n:e}function J0(e){for(var r=void 0,n=0;n<e.length;n++){var a=e.charCodeAt(n);a===35||a===63?(r===void 0&&(r=e.substr(0,n)),r+=Kv[a]):r!==void 0&&(r+=e[n])}return r!==void 0?r:e}function Jv(e,r){var n;return e.authority&&e.path.length>1&&e.scheme==="file"?n="//"+e.authority+e.path:e.path.charCodeAt(0)===47&&(e.path.charCodeAt(1)>=65&&e.path.charCodeAt(1)<=90||e.path.charCodeAt(1)>=97&&e.path.charCodeAt(1)<=122)&&e.path.charCodeAt(2)===58?r?n=e.path.substr(1):n=e.path[1].toLowerCase()+e.path.substr(2):n=e.path,Lu&&(n=n.replace(/\//g,"\\")),n}function wp(e,r){var n=r?J0:Yv,a="",s=e.scheme,c=e.authority,p=e.path,g=e.query,v=e.fragment;if(s&&(a+=s,a+=":"),(c||s==="file")&&(a+=Ri,a+=Ri),c){var y=c.indexOf("@");if(y!==-1){var b=c.substr(0,y);c=c.substr(y+1),y=b.indexOf(":"),y===-1?a+=n(b,!1):(a+=n(b.substr(0,y),!1),a+=":",a+=n(b.substr(y+1),!1)),a+="@"}c=c.toLowerCase(),y=c.indexOf(":"),y===-1?a+=n(c,!1):(a+=n(c.substr(0,y),!1),a+=c.substr(y))}if(p){if(p.length>=3&&p.charCodeAt(0)===47&&p.charCodeAt(2)===58){var I=p.charCodeAt(1);I>=65&&I<=90&&(p="/"+String.fromCharCode(I+32)+":"+p.substr(3))}else if(p.length>=2&&p.charCodeAt(1)===58){var I=p.charCodeAt(0);I>=65&&I<=90&&(p=String.fromCharCode(I+32)+":"+p.substr(2))}a+=n(p,!0)}return g&&(a+="?",a+=n(g,!1)),v&&(a+="#",a+=r?v:Yv(v,!1)),a}function Xv(e){try{return decodeURIComponent(e)}catch(r){return e.length>3?e.substr(0,3)+Xv(e.substr(3)):e}}var Qv=/(%[0-9A-Za-z][0-9A-Za-z])+/g;function jc(e){return e.match(Qv)?e.replace(Qv,function(r){return Xv(r)}):e}var X0=function(){function e(r){try{this.patternRegExp=new RegExp(F0(r)+"$")}catch(n){this.patternRegExp=null}this.schemas=[]}return e.prototype.addSchema=function(r){this.schemas.push(r)},e.prototype.matchesPattern=function(r){return this.patternRegExp&&this.patternRegExp.test(r)},e.prototype.getSchemas=function(){return this.schemas},e}(),Q0=function(){function e(r,n,a){this.service=r,this.url=n,this.dependencies={},a&&(this.unresolvedSchema=this.service.promise.resolve(new il(a)))}return e.prototype.getUnresolvedSchema=function(){return this.unresolvedSchema||(this.unresolvedSchema=this.service.loadSchema(this.url)),this.unresolvedSchema},e.prototype.getResolvedSchema=function(){var r=this;return this.resolvedSchema||(this.resolvedSchema=this.getUnresolvedSchema().then(function(n){return r.service.resolveSchemaContent(n,r.url,r.dependencies)})),this.resolvedSchema},e.prototype.clearSchema=function(){this.resolvedSchema=null,this.unresolvedSchema=null,this.dependencies={}},e}(),il=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e}(),Zv=function(){function e(r,n){n===void 0&&(n=[]),this.schema=r,this.errors=n}return e.prototype.getSection=function(r){return Mn(this.getSectionRecursive(r,this.schema))},e.prototype.getSectionRecursive=function(r,n){if(!n||typeof n=="boolean"||r.length===0)return n;var a=r.shift();if(n.properties&&typeof n.properties[a])return this.getSectionRecursive(r,n.properties[a]);if(n.patternProperties)for(var s=0,c=Object.keys(n.patternProperties);s<c.length;s++){var p=c[s],g=new RegExp(p);if(g.test(a))return this.getSectionRecursive(r,n.patternProperties[p])}else{if(typeof n.additionalProperties=="object")return this.getSectionRecursive(r,n.additionalProperties);if(a.match("[0-9]+")){if(Array.isArray(n.items)){var v=parseInt(a,10);if(!isNaN(v)&&n.items[v])return this.getSectionRecursive(r,n.items[v])}else if(n.items)return this.getSectionRecursive(r,n.items)}}return null},e}(),Z0=function(){function e(r,n,a){this.contextService=n,this.requestService=r,this.promiseConstructor=a||Promise,this.callOnDispose=[],this.contributionSchemas={},this.contributionAssociations={},this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={}}return e.prototype.getRegisteredSchemaIds=function(r){return Object.keys(this.registeredSchemasIds).filter(function(n){var a=Sp.parse(n).scheme;return a!=="schemaservice"&&(!r||r(a))})},Object.defineProperty(e.prototype,"promise",{get:function(){return this.promiseConstructor},enumerable:!0,configurable:!0}),e.prototype.dispose=function(){for(;this.callOnDispose.length>0;)this.callOnDispose.pop()()},e.prototype.onResourceChange=function(r){var n=this,a=!1;r=this.normalizeId(r);for(var s=[r],c=Object.keys(this.schemasById).map(function(y){return n.schemasById[y]});s.length;)for(var p=s.pop(),g=0;g<c.length;g++){var v=c[g];v&&(v.url===p||v.dependencies[p])&&(v.url!==p&&s.push(v.url),v.clearSchema(),c[g]=void 0,a=!0)}return a},e.prototype.normalizeId=function(r){try{return Sp.parse(r).toString()}catch(n){return r}},e.prototype.setSchemaContributions=function(r){if(r.schemas){var n=r.schemas;for(var a in n){var s=this.normalizeId(a);this.contributionSchemas[s]=this.addSchemaHandle(s,n[a])}}if(r.schemaAssociations){var c=r.schemaAssociations;for(var p in c){var g=c[p];this.contributionAssociations[p]=g;for(var v=this.getOrAddFilePatternAssociation(p),y=0,b=g;y<b.length;y++){var I=b[y],a=this.normalizeId(I);v.addSchema(a)}}}},e.prototype.addSchemaHandle=function(r,n){var a=new Q0(this,r,n);return this.schemasById[r]=a,a},e.prototype.getOrAddSchemaHandle=function(r,n){return this.schemasById[r]||this.addSchemaHandle(r,n)},e.prototype.getOrAddFilePatternAssociation=function(r){var n=this.filePatternAssociationById[r];return n||(n=new X0(r),this.filePatternAssociationById[r]=n,this.filePatternAssociations.push(n)),n},e.prototype.registerExternalSchema=function(r,n,a){n===void 0&&(n=null);var s=this.normalizeId(r);if(this.registeredSchemasIds[s]=!0,n)for(var c=0,p=n;c<p.length;c++){var g=p[c];this.getOrAddFilePatternAssociation(g).addSchema(s)}return a?this.addSchemaHandle(s,a):this.getOrAddSchemaHandle(s)},e.prototype.clearExternalSchemas=function(){this.schemasById={},this.filePatternAssociations=[],this.filePatternAssociationById={},this.registeredSchemasIds={};for(var r in this.contributionSchemas)this.schemasById[r]=this.contributionSchemas[r],this.registeredSchemasIds[r]=!0;for(var n in this.contributionAssociations)for(var a=this.getOrAddFilePatternAssociation(n),s=0,c=this.contributionAssociations[n];s<c.length;s++){var p=c[s],r=this.normalizeId(p);a.addSchema(r)}},e.prototype.getResolvedSchema=function(r){var n=this.normalizeId(r),a=this.schemasById[n];return a?a.getResolvedSchema():this.promise.resolve(null)},e.prototype.loadSchema=function(r){if(!this.requestService){var n="Unable to load schema from '"+Vc(r)+"'. No schema request service available";return this.promise.resolve(new il({},[n]))}return this.requestService(r).then(function(a){if(!a){var s="Unable to load schema from '"+Vc(r)+"': No content.";return new il({},[s])}var c={},p=[];c=p0(a,p);var g=p.length?["Unable to parse content from '"+Vc(r)+"': Parse error at offset "+p[0].offset]:[];return new il(c,g)},function(a){var s="Unable to load schema from '"+Vc(r)+"': "+a.toString();return new il({},[s])})},e.prototype.resolveSchemaContent=function(r,n,a){var s=this,c=r.errors.slice(0),p=r.schema;if(p.$schema){var g=this.normalizeId(p.$schema);if(g==="http://json-schema.org/draft-03/schema")return this.promise.resolve(new Zv({},["Draft-03 schemas are not supported."]));g==="https://json-schema.org/draft/2019-09/schema"&&r.errors.push("Draft 2019-09 schemas are not yet fully supported.")}var v=this.contextService,y=function(B,G){if(!G)return B;var te=B;return G[0]==="/"&&(G=G.substr(1)),G.split("/").some(function(q){return te=te[q],!te}),te},b=function(B,G,te,q){var le=y(G,q);if(le)for(var ae in le)le.hasOwnProperty(ae)&&!B.hasOwnProperty(ae)&&(B[ae]=le[ae]);else c.push("$ref '"+q+"' in '"+te+"' can not be resolved.")},I=function(B,G,te,q,le){v&&!/^\w+:\/\/.*/.test(G)&&(G=v.resolveRelativePath(G,q)),G=s.normalizeId(G);var ae=s.getOrAddSchemaHandle(G);return ae.getUnresolvedSchema().then(function(pe){if(le[G]=!0,pe.errors.length){var ve=te?G+"#"+te:G;c.push("Problems loading reference '"+ve+"': "+pe.errors[0]+".")}return b(B,pe.schema,G,te),M(B,pe.schema,G,ae.dependencies)})},M=function(B,G,te,q){if(!B||typeof B!="object")return Promise.resolve(null);for(var le=[B],ae=[],pe=[],ve=function(){for(var Ee=[],ke=0;ke<arguments.length;ke++)Ee[ke]=arguments[ke];for(var Re=0,je=Ee;Re<je.length;Re++){var Ge=je[Re];typeof Ge=="object"&&le.push(Ge)}},me=function(){for(var Ee=[],ke=0;ke<arguments.length;ke++)Ee[ke]=arguments[ke];for(var Re=0,je=Ee;Re<je.length;Re++){var Ge=je[Re];if(typeof Ge=="object")for(var bt in Ge){var qe=Ge[bt];typeof qe=="object"&&le.push(qe)}}},Te=function(){for(var Ee=[],ke=0;ke<arguments.length;ke++)Ee[ke]=arguments[ke];for(var Re=0,je=Ee;Re<je.length;Re++){var Ge=je[Re];if(Array.isArray(Ge))for(var bt=0,qe=Ge;bt<qe.length;bt++){var Zt=qe[bt];typeof Zt=="object"&&le.push(Zt)}}},Ae=function(Ee){for(var ke=[];Ee.$ref;){var Re=Ee.$ref,je=Re.split("#",2);if(delete Ee.$ref,je[0].length>0){pe.push(I(Ee,je[0],je[1],te,q));return}else ke.indexOf(Re)===-1&&(b(Ee,G,te,je[1]),ke.push(Re))}ve(Ee.items,Ee.additionalProperties,Ee.not,Ee.contains,Ee.propertyNames,Ee.if,Ee.then,Ee.else),me(Ee.definitions,Ee.properties,Ee.patternProperties,Ee.dependencies),Te(Ee.anyOf,Ee.allOf,Ee.oneOf,Ee.items)};le.length;){var xe=le.pop();ae.indexOf(xe)>=0||(ae.push(xe),Ae(xe))}return s.promise.all(pe)};return M(p,p,n,a).then(function(B){return new Zv(p,c)})},e.prototype.getSchemaForResource=function(r,n){if(n&&n.root&&n.root.type==="object"){var a=n.root.properties.filter(function(G){return G.keyNode.value==="$schema"&&G.valueNode&&G.valueNode.type==="string"});if(a.length>0){var s=uo(a[0].valueNode);if(s&&k0(s,".")&&this.contextService&&(s=this.contextService.resolveRelativePath(s,r)),s){var c=this.normalizeId(s);return this.getOrAddSchemaHandle(c).getResolvedSchema()}}}for(var p=Object.create(null),g=[],v=0,y=this.filePatternAssociations;v<y.length;v++){var b=y[v];if(b.matchesPattern(r))for(var I=0,M=b.getSchemas();I<M.length;I++){var B=M[I];p[B]||(g.push(B),p[B]=!0)}}return g.length>0?this.createCombinedSchema(r,g).getResolvedSchema():this.promise.resolve(null)},e.prototype.createCombinedSchema=function(r,n){if(n.length===1)return this.getOrAddSchemaHandle(n[0]);var a="schemaservice://combinedSchema/"+encodeURIComponent(r),s={allOf:n.map(function(c){return{$ref:c}})};return this.addSchemaHandle(a,s)},e}();function Vc(e){try{}catch(r){}return e}var q0=function(){function e(r,n){this.jsonSchemaService=r,this.promise=n,this.validationEnabled=!0}return e.prototype.configure=function(r){r&&(this.validationEnabled=r.validate,this.commentSeverity=r.allowComments?void 0:Vt.Error)},e.prototype.doValidation=function(r,n,a,s){var c=this;if(!this.validationEnabled)return this.promise.resolve([]);var p=[],g={},v=function(I){var M=I.range.start.line+" "+I.range.start.character+" "+I.message;g[M]||(g[M]=!0,p.push(I))},y=function(I){var M=a?eg(a.trailingCommas):Vt.Error,B=a?eg(a.comments):c.commentSeverity;if(I){if(I.errors.length&&n.root){var G=n.root,te=G.type==="object"?G.properties[0]:null;if(te&&te.keyNode.value==="$schema"){var q=te.valueNode||te,le=ar.create(r.positionAt(q.offset),r.positionAt(q.offset+q.length));v(Na.create(le,I.errors[0],Vt.Warning,rr.SchemaResolveError))}else{var le=ar.create(r.positionAt(G.offset),r.positionAt(G.offset+1));v(Na.create(le,I.errors[0],Vt.Warning,rr.SchemaResolveError))}}else{var ae=n.validate(r,I.schema);ae&&ae.forEach(v)}qv(I.schema)&&(B=void 0),_v(I.schema)&&(M=void 0)}for(var pe=0,ve=n.syntaxErrors;pe<ve.length;pe++){var me=ve[pe];if(me.code===rr.TrailingComma){if(typeof M!="number")continue;me.severity=M}v(me)}if(typeof B=="number"){var Te="Comments are not permitted in JSON.";n.comments.forEach(function(Ae){v(Na.create(Ae,Te,B,rr.CommentNotPermitted))})}return p};if(s){var b=s.id||"schemaservice://untitled/"+_0++;return this.jsonSchemaService.resolveSchemaContent(new il(s),b,{}).then(function(I){return y(I)})}return this.jsonSchemaService.getSchemaForResource(r.uri,n).then(function(I){return y(I)})},e}(),_0=0;function qv(e){if(e&&typeof e=="object"){if(Zi(e.allowComments))return e.allowComments;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=qv(a);if(Zi(s))return s}}}function _v(e){if(e&&typeof e=="object"){if(Zi(e.allowTrailingCommas))return e.allowTrailingCommas;if(Zi(e.allowsTrailingCommas))return e.allowsTrailingCommas;if(e.allOf)for(var r=0,n=e.allOf;r<n.length;r++){var a=n[r],s=_v(a);if(Zi(s))return s}}}function eg(e){switch(e){case"error":return Vt.Error;case"warning":return Vt.Warning;case"ignore":return}}var tg=48,eb=57,tb=65,Uc=97,rb=102;function Hr(e){return e<tg?0:e<=eb?e-tg:(e<Uc&&(e+=Uc-tb),e>=Uc&&e<=rb?e-Uc+10:0)}function nb(e){if(e[0]!=="#")return null;switch(e.length){case 4:return{red:Hr(e.charCodeAt(1))*17/255,green:Hr(e.charCodeAt(2))*17/255,blue:Hr(e.charCodeAt(3))*17/255,alpha:1};case 5:return{red:Hr(e.charCodeAt(1))*17/255,green:Hr(e.charCodeAt(2))*17/255,blue:Hr(e.charCodeAt(3))*17/255,alpha:Hr(e.charCodeAt(4))*17/255};case 7:return{red:(Hr(e.charCodeAt(1))*16+Hr(e.charCodeAt(2)))/255,green:(Hr(e.charCodeAt(3))*16+Hr(e.charCodeAt(4)))/255,blue:(Hr(e.charCodeAt(5))*16+Hr(e.charCodeAt(6)))/255,alpha:1};case 9:return{red:(Hr(e.charCodeAt(1))*16+Hr(e.charCodeAt(2)))/255,green:(Hr(e.charCodeAt(3))*16+Hr(e.charCodeAt(4)))/255,blue:(Hr(e.charCodeAt(5))*16+Hr(e.charCodeAt(6)))/255,alpha:(Hr(e.charCodeAt(7))*16+Hr(e.charCodeAt(8)))/255}}return null}function D1(e,r,n,a){return a===void 0&&(a=1),{red:e/255,green:r/255,blue:n/255,alpha:a}}var ib=function(){function e(r){this.schemaService=r}return e.prototype.findDocumentSymbols=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,g=r.uri;if((g==="vscode://defaultsettings/keybindings.json"||bp(g.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var M=0,B=I.properties;M<B.length;M++){var G=B[M];if(G.keyNode.value==="key"&&G.valueNode){var te=el.create(r.uri,fo(r,I));if(v.push({name:uo(G.valueNode),kind:qi.Function,location:te}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(g),v}}}return v}var q=function(ae,pe,ve){return p>=0&&(pe.type==="array"?pe.items.forEach(function(me){return q(ae,me,ve)}):pe.type==="object"&&pe.properties.forEach(function(me){if(p>=0){var Te=me.valueNode;if(Te){p--;var Ae=el.create(r.uri,fo(r,me)),xe=ve?ve+"."+me.keyNode.value:me.keyNode.value;ae.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),location:Ae,containerName:ve}),q(ae,Te,xe)}}})),ae},le=q([],c,void 0);return p<0&&(le.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(g)),le},e.prototype.findDocumentSymbols2=function(r,n,a){var s=this;a===void 0&&(a={resultLimit:Number.MAX_VALUE});var c=n.root;if(!c)return null;var p=a.resultLimit,g=r.uri;if((g==="vscode://defaultsettings/keybindings.json"||bp(g.toLowerCase(),"/user/keybindings.json"))&&c.type==="array"){for(var v=[],y=0,b=c.items;y<b.length;y++){var I=b[y];if(I.type==="object")for(var M=0,B=I.properties;M<B.length;M++){var G=B[M];if(G.keyNode.value==="key"&&G.valueNode){var te=fo(r,I),q=fo(r,G.keyNode);if(v.push({name:uo(G.valueNode),kind:qi.Function,range:te,selectionRange:q}),p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(g),v}}}return v}var le=function(pe,ve){return p>=0&&(ve.type==="array"?ve.items.forEach(function(me,Te){if(me&&p>=0){p--;var Ae=fo(r,me),xe=Ae,Ee=String(Te),ke=le([],me);pe.push({name:Ee,kind:s.getSymbolKind(me.type),range:Ae,selectionRange:xe,children:ke})}}):ve.type==="object"&&ve.properties.forEach(function(me){var Te=me.valueNode;if(Te&&p>=0){p--;var Ae=fo(r,me),xe=fo(r,me.keyNode),Ee=le([],Te);pe.push({name:s.getKeyLabel(me),kind:s.getSymbolKind(Te.type),range:Ae,selectionRange:xe,children:Ee})}})),pe},ae=le([],c);return p<0&&(ae.pop(),a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(g)),ae},e.prototype.getSymbolKind=function(r){switch(r){case"object":return qi.Module;case"string":return qi.String;case"number":return qi.Number;case"array":return qi.Array;case"boolean":return qi.Boolean;default:return qi.Variable}},e.prototype.getKeyLabel=function(r){var n=r.keyNode.value;return n&&(n=n.replace(/[\n]/g,"\u21B5")),n&&n.trim()?n:'"'+n+'"'},e.prototype.findDocumentColors=function(r,n,a){return this.schemaService.getSchemaForResource(r.uri,n).then(function(s){var c=[];if(s)for(var p=a&&typeof a.resultLimit=="number"?a.resultLimit:Number.MAX_VALUE,g=n.getMatchingSchemas(s.schema),v={},y=0,b=g;y<b.length;y++){var I=b[y];if(!I.inverted&&I.schema&&(I.schema.format==="color"||I.schema.format==="color-hex")&&I.node&&I.node.type==="string"){var M=String(I.node.offset);if(!v[M]){var B=nb(uo(I.node));if(B){var G=fo(r,I.node);c.push({color:B,range:G})}if(v[M]=!0,p--,p<=0)return a&&a.onResultLimitExceeded&&a.onResultLimitExceeded(r.uri),c}}}return c})},e.prototype.getColorPresentations=function(r,n,a,s){var c=[],p=Math.round(a.red*255),g=Math.round(a.green*255),v=Math.round(a.blue*255);function y(I){var M=I.toString(16);return M.length!==2?"0"+M:M}var b;return a.alpha===1?b="#"+y(p)+y(g)+y(v):b="#"+y(p)+y(g)+y(v)+y(Math.round(a.alpha*255)),c.push({label:b,textEdit:fi.replace(s,JSON.stringify(b))}),c},e}();function fo(e,r){return ar.create(e.positionAt(r.offset),e.positionAt(r.offset+r.length))}var ab={schemaAssociations:{},schemas:{}};function ob(e,r){var n=[],a=[],s=[],c=-1,p=_s(e.getText(),!1),g=p.scan();function v(ke){n.push(ke),a.push(s.length)}for(;g!==17;){switch(g){case 1:case 3:{var y=e.positionAt(p.getTokenOffset()).line,b={startLine:y,endLine:y,kind:g===1?"object":"array"};s.push(b);break}case 2:case 4:{var I=g===2?"object":"array";if(s.length>0&&s[s.length-1].kind===I){var b=s.pop(),M=e.positionAt(p.getTokenOffset()).line;b&&M>b.startLine+1&&c!==b.startLine&&(b.endLine=M-1,v(b),c=b.startLine)}break}case 13:{var y=e.positionAt(p.getTokenOffset()).line,B=e.positionAt(p.getTokenOffset()+p.getTokenLength()).line;p.getTokenError()===1&&y+1<e.lineCount?p.setPosition(e.offsetAt(ui.create(y+1,0))):y<B&&(v({startLine:y,endLine:B,kind:Pu.Comment}),c=y);break}case 12:{var G=e.getText().substr(p.getTokenOffset(),p.getTokenLength()),te=G.match(/^\/\/\s*#(region\b)|(endregion\b)/);if(te){var M=e.positionAt(p.getTokenOffset()).line;if(te[1]){var b={startLine:M,endLine:M,kind:Pu.Region};s.push(b)}else{for(var q=s.length-1;q>=0&&s[q].kind!==Pu.Region;)q--;if(q>=0){var b=s[q];s.length=q,M>b.startLine&&c!==b.startLine&&(b.endLine=M,v(b),c=b.startLine)}}}break}}g=p.scan()}var le=r&&r.rangeLimit;if(typeof le!="number"||n.length<=le)return n;r&&r.onRangeLimitExceeded&&r.onRangeLimitExceeded(e.uri);for(var ae=[],pe=0,ve=a;pe<ve.length;pe++){var me=ve[pe];me<30&&(ae[me]=(ae[me]||0)+1)}for(var Te=0,Ae=0,q=0;q<ae.length;q++){var xe=ae[q];if(xe){if(xe+Te>le){Ae=q;break}Te+=xe}}for(var Ee=[],q=0;q<n.length;q++){var me=a[q];typeof me=="number"&&(me<Ae||me===Ae&&Te++<le)&&Ee.push(n[q])}return Ee}function sb(e,r,n){function a(g){for(var v=e.offsetAt(g),y=n.getNodeFromOffset(v,!0),b=[];y;){switch(y.type){case"string":case"object":case"array":var I=y.offset+1,M=y.offset+y.length-1;I<M&&v>=I&&v<=M&&b.push(s(I,M)),b.push(s(y.offset,y.offset+y.length));break;case"number":case"boolean":case"null":case"property":b.push(s(y.offset,y.offset+y.length));break}if(y.type==="property"||y.parent&&y.parent.type==="array"){var B=p(y.offset+y.length,5);B!==-1&&b.push(s(y.offset,B))}y=y.parent}for(var G=void 0,te=b.length-1;te>=0;te--)G=Dc.create(b[te],G);return G||(G=Dc.create(ar.create(g,g))),G}function s(g,v){return ar.create(e.positionAt(g),e.positionAt(v))}var c=_s(e.getText(),!0);function p(g,v){c.setPosition(g);var y=c.scan();return y===v?c.getTokenOffset()+c.getTokenLength():-1}return r.map(a)}function lb(e){var r=e.promiseConstructor||Promise,n=new Z0(e.schemaRequestService,e.workspaceContext,r);n.setSchemaContributions(ab);var a=new L0(n,e.contributions,r,e.clientCapabilities),s=new N0(n,e.contributions,r),c=new ib(n),p=new q0(n,r);return{configure:function(g){n.clearExternalSchemas(),g.schemas&&g.schemas.forEach(function(v){n.registerExternalSchema(v.uri,v.fileMatch,v.schema)}),p.configure(g)},resetSchema:function(g){return n.onResourceChange(g)},doValidation:p.doValidation.bind(p),parseJSONDocument:function(g){return I0(g,{collectComments:!0})},newJSONDocument:function(g,v){return P0(g,v)},doComplete:a.doComplete.bind(a),findDocumentSymbols:c.findDocumentSymbols.bind(c),findDocumentSymbols2:c.findDocumentSymbols2.bind(c),findColorSymbols:function(g,v){return c.findDocumentColors(g,v).then(function(y){return y.map(function(b){return b.range})})},findDocumentColors:c.findDocumentColors.bind(c),getColorPresentations:c.getColorPresentations.bind(c),doHover:s.doHover.bind(s),getFoldingRanges:ob,getSelectionRanges:sb,format:function(g,v,y){var b=void 0;if(v){var I=g.offsetAt(v.start),M=g.offsetAt(v.end)-I;b={offset:I,length:M}}var B={tabSize:y?y.tabSize:4,insertSpaces:y?y.insertSpaces:!0,eol:`
276
+ `};return m0(g.getText(),b,B).map(function(G){return fi.replace(ar.create(g.positionAt(G.offset),g.positionAt(G.offset+G.length)),G.content)})}}}var rg=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});let co=null;ct.Qg&&(co=o(23326),o(49055),o(32407),o(29387),o(22130),o(61682),o(19757),o(76239),o(49032),o(4570),o(79375));const al=lb({});co&&(co.registerHelper("lint","json",function(e,r){return rg(this,null,function*(){const{schema:n,setError:a}=r;al.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const s=Bc.create(r.id+".json","json",0,e),c=al.parseJSONDocument(s),p=yield al.doValidation(s,c);return p.length?a&&a(p[0].message):a&&a(void 0),p.map(g=>({from:co.Pos(g.range.start.line,g.range.start.character),to:co.Pos(g.range.end.line,g.range.end.character),message:g.message}))})}),co.registerHelper("hint","json",(e,r)=>rg(void 0,null,function*(){const n=r.schema;if(!n)return;al.configure({validate:!0,schemas:[{uri:"stub://"+r.id,fileMatch:["*"],schema:n}]});const a=e.getDoc().getCursor(),s=e.getTokenAt(a),c=Bc.create(r.id+".json","json",0,e.getValue()),p=al.parseJSONDocument(c),g=yield al.doComplete(c,{line:a.line,character:a.ch},p),v=b=>{let I="";for(;b--;)I+=" ";return I};let y=g?g.items.map(b=>({text:b.insertText,displayText:b.label,filter:b.filterText||b.label,from:{line:b.textEdit.range.start.line,ch:b.textEdit.range.start.character},to:{line:b.textEdit.range.end.line,ch:b.textEdit.range.end.character},hint:(I,M,B)=>{const G="_$__REDOC_CURSOR_HERE";let te=B.text.replace(/(\$1|\${1:[^}]+})/,G)||"";if(te=te.replace(/(\$\d+|\${[^}]+})/g,"")||"",I.setSelection(B.from,B.to),te.indexOf(`
277
+ `)>-1){const le=I.getLine(I.getCursor().line).search(/(\S|$)/);te=te.replace(/\n/g,`
278
+ `+v(le))}I.replaceSelection(te);const q=I.getSearchCursor(G,B.from);q.findNext()&&(I.setCursor(q.from()),q.replace(""))}})):[];return/(property|string)/.test(s.type||"")&&(y=y.filter(b=>b.filter.replace(/(^"|"$)/g,"").startsWith(s.string.replace(/(^"|"$)/g,"")))),{from:co.Pos(a.line,s.start),to:co.Pos(a.line,a.ch),list:y}})));const ub=Jt.vJ`
279
+ .cm-s-material.CodeMirror {
280
+ background-color: var(--panel-samples-controls-background-color)!important;
281
+ color: var(--text-color-inverse)!important;
282
+ font-family: var(--code-font-family);
283
+ line-height: 18px;
284
+ padding: 10px;
285
+ }
286
+
287
+ .CodeMirror-lint-mark-error {
288
+ background-size: 4px;
289
+ background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAVUlEQVR42mNgQAL/GRjigPg/EP8FYntkCX4gtoVKgvE/BoabcEVAhj6S5DUgfgFl/wFJ2gPxL6iuT1DF+kD2R5AYA5KRj6CS/FAMYvszIBltz4AFAAD9fz0YtLg13wAAAABJRU5ErkJggg==') !important;
290
+ }
291
+
292
+ .cm-s-material.CodeMirror-focused div.CodeMirror-selected {
293
+ background: rgba(255, 255, 255, 0.3) !important;
294
+ }
295
+
296
+ .cm-s-material .CodeMirror-code .cm-string.cm-property {
297
+ color: var(--code-block-tokens-property-string-color);
298
+ }
299
+
300
+ .cm-s-material .CodeMirror-code .cm-string {
301
+ color: var(--code-block-tokens-string-color);
302
+ }
303
+
304
+ .cm-s-material .CodeMirror-code .cm-atom {
305
+ color: var(--text-color-inverse);
306
+ }
307
+
308
+ div .cm-s-material .CodeMirror-matchingbracket {
309
+ outline: 1px solid grey;
310
+ text-decoration: none;
311
+ }
312
+
313
+ .react-codemirror2 {
314
+ display: flex;
315
+ flex-direction: column;
316
+ justify-content: flex-start;
317
+ overflow: hidden;
318
+
319
+ flex: 1;
320
+ }
321
+
322
+ .CodeMirror {
323
+ flex: 1;
324
+ border-radius: var(--panel-border-radius);
325
+ }
326
+ `,fb=Ma(({fieldState:e,fieldApi:r,onChange:n,onBlur:a,forwardedRef:s,id:c,mode:p,schema:g})=>{let v;const y=(q,le)=>{/^[a-zA-Z0-9_":]$/.test(le.key)&&v.execCommand("autocomplete")},b=q=>{v=q,v.on("keyup",y)},I=()=>{v.refresh()},M=()=>v.showHint({completeSingle:!0});(0,Bt.useMount)(()=>{setTimeout(()=>{v.refresh()},0),document.addEventListener("click",I)}),(0,Bt.useUnmount)(()=>{document.removeEventListener("click",I)});const{value:B}=e,{setValue:G,setTouched:te}=r;return L.createElement(L.Fragment,null,L.createElement(ub,null),L.createElement(r0.fk,{editorDidMount:b,value:B||"",ref:s,onBeforeChange:(q,le,ae)=>{G(ae),n&&n(ae)},onBlur:q=>{te(!1),a&&a(q)},options:{mode:p||Oc.Tr.JSON,theme:"material",matchBrackets:!0,autoCloseBrackets:!0,tabSize:2,foldGutter:!0,extraKeys:{"Cmd-Space":M,"Ctrl-Space":M},hintOptions:{id:c,completeSingle:!1,schema:g}}}))});var Ap=o(44555);function cb({mediaType:e,mediaContent:r,properties:n,id:a,resolvedBody:s,formApi:c,getActiveSample:p,validate:g}){const v=(0,Ap.yN)(r),y=e.examples||{},b=Object.keys(y),I=e.schema,M=Ji(I||{},e.name)||e.name===Oc.Tr.MULTIPART||e.name===Oc.Tr.URL_ENCODED,{exampleKey:B}=(0,np.C6)(e.operation,y),G=(0,ct.YQ)((0,Yt.P6)(a,e.name,B,y))||(0,Yt.oY)(y[B],n);(0,L.useEffect)(()=>{c.setValue("body",G)},[G,c]);const te=(0,L.useCallback)((ae="",pe="",ve=[])=>me=>{(0,ct.WW)((0,Yt.P6)(a,ae,pe,ve),me)},[a]),q=(0,L.useCallback)(ae=>{v&&v(ae),c.setValue("body",p(ae))},[c,p,v]),le=(0,L.useCallback)((ae,pe)=>{c.setValue(`body.${ae}`,pe)},[c]);return L.createElement(L.Fragment,null,b.length&&b.length!==1&&L.createElement(np.b_,{examples:y,onChange:q,exampleKey:B,panel:"try-it"})||null,M?L.createElement(e0,{mediaType:e,formApi:c,onChange:le}):L.createElement(fb,{id:"body"+a,field:"body",initialValue:G,schema:((s==null?void 0:s.content[e.name])||{}).schema,mode:e.name,validate:g,onChange:te(e.name,B,y)}))}const db=(0,L.memo)(cb);var pb=o(69122),hb=Object.defineProperty,vb=Object.defineProperties,gb=Object.getOwnPropertyDescriptors,ng=Object.getOwnPropertySymbols,mb=Object.prototype.hasOwnProperty,yb=Object.prototype.propertyIsEnumerable,ig=(e,r,n)=>r in e?hb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,bb=(e,r)=>{for(var n in r||(r={}))mb.call(r,n)&&ig(e,n,r[n]);if(ng)for(var n of ng(r))yb.call(r,n)&&ig(e,n,r[n]);return e},xb=(e,r)=>vb(e,gb(r));function Sb({body:e,formApi:r,resolvedBody:n,properties:a,id:s,validate:c,pointer:p}){const g=e.content,v=(0,hr.useRecoilValue)(pb.UF),{examples:y,name:b}=g&&(0,Ar.getActiveMediaType)(g,v)||{},I=(0,L.useCallback)(G=>{if(!g||!g.hasSample||!(y!=null&&y[G]))return"";const te=b&&(0,ct.YQ)((0,Yt.P6)(s,b,G,y)),q=te?JSON.parse(te):y==null?void 0:y[G].value,le=a?tu()(q,a,{arrayMerge:so.lN}):q;return JSON.stringify(le,null,2)},[b,y,s,g,a]),{activeExampleName:M}=(0,hr.useRecoilValue)((0,ip.N)(p));(0,L.useEffect)(()=>{if(b){const G=(0,Yt.P6)(s,b,M,y);r.setValue("body",(0,ct.YQ)(G)||I(M||""))}else r.setValue("body",JSON.stringify(a||{},null,2))},[y,M,b,r,I,s,a]);const B=G=>L.createElement($y.C,xb(bb({},G),{variant:"dark",fullWidth:!0,Label:Jy,Dropdown:Yy.Lt}));return L.createElement(L.Fragment,null,L.createElement(Ky.d,{content:e.content,renderDropdown:B},G=>L.createElement(db,{mediaType:G,mediaContent:g,resolvedBody:n,id:s,properties:a,getActiveSample:I,formApi:r,validate:c})))}const wb=(0,L.memo)(Sb);var Ab=o(61687);const Cb=Ma(({initValue:e,paramEnum:r,fieldApi:n})=>{const[a,s]=(0,L.useState)(),c=r.map((v,y)=>({idx:y,value:v})),p=v=>{n.setValue(v.value),s(v.value)};(0,Bt.useMount)(()=>{if(!!e)if(Array.isArray(e)){const v=e.length?e[0]:"";s(v),n.setValue(v)}else s(e),n.setValue(e)});const g=()=>{n.setValue(""),s("")};return L.createElement(kn.VD,{clearable:!0,fullWidth:!0,variant:"dark",value:a,options:c,handleClear:g,onChange:p})}),Eb=({name:e,param:r,place:n,renderParameter:a})=>{var s,c,p,g,v;const[y,b]=L.useState([]),I=()=>{b([...y,y.length?y[y.length-1]+1:0])},M=G=>{b(y.filter(te=>te!==G))},B=(s=r.schema.items)!=null&&s.fields?(c=r.schema.items)==null?void 0:c.fields:[{schema:((p=r.schema.items)==null?void 0:p.schema)||r.schema.items,name:"",required:r.required,description:(g=r.schema.items)==null?void 0:g.description,externalDocs:(v=r.schema.items)==null?void 0:v.externalDocs,deprecated:!1,toggle:()=>null,expanded:!1}];return L.createElement(L.Fragment,null,L.createElement(ag,null,L.createElement(ht.lX,{required:r.required},e,"(",y.length," items)"),L.createElement("span",{onClick:I},"Add item +")),y==null?void 0:y.map((G,te)=>L.createElement(ag,{key:G},L.createElement(Ob,{onClick:()=>M(G)},"delete"),B.map(q=>a(q,n,`${e}.[${G}]`,`[${te}]${q.name&&"."+q.name}`)))))},ag=Jt.ZP.div`
327
+ display: flex;
328
+ width: 100%;
329
+ align-items: center;
330
+ justify-content: space-between;
331
+ flex-wrap: wrap;
332
+ margin-bottom: 10px;
333
+ label {
334
+ padding-bottom: 0;
335
+ overflow: hidden;
336
+ text-overflow: ellipsis;
337
+ line-height: 1.5;
338
+ }
339
+ span {
340
+ cursor: pointer;
341
+ margin-left: auto;
342
+ color: var(--text-color-secondary);
343
+ &:hover {
344
+ color: #fff;
345
+ }
346
+ }
347
+ `,Ob=Jt.ZP.span`
348
+ background: transparent;
349
+ border: none;
350
+ cursor: pointer;
351
+ position: relative;
352
+ `;var Nu=(e=>(e.ARRAY="array",e.OBJECT="object",e))(Nu||{});function Tb({schema:e,example:r}){return`(${e.type})`+(r?` ${r}`:"")}function Pb(e){const r={};return e.forEach(n=>{n.in&&(r[n.in]||(r[n.in]=[]),r[n.in].push(n))}),r}function Ib({schema:e,required:r}){return n=>{if(r&&!n)return"Field is required";if(r&&e.type===Nu.ARRAY&&Array.isArray(n)){if(n.length>(e.rawSchema&&e.rawSchema.maxItems||1/0))return`Too many items selected, maximum ${e.rawSchema.maxItems}`;if(n.length<(e.rawSchema&&e.rawSchema.minItems||0)){const a=e.rawSchema.minItems;return`You should select at least ${a===1?`${a} item`:`${a} items`}`}}}}function kb(e){if(e.type===Nu.ARRAY){const r=e.default||e.example;if(!r&&typeof e.rawSchema.items!="boolean"&&Array.isArray(e.rawSchema.items)){if(e.rawSchema.items[0].default)return[e.rawSchema.items[0].default];if(e.rawSchema.items[0].example)return[e.rawSchema.items[0].example]}if(!r&&typeof e.rawSchema.items!="boolean"&&!Array.isArray(e.rawSchema.items)&&(0,ct.Kn)(e.rawSchema.items)){if(e.rawSchema.items.default)return[e.rawSchema.items.default];if(e.rawSchema.items.example)return[e.rawSchema.items.example]}return r||[]}else return(Number.isInteger(e.default)?e.default.toString():e.default)||e.example}function Fb({oneOfType:e}){return e}const Rb=["path","query","cookie","header"];function Mb({id:e,param:r,values:n}){const a=(0,L.useMemo)(()=>Ib(r),[r]),s=Array.isArray(r.schema.enum)&&r.schema.enum.length?r.schema.enum:void 0,c=kb(r.schema),p=e.split(".").map(g=>(0,ct.dw)(g));return s?L.createElement(ht.NI,null,L.createElement(Cb,{initValue:c,paramEnum:s,field:e})):L.createElement(Rn,{fullWidth:!0,"data-cy":"parameter-input",id:e,field:e,placeholder:Tb(r),validate:a,initialValue:c||(0,ct.U2)(n,p),validateOnBlur:!0,validateOnChange:!0})}function Lb({values:e,operation:r}){const n=(0,L.useMemo)(()=>Pb(r.parameters||[]),[r]),a=(c,p,g,v)=>{var y;const b=g?(0,ct.s1)(g,c.name):c.name,I=Fb(c.schema),M=g?[p,g]:[c.in],B=(0,ct.s1)(...M,(0,ct.A8)(c.name));return I&&console.warn(`Unsupported parameter definition: "${I}"`),c.schema.type===Nu.ARRAY?L.createElement(Eb,{key:B,name:b,param:c,place:p,renderParameter:a}):c.schema.type===Nu.OBJECT?(y=c.schema.fields)==null?void 0:y.map(G=>a(G,p,b)):L.createElement(ht.NI,{key:B},L.createElement(ht.lX,{required:c.required},v||b,":"),I?L.createElement(ht.GE,null,"Unsupported field schema definition"):L.createElement(Mb,{id:B,param:c,values:e}))},s=c=>{const p=n[c];return!p||!p.length?null:L.createElement(L.Fragment,{key:c},L.createElement(ht.NI,null,L.createElement(ht.iG,null," # ",c," parameters "),L.createElement("span",null,"\xA0")),p.map(g=>a(g,c)))};return L.createElement(ht.iA,null,Rb.map(s))}var Nb=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function Db(e){return Nb(this,null,function*(){return(yield fetch(e)).json()})}const Bb=Jt.ZP.div`
353
+ position: relative;
354
+ height: 4px;
355
+ display: block;
356
+ width: 100%;
357
+ background-color: var(--linear-progress-background-color);
358
+ border-radius: var(--border-radius);
359
+ background-clip: padding-box;
360
+ margin: 0.5rem 0 1rem 0;
361
+ overflow: hidden;
362
+
363
+ .determinate {
364
+ position: absolute;
365
+ top: 0;
366
+ bottom: 0;
367
+ background-color: var(--linear-progress-color);
368
+ transition: width 0.3s linear;
369
+ }
370
+ .indeterminate {
371
+ background-color: var(--linear-progress-color);
372
+ }
373
+ .indeterminate:before {
374
+ content: '';
375
+ position: absolute;
376
+ background-color: inherit;
377
+ top: 0;
378
+ left: 0;
379
+ bottom: 0;
380
+ will-change: left, right;
381
+ -webkit-animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
382
+ animation: indeterminate 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
383
+ }
384
+ .indeterminate:after {
385
+ content: '';
386
+ position: absolute;
387
+ background-color: inherit;
388
+ top: 0;
389
+ left: 0;
390
+ bottom: 0;
391
+ will-change: left, right;
392
+ -webkit-animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
393
+ animation: indeterminate-short 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) infinite;
394
+ -webkit-animation-delay: 1.15s;
395
+ animation-delay: 1.15s;
396
+ }
397
+
398
+ @-webkit-keyframes indeterminate {
399
+ 0% {
400
+ left: -35%;
401
+ right: 100%;
402
+ }
403
+ 60% {
404
+ left: 100%;
405
+ right: -90%;
406
+ }
407
+ 100% {
408
+ left: 100%;
409
+ right: -90%;
410
+ }
411
+ }
412
+ @keyframes indeterminate {
413
+ 0% {
414
+ left: -35%;
415
+ right: 100%;
416
+ }
417
+ 60% {
418
+ left: 100%;
419
+ right: -90%;
420
+ }
421
+ 100% {
422
+ left: 100%;
423
+ right: -90%;
424
+ }
425
+ }
426
+ @-webkit-keyframes indeterminate-short {
427
+ 0% {
428
+ left: -200%;
429
+ right: 100%;
430
+ }
431
+ 60% {
432
+ left: 107%;
433
+ right: -8%;
434
+ }
435
+ 100% {
436
+ left: 107%;
437
+ right: -8%;
438
+ }
439
+ }
440
+ @keyframes indeterminate-short {
441
+ 0% {
442
+ left: -200%;
443
+ right: 100%;
444
+ }
445
+ 60% {
446
+ left: 107%;
447
+ right: -8%;
448
+ }
449
+ 100% {
450
+ left: 107%;
451
+ right: -8%;
452
+ }
453
+ }
454
+ `,og=()=>L.createElement(Bb,null,L.createElement("div",{className:"indeterminate"})),jb=Jt.ZP.div`
455
+ font-family: var(--font-family-monospaced);
456
+ margin-top: 10px;
457
+ line-height: 1;
458
+ padding-left: 10px;
459
+ border-left: 1px solid gray;
460
+ `,Vb=Jt.ZP.div`
461
+ margin-bottom: 15px;
462
+ `,Ub=Jt.ZP.div`
463
+ padding: 8px 0 20px;
464
+ `,Wb=Jt.ZP.div`
465
+ padding: 4px 0;
466
+ `;var Hb=Object.defineProperty,zb=Object.defineProperties,Gb=Object.getOwnPropertyDescriptors,sg=Object.getOwnPropertySymbols,$b=Object.prototype.hasOwnProperty,Kb=Object.prototype.propertyIsEnumerable,lg=(e,r,n)=>r in e?Hb(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Yb=(e,r)=>{for(var n in r||(r={}))$b.call(r,n)&&lg(e,n,r[n]);if(sg)for(var n of sg(r))Kb.call(r,n)&&lg(e,n,r[n]);return e},Jb=(e,r)=>zb(e,Gb(r));const Xb=Jt.ZP.input`
467
+ cursor: pointer;
468
+ margin-left: 0;
469
+ margin-right: 5px;
470
+ height: 20px;
471
+
472
+ align-self: baseline;
473
+ margin-top: 0;
474
+ margin-bottom: 0;
475
+ `,Qb=Jt.ZP.label`
476
+ display: inline-block;
477
+ cursor: pointer;
478
+ vertical-align: middle;
479
+ position: relative;
480
+ text-overflow: ellipsis;
481
+ overflow: hidden;
482
+
483
+ overflow-wrap: break-word;
484
+ line-height: 20px;
485
+ `,Zb=Jt.ZP.div`
486
+ width: ${({fullWidth:e})=>e?"100%":"50%"};
487
+ display: inline-flex;
488
+ align-items: center;
489
+
490
+ & > label {
491
+ white-space: ${({nowrap:e})=>e?"nowrap":"normal"};
492
+ }
493
+
494
+ ${({nowrap:e})=>e?"":`
495
+ :not(:first-child) {
496
+ margin-top: 5px;
497
+ }
498
+ `}
499
+ `;function qb(e,r){const{fullWidth:n,id:a,label:s,nowrap:c}=e;return L.createElement(Zb,{fullWidth:n,nowrap:c},L.createElement(Xb,Jb(Yb({},e),{type:"checkbox",ref:r})),L.createElement(Qb,{htmlFor:a},s))}const ug=(0,L.forwardRef)(qb),_b=11,ex=Ma(({items:e,fieldApi:r,validateOnChange:n,maxDisplayedItems:a,showControls:s,trimItemsLength:c})=>{const[p,g]=(0,L.useState)(!0),v=q=>{const le=q.target.value,ae=q.target.checked;r.setTouched(!0);const pe=r.getValue()||[];let ve;if(ae)ve=[...pe,le];else{const me=pe.indexOf(le);ve=[...pe.slice(0,me),...pe.slice(me+1)]}r.setValue(ve)},y=q=>r.getValue().includes(q),b=()=>{g(q=>!q)},I=()=>{r.setValue(e)},M=()=>{r.setValue([])},B=r.getError(),G=a||_b,te=c&&p?e.slice(0,G):e;return L.createElement("div",null,s?L.createElement(tx,null,L.createElement(Bt.SamplesControlButton,{onClick:()=>{I()}},"Select all"),L.createElement(Bt.SamplesControlButton,{onClick:()=>{M()}},"Clear")):null,L.createElement("div",null,te.map(q=>L.createElement(ug,{fullWidth:!0,id:q,value:q,checked:y(q),label:q,key:q,onChange:le=>{v(le),n&&r.validate()}})),e.length>G&&c?L.createElement(rx,{onClick:()=>{b()}},p?"Show all":"Collapse"):null),B?L.createElement(ht.Xq,null,B):"")}),tx=(0,Jt.ZP)(Bt.SampleControls)`
500
+ opacity: 1;
501
+ text-align: left;
502
+ `,rx=(0,Jt.ZP)(Bt.SamplesControlButton)`
503
+ float: right;
504
+ `;function fg(e){const{scopes:r,id:n}=e;let a=[];try{a=JSON.parse((0,ct.YQ)(`auth.${n}.scopes`))}catch(s){}return!r||!r.length?L.createElement(L.Fragment,null):L.createElement(ht.NI,null,L.createElement(ht.lX,null," Scopes: "),L.createElement(ex,{field:`auth.${n}.scopes`,initialValue:a,items:r,showControls:!0,trimItemsLength:!0}))}const nx=({token:e,loading:r,error:n})=>r?L.createElement(ht.GE,null,"Please, finish your authorization flow or cancel authorization."):n?L.createElement(jb,null,L.createElement(ht.Xq,null,n)):e!=null&&e.access_token?null:L.createElement(ht.GE,null," No Access Token. Please, Authorize. ");var ix=Object.defineProperty,ax=Object.defineProperties,ox=Object.getOwnPropertyDescriptors,cg=Object.getOwnPropertySymbols,sx=Object.prototype.hasOwnProperty,lx=Object.prototype.propertyIsEnumerable,dg=(e,r,n)=>r in e?ix(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Wc=(e,r)=>{for(var n in r||(r={}))sx.call(r,n)&&dg(e,n,r[n]);if(cg)for(var n of cg(r))lx.call(r,n)&&dg(e,n,r[n]);return e},Cp=(e,r)=>ax(e,ox(r)),ux=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function fx(e){if(!e)return"Field is required"}const Hc=({usePkce:e,form:r,id:n,formApi:a,flow:s,tokenUrl:c,authCorsProxyUrl:p,tokenEndpointAuthMethod:g,server:v,scopes:y,authorizationUrl:b,defaultValues:I,clientId:M})=>{var B,G,te,q;const{oAuth2RedirectURI:le,routingBasePath:ae}=(0,hr.useRecoilValue)(mu.lk),[pe,ve]=(0,L.useState)(null),[me,Te]=(0,L.useState)(!1),[Ae,xe]=(0,L.useState)(!1),[Ee,ke]=(0,L.useState)(void 0),[Re,je]=(0,L.useState)(void 0),[Ge,bt]=(0,L.useState)(void 0),qe=((G=(B=r.values)==null?void 0:B.auth)==null?void 0:G[n])||{},Zt=((q=(te=r.errors)==null?void 0:te.auth)==null?void 0:q[n])||{},sr=Ee!==void 0&&Re!==Ge?{label:"sync",onClick:()=>{Ee&&je(Ge)}}:void 0;(0,L.useEffect)(()=>{if(e){const nr=(0,so.CY)(43);wh(nr).then(Ht=>{ke(nr),je(Ht),bt(Ht)})}},[e]);const gr=nr=>{if(!nr||(a.validate(),!(0,so.Qr)(Zt)))return;Te(!0),ve(null);const Ht=p?p+(0,Yt.jg)(nr):nr,xn=p&&c?p+(0,Yt.jg)(c):c,_i=a.getValue(`auth.${n}.scopes`),qn={authorizationUrl:Ht.startsWith("http")?Ht:v+Ht,clientId:qe.client_id,scopes:_i,redirectUri:le,routingBasePath:ae,successCallback:on=>{a.setValue(`auth.${n}.token`,on),Te(!1),ve(null)},errorCallback:on=>{Te(!1),ve((on==null?void 0:on.message)||"Failed to retrieve the access token")}};if(s==="implicit"&&Fi.authorizeImplicit(qn),!(0,Yt.xl)(g)){console.log(`Unsupported token endpoint auth method: ${g}`);return}s==="authorizationCode"&&Fi.authorizeAuthorizationCode(Wc(Cp(Wc({},qn),{tokenUrl:xn!=null&&xn.startsWith("http")?xn:v+xn,clientSecret:qe.client_secret,extraHeaders:(0,Yt.Or)({authMethod:g,clientId:qe.client_id,clientSecret:qe.client_secret})}),e&&{codeVerifier:Ee,codeChallenge:Re}))},Pr=()=>{Ut(),ve(null)},fr=()=>{Te(!1),ve(null),Fi.clearRedirectData(s)},Ut=()=>{a.setValue(`auth.${n}.token`,"")},cr=()=>{xe(nr=>!nr)},Nt=nr=>ux(void 0,[nr],function*({target:{value:Ht}}){const xn=yield wh(Ht);ke(Ht),bt(xn)});if(!b)return L.createElement(ht.Xq,null,"No flow info");let it=(0,ct.YQ)(`auth.${n}.token`)||JSON.stringify(I==null?void 0:I.token);it=it?JSON.parse(it):"";const wt=(0,ct.Al)(n,"client_id"),zt={field:`auth.${n}.client_id`,fullWidth:!0,initialValue:(0,ct.YQ)(`auth.${n}.client_id`)||M||(I==null?void 0:I.client_id),initValue:(0,ct.YQ)(`auth.${n}.client_id`)||M||(I==null?void 0:I.client_id),placeholder:"Your OAuth2 app Client ID",validate:fx,validateOnBlur:!0,validateOnChange:!0};return L.createElement("div",null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null," Client ID: "),wt?L.createElement(Cu,Cp(Wc({},zt),{options:wt})):L.createElement(Rn,Cp(Wc({},zt),{"data-cy":"client-id-input",panel:"try-it"}))),s==="authorizationCode"&&L.createElement(L.Fragment,null,(!(e!=null&&e.hideClientSecretInput)||!e)&&L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${n}.client_secret`,initialValue:(0,ct.YQ)(`auth.${n}.client_secret`)||(I==null?void 0:I.client_secret),validateOnBlur:!0,validateOnChange:!0,panel:"try-it","data-cy":"client-secret-input"})),e&&!e.disableManualConfiguration&&L.createElement(Ub,null,L.createElement(ug,{id:"pkce-opitons-toggle",label:"Configure PKCE manually",checked:Ae,onChange:cr,"data-cy":"pkce-options-toggle"}),Ae&&L.createElement(Wb,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Verifier"),L.createElement(Au,{fullWidth:!0,value:Ee,onChange:Nt,panel:"try-it","data-cy":"code-verifier-input"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Code Challenge"),L.createElement(Au,{fullWidth:!0,value:Re,onChange:({target:{value:nr}})=>{je(nr)},inputActionButton:sr,panel:"try-it","data-cy":"code-challenge-input"}))))),L.createElement(Rn,{fullWidth:!0,field:`auth.${n}.token`,type:"hidden",initialValue:it,panel:"try-it"}),L.createElement(fg,{id:n,scopes:y}),qe.token&&qe.token.access_token?L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(Au,{disabled:!0,type:"password",fullWidth:!0,value:qe.token.access_token,panel:"try-it"})):null),L.createElement(Vb,null,qe.token&&qe.token.access_token?L.createElement(Bt.Button,{fullWidth:!0,onClick:Pr},"Log out"):me?L.createElement(L.Fragment,null,L.createElement(Bt.Button,{fullWidth:!0,onClick:fr},"Cancel"),L.createElement(og,null)):L.createElement(Bt.Button,{fullWidth:!0,disabled:!(0,so.Qr)(Zt),onClick:()=>{gr(b)}},"Authorize")),me||pe||!qe.token||!qe.token.access_token&&L.createElement(nx,{loading:me,error:pe,token:qe.token}))};var cx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function dx(e){var r,n;const{scheme:a,defaultValues:s}=e,[c,p]=(0,L.useState)({}),[g,v]=(0,L.useState)(),[y,b]=(0,L.useState)(!1);(0,L.useEffect)(()=>{I(a.openIdConnectUrl)},[a.openIdConnectUrl]);const I=M=>cx(this,null,function*(){b(!0),v("");try{const B=yield Db(M);p(B)}catch(B){v(B.message)}b(!1)});return y?L.createElement(px,null):g?L.createElement(pg,{message:g}):L.createElement("div",null,L.createElement("div",null,(r=c==null?void 0:c.response_types_supported)!=null&&r.includes("token")?L.createElement(L.Fragment,null,L.createElement(kn.S6,null,"OAuth2 Implicit Flow"),L.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,flow:"implicit",defaultValues:s})):(n=c==null?void 0:c.response_types_supported)!=null&&n.includes("code")?L.createElement(L.Fragment,null,L.createElement(kn.S6,null,"OAuth2 Authorization Flow"),L.createElement(Hc,{key:e.id,authorizationUrl:c.authorization_endpoint,tokenUrl:c.token_endpoint,authCorsProxyUrl:e.authCorsProxyUrl,scopes:c.scopes_supported,server:e.server,id:e.id,form:e.form,formApi:e.formApi,clientId:e.clientId,tokenEndpointAuthMethod:c==null?void 0:c.token_endpoint_auth_methods_supported,flow:"authorizationCode",defaultValues:s})):L.createElement("div",null,"Unsupported flow")))}function px(){return L.createElement("div",null,L.createElement("div",null,L.createElement("div",null,"Fetching OpenID Connect metadata..."),L.createElement(og,null)))}function pg({message:e}){return L.createElement("div",null,L.createElement("div",null,L.createElement(ht.Xq,null,e)))}var hx=Object.defineProperty,vx=Object.defineProperties,gx=Object.getOwnPropertyDescriptors,hg=Object.getOwnPropertySymbols,mx=Object.prototype.hasOwnProperty,yx=Object.prototype.propertyIsEnumerable,vg=(e,r,n)=>r in e?hx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,gg=(e,r)=>{for(var n in r||(r={}))mx.call(r,n)&&vg(e,n,r[n]);if(hg)for(var n of hg(r))yx.call(r,n)&&vg(e,n,r[n]);return e},mg=(e,r)=>vx(e,gx(r)),bx=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function xx(e){if(!e)return"Token is required"}const Sx=({form:e,id:r,formApi:n,server:a,flow:s,authCorsProxyUrl:c,defaultValues:p,clientId:g})=>{var v,y,b,I;const[M,B]=(0,L.useState)(""),[G,te]=(0,L.useState)(!1),[q,le]=(0,L.useState)(!0),ae=((y=(v=e==null?void 0:e.values)==null?void 0:v.auth)==null?void 0:y[r])||{},pe=((I=(b=e.errors)==null?void 0:b.auth)==null?void 0:I[r])||{},ve=()=>{n.setValue(`auth.${r}.token`,""),(0,ct.WW)(`auth.${r}.token`,"")},me=()=>{le(Re=>!Re)},Te=()=>bx(void 0,null,function*(){if(G)return;const Re=c&&s.tokenUrl?c+(0,Yt.jg)(s.tokenUrl):s.tokenUrl;if(pe.client_id||pe.client_secret){console.log("Provide client_id and client_secret");return}const je=ae.client_id,Ge=ae.client_secret;if(!je||!Ge){console.log("Provide client_id and client_secret");return}te(!0);const bt=s["x-tokenEndpointAuthMethod"];if(!(0,Yt.xl)(bt)){console.log(`Unsupported token endpoint auth method: ${bt}`);return}yield Fi.authorizeClientCredentials({tokenUrl:Re.startsWith("http")?Re:a+Re,clientId:je,clientSecret:Ge,scopes:ae.scopes,extraHeaders:(0,Yt.Or)({authMethod:bt,clientId:je,clientSecret:Ge}),successCallback:qe=>{n.setValue(`auth.${r}.token`,qe),te(!1)},errorCallback:qe=>{ve(),B(qe.message),te(!1)}})}),Ae=Object.keys(s.scopes);let xe=(0,ct.YQ)(`auth.${r}.token`)||JSON.stringify(p==null?void 0:p.token);xe=xe?JSON.parse(xe):"";const Ee=(0,ct.Al)(r,"client_id"),ke={field:`auth.${r}.client_id`,fullWidth:!0,initialValue:(0,ct.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),initValue:(0,ct.YQ)(`auth.${r}.client_id`)||g||(p==null?void 0:p.client_id),placeholder:"Your OAuth2 app Client ID"};return L.createElement(L.Fragment,null,L.createElement(ht.n5,null,L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client ID:"),Ee?L.createElement(Cu,mg(gg({},ke),{options:Ee})):L.createElement(Rn,mg(gg({},ke),{type:"password",panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null,"Client Secret:"),L.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${r}.client_secret`,initialValue:(0,ct.YQ)(`auth.${r}.client_secret`)||(p==null?void 0:p.client_secret),panel:"try-it"})),L.createElement(Rn,{fullWidth:!0,field:`auth.${r}.token`,type:"hidden",initialValue:xe,validate:xx}),L.createElement(fg,{id:r,scopes:Ae})),L.createElement(Bt.Button,{color:"primary",onClick:Te,blinking:G},G?"Loading...":"Request Token"),L.createElement(ht.ph,null," Access Token "),M?L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"Failed to request token: ",L.createElement("pre",null,M)," "):ae.token&&ae.token.access_token?L.createElement(ht.TR,null,L.createElement(ht.WA,{length:ae.token.access_token.length,masked:q},ae.token.access_token),L.createElement(ht.lf,{onClick:me},q?"Show":"Hide"," "),L.createElement(ht.h,{onClick:ve}," Clear ")):L.createElement(ht.Xq,{style:{marginBottom:"1em"}},"No token"))};var wx=Object.defineProperty,Ax=Object.defineProperties,Cx=Object.getOwnPropertyDescriptors,yg=Object.getOwnPropertySymbols,Ex=Object.prototype.hasOwnProperty,Ox=Object.prototype.propertyIsEnumerable,bg=(e,r,n)=>r in e?wx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,ol=(e,r)=>{for(var n in r||(r={}))Ex.call(r,n)&&bg(e,n,r[n]);if(yg)for(var n of yg(r))Ox.call(r,n)&&bg(e,n,r[n]);return e},sl=(e,r)=>Ax(e,Cx(r));const Tx=({securityDefaults:e,operation:r,activeServer:n,authCorsProxyUrl:a,form:s,formApi:c})=>{const[p,g]=(0,L.useState)(0);(0,L.useEffect)(()=>{const M=r.security.map(te=>te.schemes.map(q=>q.id).join(" and ")),B=(0,ct.YQ)("securityRequirementName"),G=M.findIndex(te=>te===B);g(G<0?0:G)},[r]);const v=M=>{g(M.idx),(0,ct.WW)("securityRequirementName",M.value)},y=r.security,I=y.map(M=>M.schemes.map(B=>B.id).join(" and ")).filter(Boolean).map((M,B)=>({value:M,idx:B}));return I.length===0?L.createElement(pg,{message:"Cannot find security schema in the definition"}):L.createElement(L.Fragment,null,L.createElement(ht.n5,null,I.length>1&&L.createElement(ht.NI,null,L.createElement(ht.lX,null," Security scheme: "),L.createElement(kn.VD,{variant:"dark",fullWidth:!0,options:I,value:I[p].value,onChange:v}))||null,y[p].schemes.map(M=>{var B,G,te,q,le,ae,pe;const ve=(0,ct.A8)(M.id);if(M.type==="apiKey"){const me=(0,ct.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,Yt.NG)(M)||(0,ct.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,Yt.NG)(M)||(0,ct.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(ht.NI,{key:ve},L.createElement(ht.lX,null," ",M.name,": "),me?L.createElement(Cu,sl(ol({},Te),{options:me})):L.createElement(Rn,sl(ol({},Te),{type:"password",panel:"try-it","data-cy":"apiKey-auth-password"})))}else if(M.type==="http"){if(M.scheme==="basic"){const me=(0,ct.Al)(ve,"username"),Te={field:`auth.${ve}.username`,fullWidth:!0,initialValue:(0,ct.YQ)(`auth.${ve}.username`)||((B=e==null?void 0:e[ve])==null?void 0:B.username),initValue:(0,ct.YQ)(`auth.${ve}.username`)||((G=e==null?void 0:e[ve])==null?void 0:G.username),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicUsername"),": "),me?L.createElement(Cu,sl(ol({},Te),{options:me})):L.createElement(Rn,sl(ol({},Te),{panel:"try-it"}))),L.createElement(ht.NI,null,L.createElement(ht.lX,null," ",(0,wu.l)("tryItAuthBasicPassword"),": "),L.createElement(Rn,{type:"password","data-cy":"http-auth-password",fullWidth:!0,field:`auth.${ve}.password`,initialValue:(0,ct.YQ)(`auth.${ve}.password`)||((te=e==null?void 0:e[ve])==null?void 0:te.password)||"",validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(M.scheme==="bearer"){const me=(0,ct.Al)(ve,""),Te={field:`auth.${ve}`,fullWidth:!0,initialValue:(0,ct.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),initValue:(0,ct.YQ)(`auth.${ve}`)||(e==null?void 0:e[ve]),validate:Yt.np,validateOnBlur:!0,validateOnChange:!0};return L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Bearer Token: "),me?L.createElement(Cu,sl(ol({},Te),{options:me})):L.createElement(Rn,sl(ol({},Te),{type:"password",placeholder:"(without 'Bearer')",panel:"try-it"}))))}}else{if(M.type==="oauth2"&&M.flows&&M.flows.clientCredentials)return L.createElement(Sx,{key:ve,flow:M.flows.clientCredentials,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,clientId:M.flows.clientCredentials["x-defaultClientId"]||M["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]});if(M.type==="oauth2"&&M.flows&&M.flows.implicit)return L.createElement(Hc,{key:ve,authorizationUrl:M.flows.implicit.authorizationUrl,authCorsProxyUrl:a,scopes:Object.keys(((le=(q=M==null?void 0:M.flows)==null?void 0:q.implicit)==null?void 0:le.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:M.flows.implicit["x-defaultClientId"]||M["x-defaultClientId"],flow:"implicit",defaultValues:e==null?void 0:e[ve]});if(M.type==="oauth2"&&M.flows&&M.flows.authorizationCode)return L.createElement(Hc,{key:ve,authorizationUrl:M.flows.authorizationCode.authorizationUrl,tokenUrl:M.flows.authorizationCode.tokenUrl,authCorsProxyUrl:a,scopes:Object.keys(((ae=M.flows.authorizationCode)==null?void 0:ae.scopes)||{}),server:n,id:ve,form:s,formApi:c,clientId:M.flows.authorizationCode["x-defaultClientId"]||M["x-defaultClientId"],flow:"authorizationCode",tokenEndpointAuthMethod:M.flows.authorizationCode["x-tokenEndpointAuthMethod"],usePkce:M.flows.authorizationCode["x-usePkce"],defaultValues:e==null?void 0:e[ve]});if(M.type==="oauth2"){let me=(0,ct.YQ)(`auth.${ve}.token`)||JSON.stringify((pe=e==null?void 0:e[ve])==null?void 0:pe.token);return me=me?JSON.parse(me):{},L.createElement(L.Fragment,{key:ve},L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token Type: "),L.createElement(Rn,{fullWidth:!0,field:`auth.${ve}.token.token_type`,initialValue:me.token_type||"Bearer",panel:"try-it"})),L.createElement(ht.NI,null,L.createElement(ht.lX,null," Access Token: "),L.createElement(Rn,{type:"password",fullWidth:!0,field:`auth.${ve}.token.access_token`,validate:Yt.np,initialValue:me.access_token,validateOnBlur:!0,validateOnChange:!0,panel:"try-it"})))}else if(M.type==="openIdConnect")return L.createElement(dx,{key:ve,server:n,authCorsProxyUrl:a,id:ve,form:s,formApi:c,scheme:M,clientId:M["x-defaultClientId"],defaultValues:e==null?void 0:e[ve]})}})),L.createElement("small",null,L.createElement("strong",null,"Note"),": Your credentials will be saved until the end of the browser session"))};var Px=Object.defineProperty,xg=Object.getOwnPropertySymbols,Ix=Object.prototype.hasOwnProperty,kx=Object.prototype.propertyIsEnumerable,Sg=(e,r,n)=>r in e?Px(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Fx=(e,r)=>{for(var n in r||(r={}))Ix.call(r,n)&&Sg(e,n,r[n]);if(xg)for(var n of xg(r))kx.call(r,n)&&Sg(e,n,r[n]);return e};function Rx({operation:e,properties:r,securityDefaults:n,form:a,resolvedRawSpec:s,server:c,formApi:p,setFormApi:g,handleChange:v,handleServerChange:y}){const b=a.errors||{},I=b.path||b.cookie||b.header||b.query,{hooks:M,authCorsProxyUrl:B}=(0,hr.useRecoilValue)(mu.lk),G=s&&ct.IB.get(s,e.pointer);let te=a.values&&a.values.auth&&Object.keys(a.values.auth)[0];(!te||!a.values.auth[te])&&(te=void 0),te&&(a.values.auth[te].token!==void 0||a.values.auth[te].client_id!==void 0||a.values.auth[te].client_secret!==void 0)&&(!a.values.auth[te].token||!a.values.auth[te].token.access_token)&&(te=void 0),te&&a.values.auth[te].username!=null&&(!a.values.auth[te].username||!a.values.auth[te].password)&&(te=void 0);const q=e.parameters||[];return!s&&L.createElement(L.Fragment,null,"Loading...")||L.createElement(ry,{onChange:v,getApi:g,style:{flex:1,display:"flex",flexDirection:"column",margin:0}},L.createElement(Dy,{operation:e,onChange:y}),L.createElement(yr.UQ,{initialActiveIdx:e.security.length&&te?1:0},e.security.length&&p&&L.createElement(rp,{header:(0,wu.l)("tryItAuth"),"data-cy":"security-trigger",error:!te&&!!b.auth,success:!!te,renderChildrenHidden:!0},M!=null&&M.ReplaceTryItSecurityPanel?L.createElement(Mx,{field:"auth",validate:Yt.np},le=>L.createElement(Ab.Q,{Hook:M==null?void 0:M.ReplaceTryItSecurityPanel,props:{server:c,operation:e,onChange:le,OAuth2:Fi}})):L.createElement(Tx,{formApi:p,form:a,operation:e,activeServer:c.url,authCorsProxyUrl:B,securityDefaults:n}))||null,e.requestBody&&p&&L.createElement(rp,{header:(0,wu.l)("tryItBody"),"data-cy":"body-trigger",error:!!b.body,renderChildrenHidden:!0},L.createElement(wb,{validate:Lx,formApi:p,body:e.requestBody,pointer:e.pointer,id:e.id,resolvedBody:G==null?void 0:G.requestBody,properties:r}))||null,q.length&&L.createElement(rp,{header:(0,wu.l)("tryItParameters"),"data-cy":"parameters-trigger",error:I,renderChildrenHidden:!0},L.createElement(Lb,{operation:e,values:a.values,errors:a.errors||{}}))||null))}function Mx(e){const{fieldApi:r,render:n,userProps:a}=xu(Fx({},e)),{setValue:s}=r,{children:c}=a;return n(L.createElement(L.Fragment,null,c(s)))}function Lx(){}const Nx=(0,L.memo)(Rx);function Dx({shaking:e,className:r,children:n,rootElement:a}){const[s]=(0,Ap.Bs)(a),c=(0,hr.useRecoilValue)(mu.lk);return L.createElement(kn.q2,{scrollYOffset:c.scrollYOffset,shaking:e,className:r,"data-cy":"console",fullWidth:s==null?void 0:s.width},n)}const Bx=(0,L.memo)(Dx);var jx=Object.defineProperty,Vx=Object.defineProperties,Ux=Object.getOwnPropertyDescriptors,zc=Object.getOwnPropertySymbols,wg=Object.prototype.hasOwnProperty,Ag=Object.prototype.propertyIsEnumerable,Cg=(e,r,n)=>r in e?jx(e,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[r]=n,Gr=(e,r)=>{for(var n in r||(r={}))wg.call(r,n)&&Cg(e,n,r[n]);if(zc)for(var n of zc(r))Ag.call(r,n)&&Cg(e,n,r[n]);return e},wn=(e,r)=>Vx(e,Ux(r)),Eg=(e,r)=>{var n={};for(var a in e)wg.call(e,a)&&r.indexOf(a)<0&&(n[a]=e[a]);if(e!=null&&zc)for(var a of zc(e))r.indexOf(a)<0&&Ag.call(e,a)&&(n[a]=e[a]);return n},Og=(e,r,n)=>new Promise((a,s)=>{var c=v=>{try{g(n.next(v))}catch(y){s(y)}},p=v=>{try{g(n.throw(v))}catch(y){s(y)}},g=v=>v.done?a(v.value):Promise.resolve(v.value).then(c,p);g((n=n.apply(e,r)).next())});function Tg(e){return e.startsWith("//")?"https:"+e:e}function Wx({operation:e,onResponse:r,className:n,rootElement:a,properties:s,securityDefaults:c,onClose:p}){let g=(0,L.useRef)();const[v,y]=(0,hr.useRecoilState)((0,ip.N)(e.pointer)),[b,I]=(0,L.useState)(v.activeServer||e.activeServer),[M,B]=(0,L.useState)(0),[G,te]=(0,L.useState)(!1),[q,le]=(0,L.useState)(!1),[ae,pe]=(0,L.useState)({values:{path:(0,Yt.ZS)(e.parameters,"path"),cookie:(0,Yt.ZS)(e.parameters,"cookie"),header:(0,Yt.ZS)(e.parameters,"header"),query:(0,Yt.ZS)(e.parameters,"query")}}),[ve,me]=(0,L.useState)(),[Te,Ae]=(0,L.useState)(),[xe,Ee]=(0,L.useState)(),[ke,Re]=(0,L.useState)(),je=(0,Ap.D9)(e),{parser:Ge,options:bt}=(0,hr.useRecoilValue)(mu.cS),qe=(0,L.useCallback)((Ut,cr=Ut.getState())=>{var Nt=cr,{values:it}=Nt,wt=Eg(Nt,["values"]);g.current=Ut,setTimeout(()=>{pe(wn(Gr({},wt),{values:wn(Gr({},it),{query:(0,Yt.FU)(it.query||{})})}))},0)},[]),Zt=(0,L.useCallback)(Ut=>{var cr=Ut,{values:Nt}=cr,it=Eg(cr,["values"]);const wt=wn(Gr({},it),{values:wn(Gr({},Nt),{query:(0,Yt.FU)(Nt.query||{})})});y(zt=>wn(Gr({},zt),{requestValues:JSON.parse(JSON.stringify(Nt))})),pe(wt),(0,Yt.Hc)(wt)},[y]),sr=(0,L.useCallback)(Ut=>{B(Ut)},[]),gr=(0,L.useCallback)(Ut=>{I(Ut),y(cr=>wn(Gr({},cr),{activeServer:Ut}))},[y]),Pr=(0,L.useCallback)(()=>Og(this,null,function*(){var Ut,cr,Nt,it,wt,zt,nr,Ht,xn,_i,qn,on,po,es,Nn,Da,Gc;const{values:Mi,invalid:ll}=((Ut=g==null?void 0:g.current)==null?void 0:Ut.getState())||ae||{};if((cr=g.current)==null||cr.submitForm(),ll){le(!0),setTimeout(()=>le(!1),1e3),(it=(Nt=bt.events)==null?void 0:Nt.tryItSent)==null||it.call(Nt,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"ValidationFailed",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description});return}const{servers:ea,requestBody:Ba}=e,Ep=Ba&&Ba.content&&((wt=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:wt.name)||"";let ta=Mi.body;if(/json/.test(Ep))try{ta=JSON.parse(ta)}catch(qt){console.error(qt)}te(!0);const sn=ve,ul=(e.httpVerb||"").toLowerCase();if(!ea)throw console.error("Servers are not specified in your OpenAPI file. You can't use Try It Out console without specifying servers. If you use OpenAPI 2, make sure you configured host and basepath"),new Error("Servers are not specified");const Du=ea.find(qt=>b.url.endsWith(qt.url.endsWith("/")?qt.url.substring(0,qt.url.length-1):qt.url)),Op=Date.now(),Bu=!!window.document.documentMode;let ci,ja=Mi.auth;if(Mi.auth){const qt=Object.keys(Mi.auth)[0],di=(0,ct.dw)(qt);ci=wn(Gr({},sn),{components:wn(Gr({},sn==null?void 0:sn.components),{securitySchemes:wn(Gr({},(zt=sn==null?void 0:sn.components)==null?void 0:zt.securitySchemes),{[di]:wn(Gr({},(Ht=(nr=sn==null?void 0:sn.components)==null?void 0:nr.securitySchemes)==null?void 0:Ht[di]),{type:((qn=(_i=(xn=sn==null?void 0:sn.components)==null?void 0:xn.securitySchemes)==null?void 0:_i[di])==null?void 0:qn.type)==="openIdConnect"?"oauth2":((po=(on=sn==null?void 0:sn.components)==null?void 0:on.securitySchemes)==null?void 0:po[di]).type})})})}),ja=wn(Gr({},ja),{[di]:ja[qt]})}else ci=Gr({},sn);ci.servers=ea;const fl=bt.corsProxyUrl;fl&&ea.length&&(ci.servers=ea.map(qt=>wn(Gr({},qt),{url:fl+Tg(qt.url)})),ci.paths=wn(Gr({},ci.paths),{[e.path]:wn(Gr({},ci.paths[e.path]),{[ul]:wn(Gr({},ci.paths[e.path][ul]),{servers:void 0}),servers:void 0})}));const ju=(Ba==null?void 0:Ba.content)&&((es=(0,Ar.getActiveMediaType)(Ba.content))==null?void 0:es.name)||null;if(ju&&ta&&ao(ju)){const qt=Object.values(ta);ta=qt.length>1?qt:qt[0]}const ts={userFetch:Bu&&o(96279).fetch,server:fl?fl+Tg(Du.url):Du.url,serverVariables:Du.variables,spec:ci,pathName:e.path,method:e.httpVerb,parameters:Gr(Gr(Gr(Gr({},Mi.path),Mi.query),Mi.header),Mi.cookie),securities:{authorized:ja},requestBody:ta,requestContentType:ju,responseContentType:((Nn=Mi.header)==null?void 0:Nn.Accept)||null,requestInterceptor:(0,Yt.Tz)(bt,e,ja==null?void 0:ja.Authorization)};try{const qt=yield Fr.execute(ts),di=qt==null?void 0:qt.data;di instanceof Blob&&(ao(di.type)&&(qt.fileInfo={rawData:di,fileName:(0,Yt.AM)(qt.headers)}),qt.data=yield di.text()),r==null||r({request:ts,response:qt}),Re(qt),Ee(void 0)}catch(qt){qt&&qt.response&&qt.response.data instanceof Blob&&(qt.response.data=yield qt.response.data.text(),r==null||r({request:ts,response:qt.response})),Re(void 0),Ee(qt)}finally{te(!1),B(1),Ae(Date.now()-Op),(Gc=(Da=bt.events)==null?void 0:Da.tryItSent)==null||Gc.call(Da,{eventType:Zs.nQ.TryItSent,resource:"Redocly_OperationTryIt",action:"Sent",operationId:e.operationId,operationPath:e.path,operationHttpVerb:e.httpVerb,operationSummary:e.description})}}),[b.url,ae,r,e,bt,ve]);(0,Bt.useMount)(()=>Og(this,null,function*(){var Ut;const cr=yield(0,Yt.lX)(e,Ge.definition);me(cr),(Ut=g.current)==null||Ut.setValues({})})),(0,L.useEffect)(()=>{je&&je!==e&&(Re(void 0),Ee(void 0),B(0))},[e,je]);const fr=!!(ke||xe);return L.createElement(Bx,{shaking:q,className:n,rootElement:a},L.createElement(yr.Hc,null,L.createElement(Gg,{active:M,hasResponse:fr,onChange:sr}),p&&L.createElement(kn.PZ,{onClick:p}," \u2715 ")),L.createElement(kn.RE,{hidden:M!==0,"data-cy":"console-request-body"},L.createElement(Nx,{operation:e,properties:s,securityDefaults:c,form:ae,resolvedRawSpec:ve,server:b,formApi:g.current,setFormApi:qe,handleChange:Zt,handleServerChange:gr})),L.createElement(kn.RE,{hidden:M!==1,"data-cy":"console-response-body"},L.createElement(Hg,{response:ke,error:xe,time:Te}),";"),L.createElement(Jg,{hasResponse:fr,params:ae.values,operation:e,loading:G,execute:Pr}))}const Hx=(0,L.memo)(Wx)},37795:h=>{"use strict";var O="Function.prototype.bind called on incompatible ",o=Array.prototype.slice,d=Object.prototype.toString,x="[object Function]";h.exports=function(C){var T=this;if(typeof T!="function"||d.call(T)!==x)throw new TypeError(O+T);for(var F=o.call(arguments,1),U,Z=function(){if(this instanceof U){var Y=T.apply(this,F.concat(o.call(arguments)));return Object(Y)===Y?Y:this}else return T.apply(C,F.concat(o.call(arguments)))},ee=Math.max(0,T.length-F.length),ue=[],ne=0;ne<ee;ne++)ue.push("$"+ne);if(U=Function("binder","return function ("+ue.join(",")+"){ return binder.apply(this,arguments); }")(Z),T.prototype){var ie=function(){};ie.prototype=T.prototype,U.prototype=new ie,ie.prototype=null}return U}},4090:(h,O,o)=>{"use strict";var d=o(37795);h.exports=Function.prototype.bind||d},67286:(h,O,o)=>{"use strict";var d,x=SyntaxError,w=Function,C=TypeError,T=function(he){try{return w('"use strict"; return ('+he+").constructor;")()}catch(_){}},F=Object.getOwnPropertyDescriptor;if(F)try{F({},"")}catch(he){F=null}var U=function(){throw new C},Z=F?function(){try{return arguments.callee,U}catch(he){try{return F(arguments,"callee").get}catch(_){return U}}}():U,ee=o(32636)(),ue=Object.getPrototypeOf||function(he){return he.__proto__},ne={},ie=typeof Uint8Array=="undefined"?d:ue(Uint8Array),Y={"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":ee?ue([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":ne,"%AsyncGenerator%":ne,"%AsyncGeneratorFunction%":ne,"%AsyncIteratorPrototype%":ne,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":w,"%GeneratorFunction%":ne,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ee?ue(ue([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!ee?d:ue(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!ee?d:ue(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ee?ue(""[Symbol.iterator]()):d,"%Symbol%":ee?Symbol:d,"%SyntaxError%":x,"%ThrowTypeError%":Z,"%TypedArray%":ie,"%TypeError%":C,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet},A=function he(_){var X;if(_==="%AsyncFunction%")X=T("async function () {}");else if(_==="%GeneratorFunction%")X=T("function* () {}");else if(_==="%AsyncGeneratorFunction%")X=T("async function* () {}");else if(_==="%AsyncGenerator%"){var z=he("%AsyncGeneratorFunction%");z&&(X=z.prototype)}else if(_==="%AsyncIteratorPrototype%"){var ge=he("%AsyncGenerator%");ge&&(X=ue(ge.prototype))}return Y[_]=X,X},J={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},N=o(4090),E=o(23198),k=N.call(Function.call,Array.prototype.concat),V=N.call(Function.apply,Array.prototype.splice),$=N.call(Function.call,String.prototype.replace),Q=N.call(Function.call,String.prototype.slice),W=N.call(Function.call,RegExp.prototype.exec),re=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K=/\\(\\)?/g,H=function(_){var X=Q(_,0,1),z=Q(_,-1);if(X==="%"&&z!=="%")throw new x("invalid intrinsic syntax, expected closing `%`");if(z==="%"&&X!=="%")throw new x("invalid intrinsic syntax, expected opening `%`");var ge=[];return $(_,re,function(Oe,Ue,Fe,at){ge[ge.length]=Fe?$(at,K,"$1"):Ue||Oe}),ge},fe=function(_,X){var z=_,ge;if(E(J,z)&&(ge=J[z],z="%"+ge[0]+"%"),E(Y,z)){var Oe=Y[z];if(Oe===ne&&(Oe=A(z)),typeof Oe=="undefined"&&!X)throw new C("intrinsic "+_+" exists, but is not available. Please file an issue!");return{alias:ge,name:z,value:Oe}}throw new x("intrinsic "+_+" does not exist!")};h.exports=function(_,X){if(typeof _!="string"||_.length===0)throw new C("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof X!="boolean")throw new C('"allowMissing" argument must be a boolean');if(W(/^%?[^%]*%?$/,_)===null)throw new x("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var z=H(_),ge=z.length>0?z[0]:"",Oe=fe("%"+ge+"%",X),Ue=Oe.name,Fe=Oe.value,at=!1,Xe=Oe.alias;Xe&&(ge=Xe[0],V(z,k([0,1],Xe)));for(var xt=1,Pt=!0;xt<z.length;xt+=1){var Ct=z[xt],Le=Q(Ct,0,1),Ce=Q(Ct,-1);if((Le==='"'||Le==="'"||Le==="`"||Ce==='"'||Ce==="'"||Ce==="`")&&Le!==Ce)throw new x("property names with quotes must have matching quotes");if((Ct==="constructor"||!Pt)&&(at=!0),ge+="."+Ct,Ue="%"+ge+"%",E(Y,Ue))Fe=Y[Ue];else if(Fe!=null){if(!(Ct in Fe)){if(!X)throw new C("base intrinsic for "+_+" exists, but the property is not available.");return}if(F&&xt+1>=z.length){var Se=F(Fe,Ct);Pt=!!Se,Pt&&"get"in Se&&!("originalValue"in Se.get)?Fe=Se.get:Fe=Fe[Ct]}else Pt=E(Fe,Ct),Fe=Fe[Ct];Pt&&!at&&(Y[Ue]=Fe)}}return Fe}},32636:(h,O,o)=>{"use strict";var d=typeof Symbol!="undefined"&&Symbol,x=o(66679);h.exports=function(){return typeof d!="function"||typeof Symbol!="function"||typeof d("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:x()}},66679:h=>{"use strict";h.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var o={},d=Symbol("test"),x=Object(d);if(typeof d=="string"||Object.prototype.toString.call(d)!=="[object Symbol]"||Object.prototype.toString.call(x)!=="[object Symbol]")return!1;var w=42;o[d]=w;for(d in o)return!1;if(typeof Object.keys=="function"&&Object.keys(o).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(o).length!==0)return!1;var C=Object.getOwnPropertySymbols(o);if(C.length!==1||C[0]!==d||!Object.prototype.propertyIsEnumerable.call(o,d))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var T=Object.getOwnPropertyDescriptor(o,d);if(T.value!==w||T.enumerable!==!0)return!1}return!0}},23198:(h,O,o)=>{"use strict";var d=o(4090);h.exports=d.call(Function.call,Object.prototype.hasOwnProperty)},89612:(h,O,o)=>{var d=o(52118),x=o(96909),w=o(98138),C=o(4174),T=o(7942);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},80235:(h,O,o)=>{var d=o(3945),x=o(21846),w=o(88028),C=o(72344),T=o(94769);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},10326:(h,O,o)=>{var d=o(38761),x=o(37772),w=d(x,"Map");h.exports=w},96738:(h,O,o)=>{var d=o(92411),x=o(36417),w=o(86928),C=o(79493),T=o(24150);function F(U){var Z=-1,ee=U==null?0:U.length;for(this.clear();++Z<ee;){var ue=U[Z];this.set(ue[0],ue[1])}}F.prototype.clear=d,F.prototype.delete=x,F.prototype.get=w,F.prototype.has=C,F.prototype.set=T,h.exports=F},50857:(h,O,o)=>{var d=o(37772),x=d.Symbol;h.exports=x},50343:h=>{function O(o,d){for(var x=-1,w=o==null?0:o.length,C=Array(w);++x<w;)C[x]=d(o[x],x,o);return C}h.exports=O},22218:(h,O,o)=>{var d=o(41225);function x(w,C){for(var T=w.length;T--;)if(d(w[T][0],C))return T;return-1}h.exports=x},13324:(h,O,o)=>{var d=o(17297),x=o(33812);function w(C,T){T=d(T,C);for(var F=0,U=T.length;C!=null&&F<U;)C=C[x(T[F++])];return F&&F==U?C:void 0}h.exports=w},53366:(h,O,o)=>{var d=o(50857),x=o(62107),w=o(37157),C="[object Null]",T="[object Undefined]",F=d?d.toStringTag:void 0;function U(Z){return Z==null?Z===void 0?T:C:F&&F in Object(Z)?x(Z):w(Z)}h.exports=U},6840:(h,O,o)=>{var d=o(61049),x=o(47394),w=o(29259),C=o(87035),T=/[\\^$.*+?()[\]{}|]/g,F=/^\[object .+?Constructor\]$/,U=Function.prototype,Z=Object.prototype,ee=U.toString,ue=Z.hasOwnProperty,ne=RegExp("^"+ee.call(ue).replace(T,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function ie(Y){if(!w(Y)||x(Y))return!1;var A=d(Y)?ne:F;return A.test(C(Y))}h.exports=ie},1054:(h,O,o)=>{var d=o(50857),x=o(50343),w=o(86152),C=o(4795),T=1/0,F=d?d.prototype:void 0,U=F?F.toString:void 0;function Z(ee){if(typeof ee=="string")return ee;if(w(ee))return x(ee,Z)+"";if(C(ee))return U?U.call(ee):"";var ue=ee+"";return ue=="0"&&1/ee==-T?"-0":ue}h.exports=Z},17297:(h,O,o)=>{var d=o(86152),x=o(21401),w=o(54452),C=o(66188);function T(F,U){return d(F)?F:x(F,U)?[F]:w(C(F))}h.exports=T},24019:(h,O,o)=>{var d=o(37772),x=d["__core-js_shared__"];h.exports=x},51242:(h,O,o)=>{var d=typeof o.g=="object"&&o.g&&o.g.Object===Object&&o.g;h.exports=d},27937:(h,O,o)=>{var d=o(98304);function x(w,C){var T=w.__data__;return d(C)?T[typeof C=="string"?"string":"hash"]:T.map}h.exports=x},38761:(h,O,o)=>{var d=o(6840),x=o(98109);function w(C,T){var F=x(C,T);return d(F)?F:void 0}h.exports=w},62107:(h,O,o)=>{var d=o(50857),x=Object.prototype,w=x.hasOwnProperty,C=x.toString,T=d?d.toStringTag:void 0;function F(U){var Z=w.call(U,T),ee=U[T];try{U[T]=void 0;var ue=!0}catch(ie){}var ne=C.call(U);return ue&&(Z?U[T]=ee:delete U[T]),ne}h.exports=F},98109:h=>{function O(o,d){return o==null?void 0:o[d]}h.exports=O},52118:(h,O,o)=>{var d=o(99191);function x(){this.__data__=d?d(null):{},this.size=0}h.exports=x},96909:h=>{function O(o){var d=this.has(o)&&delete this.__data__[o];return this.size-=d?1:0,d}h.exports=O},98138:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__",w=Object.prototype,C=w.hasOwnProperty;function T(F){var U=this.__data__;if(d){var Z=U[F];return Z===x?void 0:Z}return C.call(U,F)?U[F]:void 0}h.exports=T},4174:(h,O,o)=>{var d=o(99191),x=Object.prototype,w=x.hasOwnProperty;function C(T){var F=this.__data__;return d?F[T]!==void 0:w.call(F,T)}h.exports=C},7942:(h,O,o)=>{var d=o(99191),x="__lodash_hash_undefined__";function w(C,T){var F=this.__data__;return this.size+=this.has(C)?0:1,F[C]=d&&T===void 0?x:T,this}h.exports=w},21401:(h,O,o)=>{var d=o(86152),x=o(4795),w=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,C=/^\w*$/;function T(F,U){if(d(F))return!1;var Z=typeof F;return Z=="number"||Z=="symbol"||Z=="boolean"||F==null||x(F)?!0:C.test(F)||!w.test(F)||U!=null&&F in Object(U)}h.exports=T},98304:h=>{function O(o){var d=typeof o;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?o!=="__proto__":o===null}h.exports=O},47394:(h,O,o)=>{var d=o(24019),x=function(){var C=/[^.]+$/.exec(d&&d.keys&&d.keys.IE_PROTO||"");return C?"Symbol(src)_1."+C:""}();function w(C){return!!x&&x in C}h.exports=w},3945:h=>{function O(){this.__data__=[],this.size=0}h.exports=O},21846:(h,O,o)=>{var d=o(22218),x=Array.prototype,w=x.splice;function C(T){var F=this.__data__,U=d(F,T);if(U<0)return!1;var Z=F.length-1;return U==Z?F.pop():w.call(F,U,1),--this.size,!0}h.exports=C},88028:(h,O,o)=>{var d=o(22218);function x(w){var C=this.__data__,T=d(C,w);return T<0?void 0:C[T][1]}h.exports=x},72344:(h,O,o)=>{var d=o(22218);function x(w){return d(this.__data__,w)>-1}h.exports=x},94769:(h,O,o)=>{var d=o(22218);function x(w,C){var T=this.__data__,F=d(T,w);return F<0?(++this.size,T.push([w,C])):T[F][1]=C,this}h.exports=x},92411:(h,O,o)=>{var d=o(89612),x=o(80235),w=o(10326);function C(){this.size=0,this.__data__={hash:new d,map:new(w||x),string:new d}}h.exports=C},36417:(h,O,o)=>{var d=o(27937);function x(w){var C=d(this,w).delete(w);return this.size-=C?1:0,C}h.exports=x},86928:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).get(w)}h.exports=x},79493:(h,O,o)=>{var d=o(27937);function x(w){return d(this,w).has(w)}h.exports=x},24150:(h,O,o)=>{var d=o(27937);function x(w,C){var T=d(this,w),F=T.size;return T.set(w,C),this.size+=T.size==F?0:1,this}h.exports=x},77777:(h,O,o)=>{var d=o(30733),x=500;function w(C){var T=d(C,function(U){return F.size===x&&F.clear(),U}),F=T.cache;return T}h.exports=w},99191:(h,O,o)=>{var d=o(38761),x=d(Object,"create");h.exports=x},37157:h=>{var O=Object.prototype,o=O.toString;function d(x){return o.call(x)}h.exports=d},37772:(h,O,o)=>{var d=o(51242),x=typeof self=="object"&&self&&self.Object===Object&&self,w=d||x||Function("return this")();h.exports=w},54452:(h,O,o)=>{var d=o(77777),x=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,w=/\\(\\)?/g,C=d(function(T){var F=[];return T.charCodeAt(0)===46&&F.push(""),T.replace(x,function(U,Z,ee,ue){F.push(ee?ue.replace(w,"$1"):Z||U)}),F});h.exports=C},33812:(h,O,o)=>{var d=o(4795),x=1/0;function w(C){if(typeof C=="string"||d(C))return C;var T=C+"";return T=="0"&&1/C==-x?"-0":T}h.exports=w},87035:h=>{var O=Function.prototype,o=O.toString;function d(x){if(x!=null){try{return o.call(x)}catch(w){}try{return x+""}catch(w){}}return""}h.exports=d},41225:h=>{function O(o,d){return o===d||o!==o&&d!==d}h.exports=O},72579:(h,O,o)=>{var d=o(13324);function x(w,C,T){var F=w==null?void 0:d(w,C);return F===void 0?T:F}h.exports=x},86152:h=>{var O=Array.isArray;h.exports=O},61049:(h,O,o)=>{var d=o(53366),x=o(29259),w="[object AsyncFunction]",C="[object Function]",T="[object GeneratorFunction]",F="[object Proxy]";function U(Z){if(!x(Z))return!1;var ee=d(Z);return ee==C||ee==T||ee==w||ee==F}h.exports=U},29259:h=>{function O(o){var d=typeof o;return o!=null&&(d=="object"||d=="function")}h.exports=O},15125:h=>{function O(o){return o!=null&&typeof o=="object"}h.exports=O},4795:(h,O,o)=>{var d=o(53366),x=o(15125),w="[object Symbol]";function C(T){return typeof T=="symbol"||x(T)&&d(T)==w}h.exports=C},30733:(h,O,o)=>{var d=o(96738),x="Expected a function";function w(C,T){if(typeof C!="function"||T!=null&&typeof T!="function")throw new TypeError(x);var F=function(){var U=arguments,Z=T?T.apply(this,U):U[0],ee=F.cache;if(ee.has(Z))return ee.get(Z);var ue=C.apply(this,U);return F.cache=ee.set(Z,ue)||ee,ue};return F.cache=new(w.Cache||d),F}w.Cache=d,h.exports=w},66188:(h,O,o)=>{var d=o(1054);function x(w){return w==null?"":d(w)}h.exports=x},99500:(h,O,o)=>{var d=typeof Map=="function"&&Map.prototype,x=Object.getOwnPropertyDescriptor&&d?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,w=d&&x&&typeof x.get=="function"?x.get:null,C=d&&Map.prototype.forEach,T=typeof Set=="function"&&Set.prototype,F=Object.getOwnPropertyDescriptor&&T?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,U=T&&F&&typeof F.get=="function"?F.get:null,Z=T&&Set.prototype.forEach,ee=typeof WeakMap=="function"&&WeakMap.prototype,ue=ee?WeakMap.prototype.has:null,ne=typeof WeakSet=="function"&&WeakSet.prototype,ie=ne?WeakSet.prototype.has:null,Y=typeof WeakRef=="function"&&WeakRef.prototype,A=Y?WeakRef.prototype.deref:null,J=Boolean.prototype.valueOf,N=Object.prototype.toString,E=Function.prototype.toString,k=String.prototype.match,V=String.prototype.slice,$=String.prototype.replace,Q=String.prototype.toUpperCase,W=String.prototype.toLowerCase,re=RegExp.prototype.test,K=Array.prototype.concat,H=Array.prototype.join,fe=Array.prototype.slice,he=Math.floor,_=typeof BigInt=="function"?BigInt.prototype.valueOf:null,X=Object.getOwnPropertySymbols,z=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ge=typeof Symbol=="function"&&typeof Symbol.iterator=="object",Oe=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ge?"object":"symbol")?Symbol.toStringTag:null,Ue=Object.prototype.propertyIsEnumerable,Fe=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(ce){return ce.__proto__}:null);function at(ce,be){if(ce===1/0||ce===-1/0||ce!==ce||ce&&ce>-1e3&&ce<1e3||re.call(/e/,be))return be;var Be=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof ce=="number"){var Ke=ce<0?-he(-ce):he(ce);if(Ke!==ce){var lt=String(Ke),nt=V.call(be,lt.length+1);return $.call(lt,Be,"$&_")+"."+$.call($.call(nt,/([0-9]{3})/g,"$&_"),/_$/,"")}}return $.call(be,Be,"$&_")}var Xe=o(53260),xt=Xe.custom,Pt=It(xt)?xt:null;h.exports=function ce(be,Be,Ke,lt){var nt=Be||{};if(We(nt,"quoteStyle")&&nt.quoteStyle!=="single"&&nt.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(We(nt,"maxStringLength")&&(typeof nt.maxStringLength=="number"?nt.maxStringLength<0&&nt.maxStringLength!==1/0:nt.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var _t=We(nt,"customInspect")?nt.customInspect:!0;if(typeof _t!="boolean"&&_t!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(We(nt,"indent")&&nt.indent!==null&&nt.indent!==" "&&!(parseInt(nt.indent,10)===nt.indent&&nt.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(We(nt,"numericSeparator")&&typeof nt.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var lr=nt.numericSeparator;if(typeof be=="undefined")return"undefined";if(be===null)return"null";if(typeof be=="boolean")return be?"true":"false";if(typeof be=="string")return mt(be,nt);if(typeof be=="number"){if(be===0)return 1/0/be>0?"0":"-0";var At=String(be);return lr?at(be,At):At}if(typeof be=="bigint"){var Cr=String(be)+"n";return lr?at(be,Cr):Cr}var jn=typeof nt.depth=="undefined"?5:nt.depth;if(typeof Ke=="undefined"&&(Ke=0),Ke>=jn&&jn>0&&typeof be=="object")return Ce(be)?"[Array]":"[Object]";var $r=kt(nt,Ke);if(typeof lt=="undefined")lt=[];else if(qr(lt,be)>=0)return"[Circular]";function Kr(en,kr,yi){if(kr&&(lt=fe.call(lt),lt.push(kr)),yi){var Cn={depth:nt.depth};return We(nt,"quoteStyle")&&(Cn.quoteStyle=nt.quoteStyle),ce(en,Cn,Ke+1,lt)}return ce(en,nt,Ke+1,lt)}if(typeof be=="function"&&!De(be)){var hi=ot(be),_r=Ve(be,Kr);return"[Function"+(hi?": "+hi:" (anonymous)")+"]"+(_r.length>0?" { "+H.call(_r,", ")+" }":"")}if(It(be)){var vi=ge?$.call(String(be),/^(Symbol\(.*\))_[^)]*$/,"$1"):z.call(be);return typeof be=="object"&&!ge?Tt(vi):vi}if(et(be)){for(var gi="<"+W.call(String(be.nodeName)),er=be.attributes||[],mi=0;mi<er.length;mi++)gi+=" "+er[mi].name+"="+Ct(Le(er[mi].value),"double",nt);return gi+=">",be.childNodes&&be.childNodes.length&&(gi+="..."),gi+="</"+W.call(String(be.nodeName))+">",gi}if(Ce(be)){if(be.length===0)return"[]";var _n=Ve(be,Kr);return $r&&!gt(_n)?"["+st(_n,$r)+"]":"[ "+H.call(_n,", ")+" ]"}if($e(be)){var ei=Ve(be,Kr);return!("cause"in Error.prototype)&&"cause"in be&&!Ue.call(be,"cause")?"{ ["+String(be)+"] "+H.call(K.call("[cause]: "+Kr(be.cause),ei),", ")+" }":ei.length===0?"["+String(be)+"]":"{ ["+String(be)+"] "+H.call(ei,", ")+" }"}if(typeof be=="object"&&_t){if(Pt&&typeof be[Pt]=="function"&&Xe)return Xe(be,{depth:jn-Ke});if(_t!=="symbol"&&typeof be.inspect=="function")return be.inspect()}if(Qe(be)){var na=[];return C.call(be,function(en,kr){na.push(Kr(kr,be,!0)+" => "+Kr(en,be))}),dt("Map",w.call(be),na,$r)}if(Or(be)){var pn=[];return Z.call(be,function(en){pn.push(Kr(en,be))}),dt("Set",U.call(be),pn,$r)}if(un(be))return Rt("WeakMap");if(pr(be))return Rt("WeakSet");if(Ir(be))return Rt("WeakRef");if(_e(be))return Tt(Kr(Number(be)));if(Wt(be))return Tt(Kr(_.call(be)));if(St(be))return Tt(J.call(be));if(tt(be))return Tt(Kr(String(be)));if(!Se(be)&&!De(be)){var fn=Ve(be,Kr),hn=Fe?Fe(be)===Object.prototype:be instanceof Object||be.constructor===Object,vn=be instanceof Object?"":"null prototype",An=!hn&&Oe&&Object(be)===be&&Oe in be?V.call(Ot(be),8,-1):vn?"Object":"",ho=hn||typeof be.constructor!="function"?"":be.constructor.name?be.constructor.name+" ":"",Vn=ho+(An||vn?"["+H.call(K.call([],An||[],vn||[]),": ")+"] ":"");return fn.length===0?Vn+"{}":$r?Vn+"{"+st(fn,$r)+"}":Vn+"{ "+H.call(fn,", ")+" }"}return String(be)};function Ct(ce,be,Be){var Ke=(Be.quoteStyle||be)==="double"?'"':"'";return Ke+ce+Ke}function Le(ce){return $.call(String(ce),/"/g,"&quot;")}function Ce(ce){return Ot(ce)==="[object Array]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function Se(ce){return Ot(ce)==="[object Date]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function De(ce){return Ot(ce)==="[object RegExp]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function $e(ce){return Ot(ce)==="[object Error]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function tt(ce){return Ot(ce)==="[object String]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function _e(ce){return Ot(ce)==="[object Number]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function St(ce){return Ot(ce)==="[object Boolean]"&&(!Oe||!(typeof ce=="object"&&Oe in ce))}function It(ce){if(ge)return ce&&typeof ce=="object"&&ce instanceof Symbol;if(typeof ce=="symbol")return!0;if(!ce||typeof ce!="object"||!z)return!1;try{return z.call(ce),!0}catch(be){}return!1}function Wt(ce){if(!ce||typeof ce!="object"||!_)return!1;try{return _.call(ce),!0}catch(be){}return!1}var $t=Object.prototype.hasOwnProperty||function(ce){return ce in this};function We(ce,be){return $t.call(ce,be)}function Ot(ce){return N.call(ce)}function ot(ce){if(ce.name)return ce.name;var be=k.call(E.call(ce),/^function\s*([\w$]+)/);return be?be[1]:null}function qr(ce,be){if(ce.indexOf)return ce.indexOf(be);for(var Be=0,Ke=ce.length;Be<Ke;Be++)if(ce[Be]===be)return Be;return-1}function Qe(ce){if(!w||!ce||typeof ce!="object")return!1;try{w.call(ce);try{U.call(ce)}catch(be){return!0}return ce instanceof Map}catch(be){}return!1}function un(ce){if(!ue||!ce||typeof ce!="object")return!1;try{ue.call(ce,ue);try{ie.call(ce,ie)}catch(be){return!0}return ce instanceof WeakMap}catch(be){}return!1}function Ir(ce){if(!A||!ce||typeof ce!="object")return!1;try{return A.call(ce),!0}catch(be){}return!1}function Or(ce){if(!U||!ce||typeof ce!="object")return!1;try{U.call(ce);try{w.call(ce)}catch(be){return!0}return ce instanceof Set}catch(be){}return!1}function pr(ce){if(!ie||!ce||typeof ce!="object")return!1;try{ie.call(ce,ie);try{ue.call(ce,ue)}catch(be){return!0}return ce instanceof WeakSet}catch(be){}return!1}function et(ce){return!ce||typeof ce!="object"?!1:typeof HTMLElement!="undefined"&&ce instanceof HTMLElement?!0:typeof ce.nodeName=="string"&&typeof ce.getAttribute=="function"}function mt(ce,be){if(ce.length>be.maxStringLength){var Be=ce.length-be.maxStringLength,Ke="... "+Be+" more character"+(Be>1?"s":"");return mt(V.call(ce,0,be.maxStringLength),be)+Ke}var lt=$.call($.call(ce,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Mt);return Ct(lt,"single",be)}function Mt(ce){var be=ce.charCodeAt(0),Be={8:"b",9:"t",10:"n",12:"f",13:"r"}[be];return Be?"\\"+Be:"\\x"+(be<16?"0":"")+Q.call(be.toString(16))}function Tt(ce){return"Object("+ce+")"}function Rt(ce){return ce+" { ? }"}function dt(ce,be,Be,Ke){var lt=Ke?st(Be,Ke):H.call(Be,", ");return ce+" ("+be+") {"+lt+"}"}function gt(ce){for(var be=0;be<ce.length;be++)if(qr(ce[be],`
505
+ `)>=0)return!1;return!0}function kt(ce,be){var Be;if(ce.indent===" ")Be=" ";else if(typeof ce.indent=="number"&&ce.indent>0)Be=H.call(Array(ce.indent+1)," ");else return null;return{base:Be,prev:H.call(Array(be+1),Be)}}function st(ce,be){if(ce.length===0)return"";var Be=`
506
+ `+be.prev+be.base;return Be+H.call(ce,","+Be)+`
507
+ `+be.prev}function Ve(ce,be){var Be=Ce(ce),Ke=[];if(Be){Ke.length=ce.length;for(var lt=0;lt<ce.length;lt++)Ke[lt]=We(ce,lt)?be(ce[lt],ce):""}var nt=typeof X=="function"?X(ce):[],_t;if(ge){_t={};for(var lr=0;lr<nt.length;lr++)_t["$"+nt[lr]]=nt[lr]}for(var At in ce)!We(ce,At)||Be&&String(Number(At))===At&&At<ce.length||ge&&_t["$"+At]instanceof Symbol||(re.call(/[^\w$]/,At)?Ke.push(be(At,ce)+": "+be(ce[At],ce)):Ke.push(At+": "+be(ce[At],ce)));if(typeof X=="function")for(var Cr=0;Cr<nt.length;Cr++)Ue.call(ce,nt[Cr])&&Ke.push("["+be(nt[Cr])+"]: "+be(ce[nt[Cr]],ce));return Ke}},85527:h=>{"use strict";var O=String.prototype.replace,o=/%20/g,d={RFC1738:"RFC1738",RFC3986:"RFC3986"};h.exports={default:d.RFC3986,formatters:{RFC1738:function(x){return O.call(x,o,"+")},RFC3986:function(x){return String(x)}},RFC1738:d.RFC1738,RFC3986:d.RFC3986}},37794:(h,O,o)=>{"use strict";var d=o(66845),x=o(29166),w=o(85527);h.exports={formats:w,parse:x,stringify:d}},29166:(h,O,o)=>{"use strict";var d=o(12493),x=Object.prototype.hasOwnProperty,w=Array.isArray,C={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:d.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},T=function(Y){return Y.replace(/&#(\d+);/g,function(A,J){return String.fromCharCode(parseInt(J,10))})},F=function(Y,A){return Y&&typeof Y=="string"&&A.comma&&Y.indexOf(",")>-1?Y.split(","):Y},U="utf8=%26%2310003%3B",Z="utf8=%E2%9C%93",ee=function(A,J){var N={},E=J.ignoreQueryPrefix?A.replace(/^\?/,""):A,k=J.parameterLimit===1/0?void 0:J.parameterLimit,V=E.split(J.delimiter,k),$=-1,Q,W=J.charset;if(J.charsetSentinel)for(Q=0;Q<V.length;++Q)V[Q].indexOf("utf8=")===0&&(V[Q]===Z?W="utf-8":V[Q]===U&&(W="iso-8859-1"),$=Q,Q=V.length);for(Q=0;Q<V.length;++Q)if(Q!==$){var re=V[Q],K=re.indexOf("]="),H=K===-1?re.indexOf("="):K+1,fe,he;H===-1?(fe=J.decoder(re,C.decoder,W,"key"),he=J.strictNullHandling?null:""):(fe=J.decoder(re.slice(0,H),C.decoder,W,"key"),he=d.maybeMap(F(re.slice(H+1),J),function(_){return J.decoder(_,C.decoder,W,"value")})),he&&J.interpretNumericEntities&&W==="iso-8859-1"&&(he=T(he)),re.indexOf("[]=")>-1&&(he=w(he)?[he]:he),x.call(N,fe)?N[fe]=d.combine(N[fe],he):N[fe]=he}return N},ue=function(Y,A,J,N){for(var E=N?A:F(A,J),k=Y.length-1;k>=0;--k){var V,$=Y[k];if($==="[]"&&J.parseArrays)V=[].concat(E);else{V=J.plainObjects?Object.create(null):{};var Q=$.charAt(0)==="["&&$.charAt($.length-1)==="]"?$.slice(1,-1):$,W=parseInt(Q,10);!J.parseArrays&&Q===""?V={0:E}:!isNaN(W)&&$!==Q&&String(W)===Q&&W>=0&&J.parseArrays&&W<=J.arrayLimit?(V=[],V[W]=E):Q!=="__proto__"&&(V[Q]=E)}E=V}return E},ne=function(A,J,N,E){if(!!A){var k=N.allowDots?A.replace(/\.([^.[]+)/g,"[$1]"):A,V=/(\[[^[\]]*])/,$=/(\[[^[\]]*])/g,Q=N.depth>0&&V.exec(k),W=Q?k.slice(0,Q.index):k,re=[];if(W){if(!N.plainObjects&&x.call(Object.prototype,W)&&!N.allowPrototypes)return;re.push(W)}for(var K=0;N.depth>0&&(Q=$.exec(k))!==null&&K<N.depth;){if(K+=1,!N.plainObjects&&x.call(Object.prototype,Q[1].slice(1,-1))&&!N.allowPrototypes)return;re.push(Q[1])}return Q&&re.push("["+k.slice(Q.index)+"]"),ue(re,J,N,E)}},ie=function(A){if(!A)return C;if(A.decoder!==null&&A.decoder!==void 0&&typeof A.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof A.charset!="undefined"&&A.charset!=="utf-8"&&A.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var J=typeof A.charset=="undefined"?C.charset:A.charset;return{allowDots:typeof A.allowDots=="undefined"?C.allowDots:!!A.allowDots,allowPrototypes:typeof A.allowPrototypes=="boolean"?A.allowPrototypes:C.allowPrototypes,allowSparse:typeof A.allowSparse=="boolean"?A.allowSparse:C.allowSparse,arrayLimit:typeof A.arrayLimit=="number"?A.arrayLimit:C.arrayLimit,charset:J,charsetSentinel:typeof A.charsetSentinel=="boolean"?A.charsetSentinel:C.charsetSentinel,comma:typeof A.comma=="boolean"?A.comma:C.comma,decoder:typeof A.decoder=="function"?A.decoder:C.decoder,delimiter:typeof A.delimiter=="string"||d.isRegExp(A.delimiter)?A.delimiter:C.delimiter,depth:typeof A.depth=="number"||A.depth===!1?+A.depth:C.depth,ignoreQueryPrefix:A.ignoreQueryPrefix===!0,interpretNumericEntities:typeof A.interpretNumericEntities=="boolean"?A.interpretNumericEntities:C.interpretNumericEntities,parameterLimit:typeof A.parameterLimit=="number"?A.parameterLimit:C.parameterLimit,parseArrays:A.parseArrays!==!1,plainObjects:typeof A.plainObjects=="boolean"?A.plainObjects:C.plainObjects,strictNullHandling:typeof A.strictNullHandling=="boolean"?A.strictNullHandling:C.strictNullHandling}};h.exports=function(Y,A){var J=ie(A);if(Y===""||Y===null||typeof Y=="undefined")return J.plainObjects?Object.create(null):{};for(var N=typeof Y=="string"?ee(Y,J):Y,E=J.plainObjects?Object.create(null):{},k=Object.keys(N),V=0;V<k.length;++V){var $=k[V],Q=ne($,N[$],J,typeof Y=="string");E=d.merge(E,Q,J)}return J.allowSparse===!0?E:d.compact(E)}},66845:(h,O,o)=>{"use strict";var d=o(74294),x=o(12493),w=o(85527),C=Object.prototype.hasOwnProperty,T={brackets:function(k){return k+"[]"},comma:"comma",indices:function(k,V){return k+"["+V+"]"},repeat:function(k){return k}},F=Array.isArray,U=String.prototype.split,Z=Array.prototype.push,ee=function(E,k){Z.apply(E,F(k)?k:[k])},ue=Date.prototype.toISOString,ne=w.default,ie={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:x.encode,encodeValuesOnly:!1,format:ne,formatter:w.formatters[ne],indices:!1,serializeDate:function(k){return ue.call(k)},skipNulls:!1,strictNullHandling:!1},Y=function(k){return typeof k=="string"||typeof k=="number"||typeof k=="boolean"||typeof k=="symbol"||typeof k=="bigint"},A={},J=function E(k,V,$,Q,W,re,K,H,fe,he,_,X,z,ge,Oe,Ue){for(var Fe=k,at=Ue,Xe=0,xt=!1;(at=at.get(A))!==void 0&&!xt;){var Pt=at.get(k);if(Xe+=1,typeof Pt!="undefined"){if(Pt===Xe)throw new RangeError("Cyclic object value");xt=!0}typeof at.get(A)=="undefined"&&(Xe=0)}if(typeof H=="function"?Fe=H(V,Fe):Fe instanceof Date?Fe=_(Fe):$==="comma"&&F(Fe)&&(Fe=x.maybeMap(Fe,function(Ot){return Ot instanceof Date?_(Ot):Ot})),Fe===null){if(W)return K&&!ge?K(V,ie.encoder,Oe,"key",X):V;Fe=""}if(Y(Fe)||x.isBuffer(Fe)){if(K){var Ct=ge?V:K(V,ie.encoder,Oe,"key",X);if($==="comma"&&ge){for(var Le=U.call(String(Fe),","),Ce="",Se=0;Se<Le.length;++Se)Ce+=(Se===0?"":",")+z(K(Le[Se],ie.encoder,Oe,"value",X));return[z(Ct)+(Q&&F(Fe)&&Le.length===1?"[]":"")+"="+Ce]}return[z(Ct)+"="+z(K(Fe,ie.encoder,Oe,"value",X))]}return[z(V)+"="+z(String(Fe))]}var De=[];if(typeof Fe=="undefined")return De;var $e;if($==="comma"&&F(Fe))$e=[{value:Fe.length>0?Fe.join(",")||null:void 0}];else if(F(H))$e=H;else{var tt=Object.keys(Fe);$e=fe?tt.sort(fe):tt}for(var _e=Q&&F(Fe)&&Fe.length===1?V+"[]":V,St=0;St<$e.length;++St){var It=$e[St],Wt=typeof It=="object"&&typeof It.value!="undefined"?It.value:Fe[It];if(!(re&&Wt===null)){var $t=F(Fe)?typeof $=="function"?$(_e,It):_e:_e+(he?"."+It:"["+It+"]");Ue.set(k,Xe);var We=d();We.set(A,Ue),ee(De,E(Wt,$t,$,Q,W,re,K,H,fe,he,_,X,z,ge,Oe,We))}}return De},N=function(k){if(!k)return ie;if(k.encoder!==null&&typeof k.encoder!="undefined"&&typeof k.encoder!="function")throw new TypeError("Encoder has to be a function.");var V=k.charset||ie.charset;if(typeof k.charset!="undefined"&&k.charset!=="utf-8"&&k.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var $=w.default;if(typeof k.format!="undefined"){if(!C.call(w.formatters,k.format))throw new TypeError("Unknown format option provided.");$=k.format}var Q=w.formatters[$],W=ie.filter;return(typeof k.filter=="function"||F(k.filter))&&(W=k.filter),{addQueryPrefix:typeof k.addQueryPrefix=="boolean"?k.addQueryPrefix:ie.addQueryPrefix,allowDots:typeof k.allowDots=="undefined"?ie.allowDots:!!k.allowDots,charset:V,charsetSentinel:typeof k.charsetSentinel=="boolean"?k.charsetSentinel:ie.charsetSentinel,delimiter:typeof k.delimiter=="undefined"?ie.delimiter:k.delimiter,encode:typeof k.encode=="boolean"?k.encode:ie.encode,encoder:typeof k.encoder=="function"?k.encoder:ie.encoder,encodeValuesOnly:typeof k.encodeValuesOnly=="boolean"?k.encodeValuesOnly:ie.encodeValuesOnly,filter:W,format:$,formatter:Q,serializeDate:typeof k.serializeDate=="function"?k.serializeDate:ie.serializeDate,skipNulls:typeof k.skipNulls=="boolean"?k.skipNulls:ie.skipNulls,sort:typeof k.sort=="function"?k.sort:null,strictNullHandling:typeof k.strictNullHandling=="boolean"?k.strictNullHandling:ie.strictNullHandling}};h.exports=function(E,k){var V=E,$=N(k),Q,W;typeof $.filter=="function"?(W=$.filter,V=W("",V)):F($.filter)&&(W=$.filter,Q=W);var re=[];if(typeof V!="object"||V===null)return"";var K;k&&k.arrayFormat in T?K=k.arrayFormat:k&&"indices"in k?K=k.indices?"indices":"repeat":K="indices";var H=T[K];if(k&&"commaRoundTrip"in k&&typeof k.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var fe=H==="comma"&&k&&k.commaRoundTrip;Q||(Q=Object.keys(V)),$.sort&&Q.sort($.sort);for(var he=d(),_=0;_<Q.length;++_){var X=Q[_];$.skipNulls&&V[X]===null||ee(re,J(V[X],X,H,fe,$.strictNullHandling,$.skipNulls,$.encode?$.encoder:null,$.filter,$.sort,$.allowDots,$.serializeDate,$.format,$.formatter,$.encodeValuesOnly,$.charset,he))}var z=re.join($.delimiter),ge=$.addQueryPrefix===!0?"?":"";return $.charsetSentinel&&($.charset==="iso-8859-1"?ge+="utf8=%26%2310003%3B&":ge+="utf8=%E2%9C%93&"),z.length>0?ge+z:""}},12493:(h,O,o)=>{"use strict";var d=o(85527),x=Object.prototype.hasOwnProperty,w=Array.isArray,C=function(){for(var N=[],E=0;E<256;++E)N.push("%"+((E<16?"0":"")+E.toString(16)).toUpperCase());return N}(),T=function(E){for(;E.length>1;){var k=E.pop(),V=k.obj[k.prop];if(w(V)){for(var $=[],Q=0;Q<V.length;++Q)typeof V[Q]!="undefined"&&$.push(V[Q]);k.obj[k.prop]=$}}},F=function(E,k){for(var V=k&&k.plainObjects?Object.create(null):{},$=0;$<E.length;++$)typeof E[$]!="undefined"&&(V[$]=E[$]);return V},U=function N(E,k,V){if(!k)return E;if(typeof k!="object"){if(w(E))E.push(k);else if(E&&typeof E=="object")(V&&(V.plainObjects||V.allowPrototypes)||!x.call(Object.prototype,k))&&(E[k]=!0);else return[E,k];return E}if(!E||typeof E!="object")return[E].concat(k);var $=E;return w(E)&&!w(k)&&($=F(E,V)),w(E)&&w(k)?(k.forEach(function(Q,W){if(x.call(E,W)){var re=E[W];re&&typeof re=="object"&&Q&&typeof Q=="object"?E[W]=N(re,Q,V):E.push(Q)}else E[W]=Q}),E):Object.keys(k).reduce(function(Q,W){var re=k[W];return x.call(Q,W)?Q[W]=N(Q[W],re,V):Q[W]=re,Q},$)},Z=function(E,k){return Object.keys(k).reduce(function(V,$){return V[$]=k[$],V},E)},ee=function(N,E,k){var V=N.replace(/\+/g," ");if(k==="iso-8859-1")return V.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(V)}catch($){return V}},ue=function(E,k,V,$,Q){if(E.length===0)return E;var W=E;if(typeof E=="symbol"?W=Symbol.prototype.toString.call(E):typeof E!="string"&&(W=String(E)),V==="iso-8859-1")return escape(W).replace(/%u[0-9a-f]{4}/gi,function(fe){return"%26%23"+parseInt(fe.slice(2),16)+"%3B"});for(var re="",K=0;K<W.length;++K){var H=W.charCodeAt(K);if(H===45||H===46||H===95||H===126||H>=48&&H<=57||H>=65&&H<=90||H>=97&&H<=122||Q===d.RFC1738&&(H===40||H===41)){re+=W.charAt(K);continue}if(H<128){re=re+C[H];continue}if(H<2048){re=re+(C[192|H>>6]+C[128|H&63]);continue}if(H<55296||H>=57344){re=re+(C[224|H>>12]+C[128|H>>6&63]+C[128|H&63]);continue}K+=1,H=65536+((H&1023)<<10|W.charCodeAt(K)&1023),re+=C[240|H>>18]+C[128|H>>12&63]+C[128|H>>6&63]+C[128|H&63]}return re},ne=function(E){for(var k=[{obj:{o:E},prop:"o"}],V=[],$=0;$<k.length;++$)for(var Q=k[$],W=Q.obj[Q.prop],re=Object.keys(W),K=0;K<re.length;++K){var H=re[K],fe=W[H];typeof fe=="object"&&fe!==null&&V.indexOf(fe)===-1&&(k.push({obj:W,prop:H}),V.push(fe))}return T(k),E},ie=function(E){return Object.prototype.toString.call(E)==="[object RegExp]"},Y=function(E){return!E||typeof E!="object"?!1:!!(E.constructor&&E.constructor.isBuffer&&E.constructor.isBuffer(E))},A=function(E,k){return[].concat(E,k)},J=function(E,k){if(w(E)){for(var V=[],$=0;$<E.length;$+=1)V.push(k(E[$]));return V}return k(E)};h.exports={arrayToObject:F,assign:Z,combine:A,compact:ne,decode:ee,encode:ue,isBuffer:Y,isRegExp:ie,maybeMap:J,merge:U}},63277:(h,O,o)=>{"use strict";var d;function x(){return x=Object.assign||function(ie){for(var Y=1;Y<arguments.length;Y++){var A=arguments[Y];for(var J in A)Object.prototype.hasOwnProperty.call(A,J)&&(ie[J]=A[J])}return ie},x.apply(this,arguments)}function w(ie){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(A){return typeof A}:w=function(A){return A&&typeof Symbol=="function"&&A.constructor===Symbol&&A!==Symbol.prototype?"symbol":typeof A},w(ie)}var C=function(){var ie=function(A,J){return ie=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(N,E){N.__proto__=E}||function(N,E){for(var k in E)E.hasOwnProperty(k)&&(N[k]=E[k])},ie(A,J)};return function(Y,A){ie(Y,A);function J(){this.constructor=Y}Y.prototype=A===null?Object.create(A):(J.prototype=A.prototype,new J)}}();d={value:!0},d=O.fk=void 0;var T=o(2784),F=typeof navigator=="undefined"||o.g.PREVENT_CODEMIRROR_RENDER===!0,U;F||(U=o(23326));var Z=function(){function ie(){}return ie.equals=function(Y,A){var J=this,N=Object.keys,E=w(Y),k=w(A);return Y&&A&&E==="object"&&E===k?N(Y).length===N(A).length&&N(Y).every(function(V){return J.equals(Y[V],A[V])}):Y===A},ie}(),ee=function(){function ie(Y,A){this.editor=Y,this.props=A}return ie.prototype.delegateCursor=function(Y,A,J){var N=this.editor.getDoc();J&&this.editor.focus(),A?N.setCursor(Y):N.setCursor(Y,null,{scroll:!1})},ie.prototype.delegateScroll=function(Y){this.editor.scrollTo(Y.x,Y.y)},ie.prototype.delegateSelection=function(Y,A){var J=this.editor.getDoc();J.setSelections(Y),A&&this.editor.focus()},ie.prototype.apply=function(Y){Y&&Y.selection&&Y.selection.ranges&&this.delegateSelection(Y.selection.ranges,Y.selection.focus||!1),Y&&Y.cursor&&this.delegateCursor(Y.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1),Y&&Y.scroll&&this.delegateScroll(Y.scroll)},ie.prototype.applyNext=function(Y,A,J){Y&&Y.selection&&Y.selection.ranges&&A&&A.selection&&A.selection.ranges&&!Z.equals(Y.selection.ranges,A.selection.ranges)&&this.delegateSelection(A.selection.ranges,A.selection.focus||!1),Y&&Y.cursor&&A&&A.cursor&&!Z.equals(Y.cursor,A.cursor)&&this.delegateCursor(J.cursor||A.cursor,A.autoScroll||!1,A.autoCursor||!1),Y&&Y.scroll&&A&&A.scroll&&!Z.equals(Y.scroll,A.scroll)&&this.delegateScroll(A.scroll)},ie.prototype.applyUserDefined=function(Y,A){A&&A.cursor&&this.delegateCursor(A.cursor,Y.autoScroll||!1,this.editor.getOption("autofocus")||!1)},ie.prototype.wire=function(Y){var A=this;Object.keys(Y||{}).filter(function(J){return/^on/.test(J)}).forEach(function(J){switch(J){case"onBlur":A.editor.on("blur",function(N,E){A.props.onBlur(A.editor,E)});break;case"onContextMenu":{A.editor.on("contextmenu",function(N,E){A.props.onContextMenu(A.editor,E)});break}case"onCopy":{A.editor.on("copy",function(N,E){A.props.onCopy(A.editor,E)});break}case"onCursor":A.editor.on("cursorActivity",function(N){A.props.onCursor(A.editor,A.editor.getDoc().getCursor())});break;case"onCursorActivity":A.editor.on("cursorActivity",function(N){A.props.onCursorActivity(A.editor)});break;case"onCut":{A.editor.on("cut",function(N,E){A.props.onCut(A.editor,E)});break}case"onDblClick":{A.editor.on("dblclick",function(N,E){A.props.onDblClick(A.editor,E)});break}case"onDragEnter":A.editor.on("dragenter",function(N,E){A.props.onDragEnter(A.editor,E)});break;case"onDragLeave":{A.editor.on("dragleave",function(N,E){A.props.onDragLeave(A.editor,E)});break}case"onDragOver":A.editor.on("dragover",function(N,E){A.props.onDragOver(A.editor,E)});break;case"onDragStart":{A.editor.on("dragstart",function(N,E){A.props.onDragStart(A.editor,E)});break}case"onDrop":A.editor.on("drop",function(N,E){A.props.onDrop(A.editor,E)});break;case"onFocus":A.editor.on("focus",function(N,E){A.props.onFocus(A.editor,E)});break;case"onGutterClick":A.editor.on("gutterClick",function(N,E,k,V){A.props.onGutterClick(A.editor,E,k,V)});break;case"onInputRead":A.editor.on("inputRead",function(N,E){A.props.onInputRead(A.editor,E)});break;case"onKeyDown":A.editor.on("keydown",function(N,E){A.props.onKeyDown(A.editor,E)});break;case"onKeyHandled":A.editor.on("keyHandled",function(N,E,k){A.props.onKeyHandled(A.editor,E,k)});break;case"onKeyPress":A.editor.on("keypress",function(N,E){A.props.onKeyPress(A.editor,E)});break;case"onKeyUp":A.editor.on("keyup",function(N,E){A.props.onKeyUp(A.editor,E)});break;case"onMouseDown":{A.editor.on("mousedown",function(N,E){A.props.onMouseDown(A.editor,E)});break}case"onPaste":{A.editor.on("paste",function(N,E){A.props.onPaste(A.editor,E)});break}case"onRenderLine":{A.editor.on("renderLine",function(N,E,k){A.props.onRenderLine(A.editor,E,k)});break}case"onScroll":A.editor.on("scroll",function(N){A.props.onScroll(A.editor,A.editor.getScrollInfo())});break;case"onSelection":A.editor.on("beforeSelectionChange",function(N,E){A.props.onSelection(A.editor,E)});break;case"onTouchStart":{A.editor.on("touchstart",function(N,E){A.props.onTouchStart(A.editor,E)});break}case"onUpdate":A.editor.on("update",function(N){A.props.onUpdate(A.editor)});break;case"onViewportChange":A.editor.on("viewportChange",function(N,E,k){A.props.onViewportChange(A.editor,E,k)});break}})},ie}(),ue=function(ie){C(Y,ie);function Y(A){var J=ie.call(this,A)||this;return F||(J.applied=!1,J.appliedNext=!1,J.appliedUserDefined=!1,J.deferred=null,J.emulating=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1),J}return Y.prototype.hydrate=function(A){var J=this,N=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,N),k=Object.keys(E).some(function(V){return J.editor.getOption(V)!==E[V]});k&&Object.keys(E).forEach(function(V){N.hasOwnProperty(V)&&J.editor.getOption(V)!==E[V]&&(J.editor.setOption(V,E[V]),J.mirror.setOption(V,E[V]))}),this.hydrated||(this.deferred?this.resolveChange(A.value):this.initChange(A.value||"")),this.hydrated=!0},Y.prototype.initChange=function(A){this.emulating=!0;var J=this.editor.getDoc(),N=J.lastLine(),E=J.getLine(J.lastLine()).length;J.replaceRange(A||"",{line:0,ch:0},{line:N,ch:E}),this.mirror.setValue(A),J.clearHistory(),this.mirror.clearHistory(),this.emulating=!1},Y.prototype.resolveChange=function(A){this.emulating=!0;var J=this.editor.getDoc();if(this.deferred.origin==="undo"?J.undo():this.deferred.origin==="redo"?J.redo():J.replaceRange(this.deferred.text,this.deferred.from,this.deferred.to,this.deferred.origin),A&&A!==J.getValue()){var N=J.getCursor();J.setValue(A),J.setCursor(N)}this.emulating=!1,this.deferred=null},Y.prototype.mirrorChange=function(A){var J=this.editor.getDoc();return A.origin==="undo"?(J.setHistory(this.mirror.getHistory()),this.mirror.undo()):A.origin==="redo"?(J.setHistory(this.mirror.getHistory()),this.mirror.redo()):this.mirror.replaceRange(A.text,A.from,A.to,A.origin),this.mirror.getValue()},Y.prototype.componentDidMount=function(){var A=this;F||(this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.mirror=U(function(){},this.props.options),this.editor.on("electricInput",function(){A.mirror.setHistory(A.editor.getDoc().getHistory())}),this.editor.on("cursorActivity",function(){A.mirror.setCursor(A.editor.getDoc().getCursor())}),this.editor.on("beforeChange",function(J,N){if(!A.emulating){N.cancel(),A.deferred=N;var E=A.mirrorChange(A.deferred);A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,A.deferred,E)}}),this.editor.on("change",function(J,N){!A.mounted||A.props.onChange&&A.props.onChange(A.editor,N,A.editor.getValue())}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getOption("autofocus")&&this.editor.focus(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(!F){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1),!this.props.autoCursor&&this.props.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.appliedNext||(this.shared.applyNext(A,this.props,J),this.appliedNext=!0),this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){return!F},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);O.fk=ue;var ne=function(ie){C(Y,ie);function Y(A){var J=ie.call(this,A)||this;return F||(J.applied=!1,J.appliedUserDefined=!1,J.continueChange=!1,J.detached=!1,J.hydrated=!1,J.initCb=function(){J.props.editorDidConfigure&&J.props.editorDidConfigure(J.editor)},J.mounted=!1,J.onBeforeChangeCb=function(){J.continueChange=!0}),J}return Y.prototype.hydrate=function(A){var J=this,N=A&&A.options?A.options:{},E=x({},U.defaults,this.editor.options,N),k=Object.keys(E).some(function(W){return J.editor.getOption(W)!==E[W]});if(k&&Object.keys(E).forEach(function(W){N.hasOwnProperty(W)&&J.editor.getOption(W)!==E[W]&&J.editor.setOption(W,E[W])}),!this.hydrated){var V=this.editor.getDoc(),$=V.lastLine(),Q=V.getLine(V.lastLine()).length;V.replaceRange(A.value||"",{line:0,ch:0},{line:$,ch:Q})}this.hydrated=!0},Y.prototype.componentDidMount=function(){var A=this;F||(this.detached=this.props.detach===!0,this.props.defineMode&&this.props.defineMode.name&&this.props.defineMode.fn&&U.defineMode(this.props.defineMode.name,this.props.defineMode.fn),this.editor=U(this.ref,this.props.options),this.shared=new ee(this.editor,this.props),this.editor.on("beforeChange",function(J,N){A.props.onBeforeChange&&A.props.onBeforeChange(A.editor,N,A.editor.getValue(),A.onBeforeChangeCb)}),this.editor.on("change",function(J,N){!A.mounted||!A.props.onChange||(A.props.onBeforeChange?A.continueChange&&A.props.onChange(A.editor,N,A.editor.getValue()):A.props.onChange(A.editor,N,A.editor.getValue()))}),this.hydrate(this.props),this.shared.apply(this.props),this.applied=!0,this.mounted=!0,this.shared.wire(this.props),this.editor.getDoc().clearHistory(),this.props.editorDidMount&&this.props.editorDidMount(this.editor,this.editor.getValue(),this.initCb))},Y.prototype.componentDidUpdate=function(A){if(this.detached&&this.props.detach===!1&&(this.detached=!1,A.editorDidAttach&&A.editorDidAttach(this.editor)),!this.detached&&this.props.detach===!0&&(this.detached=!0,A.editorDidDetach&&A.editorDidDetach(this.editor)),!(F||this.detached)){var J={cursor:null};this.props.value!==A.value&&(this.hydrated=!1,this.applied=!1,this.appliedUserDefined=!1),!A.autoCursor&&A.autoCursor!==void 0&&(J.cursor=this.editor.getDoc().getCursor()),this.hydrate(this.props),this.applied||(this.shared.apply(A),this.applied=!0),this.appliedUserDefined||(this.shared.applyUserDefined(A,J),this.appliedUserDefined=!0)}},Y.prototype.componentWillUnmount=function(){F||this.props.editorWillUnmount&&this.props.editorWillUnmount(U)},Y.prototype.shouldComponentUpdate=function(A,J){var N=!0;return F&&(N=!1),this.detached&&A.detach&&(N=!1),N},Y.prototype.render=function(){var A=this;if(F)return null;var J=this.props.className?"react-codemirror2 "+this.props.className:"react-codemirror2";return T.createElement("div",{className:J,ref:function(E){return A.ref=E}})},Y}(T.Component);d=ne},74294:(h,O,o)=>{"use strict";var d=o(67286),x=o(62680),w=o(99500),C=d("%TypeError%"),T=d("%WeakMap%",!0),F=d("%Map%",!0),U=x("WeakMap.prototype.get",!0),Z=x("WeakMap.prototype.set",!0),ee=x("WeakMap.prototype.has",!0),ue=x("Map.prototype.get",!0),ne=x("Map.prototype.set",!0),ie=x("Map.prototype.has",!0),Y=function(E,k){for(var V=E,$;($=V.next)!==null;V=$)if($.key===k)return V.next=$.next,$.next=E.next,E.next=$,$},A=function(E,k){var V=Y(E,k);return V&&V.value},J=function(E,k,V){var $=Y(E,k);$?$.value=V:E.next={key:k,next:E.next,value:V}},N=function(E,k){return!!Y(E,k)};h.exports=function(){var k,V,$,Q={assert:function(W){if(!Q.has(W))throw new C("Side channel does not contain "+w(W))},get:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return U(k,W)}else if(F){if(V)return ue(V,W)}else if($)return A($,W)},has:function(W){if(T&&W&&(typeof W=="object"||typeof W=="function")){if(k)return ee(k,W)}else if(F){if(V)return ie(V,W)}else if($)return N($,W);return!1},set:function(W,re){T&&W&&(typeof W=="object"||typeof W=="function")?(k||(k=new T),Z(k,W,re)):F?(V||(V=new F),ne(V,W,re)):($||($={key:{},next:null}),J($,W,re))}};return Q}},79375:(h,O,o)=>{var d=o(46062),x=o(45957);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},4570:(h,O,o)=>{var d=o(46062),x=o(73792);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},76239:(h,O,o)=>{var d=o(46062),x=o(59062);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},49032:(h,O,o)=>{var d=o(46062),x=o(32024);x=x.__esModule?x.default:x,typeof x=="string"&&(x=[[h.id,x,""]]);var w={};w.insert="head",w.singleton=!1;var C=d(x,w);h.exports=x.locals||{}},56855:h=>{"use strict";function O(A){return Object.prototype.toString.call(A)}function o(A){return O(A)==="[object Date]"}function d(A){return O(A)==="[object RegExp]"}function x(A){return O(A)==="[object Error]"}function w(A){return O(A)==="[object Boolean]"}function C(A){return O(A)==="[object Number]"}function T(A){return O(A)==="[object String]"}var F=Array.isArray||function(J){return Object.prototype.toString.call(J)==="[object Array]"};function U(A,J){if(A.forEach)return A.forEach(J);for(var N=0;N<A.length;N++)J(A[N],N,A)}var Z=Object.keys||function(J){var N=[];for(var E in J)N.push(E);return N},ee=Object.prototype.hasOwnProperty||function(A,J){return J in A};function ue(A){if(typeof A=="object"&&A!==null){var J;if(F(A))J=[];else if(o(A))J=new Date(A.getTime?A.getTime():A);else if(d(A))J=new RegExp(A);else if(x(A))J={message:A.message};else if(w(A)||C(A)||T(A))J=Object(A);else if(Object.create&&Object.getPrototypeOf)J=Object.create(Object.getPrototypeOf(A));else if(A.constructor===Object)J={};else{var N=A.constructor&&A.constructor.prototype||A.__proto__||{},E=function(){};E.prototype=N,J=new E}return U(Z(A),function(k){J[k]=A[k]}),J}return A}function ne(A,J,N){var E=[],k=[],V=!0;return function $(Q){var W=N?ue(Q):Q,re={},K=!0,H={node:W,node_:Q,path:[].concat(E),parent:k[k.length-1],parents:k,key:E[E.length-1],isRoot:E.length===0,level:E.length,circular:null,update:function(_,X){H.isRoot||(H.parent.node[H.key]=_),H.node=_,X&&(K=!1)},delete:function(_){delete H.parent.node[H.key],_&&(K=!1)},remove:function(_){F(H.parent.node)?H.parent.node.splice(H.key,1):delete H.parent.node[H.key],_&&(K=!1)},keys:null,before:function(_){re.before=_},after:function(_){re.after=_},pre:function(_){re.pre=_},post:function(_){re.post=_},stop:function(){V=!1},block:function(){K=!1}};if(!V)return H;function fe(){if(typeof H.node=="object"&&H.node!==null){(!H.keys||H.node_!==H.node)&&(H.keys=Z(H.node)),H.isLeaf=H.keys.length===0;for(var _=0;_<k.length;_++)if(k[_].node_===Q){H.circular=k[_];break}}else H.isLeaf=!0,H.keys=null;H.notLeaf=!H.isLeaf,H.notRoot=!H.isRoot}fe();var he=J.call(H,H.node);return he!==void 0&&H.update&&H.update(he),re.before&&re.before.call(H,H.node),K&&(typeof H.node=="object"&&H.node!==null&&!H.circular&&(k.push(H),fe(),U(H.keys,function(_,X){E.push(_),re.pre&&re.pre.call(H,H.node[_],_);var z=$(H.node[_]);N&&ee.call(H.node,_)&&(H.node[_]=z.node),z.isLast=X===H.keys.length-1,z.isFirst=X===0,re.post&&re.post.call(H,z),E.pop()}),k.pop()),re.after&&re.after.call(H,H.node)),H}(A).node}function ie(A){this.value=A}ie.prototype.get=function(A){for(var J=this.value,N=0;N<A.length;N++){var E=A[N];if(!J||!ee.call(J,E))return;J=J[E]}return J},ie.prototype.has=function(A){for(var J=this.value,N=0;N<A.length;N++){var E=A[N];if(!J||!ee.call(J,E))return!1;J=J[E]}return!0},ie.prototype.set=function(A,J){for(var N=this.value,E=0;E<A.length-1;E++){var k=A[E];ee.call(N,k)||(N[k]={}),N=N[k]}return N[A[E]]=J,J},ie.prototype.map=function(A){return ne(this.value,A,!0)},ie.prototype.forEach=function(A){return this.value=ne(this.value,A,!1),this.value},ie.prototype.reduce=function(A,J){var N=arguments.length===1,E=N?this.value:J;return this.forEach(function(k){(!this.isRoot||!N)&&(E=A.call(this,E,k))}),E},ie.prototype.paths=function(){var A=[];return this.forEach(function(){A.push(this.path)}),A},ie.prototype.nodes=function(){var A=[];return this.forEach(function(){A.push(this.node)}),A},ie.prototype.clone=function(){var A=[],J=[];return function N(E){for(var k=0;k<A.length;k++)if(A[k]===E)return J[k];if(typeof E=="object"&&E!==null){var V=ue(E);return A.push(E),J.push(V),U(Z(E),function($){V[$]=N(E[$])}),A.pop(),J.pop(),V}return E}(this.value)};function Y(A){return new ie(A)}U(Z(ie.prototype),function(A){Y[A]=function(J){var N=[].slice.call(arguments,1),E=new ie(J);return E[A].apply(E,N)}}),h.exports=Y},56089:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJDw4cOCW1/KIAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAHElEQVQI12NggIL/DAz/GdA5/xkY/qPKMDAwAADLZwf5rvm+LQAAAABJRU5ErkJggg=="},17735:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAADCAYAAAC09K7GAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sJFhQXEbhTg7YAAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAMklEQVQI12NkgIIvJ3QXMjAwdDN+OaEbysDA4MPAwNDNwMCwiOHLCd1zX07o6kBVGQEAKBANtobskNMAAAAASUVORK5CYII="},96192:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAMAAADzjKfhAAAACVBMVEUAAAAAAAC/v7914kyHAAAAAXRSTlMAQObYZgAAACNJREFUeNo1ioEJAAAIwmz/H90iFFSGJgFMe3gaLZ0od+9/AQZ0ADosbYraAAAAAElFTkSuQmCC"},71090:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAHlBMVEW7AAC7AACxAAC7AAC7AAAAAAC4AAC5AAD///+7AAAUdclpAAAABnRSTlMXnORSiwCK0ZKSAAAATUlEQVR42mWPOQ7AQAgDuQLx/z8csYRmPRIFIwRGnosRrpamvkKi0FTIiMASR3hhKW+hAN6/tIWhu9PDWiTGNEkTtIOucA5Oyr9ckPgAWm0GPBog6v4AAAAASUVORK5CYII="},46050:h=>{"use strict";h.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAANlBMVEX/uwDvrwD/uwD/uwD/uwD/uwD/uwD/uwD/uwD6twD/uwAAAADurwD2tQD7uAD+ugAAAAD/uwDhmeTRAAAADHRSTlMJ8mN1EYcbmiixgACm7WbuAAAAVklEQVR42n3PUQqAIBBFUU1LLc3u/jdbOJoW1P08DA9Gba8+YWJ6gNJoNYIBzAA2chBth5kLmG9YUoG0NHAUwFXwO9LuBQL1giCQb8gC9Oro2vp5rncCIY8L8uEx5ZkAAAAASUVORK5CYII="},53260:()=>{},48621:(h,O,o)=>{h.exports=o(53822)},40192:(h,O,o)=>{h.exports=o(44877)},42126:(h,O,o)=>{h.exports=o(10140)},40453:(h,O,o)=>{h.exports=o(55603)},35784:(h,O,o)=>{h.exports=o(76237)},82985:(h,O,o)=>{h.exports=o(56515)},14903:(h,O,o)=>{h.exports=o(20057)},71488:(h,O,o)=>{h.exports=o(24741)},93963:(h,O,o)=>{h.exports=o(8368)},51661:(h,O,o)=>{h.exports=o(342)},85337:(h,O,o)=>{h.exports=o(392)},45932:(h,O,o)=>{h.exports=o(28478)},31175:(h,O,o)=>{h.exports=o(58202)},2921:(h,O,o)=>{h.exports=o(45636)},22583:(h,O,o)=>{h.exports=o(46618)},8304:(h,O,o)=>{h.exports=o(72946)},36394:(h,O,o)=>{h.exports=o(11235)},50557:(h,O,o)=>{h.exports=o(62813)},72010:(h,O,o)=>{h.exports=o(68664)},5490:(h,O,o)=>{h.exports=o(21457)},1858:(h,O,o)=>{h.exports=o(36516)},84870:(h,O,o)=>{h.exports=o(87611)},48145:(h,O,o)=>{h.exports=o(4161)},26405:(h,O,o)=>{h.exports=o(75159)},9600:(h,O,o)=>{h.exports=o(87708)},72383:(h,O,o)=>{h.exports=o(42937)},8626:(h,O,o)=>{h.exports=o(69297)},45055:(h,O,o)=>{h.exports=o(10353)},49800:(h,O,o)=>{h.exports=o(8026)},79494:(h,O,o)=>{h.exports=o(67362)},11807:(h,O,o)=>{h.exports=o(57532)},24463:(h,O,o)=>{h.exports=o(61903)},21889:(h,O,o)=>{h.exports=o(42044)},25575:(h,O,o)=>{h.exports=o(60902)},68861:(h,O,o)=>{h.exports=o(2214)},64772:(h,O,o)=>{h.exports=o(983)},57829:(h,O,o)=>{h.exports=o(59256)},92876:(h,O,o)=>{h.exports=o(95659)},92903:(h,O,o)=>{h.exports=o(93698)},18730:(h,O,o)=>{var d=o(69696).default,x=o(49800),w=o(57829),C=o(8626),T=o(21889),F=o(48145),U=o(68861),Z=o(64772),ee=o(9600),ue=o(72383);function ne(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */h.exports=ne=function(){return ie},h.exports.__esModule=!0,h.exports.default=h.exports;var ie={},Y=Object.prototype,A=Y.hasOwnProperty,J=x||function(Le,Ce,Se){Le[Ce]=Se.value},N=typeof w=="function"?w:{},E=N.iterator||"@@iterator",k=N.asyncIterator||"@@asyncIterator",V=N.toStringTag||"@@toStringTag";function $(Le,Ce,Se){return x(Le,Ce,{value:Se,enumerable:!0,configurable:!0,writable:!0}),Le[Ce]}try{$({},"")}catch(Le){$=function(Se,De,$e){return Se[De]=$e}}function Q(Le,Ce,Se,De){var $e=Ce&&Ce.prototype instanceof K?Ce:K,tt=C($e.prototype),_e=new xt(De||[]);return J(tt,"_invoke",{value:Ue(Le,Se,_e)}),tt}function W(Le,Ce,Se){try{return{type:"normal",arg:Le.call(Ce,Se)}}catch(De){return{type:"throw",arg:De}}}ie.wrap=Q;var re={};function K(){}function H(){}function fe(){}var he={};$(he,E,function(){return this});var _=T,X=_&&_(_(Pt([])));X&&X!==Y&&A.call(X,E)&&(he=X);var z=fe.prototype=K.prototype=C(he);function ge(Le){var Ce;F(Ce=["next","throw","return"]).call(Ce,function(Se){$(Le,Se,function(De){return this._invoke(Se,De)})})}function Oe(Le,Ce){function Se($e,tt,_e,St){var It=W(Le[$e],Le,tt);if(It.type!=="throw"){var Wt=It.arg,$t=Wt.value;return $t&&d($t)=="object"&&A.call($t,"__await")?Ce.resolve($t.__await).then(function(We){Se("next",We,_e,St)},function(We){Se("throw",We,_e,St)}):Ce.resolve($t).then(function(We){Wt.value=We,_e(Wt)},function(We){return Se("throw",We,_e,St)})}St(It.arg)}var De;J(this,"_invoke",{value:function(tt,_e){function St(){return new Ce(function(It,Wt){Se(tt,_e,It,Wt)})}return De=De?De.then(St,St):St()}})}function Ue(Le,Ce,Se){var De="suspendedStart";return function($e,tt){if(De==="executing")throw new Error("Generator is already running");if(De==="completed"){if($e==="throw")throw tt;return Ct()}for(Se.method=$e,Se.arg=tt;;){var _e=Se.delegate;if(_e){var St=Fe(_e,Se);if(St){if(St===re)continue;return St}}if(Se.method==="next")Se.sent=Se._sent=Se.arg;else if(Se.method==="throw"){if(De==="suspendedStart")throw De="completed",Se.arg;Se.dispatchException(Se.arg)}else Se.method==="return"&&Se.abrupt("return",Se.arg);De="executing";var It=W(Le,Ce,Se);if(It.type==="normal"){if(De=Se.done?"completed":"suspendedYield",It.arg===re)continue;return{value:It.arg,done:Se.done}}It.type==="throw"&&(De="completed",Se.method="throw",Se.arg=It.arg)}}}function Fe(Le,Ce){var Se=Ce.method,De=Le.iterator[Se];if(De===void 0)return Ce.delegate=null,Se==="throw"&&Le.iterator.return&&(Ce.method="return",Ce.arg=void 0,Fe(Le,Ce),Ce.method==="throw")||Se!=="return"&&(Ce.method="throw",Ce.arg=new TypeError("The iterator does not provide a '"+Se+"' method")),re;var $e=W(De,Le.iterator,Ce.arg);if($e.type==="throw")return Ce.method="throw",Ce.arg=$e.arg,Ce.delegate=null,re;var tt=$e.arg;return tt?tt.done?(Ce[Le.resultName]=tt.value,Ce.next=Le.nextLoc,Ce.method!=="return"&&(Ce.method="next",Ce.arg=void 0),Ce.delegate=null,re):tt:(Ce.method="throw",Ce.arg=new TypeError("iterator result is not an object"),Ce.delegate=null,re)}function at(Le){var Ce={tryLoc:Le[0]};1 in Le&&(Ce.catchLoc=Le[1]),2 in Le&&(Ce.finallyLoc=Le[2],Ce.afterLoc=Le[3]),this.tryEntries.push(Ce)}function Xe(Le){var Ce=Le.completion||{};Ce.type="normal",delete Ce.arg,Le.completion=Ce}function xt(Le){this.tryEntries=[{tryLoc:"root"}],F(Le).call(Le,at,this),this.reset(!0)}function Pt(Le){if(Le){var Ce=Le[E];if(Ce)return Ce.call(Le);if(typeof Le.next=="function")return Le;if(!isNaN(Le.length)){var Se=-1,De=function $e(){for(;++Se<Le.length;)if(A.call(Le,Se))return $e.value=Le[Se],$e.done=!1,$e;return $e.value=void 0,$e.done=!0,$e};return De.next=De}}return{next:Ct}}function Ct(){return{value:void 0,done:!0}}return H.prototype=fe,J(z,"constructor",{value:fe,configurable:!0}),J(fe,"constructor",{value:H,configurable:!0}),H.displayName=$(fe,V,"GeneratorFunction"),ie.isGeneratorFunction=function(Le){var Ce=typeof Le=="function"&&Le.constructor;return!!Ce&&(Ce===H||(Ce.displayName||Ce.name)==="GeneratorFunction")},ie.mark=function(Le){return U?U(Le,fe):(Le.__proto__=fe,$(Le,V,"GeneratorFunction")),Le.prototype=C(z),Le},ie.awrap=function(Le){return{__await:Le}},ge(Oe.prototype),$(Oe.prototype,k,function(){return this}),ie.AsyncIterator=Oe,ie.async=function(Le,Ce,Se,De,$e){$e===void 0&&($e=Z);var tt=new Oe(Q(Le,Ce,Se,De),$e);return ie.isGeneratorFunction(Ce)?tt:tt.next().then(function(_e){return _e.done?_e.value:tt.next()})},ge(z),$(z,V,"Generator"),$(z,E,function(){return this}),$(z,"toString",function(){return"[object Generator]"}),ie.keys=function(Le){var Ce=Object(Le),Se=[];for(var De in Ce)Se.push(De);return ee(Se).call(Se),function $e(){for(;Se.length;){var tt=Se.pop();if(tt in Ce)return $e.value=tt,$e.done=!1,$e}return $e.done=!0,$e}},ie.values=Pt,xt.prototype={constructor:xt,reset:function(Ce){var Se;if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,F(Se=this.tryEntries).call(Se,Xe),!Ce)for(var De in this)De.charAt(0)==="t"&&A.call(this,De)&&!isNaN(+ue(De).call(De,1))&&(this[De]=void 0)},stop:function(){this.done=!0;var Ce=this.tryEntries[0].completion;if(Ce.type==="throw")throw Ce.arg;return this.rval},dispatchException:function(Ce){if(this.done)throw Ce;var Se=this;function De(Wt,$t){return _e.type="throw",_e.arg=Ce,Se.next=Wt,$t&&(Se.method="next",Se.arg=void 0),!!$t}for(var $e=this.tryEntries.length-1;$e>=0;--$e){var tt=this.tryEntries[$e],_e=tt.completion;if(tt.tryLoc==="root")return De("end");if(tt.tryLoc<=this.prev){var St=A.call(tt,"catchLoc"),It=A.call(tt,"finallyLoc");if(St&&It){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0);if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}else if(St){if(this.prev<tt.catchLoc)return De(tt.catchLoc,!0)}else{if(!It)throw new Error("try statement without catch or finally");if(this.prev<tt.finallyLoc)return De(tt.finallyLoc)}}}},abrupt:function(Ce,Se){for(var De=this.tryEntries.length-1;De>=0;--De){var $e=this.tryEntries[De];if($e.tryLoc<=this.prev&&A.call($e,"finallyLoc")&&this.prev<$e.finallyLoc){var tt=$e;break}}tt&&(Ce==="break"||Ce==="continue")&&tt.tryLoc<=Se&&Se<=tt.finallyLoc&&(tt=null);var _e=tt?tt.completion:{};return _e.type=Ce,_e.arg=Se,tt?(this.method="next",this.next=tt.finallyLoc,re):this.complete(_e)},complete:function(Ce,Se){if(Ce.type==="throw")throw Ce.arg;return Ce.type==="break"||Ce.type==="continue"?this.next=Ce.arg:Ce.type==="return"?(this.rval=this.arg=Ce.arg,this.method="return",this.next="end"):Ce.type==="normal"&&Se&&(this.next=Se),re},finish:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.finallyLoc===Ce)return this.complete(De.completion,De.afterLoc),Xe(De),re}},catch:function(Ce){for(var Se=this.tryEntries.length-1;Se>=0;--Se){var De=this.tryEntries[Se];if(De.tryLoc===Ce){var $e=De.completion;if($e.type==="throw"){var tt=$e.arg;Xe(De)}return tt}}throw new Error("illegal catch attempt")},delegateYield:function(Ce,Se,De){return this.delegate={iterator:Pt(Ce),resultName:Se,nextLoc:De},this.method==="next"&&(this.arg=void 0),re}},ie}h.exports=ne,h.exports.__esModule=!0,h.exports.default=h.exports},69696:(h,O,o)=>{var d=o(57829),x=o(92876);function w(C){return h.exports=w=typeof d=="function"&&typeof x=="symbol"?function(T){return typeof T}:function(T){return T&&typeof d=="function"&&T.constructor===d&&T!==d.prototype?"symbol":typeof T},h.exports.__esModule=!0,h.exports.default=h.exports,w(C)}h.exports=w,h.exports.__esModule=!0,h.exports.default=h.exports},99732:(h,O,o)=>{var d=o(18730)();h.exports=d;try{regeneratorRuntime=d}catch(x){typeof globalThis=="object"?globalThis.regeneratorRuntime=d:Function("r","regeneratorRuntime = r")(d)}}}]);