@explorable-viz/fluid 0.7.87 → 0.7.88

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.
@@ -744,8 +744,8 @@ var foldableArray = {
744
744
  }
745
745
  };
746
746
  var foldrDefault = (dictFoldable) => {
747
- const foldMap22 = dictFoldable.foldMap(monoidEndo);
748
- return (c) => (u) => (xs) => foldMap22((x2) => c(x2))(xs)(u);
747
+ const foldMap2 = dictFoldable.foldMap(monoidEndo);
748
+ return (c) => (u) => (xs) => foldMap2((x2) => c(x2))(xs)(u);
749
749
  };
750
750
 
751
751
  // output-es/Unsafe.Coerce/foreign.js
@@ -8429,19 +8429,19 @@ var FacetProvider = class {
8429
8429
  this.value = value;
8430
8430
  this.id = nextID++;
8431
8431
  }
8432
- dynamicSlot(addresses2) {
8432
+ dynamicSlot(addresses) {
8433
8433
  var _a2;
8434
8434
  let getter = this.value;
8435
8435
  let compare2 = this.facet.compareInput;
8436
- let id3 = this.id, idx = addresses2[id3] >> 1, multi = this.type == 2;
8436
+ let id3 = this.id, idx = addresses[id3] >> 1, multi = this.type == 2;
8437
8437
  let depDoc = false, depSel = false, depAddrs = [];
8438
8438
  for (let dep of this.dependencies) {
8439
8439
  if (dep == "doc")
8440
8440
  depDoc = true;
8441
8441
  else if (dep == "selection")
8442
8442
  depSel = true;
8443
- else if ((((_a2 = addresses2[dep.id]) !== null && _a2 !== void 0 ? _a2 : 1) & 1) == 0)
8444
- depAddrs.push(addresses2[dep.id]);
8443
+ else if ((((_a2 = addresses[dep.id]) !== null && _a2 !== void 0 ? _a2 : 1) & 1) == 0)
8444
+ depAddrs.push(addresses[dep.id]);
8445
8445
  }
8446
8446
  return {
8447
8447
  create(state) {
@@ -8492,11 +8492,11 @@ function ensureAll(state, addrs) {
8492
8492
  changed = true;
8493
8493
  return changed;
8494
8494
  }
8495
- function dynamicFacetSlot(addresses2, facet, providers) {
8496
- let providerAddrs = providers.map((p) => addresses2[p.id]);
8495
+ function dynamicFacetSlot(addresses, facet, providers) {
8496
+ let providerAddrs = providers.map((p) => addresses[p.id]);
8497
8497
  let providerTypes = providers.map((p) => p.type);
8498
8498
  let dynamic = providerAddrs.filter((p) => !(p & 1));
8499
- let idx = addresses2[facet.id] >> 1;
8499
+ let idx = addresses[facet.id] >> 1;
8500
8500
  function get3(state) {
8501
8501
  let values2 = [];
8502
8502
  for (let i = 0; i < providerAddrs.length; i++) {
@@ -8562,8 +8562,8 @@ var StateField = class {
8562
8562
  let init6 = state.facet(initField).find((i) => i.field == this);
8563
8563
  return ((init6 === null || init6 === void 0 ? void 0 : init6.create) || this.createF)(state);
8564
8564
  }
8565
- slot(addresses2) {
8566
- let idx = addresses2[this.id] >> 1;
8565
+ slot(addresses) {
8566
+ let idx = addresses[this.id] >> 1;
8567
8567
  return {
8568
8568
  create: (state) => {
8569
8569
  state.values[idx] = this.create(state);
@@ -27856,9 +27856,9 @@ var member3 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
27856
27856
  var select\u03B1s\u{1D539}Vertex = (dictApply) => {
27857
27857
  const $0 = dictApply.Functor0();
27858
27858
  return (dictFoldable) => {
27859
- const unions22 = dictFoldable.foldl(union3(ordVertex))(Leaf2);
27859
+ const unions12 = dictFoldable.foldl(union3(ordVertex))(Leaf2);
27860
27860
  return {
27861
- "select\u03B1s": (v\u{1D539}) => (v\u03B1) => unions22(dictApply.apply($0.map((v) => {
27861
+ "select\u03B1s": (v\u{1D539}) => (v\u03B1) => unions12(dictApply.apply($0.map((v) => {
27862
27862
  if (v) {
27863
27863
  return singleton3;
27864
27864
  }
@@ -27868,19 +27868,12 @@ var select\u03B1s\u{1D539}Vertex = (dictApply) => {
27868
27868
  };
27869
27869
  };
27870
27870
  };
27871
- var eqDVertex = { eq: (v) => (v1) => v._1 === v1._1 };
27872
- var ordDVertex = { compare: (v) => (v1) => ordString.compare(v._1)(v1._1), Eq0: () => eqDVertex };
27873
- var unions1 = /* @__PURE__ */ foldlArray(/* @__PURE__ */ union3(ordDVertex))(Leaf2);
27874
- var verticesDict = (dictVertices) => {
27875
- const vertices1 = dictVertices.vertices;
27876
- return { vertices: (d) => unions1(arrayMap(vertices1)(values(d))) };
27877
- };
27878
27871
  var showVertices = (\u03B1s) => "{" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(\u03B1s))) + "}";
27879
27872
  var showEdgeList = (es) => joinWith("\n")([
27880
27873
  "digraph G {",
27881
27874
  ...arrayMap((v) => " " + v)([
27882
27875
  "rankdir = RL",
27883
- ...arrayMap((v) => v._1._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
27876
+ ...arrayMap((v) => v._1 + " -> {" + joinWith(", ")(fromFoldable4(map2(ordString)(unsafeCoerce)(v._2))) + "}")(fromFoldable13(reverse2(es)))
27884
27877
  ]),
27885
27878
  "}"
27886
27879
  ]);
@@ -27890,13 +27883,7 @@ var toEdgeList = (dictGraph) => (g) => {
27890
27883
  return $Step("Done", v._2);
27891
27884
  }
27892
27885
  if (v._1.tag === "Cons") {
27893
- return $Step(
27894
- "Loop",
27895
- $Tuple(
27896
- v._1._2,
27897
- $List("Cons", $Tuple($Tuple(v._1._1, dictGraph.vertexData(g)(v._1._1)), dictGraph.outN(g)(v._1._1)), v._2)
27898
- )
27899
- );
27886
+ return $Step("Loop", $Tuple(v._1._2, $List("Cons", $Tuple(v._1._1, dictGraph.outN(g)(v._1._1)), v._2)));
27900
27887
  }
27901
27888
  fail();
27902
27889
  };
@@ -27953,8 +27940,6 @@ var inEdges = (dictGraph) => (g) => (\u03B1s) => {
27953
27940
  };
27954
27941
  return go($0($Tuple(fromFoldable22(\u03B1s), Nil)));
27955
27942
  };
27956
- var addresses = /* @__PURE__ */ map2(ordVertex)((x2) => x2._1);
27957
- var showVertices$p = (x2) => showVertices(addresses(x2));
27958
27943
 
27959
27944
  // output-es/Data.CatQueue/index.js
27960
27945
  var $CatQueue = (_1, _2) => ({ tag: "CatQueue", _1, _2 });
@@ -28169,20 +28154,15 @@ var peek = /* @__PURE__ */ peekImpl2(Just)(Nothing);
28169
28154
  var $GraphImpl = (_1) => ({ tag: "GraphImpl", _1 });
28170
28155
  var eqSet = { eq: (v) => (v1) => eqMap(eqVertex)(eqUnit).eq(v)(v1) };
28171
28156
  var eq = /* @__PURE__ */ (() => eqObject(eqSet).eq)();
28172
- var fromFoldable15 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
28157
+ var fromFoldable6 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2);
28173
28158
  var toUnfoldable6 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
28174
- var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
28175
- var fromFoldable32 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
28159
+ var fromFoldable15 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
28160
+ var fromFoldable23 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2))();
28176
28161
  var toUnfoldable12 = /* @__PURE__ */ toAscUnfoldable(unfoldableArray);
28177
- var fromFoldable42 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
28178
- var verticesGraphImpl = {
28179
- vertices: (v) => fold((z) => (v$1) => (a) => insert3(ordDVertex)(a)()(z))(Leaf2)(_mapWithKey(
28180
- v._1.out,
28181
- (k) => (v1) => $Tuple(k, v1._2)
28182
- ))
28183
- };
28184
- var eqGraphImpl = { eq: (v) => (v1) => eq(_fmapObject(v._1.out, fst))(_fmapObject(v1._1.out, fst)) };
28185
- var sinks$p = (m) => fromFoldable15(arrayMap((x2) => x2._1)(filter((x2) => x2._2._1.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28162
+ var fromFoldable32 = /* @__PURE__ */ fromFoldable2(ordVertex)(foldableArray);
28163
+ var verticesGraphImpl = { vertices: (v) => v._1.vertices };
28164
+ var eqGraphImpl = { eq: (v) => (v1) => eq(v._1.out)(v1._1.out) };
28165
+ var sinks$p = (m) => fromFoldable6(arrayMap((x2) => x2._1)(filter((x2) => x2._2.tag === "Leaf")(toArrayWithKey(Tuple)(m))));
28186
28166
  var init5 = (\u03B1s) => () => {
28187
28167
  const obj = {};
28188
28168
  return monadRecST.tailRecM((v) => {
@@ -28190,11 +28170,11 @@ var init5 = (\u03B1s) => () => {
28190
28170
  return () => $Step("Done", v._2);
28191
28171
  }
28192
28172
  if (v._1.tag === "Cons") {
28193
- const $0 = v._1._1._1;
28173
+ const $0 = v._1._1;
28194
28174
  const $1 = v._1._2;
28195
28175
  const $2 = v._2;
28196
28176
  return () => {
28197
- $2[$0] = $Tuple(Leaf2, v._1._1._2);
28177
+ $2[$0] = Leaf2;
28198
28178
  return $Step("Loop", $Tuple($1, $2));
28199
28179
  };
28200
28180
  }
@@ -28225,6 +28205,34 @@ var assertPresent = (v) => (v1) => {
28225
28205
  }
28226
28206
  fail();
28227
28207
  };
28208
+ var addIfMissing = (acc) => (v) => {
28209
+ const $0 = peek(v)(acc);
28210
+ return () => {
28211
+ const v1 = $0();
28212
+ if (v1.tag === "Nothing") {
28213
+ acc[v] = Leaf2;
28214
+ return acc;
28215
+ }
28216
+ if (v1.tag === "Just") {
28217
+ return acc;
28218
+ }
28219
+ fail();
28220
+ };
28221
+ };
28222
+ var addIfMissing$p = (\u03B1s) => (acc) => monadRecST.tailRecM((v) => {
28223
+ if (v._1.tag === "Nil") {
28224
+ return () => $Step("Done", v._2);
28225
+ }
28226
+ if (v._1.tag === "Cons") {
28227
+ const $0 = v._1._2;
28228
+ const $1 = addIfMissing(v._2)(v._1._1);
28229
+ return () => {
28230
+ const acc$p$p = $1();
28231
+ return $Step("Loop", $Tuple($0, acc$p$p));
28232
+ };
28233
+ }
28234
+ fail();
28235
+ })($Tuple(\u03B1s, acc));
28228
28236
  var outMap = (\u03B1s) => (es) => {
28229
28237
  const $0 = init5(\u03B1s);
28230
28238
  return () => {
@@ -28236,48 +28244,33 @@ var outMap = (\u03B1s) => (es) => {
28236
28244
  if (v._1.tag === "Cons") {
28237
28245
  const $1 = v._2;
28238
28246
  const $2 = v._1._2;
28239
- const $3 = v._1._1._1._2;
28240
- const $4 = v._1._1._1._1;
28241
- const $5 = v._1._1._2;
28242
- const $6 = peek($4)($1);
28247
+ const $3 = v._1._1._1;
28248
+ const $4 = v._1._1._2;
28249
+ const $5 = peek($3)($1);
28243
28250
  return () => {
28244
- const $7 = $6();
28251
+ const $6 = $5();
28245
28252
  if ((() => {
28246
- if ($7.tag === "Nothing") {
28253
+ if ($6.tag === "Nothing") {
28247
28254
  return true;
28248
28255
  }
28249
- if ($7.tag === "Just") {
28250
- return eqMap(eqVertex)(eqUnit).eq($7._1._1)(Leaf2);
28256
+ if ($6.tag === "Just") {
28257
+ return eqMap(eqVertex)(eqUnit).eq($6._1)(Leaf2);
28251
28258
  }
28252
28259
  fail();
28253
28260
  })()) {
28254
- monadRecST.tailRecM(assertPresent($1))(toUnfoldable6($5))();
28255
- $1[$4] = $Tuple($5, $3);
28256
- return $Step("Loop", $Tuple($2, $1));
28261
+ const \u03B2s$p = toUnfoldable6($4);
28262
+ monadRecST.tailRecM(assertPresent($1))(\u03B2s$p)();
28263
+ $1[$3] = $4;
28264
+ const acc$p = addIfMissing$p(\u03B2s$p)($1)();
28265
+ return $Step("Loop", $Tuple($2, acc$p));
28257
28266
  }
28258
- return throwException(error("Duplicate edge list entry for " + showStringImpl($4)))()();
28267
+ return throwException(error("Duplicate edge list entry for " + showStringImpl($3)))()();
28259
28268
  };
28260
28269
  }
28261
28270
  fail();
28262
28271
  })($Tuple(es, out))();
28263
28272
  };
28264
28273
  };
28265
- var addIfMissing = (acc) => (v) => {
28266
- const $0 = v._2;
28267
- const $1 = v._1;
28268
- const $2 = peek($1)(acc);
28269
- return () => {
28270
- const v1 = $2();
28271
- if (v1.tag === "Nothing") {
28272
- acc[$1] = $Tuple(Leaf2, $0);
28273
- return acc;
28274
- }
28275
- if (v1.tag === "Just") {
28276
- return acc;
28277
- }
28278
- fail();
28279
- };
28280
- };
28281
28274
  var inMap = (\u03B1s) => (es) => {
28282
28275
  const $0 = init5(\u03B1s);
28283
28276
  return () => {
@@ -28288,38 +28281,37 @@ var inMap = (\u03B1s) => (es) => {
28288
28281
  }
28289
28282
  if (v._1.tag === "Cons") {
28290
28283
  const $1 = v._1._2;
28291
- const $2 = v._1._1._1._2;
28292
- const $3 = v._1._1._1._1;
28293
- const $4 = monadRecST.tailRecM((v2) => {
28294
- if (v2._1.tag === "Nil") {
28295
- return () => $Step("Done", v2._2);
28284
+ const $2 = v._1._1._1;
28285
+ const $3 = monadRecST.tailRecM((v1) => {
28286
+ if (v1._1.tag === "Nil") {
28287
+ return () => $Step("Done", v1._2);
28296
28288
  }
28297
- if (v2._1.tag === "Cons") {
28298
- const $42 = v2._2;
28299
- const $5 = v2._1._1;
28300
- const $6 = v2._1._2;
28301
- const $7 = peek($5)($42);
28289
+ if (v1._1.tag === "Cons") {
28290
+ const $32 = v1._2;
28291
+ const $4 = v1._1._1;
28292
+ const $5 = v1._1._2;
28293
+ const $6 = peek($4)($32);
28302
28294
  return () => {
28303
- const v1 = $7();
28295
+ const v1$1 = $6();
28304
28296
  const acc$p = (() => {
28305
- if (v1.tag === "Nothing") {
28306
- $42[$5] = $Tuple($$$Map("Two", Leaf2, $3, void 0, Leaf2), $2);
28307
- return $42;
28297
+ if (v1$1.tag === "Nothing") {
28298
+ $32[$4] = $$$Map("Two", Leaf2, $2, void 0, Leaf2);
28299
+ return $32;
28308
28300
  }
28309
- if (v1.tag === "Just") {
28310
- $42[$5] = $Tuple(insert3(ordVertex)($3)()(v1._1._1), $2);
28311
- return $42;
28301
+ if (v1$1.tag === "Just") {
28302
+ $32[$4] = insert3(ordVertex)($2)()(v1$1._1);
28303
+ return $32;
28312
28304
  }
28313
28305
  fail();
28314
28306
  })();
28315
- return $Step("Loop", $Tuple($6, acc$p));
28307
+ return $Step("Loop", $Tuple($5, acc$p));
28316
28308
  };
28317
28309
  }
28318
28310
  fail();
28319
28311
  })($Tuple(toUnfoldable6(v._1._1._2), v._2));
28320
28312
  return () => {
28321
- const $5 = $4();
28322
- const acc$p = addIfMissing($5)($Tuple($3, $2))();
28313
+ const a = $3();
28314
+ const acc$p = addIfMissing(a)($2)();
28323
28315
  return $Step("Loop", $Tuple($1, acc$p));
28324
28316
  };
28325
28317
  }
@@ -28328,8 +28320,7 @@ var inMap = (\u03B1s) => (es) => {
28328
28320
  };
28329
28321
  };
28330
28322
  var graphGraphImpl = {
28331
- outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._1,
28332
- vertexData: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out))._2,
28323
+ outN: (v) => (\u03B1) => definitely("in graph")(_lookup(Nothing, Just, \u03B1, v._1.out)),
28333
28324
  inN: (g) => graphGraphImpl.outN(graphGraphImpl.op(g)),
28334
28325
  elem: (\u03B1) => (v) => {
28335
28326
  const $0 = _lookup(Nothing, Just, \u03B1, v._1.out);
@@ -28353,7 +28344,7 @@ var graphGraphImpl = {
28353
28344
  vertices: Leaf2
28354
28345
  }),
28355
28346
  fromEdgeList: (\u03B1s) => (es) => {
28356
- const \u03B1s$p = fromFoldable23(\u03B1s);
28347
+ const \u03B1s$p = fromFoldable15(\u03B1s);
28357
28348
  const es$p = reverse2(es);
28358
28349
  const in_ = inMap(\u03B1s$p)(es$p)();
28359
28350
  const out = outMap(\u03B1s$p)(es$p)();
@@ -28362,13 +28353,13 @@ var graphGraphImpl = {
28362
28353
  in_,
28363
28354
  sinks: sinks$p(out),
28364
28355
  sources: sinks$p(in_),
28365
- vertices: fromFoldable32(map2(ordVertex)(Vertex)(mapObjectString.keys(out)))
28356
+ vertices: fromFoldable23(map2(ordVertex)(Vertex)(mapObjectString.keys(out)))
28366
28357
  });
28367
28358
  },
28368
- topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable42(arrayMap((x2) => $Tuple(
28359
+ topologicalSort: (v) => reverse2(topologicalSort(ordVertex)(fromFoldable32(arrayMap((x2) => $Tuple(
28369
28360
  x2._1,
28370
28361
  $Tuple(void 0, x2._2)
28371
- ))(toUnfoldable12(_fmapObject(_fmapObject(v._1.out, fst), toUnfoldable6)))))),
28362
+ ))(toUnfoldable12(_fmapObject(v._1.out, toUnfoldable6)))))),
28372
28363
  Eq0: () => eqGraphImpl,
28373
28364
  Vertices1: () => verticesGraphImpl
28374
28365
  };
@@ -29184,34 +29175,12 @@ var $Elim = (tag, _1, _2) => ({ tag, _1, _2 });
29184
29175
  var $Expr = (tag, _1, _2, _3, _4) => ({ tag, _1, _2, _3, _4 });
29185
29176
  var $RecDefs = (_1, _2) => ({ tag: "RecDefs", _1, _2 });
29186
29177
  var $VarDef = (_1, _2) => ({ tag: "VarDef", _1, _2 });
29187
- var union5 = /* @__PURE__ */ (() => setSet(ordDVertex).union)();
29188
- var unions12 = /* @__PURE__ */ (() => {
29189
- const go = (go$a0$copy) => (go$a1$copy) => {
29190
- let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
29191
- while (go$c) {
29192
- const b = go$a0, v = go$a1;
29193
- if (v.tag === "Nil") {
29194
- go$c = false;
29195
- go$r = b;
29196
- continue;
29197
- }
29198
- if (v.tag === "Cons") {
29199
- go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
29200
- go$a1 = v._2;
29201
- continue;
29202
- }
29203
- fail();
29204
- }
29205
- return go$r;
29206
- };
29207
- return go(Leaf2);
29208
- })();
29209
29178
  var eqSet2 = { eq: (v) => (v1) => eqMap(eqString)(eqUnit).eq(v)(v1) };
29210
29179
  var identity25 = (x2) => x2;
29211
29180
  var setSet2 = /* @__PURE__ */ setSet(ordString);
29212
- var fromFoldable6 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
29181
+ var fromFoldable7 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
29213
29182
  var asMaplet2 = /* @__PURE__ */ asMaplet(mapDictString);
29214
- var unions3 = /* @__PURE__ */ (() => {
29183
+ var unions1 = /* @__PURE__ */ (() => {
29215
29184
  const go = (go$a0$copy) => (go$a1$copy) => {
29216
29185
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
29217
29186
  while (go$c) {
@@ -29247,97 +29216,6 @@ var ElimDict = (value0) => (value1) => $Elim("ElimDict", value0, value1);
29247
29216
  var VarDef = (value0) => (value1) => $VarDef(value0, value1);
29248
29217
  var RecDefs = (value0) => (value1) => $RecDefs(value0, value1);
29249
29218
  var Module = (x2) => x2;
29250
- var typeNameRecDefs = { typeName: (v) => "RecDefs" };
29251
- var pack = (x2) => (k) => k(typeNameRecDefs)(x2);
29252
- var typeNameExpr = { typeName: (v) => "Expr" };
29253
- var pack1 = (x2) => (k) => k(typeNameExpr)(x2);
29254
- var verticesVarDefVertex = { vertices: (v) => union5(verticesElimVertex.vertices(v._1))(verticesExprVertex.vertices(v._2)) };
29255
- var verticesRecDefsVertex = {
29256
- vertices: (v) => union5($$$Map("Two", Leaf2, $Tuple(v._1, pack(v)), void 0, Leaf2))(verticesDict(verticesElimVertex).vertices(v._2))
29257
- };
29258
- var verticesExprVertex = {
29259
- vertices: (v) => {
29260
- if (v.tag === "Var") {
29261
- return Leaf2;
29262
- }
29263
- if (v.tag === "Op") {
29264
- return Leaf2;
29265
- }
29266
- if (v.tag === "Int") {
29267
- return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29268
- }
29269
- if (v.tag === "Float") {
29270
- return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29271
- }
29272
- if (v.tag === "Str") {
29273
- return $$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2);
29274
- }
29275
- if (v.tag === "Dictionary") {
29276
- return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(unions12(listMap((v1) => union5(verticesExprVertex.vertices(v1._1))(verticesExprVertex.vertices(v1._2)))(v._2)));
29277
- }
29278
- if (v.tag === "Constr") {
29279
- return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(unions12(listMap(verticesExprVertex.vertices)(v._3)));
29280
- }
29281
- if (v.tag === "Matrix") {
29282
- return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(union5(verticesExprVertex.vertices(v._2))(verticesExprVertex.vertices(v._4)));
29283
- }
29284
- if (v.tag === "Lambda") {
29285
- return union5($$$Map("Two", Leaf2, $Tuple(v._1, pack1(v)), void 0, Leaf2))(verticesElimVertex.vertices(v._2));
29286
- }
29287
- if (v.tag === "Project") {
29288
- return verticesExprVertex.vertices(v._1);
29289
- }
29290
- if (v.tag === "DProject") {
29291
- return union5(verticesExprVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29292
- }
29293
- if (v.tag === "App") {
29294
- return union5(verticesExprVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29295
- }
29296
- if (v.tag === "Let") {
29297
- return union5(verticesVarDefVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29298
- }
29299
- if (v.tag === "LetRec") {
29300
- return union5(verticesRecDefsVertex.vertices(v._1))(verticesExprVertex.vertices(v._2));
29301
- }
29302
- fail();
29303
- }
29304
- };
29305
- var verticesElimVertex = {
29306
- vertices: (v) => {
29307
- if (v.tag === "ElimVar") {
29308
- return verticesContVertex.vertices(v._2);
29309
- }
29310
- if (v.tag === "ElimConstr") {
29311
- return verticesDict(verticesContVertex).vertices(v._1);
29312
- }
29313
- if (v.tag === "ElimDict") {
29314
- return verticesContVertex.vertices(v._2);
29315
- }
29316
- fail();
29317
- }
29318
- };
29319
- var verticesContVertex = {
29320
- vertices: (v) => {
29321
- if (v.tag === "ContExpr") {
29322
- return verticesExprVertex.vertices(v._1);
29323
- }
29324
- if (v.tag === "ContElim") {
29325
- return verticesElimVertex.vertices(v._1);
29326
- }
29327
- fail();
29328
- }
29329
- };
29330
- var verticesModuleVertex = {
29331
- vertices: (v) => unions12(listMap((v1) => {
29332
- if (v1.tag === "Left") {
29333
- return verticesVarDefVertex.vertices(v1._1);
29334
- }
29335
- if (v1.tag === "Right") {
29336
- return verticesRecDefsVertex.vertices(v1._1);
29337
- }
29338
- fail();
29339
- })(v))
29340
- };
29341
29219
  var joinSemilatticeVarDef = (dictJoinSemilattice) => ({ join: (v) => (v1) => $VarDef(joinSemilatticeElim(dictJoinSemilattice).join(v._1)(v1._1), joinSemilatticeExpr(dictJoinSemilattice).join(v._2)(v1._2)) });
29342
29220
  var joinSemilatticeRecDefs = (dictJoinSemilattice) => ({ join: (v) => (v1) => $RecDefs(dictJoinSemilattice.join(v._1)(v1._1), unionWith(joinSemilatticeElim(dictJoinSemilattice).join)(v._2)(v1._2)) });
29343
29221
  var joinSemilatticeExpr = (dictJoinSemilattice) => ({
@@ -30265,7 +30143,7 @@ var applyCont = {
30265
30143
  var fVDict = (dictFV) => {
30266
30144
  const fv1 = dictFV.fv;
30267
30145
  return {
30268
- fv: (\u03C1) => setSet2.difference(fold((z) => (v) => union3(ordString)(z))(Leaf2)(_fmapObject(\u03C1, fv1)))(fromFoldable6(mapObjectString.keys(\u03C1)))
30146
+ fv: (\u03C1) => setSet2.difference(fold((z) => (v) => union3(ordString)(z))(Leaf2)(_fmapObject(\u03C1, fv1)))(fromFoldable7(mapObjectString.keys(\u03C1)))
30269
30147
  };
30270
30148
  };
30271
30149
  var foldlModuleDef = (v) => (v1) => (v2) => {
@@ -30399,10 +30277,10 @@ var fVExpr = {
30399
30277
  return Leaf2;
30400
30278
  }
30401
30279
  if (v.tag === "Dictionary") {
30402
- return unions3(listMap((v1) => setSet2.union(fVExpr.fv(v1._1))(fVExpr.fv(v1._2)))(v._2));
30280
+ return unions1(listMap((v1) => setSet2.union(fVExpr.fv(v1._1))(fVExpr.fv(v1._2)))(v._2));
30403
30281
  }
30404
30282
  if (v.tag === "Constr") {
30405
- return unions3(listMap(fVExpr.fv)(v._3));
30283
+ return unions1(listMap(fVExpr.fv)(v._3));
30406
30284
  }
30407
30285
  if (v.tag === "Matrix") {
30408
30286
  return setSet2.union(fVExpr.fv(v._2))(fVExpr.fv(v._4));
@@ -30597,7 +30475,7 @@ var ClauseIsSymbol = { reflectSymbol: () => "Clause" };
30597
30475
  var difference3 = /* @__PURE__ */ difference(eqString);
30598
30476
  var toUnfoldable7 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
30599
30477
  var monadThrowExceptT2 = /* @__PURE__ */ monadThrowExceptT(monadIdentity);
30600
- var fromFoldable7 = /* @__PURE__ */ fromFoldable(foldableArray);
30478
+ var fromFoldable8 = /* @__PURE__ */ fromFoldable(foldableArray);
30601
30479
  var fromFoldable16 = /* @__PURE__ */ fromFoldable(foldableNonEmptyList);
30602
30480
  var fromFoldable24 = /* @__PURE__ */ fromFoldable(foldableList);
30603
30481
  var monadErrorExceptT2 = /* @__PURE__ */ monadErrorExceptT(monadIdentity);
@@ -32337,7 +32215,7 @@ var forConstrBwd = (v) => (v1) => {
32337
32215
  }
32338
32216
  fail();
32339
32217
  };
32340
- var elimBool = (\u03BA) => (\u03BA$p) => $Elim("ElimConstr", fromFoldable7([$Tuple("True", \u03BA), $Tuple("False", \u03BA$p)]));
32218
+ var elimBool = (\u03BA) => (\u03BA$p) => $Elim("ElimConstr", fromFoldable8([$Tuple("True", \u03BA), $Tuple("False", \u03BA$p)]));
32341
32219
  var econs = (\u03B1) => (e) => (e$p) => $Expr("Constr", \u03B1, ":", $List("Cons", e, $List("Cons", e$p, Nil)));
32342
32220
  var ctrFor = (v) => {
32343
32221
  if (v.tag === "Left") {
@@ -32798,7 +32676,7 @@ var listCompFwd = (dictMonadError) => {
32798
32676
  $1,
32799
32677
  $Elim(
32800
32678
  "ElimConstr",
32801
- fromFoldable7([
32679
+ fromFoldable8([
32802
32680
  $Tuple("True", $Cont("ContExpr", e)),
32803
32681
  $Tuple("False", $Cont("ContExpr", $Expr("Constr", $1, "Nil", Nil)))
32804
32682
  ])
@@ -33464,7 +33342,7 @@ var toUnfoldable13 = /* @__PURE__ */ toAscUnfoldable(unfoldableList);
33464
33342
  var Simple = /* @__PURE__ */ $ExprType("Simple");
33465
33343
  var Expression = /* @__PURE__ */ $ExprType("Expression");
33466
33344
  var vert = (dictFoldable) => {
33467
- const fromFoldable28 = dictFoldable.foldr(Cons)(Nil);
33345
+ const fromFoldable29 = dictFoldable.foldr(Cons)(Nil);
33468
33346
  return (delim) => {
33469
33347
  const vert$p = (v) => {
33470
33348
  if (v.tag === "Nil") {
@@ -33480,7 +33358,7 @@ var vert = (dictFoldable) => {
33480
33358
  }
33481
33359
  fail();
33482
33360
  };
33483
- return (x2) => vert$p(fromFoldable28(x2));
33361
+ return (x2) => vert$p(fromFoldable29(x2));
33484
33362
  };
33485
33363
  };
33486
33364
  var vert1 = /* @__PURE__ */ vert(foldableArray);
@@ -34155,36 +34033,11 @@ var $EnvExpr = (_1, _2) => ({ tag: "EnvExpr", _1, _2 });
34155
34033
  var $ForeignOp$p = (_1) => ({ tag: "ForeignOp'", _1 });
34156
34034
  var $Fun = (tag, _1, _2, _3) => ({ tag, _1, _2, _3 });
34157
34035
  var $Val = (_1, _2) => ({ tag: "Val", _1, _2 });
34158
- var setSet3 = /* @__PURE__ */ setSet(ordDVertex);
34159
- var unions = /* @__PURE__ */ foldlArray(/* @__PURE__ */ union3(ordDVertex))(Leaf2);
34160
- var vertices = /* @__PURE__ */ (() => verticesDict(verticesElimVertex).vertices)();
34161
- var unions13 = /* @__PURE__ */ (() => {
34162
- const go = (go$a0$copy) => (go$a1$copy) => {
34163
- let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
34164
- while (go$c) {
34165
- const b = go$a0, v = go$a1;
34166
- if (v.tag === "Nil") {
34167
- go$c = false;
34168
- go$r = b;
34169
- continue;
34170
- }
34171
- if (v.tag === "Cons") {
34172
- go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
34173
- go$a1 = v._2;
34174
- continue;
34175
- }
34176
- fail();
34177
- }
34178
- return go$r;
34179
- };
34180
- return go(Leaf2);
34181
- })();
34182
- var foldMap2 = /* @__PURE__ */ foldMap({ mempty: Leaf2, Semigroup0: () => ({ append: union3(ordDVertex) }) });
34183
34036
  var identity26 = (x2) => x2;
34184
34037
  var boundedLattice = { BoundedJoinSemilattice0: () => boundedJoinSemilatticeUni, BoundedMeetSemilattice1: () => boundedMeetSemilatticeUni };
34185
- var show1 = /* @__PURE__ */ (() => showSet(showString).show)();
34186
- var fromFoldable8 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
34187
- var setSet1 = /* @__PURE__ */ setSet(ordString);
34038
+ var show3 = /* @__PURE__ */ (() => showSet(showString).show)();
34039
+ var fromFoldable9 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
34040
+ var setSet3 = /* @__PURE__ */ setSet(ordString);
34188
34041
  var toUnfoldable14 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
34189
34042
  var intersection2 = /* @__PURE__ */ intersection(ordString);
34190
34043
  var Val = (value0) => (value1) => $Val(value0, value1);
@@ -34195,78 +34048,6 @@ var Dictionary3 = (value0) => $BaseVal("Dictionary", value0);
34195
34048
  var DictRep = (x2) => x2;
34196
34049
  var MatrixRep = (x2) => x2;
34197
34050
  var Env = (x2) => x2;
34198
- var typeNameMatrixDim = { typeName: (v) => "MatrixDim" };
34199
- var pack2 = (x2) => (k) => k(typeNameMatrixDim)(x2);
34200
- var typeNameDictKey = { typeName: (v) => "DictKey" };
34201
- var pack12 = (x2) => (k) => k(typeNameDictKey)(x2);
34202
- var typeNameBaseVal = { typeName: (v) => "BaseVal" };
34203
- var pack22 = (x2) => (k) => k(typeNameBaseVal)(x2);
34204
- var verticesValVertex = {
34205
- vertices: (v) => setSet3.union($$$Map("Two", Leaf2, $Tuple(v._1, pack22(v._2)), void 0, Leaf2))(verticesBaseValVertex.vertices(v._2))
34206
- };
34207
- var verticesMatrixRepVertex = {
34208
- vertices: (v) => setSet3.union(unions(concat(arrayMap(arrayMap(verticesValVertex.vertices))(v._1))))(setSet3.union($$$Map(
34209
- "Two",
34210
- Leaf2,
34211
- $Tuple(v._2._1._2, pack2(v._2._1)),
34212
- void 0,
34213
- Leaf2
34214
- ))($$$Map("Two", Leaf2, $Tuple(v._2._2._2, pack2(v._2._2)), void 0, Leaf2)))
34215
- };
34216
- var verticesFunVertex = {
34217
- vertices: (v) => {
34218
- if (v.tag === "Closure") {
34219
- return setSet3.union(verticesEnvVertex.vertices(v._1))(setSet3.union(vertices(v._2))(verticesElimVertex.vertices(v._3)));
34220
- }
34221
- if (v.tag === "Foreign") {
34222
- return unions13(listMap(verticesValVertex.vertices)(v._2));
34223
- }
34224
- if (v.tag === "PartialConstr") {
34225
- return unions13(listMap(verticesValVertex.vertices)(v._2));
34226
- }
34227
- fail();
34228
- }
34229
- };
34230
- var verticesEnvVertex = { vertices: (v) => unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v))) };
34231
- var verticesDictRepVertex = {
34232
- vertices: (v) => foldMap2((k) => (v1) => setSet3.union($$$Map(
34233
- "Two",
34234
- Leaf2,
34235
- $Tuple(v1._1, pack12($Tuple(k, v1._1))),
34236
- void 0,
34237
- Leaf2
34238
- ))(verticesValVertex.vertices(v1._2)))(v)
34239
- };
34240
- var verticesBaseValVertex = {
34241
- vertices: (v) => {
34242
- if (v.tag === "Int") {
34243
- return setSet3.empty;
34244
- }
34245
- if (v.tag === "Float") {
34246
- return setSet3.empty;
34247
- }
34248
- if (v.tag === "Str") {
34249
- return setSet3.empty;
34250
- }
34251
- if (v.tag === "Constr") {
34252
- return unions13(listMap(verticesValVertex.vertices)(v._2));
34253
- }
34254
- if (v.tag === "Dictionary") {
34255
- return verticesDictRepVertex.vertices(v._1);
34256
- }
34257
- if (v.tag === "Matrix") {
34258
- return verticesMatrixRepVertex.vertices(v._1);
34259
- }
34260
- if (v.tag === "Fun") {
34261
- return verticesFunVertex.vertices(v._1);
34262
- }
34263
- fail();
34264
- }
34265
- };
34266
- var verticesEnvExprVertex = {
34267
- vertices: (v) => setSet3.union(unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v._1))))(verticesExprVertex.vertices(v._2))
34268
- };
34269
- var joinSemilatticeMatrixDim = (dictJoinSemilattice) => ({ join: (v) => (v1) => $Tuple(mustEq(eqInt)(showInt)(v._1)(v1._1), dictJoinSemilattice.join(v._2)(v1._2)) });
34270
34051
  var isEmptyEnv = { isEmpty: (v) => isEmpty(v) };
34271
34052
  var setEnvString = {
34272
34053
  empty,
@@ -34320,7 +34101,6 @@ var highlightableBoolean = {
34320
34101
  fail();
34321
34102
  }
34322
34103
  };
34323
- var functorMatrixDim = { map: (f) => (m) => $Tuple(m._1, f(m._2)) };
34324
34104
  var functorVal = { map: (f) => (m) => $Val(f(m._1), functorBaseVal.map(f)(m._2)) };
34325
34105
  var functorMatrixRep = {
34326
34106
  map: (f) => (m) => $Tuple(
@@ -34381,13 +34161,6 @@ var botOfUnit$x215Raw$x215 = (dictBoundedJoinSemilattice) => ({
34381
34161
  })()
34382
34162
  });
34383
34163
  var functorEnvExpr = { map: (f) => (m) => $EnvExpr(_fmapObject(m._1, functorVal.map(f)), functorExpr.map(f)(m._2)) };
34384
- var foldableMatrixDim = { foldl: (f) => (z) => (m) => f(z)(m._2), foldr: (f) => (z) => (m) => f(m._2)(z), foldMap: (dictMonoid) => (f) => (m) => f(m._2) };
34385
- var traversableMatrixDim = {
34386
- traverse: (dictApplicative) => (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traversableTuple.traverse(dictApplicative)(f)(m)),
34387
- sequence: (dictApplicative) => (v) => traversableMatrixDim.traverse(dictApplicative)(identity26)(v),
34388
- Functor0: () => functorMatrixDim,
34389
- Foldable1: () => foldableMatrixDim
34390
- };
34391
34164
  var foldableVal = {
34392
34165
  foldl: (f) => (z) => (m) => foldableBaseVal.foldl(f)(f(z)(m._1))(m._2),
34393
34166
  foldr: (f) => (z) => (m) => f(m._1)(foldableBaseVal.foldr(f)(z)(m._2)),
@@ -34462,20 +34235,20 @@ var foldableFun = {
34462
34235
  foldMap: (dictMonoid) => {
34463
34236
  const $0 = dictMonoid.Semigroup0();
34464
34237
  const foldMap1 = foldMap(dictMonoid);
34465
- const foldMap8 = foldableElim.foldMap(dictMonoid);
34466
- const foldMap9 = foldableList.foldMap(dictMonoid);
34238
+ const foldMap6 = foldableElim.foldMap(dictMonoid);
34239
+ const foldMap7 = foldableList.foldMap(dictMonoid);
34467
34240
  return (f) => (m) => {
34468
34241
  if (m.tag === "Closure") {
34469
34242
  return $0.append(foldableEnv.foldMap(dictMonoid)(f)(m._1))($0.append((() => {
34470
- const $1 = foldMap8(f);
34243
+ const $1 = foldMap6(f);
34471
34244
  return foldMap1((v) => $1)(m._2);
34472
- })())(foldMap8(f)(m._3)));
34245
+ })())(foldMap6(f)(m._3)));
34473
34246
  }
34474
34247
  if (m.tag === "Foreign") {
34475
- return foldMap9(foldableVal.foldMap(dictMonoid)(f))(m._2);
34248
+ return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34476
34249
  }
34477
34250
  if (m.tag === "PartialConstr") {
34478
- return foldMap9(foldableVal.foldMap(dictMonoid)(f))(m._2);
34251
+ return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34479
34252
  }
34480
34253
  fail();
34481
34254
  };
@@ -34563,7 +34336,7 @@ var foldableBaseVal = {
34563
34336
  },
34564
34337
  foldMap: (dictMonoid) => {
34565
34338
  const mempty = dictMonoid.mempty;
34566
- const foldMap7 = foldableList.foldMap(dictMonoid);
34339
+ const foldMap5 = foldableList.foldMap(dictMonoid);
34567
34340
  return (f) => (m) => {
34568
34341
  if (m.tag === "Int") {
34569
34342
  return mempty;
@@ -34575,7 +34348,7 @@ var foldableBaseVal = {
34575
34348
  return mempty;
34576
34349
  }
34577
34350
  if (m.tag === "Constr") {
34578
- return foldMap7(foldableVal.foldMap(dictMonoid)(f))(m._2);
34351
+ return foldMap5(foldableVal.foldMap(dictMonoid)(f))(m._2);
34579
34352
  }
34580
34353
  if (m.tag === "Dictionary") {
34581
34354
  return foldableDictRep.foldMap(dictMonoid)(f)(m._1);
@@ -34594,9 +34367,9 @@ var foldableEnvExpr = {
34594
34367
  foldl: (f) => (z) => (m) => foldableExpr.foldl(f)(fold((z$1) => (v) => foldableVal.foldl(f)(z$1))(z)(m._1))(m._2),
34595
34368
  foldr: (f) => (z) => (m) => foldableEnv.foldr(f)(foldableExpr.foldr(f)(z)(m._2))(m._1),
34596
34369
  foldMap: (dictMonoid) => {
34597
- const foldMap7 = foldableEnv.foldMap(dictMonoid);
34598
- const foldMap8 = foldableExpr.foldMap(dictMonoid);
34599
- return (f) => (m) => dictMonoid.Semigroup0().append(foldMap7(f)(m._1))(foldMap8(f)(m._2));
34370
+ const foldMap5 = foldableEnv.foldMap(dictMonoid);
34371
+ const foldMap6 = foldableExpr.foldMap(dictMonoid);
34372
+ return (f) => (m) => dictMonoid.Semigroup0().append(foldMap5(f)(m._1))(foldMap6(f)(m._2));
34600
34373
  }
34601
34374
  };
34602
34375
  var traversableVal = {
@@ -34611,8 +34384,8 @@ var traversableVal = {
34611
34384
  var traversableMatrixRep = {
34612
34385
  traverse: (dictApplicative) => {
34613
34386
  const bitraverse1 = bitraversableTuple.bitraverse(dictApplicative);
34614
- const traverse8 = traversableArray.traverse(dictApplicative);
34615
- return (f) => (v) => dictApplicative.Apply0().Functor0().map(MatrixRep)(bitraverse1(traverse8(traverse8(traversableVal.traverse(dictApplicative)(f))))(bitraverse1(traversableMatrixDim.traverse(dictApplicative)(f))(traversableMatrixDim.traverse(dictApplicative)(f)))(v));
34387
+ const traverse7 = traversableArray.traverse(dictApplicative);
34388
+ return (f) => (v) => dictApplicative.Apply0().Functor0().map(MatrixRep)(bitraverse1(traverse7(traverse7(traversableVal.traverse(dictApplicative)(f))))(bitraverse1(traversableTuple.traverse(dictApplicative)(f))(traversableTuple.traverse(dictApplicative)(f)))(v));
34616
34389
  },
34617
34390
  sequence: (dictApplicative) => traversableMatrixRep.traverse(dictApplicative)(identity5),
34618
34391
  Functor0: () => functorMatrixRep,
@@ -34622,20 +34395,20 @@ var traversableFun = {
34622
34395
  traverse: (dictApplicative) => {
34623
34396
  const Apply0 = dictApplicative.Apply0();
34624
34397
  const $0 = Apply0.Functor0();
34625
- const traverse8 = traversableDict.traverse(dictApplicative);
34626
- const traverse9 = traversableElim.traverse(dictApplicative);
34627
- const traverse10 = traversableList.traverse(dictApplicative);
34398
+ const traverse7 = traversableDict.traverse(dictApplicative);
34399
+ const traverse8 = traversableElim.traverse(dictApplicative);
34400
+ const traverse9 = traversableList.traverse(dictApplicative);
34628
34401
  return (f) => (m) => {
34629
34402
  if (m.tag === "Closure") {
34630
- return Apply0.apply(Apply0.apply($0.map((v3) => (v4) => (v5) => $Fun("Closure", v3, v4, v5))(traversableEnv.traverse(dictApplicative)(f)(m._1)))(traverse8(traverse9(f))(m._2)))(traverse9(f)(m._3));
34403
+ return Apply0.apply(Apply0.apply($0.map((v3) => (v4) => (v5) => $Fun("Closure", v3, v4, v5))(traversableEnv.traverse(dictApplicative)(f)(m._1)))(traverse7(traverse8(f))(m._2)))(traverse8(f)(m._3));
34631
34404
  }
34632
34405
  if (m.tag === "Foreign") {
34633
34406
  const $1 = m._1;
34634
- return $0.map((v2) => $Fun("Foreign", $1, v2))(traverse10(traversableVal.traverse(dictApplicative)(f))(m._2));
34407
+ return $0.map((v2) => $Fun("Foreign", $1, v2))(traverse9(traversableVal.traverse(dictApplicative)(f))(m._2));
34635
34408
  }
34636
34409
  if (m.tag === "PartialConstr") {
34637
34410
  const $1 = m._1;
34638
- return $0.map((v2) => $Fun("PartialConstr", $1, v2))(traverse10(traversableVal.traverse(dictApplicative)(f))(m._2));
34411
+ return $0.map((v2) => $Fun("PartialConstr", $1, v2))(traverse9(traversableVal.traverse(dictApplicative)(f))(m._2));
34639
34412
  }
34640
34413
  fail();
34641
34414
  };
@@ -34646,8 +34419,8 @@ var traversableFun = {
34646
34419
  };
34647
34420
  var traversableEnv = {
34648
34421
  traverse: (dictApplicative) => {
34649
- const traverse8 = traversableDict.traverse(dictApplicative);
34650
- return (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traverse8(traversableVal.traverse(dictApplicative)(f))(m));
34422
+ const traverse7 = traversableDict.traverse(dictApplicative);
34423
+ return (f) => (m) => dictApplicative.Apply0().Functor0().map((v1) => v1)(traverse7(traversableVal.traverse(dictApplicative)(f))(m));
34651
34424
  },
34652
34425
  sequence: (dictApplicative) => (v) => traversableEnv.traverse(dictApplicative)(identity26)(v),
34653
34426
  Functor0: () => functorEnv,
@@ -34655,9 +34428,9 @@ var traversableEnv = {
34655
34428
  };
34656
34429
  var traversableDictRep = {
34657
34430
  traverse: (dictApplicative) => {
34658
- const traverse8 = traversableDict.traverse(dictApplicative);
34431
+ const traverse7 = traversableDict.traverse(dictApplicative);
34659
34432
  const bitraverse1 = bitraversableTuple.bitraverse(dictApplicative);
34660
- return (f) => (v) => dictApplicative.Apply0().Functor0().map(DictRep)(traverse8(bitraverse1(f)(traversableVal.traverse(dictApplicative)(f)))(v));
34433
+ return (f) => (v) => dictApplicative.Apply0().Functor0().map(DictRep)(traverse7(bitraverse1(f)(traversableVal.traverse(dictApplicative)(f)))(v));
34661
34434
  },
34662
34435
  sequence: (dictApplicative) => traversableDictRep.traverse(dictApplicative)(identity5),
34663
34436
  Functor0: () => functorDictRep,
@@ -34666,7 +34439,7 @@ var traversableDictRep = {
34666
34439
  var traversableBaseVal = {
34667
34440
  traverse: (dictApplicative) => {
34668
34441
  const $0 = dictApplicative.Apply0().Functor0();
34669
- const traverse8 = traversableList.traverse(dictApplicative);
34442
+ const traverse7 = traversableList.traverse(dictApplicative);
34670
34443
  return (f) => (m) => {
34671
34444
  if (m.tag === "Int") {
34672
34445
  return dictApplicative.pure($BaseVal("Int", m._1));
@@ -34679,7 +34452,7 @@ var traversableBaseVal = {
34679
34452
  }
34680
34453
  if (m.tag === "Constr") {
34681
34454
  const $1 = m._1;
34682
- return $0.map((v2) => $BaseVal("Constr", $1, v2))(traverse8(traversableVal.traverse(dictApplicative)(f))(m._2));
34455
+ return $0.map((v2) => $BaseVal("Constr", $1, v2))(traverse7(traversableVal.traverse(dictApplicative)(f))(m._2));
34683
34456
  }
34684
34457
  if (m.tag === "Dictionary") {
34685
34458
  return $0.map((v1) => $BaseVal("Dictionary", v1))(traversableDictRep.traverse(dictApplicative)(f)(m._1));
@@ -34813,12 +34586,14 @@ var expandableBaseValRawBaseV = (dictBoundedJoinSemilattice) => ({
34813
34586
  return throwException(error("Shape mismatch"))();
34814
34587
  }
34815
34588
  });
34816
- var applyMatrixDim = { apply: (v) => (v1) => $Tuple(mustEq(eqInt)(showInt)(v._1)(v1._1), v._2(v1._2)), Functor0: () => functorMatrixDim };
34817
34589
  var applyVal = { apply: (v) => (v1) => $Val(v._1(v1._1), applyBaseVal.apply(v._2)(v1._2)), Functor0: () => functorVal };
34818
34590
  var applyMatrixRep = {
34819
34591
  apply: (v) => (v1) => $Tuple(
34820
34592
  zipWith(zipWith(applyVal.apply))(v._1)(v1._1),
34821
- $Tuple(applyMatrixDim.apply(v._2._1)(v1._2._1), applyMatrixDim.apply(v._2._2)(v1._2._2))
34593
+ $Tuple(
34594
+ $Tuple(mustEq(eqInt)(showInt)(v._2._1._1)(v1._2._1._1), v._2._1._2(v1._2._1._2)),
34595
+ $Tuple(mustEq(eqInt)(showInt)(v._2._2._1)(v1._2._2._1), v._2._2._2(v1._2._2._2))
34596
+ )
34822
34597
  ),
34823
34598
  Functor0: () => functorMatrixRep
34824
34599
  };
@@ -34906,15 +34681,15 @@ var applyEnvExpr = {
34906
34681
  Functor0: () => functorEnvExpr
34907
34682
  };
34908
34683
  var joinSemilatticeVal = (dictJoinSemilattice) => ({ join: (v) => (v1) => $Val(dictJoinSemilattice.join(v._1)(v1._1), joinSemilatticeBaseVal(dictJoinSemilattice).join(v._2)(v1._2)) });
34909
- var joinSemilatticeMatrixRep = (dictJoinSemilattice) => {
34910
- const $0 = joinSemilatticeMatrixDim(dictJoinSemilattice);
34911
- return {
34912
- join: (v) => (v1) => $Tuple(
34913
- joinSemilatticeArray(joinSemilatticeArray(joinSemilatticeVal(dictJoinSemilattice))).join(v._1)(v1._1),
34914
- $Tuple($0.join(v._2._1)(v1._2._1), $0.join(v._2._2)(v1._2._2))
34684
+ var joinSemilatticeMatrixRep = (dictJoinSemilattice) => ({
34685
+ join: (v) => (v1) => $Tuple(
34686
+ joinSemilatticeArray(joinSemilatticeArray(joinSemilatticeVal(dictJoinSemilattice))).join(v._1)(v1._1),
34687
+ $Tuple(
34688
+ $Tuple(mustEq(eqInt)(showInt)(v._2._1._1)(v1._2._1._1), dictJoinSemilattice.join(v._2._1._2)(v1._2._1._2)),
34689
+ $Tuple(mustEq(eqInt)(showInt)(v._2._2._1)(v1._2._2._1), dictJoinSemilattice.join(v._2._2._2)(v1._2._2._2))
34915
34690
  )
34916
- };
34917
- };
34691
+ )
34692
+ });
34918
34693
  var joinSemilatticeFun = (dictJoinSemilattice) => {
34919
34694
  const joinSemilatticeElim2 = joinSemilatticeElim(dictJoinSemilattice);
34920
34695
  return {
@@ -35006,7 +34781,7 @@ var joinSemilatticeBaseVal = (dictJoinSemilattice) => {
35006
34781
  };
35007
34782
  };
35008
34783
  var annUnit = { Highlightable0: () => highlightableUnit, BoundedLattice1: () => boundedLattice };
35009
- var unrestrictGC = (dictBoundedMeetSemilattice) => (\u03B3) => (xs) => assertWith(show1(xs) + " are in environment ")(difference2(ordString)(xs)(mapObjectString.keys(\u03B3)).tag === "Leaf")({
34784
+ var unrestrictGC = (dictBoundedMeetSemilattice) => (\u03B3) => (xs) => assertWith(show3(xs) + " are in environment ")(difference2(ordString)(xs)(mapObjectString.keys(\u03B3)).tag === "Leaf")({
35010
34785
  fwd: (\u03B3$p) => assertWith("")(difference2(ordString)(mapObjectString.keys(\u03B3$p))(mapObjectString.keys(\u03B3)).tag === "Leaf")(union(\u03B3$p)(setObjectString.difference((() => {
35011
34786
  const $0 = dictBoundedMeetSemilattice.top;
35012
34787
  return _fmapObject(\u03B3, functorVal.map((v) => $0));
@@ -35014,11 +34789,10 @@ var unrestrictGC = (dictBoundedMeetSemilattice) => (\u03B3) => (xs) => assertWit
35014
34789
  bwd: (\u03B3$p) => assertWith("")(eqMap(eqString)(eqUnit).eq(mapObjectString.keys(\u03B3$p))(mapObjectString.keys(\u03B3)))(filterWithKey((x2) => {
35015
34790
  const $0 = setSet(ordString).member(x2)(xs);
35016
34791
  return (v) => $0;
35017
- })(\u03B3$p)),
35018
- connection: void 0
34792
+ })(\u03B3$p))
35019
34793
  });
35020
34794
  var reaches = (\u03C1) => (xs) => {
35021
- const dom_\u03C1 = fromFoldable8(mapObjectString.keys(\u03C1));
34795
+ const dom_\u03C1 = fromFoldable9(mapObjectString.keys(\u03C1));
35022
34796
  const go = (go$a0$copy) => (go$a1$copy) => {
35023
34797
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
35024
34798
  while (go$c) {
@@ -35029,20 +34803,20 @@ var reaches = (\u03C1) => (xs) => {
35029
34803
  continue;
35030
34804
  }
35031
34805
  if (v.tag === "Cons") {
35032
- if (setSet1.member(v._1)(v1)) {
34806
+ if (setSet3.member(v._1)(v1)) {
35033
34807
  go$a0 = v._2;
35034
34808
  go$a1 = v1;
35035
34809
  continue;
35036
34810
  }
35037
34811
  go$a0 = foldableList.foldr(Cons)(v._2)(toUnfoldable14(intersection2(fVElim.fv($$get2(showString)(mapDictString)(v._1)(\u03C1)))(dom_\u03C1)));
35038
- go$a1 = setSet1.union($$$Map("Two", Leaf2, v._1, void 0, Leaf2))(v1);
34812
+ go$a1 = setSet3.union($$$Map("Two", Leaf2, v._1, void 0, Leaf2))(v1);
35039
34813
  continue;
35040
34814
  }
35041
34815
  fail();
35042
34816
  }
35043
34817
  return go$r;
35044
34818
  };
35045
- return go(toUnfoldable14(xs))(setSet1.empty);
34819
+ return go(toUnfoldable14(xs))(setSet3.empty);
35046
34820
  };
35047
34821
  var matrixPut = (i) => (j) => (\u03B4v) => (v) => {
35048
34822
  const vs_i = definitely("index within bounds")(index(v._1)(i - 1 | 0));
@@ -35062,19 +34836,12 @@ var matrixGet = (i) => (j) => (v) => definitely("index out of bounds!")((() => {
35062
34836
  fail();
35063
34837
  })());
35064
34838
  var forDefs = (\u03C1) => (\u03C3) => {
35065
- const $0 = reaches(\u03C1)(intersection2(fVElim.fv(\u03C3))(fromFoldable8(mapObjectString.keys(\u03C1))));
34839
+ const $0 = reaches(\u03C1)(intersection2(fVElim.fv(\u03C3))(fromFoldable9(mapObjectString.keys(\u03C1))));
35066
34840
  return filterWithKey((x2) => {
35067
34841
  const $1 = setSet(ordString).member(x2)($0);
35068
34842
  return (v) => $1;
35069
34843
  })(\u03C1);
35070
34844
  };
35071
- var asVal = (e) => {
35072
- const type$p = e((dictTypeName) => dictTypeName.typeName);
35073
- if (type$p === "BaseVal") {
35074
- return $Either("Left", e((dictTypeName) => unsafeCoerce));
35075
- }
35076
- return $Either("Right", type$p);
35077
- };
35078
34845
 
35079
34846
  // output-es/Primitive/index.js
35080
34847
  var fanin2 = /* @__PURE__ */ fanin(categoryFn)(choiceFn);
@@ -35105,11 +34872,21 @@ var unary = (dictBoundedJoinSemilattice) => {
35105
34872
  id3,
35106
34873
  $ForeignOp$p({
35107
34874
  arity: 1,
35108
- "op'": (dictMonadWithGraphAlloc) => {
35109
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35110
- return (dictMonadError) => (v) => {
34875
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
34876
+ const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
34877
+ return (v) => {
35111
34878
  if (v.tag === "Cons" && v._2.tag === "Nil") {
35112
- return $$new(Val)($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))(f.o.pack(f.fwd(f.i.unpack(v._1._2))));
34879
+ const $1 = v._1._2;
34880
+ return $0.map((() => {
34881
+ const $2 = f.o;
34882
+ return (v$1) => $Val(v$1._2, $2.pack(v$1._1));
34883
+ })())($0.map((v2) => $Tuple(f.fwd(f.i.unpack($1)), v2))(dictMonadWithGraphAlloc.new($$$Map(
34884
+ "Two",
34885
+ Leaf2,
34886
+ v._1._1,
34887
+ void 0,
34888
+ Leaf2
34889
+ ))));
35113
34890
  }
35114
34891
  fail();
35115
34892
  };
@@ -35252,17 +35029,20 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
35252
35029
  id3,
35253
35030
  $ForeignOp$p({
35254
35031
  arity: 2,
35255
- "op'": (dictMonadWithGraphAlloc) => {
35256
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35257
- return (dictMonadError) => (v) => {
35032
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
35033
+ const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
35034
+ return (v) => {
35258
35035
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35259
- const $0 = f.i.unpack(v._1._2);
35260
- const $1 = f.i.unpack(v._2._1._2);
35261
- return $$new(Val)((() => {
35262
- if (dictIsZero.isZero($0)) {
35036
+ const $1 = f.i.unpack(v._1._2);
35037
+ const $2 = f.i.unpack(v._2._1._2);
35038
+ return $0.map((() => {
35039
+ const $3 = f.o;
35040
+ return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35041
+ })())($0.map((v4) => $Tuple(f.fwd($1)($2), v4))(dictMonadWithGraphAlloc.new((() => {
35042
+ if (dictIsZero.isZero($1)) {
35263
35043
  return $$$Map("Two", Leaf2, v._1._1, void 0, Leaf2);
35264
35044
  }
35265
- if (dictIsZero.isZero($1)) {
35045
+ if (dictIsZero.isZero($2)) {
35266
35046
  return $$$Map("Two", Leaf2, v._2._1._1, void 0, Leaf2);
35267
35047
  }
35268
35048
  return insert3(ordVertex)(v._2._1._1)()($$$Map(
@@ -35272,7 +35052,7 @@ var binaryZero = (dictBoundedJoinSemilattice) => {
35272
35052
  void 0,
35273
35053
  Leaf2
35274
35054
  ));
35275
- })())(f.o.pack(f.fwd($0)($1)));
35055
+ })())));
35276
35056
  }
35277
35057
  fail();
35278
35058
  };
@@ -35337,17 +35117,22 @@ var binary = (dictBoundedJoinSemilattice) => {
35337
35117
  id3,
35338
35118
  $ForeignOp$p({
35339
35119
  arity: 2,
35340
- "op'": (dictMonadWithGraphAlloc) => {
35341
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
35342
- return (dictMonadError) => (v) => {
35120
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
35121
+ const $0 = dictMonadError.MonadThrow0().Monad0().Bind1().Apply0().Functor0();
35122
+ return (v) => {
35343
35123
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._2.tag === "Nil") {
35344
- return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
35124
+ const $1 = v._1._2;
35125
+ const $2 = v._2._1._2;
35126
+ return $0.map((() => {
35127
+ const $3 = f.o;
35128
+ return (v$1) => $Val(v$1._2, $3.pack(v$1._1));
35129
+ })())($0.map((v3) => $Tuple(f.fwd(f.i1.unpack($1))(f.i2.unpack($2)), v3))(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
35345
35130
  "Two",
35346
35131
  Leaf2,
35347
35132
  v._1._1,
35348
35133
  void 0,
35349
35134
  Leaf2
35350
- )))(f.o.pack(f.fwd(f.i1.unpack(v._1._2))(f.i2.unpack(v._2._1._2))));
35135
+ )))));
35351
35136
  }
35352
35137
  fail();
35353
35138
  };
@@ -35385,7 +35170,7 @@ var asIntNumberOrString = { as: (x2) => $Either("Left", toNumber(x2)) };
35385
35170
  var asIntNumber = { as: toNumber };
35386
35171
  var asIntIntOrNumber = { as: Left };
35387
35172
  var asBooleanBoolean = { as: (x2) => x2 };
35388
- var union6 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (v2) => (v3) => {
35173
+ var union5 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (v2) => (v3) => {
35389
35174
  if (v2.tag === "Left") {
35390
35175
  if (v3.tag === "Left") {
35391
35176
  return dictAs.as(v(v2._1)(v3._1));
@@ -35405,7 +35190,7 @@ var union6 = (dictAs) => (dictAs1) => (dictAs2) => (dictAs3) => (v) => (v1) => (
35405
35190
  }
35406
35191
  fail();
35407
35192
  };
35408
- var unionStr = (dictAs) => (dictAs1) => union6(dictAs)(dictAs)(dictAs1)(dictAs1);
35193
+ var unionStr = (dictAs) => (dictAs1) => union5(dictAs)(dictAs)(dictAs1)(dictAs1);
35409
35194
 
35410
35195
  // output-es/Web.Event.Event/foreign.js
35411
35196
  function _target(e) {
@@ -35531,7 +35316,7 @@ var showSelState = (dictShow) => ({
35531
35316
  ]
35532
35317
  })(ReactiveIsSymbol)))
35533
35318
  });
35534
- var show12 = /* @__PURE__ */ (() => showSelState(showBoolean).show)();
35319
+ var show1 = /* @__PURE__ */ (() => showSelState(showBoolean).show)();
35535
35320
  var functorSelState = {
35536
35321
  map: (f) => (m) => {
35537
35322
  if (m.tag === "Inert") {
@@ -35602,7 +35387,7 @@ var selector = (v) => (v1) => {
35602
35387
  fail();
35603
35388
  };
35604
35389
  const $1 = spyWhen(false)("Setting selState of ")(prettyP2)(v1);
35605
- return $Val(spyWhen(false)("to ")(show12)($0($1._1)), functorBaseVal.map((x2) => spyWhen(false)("to ")(show12)($0(x2)))($1._2));
35390
+ return $Val(spyWhen(false)("to ")(show1)($0($1._1)), functorBaseVal.map((x2) => spyWhen(false)("to ")(show1)($0(x2)))($1._2));
35606
35391
  };
35607
35392
  var selState = (v) => (v1) => (v2) => {
35608
35393
  if (v) {
@@ -36102,7 +35887,7 @@ function on(eventType) {
36102
35887
 
36103
35888
  // output-es/App.View.Util.D3/index.js
36104
35889
  var $ElementType = (tag) => tag;
36105
- var fromFoldable9 = /* @__PURE__ */ fromFoldable(foldableArray);
35890
+ var fromFoldable10 = /* @__PURE__ */ fromFoldable(foldableArray);
36106
35891
  var Caption = /* @__PURE__ */ $ElementType("Caption");
36107
35892
  var Circle = /* @__PURE__ */ $ElementType("Circle");
36108
35893
  var G = /* @__PURE__ */ $ElementType("G");
@@ -36683,7 +36468,7 @@ function drawBarChart_(barChartHelpers2, uiHelpers2, {
36683
36468
  var drawBarChart = (x1) => (x2) => (x3) => (x4) => drawBarChart_(x1, x2, x3, x4);
36684
36469
 
36685
36470
  // output-es/App.View.BarChart/index.js
36686
- var fromFoldable10 = /* @__PURE__ */ fromFoldable(foldableArray);
36471
+ var fromFoldable11 = /* @__PURE__ */ fromFoldable(foldableArray);
36687
36472
  var reflectDictSelState\u{1D54A}$x215ValS2 = {
36688
36473
  from: () => (r) => ({
36689
36474
  y: (() => {
@@ -36733,7 +36518,7 @@ var barChartHelpers = {
36733
36518
  fail();
36734
36519
  })();
36735
36520
  const col = indexCol(v1.j);
36736
- return fromFoldable10([
36521
+ return fromFoldable11([
36737
36522
  $Tuple(
36738
36523
  "fill",
36739
36524
  (() => {
@@ -36920,7 +36705,7 @@ var setSelState2 = (v) => (redraw) => (rootElement) => {
36920
36705
  return () => {
36921
36706
  const point$p = $2();
36922
36707
  const v2 = definitely("index within bounds")(index($0)(point$p.i));
36923
- const $3 = attrs(point2)(fromFoldable9((() => {
36708
+ const $3 = attrs(point2)(fromFoldable10((() => {
36924
36709
  const $32 = definitely("index within bounds")(index(v2.points)(point$p.j));
36925
36710
  const sel = join($32.x._2)($32.y._2);
36926
36711
  const fill$p = (isPersistent(sel) ? (a) => colorShade(a)(-30) : identity27)(nameCol(v2.name._1)(arrayMap((x2) => x2.name._1)($0)));
@@ -36950,7 +36735,7 @@ var setSelState2 = (v) => (redraw) => (rootElement) => {
36950
36735
  return () => {
36951
36736
  const segment$p = $2();
36952
36737
  const v2 = definitely("index within bounds")(index($0)(segment$p.i));
36953
- return attrs(segment)(fromFoldable9((() => {
36738
+ return attrs(segment)(fromFoldable10((() => {
36954
36739
  const sel = meet((() => {
36955
36740
  const $3 = definitely("index within bounds")(index(v2.points)(segment$p.j1));
36956
36741
  return join($3.x._2)($3.y._2);
@@ -37009,7 +36794,7 @@ var createRootElement = (v) => (div1) => (childId) => {
37009
36794
  const $132 = $3.x;
37010
36795
  const $14 = $3.y;
37011
36796
  const $15 = xAxis(to(range5))(nubBy(ordNumber.compare)($7));
37012
- const $16 = createChild(parent)(showElementType.show(G))(fromFoldable9([
36797
+ const $16 = createChild(parent)(showElementType.show(G))(fromFoldable10([
37013
36798
  classes(["x-axis"]),
37014
36799
  translate({ x: 0, y: range5.height })
37015
36800
  ]));
@@ -37020,14 +36805,14 @@ var createRootElement = (v) => (div1) => (childId) => {
37020
36805
  if ($132._1 === "Rotated") {
37021
36806
  const labels = $18();
37022
36807
  for_3(labels)((a) => {
37023
- const $192 = attrs(a)(fromFoldable9([$Tuple("transform", "rotate(45)")]));
36808
+ const $192 = attrs(a)(fromFoldable10([$Tuple("transform", "rotate(45)")]));
37024
36809
  return () => {
37025
36810
  const $202 = $192();
37026
- return styles($202)(fromFoldable9([$Tuple("text-anchor", "start")]))();
36811
+ return styles($202)(fromFoldable10([$Tuple("text-anchor", "start")]))();
37027
36812
  };
37028
36813
  })();
37029
36814
  }
37030
- const $19 = createChild(parent)(showElementType.show(G))(fromFoldable9([
36815
+ const $19 = createChild(parent)(showElementType.show(G))(fromFoldable10([
37031
36816
  classes(["y-axis"])
37032
36817
  ]))();
37033
36818
  const y2 = yAxis(to(range5))(3)($19)();
@@ -37035,17 +36820,17 @@ var createRootElement = (v) => (div1) => (childId) => {
37035
36820
  if ($14._1 === "Rotated") {
37036
36821
  const labels = $20();
37037
36822
  for_3(labels)((a) => {
37038
- const $21 = attrs(a)(fromFoldable9([$Tuple("transform", "rotate(45)")]));
36823
+ const $21 = attrs(a)(fromFoldable10([$Tuple("transform", "rotate(45)")]));
37039
36824
  return () => {
37040
36825
  const $22 = $21();
37041
- return styles($22)(fromFoldable9([$Tuple("text-anchor", "end")]))();
36826
+ return styles($22)(fromFoldable10([$Tuple("text-anchor", "end")]))();
37042
36827
  };
37043
36828
  })();
37044
36829
  }
37045
36830
  return { x: x2, y: y2 };
37046
36831
  };
37047
36832
  };
37048
- const $13 = createChild(div1)(showElementType.show(SVG))(fromFoldable9([
36833
+ const $13 = createChild(div1)(showElementType.show(SVG))(fromFoldable10([
37049
36834
  $Tuple("width", showIntImpl($4)),
37050
36835
  $Tuple("height", showIntImpl($5)),
37051
36836
  $Tuple("id", childId)
@@ -37058,7 +36843,7 @@ var createRootElement = (v) => (div1) => (childId) => {
37058
36843
  remove3(v2.x)();
37059
36844
  remove3(v2.y)();
37060
36845
  const interior = { width: ((($4 - a$p$1.width | 0) - 3 | 0) - $11 | 0) - 15 | 0, height: (($5 - 6 | 0) - a$p.height | 0) - caption_height | 0 };
37061
- const g = createChild(svg)(showElementType.show(G))(fromFoldable9([
36846
+ const g = createChild(svg)(showElementType.show(G))(fromFoldable10([
37062
36847
  translate({ x: a$p$1.width, y: 6 })
37063
36848
  ]))();
37064
36849
  createAxes(interior, g)();
@@ -37091,7 +36876,7 @@ var createRootElement = (v) => (div1) => (childId) => {
37091
36876
  return [];
37092
36877
  })(range(0)($1.length - 1 | 0))($1)))((v2$1) => {
37093
36878
  const $142 = setDatum(v2$1._2);
37094
- const $15 = createChild(g)(showElementType.show(Path2))(fromFoldable9([
36879
+ const $15 = createChild(g)(showElementType.show(Path2))(fromFoldable10([
37095
36880
  classes(["linechart-segment"]),
37096
36881
  $Tuple("d", line(to(interior))([v2$1._1.start, v2$1._1.end]))
37097
36882
  ]));
@@ -37102,7 +36887,7 @@ var createRootElement = (v) => (div1) => (childId) => {
37102
36887
  })();
37103
36888
  for_3(concat(zipWith((i) => (v2$1) => zipWith((j) => (p) => $Tuple(p, { i, j }))(range(0)(v2$1.points.length - 1 | 0))(v2$1.points))(range(0)($1.length - 1 | 0))($1)))((v2$1) => {
37104
36889
  const $142 = setDatum({ i: v2$1._2.i, j: v2$1._2.j });
37105
- const $15 = createChild(g)(showElementType.show(Circle))(fromFoldable9([
36890
+ const $15 = createChild(g)(showElementType.show(Circle))(fromFoldable10([
37106
36891
  classes(["linechart-point"]),
37107
36892
  $Tuple("stroke-width", "1"),
37108
36893
  $Tuple("cx", showNumberImpl(to(interior).x(v2$1._1.x._1))),
@@ -37113,7 +36898,7 @@ var createRootElement = (v) => (div1) => (childId) => {
37113
36898
  return $142($16)();
37114
36899
  };
37115
36900
  })();
37116
- const $14 = createChild(svg)(showElementType.show(Text2))(fromFoldable9([
36901
+ const $14 = createChild(svg)(showElementType.show(Text2))(fromFoldable10([
37117
36902
  $Tuple("x", showIntImpl(intDiv($4, 2))),
37118
36903
  $Tuple("y", showIntImpl($5 - intDiv(caption_height, 2) | 0)),
37119
36904
  classes(["title-text"]),
@@ -37121,10 +36906,10 @@ var createRootElement = (v) => (div1) => (childId) => {
37121
36906
  $Tuple("text-anchor", "middle")
37122
36907
  ]))();
37123
36908
  setText($0._1)($14)();
37124
- const legend$p = createChild(g)(showElementType.show(G))(fromFoldable9([
36909
+ const legend$p = createChild(g)(showElementType.show(G))(fromFoldable10([
37125
36910
  translate({ x: interior.width + 15 | 0, y: max4(0)(intDiv(interior.height - $12 | 0, 2)) })
37126
36911
  ]))();
37127
- createChild(legend$p)(showElementType.show(Rect))(fromFoldable9([
36912
+ createChild(legend$p)(showElementType.show(Rect))(fromFoldable10([
37128
36913
  classes(["legend-box"]),
37129
36914
  $Tuple("x", "0"),
37130
36915
  $Tuple("y", "0"),
@@ -37133,18 +36918,18 @@ var createRootElement = (v) => (div1) => (childId) => {
37133
36918
  ]))();
37134
36919
  for_3(zipWith((i) => (v3) => ({ i, name: v3.name._1 }))(range(0)($1.length - 1 | 0))($1))((v3) => {
37135
36920
  const $15 = v3.name;
37136
- const $16 = createChild(legend$p)(showElementType.show(G))(fromFoldable9([
36921
+ const $16 = createChild(legend$p)(showElementType.show(G))(fromFoldable10([
37137
36922
  classes(["legend-entry"]),
37138
36923
  translate({ x: 0, y: (v3.i * 15 | 0) + 2 | 0 })
37139
36924
  ]));
37140
36925
  return () => {
37141
36926
  const g$1 = $16();
37142
- const $17 = createChild(g$1)(showElementType.show(Text2))(fromFoldable9([
36927
+ const $17 = createChild(g$1)(showElementType.show(Text2))(fromFoldable10([
37143
36928
  classes(["legend-text"]),
37144
36929
  translate({ x: 15, y: 9 })
37145
36930
  ]))();
37146
36931
  setText($15)($17)();
37147
- return createChild(g$1)(showElementType.show(Circle))(fromFoldable9([
36932
+ return createChild(g$1)(showElementType.show(Circle))(fromFoldable10([
37148
36933
  $Tuple("fill", nameCol($15)(arrayMap((x2) => x2.name._1)($1))),
37149
36934
  $Tuple("r", "2"),
37150
36935
  $Tuple("cx", "6"),
@@ -37409,7 +37194,7 @@ var setSelState4 = (v) => (redraw) => (rootElement) => {
37409
37194
  return () => {
37410
37195
  const v1 = $1();
37411
37196
  const $2 = getText(v)(v1.i);
37412
- const $3 = styles(elem2)(fromFoldable9([
37197
+ const $3 = styles(elem2)(fromFoldable10([
37413
37198
  $Tuple("border-bottom", isTransient($2._2) ? "1px solid blue" : "none"),
37414
37199
  $Tuple(
37415
37200
  "background",
@@ -37442,14 +37227,14 @@ var setSelState4 = (v) => (redraw) => (rootElement) => {
37442
37227
  };
37443
37228
  };
37444
37229
  var createRootElement2 = (v) => (div) => (childId) => {
37445
- const $0 = createChild(div)(showElementType.show(Text2))(fromFoldable9([
37230
+ const $0 = createChild(div)(showElementType.show(Text2))(fromFoldable10([
37446
37231
  classes(["paragraph"]),
37447
37232
  $Tuple("id", childId)
37448
37233
  ]));
37449
37234
  return () => {
37450
37235
  const rootElement = $0();
37451
37236
  forWithIndex_2(v)((i) => (elem2) => {
37452
- const $1 = createChild(rootElement)(showElementType.show(Text2))(fromFoldable9([
37237
+ const $1 = createChild(rootElement)(showElementType.show(Text2))(fromFoldable10([
37453
37238
  classes(["text-fragment"]),
37454
37239
  $Tuple("id", childId)
37455
37240
  ]));
@@ -37560,7 +37345,7 @@ var join3 = (v) => (v1) => {
37560
37345
  }
37561
37346
  fail();
37562
37347
  };
37563
- var fromFoldable11 = /* @__PURE__ */ fromFoldable(foldableArray);
37348
+ var fromFoldable17 = /* @__PURE__ */ fromFoldable(foldableArray);
37564
37349
  var reflectDictSelState\u{1D54A}$x215ValS5 = {
37565
37350
  from: () => (r) => ({
37566
37351
  caption: (() => {
@@ -37575,7 +37360,7 @@ var scatterPlotHelpers = {
37575
37360
  point_attrs: (v) => (v1) => {
37576
37361
  const v2 = definitely("index within bounds")(index(v.points)(v1.i));
37577
37362
  const sel = join3(v2.x._2)(v2.y._2);
37578
- return fromFoldable11([
37363
+ return fromFoldable17([
37579
37364
  $Tuple(
37580
37365
  "r",
37581
37366
  showNumberImpl(toNumber(2) * (() => {
@@ -37691,20 +37476,20 @@ var createRootElement3 = (v) => (div) => (childId) => {
37691
37476
  const $0 = v.colNames;
37692
37477
  const $1 = v.filter;
37693
37478
  const $2 = v.rows;
37694
- const $3 = createChild(div)(showElementType.show(Table))(fromFoldable9([
37479
+ const $3 = createChild(div)(showElementType.show(Table))(fromFoldable10([
37695
37480
  classes(["table-view"]),
37696
37481
  $Tuple("id", childId)
37697
37482
  ]));
37698
37483
  return () => {
37699
37484
  const rootElement = $3();
37700
- createChild(rootElement)(showElementType.show(Caption))(fromFoldable9([
37485
+ createChild(rootElement)(showElementType.show(Caption))(fromFoldable10([
37701
37486
  classes(["title-text", "table-caption"]),
37702
37487
  $Tuple("dominant-baseline", "middle"),
37703
37488
  $Tuple("text-anchor", "left")
37704
37489
  ]))();
37705
37490
  const colNames$p = ["__n", ...$0];
37706
- const $4 = createChild(rootElement)(showElementType.show(THead))(fromFoldable9([]))();
37707
- const row = createChild($4)(showElementType.show(TR))(fromFoldable9([]))();
37491
+ const $4 = createChild(rootElement)(showElementType.show(THead))(fromFoldable10([]))();
37492
+ const row = createChild($4)(showElementType.show(TR))(fromFoldable10([]))();
37708
37493
  forWithIndex_3(colNames$p)((j) => (colName) => {
37709
37494
  const value = (() => {
37710
37495
  if (colName === "__n") {
@@ -37715,7 +37500,7 @@ var createRootElement3 = (v) => (div) => (childId) => {
37715
37500
  }
37716
37501
  return colName;
37717
37502
  })();
37718
- const $5 = createChild(row)(showElementType.show(TH))(fromFoldable9([
37503
+ const $5 = createChild(row)(showElementType.show(TH))(fromFoldable10([
37719
37504
  classes(["table-cell", ...colName === "__n" ? ["filter-toggle", "toggle-button"] : []])
37720
37505
  ]));
37721
37506
  const $6 = setText(value);
@@ -37726,9 +37511,9 @@ var createRootElement3 = (v) => (div) => (childId) => {
37726
37511
  return $7($9)();
37727
37512
  };
37728
37513
  })();
37729
- const body = createChild(rootElement)(showElementType.show(TBody))(fromFoldable9([]))();
37514
+ const body = createChild(rootElement)(showElementType.show(TBody))(fromFoldable10([]))();
37730
37515
  forWithIndex_3($2)((i) => (row$1) => {
37731
- const $5 = createChild(body)(showElementType.show(TR))(fromFoldable9([
37516
+ const $5 = createChild(body)(showElementType.show(TR))(fromFoldable10([
37732
37517
  classes(["table-row"])
37733
37518
  ]));
37734
37519
  const $6 = setDatum({ i });
@@ -37736,14 +37521,14 @@ var createRootElement3 = (v) => (div) => (childId) => {
37736
37521
  const $7 = $5();
37737
37522
  const row$p = $6($7)();
37738
37523
  return forWithIndex_3([showIntImpl(i + 1 | 0), ...arrayMap(prim)(row$1)])((j) => (value) => {
37739
- const $8 = createChild(row$p)(showElementType.show(TD))(fromFoldable9([
37524
+ const $8 = createChild(row$p)(showElementType.show(TD))(fromFoldable10([
37740
37525
  classes(j >= 0 ? ["table-cell"] : [])
37741
37526
  ]));
37742
37527
  const $9 = setText(value);
37743
37528
  const $10 = setDatum({ i, j: j - 1 | 0, value, colName: definitely("index within bounds")(index(colNames$p)(j)) });
37744
37529
  return () => {
37745
37530
  const $11 = $8();
37746
- const $12 = styles($11)(fromFoldable9([
37531
+ const $12 = styles($11)(fromFoldable10([
37747
37532
  $Tuple("border-top", "1px solid transparent"),
37748
37533
  $Tuple("border-left", "1px solid transparent")
37749
37534
  ]))();
@@ -37821,7 +37606,7 @@ var setSelState6 = (v) => (redraw) => (rootElement) => {
37821
37606
  const $6 = classed(v12.colName === "__n" ? "" : selClassesFor(definitely("index within bounds")(index(definitely("index within bounds")(index($0)(v12.i)))(v12.j))._1))(true)($5)();
37822
37607
  for_2(["mousedown", "mouseenter", "mouseleave"])((ev) => on(ev)(redraw)($6))();
37823
37608
  }
37824
- return styles(cell)(fromFoldable9([
37609
+ return styles(cell)(fromFoldable10([
37825
37610
  $Tuple(
37826
37611
  "border-right",
37827
37612
  (() => {
@@ -37894,10 +37679,10 @@ var drawableTableView = {
37894
37679
  var arrayDictToArray2 = (x2) => arrayMap((a) => arrayMap((a$1) => $$get2(showString)(mapDictString)(a$1)(a))(x2));
37895
37680
 
37896
37681
  // output-es/App.View/index.js
37897
- var pack3 = (x2) => (k) => k(drawableBarChart)(x2);
37898
- var pack13 = (x2) => (k) => k(drawableLineChart)(x2);
37899
- var pack23 = (x2) => (k) => k(drawableScatterPlot)(x2);
37900
- var pack32 = (x2) => (k) => k(drawableParagraphSelState)(x2);
37682
+ var pack = (x2) => (k) => k(drawableBarChart)(x2);
37683
+ var pack1 = (x2) => (k) => k(drawableLineChart)(x2);
37684
+ var pack2 = (x2) => (k) => k(drawableScatterPlot)(x2);
37685
+ var pack3 = (x2) => (k) => k(drawableParagraphSelState)(x2);
37901
37686
  var pack4 = (x2) => (k) => k(drawableMultiView)(x2);
37902
37687
  var identity28 = (x2) => x2;
37903
37688
  var pack5 = (x2) => (k) => k(drawableTableView)(x2);
@@ -37906,16 +37691,16 @@ var view = () => (v) => (v1) => (v2) => {
37906
37691
  if (v1._2.tag === "Constr") {
37907
37692
  if (v1._2._2.tag === "Cons" && v1._2._2._2.tag === "Nil") {
37908
37693
  if (v1._2._1 === "BarChart") {
37909
- return pack3(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37694
+ return pack(dict(reflectDictSelState\u{1D54A}$x215ValS22.from())(v1._2._2._1));
37910
37695
  }
37911
37696
  if (v1._2._1 === "LineChart") {
37912
- return pack13(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37697
+ return pack1(dict(reflectDictSelState\u{1D54A}$x215ValS13.from())(v1._2._2._1));
37913
37698
  }
37914
37699
  if (v1._2._1 === "ScatterPlot") {
37915
- return pack23(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37700
+ return pack2(dict(reflectDictSelState\u{1D54A}$x215ValS5.from())(v1._2._2._1));
37916
37701
  }
37917
37702
  if (v1._2._1 === "Paragraph") {
37918
- return pack32(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
37703
+ return pack3(reflectValSelState\u{1D54A}Paragr.from()(v1._2._2._1));
37919
37704
  }
37920
37705
  if (v1._2._1 === "MultiView") {
37921
37706
  const vws = _fmapObject(
@@ -38002,7 +37787,7 @@ var monadErrorStateT = (dictMonadError) => {
38002
37787
  };
38003
37788
 
38004
37789
  // output-es/Graph.WithGraph/index.js
38005
- var fromFoldable17 = /* @__PURE__ */ (() => {
37790
+ var fromFoldable18 = /* @__PURE__ */ (() => {
38006
37791
  const go = (go$a0$copy) => (go$a1$copy) => {
38007
37792
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38008
37793
  while (go$c) {
@@ -38049,7 +37834,7 @@ var monadAllocAllocT = (dictMonad) => {
38049
37834
  var runAllocT = (dictMonad) => (m) => (n) => dictMonad.Bind1().bind(m(n))((v) => dictMonad.Applicative0().pure($Tuple(
38050
37835
  v._2,
38051
37836
  $Tuple(
38052
- fromFoldable17(listMap((x2) => showIntImpl(x2))((() => {
37837
+ fromFoldable18(listMap((x2) => showIntImpl(x2))((() => {
38053
37838
  const $0 = n + 1 | 0;
38054
37839
  if (v._2 < $0) {
38055
37840
  return Nil;
@@ -38094,8 +37879,9 @@ var runWithGraphT_spy = (dictMonad) => {
38094
37879
  const runWithGraphT2 = runWithGraphT(dictMonad);
38095
37880
  const spyFunWhenM2 = spyFunWhenM(dictMonad.Bind1().Apply0().Functor0());
38096
37881
  return (dictGraph) => {
38097
- const runWithGraphT3 = runWithGraphT2(dictGraph);
38098
- return (wg) => (\u03B1s) => spyFunWhenM2(false)("runWithGraphT")(showVertices$p)((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)))(runWithGraphT3(wg))(\u03B1s);
37882
+ const $0 = runWithGraphT2(dictGraph);
37883
+ const $1 = spyFunWhenM2(false)("runWithGraphT")(showVertices)((x2) => showEdgeList(toEdgeList(dictGraph)(x2._1)));
37884
+ return (x2) => $1($0(x2));
38099
37885
  };
38100
37886
  };
38101
37887
  var runWithGraphT_spy1 = /* @__PURE__ */ runWithGraphT_spy(monadIdentity);
@@ -38108,7 +37894,7 @@ var monadWithGraphAllocWithGr = (dictMonadError) => {
38108
37894
  const monadWithGraphWithGraphT1 = monadWithGraphWithGraphT(monadStateT);
38109
37895
  const monadErrorStateT2 = monadErrorStateT(monadErrorStateT(dictMonadError));
38110
37896
  return {
38111
- new: (dictTypeName) => (constr) => (\u03B1s) => (vd) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend($Tuple(\u03B1, (k) => k(dictTypeName)(vd)))(\u03B1s))(() => applicativeStateT(monadStateT).pure(constr(\u03B1)(vd)))),
37897
+ new: (\u03B1s) => bindStateT2.bind(fresh1)((\u03B1) => bindStateT2.bind(monadWithGraphWithGraphT1.extend(\u03B1)(\u03B1s))(() => applicativeStateT(monadStateT).pure(\u03B1))),
38112
37898
  MonadAlloc0: () => monadAllocWithGraphAllocT1,
38113
37899
  MonadError1: () => monadErrorStateT2,
38114
37900
  MonadWithGraph2: () => monadWithGraphWithGraphT1
@@ -38120,29 +37906,30 @@ var pure2 = /* @__PURE__ */ (() => applicativeStateT(monadIdentity).pure)();
38120
37906
  var extend3 = /* @__PURE__ */ (() => monadWithGraphWithGraphT(monadIdentity).extend)();
38121
37907
  var tailRecM = /* @__PURE__ */ (() => monadRecStateT(monadRecIdentity).tailRecM)();
38122
37908
  var member4 = /* @__PURE__ */ (() => setSet(ordVertex).member)();
38123
- var fromFoldable18 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
37909
+ var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldr(Cons)(Nil))();
38124
37910
  var intersection3 = /* @__PURE__ */ intersection(ordVertex);
38125
37911
  var fwdSlice = (dictGraph) => {
38126
37912
  const runWithGraph_spy = runWithGraphT_spy1(dictGraph);
38127
37913
  return (v) => {
38128
37914
  const $0 = v._2;
37915
+ const $1 = v._1;
38129
37916
  return runWithGraph_spy(tailRecM((v1) => {
38130
37917
  if (v1.es.tag === "Nil") {
38131
37918
  return pure2($Step("Done", void 0));
38132
37919
  }
38133
37920
  if (v1.es.tag === "Cons") {
38134
- const $1 = lookup2(ordVertex)(v1.es._1._1)(v1.pending);
37921
+ const $2 = lookup2(ordVertex)(v1.es._1._1)(v1.pending);
38135
37922
  const \u03B2s = (() => {
38136
- if ($1.tag === "Nothing") {
37923
+ if ($2.tag === "Nothing") {
38137
37924
  return $$$Map("Two", Leaf2, v1.es._1._2, void 0, Leaf2);
38138
37925
  }
38139
- if ($1.tag === "Just") {
38140
- return insert3(ordVertex)(v1.es._1._2)()($1._1);
37926
+ if ($2.tag === "Just") {
37927
+ return insert3(ordVertex)(v1.es._1._2)()($2._1);
38141
37928
  }
38142
37929
  fail();
38143
37930
  })();
38144
37931
  if (eqMap(eqVertex)(eqUnit).eq(\u03B2s)(dictGraph.outN($0)(v1.es._1._1))) {
38145
- return bindStateT(monadIdentity).bind(extend3($Tuple(v1.es._1._1, dictGraph.vertexData($0)(v1.es._1._1)))(\u03B2s))(() => pure2($Step(
37932
+ return bindStateT(monadIdentity).bind(extend3(v1.es._1._1)(\u03B2s))(() => pure2($Step(
38146
37933
  "Loop",
38147
37934
  {
38148
37935
  pending: $$delete3(ordVertex)(v1.es._1._1)(v1.pending),
@@ -38153,97 +37940,26 @@ var fwdSlice = (dictGraph) => {
38153
37940
  return pure2($Step("Loop", { pending: insert3(ordVertex)(v1.es._1._1)(\u03B2s)(v1.pending), es: v1.es._2 }));
38154
37941
  }
38155
37942
  fail();
38156
- })({ pending: Leaf2, es: inEdges(dictGraph)($0)(v._1) }))((() => {
38157
- const $1 = map2(ordDVertex)((\u03B1) => $Tuple(\u03B1, dictGraph.vertexData($0)(\u03B1)))(v._1);
38158
- return assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)(addresses($1))(dictGraph.sinks($0)).tag === "Leaf")($1);
38159
- })())._1;
37943
+ })({ pending: Leaf2, es: inEdges(dictGraph)($0)($1) }))(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)($1)(dictGraph.sinks($0)).tag === "Leaf")($1))._1;
38160
37944
  };
38161
37945
  };
38162
37946
  var bwdSlice = (dictGraph) => {
38163
37947
  const runWithGraph_spy = runWithGraphT_spy1(dictGraph);
38164
37948
  return (v) => {
38165
37949
  const $0 = v._2;
38166
- const $1 = map2(ordDVertex)((\u03B1) => $Tuple(
38167
- \u03B1,
38168
- spyWhen(false)("Value found at " + showStringImpl(\u03B1))((x2) => {
38169
- const $12 = asVal(x2);
38170
- if ($12.tag === "Left") {
38171
- if ($12._1.tag === "Int") {
38172
- return "BV: Int";
38173
- }
38174
- if ($12._1.tag === "Float") {
38175
- return "BV: Float";
38176
- }
38177
- if ($12._1.tag === "Str") {
38178
- return "BV: Str";
38179
- }
38180
- if ($12._1.tag === "Constr") {
38181
- return "BV: Constr";
38182
- }
38183
- if ($12._1.tag === "Dictionary") {
38184
- return "BV: Dictionary";
38185
- }
38186
- if ($12._1.tag === "Matrix") {
38187
- return "BV: Matrix";
38188
- }
38189
- if ($12._1.tag === "Fun") {
38190
- return "BV: Fun";
38191
- }
38192
- fail();
38193
- }
38194
- if ($12.tag === "Right") {
38195
- return $12._1;
38196
- }
38197
- fail();
38198
- })(dictGraph.vertexData($0)(\u03B1))
38199
- ))(v._1);
37950
+ const $1 = v._1;
38200
37951
  return runWithGraph_spy(tailRecM((v1) => {
38201
37952
  if (v1["\u03B1s"].tag === "Nil") {
38202
37953
  if (v1.pending.tag === "Nil") {
38203
37954
  return pure2($Step("Done", void 0));
38204
37955
  }
38205
37956
  if (v1.pending.tag === "Cons") {
38206
- const $2 = v1.pending._1._1._2;
38207
- const $3 = v1.pending._1._1._1;
38208
- if (member4($3)(v1.visited)) {
37957
+ if (member4(v1.pending._1._1)(v1.visited)) {
38209
37958
  return pure2($Step("Loop", { visited: v1.visited, "\u03B1s": Nil, pending: v1.pending._2 }));
38210
37959
  }
38211
- return bindStateT(monadIdentity).bind(extend3($Tuple(
38212
- $3,
38213
- spyWhen(false)("Value found at " + showStringImpl($3))((x2) => {
38214
- const $4 = asVal(x2);
38215
- if ($4.tag === "Left") {
38216
- if ($4._1.tag === "Int") {
38217
- return "BV: Int";
38218
- }
38219
- if ($4._1.tag === "Float") {
38220
- return "BV: Float";
38221
- }
38222
- if ($4._1.tag === "Str") {
38223
- return "BV: Str";
38224
- }
38225
- if ($4._1.tag === "Constr") {
38226
- return "BV: Constr";
38227
- }
38228
- if ($4._1.tag === "Dictionary") {
38229
- return "BV: Dictionary";
38230
- }
38231
- if ($4._1.tag === "Matrix") {
38232
- return "BV: Matrix";
38233
- }
38234
- if ($4._1.tag === "Fun") {
38235
- return "BV: Fun";
38236
- }
38237
- fail();
38238
- }
38239
- if ($4.tag === "Right") {
38240
- return $4._1;
38241
- }
38242
- fail();
38243
- })($2)
38244
- ))(v1.pending._1._2))(() => pure2($Step(
37960
+ return bindStateT(monadIdentity).bind(extend3(v1.pending._1._1)(v1.pending._1._2))(() => pure2($Step(
38245
37961
  "Loop",
38246
- { visited: insert3(ordVertex)($3)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
37962
+ { visited: insert3(ordVertex)(v1.pending._1._1)()(v1.visited), "\u03B1s": Nil, pending: v1.pending._2 }
38247
37963
  )));
38248
37964
  }
38249
37965
  fail();
@@ -38254,15 +37970,15 @@ var bwdSlice = (dictGraph) => {
38254
37970
  "Loop",
38255
37971
  {
38256
37972
  visited: v1.visited,
38257
- "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable18(\u03B2s)),
38258
- pending: $List("Cons", $Tuple($Tuple(v1["\u03B1s"]._1, dictGraph.vertexData($0)(v1["\u03B1s"]._1)), \u03B2s), v1.pending)
37973
+ "\u03B1s": foldableList.foldr(Cons)(v1["\u03B1s"]._2)(fromFoldable19(\u03B2s)),
37974
+ pending: $List("Cons", $Tuple(v1["\u03B1s"]._1, \u03B2s), v1.pending)
38259
37975
  }
38260
37976
  ));
38261
37977
  }
38262
37978
  fail();
38263
37979
  })({
38264
37980
  visited: Leaf2,
38265
- "\u03B1s": fromFoldable18(intersection3(addresses(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordDVertex)($1)(dictGraph.Vertices1().vertices($0)).tag === "Leaf")($1)))(dictGraph.sources($0))),
37981
+ "\u03B1s": fromFoldable19(intersection3(assertWhen(true)("inputs are sinks")((v$1) => difference2(ordVertex)($1)(dictGraph.Vertices1().vertices($0)).tag === "Leaf")($1))(dictGraph.sources($0))),
38266
37982
  pending: Nil
38267
37983
  }))(Leaf2)._1;
38268
37984
  };
@@ -38271,7 +37987,7 @@ var bwdSlice = (dictGraph) => {
38271
37987
  // output-es/EvalGraph/index.js
38272
37988
  var setSet4 = /* @__PURE__ */ setSet(ordVertex);
38273
37989
  var disjointUnion2 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
38274
- var fromFoldable19 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
37990
+ var fromFoldable20 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
38275
37991
  var show22 = /* @__PURE__ */ (() => showSet(showString).show)();
38276
37992
  var toUnfoldable10 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
38277
37993
  var union1 = /* @__PURE__ */ (() => setSet(ordString).union)();
@@ -38281,7 +37997,7 @@ var greaterThanOrEq = /* @__PURE__ */ (() => {
38281
37997
  const $0 = ordTuple(ordInt)(ordInt);
38282
37998
  return (a1) => (a2) => $0.compare(a1)(a2) !== "LT";
38283
37999
  })();
38284
- var show3 = (v) => "(Tuple " + showIntImpl(v._1) + " " + showIntImpl(v._2) + ")";
38000
+ var show32 = (v) => "(Tuple " + showIntImpl(v._1) + " " + showIntImpl(v._2) + ")";
38285
38001
  var concatM = (dictMonad) => foldableList.foldr((() => {
38286
38002
  const $0 = dictMonad.Bind1();
38287
38003
  return (f) => (g) => (a) => $0.bind(f(a))(g);
@@ -38383,7 +38099,7 @@ var match = (dictMonadWithGraphAlloc) => {
38383
38099
  const $2 = v._2._1;
38384
38100
  const $3 = v._1;
38385
38101
  const $4 = v1._2;
38386
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable19(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($2)._2)(toUnfoldable10($1)))($4))((v2) => $0.pure($Tuple(
38102
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($1)(fromFoldable20(mapObjectString.keys($2))).tag === "Leaf")("Pattern mismatch: found " + show22(mapObjectString.keys($2)) + ", expected " + show22($1)))(() => Bind1.bind(matchMany(dictMonadWithGraphAlloc)(listMap((k) => $$get2(showString)(mapObjectString)(k)($2)._2)(toUnfoldable10($1)))($4))((v2) => $0.pure($Tuple(
38387
38103
  v2._1,
38388
38104
  $Tuple(v2._2._1, insert3(ordVertex)($3)()(v2._2._2))
38389
38105
  ))));
@@ -38408,9 +38124,8 @@ var graphGC = (dictGraph) => {
38408
38124
  const $2 = v["in\u03B1"];
38409
38125
  const $3 = v["out\u03B1"];
38410
38126
  return {
38411
- fwd: (in\u{1D539}) => select\u03B1s\u{1D539}Vertex3["select\u{1D539}s"]($3)(addresses($0.vertices(v.graph_fwd(select\u03B1s\u{1D539}Vertex22["select\u03B1s"](in\u{1D539})($2))($1)))),
38412
- bwd: (out\u{1D539}) => select\u03B1s\u{1D539}Vertex22["select\u{1D539}s"]($2)(addresses($0.vertices(v.graph_bwd(select\u03B1s\u{1D539}Vertex3["select\u03B1s"](out\u{1D539})($3))($1)))),
38413
- connection: void 0
38127
+ fwd: (in\u{1D539}) => select\u03B1s\u{1D539}Vertex3["select\u{1D539}s"]($3)($0.vertices(v.graph_fwd(select\u03B1s\u{1D539}Vertex22["select\u03B1s"](in\u{1D539})($2))($1))),
38128
+ bwd: (out\u{1D539}) => select\u03B1s\u{1D539}Vertex22["select\u{1D539}s"]($2)($0.vertices(v.graph_bwd(select\u03B1s\u{1D539}Vertex3["select\u03B1s"](out\u{1D539})($3))($1)))
38414
38129
  };
38415
38130
  };
38416
38131
  };
@@ -38420,35 +38135,35 @@ var graphGC = (dictGraph) => {
38420
38135
  };
38421
38136
  var closeDefs = (dictMonadWithGraphAlloc) => {
38422
38137
  const Monad0 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0();
38138
+ const Functor0 = Monad0.Bind1().Apply0().Functor0();
38423
38139
  const traverse2 = traversableDict.traverse(Monad0.Applicative0());
38424
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38425
- return (\u03B3) => (\u03C1) => (\u03B1s) => Monad0.Bind1().Apply0().Functor0().map(Env)(traverse2((\u03C3) => {
38140
+ return (\u03B3) => (\u03C1) => (\u03B1s) => Functor0.map(Env)(traverse2((\u03C3) => {
38426
38141
  const \u03C1$p = forDefs(\u03C1)(\u03C3);
38427
- return $$new(Val)(\u03B1s)($BaseVal(
38142
+ const $0 = $BaseVal(
38428
38143
  "Fun",
38429
38144
  $Fun(
38430
38145
  "Closure",
38431
38146
  (() => {
38432
- const $0 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38147
+ const $02 = union1(fv(\u03C1$p))(fVElim.fv(\u03C3));
38433
38148
  return filterWithKey((x2) => {
38434
- const $1 = setSet(ordString).member(x2)($0);
38149
+ const $1 = setSet(ordString).member(x2)($02);
38435
38150
  return (v) => $1;
38436
38151
  })(\u03B3);
38437
38152
  })(),
38438
38153
  \u03C1$p,
38439
38154
  \u03C3
38440
38155
  )
38441
- ));
38156
+ );
38157
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(\u03B1s)));
38442
38158
  })(\u03C1));
38443
38159
  };
38444
38160
  var $$eval = (dictMonadWithGraphAlloc) => {
38445
38161
  const MonadError1 = dictMonadWithGraphAlloc.MonadError1();
38446
38162
  const withMsg2 = withMsg(MonadError1);
38447
38163
  const MonadThrow0 = MonadError1.MonadThrow0();
38448
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38449
38164
  const Monad0 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0();
38450
38165
  const Bind1 = Monad0.Bind1();
38451
- const $0 = Bind1.Apply0().Functor0();
38166
+ const Functor0 = Bind1.Apply0().Functor0();
38452
38167
  const Applicative0 = Monad0.Applicative0();
38453
38168
  const traverse2 = traversableList.traverse(Applicative0);
38454
38169
  const traverse3 = traversablePair.traverse(Applicative0);
@@ -38464,32 +38179,30 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38464
38179
  return withMsg2("Variable lookup")(lookup$p(MonadThrow0)(showString)(mapEnvStringVal)(v1._1)(v));
38465
38180
  }
38466
38181
  if (v1.tag === "Int") {
38467
- return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Int", v1._2));
38182
+ return Functor0.map((f) => f($BaseVal("Int", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38468
38183
  }
38469
38184
  if (v1.tag === "Float") {
38470
- return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Float", v1._2));
38185
+ return Functor0.map((f) => f($BaseVal("Float", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38471
38186
  }
38472
38187
  if (v1.tag === "Str") {
38473
- return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal("Str", v1._2));
38188
+ return Functor0.map((f) => f($BaseVal("Str", v1._2)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38474
38189
  }
38475
38190
  if (v1.tag === "Dictionary") {
38476
- const $1 = v1._1;
38477
- return Bind1.bind($0.map(unzip4)(traverse2(traverse3((() => {
38478
- const $2 = $$eval(dictMonadWithGraphAlloc)(v);
38479
- return (a) => $2(a)(v2);
38191
+ const $0 = v1._1;
38192
+ return Bind1.bind(Functor0.map(unzip4)(traverse2(traverse3((() => {
38193
+ const $1 = $$eval(dictMonadWithGraphAlloc)(v);
38194
+ return (a) => $1(a)(v2);
38480
38195
  })()))(v1._2)))((v3) => {
38481
38196
  const v4 = unzip(listMap((v$1) => $Tuple(v$1._2.tag === "Str" ? v$1._2._1 : typeError(v$1._2)("Str"), v$1._1))(v3._1));
38482
- return $$new(Val)(insert3(ordVertex)($1)()(v2))($BaseVal(
38483
- "Dictionary",
38484
- fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2)))
38485
- ));
38197
+ const $1 = $BaseVal("Dictionary", fromFoldable110(zipWith2(Tuple)(v4._1)(zipWith2(Tuple)(v4._2)(v3._2))));
38198
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($0)()(v2))));
38486
38199
  });
38487
38200
  }
38488
38201
  if (v1.tag === "Constr") {
38489
- const $1 = v1._2;
38490
- const $2 = v1._3;
38491
- const $3 = v1._1;
38492
- return Bind1.bind(checkArity3($1)((() => {
38202
+ const $0 = v1._2;
38203
+ const $1 = v1._3;
38204
+ const $2 = v1._1;
38205
+ return Bind1.bind(checkArity3($0)((() => {
38493
38206
  const go = (go$a0$copy) => (go$a1$copy) => {
38494
38207
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38495
38208
  while (go$c) {
@@ -38508,69 +38221,67 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38508
38221
  }
38509
38222
  return go$r;
38510
38223
  };
38511
- return go(0)($2);
38224
+ return go(0)($1);
38512
38225
  })()))(() => Bind1.bind(traverse2((() => {
38513
- const $4 = $$eval(dictMonadWithGraphAlloc)(v);
38514
- return (a) => $4(a)(v2);
38515
- })())($2))((vs) => $$new(Val)(insert3(ordVertex)($3)()(v2))($BaseVal("Constr", $1, vs))));
38226
+ const $3 = $$eval(dictMonadWithGraphAlloc)(v);
38227
+ return (a) => $3(a)(v2);
38228
+ })())($1))((vs) => Functor0.map((f) => f($BaseVal("Constr", $0, vs)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($2)()(v2))))));
38516
38229
  }
38517
38230
  if (v1.tag === "Matrix") {
38518
- const $1 = v1._2;
38519
- const $2 = v1._3._1;
38520
- const $3 = v1._3._2;
38521
- const $4 = v1._1;
38231
+ const $0 = v1._2;
38232
+ const $1 = v1._3._1;
38233
+ const $2 = v1._3._2;
38234
+ const $3 = v1._1;
38522
38235
  return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._4)(v2))((v3) => {
38523
38236
  const v5 = intPair.unpack(v3._2);
38524
- const $5 = v5._1._1;
38525
- const $6 = v5._2._1;
38526
- const $7 = v5._1._2;
38527
- const $8 = v5._2._2;
38528
- return Bind1.bind(check(MonadThrow0)(greaterThanOrEq($Tuple($5, $6))($Tuple(1, 1)))("array must be at least (" + show3($Tuple(1, 1)) + "); got (" + show3($Tuple(
38529
- $5,
38530
- $6
38531
- )) + ")"))(() => Bind1.bind(sequence1(arrayBind(range(1)($5))((i) => [
38532
- sequence1(arrayBind(range(1)($6))((j) => [
38237
+ const $4 = v5._1._1;
38238
+ const $5 = v5._2._1;
38239
+ const $6 = v5._1._2;
38240
+ const $7 = v5._2._2;
38241
+ return Bind1.bind(check(MonadThrow0)(greaterThanOrEq($Tuple($4, $5))($Tuple(1, 1)))("array must be at least (" + show32($Tuple(1, 1)) + "); got (" + show32($Tuple(
38242
+ $4,
38243
+ $5
38244
+ )) + ")"))(() => Bind1.bind(sequence1(arrayBind(range(1)($4))((i) => [
38245
+ sequence1(arrayBind(range(1)($5))((j) => [
38533
38246
  $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(disjointUnion2((() => {
38534
- const $9 = {};
38535
- $9[$2] = $Val($7, $BaseVal("Int", i));
38536
- return $9;
38247
+ const $8 = {};
38248
+ $8[$1] = $Val($6, $BaseVal("Int", i));
38249
+ return $8;
38537
38250
  })())((() => {
38538
- const $9 = {};
38539
- $9[$3] = $Val($8, $BaseVal("Int", j));
38540
- return $9;
38541
- })())))($1)(v2)
38251
+ const $8 = {};
38252
+ $8[$2] = $Val($7, $BaseVal("Int", j));
38253
+ return $8;
38254
+ })())))($0)(v2)
38542
38255
  ]))
38543
- ])))((vss) => $$new(Val)(insert3(ordVertex)($4)()(v2))($BaseVal(
38544
- "Matrix",
38545
- $Tuple(vss, $Tuple($Tuple($5, $7), $Tuple($6, $8)))
38546
- ))));
38256
+ ])))((vss) => Functor0.map((f) => f($BaseVal("Matrix", $Tuple(vss, $Tuple($Tuple($4, $6), $Tuple($5, $7))))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)($3)()(v2))))));
38547
38257
  });
38548
38258
  }
38549
38259
  if (v1.tag === "Lambda") {
38550
- return $$new(Val)(insert3(ordVertex)(v1._1)()(v2))($BaseVal(
38260
+ const $0 = $BaseVal(
38551
38261
  "Fun",
38552
38262
  $Fun(
38553
38263
  "Closure",
38554
38264
  (() => {
38555
- const $1 = fVElim.fv(v1._2);
38265
+ const $02 = fVElim.fv(v1._2);
38556
38266
  return filterWithKey((x2) => {
38557
- const $2 = setSet(ordString).member(x2)($1);
38558
- return (v$1) => $2;
38267
+ const $1 = setSet(ordString).member(x2)($02);
38268
+ return (v$1) => $1;
38559
38269
  })(v);
38560
38270
  })(),
38561
38271
  empty,
38562
38272
  v1._2
38563
38273
  )
38564
- ));
38274
+ );
38275
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v1._1)()(v2))));
38565
38276
  }
38566
38277
  if (v1.tag === "Project") {
38567
- const $1 = v1._2;
38278
+ const $0 = v1._2;
38568
38279
  return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => {
38569
38280
  if (v3._2.tag === "Dictionary") {
38570
- return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + $1 + '" not found')((() => {
38571
- const $2 = _lookup(Nothing, Just, $1, v3._2._1);
38572
- if ($2.tag === "Just") {
38573
- return $Maybe("Just", $2._1._2);
38281
+ return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + $0 + '" not found')((() => {
38282
+ const $1 = _lookup(Nothing, Just, $0, v3._2._1);
38283
+ if ($1.tag === "Just") {
38284
+ return $Maybe("Just", $1._1._2);
38574
38285
  }
38575
38286
  return Nothing;
38576
38287
  })()));
@@ -38579,14 +38290,14 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38579
38290
  });
38580
38291
  }
38581
38292
  if (v1.tag === "DProject") {
38582
- const $1 = v1._2;
38583
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($1)(v2))((v$p) => {
38293
+ const $0 = v1._2;
38294
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($0)(v2))((v$p) => {
38584
38295
  if (v3._2.tag === "Dictionary") {
38585
38296
  if (v$p._2.tag === "Str") {
38586
38297
  return withMsg2("Dict lookup")(orElse(MonadThrow0)('Key "' + v$p._2._1 + '" not found')((() => {
38587
- const $2 = _lookup(Nothing, Just, v$p._2._1, v3._2._1);
38588
- if ($2.tag === "Just") {
38589
- return $Maybe("Just", $2._1._2);
38298
+ const $1 = _lookup(Nothing, Just, v$p._2._1, v3._2._1);
38299
+ if ($1.tag === "Just") {
38300
+ return $Maybe("Just", $1._1._2);
38590
38301
  }
38591
38302
  return Nothing;
38592
38303
  })()));
@@ -38597,18 +38308,18 @@ var $$eval = (dictMonadWithGraphAlloc) => {
38597
38308
  }));
38598
38309
  }
38599
38310
  if (v1.tag === "App") {
38600
- const $1 = v1._2;
38601
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($1)(v2))((v$p) => apply2(dictMonadWithGraphAlloc)(v3)(v$p)));
38311
+ const $0 = v1._2;
38312
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1)(v2))((v3) => Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)($0)(v2))((v$p) => apply2(dictMonadWithGraphAlloc)(v3)(v$p)));
38602
38313
  }
38603
38314
  if (v1.tag === "Let") {
38604
- const $1 = v1._2;
38605
- const $2 = v1._1._1;
38606
- return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($2))((v4) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(v4._1))($1)(v4._2._2)));
38315
+ const $0 = v1._2;
38316
+ const $1 = v1._1._1;
38317
+ return Bind1.bind($$eval(dictMonadWithGraphAlloc)(v)(v1._1._2)(v2))((v3) => Bind1.bind(match1(v3)($1))((v4) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(v4._1))($0)(v4._2._2)));
38607
38318
  }
38608
38319
  if (v1.tag === "LetRec") {
38609
- const $1 = v1._2;
38610
- const inserted\u03B1 = insert3(ordVertex)(v1._1._1)()(v2);
38611
- return Bind1.bind(closeDefs1(v)(v1._1._2)(inserted\u03B1))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($1)(inserted\u03B1));
38320
+ const $0 = v1._2;
38321
+ const $1 = v1._1._1;
38322
+ return Bind1.bind(closeDefs1(v)(v1._1._2)(insert3(ordVertex)($1)()(v2)))((\u03B3$p) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(v)(\u03B3$p))($0)(insert3(ordVertex)($1)()(v2)));
38612
38323
  }
38613
38324
  fail();
38614
38325
  };
@@ -38617,7 +38328,7 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38617
38328
  const Bind1 = dictMonadWithGraphAlloc.MonadWithGraph2().Monad0().Bind1();
38618
38329
  const closeDefs1 = closeDefs(dictMonadWithGraphAlloc);
38619
38330
  const match1 = match(dictMonadWithGraphAlloc);
38620
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
38331
+ const Functor0 = Bind1.Apply0().Functor0();
38621
38332
  const MonadError1 = dictMonadWithGraphAlloc.MonadError1();
38622
38333
  const MonadThrow0 = MonadError1.MonadThrow0();
38623
38334
  return (v) => (v1) => {
@@ -38630,7 +38341,8 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38630
38341
  return Bind1.bind(closeDefs1($2)(v._2._1._2)($$$Map("Two", Leaf2, $1, void 0, Leaf2)))((\u03B32) => Bind1.bind(match1(v1)($3))((v3) => $$eval(dictMonadWithGraphAlloc)(unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($2)(\u03B32))(v3._1))(v3._2._1.tag === "ContExpr" ? v3._2._1._1 : throwException(error("Expression expected"))())(insert3(ordVertex)($1)()(v3._2._2))));
38631
38342
  }
38632
38343
  if (v._2._1.tag === "Foreign") {
38633
- const $1 = v._2._1._1._2;
38344
+ const $1 = v._2._1._1._1;
38345
+ const $2 = v._2._1._1._2;
38634
38346
  const vs$p = foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2);
38635
38347
  if ((() => {
38636
38348
  const go = (go$a0$copy) => (go$a1$copy) => {
@@ -38651,46 +38363,23 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38651
38363
  }
38652
38364
  return go$r;
38653
38365
  };
38654
- return $1._1.arity > go(0)(vs$p);
38366
+ return $2._1.arity > go(0)(vs$p);
38655
38367
  })()) {
38656
- return $$new(Val)($$$Map("Two", Leaf2, v._1, void 0, Leaf2))($BaseVal(
38657
- "Fun",
38658
- $Fun("Foreign", $Tuple(v._2._1._1._1, $1), vs$p)
38659
- ));
38368
+ return Functor0.map((f) => f($BaseVal("Fun", $Fun("Foreign", $Tuple($1, $2), vs$p))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38369
+ "Two",
38370
+ Leaf2,
38371
+ v._1,
38372
+ void 0,
38373
+ Leaf2
38374
+ ))));
38660
38375
  }
38661
- return $1._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
38376
+ return $2._1["op'"](dictMonadWithGraphAlloc)(MonadError1)(vs$p);
38662
38377
  }
38663
38378
  if (v._2._1.tag === "PartialConstr") {
38664
- const $1 = v._1;
38665
- const n = defined(arity(monadThrowExceptT(monadIdentity))(v._2._1._1));
38666
- const v$p = (() => {
38667
- const go = (go$a0$copy) => (go$a1$copy) => {
38668
- let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38669
- while (go$c) {
38670
- const b = go$a0, v$1 = go$a1;
38671
- if (v$1.tag === "Nil") {
38672
- go$c = false;
38673
- go$r = b;
38674
- continue;
38675
- }
38676
- if (v$1.tag === "Cons") {
38677
- go$a0 = b + 1 | 0;
38678
- go$a1 = v$1._2;
38679
- continue;
38680
- }
38681
- fail();
38682
- }
38683
- return go$r;
38684
- };
38685
- return go(0)(v._2._1._2) < (n - 1 | 0);
38686
- })() ? $BaseVal(
38687
- "Fun",
38688
- $Fun(
38689
- "PartialConstr",
38690
- v._2._1._1,
38691
- foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2)
38692
- )
38693
- ) : $BaseVal("Constr", v._2._1._1, foldableList.foldr(Cons)($List("Cons", v1, Nil))(v._2._1._2));
38379
+ const $1 = v._2._1._1;
38380
+ const $2 = v._2._1._2;
38381
+ const $3 = v._1;
38382
+ const n = defined(arity(monadThrowExceptT(monadIdentity))($1));
38694
38383
  return Bind1.bind(check(MonadThrow0)((() => {
38695
38384
  const go = (go$a0$copy) => (go$a1$copy) => {
38696
38385
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
@@ -38710,14 +38399,50 @@ var apply2 = (dictMonadWithGraphAlloc) => {
38710
38399
  }
38711
38400
  return go$r;
38712
38401
  };
38713
- return go(0)(v._2._1._2) < n;
38714
- })())("Too many arguments to " + showCtr(v._2._1._1)))(() => $$new(Val)($$$Map(
38715
- "Two",
38716
- Leaf2,
38717
- $1,
38718
- void 0,
38719
- Leaf2
38720
- ))(v$p));
38402
+ return go(0)($2) < n;
38403
+ })())("Too many arguments to " + showCtr($1)))(() => {
38404
+ if ((() => {
38405
+ const go = (go$a0$copy) => (go$a1$copy) => {
38406
+ let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
38407
+ while (go$c) {
38408
+ const b = go$a0, v$1 = go$a1;
38409
+ if (v$1.tag === "Nil") {
38410
+ go$c = false;
38411
+ go$r = b;
38412
+ continue;
38413
+ }
38414
+ if (v$1.tag === "Cons") {
38415
+ go$a0 = b + 1 | 0;
38416
+ go$a1 = v$1._2;
38417
+ continue;
38418
+ }
38419
+ fail();
38420
+ }
38421
+ return go$r;
38422
+ };
38423
+ return go(0)($2) < (n - 1 | 0);
38424
+ })()) {
38425
+ const $42 = $BaseVal(
38426
+ "Fun",
38427
+ $Fun("PartialConstr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2))
38428
+ );
38429
+ return Functor0.map((f) => f($42))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38430
+ "Two",
38431
+ Leaf2,
38432
+ $3,
38433
+ void 0,
38434
+ Leaf2
38435
+ ))));
38436
+ }
38437
+ const $4 = $BaseVal("Constr", $1, foldableList.foldr(Cons)($List("Cons", v1, Nil))($2));
38438
+ return Functor0.map((f) => f($4))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
38439
+ "Two",
38440
+ Leaf2,
38441
+ $3,
38442
+ void 0,
38443
+ Leaf2
38444
+ ))));
38445
+ });
38721
38446
  }
38722
38447
  }
38723
38448
  return $0(v1);
@@ -38783,13 +38508,13 @@ var graphEval = (dictMonadError) => {
38783
38508
  const $1 = v["\u03B3"];
38784
38509
  const $2 = spyFunWhen(false)("fwdSlice")((x2) => $Tuple(showVertices(x2._1), showEdgeList(toEdgeList(graphGraphImpl)(x2._2))))(showGraph(graphGraphImpl))(fwdSlice2);
38785
38510
  const $3 = spyFunWhen(false)("bwdSlice")((x2) => $Tuple(showVertices(x2._1), showEdgeList(toEdgeList(graphGraphImpl)(x2._2))))(showGraph(graphGraphImpl))(bwdSlice2);
38786
- return Monad0.Bind1().bind(runAllocT(Monad0)(bindStateT2.bind(alloc(e))((e\u03B1) => bindStateT2.bind(runWithGraphT_spy2(eval1($1)(e\u03B1)(Leaf2))(verticesEnvExprVertex.vertices($EnvExpr(
38511
+ return Monad0.Bind1().bind(runAllocT(Monad0)(bindStateT2.bind(alloc(e))((e\u03B1) => bindStateT2.bind(runWithGraphT_spy2(eval1($1)(e\u03B1)(Leaf2))(foldableEnvExpr.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2)($EnvExpr(
38787
38512
  $1,
38788
38513
  e\u03B1
38789
38514
  ))))((v1) => {
38790
38515
  const $4 = v1._1;
38791
38516
  const $5 = v1._2;
38792
- return bindStateT2.bind(check2(difference2(ordDVertex)(verticesValVertex.vertices($5))(verticesGraphImpl.vertices($4)).tag === "Leaf")("outputs in graph"))(() => applicativeStateT(Monad0).pure($Tuple(
38517
+ return bindStateT2.bind(check2(difference2(ordVertex)(foldableBaseVal.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(insert3(ordVertex)($5._1)()(Leaf2))($5._2))($4._1.vertices).tag === "Leaf")("outputs in graph"))(() => applicativeStateT(Monad0).pure($Tuple(
38793
38518
  $4,
38794
38519
  $Tuple($EnvExpr($1, e\u03B1), $5)
38795
38520
  )));
@@ -38805,8 +38530,8 @@ var graphEval = (dictMonadError) => {
38805
38530
 
38806
38531
  // output-es/GaloisConnection/index.js
38807
38532
  var identity29 = (x2) => x2;
38808
- var semigroupoidGaloisConnect = { compose: (v) => (v1) => ({ fwd: (x2) => v.fwd(v1.fwd(x2)), bwd: (x2) => v1.bwd(v.bwd(x2)), connection: void 0 }) };
38809
- var categoryGaloisConnection = { identity: { fwd: identity29, bwd: identity29, connection: void 0 }, Semigroupoid0: () => semigroupoidGaloisConnect };
38533
+ var semigroupoidGaloisConnect = { compose: (v) => (v1) => ({ fwd: (x2) => v.fwd(v1.fwd(x2)), bwd: (x2) => v1.bwd(v.bwd(x2)) }) };
38534
+ var categoryGaloisConnection = { identity: { fwd: identity29, bwd: identity29 }, Semigroupoid0: () => semigroupoidGaloisConnect };
38810
38535
 
38811
38536
  // output-es/Parsing.String/index.js
38812
38537
  var updatePosSingle = (v) => (cp) => (after) => {
@@ -38948,13 +38673,13 @@ var hexDigitToInt = (c) => {
38948
38673
  };
38949
38674
 
38950
38675
  // output-es/Parsing.String.Basic/index.js
38951
- var show13 = /* @__PURE__ */ showArrayImpl(showCharImpl);
38676
+ var show12 = /* @__PURE__ */ showArrayImpl(showCharImpl);
38952
38677
  var satisfyCP = (p) => satisfy((x2) => p(toCharCode(x2)));
38953
38678
  var space = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isSpace))("space");
38954
38679
  var upper2 = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isUpper))("uppercase letter");
38955
- var oneOf = (ss) => withLazyErrorMessage(satisfy((a) => elem(eqChar)(a)(ss)))((v) => "one of " + show13(ss));
38680
+ var oneOf = (ss) => withLazyErrorMessage(satisfy((a) => elem(eqChar)(a)(ss)))((v) => "one of " + show12(ss));
38956
38681
  var octDigit = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isOctDigit))("oct digit");
38957
- var noneOf = (ss) => withLazyErrorMessage(satisfy((a) => notElem(eqChar)(a)(ss)))((v) => "none of " + show13(ss));
38682
+ var noneOf = (ss) => withLazyErrorMessage(satisfy((a) => notElem(eqChar)(a)(ss)))((v) => "none of " + show12(ss));
38958
38683
  var letter = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isAlpha))("letter");
38959
38684
  var hexDigit = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isHexDigit))("hex digit");
38960
38685
  var digit = /* @__PURE__ */ withErrorMessage(/* @__PURE__ */ satisfyCP(isDecDigit))("digit");
@@ -40543,7 +40268,7 @@ var sepBy_try = (p) => (sep) => {
40543
40268
  };
40544
40269
 
40545
40270
  // output-es/Parse/index.js
40546
- var fromFoldable20 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
40271
+ var fromFoldable21 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
40547
40272
  var fromFoldable111 = /* @__PURE__ */ (() => fromFoldableImpl(foldableNonEmptyList.foldr))();
40548
40273
  var onlyIf = (b) => (a) => {
40549
40274
  const $0 = b ? (state1, v, v1, v2, done) => done(state1, void 0) : fail2("No alternative");
@@ -40552,7 +40277,7 @@ var onlyIf = (b) => (a) => {
40552
40277
  var choose2 = /* @__PURE__ */ choose(altParserT);
40553
40278
  var fanin3 = /* @__PURE__ */ fanin(categoryFn)(choiceFn);
40554
40279
  var identity31 = (x2) => x2;
40555
- var operators = (binaryOp) => fromFoldable20(listMap(arrayMap((v) => $Operator(
40280
+ var operators = (binaryOp) => fromFoldable21(listMap(arrayMap((v) => $Operator(
40556
40281
  "Infix",
40557
40282
  (() => {
40558
40283
  const $0 = binaryOp(v.op);
@@ -42053,7 +41778,7 @@ var $ForeignTrace$p = (_1, _2) => ({ tag: "ForeignTrace'", _1, _2 });
42053
41778
  var $Match = (tag, _1, _2) => ({ tag, _1, _2 });
42054
41779
  var $Trace = (tag, _1, _2, _3, _4) => ({ tag, _1, _2, _3, _4 });
42055
41780
  var $VarDef3 = (_1, _2) => ({ tag: "VarDef", _1, _2 });
42056
- var unions2 = /* @__PURE__ */ (() => {
41781
+ var unions = /* @__PURE__ */ (() => {
42057
41782
  const go = (go$a0$copy) => (go$a1$copy) => {
42058
41783
  let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
42059
41784
  while (go$c) {
@@ -42084,7 +41809,7 @@ var bVMatch = {
42084
41809
  return Leaf2;
42085
41810
  }
42086
41811
  if (v.tag === "MatchConstr") {
42087
- return unions2(listMap(bVMatch.bv)(v._2));
41812
+ return unions(listMap(bVMatch.bv)(v._2));
42088
41813
  }
42089
41814
  if (v.tag === "MatchDict") {
42090
41815
  return fold((z) => (v$1) => union3(ordString)(z))(Leaf2)(_fmapObject(v._1, bVMatch.bv));
@@ -42095,19 +41820,19 @@ var bVMatch = {
42095
41820
 
42096
41821
  // output-es/Eval/index.js
42097
41822
  var disjointUnion3 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
42098
- var fromFoldable21 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
41823
+ var fromFoldable25 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
42099
41824
  var show23 = /* @__PURE__ */ (() => showSet(showString).show)();
42100
41825
  var toUnfoldable15 = /* @__PURE__ */ toUnfoldable4(unfoldableList);
42101
41826
  var fromFoldable112 = /* @__PURE__ */ fromFoldable(foldableList);
42102
- var union7 = /* @__PURE__ */ (() => setSet(ordString).union)();
41827
+ var union6 = /* @__PURE__ */ (() => setSet(ordString).union)();
42103
41828
  var fv2 = /* @__PURE__ */ (() => fVDict(fVElim).fv)();
42104
41829
  var unzip5 = /* @__PURE__ */ unzip3(functorList);
42105
- var fromFoldable25 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
41830
+ var fromFoldable26 = /* @__PURE__ */ (() => fromFoldableImpl(foldableList.foldr))();
42106
41831
  var greaterThanOrEq1 = /* @__PURE__ */ (() => {
42107
41832
  const $0 = ordTuple(ordInt)(ordInt);
42108
41833
  return (a1) => (a2) => $0.compare(a1)(a2) !== "LT";
42109
41834
  })();
42110
- var show32 = (v) => "(Tuple " + showIntImpl(v._1) + " " + showIntImpl(v._2) + ")";
41835
+ var show33 = (v) => "(Tuple " + showIntImpl(v._1) + " " + showIntImpl(v._2) + ")";
42111
41836
  var erase1 = /* @__PURE__ */ (() => functorElim.map((v) => {
42112
41837
  }))();
42113
41838
  var matchMany2 = (dictMonadError) => {
@@ -42219,7 +41944,7 @@ var match4 = (dictMonadError) => {
42219
41944
  const $3 = v._2._1;
42220
41945
  const $4 = v._1;
42221
41946
  const $5 = v1._2;
42222
- return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable21(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show23(mapObjectString.keys($3)) + ", expected " + show23($2)))(() => {
41947
+ return Bind1.bind(check(MonadThrow0)(difference2(ordString)($2)(fromFoldable25(mapObjectString.keys($3))).tag === "Leaf")("Pattern mismatch: found " + show23(mapObjectString.keys($3)) + ", expected " + show23($2)))(() => {
42223
41948
  const xs$p = toUnfoldable15($2);
42224
41949
  return Bind1.bind(matchMany2(dictMonadError)(dictAnn)(listMap((k) => $$get2(showString)(mapObjectString)(k)($3)._2)(xs$p))($5))((v2) => $0.pure($Tuple(
42225
41950
  v2._1,
@@ -42247,7 +41972,7 @@ var closeDefs2 = (\u03B3) => (\u03C1) => (\u03B1) => _fmapObject(
42247
41972
  $Fun(
42248
41973
  "Closure",
42249
41974
  (() => {
42250
- const $0 = union7(fv2(\u03C1$p))(fVElim.fv(\u03C3));
41975
+ const $0 = union6(fv2(\u03C1$p))(fVElim.fv(\u03C3));
42251
41976
  return filterWithKey((x2) => {
42252
41977
  const $1 = setSet(ordString).member(x2)($0);
42253
41978
  return (v) => $1;
@@ -42360,17 +42085,17 @@ var $$eval2 = (dictMonadError) => {
42360
42085
  const $8 = v4._2._1;
42361
42086
  const $9 = v4._1._2;
42362
42087
  const $10 = v4._2._2;
42363
- return Bind1.bind(check(MonadThrow0)(greaterThanOrEq1($Tuple($7, $8))($Tuple(1, 1)))("array must be at least (" + show32($Tuple(
42088
+ return Bind1.bind(check(MonadThrow0)(greaterThanOrEq1($Tuple($7, $8))($Tuple(1, 1)))("array must be at least (" + show33($Tuple(
42364
42089
  1,
42365
42090
  1
42366
- )) + "); got (" + show32($Tuple($7, $8)) + ")"))(() => Bind1.bind(Functor0.map((() => {
42091
+ )) + "); got (" + show33($Tuple($7, $8)) + ")"))(() => Bind1.bind(Functor0.map((() => {
42367
42092
  const $11 = listMap((x2) => {
42368
42093
  const $112 = unzip5(x2);
42369
- return $Tuple(fromFoldable25($112._1), fromFoldable25($112._2));
42094
+ return $Tuple(fromFoldable26($112._1), fromFoldable26($112._2));
42370
42095
  });
42371
42096
  return (x2) => {
42372
42097
  const $12 = unzip5($11(x2));
42373
- return $Tuple(fromFoldable25($12._1), fromFoldable25($12._2));
42098
+ return $Tuple(fromFoldable26($12._1), fromFoldable26($12._2));
42374
42099
  };
42375
42100
  })())(sequence1(bindList.bind(range4(1)($7))((i) => $List(
42376
42101
  "Cons",
@@ -42522,7 +42247,7 @@ var apply3 = (dictMonadError) => {
42522
42247
  unionWith((v$1) => identity18)(unionWith((v$1) => identity18)($3)(\u03B32))(v2._1),
42523
42248
  v2._2._1.tag === "ContExpr" ? v2._2._1._1 : throwException(error("Expression expected"))()
42524
42249
  ))(dictAnn.BoundedLattice1().BoundedMeetSemilattice1().MeetSemilattice0().meet($2)(v2._2._2._1)))((v3) => $0.pure($Tuple(
42525
- $AppTrace("AppClosure", fromFoldable21(mapObjectString.keys($4)), $5, v3._1),
42250
+ $AppTrace("AppClosure", fromFoldable25(mapObjectString.keys($4)), $5, v3._1),
42526
42251
  v3._2
42527
42252
  )));
42528
42253
  });
@@ -42667,7 +42392,7 @@ var apply22 = (dictMonadError) => {
42667
42392
  // output-es/EvalBwd/index.js
42668
42393
  var disjointUnion_inv2 = /* @__PURE__ */ disjointUnion_inv(ordString)(mapEnvStringVal);
42669
42394
  var toUnfoldable16 = /* @__PURE__ */ toAscUnfoldable(unfoldableList);
42670
- var fromFoldable26 = /* @__PURE__ */ fromFoldable(foldableList);
42395
+ var fromFoldable27 = /* @__PURE__ */ fromFoldable(foldableList);
42671
42396
  var fromFoldable113 = /* @__PURE__ */ (() => foldableSet.foldl((m) => (a) => insert3(ordString)(a)()(m))(Leaf2))();
42672
42397
  var botOfUnit$x215Raw$x2152 = (dictBoundedJoinSemilattice) => ({
42673
42398
  botOf: (() => {
@@ -42679,7 +42404,7 @@ var botOfUnit$x215Raw$x2152 = (dictBoundedJoinSemilattice) => ({
42679
42404
  return (x2) => $Tuple($0, $1(x2._2));
42680
42405
  })()
42681
42406
  });
42682
- var union8 = /* @__PURE__ */ (() => setSet(ordString).union)();
42407
+ var union7 = /* @__PURE__ */ (() => setSet(ordString).union)();
42683
42408
  var disjointUnion4 = /* @__PURE__ */ disjointUnion(mapEnvStringVal);
42684
42409
  var foldl1 = /* @__PURE__ */ (() => foldable1NonEmpty(foldableList).foldl1)();
42685
42410
  var matchManyBwd = (dictAnn) => (v) => (v1) => (v2) => (v3) => {
@@ -42743,7 +42468,7 @@ var matchBwd = (dictAnn) => {
42743
42468
  const v4 = unzip(toUnfoldable16(v3._1));
42744
42469
  const v5 = matchManyBwd(dictAnn)(v)(v1)(v2)(reverse2(v4._2));
42745
42470
  return $Tuple(
42746
- $Val(v2, $BaseVal("Dictionary", fromFoldable26(zipWith2(Tuple)(v4._1)(listMap((v6) => $Tuple(bot1, v6))(v5._1))))),
42471
+ $Val(v2, $BaseVal("Dictionary", fromFoldable27(zipWith2(Tuple)(v4._1)(listMap((v6) => $Tuple(bot1, v6))(v5._1))))),
42747
42472
  $Elim("ElimDict", fromFoldable113(mapObjectString.keys(v3._1)), v5._2)
42748
42473
  );
42749
42474
  }
@@ -42995,7 +42720,7 @@ var evalBwd$p = (dictAnn) => {
42995
42720
  })((() => {
42996
42721
  const $13 = (v32) => {
42997
42722
  const v42 = evalBwd$p(dictAnn)(definitely("index within bounds")(index(definitely("index within bounds")(index($9)(v32._1 - 1 | 0)))(v32._2 - 1 | 0)))(definitely("index within bounds")(index(definitely("index within bounds")(index($8)(v32._1 - 1 | 0)))(v32._2 - 1 | 0)));
42998
- const v5 = append_inv(ordString)(mapEnvStringVal)(union8($$$Map(
42723
+ const v5 = append_inv(ordString)(mapEnvStringVal)(union7($$$Map(
42999
42724
  "Two",
43000
42725
  Leaf2,
43001
42726
  $10,
@@ -43145,7 +42870,7 @@ var binary2 = /* @__PURE__ */ binary(boundedJoinSemilatticeUni);
43145
42870
  var binaryZero2 = /* @__PURE__ */ binaryZero(boundedJoinSemilatticeUni);
43146
42871
  var binaryZero1 = /* @__PURE__ */ (() => binaryZero2({ isZero: fanin2(isZeroInt.isZero)(isZeroNumber.isZero) }))();
43147
42872
  var binaryZero22 = /* @__PURE__ */ binaryZero2(isZeroInt);
43148
- var pow3 = /* @__PURE__ */ union6(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
42873
+ var pow3 = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => pow(toNumber(x2))(toNumber(y2)))(pow);
43149
42874
  var numToStr = (v2) => {
43150
42875
  if (v2.tag === "Left") {
43151
42876
  return showIntImpl(v2._1);
@@ -43155,25 +42880,27 @@ var numToStr = (v2) => {
43155
42880
  }
43156
42881
  fail();
43157
42882
  };
43158
- var notEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((x2) => (y2) => x2 !== y2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((x2) => (y2) => x2 !== y2)((x2) => (y2) => x2 !== y2));
42883
+ var notEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((x2) => (y2) => x2 !== y2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((x2) => (y2) => x2 !== y2)((x2) => (y2) => x2 !== y2));
43159
42884
  var matrixUpdate = /* @__PURE__ */ $Tuple(
43160
42885
  "matrixUpdate",
43161
42886
  /* @__PURE__ */ $ForeignOp$p({
43162
42887
  arity: 3,
43163
- "op'": (dictMonadWithGraphAlloc) => {
43164
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43165
- return (dictMonadError) => {
43166
- const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43167
- return (v) => {
43168
- if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._2.tag === "Constr" && v._2._1._2._2.tag === "Cons" && v._2._1._2._2._1._2.tag === "Int" && v._2._1._2._2._2.tag === "Cons" && v._2._1._2._2._2._1._2.tag === "Int" && v._2._1._2._2._2._2.tag === "Nil" && v._2._2.tag === "Cons" && v._2._2._2.tag === "Nil" && v._2._1._2._1 === "Pair") {
43169
- const $0 = v._2._2._1;
43170
- return $$new(Val)($$$Map("Two", Leaf2, v._1._1, void 0, Leaf2))($BaseVal(
43171
- "Matrix",
43172
- matrixPut(v._2._1._2._2._1._2._1)(v._2._1._2._2._2._1._2._1)((v$1) => $0)(v._1._2._1)
43173
- ));
43174
- }
43175
- return $$throw2("Matrix, pair of integers and value expected");
43176
- };
42888
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
42889
+ const MonadThrow0 = dictMonadError.MonadThrow0();
42890
+ const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
42891
+ return (v) => {
42892
+ if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Cons" && v._2._1._2.tag === "Constr" && v._2._1._2._2.tag === "Cons" && v._2._1._2._2._1._2.tag === "Int" && v._2._1._2._2._2.tag === "Cons" && v._2._1._2._2._2._1._2.tag === "Int" && v._2._1._2._2._2._2.tag === "Nil" && v._2._2.tag === "Cons" && v._2._2._2.tag === "Nil" && v._2._1._2._1 === "Pair") {
42893
+ const $0 = v._2._2._1;
42894
+ const $1 = $BaseVal("Matrix", matrixPut(v._2._1._2._2._1._2._1)(v._2._1._2._2._2._1._2._1)((v$1) => $0)(v._1._2._1));
42895
+ return Functor0.map((f) => f($1))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
42896
+ "Two",
42897
+ Leaf2,
42898
+ v._1._1,
42899
+ void 0,
42900
+ Leaf2
42901
+ ))));
42902
+ }
42903
+ return MonadThrow0.throwError(error("Matrix, pair of integers and value expected"));
43177
42904
  };
43178
42905
  },
43179
42906
  op: (dictAnn) => (dictMonadError) => {
@@ -43308,10 +43035,10 @@ var log3 = (v2) => {
43308
43035
  }
43309
43036
  fail();
43310
43037
  };
43311
- var lessThanEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 <= a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 <= a2)((a1) => (a2) => a1 <= a2));
43312
- var lessThan = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 < a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 < a2)((a1) => (a2) => a1 < a2));
43313
- var greaterThanEquals = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 >= a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 >= a2)((a1) => (a2) => a1 >= a2));
43314
- var greaterThan = /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 > a2)(/* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 > a2)((a1) => (a2) => a1 > a2));
43038
+ var lessThanEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 <= a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 <= a2)((a1) => (a2) => a1 <= a2));
43039
+ var lessThan = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 < a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 < a2)((a1) => (a2) => a1 < a2));
43040
+ var greaterThanEquals = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 >= a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 >= a2)((a1) => (a2) => a1 >= a2));
43041
+ var greaterThan = /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)((a1) => (a2) => a1 > a2)(/* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asNumberString)(asNumberString)((a1) => (a2) => a1 > a2)((a1) => (a2) => a1 > a2));
43315
43042
  var extern = (dictBoundedJoinSemilattice) => {
43316
43043
  const bot2 = dictBoundedJoinSemilattice.bot;
43317
43044
  return (v) => $Tuple(v._1, $Val(bot2, $BaseVal("Fun", $Fun("Foreign", $Tuple(v._1, v._2), Nil))));
@@ -43342,34 +43069,41 @@ var error_ = /* @__PURE__ */ $Tuple(
43342
43069
  op_bwd: (dictAnn) => (v) => throwException(error("unimplemented"))()
43343
43070
  })
43344
43071
  );
43345
- var divide = /* @__PURE__ */ union6(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => toNumber(x2) / toNumber(y2))(numDiv);
43072
+ var divide = /* @__PURE__ */ union5(asNumberIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)((x2) => (y2) => toNumber(x2) / toNumber(y2))(numDiv);
43346
43073
  var dims = /* @__PURE__ */ $Tuple(
43347
43074
  "dims",
43348
43075
  /* @__PURE__ */ $ForeignOp$p({
43349
43076
  arity: 1,
43350
- "op'": (dictMonadWithGraphAlloc) => {
43351
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43352
- return (dictMonadError) => {
43353
- const MonadThrow0 = dictMonadError.MonadThrow0();
43354
- const $0 = MonadThrow0.Monad0().Bind1();
43355
- return (v) => {
43356
- if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
43357
- const $1 = v._1._2._1._2._2._1;
43358
- const $2 = v._1._1;
43359
- const $3 = v._1._2._1._2._2._2;
43360
- return $0.bind($$new(Val)($$$Map("Two", Leaf2, v._1._2._1._2._1._2, void 0, Leaf2))($BaseVal(
43361
- "Int",
43362
- v._1._2._1._2._1._1
43363
- )))((v1) => $0.bind($$new(Val)($$$Map("Two", Leaf2, $3, void 0, Leaf2))($BaseVal("Int", $1)))((v2) => $$new(Val)($$$Map(
43364
- "Two",
43365
- Leaf2,
43366
- $2,
43367
- void 0,
43368
- Leaf2
43369
- ))($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil))))));
43370
- }
43371
- return MonadThrow0.throwError(error("Matrix expected"));
43372
- };
43077
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43078
+ const MonadThrow0 = dictMonadError.MonadThrow0();
43079
+ const Bind1 = MonadThrow0.Monad0().Bind1();
43080
+ const Functor0 = Bind1.Apply0().Functor0();
43081
+ return (v) => {
43082
+ if (v.tag === "Cons" && v._1._2.tag === "Matrix" && v._2.tag === "Nil") {
43083
+ const $0 = v._1._2._1._2._2._1;
43084
+ const $1 = v._1._1;
43085
+ const $2 = v._1._2._1._2._2._2;
43086
+ return Bind1.bind(Functor0.map((f) => f($BaseVal("Int", v._1._2._1._2._1._1)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43087
+ "Two",
43088
+ Leaf2,
43089
+ v._1._2._1._2._1._2,
43090
+ void 0,
43091
+ Leaf2
43092
+ )))))((v1) => Bind1.bind(Functor0.map((f) => f($BaseVal("Int", $0)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43093
+ "Two",
43094
+ Leaf2,
43095
+ $2,
43096
+ void 0,
43097
+ Leaf2
43098
+ )))))((v2) => Functor0.map((f) => f($BaseVal("Constr", "Pair", $List("Cons", v1, $List("Cons", v2, Nil)))))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43099
+ "Two",
43100
+ Leaf2,
43101
+ $1,
43102
+ void 0,
43103
+ Leaf2
43104
+ ))))));
43105
+ }
43106
+ return MonadThrow0.throwError(error("Matrix expected"));
43373
43107
  };
43374
43108
  },
43375
43109
  op: (dictAnn) => (dictMonadError) => {
@@ -43428,23 +43162,26 @@ var dict_map = /* @__PURE__ */ $Tuple(
43428
43162
  arity: 2,
43429
43163
  "op'": (dictMonadWithGraphAlloc) => {
43430
43164
  const apply4 = apply2(dictMonadWithGraphAlloc);
43431
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43432
43165
  return (dictMonadError) => {
43433
43166
  const MonadThrow0 = dictMonadError.MonadThrow0();
43434
43167
  const Monad0 = MonadThrow0.Monad0();
43435
43168
  const Bind1 = Monad0.Bind1();
43436
43169
  const traverse1 = traversableDict.traverse(Monad0.Applicative0());
43170
+ const Functor0 = Bind1.Apply0().Functor0();
43437
43171
  return (v) => {
43438
43172
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43439
43173
  const $0 = v._1;
43440
43174
  const $1 = v._2._1._1;
43441
43175
  return Bind1.bind(traverse1((v2) => {
43442
43176
  const $2 = v2._1;
43443
- return Bind1.Apply0().Functor0().map((v3) => $Tuple($2, v3))(apply4($0)(v2._2));
43444
- })(v._2._1._2._1))((d$p) => $$new(Val)($$$Map("Two", Leaf2, $1, void 0, Leaf2))($BaseVal(
43445
- "Dictionary",
43446
- d$p
43447
- )));
43177
+ return Functor0.map((v3) => $Tuple($2, v3))(apply4($0)(v2._2));
43178
+ })(v._2._1._2._1))((d$p) => Functor0.map((f) => f($BaseVal("Dictionary", d$p)))(Functor0.map(Val)(dictMonadWithGraphAlloc.new($$$Map(
43179
+ "Two",
43180
+ Leaf2,
43181
+ $1,
43182
+ void 0,
43183
+ Leaf2
43184
+ )))));
43448
43185
  }
43449
43186
  return MonadThrow0.throwError(error("Function and dictionary expected"));
43450
43187
  };
@@ -43503,36 +43240,33 @@ var dict_intersectionWith = /* @__PURE__ */ $Tuple(
43503
43240
  arity: 3,
43504
43241
  "op'": (dictMonadWithGraphAlloc) => {
43505
43242
  const apply4 = apply2(dictMonadWithGraphAlloc);
43506
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43507
43243
  return (dictMonadError) => {
43508
43244
  const MonadThrow0 = dictMonadError.MonadThrow0();
43509
43245
  const Monad0 = MonadThrow0.Monad0();
43510
43246
  const Bind1 = Monad0.Bind1();
43511
- const $0 = Bind1.Apply0().Functor0();
43512
- const Applicative0 = Monad0.Applicative0();
43247
+ const Apply0 = Bind1.Apply0();
43248
+ const $0 = Apply0.Functor0();
43249
+ const sequence1 = traversableDict.sequence(Monad0.Applicative0());
43513
43250
  return (v) => {
43514
43251
  if (v.tag === "Cons" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Cons" && v._2._2._1._2.tag === "Dictionary" && v._2._2._2.tag === "Nil") {
43515
43252
  const $1 = v._1;
43516
- const $2 = v._2._1._1;
43517
- const $3 = v._2._2._1._1;
43518
- return Bind1.bind($0.map(Dictionary3)($0.map(DictRep)(traversableDict.traverse(Applicative0)(identity19)(intersectionWith_Object((v2) => (v3) => {
43519
- const $4 = v3._2;
43520
- const $5 = v2._1;
43521
- const $6 = v3._1;
43522
- return Bind1.bind(Bind1.bind(apply4($1)(v2._2))((a) => apply4(a)($4)))((v4) => Bind1.bind($$new(Val)(insert3(ordVertex)($6)()($$$Map(
43523
- "Two",
43524
- Leaf2,
43525
- $5,
43526
- void 0,
43527
- Leaf2
43528
- )))(v4._2))((v5) => $0.map(Tuple(v5._1))(Applicative0.pure(v4))));
43529
- })(v._2._1._2._1)(v._2._2._1._2._1)))))((v$p) => $$new(Val)(insert3(ordVertex)($3)()($$$Map(
43253
+ return Apply0.apply($0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._2._1._1)()($$$Map(
43530
43254
  "Two",
43531
43255
  Leaf2,
43532
- $2,
43256
+ v._2._1._1,
43533
43257
  void 0,
43534
43258
  Leaf2
43535
- )))(v$p));
43259
+ )))))($0.map(Dictionary3)($0.map(DictRep)(sequence1(intersectionWith_Object((v2) => (v3) => {
43260
+ const $2 = v2._2;
43261
+ const $3 = v3._2;
43262
+ return Bind1.bind(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v3._1)()($$$Map(
43263
+ "Two",
43264
+ Leaf2,
43265
+ v2._1,
43266
+ void 0,
43267
+ Leaf2
43268
+ ))))((\u03B2$p$p) => $0.map(Tuple(\u03B2$p$p))(Bind1.bind(apply4($1)($2))((a) => apply4(a)($3))));
43269
+ })(v._2._1._2._1)(v._2._2._1._2._1)))));
43536
43270
  }
43537
43271
  return MonadThrow0.throwError(error("Function and two dictionaries expected"));
43538
43272
  };
@@ -43760,22 +43494,21 @@ var dict_disjointUnion = /* @__PURE__ */ $Tuple(
43760
43494
  "dict_disjointUnion",
43761
43495
  /* @__PURE__ */ $ForeignOp$p({
43762
43496
  arity: 2,
43763
- "op'": (dictMonadWithGraphAlloc) => {
43764
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43765
- return (dictMonadError) => {
43766
- const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43767
- return (v) => {
43768
- if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43769
- return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
43770
- "Two",
43771
- Leaf2,
43772
- v._1._1,
43773
- void 0,
43774
- Leaf2
43775
- )))($BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1)));
43776
- }
43777
- return $$throw2("Dictionaries expected");
43778
- };
43497
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43498
+ const MonadThrow0 = dictMonadError.MonadThrow0();
43499
+ const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43500
+ return (v) => {
43501
+ if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43502
+ const $0 = $BaseVal("Dictionary", disjointUnion5(v._1._2._1)(v._2._1._2._1));
43503
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43504
+ "Two",
43505
+ Leaf2,
43506
+ v._1._1,
43507
+ void 0,
43508
+ Leaf2
43509
+ )))));
43510
+ }
43511
+ return MonadThrow0.throwError(error("Dictionaries expected"));
43779
43512
  };
43780
43513
  },
43781
43514
  op: (dictAnn) => (dictMonadError) => {
@@ -43809,22 +43542,21 @@ var dict_difference = /* @__PURE__ */ $Tuple(
43809
43542
  "dict_difference",
43810
43543
  /* @__PURE__ */ $ForeignOp$p({
43811
43544
  arity: 2,
43812
- "op'": (dictMonadWithGraphAlloc) => {
43813
- const $$new = dictMonadWithGraphAlloc.new(typeNameBaseVal);
43814
- return (dictMonadError) => {
43815
- const $$throw2 = $$throw(dictMonadError.MonadThrow0());
43816
- return (v) => {
43817
- if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43818
- return $$new(Val)(insert3(ordVertex)(v._2._1._1)()($$$Map(
43819
- "Two",
43820
- Leaf2,
43821
- v._1._1,
43822
- void 0,
43823
- Leaf2
43824
- )))($BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1)));
43825
- }
43826
- return $$throw2("Dictionaries expected.");
43827
- };
43545
+ "op'": (dictMonadWithGraphAlloc) => (dictMonadError) => {
43546
+ const MonadThrow0 = dictMonadError.MonadThrow0();
43547
+ const Functor0 = MonadThrow0.Monad0().Bind1().Apply0().Functor0();
43548
+ return (v) => {
43549
+ if (v.tag === "Cons" && v._1._2.tag === "Dictionary" && v._2.tag === "Cons" && v._2._1._2.tag === "Dictionary" && v._2._2.tag === "Nil") {
43550
+ const $0 = $BaseVal("Dictionary", mapFObjectString.difference(v._1._2._1)(v._2._1._2._1));
43551
+ return Functor0.map((f) => f($0))(Functor0.map(Val)(dictMonadWithGraphAlloc.new(insert3(ordVertex)(v._2._1._1)()($$$Map(
43552
+ "Two",
43553
+ Leaf2,
43554
+ v._1._1,
43555
+ void 0,
43556
+ Leaf2
43557
+ )))));
43558
+ }
43559
+ return MonadThrow0.throwError(error("Dictionaries expected."));
43828
43560
  };
43829
43561
  },
43830
43562
  op: (dictAnn) => (dictMonadError) => {
@@ -43897,18 +43629,18 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43897
43629
  i1: intOrNumber,
43898
43630
  i2: intOrNumber,
43899
43631
  o: intOrNumber,
43900
- fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intAdd)(numAdd)
43632
+ fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intAdd)(numAdd)
43901
43633
  }),
43902
43634
  /* @__PURE__ */ binary2("-")({
43903
43635
  i1: intOrNumber,
43904
43636
  i2: intOrNumber,
43905
43637
  o: intOrNumber,
43906
- fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
43638
+ fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intSub)(numSub)
43907
43639
  }),
43908
43640
  /* @__PURE__ */ binaryZero1("*")({
43909
43641
  i: intOrNumber,
43910
43642
  o: intOrNumber,
43911
- fwd: /* @__PURE__ */ union6(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
43643
+ fwd: /* @__PURE__ */ union5(asIntIntOrNumber)(asNumberIntOrNumber)(asIntNumber)(asIntNumber)(intMul)(numMul)
43912
43644
  }),
43913
43645
  /* @__PURE__ */ binaryZero1("**")({ i: intOrNumber, o: intOrNumber, fwd: pow3 }),
43914
43646
  /* @__PURE__ */ binaryZero1("/")({ i: intOrNumber, o: intOrNumber, fwd: divide }),
@@ -43916,7 +43648,7 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43916
43648
  i1: intOrNumberOrString,
43917
43649
  i2: intOrNumberOrString,
43918
43650
  o: $$boolean,
43919
- fwd: /* @__PURE__ */ union6(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
43651
+ fwd: /* @__PURE__ */ union5(asBooleanBoolean)(asBooleanBoolean)(asIntNumberOrString)(asIntNumberOrString)(eqIntImpl)(/* @__PURE__ */ unionStr(asBooleanBoolean)(asNumberString)(eqNumberImpl)(eqStringImpl))
43920
43652
  }),
43921
43653
  /* @__PURE__ */ binary2("/=")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: notEquals }),
43922
43654
  /* @__PURE__ */ binary2("<")({ i1: intOrNumberOrString, i2: intOrNumberOrString, o: $$boolean, fwd: lessThan }),
@@ -43939,32 +43671,7 @@ var primitives = /* @__PURE__ */ fromFoldable(foldableArray)([
43939
43671
  ]);
43940
43672
 
43941
43673
  // output-es/ProgCxt/index.js
43942
- var union9 = /* @__PURE__ */ (() => setSet(ordDVertex).union)();
43943
- var unions4 = /* @__PURE__ */ (() => {
43944
- const go = (go$a0$copy) => (go$a1$copy) => {
43945
- let go$a0 = go$a0$copy, go$a1 = go$a1$copy, go$c = true, go$r;
43946
- while (go$c) {
43947
- const b = go$a0, v = go$a1;
43948
- if (v.tag === "Nil") {
43949
- go$c = false;
43950
- go$r = b;
43951
- continue;
43952
- }
43953
- if (v.tag === "Cons") {
43954
- go$a0 = unionWith2(ordDVertex)($$const)(b)(v._1);
43955
- go$a1 = v._2;
43956
- continue;
43957
- }
43958
- fail();
43959
- }
43960
- return go$r;
43961
- };
43962
- return go(Leaf2);
43963
- })();
43964
43674
  var identity32 = (x2) => x2;
43965
- var verticesProgCxtVertex = {
43966
- vertices: (v) => union9(unions13(listMap(verticesValVertex.vertices)(mapObjectString.values(v.primitives))))(union9(unions4(listMap(verticesModuleVertex.vertices)(v.mods)))(unions4(listMap((x2) => verticesExprVertex.vertices(x2._2))(v.datasets))))
43967
- };
43968
43675
  var functorProgCxt = {
43969
43676
  map: (f) => (m) => ({
43970
43677
  primitives: _fmapObject(m.primitives, functorVal.map(f)),
@@ -44101,7 +43808,7 @@ var initialConfig = (dictMonadError) => {
44101
43808
  Bind1: () => bindStateT(Monad0)
44102
43809
  })(graphGraphImpl);
44103
43810
  const eval_progCxt2 = eval_progCxt(monadWithGraphAllocWithGr(dictMonadError));
44104
- return (dictFV) => (e) => (progCxt) => Bind1.bind(Applicative0.pure())(() => Bind1.bind(runAllocT(Monad0)($1.bind(alloc(progCxt))((progCxt$p) => $1.bind(runWithGraphT_spy2(eval_progCxt2(progCxt$p))(verticesProgCxtVertex.vertices(progCxt$p)))((v) => applicativeStateT(Monad0).pure($Tuple(
43811
+ return (dictFV) => (e) => (progCxt) => Bind1.bind(Applicative0.pure())(() => Bind1.bind(runAllocT(Monad0)($1.bind(alloc(progCxt))((progCxt$p) => $1.bind(runWithGraphT_spy2(eval_progCxt2(progCxt$p))(foldableProgCxt.foldl((m) => (a) => insert3(ordVertex)(a)()(m))(Leaf2)(progCxt$p)))((v) => applicativeStateT(Monad0).pure($Tuple(
44105
43812
  progCxt$p,
44106
43813
  (() => {
44107
43814
  const $2 = dictFV.fv(e);
@@ -44254,14 +43961,13 @@ var getTransient = (v) => {
44254
43961
  }
44255
43962
  fail();
44256
43963
  };
44257
- var fromFoldable27 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordString)(a)()(m))(Leaf2);
43964
+ var fromFoldable28 = /* @__PURE__ */ foldlArray((m) => (a) => insert3(ordString)(a)()(m))(Leaf2);
44258
43965
  var graphGC2 = /* @__PURE__ */ graphGC(graphGraphImpl);
44259
43966
  var graphGC1 = /* @__PURE__ */ graphGC2(applyEnvExpr)(applyVal)(foldableEnvExpr)(foldableVal);
44260
43967
  var graphGC22 = /* @__PURE__ */ graphGC2(applyVal)(applyEnvExpr)(foldableVal)(foldableEnvExpr);
44261
43968
  var dual = (v) => ({
44262
43969
  fwd: (x2) => _fmapObject(v.bwd(functorEnvExpr.map(boolNot)(x2)), functorVal.map(boolNot)),
44263
- bwd: (x2) => functorEnvExpr.map(boolNot)(v.fwd(_fmapObject(x2, functorVal.map(boolNot)))),
44264
- connection: void 0
43970
+ bwd: (x2) => functorEnvExpr.map(boolNot)(v.fwd(_fmapObject(x2, functorVal.map(boolNot))))
44265
43971
  });
44266
43972
  var neg12 = { neg: (x2) => functorSelState.map(boolNot)(x2) };
44267
43973
  var joinSemilatticeSelState = {
@@ -44295,8 +44001,7 @@ var meet2 = /* @__PURE__ */ (() => {
44295
44001
  $Val(functorSelState.map(boolNot)($1), functorBaseVal.map(neg12.neg)($2)),
44296
44002
  $Val(functorSelState.map(boolNot)($1), functorBaseVal.map(neg12.neg)($2))
44297
44003
  );
44298
- },
44299
- connection: void 0
44004
+ }
44300
44005
  };
44301
44006
  })();
44302
44007
  var meet1 = {
@@ -44310,8 +44015,7 @@ var meet1 = {
44310
44015
  bwd: (x2) => {
44311
44016
  const $0 = _fmapObject(x2, functorVal.map(neg12.neg));
44312
44017
  return $Tuple(_fmapObject($0, functorVal.map(neg12.neg)), _fmapObject($0, functorVal.map(neg12.neg)));
44313
- },
44314
- connection: void 0
44018
+ }
44315
44019
  };
44316
44020
  var sequence_3 = /* @__PURE__ */ traverse_(applicativeEffect)(foldableDict)(identity4);
44317
44021
  var unprojExpr = (dictBoundedMeetSemilattice) => (v) => {
@@ -44324,8 +44028,7 @@ var unprojExpr = (dictBoundedMeetSemilattice) => (v) => {
44324
44028
  return (v$1) => $1;
44325
44029
  })())($0)
44326
44030
  ),
44327
- bwd: (v1) => v1._1,
44328
- connection: void 0
44031
+ bwd: (v1) => v1._1
44329
44032
  };
44330
44033
  };
44331
44034
  var setOutputView = (\u03B4vw) => (fig) => ({
@@ -44423,8 +44126,7 @@ var lift = (dictApply) => {
44423
44126
  const $1 = dictApply1.Functor0();
44424
44127
  return (selState_f) => (selState_g) => (v) => ({
44425
44128
  bwd: (v1) => dictApply.apply(dictApply.apply(selState_f)(v.bwd($1.map(getPersistent)(v1))))(v.bwd($1.map(getTransient)(v1))),
44426
- fwd: (\u03B3) => dictApply1.apply(dictApply1.apply(selState_g)(v.fwd($0.map(getPersistent)(\u03B3))))(v.fwd($0.map(getTransient)(\u03B3))),
44427
- connection: void 0
44129
+ fwd: (\u03B3) => dictApply1.apply(dictApply1.apply(selState_g)(v.fwd($0.map(getPersistent)(\u03B3))))(v.fwd($0.map(getTransient)(\u03B3)))
44428
44130
  });
44429
44131
  };
44430
44132
  };
@@ -44448,11 +44150,11 @@ var loadFig = (v) => (dictMonadAff) => {
44448
44150
  })(v2["in\u03B1"]);
44449
44151
  const \u03B30 = _fmapObject(v2["in\u03B1"]._1, functorVal.map((v$1) => false));
44450
44152
  const v0 = $Val(false, functorBaseVal.map((v$1) => false)(v2["out\u03B1"]._2));
44451
- const $5 = unrestrictGC(boundedMeetSemilatticeBoo)(v3._1)(fromFoldable27($3));
44153
+ const $5 = unrestrictGC(boundedMeetSemilatticeBoo)(v3._1)(fromFoldable28($3));
44452
44154
  const $6 = unprojExpr(boundedMeetSemilatticeBoo)($EnvExpr(v3._1, v3._2));
44453
- const focus = { fwd: (x2) => $6.fwd($5.fwd(x2)), bwd: (x2) => $5.bwd($6.bwd(x2)), connection: void 0 };
44155
+ const focus = { fwd: (x2) => $6.fwd($5.fwd(x2)), bwd: (x2) => $5.bwd($6.bwd(x2)) };
44454
44156
  const $7 = graphGC1(v2);
44455
- const gc = { fwd: (x2) => $7.fwd(focus.fwd(x2)), bwd: (x2) => focus.bwd($7.bwd(x2)), connection: void 0 };
44157
+ const gc = { fwd: (x2) => $7.fwd(focus.fwd(x2)), bwd: (x2) => focus.bwd($7.bwd(x2)) };
44456
44158
  const $8 = gc.fwd(\u03B30);
44457
44159
  const vInert = $Val(selState($8._1), functorBaseVal.map(selState)($8._2));
44458
44160
  const \u03B3Inert = _fmapObject(
@@ -44467,7 +44169,7 @@ var loadFig = (v) => (dictMonadAff) => {
44467
44169
  "out\u03B1": v2["in\u03B1"]
44468
44170
  });
44469
44171
  const $10 = dual(focus);
44470
- const gc_dual = { fwd: (x2) => $10.fwd($9.fwd(x2)), bwd: (x2) => $9.bwd($10.bwd(x2)), connection: void 0 };
44172
+ const gc_dual = { fwd: (x2) => $10.fwd($9.fwd(x2)), bwd: (x2) => $9.bwd($10.bwd(x2)) };
44471
44173
  return Monad0.Applicative0().pure({
44472
44174
  spec: v,
44473
44175
  s: $4,
@@ -44484,8 +44186,7 @@ var loadFig = (v) => (dictMonadAff) => {
44484
44186
  bwd: (x2) => {
44485
44187
  const $13 = meet1.bwd($12.bwd(x2));
44486
44188
  return $Tuple($11.bwd($13._1), categoryGaloisConnection.identity.bwd($13._2));
44487
- },
44488
- connection: void 0
44189
+ }
44489
44190
  };
44490
44191
  })(),
44491
44192
  linkedInputs: (() => {
@@ -44496,8 +44197,7 @@ var loadFig = (v) => (dictMonadAff) => {
44496
44197
  bwd: (x2) => {
44497
44198
  const $13 = meet2.bwd($12.bwd(x2));
44498
44199
  return $Tuple($11.bwd($13._1), categoryGaloisConnection.identity.bwd($13._2));
44499
- },
44500
- connection: void 0
44200
+ }
44501
44201
  };
44502
44202
  })(),
44503
44203
  dir: LinkedOutputs,
@@ -44762,7 +44462,7 @@ var decodeJson = /* @__PURE__ */ (() => decodeRecord(gDecodeJsonCons((() => {
44762
44462
  })(gDecodeJsonCons2(gDecodeJsonCons2(gDecodeJsonCons2(gDecodeJsonNil)({ reflectSymbol: () => "inputs" })()())({ reflectSymbol: () => "imports" })()())({
44763
44463
  reflectSymbol: () => "fluidSrcPath"
44764
44464
  })()())({ reflectSymbol: () => "file" })()())({ reflectSymbol: () => "datasets" })()())().decodeJson)();
44765
- var figSpecFromJson = (spec) => ({ fluidSrcPaths: arrayMap(Folder)(spec.fluidSrcPath), datasets: spec.datasets, imports: spec.imports, file: spec.file, inputs: spec.inputs, queries: [] });
44465
+ var figSpecFromJson = (spec) => ({ fluidSrcPaths: arrayMap(Folder)(spec.fluidSrcPath), datasets: spec.datasets, imports: spec.imports, file: spec.file, inputs: spec.inputs });
44766
44466
  var loadFigure = (fileName) => runAffs_((v) => drawFig(v._1)(v._2))([
44767
44467
  _bind($$get(driver)($ResponseFormat("Json", identity))(fileName))((result) => {
44768
44468
  if (result.tag === "Left") {