ember-source 5.7.0-alpha.2 → 5.7.0-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,7 +6,7 @@
6
6
  * Portions Copyright 2008-2011 Apple Inc. All rights reserved.
7
7
  * @license Licensed under MIT license
8
8
  * See https://raw.github.com/emberjs/ember.js/master/LICENSE
9
- * @version 5.7.0-alpha.2
9
+ * @version 5.7.0-alpha.4
10
10
  */
11
11
 
12
12
  /* eslint-disable no-var */
@@ -2570,8 +2570,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
2570
2570
  }
2571
2571
  return normalizeDottedPath(result[1]);
2572
2572
  }
2573
- function normalizePath(head) {
2574
- let tail = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
2573
+ function normalizePath(head, tail) {
2574
+ if (tail === void 0) {
2575
+ tail = [];
2576
+ }
2575
2577
  const pathHead = normalizePathHead(head);
2576
2578
  if ((0, _util.isPresentArray)(tail)) {
2577
2579
  return {
@@ -2772,8 +2774,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
2772
2774
  ExpressionKind["HasBlockParams"] = "HasBlockParams";
2773
2775
  return ExpressionKind;
2774
2776
  }({});
2775
- function normalizeAppendExpression(expression) {
2776
- let forceTrusted = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2777
+ function normalizeAppendExpression(expression, forceTrusted) {
2778
+ if (forceTrusted === void 0) {
2779
+ forceTrusted = false;
2780
+ }
2777
2781
  if (expression === null || expression === undefined) {
2778
2782
  return {
2779
2783
  expr: {
@@ -3104,8 +3108,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3104
3108
  statements.forEach(s => out.push(...buildStatement(s, symbols)));
3105
3109
  return out;
3106
3110
  }
3107
- function buildStatement(normalized) {
3108
- let symbols = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new ProgramSymbols();
3111
+ function buildStatement(normalized, symbols) {
3112
+ if (symbols === void 0) {
3113
+ symbols = new ProgramSymbols();
3114
+ }
3109
3115
  switch (normalized.kind) {
3110
3116
  case HeadKind.AppendPath:
3111
3117
  {
@@ -3457,8 +3463,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3457
3463
  }
3458
3464
  return [keys, values];
3459
3465
  }
3460
- function buildBlock(block, symbols) {
3461
- let locals = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
3466
+ function buildBlock(block, symbols, locals) {
3467
+ if (locals === void 0) {
3468
+ locals = [];
3469
+ }
3462
3470
  return [buildNormalizedStatements(block, symbols), locals];
3463
3471
  }
3464
3472
  class Template extends (0, _syntax.node)('Template').fields() {}
@@ -3530,10 +3538,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3530
3538
  toPresentArray() {
3531
3539
  return this.list;
3532
3540
  }
3533
- into(_ref) {
3541
+ into(_ref2) {
3534
3542
  let {
3535
3543
  ifPresent
3536
- } = _ref;
3544
+ } = _ref2;
3537
3545
  return ifPresent(this);
3538
3546
  }
3539
3547
  }
@@ -3553,10 +3561,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3553
3561
  toPresentArray() {
3554
3562
  return null;
3555
3563
  }
3556
- into(_ref2) {
3564
+ into(_ref3) {
3557
3565
  let {
3558
3566
  ifEmpty
3559
- } = _ref2;
3567
+ } = _ref3;
3560
3568
  return ifEmpty();
3561
3569
  }
3562
3570
  }
@@ -3573,8 +3581,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3573
3581
  class ResultImpl {
3574
3582
  static all() {
3575
3583
  let out = [];
3576
- for (var _len = arguments.length, results = new Array(_len), _key = 0; _key < _len; _key++) {
3577
- results[_key] = arguments[_key];
3584
+ for (var _len3 = arguments.length, results = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
3585
+ results[_key3] = arguments[_key3];
3578
3586
  }
3579
3587
  for (let result of results) {
3580
3588
  if (result.isErr) {
@@ -3651,8 +3659,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3651
3659
  return new ErrImpl(reason);
3652
3660
  }
3653
3661
  class ResultArray {
3654
- constructor() {
3655
- let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
3662
+ constructor(items) {
3663
+ if (items === void 0) {
3664
+ items = [];
3665
+ }
3656
3666
  this.items = items;
3657
3667
  }
3658
3668
  add(item) {
@@ -3801,8 +3811,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3801
3811
  if (!hasPath(expr)) {
3802
3812
  throw new Error("unimplemented subexpression at the head of a subexpression");
3803
3813
  } else {
3804
- return Result.all(VISIT_EXPRS.visit(expr.callee, state), VISIT_EXPRS.Args(expr.args, state)).mapOk(_ref => {
3805
- let [callee, args] = _ref;
3814
+ return Result.all(VISIT_EXPRS.visit(expr.callee, state), VISIT_EXPRS.Args(expr.args, state)).mapOk(_ref4 => {
3815
+ let [callee, args] = _ref4;
3806
3816
  return new CallExpression({
3807
3817
  loc: expr.loc,
3808
3818
  callee,
@@ -3811,26 +3821,26 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
3811
3821
  });
3812
3822
  }
3813
3823
  }
3814
- DeprecaedCallExpression(_ref2, _state) {
3824
+ DeprecaedCallExpression(_ref5, _state) {
3815
3825
  let {
3816
3826
  arg,
3817
3827
  callee,
3818
3828
  loc
3819
- } = _ref2;
3829
+ } = _ref5;
3820
3830
  return Ok(new DeprecatedCallExpression({
3821
3831
  loc,
3822
3832
  arg,
3823
3833
  callee
3824
3834
  }));
3825
3835
  }
3826
- Args(_ref3, state) {
3836
+ Args(_ref6, state) {
3827
3837
  let {
3828
3838
  positional,
3829
3839
  named,
3830
3840
  loc
3831
- } = _ref3;
3832
- return Result.all(this.Positional(positional, state), this.NamedArguments(named, state)).mapOk(_ref4 => {
3833
- let [positional, named] = _ref4;
3841
+ } = _ref6;
3842
+ return Result.all(this.Positional(positional, state), this.NamedArguments(named, state)).mapOk(_ref7 => {
3843
+ let [positional, named] = _ref7;
3834
3844
  return new Args({
3835
3845
  loc,
3836
3846
  positional,
@@ -4084,18 +4094,18 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4084
4094
  function keywords(type) {
4085
4095
  return new Keywords(type);
4086
4096
  }
4087
- function toAppend(_ref) {
4097
+ function toAppend(_ref8) {
4088
4098
  let {
4089
4099
  assert,
4090
4100
  translate
4091
- } = _ref;
4101
+ } = _ref8;
4092
4102
  return {
4093
4103
  assert,
4094
- translate(_ref2, value) {
4104
+ translate(_ref9, value) {
4095
4105
  let {
4096
4106
  node,
4097
4107
  state
4098
- } = _ref2;
4108
+ } = _ref9;
4099
4109
  let result = translate({
4100
4110
  node,
4101
4111
  state
@@ -4145,19 +4155,19 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4145
4155
  };
4146
4156
  }
4147
4157
  function translateCurryKeyword(curriedType) {
4148
- return (_ref, _ref2) => {
4158
+ return (_ref10, _ref11) => {
4149
4159
  let {
4150
4160
  node,
4151
4161
  state
4152
- } = _ref;
4162
+ } = _ref10;
4153
4163
  let {
4154
4164
  definition,
4155
4165
  args
4156
- } = _ref2;
4166
+ } = _ref11;
4157
4167
  let definitionResult = VISIT_EXPRS.visit(definition, state);
4158
4168
  let argsResult = VISIT_EXPRS.Args(args, state);
4159
- return Result.all(definitionResult, argsResult).mapOk(_ref3 => {
4160
- let [definition, args] = _ref3;
4169
+ return Result.all(definitionResult, argsResult).mapOk(_ref12 => {
4170
+ let [definition, args] = _ref12;
4161
4171
  return new Curry({
4162
4172
  loc: node.loc,
4163
4173
  curriedType,
@@ -4189,11 +4199,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4189
4199
  }
4190
4200
  return Ok(varName);
4191
4201
  }
4192
- function translateGetDynamicVarKeyword(_ref, name) {
4202
+ function translateGetDynamicVarKeyword(_ref13, name) {
4193
4203
  let {
4194
4204
  node,
4195
4205
  state
4196
- } = _ref;
4206
+ } = _ref13;
4197
4207
  return VISIT_EXPRS.visit(name, state).mapOk(name => new GetDynamicVar({
4198
4208
  name,
4199
4209
  loc: node.loc
@@ -4226,13 +4236,13 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4226
4236
  };
4227
4237
  }
4228
4238
  function translateHasBlockKeyword(type) {
4229
- return (_ref, target) => {
4239
+ return (_ref14, target) => {
4230
4240
  let {
4231
4241
  node,
4232
4242
  state: {
4233
4243
  scope
4234
4244
  }
4235
- } = _ref;
4245
+ } = _ref14;
4236
4246
  let block = type === 'has-block' ? new HasBlock({
4237
4247
  loc: node.loc,
4238
4248
  target,
@@ -4282,21 +4292,21 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4282
4292
  }
4283
4293
  function translateIfUnlessInlineKeyword(type) {
4284
4294
  let inverted = type === 'unless';
4285
- return (_ref, _ref2) => {
4295
+ return (_ref15, _ref16) => {
4286
4296
  let {
4287
4297
  node,
4288
4298
  state
4289
- } = _ref;
4299
+ } = _ref15;
4290
4300
  let {
4291
4301
  condition,
4292
4302
  truthy,
4293
4303
  falsy
4294
- } = _ref2;
4304
+ } = _ref16;
4295
4305
  let conditionResult = VISIT_EXPRS.visit(condition, state);
4296
4306
  let truthyResult = VISIT_EXPRS.visit(truthy, state);
4297
4307
  let falsyResult = falsy ? VISIT_EXPRS.visit(falsy, state) : Ok(null);
4298
- return Result.all(conditionResult, truthyResult, falsyResult).mapOk(_ref3 => {
4299
- let [condition, truthy, falsy] = _ref3;
4308
+ return Result.all(conditionResult, truthyResult, falsyResult).mapOk(_ref17 => {
4309
+ let [condition, truthy, falsy] = _ref17;
4300
4310
  if (inverted) {
4301
4311
  condition = new Not({
4302
4312
  value: condition,
@@ -4330,11 +4340,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4330
4340
  }
4331
4341
  return Ok(positional);
4332
4342
  }
4333
- function translateLogKeyword(_ref, positional) {
4343
+ function translateLogKeyword(_ref18, positional) {
4334
4344
  let {
4335
4345
  node,
4336
4346
  state
4337
- } = _ref;
4347
+ } = _ref18;
4338
4348
  return VISIT_EXPRS.Positional(positional, state).mapOk(positional => new Log({
4339
4349
  positional,
4340
4350
  loc: node.loc
@@ -4369,15 +4379,15 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4369
4379
  }
4370
4380
  }
4371
4381
  },
4372
- translate(_ref, _ref2) {
4382
+ translate(_ref19, _ref20) {
4373
4383
  let {
4374
4384
  node,
4375
4385
  state
4376
- } = _ref;
4386
+ } = _ref19;
4377
4387
  let {
4378
4388
  target,
4379
4389
  positional
4380
- } = _ref2;
4390
+ } = _ref20;
4381
4391
  return VISIT_EXPRS.Positional(positional, state).mapOk(positional => new Yield({
4382
4392
  loc: node.loc,
4383
4393
  target,
@@ -4403,13 +4413,13 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4403
4413
  }
4404
4414
  }
4405
4415
  },
4406
- translate(_ref3) {
4416
+ translate(_ref21) {
4407
4417
  let {
4408
4418
  node,
4409
4419
  state: {
4410
4420
  scope
4411
4421
  }
4412
- } = _ref3;
4422
+ } = _ref21;
4413
4423
  scope.setHasDebugger();
4414
4424
  return Ok(new Debugger({
4415
4425
  loc: node.loc,
@@ -4418,19 +4428,19 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4418
4428
  }
4419
4429
  }).kw('component', {
4420
4430
  assert: assertCurryKeyword(_vm.CurriedTypes.Component),
4421
- translate(_ref4, _ref5) {
4431
+ translate(_ref22, _ref23) {
4422
4432
  let {
4423
4433
  node,
4424
4434
  state
4425
- } = _ref4;
4435
+ } = _ref22;
4426
4436
  let {
4427
4437
  definition,
4428
4438
  args
4429
- } = _ref5;
4439
+ } = _ref23;
4430
4440
  let definitionResult = VISIT_EXPRS.visit(definition, state);
4431
4441
  let argsResult = VISIT_EXPRS.Args(args, state);
4432
- return Result.all(definitionResult, argsResult).mapOk(_ref6 => {
4433
- let [definition, args] = _ref6;
4442
+ return Result.all(definitionResult, argsResult).mapOk(_ref24 => {
4443
+ let [definition, args] = _ref24;
4434
4444
  return new InvokeComponent({
4435
4445
  loc: node.loc,
4436
4446
  definition,
@@ -4441,19 +4451,19 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4441
4451
  }
4442
4452
  }).kw('helper', {
4443
4453
  assert: assertCurryKeyword(_vm.CurriedTypes.Helper),
4444
- translate(_ref7, _ref8) {
4454
+ translate(_ref25, _ref26) {
4445
4455
  let {
4446
4456
  node,
4447
4457
  state
4448
- } = _ref7;
4458
+ } = _ref25;
4449
4459
  let {
4450
4460
  definition,
4451
4461
  args
4452
- } = _ref8;
4462
+ } = _ref26;
4453
4463
  let definitionResult = VISIT_EXPRS.visit(definition, state);
4454
4464
  let argsResult = VISIT_EXPRS.Args(args, state);
4455
- return Result.all(definitionResult, argsResult).mapOk(_ref9 => {
4456
- let [definition, args] = _ref9;
4465
+ return Result.all(definitionResult, argsResult).mapOk(_ref27 => {
4466
+ let [definition, args] = _ref27;
4457
4467
  let text = new CallExpression({
4458
4468
  callee: definition,
4459
4469
  args,
@@ -4488,20 +4498,20 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4488
4498
  destination
4489
4499
  });
4490
4500
  },
4491
- translate(_ref, _ref2) {
4501
+ translate(_ref28, _ref29) {
4492
4502
  let {
4493
4503
  node,
4494
4504
  state
4495
- } = _ref;
4505
+ } = _ref28;
4496
4506
  let {
4497
4507
  insertBefore,
4498
4508
  destination
4499
- } = _ref2;
4509
+ } = _ref29;
4500
4510
  let named = node.blocks.get('default');
4501
4511
  let body = VISIT_STMTS.NamedBlock(named, state);
4502
4512
  let destinationResult = VISIT_EXPRS.visit(destination, state);
4503
- return Result.all(body, destinationResult).andThen(_ref3 => {
4504
- let [body, destination] = _ref3;
4513
+ return Result.all(body, destinationResult).andThen(_ref30 => {
4514
+ let [body, destination] = _ref30;
4505
4515
  if (insertBefore) {
4506
4516
  return VISIT_EXPRS.visit(insertBefore, state).mapOk(insertBefore => ({
4507
4517
  body,
@@ -4517,12 +4527,12 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4517
4527
  })
4518
4528
  });
4519
4529
  }
4520
- }).mapOk(_ref4 => {
4530
+ }).mapOk(_ref31 => {
4521
4531
  let {
4522
4532
  body,
4523
4533
  destination,
4524
4534
  insertBefore
4525
- } = _ref4;
4535
+ } = _ref31;
4526
4536
  return new InElement({
4527
4537
  loc: node.loc,
4528
4538
  block: body,
@@ -4551,21 +4561,21 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4551
4561
  condition
4552
4562
  });
4553
4563
  },
4554
- translate(_ref5, _ref6) {
4564
+ translate(_ref32, _ref33) {
4555
4565
  let {
4556
4566
  node,
4557
4567
  state
4558
- } = _ref5;
4568
+ } = _ref32;
4559
4569
  let {
4560
4570
  condition
4561
- } = _ref6;
4571
+ } = _ref33;
4562
4572
  let block = node.blocks.get('default');
4563
4573
  let inverse = node.blocks.get('else');
4564
4574
  let conditionResult = VISIT_EXPRS.visit(condition, state);
4565
4575
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4566
4576
  let inverseResult = inverse ? VISIT_STMTS.NamedBlock(inverse, state) : Ok(null);
4567
- return Result.all(conditionResult, blockResult, inverseResult).mapOk(_ref7 => {
4568
- let [condition, block, inverse] = _ref7;
4577
+ return Result.all(conditionResult, blockResult, inverseResult).mapOk(_ref34 => {
4578
+ let [condition, block, inverse] = _ref34;
4569
4579
  return new If({
4570
4580
  loc: node.loc,
4571
4581
  condition,
@@ -4593,21 +4603,21 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4593
4603
  condition
4594
4604
  });
4595
4605
  },
4596
- translate(_ref8, _ref9) {
4606
+ translate(_ref35, _ref36) {
4597
4607
  let {
4598
4608
  node,
4599
4609
  state
4600
- } = _ref8;
4610
+ } = _ref35;
4601
4611
  let {
4602
4612
  condition
4603
- } = _ref9;
4613
+ } = _ref36;
4604
4614
  let block = node.blocks.get('default');
4605
4615
  let inverse = node.blocks.get('else');
4606
4616
  let conditionResult = VISIT_EXPRS.visit(condition, state);
4607
4617
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4608
4618
  let inverseResult = inverse ? VISIT_STMTS.NamedBlock(inverse, state) : Ok(null);
4609
- return Result.all(conditionResult, blockResult, inverseResult).mapOk(_ref10 => {
4610
- let [condition, block, inverse] = _ref10;
4619
+ return Result.all(conditionResult, blockResult, inverseResult).mapOk(_ref37 => {
4620
+ let [condition, block, inverse] = _ref37;
4611
4621
  return new If({
4612
4622
  loc: node.loc,
4613
4623
  condition: new Not({
@@ -4640,23 +4650,23 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4640
4650
  key
4641
4651
  });
4642
4652
  },
4643
- translate(_ref11, _ref12) {
4653
+ translate(_ref38, _ref39) {
4644
4654
  let {
4645
4655
  node,
4646
4656
  state
4647
- } = _ref11;
4657
+ } = _ref38;
4648
4658
  let {
4649
4659
  value,
4650
4660
  key
4651
- } = _ref12;
4661
+ } = _ref39;
4652
4662
  let block = node.blocks.get('default');
4653
4663
  let inverse = node.blocks.get('else');
4654
4664
  let valueResult = VISIT_EXPRS.visit(value, state);
4655
4665
  let keyResult = key ? VISIT_EXPRS.visit(key, state) : Ok(null);
4656
4666
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4657
4667
  let inverseResult = inverse ? VISIT_STMTS.NamedBlock(inverse, state) : Ok(null);
4658
- return Result.all(valueResult, keyResult, blockResult, inverseResult).mapOk(_ref13 => {
4659
- let [value, key, block, inverse] = _ref13;
4668
+ return Result.all(valueResult, keyResult, blockResult, inverseResult).mapOk(_ref40 => {
4669
+ let [value, key, block, inverse] = _ref40;
4660
4670
  return new Each({
4661
4671
  loc: node.loc,
4662
4672
  value,
@@ -4685,21 +4695,21 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4685
4695
  value
4686
4696
  });
4687
4697
  },
4688
- translate(_ref14, _ref15) {
4698
+ translate(_ref41, _ref42) {
4689
4699
  let {
4690
4700
  node,
4691
4701
  state
4692
- } = _ref14;
4702
+ } = _ref41;
4693
4703
  let {
4694
4704
  value
4695
- } = _ref15;
4705
+ } = _ref42;
4696
4706
  let block = node.blocks.get('default');
4697
4707
  let inverse = node.blocks.get('else');
4698
4708
  let valueResult = VISIT_EXPRS.visit(value, state);
4699
4709
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4700
4710
  let inverseResult = inverse ? VISIT_STMTS.NamedBlock(inverse, state) : Ok(null);
4701
- return Result.all(valueResult, blockResult, inverseResult).mapOk(_ref16 => {
4702
- let [value, block, inverse] = _ref16;
4711
+ return Result.all(valueResult, blockResult, inverseResult).mapOk(_ref43 => {
4712
+ let [value, block, inverse] = _ref43;
4703
4713
  return new With({
4704
4714
  loc: node.loc,
4705
4715
  value,
@@ -4726,19 +4736,19 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4726
4736
  positional: args.positional
4727
4737
  });
4728
4738
  },
4729
- translate(_ref17, _ref18) {
4739
+ translate(_ref44, _ref45) {
4730
4740
  let {
4731
4741
  node,
4732
4742
  state
4733
- } = _ref17;
4743
+ } = _ref44;
4734
4744
  let {
4735
4745
  positional
4736
- } = _ref18;
4746
+ } = _ref45;
4737
4747
  let block = node.blocks.get('default');
4738
4748
  let positionalResult = VISIT_EXPRS.Positional(positional, state);
4739
4749
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4740
- return Result.all(positionalResult, blockResult).mapOk(_ref19 => {
4741
- let [positional, block] = _ref19;
4750
+ return Result.all(positionalResult, blockResult).mapOk(_ref46 => {
4751
+ let [positional, block] = _ref46;
4742
4752
  return new Let({
4743
4753
  loc: node.loc,
4744
4754
  positional,
@@ -4752,19 +4762,19 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4752
4762
  named: node.args.named
4753
4763
  });
4754
4764
  },
4755
- translate(_ref20, _ref21) {
4765
+ translate(_ref47, _ref48) {
4756
4766
  let {
4757
4767
  node,
4758
4768
  state
4759
- } = _ref20;
4769
+ } = _ref47;
4760
4770
  let {
4761
4771
  named
4762
- } = _ref21;
4772
+ } = _ref48;
4763
4773
  let block = node.blocks.get('default');
4764
4774
  let namedResult = VISIT_EXPRS.NamedArguments(named, state);
4765
4775
  let blockResult = VISIT_STMTS.NamedBlock(block, state);
4766
- return Result.all(namedResult, blockResult).mapOk(_ref22 => {
4767
- let [named, block] = _ref22;
4776
+ return Result.all(namedResult, blockResult).mapOk(_ref49 => {
4777
+ let [named, block] = _ref49;
4768
4778
  return new WithDynamicVars({
4769
4779
  loc: node.loc,
4770
4780
  named,
@@ -4774,20 +4784,20 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4774
4784
  }
4775
4785
  }).kw('component', {
4776
4786
  assert: assertCurryKeyword(_vm.CurriedTypes.Component),
4777
- translate(_ref23, _ref24) {
4787
+ translate(_ref50, _ref51) {
4778
4788
  let {
4779
4789
  node,
4780
4790
  state
4781
- } = _ref23;
4791
+ } = _ref50;
4782
4792
  let {
4783
4793
  definition,
4784
4794
  args
4785
- } = _ref24;
4795
+ } = _ref51;
4786
4796
  let definitionResult = VISIT_EXPRS.visit(definition, state);
4787
4797
  let argsResult = VISIT_EXPRS.Args(args, state);
4788
4798
  let blocksResult = VISIT_STMTS.NamedBlocks(node.blocks, state);
4789
- return Result.all(definitionResult, argsResult, blocksResult).mapOk(_ref25 => {
4790
- let [definition, args, blocks] = _ref25;
4799
+ return Result.all(definitionResult, argsResult, blocksResult).mapOk(_ref52 => {
4800
+ let [definition, args, blocks] = _ref52;
4791
4801
  return new InvokeComponent({
4792
4802
  loc: node.loc,
4793
4803
  definition,
@@ -4914,8 +4924,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4914
4924
  }
4915
4925
  let head = VISIT_EXPRS.visit(modifier.callee, this.state);
4916
4926
  let args = VISIT_EXPRS.Args(modifier.args, this.state);
4917
- return Result.all(head, args).mapOk(_ref => {
4918
- let [head, args] = _ref;
4927
+ return Result.all(head, args).mapOk(_ref53 => {
4928
+ let [head, args] = _ref53;
4919
4929
  return new Modifier({
4920
4930
  loc: modifier.loc,
4921
4931
  callee: head,
@@ -4953,8 +4963,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4953
4963
  if (typeAttr) {
4954
4964
  attrs.add(this.attr(typeAttr));
4955
4965
  }
4956
- return Result.all(args.toArray(), attrs.toArray()).mapOk(_ref2 => {
4957
- let [args, attrs] = _ref2;
4966
+ return Result.all(args.toArray(), attrs.toArray()).mapOk(_ref54 => {
4967
+ let [args, attrs] = _ref54;
4958
4968
  return {
4959
4969
  attrs,
4960
4970
  args: new NamedArguments({
@@ -4967,8 +4977,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4967
4977
  prepare() {
4968
4978
  let attrs = this.attrs();
4969
4979
  let modifiers = new ResultArray(this.element.modifiers.map(m => this.modifier(m))).toArray();
4970
- return Result.all(attrs, modifiers).mapOk(_ref3 => {
4971
- let [result, modifiers] = _ref3;
4980
+ return Result.all(attrs, modifiers).mapOk(_ref55 => {
4981
+ let [result, modifiers] = _ref55;
4972
4982
  let {
4973
4983
  attrs,
4974
4984
  args
@@ -4985,11 +4995,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
4985
4995
  });
4986
4996
  }
4987
4997
  }
4988
- function hasDynamicFeatures(_ref4) {
4998
+ function hasDynamicFeatures(_ref56) {
4989
4999
  let {
4990
5000
  attrs,
4991
5001
  modifiers
4992
- } = _ref4;
5002
+ } = _ref56;
4993
5003
  // ElementModifier needs the special ComponentOperations
4994
5004
  if (modifiers.length > 0) {
4995
5005
  return true;
@@ -5004,10 +5014,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5004
5014
  this.tag = tag;
5005
5015
  this.element = element;
5006
5016
  }
5007
- arg(attr, _ref) {
5017
+ arg(attr, _ref57) {
5008
5018
  let {
5009
5019
  state
5010
- } = _ref;
5020
+ } = _ref57;
5011
5021
  let name = attr.name;
5012
5022
  return VISIT_EXPRS.visit(convertPathToCallIfKeyword(attr.value), state).mapOk(value => new NamedArgument({
5013
5023
  loc: attr.loc,
@@ -5015,11 +5025,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5015
5025
  value
5016
5026
  }));
5017
5027
  }
5018
- toStatement(component, _ref2) {
5028
+ toStatement(component, _ref58) {
5019
5029
  let {
5020
5030
  args,
5021
5031
  params
5022
- } = _ref2;
5032
+ } = _ref58;
5023
5033
  let {
5024
5034
  element,
5025
5035
  state
@@ -5046,10 +5056,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5046
5056
  arg(attr) {
5047
5057
  return Err((0, _syntax.generateSyntaxError)(attr.name.chars + " is not a valid attribute name. @arguments are only allowed on components, but the tag for this element (`" + this.tag.chars + "`) is a regular, non-component HTML element.", attr.loc));
5048
5058
  }
5049
- toStatement(classified, _ref) {
5059
+ toStatement(classified, _ref59) {
5050
5060
  let {
5051
5061
  params
5052
- } = _ref;
5062
+ } = _ref59;
5053
5063
  let {
5054
5064
  state,
5055
5065
  element
@@ -5093,8 +5103,8 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5093
5103
  }
5094
5104
  let head = VISIT_EXPRS.visit(node.callee, state);
5095
5105
  let args = VISIT_EXPRS.Args(node.args, state);
5096
- return Result.all(head, args).andThen(_ref => {
5097
- let [head, args] = _ref;
5106
+ return Result.all(head, args).andThen(_ref60 => {
5107
+ let [head, args] = _ref60;
5098
5108
  return this.NamedBlocks(node.blocks, state).mapOk(blocks => new InvokeBlock({
5099
5109
  loc: node.loc,
5100
5110
  head,
@@ -5241,10 +5251,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5241
5251
  }));
5242
5252
  }
5243
5253
  class WireFormatDebugger {
5244
- constructor(_ref) {
5254
+ constructor(_ref61) {
5255
+ let [_statements, symbols, _hasEval, upvars] = _ref61;
5245
5256
  this.upvars = void 0;
5246
5257
  this.symbols = void 0;
5247
- let [_statements, symbols, _hasEval, upvars] = _ref;
5248
5258
  this.upvars = upvars;
5249
5259
  this.symbols = symbols;
5250
5260
  }
@@ -5448,10 +5458,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5448
5458
  return this.Log(expr);
5449
5459
  }
5450
5460
  }
5451
- Literal(_ref) {
5461
+ Literal(_ref62) {
5452
5462
  let {
5453
5463
  value
5454
- } = _ref;
5464
+ } = _ref62;
5455
5465
  if (value === undefined) {
5456
5466
  return [_wireFormat.SexpOpcodes.Undefined];
5457
5467
  } else {
@@ -5461,97 +5471,97 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5461
5471
  Missing() {
5462
5472
  return undefined;
5463
5473
  }
5464
- HasBlock(_ref2) {
5474
+ HasBlock(_ref63) {
5465
5475
  let {
5466
5476
  symbol
5467
- } = _ref2;
5477
+ } = _ref63;
5468
5478
  return [_wireFormat.SexpOpcodes.HasBlock, [_wireFormat.SexpOpcodes.GetSymbol, symbol]];
5469
5479
  }
5470
- HasBlockParams(_ref3) {
5480
+ HasBlockParams(_ref64) {
5471
5481
  let {
5472
5482
  symbol
5473
- } = _ref3;
5483
+ } = _ref64;
5474
5484
  return [_wireFormat.SexpOpcodes.HasBlockParams, [_wireFormat.SexpOpcodes.GetSymbol, symbol]];
5475
5485
  }
5476
- Curry(_ref4) {
5486
+ Curry(_ref65) {
5477
5487
  let {
5478
5488
  definition,
5479
5489
  curriedType,
5480
5490
  args
5481
- } = _ref4;
5491
+ } = _ref65;
5482
5492
  return [_wireFormat.SexpOpcodes.Curry, EXPR.expr(definition), curriedType, EXPR.Positional(args.positional), EXPR.NamedArguments(args.named)];
5483
5493
  }
5484
- Local(_ref5) {
5494
+ Local(_ref66) {
5485
5495
  let {
5486
5496
  isTemplateLocal,
5487
5497
  symbol
5488
- } = _ref5;
5498
+ } = _ref66;
5489
5499
  return [isTemplateLocal ? _wireFormat.SexpOpcodes.GetLexicalSymbol : _wireFormat.SexpOpcodes.GetSymbol, symbol];
5490
5500
  }
5491
- GetWithResolver(_ref6) {
5501
+ GetWithResolver(_ref67) {
5492
5502
  let {
5493
5503
  symbol
5494
- } = _ref6;
5504
+ } = _ref67;
5495
5505
  return [_wireFormat.SexpOpcodes.GetFreeAsComponentOrHelperHeadOrThisFallback, symbol];
5496
5506
  }
5497
- PathExpression(_ref7) {
5507
+ PathExpression(_ref68) {
5498
5508
  let {
5499
5509
  head,
5500
5510
  tail
5501
- } = _ref7;
5511
+ } = _ref68;
5502
5512
  let getOp = EXPR.expr(head);
5503
5513
  return [...getOp, EXPR.Tail(tail)];
5504
5514
  }
5505
- InterpolateExpression(_ref8) {
5515
+ InterpolateExpression(_ref69) {
5506
5516
  let {
5507
5517
  parts
5508
- } = _ref8;
5518
+ } = _ref69;
5509
5519
  return [_wireFormat.SexpOpcodes.Concat, parts.map(e => EXPR.expr(e)).toArray()];
5510
5520
  }
5511
- CallExpression(_ref9) {
5521
+ CallExpression(_ref70) {
5512
5522
  let {
5513
5523
  callee,
5514
5524
  args
5515
- } = _ref9;
5525
+ } = _ref70;
5516
5526
  return [_wireFormat.SexpOpcodes.Call, EXPR.expr(callee), ...EXPR.Args(args)];
5517
5527
  }
5518
- DeprecatedCallExpression(_ref10) {
5528
+ DeprecatedCallExpression(_ref71) {
5519
5529
  let {
5520
5530
  arg,
5521
5531
  callee
5522
- } = _ref10;
5532
+ } = _ref71;
5523
5533
  return [_wireFormat.SexpOpcodes.GetFreeAsDeprecatedHelperHeadOrThisFallback, callee.symbol, [arg.chars]];
5524
5534
  }
5525
- Tail(_ref11) {
5535
+ Tail(_ref72) {
5526
5536
  let {
5527
5537
  members
5528
- } = _ref11;
5538
+ } = _ref72;
5529
5539
  return (0, _util.mapPresentArray)(members, member => member.chars);
5530
5540
  }
5531
- Args(_ref12) {
5541
+ Args(_ref73) {
5532
5542
  let {
5533
5543
  positional,
5534
5544
  named
5535
- } = _ref12;
5545
+ } = _ref73;
5536
5546
  return [this.Positional(positional), this.NamedArguments(named)];
5537
5547
  }
5538
- Positional(_ref13) {
5548
+ Positional(_ref74) {
5539
5549
  let {
5540
5550
  list
5541
- } = _ref13;
5551
+ } = _ref74;
5542
5552
  return list.map(l => EXPR.expr(l)).toPresentArray();
5543
5553
  }
5544
- NamedArgument(_ref14) {
5554
+ NamedArgument(_ref75) {
5545
5555
  let {
5546
5556
  key,
5547
5557
  value
5548
- } = _ref14;
5558
+ } = _ref75;
5549
5559
  return [key.chars, EXPR.expr(value)];
5550
5560
  }
5551
- NamedArguments(_ref15) {
5561
+ NamedArguments(_ref76) {
5552
5562
  let {
5553
5563
  entries: pairs
5554
- } = _ref15;
5564
+ } = _ref76;
5555
5565
  let list = pairs.toArray();
5556
5566
  if ((0, _util.isPresentArray)(list)) {
5557
5567
  let names = [];
@@ -5568,34 +5578,34 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5568
5578
  return null;
5569
5579
  }
5570
5580
  }
5571
- Not(_ref16) {
5581
+ Not(_ref77) {
5572
5582
  let {
5573
5583
  value
5574
- } = _ref16;
5584
+ } = _ref77;
5575
5585
  return [_wireFormat.SexpOpcodes.Not, EXPR.expr(value)];
5576
5586
  }
5577
- IfInline(_ref17) {
5587
+ IfInline(_ref78) {
5578
5588
  let {
5579
5589
  condition,
5580
5590
  truthy,
5581
5591
  falsy
5582
- } = _ref17;
5592
+ } = _ref78;
5583
5593
  let expr = [_wireFormat.SexpOpcodes.IfInline, EXPR.expr(condition), EXPR.expr(truthy)];
5584
5594
  if (falsy) {
5585
5595
  expr.push(EXPR.expr(falsy));
5586
5596
  }
5587
5597
  return expr;
5588
5598
  }
5589
- GetDynamicVar(_ref18) {
5599
+ GetDynamicVar(_ref79) {
5590
5600
  let {
5591
5601
  name
5592
- } = _ref18;
5602
+ } = _ref79;
5593
5603
  return [_wireFormat.SexpOpcodes.GetDynamicVar, EXPR.expr(name)];
5594
5604
  }
5595
- Log(_ref19) {
5605
+ Log(_ref80) {
5596
5606
  let {
5597
5607
  positional
5598
- } = _ref19;
5608
+ } = _ref80;
5599
5609
  return [_wireFormat.SexpOpcodes.Log, this.Positional(positional)];
5600
5610
  }
5601
5611
  }
@@ -5660,20 +5670,20 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5660
5670
  return (0, _util.exhausted)(stmt);
5661
5671
  }
5662
5672
  }
5663
- Yield(_ref) {
5673
+ Yield(_ref81) {
5664
5674
  let {
5665
5675
  to,
5666
5676
  positional
5667
- } = _ref;
5677
+ } = _ref81;
5668
5678
  return [_wireFormat.SexpOpcodes.Yield, to, EXPR.Positional(positional)];
5669
5679
  }
5670
- InElement(_ref2) {
5680
+ InElement(_ref82) {
5671
5681
  let {
5672
5682
  guid,
5673
5683
  insertBefore,
5674
5684
  destination,
5675
5685
  block
5676
- } = _ref2;
5686
+ } = _ref82;
5677
5687
  let wireBlock = CONTENT.NamedBlock(block)[1];
5678
5688
  // let guid = args.guid;
5679
5689
  let wireDestination = EXPR.expr(destination);
@@ -5684,59 +5694,59 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5684
5694
  return [_wireFormat.SexpOpcodes.InElement, wireBlock, guid, wireDestination, wireInsertBefore];
5685
5695
  }
5686
5696
  }
5687
- InvokeBlock(_ref3) {
5697
+ InvokeBlock(_ref83) {
5688
5698
  let {
5689
5699
  head,
5690
5700
  args,
5691
5701
  blocks
5692
- } = _ref3;
5702
+ } = _ref83;
5693
5703
  return [_wireFormat.SexpOpcodes.Block, EXPR.expr(head), ...EXPR.Args(args), CONTENT.NamedBlocks(blocks)];
5694
5704
  }
5695
- AppendTrustedHTML(_ref4) {
5705
+ AppendTrustedHTML(_ref84) {
5696
5706
  let {
5697
5707
  html
5698
- } = _ref4;
5708
+ } = _ref84;
5699
5709
  return [_wireFormat.SexpOpcodes.TrustingAppend, EXPR.expr(html)];
5700
5710
  }
5701
- AppendTextNode(_ref5) {
5711
+ AppendTextNode(_ref85) {
5702
5712
  let {
5703
5713
  text
5704
- } = _ref5;
5714
+ } = _ref85;
5705
5715
  return [_wireFormat.SexpOpcodes.Append, EXPR.expr(text)];
5706
5716
  }
5707
- AppendComment(_ref6) {
5717
+ AppendComment(_ref86) {
5708
5718
  let {
5709
5719
  value
5710
- } = _ref6;
5720
+ } = _ref86;
5711
5721
  return [_wireFormat.SexpOpcodes.Comment, value.chars];
5712
5722
  }
5713
- SimpleElement(_ref7) {
5723
+ SimpleElement(_ref87) {
5714
5724
  let {
5715
5725
  tag,
5716
5726
  params,
5717
5727
  body,
5718
5728
  dynamicFeatures
5719
- } = _ref7;
5729
+ } = _ref87;
5720
5730
  let op = dynamicFeatures ? _wireFormat.SexpOpcodes.OpenElementWithSplat : _wireFormat.SexpOpcodes.OpenElement;
5721
5731
  return new WireStatements([[op, deflateTagName(tag.chars)], ...CONTENT.ElementParameters(params).toArray(), [_wireFormat.SexpOpcodes.FlushElement], ...CONTENT.list(body), [_wireFormat.SexpOpcodes.CloseElement]]);
5722
5732
  }
5723
- Component(_ref8) {
5733
+ Component(_ref88) {
5724
5734
  let {
5725
5735
  tag,
5726
5736
  params,
5727
5737
  args,
5728
5738
  blocks
5729
- } = _ref8;
5739
+ } = _ref88;
5730
5740
  let wireTag = EXPR.expr(tag);
5731
5741
  let wirePositional = CONTENT.ElementParameters(params);
5732
5742
  let wireNamed = EXPR.NamedArguments(args);
5733
5743
  let wireNamedBlocks = CONTENT.NamedBlocks(blocks);
5734
5744
  return [_wireFormat.SexpOpcodes.Component, wireTag, wirePositional.toPresentArray(), wireNamed, wireNamedBlocks];
5735
5745
  }
5736
- ElementParameters(_ref9) {
5746
+ ElementParameters(_ref89) {
5737
5747
  let {
5738
5748
  body
5739
- } = _ref9;
5749
+ } = _ref89;
5740
5750
  return body.map(p => CONTENT.ElementParameter(p));
5741
5751
  }
5742
5752
  ElementParameter(param) {
@@ -5751,10 +5761,10 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5751
5761
  return [_wireFormat.SexpOpcodes.Modifier, EXPR.expr(param.callee), ...EXPR.Args(param.args)];
5752
5762
  }
5753
5763
  }
5754
- NamedBlocks(_ref10) {
5764
+ NamedBlocks(_ref90) {
5755
5765
  let {
5756
5766
  blocks
5757
- } = _ref10;
5767
+ } = _ref90;
5758
5768
  let names = [];
5759
5769
  let serializedBlocks = [];
5760
5770
  for (let block of blocks.toArray()) {
@@ -5764,85 +5774,85 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5764
5774
  }
5765
5775
  return names.length > 0 ? [names, serializedBlocks] : null;
5766
5776
  }
5767
- NamedBlock(_ref11) {
5777
+ NamedBlock(_ref91) {
5768
5778
  let {
5769
5779
  name,
5770
5780
  body,
5771
5781
  scope
5772
- } = _ref11;
5782
+ } = _ref91;
5773
5783
  let nameChars = name.chars;
5774
5784
  if (nameChars === 'inverse') {
5775
5785
  nameChars = 'else';
5776
5786
  }
5777
5787
  return [nameChars, [CONTENT.list(body), scope.slots]];
5778
5788
  }
5779
- If(_ref12) {
5789
+ If(_ref92) {
5780
5790
  let {
5781
5791
  condition,
5782
5792
  block,
5783
5793
  inverse
5784
- } = _ref12;
5794
+ } = _ref92;
5785
5795
  return [_wireFormat.SexpOpcodes.If, EXPR.expr(condition), CONTENT.NamedBlock(block)[1], inverse ? CONTENT.NamedBlock(inverse)[1] : null];
5786
5796
  }
5787
- Each(_ref13) {
5797
+ Each(_ref93) {
5788
5798
  let {
5789
5799
  value,
5790
5800
  key,
5791
5801
  block,
5792
5802
  inverse
5793
- } = _ref13;
5803
+ } = _ref93;
5794
5804
  return [_wireFormat.SexpOpcodes.Each, EXPR.expr(value), key ? EXPR.expr(key) : null, CONTENT.NamedBlock(block)[1], inverse ? CONTENT.NamedBlock(inverse)[1] : null];
5795
5805
  }
5796
- With(_ref14) {
5806
+ With(_ref94) {
5797
5807
  let {
5798
5808
  value,
5799
5809
  block,
5800
5810
  inverse
5801
- } = _ref14;
5811
+ } = _ref94;
5802
5812
  return [_wireFormat.SexpOpcodes.With, EXPR.expr(value), CONTENT.NamedBlock(block)[1], inverse ? CONTENT.NamedBlock(inverse)[1] : null];
5803
5813
  }
5804
- Let(_ref15) {
5814
+ Let(_ref95) {
5805
5815
  let {
5806
5816
  positional,
5807
5817
  block
5808
- } = _ref15;
5818
+ } = _ref95;
5809
5819
  return [_wireFormat.SexpOpcodes.Let, EXPR.Positional(positional), CONTENT.NamedBlock(block)[1]];
5810
5820
  }
5811
- WithDynamicVars(_ref16) {
5821
+ WithDynamicVars(_ref96) {
5812
5822
  let {
5813
5823
  named,
5814
5824
  block
5815
- } = _ref16;
5825
+ } = _ref96;
5816
5826
  return [_wireFormat.SexpOpcodes.WithDynamicVars, EXPR.NamedArguments(named), CONTENT.NamedBlock(block)[1]];
5817
5827
  }
5818
- InvokeComponent(_ref17) {
5828
+ InvokeComponent(_ref97) {
5819
5829
  let {
5820
5830
  definition,
5821
5831
  args,
5822
5832
  blocks
5823
- } = _ref17;
5833
+ } = _ref97;
5824
5834
  return [_wireFormat.SexpOpcodes.InvokeComponent, EXPR.expr(definition), EXPR.Positional(args.positional), EXPR.NamedArguments(args.named), blocks ? CONTENT.NamedBlocks(blocks) : null];
5825
5835
  }
5826
5836
  }
5827
5837
  const CONTENT = new ContentEncoder();
5828
- function staticAttr(_ref18) {
5838
+ function staticAttr(_ref98) {
5829
5839
  let {
5830
5840
  name,
5831
5841
  value,
5832
5842
  namespace
5833
- } = _ref18;
5843
+ } = _ref98;
5834
5844
  let out = [deflateAttrName(name.chars), value.chars];
5835
5845
  if (namespace) {
5836
5846
  out.push(namespace);
5837
5847
  }
5838
5848
  return out;
5839
5849
  }
5840
- function dynamicAttr(_ref19) {
5850
+ function dynamicAttr(_ref99) {
5841
5851
  let {
5842
5852
  name,
5843
5853
  value,
5844
5854
  namespace
5845
- } = _ref19;
5855
+ } = _ref99;
5846
5856
  let out = [deflateAttrName(name.chars), EXPR.expr(value)];
5847
5857
  if (namespace) {
5848
5858
  out.push(namespace);
@@ -5908,9 +5918,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5908
5918
  * @param {string} string a Glimmer template string
5909
5919
  * @return {string} a template javascript string
5910
5920
  */
5911
- function precompileJSON(string) {
5921
+ function precompileJSON(string, options) {
5912
5922
  var _options$meta, _options$strictMode;
5913
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
5923
+ if (options === void 0) {
5924
+ options = defaultOptions;
5925
+ }
5914
5926
  const source = new _syntax.src.Source(string != null ? string : '', (_options$meta = options.meta) == null ? void 0 : _options$meta.moduleName);
5915
5927
  const [ast, locals] = (0, _syntax.normalize)(source, {
5916
5928
  lexicalScope: () => false,
@@ -5944,9 +5956,11 @@ define("@glimmer/compiler", ["exports", "@glimmer/util", "@glimmer/wire-format",
5944
5956
  * @param {string} string a Glimmer template string
5945
5957
  * @return {string} a template javascript string
5946
5958
  */
5947
- function precompile(source) {
5959
+ function precompile(source, options) {
5948
5960
  var _options$meta2, _options$strictMode2;
5949
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : defaultOptions;
5961
+ if (options === void 0) {
5962
+ options = defaultOptions;
5963
+ }
5950
5964
  const [block, usedLocals] = precompileJSON(source, options);
5951
5965
  const moduleName = (_options$meta2 = options.meta) == null ? void 0 : _options$meta2.moduleName;
5952
5966
  const idFn = options.id || defaultId;
@@ -6106,8 +6120,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
6106
6120
  For example, ember-template-recast attempts to always preserve the original string
6107
6121
  formatting in each AST node if no modifications are made to it.
6108
6122
  */
6109
- handledByOverride(node) {
6110
- let ensureLeadingWhitespace = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
6123
+ handledByOverride(node, ensureLeadingWhitespace) {
6124
+ if (ensureLeadingWhitespace === void 0) {
6125
+ ensureLeadingWhitespace = false;
6126
+ }
6111
6127
  if (this.options.override !== undefined) {
6112
6128
  let result = this.options.override(node, this.options);
6113
6129
  if (typeof result === 'string') {
@@ -6511,10 +6527,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
6511
6527
  return this.buffer;
6512
6528
  }
6513
6529
  }
6514
- function build(ast) {
6515
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
6516
- entityEncoding: 'transformed'
6517
- };
6530
+ function build(ast, options) {
6531
+ if (options === void 0) {
6532
+ options = {
6533
+ entityEncoding: 'transformed'
6534
+ };
6535
+ }
6518
6536
  if (!ast) {
6519
6537
  return '';
6520
6538
  }
@@ -6780,8 +6798,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
6780
6798
  static synthetic(chars) {
6781
6799
  return new InvisibleSpan(OffsetKind.InternalsSynthetic, NON_EXISTENT_LOCATION, chars).wrap();
6782
6800
  }
6783
- static broken() {
6784
- let pos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : BROKEN_LOCATION;
6801
+ static broken(pos) {
6802
+ if (pos === void 0) {
6803
+ pos = BROKEN_LOCATION;
6804
+ }
6785
6805
  return new InvisibleSpan(OffsetKind.Broken, pos).wrap();
6786
6806
  }
6787
6807
  constructor(data) {
@@ -7003,12 +7023,14 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7003
7023
  }
7004
7024
  }
7005
7025
  class HbsSpan {
7006
- constructor(source, hbsPositions) {
7026
+ constructor(source, hbsPositions, providedHbsLoc) {
7027
+ if (providedHbsLoc === void 0) {
7028
+ providedHbsLoc = null;
7029
+ }
7007
7030
  this.kind = OffsetKind.HbsPosition;
7008
7031
  this._charPosSpan = null;
7009
7032
  // the source location from Handlebars + AST Plugins -- could be wrong
7010
7033
  this._providedHbsLoc = void 0;
7011
- let providedHbsLoc = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
7012
7034
  this.source = source;
7013
7035
  this.hbsPositions = hbsPositions;
7014
7036
  this._providedHbsLoc = providedHbsLoc;
@@ -7089,8 +7111,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7089
7111
  class InvisibleSpan {
7090
7112
  constructor(kind,
7091
7113
  // whatever was provided, possibly broken
7092
- loc) {
7093
- let string = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
7114
+ loc,
7115
+ // if the span represents a synthetic string
7116
+ string) {
7117
+ if (string === void 0) {
7118
+ string = null;
7119
+ }
7094
7120
  this.kind = kind;
7095
7121
  this.loc = loc;
7096
7122
  this.string = string;
@@ -7200,8 +7226,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7200
7226
  * calling code determined (or knows) that the `SourceLocation` doesn't correspond correctly to
7201
7227
  * any part of the source.
7202
7228
  */
7203
- static broken() {
7204
- let pos = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : UNKNOWN_POSITION;
7229
+ static broken(pos) {
7230
+ if (pos === void 0) {
7231
+ pos = UNKNOWN_POSITION;
7232
+ }
7205
7233
  return new InvisiblePosition(OffsetKind.Broken, pos).wrap();
7206
7234
  }
7207
7235
  constructor(data) {
@@ -7333,10 +7361,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7333
7361
  }
7334
7362
  }
7335
7363
  class HbsPosition {
7336
- constructor(source, hbsPos) {
7364
+ constructor(source, hbsPos, charPos) {
7365
+ if (charPos === void 0) {
7366
+ charPos = null;
7367
+ }
7337
7368
  this.kind = OffsetKind.HbsPosition;
7338
7369
  this._charPos = void 0;
7339
- let charPos = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
7340
7370
  this.source = source;
7341
7371
  this.hbsPos = hbsPos;
7342
7372
  this._charPos = charPos === null ? null : new CharPosition(source, charPos);
@@ -7419,43 +7449,47 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7419
7449
  *
7420
7450
  * @see {SourceOffset#eql}
7421
7451
  */
7422
- const eql = match(m => m.when(OffsetKind.HbsPosition, OffsetKind.HbsPosition, (_ref, _ref2) => {
7452
+ const eql = match(m => m.when(OffsetKind.HbsPosition, OffsetKind.HbsPosition, (_ref6, _ref7) => {
7423
7453
  let {
7424
7454
  hbsPos: left
7425
- } = _ref;
7455
+ } = _ref6;
7426
7456
  let {
7427
7457
  hbsPos: right
7428
- } = _ref2;
7458
+ } = _ref7;
7429
7459
  return left.column === right.column && left.line === right.line;
7430
- }).when(OffsetKind.CharPosition, OffsetKind.CharPosition, (_ref3, _ref4) => {
7460
+ }).when(OffsetKind.CharPosition, OffsetKind.CharPosition, (_ref8, _ref9) => {
7431
7461
  let {
7432
7462
  charPos: left
7433
- } = _ref3;
7463
+ } = _ref8;
7434
7464
  let {
7435
7465
  charPos: right
7436
- } = _ref4;
7466
+ } = _ref9;
7437
7467
  return left === right;
7438
- }).when(OffsetKind.CharPosition, OffsetKind.HbsPosition, (_ref5, right) => {
7468
+ }).when(OffsetKind.CharPosition, OffsetKind.HbsPosition, (_ref10, right) => {
7439
7469
  var _right$toCharPos;
7440
7470
  let {
7441
7471
  offset: left
7442
- } = _ref5;
7472
+ } = _ref10;
7443
7473
  return left === ((_right$toCharPos = right.toCharPos()) == null ? void 0 : _right$toCharPos.offset);
7444
- }).when(OffsetKind.HbsPosition, OffsetKind.CharPosition, (left, _ref6) => {
7474
+ }).when(OffsetKind.HbsPosition, OffsetKind.CharPosition, (left, _ref11) => {
7445
7475
  var _left$toCharPos;
7446
7476
  let {
7447
7477
  offset: right
7448
- } = _ref6;
7478
+ } = _ref11;
7449
7479
  return ((_left$toCharPos = left.toCharPos()) == null ? void 0 : _left$toCharPos.offset) === right;
7450
7480
  }).when(MatchAny, MatchAny, () => false));
7451
7481
  class Source {
7452
- static from(source) {
7482
+ static from(source, options) {
7453
7483
  var _options$meta;
7454
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
7484
+ if (options === void 0) {
7485
+ options = {};
7486
+ }
7455
7487
  return new Source(source, (_options$meta = options.meta) == null ? void 0 : _options$meta.moduleName);
7456
7488
  }
7457
- constructor(source) {
7458
- let module = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'an unknown module';
7489
+ constructor(source, module) {
7490
+ if (module === void 0) {
7491
+ module = 'an unknown module';
7492
+ }
7459
7493
  this.source = source;
7460
7494
  this.module = module;
7461
7495
  }
@@ -7475,11 +7509,11 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7475
7509
  column
7476
7510
  });
7477
7511
  }
7478
- spanFor(_ref) {
7512
+ spanFor(_ref12) {
7479
7513
  let {
7480
7514
  start,
7481
7515
  end
7482
- } = _ref;
7516
+ } = _ref12;
7483
7517
  return SourceSpan.forHbsLoc(this, {
7484
7518
  start: {
7485
7519
  line: start.line,
@@ -7544,13 +7578,17 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7544
7578
  }
7545
7579
  }
7546
7580
  class SpanList {
7547
- static range(span) {
7548
- let fallback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : SourceSpan.NON_EXISTENT;
7581
+ static range(span, fallback) {
7582
+ if (fallback === void 0) {
7583
+ fallback = SourceSpan.NON_EXISTENT;
7584
+ }
7549
7585
  return new SpanList(span.map(loc)).getRangeOffset(fallback);
7550
7586
  }
7551
- constructor() {
7587
+ constructor(span) {
7588
+ if (span === void 0) {
7589
+ span = [];
7590
+ }
7552
7591
  this._span = void 0;
7553
- let span = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
7554
7592
  this._span = span;
7555
7593
  }
7556
7594
  add(offset) {
@@ -7679,12 +7717,16 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7679
7717
  return new TraversalError('Replacing and removing in key handlers is not yet supported.', node, null, key);
7680
7718
  }
7681
7719
  class WalkerPath {
7682
- constructor(node) {
7720
+ constructor(node, parent, parentKey) {
7721
+ if (parent === void 0) {
7722
+ parent = null;
7723
+ }
7724
+ if (parentKey === void 0) {
7725
+ parentKey = null;
7726
+ }
7683
7727
  this.node = void 0;
7684
7728
  this.parent = void 0;
7685
7729
  this.parentKey = void 0;
7686
- let parent = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
7687
- let parentKey = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
7688
7730
  this.node = node;
7689
7731
  this.parent = parent;
7690
7732
  this.parentKey = parentKey;
@@ -7946,6 +7988,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
7946
7988
 
7947
7989
  // Regex to validate the identifier for block parameters.
7948
7990
  // Based on the ID validation regex in Handlebars.
7991
+
7949
7992
  let ID_INVERSE_PATTERN = /[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;
7950
7993
 
7951
7994
  // Checks the element's attributes to see if it uses block params.
@@ -8138,8 +8181,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8138
8181
 
8139
8182
  // Nodes
8140
8183
 
8141
- function buildElement(tag) {
8142
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
8184
+ function buildElement(tag, options) {
8185
+ if (options === void 0) {
8186
+ options = {};
8187
+ }
8143
8188
  let {
8144
8189
  attrs,
8145
8190
  blockParams,
@@ -8350,9 +8395,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8350
8395
  loc: buildLoc(loc || null)
8351
8396
  };
8352
8397
  }
8353
- function buildBlockItself(body, blockParams) {
8354
- let chained = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
8355
- let loc = arguments.length > 3 ? arguments[3] : undefined;
8398
+ function buildBlockItself(body, blockParams, chained, loc) {
8399
+ if (chained === void 0) {
8400
+ chained = false;
8401
+ }
8356
8402
  return {
8357
8403
  type: 'Block',
8358
8404
  body: body || [],
@@ -8504,13 +8550,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8504
8550
  column
8505
8551
  };
8506
8552
  }
8507
- blockItself(_ref) {
8553
+ blockItself(_ref13) {
8508
8554
  let {
8509
8555
  body = [],
8510
8556
  blockParams = [],
8511
8557
  chained = false,
8512
8558
  loc
8513
- } = _ref;
8559
+ } = _ref13;
8514
8560
  return {
8515
8561
  type: 'Block',
8516
8562
  body: body,
@@ -8519,12 +8565,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8519
8565
  loc
8520
8566
  };
8521
8567
  }
8522
- template(_ref2) {
8568
+ template(_ref14) {
8523
8569
  let {
8524
8570
  body,
8525
8571
  blockParams,
8526
8572
  loc
8527
- } = _ref2;
8573
+ } = _ref14;
8528
8574
  return {
8529
8575
  type: 'Template',
8530
8576
  body: body || [],
@@ -8532,7 +8578,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8532
8578
  loc
8533
8579
  };
8534
8580
  }
8535
- mustache(_ref3) {
8581
+ mustache(_ref15) {
8536
8582
  let {
8537
8583
  path,
8538
8584
  params,
@@ -8540,7 +8586,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8540
8586
  trusting,
8541
8587
  loc,
8542
8588
  strip = DEFAULT_STRIP
8543
- } = _ref3;
8589
+ } = _ref15;
8544
8590
  return {
8545
8591
  type: 'MustacheStatement',
8546
8592
  path,
@@ -8555,7 +8601,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8555
8601
  }
8556
8602
  };
8557
8603
  }
8558
- block(_ref4) {
8604
+ block(_ref16) {
8559
8605
  let {
8560
8606
  path,
8561
8607
  params,
@@ -8566,7 +8612,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8566
8612
  openStrip = DEFAULT_STRIP,
8567
8613
  inverseStrip = DEFAULT_STRIP,
8568
8614
  closeStrip = DEFAULT_STRIP
8569
- } = _ref4;
8615
+ } = _ref16;
8570
8616
  return {
8571
8617
  type: 'BlockStatement',
8572
8618
  path: path,
@@ -8601,7 +8647,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8601
8647
  loc
8602
8648
  };
8603
8649
  }
8604
- element(_ref5) {
8650
+ element(_ref17) {
8605
8651
  let {
8606
8652
  tag,
8607
8653
  selfClosing,
@@ -8611,7 +8657,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8611
8657
  comments,
8612
8658
  children,
8613
8659
  loc
8614
- } = _ref5;
8660
+ } = _ref17;
8615
8661
  return {
8616
8662
  type: 'ElementNode',
8617
8663
  tag,
@@ -8624,13 +8670,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8624
8670
  loc
8625
8671
  };
8626
8672
  }
8627
- elementModifier(_ref6) {
8673
+ elementModifier(_ref18) {
8628
8674
  let {
8629
8675
  path,
8630
8676
  params,
8631
8677
  hash,
8632
8678
  loc
8633
- } = _ref6;
8679
+ } = _ref18;
8634
8680
  return {
8635
8681
  type: 'ElementModifierStatement',
8636
8682
  path,
@@ -8639,12 +8685,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8639
8685
  loc
8640
8686
  };
8641
8687
  }
8642
- attr(_ref7) {
8688
+ attr(_ref19) {
8643
8689
  let {
8644
8690
  name,
8645
8691
  value,
8646
8692
  loc
8647
- } = _ref7;
8693
+ } = _ref19;
8648
8694
  return {
8649
8695
  type: 'AttrNode',
8650
8696
  name: name,
@@ -8652,24 +8698,24 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8652
8698
  loc
8653
8699
  };
8654
8700
  }
8655
- text(_ref8) {
8701
+ text(_ref20) {
8656
8702
  let {
8657
8703
  chars,
8658
8704
  loc
8659
- } = _ref8;
8705
+ } = _ref20;
8660
8706
  return {
8661
8707
  type: 'TextNode',
8662
8708
  chars,
8663
8709
  loc
8664
8710
  };
8665
8711
  }
8666
- sexpr(_ref9) {
8712
+ sexpr(_ref21) {
8667
8713
  let {
8668
8714
  path,
8669
8715
  params,
8670
8716
  hash,
8671
8717
  loc
8672
- } = _ref9;
8718
+ } = _ref21;
8673
8719
  return {
8674
8720
  type: 'SubExpression',
8675
8721
  path,
@@ -8678,12 +8724,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8678
8724
  loc
8679
8725
  };
8680
8726
  }
8681
- path(_ref10) {
8727
+ path(_ref22) {
8682
8728
  let {
8683
8729
  head,
8684
8730
  tail,
8685
8731
  loc
8686
- } = _ref10;
8732
+ } = _ref22;
8687
8733
  let {
8688
8734
  original: originalHead
8689
8735
  } = headToString(head);
@@ -8730,12 +8776,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8730
8776
  loc
8731
8777
  };
8732
8778
  }
8733
- pair(_ref11) {
8779
+ pair(_ref23) {
8734
8780
  let {
8735
8781
  key,
8736
8782
  value,
8737
8783
  loc
8738
- } = _ref11;
8784
+ } = _ref23;
8739
8785
  return {
8740
8786
  type: 'HashPair',
8741
8787
  key: key,
@@ -8743,12 +8789,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8743
8789
  loc
8744
8790
  };
8745
8791
  }
8746
- literal(_ref12) {
8792
+ literal(_ref24) {
8747
8793
  let {
8748
8794
  type,
8749
8795
  value,
8750
8796
  loc
8751
- } = _ref12;
8797
+ } = _ref24;
8752
8798
  return {
8753
8799
  type,
8754
8800
  value,
@@ -8816,15 +8862,19 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8816
8862
  }
8817
8863
  var b = new Builders();
8818
8864
  class Parser {
8819
- constructor(source) {
8865
+ constructor(source, entityParser, mode) {
8866
+ if (entityParser === void 0) {
8867
+ entityParser = new _simpleHtmlTokenizer.EntityParser(_simpleHtmlTokenizer.HTML5NamedCharRefs);
8868
+ }
8869
+ if (mode === void 0) {
8870
+ mode = 'precompile';
8871
+ }
8820
8872
  this.elementStack = [];
8821
8873
  this.lines = void 0;
8822
8874
  this.source = void 0;
8823
8875
  this.currentAttribute = null;
8824
8876
  this.currentNode = null;
8825
8877
  this.tokenizer = void 0;
8826
- let entityParser = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new _simpleHtmlTokenizer.EntityParser(_simpleHtmlTokenizer.HTML5NamedCharRefs);
8827
- let mode = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'precompile';
8828
8878
  this.source = source;
8829
8879
  this.lines = source.source.split(/\r\n?|\n/u);
8830
8880
  this.tokenizer = new _simpleHtmlTokenizer.EventedTokenizer(this, entityParser, mode);
@@ -8836,11 +8886,11 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
8836
8886
  } = this.tokenizer;
8837
8887
  return this.source.offsetFor(line, column);
8838
8888
  }
8839
- pos(_ref) {
8889
+ pos(_ref25) {
8840
8890
  let {
8841
8891
  line,
8842
8892
  column
8843
- } = _ref;
8893
+ } = _ref25;
8844
8894
  return this.source.offsetFor(line, column);
8845
8895
  }
8846
8896
  finish(node) {
@@ -9632,8 +9682,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
9632
9682
  return undefined;
9633
9683
  }
9634
9684
  }
9635
- function preprocess(input) {
9636
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
9685
+ function preprocess(input, options) {
9686
+ if (options === void 0) {
9687
+ options = {};
9688
+ }
9637
9689
  let mode = options.mode || 'precompile';
9638
9690
  let source;
9639
9691
  let ast;
@@ -9747,28 +9799,31 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
9747
9799
  * referenced that could possible come from the parent scope. Can exclude known keywords
9748
9800
  * optionally.
9749
9801
  */
9750
- function getTemplateLocals(html) {
9751
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
9752
- includeHtmlElements: false,
9753
- includeKeywords: false
9754
- };
9802
+ function getTemplateLocals(html, options) {
9803
+ var _options;
9804
+ if (options === void 0) {
9805
+ options = {
9806
+ includeHtmlElements: false,
9807
+ includeKeywords: false
9808
+ };
9809
+ }
9755
9810
  const ast = preprocess(html);
9756
9811
  const tokensSet = new Set();
9757
9812
  const scopedTokens = [];
9758
9813
  traverse(ast, {
9759
9814
  Block: {
9760
- enter(_ref) {
9815
+ enter(_ref26) {
9761
9816
  let {
9762
9817
  blockParams
9763
- } = _ref;
9818
+ } = _ref26;
9764
9819
  blockParams.forEach(param => {
9765
9820
  scopedTokens.push(param);
9766
9821
  });
9767
9822
  },
9768
- exit(_ref2) {
9823
+ exit(_ref27) {
9769
9824
  let {
9770
9825
  blockParams
9771
- } = _ref2;
9826
+ } = _ref27;
9772
9827
  blockParams.forEach(() => {
9773
9828
  scopedTokens.pop();
9774
9829
  });
@@ -9781,10 +9836,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
9781
9836
  });
9782
9837
  addTokens(tokensSet, node, scopedTokens, options);
9783
9838
  },
9784
- exit(_ref3) {
9839
+ exit(_ref28) {
9785
9840
  let {
9786
9841
  blockParams
9787
- } = _ref3;
9842
+ } = _ref28;
9788
9843
  blockParams.forEach(() => {
9789
9844
  scopedTokens.pop();
9790
9845
  });
@@ -9796,7 +9851,7 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
9796
9851
  });
9797
9852
  let tokens = [];
9798
9853
  tokensSet.forEach(s => tokens.push(s));
9799
- if (!(options != null && options.includeKeywords)) {
9854
+ if (!((_options = options) != null && _options.includeKeywords)) {
9800
9855
  tokens = tokens.filter(token => !isKeyword(token));
9801
9856
  }
9802
9857
  return tokens;
@@ -10269,8 +10324,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10269
10324
  *
10270
10325
  * @see {NamespacedAmbiguity}
10271
10326
  */
10272
- static namespaced(namespace) {
10273
- let isAngleBracket = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
10327
+ static namespaced(namespace, isAngleBracket) {
10328
+ if (isAngleBracket === void 0) {
10329
+ isAngleBracket = false;
10330
+ }
10274
10331
  return new LooseModeResolution({
10275
10332
  namespaces: [namespace],
10276
10333
  fallback: false
@@ -10313,10 +10370,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10313
10370
  *
10314
10371
  * @see {ComponentOrHelperAmbiguity}
10315
10372
  */
10316
- static append(_ref) {
10373
+ static append(_ref29) {
10317
10374
  let {
10318
10375
  invoke
10319
- } = _ref;
10376
+ } = _ref29;
10320
10377
  return new LooseModeResolution({
10321
10378
  namespaces: [FreeVarNamespace.Component, FreeVarNamespace.Helper],
10322
10379
  fallback: !invoke
@@ -10342,10 +10399,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10342
10399
  *
10343
10400
  * @see {HelperAmbiguity}
10344
10401
  */
10345
- static trustingAppend(_ref2) {
10402
+ static trustingAppend(_ref30) {
10346
10403
  let {
10347
10404
  invoke
10348
- } = _ref2;
10405
+ } = _ref30;
10349
10406
  return new LooseModeResolution({
10350
10407
  namespaces: [FreeVarNamespace.Helper],
10351
10408
  fallback: !invoke
@@ -10371,8 +10428,10 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10371
10428
  fallback: true
10372
10429
  });
10373
10430
  }
10374
- constructor(ambiguity) {
10375
- let isAngleBracket = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
10431
+ constructor(ambiguity, isAngleBracket) {
10432
+ if (isAngleBracket === void 0) {
10433
+ isAngleBracket = false;
10434
+ }
10376
10435
  this.ambiguity = ambiguity;
10377
10436
  this.isAngleBracket = isAngleBracket;
10378
10437
  }
@@ -10784,12 +10843,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10784
10843
  entries
10785
10844
  });
10786
10845
  }
10787
- attr(_ref, loc) {
10846
+ attr(_ref31, loc) {
10788
10847
  let {
10789
10848
  name,
10790
10849
  value,
10791
10850
  trusting
10792
- } = _ref;
10851
+ } = _ref31;
10793
10852
  return new HtmlAttr({
10794
10853
  loc,
10795
10854
  name,
@@ -10803,12 +10862,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10803
10862
  loc
10804
10863
  });
10805
10864
  }
10806
- arg(_ref2, loc) {
10865
+ arg(_ref32, loc) {
10807
10866
  let {
10808
10867
  name,
10809
10868
  value,
10810
10869
  trusting
10811
- } = _ref2;
10870
+ } = _ref32;
10812
10871
  return new ComponentArg({
10813
10872
  name,
10814
10873
  value,
@@ -10843,13 +10902,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10843
10902
  symbol
10844
10903
  });
10845
10904
  }
10846
- freeVar(_ref3) {
10905
+ freeVar(_ref33) {
10847
10906
  let {
10848
10907
  name,
10849
10908
  context,
10850
10909
  symbol,
10851
10910
  loc
10852
- } = _ref3;
10911
+ } = _ref33;
10853
10912
  (0, _util.assert)(name !== 'this', "You called builders.freeVar() with 'this'. Call builders.this instead");
10854
10913
  (0, _util.assert)(name[0] !== '@', "You called builders.freeVar() with '" + name + "'. Call builders.at('" + name + "') instead");
10855
10914
  return new FreeVarReference({
@@ -10899,12 +10958,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10899
10958
 
10900
10959
  // STATEMENTS //
10901
10960
 
10902
- append(_ref4, loc) {
10961
+ append(_ref34, loc) {
10903
10962
  let {
10904
10963
  table,
10905
10964
  trusting,
10906
10965
  value
10907
- } = _ref4;
10966
+ } = _ref34;
10908
10967
  return new AppendContent({
10909
10968
  table,
10910
10969
  trusting,
@@ -10912,11 +10971,11 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10912
10971
  loc
10913
10972
  });
10914
10973
  }
10915
- modifier(_ref5, loc) {
10974
+ modifier(_ref35, loc) {
10916
10975
  let {
10917
10976
  callee,
10918
10977
  args
10919
- } = _ref5;
10978
+ } = _ref35;
10920
10979
  return new ElementModifier({
10921
10980
  loc,
10922
10981
  callee,
@@ -10929,12 +10988,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
10929
10988
  blocks
10930
10989
  });
10931
10990
  }
10932
- blockStatement(_ref6, loc) {
10991
+ blockStatement(_ref36, loc) {
10933
10992
  let {
10934
10993
  program,
10935
10994
  inverse = null,
10936
10995
  ...call
10937
- } = _ref6;
10996
+ } = _ref36;
10938
10997
  let blocksLoc = program.loc;
10939
10998
  let blocks = [this.namedBlock(SourceSlice.synthetic('default'), program, program.loc)];
10940
10999
  if (inverse) {
@@ -11111,11 +11170,13 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
11111
11170
  function isInvokeNode(node) {
11112
11171
  return node.params.length > 0 || node.hash.pairs.length > 0;
11113
11172
  }
11114
- function normalize(source) {
11173
+ function normalize(source, options) {
11115
11174
  var _options$customizeCom;
11116
- let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {
11117
- lexicalScope: () => false
11118
- };
11175
+ if (options === void 0) {
11176
+ options = {
11177
+ lexicalScope: () => false
11178
+ };
11179
+ }
11119
11180
  let ast = preprocess(source, options);
11120
11181
  let normalizeOptions = {
11121
11182
  strictMode: false,
@@ -11450,12 +11511,12 @@ define("@glimmer/syntax", ["exports", "ember-babel", "@glimmer/util", "@handleba
11450
11511
  inverse: inverse ? this.Block(inverse) : null
11451
11512
  }, callParts), loc);
11452
11513
  }
11453
- Block(_ref) {
11514
+ Block(_ref37) {
11454
11515
  let {
11455
11516
  body,
11456
11517
  loc,
11457
11518
  blockParams
11458
- } = _ref;
11519
+ } = _ref37;
11459
11520
  let child = this.block.child(blockParams);
11460
11521
  let normalizer = new StatementNormalizer(child);
11461
11522
  return new BlockChildren(this.block.loc(loc), body.map(b => normalizer.normalize(b)), this.block).assertBlock(child.table);
@@ -11900,7 +11961,6 @@ define("@glimmer/util", ["exports"], function (_exports) {
11900
11961
  _exports.exhausted = exhausted;
11901
11962
  _exports.expect = expect;
11902
11963
  _exports.extractHandle = extractHandle;
11903
- _exports.fillNulls = fillNulls;
11904
11964
  _exports.getFirst = getFirst;
11905
11965
  _exports.getLast = getLast;
11906
11966
  _exports.ifPresent = ifPresent;
@@ -11984,8 +12044,10 @@ define("@glimmer/util", ["exports"], function (_exports) {
11984
12044
  if (val === null || val === undefined) throw new Error(message);
11985
12045
  return val;
11986
12046
  }
11987
- function unreachable() {
11988
- let message = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'unreachable';
12047
+ function unreachable(message) {
12048
+ if (message === void 0) {
12049
+ message = 'unreachable';
12050
+ }
11989
12051
  return new Error(message);
11990
12052
  }
11991
12053
  function exhausted(value) {
@@ -12023,14 +12085,18 @@ define("@glimmer/util", ["exports"], function (_exports) {
12023
12085
  return null;
12024
12086
  }
12025
12087
  }
12026
- function assertPresentArray(list) {
12027
- let message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "unexpected empty list";
12088
+ function assertPresentArray(list, message) {
12089
+ if (message === void 0) {
12090
+ message = "unexpected empty list";
12091
+ }
12028
12092
  if (!isPresentArray(list)) {
12029
12093
  throw new Error(message);
12030
12094
  }
12031
12095
  }
12032
- function asPresentArray(list) {
12033
- let message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "unexpected empty list";
12096
+ function asPresentArray(list, message) {
12097
+ if (message === void 0) {
12098
+ message = "unexpected empty list";
12099
+ }
12034
12100
  assertPresentArray(list, message);
12035
12101
  return list;
12036
12102
  }
@@ -12060,10 +12126,12 @@ define("@glimmer/util", ["exports"], function (_exports) {
12060
12126
  return typeof u === 'function' || typeof u === 'object' && u !== null;
12061
12127
  }
12062
12128
  class StackImpl {
12063
- constructor() {
12129
+ constructor(values) {
12130
+ if (values === void 0) {
12131
+ values = [];
12132
+ }
12064
12133
  this.stack = void 0;
12065
12134
  this.current = null;
12066
- let values = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
12067
12135
  this.stack = values;
12068
12136
  }
12069
12137
  get size() {
@@ -12225,8 +12293,8 @@ define("@glimmer/util", ["exports"], function (_exports) {
12225
12293
  return value > ImmediateConstants.ENCODED_UNDEFINED_HANDLE;
12226
12294
  }
12227
12295
  function constants() {
12228
- for (var _len = arguments.length, values = new Array(_len), _key = 0; _key < _len; _key++) {
12229
- values[_key] = arguments[_key];
12296
+ for (var _len2 = arguments.length, values = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
12297
+ values[_key2] = arguments[_key2];
12230
12298
  }
12231
12299
  return [false, true, null, undefined, ...values];
12232
12300
  }
@@ -12315,13 +12383,6 @@ define("@glimmer/util", ["exports"], function (_exports) {
12315
12383
  return node.nodeValue === SERIALIZATION_FIRST_NODE_STRING;
12316
12384
  }
12317
12385
  let assign = _exports.assign = Object.assign;
12318
- function fillNulls(count) {
12319
- let arr = new Array(count);
12320
- for (let i = 0; i < count; i++) {
12321
- arr[i] = null;
12322
- }
12323
- return arr;
12324
- }
12325
12386
  function values(obj) {
12326
12387
  return Object.values(obj);
12327
12388
  }
@@ -12408,8 +12469,8 @@ define("@glimmer/util", ["exports"], function (_exports) {
12408
12469
  }
12409
12470
  function strip(strings) {
12410
12471
  let out = '';
12411
- for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
12412
- args[_key - 1] = arguments[_key];
12472
+ for (var _len3 = arguments.length, args = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) {
12473
+ args[_key3 - 1] = arguments[_key3];
12413
12474
  }
12414
12475
  for (const [i, string] of enumerate(strings)) {
12415
12476
  let dynamic = args[i] !== undefined ? String(args[i]) : '';
@@ -12501,8 +12562,10 @@ define("@glimmer/util", ["exports"], function (_exports) {
12501
12562
  * actually appropriate.
12502
12563
  */
12503
12564
  const LOGGER = _exports.LOGGER = console;
12504
- function assertNever(value) {
12505
- let desc = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'unexpected unreachable branch';
12565
+ function assertNever(value, desc) {
12566
+ if (desc === void 0) {
12567
+ desc = 'unexpected unreachable branch';
12568
+ }
12506
12569
  LOGGER.log('unreachable', value);
12507
12570
  LOGGER.log(desc + " :: " + JSON.stringify(value) + " (" + value + ")");
12508
12571
  throw new Error("code reached unreachable");
@@ -16498,7 +16561,7 @@ define("ember/version", ["exports"], function (_exports) {
16498
16561
  value: true
16499
16562
  });
16500
16563
  _exports.default = void 0;
16501
- var _default = _exports.default = "5.7.0-alpha.2";
16564
+ var _default = _exports.default = "5.7.0-alpha.4";
16502
16565
  });
16503
16566
  define("simple-html-tokenizer", ["exports"], function (_exports) {
16504
16567
  "use strict";