@doenet/doenetml-iframe 0.7.0-beta-18 → 0.7.0-beta-19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +29 -25
  2. package/index.js.map +1 -1
  3. package/package.json +1 -1
package/index.js CHANGED
@@ -18106,29 +18106,31 @@ const f$1 = function(e2) {
18106
18106
  if (t && (i = remove_units$1(i, r)), "number" == typeof i) return i;
18107
18107
  if ("string" == typeof i) return "pi" === i && math$1$1.define_pi ? Math.PI : "e" === i && math$1$1.define_e ? Math.E : "i" === i && math$1$1.define_i ? { re: 0, im: 1 } : n ? NaN : null;
18108
18108
  if (!Array.isArray(i)) return n ? NaN : null;
18109
- var a = n ? NaN : null;
18109
+ var a = [];
18110
+ a.push([["^", "x", ["/", "m", "n"]], ["^", ["apply", "nthRoot", ["tuple", "x", "n"]], "m"], { variables: { x: (e3) => e3 < 0, n: (e3) => Number.isInteger(e3) && Number.isInteger((e3 - 1) / 2), m: (e3) => Number.isInteger(e3) } }]), a.push([["^", "x", ["-", ["/", "m", "n"]]], ["^", ["apply", "nthRoot", ["tuple", "x", "n"]], ["-", "m"]], { variables: { x: (e3) => e3 < 0, n: (e3) => Number.isInteger(e3) && Number.isInteger((e3 - 1) / 2), m: (e3) => Number.isInteger(e3) } }]), i = applyAllTransformations$1(i, a, 40);
18111
+ var o = n ? NaN : null;
18110
18112
  try {
18111
- a = f$1(i)();
18113
+ o = f$1(i)();
18112
18114
  } catch (e3) {
18113
18115
  }
18114
- if (!Number.isNaN(a) && ("number" == typeof a || "number" == typeof a?.re && "number" == typeof a?.im)) {
18115
- if (a.re === 1 / 0 || a.re === -1 / 0 || a.im === 1 / 0 || a.im === -1 / 0) {
18116
+ if (!Number.isNaN(o) && ("number" == typeof o || "number" == typeof o?.re && "number" == typeof o?.im)) {
18117
+ if (o.re === 1 / 0 || o.re === -1 / 0 || o.im === 1 / 0 || o.im === -1 / 0) {
18116
18118
  let e3;
18117
- if ("number" == typeof a?.re && "number" == typeof a?.im) if (0 === a.im) e3 = a.re;
18119
+ if ("number" == typeof o?.re && "number" == typeof o?.im) if (0 === o.im) e3 = o.re;
18118
18120
  else {
18119
18121
  let t2;
18120
- t2 = 1 === a.im ? "i" : -1 === a.im ? ["-", "i"] : ["*", a.im, "i"], e3 = 0 === a.re ? t2 : ["+", a.re, t2];
18122
+ t2 = 1 === o.im ? "i" : -1 === o.im ? ["-", "i"] : ["*", o.im, "i"], e3 = 0 === o.re ? t2 : ["+", o.re, t2];
18121
18123
  }
18122
- else e3 = a;
18123
- a = n ? NaN : null;
18124
+ else e3 = o;
18125
+ o = n ? NaN : null;
18124
18126
  try {
18125
- a = f$1(e3)();
18127
+ o = f$1(e3)();
18126
18128
  } catch (e4) {
18127
18129
  }
18128
- } else 0 === a.im && (a = a.re);
18129
- return a;
18130
+ } else 0 === o.im && (o = o.re);
18131
+ return o;
18130
18132
  }
18131
- return "object" == typeof a && (a = n ? NaN : null), a;
18133
+ return "object" == typeof o && (o = n ? NaN : null), o;
18132
18134
  };
18133
18135
  function factorial_to_gamma_function$1(e2) {
18134
18136
  return e2.transform((function(e3, t, r) {
@@ -64958,29 +64960,31 @@ const f = function(e2) {
64958
64960
  if (t && (i = remove_units(i, r)), "number" == typeof i) return i;
64959
64961
  if ("string" == typeof i) return "pi" === i && math$1.define_pi ? Math.PI : "e" === i && math$1.define_e ? Math.E : "i" === i && math$1.define_i ? { re: 0, im: 1 } : n ? NaN : null;
64960
64962
  if (!Array.isArray(i)) return n ? NaN : null;
64961
- var a = n ? NaN : null;
64963
+ var a = [];
64964
+ a.push([["^", "x", ["/", "m", "n"]], ["^", ["apply", "nthRoot", ["tuple", "x", "n"]], "m"], { variables: { x: (e3) => e3 < 0, n: (e3) => Number.isInteger(e3) && Number.isInteger((e3 - 1) / 2), m: (e3) => Number.isInteger(e3) } }]), a.push([["^", "x", ["-", ["/", "m", "n"]]], ["^", ["apply", "nthRoot", ["tuple", "x", "n"]], ["-", "m"]], { variables: { x: (e3) => e3 < 0, n: (e3) => Number.isInteger(e3) && Number.isInteger((e3 - 1) / 2), m: (e3) => Number.isInteger(e3) } }]), i = applyAllTransformations(i, a, 40);
64965
+ var o = n ? NaN : null;
64962
64966
  try {
64963
- a = f(i)();
64967
+ o = f(i)();
64964
64968
  } catch (e3) {
64965
64969
  }
64966
- if (!Number.isNaN(a) && ("number" == typeof a || "number" == typeof a?.re && "number" == typeof a?.im)) {
64967
- if (a.re === 1 / 0 || a.re === -1 / 0 || a.im === 1 / 0 || a.im === -1 / 0) {
64970
+ if (!Number.isNaN(o) && ("number" == typeof o || "number" == typeof o?.re && "number" == typeof o?.im)) {
64971
+ if (o.re === 1 / 0 || o.re === -1 / 0 || o.im === 1 / 0 || o.im === -1 / 0) {
64968
64972
  let e3;
64969
- if ("number" == typeof a?.re && "number" == typeof a?.im) if (0 === a.im) e3 = a.re;
64973
+ if ("number" == typeof o?.re && "number" == typeof o?.im) if (0 === o.im) e3 = o.re;
64970
64974
  else {
64971
64975
  let t2;
64972
- t2 = 1 === a.im ? "i" : -1 === a.im ? ["-", "i"] : ["*", a.im, "i"], e3 = 0 === a.re ? t2 : ["+", a.re, t2];
64976
+ t2 = 1 === o.im ? "i" : -1 === o.im ? ["-", "i"] : ["*", o.im, "i"], e3 = 0 === o.re ? t2 : ["+", o.re, t2];
64973
64977
  }
64974
- else e3 = a;
64975
- a = n ? NaN : null;
64978
+ else e3 = o;
64979
+ o = n ? NaN : null;
64976
64980
  try {
64977
- a = f(e3)();
64981
+ o = f(e3)();
64978
64982
  } catch (e4) {
64979
64983
  }
64980
- } else 0 === a.im && (a = a.re);
64981
- return a;
64984
+ } else 0 === o.im && (o = o.re);
64985
+ return o;
64982
64986
  }
64983
- return "object" == typeof a && (a = n ? NaN : null), a;
64987
+ return "object" == typeof o && (o = n ? NaN : null), o;
64984
64988
  };
64985
64989
  function factorial_to_gamma_function(e2) {
64986
64990
  return e2.transform((function(e3, t, r) {
@@ -70738,7 +70742,7 @@ function ExternalVirtualKeyboard() {
70738
70742
  }
70739
70743
  );
70740
70744
  }
70741
- const version = "0.7.0-beta-18";
70745
+ const version = "0.7.0-beta-19";
70742
70746
  const latestDoenetmlVersion = version;
70743
70747
  function DoenetViewer({
70744
70748
  doenetML,