@famibee/skynovel 2.0.3 → 2.0.4
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/SysBase.js +229 -200
- package/dist/SysBase.js.map +1 -1
- package/dist/pixi.js +2128 -2770
- package/dist/pixi.js.map +1 -1
- package/dist/web.js +49 -533
- package/dist/web.js.map +1 -1
- package/dist_app/SysBase.js +229 -200
- package/dist_app/SysBase.js.map +1 -1
- package/dist_app/appMain.js +1 -21
- package/dist_app/appMain.js.map +1 -1
- package/package.json +1 -27
package/dist/web.js
CHANGED
|
@@ -1,522 +1,38 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { t as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
create: i(),
|
|
11
|
-
trim: a(),
|
|
12
|
-
bind: o,
|
|
13
|
-
slice: s,
|
|
14
|
-
each: c,
|
|
15
|
-
map: l,
|
|
16
|
-
pluck: u,
|
|
17
|
-
isList: d,
|
|
18
|
-
isFunction: p,
|
|
19
|
-
isObject: m,
|
|
20
|
-
Global: typeof window < "u" ? window : global
|
|
21
|
-
};
|
|
22
|
-
function r() {
|
|
23
|
-
return Object.assign ? Object.assign : function(e, t, n, r) {
|
|
24
|
-
for (var i = 1; i < arguments.length; i++) c(Object(arguments[i]), function(t, n) {
|
|
25
|
-
e[n] = t;
|
|
26
|
-
});
|
|
27
|
-
return e;
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
function i() {
|
|
31
|
-
if (Object.create) return function(e, t, r, i) {
|
|
32
|
-
var a = s(arguments, 1);
|
|
33
|
-
return n.apply(this, [Object.create(e)].concat(a));
|
|
34
|
-
};
|
|
35
|
-
{
|
|
36
|
-
function e() {}
|
|
37
|
-
return function(t, r, i, a) {
|
|
38
|
-
var o = s(arguments, 1);
|
|
39
|
-
return e.prototype = t, n.apply(this, [new e()].concat(o));
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
function a() {
|
|
44
|
-
return String.prototype.trim ? function(e) {
|
|
45
|
-
return String.prototype.trim.call(e);
|
|
46
|
-
} : function(e) {
|
|
47
|
-
return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function o(e, t) {
|
|
51
|
-
return function() {
|
|
52
|
-
return t.apply(e, Array.prototype.slice.call(arguments, 0));
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
function s(e, t) {
|
|
56
|
-
return Array.prototype.slice.call(e, t || 0);
|
|
57
|
-
}
|
|
58
|
-
function c(e, t) {
|
|
59
|
-
u(e, function(e, n) {
|
|
60
|
-
return t(e, n), !1;
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
function l(e, t) {
|
|
64
|
-
var n = d(e) ? [] : {};
|
|
65
|
-
return u(e, function(e, r) {
|
|
66
|
-
return n[r] = t(e, r), !1;
|
|
67
|
-
}), n;
|
|
68
|
-
}
|
|
69
|
-
function u(e, t) {
|
|
70
|
-
if (d(e)) {
|
|
71
|
-
for (var n = 0; n < e.length; n++) if (t(e[n], n)) return e[n];
|
|
72
|
-
} else for (var r in e) if (e.hasOwnProperty(r) && t(e[r], r)) return e[r];
|
|
73
|
-
}
|
|
74
|
-
function d(e) {
|
|
75
|
-
return e != null && typeof e != "function" && typeof e.length == "number";
|
|
76
|
-
}
|
|
77
|
-
function p(e) {
|
|
78
|
-
return e && {}.toString.call(e) === "[object Function]";
|
|
79
|
-
}
|
|
80
|
-
function m(e) {
|
|
81
|
-
return e && {}.toString.call(e) === "[object Object]";
|
|
82
|
-
}
|
|
83
|
-
})), require_store_engine = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
84
|
-
var n = require_util(), r = n.slice, i = n.pluck, a = n.each, o = n.bind, s = n.create, c = n.isList, l = n.isFunction, u = n.isObject;
|
|
85
|
-
t.exports = { createStore: m };
|
|
86
|
-
var d = {
|
|
87
|
-
version: "2.0.12",
|
|
88
|
-
enabled: !1,
|
|
89
|
-
get: function(e, t) {
|
|
90
|
-
var n = this.storage.read(this._namespacePrefix + e);
|
|
91
|
-
return this._deserialize(n, t);
|
|
92
|
-
},
|
|
93
|
-
set: function(e, t) {
|
|
94
|
-
return t === void 0 ? this.remove(e) : (this.storage.write(this._namespacePrefix + e, this._serialize(t)), t);
|
|
95
|
-
},
|
|
96
|
-
remove: function(e) {
|
|
97
|
-
this.storage.remove(this._namespacePrefix + e);
|
|
98
|
-
},
|
|
99
|
-
each: function(e) {
|
|
100
|
-
var t = this;
|
|
101
|
-
this.storage.each(function(n, r) {
|
|
102
|
-
e.call(t, t._deserialize(n), (r || "").replace(t._namespaceRegexp, ""));
|
|
103
|
-
});
|
|
104
|
-
},
|
|
105
|
-
clearAll: function() {
|
|
106
|
-
this.storage.clearAll();
|
|
107
|
-
},
|
|
108
|
-
hasNamespace: function(e) {
|
|
109
|
-
return this._namespacePrefix == "__storejs_" + e + "_";
|
|
110
|
-
},
|
|
111
|
-
createStore: function() {
|
|
112
|
-
return m.apply(this, arguments);
|
|
113
|
-
},
|
|
114
|
-
addPlugin: function(e) {
|
|
115
|
-
this._addPlugin(e);
|
|
116
|
-
},
|
|
117
|
-
namespace: function(e) {
|
|
118
|
-
return m(this.storage, this.plugins, e);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
function p() {
|
|
122
|
-
var e = typeof console > "u" ? null : console;
|
|
123
|
-
e && (e.warn ? e.warn : e.log).apply(e, arguments);
|
|
124
|
-
}
|
|
125
|
-
function m(e, t, n) {
|
|
126
|
-
n ||= "", e && !c(e) && (e = [e]), t && !c(t) && (t = [t]);
|
|
127
|
-
var m = n ? "__storejs_" + n + "_" : "", h = n ? RegExp("^" + m) : null;
|
|
128
|
-
if (!/^[a-zA-Z0-9_\-]*$/.test(n)) throw Error("store.js namespaces can only have alphanumerics + underscores and dashes");
|
|
129
|
-
var g = s({
|
|
130
|
-
_namespacePrefix: m,
|
|
131
|
-
_namespaceRegexp: h,
|
|
132
|
-
_testStorage: function(e) {
|
|
133
|
-
try {
|
|
134
|
-
var t = "__storejs__test__";
|
|
135
|
-
e.write(t, t);
|
|
136
|
-
var n = e.read(t) === t;
|
|
137
|
-
return e.remove(t), n;
|
|
138
|
-
} catch {
|
|
139
|
-
return !1;
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
_assignPluginFnProp: function(e, t) {
|
|
143
|
-
var n = this[t];
|
|
144
|
-
this[t] = function() {
|
|
145
|
-
var t = r(arguments, 0), i = this;
|
|
146
|
-
function o() {
|
|
147
|
-
if (n) return a(arguments, function(e, n) {
|
|
148
|
-
t[n] = e;
|
|
149
|
-
}), n.apply(i, t);
|
|
150
|
-
}
|
|
151
|
-
var s = [o].concat(t);
|
|
152
|
-
return e.apply(i, s);
|
|
153
|
-
};
|
|
154
|
-
},
|
|
155
|
-
_serialize: function(e) {
|
|
156
|
-
return JSON.stringify(e);
|
|
157
|
-
},
|
|
158
|
-
_deserialize: function(e, t) {
|
|
159
|
-
if (!e) return t;
|
|
160
|
-
var n = "";
|
|
161
|
-
try {
|
|
162
|
-
n = JSON.parse(e);
|
|
163
|
-
} catch {
|
|
164
|
-
n = e;
|
|
165
|
-
}
|
|
166
|
-
return n === void 0 ? t : n;
|
|
167
|
-
},
|
|
168
|
-
_addStorage: function(e) {
|
|
169
|
-
this.enabled || this._testStorage(e) && (this.storage = e, this.enabled = !0);
|
|
170
|
-
},
|
|
171
|
-
_addPlugin: function(e) {
|
|
172
|
-
var t = this;
|
|
173
|
-
if (c(e)) {
|
|
174
|
-
a(e, function(e) {
|
|
175
|
-
t._addPlugin(e);
|
|
176
|
-
});
|
|
177
|
-
return;
|
|
178
|
-
}
|
|
179
|
-
if (!i(this.plugins, function(t) {
|
|
180
|
-
return e === t;
|
|
181
|
-
})) {
|
|
182
|
-
if (this.plugins.push(e), !l(e)) throw Error("Plugins must be function values that return objects");
|
|
183
|
-
var n = e.call(this);
|
|
184
|
-
if (!u(n)) throw Error("Plugins must return an object of function properties");
|
|
185
|
-
a(n, function(n, r) {
|
|
186
|
-
if (!l(n)) throw Error("Bad plugin property: " + r + " from plugin " + e.name + ". Plugins should only return functions.");
|
|
187
|
-
t._assignPluginFnProp(n, r);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
},
|
|
191
|
-
addStorage: function(e) {
|
|
192
|
-
p("store.addStorage(storage) is deprecated. Use createStore([storages])"), this._addStorage(e);
|
|
193
|
-
}
|
|
194
|
-
}, d, { plugins: [] });
|
|
195
|
-
return g.raw = {}, a(g, function(e, t) {
|
|
196
|
-
l(e) && (g.raw[t] = o(g, e));
|
|
197
|
-
}), a(e, function(e) {
|
|
198
|
-
g._addStorage(e);
|
|
199
|
-
}), a(t, function(e) {
|
|
200
|
-
g._addPlugin(e);
|
|
201
|
-
}), g;
|
|
202
|
-
}
|
|
203
|
-
})), require_localStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
204
|
-
var n = require_util().Global;
|
|
205
|
-
t.exports = {
|
|
206
|
-
name: "localStorage",
|
|
207
|
-
read: i,
|
|
208
|
-
write: a,
|
|
209
|
-
each: o,
|
|
210
|
-
remove: s,
|
|
211
|
-
clearAll: c
|
|
212
|
-
};
|
|
213
|
-
function r() {
|
|
214
|
-
return n.localStorage;
|
|
215
|
-
}
|
|
216
|
-
function i(e) {
|
|
217
|
-
return r().getItem(e);
|
|
218
|
-
}
|
|
219
|
-
function a(e, t) {
|
|
220
|
-
return r().setItem(e, t);
|
|
221
|
-
}
|
|
222
|
-
function o(e) {
|
|
223
|
-
for (var t = r().length - 1; t >= 0; t--) {
|
|
224
|
-
var n = r().key(t);
|
|
225
|
-
e(i(n), n);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
function s(e) {
|
|
229
|
-
return r().removeItem(e);
|
|
230
|
-
}
|
|
231
|
-
function c() {
|
|
232
|
-
return r().clear();
|
|
233
|
-
}
|
|
234
|
-
})), require_oldFF_globalStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
235
|
-
var n = require_util().Global;
|
|
236
|
-
t.exports = {
|
|
237
|
-
name: "oldFF-globalStorage",
|
|
238
|
-
read: i,
|
|
239
|
-
write: a,
|
|
240
|
-
each: o,
|
|
241
|
-
remove: s,
|
|
242
|
-
clearAll: c
|
|
243
|
-
};
|
|
244
|
-
var r = n.globalStorage;
|
|
245
|
-
function i(e) {
|
|
246
|
-
return r[e];
|
|
247
|
-
}
|
|
248
|
-
function a(e, t) {
|
|
249
|
-
r[e] = t;
|
|
250
|
-
}
|
|
251
|
-
function o(e) {
|
|
252
|
-
for (var t = r.length - 1; t >= 0; t--) {
|
|
253
|
-
var n = r.key(t);
|
|
254
|
-
e(r[n], n);
|
|
255
|
-
}
|
|
256
|
-
}
|
|
257
|
-
function s(e) {
|
|
258
|
-
return r.removeItem(e);
|
|
259
|
-
}
|
|
260
|
-
function c() {
|
|
261
|
-
o(function(e, t) {
|
|
262
|
-
delete r[e];
|
|
263
|
-
});
|
|
264
|
-
}
|
|
265
|
-
})), require_oldIE_userDataStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
266
|
-
var n = require_util().Global;
|
|
267
|
-
t.exports = {
|
|
268
|
-
name: "oldIE-userDataStorage",
|
|
269
|
-
write: s,
|
|
270
|
-
read: c,
|
|
271
|
-
each: l,
|
|
272
|
-
remove: u,
|
|
273
|
-
clearAll: d
|
|
274
|
-
};
|
|
275
|
-
var r = "storejs", i = n.document, a = h(), o = (n.navigator ? n.navigator.userAgent : "").match(/ (MSIE 8|MSIE 9|MSIE 10)\./);
|
|
276
|
-
function s(e, t) {
|
|
277
|
-
if (!o) {
|
|
278
|
-
var n = m(e);
|
|
279
|
-
a(function(e) {
|
|
280
|
-
e.setAttribute(n, t), e.save(r);
|
|
281
|
-
});
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
function c(e) {
|
|
285
|
-
if (!o) {
|
|
286
|
-
var t = m(e), n = null;
|
|
287
|
-
return a(function(e) {
|
|
288
|
-
n = e.getAttribute(t);
|
|
289
|
-
}), n;
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
function l(e) {
|
|
293
|
-
a(function(t) {
|
|
294
|
-
for (var n = t.XMLDocument.documentElement.attributes, r = n.length - 1; r >= 0; r--) {
|
|
295
|
-
var i = n[r];
|
|
296
|
-
e(t.getAttribute(i.name), i.name);
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
}
|
|
300
|
-
function u(e) {
|
|
301
|
-
var t = m(e);
|
|
302
|
-
a(function(e) {
|
|
303
|
-
e.removeAttribute(t), e.save(r);
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
function d() {
|
|
307
|
-
a(function(e) {
|
|
308
|
-
var t = e.XMLDocument.documentElement.attributes;
|
|
309
|
-
e.load(r);
|
|
310
|
-
for (var n = t.length - 1; n >= 0; n--) e.removeAttribute(t[n].name);
|
|
311
|
-
e.save(r);
|
|
312
|
-
});
|
|
313
|
-
}
|
|
314
|
-
var p = /* @__PURE__ */ RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]", "g");
|
|
315
|
-
function m(e) {
|
|
316
|
-
return e.replace(/^\d/, "___$&").replace(p, "___");
|
|
317
|
-
}
|
|
318
|
-
function h() {
|
|
319
|
-
if (!i || !i.documentElement || !i.documentElement.addBehavior) return null;
|
|
320
|
-
var e = "script", t, n, a;
|
|
321
|
-
try {
|
|
322
|
-
n = new ActiveXObject("htmlfile"), n.open(), n.write("<" + e + ">document.w=window</" + e + "><iframe src=\"/favicon.ico\"></iframe>"), n.close(), t = n.w.frames[0].document, a = t.createElement("div");
|
|
1
|
+
import { l as e, s as t, t as n, u as r } from "./CmnLib.js";
|
|
2
|
+
import { t as i } from "./SysBase.js";
|
|
3
|
+
import { t as a } from "./Layer.js";
|
|
4
|
+
//#region src/sn/localStore.ts
|
|
5
|
+
var o = {
|
|
6
|
+
get(e) {
|
|
7
|
+
let t = localStorage.getItem(e);
|
|
8
|
+
if (t != null) try {
|
|
9
|
+
return JSON.parse(t);
|
|
323
10
|
} catch {
|
|
324
|
-
|
|
325
|
-
}
|
|
326
|
-
return function(e) {
|
|
327
|
-
var n = [].slice.call(arguments, 0);
|
|
328
|
-
n.unshift(a), t.appendChild(a), a.addBehavior("#default#userData"), a.load(r), e.apply(this, n), t.removeChild(a);
|
|
329
|
-
};
|
|
330
|
-
}
|
|
331
|
-
})), require_cookieStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
332
|
-
var n = require_util(), r = n.Global, i = n.trim;
|
|
333
|
-
t.exports = {
|
|
334
|
-
name: "cookieStorage",
|
|
335
|
-
read: o,
|
|
336
|
-
write: c,
|
|
337
|
-
each: s,
|
|
338
|
-
remove: l,
|
|
339
|
-
clearAll: u
|
|
340
|
-
};
|
|
341
|
-
var a = r.document;
|
|
342
|
-
function o(e) {
|
|
343
|
-
if (!e || !d(e)) return null;
|
|
344
|
-
var t = "(?:^|.*;\\s*)" + escape(e).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=\\s*((?:[^;](?!;))*[^;]?).*";
|
|
345
|
-
return unescape(a.cookie.replace(new RegExp(t), "$1"));
|
|
346
|
-
}
|
|
347
|
-
function s(e) {
|
|
348
|
-
for (var t = a.cookie.split(/; ?/g), n = t.length - 1; n >= 0; n--) if (i(t[n])) {
|
|
349
|
-
var r = t[n].split("="), o = unescape(r[0]);
|
|
350
|
-
e(unescape(r[1]), o);
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
function c(e, t) {
|
|
354
|
-
e && (a.cookie = escape(e) + "=" + escape(t) + "; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/");
|
|
355
|
-
}
|
|
356
|
-
function l(e) {
|
|
357
|
-
!e || !d(e) || (a.cookie = escape(e) + "=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/");
|
|
358
|
-
}
|
|
359
|
-
function u() {
|
|
360
|
-
s(function(e, t) {
|
|
361
|
-
l(t);
|
|
362
|
-
});
|
|
363
|
-
}
|
|
364
|
-
function d(e) {
|
|
365
|
-
return RegExp("(?:^|;\\s*)" + escape(e).replace(/[\-\.\+\*]/g, "\\$&") + "\\s*\\=").test(a.cookie);
|
|
366
|
-
}
|
|
367
|
-
})), require_sessionStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
368
|
-
var n = require_util().Global;
|
|
369
|
-
t.exports = {
|
|
370
|
-
name: "sessionStorage",
|
|
371
|
-
read: i,
|
|
372
|
-
write: a,
|
|
373
|
-
each: o,
|
|
374
|
-
remove: s,
|
|
375
|
-
clearAll: c
|
|
376
|
-
};
|
|
377
|
-
function r() {
|
|
378
|
-
return n.sessionStorage;
|
|
379
|
-
}
|
|
380
|
-
function i(e) {
|
|
381
|
-
return r().getItem(e);
|
|
382
|
-
}
|
|
383
|
-
function a(e, t) {
|
|
384
|
-
return r().setItem(e, t);
|
|
385
|
-
}
|
|
386
|
-
function o(e) {
|
|
387
|
-
for (var t = r().length - 1; t >= 0; t--) {
|
|
388
|
-
var n = r().key(t);
|
|
389
|
-
e(i(n), n);
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
function s(e) {
|
|
393
|
-
return r().removeItem(e);
|
|
394
|
-
}
|
|
395
|
-
function c() {
|
|
396
|
-
return r().clear();
|
|
397
|
-
}
|
|
398
|
-
})), require_memoryStorage = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
399
|
-
t.exports = {
|
|
400
|
-
name: "memoryStorage",
|
|
401
|
-
read: r,
|
|
402
|
-
write: i,
|
|
403
|
-
each: a,
|
|
404
|
-
remove: o,
|
|
405
|
-
clearAll: s
|
|
406
|
-
};
|
|
407
|
-
var n = {};
|
|
408
|
-
function r(e) {
|
|
409
|
-
return n[e];
|
|
410
|
-
}
|
|
411
|
-
function i(e, t) {
|
|
412
|
-
n[e] = t;
|
|
413
|
-
}
|
|
414
|
-
function a(e) {
|
|
415
|
-
for (var t in n) n.hasOwnProperty(t) && e(n[t], t);
|
|
416
|
-
}
|
|
417
|
-
function o(e) {
|
|
418
|
-
delete n[e];
|
|
419
|
-
}
|
|
420
|
-
function s(e) {
|
|
421
|
-
n = {};
|
|
422
|
-
}
|
|
423
|
-
})), require_all = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
424
|
-
t.exports = [
|
|
425
|
-
require_localStorage(),
|
|
426
|
-
require_oldFF_globalStorage(),
|
|
427
|
-
require_oldIE_userDataStorage(),
|
|
428
|
-
require_cookieStorage(),
|
|
429
|
-
require_sessionStorage(),
|
|
430
|
-
require_memoryStorage()
|
|
431
|
-
];
|
|
432
|
-
})), require_json2$1 = /* @__PURE__ */ __commonJSMin((() => {
|
|
433
|
-
typeof JSON != "object" && (JSON = {}), (function() {
|
|
434
|
-
var rx_one = /^[\],:{}\s]*$/, rx_two = /\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g, rx_three = /"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g, rx_four = /(?:^|:|,)(?:\s*\[)+/g, rx_escapable = /[\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g, rx_dangerous = /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g;
|
|
435
|
-
function f(e) {
|
|
436
|
-
return e < 10 ? "0" + e : e;
|
|
437
|
-
}
|
|
438
|
-
function this_value() {
|
|
439
|
-
return this.valueOf();
|
|
440
|
-
}
|
|
441
|
-
typeof Date.prototype.toJSON != "function" && (Date.prototype.toJSON = function() {
|
|
442
|
-
return isFinite(this.valueOf()) ? this.getUTCFullYear() + "-" + f(this.getUTCMonth() + 1) + "-" + f(this.getUTCDate()) + "T" + f(this.getUTCHours()) + ":" + f(this.getUTCMinutes()) + ":" + f(this.getUTCSeconds()) + "Z" : null;
|
|
443
|
-
}, Boolean.prototype.toJSON = this_value, Number.prototype.toJSON = this_value, String.prototype.toJSON = this_value);
|
|
444
|
-
var gap, indent, meta, rep;
|
|
445
|
-
function quote(e) {
|
|
446
|
-
return rx_escapable.lastIndex = 0, rx_escapable.test(e) ? "\"" + e.replace(rx_escapable, function(e) {
|
|
447
|
-
var t = meta[e];
|
|
448
|
-
return typeof t == "string" ? t : "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4);
|
|
449
|
-
}) + "\"" : "\"" + e + "\"";
|
|
450
|
-
}
|
|
451
|
-
function str(e, t) {
|
|
452
|
-
var n, r, i, a, o = gap, s, c = t[e];
|
|
453
|
-
switch (c && typeof c == "object" && typeof c.toJSON == "function" && (c = c.toJSON(e)), typeof rep == "function" && (c = rep.call(t, e, c)), typeof c) {
|
|
454
|
-
case "string": return quote(c);
|
|
455
|
-
case "number": return isFinite(c) ? String(c) : "null";
|
|
456
|
-
case "boolean":
|
|
457
|
-
case "null": return String(c);
|
|
458
|
-
case "object":
|
|
459
|
-
if (!c) return "null";
|
|
460
|
-
if (gap += indent, s = [], Object.prototype.toString.apply(c) === "[object Array]") {
|
|
461
|
-
for (a = c.length, n = 0; n < a; n += 1) s[n] = str(n, c) || "null";
|
|
462
|
-
return i = s.length === 0 ? "[]" : gap ? "[\n" + gap + s.join(",\n" + gap) + "\n" + o + "]" : "[" + s.join(",") + "]", gap = o, i;
|
|
463
|
-
}
|
|
464
|
-
if (rep && typeof rep == "object") for (a = rep.length, n = 0; n < a; n += 1) typeof rep[n] == "string" && (r = rep[n], i = str(r, c), i && s.push(quote(r) + (gap ? ": " : ":") + i));
|
|
465
|
-
else for (r in c) Object.prototype.hasOwnProperty.call(c, r) && (i = str(r, c), i && s.push(quote(r) + (gap ? ": " : ":") + i));
|
|
466
|
-
return i = s.length === 0 ? "{}" : gap ? "{\n" + gap + s.join(",\n" + gap) + "\n" + o + "}" : "{" + s.join(",") + "}", gap = o, i;
|
|
467
|
-
}
|
|
11
|
+
return;
|
|
468
12
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
"\"": "\\\"",
|
|
476
|
-
"\\": "\\\\"
|
|
477
|
-
}, JSON.stringify = function(e, t, n) {
|
|
478
|
-
var r;
|
|
479
|
-
if (gap = "", indent = "", typeof n == "number") for (r = 0; r < n; r += 1) indent += " ";
|
|
480
|
-
else typeof n == "string" && (indent = n);
|
|
481
|
-
if (rep = t, t && typeof t != "function" && (typeof t != "object" || typeof t.length != "number")) throw Error("JSON.stringify");
|
|
482
|
-
return str("", { "": e });
|
|
483
|
-
}), typeof JSON.parse != "function" && (JSON.parse = function(text, reviver) {
|
|
484
|
-
var j;
|
|
485
|
-
function walk(e, t) {
|
|
486
|
-
var n, r, i = e[t];
|
|
487
|
-
if (i && typeof i == "object") for (n in i) Object.prototype.hasOwnProperty.call(i, n) && (r = walk(i, n), r === void 0 ? delete i[n] : i[n] = r);
|
|
488
|
-
return reviver.call(e, t, i);
|
|
489
|
-
}
|
|
490
|
-
if (text = String(text), rx_dangerous.lastIndex = 0, rx_dangerous.test(text) && (text = text.replace(rx_dangerous, function(e) {
|
|
491
|
-
return "\\u" + ("0000" + e.charCodeAt(0).toString(16)).slice(-4);
|
|
492
|
-
})), rx_one.test(text.replace(rx_two, "@").replace(rx_three, "]").replace(rx_four, ""))) return j = eval("(" + text + ")"), typeof reviver == "function" ? walk({ "": j }, "") : j;
|
|
493
|
-
throw SyntaxError("JSON.parse");
|
|
494
|
-
});
|
|
495
|
-
})();
|
|
496
|
-
})), require_json2 = /* @__PURE__ */ __commonJSMin(((e, t) => {
|
|
497
|
-
t.exports = n;
|
|
498
|
-
function n() {
|
|
499
|
-
return require_json2$1(), {};
|
|
13
|
+
},
|
|
14
|
+
set(e, t) {
|
|
15
|
+
localStorage.setItem(e, JSON.stringify(t));
|
|
16
|
+
},
|
|
17
|
+
remove(e) {
|
|
18
|
+
localStorage.removeItem(e);
|
|
500
19
|
}
|
|
501
|
-
}
|
|
502
|
-
var n = require_store_engine(), r = require_all(), i = [require_json2()];
|
|
503
|
-
t.exports = n.createStore(r, i);
|
|
504
|
-
})), import_store_legacy = /* @__PURE__ */ __toESM(require_store_legacy()), devtools = {
|
|
20
|
+
}, s = {
|
|
505
21
|
isOpen: !1,
|
|
506
22
|
orientation: void 0
|
|
507
|
-
},
|
|
23
|
+
}, c = 170, l = (e, t) => {
|
|
508
24
|
globalThis.dispatchEvent(new globalThis.CustomEvent("devtoolschange", { detail: {
|
|
509
25
|
isOpen: e,
|
|
510
26
|
orientation: t
|
|
511
27
|
} }));
|
|
512
|
-
},
|
|
513
|
-
let t = globalThis.outerWidth - globalThis.innerWidth >
|
|
514
|
-
!(n && t) && (globalThis.Firebug && globalThis.Firebug.chrome && globalThis.Firebug.chrome.isInitialized || t || n) ? ((!
|
|
28
|
+
}, u = ({ emitEvents: e = !0 } = {}) => {
|
|
29
|
+
let t = globalThis.outerWidth - globalThis.innerWidth > c, n = globalThis.outerHeight - globalThis.innerHeight > c, r = t ? "vertical" : "horizontal";
|
|
30
|
+
!(n && t) && (globalThis.Firebug && globalThis.Firebug.chrome && globalThis.Firebug.chrome.isInitialized || t || n) ? ((!s.isOpen || s.orientation !== r) && e && l(!0, r), s.isOpen = !0, s.orientation = r) : (s.isOpen && e && l(!1, void 0), s.isOpen = !1, s.orientation = void 0);
|
|
515
31
|
};
|
|
516
|
-
|
|
32
|
+
u({ emitEvents: !1 }), setInterval(u, 500);
|
|
517
33
|
//#endregion
|
|
518
34
|
//#region src/sn/SysWeb.ts
|
|
519
|
-
var
|
|
35
|
+
var d = class extends i {
|
|
520
36
|
#e;
|
|
521
37
|
constructor(...[e = {}, t = {
|
|
522
38
|
cur: "prj/",
|
|
@@ -527,26 +43,26 @@ var SysWeb = class extends SysBase {
|
|
|
527
43
|
let n = t.cur.split("/");
|
|
528
44
|
this.#e = n.length > 2 ? n.slice(0, -2).join("/") + "/" : "", this.loaded(e, t);
|
|
529
45
|
}
|
|
530
|
-
async loaded(...[
|
|
531
|
-
await super.loaded(
|
|
46
|
+
async loaded(...[r, i]) {
|
|
47
|
+
await super.loaded(r, i), document.querySelectorAll("[data-prj]").forEach((e) => {
|
|
532
48
|
let t = e.attributes.getNamedItem("data-prj");
|
|
533
49
|
t && e.addEventListener("click", () => {
|
|
534
50
|
this.runSN(t.value);
|
|
535
51
|
}, { passive: !0 });
|
|
536
52
|
}), document.querySelectorAll("[data-reload]").forEach((e) => e.addEventListener("click", () => {
|
|
537
53
|
this.run();
|
|
538
|
-
}, { passive: !0 })),
|
|
539
|
-
let
|
|
540
|
-
if (
|
|
541
|
-
...
|
|
542
|
-
...JSON.parse(
|
|
543
|
-
}), !
|
|
544
|
-
|
|
54
|
+
}, { passive: !0 })), i.dip && (n.hDip = JSON.parse(i.dip));
|
|
55
|
+
let a = new URLSearchParams(location.search), o = a.get("dip");
|
|
56
|
+
if (o && (n.hDip = {
|
|
57
|
+
...n.hDip,
|
|
58
|
+
...JSON.parse(o.replaceAll("%2C", ","))
|
|
59
|
+
}), !t(n.hDip, "oninit_run", !0)) return;
|
|
60
|
+
t(n.hDip, "dbg", !1) && (n.isDbg = !0, this.fetch = (e, t) => fetch(e, {
|
|
545
61
|
...t,
|
|
546
62
|
mode: "cors"
|
|
547
|
-
})), this.extPort =
|
|
548
|
-
let
|
|
549
|
-
|
|
63
|
+
})), this.extPort = e(n.hDip, "port", this.extPort);
|
|
64
|
+
let s = a.get("cur");
|
|
65
|
+
s && (i.cur = this.#e + s + "/"), await this.run();
|
|
550
66
|
}
|
|
551
67
|
#t = ":";
|
|
552
68
|
async runSN(e) {
|
|
@@ -557,22 +73,22 @@ var SysWeb = class extends SysBase {
|
|
|
557
73
|
e["const.sn.isDebugger"] = n === "localhost" || n === "127.0.0.1";
|
|
558
74
|
let r = this.cfg.headNs;
|
|
559
75
|
this.flushSub = this.arg.crypto ? async () => {
|
|
560
|
-
|
|
76
|
+
o.set(r + "sys_", await this.enc(JSON.stringify(this.data.sys))), o.set(r + "mark_", await this.enc(JSON.stringify(this.data.mark))), o.set(r + "kidoku_", await this.enc(JSON.stringify(this.data.kidoku)));
|
|
561
77
|
} : () => {
|
|
562
|
-
|
|
78
|
+
o.set(r + "sys", this.data.sys), o.set(r + "mark", this.data.mark), o.set(r + "kidoku", this.data.kidoku);
|
|
563
79
|
};
|
|
564
80
|
let i = r + (this.arg.crypto ? "sys_" : "sys");
|
|
565
|
-
if (e["const.sn.isFirstBoot"] =
|
|
81
|
+
if (e["const.sn.isFirstBoot"] = o.get(i) === void 0) {
|
|
566
82
|
this.data.sys = {}, this.data.mark = {}, this.data.kidoku = {}, t(this.data);
|
|
567
83
|
return;
|
|
568
84
|
}
|
|
569
85
|
if (!this.arg.crypto) {
|
|
570
|
-
this.data.sys =
|
|
86
|
+
this.data.sys = o.get(r + "sys"), this.data.mark = o.get(r + "mark"), this.data.kidoku = o.get(r + "kidoku"), t(this.data);
|
|
571
87
|
return;
|
|
572
88
|
}
|
|
573
89
|
let a = "";
|
|
574
90
|
try {
|
|
575
|
-
a = "sys", this.data.sys = JSON.parse(await this.dec("json",
|
|
91
|
+
a = "sys", this.data.sys = JSON.parse(await this.dec("json", o.get(r + "sys_"))), a += String(this.val.getVal("sys:TextLayer.Back.Alpha", 1)), a = "mark", this.data.mark = JSON.parse(await this.dec("json", o.get(r + "mark_"))), a = "kidoku", this.data.kidoku = JSON.parse(await this.dec("json", o.get(r + "kidoku_")));
|
|
576
92
|
} catch (e) {
|
|
577
93
|
console.error(`セーブデータ(${a})が壊れています。一度クリアする必要があります(a) %o`, e);
|
|
578
94
|
}
|
|
@@ -607,8 +123,8 @@ var SysWeb = class extends SysBase {
|
|
|
607
123
|
sys: this.data.sys,
|
|
608
124
|
mark: this.data.mark,
|
|
609
125
|
kidoku: this.data.kidoku
|
|
610
|
-
}), t = this.arg.crypto ? await this.enc(e) : e,
|
|
611
|
-
|
|
126
|
+
}), t = this.arg.crypto ? await this.enc(e) : e, i = new Blob([t], { type: "text/json" }), a = document.createElement("a");
|
|
127
|
+
a.href = URL.createObjectURL(i), a.download = (this.arg.crypto ? "" : "no_crypto_") + this.cfg.headNs + r("-", "_", "") + ".swpd", a.click(), n.debugLog && console.log("プレイデータをエクスポートしました"), setTimeout(() => this.fire("sn:exported", new MouseEvent("click")), 10);
|
|
612
128
|
})(), !1);
|
|
613
129
|
_import = () => (new Promise((e, t) => {
|
|
614
130
|
let n = document.createElement("input");
|
|
@@ -617,12 +133,12 @@ var SysWeb = class extends SysBase {
|
|
|
617
133
|
r ? e(r) : t(/* @__PURE__ */ Error("ファイル選択に失敗しました"));
|
|
618
134
|
}, n.click();
|
|
619
135
|
}).then(async (e) => {
|
|
620
|
-
let t = await e.text(),
|
|
621
|
-
if (
|
|
622
|
-
console.error(`別のゲーム【プロジェクト名=${
|
|
136
|
+
let t = await e.text(), r = JSON.parse(this.arg.crypto ? await this.dec("json", t) : t);
|
|
137
|
+
if (r.sys["const.sn.cfg.ns"] !== this.cfg.oCfg.save_ns) {
|
|
138
|
+
console.error(`別のゲーム【プロジェクト名=${r.sys["const.sn.cfg.ns"]}】のプレイデータです`);
|
|
623
139
|
return;
|
|
624
140
|
}
|
|
625
|
-
this.data.sys =
|
|
141
|
+
this.data.sys = r.sys, this.data.mark = r.mark, this.data.kidoku = r.kidoku, this.flush(), this.val.updateData(r), n.debugLog && console.log("プレイデータをインポートしました"), this.fire("sn:imported", new MouseEvent("click"));
|
|
626
142
|
}).catch((e) => console.error(`異常なプレイデータです ${String(e)}`)), !1);
|
|
627
143
|
navigate_to = (e) => {
|
|
628
144
|
let { url: t } = e;
|
|
@@ -635,8 +151,8 @@ var SysWeb = class extends SysBase {
|
|
|
635
151
|
});
|
|
636
152
|
}
|
|
637
153
|
async savePic(e, t) {
|
|
638
|
-
let
|
|
639
|
-
|
|
154
|
+
let r = document.createElement("a");
|
|
155
|
+
r.href = t, r.download = e, r.click(), n.debugLog && console.log("画像ファイルをダウンロードします");
|
|
640
156
|
}
|
|
641
157
|
#n = {};
|
|
642
158
|
async appendFile(e, t) {
|
|
@@ -649,6 +165,6 @@ var SysWeb = class extends SysBase {
|
|
|
649
165
|
}
|
|
650
166
|
};
|
|
651
167
|
//#endregion
|
|
652
|
-
export { CmnLib, Layer, SysWeb, argChk_Boolean, argChk_Num };
|
|
168
|
+
export { n as CmnLib, a as Layer, d as SysWeb, t as argChk_Boolean, e as argChk_Num };
|
|
653
169
|
|
|
654
170
|
//# sourceMappingURL=web.js.map
|