yt-playlists-delete-enhancer

Add a button to remove videos watched with more than X percent from watch later playlist.

Fra og med 31.05.2021. Se den nyeste version.

// ==UserScript==
// @name         yt-playlists-delete-enhancer
// @description  Add a button to remove videos watched with more than X percent from watch later playlist.
// @version      1.5.3
// @author       Andrew Valleteau <[email protected]>
// @grant        none
// @match        *://youtube.com/*
// @match        *://www.youtube.com/*
// @namespace    greasyfork-namespace-url
// @noframes
// @homepageURL  https://github.com/avallete/yt-playlists-delete-enhancer#readme
// @supportURL   https://github.com/avallete/yt-playlists-delete-enhancer/issues
// @run-at       document-idle
// @license      MIT
// ==/UserScript==
/*! For license information please see yt-playlists-delete-enhancer.user.js.LICENSE.txt */
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=25)}([function(t,e,n){"use strict";n.r(e),n.d(e,"render",(function(){return U})),n.d(e,"hydrate",(function(){return B})),n.d(e,"createElement",(function(){return m})),n.d(e,"h",(function(){return m})),n.d(e,"Fragment",(function(){return b})),n.d(e,"createRef",(function(){return _})),n.d(e,"isValidElement",(function(){return i})),n.d(e,"Component",(function(){return g})),n.d(e,"cloneElement",(function(){return X})),n.d(e,"createContext",(function(){return H})),n.d(e,"toChildArray",(function(){return T})),n.d(e,"options",(function(){return r}));var r,i,o,a,s,c,u={},l=[],d=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function f(t,e){for(var n in e)t[n]=e[n];return t}function p(t){var e=t.parentNode;e&&e.removeChild(t)}function m(t,e,n){var r,i,o,a=arguments,s={};for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:s[o]=e[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);if(null!=n&&(s.children=n),"function"==typeof t&&null!=t.defaultProps)for(o in t.defaultProps)void 0===s[o]&&(s[o]=t.defaultProps[o]);return h(t,s,r,i,null)}function h(t,e,n,i,o){var a={type:t,props:e,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++r.__v:o};return null!=r.vnode&&r.vnode(a),a}function _(){return{current:null}}function b(t){return t.children}function g(t,e){this.props=t,this.context=e}function v(t,e){if(null==e)return t.__?v(t.__,t.__.__k.indexOf(t)+1):null;for(var n;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e)return n.__e;return"function"==typeof t.type?v(t):null}function y(t){var e,n;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,e=0;e<t.__k.length;e++)if(null!=(n=t.__k[e])&&null!=n.__e){t.__e=t.__c.base=n.__e;break}return y(t)}}function w(t){(!t.__d&&(t.__d=!0)&&o.push(t)&&!E.__r++||s!==r.debounceRendering)&&((s=r.debounceRendering)||a)(E)}function E(){for(var t;E.__r=o.length;)t=o.sort((function(t,e){return t.__v.__b-e.__v.__b})),o=[],t.some((function(t){var e,n,r,i,o,a;t.__d&&(o=(i=(e=t).__v).__e,(a=e.__P)&&(n=[],(r=f({},i)).__v=i.__v+1,P(a,i,r,e.__n,void 0!==a.ownerSVGElement,null!=i.__h?[o]:null,n,null==o?v(i):o,i.__h),O(n,i),i.__e!=o&&y(i)))}))}function k(t,e,n,r,i,o,a,s,c,d){var f,p,m,_,g,y,w,E=r&&r.__k||l,k=E.length;for(n.__k=[],f=0;f<e.length;f++)if(null!=(_=n.__k[f]=null==(_=e[f])||"boolean"==typeof _?null:"string"==typeof _||"number"==typeof _||"bigint"==typeof _?h(null,_,null,null,_):Array.isArray(_)?h(b,{children:_},null,null,null):_.__b>0?h(_.type,_.props,_.key,null,_.__v):_)){if(_.__=n,_.__b=n.__b+1,null===(m=E[f])||m&&_.key==m.key&&_.type===m.type)E[f]=void 0;else for(p=0;p<k;p++){if((m=E[p])&&_.key==m.key&&_.type===m.type){E[p]=void 0;break}m=null}P(t,_,m=m||u,i,o,a,s,c,d),g=_.__e,(p=_.ref)&&m.ref!=p&&(w||(w=[]),m.ref&&w.push(m.ref,null,_),w.push(p,_.__c||g,_)),null!=g?(null==y&&(y=g),"function"==typeof _.type&&null!=_.__k&&_.__k===m.__k?_.__d=c=A(_,c,t):c=C(t,_,m,E,g,c),d||"option"!==n.type?"function"==typeof n.type&&(n.__d=c):t.value=""):c&&m.__e==c&&c.parentNode!=t&&(c=v(m))}for(n.__e=y,f=k;f--;)null!=E[f]&&("function"==typeof n.type&&null!=E[f].__e&&E[f].__e==n.__d&&(n.__d=v(r,f+1)),N(E[f],E[f]));if(w)for(f=0;f<w.length;f++)M(w[f],w[++f],w[++f])}function A(t,e,n){var r,i;for(r=0;r<t.__k.length;r++)(i=t.__k[r])&&(i.__=t,e="function"==typeof i.type?A(i,e,n):C(n,i,i,t.__k,i.__e,e));return e}function T(t,e){return e=e||[],null==t||"boolean"==typeof t||(Array.isArray(t)?t.some((function(t){T(t,e)})):e.push(t)),e}function C(t,e,n,r,i,o){var a,s,c;if(void 0!==e.__d)a=e.__d,e.__d=void 0;else if(null==n||i!=o||null==i.parentNode)t:if(null==o||o.parentNode!==t)t.appendChild(i),a=null;else{for(s=o,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break t;t.insertBefore(i,o),a=o}return void 0!==a?a:i.nextSibling}function x(t,e,n){"-"===e[0]?t.setProperty(e,n):t[e]=null==n?"":"number"!=typeof n||d.test(e)?n:n+"px"}function S(t,e,n,r,i){var o;t:if("style"===e)if("string"==typeof n)t.style.cssText=n;else{if("string"==typeof r&&(t.style.cssText=r=""),r)for(e in r)n&&e in n||x(t.style,e,"");if(n)for(e in n)r&&n[e]===r[e]||x(t.style,e,n[e])}else if("o"===e[0]&&"n"===e[1])o=e!==(e=e.replace(/Capture$/,"")),e=e.toLowerCase()in t?e.toLowerCase().slice(2):e.slice(2),t.l||(t.l={}),t.l[e+o]=n,n?r||t.addEventListener(e,o?I:R,o):t.removeEventListener(e,o?I:R,o);else if("dangerouslySetInnerHTML"!==e){if(i)e=e.replace(/xlink[H:h]/,"h").replace(/sName$/,"s");else if("href"!==e&&"list"!==e&&"form"!==e&&"tabIndex"!==e&&"download"!==e&&e in t)try{t[e]=null==n?"":n;break t}catch(t){}"function"==typeof n||(null!=n&&(!1!==n||"a"===e[0]&&"r"===e[1])?t.setAttribute(e,n):t.removeAttribute(e))}}function R(t){this.l[t.type+!1](r.event?r.event(t):t)}function I(t){this.l[t.type+!0](r.event?r.event(t):t)}function P(t,e,n,i,o,a,s,c,u){var l,d,p,m,h,_,v,y,w,E,A,T=e.type;if(void 0!==e.constructor)return null;null!=n.__h&&(u=n.__h,c=e.__e=n.__e,e.__h=null,a=[c]),(l=r.__b)&&l(e);try{t:if("function"==typeof T){if(y=e.props,w=(l=T.contextType)&&i[l.__c],E=l?w?w.props.value:l.__:i,n.__c?v=(d=e.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?e.__c=d=new T(y,E):(e.__c=d=new g(y,E),d.constructor=T,d.render=L),w&&w.sub(d),d.props=y,d.state||(d.state={}),d.context=E,d.__n=i,p=d.__d=!0,d.__h=[]),null==d.__s&&(d.__s=d.state),null!=T.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=f({},d.__s)),f(d.__s,T.getDerivedStateFromProps(y,d.__s))),m=d.props,h=d.state,p)null==T.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(null==T.getDerivedStateFromProps&&y!==m&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(y,E),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(y,d.__s,E)||e.__v===n.__v){d.props=y,d.state=d.__s,e.__v!==n.__v&&(d.__d=!1),d.__v=e,e.__e=n.__e,e.__k=n.__k,e.__k.forEach((function(t){t&&(t.__=e)})),d.__h.length&&s.push(d);break t}null!=d.componentWillUpdate&&d.componentWillUpdate(y,d.__s,E),null!=d.componentDidUpdate&&d.__h.push((function(){d.componentDidUpdate(m,h,_)}))}d.context=E,d.props=y,d.state=d.__s,(l=r.__r)&&l(e),d.__d=!1,d.__v=e,d.__P=t,l=d.render(d.props,d.state,d.context),d.state=d.__s,null!=d.getChildContext&&(i=f(f({},i),d.getChildContext())),p||null==d.getSnapshotBeforeUpdate||(_=d.getSnapshotBeforeUpdate(m,h)),A=null!=l&&l.type===b&&null==l.key?l.props.children:l,k(t,Array.isArray(A)?A:[A],e,n,i,o,a,s,c,u),d.base=e.__e,e.__h=null,d.__h.length&&s.push(d),v&&(d.__E=d.__=null),d.__e=!1}else null==a&&e.__v===n.__v?(e.__k=n.__k,e.__e=n.__e):e.__e=D(n.__e,e,n,i,o,a,s,u);(l=r.diffed)&&l(e)}catch(t){e.__v=null,(u||null!=a)&&(e.__e=c,e.__h=!!u,a[a.indexOf(c)]=null),r.__e(t,e,n)}}function O(t,e){r.__c&&r.__c(e,t),t.some((function(e){try{t=e.__h,e.__h=[],t.some((function(t){t.call(e)}))}catch(t){r.__e(t,e.__v)}}))}function D(t,e,n,r,i,o,a,s){var c,d,f,m,h=n.props,_=e.props,b=e.type,g=0;if("svg"===b&&(i=!0),null!=o)for(;g<o.length;g++)if((c=o[g])&&(c===t||(b?c.localName==b:3==c.nodeType))){t=c,o[g]=null;break}if(null==t){if(null===b)return document.createTextNode(_);t=i?document.createElementNS("http://www.w3.org/2000/svg",b):document.createElement(b,_.is&&_),o=null,s=!1}if(null===b)h===_||s&&t.data===_||(t.data=_);else{if(o=o&&l.slice.call(t.childNodes),d=(h=n.props||u).dangerouslySetInnerHTML,f=_.dangerouslySetInnerHTML,!s){if(null!=o)for(h={},m=0;m<t.attributes.length;m++)h[t.attributes[m].name]=t.attributes[m].value;(f||d)&&(f&&(d&&f.__html==d.__html||f.__html===t.innerHTML)||(t.innerHTML=f&&f.__html||""))}if(function(t,e,n,r,i){var o;for(o in n)"children"===o||"key"===o||o in e||S(t,o,null,n[o],r);for(o in e)i&&"function"!=typeof e[o]||"children"===o||"key"===o||"value"===o||"checked"===o||n[o]===e[o]||S(t,o,e[o],n[o],r)}(t,_,h,i,s),f)e.__k=[];else if(g=e.props.children,k(t,Array.isArray(g)?g:[g],e,n,r,i&&"foreignObject"!==b,o,a,t.firstChild,s),null!=o)for(g=o.length;g--;)null!=o[g]&&p(o[g]);s||("value"in _&&void 0!==(g=_.value)&&(g!==t.value||"progress"===b&&!g)&&S(t,"value",g,h.value,!1),"checked"in _&&void 0!==(g=_.checked)&&g!==t.checked&&S(t,"checked",g,h.checked,!1))}return t}function M(t,e,n){try{"function"==typeof t?t(e):t.current=e}catch(t){r.__e(t,n)}}function N(t,e,n){var i,o,a;if(r.unmount&&r.unmount(t),(i=t.ref)&&(i.current&&i.current!==t.__e||M(i,null,e)),n||"function"==typeof t.type||(n=null!=(o=t.__e)),t.__e=t.__d=void 0,null!=(i=t.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(t){r.__e(t,e)}i.base=i.__P=null}if(i=t.__k)for(a=0;a<i.length;a++)i[a]&&N(i[a],e,n);null!=o&&p(o)}function L(t,e,n){return this.constructor(t,n)}function U(t,e,n){var i,o,a;r.__&&r.__(t,e),o=(i="function"==typeof n)?null:n&&n.__k||e.__k,a=[],P(e,t=(!i&&n||e).__k=m(b,null,[t]),o||u,u,void 0!==e.ownerSVGElement,!i&&n?[n]:o?null:e.firstChild?l.slice.call(e.childNodes):null,a,!i&&n?n:o?o.__e:e.firstChild,i),O(a,t)}function B(t,e){U(t,e,B)}function X(t,e,n){var r,i,o,a=arguments,s=f({},t.props);for(o in e)"key"==o?r=e[o]:"ref"==o?i=e[o]:s[o]=e[o];if(arguments.length>3)for(n=[n],o=3;o<arguments.length;o++)n.push(a[o]);return null!=n&&(s.children=n),h(t.type,s,r||t.key,i||t.ref,null)}function H(t,e){var n={__c:e="__cC"+c++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some(w)},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r={__e:function(t,e){for(var n,r,i;e=e.__;)if((n=e.__c)&&!n.__)try{if((r=n.constructor)&&null!=r.getDerivedStateFromError&&(n.setState(r.getDerivedStateFromError(t)),i=n.__d),null!=n.componentDidCatch&&(n.componentDidCatch(t),i=n.__d),i)return n.__E=n}catch(e){t=e}throw t},__v:0},i=function(t){return null!=t&&void 0===t.constructor},g.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=f({},this.state),"function"==typeof t&&(t=t(f({},n),this.props)),t&&f(n,t),null!=t&&this.__v&&(e&&this.__h.push(e),w(this))},g.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),w(this))},g.prototype.render=b,o=[],a="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,E.__r=0,c=0},function(t,e,n){"use strict";e.a=class{static get cssClasses(){return{}}static get strings(){return{}}static get numbers(){return{}}static get defaultAdapter(){return{}}constructor(t={}){this.adapter_=t}init(){}destroy(){}}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},t.exports.default=t.exports,t.exports.__esModule=!0,n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=n(1);class i{static attachTo(t){return new i(t,new r.a)}constructor(t,e,...n){this.root_=t,this.initialize(...n),this.foundation_=void 0===e?this.getDefaultFoundation():e,this.foundation_.init(),this.initialSyncWithDOM()}initialize(){}getDefaultFoundation(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")}initialSyncWithDOM(){}destroy(){this.foundation_.destroy()}listen(t,e){this.root_.addEventListener(t,e)}unlisten(t,e){this.root_.removeEventListener(t,e)}emit(t,e,n=!1){let r;"function"==typeof CustomEvent?r=new CustomEvent(t,{detail:e,bubbles:n}):(r=document.createEvent("CustomEvent"),r.initCustomEvent(t,n,!1,e)),this.root_.dispatchEvent(r)}}e.a=i},function(t,e,n){"use strict";n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return c}));const r={animationstart:{noPrefix:"animationstart",webkitPrefix:"webkitAnimationStart",styleProperty:"animation"},animationend:{noPrefix:"animationend",webkitPrefix:"webkitAnimationEnd",styleProperty:"animation"},animationiteration:{noPrefix:"animationiteration",webkitPrefix:"webkitAnimationIteration",styleProperty:"animation"},transitionend:{noPrefix:"transitionend",webkitPrefix:"webkitTransitionEnd",styleProperty:"transition"}},i={animation:{noPrefix:"animation",webkitPrefix:"-webkit-animation"},transform:{noPrefix:"transform",webkitPrefix:"-webkit-transform"},transition:{noPrefix:"transition",webkitPrefix:"-webkit-transition"}};function o(t,e){if(!function(t){return void 0!==t.document&&"function"==typeof t.document.createElement}(t)||!function(t){return t in r||t in i}(e))return e;const n=e in r?r:i,o=t.document.createElement("div");let a="";return a=n===r?function(t,e,n){return e[t].styleProperty in n.style?e[t].noPrefix:e[t].webkitPrefix}(e,n,o):n[e].noPrefix in o.style?n[e].noPrefix:n[e].webkitPrefix,a}const a=["transform","WebkitTransform","MozTransform","OTransform","MSTransform"];function s(t,e){return o(t,e)}function c(t,e){return o(t,e)}},function(t,e){t.exports=function(t){return t&&t.__esModule?t:{default:t}},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}t.exports=function(t,e,r){return e&&n(t.prototype,e),r&&n(t,r),t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(19).default,i=n(34);t.exports=function(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?i(t):e},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(36);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";n.r(e),n.d(e,"stylesheet",(function(){return r})),n.d(e,"insert",(function(){return i})),n.d(e,"enable",(function(){return a})),n.d(e,"disable",(function(){return s}));function r(t){return t}function i(t){const e=document.createDocumentFragment();Object.entries(t).forEach(([t,n])=>{const r=document.createElement("style");void 0!==n.id&&(r.id=n.id),r.textContent=n.css,r.media=n.condition(window)?"all":"not all",e.appendChild(r)}),document.documentElement.appendChild(e)}const o=t=>e=>{const n=document.getElementById(e.id);null!==n&&n.setAttribute("media",t)},a=o("all"),s=o("not all")},function(t,e,n){"use strict";n.r(e),n.d(e,"operation",(function(){return a})),n.d(e,"run",(function(){return s}));function r(t){return"number"==typeof t}function i(t){return"string"==typeof t}function o(t){return null===t}function a(t){return t}function s(t){!function e(n,i,o){const a=r(o)&&o<=0,s=[],u=[],l=document.readyState;for(const t of n){(void 0===t.deferUntil||t.deferUntil(l)?s:u).push(t)}for(const t of s){const e=c(t);if(void 0!==e)switch(e.reason){case 0:a?i.push({result:e,operation:t}):u.push(t);break;case 1:i.push({result:e,operation:t})}}u.length>0?setTimeout(()=>e(u,i,r(o)?o-1:t.tryUntil(l)?t.extraTries:void 0),t.interval):i.length>0&&t.handleFailures(i)}(t.operations.filter(t=>t.condition(window)),[])}function c(t){const e=void 0===t.dependencies?{}:t.dependencies,n=Object.entries(e).map(([t,e])=>({key:t,selector:e,element:document.querySelector(e)})),r=n.filter(t=>o(t.element));if(r.length>0)return{reason:0,dependencies:r};const a=n.reduce((t,e)=>Object.defineProperty(t,e.key,{value:e.element}),{});return i(s=t.action(a))?{reason:1,message:s}:void 0;var s}},function(t,e,n){"use strict";n.r(e),n.d(e,"ALWAYS",(function(){return r})),n.d(e,"NEVER",(function(){return i})),n.d(e,"DOMCONTENTLOADED",(function(){return o})),n.d(e,"LOAD",(function(){return a}));const r=()=>!0,i=()=>!1,o=t=>"loading"!==t,a=t=>"complete"===t},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(30)),o={id:i.default.name,name:i.default.name,description:i.default.description,version:i.default.version,author:i.default.author,homepage:i.default.homepage,support:i.default.bugs.url,hostname:"youtube.com",sitename:"youtube",repositoryURL:i.default.repository.url,license:i.default.license,run_at:"document-idle",releaseBranch:"gh-pages"};e.default=o},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.MaterialComponent=void 0;var i=r(n(6)),o=r(n(7)),a=r(n(8)),s=r(n(2)),c=r(n(9)),u=r(n(19)),l=n(64),d=n(23),f=n(0),p=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,u.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},m=["disabled"],h=function(t){function e(){return(0,i.default)(this,e),(0,a.default)(this,(0,s.default)(e).apply(this,arguments))}return(0,c.default)(e,t),(0,o.default)(e,[{key:"render",value:function(t){this.classText||(this.classText=this.buildClassName(t));var e=t,n=e.className||e.class||"";e.class&&delete e.class,e.className&&delete e.className;var r=this.materialDom(e),i="attributes";return"props"in r?(i="props",r.props=r.props||{}):r.attributes=r.attributes||{},r[i].className="".concat(n," ").concat(this.getClassName(r)).split(" ").filter((function(t,e,n){return n.indexOf(t)===e&&""!==t})).join(" "),this.mdcProps.forEach((function(t){t in m||delete r[i][t]})),r}},{key:"componentDidMount",value:function(){this.props.ripple&&this.control&&(this.ripple=new l.MDCRipple(this.control))}},{key:"componentWillReceiveProps",value:function(t){if(this.MDComponent&&this.mdcNotifyProps){var e=!0,n=!1,r=void 0;try{for(var i,o=this.mdcNotifyProps[Symbol.iterator]();!(e=(i=o.next()).done);e=!0){var a=i.value;this.props[a]!==t[a]&&(this.MDComponent[a]=t[a])}}catch(t){n=!0,r=t}finally{try{e||null==o.return||o.return()}finally{if(n)throw r}}}var s=!0,c=!1,u=void 0;try{for(var l,d=this.mdcProps[Symbol.iterator]();!(s=(l=d.next()).done);s=!0){var f=l.value;if(this.props[f]!==t[f]){this.classText=this.buildClassName(t);break}}}catch(t){c=!0,u=t}finally{try{s||null==d.return||d.return()}finally{if(c)throw u}}}},{key:"componentWillUnmount",value:function(){this.ripple&&this.ripple.destroy()}},{key:"afterComponentDidMount",value:function(){if(this.MDComponent&&this.mdcNotifyProps){var t=!0,e=!1,n=void 0;try{for(var r,i=this.mdcNotifyProps[Symbol.iterator]();!(t=(r=i.next()).done);t=!0){var o=r.value;this.MDComponent[o]=this.props[o]}}catch(t){e=!0,n=t}finally{try{t||null==i.return||i.return()}finally{if(e)throw n}}}}},{key:"setControlRef",value:function(t){this.control=t}},{key:"buildClassName",value:function(t){var e="mdc-"+this.componentName;for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];"boolean"==typeof r&&r&&-1!==this.mdcProps.indexOf(n)&&(e+=" mdc-".concat(this.componentName,"--").concat(n))}return e}},{key:"getClassName",value:function(t){if(!t)return"";var e="attributes";"props"in t?(e="props",t.props=t.props||{}):t.attributes=t.attributes||{};var n=t[e]=t[e]||{},r=this.classText;return n.class&&(r+=" "+n.class),n.className&&n.className!==n.class&&(r+=" "+n.className),r}}]),e}(f.Component);e.MaterialComponent=h,p([d.bind],h.prototype,"setControlRef",null);var _=h;e.default=_},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",r=t[3];if(!r)return n;if(e&&"function"==typeof btoa){var i=(a=r,s=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(s),"/*# ".concat(c," */")),o=r.sources.map((function(t){return"/*# sourceURL=".concat(r.sourceRoot||"").concat(t," */")}));return[n].concat(o).concat([i]).join("\n")}var a,s,c;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,r){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(r)for(var o=0;o<this.length;o++){var a=this[o][0];null!=a&&(i[a]=!0)}for(var s=0;s<t.length;s++){var c=[].concat(t[s]);r&&i[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),e.push(c))}},e}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.XPATH=void 0,e.XPATH={APP_RENDER_ROOT:'//ytd-playlist-sidebar-renderer/div[@id="items"]/*[last()]',YT_PLAYLIST_SIDEBAR_ITEMS:'//ytd-playlist-sidebar-renderer/div[@id="items"]',YT_PLAYLIST_VIDEO_RENDERERS:"//ytd-playlist-video-renderer",YT_NUMBERS_OF_VIDEOS_IN_PLAYLIST:"//ytd-playlist-sidebar-primary-info-renderer/div/yt-formatted-string/span[1]"},e.default={XPATH:e.XPATH}},function(t,e,n){"use strict";n.r(e),n.d(e,"jsx",(function(){return i})),n.d(e,"jsxs",(function(){return i})),n.d(e,"jsxDEV",(function(){return i}));var r=n(0);function i(t,e,n,i,o){var a={};for(var s in e)"ref"!=s&&(a[s]=e[s]);var c,u,l={type:t,props:a,key:n,ref:e&&e.ref,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:++r.options.__v,__source:i,__self:o};if("function"==typeof t&&(c=t.defaultProps))for(u in c)void 0===a[u]&&(a[u]=c[u]);return r.options.vnode&&r.options.vnode(l),l}n.d(e,"Fragment",(function(){return r.Fragment}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){const n=[],r=document.evaluate(t,e||document,void 0,XPathResult.ORDERED_NODE_SNAPSHOT_TYPE),i=r.snapshotLength;for(let t=0;t<i;t+=1)n.push(r.snapshotItem(t));return n}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?(t.exports=n=function(t){return typeof t},t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.default=t.exports,t.exports.__esModule=!0),n(e)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.YT_LOCATION_CHANGE_EVENT=e.APP_ROOT_ID=e.HOSTNAME=e.NAME=void 0;const i=r(n(13));e.NAME=i.default.sitename,e.HOSTNAME=i.default.hostname,e.APP_ROOT_ID=i.default.id,e.YT_LOCATION_CHANGE_EVENT="yt-navigate-finish"},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.LinearProgress=void 0;var i=r(n(6)),o=r(n(7)),a=r(n(8)),s=r(n(2)),c=r(n(22)),u=r(n(9)),l=n(65),d=n(0),f=function(t){function e(){var t;return(0,i.default)(this,e),(t=(0,a.default)(this,(0,s.default)(e).apply(this,arguments))).componentName="linear-progress",t.mdcProps=["reversed","indeterminate"],t.themeProps=["primary","secondary"],t.mdcNotifyProps=["progress"],t}return(0,u.default)(e,t),(0,o.default)(e,[{key:"componentDidMount",value:function(){(0,c.default)((0,s.default)(e.prototype),"componentDidMount",this).call(this),this.control&&(this.MDComponent=new l.MDCLinearProgress(this.control),this.MDComponent.determinate=!this.props.indeterminate,this.MDComponent.reverse=!!this.props.reversed),this.afterComponentDidMount()}},{key:"componentWillReceiveProps",value:function(t){(0,c.default)((0,s.default)(e.prototype),"componentWillReceiveProps",this).call(this,t),this.MDComponent&&(this.MDComponent.determinate=!this.props.indeterminate,this.MDComponent.reverse=!!t.reversed)}},{key:"componentWillUnmount",value:function(){(0,c.default)((0,s.default)(e.prototype),"componentWillUnmount",this).call(this),this.MDComponent&&this.MDComponent.destroy()}},{key:"materialDom",value:function(t){return(0,d.h)("div",Object.assign({role:"progressbar"},t,{ref:this.setControlRef}),(0,d.h)("div",{className:"mdc-linear-progress__buffering-dots"}),(0,d.h)("div",{className:"mdc-linear-progress__buffer"}),(0,d.h)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__primary-bar"},(0,d.h)("span",{className:"mdc-linear-progress__bar-inner"})),(0,d.h)("div",{className:"mdc-linear-progress__bar mdc-linear-progress__secondary-bar"},(0,d.h)("span",{className:"mdc-linear-progress__bar-inner"})))}}]),e}(r(n(14)).default);e.LinearProgress=f;var p=f;e.default=p},function(t,e,n){var r=n(35);function i(e,n,o){return"undefined"!=typeof Reflect&&Reflect.get?(t.exports=i=Reflect.get,t.exports.default=t.exports,t.exports.__esModule=!0):(t.exports=i=function(t,e,n){var i=r(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(n):o.value}},t.exports.default=t.exports,t.exports.__esModule=!0),i(e,n,o||e)}t.exports=i,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r;function i(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(r||(r={})),e.bind=i,e.default=i},function(t,e){var n={utf8:{stringToBytes:function(t){return n.bin.stringToBytes(unescape(encodeURIComponent(t)))},bytesToString:function(t){return decodeURIComponent(escape(n.bin.bytesToString(t)))}},bin:{stringToBytes:function(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e},bytesToString:function(t){for(var e=[],n=0;n<t.length;n++)e.push(String.fromCharCode(t[n]));return e.join("")}}};t.exports=n},function(t,e,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},a=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const s=n(67),c=n(63),u=o(n(26)),l=a(n(27)),d=o(n(20)),f=a(n(57)),p=a(n(13)),m=c.errors.failureDescriber({siteName:d.NAME,extensionName:p.default.name,location:document.location});c.userscripter.run({id:p.default.id,name:p.default.name,initialAction:()=>c.log.log(`${p.default.name} ${p.default.version}`),stylesheets:f.default,operationsPlan:{operations:l.default,interval:u.OPERATIONS_INTERVAL,tryUntil:c.environment.DOMCONTENTLOADED,extraTries:u.OPERATIONS_EXTRA_TRIES,handleFailures:t=>t.forEach(s.compose(c.log.error,m))}})},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.OPERATIONS_EXTRA_TRIES=e.OPERATIONS_INTERVAL=void 0,e.OPERATIONS_INTERVAL=200,e.OPERATIONS_EXTRA_TRIES=3},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(11),o=n(12),a=n(28),s=r(n(29)),c=r(n(31)),u=n(16),l=r(n(32));function d(){const t=new URL(window.location.href).searchParams.get("list"),e={DEVICE:window.ytcfg.data_.DEVICE,DELEGATED_SESSION_ID:window.ytcfg.data_.DELEGATED_SESSION_ID,ID_TOKEN:window.ytcfg.data_.ID_TOKEN,INNERTUBE_API_KEY:window.ytcfg.data_.INNERTUBE_API_KEY,INNERTUBE_CONTEXT_CLIENT_NAME:window.ytcfg.data_.INNERTUBE_CONTEXT_CLIENT_NAME,INNERTUBE_CONTEXT_CLIENT_VERSION:window.ytcfg.data_.INNERTUBE_CONTEXT_CLIENT_VERSION,PAGE_BUILD_LABEL:window.ytcfg.data_.PAGE_BUILD_LABEL,PAGE_CL:window.ytcfg.data_.PAGE_CL,VISITOR_DATA:window.ytcfg.data_.VISITOR_DATA,SAPISID:a.get("SAPISID"),ORIGIN_URL:new URL(document.URL).origin};l.default(e,t,u.XPATH.APP_RENDER_ROOT)}function f(){c.default(window)&&d()}const p=[i.operation({description:"run main if the script start on playlist page",condition:c.default,action:()=>{d()},deferUntil:o.DOMCONTENTLOADED}),i.operation({description:"init yt-navigate-finish hooks to watch in-app navigation",condition:o.ALWAYS,action:()=>{s.default(f)},deferUntil:o.DOMCONTENTLOADED})];e.default=p},function(t,e,n){var r,i;!function(o){if(void 0===(i="function"==typeof(r=o)?r.call(e,n,e,t):r)||(t.exports=i),!0,t.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}((function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(r){function i(){}function o(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},i.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(t){}n=r.write?r.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in o)o[c]&&(s+="; "+c,!0!==o[c]&&(s+="="+o[c].split(";")[0]));return document.cookie=e+"="+n+s}}function a(t,n){if("undefined"!=typeof document){for(var i={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var u=e(s[0]);if(c=(r.read||r)(c,u)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(i[u]=c,t===u)break}catch(t){}}return t?i[t]:i}}return i.set=o,i.get=function(t){return a(t,!1)},i.getJSON=function(t){return a(t,!0)},i.remove=function(e,n){o(e,"",t(n,{expires:-1}))},i.defaults={},i.withConverter=n,i}((function(){}))}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});const r=n(20);e.default=function(t){window.addEventListener(r.YT_LOCATION_CHANGE_EVENT,t)}},function(t){t.exports=JSON.parse('{"name":"yt-playlists-delete-enhancer","description":"Add a button to remove videos watched with more than X percent from watch later playlist.","repository":{"type":"git","url":"[email protected]:avallete/yt-playlists-delete-enhancer.git"},"bugs":{"url":"https://github.com/avallete/yt-playlists-delete-enhancer/issues"},"version":"1.5.3","homepage":"https://github.com/avallete/yt-playlists-delete-enhancer#readme","license":"MIT","author":"Andrew Valleteau <[email protected]>"}')},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.default=t=>"/playlist"===new URL(t.location.href).pathname},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(17),o=n(0),a=r(n(18)),s=r(n(33));e.default=function(t,e,n){const r=a.default(n)[0];if(!r)throw new Error(`Cannot found ${n} in the DOM`);o.render(i.jsx(s.default,{config:t,playlistName:e},Date.now()),r,r.lastElementChild)}},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const o=n(17),a=n(0),s=i(n(21)),c=i(n(13)),u=i(n(37)),l=n(43),d=i(n(52)),f=i(n(53));class p extends a.Component{constructor(t){super(t),this.state={},this.removeVideoHandler=this.removeVideoHandler.bind(this)}componentDidMount(){return r(this,void 0,void 0,(function*(){try{const t=yield l.fetchAllPlaylistContent(this.props.config,this.props.playlistName);this.setState({playlist:t})}catch(t){this.setState({errorMessages:[t.message]})}}))}removeVideoHandler(t){return r(this,void 0,void 0,(function*(){const{playlist:e}=this.state;if(e&&e.continuations[0].videos.length>0){const[n,r]=d.default(e.continuations[0].videos,e=>e.percentDurationWatched>=t);if(n.length>0)try{yield l.removeVideosFromPlaylist(this.props.config,null==e?void 0:e.playlistId,n),e.continuations[0].videos=r,f.default(n),this.setState(Object.assign(Object.assign({},this.state),{playlist:e}))}catch(t){this.setState(Object.assign(Object.assign({},this.state),{errorMessages:[t.message]}))}}}))}shouldComponentUpdate(t){var e,n;return t.playlistName!==(null===(n=null===(e=this.state)||void 0===e?void 0:e.playlist)||void 0===n?void 0:n.playlistId)}componentDidUpdate(t){return r(this,void 0,void 0,(function*(){if(t.playlistName!==this.props.playlistName)try{this.setState({playlist:void 0,errorMessages:void 0});const t=yield l.fetchAllPlaylistContent(this.props.config,this.props.playlistName);this.setState({playlist:t})}catch(t){this.setState({errorMessages:[t.message]})}}))}render(){var t,e,n,r;return(null===(e=null===(t=this.state)||void 0===t?void 0:t.errorMessages)||void 0===e?void 0:e.length)?o.jsx("div",Object.assign({id:c.default.id},{children:null===(n=this.state)||void 0===n?void 0:n.errorMessages.join(" ")}),void 0):(null===(r=this.state)||void 0===r?void 0:r.playlist)?this.state.playlist.isEditable?o.jsx(u.default,{removeVideoHandler:this.removeVideoHandler},void 0):o.jsx("div",Object.assign({id:c.default.id},{children:"Playlist isn't editable"}),void 0):o.jsx("div",Object.assign({id:c.default.id},{children:o.jsx(s.default,{indeterminate:!0},void 0)}),void 0)}}e.default=p},function(t,e){t.exports=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){var r=n(2);t.exports=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=r(t)););return t},t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e){function n(e,r){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},t.exports.default=t.exports,t.exports.__esModule=!0,n(e,r)}t.exports=n,t.exports.default=t.exports,t.exports.__esModule=!0},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.REMOVE_BUTTON_ALT=e.INPUT_ALT=void 0;const o=n(17),a=n(38),s=i(n(39)),c=i(n(42)),u=i(n(21)),l=i(n(13));e.INPUT_ALT="Input number between 0 and 100 to choose under how much percentage of watched time a video should be removed",e.REMOVE_BUTTON_ALT="Remove button to start removing videos",e.default=function({removeVideoHandler:t,initialValue:n=100}){const[i,d]=a.useState(n),[f,p]=a.useState(!0);return o.jsx("div",Object.assign({id:l.default.id,className:"style-scope ytd-playlist-sidebar-renderer"},{children:o.jsxs("div",Object.assign({className:"style-scope ytd-menu-service-item-renderer",role:"option","aria-disabled":"false"},{children:[o.jsxs("p",{children:["Remove all videos that have been watched to at least ",i,"%"]},void 0),o.jsx(c.default,{min:0,max:100,step:5,value:i,onChange:function({detail:t}){const e=t.foundation_.value_;(function(t){const e=Number(t);return!!(Number.isSafeInteger(e)&&e>=0&&e<=100)})(e)&&d(e)},alt:e.INPUT_ALT,discrete:!0},void 0),o.jsxs(s.default,Object.assign({raised:!0,ripple:!0,secondary:!0,alt:e.REMOVE_BUTTON_ALT,disabled:!f,onClick:()=>r(this,void 0,void 0,(function*(){p(!1),yield t(i),p(!0)}))},{children:[!f&&o.jsx(u.default,{indeterminate:!0},void 0),f&&o.jsx("div",{children:"Remove!"},void 0)]}),void 0)]}),void 0)}),void 0)}},function(t,e,n){"use strict";n.r(e),n.d(e,"useState",(function(){return h})),n.d(e,"useReducer",(function(){return _})),n.d(e,"useEffect",(function(){return b})),n.d(e,"useLayoutEffect",(function(){return g})),n.d(e,"useRef",(function(){return v})),n.d(e,"useImperativeHandle",(function(){return y})),n.d(e,"useMemo",(function(){return w})),n.d(e,"useCallback",(function(){return E})),n.d(e,"useContext",(function(){return k})),n.d(e,"useDebugValue",(function(){return A})),n.d(e,"useErrorBoundary",(function(){return T}));var r,i,o,a=n(0),s=0,c=[],u=a.options.__b,l=a.options.__r,d=a.options.diffed,f=a.options.__c,p=a.options.unmount;function m(t,e){a.options.__h&&a.options.__h(i,t,s||e),s=0;var n=i.__H||(i.__H={__:[],__h:[]});return t>=n.__.length&&n.__.push({}),n.__[t]}function h(t){return s=1,_(P,t)}function _(t,e,n){var o=m(r++,2);return o.t=t,o.__c||(o.__=[n?n(e):P(void 0,e),function(t){var e=o.t(o.__[0],t);o.__[0]!==e&&(o.__=[e,o.__[1]],o.__c.setState({}))}],o.__c=i),o.__}function b(t,e){var n=m(r++,3);!a.options.__s&&I(n.__H,e)&&(n.__=t,n.__H=e,i.__H.__h.push(n))}function g(t,e){var n=m(r++,4);!a.options.__s&&I(n.__H,e)&&(n.__=t,n.__H=e,i.__h.push(n))}function v(t){return s=5,w((function(){return{current:t}}),[])}function y(t,e,n){s=6,g((function(){"function"==typeof t?t(e()):t&&(t.current=e())}),null==n?n:n.concat(t))}function w(t,e){var n=m(r++,7);return I(n.__H,e)&&(n.__=t(),n.__H=e,n.__h=t),n.__}function E(t,e){return s=8,w((function(){return t}),e)}function k(t){var e=i.context[t.__c],n=m(r++,9);return n.__c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function A(t,e){a.options.useDebugValue&&a.options.useDebugValue(e?e(t):t)}function T(t){var e=m(r++,10),n=h();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t){e.__&&e.__(t),n[1](t)}),[n[0],function(){n[1](void 0)}]}function C(){c.forEach((function(t){if(t.__P)try{t.__H.__h.forEach(S),t.__H.__h.forEach(R),t.__H.__h=[]}catch(e){t.__H.__h=[],a.options.__e(e,t.__v)}})),c=[]}a.options.__b=function(t){i=null,u&&u(t)},a.options.__r=function(t){l&&l(t),r=0;var e=(i=t.__c).__H;e&&(e.__h.forEach(S),e.__h.forEach(R),e.__h=[])},a.options.diffed=function(t){d&&d(t);var e=t.__c;e&&e.__H&&e.__H.__h.length&&(1!==c.push(e)&&o===a.options.requestAnimationFrame||((o=a.options.requestAnimationFrame)||function(t){var e,n=function(){clearTimeout(r),x&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);x&&(e=requestAnimationFrame(n))})(C)),i=void 0},a.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(S),t.__h=t.__h.filter((function(t){return!t.__||R(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],a.options.__e(n,t.__v)}})),f&&f(t,e)},a.options.unmount=function(t){p&&p(t);var e=t.__c;if(e&&e.__H)try{e.__H.__.forEach(S)}catch(t){a.options.__e(t,e.__v)}};var x="function"==typeof requestAnimationFrame;function S(t){var e=i;"function"==typeof t.__c&&t.__c(),i=e}function R(t){var e=i;t.__c=t.__(),i=e}function I(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function P(t,e){return"function"==typeof e?e(t):e}},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Button=e.ButtonIcon=void 0;var i=r(n(7)),o=r(n(6)),a=r(n(8)),s=r(n(2)),c=r(n(9)),u=n(0),l=r(n(14)),d=r(n(40)),f=r(n(41)),p=function(t){function e(){var t;return(0,o.default)(this,e),(t=(0,a.default)(this,(0,s.default)(e).apply(this,arguments))).componentName="button__icon",t}return(0,c.default)(e,t),e}(d.default);e.ButtonIcon=p;var m=function(t){function e(){var t;return(0,o.default)(this,e),(t=(0,a.default)(this,(0,s.default)(e).apply(this,arguments))).componentName="button",t.mdcProps=["dense","raised","unelevated","outlined"],t.themeProps=["primary","secondary"],t}return(0,c.default)(e,t),(0,i.default)(e,[{key:"materialDom",value:function(t){var e=t.href?"a":"button",n="";return this.themeProps.forEach((function(e){e in t&&!1!==t[e]&&(n+=(0,f.default)(e)+" ")})),(0,u.h)(e,Object.assign({ref:this.setControlRef},t,{className:n}),this.props.children)}}]),e}(l.default);e.Button=m;var h=function(t){function e(){return(0,o.default)(this,e),(0,a.default)(this,(0,s.default)(e).apply(this,arguments))}return(0,c.default)(e,t),e}(m);e.default=h,h.Icon=p},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Icon=void 0;var i=r(n(6)),o=r(n(7)),a=r(n(8)),s=r(n(2)),c=r(n(9)),u=n(0),l=function(t){function e(){var t;return(0,i.default)(this,e),(t=(0,a.default)(this,(0,s.default)(e).apply(this,arguments))).componentName="icon",t.mdcProps=[],t}return(0,c.default)(e,t),(0,o.default)(e,[{key:"materialDom",value:function(t){var e=["material-icons"];return t.className&&e.push(t.className),(0,u.h)("i",Object.assign({},t,{className:e.join(" ")}),t.children)}}]),e}(r(n(14)).default);e.Icon=l;var d=l;e.default=d},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"mdc-theme--".concat(t,"-bg")}},function(t,e,n){"use strict";var r=n(5);Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.Slider=void 0;var i=r(n(6)),o=r(n(7)),a=r(n(8)),s=r(n(2)),c=r(n(22)),u=r(n(9)),l=r(n(19)),d=n(66),f=n(23),p=n(0),m=r(n(14)),h=function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":(0,l.default)(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},_=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(t,r[i])&&(n[r[i]]=t[r[i]])}return n},b=function(t){function e(){var t;return(0,i.default)(this,e),(t=(0,a.default)(this,(0,s.default)(e).apply(this,arguments))).componentName="slider",t.mdcProps=["discrete"],t}return(0,u.default)(e,t),(0,o.default)(e,[{key:"componentDidMount",value:function(){(0,c.default)((0,s.default)(e.prototype),"componentDidMount",this).call(this),this.control&&(this.MDComponent=new d.MDCSlider(this.control),this.MDComponent.listen("MDCSlider:change",this.onChange),this.MDComponent.listen("MDCSlider:input",this.onInput)),this.setValue(this.props.value)}},{key:"componentWillUnmount",value:function(){(0,c.default)((0,s.default)(e.prototype),"componentWillUnmount",this).call(this),this.MDComponent&&(this.MDComponent.unlisten("MDCSlider:change",this.onChange),this.MDComponent.unlisten("MDCSlider:input",this.onInput),this.MDComponent.destroy())}},{key:"getValue",value:function(){if(this.MDComponent)return this.MDComponent.value}},{key:"setValue",value:function(t){var e=this.props,n=e.disabled,r=void 0!==n&&n,i=e.min,o=void 0===i?0:i,a=e.max,s=void 0===a?100:a,c=e.step;this.MDComponent&&(o>this.MDComponent.max?(this.MDComponent.max=s,this.MDComponent.min=o):(this.MDComponent.min=o,this.MDComponent.max=s),t&&(this.MDComponent.value=t),this.MDComponent.disabled=r,c&&(this.MDComponent.step=c))}},{key:"onChange",value:function(t){this.props.onChange&&this.props.onChange(t)}},{key:"onInput",value:function(t){this.props.onInput&&this.props.onInput(t)}},{key:"materialDom",value:function(t){var e=t.tabindex,n=void 0===e?0:e,r=_(t,["tabindex"]);return this.setValue(t),(0,p.h)("div",Object.assign({tabIndex:n,role:"slider","aria-label":"Select Value",ref:this.setControlRef},r),(0,p.h)("div",{class:"mdc-slider__track-container"},(0,p.h)("div",{class:"mdc-slider__track"})),(0,p.h)("div",{class:"mdc-slider__thumb-container"},r.discrete&&(0,p.h)("div",{class:"mdc-slider__pin"},(0,p.h)("span",{class:"mdc-slider__pin-value-marker"})),(0,p.h)("svg",{class:"mdc-slider__thumb",width:"21",height:"21"},(0,p.h)("circle",{cx:"10.5",cy:"10.5",r:"7.875"})),(0,p.h)("div",{class:"mdc-slider__focus-ring"})))}}]),e}(m.default);e.Slider=b,h([f.bind],b.prototype,"onChange",null),h([f.bind],b.prototype,"onInput",null);var g=b;e.default=g},function(t,e,n){"use strict";var r=this&&this.__awaiter||function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{c(r.next(t))}catch(t){o(t)}}function s(t){try{c(r.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}c((r=r.apply(t,e||[])).next())}))},i=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.removeVideosFromPlaylist=e.fetchAllPlaylistContent=void 0;const o=i(n(44)),a=n(51),s=new URL("https://www.youtube.com/youtubei/v1"),c=new URL(s+"/browse"),u=new URL(c+"/edit_playlist"),l=new URL("https://www.youtube.com/playlist"),d=["Content-Type","Authorization","X-Goog-Visitor-Id","X-YouTube-Client-Name","X-YouTube-Client-Version","X-Goog-AuthUser","X-Goog-PageId"],f=["X-YouTube-Client-Name","X-YouTube-Client-Version","X-YouTube-Device","X-YouTube-Identity-Token","X-YouTube-Page-CL","X-YouTube-Page-Label"];function p(t,e,n=new Date){const r=Math.floor(n.getTime()/1e3);return`${r}_${o.default(`${r} ${e} ${t}`)}`}function m(t,e=[]){const n={"Content-Type":"application/json","X-Goog-Visitor-Id":t.VISITOR_DATA,"X-YouTube-Client-Name":t.INNERTUBE_CONTEXT_CLIENT_NAME,"X-YouTube-Client-Version":t.INNERTUBE_CONTEXT_CLIENT_VERSION,"X-YouTube-Device":t.DEVICE,"X-YouTube-Identity-Token":t.ID_TOKEN,"X-YouTube-Page-CL":t.PAGE_CL,"X-YouTube-Page-Label":t.PAGE_BUILD_LABEL,"X-Goog-AuthUser":"0","X-Goog-PageId":t.DELEGATED_SESSION_ID,Authorization:"SAPISIDHASH "+p(t.ORIGIN_URL,t.SAPISID)},r={};for(const t of e)r[t]=n[t];return r}function h(t){return t.map(t=>{var e;return{videoId:t.playlistVideoRenderer.videoId,percentDurationWatched:(null===(e=t.playlistVideoRenderer.thumbnailOverlays[1].thumbnailOverlayResumePlaybackRenderer)||void 0===e?void 0:e.percentDurationWatched)||0}})}function _(t){const e=t[t.length-1];return e&&e.continuationItemRenderer?(t.pop(),{videos:h(t),continuationToken:e.continuationItemRenderer.continuationEndpoint.continuationCommand.token}):{videos:h(t)}}function b(t,e){return r(this,void 0,void 0,(function*(){const n=new URL(""+c),r=m(t,d),i={context:{client:{clientName:t.INNERTUBE_CONTEXT_CLIENT_NAME,clientVersion:t.INNERTUBE_CONTEXT_CLIENT_VERSION}},continuation:e.continuationToken};n.searchParams.append("key",t.INNERTUBE_API_KEY);const o=yield fetch(""+n,{credentials:"include",headers:r,body:JSON.stringify(i),method:"POST",mode:"cors"});return _((yield o.json()).onResponseReceivedActions[0].appendContinuationItemsAction.continuationItems)}))}e.fetchAllPlaylistContent=function(t,e){return r(this,void 0,void 0,(function*(){const n=yield function(t,e){return r(this,void 0,void 0,(function*(){const n=new URL(""+l),r=m(t,f);n.searchParams.append("list",e),n.searchParams.append("pbj","1");const i=yield fetch(""+n,{credentials:"include",headers:r,method:"GET",mode:"cors"}),o=(yield i.json())[1].response.contents.twoColumnBrowseResultsRenderer.tabs[0].tabRenderer.content.sectionListRenderer.contents[0].itemSectionRenderer.contents[0].playlistVideoListRenderer;if(!o)throw a.PlaylistEmptyError;return{playlistId:o.playlistId,isEditable:o.isEditable,canReorder:o.canReorder,continuations:[_(o.contents)]}}))}(t,e);if(n.isEditable){for(;void 0!==n.continuations[n.continuations.length-1].continuationToken;)n.continuations.push(yield b(t,n.continuations[n.continuations.length-1]));let e=[];for(const t of n.continuations)e=[...e,...t.videos];return n.continuations=[{videos:e}],n}throw a.PlaylistNotEditableError}))},e.removeVideosFromPlaylist=function(t,e,n){return r(this,void 0,void 0,(function*(){const r=new URL(""+u),i=m(t,d),o={actions:n.map(({videoId:t})=>({removedVideoId:t,action:"ACTION_REMOVE_VIDEO_BY_VIDEO_ID"})),context:{client:{clientName:t.INNERTUBE_CONTEXT_CLIENT_NAME,clientVersion:t.INNERTUBE_CONTEXT_CLIENT_VERSION}},params:"CAFAAQ%3D%3D",playlistId:e};r.searchParams.append("key",t.INNERTUBE_API_KEY);const a=yield fetch(""+r,{credentials:"include",headers:i,body:JSON.stringify(o),method:"POST",mode:"cors"});return"STATUS_SUCCEEDED"!==(yield a.json()).status}))}},function(t,e,n){(function(e){var r,i,o,a;r=n(50),i=n(24).utf8,o=n(24).bin,(a=function(t,n){var a=r.wordsToBytes(function(t){t.constructor==String?t=i.stringToBytes(t):void 0!==e&&"function"==typeof e.isBuffer&&e.isBuffer(t)?t=Array.prototype.slice.call(t,0):Array.isArray(t)||(t=t.toString());var n=r.bytesToWords(t),o=8*t.length,a=[],s=1732584193,c=-271733879,u=-1732584194,l=271733878,d=-1009589776;n[o>>5]|=128<<24-o%32,n[15+(o+64>>>9<<4)]=o;for(var f=0;f<n.length;f+=16){for(var p=s,m=c,h=u,_=l,b=d,g=0;g<80;g++){if(g<16)a[g]=n[f+g];else{var v=a[g-3]^a[g-8]^a[g-14]^a[g-16];a[g]=v<<1|v>>>31}var y=(s<<5|s>>>27)+d+(a[g]>>>0)+(g<20?1518500249+(c&u|~c&l):g<40?1859775393+(c^u^l):g<60?(c&u|c&l|u&l)-1894007588:(c^u^l)-899497514);d=l,l=u,u=c<<30|c>>>2,c=s,s=y}s+=p,c+=m,u+=h,l+=_,d+=b}return[s,c,u,l,d]}(t));return n&&n.asBytes?a:n&&n.asString?o.bytesToString(a):r.bytesToHex(a)})._blocksize=16,a._digestsize=20,t.exports=a}).call(this,n(45).Buffer)},function(t,e,n){"use strict";(function(t){var r=n(47),i=n(48),o=n(49);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=c.prototype:(null===t&&(t=new c(e)),t.length=e),t}function c(t,e,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return d(this,t)}return u(this,t,e,n)}function u(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);c.TYPED_ARRAY_SUPPORT?(t=e).__proto__=c.prototype:t=f(t,e);return t}(t,e,n,r):"string"==typeof e?function(t,e,n){"string"==typeof n&&""!==n||(n="utf8");if(!c.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|m(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(c.isBuffer(e)){var n=0|p(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||(r=e.length)!=r?s(t,0):f(t,e);if("Buffer"===e.type&&o(e.data))return f(t,e.data)}var r;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(t,e)}function l(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function d(t,e){if(l(e),t=s(t,e<0?0:0|p(e)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=s(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t){if(t>=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function m(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return H(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return V(t).length;default:if(r)return H(t).length;e=(""+e).toLowerCase(),r=!0}}function h(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return R(this,e,n);case"utf8":case"utf-8":return C(this,e,n);case"ascii":return x(this,e,n);case"latin1":case"binary":return S(this,e,n);case"base64":return T(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function _(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=c.from(e,r)),c.isBuffer(e))return 0===e.length?-1:g(t,e,n,r,i);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):g(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function g(t,e,n,r,i){var o,a=1,s=t.length,c=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,c/=2,n/=2}function u(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;o<s;o++)if(u(t,o)===u(e,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===c)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+c>s&&(n=s-c),o=n;o>=0;o--){for(var d=!0,f=0;f<c;f++)if(u(t,o+f)!==u(e,f)){d=!1;break}if(d)return o}return-1}function v(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function y(t,e,n,r){return z(H(e,t.length-n),t,n,r)}function w(t,e,n,r){return z(function(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}(e),t,n,r)}function E(t,e,n,r){return w(t,e,n,r)}function k(t,e,n,r){return z(V(e),t,n,r)}function A(t,e,n,r){return z(function(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function T(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function C(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o,a,s,c,u=t[i],l=null,d=u>239?4:u>223?3:u>191?2:1;if(i+d<=n)switch(d){case 1:u<128&&(l=u);break;case 2:128==(192&(o=t[i+1]))&&(c=(31&u)<<6|63&o)>127&&(l=c);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(c=(15&u)<<12|(63&o)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,d=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=d}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=4096));return n}(r)}e.Buffer=c,e.SlowBuffer=function(t){+t!=t&&(t=0);return c.alloc(+t)},e.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),c.poolSize=8192,c._augment=function(t){return t.__proto__=c.prototype,t},c.from=function(t,e,n){return u(null,t,e,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},c.allocUnsafe=function(t){return d(null,t)},c.allocUnsafeSlow=function(t){return d(null,t)},c.isBuffer=function(t){return!(null==t||!t._isBuffer)},c.compare=function(t,e){if(!c.isBuffer(t)||!c.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},c.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(t,e){if(!o(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return c.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=c.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!c.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},c.byteLength=m,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)_(this,e,e+1);return this},c.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)_(this,e,e+3),_(this,e+1,e+2);return this},c.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)_(this,e,e+7),_(this,e+1,e+6),_(this,e+2,e+5),_(this,e+3,e+4);return this},c.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?C(this,0,t):h.apply(this,arguments)},c.prototype.equals=function(t){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===c.compare(this,t)},c.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},c.prototype.compare=function(t,e,n,r,i){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),l=t.slice(e,n),d=0;d<s;++d)if(u[d]!==l[d]){o=u[d],a=l[d];break}return o<a?-1:a<o?1:0},c.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},c.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},c.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},c.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return v(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return w(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return A(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function x(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function S(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function R(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=X(t[o]);return i}function I(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function P(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function O(t,e,n,r,i,o){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function M(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function N(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function L(t,e,n,r,o){return o||N(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||N(t,0,n,8),i.write(t,e,n,r,52,8),n+8}c.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(t,e)).__proto__=c.prototype;else{var i=e-t;n=new c(i,void 0);for(var o=0;o<i;++o)n[o]=this[o+t]}return n},c.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},c.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},c.prototype.readUInt8=function(t,e){return e||P(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||P(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||P(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||P(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||P(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||P(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},c.prototype.readInt8=function(t,e){return e||P(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||P(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||P(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||P(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||P(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||P(t,4,this.length),i.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||P(t,8,this.length),i.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},c.prototype.writeUIntBE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||O(this,t,e,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);O(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||O(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return L(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return L(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,o=r-n;if(this===t&&n<e&&e<r)for(i=o-1;i>=0;--i)t[i+e]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i<o;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+o),e);return o},c.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!c.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;var o;if(e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o<n;++o)this[o]=t;else{var a=c.isBuffer(t)?t:H(new c(t,r).toString()),s=a.length;for(o=0;o<n-e;++o)this[o+e]=a[o%s]}return this};var B=/[^+\/0-9A-Za-z-_]/g;function X(t){return t<16?"0"+t.toString(16):t.toString(16)}function H(t,e){var n;e=e||1/0;for(var r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function V(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function z(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(46))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";e.byteLength=function(t){var e=u(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=u(t),a=r[0],s=r[1],c=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,d=s>0?a-4:a;for(n=0;n<d;n+=4)e=i[t.charCodeAt(n)]<<18|i[t.charCodeAt(n+1)]<<12|i[t.charCodeAt(n+2)]<<6|i[t.charCodeAt(n+3)],c[l++]=e>>16&255,c[l++]=e>>8&255,c[l++]=255&e;2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,c[l++]=255&e);1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,c[l++]=e>>8&255,c[l++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;a<s;a+=16383)o.push(l(t,a,a+16383>s?s:a+16383));1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"="));return o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,c=a.length;s<c;++s)r[s]=a[s],i[a.charCodeAt(s)]=s;function u(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s<n;s+=3)i=(t[s]<<16&16711680)+(t[s+1]<<8&65280)+(255&t[s+2]),a.push(r[(o=i)>>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,c=(1<<s)-1,u=c>>1,l=-7,d=n?i-1:0,f=n?-1:1,p=t[e+d];for(d+=f,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+t[e+d],d+=f,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+d],d+=f,l-=8);if(0===o)o=1-u;else{if(o===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=u}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,c,u=8*o-i-1,l=(1<<u)-1,d=l>>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,m=r?1:-1,h=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-a))<1&&(a--,c*=2),(e+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=l?(s=0,a=l):a+d>=1?(s=(e*c-1)*Math.pow(2,i),a+=d):(s=e*Math.pow(2,d-1)*Math.pow(2,i),a=0));i>=8;t[n+p]=255&s,p+=m,s/=256,i-=8);for(a=a<<i|s,u+=i;u>0;t[n+p]=255&a,p+=m,a/=256,u-=8);t[n+p-m]|=128*h}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){var n,r;n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",r={rotl:function(t,e){return t<<e|t>>>32-e},rotr:function(t,e){return t<<32-e|t>>>e},endian:function(t){if(t.constructor==Number)return 16711935&r.rotl(t,8)|4278255360&r.rotl(t,24);for(var e=0;e<t.length;e++)t[e]=r.endian(t[e]);return t},randomBytes:function(t){for(var e=[];t>0;t--)e.push(Math.floor(256*Math.random()));return e},bytesToWords:function(t){for(var e=[],n=0,r=0;n<t.length;n++,r+=8)e[r>>>5]|=t[n]<<24-r%32;return e},wordsToBytes:function(t){for(var e=[],n=0;n<32*t.length;n+=8)e.push(t[n>>>5]>>>24-n%32&255);return e},bytesToHex:function(t){for(var e=[],n=0;n<t.length;n++)e.push((t[n]>>>4).toString(16)),e.push((15&t[n]).toString(16));return e.join("")},hexToBytes:function(t){for(var e=[],n=0;n<t.length;n+=2)e.push(parseInt(t.substr(n,2),16));return e},bytesToBase64:function(t){for(var e=[],r=0;r<t.length;r+=3)for(var i=t[r]<<16|t[r+1]<<8|t[r+2],o=0;o<4;o++)8*r+6*o<=8*t.length?e.push(n.charAt(i>>>6*(3-o)&63)):e.push("=");return e.join("")},base64ToBytes:function(t){t=t.replace(/[^A-Z0-9+\/]/gi,"");for(var e=[],r=0,i=0;r<t.length;i=++r%4)0!=i&&e.push((n.indexOf(t.charAt(r-1))&Math.pow(2,-2*i+8)-1)<<2*i|n.indexOf(t.charAt(r))>>>6-2*i);return e}},t.exports=r},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PlaylistEmptyError=e.PlaylistVideosRemoveError=e.PlaylistDataFetchError=e.PlaylistNotEditableError=void 0,e.PlaylistNotEditableError=new Error("playlist is not editable"),e.PlaylistDataFetchError=new Error("cannot fetch some data for the playlist"),e.PlaylistVideosRemoveError=new Error("cannot remove videos from playlist"),e.PlaylistEmptyError=new Error("playlist is empty")},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){const n=[[],[]];for(const r of t)n[e(r)?0:1].push(r);return n}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=r(n(54)),o=r(n(56));e.default=function(t){try{i.default(t),o.default(t.length)}catch(t){window.location.reload()}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(16),o=r(n(18)),a=r(n(55));e.default=function(t){const e=o.default(i.XPATH.YT_PLAYLIST_VIDEO_RENDERERS);if(e.length>=t.length){const n=a.default(t,e,t=>t.videoId,t=>t.data.videoId);if(n){const t=Object.values(n);for(const e of t)e.hidden=!0;return}}throw new Error("some videos are missing from the UI, cannot dynamically delete")}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,r){const i={};if(e.length<t.length)return!1;for(const e of t)i[n(e)]=void 0;let o=0;for(const n of e){const e=r(n);if(!0===Object.prototype.hasOwnProperty.call(i,e)&&void 0===i[e]&&(i[e]=n,o+=1,o===t.length))return i}return o===t.length&&i}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(16),o=r(n(18));e.default=function(t){const e=o.default(i.XPATH.YT_NUMBERS_OF_VIDEOS_IN_PLAYLIST)[0];if(!e)throw new Error("span with the number of videos in playlist not found in DOM");{const n=Number(e.textContent)-t;e.textContent=""+n}}},function(t,e,n){"use strict";var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0});const i=n(12),o=n(10),a=r(n(58)),s={preactMaterial:o.stylesheet({condition:i.ALWAYS,css:a.default})};e.default=s},function(t,e,n){var r=n(59);t.exports="string"==typeof r?r:r.toString()},function(t,e,n){var r=n(15),i=n(60),o=n(61),a=n(62);(e=r(!1)).i(i),e.i(o),e.i(a),e.push([t.i,"#yt-playlists-delete-enhancer{--mdc-theme-primary: #e10000;--mdc-theme-on-primary: #fff;--mdc-theme-accent: #e10000;--mdc-theme-secondary: #e10000;--mdc-theme-on-secondary: #fff;--mdc-theme-background: #fff;--mdc-theme-surface: #fff;--mdc-theme-on-surface: #fff}\n",""]),e.locals={"yt-playlists-delete-enhancer":"yt-playlists-delete-enhancer"},t.exports=e},function(t,e,n){(e=n(15)(!1)).push([t.i,'/*!\n Material Components for the Web\n Copyright (c) 2018 Google Inc.\n License: MIT\n*/\n@-webkit-keyframes mdc-ripple-fg-radius-in {\n  from {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n            animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n            transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1); }\n  to {\n    -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n            transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); } }\n\n@keyframes mdc-ripple-fg-radius-in {\n  from {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n            animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);\n    -webkit-transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1);\n            transform: translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1); }\n  to {\n    -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n            transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); } }\n\n@-webkit-keyframes mdc-ripple-fg-opacity-in {\n  from {\n    -webkit-animation-timing-function: linear;\n            animation-timing-function: linear;\n    opacity: 0; }\n  to {\n    opacity: var(--mdc-ripple-fg-opacity, 0); } }\n\n@keyframes mdc-ripple-fg-opacity-in {\n  from {\n    -webkit-animation-timing-function: linear;\n            animation-timing-function: linear;\n    opacity: 0; }\n  to {\n    opacity: var(--mdc-ripple-fg-opacity, 0); } }\n\n@-webkit-keyframes mdc-ripple-fg-opacity-out {\n  from {\n    -webkit-animation-timing-function: linear;\n            animation-timing-function: linear;\n    opacity: var(--mdc-ripple-fg-opacity, 0); }\n  to {\n    opacity: 0; } }\n\n@keyframes mdc-ripple-fg-opacity-out {\n  from {\n    -webkit-animation-timing-function: linear;\n            animation-timing-function: linear;\n    opacity: var(--mdc-ripple-fg-opacity, 0); }\n  to {\n    opacity: 0; } }\n\n.mdc-ripple-surface--test-edge-var-bug {\n  --mdc-ripple-surface-test-edge-var: 1px solid #000;\n  visibility: hidden; }\n  .mdc-ripple-surface--test-edge-var-bug::before {\n    border: var(--mdc-ripple-surface-test-edge-var); }\n\n.mdc-button {\n  font-family: Roboto, sans-serif;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-font-smoothing: antialiased;\n  font-size: 0.875rem;\n  line-height: 2.25rem;\n  font-weight: 500;\n  letter-spacing: 0.08929em;\n  text-decoration: none;\n  text-transform: uppercase;\n  --mdc-ripple-fg-size: 0;\n  --mdc-ripple-left: 0;\n  --mdc-ripple-top: 0;\n  --mdc-ripple-fg-scale: 1;\n  --mdc-ripple-fg-translate-end: 0;\n  --mdc-ripple-fg-translate-start: 0;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n  will-change: transform, opacity;\n  padding: 0 8px 0 8px;\n  display: inline-flex;\n  position: relative;\n  align-items: center;\n  justify-content: center;\n  box-sizing: border-box;\n  min-width: 64px;\n  height: 36px;\n  border: none;\n  outline: none;\n  /* @alternate */\n  line-height: inherit;\n  -webkit-user-select: none;\n     -moz-user-select: none;\n      -ms-user-select: none;\n          user-select: none;\n  -webkit-appearance: none;\n  overflow: hidden;\n  vertical-align: middle;\n  border-radius: 2px; }\n  .mdc-button::before, .mdc-button::after {\n    position: absolute;\n    border-radius: 50%;\n    opacity: 0;\n    pointer-events: none;\n    content: ""; }\n  .mdc-button::before {\n    transition: opacity 15ms linear;\n    z-index: 1; }\n  .mdc-button.mdc-ripple-upgraded::before {\n    -webkit-transform: scale(var(--mdc-ripple-fg-scale, 1));\n            transform: scale(var(--mdc-ripple-fg-scale, 1)); }\n  .mdc-button.mdc-ripple-upgraded::after {\n    top: 0;\n    /* @noflip */\n    left: 0;\n    -webkit-transform: scale(0);\n            transform: scale(0);\n    -webkit-transform-origin: center center;\n            transform-origin: center center; }\n  .mdc-button.mdc-ripple-upgraded--unbounded::after {\n    top: var(--mdc-ripple-top, 0);\n    /* @noflip */\n    left: var(--mdc-ripple-left, 0); }\n  .mdc-button.mdc-ripple-upgraded--foreground-activation::after {\n    -webkit-animation: 225ms :local(mdc-ripple-fg-radius-in) forwards, 75ms :local(mdc-ripple-fg-opacity-in) forwards;\n            animation: 225ms :local(mdc-ripple-fg-radius-in) forwards, 75ms :local(mdc-ripple-fg-opacity-in) forwards; }\n  .mdc-button.mdc-ripple-upgraded--foreground-deactivation::after {\n    -webkit-animation: 150ms :local(mdc-ripple-fg-opacity-out);\n            animation: 150ms :local(mdc-ripple-fg-opacity-out);\n    -webkit-transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1));\n            transform: translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1)); }\n  .mdc-button::before, .mdc-button::after {\n    top: calc(50% - 100%);\n    /* @noflip */\n    left: calc(50% - 100%);\n    width: 200%;\n    height: 200%; }\n  .mdc-button.mdc-ripple-upgraded::after {\n    width: var(--mdc-ripple-fg-size, 100%);\n    height: var(--mdc-ripple-fg-size, 100%); }\n  .mdc-button::-moz-focus-inner {\n    padding: 0;\n    border: 0; }\n  .mdc-button:active {\n    outline: none; }\n  .mdc-button:hover {\n    cursor: pointer; }\n  .mdc-button:disabled {\n    background-color: transparent;\n    color: rgba(0, 0, 0, 0.37);\n    cursor: default;\n    pointer-events: none; }\n  .mdc-button:not(:disabled) {\n    background-color: transparent; }\n  .mdc-button:not(:disabled) {\n    color: #6200ee;\n    /* @alternate */\n    color: var(--mdc-theme-primary, #6200ee); }\n  .mdc-button::before, .mdc-button::after {\n    background-color: #6200ee; }\n    @supports not (-ms-ime-align: auto) {\n      .mdc-button::before, .mdc-button::after {\n        /* @alternate */\n        background-color: var(--mdc-theme-primary, #6200ee); } }\n  .mdc-button:hover::before {\n    opacity: 0.04; }\n  .mdc-button:not(.mdc-ripple-upgraded):focus::before, .mdc-button.mdc-ripple-upgraded--background-focused::before {\n    transition-duration: 75ms;\n    opacity: 0.12; }\n  .mdc-button:not(.mdc-ripple-upgraded)::after {\n    transition: opacity 150ms linear; }\n  .mdc-button:not(.mdc-ripple-upgraded):active::after {\n    transition-duration: 75ms;\n    opacity: 0.16; }\n  .mdc-button.mdc-ripple-upgraded {\n    --mdc-ripple-fg-opacity: 0.16; }\n  .mdc-button .mdc-button__icon {\n    /* @noflip */\n    margin-left: 0;\n    /* @noflip */\n    margin-right: 8px;\n    display: inline-block;\n    width: 18px;\n    height: 18px;\n    font-size: 18px;\n    vertical-align: top; }\n    [dir="rtl"] .mdc-button .mdc-button__icon, .mdc-button .mdc-button__icon[dir="rtl"] {\n      /* @noflip */\n      margin-left: 8px;\n      /* @noflip */\n      margin-right: 0; }\n  .mdc-button svg.mdc-button__icon {\n    fill: currentColor; }\n\n.mdc-button--raised .mdc-button__icon,\n.mdc-button--unelevated .mdc-button__icon,\n.mdc-button--outlined .mdc-button__icon {\n  /* @noflip */\n  margin-left: -4px;\n  /* @noflip */\n  margin-right: 8px; }\n  [dir="rtl"] .mdc-button--raised .mdc-button__icon, .mdc-button--raised .mdc-button__icon[dir="rtl"], [dir="rtl"]\n  .mdc-button--unelevated .mdc-button__icon,\n  .mdc-button--unelevated .mdc-button__icon[dir="rtl"], [dir="rtl"]\n  .mdc-button--outlined .mdc-button__icon,\n  .mdc-button--outlined .mdc-button__icon[dir="rtl"] {\n    /* @noflip */\n    margin-left: 8px;\n    /* @noflip */\n    margin-right: -4px; }\n\n.mdc-button--raised,\n.mdc-button--unelevated {\n  padding: 0 16px 0 16px; }\n  .mdc-button--raised:disabled,\n  .mdc-button--unelevated:disabled {\n    background-color: rgba(0, 0, 0, 0.12);\n    color: rgba(0, 0, 0, 0.37); }\n  .mdc-button--raised:not(:disabled),\n  .mdc-button--unelevated:not(:disabled) {\n    background-color: #6200ee; }\n    @supports not (-ms-ime-align: auto) {\n      .mdc-button--raised:not(:disabled),\n      .mdc-button--unelevated:not(:disabled) {\n        /* @alternate */\n        background-color: var(--mdc-theme-primary, #6200ee); } }\n  .mdc-button--raised:not(:disabled),\n  .mdc-button--unelevated:not(:disabled) {\n    color: #fff;\n    /* @alternate */\n    color: var(--mdc-theme-on-primary, #fff); }\n  .mdc-button--raised::before, .mdc-button--raised::after,\n  .mdc-button--unelevated::before,\n  .mdc-button--unelevated::after {\n    background-color: #fff; }\n    @supports not (-ms-ime-align: auto) {\n      .mdc-button--raised::before, .mdc-button--raised::after,\n      .mdc-button--unelevated::before,\n      .mdc-button--unelevated::after {\n        /* @alternate */\n        background-color: var(--mdc-theme-on-primary, #fff); } }\n  .mdc-button--raised:hover::before,\n  .mdc-button--unelevated:hover::before {\n    opacity: 0.08; }\n  .mdc-button--raised:not(.mdc-ripple-upgraded):focus::before, .mdc-button--raised.mdc-ripple-upgraded--background-focused::before,\n  .mdc-button--unelevated:not(.mdc-ripple-upgraded):focus::before,\n  .mdc-button--unelevated.mdc-ripple-upgraded--background-focused::before {\n    transition-duration: 75ms;\n    opacity: 0.24; }\n  .mdc-button--raised:not(.mdc-ripple-upgraded)::after,\n  .mdc-button--unelevated:not(.mdc-ripple-upgraded)::after {\n    transition: opacity 150ms linear; }\n  .mdc-button--raised:not(.mdc-ripple-upgraded):active::after,\n  .mdc-button--unelevated:not(.mdc-ripple-upgraded):active::after {\n    transition-duration: 75ms;\n    opacity: 0.32; }\n  .mdc-button--raised.mdc-ripple-upgraded,\n  .mdc-button--unelevated.mdc-ripple-upgraded {\n    --mdc-ripple-fg-opacity: 0.32; }\n\n.mdc-button--raised {\n  box-shadow: 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12);\n  transition: box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1); }\n  .mdc-button--raised:hover, .mdc-button--raised:focus {\n    box-shadow: 0px 2px 4px -1px rgba(0, 0, 0, 0.2), 0px 4px 5px 0px rgba(0, 0, 0, 0.14), 0px 1px 10px 0px rgba(0, 0, 0, 0.12); }\n  .mdc-button--raised:active {\n    box-shadow: 0px 5px 5px -3px rgba(0, 0, 0, 0.2), 0px 8px 10px 1px rgba(0, 0, 0, 0.14), 0px 3px 14px 2px rgba(0, 0, 0, 0.12); }\n  .mdc-button--raised:disabled {\n    box-shadow: 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12); }\n\n.mdc-button--outlined {\n  border-style: solid;\n  padding: 0 14px 0 14px;\n  border-width: 2px; }\n  .mdc-button--outlined:disabled {\n    border-color: rgba(0, 0, 0, 0.37); }\n  .mdc-button--outlined:not(:disabled) {\n    border-color: #6200ee;\n    /* @alternate */\n    border-color: var(--mdc-theme-primary, #6200ee); }\n\n.mdc-button--dense {\n  height: 32px;\n  font-size: .8125rem; }',""]),e.locals={"mdc-ripple-surface--test-edge-var-bug":"mdc-ripple-surface--test-edge-var-bug","mdc-button":"mdc-button","mdc-ripple-upgraded":"mdc-ripple-upgraded","mdc-ripple-upgraded--unbounded":"mdc-ripple-upgraded--unbounded","mdc-ripple-upgraded--foreground-activation":"mdc-ripple-upgraded--foreground-activation","mdc-ripple-upgraded--foreground-deactivation":"mdc-ripple-upgraded--foreground-deactivation","mdc-ripple-upgraded--background-focused":"mdc-ripple-upgraded--background-focused","mdc-button__icon":"mdc-button__icon","mdc-button--raised":"mdc-button--raised","mdc-button--unelevated":"mdc-button--unelevated","mdc-button--outlined":"mdc-button--outlined","mdc-button--dense":"mdc-button--dense","mdc-ripple-fg-radius-in":"mdc-ripple-fg-radius-in","mdc-ripple-fg-opacity-in":"mdc-ripple-fg-opacity-in","mdc-ripple-fg-opacity-out":"mdc-ripple-fg-opacity-out"},t.exports=e},function(t,e,n){(e=n(15)(!1)).push([t.i,'/*!\n Material Components for the Web\n Copyright (c) 2018 Google Inc.\n License: MIT\n*/\n@-webkit-keyframes mdc-slider-emphasize {\n  0% {\n    -webkit-animation-timing-function: ease-out;\n            animation-timing-function: ease-out; }\n  50% {\n    -webkit-animation-timing-function: ease-in;\n            animation-timing-function: ease-in;\n    -webkit-transform: scale(0.85);\n            transform: scale(0.85); }\n  100% {\n    -webkit-transform: scale(0.571);\n            transform: scale(0.571); } }\n\n@keyframes mdc-slider-emphasize {\n  0% {\n    -webkit-animation-timing-function: ease-out;\n            animation-timing-function: ease-out; }\n  50% {\n    -webkit-animation-timing-function: ease-in;\n            animation-timing-function: ease-in;\n    -webkit-transform: scale(0.85);\n            transform: scale(0.85); }\n  100% {\n    -webkit-transform: scale(0.571);\n            transform: scale(0.571); } }\n\n.mdc-slider {\n  position: relative;\n  width: 100%;\n  height: 48px;\n  cursor: pointer;\n  touch-action: pan-x;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__track {\n    background-color: #018786;\n    /* @alternate */\n    background-color: var(--mdc-theme-secondary, #018786); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__track-container {\n    background-color: rgba(1, 135, 134, 0.26); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__track-marker::after,\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__track-marker-container::after {\n    background-color: #018786;\n    /* @alternate */\n    background-color: var(--mdc-theme-secondary, #018786); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__thumb {\n    fill: #018786;\n    /* @alternate */\n    fill: var(--mdc-theme-secondary, #018786);\n    stroke: #018786;\n    /* @alternate */\n    stroke: var(--mdc-theme-secondary, #018786); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__focus-ring {\n    background-color: #018786;\n    /* @alternate */\n    background-color: var(--mdc-theme-secondary, #018786); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__pin {\n    background-color: #018786;\n    /* @alternate */\n    background-color: var(--mdc-theme-secondary, #018786); }\n  .mdc-slider:not(.mdc-slider--disabled) .mdc-slider__pin {\n    color: white;\n    /* @alternate */\n    color: var(--mdc-theme-text-primary-on-dark, white); }\n  .mdc-slider--disabled {\n    cursor: auto; }\n    .mdc-slider--disabled .mdc-slider__track {\n      background-color: #9a9a9a; }\n    .mdc-slider--disabled .mdc-slider__track-container {\n      background-color: rgba(154, 154, 154, 0.26); }\n    .mdc-slider--disabled .mdc-slider__track-marker::after,\n    .mdc-slider--disabled .mdc-slider__track-marker-container::after {\n      background-color: #9a9a9a; }\n    .mdc-slider--disabled .mdc-slider__thumb {\n      fill: #9a9a9a;\n      stroke: #9a9a9a; }\n    .mdc-slider--disabled .mdc-slider__thumb {\n      /* @alternate */\n      stroke: white;\n      stroke: var(--mdc-slider-bg-color-behind-component, white); }\n  .mdc-slider:focus {\n    outline: none; }\n  .mdc-slider__track-container {\n    position: absolute;\n    top: 50%;\n    width: 100%;\n    height: 2px;\n    overflow: hidden; }\n  .mdc-slider__track {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    -webkit-transform-origin: left top;\n            transform-origin: left top;\n    will-change: transform; }\n    .mdc-slider[dir="rtl"] .mdc-slider__track,\n    [dir="rtl"] .mdc-slider .mdc-slider__track {\n      -webkit-transform-origin: right top;\n              transform-origin: right top; }\n  .mdc-slider__track-marker-container {\n    display: flex;\n    margin-right: 0;\n    margin-left: -1px;\n    visibility: hidden; }\n    .mdc-slider[dir="rtl"] .mdc-slider__track-marker-container,\n    [dir="rtl"] .mdc-slider .mdc-slider__track-marker-container {\n      margin-right: -1px;\n      margin-left: 0; }\n    .mdc-slider__track-marker-container::after {\n      display: block;\n      width: 2px;\n      height: 2px;\n      content: ""; }\n  .mdc-slider__track-marker {\n    flex: 1; }\n    .mdc-slider__track-marker::after {\n      display: block;\n      width: 2px;\n      height: 2px;\n      content: ""; }\n    .mdc-slider__track-marker:first-child::after {\n      width: 3px; }\n  .mdc-slider__thumb-container {\n    position: absolute;\n    top: 15px;\n    left: 0;\n    width: 21px;\n    height: 100%;\n    -webkit-user-select: none;\n       -moz-user-select: none;\n        -ms-user-select: none;\n            user-select: none;\n    will-change: transform; }\n  .mdc-slider__thumb {\n    position: absolute;\n    top: 0;\n    left: 0;\n    -webkit-transform: scale(0.571);\n            transform: scale(0.571);\n    transition: fill 100ms ease-out, stroke 100ms ease-out, -webkit-transform 100ms ease-out;\n    transition: transform 100ms ease-out, fill 100ms ease-out, stroke 100ms ease-out;\n    transition: transform 100ms ease-out, fill 100ms ease-out, stroke 100ms ease-out, -webkit-transform 100ms ease-out;\n    stroke-width: 3.5; }\n  .mdc-slider__focus-ring {\n    width: 21px;\n    height: 21px;\n    transition: opacity 266.67ms ease-out, background-color 266.67ms ease-out, -webkit-transform 266.67ms ease-out;\n    transition: transform 266.67ms ease-out, opacity 266.67ms ease-out, background-color 266.67ms ease-out;\n    transition: transform 266.67ms ease-out, opacity 266.67ms ease-out, background-color 266.67ms ease-out, -webkit-transform 266.67ms ease-out;\n    border-radius: 50%;\n    opacity: 0; }\n  .mdc-slider__pin {\n    display: flex;\n    position: absolute;\n    top: 0;\n    left: 0;\n    align-items: center;\n    justify-content: center;\n    width: 26px;\n    height: 26px;\n    margin-top: -2px;\n    margin-left: -2px;\n    -webkit-transform: rotate(-45deg) scale(0) translate(0, 0);\n            transform: rotate(-45deg) scale(0) translate(0, 0);\n    transition: -webkit-transform 100ms ease-out;\n    transition: transform 100ms ease-out;\n    transition: transform 100ms ease-out, -webkit-transform 100ms ease-out;\n    border-radius: 50% 50% 50% 0%;\n    z-index: 1; }\n  .mdc-slider__pin-value-marker {\n    font-family: Roboto, sans-serif;\n    -moz-osx-font-smoothing: grayscale;\n    -webkit-font-smoothing: antialiased;\n    font-size: 0.875rem;\n    line-height: 1.25rem;\n    font-weight: 400;\n    letter-spacing: 0.01786em;\n    text-decoration: inherit;\n    text-transform: inherit;\n    -webkit-transform: rotate(45deg);\n            transform: rotate(45deg); }\n\n.mdc-slider--active .mdc-slider__thumb {\n  -webkit-transform: scale3d(1, 1, 1);\n          transform: scale3d(1, 1, 1); }\n\n.mdc-slider--focus .mdc-slider__thumb {\n  -webkit-animation: mdc-slider-emphasize 266.67ms linear;\n          animation: mdc-slider-emphasize 266.67ms linear; }\n\n.mdc-slider--focus .mdc-slider__focus-ring {\n  -webkit-transform: scale3d(1.55, 1.55, 1.55);\n          transform: scale3d(1.55, 1.55, 1.55);\n  opacity: .25; }\n\n.mdc-slider--in-transit .mdc-slider__thumb {\n  transition-delay: 140ms; }\n\n.mdc-slider--in-transit .mdc-slider__thumb-container,\n.mdc-slider--in-transit .mdc-slider__track,\n.mdc-slider:focus:not(.mdc-slider--active) .mdc-slider__thumb-container,\n.mdc-slider:focus:not(.mdc-slider--active) .mdc-slider__track {\n  transition: -webkit-transform 80ms ease;\n  transition: transform 80ms ease;\n  transition: transform 80ms ease, -webkit-transform 80ms ease; }\n\n.mdc-slider--discrete.mdc-slider--active .mdc-slider__thumb {\n  -webkit-transform: scale(calc(12 / 21));\n          transform: scale(calc(12 / 21)); }\n\n.mdc-slider--discrete.mdc-slider--active .mdc-slider__pin {\n  -webkit-transform: rotate(-45deg) scale(1) translate(19px, -20px);\n          transform: rotate(-45deg) scale(1) translate(19px, -20px); }\n\n.mdc-slider--discrete.mdc-slider--focus .mdc-slider__thumb {\n  -webkit-animation: none;\n          animation: none; }\n\n.mdc-slider--discrete.mdc-slider--display-markers .mdc-slider__track-marker-container {\n  visibility: visible; }',""]),e.locals={"mdc-slider":"mdc-slider","mdc-slider--disabled":"mdc-slider--disabled","mdc-slider__track":"mdc-slider__track","mdc-slider__track-container":"mdc-slider__track-container","mdc-slider__track-marker":"mdc-slider__track-marker","mdc-slider__track-marker-container":"mdc-slider__track-marker-container","mdc-slider__thumb":"mdc-slider__thumb","mdc-slider__focus-ring":"mdc-slider__focus-ring","mdc-slider__pin":"mdc-slider__pin","mdc-slider__thumb-container":"mdc-slider__thumb-container","mdc-slider__pin-value-marker":"mdc-slider__pin-value-marker","mdc-slider--active":"mdc-slider--active","mdc-slider--focus":"mdc-slider--focus","mdc-slider-emphasize":"mdc-slider-emphasize","mdc-slider--in-transit":"mdc-slider--in-transit","mdc-slider--discrete":"mdc-slider--discrete","mdc-slider--display-markers":"mdc-slider--display-markers"},t.exports=e},function(t,e,n){(e=n(15)(!1)).push([t.i,"/*!\n Material Components for the Web\n Copyright (c) 2018 Google Inc.\n License: MIT\n*/\n@-webkit-keyframes primary-indeterminate-translate {\n  0% {\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  20% {\n    -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n            animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  59.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n            animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n    -webkit-transform: translateX(83.67142%);\n            transform: translateX(83.67142%); }\n  100% {\n    -webkit-transform: translateX(200.61106%);\n            transform: translateX(200.61106%); } }\n\n@keyframes primary-indeterminate-translate {\n  0% {\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  20% {\n    -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n            animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  59.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n            animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n    -webkit-transform: translateX(83.67142%);\n            transform: translateX(83.67142%); }\n  100% {\n    -webkit-transform: translateX(200.61106%);\n            transform: translateX(200.61106%); } }\n\n@-webkit-keyframes primary-indeterminate-scale {\n  0% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  36.65% {\n    -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);\n            animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  69.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n            animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n    -webkit-transform: scaleX(0.66148);\n            transform: scaleX(0.66148); }\n  100% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); } }\n\n@keyframes primary-indeterminate-scale {\n  0% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  36.65% {\n    -webkit-animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);\n            animation-timing-function: cubic-bezier(0.33473, 0.12482, 0.78584, 1);\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  69.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n            animation-timing-function: cubic-bezier(0.06, 0.11, 0.6, 1);\n    -webkit-transform: scaleX(0.66148);\n            transform: scaleX(0.66148); }\n  100% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); } }\n\n@-webkit-keyframes secondary-indeterminate-translate {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n            animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  25% {\n    -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n            animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n    -webkit-transform: translateX(37.65191%);\n            transform: translateX(37.65191%); }\n  48.35% {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n            animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n    -webkit-transform: translateX(84.38617%);\n            transform: translateX(84.38617%); }\n  100% {\n    -webkit-transform: translateX(160.27778%);\n            transform: translateX(160.27778%); } }\n\n@keyframes secondary-indeterminate-translate {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n            animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  25% {\n    -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n            animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n    -webkit-transform: translateX(37.65191%);\n            transform: translateX(37.65191%); }\n  48.35% {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n            animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n    -webkit-transform: translateX(84.38617%);\n            transform: translateX(84.38617%); }\n  100% {\n    -webkit-transform: translateX(160.27778%);\n            transform: translateX(160.27778%); } }\n\n@-webkit-keyframes secondary-indeterminate-scale {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);\n            animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  19.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);\n            animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);\n    -webkit-transform: scaleX(0.4571);\n            transform: scaleX(0.4571); }\n  44.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);\n            animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);\n    -webkit-transform: scaleX(0.72796);\n            transform: scaleX(0.72796); }\n  100% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); } }\n\n@keyframes secondary-indeterminate-scale {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);\n            animation-timing-function: cubic-bezier(0.20503, 0.05705, 0.57661, 0.45397);\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); }\n  19.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);\n            animation-timing-function: cubic-bezier(0.15231, 0.19643, 0.64837, 1.00432);\n    -webkit-transform: scaleX(0.4571);\n            transform: scaleX(0.4571); }\n  44.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);\n            animation-timing-function: cubic-bezier(0.25776, -0.00316, 0.21176, 1.38179);\n    -webkit-transform: scaleX(0.72796);\n            transform: scaleX(0.72796); }\n  100% {\n    -webkit-transform: scaleX(0.08);\n            transform: scaleX(0.08); } }\n\n@-webkit-keyframes buffering {\n  to {\n    -webkit-transform: translateX(-10px);\n            transform: translateX(-10px); } }\n\n@keyframes buffering {\n  to {\n    -webkit-transform: translateX(-10px);\n            transform: translateX(-10px); } }\n\n@-webkit-keyframes primary-indeterminate-translate-reverse {\n  0% {\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  20% {\n    -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n            animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  59.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n            animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n    -webkit-transform: translateX(-83.67142%);\n            transform: translateX(-83.67142%); }\n  100% {\n    -webkit-transform: translateX(-200.61106%);\n            transform: translateX(-200.61106%); } }\n\n@keyframes primary-indeterminate-translate-reverse {\n  0% {\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  20% {\n    -webkit-animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n            animation-timing-function: cubic-bezier(0.5, 0, 0.70173, 0.49582);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  59.15% {\n    -webkit-animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n            animation-timing-function: cubic-bezier(0.30244, 0.38135, 0.55, 0.95635);\n    -webkit-transform: translateX(-83.67142%);\n            transform: translateX(-83.67142%); }\n  100% {\n    -webkit-transform: translateX(-200.61106%);\n            transform: translateX(-200.61106%); } }\n\n@-webkit-keyframes secondary-indeterminate-translate-reverse {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n            animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  25% {\n    -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n            animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n    -webkit-transform: translateX(-37.65191%);\n            transform: translateX(-37.65191%); }\n  48.35% {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n            animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n    -webkit-transform: translateX(-84.38617%);\n            transform: translateX(-84.38617%); }\n  100% {\n    -webkit-transform: translateX(-160.27778%);\n            transform: translateX(-160.27778%); } }\n\n@keyframes secondary-indeterminate-translate-reverse {\n  0% {\n    -webkit-animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n            animation-timing-function: cubic-bezier(0.15, 0, 0.51506, 0.40969);\n    -webkit-transform: translateX(0);\n            transform: translateX(0); }\n  25% {\n    -webkit-animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n            animation-timing-function: cubic-bezier(0.31033, 0.28406, 0.8, 0.73371);\n    -webkit-transform: translateX(-37.65191%);\n            transform: translateX(-37.65191%); }\n  48.35% {\n    -webkit-animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n            animation-timing-function: cubic-bezier(0.4, 0.62704, 0.6, 0.90203);\n    -webkit-transform: translateX(-84.38617%);\n            transform: translateX(-84.38617%); }\n  100% {\n    -webkit-transform: translateX(-160.27778%);\n            transform: translateX(-160.27778%); } }\n\n@-webkit-keyframes buffering-reverse {\n  to {\n    -webkit-transform: translateX(10px);\n            transform: translateX(10px); } }\n\n@keyframes buffering-reverse {\n  to {\n    -webkit-transform: translateX(10px);\n            transform: translateX(10px); } }\n\n.mdc-linear-progress {\n  position: relative;\n  width: 100%;\n  height: 4px;\n  -webkit-transform: translateZ(0);\n          transform: translateZ(0);\n  transition: opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n  overflow: hidden; }\n  .mdc-linear-progress__bar {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    -webkit-animation: none;\n            animation: none;\n    -webkit-transform-origin: top left;\n            transform-origin: top left;\n    transition: -webkit-transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n    transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n    transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); }\n  .mdc-linear-progress__bar-inner {\n    display: inline-block;\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    -webkit-animation: none;\n            animation: none; }\n  .mdc-linear-progress__buffering-dots {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    -webkit-animation: buffering 250ms infinite linear;\n            animation: buffering 250ms infinite linear;\n    background-repeat: repeat-x;\n    background-size: 10px 4px; }\n  .mdc-linear-progress__buffer {\n    position: absolute;\n    width: 100%;\n    height: 100%;\n    -webkit-transform-origin: top left;\n            transform-origin: top left;\n    transition: -webkit-transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n    transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);\n    transition: transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1), -webkit-transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1); }\n  .mdc-linear-progress__primary-bar {\n    -webkit-transform: scaleX(0);\n            transform: scaleX(0); }\n  .mdc-linear-progress__secondary-bar {\n    visibility: hidden; }\n  .mdc-linear-progress--indeterminate .mdc-linear-progress__bar {\n    transition: none; }\n  .mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar {\n    left: -145.166611%;\n    -webkit-animation: primary-indeterminate-translate 2s infinite linear;\n            animation: primary-indeterminate-translate 2s infinite linear; }\n    .mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar > .mdc-linear-progress__bar-inner {\n      -webkit-animation: primary-indeterminate-scale 2s infinite linear;\n              animation: primary-indeterminate-scale 2s infinite linear; }\n  .mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar {\n    left: -54.888891%;\n    -webkit-animation: secondary-indeterminate-translate 2s infinite linear;\n            animation: secondary-indeterminate-translate 2s infinite linear;\n    visibility: visible; }\n    .mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar > .mdc-linear-progress__bar-inner {\n      -webkit-animation: secondary-indeterminate-scale 2s infinite linear;\n              animation: secondary-indeterminate-scale 2s infinite linear; }\n  .mdc-linear-progress--reversed .mdc-linear-progress__bar,\n  .mdc-linear-progress--reversed .mdc-linear-progress__buffer {\n    right: 0;\n    -webkit-transform-origin: center right;\n            transform-origin: center right; }\n  .mdc-linear-progress--reversed .mdc-linear-progress__primary-bar {\n    -webkit-animation-name: primary-indeterminate-translate-reverse;\n            animation-name: primary-indeterminate-translate-reverse; }\n  .mdc-linear-progress--reversed .mdc-linear-progress__secondary-bar {\n    -webkit-animation-name: secondary-indeterminate-translate-reverse;\n            animation-name: secondary-indeterminate-translate-reverse; }\n  .mdc-linear-progress--reversed .mdc-linear-progress__buffering-dots {\n    -webkit-animation: buffering-reverse 250ms infinite linear;\n            animation: buffering-reverse 250ms infinite linear; }\n  .mdc-linear-progress--closed {\n    opacity: 0; }\n\n.mdc-linear-progress__bar-inner {\n  background-color: #6200ee;\n  /* @alternate */\n  background-color: var(--mdc-theme-primary, #6200ee); }\n\n.mdc-linear-progress__buffering-dots {\n  background-image: url(\"data:image/svg+xml,%3Csvg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' enable-background='new 0 0 5 2' xml:space='preserve' viewBox='0 0 5 2' preserveAspectRatio='none slice'%3E%3Ccircle cx='1' cy='1' r='1' fill='%23e6e6e6'/%3E%3C/svg%3E\"); }\n\n.mdc-linear-progress__buffer {\n  background-color: #e6e6e6; }\n\n.mdc-linear-progress--indeterminate.mdc-linear-progress--reversed .mdc-linear-progress__primary-bar {\n  right: -145.166611%;\n  left: auto; }\n\n.mdc-linear-progress--indeterminate.mdc-linear-progress--reversed .mdc-linear-progress__secondary-bar {\n  right: -54.888891%;\n  left: auto; }",""]),e.locals={"mdc-linear-progress":"mdc-linear-progress","mdc-linear-progress__bar":"mdc-linear-progress__bar","mdc-linear-progress__bar-inner":"mdc-linear-progress__bar-inner","mdc-linear-progress__buffering-dots":"mdc-linear-progress__buffering-dots",buffering:"buffering","mdc-linear-progress__buffer":"mdc-linear-progress__buffer","mdc-linear-progress__primary-bar":"mdc-linear-progress__primary-bar","mdc-linear-progress__secondary-bar":"mdc-linear-progress__secondary-bar","mdc-linear-progress--indeterminate":"mdc-linear-progress--indeterminate","primary-indeterminate-translate":"primary-indeterminate-translate","primary-indeterminate-scale":"primary-indeterminate-scale","secondary-indeterminate-translate":"secondary-indeterminate-translate","secondary-indeterminate-scale":"secondary-indeterminate-scale","mdc-linear-progress--reversed":"mdc-linear-progress--reversed","primary-indeterminate-translate-reverse":"primary-indeterminate-translate-reverse","secondary-indeterminate-translate-reverse":"secondary-indeterminate-translate-reverse","buffering-reverse":"buffering-reverse","mdc-linear-progress--closed":"mdc-linear-progress--closed"},t.exports=e},function(t,e,n){"use strict";n.r(e),n.d(e,"environment",(function(){return s})),n.d(e,"errors",(function(){return r})),n.d(e,"log",(function(){return i})),n.d(e,"operations",(function(){return y})),n.d(e,"preferences",(function(){return o})),n.d(e,"stylesheets",(function(){return T})),n.d(e,"userscripter",(function(){return a}));var r={};n.r(r),n.d(r,"explanation",(function(){return l})),n.d(r,"failureDescriber",(function(){return d}));var i={};n.r(i),n.d(i,"setPrefix",(function(){return m})),n.d(i,"setLogger",(function(){return h})),n.d(i,"log",(function(){return _})),n.d(i,"info",(function(){return b})),n.d(i,"warning",(function(){return g})),n.d(i,"error",(function(){return v}));var o={};n.r(o),n.d(o,"subscriptable",(function(){return w})),n.d(o,"loggingResponseHandler",(function(){return E})),n.d(o,"noopResponseHandler",(function(){return k}));var a={};n.r(a),n.d(a,"run",(function(){return C}));var s=n(12);function c(t){return t.map(t=>t+"\n").join("")}function u(t){return"  "+t.key+": "+t.selector}function l(t){switch(t.result.reason){case 0:return c(["These dependencies were not found:","",c(t.result.dependencies.map(u))]);case 1:return c(["The operation failed with this error:","",t.result.message])}}function d(t){return e=>c([`Could not ${e.operation.description} on this page:`,"","  "+location.href,"",l(e).trim(),"",`This problem might be caused by ${t.siteName} changing its content/structure, in which case ${t.extensionName} needs to be updated accordingly. Otherwise, it's probably a bug in ${t.extensionName}.`,"","If you file a bug report, please include this message."])}let f="",p=console;function m(t){f=t}function h(t){p=t}function _(t){p.log(f,t)}function b(t){p.info(f,t)}function g(t){p.warn(f,t)}function v(t){p.error(f,t)}var y=n(11);function w(t){const e=new Set;return{subscribe:t=>{e.add(t)},unsubscribe:t=>{e.delete(t)},handler:(n,r)=>("set"===n.action&&e.forEach(t=>t(n.preference)),t(n,r))}}function E(t,e){const n=t.response;switch(n.status){case 0:return n;case 1:return"get"===t.action&&(g(`The saved value for preference '${t.preference.key}' (${JSON.stringify(n.saved)}) was invalid. Replacing it with ${JSON.stringify(n.value)}.`),e.set(t.preference,n.value)),"set"===t.action&&g(`Could not set value ${JSON.stringify(n.value)} for preference '${t.preference.key}' because it was invalid.`),n;case 2:return"get"===t.action&&(g(`The saved value for preference '${t.preference.key}' had the wrong type. Replacing it with ${JSON.stringify(n.value)}.`),e.set(t.preference,n.value)),n;case 3:return"get"===t.action&&(g(`The saved value for preference '${t.preference.key}' could not be parsed. Replacing it with ${JSON.stringify(n.value)}.`),e.set(t.preference,n.value)),n;case 4:switch(t.action){case"get":v(`Could not read preference '${t.preference.key}' because localStorage could not be accessed. Using value ${JSON.stringify(t.preference.default)}.`);break;case"set":v(`Could not save value ${JSON.stringify(t.response.value)} for preference '${t.preference.key}' because localStorage could not be accessed.`);break;default:A(t.action)}return n;default:return A(n.status)}}function k(t,e){return t.response}function A(t){throw new Error("assertUnreachable: "+t)}var T=n(10);function C(t){m(`[${t.name}]`);const e="data-"+t.id+"-has-run";document.documentElement.hasAttribute(e)?g(`It looks as though ${t.name} has already run (because the attribute "${e}" was found on <head>). Stopping.`):(document.documentElement.setAttribute(e,""),t.initialAction(),T.insert(t.stylesheets),y.run(t.operationsPlan))}},function(t,e,n){"use strict";n.r(e),n.d(e,"MDCRipple",(function(){return y})),n.d(e,"MDCRippleFoundation",(function(){return v})),n.d(e,"RippleCapableSurface",(function(){return w})),n.d(e,"util",(function(){return r}));var r={};n.r(r),n.d(r,"supportsCssVariables",(function(){return d})),n.d(r,"applyPassive",(function(){return f})),n.d(r,"getMatchesProperty",(function(){return p})),n.d(r,"getNormalizedEventCoords",(function(){return m}));var i=n(3);var o=n(1);const a={ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded",BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation"},s={VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end"},c={PADDING:10,INITIAL_ORIGIN_SCALE:.6,DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,TAP_DELAY_MS:300};let u,l;function d(t,e=!1){let n=u;if("boolean"==typeof u&&!e)return n;if(!(t.CSS&&"function"==typeof t.CSS.supports))return;const r=t.CSS.supports("--css-vars","yes"),i=t.CSS.supports("(--css-vars: yes)")&&t.CSS.supports("color","#00000000");return n=!(!r&&!i)&&!function(t){const e=t.document,n=e.createElement("div");n.className="mdc-ripple-surface--test-edge-var-bug",e.body.appendChild(n);const r=t.getComputedStyle(n),i=null!==r&&"solid"===r.borderTopStyle;return n.remove(),i}(t),e||(u=n),n}function f(t=window,e=!1){if(void 0===l||e){let e=!1;try{t.document.addEventListener("test",null,{get passive(){e=!0}})}catch(t){}l=e}return!!l&&{passive:!0}}function p(t){return["webkitMatchesSelector","msMatchesSelector","matches"].filter(e=>e in t).pop()}function m(t,e,n){const{x:r,y:i}=e,o=r+n.left,a=i+n.top;let s,c;return"touchstart"===t.type?(s=t.changedTouches[0].pageX-o,c=t.changedTouches[0].pageY-a):(s=t.pageX-o,c=t.pageY-a),{x:s,y:c}}const h=["touchstart","pointerdown","mousedown","keydown"],_=["touchend","pointerup","mouseup"];let b=[];class g extends o.a{static get cssClasses(){return a}static get strings(){return s}static get numbers(){return c}static get defaultAdapter(){return{browserSupportsCssVars:()=>{},isUnbounded:()=>{},isSurfaceActive:()=>{},isSurfaceDisabled:()=>{},addClass:()=>{},removeClass:()=>{},containsEventTarget:()=>{},registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerDocumentInteractionHandler:()=>{},deregisterDocumentInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},updateCssVariable:()=>{},computeBoundingRect:()=>{},getWindowPageOffset:()=>{}}}constructor(t){super(Object.assign(g.defaultAdapter,t)),this.layoutFrame_=0,this.frame_={width:0,height:0},this.activationState_=this.defaultActivationState_(),this.initialSize_=0,this.maxRadius_=0,this.activateHandler_=t=>this.activate_(t),this.deactivateHandler_=t=>this.deactivate_(t),this.focusHandler_=()=>this.handleFocus(),this.blurHandler_=()=>this.handleBlur(),this.resizeHandler_=()=>this.layout(),this.unboundedCoords_={left:0,top:0},this.fgScale_=0,this.activationTimer_=0,this.fgDeactivationRemovalTimer_=0,this.activationAnimationHasEnded_=!1,this.activationTimerCallback_=()=>{this.activationAnimationHasEnded_=!0,this.runDeactivationUXLogicIfReady_()},this.previousActivationEvent_=null}supportsPressRipple_(){return this.adapter_.browserSupportsCssVars()}defaultActivationState_(){return{isActivated:!1,hasDeactivationUXRun:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1,activationEvent:null,isProgrammatic:!1}}init(){const t=this.supportsPressRipple_();if(this.registerRootHandlers_(t),t){const{ROOT:t,UNBOUNDED:e}=g.cssClasses;requestAnimationFrame(()=>{this.adapter_.addClass(t),this.adapter_.isUnbounded()&&(this.adapter_.addClass(e),this.layoutInternal_())})}}destroy(){if(this.supportsPressRipple_()){this.activationTimer_&&(clearTimeout(this.activationTimer_),this.activationTimer_=0,this.adapter_.removeClass(g.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer_&&(clearTimeout(this.fgDeactivationRemovalTimer_),this.fgDeactivationRemovalTimer_=0,this.adapter_.removeClass(g.cssClasses.FG_DEACTIVATION));const{ROOT:t,UNBOUNDED:e}=g.cssClasses;requestAnimationFrame(()=>{this.adapter_.removeClass(t),this.adapter_.removeClass(e),this.removeCssVars_()})}this.deregisterRootHandlers_(),this.deregisterDeactivationHandlers_()}registerRootHandlers_(t){t&&(h.forEach(t=>{this.adapter_.registerInteractionHandler(t,this.activateHandler_)}),this.adapter_.isUnbounded()&&this.adapter_.registerResizeHandler(this.resizeHandler_)),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_)}registerDeactivationHandlers_(t){"keydown"===t.type?this.adapter_.registerInteractionHandler("keyup",this.deactivateHandler_):_.forEach(t=>{this.adapter_.registerDocumentInteractionHandler(t,this.deactivateHandler_)})}deregisterRootHandlers_(){h.forEach(t=>{this.adapter_.deregisterInteractionHandler(t,this.activateHandler_)}),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),this.adapter_.isUnbounded()&&this.adapter_.deregisterResizeHandler(this.resizeHandler_)}deregisterDeactivationHandlers_(){this.adapter_.deregisterInteractionHandler("keyup",this.deactivateHandler_),_.forEach(t=>{this.adapter_.deregisterDocumentInteractionHandler(t,this.deactivateHandler_)})}removeCssVars_(){const{strings:t}=g;Object.keys(t).forEach(e=>{0===e.indexOf("VAR_")&&this.adapter_.updateCssVariable(t[e],null)})}activate_(t){if(this.adapter_.isSurfaceDisabled())return;const e=this.activationState_;if(e.isActivated)return;const n=this.previousActivationEvent_;if(n&&t&&n.type!==t.type)return;e.isActivated=!0,e.isProgrammatic=null===t,e.activationEvent=t,e.wasActivatedByPointer=!e.isProgrammatic&&("mousedown"===t.type||"touchstart"===t.type||"pointerdown"===t.type);t&&b.length>0&&b.some(t=>this.adapter_.containsEventTarget(t))?this.resetActivationState_():(t&&(b.push(t.target),this.registerDeactivationHandlers_(t)),e.wasElementMadeActive=this.checkElementMadeActive_(t),e.wasElementMadeActive&&this.animateActivation_(),requestAnimationFrame(()=>{b=[],e.wasElementMadeActive||" "!==t.key&&32!==t.keyCode||(e.wasElementMadeActive=this.checkElementMadeActive_(t),e.wasElementMadeActive&&this.animateActivation_()),e.wasElementMadeActive||(this.activationState_=this.defaultActivationState_())}))}checkElementMadeActive_(t){return!t||"keydown"!==t.type||this.adapter_.isSurfaceActive()}activate(t=null){this.activate_(t)}animateActivation_(){const{VAR_FG_TRANSLATE_START:t,VAR_FG_TRANSLATE_END:e}=g.strings,{FG_DEACTIVATION:n,FG_ACTIVATION:r}=g.cssClasses,{DEACTIVATION_TIMEOUT_MS:i}=g.numbers;this.layoutInternal_();let o="",a="";if(!this.adapter_.isUnbounded()){const{startPoint:t,endPoint:e}=this.getFgTranslationCoordinates_();o=`${t.x}px, ${t.y}px`,a=`${e.x}px, ${e.y}px`}this.adapter_.updateCssVariable(t,o),this.adapter_.updateCssVariable(e,a),clearTimeout(this.activationTimer_),clearTimeout(this.fgDeactivationRemovalTimer_),this.rmBoundedActivationClasses_(),this.adapter_.removeClass(n),this.adapter_.computeBoundingRect(),this.adapter_.addClass(r),this.activationTimer_=setTimeout(()=>this.activationTimerCallback_(),i)}getFgTranslationCoordinates_(){const{activationEvent:t,wasActivatedByPointer:e}=this.activationState_;let n;n=e?m(t,this.adapter_.getWindowPageOffset(),this.adapter_.computeBoundingRect()):{x:this.frame_.width/2,y:this.frame_.height/2},n={x:n.x-this.initialSize_/2,y:n.y-this.initialSize_/2};return{startPoint:n,endPoint:{x:this.frame_.width/2-this.initialSize_/2,y:this.frame_.height/2-this.initialSize_/2}}}runDeactivationUXLogicIfReady_(){const{FG_DEACTIVATION:t}=g.cssClasses,{hasDeactivationUXRun:e,isActivated:n}=this.activationState_;(e||!n)&&this.activationAnimationHasEnded_&&(this.rmBoundedActivationClasses_(),this.adapter_.addClass(t),this.fgDeactivationRemovalTimer_=setTimeout(()=>{this.adapter_.removeClass(t)},c.FG_DEACTIVATION_MS))}rmBoundedActivationClasses_(){const{FG_ACTIVATION:t}=g.cssClasses;this.adapter_.removeClass(t),this.activationAnimationHasEnded_=!1,this.adapter_.computeBoundingRect()}resetActivationState_(){this.previousActivationEvent_=this.activationState_.activationEvent,this.activationState_=this.defaultActivationState_(),setTimeout(()=>this.previousActivationEvent_=null,g.numbers.TAP_DELAY_MS)}deactivate_(t){const e=this.activationState_;if(!e.isActivated)return;const n=Object.assign({},e);if(e.isProgrammatic){const t=null;requestAnimationFrame(()=>this.animateDeactivation_(t,n)),this.resetActivationState_()}else this.deregisterDeactivationHandlers_(),requestAnimationFrame(()=>{this.activationState_.hasDeactivationUXRun=!0,this.animateDeactivation_(t,n),this.resetActivationState_()})}deactivate(t=null){this.deactivate_(t)}animateDeactivation_(t,{wasActivatedByPointer:e,wasElementMadeActive:n}){(e||n)&&this.runDeactivationUXLogicIfReady_()}layout(){this.layoutFrame_&&cancelAnimationFrame(this.layoutFrame_),this.layoutFrame_=requestAnimationFrame(()=>{this.layoutInternal_(),this.layoutFrame_=0})}layoutInternal_(){this.frame_=this.adapter_.computeBoundingRect();const t=Math.max(this.frame_.height,this.frame_.width);this.maxRadius_=this.adapter_.isUnbounded()?t:(()=>Math.sqrt(Math.pow(this.frame_.width,2)+Math.pow(this.frame_.height,2))+g.numbers.PADDING)(),this.initialSize_=t*g.numbers.INITIAL_ORIGIN_SCALE,this.fgScale_=this.maxRadius_/this.initialSize_,this.updateLayoutCssVars_()}updateLayoutCssVars_(){const{VAR_FG_SIZE:t,VAR_LEFT:e,VAR_TOP:n,VAR_FG_SCALE:r}=g.strings;this.adapter_.updateCssVariable(t,this.initialSize_+"px"),this.adapter_.updateCssVariable(r,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(e,this.unboundedCoords_.left+"px"),this.adapter_.updateCssVariable(n,this.unboundedCoords_.top+"px"))}setUnbounded(t){const{UNBOUNDED:e}=g.cssClasses;t?this.adapter_.addClass(e):this.adapter_.removeClass(e)}handleFocus(){requestAnimationFrame(()=>this.adapter_.addClass(g.cssClasses.BG_FOCUSED))}handleBlur(){requestAnimationFrame(()=>this.adapter_.removeClass(g.cssClasses.BG_FOCUSED))}}var v=g;class y extends i.a{constructor(...t){super(...t),this.disabled=!1,this.unbounded_}static attachTo(t,{isUnbounded:e}={}){const n=new y(t);return void 0!==e&&(n.unbounded=e),n}static createAdapter(t){const e=p(HTMLElement.prototype);return{browserSupportsCssVars:()=>d(window),isUnbounded:()=>t.unbounded,isSurfaceActive:()=>t.root_[e](":active"),isSurfaceDisabled:()=>t.disabled,addClass:e=>t.root_.classList.add(e),removeClass:e=>t.root_.classList.remove(e),containsEventTarget:e=>t.root_.contains(e),registerInteractionHandler:(e,n)=>t.root_.addEventListener(e,n,f()),deregisterInteractionHandler:(e,n)=>t.root_.removeEventListener(e,n,f()),registerDocumentInteractionHandler:(t,e)=>document.documentElement.addEventListener(t,e,f()),deregisterDocumentInteractionHandler:(t,e)=>document.documentElement.removeEventListener(t,e,f()),registerResizeHandler:t=>window.addEventListener("resize",t),deregisterResizeHandler:t=>window.removeEventListener("resize",t),updateCssVariable:(e,n)=>t.root_.style.setProperty(e,n),computeBoundingRect:()=>t.root_.getBoundingClientRect(),getWindowPageOffset:()=>({x:window.pageXOffset,y:window.pageYOffset})}}get unbounded(){return this.unbounded_}set unbounded(t){this.unbounded_=Boolean(t),this.setUnbounded_()}setUnbounded_(){this.foundation_.setUnbounded(this.unbounded_)}activate(){this.foundation_.activate()}deactivate(){this.foundation_.deactivate()}layout(){this.foundation_.layout()}getDefaultFoundation(){return new v(y.createAdapter(this))}initialSyncWithDOM(){this.unbounded="mdcRippleIsUnbounded"in this.root_.dataset}}class w{}w.prototype.root_,w.prototype.unbounded,w.prototype.disabled},function(t,e,n){"use strict";n.r(e),n.d(e,"MDCLinearProgressFoundation",(function(){return c})),n.d(e,"MDCLinearProgress",(function(){return u}));var r=n(1),i=n(3),o=n(4);const a={CLOSED_CLASS:"mdc-linear-progress--closed",INDETERMINATE_CLASS:"mdc-linear-progress--indeterminate",REVERSED_CLASS:"mdc-linear-progress--reversed"},s={PRIMARY_BAR_SELECTOR:".mdc-linear-progress__primary-bar",BUFFER_SELECTOR:".mdc-linear-progress__buffer"};class c extends r.a{static get cssClasses(){return a}static get strings(){return s}static get defaultAdapter(){return{addClass:()=>{},getPrimaryBar:()=>{},getBuffer:()=>{},hasClass:()=>!1,removeClass:()=>{},setStyle:()=>{}}}constructor(t){super(Object.assign(c.defaultAdapter,t))}init(){this.determinate_=!this.adapter_.hasClass(a.INDETERMINATE_CLASS),this.reverse_=this.adapter_.hasClass(a.REVERSED_CLASS),this.progress_=0}setDeterminate(t){this.determinate_=t,this.determinate_?(this.adapter_.removeClass(a.INDETERMINATE_CLASS),this.setScale_(this.adapter_.getPrimaryBar(),this.progress_)):(this.adapter_.addClass(a.INDETERMINATE_CLASS),this.setScale_(this.adapter_.getPrimaryBar(),1),this.setScale_(this.adapter_.getBuffer(),1))}setProgress(t){this.progress_=t,this.determinate_&&this.setScale_(this.adapter_.getPrimaryBar(),t)}setBuffer(t){this.determinate_&&this.setScale_(this.adapter_.getBuffer(),t)}setReverse(t){this.reverse_=t,this.reverse_?this.adapter_.addClass(a.REVERSED_CLASS):this.adapter_.removeClass(a.REVERSED_CLASS)}open(){this.adapter_.removeClass(a.CLOSED_CLASS)}close(){this.adapter_.addClass(a.CLOSED_CLASS)}setScale_(t,e){const n="scaleX("+e+")";o.c.forEach(e=>{this.adapter_.setStyle(t,e,n)})}}class u extends i.a{static attachTo(t){return new u(t)}set determinate(t){this.foundation_.setDeterminate(t)}set progress(t){this.foundation_.setProgress(t)}set buffer(t){this.foundation_.setBuffer(t)}set reverse(t){this.foundation_.setReverse(t)}open(){this.foundation_.open()}close(){this.foundation_.close()}getDefaultFoundation(){return new c({addClass:t=>this.root_.classList.add(t),getPrimaryBar:()=>this.root_.querySelector(c.strings.PRIMARY_BAR_SELECTOR),getBuffer:()=>this.root_.querySelector(c.strings.BUFFER_SELECTOR),hasClass:t=>this.root_.classList.contains(t),removeClass:t=>this.root_.classList.remove(t),setStyle:(t,e,n)=>t.style[e]=n})}}},function(t,e,n){"use strict";n.r(e),n.d(e,"MDCSliderFoundation",(function(){return w})),n.d(e,"MDCSlider",(function(){return E}));var r=n(3);const i={ACTIVE:"mdc-slider--active",DISABLED:"mdc-slider--disabled",DISCRETE:"mdc-slider--discrete",FOCUS:"mdc-slider--focus",IN_TRANSIT:"mdc-slider--in-transit",IS_DISCRETE:"mdc-slider--discrete",HAS_TRACK_MARKER:"mdc-slider--display-markers"},o={TRACK_SELECTOR:".mdc-slider__track",TRACK_MARKER_CONTAINER_SELECTOR:".mdc-slider__track-marker-container",LAST_TRACK_MARKER_SELECTOR:".mdc-slider__track-marker:last-child",THUMB_CONTAINER_SELECTOR:".mdc-slider__thumb-container",PIN_VALUE_MARKER_SELECTOR:".mdc-slider__pin-value-marker",ARIA_VALUEMIN:"aria-valuemin",ARIA_VALUEMAX:"aria-valuemax",ARIA_VALUENOW:"aria-valuenow",ARIA_DISABLED:"aria-disabled",STEP_DATA_ATTR:"data-step",CHANGE_EVENT:"MDCSlider:change",INPUT_EVENT:"MDCSlider:input"},a={PAGE_FACTOR:4};var s=n(4),c=n(1);const u="ArrowLeft",l="ArrowRight",d="ArrowUp",f="ArrowDown",p="Home",m="End",h="PageUp",_="PageDown",b={mousedown:"mousemove",touchstart:"touchmove",pointerdown:"pointermove"},g=["mousedown","pointerdown","touchstart"],v=["mouseup","pointerup","touchend"];class y extends c.a{static get cssClasses(){return i}static get strings(){return o}static get numbers(){return a}static get defaultAdapter(){return{hasClass:()=>!1,addClass:()=>{},removeClass:()=>{},getAttribute:()=>null,setAttribute:()=>{},removeAttribute:()=>{},computeBoundingRect:()=>({top:0,right:0,bottom:0,left:0,width:0,height:0}),getTabIndex:()=>0,registerInteractionHandler:()=>{},deregisterInteractionHandler:()=>{},registerThumbContainerInteractionHandler:()=>{},deregisterThumbContainerInteractionHandler:()=>{},registerBodyInteractionHandler:()=>{},deregisterBodyInteractionHandler:()=>{},registerResizeHandler:()=>{},deregisterResizeHandler:()=>{},notifyInput:()=>{},notifyChange:()=>{},setThumbContainerStyleProperty:()=>{},setTrackStyleProperty:()=>{},setMarkerValue:()=>{},appendTrackMarkers:()=>{},removeTrackMarkers:()=>{},setLastTrackMarkersStyleProperty:()=>{},isRTL:()=>!1}}constructor(t){super(Object.assign(y.defaultAdapter,t)),this.rect_=null,this.savedTabIndex_=NaN,this.active_=!1,this.inTransit_=!1,this.isDiscrete_=!1,this.hasTrackMarker_=!1,this.handlingThumbTargetEvt_=!1,this.min_=0,this.max_=100,this.step_=0,this.value_=0,this.disabled_=!1,this.preventFocusState_=!1,this.updateUIFrame_=0,this.thumbContainerPointerHandler_=()=>{this.handlingThumbTargetEvt_=!0},this.interactionStartHandler_=t=>this.handleDown_(t),this.keydownHandler_=t=>this.handleKeydown_(t),this.focusHandler_=()=>this.handleFocus_(),this.blurHandler_=()=>this.handleBlur_(),this.resizeHandler_=()=>this.layout()}init(){this.isDiscrete_=this.adapter_.hasClass(i.IS_DISCRETE),this.hasTrackMarker_=this.adapter_.hasClass(i.HAS_TRACK_MARKER),g.forEach(t=>this.adapter_.registerInteractionHandler(t,this.interactionStartHandler_)),this.adapter_.registerInteractionHandler("keydown",this.keydownHandler_),this.adapter_.registerInteractionHandler("focus",this.focusHandler_),this.adapter_.registerInteractionHandler("blur",this.blurHandler_),g.forEach(t=>{this.adapter_.registerThumbContainerInteractionHandler(t,this.thumbContainerPointerHandler_)}),this.adapter_.registerResizeHandler(this.resizeHandler_),this.layout(),this.isDiscrete_&&0==this.getStep()&&(this.step_=1)}destroy(){g.forEach(t=>{this.adapter_.deregisterInteractionHandler(t,this.interactionStartHandler_)}),this.adapter_.deregisterInteractionHandler("keydown",this.keydownHandler_),this.adapter_.deregisterInteractionHandler("focus",this.focusHandler_),this.adapter_.deregisterInteractionHandler("blur",this.blurHandler_),g.forEach(t=>{this.adapter_.deregisterThumbContainerInteractionHandler(t,this.thumbContainerPointerHandler_)}),this.adapter_.deregisterResizeHandler(this.resizeHandler_)}setupTrackMarker(){if(this.isDiscrete_&&this.hasTrackMarker_&&0!=this.getStep()){const t=this.getMin(),e=this.getMax(),n=this.getStep();let r=(e-t)/n;const i=Math.ceil(r)!==r;if(i&&(r=Math.ceil(r)),this.adapter_.removeTrackMarkers(),this.adapter_.appendTrackMarkers(r),i){const t=(e-r*n)/n+1,i=Object(s.b)(window,"flex");this.adapter_.setLastTrackMarkersStyleProperty(i,String(t))}}}layout(){this.rect_=this.adapter_.computeBoundingRect(),this.updateUIForCurrentValue_()}getValue(){return this.value_}setValue(t){this.setValue_(t,!1)}getMax(){return this.max_}setMax(t){if(t<this.min_)throw new Error("Cannot set max to be less than the slider's minimum value");this.max_=t,this.setValue_(this.value_,!1,!0),this.adapter_.setAttribute(o.ARIA_VALUEMAX,String(this.max_)),this.setupTrackMarker()}getMin(){return this.min_}setMin(t){if(t>this.max_)throw new Error("Cannot set min to be greater than the slider's maximum value");this.min_=t,this.setValue_(this.value_,!1,!0),this.adapter_.setAttribute(o.ARIA_VALUEMIN,String(this.min_)),this.setupTrackMarker()}getStep(){return this.step_}setStep(t){if(t<0)throw new Error("Step cannot be set to a negative number");this.isDiscrete_&&("number"!=typeof t||t<1)&&(t=1),this.step_=t,this.setValue_(this.value_,!1,!0),this.setupTrackMarker()}isDisabled(){return this.disabled_}setDisabled(t){this.disabled_=t,this.toggleClass_(i.DISABLED,this.disabled_),this.disabled_?(this.savedTabIndex_=this.adapter_.getTabIndex(),this.adapter_.setAttribute(o.ARIA_DISABLED,"true"),this.adapter_.removeAttribute("tabindex")):(this.adapter_.removeAttribute(o.ARIA_DISABLED),isNaN(this.savedTabIndex_)||this.adapter_.setAttribute("tabindex",String(this.savedTabIndex_)))}handleDown_(t){if(this.disabled_)return;this.preventFocusState_=!0,this.setInTransit_(!this.handlingThumbTargetEvt_),this.handlingThumbTargetEvt_=!1,this.setActive_(!0);const e=t=>{this.handleMove_(t)},n=()=>{this.handleUp_(),this.adapter_.deregisterBodyInteractionHandler(b[t.type],e),v.forEach(t=>this.adapter_.deregisterBodyInteractionHandler(t,n))};this.adapter_.registerBodyInteractionHandler(b[t.type],e),v.forEach(t=>this.adapter_.registerBodyInteractionHandler(t,n)),this.setValueFromEvt_(t)}handleMove_(t){t.preventDefault(),this.setValueFromEvt_(t)}handleUp_(){this.setActive_(!1),this.adapter_.notifyChange()}getPageX_(t){return t.targetTouches&&t.targetTouches.length>0?t.targetTouches[0].pageX:t.pageX}setValueFromEvt_(t){const e=this.getPageX_(t),n=this.computeValueFromPageX_(e);this.setValue_(n,!0)}computeValueFromPageX_(t){const{max_:e,min_:n}=this;let r=(t-this.rect_.left)/this.rect_.width;return this.adapter_.isRTL()&&(r=1-r),n+r*(e-n)}handleKeydown_(t){const e=this.getKeyId_(t),n=this.getValueForKeyId_(e);isNaN(n)||(t.preventDefault(),this.adapter_.addClass(i.FOCUS),this.setValue_(n,!0),this.adapter_.notifyChange())}getKeyId_(t){return t.key===u||37===t.keyCode?u:t.key===l||39===t.keyCode?l:t.key===d||38===t.keyCode?d:t.key===f||40===t.keyCode?f:t.key===p||36===t.keyCode?p:t.key===m||35===t.keyCode?m:t.key===h||33===t.keyCode?h:t.key===_||34===t.keyCode?_:""}getValueForKeyId_(t){const{max_:e,min_:n,step_:r}=this;let i=r||(e-n)/100;switch(this.adapter_.isRTL()&&(t===u||t===l)&&(i=-i),t){case u:case f:return this.value_-i;case l:case d:return this.value_+i;case p:return this.min_;case m:return this.max_;case h:return this.value_+i*a.PAGE_FACTOR;case _:return this.value_-i*a.PAGE_FACTOR;default:return NaN}}handleFocus_(){this.preventFocusState_||this.adapter_.addClass(i.FOCUS)}handleBlur_(){this.preventFocusState_=!1,this.adapter_.removeClass(i.FOCUS)}setValue_(t,e,n=!1){if(t===this.value_&&!n)return;const{min_:r,max_:i}=this,a=t===r||t===i;this.step_&&!a&&(t=this.quantize_(t)),t<r?t=r:t>i&&(t=i),this.value_=t,this.adapter_.setAttribute(o.ARIA_VALUENOW,String(this.value_)),this.updateUIForCurrentValue_(),e&&(this.adapter_.notifyInput(),this.isDiscrete_&&this.adapter_.setMarkerValue(t))}quantize_(t){return Math.round(t/this.step_)*this.step_}updateUIForCurrentValue_(){const{max_:t,min_:e,value_:n}=this,r=(n-e)/(t-e);let i=r*this.rect_.width;this.adapter_.isRTL()&&(i=this.rect_.width-i);const o=Object(s.b)(window,"transform"),a=Object(s.a)(window,"transitionend");if(this.inTransit_){const t=()=>{this.setInTransit_(!1),this.adapter_.deregisterThumbContainerInteractionHandler(a,t)};this.adapter_.registerThumbContainerInteractionHandler(a,t)}this.updateUIFrame_=requestAnimationFrame(()=>{this.adapter_.setThumbContainerStyleProperty(o,`translateX(${i}px) translateX(-50%)`),this.adapter_.setTrackStyleProperty(o,`scaleX(${r})`)})}setActive_(t){this.active_=t,this.toggleClass_(i.ACTIVE,this.active_)}setInTransit_(t){this.inTransit_=t,this.toggleClass_(i.IN_TRANSIT,this.inTransit_)}toggleClass_(t,e){e?this.adapter_.addClass(t):this.adapter_.removeClass(t)}}var w=y;class E extends r.a{static attachTo(t){return new E(t)}constructor(...t){super(...t),this.thumbContainer_,this.track_,this.pinValueMarker_,this.trackMarkerContainer_}get value(){return this.foundation_.getValue()}set value(t){this.foundation_.setValue(t)}get min(){return this.foundation_.getMin()}set min(t){this.foundation_.setMin(t)}get max(){return this.foundation_.getMax()}set max(t){this.foundation_.setMax(t)}get step(){return this.foundation_.getStep()}set step(t){this.foundation_.setStep(t)}get disabled(){return this.foundation_.isDisabled()}set disabled(t){this.foundation_.setDisabled(t)}initialize(){this.thumbContainer_=this.root_.querySelector(o.THUMB_CONTAINER_SELECTOR),this.track_=this.root_.querySelector(o.TRACK_SELECTOR),this.pinValueMarker_=this.root_.querySelector(o.PIN_VALUE_MARKER_SELECTOR),this.trackMarkerContainer_=this.root_.querySelector(o.TRACK_MARKER_CONTAINER_SELECTOR)}getDefaultFoundation(){return new w({hasClass:t=>this.root_.classList.contains(t),addClass:t=>this.root_.classList.add(t),removeClass:t=>this.root_.classList.remove(t),getAttribute:t=>this.root_.getAttribute(t),setAttribute:(t,e)=>this.root_.setAttribute(t,e),removeAttribute:t=>this.root_.removeAttribute(t),computeBoundingRect:()=>this.root_.getBoundingClientRect(),getTabIndex:()=>this.root_.tabIndex,registerInteractionHandler:(t,e)=>{this.root_.addEventListener(t,e)},deregisterInteractionHandler:(t,e)=>{this.root_.removeEventListener(t,e)},registerThumbContainerInteractionHandler:(t,e)=>{this.thumbContainer_.addEventListener(t,e)},deregisterThumbContainerInteractionHandler:(t,e)=>{this.thumbContainer_.removeEventListener(t,e)},registerBodyInteractionHandler:(t,e)=>{document.body.addEventListener(t,e)},deregisterBodyInteractionHandler:(t,e)=>{document.body.removeEventListener(t,e)},registerResizeHandler:t=>{window.addEventListener("resize",t)},deregisterResizeHandler:t=>{window.removeEventListener("resize",t)},notifyInput:()=>{this.emit(o.INPUT_EVENT,this)},notifyChange:()=>{this.emit(o.CHANGE_EVENT,this)},setThumbContainerStyleProperty:(t,e)=>{this.thumbContainer_.style.setProperty(t,e)},setTrackStyleProperty:(t,e)=>{this.track_.style.setProperty(t,e)},setMarkerValue:t=>{this.pinValueMarker_.innerText=t},appendTrackMarkers:t=>{const e=document.createDocumentFragment();for(let n=0;n<t;n++){const t=document.createElement("div");t.classList.add("mdc-slider__track-marker"),e.appendChild(t)}this.trackMarkerContainer_.appendChild(e)},removeTrackMarkers:()=>{for(;this.trackMarkerContainer_.firstChild;)this.trackMarkerContainer_.removeChild(this.trackMarkerContainer_.firstChild)},setLastTrackMarkersStyleProperty:(t,e)=>{this.root_.querySelector(o.LAST_TRACK_MARKER_SELECTOR).style.setProperty(t,e)},isRTL:()=>"rtl"===getComputedStyle(this.root_).direction})}initialSyncWithDOM(){const t=parseFloat(this.root_.getAttribute(o.ARIA_VALUENOW));this.min=parseFloat(this.root_.getAttribute(o.ARIA_VALUEMIN))||this.min,this.max=parseFloat(this.root_.getAttribute(o.ARIA_VALUEMAX))||this.max,this.step=parseFloat(this.root_.getAttribute(o.STEP_DATA_ATTR))||this.step,this.value=t||this.value,this.disabled=this.root_.hasAttribute(o.ARIA_DISABLED)&&"false"!==this.root_.getAttribute(o.ARIA_DISABLED),this.foundation_.setupTrackMarker()}layout(){this.foundation_.layout()}stepUp(t=this.step||1){this.value+=t}stepDown(t=this.step||1){this.value-=t}}},function(t,e,n){"use strict";function r(){switch(arguments.length){case 1:return i(arguments[0]);case 2:return o(arguments[0],arguments[1]);case 3:return a(arguments[0],arguments[1],arguments[2]);case 4:return s(arguments[0],arguments[1],arguments[2],arguments[3]);case 5:return c(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4])}}function i(t){return function(e){return t(e)}}function o(t,e){return function(n){return t(e(n))}}function a(t,e,n){return function(r){return t(e(n(r)))}}function s(t,e,n,r){return function(i){return t(e(n(r(i))))}}function c(t,e,n,r,i){return function(o){return t(e(n(r(i(o)))))}}n.r(e),n.d(e,"compose",(function(){return r}))}]);