@algorisys/yappydraw 0.8.253
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/LICENSE +661 -0
- package/README.md +45 -0
- package/chunks/AllPackages-DNX4gUvL.js +6879 -0
- package/chunks/BaseConfiguration-iE_YypNt.js +4401 -0
- package/chunks/Entities-XwxJEcR3.js +467 -0
- package/chunks/Factory--zguTNZ7.js +2768 -0
- package/chunks/InputJax-BYq2tqUz.js +42 -0
- package/chunks/MathItem-DD5NNBjZ.js +76 -0
- package/chunks/Options-BStFr0zv.js +199 -0
- package/chunks/PrioritizedList-TjDg4i-s.js +39 -0
- package/chunks/Styles-DdTYCumM.js +397 -0
- package/chunks/TeXAtom-Bp5xoo7F.js +2175 -0
- package/chunks/ai-providers-CycU8sO1.js +229 -0
- package/chunks/canva-ai-BREIRXSl.js +285 -0
- package/chunks/design-generator-C89SKTqv.js +149 -0
- package/chunks/drawing-engine-DLFI-cNg.js +903 -0
- package/chunks/drawings-store-C-PoHakg.js +109 -0
- package/chunks/ds-operations-D5B9Z5vO.js +253 -0
- package/chunks/export-game-DOlM1w0F.js +104 -0
- package/chunks/game-runtime-Hn9umSvi.js +346 -0
- package/chunks/gifenc.esm-48qFK9lH.js +278 -0
- package/chunks/html-DxnOvKy4.js +1694 -0
- package/chunks/image-utils-CJQBaGoQ.js +37 -0
- package/chunks/index-Bm3Inzn8.js +62744 -0
- package/chunks/lengths-DNFHULBn.js +70 -0
- package/chunks/liteAdaptor-BZby1Qz2.js +919 -0
- package/chunks/lucide-solid-D_6t_rbY.js +35452 -0
- package/chunks/markdown-to-slides-_1GIcD8M.js +96 -0
- package/chunks/mathjax-CnUrFnFS.js +117 -0
- package/chunks/mathjax-D6cR72fZ.js +26 -0
- package/chunks/morph-animator-7qX2s9j_.js +25 -0
- package/chunks/onboarding-tour-CthiVc3W.js +192 -0
- package/chunks/rocket-settings-CU8w9S9I.js +100 -0
- package/chunks/search-CnWoMV6A.js +384 -0
- package/chunks/slide-generator-BG0Oacui.js +553 -0
- package/chunks/svg-BvVc02XL.js +12498 -0
- package/chunks/tex-Cfi4Kfun.js +442 -0
- package/chunks/tinyfly-engine-Wfa50sVI.js +1804 -0
- package/chunks/turntable-ai-Bfq-oSsD.js +120 -0
- package/chunks/yappy-NspTXSPk.css +1 -0
- package/package.json +21 -0
- package/yappy.d.ts +34 -0
- package/yappy.js +9 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { r as f } from "./Options-BStFr0zv.js";
|
|
2
|
+
import { d as l } from "./Factory--zguTNZ7.js";
|
|
3
|
+
var e = {}, a;
|
|
4
|
+
function y() {
|
|
5
|
+
if (a) return e;
|
|
6
|
+
a = 1, Object.defineProperty(e, "__esModule", { value: !0 }), e.AbstractInputJax = void 0;
|
|
7
|
+
var o = f(), i = l(), s = (function() {
|
|
8
|
+
function t(r) {
|
|
9
|
+
r === void 0 && (r = {}), this.adaptor = null, this.mmlFactory = null;
|
|
10
|
+
var n = this.constructor;
|
|
11
|
+
this.options = (0, o.userOptions)((0, o.defaultOptions)({}, n.OPTIONS), r), this.preFilters = new i.FunctionList(), this.postFilters = new i.FunctionList();
|
|
12
|
+
}
|
|
13
|
+
return Object.defineProperty(t.prototype, "name", {
|
|
14
|
+
get: function() {
|
|
15
|
+
return this.constructor.NAME;
|
|
16
|
+
},
|
|
17
|
+
enumerable: !1,
|
|
18
|
+
configurable: !0
|
|
19
|
+
}), t.prototype.setAdaptor = function(r) {
|
|
20
|
+
this.adaptor = r;
|
|
21
|
+
}, t.prototype.setMmlFactory = function(r) {
|
|
22
|
+
this.mmlFactory = r;
|
|
23
|
+
}, t.prototype.initialize = function() {
|
|
24
|
+
}, t.prototype.reset = function() {
|
|
25
|
+
}, Object.defineProperty(t.prototype, "processStrings", {
|
|
26
|
+
get: function() {
|
|
27
|
+
return !0;
|
|
28
|
+
},
|
|
29
|
+
enumerable: !1,
|
|
30
|
+
configurable: !0
|
|
31
|
+
}), t.prototype.findMath = function(r, n) {
|
|
32
|
+
return [];
|
|
33
|
+
}, t.prototype.executeFilters = function(r, n, p, c) {
|
|
34
|
+
var u = { math: n, document: p, data: c };
|
|
35
|
+
return r.execute(u), u.data;
|
|
36
|
+
}, t.NAME = "generic", t.OPTIONS = {}, t;
|
|
37
|
+
})();
|
|
38
|
+
return e.AbstractInputJax = s, e;
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
y as r
|
|
42
|
+
};
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
var u = {}, T;
|
|
2
|
+
function S() {
|
|
3
|
+
return T || (T = 1, (function(i) {
|
|
4
|
+
Object.defineProperty(i, "__esModule", { value: !0 }), i.newState = i.STATE = i.AbstractMathItem = i.protoItem = void 0;
|
|
5
|
+
function r(n, t, e, o, h, E, a) {
|
|
6
|
+
a === void 0 && (a = null);
|
|
7
|
+
var c = {
|
|
8
|
+
open: n,
|
|
9
|
+
math: t,
|
|
10
|
+
close: e,
|
|
11
|
+
n: o,
|
|
12
|
+
start: { n: h },
|
|
13
|
+
end: { n: E },
|
|
14
|
+
display: a
|
|
15
|
+
};
|
|
16
|
+
return c;
|
|
17
|
+
}
|
|
18
|
+
i.protoItem = r;
|
|
19
|
+
var s = (function() {
|
|
20
|
+
function n(t, e, o, h, E) {
|
|
21
|
+
o === void 0 && (o = !0), h === void 0 && (h = { i: 0, n: 0, delim: "" }), E === void 0 && (E = { i: 0, n: 0, delim: "" }), this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {}, this._state = i.STATE.UNPROCESSED, this.math = t, this.inputJax = e, this.display = o, this.start = h, this.end = E, this.root = null, this.typesetRoot = null, this.metrics = {}, this.inputData = {}, this.outputData = {};
|
|
22
|
+
}
|
|
23
|
+
return Object.defineProperty(n.prototype, "isEscaped", {
|
|
24
|
+
get: function() {
|
|
25
|
+
return this.display === null;
|
|
26
|
+
},
|
|
27
|
+
enumerable: !1,
|
|
28
|
+
configurable: !0
|
|
29
|
+
}), n.prototype.render = function(t) {
|
|
30
|
+
t.renderActions.renderMath(this, t);
|
|
31
|
+
}, n.prototype.rerender = function(t, e) {
|
|
32
|
+
e === void 0 && (e = i.STATE.RERENDER), this.state() >= e && this.state(e - 1), t.renderActions.renderMath(this, t, e);
|
|
33
|
+
}, n.prototype.convert = function(t, e) {
|
|
34
|
+
e === void 0 && (e = i.STATE.LAST), t.renderActions.renderConvert(this, t, e);
|
|
35
|
+
}, n.prototype.compile = function(t) {
|
|
36
|
+
this.state() < i.STATE.COMPILED && (this.root = this.inputJax.compile(this, t), this.state(i.STATE.COMPILED));
|
|
37
|
+
}, n.prototype.typeset = function(t) {
|
|
38
|
+
this.state() < i.STATE.TYPESET && (this.typesetRoot = t.outputJax[this.isEscaped ? "escaped" : "typeset"](this, t), this.state(i.STATE.TYPESET));
|
|
39
|
+
}, n.prototype.updateDocument = function(t) {
|
|
40
|
+
}, n.prototype.removeFromDocument = function(t) {
|
|
41
|
+
}, n.prototype.setMetrics = function(t, e, o, h, E) {
|
|
42
|
+
this.metrics = {
|
|
43
|
+
em: t,
|
|
44
|
+
ex: e,
|
|
45
|
+
containerWidth: o,
|
|
46
|
+
lineWidth: h,
|
|
47
|
+
scale: E
|
|
48
|
+
};
|
|
49
|
+
}, n.prototype.state = function(t, e) {
|
|
50
|
+
return t === void 0 && (t = null), e === void 0 && (e = !1), t != null && (t < i.STATE.INSERTED && this._state >= i.STATE.INSERTED && this.removeFromDocument(e), t < i.STATE.TYPESET && this._state >= i.STATE.TYPESET && (this.outputData = {}), t < i.STATE.COMPILED && this._state >= i.STATE.COMPILED && (this.inputData = {}), this._state = t), this._state;
|
|
51
|
+
}, n.prototype.reset = function(t) {
|
|
52
|
+
t === void 0 && (t = !1), this.state(i.STATE.UNPROCESSED, t);
|
|
53
|
+
}, n;
|
|
54
|
+
})();
|
|
55
|
+
i.AbstractMathItem = s, i.STATE = {
|
|
56
|
+
UNPROCESSED: 0,
|
|
57
|
+
FINDMATH: 10,
|
|
58
|
+
COMPILED: 20,
|
|
59
|
+
CONVERT: 100,
|
|
60
|
+
METRICS: 110,
|
|
61
|
+
RERENDER: 125,
|
|
62
|
+
TYPESET: 150,
|
|
63
|
+
INSERTED: 200,
|
|
64
|
+
LAST: 1e4
|
|
65
|
+
};
|
|
66
|
+
function f(n, t) {
|
|
67
|
+
if (n in i.STATE)
|
|
68
|
+
throw Error("State " + n + " already exists");
|
|
69
|
+
i.STATE[n] = t;
|
|
70
|
+
}
|
|
71
|
+
i.newState = f;
|
|
72
|
+
})(u)), u;
|
|
73
|
+
}
|
|
74
|
+
export {
|
|
75
|
+
S as r
|
|
76
|
+
};
|
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
var h = {}, R;
|
|
2
|
+
function J() {
|
|
3
|
+
return R || (R = 1, (function(n) {
|
|
4
|
+
var A = h && h.__values || function(r) {
|
|
5
|
+
var e = typeof Symbol == "function" && Symbol.iterator, a = e && r[e], t = 0;
|
|
6
|
+
if (a) return a.call(r);
|
|
7
|
+
if (r && typeof r.length == "number") return {
|
|
8
|
+
next: function() {
|
|
9
|
+
return r && t >= r.length && (r = void 0), { value: r && r[t++], done: !r };
|
|
10
|
+
}
|
|
11
|
+
};
|
|
12
|
+
throw new TypeError(e ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
13
|
+
}, m = h && h.__read || function(r, e) {
|
|
14
|
+
var a = typeof Symbol == "function" && r[Symbol.iterator];
|
|
15
|
+
if (!a) return r;
|
|
16
|
+
var t = a.call(r), u, f = [], o;
|
|
17
|
+
try {
|
|
18
|
+
for (; (e === void 0 || e-- > 0) && !(u = t.next()).done; ) f.push(u.value);
|
|
19
|
+
} catch (i) {
|
|
20
|
+
o = { error: i };
|
|
21
|
+
} finally {
|
|
22
|
+
try {
|
|
23
|
+
u && !u.done && (a = t.return) && a.call(t);
|
|
24
|
+
} finally {
|
|
25
|
+
if (o) throw o.error;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
return f;
|
|
29
|
+
}, w = h && h.__spreadArray || function(r, e, a) {
|
|
30
|
+
if (a || arguments.length === 2) for (var t = 0, u = e.length, f; t < u; t++)
|
|
31
|
+
(f || !(t in e)) && (f || (f = Array.prototype.slice.call(e, 0, t)), f[t] = e[t]);
|
|
32
|
+
return r.concat(f || Array.prototype.slice.call(e));
|
|
33
|
+
};
|
|
34
|
+
Object.defineProperty(n, "__esModule", { value: !0 }), n.lookup = n.separateOptions = n.selectOptionsFromKeys = n.selectOptions = n.userOptions = n.defaultOptions = n.insert = n.copy = n.keys = n.makeArray = n.expandable = n.Expandable = n.OPTIONS = n.REMOVE = n.APPEND = n.isObject = void 0;
|
|
35
|
+
var j = {}.constructor;
|
|
36
|
+
function g(r) {
|
|
37
|
+
return typeof r == "object" && r !== null && (r.constructor === j || r.constructor === s);
|
|
38
|
+
}
|
|
39
|
+
n.isObject = g, n.APPEND = "[+]", n.REMOVE = "[-]", n.OPTIONS = {
|
|
40
|
+
invalidOption: "warn",
|
|
41
|
+
optionError: function(r, e) {
|
|
42
|
+
if (n.OPTIONS.invalidOption === "fatal")
|
|
43
|
+
throw new Error(r);
|
|
44
|
+
console.warn("MathJax: " + r);
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
var s = /* @__PURE__ */ (function() {
|
|
48
|
+
function r() {
|
|
49
|
+
}
|
|
50
|
+
return r;
|
|
51
|
+
})();
|
|
52
|
+
n.Expandable = s;
|
|
53
|
+
function M(r) {
|
|
54
|
+
return Object.assign(Object.create(s.prototype), r);
|
|
55
|
+
}
|
|
56
|
+
n.expandable = M;
|
|
57
|
+
function V(r) {
|
|
58
|
+
return Array.isArray(r) ? r : [r];
|
|
59
|
+
}
|
|
60
|
+
n.makeArray = V;
|
|
61
|
+
function b(r) {
|
|
62
|
+
return r ? Object.keys(r).concat(Object.getOwnPropertySymbols(r)) : [];
|
|
63
|
+
}
|
|
64
|
+
n.keys = b;
|
|
65
|
+
function p(r) {
|
|
66
|
+
var e, a, t = {};
|
|
67
|
+
try {
|
|
68
|
+
for (var u = A(b(r)), f = u.next(); !f.done; f = u.next()) {
|
|
69
|
+
var o = f.value, i = Object.getOwnPropertyDescriptor(r, o), v = i.value;
|
|
70
|
+
Array.isArray(v) ? i.value = E([], v, !1) : g(v) && (i.value = p(v)), i.enumerable && (t[o] = i);
|
|
71
|
+
}
|
|
72
|
+
} catch (l) {
|
|
73
|
+
e = { error: l };
|
|
74
|
+
} finally {
|
|
75
|
+
try {
|
|
76
|
+
f && !f.done && (a = u.return) && a.call(u);
|
|
77
|
+
} finally {
|
|
78
|
+
if (e) throw e.error;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return Object.defineProperties(r.constructor === s ? M({}) : {}, t);
|
|
82
|
+
}
|
|
83
|
+
n.copy = p;
|
|
84
|
+
function E(r, e, a) {
|
|
85
|
+
var t, u;
|
|
86
|
+
a === void 0 && (a = !0);
|
|
87
|
+
var f = function(l) {
|
|
88
|
+
if (a && r[l] === void 0 && r.constructor !== s)
|
|
89
|
+
return typeof l == "symbol" && (l = l.toString()), n.OPTIONS.optionError('Invalid option "'.concat(l, '" (no default value).'), l), "continue";
|
|
90
|
+
var c = e[l], y = r[l];
|
|
91
|
+
if (g(c) && y !== null && (typeof y == "object" || typeof y == "function")) {
|
|
92
|
+
var O = b(c);
|
|
93
|
+
Array.isArray(y) && (O.length === 1 && (O[0] === n.APPEND || O[0] === n.REMOVE) && Array.isArray(c[O[0]]) || O.length === 2 && O.sort().join(",") === n.APPEND + "," + n.REMOVE && Array.isArray(c[n.APPEND]) && Array.isArray(c[n.REMOVE])) ? (c[n.REMOVE] && (y = r[l] = y.filter(function(d) {
|
|
94
|
+
return c[n.REMOVE].indexOf(d) < 0;
|
|
95
|
+
})), c[n.APPEND] && (r[l] = w(w([], m(y), !1), m(c[n.APPEND]), !1))) : E(y, c, a);
|
|
96
|
+
} else Array.isArray(c) ? (r[l] = [], E(r[l], c, !1)) : g(c) ? r[l] = p(c) : r[l] = c;
|
|
97
|
+
};
|
|
98
|
+
try {
|
|
99
|
+
for (var o = A(b(e)), i = o.next(); !i.done; i = o.next()) {
|
|
100
|
+
var v = i.value;
|
|
101
|
+
f(v);
|
|
102
|
+
}
|
|
103
|
+
} catch (l) {
|
|
104
|
+
t = { error: l };
|
|
105
|
+
} finally {
|
|
106
|
+
try {
|
|
107
|
+
i && !i.done && (u = o.return) && u.call(o);
|
|
108
|
+
} finally {
|
|
109
|
+
if (t) throw t.error;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
return r;
|
|
113
|
+
}
|
|
114
|
+
n.insert = E;
|
|
115
|
+
function T(r) {
|
|
116
|
+
for (var e = [], a = 1; a < arguments.length; a++)
|
|
117
|
+
e[a - 1] = arguments[a];
|
|
118
|
+
return e.forEach(function(t) {
|
|
119
|
+
return E(r, t, !1);
|
|
120
|
+
}), r;
|
|
121
|
+
}
|
|
122
|
+
n.defaultOptions = T;
|
|
123
|
+
function I(r) {
|
|
124
|
+
for (var e = [], a = 1; a < arguments.length; a++)
|
|
125
|
+
e[a - 1] = arguments[a];
|
|
126
|
+
return e.forEach(function(t) {
|
|
127
|
+
return E(r, t, !0);
|
|
128
|
+
}), r;
|
|
129
|
+
}
|
|
130
|
+
n.userOptions = I;
|
|
131
|
+
function D(r) {
|
|
132
|
+
for (var e, a, t = [], u = 1; u < arguments.length; u++)
|
|
133
|
+
t[u - 1] = arguments[u];
|
|
134
|
+
var f = {};
|
|
135
|
+
try {
|
|
136
|
+
for (var o = A(t), i = o.next(); !i.done; i = o.next()) {
|
|
137
|
+
var v = i.value;
|
|
138
|
+
r.hasOwnProperty(v) && (f[v] = r[v]);
|
|
139
|
+
}
|
|
140
|
+
} catch (l) {
|
|
141
|
+
e = { error: l };
|
|
142
|
+
} finally {
|
|
143
|
+
try {
|
|
144
|
+
i && !i.done && (a = o.return) && a.call(o);
|
|
145
|
+
} finally {
|
|
146
|
+
if (e) throw e.error;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
return f;
|
|
150
|
+
}
|
|
151
|
+
n.selectOptions = D;
|
|
152
|
+
function F(r, e) {
|
|
153
|
+
return D.apply(void 0, w([r], m(Object.keys(e)), !1));
|
|
154
|
+
}
|
|
155
|
+
n.selectOptionsFromKeys = F;
|
|
156
|
+
function K(r) {
|
|
157
|
+
for (var e, a, t, u, f = [], o = 1; o < arguments.length; o++)
|
|
158
|
+
f[o - 1] = arguments[o];
|
|
159
|
+
var i = [];
|
|
160
|
+
try {
|
|
161
|
+
for (var v = A(f), l = v.next(); !l.done; l = v.next()) {
|
|
162
|
+
var c = l.value, y = {}, O = {};
|
|
163
|
+
try {
|
|
164
|
+
for (var d = (t = void 0, A(Object.keys(r || {}))), P = d.next(); !P.done; P = d.next()) {
|
|
165
|
+
var N = P.value;
|
|
166
|
+
(c[N] === void 0 ? O : y)[N] = r[N];
|
|
167
|
+
}
|
|
168
|
+
} catch (S) {
|
|
169
|
+
t = { error: S };
|
|
170
|
+
} finally {
|
|
171
|
+
try {
|
|
172
|
+
P && !P.done && (u = d.return) && u.call(d);
|
|
173
|
+
} finally {
|
|
174
|
+
if (t) throw t.error;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
i.push(y), r = O;
|
|
178
|
+
}
|
|
179
|
+
} catch (S) {
|
|
180
|
+
e = { error: S };
|
|
181
|
+
} finally {
|
|
182
|
+
try {
|
|
183
|
+
l && !l.done && (a = v.return) && a.call(v);
|
|
184
|
+
} finally {
|
|
185
|
+
if (e) throw e.error;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
return i.unshift(r), i;
|
|
189
|
+
}
|
|
190
|
+
n.separateOptions = K;
|
|
191
|
+
function q(r, e, a) {
|
|
192
|
+
return a === void 0 && (a = null), e.hasOwnProperty(r) ? e[r] : a;
|
|
193
|
+
}
|
|
194
|
+
n.lookup = q;
|
|
195
|
+
})(h)), h;
|
|
196
|
+
}
|
|
197
|
+
export {
|
|
198
|
+
J as r
|
|
199
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function u(i) {
|
|
2
|
+
return i && i.__esModule && Object.prototype.hasOwnProperty.call(i, "default") ? i.default : i;
|
|
3
|
+
}
|
|
4
|
+
var o = {}, n;
|
|
5
|
+
function d() {
|
|
6
|
+
if (n) return o;
|
|
7
|
+
n = 1, Object.defineProperty(o, "__esModule", { value: !0 }), o.PrioritizedList = void 0;
|
|
8
|
+
var i = (function() {
|
|
9
|
+
function r() {
|
|
10
|
+
this.items = [], this.items = [];
|
|
11
|
+
}
|
|
12
|
+
return r.prototype[Symbol.iterator] = function() {
|
|
13
|
+
var e = 0, t = this.items;
|
|
14
|
+
return {
|
|
15
|
+
next: function() {
|
|
16
|
+
return { value: t[e++], done: e > t.length };
|
|
17
|
+
}
|
|
18
|
+
};
|
|
19
|
+
}, r.prototype.add = function(e, t) {
|
|
20
|
+
t === void 0 && (t = r.DEFAULTPRIORITY);
|
|
21
|
+
var s = this.items.length;
|
|
22
|
+
do
|
|
23
|
+
s--;
|
|
24
|
+
while (s >= 0 && t < this.items[s].priority);
|
|
25
|
+
return this.items.splice(s + 1, 0, { item: e, priority: t }), e;
|
|
26
|
+
}, r.prototype.remove = function(e) {
|
|
27
|
+
var t = this.items.length;
|
|
28
|
+
do
|
|
29
|
+
t--;
|
|
30
|
+
while (t >= 0 && this.items[t].item !== e);
|
|
31
|
+
t >= 0 && this.items.splice(t, 1);
|
|
32
|
+
}, r.DEFAULTPRIORITY = 5, r;
|
|
33
|
+
})();
|
|
34
|
+
return o.PrioritizedList = i, o;
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
u as g,
|
|
38
|
+
d as r
|
|
39
|
+
};
|