ember-source 7.1.0-alpha.5 → 7.1.0

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 (234) hide show
  1. package/build-metadata.json +3 -3
  2. package/dist/dev/packages/@ember/-internals/glimmer/index.js +11 -11
  3. package/dist/dev/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +1 -1
  4. package/dist/dev/packages/@ember/-internals/views/index.js +0 -1
  5. package/dist/dev/packages/@ember/-internals/views/lib/views/core_view.js +1 -1
  6. package/dist/dev/packages/@ember/application/index.js +1 -1
  7. package/dist/dev/packages/@ember/application/instance.js +1 -1
  8. package/dist/dev/packages/@ember/array/index.js +4 -0
  9. package/dist/dev/packages/@ember/component/helper.js +1 -1
  10. package/dist/dev/packages/@ember/component/index.js +15 -9
  11. package/dist/dev/packages/@ember/component/template-only.js +1 -1
  12. package/dist/dev/packages/@ember/engine/index.js +1 -3
  13. package/dist/dev/packages/@ember/helper/index.js +8 -37
  14. package/dist/dev/packages/@ember/modifier/index.js +2 -2
  15. package/dist/dev/packages/@ember/modifier/on.js +1 -1
  16. package/dist/dev/packages/@ember/object/index.js +22 -17
  17. package/dist/dev/packages/@ember/reactive/collections.js +2 -0
  18. package/dist/dev/packages/@ember/renderer/index.js +1 -1
  19. package/dist/dev/packages/@ember/routing/index.js +11 -7
  20. package/dist/dev/packages/@ember/routing/route.js +3 -3
  21. package/dist/dev/packages/@ember/routing/router-service.js +20 -13
  22. package/dist/dev/packages/@ember/template-compiler/lib/compile-options.js +3 -3
  23. package/dist/dev/packages/@ember/template-compiler/lib/template.js +3 -3
  24. package/dist/dev/packages/@ember/template-factory/index.js +1 -1
  25. package/dist/dev/packages/@glimmer/destroyable/index.js +1 -1
  26. package/dist/dev/packages/@glimmer/manager/index.js +3 -3
  27. package/dist/dev/packages/@glimmer/node/index.js +2 -2
  28. package/dist/dev/packages/@glimmer/opcode-compiler/index.js +2 -5
  29. package/dist/dev/packages/@glimmer/program/index.js +4 -4
  30. package/dist/dev/packages/@glimmer/runtime/index.js +10 -12
  31. package/dist/dev/packages/@glimmer/vm/index.js +1 -1
  32. package/dist/dev/packages/ember/version.js +1 -1
  33. package/dist/dev/packages/ember-template-compiler/index.js +2 -2
  34. package/dist/dev/packages/shared-chunks/{api-AYt3zE12.js → api-BAmlf_CN.js} +1 -1
  35. package/dist/dev/packages/shared-chunks/{api-WvJPuo9z.js → api-BawZUDYD.js} +1 -1
  36. package/dist/dev/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
  37. package/dist/dev/packages/shared-chunks/{compiler-CXB_8GdR.js → compiler-QUSl_urU.js} +2 -3
  38. package/dist/dev/packages/shared-chunks/{curly-CvC8E_4-.js → curly-BBzF_bI8.js} +1 -1
  39. package/dist/dev/packages/shared-chunks/curried-BZnYakIg.js +5 -0
  40. package/dist/dev/packages/shared-chunks/{debug-to-string-CFb7h0lY.js → debug-to-string-C6LsA_qz.js} +1 -2
  41. package/dist/dev/packages/shared-chunks/{element-C-QcIABg.js → element-Cf3hqNOD.js} +4 -2
  42. package/dist/dev/packages/shared-chunks/{element-builder-kHVx0F__.js → element-builder--iTIJyCB.js} +1 -1
  43. package/dist/dev/packages/shared-chunks/{get-CpJjYeJO.js → get-BehtPmsu.js} +31 -34
  44. package/dist/dev/packages/shared-chunks/{hash-D3BENmhU.js → hash-BTwOuDGQ.js} +17 -11
  45. package/dist/dev/packages/shared-chunks/{helper-DlC4YesW.js → helper-BubrhyuN.js} +20 -8
  46. package/dist/dev/packages/shared-chunks/{index-CTxkmV78.js → index-CL1zjHwo.js} +91 -113
  47. package/dist/dev/packages/shared-chunks/{index-DmGmwWPJ.js → index-CyZiGiEI.js} +5 -6
  48. package/dist/dev/packages/shared-chunks/{internal-CbQSKXEm.js → internal-CAL-jHZt.js} +2 -2
  49. package/dist/dev/packages/shared-chunks/{internal-helper-Dsl9_7H_.js → internal-helper-Ez7zbEIa.js} +1 -1
  50. package/dist/dev/packages/shared-chunks/{invoke-B6j6DdDz.js → invoke-B8M5fQQS.js} +2 -2
  51. package/dist/dev/packages/shared-chunks/{on-D8QwT-eN.js → on-BQii6ILK.js} +8 -8
  52. package/dist/dev/packages/shared-chunks/{or-DBU9Ge4r.js → or-BTH3yuFG.js} +1 -1
  53. package/dist/dev/packages/shared-chunks/{program-context-CqcQMsfa.js → program-context-CadjldRr.js} +4 -3
  54. package/dist/{prod/packages/shared-chunks/registers-DoamZwaG.js → dev/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
  55. package/dist/dev/packages/shared-chunks/{rehydrate-builder-DdzXTaJk.js → rehydrate-builder-DCyIgnCR.js} +2 -2
  56. package/dist/dev/packages/shared-chunks/{render-DDdabL30.js → render-CpKaO-BO.js} +9 -8
  57. package/dist/dev/packages/shared-chunks/{chunk-3SQBS3Y5-Cj4eryg1.js → runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
  58. package/dist/dev/packages/shared-chunks/{serialize-builder-B3u9Wr3n.js → serialize-builder-DxgGRvH_.js} +1 -1
  59. package/dist/dev/packages/shared-chunks/{setup-registry-XxD0xvgf.js → setup-registry-BQZJfq-Y.js} +7 -7
  60. package/dist/dev/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
  61. package/dist/dev/packages/shared-chunks/{template-kM-7TTcc.js → template-R_5UMHhb.js} +1 -1
  62. package/dist/dev/packages/shared-chunks/{template-only-Yluyu0DY.js → template-only-BqOt8bDl.js} +1 -1
  63. package/dist/dev/packages/shared-chunks/{textarea-C0Us0PNJ.js → textarea-lD4apgrP.js} +9 -5
  64. package/dist/dev/packages/shared-chunks/{unique-id-A83bjEE-.js → unique-id-CgmHQiwi.js} +1 -1
  65. package/dist/dev/packages/shared-chunks/{untouchable-this-cH6_N2LJ.js → untouchable-this-B3DVwpHS.js} +6 -6
  66. package/dist/dev/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
  67. package/dist/prod/packages/@ember/-internals/container/index.js +2 -3
  68. package/dist/prod/packages/@ember/-internals/glimmer/index.js +9 -9
  69. package/dist/prod/packages/@ember/-internals/meta/lib/meta.js +0 -2
  70. package/dist/prod/packages/@ember/-internals/metal/index.js +16 -17
  71. package/dist/prod/packages/@ember/-internals/routing/index.js +1 -2
  72. package/dist/prod/packages/@ember/-internals/runtime/lib/ext/rsvp.js +0 -1
  73. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/-proxy.js +4 -5
  74. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/action_handler.js +1 -2
  75. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/registry_proxy.js +0 -1
  76. package/dist/prod/packages/@ember/-internals/runtime/lib/mixins/target_action_support.js +3 -4
  77. package/dist/prod/packages/@ember/-internals/utils/index.js +0 -1
  78. package/dist/prod/packages/@ember/-internals/views/index.js +0 -1
  79. package/dist/prod/packages/@ember/-internals/views/lib/mixins/action_support.js +1 -2
  80. package/dist/prod/packages/@ember/-internals/views/lib/system/event_dispatcher.js +2 -3
  81. package/dist/prod/packages/@ember/-internals/views/lib/system/utils.js +0 -1
  82. package/dist/prod/packages/@ember/-internals/views/lib/views/core_view.js +2 -2
  83. package/dist/prod/packages/@ember/-internals/views/lib/views/states.js +0 -1
  84. package/dist/prod/packages/@ember/application/index.js +3 -3
  85. package/dist/prod/packages/@ember/application/instance.js +3 -4
  86. package/dist/prod/packages/@ember/application/namespace.js +1 -2
  87. package/dist/prod/packages/@ember/array/index.js +9 -6
  88. package/dist/prod/packages/@ember/array/proxy.js +5 -6
  89. package/dist/prod/packages/@ember/component/helper.js +1 -1
  90. package/dist/prod/packages/@ember/component/index.js +15 -10
  91. package/dist/prod/packages/@ember/controller/index.js +3 -3
  92. package/dist/prod/packages/@ember/debug/data-adapter.js +1 -1
  93. package/dist/prod/packages/@ember/engine/index.js +3 -6
  94. package/dist/prod/packages/@ember/engine/instance.js +0 -1
  95. package/dist/prod/packages/@ember/helper/index.js +5 -34
  96. package/dist/prod/packages/@ember/modifier/on.js +1 -1
  97. package/dist/prod/packages/@ember/object/-internals.js +0 -1
  98. package/dist/prod/packages/@ember/object/compat.js +1 -2
  99. package/dist/prod/packages/@ember/object/computed.js +2 -2
  100. package/dist/prod/packages/@ember/object/core.js +5 -6
  101. package/dist/prod/packages/@ember/object/evented.js +2 -2
  102. package/dist/prod/packages/@ember/object/events.js +1 -1
  103. package/dist/prod/packages/@ember/object/index.js +30 -25
  104. package/dist/prod/packages/@ember/object/internals.js +0 -1
  105. package/dist/prod/packages/@ember/object/lib/computed/computed_macros.js +4 -5
  106. package/dist/prod/packages/@ember/object/lib/computed/reduce_computed_macros.js +2 -3
  107. package/dist/prod/packages/@ember/object/mixin.js +4 -5
  108. package/dist/prod/packages/@ember/object/observable.js +7 -8
  109. package/dist/prod/packages/@ember/object/observers.js +1 -1
  110. package/dist/prod/packages/@ember/object/promise-proxy-mixin.js +3 -3
  111. package/dist/prod/packages/@ember/reactive/collections.js +2 -0
  112. package/dist/prod/packages/@ember/renderer/index.js +1 -1
  113. package/dist/prod/packages/@ember/routing/history-location.js +0 -1
  114. package/dist/prod/packages/@ember/routing/index.js +10 -7
  115. package/dist/prod/packages/@ember/routing/lib/dsl.js +0 -2
  116. package/dist/prod/packages/@ember/routing/lib/generate_controller.js +1 -2
  117. package/dist/prod/packages/@ember/routing/lib/routing-service.js +2 -3
  118. package/dist/prod/packages/@ember/routing/lib/utils.js +1 -2
  119. package/dist/prod/packages/@ember/routing/none-location.js +0 -1
  120. package/dist/prod/packages/@ember/routing/route.js +9 -10
  121. package/dist/prod/packages/@ember/routing/router-service.js +22 -16
  122. package/dist/prod/packages/@ember/routing/router.js +3 -4
  123. package/dist/prod/packages/@ember/runloop/index.js +1 -2
  124. package/dist/prod/packages/@ember/service/index.js +1 -1
  125. package/dist/prod/packages/@ember/template-compiler/lib/compile-options.js +3 -4
  126. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-attrs.js +0 -1
  127. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-against-named-outlets.js +0 -1
  128. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-input-helper-without-block.js +0 -1
  129. package/dist/prod/packages/@ember/template-compiler/lib/plugins/assert-reserved-named-arguments.js +0 -2
  130. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-each-track-array.js +0 -1
  131. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-in-element.js +0 -1
  132. package/dist/prod/packages/@ember/template-compiler/lib/plugins/transform-resolutions.js +0 -1
  133. package/dist/prod/packages/@ember/template-compiler/lib/template.js +2 -2
  134. package/dist/prod/packages/@ember/template-factory/index.js +1 -1
  135. package/dist/prod/packages/@ember/utils/lib/compare.js +0 -1
  136. package/dist/prod/packages/@ember/utils/lib/is_empty.js +1 -1
  137. package/dist/prod/packages/@glimmer/node/index.js +2 -2
  138. package/dist/prod/packages/@glimmer/opcode-compiler/index.js +2 -5
  139. package/dist/prod/packages/@glimmer/program/index.js +2 -2
  140. package/dist/prod/packages/@glimmer/runtime/index.js +9 -11
  141. package/dist/prod/packages/@glimmer/tracking/index.js +1 -1
  142. package/dist/prod/packages/@glimmer/vm/index.js +1 -1
  143. package/dist/prod/packages/ember/version.js +1 -1
  144. package/dist/prod/packages/ember-template-compiler/index.js +2 -3
  145. package/dist/prod/packages/shared-chunks/{alias-CLuFeKoV.js → alias-DBW_V5vD.js} +5 -6
  146. package/dist/prod/packages/shared-chunks/{array-DHdr4__s.js → array-D6Couewv.js} +2 -3
  147. package/dist/prod/packages/shared-chunks/assert-Zqc4wiAV.js +6 -0
  148. package/dist/prod/packages/shared-chunks/{chain-tags-BJqcuCM1.js → chain-tags-C9rFtQ_x.js} +0 -1
  149. package/dist/prod/packages/shared-chunks/{compiler-DjQtTQGk.js → compiler-c4yUVrl_.js} +2 -3
  150. package/dist/prod/packages/shared-chunks/{computed-2Udcmflw.js → computed-DjCIU_ht.js} +3 -4
  151. package/dist/prod/packages/shared-chunks/{container-D5NwW5Fd.js → container-BYOnjnwz.js} +0 -1
  152. package/dist/prod/packages/shared-chunks/{curly-BsqvV8G0.js → curly-ZzX43b50.js} +2 -3
  153. package/dist/prod/packages/shared-chunks/curried-BZnYakIg.js +5 -0
  154. package/dist/prod/packages/shared-chunks/{debug-render-tree-BLtnOSbb.js → debug-render-tree-CF5O4-WI.js} +4 -4
  155. package/dist/prod/packages/shared-chunks/{decorator-DBCISop4.js → decorator-9ikVwsjY.js} +0 -1
  156. package/dist/prod/packages/shared-chunks/{element-BjFr0tO0.js → element-9DRa_9dO.js} +2 -1
  157. package/dist/prod/packages/shared-chunks/{element-builder-BPjq0rxK.js → element-builder-CnlTPNyw.js} +1 -1
  158. package/dist/prod/packages/shared-chunks/{events-970OxD6Q.js → events-DYrYz3V8.js} +0 -1
  159. package/dist/prod/packages/shared-chunks/{get-D5wxdTkY.js → get-Dt5L0TcU.js} +31 -34
  160. package/dist/prod/packages/shared-chunks/{get_properties-BcAC5sGx.js → get_properties-Nn08mLAH.js} +1 -1
  161. package/dist/prod/packages/shared-chunks/{hash-DcUe-meU.js → hash-Dkj3I4L4.js} +16 -10
  162. package/dist/prod/packages/shared-chunks/{helper-Da672z4a.js → helper-CN6UzshW.js} +18 -7
  163. package/dist/prod/packages/shared-chunks/{index--2U-v2nf.js → index-Bj71BDDA.js} +4 -5
  164. package/dist/prod/packages/shared-chunks/{index-D87qoERP.js → index-ClxHbCe9.js} +90 -112
  165. package/dist/prod/packages/shared-chunks/{injected_property-D9B-fPiH.js → injected_property--eJunJph.js} +2 -3
  166. package/dist/prod/packages/shared-chunks/{invoke-Dr_CRwA_.js → invoke-Cj5zMqHz.js} +1 -1
  167. package/dist/prod/packages/shared-chunks/{libraries-DaXpIDYN.js → libraries-_k-4KK5_.js} +1 -2
  168. package/dist/prod/packages/shared-chunks/{observers-Co4JALkS.js → observers-CDkeR0nI.js} +2 -2
  169. package/dist/prod/packages/shared-chunks/{on-C3ZQiUUD.js → on-CWgOWNSL.js} +7 -7
  170. package/dist/prod/packages/shared-chunks/{or-oTVMuHc8.js → or-Crsa2wci.js} +1 -1
  171. package/dist/prod/packages/shared-chunks/{program-context-CGMN-aQM.js → program-context-B8HKU7wu.js} +4 -3
  172. package/dist/prod/packages/shared-chunks/{property_get-hWJ0nGhW.js → property_get-CAFdpRyu.js} +0 -1
  173. package/dist/prod/packages/shared-chunks/{property_set-Dj5-ScWk.js → property_set-BunbMFtp.js} +3 -4
  174. package/dist/{dev/packages/shared-chunks/registers-DoamZwaG.js → prod/packages/shared-chunks/registers-C_W2qYHJ.js} +1 -1
  175. package/dist/prod/packages/shared-chunks/{rehydrate-builder-BKg2X6Lo.js → rehydrate-builder-DJ8k-6fg.js} +2 -2
  176. package/dist/prod/packages/shared-chunks/{render-nx5-PsDW.js → render-DkJJmoI4.js} +7 -6
  177. package/dist/prod/packages/shared-chunks/{chunk-3SQBS3Y5-Cj4eryg1.js → runtime-CYyqkz5q-BOdRhmsS.js} +4 -59
  178. package/dist/prod/packages/shared-chunks/{serialize-builder-BGbC30SN.js → serialize-builder-R3Ozg0sC.js} +1 -1
  179. package/dist/prod/packages/shared-chunks/{set_properties-oPyURk67.js → set_properties-LT3RzRmJ.js} +2 -2
  180. package/dist/prod/packages/shared-chunks/{setup-registry-TiaKLj5k.js → setup-registry-B3DhqtxX.js} +7 -8
  181. package/dist/prod/packages/shared-chunks/syscall-ops-BPFtDquC.js +133 -0
  182. package/dist/prod/packages/shared-chunks/{textarea-CPKZ1c_O.js → textarea-Byj32raR.js} +9 -6
  183. package/dist/prod/packages/shared-chunks/{tracked-CffAABMz.js → tracked-DAVrVqJl.js} +2 -3
  184. package/dist/prod/packages/shared-chunks/vm-ops-ImHv0Wtg.js +12 -0
  185. package/docs/data.json +196 -216
  186. package/lib/index.js +0 -1
  187. package/package.json +14 -15
  188. package/types/stable/@ember/-internals/glimmer/index.d.ts +165 -121
  189. package/types/stable/@ember/-internals/glimmer/lib/component.d.ts +8 -2
  190. package/types/stable/@ember/-internals/glimmer/lib/glimmer-tracking-docs.d.ts +12 -12
  191. package/types/stable/@ember/-internals/glimmer/lib/helper.d.ts +18 -6
  192. package/types/stable/@ember/-internals/glimmer/lib/helpers/array.d.ts +3 -1
  193. package/types/stable/@ember/-internals/glimmer/lib/helpers/component.d.ts +65 -121
  194. package/types/stable/@ember/-internals/glimmer/lib/helpers/concat.d.ts +8 -4
  195. package/types/stable/@ember/-internals/glimmer/lib/helpers/each-in.d.ts +16 -14
  196. package/types/stable/@ember/-internals/glimmer/lib/helpers/element.d.ts +2 -0
  197. package/types/stable/@ember/-internals/glimmer/lib/helpers/fn.d.ts +11 -7
  198. package/types/stable/@ember/-internals/glimmer/lib/helpers/get.d.ts +23 -29
  199. package/types/stable/@ember/-internals/glimmer/lib/helpers/hash.d.ts +3 -1
  200. package/types/stable/@ember/-internals/glimmer/lib/helpers/if-unless.d.ts +95 -49
  201. package/types/stable/@ember/-internals/glimmer/lib/helpers/mut.d.ts +23 -54
  202. package/types/stable/@ember/-internals/glimmer/lib/helpers/page-title.d.ts +6 -2
  203. package/types/stable/@ember/-internals/glimmer/lib/helpers/readonly.d.ts +4 -8
  204. package/types/stable/@ember/-internals/glimmer/lib/modifiers/on.d.ts +10 -10
  205. package/types/stable/@ember/-internals/glimmer/lib/syntax/in-element.d.ts +2 -0
  206. package/types/stable/@ember/-internals/glimmer/lib/syntax/let.d.ts +2 -14
  207. package/types/stable/@ember/-internals/glimmer/lib/syntax/mount.d.ts +15 -11
  208. package/types/stable/@ember/-internals/glimmer/lib/syntax/outlet.d.ts +17 -10
  209. package/types/stable/@ember/-internals/runtime/lib/mixins/target_action_support.d.ts +1 -1
  210. package/types/stable/@ember/-internals/views/index.d.ts +0 -1
  211. package/types/stable/@ember/array/index.d.ts +4 -0
  212. package/types/stable/@ember/controller/index.d.ts +1 -1
  213. package/types/stable/@ember/helper/index.d.ts +0 -29
  214. package/types/stable/@ember/object/index.d.ts +4 -3
  215. package/types/stable/@ember/object/observable.d.ts +4 -0
  216. package/types/stable/@ember/routing/route.d.ts +1 -1
  217. package/types/stable/@ember/routing/router-service.d.ts +20 -12
  218. package/types/stable/@glimmer/runtime/lib/helpers/array.d.ts +1 -1
  219. package/types/stable/@glimmer/runtime/lib/helpers/concat.d.ts +8 -3
  220. package/types/stable/@glimmer/runtime/lib/helpers/fn.d.ts +13 -7
  221. package/types/stable/@glimmer/runtime/lib/helpers/get.d.ts +21 -29
  222. package/types/stable/@glimmer/runtime/lib/helpers/hash.d.ts +1 -1
  223. package/types/stable/@glimmer/syntax/lib/get-template-locals.d.ts +1 -1
  224. package/types/stable/@glimmer/tracking/index.d.ts +12 -12
  225. package/types/stable/index.d.ts +0 -1
  226. package/dist/dev/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
  227. package/dist/dev/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
  228. package/dist/dev/packages/shared-chunks/curried-BVwSNqpf.js +0 -628
  229. package/dist/dev/packages/shared-chunks/opcode-metadata-9iSW5JGP.js +0 -285
  230. package/dist/prod/packages/@ember/-internals/views/lib/component_lookup.js +0 -14
  231. package/dist/prod/packages/shared-chunks/assert-CUCJBR2C.js +0 -19
  232. package/dist/prod/packages/shared-chunks/curried-BVwSNqpf.js +0 -628
  233. package/dist/prod/packages/shared-chunks/opcode-metadata-9iSW5JGP.js +0 -285
  234. package/types/stable/@ember/-internals/views/lib/component_lookup.d.ts +0 -8
@@ -9,18 +9,18 @@ import { associateDestroyableChild, isDestroyed, destroy, registerDestructor, is
9
9
  import { artifacts } from '../@glimmer/program/index.js';
10
10
  import { R as RuntimeOpImpl } from './program-DzAfcWFj.js';
11
11
  import { v as valueForRef, U as UNDEFINED_REFERENCE, a as createComputeRef, i as isConstRef, c as createConstRef, d as isUpdatableRef, j as createInvokableRef, k as createReadOnlyRef, l as createUnboundRef, h as createDebugAliasRef, g as childRefFromParts, u as updateRef } from './reference-BoPB2LfI.js';
12
- import { c as clientBuilder } from './element-builder-kHVx0F__.js';
13
- import { E as EMPTY_ARGS, c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './untouchable-this-cH6_N2LJ.js';
14
- import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-DDdabL30.js';
12
+ import { c as clientBuilder } from './element-builder--iTIJyCB.js';
13
+ import { E as EMPTY_ARGS, c as createCapturedArgs, b as EMPTY_POSITIONAL, d as curry } from './untouchable-this-B3DVwpHS.js';
14
+ import { g as runtimeOptions, i as inTransaction, r as renderComponent$1, d as renderMain } from './render-CpKaO-BO.js';
15
15
  import { d as dict } from './collections-DPkjqeA3.js';
16
- import { u as unwrapTemplate, a as CurlyComponentManager, i as initialRenderInstrumentDetails, p as processComponentInitializationAssertions, b as ComponentStateBucket, D as DIRTY_TAG, c as isCurlyManager, B as BOUNDS } from './curly-CvC8E_4-.js';
16
+ import { u as unwrapTemplate, a as CurlyComponentManager, i as initialRenderInstrumentDetails, p as processComponentInitializationAssertions, b as ComponentStateBucket, D as DIRTY_TAG, c as isCurlyManager, B as BOUNDS } from './curly-BBzF_bI8.js';
17
17
  import { b as CONSTANT_TAG, k as consumeTag, u as isTracking, o as debug, D as DIRTY_TAG$1, m as createTag, z as valueForTag, c as CURRENT_TAG, y as validateTag } from './cache-B7dqAS38.js';
18
18
  import { a as RSVP } from './rsvp-CnCSY930.js';
19
19
  import { h as hasDOM } from './index-BGP1rw3B.js';
20
20
  import EngineInstance from '../@ember/engine/instance.js';
21
21
  import { _instrumentStart } from '../@ember/instrumentation/index.js';
22
22
  import { c as capabilityFlagsFrom } from './capabilities-CZkuOqqC.js';
23
- import { t as templateFactory } from './index-DmGmwWPJ.js';
23
+ import { t as templateFactory } from './index-CyZiGiEI.js';
24
24
  import { assert } from '../@ember/debug/lib/assert.js';
25
25
  import { g as getFactoryFor } from './container-BzzHmCNj.js';
26
26
  import { g as get, b as _getProp } from './property_get-CIBS9umw.js';
@@ -33,23 +33,23 @@ import { i as isObject } from './spec-BXl1reqK.js';
33
33
  import { t as tagFor } from './meta-BmRXesrk.js';
34
34
  import { contentFor } from '../@ember/-internals/runtime/lib/mixins/-proxy.js';
35
35
  import { i as isProxy } from './is_proxy-Bzg0d4m4.js';
36
- import { i as internalHelper } from './internal-helper-Dsl9_7H_.js';
36
+ import { i as internalHelper } from './internal-helper-Ez7zbEIa.js';
37
37
  import { i as isHTMLSafe } from './index-D-xTBV4B.js';
38
38
  import { isArray } from '../@ember/array/index.js';
39
- import { g as getComponentTemplate } from './template-kM-7TTcc.js';
40
- import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-WvJPuo9z.js';
41
- import { h as hash, f as fn, a as array } from './hash-D3BENmhU.js';
42
- import { g as get$1, c as concat } from './get-CpJjYeJO.js';
43
- import { o as on } from './on-D8QwT-eN.js';
44
- import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-Yluyu0DY.js';
45
- import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-DlC4YesW.js';
39
+ import { g as getComponentTemplate } from './template-R_5UMHhb.js';
40
+ import { c as hasInternalComponentManager, j as setInternalHelperManager, g as getInternalComponentManager } from './api-BawZUDYD.js';
41
+ import { h as hash, f as fn, a as array } from './hash-BTwOuDGQ.js';
42
+ import { g as get$1, c as concat } from './get-BehtPmsu.js';
43
+ import { o as on } from './on-BQii6ILK.js';
44
+ import { T as TEMPLATE_ONLY_COMPONENT_MANAGER, t as templateOnlyComponent } from './template-only-BqOt8bDl.js';
45
+ import { i as isClassicHelper, C as CLASSIC_HELPER_MANAGER } from './helper-BubrhyuN.js';
46
46
  import { dasherize } from '../@ember/-internals/string/index.js';
47
- import { a as uniqueId } from './unique-id-A83bjEE-.js';
47
+ import { a as uniqueId } from './unique-id-CgmHQiwi.js';
48
48
  import '../route-recognizer/index.js';
49
49
  import './unrecognized-url-error-B3wUTorp.js';
50
50
  import '../@ember/routing/lib/routing-service.js';
51
51
  import { generateControllerFactory } from '../@ember/routing/lib/generate_controller.js';
52
- import { E as EvaluationContextImpl } from './program-context-CqcQMsfa.js';
52
+ import { E as EvaluationContextImpl } from './program-context-CadjldRr.js';
53
53
 
54
54
  function instrumentationPayload$1(def) {
55
55
  // "main" used to be the outlet name, keeping it around for compatibility
@@ -246,7 +246,7 @@ class RootComponentDefinition {
246
246
  */
247
247
 
248
248
  /**
249
- The `{{#each}}` helper loops over elements in a collection. It is an extension
249
+ The `{{#each}}` keyword loops over elements in a collection. It is an extension
250
250
  of the base Handlebars `{{#each}}` helper.
251
251
 
252
252
  The default behavior of `{{#each}}` is to yield its inner block once for every
@@ -290,6 +290,8 @@ class RootComponentDefinition {
290
290
  {{/each}}
291
291
  </ul>
292
292
  ```
293
+
294
+ `#each` is a keyword and does not need to be imported.
293
295
 
294
296
  ### Specifying Keys
295
297
 
@@ -357,11 +359,11 @@ class RootComponentDefinition {
357
359
  */
358
360
 
359
361
  /**
360
- The `{{each-in}}` helper loops over properties on an object.
362
+ The `{{#each-in}}` keyword loops over properties on an object.
361
363
 
362
364
  For example, given this component definition:
363
365
 
364
- ```app/components/developer-details.js
366
+ ```app/components/developer-details.gjs
365
367
  import Component from '@glimmer/component';
366
368
  import { tracked } from '@glimmer/tracking';
367
369
 
@@ -370,21 +372,19 @@ class RootComponentDefinition {
370
372
  "name": "Shelly Sails",
371
373
  "age": 42
372
374
  };
375
+
376
+ <template>
377
+ <ul>
378
+ {{#each-in this.developer as |key value|}}
379
+ <li>{{key}}: {{value}}</li>
380
+ {{/each-in}}
381
+ </ul>
382
+ </template>
373
383
  }
374
384
  ```
375
385
 
376
386
  This template would display all properties on the `developer`
377
- object in a list:
378
-
379
- ```app/components/developer-details.hbs
380
- <ul>
381
- {{#each-in this.developer as |key value|}}
382
- <li>{{key}}: {{value}}</li>
383
- {{/each-in}}
384
- </ul>
385
- ```
386
-
387
- Outputting their name and age:
387
+ object in a list, outputting their name and age:
388
388
 
389
389
  ```html
390
390
  <ul>
@@ -392,6 +392,8 @@ class RootComponentDefinition {
392
392
  <li>age: 42</li>
393
393
  </ul>
394
394
  ```
395
+
396
+ `#each-in` is a keyword and does not need to be imported.
395
397
 
396
398
  @method each-in
397
399
  @for Ember.Templates.helpers
@@ -861,73 +863,42 @@ const trackArray = internalHelper(({
861
863
  */
862
864
 
863
865
  /**
864
- The `mut` helper lets you __clearly specify__ that a child `Component` can update the
865
- (mutable) value passed to it, which will __change the value of the parent component__.
866
-
867
- To specify that a parameter is mutable, when invoking the child `Component`:
866
+ The `mut` helper is a shortcut for updating for args.
867
+
868
+ However, defining update functions on your backing class is preferable to using `mut`.
869
+
870
+ More directly: Don't use `mut`.
868
871
 
869
- ```handlebars
870
- <MyChild @childClickCount={{fn (mut totalClicks)}} />
871
- ```
872
-
873
- or
874
-
875
- ```handlebars
876
- {{my-child childClickCount=(mut totalClicks)}}
877
- ```
878
-
879
- The child `Component` can then modify the parent's value just by modifying its own
880
- property:
881
-
882
- ```javascript
883
- // my-child.js
884
- export default class MyChild extends Component {
885
- click() {
886
- this.incrementProperty('childClickCount');
887
- }
888
- }
889
- ```
890
-
891
- Note that for curly components (`{{my-component}}`) the bindings are already mutable,
892
- making the `mut` unnecessary.
893
-
894
- Additionally, the `mut` helper can be combined with the `fn` helper to
895
- mutate a value. For example:
896
-
897
- ```handlebars
898
- <MyChild @childClickCount={{this.totalClicks}} @click-count-change={{fn (mut totalClicks))}} />
899
- ```
900
-
901
- or
872
+ The `mut` helper, when used with `fn`, will return a function that
873
+ sets the value passed to `mut` to its first argument. As an example, we can create a
874
+ button that increments a value passing the value directly to the `fn`:
902
875
 
903
876
  ```handlebars
904
- {{my-child childClickCount=totalClicks click-count-change=(fn (mut totalClicks))}}
877
+ <MyChild @childClickCount={{this.totalClicks}} @clickCountChange={{fn (mut this.totalClicks)}} />
905
878
  ```
906
879
 
907
- The child `Component` would invoke the function with the new click value:
880
+ The child `Component` would invoke the function with the new click count:
908
881
 
909
- ```javascript
910
- // my-child.js
882
+ ```app/components/my-child.gjs
883
+ import Component from '@glimmer/component';
884
+ import { action } from '@ember/object';
885
+
911
886
  export default class MyChild extends Component {
912
- click() {
913
- this.get('click-count-change')(this.get('childClickCount') + 1);
887
+ @action
888
+ update() {
889
+ this.args.clickCountChange(this.args.childClickCount + 1);
914
890
  }
891
+
892
+ <template>
893
+ <button {{on "click" this.update}}>
894
+ Click me!
895
+ </button>
896
+ </template>
915
897
  }
916
898
  ```
917
899
 
918
900
  The `mut` helper changes the `totalClicks` value to what was provided as the `fn` argument.
919
901
 
920
- The `mut` helper, when used with `fn`, will return a function that
921
- sets the value passed to `mut` to its first argument. As an example, we can create a
922
- button that increments a value passing the value directly to the `fn`:
923
-
924
- ```handlebars
925
- {{! inc helper is not provided by Ember }}
926
- <button onclick={{fn (mut count) (inc count)}}>
927
- Increment count
928
- </button>
929
- ```
930
-
931
902
  @method mut
932
903
  @param {Object} [attr] the "two-way" attribute that can be modified.
933
904
  @for Ember.Templates.helpers
@@ -962,6 +933,10 @@ const mut = internalHelper(({
962
933
  /**
963
934
  The `readonly` helper let's you specify that a binding is one-way only,
964
935
  instead of two-way.
936
+
937
+ This is a vestigial helper from the days of `@ember/component` and does not apply to
938
+ components extending from `@glimmer/component`.
939
+
965
940
  When you pass a `readonly` binding from an outer context (e.g. parent component),
966
941
  to to an inner context (e.g. child component), you are saying that changing that
967
942
  property in the inner context does not change the value in the outer context.
@@ -974,14 +949,6 @@ const mut = internalHelper(({
974
949
  }
975
950
  ```
976
951
 
977
- ```app/templates/components/my-parent.hbs
978
- {{log totalClicks}} // -> 3
979
- <MyChild @childClickCount={{readonly totalClicks}} />
980
- ```
981
- ```
982
- {{my-child childClickCount=(readonly totalClicks)}}
983
- ```
984
-
985
952
  Now, when you update `childClickCount`:
986
953
 
987
954
  ```app/components/my-child.js
@@ -1265,15 +1232,14 @@ class MountDefinition {
1265
1232
 
1266
1233
  For example, the following template mounts the `ember-chat` engine:
1267
1234
 
1268
- ```handlebars
1269
- {{! application.hbs }}
1235
+ ```app/templates/application.gjs
1270
1236
  {{mount "ember-chat"}}
1271
1237
  ```
1272
1238
 
1273
1239
  Additionally, you can also pass in a `model` argument that will be
1274
1240
  set as the engines model. This can be an existing object:
1275
1241
 
1276
- ```
1242
+ ```hbs
1277
1243
  <div>
1278
1244
  {{mount 'admin' model=userSettings}}
1279
1245
  </div>
@@ -1281,15 +1247,20 @@ class MountDefinition {
1281
1247
 
1282
1248
  Or an inline `hash`, and you can even pass components:
1283
1249
 
1250
+ ```gjs
1251
+ import SignInButton from '../components/sign-in-button';
1252
+ <template>
1253
+ <div>
1254
+ <h1>Application template!</h1>
1255
+ {{mount 'admin' model=(hash
1256
+ title='Secret Admin'
1257
+ signInButton=SignInButton
1258
+ )}}
1259
+ </div>
1260
+ </template>
1284
1261
  ```
1285
- <div>
1286
- <h1>Application template!</h1>
1287
- {{mount 'admin' model=(hash
1288
- title='Secret Admin'
1289
- signInButton=(component 'sign-in-button')
1290
- )}}
1291
- </div>
1292
- ```
1262
+
1263
+ `mount` is built-in and does not need to be imported.
1293
1264
 
1294
1265
  @method mount
1295
1266
  @param {String} name Name of the engine to mount.
@@ -1433,23 +1404,30 @@ function makeRouteTemplate(owner, name, template) {
1433
1404
  /**
1434
1405
  The `{{outlet}}` helper lets you specify where a child route will render in
1435
1406
  your template. An important use of the `{{outlet}}` helper is in your
1436
- application's `application.hbs` file:
1437
-
1438
- ```app/templates/application.hbs
1439
- <MyHeader />
1440
-
1441
- <div class="my-dynamic-content">
1442
- <!-- this content will change based on the current route, which depends on the current URL -->
1443
- {{outlet}}
1444
- </div>
1445
-
1446
- <MyFooter />
1407
+ application's `application.gjs` file:
1408
+
1409
+ ```app/templates/application.gjs
1410
+ import MyHeader from '../components/my-header';
1411
+ import MyFooter from '../components/my-footer';
1412
+
1413
+ <template>
1414
+ <MyHeader />
1415
+
1416
+ <div class="my-dynamic-content">
1417
+ <!-- this content will change based on the current route, which depends on the current URL -->
1418
+ {{outlet}}
1419
+ </div>
1420
+
1421
+ <MyFooter />
1422
+ </template>
1447
1423
  ```
1448
1424
 
1449
1425
  See the [routing guide](https://guides.emberjs.com/release/routing/rendering-a-template/) for more
1450
1426
  information on how your `route` interacts with the `{{outlet}}` helper.
1451
1427
  Note: Your content __will not render__ if there isn't an `{{outlet}}` for it.
1452
1428
 
1429
+ `outlet` is built-in and does not need to be imported.
1430
+
1453
1431
  @method outlet
1454
1432
  @for Ember.Templates.helpers
1455
1433
  @public
@@ -1,16 +1,15 @@
1
1
  import { a as assign } from './object-utils-AijlD-JH.js';
2
2
  import { b as EMPTY_STRING_ARRAY, E as EMPTY_ARRAY, e as enumerate, r as reverse } from './array-utils-CZQxrdD3.js';
3
- import { s as VM_PRIMITIVE_OP, aG as VM_RETURN_OP, aM as encodeHandle, aN as isMachineOp, aw as VM_CONCAT_OP, an as VM_GET_VARIABLE_OP, r as VM_CONSTANT_REFERENCE_OP, ar as VM_GET_PROPERTY_OP, au as VM_HAS_BLOCK_OP, at as VM_SPREAD_BLOCK_OP, F as VM_COMPILE_BLOCK_OP, av as VM_HAS_BLOCK_PARAMS_OP, ax as VM_IF_INLINE_OP, ay as VM_NOT_OP, az as VM_GET_DYNAMIC_VAR_OP, aK as VM_PUSH_FRAME_OP, aA as VM_LOG_OP, aJ as VM_POP_FRAME_OP, z as VM_FETCH_OP, v as VM_PRIMITIVE_REFERENCE_OP, am as VM_HELPER_OP, w as VM_DUP_OP, al as VM_DYNAMIC_HELPER_OP, x as VM_POP_OP, a0 as VM_CAPTURE_ARGS_OP, ak as VM_CURRY_OP, aO as isSmallInt, aP as encodeImmediate, n as VM_PUSH_DYNAMIC_SCOPE_OP, A as VM_BIND_DYNAMIC_SCOPE_OP, o as VM_POP_DYNAMIC_SCOPE_OP, as as VM_GET_BLOCK_OP, G as VM_INVOKE_YIELD_OP, m as VM_POP_SCOPE_OP, l as VM_CHILD_SCOPE_OP, ao as VM_SET_VARIABLE_OP, aI as VM_INVOKE_VIRTUAL_OP, p as VM_CONSTANT_OP, E as VM_PUSH_BLOCK_SCOPE_OP, D as VM_PUSH_SYMBOL_TABLE_OP, $ as VM_PUSH_EMPTY_ARGS_OP, _ as VM_PUSH_ARGS_OP, B as VM_ENTER_OP, J as VM_JUMP_EQ_OP, aH as VM_JUMP_OP, C as VM_EXIT_OP, aF as VM_RETURN_TO_OP, I as VM_JUMP_UNLESS_OP, Y as VM_PUSH_COMPONENT_DEFINITION_OP, y as VM_LOAD_OP, a4 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a2 as VM_CREATE_COMPONENT_OP, a3 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a9 as VM_GET_COMPONENT_SELF_OP, aq as VM_ROOT_SCOPE_OP, ap as VM_SET_BLOCK_OP, ah as VM_DID_RENDER_LAYOUT_OP, ai as VM_COMMIT_COMPONENT_TRANSACTION_OP, a1 as VM_PREPARE_ARGS_OP, ad as VM_VIRTUAL_ROOT_SCOPE_OP, ae as VM_SET_NAMED_VARIABLES_OP, af as VM_SET_BLOCKS_OP, ag as VM_INVOKE_COMPONENT_LAYOUT_OP, a5 as VM_PUT_COMPONENT_OPERATIONS_OP, O as VM_OPEN_DYNAMIC_ELEMENT_OP, a8 as VM_DID_CREATE_ELEMENT_OP, R as VM_FLUSH_ELEMENT_OP, S as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Z as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, ab as VM_GET_COMPONENT_LAYOUT_OP, ac as VM_POPULATE_LAYOUT_OP, aa as VM_GET_COMPONENT_TAG_NAME_OP, M as VM_COMMENT_OP, T as VM_MODIFIER_OP, U as VM_DYNAMIC_MODIFIER_OP, W as VM_STATIC_ATTR_OP, a7 as VM_STATIC_COMPONENT_ATTR_OP, X as VM_DYNAMIC_ATTR_OP, a6 as VM_COMPONENT_ATTR_OP, N as VM_OPEN_ELEMENT_OP, aj as VM_DEBUGGER_OP, L as VM_TEXT_OP, j as VM_INVOKE_STATIC_OP, aB as VM_DYNAMIC_CONTENT_TYPE_OP, P as VM_PUSH_REMOTE_ELEMENT_OP, Q as VM_POP_REMOTE_ELEMENT_OP, K as VM_TO_BOOLEAN_OP, aC as VM_ENTER_LIST_OP, aE as VM_ITERATE_OP, aD as VM_EXIT_LIST_OP } from './opcode-metadata-9iSW5JGP.js';
4
- import './curried-BVwSNqpf.js';
5
- import './reference-BoPB2LfI.js';
3
+ import { r as VM_PRIMITIVE_OP, aF as encodeHandle, av as VM_CONCAT_OP, am as VM_GET_VARIABLE_OP, q as VM_CONSTANT_REFERENCE_OP, aq as VM_GET_PROPERTY_OP, at as VM_HAS_BLOCK_OP, as as VM_SPREAD_BLOCK_OP, E as VM_COMPILE_BLOCK_OP, au as VM_HAS_BLOCK_PARAMS_OP, aw as VM_IF_INLINE_OP, ax as VM_NOT_OP, ay as VM_GET_DYNAMIC_VAR_OP, az as VM_LOG_OP, y as VM_FETCH_OP, u as VM_PRIMITIVE_REFERENCE_OP, al as VM_HELPER_OP, v as VM_DUP_OP, ak as VM_DYNAMIC_HELPER_OP, w as VM_POP_OP, $ as VM_CAPTURE_ARGS_OP, aj as VM_CURRY_OP, aG as isSmallInt, aH as encodeImmediate, m as VM_PUSH_DYNAMIC_SCOPE_OP, z as VM_BIND_DYNAMIC_SCOPE_OP, n as VM_POP_DYNAMIC_SCOPE_OP, ar as VM_GET_BLOCK_OP, F as VM_INVOKE_YIELD_OP, l as VM_POP_SCOPE_OP, k as VM_CHILD_SCOPE_OP, an as VM_SET_VARIABLE_OP, o as VM_CONSTANT_OP, D as VM_PUSH_BLOCK_SCOPE_OP, C as VM_PUSH_SYMBOL_TABLE_OP, _ as VM_PUSH_EMPTY_ARGS_OP, Z as VM_PUSH_ARGS_OP, A as VM_ENTER_OP, I as VM_JUMP_EQ_OP, B as VM_EXIT_OP, H as VM_JUMP_UNLESS_OP, X as VM_PUSH_COMPONENT_DEFINITION_OP, x as VM_LOAD_OP, a3 as VM_BEGIN_COMPONENT_TRANSACTION_OP, a1 as VM_CREATE_COMPONENT_OP, a2 as VM_REGISTER_COMPONENT_DESTRUCTOR_OP, a8 as VM_GET_COMPONENT_SELF_OP, ap as VM_ROOT_SCOPE_OP, ao as VM_SET_BLOCK_OP, ag as VM_DID_RENDER_LAYOUT_OP, ah as VM_COMMIT_COMPONENT_TRANSACTION_OP, a0 as VM_PREPARE_ARGS_OP, ac as VM_VIRTUAL_ROOT_SCOPE_OP, ad as VM_SET_NAMED_VARIABLES_OP, ae as VM_SET_BLOCKS_OP, af as VM_INVOKE_COMPONENT_LAYOUT_OP, a4 as VM_PUT_COMPONENT_OPERATIONS_OP, N as VM_OPEN_DYNAMIC_ELEMENT_OP, a7 as VM_DID_CREATE_ELEMENT_OP, Q as VM_FLUSH_ELEMENT_OP, R as VM_CLOSE_ELEMENT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, Y as VM_RESOLVE_DYNAMIC_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, aa as VM_GET_COMPONENT_LAYOUT_OP, ab as VM_POPULATE_LAYOUT_OP, a9 as VM_GET_COMPONENT_TAG_NAME_OP, L as VM_COMMENT_OP, S as VM_MODIFIER_OP, T as VM_DYNAMIC_MODIFIER_OP, U as VM_STATIC_ATTR_OP, a6 as VM_STATIC_COMPONENT_ATTR_OP, W as VM_DYNAMIC_ATTR_OP, a5 as VM_COMPONENT_ATTR_OP, M as VM_OPEN_ELEMENT_OP, ai as VM_DEBUGGER_OP, K as VM_TEXT_OP, aA as VM_DYNAMIC_CONTENT_TYPE_OP, O as VM_PUSH_REMOTE_ELEMENT_OP, P as VM_POP_REMOTE_ELEMENT_OP, J as VM_TO_BOOLEAN_OP, aB as VM_ENTER_LIST_OP, aD as VM_ITERATE_OP, aC as VM_EXIT_LIST_OP } from './syscall-ops-BPFtDquC.js';
4
+ import { b as VM_RETURN_OP, i as isMachineOp, f as VM_PUSH_FRAME_OP, e as VM_POP_FRAME_OP, d as VM_INVOKE_VIRTUAL_OP, c as VM_JUMP_OP, a as VM_RETURN_TO_OP, V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
6
5
  import { e as expect, u as unwrap, S as StackImpl, d as dict } from './collections-DPkjqeA3.js';
7
6
  import { i as isPresentArray } from './present-B1rrjAVM.js';
8
- import { a as assert } from './assert-CUCJBR2C.js';
7
+ import { a as assert } from './assert-Zqc4wiAV.js';
9
8
  import { InstructionEncoderImpl } from '../@glimmer/encoder/index.js';
10
9
  import { b as TYPE_SIZE, A as ARG_SHIFT, M as MACHINE_MASK, I as InternalComponentCapabilities } from './flags-B9qxc-pB.js';
11
- import { d as debugToString } from './debug-to-string-CFb7h0lY.js';
10
+ import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
12
11
  import { o as opcodes } from './opcodes-CplRyHl_.js';
13
- import { a as $v0, f as $fp, $ as $s0, e as $sp, d as $s1 } from './registers-DoamZwaG.js';
12
+ import { a as $v0, f as $fp, $ as $s0, g as $sp, h as $s1 } from './registers-C_W2qYHJ.js';
14
13
  import { ContentType } from '../@glimmer/vm/index.js';
15
14
  import { h as hasCapability } from './capabilities-CZkuOqqC.js';
16
15
 
@@ -1,8 +1,8 @@
1
1
  import { setOwner } from '../@ember/-internals/owner/index.js';
2
2
  import { g as guidFor } from './guid-Cbq2sNV_.js';
3
3
  import '../@ember/debug/index.js';
4
- import { s as setComponentTemplate } from './template-kM-7TTcc.js';
5
- import { s as setInternalComponentManager } from './api-WvJPuo9z.js';
4
+ import { s as setComponentTemplate } from './template-R_5UMHhb.js';
5
+ import { s as setInternalComponentManager } from './api-BawZUDYD.js';
6
6
  import { v as valueForRef, i as isConstRef, c as createConstRef } from './reference-BoPB2LfI.js';
7
7
  import { x as untrack } from './cache-B7dqAS38.js';
8
8
  import { assert } from '../@ember/debug/lib/assert.js';
@@ -1,4 +1,4 @@
1
- import { j as setInternalHelperManager } from './api-WvJPuo9z.js';
1
+ import { j as setInternalHelperManager } from './api-BawZUDYD.js';
2
2
 
3
3
  function internalHelper(helper) {
4
4
  return setInternalHelperManager(helper, {});
@@ -1,8 +1,8 @@
1
1
  import { isDestroying, isDestroyed, associateDestroyableChild } from '../@glimmer/destroyable/index.js';
2
- import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-WvJPuo9z.js';
2
+ import { a as getInternalHelperManager, f as hasValue, h as hasDestroyable } from './api-BawZUDYD.js';
3
3
  import { getOwner } from '../@glimmer/owner/index.js';
4
4
  import { l as createCache, r as getValue } from './cache-B7dqAS38.js';
5
- import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './untouchable-this-cH6_N2LJ.js';
5
+ import { E as EMPTY_ARGS, a as EMPTY_NAMED, b as EMPTY_POSITIONAL } from './untouchable-this-B3DVwpHS.js';
6
6
 
7
7
  let ARGS_CACHES = new WeakMap() ;
8
8
  function getArgs(proxy) {
@@ -1,6 +1,6 @@
1
- import { g as buildUntouchableThis, h as check, e as reifyNamed } from './untouchable-this-cH6_N2LJ.js';
1
+ import { g as buildUntouchableThis, h as check, e as reifyNamed } from './untouchable-this-B3DVwpHS.js';
2
2
  import { registerDestructor } from '../@glimmer/destroyable/index.js';
3
- import { k as setInternalModifierManager } from './api-WvJPuo9z.js';
3
+ import { k as setInternalModifierManager } from './api-BawZUDYD.js';
4
4
  import { v as valueForRef } from './reference-BoPB2LfI.js';
5
5
  import { n as createUpdatableTag } from './cache-B7dqAS38.js';
6
6
 
@@ -139,11 +139,7 @@ function addEventListener(element, eventName, callback, options) {
139
139
  For example, if you'd like to run a function on your component when a `<button>`
140
140
  in the components template is clicked you might do something like:
141
141
 
142
- ```app/components/like-post.hbs
143
- <button {{on 'click' this.saveLike}}>Like this post!</button>
144
- ```
145
-
146
- ```app/components/like-post.js
142
+ ```app/components/like-post.gjs
147
143
  import Component from '@glimmer/component';
148
144
  import { action } from '@ember/object';
149
145
 
@@ -152,6 +148,10 @@ function addEventListener(element, eventName, callback, options) {
152
148
  // someone likes your post!
153
149
  // better send a request off to your server...
154
150
  }
151
+
152
+ <template>
153
+ <button {{on 'click' this.saveLike}}>Like this post!</button>
154
+ </template>
155
155
  }
156
156
  ```
157
157
 
@@ -199,7 +199,7 @@ function addEventListener(element, eventName, callback, options) {
199
199
  properly bound to the `items-list`, but let's explore what happens if we
200
200
  left out the arrow function:
201
201
 
202
- ```app/components/like-post.js
202
+ ```app/components/like-post.gjs
203
203
  import Component from '@glimmer/component';
204
204
 
205
205
  export default class LikePostComponent extends Component {
@@ -1,6 +1,6 @@
1
1
  import { toBool } from '../@glimmer/global-context/index.js';
2
2
  import { a as createComputeRef, v as valueForRef } from './reference-BoPB2LfI.js';
3
- import { i as internalHelper } from './hash-D3BENmhU.js';
3
+ import { i as internalHelper } from './hash-BTwOuDGQ.js';
4
4
 
5
5
  const and = internalHelper(({
6
6
  positional
@@ -1,7 +1,8 @@
1
- import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, j as VM_INVOKE_STATIC_OP } from './opcode-metadata-9iSW5JGP.js';
2
- import { $ as $s0 } from './registers-DoamZwaG.js';
1
+ import { V as VM_MAIN_OP, a as VM_CONTENT_TYPE_OP, b as VM_ASSERT_SAME_OP, c as VM_APPEND_HTML_OP, d as VM_APPEND_TEXT_OP, e as VM_RESOLVE_CURRIED_COMPONENT_OP, f as VM_PUSH_DYNAMIC_COMPONENT_INSTANCE_OP, g as VM_APPEND_SAFE_HTML_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP } from './syscall-ops-BPFtDquC.js';
2
+ import { V as VM_INVOKE_STATIC_OP } from './vm-ops-ImHv0Wtg.js';
3
+ import { $ as $s0 } from './registers-C_W2qYHJ.js';
3
4
  import { ContentType } from '../@glimmer/vm/index.js';
4
- import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-DmGmwWPJ.js';
5
+ import { f as EncoderImpl, g as encodeOp, i as invokePreparedComponent, S as SwitchCases, h as InvokeBareComponent, C as CallDynamic } from './index-CyZiGiEI.js';
5
6
 
6
7
  class StdLib {
7
8
  constructor(main, trustingGuardedAppend, cautiousGuardedAppend, trustingNonDynamicAppend, cautiousNonDynamicAppend) {
@@ -32,4 +32,4 @@ function isLowLevelRegister(register) {
32
32
  return register <= $sp;
33
33
  }
34
34
 
35
- export { $s0 as $, $v0 as a, $t1 as b, $t0 as c, $s1 as d, $sp as e, $fp as f, $ra as g, $pc as h, isLowLevelRegister as i };
35
+ export { $s0 as $, $v0 as a, $t1 as b, $t0 as c, $pc as d, $ra as e, $fp as f, $sp as g, $s1 as h, isLowLevelRegister as i };
@@ -1,7 +1,7 @@
1
- import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './element-builder-kHVx0F__.js';
1
+ import { N as NewTreeBuilder, R as RemoteBlock, C as COMMENT_NODE, T as TEXT_NODE, E as ELEMENT_NODE, e as NS_SVG } from './element-builder--iTIJyCB.js';
2
2
  import { c as castToSimple, a as castToBrowser } from './simple-cast-DCvJLSin.js';
3
3
  import { e as expect } from './collections-DPkjqeA3.js';
4
- import { a as assert } from './assert-CUCJBR2C.js';
4
+ import { a as assert } from './assert-Zqc4wiAV.js';
5
5
  import { C as ConcreteBounds, a as CursorImpl } from './normalize-CKySQVU7.js';
6
6
 
7
7
  const SERIALIZATION_FIRST_NODE_STRING = '%+b:0%';
@@ -2,20 +2,21 @@ import { u as unwrap, e as expect, a as isIndexable, S as StackImpl } from './co
2
2
  import { a as unwrapHandle } from './template-BRrQR6KS.js';
3
3
  import { v as valueForRef, f as childRefFor, U as UNDEFINED_REFERENCE, a as createComputeRef, T as TRUE_REFERENCE, F as FALSE_REFERENCE, i as isConstRef, u as updateRef, c as createConstRef } from './reference-BoPB2LfI.js';
4
4
  import { w as track, U as UPDATE_TAG, o as debug, v as resetTracking, g as beginTrackFrame, p as endTrackFrame } from './cache-B7dqAS38.js';
5
- import { a as assert } from './assert-CUCJBR2C.js';
5
+ import { a as assert } from './assert-Zqc4wiAV.js';
6
6
  import { P as ProgramImpl } from './program-DzAfcWFj.js';
7
- import { A as APPEND_OPCODES, D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './untouchable-this-cH6_N2LJ.js';
8
- import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './element-builder-kHVx0F__.js';
7
+ import { A as APPEND_OPCODES, D as DebugRenderTreeImpl, i as isArgumentError, j as isCurriedType, d as curry, h as check, k as resolveCurriedValue, f as reifyPositional, l as AssertFilter, V as VMArgumentsImpl, m as externs, J as JumpIfNotModifiedOpcode, B as BeginTrackFrameOpcode, n as EndTrackFrameOpcode } from './untouchable-this-B3DVwpHS.js';
8
+ import { B as BLACKLIST_TABLE, f as DOMOperations, D as DOMTreeConstruction, N as NewTreeBuilder } from './element-builder--iTIJyCB.js';
9
9
  import { a as assign } from './object-utils-AijlD-JH.js';
10
10
  import { associateDestroyableChild, _hasDestroyableChildren, destroy, destroyChildren, registerDestructor } from '../@glimmer/destroyable/index.js';
11
11
  import { toBool, debugAssert, assertGlobalContextWasSet } from '../@glimmer/global-context/index.js';
12
12
  import { createIteratorRef, createIteratorItemRef } from '../@glimmer/reference/index.js';
13
13
  import { r as reverse } from './array-utils-CZQxrdD3.js';
14
- import { a as $v0, h as $pc, g as $ra, f as $fp, e as $sp, i as isLowLevelRegister } from './registers-DoamZwaG.js';
15
- import { aj as VM_DEBUGGER_OP, q as decodeHandle, ak as VM_CURRY_OP, al as VM_DYNAMIC_HELPER_OP, am as VM_HELPER_OP, an as VM_GET_VARIABLE_OP, ao as VM_SET_VARIABLE_OP, ap as VM_SET_BLOCK_OP, aq as VM_ROOT_SCOPE_OP, ar as VM_GET_PROPERTY_OP, as as VM_GET_BLOCK_OP, at as VM_SPREAD_BLOCK_OP, au as VM_HAS_BLOCK_OP, av as VM_HAS_BLOCK_PARAMS_OP, aw as VM_CONCAT_OP, ax as VM_IF_INLINE_OP, ay as VM_NOT_OP, az as VM_GET_DYNAMIC_VAR_OP, aA as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, aB as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aC as VM_ENTER_LIST_OP, aD as VM_EXIT_LIST_OP, aE as VM_ITERATE_OP, aF as VM_RETURN_TO_OP, aG as VM_RETURN_OP, aH as VM_JUMP_OP, aI as VM_INVOKE_VIRTUAL_OP, j as VM_INVOKE_STATIC_OP, aJ as VM_POP_FRAME_OP, aK as VM_PUSH_FRAME_OP } from './opcode-metadata-9iSW5JGP.js';
16
- import { b as CURRIED_COMPONENT, a as CURRIED_HELPER } from './curried-BVwSNqpf.js';
17
- import { d as debugToString } from './debug-to-string-CFb7h0lY.js';
18
- import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-WvJPuo9z.js';
14
+ import { a as $v0, d as $pc, e as $ra, f as $fp, g as $sp, i as isLowLevelRegister } from './registers-C_W2qYHJ.js';
15
+ import { a as VM_RETURN_TO_OP, b as VM_RETURN_OP, c as VM_JUMP_OP, d as VM_INVOKE_VIRTUAL_OP, V as VM_INVOKE_STATIC_OP, e as VM_POP_FRAME_OP, f as VM_PUSH_FRAME_OP } from './vm-ops-ImHv0Wtg.js';
16
+ import { a as CURRIED_COMPONENT, b as CURRIED_HELPER } from './curried-BZnYakIg.js';
17
+ import { ai as VM_DEBUGGER_OP, p as decodeHandle, aj as VM_CURRY_OP, ak as VM_DYNAMIC_HELPER_OP, al as VM_HELPER_OP, am as VM_GET_VARIABLE_OP, an as VM_SET_VARIABLE_OP, ao as VM_SET_BLOCK_OP, ap as VM_ROOT_SCOPE_OP, aq as VM_GET_PROPERTY_OP, ar as VM_GET_BLOCK_OP, as as VM_SPREAD_BLOCK_OP, at as VM_HAS_BLOCK_OP, au as VM_HAS_BLOCK_PARAMS_OP, av as VM_CONCAT_OP, aw as VM_IF_INLINE_OP, ax as VM_NOT_OP, ay as VM_GET_DYNAMIC_VAR_OP, az as VM_LOG_OP, a as VM_CONTENT_TYPE_OP, aA as VM_DYNAMIC_CONTENT_TYPE_OP, c as VM_APPEND_HTML_OP, g as VM_APPEND_SAFE_HTML_OP, d as VM_APPEND_TEXT_OP, h as VM_APPEND_DOCUMENT_FRAGMENT_OP, i as VM_APPEND_NODE_OP, aB as VM_ENTER_LIST_OP, aC as VM_EXIT_LIST_OP, aD as VM_ITERATE_OP } from './syscall-ops-BPFtDquC.js';
18
+ import { d as debugToString } from './debug-to-string-C6LsA_qz.js';
19
+ import { a as getInternalHelperManager, c as hasInternalComponentManager, d as hasInternalHelperManager } from './api-BawZUDYD.js';
19
20
  import { ContentType } from '../@glimmer/vm/index.js';
20
21
  import { b as isEmpty, d as isString, s as shouldCoerce, i as isSafeString, e as isFragment, f as isNode, m as move, c as clear } from './normalize-CKySQVU7.js';
21
22
 
@@ -1,23 +1,4 @@
1
- var __defProp = Object.defineProperty;
2
- var __export = (target, all) => {
3
- for (var name in all) __defProp(target, name, {
4
- get: all[name],
5
- enumerable: true
6
- });
7
- };
8
-
9
- // src/runtime.ts
10
- var runtime_exports = {};
11
- __export(runtime_exports, {
12
- c: () => decorateClass,
13
- f: () => decorateFieldV1,
14
- g: () => decorateFieldV2,
15
- i: () => initializeDeferredDecorator,
16
- m: () => decorateMethodV1,
17
- n: () => decorateMethodV2,
18
- p: () => decoratePOJO
19
- });
20
- var deferred = /* @__PURE__ */new WeakMap();
1
+ const deferred = /* @__PURE__ */new WeakMap();
21
2
  function deferDecorator(proto, prop, desc) {
22
3
  let map = deferred.get(proto);
23
4
  if (!map) {
@@ -27,18 +8,16 @@ function deferDecorator(proto, prop, desc) {
27
8
  map.set(prop, desc);
28
9
  }
29
10
  function findDeferredDecorator(target, prop) {
11
+ var _a;
30
12
  let cursor = target.prototype;
31
13
  while (cursor) {
32
- let desc = deferred.get(cursor)?.get(prop);
14
+ let desc = (_a = deferred.get(cursor)) == null ? void 0 : _a.get(prop);
33
15
  if (desc) {
34
16
  return desc;
35
17
  }
36
- cursor = cursor.prototype;
18
+ cursor = Object.getPrototypeOf(cursor);
37
19
  }
38
20
  }
39
- function decorateFieldV1(target, prop, decorators, initializer) {
40
- return decorateFieldV2(target.prototype, prop, decorators, initializer);
41
- }
42
21
  function decorateFieldV2(prototype, prop, decorators, initializer) {
43
22
  let desc = {
44
23
  configurable: true,
@@ -58,11 +37,6 @@ function decorateFieldV2(prototype, prop, decorators, initializer) {
58
37
  deferDecorator(prototype, prop, desc);
59
38
  }
60
39
  }
61
- function decorateMethodV1({
62
- prototype
63
- }, prop, decorators) {
64
- return decorateMethodV2(prototype, prop, decorators);
65
- }
66
40
  function decorateMethodV2(prototype, prop, decorators) {
67
41
  const origDesc = Object.getOwnPropertyDescriptor(prototype, prop);
68
42
  let desc = {
@@ -88,34 +62,5 @@ function initializeDeferredDecorator(target, prop) {
88
62
  });
89
63
  }
90
64
  }
91
- function decorateClass(target, decorators) {
92
- return decorators.reduce((accum, decorator) => decorator(accum) || accum, target);
93
- }
94
- function decoratePOJO(pojo, decorated) {
95
- for (let [type, prop, decorators] of decorated) {
96
- if (type === "field") {
97
- decoratePojoField(pojo, prop, decorators);
98
- } else {
99
- decorateMethodV2(pojo, prop, decorators);
100
- }
101
- }
102
- return pojo;
103
- }
104
- function decoratePojoField(pojo, prop, decorators) {
105
- let desc = {
106
- configurable: true,
107
- enumerable: true,
108
- writable: true,
109
- initializer: () => Object.getOwnPropertyDescriptor(pojo, prop)?.value
110
- };
111
- for (let decorator of decorators) {
112
- desc = decorator(pojo, prop, desc) || desc;
113
- }
114
- if (desc.initializer) {
115
- desc.value = desc.initializer.call(pojo);
116
- delete desc.initializer;
117
- }
118
- Object.defineProperty(pojo, prop, desc);
119
- }
120
65
 
121
66
  export { decorateMethodV2 as a, decorateFieldV2 as d, initializeDeferredDecorator as i };
@@ -1,5 +1,5 @@
1
1
  import { C as ConcreteBounds } from './normalize-CKySQVU7.js';
2
- import { N as NewTreeBuilder } from './element-builder-kHVx0F__.js';
2
+ import { N as NewTreeBuilder } from './element-builder--iTIJyCB.js';
3
3
 
4
4
  /* eslint-disable @typescript-eslint/no-unsafe-enum-comparison */
5
5