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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "metamaker-for-three",
3
- "version": "0.1.13",
3
+ "version": "0.1.15",
4
4
  "main": "libs/metamaker-for-three.js",
5
5
  "types": "types/index.d.ts",
6
6
  "scripts": {
@@ -120,5 +120,6 @@ export {
120
120
  parseGLTFModel,
121
121
  loadTTSTeethAnimation,
122
122
  loadTTSEmoAnimation,
123
- resetPolygonOffset
123
+ resetPolygonOffset,
124
+ setModelInfo
124
125
  };
@@ -5,170 +5,158 @@ import MD5 from "crypto-js/md5";
5
5
 
6
6
  const KEY_SORT = ["domain", "nonce"];
7
7
 
8
- function _0x1324(_0x1cd2e1, _0x130eac) {
9
- const _0x91a001 = _0x49a2();
10
- return (
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 _0x189910 =
27
- -parseInt(_0x2c8822(0x190)) / (0x2465 + -0x4 * -0x1f7 + -0x2c40) +
28
- parseInt(_0x2c8822(0x18e)) / (0x4 * 0x151 + -0x2c5 * -0x7 + 0x837 * -0x3) +
29
- parseInt(_0x2c8822(0x19c)) / (-0x268f * -0x1 + 0x1 * 0x175e + -0x3dea) +
30
- (-parseInt(_0x2c8822(0x192)) / (-0x1 * 0xd4d + -0x2 * 0x837 + 0x1dbf)) *
31
- (-parseInt(_0x2c8822(0x191)) / (-0x305 * 0x2 + -0x439 + 0x149 * 0x8)) +
32
- (parseInt(_0x2c8822(0x198)) / (-0xdb * 0x1d + -0x8 * 0xeb + 0x202d)) *
33
- (parseInt(_0x2c8822(0x188)) / (0x1c20 + 0x728 + -0x2341)) +
34
- parseInt(_0x2c8822(0x199)) / (-0x109 * -0x19 + -0x1568 + -0x1 * 0x471) +
35
- (-parseInt(_0x2c8822(0x18f)) / (-0x42e + 0x10 * -0x17 + -0x5a7 * -0x1)) *
36
- (parseInt(_0x2c8822(0x185)) / (-0x2b * 0xd + -0x30 * 0xd + -0x1 * -0x4a9));
37
- if (_0x189910 === _0x5f1a67) break;
38
- else _0x1b4b28["push"](_0x1b4b28["shift"]());
39
- } catch (_0x27af44) {
40
- _0x1b4b28["push"](_0x1b4b28["shift"]());
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
- })(_0x49a2, 0x347bf * 0x5 + -0x1b28 * 0x7a + 0x96a4d);
44
- function createSecret(_0x514df4) {
45
- const _0x3f1df8 = _0x1324,
46
- _0x5908c5 = {
47
- SDspV: function (_0x5fd0c1, _0xd472ef) {
48
- return _0x5fd0c1 < _0xd472ef;
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
- rGEYl: function (_0x503d24, _0x5be155) {
51
- return _0x503d24 % _0x5be155;
37
+ RNhxw: function (_0x5ee06a, _0xe15a94) {
38
+ return _0x5ee06a % _0xe15a94;
52
39
  },
53
- VZJfe: function (_0x588f9e, _0x7fd988) {
54
- return _0x588f9e(_0x7fd988);
40
+ jQkQn: function (_0x40fc0a, _0x513eb5) {
41
+ return _0x40fc0a(_0x513eb5);
55
42
  },
56
43
  },
57
- _0x20b757 = _0x514df4[_0x3f1df8(0x197)]((_0x208446) => {
58
- const _0x1da374 = _0x3f1df8;
59
- return _0x208446[_0x1da374(0x18b)]("");
44
+ _0xc15c19 = _0x384dba[_0x18def4(0x149)]((_0x5b4c8e) => {
45
+ const _0x3dc024 = _0x18def4;
46
+ return _0x5b4c8e[_0x3dc024(0x13c)]("");
60
47
  });
61
- let _0x1f10b5 = "";
48
+ let _0x3069f4 = "";
62
49
  for (
63
- let _0x3fab30 = 0x3c * 0x11 + 0xb9e * 0x1 + -0xf9a * 0x1;
64
- _0x5908c5[_0x3f1df8(0x19d)](_0x3fab30, 0x219 * -0x1 + -0x1553 * -0x1 + -0x7 * 0x2b6);
65
- _0x3fab30++
50
+ let _0x1b9d8a = -0x225e * 0x1 + -0x11b * -0x12 + 0x4 * 0x39e;
51
+ _0x87bdab[_0x18def4(0x14d)](_0x1b9d8a, -0x95f + -0xb * -0x339 + -0x19d4);
52
+ _0x1b9d8a++
66
53
  ) {
67
- const _0x16523a = _0x5908c5[_0x3f1df8(0x19f)](_0x3fab30, _0x20b757[_0x3f1df8(0x1a2)]),
68
- _0x5c7f13 = _0x20b757[_0x16523a],
69
- _0x971678 = _0x5908c5[_0x3f1df8(0x19f)](_0x3fab30, _0x5c7f13[_0x3f1df8(0x1a2)]);
70
- _0x1f10b5 += _0x20b757[_0x16523a][_0x971678];
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 _0x5908c5[_0x3f1df8(0x189)](MD5, _0x1f10b5)[_0x3f1df8(0x18a)]();
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 _0x203c22 = _0x1324,
116
- _0x47e838 = {
117
- gHnhq: function (_0x40881d, _0x11d35c) {
118
- return _0x40881d + _0x11d35c;
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
- JYFwC: function (_0x46fbd1, _0x39080c) {
124
- return _0x46fbd1 + _0x39080c;
67
+ Oqxad: function (_0x44058b, _0x339ff1) {
68
+ return _0x44058b(_0x339ff1);
125
69
  },
126
- NmpxU: function (_0xeb56f6, _0x2cde65) {
127
- return _0xeb56f6 * _0x2cde65;
70
+ UfsVz: function (_0x529f39, _0x452c5e) {
71
+ return _0x529f39 / _0x452c5e;
128
72
  },
129
- uOyJP: function (_0x1b457c, _0x3af224, _0x4242b9) {
130
- return _0x1b457c(_0x3af224, _0x4242b9);
73
+ xpZjE: function (_0x4a9281, _0x3171df, _0x28a0fe) {
74
+ return _0x4a9281(_0x3171df, _0x28a0fe);
131
75
  },
132
- ZnRzm: function (_0xc6e195, _0x2d1db1) {
133
- return _0xc6e195(_0x2d1db1);
76
+ jXmjH: function (_0x5c7585, _0x2e68e8) {
77
+ return _0x5c7585(_0x2e68e8);
134
78
  },
135
79
  },
136
- _0x5a6bfd = _0x47e838[_0x203c22(0x196)](
137
- _0x47e838[_0x203c22(0x19e)](
80
+ _0x5b4268 = _0x405636[_0x2771b6(0x150)](
81
+ _0x405636[_0x2771b6(0x136)](
138
82
  parseInt,
139
- _0x47e838[_0x203c22(0x193)](
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
- )[_0x203c22(0x1a1)](0x469 * 0x5 + -0x2244 + 0xc37, -0x168 + -0x3 * -0xa13 + -0x1cc5),
149
- _0x13fcfc = { domain: window[_0x203c22(0x19a)][_0x203c22(0x194)], nonce: _0x5a6bfd },
150
- _0x590e87 = KEY_SORT[_0x203c22(0x186)]((_0x372b86, _0x5f4703) => {
151
- const _0x1e4f76 = _0x203c22;
152
- return _0x372b86[_0x1e4f76(0x1a3)](_0x13fcfc[_0x5f4703]), _0x372b86;
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
- _0x552fe2 = KEY_SORT[_0x203c22(0x186)]((_0x3cef09, _0xbda90d) => {
92
+ _0x5c213e = KEY_SORT[_0x2771b6(0x142)]((_0x64843a, _0x1b96a3) => {
155
93
  return (
156
- _0x3cef09 && (_0x3cef09 += ";"),
157
- (_0x3cef09 += _0xbda90d + "=>" + _0x13fcfc[_0xbda90d]),
158
- _0x3cef09
94
+ _0x64843a && (_0x64843a += ";"),
95
+ (_0x64843a += _0x1b96a3 + "=>" + _0xaf8d20[_0x1b96a3]),
96
+ _0x64843a
159
97
  );
160
98
  }, ""),
161
- _0x49df1c = _0x47e838[_0x203c22(0x187)](
99
+ _0x32af50 = _0x405636[_0x2771b6(0x14b)](
162
100
  HmacSHA,
163
- _0x552fe2,
164
- _0x47e838[_0x203c22(0x195)](createSecret, _0x590e87)
101
+ _0x5c213e,
102
+ _0x405636[_0x2771b6(0x14c)](createSecret, _0x9abbd6)
165
103
  ),
166
- _0x308989 = _0x49df1c[_0x203c22(0x18a)](),
167
- _0x1e0f11 = { ..._0x13fcfc, sign: _0x308989 },
168
- _0x45219f = encBase64[_0x203c22(0x18d)](
169
- encUTF8[_0x203c22(0x19b)](JSON[_0x203c22(0x18d)](_0x1e0f11))
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 _0x45219f;
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;
@@ -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 };