@amoa/casting 0.1.4 → 0.1.6

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 (326) hide show
  1. package/dist/export/index.js +9 -9
  2. package/dist/form/buttons/index.js +2 -2
  3. package/dist/form/buttons/index.module.css.js +0 -4
  4. package/dist/form/caption/index.js +2 -2
  5. package/dist/form/caption/index.module.css.js +0 -4
  6. package/dist/form/description/index.js +2 -2
  7. package/dist/form/description/index.module.css.js +0 -4
  8. package/dist/form/email/index.js +3 -3
  9. package/dist/form/index.js +4 -4
  10. package/dist/form/index.module.css.js +0 -4
  11. package/dist/form/inputs/index.js +2 -2
  12. package/dist/form/inputs/index.module.css.js +0 -4
  13. package/dist/form/password/index.js +3 -3
  14. package/dist/index.css +94 -0
  15. package/dist/waiter/index.js +11 -13
  16. package/dist/waiter/index.module.css.js +0 -4
  17. package/package.json +5 -4
  18. package/dist/_virtual/_commonjsHelpers.js +0 -5
  19. package/dist/_virtual/_interop_require_default.js +0 -3
  20. package/dist/_virtual/_interop_require_wildcard.js +0 -3
  21. package/dist/_virtual/action-async-storage-instance.js +0 -3
  22. package/dist/_virtual/action-async-storage.external.js +0 -3
  23. package/dist/_virtual/add-base-path.js +0 -3
  24. package/dist/_virtual/add-locale.js +0 -3
  25. package/dist/_virtual/add-locale2.js +0 -3
  26. package/dist/_virtual/add-path-prefix.js +0 -3
  27. package/dist/_virtual/app-paths.js +0 -3
  28. package/dist/_virtual/app-router-context.shared-runtime.js +0 -3
  29. package/dist/_virtual/app-router-headers.js +0 -3
  30. package/dist/_virtual/app.js +0 -3
  31. package/dist/_virtual/async-local-storage.js +0 -3
  32. package/dist/_virtual/bailout-to-csr.js +0 -3
  33. package/dist/_virtual/boundary-constants.js +0 -3
  34. package/dist/_virtual/constants.js +0 -3
  35. package/dist/_virtual/deployment-id.js +0 -3
  36. package/dist/_virtual/detect-domain-locale.js +0 -3
  37. package/dist/_virtual/detect-domain-locale2.js +0 -3
  38. package/dist/_virtual/dynamic-rendering-utils.js +0 -3
  39. package/dist/_virtual/dynamic-rendering.js +0 -3
  40. package/dist/_virtual/ensure-leading-slash.js +0 -3
  41. package/dist/_virtual/error-once.js +0 -3
  42. package/dist/_virtual/escape-regexp.js +0 -3
  43. package/dist/_virtual/find-closest-quality.js +0 -3
  44. package/dist/_virtual/forbidden.js +0 -3
  45. package/dist/_virtual/format-url.js +0 -3
  46. package/dist/_virtual/get-domain-locale.js +0 -3
  47. package/dist/_virtual/get-dynamic-param.js +0 -3
  48. package/dist/_virtual/get-img-props.js +0 -3
  49. package/dist/_virtual/get-segment-param.js +0 -3
  50. package/dist/_virtual/has-base-path.js +0 -3
  51. package/dist/_virtual/head-manager-context.shared-runtime.js +0 -3
  52. package/dist/_virtual/head.js +0 -3
  53. package/dist/_virtual/hooks-client-context.shared-runtime.js +0 -3
  54. package/dist/_virtual/hooks-server-context.js +0 -3
  55. package/dist/_virtual/http-access-fallback.js +0 -3
  56. package/dist/_virtual/image-blur-svg.js +0 -3
  57. package/dist/_virtual/image-component.js +0 -3
  58. package/dist/_virtual/image-config-context.shared-runtime.js +0 -3
  59. package/dist/_virtual/image-config.js +0 -3
  60. package/dist/_virtual/image-external.js +0 -3
  61. package/dist/_virtual/image-loader.js +0 -3
  62. package/dist/_virtual/image.js +0 -7
  63. package/dist/_virtual/index.js +0 -3
  64. package/dist/_virtual/index2.js +0 -3
  65. package/dist/_virtual/index3.js +0 -3
  66. package/dist/_virtual/interception-prefix-from-param-type.js +0 -3
  67. package/dist/_virtual/interception-routes.js +0 -3
  68. package/dist/_virtual/interpolate-as.js +0 -3
  69. package/dist/_virtual/invariant-error.js +0 -3
  70. package/dist/_virtual/is-dynamic.js +0 -3
  71. package/dist/_virtual/is-local-url.js +0 -3
  72. package/dist/_virtual/is-next-router-error.js +0 -3
  73. package/dist/_virtual/is-postpone.js +0 -3
  74. package/dist/_virtual/jsx-runtime.js +0 -5
  75. package/dist/_virtual/jsx-runtime2.js +0 -3
  76. package/dist/_virtual/link.js +0 -7
  77. package/dist/_virtual/link2.js +0 -3
  78. package/dist/_virtual/match-local-pattern.js +0 -3
  79. package/dist/_virtual/match-remote-pattern.js +0 -3
  80. package/dist/_virtual/navigation.js +0 -3
  81. package/dist/_virtual/navigation.react-server.js +0 -3
  82. package/dist/_virtual/navigation2.js +0 -3
  83. package/dist/_virtual/normalize-locale-path.js +0 -3
  84. package/dist/_virtual/normalize-locale-path2.js +0 -3
  85. package/dist/_virtual/normalize-trailing-slash.js +0 -3
  86. package/dist/_virtual/not-found.js +0 -3
  87. package/dist/_virtual/omit.js +0 -3
  88. package/dist/_virtual/parse-loader-tree.js +0 -3
  89. package/dist/_virtual/parse-path.js +0 -3
  90. package/dist/_virtual/path-has-prefix.js +0 -3
  91. package/dist/_virtual/querystring.js +0 -3
  92. package/dist/_virtual/react-jsx-runtime.development.js +0 -3
  93. package/dist/_virtual/react-jsx-runtime.production.js +0 -3
  94. package/dist/_virtual/readonly-url-search-params.js +0 -3
  95. package/dist/_virtual/redirect-error.js +0 -3
  96. package/dist/_virtual/redirect-status-code.js +0 -3
  97. package/dist/_virtual/redirect.js +0 -3
  98. package/dist/_virtual/remove-trailing-slash.js +0 -3
  99. package/dist/_virtual/request-idle-callback.js +0 -3
  100. package/dist/_virtual/resolve-href.js +0 -3
  101. package/dist/_virtual/resolve-param-value.js +0 -3
  102. package/dist/_virtual/route-match-utils.js +0 -3
  103. package/dist/_virtual/route-matcher.js +0 -3
  104. package/dist/_virtual/route-pattern-normalizer.js +0 -3
  105. package/dist/_virtual/route-regex.js +0 -3
  106. package/dist/_virtual/router-context.shared-runtime.js +0 -3
  107. package/dist/_virtual/scheduler.js +0 -3
  108. package/dist/_virtual/segment.js +0 -3
  109. package/dist/_virtual/server-inserted-html.shared-runtime.js +0 -3
  110. package/dist/_virtual/side-effect.js +0 -3
  111. package/dist/_virtual/sorted-routes.js +0 -3
  112. package/dist/_virtual/static-generation-bailout.js +0 -3
  113. package/dist/_virtual/unauthorized.js +0 -3
  114. package/dist/_virtual/unrecognized-action-error.js +0 -3
  115. package/dist/_virtual/unstable-rethrow.browser.js +0 -3
  116. package/dist/_virtual/unstable-rethrow.js +0 -3
  117. package/dist/_virtual/unstable-rethrow.server.js +0 -3
  118. package/dist/_virtual/use-intersection.js +0 -3
  119. package/dist/_virtual/use-merged-ref.js +0 -3
  120. package/dist/_virtual/utils.js +0 -3
  121. package/dist/_virtual/warn-once.js +0 -3
  122. package/dist/_virtual/work-async-storage-instance.js +0 -3
  123. package/dist/_virtual/work-async-storage.external.js +0 -3
  124. package/dist/_virtual/work-unit-async-storage-instance.js +0 -3
  125. package/dist/_virtual/work-unit-async-storage.external.js +0 -3
  126. package/dist/config/config.json.js +0 -37
  127. package/dist/node_modules/@swc/helpers/cjs/_interop_require_default.js +0 -16
  128. package/dist/node_modules/@swc/helpers/cjs/_interop_require_wildcard.js +0 -48
  129. package/dist/node_modules/next/dist/client/add-base-path.js +0 -38
  130. package/dist/node_modules/next/dist/client/add-locale.js +0 -39
  131. package/dist/node_modules/next/dist/client/components/app-router-headers.js +0 -112
  132. package/dist/node_modules/next/dist/client/components/forbidden.js +0 -62
  133. package/dist/node_modules/next/dist/client/components/hooks-server-context.js +0 -50
  134. package/dist/node_modules/next/dist/client/components/http-access-fallback/http-access-fallback.js +0 -77
  135. package/dist/node_modules/next/dist/client/components/is-next-router-error.js +0 -37
  136. package/dist/node_modules/next/dist/client/components/navigation.js +0 -198
  137. package/dist/node_modules/next/dist/client/components/navigation.react-server.js +0 -80
  138. package/dist/node_modules/next/dist/client/components/not-found.js +0 -56
  139. package/dist/node_modules/next/dist/client/components/readonly-url-search-params.js +0 -58
  140. package/dist/node_modules/next/dist/client/components/redirect-error.js +0 -60
  141. package/dist/node_modules/next/dist/client/components/redirect-status-code.js +0 -36
  142. package/dist/node_modules/next/dist/client/components/redirect.js +0 -98
  143. package/dist/node_modules/next/dist/client/components/static-generation-bailout.js +0 -50
  144. package/dist/node_modules/next/dist/client/components/unauthorized.js +0 -63
  145. package/dist/node_modules/next/dist/client/components/unrecognized-action-error.js +0 -47
  146. package/dist/node_modules/next/dist/client/components/unstable-rethrow.browser.js +0 -42
  147. package/dist/node_modules/next/dist/client/components/unstable-rethrow.js +0 -41
  148. package/dist/node_modules/next/dist/client/components/unstable-rethrow.server.js +0 -50
  149. package/dist/node_modules/next/dist/client/detect-domain-locale.js +0 -36
  150. package/dist/node_modules/next/dist/client/get-domain-locale.js +0 -51
  151. package/dist/node_modules/next/dist/client/has-base-path.js +0 -36
  152. package/dist/node_modules/next/dist/client/image-component.js +0 -343
  153. package/dist/node_modules/next/dist/client/link.js +0 -466
  154. package/dist/node_modules/next/dist/client/normalize-locale-path.js +0 -40
  155. package/dist/node_modules/next/dist/client/normalize-trailing-slash.js +0 -54
  156. package/dist/node_modules/next/dist/client/request-idle-callback.js +0 -52
  157. package/dist/node_modules/next/dist/client/resolve-href.js +0 -124
  158. package/dist/node_modules/next/dist/client/use-intersection.js +0 -126
  159. package/dist/node_modules/next/dist/client/use-merged-ref.js +0 -79
  160. package/dist/node_modules/next/dist/compiled/path-to-regexp/index.js +0 -439
  161. package/dist/node_modules/next/dist/compiled/picomatch/index.js +0 -1662
  162. package/dist/node_modules/next/dist/lib/constants.js +0 -339
  163. package/dist/node_modules/next/dist/lib/framework/boundary-constants.js +0 -41
  164. package/dist/node_modules/next/dist/lib/route-pattern-normalizer.js +0 -114
  165. package/dist/node_modules/next/dist/lib/scheduler.js +0 -69
  166. package/dist/node_modules/next/dist/server/app-render/action-async-storage-instance.js +0 -26
  167. package/dist/node_modules/next/dist/server/app-render/action-async-storage.external.js +0 -25
  168. package/dist/node_modules/next/dist/server/app-render/async-local-storage.js +0 -83
  169. package/dist/node_modules/next/dist/server/app-render/dynamic-rendering.js +0 -804
  170. package/dist/node_modules/next/dist/server/app-render/work-async-storage-instance.js +0 -26
  171. package/dist/node_modules/next/dist/server/app-render/work-async-storage.external.js +0 -25
  172. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage-instance.js +0 -26
  173. package/dist/node_modules/next/dist/server/app-render/work-unit-async-storage.external.js +0 -221
  174. package/dist/node_modules/next/dist/server/dynamic-rendering-utils.js +0 -90
  175. package/dist/node_modules/next/dist/server/lib/router-utils/is-postpone.js +0 -27
  176. package/dist/node_modules/next/dist/shared/lib/app-router-context.shared-runtime.js +0 -56
  177. package/dist/node_modules/next/dist/shared/lib/deployment-id.js +0 -41
  178. package/dist/node_modules/next/dist/shared/lib/escape-regexp.js +0 -32
  179. package/dist/node_modules/next/dist/shared/lib/find-closest-quality.js +0 -30
  180. package/dist/node_modules/next/dist/shared/lib/get-img-props.js +0 -617
  181. package/dist/node_modules/next/dist/shared/lib/head-manager-context.shared-runtime.js +0 -31
  182. package/dist/node_modules/next/dist/shared/lib/head.js +0 -177
  183. package/dist/node_modules/next/dist/shared/lib/hooks-client-context.shared-runtime.js +0 -65
  184. package/dist/node_modules/next/dist/shared/lib/i18n/detect-domain-locale.js +0 -36
  185. package/dist/node_modules/next/dist/shared/lib/i18n/normalize-locale-path.js +0 -66
  186. package/dist/node_modules/next/dist/shared/lib/image-blur-svg.js +0 -42
  187. package/dist/node_modules/next/dist/shared/lib/image-config-context.shared-runtime.js +0 -33
  188. package/dist/node_modules/next/dist/shared/lib/image-config.js +0 -56
  189. package/dist/node_modules/next/dist/shared/lib/image-external.js +0 -60
  190. package/dist/node_modules/next/dist/shared/lib/image-loader.js +0 -119
  191. package/dist/node_modules/next/dist/shared/lib/invariant-error.js +0 -29
  192. package/dist/node_modules/next/dist/shared/lib/lazy-dynamic/bailout-to-csr.js +0 -43
  193. package/dist/node_modules/next/dist/shared/lib/match-local-pattern.js +0 -54
  194. package/dist/node_modules/next/dist/shared/lib/match-remote-pattern.js +0 -71
  195. package/dist/node_modules/next/dist/shared/lib/page-path/ensure-leading-slash.js +0 -31
  196. package/dist/node_modules/next/dist/shared/lib/router/routes/app.js +0 -130
  197. package/dist/node_modules/next/dist/shared/lib/router/utils/add-locale.js +0 -41
  198. package/dist/node_modules/next/dist/shared/lib/router/utils/add-path-prefix.js +0 -36
  199. package/dist/node_modules/next/dist/shared/lib/router/utils/app-paths.js +0 -61
  200. package/dist/node_modules/next/dist/shared/lib/router/utils/format-url.js +0 -88
  201. package/dist/node_modules/next/dist/shared/lib/router/utils/get-dynamic-param.js +0 -176
  202. package/dist/node_modules/next/dist/shared/lib/router/utils/get-segment-param.js +0 -89
  203. package/dist/node_modules/next/dist/shared/lib/router/utils/index.js +0 -38
  204. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-prefix-from-param-type.js +0 -44
  205. package/dist/node_modules/next/dist/shared/lib/router/utils/interception-routes.js +0 -109
  206. package/dist/node_modules/next/dist/shared/lib/router/utils/interpolate-as.js +0 -71
  207. package/dist/node_modules/next/dist/shared/lib/router/utils/is-dynamic.js +0 -38
  208. package/dist/node_modules/next/dist/shared/lib/router/utils/is-local-url.js +0 -39
  209. package/dist/node_modules/next/dist/shared/lib/router/utils/omit.js +0 -32
  210. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-loader-tree.js +0 -46
  211. package/dist/node_modules/next/dist/shared/lib/router/utils/parse-path.js +0 -46
  212. package/dist/node_modules/next/dist/shared/lib/router/utils/path-has-prefix.js +0 -34
  213. package/dist/node_modules/next/dist/shared/lib/router/utils/querystring.js +0 -82
  214. package/dist/node_modules/next/dist/shared/lib/router/utils/remove-trailing-slash.js +0 -34
  215. package/dist/node_modules/next/dist/shared/lib/router/utils/resolve-param-value.js +0 -128
  216. package/dist/node_modules/next/dist/shared/lib/router/utils/route-match-utils.js +0 -122
  217. package/dist/node_modules/next/dist/shared/lib/router/utils/route-matcher.js +0 -61
  218. package/dist/node_modules/next/dist/shared/lib/router/utils/route-regex.js +0 -312
  219. package/dist/node_modules/next/dist/shared/lib/router/utils/sorted-routes.js +0 -246
  220. package/dist/node_modules/next/dist/shared/lib/router-context.shared-runtime.js +0 -31
  221. package/dist/node_modules/next/dist/shared/lib/segment.js +0 -102
  222. package/dist/node_modules/next/dist/shared/lib/server-inserted-html.shared-runtime.js +0 -44
  223. package/dist/node_modules/next/dist/shared/lib/side-effect.js +0 -78
  224. package/dist/node_modules/next/dist/shared/lib/utils/error-once.js +0 -33
  225. package/dist/node_modules/next/dist/shared/lib/utils/warn-once.js +0 -33
  226. package/dist/node_modules/next/dist/shared/lib/utils.js +0 -192
  227. package/dist/node_modules/next/image.js +0 -13
  228. package/dist/node_modules/next/link.js +0 -13
  229. package/dist/node_modules/next/navigation.js +0 -13
  230. package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +0 -240
  231. package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +0 -44
  232. package/dist/node_modules/react/jsx-runtime.js +0 -19
  233. package/dist/node_modules/style-inject/dist/style-inject.es.js +0 -26
  234. package/dist/packages/carving/src/carving.js +0 -34
  235. package/dist/packages/carving/src/condo.js +0 -17
  236. package/dist/packages/carving/src/logos/amoa.js +0 -17
  237. package/dist/packages/forge/src/classes.js +0 -17
  238. package/dist/packages/forge/src/dates/date.js +0 -8
  239. package/dist/packages/forge/src/dates/day.js +0 -7
  240. package/dist/packages/forge/src/dates/index.js +0 -31
  241. package/dist/packages/forge/src/dates/month.js +0 -35
  242. package/dist/packages/forge/src/dates/year.js +0 -16
  243. package/dist/packages/forge/src/fetcher/index.js +0 -37
  244. package/dist/packages/forge/src/fetcher/querystring.js +0 -9
  245. package/dist/packages/forge/src/files.js +0 -17
  246. package/dist/packages/forge/src/numbers/index.js +0 -5
  247. package/dist/packages/forge/src/strings/characters.js +0 -3
  248. package/dist/packages/forge/src/strings/diacritics.js +0 -261
  249. package/dist/packages/forge/src/strings/index.js +0 -24
  250. package/dist/packages/hooks/src/use-debounce.js +0 -19
  251. package/dist/packages/hooks/src/use-tooltip.js +0 -27
  252. package/dist/packages/ingots/src/address/api/form.js +0 -12
  253. package/dist/packages/ingots/src/address/config.json.js +0 -16
  254. package/dist/packages/ingots/src/address/index.js +0 -117
  255. package/dist/packages/ingots/src/address/index.module.css.js +0 -7
  256. package/dist/packages/ingots/src/address/service.js +0 -41
  257. package/dist/packages/ingots/src/backdrop/index.js +0 -18
  258. package/dist/packages/ingots/src/backdrop/index.module.css.js +0 -7
  259. package/dist/packages/ingots/src/button/index.js +0 -56
  260. package/dist/packages/ingots/src/button/index.module.css.js +0 -7
  261. package/dist/packages/ingots/src/checkbox/index.js +0 -47
  262. package/dist/packages/ingots/src/checkbox/index.module.css.js +0 -7
  263. package/dist/packages/ingots/src/date/erase/index.js +0 -22
  264. package/dist/packages/ingots/src/date/erase/index.module.css.js +0 -7
  265. package/dist/packages/ingots/src/date/input/index.js +0 -113
  266. package/dist/packages/ingots/src/date/input/index.module.css.js +0 -7
  267. package/dist/packages/ingots/src/date/picker/day/index.js +0 -35
  268. package/dist/packages/ingots/src/date/picker/day/index.module.css.js +0 -7
  269. package/dist/packages/ingots/src/date/picker/days/index.js +0 -59
  270. package/dist/packages/ingots/src/date/picker/days/index.module.css.js +0 -7
  271. package/dist/packages/ingots/src/date/picker/handle/index.js +0 -40
  272. package/dist/packages/ingots/src/date/picker/handle/index.module.css.js +0 -7
  273. package/dist/packages/ingots/src/date/picker/index.js +0 -154
  274. package/dist/packages/ingots/src/date/picker/index.module.css.js +0 -7
  275. package/dist/packages/ingots/src/date/picker/menu/index.js +0 -32
  276. package/dist/packages/ingots/src/date/picker/menu/index.module.css.js +0 -7
  277. package/dist/packages/ingots/src/date/picker/menu/item.js +0 -30
  278. package/dist/packages/ingots/src/date/picker/menu/item.module.css.js +0 -7
  279. package/dist/packages/ingots/src/file/api/index.js +0 -14
  280. package/dist/packages/ingots/src/file/card/index.js +0 -65
  281. package/dist/packages/ingots/src/file/card/index.module.css.js +0 -7
  282. package/dist/packages/ingots/src/file/index.js +0 -34
  283. package/dist/packages/ingots/src/file/index.module.css.js +0 -7
  284. package/dist/packages/ingots/src/file/input/index.js +0 -261
  285. package/dist/packages/ingots/src/file/input/index.module.css.js +0 -7
  286. package/dist/packages/ingots/src/input/index.js +0 -75
  287. package/dist/packages/ingots/src/input/src/validation/index.js +0 -3
  288. package/dist/packages/ingots/src/loader/index.js +0 -23
  289. package/dist/packages/ingots/src/loader/index.module.css.js +0 -7
  290. package/dist/packages/ingots/src/loader/variants/spinner/index.js +0 -31
  291. package/dist/packages/ingots/src/loader/variants/spinner/index.module.css.js +0 -7
  292. package/dist/packages/ingots/src/select/card/index.js +0 -33
  293. package/dist/packages/ingots/src/select/card/index.module.css.js +0 -7
  294. package/dist/packages/ingots/src/select/category/index.js +0 -13
  295. package/dist/packages/ingots/src/select/category/index.module.css.js +0 -7
  296. package/dist/packages/ingots/src/select/content/index.js +0 -46
  297. package/dist/packages/ingots/src/select/index.js +0 -155
  298. package/dist/packages/ingots/src/select/index.module.css.js +0 -7
  299. package/dist/packages/ingots/src/select/option/index.js +0 -35
  300. package/dist/packages/ingots/src/select/option/index.module.css.js +0 -7
  301. package/dist/packages/ingots/src/select/options/index.js +0 -59
  302. package/dist/packages/ingots/src/select/options/index.module.css.js +0 -7
  303. package/dist/packages/ingots/src/snackbar/context.js +0 -9
  304. package/dist/packages/ingots/src/tag/index.js +0 -16
  305. package/dist/packages/ingots/src/tag/index.module.css.js +0 -7
  306. package/dist/packages/ingots/src/text/index.js +0 -92
  307. package/dist/packages/ingots/src/text/index.module.css.js +0 -7
  308. package/dist/packages/ingots/src/textarea/index.js +0 -62
  309. package/dist/packages/ingots/src/textarea/index.module.css.js +0 -7
  310. package/dist/packages/ingots/src/toggle/index.js +0 -43
  311. package/dist/packages/ingots/src/toggle/index.module.css.js +0 -7
  312. package/dist/packages/runes/src/icon.js +0 -16
  313. package/dist/packages/runes/src/paths/alert.js +0 -18
  314. package/dist/packages/runes/src/paths/arrow/path.js +0 -18
  315. package/dist/packages/runes/src/paths/calendar.js +0 -18
  316. package/dist/packages/runes/src/paths/check/fill.js +0 -18
  317. package/dist/packages/runes/src/paths/check/regular.js +0 -18
  318. package/dist/packages/runes/src/paths/chevron/down.js +0 -18
  319. package/dist/packages/runes/src/paths/chevron/left.js +0 -18
  320. package/dist/packages/runes/src/paths/chevron/right.js +0 -18
  321. package/dist/packages/runes/src/paths/click.js +0 -18
  322. package/dist/packages/runes/src/paths/cross/regular.js +0 -16
  323. package/dist/packages/runes/src/paths/download.js +0 -18
  324. package/dist/packages/runes/src/paths/file.js +0 -18
  325. package/dist/packages/runes/src/paths/link.js +0 -23
  326. package/dist/packages/wares/src/authentication/index.js +0 -11
@@ -1,177 +0,0 @@
1
- import { __module as head } from '../../../../../_virtual/head.js';
2
- import { __require as require_interop_require_default } from '../../../../@swc/helpers/cjs/_interop_require_default.js';
3
- import { __require as require_interop_require_wildcard } from '../../../../@swc/helpers/cjs/_interop_require_wildcard.js';
4
- import { __require as requireJsxRuntime } from '../../../../react/jsx-runtime.js';
5
- import React__default from 'react';
6
- import { __require as requireSideEffect } from './side-effect.js';
7
- import { __require as requireHeadManagerContext_sharedRuntime } from './head-manager-context.shared-runtime.js';
8
- import { __require as requireWarnOnce } from './utils/warn-once.js';
9
-
10
- var hasRequiredHead;
11
-
12
- function requireHead () {
13
- if (hasRequiredHead) return head.exports;
14
- hasRequiredHead = 1;
15
- (function (module, exports$1) {
16
- 'use client';
17
-
18
- Object.defineProperty(exports$1, "__esModule", {
19
- value: true
20
- });
21
- function _export(target, all) {
22
- for (var name in all) Object.defineProperty(target, name, {
23
- enumerable: true,
24
- get: all[name]
25
- });
26
- }
27
- _export(exports$1, {
28
- default: function () {
29
- return _default;
30
- },
31
- defaultHead: function () {
32
- return defaultHead;
33
- }
34
- });
35
- const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
36
- const _interop_require_wildcard = /*@__PURE__*/ require_interop_require_wildcard();
37
- const _jsxruntime = requireJsxRuntime();
38
- const _react = /*#__PURE__*/_interop_require_wildcard._(React__default);
39
- const _sideeffect = /*#__PURE__*/_interop_require_default._(requireSideEffect());
40
- const _headmanagercontextsharedruntime = requireHeadManagerContext_sharedRuntime();
41
- const _warnonce = requireWarnOnce();
42
- function defaultHead() {
43
- const head = [/*#__PURE__*/(0, _jsxruntime.jsx)("meta", {
44
- charSet: "utf-8"
45
- }, "charset"), /*#__PURE__*/(0, _jsxruntime.jsx)("meta", {
46
- name: "viewport",
47
- content: "width=device-width"
48
- }, "viewport")];
49
- return head;
50
- }
51
- function onlyReactElement(list, child) {
52
- // React children can be "string" or "number" in this case we ignore them for backwards compat
53
- if (typeof child === 'string' || typeof child === 'number') {
54
- return list;
55
- }
56
- // Adds support for React.Fragment
57
- if (child.type === _react.default.Fragment) {
58
- return list.concat(
59
- // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
60
- _react.default.Children.toArray(child.props.children).reduce(
61
- // @ts-expect-error @types/react does not remove fragments but this could also return ReactPortal[]
62
- (fragmentList, fragmentChild) => {
63
- if (typeof fragmentChild === 'string' || typeof fragmentChild === 'number') {
64
- return fragmentList;
65
- }
66
- return fragmentList.concat(fragmentChild);
67
- }, []));
68
- }
69
- return list.concat(child);
70
- }
71
- const METATYPES = ['name', 'httpEquiv', 'charSet', 'itemProp'];
72
- /*
73
- returns a function for filtering head child elements
74
- which shouldn't be duplicated, like <title/>
75
- Also adds support for deduplicated `key` properties
76
- */
77
- function unique() {
78
- const keys = new Set();
79
- const tags = new Set();
80
- const metaTypes = new Set();
81
- const metaCategories = {};
82
- return h => {
83
- let isUnique = true;
84
- let hasKey = false;
85
- if (h.key && typeof h.key !== 'number' && h.key.indexOf('$') > 0) {
86
- hasKey = true;
87
- const key = h.key.slice(h.key.indexOf('$') + 1);
88
- if (keys.has(key)) {
89
- isUnique = false;
90
- } else {
91
- keys.add(key);
92
- }
93
- }
94
- // eslint-disable-next-line default-case
95
- switch (h.type) {
96
- case 'title':
97
- case 'base':
98
- if (tags.has(h.type)) {
99
- isUnique = false;
100
- } else {
101
- tags.add(h.type);
102
- }
103
- break;
104
- case 'meta':
105
- for (let i = 0, len = METATYPES.length; i < len; i++) {
106
- const metatype = METATYPES[i];
107
- if (!h.props.hasOwnProperty(metatype)) continue;
108
- if (metatype === 'charSet') {
109
- if (metaTypes.has(metatype)) {
110
- isUnique = false;
111
- } else {
112
- metaTypes.add(metatype);
113
- }
114
- } else {
115
- const category = h.props[metatype];
116
- const categories = metaCategories[metatype] || new Set();
117
- if ((metatype !== 'name' || !hasKey) && categories.has(category)) {
118
- isUnique = false;
119
- } else {
120
- categories.add(category);
121
- metaCategories[metatype] = categories;
122
- }
123
- }
124
- }
125
- break;
126
- }
127
- return isUnique;
128
- };
129
- }
130
- /**
131
- *
132
- * @param headChildrenElements List of children of <Head>
133
- */
134
- function reduceComponents(headChildrenElements) {
135
- return headChildrenElements.reduce(onlyReactElement, []).reverse().concat(defaultHead().reverse()).filter(unique()).reverse().map((c, i) => {
136
- const key = c.key || i;
137
- if (process.env.NODE_ENV === 'development') {
138
- // omit JSON-LD structured data snippets from the warning
139
- if (c.type === 'script' && c.props['type'] !== 'application/ld+json') {
140
- const srcMessage = c.props['src'] ? `<script> tag with src="${c.props['src']}"` : `inline <script>`;
141
- (0, _warnonce.warnOnce)(`Do not add <script> tags using next/head (see ${srcMessage}). Use next/script instead. \nSee more info here: https://nextjs.org/docs/messages/no-script-tags-in-head-component`);
142
- } else if (c.type === 'link' && c.props['rel'] === 'stylesheet') {
143
- (0, _warnonce.warnOnce)(`Do not add stylesheets using next/head (see <link rel="stylesheet"> tag with href="${c.props['href']}"). Use Document instead. \nSee more info here: https://nextjs.org/docs/messages/no-stylesheets-in-head-component`);
144
- }
145
- }
146
- return /*#__PURE__*/_react.default.cloneElement(c, {
147
- key
148
- });
149
- });
150
- }
151
- /**
152
- * This component injects elements to `<head>` of your page.
153
- * To avoid duplicated `tags` in `<head>` you can use the `key` property, which will make sure every tag is only rendered once.
154
- */
155
- function Head({
156
- children
157
- }) {
158
- const headManager = (0, _react.useContext)(_headmanagercontextsharedruntime.HeadManagerContext);
159
- return /*#__PURE__*/(0, _jsxruntime.jsx)(_sideeffect.default, {
160
- reduceComponentsToState: reduceComponents,
161
- headManager: headManager,
162
- children: children
163
- });
164
- }
165
- const _default = Head;
166
- if ((typeof exports$1.default === 'function' || typeof exports$1.default === 'object' && exports$1.default !== null) && typeof exports$1.default.__esModule === 'undefined') {
167
- Object.defineProperty(exports$1.default, '__esModule', {
168
- value: true
169
- });
170
- Object.assign(exports$1.default, exports$1);
171
- module.exports = exports$1.default;
172
- }
173
- } (head, head.exports));
174
- return head.exports;
175
- }
176
-
177
- export { requireHead as __require };
@@ -1,65 +0,0 @@
1
- import { __exports as hooksClientContext_sharedRuntime } from '../../../../../_virtual/hooks-client-context.shared-runtime.js';
2
- import React__default from 'react';
3
- import { __require as requireReadonlyUrlSearchParams } from '../../client/components/readonly-url-search-params.js';
4
-
5
- var hasRequiredHooksClientContext_sharedRuntime;
6
-
7
- function requireHooksClientContext_sharedRuntime () {
8
- if (hasRequiredHooksClientContext_sharedRuntime) return hooksClientContext_sharedRuntime;
9
- hasRequiredHooksClientContext_sharedRuntime = 1;
10
- (function (exports$1) {
11
- 'use client';
12
-
13
- Object.defineProperty(exports$1, "__esModule", {
14
- value: true
15
- });
16
- function _export(target, all) {
17
- for (var name in all) Object.defineProperty(target, name, {
18
- enumerable: true,
19
- get: all[name]
20
- });
21
- }
22
- _export(exports$1, {
23
- NavigationPromisesContext: function () {
24
- return NavigationPromisesContext;
25
- },
26
- PathParamsContext: function () {
27
- return PathParamsContext;
28
- },
29
- PathnameContext: function () {
30
- return PathnameContext;
31
- },
32
- ReadonlyURLSearchParams: function () {
33
- return _readonlyurlsearchparams.ReadonlyURLSearchParams;
34
- },
35
- SearchParamsContext: function () {
36
- return SearchParamsContext;
37
- },
38
- createDevToolsInstrumentedPromise: function () {
39
- return createDevToolsInstrumentedPromise;
40
- }
41
- });
42
- const _react = React__default;
43
- const _readonlyurlsearchparams = requireReadonlyUrlSearchParams();
44
- const SearchParamsContext = (0, _react.createContext)(null);
45
- const PathnameContext = (0, _react.createContext)(null);
46
- const PathParamsContext = (0, _react.createContext)(null);
47
- const NavigationPromisesContext = (0, _react.createContext)(null);
48
- function createDevToolsInstrumentedPromise(displayName, value) {
49
- const promise = Promise.resolve(value);
50
- promise.status = 'fulfilled';
51
- promise.value = value;
52
- promise.displayName = `${displayName} (SSR)`;
53
- return promise;
54
- }
55
- if (process.env.NODE_ENV !== 'production') {
56
- SearchParamsContext.displayName = 'SearchParamsContext';
57
- PathnameContext.displayName = 'PathnameContext';
58
- PathParamsContext.displayName = 'PathParamsContext';
59
- NavigationPromisesContext.displayName = 'NavigationPromisesContext';
60
- }
61
- } (hooksClientContext_sharedRuntime));
62
- return hooksClientContext_sharedRuntime;
63
- }
64
-
65
- export { requireHooksClientContext_sharedRuntime as __require };
@@ -1,36 +0,0 @@
1
- import { __exports as detectDomainLocale } from '../../../../../../_virtual/detect-domain-locale2.js';
2
-
3
- var hasRequiredDetectDomainLocale;
4
-
5
- function requireDetectDomainLocale () {
6
- if (hasRequiredDetectDomainLocale) return detectDomainLocale;
7
- hasRequiredDetectDomainLocale = 1;
8
- (function (exports$1) {
9
-
10
- Object.defineProperty(exports$1, "__esModule", {
11
- value: true
12
- });
13
- Object.defineProperty(exports$1, "detectDomainLocale", {
14
- enumerable: true,
15
- get: function () {
16
- return detectDomainLocale;
17
- }
18
- });
19
- function detectDomainLocale(domainItems, hostname, detectedLocale) {
20
- if (!domainItems) return;
21
- if (detectedLocale) {
22
- detectedLocale = detectedLocale.toLowerCase();
23
- }
24
- for (const item of domainItems) {
25
- // remove port if present
26
- const domainHostname = item.domain?.split(':', 1)[0].toLowerCase();
27
- if (hostname === domainHostname || detectedLocale === item.defaultLocale.toLowerCase() || item.locales?.some(locale => locale.toLowerCase() === detectedLocale)) {
28
- return item;
29
- }
30
- }
31
- }
32
- } (detectDomainLocale));
33
- return detectDomainLocale;
34
- }
35
-
36
- export { requireDetectDomainLocale as __require };
@@ -1,66 +0,0 @@
1
- import { __exports as normalizeLocalePath } from '../../../../../../_virtual/normalize-locale-path2.js';
2
-
3
- var hasRequiredNormalizeLocalePath;
4
-
5
- function requireNormalizeLocalePath () {
6
- if (hasRequiredNormalizeLocalePath) return normalizeLocalePath;
7
- hasRequiredNormalizeLocalePath = 1;
8
- (function (exports$1) {
9
-
10
- Object.defineProperty(exports$1, "__esModule", {
11
- value: true
12
- });
13
- Object.defineProperty(exports$1, "normalizeLocalePath", {
14
- enumerable: true,
15
- get: function () {
16
- return normalizeLocalePath;
17
- }
18
- });
19
- /**
20
- * A cache of lowercased locales for each list of locales. This is stored as a
21
- * WeakMap so if the locales are garbage collected, the cache entry will be
22
- * removed as well.
23
- */
24
- const cache = new WeakMap();
25
- function normalizeLocalePath(pathname, locales) {
26
- // If locales is undefined, return the pathname as is.
27
- if (!locales) return {
28
- pathname
29
- };
30
- // Get the cached lowercased locales or create a new cache entry.
31
- let lowercasedLocales = cache.get(locales);
32
- if (!lowercasedLocales) {
33
- lowercasedLocales = locales.map(locale => locale.toLowerCase());
34
- cache.set(locales, lowercasedLocales);
35
- }
36
- let detectedLocale;
37
- // The first segment will be empty, because it has a leading `/`. If
38
- // there is no further segment, there is no locale (or it's the default).
39
- const segments = pathname.split('/', 2);
40
- // If there's no second segment (ie, the pathname is just `/`), there's no
41
- // locale.
42
- if (!segments[1]) return {
43
- pathname
44
- };
45
- // The second segment will contain the locale part if any.
46
- const segment = segments[1].toLowerCase();
47
- // See if the segment matches one of the locales. If it doesn't, there is
48
- // no locale (or it's the default).
49
- const index = lowercasedLocales.indexOf(segment);
50
- if (index < 0) return {
51
- pathname
52
- };
53
- // Return the case-sensitive locale.
54
- detectedLocale = locales[index];
55
- // Remove the `/${locale}` part of the pathname.
56
- pathname = pathname.slice(detectedLocale.length + 1) || '/';
57
- return {
58
- pathname,
59
- detectedLocale
60
- };
61
- }
62
- } (normalizeLocalePath));
63
- return normalizeLocalePath;
64
- }
65
-
66
- export { requireNormalizeLocalePath as __require };
@@ -1,42 +0,0 @@
1
- import { __exports as imageBlurSvg } from '../../../../../_virtual/image-blur-svg.js';
2
-
3
- /**
4
- * A shared function, used on both client and server, to generate a SVG blur placeholder.
5
- */
6
-
7
- var hasRequiredImageBlurSvg;
8
-
9
- function requireImageBlurSvg () {
10
- if (hasRequiredImageBlurSvg) return imageBlurSvg;
11
- hasRequiredImageBlurSvg = 1;
12
- (function (exports$1) {
13
-
14
- Object.defineProperty(exports$1, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports$1, "getImageBlurSvg", {
18
- enumerable: true,
19
- get: function () {
20
- return getImageBlurSvg;
21
- }
22
- });
23
- function getImageBlurSvg({
24
- widthInt,
25
- heightInt,
26
- blurWidth,
27
- blurHeight,
28
- blurDataURL,
29
- objectFit
30
- }) {
31
- const std = 20;
32
- const svgWidth = blurWidth ? blurWidth * 40 : widthInt;
33
- const svgHeight = blurHeight ? blurHeight * 40 : heightInt;
34
- const viewBox = svgWidth && svgHeight ? `viewBox='0 0 ${svgWidth} ${svgHeight}'` : '';
35
- const preserveAspectRatio = viewBox ? 'none' : objectFit === 'contain' ? 'xMidYMid' : objectFit === 'cover' ? 'xMidYMid slice' : 'none';
36
- return `%3Csvg xmlns='http://www.w3.org/2000/svg' ${viewBox}%3E%3Cfilter id='b' color-interpolation-filters='sRGB'%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3CfeColorMatrix values='1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 100 -1' result='s'/%3E%3CfeFlood x='0' y='0' width='100%25' height='100%25'/%3E%3CfeComposite operator='out' in='s'/%3E%3CfeComposite in2='SourceGraphic'/%3E%3CfeGaussianBlur stdDeviation='${std}'/%3E%3C/filter%3E%3Cimage width='100%25' height='100%25' x='0' y='0' preserveAspectRatio='${preserveAspectRatio}' style='filter: url(%23b);' href='${blurDataURL}'/%3E%3C/svg%3E`;
37
- }
38
- } (imageBlurSvg));
39
- return imageBlurSvg;
40
- }
41
-
42
- export { requireImageBlurSvg as __require };
@@ -1,33 +0,0 @@
1
- import { __exports as imageConfigContext_sharedRuntime } from '../../../../../_virtual/image-config-context.shared-runtime.js';
2
- import { __require as require_interop_require_default } from '../../../../@swc/helpers/cjs/_interop_require_default.js';
3
- import React__default from 'react';
4
- import { __require as requireImageConfig } from './image-config.js';
5
-
6
- var hasRequiredImageConfigContext_sharedRuntime;
7
-
8
- function requireImageConfigContext_sharedRuntime () {
9
- if (hasRequiredImageConfigContext_sharedRuntime) return imageConfigContext_sharedRuntime;
10
- hasRequiredImageConfigContext_sharedRuntime = 1;
11
- (function (exports$1) {
12
-
13
- Object.defineProperty(exports$1, "__esModule", {
14
- value: true
15
- });
16
- Object.defineProperty(exports$1, "ImageConfigContext", {
17
- enumerable: true,
18
- get: function () {
19
- return ImageConfigContext;
20
- }
21
- });
22
- const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
23
- const _react = /*#__PURE__*/_interop_require_default._(React__default);
24
- const _imageconfig = requireImageConfig();
25
- const ImageConfigContext = _react.default.createContext(_imageconfig.imageConfigDefault);
26
- if (process.env.NODE_ENV !== 'production') {
27
- ImageConfigContext.displayName = 'ImageConfigContext';
28
- }
29
- } (imageConfigContext_sharedRuntime));
30
- return imageConfigContext_sharedRuntime;
31
- }
32
-
33
- export { requireImageConfigContext_sharedRuntime as __require };
@@ -1,56 +0,0 @@
1
- import { __exports as imageConfig } from '../../../../../_virtual/image-config.js';
2
-
3
- var hasRequiredImageConfig;
4
-
5
- function requireImageConfig () {
6
- if (hasRequiredImageConfig) return imageConfig;
7
- hasRequiredImageConfig = 1;
8
- (function (exports$1) {
9
-
10
- Object.defineProperty(exports$1, "__esModule", {
11
- value: true
12
- });
13
- function _export(target, all) {
14
- for (var name in all) Object.defineProperty(target, name, {
15
- enumerable: true,
16
- get: all[name]
17
- });
18
- }
19
- _export(exports$1, {
20
- VALID_LOADERS: function () {
21
- return VALID_LOADERS;
22
- },
23
- imageConfigDefault: function () {
24
- return imageConfigDefault;
25
- }
26
- });
27
- const VALID_LOADERS = ['default', 'imgix', 'cloudinary', 'akamai', 'custom'];
28
- const imageConfigDefault = {
29
- deviceSizes: [640, 750, 828, 1080, 1200, 1920, 2048, 3840],
30
- imageSizes: [32, 48, 64, 96, 128, 256, 384],
31
- path: '/_next/image',
32
- loader: 'default',
33
- loaderFile: '',
34
- /**
35
- * @deprecated Use `remotePatterns` instead to protect your application from malicious users.
36
- */
37
- domains: [],
38
- disableStaticImages: false,
39
- minimumCacheTTL: 14400,
40
- formats: ['image/webp'],
41
- maximumRedirects: 3,
42
- maximumResponseBody: 50000000,
43
- dangerouslyAllowLocalIP: false,
44
- dangerouslyAllowSVG: false,
45
- contentSecurityPolicy: `script-src 'none'; frame-src 'none'; sandbox;`,
46
- contentDispositionType: 'attachment',
47
- localPatterns: undefined,
48
- remotePatterns: [],
49
- qualities: [75],
50
- unoptimized: false
51
- };
52
- } (imageConfig));
53
- return imageConfig;
54
- }
55
-
56
- export { requireImageConfig as __require };
@@ -1,60 +0,0 @@
1
- import { __exports as imageExternal } from '../../../../../_virtual/image-external.js';
2
- import { __require as require_interop_require_default } from '../../../../@swc/helpers/cjs/_interop_require_default.js';
3
- import { __require as requireGetImgProps } from './get-img-props.js';
4
- import { __require as requireImageComponent } from '../../client/image-component.js';
5
- import { __require as requireImageLoader } from './image-loader.js';
6
-
7
- var hasRequiredImageExternal;
8
-
9
- function requireImageExternal () {
10
- if (hasRequiredImageExternal) return imageExternal;
11
- hasRequiredImageExternal = 1;
12
- (function (exports$1) {
13
-
14
- Object.defineProperty(exports$1, "__esModule", {
15
- value: true
16
- });
17
- function _export(target, all) {
18
- for (var name in all) Object.defineProperty(target, name, {
19
- enumerable: true,
20
- get: all[name]
21
- });
22
- }
23
- _export(exports$1, {
24
- default: function () {
25
- return _default;
26
- },
27
- getImageProps: function () {
28
- return getImageProps;
29
- }
30
- });
31
- const _interop_require_default = /*@__PURE__*/ require_interop_require_default();
32
- const _getimgprops = requireGetImgProps();
33
- const _imagecomponent = requireImageComponent();
34
- const _imageloader = /*#__PURE__*/_interop_require_default._(requireImageLoader());
35
- function getImageProps(imgProps) {
36
- const {
37
- props
38
- } = (0, _getimgprops.getImgProps)(imgProps, {
39
- defaultLoader: _imageloader.default,
40
- // This is replaced by webpack define plugin
41
- imgConf: process.env.__NEXT_IMAGE_OPTS
42
- });
43
- // Normally we don't care about undefined props because we pass to JSX,
44
- // but this exported function could be used by the end user for anything
45
- // so we delete undefined props to clean it up a little.
46
- for (const [key, value] of Object.entries(props)) {
47
- if (value === undefined) {
48
- delete props[key];
49
- }
50
- }
51
- return {
52
- props
53
- };
54
- }
55
- const _default = _imagecomponent.Image;
56
- } (imageExternal));
57
- return imageExternal;
58
- }
59
-
60
- export { requireImageExternal as __require };
@@ -1,119 +0,0 @@
1
- import { __exports as imageLoader } from '../../../../../_virtual/image-loader.js';
2
- import { __require as requireFindClosestQuality } from './find-closest-quality.js';
3
- import { __require as requireDeploymentId } from './deployment-id.js';
4
- import { __require as requireMatchLocalPattern } from './match-local-pattern.js';
5
- import { __require as requireMatchRemotePattern } from './match-remote-pattern.js';
6
-
7
- var hasRequiredImageLoader;
8
-
9
- function requireImageLoader () {
10
- if (hasRequiredImageLoader) return imageLoader;
11
- hasRequiredImageLoader = 1;
12
- (function (exports$1) {
13
-
14
- Object.defineProperty(exports$1, "__esModule", {
15
- value: true
16
- });
17
- Object.defineProperty(exports$1, "default", {
18
- enumerable: true,
19
- get: function () {
20
- return _default;
21
- }
22
- });
23
- const _findclosestquality = requireFindClosestQuality();
24
- const _deploymentid = requireDeploymentId();
25
- function defaultLoader({
26
- config,
27
- src,
28
- width,
29
- quality
30
- }) {
31
- if (src.startsWith('/') && src.includes('?') && config.localPatterns?.length === 1 && config.localPatterns[0].pathname === '**' && config.localPatterns[0].search === '') {
32
- throw Object.defineProperty(new Error(`Image with src "${src}" is using a query string which is not configured in images.localPatterns.` + `\nRead more: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
33
- value: "E871",
34
- enumerable: false,
35
- configurable: true
36
- });
37
- }
38
- if (process.env.NODE_ENV !== 'production') {
39
- const missingValues = [];
40
- // these should always be provided but make sure they are
41
- if (!src) missingValues.push('src');
42
- if (!width) missingValues.push('width');
43
- if (missingValues.length > 0) {
44
- throw Object.defineProperty(new Error(`Next Image Optimization requires ${missingValues.join(', ')} to be provided. Make sure you pass them as props to the \`next/image\` component. Received: ${JSON.stringify({
45
- src,
46
- width,
47
- quality
48
- })}`), "__NEXT_ERROR_CODE", {
49
- value: "E188",
50
- enumerable: false,
51
- configurable: true
52
- });
53
- }
54
- if (src.startsWith('//')) {
55
- throw Object.defineProperty(new Error(`Failed to parse src "${src}" on \`next/image\`, protocol-relative URL (//) must be changed to an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
56
- value: "E360",
57
- enumerable: false,
58
- configurable: true
59
- });
60
- }
61
- if (src.startsWith('/') && config.localPatterns) {
62
- if (process.env.NODE_ENV !== 'test' &&
63
- // micromatch isn't compatible with edge runtime
64
- process.env.NEXT_RUNTIME !== 'edge') {
65
- // We use dynamic require because this should only error in development
66
- const {
67
- hasLocalMatch
68
- } = requireMatchLocalPattern();
69
- if (!hasLocalMatch(config.localPatterns, src)) {
70
- throw Object.defineProperty(new Error(`Invalid src prop (${src}) on \`next/image\` does not match \`images.localPatterns\` configured in your \`next.config.js\`\n` + `See more info: https://nextjs.org/docs/messages/next-image-unconfigured-localpatterns`), "__NEXT_ERROR_CODE", {
71
- value: "E426",
72
- enumerable: false,
73
- configurable: true
74
- });
75
- }
76
- }
77
- }
78
- if (!src.startsWith('/') && (config.domains || config.remotePatterns)) {
79
- let parsedSrc;
80
- try {
81
- parsedSrc = new URL(src);
82
- } catch (err) {
83
- console.error(err);
84
- throw Object.defineProperty(new Error(`Failed to parse src "${src}" on \`next/image\`, if using relative image it must start with a leading slash "/" or be an absolute URL (http:// or https://)`), "__NEXT_ERROR_CODE", {
85
- value: "E63",
86
- enumerable: false,
87
- configurable: true
88
- });
89
- }
90
- if (process.env.NODE_ENV !== 'test' &&
91
- // micromatch isn't compatible with edge runtime
92
- process.env.NEXT_RUNTIME !== 'edge') {
93
- // We use dynamic require because this should only error in development
94
- const {
95
- hasRemoteMatch
96
- } = requireMatchRemotePattern();
97
- if (!hasRemoteMatch(config.domains, config.remotePatterns, parsedSrc)) {
98
- throw Object.defineProperty(new Error(`Invalid src prop (${src}) on \`next/image\`, hostname "${parsedSrc.hostname}" is not configured under images in your \`next.config.js\`\n` + `See more info: https://nextjs.org/docs/messages/next-image-unconfigured-host`), "__NEXT_ERROR_CODE", {
99
- value: "E231",
100
- enumerable: false,
101
- configurable: true
102
- });
103
- }
104
- }
105
- }
106
- }
107
- const q = (0, _findclosestquality.findClosestQuality)(quality, config);
108
- let deploymentId = (0, _deploymentid.getDeploymentId)();
109
- return `${config.path}?url=${encodeURIComponent(src)}&w=${width}&q=${q}${src.startsWith('/') && deploymentId ? `&dpl=${deploymentId}` : ''}`;
110
- }
111
- // We use this to determine if the import is the default loader
112
- // or a custom loader defined by the user in next.config.js
113
- defaultLoader.__next_img_default = true;
114
- const _default = defaultLoader;
115
- } (imageLoader));
116
- return imageLoader;
117
- }
118
-
119
- export { requireImageLoader as __require };