@vc-shell/framework 2.0.0-alpha.2 → 2.0.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (291) hide show
  1. package/dist/assets/042c75b764bc78a7.svg +1 -0
  2. package/dist/assets/0ba156439a339f2a.svg +1 -0
  3. package/dist/assets/0be560bfb22d0e72.woff2 +0 -0
  4. package/dist/assets/0d67e9e056b4c500.woff +0 -0
  5. package/dist/assets/0f590f8a94577092.svg +1 -0
  6. package/dist/assets/0fc5820f8be53a1b.svg +1 -0
  7. package/dist/assets/105efd028edc1dfe.woff +0 -0
  8. package/dist/assets/10768e2cc79fc60b.svg +1 -0
  9. package/dist/assets/11b3d25a56fd9a21.woff2 +0 -0
  10. package/dist/assets/131b34336aedaf47.woff +0 -0
  11. package/dist/assets/154365acf3010d96.woff2 +0 -0
  12. package/dist/assets/157b8721e0600ea8.svg +1 -0
  13. package/dist/assets/15e91cdd649cde9a.svg +1 -0
  14. package/dist/assets/19275e398ae57130.woff2 +0 -0
  15. package/dist/assets/19bb1c668a5db39f.woff2 +0 -0
  16. package/dist/assets/1a3e84b2457f709a.woff +0 -0
  17. package/dist/assets/1de63eb118636cce.svg +1 -0
  18. package/dist/assets/1ea01de36eb5491b.svg +1 -0
  19. package/dist/assets/2010ada3e82156ed.woff +0 -0
  20. package/dist/assets/204eaf512fde2023.svg +1 -0
  21. package/dist/assets/2088983edf42e153.svg +1 -0
  22. package/dist/assets/208f810a9321a327.svg +1 -0
  23. package/dist/assets/21220a9d10e6c558.svg +1 -0
  24. package/dist/assets/220db345a102045d.woff2 +0 -0
  25. package/dist/assets/225da11d23968333.svg +1 -0
  26. package/dist/assets/226f862dd81bdc13.woff2 +0 -0
  27. package/dist/assets/23a2d53395ddb14f.woff +0 -0
  28. package/dist/assets/259e6ad461a52ad7.svg +1 -0
  29. package/dist/assets/261e6dec4d53b9ac.woff +0 -0
  30. package/dist/assets/262f46a0b6d94bb6.svg +1 -0
  31. package/dist/assets/2857c513073467da.svg +1 -0
  32. package/dist/assets/2b3be7889467d98f.woff +0 -0
  33. package/dist/assets/2d4e6190eec72737.svg +1 -0
  34. package/dist/assets/2eba973185078bc8.woff +0 -0
  35. package/dist/assets/334d3f6bc766c516.woff +0 -0
  36. package/dist/assets/34ff7dd0c2285956.svg +1 -0
  37. package/dist/assets/3d26b7c1ab78bbe2.woff +0 -0
  38. package/dist/assets/3d892965ab4f1cbb.woff2 +0 -0
  39. package/dist/assets/3f8c4cc8099e34b6.woff2 +0 -0
  40. package/dist/assets/3fc09a6113184f16.woff +0 -0
  41. package/dist/assets/40a0e53b79ce63c6.woff2 +0 -0
  42. package/dist/assets/41275bcb979cb650.svg +1 -0
  43. package/dist/assets/434f7982590e462f.woff +0 -0
  44. package/dist/assets/475937116ee3314a.woff2 +0 -0
  45. package/dist/assets/477e1881a0394cc5.woff +0 -0
  46. package/dist/assets/489710fb710e73f0.woff +0 -0
  47. package/dist/assets/49791943b3872376.woff2 +0 -0
  48. package/dist/assets/4ae5f23e0ca888e7.woff2 +0 -0
  49. package/dist/assets/4d7a77b0e5373992.svg +1 -0
  50. package/dist/assets/4e43c74354534fb3.svg +1 -0
  51. package/dist/assets/4fe75f5117100705.svg +1 -0
  52. package/dist/assets/52e261a005074e1b.woff +0 -0
  53. package/dist/assets/5304c3d05a5f9789.woff2 +0 -0
  54. package/dist/assets/54cda5482c6c9218.woff +0 -0
  55. package/dist/assets/550f52072e8ccafe.woff2 +0 -0
  56. package/dist/assets/572bb1bb4156a9c1.svg +1 -0
  57. package/dist/assets/6075995d7e74da46.woff2 +0 -0
  58. package/dist/assets/617c4736236e199e.woff +0 -0
  59. package/dist/assets/67230f05dc94a265.svg +1 -0
  60. package/dist/assets/6798e4dd4add9b48.svg +1 -0
  61. package/dist/assets/686d4077c1e26876.woff2 +0 -0
  62. package/dist/assets/698ec6c722d4cb05.woff2 +0 -0
  63. package/dist/assets/6a3e73faf406cf33.svg +1 -0
  64. package/dist/assets/72de3a63bc0b70dd.svg +1 -0
  65. package/dist/assets/74c6a6ab81bb6340.woff2 +0 -0
  66. package/dist/assets/74ed5f8a78e71106.svg +1 -0
  67. package/dist/assets/7a5aa5abd625137f.ttf +0 -0
  68. package/dist/assets/7ce0c166fd6a1204.woff +0 -0
  69. package/dist/assets/7d55399c2a7bc985.svg +1 -0
  70. package/dist/assets/7d970675c69fca1d.woff +0 -0
  71. package/dist/assets/7eda727273fd98d3.svg +1 -0
  72. package/dist/assets/7f6ebfd707b76ca2.woff +0 -0
  73. package/dist/assets/7fa898d213fcc7bc.woff2 +0 -0
  74. package/dist/assets/861e6b7192b3b6c7.woff +0 -0
  75. package/dist/assets/8bbcde81ba21ecb2.woff2 +0 -0
  76. package/dist/assets/8f6657e5e0b8d3e4.woff +0 -0
  77. package/dist/assets/910b0d99b9e26568.svg +1 -0
  78. package/dist/assets/91fe94e424323d61.woff +0 -0
  79. package/dist/assets/92508f8707159b51.svg +1 -0
  80. package/dist/assets/9392bf1d591e1abb.svg +1 -0
  81. package/dist/assets/97e8d4984ba0713a.woff2 +0 -0
  82. package/dist/assets/9cb83236f6bb7ab1.svg +1 -0
  83. package/dist/assets/9d37314695c0b68d.woff +0 -0
  84. package/dist/assets/a03cdcd8da5bb987.woff +0 -0
  85. package/dist/assets/a18404194e3f9047.svg +1 -0
  86. package/dist/assets/a2017fe7f0a26510.svg +1 -0
  87. package/dist/assets/ab6e7190bb1492d5.woff2 +0 -0
  88. package/dist/assets/abf88f301a0730f4.svg +1 -0
  89. package/dist/assets/ac1a99b3d05d8232.woff +0 -0
  90. package/dist/assets/aed17cb6fdad2ada.woff2 +0 -0
  91. package/dist/assets/b1a596e31ad1185a.svg +1 -0
  92. package/dist/assets/b27767411c8427be.woff +0 -0
  93. package/dist/assets/b325adcae33bbe7a.svg +1 -0
  94. package/dist/assets/b372390551ca2fa1.svg +1 -0
  95. package/dist/assets/b5bb1e8fc975decd.svg +1 -0
  96. package/dist/assets/b645a4a2181b9dc1.svg +1 -0
  97. package/dist/assets/b6499ddce0a4ef7d.svg +1 -0
  98. package/dist/assets/b7ffde2383bb16ba.woff2 +0 -0
  99. package/dist/assets/b94421fadd23b0f2.svg +1 -0
  100. package/dist/assets/bb28fb0f27f1c11b.svg +1 -0
  101. package/dist/assets/c5195215cb712e9c.woff2 +0 -0
  102. package/dist/assets/c9191b638a10f67b.woff2 +0 -0
  103. package/dist/assets/c97328b91ac5cc66.woff +0 -0
  104. package/dist/assets/ca791c5ca5848a03.svg +1 -0
  105. package/dist/assets/cb32840ce330103f.woff +0 -0
  106. package/dist/assets/ccc878931d74181b.woff2 +0 -0
  107. package/dist/assets/cdc69f8b549c866d.woff2 +0 -0
  108. package/dist/assets/d084bda16abe8a56.svg +1 -0
  109. package/dist/assets/d32b129cae2fffd6.svg +1 -0
  110. package/dist/assets/d35a4c7113315758.woff2 +0 -0
  111. package/dist/assets/d3f792f54ae4c307.svg +1 -0
  112. package/dist/assets/d5a5b8630120073d.svg +1 -0
  113. package/dist/assets/d5eb20bcdcf5616a.woff2 +0 -0
  114. package/dist/assets/d5f9664ebbfb104b.svg +1 -0
  115. package/dist/assets/d84247b59449dd88.woff2 +0 -0
  116. package/dist/assets/da4b7f5883fe7743.woff2 +0 -0
  117. package/dist/assets/dceaf3b39091e6a4.woff +0 -0
  118. package/dist/assets/dd05d43ff0df2fc7.svg +1 -0
  119. package/dist/assets/e2ad5b3428289141.woff +0 -0
  120. package/dist/assets/e38acaa1757232e0.svg +1 -0
  121. package/dist/assets/e4a8550f1c7ffe36.svg +1 -0
  122. package/dist/assets/e5adb5ae3a3698f6.svg +1 -0
  123. package/dist/assets/e61a1889bac955f4.woff2 +0 -0
  124. package/dist/assets/e72bb11356af94c7.svg +1 -0
  125. package/dist/assets/e98196a9f8dcb2f0.svg +1 -0
  126. package/dist/assets/ebec912a42ad49ff.woff +0 -0
  127. package/dist/assets/ee6983981ffcbb41.woff2 +0 -0
  128. package/dist/assets/f09d89268e4c0317.svg +1 -0
  129. package/dist/assets/f239394367fcf005.woff2 +0 -0
  130. package/dist/assets/f5722262b6e7214e.woff2 +0 -0
  131. package/dist/assets/f7fc8bf46089d8b2.svg +1 -0
  132. package/dist/assets/fc829e3f399b70e0.woff2 +0 -0
  133. package/dist/assets/fe141d99763f5d2b.woff +0 -0
  134. package/dist/assets/fed13b0d59903483.svg +1 -0
  135. package/dist/assets/fed757d2c2344ead.woff2 +0 -0
  136. package/dist/assets/ffc438f20e79ce73.woff +0 -0
  137. package/dist/framework.css +9 -0
  138. package/dist/framework.js +36476 -0
  139. package/dist/shared/components/blade-navigation/plugin-v2.d.ts.map +1 -1
  140. package/dist/tsconfig.tsbuildinfo +1 -1
  141. package/dist/vendor-boolbase-D2i1C8XR.js +18 -0
  142. package/dist/vendor-cheerio-DrsWhxJH.js +1053 -0
  143. package/dist/vendor-cheerio-select-jw4C2SiT.js +191 -0
  144. package/dist/vendor-core-js-Do_NZFHx.js +880 -0
  145. package/dist/vendor-css-select-BwGMmTuc.js +622 -0
  146. package/dist/vendor-css-what-CZZaquJM.js +267 -0
  147. package/dist/vendor-cypress-signalr-mock-itnm2wpA.js +781 -0
  148. package/dist/vendor-d3-array-9cpTrqlO.js +149 -0
  149. package/dist/vendor-d3-axis-D1_DbKLz.js +74 -0
  150. package/dist/vendor-d3-brush-CcKeJp9e.js +1 -0
  151. package/dist/vendor-d3-color-BOYE6h_9.js +306 -0
  152. package/dist/vendor-d3-dispatch-fx-WMg0D.js +64 -0
  153. package/dist/vendor-d3-ease-Cr34gv04.js +8 -0
  154. package/dist/vendor-d3-format-DaIwZvFc.js +182 -0
  155. package/dist/vendor-d3-interpolate-BYG2gvO4.js +177 -0
  156. package/dist/vendor-d3-interpolate-path-CpGLvKgS.js +299 -0
  157. package/dist/vendor-d3-path-DJOTitNW.js +64 -0
  158. package/dist/vendor-d3-scale-CC5rtdt5.js +561 -0
  159. package/dist/vendor-d3-selection-CNMxsYiL.js +603 -0
  160. package/dist/vendor-d3-shape-DBhCDMiV.js +925 -0
  161. package/dist/vendor-d3-time-DAPP210_.js +212 -0
  162. package/dist/vendor-d3-time-format-hD7iE2WG.js +491 -0
  163. package/dist/vendor-d3-timer-C1cUWKPz.js +67 -0
  164. package/dist/vendor-d3-transition-BbNQT7qF.js +524 -0
  165. package/dist/vendor-d3-zoom-CcKeJp9e.js +1 -0
  166. package/dist/vendor-date-fns-BKO3x1R1.js +3102 -0
  167. package/dist/vendor-dom-serializer-BbVuF1MQ.js +213 -0
  168. package/dist/vendor-domelementtype-B3sFIGaC.js +21 -0
  169. package/dist/vendor-domhandler-Kufn9M_V.js +311 -0
  170. package/dist/vendor-dompurify-M2Bspgo5.js +553 -0
  171. package/dist/vendor-domutils-DDRq_ial.js +386 -0
  172. package/dist/vendor-emotion-cache-eEZT5l-Q.js +274 -0
  173. package/dist/vendor-emotion-hash-DImMRhyK.js +22 -0
  174. package/dist/vendor-emotion-memoize-BcEUCz8q.js +9 -0
  175. package/dist/vendor-emotion-serialize-BSDW8NwU.js +123 -0
  176. package/dist/vendor-emotion-sheet-CS8ZBl9s.js +44 -0
  177. package/dist/vendor-emotion-unitless-B7u1PU6w.js +53 -0
  178. package/dist/vendor-emotion-utils-D7refZTM.js +28 -0
  179. package/dist/vendor-entities-J86Og8IU.js +364 -0
  180. package/dist/vendor-floating-ui-core-BoHdh92a.js +432 -0
  181. package/dist/vendor-floating-ui-dom-BvVXFZ4B.js +398 -0
  182. package/dist/vendor-floating-ui-utils-CidJRIm2.js +257 -0
  183. package/dist/vendor-floating-ui-vue-sCrhit51.js +121 -0
  184. package/dist/vendor-gridstack-Dkfw452e.js +3390 -0
  185. package/dist/vendor-headlessui-vue-Cn-RMs4E.js +961 -0
  186. package/dist/vendor-htmlparser2-BxKKzWLL.js +735 -0
  187. package/dist/vendor-internmap-Q5729_cS.js +35 -0
  188. package/dist/vendor-intlify-core-base-BmIo1dK4.js +1141 -0
  189. package/dist/vendor-intlify-message-compiler-D9VOavkL.js +960 -0
  190. package/dist/vendor-intlify-shared-SCAs3ybf.js +144 -0
  191. package/dist/vendor-iso-639-1-rPqx9HMT.js +786 -0
  192. package/dist/vendor-juggle-resize-observer-DiSiNbbT.js +286 -0
  193. package/dist/vendor-linkify-it-LzoUhj6C.js +199 -0
  194. package/dist/vendor-linkifyjs-dCH9UYes.js +701 -0
  195. package/dist/vendor-lodash-es-BtnfG6xF.js +4829 -0
  196. package/dist/vendor-lucide-vue-next-CPgeDcFj.js +33093 -0
  197. package/dist/vendor-markdown-it-Bs9KEWkF.js +2266 -0
  198. package/dist/vendor-markdown-it-task-lists-CHCnS7dl.js +69 -0
  199. package/dist/vendor-mdurl-DZFDNdqC.js +192 -0
  200. package/dist/vendor-microsoft-applicationinsights-analytics-js-DFu_cVaY.js +1207 -0
  201. package/dist/vendor-microsoft-applicationinsights-cfgsync-js-DRQLN2Ue.js +261 -0
  202. package/dist/vendor-microsoft-applicationinsights-channel-js-BIJDcP3D.js +1822 -0
  203. package/dist/vendor-microsoft-applicationinsights-common-CJjmnDMb.js +1921 -0
  204. package/dist/vendor-microsoft-applicationinsights-core-js-BOc_o46i.js +4276 -0
  205. package/dist/vendor-microsoft-applicationinsights-dependencies-js-DDz502id.js +1407 -0
  206. package/dist/vendor-microsoft-applicationinsights-properties-js-9aDWHwXJ.js +572 -0
  207. package/dist/vendor-microsoft-applicationinsights-shims-Dton8Vqy.js +43 -0
  208. package/dist/vendor-microsoft-applicationinsights-web-DTa5YN-h.js +487 -0
  209. package/dist/vendor-microsoft-dynamicproto-js-89GEKjvR.js +147 -0
  210. package/dist/vendor-microsoft-signalr-Bgpbb4fW.js +1761 -0
  211. package/dist/vendor-module-federation-enhanced-CV1CNdJy.js +22 -0
  212. package/dist/vendor-module-federation-error-codes-DdVwX11j.js +55 -0
  213. package/dist/vendor-module-federation-runtime-CVH_lWgu.js +91 -0
  214. package/dist/vendor-module-federation-runtime-core-D5G-s9nP.js +2202 -0
  215. package/dist/vendor-module-federation-runtime-tools-CQbtw-RJ.js +18 -0
  216. package/dist/vendor-module-federation-sdk-DM4AJRa7.js +683 -0
  217. package/dist/vendor-nevware21-ts-async-D4qa7g-U.js +261 -0
  218. package/dist/vendor-nevware21-ts-utils-DII8jruI.js +853 -0
  219. package/dist/vendor-nth-check-CGMdQf59.js +45 -0
  220. package/dist/vendor-orderedmap-B3SOk52B.js +103 -0
  221. package/dist/vendor-parse5-htmlparser2-tree-adapter-BUDJ887-.js +143 -0
  222. package/dist/vendor-parse5-zq5Hn0y9.js +5749 -0
  223. package/dist/vendor-prettier-CoRReRqw.js +5215 -0
  224. package/dist/vendor-prosemirror-commands-Bv4ChObl.js +385 -0
  225. package/dist/vendor-prosemirror-dropcursor-kF5UKNFM.js +86 -0
  226. package/dist/vendor-prosemirror-gapcursor-S3ikcYX6.js +203 -0
  227. package/dist/vendor-prosemirror-history-CQYKHz3u.js +248 -0
  228. package/dist/vendor-prosemirror-keymap-CAfQyvJ7.js +62 -0
  229. package/dist/vendor-prosemirror-markdown-rpUTSG_Q.js +663 -0
  230. package/dist/vendor-prosemirror-model-DAA3avbR.js +2730 -0
  231. package/dist/vendor-prosemirror-schema-list-BNJkECdS.js +87 -0
  232. package/dist/vendor-prosemirror-state-IeimrELV.js +821 -0
  233. package/dist/vendor-prosemirror-tables-zVUKdbdQ.js +1414 -0
  234. package/dist/vendor-prosemirror-transform-BUjWd5Tb.js +1525 -0
  235. package/dist/vendor-prosemirror-view-DFpBkGRq.js +3794 -0
  236. package/dist/vendor-punycode-js-CgGegfA_.js +133 -0
  237. package/dist/vendor-rope-sequence-BWC2FSrq.js +100 -0
  238. package/dist/vendor-semver-Dar8oU3V.js +1023 -0
  239. package/dist/vendor-striptags-BrHtQQiF.js +120 -0
  240. package/dist/vendor-stylis-ClfDrgKE.js +334 -0
  241. package/dist/vendor-swiper-1bp0oJwt.js +3387 -0
  242. package/dist/vendor-tanstack-vue-virtual-CD9yLWd7.js +1 -0
  243. package/dist/vendor-throttle-debounce-CX0imT7m.js +28 -0
  244. package/dist/vendor-tiptap-core-CDScflP1.js +3921 -0
  245. package/dist/vendor-tiptap-extension-blockquote-ChRAwuus.js +55 -0
  246. package/dist/vendor-tiptap-extension-bold-BwoVpOFS.js +74 -0
  247. package/dist/vendor-tiptap-extension-code-DOlgG3ih.js +52 -0
  248. package/dist/vendor-tiptap-extension-code-block-CMeTs87s.js +215 -0
  249. package/dist/vendor-tiptap-extension-document-DO8oly70.js +12 -0
  250. package/dist/vendor-tiptap-extension-hard-break-BgDl2sHf.js +59 -0
  251. package/dist/vendor-tiptap-extension-heading-DFuYlwHi.js +63 -0
  252. package/dist/vendor-tiptap-extension-horizontal-rule-uyfttMp9.js +56 -0
  253. package/dist/vendor-tiptap-extension-image-DPeBaTE3.js +128 -0
  254. package/dist/vendor-tiptap-extension-italic-C9-3jNxO.js +73 -0
  255. package/dist/vendor-tiptap-extension-link-B57VzStq.js +312 -0
  256. package/dist/vendor-tiptap-extension-list-spvOF7Mz.js +722 -0
  257. package/dist/vendor-tiptap-extension-paragraph-Cj7auQB7.js +44 -0
  258. package/dist/vendor-tiptap-extension-placeholder-DhwvmZ6Y.js +1 -0
  259. package/dist/vendor-tiptap-extension-strike-yj6UvnkO.js +64 -0
  260. package/dist/vendor-tiptap-extension-table-cell-CQpTPSvF.js +1 -0
  261. package/dist/vendor-tiptap-extension-table-ex1kZQ-9.js +374 -0
  262. package/dist/vendor-tiptap-extension-table-header-CQpTPSvF.js +1 -0
  263. package/dist/vendor-tiptap-extension-table-row-CQpTPSvF.js +1 -0
  264. package/dist/vendor-tiptap-extension-text-C8FG4KnI.js +13 -0
  265. package/dist/vendor-tiptap-extension-text-style-DsQDXowp.js +235 -0
  266. package/dist/vendor-tiptap-extension-underline-HB3fg6Dc.js +65 -0
  267. package/dist/vendor-tiptap-extensions-CUGwjzl5.js +296 -0
  268. package/dist/vendor-tiptap-markdown-DLzeP3KU.js +826 -0
  269. package/dist/vendor-tiptap-pm-DSHuSumV.js +1 -0
  270. package/dist/vendor-tiptap-starter-kit-C42PcJ7J.js +28 -0
  271. package/dist/vendor-tiptap-vue-3-BxWCzu9Z.js +157 -0
  272. package/dist/vendor-truncate-html-r2r8GKvW.js +145 -0
  273. package/dist/vendor-uc-micro-4lbSaZOs.js +17 -0
  274. package/dist/vendor-unovis-ts-Bue71Kwt.js +2382 -0
  275. package/dist/vendor-unovis-vue-C_K1g5KH.js +446 -0
  276. package/dist/vendor-vee-validate-i18n-zT8NxX3R.js +93 -0
  277. package/dist/vendor-vee-validate-rules-4oWUZPpG.js +316 -0
  278. package/dist/vendor-vue-currency-input-CckB4kjx.js +317 -0
  279. package/dist/vendor-vue-demi-CD9yLWd7.js +1 -0
  280. package/dist/vendor-vue-devtools-api-aVYGocXp.js +93 -0
  281. package/dist/vendor-vue-i18n-DeO9Fa9I.js +1387 -0
  282. package/dist/vendor-vue-router-R3V0tq8_.js +6 -0
  283. package/dist/vendor-vue3-application-insights-BmJCYUcp.js +69 -0
  284. package/dist/vendor-vue3-touch-events-DqysuuWh.js +169 -0
  285. package/dist/vendor-vuepic-vue-datepicker-CaZ_qpJp.js +4998 -0
  286. package/dist/vendor-vueuse-components-Be490f6P.js +542 -0
  287. package/dist/vendor-vueuse-core-BW8bO6-j.js +5135 -0
  288. package/dist/vendor-vueuse-shared-bmkWEEYZ.js +1169 -0
  289. package/dist/vendor-w3c-keyname-CLxH8j-f.js +92 -0
  290. package/dist/vendor-web-vitals-vrpLO1bu.js +207 -0
  291. package/package.json +5 -8
@@ -0,0 +1,960 @@
1
+ import { f as Se, a as re, i as z, j as ie } from "./vendor-intlify-shared-SCAs3ybf.js";
2
+ /*!
3
+ * message-compiler v11.3.0
4
+ * (c) 2026 kazuya kawaguchi
5
+ * Released under the MIT License.
6
+ */
7
+ function ke(r, n, c) {
8
+ return { line: r, column: n, offset: c };
9
+ }
10
+ function q(r, n, c) {
11
+ return { start: r, end: n };
12
+ }
13
+ const d = {
14
+ // tokenizer error codes
15
+ EXPECTED_TOKEN: 1,
16
+ INVALID_TOKEN_IN_PLACEHOLDER: 2,
17
+ UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER: 3,
18
+ UNKNOWN_ESCAPE_SEQUENCE: 4,
19
+ INVALID_UNICODE_ESCAPE_SEQUENCE: 5,
20
+ UNBALANCED_CLOSING_BRACE: 6,
21
+ UNTERMINATED_CLOSING_BRACE: 7,
22
+ EMPTY_PLACEHOLDER: 8,
23
+ NOT_ALLOW_NEST_PLACEHOLDER: 9,
24
+ INVALID_LINKED_FORMAT: 10,
25
+ // parser error codes
26
+ MUST_HAVE_MESSAGES_IN_PLURAL: 11,
27
+ UNEXPECTED_EMPTY_LINKED_MODIFIER: 12,
28
+ UNEXPECTED_EMPTY_LINKED_KEY: 13,
29
+ UNEXPECTED_LEXICAL_ANALYSIS: 14,
30
+ // generator error codes
31
+ UNHANDLED_CODEGEN_NODE_TYPE: 15,
32
+ // minifier error codes
33
+ UNHANDLED_MINIFIER_NODE_TYPE: 16
34
+ }, Ze = 17, Pe = {
35
+ // tokenizer error messages
36
+ [d.EXPECTED_TOKEN]: "Expected token: '{0}'",
37
+ [d.INVALID_TOKEN_IN_PLACEHOLDER]: "Invalid token in placeholder: '{0}'",
38
+ [d.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER]: "Unterminated single quote in placeholder",
39
+ [d.UNKNOWN_ESCAPE_SEQUENCE]: "Unknown escape sequence: \\{0}",
40
+ [d.INVALID_UNICODE_ESCAPE_SEQUENCE]: "Invalid unicode escape sequence: {0}",
41
+ [d.UNBALANCED_CLOSING_BRACE]: "Unbalanced closing brace",
42
+ [d.UNTERMINATED_CLOSING_BRACE]: "Unterminated closing brace",
43
+ [d.EMPTY_PLACEHOLDER]: "Empty placeholder",
44
+ [d.NOT_ALLOW_NEST_PLACEHOLDER]: "Not allowed nest placeholder",
45
+ [d.INVALID_LINKED_FORMAT]: "Invalid linked format",
46
+ // parser error messages
47
+ [d.MUST_HAVE_MESSAGES_IN_PLURAL]: "Plural must have messages",
48
+ [d.UNEXPECTED_EMPTY_LINKED_MODIFIER]: "Unexpected empty linked modifier",
49
+ [d.UNEXPECTED_EMPTY_LINKED_KEY]: "Unexpected empty linked key",
50
+ [d.UNEXPECTED_LEXICAL_ANALYSIS]: "Unexpected lexical analysis in token: '{0}'",
51
+ // generator error messages
52
+ [d.UNHANDLED_CODEGEN_NODE_TYPE]: "unhandled codegen node type: '{0}'",
53
+ // minimizer error messages
54
+ [d.UNHANDLED_MINIFIER_NODE_TYPE]: "unhandled mimifier node type: '{0}'"
55
+ };
56
+ function G(r, n, c = {}) {
57
+ const { domain: o, messages: _, args: u } = c, h = process.env.NODE_ENV !== "production" ? Se((_ || Pe)[r] || "", ...u || []) : r, C = new SyntaxError(String(h));
58
+ return C.code = r, n && (C.location = n), C.domain = o, C;
59
+ }
60
+ function ze(r) {
61
+ throw r;
62
+ }
63
+ const De = /<\/?[\w\s="/.':;#-\/]+>/, et = (r) => De.test(r), M = " ", Oe = "\r", O = `
64
+ `, me = "\u2028", ye = "\u2029";
65
+ function be(r) {
66
+ const n = r;
67
+ let c = 0, o = 1, _ = 1, u = 0;
68
+ const h = (p) => n[p] === Oe && n[p + 1] === O, C = (p) => n[p] === O, P = (p) => n[p] === ye, m = (p) => n[p] === me, b = (p) => h(p) || C(p) || P(p) || m(p), S = () => c, T = () => o, R = () => _, v = () => u, A = (p) => h(p) || P(p) || m(p) ? O : n[p], I = () => A(c), s = () => A(c + u);
69
+ function f() {
70
+ return u = 0, b(c) && (o++, _ = 0), h(c) && c++, c++, _++, n[c];
71
+ }
72
+ function E() {
73
+ return h(c + u) && u++, u++, n[c + u];
74
+ }
75
+ function l() {
76
+ c = 0, o = 1, _ = 1, u = 0;
77
+ }
78
+ function L(p = 0) {
79
+ u = p;
80
+ }
81
+ function N() {
82
+ const p = c + u;
83
+ for (; p !== c; )
84
+ f();
85
+ u = 0;
86
+ }
87
+ return {
88
+ index: S,
89
+ line: T,
90
+ column: R,
91
+ peekOffset: v,
92
+ charAt: A,
93
+ currentChar: I,
94
+ currentPeek: s,
95
+ next: f,
96
+ peek: E,
97
+ reset: l,
98
+ resetPeek: L,
99
+ skipToPeek: N
100
+ };
101
+ }
102
+ const w = void 0, Re = ".", ee = "'", Ue = "tokenizer";
103
+ function ve(r, n = {}) {
104
+ const c = n.location !== !1, o = be(r), _ = () => o.index(), u = () => ke(o.line(), o.column(), o.index()), h = u(), C = _(), P = {
105
+ currentType: 13,
106
+ offset: C,
107
+ startLoc: h,
108
+ endLoc: h,
109
+ lastType: 13,
110
+ lastOffset: C,
111
+ lastStartLoc: h,
112
+ lastEndLoc: h,
113
+ braceNest: 0,
114
+ inLinked: !1,
115
+ text: ""
116
+ }, m = () => P, { onError: b } = n;
117
+ function S(e, t, i, ...a) {
118
+ const k = m();
119
+ if (t.column += i, t.offset += i, b) {
120
+ const D = c ? q(k.startLoc, t) : null, U = G(e, D, {
121
+ domain: Ue,
122
+ args: a
123
+ });
124
+ b(U);
125
+ }
126
+ }
127
+ function T(e, t, i) {
128
+ e.endLoc = u(), e.currentType = t;
129
+ const a = { type: t };
130
+ return c && (a.loc = q(e.startLoc, e.endLoc)), i != null && (a.value = i), a;
131
+ }
132
+ const R = (e) => T(
133
+ e,
134
+ 13
135
+ /* TokenTypes.EOF */
136
+ );
137
+ function v(e, t) {
138
+ return e.currentChar() === t ? (e.next(), t) : (S(d.EXPECTED_TOKEN, u(), 0, t), "");
139
+ }
140
+ function A(e) {
141
+ let t = "";
142
+ for (; e.currentPeek() === M || e.currentPeek() === O; )
143
+ t += e.currentPeek(), e.peek();
144
+ return t;
145
+ }
146
+ function I(e) {
147
+ const t = A(e);
148
+ return e.skipToPeek(), t;
149
+ }
150
+ function s(e) {
151
+ if (e === w)
152
+ return !1;
153
+ const t = e.charCodeAt(0);
154
+ return t >= 97 && t <= 122 || // a-z
155
+ t >= 65 && t <= 90 || // A-Z
156
+ t === 95;
157
+ }
158
+ function f(e) {
159
+ if (e === w)
160
+ return !1;
161
+ const t = e.charCodeAt(0);
162
+ return t >= 48 && t <= 57;
163
+ }
164
+ function E(e, t) {
165
+ const { currentType: i } = t;
166
+ if (i !== 2)
167
+ return !1;
168
+ A(e);
169
+ const a = s(e.currentPeek());
170
+ return e.resetPeek(), a;
171
+ }
172
+ function l(e, t) {
173
+ const { currentType: i } = t;
174
+ if (i !== 2)
175
+ return !1;
176
+ A(e);
177
+ const a = e.currentPeek() === "-" ? e.peek() : e.currentPeek(), k = f(a);
178
+ return e.resetPeek(), k;
179
+ }
180
+ function L(e, t) {
181
+ const { currentType: i } = t;
182
+ if (i !== 2)
183
+ return !1;
184
+ A(e);
185
+ const a = e.currentPeek() === ee;
186
+ return e.resetPeek(), a;
187
+ }
188
+ function N(e, t) {
189
+ const { currentType: i } = t;
190
+ if (i !== 7)
191
+ return !1;
192
+ A(e);
193
+ const a = e.currentPeek() === ".";
194
+ return e.resetPeek(), a;
195
+ }
196
+ function p(e, t) {
197
+ const { currentType: i } = t;
198
+ if (i !== 8)
199
+ return !1;
200
+ A(e);
201
+ const a = s(e.currentPeek());
202
+ return e.resetPeek(), a;
203
+ }
204
+ function g(e, t) {
205
+ const { currentType: i } = t;
206
+ if (!(i === 7 || i === 11))
207
+ return !1;
208
+ A(e);
209
+ const a = e.currentPeek() === ":";
210
+ return e.resetPeek(), a;
211
+ }
212
+ function y(e, t) {
213
+ const { currentType: i } = t;
214
+ if (i !== 9)
215
+ return !1;
216
+ const a = () => {
217
+ const D = e.currentPeek();
218
+ return D === "{" ? s(e.peek()) : D === "@" || D === "|" || D === ":" || D === "." || D === M || !D ? !1 : D === O ? (e.peek(), a()) : F(e, !1);
219
+ }, k = a();
220
+ return e.resetPeek(), k;
221
+ }
222
+ function x(e) {
223
+ A(e);
224
+ const t = e.currentPeek() === "|";
225
+ return e.resetPeek(), t;
226
+ }
227
+ function F(e, t = !0) {
228
+ const i = (k = !1, D = "") => {
229
+ const U = e.currentPeek();
230
+ return U === "{" || U === "@" || !U ? k : U === "|" ? !(D === M || D === O) : U === M ? (e.peek(), i(!0, M)) : U === O ? (e.peek(), i(!0, O)) : !0;
231
+ }, a = i();
232
+ return t && e.resetPeek(), a;
233
+ }
234
+ function H(e, t) {
235
+ const i = e.currentChar();
236
+ return i === w ? w : t(i) ? (e.next(), i) : null;
237
+ }
238
+ function se(e) {
239
+ const t = e.charCodeAt(0);
240
+ return t >= 97 && t <= 122 || // a-z
241
+ t >= 65 && t <= 90 || // A-Z
242
+ t >= 48 && t <= 57 || // 0-9
243
+ t === 95 || // _
244
+ t === 36;
245
+ }
246
+ function ce(e) {
247
+ return H(e, se);
248
+ }
249
+ function ue(e) {
250
+ const t = e.charCodeAt(0);
251
+ return t >= 97 && t <= 122 || // a-z
252
+ t >= 65 && t <= 90 || // A-Z
253
+ t >= 48 && t <= 57 || // 0-9
254
+ t === 95 || // _
255
+ t === 36 || // $
256
+ t === 45;
257
+ }
258
+ function ae(e) {
259
+ return H(e, ue);
260
+ }
261
+ function oe(e) {
262
+ const t = e.charCodeAt(0);
263
+ return t >= 48 && t <= 57;
264
+ }
265
+ function le(e) {
266
+ return H(e, oe);
267
+ }
268
+ function fe(e) {
269
+ const t = e.charCodeAt(0);
270
+ return t >= 48 && t <= 57 || // 0-9
271
+ t >= 65 && t <= 70 || // A-F
272
+ t >= 97 && t <= 102;
273
+ }
274
+ function Ee(e) {
275
+ return H(e, fe);
276
+ }
277
+ function J(e) {
278
+ let t = "", i = "";
279
+ for (; t = le(e); )
280
+ i += t;
281
+ return i;
282
+ }
283
+ function de(e) {
284
+ let t = "";
285
+ for (; ; ) {
286
+ const i = e.currentChar();
287
+ if (i === "\\") {
288
+ const a = e.peek();
289
+ a === "{" || a === "}" || a === "@" || a === "|" || a === "\\" ? (t += i + a, e.next(), e.next()) : (e.resetPeek(), t += i, e.next());
290
+ } else {
291
+ if (i === "{" || i === "}" || i === "@" || i === "|" || !i)
292
+ break;
293
+ if (i === M || i === O)
294
+ if (F(e))
295
+ t += i, e.next();
296
+ else {
297
+ if (x(e))
298
+ break;
299
+ t += i, e.next();
300
+ }
301
+ else
302
+ t += i, e.next();
303
+ }
304
+ }
305
+ return t;
306
+ }
307
+ function Le(e) {
308
+ I(e);
309
+ let t = "", i = "";
310
+ for (; t = ae(e); )
311
+ i += t;
312
+ const a = e.currentChar();
313
+ if (a && a !== "}" && a !== w && a !== M && a !== O && a !== " ") {
314
+ const k = Z(e);
315
+ return S(d.INVALID_TOKEN_IN_PLACEHOLDER, u(), 0, i + k), i + k;
316
+ }
317
+ return e.currentChar() === w && S(d.UNTERMINATED_CLOSING_BRACE, u(), 0), i;
318
+ }
319
+ function Ne(e) {
320
+ I(e);
321
+ let t = "";
322
+ return e.currentChar() === "-" ? (e.next(), t += `-${J(e)}`) : t += J(e), e.currentChar() === w && S(d.UNTERMINATED_CLOSING_BRACE, u(), 0), t;
323
+ }
324
+ function _e(e) {
325
+ return e !== ee && e !== O;
326
+ }
327
+ function pe(e) {
328
+ I(e), v(e, "'");
329
+ let t = "", i = "";
330
+ for (; t = H(e, _e); )
331
+ t === "\\" ? i += Ce(e) : i += t;
332
+ const a = e.currentChar();
333
+ return a === O || a === w ? (S(d.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER, u(), 0), a === O && (e.next(), v(e, "'")), i) : (v(e, "'"), i);
334
+ }
335
+ function Ce(e) {
336
+ const t = e.currentChar();
337
+ switch (t) {
338
+ case "\\":
339
+ case "'":
340
+ return e.next(), `\\${t}`;
341
+ case "u":
342
+ return j(e, t, 4);
343
+ case "U":
344
+ return j(e, t, 6);
345
+ default:
346
+ return S(d.UNKNOWN_ESCAPE_SEQUENCE, u(), 0, t), "";
347
+ }
348
+ }
349
+ function j(e, t, i) {
350
+ v(e, t);
351
+ let a = "";
352
+ for (let k = 0; k < i; k++) {
353
+ const D = Ee(e);
354
+ if (!D) {
355
+ S(d.INVALID_UNICODE_ESCAPE_SEQUENCE, u(), 0, `\\${t}${a}${e.currentChar()}`);
356
+ break;
357
+ }
358
+ a += D;
359
+ }
360
+ return `\\${t}${a}`;
361
+ }
362
+ function Ie(e) {
363
+ return e !== "{" && e !== "}" && e !== M && e !== O;
364
+ }
365
+ function Z(e) {
366
+ I(e);
367
+ let t = "", i = "";
368
+ for (; t = H(e, Ie); )
369
+ i += t;
370
+ return i;
371
+ }
372
+ function he(e) {
373
+ let t = "", i = "";
374
+ for (; t = ce(e); )
375
+ i += t;
376
+ return i;
377
+ }
378
+ function Te(e) {
379
+ const t = (i) => {
380
+ const a = e.currentChar();
381
+ return a === "{" || a === "@" || a === "|" || a === "(" || a === ")" || !a || a === M ? i : (i += a, e.next(), t(i));
382
+ };
383
+ return t("");
384
+ }
385
+ function V(e) {
386
+ I(e);
387
+ const t = v(
388
+ e,
389
+ "|"
390
+ /* TokenChars.Pipe */
391
+ );
392
+ return I(e), t;
393
+ }
394
+ function B(e, t) {
395
+ let i = null;
396
+ switch (e.currentChar()) {
397
+ case "{":
398
+ return t.braceNest >= 1 && S(d.NOT_ALLOW_NEST_PLACEHOLDER, u(), 0), e.next(), i = T(
399
+ t,
400
+ 2,
401
+ "{"
402
+ /* TokenChars.BraceLeft */
403
+ ), I(e), t.braceNest++, i;
404
+ case "}":
405
+ return t.braceNest > 0 && t.currentType === 2 && S(d.EMPTY_PLACEHOLDER, u(), 0), e.next(), i = T(
406
+ t,
407
+ 3,
408
+ "}"
409
+ /* TokenChars.BraceRight */
410
+ ), t.braceNest--, t.braceNest > 0 && I(e), t.inLinked && t.braceNest === 0 && (t.inLinked = !1), i;
411
+ case "@":
412
+ return t.braceNest > 0 && S(d.UNTERMINATED_CLOSING_BRACE, u(), 0), i = $(e, t) || R(t), t.braceNest = 0, i;
413
+ default: {
414
+ let k = !0, D = !0, U = !0;
415
+ if (x(e))
416
+ return t.braceNest > 0 && S(d.UNTERMINATED_CLOSING_BRACE, u(), 0), i = T(t, 1, V(e)), t.braceNest = 0, t.inLinked = !1, i;
417
+ if (t.braceNest > 0 && (t.currentType === 4 || t.currentType === 5 || t.currentType === 6))
418
+ return S(d.UNTERMINATED_CLOSING_BRACE, u(), 0), t.braceNest = 0, Q(e, t);
419
+ if (k = E(e, t))
420
+ return i = T(t, 4, Le(e)), I(e), i;
421
+ if (D = l(e, t))
422
+ return i = T(t, 5, Ne(e)), I(e), i;
423
+ if (U = L(e, t))
424
+ return i = T(t, 6, pe(e)), I(e), i;
425
+ if (!k && !D && !U)
426
+ return i = T(t, 12, Z(e)), S(d.INVALID_TOKEN_IN_PLACEHOLDER, u(), 0, i.value), I(e), i;
427
+ break;
428
+ }
429
+ }
430
+ return i;
431
+ }
432
+ function $(e, t) {
433
+ const { currentType: i } = t;
434
+ let a = null;
435
+ const k = e.currentChar();
436
+ switch ((i === 7 || i === 8 || i === 11 || i === 9) && (k === O || k === M) && S(d.INVALID_LINKED_FORMAT, u(), 0), k) {
437
+ case "@":
438
+ return e.next(), a = T(
439
+ t,
440
+ 7,
441
+ "@"
442
+ /* TokenChars.LinkedAlias */
443
+ ), t.inLinked = !0, a;
444
+ case ".":
445
+ return I(e), e.next(), T(
446
+ t,
447
+ 8,
448
+ "."
449
+ /* TokenChars.LinkedDot */
450
+ );
451
+ case ":":
452
+ return I(e), e.next(), T(
453
+ t,
454
+ 9,
455
+ ":"
456
+ /* TokenChars.LinkedDelimiter */
457
+ );
458
+ default:
459
+ return x(e) ? (a = T(t, 1, V(e)), t.braceNest = 0, t.inLinked = !1, a) : N(e, t) || g(e, t) ? (I(e), $(e, t)) : p(e, t) ? (I(e), T(t, 11, he(e))) : y(e, t) ? (I(e), k === "{" ? B(e, t) || a : T(t, 10, Te(e))) : (i === 7 && S(d.INVALID_LINKED_FORMAT, u(), 0), t.braceNest = 0, t.inLinked = !1, Q(e, t));
460
+ }
461
+ }
462
+ function Q(e, t) {
463
+ let i = {
464
+ type: 13
465
+ /* TokenTypes.EOF */
466
+ };
467
+ if (t.braceNest > 0)
468
+ return B(e, t) || R(t);
469
+ if (t.inLinked)
470
+ return $(e, t) || R(t);
471
+ switch (e.currentChar()) {
472
+ case "{":
473
+ return B(e, t) || R(t);
474
+ case "}":
475
+ return S(d.UNBALANCED_CLOSING_BRACE, u(), 0), e.next(), T(
476
+ t,
477
+ 3,
478
+ "}"
479
+ /* TokenChars.BraceRight */
480
+ );
481
+ case "@":
482
+ return $(e, t) || R(t);
483
+ default: {
484
+ if (x(e))
485
+ return i = T(t, 1, V(e)), t.braceNest = 0, t.inLinked = !1, i;
486
+ if (F(e))
487
+ return T(t, 0, de(e));
488
+ break;
489
+ }
490
+ }
491
+ return i;
492
+ }
493
+ function Ae() {
494
+ const { currentType: e, offset: t, startLoc: i, endLoc: a } = P;
495
+ return P.lastType = e, P.lastOffset = t, P.lastStartLoc = i, P.lastEndLoc = a, P.offset = _(), P.startLoc = u(), o.currentChar() === w ? T(
496
+ P,
497
+ 13
498
+ /* TokenTypes.EOF */
499
+ ) : Q(o, P);
500
+ }
501
+ return {
502
+ nextToken: Ae,
503
+ currentOffset: _,
504
+ currentPosition: u,
505
+ context: m
506
+ };
507
+ }
508
+ const Me = "parser", Xe = /(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g, we = /\\([\\@{}|])/g;
509
+ function ge(r, n) {
510
+ return n;
511
+ }
512
+ function xe(r, n, c) {
513
+ switch (r) {
514
+ case "\\\\":
515
+ return "\\";
516
+ // eslint-disable-next-line no-useless-escape
517
+ case "\\'":
518
+ return "'";
519
+ default: {
520
+ const o = parseInt(n || c, 16);
521
+ return o <= 55295 || o >= 57344 ? String.fromCodePoint(o) : "�";
522
+ }
523
+ }
524
+ }
525
+ function He(r = {}) {
526
+ const n = r.location !== !1, { onError: c } = r;
527
+ function o(s, f, E, l, ...L) {
528
+ const N = s.currentPosition();
529
+ if (N.offset += l, N.column += l, c) {
530
+ const p = n ? q(E, N) : null, g = G(f, p, {
531
+ domain: Me,
532
+ args: L
533
+ });
534
+ c(g);
535
+ }
536
+ }
537
+ function _(s, f, E) {
538
+ const l = { type: s };
539
+ return n && (l.start = f, l.end = f, l.loc = { start: E, end: E }), l;
540
+ }
541
+ function u(s, f, E, l) {
542
+ n && (s.end = f, s.loc && (s.loc.end = E));
543
+ }
544
+ function h(s, f) {
545
+ const E = s.context(), l = _(3, E.offset, E.startLoc);
546
+ return l.value = f.replace(we, ge), u(l, s.currentOffset(), s.currentPosition()), l;
547
+ }
548
+ function C(s, f) {
549
+ const E = s.context(), { lastOffset: l, lastStartLoc: L } = E, N = _(5, l, L);
550
+ return N.index = parseInt(f, 10), s.nextToken(), u(N, s.currentOffset(), s.currentPosition()), N;
551
+ }
552
+ function P(s, f) {
553
+ const E = s.context(), { lastOffset: l, lastStartLoc: L } = E, N = _(4, l, L);
554
+ return N.key = f, s.nextToken(), u(N, s.currentOffset(), s.currentPosition()), N;
555
+ }
556
+ function m(s, f) {
557
+ const E = s.context(), { lastOffset: l, lastStartLoc: L } = E, N = _(9, l, L);
558
+ return N.value = f.replace(Xe, xe), s.nextToken(), u(N, s.currentOffset(), s.currentPosition()), N;
559
+ }
560
+ function b(s) {
561
+ const f = s.nextToken(), E = s.context(), { lastOffset: l, lastStartLoc: L } = E, N = _(8, l, L);
562
+ return f.type !== 11 ? (o(s, d.UNEXPECTED_EMPTY_LINKED_MODIFIER, E.lastStartLoc, 0), N.value = "", u(N, l, L), {
563
+ nextConsumeToken: f,
564
+ node: N
565
+ }) : (f.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, X(f)), N.value = f.value || "", u(N, s.currentOffset(), s.currentPosition()), {
566
+ node: N
567
+ });
568
+ }
569
+ function S(s, f) {
570
+ const E = s.context(), l = _(7, E.offset, E.startLoc);
571
+ return l.value = f, u(l, s.currentOffset(), s.currentPosition()), l;
572
+ }
573
+ function T(s) {
574
+ const f = s.context(), E = _(6, f.offset, f.startLoc);
575
+ let l = s.nextToken();
576
+ if (l.type === 8) {
577
+ const L = b(s);
578
+ E.modifier = L.node, l = L.nextConsumeToken || s.nextToken();
579
+ }
580
+ switch (l.type !== 9 && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(l)), l = s.nextToken(), l.type === 2 && (l = s.nextToken()), l.type) {
581
+ case 10:
582
+ l.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(l)), E.key = S(s, l.value || "");
583
+ break;
584
+ case 4:
585
+ l.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(l)), E.key = P(s, l.value || "");
586
+ break;
587
+ case 5:
588
+ l.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(l)), E.key = C(s, l.value || "");
589
+ break;
590
+ case 6:
591
+ l.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(l)), E.key = m(s, l.value || "");
592
+ break;
593
+ default: {
594
+ o(s, d.UNEXPECTED_EMPTY_LINKED_KEY, f.lastStartLoc, 0);
595
+ const L = s.context(), N = _(7, L.offset, L.startLoc);
596
+ return N.value = "", u(N, L.offset, L.startLoc), E.key = N, u(E, L.offset, L.startLoc), {
597
+ nextConsumeToken: l,
598
+ node: E
599
+ };
600
+ }
601
+ }
602
+ return u(E, s.currentOffset(), s.currentPosition()), {
603
+ node: E
604
+ };
605
+ }
606
+ function R(s) {
607
+ const f = s.context(), E = f.currentType === 1 ? s.currentOffset() : f.offset, l = f.currentType === 1 ? f.endLoc : f.startLoc, L = _(2, E, l);
608
+ L.items = [];
609
+ let N = null;
610
+ do {
611
+ const y = N || s.nextToken();
612
+ switch (N = null, y.type) {
613
+ case 0:
614
+ y.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(y)), L.items.push(h(s, y.value || ""));
615
+ break;
616
+ case 5:
617
+ y.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(y)), L.items.push(C(s, y.value || ""));
618
+ break;
619
+ case 4:
620
+ y.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(y)), L.items.push(P(s, y.value || ""));
621
+ break;
622
+ case 6:
623
+ y.value == null && o(s, d.UNEXPECTED_LEXICAL_ANALYSIS, f.lastStartLoc, 0, X(y)), L.items.push(m(s, y.value || ""));
624
+ break;
625
+ case 7: {
626
+ const x = T(s);
627
+ L.items.push(x.node), N = x.nextConsumeToken || null;
628
+ break;
629
+ }
630
+ }
631
+ } while (f.currentType !== 13 && f.currentType !== 1);
632
+ const p = f.currentType === 1 ? f.lastOffset : s.currentOffset(), g = f.currentType === 1 ? f.lastEndLoc : s.currentPosition();
633
+ return u(L, p, g), L;
634
+ }
635
+ function v(s, f, E, l) {
636
+ const L = s.context();
637
+ let N = l.items.length === 0;
638
+ const p = _(1, f, E);
639
+ p.cases = [], p.cases.push(l);
640
+ do {
641
+ const g = R(s);
642
+ N || (N = g.items.length === 0), p.cases.push(g);
643
+ } while (L.currentType !== 13);
644
+ return N && o(s, d.MUST_HAVE_MESSAGES_IN_PLURAL, E, 0), u(p, s.currentOffset(), s.currentPosition()), p;
645
+ }
646
+ function A(s) {
647
+ const f = s.context(), { offset: E, startLoc: l } = f, L = R(s);
648
+ return f.currentType === 13 ? L : v(s, E, l, L);
649
+ }
650
+ function I(s) {
651
+ const f = ve(s, re({}, r)), E = f.context(), l = _(0, E.offset, E.startLoc);
652
+ return n && l.loc && (l.loc.source = s), l.body = A(f), r.onCacheKey && (l.cacheKey = r.onCacheKey(s)), E.currentType !== 13 && o(f, d.UNEXPECTED_LEXICAL_ANALYSIS, E.lastStartLoc, 0, s[E.offset] || ""), u(l, f.currentOffset(), f.currentPosition()), l;
653
+ }
654
+ return { parse: I };
655
+ }
656
+ function X(r) {
657
+ if (r.type === 13)
658
+ return "EOF";
659
+ const n = (r.value || "").replace(/\r?\n/gu, "\\n");
660
+ return n.length > 10 ? n.slice(0, 9) + "…" : n;
661
+ }
662
+ function Ye(r, n = {}) {
663
+ const c = {
664
+ ast: r,
665
+ helpers: /* @__PURE__ */ new Set()
666
+ };
667
+ return { context: () => c, helper: (u) => (c.helpers.add(u), u) };
668
+ }
669
+ function te(r, n) {
670
+ for (let c = 0; c < r.length; c++)
671
+ W(r[c], n);
672
+ }
673
+ function W(r, n) {
674
+ switch (r.type) {
675
+ case 1:
676
+ te(r.cases, n), n.helper(
677
+ "plural"
678
+ /* HelperNameMap.PLURAL */
679
+ );
680
+ break;
681
+ case 2:
682
+ te(r.items, n);
683
+ break;
684
+ case 6: {
685
+ W(r.key, n), n.helper(
686
+ "linked"
687
+ /* HelperNameMap.LINKED */
688
+ ), n.helper(
689
+ "type"
690
+ /* HelperNameMap.TYPE */
691
+ );
692
+ break;
693
+ }
694
+ case 5:
695
+ n.helper(
696
+ "interpolate"
697
+ /* HelperNameMap.INTERPOLATE */
698
+ ), n.helper(
699
+ "list"
700
+ /* HelperNameMap.LIST */
701
+ );
702
+ break;
703
+ case 4:
704
+ n.helper(
705
+ "interpolate"
706
+ /* HelperNameMap.INTERPOLATE */
707
+ ), n.helper(
708
+ "named"
709
+ /* HelperNameMap.NAMED */
710
+ );
711
+ break;
712
+ }
713
+ }
714
+ function Ke(r, n = {}) {
715
+ const c = Ye(r);
716
+ c.helper(
717
+ "normalize"
718
+ /* HelperNameMap.NORMALIZE */
719
+ ), r.body && W(r.body, c);
720
+ const o = c.context();
721
+ r.helpers = Array.from(o.helpers);
722
+ }
723
+ function $e(r) {
724
+ const n = r.body;
725
+ return n.type === 2 ? ne(n) : n.cases.forEach((c) => ne(c)), r;
726
+ }
727
+ function ne(r) {
728
+ if (r.items.length === 1) {
729
+ const n = r.items[0];
730
+ (n.type === 3 || n.type === 9) && (r.static = n.value, delete n.value);
731
+ } else {
732
+ const n = [];
733
+ for (let c = 0; c < r.items.length; c++) {
734
+ const o = r.items[c];
735
+ if (!(o.type === 3 || o.type === 9) || o.value == null)
736
+ break;
737
+ n.push(o.value);
738
+ }
739
+ if (n.length === r.items.length) {
740
+ r.static = ie(n);
741
+ for (let c = 0; c < r.items.length; c++) {
742
+ const o = r.items[c];
743
+ (o.type === 3 || o.type === 9) && delete o.value;
744
+ }
745
+ }
746
+ }
747
+ }
748
+ const Ge = "minifier";
749
+ function Y(r) {
750
+ switch (r.t = r.type, r.type) {
751
+ case 0: {
752
+ const n = r;
753
+ Y(n.body), n.b = n.body, delete n.body;
754
+ break;
755
+ }
756
+ case 1: {
757
+ const n = r, c = n.cases;
758
+ for (let o = 0; o < c.length; o++)
759
+ Y(c[o]);
760
+ n.c = c, delete n.cases;
761
+ break;
762
+ }
763
+ case 2: {
764
+ const n = r, c = n.items;
765
+ for (let o = 0; o < c.length; o++)
766
+ Y(c[o]);
767
+ n.i = c, delete n.items, n.static && (n.s = n.static, delete n.static);
768
+ break;
769
+ }
770
+ case 3:
771
+ case 9:
772
+ case 8:
773
+ case 7: {
774
+ const n = r;
775
+ n.value && (n.v = n.value, delete n.value);
776
+ break;
777
+ }
778
+ case 6: {
779
+ const n = r;
780
+ Y(n.key), n.k = n.key, delete n.key, n.modifier && (Y(n.modifier), n.m = n.modifier, delete n.modifier);
781
+ break;
782
+ }
783
+ case 5: {
784
+ const n = r;
785
+ n.i = n.index, delete n.index;
786
+ break;
787
+ }
788
+ case 4: {
789
+ const n = r;
790
+ n.k = n.key, delete n.key;
791
+ break;
792
+ }
793
+ default:
794
+ if (process.env.NODE_ENV !== "production")
795
+ throw G(d.UNHANDLED_MINIFIER_NODE_TYPE, null, {
796
+ domain: Ge,
797
+ args: [r.type]
798
+ });
799
+ }
800
+ delete r.type;
801
+ }
802
+ const Fe = "parser";
803
+ function Ve(r, n) {
804
+ const { filename: c, breakLineCode: o, needIndent: _ } = n, u = n.location !== !1, h = {
805
+ filename: c,
806
+ code: "",
807
+ column: 1,
808
+ line: 1,
809
+ offset: 0,
810
+ map: void 0,
811
+ breakLineCode: o,
812
+ needIndent: _,
813
+ indentLevel: 0
814
+ };
815
+ u && r.loc && (h.source = r.loc.source);
816
+ const C = () => h;
817
+ function P(A, I) {
818
+ h.code += A;
819
+ }
820
+ function m(A, I = !0) {
821
+ const s = I ? o : "";
822
+ P(_ ? s + " ".repeat(A) : s);
823
+ }
824
+ function b(A = !0) {
825
+ const I = ++h.indentLevel;
826
+ A && m(I);
827
+ }
828
+ function S(A = !0) {
829
+ const I = --h.indentLevel;
830
+ A && m(I);
831
+ }
832
+ function T() {
833
+ m(h.indentLevel);
834
+ }
835
+ return {
836
+ context: C,
837
+ push: P,
838
+ indent: b,
839
+ deindent: S,
840
+ newline: T,
841
+ helper: (A) => `_${A}`,
842
+ needIndent: () => h.needIndent
843
+ };
844
+ }
845
+ function Be(r, n) {
846
+ const { helper: c } = r;
847
+ r.push(`${c(
848
+ "linked"
849
+ /* HelperNameMap.LINKED */
850
+ )}(`), K(r, n.key), n.modifier ? (r.push(", "), K(r, n.modifier), r.push(", _type")) : r.push(", undefined, _type"), r.push(")");
851
+ }
852
+ function Qe(r, n) {
853
+ const { helper: c, needIndent: o } = r;
854
+ r.push(`${c(
855
+ "normalize"
856
+ /* HelperNameMap.NORMALIZE */
857
+ )}([`), r.indent(o());
858
+ const _ = n.items.length;
859
+ for (let u = 0; u < _ && (K(r, n.items[u]), u !== _ - 1); u++)
860
+ r.push(", ");
861
+ r.deindent(o()), r.push("])");
862
+ }
863
+ function qe(r, n) {
864
+ const { helper: c, needIndent: o } = r;
865
+ if (n.cases.length > 1) {
866
+ r.push(`${c(
867
+ "plural"
868
+ /* HelperNameMap.PLURAL */
869
+ )}([`), r.indent(o());
870
+ const _ = n.cases.length;
871
+ for (let u = 0; u < _ && (K(r, n.cases[u]), u !== _ - 1); u++)
872
+ r.push(", ");
873
+ r.deindent(o()), r.push("])");
874
+ }
875
+ }
876
+ function We(r, n) {
877
+ n.body ? K(r, n.body) : r.push("null");
878
+ }
879
+ function K(r, n) {
880
+ const { helper: c } = r;
881
+ switch (n.type) {
882
+ case 0:
883
+ We(r, n);
884
+ break;
885
+ case 1:
886
+ qe(r, n);
887
+ break;
888
+ case 2:
889
+ Qe(r, n);
890
+ break;
891
+ case 6:
892
+ Be(r, n);
893
+ break;
894
+ case 8:
895
+ r.push(JSON.stringify(n.value), n);
896
+ break;
897
+ case 7:
898
+ r.push(JSON.stringify(n.value), n);
899
+ break;
900
+ case 5:
901
+ r.push(`${c(
902
+ "interpolate"
903
+ /* HelperNameMap.INTERPOLATE */
904
+ )}(${c(
905
+ "list"
906
+ /* HelperNameMap.LIST */
907
+ )}(${n.index}))`, n);
908
+ break;
909
+ case 4:
910
+ r.push(`${c(
911
+ "interpolate"
912
+ /* HelperNameMap.INTERPOLATE */
913
+ )}(${c(
914
+ "named"
915
+ /* HelperNameMap.NAMED */
916
+ )}(${JSON.stringify(n.key)}))`, n);
917
+ break;
918
+ case 9:
919
+ r.push(JSON.stringify(n.value), n);
920
+ break;
921
+ case 3:
922
+ r.push(JSON.stringify(n.value), n);
923
+ break;
924
+ default:
925
+ if (process.env.NODE_ENV !== "production")
926
+ throw G(d.UNHANDLED_CODEGEN_NODE_TYPE, null, {
927
+ domain: Fe,
928
+ args: [n.type]
929
+ });
930
+ }
931
+ }
932
+ const Je = (r, n = {}) => {
933
+ const c = z(n.mode) ? n.mode : "normal", o = z(n.filename) ? n.filename : "message.intl";
934
+ n.sourceMap;
935
+ const _ = n.breakLineCode != null ? n.breakLineCode : c === "arrow" ? ";" : `
936
+ `, u = n.needIndent ? n.needIndent : c !== "arrow", h = r.helpers || [], C = Ve(r, {
937
+ filename: o,
938
+ breakLineCode: _,
939
+ needIndent: u
940
+ });
941
+ C.push(c === "normal" ? "function __msg__ (ctx) {" : "(ctx) => {"), C.indent(u), h.length > 0 && (C.push(`const { ${ie(h.map((b) => `${b}: _${b}`), ", ")} } = ctx`), C.newline()), C.push("return "), K(C, r), C.deindent(u), C.push("}"), delete r.helpers;
942
+ const { code: P, map: m } = C.context();
943
+ return {
944
+ ast: r,
945
+ code: P,
946
+ map: m ? m.toJSON() : void 0
947
+ // eslint-disable-line @typescript-eslint/no-explicit-any
948
+ };
949
+ };
950
+ function tt(r, n = {}) {
951
+ const c = re({}, n), o = !!c.jit, _ = !!c.minify, u = c.optimize == null ? !0 : c.optimize, C = He(c).parse(r);
952
+ return o ? (u && $e(C), _ && Y(C), { ast: C, code: "" }) : (Ke(C, c), Je(C, c));
953
+ }
954
+ export {
955
+ Ze as C,
956
+ ze as a,
957
+ tt as b,
958
+ G as c,
959
+ et as d
960
+ };