@ai-development-environment/server 0.0.84 → 0.0.85

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 (401) hide show
  1. package/package.json +4 -2
  2. package/standalone/.next/BUILD_ID +1 -1
  3. package/standalone/.next/build-manifest.json +3 -3
  4. package/standalone/.next/node_modules/re2-332e07f5b609c24b/index.cjs +1 -0
  5. package/standalone/.next/node_modules/re2-332e07f5b609c24b/package.json +4 -0
  6. package/standalone/.next/prerender-manifest.json +3 -3
  7. package/standalone/.next/required-server-files.json +3 -2
  8. package/standalone/.next/server/app/[locale]/(auth)/register/page.js.nft.json +1 -1
  9. package/standalone/.next/server/app/[locale]/(auth)/sign-in/page.js.nft.json +1 -1
  10. package/standalone/.next/server/app/[locale]/(dashboard)/actions/page.js.nft.json +1 -1
  11. package/standalone/.next/server/app/[locale]/(dashboard)/actions-cache/page.js.nft.json +1 -1
  12. package/standalone/.next/server/app/[locale]/(dashboard)/agents/[id]/page.js.nft.json +1 -1
  13. package/standalone/.next/server/app/[locale]/(dashboard)/agents/page.js.nft.json +1 -1
  14. package/standalone/.next/server/app/[locale]/(dashboard)/analytics-events/page.js.nft.json +1 -1
  15. package/standalone/.next/server/app/[locale]/(dashboard)/api-keys/page.js.nft.json +1 -1
  16. package/standalone/.next/server/app/[locale]/(dashboard)/apps/[appId]/page.js.nft.json +1 -1
  17. package/standalone/.next/server/app/[locale]/(dashboard)/apps/page.js.nft.json +1 -1
  18. package/standalone/.next/server/app/[locale]/(dashboard)/build-data/page.js.nft.json +1 -1
  19. package/standalone/.next/server/app/[locale]/(dashboard)/builds/[buildId]/coverage/page.js.nft.json +1 -1
  20. package/standalone/.next/server/app/[locale]/(dashboard)/builds/[buildId]/output/route.js +2 -2
  21. package/standalone/.next/server/app/[locale]/(dashboard)/builds/[buildId]/output/route.js.nft.json +1 -1
  22. package/standalone/.next/server/app/[locale]/(dashboard)/builds/[buildId]/page.js.nft.json +1 -1
  23. package/standalone/.next/server/app/[locale]/(dashboard)/builds/page.js.nft.json +1 -1
  24. package/standalone/.next/server/app/[locale]/(dashboard)/changes/page.js.nft.json +1 -1
  25. package/standalone/.next/server/app/[locale]/(dashboard)/codebases/[codebaseId]/page.js.nft.json +1 -1
  26. package/standalone/.next/server/app/[locale]/(dashboard)/codebases/page.js.nft.json +1 -1
  27. package/standalone/.next/server/app/[locale]/(dashboard)/codebases/repositories/[repositoryId]/page.js.nft.json +1 -1
  28. package/standalone/.next/server/app/[locale]/(dashboard)/commands/[commandId]/edit/page.js.nft.json +1 -1
  29. package/standalone/.next/server/app/[locale]/(dashboard)/commands/new/page.js.nft.json +1 -1
  30. package/standalone/.next/server/app/[locale]/(dashboard)/commands/page.js.nft.json +1 -1
  31. package/standalone/.next/server/app/[locale]/(dashboard)/commands/runs/[runId]/output/route.js +2 -2
  32. package/standalone/.next/server/app/[locale]/(dashboard)/commands/runs/[runId]/output/route.js.nft.json +1 -1
  33. package/standalone/.next/server/app/[locale]/(dashboard)/commands/runs/[runId]/page.js.nft.json +1 -1
  34. package/standalone/.next/server/app/[locale]/(dashboard)/comments/page.js.nft.json +1 -1
  35. package/standalone/.next/server/app/[locale]/(dashboard)/console-logs/page.js.nft.json +1 -1
  36. package/standalone/.next/server/app/[locale]/(dashboard)/costs/page.js.nft.json +1 -1
  37. package/standalone/.next/server/app/[locale]/(dashboard)/credentials/page.js.nft.json +1 -1
  38. package/standalone/.next/server/app/[locale]/(dashboard)/devices/[id]/page.js.nft.json +1 -1
  39. package/standalone/.next/server/app/[locale]/(dashboard)/devices/enroll/page.js.nft.json +1 -1
  40. package/standalone/.next/server/app/[locale]/(dashboard)/devices/page.js.nft.json +1 -1
  41. package/standalone/.next/server/app/[locale]/(dashboard)/drafts/page.js.nft.json +1 -1
  42. package/standalone/.next/server/app/[locale]/(dashboard)/github-cache/entries/[id]/page.js.nft.json +1 -1
  43. package/standalone/.next/server/app/[locale]/(dashboard)/github-cache/page.js.nft.json +1 -1
  44. package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/[issueKey]/page.js.nft.json +1 -1
  45. package/standalone/.next/server/app/[locale]/(dashboard)/jira/tickets/page.js.nft.json +1 -1
  46. package/standalone/.next/server/app/[locale]/(dashboard)/jira-cache/page.js.nft.json +1 -1
  47. package/standalone/.next/server/app/[locale]/(dashboard)/jira-cache/tickets/[issueKey]/page.js.nft.json +1 -1
  48. package/standalone/.next/server/app/[locale]/(dashboard)/jira-webhooks/page.js.nft.json +1 -1
  49. package/standalone/.next/server/app/[locale]/(dashboard)/jobs/[jobId]/page.js.nft.json +1 -1
  50. package/standalone/.next/server/app/[locale]/(dashboard)/notifications/page.js.nft.json +1 -1
  51. package/standalone/.next/server/app/[locale]/(dashboard)/page.js.nft.json +1 -1
  52. package/standalone/.next/server/app/[locale]/(dashboard)/plans/[runId]/page.js.nft.json +1 -1
  53. package/standalone/.next/server/app/[locale]/(dashboard)/plans/page.js.nft.json +1 -1
  54. package/standalone/.next/server/app/[locale]/(dashboard)/polling/page.js.nft.json +1 -1
  55. package/standalone/.next/server/app/[locale]/(dashboard)/provisioning-profiles/[profileId]/page.js.nft.json +1 -1
  56. package/standalone/.next/server/app/[locale]/(dashboard)/provisioning-profiles/page.js.nft.json +1 -1
  57. package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/[owner]/[repository]/[number]/page.js.nft.json +1 -1
  58. package/standalone/.next/server/app/[locale]/(dashboard)/pull-requests/page.js.nft.json +1 -1
  59. package/standalone/.next/server/app/[locale]/(dashboard)/push-notifications/page.js.nft.json +1 -1
  60. package/standalone/.next/server/app/[locale]/(dashboard)/runs/new/page.js.nft.json +1 -1
  61. package/standalone/.next/server/app/[locale]/(dashboard)/sessions/[runId]/page.js.nft.json +1 -1
  62. package/standalone/.next/server/app/[locale]/(dashboard)/sessions/page.js.nft.json +1 -1
  63. package/standalone/.next/server/app/[locale]/(dashboard)/settings/page.js.nft.json +1 -1
  64. package/standalone/.next/server/app/[locale]/(dashboard)/skills/[skillId]/page.js.nft.json +1 -1
  65. package/standalone/.next/server/app/[locale]/(dashboard)/skills/groups/[groupId]/page.js.nft.json +1 -1
  66. package/standalone/.next/server/app/[locale]/(dashboard)/skills/groups/page.js.nft.json +1 -1
  67. package/standalone/.next/server/app/[locale]/(dashboard)/skills/page.js.nft.json +1 -1
  68. package/standalone/.next/server/app/[locale]/(dashboard)/skills/sync/[runId]/page.js.nft.json +1 -1
  69. package/standalone/.next/server/app/[locale]/(dashboard)/tools/page.js.nft.json +1 -1
  70. package/standalone/.next/server/app/[locale]/(dashboard)/unified-events/page.js.nft.json +1 -1
  71. package/standalone/.next/server/app/[locale]/(dashboard)/usage/page.js.nft.json +1 -1
  72. package/standalone/.next/server/app/[locale]/(dashboard)/users/page.js.nft.json +1 -1
  73. package/standalone/.next/server/app/[locale]/(dashboard)/webhooks/page.js.nft.json +1 -1
  74. package/standalone/.next/server/app/[locale]/(dashboard)/workflows/[workflowId]/edit/page.js.nft.json +1 -1
  75. package/standalone/.next/server/app/[locale]/(dashboard)/workflows/[workflowId]/page.js.nft.json +1 -1
  76. package/standalone/.next/server/app/[locale]/(dashboard)/workflows/new/page.js.nft.json +1 -1
  77. package/standalone/.next/server/app/[locale]/(dashboard)/workflows/page.js.nft.json +1 -1
  78. package/standalone/.next/server/app/[locale]/(dashboard)/workflows/runs/[runId]/page.js.nft.json +1 -1
  79. package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/[worktreeId]/page.js.nft.json +1 -1
  80. package/standalone/.next/server/app/[locale]/(dashboard)/worktrees/page.js.nft.json +1 -1
  81. package/standalone/.next/server/app/_global-error/page.js.nft.json +1 -1
  82. package/standalone/.next/server/app/_global-error.html +1 -1
  83. package/standalone/.next/server/app/_global-error.rsc +1 -1
  84. package/standalone/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +1 -1
  85. package/standalone/.next/server/app/_global-error.segments/_full.segment.rsc +1 -1
  86. package/standalone/.next/server/app/_global-error.segments/_head.segment.rsc +1 -1
  87. package/standalone/.next/server/app/_global-error.segments/_index.segment.rsc +1 -1
  88. package/standalone/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  89. package/standalone/.next/server/app/_not-found/page.js.nft.json +1 -1
  90. package/standalone/.next/server/app/_not-found.html +1 -1
  91. package/standalone/.next/server/app/_not-found.rsc +1 -1
  92. package/standalone/.next/server/app/_not-found.segments/_full.segment.rsc +1 -1
  93. package/standalone/.next/server/app/_not-found.segments/_head.segment.rsc +1 -1
  94. package/standalone/.next/server/app/_not-found.segments/_index.segment.rsc +1 -1
  95. package/standalone/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +1 -1
  96. package/standalone/.next/server/app/_not-found.segments/_not-found.segment.rsc +1 -1
  97. package/standalone/.next/server/app/_not-found.segments/_tree.segment.rsc +1 -1
  98. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js +2 -2
  99. package/standalone/.next/server/app/api/agent/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  100. package/standalone/.next/server/app/api/auth/[...all]/route.js.nft.json +1 -1
  101. package/standalone/.next/server/app/api/auth/config/route.js.nft.json +1 -1
  102. package/standalone/.next/server/app/api/auth/management/api-keys/[keyId]/route.js.nft.json +1 -1
  103. package/standalone/.next/server/app/api/auth/management/api-keys/route.js.nft.json +1 -1
  104. package/standalone/.next/server/app/api/auth/management/registration/route.js.nft.json +1 -1
  105. package/standalone/.next/server/app/api/auth/management/sessions/[sessionId]/route.js.nft.json +1 -1
  106. package/standalone/.next/server/app/api/auth/management/users/[userId]/route.js.nft.json +1 -1
  107. package/standalone/.next/server/app/api/auth/management/users/route.js.nft.json +1 -1
  108. package/standalone/.next/server/app/api/auth/mobile/oauth/complete/route.js +3 -3
  109. package/standalone/.next/server/app/api/auth/mobile/oauth/complete/route.js.nft.json +1 -1
  110. package/standalone/.next/server/app/api/auth/mobile/oauth/start/route.js +6 -6
  111. package/standalone/.next/server/app/api/auth/mobile/oauth/start/route.js.nft.json +1 -1
  112. package/standalone/.next/server/app/api/auth/mobile/redeem/route.js +6 -6
  113. package/standalone/.next/server/app/api/auth/mobile/redeem/route.js.nft.json +1 -1
  114. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js +2 -2
  115. package/standalone/.next/server/app/api/build-artifact-uploads/[uploadId]/route.js.nft.json +1 -1
  116. package/standalone/.next/server/app/api/codebases/by-path/route.js +2 -2
  117. package/standalone/.next/server/app/api/codebases/by-path/route.js.nft.json +1 -1
  118. package/standalone/.next/server/app/api/codebases/route.js +2 -2
  119. package/standalone/.next/server/app/api/codebases/route.js.nft.json +1 -1
  120. package/standalone/.next/server/app/api/graphql/route.js +2 -2
  121. package/standalone/.next/server/app/api/graphql/route.js.nft.json +1 -1
  122. package/standalone/.next/server/app/api/ios/apns-devices/route.js +2 -2
  123. package/standalone/.next/server/app/api/ios/apns-devices/route.js.nft.json +1 -1
  124. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js +2 -2
  125. package/standalone/.next/server/app/api/ios/devices/export.tsv/route.js.nft.json +1 -1
  126. package/standalone/.next/server/app/api/ios/enrollment/start/route.js +2 -2
  127. package/standalone/.next/server/app/api/ios/enrollment/start/route.js.nft.json +1 -1
  128. package/standalone/.next/server/app/api/ios/notification-devices/route.js +2 -2
  129. package/standalone/.next/server/app/api/ios/notification-devices/route.js.nft.json +1 -1
  130. package/standalone/.next/server/app/api/mcp/route.js +2 -2
  131. package/standalone/.next/server/app/api/mcp/route.js.nft.json +1 -1
  132. package/standalone/.next/server/app/api/openapi.json/route.js +1 -1
  133. package/standalone/.next/server/app/api/openapi.json/route.js.nft.json +1 -1
  134. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js +2 -2
  135. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/manifest.plist/route.js.nft.json +1 -1
  136. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js +2 -2
  137. package/standalone/.next/server/app/api/public/builds/[buildId]/artifacts/[artifactId]/route.js.nft.json +1 -1
  138. package/standalone/.next/server/app/api/public/github/webhook/route.js +2 -2
  139. package/standalone/.next/server/app/api/public/github/webhook/route.js.nft.json +1 -1
  140. package/standalone/.next/server/app/api/public/ios/enrollment-complete/route.js.nft.json +1 -1
  141. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js +2 -2
  142. package/standalone/.next/server/app/api/public/ios/enrollment-profile/route.js.nft.json +1 -1
  143. package/standalone/.next/server/app/api/public/ios/profile-response/route.js +2 -2
  144. package/standalone/.next/server/app/api/public/ios/profile-response/route.js.nft.json +1 -1
  145. package/standalone/.next/server/app/api/public/jira/webhook/route.js +2 -2
  146. package/standalone/.next/server/app/api/public/jira/webhook/route.js.nft.json +1 -1
  147. package/standalone/.next/server/app/api/run-attachments/[attachmentId]/route.js.nft.json +1 -1
  148. package/standalone/.next/server/app/api/run-attachments/route.js.nft.json +1 -1
  149. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js +2 -2
  150. package/standalone/.next/server/app/api/telemetry/analytics-events/route.js.nft.json +1 -1
  151. package/standalone/.next/server/app/api/telemetry/console-logs/route.js +2 -2
  152. package/standalone/.next/server/app/api/telemetry/console-logs/route.js.nft.json +1 -1
  153. package/standalone/.next/server/app/api/telemetry/export/route.js +2 -2
  154. package/standalone/.next/server/app/api/telemetry/export/route.js.nft.json +1 -1
  155. package/standalone/.next/server/app/api/tools/call/route.js +2 -2
  156. package/standalone/.next/server/app/api/tools/call/route.js.nft.json +1 -1
  157. package/standalone/.next/server/app/api/tools/catalog/route.js +2 -2
  158. package/standalone/.next/server/app/api/tools/catalog/route.js.nft.json +1 -1
  159. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js +2 -2
  160. package/standalone/.next/server/app/api/worktrees/[worktreeId]/diff-image/route.js.nft.json +1 -1
  161. package/standalone/.next/server/app/icon.svg/route.js.nft.json +1 -1
  162. package/standalone/.next/server/chunks/{[root-of-the-server]__04i6ibl._.js → [root-of-the-server]__00awghn._.js} +1 -1
  163. package/standalone/.next/server/chunks/{[root-of-the-server]__06e1aai._.js → [root-of-the-server]__01fc8er._.js} +1 -1
  164. package/standalone/.next/server/chunks/{[root-of-the-server]__00xcg2c._.js → [root-of-the-server]__01s43cm._.js} +1 -1
  165. package/standalone/.next/server/chunks/{[root-of-the-server]__0-j_rt4._.js → [root-of-the-server]__01xz3y_._.js} +1 -1
  166. package/standalone/.next/server/chunks/{[root-of-the-server]__06gi27i._.js → [root-of-the-server]__021fex_._.js} +1 -1
  167. package/standalone/.next/server/chunks/{[root-of-the-server]__06jhhu1._.js → [root-of-the-server]__028j56p._.js} +1 -1
  168. package/standalone/.next/server/chunks/{[root-of-the-server]__0c_sj8k._.js → [root-of-the-server]__04_ohht._.js} +2 -2
  169. package/standalone/.next/server/chunks/{[root-of-the-server]__0c9kg5q._.js → [root-of-the-server]__04yufht._.js} +1 -1
  170. package/standalone/.next/server/chunks/{[root-of-the-server]__06uxp7s._.js → [root-of-the-server]__05-fxkh._.js} +1 -1
  171. package/standalone/.next/server/chunks/{[root-of-the-server]__14m_8nc._.js → [root-of-the-server]__06u7pdm._.js} +2 -2
  172. package/standalone/.next/server/chunks/{[root-of-the-server]__0072ye-._.js → [root-of-the-server]__06xlh28._.js} +1 -1
  173. package/standalone/.next/server/chunks/{[root-of-the-server]__0-hp8gw._.js → [root-of-the-server]__08c82jc._.js} +1 -1
  174. package/standalone/.next/server/chunks/{[root-of-the-server]__0712mqb._.js → [root-of-the-server]__08ebgcu._.js} +1 -1
  175. package/standalone/.next/server/chunks/{[root-of-the-server]__16ke6wr._.js → [root-of-the-server]__08lx09f._.js} +2 -2
  176. package/standalone/.next/server/chunks/{[root-of-the-server]__148dtoe._.js → [root-of-the-server]__096mlhl._.js} +2 -2
  177. package/standalone/.next/server/chunks/{[root-of-the-server]__00kj6r7._.js → [root-of-the-server]__09mo3t8._.js} +1 -1
  178. package/standalone/.next/server/chunks/{[root-of-the-server]__10bs2_7._.js → [root-of-the-server]__09svdrb._.js} +2 -2
  179. package/standalone/.next/server/chunks/{[root-of-the-server]__07vyiqy._.js → [root-of-the-server]__0_d2g94._.js} +1 -1
  180. package/standalone/.next/server/chunks/{[root-of-the-server]__1-l6iy9._.js → [root-of-the-server]__0al7x4f._.js} +2 -2
  181. package/standalone/.next/server/chunks/[root-of-the-server]__0c2tkz2._.js +3 -0
  182. package/standalone/.next/server/chunks/{[root-of-the-server]__05l4mi8._.js → [root-of-the-server]__0c4pqb-._.js} +1 -1
  183. package/standalone/.next/server/chunks/[root-of-the-server]__0cj65ti._.js +3 -0
  184. package/standalone/.next/server/chunks/{[root-of-the-server]__01885qr._.js → [root-of-the-server]__0d3awck._.js} +1 -1
  185. package/standalone/.next/server/chunks/{[root-of-the-server]__09yow0s._.js → [root-of-the-server]__0de_qut._.js} +1 -1
  186. package/standalone/.next/server/chunks/{[root-of-the-server]__1x35-d0._.js → [root-of-the-server]__0e31e7p._.js} +2 -2
  187. package/standalone/.next/server/chunks/[root-of-the-server]__0e53pce._.js +3 -0
  188. package/standalone/.next/server/chunks/[root-of-the-server]__0ecnp29._.js +3 -0
  189. package/standalone/.next/server/chunks/[root-of-the-server]__0eldrcp._.js +3 -0
  190. package/standalone/.next/server/chunks/[root-of-the-server]__0eopc38._.js +3 -0
  191. package/standalone/.next/server/chunks/[root-of-the-server]__0fo_msa._.js +3 -0
  192. package/standalone/.next/server/chunks/[root-of-the-server]__0gtwvjk._.js +3 -0
  193. package/standalone/.next/server/chunks/[root-of-the-server]__0h50ygv._.js +3 -0
  194. package/standalone/.next/server/chunks/{[root-of-the-server]__00t260s._.js → [root-of-the-server]__0hbjmzn._.js} +2 -2
  195. package/standalone/.next/server/chunks/[root-of-the-server]__0hffylr._.js +3 -0
  196. package/standalone/.next/server/chunks/[root-of-the-server]__0hvsuut._.js +3 -0
  197. package/standalone/.next/server/chunks/[root-of-the-server]__0inac5u._.js +3 -0
  198. package/standalone/.next/server/chunks/[root-of-the-server]__0jd56xd._.js +3 -0
  199. package/standalone/.next/server/chunks/[root-of-the-server]__0jjv2dl._.js +3 -0
  200. package/standalone/.next/server/chunks/[root-of-the-server]__0kbteue._.js +3 -0
  201. package/standalone/.next/server/chunks/[root-of-the-server]__0le7cki._.js +3 -0
  202. package/standalone/.next/server/chunks/[root-of-the-server]__0lu8r5i._.js +3 -0
  203. package/standalone/.next/server/chunks/[root-of-the-server]__0m5alcp._.js +3 -0
  204. package/standalone/.next/server/chunks/[root-of-the-server]__0mbymp_._.js +3 -0
  205. package/standalone/.next/server/chunks/[root-of-the-server]__0mi-xpq._.js +3 -0
  206. package/standalone/.next/server/chunks/[root-of-the-server]__0mx_l8j._.js +3 -0
  207. package/standalone/.next/server/chunks/[root-of-the-server]__0qkxjnh._.js +3 -0
  208. package/standalone/.next/server/chunks/[root-of-the-server]__0rgdw1t._.js +3 -0
  209. package/standalone/.next/server/chunks/[root-of-the-server]__0s_zc22._.js +3 -0
  210. package/standalone/.next/server/chunks/[root-of-the-server]__0sk_wpl._.js +3 -0
  211. package/standalone/.next/server/chunks/[root-of-the-server]__0sm_9x3._.js +3 -0
  212. package/standalone/.next/server/chunks/[root-of-the-server]__0uaej7i._.js +3 -0
  213. package/standalone/.next/server/chunks/{[root-of-the-server]__09jmuxh._.js → [root-of-the-server]__0v3wyan._.js} +2 -2
  214. package/standalone/.next/server/chunks/[root-of-the-server]__0wkgq45._.js +3 -0
  215. package/standalone/.next/server/chunks/[root-of-the-server]__0xbgjwj._.js +3 -0
  216. package/standalone/.next/server/chunks/[root-of-the-server]__0xsa1ko._.js +3 -0
  217. package/standalone/.next/server/chunks/[root-of-the-server]__0yg5tbe._.js +3 -0
  218. package/standalone/.next/server/chunks/[root-of-the-server]__0zcm8g9._.js +3 -0
  219. package/standalone/.next/server/chunks/{[root-of-the-server]__1dgyml6._.js → [root-of-the-server]__0zxvn5t._.js} +2 -2
  220. package/standalone/.next/server/chunks/{[root-of-the-server]__18xb4tw._.js → [root-of-the-server]__1-rtc2c._.js} +2 -2
  221. package/standalone/.next/server/chunks/[root-of-the-server]__10duq79._.js +3 -0
  222. package/standalone/.next/server/chunks/[root-of-the-server]__10n9aa8._.js +3 -0
  223. package/standalone/.next/server/chunks/{[root-of-the-server]__1mmah0v._.js → [root-of-the-server]__124au6p._.js} +2 -2
  224. package/standalone/.next/server/chunks/[root-of-the-server]__137wgug._.js +3 -0
  225. package/standalone/.next/server/chunks/{[root-of-the-server]__0x8mo8l._.js → [root-of-the-server]__13cy_hd._.js} +2 -2
  226. package/standalone/.next/server/chunks/[root-of-the-server]__13o2i1b._.js +3 -0
  227. package/standalone/.next/server/chunks/[root-of-the-server]__1563rfp._.js +3 -0
  228. package/standalone/.next/server/chunks/[root-of-the-server]__15p0skc._.js +3 -0
  229. package/standalone/.next/server/chunks/[root-of-the-server]__15xfa5d._.js +3 -0
  230. package/standalone/.next/server/chunks/[root-of-the-server]__16q8nl1._.js +3 -0
  231. package/standalone/.next/server/chunks/{[root-of-the-server]__045vcsv._.js → [root-of-the-server]__16ur7du._.js} +2 -2
  232. package/standalone/.next/server/chunks/{[root-of-the-server]__1hlka6s._.js → [root-of-the-server]__17m0i74._.js} +2 -2
  233. package/standalone/.next/server/chunks/[root-of-the-server]__18crj_k._.js +3 -0
  234. package/standalone/.next/server/chunks/{[root-of-the-server]__0pjluwr._.js → [root-of-the-server]__19c_hrh._.js} +2 -2
  235. package/standalone/.next/server/chunks/{[root-of-the-server]__07sc4d6._.js → [root-of-the-server]__19lnrpb._.js} +3 -3
  236. package/standalone/.next/server/chunks/{[root-of-the-server]__1vx14af._.js → [root-of-the-server]__19miqxq._.js} +2 -2
  237. package/standalone/.next/server/chunks/[root-of-the-server]__19o8fio._.js +3 -0
  238. package/standalone/.next/server/chunks/{[root-of-the-server]__1hxh6f7._.js → [root-of-the-server]__19vmv0l._.js} +2 -2
  239. package/standalone/.next/server/chunks/{[root-of-the-server]__07b7x5c._.js → [root-of-the-server]__1_-bk8a._.js} +2 -2
  240. package/standalone/.next/server/chunks/[root-of-the-server]__1_87r0p._.js +3 -0
  241. package/standalone/.next/server/chunks/[root-of-the-server]__1_x_z5z._.js +3 -0
  242. package/standalone/.next/server/chunks/[root-of-the-server]__1a2a4dw._.js +3 -0
  243. package/standalone/.next/server/chunks/[root-of-the-server]__1ai5a7b._.js +3 -0
  244. package/standalone/.next/server/chunks/[root-of-the-server]__1aqix91._.js +3 -0
  245. package/standalone/.next/server/chunks/[root-of-the-server]__1au8rl_._.js +3 -0
  246. package/standalone/.next/server/chunks/[root-of-the-server]__1awqqwk._.js +3 -0
  247. package/standalone/.next/server/chunks/{[root-of-the-server]__0jrv5rz._.js → [root-of-the-server]__1b92e1t._.js} +2 -2
  248. package/standalone/.next/server/chunks/[root-of-the-server]__1bv5-_8._.js +3 -0
  249. package/standalone/.next/server/chunks/[root-of-the-server]__1c80jly._.js +3 -0
  250. package/standalone/.next/server/chunks/[root-of-the-server]__1cgwl7i._.js +3 -0
  251. package/standalone/.next/server/chunks/[root-of-the-server]__1cnys8r._.js +3 -0
  252. package/standalone/.next/server/chunks/[root-of-the-server]__1d4q9gf._.js +3 -0
  253. package/standalone/.next/server/chunks/[root-of-the-server]__1e7vx35._.js +3 -0
  254. package/standalone/.next/server/chunks/[root-of-the-server]__1he2uqp._.js +3 -0
  255. package/standalone/.next/server/chunks/[root-of-the-server]__1hs29qq._.js +3 -0
  256. package/standalone/.next/server/chunks/[root-of-the-server]__1hyz59c._.js +3 -0
  257. package/standalone/.next/server/chunks/[root-of-the-server]__1id6lt6._.js +3 -0
  258. package/standalone/.next/server/chunks/[root-of-the-server]__1ieaw8o._.js +3 -0
  259. package/standalone/.next/server/chunks/[root-of-the-server]__1jehtjb._.js +3 -0
  260. package/standalone/.next/server/chunks/[root-of-the-server]__1jnqgu8._.js +3 -0
  261. package/standalone/.next/server/chunks/[root-of-the-server]__1k2tvfv._.js +3 -0
  262. package/standalone/.next/server/chunks/{[root-of-the-server]__0p1pt6i._.js → [root-of-the-server]__1kjpcz_._.js} +2 -2
  263. package/standalone/.next/server/chunks/[root-of-the-server]__1lulyuw._.js +3 -0
  264. package/standalone/.next/server/chunks/[root-of-the-server]__1m1rllj._.js +3 -0
  265. package/standalone/.next/server/chunks/[root-of-the-server]__1m91618._.js +3 -0
  266. package/standalone/.next/server/chunks/{[root-of-the-server]__0omg2wb._.js → [root-of-the-server]__1mki32r._.js} +2 -2
  267. package/standalone/.next/server/chunks/{[root-of-the-server]__0-3ib_g._.js → [root-of-the-server]__1n_ks5s._.js} +2 -2
  268. package/standalone/.next/server/chunks/{[root-of-the-server]__1n6euz5._.js → [root-of-the-server]__1nj39zt._.js} +2 -2
  269. package/standalone/.next/server/chunks/[root-of-the-server]__1o2p5d4._.js +3 -0
  270. package/standalone/.next/server/chunks/[root-of-the-server]__1o59f9e._.js +3 -0
  271. package/standalone/.next/server/chunks/{[root-of-the-server]__05fsjsb._.js → [root-of-the-server]__1od6044._.js} +2 -2
  272. package/standalone/.next/server/chunks/[root-of-the-server]__1p32xvh._.js +3 -0
  273. package/standalone/.next/server/chunks/[root-of-the-server]__1r19vvq._.js +3 -0
  274. package/standalone/.next/server/chunks/[root-of-the-server]__1rtda2l._.js +3 -0
  275. package/standalone/.next/server/chunks/[root-of-the-server]__1rup4sv._.js +3 -0
  276. package/standalone/.next/server/chunks/[root-of-the-server]__1s5inmc._.js +3 -0
  277. package/standalone/.next/server/chunks/{[root-of-the-server]__15za52u._.js → [root-of-the-server]__1sajsif._.js} +6 -6
  278. package/standalone/.next/server/chunks/[root-of-the-server]__1seny2-._.js +3 -0
  279. package/standalone/.next/server/chunks/[root-of-the-server]__1soccc1._.js +3 -0
  280. package/standalone/.next/server/chunks/[root-of-the-server]__1u_dbg2._.js +3 -0
  281. package/standalone/.next/server/chunks/{[root-of-the-server]__0hz1a1g._.js → [root-of-the-server]__1uinol4._.js} +6 -6
  282. package/standalone/.next/server/chunks/[root-of-the-server]__1ulp98y._.js +3 -0
  283. package/standalone/.next/server/chunks/{[root-of-the-server]__0chticn._.js → [root-of-the-server]__1utpbf1._.js} +2 -2
  284. package/standalone/.next/server/chunks/[root-of-the-server]__1wf1339._.js +3 -0
  285. package/standalone/.next/server/chunks/[root-of-the-server]__1x2ubky._.js +3 -0
  286. package/standalone/.next/server/chunks/[root-of-the-server]__1xehef8._.js +3 -0
  287. package/standalone/.next/server/chunks/{[root-of-the-server]__1btz1fo._.js → [root-of-the-server]__1y343im._.js} +2 -2
  288. package/standalone/.next/server/chunks/{[root-of-the-server]__1x5laf2._.js → [root-of-the-server]__1yvqocu._.js} +2 -2
  289. package/standalone/.next/server/chunks/[root-of-the-server]__1yx0w43._.js +3 -0
  290. package/standalone/.next/server/chunks/[root-of-the-server]__1yxkfi6._.js +3 -0
  291. package/standalone/.next/server/chunks/[root-of-the-server]__1yye_uk._.js +3 -0
  292. package/standalone/.next/server/chunks/[root-of-the-server]__20du-cr._.js +3 -0
  293. package/standalone/.next/server/chunks/_01qtprx._.js +2 -2
  294. package/standalone/.next/server/chunks/_046r0fu._.js +1 -1
  295. package/standalone/.next/server/chunks/_0ap-sk4._.js +2 -2
  296. package/standalone/.next/server/chunks/_0km--pu._.js +1 -1
  297. package/standalone/.next/server/chunks/_19unz3y._.js +2 -2
  298. package/standalone/.next/server/chunks/_1e2b7v9._.js +1 -1
  299. package/standalone/.next/server/chunks/src_0o4-snj._.js +1 -1
  300. package/standalone/.next/server/middleware-build-manifest.js +3 -3
  301. package/standalone/.next/server/pages/404.html +1 -1
  302. package/standalone/.next/server/pages/500.html +1 -1
  303. package/standalone/.next/server/server-reference-manifest.js +1 -1
  304. package/standalone/.next/server/server-reference-manifest.json +1 -1
  305. package/standalone/package.json +3 -2
  306. package/standalone/server.js +1 -1
  307. package/standalone/.next/node_modules/re2-wasm-15fb420cc00a67dd/build/src/re2.js +0 -524
  308. package/standalone/.next/node_modules/re2-wasm-15fb420cc00a67dd/build/wasm/re2.js +0 -4570
  309. package/standalone/.next/node_modules/re2-wasm-15fb420cc00a67dd/build/wasm/re2.wasm +0 -0
  310. package/standalone/.next/node_modules/re2-wasm-15fb420cc00a67dd/package.json +0 -41
  311. package/standalone/.next/server/chunks/[root-of-the-server]__0_w-xej._.js +0 -3
  312. package/standalone/.next/server/chunks/[root-of-the-server]__0_y2v1j._.js +0 -3
  313. package/standalone/.next/server/chunks/[root-of-the-server]__0aars58._.js +0 -3
  314. package/standalone/.next/server/chunks/[root-of-the-server]__0ah_4rn._.js +0 -3
  315. package/standalone/.next/server/chunks/[root-of-the-server]__0axp9e2._.js +0 -3
  316. package/standalone/.next/server/chunks/[root-of-the-server]__0cwh1ob._.js +0 -3
  317. package/standalone/.next/server/chunks/[root-of-the-server]__0e6bqw-._.js +0 -3
  318. package/standalone/.next/server/chunks/[root-of-the-server]__0emkieo._.js +0 -3
  319. package/standalone/.next/server/chunks/[root-of-the-server]__0eqx3gx._.js +0 -3
  320. package/standalone/.next/server/chunks/[root-of-the-server]__0ez1ocj._.js +0 -3
  321. package/standalone/.next/server/chunks/[root-of-the-server]__0fpszsc._.js +0 -3
  322. package/standalone/.next/server/chunks/[root-of-the-server]__0fq5bqy._.js +0 -3
  323. package/standalone/.next/server/chunks/[root-of-the-server]__0fqft-4._.js +0 -3
  324. package/standalone/.next/server/chunks/[root-of-the-server]__0g2wp1c._.js +0 -3
  325. package/standalone/.next/server/chunks/[root-of-the-server]__0gvtj-n._.js +0 -3
  326. package/standalone/.next/server/chunks/[root-of-the-server]__0i85me2._.js +0 -3
  327. package/standalone/.next/server/chunks/[root-of-the-server]__0igsl3a._.js +0 -3
  328. package/standalone/.next/server/chunks/[root-of-the-server]__0k60y67._.js +0 -3
  329. package/standalone/.next/server/chunks/[root-of-the-server]__0niddrw._.js +0 -3
  330. package/standalone/.next/server/chunks/[root-of-the-server]__0nrktjf._.js +0 -3
  331. package/standalone/.next/server/chunks/[root-of-the-server]__0pgnk-c._.js +0 -3
  332. package/standalone/.next/server/chunks/[root-of-the-server]__0rkz4xn._.js +0 -3
  333. package/standalone/.next/server/chunks/[root-of-the-server]__0slps8j._.js +0 -3
  334. package/standalone/.next/server/chunks/[root-of-the-server]__0tudmvl._.js +0 -3
  335. package/standalone/.next/server/chunks/[root-of-the-server]__0u4_0hk._.js +0 -3
  336. package/standalone/.next/server/chunks/[root-of-the-server]__0vaokmk._.js +0 -3
  337. package/standalone/.next/server/chunks/[root-of-the-server]__0xomcdl._.js +0 -3
  338. package/standalone/.next/server/chunks/[root-of-the-server]__0xrriyl._.js +0 -3
  339. package/standalone/.next/server/chunks/[root-of-the-server]__0yhie6j._.js +0 -3
  340. package/standalone/.next/server/chunks/[root-of-the-server]__0yifxv-._.js +0 -3
  341. package/standalone/.next/server/chunks/[root-of-the-server]__1-c37l2._.js +0 -3
  342. package/standalone/.next/server/chunks/[root-of-the-server]__1-vnrg_._.js +0 -3
  343. package/standalone/.next/server/chunks/[root-of-the-server]__11r-5pu._.js +0 -3
  344. package/standalone/.next/server/chunks/[root-of-the-server]__12-cmv0._.js +0 -3
  345. package/standalone/.next/server/chunks/[root-of-the-server]__122sose._.js +0 -3
  346. package/standalone/.next/server/chunks/[root-of-the-server]__12_lxrq._.js +0 -3
  347. package/standalone/.next/server/chunks/[root-of-the-server]__12z-5e1._.js +0 -3
  348. package/standalone/.next/server/chunks/[root-of-the-server]__1355z93._.js +0 -3
  349. package/standalone/.next/server/chunks/[root-of-the-server]__144k8e_._.js +0 -3
  350. package/standalone/.next/server/chunks/[root-of-the-server]__146ijbu._.js +0 -3
  351. package/standalone/.next/server/chunks/[root-of-the-server]__15dlw94._.js +0 -3
  352. package/standalone/.next/server/chunks/[root-of-the-server]__15epdi9._.js +0 -3
  353. package/standalone/.next/server/chunks/[root-of-the-server]__16a0le5._.js +0 -3
  354. package/standalone/.next/server/chunks/[root-of-the-server]__16paa96._.js +0 -3
  355. package/standalone/.next/server/chunks/[root-of-the-server]__17ry7s4._.js +0 -3
  356. package/standalone/.next/server/chunks/[root-of-the-server]__18m2a8z._.js +0 -3
  357. package/standalone/.next/server/chunks/[root-of-the-server]__18rxly1._.js +0 -3
  358. package/standalone/.next/server/chunks/[root-of-the-server]__1_vhxix._.js +0 -3
  359. package/standalone/.next/server/chunks/[root-of-the-server]__1_z6940._.js +0 -3
  360. package/standalone/.next/server/chunks/[root-of-the-server]__1amwlm1._.js +0 -3
  361. package/standalone/.next/server/chunks/[root-of-the-server]__1cncn_q._.js +0 -3
  362. package/standalone/.next/server/chunks/[root-of-the-server]__1d8-kbp._.js +0 -3
  363. package/standalone/.next/server/chunks/[root-of-the-server]__1fg8n77._.js +0 -3
  364. package/standalone/.next/server/chunks/[root-of-the-server]__1fqhm93._.js +0 -3
  365. package/standalone/.next/server/chunks/[root-of-the-server]__1h2n8mc._.js +0 -3
  366. package/standalone/.next/server/chunks/[root-of-the-server]__1hy86s1._.js +0 -3
  367. package/standalone/.next/server/chunks/[root-of-the-server]__1id0o8p._.js +0 -3
  368. package/standalone/.next/server/chunks/[root-of-the-server]__1j1yxy_._.js +0 -3
  369. package/standalone/.next/server/chunks/[root-of-the-server]__1kwbhuu._.js +0 -3
  370. package/standalone/.next/server/chunks/[root-of-the-server]__1laf08m._.js +0 -3
  371. package/standalone/.next/server/chunks/[root-of-the-server]__1myrk79._.js +0 -3
  372. package/standalone/.next/server/chunks/[root-of-the-server]__1n3zakh._.js +0 -3
  373. package/standalone/.next/server/chunks/[root-of-the-server]__1o7yplz._.js +0 -3
  374. package/standalone/.next/server/chunks/[root-of-the-server]__1ohwk3-._.js +0 -3
  375. package/standalone/.next/server/chunks/[root-of-the-server]__1onn1-5._.js +0 -3
  376. package/standalone/.next/server/chunks/[root-of-the-server]__1pwcu28._.js +0 -3
  377. package/standalone/.next/server/chunks/[root-of-the-server]__1q229ru._.js +0 -3
  378. package/standalone/.next/server/chunks/[root-of-the-server]__1qtezlb._.js +0 -3
  379. package/standalone/.next/server/chunks/[root-of-the-server]__1r6w6uj._.js +0 -3
  380. package/standalone/.next/server/chunks/[root-of-the-server]__1rib6n3._.js +0 -3
  381. package/standalone/.next/server/chunks/[root-of-the-server]__1sh_vn6._.js +0 -3
  382. package/standalone/.next/server/chunks/[root-of-the-server]__1sx7rzl._.js +0 -3
  383. package/standalone/.next/server/chunks/[root-of-the-server]__1taelgv._.js +0 -3
  384. package/standalone/.next/server/chunks/[root-of-the-server]__1ts1wiq._.js +0 -3
  385. package/standalone/.next/server/chunks/[root-of-the-server]__1uy4hea._.js +0 -3
  386. package/standalone/.next/server/chunks/[root-of-the-server]__1uzbqwa._.js +0 -3
  387. package/standalone/.next/server/chunks/[root-of-the-server]__1x6_y8g._.js +0 -3
  388. package/standalone/.next/server/chunks/[root-of-the-server]__1xt0qaw._.js +0 -3
  389. package/standalone/.next/server/chunks/[root-of-the-server]__1y1cne4._.js +0 -3
  390. package/standalone/.next/server/chunks/[root-of-the-server]__1y6j2wu._.js +0 -3
  391. package/standalone/.next/server/chunks/[root-of-the-server]__1y7j7qr._.js +0 -3
  392. package/standalone/.next/server/chunks/[root-of-the-server]__1yj3ck2._.js +0 -3
  393. package/standalone/.next/server/chunks/[root-of-the-server]__1ym73v7._.js +0 -3
  394. package/standalone/.next/server/chunks/[root-of-the-server]__218z_cj._.js +0 -3
  395. package/standalone/node_modules/re2-wasm/build/src/re2.js +0 -524
  396. package/standalone/node_modules/re2-wasm/build/wasm/re2.js +0 -4570
  397. package/standalone/node_modules/re2-wasm/build/wasm/re2.wasm +0 -0
  398. package/standalone/node_modules/re2-wasm/package.json +0 -41
  399. /package/standalone/.next/static/{9QiT0UQel9_P_z1ZucOq8 → 9p-iMYbJQoReEZ7SfkMii}/_buildManifest.js +0 -0
  400. /package/standalone/.next/static/{9QiT0UQel9_P_z1ZucOq8 → 9p-iMYbJQoReEZ7SfkMii}/_clientMiddlewareManifest.js +0 -0
  401. /package/standalone/.next/static/{9QiT0UQel9_P_z1ZucOq8 → 9p-iMYbJQoReEZ7SfkMii}/_ssgManifest.js +0 -0
@@ -1,524 +0,0 @@
1
- "use strict";
2
- /* Copyright 2021 Google LLC
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License");
5
- * you may not use this file except in compliance with the License.
6
- * You may obtain a copy of the License at
7
- *
8
- * http://www.apache.org/licenses/LICENSE-2.0
9
-
10
- * Unless required by applicable law or agreed to in writing, software
11
- * distributed under the License is distributed on an "AS IS" BASIS,
12
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
- * See the License for the specific language governing permissions and
14
- * limitations under the License.
15
- */
16
- Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.RE2 = void 0;
18
- // eslint-disable-next-line node/no-unpublished-import
19
- const re2_1 = require("../wasm/re2");
20
- const ALPHA_UPPER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
21
- const HEX = '0123456789ABCDEF';
22
- function isHexadecimal(char) {
23
- return HEX.indexOf(char.toUpperCase()) !== -1;
24
- }
25
- /**
26
- * Translate a string from Node RegExp syntax RE2 syntax. The algorithm is
27
- * translated from
28
- * https://github.com/uhop/node-re2/blob/master/lib/new.cc#L21-L142
29
- * @param pattern
30
- * @param multiline
31
- */
32
- function translateRegExp(pattern, multiline) {
33
- const result = [];
34
- if (pattern === '') {
35
- return '(?:)';
36
- }
37
- else if (multiline) {
38
- result.push('(?m)');
39
- }
40
- for (let i = 0; i < pattern.length;) {
41
- if (pattern[i] === '\\') {
42
- if (i + 1 < pattern.length) {
43
- switch (pattern[i + 1]) {
44
- case '\\':
45
- // Consume "\\", output "\\"
46
- result.push('\\\\');
47
- i += 2;
48
- break;
49
- case 'c':
50
- if (i + 2 < pattern.length) {
51
- const alphaIndex = ALPHA_UPPER.indexOf(pattern[i + 2]) + 1;
52
- if (alphaIndex >= 0) {
53
- // Consume "\c[upper case character]", output "\x[hex digit][hex digit]"
54
- result.push('\\x', HEX[Math.floor(alphaIndex / 16)], HEX[alphaIndex % 16]);
55
- i += 3;
56
- break;
57
- }
58
- }
59
- // Consume "\c", output "\c"
60
- result.push('\\c');
61
- i += 2;
62
- break;
63
- case 'u':
64
- if (i + 2 < pattern.length) {
65
- const ch2 = pattern[i + 2];
66
- if (isHexadecimal(ch2)) {
67
- // Consume "\u[hex digit]", output "\x{[hex digit]"
68
- result.push('\\x{');
69
- result.push(ch2);
70
- i += 3;
71
- // Consume and output up to 3 more hex digits
72
- for (let j = 0; j < 3 && i < pattern.length && isHexadecimal(pattern[i]); i++, j++) {
73
- result.push(pattern[i]);
74
- }
75
- // Output "}"
76
- result.push('}');
77
- break;
78
- }
79
- else if (ch2 === '{') {
80
- // Consume "\u" followed by "{", output "\x"
81
- // The default case handles the subsequent characters
82
- result.push('\\x');
83
- i += 2;
84
- break;
85
- }
86
- }
87
- // Consume and output "\u"
88
- result.push('\\u');
89
- i += 2;
90
- break;
91
- default:
92
- // Consume and output "\[char]"
93
- result.push('\\', pattern[i + 1]);
94
- i += 2;
95
- }
96
- continue;
97
- }
98
- }
99
- else if (pattern[i] === '/') {
100
- // Consume "/"" and output "\/"
101
- // An existing "\/" would have been handled by the above default case
102
- result.push('\\/');
103
- i += 1;
104
- continue;
105
- }
106
- else if (pattern.substring(i, i + 3) === '(?<') {
107
- if (pattern[i + 3] !== '=' && pattern[i + 3] !== '!') {
108
- // Consume "(?<" and output "(?P<"
109
- result.push('(?P<');
110
- i += 3;
111
- continue;
112
- }
113
- }
114
- // Consume and output the next character
115
- result.push(pattern[i]);
116
- i += 1;
117
- }
118
- return result.join('');
119
- }
120
- /**
121
- * Escape a RegExp pattern by ensuring that any instance of "/" in the string
122
- * is preceded by an odd number of backslashes.
123
- * @param pattern
124
- */
125
- function escapeRegExp(pattern) {
126
- return pattern.replace(/(^|[^\\])((?:\\\\)*)\//g, '$1$2\\/');
127
- }
128
- /* This class should implement the RegExp interface, but it can't because of
129
- * https://github.com/microsoft/TypeScript/issues/42307 */
130
- class RE2 {
131
- constructor(pattern, flags) {
132
- this._global = false;
133
- this._ignoreCase = false;
134
- this._multiline = false;
135
- this._dotAll = false;
136
- this._unicode = false;
137
- this._sticky = false;
138
- this.lastIndex = 0;
139
- this.pattern = '(?:)';
140
- this.groupNames = {};
141
- this.namedGroups = {};
142
- if (typeof pattern !== 'string') {
143
- if (pattern instanceof RegExp || pattern instanceof RE2) {
144
- flags = flags !== null && flags !== void 0 ? flags : pattern.flags;
145
- pattern = pattern.source;
146
- }
147
- else {
148
- if (pattern === undefined) {
149
- pattern = '(?:)';
150
- }
151
- else {
152
- pattern = pattern + '';
153
- }
154
- }
155
- }
156
- if (pattern === '') {
157
- pattern = '(?:)';
158
- }
159
- pattern = escapeRegExp(pattern);
160
- flags = flags !== null && flags !== void 0 ? flags : '';
161
- for (const flag of flags) {
162
- switch (flag) {
163
- case 'g':
164
- this._global = true;
165
- break;
166
- case 'i':
167
- this._ignoreCase = true;
168
- break;
169
- case 'm':
170
- this._multiline = true;
171
- break;
172
- case 's':
173
- this._dotAll = true;
174
- break;
175
- case 'u':
176
- this._unicode = true;
177
- break;
178
- case 'y':
179
- this._sticky = true;
180
- break;
181
- }
182
- }
183
- if (!this._unicode) {
184
- throw new Error('RE2 only works in unicode mode. The "u" flag must be passed when constructing a RE2 instance');
185
- }
186
- this.pattern = pattern;
187
- this.wrapper = new re2_1.WrappedRE2(translateRegExp(pattern, this._multiline), this._ignoreCase, this._multiline, this._dotAll);
188
- if (!this.wrapper.ok()) {
189
- throw new SyntaxError(`Invalid regular expression: /${pattern}/${flags}: ${this.wrapper.error()}`);
190
- }
191
- // Verify that all named groups have unique names
192
- const groupNames = this.wrapper.capturingGroupNames();
193
- const groupNumbers = groupNames.keys();
194
- for (let i = 0; i < groupNumbers.size(); i++) {
195
- const num = groupNumbers.get(i);
196
- const name = groupNames.get(num);
197
- if (name in this.namedGroups) {
198
- throw new SyntaxError(`Invalid regular expression: /${pattern}/${flags}: Duplicate capture group name`);
199
- }
200
- this.groupNames[num] = name;
201
- this.namedGroups[name] = num;
202
- }
203
- }
204
- get source() {
205
- return this.pattern;
206
- }
207
- get internalSource() {
208
- return this.wrapper.pattern();
209
- }
210
- get flags() {
211
- return ((this._global ? 'g' : '') +
212
- (this._ignoreCase ? 'i' : '') +
213
- (this._multiline ? 'm' : '') +
214
- (this._dotAll ? 's' : '') +
215
- (this._unicode ? 'u' : '') +
216
- (this._sticky ? 'y' : ''));
217
- }
218
- get global() {
219
- return this._global;
220
- }
221
- get ignoreCase() {
222
- return this._ignoreCase;
223
- }
224
- get multiline() {
225
- return this._multiline;
226
- }
227
- get dotAll() {
228
- return this._dotAll;
229
- }
230
- get unicode() {
231
- return this._unicode;
232
- }
233
- get sticky() {
234
- return this._sticky;
235
- }
236
- toString() {
237
- return `/${this.pattern}/${this.flags}`;
238
- }
239
- getMaybeStickyIndex() {
240
- if (this._global || this._sticky) {
241
- return this.lastIndex;
242
- }
243
- else {
244
- return 0;
245
- }
246
- }
247
- isMatchSuccessful(match, searchStart) {
248
- return match.index === searchStart || (!this._sticky && match.index >= 0);
249
- }
250
- maybeUpdateLastIndex(match, start) {
251
- if (this._global || this._sticky) {
252
- if (this.isMatchSuccessful(match, start)) {
253
- this.lastIndex = match.index + match.match.length;
254
- }
255
- else {
256
- this.lastIndex = 0;
257
- }
258
- }
259
- }
260
- getNamedGroups(match) {
261
- const groups = {};
262
- for (const [groupName, groupNum] of Object.entries(this.namedGroups)) {
263
- if (match.groups[groupNum - 1] !== undefined) {
264
- groups[groupName] = match.groups[groupNum - 1];
265
- }
266
- }
267
- return groups;
268
- }
269
- exec(input) {
270
- if (typeof input !== 'string') {
271
- input = input + '';
272
- }
273
- const startIndex = this.getMaybeStickyIndex();
274
- const match = this.wrapper.match(input, startIndex, true);
275
- this.maybeUpdateLastIndex(match, startIndex);
276
- if (!this.isMatchSuccessful(match, startIndex)) {
277
- return null;
278
- }
279
- const result = [match.match, ...match.groups];
280
- result.index = match.index;
281
- result.input = input;
282
- const groups = this.getNamedGroups(match);
283
- if (Object.keys(groups).length > 0) {
284
- result.groups = groups;
285
- }
286
- return result;
287
- }
288
- test(input) {
289
- if (typeof input !== 'string') {
290
- input = input + '';
291
- }
292
- const startIndex = this.getMaybeStickyIndex();
293
- const match = this.wrapper.match(input, this.getMaybeStickyIndex(), false);
294
- this.maybeUpdateLastIndex(match, startIndex);
295
- return this.isMatchSuccessful(match, startIndex);
296
- }
297
- compile() {
298
- // This method is deprecated on RegExp, so it is intentionally not implemented here
299
- throw new Error('Deprecated RegExp method compile is not implemented in RE2.');
300
- }
301
- [Symbol.match](input) {
302
- if (typeof input !== 'string') {
303
- input = input + '';
304
- }
305
- if (this._global) {
306
- const result = [];
307
- let nextIndex = 0;
308
- let success;
309
- do {
310
- const match = this.wrapper.match(input, nextIndex, false);
311
- success =
312
- match.index === nextIndex || (!this._sticky && match.index >= 0);
313
- if (success) {
314
- result.push(match.match);
315
- nextIndex = match.index + match.match.length;
316
- }
317
- } while (success);
318
- if (result.length === 0) {
319
- return null;
320
- }
321
- else {
322
- return result;
323
- }
324
- }
325
- else {
326
- const startIndex = this.getMaybeStickyIndex();
327
- const match = this.wrapper.match(input, startIndex, true);
328
- this.maybeUpdateLastIndex(match, startIndex);
329
- if (!this.isMatchSuccessful(match, startIndex)) {
330
- return null;
331
- }
332
- const result = [match.match, ...match.groups];
333
- result.index = match.index;
334
- result.input = input;
335
- const groups = this.getNamedGroups(match);
336
- if (Object.keys(groups).length > 0) {
337
- result.groups = groups;
338
- }
339
- return result;
340
- }
341
- }
342
- match(input) {
343
- return this[Symbol.match](input);
344
- }
345
- /**
346
- * Outputs the replacement for the matched part of the string
347
- * @param input
348
- * @param match
349
- * @param replacer
350
- */
351
- replaceMatch(input, match,
352
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
353
- replacer) {
354
- var _a, _b;
355
- if (typeof replacer === 'string') {
356
- let result = '';
357
- for (let i = 0; i < replacer.length; i++) {
358
- if (replacer[i] === '$') {
359
- switch (replacer[i + 1]) {
360
- case '$':
361
- result += '$';
362
- i++;
363
- break;
364
- case '&':
365
- result += match.match;
366
- i++;
367
- break;
368
- case '`':
369
- result += input.substring(0, match.index);
370
- i++;
371
- break;
372
- case "'":
373
- result += input.substring(match.index + match.match.length);
374
- i++;
375
- break;
376
- case '<': {
377
- const endCaret = replacer.indexOf('>', i);
378
- if (endCaret < 0) {
379
- throw new Error('Invalid named group replacement');
380
- }
381
- const groupName = replacer.substring(i + 2, endCaret);
382
- if (groupName in this.namedGroups) {
383
- result += (_a = match.groups[this.namedGroups[groupName] - 1]) !== null && _a !== void 0 ? _a : '';
384
- }
385
- i = endCaret;
386
- break;
387
- }
388
- default: {
389
- let groupNum;
390
- if ('123456789'.includes(replacer[i + 1])) {
391
- if ('0123456789'.includes(replacer[i + 2])) {
392
- // Subtract 1 because groups are 1-indexed in replacement strings
393
- groupNum =
394
- Number.parseInt(replacer.substring(i + 1, i + 3)) - 1;
395
- i += 2;
396
- }
397
- else {
398
- // Subtract 1 because groups are 1-indexed in replacement strings
399
- groupNum = Number.parseInt(replacer[i + 1]) - 1;
400
- i++;
401
- }
402
- }
403
- else {
404
- throw new Error('Invalid replacement string');
405
- }
406
- if (groupNum < match.groups.length) {
407
- result += (_b = match.groups[groupNum]) !== null && _b !== void 0 ? _b : '';
408
- }
409
- else {
410
- result += '$' + groupNum;
411
- }
412
- }
413
- }
414
- }
415
- else {
416
- result += replacer[i];
417
- }
418
- }
419
- return result;
420
- }
421
- else {
422
- return replacer(match.match, ...match.groups, match.index, input, this.getNamedGroups(match));
423
- }
424
- }
425
- [Symbol.replace](input,
426
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
427
- replacer) {
428
- if (typeof input !== 'string') {
429
- input = input + '';
430
- }
431
- if (typeof replacer !== 'function') {
432
- replacer = replacer + '';
433
- }
434
- if (this._global) {
435
- let result = '';
436
- let nextIndex = 0;
437
- let success;
438
- do {
439
- const match = this.wrapper.match(input, nextIndex, true);
440
- success =
441
- match.index === nextIndex || (!this._sticky && match.index >= 0);
442
- if (success) {
443
- result +=
444
- input.substring(nextIndex, match.index) +
445
- this.replaceMatch(input, match, replacer);
446
- nextIndex = match.index + match.match.length;
447
- }
448
- } while (success);
449
- result += input.substring(nextIndex);
450
- this.lastIndex = 0;
451
- return result;
452
- }
453
- else {
454
- const startIndex = this.getMaybeStickyIndex();
455
- const match = this.wrapper.match(input, startIndex, true);
456
- this.maybeUpdateLastIndex(match, startIndex);
457
- if (this.isMatchSuccessful(match, startIndex)) {
458
- return (input.substring(0, match.index) +
459
- this.replaceMatch(input, match, replacer) +
460
- input.substring(match.index + match.match.length));
461
- }
462
- else {
463
- return input;
464
- }
465
- }
466
- }
467
- replace(input,
468
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
469
- replacer) {
470
- return this[Symbol.replace](input, replacer);
471
- }
472
- [Symbol.search](input) {
473
- if (typeof input !== 'string') {
474
- input = input + '';
475
- }
476
- const result = this.wrapper.match(input, 0, false).index;
477
- if (this._sticky && result !== 0) {
478
- return -1;
479
- }
480
- else {
481
- return result;
482
- }
483
- }
484
- search(input) {
485
- return this[Symbol.search](input);
486
- }
487
- [Symbol.split](input, limit) {
488
- if (typeof input !== 'string') {
489
- input = input + '';
490
- }
491
- const output = [];
492
- let nextIndex = 0;
493
- limit = limit !== null && limit !== void 0 ? limit : Infinity;
494
- while (output.length < limit) {
495
- const nextMatch = this.wrapper.match(input, nextIndex, true);
496
- if (nextMatch.index >= 0) {
497
- if (nextMatch.match.length === 0) {
498
- output.push(input.substring(nextIndex, nextIndex + 1));
499
- nextIndex = nextIndex + 1;
500
- }
501
- else {
502
- output.push(input.substring(nextIndex, nextMatch.index));
503
- nextIndex = nextMatch.index + nextMatch.match.length;
504
- }
505
- for (const group of nextMatch.groups) {
506
- if (output.length >= limit) {
507
- break;
508
- }
509
- output.push(group);
510
- }
511
- }
512
- else {
513
- output.push(input.substring(nextIndex));
514
- break;
515
- }
516
- }
517
- return output;
518
- }
519
- split(input, limit) {
520
- return this[Symbol.split](input, limit);
521
- }
522
- }
523
- exports.RE2 = RE2;
524
- //# sourceMappingURL=re2.js.map