xiaomianao666

小程序:杂志

Sep 19th, 2022
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. 海阔视界规则分享,当前分享的是:小程序¥home_rule_v2¥base64://@杂志@eyJsYXN0X2NoYXB0ZXJfcnVsZSI6IiIsInRpdGxlIjoi5p2C5b+XIiwiYXV0aG9yIjoiSm9rZXIiLCJ1cmwiOiJoaWtlcjovL2VtcHR5IyNmeXBhZ2UiLCJ2ZXJzaW9uIjo2LCJjb2xfdHlwZSI6Im1vdmllXzMiLCJjbGFzc19uYW1lIjoiIiwidHlwZSI6InJlYWQiLCJjbGFzc191cmwiOiIiLCJhcmVhX25hbWUiOiIiLCJhcmVhX3VybCI6IiIsInNvcnRfbmFtZSI6IiIsInllYXJfbmFtZSI6IiIsInNvcnRfdXJsIjoiIiwieWVhcl91cmwiOiIiLCJmaW5kX3J1bGUiOiJqczpcbmxldCBkID0gW107XG5sZXQgbm93ID0gZ2V0SXRlbSgnbm93JywgJ+aOqOiNkOacn+WIiicpO1xuaWYgKE1ZX1BBR0UgPT0gMSkge1xuICAgIGxldCBhcnIgPSBbJ+aOqOiNkOacn+WIiicsICfng63pl6jmnJ/liIonLCAn55u05pKtJywgJ+aUtuiXjyddO1xuICAgIGZvciAobGV0IGl0IG9mIGFycikge1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IG5vdyA9PSBpdCA/ICfigJzigJzigJ3igJ0nICsgaXQuZm9udGNvbG9yKCdyZWQnKSA6IGl0LFxuICAgICAgICAgICAgY29sX3R5cGU6ICdzY3JvbGxfYnV0dG9uJyxcbiAgICAgICAgICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoaXQpID0+IHtcbiAgICAgICAgICAgICAgICBzZXRJdGVtKFwibm93XCIsIGl0KTtcbiAgICAgICAgICAgICAgICByZWZyZXNoUGFnZSgpO1xuICAgICAgICAgICAgICAgIHJldHVybiAnaGlrZXI6Ly9lbXB0eSc7XG4gICAgIC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gICAgIHVybDogJCgnI25vTG9hZGluZyMnKS5sYXp5UnVsZSgoZSkgPT4ge1xuICAgICAgICAgICAgICAgICAgICBzZXRJdGVtKCdzZWxlY3RfemInLCBlKTtcbiAgICAgICAgICAgICAgICAgICAgcmVmcmVzaFBhZ2UoKTtcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuICdoaWtlcjovL2VtcHR5J1xuICAgICAgICAgICAgICAgIH0sIG9iai52YWx1ZSksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFwic2Nyb2xsX2J1dHRvblwiXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgICAgICBmb3IgKGxldCBpdCBvZiBzb3VyY2VfbGlzdFtzZWxlY3RfemJdLmxpc3QpIHtcbiAgICAgICAgICAgIGQucHVzaCh7XG4gICAgICAgICAgICAgICAgdGl0bGU6IGl0LnRpdGxlLFxuICAgICAgICAgICAgICAgIHVybDogJCgpLmxhenlSdWxlKCh0YWcpID0+IHtcbiAgICAgICAgICAgICAgICAgICAgZXZhbChKU09OLnBhcnNlKGZldGNoKFwiaGlrZXI6Ly9wYWdlL2dldEhlYWRlcnNcIikpLnJ1bGUpO1xuICAgICAgICAgICAgICAgICAgICBsZXQgbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdCgnaHR0cDovL2FwaS5saWZ2ZXMuY29tL3ZpZGVvL2dldExpdmVTb3VyY2VMaW5rP3RhZz0nICsgdGFnLCB7XG4gICAgICAgICAgICAgICAgICAgICAgICAgICAgaGVhZGVyczogaGVhZGVyc1xuICAgICAgICAgICAgICAgICAgICAgICAgfSkpLmRhdGFfbGlzdCxcbiAgICAgICAgICAgICAgICAgICAgICAgIHVybHMgPSBsaXN0Lm1hcCh2ID0+IHYuaHJlZik7XG4gICAgICAgICAgICAgICAgICAgIHJldHVybiBKU09OLnN0cmluZ2lmeSh7XG4gICAgICAgICAgICAgICAgICAgICAgICB1cmxzOiB1cmxzXG4gICAgICAgICAgICAgICAgICAgIH0pO1xuICAgICAgICAgICAgICAgIH0sIGl0LnRhZyksXG4gICAgICAgICAgICAgICAgY29sX3R5cGU6IFwiaWNvbl80X2NhcmRcIixcbiAgICAgICAgICAgICAgICBkZXNjOiBpdC5zdWJfdGl0bGUsXG4gICAgICAgICAgICAgICAgcGljX3VybDogaXQuaW1nXG4gICAgICAgICAgICB9KTtcbiAgICAgICAgfVxuICAgIH1cbn0gZWxzZSBpZiAobm93ID09ICfmjqjojZDmnJ/liIonIHx8IG5vdyA9PSAn54Ot6Zeo5pyf5YiKJykge1xuICAgIGV2YWwoSlNPTi5wYXJzZShmZXRjaChcImhpa2VyOi8vcGFnZS9nZXRIZWFkZXJzXCIpKS5ydWxlKTtcbiAgICBsZXQgY2F0ZWdvcnlfaWQgPSBub3cgPT0gXCLmjqjojZDmnJ/liIpcIiA/IDAgOiAxLFxuICAgICAgICBxa19saXN0ID0gSlNPTi5wYXJzZShyZXF1ZXN0KFwiaHR0cHM6Ly9hcGkubGlmdmVzLmNvbS9tYWdhemluZS9tb3JlP2NhdGVnb3J5X2lkPVwiICsgY2F0ZWdvcnlfaWQgKyBcIiZwYWdlPVwiICsgTVlfUEFHRSwge1xuICAgICAgICAgICAgaGVhZGVyczogaGVhZGVyc1xuICAgICAgICB9KSkuZGF0YV9saXN0O1xuICAgIGZvciAobGV0IGkgaW4gcWtfbGlzdCkge1xuICAgICAgICBsZXQgaXQgPSBxa19saXN0W2ldO1xuICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgdGl0bGU6IGl0LnRpdGxlLFxuICAgICAgICAgICAgZGVzYzogaXQucWlzaHUsXG4gICAgICAgICAgICBpbWc6IGl0LmltZyxcbiAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsXG4gICAgICAgICAgICB1cmw6ICdoaWtlcjovL3BhZ2UvY2F0YWxvZ3VlI2ltbWVyc2l2ZVRoZW1lIycsXG4gICAgICAgICAgICBleHRyYToge1xuICAgICAgICAgICAgICAgIGhyZWY6ICdodHRwczovL2FwaS5saWZ2ZXMuY29tL21hZ2F6aW5lL2Jvb2s/bWFnX2lkPScgKyBpdC5tYWdfaWQgKyAnJnFpc2h1PScgKyBpdC5xaXNodSxcbiAgICAgICAgICAgIH1cbiAgICAgICAgfSk7XG4gICAgfVxufSBlbHNlIGlmIChub3cgPT0gJ+aUtuiXjycpIHtcbiAgICBpZiAoTVlfUEFHRSA9PSAxKSB7XG4gICAgICAgIGxldCBjb2xsZWN0aW9uID0gSlNPTi5wYXJzZShyZWFkRmlsZSgnY29sbGVjdGlvbicpIHx8ICd7fScpO1xuICAgICAgICBmb3IgKGxldCBpIGluIGNvbGxlY3Rpb24pIHtcbiAgICAgICAgICAgIGxldCBpdCA9IGNvbGxlY3Rpb25baV07XG4gICAgICAgICAgICBkLnB1c2goe1xuICAgICAgICAgICAgICAgIHRpdGxlOiBpLFxuICAgICAgICAgICAgICAgIGNvbF90eXBlOiAnbW92aWVfMycsXG4gICAgICAgICAgICAgICAgaW1nOiBpdC5pbWcsXG4gICAgICAgICAgICAgICAgdXJsOiAnaGlrZXI6Ly9wYWdlL2hpc3RvcnknLFxuICAgICAgICAgICAgICAgIGV4dHJhOiB7XG4gICAgICAgICAgICAgICAgICAgIGhyZWY6IGl0LnVybCxcbiAgICAgICAgICAgICAgICAgICAgdGl0bGU6IGksXG4gICAgICAgICAgICAgICAgICAgIGltZzogaXQuaW1nXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfSlcbiAgICAgICAgfVxuICAgIH1cbn1cbnNldFJlc3VsdChkKTsiLCJzZWFyY2hfdXJsIjoiaGlrZXI6Ly9lbXB0eSMjKioiLCJncm91cCI6IuKRoFcgLiIsInNlYXJjaEZpbmQiOiJqczpcbmxldCBkID0gW107XG5ldmFsKEpTT04ucGFyc2UoZmV0Y2goXCJoaWtlcjovL3BhZ2UvZ2V0SGVhZGVyc1wiKSkucnVsZSk7XG5sZXQgcWtfbGlzdCA9IEpTT04ucGFyc2UocmVxdWVzdChcImh0dHBzOi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rZXI6Ly9wYWdlL3RleHQnICsgZnVsbFRoZW1lICsgcmVhZFRoZW1lLFxcbiAgICAgICAgICAgIGV4dHJhOiB7XFxuICAgICAgICAgICAgICAgIGxpbmVWaXNpYmxlOiBmYWxzZSxcXG4gICAgICAgICAgICAgICAgaHJlZjogXFxcImh0dHBzOi8vYXBpLmxpZnZlcy5jb20vbWFnYXppbmUvcmVhZD9yZWFkX2lkPVxcXCIgKyBlLnJlYWRfaWQsXFxuICAgICAgICAgICAgICAgIGluZGV4OiBpbmRleFxcbiAgICAgICAgICAgIH1cXG4gICAgICAgIH0pXFxuICAgIH0pXFxufVxcblxcbnNldFJlc3VsdChkKTtcIn0se1wiY29sX3R5cGVcIjpcIm1vdmllXzNcIixcIm5hbWVcIjpcIuiOt+WPluivt+axguWktFwiLFwicGF0aFwiOlwiZ2V0SGVhZGVyc1wiLFwicnVsZVwiOlwiIGZ1bmN0aW9uIHJhbmRvbV9jaGFyKHQpIHtcXG4gICAgIGZvciAodmFyIG4gPSBbJzAnLCAnMScsICcyJywgJzMnLCAnNCcsICc1JywgJzYnLCAnNycsICc4JywgJzknLCAnYScsICdiJywgJ2MnLCAnZCcsICdlJywgJ2YnLCAnZycsICdoJywgJ2knLCAnaicsICdrJywgJ2wnLCAnbScsICduJywgJ28nLCAncCcsICdxJywgJ3InLCAncycsICd0JywgJ3UnLCAndicsICd3JywgJ3gnLCAneScsICd6J10sIGkgPSAnJywgZSA9IDA7IGUgPCB0OyBlKyspIHtcXG4gICAgICAgICB2YXIgbyA9IE1hdGguY2VpbCgzNSAqIE1hdGgucmFuZG9tKCkpXFxuICAgICAgICAgaSArPSBuW29dXFxuICAgICB9XFxuICAgICByZXR1cm4gaVxcbiB9XFxuXFxuIGZ1bmN0aW9uIGdldFNlY3JldGRhdGUoKSB7XFxuICAgICB2YXIgdCA9IHBhcnNlSW50KChuZXcgRGF0ZSgpKS5nZXRUaW1lKCkgLyAxZTMpXFxuICAgICB2YXIgbiA9IHJhbmRvbV9j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Hkjbm9Mb2FkaW5nI1xcXCIpLmxhenlSdWxlKChzKSA9PiB7XFxuICAgICAgICBzZXRJdGVtKCdpbmRlbnQnLCBTdHJpbmcocyAtIDEpKTtcXG4gICAgICAgIHJlZnJlc2hQYWdlKGZhbHNlKTtcXG4gICAgICAgIHJldHVybiBcXFwiaGlrZXI6Ly9lbXB0eVxcXCJcXG4gICAgfSwgaW5kZW50KVxcbn0pXFxuXFxuZC5wdXNoKHtcXG4gICAgY29sX3R5cGU6ICdsaW5lJ1xcbn0pXFxuXFxuZC5wdXNoKHtcXG4gICAgdGl0bGU6ICfpooTop4gnLmJpZygpICsgJyjlrZflj7c6JyArIGZvbnRzaXplICsgJyznvKnov5s6JyArIGluZGVudCArICcpJyxcXG4gICAgY29sX3R5cGU6ICdyaWNoX3RleHQnXFxufSwge1xcbiAgICB0aXRsZTogJzxwPuWwj+ajieiihOW4heWQlz88L3A+PHA+5bCP5qOJ6KKE5oCO5LmI6L+Z5LmI5biF77yfPC9wPjxwPuWwj+ajieiihOecn+aYr+i2hei2hei2hei2hei2hei2hei2hei2hee6p+W4hSEhISHluIXngrjkuoblpb3kuI3lpb3vvJ/kuL7kuJbpopzml6Dlj4whISEhPC9wPicucmVwbGFjZSgvXFxcXDxwXFxcXD4vZywgJzxwPicgKyBpbmRlbnRzKSxcXG4gICAgY29sX3R5cGU6ICdyaWNoX3RleHQnLFxcbiAgICBleHRyYToge1xcbiAgICAgICAgdGV4dFNpemU6IGZvbnRzaXplXFxuICAgIH1cXG59KVxcbnNldFJlc3VsdChkKTtcIn1dIiwiaWNvbiI6Imh0dHBzOi8vbGFubWVpZ3VvamlhbmcuY29tL3R1Ymlhby9tZXNzeS82Ny5zdmciLCJwcm94eSI6IiJ9
Add Comment
Please, Sign In to add comment