@vscode/markdown-editor 0.0.2-16 → 0.0.2-17

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.
@@ -5,12 +5,12 @@ function de(n) {
5
5
  function o() {
6
6
  return m;
7
7
  }
8
- let F;
8
+ let x;
9
9
  function oe(n) {
10
- F = n;
10
+ x = n;
11
11
  }
12
12
  function ue(n) {
13
- F && F(n);
13
+ x && x(n);
14
14
  }
15
15
  class K {
16
16
  constructor(e) {
@@ -82,16 +82,16 @@ var u;
82
82
  const a = Error, d = a.stackTraceLimit;
83
83
  a.stackTraceLimit = 3;
84
84
  const h = new Error().stack;
85
- return a.stackTraceLimit = d, j.fromStack(h, i + 1);
85
+ return a.stackTraceLimit = d, L.fromStack(h, i + 1);
86
86
  }
87
87
  n.ofNthCaller = r;
88
88
  })(u || (u = {}));
89
- class j {
89
+ class L {
90
90
  static fromStack(e, t) {
91
91
  const s = e.split(`
92
92
  `), r = he(s[t + 1]);
93
93
  if (r)
94
- return new j(r.fileName, r.line, r.column, r.id);
94
+ return new L(r.fileName, r.line, r.column, r.id);
95
95
  }
96
96
  constructor(e, t, s, r) {
97
97
  this.fileName = e, this.line = t, this.column = s, this.id = r;
@@ -125,9 +125,9 @@ class l {
125
125
  return le(e, this);
126
126
  }
127
127
  }
128
- const P = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new WeakMap();
128
+ const P = /* @__PURE__ */ new Map(), I = /* @__PURE__ */ new WeakMap();
129
129
  function le(n, e) {
130
- const t = B.get(n);
130
+ const t = I.get(n);
131
131
  if (t)
132
132
  return t;
133
133
  const s = ce(n, e);
@@ -135,11 +135,11 @@ function le(n, e) {
135
135
  let r = P.get(s) ?? 0;
136
136
  r++, P.set(s, r);
137
137
  const i = r === 1 ? s : `${s}#${r}`;
138
- return B.set(n, i), i;
138
+ return I.set(n, i), i;
139
139
  }
140
140
  }
141
141
  function ce(n, e) {
142
- const t = B.get(n);
142
+ const t = I.get(n);
143
143
  if (t)
144
144
  return t;
145
145
  const s = e.owner ? ge(e.owner) + "." : "";
@@ -152,7 +152,7 @@ function ce(n, e) {
152
152
  } else
153
153
  return s + i;
154
154
  const a = e.referenceFn;
155
- if (a !== void 0 && (r = G(a), r !== void 0))
155
+ if (a !== void 0 && (r = W(a), r !== void 0))
156
156
  return s + r;
157
157
  if (e.owner !== void 0) {
158
158
  const d = fe(e.owner, n);
@@ -181,13 +181,13 @@ function ee(n) {
181
181
  if (e)
182
182
  return e.name === "Object" ? void 0 : e.name;
183
183
  }
184
- function G(n) {
184
+ function W(n) {
185
185
  const e = n.toString(), s = /\/\*\*\s*@description\s*([^*]*)\*\//.exec(e);
186
186
  return (s ? s[1] : void 0)?.trim();
187
187
  }
188
- let x;
188
+ let j;
189
189
  function _e(n) {
190
- x = n;
190
+ j = n;
191
191
  }
192
192
  let te;
193
193
  function be(n) {
@@ -214,10 +214,10 @@ class re {
214
214
  }
215
215
  map(e, t, s = u.ofCaller()) {
216
216
  const r = t === void 0 ? void 0 : e, i = t === void 0 ? e : t;
217
- return x({
217
+ return j({
218
218
  owner: r,
219
219
  debugName: () => {
220
- const a = G(i);
220
+ const a = W(i);
221
221
  if (a !== void 0)
222
222
  return a;
223
223
  const h = /^\s*\(?\s*([a-zA-Z_$][a-zA-Z_$0-9]*)\s*\)?\s*=>\s*\1(?:\??)\.([a-zA-Z_$][a-zA-Z_$0-9]*)\s*$/.exec(i.toString());
@@ -234,7 +234,7 @@ class re {
234
234
  * Converts an observable of an observable value into a direct observable of the value.
235
235
  */
236
236
  flatten() {
237
- return x({
237
+ return j({
238
238
  owner: void 0,
239
239
  debugName: () => `${this.debugName} (flattened)`
240
240
  }, (e) => this.read(e).read(e));
@@ -701,12 +701,14 @@ class k {
701
701
  this._isRunning ? this._state = 2 : this._run();
702
702
  }
703
703
  }
704
- function L(n, e = u.ofCaller()) {
704
+ function A(n, e = u.ofCaller()) {
705
705
  return new k(new l(void 0, void 0, n), n, void 0, e);
706
706
  }
707
- function W(n, e, t = u.ofCaller()) {
707
+ const Je = A;
708
+ function U(n, e, t = u.ofCaller()) {
708
709
  return new k(new l(n.owner, n.debugName, n.debugReferenceFn ?? e), e, void 0, t);
709
710
  }
711
+ const Qe = U;
710
712
  function Se(n, e, t = u.ofCaller()) {
711
713
  return new k(new l(n.owner, n.debugName, n.debugReferenceFn ?? e), e, n.changeTracker, t);
712
714
  }
@@ -723,8 +725,8 @@ function Te(n, e) {
723
725
  s.dispose(), t.dispose();
724
726
  });
725
727
  }
726
- function Je(n) {
727
- const e = new f(), t = W({
728
+ function Xe(n) {
729
+ const e = new f(), t = U({
728
730
  owner: void 0,
729
731
  debugName: void 0,
730
732
  debugReferenceFn: n
@@ -735,16 +737,16 @@ function Je(n) {
735
737
  t.dispose(), e.dispose();
736
738
  });
737
739
  }
738
- function Qe(n, e) {
740
+ function Ye(n, e) {
739
741
  let t;
740
- return W({ debugReferenceFn: e }, (s) => {
742
+ return U({ debugReferenceFn: e }, (s) => {
741
743
  const r = n.read(s), i = t;
742
744
  t = r, e({ lastValue: i, newValue: r });
743
745
  });
744
746
  }
745
- function Xe(n, e, t = (s) => s) {
747
+ function et(n, e, t = (s) => s) {
746
748
  const s = /* @__PURE__ */ new Map();
747
- return W({ debugReferenceFn: n }, (r) => {
749
+ return U({ debugReferenceFn: n }, (r) => {
748
750
  const i = /* @__PURE__ */ new Map(), a = new Map(s);
749
751
  for (const d of n(r)) {
750
752
  const h = t(d);
@@ -755,9 +757,9 @@ function Xe(n, e, t = (s) => s) {
755
757
  (i.size || a.size) && e({ addedValues: [...i.values()], removedValues: [...a.values()] });
756
758
  });
757
759
  }
758
- function Ye(n, e = u.ofCaller()) {
760
+ function tt(n, e = u.ofCaller()) {
759
761
  let t, s = !1;
760
- return t = L((r) => {
762
+ return t = A((r) => {
761
763
  n({
762
764
  delayedStore: r.delayedStore,
763
765
  store: r.store,
@@ -772,8 +774,8 @@ function Q(n) {
772
774
  const e = new Error("BugIndicatingErrorRecovery: " + n);
773
775
  ve(e), console.error("recovered from an error that indicates a bug", e);
774
776
  }
775
- function A(n, e) {
776
- const t = new U(n, e);
777
+ function E(n, e) {
778
+ const t = new $(n, e);
777
779
  try {
778
780
  n(t);
779
781
  } finally {
@@ -781,11 +783,11 @@ function A(n, e) {
781
783
  }
782
784
  }
783
785
  let S;
784
- function et(n) {
786
+ function nt(n) {
785
787
  if (S)
786
788
  n(S);
787
789
  else {
788
- const e = new U(n, void 0);
790
+ const e = new $(n, void 0);
789
791
  S = e;
790
792
  try {
791
793
  n(e);
@@ -794,8 +796,8 @@ function et(n) {
794
796
  }
795
797
  }
796
798
  }
797
- async function tt(n, e) {
798
- const t = new U(n, e);
799
+ async function st(n, e) {
800
+ const t = new $(n, e);
799
801
  try {
800
802
  await n(t);
801
803
  } finally {
@@ -803,18 +805,18 @@ async function tt(n, e) {
803
805
  }
804
806
  }
805
807
  function De(n, e, t) {
806
- n ? e(n) : A(e, t);
808
+ n ? e(n) : E(e, t);
807
809
  }
808
- class U {
810
+ class $ {
809
811
  constructor(e, t) {
810
812
  this._fn = e, this._getDebugName = t, this._updatingObservers = [], o()?.handleBeginTransaction(this);
811
813
  }
812
814
  getDebugName() {
813
- return this._getDebugName ? this._getDebugName() : G(this._fn);
815
+ return this._getDebugName ? this._getDebugName() : W(this._fn);
814
816
  }
815
817
  updateObserver(e, t) {
816
818
  if (!this._updatingObservers) {
817
- Q("Transaction already finished!"), A((s) => {
819
+ Q("Transaction already finished!"), E((s) => {
818
820
  s.updateObserver(e, t);
819
821
  });
820
822
  return;
@@ -855,7 +857,7 @@ class q extends N {
855
857
  if (s === void 0 && this._equalityComparator(this._value, e))
856
858
  return;
857
859
  let r;
858
- t || (t = r = new U(() => {
860
+ t || (t = r = new $(() => {
859
861
  }, () => `Setting ${this.debugName}`));
860
862
  try {
861
863
  const i = this._value;
@@ -881,7 +883,7 @@ class q extends N {
881
883
  this._value = e;
882
884
  }
883
885
  }
884
- function nt(n, e, t = u.ofCaller()) {
886
+ function rt(n, e, t = u.ofCaller()) {
885
887
  let s;
886
888
  return typeof n == "string" ? s = new l(void 0, n, void 0) : s = new l(n, void 0, void 0), new Ne(s, e, _, t);
887
889
  }
@@ -893,26 +895,26 @@ class Ne extends q {
893
895
  this._value?.dispose();
894
896
  }
895
897
  }
896
- function I(...n) {
898
+ function G(...n) {
897
899
  let e, t, s, r;
898
900
  return n.length === 2 ? [t, s] = n : [e, t, s, r] = n, new p(new l(e, void 0, s), t, s, () => p.globalTransaction, _, r ?? u.ofCaller());
899
901
  }
900
- function st(n, e, t, s = u.ofCaller()) {
902
+ function it(n, e, t, s = u.ofCaller()) {
901
903
  return new p(new l(n.owner, n.debugName, n.debugReferenceFn ?? t), e, t, () => p.globalTransaction, n.equalsFn ?? _, s);
902
904
  }
903
905
  class p extends N {
904
906
  constructor(e, t, s, r, i, a) {
905
907
  super(a), this._debugNameData = e, this.event = t, this._getValue = s, this._getTransaction = r, this._equalityComparator = i, this._hasValue = !1, this.handleEvent = (d) => {
906
- const h = this._getValue(d), $ = this._value, E = !this._hasValue || !this._equalityComparator($, h);
908
+ const h = this._getValue(d), F = this._value, B = !this._hasValue || !this._equalityComparator(F, h);
907
909
  let M = !1;
908
- E && (this._value = h, this._hasValue && (M = !0, De(this._getTransaction(), (w) => {
909
- o()?.handleObservableUpdated(this, { oldValue: $, newValue: h, change: void 0, didChange: E, hadValue: this._hasValue });
910
+ B && (this._value = h, this._hasValue && (M = !0, De(this._getTransaction(), (w) => {
911
+ o()?.handleObservableUpdated(this, { oldValue: F, newValue: h, change: void 0, didChange: B, hadValue: this._hasValue });
910
912
  for (const H of this._observers)
911
913
  w.updateObserver(H, this), H.handleChange(this, void 0);
912
914
  }, () => {
913
915
  const w = this.getDebugName();
914
916
  return "Event fired" + (w ? `: ${w}` : "");
915
- })), this._hasValue = !0), M || o()?.handleObservableUpdated(this, { oldValue: $, newValue: h, change: void 0, didChange: E, hadValue: this._hasValue });
917
+ })), this._hasValue = !0), M || o()?.handleObservableUpdated(this, { oldValue: F, newValue: h, change: void 0, didChange: B, hadValue: this._hasValue });
916
918
  };
917
919
  }
918
920
  getDebugName() {
@@ -950,7 +952,7 @@ class p extends N {
950
952
  }
951
953
  }
952
954
  n.batchEventsGlobally = e;
953
- })(I || (I = {}));
955
+ })(G || (G = {}));
954
956
  function Re(n, e = u.ofCaller()) {
955
957
  return typeof n == "string" ? new X(n, void 0, e) : new X(void 0, n, e);
956
958
  }
@@ -966,7 +968,7 @@ class X extends N {
966
968
  }
967
969
  trigger(e, t) {
968
970
  if (!e) {
969
- A((s) => {
971
+ E((s) => {
970
972
  this.trigger(s, t);
971
973
  }, () => `Trigger signal ${this.debugName}`);
972
974
  return;
@@ -977,13 +979,13 @@ class X extends N {
977
979
  get() {
978
980
  }
979
981
  }
980
- function rt(n) {
982
+ function at(n) {
981
983
  const e = z("promiseValue", {});
982
984
  return n.then((t) => {
983
985
  e.set({ value: t }, void 0);
984
986
  }), e;
985
987
  }
986
- function it(n, e) {
988
+ function dt(n, e) {
987
989
  return V({
988
990
  owner: n,
989
991
  equalsFn: () => !1
@@ -991,22 +993,22 @@ function it(n, e) {
991
993
  e.read(t);
992
994
  });
993
995
  }
994
- function at(n, e, t) {
996
+ function ot(n, e, t) {
995
997
  const s = z("debounced", void 0);
996
998
  let r;
997
- return t.add(L((i) => {
999
+ return t.add(A((i) => {
998
1000
  const a = n.read(i);
999
1001
  r && clearTimeout(r), r = setTimeout(() => {
1000
- A((d) => {
1002
+ E((d) => {
1001
1003
  s.set(a, d);
1002
1004
  });
1003
1005
  }, e);
1004
1006
  })), s;
1005
1007
  }
1006
- function dt(n, e) {
1008
+ function ut(n, e) {
1007
1009
  let t = !1, s, r;
1008
- return I((i) => {
1009
- const a = L((d) => {
1010
+ return G((i) => {
1011
+ const a = A((d) => {
1010
1012
  const h = n.read(d);
1011
1013
  t ? (r && clearTimeout(r), r = setTimeout(() => {
1012
1014
  s = h, i();
@@ -1019,7 +1021,7 @@ function dt(n, e) {
1019
1021
  };
1020
1022
  }, () => t ? s : n.get());
1021
1023
  }
1022
- function ot(n, e, t) {
1024
+ function ht(n, e, t) {
1023
1025
  const s = z("triggeredRecently", !1);
1024
1026
  let r;
1025
1027
  return t.add(n(() => {
@@ -1063,11 +1065,11 @@ class ie {
1063
1065
  handleChange(e, t) {
1064
1066
  }
1065
1067
  }
1066
- function ut(n, e) {
1068
+ function lt(n, e) {
1067
1069
  let t;
1068
1070
  return V({ owner: n, debugReferenceFn: e }, (r) => (t = e(r, t), t));
1069
1071
  }
1070
- function ht(n, e) {
1072
+ function ct(n, e) {
1071
1073
  let t;
1072
1074
  const s = Re("derivedObservableWithWritableCache"), r = Oe(n, (i) => (s.read(i), t = e(i, t), t));
1073
1075
  return Object.assign(r, {
@@ -1079,7 +1081,7 @@ function ht(n, e) {
1079
1081
  }
1080
1082
  });
1081
1083
  }
1082
- function lt(n, e, t, s) {
1084
+ function ft(n, e, t, s) {
1083
1085
  let r = new Y(t, s);
1084
1086
  return V({
1085
1087
  debugReferenceFn: t,
@@ -1132,7 +1134,7 @@ class Ue {
1132
1134
  return this._filteredObjects?.has(e) ?? !0;
1133
1135
  }
1134
1136
  textToConsoleArgs(e) {
1135
- return $e([
1137
+ return Ee([
1136
1138
  C(xe("| ", this.indentation)),
1137
1139
  e
1138
1140
  ]);
@@ -1242,7 +1244,7 @@ class Ue {
1242
1244
  this.indentation--;
1243
1245
  }
1244
1246
  }
1245
- function $e(n) {
1247
+ function Ee(n) {
1246
1248
  const e = new Array(), t = [];
1247
1249
  let s = "";
1248
1250
  function r(a) {
@@ -1277,12 +1279,12 @@ function c(n, e = {
1277
1279
  }
1278
1280
  function O(n, e) {
1279
1281
  try {
1280
- return Ee(n, e);
1282
+ return $e(n, e);
1281
1283
  } catch {
1282
1284
  return "[[???]]";
1283
1285
  }
1284
1286
  }
1285
- function Ee(n, e) {
1287
+ function $e(n, e) {
1286
1288
  switch (typeof n) {
1287
1289
  case "number":
1288
1290
  return "" + n;
@@ -1391,7 +1393,7 @@ class g {
1391
1393
  }
1392
1394
  me(je);
1393
1395
  oe(Ae);
1394
- class ct extends Error {
1396
+ class gt extends Error {
1395
1397
  constructor(e = "Operation was cancelled") {
1396
1398
  super(e), this.name = "CancellationError";
1397
1399
  }
@@ -1425,7 +1427,7 @@ function Le(n) {
1425
1427
  const e = new Ge();
1426
1428
  return n.add(e), e.token;
1427
1429
  }
1428
- function ft(n) {
1430
+ function _t(n) {
1429
1431
  return new We(n);
1430
1432
  }
1431
1433
  class We extends re {
@@ -1477,62 +1479,64 @@ function qe(n, e) {
1477
1479
  }
1478
1480
  };
1479
1481
  }
1480
- function gt(n, e) {
1482
+ function bt(n, e) {
1481
1483
  return qe(n, (t, s, r, i) => {
1482
1484
  e(t, s, r, Le(i));
1483
1485
  });
1484
1486
  }
1485
1487
  export {
1486
- dt as A,
1488
+ Xe as A,
1487
1489
  N as B,
1488
- ct as C,
1490
+ gt as C,
1489
1491
  Me as D,
1490
- at as E,
1491
- Ze as F,
1492
- Ke as G,
1493
- ht as H,
1494
- V as I,
1495
- He as J,
1496
- Pe as K,
1497
- nt as L,
1498
- et as M,
1499
- lt as N,
1492
+ Te as E,
1493
+ ut as F,
1494
+ ot as G,
1495
+ Ze as H,
1496
+ Ke as I,
1497
+ ct as J,
1498
+ V as K,
1499
+ He as L,
1500
+ Pe as M,
1501
+ rt as N,
1500
1502
  q as O,
1501
- st as P,
1502
- rt as Q,
1503
- Re as R,
1504
- ke as S,
1505
- U as T,
1506
- gt as U,
1507
- qe as V,
1508
- it as W,
1509
- De as X,
1510
- ot as Y,
1511
- L as a,
1503
+ nt as P,
1504
+ ft as Q,
1505
+ it as R,
1506
+ at as S,
1507
+ $ as T,
1508
+ Re as U,
1509
+ ke as V,
1510
+ bt as W,
1511
+ qe as X,
1512
+ dt as Y,
1513
+ De as Z,
1514
+ ht as _,
1515
+ Je as a,
1512
1516
  l as b,
1513
- ft as c,
1517
+ _t as c,
1514
1518
  Oe as d,
1515
1519
  u as e,
1516
1520
  b as f,
1517
1521
  o as g,
1518
- Ge as h,
1519
- v as i,
1520
- I as j,
1521
- ut as k,
1522
- f as l,
1523
- W as m,
1524
- le as n,
1522
+ A as h,
1523
+ Ge as i,
1524
+ v as j,
1525
+ G as k,
1526
+ lt as l,
1527
+ f as m,
1528
+ U as n,
1525
1529
  z as o,
1526
- Ve as p,
1527
- tt as q,
1530
+ le as p,
1531
+ Ve as q,
1528
1532
  ze as r,
1529
1533
  _ as s,
1530
- A as t,
1531
- Qe as u,
1532
- Se as v,
1533
- Xe as w,
1534
- Ye as x,
1535
- Je as y,
1536
- Te as z
1534
+ E as t,
1535
+ st as u,
1536
+ Ye as v,
1537
+ Se as w,
1538
+ et as x,
1539
+ Qe as y,
1540
+ tt as z
1537
1541
  };
1538
- //# sourceMappingURL=runOnChange-C00UIwqQ.js.map
1542
+ //# sourceMappingURL=runOnChange-CkxK2gSn.js.map