├── .gitignore ├── README.md ├── api ├── detail.js ├── proxy.js └── users.js ├── assets.json ├── document.css ├── document.js ├── document.less ├── getAllInstance.js ├── index.html ├── md5.min.js ├── package.json ├── ui.less └── vue.2.6.11.min.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/* 2 | package-lock.json 3 | Un/* -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # CSGO 对局信息速览 2 | 3 | 在玩 CSGO 头号特训模式中、经常会遇到眼熟的外挂用户 4 | 5 | CurseRed 建议做一个 status 用户信息速查工具、方便我们快速确认当局敏感用户,于是就有了这个工具 6 | 7 | ## 地址 8 | [https://lab.magiconch.com/csgo-hacker-log/](https://lab.magiconch.com/csgo-hacker-log/?from=github) 9 | 10 | 11 | ## 使用 12 | 13 | - 游戏中 ~ 调出控制台 14 | - 输入 status 回车 15 | - 复制控制台中输出的内容到输入框 16 | - 即可对当前对局用户信息进行快速确认 17 | 18 | ## 功能 19 | 目前支持展示的信息 20 | - 唯一 ID 21 | - 游戏昵称 22 | - 社区昵称 23 | - 头像 24 | - 资料未公开 25 | - Steam 注册时间 26 | - Steam 等级 27 | - CSGO 游戏时长 28 | - VAC封禁 29 | - 社区封禁 30 | - 交易封禁 31 | - 游戏封禁 32 | - 延迟 33 | - 发包数 34 | 35 | 敏感信息会 标红 提醒 36 | 37 | 游戏中昵称和社区中不一致的情况会在界面上 红名 标出社区昵称,可能是外挂功能一部分 38 | 39 | 表格标题单击可排序 40 | 41 | 点击玩家对应 userId 可复制投票踢指定玩家的控制台命令 42 | 43 | ### 标记 44 | 45 | 标记功能可对当前对局玩家进行快速标记,目前共有三种颜色 红、 黄、 绿 方便用户使用,具体作用可自行分配 46 | 47 | 每次标记会记录操作时间,下回在对局中遇到已标记玩家可以看到最后一次标记时间 48 | 49 | 高级选项中可自行输入名称来 建立 或 加入 标记库,分享标记库名称可以多人公用标记信息 50 | 51 | ### say 52 | 当前对局有标红玩家时,可快速复制 say 命令,在控制台迅速发言 53 | 54 | 竞技、休闲模式可勾选 尝试投票踢出 在发言同时尝试发起投票踢出对应玩家 55 | 56 | ## 辅助 57 | 参考信息不足时可点击用户右侧的链接们、跳转到第三方网站确认更多信息 58 | 59 | csgostats.gg 可查看玩家对局情况 https://csgostats.gg 60 | 61 | SteamAnalyst 可预估玩家饰品价格 https://csgo.steamanalyst.com 62 | 63 | 头号特训模式玩家也可以尝试在 CSGO作弊狗 http://csgozbg.cn 数据库中查询是否有已登记的作弊玩家 64 | 65 | ## 参考 66 | 67 | Steam Web API Documentation https://steamapi.xpaw.me with ♥ by xPaw 68 | 69 | Steam Web API https://developer.valvesoftware.com/wiki/Steam_Web_API 70 | 71 | Ban Checker for Steam https://chrome.google.com/webstore/detail/ban-checker-for-steam/canbadmphamemnmdfngmcabnjmjgaiki 72 | 73 | Steam Inventory Helper https://chrome.google.com/webstore/detail/steam-inventory-helper/cmeakgjggjdlcpncigglobpjbkabhmjl 74 | 75 | 76 | 77 | 78 | ## GitHub 79 | [https://github.com/itorr/CSGO-Status-Search](https://github.com/itorr/CSGO-Status-Search) 80 | 81 | -------------------------------------------------------------------------------- /api/detail.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | const apiKey = '45696DEC3D074506B7203C0CA93E4CB1'; 4 | 5 | 6 | const timeout = 4000; 7 | 8 | const get = async uri =>{ 9 | try{ 10 | const res = await axios.get(uri,{ 11 | timeout, 12 | responseType:'text', 13 | headers:{ 14 | // 'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36', 15 | 'referer':uri, 16 | 'Accept-Language': 'zh-CN,zh;q=0.9' 17 | } 18 | }); 19 | let data = res.data; 20 | try{ 21 | data = JSON.parse(data); 22 | }catch(e){ 23 | 24 | } 25 | // if(typeof data === 'object'){ 26 | 27 | // } 28 | return data; 29 | }catch(e){ 30 | console.log(/gete/,e); 31 | return null; 32 | } 33 | } 34 | 35 | 36 | 37 | const id64Regex = /^7656[0-9]{12,14}$/; 38 | 39 | const steamAPIBaseURL = 'https://api.steampowered.com/'; 40 | 41 | 42 | const GetUserRecentlyPlayed = async id64 =>{ 43 | const uri = `${steamAPIBaseURL}IPlayerService/GetRecentlyPlayedGames/v1/?key=${apiKey}&steamid=${id64}`; 44 | try{ 45 | const r = await get(uri); 46 | const games = r.response['games']; 47 | if(!games) return null; 48 | 49 | const Games = {}; 50 | games.forEach(game => { 51 | Games[game.appid] = game; 52 | }); 53 | const game = Games[730]; 54 | return game; 55 | }catch(e){ 56 | console.log(/获取game time出错/,e,id64,uri); 57 | return null; 58 | } 59 | }; 60 | const getUserLevel = async id64 =>{ 61 | const uri = `${steamAPIBaseURL}IPlayerService/GetSteamLevel/v1/?key=${apiKey}&steamid=${id64}`; 62 | try{ 63 | const r = await get(uri); 64 | return r.response['player_level']; 65 | }catch(e){ 66 | console.log(/获取level出错/,e,id64,uri); 67 | return null; 68 | } 69 | }; 70 | 71 | const getUserDetailCallback = async id64 =>{ 72 | const user = {}; 73 | 74 | const game = await GetUserRecentlyPlayed(id64); 75 | if(game){ 76 | user.csgo_playtime_2weeks = game.playtime_2weeks; 77 | user.csgo_playtime_forever = game.playtime_forever; 78 | } 79 | 80 | const level = await getUserLevel(id64); 81 | if(level){ 82 | user.level = level; 83 | } 84 | 85 | return user; 86 | }; 87 | //76561198374544929 88 | export default async function handler(req, res) { 89 | const query = req.query; 90 | 91 | const id64 = query['id64']; 92 | 93 | if(!id64Regex.test(id64)) return res.status(200).json({}); 94 | 95 | const user = await getUserDetailCallback(id64); 96 | res.status(200).json(user); 97 | } -------------------------------------------------------------------------------- /api/proxy.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | export default async function handler(req, res) { 3 | const query = req.query; 4 | const url = query['url']; 5 | 6 | if(!/^https:\/\/steamcdn-a\.akamaihd\.net\//.test(url)) return res.status(404); 7 | 8 | const r = await axios(url,{ 9 | responseType:'arraybuffer', 10 | }); 11 | res.setHeader('content-type','image/jpeg') 12 | res.status(200).send(r.data); 13 | } -------------------------------------------------------------------------------- /api/users.js: -------------------------------------------------------------------------------- 1 | import axios from 'axios' 2 | 3 | const apiKey = '45696DEC3D074506B7203C0CA93E4CB1'; 4 | 5 | 6 | const timeout = 4000; 7 | 8 | const get = async uri =>{ 9 | try{ 10 | const res = await axios.get(uri,{ 11 | timeout, 12 | responseType:'text', 13 | headers:{ 14 | // 'user-agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36', 15 | 'referer':uri, 16 | 'Accept-Language': 'zh-CN,zh;q=0.9' 17 | } 18 | }); 19 | let data = res.data; 20 | try{ 21 | data = JSON.parse(data); 22 | }catch(e){ 23 | 24 | } 25 | // if(typeof data === 'object'){ 26 | 27 | // } 28 | return data; 29 | }catch(e){ 30 | console.log(/gete/,e); 31 | return null; 32 | } 33 | } 34 | 35 | const id64Regex = /7656[0-9]{12,14}/g; 36 | 37 | const steamAPIBaseURL = 'https://api.steampowered.com/'; 38 | 39 | 40 | 41 | const getUsersBySteam = async id64s => { 42 | id64s = [...new Set(id64s)]; 43 | const Users = {}; 44 | try{ 45 | const id64sString = id64s.join(','); 46 | const uri = `${steamAPIBaseURL}ISteamUser/GetPlayerSummaries/v2/?key=${apiKey}&steamids=${id64sString}`; 47 | const res = await get(uri); 48 | const summaries = res.response.players; 49 | const bansId64s = []; 50 | let index = summaries.length; 51 | while(index--){ 52 | const summarie = summaries[index]; 53 | 54 | const timecreated = summarie.timecreated || null; 55 | 56 | const id64 = summarie.steamid; 57 | const user = { 58 | id64, 59 | personaname: summarie.personaname, 60 | avatar: summarie.avatarmedium, 61 | timecreated, 62 | }; 63 | Users[id64] = user; 64 | }; 65 | 66 | if(bansId64s.length){ 67 | const uri = `${steamAPIBaseURL}ISteamUser/GetPlayerBans/v1/?key=${apiKey}&steamids=${bansId64s.join(',')}`; 68 | const res = await get(uri); 69 | const playerBans = res.players; 70 | 71 | if(playerBans){ 72 | let index = playerBans.length; 73 | while(index--){ 74 | const bans = playerBans[index]; 75 | const id64 = bans.SteamId; 76 | delete bans.SteamId; 77 | if(!Users[id64]) Users[id64] = {id64}; 78 | for(let key in bans){ 79 | if(!bans[key] || bans[key] === "none"){ 80 | delete bans[key]; 81 | } 82 | } 83 | Users[id64].bans = bans; 84 | }; 85 | } 86 | } 87 | return Object.values(Users); 88 | }catch(e){ 89 | console.log(/e getUsersBySteam/,e); 90 | return []; 91 | } 92 | }; 93 | //76561198374544929 94 | export default async function handler(req, res) { 95 | const query = req.query; 96 | 97 | const id64sQueryString = query['id64s']; 98 | if(!id64sQueryString) return res.status(200).json([]); 99 | 100 | const id64s = id64sQueryString.match(id64Regex); 101 | 102 | const users = await getUsersBySteam(id64s); 103 | 104 | res.status(200).json(users); 105 | } -------------------------------------------------------------------------------- /document.css: -------------------------------------------------------------------------------- 1 | html { 2 | font: 400 14px/1.4 sans-serif; 3 | text-rendering: optimizeLegibility; 4 | -webkit-font-smoothing: antialiased; 5 | -moz-osx-font-smoothing: grayscale; 6 | background: #222; 7 | color: #FFF; 8 | } 9 | body { 10 | margin: 0; 11 | } 12 | button, 13 | input { 14 | font: inherit; 15 | } 16 | a { 17 | color: #3270ff; 18 | text-decoration: none; 19 | } 20 | ::selection { 21 | background: #1e67ff; 22 | color: #FFF; 23 | } 24 | .ui-table-box { 25 | border: 1px solid #666666; 26 | border-collapse: collapse; 27 | background-color: #EEE; 28 | color: #222; 29 | } 30 | .ui-table-box tr:nth-child(odd) td { 31 | background: #F8F8F8; 32 | } 33 | .ui-table-box tr[data-blocked="true"] { 34 | opacity: 0.2; 35 | transition: opacity 0.1s ease; 36 | pointer-events: none; 37 | } 38 | .ui-table-box tr[data-blocked="true"] td { 39 | background: #DDD; 40 | } 41 | .ui-table-box tr[data-haved] td { 42 | background: #e4f4ec; 43 | } 44 | .ui-table-box tr[data-pending] td { 45 | background: #ffd7d7; 46 | } 47 | .ui-table-box th { 48 | border: 1px solid #DDD; 49 | padding: 8px; 50 | background-color: #EEE; 51 | } 52 | .ui-table-box td { 53 | border: 1px solid #DDD; 54 | padding: 8px; 55 | background-color: #fafafa; 56 | line-height: 1.18; 57 | } 58 | .ui-table-box td h5 { 59 | margin: 0; 60 | padding: 4px 0 0; 61 | } 62 | .ui-table-box td small { 63 | opacity: 0.5; 64 | } 65 | .ui-table-box td img { 66 | display: block; 67 | margin: -10px; 68 | } 69 | .ui-table-box td pre { 70 | margin: 0; 71 | } 72 | .app { 73 | width: 960px; 74 | margin: 0 auto; 75 | padding: 0 0 100px; 76 | } 77 | header { 78 | padding: 20px; 79 | line-height: 42px; 80 | overflow: hidden; 81 | } 82 | header h1 { 83 | margin: 0; 84 | font-family: '苹方'; 85 | /* font-weight:1200; */ 86 | /* color:#FFF; */ 87 | text-shadow: 1px 1px 0 #ff658c, -1px -1px 0 #77cdc7; 88 | float: left; 89 | } 90 | header .user-box { 91 | float: right; 92 | line-height: 42px; 93 | position: relative; 94 | padding-left: 50px; 95 | } 96 | header .user-box img { 97 | float: left; 98 | position: absolute; 99 | left: 0; 100 | top: 0; 101 | width: 42px; 102 | height: 42px; 103 | border-radius: 42px; 104 | background: #444; 105 | } 106 | .login-box { 107 | padding: 100px 20px; 108 | } 109 | .login-box a { 110 | display: block; 111 | font-size: 30px; 112 | font-weight: bold; 113 | padding: 20px 0; 114 | width: 340px; 115 | text-align: center; 116 | margin: 0 auto; 117 | background-image: linear-gradient(144deg, #AF40FF, #5B42F3 50%, #00DDEB); 118 | border: 2px solid #2e1c99; 119 | text-shadow: 0 2px 3px #5B42F3; 120 | color: #FFF; 121 | border-radius: 10px; 122 | box-shadow: rgba(151, 65, 252, 0.3) 0 15px 40px -5px; 123 | } 124 | h2, 125 | h3, 126 | h4, 127 | h5, 128 | h6 { 129 | margin: 0; 130 | } 131 | h4 { 132 | font-size: 15px; 133 | } 134 | [v-cloak] { 135 | display: none; 136 | } 137 | pre { 138 | font-size: 12px; 139 | background: #222; 140 | color: #FFF; 141 | padding: 6px; 142 | margin: 0; 143 | word-wrap: break-all; 144 | overflow: hidden; 145 | } 146 | textarea { 147 | box-sizing: border-box; 148 | width: 100%; 149 | max-width: 100%; 150 | min-width: 100%; 151 | height: 460px; 152 | margin: 0; 153 | padding: 10px 14px; 154 | border: 0; 155 | background: #EEE; 156 | resize: none; 157 | } 158 | .ui-input { 159 | background: #EEE; 160 | border: 0; 161 | padding: 2px 4px; 162 | } 163 | .ui-input:focus, 164 | textarea:focus { 165 | background: #F8F8F8; 166 | outline: 2px solid #3270ff; 167 | } 168 | .users-box { 169 | width: 100%; 170 | } 171 | .app[data-runing="true"] { 172 | cursor: wait; 173 | } 174 | .app[data-runing="true"] .ctrl-box { 175 | pointer-events: none; 176 | } 177 | hr { 178 | border: 0; 179 | margin: 5px 0; 180 | padding: 0; 181 | border-top: 1px solid #CCC; 182 | } 183 | .tip-box { 184 | border-top: 1px solid #EEE; 185 | /* margin:20px 0; */ 186 | padding: 20px 20px; 187 | } 188 | .tip-box ul { 189 | margin: 4px 0; 190 | padding: 0; 191 | font-size: 12px; 192 | list-style-type: none; 193 | } 194 | .tip-box ul li { 195 | margin: 0.6em 0; 196 | padding: 0; 197 | line-height: 1.4; 198 | } 199 | .tip-box h6 { 200 | font-weight: normal; 201 | } 202 | .tip-box a { 203 | display: block; 204 | font-size: 0.8em; 205 | overflow: hidden; 206 | text-overflow: ellipsis; 207 | white-space: nowrap; 208 | } 209 | @media (max-width: 1200px) { 210 | .output-box { 211 | cursor: pointer; 212 | position: relative; 213 | z-index: 0; 214 | } 215 | .output-box img { 216 | margin: 0 auto; 217 | max-width: 100vw; 218 | } 219 | .source-image { 220 | pointer-events: none; 221 | position: absolute; 222 | } 223 | .output-image { 224 | display: block; 225 | position: relative; 226 | z-index: 1; 227 | } 228 | .output-box:active .source-image { 229 | display: block; 230 | } 231 | .output-box:active.output-image { 232 | opacity: 0; 233 | } 234 | .ctrl-box { 235 | padding: 10px; 236 | } 237 | } 238 | code { 239 | background: rgba(0, 0, 0, 0.1); 240 | display: inline-block; 241 | padding: 0 4px; 242 | margin: 0 2px; 243 | border-radius: 1px; 244 | } 245 | blockquote { 246 | display: inline-block; 247 | background: #EEE; 248 | color: #333; 249 | margin: 0; 250 | padding: 1em; 251 | } 252 | blockquote p { 253 | margin: 0; 254 | } 255 | .post-box { 256 | padding: 20px; 257 | } 258 | .dialog-box { 259 | display: inline-block; 260 | margin: 0; 261 | padding: 12px 14px; 262 | background: #ffe89b; 263 | border: 1px solid #ffd350; 264 | border-radius: 3px; 265 | color: #8b4d00; 266 | } 267 | footer { 268 | padding: 20px 20px 60px; 269 | line-height: 2; 270 | } 271 | footer hr { 272 | display: inline-block; 273 | vertical-align: middle; 274 | border: 0; 275 | height: 1em; 276 | margin: 0 0.2em; 277 | border-right: 1px solid #DDD; 278 | } 279 | tr[data-log="red"] td { 280 | background: rgba(255, 0, 0, 0.5) !important; 281 | } 282 | tr[data-log="green"] td { 283 | background: rgba(0, 255, 0, 0.5) !important; 284 | } 285 | tr[data-log="orange"] td { 286 | background: rgba(255, 255, 0, 0.5) !important; 287 | } 288 | .nowarp { 289 | white-space: nowrap; 290 | } 291 | time { 292 | white-space: nowrap; 293 | } 294 | .users-box tr[data-bot] { 295 | opacity: 0.3; 296 | } 297 | [data-red] { 298 | color: red; 299 | } 300 | [data-value="Unknown"], 301 | [data-value="Private"], 302 | [data-false] { 303 | background: #ffc3c3 !important; 304 | } 305 | .ui-tag { 306 | display: inline-block; 307 | background: rgba(128, 128, 128, 0.2); 308 | color: #666; 309 | line-height: 1。2; 310 | padding: 4px; 311 | border-radius: 2px; 312 | } 313 | .ui-tag.red { 314 | background: red; 315 | color: #FFF; 316 | } 317 | .sort-th { 318 | cursor: pointer; 319 | user-select: none; 320 | } 321 | .sort-th.active { 322 | background: #DDD; 323 | } 324 | .log-buttons-box { 325 | margin: -8px; 326 | overflow: hidden; 327 | background: #FFF; 328 | width: 76px; 329 | height: 62px; 330 | } 331 | .log-buttons-box a { 332 | float: left; 333 | width: 50%; 334 | padding: 8px 0; 335 | line-height: 16px; 336 | text-align: center; 337 | } 338 | .ui-line-button { 339 | background: #FFF; 340 | cursor: pointer; 341 | } 342 | .ui-line-button.red { 343 | background: rgba(255, 0, 0, 0.5); 344 | color: red; 345 | } 346 | .ui-line-button.green { 347 | background: rgba(0, 255, 0, 0.5); 348 | color: green; 349 | } 350 | .ui-line-button.orange { 351 | background: rgba(255, 255, 0, 0.5); 352 | color: orange; 353 | } 354 | .content-box { 355 | margin: 20px 0; 356 | padding: 10px 20px; 357 | background: #333; 358 | line-height: 1.8; 359 | } 360 | .content-box h2 { 361 | padding: 1em 0 0; 362 | } 363 | .content-box h3 { 364 | padding: 1em 0 0; 365 | } 366 | .post-box { 367 | margin: 20px 0; 368 | padding: 20px 20px; 369 | background: #333; 370 | } 371 | .post-box p { 372 | margin: 0.5em 0; 373 | } 374 | label { 375 | cursor: pointer; 376 | user-select: none; 377 | } 378 | .ui-copy { 379 | cursor: pointer; 380 | } 381 | [v-cloak] { 382 | display: none; 383 | } 384 | input[type="checkbox"] { 385 | display: inline-block; 386 | vertical-align: middle; 387 | margin-top: 0.1em; 388 | } 389 | @media (max-height: 800px) { 390 | .app { 391 | font-size: 12px; 392 | } 393 | textarea { 394 | display: none; 395 | } 396 | header { 397 | display: none; 398 | } 399 | h4 { 400 | font-size: 14px; 401 | white-space: nowrap; 402 | overflow: hidden; 403 | text-overflow: ellipsis; 404 | max-width: 240px; 405 | } 406 | .ui-table-box tr th { 407 | padding: 4px 0; 408 | line-height: 12px; 409 | white-space: nowrap; 410 | } 411 | .ui-table-box tr th br { 412 | display: none; 413 | } 414 | .ui-table-box tr th[style="width: 44px;"] { 415 | width: 10px !important; 416 | } 417 | .ui-table-box tr td { 418 | padding: 0 4px; 419 | line-height: 1.1; 420 | } 421 | .ui-table-box tr td img { 422 | width: 40px; 423 | margin: -3px -5px; 424 | } 425 | div[style="margin: -4px 0px;"] br { 426 | display: none; 427 | } 428 | div[style="margin: -4px 0px;"] a[href^="https://csgo.ste"] { 429 | display: none; 430 | } 431 | small { 432 | font-size: 12px; 433 | } 434 | small + small { 435 | display: none !important; 436 | } 437 | .log-buttons-box { 438 | margin: 0 -4px; 439 | height: auto; 440 | } 441 | .log-buttons-box a { 442 | line-height: 17px; 443 | padding: 0; 444 | } 445 | .ui-tag { 446 | padding: 2px 3px; 447 | } 448 | } 449 | -------------------------------------------------------------------------------- /document.js: -------------------------------------------------------------------------------- 1 | // localStorage.clear(); 2 | 3 | const htmlEncode = function(str){ 4 | return src.replace(/&/g,"&").replace(//g,">").replace(/ /g," ").replace(/\'/g,"'").replace(/\"/g,"""); 5 | }; 6 | 7 | 8 | Date.prototype.format=function(format='yyyy-MM-dd'){ 9 | let o = { 10 | "M+" : this.getMonth()+1, //month 11 | "d+" : this.getDate(), //day 12 | "h+" : this.getHours(), //hour 13 | "m+" : this.getMinutes(), //minute 14 | "s+" : this.getSeconds(), //second 15 | "q+" : Math.floor((this.getMonth()+3)/3), //quarter 16 | "S" : this.getMilliseconds() //millisecond 17 | }; 18 | 19 | if(+this === 0){ 20 | return '尚无时间'; 21 | } 22 | 23 | if(/(y+)/.test(format)) 24 | format=format.replace(RegExp.$1,(this.getFullYear()+'').substr(4- RegExp.$1.length)); 25 | 26 | for(let k in o) 27 | if(new RegExp("("+ k +")").test(format)) 28 | format=format.replace(RegExp.$1,RegExp.$1.length===1?o[k]:("00"+ o[k]).substr((""+ o[k]).length)); 29 | 30 | return format; 31 | }; 32 | 33 | 34 | const dateFormat=(unix,format)=>{ 35 | if(String(unix).length===10){ 36 | unix=unix*1000; 37 | } 38 | return new Date(unix).format(format);//toLocaleString(); 39 | }; 40 | 41 | const requestCache = {}; 42 | const request = (method,uri,data,callback,nocache)=>{ 43 | 44 | let body = null; 45 | if(data) body = JSON.stringify(data); 46 | 47 | let key = 'r-'+md5([ 48 | method, 49 | uri, 50 | data 51 | ].join('|')) 52 | 53 | const clearCache = _=>{ 54 | console.log(/强制清除缓存/,uri,key); 55 | localStorage.removeItem(key); 56 | }; 57 | // console.log(/nocache/,nocache); 58 | 59 | if(!nocache){ 60 | let data = localStorage[key]; 61 | if(data){ 62 | try{ 63 | // console.log(/缓存的数据/,data); 64 | data = JSON.parse(data); 65 | return setTimeout(callback.bind(null,data,clearCache)); 66 | }catch(e){ 67 | 68 | } 69 | } 70 | } 71 | 72 | // console.log(/发起请求/,uri); 73 | fetch(uri,{ 74 | method, 75 | mode: 'cors', 76 | credentials: 'include', 77 | body, 78 | headers: { 79 | 'content-type': 'application/json' 80 | } 81 | }).then(res => res.json()).then(data => { 82 | if(!nocache){ 83 | localStorage[key] = JSON.stringify(data); 84 | } 85 | callback(data,clearCache); 86 | }).catch(error => console.error(error)) 87 | }; 88 | 89 | const baseAPI = 'https://lab.magiconch.com/api/'; 90 | const steamBaseAPI = 'api/'; 91 | const requestText = (method,uri,data,callback)=>{ 92 | let body = null; 93 | if(data){ 94 | body = JSON.stringify(data); 95 | } 96 | fetch(uri,{ 97 | method, 98 | mode: 'cors', 99 | body, 100 | credentials: 'include', 101 | }).then(res => res.text()).then(data => callback(data)).catch(error => console.error(error)) 102 | }; 103 | 104 | const deepCopy = o=>JSON.parse(JSON.stringify(o)); 105 | 106 | 107 | const text = localStorage['csgoLastStatusText']||''; 108 | 109 | /* 110 | `Connected to =[A:1:3561541640:19979]:0 111 | hostname: Valve CS:GO Hong Kong Server (srcds2055-hkg1.142.42) 112 | version : 1.38.2.4 secure 113 | os : Linux 114 | type : official dedicated 115 | map : dz_sirocco 116 | players : 17 humans, 0 bots (16/17 max) (not hibernating) 117 | 118 | # userid name uniqueid connected ping loss state rate 119 | # 3 2 "人老又菜又爱玩" STEAM_1:0:448183897 00:20 39 0 active 196608 120 | # 4 3 "十二楼五城" STEAM_1:0:572920645 00:20 83 0 active 196608 121 | # 5 4 "Giang" STEAM_1:0:549226724 00:20 55 0 active 196608 122 | # 6 5 "狙神阿鑫." STEAM_1:0:503590605 00:20 93 66 spawning 196608 123 | # 7 6 "lishuvai酷哦" STEAM_1:1:514931287 00:20 141 73 spawning 196608 124 | # 8 7 "at88" STEAM_1:0:540928738 00:20 101 0 active 786432 125 | # 9 8 "CurseRed" STEAM_1:0:55968383 00:20 74 0 active 786432 126 | # 10 9 "一生一世永爱UMP45" STEAM_1:0:436743442 00:20 63 56 spawning 786432 127 | # 11 10 "Orange" STEAM_1:1:207139600 00:20 104 0 active 196608 128 | # 12 11 "Star Fox" STEAM_1:1:96579395 00:20 77 56 spawning 131072 129 | # 13 12 "xi the pooh" STEAM_1:1:128895246 00:20 88 0 active 786432 130 | # 14 13 "like" STEAM_1:1:631677446 00:20 83 0 active 196608 131 | # 15 14 "DarkwinG" STEAM_1:0:526223612 00:20 124 66 spawning 196608 132 | # 16 15 "Heracles" STEAM_1:1:449076373 00:20 398 86 spawning 196608 133 | # 17 16 "我菜别说我" STEAM_1:1:622464804 00:20 77 56 spawning 196608 134 | # 18 17 "Stranger" STEAM_1:0:171506710 00:17 121 66 spawning 786432 135 | # 19 18 "坠入虚空飞向你" STEAM_1:0:644594952 00:14 237 72 spawning 196608 136 | #end`; 137 | */ 138 | 139 | const logNameRegex = /^\w+$/; 140 | const localStorageLogNameKey = 'csgo-last-log-name'; 141 | const localStorageContentKey = 'csgo-content'; 142 | let logName = localStorage.getItem(localStorageLogNameKey)||'test'; 143 | 144 | const data = { 145 | text, 146 | user:undefined, 147 | authURL:null, 148 | info:null, 149 | runing:false, 150 | h:12, 151 | Logs:{}, 152 | sortKey:null, 153 | sortType:1, 154 | logName, 155 | debug:false, 156 | content:!localStorage.getItem(localStorageContentKey), 157 | callvoteKick:false, 158 | disconnect:false, 159 | tip:'', 160 | }; 161 | 162 | const getLog = ()=>{ 163 | const _Logs = {}; 164 | request('get',`${baseAPI}csgo/user-log/${app.logName}`,null,logs=>{ 165 | if(logs){ 166 | logs.forEach(log=>{ 167 | _Logs[log.id64] = log 168 | // app.$set(app.Logs,log.id64,log) 169 | }) 170 | } 171 | app.Logs = _Logs; 172 | },'nocache') 173 | } 174 | const log = (id64,color)=>{ 175 | request('post',`${baseAPI}csgo/user-log/${app.logName}/${id64}`,{ 176 | color 177 | },log=>{ 178 | // app.$set(Logs,id64,log) 179 | },'nocache'); 180 | 181 | app.$set(app.Logs,id64,{ 182 | color, 183 | unix:Math.floor(new Date()/1000) 184 | }) 185 | } 186 | 187 | const serverInfoKey = [ 188 | 'hostname', 189 | 'version', 190 | 'os', 191 | 'type', 192 | 'map', 193 | 'players' 194 | ]; 195 | 196 | const userInfokey = [ 197 | 'userid', 198 | 'name', 199 | 'uniqueid', 200 | 'connected', 201 | 'ping', 202 | 'loss', 203 | 'state', 204 | 'rate', //带宽 205 | ] 206 | 207 | 208 | const isConnectRegex = /^connected to\s?=\s?(.+?)$/i 209 | const isServerInfoRegex = new RegExp(`^(${serverInfoKey.join('|')})\\s?:\\s?(.+?)$`,'i') 210 | 211 | // STEAM_1:0:587628593 01:41 47 0 212 | const isUserinfoRegex = /^# {0,}(\d+) ?(\d+)? "(.+?)"\s(?:(BOT)|(STEAM_\d:\d:\d+?) ([\d:]+) (\d+) (\d+)) (.+?) (\d+)$/i 213 | // 1 userid 2 id 3 name 4 bot 5 uniqueid 6 connected 7 ping 8 loss 9 state 10 rate 214 | 215 | 216 | 217 | const PatternSteamID32Regex = /^STEAM_([0-9]):([0-9]):([0-9]+)$/ 218 | 219 | const SID64_S = Number(1197960265728); 220 | const SID64_1 = "7656"; 221 | function Sid32toSid64(id32){ 222 | const id32Match = PatternSteamID32Regex.exec(id32) 223 | if(!id32Match) return 224 | 225 | let SID32_1 = Number(id32Match[1]); 226 | let SID32_2 = Number(id32Match[2]); 227 | let SID32_3 = Number(id32Match[3]); 228 | let S3ID_3 = SID32_3 * 2 + SID32_2; 229 | let SID64_2 = S3ID_3 + SID64_S; 230 | return SID64_1 + SID64_2; 231 | }; 232 | 233 | const key = '45696DEC3D074506B7203C0CA93E4CB1'; 234 | const Users = {}; 235 | 236 | 237 | const clear = _=>{ 238 | localStorage.clear() 239 | location.reload() 240 | } 241 | 242 | const SortKeyTypes = { 243 | userId:'number', 244 | id:'number', 245 | level:'number', 246 | ping:'number', 247 | csgo_playtime_2weeks:'number', 248 | timecreated:'number', 249 | name:'string', 250 | logUnix(a,b,type){ 251 | if(!app.Logs[a.id64]) return 1; 252 | if(!app.Logs[b.id64]) return -1; 253 | 254 | const _a = app.Logs[a.id64].unix 255 | const _b = app.Logs[b.id64].unix 256 | return (_a - _b) * type 257 | } 258 | } 259 | const nocache = false; 260 | const app = new Vue({ 261 | el:'.app', 262 | data, 263 | methods:{ 264 | refactor(){ 265 | if(!this.text){ 266 | this.info = null; 267 | return; 268 | } 269 | let lines = this.text.split(/\n/g); 270 | 271 | if(!lines.length){ 272 | this.info = null; 273 | return; 274 | } 275 | 276 | // console.log(lines) 277 | const info = { 278 | users:[] 279 | } 280 | const id64s = [] 281 | 282 | 283 | lines.forEach(line=>{ 284 | line = line.trim() 285 | if(!line) return; 286 | if(line === '#end')return; 287 | 288 | const userMatch = line.match(isUserinfoRegex) 289 | 290 | 291 | if(userMatch){ 292 | const id32 = userMatch[5] 293 | const id64 = Sid32toSid64(id32) 294 | 295 | const user = { 296 | userId:userMatch[1], 297 | id:userMatch[2], 298 | name:userMatch[3], 299 | bot:userMatch[4]?true:undefined, 300 | id32, 301 | id64, 302 | connected:userMatch[6], 303 | ping:userMatch[7], 304 | loss:userMatch[8], 305 | state:userMatch[9], 306 | rate:userMatch[10], 307 | }; 308 | 309 | 310 | info.users.push(user) 311 | 312 | if(id64){ 313 | Users[id64] = user; 314 | id64s.push(id64) 315 | } 316 | return 317 | } 318 | 319 | 320 | const serverMatch = line.match(isServerInfoRegex) 321 | 322 | if(serverMatch){ 323 | info[serverMatch[1]] = serverMatch[2] 324 | return 325 | } 326 | 327 | const connectedMatch = line.match(isConnectRegex) 328 | if(connectedMatch){ 329 | info.ip = connectedMatch[1] 330 | } 331 | }) 332 | 333 | if(id64s.length){ 334 | request('get',`${steamBaseAPI}users?id64s=${id64s.join(',')}`,null,users=>{ 335 | users.forEach(user=>{ 336 | const id64 = user.id64; 337 | if(Users[id64]){ 338 | for(let key in user){ 339 | app.$set(Users[id64],key,user[key]); 340 | } 341 | } 342 | }); 343 | app.info.users.forEach(user=>{ 344 | if(user.timecreated && !user.detail){ 345 | const { id64 } = user; 346 | request('get',`${steamBaseAPI}detail?id64=${id64}`,null,r=>{ 347 | for(k in r){ 348 | const v = r[k] 349 | app.$set(user,k,v); 350 | } 351 | }) 352 | } 353 | }); 354 | }); 355 | } 356 | 357 | this.info = info 358 | }, 359 | sortBy(key){ 360 | if(key !== this.sortKey){ 361 | this.sortType = 1 362 | }else{ 363 | this.sortType = -this.sortType 364 | } 365 | this.sortKey = key 366 | }, 367 | clear, 368 | copy(text){ 369 | let inputEl= document.createElement('input'); 370 | inputEl.value= text; 371 | document.body.appendChild(inputEl); 372 | inputEl.select(); 373 | document.execCommand('Copy'); 374 | inputEl.remove() 375 | }, 376 | onImageLoadError(e){ 377 | const el = e.target; 378 | if(/api/.test(el.src)) return; 379 | 380 | el.src = `${steamBaseAPI}proxy?url=${encodeURIComponent(el.src)}`; 381 | } 382 | }, 383 | watch:{ 384 | text(val){ 385 | clearTimeout(this.T); 386 | this.T = setTimeout(_=>{ 387 | this.sortKey = null; 388 | this.sortType = 1; 389 | localStorage['csgoLastStatusText'] = val; 390 | this.refactor(); 391 | },300); 392 | }, 393 | logName(val){ 394 | if(!val) val = 'test'; 395 | localStorage[localStorageLogNameKey] = val; 396 | getLog() 397 | }, 398 | content(val){ 399 | if(val){ 400 | localStorage.removeItem(localStorageContentKey); 401 | }else{ 402 | localStorage.setItem(localStorageContentKey,1); 403 | } 404 | }, 405 | }, 406 | computed:{ 407 | users(){ 408 | if(!this.info) return []; 409 | if(!this.info.users) return []; 410 | 411 | let key = this.sortKey; 412 | let type = this.sortType; 413 | if(!key) return this.info.users; 414 | 415 | let keyType = SortKeyTypes[key]||String; 416 | 417 | if(keyType instanceof Function){ 418 | return this.info.users.sort((a,b)=>keyType(a,b,type)); 419 | } 420 | 421 | if(keyType === 'number'){ 422 | return this.info.users.sort((a,b)=>{ 423 | let _a = a[key]; 424 | let _b = b[key]; 425 | if(_a === undefined)_a = -1 426 | if(_b === undefined)_b = -1 427 | return (_a - _b) * type; 428 | }); 429 | } 430 | 431 | return this.info.users.sort((a,b)=>{ 432 | const aString = String(a[key]); 433 | const bString = String(b[key]); 434 | return aString.localeCompare(bString) * type; 435 | }) 436 | }, 437 | hackers(){ 438 | return this.users.filter(user=>this.Logs[user.id64] && this.Logs[user.id64].color==='red') 439 | } 440 | } 441 | }) 442 | function padLeft(p,n=2) { 443 | return new Array(n - (p + '').length + 1).join('0') + p; 444 | } 445 | setInterval(_=>{ 446 | app.tip = [ 447 | _=>['Blacksite', 'Vineyard', 'Sirroco','Ember'][Math.floor(_)], 448 | _=>{ 449 | const s = Math.floor((1-_%1)*180); 450 | return padLeft(Math.floor(s/60)) +':' + padLeft(s % 60) 451 | } 452 | ].map(i=>i(Date.now() / (1e3*3*60) % 4)).join(' - '); 453 | },1000) 454 | 455 | // request('get',`${baseAPI}steam/info`,null,(r,clearCache)=>{ 456 | // app.user = r.user || null; 457 | // app.authURL = r.authURL; 458 | // // console.log(/123/,r,clearCache); 459 | // if(r.user){ 460 | // app.refactor(); 461 | // getLog(); 462 | // }else{ 463 | // clearCache(); 464 | // } 465 | // },nocache); 466 | 467 | app.refactor(); 468 | getLog(); 469 | 470 | 471 | window.addEventListener('paste',e=>{ 472 | const item = e.clipboardData.items[0]; 473 | if(!item) return; 474 | item.getAsString(text=>{ 475 | app.text = text 476 | }) 477 | }) 478 | 479 | window._hmt = []; 480 | window.dataLayer = [ 481 | ['js', new Date()], 482 | ['config', 'G-13BQC1VDD8'] 483 | ]; 484 | window.gtag = function(){dataLayer.push(arguments)}; 485 | 486 | const headEl = document.querySelector('head'); 487 | const loadScript = (src,cb=_=>{},el) =>{ 488 | el = document.createElement('script'); 489 | el.src = src; 490 | el.onload=cb; 491 | headEl.appendChild(el); 492 | }; 493 | 494 | setTimeout(_=>{ 495 | loadScript('//hm.baidu.com/hm.js?f4e477c61adf5c145ce938a05611d5f0'); 496 | loadScript('//www.googletagmanager.com/gtag/js?id=G-13BQC1VDD8'); 497 | },400); -------------------------------------------------------------------------------- /document.less: -------------------------------------------------------------------------------- 1 | html{ 2 | font:400 14px/1.4 sans-serif; 3 | text-rendering:optimizeLegibility; 4 | -webkit-font-smoothing:antialiased; 5 | -moz-osx-font-smoothing:grayscale; 6 | background:#222; 7 | color:#FFF; 8 | } 9 | body{ 10 | margin:0; 11 | } 12 | button,input{ 13 | font:inherit; 14 | } 15 | a{ 16 | color:#3270ff; 17 | text-decoration: none; 18 | } 19 | ::selection{ 20 | background: #1e67ff; 21 | color: #FFF; 22 | } 23 | 24 | 25 | @import url(ui.less); 26 | 27 | .app{ 28 | width:960px; 29 | margin:0 auto; 30 | padding:0 0 100px; 31 | } 32 | header{ 33 | padding:20px; 34 | line-height:42px; 35 | overflow: hidden; 36 | h1{ 37 | margin:0; 38 | font-family:'苹方'; 39 | /* font-weight:1200; */ 40 | /* color:#FFF; */ 41 | text-shadow: 1px 1px 0 #ff658c, -1px -1px 0 #77cdc7; 42 | float: left; 43 | } 44 | .user-box{ 45 | float: right; 46 | line-height:42px; 47 | position: relative; 48 | padding-left:50px; 49 | img{ 50 | float: left; 51 | position: absolute; 52 | left:0; 53 | top:0; 54 | width: 42px; 55 | height: 42px; 56 | border-radius:42px; 57 | background:#444; 58 | } 59 | } 60 | } 61 | 62 | 63 | 64 | 65 | .login-box{ 66 | padding:100px 20px; 67 | a{ 68 | display: block; 69 | font-size:30px; 70 | font-weight: bold;; 71 | padding:20px 0; 72 | width: 340px; 73 | text-align: center; 74 | margin:0 auto; 75 | 76 | background-image: linear-gradient(144deg,#AF40FF, #5B42F3 50%,#00DDEB); 77 | border:2px solid #2e1c99; 78 | text-shadow:0 2px 3px #5B42F3; 79 | color:#FFF; 80 | border-radius:10px; 81 | 82 | box-shadow: rgba(151,65,252,30%) 0 15px 40px -5px; 83 | } 84 | } 85 | 86 | 87 | h2, 88 | h3,h4,h5,h6{ 89 | margin:0; 90 | } 91 | 92 | h4{ 93 | font-size:15px; 94 | } 95 | [v-cloak]{ 96 | display: none; 97 | } 98 | 99 | 100 | 101 | 102 | pre{ 103 | font-size:12px; 104 | background:#222; 105 | color:#FFF; 106 | padding:6px; 107 | margin:0; 108 | 109 | word-wrap: break-all; 110 | overflow: hidden; 111 | } 112 | 113 | 114 | textarea{ 115 | box-sizing: border-box; 116 | width: 100%; 117 | max-width: 100%; 118 | min-width: 100%; 119 | height: 460px; 120 | margin:0; 121 | padding:10px 14px; 122 | border:0; 123 | background:#EEE; 124 | resize:none; 125 | // transition: background .3s ease; 126 | } 127 | .ui-input{ 128 | background:#EEE; 129 | border:0; 130 | padding:2px 4px; 131 | } 132 | .ui-input:focus, 133 | textarea:focus{ 134 | background:#F8F8F8; 135 | outline:2px solid #3270ff; 136 | } 137 | .users-box{ 138 | width:100%; 139 | } 140 | 141 | 142 | .app[data-runing="true"]{ 143 | cursor: wait; 144 | } 145 | .app[data-runing="true"] .ctrl-box{ 146 | pointer-events: none; 147 | } 148 | 149 | hr{ 150 | border:0; 151 | margin:5px 0; 152 | padding:0; 153 | border-top:1px solid #CCC; 154 | } 155 | 156 | .tip-box{ 157 | border-top:1px solid #EEE; 158 | /* margin:20px 0; */ 159 | padding:20px 20px; 160 | } 161 | .tip-box ul{ 162 | margin:4px 0; 163 | padding:0; 164 | font-size:12px; 165 | list-style-type: none; 166 | } 167 | .tip-box ul li{ 168 | margin:.6em 0; 169 | padding:0; 170 | line-height:1.4; 171 | } 172 | .tip-box h6{ 173 | font-weight:normal; 174 | } 175 | .tip-box a{ 176 | display: block; 177 | font-size:.8em; 178 | overflow: hidden; 179 | text-overflow:ellipsis; 180 | white-space: nowrap; 181 | } 182 | 183 | 184 | 185 | @media(max-width:1200px){ 186 | .output-box{ 187 | cursor: pointer; 188 | position: relative; 189 | z-index:0; 190 | } 191 | .output-box img{ 192 | margin:0 auto; 193 | max-width:100vw; 194 | } 195 | .source-image{ 196 | pointer-events: none; 197 | position: absolute; 198 | } 199 | .output-image{ 200 | display: block; 201 | position: relative; 202 | z-index:1; 203 | } 204 | .output-box:active{ 205 | 206 | } 207 | .output-box:active .source-image{ 208 | display: block; 209 | } 210 | .output-box:active.output-image{ 211 | opacity: 0; 212 | } 213 | .ctrl-box{ 214 | padding:10px; 215 | } 216 | } 217 | 218 | code{ 219 | background:rgba(0,0,0,.1); 220 | display: inline-block; 221 | padding:0 4px; 222 | margin:0 2px; 223 | border-radius:1px; 224 | } 225 | 226 | blockquote{ 227 | display: inline-block; 228 | background:#EEE; 229 | color:#333; 230 | margin:0; 231 | padding:1em; 232 | } 233 | blockquote p{ 234 | margin:0; 235 | } 236 | 237 | .post-box{ 238 | padding:20px; 239 | } 240 | 241 | .dialog-box{ 242 | display: inline-block; 243 | margin:0; 244 | padding:12px 14px; 245 | background:#ffe89b; 246 | border:1px solid #ffd350; 247 | border-radius:3px; 248 | color:#8b4d00; 249 | } 250 | 251 | footer{ 252 | padding:20px 20px 60px; 253 | line-height: 2; 254 | } 255 | footer hr{ 256 | display: inline-block; 257 | vertical-align: middle; 258 | border:0; 259 | height:1em; 260 | margin:0 .2em; 261 | border-right:1px solid #DDD; 262 | } 263 | 264 | @color-red:rgba(255,0,0,.5); 265 | @color-green:rgba(0,255,0,.5); 266 | @color-orange:rgba(255,255,0,.5); 267 | 268 | tr[data-log="red"]{ 269 | td{ 270 | background:@color-red !important; 271 | } 272 | } 273 | tr[data-log="green"]{ 274 | td{ 275 | background:@color-green !important; 276 | } 277 | } 278 | tr[data-log="orange"]{ 279 | td{ 280 | background:@color-orange !important; 281 | } 282 | } 283 | 284 | .nowarp{ 285 | white-space: nowrap; 286 | } 287 | 288 | time{ 289 | white-space: nowrap; 290 | } 291 | 292 | 293 | .users-box{ 294 | tr[data-bot]{ 295 | // color:#666; 296 | opacity: .3; 297 | } 298 | } 299 | 300 | [data-red]{ 301 | color:red; 302 | } 303 | 304 | [data-value="Unknown"], 305 | [data-value="Private"], 306 | [data-false] 307 | { 308 | background:#ffc3c3 !important; 309 | } 310 | 311 | 312 | .ui-tag{ 313 | display: inline-block; 314 | background:rgba(128,128,128,.2); 315 | color:#666; 316 | line-height: 1。2; 317 | padding:4px; 318 | border-radius:2px; 319 | &.red{ 320 | background:red; 321 | color:#FFF; 322 | } 323 | } 324 | 325 | 326 | .sort-th{ 327 | cursor: pointer; 328 | user-select: none; 329 | &.active{ 330 | background:#DDD; 331 | } 332 | } 333 | 334 | 335 | .log-buttons-box{ 336 | margin:-8px; 337 | overflow:hidden; 338 | background:#FFF; 339 | width:76px; 340 | height:62px; 341 | a{ 342 | float: left; 343 | width: 50%; 344 | padding:8px 0; 345 | line-height: 16px; 346 | text-align: center; 347 | } 348 | } 349 | 350 | 351 | .ui-line-button{ 352 | background: #FFF; 353 | cursor: pointer; 354 | &.red{ 355 | background:@color-red; 356 | color:red; 357 | } 358 | &.green{ 359 | background:@color-green; 360 | color:green; 361 | } 362 | &.orange{ 363 | background:@color-orange; 364 | color:orange; 365 | } 366 | 367 | } 368 | 369 | .content-box{ 370 | margin:20px 0; 371 | padding:10px 20px; 372 | background: #333; 373 | line-height: 1.8; 374 | h2{ 375 | padding:1em 0 0; 376 | } 377 | h3{ 378 | padding:1em 0 0; 379 | } 380 | } 381 | .post-box{ 382 | margin:20px 0; 383 | padding:20px 20px; 384 | background: #333; 385 | 386 | p{ 387 | margin:.5em 0; 388 | } 389 | } 390 | 391 | label{ 392 | cursor: pointer; 393 | user-select: none; 394 | } 395 | .ui-copy{ 396 | cursor: pointer; 397 | } 398 | [v-cloak]{ 399 | display: none; 400 | } 401 | input[type="checkbox"]{ 402 | display: inline-block; 403 | vertical-align: middle; 404 | margin-top:.1em; 405 | } 406 | 407 | 408 | 409 | 410 | @media (max-height:800px){ 411 | .app{ 412 | // margin:0; 413 | // width:auto; 414 | font-size:12px; 415 | } 416 | textarea{ 417 | display: none; 418 | } 419 | header{ 420 | display: none; 421 | } 422 | h4{ 423 | font-size: 14px; 424 | white-space: nowrap; 425 | overflow: hidden; 426 | text-overflow:ellipsis; 427 | max-width:240px; 428 | } 429 | .ui-table-box{ 430 | tr{ 431 | th{ 432 | padding:4px 0; 433 | line-height: 12px; 434 | white-space: nowrap; 435 | br{ 436 | display: none; 437 | } 438 | } 439 | th[style="width: 44px;"]{ 440 | width:10px !important; 441 | } 442 | td{ 443 | padding:0 4px; 444 | line-height: 1.1; 445 | img{ 446 | width: 40px; 447 | margin:-3px -5px; 448 | } 449 | } 450 | } 451 | } 452 | div[style="margin: -4px 0px;"]{ 453 | br{ 454 | display: none; 455 | } 456 | a[href^="https://csgo.ste"]{ 457 | display: none; 458 | } 459 | } 460 | small{ 461 | font-size:12px; 462 | } 463 | small+small{ 464 | display: none !important; 465 | } 466 | .log-buttons-box{ 467 | margin:0 -4px; 468 | height:auto; 469 | a{ 470 | line-height: 17px; 471 | padding:0; 472 | } 473 | } 474 | .ui-tag{padding:2px 3px; 475 | } 476 | } -------------------------------------------------------------------------------- /getAllInstance.js: -------------------------------------------------------------------------------- 1 | // import qs from 'querystringify'; 2 | import fetch from 'node-fetch'; 3 | import { SocksProxyAgent } from 'socks-proxy-agent'; 4 | import fs, { copyFile } from 'fs'; 5 | 6 | 7 | const agent = new SocksProxyAgent({ 8 | hostname: '0.0.0.0', 9 | port: 1086 10 | }); 11 | 12 | 13 | let ms = 10000; 14 | const qs = { 15 | stringify(o){ 16 | const r = []; 17 | for(let key in o) r.push(`${encodeURIComponent(key)}=${encodeURIComponent(o[key])}`) 18 | 19 | return r.join('&') 20 | } 21 | } 22 | 23 | let total = 200; 24 | let start = 0; 25 | let assets = []; 26 | 27 | start = 6200; 28 | 29 | let defaultQuerys = { 30 | query:'', 31 | search_descriptions:0, 32 | sort_column:'name', 33 | sort_dir:'asc', 34 | appid:'730', 35 | norender:1, 36 | count:100, 37 | } 38 | 39 | 40 | const one = async _=>{ 41 | console.log(/进度/,start,total) 42 | 43 | let querys = qs.stringify({ 44 | ...defaultQuerys, 45 | start, 46 | }) 47 | 48 | const uri = `https://steamcommunity.com/market/search/render/?${querys}` 49 | console.log(uri) 50 | 51 | try{ 52 | const response = await fetch(uri, { 53 | // agent, 54 | headers:{ 55 | 'Accept-Language': 'zh-CN,zh;q=0.9', 56 | 'Content-Type': 'application/json', 57 | } 58 | }) 59 | const r = await response.json(); 60 | if(!r.success) return console.log(/出错了/,r); 61 | console.log(r.success,r.results.length) 62 | 63 | const length = r.results.length; 64 | r.results.map(asset =>{ 65 | const _asset = { 66 | hash_name: asset.hash_name, 67 | name: asset.name, 68 | name_color: asset.asset_description.name_color, 69 | name_color: asset.asset_description.background_color, 70 | icon_url: asset.asset_description.icon_url, 71 | type: asset.asset_description.type, 72 | classid: asset.asset_description.classid, 73 | instanceid: asset.asset_description.instanceid, 74 | 75 | sale_price_text: asset.sale_price_text, 76 | sell_price: asset.sell_price, 77 | sell_price_text: asset.sell_price_text, 78 | } 79 | 80 | assets.push(_asset) 81 | return _asset 82 | }) 83 | 84 | total = r.total_count 85 | 86 | // fs.writeFileSync('assets.json',JSON.stringify(assets,0,2),'utf-8'); 87 | 88 | if(start+length < total){ 89 | start += length 90 | setTimeout(await one,ms) 91 | }else{ 92 | console.log(/完成/) 93 | } 94 | 95 | }catch(e){ 96 | console.log(/出错了/,e); 97 | } 98 | 99 | } 100 | 101 | await one() 102 | 103 | // copy(JSON.stringify(assets,0,2)) 104 | 105 | //一会要把取来的数据补充上来 -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | CSGO 对局信息速览 - CSGO Status Search - 神奇海螺实验室 4 | 5 | 6 | 7 |
8 |
9 |

CSGO 对局信息速览 - CSGO Status Search

10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 |
19 | 23 | 27 |

28 | 29 | 30 | say 31 | "{{hackers.map(hacker=>`${hacker.name} ( ${hacker.id32} )`).join(', ').replace(/["']/g,'')}} is Noob Hacker, fucking Reported" 32 | ;callvote kick {{hacker.userId}} 33 | ;disconnect 您已被 VAC 封禁 w(゚Д゚)w 34 | 35 |

36 |

37 | 38 | 39 | say 40 | "{{hackers.map(hacker=>`${hacker.name} ( ${hacker.id32} )`).join('、').replace(/["']/g,'')}} 是个臭作弊狗,麻烦大家举报一下" 41 | ;callvote kick {{hacker.userId}} 42 | ;disconnect 您已被 VAC 封禁 w(゚Д゚)w 43 | 44 |

45 |
46 | 47 | 48 | 51 | 54 | 57 | 64 | 65 | 66 | 67 | 68 | 69 | 74 | 79 | 82 | 83 | 84 | 85 | 86 | 87 | 90 | 91 | 92 | 93 | 97 | 98 | 99 | 103 | 115 | 116 | 117 | 118 | 119 | 122 | 123 | 135 | 136 | 147 | 148 | 149 | 156 | 157 | 172 | 173 | 180 | 181 | 189 | 200 | 201 |
uid延迟 60 | name 61 |
62 | id32 / id64 63 |
72 | 注册时间 73 | 77 | 等级 78 | 总时封禁标记时间标记
{{user.userId}}{{user.id}} 100 | {{user.ping}} 101 | {{user.loss}} 102 | 104 |

105 | {{user.personaname || user.name}} 106 | {{user.name}} 110 |

111 | {{user.id32}} 112 | {{user.id64}} 113 | BOT 114 |
120 | 121 | 124 | 125 | 126 |
127 | 128 | {{Math.floor((new Date()/1000 - user.timecreated)/3600/24/356)}}年 129 |
130 | 131 | 132 | 资料未公开 133 | 134 |
137 | 140 | Lv{{user.level}} 141 | 142 | 144 | Lv{{user.level}} 145 | 146 | 150 | 151 | {{Math.floor(user.csgo_playtime_2weeks/60)}}h 152 |
153 | {{Math.floor(user.csgo_playtime_forever/60)}}h 154 |
155 |
158 | 171 | 174 | 175 | 176 |
177 | 178 |
179 |
182 |
183 | 184 | 绿 185 | 186 | 187 |
188 |
190 |
191 | 社区 192 |
193 | 194 | 195 | Ana 196 |
197 | stats 198 |
199 |
202 |
203 |
204 | 208 |
209 |
210 |
211 |

标记库

212 |

独立的记录库名称,可以自己起名新建共享给其他人

213 | [a-Z0-9_] 英文数字下划线 214 |
215 |
216 | 217 |
218 | 219 | 220 |
221 | 222 | 223 |
224 | 228 |
229 | 230 |
231 |

232 | 在玩 CSGO 头号特训模式中、经常会遇到眼熟的外挂用户
233 | CurseRed 建议做一个 status 用户信息速查工具、方便我们快速确认当局敏感用户,于是就有了这个工具 234 |

235 |

使用

236 |

237 | 游戏中 ~ 调出控制台
238 | 输入 status 回车
239 | 复制控制台中输出的内容到输入框
240 | 即可对当前对局用户信息进行快速确认 241 |

242 |

功能

243 |

目前支持
244 | 唯一 ID游戏昵称社区昵称头像
245 | 资料未公开Steam 注册时间Steam 等级CSGO 游戏时长
246 | VAC封禁社区封禁交易封禁游戏封禁
247 | 延迟发包数
等等信息的展示

248 |

敏感信息会 标红 提醒

249 |

游戏中昵称和社区中不一致的情况会在界面上 红名 标出社区昵称,可能是外挂功能一部分

250 |

表格标题单击可排序

251 |

点击玩家对应 userId 可复制投票踢指定玩家的控制台命令

252 | 253 |

标记

254 |

255 | 标记功能可对当前对局玩家进行快速标记,目前共有三种颜色 256 | 、 257 | 、 258 | 绿 259 | 方便用户使用,具体作用可自行分配 260 |

261 |

每次标记会记录操作时间,下回在对局中遇到已标记玩家可以看到最后一次标记时间

262 |

高级选项中可自行输入名称来 建立加入 标记库,分享标记库名称可以多人公用标记信息

263 | 264 |

say

265 |

当前对局有标红玩家时,可快速复制 say 命令,在控制台迅速发言

266 |

267 | 竞技、休闲模式可勾选 在发言同时尝试发起投票踢出对应玩家 271 |

272 | 278 | 279 |

辅助

280 |

参考信息不足时可点击用户右侧的链接们、跳转到第三方网站确认更多信息

281 |

282 | csgostats.gg 可查看玩家对局情况 283 | https://csgostats.gg 284 |

285 |

286 | SteamAnalyst 可预估玩家饰品价格 287 | https://csgo.steamanalyst.com 288 |

289 |

头号特训模式玩家也可以尝试在 CSGO作弊狗 http://csgozbg.cn 数据库中查询是否有已登记的作弊玩家

290 | 291 | 292 |

GitHub

293 |

294 | https://github.com/itorr/CSGO-Status-Search 295 |

296 | 297 |

参考

298 |

299 | Steam Web API Documentation 300 | https://steamapi.xpaw.me with ♥ by xPaw

301 |

302 | Steam Web API 303 | https://developer.valvesoftware.com/wiki/Steam_Web_API 304 |

305 |

306 | Ban Checker for Steam 307 | https://chrome.google.com/webstore/detail/ban-checker-for-steam/canbadmphamemnmdfngmcabnjmjgaiki 308 |

309 |

310 | Steam Inventory Helper 311 | https://chrome.google.com/webstore/detail/steam-inventory-helper/cmeakgjggjdlcpncigglobpjbkabhmjl 312 |

313 |
314 |

315 | {{tip}} 316 |

317 |
318 | 319 | clear 320 | 326 | 327 | 328 | -------------------------------------------------------------------------------- /md5.min.js: -------------------------------------------------------------------------------- 1 | !function(n){"use strict";function d(n,t){var r=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(r>>16)<<16|65535&r}function f(n,t,r,e,o,u){return d((u=d(d(t,n),d(e,u)))<>>32-o,r)}function l(n,t,r,e,o,u,c){return f(t&r|~t&e,n,t,o,u,c)}function g(n,t,r,e,o,u,c){return f(t&e|r&~e,n,t,o,u,c)}function v(n,t,r,e,o,u,c){return f(t^r^e,n,t,o,u,c)}function m(n,t,r,e,o,u,c){return f(r^(t|~e),n,t,o,u,c)}function c(n,t){var r,e,o,u;n[t>>5]|=128<>>9<<4)]=t;for(var c=1732584193,f=-271733879,i=-1732584194,a=271733878,h=0;h>5]>>>e%32&255);return t}function a(n){var t=[];for(t[(n.length>>2)-1]=void 0,e=0;e>5]|=(255&n.charCodeAt(e/8))<>>4&15)+r.charAt(15&t);return e}function r(n){return unescape(encodeURIComponent(n))}function o(n){return i(c(a(n=r(n)),8*n.length))}function u(n,t){return function(n,t){var r,e=a(n),o=[],u=[];for(o[15]=u[15]=void 0,16=0&&Math.floor(t)===t&&isFinite(e)}function u(e){return n(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function l(e){return null==e?"":Array.isArray(e)||s(e)&&e.toString===a?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function p(e,t){for(var n=Object.create(null),r=e.split(","),i=0;i-1)return e.splice(n,1)}}var m=Object.prototype.hasOwnProperty;function y(e,t){return m.call(e,t)}function g(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var _=/-(\w)/g,b=g(function(e){return e.replace(_,function(e,t){return t?t.toUpperCase():""})}),$=g(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),w=/\B([A-Z])/g,C=g(function(e){return e.replace(w,"-$1").toLowerCase()});var x=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function n(n){var r=arguments.length;return r?r>1?e.apply(t,arguments):e.call(t,n):e.call(t)}return n._length=e.length,n};function k(e,t){t=t||0;for(var n=e.length-t,r=new Array(n);n--;)r[n]=e[n+t];return r}function A(e,t){for(var n in t)e[n]=t[n];return e}function O(e){for(var t={},n=0;n0,Z=J&&J.indexOf("edge/")>0,G=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===K),X=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),Y={}.watch,Q=!1;if(z)try{var ee={};Object.defineProperty(ee,"passive",{get:function(){Q=!0}}),window.addEventListener("test-passive",null,ee)}catch(e){}var te=function(){return void 0===B&&(B=!z&&!V&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),B},ne=z&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function re(e){return"function"==typeof e&&/native code/.test(e.toString())}var ie,oe="undefined"!=typeof Symbol&&re(Symbol)&&"undefined"!=typeof Reflect&&re(Reflect.ownKeys);ie="undefined"!=typeof Set&&re(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var ae=S,se=0,ce=function(){this.id=se++,this.subs=[]};ce.prototype.addSub=function(e){this.subs.push(e)},ce.prototype.removeSub=function(e){h(this.subs,e)},ce.prototype.depend=function(){ce.target&&ce.target.addDep(this)},ce.prototype.notify=function(){for(var e=this.subs.slice(),t=0,n=e.length;t-1)if(o&&!y(i,"default"))a=!1;else if(""===a||a===C(e)){var c=Pe(String,i.type);(c<0||s0&&(st((u=e(u,(a||"")+"_"+c))[0])&&st(f)&&(s[l]=he(f.text+u[0].text),u.shift()),s.push.apply(s,u)):i(u)?st(f)?s[l]=he(f.text+u):""!==u&&s.push(he(u)):st(u)&&st(f)?s[l]=he(f.text+u.text):(r(o._isVList)&&n(u.tag)&&t(u.key)&&n(a)&&(u.key="__vlist"+a+"_"+c+"__"),s.push(u)));return s}(e):void 0}function st(e){return n(e)&&n(e.text)&&!1===e.isComment}function ct(e,t){if(e){for(var n=Object.create(null),r=oe?Reflect.ownKeys(e):Object.keys(e),i=0;i0,a=t?!!t.$stable:!o,s=t&&t.$key;if(t){if(t._normalized)return t._normalized;if(a&&r&&r!==e&&s===r.$key&&!o&&!r.$hasNormal)return r;for(var c in i={},t)t[c]&&"$"!==c[0]&&(i[c]=pt(n,c,t[c]))}else i={};for(var u in n)u in i||(i[u]=dt(n,u));return t&&Object.isExtensible(t)&&(t._normalized=i),R(i,"$stable",a),R(i,"$key",s),R(i,"$hasNormal",o),i}function pt(e,t,n){var r=function(){var e=arguments.length?n.apply(null,arguments):n({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:at(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return n.proxy&&Object.defineProperty(e,t,{get:r,enumerable:!0,configurable:!0}),r}function dt(e,t){return function(){return e[t]}}function vt(e,t){var r,i,a,s,c;if(Array.isArray(e)||"string"==typeof e)for(r=new Array(e.length),i=0,a=e.length;idocument.createEvent("Event").timeStamp&&(sn=function(){return cn.now()})}function un(){var e,t;for(an=sn(),rn=!0,Qt.sort(function(e,t){return e.id-t.id}),on=0;onon&&Qt[n].id>e.id;)n--;Qt.splice(n+1,0,e)}else Qt.push(e);nn||(nn=!0,Ye(un))}}(this)},fn.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||o(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Re(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},fn.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},fn.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},fn.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||h(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var pn={enumerable:!0,configurable:!0,get:S,set:S};function dn(e,t,n){pn.get=function(){return this[t][n]},pn.set=function(e){this[t][n]=e},Object.defineProperty(e,n,pn)}function vn(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var n=e.$options.propsData||{},r=e._props={},i=e.$options._propKeys=[];e.$parent&&$e(!1);var o=function(o){i.push(o);var a=Me(o,t,n,e);xe(r,o,a),o in e||dn(e,"_props",o)};for(var a in t)o(a);$e(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var n in t)e[n]="function"!=typeof t[n]?S:x(t[n],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;s(t=e._data="function"==typeof t?function(e,t){le();try{return e.call(t,t)}catch(e){return Re(e,t,"data()"),{}}finally{fe()}}(t,e):t||{})||(t={});var n=Object.keys(t),r=e.$options.props,i=(e.$options.methods,n.length);for(;i--;){var o=n[i];r&&y(r,o)||(a=void 0,36!==(a=(o+"").charCodeAt(0))&&95!==a&&dn(e,"_data",o))}var a;Ce(t,!0)}(e):Ce(e._data={},!0),t.computed&&function(e,t){var n=e._computedWatchers=Object.create(null),r=te();for(var i in t){var o=t[i],a="function"==typeof o?o:o.get;r||(n[i]=new fn(e,a||S,S,hn)),i in e||mn(e,i,o)}}(e,t.computed),t.watch&&t.watch!==Y&&function(e,t){for(var n in t){var r=t[n];if(Array.isArray(r))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(n=e,"[object RegExp]"===a.call(n)&&e.test(t));var n}function An(e,t){var n=e.cache,r=e.keys,i=e._vnode;for(var o in n){var a=n[o];if(a){var s=xn(a.componentOptions);s&&!t(s)&&On(n,o,r,i)}}}function On(e,t,n,r){var i=e[t];!i||r&&i.tag===r.tag||i.componentInstance.$destroy(),e[t]=null,h(n,t)}!function(t){t.prototype._init=function(t){var n=this;n._uid=bn++,n._isVue=!0,t&&t._isComponent?function(e,t){var n=e.$options=Object.create(e.constructor.options),r=t._parentVnode;n.parent=t.parent,n._parentVnode=r;var i=r.componentOptions;n.propsData=i.propsData,n._parentListeners=i.listeners,n._renderChildren=i.children,n._componentTag=i.tag,t.render&&(n.render=t.render,n.staticRenderFns=t.staticRenderFns)}(n,t):n.$options=De($n(n.constructor),t||{},n),n._renderProxy=n,n._self=n,function(e){var t=e.$options,n=t.parent;if(n&&!t.abstract){for(;n.$options.abstract&&n.$parent;)n=n.$parent;n.$children.push(e)}e.$parent=n,e.$root=n?n.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(n),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&qt(e,t)}(n),function(t){t._vnode=null,t._staticTrees=null;var n=t.$options,r=t.$vnode=n._parentVnode,i=r&&r.context;t.$slots=ut(n._renderChildren,i),t.$scopedSlots=e,t._c=function(e,n,r,i){return Pt(t,e,n,r,i,!1)},t.$createElement=function(e,n,r,i){return Pt(t,e,n,r,i,!0)};var o=r&&r.data;xe(t,"$attrs",o&&o.attrs||e,null,!0),xe(t,"$listeners",n._parentListeners||e,null,!0)}(n),Yt(n,"beforeCreate"),function(e){var t=ct(e.$options.inject,e);t&&($e(!1),Object.keys(t).forEach(function(n){xe(e,n,t[n])}),$e(!0))}(n),vn(n),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(n),Yt(n,"created"),n.$options.el&&n.$mount(n.$options.el)}}(wn),function(e){var t={get:function(){return this._data}},n={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",n),e.prototype.$set=ke,e.prototype.$delete=Ae,e.prototype.$watch=function(e,t,n){if(s(t))return _n(this,e,t,n);(n=n||{}).user=!0;var r=new fn(this,e,t,n);if(n.immediate)try{t.call(this,r.value)}catch(e){Re(e,this,'callback for immediate watcher "'+r.expression+'"')}return function(){r.teardown()}}}(wn),function(e){var t=/^hook:/;e.prototype.$on=function(e,n){var r=this;if(Array.isArray(e))for(var i=0,o=e.length;i1?k(t):t;for(var n=k(arguments,1),r='event handler for "'+e+'"',i=0,o=t.length;iparseInt(this.max)&&On(a,s[0],s,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return F}};Object.defineProperty(e,"config",t),e.util={warn:ae,extend:A,mergeOptions:De,defineReactive:xe},e.set=ke,e.delete=Ae,e.nextTick=Ye,e.observable=function(e){return Ce(e),e},e.options=Object.create(null),M.forEach(function(t){e.options[t+"s"]=Object.create(null)}),e.options._base=e,A(e.options.components,Tn),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var n=k(arguments,1);return n.unshift(this),"function"==typeof e.install?e.install.apply(e,n):"function"==typeof e&&e.apply(null,n),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=De(this.options,e),this}}(e),Cn(e),function(e){M.forEach(function(t){e[t]=function(e,n){return n?("component"===t&&s(n)&&(n.name=n.name||e,n=this.options._base.extend(n)),"directive"===t&&"function"==typeof n&&(n={bind:n,update:n}),this.options[t+"s"][e]=n,n):this.options[t+"s"][e]}})}(e)}(wn),Object.defineProperty(wn.prototype,"$isServer",{get:te}),Object.defineProperty(wn.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(wn,"FunctionalRenderContext",{value:Tt}),wn.version="2.6.11";var En=p("style,class"),Nn=p("input,textarea,option,select,progress"),jn=function(e,t,n){return"value"===n&&Nn(e)&&"button"!==t||"selected"===n&&"option"===e||"checked"===n&&"input"===e||"muted"===n&&"video"===e},Dn=p("contenteditable,draggable,spellcheck"),Ln=p("events,caret,typing,plaintext-only"),Mn=function(e,t){return Hn(t)||"false"===t?"false":"contenteditable"===e&&Ln(t)?t:"true"},In=p("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Fn="http://www.w3.org/1999/xlink",Pn=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Rn=function(e){return Pn(e)?e.slice(6,e.length):""},Hn=function(e){return null==e||!1===e};function Bn(e){for(var t=e.data,r=e,i=e;n(i.componentInstance);)(i=i.componentInstance._vnode)&&i.data&&(t=Un(i.data,t));for(;n(r=r.parent);)r&&r.data&&(t=Un(t,r.data));return function(e,t){if(n(e)||n(t))return zn(e,Vn(t));return""}(t.staticClass,t.class)}function Un(e,t){return{staticClass:zn(e.staticClass,t.staticClass),class:n(e.class)?[e.class,t.class]:t.class}}function zn(e,t){return e?t?e+" "+t:e:t||""}function Vn(e){return Array.isArray(e)?function(e){for(var t,r="",i=0,o=e.length;i-1?hr(e,t,n):In(t)?Hn(n)?e.removeAttribute(t):(n="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,n)):Dn(t)?e.setAttribute(t,Mn(t,n)):Pn(t)?Hn(n)?e.removeAttributeNS(Fn,Rn(t)):e.setAttributeNS(Fn,t,n):hr(e,t,n)}function hr(e,t,n){if(Hn(n))e.removeAttribute(t);else{if(q&&!W&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==n&&!e.__ieph){var r=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",r)};e.addEventListener("input",r),e.__ieph=!0}e.setAttribute(t,n)}}var mr={create:dr,update:dr};function yr(e,r){var i=r.elm,o=r.data,a=e.data;if(!(t(o.staticClass)&&t(o.class)&&(t(a)||t(a.staticClass)&&t(a.class)))){var s=Bn(r),c=i._transitionClasses;n(c)&&(s=zn(s,Vn(c))),s!==i._prevClass&&(i.setAttribute("class",s),i._prevClass=s)}}var gr,_r,br,$r,wr,Cr,xr={create:yr,update:yr},kr=/[\w).+\-_$\]]/;function Ar(e){var t,n,r,i,o,a=!1,s=!1,c=!1,u=!1,l=0,f=0,p=0,d=0;for(r=0;r=0&&" "===(h=e.charAt(v));v--);h&&kr.test(h)||(u=!0)}}else void 0===i?(d=r+1,i=e.slice(0,r).trim()):m();function m(){(o||(o=[])).push(e.slice(d,r).trim()),d=r+1}if(void 0===i?i=e.slice(0,r).trim():0!==d&&m(),o)for(r=0;r-1?{exp:e.slice(0,$r),key:'"'+e.slice($r+1)+'"'}:{exp:e,key:null};_r=e,$r=wr=Cr=0;for(;!zr();)Vr(br=Ur())?Jr(br):91===br&&Kr(br);return{exp:e.slice(0,wr),key:e.slice(wr+1,Cr)}}(e);return null===n.key?e+"="+t:"$set("+n.exp+", "+n.key+", "+t+")"}function Ur(){return _r.charCodeAt(++$r)}function zr(){return $r>=gr}function Vr(e){return 34===e||39===e}function Kr(e){var t=1;for(wr=$r;!zr();)if(Vr(e=Ur()))Jr(e);else if(91===e&&t++,93===e&&t--,0===t){Cr=$r;break}}function Jr(e){for(var t=e;!zr()&&(e=Ur())!==t;);}var qr,Wr="__r",Zr="__c";function Gr(e,t,n){var r=qr;return function i(){null!==t.apply(null,arguments)&&Qr(e,i,n,r)}}var Xr=Ve&&!(X&&Number(X[1])<=53);function Yr(e,t,n,r){if(Xr){var i=an,o=t;t=o._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return o.apply(this,arguments)}}qr.addEventListener(e,t,Q?{capture:n,passive:r}:n)}function Qr(e,t,n,r){(r||qr).removeEventListener(e,t._wrapper||t,n)}function ei(e,r){if(!t(e.data.on)||!t(r.data.on)){var i=r.data.on||{},o=e.data.on||{};qr=r.elm,function(e){if(n(e[Wr])){var t=q?"change":"input";e[t]=[].concat(e[Wr],e[t]||[]),delete e[Wr]}n(e[Zr])&&(e.change=[].concat(e[Zr],e.change||[]),delete e[Zr])}(i),rt(i,o,Yr,Qr,Gr,r.context),qr=void 0}}var ti,ni={create:ei,update:ei};function ri(e,r){if(!t(e.data.domProps)||!t(r.data.domProps)){var i,o,a=r.elm,s=e.data.domProps||{},c=r.data.domProps||{};for(i in n(c.__ob__)&&(c=r.data.domProps=A({},c)),s)i in c||(a[i]="");for(i in c){if(o=c[i],"textContent"===i||"innerHTML"===i){if(r.children&&(r.children.length=0),o===s[i])continue;1===a.childNodes.length&&a.removeChild(a.childNodes[0])}if("value"===i&&"PROGRESS"!==a.tagName){a._value=o;var u=t(o)?"":String(o);ii(a,u)&&(a.value=u)}else if("innerHTML"===i&&qn(a.tagName)&&t(a.innerHTML)){(ti=ti||document.createElement("div")).innerHTML=""+o+"";for(var l=ti.firstChild;a.firstChild;)a.removeChild(a.firstChild);for(;l.firstChild;)a.appendChild(l.firstChild)}else if(o!==s[i])try{a[i]=o}catch(e){}}}}function ii(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var n=!0;try{n=document.activeElement!==e}catch(e){}return n&&e.value!==t}(e,t)||function(e,t){var r=e.value,i=e._vModifiers;if(n(i)){if(i.number)return f(r)!==f(t);if(i.trim)return r.trim()!==t.trim()}return r!==t}(e,t))}var oi={create:ri,update:ri},ai=g(function(e){var t={},n=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach(function(e){if(e){var r=e.split(n);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t});function si(e){var t=ci(e.style);return e.staticStyle?A(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?O(e):"string"==typeof e?ai(e):e}var ui,li=/^--/,fi=/\s*!important$/,pi=function(e,t,n){if(li.test(t))e.style.setProperty(t,n);else if(fi.test(n))e.style.setProperty(C(t),n.replace(fi,""),"important");else{var r=vi(t);if(Array.isArray(n))for(var i=0,o=n.length;i-1?t.split(yi).forEach(function(t){return e.classList.add(t)}):e.classList.add(t);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+t+" ")<0&&e.setAttribute("class",(n+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(yi).forEach(function(t){return e.classList.remove(t)}):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",r=" "+t+" ";n.indexOf(r)>=0;)n=n.replace(r," ");(n=n.trim())?e.setAttribute("class",n):e.removeAttribute("class")}}function bi(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&A(t,$i(e.name||"v")),A(t,e),t}return"string"==typeof e?$i(e):void 0}}var $i=g(function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}}),wi=z&&!W,Ci="transition",xi="animation",ki="transition",Ai="transitionend",Oi="animation",Si="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(ki="WebkitTransition",Ai="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Oi="WebkitAnimation",Si="webkitAnimationEnd"));var Ti=z?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Ei(e){Ti(function(){Ti(e)})}function Ni(e,t){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(t)<0&&(n.push(t),gi(e,t))}function ji(e,t){e._transitionClasses&&h(e._transitionClasses,t),_i(e,t)}function Di(e,t,n){var r=Mi(e,t),i=r.type,o=r.timeout,a=r.propCount;if(!i)return n();var s=i===Ci?Ai:Si,c=0,u=function(){e.removeEventListener(s,l),n()},l=function(t){t.target===e&&++c>=a&&u()};setTimeout(function(){c0&&(n=Ci,l=a,f=o.length):t===xi?u>0&&(n=xi,l=u,f=c.length):f=(n=(l=Math.max(a,u))>0?a>u?Ci:xi:null)?n===Ci?o.length:c.length:0,{type:n,timeout:l,propCount:f,hasTransform:n===Ci&&Li.test(r[ki+"Property"])}}function Ii(e,t){for(;e.length1}function Ui(e,t){!0!==t.data.show&&Pi(t)}var zi=function(e){var o,a,s={},c=e.modules,u=e.nodeOps;for(o=0;ov?_(e,t(i[y+1])?null:i[y+1].elm,i,d,y,o):d>y&&$(r,p,v)}(p,h,y,o,l):n(y)?(n(e.text)&&u.setTextContent(p,""),_(p,null,y,0,y.length-1,o)):n(h)?$(h,0,h.length-1):n(e.text)&&u.setTextContent(p,""):e.text!==i.text&&u.setTextContent(p,i.text),n(v)&&n(d=v.hook)&&n(d=d.postpatch)&&d(e,i)}}}function k(e,t,i){if(r(i)&&n(e.parent))e.parent.data.pendingInsert=t;else for(var o=0;o-1,a.selected!==o&&(a.selected=o);else if(N(Wi(a),r))return void(e.selectedIndex!==s&&(e.selectedIndex=s));i||(e.selectedIndex=-1)}}function qi(e,t){return t.every(function(t){return!N(t,e)})}function Wi(e){return"_value"in e?e._value:e.value}function Zi(e){e.target.composing=!0}function Gi(e){e.target.composing&&(e.target.composing=!1,Xi(e.target,"input"))}function Xi(e,t){var n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}function Yi(e){return!e.componentInstance||e.data&&e.data.transition?e:Yi(e.componentInstance._vnode)}var Qi={model:Vi,show:{bind:function(e,t,n){var r=t.value,i=(n=Yi(n)).data&&n.data.transition,o=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;r&&i?(n.data.show=!0,Pi(n,function(){e.style.display=o})):e.style.display=r?o:"none"},update:function(e,t,n){var r=t.value;!r!=!t.oldValue&&((n=Yi(n)).data&&n.data.transition?(n.data.show=!0,r?Pi(n,function(){e.style.display=e.__vOriginalDisplay}):Ri(n,function(){e.style.display="none"})):e.style.display=r?e.__vOriginalDisplay:"none")},unbind:function(e,t,n,r,i){i||(e.style.display=e.__vOriginalDisplay)}}},eo={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function to(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?to(zt(t.children)):e}function no(e){var t={},n=e.$options;for(var r in n.propsData)t[r]=e[r];var i=n._parentListeners;for(var o in i)t[b(o)]=i[o];return t}function ro(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var io=function(e){return e.tag||Ut(e)},oo=function(e){return"show"===e.name},ao={name:"transition",props:eo,abstract:!0,render:function(e){var t=this,n=this.$slots.default;if(n&&(n=n.filter(io)).length){var r=this.mode,o=n[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return o;var a=to(o);if(!a)return o;if(this._leaving)return ro(e,o);var s="__transition-"+this._uid+"-";a.key=null==a.key?a.isComment?s+"comment":s+a.tag:i(a.key)?0===String(a.key).indexOf(s)?a.key:s+a.key:a.key;var c=(a.data||(a.data={})).transition=no(this),u=this._vnode,l=to(u);if(a.data.directives&&a.data.directives.some(oo)&&(a.data.show=!0),l&&l.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(a,l)&&!Ut(l)&&(!l.componentInstance||!l.componentInstance._vnode.isComment)){var f=l.data.transition=A({},c);if("out-in"===r)return this._leaving=!0,it(f,"afterLeave",function(){t._leaving=!1,t.$forceUpdate()}),ro(e,o);if("in-out"===r){if(Ut(a))return u;var p,d=function(){p()};it(c,"afterEnter",d),it(c,"enterCancelled",d),it(f,"delayLeave",function(e){p=e})}}return o}}},so=A({tag:String,moveClass:String},eo);function co(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function uo(e){e.data.newPos=e.elm.getBoundingClientRect()}function lo(e){var t=e.data.pos,n=e.data.newPos,r=t.left-n.left,i=t.top-n.top;if(r||i){e.data.moved=!0;var o=e.elm.style;o.transform=o.WebkitTransform="translate("+r+"px,"+i+"px)",o.transitionDuration="0s"}}delete so.mode;var fo={Transition:ao,TransitionGroup:{props:so,beforeMount:function(){var e=this,t=this._update;this._update=function(n,r){var i=Zt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,n,r)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",n=Object.create(null),r=this.prevChildren=this.children,i=this.$slots.default||[],o=this.children=[],a=no(this),s=0;s-1?Gn[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Gn[e]=/HTMLUnknownElement/.test(t.toString())},A(wn.options.directives,Qi),A(wn.options.components,fo),wn.prototype.__patch__=z?zi:S,wn.prototype.$mount=function(e,t){return function(e,t,n){var r;return e.$el=t,e.$options.render||(e.$options.render=ve),Yt(e,"beforeMount"),r=function(){e._update(e._render(),n)},new fn(e,r,S,{before:function(){e._isMounted&&!e._isDestroyed&&Yt(e,"beforeUpdate")}},!0),n=!1,null==e.$vnode&&(e._isMounted=!0,Yt(e,"mounted")),e}(this,e=e&&z?Yn(e):void 0,t)},z&&setTimeout(function(){F.devtools&&ne&&ne.emit("init",wn)},0);var po=/\{\{((?:.|\r?\n)+?)\}\}/g,vo=/[-.*+?^${}()|[\]\/\\]/g,ho=g(function(e){var t=e[0].replace(vo,"\\$&"),n=e[1].replace(vo,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+n,"g")});var mo={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var n=Fr(e,"class");n&&(e.staticClass=JSON.stringify(n));var r=Ir(e,"class",!1);r&&(e.classBinding=r)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var yo,go={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var n=Fr(e,"style");n&&(e.staticStyle=JSON.stringify(ai(n)));var r=Ir(e,"style",!1);r&&(e.styleBinding=r)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},_o=function(e){return(yo=yo||document.createElement("div")).innerHTML=e,yo.textContent},bo=p("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),$o=p("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),wo=p("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Co=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,xo=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ko="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+P.source+"]*",Ao="((?:"+ko+"\\:)?"+ko+")",Oo=new RegExp("^<"+Ao),So=/^\s*(\/?)>/,To=new RegExp("^<\\/"+Ao+"[^>]*>"),Eo=/^]+>/i,No=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Io=/&(?:lt|gt|quot|amp|#39);/g,Fo=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Po=p("pre,textarea",!0),Ro=function(e,t){return e&&Po(e)&&"\n"===t[0]};function Ho(e,t){var n=t?Fo:Io;return e.replace(n,function(e){return Mo[e]})}var Bo,Uo,zo,Vo,Ko,Jo,qo,Wo,Zo=/^@|^v-on:/,Go=/^v-|^@|^:|^#/,Xo=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yo=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Qo=/^\(|\)$/g,ea=/^\[.*\]$/,ta=/:(.*)$/,na=/^:|^\.|^v-bind:/,ra=/\.[^.\]]+(?=[^\]]*$)/g,ia=/^v-slot(:|$)|^#/,oa=/[\r\n]/,aa=/\s+/g,sa=g(_o),ca="_empty_";function ua(e,t,n){return{type:1,tag:e,attrsList:t,attrsMap:ma(t),rawAttrsMap:{},parent:n,children:[]}}function la(e,t){Bo=t.warn||Sr,Jo=t.isPreTag||T,qo=t.mustUseProp||T,Wo=t.getTagNamespace||T;t.isReservedTag;zo=Tr(t.modules,"transformNode"),Vo=Tr(t.modules,"preTransformNode"),Ko=Tr(t.modules,"postTransformNode"),Uo=t.delimiters;var n,r,i=[],o=!1!==t.preserveWhitespace,a=t.whitespace,s=!1,c=!1;function u(e){if(l(e),s||e.processed||(e=fa(e,t)),i.length||e===n||n.if&&(e.elseif||e.else)&&da(n,{exp:e.elseif,block:e}),r&&!e.forbidden)if(e.elseif||e.else)a=e,(u=function(e){var t=e.length;for(;t--;){if(1===e[t].type)return e[t];e.pop()}}(r.children))&&u.if&&da(u,{exp:a.elseif,block:a});else{if(e.slotScope){var o=e.slotTarget||'"default"';(r.scopedSlots||(r.scopedSlots={}))[o]=e}r.children.push(e),e.parent=r}var a,u;e.children=e.children.filter(function(e){return!e.slotScope}),l(e),e.pre&&(s=!1),Jo(e.tag)&&(c=!1);for(var f=0;f]*>)","i")),p=e.replace(f,function(e,n,r){return u=r.length,Do(l)||"noscript"===l||(n=n.replace(//g,"$1").replace(//g,"$1")),Ro(l,n)&&(n=n.slice(1)),t.chars&&t.chars(n),""});c+=e.length-p.length,e=p,A(l,c-u,c)}else{var d=e.indexOf("<");if(0===d){if(No.test(e)){var v=e.indexOf("--\x3e");if(v>=0){t.shouldKeepComment&&t.comment(e.substring(4,v),c,c+v+3),C(v+3);continue}}if(jo.test(e)){var h=e.indexOf("]>");if(h>=0){C(h+2);continue}}var m=e.match(Eo);if(m){C(m[0].length);continue}var y=e.match(To);if(y){var g=c;C(y[0].length),A(y[1],g,c);continue}var _=x();if(_){k(_),Ro(_.tagName,e)&&C(1);continue}}var b=void 0,$=void 0,w=void 0;if(d>=0){for($=e.slice(d);!(To.test($)||Oo.test($)||No.test($)||jo.test($)||(w=$.indexOf("<",1))<0);)d+=w,$=e.slice(d);b=e.substring(0,d)}d<0&&(b=e),b&&C(b.length),t.chars&&b&&t.chars(b,c-b.length,c)}if(e===n){t.chars&&t.chars(e);break}}function C(t){c+=t,e=e.substring(t)}function x(){var t=e.match(Oo);if(t){var n,r,i={tagName:t[1],attrs:[],start:c};for(C(t[0].length);!(n=e.match(So))&&(r=e.match(xo)||e.match(Co));)r.start=c,C(r[0].length),r.end=c,i.attrs.push(r);if(n)return i.unarySlash=n[1],C(n[0].length),i.end=c,i}}function k(e){var n=e.tagName,c=e.unarySlash;o&&("p"===r&&wo(n)&&A(r),s(n)&&r===n&&A(n));for(var u=a(n)||!!c,l=e.attrs.length,f=new Array(l),p=0;p=0&&i[a].lowerCasedTag!==s;a--);else a=0;if(a>=0){for(var u=i.length-1;u>=a;u--)t.end&&t.end(i[u].tag,n,o);i.length=a,r=a&&i[a-1].tag}else"br"===s?t.start&&t.start(e,[],!0,n,o):"p"===s&&(t.start&&t.start(e,[],!1,n,o),t.end&&t.end(e,n,o))}A()}(e,{warn:Bo,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,o,a,l,f){var p=r&&r.ns||Wo(e);q&&"svg"===p&&(o=function(e){for(var t=[],n=0;nc&&(s.push(o=e.slice(c,i)),a.push(JSON.stringify(o)));var u=Ar(r[1].trim());a.push("_s("+u+")"),s.push({"@binding":u}),c=i+r[0].length}return c-1"+("true"===o?":("+t+")":":_q("+t+","+o+")")),Mr(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+o+"):("+a+");if(Array.isArray($$a)){var $$v="+(r?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Br(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Br(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Br(t,"$$c")+"}",null,!0)}(e,r,i);else if("input"===o&&"radio"===a)!function(e,t,n){var r=n&&n.number,i=Ir(e,"value")||"null";Er(e,"checked","_q("+t+","+(i=r?"_n("+i+")":i)+")"),Mr(e,"change",Br(t,i),null,!0)}(e,r,i);else if("input"===o||"textarea"===o)!function(e,t,n){var r=e.attrsMap.type,i=n||{},o=i.lazy,a=i.number,s=i.trim,c=!o&&"range"!==r,u=o?"change":"range"===r?Wr:"input",l="$event.target.value";s&&(l="$event.target.value.trim()"),a&&(l="_n("+l+")");var f=Br(t,l);c&&(f="if($event.target.composing)return;"+f),Er(e,"value","("+t+")"),Mr(e,u,f,null,!0),(s||a)&&Mr(e,"blur","$forceUpdate()")}(e,r,i);else if(!F.isReservedTag(o))return Hr(e,r,i),!1;return!0},text:function(e,t){t.value&&Er(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Er(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:bo,mustUseProp:jn,canBeLeftOpenTag:$o,isReservedTag:Wn,getTagNamespace:Zn,staticKeys:function(e){return e.reduce(function(e,t){return e.concat(t.staticKeys||[])},[]).join(",")}(ba)},xa=g(function(e){return p("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))});function ka(e,t){e&&($a=xa(t.staticKeys||""),wa=t.isReservedTag||T,function e(t){t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||d(e.tag)||!wa(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every($a)))}(t);if(1===t.type){if(!wa(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var n=0,r=t.children.length;n|^function(?:\s+[\w$]+)?\s*\(/,Oa=/\([^)]*?\);*$/,Sa=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ta={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ea={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Na=function(e){return"if("+e+")return null;"},ja={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Na("$event.target !== $event.currentTarget"),ctrl:Na("!$event.ctrlKey"),shift:Na("!$event.shiftKey"),alt:Na("!$event.altKey"),meta:Na("!$event.metaKey"),left:Na("'button' in $event && $event.button !== 0"),middle:Na("'button' in $event && $event.button !== 1"),right:Na("'button' in $event && $event.button !== 2")};function Da(e,t){var n=t?"nativeOn:":"on:",r="",i="";for(var o in e){var a=La(e[o]);e[o]&&e[o].dynamic?i+=o+","+a+",":r+='"'+o+'":'+a+","}return r="{"+r.slice(0,-1)+"}",i?n+"_d("+r+",["+i.slice(0,-1)+"])":n+r}function La(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(e){return La(e)}).join(",")+"]";var t=Sa.test(e.value),n=Aa.test(e.value),r=Sa.test(e.value.replace(Oa,""));if(e.modifiers){var i="",o="",a=[];for(var s in e.modifiers)if(ja[s])o+=ja[s],Ta[s]&&a.push(s);else if("exact"===s){var c=e.modifiers;o+=Na(["ctrl","shift","alt","meta"].filter(function(e){return!c[e]}).map(function(e){return"$event."+e+"Key"}).join("||"))}else a.push(s);return a.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ma).join("&&")+")return null;"}(a)),o&&(i+=o),"function($event){"+i+(t?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":r?"return "+e.value:e.value)+"}"}return t||n?e.value:"function($event){"+(r?"return "+e.value:e.value)+"}"}function Ma(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var n=Ta[e],r=Ea[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(r)+")"}var Ia={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:S},Fa=function(e){this.options=e,this.warn=e.warn||Sr,this.transforms=Tr(e.modules,"transformCode"),this.dataGenFns=Tr(e.modules,"genData"),this.directives=A(A({},Ia),e.directives);var t=e.isReservedTag||T;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Pa(e,t){var n=new Fa(t);return{render:"with(this){return "+(e?Ra(e,n):'_c("div")')+"}",staticRenderFns:n.staticRenderFns}}function Ra(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Ha(e,t);if(e.once&&!e.onceProcessed)return Ba(e,t);if(e.for&&!e.forProcessed)return za(e,t);if(e.if&&!e.ifProcessed)return Ua(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var n=e.slotName||'"default"',r=qa(e,t),i="_t("+n+(r?","+r:""),o=e.attrs||e.dynamicAttrs?Ga((e.attrs||[]).concat(e.dynamicAttrs||[]).map(function(e){return{name:b(e.name),value:e.value,dynamic:e.dynamic}})):null,a=e.attrsMap["v-bind"];!o&&!a||r||(i+=",null");o&&(i+=","+o);a&&(i+=(o?"":",null")+","+a);return i+")"}(e,t);var n;if(e.component)n=function(e,t,n){var r=t.inlineTemplate?null:qa(t,n,!0);return"_c("+e+","+Va(t,n)+(r?","+r:"")+")"}(e.component,e,t);else{var r;(!e.plain||e.pre&&t.maybeComponent(e))&&(r=Va(e,t));var i=e.inlineTemplate?null:qa(e,t,!0);n="_c('"+e.tag+"'"+(r?","+r:"")+(i?","+i:"")+")"}for(var o=0;o>>0}(a):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(n+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var o=function(e,t){var n=e.children[0];if(n&&1===n.type){var r=Pa(n,t.options);return"inlineTemplate:{render:function(){"+r.render+"},staticRenderFns:["+r.staticRenderFns.map(function(e){return"function(){"+e+"}"}).join(",")+"]}"}}(e,t);o&&(n+=o+",")}return n=n.replace(/,$/,"")+"}",e.dynamicAttrs&&(n="_b("+n+',"'+e.tag+'",'+Ga(e.dynamicAttrs)+")"),e.wrapData&&(n=e.wrapData(n)),e.wrapListeners&&(n=e.wrapListeners(n)),n}function Ka(e){return 1===e.type&&("slot"===e.tag||e.children.some(Ka))}function Ja(e,t){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return Ua(e,t,Ja,"null");if(e.for&&!e.forProcessed)return za(e,t,Ja);var r=e.slotScope===ca?"":String(e.slotScope),i="function("+r+"){return "+("template"===e.tag?e.if&&n?"("+e.if+")?"+(qa(e,t)||"undefined")+":undefined":qa(e,t)||"undefined":Ra(e,t))+"}",o=r?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+o+"}"}function qa(e,t,n,r,i){var o=e.children;if(o.length){var a=o[0];if(1===o.length&&a.for&&"template"!==a.tag&&"slot"!==a.tag){var s=n?t.maybeComponent(a)?",1":",0":"";return""+(r||Ra)(a,t)+s}var c=n?function(e,t){for(var n=0,r=0;r':'
',ts.innerHTML.indexOf(" ")>0}var os=!!z&&is(!1),as=!!z&&is(!0),ss=g(function(e){var t=Yn(e);return t&&t.innerHTML}),cs=wn.prototype.$mount;return wn.prototype.$mount=function(e,t){if((e=e&&Yn(e))===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var r=n.template;if(r)if("string"==typeof r)"#"===r.charAt(0)&&(r=ss(r));else{if(!r.nodeType)return this;r=r.innerHTML}else e&&(r=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(r){var i=rs(r,{outputSourceRange:!1,shouldDecodeNewlines:os,shouldDecodeNewlinesForHref:as,delimiters:n.delimiters,comments:n.comments},this),o=i.render,a=i.staticRenderFns;n.render=o,n.staticRenderFns=a}}return cs.call(this,e,t)},wn.compile=rs,wn}); --------------------------------------------------------------------------------