@weadmin/weixin-minigame-helper-mcp 0.1.11 → 0.1.13

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/README.md CHANGED
@@ -1,159 +1,159 @@
1
- # @weadmin/weixin-minigame-helper-mcp
2
-
3
- WeChat Mini Game MCP Server — Preview, debug, real-device test and publish WeChat Mini Games from any MCP-compatible AI coding assistant.
4
-
5
- ## Overview
6
-
7
- This package provides a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that enables AI coding assistants (such as Claude, CodeBuddy, Cursor, etc.) to preview, hot-reload, real-device test, and publish WeChat Mini Games — all through natural language.
8
-
9
- ## Quick Start
10
-
11
- ### Use with npx (recommended)
12
-
13
- No installation needed. Configure your MCP client with:
14
-
15
- ```json
16
- {
17
- "mcpServers": {
18
- "weixin-minigame-helper": {
19
- "command": "npx",
20
- "args": [
21
- "-y",
22
- "--prefer-online",
23
- "@weadmin/weixin-minigame-helper-mcp@latest"
24
- ]
25
- }
26
- }
27
- }
28
- ```
29
-
30
- ### Global install
31
-
32
- ```bash
33
- npm install -g @weadmin/weixin-minigame-helper-mcp
34
- ```
35
-
36
- Then configure your MCP client with:
37
-
38
- ```json
39
- {
40
- "mcpServers": {
41
- "weixin-minigame-helper": {
42
- "command": "weixin-minigame-helper-mcp"
43
- }
44
- }
45
- }
46
- ```
47
-
48
- ## MCP Tools
49
-
50
- This server exposes the following tools:
51
-
52
- ### `run_game`
53
-
54
- Start a WeChat Mini Game preview. Launches a local dev server and serves the game in a browser.
55
-
56
- | Parameter | Type | Required | Description |
57
- |---|---|---|---|
58
- | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory (must contain `game.js`) |
59
-
60
- **Returns:** Local preview URL and port number.
61
-
62
- ### `reload_game`
63
-
64
- Hot-reload the running game preview. If the game is not running yet, it starts automatically.
65
-
66
- | Parameter | Type | Required | Description |
67
- |---|---|---|---|
68
- | `workspacePath` | string | Only if game not running | Absolute path to the Mini Game directory |
69
-
70
- **Returns:** Confirmation with the preview URL.
71
-
72
- ### `get_logs`
73
-
74
- Retrieve console log entries (log / warn / error) from the running game.
75
-
76
- | Parameter | Type | Required | Description |
77
- |---|---|---|---|
78
- | `filter` | string | ❌ | JavaScript regex pattern to filter log messages (case-insensitive) |
79
-
80
- **Returns:** Formatted log entries with timestamps and log levels.
81
-
82
- ### `real_device_preview`
83
-
84
- Build and upload the game to WeChat servers for real device testing. Generates a QR code that can be scanned with WeChat.
85
-
86
- | Parameter | Type | Required | Description |
87
- |---|---|---|---|
88
- | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory |
89
-
90
- **Requires:** AppID and upload private key (see [Configuration](#configuration)).
91
-
92
- **Returns:** QR code displayed in the browser preview page.
93
-
94
- ### `publish`
95
-
96
- Upload the game to the WeChat platform as a development version.
97
-
98
- | Parameter | Type | Required | Description |
99
- |---|---|---|---|
100
- | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory |
101
- | `version` | string | ✅ | Version number (semver, e.g. `"1.0.0"`) |
102
- | `desc` | string | ❌ | Optional release notes |
103
-
104
- **Returns:** Upload confirmation with version and AppID info.
105
-
106
- > **Note:** This uploads as a development version. To promote to experience/production, use the [WeChat MP Admin Console](https://mp.weixin.qq.com/).
107
-
108
- ## Configuration
109
-
110
- For real-device preview and publish, you need to provide:
111
-
112
- 1. **AppID** — Your WeChat Mini Game AppID
113
- 2. **Upload Private Key** — The private key file for CI uploads (download from [WeChat MP Admin Console](https://mp.weixin.qq.com/) → Development → Development Settings → Mini Program Code Upload Key)
114
-
115
- ### Option 1: Browser UI
116
-
117
- 1. Start a preview with `run_game`
118
- 2. Click the ⚙️ settings button in the browser preview page
119
- 3. Fill in your AppID and upload the private key file
120
-
121
- ### Option 2: Environment Variables
122
-
123
- ```bash
124
- export WECHAT_APPID="your_appid_here"
125
- export WECHAT_PRIVATE_KEY_PATH="/path/to/private.key"
126
- # Or provide the key content directly:
127
- export WECHAT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n..."
128
- ```
129
-
130
- ### IP Whitelist
131
-
132
- WeChat requires your server's public IP to be whitelisted for CI uploads. Add your IP in [WeChat MP Admin Console](https://mp.weixin.qq.com/) → Development → Development Settings → IP Whitelist.
133
-
134
- > **Tip:** The preview page displays your current public IP in the top-right corner for easy copying.
135
-
136
- ## How It Works
137
-
138
- ```
139
- AI Assistant ←→ MCP Protocol (stdio) ←→ This Server ←→ Local Dev Server + miniprogram-ci
140
- ↓
141
- Browser Preview
142
- Real Device QR
143
- WeChat Upload
144
- ```
145
-
146
- 1. The MCP server starts a local Express dev server for game preview
147
- 2. Game source files are compiled (ES modules → WeChat-compatible JS) and served in browser
148
- 3. File changes are watched via chokidar for hot-reload
149
- 4. Real-device preview and publish use [miniprogram-ci](https://www.npmjs.com/package/miniprogram-ci) for WeChat platform integration
150
-
151
- ## Requirements
152
-
153
- - **Node.js** >= 16
154
- - A WeChat Mini Game project with `game.js` entry file
155
- - For real-device / publish: WeChat AppID + upload private key
156
-
157
- ## License
158
-
159
- MIT
1
+ # @weadmin/weixin-minigame-helper-mcp
2
+
3
+ WeChat Mini Game MCP Server — Preview, debug, real-device test and publish WeChat Mini Games from any MCP-compatible AI coding assistant.
4
+
5
+ ## Overview
6
+
7
+ This package provides a [Model Context Protocol (MCP)](https://modelcontextprotocol.io/) server that enables AI coding assistants (such as Claude, CodeBuddy, Cursor, etc.) to preview, hot-reload, real-device test, and publish WeChat Mini Games — all through natural language.
8
+
9
+ ## Quick Start
10
+
11
+ ### Use with npx (recommended)
12
+
13
+ No installation needed. Configure your MCP client with:
14
+
15
+ ```json
16
+ {
17
+ "mcpServers": {
18
+ "weixin-minigame-helper": {
19
+ "command": "npx",
20
+ "args": [
21
+ "-y",
22
+ "--prefer-online",
23
+ "@weadmin/weixin-minigame-helper-mcp@latest"
24
+ ]
25
+ }
26
+ }
27
+ }
28
+ ```
29
+
30
+ ### Global install
31
+
32
+ ```bash
33
+ npm install -g @weadmin/weixin-minigame-helper-mcp
34
+ ```
35
+
36
+ Then configure your MCP client with:
37
+
38
+ ```json
39
+ {
40
+ "mcpServers": {
41
+ "weixin-minigame-helper": {
42
+ "command": "weixin-minigame-helper-mcp"
43
+ }
44
+ }
45
+ }
46
+ ```
47
+
48
+ ## MCP Tools
49
+
50
+ This server exposes the following tools:
51
+
52
+ ### `run_game`
53
+
54
+ Start a WeChat Mini Game preview. Launches a local dev server and serves the game in a browser.
55
+
56
+ | Parameter | Type | Required | Description |
57
+ |---|---|---|---|
58
+ | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory (must contain `game.js`) |
59
+
60
+ **Returns:** Local preview URL and port number.
61
+
62
+ ### `reload_game`
63
+
64
+ Hot-reload the running game preview. If the game is not running yet, it starts automatically.
65
+
66
+ | Parameter | Type | Required | Description |
67
+ |---|---|---|---|
68
+ | `workspacePath` | string | Only if game not running | Absolute path to the Mini Game directory |
69
+
70
+ **Returns:** Confirmation with the preview URL.
71
+
72
+ ### `get_logs`
73
+
74
+ Retrieve console log entries (log / warn / error) from the running game.
75
+
76
+ | Parameter | Type | Required | Description |
77
+ |---|---|---|---|
78
+ | `filter` | string | ❌ | JavaScript regex pattern to filter log messages (case-insensitive) |
79
+
80
+ **Returns:** Formatted log entries with timestamps and log levels.
81
+
82
+ ### `real_device_preview`
83
+
84
+ Build and upload the game to WeChat servers for real device testing. Generates a QR code that can be scanned with WeChat.
85
+
86
+ | Parameter | Type | Required | Description |
87
+ |---|---|---|---|
88
+ | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory |
89
+
90
+ **Requires:** AppID and upload private key (see [Configuration](#configuration)).
91
+
92
+ **Returns:** QR code displayed in the browser preview page.
93
+
94
+ ### `publish`
95
+
96
+ Upload the game to the WeChat platform as a development version.
97
+
98
+ | Parameter | Type | Required | Description |
99
+ |---|---|---|---|
100
+ | `workspacePath` | string | ✅ | Absolute path to the Mini Game directory |
101
+ | `version` | string | ✅ | Version number (semver, e.g. `"1.0.0"`) |
102
+ | `desc` | string | ❌ | Optional release notes |
103
+
104
+ **Returns:** Upload confirmation with version and AppID info.
105
+
106
+ > **Note:** This uploads as a development version. To promote to experience/production, use the [WeChat MP Admin Console](https://mp.weixin.qq.com/).
107
+
108
+ ## Configuration
109
+
110
+ For real-device preview and publish, you need to provide:
111
+
112
+ 1. **AppID** — Your WeChat Mini Game AppID
113
+ 2. **Upload Private Key** — The private key file for CI uploads (download from [WeChat MP Admin Console](https://mp.weixin.qq.com/) → Development → Development Settings → Mini Program Code Upload Key)
114
+
115
+ ### Option 1: Browser UI
116
+
117
+ 1. Start a preview with `run_game`
118
+ 2. Click the ⚙️ settings button in the browser preview page
119
+ 3. Fill in your AppID and upload the private key file
120
+
121
+ ### Option 2: Environment Variables
122
+
123
+ ```bash
124
+ export WECHAT_APPID="your_appid_here"
125
+ export WECHAT_PRIVATE_KEY_PATH="/path/to/private.key"
126
+ # Or provide the key content directly:
127
+ export WECHAT_PRIVATE_KEY="-----BEGIN RSA PRIVATE KEY-----\n..."
128
+ ```
129
+
130
+ ### IP Whitelist
131
+
132
+ WeChat requires your server's public IP to be whitelisted for CI uploads. Add your IP in [WeChat MP Admin Console](https://mp.weixin.qq.com/) → Development → Development Settings → IP Whitelist.
133
+
134
+ > **Tip:** The preview page displays your current public IP in the top-right corner for easy copying.
135
+
136
+ ## How It Works
137
+
138
+ ```
139
+ AI Assistant ←→ MCP Protocol (stdio) ←→ This Server ←→ Local Dev Server + miniprogram-ci
140
+ ↓
141
+ Browser Preview
142
+ Real Device QR
143
+ WeChat Upload
144
+ ```
145
+
146
+ 1. The MCP server starts a local Express dev server for game preview
147
+ 2. Game source files are compiled (ES modules → WeChat-compatible JS) and served in browser
148
+ 3. File changes are watched via chokidar for hot-reload
149
+ 4. Real-device preview and publish use [miniprogram-ci](https://www.npmjs.com/package/miniprogram-ci) for WeChat platform integration
150
+
151
+ ## Requirements
152
+
153
+ - **Node.js** >= 16
154
+ - A WeChat Mini Game project with `game.js` entry file
155
+ - For real-device / publish: WeChat AppID + upload private key
156
+
157
+ ## License
158
+
159
+ MIT
@@ -0,0 +1 @@
1
+ 'use strict';function _0x414a(){const _0x256094=['t8kvW4KPBG','W5hdNYJdHqCahq','ySktnI8','WRJdTsfK','omoWtSogWQS','tCkOW7pdKq0','W5KCaca','pSkFW5hdLSodWRyo','zc7dIIK','WRRdTt1KrNvgDmkZWRis','W6CluafUWOK9','qmo6bG','fwhcM8oL','W6TZWQlcJa','bGmmW4jKtq','wSkTlYJcHW','bhddTCk8W68','huBdHq','W4KqhIJcSSofBW','yCo/W6tdIG','WPiny8o8W4/cK8o0rmknExpdObRdNYG','lSkWW6pcNCoudwhdJq','WOdcUbVdTa','mCohrq','dLddPxywWRZdPW','WRBcVstdQmoX','wLqGW43dRSk7aqmQ','WOTRW6OAoam','xmoWaCktW4hcR1G','F8kiW5iMyq','o8kuW5VdLmopWPe','WP4aogK','lmoYfMiQrWJdJG','WO5Jobq','WRpcRCoNqhNcH0ldVCo8WQCgW5P9','hSozW5iLzfpcNMb/WPDlzuaCW5/dRY/dSmoTd8o/sMC','WQFcRCk5','FZpdOdpcVW','FSkDnd4','W7T/WQpcLKFdKKK','WPXGW7ScpHtcNCo0eNe','A8oYW7JcMmoil3JdJ03cPXzUW7O','WQypcJe','W7b5WRtcTN4','ASkvW6u','WO18W6CchGJcMa','DLVcISouW7BdIW','W6qfwre','WQepfc3cTsddRCoSWO90aGS','ymkEb3ZcPfueCHNcHG','WRRdRZ14','W7P4WQxcIL8','jqpdLmktWQVcICk2emoGxSo7W6zJ','W71MW6e','WP1pcIZdMq','WPCuW40','x8kqfa','lmooBSoKWQWjhCkJWQm6','EfFcISoqW7BdI8oW','baCpW4a','kmoMgMqYCrxdLCoBWP/dGCohtW','WQddTsD+','W7T/WQlcJa','WRDVW6VcGYO','WPn3iHi','bf3dTviz','W48MCKZcO8kIW64aE8kwn3PW','euFdKSkaW7ObW4G','eHHLW4m','ihdcL8oJW6VdRSkdeSkChmkUWPC','W6tcJGxdV8kmWQNcI8oWfCozWP86wq','W6NdTmk3bqC','sokhGmkc','mfRcG8omW6pdNmoXjCkgca','pcZcLmk7gq','AmoqeSk7W5q','W4ruzZirWOxcJgjXuXq','WQqvgwHI','AUkcK1H0luCjW4FcLCkyW4FdN1HoWORdVeb8mbJcPa','W4SuhdFcTG','sSoPW77cJYVcTCk7lYrOW60LW7NcPX8uW43dHtJcTCk8WOtdPbRcUmoajmo3W4pcV8k8rColACkNW6/dLeXes8ofW7yeWQrnW6K9WPZcRe9BoNpdVwn7n8oSW5BcTmo9uJyeWQTYWPhdRSkkW53dM8oiAhm5k393BXnpjI4','W77cHSkMc8k1','WPFcRCkcW7WxhNZcJCo2WRmhdffQWONcTNNcGIVdVCkYW4ag','aJ3dIWy','WOKoW4q','g0FdLCk8W6WiW71eW58lomk+W4OgaM3cJSoCt8omW7/dVmkrEa','WP7cVG/dTmoNW5jTc1jFhmop','FJtdKc8','WPKoogK','aKBdQgaAWOddKSoUCXW','W7mRvXv7','D8kgzIdcILm6x33cT8kOW5z8WO84b0iMW5aMW7nOWP1fpCk0W6BcP8kolvddMCkkxCkJsGmyW5hcJshdUSkMWRKTW7mjtmkYiZz6mCkHW6aeW7VdPSoIimoIW6m','oSkqW5ZdNq','p2RdIeaQ','y8kNoMa8sWVcGmobWOpdMSopxq3cGmkYas0','c8ojumkXWPZcJgpdLLSpWQWEsmoy','o2lcL8oIW6xdO8olbCkBl8o6W5BdTHi','W7LtWR7cOMO','WRjEmrddSW','gd3dKrZdUmoNrdtcHSkgWO4','W67cPmkZcmouWPddJCo7iG','W7ZcSCk4qmoc','WOlcTbVdVCozW5XN','oSkuW4BdGmoAWP4n','BmkvW6VdRW','W5hdKt/dNXq0avlcIW','WOeeW4xdPgLKWRNcISoKW71/pSoCnG','W4pcNrxdTCks','WPX2W6Sm','W7xdSmk8ecq','WQ8ffYFcKI7dPa','fvhdRMC','WRW5W6JdJZu','vCk9WOjr','W7ClBCoOmW','ESktmdu','WQvMkH/dVmoYWR8mxSkVEKj7WR1AW6JcT1hcOXS','aCkCW6BdQCop','wSkGWPLqW64','EJRdLcq','FvpcJ8oo','WPJcVGBdTmoCW5zW','r8oWW7dcJ8ogchBdHLRcQu8O','WPifnq','W5Kev8oicq','or13W4JdTSkifXW6CfPX','BGakWOzq','WQNcPmkThSkFWO7dJCk9','W6GOFZzo','ECo4W6hcG8oFhwi','WQn5W6hcUq','trhcKSobW40rW4P1W5mu','WOtdJ0NcTmoo','W7/cPSorWO1W','vSk8WO9AW6tcRrO','mLqjW4uCWObACmoYzmozbSkLiCk8DGG0W5JdVbjXsXhdN08oC8krW6ddQmkomrrDECk3W7DOmW','W68wrHTW','WOuTACoVW48','WQmnhGtcSG','W6pcUIT+F2jmj8oW','W5u7uqDpWOmQW5PfbG','W5mGW7W','hZpdKay','yfpcHColW7ldNSoMEmoaw8o3W70','E8oLW77dJa','WQ0YW6/dIq','cWLzwd85W4ujaq','WQS4W7pdIq','kSosvY/cHa','W7D3WQi','WPT4pW7dRG','tmkMWOPnW6JcKsVcGCk/WOe','W615WR7cJa','W7ZdQ8oZW4ac','WPNcOI/dUmokW5PHg0Hbaa','W7G5nZdcOa','W6RdUCk7fdxdNW','W6xcQSk5','WPn9W781hq','erH0W5VdVmkkgXGVsaK','dGjX','pCoMcM8','WQpcQbJdPCoDW5iShujuemopW4m+W5ddOW','wtRdLG','nmkcW6pcOW','wa1HW4C','fq17W5RcQmohhG','W6lcOmooW5naW6ddOY0IbeeSW5XsWPKTkSkwW7NcLb9kW7NdGCogm3LkWPC9W6CkW78','WPBcUtJdM8ok','W5Spv8o1b8k8ErSygM4LWQGeW4RdNmkTsvS','W7lcO3SNpIDCrmkQWROaWQe','WRzIW6BcOX4','WPtdNXxdQ8kzW63cJ8o2','WRlcKMRdOCouWPJdG8o5W6hcGxdcHmksW4WryrSQW4dcNXK','WRafachcKcW','W5VcLCkMk8k5','WOXjWRRcVq','WReufJ3cNs7dQmoVWQu','W6pdPt7dHsSiheNcHeu','W7RcSCk/h8koWONdQCo9odi','WR9LWQxcMuJdM01asJDIW7ze','a8ogu8kYW6xdKXJcQxmt','y8oVW6tdJs7cRCkT','eSkgW6lcTSkYtmkZW7eOW4GkfSonW6ZcIYZcRxxcMX53vXWPWPtdH8kEiYFdSCkaiKdcGmkJWO4NfK7cOgVcPmoP','WQu5hMbh','W4FcIWm','rJJdKq','ECoYW6pcG8oF','W7hdVCkNhq','W54BgJBcQG','W5ebr8otaSkbuaCu','W6yVqYvY','W4xdSCorW7i','WOddIJRdLq0gh1NdLG','WQtcVmkZeIJdMXldN8kmW7e','dWGwW5DPbr4DWQWxWR/cTSogF23dOthcU8o4','WRNdRI9IF2nIBSkMWR0','WRuoB8o7WOtcLCkO','z8oFy8oYWRK','z8kEW6y','yCkoa8oHW4xdLtlcHeuCW6T/','wbpdGY3cJa','nmopwcxcN0aMxs/cTCkTWP58WO0','gHmrW40','WR5LW7ZcUbFcQtT4geuVnftcGG','oCkbW5JcK8osWPCBWPabW7LCzq','WQlcGrpdL8o7','WRyffYa','W5jwWRO','dspcQSkVfa','qXC4W5i5','WP4faN5R','p8knW7RcTmkU','dWHLW5JdVmkofq','tmklW48GBKtdIIPGWObrm08hW47dOsNdP8oQgSoIf2Kul3/cIG','WPn3oW','pSohwYNdGvG6','WQeBCmo3W4tcMmkYumkb','ecdcP8kPlKLdWRGDW6hdVSox','j1ZdOhelWP/cRSoLAbepW57cQ8o6','FSkdmCkIW6W0pSkvWOujW5O','AmoAWRNdVSoGcSkRW7q1W5HWimoB','w8kXWPjTW5e','y8oVW6FdJIpcUmkT','WQHeuHvRWOaRW4StqW','uHL1WRpcIwK','W77cMhu','zqX6WRFcLMakWQBdRbZcLKdcQCobWOBdPhbfDWxdIaeXWR0safhcU8oxkNiKzG','vCk6WR1iW7K','bGKf','W4ZcGa7dTa','WO1DeCkjqSoQh14BjgWEWRKv','aqjMW5ldM8kahbWBvbq6','WODLWRlcJglcK8oN','W4ZdMZJdNqCahrlcGLpcRCor','DmoYW7ldGrhcOSkMoa','DZtdNsq','fHDowq','W7O3WPG','W4JcJGRdVW','FmoRW77dJa','j1ldGmkqW7ahW4PtW4iMFCkCW58ClwNcMSoAhCkh','E8kgg2hcNfm/x33dUCoTW4nTWOf+g19+W41GW7THWObCnW','W4VcPSogWPPVW6FdVdWqeumQ','DSkintdcVW','imoOew8','WP3cUG/dUmokW6X7auq','yI/cI1pcVW','W4SGW7VcGa','WQiACCo2','tSkCW4eUtu7dKMfdWOTwjG','DmoHW6lcO8oAb0hdKuFcHaPYW612','fXLWWOBcPq','W5ddVmohW7K','WR8ZW5BdR0a','cv/dRhy','v8kBeCoXW4/dKZa','aGDBwcmpWPra','aSktW4NcGSkw','bdFdJa/dGCoQ','wWrYWQFcIxi+WRRdSci','g0iN','WRubfJO','crXPW4RcPSoscJFdPa','pCkQW7hdLYZcUmk8mIPQWQKYW67cI0OqW5BdJN3dPCkJWOtdPX3cTCoijCk0W4/dP8kLwCkzC8k7WRldLf4G','W6dcTSkybmkwWP8','WPNcQ8ocWPjzW6VdONeWqq09W4zUW41lpmkwW7NcNvSiW6JcJSkppxLwWPe5W69iW79RW6aKFmoxWRJcII/cH8kvW6u1a0bseHLbtLVcV8kHWO/dLmoZkKKhAsHjW4ZcKmogWOxcM8kmbCkxWRWZcNldK8oPqGiuW7ZcOGtcIINdKxTKC0xdTCkyiW','ESkbW7VcQmkZuSo2W7TNW5fffmoxW7xcGgddVJxdMr4','j8keW4BdMW','l8oPhhijrXpdIa','vSk7WRLhW7O','z8orBSoJ','hcBcRCkO','fMxcHCoZW6hdQmkb','WOSaW47dQa','ndNdJc/cJmoknvG2rY5PW5mQchjsW7rXW58','WPX8W7Wakq','gvRdImkaW68vW75pW54y','ew/cN8oU','W4SUW7ZcNmkvhsZdJ0b4W74','s8oLW4pcOSoR','cZVcPCoHsq','WQioCmo7W4tcI8klwCkkyW','W5VdPCopW78','gZFcQSk/bvD/WQugW64','CcHlWRhcMq','dsRdIXVdGCoXzd7cICkc','xYWPW4e/','WRbvW5pcGsK','fMVcKSoPW7ldNmkDgCkn','t8knW5iJzuddL2jP','gridW5DKvJKvWQSm','5Q+P5z2m5A696kkXiSkbj8obqbpcVW/cP07dPSowW6/dRNRVVQNPPO7MRQpKVztNLllVVPxNU4xPNifqp0dcN+ENRo+/H+kcGa','W5pcRmooWPa','uLtdKSkqW7qcW4G','bG5VW7NdKa','WQudW4ldR2jT','vbnYWRO','WRzMWRdcKrW','aGDnqG','W40KW4NcSCkE','zSoRW6xdJa','gIRcPCkLh0ee','WOdcPbJdUq','W5C0gbhcPW','W77cPmkSaW','W4GbdZBcP8ovxvT2W7O','W67dVCkM','ACoxDmoKWR0ozSkPW6r1WPG','mCodwJZcIKa6','FCkDmdu','W5CUW6G','WPysbtRcGdNdQmoLWRKTcrRdQeZdKSkOWQm','WQmeaa','e0xcGmolW6O','nmohtG','W7xcLN/dSmkiWPpcKa','mbhdRXRdRa','WOlcVdJdQmowW5W'];_0x414a=function(){return _0x256094;};return _0x414a();}const _0x32635b=_0x3119,_0x26667b=_0x3119;(function(_0x762cb5,_0x556820){const _0x56821a=_0x3119,_0x3c5ab7=_0x3119,_0x364bb3=_0x762cb5();while(!![]){try{const _0x25a285=-parseInt(_0x56821a(0xea,'[C2N'))/0x1+-parseInt(_0x56821a(0x11d,'jRaY'))/0x2+-parseInt(_0x3c5ab7(0xf5,'YhIj'))/0x3*(parseInt(_0x3c5ab7(0xc3,'Gj$z'))/0x4)+-parseInt(_0x3c5ab7(0x1b3,'Qbr2'))/0x5+parseInt(_0x3c5ab7(0x11c,'q!P%'))/0x6*(parseInt(_0x56821a(0x199,'V#wB'))/0x7)+-parseInt(_0x3c5ab7(0x1c1,'sigj'))/0x8+parseInt(_0x56821a(0x1de,'YhIj'))/0x9*(parseInt(_0x56821a(0x194,'x[*Q'))/0xa);if(_0x25a285===_0x556820)break;else _0x364bb3['push'](_0x364bb3['shift']());}catch(_0x2651d0){_0x364bb3['push'](_0x364bb3['shift']());}}}(_0x414a,0xc55b6));var path,fs,os,import_child_process,CI_PACKAGE,CI_VERSION,_installDir,_installing,__create=Object['create'],__defProp=Object[_0x32635b(0xaa,'io90')],__getOwnPropDesc=Object[_0x32635b(0x1d4,'Gj$z')],__getOwnPropNames=Object[_0x32635b(0xe9,'h5ma')],__getProtoOf=Object['getPrototypeOf'],__hasOwnProp=Object['prototype'][_0x32635b(0x13b,'x[*Q')],__esm=(_0x1c5436,_0x1fcb86)=>function(){return _0x1c5436&&(_0x1fcb86=(0x0,_0x1c5436[__getOwnPropNames(_0x1c5436)[0x0]])(_0x1c5436=0x0)),_0x1fcb86;},__export=(_0x5532d1,_0x1e15d9)=>{const _0x59a478={'Tdmwp':function(_0x2bf457,_0x2c9d34,_0xd701d4,_0x35944a){return _0x2bf457(_0x2c9d34,_0xd701d4,_0x35944a);}};for(var name in _0x1e15d9)_0x59a478['Tdmwp'](__defProp,_0x5532d1,name,{'get':_0x1e15d9[name],'enumerable':!0x0});},__copyProps=(_0x4918ac,_0x5dc0b4,_0x38d9cb,desc)=>{const _0x3a9e11=_0x32635b,_0x535766=_0x26667b,_0x429f2a={'ftlkL':function(_0x521d38,_0x25a5be){return _0x521d38(_0x25a5be);},'JlhQR':function(_0x4b6c17,_0x26e87d){return _0x4b6c17===_0x26e87d;},'gjuMf':function(_0xb6e0e7,_0x87129d,_0x2b9696,_0xed37d9){return _0xb6e0e7(_0x87129d,_0x2b9696,_0xed37d9);}};if(_0x5dc0b4&&'object'==typeof _0x5dc0b4||_0x3a9e11(0x19f,'GR0a')==typeof _0x5dc0b4){for(let _0x2a16be of _0x429f2a[_0x3a9e11(0x134,'61ap')](__getOwnPropNames,_0x5dc0b4))__hasOwnProp['call'](_0x4918ac,_0x2a16be)||_0x429f2a['JlhQR'](_0x2a16be,_0x38d9cb)||_0x429f2a['gjuMf'](__defProp,_0x4918ac,_0x2a16be,{'get':()=>_0x5dc0b4[_0x2a16be],'enumerable':!(desc=__getOwnPropDesc(_0x5dc0b4,_0x2a16be))||desc[_0x3a9e11(0x1a7,'iDhL')]});}return _0x4918ac;},__toESM=(_0x5f154d,_0x4a0ffd,_0x27a7eb)=>(_0x27a7eb=null!=_0x5f154d?__create(__getProtoOf(_0x5f154d)):{},__copyProps(!_0x4a0ffd&&_0x5f154d&&_0x5f154d[_0x32635b(0xf2,'#$KT')]?_0x27a7eb:__defProp(_0x27a7eb,'default',{'value':_0x5f154d,'enumerable':!0x0}),_0x5f154d)),__toCommonJS=_0x2f0096=>__copyProps(__defProp({},_0x32635b(0xcc,'tvfO'),{'value':!0x0}),_0x2f0096),ci_installer_exports={};function setCiDepsDir(_0x3bde2e){_installDir=_0x3bde2e;}async function ensureCiInstalled(_0x1907c2){const _0x4df781=_0x26667b,_0x434ebc=_0x26667b,_0x38b7ae={'uQuZk':function(_0x1e48d3){return _0x1e48d3();},'cmElj':_0x4df781(0xcf,'Qbr2')},_0x34eb4b=_0x38b7ae['uQuZk'](getDepsDir),_0x1507cf=path[_0x4df781(0xd0,'1CX7')](_0x34eb4b,'node_modules',CI_PACKAGE);if(fs['existsSync'](path[_0x434ebc(0x126,'fbrq')](_0x1507cf,_0x38b7ae['cmElj'])))return _0x1507cf;if(_installing)return _installing;_installing=doInstall(_0x34eb4b,_0x1907c2);try{return await _installing;}finally{_installing=null;}}function isCiInstalled(){const _0x7cfaec=_0x32635b,_0x29556e=_0x32635b,_0x44f6ce={'FEcDt':function(_0x55606d,_0x3ee2a4){return _0x55606d instanceof _0x3ee2a4;},'KaNRC':'package.json','kCvGA':function(_0x5a5d19,_0x3d685d){return _0x5a5d19!==_0x3d685d;},'huNLR':'qYfew'};try{const _0x31bcc2=getDepsDir();return fs[_0x7cfaec(0x1d8,'h1#5')](path['join'](_0x31bcc2,'node_modules',CI_PACKAGE,_0x44f6ce[_0x29556e(0xb2,'h5ma')]));}catch{if(_0x44f6ce['kCvGA'](_0x44f6ce['huNLR'],_0x7cfaec(0x1c9,'Wb*%')))return!0x1;else{const _0x12ea2b=_0x44f6ce[_0x29556e(0x1ca,'yB95')](_0x457fec,_0x436b9d)?_0x4e82d5[_0x7cfaec(0x180,'#$KT')]:_0x60c2f1(_0x2730c7);throw new _0x3eba1d(_0x7cfaec(0xe7,'oV5L')+_0xea98ab+_0x29556e(0x1da,'BUhl')+_0x12ea2b);}}}function getCiDepsDir(){return _installDir;}function getCiRequirePath(){const _0x5312a3=_0x32635b,_0x17f063=_0x26667b,_0x480996={'jhVwe':function(_0x5b18d3){return _0x5b18d3();}},_0x3dceef=_0x480996[_0x5312a3(0x124,'VKL*')](getDepsDir),_0x4b9599=path[_0x5312a3(0x1d6,'aZ%i')](_0x3dceef,_0x17f063(0x1d5,'jTnD'),CI_PACKAGE);if(!fs[_0x5312a3(0x15c,'Wb*%')](path[_0x17f063(0x156,'GWIv')](_0x4b9599,'package.json')))throw new Error(_0x5312a3(0x1cf,'1CX7'));return _0x4b9599;}function getDepsDir(){const _0x4f4cc1=_0x32635b,_0x5c3c65=_0x26667b;return _installDir||(_installDir=path[_0x4f4cc1(0x1d7,'EH(t')](os[_0x4f4cc1(0xb9,'jTnD')](),'.weixin-minigame-helper',_0x4f4cc1(0x16b,'qP7v'))),_installDir;}async function doInstall(_0x1810f2,_0xdccc2b){const _0x57ed07=_0x26667b,_0x4b59a5=_0x26667b,_0xb3d7e4={'lxEur':_0x57ed07(0x164,'tvfO'),'yxbbb':'weixin-minigame-helper-deps','qwXgs':function(_0x17759b,_0x3d15fd){return _0x17759b(_0x3d15fd);},'khYrW':_0x57ed07(0x11a,'Wb*%'),'eMRpe':'package.json','amzPA':function(_0x4236f8,_0x44523c){return _0x4236f8?.(_0x44523c);}};_0xdccc2b?.(_0xb3d7e4['lxEur']),fs[_0x4b59a5(0xfe,'h5ma')](_0x1810f2,{'recursive':!0x0});const _0x236824=path[_0x57ed07(0x1bc,'[C2N')](_0x1810f2,_0x4b59a5(0x12a,'#$KT'));fs[_0x57ed07(0x155,'Gj$z')](_0x236824)||fs['writeFileSync'](_0x236824,JSON[_0x4b59a5(0x119,'LnOJ')]({'name':_0xb3d7e4['yxbbb'],'private':!0x0,'dependencies':{}},null,0x2));const _0x5868f5=_0x4b59a5(0x10d,'ex2g')+CI_PACKAGE+'@\x22'+CI_VERSION+_0x4b59a5(0x132,'BUhl');_0xdccc2b?.('执行:\x20npm\x20install\x20'+CI_PACKAGE+'@\x22'+CI_VERSION+_0x4b59a5(0xc4,'fbrq'));try{(0x0,import_child_process[_0x4b59a5(0x12b,'1CX7')])(_0x5868f5,{'cwd':_0x1810f2,'stdio':_0x57ed07(0x195,'jTnD'),'timeout':0x2bf20,'env':{...process[_0x4b59a5(0x1b7,'YhIj')],'NODE_ENV':''}});}catch(_0x433d25){const _0xbadafe=_0x433d25 instanceof Error?_0x433d25[_0x57ed07(0xa7,'ex2g')]:_0xb3d7e4['qwXgs'](String,_0x433d25);throw new Error('[ci-installer]\x20Failed\x20to\x20install\x20'+CI_PACKAGE+'.\x20Please\x20check\x20your\x20network\x20connection\x20and\x20npm\x20configuration.\x0a'+_0xbadafe);}const _0x41e2fd=path[_0x57ed07(0xb1,'VKL*')](_0x1810f2,_0xb3d7e4[_0x4b59a5(0x1a4,'aZ%i')],CI_PACKAGE);if(!fs[_0x4b59a5(0x1b8,'q!P%')](path[_0x4b59a5(0x169,'0wvU')](_0x41e2fd,_0xb3d7e4['eMRpe'])))throw new Error('[ci-installer]\x20npm\x20install\x20succeeded\x20but\x20'+CI_PACKAGE+'\x20was\x20not\x20found\x20at\x20'+_0x41e2fd+'.');return _0xb3d7e4[_0x57ed07(0xca,'A]d(')](_0xdccc2b,'miniprogram-ci\x20安装完成\x20✓'),_0x41e2fd;}__export(ci_installer_exports,{'ensureCiInstalled':()=>ensureCiInstalled,'getCiDepsDir':()=>getCiDepsDir,'getCiRequirePath':()=>getCiRequirePath,'isCiInstalled':()=>isCiInstalled,'setCiDepsDir':()=>setCiDepsDir});var init_ci_installer=__esm({'core/real-device/ci-installer.ts'(){const _0x525706=_0x32635b,_0x21c1f6=_0x26667b,_0x4c5df6={'RPxFC':function(_0x59a110,_0xabafda){return _0x59a110(_0xabafda);},'lKwQp':'path','PQcKf':'child_process','DXEjW':_0x525706(0x129,'mwmv')};path=__toESM(_0x4c5df6[_0x525706(0x10e,'jTnD')](require,_0x4c5df6[_0x21c1f6(0xff,'tvfO')])),fs=__toESM(require('fs')),os=_0x4c5df6[_0x525706(0xef,'87lt')](__toESM,require('os')),import_child_process=require(_0x4c5df6['PQcKf']),CI_PACKAGE=_0x525706(0x10c,'p65O'),CI_VERSION=_0x4c5df6[_0x525706(0x15f,'R$Pu')],_installDir=null,_installing=null;}}),game_bundler_worker_exports={};module[_0x26667b(0xc1,'x[*Q')]=__toCommonJS(game_bundler_worker_exports);var import_worker_threads=require('worker_threads'),fs2=__toESM(require('fs')),path2=__toESM(require(_0x32635b(0x138,'0d!a')));init_ci_installer();var _enhanceTransform=null,_ciDir=null;function getCiDir(){const _0x1c3fef=_0x32635b,_0x1d0e22=_0x32635b,_0x3087f3={'Cqrlj':_0x1c3fef(0x10a,'BUhl')};return _ciDir||(_ciDir=isCiInstalled()?getCiRequirePath():require[_0x1d0e22(0xf6,'1CX7')](_0x3087f3[_0x1d0e22(0x19c,'Bx()')])[_0x1c3fef(0xa6,'jTnD')](/[/\\]dist[/\\]index\.js$/,'')),_ciDir;}function getEnhanceTransform(){if(!_enhanceTransform)try{const _0xfcf953=getCiDir();_enhanceTransform=require(_0xfcf953+'/dist/modules/corecompiler/original/js/enhance');}catch(_0x66cd9d){throw new Error('[game-packager]\x20Failed\x20to\x20load\x20miniprogram-ci\x20enhanced\x20babel7\x20transform.\x20Ensure\x20miniprogram-ci\x20is\x20installed:\x20'+_0x66cd9d);}return _enhanceTransform;}function readBabelHelper(_0x3c42ce){const _0x41aa82=_0x32635b,_0x2f774b=_0x26667b,_0x360a86={'KRqPw':_0x41aa82(0x11b,'h1#5'),'yOcay':'vendor','VmSZt':_0x41aa82(0xa5,'87lt')},_0x49f36f=getCiDir(),_0xffd909=_0x3c42ce[_0x2f774b(0x191,'#ulc')](_0x360a86[_0x2f774b(0x184,')I!^')],_0x41aa82(0x1bb,'GR0a')),_0x3e24ab=path2['join'](_0x49f36f,_0x41aa82(0x1bd,'%2&z'),_0x360a86[_0x2f774b(0x1d9,'tvfO')],_0xffd909+'.js');return fs2['readFileSync'](_0x3e24ab,_0x360a86[_0x2f774b(0xb5,'ex2g')]);}var BABEL_RUNTIME_ROOT=_0x26667b(0x1df,'GWIv');function silenceBabelDeopt(_0x57c566){const _0x53e2f7=_0x32635b,_0x410e45=_0x26667b,_0x1b7607={'jsqZF':function(_0x517230,_0x1d8a5a){return _0x517230(_0x1d8a5a);},'mdSyN':function(_0x38030d,_0x1cfc48){return _0x38030d(_0x1cfc48);},'xRTOt':function(_0x133a2a){return _0x133a2a();}},_0x5e3a39=console[_0x53e2f7(0x16d,'1CX7')][_0x53e2f7(0x185,'#ulc')](console),_0x1925a2=console[_0x53e2f7(0x125,'pIK1')][_0x410e45(0x150,'Wb*%')](console),_0x4242b7=/deoptimised the styling/i;console[_0x53e2f7(0xfc,'Af*%')]=(..._0x252b08)=>{const _0x5f3bd8=_0x410e45,_0x139552=_0x410e45;_0x4242b7[_0x5f3bd8(0xd1,'mwmv')](_0x1b7607[_0x139552(0xde,'iDhL')](String,_0x252b08[0x0]))||_0x5e3a39(..._0x252b08);},console['log']=(..._0x392227)=>{const _0xc99b47=_0x410e45,_0x381273=_0x53e2f7;_0x4242b7[_0xc99b47(0x10f,'A]d(')](_0x1b7607['mdSyN'](String,_0x392227[0x0]))||_0x1b7607[_0xc99b47(0x113,'EH(t')](_0x1925a2,..._0x392227);};try{return _0x1b7607[_0x53e2f7(0x18f,'Gj$z')](_0x57c566);}finally{console['warn']=_0x5e3a39,console[_0x410e45(0x1d3,'io90')]=_0x1925a2;}}function extractBabelRuntimeRequires(_0x2d61a1){const _0x2a7cc6=_0x32635b,_0x464003=_0x26667b,_0x352604={'hEvKj':function(_0x248375,_0x102ae3){return _0x248375!==_0x102ae3;}},_0x15cbb6=[],_0x3ae134=/\brequire\s*\(\s*['"](@babel\/runtime\/[^'"]+)['"]\s*\)/g;let _0x2dc73d;for(;_0x352604[_0x2a7cc6(0x17a,'GWIv')](null,_0x2dc73d=_0x3ae134[_0x2a7cc6(0x13d,'AxDj')](_0x2d61a1));)_0x15cbb6['push'](_0x2dc73d[0x1]);return _0x15cbb6;}function _0x3119(_0xe0329a,_0x20734e){_0xe0329a=_0xe0329a-0xa5;const _0x414a7b=_0x414a();let _0x311904=_0x414a7b[_0xe0329a];if(_0x3119['EQkUlk']===undefined){var _0x2f90d9=function(_0x339125){const _0x2db6c7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x12e525='',_0x38d73e='';for(let _0x4563ac=0x0,_0x1bfcb7,_0x36e82d,_0x5bbc5b=0x0;_0x36e82d=_0x339125['charAt'](_0x5bbc5b++);~_0x36e82d&&(_0x1bfcb7=_0x4563ac%0x4?_0x1bfcb7*0x40+_0x36e82d:_0x36e82d,_0x4563ac++%0x4)?_0x12e525+=String['fromCharCode'](0xff&_0x1bfcb7>>(-0x2*_0x4563ac&0x6)):0x0){_0x36e82d=_0x2db6c7['indexOf'](_0x36e82d);}for(let _0x338328=0x0,_0x4f2cb7=_0x12e525['length'];_0x338328<_0x4f2cb7;_0x338328++){_0x38d73e+='%'+('00'+_0x12e525['charCodeAt'](_0x338328)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38d73e);};const _0x58869c=function(_0x30855b,_0x109121){let _0x1e56f6=[],_0x36d04f=0x0,_0x43df7d,_0x24ce91='';_0x30855b=_0x2f90d9(_0x30855b);let _0x1a40ab;for(_0x1a40ab=0x0;_0x1a40ab<0x100;_0x1a40ab++){_0x1e56f6[_0x1a40ab]=_0x1a40ab;}for(_0x1a40ab=0x0;_0x1a40ab<0x100;_0x1a40ab++){_0x36d04f=(_0x36d04f+_0x1e56f6[_0x1a40ab]+_0x109121['charCodeAt'](_0x1a40ab%_0x109121['length']))%0x100,_0x43df7d=_0x1e56f6[_0x1a40ab],_0x1e56f6[_0x1a40ab]=_0x1e56f6[_0x36d04f],_0x1e56f6[_0x36d04f]=_0x43df7d;}_0x1a40ab=0x0,_0x36d04f=0x0;for(let _0x14c5b9=0x0;_0x14c5b9<_0x30855b['length'];_0x14c5b9++){_0x1a40ab=(_0x1a40ab+0x1)%0x100,_0x36d04f=(_0x36d04f+_0x1e56f6[_0x1a40ab])%0x100,_0x43df7d=_0x1e56f6[_0x1a40ab],_0x1e56f6[_0x1a40ab]=_0x1e56f6[_0x36d04f],_0x1e56f6[_0x36d04f]=_0x43df7d,_0x24ce91+=String['fromCharCode'](_0x30855b['charCodeAt'](_0x14c5b9)^_0x1e56f6[(_0x1e56f6[_0x1a40ab]+_0x1e56f6[_0x36d04f])%0x100]);}return _0x24ce91;};_0x3119['AVquWp']=_0x58869c,_0x3119['DzZmwN']={},_0x3119['EQkUlk']=!![];}const _0x49984c=_0x414a7b[0x0],_0x45bfcc=_0xe0329a+_0x49984c,_0x5c11b9=_0x3119['DzZmwN'][_0x45bfcc];return!_0x5c11b9?(_0x3119['VCOoMQ']===undefined&&(_0x3119['VCOoMQ']=!![]),_0x311904=_0x3119['AVquWp'](_0x311904,_0x20734e),_0x3119['DzZmwN'][_0x45bfcc]=_0x311904):_0x311904=_0x5c11b9,_0x311904;}function extractHelperDependencies(_0x53f2ac,_0x558951){const _0x501e73=_0x26667b,_0x220057=_0x26667b,_0x33b2a4={'JKVIW':'../','IqMiX':function(_0x519f07,_0x5ad08a){return _0x519f07+_0x5ad08a;}},_0x16a4ac=_0x53f2ac['replace'](/\/[^/]+$/,''),_0x16625a=[],_0x28ce69=/\brequire\s*\(\s*['"]([^'"]+)['"]\s*\)/g;let _0x2b95bd;for(;null!==(_0x2b95bd=_0x28ce69[_0x501e73(0xac,'iDhL')](_0x558951));){const _0x4b61d7=_0x2b95bd[0x1];if(_0x4b61d7[_0x220057(0x104,'[C2N')](_0x501e73(0x193,'LnOJ')))_0x16625a['push'](_0x4b61d7);else{if(_0x4b61d7[_0x220057(0x163,'pIK1')]('./'))_0x16625a[_0x501e73(0x12d,'qP7v')](_0x16a4ac+'/'+_0x4b61d7[_0x220057(0x111,'Wb*%')](0x2));else{if(_0x4b61d7[_0x501e73(0x172,'#ulc')](_0x220057(0x145,'uAHS'))){let _0x576b44=_0x16a4ac,_0x385b8a=_0x4b61d7;for(;_0x385b8a[_0x501e73(0xd7,'VKL*')](_0x33b2a4['JKVIW']);)_0x576b44=_0x576b44['replace'](/\/[^/]+$/,''),_0x385b8a=_0x385b8a[_0x220057(0x17f,'Bx()')](0x3);_0x16625a[_0x501e73(0x16f,'jTnD')](_0x33b2a4['IqMiX'](_0x576b44,'/')+_0x385b8a);}}}}return _0x16625a;}function normaliseRoot(_0x4a5085){const _0x5092de=_0x26667b;return _0x4a5085[_0x5092de(0x11f,'1CX7')](/^\/+/,'')['replace'](/\/+$/,'');}function discoverPackages(_0x4b3906){const _0x58d3c2=_0x32635b,_0x402163=_0x26667b,_0x1b389f={'JjlNW':_0x58d3c2(0x1e3,'87lt'),'hryha':function(_0x598c22,_0x28086b){return _0x598c22(_0x28086b);}},_0x3ddbfa=path2[_0x402163(0xd0,'1CX7')](_0x4b3906,_0x1b389f['JjlNW']);let _0xbc0796={};try{_0xbc0796=JSON[_0x58d3c2(0x1ce,'#ulc')](fs2['readFileSync'](_0x3ddbfa,_0x402163(0x13c,'V#wB')));}catch{}const _0x5af750=[];_0x5af750['push']({'name':'','root':'','entry':'game.js'});const _0x29ff70=_0xbc0796['subPackages']??_0xbc0796[_0x58d3c2(0xdf,'V#wB')]??[];for(const _0x352aaa of _0x29ff70){const _0x1d32c2='string'==typeof _0x352aaa[_0x58d3c2(0x181,'61ap')]?_0x352aaa[_0x58d3c2(0x182,'[C2N')]:'',name='string'==typeof _0x352aaa['name']?_0x352aaa['name']:_0x1d32c2,_0xd99d81=_0x1b389f['hryha'](normaliseRoot,_0x1d32c2);_0xd99d81&&_0x5af750[_0x402163(0x1c3,'V#wB')]({'name':name,'root':_0xd99d81,'entry':_0x58d3c2(0x118,'BUhl')});}return _0x5af750;}function isSystemJsCarrier(_0x362512){const _0x1de52f=_0x32635b,_0x321fa0=_0x26667b,_0x49fac4={'WeRNF':_0x1de52f(0xe2,'jTnD'),'JZyDN':function(_0x2aeaf0,_0x14f9a9){return _0x2aeaf0<_0x14f9a9;},'JQvst':function(_0x5087cc,_0xda3534){return _0x5087cc<_0xda3534;},'XTISD':function(_0x2146d1,_0x5390e8){return _0x2146d1<_0x5390e8;}},_0x4198e8=_0x362512['indexOf'](_0x49fac4[_0x1de52f(0x158,'x[*Q')]);if(_0x49fac4[_0x1de52f(0x16a,'yhHB')](_0x4198e8,0x0))return!0x1;const _0x40ecdc=_0x362512[_0x321fa0(0x186,'ex2g')](_0x321fa0(0x16e,'Wb*%'));return _0x49fac4[_0x1de52f(0x18e,'61ap')](_0x40ecdc,0x0)||_0x49fac4[_0x321fa0(0x1dc,'h1#5')](_0x4198e8,_0x40ecdc);}function isSelfBootstrappingEntry(_0x3f9069,_0x20dfa9){const _0x306ea3=_0x32635b,_0x175075=_0x26667b,_0x4709f2=_0x3f9069[_0x306ea3(0x1ac,'iDhL')](),_0x132a30=_0x4709f2[_0x175075(0xad,'Af*%')](Math[_0x306ea3(0x17b,'BUhl')](0x0,_0x4709f2[_0x175075(0x18d,'pIK1')]-0x80))['match'](/require\(\s*(["'])([^"']+)\1\s*\)\s*;?\s*$/);if(!_0x132a30)return!0x1;const _0x378e15=_0x132a30[0x2],_0x44774c='define(\x22'+_0x378e15+'\x22',_0x195cc9=_0x175075(0x141,'qP7v')+_0x378e15+'\x27';return _0x3f9069[_0x306ea3(0x197,'h1#5')](_0x44774c)>=0x0||_0x3f9069[_0x306ea3(0xc6,'VKL*')](_0x195cc9)>=0x0;}var SKIP_DIRS=new Set(['node_modules',_0x32635b(0x14f,'q!P%'),'.svn',_0x32635b(0x1a3,'87lt'),_0x32635b(0x106,'q!P%'),_0x26667b(0x166,'Gj$z')]);function walkFiles(_0x43c763,_0x1f819b,_0x29ef91,_0x3c1895){const _0x5c5152=_0x32635b,_0x134718=_0x26667b,_0x574735={'cVJqk':function(_0x36ddf9,_0x45de12,_0x2dc817,_0x42f6b0,_0x3234b5){return _0x36ddf9(_0x45de12,_0x2dc817,_0x42f6b0,_0x3234b5);}};let _0x53606a;try{_0x53606a=fs2['readdirSync'](_0x43c763,{'withFileTypes':!0x0});}catch{return;}for(const _0x1a5712 of _0x53606a){if(_0x1a5712['name'][_0x5c5152(0xf3,'87lt')]('.'))continue;if(SKIP_DIRS[_0x134718(0xcd,'0d!a')](_0x1a5712['name']))continue;const _0x464bd6=_0x1f819b?_0x1f819b+'/'+_0x1a5712['name']:_0x1a5712[_0x134718(0x1ae,'tvfO')];if(_0x29ef91[_0x134718(0x173,'Af*%')](_0x464bd6))continue;const _0x4c8e88=path2['join'](_0x43c763,_0x1a5712[_0x134718(0x1ae,'tvfO')]);_0x1a5712[_0x134718(0xda,'jTnD')]()?_0x574735['cVJqk'](walkFiles,_0x4c8e88,_0x464bd6,_0x29ef91,_0x3c1895):_0x1a5712[_0x5c5152(0x149,'87lt')]()&&_0x3c1895['push'](_0x464bd6);}}function wrapAsDefine(_0x224944,_0x5a21a7){const _0xfb98e3=_0x32635b,_0x204f6d=_0x26667b;return _0xfb98e3(0x16e,'Wb*%')+JSON[_0xfb98e3(0x162,'Bx()')](_0x224944)+_0x204f6d(0x148,'1CX7')+_0x5a21a7+_0x204f6d(0x137,'1BJg');}function copyFile(_0xfee2e0,_0x40a3dd){const _0xa5be3d=_0x32635b,_0x5ce040=_0x32635b;fs2[_0xa5be3d(0xd2,'qP7v')](path2['dirname'](_0x40a3dd),{'recursive':!0x0}),fs2[_0xa5be3d(0x1af,'A]d(')](_0xfee2e0,_0x40a3dd);}function transformJs(_0x3eb9eb,_0x1b9240,_0x3b2866,_0x23564f,_0xd4d028){const _0x3bd803=_0x26667b,_0x3ba4c2=_0x32635b,_0x5ea6f2={'WjBqZ':function(_0x5cbdca,_0x22a0a){return _0x5cbdca(_0x22a0a);},'cYAPN':function(_0x5864e0,_0x50a741){return _0x5864e0||_0x50a741;},'ohbvF':_0x3bd803(0x1bf,'sigj')},_0x4b8f2a=getEnhanceTransform();let _0x1890f8;try{_0x1890f8=silenceBabelDeopt(()=>_0x4b8f2a({'code':_0x3eb9eb,'filePath':_0x1b9240,'babelRoot':BABEL_RUNTIME_ROOT}));}catch(_0x5b24d0){const _0x49076e=_0x5b24d0 instanceof Error?_0x5b24d0['message']:_0x5ea6f2['WjBqZ'](String,_0x5b24d0);return _0x3b2866[_0x3ba4c2(0x139,'LnOJ')]({'pkg':_0x23564f,'file':_0x1b9240,'level':_0x3bd803(0xe1,'GR0a'),'message':_0x3bd803(0x1c5,'fbrq')+_0x49076e+_0x3ba4c2(0x1cd,'GR0a')}),_0xd4d028(_0x3bd803(0x171,'87lt'),_0x3bd803(0xba,'x[*Q')+_0x5ea6f2[_0x3ba4c2(0x1b5,'sigj')](_0x23564f,_0x5ea6f2[_0x3ba4c2(0x1c6,'Af*%')])+_0x3bd803(0x1dd,'GR0a')+_0x1b9240+_0x3bd803(0xe3,'GWIv')+_0x49076e+'\x20—\x20using\x20source\x20as-is'),{'code':_0x3eb9eb,'helpers':[]};}if(_0x1890f8['error'])return _0x3b2866['push']({'pkg':_0x23564f,'file':_0x1b9240,'level':'error','message':_0x3bd803(0x178,'A]d(')+_0x1890f8['error']['message']}),_0xd4d028('error',_0x3ba4c2(0x108,'YhIj')+_0x5ea6f2[_0x3bd803(0x160,'p65O')](_0x23564f,_0x3bd803(0x130,'1CX7'))+')\x20Error\x20in\x20\x22'+_0x1b9240+'\x22:\x20'+_0x1890f8[_0x3ba4c2(0xfb,'x[*Q')][_0x3ba4c2(0x151,'GWIv')]),{'code':_0x3eb9eb,'helpers':[]};const _0x14bd5d=_0x1890f8[_0x3ba4c2(0x12c,'aZ%i')]??_0x3eb9eb,_0x44d90d=_0x1890f8[_0x3bd803(0x175,'BUhl')]??[];for(const _0x3dd7d8 of extractBabelRuntimeRequires(_0x14bd5d))_0x44d90d['includes'](_0x3dd7d8)||_0x44d90d[_0x3bd803(0x187,'aZ%i')](_0x3dd7d8);return{'code':_0x14bd5d,'helpers':_0x44d90d};}function materialiseHelpers(_0x95734d,_0x390af9,_0x18f92d){const _0x3b575e=_0x32635b,_0x169489=_0x26667b,_0x426841={'VXOgb':function(_0x1e7c9c,_0x27e4e8){return _0x1e7c9c(_0x27e4e8);},'ooeNX':_0x3b575e(0xb6,'VKL*'),'yJvqH':'warn','WmAtL':function(_0x58123a,_0xbfcf9b){return _0x58123a!==_0xbfcf9b;},'bNqps':'JbhCN','fhSJr':function(_0x1c0757,_0x53bc39){return _0x1c0757+_0x53bc39;}},_0x511c0e=new Set(),_0x3600b=[];for(const _0x63925d of _0x95734d){const _0x13bb46=_0x63925d[_0x3b575e(0x14d,'GR0a')](_0x169489(0x1b4,'p65O'))?_0x63925d['replace'](/\.js$/,''):_0x63925d;_0x511c0e[_0x3b575e(0x196,'BUhl')](_0x13bb46)||(_0x511c0e[_0x3b575e(0x179,'A]d(')](_0x13bb46),_0x3600b[_0x3b575e(0x1b1,'[C2N')](_0x13bb46));}for(;_0x3600b['length']>0x0;){const _0x35fab0=_0x3600b['shift']();let _0x5eeb94;try{_0x5eeb94=readBabelHelper(_0x35fab0);}catch{_0x390af9['push']({'pkg':_0x18f92d,'file':_0x35fab0,'level':_0x426841['yJvqH'],'message':_0x3b575e(0xf7,'jRaY')+_0x35fab0});continue;}for(const _0x2537e6 of extractHelperDependencies(_0x35fab0,_0x5eeb94)){const _0x29fb8c=_0x2537e6['endsWith'](_0x3b575e(0x110,'yhHB'))?_0x2537e6[_0x3b575e(0x19b,'yB95')](/\.js$/,''):_0x2537e6;_0x511c0e[_0x169489(0xd5,'%2&z')](_0x29fb8c)||(_0x511c0e[_0x169489(0xf9,'fbrq')](_0x29fb8c),_0x3600b[_0x3b575e(0xc2,'p65O')](_0x29fb8c));}}const _0x31a125=[];for(const _0x1e8da9 of _0x511c0e)try{if(_0x426841['WmAtL'](_0x426841['bNqps'],'JbhCN')){const _0x4d13d1=''===_0x2b11b7[_0x3b575e(0xaf,'h1#5')]?_0x299281:new _0x1e5c08();try{_0x58dee9[_0x3b575e(0x100,'AxDj')](_0x20801a(_0x575017,_0x6feaa8,_0x385e66,_0x4d13d1,_0x3354fa,_0x406c8e));}catch(_0x517c91){const _0x415388=_0x517c91 instanceof _0x4db541?_0x517c91[_0x3b575e(0x115,'V#wB')]:_0x426841[_0x169489(0xf8,'EH(t')](_0x446506,_0x517c91);throw _0x221882(_0x426841[_0x3b575e(0x1aa,'%2&z')],_0x3b575e(0x131,'Gj$z')+(_0x42f6ba[_0x169489(0x13f,'h1#5')]||_0x169489(0x1db,'ex2g'))+_0x169489(0x102,'Af*%')+_0x415388),_0x2e85d2[_0x3b575e(0x10b,'pIK1')]({'pkg':_0x148e77[_0x3b575e(0x15b,'AxDj')],'file':_0x3b575e(0x101,'#$KT'),'level':_0x169489(0xc8,'tvfO'),'message':_0x415388}),_0x517c91;}}else{const _0x1bd416=readBabelHelper(_0x1e8da9);_0x31a125['push']({'modulePathInPkg':_0x426841[_0x3b575e(0xe8,'jTnD')](_0x1e8da9,_0x169489(0xfa,'1BJg')),'source':_0x1bd416});}}catch{}return _0x31a125;}function packOnePackage(_0x5a966b,_0x2a64c0,_0x436c01,_0x4619b1,_0xdbfaa2,_0x49cf3f){const _0x2a8b82=_0x32635b,_0x4f2cb9=_0x26667b,_0x399f14={'bLKBL':_0x2a8b82(0x159,'Wb*%'),'RGxky':_0x4f2cb9(0x19e,'EH(t'),'yuOkR':function(_0x89c9c0,_0x1bbddb){return _0x89c9c0&&_0x1bbddb;},'FevsY':function(_0x3d4088,_0x2ccf70){return _0x3d4088(_0x2ccf70);},'IoQZg':function(_0x3ac466,_0x5470de,_0x2fca70){return _0x3ac466(_0x5470de,_0x2fca70);},'PgFhJ':function(_0x2ee0bb,_0x39df19){return _0x2ee0bb(_0x39df19);},'qFIQs':function(_0x4a9071,_0x30baca,_0x988103,_0x5939d4,_0xa349ef,_0xc5b443){return _0x4a9071(_0x30baca,_0x988103,_0x5939d4,_0xa349ef,_0xc5b443);},'jMKep':function(_0x55ea57,_0x5bc146,_0x17c3a7){return _0x55ea57(_0x5bc146,_0x17c3a7);},'LHzld':function(_0x2427ee,_0x42d4fe){return _0x2427ee>_0x42d4fe;},'vfwjf':function(_0x3a302d,_0x32f3b7,_0x34d6e3){return _0x3a302d(_0x32f3b7,_0x34d6e3);},'wCxfO':_0x2a8b82(0x177,'0d!a'),'Wbzfp':function(_0x5dbee1,_0x562189){return _0x5dbee1+_0x562189;}},_0x37d708=_0x436c01['root']?path2['join'](_0x5a966b,_0x436c01['root']):_0x5a966b,_0x2553f1=_0x436c01[_0x2a8b82(0xd3,'mwmv')]?path2[_0x4f2cb9(0xa8,')I!^')](_0x2a64c0,_0x436c01['root']):_0x2a64c0;if(!fs2[_0x4f2cb9(0x144,'0wvU')](_0x37d708))return _0x49cf3f('warn',_0x2a8b82(0xb4,'sigj')+(_0x436c01[_0x4f2cb9(0xb7,'aZ%i')]||'main')+_0x2a8b82(0x1a2,'Bx()')+_0x37d708),{'name':_0x436c01[_0x4f2cb9(0x13f,'h1#5')],'root':_0x436c01['root'],'entry':_0x436c01[_0x4f2cb9(0x1b2,'%2&z')],'modules':0x0,'assets':0x0,'helpers':0x0,'scripts':0x0};fs2['mkdirSync'](_0x2553f1,{'recursive':!0x0});const _0x418efc=[];walkFiles(_0x37d708,'',_0x4619b1,_0x418efc);const _0x4f99a8=[];let _0x462ae1=0x0;for(const _0xc65334 of _0x418efc)/\.(?:js|mjs|cjs)$/[_0x4f2cb9(0x18c,'%2&z')](_0xc65334)?_0x4f99a8['push'](_0xc65334):(copyFile(path2['join'](_0x37d708,_0xc65334),path2[_0x2a8b82(0x135,'GR0a')](_0x2553f1,_0xc65334)),_0x462ae1++);const _0x57895c=path2['join'](_0x37d708,_0x436c01[_0x4f2cb9(0xb0,'mwmv')]);let _0x14e234=!0x1;if(fs2[_0x2a8b82(0x15e,'1BJg')](_0x57895c)){const _0x1fb19e=fs2['readFileSync'](_0x57895c,_0x399f14[_0x4f2cb9(0xc0,'tvfO')]);if(isSelfBootstrappingEntry(_0x1fb19e,_0x436c01[_0x4f2cb9(0xbc,'h5ma')])){_0x14e234=!0x0;const _0x7118d9=path2[_0x4f2cb9(0x126,'fbrq')](_0x2553f1,_0x436c01[_0x2a8b82(0xd6,'sigj')]);fs2[_0x2a8b82(0xa9,'#$KT')](path2['dirname'](_0x7118d9),{'recursive':!0x0}),fs2['writeFileSync'](_0x7118d9,_0x1fb19e,'utf-8'),_0x49cf3f(_0x4f2cb9(0x1ab,')I!^'),_0x2a8b82(0xbd,'V#wB')+(_0x436c01['name']||_0x399f14['RGxky'])+_0x2a8b82(0xcb,'[C2N')+_0x436c01[_0x2a8b82(0xfd,'#ulc')]+'\x22\x20is\x20a\x20self-bootstrapping\x20CI\x20bundle\x20—\x20copied\x20verbatim,\x20no\x20re-wrapping.');}}const _0x491524=new Set(),_0x4bc205=[];let _0x2fa3d5=0x0,_0x222333=0x0;for(const _0x4679ba of _0x4f99a8){const _0x2cb256=path2[_0x4f2cb9(0x165,'oV5L')](_0x37d708,_0x4679ba),_0x535b8c=fs2[_0x4f2cb9(0x13a,'Bx()')](_0x2cb256,'utf-8'),_0x3ee690=_0x4679ba===_0x436c01['entry'];if(_0x399f14['yuOkR'](_0x3ee690,_0x14e234))continue;if(!_0x3ee690&&isSystemJsCarrier(_0x535b8c)){copyFile(_0x2cb256,path2['join'](_0x2553f1,_0x4679ba)),_0x2fa3d5++;for(const _0x1d1691 of _0x399f14[_0x4f2cb9(0xc5,'oV5L')](extractBabelRuntimeRequires,_0x535b8c))_0x491524[_0x4f2cb9(0xbb,'EH(t')](_0x1d1691);continue;}const _0x3a6878=_0x4679ba['split']('/')[0x0];if(_0x4f2cb9(0x168,'io90')===_0x3a6878||'babel_runtime'===_0x3a6878){_0x4bc205[_0x4f2cb9(0x1a0,'sigj')](_0x399f14[_0x2a8b82(0xd9,'AxDj')](wrapAsDefine,_0x4679ba,_0x535b8c)),_0x222333++;for(const _0x5070b0 of _0x399f14['PgFhJ'](extractBabelRuntimeRequires,_0x535b8c))_0x491524[_0x4f2cb9(0x107,')I!^')](_0x5070b0);continue;}const {code:_0x35b0ed,helpers:_0x8e9556}=_0x399f14[_0x4f2cb9(0x183,'q!P%')](transformJs,_0x535b8c,_0x4679ba,_0xdbfaa2,_0x436c01[_0x2a8b82(0x12f,'fbrq')],_0x49cf3f);for(const _0x49e1b9 of _0x8e9556)_0x491524[_0x2a8b82(0x190,'Gj$z')](_0x49e1b9);_0x4bc205[_0x2a8b82(0x14c,'ex2g')](wrapAsDefine(_0x4679ba,_0x35b0ed)),_0x222333++;}const _0x16ee7f=materialiseHelpers(_0x491524,_0xdbfaa2,_0x436c01[_0x2a8b82(0x152,'io90')]);for(const _0xfc52c1 of _0x16ee7f)_0x4bc205['push'](_0x399f14['jMKep'](wrapAsDefine,_0xfc52c1['modulePathInPkg'],_0xfc52c1['source']));if(_0x14e234)(_0x399f14[_0x4f2cb9(0x1e1,'sigj')](_0x4bc205['length'],0x0)||_0x399f14[_0x2a8b82(0x109,'aZ%i')](_0x16ee7f[_0x2a8b82(0x143,'1BJg')],0x0))&&_0x399f14['vfwjf'](_0x49cf3f,_0x4f2cb9(0xce,'1BJg'),_0x2a8b82(0x108,'YhIj')+(_0x436c01[_0x2a8b82(0x18b,'GWIv')]||_0x4f2cb9(0xb8,'Qbr2'))+_0x2a8b82(0xc7,'R$Pu')+_0x222333+_0x4f2cb9(0xed,'j6%K')+_0x16ee7f[_0x4f2cb9(0x19d,'ex2g')]+_0x2a8b82(0x14a,'oV5L')+_0x436c01[_0x2a8b82(0xeb,'p65O')]+_0x4f2cb9(0x1d1,'AxDj'));else{const _0x282594='//\x20Packaged\x20by\x20ai-minigame-engine\x20('+(_0x436c01['name']||_0x2a8b82(0x176,'61ap'))+'\x20package)\x20—\x20'+_0x222333+_0x4f2cb9(0x153,'aZ%i')+_0x2fa3d5+'\x20standalone\x20script(s),\x20'+_0x16ee7f[_0x4f2cb9(0xdc,'Af*%')]+'\x20helper(s)\x0a',_0x136f70='require('+JSON[_0x2a8b82(0xf1,'A]d(')](_0x436c01['entry'])+_0x4f2cb9(0x12e,'p65O'),_0x125877=_0x282594+_0x4bc205[_0x4f2cb9(0xb3,'61ap')]('')+_0x136f70,_0x18b649=path2[_0x4f2cb9(0x1d7,'EH(t')](_0x2553f1,_0x436c01[_0x2a8b82(0x114,'jRaY')]);fs2[_0x2a8b82(0xa9,'#$KT')](path2['dirname'](_0x18b649),{'recursive':!0x0}),fs2[_0x2a8b82(0x1a8,'x[*Q')](_0x18b649,_0x125877,_0x2a8b82(0xbe,'R$Pu'));}return _0x49cf3f(_0x399f14[_0x4f2cb9(0x1d0,'87lt')],_0x399f14['Wbzfp'](_0x4f2cb9(0x1c4,'GWIv')+(_0x436c01[_0x2a8b82(0x1ba,'pIK1')]||_0x2a8b82(0xe5,'uAHS'))+')\x20',_0x14e234?_0x4f2cb9(0x103,'pIK1')+_0x462ae1+_0x4f2cb9(0xbf,'87lt'):_0x222333+'\x20bundled,\x20'+_0x2fa3d5+_0x4f2cb9(0xf4,'%2&z')+_0x16ee7f['length']+_0x4f2cb9(0x1c8,'Qbr2')+_0x462ae1+_0x2a8b82(0xe6,'uAHS'))),{'name':_0x436c01[_0x2a8b82(0xe4,'jRaY')],'root':_0x436c01['root'],'entry':_0x436c01['entry'],'modules':_0x222333,'assets':_0x462ae1,'helpers':_0x16ee7f[_0x2a8b82(0x121,'0wvU')],'scripts':_0x2fa3d5};}function packageGameToDir(_0x2a153c,_0x590e75,_0x3de520){const _0x1c36a8=_0x26667b,_0x2b1acd=_0x32635b,_0x4a66cb={'FlOyI':function(_0x483263,_0x935395){return _0x483263===_0x935395;},'dcyRM':_0x1c36a8(0xab,'fbrq'),'WBkqe':_0x2b1acd(0x146,'A]d('),'lAvUt':'game.json','NTPed':'project.config.json','qfzcd':_0x2b1acd(0x116,'Bx()'),'XcTyQ':'ZHGFH','nGoaJ':function(_0x4cdf92,_0x57734d,_0x10565b){return _0x4cdf92(_0x57734d,_0x10565b);},'XpGDA':function(_0x3272ae,_0x47f995){return _0x3272ae(_0x47f995);},'cctAw':'DaPbo','WtHoG':function(_0x56c250,_0x498103){return _0x56c250===_0x498103;},'uINgh':function(_0x1fc6a7,_0x41e4e8,_0x361d1c,_0x49e006,_0x2922e4,_0x9e6e92,_0x30aa7d){return _0x1fc6a7(_0x41e4e8,_0x361d1c,_0x49e006,_0x2922e4,_0x9e6e92,_0x30aa7d);},'ZRubG':'main','fEoZL':_0x1c36a8(0xe0,'V#wB')},_0x43d4cc=Date[_0x2b1acd(0x18a,'yB95')](),_0x167bc1=_0x3de520??((_0x56b721,_0x3dc579)=>{const _0x109373=_0x1c36a8,_0x1bbb28=_0x2b1acd;_0x4a66cb['FlOyI'](_0x4a66cb[_0x109373(0x11e,'VKL*')],_0x56b721)?console[_0x109373(0x154,'iDhL')](_0x3dc579):_0x4a66cb[_0x109373(0x198,'jTnD')](_0x4a66cb[_0x1bbb28(0xc9,'LnOJ')],_0x56b721)?console['warn'](_0x3dc579):console[_0x1bbb28(0xe0,'V#wB')](_0x3dc579);});if(_0x167bc1(_0x2b1acd(0x122,'j6%K'),'[packager]\x20Packaging\x20'+_0x2a153c+_0x1c36a8(0x1c7,'1BJg')+_0x590e75),!fs2['existsSync'](path2['join'](_0x2a153c,_0x2b1acd(0x17c,'j6%K'))))throw new Error(_0x2b1acd(0x123,'0wvU')+path2['join'](_0x2a153c,_0x1c36a8(0x105,'LnOJ')));fs2[_0x1c36a8(0x17e,'jTnD')](_0x590e75,{'recursive':!0x0,'force':!0x0}),fs2[_0x2b1acd(0x161,'GWIv')](_0x590e75,{'recursive':!0x0});for(const name of[_0x4a66cb[_0x2b1acd(0x170,'#ulc')],_0x4a66cb[_0x2b1acd(0x15d,'0wvU')],_0x4a66cb['qfzcd'],'app-config.json']){if(_0x2b1acd(0x17d,'1BJg')===_0x4a66cb[_0x2b1acd(0x112,'R$Pu')])_0x55286e=_0x2b489a['parse'](_0x355319[_0x2b1acd(0x133,'oV5L')](_0x28241c,'utf-8'));else{const _0x55d82d=path2['join'](_0x2a153c,name);fs2['existsSync'](_0x55d82d)&&_0x4a66cb['nGoaJ'](copyFile,_0x55d82d,path2[_0x1c36a8(0x1d2,'1BJg')](_0x590e75,name));}}const _0x1aafba=_0x4a66cb[_0x2b1acd(0x142,'jRaY')](discoverPackages,_0x2a153c),_0x4a1f08=new Set(_0x1aafba[_0x2b1acd(0x1ad,'Qbr2')](_0x25c2d9=>''!==_0x25c2d9[_0x1c36a8(0xd3,'mwmv')])[_0x2b1acd(0x117,'sigj')](_0x2e4d07=>_0x2e4d07[_0x1c36a8(0xd8,'%2&z')])),_0x36087d=[],_0x3de30d=[];for(const _0x1c4e7b of _0x1aafba){if(_0x4a66cb[_0x2b1acd(0x1c0,'h1#5')]===_0x4a66cb['cctAw']){const _0x509ffd=_0x4a66cb[_0x2b1acd(0x1cc,'EH(t')]('',_0x1c4e7b['root'])?_0x4a1f08:new Set();try{_0x3de30d[_0x1c36a8(0xf0,'yhHB')](_0x4a66cb['uINgh'](packOnePackage,_0x2a153c,_0x590e75,_0x1c4e7b,_0x509ffd,_0x36087d,_0x167bc1));}catch(_0x59d473){const _0x4f1e21=_0x59d473 instanceof Error?_0x59d473[_0x2b1acd(0x1c2,'Gj$z')]:String(_0x59d473);throw _0x167bc1(_0x4a66cb[_0x1c36a8(0x167,'V#wB')],'[packager]\x20Package\x20\x22'+(_0x1c4e7b[_0x2b1acd(0x1a5,'61ap')]||_0x4a66cb[_0x1c36a8(0x13e,'io90')])+_0x2b1acd(0x120,'tvfO')+_0x4f1e21),_0x36087d[_0x2b1acd(0x192,'1CX7')]({'pkg':_0x1c4e7b['name'],'file':_0x1c36a8(0x147,'uAHS'),'level':_0x4a66cb[_0x2b1acd(0x1be,'p65O')],'message':_0x4f1e21}),_0x59d473;}}else _0x2433fd[_0x1c36a8(0x136,'jTnD')](_0x8ac6fb[_0x1c36a8(0x1a6,'%2&z')](_0x37b7bd),{'recursive':!0x0}),_0x4e05f2[_0x1c36a8(0x128,'V#wB')](_0xc95c32,_0x18763b);}const _0xaf8557=Date['now']()-_0x43d4cc,_0x5e60c1=_0x3de30d[_0x2b1acd(0x19a,'iDhL')]((_0x236aff,_0x39fb6c)=>_0x236aff+_0x39fb6c[_0x2b1acd(0x189,'tvfO')],0x0),_0x2fbd38=_0x3de30d[_0x1c36a8(0xee,'A]d(')]((_0x4e9814,_0x5bfb0d)=>_0x4e9814+_0x5bfb0d['assets'],0x0),_0x4d5965=_0x3de30d['reduce']((_0x5678f0,_0x4ab5dc)=>_0x5678f0+_0x4ab5dc[_0x1c36a8(0x1b9,'Qbr2')],0x0),_0x456885=_0x3de30d['reduce']((_0x5825cd,_0x26317a)=>_0x5825cd+_0x26317a['scripts'],0x0);return _0x167bc1(_0x4a66cb[_0x2b1acd(0x1e0,'%2&z')],'[packager]\x20Done\x20in\x20'+_0xaf8557+'ms\x20—\x20'+_0x3de30d['length']+'\x20package(s),\x20'+_0x5e60c1+_0x2b1acd(0x14b,'jRaY')+_0x456885+'\x20standalone\x20script(s),\x20'+_0x2fbd38+_0x2b1acd(0x174,'q!P%')+_0x4d5965+'\x20helper(s)'),{'packages':_0x3de30d,'diagnostics':_0x36087d,'elapsed':_0xaf8557};}if(import_worker_threads['parentPort']){const e=import_worker_threads[_0x32635b(0x15a,'LnOJ')];e['on'](_0x32635b(0x140,'YhIj'),_0x26c77b=>{const _0x2981e3=_0x32635b,_0x114b38=_0x32635b,_0x3e37ed={'veFYF':function(_0x3af2b5,_0x20284a){return _0x3af2b5!==_0x20284a;},'VQNrZ':function(_0x39e5e4,_0x540575){return _0x39e5e4(_0x540575);},'CLYts':function(_0x53aa6d,_0x5823f9,_0x504a5d,_0x3c732f){return _0x53aa6d(_0x5823f9,_0x504a5d,_0x3c732f);},'iiRxf':_0x2981e3(0x1a9,'A]d(')};if(!_0x26c77b||_0x3e37ed[_0x2981e3(0x16c,'0d!a')](_0x2981e3(0x1b6,'io90'),_0x26c77b['kind']))return;const {id:_0x32f274,gameDir:_0x4eb08d,outputDir:_0x17acb3,ciDepsDir:_0xb7222c}=_0x26c77b;if(_0xb7222c){const {setCiDepsDir:_0x34502f}=(init_ci_installer(),_0x3e37ed['VQNrZ'](__toCommonJS,ci_installer_exports));_0x34502f(_0xb7222c);}const _0x1f428d=(_0xe39ac4,_0x2f46cf)=>{const _0xe46a17=_0x2981e3,_0x215667=_0x114b38;e[_0xe46a17(0x188,'[C2N')]({'kind':_0x215667(0xdd,'87lt'),'id':_0x32f274,'level':_0xe39ac4,'message':_0x2f46cf});};try{const _0x2a96aa=_0x3e37ed[_0x2981e3(0xdb,'#ulc')](packageGameToDir,_0x4eb08d,_0x17acb3,_0x1f428d);e[_0x114b38(0x157,'0d!a')]({'kind':_0x3e37ed[_0x2981e3(0x14e,'VKL*')],'id':_0x32f274,'result':_0x2a96aa});}catch(_0x598e1a){const _0xd7e3c2=_0x598e1a instanceof Error?_0x598e1a[_0x114b38(0xae,'A]d(')]:String(_0x598e1a),_0xa106f=_0x598e1a instanceof Error?_0x598e1a[_0x2981e3(0xd4,'BUhl')]:void 0x0;e[_0x2981e3(0x1e2,'1BJg')]({'kind':_0x114b38(0xab,'fbrq'),'id':_0x32f274,'message':_0xd7e3c2,'stack':_0xa106f});}});}else console['warn']('[game-bundler-worker]\x20Loaded\x20outside\x20a\x20worker_threads\x20context\x20—\x20doing\x20nothing.');