diff --git a/ElainaV2/assets/Backgrounds/Elaina1.webm b/ElainaV2/assets/Backgrounds/Elaina1.webm deleted file mode 100644 index 69dfb4f..0000000 Binary files a/ElainaV2/assets/Backgrounds/Elaina1.webm and /dev/null differ diff --git a/ElainaV2/assets/Backgrounds/Elaina2.webm b/ElainaV2/assets/Backgrounds/Elaina2.webm deleted file mode 100644 index d341d7b..0000000 Binary files a/ElainaV2/assets/Backgrounds/Elaina2.webm and /dev/null differ diff --git a/ElainaV2/assets/Backgrounds/Elaina3.webm b/ElainaV2/assets/Backgrounds/Elaina3.webm deleted file mode 100644 index ffe5274..0000000 Binary files a/ElainaV2/assets/Backgrounds/Elaina3.webm and /dev/null differ diff --git a/ElainaV2/assets/Backgrounds/Elaina4.webm b/ElainaV2/assets/Backgrounds/Elaina4.webm deleted file mode 100644 index 8dfccec..0000000 Binary files a/ElainaV2/assets/Backgrounds/Elaina4.webm and /dev/null differ diff --git a/ElainaV2/assets/Backgrounds/Old-Ranked_Draft-Champion_Select.mp3 b/ElainaV2/assets/Backgrounds/Old-Ranked_Draft-Champion_Select.mp3 deleted file mode 100644 index 5e86af6..0000000 Binary files a/ElainaV2/assets/Backgrounds/Old-Ranked_Draft-Champion_Select.mp3 and /dev/null differ diff --git a/ElainaV2/assets/Css/Addon-Css/Animate-Loading-Screen.css b/ElainaV2/assets/Css/Addon-Css/Animate-Loading-Screen.css deleted file mode 100644 index fa653cc..0000000 --- a/ElainaV2/assets/Css/Addon-Css/Animate-Loading-Screen.css +++ /dev/null @@ -1,26 +0,0 @@ -.lol-loading-screen-container.lol-loading-screen-default-state { - backdrop-filter: blur(15px) ; - background: transparent!important; -} - -.lol-loading-screen-progress-bar-container { - width: 500px !important; - top: 8px !important; -} - -.lol-loading-screen-container .lol-loading-screen-lol-icon { - background: var(--ElainaFly) !important; - background-repeat: no-repeat; - background-size: contain; - width: 475px !important; - height: 475px !important; - margin-top: 114px !important; - margin-bottom: 0px !important; - border: 2px solid transparent !important; - border-radius: 250px !important; -} - -.lol-loading-screen-status-container { - height: 86px !important; - margin-top: 28px !important; -} \ No newline at end of file diff --git a/ElainaV2/assets/Css/Addon-Css/Aram-only.css b/ElainaV2/assets/Css/Addon-Css/Aram-only.css deleted file mode 100644 index 9e49151..0000000 --- a/ElainaV2/assets/Css/Addon-Css/Aram-only.css +++ /dev/null @@ -1,15 +0,0 @@ -[data-game-mode="CLASSIC"] { - display: none !important; -} - -[data-game-mode="TFT"] { - display: none !important; -} - -.quick-play-game-mode-text { - display: none !important; -} - -.quick-play-button { - display: none !important; -} \ No newline at end of file diff --git a/ElainaV2/assets/Css/Addon-Css/Avatar.css b/ElainaV2/assets/Css/Addon-Css/Avatar.css deleted file mode 100644 index be504eb..0000000 --- a/ElainaV2/assets/Css/Addon-Css/Avatar.css +++ /dev/null @@ -1,3 +0,0 @@ -.top > .icon-image.has-icon, .style-profile-champion-icon-masked > img { - content: var(--Avatar) !important; -} \ No newline at end of file diff --git a/ElainaV2/assets/Css/Addon-Css/Hide-Champs-Splash-Art.css b/ElainaV2/assets/Css/Addon-Css/Hide-Champs-Splash-Art.css deleted file mode 100644 index 0a532c1..0000000 --- a/ElainaV2/assets/Css/Addon-Css/Hide-Champs-Splash-Art.css +++ /dev/null @@ -1,15 +0,0 @@ -.champion-select { - background: transparent!important -} - -.champion-select .champion-splash-background .background-vignette-container.defocussed > .champ-select-bg { - opacity:0 !important; -} - -.champ-select-bg-darken { - opacity:0.2!important -} - -.background-vignette-container.focussed.static.visible { - display: none !important; -} \ No newline at end of file diff --git a/ElainaV2/assets/Css/Addon-Css/Static-Loading-Screen.css b/ElainaV2/assets/Css/Addon-Css/Static-Loading-Screen.css deleted file mode 100644 index 29f0d58..0000000 --- a/ElainaV2/assets/Css/Addon-Css/Static-Loading-Screen.css +++ /dev/null @@ -1,18 +0,0 @@ -.lol-loading-screen-container.lol-loading-screen-default-state { - backdrop-filter: blur(15px) ; - background: transparent!important; -} - -.lol-loading-screen-progress-bar-container { - width: 500px !important; - top: 35px !important; -} - -.lol-loading-screen-container .lol-loading-screen-lol-icon { - background: var(--ElainaStatic) !important; - background-repeat: no-repeat; - background-size: contain; - width: 240px !important; - height: 240px !important; - margin-top: 40px !important; -} \ No newline at end of file diff --git a/ElainaV2/assets/Css/ElainaV2.css b/ElainaV2/assets/Css/ElainaV2.css deleted file mode 100644 index dd2916c..0000000 --- a/ElainaV2/assets/Css/ElainaV2.css +++ /dev/null @@ -1,800 +0,0 @@ -/* By Elaina Da Catto */ -/* Meow~~~ */ - - - -/*_________________________________________________________________________________________________________________________________*/ -:root { - /* Delete " /* and * / " mark to apply font change */ - /* - --font-display: 'Elaina', sans-serif !important; - --font-body: 'Elaina', sans-serif !important; - */ - - --social-sidebar-bg-color: linear-gradient(rgba(6, 6, 6, 0), rgba(0, 0, 0, 0)); - - --BE-Icon: url("../Icon/ElainaStare.png"); - --RP-Icon: url("https://raw.githubusercontent.com/Elaina69/Elaina-V2/main/ElainaV2/assets/Icon/ApprenticeWitch.png"); /* Must use Web link */ - - --Avatar: url("https://raw.githubusercontent.com/Elaina69/Elaina-V2/main/ElainaV2/assets/Icon/Avatar.gif"); /* Must use Web link */ - --Hover-card-backdrop: url("https://raw.githubusercontent.com/Elaina69/Elaina-V2/main/ElainaV2/assets/Icon/Hover-card-backdrop.jpg"); /* Must use Web link */ - - --Rank-Icon: url("https://raw.githubusercontent.com/Elaina69/Elaina-V2/main/ElainaV2/assets/Icon/Rank.png"); /* Must use Web link */ - - --Emblem: url("../Icon/emblem_5.png"); - - --Clash-banner: url("../Icon/Clash.png"); - - --Ticker: url("../Icon/ticker.png"); - - --ElainaFly: url("//plugins/ElainaV2/assets/Icon/ElainaFly.gif"); - --ElainaStatic: url("//plugins/ElainaV2/assets/Icon/Logo.png"); -} - -@font-face { - src: url("") format('truetype'); /* .ttf */ - font-family: 'Elaina'; - font-weight: normal; - font-style: normal; - font-display: swap; -} -/*_________________________________________________________________________________________________________________________________*/ - - - - - - - - - -/*_________________________________________________________________________________________________________________________________*/ -@keyframes answerdiv { - 0% { - right: 100px; - background-color: transparent; - border: 2px solid transparent;} - - 100% { - right: 221px; - background-color: rgb(19, 15, 15); - border: 2px solid #8c8263;} -} - -@keyframes answer { - 0% {color: transparent;} - 100% {color: #cdbe91;} -} -/*_________________________________________________________________________________________________________________________________*/ - - - -/*_________________________________________________________________________________________________________________________________*/ - -iframe html { - background: transparent!important; -} - -iframe .bg-cover { - opacity:0!important -} - -.lol-social-sidebar.ember-view { - background: transparent!important -} - -#rcp-fe-lol-home-error { - display: none!important -} - -.rcp-fe-viewport-sidebar { - background: var(--social-sidebar-bg-color) !important; -} - -.store-backdrop { - background-image: unset !important; -} - -.friend-requests { - background:rgb(66, 63, 53)!important -} - -.navigation-root-component.ember-view { - background: linear-gradient(rgb(0 0 0), rgb(0 0 0 / 24%))!important; - height: 77px !important; - -} - -.alpha-version-panel { - background: linear-gradient(rgba(0, 0, 0, 0), rgba(38, 78, 52, 0))!important; - border-top: thin solid #1e282d00 !important; -} - -lol-social-avatar[ref='iconElement'], .lol-social-identity.ember-view > .details { - z-index: 1 !important; -} - -.menu-item-icon { - background-color: #fff1f1!important; - color: #fff1f1!important; -} - -.main-navigation-menu .section .section-text { - color: #fff1f1!important; -} - -.summoner-level { - color:#ffe8a5!important -} - -.alpha-tag { - color:#ffffffc9!important; -} - -lol-social-roster-member .offline .member-name { - color:#9a9696!important -} - -.availability-icon { - position: relative!important; -} - -.availability-icon.chat { - background: #09a646 !important; -} - -.filled.xp-ring { - background: linear-gradient(rgb(255 236 236), rgb(87 103 105 / 48%)) !important; -} - -lol-uikit-navigation-item > .section::after { - background-image: linear-gradient(0deg, rgb(210 195 149 / 32%) 0%, rgb(0 0 0 / 10%) 55%); -} - -.parties-background.ember-view .lol-uikit-background-switcher-image { - opacity: 0.4 !important; -} - -.parties-background { - background: linear-gradient(to bottom, rgb(255 255 255 / 26%) 0%, rgba(0,0,0,0) 50%, rgb(90 27 62 / 20%) 100%) !important; -} - -.lobby-header-overlay { - background: unset!important -} - -.parties-game-section.use-animation > .parties-game-info-panel-bg-container > video { - filter: saturate(0.5) brightness(1) invert(1) hue-rotate(27deg) !important; -} - -.parties-game-search-info { - color:#000000!important -} - -.parties-game-search-elapsed { - color: white!important; - text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important; -} - -.parties-status-card-bg-container video { - filter: saturate(0.5) brightness(1) invert(1) hue-rotate(27deg) !important; -} - -.challenge-banner-title-container { - color: #f3d3d3 !important; - text-shadow: -1px 0 black, 0 1px black, 1px 0 black, 0 -1px black !important; -} - -.parties-status-member-icons > .parties-status-member-joined { - filter: grayscale(1) saturate(0) brightness(0.5) !important; -} - -.collections-application { - background: rgb(29 72 56 / 18%)!important; -} - -.item-sets-table-row { - background: #0000007a !important; -} - -#background-ambient { - src: none !important; - display: none !important; -} - -.inventory-search { - background: #00000085!important; -} - -.emote-item-icon.interactive { - background: #000000b0 !important; -} - -.uikit-background-switcher .lol-uikit-background-switcher-image.transition.fade { - animation: unset!important -} - -#elaina-bg:has(+ #rcp-fe-viewport-root .parties-background) { - filter: brightness(0.4) !important; -} - -.background { - background-image: unset!important; -} - -.stats-backdrop { - opacity: 0.3!important; - mix-blend-mode: difference !important; -} - -html { - overflow: hidden !important; -} - -.loot-backdrop { - height: 720px !important; -} - -.loading-tab::after { - background-image:none!important -} - -.store-loading { - background-color: transparent!important; -} - -.clash-aram-intro-modal { - background-image: none!important; - background-color: transparent!important -} - -.champion-select .timer-status::before { - filter: contrast(0) brightness(1) !important; -} - -.champion-select .action-button-container::after { - filter: sepia(1) !important; -} - -.rcp-fe-lol-game-in-progress { - background-image: unset!important; - background-color: unset!important; -} - -.clash-tab-team-background, .clash-tab-bracket-background, .tournament-scouting, .clash-missed-lockin-modal, .clash-root-background-landing, .clash-root-background { - background-image: none !important; -} - -.rcp-fe-lol-navigation.main-nav-bar { - height: 76px !important; -} - -div[data-screen-name="rcp-fe-lol-home"] .rcp-fe-lol-home-sub-nav { - margin-top: 10px; - padding-bottom: 10px; - background-color: #000000ad; - border-radius: 10px; - border: 2px solid var(--default-color, #cdbe91) !important; -} - -div[data-screen-name="rcp-fe-lol-tft"] .tft-sub-nav-container { - padding-top: 10px !important; - padding-bottom: 10px !important; - background-color: #000000ad !important; - border-radius: 10px !important; - border: 2px solid var(--default-color, #cdbe91) !important; -} - -/*_________________________________________________________________________________________________________________________________*/ - - - - -/*_________________________________________________________________________________________________________________________________*/ - -#elaina-bg { - width:100%; - height: 100%; - position: absolute; - pointer-events: none; - transition: opacity 0.5s ease-in-out; - opacity: 1; - filter: blur(10px) brightness(0.4) saturate(1.5) ; -} - -.webm-bottom-buttons-container { - display: flex; - bottom: 9px; - left: 20px; - position:absolute -} - -#pause-bg { - position: relative !important; - border: 2px solid #8c8263 !important; - border-radius: 50% !important; - width: 21px !important; - background-color: black !important; - height: 21px !important; - cursor: pointer !important; -} - -#pause-bg:hover { - filter: brightness(1.3) hue-rotate(263deg) saturate(0.4) !important; -} - -.pause-bg-icon { - width: 17px !important; - margin-left: 2px !important; - margin-top: 2px !important; -} - -#next-bg { - position: relative !important; - width: 21px !important; - height: 21px !important; - cursor: pointer !important; -} - -.next-bg-icon { - width: 25px !important; - margin-left: 0px !important; - margin-top: -0.4px!important; -} - -.next-bg-icon:hover { - filter: hue-rotate(0deg) drop-shadow(2px 4px 6px pink) !important; -} - -#prev-bg { - position: relative !important; - width: 21px !important; - height: 21px !important; - cursor: pointer !important; -} - -.prev-bg-icon { - width: 25px !important; - margin-left: 0px !important; - margin-top: -0.4px !important; -} - -.prev-bg-icon:hover { - filter: hue-rotate(0deg) drop-shadow(2px 4px 6px pink) !important; -} - - -#pause-audio { - border: 2px solid #8c8263 !important; - border-radius: 50% !important; - width: 21px !important; - background-color: black !important; - height: 21px !important; - cursor: pointer !important; - display: block !important; - margin-right: 6px !important; -} - -.pause-audio-icon { - width: 13px !important; - margin-left: 4px !important; - margin-top: 4px !important; -} - -#pause-audio:hover { - filter: brightness(1.3) hue-rotate(263deg) saturate(0.4) !important; -} - -.webm-hidden { - opacity: 0!important -} - -.cs-buttons-container { - display: flex; - gap: 3em; -} - -.dodge-button-container { - position: absolute; - right: 20px; - bottom: 19px; - display: flex; - align-items: flex-end -} - -.audio-volume-panel { - display: flex; - bottom: 40px; - left: 15px; - position:absolute; - border: 3px solid #8c8263; - border-radius: 10px; - background: rgb(19, 15, 15); -} - -.audio-volume { - appearance: slider-vertical; - margin-top: 7px; - margin-left: 0px; - margin-right: 0px; - margin-bottom: 7px; - width: 30px; - height: 85px; -} - -/* ElainaTrigger */ -.watermark { - margin: 4px !important; - color: #cdbe91 !important; -} - -.watermark-text { - display: flex; - bottom: 9px; - right: 20px; - position:absolute -} - -.Elaina1ImageCon { - display: flex; - bottom: -4px; - right: 130px; - position:absolute -} - -.Elaina1TextCon { - display: flex; - bottom: 260px; - right: 303px; - position:absolute -} - -.Elaina1Image { - width: 650px !important; -} - -.Elaina1Text { - margin: 4px !important; - color: rgb(129 185 224) !important; - text-align: center !important; - font-size: 20px !important; -} - -.Headpat-con { - display: flex; - bottom: 230px; - right: 500px; - position:absolute -} - -.Headpat { - font-size: 100px !important; - width: 110px; - height: 60px; - background: transparent; - border: none; -} - -.Boobs-con { - display: flex; - bottom: 20px; - right: 495px; - position:absolute -} - -.Boobs { - font-size: 100px !important; - width: 136px; - height: 65px; - background: transparent; - border: none; -} - -.goOutSide-con { - display: flex; - bottom: -3px; - right: 434px; - position:absolute -} - -.GoOutSide { - font-size: 100px !important; - width: 225px; - height: 290px; - background: transparent; - border: none; -} - -.answer1-con { - display: flex; - bottom: 150px; - right: 220px; - position: absolute; - border-radius: 10px; - animation-name: answerdiv; - animation-duration: 1s; - animation-fill-mode: forwards; -} - -#answer1 { - margin-top: 10px; - margin-left: 10px; - margin-bottom: 10px; - margin-right: 10px; - text-align: center; - display: flex; - width: 200px; - font-size: 17px; - animation-name: answer; - animation-duration: 1s; - animation-fill-mode: forwards; -} - -.answer2-con { - display: flex; - bottom: 80px; - right: 220px; - position: absolute; - animation-name: answerdiv; - animation-duration: 1s; - animation-fill-mode: forwards; - animation-delay: 1.2s; - border-radius: 10px; -} - -#answer2 { - margin-top: 10px; - margin-left: 10px; - margin-bottom: 10px; - margin-right: 10px; - text-align: center; - display: flex; - width: 200px; - font-size: 17px; - color: transparent; - animation-name: answer; - animation-duration: 1s; - animation-fill-mode: forwards; - animation-delay: 1.2s; -} - -.answer3-con { - display: flex; - bottom: 150px; - right: 220px; - position: absolute; - animation-name: answerdiv; - animation-duration: 1s; - animation-fill-mode: forwards; - border-radius: 10px; -} - -#answer3 { - margin-top: 10px; - margin-left: 10px; - margin-bottom: 10px; - margin-right: 10px; - text-align: center; - display: flex; - width: 200px; - font-size: 17px; - animation-name: answer; - animation-duration: 1s; - animation-fill-mode: forwards; -} - -.answer4-con { - display: flex; - bottom: 150px; - right: 200px; - position: absolute; - animation-name: answerdiv; - animation-duration: 1s; - animation-fill-mode: forwards; - border-radius: 10px; -} - -#answer4 { - margin-top: 10px; - margin-left: 10px; - margin-bottom: 10px; - margin-right: 10px; - text-align: center; - display: flex; - width: 220px; - font-size: 17px; - animation-name: answer; - animation-duration: 1s; - animation-fill-mode: forwards; -} - -.answer5-con { - display: flex; - bottom: 80px; - right: 200px; - position: absolute; - animation-name: answerdiv; - animation-duration: 1s; - animation-fill-mode: forwards; - animation-delay: 1.2s; - border-radius: 10px; -} - -#answer5 { - margin-top: 10px; - margin-left: 10px; - margin-bottom: 10px; - margin-right: 10px; - text-align: center; - display: flex; - width: 220px; - font-size: 17px; - color: transparent; - animation-name: answer; - animation-duration: 1s; - animation-fill-mode: forwards; - animation-delay: 1.2s; -} - -.Greeting { - margin: 4px !important; - color: rgb(129 185 224) !important; - text-align: center !important; - font-size: 20px !important; - width: 212px; - height: 50px; -} -/*_________________________________________________________________________________________________________________________________*/ - - - - -/*_________________________________________________________________________________________________________________________________*/ - -.vng-age-rating.ember-view { - display: none !important; -} - -.clash-aram-intro-modal { - display: none !important; -} - -:host .parties-status-card.open { - filter: hue-rotate(240deg) !important; -} - -.rcp-fe-lol-profiles-main > .component-factory-application > .ember-view > .style-profile-backdrop-component.ember-view > .style-profile-backdrop-container > .style-profile-masked-image { - display: none !important; -} - - -.ranked-intro-background { - display: none !important; -} - -.loot-backdrop.background-static { - background: none !important; -} - -.yourshop-root { - background-image: none !important; -} - -.npe-root-component { - background-image: none !important; -} - -div > div > .rcp-fe-lol-tft-application-background { - background-image: none !important; -} - -.item-page-items-container-wrapper.purchase-history-page-content-wrapper { - background: unset !important; -} - -.postgame-background-image { - display: none !important; -} - -.friend-header { - display: none !important; -} - -.loading-content div > div > .loading-text { - display: none !important; -} - -.hextech-loading-animation > svg { - display: none !important; -} -/*__________________________________________________________________________________________________________________________________*/ - - - - -/*____________________________________________________________Profiles______________________________________________________________*/ - -.style-profile-ranked-reference-modal-button { - display: none !important; -} - -.style-profile-honor-component.ember-view > .style-profile-emblem-wrapper > .style-profile-emblem-header > .style-profile-emblem-header-subtitle { - display: none !important; -} - -.style-profile-emblem-subheader-ranked > div { - color: #cdbe91 !important; - font-size: 0px !important; -} - -.style-profile-ranked-component.ember-view > .style-profile-emblem-wrapper > .style-profile-emblem-header > .style-profile-emblem-header-title { - font-size: 0px !important; -} - -.style-profile-ranked-component.ember-view > .style-profile-emblem-wrapper > .style-profile-emblem-header > .style-profile-emblem-header-title::after { - content: "Apprentice"; - font-size: 12px !important; -} - -.style-profile-emblem-subheader-ranked > div::after { - content: "[Witch]"; - color: #cdbe91 !important; - font-size: 10px !important; -} -/*_________________________________________________________________________________________________________________________________*/ - - - - -/*_________________________________________________________________________________________________________________________________*/ - -.navigation-status-ticker-content-no-link { - background-color: rgba(248, 169, 201, 0.726) !important; - border: 1px solid white !important; - border-radius: 0.5rem !important; - color: rgba(22, 22, 22, 0.626) !important; -} - - -.currency-be-icon-static { - background-image: var(--BE-Icon) !important; - background-position: 0px center !important; -} - -.currency-rp { - background-image: var(--RP-Icon) !important; -} - -.ticker-button { - background-image: var(--Ticker) !important; - border: 2px solid var(--default-color, #e0a9d9) !important; - padding: 2px !important; - border-radius: 50px !important; -} - -.style-profile-clash-banner-empty { - background-image: var(--Clash-banner) !important; -} - -.style-profile-ranked-crest-ranked > lol-regalia-emblem-element { ---regalia-emblem-unranked: var(--Rank-Icon) !important; ---regalia-emblem-iron: var(--Rank-Icon) !important; ---regalia-emblem-bronze: var(--Rank-Icon) !important; ---regalia-emblem-silver: var(--Rank-Icon) !important; ---regalia-emblem-gold: var(--Rank-Icon) !important; ---regalia-emblem-platinum: var(--Rank-Icon) !important; ---regalia-emblem-diamond: var(--Rank-Icon) !important; ---regalia-emblem-master: var(--Rank-Icon) !important; ---regalia-emblem-grandmaster: var(--Rank-Icon) !important; ---regalia-emblem-challenger: var(--Rank-Icon) !important; -} - -.style-profile-honor-icon { - content: var(--Emblem) !important; -} -/*_________________________________________________________________________________________________________________________________*/ - - - -/* End */ - diff --git a/ElainaV2/assets/Icon/ApprenticeWitch.png b/ElainaV2/assets/Icon/ApprenticeWitch.png deleted file mode 100644 index ebab10a..0000000 Binary files a/ElainaV2/assets/Icon/ApprenticeWitch.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/Avatar.gif b/ElainaV2/assets/Icon/Avatar.gif deleted file mode 100644 index fb080a5..0000000 Binary files a/ElainaV2/assets/Icon/Avatar.gif and /dev/null differ diff --git a/ElainaV2/assets/Icon/Clash.png b/ElainaV2/assets/Icon/Clash.png deleted file mode 100644 index 0442826..0000000 Binary files a/ElainaV2/assets/Icon/Clash.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/ElainaCB.png b/ElainaV2/assets/Icon/ElainaCB.png deleted file mode 100644 index cb89b1f..0000000 Binary files a/ElainaV2/assets/Icon/ElainaCB.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/ElainaDed.png b/ElainaV2/assets/Icon/ElainaDed.png deleted file mode 100644 index 860bd4b..0000000 Binary files a/ElainaV2/assets/Icon/ElainaDed.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/ElainaFly.gif b/ElainaV2/assets/Icon/ElainaFly.gif deleted file mode 100644 index 208cc4d..0000000 Binary files a/ElainaV2/assets/Icon/ElainaFly.gif and /dev/null differ diff --git a/ElainaV2/assets/Icon/ElainaStare.png b/ElainaV2/assets/Icon/ElainaStare.png deleted file mode 100644 index 2707195..0000000 Binary files a/ElainaV2/assets/Icon/ElainaStare.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/Hover-card-backdrop.jpg b/ElainaV2/assets/Icon/Hover-card-backdrop.jpg deleted file mode 100644 index 238cd0a..0000000 Binary files a/ElainaV2/assets/Icon/Hover-card-backdrop.jpg and /dev/null differ diff --git a/ElainaV2/assets/Icon/LL-Settings.webm b/ElainaV2/assets/Icon/LL-Settings.webm deleted file mode 100644 index 48cb957..0000000 Binary files a/ElainaV2/assets/Icon/LL-Settings.webm and /dev/null differ diff --git a/ElainaV2/assets/Icon/Logo.png b/ElainaV2/assets/Icon/Logo.png deleted file mode 100644 index 555c8ff..0000000 Binary files a/ElainaV2/assets/Icon/Logo.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/Rank.png b/ElainaV2/assets/Icon/Rank.png deleted file mode 100644 index b0b73b6..0000000 Binary files a/ElainaV2/assets/Icon/Rank.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/audio.png b/ElainaV2/assets/Icon/audio.png deleted file mode 100644 index 7aed99b..0000000 Binary files a/ElainaV2/assets/Icon/audio.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/emblem_5.png b/ElainaV2/assets/Icon/emblem_5.png deleted file mode 100644 index bfb66fa..0000000 Binary files a/ElainaV2/assets/Icon/emblem_5.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/mute.png b/ElainaV2/assets/Icon/mute.png deleted file mode 100644 index f04f9e0..0000000 Binary files a/ElainaV2/assets/Icon/mute.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/next_button.png b/ElainaV2/assets/Icon/next_button.png deleted file mode 100644 index 3104071..0000000 Binary files a/ElainaV2/assets/Icon/next_button.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/pause_button.png b/ElainaV2/assets/Icon/pause_button.png deleted file mode 100644 index 0721099..0000000 Binary files a/ElainaV2/assets/Icon/pause_button.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/play_button.png b/ElainaV2/assets/Icon/play_button.png deleted file mode 100644 index ae94259..0000000 Binary files a/ElainaV2/assets/Icon/play_button.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/prev_button.png b/ElainaV2/assets/Icon/prev_button.png deleted file mode 100644 index 75c5d54..0000000 Binary files a/ElainaV2/assets/Icon/prev_button.png and /dev/null differ diff --git a/ElainaV2/assets/Icon/ticker.png b/ElainaV2/assets/Icon/ticker.png deleted file mode 100644 index f68739f..0000000 Binary files a/ElainaV2/assets/Icon/ticker.png and /dev/null differ diff --git a/ElainaV2/configs/ElainaV2_config.json b/ElainaV2/configs/ElainaV2_config.json deleted file mode 100644 index 4dd2054..0000000 --- a/ElainaV2/configs/ElainaV2_config.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "css_file": "//plugins/ElainaV2/assets/Css/ElainaV2.css", - - - -"/______________________________________Wallpapers______________________________/": "", - - "/__Support_formats__/": " .mp4, .webm, .mkv, ... idk,maybe more ", - "/___*Notice*__/": " Remember to change both wallpaper name and source ", - - "default_wallpaper":"Elaina3.webm", - "default_wallpaper_src":"//plugins/ElainaV2/assets/Backgrounds/Elaina3.webm", - - "wallpaper_list": ["Elaina1.webm", "Elaina2.webm", "Elaina3.webm", "Elaina4.webm"], - - - "/___*Video volume*___/": "(0.0 is mute, 1.0 is highest)" , - "video_sound_volume": 0.2, - - "pause_wallpaper": false, -"/______________________________________________________________________________/": "", - - - -"/_______________________________________Audio__________________________________/": "", - - "audio_src": "//plugins/ElainaV2/assets/Backgrounds/Old-Ranked_Draft-Champion_Select.mp3", - - - "/___*Audio volume*___/": "(0.0 is mute, 1.0 is highest)" , - "audio_sound_volume": 0.0, - - "pause_audio": false, -"/______________________________________________________________________________/": "", - - - -"/______________________________________________________________________________/": "", - - "Animate-Loading": false, - - "Custom-Avatar": true, - - "auto_accept": true, - - "Aram-only-mode": false, - - "Hide-Champions-Splash-Art": true, -"/______________________________________________________________________________/": "", - - - "default_home_page": "elaina-home", - - "custom_log": "Sech tan bao" -} \ No newline at end of file diff --git a/ElainaV2/index.js b/ElainaV2/index.js deleted file mode 100644 index 9b13d80..0000000 --- a/ElainaV2/index.js +++ /dev/null @@ -1,37 +0,0 @@ -/* By Elaina Da Catto */ -/* Meow~~~ */ - - -//Main Utility -import utils from './resources/_utilselaina' - -//Add something to client -import './resources/LoadingScreen' -import './resources/LL-Settings' -import './resources/Button+Filter' - -//Change or delete something from client -import './resources/Avatar' -import './resources/ChangeClientContents' -import './resources/HideChampsArt' - -//Addon plugins -import './resources/Hide_friendlist' -import './resources/Aram-only' -import './resources/Auto-accept' -import './resources/Dodge-button' -import './resources/Offline-mode' - -//Configs -import data from './configs/ElainaV2_config.json' -let default_settings = data - -//Load CSS file -window.addEventListener('load', () => { - utils.addCss(default_settings["css_file"]); - -//Console - console.log('By Elaina Da Catto'); - console.log('Meow ~~~'); - console.log(default_settings["custom_log"]); -}) \ No newline at end of file diff --git a/ElainaV2/resources/Aram-only.js b/ElainaV2/resources/Aram-only.js deleted file mode 100644 index 1c1835a..0000000 --- a/ElainaV2/resources/Aram-only.js +++ /dev/null @@ -1,27 +0,0 @@ -import utils from './_utilselaina'; -import data from"../configs/ElainaV2_config.json"; - -let ARAM = data["Aram-only-mode"]; - -if(ARAM) {window.addEventListener("load",()=>{ - const e=document.createElement("link"); - e.href="//plugins/ElainaV2/assets/Css/Addon-Css/Aram-only.css", - e.type="text/css", - e.rel="stylesheet",document.body.append(e)}); - - let e=e=>{ - let t; - t=e.getAttribute("data-screen-name"), - "rcp-fe-lol-parties"==t&&window.setInterval(()=>{ - try{ - document.querySelector("div[data-game-mode='CLASSIC']").remove(), - document.querySelector("div[data-game-mode='TFT']").remove() - } - catch{} - },100) - }; - - window.addEventListener("load",()=>{ - utils.mutationObserverAddCallback(e,["screen-root"]) - }) -} \ No newline at end of file diff --git a/ElainaV2/resources/Auto-accept.js b/ElainaV2/resources/Auto-accept.js deleted file mode 100644 index 87dac0c..0000000 --- a/ElainaV2/resources/Auto-accept.js +++ /dev/null @@ -1,92 +0,0 @@ -import utils from './_utilselaina'; -import data from"../configs/ElainaV2_config.json"; - -let auto_accept = data["auto_accept"] - -let queue_accepted = false -let player_declined = false - -function autoAcceptQueueButton(){ - let element = document.getElementById("autoAcceptQueueButton") - if (element.attributes.selected != undefined) { - auto_accept = false - element.removeAttribute("selected") - } - else { - element.setAttribute("selected", "true") - auto_accept = true - } -} - -window.autoAcceptQueueButton = autoAcceptQueueButton - - -let autoAcceptCallback = async message => { - utils.phase = JSON.parse(message["data"])[2]["data"] - if (utils.phase == "ReadyCheck" && auto_accept && !queue_accepted) { - await acceptMatchmaking(), - queue_accepted = true - } - else if (utils.phase != "ReadyCheck") { - queue_accepted = false - } -} - -function fetch_or_create_champselect_buttons_container() { - if (document.querySelector(".cs-buttons-container")) { - return document.querySelector(".cs-buttons-container") - } - else { - const div = document.createElement("div") - - div.className = "cs-buttons-container" - document.querySelector(".v2-footer-notifications.ember-view").append(div) - return div - } -} - -let autoAcceptMutationObserver = (mutations) => { - if (document.querySelector(".v2-footer-notifications.ember-view") != null && document.getElementById("autoAcceptQueueButton") == null) { - let newOption = document.createElement("lol-uikit-radio-input-option"); - let container = fetch_or_create_champselect_buttons_container() - - newOption.setAttribute("id", "autoAcceptQueueButton"); - newOption.setAttribute("onclick", "window.autoAcceptQueueButton()"); - - let Option2 = document.createElement("div"); - Option2.classList.add("auto-accept-button-text"); - - newOption.append(Option2) - - if (auto_accept){ - newOption.setAttribute("selected", ""); - } - - -//___________________________________________________________________________// - if (document.querySelector("html").lang == "vi-VN") { - Option2.innerHTML = "Tự động chấp thuận"; - } - else if (document.querySelector("html").lang == "ja-JP") { - Option2.innerHTML = "自動承認"; - } - else { - Option2.innerHTML = "Auto Accept"; - } -//___________________________________________________________________________// - - - container.append(newOption); - } -} - -window.addEventListener('load', () => { - utils.subscribe_endpoint('/lol-gameflow/v1/gameflow-phase', autoAcceptCallback) - utils.routineAddCallback(autoAcceptMutationObserver, ["v2-footer-notifications.ember-view"]) -}) - -let acceptMatchmaking = async () => { - if (player_declined) return; - await fetch('/lol-matchmaking/v1/ready-check/accept', { method: 'POST' }) - -} diff --git a/ElainaV2/resources/Avatar.js b/ElainaV2/resources/Avatar.js deleted file mode 100644 index 6271605..0000000 --- a/ElainaV2/resources/Avatar.js +++ /dev/null @@ -1,56 +0,0 @@ -import utils from './_utilselaina' -import data from '../configs/ElainaV2_config.json' - -let Avatar = data["Custom-Avatar"] -if (Avatar) { -let changeAvatar1 = async message => { - let phase = JSON.parse(message["data"])[2]["data"]; - if (phase == "Lobby") { - window.setInterval(() => { - try { - document.querySelector("div.lobby-banner.local > lol-regalia-parties-v2-element").shadowRoot.querySelector("div > div > div.regalia-parties-v2-crest-wrapper > lol-regalia-crest-v2-element"). - shadowRoot.querySelector("div > uikit-state-machine > div.lol-regalia-summoner-icon-mask-container > div").style.backgroundImage = "var(--Avatar)" - } - catch {} - }, 200) - } -} - -let changeAvatar2 = (node) => { - let pagename; - pagename = node.getAttribute("data-screen-name") - if (pagename == "rcp-fe-lol-profiles-main") { - window.setInterval(() => { - try { - document.querySelector("div > lol-regalia-profile-v2-element").shadowRoot.querySelector("div > div > div.regalia-profile-crest-hover-area.picker-enabled > lol-regalia-crest-v2-element").shadowRoot.querySelector("div > uikit-state-machine > div.lol-regalia-summoner-icon-mask-container > div").style.backgroundImage = "var(--Avatar)" - } - catch {} - }, 100) - } -} - -window.addEventListener('load', () => { - utils.mutationObserverAddCallback(changeAvatar2, ["screen-root"]) -}) - -window.setInterval(() => { - try { - document.querySelector("lol-uikit-full-page-backdrop > lol-uikit-dialog-frame > div > div.challenges-identity-customizer-contents > div.challenges-identity-customizer-left-container > div > lol-regalia-identity-customizer-element"). - shadowRoot.querySelector("div > div > div.regalia-identity-customizer-crest-wrapper > lol-regalia-crest-v2-element"). - shadowRoot.querySelector("div > uikit-state-machine > div.lol-regalia-summoner-icon-mask-container > div").style.backgroundImage = "var(--Avatar)" - } - catch {} - try { - document.querySelector("#lol-uikit-tooltip-root > div > div > div.hover-card.right.has-regalia.regalia-loaded > div > div.hover-card-info-container > div.hover-card-identity > lol-regalia-hovercard-v2-element"). - shadowRoot.querySelector("lol-regalia-crest-v2-element").shadowRoot.querySelector("div > uikit-state-machine > div.lol-regalia-summoner-icon-mask-container > div").style.backgroundImage = "var(--Avatar)" - - document.querySelector("#hover-card-backdrop").style.backgroundImage = "var(--Hover-card-backdrop)" - } - catch {} -}, 100) - -window.addEventListener('load', () => { - utils.addCss("//plugins/ElainaV2/assets/Css/Addon-Css/Avatar.css") - utils.subscribe_endpoint("/lol-gameflow/v1/gameflow-phase", changeAvatar1) -}) -} \ No newline at end of file diff --git a/ElainaV2/resources/Button+Filter.js b/ElainaV2/resources/Button+Filter.js deleted file mode 100644 index a4806f7..0000000 --- a/ElainaV2/resources/Button+Filter.js +++ /dev/null @@ -1,167 +0,0 @@ -import homepage from './CreateHomepage' -import homepagebutton from './Homepagebuttons' -import watermark from './Watermark' - -import utils from './_utilselaina' -import data from '../configs/ElainaV2_config.json' -let default_settings = data - -//___________________________________________________________________________// -var nodeRemovedEvent = function (event) { - if (event.target.classList && event.target.classList.contains("lol-loading-screen-container")) { - let elainaBg = document.getElementById("elaina-bg"); - let viewportRoot = document.getElementById("rcp-fe-viewport-root") - - if (!elainaBg || !viewportRoot) { - return; - } - viewportRoot.style.filter = "none" - elainaBg.style.filter = "brightness(0.7) saturate(0.8)" - - document.removeEventListener("DOMNodeRemoved", nodeRemovedEvent); - } -}; -document.addEventListener("DOMNodeRemoved", nodeRemovedEvent); -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -homepagebutton.apply_default_background() - -let previous_page; -let patcher_go_to_default_home_page = true; -let wallpapers = default_settings["wallpaper_list"]; - -let pageChangeMutation = (node) => { - let pagename; - let elaina_bg_elem = document.getElementById("elaina-bg") - let brightness_modifiers = ["rcp-fe-lol-champ-select", "rcp-fe-lol-store", "rcp-fe-lol-collections", "rcp-fe-lol-profiles-main", - "rcp-fe-lol-parties", "rcp-fe-lol-loot", "rcp-fe-lol-clash-full"] - pagename = node.getAttribute("data-screen-name") - console.log(pagename) - - - if (pagename == "rcp-fe-lol-home-main") { - if (!document.getElementsByClassName("webm-bottom-buttons-container").length) { - homepagebutton.create_webm_buttons() - watermark.ElainaTrigger() - } - homepage.add_elaina_home_page() - homepage.add_elaina_home_navbar() - homepage.go_to_default_home_page() - if (previous_page == "rcp-fe-lol-parties" ){ - homepage.patch_default_home_page() - } - } - else if (pagename != "rcp-fe-lol-navigation-screen" && pagename != "window-controls" && pagename != "rcp-fe-lol-home" && pagename != "social") { - if (document.getElementsByClassName("webm-bottom-buttons-container").length) { - homepagebutton.Delbuttons() - watermark.DelElainaTrigger() - } - } - if (pagename == "social") { - if (patcher_go_to_default_home_page){ - homepage.go_to_default_home_page() - patcher_go_to_default_home_page = false - } - } - if (pagename == "rcp-fe-lol-uikit-full-page-modal-controller") { - return; - } - else if (pagename == "rcp-fe-lol-yourshop") { - elaina_bg_elem.style.filter = 'blur(3px) brightness(0.4) saturate(1.5)'; - } - if (pagename == "rcp-fe-lol-champ-select") { - elaina_bg_elem.style.filter = 'blur(3px) brightness(0.4) saturate(1.5)'; - } - else if (previous_page == "rcp-fe-lol-champ-select" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-clash-full") { - elaina_bg_elem.style.filter = 'blur(10px) brightness(0.2)'; - } - else if (previous_page == "rcp-fe-lol-clash-full" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-loot") { - elaina_bg_elem.style.filter = 'brightness(0.3)'; - } - else if (previous_page == "rcp-fe-lol-loot" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-store") { - elaina_bg_elem.style.filter = 'brightness(0.2)'; - } - else if (previous_page == "rcp-fe-lol-store" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-collections") { - elaina_bg_elem.style.filter = 'brightness(0.2)'; - } - else if (previous_page == "rcp-fe-lol-collections" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-profiles-main") { - elaina_bg_elem.style.filter = 'brightness(0.3)'[wallpapers[0]]; - } - else if (previous_page == "rcp-fe-lol-profiles-main") { - if (brightness_modifiers.indexOf(pagename) == -1) - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'; - } - if (pagename == "rcp-fe-lol-parties") { - elaina_bg_elem.style.filter = 'brightness(0.4) blur(6px)'[wallpapers[0]]; - } - else if (previous_page == "rcp-fe-lol-parties" && brightness_modifiers.indexOf(pagename) == -1) { - elaina_bg_elem.style.filter = 'brightness(0.7) saturate(0.8)'[wallpapers[0]]; - } - if (previous_page != pagename) - previous_page = pagename -} - -window.addEventListener('load', () => { - utils.mutationObserverAddCallback(pageChangeMutation, ["screen-root"]) -}) -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -window.addEventListener('load', () => { - const video = document.createElement('video'); - video.id = 'elaina-bg'; - video.autoplay = true; - video.loop = true; - video.src = default_settings["default_wallpaper_src"]; - video.volume = default_settings["video_sound_volume"]; - - const audio = document.createElement("audio"); - audio.autoplay = true; - audio.loop = true; - audio.src = default_settings["audio_src"]; - audio.id = 'bg-audio'; - audio.load(); - audio.addEventListener("load", function() { - audio.play() - }, true); - - document.querySelector("body").prepend(video) - document.querySelector("body").prepend(audio) - - homepagebutton.elaina_play_pause() - - utils.subscribe_endpoint('/lol-gameflow/v1/gameflow-phase', (message) => { - let phase = JSON.parse(message["data"])[2]["data"] - - if (phase == "GameStart" || phase == "InProgress") { - document.getElementById("elaina-bg").style.filter = 'blur(10px) brightness(0.4) saturate(1.5)'; - document.getElementById("elaina-bg").pause() - document.getElementById("bg-audio").pause() - } - else { - homepagebutton.elaina_play_pause() - homepagebutton.audio_play_pause() - } - }) -}) -//___________________________________________________________________________// \ No newline at end of file diff --git a/ElainaV2/resources/ChangeClientContents.js b/ElainaV2/resources/ChangeClientContents.js deleted file mode 100644 index 2ab2a44..0000000 --- a/ElainaV2/resources/ChangeClientContents.js +++ /dev/null @@ -1,105 +0,0 @@ -import utils from './_utilselaina' - -//___________________________________________________________________________// -let updateLobbyRegaliaBanner = async message => { - let phase = JSON.parse(message["data"])[2]["data"]; - - if (phase == "Lobby") { - window.setInterval(() => { - try { - let base = document.querySelector("lol-regalia-parties-v2-element.regalia-loaded").shadowRoot.querySelector(".regalia-parties-v2-banner-backdrop.regalia-banner-loaded") - - base.shadowRoot.querySelector(".regalia-banner-asset-static-image").style.filter = "sepia(1) brightness(3.5) opacity(0.4)" - base.shadowRoot.querySelector(".regalia-banner-state-machine").shadowRoot.querySelector(".regalia-banner-intro.regalia-banner-video").style.filter = "grayscale(1) saturate(0) brightness(0.5)" - } - catch {} - }, 200) - } -} - -window.addEventListener('load', () => { - utils.subscribe_endpoint("/lol-gameflow/v1/gameflow-phase", updateLobbyRegaliaBanner) -}) -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -window.setInterval(() => { - try { - document.getElementsByClassName("lol-settings-container")[0].style.backgroundColor = "transparent"; - document.querySelector(".lol-settings-container"). - shadowRoot.querySelector("div").style.background = "transparent"; - } - catch {} - - try { - document.querySelector("lol-uikit-full-page-backdrop > lol-uikit-dialog-frame > div > div.challenges-identity-customizer-contents > div.challenges-identity-customizer-left-container > div > lol-regalia-identity-customizer-element"). - shadowRoot.querySelector("div > lol-regalia-banner-v2-element").remove() - } - catch {} - - try { - document.querySelector("lol-uikit-full-page-backdrop > lol-uikit-dialog-frame > div").style.backgroundColor = "transparent"; - document.querySelector("lol-uikit-full-page-backdrop > lol-uikit-dialog-frame"). - shadowRoot.querySelector("div").style.background = "transparent"; - } - catch {} - try { - document.querySelector("#lol-uikit-layer-manager-wrapper > div.modal > div > lol-uikit-dialog-frame"). - shadowRoot.querySelector("div").style.background = "transparent" - } - catch {} -}, 100) -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -let ChangeContents = (node) => { - let ranked_observer; - let previous_page; - let pagename; - pagename = node.getAttribute("data-screen-name") - - if (pagename == "rcp-fe-lol-profiles-main") { - let rankedNode = document.querySelector('[section-id="profile_subsection_leagues"]') - - window.setInterval(() => { - try { - document.querySelector("div > lol-regalia-profile-v2-element").shadowRoot.querySelector("div > lol-regalia-banner-v2-element").shadowRoot.querySelector("div > uikit-state-machine > div:nth-child(2) > img").remove() - document.querySelector("div > div.summoner-xp-radial").remove() - } - catch {} - }, 100) - - if (!ranked_observer && rankedNode) { - ranked_observer = new MutationObserver(mutations => { - mutations.forEach(mutation => { - if (mutation.target.classList.contains('visible')) { - let tmpInterval = window.setInterval(() => { - try { - document.querySelector("div.smoke-background-container > lol-uikit-parallax-background").shadowRoot.querySelector(".parallax-layer-container").style.backgroundImage = '' - window.clearInterval(tmpInterval) - } - catch {} - }, 500) - } - }); - }); - ranked_observer.observe(document.querySelector('[section-id="profile_subsection_leagues"]'), { attributes: true, childList: false, subtree: false }); - } - } - else if (previous_page == "rcp-fe-lol-profiles-main") { - if (ranked_observer) - ranked_observer.disconnect() - ranked_observer = undefined - } - if (previous_page != pagename) - previous_page = pagename -} - -window.addEventListener('load', () => { - utils.mutationObserverAddCallback(ChangeContents, ["screen-root"]) -}) -//___________________________________________________________________________// \ No newline at end of file diff --git a/ElainaV2/resources/CreateHomepage.js b/ElainaV2/resources/CreateHomepage.js deleted file mode 100644 index 7a3476c..0000000 --- a/ElainaV2/resources/CreateHomepage.js +++ /dev/null @@ -1,90 +0,0 @@ -import data from '../configs/ElainaV2_config.json' -let default_settings = data - - - -//___________________________________________________________________________// -function create_element(tagName, className, content) { - const el = document.createElement(tagName); - el.className = className; - if (content) { - el.innerHTML = content; - } - return el; -}; - -function go_to_default_home_page() { - if (default_settings["default_home_page"]) { - document.querySelector(`lol-uikit-navigation-item[item-id='${default_settings["default_home_page"]}']`).click() - } -} - -function add_elaina_home_page() { - let lol_home = document.querySelector(".rcp-fe-lol-home > lol-uikit-section-controller") - - if (lol_home) { - if (!lol_home.querySelector("[section-id='elaina-home']")) { - let elaina_home = create_element("lol-uikit-section", "") - let div = create_element("div", "wrapper") - - div.id = "elaina-home" - elaina_home.setAttribute("section-id", "elaina-home") - elaina_home.append(div) - lol_home.prepend(elaina_home) - } - } -} - -function add_elaina_home_navbar() { - let navbar = document.querySelector(".rcp-fe-lol-home > lol-uikit-navigation-bar") - - if (navbar) { - if (!navbar.querySelector("[item-id='elaina-home']")) { - let elaina_home_navbar_item = create_element("lol-uikit-navigation-item", "") - - elaina_home_navbar_item.setAttribute("item-id", "elaina-home") - elaina_home_navbar_item.setAttribute("priority", 1) - - -//___________________________________________________________________________// - if (document.querySelector("html").lang == "vi-VN") { - elaina_home_navbar_item.textContent = "Trang chủ" - } - else if (document.querySelector("html").lang == "ja-JP") { - elaina_home_navbar_item.textContent = "ホームページ" - } - else { - elaina_home_navbar_item.textContent = "Home" - } -//___________________________________________________________________________// - - - navbar.prepend(elaina_home_navbar_item) - } - } -} - -function patch_default_home_page(){ - let loop = 0 - let intervalId = window.setInterval(() => { - if (loop >= 5) { - window.clearInterval(intervalId) - } - go_to_default_home_page() - loop += 1 - }, 300) -} -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -let homepage = { - add_elaina_home_navbar: add_elaina_home_navbar, - add_elaina_home_page: add_elaina_home_page, - patch_default_home_page: patch_default_home_page, - go_to_default_home_page: go_to_default_home_page -} -//___________________________________________________________________________// - -export default homepage \ No newline at end of file diff --git a/ElainaV2/resources/Dodge-button.js b/ElainaV2/resources/Dodge-button.js deleted file mode 100644 index 400c1aa..0000000 --- a/ElainaV2/resources/Dodge-button.js +++ /dev/null @@ -1,69 +0,0 @@ -async function exitClient(){ - await fetch("/process-control/v1/process/quit", - {method:"POST"} - ) -} - -async function dodgeQueue(){ - await fetch('/lol-login/v1/session/invoke?destination=lcdsServiceProxy&method=call&args=["","teambuilder-draft","quitV2",""]', - {body:'["","teambuilder-draft","quitV2",""]',method:"POST"} - ) -} - -function generateDodgeAndExitButton(t){ - const e=document.createElement("div"), - o=document.createElement("div"), - i=document.createElement("div"); - - o.setAttribute("class","dodge-button-container"), - o.setAttribute("style","position: absolute;right: 0px;bottom: 57px;display: flex;align-items: flex-end;"), - - e.setAttribute("class","quit-button ember-view"), - e.setAttribute("onclick","window.dodgeQueue()"), - e.setAttribute("id","dodgeButton"), - - i.setAttribute("class","quit-button ember-view"), - i.setAttribute("onclick","window.exitClient()"), - i.setAttribute("id","exitButton"); - - const n=document.createElement("lol-uikit-flat-button"), - d=document.createElement("lol-uikit-flat-button"); - - -//___________________________________________________________________________// - if (document.querySelector("html").lang == "vi-VN") { - d.innerHTML="Hủy"; n.innerHTML="Thoát" - } - else if (document.querySelector("html").lang == "ja-JP") { - d.innerHTML="やめる"; n.innerHTML="出口" - } - else { - d.innerHTML="Dodge"; n.innerHTML="Exit" - } -//___________________________________________________________________________// - - - e.appendChild(d), - i.appendChild(n), - o.appendChild(e), - o.appendChild(i), - - console.log(o), - - t.parentNode.insertBefore(o,t) -} - -import utils from './_utilselaina'; - -window.exitClient=exitClient, -window.dodgeQueue=dodgeQueue; - -let addDodgeAndExitButtonObserver=t=>{ - "ChampSelect"==utils.phase&&document.querySelector(".bottom-right-buttons")&&!document.querySelector(".dodge-button-container")&&generateDodgeAndExitButton( - document.querySelector(".bottom-right-buttons") - ) -}; - -window.addEventListener("load",()=>{ - utils.routineAddCallback(addDodgeAndExitButtonObserver,["bottom-right-buttons"]) -}); \ No newline at end of file diff --git a/ElainaV2/resources/HideChampsArt.js b/ElainaV2/resources/HideChampsArt.js deleted file mode 100644 index d44b32d..0000000 --- a/ElainaV2/resources/HideChampsArt.js +++ /dev/null @@ -1,10 +0,0 @@ -import utils from './_utilselaina' -import data from '../configs/ElainaV2_config.json' - -let HideChampsArt = data["Hide-Champions-Splash-Art"] - -if (HideChampsArt) { - window.addEventListener('load', () => { - utils.addCss("//plugins/ElainaV2/assets/Css/Addon-Css/Hide-Champs-Splash-Art.css") - }) -} \ No newline at end of file diff --git a/ElainaV2/resources/Hide_friendlist.js b/ElainaV2/resources/Hide_friendlist.js deleted file mode 100644 index 322caf4..0000000 --- a/ElainaV2/resources/Hide_friendlist.js +++ /dev/null @@ -1,3 +0,0 @@ -(()=>{"use strict";function t(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={id:r,exports:{}};return e[r](i,i.exports,t),i.exports}var e={723:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([t.id,".q2yQU5UfQcRPItl3Jwrw{display:none}.f57AWuFjwzhT5zV7cujr,.mPZ4NPDDuU94M8S7ePy4{display:block;cursor:pointer;width:inherit;height:inherit;-webkit-mask:url(https://img.icons8.com/material-outlined/24/null/visible--v1.png) no-repeat center;background-color:#c8aa6e;-webkit-mask-size:18px}.mPZ4NPDDuU94M8S7ePy4{-webkit-mask:url(https://img.icons8.com/material-outlined/24/null/hide.png) no-repeat center;-webkit-mask-size:18px}",""]),a.locals={hidden:"q2yQU5UfQcRPItl3Jwrw",icon:"f57AWuFjwzhT5zV7cujr",iconHidden:"mPZ4NPDDuU94M8S7ePy4"};const s=a},869:(t,e,n)=>{n.d(e,{Z:()=>s});var r=n(81),o=n.n(r),i=n(645),a=n.n(i)()(o());a.push([t.id,".B7xMZxPLr2xOc1UqnA6g{position:absolute;top:-80px}",""]),a.locals={container:"B7xMZxPLr2xOc1UqnA6g"};const s=a},645:t=>{t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",r=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),r&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),r&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,r,o,i){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(r)for(var s=0;s0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=i),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),o&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=o):l[4]="".concat(o)),e.push(l))}},e}},81:t=>{t.exports=function(t){return t[1]}},379:t=>{function e(t){for(var e=-1,n=0;n{t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},565:(t,e,n)=>{t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},795:t=>{t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var o=void 0!==n.layer;o&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,o&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var i=n.sourceMap;i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleTagTransform(r,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},589:t=>{t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}}},n={};t.n=(e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return t.d(n,{a:n}),n}),t.d=((e,n)=>{for(var r in n)t.o(n,r)&&!t.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:n[r]})}),t.o=((t,e)=>Object.prototype.hasOwnProperty.call(t,e)),t.nc=void 0,(()=>{function e(t,e){for(var n in e)t[n]=e[n];return t}function n(t){var e=t.parentNode;e&&e.removeChild(t)}function r(t,e,n){var r,i,a,s={};for(a in e)"key"==a?r=e[a]:"ref"==a?i=e[a]:s[a]=e[a];if(arguments.length>2&&(s.children=arguments.length>3?jt.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return o(t,s,r,i,null)}function o(t,e,n,r,o){var i={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Rt:o};return null==o&&null!=Ct.vnode&&Ct.vnode(i),i}function i(t){return t.children}function a(t,e,n){"-"===e[0]?t.setProperty(e,null==n?"":n):t[e]=null==n?"":"number"!=typeof n||qt.test(e)?n:n+"px"}function s(t,e,n,r,o){var i;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||a(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||a(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])i=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+i]=n,n?r||t.addEventListener(e,i?u:c,i):t.removeEventListener(e,i?u:c,i);else if("dangerouslySetInnerHTML"!==e){if(o)e=e.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==e&&"height"!==e&&"href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null==n||!1===n&&-1==e.indexOf("-")?t.removeAttribute(e):t.setAttribute(e,n))}}function c(t){Ut=!0;try{return this.l[t.type+!1](Ct.event?Ct.event(t):t)}finally{Ut=!1}}function u(t){Ut=!0;try{return this.l[t.type+!0](Ct.event?Ct.event(t):t)}finally{Ut=!1}}function l(t,e){this.props=t,this.context=e}function f(t,e){if(null==e)return t.__?f(t.__,t.__.__k.indexOf(t)+1):null;for(var n;en&&Ft.sort(function(t,e){return t.__v.__b-e.__v.__b}));_.__r=0}function y(t,e,n,r,a,s,c,u,l,h){var p,d,_,y,m,E,x,k=r&&r.__k||Ht,L=k.length;for(n.__k=[],p=0;p0?o(y.type,y.props,y.key,y.ref?y.ref:null,y.__v):y)){if(y.__=n,y.__b=n.__b+1,null===(_=k[p])||_&&y.key==_.key&&y.type===_.type)k[p]=void 0;else for(d=0;d=0;e--)if((n=t.__k[e])&&(r=b(n)))return r;return null}function w(t,n,r,o,a,s,c,u,f){var h,p,d,_,v,m,g,b,w,E,O,S,L,A,P,N=n.type;if(void 0!==n.constructor)return null;null!=r.__h&&(f=r.__h,u=n.__e=r.__e,n.__h=null,s=[u]),(h=Ct.__b)&&h(n);try{t:if("function"==typeof N){if(b=n.props,w=(h=N.contextType)&&o[h.__c],E=h?w?w.props.value:h.__:o,r.__c?g=(p=n.__c=r.__c).__=p.__E:("prototype"in N&&N.prototype.render?n.__c=p=new N(b,E):(n.__c=p=new l(b,E),p.constructor=N,p.render=k),w&&w.sub(p),p.props=b,p.state||(p.state={}),p.context=E,p.__n=o,d=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=N.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=e({},p.__s)),e(p.__s,N.getDerivedStateFromProps(b,p.__s))),_=p.props,v=p.state,p.__v=n,d)null==N.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==N.getDerivedStateFromProps&&b!==_&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(b,E),!p.__e&&null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(b,p.__s,E)||n.__v===r.__v){for(n.__v!==r.__v&&(p.props=b,p.state=p.__s,p.__d=!1),n.__e=r.__e,n.__k=r.__k,n.__k.forEach(function(t){t&&(t.__=n)}),O=0;O=n.__.length&&n.__.push({__V:$t}),n.__[t]}function P(t){return Jt=1,function(t,e,n){var r=A(Wt++,2);if(r.t=t,!r.__c&&(r.__=[n?n(e):U(void 0,e),function(t){var e=r.__N?r.__N[0]:r.__[0],n=r.t(e,t);e!==n&&(r.__N=[n,r.__[1]],r.__c.setState({}))}],r.__c=zt,!zt.u)){zt.u=!0;var o=zt.shouldComponentUpdate;zt.shouldComponentUpdate=function(t,e,n){if(!r.__c.__H)return!0;var i=r.__c.__H.__.filter(function(t){return t.__c});if(i.every(function(t){return!t.__N}))return!o||o.call(this,t,e,n);var a=!1;return i.forEach(function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(a=!0)}}),!(!a&&r.__c.props===t)&&(!o||o.call(this,t,e,n))}}return r.__N||r.__}(U,t)}function N(t,e){var n=A(Wt++,3);!Ct.__s&&function(t,e){return!t||t.length!==e.length||e.some(function(e,n){return e!==t[n]})}(n.__H,e)&&(n.__=t,n.i=e,zt.__H.__h.push(n))}function T(){for(var t;t=Zt.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(C),t.__H.__h.forEach(R),t.__H.__h=[]}catch(e){t.__H.__h=[],Ct.__e(e,t.__v)}}function j(t){var e,n=function(){clearTimeout(r),ee&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);ee&&(e=requestAnimationFrame(n))}function C(t){var e=zt,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),zt=e}function R(t){var e=zt;t.__c=t.__(),zt=e}function U(t,e){return"function"==typeof e?e(t):e}function F(t,e,n,r,o,i){var a,s,c={};for(s in e)"ref"==s?a=e[s]:c[s]=e[s];var u={type:t,props:c,key:n,ref:a,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:--oe,__source:o,__self:i};if("function"==typeof t&&(a=t.defaultProps))for(s in a)void 0===c[s]&&(c[s]=a[s]);return Ct.vnode&&Ct.vnode(u),u}function D(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return B(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n>>1,1),e.i.removeChild(t)}}),L(r(V,{context:e.context},t.__v),e.l)):e.l&&e.componentWillUnmount()}function Z(t,e){var n=r(J,{__v:t,i:e});return n.containerInfo=e,n}function $(){}function K(){return this.cancelBubble}function Q(){return this.defaultPrevented}function Y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0;)if(r=n[o],e===r.toLowerCase())return r;return null}function nt(t,e,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=t,this.name="AxiosError",e&&(this.code=e),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}function rt(t){return dn.isPlainObject(t)||dn.isArray(t)}function ot(t){return dn.endsWith(t,"[]")?t.slice(0,-2):t}function it(t,e,n){return t?t.concat(e).map(function(t,e){return t=ot(t),!n&&e?"["+t+"]":t}).join(n?".":""):e}function at(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(t){return e[t]})}function st(t,e){this._pairs=[],t&&gn(t,this,e)}function ct(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ut(t,e,n){if(!e)return t;const r=n&&n.encode||ct,o=n&&n.serialize;let i;if(i=o?o(e,n):dn.isURLSearchParams(e)?e.toString():new wn(e,n).toString(r),i){const e=t.indexOf("#");-1!==e&&(t=t.slice(0,e)),t+=(-1===t.indexOf("?")?"?":"&")+i}return t}function lt(t){return t&&String(t).trim().toLowerCase()}function ft(t){return!1===t||null==t?t:dn.isArray(t)?t.map(ft):String(t)}function ht(t,e,n,r){return dn.isFunction(r)?r.call(this,e,n):dn.isString(e)?dn.isString(r)?-1!==e.indexOf(r):dn.isRegExp(r)?r.test(e):void 0:void 0}function pt(t,e){const n=this||jn,r=e||n,o=Fn.from(r.headers);let i=r.data;return dn.forEach(t,function(t){i=t.call(n,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function dt(t){return!(!t||!t.__CANCEL__)}function _t(t,e,n){vn.call(this,null==t?"canceled":t,vn.ERR_CANCELED,e,n),this.name="CanceledError"}function yt(t,e){return t&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)?function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}(t,e):e}function vt(t,e){let n=0;const r=Mn(50,250);return o=>{const i=o.loaded,a=o.lengthComputable?o.total:void 0,s=i-n,c=r(s);n=i;const u={loaded:i,total:a,progress:a?i/a:void 0,bytes:s,rate:c||void 0,estimated:c&&a&&i<=a?(a-i)/c:void 0,event:o};u[e?"download":"upload"]=!0,t(u)}}function mt(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Dn(null,t)}function gt(t){return mt(t),t.headers=Fn.from(t.headers),t.data=pt.call(t,t.transformRequest),-1!==["post","put","patch"].indexOf(t.method)&&t.headers.setContentType("application/x-www-form-urlencoded",!1),qn.getAdapter(t.adapter||jn.adapter)(t).then(function(e){return mt(t),e.data=pt.call(t,t.transformResponse,e),e.headers=Fn.from(e.headers),e},function(e){return dt(e)||(mt(t),e&&e.response&&(e.response.data=pt.call(t,t.transformResponse,e.response),e.response.headers=Fn.from(e.response.headers))),Promise.reject(e)})}function bt(t,e){function n(t,e,n){return dn.isPlainObject(t)&&dn.isPlainObject(e)?dn.merge.call({caseless:n},t,e):dn.isPlainObject(e)?dn.merge({},e):dn.isArray(e)?e.slice():e}function r(t,e,r){return dn.isUndefined(e)?dn.isUndefined(t)?void 0:n(void 0,t,r):n(t,e,r)}function o(t,e){if(!dn.isUndefined(e))return n(void 0,e)}function i(t,e){return dn.isUndefined(e)?dn.isUndefined(t)?void 0:n(void 0,t):n(void 0,e)}function a(r,o,i){return i in e?n(r,o):i in t?n(void 0,r):void 0}e=e||{};const s={},c={url:o,method:o,data:o,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:a,headers:(t,e)=>r(Wn(t),Wn(e),!0)};return dn.forEach(Object.keys(t).concat(Object.keys(e)),function(n){const o=c[n]||r,i=o(t[n],e[n],n);dn.isUndefined(i)&&o!==a||(s[n]=i)}),s}function wt(t){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(t)}function Et(){function t(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function e(t,e,n,o){var i=e&&e.prototype instanceof r?e:r,a=Object.create(i.prototype),s=new h(o||[]);return m(a,"_invoke",{value:c(t,n,s)}),a}function n(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function r(){}function o(){}function i(){}function a(e){["next","throw","return"].forEach(function(n){t(e,n,function(t){return this._invoke(n,t)})})}function s(t,e){function r(o,i,a,s){var c=n(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==wt(l)&&v.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,s)},function(t){r("throw",t,a,s)}):e.resolve(l).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,s)})}s(c.arg)}var o;m(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(i,i):i()}})}function c(t,e,r){var o="suspendedStart";return function(i,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=u(s,r);if(c){if(c===x)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var l=n(t,e,r);if("normal"===l.type){if(o=r.done?"completed":"suspendedYield",l.arg===x)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o="completed",r.method="throw",r.arg=l.arg)}}}function u(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,u(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),x;var i=n(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function p(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),x}},_}function xt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function Ot(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){function i(t){xt(s,r,o,i,a,"next",t)}function a(t){xt(s,r,o,i,a,"throw",t)}var s=t.apply(e,n);i(void 0)})}}function St(t){return St="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},St(t)}function kt(){function t(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function e(t,e,n,o){var i=e&&e.prototype instanceof r?e:r,a=Object.create(i.prototype),s=new h(o||[]);return m(a,"_invoke",{value:c(t,n,s)}),a}function n(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function r(){}function o(){}function i(){}function a(e){["next","throw","return"].forEach(function(n){t(e,n,function(t){return this._invoke(n,t)})})}function s(t,e){function r(o,i,a,s){var c=n(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==St(l)&&v.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,s)},function(t){r("throw",t,a,s)}):e.resolve(l).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,s)})}s(c.arg)}var o;m(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(i,i):i()}})}function c(t,e,r){var o="suspendedStart";return function(i,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=u(s,r);if(c){if(c===x)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var l=n(t,e,r);if("normal"===l.type){if(o=r.done?"completed":"suspendedYield",l.arg===x)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o="completed",r.method="throw",r.arg=l.arg)}}}function u(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,u(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),x;var i=n(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function p(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),x}},_}function Lt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function At(t){return At="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(t)}function Pt(){function t(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}function e(t,e,n,o){var i=e&&e.prototype instanceof r?e:r,a=Object.create(i.prototype),s=new h(o||[]);return m(a,"_invoke",{value:c(t,n,s)}),a}function n(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function r(){}function o(){}function i(){}function a(e){["next","throw","return"].forEach(function(n){t(e,n,function(t){return this._invoke(n,t)})})}function s(t,e){function r(o,i,a,s){var c=n(t[o],t,i);if("throw"!==c.type){var u=c.arg,l=u.value;return l&&"object"==At(l)&&v.call(l,"__await")?e.resolve(l.__await).then(function(t){r("next",t,a,s)},function(t){r("throw",t,a,s)}):e.resolve(l).then(function(t){u.value=t,a(u)},function(t){return r("throw",t,a,s)})}s(c.arg)}var o;m(this,"_invoke",{value:function(t,n){function i(){return new e(function(e,o){r(t,n,e,o)})}return o=o?o.then(i,i):i()}})}function c(t,e,r){var o="suspendedStart";return function(i,a){if("executing"===o)throw new Error("Generator is already running");if("completed"===o){if("throw"===i)throw a;return{value:void 0,done:!0}}for(r.method=i,r.arg=a;;){var s=r.delegate;if(s){var c=u(s,r);if(c){if(c===x)continue;return c}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===o)throw o="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o="executing";var l=n(t,e,r);if("normal"===l.type){if(o=r.done?"completed":"suspendedYield",l.arg===x)continue;return{value:l.arg,done:r.done}}"throw"===l.type&&(o="completed",r.method="throw",r.arg=l.arg)}}}function u(t,e){var r=e.method,o=t.iterator[r];if(void 0===o)return e.delegate=null,"throw"===r&&t.iterator.return&&(e.method="return",e.arg=void 0,u(t,e),"throw"===e.method)||"return"!==r&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+r+"' method")),x;var i=n(o,t.iterator,e.arg);if("throw"===i.type)return e.method="throw",e.arg=i.arg,e.delegate=null,x;var a=i.arg;return a?a.done?(e[t.resultName]=a.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,x):a:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,x)}function l(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function f(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function h(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(l,this),this.reset(!0)}function p(t){if(t){var e=t[b];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var o=this.tryEntries[r],i=o.completion;if("root"===o.tryLoc)return e("end");if(o.tryLoc<=this.prev){var a=v.call(o,"catchLoc"),s=v.call(o,"finallyLoc");if(a&&s){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&v.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),f(n),x}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;f(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:p(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),x}},_}function Nt(t,e,n,r,o,i,a){try{var s=t[i](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(r,o)}function Tt(t){return function(){var e=this,n=arguments;return new Promise(function(r,o){function i(t){Nt(s,r,o,i,a,"next",t)}function a(t){Nt(s,r,o,i,a,"throw",t)}var s=t.apply(e,n);i(void 0)})}}var jt,Ct,Rt,Ut,Ft,Dt,Bt,It,Mt={},Ht=[],qt=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;jt=Ht.slice,Ct={__e:function(t,e,n,r){for(var o,i,a;e=e.__;)if((o=e.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(t)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(t,r||{}),a=o.__d),a)return o.__E=o}catch(e){t=e}throw t}},Rt=0,Ut=!1,l.prototype.setState=function(t,n){var r;r=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=e({},this.state),"function"==typeof t&&(t=t(e({},r),this.props)),t&&e(r,t),null!=t&&this.__v&&(n&&this._sb.push(n),d(this))},l.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),d(this))},l.prototype.render=i,Ft=[],Bt="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,_.__r=0,It=0;var Wt,zt,Gt,Vt,Jt=0,Zt=[],$t=[],Kt=Ct.__b,Qt=Ct.__r,Yt=Ct.diffed,Xt=Ct.__c,te=Ct.unmount;Ct.__b=function(t){zt=null,Kt&&Kt(t)},Ct.__r=function(t){Qt&&Qt(t),Wt=0;var e=(zt=t.__c).__H;e&&(Gt===zt?(e.__h=[],zt.__h=[],e.__.forEach(function(t){t.__N&&(t.__=t.__N),t.__V=$t,t.__N=t.i=void 0})):(e.__h.forEach(C),e.__h.forEach(R),e.__h=[])),Gt=zt},Ct.diffed=function(t){Yt&&Yt(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==Zt.push(e)&&Vt===Ct.requestAnimationFrame||((Vt=Ct.requestAnimationFrame)||j)(T)),e.__H.__.forEach(function(t){t.i&&(t.__H=t.i),t.__V!==$t&&(t.__=t.__V),t.i=void 0,t.__V=$t})),Gt=zt=null},Ct.__c=function(t,e){e.some(function(t){try{t.__h.forEach(C),t.__h=t.__h.filter(function(t){return!t.__||R(t)})}catch(n){e.some(function(t){t.__h&&(t.__h=[])}),e=[],Ct.__e(n,t.__v)}}),Xt&&Xt(t,e)},Ct.unmount=function(t){te&&te(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach(function(t){try{C(t)}catch(t){e=t}}),n.__H=void 0,e&&Ct.__e(e,n.__v))};var ee="function"==typeof requestAnimationFrame,ne=function(t,e){return localStorage.setItem(t,JSON.stringify(e))},re=function(t){return"true"===localStorage.getItem(t)},oe=0,ie=function(t,e){var n={__c:e="__cC"+It++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(function(t){t.__e=!0,d(t)})},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}({}),ae=function(t){var e,n,r=t.children,o=D(P(re("autoAccept")),2),i=o[0],a=o[1],s=D(P(re("autoClaimEventTokens")),2),c=s[0],u=s[1],l=D(P(null!==(e=null===(n=localStorage.getItem("autoPickChampionId"))?null:parseInt(n,10))&&void 0!==e?e:-1),2),f=l[0],h=l[1];return N(function(){ne("autoAccept",i),ne("autoClaimEventTokens",c),ne("autoPickChampionId",f)},[i,c,f]),F(ie.Provider,{value:{autoAccept:i,setAutoAccept:a,autoClaimEventTokens:c,setAutoClaimEventTokens:u,autoPickChampionId:f,setAutoPickChampionId:h},children:r})};(M.prototype=new l).isPureReactComponent=!0,M.prototype.shouldComponentUpdate=function(t,e){return I(this.props,t)||I(this.state,e)};var se=Ct.__b;Ct.__b=function(t){t.type&&t.type.__f&&t.ref&&(t.props.ref=t.ref,t.ref=null),se&&se(t)},"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var ce=Ct.__e;Ct.__e=function(t,e,n,r){if(t.then)for(var o,i=e;i=i.__;)if((o=i.__c)&&o.__c)return null==e.__e&&(e.__e=n.__e,e.__k=n.__k),o.__c(t,e);ce(t,e,n,r)};var ue=Ct.unmount;Ct.unmount=function(t){var e=t.__c;e&&e.__R&&e.__R(),e&&!0===t.__h&&(t.type=null),ue&&ue(t)},(W.prototype=new l).__c=function(t,e){var n=e.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=z(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var t=r.state.__a;r.__v.__k[0]=q(t,t.__c.__P,t.__c.__O)}var e;for(r.setState({__a:r.__b=null});e=r.t.pop();)e.forceUpdate()}},c=!0===e.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),t.then(a,a)},W.prototype.componentWillUnmount=function(){this.t=[]},W.prototype.render=function(t,e){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),o=this.__v.__k[0].__c;this.__v.__k[0]=H(this.__b,n,o.__O=o.__P)}this.__b=null}var a=e.__a&&r(i,null,t.fallback);return a&&(a.__h=null),[r(i,null,e.__a?null:t.children),a]};var le=function(t,e,n){if(++n[1]===n[0]&&t.o.delete(e),t.props.revealOrder&&("t"!==t.props.revealOrder[0]||!t.o.size))for(n=t.u;n;){for(;n.length>3;)n.pop()();if(n[1]document.head.appendChild(t))},Ne.domAPI=Ee(),Ne.insertStyleElement=ke(),be()(Pe.Z,Ne);const Te=Pe.Z&&Pe.Z.locals?Pe.Z.locals:void 0;var je=function(){var t,e,n,r=(e=P(!1),n=2,function(t){if(Array.isArray(t))return t}(e)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,i,a,s=[],c=!0,u=!1;try{if(i=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=i.call(n)).done)&&(s.push(r.value),s.length!==e);c=!0);}catch(t){u=!0,o=t}finally{try{if(!c&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,n)||function(t,e){if(t){if("string"==typeof t)return Y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Y(t,e):void 0}}(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),o=r[0],a=r[1];return N(function(){var t=document.querySelector(".lol-social-lower-pane-container > lol-social-roster > lol-uikit-scrollable");o?null==t||t.classList.add(Te.hidden):null==t||t.classList.remove(Te.hidden)},[o]),F(i,{children:Z(F("span",{className:"action-bar-button ember-view",onClick:function(){a(function(t){return!t})},children:F("div",{className:o?Te.iconHidden:Te.icon})}),null!==(t=document.querySelector(".actions-bar .buttons"))&&void 0!==t?t:document.head)})};je.on=".lol-social-lower-pane-container";const Ce=je,Re=function(){return F(ae,{children:F(Ce,{})})};var Ue=function(){return Z(F("link",{href:"//assets/styles/MinimalistTheme.global.css",rel:"stylesheet"}),document.body)};Ue.on=".main-navigation-menu-item";const Fe=Ue,{toString:De}=Object.prototype,{getPrototypeOf:Be}=Object,Ie=(Me=Object.create(null),t=>{const e=De.call(t);return Me[e]||(Me[e]=e.slice(8,-1).toLowerCase())});var Me;const He=t=>(t=t.toLowerCase(),e=>Ie(e)===t),qe=t=>e=>typeof e===t,{isArray:We}=Array,ze=qe("undefined"),Ge=He("ArrayBuffer"),Ve=qe("string"),Je=qe("function"),Ze=qe("number"),$e=t=>null!==t&&"object"==typeof t,Ke=t=>{if("object"!==Ie(t))return!1;const e=Be(t);return!(null!==e&&e!==Object.prototype&&null!==Object.getPrototypeOf(e)||Symbol.toStringTag in t||Symbol.iterator in t)},Qe=He("Date"),Ye=He("File"),Xe=He("Blob"),tn=He("FileList"),en=He("URLSearchParams"),nn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,rn=t=>!ze(t)&&t!==nn,on=(an="undefined"!=typeof Uint8Array&&Be(Uint8Array),t=>an&&t instanceof an);var an;const sn=He("HTMLFormElement"),cn=(({hasOwnProperty:t})=>(e,n)=>t.call(e,n))(Object.prototype),un=He("RegExp"),ln=(t,e)=>{const n=Object.getOwnPropertyDescriptors(t),r={};tt(n,(n,o)=>{!1!==e(n,o,t)&&(r[o]=n)}),Object.defineProperties(t,r)},fn="abcdefghijklmnopqrstuvwxyz",hn="0123456789",pn={DIGIT:hn,ALPHA:fn,ALPHA_DIGIT:fn+fn.toUpperCase()+hn},dn={isArray:We,isArrayBuffer:Ge,isBuffer:function(t){return null!==t&&!ze(t)&&null!==t.constructor&&!ze(t.constructor)&&Je(t.constructor.isBuffer)&&t.constructor.isBuffer(t)},isFormData:t=>{const e="[object FormData]";return t&&("function"==typeof FormData&&t instanceof FormData||De.call(t)===e||Je(t.toString)&&t.toString()===e)},isArrayBufferView:function(t){let e;return e="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&Ge(t.buffer),e},isString:Ve,isNumber:Ze,isBoolean:t=>!0===t||!1===t,isObject:$e,isPlainObject:Ke,isUndefined:ze,isDate:Qe,isFile:Ye,isBlob:Xe,isRegExp:un,isFunction:Je,isStream:t=>$e(t)&&Je(t.pipe),isURLSearchParams:en,isTypedArray:on,isFileList:tn,forEach:tt,merge:function t(){const{caseless:e}=rn(this)&&this||{},n={},r=(r,o)=>{const i=e&&et(n,o)||o;Ke(n[i])&&Ke(r)?n[i]=t(n[i],r):Ke(r)?n[i]=t({},r):We(r)?n[i]=r.slice():n[i]=r};for(let t=0,e=arguments.length;t(tt(e,(e,r)=>{n&&Je(e)?t[r]=X(e,n):t[r]=e},{allOwnKeys:r}),t),trim:t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:t=>(65279===t.charCodeAt(0)&&(t=t.slice(1)),t),inherits:(t,e,n,r)=>{t.prototype=Object.create(e.prototype,r),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:e.prototype}),n&&Object.assign(t.prototype,n)},toFlatObject:(t,e,n,r)=>{let o,i,a;const s={};if(e=e||{},null==t)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],r&&!r(a,t,e)||s[a]||(e[a]=t[a],s[a]=!0);t=!1!==n&&Be(t)}while(t&&(!n||n(t,e))&&t!==Object.prototype);return e},kindOf:Ie,kindOfTest:He,endsWith:(t,e,n)=>{t=String(t),(void 0===n||n>t.length)&&(n=t.length),n-=e.length;const r=t.indexOf(e,n);return-1!==r&&r===n},toArray:t=>{if(!t)return null;if(We(t))return t;let e=t.length;if(!Ze(e))return null;const n=new Array(e);for(;e-- >0;)n[e]=t[e];return n},forEachEntry:(t,e)=>{const n=(t&&t[Symbol.iterator]).call(t);let r;for(;(r=n.next())&&!r.done;){const n=r.value;e.call(t,n[0],n[1])}},matchAll:(t,e)=>{let n;const r=[];for(;null!==(n=t.exec(e));)r.push(n);return r},isHTMLForm:sn,hasOwnProperty:cn,hasOwnProp:cn,reduceDescriptors:ln,freezeMethods:t=>{ln(t,(e,n)=>{if(Je(t)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=t[n];Je(r)&&(e.enumerable=!1,"writable"in e?e.writable=!1:e.set||(e.set=(()=>{throw Error("Can not rewrite read-only method '"+n+"'")})))})},toObjectSet:(t,e)=>{const n={},r=t=>{t.forEach(t=>{n[t]=!0})};return We(t)?r(t):r(String(t).split(e)),n},toCamelCase:t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,e,n){return e.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(t,e)=>(t=+t,Number.isFinite(t)?t:e),findKey:et,global:nn,isContextDefined:rn,ALPHABET:pn,generateString:(t=16,e=pn.ALPHA_DIGIT)=>{let n="";const{length:r}=e;for(;t--;)n+=e[Math.random()*r|0];return n},isSpecCompliantForm:function(t){return!!(t&&Je(t.append)&&"FormData"===t[Symbol.toStringTag]&&t[Symbol.iterator])},toJSONObject:t=>{const e=new Array(10),n=(t,r)=>{if($e(t)){if(e.indexOf(t)>=0)return;if(!("toJSON"in t)){e[r]=t;const o=We(t)?[]:{};return tt(t,(t,e)=>{const i=n(t,r+1);!ze(i)&&(o[e]=i)}),e[r]=void 0,o}}return t};return n(t,0)}};dn.inherits(nt,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:dn.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const _n=nt.prototype,yn={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(t=>{yn[t]={value:t}}),Object.defineProperties(nt,yn),Object.defineProperty(_n,"isAxiosError",{value:!0}),nt.from=((t,e,n,r,o,i)=>{const a=Object.create(_n);return dn.toFlatObject(t,a,function(t){return t!==Error.prototype},t=>"isAxiosError"!==t),nt.call(a,t.message,e,n,r,o),a.cause=t,a.name=t.name,i&&Object.assign(a,i),a});const vn=nt,mn=dn.toFlatObject(dn,{},null,function(t){return/^is[A-Z]/.test(t)}),gn=function(t,e,n){function r(t){if(null===t)return"";if(dn.isDate(t))return t.toISOString();if(!u&&dn.isBlob(t))throw new vn("Blob is not supported. Use a Buffer instead.");return dn.isArrayBuffer(t)||dn.isTypedArray(t)?u&&"function"==typeof Blob?new Blob([t]):Buffer.from(t):t}function o(t,n,o){let a=t;if(t&&!o&&"object"==typeof t)if(dn.endsWith(n,"{}"))n=i?n:n.slice(0,-2),t=JSON.stringify(t);else if(dn.isArray(t)&&function(t){return dn.isArray(t)&&!t.some(rt)}(t)||(dn.isFileList(t)||dn.endsWith(n,"[]"))&&(a=dn.toArray(t)))return n=ot(n),a.forEach(function(t,o){!dn.isUndefined(t)&&null!==t&&e.append(!0===c?it([n],o,s):null===c?n:n+"[]",r(t))}),!1;return!!rt(t)||(e.append(it(o,n,s),r(t)),!1)}if(!dn.isObject(t))throw new TypeError("target must be an object");e=e||new FormData;const i=(n=dn.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(t,e){return!dn.isUndefined(e[t])})).metaTokens,a=n.visitor||o,s=n.dots,c=n.indexes,u=(n.Blob||"undefined"!=typeof Blob&&Blob)&&dn.isSpecCompliantForm(e);if(!dn.isFunction(a))throw new TypeError("visitor must be a function");const l=[],f=Object.assign(mn,{defaultVisitor:o,convertValue:r,isVisitable:rt});if(!dn.isObject(t))throw new TypeError("data must be an object");return function t(n,r){if(!dn.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),dn.forEach(n,function(n,o){!0===(!(dn.isUndefined(n)||null===n)&&a.call(e,n,dn.isString(o)?o.trim():o,r,f))&&t(n,r?r.concat(o):[o])}),l.pop()}}(t),e},bn=st.prototype;bn.append=function(t,e){this._pairs.push([t,e])},bn.toString=function(t){const e=t?function(e){return t.call(this,e,at)}:at;return this._pairs.map(function(t){return e(t[0])+"="+e(t[1])},"").join("&")};const wn=st,En=class{constructor(){this.handlers=[]}use(t,e,n){return this.handlers.push({fulfilled:t,rejected:e,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){dn.forEach(this.handlers,function(e){null!==e&&t(e)})}},xn={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},On="undefined"!=typeof URLSearchParams?URLSearchParams:wn,Sn=FormData,kn=(()=>{let t;return("undefined"==typeof navigator||"ReactNative"!==(t=navigator.product)&&"NativeScript"!==t&&"NS"!==t)&&"undefined"!=typeof window&&"undefined"!=typeof document})(),Ln="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,An={isBrowser:!0,classes:{URLSearchParams:On,FormData:Sn,Blob:Blob},isStandardBrowserEnv:kn,isStandardBrowserWebWorkerEnv:Ln,protocols:["http","https","file","blob","url","data"]},Pn=function(t){function e(t,n,r,o){let i=t[o++];const a=Number.isFinite(+i),s=o>=t.length;return i=!i&&dn.isArray(r)?r.length:i,s?(dn.hasOwnProp(r,i)?r[i]=[r[i],n]:r[i]=n,!a):(r[i]&&dn.isObject(r[i])||(r[i]=[]),e(t,n,r[i],o)&&dn.isArray(r[i])&&(r[i]=function(t){const e={},n=Object.keys(t);let r;const o=n.length;let i;for(r=0;r{e(function(t){return dn.matchAll(/\w+|\[(\w*)]/g,t).map(t=>"[]"===t[0]?"":t[1]||t[0])}(t),r,n,0)}),n}return null},Nn={"Content-Type":void 0},Tn={transitional:xn,adapter:["xhr","http"],transformRequest:[function(t,e){const n=e.getContentType()||"",r=n.indexOf("application/json")>-1,o=dn.isObject(t);if(o&&dn.isHTMLForm(t)&&(t=new FormData(t)),dn.isFormData(t))return r&&r?JSON.stringify(Pn(t)):t;if(dn.isArrayBuffer(t)||dn.isBuffer(t)||dn.isStream(t)||dn.isFile(t)||dn.isBlob(t))return t;if(dn.isArrayBufferView(t))return t.buffer;if(dn.isURLSearchParams(t))return e.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(t,e){return gn(t,new An.classes.URLSearchParams,Object.assign({visitor:function(t,e,n,r){return An.isNode&&dn.isBuffer(t)?(this.append(e,t.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},e))}(t,this.formSerializer).toString();if((i=dn.isFileList(t))||n.indexOf("multipart/form-data")>-1){const e=this.env&&this.env.FormData;return gn(i?{"files[]":t}:t,e&&new e,this.formSerializer)}}return o||r?(e.setContentType("application/json",!1),function(t,e,n){if(dn.isString(t))try{return(0,JSON.parse)(t),dn.trim(t)}catch(t){if("SyntaxError"!==t.name)throw t}return(0,JSON.stringify)(t)}(t)):t}],transformResponse:[function(t){const e=this.transitional||Tn.transitional,n=e&&e.forcedJSONParsing,r="json"===this.responseType;if(t&&dn.isString(t)&&(n&&!this.responseType||r)){const n=!(e&&e.silentJSONParsing)&&r;try{return JSON.parse(t)}catch(t){if(n){if("SyntaxError"===t.name)throw vn.from(t,vn.ERR_BAD_RESPONSE,this,null,this.response);throw t}}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:An.classes.FormData,Blob:An.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};dn.forEach(["delete","get","head"],function(t){Tn.headers[t]={}}),dn.forEach(["post","put","patch"],function(t){Tn.headers[t]=dn.merge(Nn)});const jn=Tn,Cn=dn.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Rn=Symbol("internals");class Un{constructor(t){t&&this.set(t)}set(t,e,n){function r(t,e,n){const r=lt(e);if(!r)throw new Error("header name must be a non-empty string");const i=dn.findKey(o,r);(!i||void 0===o[i]||!0===n||void 0===n&&!1!==o[i])&&(o[i||e]=ft(t))}const o=this,i=(t,e)=>dn.forEach(t,(t,n)=>r(t,n,e));return dn.isPlainObject(t)||t instanceof this.constructor?i(t,e):dn.isString(t)&&(t=t.trim())&&!/^[-_a-zA-Z]+$/.test(t.trim())?i((t=>{const e={};let n,r,o;return t&&t.split("\n").forEach(function(t){o=t.indexOf(":"),n=t.substring(0,o).trim().toLowerCase(),r=t.substring(o+1).trim(),!n||e[n]&&Cn[n]||("set-cookie"===n?e[n]?e[n].push(r):e[n]=[r]:e[n]=e[n]?e[n]+", "+r:r)}),e})(t),e):null!=t&&r(e,t,n),this} -get(t,e){if(t=lt(t)){const n=dn.findKey(this,t);if(n){const t=this[n];if(!e)return t;if(!0===e)return function(t){const e=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(t);)e[r[1]]=r[2];return e}(t);if(dn.isFunction(e))return e.call(this,t,n);if(dn.isRegExp(e))return e.exec(t);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,e){if(t=lt(t)){const n=dn.findKey(this,t);return!(!n||void 0===this[n]||e&&!ht(0,this[n],n,e))}return!1}delete(t,e){function n(t){if(t=lt(t)){const n=dn.findKey(r,t);!n||e&&!ht(0,r[n],n,e)||(delete r[n],o=!0)}}const r=this;let o=!1;return dn.isArray(t)?t.forEach(n):n(t),o}clear(t){const e=Object.keys(this);let n=e.length,r=!1;for(;n--;){const o=e[n];t&&!ht(0,this[o],o,t)||(delete this[o],r=!0)}return r}normalize(t){const e=this,n={};return dn.forEach(this,(r,o)=>{const i=dn.findKey(n,o);if(i)return e[i]=ft(r),void delete e[o];const a=t?function(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,e,n)=>e.toUpperCase()+n)}(o):String(o).trim();a!==o&&delete e[o],e[a]=ft(r),n[a]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const e=Object.create(null);return dn.forEach(this,(n,r)=>{null!=n&&!1!==n&&(e[r]=t&&dn.isArray(n)?n.join(", "):n)}),e}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,e])=>t+": "+e).join("\n")}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...e){const n=new this(t);return e.forEach(t=>n.set(t)),n}static accessor(t){function e(t){const e=lt(t);n[e]||(function(t,e){const n=dn.toCamelCase(" "+e);["get","set","has"].forEach(r=>{Object.defineProperty(t,r+n,{value:function(t,n,o){return this[r].call(this,e,t,n,o)},configurable:!0})})}(r,t),n[e]=!0)}const n=(this[Rn]=this[Rn]={accessors:{}}).accessors,r=this.prototype;return dn.isArray(t)?t.forEach(e):e(t),this}}Un.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),dn.freezeMethods(Un.prototype),dn.freezeMethods(Un);const Fn=Un;dn.inherits(_t,vn,{__CANCEL__:!0});const Dn=_t,Bn=An.isStandardBrowserEnv?{write:function(t,e,n,r,o,i){const a=[];a.push(t+"="+encodeURIComponent(e)),dn.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),dn.isString(r)&&a.push("path="+r),dn.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){const e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}},In=An.isStandardBrowserEnv?function(){function t(t){let r=t;return e&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}const e=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;return r=t(window.location.href),function(e){const n=dn.isString(e)?t(e):e;return n.protocol===r.protocol&&n.host===r.host}}():function(){return!0},Mn=function(t,e){t=t||10;const n=new Array(t),r=new Array(t);let o,i=0,a=0;return e=void 0!==e?e:1e3,function(s){const c=Date.now(),u=r[a];o||(o=c),n[i]=s,r[i]=c;let l=a,f=0;for(;l!==i;)f+=n[l++],l%=t;if(i=(i+1)%t,i===a&&(a=(a+1)%t),c-o{u&&(n(!e||e.type?new Dn(null,t,u):e),u.abort(),u=null)}),t.cancelToken&&t.cancelToken.subscribe(c),t.signal&&(t.signal.aborted?c():t.signal.addEventListener("abort",c)));const f=function(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}(l);f&&-1===An.protocols.indexOf(f)?n(new vn("Unsupported protocol "+f+":",vn.ERR_BAD_REQUEST,t)):u.send(i||null)})}};dn.forEach(Hn,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch(t){}Object.defineProperty(t,"adapterName",{value:e})}});const qn={getAdapter:t=>{t=dn.isArray(t)?t:[t];const{length:e}=t;let n,r;for(let o=0;ot instanceof Fn?t.toJSON():t,zn="1.3.2",Gn={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Gn[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const Vn={};Gn.transitional=function(t,e,n){function r(t,e){return"[Axios v"+zn+"] Transitional option '"+t+"'"+e+(n?". "+n:"")}return(n,o,i)=>{if(!1===t)throw new vn(r(o," has been removed"+(e?" in "+e:"")),vn.ERR_DEPRECATED);return e&&!Vn[o]&&(Vn[o]=!0,console.warn(r(o," has been deprecated since v"+e+" and will be removed in the near future"))),!t||t(n,o,i)}};const Jn={assertOptions:function(t,e,n){if("object"!=typeof t)throw new vn("options must be an object",vn.ERR_BAD_OPTION_VALUE);const r=Object.keys(t);let o=r.length;for(;o-- >0;){const i=r[o],a=e[i];if(a){const e=t[i],n=void 0===e||a(e,i,t);if(!0!==n)throw new vn("option "+i+" must be "+n,vn.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new vn("Unknown option "+i,vn.ERR_BAD_OPTION)}},validators:Gn},Zn=Jn.validators;class $n{constructor(t){this.defaults=t,this.interceptors={request:new En,response:new En}}request(t,e){"string"==typeof t?(e=e||{}).url=t:e=t||{},e=bt(this.defaults,e);const{transitional:n,paramsSerializer:r,headers:o}=e;let i;void 0!==n&&Jn.assertOptions(n,{silentJSONParsing:Zn.transitional(Zn.boolean),forcedJSONParsing:Zn.transitional(Zn.boolean),clarifyTimeoutError:Zn.transitional(Zn.boolean)},!1),void 0!==r&&Jn.assertOptions(r,{encode:Zn.function,serialize:Zn.function},!0),e.method=(e.method||this.defaults.method||"get").toLowerCase(),i=o&&dn.merge(o.common,o[e.method]),i&&dn.forEach(["delete","get","head","post","put","patch","common"],t=>{delete o[t]}),e.headers=Fn.concat(i,o);const a=[];let s=!0;this.interceptors.request.forEach(function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(s=s&&t.synchronous,a.unshift(t.fulfilled,t.rejected))});const c=[];let u;this.interceptors.response.forEach(function(t){c.push(t.fulfilled,t.rejected)});let l,f=0;if(!s){const t=[gt.bind(this),void 0];for(t.unshift.apply(t,a),t.push.apply(t,c),l=t.length,u=Promise.resolve(e);f{if(!n._listeners)return;let e=n._listeners.length;for(;e-- >0;)n._listeners[e](t);n._listeners=null}),this.promise.then=(t=>{let e;const r=new Promise(t=>{n.subscribe(t),e=t}).then(t);return r.cancel=function(){n.unsubscribe(e)},r}),t(function(t,r,o){n.reason||(n.reason=new Dn(t,r,o),e(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){this.reason?t(this.reason):this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const e=this._listeners.indexOf(t);-1!==e&&this._listeners.splice(e,1)}static source(){let t;const e=new Qn(function(e){t=e});return{token:e,cancel:t}}}const Yn=Qn,Xn={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Xn).forEach(([t,e])=>{Xn[e]=t});const tr=Xn,er=function t(e){const n=new Kn(e),r=X(Kn.prototype.request,n);return dn.extend(r,Kn.prototype,n,{allOwnKeys:!0}),dn.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return t(bt(e,n))},r}(jn);er.Axios=Kn,er.CanceledError=Dn,er.CancelToken=Yn,er.isCancel=dt,er.VERSION=zn,er.toFormData=gn,er.AxiosError=vn,er.Cancel=er.CanceledError,er.all=function(t){return Promise.all(t)},er.spread=function(t){return function(e){return t.apply(null,e)}},er.isAxiosError=function(t){return dn.isObject(t)&&!0===t.isAxiosError},er.mergeConfig=bt,er.AxiosHeaders=Fn,er.formToJSON=(t=>Pn(dn.isHTMLForm(t)?new FormData(t):t)),er.HttpStatusCode=tr,er.default=er;const nr=er;var rr=function(){var t=Ot(Et().mark(function t(){return Et().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nr.post('/lol-login/v1/session/invoke?destination=lcdsServiceProxy&method=call&args=["","teambuilder-draft","quitV2",""]',["","teambuilder-draft","quitV2",""]);case 2:window.location.reload();case 3:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),or=function(){var t=Ot(Et().mark(function t(){return Et().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,nr.post("/lol-lobby/v1/lobby/custom/cancel-champ-select");case 2:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),ir=".bottom-right-buttons",ar=function(){var t,e=function(){var t,e=(t=kt().mark(function t(){return kt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,rr();case 2:return t.next=4,or();case 4:case"end":return t.stop()}},t)}),function(){var e=this,n=arguments;return new Promise(function(r,o){function i(t){Lt(s,r,o,i,a,"next",t)}function a(t){Lt(s,r,o,i,a,"throw",t)}var s=t.apply(e,n);i(void 0)})});return function(){return e.apply(this,arguments)}}();return Z(F(i,{children:F("div",{className:"quit-button",onClick:e,children:F("lol-uikit-flat-button",{children:"Sair"})})}),null!==(t=document.querySelector(ir))&&void 0!==t?t:document.head)};ar.on=ir;const sr=ar;var cr=t(869),ur={};ur.styleTagTransform=Ae(),ur.setAttributes=Oe(),ur.insert=function(t){document.addEventListener("DOMContentLoaded",()=>document.head.appendChild(t))},ur.domAPI=Ee(),ur.insertStyleElement=ke(),be()(cr.Z,ur);const lr=cr.Z&&cr.Z.locals?cr.Z.locals:void 0;var fr=".invite-info-panel-container",hr=function(t){var e,n=t.children;return Z(F("div",{className:lr.container,children:n}),null!==(e=document.querySelector(fr))&&void 0!==e?e:document.head)};hr.on=fr;var pr=[hr,Fe,sr,Ce],dr=function(){var t=Tt(Pt().mark(function t(){return Pt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:window.addEventListener("load",Tt(Pt().mark(function t(){var e,n,r,o,i;return Pt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:n=function(){return document.getElementById("rcp-fe-viewport-root")};case 1:if(n()){t.next=6;break}return t.next=4,new Promise(function(t){return setTimeout(t,200)});case 4:t.next=1;break;case 6:r=new MutationObserver(function(){var t=Tt(Pt().mark(function t(e){var r,o,i;return Pt().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:r=0,o=pr;case 1:if(!(r { - force_audio_pause = !force_audio_pause - audio_play_pause() - play_pause_set_icon_audio() - }) - - pauseBg.addEventListener("click", () => { - force_bg_pause = !force_bg_pause - elaina_play_pause() - play_pause_set_icon() - }) - - nextBg.addEventListener("click", () => { - next_wallpaper() - }) - - prevBg.addEventListener("click", () => { - prev_wallpaper() - }) - - nextBgIcon.setAttribute("src", "//plugins/ElainaV2/assets/Icon/next_button.png") - prevBgIcon.setAttribute("src", "//plugins/ElainaV2/assets/Icon/prev_button.png") - - - let showcontainer = document.getElementsByClassName("rcp-fe-lol-home")[0] - showcontainer.appendChild(container) - //showcontainer.appendChild(containeraudio) - - - container.append(pauseAudio) - container.append(pauseBg) - //container.append(prevBg) - container.append(nextBg) - - - pauseAudio.append(pauseAudioIcon) - pauseBg.append(pauseBgIcon) - //prevBg.append(prevBgIcon) - nextBg.append(nextBgIcon) - - //containeraudio.append(audioVolume) -} - -function Delbuttons() { - document.getElementsByClassName("webm-bottom-buttons-container")[0].remove() -} -//___________________________________________________________________________// - - - -//___________________________________________________________________________// -let homepagebutton = { - elaina_play_pause: elaina_play_pause, - audio_play_pause: audio_play_pause, - create_webm_buttons: create_webm_buttons, - Delbuttons: Delbuttons, - apply_default_background: apply_default_background -} - -export default homepagebutton \ No newline at end of file diff --git a/ElainaV2/resources/LL-Settings.js b/ElainaV2/resources/LL-Settings.js deleted file mode 100644 index b7b0cf4..0000000 --- a/ElainaV2/resources/LL-Settings.js +++ /dev/null @@ -1,114 +0,0 @@ -const TRANSLATIONS = { - ['en']: { - 'l.open_settings': 'Open Settings', - 'l.close': 'Close', - 'l.open_devtools': 'Open DevTools', - 'l.reload_client': 'Reload Client', - 'l.open_plugins': 'Open Plugins folder', - } -} - -// Create loader UI. -async function createLoaderMenu(root) { - // Import nano-jsx from CDN. - const { Component, jsx, render } = await import('//esm.run/nano-jsx') - - // Get translation. - const lang = document.body.dataset['lang'] - /** @type {TRANSLATIONS['en']} */ - const _t = TRANSLATIONS[lang] || TRANSLATIONS['en'] - - // Get League Loader version. - const version = window['__llver'] - - // Main component. - class LoaderMenu extends Component { - visible = false - frame = null - opener = null - didMount() { - this.opener = document.querySelector('div[action=settings]') - this.opener.addEventListener('click', e => { - if (!this.visible) { - e.stopImmediatePropagation() - this.show(true) - } - }) - } - show(on) { - this.visible = on - this.update() - if (this.visible) { - this.frame.shadowRoot.querySelector('lol-uikit-close-button') - ?.addEventListener('click', () => this.show(false)) - } - } - showDefaultSettings() { - this.opener.click() - this.show(false) - } - render() { - // Tagged template literal with JSX flavor. - // On VSCode, just install 'Comment tagged templates' extension to get highlighting. - return jsx/*html*/` - - ` - } - } - - // Render component to root. - render(jsx`<${LoaderMenu} />`, root) -} - -// Setup on window loaded. -window.addEventListener('load', async () => { - // Wait for manager layer. - const manager = () => document.getElementById('lol-uikit-layer-manager-wrapper') - while (!manager()) await new Promise(r => setTimeout(r, 200)) - // Create UI and append it to manager. - const root = document.createElement('div') - await createLoaderMenu(root) - manager().prepend(root) -}) \ No newline at end of file diff --git a/ElainaV2/resources/LoadingScreen.js b/ElainaV2/resources/LoadingScreen.js deleted file mode 100644 index 53c76ed..0000000 --- a/ElainaV2/resources/LoadingScreen.js +++ /dev/null @@ -1,18 +0,0 @@ -import utils from './_utilselaina' -import data from '../configs/ElainaV2_config.json' - -let LoadingScr = data["Animate-Loading"] - -function Applyloadingscreen() { - if (LoadingScr) { - utils.addCss("//plugins/ElainaV2/assets/Css/Addon-Css/Animate-Loading-Screen.css") - } - - else { - utils.addCss("//plugins/ElainaV2/assets/Css/Addon-Css/Static-Loading-Screen.css") - } -} - -window.addEventListener('load', () => { - Applyloadingscreen() -}) \ No newline at end of file diff --git a/ElainaV2/resources/Offline-mode.js b/ElainaV2/resources/Offline-mode.js deleted file mode 100644 index 2f140cb..0000000 --- a/ElainaV2/resources/Offline-mode.js +++ /dev/null @@ -1,68 +0,0 @@ -function get_status(){ - let t=document.querySelector(".availability-icon"), - a=["dnd","chat","away","offline","mobile"]; - - if(t)for(let e of a) - if(t.classList.contains(e)) - return e; - return"chat" -} - -async function patchStatus(){ - await fetch( - "/lol-chat/v1/me", - {headers:{ - "content-type":"application/json" - }, - body:`{"availability":"${covert_status}","lol":{"gameStatus":"outOfGame"}}`,method:"PUT"} - ) -} - -import utils from './_utilselaina'; - -let covert_status="chat", - -switch_between_status=async()=>{ - let t=get_status(), - a="chat"==t?"mobile":"mobile"==t?"dnd":"dnd"==t?"away":"away"==t?"offline":"chat"; - - console.log("pass 1"), - await fetch( - "/lol-chat/v1/me", - {headers:{ - "content-type":"application/json" - }, - body:`{"availability":"${a}"${"offline"==a||"away"==a?',"lol":{"gameStatus":"outOfGame"}':"dnd"==a?',"lol":{"gameStatus":"inGame"}':""}}`,method:"PUT"} - ), - - document.querySelector(".availability-icon").classList.remove(t), - document.querySelector(".availability-icon").classList.add(a), - covert_status=a -}; - -window.switch_between_status=switch_between_status; - -let champSelectPatchStatus=async t=>{ - let a=JSON.parse(t.data)[2].data; - "ChampSelect"!=a||"offline"!=covert_status&&"away"!=covert_status||await patchStatus() -}, - -availabilityButtonMutationObserver=async t=>{ - let a=document.querySelector(".availability-hitbox:not(.offline-mode-available), .availability-hitbox:not([onclick])"), - e=document.querySelectorAll(".availability-hitbox.offline-mode-available"), - i=document.querySelector(".details .status-message.game-status"); - - a&&(console.log(t),a.classList.add("offline-mode-available"), - a.outerHTML=a.outerHTML, - - document.querySelector(".availability-hitbox").setAttribute("onclick","window.switch_between_status()")), - i&&"offline"==covert_status&&await patchStatus(), - e.length>1&&e.forEach((t,a)=>{ - a&&t.remove() - }) -}; - -window.addEventListener("load",()=>{ - utils.subscribe_endpoint("/lol-gameflow/v1/gameflow-phase",champSelectPatchStatus), - utils.routineAddCallback(availabilityButtonMutationObserver,["availability-hitbox","status-message"]) -}); \ No newline at end of file diff --git a/ElainaV2/resources/Watermark.js b/ElainaV2/resources/Watermark.js deleted file mode 100644 index 25770f3..0000000 --- a/ElainaV2/resources/Watermark.js +++ /dev/null @@ -1,336 +0,0 @@ -function ElainaTrigger() { - const container0 = document.createElement("div") - const container2 = document.createElement("div") - const container3 = document.createElement("div") - const container4 = document.createElement("div") - const container5 = document.createElement("div") - const container6 = document.createElement("div") - const container7 = document.createElement("div") - const container8 = document.createElement("div") - const container9 = document.createElement("div") - const container10 = document.createElement("div") - const container11 = document.createElement("div") - const container12 = document.createElement("div") - - const Greeting = document.createElement("p") - - const watermark = document.createElement("div"); - const wtmark = document.createElement("p") - - const Elaina1ImageDiv = document.createElement("div"); - const Elaina1Image = document.createElement("img") - const Elaina1TextDiv = document.createElement("div"); - const Elaina1Text = document.createElement("p") - - const headpatdiv = document.createElement("div"); - const headpat = document.createElement("button") - - const boobsdiv = document.createElement("div"); - const boobs = document.createElement("button") - - const answer1 = document.createElement("p") - const answer2 = document.createElement("p") - const answer3 = document.createElement("a") - - const goOutSidediv = document.createElement("div"); - const goOutSide = document.createElement("button"); - - const answer4 = document.createElement("p") - const answer5 = document.createElement("p") - - - container0.classList.add ("watermark-text") - container2.classList.add ("Elaina1ImageCon") - container3.classList.add ("Elaina1TextCon") - container4.classList.add ("Greeting-con") - container5.classList.add ("Headpat-con") - container6.classList.add ("Boobs-con") - container7.classList.add ("answer1-con") - container8.classList.add ("answer2-con") - container9.classList.add ("answer3-con") - container10.classList.add("goOutSide-con") - container11.classList.add("answer4-con") - container12.classList.add("answer5-con") - - - wtmark.classList.add("watermark") - if (document.querySelector("html").lang == "ja-JP") { - wtmark.innerHTML =""; - } - else if (document.querySelector("html").lang == "ko-KR") { - wtmark.innerHTML =""; - } - else if (document.querySelector("html").lang == "zh-CN") { - wtmark.innerHTML =""; - } - else if (document.querySelector("html").lang == "zh-TW") { - wtmark.innerHTML =""; - } - else { - wtmark.innerHTML = "By Elaina Da Catto"; - } - - - Greeting.classList.add ("Greeting") - headpat.classList.add ("Headpat") - boobs.classList.add ("Boobs") - goOutSide.classList.add("GoOutSide") - - - Elaina1Text.classList.add ("Elaina1Text") - Elaina1Image.classList.add("Elaina1Image") - Elaina1Image.setAttribute ("src", "//plugins/ElainaV2/assets/Icon/ElainaCB.png") - Elaina1Image.style.visibility = "hidden" - - - answer1.id = "answer1" - answer2.id = "answer2" - answer3.id = "answer3" - answer4.id = "answer4" - answer5.id = "answer5" - - - let count = 0; - let Headpatcount = 0; - let answer2clicked = 0; - let showcontainer = document.getElementsByClassName("rcp-fe-lol-home")[0] - - - wtmark.addEventListener("click", () => { - count += 1; - if (count > 0) { - wtmark.style.visibility = "hidden" - Elaina1Image.style.visibility = "visible" - Elaina1Text.innerHTML = "Huh ?"; - - - function generateGreeting(date) { - const hour = date.getHours(); - Elaina1Text.innerHTML = " " - switch (true) { - case hour >= 5 && hour < 12: - return 'Good morning.You shouldn\'t play game at this time'; - case hour >= 12 && hour < 18: - return 'Good afternoon.It\'s nice time
to play game rights ?'; - case hour >= 18 && hour < 24: - return 'Good evening.You should complete ur work before play game'; - default: - return 'it\'s late, you should
go to bed now.'; - } - } - function updateCurrentTime() { - const date = new Date(); - Greeting.innerHTML = generateGreeting(date); - container4.style.bottom = "256px" - container4.style.right = "225px" - container4.style.position = "absolute" - container4.style.display = "flex" - } - (() => { - const interval = 1000; - setTimeout(updateCurrentTime, interval); - })(); - - - showcontainer.appendChild(container10) - showcontainer.appendChild(container4) - showcontainer.appendChild(container5) - showcontainer.appendChild(container6) - - container10.append(goOutSidediv) - container4.append(Greeting) - container5.append(headpatdiv) - container6.append(boobsdiv) - - goOutSidediv.append(goOutSide) - headpatdiv.append(headpat) - boobsdiv.append(boobs) - - - headpat.addEventListener("click", () => { - Greeting.innerHTML = " " - boobs.style.visibility = "visible" - Headpatcount += 1; - if (Headpatcount < 15) { - Elaina1Text.innerHTML = "Meow ~~ !!" - - container3.style.bottom = "260px" - container3.style.right = "280px" - } - if (Headpatcount >= 15) { - Elaina1Text.innerHTML = "Mo... My hair is burning !!" - - container3.style.bottom = "260px" - container3.style.right = "225px" - } - }, false); - - goOutSide.addEventListener("click", () => { - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "You should go outside
and touch grass" - container3.style.bottom = "250px" - container3.style.right = "241px" - - boobs.style.visibility = "hidden" - headpat.style.visibility = "hidden" - goOutSide.style.visibility = "hidden" - - showcontainer.appendChild(container11) - showcontainer.appendChild(container12) - - container11.append(answer4) - container12.append(answer5) - - answer4.innerHTML = "\"I still want to play game tho\"" - answer5.innerHTML = "\"I want to go outside with you\"" - - answer4.addEventListener("click", () => { - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "Do what ever you want.
I don't care" - container3.style.bottom = "249px" - container3.style.right = "235px" - - boobs.style.visibility = "visible" - headpat.style.visibility = "visible" - goOutSide.style.visibility = "visible" - - container11.remove() - container12.remove() - }, false); - - answer5.addEventListener("click", () => { - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "I'm so proud of you.You
should turn off the client now
and hangout with me (≧▽≦)" - container3.style.bottom = "238px" - container3.style.right = "214px" - - container11.remove() - container12.remove() - }, false); - }, false); - - boobs.addEventListener("click", () => { - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "Ehh...where did you
just touch !?" - - container3.style.bottom = "250px" - container3.style.right = "250px" - - answer1.innerHTML = "\"N...Nothing !!\"" - answer2.innerHTML = "\"I...I wanna see your boobs\"" - - boobs.style.visibility = "hidden" - headpat.style.visibility = "hidden" - goOutSide.style.visibility = "hidden" - - - answer1.addEventListener("click", () => { - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "... You should be careful
next time" - - container3.style.bottom = "248px" - container3.style.right = "239px" - - container7.remove() - container8.remove() - - boobs.style.visibility = "visible" - headpat.style.visibility = "visible" - goOutSide.style.visibility = "visible" - }, false); - - answer2.addEventListener("click", () => { - answer2clicked += 1; - Greeting.innerHTML = " " - Elaina1Text.innerHTML = "As you wish, my darling ~~" - - container3.style.bottom = "260px" - container3.style.right = "219px" - - container7.remove() - container8.remove() - - - if (answer2clicked > 0) { - showcontainer.appendChild(container9) - container9.append(answer3) - - Greeting.innerHTML = " " - answer3.innerHTML = "Take off her clothes" - answer3.setAttribute("href", "https://media.discordapp.net/attachments/887677396315172894/1081501404729974804/6f5ba14e64dea4feb1349c3b658338349e0c1244.png") - answer3.setAttribute("target", "_blank") - answer3.addEventListener("click", () => { - Elaina1Text.innerHTML = "..." - - container3.style.bottom = "260px" - container3.style.right = "325px" - - boobs.style.visibility = "visible" - headpat.style.visibility = "visible" - goOutSide.style.visibility = "visible" - - container9.remove() - }, false); - } - }, false); - - showcontainer.appendChild(container7) - showcontainer.appendChild(container8) - - container7.append(answer1) - container8.append(answer2) - container9.append(answer3) - - - }, false); - } - }, false); - - - showcontainer.appendChild(container2) - showcontainer.appendChild(container0) - showcontainer.appendChild(container3) - - - container0.append(watermark) - container2.append(Elaina1ImageDiv) - container3.append(Elaina1TextDiv) - - - - watermark.append(wtmark) - Elaina1ImageDiv.append(Elaina1Image) - Elaina1TextDiv.append(Elaina1Text) -} - -function DelElainaTrigger() { - try { - document.getElementsByClassName("watermark-text")[0].remove() - document.getElementsByClassName("Elaina1ImageCon")[0].remove() - document.getElementsByClassName("Elaina1TextCon")[0].remove() - document.getElementsByClassName("Greeting-con")[0].remove() - document.getElementsByClassName("Headpat-con")[0].remove() - document.getElementsByClassName("Boobs-con")[0].remove() - document.getElementsByClassName("goOutSide-con")[0].remove() - document.getElementsByClassName("answer1-con")[0].remove() - document.getElementsByClassName("answer2-con")[0].remove() - document.getElementsByClassName("answer3-con")[0].remove() - } - catch{} - try { - document.getElementsByClassName("answer3-con")[0].remove() - } - catch{} - try { - document.getElementsByClassName("answer4-con")[0].remove() - document.getElementsByClassName("answer5-con")[0].remove() - } - catch{} -} - -let watermark = { - ElainaTrigger: ElainaTrigger, - DelElainaTrigger: DelElainaTrigger -} - -export default watermark \ No newline at end of file diff --git a/ElainaV2/resources/_utilselaina.js b/ElainaV2/resources/_utilselaina.js deleted file mode 100644 index 7a27d01..0000000 --- a/ElainaV2/resources/_utilselaina.js +++ /dev/null @@ -1,120 +0,0 @@ -const version = "1.2.0" -let riotclient_auth, riotclient_port; -let regex_rc_auth = /^--riotclient-auth-token=(.+)$/ -let regex_rc_port = /^--riotclient-app-port=([0-9]+)$/ -let phase; // automatically updated to current gameflow phase -let debug_sub = true // to display debug messages -let routines = [] // array of functions that will be called routinely -let mutationCallbacks = [] // array of functions that will be called in mutation observer -let pvp_net_id; // automatically updated to your pvp.net id -let summoner_id; // automatically updated to your summonerId -let summoner_region; // player current region - -/** used to add css files to document body */ -function addCss(filename) { - const style = document.createElement('link') - style.href = filename - style.type = 'text/css' - style.rel = 'stylesheet' - document.body.append(style) -} - -/** - * Subscribe to a specific endpoint, and trigger callback function when that endpoint is called - * @param {string} endpoint Endpoint you wish to monitor. ex: /lol-gameflow/v1/gameflow-phase , send "" to subscribe to all - * @param {function} callback The callback function - */ -async function subscribe_endpoint(endpoint, callback) { - const uri = document.querySelector('link[rel="riot:plugins:websocket"]').href - const ws = new WebSocket(uri, 'wamp') - - ws.onopen = () => ws.send(JSON.stringify([5, 'OnJsonApiEvent' + endpoint.replace(/\//g, '_')])) - ws.onmessage = callback -} - -/** fetch the Riot client API port/auth and save it to variables that can be exported */ -async function fetch_riotclient_credentials() { - await fetch("/riotclient/command-line-args", { - "method": "GET", - }).then(response => response.json()).then(data => { - data.forEach(elem => { - if (regex_rc_auth.exec(elem)) - utils.riotclient_auth = regex_rc_auth.exec(elem)[1]; - else if (regex_rc_port.exec(elem)) - utils.riotclient_port = regex_rc_port.exec(elem)[1]; - }); - }) - if (debug_sub) - console.log(utils.riotclient_auth, utils.riotclient_port) -} - -/** Callback function to be sent in subscribe_endpoint() to update the variable holding user pvp.net infos */ -let updateUserPvpNetInfos = async message => { - let data = JSON.parse(message["data"])[2]["data"]; - if (data != undefined) { - utils.pvp_net_id = data["id"]; - utils.summoner_id = data["summonerId"] - } -} - -/** Callback function to be sent in subscribe_endpoint() to update the variable monitoring the gameflow phase */ -let updatePhaseCallback = async message => { phase = JSON.parse(message["data"])[2]["data"]; } - -/** Callback function to be sent in subscribe_endpoint() to log uri & data object */ -let debugLogEndpoints = async message => { if (debug_sub) console.log(JSON.parse(message["data"])[2]["uri"], JSON.parse(message["data"])[2]["data"]) } - -/** - * Add function to be called in the MutationObserver API - * @param {function} callback The callback function - * @param {[string]} targets The list of class targets - */ -function routineAddCallback(callback, target) { - routines.push({ "callback": callback, "targets": target }) -} - -function mutationObserverAddCallback(callback, target) { - mutationCallbacks.push({ "callback": callback, "targets": target }) -} - -let utils = { - riotclient_auth: riotclient_auth, - riotclient_port: riotclient_port, - phase: phase, - summoner_id: summoner_id, - pvp_net_id: pvp_net_id, - subscribe_endpoint: subscribe_endpoint, - routineAddCallback: routineAddCallback, - mutationObserverAddCallback: mutationObserverAddCallback, - addCss: addCss -} - -export default utils - -window.addEventListener('load', () => { - fetch_riotclient_credentials() - subscribe_endpoint("/lol-gameflow/v1/gameflow-phase", updatePhaseCallback) - subscribe_endpoint("/lol-chat/v1/me", updateUserPvpNetInfos) - subscribe_endpoint("", debugLogEndpoints) - window.setInterval(() => { - routines.forEach(routine => { - routine.callback() - }) - }, 1300) - - const observer = new MutationObserver((mutationsList) => { - for (let mutation of mutationsList) { - for (let addedNode of mutation.addedNodes) { - if (addedNode.nodeType === Node.ELEMENT_NODE && addedNode.classList) { - for (let addedNodeClass of addedNode.classList) { - for (let obj of mutationCallbacks) { - if (obj.targets.indexOf(addedNodeClass) != -1 || obj.targets.indexOf("*") != -1) { - obj.callback(addedNode) - } - } - } - } - } - } - }); - observer.observe(document, { attributes: false, childList: true, subtree: true }); -}) \ No newline at end of file