metamaker-for-three 0.1.13 → 0.1.15
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/examples/example.ts +1 -1
- package/libs/metamaker-for-three.js +1 -1
- package/package.json +1 -1
- package/src/lib/core/index.ts +2 -1
- package/src/lib/sign/index.js +122 -134
- package/types/core/index.d.ts +2 -1
package/package.json
CHANGED
package/src/lib/core/index.ts
CHANGED
package/src/lib/sign/index.js
CHANGED
|
@@ -5,170 +5,158 @@ import MD5 from "crypto-js/md5";
|
|
|
5
5
|
|
|
6
6
|
const KEY_SORT = ["domain", "nonce"];
|
|
7
7
|
|
|
8
|
-
function
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
// eslint-disable-next-line no-func-assign
|
|
12
|
-
(_0x1324 = function (_0x364b40, _0x2e03d3) {
|
|
13
|
-
_0x364b40 = _0x364b40 - (-0x41b * -0x9 + 0x4 * -0x12d + -0x17 * 0x156);
|
|
14
|
-
let _0xe07323 = _0x91a001[_0x364b40];
|
|
15
|
-
return _0xe07323;
|
|
16
|
-
}),
|
|
17
|
-
_0x1324(_0x1cd2e1, _0x130eac)
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
(function (_0x7f81c7, _0x5f1a67) {
|
|
21
|
-
const _0x2c8822 = _0x1324,
|
|
22
|
-
_0x1b4b28 = _0x7f81c7();
|
|
23
|
-
// eslint-disable-next-line no-constant-condition
|
|
8
|
+
(function (_0x46f68a, _0x39d70c) {
|
|
9
|
+
const _0x237222 = _0x2898,
|
|
10
|
+
_0x2e807c = _0x46f68a();
|
|
24
11
|
while ([]) {
|
|
25
12
|
try {
|
|
26
|
-
const
|
|
27
|
-
-parseInt(
|
|
28
|
-
parseInt(
|
|
29
|
-
|
|
30
|
-
(
|
|
31
|
-
(-parseInt(
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
if (
|
|
38
|
-
else
|
|
39
|
-
} catch (
|
|
40
|
-
|
|
13
|
+
const _0x61ff35 =
|
|
14
|
+
-parseInt(_0x237222(0x13a)) / (0x26e1 + 0x14a5 + -0x3b85) +
|
|
15
|
+
(parseInt(_0x237222(0x135)) / (-0x99b * -0x2 + 0x8d4 + -0x1c08)) *
|
|
16
|
+
(parseInt(_0x237222(0x144)) / (-0x55d * 0x4 + 0x18db + 0x3e * -0xe)) +
|
|
17
|
+
(parseInt(_0x237222(0x13e)) / (-0xce2 + -0x16c7 + 0x1 * 0x23ad)) *
|
|
18
|
+
(-parseInt(_0x237222(0x146)) / (-0x20d8 + 0x1f0f + 0x4d * 0x6)) +
|
|
19
|
+
parseInt(_0x237222(0x145)) / (-0x3b * -0x22 + 0x1b17 * 0x1 + 0x6fb * -0x5) +
|
|
20
|
+
(-parseInt(_0x237222(0x138)) / (0x874 + 0x1eca + -0x2737)) *
|
|
21
|
+
(-parseInt(_0x237222(0x137)) / (0x24 * 0x49 + 0x129 * -0x21 + 0x1c0d * 0x1)) +
|
|
22
|
+
-parseInt(_0x237222(0x151)) / (-0xc50 * -0x3 + -0x21f7 + -0x2f0) +
|
|
23
|
+
parseInt(_0x237222(0x140)) / (-0x183c + 0x1 * -0x1de1 + 0x120d * 0x3);
|
|
24
|
+
if (_0x61ff35 === _0x39d70c) break;
|
|
25
|
+
else _0x2e807c["push"](_0x2e807c["shift"]());
|
|
26
|
+
} catch (_0x191092) {
|
|
27
|
+
_0x2e807c["push"](_0x2e807c["shift"]());
|
|
41
28
|
}
|
|
42
29
|
}
|
|
43
|
-
})(
|
|
44
|
-
function createSecret(
|
|
45
|
-
const
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
return
|
|
30
|
+
})(_0x3264, -0x804be * -0x1 + 0x26 * -0x2b3d + -0xd6be * -0x4);
|
|
31
|
+
function createSecret(_0x384dba) {
|
|
32
|
+
const _0x18def4 = _0x2898,
|
|
33
|
+
_0x87bdab = {
|
|
34
|
+
IpsEB: function (_0x1ad1d4, _0x4b4743) {
|
|
35
|
+
return _0x1ad1d4 < _0x4b4743;
|
|
49
36
|
},
|
|
50
|
-
|
|
51
|
-
return
|
|
37
|
+
RNhxw: function (_0x5ee06a, _0xe15a94) {
|
|
38
|
+
return _0x5ee06a % _0xe15a94;
|
|
52
39
|
},
|
|
53
|
-
|
|
54
|
-
return
|
|
40
|
+
jQkQn: function (_0x40fc0a, _0x513eb5) {
|
|
41
|
+
return _0x40fc0a(_0x513eb5);
|
|
55
42
|
},
|
|
56
43
|
},
|
|
57
|
-
|
|
58
|
-
const
|
|
59
|
-
return
|
|
44
|
+
_0xc15c19 = _0x384dba[_0x18def4(0x149)]((_0x5b4c8e) => {
|
|
45
|
+
const _0x3dc024 = _0x18def4;
|
|
46
|
+
return _0x5b4c8e[_0x3dc024(0x13c)]("");
|
|
60
47
|
});
|
|
61
|
-
let
|
|
48
|
+
let _0x3069f4 = "";
|
|
62
49
|
for (
|
|
63
|
-
let
|
|
64
|
-
|
|
65
|
-
|
|
50
|
+
let _0x1b9d8a = -0x225e * 0x1 + -0x11b * -0x12 + 0x4 * 0x39e;
|
|
51
|
+
_0x87bdab[_0x18def4(0x14d)](_0x1b9d8a, -0x95f + -0xb * -0x339 + -0x19d4);
|
|
52
|
+
_0x1b9d8a++
|
|
66
53
|
) {
|
|
67
|
-
const
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
54
|
+
const _0xe249ba = _0x87bdab[_0x18def4(0x148)](_0x1b9d8a, _0xc15c19[_0x18def4(0x14f)]),
|
|
55
|
+
_0x3b71fe = _0xc15c19[_0xe249ba],
|
|
56
|
+
_0x7d4db9 = _0x87bdab[_0x18def4(0x148)](_0x1b9d8a, _0x3b71fe[_0x18def4(0x14f)]);
|
|
57
|
+
_0x3069f4 += _0xc15c19[_0xe249ba][_0x7d4db9];
|
|
71
58
|
}
|
|
72
|
-
return
|
|
73
|
-
}
|
|
74
|
-
function _0x49a2() {
|
|
75
|
-
const _0x4c7e4c = [
|
|
76
|
-
"rGEYl",
|
|
77
|
-
"NmpxU",
|
|
78
|
-
"slice",
|
|
79
|
-
"length",
|
|
80
|
-
"push",
|
|
81
|
-
"633460XuNCIk",
|
|
82
|
-
"reduce",
|
|
83
|
-
"uOyJP",
|
|
84
|
-
"35OcZviy",
|
|
85
|
-
"VZJfe",
|
|
86
|
-
"toString",
|
|
87
|
-
"split",
|
|
88
|
-
"random",
|
|
89
|
-
"stringify",
|
|
90
|
-
"206210IdyQPX",
|
|
91
|
-
"189wJlkEn",
|
|
92
|
-
"1356836DYERPI",
|
|
93
|
-
"1741045DiMsny",
|
|
94
|
-
"4VeTFfQ",
|
|
95
|
-
"JYFwC",
|
|
96
|
-
"host",
|
|
97
|
-
"ZnRzm",
|
|
98
|
-
"gHnhq",
|
|
99
|
-
"map",
|
|
100
|
-
"1260222ZAskTe",
|
|
101
|
-
"13104328KlwdnD",
|
|
102
|
-
"location",
|
|
103
|
-
"parse",
|
|
104
|
-
"1173990JZmMLy",
|
|
105
|
-
"SDspV",
|
|
106
|
-
"WZCmq",
|
|
107
|
-
];
|
|
108
|
-
// eslint-disable-next-line no-func-assign
|
|
109
|
-
_0x49a2 = function () {
|
|
110
|
-
return _0x4c7e4c;
|
|
111
|
-
};
|
|
112
|
-
return _0x49a2();
|
|
59
|
+
return _0x87bdab[_0x18def4(0x14e)](MD5, _0x3069f4);
|
|
113
60
|
}
|
|
114
61
|
function sign() {
|
|
115
|
-
const
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
return
|
|
119
|
-
},
|
|
120
|
-
WZCmq: function (_0x1365d7, _0x13d008) {
|
|
121
|
-
return _0x1365d7(_0x13d008);
|
|
62
|
+
const _0x2771b6 = _0x2898,
|
|
63
|
+
_0x405636 = {
|
|
64
|
+
LffcZ: function (_0x56afac, _0x330b6e) {
|
|
65
|
+
return _0x56afac + _0x330b6e;
|
|
122
66
|
},
|
|
123
|
-
|
|
124
|
-
return
|
|
67
|
+
Oqxad: function (_0x44058b, _0x339ff1) {
|
|
68
|
+
return _0x44058b(_0x339ff1);
|
|
125
69
|
},
|
|
126
|
-
|
|
127
|
-
return
|
|
70
|
+
UfsVz: function (_0x529f39, _0x452c5e) {
|
|
71
|
+
return _0x529f39 / _0x452c5e;
|
|
128
72
|
},
|
|
129
|
-
|
|
130
|
-
return
|
|
73
|
+
xpZjE: function (_0x4a9281, _0x3171df, _0x28a0fe) {
|
|
74
|
+
return _0x4a9281(_0x3171df, _0x28a0fe);
|
|
131
75
|
},
|
|
132
|
-
|
|
133
|
-
return
|
|
76
|
+
jXmjH: function (_0x5c7585, _0x2e68e8) {
|
|
77
|
+
return _0x5c7585(_0x2e68e8);
|
|
134
78
|
},
|
|
135
79
|
},
|
|
136
|
-
|
|
137
|
-
|
|
80
|
+
_0x5b4268 = _0x405636[_0x2771b6(0x150)](
|
|
81
|
+
_0x405636[_0x2771b6(0x136)](
|
|
138
82
|
parseInt,
|
|
139
|
-
|
|
140
|
-
_0x47e838[_0x203c22(0x1a0)](
|
|
141
|
-
Math[_0x203c22(0x18c)](),
|
|
142
|
-
0xd74390c1ae9 + -0xdc03ea0799e + 0x9645406feb5
|
|
143
|
-
),
|
|
144
|
-
""
|
|
145
|
-
)
|
|
83
|
+
_0x405636[_0x2771b6(0x14a)](new Date()[_0x2771b6(0x141)](), -0x787 + -0xe81 + 0x4 * 0x67c)
|
|
146
84
|
),
|
|
147
85
|
""
|
|
148
|
-
)
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
const
|
|
152
|
-
return
|
|
86
|
+
),
|
|
87
|
+
_0xaf8d20 = { domain: window[_0x2771b6(0x13d)][_0x2771b6(0x143)], nonce: _0x5b4268 },
|
|
88
|
+
_0x9abbd6 = KEY_SORT[_0x2771b6(0x142)]((_0x189be, _0x9447c8) => {
|
|
89
|
+
const _0x4d6bfc = _0x2771b6;
|
|
90
|
+
return _0x189be[_0x4d6bfc(0x13b)](_0xaf8d20[_0x9447c8]), _0x189be;
|
|
153
91
|
}, []),
|
|
154
|
-
|
|
92
|
+
_0x5c213e = KEY_SORT[_0x2771b6(0x142)]((_0x64843a, _0x1b96a3) => {
|
|
155
93
|
return (
|
|
156
|
-
|
|
157
|
-
(
|
|
158
|
-
|
|
94
|
+
_0x64843a && (_0x64843a += ";"),
|
|
95
|
+
(_0x64843a += _0x1b96a3 + "=>" + _0xaf8d20[_0x1b96a3]),
|
|
96
|
+
_0x64843a
|
|
159
97
|
);
|
|
160
98
|
}, ""),
|
|
161
|
-
|
|
99
|
+
_0x32af50 = _0x405636[_0x2771b6(0x14b)](
|
|
162
100
|
HmacSHA,
|
|
163
|
-
|
|
164
|
-
|
|
101
|
+
_0x5c213e,
|
|
102
|
+
_0x405636[_0x2771b6(0x14c)](createSecret, _0x9abbd6)
|
|
165
103
|
),
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
encUTF8[
|
|
104
|
+
_0x41fce4 = _0x32af50[_0x2771b6(0x147)](),
|
|
105
|
+
_0x55dfaf = { ..._0xaf8d20, sign: _0x41fce4 },
|
|
106
|
+
_0x201b70 = encBase64[_0x2771b6(0x139)](
|
|
107
|
+
encUTF8[_0x2771b6(0x13f)](JSON[_0x2771b6(0x139)](_0x55dfaf))
|
|
170
108
|
);
|
|
171
|
-
return
|
|
109
|
+
return _0x201b70;
|
|
110
|
+
}
|
|
111
|
+
function _0x2898(_0x56e66b, _0x3691ea) {
|
|
112
|
+
const _0x370624 = _0x3264();
|
|
113
|
+
return (
|
|
114
|
+
// eslint-disable-next-line no-func-assign
|
|
115
|
+
(_0x2898 = function (_0x2c8000, _0x4b3d61) {
|
|
116
|
+
_0x2c8000 = _0x2c8000 - (-0x58d * 0x1 + -0xb75 * -0x2 + -0x1028);
|
|
117
|
+
let _0x11d031 = _0x370624[_0x2c8000];
|
|
118
|
+
return _0x11d031;
|
|
119
|
+
}),
|
|
120
|
+
_0x2898(_0x56e66b, _0x3691ea)
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
function _0x3264() {
|
|
124
|
+
const _0x88fadd = [
|
|
125
|
+
"RNhxw",
|
|
126
|
+
"map",
|
|
127
|
+
"UfsVz",
|
|
128
|
+
"xpZjE",
|
|
129
|
+
"jXmjH",
|
|
130
|
+
"IpsEB",
|
|
131
|
+
"jQkQn",
|
|
132
|
+
"length",
|
|
133
|
+
"LffcZ",
|
|
134
|
+
"3376242hyrEbh",
|
|
135
|
+
"147594EKnTwk",
|
|
136
|
+
"Oqxad",
|
|
137
|
+
"16UEhYxn",
|
|
138
|
+
"53179JNvFfD",
|
|
139
|
+
"stringify",
|
|
140
|
+
"327030laptsT",
|
|
141
|
+
"push",
|
|
142
|
+
"split",
|
|
143
|
+
"location",
|
|
144
|
+
"17716IRpyjx",
|
|
145
|
+
"parse",
|
|
146
|
+
"10226140fYTDOE",
|
|
147
|
+
"getTime",
|
|
148
|
+
"reduce",
|
|
149
|
+
"host",
|
|
150
|
+
"6VpZuII",
|
|
151
|
+
"1414338otelLa",
|
|
152
|
+
"445xqbfwR",
|
|
153
|
+
"toString",
|
|
154
|
+
];
|
|
155
|
+
// eslint-disable-next-line no-func-assign
|
|
156
|
+
_0x3264 = function () {
|
|
157
|
+
return _0x88fadd;
|
|
158
|
+
};
|
|
159
|
+
return _0x3264();
|
|
172
160
|
}
|
|
173
161
|
|
|
174
162
|
export default sign;
|
package/types/core/index.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { downloadAnimation, loadAnimationData } from "./utils/downloadAnimation"
|
|
|
4
4
|
import Convert from "./utils/convert";
|
|
5
5
|
declare function loadGLTFModel(url: string): Promise<THREE.Group>;
|
|
6
6
|
declare function parseGLTFModel(buffer: ArrayBuffer): Promise<THREE.Group>;
|
|
7
|
+
declare function setModelInfo(model: any): any;
|
|
7
8
|
declare function loadTTSTeethAnimation(url: string): Promise<THREE.AnimationClip>;
|
|
8
9
|
declare function loadTTSEmoAnimation(url: string): Promise<THREE.AnimationClip>;
|
|
9
|
-
export { Convert, loadAnimationData, downloadAnimation, loadGLTFModel, parseGLTFModel, loadTTSTeethAnimation, loadTTSEmoAnimation, resetPolygonOffset };
|
|
10
|
+
export { Convert, loadAnimationData, downloadAnimation, loadGLTFModel, parseGLTFModel, loadTTSTeethAnimation, loadTTSEmoAnimation, resetPolygonOffset, setModelInfo };
|