@pie-element/ebsr 14.2.2-next.0 → 14.2.2-next.1
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.
- package/dist/author/defaults.d.ts +284 -2
- package/dist/author/defaults.js +1 -1
- package/dist/author/index.js +16 -16
- package/dist/browser/author/index.js +3455 -3561
- package/dist/browser/author/index.js.map +1 -1
- package/dist/browser/controller/index.js +87 -265
- package/dist/browser/controller/index.js.map +1 -1
- package/dist/browser/delivery/index.js +1 -1
- package/dist/browser/delivery/index.js.map +1 -1
- package/dist/browser/dist-CaWRqnXk.js +62 -0
- package/dist/browser/dist-CaWRqnXk.js.map +1 -0
- package/dist/browser/print/index.js +3 -4
- package/dist/browser/print/index.js.map +1 -1
- package/dist/controller/index.js +29 -30
- package/dist/controller/utils.d.ts +1 -1
- package/dist/controller/utils.js +1 -1
- package/dist/delivery/index.js +10 -10
- package/dist/index.iife.js +37 -37
- package/dist/print/index.js +12 -13
- package/dist/runtime-support.d.ts +12 -0
- package/dist/runtime-support.js +12 -0
- package/package.json +11 -7
- package/dist/browser/_Uint8Array-fRN8Lsus.js +0 -193
- package/dist/browser/_Uint8Array-fRN8Lsus.js.map +0 -1
- package/dist/browser/cloneDeep-o_mWij0W.js +0 -251
- package/dist/browser/cloneDeep-o_mWij0W.js.map +0 -1
- package/dist/browser/get-BfBCyZ1r.js +0 -333
- package/dist/browser/get-BfBCyZ1r.js.map +0 -1
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_DataView.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Hash.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_ListCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Map.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_MapCache.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Promise.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Set.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Stack.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Symbol.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_Uint8Array.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_WeakMap.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_apply.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayEach.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayFilter.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayLikeKeys.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arrayPush.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assignValue.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_assocIndexOf.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssign.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseAssignValue.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseClone.js +0 -57
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseCreate.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGet.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseGetTag.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsArguments.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js +0 -30
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsMap.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsNative.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsTypedArray.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeys.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseKeysIn.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseRest.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseSetToString.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseTimes.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseToString.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseUnary.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_castPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneArrayBuffer.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneBuffer.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneDataView.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneRegExp.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneSymbol.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cloneTypedArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copyObject.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbols.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_copySymbolsIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_coreJsData.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_defineProperty.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js +0 -35
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js +0 -32
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_freeGlobal.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getAllKeysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getMapData.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getNative.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getPrototype.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getRawTag.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbols.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getSymbolsIn.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getTag.js +0 -23
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_getValue.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashGet.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashHas.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_hashSet.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneArray.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneByTag.js +0 -33
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_initCloneObject.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIndex.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isIterateeCall.js +0 -12
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKey.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isKeyable.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isMasked.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_isPrototype.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheClear.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheDelete.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheGet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_listCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheClear.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheDelete.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheGet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheHas.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapCacheSet.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_memoizeCapped.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeCreate.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeys.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nativeKeysIn.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_nodeUtil.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_objectToString.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overArg.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_overRest.js +0 -13
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_root.js +0 -5
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToString.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_shortOut.js +0 -14
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackClear.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackDelete.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackGet.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackHas.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stackSet.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_stringToPath.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toKey.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_toSource.js +0 -15
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/cloneDeep.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/constant.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/defaults.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/eq.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/get.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/identity.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArguments.js +0 -10
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArray.js +0 -4
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isArrayLike.js +0 -8
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isBuffer.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js +0 -21
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isFunction.js +0 -11
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isLength.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isMap.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObject.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isObjectLike.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSet.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isSymbol.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isTypedArray.js +0 -7
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keys.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/keysIn.js +0 -9
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/memoize.js +0 -16
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubArray.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/stubFalse.js +0 -6
- package/dist/node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/toString.js +0 -7
|
@@ -1,185 +1,7 @@
|
|
|
1
1
|
import { t as e } from "../dist-D9ARZhQk.js";
|
|
2
|
-
import {
|
|
3
|
-
import { _ as s, g as c, n as l, p as u, r as d, s as f, t as p, u as m, v as h, y as g } from "../_Uint8Array-fRN8Lsus.js";
|
|
4
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheAdd.js
|
|
5
|
-
var _ = "__lodash_hash_undefined__";
|
|
6
|
-
function v(e) {
|
|
7
|
-
return this.__data__.set(e, _), this;
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setCacheHas.js
|
|
11
|
-
function y(e) {
|
|
12
|
-
return this.__data__.has(e);
|
|
13
|
-
}
|
|
14
|
-
//#endregion
|
|
15
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_SetCache.js
|
|
16
|
-
function b(e) {
|
|
17
|
-
var t = -1, n = e == null ? 0 : e.length;
|
|
18
|
-
for (this.__data__ = new r(); ++t < n;) this.add(e[t]);
|
|
19
|
-
}
|
|
20
|
-
b.prototype.add = b.prototype.push = v, b.prototype.has = y;
|
|
21
|
-
//#endregion
|
|
22
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_arraySome.js
|
|
23
|
-
function x(e, t) {
|
|
24
|
-
for (var n = -1, r = e == null ? 0 : e.length; ++n < r;) if (t(e[n], n, e)) return !0;
|
|
25
|
-
return !1;
|
|
26
|
-
}
|
|
27
|
-
//#endregion
|
|
28
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_cacheHas.js
|
|
29
|
-
function ee(e, t) {
|
|
30
|
-
return e.has(t);
|
|
31
|
-
}
|
|
32
|
-
//#endregion
|
|
33
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalArrays.js
|
|
34
|
-
var te = 1, S = 2;
|
|
35
|
-
function C(e, t, n, r, i, a) {
|
|
36
|
-
var o = n & te, s = e.length, c = t.length;
|
|
37
|
-
if (s != c && !(o && c > s)) return !1;
|
|
38
|
-
var l = a.get(e), u = a.get(t);
|
|
39
|
-
if (l && u) return l == t && u == e;
|
|
40
|
-
var d = -1, f = !0, p = n & S ? new b() : void 0;
|
|
41
|
-
for (a.set(e, t), a.set(t, e); ++d < s;) {
|
|
42
|
-
var m = e[d], h = t[d];
|
|
43
|
-
if (r) var g = o ? r(h, m, d, t, e, a) : r(m, h, d, e, t, a);
|
|
44
|
-
if (g !== void 0) {
|
|
45
|
-
if (g) continue;
|
|
46
|
-
f = !1;
|
|
47
|
-
break;
|
|
48
|
-
}
|
|
49
|
-
if (p) {
|
|
50
|
-
if (!x(t, function(e, t) {
|
|
51
|
-
if (!ee(p, t) && (m === e || i(m, e, n, r, a))) return p.push(t);
|
|
52
|
-
})) {
|
|
53
|
-
f = !1;
|
|
54
|
-
break;
|
|
55
|
-
}
|
|
56
|
-
} else if (!(m === h || i(m, h, n, r, a))) {
|
|
57
|
-
f = !1;
|
|
58
|
-
break;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return a.delete(e), a.delete(t), f;
|
|
62
|
-
}
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_mapToArray.js
|
|
65
|
-
function ne(e) {
|
|
66
|
-
var t = -1, n = Array(e.size);
|
|
67
|
-
return e.forEach(function(e, r) {
|
|
68
|
-
n[++t] = [r, e];
|
|
69
|
-
}), n;
|
|
70
|
-
}
|
|
71
|
-
//#endregion
|
|
72
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_setToArray.js
|
|
73
|
-
function re(e) {
|
|
74
|
-
var t = -1, n = Array(e.size);
|
|
75
|
-
return e.forEach(function(e) {
|
|
76
|
-
n[++t] = e;
|
|
77
|
-
}), n;
|
|
78
|
-
}
|
|
79
|
-
//#endregion
|
|
80
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalByTag.js
|
|
81
|
-
var ie = 1, ae = 2, oe = "[object Boolean]", se = "[object Date]", ce = "[object Error]", le = "[object Map]", w = "[object Number]", T = "[object RegExp]", ue = "[object Set]", de = "[object String]", fe = "[object Symbol]", pe = "[object ArrayBuffer]", me = "[object DataView]", E = n ? n.prototype : void 0, D = E ? E.valueOf : void 0;
|
|
82
|
-
function he(e, t, n, r, i, o, s) {
|
|
83
|
-
switch (n) {
|
|
84
|
-
case me:
|
|
85
|
-
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
86
|
-
e = e.buffer, t = t.buffer;
|
|
87
|
-
case pe: return !(e.byteLength != t.byteLength || !o(new p(e), new p(t)));
|
|
88
|
-
case oe:
|
|
89
|
-
case se:
|
|
90
|
-
case w: return a(+e, +t);
|
|
91
|
-
case ce: return e.name == t.name && e.message == t.message;
|
|
92
|
-
case T:
|
|
93
|
-
case de: return e == t + "";
|
|
94
|
-
case le: var c = ne;
|
|
95
|
-
case ue:
|
|
96
|
-
var l = r & ie;
|
|
97
|
-
if (c ||= re, e.size != t.size && !l) return !1;
|
|
98
|
-
var u = s.get(e);
|
|
99
|
-
if (u) return u == t;
|
|
100
|
-
r |= ae, s.set(e, t);
|
|
101
|
-
var d = C(c(e), c(t), r, i, o, s);
|
|
102
|
-
return s.delete(e), d;
|
|
103
|
-
case fe: if (D) return D.call(e) == D.call(t);
|
|
104
|
-
}
|
|
105
|
-
return !1;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_equalObjects.js
|
|
109
|
-
var ge = 1, _e = Object.prototype.hasOwnProperty;
|
|
110
|
-
function ve(e, t, n, r, i, a) {
|
|
111
|
-
var o = n & ge, s = d(e), c = s.length;
|
|
112
|
-
if (c != d(t).length && !o) return !1;
|
|
113
|
-
for (var l = c; l--;) {
|
|
114
|
-
var u = s[l];
|
|
115
|
-
if (!(o ? u in t : _e.call(t, u))) return !1;
|
|
116
|
-
}
|
|
117
|
-
var f = a.get(e), p = a.get(t);
|
|
118
|
-
if (f && p) return f == t && p == e;
|
|
119
|
-
var m = !0;
|
|
120
|
-
a.set(e, t), a.set(t, e);
|
|
121
|
-
for (var h = o; ++l < c;) {
|
|
122
|
-
u = s[l];
|
|
123
|
-
var g = e[u], _ = t[u];
|
|
124
|
-
if (r) var v = o ? r(_, g, u, t, e, a) : r(g, _, u, e, t, a);
|
|
125
|
-
if (!(v === void 0 ? g === _ || i(g, _, n, r, a) : v)) {
|
|
126
|
-
m = !1;
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
h ||= u == "constructor";
|
|
130
|
-
}
|
|
131
|
-
if (m && !h) {
|
|
132
|
-
var y = e.constructor, b = t.constructor;
|
|
133
|
-
y != b && "constructor" in e && "constructor" in t && !(typeof y == "function" && y instanceof y && typeof b == "function" && b instanceof b) && (m = !1);
|
|
134
|
-
}
|
|
135
|
-
return a.delete(e), a.delete(t), m;
|
|
136
|
-
}
|
|
137
|
-
//#endregion
|
|
138
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqualDeep.js
|
|
139
|
-
var ye = 1, O = "[object Arguments]", k = "[object Array]", A = "[object Object]", j = Object.prototype.hasOwnProperty;
|
|
140
|
-
function M(e, n, r, i, a, o) {
|
|
141
|
-
var s = t(e), d = t(n), p = s ? k : l(e), m = d ? k : l(n);
|
|
142
|
-
p = p == O ? A : p, m = m == O ? A : m;
|
|
143
|
-
var h = p == A, g = m == A, _ = p == m;
|
|
144
|
-
if (_ && c(e)) {
|
|
145
|
-
if (!c(n)) return !1;
|
|
146
|
-
s = !0, h = !1;
|
|
147
|
-
}
|
|
148
|
-
if (_ && !h) return o ||= new f(), s || u(e) ? C(e, n, r, i, a, o) : he(e, n, p, r, i, a, o);
|
|
149
|
-
if (!(r & ye)) {
|
|
150
|
-
var v = h && j.call(e, "__wrapped__"), y = g && j.call(n, "__wrapped__");
|
|
151
|
-
if (v || y) {
|
|
152
|
-
var b = v ? e.value() : e, x = y ? n.value() : n;
|
|
153
|
-
return o ||= new f(), a(b, x, r, i, o);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
return _ ? (o ||= new f(), ve(e, n, r, i, a, o)) : !1;
|
|
157
|
-
}
|
|
158
|
-
//#endregion
|
|
159
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/_baseIsEqual.js
|
|
160
|
-
function N(e, t, n, r, a) {
|
|
161
|
-
return e === t ? !0 : e == null || t == null || !i(e) && !i(t) ? e !== e && t !== t : M(e, t, n, r, N, a);
|
|
162
|
-
}
|
|
163
|
-
//#endregion
|
|
164
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEmpty.js
|
|
165
|
-
var P = "[object Map]", be = "[object Set]", xe = Object.prototype.hasOwnProperty;
|
|
166
|
-
function F(e) {
|
|
167
|
-
if (e == null) return !0;
|
|
168
|
-
if (g(e) && (t(e) || typeof e == "string" || typeof e.splice == "function" || c(e) || u(e) || s(e))) return !e.length;
|
|
169
|
-
var n = l(e);
|
|
170
|
-
if (n == P || n == be) return !e.size;
|
|
171
|
-
if (h(e)) return !m(e).length;
|
|
172
|
-
for (var r in e) if (xe.call(e, r)) return !1;
|
|
173
|
-
return !0;
|
|
174
|
-
}
|
|
175
|
-
//#endregion
|
|
176
|
-
//#region ../../../node_modules/.bun/lodash-es@4.18.1/node_modules/lodash-es/isEqual.js
|
|
177
|
-
function Se(e, t) {
|
|
178
|
-
return N(e, t);
|
|
179
|
-
}
|
|
180
|
-
//#endregion
|
|
2
|
+
import { i as t, s as n, t as r } from "../dist-CaWRqnXk.js";
|
|
181
3
|
//#region src/controller/defaults.ts
|
|
182
|
-
var
|
|
4
|
+
var i = (e) => ({
|
|
183
5
|
choiceMode: "radio",
|
|
184
6
|
choicePrefix: "letters",
|
|
185
7
|
choices: [],
|
|
@@ -196,23 +18,23 @@ var I = (e) => ({
|
|
|
196
18
|
teacherInstructionsEnabled: !0,
|
|
197
19
|
toolbarEditorPosition: "bottom",
|
|
198
20
|
...e
|
|
199
|
-
}),
|
|
21
|
+
}), a = {
|
|
200
22
|
partLabels: !0,
|
|
201
23
|
partLabelType: "Letters",
|
|
202
|
-
partA:
|
|
203
|
-
partB:
|
|
204
|
-
},
|
|
24
|
+
partA: i(),
|
|
25
|
+
partB: i()
|
|
26
|
+
}, o = Object.defineProperty, s = (e, t) => {
|
|
205
27
|
let n = {};
|
|
206
|
-
for (var r in e)
|
|
28
|
+
for (var r in e) o(n, r, {
|
|
207
29
|
get: e[r],
|
|
208
30
|
enumerable: !0
|
|
209
31
|
});
|
|
210
|
-
return t ||
|
|
32
|
+
return t || o(n, Symbol.toStringTag, { value: "Module" }), n;
|
|
211
33
|
};
|
|
212
|
-
function
|
|
34
|
+
function c(e) {
|
|
213
35
|
return Array.isArray(e) ? e.filter((e) => e != null) : [];
|
|
214
36
|
}
|
|
215
|
-
function
|
|
37
|
+
function l(e) {
|
|
216
38
|
let t = [...e];
|
|
217
39
|
for (let e = t.length - 1; e > 0; e--) {
|
|
218
40
|
let n = Math.floor(Math.random() * (e + 1));
|
|
@@ -220,39 +42,39 @@ function we(e) {
|
|
|
220
42
|
}
|
|
221
43
|
return t;
|
|
222
44
|
}
|
|
223
|
-
function
|
|
45
|
+
function u(e) {
|
|
224
46
|
return e == null ? !0 : Array.isArray(e) ? e.length === 0 : typeof e == "object" ? Object.keys(e).length === 0 : !1;
|
|
225
47
|
}
|
|
226
|
-
async function
|
|
227
|
-
let i =
|
|
48
|
+
async function d(e, t, n, r = "value") {
|
|
49
|
+
let i = c(t?.data?.shuffledValues ?? t?.shuffledValues ?? []);
|
|
228
50
|
if (!t) {
|
|
229
51
|
console.warn("Unable to save shuffled choices because there's no session.");
|
|
230
52
|
return;
|
|
231
53
|
}
|
|
232
|
-
if (!
|
|
233
|
-
let a =
|
|
54
|
+
if (!u(i)) return c(i.map((t) => e.find((e) => e[r] === t)));
|
|
55
|
+
let a = l(e);
|
|
234
56
|
if (n && typeof n == "function") try {
|
|
235
|
-
let e =
|
|
236
|
-
|
|
57
|
+
let e = c(a.map((e) => e[r]));
|
|
58
|
+
u(e) ? console.error(`shuffledValues is an empty array - refusing to call updateSession. shuffledChoices: ${JSON.stringify(a)}, key: ${r}`) : t.id && t.element && await n(t.id, t.element, { shuffledValues: e });
|
|
237
59
|
} catch (e) {
|
|
238
60
|
console.warn("Unable to save shuffled order for choices"), console.error(e);
|
|
239
61
|
}
|
|
240
62
|
else console.warn("Unable to save shuffled choices, shuffle will happen every time.");
|
|
241
63
|
return a;
|
|
242
64
|
}
|
|
243
|
-
function
|
|
65
|
+
function f(e, t, n) {
|
|
244
66
|
return !!(e.lockChoiceOrder || n["@pie-element"]?.lockChoiceOrder || (n.role ?? "student") === "instructor");
|
|
245
67
|
}
|
|
246
|
-
var
|
|
247
|
-
function
|
|
68
|
+
var p = /* @__PURE__ */ s({ enabled: () => m });
|
|
69
|
+
function m(e, t, n) {
|
|
248
70
|
return e?.partialScoring === !1 || t?.partialScoring === !1 ? !1 : typeof n == "boolean" ? n : !0;
|
|
249
71
|
}
|
|
250
72
|
//#endregion
|
|
251
73
|
//#region src/controller/utils.ts
|
|
252
|
-
var
|
|
253
|
-
let
|
|
254
|
-
return n && n.value ?
|
|
255
|
-
}, { translator:
|
|
74
|
+
var h = (e) => e && e.filter((e) => e.correct).map((e) => e.value).sort(), g = (e, t, n) => {
|
|
75
|
+
let i = h(e.choices);
|
|
76
|
+
return n && n.value ? r((n.value[t].value || []).sort(), i) : !1;
|
|
77
|
+
}, { translator: _ } = e, v = (e, t, n) => (r) => {
|
|
256
78
|
let i = {
|
|
257
79
|
label: r.label,
|
|
258
80
|
value: r.value
|
|
@@ -262,95 +84,95 @@ var Ee = (e) => e && e.filter((e) => e.correct).map((e) => e.value).sort(), De =
|
|
|
262
84
|
e === "default" ? i.feedback = n[r.correct ? "correct" : "incorrect"] : e === "custom" && (i.feedback = r.feedback.value);
|
|
263
85
|
}
|
|
264
86
|
return i;
|
|
265
|
-
},
|
|
87
|
+
}, y = (e, t, n, r) => {
|
|
266
88
|
let i = Object.assign({
|
|
267
89
|
correct: "Correct",
|
|
268
90
|
incorrect: "Incorrect"
|
|
269
|
-
}, e.defaultFeedback), a = e.choices ? e.choices.map(
|
|
91
|
+
}, e.defaultFeedback), a = e.choices ? e.choices.map(v(e, r, i)) : [];
|
|
270
92
|
return {
|
|
271
93
|
...e,
|
|
272
94
|
choices: a,
|
|
273
95
|
disabled: r.mode !== "gather",
|
|
274
96
|
complete: { min: e.choices.filter((e) => e.correct).length },
|
|
275
|
-
responseCorrect: r.mode === "evaluate" ?
|
|
97
|
+
responseCorrect: r.mode === "evaluate" ? g(e, t, n) : void 0
|
|
276
98
|
};
|
|
277
|
-
},
|
|
99
|
+
}, b = (e, t) => ({
|
|
278
100
|
...t,
|
|
279
101
|
...e,
|
|
280
102
|
choicesLayout: e.choicesLayout || e.verticalMode === !1 && "horizontal" || "vertical"
|
|
281
|
-
}),
|
|
282
|
-
...
|
|
103
|
+
}), x = ({ partA: e = {}, partB: t = {}, language: n, ...r }) => ({
|
|
104
|
+
...a,
|
|
283
105
|
...r,
|
|
284
|
-
partA:
|
|
285
|
-
...
|
|
106
|
+
partA: b(e, {
|
|
107
|
+
...a.partA,
|
|
286
108
|
language: n
|
|
287
109
|
}),
|
|
288
|
-
partB:
|
|
289
|
-
...
|
|
110
|
+
partB: b(t, {
|
|
111
|
+
...a.partB,
|
|
290
112
|
language: n
|
|
291
113
|
})
|
|
292
114
|
});
|
|
293
|
-
async function
|
|
294
|
-
let
|
|
295
|
-
|
|
296
|
-
}),
|
|
297
|
-
!
|
|
298
|
-
let
|
|
299
|
-
if (!
|
|
115
|
+
async function S(e, r, i, a) {
|
|
116
|
+
let o = x(e), s = y(o.partA, "partA", r, i), c = y(o.partB, "partB", r, i), l = {}, u = (e) => (t, n, r) => new Promise((t) => {
|
|
117
|
+
l[e] = r.shuffledValues, t();
|
|
118
|
+
}), p = n(r, "value.partA"), m = f(o.partA, p, i), { choices: h } = s || {}, { choices: g } = c || {};
|
|
119
|
+
!m && h && h.length && (s.choices = await d(h, { shuffledValues: (r.shuffledValues || {}).partA }, u("partA"), "value"));
|
|
120
|
+
let v = n(r, "value.partB");
|
|
121
|
+
if (!f(o.partB, v, i) && g && g.length && (c.choices = await d(g, { shuffledValues: (r.shuffledValues || {}).partB }, u("partB"), "value")), t(l) || a && typeof a == "function" && a(r.id, r.element, { shuffledValues: l }).catch((e) => {
|
|
300
122
|
console.error("update session failed", e);
|
|
301
|
-
}),
|
|
302
|
-
let e =
|
|
303
|
-
|
|
123
|
+
}), o.partLabels) {
|
|
124
|
+
let e = o.language;
|
|
125
|
+
s.partLabel = _.t("ebsr.part", {
|
|
304
126
|
lng: e,
|
|
305
|
-
index:
|
|
306
|
-
}),
|
|
127
|
+
index: o.partLabelType === "Letters" ? "A" : "1"
|
|
128
|
+
}), c.partLabel = _.t("ebsr.part", {
|
|
307
129
|
lng: e,
|
|
308
|
-
index:
|
|
130
|
+
index: o.partLabelType === "Letters" ? "B" : "2"
|
|
309
131
|
});
|
|
310
|
-
} else
|
|
311
|
-
return
|
|
132
|
+
} else s.partLabel = void 0, c.partLabel = void 0;
|
|
133
|
+
return i.role === "instructor" && (i.mode === "view" || i.mode === "evaluate") ? (s.teacherInstructions = o.partA.teacherInstructionsEnabled ? o.partA.teacherInstructions : null, c.teacherInstructions = o.partB.teacherInstructionsEnabled ? o.partB.teacherInstructions : null) : (s.teacherInstructions = null, c.teacherInstructions = null), s.prompt = o.partA.promptEnabled ? o.partA.prompt : null, c.prompt = o.partB.promptEnabled ? o.partB.prompt : null, new Promise((e) => {
|
|
312
134
|
e({
|
|
313
|
-
disabled:
|
|
314
|
-
mode:
|
|
315
|
-
extraCSSRules:
|
|
316
|
-
partA:
|
|
317
|
-
partB:
|
|
135
|
+
disabled: i.mode !== "gather",
|
|
136
|
+
mode: i.mode,
|
|
137
|
+
extraCSSRules: o.extraCSSRules,
|
|
138
|
+
partA: s,
|
|
139
|
+
partB: c
|
|
318
140
|
});
|
|
319
141
|
});
|
|
320
142
|
}
|
|
321
|
-
var
|
|
143
|
+
var C = (e = {}) => new Promise((t) => {
|
|
322
144
|
t({
|
|
323
|
-
...
|
|
145
|
+
...a,
|
|
324
146
|
...e
|
|
325
147
|
});
|
|
326
|
-
}),
|
|
327
|
-
let { choices: i = [] } = e && e[n] || {}, a = i.length, { value: o } = t || {}, s = (e) => !!(o || []).find((t) => t === e.value), c = (e) =>
|
|
148
|
+
}), w = (e) => e.correct === !0, T = (e, t, n, r) => {
|
|
149
|
+
let { choices: i = [] } = e && e[n] || {}, a = i.length, { value: o } = t || {}, s = (e) => !!(o || []).find((t) => t === e.value), c = (e) => w(e) && !s(e), l = (e) => !w(e) && s(e), u = i.reduce((e, t) => c(t) || l(t) ? e - 1 : e, i.length);
|
|
328
150
|
return !r && u < a ? 0 : parseFloat(a ? (u / a).toFixed(2) : 0);
|
|
329
|
-
},
|
|
151
|
+
}, E = (e, t, n) => {
|
|
330
152
|
let r = [];
|
|
331
153
|
if (!t || !t.value) return r.push("Student did not answer the question."), r;
|
|
332
|
-
let { value: i } = t, { partA: a, partB: o } = i, s =
|
|
154
|
+
let { value: i } = t, { partA: a, partB: o } = i, s = p.enabled(e, n);
|
|
333
155
|
r.push(`Scoring method: ${s ? "partial scoring" : "all-or-nothing scoring"}.`);
|
|
334
156
|
let c = e.partA.choiceMode === "radio" ? "multiple-choice (radio)" : "multiple-select (checkbox)";
|
|
335
157
|
r.push(`Part A question type: ${c}.`);
|
|
336
158
|
let l = a?.value || [], u = (e.partA.choices || []).filter((e) => e.correct).map((e) => e.value), d = l.filter((e) => u.includes(e)), f = l.filter((e) => !u.includes(e));
|
|
337
159
|
l.length && r.push(`Part A: student selected ${l.length} choice(s) (${d.length} correct, ${f.length} incorrect).`);
|
|
338
|
-
let
|
|
339
|
-
r.push(`Part A score: ${
|
|
340
|
-
let
|
|
341
|
-
r.push(`Part B question type: ${
|
|
342
|
-
let
|
|
343
|
-
|
|
344
|
-
let
|
|
345
|
-
if (r.push(`Part B score: ${
|
|
160
|
+
let m = T(e, a, "partA", s);
|
|
161
|
+
r.push(`Part A score: ${m}.`);
|
|
162
|
+
let h = e.partB.choiceMode === "radio" ? "multiple-choice (radio)" : "multiple-select (checkbox)";
|
|
163
|
+
r.push(`Part B question type: ${h}.`);
|
|
164
|
+
let g = o?.value || [], _ = (e.partB.choices || []).filter((e) => e.correct).map((e) => e.value), v = g.filter((e) => _.includes(e)), y = g.filter((e) => !_.includes(e));
|
|
165
|
+
g.length && r.push(`Part B: student selected ${g.length} choice(s) (${v.length} correct, ${y.length} incorrect).`);
|
|
166
|
+
let b = T(e, o, "partB", s);
|
|
167
|
+
if (r.push(`Part B score: ${b}.`), !s) r.push("Final score is awarded only if both Part A and Part B are completely correct."), r.push(`Final score: ${+(m === 1 && b === 1)}.`);
|
|
346
168
|
else {
|
|
347
169
|
r.push("With partial scoring enabled, Part A must be correct to earn any credit.");
|
|
348
170
|
let e = 0;
|
|
349
|
-
|
|
171
|
+
m === 1 && b === 1 ? e = 2 : m === 1 && b < 1 && (e = 1), r.push(`Final score: ${e}.`);
|
|
350
172
|
}
|
|
351
173
|
return r;
|
|
352
174
|
};
|
|
353
|
-
function
|
|
175
|
+
function D(e, t, n) {
|
|
354
176
|
return new Promise((r) => {
|
|
355
177
|
let { value: i } = t || {};
|
|
356
178
|
if ((!t || !i) && r({
|
|
@@ -360,7 +182,7 @@ function je(e, t, n) {
|
|
|
360
182
|
empty: !0,
|
|
361
183
|
logTrace: ["Student did not answer the question."]
|
|
362
184
|
}), i) {
|
|
363
|
-
let { partA: a, partB: o } = i || {}, s =
|
|
185
|
+
let { partA: a, partB: o } = i || {}, s = p.enabled(e, n), c = T(e, a, "partA", s), l = T(e, o, "partB", s), u = E(e, t, n);
|
|
364
186
|
r(s ? c === 1 ? l === 1 ? {
|
|
365
187
|
score: 2,
|
|
366
188
|
scoreA: c,
|
|
@@ -389,15 +211,15 @@ function je(e, t, n) {
|
|
|
389
211
|
}
|
|
390
212
|
});
|
|
391
213
|
}
|
|
392
|
-
var
|
|
214
|
+
var O = (e) => {
|
|
393
215
|
let t = [];
|
|
394
216
|
return e.forEach((e) => {
|
|
395
217
|
let { correct: n, value: r } = e;
|
|
396
218
|
n && t.push(r);
|
|
397
219
|
}), t;
|
|
398
|
-
},
|
|
220
|
+
}, k = (e, t) => new Promise((n) => {
|
|
399
221
|
if (t.mode !== "evaluate" && t.role === "instructor") {
|
|
400
|
-
let { partA: t, partB: r } = e, i =
|
|
222
|
+
let { partA: t, partB: r } = e, i = O(t.choices), a = O(r.choices);
|
|
401
223
|
n({
|
|
402
224
|
value: {
|
|
403
225
|
partA: {
|
|
@@ -412,24 +234,24 @@ var Z = (e) => {
|
|
|
412
234
|
id: "1"
|
|
413
235
|
});
|
|
414
236
|
} else n(null);
|
|
415
|
-
}),
|
|
416
|
-
let { choices:
|
|
417
|
-
["teacherInstructions", "prompt"].forEach((
|
|
418
|
-
t
|
|
419
|
-
}),
|
|
420
|
-
let { correct: r, value: i, label:
|
|
421
|
-
r && (
|
|
237
|
+
}), A = (e) => (e || "").replace(/(<(?!img|iframe|source)([^>]+)>)/gi, ""), j = (e = {}, n = {}) => {
|
|
238
|
+
let { choices: r } = e, { minAnswerChoices: i = 2, maxAnswerChoices: a } = n, o = [...r || []].reverse(), s = {}, c = {}, l = {}, u = !1;
|
|
239
|
+
["teacherInstructions", "prompt"].forEach((t) => {
|
|
240
|
+
n[t]?.required && !A(e[t]) && (s[t] = "This field is required.");
|
|
241
|
+
}), o.forEach((e, t) => {
|
|
242
|
+
let { correct: r, value: i, label: a, rationale: s } = e;
|
|
243
|
+
r && (u = !0), A(a) ? o.slice(t + 1).some((e) => e.label === a) && (c[i] = "Content should be unique.") : c[i] = "Content should not be empty.", n.rationale?.required && !A(s) && (l[i] = "This field is required.");
|
|
422
244
|
});
|
|
423
|
-
let
|
|
424
|
-
return
|
|
425
|
-
},
|
|
245
|
+
let d = (r || []).length;
|
|
246
|
+
return d < i ? s.answerChoices = `There should be at least ${i} choices defined.` : d > a && (s.answerChoices = `No more than ${a} choices should be defined.`), u || (s.correctResponse = "No correct response defined."), t(c) || (s.choices = c), t(l) || (s.rationale = l), s;
|
|
247
|
+
}, M = (e = {}, t = {}) => {
|
|
426
248
|
let { partA: n, partB: r } = e || {}, { partA: i, partB: a } = t || {};
|
|
427
249
|
return {
|
|
428
|
-
partA:
|
|
429
|
-
partB:
|
|
250
|
+
partA: j(n, i),
|
|
251
|
+
partB: j(r, a)
|
|
430
252
|
};
|
|
431
253
|
};
|
|
432
254
|
//#endregion
|
|
433
|
-
export {
|
|
255
|
+
export { k as createCorrectResponseSession, C as createDefaultModel, E as getLogTrace, S as model, x as normalize, D as outcome, M as validate };
|
|
434
256
|
|
|
435
257
|
//# sourceMappingURL=index.js.map
|